aiex-cli 0.0.5-beta.6 → 0.0.6-beta.1
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/README.md +0 -11
- package/dist/cli.mjs +197 -900
- package/dist/{doctor-collector-BpqhXNcO.mjs → doctor-collector-hWEvJ4lw.mjs} +89 -44
- package/dist/index.d.mts +88 -91
- package/dist/index.mjs +1 -1
- package/dist/web/assets/AISettings-BlyTFIIy.js +272 -0
- package/dist/web/assets/{DataBrowser-BGkZb9FV.js → DataBrowser-GAA-pGq0.js} +1 -1
- package/dist/web/assets/ExtractionViewer-DqIrBGNK.js +1 -0
- package/dist/web/assets/{api-client-gQAAOw0v.js → api-client-b4ZBXpNH.js} +1 -1
- package/dist/web/assets/index-CvY9TGny.css +2 -0
- package/dist/web/assets/{index-BQKZKzzP.js → index-Dlze68g1.js} +3 -3
- package/dist/web/index.html +3 -3
- package/dist/{zh-CN-DkillGHx.mjs → zh-CN-Qcn0DHFh.mjs} +22 -16
- package/package.json +1 -3
- package/dist/web/assets/AISettings-sVI4PTNB.js +0 -264
- package/dist/web/assets/ExtractionViewer-DNrkSECj.js +0 -1
- package/dist/web/assets/index-BU58oIRd.css +0 -2
|
@@ -0,0 +1,272 @@
|
|
|
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 M,w as N,x as P,y as F,yt as I,zt as L}from"./vue-i18n-Du42D0vb.js";import{i as R,n as z,r as B,s as V,t as te}from"./dialog-CnZ7jH1l.js";import{_ as H,a as U,f as W,m as ne,n as re,s as ie}from"./api-client-b4ZBXpNH.js";import{a as ae,i as G,n as K,r as oe,s as se,t as q}from"./textarea-DMpqBhjw.js";var J={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`,J,[d(`section`,ce,[E(t.$slots,`sidebar-header`),d(`nav`,le,[(p(!0),f(F,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)):N(``,!0),d(`span`,null,I(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:M({height:`${e.bottomSpacer}px`}),"aria-hidden":`true`},null,4)])],544)])]))}}),me={name:`MinusIcon`,extends:w};function he(e){return ye(e)||ve(e)||_e(e)||ge()}function ge(){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 _e(e,t){if(e){if(typeof e==`string`)return Y(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)?Y(e,t):void 0}}function ve(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ye(e){if(Array.isArray(e))return Y(e)}function Y(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 be(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()),he(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)}me.render=be;var X=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`}}),Z={name:`BaseCheckbox`,extends:ae,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:X,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 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 Q(t)==`symbol`?t:t+``}function Ce(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 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:Z,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:se,MinusIcon:me}},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`])):N(``,!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:ae,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&&=(V.clear(this.overlay),null)},methods:{onOverlayEnter:function(e){V.set(`overlay`,e,this.$primevue.config.zIndex.overlay),L(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){V.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 R(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){oe.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:z,EyeSlashIcon:He,EyeIcon:Pe,TimesIcon:B}};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`]))]}):N(``,!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`]))]}):N(``,!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`])]}):N(``,!0),d(`span`,l({class:`p-hidden-accessible`,"aria-live":`polite`},e.ptm(`hiddenAccesible`),{"data-p-hidden-accessible":!0}),I(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`)),I(a.infoText),17)],16)]}),E(e.$slots,`footer`)],16,ut)):N(``,!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),M=P(()=>n.schemas.map(e=>e.replace(`.json`,``))),F=P(()=>{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`)}}),L=P(()=>{try{return Object.keys(z()??{}).length}catch{return 0}}),R=P(()=>T.value.length===0?``:E.value.length===0?k(`app.notionPropertiesLoaded`,{count:T.value.length}):k(`app.notionFieldsMapped`,{count:L.value,total:E.value.length}));function z(){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 B(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 V(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 te(e=v.value){if(!e||F.value)return;let t=b.value.trim(),n=S.value.trim(),r=z();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 W(){let e=v.value?g.value[v.value]:void 0;b.value=e?.databaseId??``,S.value=e?.titleProperty??``,w.value=V(e?.fieldMap),T.value=[]}A(M,e=>{!v.value&&e.length>0&&(v.value=e[0])},{immediate:!0}),A(v,(e,t)=>{t&&te(t),ne()});async function ne(){let e=v.value;if(E.value=[],!e){W();return}try{E.value=B(await U(`${e}.json`))}catch{E.value=[]}W()}t({persistSelectedNotionSchema:te,loadSelectedNotionSchemaFields:ne,notionFieldMapError:F});async function re(){if(!v.value){H.error(k(`app.toastSelectSchema`));return}if(!h.value.trim()){H.error(k(`app.toastEnterToken`));return}if(!b.value.trim()){H.error(k(`app.toastEnterDatabaseId`));return}if(F.value){H.error(F.value);return}j.value=!0;try{let e=await ie({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=z()??{},n={...e.suggestedFieldMap??{},...t};w.value=Object.keys(n).length>0?JSON.stringify(n,null,2):``,T.value=e.properties??[],te(),H.success(k(`app.notionConnected`,{count:T.value.length}))}catch(e){H.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,I(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,I(e.$t(`app.enabled`)),1)]),r.value?(p(),f(`div`,vt,[d(`div`,yt,[d(`label`,bt,I(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,I(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,I(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`])])])):N(``,!0)])]),d(`section`,null,[d(`h3`,Tt,I(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,I(e.$t(`app.enabled`)),1)]),s.value?(p(),f(`div`,kt,[d(`div`,At,[d(`label`,jt,I(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,I(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,I(e.$t(`app.webhookHelp`)),1)])):N(``,!0)])]),d(`section`,null,[d(`h3`,Ft,I(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,I(e.$t(`app.enabled`)),1)]),m.value?(p(),f(`div`,zt,[d(`div`,Bt,[d(`label`,Vt,I(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,I(e.$t(`app.schemaBinding`)),1),u(x(K),{modelValue:v.value,"onUpdate:modelValue":t[9]||=e=>v.value=e,options:M.value,size:`small`,placeholder:e.$t(`app.selectSchema`),disabled:M.value.length===0},null,8,[`modelValue`,`options`,`placeholder`,`disabled`])]),d(`div`,Wt,[d(`label`,Gt,I(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()||!!F.value,onClick:re},null,8,[`label`,`loading`,`disabled`]),R.value?(p(),f(`span`,qt,I(R.value),1)):N(``,!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,I(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,I(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,I(e.$t(`app.fieldMapJson`)),1),E.value.length>0?(p(),f(`span`,tn,I(e.$t(`app.fieldsMapped`,{count:L.value,total:E.value.length})),1)):N(``,!0)]),u(x(q),{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`]),F.value?(p(),f(`p`,nn,I(F.value),1)):N(``,!0)]),d(`div`,rn,I(e.$t(`app.notionMappingHint`)),1)])):N(``,!0)])])):N(``,!0)])])]))}}),on={class:`space-y-6`},sn={class:`text-sm font-semibold mb-3 text-foreground`},cn={class:`space-y-3`},ln={class:`flex items-center justify-between gap-3`},un={class:`font-medium`},dn={key:0,class:`text-xs`},fn={key:1,class:`text-xs`},pn={class:`mt-1 text-xs leading-relaxed`},mn={key:0,class:`space-y-3 pl-6 border-l-2 border-border`},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={class:`text-sm font-semibold mb-3 text-foreground`},Cn={class:`space-y-3`},wn={class:`flex flex-col gap-1`},Tn={class:`text-xs text-muted-foreground`},En={key:0,class:`space-y-3 pl-6 border-l-2 border-border`},Dn={class:`flex flex-col gap-1`},On={class:`text-xs text-muted-foreground`},kn={class:`flex flex-col gap-1`},An={class:`text-xs text-muted-foreground`},jn={class:`flex flex-col gap-1`},Mn={class:`text-xs text-muted-foreground`},Nn={class:`flex items-center gap-2`},Pn={for:`mineru-fallback`,class:`text-sm cursor-pointer`},Fn={class:`text-xs text-muted-foreground p-2 rounded border border-border`},In={key:1,class:`space-y-3 pl-6 border-l-2 border-border`},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:`flex flex-col gap-1`},Hn={class:`text-xs text-muted-foreground`},Un={class:`flex items-center gap-2`},Wn={for:`mineru-api-is-ocr`,class:`text-sm cursor-pointer`},Gn={class:`flex items-center gap-2`},Kn={for:`mineru-api-enable-formula`,class:`text-sm cursor-pointer`},qn={class:`flex items-center gap-2`},Jn={for:`mineru-api-enable-table`,class:`text-sm cursor-pointer`},Yn={key:2,class:`space-y-3 pl-6 border-l-2 border-border`},Xn={class:`flex flex-col gap-1`},Zn={class:`text-xs text-muted-foreground`},Qn={class:`flex flex-col gap-1`},$n={class:`text-xs text-muted-foreground`},er={class:`flex flex-col gap-1`},tr={class:`text-xs text-muted-foreground`},nr={class:`flex items-center gap-2`},rr={for:`markitdown-fallback`,class:`text-sm cursor-pointer`},ir={class:`text-xs text-muted-foreground p-2 rounded border border-border`},ar={key:3,class:`space-y-3 pl-6 border-l-2 border-border`},or={class:`flex flex-col gap-1`},sr={class:`text-xs text-muted-foreground`},cr={class:`flex flex-col gap-1`},lr={class:`text-xs text-muted-foreground`},ur={class:`flex flex-col gap-1`},dr={class:`text-xs text-muted-foreground`},fr={class:`flex items-center gap-2`},pr={for:`marker-fallback`,class:`text-sm cursor-pointer`},mr={class:`text-xs text-muted-foreground p-2 rounded border border-border`},hr={key:4,class:`space-y-3 pl-6 border-l-2 border-border`},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:`flex flex-col gap-1`},xr={class:`text-xs text-muted-foreground`},Sr={class:`text-xs text-muted-foreground p-2 rounded border border-border`},Cr=e({__name:`PdfSettings`,props:o({hasVisionModel:{type:Boolean}},{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:{},markitdownCommand:{required:!0},markitdownCommandModifiers:{},markitdownArgs:{required:!0},markitdownArgsModifiers:{},markitdownTimeout:{required:!0},markitdownTimeoutModifiers:{},markitdownFallbackToUnpdf:{type:Boolean,required:!0},markitdownFallbackToUnpdfModifiers:{},markerCommand:{required:!0},markerCommandModifiers:{},markerArgs:{required:!0},markerArgsModifiers:{},markerTimeout:{required:!0},markerTimeoutModifiers:{},markerFallbackToUnpdf:{type:Boolean,required:!0},markerFallbackToUnpdfModifiers:{},externalCommand:{required:!0},externalCommandModifiers:{},externalArgs:{required:!0},externalArgsModifiers:{},externalTimeout:{required:!0},externalTimeoutModifiers:{},imageOcrFallback:{required:!0},imageOcrFallbackModifiers:{},imageOcrLanguages:{required:!0},imageOcrLanguagesModifiers:{},imageOcrMinConfidence:{required:!0},imageOcrMinConfidenceModifiers:{},imageOcrAdvancedOpen:{type:Boolean,required:!0},imageOcrAdvancedOpenModifiers:{}}),emits:`update:pdfConverter.update:mineruCommand.update:mineruArgs.update:mineruTimeout.update:mineruFallbackToUnpdf.update:mineruApiToken.update:mineruApiBaseUrl.update:mineruApiModel.update:mineruApiIsOcr.update:mineruApiEnableFormula.update:mineruApiEnableTable.update:markitdownCommand.update:markitdownArgs.update:markitdownTimeout.update:markitdownFallbackToUnpdf.update:markerCommand.update:markerArgs.update:markerTimeout.update:markerFallbackToUnpdf.update:externalCommand.update:externalArgs.update:externalTimeout.update:imageOcrFallback.update:imageOcrLanguages.update:imageOcrMinConfidence.update:imageOcrAdvancedOpen`.split(`.`),setup(e){let t=e,n=_(e,`pdfConverter`),i=_(e,`mineruCommand`),a=_(e,`mineruArgs`),o=_(e,`mineruTimeout`),s=_(e,`mineruFallbackToUnpdf`),c=_(e,`mineruApiToken`),l=_(e,`mineruApiBaseUrl`),m=_(e,`mineruApiModel`),h=_(e,`mineruApiIsOcr`),g=_(e,`mineruApiEnableFormula`),v=_(e,`mineruApiEnableTable`),b=_(e,`markitdownCommand`),S=_(e,`markitdownArgs`),C=_(e,`markitdownTimeout`),w=_(e,`markitdownFallbackToUnpdf`),T=_(e,`markerCommand`),E=_(e,`markerArgs`),D=_(e,`markerTimeout`),O=_(e,`markerFallbackToUnpdf`),k=_(e,`externalCommand`),A=_(e,`externalArgs`),j=_(e,`externalTimeout`),M=_(e,`imageOcrFallback`),F=_(e,`imageOcrLanguages`),L=_(e,`imageOcrMinConfidence`),R=_(e,`imageOcrAdvancedOpen`),{t:z}=ee(),B=P(()=>[{label:z(`app.pdfConverterUnpdf`),value:`unpdf`},{label:z(`app.pdfConverterMineru`),value:`mineru`},{label:z(`app.pdfConverterMineruApi`),value:`mineru_api`},{label:z(`app.pdfConverterMarkitdown`),value:`markitdown`},{label:z(`app.pdfConverterMarker`),value:`marker`},{label:z(`app.pdfConverterExternal`),value:`external`}]),V=P(()=>[{label:z(`app.ocrFallbackAuto`),value:`auto`},{label:z(`app.ocrFallbackOff`),value:`off`},{label:z(`app.ocrFallbackLocal`),value:`local`}]),te=P(()=>M.value===`off`?z(`app.ocrDisabled`):M.value===`local`?z(`app.requireLocalOcr`):z(`app.ocrAuto`)),H=P(()=>t.hasVisionModel?z(`app.imageSummaryVisionModel`):M.value===`off`?z(`app.imageSummaryOcrOff`):M.value===`local`?z(`app.imageSummaryOcrLocal`):z(`app.imageSummaryNoVision`)),U=P(()=>t.hasVisionModel?`border-green-200 bg-green-50 text-green-800`:M.value===`off`?`border-yellow-200 bg-yellow-50 text-yellow-800`:`border-blue-200 bg-blue-50 text-blue-800`);return(t,_)=>(p(),f(`div`,on,[d(`section`,null,[d(`h3`,sn,I(t.$t(`app.imageInput`)),1),d(`div`,cn,[d(`div`,{class:y([`rounded border p-3 text-sm`,U.value])},[d(`div`,ln,[d(`span`,un,I(te.value),1),e.hasVisionModel?(p(),f(`span`,dn,I(t.$t(`app.visionModelConfigured`)),1)):(p(),f(`span`,fn,I(t.$t(`app.noVisionModel`)),1))]),d(`p`,pn,I(H.value),1)],2),d(`button`,{type:`button`,class:`text-xs text-muted-foreground hover:text-foreground transition-colors`,onClick:_[0]||=e=>R.value=!R.value},I(R.value?t.$t(`app.hideAdvancedImageSettings`):t.$t(`app.advancedImageSettings`)),1),R.value?(p(),f(`div`,mn,[d(`div`,hn,[d(`label`,gn,I(t.$t(`app.ocrFallback`)),1),u(x(K),{modelValue:M.value,"onUpdate:modelValue":_[1]||=e=>M.value=e,options:V.value,"option-label":`label`,"option-value":`value`,size:`small`},null,8,[`modelValue`,`options`])]),d(`div`,_n,[d(`label`,vn,I(t.$t(`app.ocrLanguages`)),1),u(x(G),{modelValue:F.value,"onUpdate:modelValue":_[2]||=e=>F.value=e,size:`small`,placeholder:`en-US, zh-Hans`,disabled:M.value===`off`},null,8,[`modelValue`,`disabled`])]),d(`div`,yn,[d(`label`,bn,I(t.$t(`app.ocrMinConfidence`)),1),u(x(G),{value:String(L.value),type:`number`,size:`small`,placeholder:`0`,min:0,max:1,step:.05,disabled:M.value===`off`,onInput:_[3]||=e=>L.value=Math.min(1,Math.max(0,Number(e.target.value)||0))},null,8,[`value`,`disabled`])]),d(`div`,xn,I(t.$t(`app.ocrHint`)),1)])):N(``,!0)])]),d(`section`,null,[d(`h3`,Sn,I(t.$t(`app.pdfConversion`)),1),d(`div`,Cn,[d(`div`,wn,[d(`label`,Tn,I(t.$t(`app.converter`)),1),u(x(K),{modelValue:n.value,"onUpdate:modelValue":_[4]||=e=>n.value=e,options:B.value,"option-label":`label`,"option-value":`value`,size:`small`},null,8,[`modelValue`,`options`])]),n.value===`mineru`?(p(),f(`div`,En,[d(`div`,Dn,[d(`label`,On,I(t.$t(`app.command`)),1),u(x(G),{modelValue:i.value,"onUpdate:modelValue":_[5]||=e=>i.value=e,size:`small`,placeholder:`mineru`},null,8,[`modelValue`])]),d(`div`,kn,[d(`label`,An,I(t.$t(`app.arguments`)),1),u(x(q),{modelValue:a.value,"onUpdate:modelValue":_[6]||=e=>a.value=e,rows:`4`,"auto-resize":``,class:`text-xs font-mono`},null,8,[`modelValue`])]),d(`div`,jn,[d(`label`,Mn,I(t.$t(`app.timeoutLabel`)),1),u(x(G),{value:String(o.value),type:`number`,size:`small`,placeholder:`600`,min:1,onInput:_[7]||=e=>o.value=Number(e.target.value)||600},null,8,[`value`])]),d(`div`,Nn,[u(x($),{modelValue:s.value,"onUpdate:modelValue":_[8]||=e=>s.value=e,binary:!0,"input-id":`mineru-fallback`},null,8,[`modelValue`]),d(`label`,Pn,I(t.$t(`app.fallbackToBuiltin`)),1)]),d(`div`,Fn,[r(I(t.$t(`app.placeholders`))+`: `,1),_[26]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{input}`,-1),_[27]||=r(`, `,-1),_[28]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{outputDir}`,-1),_[29]||=r(`, `,-1),_[30]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{basename}`,-1)])])):N(``,!0),n.value===`mineru_api`?(p(),f(`div`,In,[d(`div`,Ln,[d(`label`,Rn,I(t.$t(`app.mineruApiTokenLabel`)),1),u(x(nt),{modelValue:c.value,"onUpdate:modelValue":_[9]||=e=>c.value=e,feedback:!1,"toggle-mask":``,size:`small`,placeholder:t.$t(`app.mineruApiTokenPlaceholder`),"input-class":`w-full`},null,8,[`modelValue`,`placeholder`])]),d(`div`,zn,[d(`label`,Bn,I(t.$t(`app.mineruApiBaseUrlLabel`)),1),u(x(G),{modelValue:l.value,"onUpdate:modelValue":_[10]||=e=>l.value=e,size:`small`,placeholder:`https://mineru.net/api/v4`},null,8,[`modelValue`])]),d(`div`,Vn,[d(`label`,Hn,I(t.$t(`app.mineruApiModelLabel`)),1),u(x(K),{modelValue:m.value,"onUpdate:modelValue":_[11]||=e=>m.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`,Un,[u(x($),{modelValue:h.value,"onUpdate:modelValue":_[12]||=e=>h.value=e,binary:!0,"input-id":`mineru-api-is-ocr`},null,8,[`modelValue`]),d(`label`,Wn,I(t.$t(`app.mineruApiIsOcrLabel`)),1)]),d(`div`,Gn,[u(x($),{modelValue:g.value,"onUpdate:modelValue":_[13]||=e=>g.value=e,binary:!0,"input-id":`mineru-api-enable-formula`},null,8,[`modelValue`]),d(`label`,Kn,I(t.$t(`app.mineruApiEnableFormulaLabel`)),1)]),d(`div`,qn,[u(x($),{modelValue:v.value,"onUpdate:modelValue":_[14]||=e=>v.value=e,binary:!0,"input-id":`mineru-api-enable-table`},null,8,[`modelValue`]),d(`label`,Jn,I(t.$t(`app.mineruApiEnableTableLabel`)),1)])])):N(``,!0),n.value===`markitdown`?(p(),f(`div`,Yn,[d(`div`,Xn,[d(`label`,Zn,I(t.$t(`app.command`)),1),u(x(G),{modelValue:b.value,"onUpdate:modelValue":_[15]||=e=>b.value=e,size:`small`,placeholder:`markitdown`},null,8,[`modelValue`])]),d(`div`,Qn,[d(`label`,$n,I(t.$t(`app.arguments`)),1),u(x(q),{modelValue:S.value,"onUpdate:modelValue":_[16]||=e=>S.value=e,rows:`4`,"auto-resize":``,class:`text-xs font-mono`},null,8,[`modelValue`])]),d(`div`,er,[d(`label`,tr,I(t.$t(`app.timeoutLabel`)),1),u(x(G),{value:String(C.value),type:`number`,size:`small`,placeholder:`600`,min:1,onInput:_[17]||=e=>C.value=Number(e.target.value)||600},null,8,[`value`])]),d(`div`,nr,[u(x($),{modelValue:w.value,"onUpdate:modelValue":_[18]||=e=>w.value=e,binary:!0,"input-id":`markitdown-fallback`},null,8,[`modelValue`]),d(`label`,rr,I(t.$t(`app.fallbackToBuiltin`)),1)]),d(`div`,ir,[r(I(t.$t(`app.placeholders`))+`: `,1),_[31]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{input}`,-1),_[32]||=r(`, `,-1),_[33]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{outputDir}`,-1),_[34]||=r(`, `,-1),_[35]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{basename}`,-1)])])):N(``,!0),n.value===`marker`?(p(),f(`div`,ar,[d(`div`,or,[d(`label`,sr,I(t.$t(`app.command`)),1),u(x(G),{modelValue:T.value,"onUpdate:modelValue":_[19]||=e=>T.value=e,size:`small`,placeholder:`marker_single`},null,8,[`modelValue`])]),d(`div`,cr,[d(`label`,lr,I(t.$t(`app.arguments`)),1),u(x(q),{modelValue:E.value,"onUpdate:modelValue":_[20]||=e=>E.value=e,rows:`4`,"auto-resize":``,class:`text-xs font-mono`},null,8,[`modelValue`])]),d(`div`,ur,[d(`label`,dr,I(t.$t(`app.timeoutLabel`)),1),u(x(G),{value:String(D.value),type:`number`,size:`small`,placeholder:`600`,min:1,onInput:_[21]||=e=>D.value=Number(e.target.value)||600},null,8,[`value`])]),d(`div`,fr,[u(x($),{modelValue:O.value,"onUpdate:modelValue":_[22]||=e=>O.value=e,binary:!0,"input-id":`marker-fallback`},null,8,[`modelValue`]),d(`label`,pr,I(t.$t(`app.fallbackToBuiltin`)),1)]),d(`div`,mr,[r(I(t.$t(`app.placeholders`))+`: `,1),_[36]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{input}`,-1),_[37]||=r(`, `,-1),_[38]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{outputDir}`,-1),_[39]||=r(`, `,-1),_[40]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{basename}`,-1)])])):N(``,!0),n.value===`external`?(p(),f(`div`,hr,[d(`div`,gr,[d(`label`,_r,I(t.$t(`app.command`)),1),u(x(G),{modelValue:k.value,"onUpdate:modelValue":_[23]||=e=>k.value=e,size:`small`,placeholder:`pdf2markdown`},null,8,[`modelValue`])]),d(`div`,vr,[d(`label`,yr,I(t.$t(`app.arguments`)),1),u(x(q),{modelValue:A.value,"onUpdate:modelValue":_[24]||=e=>A.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`,br,[d(`label`,xr,I(t.$t(`app.timeoutLabel`)),1),u(x(G),{value:String(j.value),type:`number`,size:`small`,placeholder:`600`,min:1,onInput:_[25]||=e=>j.value=Number(e.target.value)||600},null,8,[`value`])]),d(`div`,Sr,[r(I(t.$t(`app.placeholders`))+`: `,1),_[41]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{input}`,-1),_[42]||=r(`, `,-1),_[43]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{outputDir}`,-1),_[44]||=r(`, `,-1),_[45]||=d(`code`,{class:`bg-secondary px-1 rounded`},`{basename}`,-1),r(`. `+I(t.$t(`app.externalHint`)),1)])])):N(``,!0)])])]))}}),wr={class:`space-y-6`},Tr={class:`text-sm font-semibold mb-3 text-foreground`},Er={class:`space-y-3`},Dr={class:`flex flex-col gap-1`},Or={class:`text-xs text-muted-foreground`},kr={key:0,class:`text-xs text-red-500 mt-1`},Ar={class:`flex flex-col gap-1`},jr={class:`text-xs text-muted-foreground`},Mr={key:0,class:`text-xs text-red-500 mt-1`},Nr={class:`text-xs text-muted-foreground p-2 rounded border border-border`},Pr=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=P(()=>n.value.includes(`{schema}`)?``:i(`app.systemPromptValidation`)),o=P(()=>r.value.includes(`{text}`)?``:i(`app.userPromptValidation`));return t({systemSchemaError:a,userSchemaError:o}),(e,t)=>(p(),f(`div`,wr,[d(`section`,null,[d(`h3`,Tr,I(e.$t(`app.promptTemplates`)),1),d(`div`,Er,[d(`div`,Dr,[d(`label`,Or,I(e.$t(`app.systemPrompt`)),1),u(x(q),{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`,kr,I(a.value),1)):N(``,!0)]),d(`div`,Ar,[d(`label`,jr,I(e.$t(`app.userPromptTemplate`)),1),u(x(q),{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`,Mr,I(o.value),1)):N(``,!0)]),d(`div`,Nr,I(e.$t(`app.promptPlaceholderHint`)),1)])])]))}}),Fr={class:`space-y-6`},Ir={class:`text-sm font-semibold mb-3 text-foreground`},Lr={class:`space-y-3`},Rr={class:`flex flex-col gap-1`},zr={class:`text-xs text-muted-foreground`},Br={class:`flex flex-col gap-1`},Vr={class:`text-xs text-muted-foreground`},Hr={class:`flex flex-col gap-1`},Ur={class:`text-xs text-muted-foreground`},Wr={class:`text-sm font-semibold mb-3 text-foreground`},Gr={class:`space-y-2`},Kr={class:`text-sm font-mono flex-1`},qr={key:0,class:`flex flex-col gap-2 px-3 py-2 rounded border border-border bg-card`},Jr={class:`flex items-center gap-2`},Yr={class:`flex items-center gap-4 text-xs`},Xr={class:`flex items-center gap-1.5 cursor-pointer`},Zr={class:`flex items-center gap-1.5 cursor-pointer`},Qr={key:0,class:`text-muted-foreground ml-auto`},$r=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&&W(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`,Fr,[d(`section`,null,[d(`h3`,Ir,I(e.$t(`app.provider`)),1),d(`div`,Lr,[d(`div`,Rr,[d(`label`,zr,I(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`,Br,[d(`label`,Vr,I(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`,Hr,[d(`label`,Ur,I(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`,Wr,I(e.$t(`app.models`)),1),d(`div`,Gr,[(p(!0),f(F,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`,Kr,I(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(` `+I(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(` `+I(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`,qr,[d(`div`,Jr,[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`,Yr,[d(`label`,Xr,[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`)},I(e.$t(`app.structuredOutput`)),3)]),d(`label`,Zr,[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`)},I(e.$t(`app.visionSupported`)),3)]),g.value===`registry`?(p(),f(`span`,Qr,[_[7]||=d(`i`,{class:`pi pi-database mr-0.5`},null,-1),r(I(e.$t(`app.modelCapsRegistry`)),1)])):N(``,!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`]))])])]))}}),ei={key:0,class:`flex items-center justify-center py-8`},ti={class:`border-b border-border p-4`},ni={class:`m-0 text-lg font-semibold text-foreground`},ri={class:`mt-1 text-xs text-muted-foreground`},ii={class:`flex items-center justify-between gap-3 border-b border-border bg-card p-4`},ai={class:`m-0 text-lg font-semibold text-foreground`},oi={"data-anchor-section":`provider`},si={"data-anchor-section":`documents`},ci={"data-anchor-section":`integrations`},li={"data-anchor-section":`prompts`},ui={key:2,class:`space-y-6`},di={key:3,class:`mt-6 flex justify-end gap-2`},fi=`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`,pi=`Please extract data from the following text:
|
|
257
|
+
{text}`,mi=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=P(()=>c.value===`documents`?i(`app.settingsDocuments`):c.value===`integrations`?i(`app.settingsIntegrations`):c.value===`prompts`?i(`app.settingsPrompts`):i(`app.settingsProvider`)),h=P(()=>[{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),F=C(!0),L=C(``),R=C(`https://mineru.net/api/v4`),z=C(`vlm`),B=C(!0),V=C(!0),U=C(!0),W=C(`markitdown`),ie=C(`{input}
|
|
261
|
+
-o
|
|
262
|
+
{outputDir}/{basename}.md`),ae=C(600),G=C(!0),K=C(`marker_single`),oe=C(`{input}
|
|
263
|
+
--output_dir
|
|
264
|
+
{outputDir}`),se=C(600),q=C(!0),J=C(``),ce=C(``),le=C(600),ue=C(`auto`),de=C(`en-US, zh-Hans`),fe=C(0),me=C(!1),he=C(!1),ge=C(``),_e=C(``),ve=C(``),ye=C(!1),Y=C(``),be=C(``),X=C(!1),Z=C(``),Q=C({}),xe=C(``),Se=C(``),Ce=C(``),we=C(``),Te=C([]),Ee=C([]),De=C(!1),Oe=C(null),ke=C(null),$=P(()=>S.value.some(e=>e.capabilities.vision)),Ae=P(()=>{let e=Oe.value?.systemSchemaError||``,t=Oe.value?.userSchemaError||``,n=ke.value?.notionFieldMapError||``;return!e&&!t&&!n&&!o.value&&S.value.length>0&&(!X.value||!!Z.value.trim())&&(E.value!==`mineru`||!!O.value.trim())&&(E.value!==`mineru_api`||!!L.value.trim())&&(E.value!==`markitdown`||!!W.value.trim())&&(E.value!==`marker`||!!K.value.trim())&&(E.value!==`external`||!!J.value.trim())});async function je(){o.value=!0;try{let e=await re();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??fi,T.value=e.prompt?.userTemplate??pi,E.value=e.pdf?.converter??`unpdf`,L.value=e.pdf?.mineruApi?.token??``,R.value=e.pdf?.mineruApi?.baseURL??`https://mineru.net/api/v4`,z.value=e.pdf?.mineruApi?.modelVersion??`vlm`,B.value=e.pdf?.mineruApi?.isOcr??!0,V.value=e.pdf?.mineruApi?.enableFormula??!0,U.value=e.pdf?.mineruApi?.enableTable??!0,O.value=e.pdf?.mineru?.command??`mineru`,A.value=(e.pdf?.mineru?.args??[`-p`,`{input}`,`-o`,`{outputDir}`]).join(`
|
|
265
|
+
`),j.value=e.pdf?.mineru?.timeout??600,F.value=e.pdf?.mineru?.fallbackToUnpdf??!0,W.value=e.pdf?.markitdown?.command??`markitdown`,ie.value=(e.pdf?.markitdown?.args??[`{input}`,`-o`,`{outputDir}/{basename}.md`]).join(`
|
|
266
|
+
`),ae.value=e.pdf?.markitdown?.timeout??600,G.value=e.pdf?.markitdown?.fallbackToUnpdf??!0,K.value=e.pdf?.marker?.command??`marker_single`,oe.value=(e.pdf?.marker?.args??[`{input}`,`--output_dir`,`{outputDir}`]).join(`
|
|
267
|
+
`),se.value=e.pdf?.marker?.timeout??600,q.value=e.pdf?.marker?.fallbackToUnpdf??!0,J.value=e.pdf?.external?.command??``,ce.value=(e.pdf?.external?.args??[]).join(`
|
|
268
|
+
`),le.value=e.pdf?.external?.timeout??600,ue.value=e.image?.ocrFallback??`auto`,de.value=e.image?.ocrLanguages??`en-US, zh-Hans`,fe.value=e.image?.ocrMinConfidence??0,he.value=!!e.langfuse,ge.value=e.langfuse?.publicKey??``,_e.value=e.langfuse?.secretKey??``,ve.value=e.langfuse?.host??``,ye.value=!!e.webhook?.enabled,Y.value=e.webhook?.url??``,be.value=e.webhook?.secret??``,X.value=!!e.notion?.enabled,Z.value=e.notion?.token??``,Q.value=e.notion?.schemas??{},await ke.value?.loadSelectedNotionSchemaFields()}catch{v.value=``,S.value=[],w.value=fi,T.value=pi}finally{o.value=!1}}async function Me(){if(Ae.value){s.value=!0;try{ke.value?.persistSelectedNotionSchema(),await ne({provider:{baseURL:g.value,apiKey:v.value,timeout:b.value,models:S.value},prompt:{systemTemplate:w.value,userTemplate:T.value},extraction:{outputDir:`.aiex/extracted`},image:{ocrFallback:ue.value,ocrLanguages:de.value.trim()||void 0,ocrMinConfidence:fe.value},pdf:{converter:E.value,mineru:O.value.trim()?{command:O.value,args:A.value.split(`
|
|
269
|
+
`).map(e=>e.trim()).filter(Boolean),timeout:j.value,fallbackToUnpdf:F.value}:void 0,mineruApi:{token:L.value.trim(),baseURL:R.value.trim()||void 0,modelVersion:z.value.trim()||void 0,isOcr:B.value,enableFormula:V.value,enableTable:U.value},markitdown:W.value.trim()?{command:W.value,args:ie.value.split(`
|
|
270
|
+
`).map(e=>e.trim()).filter(Boolean),timeout:ae.value,fallbackToUnpdf:G.value}:void 0,marker:K.value.trim()?{command:K.value,args:oe.value.split(`
|
|
271
|
+
`).map(e=>e.trim()).filter(Boolean),timeout:se.value,fallbackToUnpdf:q.value}:void 0,external:J.value.trim()?{command:J.value,args:ce.value.split(`
|
|
272
|
+
`).map(e=>e.trim()).filter(Boolean),timeout:le.value}:void 0},langfuse:he.value?{publicKey:ge.value,secretKey:_e.value,host:ve.value||void 0}:void 0,notion:{enabled:X.value,token:Z.value,schemas:Q.value},webhook:{enabled:ye.value,url:Y.value.trim(),secret:be.value.trim()||void 0}}),t.embedded||(r.value=!1),H.success(i(`app.settingsSaved`))}catch(e){H.error(e.message||i(`app.toastSaveFailed`))}finally{s.value=!1}}}return a(()=>{je()}),(t,i)=>(p(),n(m(e.embedded?`section`:x(te)),{visible:r.value,"onUpdate:visible":i[100]||=e=>r.value=e,modal:``,header:t.$t(`app.aiSettings`),style:M(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`,ei,[...i[101]||=[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[49]||=e=>c.value=e,anchors:h.value},{"sidebar-header":k(()=>[d(`div`,ti,[d(`h2`,ni,I(t.$t(`app.settings`)),1),d(`p`,ri,I(t.$t(`app.settingsSubtitle`)),1)])]),header:k(()=>[d(`div`,ii,[d(`h2`,ai,I(l.value),1),u(x(D),{label:t.$t(`app.save`),icon:`pi pi-check`,loading:s.value,disabled:!Ae.value,size:`small`,onClick:Me},null,8,[`label`,`loading`,`disabled`])])]),default:k(()=>[d(`section`,oi,[u($r,{"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`,si,[u(Cr,{"has-vision-model":$.value,"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":F.value,"onUpdate:mineruFallbackToUnpdf":i[8]||=e=>F.value=e,"mineru-api-token":L.value,"onUpdate:mineruApiToken":i[9]||=e=>L.value=e,"mineru-api-base-url":R.value,"onUpdate:mineruApiBaseUrl":i[10]||=e=>R.value=e,"mineru-api-model":z.value,"onUpdate:mineruApiModel":i[11]||=e=>z.value=e,"mineru-api-is-ocr":B.value,"onUpdate:mineruApiIsOcr":i[12]||=e=>B.value=e,"mineru-api-enable-formula":V.value,"onUpdate:mineruApiEnableFormula":i[13]||=e=>V.value=e,"mineru-api-enable-table":U.value,"onUpdate:mineruApiEnableTable":i[14]||=e=>U.value=e,"markitdown-command":W.value,"onUpdate:markitdownCommand":i[15]||=e=>W.value=e,"markitdown-args":ie.value,"onUpdate:markitdownArgs":i[16]||=e=>ie.value=e,"markitdown-timeout":ae.value,"onUpdate:markitdownTimeout":i[17]||=e=>ae.value=e,"markitdown-fallback-to-unpdf":G.value,"onUpdate:markitdownFallbackToUnpdf":i[18]||=e=>G.value=e,"marker-command":K.value,"onUpdate:markerCommand":i[19]||=e=>K.value=e,"marker-args":oe.value,"onUpdate:markerArgs":i[20]||=e=>oe.value=e,"marker-timeout":se.value,"onUpdate:markerTimeout":i[21]||=e=>se.value=e,"marker-fallback-to-unpdf":q.value,"onUpdate:markerFallbackToUnpdf":i[22]||=e=>q.value=e,"external-command":J.value,"onUpdate:externalCommand":i[23]||=e=>J.value=e,"external-args":ce.value,"onUpdate:externalArgs":i[24]||=e=>ce.value=e,"external-timeout":le.value,"onUpdate:externalTimeout":i[25]||=e=>le.value=e,"image-ocr-fallback":ue.value,"onUpdate:imageOcrFallback":i[26]||=e=>ue.value=e,"image-ocr-languages":de.value,"onUpdate:imageOcrLanguages":i[27]||=e=>de.value=e,"image-ocr-min-confidence":fe.value,"onUpdate:imageOcrMinConfidence":i[28]||=e=>fe.value=e,"image-ocr-advanced-open":me.value,"onUpdate:imageOcrAdvancedOpen":i[29]||=e=>me.value=e},null,8,`has-vision-model.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.markitdown-command.markitdown-args.markitdown-timeout.markitdown-fallback-to-unpdf.marker-command.marker-args.marker-timeout.marker-fallback-to-unpdf.external-command.external-args.external-timeout.image-ocr-fallback.image-ocr-languages.image-ocr-min-confidence.image-ocr-advanced-open`.split(`.`))]),d(`section`,ci,[u(an,{ref_key:`integrationSettingsRef`,ref:ke,schemas:e.schemas,"langfuse-enabled":he.value,"onUpdate:langfuseEnabled":i[30]||=e=>he.value=e,"langfuse-public-key":ge.value,"onUpdate:langfusePublicKey":i[31]||=e=>ge.value=e,"langfuse-secret-key":_e.value,"onUpdate:langfuseSecretKey":i[32]||=e=>_e.value=e,"langfuse-host":ve.value,"onUpdate:langfuseHost":i[33]||=e=>ve.value=e,"webhook-enabled":ye.value,"onUpdate:webhookEnabled":i[34]||=e=>ye.value=e,"webhook-url":Y.value,"onUpdate:webhookUrl":i[35]||=e=>Y.value=e,"webhook-secret":be.value,"onUpdate:webhookSecret":i[36]||=e=>be.value=e,"notion-enabled":X.value,"onUpdate:notionEnabled":i[37]||=e=>X.value=e,"notion-token":Z.value,"onUpdate:notionToken":i[38]||=e=>Z.value=e,"notion-schemas":Q.value,"onUpdate:notionSchemas":i[39]||=e=>Q.value=e,"selected-notion-schema":xe.value,"onUpdate:selectedNotionSchema":i[40]||=e=>xe.value=e,"notion-database-id":Se.value,"onUpdate:notionDatabaseId":i[41]||=e=>Se.value=e,"notion-title-property":Ce.value,"onUpdate:notionTitleProperty":i[42]||=e=>Ce.value=e,"notion-field-map":we.value,"onUpdate:notionFieldMap":i[43]||=e=>we.value=e,"notion-properties":Te.value,"onUpdate:notionProperties":i[44]||=e=>Te.value=e,"notion-schema-fields":Ee.value,"onUpdate:notionSchemaFields":i[45]||=e=>Ee.value=e,"notion-advanced-open":De.value,"onUpdate:notionAdvancedOpen":i[46]||=e=>De.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`,li,[u(Pr,{ref_key:`promptSettingsRef`,ref:Oe,"system-template":w.value,"onUpdate:systemTemplate":i[47]||=e=>w.value=e,"user-template":T.value,"onUpdate:userTemplate":i[48]||=e=>T.value=e},null,8,[`system-template`,`user-template`])])]),_:1},8,[`active-key`,`anchors`])):(p(),f(`div`,ui,[u($r,{"base-u-r-l":g.value,"onUpdate:baseURL":i[50]||=e=>g.value=e,"api-key":v.value,"onUpdate:apiKey":i[51]||=e=>v.value=e,timeout:b.value,"onUpdate:timeout":i[52]||=e=>b.value=e,models:S.value,"onUpdate:models":i[53]||=e=>S.value=e},null,8,[`base-u-r-l`,`api-key`,`timeout`,`models`]),u(Cr,{"has-vision-model":$.value,"pdf-converter":E.value,"onUpdate:pdfConverter":i[54]||=e=>E.value=e,"mineru-command":O.value,"onUpdate:mineruCommand":i[55]||=e=>O.value=e,"mineru-args":A.value,"onUpdate:mineruArgs":i[56]||=e=>A.value=e,"mineru-timeout":j.value,"onUpdate:mineruTimeout":i[57]||=e=>j.value=e,"mineru-fallback-to-unpdf":F.value,"onUpdate:mineruFallbackToUnpdf":i[58]||=e=>F.value=e,"mineru-api-token":L.value,"onUpdate:mineruApiToken":i[59]||=e=>L.value=e,"mineru-api-base-url":R.value,"onUpdate:mineruApiBaseUrl":i[60]||=e=>R.value=e,"mineru-api-model":z.value,"onUpdate:mineruApiModel":i[61]||=e=>z.value=e,"mineru-api-is-ocr":B.value,"onUpdate:mineruApiIsOcr":i[62]||=e=>B.value=e,"mineru-api-enable-formula":V.value,"onUpdate:mineruApiEnableFormula":i[63]||=e=>V.value=e,"mineru-api-enable-table":U.value,"onUpdate:mineruApiEnableTable":i[64]||=e=>U.value=e,"markitdown-command":W.value,"onUpdate:markitdownCommand":i[65]||=e=>W.value=e,"markitdown-args":ie.value,"onUpdate:markitdownArgs":i[66]||=e=>ie.value=e,"markitdown-timeout":ae.value,"onUpdate:markitdownTimeout":i[67]||=e=>ae.value=e,"markitdown-fallback-to-unpdf":G.value,"onUpdate:markitdownFallbackToUnpdf":i[68]||=e=>G.value=e,"marker-command":K.value,"onUpdate:markerCommand":i[69]||=e=>K.value=e,"marker-args":oe.value,"onUpdate:markerArgs":i[70]||=e=>oe.value=e,"marker-timeout":se.value,"onUpdate:markerTimeout":i[71]||=e=>se.value=e,"marker-fallback-to-unpdf":q.value,"onUpdate:markerFallbackToUnpdf":i[72]||=e=>q.value=e,"external-command":J.value,"onUpdate:externalCommand":i[73]||=e=>J.value=e,"external-args":ce.value,"onUpdate:externalArgs":i[74]||=e=>ce.value=e,"external-timeout":le.value,"onUpdate:externalTimeout":i[75]||=e=>le.value=e,"image-ocr-fallback":ue.value,"onUpdate:imageOcrFallback":i[76]||=e=>ue.value=e,"image-ocr-languages":de.value,"onUpdate:imageOcrLanguages":i[77]||=e=>de.value=e,"image-ocr-min-confidence":fe.value,"onUpdate:imageOcrMinConfidence":i[78]||=e=>fe.value=e,"image-ocr-advanced-open":me.value,"onUpdate:imageOcrAdvancedOpen":i[79]||=e=>me.value=e},null,8,`has-vision-model.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.markitdown-command.markitdown-args.markitdown-timeout.markitdown-fallback-to-unpdf.marker-command.marker-args.marker-timeout.marker-fallback-to-unpdf.external-command.external-args.external-timeout.image-ocr-fallback.image-ocr-languages.image-ocr-min-confidence.image-ocr-advanced-open`.split(`.`)),u(an,{ref_key:`integrationSettingsRef`,ref:ke,schemas:e.schemas,"langfuse-enabled":he.value,"onUpdate:langfuseEnabled":i[80]||=e=>he.value=e,"langfuse-public-key":ge.value,"onUpdate:langfusePublicKey":i[81]||=e=>ge.value=e,"langfuse-secret-key":_e.value,"onUpdate:langfuseSecretKey":i[82]||=e=>_e.value=e,"langfuse-host":ve.value,"onUpdate:langfuseHost":i[83]||=e=>ve.value=e,"webhook-enabled":ye.value,"onUpdate:webhookEnabled":i[84]||=e=>ye.value=e,"webhook-url":Y.value,"onUpdate:webhookUrl":i[85]||=e=>Y.value=e,"webhook-secret":be.value,"onUpdate:webhookSecret":i[86]||=e=>be.value=e,"notion-enabled":X.value,"onUpdate:notionEnabled":i[87]||=e=>X.value=e,"notion-token":Z.value,"onUpdate:notionToken":i[88]||=e=>Z.value=e,"notion-schemas":Q.value,"onUpdate:notionSchemas":i[89]||=e=>Q.value=e,"selected-notion-schema":xe.value,"onUpdate:selectedNotionSchema":i[90]||=e=>xe.value=e,"notion-database-id":Se.value,"onUpdate:notionDatabaseId":i[91]||=e=>Se.value=e,"notion-title-property":Ce.value,"onUpdate:notionTitleProperty":i[92]||=e=>Ce.value=e,"notion-field-map":we.value,"onUpdate:notionFieldMap":i[93]||=e=>we.value=e,"notion-properties":Te.value,"onUpdate:notionProperties":i[94]||=e=>Te.value=e,"notion-schema-fields":Ee.value,"onUpdate:notionSchemaFields":i[95]||=e=>Ee.value=e,"notion-advanced-open":De.value,"onUpdate:notionAdvancedOpen":i[96]||=e=>De.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(Pr,{ref_key:`promptSettingsRef`,ref:Oe,"system-template":w.value,"onUpdate:systemTemplate":i[97]||=e=>w.value=e,"user-template":T.value,"onUpdate:userTemplate":i[98]||=e=>T.value=e},null,8,[`system-template`,`user-template`])])),e.embedded?N(``,!0):(p(),f(`div`,di,[u(x(D),{label:t.$t(`app.cancel`),severity:`secondary`,text:``,onClick:i[99]||=e=>r.value=!1},null,8,[`label`]),u(x(D),{label:t.$t(`app.save`),icon:`pi pi-check`,loading:s.value,disabled:!Ae.value,onClick:Me},null,8,[`label`,`loading`,`disabled`])]))]),_:1},40,[`visible`,`header`,`style`,`class`]))}});export{mi as default};
|