aiex-cli 0.0.7-beta.2 → 0.1.0-beta.2
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 +77 -5
- package/dist/{generate-drizzle-schema-D_oDmf4J.mjs → generate-drizzle-schema-BY4mW6Q8.mjs} +63 -14
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +2 -2
- package/dist/{core/schema-sqlite → infrastructure/schema}/migrate-helper.mjs +2 -2
- package/dist/web/assets/AISettings-CxoghpZX.js +264 -0
- package/dist/web/assets/{DataBrowser-GAA-pGq0.js → DataBrowser-BqmnFDWC.js} +2 -2
- package/dist/web/assets/{ExtractionViewer-BEYHgPw2.js → ExtractionViewer-Bs8c6xa2.js} +1 -1
- package/dist/web/assets/{api-client-b4ZBXpNH.js → api-client-EJKabzZK.js} +1 -1
- package/dist/web/assets/{index-BL42R5MF.js → index-DhL7jaO_.js} +3 -3
- package/dist/web/index.html +2 -2
- package/dist/{zh-CN-wEUNhuHM.mjs → zh-CN-B2yrInX9.mjs} +2 -0
- package/package.json +6 -4
- package/src/{core/schema-sqlite → infrastructure/schema}/migrate-helper.ts +1 -1
- package/src/infrastructure/schema/migration-name.ts +14 -0
- package/dist/web/assets/AISettings-Dbma0Oku.js +0 -264
- package/src/core/schema-sqlite/migration-name.ts +0 -1
- /package/dist/{core/schema-sqlite → infrastructure/schema}/migrate-helper.d.mts +0 -0
package/dist/web/index.html
CHANGED
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
if (dark) document.documentElement.classList.add("jscb-dark")
|
|
17
17
|
})()
|
|
18
18
|
</script>
|
|
19
|
-
<script type="module" crossorigin src="/assets/index-
|
|
19
|
+
<script type="module" crossorigin src="/assets/index-DhL7jaO_.js"></script>
|
|
20
20
|
<link rel="modulepreload" crossorigin href="/assets/preload-helper-DWTEM3RW.js">
|
|
21
21
|
<link rel="modulepreload" crossorigin href="/assets/chunk-DtRyYLXJ.js">
|
|
22
22
|
<link rel="modulepreload" crossorigin href="/assets/vue-i18n-Du42D0vb.js">
|
|
23
23
|
<link rel="modulepreload" crossorigin href="/assets/object-utils-CqCiBqJ4.js">
|
|
24
|
-
<link rel="modulepreload" crossorigin href="/assets/api-client-
|
|
24
|
+
<link rel="modulepreload" crossorigin href="/assets/api-client-EJKabzZK.js">
|
|
25
25
|
<link rel="modulepreload" crossorigin href="/assets/dialog-CnZ7jH1l.js">
|
|
26
26
|
<link rel="modulepreload" crossorigin href="/assets/dist-CElVIpns.js">
|
|
27
27
|
<link rel="stylesheet" crossorigin href="/assets/index-D0So2rJE.css">
|
|
@@ -435,7 +435,9 @@ const zhCN = {
|
|
|
435
435
|
pdf: {
|
|
436
436
|
converterOptions: {
|
|
437
437
|
unpdf: "内置文本抽取(unpdf)",
|
|
438
|
+
liteparse: "内置版面解析(liteparse)",
|
|
438
439
|
mineru: "MinerU(mineru)",
|
|
440
|
+
mineru_api: "MinerU API(mineru_api)",
|
|
439
441
|
external: "自定义外部命令"
|
|
440
442
|
},
|
|
441
443
|
ocrFallbackOptions: { localAuto: "视觉模型或本地 OCR" }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aiex-cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.1.0-beta.2",
|
|
5
5
|
"description": "JSON Schema → SQLite with AI-powered data extraction",
|
|
6
6
|
"author": "OSpoon <zxin088@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"exports": {
|
|
28
28
|
".": "./dist/index.mjs",
|
|
29
29
|
"./cli": "./dist/cli.mjs",
|
|
30
|
-
"./
|
|
30
|
+
"./infrastructure/schema/migrate-helper": "./dist/infrastructure/schema/migrate-helper.mjs",
|
|
31
31
|
"./package.json": "./package.json"
|
|
32
32
|
},
|
|
33
33
|
"main": "./dist/index.mjs",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"files": [
|
|
41
41
|
"bin",
|
|
42
42
|
"dist",
|
|
43
|
-
"src/
|
|
44
|
-
"src/
|
|
43
|
+
"src/infrastructure/schema/migrate-helper.ts",
|
|
44
|
+
"src/infrastructure/schema/migration-name.ts"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@ai-sdk/openai-compatible": "^2.0.47",
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"zod": "^3.23.0"
|
|
86
86
|
},
|
|
87
87
|
"optionalDependencies": {
|
|
88
|
+
"@llamaindex/liteparse": "^2.0.4",
|
|
88
89
|
"@napi-rs/system-ocr": "^1.0.2"
|
|
89
90
|
},
|
|
90
91
|
"devDependencies": {
|
|
@@ -110,6 +111,7 @@
|
|
|
110
111
|
"start": "tsx src/index.ts",
|
|
111
112
|
"test": "vitest",
|
|
112
113
|
"coverage": "vitest --coverage",
|
|
114
|
+
"smoke:package": "node scripts/package-smoke.mjs",
|
|
113
115
|
"typecheck": "tsc",
|
|
114
116
|
"lint": "eslint ."
|
|
115
117
|
}
|
|
@@ -35,7 +35,7 @@ async function loadSchemaExports(schemaPath: string): Promise<Record<string, unk
|
|
|
35
35
|
cliDir = path.dirname(pkgPath)
|
|
36
36
|
}
|
|
37
37
|
catch {
|
|
38
|
-
cliDir = path.dirname(path.dirname(path.dirname(
|
|
38
|
+
cliDir = path.dirname(path.dirname(path.dirname(__dirname)))
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
// Bundle the schema with esbuild, resolving drizzle-orm from CLI's node_modules
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function sanitizeMigrationName(name?: string): string | undefined {
|
|
2
|
+
if (!name)
|
|
3
|
+
return undefined
|
|
4
|
+
|
|
5
|
+
const slug = name
|
|
6
|
+
.trim()
|
|
7
|
+
.toLowerCase()
|
|
8
|
+
.replace(/[^a-z0-9_\s-]/g, '_')
|
|
9
|
+
.replace(/[\s-]+/g, '_')
|
|
10
|
+
.replace(/_+/g, '_')
|
|
11
|
+
.replace(/^_+|_+$/g, '')
|
|
12
|
+
|
|
13
|
+
return slug || undefined
|
|
14
|
+
}
|
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
import{A as e,At as t,C as n,D as r,Gt as i,H as a,I as o,J as s,K as c,L as l,O as u,S as d,T as f,W as p,X as m,_ as h,d as g,et as _,fn as v,gt as y,hn as b,ht as x,kt as S,lt as C,n as ee,o as w,on as T,q as E,r as D,rn as O,rt as k,tt as A,u as j,vt as te,w as M,x as N,y as P,yt as F,zt as I}from"./vue-i18n-Du42D0vb.js";import{i as L,n as R,r as z,s as B,t as ne}from"./dialog-CnZ7jH1l.js";import{_ as V,a as re,f as H,m as ie,n as ae,s as U}from"./api-client-b4ZBXpNH.js";import{a as W,i as G,n as K,r as q,s as J,t as Y}from"./textarea-DMpqBhjw.js";var X={class:`grid h-full min-h-0 min-w-0 grid-cols-[280px_minmax(0,1fr)] bg-background`},oe={class:`flex min-h-0 flex-col border-r border-border bg-card`},Z={class:`min-h-0 flex-1 overflow-y-auto p-2`},Q=[`onClick`],se={class:`flex min-h-0 flex-col bg-background`},ce={class:`mx-auto flex max-w-5xl flex-col gap-8`},le=e({__name:`AnchorLayout`,props:o({anchors:{},bottomSpacer:{default:192}},{activeKey:{default:``},activeKeyModifiers:{}}),emits:[`update:activeKey`],setup(e){let t=e,n=_(e,`activeKey`),r=C(null);function i(e){let t=r.value;return t?Array.from(t.querySelectorAll(`[data-anchor-section]`)).find(t=>t.dataset.anchorSection===e)??null:null}function a(e){n.value=e;let t=r.value,a=i(e);if(!t||!a)return;let o=t.getBoundingClientRect(),s=a.getBoundingClientRect();t.scrollTo({top:Math.max(0,s.top-o.top+t.scrollTop-16),behavior:`smooth`})}function o(){let e=r.value;if(!e||t.anchors.length===0)return;if(e.scrollTop+e.clientHeight>=e.scrollHeight-2){n.value=t.anchors[t.anchors.length-1]?.key??``;return}let a=e.scrollTop+80,o=t.anchors[0]?.key??``,s=e.getBoundingClientRect().top;for(let n of t.anchors){let t=i(n.key);t&&t.getBoundingClientRect().top-s+e.scrollTop<=a&&(o=n.key)}n.value=o}return(t,i)=>(p(),f(`div`,X,[d(`section`,oe,[E(t.$slots,`sidebar-header`),d(`nav`,Z,[(p(!0),f(P,null,c(e.anchors,e=>(p(),f(`button`,{key:e.key,class:y([`mb-1 flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors last:mb-0`,n.value===e.key?`bg-primary text-primary-foreground`:`text-foreground hover:bg-secondary`]),onClick:t=>a(e.key)},[e.icon?(p(),f(`i`,{key:0,class:y([`text-xs`,e.icon])},null,2)):M(``,!0),d(`span`,null,F(e.label),1)],10,Q))),128))])]),d(`section`,se,[E(t.$slots,`header`),d(`div`,{ref_key:`contentRef`,ref:r,class:`min-h-0 flex-1 overflow-auto p-4`,onScroll:o},[d(`div`,ce,[E(t.$slots,`default`),d(`div`,{class:`shrink-0`,style:te({height:`${e.bottomSpacer}px`}),"aria-hidden":`true`},null,4)])],544)])]))}}),ue={name:`MinusIcon`,extends:w};function de(e){return he(e)||me(e)||pe(e)||fe()}function fe(){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 pe(e,t){if(e){if(typeof e==`string`)return ge(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)?ge(e,t):void 0}}function me(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function he(e){if(Array.isArray(e))return ge(e)}function ge(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 _e(e,t,n,r,i,a){return p(),f(`svg`,l({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),de(t[0]||=[d(`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)}ue.render=_e;var ve=j.extend({name:`checkbox`,style:`
|
|
3
|
-
.p-checkbox {
|
|
4
|
-
position: relative;
|
|
5
|
-
display: inline-flex;
|
|
6
|
-
user-select: none;
|
|
7
|
-
vertical-align: bottom;
|
|
8
|
-
width: dt('checkbox.width');
|
|
9
|
-
height: dt('checkbox.height');
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.p-checkbox-input {
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
appearance: none;
|
|
15
|
-
position: absolute;
|
|
16
|
-
inset-block-start: 0;
|
|
17
|
-
inset-inline-start: 0;
|
|
18
|
-
width: 100%;
|
|
19
|
-
height: 100%;
|
|
20
|
-
padding: 0;
|
|
21
|
-
margin: 0;
|
|
22
|
-
opacity: 0;
|
|
23
|
-
z-index: 1;
|
|
24
|
-
outline: 0 none;
|
|
25
|
-
border: 1px solid transparent;
|
|
26
|
-
border-radius: dt('checkbox.border.radius');
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.p-checkbox-box {
|
|
30
|
-
display: flex;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
align-items: center;
|
|
33
|
-
border-radius: dt('checkbox.border.radius');
|
|
34
|
-
border: 1px solid dt('checkbox.border.color');
|
|
35
|
-
background: dt('checkbox.background');
|
|
36
|
-
width: dt('checkbox.width');
|
|
37
|
-
height: dt('checkbox.height');
|
|
38
|
-
transition:
|
|
39
|
-
background dt('checkbox.transition.duration'),
|
|
40
|
-
color dt('checkbox.transition.duration'),
|
|
41
|
-
border-color dt('checkbox.transition.duration'),
|
|
42
|
-
box-shadow dt('checkbox.transition.duration'),
|
|
43
|
-
outline-color dt('checkbox.transition.duration');
|
|
44
|
-
outline-color: transparent;
|
|
45
|
-
box-shadow: dt('checkbox.shadow');
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.p-checkbox-icon {
|
|
49
|
-
transition-duration: dt('checkbox.transition.duration');
|
|
50
|
-
color: dt('checkbox.icon.color');
|
|
51
|
-
font-size: dt('checkbox.icon.size');
|
|
52
|
-
width: dt('checkbox.icon.size');
|
|
53
|
-
height: dt('checkbox.icon.size');
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
57
|
-
border-color: dt('checkbox.hover.border.color');
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.p-checkbox-checked .p-checkbox-box {
|
|
61
|
-
border-color: dt('checkbox.checked.border.color');
|
|
62
|
-
background: dt('checkbox.checked.background');
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.p-checkbox-checked .p-checkbox-icon {
|
|
66
|
-
color: dt('checkbox.icon.checked.color');
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
70
|
-
background: dt('checkbox.checked.hover.background');
|
|
71
|
-
border-color: dt('checkbox.checked.hover.border.color');
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon {
|
|
75
|
-
color: dt('checkbox.icon.checked.hover.color');
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
|
|
79
|
-
border-color: dt('checkbox.focus.border.color');
|
|
80
|
-
box-shadow: dt('checkbox.focus.ring.shadow');
|
|
81
|
-
outline: dt('checkbox.focus.ring.width') dt('checkbox.focus.ring.style') dt('checkbox.focus.ring.color');
|
|
82
|
-
outline-offset: dt('checkbox.focus.ring.offset');
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
|
|
86
|
-
border-color: dt('checkbox.checked.focus.border.color');
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.p-checkbox.p-invalid > .p-checkbox-box {
|
|
90
|
-
border-color: dt('checkbox.invalid.border.color');
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.p-checkbox.p-variant-filled .p-checkbox-box {
|
|
94
|
-
background: dt('checkbox.filled.background');
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.p-checkbox-checked.p-variant-filled .p-checkbox-box {
|
|
98
|
-
background: dt('checkbox.checked.background');
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
102
|
-
background: dt('checkbox.checked.hover.background');
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.p-checkbox.p-disabled {
|
|
106
|
-
opacity: 1;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.p-checkbox.p-disabled .p-checkbox-box {
|
|
110
|
-
background: dt('checkbox.disabled.background');
|
|
111
|
-
border-color: dt('checkbox.checked.disabled.border.color');
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon {
|
|
115
|
-
color: dt('checkbox.icon.disabled.color');
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.p-checkbox-sm,
|
|
119
|
-
.p-checkbox-sm .p-checkbox-box {
|
|
120
|
-
width: dt('checkbox.sm.width');
|
|
121
|
-
height: dt('checkbox.sm.height');
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.p-checkbox-sm .p-checkbox-icon {
|
|
125
|
-
font-size: dt('checkbox.icon.sm.size');
|
|
126
|
-
width: dt('checkbox.icon.sm.size');
|
|
127
|
-
height: dt('checkbox.icon.sm.size');
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.p-checkbox-lg,
|
|
131
|
-
.p-checkbox-lg .p-checkbox-box {
|
|
132
|
-
width: dt('checkbox.lg.width');
|
|
133
|
-
height: dt('checkbox.lg.height');
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.p-checkbox-lg .p-checkbox-icon {
|
|
137
|
-
font-size: dt('checkbox.icon.lg.size');
|
|
138
|
-
width: dt('checkbox.icon.lg.size');
|
|
139
|
-
height: dt('checkbox.icon.lg.size');
|
|
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`}}),ye={name:`BaseCheckbox`,extends:W,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:ve,provide:function(){return{$pcCheckbox:this,$parentInstance:this}}};function be(e){"@babel/helpers - typeof";return be=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},be(e)}function xe(e,t,n){return(t=Se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e){var t=Ce(e,`string`);return be(t)==`symbol`?t:t+``}function Ce(e,t){if(be(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(be(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function we(e){return Oe(e)||De(e)||Ee(e)||Te()}function Te(){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 Ee(e,t){if(e){if(typeof e==`string`)return ke(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)?ke(e,t):void 0}}function De(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Oe(e){if(Array.isArray(e))return ke(e)}function ke(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 $={name:`Checkbox`,extends:ye,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(e){var t=this;if(!this.disabled&&!this.readonly){var n=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value,r=this.binary?this.d_indeterminate?this.trueValue:this.checked?this.falseValue:this.trueValue:this.checked||this.d_indeterminate?n.filter(function(e){return!v(e,t.value)}):n?[].concat(we(n),[this.value]):[this.value];this.d_indeterminate&&(this.d_indeterminate=!1,this.$emit(`update:indeterminate`,this.d_indeterminate)),this.$pcCheckboxGroup?this.$pcCheckboxGroup.writeValue(r,e):this.writeValue(r,e),this.$emit(`change`,e)}},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:b(this.value,e)},dataP:function(){return T(xe({invalid:this.$invalid,checked:this.checked,disabled:this.disabled,filled:this.$variant===`filled`},this.size,this.size))}},components:{CheckIcon:J,MinusIcon:ue}},Ae=[`data-p-checked`,`data-p-indeterminate`,`data-p-disabled`,`data-p`],je=[`id`,`value`,`name`,`checked`,`tabindex`,`disabled`,`readonly`,`required`,`aria-labelledby`,`aria-label`,`aria-invalid`],Me=[`data-p`];function Ne(e,t,r,i,a,o){var c=s(`CheckIcon`),u=s(`MinusIcon`);return p(),f(`div`,l({class:e.cx(`root`)},o.getPTOptions(`root`),{"data-p-checked":o.checked,"data-p-indeterminate":a.d_indeterminate||void 0,"data-p-disabled":e.disabled,"data-p":o.dataP}),[d(`input`,l({ref:`input`,id:e.inputId,type:`checkbox`,class:[e.cx(`input`),e.inputClass],style:e.inputStyle,value:e.value,name:o.groupName,checked:o.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 o.onFocus&&o.onFocus.apply(o,arguments)},onBlur:t[1]||=function(){return o.onBlur&&o.onBlur.apply(o,arguments)},onChange:t[2]||=function(){return o.onChange&&o.onChange.apply(o,arguments)}},o.getPTOptions(`input`)),null,16,je),d(`div`,l({class:e.cx(`box`)},o.getPTOptions(`box`),{"data-p":o.dataP}),[E(e.$slots,`icon`,{checked:o.checked,indeterminate:a.d_indeterminate,class:y(e.cx(`icon`)),dataP:o.dataP},function(){return[o.checked?(p(),n(c,l({key:0,class:e.cx(`icon`)},o.getPTOptions(`icon`),{"data-p":o.dataP}),null,16,[`class`,`data-p`])):a.d_indeterminate?(p(),n(u,l({key:1,class:e.cx(`icon`)},o.getPTOptions(`icon`),{"data-p":o.dataP}),null,16,[`class`,`data-p`])):M(``,!0)]})],16,Me)],16,Ae)}$.render=Ne;var Pe={name:`EyeIcon`,extends:w};function Fe(e){return ze(e)||Re(e)||Le(e)||Ie()}function Ie(){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 Le(e,t){if(e){if(typeof e==`string`)return Be(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)?Be(e,t):void 0}}function Re(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ze(e){if(Array.isArray(e))return Be(e)}function Be(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 p(),f(`svg`,l({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),Fe(t[0]||=[d(`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)}Pe.render=Ve;var He={name:`EyeSlashIcon`,extends:w};function Ue(e){return qe(e)||Ke(e)||Ge(e)||We()}function We(){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 Ge(e,t){if(e){if(typeof e==`string`)return Je(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)?Je(e,t):void 0}}function Ke(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function qe(e){if(Array.isArray(e))return Je(e)}function Je(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 Ye(e,t,n,r,i,a){return p(),f(`svg`,l({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),Ue(t[0]||=[d(`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)}He.render=Ye;var Xe=j.extend({name:`password`,style:`
|
|
145
|
-
.p-password {
|
|
146
|
-
display: inline-flex;
|
|
147
|
-
position: relative;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.p-password .p-password-overlay {
|
|
151
|
-
min-width: 100%;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.p-password-meter {
|
|
155
|
-
height: dt('password.meter.height');
|
|
156
|
-
background: dt('password.meter.background');
|
|
157
|
-
border-radius: dt('password.meter.border.radius');
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.p-password-meter-label {
|
|
161
|
-
height: 100%;
|
|
162
|
-
width: 0;
|
|
163
|
-
transition: width 1s ease-in-out;
|
|
164
|
-
border-radius: dt('password.meter.border.radius');
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.p-password-meter-weak {
|
|
168
|
-
background: dt('password.strength.weak.background');
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.p-password-meter-medium {
|
|
172
|
-
background: dt('password.strength.medium.background');
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.p-password-meter-strong {
|
|
176
|
-
background: dt('password.strength.strong.background');
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.p-password-fluid {
|
|
180
|
-
display: flex;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.p-password-fluid .p-password-input {
|
|
184
|
-
width: 100%;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.p-password-input::-ms-reveal,
|
|
188
|
-
.p-password-input::-ms-clear {
|
|
189
|
-
display: none;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.p-password-overlay {
|
|
193
|
-
padding: dt('password.overlay.padding');
|
|
194
|
-
background: dt('password.overlay.background');
|
|
195
|
-
color: dt('password.overlay.color');
|
|
196
|
-
border: 1px solid dt('password.overlay.border.color');
|
|
197
|
-
box-shadow: dt('password.overlay.shadow');
|
|
198
|
-
border-radius: dt('password.overlay.border.radius');
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.p-password-content {
|
|
202
|
-
display: flex;
|
|
203
|
-
flex-direction: column;
|
|
204
|
-
gap: dt('password.content.gap');
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.p-password-toggle-mask-icon {
|
|
208
|
-
inset-inline-end: dt('form.field.padding.x');
|
|
209
|
-
color: dt('password.icon.color');
|
|
210
|
-
position: absolute;
|
|
211
|
-
top: 50%;
|
|
212
|
-
margin-top: calc(-1 * calc(dt('icon.size') / 2));
|
|
213
|
-
width: dt('icon.size');
|
|
214
|
-
height: dt('icon.size');
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.p-password-clear-icon {
|
|
218
|
-
position: absolute;
|
|
219
|
-
top: 50%;
|
|
220
|
-
margin-top: -0.5rem;
|
|
221
|
-
cursor: pointer;
|
|
222
|
-
inset-inline-end: dt('form.field.padding.x');
|
|
223
|
-
color: dt('form.field.icon.color');
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.p-password:has(.p-password-toggle-mask-icon) .p-password-input {
|
|
227
|
-
padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.p-password:has(.p-password-toggle-mask-icon) .p-password-clear-icon {
|
|
231
|
-
inset-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.p-password:has(.p-password-clear-icon) .p-password-input {
|
|
235
|
-
padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.p-password:has(.p-password-clear-icon):has(.p-password-toggle-mask-icon) .p-password-input {
|
|
239
|
-
padding-inline-end: calc((dt('form.field.padding.x') * 3) + calc(dt('icon.size') * 2));
|
|
240
|
-
}
|
|
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}}}}),Ze={name:`BasePassword`,extends:W,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:Xe,provide:function(){return{$pcPassword:this,$parentInstance:this}}};function Qe(e){"@babel/helpers - typeof";return Qe=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},Qe(e)}function $e(e,t,n){return(t=et(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function et(e){var t=tt(e,`string`);return Qe(t)==`symbol`?t:t+``}function tt(e,t){if(Qe(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qe(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var nt={name:`Password`,extends:Ze,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&&=(B.clear(this.overlay),null)},methods:{onOverlayEnter:function(e){B.set(`overlay`,e,this.$primevue.config.zIndex.overlay),I(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){B.clear(e)},alignOverlay:function(){this.appendTo===`self`?t(this.overlay,this.$refs.input.$el):(this.overlay.style.minWidth=O(this.$refs.input.$el)+`px`,S(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 L(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&&!i()&&(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){q.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 T({fluid:this.$fluid})},meterDataP:function(){return T($e({},this.meter?.strength,this.meter?.strength))},overlayDataP:function(){return T($e({},`portal-`+this.appendTo,`portal-`+this.appendTo))}},components:{InputText:G,Portal:R,EyeSlashIcon:He,EyeIcon:Pe,TimesIcon:z}};function rt(e){"@babel/helpers - typeof";return rt=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},rt(e)}function it(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 at(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?it(Object(n),!0).forEach(function(t){ot(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ot(e,t,n){return(t=st(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function st(e){var t=ct(e,`string`);return rt(t)==`symbol`?t:t+``}function ct(e,t){if(rt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var lt=[`data-p`],ut=[`id`,`data-p`],dt=[`data-p`];function ft(e,t,r,i,a,o){var c=s(`InputText`),h=s(`TimesIcon`),_=s(`Portal`);return p(),f(`div`,l({class:e.cx(`root`),style:e.sx(`root`),"data-p":o.containerDataP},e.ptmi(`root`)),[u(c,l({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?E(e.$slots,e.$slots.maskicon?`maskicon`:`hideicon`,l({key:0,toggleCallback:o.onMaskToggle,class:[e.cx(`maskIcon`),e.maskIcon]},e.ptm(`maskIcon`)),function(){return[(p(),n(m(e.maskIcon?`i`:`EyeSlashIcon`),l({class:[e.cx(`maskIcon`),e.maskIcon],onClick:o.onMaskToggle},e.ptm(`maskIcon`)),null,16,[`class`,`onClick`]))]}):M(``,!0),e.toggleMask&&!a.unmasked?E(e.$slots,e.$slots.unmaskicon?`unmaskicon`:`showicon`,l({key:1,toggleCallback:o.onMaskToggle,class:[e.cx(`unmaskIcon`)]},e.ptm(`unmaskIcon`)),function(){return[(p(),n(m(e.unmaskIcon?`i`:`EyeIcon`),l({class:[e.cx(`unmaskIcon`),e.unmaskIcon],onClick:o.onMaskToggle},e.ptm(`unmaskIcon`)),null,16,[`class`,`onClick`]))]}):M(``,!0),o.isClearIconVisible?E(e.$slots,`clearicon`,l({key:2,class:e.cx(`clearIcon`),clearCallback:o.onClearClick},e.ptm(`clearIcon`)),function(){return[u(h,l({class:[e.cx(`clearIcon`)],onClick:o.onClearClick},e.ptm(`clearIcon`)),null,16,[`class`,`onClick`])]}):M(``,!0),d(`span`,l({class:`p-hidden-accessible`,"aria-live":`polite`},e.ptm(`hiddenAccesible`),{"data-p-hidden-accessible":!0}),F(a.infoText),17),u(_,{appendTo:e.appendTo},{default:k(function(){return[u(g,l({name:`p-anchored-overlay`,onEnter:o.onOverlayEnter,onLeave:o.onOverlayLeave,onAfterLeave:o.onOverlayAfterLeave},e.ptm(`transition`)),{default:k(function(){return[a.overlayVisible?(p(),f(`div`,l({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`},at(at(at({},e.panelProps),e.overlayProps),e.ptm(`overlay`))),[E(e.$slots,`header`),E(e.$slots,`content`,{},function(){return[d(`div`,l({class:e.cx(`content`)},e.ptm(`content`)),[d(`div`,l({class:e.cx(`meter`)},e.ptm(`meter`)),[d(`div`,l({class:e.cx(`meterLabel`),style:{width:a.meter?a.meter.width:``},"data-p":o.meterDataP},e.ptm(`meterLabel`)),null,16,dt)],16),d(`div`,l({class:e.cx(`meterText`)},e.ptm(`meterText`)),F(a.infoText),17)],16)]}),E(e.$slots,`footer`)],16,ut)):M(``,!0)]}),_:3},16,[`onEnter`,`onLeave`,`onAfterLeave`])]}),_:3},8,[`appendTo`])],16,lt)}nt.render=ft;var pt={class:`space-y-6`},mt={class:`text-sm font-semibold mb-3 text-foreground`},ht={class:`space-y-3`},gt={class:`flex items-center gap-2`},_t={for:`lf-enabled`,class:`text-sm cursor-pointer`},vt={key:0,class:`space-y-3 pl-6 border-l-2 border-border`},yt={class:`flex flex-col gap-1`},bt={class:`text-xs text-muted-foreground`},xt={class:`flex flex-col gap-1`},St={class:`text-xs text-muted-foreground`},Ct={class:`flex flex-col gap-1`},wt={class:`text-xs text-muted-foreground`},Tt={class:`text-sm font-semibold mb-3 text-foreground`},Et={class:`space-y-3`},Dt={class:`flex items-center gap-2`},Ot={for:`webhook-enabled`,class:`text-sm cursor-pointer`},kt={key:0,class:`space-y-3 pl-6 border-l-2 border-border`},At={class:`flex flex-col gap-1`},jt={class:`text-xs text-muted-foreground`},Mt={class:`flex flex-col gap-1`},Nt={class:`text-xs text-muted-foreground`},Pt={class:`text-xs text-muted-foreground`},Ft={class:`text-sm font-semibold mb-3 text-foreground`},It={class:`space-y-3`},Lt={class:`flex items-center gap-2`},Rt={for:`notion-enabled`,class:`text-sm cursor-pointer`},zt={key:0,class:`space-y-3 pl-6 border-l-2 border-border`},Bt={class:`flex flex-col gap-1`},Vt={class:`text-xs text-muted-foreground`},Ht={class:`flex flex-col gap-1`},Ut={class:`text-xs text-muted-foreground`},Wt={class:`flex flex-col gap-1`},Gt={class:`text-xs text-muted-foreground`},Kt={class:`flex items-center gap-2`},qt={key:0,class:`text-xs text-green-600`},Jt={class:`rounded border border-border`},Yt={key:0,class:`space-y-3 border-t border-border p-3`},Xt={class:`flex flex-col gap-1`},Zt={class:`text-xs text-muted-foreground`},Qt={class:`flex flex-col gap-1`},$t={class:`flex items-center justify-between gap-2`},en={class:`text-xs text-muted-foreground`},tn={key:0,class:`text-xs text-muted-foreground`},nn={key:0,class:`text-xs text-red-500 mt-1`},rn={class:`text-xs text-muted-foreground p-2 rounded border border-border`},an=e({__name:`IntegrationSettings`,props:o({schemas:{}},{langfuseEnabled:{type:Boolean,required:!0},langfuseEnabledModifiers:{},langfusePublicKey:{required:!0},langfusePublicKeyModifiers:{},langfuseSecretKey:{required:!0},langfuseSecretKeyModifiers:{},langfuseHost:{required:!0},langfuseHostModifiers:{},webhookEnabled:{type:Boolean,required:!0},webhookEnabledModifiers:{},webhookUrl:{required:!0},webhookUrlModifiers:{},webhookSecret:{required:!0},webhookSecretModifiers:{},notionEnabled:{type:Boolean,required:!0},notionEnabledModifiers:{},notionToken:{required:!0},notionTokenModifiers:{},notionSchemas:{required:!0},notionSchemasModifiers:{},selectedNotionSchema:{required:!0},selectedNotionSchemaModifiers:{},notionDatabaseId:{required:!0},notionDatabaseIdModifiers:{},notionTitleProperty:{required:!0},notionTitlePropertyModifiers:{},notionFieldMap:{required:!0},notionFieldMapModifiers:{},notionProperties:{required:!0},notionPropertiesModifiers:{},notionSchemaFields:{required:!0},notionSchemaFieldsModifiers:{},notionAdvancedOpen:{type:Boolean,required:!0},notionAdvancedOpenModifiers:{}}),emits:[`update:langfuseEnabled`,`update:langfusePublicKey`,`update:langfuseSecretKey`,`update:langfuseHost`,`update:webhookEnabled`,`update:webhookUrl`,`update:webhookSecret`,`update:notionEnabled`,`update:notionToken`,`update:notionSchemas`,`update:selectedNotionSchema`,`update:notionDatabaseId`,`update:notionTitleProperty`,`update:notionFieldMap`,`update:notionProperties`,`update:notionSchemaFields`,`update:notionAdvancedOpen`],setup(e,{expose:t}){let n=e,r=_(e,`langfuseEnabled`),i=_(e,`langfusePublicKey`),a=_(e,`langfuseSecretKey`),o=_(e,`langfuseHost`),s=_(e,`webhookEnabled`),c=_(e,`webhookUrl`),l=_(e,`webhookSecret`),m=_(e,`notionEnabled`),h=_(e,`notionToken`),g=_(e,`notionSchemas`),v=_(e,`selectedNotionSchema`),b=_(e,`notionDatabaseId`),S=_(e,`notionTitleProperty`),w=_(e,`notionFieldMap`),T=_(e,`notionProperties`),E=_(e,`notionSchemaFields`),O=_(e,`notionAdvancedOpen`),{t:k}=ee(),j=C(!1),te=N(()=>n.schemas.map(e=>e.replace(`.json`,``))),P=N(()=>{let e=w.value.trim();if(!e)return``;try{let t=JSON.parse(e);if(!t||typeof t!=`object`||Array.isArray(t))return k(`app.fieldMapObject`);for(let[e,n]of Object.entries(t))if(typeof n!=`string`)return k(`app.fieldMapString`,{key:e});return``}catch{return k(`app.fieldMapValidJson`)}}),I=N(()=>{try{return Object.keys(R()??{}).length}catch{return 0}}),L=N(()=>T.value.length===0?``:E.value.length===0?k(`app.notionPropertiesLoaded`,{count:T.value.length}):k(`app.notionFieldsMapped`,{count:I.value,total:E.value.length}));function R(){if(!w.value.trim())return;let e=JSON.parse(w.value),t=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,typeof t==`string`?t.trim():``]).filter(([e,t])=>!!e&&!!t));return Object.keys(t).length>0?t:void 0}function z(e){if(!e?.properties||typeof e.properties!=`object`)return[];let t=[];function n(e,r=``){for(let[i,a]of Object.entries(e)){let e=r?`${r}.${i}`:i;if(a?.type===`object`&&a?.properties&&typeof a.properties==`object`){n(a.properties,e);continue}a?.type===`array`&&a?.items?.type===`object`||t.push(e)}}return n(e.properties),t}function B(e){let t={};for(let n of E.value)t[n]=e?.[n]??``;for(let[n,r]of Object.entries(e??{}))n in t||(t[n]=r);return Object.keys(t).length>0?JSON.stringify(t,null,2):``}function ne(e=v.value){if(!e||P.value)return;let t=b.value.trim(),n=S.value.trim(),r=R();if(!t){let t={...g.value};delete t[e],g.value=t;return}g.value={...g.value,[e]:{databaseId:t,titleProperty:n||void 0,fieldMap:r}}}function H(){let e=v.value?g.value[v.value]:void 0;b.value=e?.databaseId??``,S.value=e?.titleProperty??``,w.value=B(e?.fieldMap),T.value=[]}A(te,e=>{!v.value&&e.length>0&&(v.value=e[0])},{immediate:!0}),A(v,(e,t)=>{t&&ne(t),ie()});async function ie(){let e=v.value;if(E.value=[],!e){H();return}try{E.value=z(await re(`${e}.json`))}catch{E.value=[]}H()}t({persistSelectedNotionSchema:ne,loadSelectedNotionSchemaFields:ie,notionFieldMapError:P});async function ae(){if(!v.value){V.error(k(`app.toastSelectSchema`));return}if(!h.value.trim()){V.error(k(`app.toastEnterToken`));return}if(!b.value.trim()){V.error(k(`app.toastEnterDatabaseId`));return}if(P.value){V.error(P.value);return}j.value=!0;try{let e=await U({token:h.value,databaseId:b.value,schemaName:v.value});(e.dataSourceId||e.databaseId)&&(b.value=e.dataSourceId??e.databaseId??``),!S.value&&e.titleProperty&&(S.value=e.titleProperty);let t=R()??{},n={...e.suggestedFieldMap??{},...t};w.value=Object.keys(n).length>0?JSON.stringify(n,null,2):``,T.value=e.properties??[],ne(),V.success(k(`app.notionConnected`,{count:T.value.length}))}catch(e){V.error(e instanceof Error?e.message:k(`app.notionConnectionFailed`))}finally{j.value=!1}}return(e,t)=>(p(),f(`div`,pt,[d(`section`,null,[d(`h3`,mt,F(e.$t(`app.langfuseTracing`)),1),d(`div`,ht,[d(`div`,gt,[u(x($),{modelValue:r.value,"onUpdate:modelValue":t[0]||=e=>r.value=e,binary:!0,"input-id":`lf-enabled`},null,8,[`modelValue`]),d(`label`,_t,F(e.$t(`app.enabled`)),1)]),r.value?(p(),f(`div`,vt,[d(`div`,yt,[d(`label`,bt,F(e.$t(`app.secretKey`)),1),u(x(nt),{modelValue:a.value,"onUpdate:modelValue":t[1]||=e=>a.value=e,feedback:!1,"toggle-mask":``,size:`small`,placeholder:`sk-lf-...`,"input-class":`w-full`},null,8,[`modelValue`])]),d(`div`,xt,[d(`label`,St,F(e.$t(`app.publicKey`)),1),u(x(G),{modelValue:i.value,"onUpdate:modelValue":t[2]||=e=>i.value=e,size:`small`,placeholder:`pk-lf-...`},null,8,[`modelValue`])]),d(`div`,Ct,[d(`label`,wt,F(e.$t(`app.host`)),1),u(x(G),{modelValue:o.value,"onUpdate:modelValue":t[3]||=e=>o.value=e,size:`small`,placeholder:`https://us.cloud.langfuse.com`},null,8,[`modelValue`])])])):M(``,!0)])]),d(`section`,null,[d(`h3`,Tt,F(e.$t(`app.webhookNotification`)),1),d(`div`,Et,[d(`div`,Dt,[u(x($),{modelValue:s.value,"onUpdate:modelValue":t[4]||=e=>s.value=e,binary:!0,"input-id":`webhook-enabled`},null,8,[`modelValue`]),d(`label`,Ot,F(e.$t(`app.enabled`)),1)]),s.value?(p(),f(`div`,kt,[d(`div`,At,[d(`label`,jt,F(e.$t(`app.webhookUrl`)),1),u(x(G),{modelValue:c.value,"onUpdate:modelValue":t[5]||=e=>c.value=e,size:`small`,placeholder:`http://localhost:8080/webhook`,class:`w-full`},null,8,[`modelValue`])]),d(`div`,Mt,[d(`label`,Nt,F(e.$t(`app.webhookSecret`)),1),u(x(nt),{modelValue:l.value,"onUpdate:modelValue":t[6]||=e=>l.value=e,feedback:!1,"toggle-mask":``,size:`small`,placeholder:`webhook-secret-key`,"input-class":`w-full`},null,8,[`modelValue`])]),d(`div`,Pt,F(e.$t(`app.webhookHelp`)),1)])):M(``,!0)])]),d(`section`,null,[d(`h3`,Ft,F(e.$t(`app.notionExport`)),1),d(`div`,It,[d(`div`,Lt,[u(x($),{modelValue:m.value,"onUpdate:modelValue":t[7]||=e=>m.value=e,binary:!0,"input-id":`notion-enabled`},null,8,[`modelValue`]),d(`label`,Rt,F(e.$t(`app.enabled`)),1)]),m.value?(p(),f(`div`,zt,[d(`div`,Bt,[d(`label`,Vt,F(e.$t(`app.integrationToken`)),1),u(x(nt),{modelValue:h.value,"onUpdate:modelValue":t[8]||=e=>h.value=e,feedback:!1,"toggle-mask":``,size:`small`,placeholder:`secret_...`,"input-class":`w-full`},null,8,[`modelValue`])]),d(`div`,Ht,[d(`label`,Ut,F(e.$t(`app.schemaBinding`)),1),u(x(K),{modelValue:v.value,"onUpdate:modelValue":t[9]||=e=>v.value=e,options:te.value,size:`small`,placeholder:e.$t(`app.selectSchema`),disabled:te.value.length===0},null,8,[`modelValue`,`options`,`placeholder`,`disabled`])]),d(`div`,Wt,[d(`label`,Gt,F(e.$t(`app.databaseUrl`)),1),u(x(G),{modelValue:b.value,"onUpdate:modelValue":t[10]||=e=>b.value=e,size:`small`,placeholder:`https://www.notion.so/... or xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`},null,8,[`modelValue`])]),d(`div`,Kt,[u(x(D),{label:e.$t(`app.connectAndMap`),icon:`pi pi-bolt`,severity:`secondary`,size:`small`,loading:j.value,disabled:!v.value||!h.value.trim()||!b.value.trim()||!!P.value,onClick:ae},null,8,[`label`,`loading`,`disabled`]),L.value?(p(),f(`span`,qt,F(L.value),1)):M(``,!0)]),d(`div`,Jt,[d(`button`,{type:`button`,class:`w-full flex items-center justify-between gap-2 px-3 py-2 text-left text-xs text-muted-foreground hover:bg-secondary`,onClick:t[11]||=e=>O.value=!O.value},[d(`span`,null,F(e.$t(`app.advancedMapping`)),1),d(`i`,{class:y([O.value?`pi pi-chevron-up`:`pi pi-chevron-down`,`text-[10px]`])},null,2)]),O.value?(p(),f(`div`,Yt,[d(`div`,Xt,[d(`label`,Zt,F(e.$t(`app.titleProperty`)),1),u(x(G),{modelValue:S.value,"onUpdate:modelValue":t[12]||=e=>S.value=e,size:`small`,placeholder:e.$t(`app.titleProperty`)},null,8,[`modelValue`,`placeholder`])]),d(`div`,Qt,[d(`div`,$t,[d(`label`,en,F(e.$t(`app.fieldMapJson`)),1),E.value.length>0?(p(),f(`span`,tn,F(e.$t(`app.fieldsMapped`,{count:I.value,total:E.value.length})),1)):M(``,!0)]),u(x(Y),{modelValue:w.value,"onUpdate:modelValue":t[13]||=e=>w.value=e,rows:`5`,"auto-resize":``,class:`text-xs font-mono`,placeholder:`{
|
|
243
|
-
"invoiceNo": "Invoice No",
|
|
244
|
-
"issuedAt": "Issued At"
|
|
245
|
-
}`},null,8,[`modelValue`]),P.value?(p(),f(`p`,nn,F(P.value),1)):M(``,!0)]),d(`div`,rn,F(e.$t(`app.notionMappingHint`)),1)])):M(``,!0)])])):M(``,!0)])])]))}}),on={class:`space-y-6`},sn={class:`text-sm font-semibold mb-3 text-foreground`},cn={class:`space-y-3`},ln={class:`flex flex-col gap-1`},un={class:`text-xs text-muted-foreground`},dn={key:0,class:`space-y-3 pl-6 border-l-2 border-border`},fn={class:`flex flex-col gap-1`},pn={class:`text-xs text-muted-foreground`},mn={class:`flex flex-col gap-1`},hn={class:`text-xs text-muted-foreground`},gn={class:`flex flex-col gap-1`},_n={class:`text-xs text-muted-foreground`},vn={class:`flex items-center gap-2`},yn={for:`mineru-fallback`,class:`text-sm cursor-pointer`},bn={class:`text-xs text-muted-foreground p-2 rounded border border-border`},xn={key:1,class:`space-y-3 pl-6 border-l-2 border-border`},Sn={class:`flex flex-col gap-1`},Cn={class:`text-xs text-muted-foreground`},wn={class:`flex flex-col gap-1`},Tn={class:`text-xs text-muted-foreground`},En={class:`flex flex-col gap-1`},Dn={class:`text-xs text-muted-foreground`},On={class:`flex items-center gap-2`},kn={for:`mineru-api-is-ocr`,class:`text-sm cursor-pointer`},An={class:`flex items-center gap-2`},jn={for:`mineru-api-enable-formula`,class:`text-sm cursor-pointer`},Mn={class:`flex items-center gap-2`},Nn={for:`mineru-api-enable-table`,class:`text-sm cursor-pointer`},Pn={key:2,class:`space-y-3 pl-6 border-l-2 border-border`},Fn={class:`flex flex-col gap-1`},In={class:`text-xs text-muted-foreground`},Ln={class:`flex flex-col gap-1`},Rn={class:`text-xs text-muted-foreground`},zn={class:`flex flex-col gap-1`},Bn={class:`text-xs text-muted-foreground`},Vn={class:`text-xs text-muted-foreground p-2 rounded border border-border`},Hn=e({__name:`PdfSettings`,props:{pdfConverter:{required:!0},pdfConverterModifiers:{},mineruCommand:{required:!0},mineruCommandModifiers:{},mineruArgs:{required:!0},mineruArgsModifiers:{},mineruTimeout:{required:!0},mineruTimeoutModifiers:{},mineruFallbackToUnpdf:{type:Boolean,required:!0},mineruFallbackToUnpdfModifiers:{},mineruApiToken:{required:!0},mineruApiTokenModifiers:{},mineruApiBaseUrl:{required:!0},mineruApiBaseUrlModifiers:{},mineruApiModel:{required:!0},mineruApiModelModifiers:{},mineruApiIsOcr:{type:Boolean,required:!0},mineruApiIsOcrModifiers:{},mineruApiEnableFormula:{type:Boolean,required:!0},mineruApiEnableFormulaModifiers:{},mineruApiEnableTable:{type:Boolean,required:!0},mineruApiEnableTableModifiers:{},externalCommand:{required:!0},externalCommandModifiers:{},externalArgs:{required:!0},externalArgsModifiers:{},externalTimeout:{required:!0},externalTimeoutModifiers:{}},emits:[`update:pdfConverter`,`update:mineruCommand`,`update:mineruArgs`,`update:mineruTimeout`,`update:mineruFallbackToUnpdf`,`update:mineruApiToken`,`update:mineruApiBaseUrl`,`update:mineruApiModel`,`update:mineruApiIsOcr`,`update:mineruApiEnableFormula`,`update:mineruApiEnableTable`,`update:externalCommand`,`update:externalArgs`,`update:externalTimeout`],setup(e){let t=_(e,`pdfConverter`),n=_(e,`mineruCommand`),i=_(e,`mineruArgs`),a=_(e,`mineruTimeout`),o=_(e,`mineruFallbackToUnpdf`),s=_(e,`mineruApiToken`),c=_(e,`mineruApiBaseUrl`),l=_(e,`mineruApiModel`),m=_(e,`mineruApiIsOcr`),h=_(e,`mineruApiEnableFormula`),g=_(e,`mineruApiEnableTable`),v=_(e,`externalCommand`),y=_(e,`externalArgs`),b=_(e,`externalTimeout`),{t:S}=ee(),C=N(()=>[{label:S(`app.pdfConverterUnpdf`),value:`unpdf`},{label:S(`app.pdfConverterMineru`),value:`mineru`},{label:S(`app.pdfConverterMineruApi`),value:`mineru_api`},{label:S(`app.pdfConverterExternal`),value:`external`}]);return(e,_)=>(p(),f(`div`,on,[d(`section`,null,[d(`h3`,sn,F(e.$t(`app.pdfConversion`)),1),d(`div`,cn,[d(`div`,ln,[d(`label`,un,F(e.$t(`app.converter`)),1),u(x(K),{modelValue:t.value,"onUpdate:modelValue":_[0]||=e=>t.value=e,options:C.value,"option-label":`label`,"option-value":`value`,size:`small`},null,8,[`modelValue`,`options`])]),t.value===`mineru`?(p(),f(`div`,dn,[d(`div`,fn,[d(`label`,pn,F(e.$t(`app.command`)),1),u(x(G),{modelValue:n.value,"onUpdate:modelValue":_[1]||=e=>n.value=e,size:`small`,placeholder:`mineru`},null,8,[`modelValue`])]),d(`div`,mn,[d(`label`,hn,F(e.$t(`app.arguments`)),1),u(x(Y),{modelValue:i.value,"onUpdate:modelValue":_[2]||=e=>i.value=e,rows:`4`,"auto-resize":``,class:`text-xs font-mono`},null,8,[`modelValue`])]),d(`div`,gn,[d(`label`,_n,F(e.$t(`app.timeoutLabel`)),1),u(x(G),{value:String(a.value),type:`number`,size:`small`,placeholder:`600`,min:1,onInput:_[3]||=e=>a.value=Number(e.target.value)||600},null,8,[`value`])]),d(`div`,vn,[u(x($),{modelValue:o.value,"onUpdate:modelValue":_[4]||=e=>o.value=e,binary:!0,"input-id":`mineru-fallback`},null,8,[`modelValue`]),d(`label`,yn,F(e.$t(`app.fallbackToBuiltin`)),1)]),d(`div`,bn,[r(F(e.$t(`app.placeholders`))+`: `,1),_[14]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{input}`,-1),_[15]||=r(`, `,-1),_[16]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{outputDir}`,-1),_[17]||=r(`, `,-1),_[18]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{basename}`,-1)])])):M(``,!0),t.value===`mineru_api`?(p(),f(`div`,xn,[d(`div`,Sn,[d(`label`,Cn,F(e.$t(`app.mineruApiTokenLabel`)),1),u(x(nt),{modelValue:s.value,"onUpdate:modelValue":_[5]||=e=>s.value=e,feedback:!1,"toggle-mask":``,size:`small`,placeholder:e.$t(`app.mineruApiTokenPlaceholder`),"input-class":`w-full`},null,8,[`modelValue`,`placeholder`])]),d(`div`,wn,[d(`label`,Tn,F(e.$t(`app.mineruApiBaseUrlLabel`)),1),u(x(G),{modelValue:c.value,"onUpdate:modelValue":_[6]||=e=>c.value=e,size:`small`,placeholder:`https://mineru.net/api/v4`},null,8,[`modelValue`])]),d(`div`,En,[d(`label`,Dn,F(e.$t(`app.mineruApiModelLabel`)),1),u(x(K),{modelValue:l.value,"onUpdate:modelValue":_[7]||=e=>l.value=e,options:[{label:`vlm (Recommended)`,value:`vlm`},{label:`pipeline (Layout + OCR)`,value:`pipeline`}],"option-label":`label`,"option-value":`value`,size:`small`},null,8,[`modelValue`])]),d(`div`,On,[u(x($),{modelValue:m.value,"onUpdate:modelValue":_[8]||=e=>m.value=e,binary:!0,"input-id":`mineru-api-is-ocr`},null,8,[`modelValue`]),d(`label`,kn,F(e.$t(`app.mineruApiIsOcrLabel`)),1)]),d(`div`,An,[u(x($),{modelValue:h.value,"onUpdate:modelValue":_[9]||=e=>h.value=e,binary:!0,"input-id":`mineru-api-enable-formula`},null,8,[`modelValue`]),d(`label`,jn,F(e.$t(`app.mineruApiEnableFormulaLabel`)),1)]),d(`div`,Mn,[u(x($),{modelValue:g.value,"onUpdate:modelValue":_[10]||=e=>g.value=e,binary:!0,"input-id":`mineru-api-enable-table`},null,8,[`modelValue`]),d(`label`,Nn,F(e.$t(`app.mineruApiEnableTableLabel`)),1)])])):M(``,!0),t.value===`external`?(p(),f(`div`,Pn,[d(`div`,Fn,[d(`label`,In,F(e.$t(`app.command`)),1),u(x(G),{modelValue:v.value,"onUpdate:modelValue":_[11]||=e=>v.value=e,size:`small`,placeholder:`pdf2markdown`},null,8,[`modelValue`])]),d(`div`,Ln,[d(`label`,Rn,F(e.$t(`app.arguments`)),1),u(x(Y),{modelValue:y.value,"onUpdate:modelValue":_[12]||=e=>y.value=e,rows:`4`,"auto-resize":``,class:`text-xs font-mono`,placeholder:`-i
|
|
246
|
-
{input}
|
|
247
|
-
-o
|
|
248
|
-
{outputDir}/{basename}.md`},null,8,[`modelValue`])]),d(`div`,zn,[d(`label`,Bn,F(e.$t(`app.timeoutLabel`)),1),u(x(G),{value:String(b.value),type:`number`,size:`small`,placeholder:`600`,min:1,onInput:_[13]||=e=>b.value=Number(e.target.value)||600},null,8,[`value`])]),d(`div`,Vn,[r(F(e.$t(`app.placeholders`))+`: `,1),_[19]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{input}`,-1),_[20]||=r(`, `,-1),_[21]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{outputDir}`,-1),_[22]||=r(`, `,-1),_[23]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{basename}`,-1),r(`. `+F(e.$t(`app.externalHint`)),1)])])):M(``,!0)])])]))}}),Un={class:`space-y-6`},Wn={class:`text-sm font-semibold mb-3 text-foreground`},Gn={class:`space-y-3`},Kn={class:`flex flex-col gap-1`},qn={class:`text-xs text-muted-foreground`},Jn={key:0,class:`text-xs text-red-500 mt-1`},Yn={class:`flex flex-col gap-1`},Xn={class:`text-xs text-muted-foreground`},Zn={key:0,class:`text-xs text-red-500 mt-1`},Qn={class:`text-xs text-muted-foreground p-2 rounded border border-border`},$n=e({__name:`PromptSettings`,props:{systemTemplate:{required:!0},systemTemplateModifiers:{},userTemplate:{required:!0},userTemplateModifiers:{}},emits:[`update:systemTemplate`,`update:userTemplate`],setup(e,{expose:t}){let n=_(e,`systemTemplate`),r=_(e,`userTemplate`),{t:i}=ee(),a=N(()=>n.value.includes(`{schema}`)?``:i(`app.systemPromptValidation`)),o=N(()=>r.value.includes(`{text}`)?``:i(`app.userPromptValidation`));return t({systemSchemaError:a,userSchemaError:o}),(e,t)=>(p(),f(`div`,Un,[d(`section`,null,[d(`h3`,Wn,F(e.$t(`app.promptTemplates`)),1),d(`div`,Gn,[d(`div`,Kn,[d(`label`,qn,F(e.$t(`app.systemPrompt`)),1),u(x(Y),{modelValue:n.value,"onUpdate:modelValue":t[0]||=e=>n.value=e,rows:`6`,"auto-resize":``,class:`text-xs font-mono`},null,8,[`modelValue`]),a.value?(p(),f(`p`,Jn,F(a.value),1)):M(``,!0)]),d(`div`,Yn,[d(`label`,Xn,F(e.$t(`app.userPromptTemplate`)),1),u(x(Y),{modelValue:r.value,"onUpdate:modelValue":t[1]||=e=>r.value=e,rows:`6`,"auto-resize":``,class:`text-xs font-mono`},null,8,[`modelValue`]),o.value?(p(),f(`p`,Zn,F(o.value),1)):M(``,!0)]),d(`div`,Qn,F(e.$t(`app.promptPlaceholderHint`)),1)])])]))}}),er={class:`space-y-6`},tr={class:`text-sm font-semibold mb-3 text-foreground`},nr={class:`space-y-3`},rr={class:`flex flex-col gap-1`},ir={class:`text-xs text-muted-foreground`},ar={class:`flex flex-col gap-1`},or={class:`text-xs text-muted-foreground`},sr={class:`flex flex-col gap-1`},cr={class:`text-xs text-muted-foreground`},lr={class:`text-sm font-semibold mb-3 text-foreground`},ur={class:`space-y-2`},dr={class:`text-sm font-mono flex-1`},fr={key:0,class:`flex flex-col gap-2 px-3 py-2 rounded border border-border bg-card`},pr={class:`flex items-center gap-2`},mr={class:`flex items-center gap-4 text-xs`},hr={class:`flex items-center gap-1.5 cursor-pointer`},gr={class:`flex items-center gap-1.5 cursor-pointer`},_r={key:0,class:`text-muted-foreground ml-auto`},vr=e({__name:`ProviderSettings`,props:{baseURL:{required:!0},baseURLModifiers:{},apiKey:{required:!0},apiKeyModifiers:{},timeout:{required:!0},timeoutModifiers:{},models:{required:!0},modelsModifiers:{}},emits:[`update:baseURL`,`update:apiKey`,`update:timeout`,`update:models`],setup(e){let t=_(e,`baseURL`),i=_(e,`apiKey`),a=_(e,`timeout`),o=_(e,`models`),s=C(!1),l=C(``),m=C({vision:!1,structuredOutput:!1}),g=C(`manual`);function v(){g.value=`manual`,m.value={vision:!1,structuredOutput:!1},l.value&&H(l.value).then(e=>{e&&(m.value={...e},g.value=`registry`)})}function b(){l.value&&(o.value.push({name:l.value,capabilities:{...m.value}}),ee())}function S(){ee()}function ee(){l.value=``,m.value={vision:!1,structuredOutput:!1},g.value=`manual`,s.value=!1}function w(e){o.value.splice(e,1)}return(e,_)=>(p(),f(`div`,er,[d(`section`,null,[d(`h3`,tr,F(e.$t(`app.provider`)),1),d(`div`,nr,[d(`div`,rr,[d(`label`,ir,F(e.$t(`app.baseUrl`)),1),u(x(G),{modelValue:t.value,"onUpdate:modelValue":_[0]||=e=>t.value=e,size:`small`,placeholder:`https://dashscope.aliyuncs.com/compatible-mode/v1`},null,8,[`modelValue`])]),d(`div`,ar,[d(`label`,or,F(e.$t(`app.apiKey`)),1),u(x(nt),{modelValue:i.value,"onUpdate:modelValue":_[1]||=e=>i.value=e,feedback:!1,"toggle-mask":``,size:`small`,placeholder:`sk-xxx`,"input-class":`w-full`},null,8,[`modelValue`])]),d(`div`,sr,[d(`label`,cr,F(e.$t(`app.timeoutLabel`)),1),u(x(G),{value:String(a.value),type:`number`,size:`small`,placeholder:`300`,min:1,onInput:_[2]||=e=>a.value=Number(e.target.value)||300},null,8,[`value`])])])]),d(`section`,null,[d(`h3`,lr,F(e.$t(`app.models`)),1),d(`div`,ur,[(p(!0),f(P,null,c(o.value,(t,n)=>(p(),f(`div`,{key:n,class:`flex items-center gap-2 px-3 py-2 rounded border border-border bg-card`},[d(`code`,dr,F(t.name),1),d(`span`,{class:y([`inline-flex items-center gap-1 text-xs px-1.5 py-0.5 rounded`,t.capabilities.structuredOutput?`bg-green-500/10 text-green-600`:`bg-yellow-500/10 text-yellow-600`])},[d(`i`,{class:y([t.capabilities.structuredOutput?`pi pi-check-circle`:`pi pi-exclamation-triangle`,`text-[10px]`])},null,2),r(` `+F(t.capabilities.structuredOutput?e.$t(`app.structuredOutput`):e.$t(`app.textOnlyOutput`)),1)],2),d(`span`,{class:y([`inline-flex items-center gap-1 text-xs px-1.5 py-0.5 rounded`,t.capabilities.vision?`bg-green-500/10 text-green-600`:`bg-red-500/10 text-red-600`])},[d(`i`,{class:y([t.capabilities.vision?`pi pi-check-circle`:`pi pi-times-circle`,`text-[10px]`])},null,2),r(` `+F(t.capabilities.vision?e.$t(`app.visionSupported`):e.$t(`app.visionUnsupported`)),1)],2),u(x(D),{icon:`pi pi-times`,severity:`danger`,text:``,size:`small`,onClick:e=>w(n)},null,8,[`onClick`])]))),128)),s.value?(p(),f(`div`,fr,[d(`div`,pr,[u(x(G),{modelValue:l.value,"onUpdate:modelValue":_[3]||=e=>l.value=e,size:`small`,placeholder:e.$t(`app.modelName`),class:`flex-1 font-mono`,onInput:v,onKeyup:h(b,[`enter`])},null,8,[`modelValue`,`placeholder`]),u(x(D),{icon:`pi pi-check`,severity:`success`,text:``,size:`small`,disabled:!l.value,onClick:b},null,8,[`disabled`]),u(x(D),{icon:`pi pi-times`,severity:`secondary`,text:``,size:`small`,onClick:S})]),d(`div`,mr,[d(`label`,hr,[u(x($),{modelValue:m.value.structuredOutput,"onUpdate:modelValue":_[4]||=e=>m.value.structuredOutput=e,binary:!0,"input-id":`add-so`},null,8,[`modelValue`]),d(`span`,{class:y(m.value.structuredOutput?`text-green-600`:`text-muted-foreground`)},F(e.$t(`app.structuredOutput`)),3)]),d(`label`,gr,[u(x($),{modelValue:m.value.vision,"onUpdate:modelValue":_[5]||=e=>m.value.vision=e,binary:!0,"input-id":`add-vision`},null,8,[`modelValue`]),d(`span`,{class:y(m.value.vision?`text-green-600`:`text-muted-foreground`)},F(e.$t(`app.visionSupported`)),3)]),g.value===`registry`?(p(),f(`span`,_r,[_[7]||=d(`i`,{class:`pi pi-database mr-0.5`},null,-1),r(F(e.$t(`app.modelCapsRegistry`)),1)])):M(``,!0)])])):(p(),n(x(D),{key:1,label:e.$t(`app.addModel`),icon:`pi pi-plus`,severity:`secondary`,text:``,size:`small`,onClick:_[6]||=e=>s.value=!0},null,8,[`label`]))])])]))}}),yr={key:0,class:`flex items-center justify-center py-8`},br={class:`border-b border-border p-4`},xr={class:`m-0 text-lg font-semibold text-foreground`},Sr={class:`mt-1 text-xs text-muted-foreground`},Cr={class:`flex items-center justify-between gap-3 border-b border-border bg-card p-4`},wr={class:`m-0 text-lg font-semibold text-foreground`},Tr={"data-anchor-section":`provider`},Er={"data-anchor-section":`documents`},Dr={"data-anchor-section":`integrations`},Or={"data-anchor-section":`prompts`},kr={key:2,class:`space-y-6`},Ar={key:3,class:`mt-6 flex justify-end gap-2`},jr=`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.
|
|
249
|
-
|
|
250
|
-
{schema}
|
|
251
|
-
|
|
252
|
-
Extraction requirements:
|
|
253
|
-
1. Extract data strictly according to the field names and types defined in the structure
|
|
254
|
-
2. If a field's information is missing from the text, set that field to null
|
|
255
|
-
3. Do not add fields that are not in the structure definition
|
|
256
|
-
4. Maintain data accuracy and completeness`,Mr=`Please extract data from the following text:
|
|
257
|
-
{text}`,Nr=e({__name:`AISettings`,props:o({schemas:{},embedded:{type:Boolean,default:!1}},{visible:{type:Boolean,default:!1},visibleModifiers:{}}),emits:[`update:visible`],setup(e){let t=e,r=_(e,`visible`),{t:i}=ee(),o=C(!1),s=C(!1),c=C(`provider`),l=N(()=>c.value===`documents`?i(`app.settingsDocuments`):c.value===`integrations`?i(`app.settingsIntegrations`):c.value===`prompts`?i(`app.settingsPrompts`):i(`app.settingsProvider`)),h=N(()=>[{key:`provider`,label:i(`app.settingsProvider`),icon:`pi pi-server`},{key:`documents`,label:i(`app.settingsDocuments`),icon:`pi pi-file`},{key:`integrations`,label:i(`app.settingsIntegrations`),icon:`pi pi-send`},{key:`prompts`,label:i(`app.settingsPrompts`),icon:`pi pi-comment`}]),g=C(``),v=C(``),b=C(300),S=C([]),w=C(``),T=C(``),E=C(`unpdf`),O=C(`mineru`),A=C(`-p
|
|
258
|
-
{input}
|
|
259
|
-
-o
|
|
260
|
-
{outputDir}`),j=C(600),P=C(!0),I=C(``),L=C(`https://mineru.net/api/v4`),R=C(`vlm`),z=C(!0),B=C(!0),re=C(!0),H=C(``),U=C(``),W=C(600),G=C(!1),K=C(``),q=C(``),J=C(``),Y=C(!1),X=C(``),oe=C(``),Z=C(!1),Q=C(``),se=C({}),ce=C(``),ue=C(``),de=C(``),fe=C(``),pe=C([]),me=C([]),he=C(!1),ge=C(null),_e=C(null),ve=N(()=>{let e=ge.value?.systemSchemaError||``,t=ge.value?.userSchemaError||``,n=_e.value?.notionFieldMapError||``;return!e&&!t&&!n&&!o.value&&S.value.length>0&&(!Z.value||!!Q.value.trim())&&(E.value!==`mineru`||!!O.value.trim())&&(E.value!==`mineru_api`||!!I.value.trim())&&(E.value!==`external`||!!H.value.trim())});async function ye(){o.value=!0;try{let e=await ae();g.value=e.provider?.baseURL??``,v.value=e.provider?.apiKey??``,b.value=e.provider?.timeout??300,S.value=e.provider?.models??[],w.value=e.prompt?.systemTemplate??jr,T.value=e.prompt?.userTemplate??Mr,E.value=[`unpdf`,`mineru`,`mineru_api`,`external`].includes(e.pdf?.converter??``)?e.pdf?.converter:`unpdf`,I.value=e.pdf?.mineruApi?.token??``,L.value=e.pdf?.mineruApi?.baseURL??`https://mineru.net/api/v4`,R.value=e.pdf?.mineruApi?.modelVersion??`vlm`,z.value=e.pdf?.mineruApi?.isOcr??!0,B.value=e.pdf?.mineruApi?.enableFormula??!0,re.value=e.pdf?.mineruApi?.enableTable??!0,O.value=e.pdf?.mineru?.command??`mineru`,A.value=(e.pdf?.mineru?.args??[`-p`,`{input}`,`-o`,`{outputDir}`]).join(`
|
|
261
|
-
`),j.value=e.pdf?.mineru?.timeout??600,P.value=e.pdf?.mineru?.fallbackToUnpdf??!0,H.value=e.pdf?.external?.command??``,U.value=(e.pdf?.external?.args??[]).join(`
|
|
262
|
-
`),W.value=e.pdf?.external?.timeout??600,G.value=!!e.langfuse,K.value=e.langfuse?.publicKey??``,q.value=e.langfuse?.secretKey??``,J.value=e.langfuse?.host??``,Y.value=!!e.webhook?.enabled,X.value=e.webhook?.url??``,oe.value=e.webhook?.secret??``,Z.value=!!e.notion?.enabled,Q.value=e.notion?.token??``,se.value=e.notion?.schemas??{},await _e.value?.loadSelectedNotionSchemaFields()}catch{v.value=``,S.value=[],w.value=jr,T.value=Mr}finally{o.value=!1}}async function be(){if(ve.value){s.value=!0;try{_e.value?.persistSelectedNotionSchema(),await ie({provider:{baseURL:g.value,apiKey:v.value,timeout:b.value,models:S.value},prompt:{systemTemplate:w.value,userTemplate:T.value},extraction:{outputDir:`.aiex/extracted`},pdf:{converter:E.value,mineru:O.value.trim()?{command:O.value,args:A.value.split(`
|
|
263
|
-
`).map(e=>e.trim()).filter(Boolean),timeout:j.value,fallbackToUnpdf:P.value}:void 0,mineruApi:{token:I.value.trim(),baseURL:L.value.trim()||void 0,modelVersion:R.value.trim()||void 0,isOcr:z.value,enableFormula:B.value,enableTable:re.value},external:H.value.trim()?{command:H.value,args:U.value.split(`
|
|
264
|
-
`).map(e=>e.trim()).filter(Boolean),timeout:W.value}:void 0},langfuse:G.value?{publicKey:K.value,secretKey:q.value,host:J.value||void 0}:void 0,notion:{enabled:Z.value,token:Q.value,schemas:se.value},webhook:{enabled:Y.value,url:X.value.trim(),secret:oe.value.trim()||void 0}}),t.embedded||(r.value=!1),V.success(i(`app.settingsSaved`))}catch(e){V.error(e.message||i(`app.toastSaveFailed`))}finally{s.value=!1}}}return a(()=>{ye()}),(t,i)=>(p(),n(m(e.embedded?`section`:x(ne)),{visible:r.value,"onUpdate:visible":i[76]||=e=>r.value=e,modal:``,header:t.$t(`app.aiSettings`),style:te(e.embedded?void 0:{width:`680px`}),draggable:!1,class:y(e.embedded?`flex h-full min-h-0 flex-col bg-background`:void 0)},{default:k(()=>[o.value?(p(),f(`div`,yr,[...i[77]||=[d(`i`,{class:`pi pi-spin pi-spinner text-xl`},null,-1)]])):e.embedded?(p(),n(le,{key:1,"active-key":c.value,"onUpdate:activeKey":i[37]||=e=>c.value=e,anchors:h.value},{"sidebar-header":k(()=>[d(`div`,br,[d(`h2`,xr,F(t.$t(`app.settings`)),1),d(`p`,Sr,F(t.$t(`app.settingsSubtitle`)),1)])]),header:k(()=>[d(`div`,Cr,[d(`h2`,wr,F(l.value),1),u(x(D),{label:t.$t(`app.save`),icon:`pi pi-check`,loading:s.value,disabled:!ve.value,size:`small`,onClick:be},null,8,[`label`,`loading`,`disabled`])])]),default:k(()=>[d(`section`,Tr,[u(vr,{"base-u-r-l":g.value,"onUpdate:baseURL":i[0]||=e=>g.value=e,"api-key":v.value,"onUpdate:apiKey":i[1]||=e=>v.value=e,timeout:b.value,"onUpdate:timeout":i[2]||=e=>b.value=e,models:S.value,"onUpdate:models":i[3]||=e=>S.value=e},null,8,[`base-u-r-l`,`api-key`,`timeout`,`models`])]),d(`section`,Er,[u(Hn,{"pdf-converter":E.value,"onUpdate:pdfConverter":i[4]||=e=>E.value=e,"mineru-command":O.value,"onUpdate:mineruCommand":i[5]||=e=>O.value=e,"mineru-args":A.value,"onUpdate:mineruArgs":i[6]||=e=>A.value=e,"mineru-timeout":j.value,"onUpdate:mineruTimeout":i[7]||=e=>j.value=e,"mineru-fallback-to-unpdf":P.value,"onUpdate:mineruFallbackToUnpdf":i[8]||=e=>P.value=e,"mineru-api-token":I.value,"onUpdate:mineruApiToken":i[9]||=e=>I.value=e,"mineru-api-base-url":L.value,"onUpdate:mineruApiBaseUrl":i[10]||=e=>L.value=e,"mineru-api-model":R.value,"onUpdate:mineruApiModel":i[11]||=e=>R.value=e,"mineru-api-is-ocr":z.value,"onUpdate:mineruApiIsOcr":i[12]||=e=>z.value=e,"mineru-api-enable-formula":B.value,"onUpdate:mineruApiEnableFormula":i[13]||=e=>B.value=e,"mineru-api-enable-table":re.value,"onUpdate:mineruApiEnableTable":i[14]||=e=>re.value=e,"external-command":H.value,"onUpdate:externalCommand":i[15]||=e=>H.value=e,"external-args":U.value,"onUpdate:externalArgs":i[16]||=e=>U.value=e,"external-timeout":W.value,"onUpdate:externalTimeout":i[17]||=e=>W.value=e},null,8,[`pdf-converter`,`mineru-command`,`mineru-args`,`mineru-timeout`,`mineru-fallback-to-unpdf`,`mineru-api-token`,`mineru-api-base-url`,`mineru-api-model`,`mineru-api-is-ocr`,`mineru-api-enable-formula`,`mineru-api-enable-table`,`external-command`,`external-args`,`external-timeout`])]),d(`section`,Dr,[u(an,{ref_key:`integrationSettingsRef`,ref:_e,schemas:e.schemas,"langfuse-enabled":G.value,"onUpdate:langfuseEnabled":i[18]||=e=>G.value=e,"langfuse-public-key":K.value,"onUpdate:langfusePublicKey":i[19]||=e=>K.value=e,"langfuse-secret-key":q.value,"onUpdate:langfuseSecretKey":i[20]||=e=>q.value=e,"langfuse-host":J.value,"onUpdate:langfuseHost":i[21]||=e=>J.value=e,"webhook-enabled":Y.value,"onUpdate:webhookEnabled":i[22]||=e=>Y.value=e,"webhook-url":X.value,"onUpdate:webhookUrl":i[23]||=e=>X.value=e,"webhook-secret":oe.value,"onUpdate:webhookSecret":i[24]||=e=>oe.value=e,"notion-enabled":Z.value,"onUpdate:notionEnabled":i[25]||=e=>Z.value=e,"notion-token":Q.value,"onUpdate:notionToken":i[26]||=e=>Q.value=e,"notion-schemas":se.value,"onUpdate:notionSchemas":i[27]||=e=>se.value=e,"selected-notion-schema":ce.value,"onUpdate:selectedNotionSchema":i[28]||=e=>ce.value=e,"notion-database-id":ue.value,"onUpdate:notionDatabaseId":i[29]||=e=>ue.value=e,"notion-title-property":de.value,"onUpdate:notionTitleProperty":i[30]||=e=>de.value=e,"notion-field-map":fe.value,"onUpdate:notionFieldMap":i[31]||=e=>fe.value=e,"notion-properties":pe.value,"onUpdate:notionProperties":i[32]||=e=>pe.value=e,"notion-schema-fields":me.value,"onUpdate:notionSchemaFields":i[33]||=e=>me.value=e,"notion-advanced-open":he.value,"onUpdate:notionAdvancedOpen":i[34]||=e=>he.value=e},null,8,[`schemas`,`langfuse-enabled`,`langfuse-public-key`,`langfuse-secret-key`,`langfuse-host`,`webhook-enabled`,`webhook-url`,`webhook-secret`,`notion-enabled`,`notion-token`,`notion-schemas`,`selected-notion-schema`,`notion-database-id`,`notion-title-property`,`notion-field-map`,`notion-properties`,`notion-schema-fields`,`notion-advanced-open`])]),d(`section`,Or,[u($n,{ref_key:`promptSettingsRef`,ref:ge,"system-template":w.value,"onUpdate:systemTemplate":i[35]||=e=>w.value=e,"user-template":T.value,"onUpdate:userTemplate":i[36]||=e=>T.value=e},null,8,[`system-template`,`user-template`])])]),_:1},8,[`active-key`,`anchors`])):(p(),f(`div`,kr,[u(vr,{"base-u-r-l":g.value,"onUpdate:baseURL":i[38]||=e=>g.value=e,"api-key":v.value,"onUpdate:apiKey":i[39]||=e=>v.value=e,timeout:b.value,"onUpdate:timeout":i[40]||=e=>b.value=e,models:S.value,"onUpdate:models":i[41]||=e=>S.value=e},null,8,[`base-u-r-l`,`api-key`,`timeout`,`models`]),u(Hn,{"pdf-converter":E.value,"onUpdate:pdfConverter":i[42]||=e=>E.value=e,"mineru-command":O.value,"onUpdate:mineruCommand":i[43]||=e=>O.value=e,"mineru-args":A.value,"onUpdate:mineruArgs":i[44]||=e=>A.value=e,"mineru-timeout":j.value,"onUpdate:mineruTimeout":i[45]||=e=>j.value=e,"mineru-fallback-to-unpdf":P.value,"onUpdate:mineruFallbackToUnpdf":i[46]||=e=>P.value=e,"mineru-api-token":I.value,"onUpdate:mineruApiToken":i[47]||=e=>I.value=e,"mineru-api-base-url":L.value,"onUpdate:mineruApiBaseUrl":i[48]||=e=>L.value=e,"mineru-api-model":R.value,"onUpdate:mineruApiModel":i[49]||=e=>R.value=e,"mineru-api-is-ocr":z.value,"onUpdate:mineruApiIsOcr":i[50]||=e=>z.value=e,"mineru-api-enable-formula":B.value,"onUpdate:mineruApiEnableFormula":i[51]||=e=>B.value=e,"mineru-api-enable-table":re.value,"onUpdate:mineruApiEnableTable":i[52]||=e=>re.value=e,"external-command":H.value,"onUpdate:externalCommand":i[53]||=e=>H.value=e,"external-args":U.value,"onUpdate:externalArgs":i[54]||=e=>U.value=e,"external-timeout":W.value,"onUpdate:externalTimeout":i[55]||=e=>W.value=e},null,8,[`pdf-converter`,`mineru-command`,`mineru-args`,`mineru-timeout`,`mineru-fallback-to-unpdf`,`mineru-api-token`,`mineru-api-base-url`,`mineru-api-model`,`mineru-api-is-ocr`,`mineru-api-enable-formula`,`mineru-api-enable-table`,`external-command`,`external-args`,`external-timeout`]),u(an,{ref_key:`integrationSettingsRef`,ref:_e,schemas:e.schemas,"langfuse-enabled":G.value,"onUpdate:langfuseEnabled":i[56]||=e=>G.value=e,"langfuse-public-key":K.value,"onUpdate:langfusePublicKey":i[57]||=e=>K.value=e,"langfuse-secret-key":q.value,"onUpdate:langfuseSecretKey":i[58]||=e=>q.value=e,"langfuse-host":J.value,"onUpdate:langfuseHost":i[59]||=e=>J.value=e,"webhook-enabled":Y.value,"onUpdate:webhookEnabled":i[60]||=e=>Y.value=e,"webhook-url":X.value,"onUpdate:webhookUrl":i[61]||=e=>X.value=e,"webhook-secret":oe.value,"onUpdate:webhookSecret":i[62]||=e=>oe.value=e,"notion-enabled":Z.value,"onUpdate:notionEnabled":i[63]||=e=>Z.value=e,"notion-token":Q.value,"onUpdate:notionToken":i[64]||=e=>Q.value=e,"notion-schemas":se.value,"onUpdate:notionSchemas":i[65]||=e=>se.value=e,"selected-notion-schema":ce.value,"onUpdate:selectedNotionSchema":i[66]||=e=>ce.value=e,"notion-database-id":ue.value,"onUpdate:notionDatabaseId":i[67]||=e=>ue.value=e,"notion-title-property":de.value,"onUpdate:notionTitleProperty":i[68]||=e=>de.value=e,"notion-field-map":fe.value,"onUpdate:notionFieldMap":i[69]||=e=>fe.value=e,"notion-properties":pe.value,"onUpdate:notionProperties":i[70]||=e=>pe.value=e,"notion-schema-fields":me.value,"onUpdate:notionSchemaFields":i[71]||=e=>me.value=e,"notion-advanced-open":he.value,"onUpdate:notionAdvancedOpen":i[72]||=e=>he.value=e},null,8,[`schemas`,`langfuse-enabled`,`langfuse-public-key`,`langfuse-secret-key`,`langfuse-host`,`webhook-enabled`,`webhook-url`,`webhook-secret`,`notion-enabled`,`notion-token`,`notion-schemas`,`selected-notion-schema`,`notion-database-id`,`notion-title-property`,`notion-field-map`,`notion-properties`,`notion-schema-fields`,`notion-advanced-open`]),u($n,{ref_key:`promptSettingsRef`,ref:ge,"system-template":w.value,"onUpdate:systemTemplate":i[73]||=e=>w.value=e,"user-template":T.value,"onUpdate:userTemplate":i[74]||=e=>T.value=e},null,8,[`system-template`,`user-template`])])),e.embedded?M(``,!0):(p(),f(`div`,Ar,[u(x(D),{label:t.$t(`app.cancel`),severity:`secondary`,text:``,onClick:i[75]||=e=>r.value=!1},null,8,[`label`]),u(x(D),{label:t.$t(`app.save`),icon:`pi pi-check`,loading:s.value,disabled:!ve.value,onClick:be},null,8,[`label`,`loading`,`disabled`])]))]),_:1},40,[`visible`,`header`,`style`,`class`]))}});export{Nr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { sanitizeMigrationName } from '@/infrastructure/schema/migration-name'
|
|
File without changes
|