@pipelab/ui 2.0.0-beta.18 → 2.0.0-beta.19
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/assets/Layout-BLjrrEyL.js +298 -0
- package/assets/{Layout-FIXYm854.css → Layout-Bx2uRXro.css} +1 -1
- package/assets/{accordion-CMy4PzbL.js → accordion-Cnuumtp_.js} +1 -1
- package/assets/{checkbox--ZzX6hNS.js → checkbox-BoO_OZOz.js} +1 -1
- package/assets/{chevronright-Cjk-bctP.js → chevronright-_Psj8mTP.js} +1 -1
- package/assets/{connections-Dyz6Pvxm.js → connections-BNe3oEey.js} +1 -1
- package/assets/{connections-DGmAXvOm.js → connections-bDoYqOAW.js} +1 -1
- package/assets/{editor-C8aAemZg.css → editor-BpQGpdGH.css} +1 -1
- package/assets/{editor-mJaf_gwK.js → editor-Doc0dkih.js} +22 -22
- package/assets/index-BkM3q6Wr.css +1 -0
- package/assets/index-CDeamhh1.js +764 -0
- package/assets/{integrations-Dv5wHwIq.js → integrations-DnJoIQC6.js} +1 -1
- package/assets/pages-CitSHAXj.js +84 -0
- package/assets/pages-n1jf8KMm.css +1 -0
- package/assets/{purify-Bh6wx2J7.js → purify-jTtZWPE5.js} +1 -1
- package/assets/{radiobutton-ZnyrrXI1.js → radiobutton-D_xF5hhJ.js} +1 -1
- package/assets/{simple-editor-BpRmL1s3.js → simple-editor-UOwkO9ci.js} +1 -1
- package/assets/{src-BBYUXxaa.js → src-D2HHhxFh.js} +1 -1
- package/assets/{tab-l6F1_e6c.js → tab-DMw6bDQi.js} +1 -1
- package/assets/{tag-BUv3vpiu.js → tag-BdXkfwjW.js} +1 -1
- package/assets/{timescircle-OZEljdFp.js → timescircle-Fkq-419O.js} +1 -1
- package/assets/{toast-DQN9s0VP.js → toast-C2s-vzT2.js} +1 -1
- package/assets/useTour-BGvip8ST.js +205 -0
- package/assets/useconfirm-BSCbFIp4.js +366 -0
- package/assets/{usetoast-BYYM2KP9.js → vue-i18n-CI2Y2KyD.js} +6 -6
- package/index.html +13 -13
- package/package.json +1 -1
- package/assets/Layout--sIxRbVH.js +0 -298
- package/assets/index-CQ_uXHBu.css +0 -1
- package/assets/index-Df6mYcaK.js +0 -764
- package/assets/pages-CPbAFyAO.css +0 -1
- package/assets/pages-DnM1_phW.js +0 -84
- package/assets/useTour-B_Wm5oUP.js +0 -520
- package/assets/useconfirm-BDSyul8Z.js +0 -51
- /package/assets/{usetoast-bLNjwPI1.css → vue-i18n-bLNjwPI1.css} +0 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import{_ as e,at as t,j as n,rt as r,st as i}from"./reactivity.esm-bundler-yhMxlGFU.js";import{A as a,C as o,D as s,G as c,H as l,I as u,M as d,N as f,O as p,P as m,W as h,_ as g,c as _,d as v,f as y,g as b,i as x,l as S,m as C,t as w,u as T,v as E,w as D}from"./_plugin-vue_export-helper-DUvwmBqA.js";import{A as O,L as k,Sn as A,U as j,W as M,bt as N,gn as ee,w as P,xt as F,yt as I}from"./vue-i18n-CI2Y2KyD.js";import{n as te,r as L}from"./useconfirm-BSCbFIp4.js";import{a as ne}from"./Layout-BLjrrEyL.js";import{a as re,i as ie,n as ae,r as oe,t as se}from"./tab-DMw6bDQi.js";var ce=[`src`],le=E({__name:`PluginIcon`,props:{icon:{type:Object,required:!0},width:{type:[String,Number],required:!1,default:`40px`},color:{type:String,required:!1,default:`black`}},setup(e){return(n,i)=>e.icon?e.icon.type===`image`?(a(),y(`img`,{key:1,style:t({width:e.width}),src:e.icon.image},null,12,ce)):e.icon.type===`icon`?(a(),y(`i`,{key:2,style:t({"font-size":e.width,width:e.width,display:`flex`,color:e.color}),class:r({"node-icon":!0,mdi:e.icon.icon.startsWith(`mdi-`),pi:e.icon.icon.startsWith(`pi-`),[e.icon.icon]:!0})},null,6)):v(``,!0):(a(),y(`div`,{key:0,style:t({width:e.width})},null,4))}}),ue=F.extend({name:`progressbar`,style:`
|
|
2
|
+
.p-progressbar {
|
|
3
|
+
display: block;
|
|
4
|
+
position: relative;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
height: dt('progressbar.height');
|
|
7
|
+
background: dt('progressbar.background');
|
|
8
|
+
border-radius: dt('progressbar.border.radius');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.p-progressbar-value {
|
|
12
|
+
margin: 0;
|
|
13
|
+
background: dt('progressbar.value.background');
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.p-progressbar-label {
|
|
17
|
+
color: dt('progressbar.label.color');
|
|
18
|
+
font-size: dt('progressbar.label.font.size');
|
|
19
|
+
font-weight: dt('progressbar.label.font.weight');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.p-progressbar-determinate .p-progressbar-value {
|
|
23
|
+
height: 100%;
|
|
24
|
+
width: 0%;
|
|
25
|
+
position: absolute;
|
|
26
|
+
display: none;
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
transition: width 1s ease-in-out;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.p-progressbar-determinate .p-progressbar-label {
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.p-progressbar-indeterminate .p-progressbar-value::before {
|
|
39
|
+
content: '';
|
|
40
|
+
position: absolute;
|
|
41
|
+
background: inherit;
|
|
42
|
+
inset-block-start: 0;
|
|
43
|
+
inset-inline-start: 0;
|
|
44
|
+
inset-block-end: 0;
|
|
45
|
+
will-change: inset-inline-start, inset-inline-end;
|
|
46
|
+
animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.p-progressbar-indeterminate .p-progressbar-value::after {
|
|
50
|
+
content: '';
|
|
51
|
+
position: absolute;
|
|
52
|
+
background: inherit;
|
|
53
|
+
inset-block-start: 0;
|
|
54
|
+
inset-inline-start: 0;
|
|
55
|
+
inset-block-end: 0;
|
|
56
|
+
will-change: inset-inline-start, inset-inline-end;
|
|
57
|
+
animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
|
|
58
|
+
animation-delay: 1.15s;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@keyframes p-progressbar-indeterminate-anim {
|
|
62
|
+
0% {
|
|
63
|
+
inset-inline-start: -35%;
|
|
64
|
+
inset-inline-end: 100%;
|
|
65
|
+
}
|
|
66
|
+
60% {
|
|
67
|
+
inset-inline-start: 100%;
|
|
68
|
+
inset-inline-end: -90%;
|
|
69
|
+
}
|
|
70
|
+
100% {
|
|
71
|
+
inset-inline-start: 100%;
|
|
72
|
+
inset-inline-end: -90%;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
@-webkit-keyframes p-progressbar-indeterminate-anim {
|
|
76
|
+
0% {
|
|
77
|
+
inset-inline-start: -35%;
|
|
78
|
+
inset-inline-end: 100%;
|
|
79
|
+
}
|
|
80
|
+
60% {
|
|
81
|
+
inset-inline-start: 100%;
|
|
82
|
+
inset-inline-end: -90%;
|
|
83
|
+
}
|
|
84
|
+
100% {
|
|
85
|
+
inset-inline-start: 100%;
|
|
86
|
+
inset-inline-end: -90%;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@keyframes p-progressbar-indeterminate-anim-short {
|
|
91
|
+
0% {
|
|
92
|
+
inset-inline-start: -200%;
|
|
93
|
+
inset-inline-end: 100%;
|
|
94
|
+
}
|
|
95
|
+
60% {
|
|
96
|
+
inset-inline-start: 107%;
|
|
97
|
+
inset-inline-end: -8%;
|
|
98
|
+
}
|
|
99
|
+
100% {
|
|
100
|
+
inset-inline-start: 107%;
|
|
101
|
+
inset-inline-end: -8%;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
@-webkit-keyframes p-progressbar-indeterminate-anim-short {
|
|
105
|
+
0% {
|
|
106
|
+
inset-inline-start: -200%;
|
|
107
|
+
inset-inline-end: 100%;
|
|
108
|
+
}
|
|
109
|
+
60% {
|
|
110
|
+
inset-inline-start: 107%;
|
|
111
|
+
inset-inline-end: -8%;
|
|
112
|
+
}
|
|
113
|
+
100% {
|
|
114
|
+
inset-inline-start: 107%;
|
|
115
|
+
inset-inline-end: -8%;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
`,classes:{root:function(e){var t=e.instance;return[`p-progressbar p-component`,{"p-progressbar-determinate":t.determinate,"p-progressbar-indeterminate":t.indeterminate}]},value:`p-progressbar-value`,label:`p-progressbar-label`}}),de={name:`ProgressBar`,extends:{name:`BaseProgressBar`,extends:N,props:{value:{type:Number,default:null},mode:{type:String,default:`determinate`},showValue:{type:Boolean,default:!0}},style:ue,provide:function(){return{$pcProgressBar:this,$parentInstance:this}}},inheritAttrs:!1,computed:{progressStyle:function(){return{width:this.value+`%`,display:`flex`}},indeterminate:function(){return this.mode===`indeterminate`},determinate:function(){return this.mode===`determinate`},dataP:function(){return ee({determinate:this.determinate,indeterminate:this.indeterminate})}}},fe=[`aria-valuenow`,`data-p`],pe=[`data-p`],me=[`data-p`],he=[`data-p`];function ge(e,t,n,r,o,s){return a(),y(`div`,D({role:`progressbar`,class:e.cx(`root`),"aria-valuemin":`0`,"aria-valuenow":e.value,"aria-valuemax":`100`,"data-p":s.dataP},e.ptmi(`root`)),[s.determinate?(a(),y(`div`,D({key:0,class:e.cx(`value`),style:s.progressStyle,"data-p":s.dataP},e.ptm(`value`)),[e.value!=null&&e.value!==0&&e.showValue?(a(),y(`div`,D({key:0,class:e.cx(`label`),"data-p":s.dataP},e.ptm(`label`)),[f(e.$slots,`default`,{},function(){return[b(i(e.value+`%`),1)]})],16,me)):v(``,!0)],16,pe)):s.indeterminate?(a(),y(`div`,D({key:1,class:e.cx(`value`),"data-p":s.dataP},e.ptm(`value`)),null,16,he)):v(``,!0)],16,fe)}de.render=ge;var _e=F.extend({name:`confirmdialog`,style:`
|
|
119
|
+
.p-confirmdialog .p-dialog-content {
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
gap: dt('confirmdialog.content.gap');
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.p-confirmdialog-icon {
|
|
126
|
+
color: dt('confirmdialog.icon.color');
|
|
127
|
+
font-size: dt('confirmdialog.icon.size');
|
|
128
|
+
width: dt('confirmdialog.icon.size');
|
|
129
|
+
height: dt('confirmdialog.icon.size');
|
|
130
|
+
}
|
|
131
|
+
`,classes:{root:`p-confirmdialog`,icon:`p-confirmdialog-icon`,message:`p-confirmdialog-message`,pcRejectButton:`p-confirmdialog-reject-button`,pcAcceptButton:`p-confirmdialog-accept-button`}}),R={name:`ConfirmDialog`,extends:{name:`BaseConfirmDialog`,extends:N,props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},style:_e,provide:function(){return{$pcConfirmDialog:this,$parentInstance:this}}},confirmListener:null,closeListener:null,data:function(){return{visible:!1,confirmation:null}},mounted:function(){var e=this;this.confirmListener=function(t){t&&t.group===e.group&&(e.confirmation=t,e.confirmation.onShow&&e.confirmation.onShow(),e.visible=!0)},this.closeListener=function(){e.visible=!1,e.confirmation=null},L.on(`confirm`,this.confirmListener),L.on(`close`,this.closeListener)},beforeUnmount:function(){L.off(`confirm`,this.confirmListener),L.off(`close`,this.closeListener)},methods:{accept:function(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject:function(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide:function(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1}},computed:{appendTo:function(){return this.confirmation?this.confirmation.appendTo:`body`},target:function(){return this.confirmation?this.confirmation.target:null},modal:function(){return this.confirmation?this.confirmation.modal==null?!0:this.confirmation.modal:!0},header:function(){return this.confirmation?this.confirmation.header:null},message:function(){return this.confirmation?this.confirmation.message:null},blockScroll:function(){return this.confirmation?this.confirmation.blockScroll:!0},position:function(){return this.confirmation?this.confirmation.position:null},acceptLabel:function(){if(this.confirmation){var e=this.confirmation;return e.acceptLabel||e.acceptProps?.label||this.$primevue.config.locale.accept}return this.$primevue.config.locale.accept},rejectLabel:function(){if(this.confirmation){var e=this.confirmation;return e.rejectLabel||e.rejectProps?.label||this.$primevue.config.locale.reject}return this.$primevue.config.locale.reject},acceptIcon:function(){var e;return this.confirmation?this.confirmation.acceptIcon:(e=this.confirmation)!=null&&e.acceptProps?this.confirmation.acceptProps.icon:null},rejectIcon:function(){var e;return this.confirmation?this.confirmation.rejectIcon:(e=this.confirmation)!=null&&e.rejectProps?this.confirmation.rejectProps.icon:null},autoFocusAccept:function(){return this.confirmation.defaultFocus===void 0||this.confirmation.defaultFocus===`accept`},autoFocusReject:function(){return this.confirmation.defaultFocus===`reject`},closeOnEscape:function(){return this.confirmation?this.confirmation.closeOnEscape:!0}},components:{Dialog:P,Button:k}};function ve(e,t,n,o,s,c){var l=m(`Button`),d=m(`Dialog`);return a(),T(d,{visible:s.visible,"onUpdate:visible":[t[2]||=function(e){return s.visible=e},c.onHide],role:`alertdialog`,class:r(e.cx(`root`)),modal:c.modal,header:c.header,blockScroll:c.blockScroll,appendTo:c.appendTo,position:c.position,breakpoints:e.breakpoints,closeOnEscape:c.closeOnEscape,draggable:e.draggable,pt:e.pt,unstyled:e.unstyled},C({default:h(function(){return[e.$slots.container?v(``,!0):(a(),y(x,{key:0},[e.$slots.message?(a(),T(u(e.$slots.message),{key:1,message:s.confirmation},null,8,[`message`])):(a(),y(x,{key:0},[f(e.$slots,`icon`,{},function(){return[e.$slots.icon?(a(),T(u(e.$slots.icon),{key:0,class:r(e.cx(`icon`))},null,8,[`class`])):s.confirmation.icon?(a(),y(`span`,D({key:1,class:[s.confirmation.icon,e.cx(`icon`)]},e.ptm(`icon`)),null,16)):v(``,!0)]}),S(`span`,D({class:e.cx(`message`)},e.ptm(`message`)),i(c.message),17)],64))],64))]}),_:2},[e.$slots.container?{name:`container`,fn:h(function(t){return[f(e.$slots,`container`,{message:s.confirmation,closeCallback:t.closeCallback,acceptCallback:c.accept,rejectCallback:c.reject,initDragCallback:t.initDragCallback})]}),key:`0`}:void 0,e.$slots.container?void 0:{name:`footer`,fn:h(function(){return[g(l,D({class:[e.cx(`pcRejectButton`),s.confirmation.rejectClass],autofocus:c.autoFocusReject,unstyled:e.unstyled,text:s.confirmation.rejectProps?.text||!1,onClick:t[0]||=function(e){return c.reject()}},s.confirmation.rejectProps,{label:c.rejectLabel,pt:e.ptm(`pcRejectButton`)}),C({_:2},[c.rejectIcon||e.$slots.rejecticon?{name:`icon`,fn:h(function(t){return[f(e.$slots,`rejecticon`,{},function(){return[S(`span`,D({class:[c.rejectIcon,t.class]},e.ptm(`pcRejectButton`).icon,{"data-pc-section":`rejectbuttonicon`}),null,16)]})]}),key:`0`}:void 0]),1040,[`class`,`autofocus`,`unstyled`,`text`,`label`,`pt`]),g(l,D({label:c.acceptLabel,class:[e.cx(`pcAcceptButton`),s.confirmation.acceptClass],autofocus:c.autoFocusAccept,unstyled:e.unstyled,onClick:t[1]||=function(e){return c.accept()}},s.confirmation.acceptProps,{pt:e.ptm(`pcAcceptButton`)}),C({_:2},[c.acceptIcon||e.$slots.accepticon?{name:`icon`,fn:h(function(t){return[f(e.$slots,`accepticon`,{},function(){return[S(`span`,D({class:[c.acceptIcon,t.class]},e.ptm(`pcAcceptButton`).icon,{"data-pc-section":`acceptbuttonicon`}),null,16)]})]}),key:`0`}:void 0]),1040,[`label`,`class`,`autofocus`,`unstyled`,`pt`])]}),key:`1`}]),1032,[`visible`,`class`,`modal`,`header`,`blockScroll`,`appendTo`,`position`,`breakpoints`,`closeOnEscape`,`draggable`,`onUpdate:visible`,`pt`,`unstyled`])}R.render=ve;var ye=F.extend({name:`progressspinner`,style:`
|
|
132
|
+
.p-progressspinner {
|
|
133
|
+
position: relative;
|
|
134
|
+
margin: 0 auto;
|
|
135
|
+
width: 100px;
|
|
136
|
+
height: 100px;
|
|
137
|
+
display: inline-block;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.p-progressspinner::before {
|
|
141
|
+
content: '';
|
|
142
|
+
display: block;
|
|
143
|
+
padding-top: 100%;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.p-progressspinner-spin {
|
|
147
|
+
height: 100%;
|
|
148
|
+
transform-origin: center center;
|
|
149
|
+
width: 100%;
|
|
150
|
+
position: absolute;
|
|
151
|
+
top: 0;
|
|
152
|
+
bottom: 0;
|
|
153
|
+
left: 0;
|
|
154
|
+
right: 0;
|
|
155
|
+
margin: auto;
|
|
156
|
+
animation: p-progressspinner-rotate 2s linear infinite;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.p-progressspinner-circle {
|
|
160
|
+
stroke-dasharray: 89, 200;
|
|
161
|
+
stroke-dashoffset: 0;
|
|
162
|
+
stroke: dt('progressspinner.colorOne');
|
|
163
|
+
animation:
|
|
164
|
+
p-progressspinner-dash 1.5s ease-in-out infinite,
|
|
165
|
+
p-progressspinner-color 6s ease-in-out infinite;
|
|
166
|
+
stroke-linecap: round;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@keyframes p-progressspinner-rotate {
|
|
170
|
+
100% {
|
|
171
|
+
transform: rotate(360deg);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
@keyframes p-progressspinner-dash {
|
|
175
|
+
0% {
|
|
176
|
+
stroke-dasharray: 1, 200;
|
|
177
|
+
stroke-dashoffset: 0;
|
|
178
|
+
}
|
|
179
|
+
50% {
|
|
180
|
+
stroke-dasharray: 89, 200;
|
|
181
|
+
stroke-dashoffset: -35px;
|
|
182
|
+
}
|
|
183
|
+
100% {
|
|
184
|
+
stroke-dasharray: 89, 200;
|
|
185
|
+
stroke-dashoffset: -124px;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
@keyframes p-progressspinner-color {
|
|
189
|
+
100%,
|
|
190
|
+
0% {
|
|
191
|
+
stroke: dt('progressspinner.color.one');
|
|
192
|
+
}
|
|
193
|
+
40% {
|
|
194
|
+
stroke: dt('progressspinner.color.two');
|
|
195
|
+
}
|
|
196
|
+
66% {
|
|
197
|
+
stroke: dt('progressspinner.color.three');
|
|
198
|
+
}
|
|
199
|
+
80%,
|
|
200
|
+
90% {
|
|
201
|
+
stroke: dt('progressspinner.color.four');
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
`,classes:{root:`p-progressspinner`,spin:`p-progressspinner-spin`,circle:`p-progressspinner-circle`}}),z={name:`ProgressSpinner`,extends:{name:`BaseProgressSpinner`,extends:N,props:{strokeWidth:{type:String,default:`2`},fill:{type:String,default:`none`},animationDuration:{type:String,default:`2s`}},style:ye,provide:function(){return{$pcProgressSpinner:this,$parentInstance:this}}},inheritAttrs:!1,computed:{svgStyle:function(){return{"animation-duration":this.animationDuration}}}},be=[`fill`,`stroke-width`];function xe(e,t,n,r,i,o){return a(),y(`div`,D({class:e.cx(`root`),role:`progressbar`},e.ptmi(`root`)),[(a(),y(`svg`,D({class:e.cx(`spin`),viewBox:`25 25 50 50`,style:o.svgStyle},e.ptm(`spin`)),[S(`circle`,D({class:e.cx(`circle`),cx:`50`,cy:`50`,r:`20`,fill:e.fill,"stroke-width":e.strokeWidth,strokeMiterlimit:`10`},e.ptm(`circle`)),null,16,be)],16))],16)}z.render=xe;var B=w(E({__name:`BuildStatusBadge`,props:{status:{},showIcon:{type:Boolean,default:!0},size:{default:`medium`}},setup(e){let t=e,n={running:{class:`status-running`,icon:`pi pi-spin pi-spinner`,text:`Running`,color:`#007bff`,tooltip:`Build is currently in progress`},completed:{class:`status-completed`,icon:`pi pi-check`,text:`Completed`,color:`#28a745`,tooltip:`Build completed successfully`},failed:{class:`status-failed`,icon:`pi pi-times`,text:`Failed`,color:`#dc3545`,tooltip:`Build failed with errors`},cancelled:{class:`status-cancelled`,icon:`pi pi-stop`,text:`Cancelled`,color:`#6c757d`,tooltip:`Build was cancelled`},pending:{class:`status-pending`,icon:`pi pi-clock`,text:`Pending`,color:`#ffc107`,tooltip:`Step is waiting to execute`}},o=_(()=>{let e=n[t.status];return[`build-status-badge`,`status-${t.status}`,`size-${t.size}`,e?.class].filter(Boolean)}),s=_(()=>t.showIcon&&n[t.status]?.icon||``),l=_(()=>n[t.status]?.text||t.status),u=_(()=>n[t.status]?.tooltip||t.status);return(e,t)=>{let n=O;return c((a(),y(`span`,{class:r([`build-status-badge`,o.value])},[S(`i`,{class:r([s.value,`status-icon`])},null,2),b(` `+i(l.value),1)],2)),[[n,u.value,void 0,{top:!0}]])}}}),[[`__scopeId`,`data-v-232ff951`]]),Se={class:`item-header`},Ce={class:`item-main-info`},we={class:`project-info`},Te={class:`project-name`},Ee={class:`project-path`},De={class:`status-and-time`},Oe={class:`start-time`},ke={class:`item-actions`},Ae={class:`expanded-content`},je={class:`info-section`},Me={class:`info-grid`},Ne={class:`info-item`},Pe={class:`info-item`},Fe={class:`info-item`},Ie={key:0,class:`info-item`},Le={key:1,class:`info-item`},Re={class:`info-item`},ze={key:0,class:`steps-section`},Be={class:`steps-list`},Ve={class:`step-header`},He={class:`step-name`},Ue={class:`step-details`},We={key:0,class:`step-duration`},Ge={key:1,class:`step-time`},Ke={key:0,class:`steps-more`},qe={key:1,class:`error-section`},Je={class:`error-content`},Ye={class:`error-message`},Xe={key:2,class:`metadata-section`},Ze={class:`metadata-content`},Qe=w(E({__name:`BuildHistoryItem`,props:{entry:{},expandable:{type:Boolean,default:!0},showActions:{type:Boolean,default:!0},canDelete:{type:Boolean,default:!1}},emits:[`view-details`,`delete`,`toggle`],setup(t,{emit:n}){let s=t,l=n;M(),o(`openUpgradeDialog`);let u=e(!1),f=e(!1),p=e=>new Date(e).toLocaleDateString(),m=e=>new Date(e).toLocaleString(),_=e=>new Date(e).toLocaleTimeString(),C=e=>{let t=Math.floor(e/1e3),n=Math.floor(t/60),r=Math.floor(n/60);return r>0?`${r}h ${n%60}m`:n>0?`${n}m ${t%60}s`:`${t}s`},w=()=>{s.expandable&&(u.value=!u.value,l(`toggle`,s.entry,u.value))},E=()=>{l(`delete`,s.entry)};return(e,t)=>{let n=k,o=O;return a(),y(`div`,{class:r([`build-history-item`,{expanded:u.value,"is-clickable":e.expandable}]),onClick:w},[S(`div`,Se,[S(`div`,Ce,[S(`div`,we,[S(`h4`,Te,i(e.entry.projectName),1),S(`span`,Ee,i(e.entry.projectPath),1)]),S(`div`,De,[g(B,{status:e.entry.status,size:`medium`},null,8,[`status`]),S(`span`,Oe,i(p(e.entry.startTime)),1)])]),S(`div`,ke,[e.showActions&&e.canDelete?c((a(),T(n,{key:0,text:``,severity:`danger`,size:`small`,onClick:A(E,[`stop`])},{default:h(()=>t[2]||=[S(`i`,{class:`pi pi-trash`},null,-1)]),_:1})),[[o,`Delete Entry`,void 0,{top:!0}]]):v(``,!0),e.expandable?(a(),y(`i`,{key:1,class:r([`pi expand-icon`,u.value?`pi-chevron-up`:`pi-chevron-down`])},null,2)):v(``,!0)])]),u.value?(a(),y(`div`,{key:0,class:`item-expanded`,onClick:t[1]||=A(()=>{},[`stop`])},[S(`div`,Ae,[S(`div`,je,[t[9]||=S(`h5`,null,`Build Information`,-1),S(`div`,Me,[S(`div`,Ne,[t[3]||=S(`label`,null,`Project ID:`,-1),S(`span`,null,i(e.entry.pipelineId),1)]),S(`div`,Pe,[t[4]||=S(`label`,null,`Status:`,-1),g(B,{status:e.entry.status},null,8,[`status`])]),S(`div`,Fe,[t[5]||=S(`label`,null,`Started:`,-1),S(`span`,null,i(m(e.entry.startTime)),1)]),e.entry.endTime?(a(),y(`div`,Ie,[t[6]||=S(`label`,null,`Ended:`,-1),S(`span`,null,i(m(e.entry.endTime)),1)])):v(``,!0),e.entry.duration?(a(),y(`div`,Le,[t[7]||=S(`label`,null,`Duration:`,-1),S(`span`,null,i(C(e.entry.duration)),1)])):v(``,!0),S(`div`,Re,[t[8]||=S(`label`,null,`Progress:`,-1),S(`span`,null,i(e.entry.completedSteps)+`/`+i(e.entry.totalSteps)+` steps`,1)])])]),e.entry.steps.length>0?(a(),y(`div`,ze,[t[10]||=S(`h5`,null,`Execution Steps`,-1),S(`div`,Be,[(a(!0),y(x,null,d(e.entry.steps.slice(0,f.value?void 0:3),e=>(a(),y(`div`,{key:e.id,class:r([`step-item`,e.status])},[S(`div`,Ve,[S(`span`,He,i(e.name),1),g(B,{status:e.status,size:`small`},null,8,[`status`])]),S(`div`,Ue,[e.duration?(a(),y(`span`,We,i(C(e.duration)),1)):v(``,!0),e.startTime?(a(),y(`span`,Ge,i(_(e.startTime)),1)):v(``,!0)])],2))),128)),e.entry.steps.length>3&&!f.value?(a(),y(`div`,Ke,[g(n,{text:``,size:`small`,onClick:t[0]||=A(e=>f.value=!0,[`stop`])},{default:h(()=>[b(` Show `+i(e.entry.steps.length-3)+` more steps... `,1)]),_:1})])):v(``,!0)])])):v(``,!0),e.entry.error?(a(),y(`div`,qe,[t[11]||=S(`h5`,null,`Error Details`,-1),S(`div`,Je,[S(`p`,Ye,i(e.entry.error.message),1)])])):v(``,!0),e.entry.metadata?(a(),y(`div`,Xe,[t[12]||=S(`h5`,null,`Metadata`,-1),S(`div`,Ze,[S(`pre`,null,i(JSON.stringify(e.entry.metadata,null,2)),1)])])):v(``,!0)])])):v(``,!0)],2)}}}),[[`__scopeId`,`data-v-a5b97d8b`]]),$e={class:`build-history-list`},et={key:0,class:`loading-state`},tt={key:1,class:`error-state`},nt={class:`error-content`},rt={key:2,class:`empty-state`},it={class:`empty-content`},at={key:3,class:`history-content`},ot={class:`list-header`},st={class:`results-info`},ct={class:`results-count`},lt={key:0,class:`list-view`},ut={class:`entries-list`},dt={key:1,class:`grid-view`},ft={class:`entries-grid`},pt=w(E({__name:`BuildHistoryList`,props:{entries:{},isLoading:{type:Boolean,default:!1},error:{default:void 0},hasSubscriptionError:{type:Boolean,default:!1},totalCount:{default:0},canDelete:{type:Boolean,default:!1},canStartBuild:{type:Boolean,default:!1}},emits:[`load-more`,`retry-load`,`view-details`,`delete`,`clear-all`,`start-build`,`sort-change`,`page-change`],setup(t,{emit:n}){let s=t,l=n,u=M(),f=o(`openUpgradeDialog`),p=e(`list`);e(`startTime`),e(`desc`);let m=_(()=>s.entries.length>0),C=()=>{l(`retry-load`)},w=()=>{if(!u.hasBuildHistoryBenefit){f();return}l(`start-build`)},E=e=>{l(`view-details`,e)},D=e=>{l(`delete`,e)},A=()=>{l(`clear-all`)},j=(e,t)=>{console.log(`Entry toggled:`,e.id,t)};return(e,t)=>{let n=z,o=k,s=O;return a(),y(`div`,$e,[e.isLoading&&!m.value?(a(),y(`div`,et,[g(n),t[0]||=S(`p`,null,`Loading build history...`,-1)])):e.error&&!e.hasSubscriptionError?(a(),y(`div`,tt,[t[2]||=S(`i`,{class:`pi pi-exclamation-triangle`},null,-1),S(`div`,nt,[t[1]||=S(`h4`,null,`Failed to Load Build History`,-1),S(`p`,null,i(e.error),1),g(o,{label:`Retry`,severity:`secondary`,onClick:C})])])):!m.value&&!e.isLoading?(a(),y(`div`,rt,[t[5]||=S(`i`,{class:`pi pi-history`},null,-1),S(`div`,it,[t[3]||=S(`h4`,null,`No Build History`,-1),t[4]||=S(`p`,null,`Start a build to see your history here.`,-1),e.canStartBuild?(a(),T(o,{key:0,label:`Start New Build`,severity:`primary`,onClick:w})):v(``,!0)])])):(a(),y(`div`,at,[S(`div`,ot,[S(`div`,st,[S(`span`,ct,` Showing `+i(e.entries.length)+` of `+i(e.totalCount)+` entries `,1),m.value&&e.canDelete?c((a(),T(o,{key:0,text:``,severity:`danger`,size:`small`,class:`ml-2`,onClick:A},{default:h(()=>t[6]||=[S(`i`,{class:`pi pi-trash mr-2`},null,-1),b(` Clear Displayed `)]),_:1})),[[s,`Clear All Entries`,void 0,{top:!0}]]):v(``,!0)])]),S(`div`,{class:r([`entries-container`,`view-${p.value}`])},[p.value===`list`?(a(),y(`div`,lt,[S(`div`,ut,[(a(!0),y(x,null,d(e.entries,t=>(a(),T(Qe,{key:t.id,entry:t,expandable:!0,"show-actions":!0,"can-delete":e.canDelete,onViewDetails:E,onDelete:D,onToggle:j},null,8,[`entry`,`can-delete`]))),128))])])):(a(),y(`div`,dt,[S(`div`,ft,[(a(!0),y(x,null,d(e.entries,t=>(a(),y(`div`,{key:t.id,class:`grid-item`},[g(Qe,{entry:t,expandable:!1,"show-actions":!0,"can-delete":e.canDelete,onViewDetails:E,onDelete:D},null,8,[`entry`,`can-delete`])]))),128))])]))],2)]))])}}}),[[`__scopeId`,`data-v-438e9ee9`]]),mt={key:0,class:`build-details-modal`},ht={class:`build-overview`},gt={class:`overview-header`},_t={class:`build-title`},vt={class:`build-meta`},yt={class:`meta-item`},bt={class:`meta-item`},xt={key:0,class:`meta-item`},St={key:1,class:`meta-item`},Ct={class:`meta-item`},wt={class:`steps-container`},Tt={key:0,class:`no-steps`},Et={key:1,class:`steps-timeline`},Dt={class:`step-timeline-marker`},Ot={key:0,class:`step-connector`},kt={class:`step-timeline-content`},At={class:`step-header`},jt={class:`step-name`},Mt={class:`step-status-info`},Nt={key:0,class:`step-duration`},Pt={class:`step-details`},Ft={class:`step-timing`},It={key:0,class:`start-time`},Lt={key:1,class:`end-time`},Rt={key:0,class:`step-logs`},zt={class:`logs-details`},Bt={class:`logs-content`},Vt={class:`log-time`},Ht={class:`log-level`},Ut={class:`log-message`},Wt={key:0,class:`log-source`},Gt={key:1,class:`step-error`},Kt={class:`error-details`},qt={class:`error-summary`},Jt={class:`error-content`},Yt={class:`error-message`},Xt={key:0,class:`error-stack`},Zt={key:1,class:`error-metadata`},Qt={key:2,class:`step-output`},$t={class:`output-details`},en={class:`output-content`},tn={class:`logs-container`},nn={key:0,class:`no-logs`},rn={key:1,class:`logs-list`},an={class:`log-time`},on={class:`log-level`},sn={class:`log-message`},cn={key:0,class:`log-source`},ln={class:`error-container`},un={class:`error-header`},dn={class:`error-content`},fn={class:`error-message`},pn={key:0,class:`error-stack`},mn={key:1,class:`error-metadata`},hn={class:`metadata-container`},gn={key:0,class:`no-metadata`},_n={key:1,class:`metadata-content`},vn={class:`modal-actions`},yn=w(E({__name:`BuildDetailsModal`,props:{entry:{},visible:{type:Boolean},canDelete:{type:Boolean,default:!1},canRetry:{type:Boolean,default:!1}},emits:[`hide`,`retry`,`delete`],setup(e,{emit:t}){let n=e,o=t,s=e=>new Date(e).toLocaleString(),c=e=>new Date(e).toLocaleTimeString(),l=e=>{let t=Math.floor(e/1e3),n=Math.floor(t/60),r=Math.floor(n/60);return r>0?`${r}h ${n%60}m`:n>0?`${n}m ${t%60}s`:`${t}s`},u=e=>({pending:`pi pi-clock`,running:`pi pi-spin pi-spinner`,completed:`pi pi-check`,failed:`pi pi-times`,cancelled:`pi pi-stop`})[e]||`pi pi-circle`,f=()=>{o(`hide`)},p=()=>{o(`hide`)},m=()=>{n.entry&&o(`retry`,n.entry)},_=()=>{n.entry&&o(`delete`,n.entry)};return(e,t)=>{let n=se,o=ae,C=oe,w=ie,E=re,D=k,O=P;return a(),T(O,{visible:e.visible,modal:``,header:`Build Details - ${e.entry?.projectName||`Unknown`}`,style:{width:`90vw`,maxWidth:`1200px`},closable:!0,"onUpdate:visible":p},{default:h(()=>[e.entry?(a(),y(`div`,mt,[S(`div`,ht,[S(`div`,gt,[S(`div`,_t,[S(`h3`,null,i(e.entry.projectName),1),g(B,{status:e.entry.status,size:`large`},null,8,[`status`])]),S(`div`,vt,[S(`div`,yt,[t[0]||=S(`label`,null,`Project ID:`,-1),S(`span`,null,i(e.entry.pipelineId),1)]),S(`div`,bt,[t[1]||=S(`label`,null,`Started:`,-1),S(`span`,null,i(s(e.entry.startTime)),1)]),e.entry.endTime?(a(),y(`div`,xt,[t[2]||=S(`label`,null,`Ended:`,-1),S(`span`,null,i(s(e.entry.endTime)),1)])):v(``,!0),e.entry.duration?(a(),y(`div`,St,[t[3]||=S(`label`,null,`Duration:`,-1),S(`span`,null,i(l(e.entry.duration)),1)])):v(``,!0),S(`div`,Ct,[t[4]||=S(`label`,null,`Progress:`,-1),S(`span`,null,i(e.entry.completedSteps)+`/`+i(e.entry.totalSteps)+` steps`,1)])])])]),g(E,{value:`steps`,class:`details-tabs`},{default:h(()=>[g(o,null,{default:h(()=>[g(n,{value:`steps`},{default:h(()=>t[5]||=[b(`Execution Steps`)]),_:1}),g(n,{value:`logs`},{default:h(()=>t[6]||=[b(`Build Logs`)]),_:1}),e.entry.error?(a(),T(n,{key:0,value:`error`},{default:h(()=>t[7]||=[b(`Error Details`)]),_:1})):v(``,!0),g(n,{value:`metadata`},{default:h(()=>t[8]||=[b(`Metadata`)]),_:1})]),_:1}),g(w,null,{default:h(()=>[g(C,{value:`steps`},{default:h(()=>[S(`div`,wt,[!e.entry.steps||e.entry.steps.length===0?(a(),y(`div`,Tt,t[9]||=[S(`p`,null,`No execution steps available.`,-1)])):(a(),y(`div`,Et,[(a(!0),y(x,null,d(e.entry.steps||[],(n,o)=>(a(),y(`div`,{key:n.id,class:r([`step-timeline-item`,n.status])},[S(`div`,Dt,[S(`i`,{class:r([u(n.status),`step-icon`])},null,2),o<e.entry.steps.length-1?(a(),y(`div`,Ot)):v(``,!0)]),S(`div`,kt,[S(`div`,At,[S(`h4`,jt,i(n.name),1),S(`div`,Mt,[g(B,{status:n.status,size:`small`},null,8,[`status`]),n.duration?(a(),y(`span`,Nt,i(l(n.duration)),1)):v(``,!0)])]),S(`div`,Pt,[S(`div`,Ft,[n.startTime?(a(),y(`span`,It,` Started: `+i(c(n.startTime)),1)):v(``,!0),n.endTime?(a(),y(`span`,Lt,` Ended: `+i(c(n.endTime)),1)):v(``,!0)]),n.logs?.length>0?(a(),y(`div`,Rt,[S(`details`,zt,[S(`summary`,null,`View Logs (`+i(n.logs?.length||0)+` entries)`,1),S(`div`,Bt,[(a(!0),y(x,null,d(n.logs||[],e=>(a(),y(`div`,{key:e.id,class:r([`log-entry`,`log-${e.level||`info`}`])},[S(`span`,Vt,i(c(e.timestamp)),1),S(`span`,Ht,i((e.level||`info`).toUpperCase()),1),S(`span`,Ut,i(Array.isArray(e.message)?e.message.join(` `):e.message),1),e.source?(a(),y(`span`,Wt,`(`+i(e.source)+`)`,1)):v(``,!0)],2))),128))])])])):v(``,!0),n.error?(a(),y(`div`,Gt,[S(`details`,Kt,[S(`summary`,qt,[t[10]||=S(`i`,{class:`pi pi-exclamation-triangle`},null,-1),b(` Error: `+i(n.error.message),1)]),S(`div`,Jt,[S(`p`,Yt,i(n.error.message),1),n.error.stack?(a(),y(`div`,Xt,[t[11]||=S(`h6`,null,`Stack Trace:`,-1),S(`pre`,null,i(n.error.stack),1)])):v(``,!0),n.error.code?(a(),y(`div`,Zt,[S(`small`,null,[t[12]||=S(`strong`,null,`Error Code:`,-1),b(` `+i(n.error.code),1)])])):v(``,!0)])])])):v(``,!0),n.output?(a(),y(`div`,Qt,[S(`details`,$t,[t[13]||=S(`summary`,null,`Step Output`,-1),S(`div`,en,[S(`pre`,null,i(JSON.stringify(n.output,null,2)),1)])])])):v(``,!0)])])],2))),128))]))])]),_:1}),g(C,{value:`logs`},{default:h(()=>[S(`div`,tn,[!e.entry.logs||e.entry.logs.length===0?(a(),y(`div`,nn,t[14]||=[S(`p`,null,`No build logs available.`,-1)])):(a(),y(`div`,rn,[(a(!0),y(x,null,d(e.entry.logs||[],e=>(a(),y(`div`,{key:e.id,class:r([`log-entry`,`log-${e.level||`info`}`])},[S(`span`,an,i(c(e.timestamp)),1),S(`span`,on,i((e.level||`info`).toUpperCase()),1),S(`span`,sn,i(Array.isArray(e.message)?e.message.join(` `):e.message),1),e.source?(a(),y(`span`,cn,`(`+i(e.source)+`)`,1)):v(``,!0)],2))),128))]))])]),_:1}),e.entry.error?(a(),T(C,{key:0,value:`error`},{default:h(()=>[S(`div`,ln,[S(`div`,un,[t[15]||=S(`h4`,null,`Build Error`,-1),g(B,{status:`failed`,size:`medium`})]),S(`div`,dn,[S(`div`,fn,[t[16]||=S(`strong`,null,`Message:`,-1),S(`p`,null,i(e.entry.error.message),1)]),e.entry.error.stack?(a(),y(`div`,pn,[t[17]||=S(`strong`,null,`Stack Trace:`,-1),S(`pre`,null,i(e.entry.error.stack),1)])):v(``,!0),e.entry.error.code?(a(),y(`div`,mn,[t[18]||=S(`strong`,null,`Error Code:`,-1),b(` `+i(e.entry.error.code),1)])):v(``,!0)])])]),_:1})):v(``,!0),g(C,{value:`metadata`},{default:h(()=>[S(`div`,hn,[e.entry.metadata?(a(),y(`div`,_n,[S(`pre`,null,i(JSON.stringify(e.entry.metadata,null,2)),1)])):(a(),y(`div`,gn,t[19]||=[S(`p`,null,`No metadata available.`,-1)]))])]),_:1})]),_:1})]),_:1}),S(`div`,vn,[g(D,{label:`Close`,severity:`secondary`,onClick:f}),e.canRetry&&e.entry.status===`failed`?(a(),T(D,{key:0,label:`Retry Build`,severity:`info`,onClick:m})):v(``,!0),e.canDelete?(a(),T(D,{key:1,label:`Delete Entry`,severity:`danger`,onClick:_})):v(``,!0)])])):v(``,!0)]),_:1},8,[`visible`,`header`])}}}),[[`__scopeId`,`data-v-1ee95f2f`]]),bn={class:`build-history-dialog`},xn={key:0,class:`loading-state`},Sn={key:1,class:`main-content`},Cn={key:2,class:`unauthorized-state`},wn={class:`unauthorized-actions`},Tn={class:`export-dialog`},En={class:`export-status`},Dn=w(E({__name:`BuildHistoryDialog`,props:{visible:{type:Boolean},pipelineId:{}},emits:[`hide`,`update:visible`],setup(t,{emit:r}){let c=t,u=r,d=te(),f=ne(),m=M(),v=o(`openUpgradeDialog`),b=e(null),x=e(!1),C=e(!1),w=e(0),E=e(``),D=_(()=>f.storageInfo?.totalEntries||0),O=e=>{b.value=e,x.value=!0},A=()=>{x.value=!1,b.value=null},j=async e=>{d.require({group:`build-history`,message:`Are you sure you want to delete the build history entry for "${e.projectName}"?`,header:`Delete Build History Entry`,icon:`pi pi-exclamation-triangle`,accept:async()=>{try{await f.deleteEntry(e.id)}catch(e){console.error(`Failed to delete entry:`,e)}}})},N=async()=>{let e=c.pipelineId?`Are you sure you want to clear ALL build history entries for this pipeline?`:`Are you sure you want to clear ALL build history entries across all pipelines?`;d.require({group:`build-history`,message:e,header:`Clear Build History`,icon:`pi pi-exclamation-triangle`,accept:async()=>{try{c.pipelineId?await f.clearHistoryByPipeline(c.pipelineId):await f.clearHistory()}catch(e){console.error(`Failed to clear entries:`,e)}}})},ee=async e=>{A(),console.log(`Retrying build for entry:`,e.id),d.require({message:`Retry build functionality would start a new build for "${e.projectName}". This feature is not yet implemented.`,header:`Retry Build`,icon:`pi pi-info-circle`,accept:()=>{}})},F=()=>{u(`update:visible`,!1)},I=async()=>{if(console.log(`buildHistoryStore.canUseHistory`,f.canUseHistory),f.canUseHistory)try{let e={pipelineId:c.pipelineId||void 0};console.log(`query`,e),await f.loadEntries(e)}catch(e){console.error(`Failed to load build history after auth change:`,e)}};return l(()=>c.visible,e=>{e&&I()}),l(()=>c.pipelineId,()=>{c.visible&&I()}),m.onSubscriptionChanged(async({subscriptions:e})=>{c.visible&&I()}),s(()=>{c.visible&&I()}),p(()=>{b.value=null}),(e,t)=>{let r=z,o=k,s=R,c=de,l=P;return a(),T(l,{visible:e.visible,modal:``,header:`Build History`,style:{width:`90vw`,height:`80vh`},closable:!0,"onUpdate:visible":t[2]||=t=>e.$emit(`update:visible`,!1)},{default:h(()=>[S(`div`,bn,[n(m).isLoadingSubscriptions?(a(),y(`div`,xn,[g(r),t[3]||=S(`p`,null,`Loading build history...`,-1)])):n(f).canUseHistory?(a(),y(`div`,Sn,[g(pt,{entries:n(f).entries,"is-loading":n(f).isLoading,error:n(f).error,"total-count":D.value,"can-delete":!0,"can-start-build":!1,onViewDetails:O,onDelete:j,onClearAll:N,onStartBuild:F},null,8,[`entries`,`is-loading`,`error`,`total-count`])])):(a(),y(`div`,Cn,[t[4]||=S(`div`,{class:`unauthorized-icon`},[S(`i`,{class:`pi pi-lock`})],-1),t[5]||=S(`h3`,null,`Premium Feature`,-1),t[6]||=S(`p`,null,`Build history tracking is available with a premium subscription.`,-1),S(`div`,wn,[g(o,{label:`Upgrade to Access`,severity:`primary`,onClick:n(v)},null,8,[`onClick`]),g(o,{label:`Close`,severity:`secondary`,onClick:t[0]||=t=>e.$emit(`update:visible`,!1)})])])),g(yn,{entry:b.value,visible:x.value,"can-delete":!0,"can-retry":!0,onHide:A,onRetry:ee,onDelete:j},null,8,[`entry`,`visible`]),g(s,{group:`build-history`}),g(l,{visible:C.value,"onUpdate:visible":t[1]||=e=>C.value=e,modal:``,header:`Export Build History`,style:{width:`400px`},closable:!0},{default:h(()=>[S(`div`,Tn,[t[7]||=S(`p`,null,`Exporting build history data...`,-1),g(c,{value:w.value,"show-value":!0},null,8,[`value`]),S(`p`,En,i(E.value),1)])]),_:1},8,[`visible`])])]),_:1},8,[`visible`])}}}),[[`__scopeId`,`data-v-ad9852ab`]]),V={},On;function H(e={}){V={animate:!0,allowClose:!0,overlayClickBehavior:`close`,overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:[`next`,`previous`,`close`],disableButtons:[],overlayColor:`#000`,...e}}function U(e){return e?V[e]:V}function kn(e){On=e}function W(){return On}var G={};function K(e,t){G[e]=t}function q(e){var t;(t=G[e])==null||t.call(G)}function An(){G={}}function J(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function jn(e){let t=`a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])`;return e.flatMap(e=>{let n=e.matches(t),r=Array.from(e.querySelectorAll(t));return[...n?[e]:[],...r]}).filter(e=>getComputedStyle(e).pointerEvents!==`none`&&Fn(e))}function Mn(e){if(!e||Pn(e))return;let t=U(`smoothScroll`),n=e.offsetHeight>window.innerHeight;e.scrollIntoView({behavior:!t||Nn(e)?`auto`:`smooth`,inline:`center`,block:n?`start`:`center`})}function Nn(e){if(!e||!e.parentElement)return;let t=e.parentElement;return t.scrollHeight>t.clientHeight}function Pn(e){let t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function Fn(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}var Y={};function X(e,t){Y[e]=t}function Z(e){return e?Y[e]:Y}function In(){Y={}}function Ln(e,t,n,r){let i=Z(`__activeStagePosition`),a=i||n.getBoundingClientRect(),o=r.getBoundingClientRect();i={x:J(e,a.x,o.x-a.x,t),y:J(e,a.y,o.y-a.y,t),width:J(e,a.width,o.width-a.width,t),height:J(e,a.height,o.height-a.height,t)},Vn(i),X(`__activeStagePosition`,i)}function Rn(e){if(!e)return;let t=e.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height};X(`__activeStagePosition`,n),Vn(n)}function zn(){let e=Z(`__activeStagePosition`),t=Z(`__overlaySvg`);if(!e)return;if(!t){console.warn(`No stage svg found.`);return}let n=window.innerWidth,r=window.innerHeight;t.setAttribute(`viewBox`,`0 0 ${n} ${r}`)}function Bn(e){let t=Hn(e);document.body.appendChild(t),Zn(t,e=>{e.target.tagName===`path`&&q(`overlayClick`)}),X(`__overlaySvg`,t)}function Vn(e){let t=Z(`__overlaySvg`);if(!t){Bn(e);return}let n=t.firstElementChild;if(n?.tagName!==`path`)throw Error(`no path element found in stage svg`);n.setAttribute(`d`,Un(e))}function Hn(e){let t=window.innerWidth,n=window.innerHeight,r=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);r.classList.add(`driver-overlay`,`driver-overlay-animated`),r.setAttribute(`viewBox`,`0 0 ${t} ${n}`),r.setAttribute(`xmlSpace`,`preserve`),r.setAttribute(`xmlnsXlink`,`http://www.w3.org/1999/xlink`),r.setAttribute(`version`,`1.1`),r.setAttribute(`preserveAspectRatio`,`xMinYMin slice`),r.style.fillRule=`evenodd`,r.style.clipRule=`evenodd`,r.style.strokeLinejoin=`round`,r.style.strokeMiterlimit=`2`,r.style.zIndex=`10000`,r.style.position=`fixed`,r.style.top=`0`,r.style.left=`0`,r.style.width=`100%`,r.style.height=`100%`;let i=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return i.setAttribute(`d`,Un(e)),i.style.fill=U(`overlayColor`)||`rgb(0,0,0)`,i.style.opacity=`${U(`overlayOpacity`)}`,i.style.pointerEvents=`auto`,i.style.cursor=`auto`,r.appendChild(i),r}function Un(e){let t=window.innerWidth,n=window.innerHeight,r=U(`stagePadding`)||0,i=U(`stageRadius`)||0,a=e.width+r*2,o=e.height+r*2,s=Math.min(i,a/2,o/2),c=Math.floor(Math.max(s,0)),l=e.x-r+c,u=e.y-r,d=a-c*2,f=o-c*2;return`M${t},0L0,0L0,${n}L${t},${n}L${t},0Z
|
|
205
|
+
M${l},${u} h${d} a${c},${c} 0 0 1 ${c},${c} v${f} a${c},${c} 0 0 1 -${c},${c} h-${d} a${c},${c} 0 0 1 -${c},-${c} v-${f} a${c},${c} 0 0 1 ${c},-${c} z`}function Wn(){let e=Z(`__overlaySvg`);e&&e.remove()}function Gn(){let e=document.getElementById(`driver-dummy-element`);if(e)return e;let t=document.createElement(`div`);return t.id=`driver-dummy-element`,t.style.width=`0`,t.style.height=`0`,t.style.pointerEvents=`none`,t.style.opacity=`0`,t.style.position=`fixed`,t.style.top=`50%`,t.style.left=`50%`,document.body.appendChild(t),t}function Kn(e){let{element:t}=e,n=typeof t==`function`?t():typeof t==`string`?document.querySelector(t):t;n||=Gn(),Jn(n,e)}function qn(){let e=Z(`__activeElement`),t=Z(`__activeStep`);e&&(Rn(e),zn(),ar(e,t))}function Jn(e,t){let n=Date.now(),r=Z(`__activeStep`),i=Z(`__activeElement`)||e,a=!i||i===e,o=e.id===`driver-dummy-element`,s=i.id===`driver-dummy-element`,c=U(`animate`),l=t.onHighlightStarted||U(`onHighlightStarted`),u=t?.onHighlighted||U(`onHighlighted`),d=r?.onDeselected||U(`onDeselected`),f=U(),p=Z();!a&&d&&d(s?void 0:i,r,{config:f,state:p,driver:W()}),l&&l(o?void 0:e,t,{config:f,state:p,driver:W()});let m=!a&&c,h=!1;er(),X(`previousStep`,r),X(`previousElement`,i),X(`activeStep`,t),X(`activeElement`,e);let g=()=>{if(Z(`__transitionCallback`)!==g)return;let a=Date.now()-n,s=400-a<=400/2;t.popover&&s&&!h&&m&&(tr(e,t),h=!0),U(`animate`)&&a<400?Ln(a,400,i,e):(Rn(e),u&&u(o?void 0:e,t,{config:U(),state:Z(),driver:W()}),X(`__transitionCallback`,void 0),X(`__previousStep`,r),X(`__previousElement`,i),X(`__activeStep`,t),X(`__activeElement`,e)),window.requestAnimationFrame(g)};X(`__transitionCallback`,g),window.requestAnimationFrame(g),Mn(e),!m&&t.popover&&tr(e,t),i.classList.remove(`driver-active-element`,`driver-no-interaction`),i.removeAttribute(`aria-haspopup`),i.removeAttribute(`aria-expanded`),i.removeAttribute(`aria-controls`),(t.disableActiveInteraction??U(`disableActiveInteraction`))&&e.classList.add(`driver-no-interaction`),e.classList.add(`driver-active-element`),e.setAttribute(`aria-haspopup`,`dialog`),e.setAttribute(`aria-expanded`,`true`),e.setAttribute(`aria-controls`,`driver-popover-content`)}function Yn(){var e;(e=document.getElementById(`driver-dummy-element`))==null||e.remove(),document.querySelectorAll(`.driver-active-element`).forEach(e=>{e.classList.remove(`driver-active-element`,`driver-no-interaction`),e.removeAttribute(`aria-haspopup`),e.removeAttribute(`aria-expanded`),e.removeAttribute(`aria-controls`)})}function Q(){let e=Z(`__resizeTimeout`);e&&window.cancelAnimationFrame(e),X(`__resizeTimeout`,window.requestAnimationFrame(qn))}function Xn(e){if(!Z(`isInitialized`)||!(e.key===`Tab`||e.keyCode===9))return;let t=Z(`__activeElement`),n=Z(`popover`)?.wrapper,r=jn([...n?[n]:[],...t?[t]:[]]),i=r[0],a=r[r.length-1];e.preventDefault(),e.shiftKey?(r[r.indexOf(document.activeElement)-1]||a)?.focus():(r[r.indexOf(document.activeElement)+1]||i)?.focus()}function $(e){var t;((t=U(`allowKeyboardControl`))==null||t)&&(e.key===`Escape`?q(`escapePress`):e.key===`ArrowRight`?q(`arrowRightPress`):e.key===`ArrowLeft`&&q(`arrowLeftPress`))}function Zn(e,t,n){let r=(t,r)=>{let i=t.target;e.contains(i)&&((!n||n(i))&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()),r?.(t))};document.addEventListener(`pointerdown`,r,!0),document.addEventListener(`mousedown`,r,!0),document.addEventListener(`pointerup`,r,!0),document.addEventListener(`mouseup`,r,!0),document.addEventListener(`click`,e=>{r(e,t)},!0)}function Qn(){window.addEventListener(`keyup`,$,!1),window.addEventListener(`keydown`,Xn,!1),window.addEventListener(`resize`,Q),window.addEventListener(`scroll`,Q)}function $n(){window.removeEventListener(`keyup`,$),window.removeEventListener(`resize`,Q),window.removeEventListener(`scroll`,Q)}function er(){let e=Z(`popover`);e&&(e.wrapper.style.display=`none`)}function tr(e,t){let n=Z(`popover`);n&&document.body.removeChild(n.wrapper),n=sr(),document.body.appendChild(n.wrapper);let{title:r,description:i,showButtons:a,disableButtons:o,showProgress:s,nextBtnText:c=U(`nextBtnText`)||`Next →`,prevBtnText:l=U(`prevBtnText`)||`← Previous`,progressText:u=U(`progressText`)||`{current} of {total}`}=t.popover||{};n.nextButton.innerHTML=c,n.previousButton.innerHTML=l,n.progress.innerHTML=u,r?(n.title.innerHTML=r,n.title.style.display=`block`):n.title.style.display=`none`,i?(n.description.innerHTML=i,n.description.style.display=`block`):n.description.style.display=`none`;let d=a||U(`showButtons`),f=s||U(`showProgress`)||!1,p=d?.includes(`next`)||d?.includes(`previous`)||f;n.closeButton.style.display=d.includes(`close`)?`block`:`none`,p?(n.footer.style.display=`flex`,n.progress.style.display=f?`block`:`none`,n.nextButton.style.display=d.includes(`next`)?`block`:`none`,n.previousButton.style.display=d.includes(`previous`)?`block`:`none`):n.footer.style.display=`none`;let m=o||U(`disableButtons`)||[];m!=null&&m.includes(`next`)&&(n.nextButton.disabled=!0,n.nextButton.classList.add(`driver-popover-btn-disabled`)),m!=null&&m.includes(`previous`)&&(n.previousButton.disabled=!0,n.previousButton.classList.add(`driver-popover-btn-disabled`)),m!=null&&m.includes(`close`)&&(n.closeButton.disabled=!0,n.closeButton.classList.add(`driver-popover-btn-disabled`));let h=n.wrapper;h.style.display=`block`,h.style.left=``,h.style.top=``,h.style.bottom=``,h.style.right=``,h.id=`driver-popover-content`,h.setAttribute(`role`,`dialog`),h.setAttribute(`aria-labelledby`,`driver-popover-title`),h.setAttribute(`aria-describedby`,`driver-popover-description`);let g=n.arrow;g.className=`driver-popover-arrow`,h.className=`driver-popover ${t.popover?.popoverClass||U(`popoverClass`)||``}`.trim(),Zn(n.wrapper,n=>{let r=n.target,i=t.popover?.onNextClick||U(`onNextClick`),a=t.popover?.onPrevClick||U(`onPrevClick`),o=t.popover?.onCloseClick||U(`onCloseClick`);if(r.closest(`.driver-popover-next-btn`))return i?i(e,t,{config:U(),state:Z(),driver:W()}):q(`nextClick`);if(r.closest(`.driver-popover-prev-btn`))return a?a(e,t,{config:U(),state:Z(),driver:W()}):q(`prevClick`);if(r.closest(`.driver-popover-close-btn`))return o?o(e,t,{config:U(),state:Z(),driver:W()}):q(`closeClick`)},e=>!(n!=null&&n.description.contains(e))&&!(n!=null&&n.title.contains(e))&&typeof e.className==`string`&&e.className.includes(`driver-popover`)),X(`popover`,n);let _=t.popover?.onPopoverRender||U(`onPopoverRender`);_&&_(n,{config:U(),state:Z(),driver:W()}),ar(e,t),Mn(h);let v=jn([h,...e.classList.contains(`driver-dummy-element`)?[]:[e]]);v.length>0&&v[0].focus()}function nr(){let e=Z(`popover`);if(!(e!=null&&e.wrapper))return;let t=e.wrapper.getBoundingClientRect(),n=U(`stagePadding`)||0,r=U(`popoverOffset`)||0;return{width:t.width+n+r,height:t.height+n+r,realWidth:t.width,realHeight:t.height}}function rr(e,t){let{elementDimensions:n,popoverDimensions:r,popoverPadding:i,popoverArrowDimensions:a}=t;return e===`start`?Math.max(Math.min(n.top-i,window.innerHeight-r.realHeight-a.width),a.width):e===`end`?Math.max(Math.min(n.top-r?.realHeight+n.height+i,window.innerHeight-r?.realHeight-a.width),a.width):e===`center`?Math.max(Math.min(n.top+n.height/2-r?.realHeight/2,window.innerHeight-r?.realHeight-a.width),a.width):0}function ir(e,t){let{elementDimensions:n,popoverDimensions:r,popoverPadding:i,popoverArrowDimensions:a}=t;return e===`start`?Math.max(Math.min(n.left-i,window.innerWidth-r.realWidth-a.width),a.width):e===`end`?Math.max(Math.min(n.left-r?.realWidth+n.width+i,window.innerWidth-r?.realWidth-a.width),a.width):e===`center`?Math.max(Math.min(n.left+n.width/2-r?.realWidth/2,window.innerWidth-r?.realWidth-a.width),a.width):0}function ar(e,t){let n=Z(`popover`);if(!n)return;let{align:r=`start`,side:i=`left`}=t?.popover||{},a=r,o=e.id===`driver-dummy-element`?`over`:i,s=U(`stagePadding`)||0,c=nr(),l=n.arrow.getBoundingClientRect(),u=e.getBoundingClientRect(),d=u.top-c.height,f=d>=0,p=window.innerHeight-(u.bottom+c.height),m=p>=0,h=u.left-c.width,g=h>=0,_=window.innerWidth-(u.right+c.width),v=_>=0,y=!f&&!m&&!g&&!v,b=o;if(o===`top`&&f?v=g=m=!1:o===`bottom`&&m?v=g=f=!1:o===`left`&&g?v=f=m=!1:o===`right`&&v&&(g=f=m=!1),o===`over`){let e=window.innerWidth/2-c.realWidth/2,t=window.innerHeight/2-c.realHeight/2;n.wrapper.style.left=`${e}px`,n.wrapper.style.right=`auto`,n.wrapper.style.top=`${t}px`,n.wrapper.style.bottom=`auto`}else if(y){let e=window.innerWidth/2-c?.realWidth/2;n.wrapper.style.left=`${e}px`,n.wrapper.style.right=`auto`,n.wrapper.style.bottom=`10px`,n.wrapper.style.top=`auto`}else if(g){let e=Math.min(h,window.innerWidth-c?.realWidth-l.width),t=rr(a,{elementDimensions:u,popoverDimensions:c,popoverPadding:s,popoverArrowDimensions:l});n.wrapper.style.left=`${e}px`,n.wrapper.style.top=`${t}px`,n.wrapper.style.bottom=`auto`,n.wrapper.style.right=`auto`,b=`left`}else if(v){let e=Math.min(_,window.innerWidth-c?.realWidth-l.width),t=rr(a,{elementDimensions:u,popoverDimensions:c,popoverPadding:s,popoverArrowDimensions:l});n.wrapper.style.right=`${e}px`,n.wrapper.style.top=`${t}px`,n.wrapper.style.bottom=`auto`,n.wrapper.style.left=`auto`,b=`right`}else if(f){let e=Math.min(d,window.innerHeight-c.realHeight-l.width),t=ir(a,{elementDimensions:u,popoverDimensions:c,popoverPadding:s,popoverArrowDimensions:l});n.wrapper.style.top=`${e}px`,n.wrapper.style.left=`${t}px`,n.wrapper.style.bottom=`auto`,n.wrapper.style.right=`auto`,b=`top`}else if(m){let e=Math.min(p,window.innerHeight-c?.realHeight-l.width),t=ir(a,{elementDimensions:u,popoverDimensions:c,popoverPadding:s,popoverArrowDimensions:l});n.wrapper.style.left=`${t}px`,n.wrapper.style.bottom=`${e}px`,n.wrapper.style.top=`auto`,n.wrapper.style.right=`auto`,b=`bottom`}y?n.arrow.classList.add(`driver-popover-arrow-none`):or(a,b,e)}function or(e,t,n){let r=Z(`popover`);if(!r)return;let i=n.getBoundingClientRect(),a=nr(),o=r.arrow,s=a.width,c=window.innerWidth,l=i.width,u=i.left,d=a.height,f=window.innerHeight,p=i.top,m=i.height;o.className=`driver-popover-arrow`;let h=t,g=e;if(t===`top`?(u+l<=0?(h=`right`,g=`end`):u+l-s<=0&&(h=`top`,g=`start`),u>=c?(h=`left`,g=`end`):u+s>=c&&(h=`top`,g=`end`)):t===`bottom`?(u+l<=0?(h=`right`,g=`start`):u+l-s<=0&&(h=`bottom`,g=`start`),u>=c?(h=`left`,g=`start`):u+s>=c&&(h=`bottom`,g=`end`)):t===`left`?(p+m<=0?(h=`bottom`,g=`end`):p+m-d<=0&&(h=`left`,g=`start`),p>=f?(h=`top`,g=`end`):p+d>=f&&(h=`left`,g=`end`)):t===`right`&&(p+m<=0?(h=`bottom`,g=`start`):p+m-d<=0&&(h=`right`,g=`start`),p>=f?(h=`top`,g=`start`):p+d>=f&&(h=`right`,g=`end`)),!h)o.classList.add(`driver-popover-arrow-none`);else{o.classList.add(`driver-popover-arrow-side-${h}`),o.classList.add(`driver-popover-arrow-align-${g}`);let e=n.getBoundingClientRect(),i=o.getBoundingClientRect(),a=U(`stagePadding`)||0,s=e.left-a<window.innerWidth&&e.right+a>0&&e.top-a<window.innerHeight&&e.bottom+a>0;t===`bottom`&&s&&(i.x>e.x&&i.x+i.width<e.x+e.width?r.wrapper.style.transform=`translateY(0)`:(o.classList.remove(`driver-popover-arrow-align-${g}`),o.classList.add(`driver-popover-arrow-none`),r.wrapper.style.transform=`translateY(-${a/2}px)`))}}function sr(){let e=document.createElement(`div`);e.classList.add(`driver-popover`);let t=document.createElement(`div`);t.classList.add(`driver-popover-arrow`);let n=document.createElement(`header`);n.id=`driver-popover-title`,n.classList.add(`driver-popover-title`),n.style.display=`none`,n.innerText=`Popover Title`;let r=document.createElement(`div`);r.id=`driver-popover-description`,r.classList.add(`driver-popover-description`),r.style.display=`none`,r.innerText=`Popover description is here`;let i=document.createElement(`button`);i.type=`button`,i.classList.add(`driver-popover-close-btn`),i.setAttribute(`aria-label`,`Close`),i.innerHTML=`×`;let a=document.createElement(`footer`);a.classList.add(`driver-popover-footer`);let o=document.createElement(`span`);o.classList.add(`driver-popover-progress-text`),o.innerText=``;let s=document.createElement(`span`);s.classList.add(`driver-popover-navigation-btns`);let c=document.createElement(`button`);c.type=`button`,c.classList.add(`driver-popover-prev-btn`),c.innerHTML=`← Previous`;let l=document.createElement(`button`);return l.type=`button`,l.classList.add(`driver-popover-next-btn`),l.innerHTML=`Next →`,s.appendChild(c),s.appendChild(l),a.appendChild(o),a.appendChild(s),e.appendChild(i),e.appendChild(t),e.appendChild(n),e.appendChild(r),e.appendChild(a),{wrapper:e,arrow:t,title:n,description:r,footer:a,previousButton:c,nextButton:l,closeButton:i,footerButtons:s,progress:o}}function cr(){var e;let t=Z(`popover`);t&&((e=t.wrapper.parentElement)==null||e.removeChild(t.wrapper))}function lr(e={}){H(e);function t(){U(`allowClose`)&&u()}function n(){let e=U(`overlayClickBehavior`);if(U(`allowClose`)&&e===`close`){u();return}if(typeof e==`function`){let t=Z(`__activeStep`);e(Z(`__activeElement`),t,{config:U(),state:Z(),driver:W()});return}e===`nextStep`&&r()}function r(){let e=Z(`activeIndex`),t=U(`steps`)||[];if(e===void 0)return;let n=e+1;t[n]?l(n):u()}function i(){let e=Z(`activeIndex`),t=U(`steps`)||[];if(e===void 0)return;let n=e-1;t[n]?l(n):u()}function a(e){(U(`steps`)||[])[e]?l(e):u()}function o(){if(Z(`__transitionCallback`))return;let e=Z(`activeIndex`),t=Z(`__activeStep`),n=Z(`__activeElement`);if(e===void 0||t===void 0||Z(`activeIndex`)===void 0)return;let r=t.popover?.onPrevClick||U(`onPrevClick`);if(r)return r(n,t,{config:U(),state:Z(),driver:W()});i()}function s(){if(Z(`__transitionCallback`))return;let e=Z(`activeIndex`),t=Z(`__activeStep`),n=Z(`__activeElement`);if(e===void 0||t===void 0)return;let i=t.popover?.onNextClick||U(`onNextClick`);if(i)return i(n,t,{config:U(),state:Z(),driver:W()});r()}function c(){Z(`isInitialized`)||(X(`isInitialized`,!0),document.body.classList.add(`driver-active`,U(`animate`)?`driver-fade`:`driver-simple`),Qn(),K(`overlayClick`,n),K(`escapePress`,t),K(`arrowLeftPress`,o),K(`arrowRightPress`,s))}function l(e=0){let t=U(`steps`);if(!t){console.error(`No steps to drive through`),u();return}if(!t[e]){u();return}X(`__activeOnDestroyed`,document.activeElement),X(`activeIndex`,e);let n=t[e],r=t[e+1],i=t[e-1],a=n.popover?.doneBtnText||U(`doneBtnText`)||`Done`,o=U(`allowClose`),s=n.popover?.showProgress===void 0?U(`showProgress`):n.popover?.showProgress,c=(n.popover?.progressText||U(`progressText`)||`{{current}} of {{total}}`).replace(`{{current}}`,`${e+1}`).replace(`{{total}}`,`${t.length}`),d=n.popover?.showButtons||U(`showButtons`),f=[`next`,`previous`,...o?[`close`]:[]].filter(e=>!(d!=null&&d.length)||d.includes(e)),p=n.popover?.onNextClick||U(`onNextClick`),m=n.popover?.onPrevClick||U(`onPrevClick`),h=n.popover?.onCloseClick||U(`onCloseClick`);Kn({...n,popover:{showButtons:f,nextBtnText:r?void 0:a,disableButtons:[...i?[]:[`previous`]],showProgress:s,progressText:c,onNextClick:p||(()=>{r?l(e+1):u()}),onPrevClick:m||(()=>{l(e-1)}),onCloseClick:h||(()=>{u()}),...n?.popover||{}}})}function u(e=!0){let t=Z(`__activeElement`),n=Z(`__activeStep`),r=Z(`__activeOnDestroyed`),i=U(`onDestroyStarted`);if(e&&i){i(!t||t?.id===`driver-dummy-element`?void 0:t,n,{config:U(),state:Z(),driver:W()});return}let a=n?.onDeselected||U(`onDeselected`),o=U(`onDestroyed`);if(document.body.classList.remove(`driver-active`,`driver-fade`,`driver-simple`),$n(),cr(),Yn(),Wn(),An(),In(),t&&n){let e=t.id===`driver-dummy-element`;a&&a(e?void 0:t,n,{config:U(),state:Z(),driver:W()}),o&&o(e?void 0:t,n,{config:U(),state:Z(),driver:W()})}r&&r.focus()}let d={isActive:()=>Z(`isInitialized`)||!1,refresh:Q,drive:(e=0)=>{c(),l(e)},setConfig:H,setSteps:e=>{In(),H({...U(),steps:e})},getConfig:U,getState:Z,getActiveIndex:()=>Z(`activeIndex`),isFirstStep:()=>Z(`activeIndex`)===0,isLastStep:()=>{let e=U(`steps`)||[],t=Z(`activeIndex`);return t!==void 0&&t===e.length-1},getActiveStep:()=>Z(`activeStep`),getActiveElement:()=>Z(`activeElement`),getPreviousElement:()=>Z(`previousElement`),getPreviousStep:()=>Z(`previousStep`),moveNext:r,movePrevious:i,moveTo:a,hasNextStep:()=>{let e=U(`steps`)||[],t=Z(`activeIndex`);return t!==void 0&&!!e[t+1]},hasPreviousStep:()=>{let e=U(`steps`)||[],t=Z(`activeIndex`);return t!==void 0&&!!e[t-1]},highlight:e=>{c(),Kn({...e,popover:e.popover?{showButtons:[],showProgress:!1,progressText:``,...e.popover}:void 0})},destroy:()=>{u(!1)}};return kn(d),d}function ur(e){let t=j(),{settings:n}=I(t),{updateSettings:r}=t;return{startTour:(t,i=!1)=>{let a=lr({showProgress:!0,steps:t,onHighlighted:(i,a,{state:o})=>{let s={...n.value.tours};s[e]={step:o.activeIndex??0,completed:o.activeIndex===t.length-1},r({...n.value,tours:s})}}),o=n.value.tours[e]?.step??0;a.drive(i?0:o)},isCompleted:()=>n.value.tours[e]?.completed??!1}}export{le as i,Dn as n,R as r,ur as t};
|