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
|
@@ -0,0 +1,264 @@
|
|
|
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{c as re,h as ie,o as V,p as H,r as ae,t as oe,v as U}from"./api-client-EJKabzZK.js";import{a as W,i as G,n as K,r as se,s as q,t as J}from"./textarea-DMpqBhjw.js";var Y={class:`grid h-full min-h-0 min-w-0 grid-cols-[280px_minmax(0,1fr)] bg-background`},ce={class:`flex min-h-0 flex-col border-r border-border bg-card`},le={class:`min-h-0 flex-1 overflow-y-auto p-2`},ue=[`onClick`],de={class:`flex min-h-0 flex-col bg-background`},fe={class:`mx-auto flex max-w-5xl flex-col gap-8`},pe=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`,Y,[d(`section`,ce,[E(t.$slots,`sidebar-header`),d(`nav`,le,[(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,ue))),128))])]),d(`section`,de,[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`,fe,[E(t.$slots,`default`),d(`div`,{class:`shrink-0`,style:te({height:`${e.bottomSpacer}px`}),"aria-hidden":`true`},null,4)])],544)])]))}}),X={name:`MinusIcon`,extends:w};function Z(e){return _e(e)||ge(e)||he(e)||me()}function me(){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 he(e,t){if(e){if(typeof e==`string`)return ve(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)?ve(e,t):void 0}}function ge(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function _e(e){if(Array.isArray(e))return ve(e)}function ve(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()),Z(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)}X.render=ye;var be=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`}}),xe={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:be,provide:function(){return{$pcCheckbox: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 Se(e,t,n){return(t=Ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e){var t=we(e,`string`);return Q(t)==`symbol`?t:t+``}function we(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)}function Te(e){return ke(e)||Oe(e)||De(e)||Ee()}function Ee(){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 De(e,t){if(e){if(typeof e==`string`)return Ae(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)?Ae(e,t):void 0}}function Oe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ke(e){if(Array.isArray(e))return Ae(e)}function Ae(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:xe,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(Te(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(Se({invalid:this.$invalid,checked:this.checked,disabled:this.disabled,filled:this.$variant===`filled`},this.size,this.size))}},components:{CheckIcon:q,MinusIcon:X}},je=[`data-p-checked`,`data-p-indeterminate`,`data-p-disabled`,`data-p`],Me=[`id`,`value`,`name`,`checked`,`tabindex`,`disabled`,`readonly`,`required`,`aria-labelledby`,`aria-label`,`aria-invalid`],Ne=[`data-p`];function Pe(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,Me),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,Ne)],16,je)}$.render=Pe;var Fe={name:`EyeIcon`,extends:w};function Ie(e){return Be(e)||ze(e)||Re(e)||Le()}function Le(){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 Re(e,t){if(e){if(typeof e==`string`)return Ve(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)?Ve(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 Ve(e)}function Ve(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 He(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()),Ie(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)}Fe.render=He;var Ue={name:`EyeSlashIcon`,extends:w};function We(e){return Je(e)||qe(e)||Ke(e)||Ge()}function Ge(){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 Ke(e,t){if(e){if(typeof e==`string`)return Ye(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)?Ye(e,t):void 0}}function qe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Je(e){if(Array.isArray(e))return Ye(e)}function Ye(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 Xe(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()),We(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)}Ue.render=Xe;var Ze=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}}}}),Qe={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:Ze,provide:function(){return{$pcPassword:this,$parentInstance:this}}};function $e(e){"@babel/helpers - typeof";return $e=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},$e(e)}function et(e,t,n){return(t=tt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tt(e){var t=nt(e,`string`);return $e(t)==`symbol`?t:t+``}function nt(e,t){if($e(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($e(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var rt={name:`Password`,extends:Qe,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){se.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(et({},this.meter?.strength,this.meter?.strength))},overlayDataP:function(){return T(et({},`portal-`+this.appendTo,`portal-`+this.appendTo))}},components:{InputText:G,Portal:R,EyeSlashIcon:Ue,EyeIcon:Fe,TimesIcon:z}};function it(e){"@babel/helpers - typeof";return it=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},it(e)}function at(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 ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?at(Object(n),!0).forEach(function(t){st(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function st(e,t,n){return(t=ct(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ct(e){var t=lt(e,`string`);return it(t)==`symbol`?t:t+``}function lt(e,t){if(it(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(it(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ut=[`data-p`],dt=[`id`,`data-p`],ft=[`data-p`];function pt(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`},ot(ot(ot({},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,ft)],16),d(`div`,l({class:e.cx(`meterText`)},e.ptm(`meterText`)),F(a.infoText),17)],16)]}),E(e.$slots,`footer`)],16,dt)):M(``,!0)]}),_:3},16,[`onEnter`,`onLeave`,`onAfterLeave`])]}),_:3},8,[`appendTo`])],16,ut)}rt.render=pt;var mt={class:`space-y-6`},ht={class:`text-sm font-semibold mb-3 text-foreground`},gt={class:`space-y-3`},_t={class:`flex items-center gap-2`},vt={for:`lf-enabled`,class:`text-sm cursor-pointer`},yt={key:0,class:`space-y-3 pl-6 border-l-2 border-border`},bt={class:`flex flex-col gap-1`},xt={class:`text-xs text-muted-foreground`},St={class:`flex flex-col gap-1`},Ct={class:`text-xs text-muted-foreground`},wt={class:`flex flex-col gap-1`},Tt={class:`text-xs text-muted-foreground`},Et={class:`text-sm font-semibold mb-3 text-foreground`},Dt={class:`space-y-3`},Ot={class:`flex items-center gap-2`},kt={for:`webhook-enabled`,class:`text-sm cursor-pointer`},At={key:0,class:`space-y-3 pl-6 border-l-2 border-border`},jt={class:`flex flex-col gap-1`},Mt={class:`text-xs text-muted-foreground`},Nt={class:`flex flex-col gap-1`},Pt={class:`text-xs text-muted-foreground`},Ft={class:`text-xs text-muted-foreground`},It={class:`text-sm font-semibold mb-3 text-foreground`},Lt={class:`space-y-3`},Rt={class:`flex items-center gap-2`},zt={for:`notion-enabled`,class:`text-sm cursor-pointer`},Bt={key:0,class:`space-y-3 pl-6 border-l-2 border-border`},Vt={class:`flex flex-col gap-1`},Ht={class:`text-xs text-muted-foreground`},Ut={class:`flex flex-col gap-1`},Wt={class:`text-xs text-muted-foreground`},Gt={class:`flex flex-col gap-1`},Kt={class:`text-xs text-muted-foreground`},qt={class:`flex items-center gap-2`},Jt={key:0,class:`text-xs text-green-600`},Yt={class:`rounded border border-border`},Xt={key:0,class:`space-y-3 border-t border-border p-3`},Zt={class:`flex flex-col gap-1`},Qt={class:`text-xs text-muted-foreground`},$t={class:`flex flex-col gap-1`},en={class:`flex items-center justify-between gap-2`},tn={class:`text-xs text-muted-foreground`},nn={key:0,class:`text-xs text-muted-foreground`},rn={key:0,class:`text-xs text-red-500 mt-1`},an={class:`text-xs text-muted-foreground p-2 rounded border border-border`},on=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 ie(){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),H()});async function H(){let e=v.value;if(E.value=[],!e){ie();return}try{E.value=z(await V(`${e}.json`))}catch{E.value=[]}ie()}t({persistSelectedNotionSchema:ne,loadSelectedNotionSchemaFields:H,notionFieldMapError:P});async function ae(){if(!v.value){U.error(k(`app.toastSelectSchema`));return}if(!h.value.trim()){U.error(k(`app.toastEnterToken`));return}if(!b.value.trim()){U.error(k(`app.toastEnterDatabaseId`));return}if(P.value){U.error(P.value);return}j.value=!0;try{let e=await re({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(),U.success(k(`app.notionConnected`,{count:T.value.length}))}catch(e){U.error(e instanceof Error?e.message:k(`app.notionConnectionFailed`))}finally{j.value=!1}}return(e,t)=>(p(),f(`div`,mt,[d(`section`,null,[d(`h3`,ht,F(e.$t(`app.langfuseTracing`)),1),d(`div`,gt,[d(`div`,_t,[u(x($),{modelValue:r.value,"onUpdate:modelValue":t[0]||=e=>r.value=e,binary:!0,"input-id":`lf-enabled`},null,8,[`modelValue`]),d(`label`,vt,F(e.$t(`app.enabled`)),1)]),r.value?(p(),f(`div`,yt,[d(`div`,bt,[d(`label`,xt,F(e.$t(`app.secretKey`)),1),u(x(rt),{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`,St,[d(`label`,Ct,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`,wt,[d(`label`,Tt,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`,Et,F(e.$t(`app.webhookNotification`)),1),d(`div`,Dt,[d(`div`,Ot,[u(x($),{modelValue:s.value,"onUpdate:modelValue":t[4]||=e=>s.value=e,binary:!0,"input-id":`webhook-enabled`},null,8,[`modelValue`]),d(`label`,kt,F(e.$t(`app.enabled`)),1)]),s.value?(p(),f(`div`,At,[d(`div`,jt,[d(`label`,Mt,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`,Nt,[d(`label`,Pt,F(e.$t(`app.webhookSecret`)),1),u(x(rt),{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`,Ft,F(e.$t(`app.webhookHelp`)),1)])):M(``,!0)])]),d(`section`,null,[d(`h3`,It,F(e.$t(`app.notionExport`)),1),d(`div`,Lt,[d(`div`,Rt,[u(x($),{modelValue:m.value,"onUpdate:modelValue":t[7]||=e=>m.value=e,binary:!0,"input-id":`notion-enabled`},null,8,[`modelValue`]),d(`label`,zt,F(e.$t(`app.enabled`)),1)]),m.value?(p(),f(`div`,Bt,[d(`div`,Vt,[d(`label`,Ht,F(e.$t(`app.integrationToken`)),1),u(x(rt),{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`,Ut,[d(`label`,Wt,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`,Gt,[d(`label`,Kt,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`,qt,[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`,Jt,F(L.value),1)):M(``,!0)]),d(`div`,Yt,[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`,Xt,[d(`div`,Zt,[d(`label`,Qt,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`,$t,[d(`div`,en,[d(`label`,tn,F(e.$t(`app.fieldMapJson`)),1),E.value.length>0?(p(),f(`span`,nn,F(e.$t(`app.fieldsMapped`,{count:I.value,total:E.value.length})),1)):M(``,!0)]),u(x(J),{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`,rn,F(P.value),1)):M(``,!0)]),d(`div`,an,F(e.$t(`app.notionMappingHint`)),1)])):M(``,!0)])])):M(``,!0)])])]))}}),sn={class:`space-y-6`},cn={class:`text-sm font-semibold mb-3 text-foreground`},ln={class:`space-y-3`},un={class:`flex flex-col gap-1`},dn={class:`text-xs text-muted-foreground`},fn={key:0,class:`space-y-3 pl-6 border-l-2 border-border`},pn={class:`flex items-center gap-2`},mn={for:`liteparse-ocr-enabled`,class:`text-sm cursor-pointer`},hn={class:`flex flex-col gap-1`},gn={class:`text-xs text-muted-foreground`},_n={class:`flex flex-col gap-1`},vn={class:`text-xs text-muted-foreground`},yn={class:`flex flex-col gap-1`},bn={class:`text-xs text-muted-foreground`},xn={class:`text-xs text-muted-foreground p-2 rounded border border-border`},Sn={key:1,class:`space-y-3 pl-6 border-l-2 border-border`},Cn={class:`flex flex-col gap-1`},wn={class:`text-xs text-muted-foreground`},Tn={class:`flex flex-col gap-1`},En={class:`text-xs text-muted-foreground`},Dn={class:`flex flex-col gap-1`},On={class:`text-xs text-muted-foreground`},kn={class:`flex items-center gap-2`},An={for:`mineru-fallback`,class:`text-sm cursor-pointer`},jn={class:`text-xs text-muted-foreground p-2 rounded border border-border`},Mn={key:2,class:`space-y-3 pl-6 border-l-2 border-border`},Nn={class:`flex flex-col gap-1`},Pn={class:`text-xs text-muted-foreground`},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 items-center gap-2`},Bn={for:`mineru-api-is-ocr`,class:`text-sm cursor-pointer`},Vn={class:`flex items-center gap-2`},Hn={for:`mineru-api-enable-formula`,class:`text-sm cursor-pointer`},Un={class:`flex items-center gap-2`},Wn={for:`mineru-api-enable-table`,class:`text-sm cursor-pointer`},Gn={key:3,class:`space-y-3 pl-6 border-l-2 border-border`},Kn={class:`flex flex-col gap-1`},qn={class:`text-xs text-muted-foreground`},Jn={class:`flex flex-col gap-1`},Yn={class:`text-xs text-muted-foreground`},Xn={class:`flex flex-col gap-1`},Zn={class:`text-xs text-muted-foreground`},Qn={class:`text-xs text-muted-foreground p-2 rounded border border-border`},$n=e({__name:`PdfSettings`,props:{pdfConverter:{required:!0},pdfConverterModifiers:{},liteparseOcrEnabled:{type:Boolean,required:!0},liteparseOcrEnabledModifiers:{},liteparseOcrLanguage:{required:!0},liteparseOcrLanguageModifiers:{},liteparseTessdataPath:{required:!0},liteparseTessdataPathModifiers:{},liteparseOcrServerUrl:{required:!0},liteparseOcrServerUrlModifiers:{},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:liteparseOcrEnabled`,`update:liteparseOcrLanguage`,`update:liteparseTessdataPath`,`update:liteparseOcrServerUrl`,`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,`liteparseOcrEnabled`),i=_(e,`liteparseOcrLanguage`),a=_(e,`liteparseTessdataPath`),o=_(e,`liteparseOcrServerUrl`),s=_(e,`mineruCommand`),c=_(e,`mineruArgs`),l=_(e,`mineruTimeout`),m=_(e,`mineruFallbackToUnpdf`),h=_(e,`mineruApiToken`),g=_(e,`mineruApiBaseUrl`),v=_(e,`mineruApiModel`),y=_(e,`mineruApiIsOcr`),b=_(e,`mineruApiEnableFormula`),S=_(e,`mineruApiEnableTable`),C=_(e,`externalCommand`),w=_(e,`externalArgs`),T=_(e,`externalTimeout`),{t:E}=ee(),D=N(()=>[{label:E(`app.pdfConverterUnpdf`),value:`unpdf`},{label:E(`app.pdfConverterLiteparse`),value:`liteparse`},{label:E(`app.pdfConverterMineru`),value:`mineru`},{label:E(`app.pdfConverterMineruApi`),value:`mineru_api`},{label:E(`app.pdfConverterExternal`),value:`external`}]);return(e,_)=>(p(),f(`div`,sn,[d(`section`,null,[d(`h3`,cn,F(e.$t(`app.pdfConversion`)),1),d(`div`,ln,[d(`div`,un,[d(`label`,dn,F(e.$t(`app.converter`)),1),u(x(K),{modelValue:t.value,"onUpdate:modelValue":_[0]||=e=>t.value=e,options:D.value,"option-label":`label`,"option-value":`value`,size:`small`},null,8,[`modelValue`,`options`])]),t.value===`liteparse`?(p(),f(`div`,fn,[d(`div`,pn,[u(x($),{modelValue:n.value,"onUpdate:modelValue":_[1]||=e=>n.value=e,binary:!0,"input-id":`liteparse-ocr-enabled`},null,8,[`modelValue`]),d(`label`,mn,F(e.$t(`app.liteparseOcrEnabled`)),1)]),d(`div`,hn,[d(`label`,gn,F(e.$t(`app.liteparseOcrLanguage`)),1),u(x(G),{modelValue:i.value,"onUpdate:modelValue":_[2]||=e=>i.value=e,size:`small`,placeholder:`eng`},null,8,[`modelValue`])]),d(`div`,_n,[d(`label`,vn,F(e.$t(`app.liteparseTessdataPath`)),1),u(x(G),{modelValue:a.value,"onUpdate:modelValue":_[3]||=e=>a.value=e,size:`small`,placeholder:`/path/to/tessdata`},null,8,[`modelValue`])]),d(`div`,yn,[d(`label`,bn,F(e.$t(`app.liteparseOcrServerUrl`)),1),u(x(G),{modelValue:o.value,"onUpdate:modelValue":_[4]||=e=>o.value=e,size:`small`,placeholder:`http://localhost:8080`},null,8,[`modelValue`])]),d(`div`,xn,F(e.$t(`app.liteparseOcrHint`)),1)])):M(``,!0),t.value===`mineru`?(p(),f(`div`,Sn,[d(`div`,Cn,[d(`label`,wn,F(e.$t(`app.command`)),1),u(x(G),{modelValue:s.value,"onUpdate:modelValue":_[5]||=e=>s.value=e,size:`small`,placeholder:`mineru`},null,8,[`modelValue`])]),d(`div`,Tn,[d(`label`,En,F(e.$t(`app.arguments`)),1),u(x(J),{modelValue:c.value,"onUpdate:modelValue":_[6]||=e=>c.value=e,rows:`4`,"auto-resize":``,class:`text-xs font-mono`},null,8,[`modelValue`])]),d(`div`,Dn,[d(`label`,On,F(e.$t(`app.timeoutLabel`)),1),u(x(G),{value:String(l.value),type:`number`,size:`small`,placeholder:`600`,min:1,onInput:_[7]||=e=>l.value=Number(e.target.value)||600},null,8,[`value`])]),d(`div`,kn,[u(x($),{modelValue:m.value,"onUpdate:modelValue":_[8]||=e=>m.value=e,binary:!0,"input-id":`mineru-fallback`},null,8,[`modelValue`]),d(`label`,An,F(e.$t(`app.fallbackToBuiltin`)),1)]),d(`div`,jn,[r(F(e.$t(`app.placeholders`))+`: `,1),_[18]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{input}`,-1),_[19]||=r(`, `,-1),_[20]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{outputDir}`,-1),_[21]||=r(`, `,-1),_[22]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{basename}`,-1)])])):M(``,!0),t.value===`mineru_api`?(p(),f(`div`,Mn,[d(`div`,Nn,[d(`label`,Pn,F(e.$t(`app.mineruApiTokenLabel`)),1),u(x(rt),{modelValue:h.value,"onUpdate:modelValue":_[9]||=e=>h.value=e,feedback:!1,"toggle-mask":``,size:`small`,placeholder:e.$t(`app.mineruApiTokenPlaceholder`),"input-class":`w-full`},null,8,[`modelValue`,`placeholder`])]),d(`div`,Fn,[d(`label`,In,F(e.$t(`app.mineruApiBaseUrlLabel`)),1),u(x(G),{modelValue:g.value,"onUpdate:modelValue":_[10]||=e=>g.value=e,size:`small`,placeholder:`https://mineru.net/api/v4`},null,8,[`modelValue`])]),d(`div`,Ln,[d(`label`,Rn,F(e.$t(`app.mineruApiModelLabel`)),1),u(x(K),{modelValue:v.value,"onUpdate:modelValue":_[11]||=e=>v.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`,zn,[u(x($),{modelValue:y.value,"onUpdate:modelValue":_[12]||=e=>y.value=e,binary:!0,"input-id":`mineru-api-is-ocr`},null,8,[`modelValue`]),d(`label`,Bn,F(e.$t(`app.mineruApiIsOcrLabel`)),1)]),d(`div`,Vn,[u(x($),{modelValue:b.value,"onUpdate:modelValue":_[13]||=e=>b.value=e,binary:!0,"input-id":`mineru-api-enable-formula`},null,8,[`modelValue`]),d(`label`,Hn,F(e.$t(`app.mineruApiEnableFormulaLabel`)),1)]),d(`div`,Un,[u(x($),{modelValue:S.value,"onUpdate:modelValue":_[14]||=e=>S.value=e,binary:!0,"input-id":`mineru-api-enable-table`},null,8,[`modelValue`]),d(`label`,Wn,F(e.$t(`app.mineruApiEnableTableLabel`)),1)])])):M(``,!0),t.value===`external`?(p(),f(`div`,Gn,[d(`div`,Kn,[d(`label`,qn,F(e.$t(`app.command`)),1),u(x(G),{modelValue:C.value,"onUpdate:modelValue":_[15]||=e=>C.value=e,size:`small`,placeholder:`pdf2markdown`},null,8,[`modelValue`])]),d(`div`,Jn,[d(`label`,Yn,F(e.$t(`app.arguments`)),1),u(x(J),{modelValue:w.value,"onUpdate:modelValue":_[16]||=e=>w.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`,Xn,[d(`label`,Zn,F(e.$t(`app.timeoutLabel`)),1),u(x(G),{value:String(T.value),type:`number`,size:`small`,placeholder:`600`,min:1,onInput:_[17]||=e=>T.value=Number(e.target.value)||600},null,8,[`value`])]),d(`div`,Qn,[r(F(e.$t(`app.placeholders`))+`: `,1),_[23]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{input}`,-1),_[24]||=r(`, `,-1),_[25]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{outputDir}`,-1),_[26]||=r(`, `,-1),_[27]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{basename}`,-1),r(`. `+F(e.$t(`app.externalHint`)),1)])])):M(``,!0)])])]))}}),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={key:0,class:`text-xs text-red-500 mt-1`},or={class:`flex flex-col gap-1`},sr={class:`text-xs text-muted-foreground`},cr={key:0,class:`text-xs text-red-500 mt-1`},lr={class:`text-xs text-muted-foreground p-2 rounded border border-border`},ur=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`,er,[d(`section`,null,[d(`h3`,tr,F(e.$t(`app.promptTemplates`)),1),d(`div`,nr,[d(`div`,rr,[d(`label`,ir,F(e.$t(`app.systemPrompt`)),1),u(x(J),{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`,ar,F(a.value),1)):M(``,!0)]),d(`div`,or,[d(`label`,sr,F(e.$t(`app.userPromptTemplate`)),1),u(x(J),{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`,cr,F(o.value),1)):M(``,!0)]),d(`div`,lr,F(e.$t(`app.promptPlaceholderHint`)),1)])])]))}}),dr={class:`space-y-6`},fr={class:`text-sm font-semibold mb-3 text-foreground`},pr={class:`space-y-3`},mr={class:`flex flex-col gap-1`},hr={class:`text-xs text-muted-foreground`},gr={class:`flex flex-col gap-1`},_r={class:`text-xs text-muted-foreground`},vr={class:`flex flex-col gap-1`},yr={class:`text-xs text-muted-foreground`},br={class:`text-sm font-semibold mb-3 text-foreground`},xr={class:`space-y-2`},Sr={class:`text-sm font-mono flex-1`},Cr={key:0,class:`flex flex-col gap-2 px-3 py-2 rounded border border-border bg-card`},wr={class:`flex items-center gap-2`},Tr={class:`flex items-center gap-4 text-xs`},Er={class:`flex items-center gap-1.5 cursor-pointer`},Dr={class:`flex items-center gap-1.5 cursor-pointer`},Or={key:0,class:`text-muted-foreground ml-auto`},kr=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`,dr,[d(`section`,null,[d(`h3`,fr,F(e.$t(`app.provider`)),1),d(`div`,pr,[d(`div`,mr,[d(`label`,hr,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`,gr,[d(`label`,_r,F(e.$t(`app.apiKey`)),1),u(x(rt),{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`,vr,[d(`label`,yr,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`,br,F(e.$t(`app.models`)),1),d(`div`,xr,[(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`,Sr,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`,Cr,[d(`div`,wr,[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`,Tr,[d(`label`,Er,[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`,Dr,[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`,Or,[_[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`]))])])]))}}),Ar={key:0,class:`flex items-center justify-center py-8`},jr={class:`border-b border-border p-4`},Mr={class:`m-0 text-lg font-semibold text-foreground`},Nr={class:`mt-1 text-xs text-muted-foreground`},Pr={class:`flex items-center justify-between gap-3 border-b border-border bg-card p-4`},Fr={class:`m-0 text-lg font-semibold text-foreground`},Ir={"data-anchor-section":`provider`},Lr={"data-anchor-section":`documents`},Rr={"data-anchor-section":`integrations`},zr={"data-anchor-section":`prompts`},Br={key:2,class:`space-y-6`},Vr={key:3,class:`mt-6 flex justify-end gap-2`},Hr=`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`,Ur=`Please extract data from the following text:
|
|
257
|
+
{text}`,Wr=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(!1),A=C(`eng`),j=C(``),P=C(``),I=C(`mineru`),L=C(`-p
|
|
258
|
+
{input}
|
|
259
|
+
-o
|
|
260
|
+
{outputDir}`),R=C(600),z=C(!0),B=C(``),re=C(`https://mineru.net/api/v4`),V=C(`vlm`),H=C(!0),W=C(!0),G=C(!0),K=C(``),se=C(``),q=C(600),J=C(!1),Y=C(``),ce=C(``),le=C(``),ue=C(!1),de=C(``),fe=C(``),X=C(!1),Z=C(``),me=C({}),he=C(``),ge=C(``),_e=C(``),ve=C(``),ye=C([]),be=C([]),xe=C(!1),Q=C(null),Se=C(null),Ce=N(()=>{let e=Q.value?.systemSchemaError||``,t=Q.value?.userSchemaError||``,n=Se.value?.notionFieldMapError||``;return!e&&!t&&!n&&!o.value&&S.value.length>0&&(!X.value||!!Z.value.trim())&&(E.value!==`mineru`||!!I.value.trim())&&(E.value!==`mineru_api`||!!B.value.trim())&&(E.value!==`external`||!!K.value.trim())});async function we(){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??Hr,T.value=e.prompt?.userTemplate??Ur,E.value=oe.includes(e.pdf?.converter)?e.pdf?.converter:`unpdf`,O.value=e.pdf?.liteparse?.ocrEnabled??!1,A.value=e.pdf?.liteparse?.ocrLanguage??`eng`,j.value=e.pdf?.liteparse?.tessdataPath??``,P.value=e.pdf?.liteparse?.ocrServerUrl??``,B.value=e.pdf?.mineruApi?.token??``,re.value=e.pdf?.mineruApi?.baseURL??`https://mineru.net/api/v4`,V.value=e.pdf?.mineruApi?.modelVersion??`vlm`,H.value=e.pdf?.mineruApi?.isOcr??!0,W.value=e.pdf?.mineruApi?.enableFormula??!0,G.value=e.pdf?.mineruApi?.enableTable??!0,I.value=e.pdf?.mineru?.command??`mineru`,L.value=(e.pdf?.mineru?.args??[`-p`,`{input}`,`-o`,`{outputDir}`]).join(`
|
|
261
|
+
`),R.value=e.pdf?.mineru?.timeout??600,z.value=e.pdf?.mineru?.fallbackToUnpdf??!0,K.value=e.pdf?.external?.command??``,se.value=(e.pdf?.external?.args??[]).join(`
|
|
262
|
+
`),q.value=e.pdf?.external?.timeout??600,J.value=!!e.langfuse,Y.value=e.langfuse?.publicKey??``,ce.value=e.langfuse?.secretKey??``,le.value=e.langfuse?.host??``,ue.value=!!e.webhook?.enabled,de.value=e.webhook?.url??``,fe.value=e.webhook?.secret??``,X.value=!!e.notion?.enabled,Z.value=e.notion?.token??``,me.value=e.notion?.schemas??{},await Se.value?.loadSelectedNotionSchemaFields()}catch{v.value=``,S.value=[],w.value=Hr,T.value=Ur}finally{o.value=!1}}async function Te(){if(Ce.value){s.value=!0;try{Se.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,liteparse:{ocrEnabled:O.value,ocrLanguage:A.value.trim()||`eng`,tessdataPath:j.value.trim()||void 0,ocrServerUrl:P.value.trim()||void 0},mineru:I.value.trim()?{command:I.value,args:L.value.split(`
|
|
263
|
+
`).map(e=>e.trim()).filter(Boolean),timeout:R.value,fallbackToUnpdf:z.value}:void 0,mineruApi:{token:B.value.trim(),baseURL:re.value.trim()||void 0,modelVersion:V.value.trim()||void 0,isOcr:H.value,enableFormula:W.value,enableTable:G.value},external:K.value.trim()?{command:K.value,args:se.value.split(`
|
|
264
|
+
`).map(e=>e.trim()).filter(Boolean),timeout:q.value}:void 0},langfuse:J.value?{publicKey:Y.value,secretKey:ce.value,host:le.value||void 0}:void 0,notion:{enabled:X.value,token:Z.value,schemas:me.value},webhook:{enabled:ue.value,url:de.value.trim(),secret:fe.value.trim()||void 0}}),t.embedded||(r.value=!1),U.success(i(`app.settingsSaved`))}catch(e){U.error(e.message||i(`app.toastSaveFailed`))}finally{s.value=!1}}}return a(()=>{we()}),(t,i)=>(p(),n(m(e.embedded?`section`:x(ne)),{visible:r.value,"onUpdate:visible":i[84]||=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`,Ar,[...i[85]||=[d(`i`,{class:`pi pi-spin pi-spinner text-xl`},null,-1)]])):e.embedded?(p(),n(pe,{key:1,"active-key":c.value,"onUpdate:activeKey":i[41]||=e=>c.value=e,anchors:h.value},{"sidebar-header":k(()=>[d(`div`,jr,[d(`h2`,Mr,F(t.$t(`app.settings`)),1),d(`p`,Nr,F(t.$t(`app.settingsSubtitle`)),1)])]),header:k(()=>[d(`div`,Pr,[d(`h2`,Fr,F(l.value),1),u(x(D),{label:t.$t(`app.save`),icon:`pi pi-check`,loading:s.value,disabled:!Ce.value,size:`small`,onClick:Te},null,8,[`label`,`loading`,`disabled`])])]),default:k(()=>[d(`section`,Ir,[u(kr,{"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`,Lr,[u($n,{"pdf-converter":E.value,"onUpdate:pdfConverter":i[4]||=e=>E.value=e,"liteparse-ocr-enabled":O.value,"onUpdate:liteparseOcrEnabled":i[5]||=e=>O.value=e,"liteparse-ocr-language":A.value,"onUpdate:liteparseOcrLanguage":i[6]||=e=>A.value=e,"liteparse-tessdata-path":j.value,"onUpdate:liteparseTessdataPath":i[7]||=e=>j.value=e,"liteparse-ocr-server-url":P.value,"onUpdate:liteparseOcrServerUrl":i[8]||=e=>P.value=e,"mineru-command":I.value,"onUpdate:mineruCommand":i[9]||=e=>I.value=e,"mineru-args":L.value,"onUpdate:mineruArgs":i[10]||=e=>L.value=e,"mineru-timeout":R.value,"onUpdate:mineruTimeout":i[11]||=e=>R.value=e,"mineru-fallback-to-unpdf":z.value,"onUpdate:mineruFallbackToUnpdf":i[12]||=e=>z.value=e,"mineru-api-token":B.value,"onUpdate:mineruApiToken":i[13]||=e=>B.value=e,"mineru-api-base-url":re.value,"onUpdate:mineruApiBaseUrl":i[14]||=e=>re.value=e,"mineru-api-model":V.value,"onUpdate:mineruApiModel":i[15]||=e=>V.value=e,"mineru-api-is-ocr":H.value,"onUpdate:mineruApiIsOcr":i[16]||=e=>H.value=e,"mineru-api-enable-formula":W.value,"onUpdate:mineruApiEnableFormula":i[17]||=e=>W.value=e,"mineru-api-enable-table":G.value,"onUpdate:mineruApiEnableTable":i[18]||=e=>G.value=e,"external-command":K.value,"onUpdate:externalCommand":i[19]||=e=>K.value=e,"external-args":se.value,"onUpdate:externalArgs":i[20]||=e=>se.value=e,"external-timeout":q.value,"onUpdate:externalTimeout":i[21]||=e=>q.value=e},null,8,[`pdf-converter`,`liteparse-ocr-enabled`,`liteparse-ocr-language`,`liteparse-tessdata-path`,`liteparse-ocr-server-url`,`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`,Rr,[u(on,{ref_key:`integrationSettingsRef`,ref:Se,schemas:e.schemas,"langfuse-enabled":J.value,"onUpdate:langfuseEnabled":i[22]||=e=>J.value=e,"langfuse-public-key":Y.value,"onUpdate:langfusePublicKey":i[23]||=e=>Y.value=e,"langfuse-secret-key":ce.value,"onUpdate:langfuseSecretKey":i[24]||=e=>ce.value=e,"langfuse-host":le.value,"onUpdate:langfuseHost":i[25]||=e=>le.value=e,"webhook-enabled":ue.value,"onUpdate:webhookEnabled":i[26]||=e=>ue.value=e,"webhook-url":de.value,"onUpdate:webhookUrl":i[27]||=e=>de.value=e,"webhook-secret":fe.value,"onUpdate:webhookSecret":i[28]||=e=>fe.value=e,"notion-enabled":X.value,"onUpdate:notionEnabled":i[29]||=e=>X.value=e,"notion-token":Z.value,"onUpdate:notionToken":i[30]||=e=>Z.value=e,"notion-schemas":me.value,"onUpdate:notionSchemas":i[31]||=e=>me.value=e,"selected-notion-schema":he.value,"onUpdate:selectedNotionSchema":i[32]||=e=>he.value=e,"notion-database-id":ge.value,"onUpdate:notionDatabaseId":i[33]||=e=>ge.value=e,"notion-title-property":_e.value,"onUpdate:notionTitleProperty":i[34]||=e=>_e.value=e,"notion-field-map":ve.value,"onUpdate:notionFieldMap":i[35]||=e=>ve.value=e,"notion-properties":ye.value,"onUpdate:notionProperties":i[36]||=e=>ye.value=e,"notion-schema-fields":be.value,"onUpdate:notionSchemaFields":i[37]||=e=>be.value=e,"notion-advanced-open":xe.value,"onUpdate:notionAdvancedOpen":i[38]||=e=>xe.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`,zr,[u(ur,{ref_key:`promptSettingsRef`,ref:Q,"system-template":w.value,"onUpdate:systemTemplate":i[39]||=e=>w.value=e,"user-template":T.value,"onUpdate:userTemplate":i[40]||=e=>T.value=e},null,8,[`system-template`,`user-template`])])]),_:1},8,[`active-key`,`anchors`])):(p(),f(`div`,Br,[u(kr,{"base-u-r-l":g.value,"onUpdate:baseURL":i[42]||=e=>g.value=e,"api-key":v.value,"onUpdate:apiKey":i[43]||=e=>v.value=e,timeout:b.value,"onUpdate:timeout":i[44]||=e=>b.value=e,models:S.value,"onUpdate:models":i[45]||=e=>S.value=e},null,8,[`base-u-r-l`,`api-key`,`timeout`,`models`]),u($n,{"pdf-converter":E.value,"onUpdate:pdfConverter":i[46]||=e=>E.value=e,"liteparse-ocr-enabled":O.value,"onUpdate:liteparseOcrEnabled":i[47]||=e=>O.value=e,"liteparse-ocr-language":A.value,"onUpdate:liteparseOcrLanguage":i[48]||=e=>A.value=e,"liteparse-tessdata-path":j.value,"onUpdate:liteparseTessdataPath":i[49]||=e=>j.value=e,"liteparse-ocr-server-url":P.value,"onUpdate:liteparseOcrServerUrl":i[50]||=e=>P.value=e,"mineru-command":I.value,"onUpdate:mineruCommand":i[51]||=e=>I.value=e,"mineru-args":L.value,"onUpdate:mineruArgs":i[52]||=e=>L.value=e,"mineru-timeout":R.value,"onUpdate:mineruTimeout":i[53]||=e=>R.value=e,"mineru-fallback-to-unpdf":z.value,"onUpdate:mineruFallbackToUnpdf":i[54]||=e=>z.value=e,"mineru-api-token":B.value,"onUpdate:mineruApiToken":i[55]||=e=>B.value=e,"mineru-api-base-url":re.value,"onUpdate:mineruApiBaseUrl":i[56]||=e=>re.value=e,"mineru-api-model":V.value,"onUpdate:mineruApiModel":i[57]||=e=>V.value=e,"mineru-api-is-ocr":H.value,"onUpdate:mineruApiIsOcr":i[58]||=e=>H.value=e,"mineru-api-enable-formula":W.value,"onUpdate:mineruApiEnableFormula":i[59]||=e=>W.value=e,"mineru-api-enable-table":G.value,"onUpdate:mineruApiEnableTable":i[60]||=e=>G.value=e,"external-command":K.value,"onUpdate:externalCommand":i[61]||=e=>K.value=e,"external-args":se.value,"onUpdate:externalArgs":i[62]||=e=>se.value=e,"external-timeout":q.value,"onUpdate:externalTimeout":i[63]||=e=>q.value=e},null,8,[`pdf-converter`,`liteparse-ocr-enabled`,`liteparse-ocr-language`,`liteparse-tessdata-path`,`liteparse-ocr-server-url`,`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(on,{ref_key:`integrationSettingsRef`,ref:Se,schemas:e.schemas,"langfuse-enabled":J.value,"onUpdate:langfuseEnabled":i[64]||=e=>J.value=e,"langfuse-public-key":Y.value,"onUpdate:langfusePublicKey":i[65]||=e=>Y.value=e,"langfuse-secret-key":ce.value,"onUpdate:langfuseSecretKey":i[66]||=e=>ce.value=e,"langfuse-host":le.value,"onUpdate:langfuseHost":i[67]||=e=>le.value=e,"webhook-enabled":ue.value,"onUpdate:webhookEnabled":i[68]||=e=>ue.value=e,"webhook-url":de.value,"onUpdate:webhookUrl":i[69]||=e=>de.value=e,"webhook-secret":fe.value,"onUpdate:webhookSecret":i[70]||=e=>fe.value=e,"notion-enabled":X.value,"onUpdate:notionEnabled":i[71]||=e=>X.value=e,"notion-token":Z.value,"onUpdate:notionToken":i[72]||=e=>Z.value=e,"notion-schemas":me.value,"onUpdate:notionSchemas":i[73]||=e=>me.value=e,"selected-notion-schema":he.value,"onUpdate:selectedNotionSchema":i[74]||=e=>he.value=e,"notion-database-id":ge.value,"onUpdate:notionDatabaseId":i[75]||=e=>ge.value=e,"notion-title-property":_e.value,"onUpdate:notionTitleProperty":i[76]||=e=>_e.value=e,"notion-field-map":ve.value,"onUpdate:notionFieldMap":i[77]||=e=>ve.value=e,"notion-properties":ye.value,"onUpdate:notionProperties":i[78]||=e=>ye.value=e,"notion-schema-fields":be.value,"onUpdate:notionSchemaFields":i[79]||=e=>be.value=e,"notion-advanced-open":xe.value,"onUpdate:notionAdvancedOpen":i[80]||=e=>xe.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(ur,{ref_key:`promptSettingsRef`,ref:Q,"system-template":w.value,"onUpdate:systemTemplate":i[81]||=e=>w.value=e,"user-template":T.value,"onUpdate:userTemplate":i[82]||=e=>T.value=e},null,8,[`system-template`,`user-template`])])),e.embedded?M(``,!0):(p(),f(`div`,Vr,[u(x(D),{label:t.$t(`app.cancel`),severity:`secondary`,text:``,onClick:i[83]||=e=>r.value=!1},null,8,[`label`]),u(x(D),{label:t.$t(`app.save`),icon:`pi pi-check`,loading:s.value,disabled:!Ce.value,onClick:Te},null,8,[`label`,`loading`,`disabled`])]))]),_:1},40,[`visible`,`header`,`style`,`class`]))}});export{Wr as default};
|