aiex-cli 0.0.6 → 0.0.7-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/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import Conf from "conf";
2
- import { ZodError, z } from "zod";
2
+ import { z } from "zod";
3
3
 
4
- //#region src/core/doctor.d.ts
4
+ //#region src/domain/doctor/diagnostics.d.ts
5
5
  interface DoctorDiagnostics {
6
6
  cli: {
7
7
  name: string;
@@ -89,66 +89,13 @@ interface AppConfig {
89
89
  }
90
90
  declare function createConfig(): Conf<AppConfig>;
91
91
  //#endregion
92
- //#region src/core/doctor-collector.d.ts
92
+ //#region src/application/doctor/collect-diagnostics.d.ts
93
93
  interface CollectDoctorDiagnosticsOptions {
94
94
  config?: ReturnType<typeof createConfig>;
95
95
  }
96
96
  declare function collectDoctorDiagnostics(options?: CollectDoctorDiagnosticsOptions): Promise<DoctorDiagnostics>;
97
97
  //#endregion
98
- //#region src/core/schema-sqlite/types.d.ts
99
- interface ParsedColumn {
100
- name: string;
101
- drizzleType: string;
102
- isPrimary: boolean;
103
- isAutoIncrement: boolean;
104
- isNullable: boolean;
105
- isUnique: boolean;
106
- defaultValue?: string;
107
- isForeignKey?: boolean;
108
- foreignKeyRef?: {
109
- table: string;
110
- column: string;
111
- };
112
- }
113
- interface ParsedTable {
114
- name: string;
115
- columns: ParsedColumn[];
116
- }
117
- interface ParsedRelation {
118
- fromTable: string;
119
- fromColumn: string;
120
- toTable: string;
121
- toColumn: string;
122
- name: string;
123
- }
124
- interface ParsedReverseRelation {
125
- type: 'has-one' | 'has-many';
126
- fromTable: string;
127
- toTable: string;
128
- name: string;
129
- }
130
- interface ParseResult {
131
- tables: ParsedTable[];
132
- relations: ParsedRelation[];
133
- reverseRelations: ParsedReverseRelation[];
134
- warnings: string[];
135
- }
136
- interface MigrationConfig {
137
- schemaPath: string;
138
- drizzleSchemaPath: string;
139
- migrationsPath: string;
140
- databasePath: string;
141
- drizzleConfigPath: string;
142
- }
143
- //#endregion
144
- //#region src/core/schema-sqlite/generator.d.ts
145
- declare function generateDrizzleSchema(result: ParseResult): string;
146
- //#endregion
147
- //#region src/core/schema-sqlite/migrator.d.ts
148
- declare function createMigrationConfig(cwd: string): MigrationConfig;
149
- declare function generateDrizzleConfig(): string;
150
- //#endregion
151
- //#region src/core/schema-sqlite/schemas.d.ts
98
+ //#region src/domain/schema/schemas.d.ts
152
99
 
153
100
  declare const JsonSchemaDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
154
101
  $schema: z.ZodOptional<z.ZodString>;
@@ -317,6 +264,8 @@ interface JsonSchemaProperty {
317
264
  description?: string;
318
265
  type: 'string' | 'integer' | 'number' | 'boolean' | 'object' | 'array' | 'null';
319
266
  format?: string;
267
+ pattern?: string;
268
+ enum?: (string | number)[];
320
269
  primary?: boolean;
321
270
  autoIncrement?: boolean;
322
271
  unique?: boolean;
@@ -325,6 +274,8 @@ interface JsonSchemaProperty {
325
274
  minLength?: number;
326
275
  minimum?: number;
327
276
  maximum?: number;
277
+ examples?: unknown[];
278
+ xPrompt?: string;
328
279
  drizzle?: {
329
280
  mode?: 'json' | 'timestamp' | 'timestamp_ms' | 'boolean' | 'bigint';
330
281
  customType?: string;
@@ -340,7 +291,76 @@ interface JsonSchemaProperty {
340
291
  }
341
292
  type JsonSchemaDefinition = z.infer<typeof JsonSchemaDefinitionSchema>;
342
293
  //#endregion
343
- //#region src/core/schema-sqlite/parser.d.ts
294
+ //#region src/domain/schema/types.d.ts
295
+ type ColumnType = {
296
+ class: 'text';
297
+ mode?: 'json';
298
+ } | {
299
+ class: 'integer';
300
+ mode?: 'boolean' | 'timestamp' | 'timestamp_ms' | 'bigint';
301
+ } | {
302
+ class: 'real';
303
+ };
304
+ interface CheckConstraint {
305
+ name: string;
306
+ column: string;
307
+ kind: 'min_length' | 'max_length' | 'min_value' | 'max_value';
308
+ value: number;
309
+ }
310
+ interface ParsedColumn {
311
+ name: string;
312
+ columnType: ColumnType;
313
+ isPrimary: boolean;
314
+ isAutoIncrement: boolean;
315
+ isNullable: boolean;
316
+ isUnique: boolean;
317
+ default?: unknown;
318
+ isForeignKey?: boolean;
319
+ foreignKeyRef?: {
320
+ table: string;
321
+ column: string;
322
+ };
323
+ }
324
+ interface ParsedTable {
325
+ name: string;
326
+ columns: ParsedColumn[];
327
+ checks?: CheckConstraint[];
328
+ }
329
+ interface ParsedRelation {
330
+ fromTable: string;
331
+ fromColumn: string;
332
+ toTable: string;
333
+ toColumn: string;
334
+ name: string;
335
+ }
336
+ interface ParsedReverseRelation {
337
+ type: 'has-one' | 'has-many';
338
+ fromTable: string;
339
+ toTable: string;
340
+ name: string;
341
+ }
342
+ interface ParseResult {
343
+ tables: ParsedTable[];
344
+ relations: ParsedRelation[];
345
+ reverseRelations: ParsedReverseRelation[];
346
+ warnings: string[];
347
+ }
348
+ interface MigrationConfig {
349
+ schemaPath: string;
350
+ drizzleSchemaPath: string;
351
+ migrationsPath: string;
352
+ databasePath: string;
353
+ drizzleConfigPath: string;
354
+ }
355
+ //#endregion
356
+ //#region src/domain/schema/parser.d.ts
344
357
  declare function parseJsonSchema(schema: JsonSchemaDefinition): ParseResult;
345
358
  //#endregion
359
+ //#region src/infrastructure/schema/generate-drizzle-schema.d.ts
360
+ declare function generateDrizzleSchema(result: ParseResult): string;
361
+ //#endregion
362
+ //#region src/infrastructure/schema/migration-config.d.ts
363
+ declare function createMigrationConfig(cwd: string): MigrationConfig;
364
+ declare function generateDrizzleConfig(): string;
365
+ //#endregion
346
366
  export { type DoctorDiagnostics, type JsonSchemaDefinition, JsonSchemaDefinitionSchema, type JsonSchemaProperty, type MigrationConfig, type ParseResult, type ParsedColumn, type ParsedRelation, type ParsedTable, buildDoctorDiagnostics, collectDoctorDiagnostics, createMigrationConfig, doctorDiagnosticsTableRows, formatDoctorDiagnosticsJson, generateDrizzleConfig, generateDrizzleSchema, parseJsonSchema };
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { D as buildDoctorDiagnostics, O as doctorDiagnosticsTableRows, a as parseJsonSchema, i as JsonSchemaDefinitionSchema, k as formatDoctorDiagnosticsJson, n as createMigrationConfig, r as generateDrizzleConfig, s as generateDrizzleSchema, t as collectDoctorDiagnostics } from "./doctor-collector-SgMb2oQN.mjs";
1
+ import { _ as doctorDiagnosticsTableRows, g as buildDoctorDiagnostics, i as generateDrizzleConfig, m as parseJsonSchema, n as collectDoctorDiagnostics, p as JsonSchemaDefinitionSchema, r as createMigrationConfig, t as generateDrizzleSchema, v as formatDoctorDiagnosticsJson } from "./generate-drizzle-schema-D_oDmf4J.mjs";
2
2
 
3
3
  export { JsonSchemaDefinitionSchema, buildDoctorDiagnostics, collectDoctorDiagnostics, createMigrationConfig, doctorDiagnosticsTableRows, formatDoctorDiagnosticsJson, generateDrizzleConfig, generateDrizzleSchema, parseJsonSchema };
@@ -111,6 +111,24 @@
111
111
  "default": {
112
112
  "description": "Default value for the column. Type should match the column type."
113
113
  },
114
+ "pattern": {
115
+ "type": "string",
116
+ "description": "Regular expression constraint for string values."
117
+ },
118
+ "enum": {
119
+ "type": "array",
120
+ "items": { "type": "string" },
121
+ "description": "Enumeration of allowed values for this field."
122
+ },
123
+ "examples": {
124
+ "type": "array",
125
+ "description": "Example values for this field (injected into AI prompt).",
126
+ "items": {}
127
+ },
128
+ "xPrompt": {
129
+ "type": "string",
130
+ "description": "Custom extraction instruction for this field, overrides the default AI prompt (prefixed with 'x-' to stay valid JSON Schema)."
131
+ },
114
132
  "minLength": {
115
133
  "type": "integer",
116
134
  "minimum": 0,
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/editor.main-DQ658ZNP.js","assets/preload-helper-DWTEM3RW.js","assets/editor.api-C8BHpRhn.js","assets/chunk-DtRyYLXJ.js","assets/editor-BR-TvLsg.css","assets/monaco.contribution-BJhODGkt.js","assets/editor-DPKWm9GW.css"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./chunk-DtRyYLXJ.js";import{$ as t,A as n,C as r,D as i,E as a,G as o,H as s,I as c,It as l,J as u,Jt as d,K as f,L as p,M as m,Mt as h,O as g,Ot as _,P as v,Pt as y,Rt as b,S as x,T as S,U as C,Ut as w,Vt as T,W as E,X as D,Y as ee,Z as te,an as ne,dt as re,en as O,et as ie,fn as ae,g as oe,gn as k,gt as A,ht as j,i as se,it as ce,lt as M,m as le,n as ue,o as de,on as N,pn as fe,q as P,r as pe,rn as me,rt as F,s as he,tt as ge,u as _e,vt as ve,w as I,x as L,y as R,yt as z}from"./vue-i18n-Du42D0vb.js";import{r as ye,t as be}from"./dialog-CnZ7jH1l.js";import{r as xe,t as Se}from"./object-utils-C6FkG7fw.js";import{r as Ce}from"./dist-CElVIpns.js";import{t as we}from"./preload-helper-DWTEM3RW.js";import{a as Te,i as Ee,n as De,o as Oe,t as ke}from"./textarea-DMpqBhjw.js";var Ae=_e.extend({name:`tabpanel`,classes:{root:function(e){return[`p-tabpanel`,{"p-tabpanel-active":e.instance.active}]}}}),je={name:`TabPanel`,extends:{name:`BaseTabPanel`,extends:he,props:{value:{type:[String,Number],default:void 0},as:{type:[String,Object],default:`DIV`},asChild:{type:Boolean,default:!1},header:null,headerStyle:null,headerClass:null,headerProps:null,headerActionProps:null,contentStyle:null,contentClass:null,contentProps:null,disabled:Boolean},style:Ae,provide:function(){return{$pcTabPanel:this,$parentInstance:this}}},inheritAttrs:!1,inject:[`$pcTabs`],computed:{active:function(){return ae(this.$pcTabs?.d_value,this.value)},id:function(){return`${this.$pcTabs?.$id}_tabpanel_${this.value}`},ariaLabelledby:function(){return`${this.$pcTabs?.$id}_tab_${this.value}`},attrs:function(){return p(this.a11yAttrs,this.ptmi(`root`,this.ptParams))},a11yAttrs:function(){return{id:this.id,tabindex:this.$pcTabs?.tabindex,role:`tabpanel`,"aria-labelledby":this.ariaLabelledby,"data-pc-name":`tabpanel`,"data-p-active":this.active}},ptParams:function(){return{context:{active:this.active}}}}};function Me(e,t,n,i,a,o){var s,c;return o.$pcTabs?(E(),S(R,{key:1},[e.asChild?P(e.$slots,`default`,{key:1,class:A(e.cx(`root`)),active:o.active,a11yAttrs:o.a11yAttrs}):(E(),S(R,{key:0},[!((s=o.$pcTabs)!=null&&s.lazy)||o.active?ce((E(),r(D(e.as),p({key:0,class:e.cx(`root`)},o.attrs),{default:F(function(){return[P(e.$slots,`default`)]}),_:3},16,[`class`])),[[oe,(c=o.$pcTabs)!=null&&c.lazy?!0:o.active]]):I(``,!0)],64))],64)):P(e.$slots,`default`,{key:0})}je.render=Me;var Ne=_e.extend({name:`tab`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-tab`,{"p-tab-active":t.active,"p-disabled":n.disabled}]}}}),Pe={name:`Tab`,extends:{name:`BaseTab`,extends:he,props:{value:{type:[String,Number],default:void 0},disabled:{type:Boolean,default:!1},as:{type:[String,Object],default:`BUTTON`},asChild:{type:Boolean,default:!1}},style:Ne,provide:function(){return{$pcTab:this,$parentInstance:this}}},inheritAttrs:!1,inject:[`$pcTabs`,`$pcTabList`],methods:{onFocus:function(){this.$pcTabs.selectOnFocus&&this.changeActiveValue()},onClick:function(){this.changeActiveValue()},onKeydown:function(e){switch(e.code){case`ArrowRight`:this.onArrowRightKey(e);break;case`ArrowLeft`:this.onArrowLeftKey(e);break;case`Home`:this.onHomeKey(e);break;case`End`:this.onEndKey(e);break;case`PageDown`:this.onPageDownKey(e);break;case`PageUp`:this.onPageUpKey(e);break;case`Enter`:case`NumpadEnter`:case`Space`:this.onEnterKey(e);break}},onArrowRightKey:function(e){var t=this.findNextTab(e.currentTarget);t?this.changeFocusedTab(e,t):this.onHomeKey(e),e.preventDefault()},onArrowLeftKey:function(e){var t=this.findPrevTab(e.currentTarget);t?this.changeFocusedTab(e,t):this.onEndKey(e),e.preventDefault()},onHomeKey:function(e){var t=this.findFirstTab();this.changeFocusedTab(e,t),e.preventDefault()},onEndKey:function(e){var t=this.findLastTab();this.changeFocusedTab(e,t),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.findLastTab()),e.preventDefault()},onPageUpKey:function(e){this.scrollInView(this.findFirstTab()),e.preventDefault()},onEnterKey:function(e){this.changeActiveValue()},findNextTab:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1]?e:e.nextElementSibling;return t?l(t,`data-p-disabled`)||l(t,`data-pc-section`)===`activebar`?this.findNextTab(t):ne(t,`[data-pc-name="tab"]`):null},findPrevTab:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1]?e:e.previousElementSibling;return t?l(t,`data-p-disabled`)||l(t,`data-pc-section`)===`activebar`?this.findPrevTab(t):ne(t,`[data-pc-name="tab"]`):null},findFirstTab:function(){return this.findNextTab(this.$pcTabList.$refs.tabs.firstElementChild,!0)},findLastTab:function(){return this.findPrevTab(this.$pcTabList.$refs.tabs.lastElementChild,!0)},changeActiveValue:function(){this.$pcTabs.updateValue(this.value)},changeFocusedTab:function(e,t){d(t),this.scrollInView(t)},scrollInView:function(e){var t;e==null||(t=e.scrollIntoView)==null||t.call(e,{block:`nearest`})}},computed:{active:function(){return ae(this.$pcTabs?.d_value,this.value)},id:function(){return`${this.$pcTabs?.$id}_tab_${this.value}`},ariaControls:function(){return`${this.$pcTabs?.$id}_tabpanel_${this.value}`},attrs:function(){return p(this.asAttrs,this.a11yAttrs,this.ptmi(`root`,this.ptParams))},asAttrs:function(){return this.as===`BUTTON`?{type:`button`,disabled:this.disabled}:void 0},a11yAttrs:function(){return{id:this.id,tabindex:this.active?this.$pcTabs.tabindex:-1,role:`tab`,"aria-selected":this.active,"aria-controls":this.ariaControls,"data-pc-name":`tab`,"data-p-disabled":this.disabled,"data-p-active":this.active,onFocus:this.onFocus,onKeydown:this.onKeydown}},ptParams:function(){return{context:{active:this.active}}},dataP:function(){return N({active:this.active})}},directives:{ripple:se}};function Fe(e,t,n,i,a,o){var s=ee(`ripple`);return e.asChild?P(e.$slots,`default`,{key:1,dataP:o.dataP,class:A(e.cx(`root`)),active:o.active,a11yAttrs:o.a11yAttrs,onClick:o.onClick}):ce((E(),r(D(e.as),p({key:0,class:e.cx(`root`),"data-p":o.dataP,onClick:o.onClick},o.attrs),{default:F(function(){return[P(e.$slots,`default`)]}),_:3},16,[`class`,`data-p`,`onClick`])),[[s]])}Pe.render=Fe;var Ie={name:`ChevronLeftIcon`,extends:de};function Le(e){return Ve(e)||Be(e)||ze(e)||Re()}function Re(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2
+ import{t as e}from"./chunk-DtRyYLXJ.js";import{$ as t,A as n,C as r,D as i,E as a,G as o,H as s,I as c,It as l,J as u,Jt as d,K as f,L as p,M as m,Mt as h,O as g,Ot as _,P as v,Pt as y,Rt as b,S as x,T as S,U as C,Ut as w,Vt as T,W as E,X as D,Y as ee,Z as te,an as ne,dt as re,en as O,et as ie,fn as ae,g as oe,gn as k,gt as A,ht as j,i as se,it as ce,lt as M,m as le,n as ue,o as de,on as N,pn as fe,q as P,r as pe,rn as me,rt as F,s as he,tt as ge,u as _e,vt as ve,w as I,x as L,y as R,yt as z}from"./vue-i18n-Du42D0vb.js";import{r as ye,t as be}from"./dialog-CnZ7jH1l.js";import{r as xe,t as Se}from"./object-utils-CqCiBqJ4.js";import{r as Ce}from"./dist-CElVIpns.js";import{t as we}from"./preload-helper-DWTEM3RW.js";import{a as Te,i as Ee,n as De,o as Oe,t as ke}from"./textarea-DMpqBhjw.js";var Ae=_e.extend({name:`tabpanel`,classes:{root:function(e){return[`p-tabpanel`,{"p-tabpanel-active":e.instance.active}]}}}),je={name:`TabPanel`,extends:{name:`BaseTabPanel`,extends:he,props:{value:{type:[String,Number],default:void 0},as:{type:[String,Object],default:`DIV`},asChild:{type:Boolean,default:!1},header:null,headerStyle:null,headerClass:null,headerProps:null,headerActionProps:null,contentStyle:null,contentClass:null,contentProps:null,disabled:Boolean},style:Ae,provide:function(){return{$pcTabPanel:this,$parentInstance:this}}},inheritAttrs:!1,inject:[`$pcTabs`],computed:{active:function(){return ae(this.$pcTabs?.d_value,this.value)},id:function(){return`${this.$pcTabs?.$id}_tabpanel_${this.value}`},ariaLabelledby:function(){return`${this.$pcTabs?.$id}_tab_${this.value}`},attrs:function(){return p(this.a11yAttrs,this.ptmi(`root`,this.ptParams))},a11yAttrs:function(){return{id:this.id,tabindex:this.$pcTabs?.tabindex,role:`tabpanel`,"aria-labelledby":this.ariaLabelledby,"data-pc-name":`tabpanel`,"data-p-active":this.active}},ptParams:function(){return{context:{active:this.active}}}}};function Me(e,t,n,i,a,o){var s,c;return o.$pcTabs?(E(),S(R,{key:1},[e.asChild?P(e.$slots,`default`,{key:1,class:A(e.cx(`root`)),active:o.active,a11yAttrs:o.a11yAttrs}):(E(),S(R,{key:0},[!((s=o.$pcTabs)!=null&&s.lazy)||o.active?ce((E(),r(D(e.as),p({key:0,class:e.cx(`root`)},o.attrs),{default:F(function(){return[P(e.$slots,`default`)]}),_:3},16,[`class`])),[[oe,(c=o.$pcTabs)!=null&&c.lazy?!0:o.active]]):I(``,!0)],64))],64)):P(e.$slots,`default`,{key:0})}je.render=Me;var Ne=_e.extend({name:`tab`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-tab`,{"p-tab-active":t.active,"p-disabled":n.disabled}]}}}),Pe={name:`Tab`,extends:{name:`BaseTab`,extends:he,props:{value:{type:[String,Number],default:void 0},disabled:{type:Boolean,default:!1},as:{type:[String,Object],default:`BUTTON`},asChild:{type:Boolean,default:!1}},style:Ne,provide:function(){return{$pcTab:this,$parentInstance:this}}},inheritAttrs:!1,inject:[`$pcTabs`,`$pcTabList`],methods:{onFocus:function(){this.$pcTabs.selectOnFocus&&this.changeActiveValue()},onClick:function(){this.changeActiveValue()},onKeydown:function(e){switch(e.code){case`ArrowRight`:this.onArrowRightKey(e);break;case`ArrowLeft`:this.onArrowLeftKey(e);break;case`Home`:this.onHomeKey(e);break;case`End`:this.onEndKey(e);break;case`PageDown`:this.onPageDownKey(e);break;case`PageUp`:this.onPageUpKey(e);break;case`Enter`:case`NumpadEnter`:case`Space`:this.onEnterKey(e);break}},onArrowRightKey:function(e){var t=this.findNextTab(e.currentTarget);t?this.changeFocusedTab(e,t):this.onHomeKey(e),e.preventDefault()},onArrowLeftKey:function(e){var t=this.findPrevTab(e.currentTarget);t?this.changeFocusedTab(e,t):this.onEndKey(e),e.preventDefault()},onHomeKey:function(e){var t=this.findFirstTab();this.changeFocusedTab(e,t),e.preventDefault()},onEndKey:function(e){var t=this.findLastTab();this.changeFocusedTab(e,t),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.findLastTab()),e.preventDefault()},onPageUpKey:function(e){this.scrollInView(this.findFirstTab()),e.preventDefault()},onEnterKey:function(e){this.changeActiveValue()},findNextTab:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1]?e:e.nextElementSibling;return t?l(t,`data-p-disabled`)||l(t,`data-pc-section`)===`activebar`?this.findNextTab(t):ne(t,`[data-pc-name="tab"]`):null},findPrevTab:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1]?e:e.previousElementSibling;return t?l(t,`data-p-disabled`)||l(t,`data-pc-section`)===`activebar`?this.findPrevTab(t):ne(t,`[data-pc-name="tab"]`):null},findFirstTab:function(){return this.findNextTab(this.$pcTabList.$refs.tabs.firstElementChild,!0)},findLastTab:function(){return this.findPrevTab(this.$pcTabList.$refs.tabs.lastElementChild,!0)},changeActiveValue:function(){this.$pcTabs.updateValue(this.value)},changeFocusedTab:function(e,t){d(t),this.scrollInView(t)},scrollInView:function(e){var t;e==null||(t=e.scrollIntoView)==null||t.call(e,{block:`nearest`})}},computed:{active:function(){return ae(this.$pcTabs?.d_value,this.value)},id:function(){return`${this.$pcTabs?.$id}_tab_${this.value}`},ariaControls:function(){return`${this.$pcTabs?.$id}_tabpanel_${this.value}`},attrs:function(){return p(this.asAttrs,this.a11yAttrs,this.ptmi(`root`,this.ptParams))},asAttrs:function(){return this.as===`BUTTON`?{type:`button`,disabled:this.disabled}:void 0},a11yAttrs:function(){return{id:this.id,tabindex:this.active?this.$pcTabs.tabindex:-1,role:`tab`,"aria-selected":this.active,"aria-controls":this.ariaControls,"data-pc-name":`tab`,"data-p-disabled":this.disabled,"data-p-active":this.active,onFocus:this.onFocus,onKeydown:this.onKeydown}},ptParams:function(){return{context:{active:this.active}}},dataP:function(){return N({active:this.active})}},directives:{ripple:se}};function Fe(e,t,n,i,a,o){var s=ee(`ripple`);return e.asChild?P(e.$slots,`default`,{key:1,dataP:o.dataP,class:A(e.cx(`root`)),active:o.active,a11yAttrs:o.a11yAttrs,onClick:o.onClick}):ce((E(),r(D(e.as),p({key:0,class:e.cx(`root`),"data-p":o.dataP,onClick:o.onClick},o.attrs),{default:F(function(){return[P(e.$slots,`default`)]}),_:3},16,[`class`,`data-p`,`onClick`])),[[s]])}Pe.render=Fe;var Ie={name:`ChevronLeftIcon`,extends:de};function Le(e){return Ve(e)||Be(e)||ze(e)||Re()}function Re(){throw TypeError(`Invalid attempt to spread non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ze(e,t){if(e){if(typeof e==`string`)return He(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)?He(e,t):void 0}}function Be(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ve(e){if(Array.isArray(e))return He(e)}function He(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 Ue(e,t,n,r,i,a){return E(),S(`svg`,p({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),Le(t[0]||=[x(`path`,{d:`M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z`,fill:`currentColor`},null,-1)]),16)}Ie.render=Ue;var We={name:`ChevronRightIcon`,extends:de};function Ge(e){return Ye(e)||Je(e)||qe(e)||Ke()}function Ke(){throw TypeError(`Invalid attempt to spread non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qe(e,t){if(e){if(typeof e==`string`)return Xe(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)?Xe(e,t):void 0}}function Je(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ye(e){if(Array.isArray(e))return Xe(e)}function Xe(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 Ze(e,t,n,r,i,a){return E(),S(`svg`,p({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),Ge(t[0]||=[x(`path`,{d:`M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z`,fill:`currentColor`},null,-1)]),16)}We.render=Ze;var Qe={name:`TabList`,extends:{name:`BaseTabList`,extends:he,props:{},style:_e.extend({name:`tablist`,classes:{root:`p-tablist`,content:`p-tablist-content p-tablist-viewport`,tabList:`p-tablist-tab-list`,activeBar:`p-tablist-active-bar`,prevButton:`p-tablist-prev-button p-tablist-nav-button`,nextButton:`p-tablist-next-button p-tablist-nav-button`}}),provide:function(){return{$pcTabList:this,$parentInstance:this}}},inheritAttrs:!1,inject:[`$pcTabs`],data:function(){return{isPrevButtonEnabled:!1,isNextButtonEnabled:!0}},resizeObserver:void 0,inkBarObserver:void 0,watch:{showNavigators:function(e){e?this.bindResizeObserver():this.unbindResizeObserver()},activeValue:{flush:`post`,handler:function(){this.updateInkBar(),this.bindInkBarObserver()}}},mounted:function(){var e=this;setTimeout(function(){e.updateInkBar(),e.bindInkBarObserver()},150),this.showNavigators&&(this.updateButtonState(),this.bindResizeObserver())},updated:function(){this.showNavigators&&this.updateButtonState()},beforeUnmount:function(){this.unbindResizeObserver(),this.unbindInkBarObserver()},methods:{onScroll:function(e){this.showNavigators&&this.updateButtonState(),e.preventDefault()},onPrevButtonClick:function(){var e=this.$refs.content,t=this.getVisibleButtonWidths(),n=b(e)-t,r=Math.abs(e.scrollLeft)-n*.8,i=Math.max(r,0);e.scrollLeft=w(e)?-1*i:i},onNextButtonClick:function(){var e=this.$refs.content,t=this.getVisibleButtonWidths(),n=b(e)-t,r=Math.abs(e.scrollLeft)+n*.8,i=e.scrollWidth-n,a=Math.min(r,i);e.scrollLeft=w(e)?-1*a:a},bindResizeObserver:function(){var e=this;this.resizeObserver=new ResizeObserver(function(){return e.updateButtonState()}),this.resizeObserver.observe(this.$refs.list)},unbindResizeObserver:function(){var e;(e=this.resizeObserver)==null||e.unobserve(this.$refs.list),this.resizeObserver=void 0},bindInkBarObserver:function(){var e=this;this.unbindInkBarObserver();var t=this.$refs.content,n=ne(t,`[data-pc-name="tab"][data-p-active="true"]`);n&&(this.inkBarObserver=new ResizeObserver(function(){return e.updateInkBar()}),this.inkBarObserver.observe(n))},unbindInkBarObserver:function(){var e;(e=this.inkBarObserver)==null||e.disconnect(),this.inkBarObserver=void 0},updateInkBar:function(){var e=this.$refs,t=e.content,n=e.inkbar,r=e.tabs;if(n){var i=ne(t,`[data-pc-name="tab"][data-p-active="true"]`);this.$pcTabs.isVertical()?(n.style.height=_(i)+`px`,n.style.top=h(i).top-h(r).top+`px`):(n.style.width=me(i)+`px`,n.style.left=h(i).left-h(r).left+`px`)}},updateButtonState:function(){var e=this.$refs,t=e.list,n=e.content,r=n.scrollTop,i=n.scrollWidth,a=n.scrollHeight,o=n.offsetWidth,s=n.offsetHeight,c=Math.abs(n.scrollLeft),l=[b(n),T(n)],u=l[0],d=l[1];this.$pcTabs.isVertical()?(this.isPrevButtonEnabled=r!==0,this.isNextButtonEnabled=t.offsetHeight>=s&&parseInt(r)!==a-d):(this.isPrevButtonEnabled=c!==0,this.isNextButtonEnabled=t.offsetWidth>=o&&parseInt(c)!==i-u)},getVisibleButtonWidths:function(){var e=this.$refs,t=e.prevButton,n=e.nextButton,r=0;return this.showNavigators&&(r=(t?.offsetWidth||0)+(n?.offsetWidth||0)),r}},computed:{templates:function(){return this.$pcTabs.$slots},activeValue:function(){return this.$pcTabs.d_value},showNavigators:function(){return this.$pcTabs.showNavigators},prevButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.previous:void 0},nextButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.next:void 0},dataP:function(){return N({scrollable:this.$pcTabs.scrollable})}},components:{ChevronLeftIcon:Ie,ChevronRightIcon:We},directives:{ripple:se}},$e=[`data-p`],et=[`aria-label`,`tabindex`],tt=[`data-p`],nt=[`aria-orientation`],rt=[`aria-label`,`tabindex`];function it(e,t,n,i,a,o){var s=ee(`ripple`);return E(),S(`div`,p({ref:`list`,class:e.cx(`root`),"data-p":o.dataP},e.ptmi(`root`)),[o.showNavigators&&a.isPrevButtonEnabled?ce((E(),S(`button`,p({key:0,ref:`prevButton`,type:`button`,class:e.cx(`prevButton`),"aria-label":o.prevButtonAriaLabel,tabindex:o.$pcTabs.tabindex,onClick:t[0]||=function(){return o.onPrevButtonClick&&o.onPrevButtonClick.apply(o,arguments)}},e.ptm(`prevButton`),{"data-pc-group-section":`navigator`}),[(E(),r(D(o.templates.previcon||`ChevronLeftIcon`),p({"aria-hidden":`true`},e.ptm(`prevIcon`)),null,16))],16,et)),[[s]]):I(``,!0),x(`div`,p({ref:`content`,class:e.cx(`content`),onScroll:t[1]||=function(){return o.onScroll&&o.onScroll.apply(o,arguments)},"data-p":o.dataP},e.ptm(`content`)),[x(`div`,p({ref:`tabs`,class:e.cx(`tabList`),role:`tablist`,"aria-orientation":o.$pcTabs.orientation||`horizontal`},e.ptm(`tabList`)),[P(e.$slots,`default`),x(`span`,p({ref:`inkbar`,class:e.cx(`activeBar`),role:`presentation`,"aria-hidden":`true`},e.ptm(`activeBar`)),null,16)],16,nt)],16,tt),o.showNavigators&&a.isNextButtonEnabled?ce((E(),S(`button`,p({key:1,ref:`nextButton`,type:`button`,class:e.cx(`nextButton`),"aria-label":o.nextButtonAriaLabel,tabindex:o.$pcTabs.tabindex,onClick:t[2]||=function(){return o.onNextButtonClick&&o.onNextButtonClick.apply(o,arguments)}},e.ptm(`nextButton`),{"data-pc-group-section":`navigator`}),[(E(),r(D(o.templates.nexticon||`ChevronRightIcon`),p({"aria-hidden":`true`},e.ptm(`nextIcon`)),null,16))],16,rt)),[[s]]):I(``,!0)],16,$e)}Qe.render=it;var at={name:`TabPanels`,extends:{name:`BaseTabPanels`,extends:he,props:{},style:_e.extend({name:`tabpanels`,classes:{root:`p-tabpanels`}}),provide:function(){return{$pcTabPanels:this,$parentInstance:this}}},inheritAttrs:!1};function ot(e,t,n,r,i,a){return E(),S(`div`,p({class:e.cx(`root`),role:`presentation`},e.ptmi(`root`)),[P(e.$slots,`default`)],16)}at.render=ot;var st=_e.extend({name:`tabs`,style:`
5
5
  .p-tabs {