@pipelab/ui 2.0.0-beta.13 → 2.0.0-beta.15

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.
Files changed (56) hide show
  1. package/assets/Layout-B4Y735hD.css +1 -0
  2. package/assets/Layout-BA9AtjZF.js +298 -0
  3. package/assets/{_plugin-vue_export-helper-DnUyRaRw.js → _plugin-vue_export-helper-DUvwmBqA.js} +1 -1
  4. package/assets/{accordion-D4pUR6oQ.js → accordion-CQHckkZB.js} +3 -3
  5. package/assets/checkbox-eE332h0t.js +142 -0
  6. package/assets/chevronright-CEOejICc.js +2 -0
  7. package/assets/connections-BeiEoaIH.css +1 -0
  8. package/assets/connections-CwgnMXsx.js +1 -0
  9. package/assets/connections-yVe4Oss0.js +1 -0
  10. package/assets/editor-DmH9y8mR.js +833 -0
  11. package/assets/editor-kSbnHXEq.css +1 -0
  12. package/assets/{emscripten-module-VHMWRAJ2-Cwd_19tX.js → emscripten-module-VHMWRAJ2-CzPuSaDz.js} +2 -2
  13. package/assets/index-CPy4C7-x.js +764 -0
  14. package/assets/index-CQ_uXHBu.css +1 -0
  15. package/assets/integrations-BBW9Bgh6.js +1 -0
  16. package/assets/integrations-DpXXW15s.css +1 -0
  17. package/assets/pages-BWUTxxly.js +84 -0
  18. package/assets/pages-DxKiJJcA.css +1 -0
  19. package/assets/purify-Bi8etzni.js +3 -0
  20. package/assets/{radiobutton-9nNGO2-U.js → radiobutton-BzHJ-AQ-.js} +2 -2
  21. package/assets/scenarios-DZDVqLVy.js +1 -0
  22. package/assets/simple-editor-B8J_Angl.js +1 -0
  23. package/assets/{src-VdpIHE4l.js → src-BjlUGrlv.js} +24 -24
  24. package/assets/tab-DXf4QtpC.js +150 -0
  25. package/assets/tag-Dpy3ystz.js +54 -0
  26. package/assets/team-HizKvSLh.js +1 -0
  27. package/assets/timescircle-cuYPa8ek.js +2 -0
  28. package/assets/toast-BL5hqRSf.js +280 -0
  29. package/assets/useTour-Dk3TGGuw.js +520 -0
  30. package/assets/useconfirm-Ds_TUlek.js +51 -0
  31. package/assets/usetoast-C1jmabqX.js +1735 -0
  32. package/assets/usetoast-bLNjwPI1.css +1 -0
  33. package/index.html +14 -10
  34. package/package.json +1 -1
  35. package/assets/Layout-B_ltqHnP.css +0 -1
  36. package/assets/Layout-Cr2_KAY5.js +0 -379
  37. package/assets/column-B4FcWIPk.js +0 -763
  38. package/assets/editor-BfSyH8v6.js +0 -833
  39. package/assets/editor-BsJqCx3h.css +0 -1
  40. package/assets/index-BTE2TTYB.css +0 -1
  41. package/assets/index-DUnNK5WW.js +0 -281
  42. package/assets/pages-DQdNphm0.js +0 -192
  43. package/assets/pages-Dp-OFXOW.css +0 -1
  44. package/assets/purify-D9mRGG16.js +0 -3
  45. package/assets/scenarios-LRTev2Ey.js +0 -1
  46. package/assets/simple-editor-qKdGmchp.js +0 -1
  47. package/assets/team-XL0bcZYO.js +0 -1
  48. package/assets/useTour-BaahCpXp.js +0 -669
  49. package/assets/useconfirm-DyXrgL_D.js +0 -52
  50. package/assets/usetoast-7I0RTgek.css +0 -1
  51. package/assets/usetoast-B8qjYDh_.js +0 -1877
  52. /package/assets/{__vite-browser-external-Dt3FoyYZ.js → __vite-browser-external-B0s46rwe.js} +0 -0
  53. /package/assets/{emscripten-module.browser-Pl-O77_z.js → emscripten-module.browser-eyQyO1-u.js} +0 -0
  54. /package/assets/{ffi-CJJc982W.js → ffi-BCdwDTfq.js} +0 -0
  55. /package/assets/{ffi-CoLfSXkO.js → ffi-DBzMjVua.js} +0 -0
  56. /package/assets/{module-6F3E5H7Y-D7eKX8Yv.js → module-6F3E5H7Y-DUb8SKDP.js} +0 -0
@@ -1,669 +0,0 @@
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,F as o,G as s,I as c,J as l,L as u,M as d,R as f,T as p,_ as m,d as h,f as g,h as _,i as v,k as y,l as b,p as x,q as S,t as C,u as w,v as T,w as E,y as D,z as O}from"./_plugin-vue_export-helper-DnUyRaRw.js";import{$t as k,B as A,Cn as j,G as ee,Ht as te,It as ne,K as M,N as re,O as ie,P as ae,Qt as N,St as P,V as F,Yt as I,_n as oe,bt as se,d as ce,gn as L,hn as R,ln as le,nn as ue,pn as de,q as fe,tn as pe,xn as me,xt as z}from"./usetoast-B8qjYDh_.js";import{n as he,r as B}from"./useconfirm-DyXrgL_D.js";import{n as ge}from"./Layout-Cr2_KAY5.js";var _e=[`src`],ve=D({__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`?(d(),x(`img`,{key:1,style:t({width:e.width}),src:e.icon.image},null,12,_e)):e.icon.type===`icon`?(d(),x(`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)):g(``,!0):(d(),x(`div`,{key:0,style:t({width:e.width})},null,4))}}),ye=P.extend({name:`message`,style:`
2
- .p-message {
3
- display: grid;
4
- grid-template-rows: 1fr;
5
- border-radius: dt('message.border.radius');
6
- outline-width: dt('message.border.width');
7
- outline-style: solid;
8
- }
9
-
10
- .p-message-content-wrapper {
11
- min-height: 0;
12
- }
13
-
14
- .p-message-content {
15
- display: flex;
16
- align-items: center;
17
- padding: dt('message.content.padding');
18
- gap: dt('message.content.gap');
19
- }
20
-
21
- .p-message-icon {
22
- flex-shrink: 0;
23
- }
24
-
25
- .p-message-close-button {
26
- display: flex;
27
- align-items: center;
28
- justify-content: center;
29
- flex-shrink: 0;
30
- margin-inline-start: auto;
31
- overflow: hidden;
32
- position: relative;
33
- width: dt('message.close.button.width');
34
- height: dt('message.close.button.height');
35
- border-radius: dt('message.close.button.border.radius');
36
- background: transparent;
37
- transition:
38
- background dt('message.transition.duration'),
39
- color dt('message.transition.duration'),
40
- outline-color dt('message.transition.duration'),
41
- box-shadow dt('message.transition.duration'),
42
- opacity 0.3s;
43
- outline-color: transparent;
44
- color: inherit;
45
- padding: 0;
46
- border: none;
47
- cursor: pointer;
48
- user-select: none;
49
- }
50
-
51
- .p-message-close-icon {
52
- font-size: dt('message.close.icon.size');
53
- width: dt('message.close.icon.size');
54
- height: dt('message.close.icon.size');
55
- }
56
-
57
- .p-message-close-button:focus-visible {
58
- outline-width: dt('message.close.button.focus.ring.width');
59
- outline-style: dt('message.close.button.focus.ring.style');
60
- outline-offset: dt('message.close.button.focus.ring.offset');
61
- }
62
-
63
- .p-message-info {
64
- background: dt('message.info.background');
65
- outline-color: dt('message.info.border.color');
66
- color: dt('message.info.color');
67
- box-shadow: dt('message.info.shadow');
68
- }
69
-
70
- .p-message-info .p-message-close-button:focus-visible {
71
- outline-color: dt('message.info.close.button.focus.ring.color');
72
- box-shadow: dt('message.info.close.button.focus.ring.shadow');
73
- }
74
-
75
- .p-message-info .p-message-close-button:hover {
76
- background: dt('message.info.close.button.hover.background');
77
- }
78
-
79
- .p-message-info.p-message-outlined {
80
- color: dt('message.info.outlined.color');
81
- outline-color: dt('message.info.outlined.border.color');
82
- }
83
-
84
- .p-message-info.p-message-simple {
85
- color: dt('message.info.simple.color');
86
- }
87
-
88
- .p-message-success {
89
- background: dt('message.success.background');
90
- outline-color: dt('message.success.border.color');
91
- color: dt('message.success.color');
92
- box-shadow: dt('message.success.shadow');
93
- }
94
-
95
- .p-message-success .p-message-close-button:focus-visible {
96
- outline-color: dt('message.success.close.button.focus.ring.color');
97
- box-shadow: dt('message.success.close.button.focus.ring.shadow');
98
- }
99
-
100
- .p-message-success .p-message-close-button:hover {
101
- background: dt('message.success.close.button.hover.background');
102
- }
103
-
104
- .p-message-success.p-message-outlined {
105
- color: dt('message.success.outlined.color');
106
- outline-color: dt('message.success.outlined.border.color');
107
- }
108
-
109
- .p-message-success.p-message-simple {
110
- color: dt('message.success.simple.color');
111
- }
112
-
113
- .p-message-warn {
114
- background: dt('message.warn.background');
115
- outline-color: dt('message.warn.border.color');
116
- color: dt('message.warn.color');
117
- box-shadow: dt('message.warn.shadow');
118
- }
119
-
120
- .p-message-warn .p-message-close-button:focus-visible {
121
- outline-color: dt('message.warn.close.button.focus.ring.color');
122
- box-shadow: dt('message.warn.close.button.focus.ring.shadow');
123
- }
124
-
125
- .p-message-warn .p-message-close-button:hover {
126
- background: dt('message.warn.close.button.hover.background');
127
- }
128
-
129
- .p-message-warn.p-message-outlined {
130
- color: dt('message.warn.outlined.color');
131
- outline-color: dt('message.warn.outlined.border.color');
132
- }
133
-
134
- .p-message-warn.p-message-simple {
135
- color: dt('message.warn.simple.color');
136
- }
137
-
138
- .p-message-error {
139
- background: dt('message.error.background');
140
- outline-color: dt('message.error.border.color');
141
- color: dt('message.error.color');
142
- box-shadow: dt('message.error.shadow');
143
- }
144
-
145
- .p-message-error .p-message-close-button:focus-visible {
146
- outline-color: dt('message.error.close.button.focus.ring.color');
147
- box-shadow: dt('message.error.close.button.focus.ring.shadow');
148
- }
149
-
150
- .p-message-error .p-message-close-button:hover {
151
- background: dt('message.error.close.button.hover.background');
152
- }
153
-
154
- .p-message-error.p-message-outlined {
155
- color: dt('message.error.outlined.color');
156
- outline-color: dt('message.error.outlined.border.color');
157
- }
158
-
159
- .p-message-error.p-message-simple {
160
- color: dt('message.error.simple.color');
161
- }
162
-
163
- .p-message-secondary {
164
- background: dt('message.secondary.background');
165
- outline-color: dt('message.secondary.border.color');
166
- color: dt('message.secondary.color');
167
- box-shadow: dt('message.secondary.shadow');
168
- }
169
-
170
- .p-message-secondary .p-message-close-button:focus-visible {
171
- outline-color: dt('message.secondary.close.button.focus.ring.color');
172
- box-shadow: dt('message.secondary.close.button.focus.ring.shadow');
173
- }
174
-
175
- .p-message-secondary .p-message-close-button:hover {
176
- background: dt('message.secondary.close.button.hover.background');
177
- }
178
-
179
- .p-message-secondary.p-message-outlined {
180
- color: dt('message.secondary.outlined.color');
181
- outline-color: dt('message.secondary.outlined.border.color');
182
- }
183
-
184
- .p-message-secondary.p-message-simple {
185
- color: dt('message.secondary.simple.color');
186
- }
187
-
188
- .p-message-contrast {
189
- background: dt('message.contrast.background');
190
- outline-color: dt('message.contrast.border.color');
191
- color: dt('message.contrast.color');
192
- box-shadow: dt('message.contrast.shadow');
193
- }
194
-
195
- .p-message-contrast .p-message-close-button:focus-visible {
196
- outline-color: dt('message.contrast.close.button.focus.ring.color');
197
- box-shadow: dt('message.contrast.close.button.focus.ring.shadow');
198
- }
199
-
200
- .p-message-contrast .p-message-close-button:hover {
201
- background: dt('message.contrast.close.button.hover.background');
202
- }
203
-
204
- .p-message-contrast.p-message-outlined {
205
- color: dt('message.contrast.outlined.color');
206
- outline-color: dt('message.contrast.outlined.border.color');
207
- }
208
-
209
- .p-message-contrast.p-message-simple {
210
- color: dt('message.contrast.simple.color');
211
- }
212
-
213
- .p-message-text {
214
- font-size: dt('message.text.font.size');
215
- font-weight: dt('message.text.font.weight');
216
- }
217
-
218
- .p-message-icon {
219
- font-size: dt('message.icon.size');
220
- width: dt('message.icon.size');
221
- height: dt('message.icon.size');
222
- }
223
-
224
- .p-message-sm .p-message-content {
225
- padding: dt('message.content.sm.padding');
226
- }
227
-
228
- .p-message-sm .p-message-text {
229
- font-size: dt('message.text.sm.font.size');
230
- }
231
-
232
- .p-message-sm .p-message-icon {
233
- font-size: dt('message.icon.sm.size');
234
- width: dt('message.icon.sm.size');
235
- height: dt('message.icon.sm.size');
236
- }
237
-
238
- .p-message-sm .p-message-close-icon {
239
- font-size: dt('message.close.icon.sm.size');
240
- width: dt('message.close.icon.sm.size');
241
- height: dt('message.close.icon.sm.size');
242
- }
243
-
244
- .p-message-lg .p-message-content {
245
- padding: dt('message.content.lg.padding');
246
- }
247
-
248
- .p-message-lg .p-message-text {
249
- font-size: dt('message.text.lg.font.size');
250
- }
251
-
252
- .p-message-lg .p-message-icon {
253
- font-size: dt('message.icon.lg.size');
254
- width: dt('message.icon.lg.size');
255
- height: dt('message.icon.lg.size');
256
- }
257
-
258
- .p-message-lg .p-message-close-icon {
259
- font-size: dt('message.close.icon.lg.size');
260
- width: dt('message.close.icon.lg.size');
261
- height: dt('message.close.icon.lg.size');
262
- }
263
-
264
- .p-message-outlined {
265
- background: transparent;
266
- outline-width: dt('message.outlined.border.width');
267
- }
268
-
269
- .p-message-simple {
270
- background: transparent;
271
- outline-color: transparent;
272
- box-shadow: none;
273
- }
274
-
275
- .p-message-simple .p-message-content {
276
- padding: dt('message.simple.content.padding');
277
- }
278
-
279
- .p-message-outlined .p-message-close-button:hover,
280
- .p-message-simple .p-message-close-button:hover {
281
- background: transparent;
282
- }
283
-
284
- .p-message-enter-active {
285
- animation: p-animate-message-enter 0.3s ease-out forwards;
286
- overflow: hidden;
287
- }
288
-
289
- .p-message-leave-active {
290
- animation: p-animate-message-leave 0.15s ease-in forwards;
291
- overflow: hidden;
292
- }
293
-
294
- @keyframes p-animate-message-enter {
295
- from {
296
- opacity: 0;
297
- grid-template-rows: 0fr;
298
- }
299
- to {
300
- opacity: 1;
301
- grid-template-rows: 1fr;
302
- }
303
- }
304
-
305
- @keyframes p-animate-message-leave {
306
- from {
307
- opacity: 1;
308
- grid-template-rows: 1fr;
309
- }
310
- to {
311
- opacity: 0;
312
- margin: 0;
313
- grid-template-rows: 0fr;
314
- }
315
- }
316
- `,classes:{root:function(e){var t=e.props;return[`p-message p-component p-message-`+t.severity,{"p-message-outlined":t.variant===`outlined`,"p-message-simple":t.variant===`simple`,"p-message-sm":t.size===`small`,"p-message-lg":t.size===`large`}]},contentWrapper:`p-message-content-wrapper`,content:`p-message-content`,icon:`p-message-icon`,text:`p-message-text`,closeButton:`p-message-close-button`,closeIcon:`p-message-close-icon`}}),be={name:`BaseMessage`,extends:z,props:{severity:{type:String,default:`info`},closable:{type:Boolean,default:!1},life:{type:Number,default:null},icon:{type:String,default:void 0},closeIcon:{type:String,default:void 0},closeButtonProps:{type:null,default:null},size:{type:String,default:null},variant:{type:String,default:null}},style:ye,provide:function(){return{$pcMessage:this,$parentInstance:this}}};function V(e){"@babel/helpers - typeof";return V=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},V(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 V(t)==`symbol`?t:t+``}function Ce(e,t){if(V(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(V(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var we={name:`Message`,extends:be,inheritAttrs:!1,emits:[`close`,`life-end`],timeout:null,data:function(){return{visible:!0}},mounted:function(){var e=this;this.life&&setTimeout(function(){e.visible=!1,e.$emit(`life-end`)},this.life)},methods:{close:function(e){this.visible=!1,this.$emit(`close`,e)}},computed:{closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},dataP:function(){return L(xe(xe({outlined:this.variant===`outlined`,simple:this.variant===`simple`},this.severity,this.severity),this.size,this.size))}},directives:{ripple:F},components:{TimesIcon:re}};function H(e){"@babel/helpers - typeof";return H=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},H(e)}function Te(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 Ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Te(Object(n),!0).forEach(function(t){De(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function De(e,t,n){return(t=Oe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oe(e){var t=ke(e,`string`);return H(t)==`symbol`?t:t+``}function ke(e,t){if(H(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(H(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ae=[`data-p`],je=[`data-p`],Me=[`data-p`],Ne=[`aria-label`,`data-p`],Pe=[`data-p`];function Fe(e,t,n,i,a,o){var s=u(`TimesIcon`),m=f(`ripple`);return d(),h(oe,p({name:`p-message`,appear:``},e.ptmi(`transition`)),{default:S(function(){return[a.visible?(d(),x(`div`,p({key:0,class:e.cx(`root`),role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`,"data-p":o.dataP},e.ptm(`root`)),[w(`div`,p({class:e.cx(`contentWrapper`)},e.ptm(`contentWrapper`)),[e.$slots.container?c(e.$slots,`container`,{key:0,closeCallback:o.close}):(d(),x(`div`,p({key:1,class:e.cx(`content`),"data-p":o.dataP},e.ptm(`content`)),[c(e.$slots,`icon`,{class:r(e.cx(`icon`))},function(){return[(d(),h(O(e.icon?`span`:null),p({class:[e.cx(`icon`),e.icon],"data-p":o.dataP},e.ptm(`icon`)),null,16,[`class`,`data-p`]))]}),e.$slots.default?(d(),x(`div`,p({key:0,class:e.cx(`text`),"data-p":o.dataP},e.ptm(`text`)),[c(e.$slots,`default`)],16,Me)):g(``,!0),e.closable?l((d(),x(`button`,p({key:1,class:e.cx(`closeButton`),"aria-label":o.closeAriaLabel,type:`button`,onClick:t[0]||=function(e){return o.close(e)},"data-p":o.dataP},Ee(Ee({},e.closeButtonProps),e.ptm(`closeButton`))),[c(e.$slots,`closeicon`,{},function(){return[e.closeIcon?(d(),x(`i`,p({key:0,class:[e.cx(`closeIcon`),e.closeIcon],"data-p":o.dataP},e.ptm(`closeIcon`)),null,16,Pe)):(d(),h(s,p({key:1,class:[e.cx(`closeIcon`),e.closeIcon],"data-p":o.dataP},e.ptm(`closeIcon`)),null,16,[`class`,`data-p`]))]})],16,Ne)),[[m]]):g(``,!0)],16,je))],16)],16,Ae)):g(``,!0)]}),_:3},16)}we.render=Fe;var Ie=P.extend({name:`progressbar`,style:`
317
- .p-progressbar {
318
- display: block;
319
- position: relative;
320
- overflow: hidden;
321
- height: dt('progressbar.height');
322
- background: dt('progressbar.background');
323
- border-radius: dt('progressbar.border.radius');
324
- }
325
-
326
- .p-progressbar-value {
327
- margin: 0;
328
- background: dt('progressbar.value.background');
329
- }
330
-
331
- .p-progressbar-label {
332
- color: dt('progressbar.label.color');
333
- font-size: dt('progressbar.label.font.size');
334
- font-weight: dt('progressbar.label.font.weight');
335
- }
336
-
337
- .p-progressbar-determinate .p-progressbar-value {
338
- height: 100%;
339
- width: 0%;
340
- position: absolute;
341
- display: none;
342
- display: flex;
343
- align-items: center;
344
- justify-content: center;
345
- overflow: hidden;
346
- transition: width 1s ease-in-out;
347
- }
348
-
349
- .p-progressbar-determinate .p-progressbar-label {
350
- display: inline-flex;
351
- }
352
-
353
- .p-progressbar-indeterminate .p-progressbar-value::before {
354
- content: '';
355
- position: absolute;
356
- background: inherit;
357
- inset-block-start: 0;
358
- inset-inline-start: 0;
359
- inset-block-end: 0;
360
- will-change: inset-inline-start, inset-inline-end;
361
- animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
362
- }
363
-
364
- .p-progressbar-indeterminate .p-progressbar-value::after {
365
- content: '';
366
- position: absolute;
367
- background: inherit;
368
- inset-block-start: 0;
369
- inset-inline-start: 0;
370
- inset-block-end: 0;
371
- will-change: inset-inline-start, inset-inline-end;
372
- animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
373
- animation-delay: 1.15s;
374
- }
375
-
376
- @keyframes p-progressbar-indeterminate-anim {
377
- 0% {
378
- inset-inline-start: -35%;
379
- inset-inline-end: 100%;
380
- }
381
- 60% {
382
- inset-inline-start: 100%;
383
- inset-inline-end: -90%;
384
- }
385
- 100% {
386
- inset-inline-start: 100%;
387
- inset-inline-end: -90%;
388
- }
389
- }
390
- @-webkit-keyframes p-progressbar-indeterminate-anim {
391
- 0% {
392
- inset-inline-start: -35%;
393
- inset-inline-end: 100%;
394
- }
395
- 60% {
396
- inset-inline-start: 100%;
397
- inset-inline-end: -90%;
398
- }
399
- 100% {
400
- inset-inline-start: 100%;
401
- inset-inline-end: -90%;
402
- }
403
- }
404
-
405
- @keyframes p-progressbar-indeterminate-anim-short {
406
- 0% {
407
- inset-inline-start: -200%;
408
- inset-inline-end: 100%;
409
- }
410
- 60% {
411
- inset-inline-start: 107%;
412
- inset-inline-end: -8%;
413
- }
414
- 100% {
415
- inset-inline-start: 107%;
416
- inset-inline-end: -8%;
417
- }
418
- }
419
- @-webkit-keyframes p-progressbar-indeterminate-anim-short {
420
- 0% {
421
- inset-inline-start: -200%;
422
- inset-inline-end: 100%;
423
- }
424
- 60% {
425
- inset-inline-start: 107%;
426
- inset-inline-end: -8%;
427
- }
428
- 100% {
429
- inset-inline-start: 107%;
430
- inset-inline-end: -8%;
431
- }
432
- }
433
- `,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`}}),Le={name:`ProgressBar`,extends:{name:`BaseProgressBar`,extends:z,props:{value:{type:Number,default:null},mode:{type:String,default:`determinate`},showValue:{type:Boolean,default:!0}},style:Ie,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 L({determinate:this.determinate,indeterminate:this.indeterminate})}}},Re=[`aria-valuenow`,`data-p`],ze=[`data-p`],Be=[`data-p`],Ve=[`data-p`];function He(e,t,n,r,a,o){return d(),x(`div`,p({role:`progressbar`,class:e.cx(`root`),"aria-valuemin":`0`,"aria-valuenow":e.value,"aria-valuemax":`100`,"data-p":o.dataP},e.ptmi(`root`)),[o.determinate?(d(),x(`div`,p({key:0,class:e.cx(`value`),style:o.progressStyle,"data-p":o.dataP},e.ptm(`value`)),[e.value!=null&&e.value!==0&&e.showValue?(d(),x(`div`,p({key:0,class:e.cx(`label`),"data-p":o.dataP},e.ptm(`label`)),[c(e.$slots,`default`,{},function(){return[m(i(e.value+`%`),1)]})],16,Be)):g(``,!0)],16,ze)):o.indeterminate?(d(),x(`div`,p({key:1,class:e.cx(`value`),"data-p":o.dataP},e.ptm(`value`)),null,16,Ve)):g(``,!0)],16,Re)}Le.render=He;var Ue=P.extend({name:`confirmdialog`,style:`
434
- .p-confirmdialog .p-dialog-content {
435
- display: flex;
436
- align-items: center;
437
- gap: dt('confirmdialog.content.gap');
438
- }
439
-
440
- .p-confirmdialog-icon {
441
- color: dt('confirmdialog.icon.color');
442
- font-size: dt('confirmdialog.icon.size');
443
- width: dt('confirmdialog.icon.size');
444
- height: dt('confirmdialog.icon.size');
445
- }
446
- `,classes:{root:`p-confirmdialog`,icon:`p-confirmdialog-icon`,message:`p-confirmdialog-message`,pcRejectButton:`p-confirmdialog-reject-button`,pcAcceptButton:`p-confirmdialog-accept-button`}}),We={name:`ConfirmDialog`,extends:{name:`BaseConfirmDialog`,extends:z,props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},style:Ue,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},B.on(`confirm`,this.confirmListener),B.on(`close`,this.closeListener)},beforeUnmount:function(){B.off(`confirm`,this.confirmListener),B.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:ie,Button:A}};function Ge(e,t,n,a,o,s){var l=u(`Button`),f=u(`Dialog`);return d(),h(f,{visible:o.visible,"onUpdate:visible":[t[2]||=function(e){return o.visible=e},s.onHide],role:`alertdialog`,class:r(e.cx(`root`)),modal:s.modal,header:s.header,blockScroll:s.blockScroll,appendTo:s.appendTo,position:s.position,breakpoints:e.breakpoints,closeOnEscape:s.closeOnEscape,draggable:e.draggable,pt:e.pt,unstyled:e.unstyled},_({default:S(function(){return[e.$slots.container?g(``,!0):(d(),x(v,{key:0},[e.$slots.message?(d(),h(O(e.$slots.message),{key:1,message:o.confirmation},null,8,[`message`])):(d(),x(v,{key:0},[c(e.$slots,`icon`,{},function(){return[e.$slots.icon?(d(),h(O(e.$slots.icon),{key:0,class:r(e.cx(`icon`))},null,8,[`class`])):o.confirmation.icon?(d(),x(`span`,p({key:1,class:[o.confirmation.icon,e.cx(`icon`)]},e.ptm(`icon`)),null,16)):g(``,!0)]}),w(`span`,p({class:e.cx(`message`)},e.ptm(`message`)),i(s.message),17)],64))],64))]}),_:2},[e.$slots.container?{name:`container`,fn:S(function(t){return[c(e.$slots,`container`,{message:o.confirmation,closeCallback:t.closeCallback,acceptCallback:s.accept,rejectCallback:s.reject,initDragCallback:t.initDragCallback})]}),key:`0`}:void 0,e.$slots.container?void 0:{name:`footer`,fn:S(function(){return[T(l,p({class:[e.cx(`pcRejectButton`),o.confirmation.rejectClass],autofocus:s.autoFocusReject,unstyled:e.unstyled,text:o.confirmation.rejectProps?.text||!1,onClick:t[0]||=function(e){return s.reject()}},o.confirmation.rejectProps,{label:s.rejectLabel,pt:e.ptm(`pcRejectButton`)}),_({_:2},[s.rejectIcon||e.$slots.rejecticon?{name:`icon`,fn:S(function(t){return[c(e.$slots,`rejecticon`,{},function(){return[w(`span`,p({class:[s.rejectIcon,t.class]},e.ptm(`pcRejectButton`).icon,{"data-pc-section":`rejectbuttonicon`}),null,16)]})]}),key:`0`}:void 0]),1040,[`class`,`autofocus`,`unstyled`,`text`,`label`,`pt`]),T(l,p({label:s.acceptLabel,class:[e.cx(`pcAcceptButton`),o.confirmation.acceptClass],autofocus:s.autoFocusAccept,unstyled:e.unstyled,onClick:t[1]||=function(e){return s.accept()}},o.confirmation.acceptProps,{pt:e.ptm(`pcAcceptButton`)}),_({_:2},[s.acceptIcon||e.$slots.accepticon?{name:`icon`,fn:S(function(t){return[c(e.$slots,`accepticon`,{},function(){return[w(`span`,p({class:[s.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`])}We.render=Ge;var Ke=P.extend({name:`progressspinner`,style:`
447
- .p-progressspinner {
448
- position: relative;
449
- margin: 0 auto;
450
- width: 100px;
451
- height: 100px;
452
- display: inline-block;
453
- }
454
-
455
- .p-progressspinner::before {
456
- content: '';
457
- display: block;
458
- padding-top: 100%;
459
- }
460
-
461
- .p-progressspinner-spin {
462
- height: 100%;
463
- transform-origin: center center;
464
- width: 100%;
465
- position: absolute;
466
- top: 0;
467
- bottom: 0;
468
- left: 0;
469
- right: 0;
470
- margin: auto;
471
- animation: p-progressspinner-rotate 2s linear infinite;
472
- }
473
-
474
- .p-progressspinner-circle {
475
- stroke-dasharray: 89, 200;
476
- stroke-dashoffset: 0;
477
- stroke: dt('progressspinner.colorOne');
478
- animation:
479
- p-progressspinner-dash 1.5s ease-in-out infinite,
480
- p-progressspinner-color 6s ease-in-out infinite;
481
- stroke-linecap: round;
482
- }
483
-
484
- @keyframes p-progressspinner-rotate {
485
- 100% {
486
- transform: rotate(360deg);
487
- }
488
- }
489
- @keyframes p-progressspinner-dash {
490
- 0% {
491
- stroke-dasharray: 1, 200;
492
- stroke-dashoffset: 0;
493
- }
494
- 50% {
495
- stroke-dasharray: 89, 200;
496
- stroke-dashoffset: -35px;
497
- }
498
- 100% {
499
- stroke-dasharray: 89, 200;
500
- stroke-dashoffset: -124px;
501
- }
502
- }
503
- @keyframes p-progressspinner-color {
504
- 100%,
505
- 0% {
506
- stroke: dt('progressspinner.color.one');
507
- }
508
- 40% {
509
- stroke: dt('progressspinner.color.two');
510
- }
511
- 66% {
512
- stroke: dt('progressspinner.color.three');
513
- }
514
- 80%,
515
- 90% {
516
- stroke: dt('progressspinner.color.four');
517
- }
518
- }
519
- `,classes:{root:`p-progressspinner`,spin:`p-progressspinner-spin`,circle:`p-progressspinner-circle`}}),qe={name:`ProgressSpinner`,extends:{name:`BaseProgressSpinner`,extends:z,props:{strokeWidth:{type:String,default:`2`},fill:{type:String,default:`none`},animationDuration:{type:String,default:`2s`}},style:Ke,provide:function(){return{$pcProgressSpinner:this,$parentInstance:this}}},inheritAttrs:!1,computed:{svgStyle:function(){return{"animation-duration":this.animationDuration}}}},Je=[`fill`,`stroke-width`];function Ye(e,t,n,r,i,a){return d(),x(`div`,p({class:e.cx(`root`),role:`progressbar`},e.ptmi(`root`)),[(d(),x(`svg`,p({class:e.cx(`spin`),viewBox:`25 25 50 50`,style:a.svgStyle},e.ptm(`spin`)),[w(`circle`,p({class:e.cx(`circle`),cx:`50`,cy:`50`,r:`20`,fill:e.fill,"stroke-width":e.strokeWidth,strokeMiterlimit:`10`},e.ptm(`circle`)),null,16,Je)],16))],16)}qe.render=Ye;var U=C(D({__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`}},a=b(()=>{let e=n[t.status];return[`build-status-badge`,`status-${t.status}`,`size-${t.size}`,e?.class].filter(Boolean)}),o=b(()=>t.showIcon&&n[t.status]?.icon||``),s=b(()=>n[t.status]?.text||t.status),c=b(()=>n[t.status]?.tooltip||t.status);return(e,t)=>{let n=ae;return l((d(),x(`span`,{class:r([`build-status-badge`,a.value])},[w(`i`,{class:r([o.value,`status-icon`])},null,2),m(` `+i(s.value),1)],2)),[[n,c.value,void 0,{top:!0}]])}}}),[[`__scopeId`,`data-v-a4e0e1a6`]]),Xe={class:`item-header`},Ze={class:`item-main-info`},Qe={class:`project-info`},$e={class:`project-name`},et={class:`project-path`},tt={class:`status-and-time`},nt={class:`start-time`},rt={class:`item-actions`},it={class:`expanded-content`},at={class:`info-section`},ot={class:`info-grid`},st={class:`info-item`},ct={class:`info-item`},lt={class:`info-item`},ut={key:0,class:`info-item`},dt={key:1,class:`info-item`},ft={class:`info-item`},pt={key:0,class:`steps-section`},mt={class:`steps-list`},ht={class:`step-header`},gt={class:`step-name`},_t={class:`step-details`},vt={key:0,class:`step-duration`},yt={key:1,class:`step-time`},bt={key:0,class:`steps-more`},xt={key:1,class:`error-section`},St={class:`error-content`},Ct={class:`error-message`},wt={key:2,class:`metadata-section`},Tt={class:`metadata-content`},Et=C(D({__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 a=t,s=n;fe(),E(`openUpgradeDialog`);let c=e(!1),u=e(!1),f=e=>new Date(e).toLocaleDateString(),p=e=>new Date(e).toLocaleString(),_=e=>new Date(e).toLocaleTimeString(),y=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`},b=()=>{a.expandable&&(c.value=!c.value,s(`toggle`,a.entry,c.value))},C=()=>{s(`delete`,a.entry)};return(e,t)=>{let n=A,a=ae;return d(),x(`div`,{class:r([`build-history-item`,{expanded:c.value,"is-clickable":e.expandable}]),onClick:b},[w(`div`,Xe,[w(`div`,Ze,[w(`div`,Qe,[w(`h4`,$e,i(e.entry.projectName),1),w(`span`,et,i(e.entry.projectPath),1)]),w(`div`,tt,[T(U,{status:e.entry.status,size:`medium`},null,8,[`status`]),w(`span`,nt,i(f(e.entry.startTime)),1)])]),w(`div`,rt,[e.showActions&&e.canDelete?l((d(),h(n,{key:0,text:``,severity:`danger`,size:`small`,onClick:j(C,[`stop`])},{default:S(()=>t[2]||=[w(`i`,{class:`pi pi-trash`},null,-1)]),_:1})),[[a,`Delete Entry`,void 0,{top:!0}]]):g(``,!0),e.expandable?(d(),x(`i`,{key:1,class:r([`pi expand-icon`,c.value?`pi-chevron-up`:`pi-chevron-down`])},null,2)):g(``,!0)])]),c.value?(d(),x(`div`,{key:0,class:`item-expanded`,onClick:t[1]||=j(()=>{},[`stop`])},[w(`div`,it,[w(`div`,at,[t[9]||=w(`h5`,null,`Build Information`,-1),w(`div`,ot,[w(`div`,st,[t[3]||=w(`label`,null,`Project ID:`,-1),w(`span`,null,i(e.entry.pipelineId),1)]),w(`div`,ct,[t[4]||=w(`label`,null,`Status:`,-1),T(U,{status:e.entry.status},null,8,[`status`])]),w(`div`,lt,[t[5]||=w(`label`,null,`Started:`,-1),w(`span`,null,i(p(e.entry.startTime)),1)]),e.entry.endTime?(d(),x(`div`,ut,[t[6]||=w(`label`,null,`Ended:`,-1),w(`span`,null,i(p(e.entry.endTime)),1)])):g(``,!0),e.entry.duration?(d(),x(`div`,dt,[t[7]||=w(`label`,null,`Duration:`,-1),w(`span`,null,i(y(e.entry.duration)),1)])):g(``,!0),w(`div`,ft,[t[8]||=w(`label`,null,`Progress:`,-1),w(`span`,null,i(e.entry.completedSteps)+`/`+i(e.entry.totalSteps)+` steps`,1)])])]),e.entry.steps.length>0?(d(),x(`div`,pt,[t[10]||=w(`h5`,null,`Execution Steps`,-1),w(`div`,mt,[(d(!0),x(v,null,o(e.entry.steps.slice(0,u.value?void 0:3),e=>(d(),x(`div`,{key:e.id,class:r([`step-item`,e.status])},[w(`div`,ht,[w(`span`,gt,i(e.name),1),T(U,{status:e.status,size:`small`},null,8,[`status`])]),w(`div`,_t,[e.duration?(d(),x(`span`,vt,i(y(e.duration)),1)):g(``,!0),e.startTime?(d(),x(`span`,yt,i(_(e.startTime)),1)):g(``,!0)])],2))),128)),e.entry.steps.length>3&&!u.value?(d(),x(`div`,bt,[T(n,{text:``,size:`small`,onClick:t[0]||=j(e=>u.value=!0,[`stop`])},{default:S(()=>[m(` Show `+i(e.entry.steps.length-3)+` more steps... `,1)]),_:1})])):g(``,!0)])])):g(``,!0),e.entry.error?(d(),x(`div`,xt,[t[11]||=w(`h5`,null,`Error Details`,-1),w(`div`,St,[w(`p`,Ct,i(e.entry.error.message),1)])])):g(``,!0),e.entry.metadata?(d(),x(`div`,wt,[t[12]||=w(`h5`,null,`Metadata`,-1),w(`div`,Tt,[w(`pre`,null,i(JSON.stringify(e.entry.metadata,null,2)),1)])])):g(``,!0)])])):g(``,!0)],2)}}}),[[`__scopeId`,`data-v-34839496`]]),Dt={class:`build-history-list`},Ot={key:0,class:`loading-state`},kt={key:1,class:`error-state`},At={class:`error-content`},jt={key:2,class:`empty-state`},Mt={class:`empty-content`},Nt={key:3,class:`history-content`},Pt={class:`list-header`},Ft={class:`results-info`},It={class:`results-count`},Lt={key:0,class:`list-view`},Rt={class:`entries-list`},zt={key:1,class:`grid-view`},Bt={class:`entries-grid`},Vt=C(D({__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 a=t,s=n,c=fe(),u=E(`openUpgradeDialog`),f=e(`list`);e(`startTime`),e(`desc`);let p=b(()=>a.entries.length>0),_=()=>{s(`retry-load`)},y=()=>{if(!c.hasBuildHistoryBenefit){u();return}s(`start-build`)},C=e=>{s(`view-details`,e)},D=e=>{s(`delete`,e)},O=()=>{s(`clear-all`)},k=(e,t)=>{console.log(`Entry toggled:`,e.id,t)};return(e,t)=>{let n=qe,a=A,s=ae;return d(),x(`div`,Dt,[e.isLoading&&!p.value?(d(),x(`div`,Ot,[T(n),t[0]||=w(`p`,null,`Loading build history...`,-1)])):e.error&&!e.hasSubscriptionError?(d(),x(`div`,kt,[t[2]||=w(`i`,{class:`pi pi-exclamation-triangle`},null,-1),w(`div`,At,[t[1]||=w(`h4`,null,`Failed to Load Build History`,-1),w(`p`,null,i(e.error),1),T(a,{label:`Retry`,severity:`secondary`,onClick:_})])])):!p.value&&!e.isLoading?(d(),x(`div`,jt,[t[5]||=w(`i`,{class:`pi pi-history`},null,-1),w(`div`,Mt,[t[3]||=w(`h4`,null,`No Build History`,-1),t[4]||=w(`p`,null,`Start a build to see your history here.`,-1),e.canStartBuild?(d(),h(a,{key:0,label:`Start New Build`,severity:`primary`,onClick:y})):g(``,!0)])])):(d(),x(`div`,Nt,[w(`div`,Pt,[w(`div`,Ft,[w(`span`,It,` Showing `+i(e.entries.length)+` of `+i(e.totalCount)+` entries `,1),p.value&&e.canDelete?l((d(),h(a,{key:0,text:``,severity:`danger`,size:`small`,class:`ml-2`,onClick:O},{default:S(()=>t[6]||=[w(`i`,{class:`pi pi-trash mr-2`},null,-1),m(` Clear Displayed `)]),_:1})),[[s,`Clear All Entries`,void 0,{top:!0}]]):g(``,!0)])]),w(`div`,{class:r([`entries-container`,`view-${f.value}`])},[f.value===`list`?(d(),x(`div`,Lt,[w(`div`,Rt,[(d(!0),x(v,null,o(e.entries,t=>(d(),h(Et,{key:t.id,entry:t,expandable:!0,"show-actions":!0,"can-delete":e.canDelete,onViewDetails:C,onDelete:D,onToggle:k},null,8,[`entry`,`can-delete`]))),128))])])):(d(),x(`div`,zt,[w(`div`,Bt,[(d(!0),x(v,null,o(e.entries,t=>(d(),x(`div`,{key:t.id,class:`grid-item`},[T(Et,{entry:t,expandable:!1,"show-actions":!0,"can-delete":e.canDelete,onViewDetails:C,onDelete:D},null,8,[`entry`,`can-delete`])]))),128))])]))],2)]))])}}}),[[`__scopeId`,`data-v-c7dfda79`]]),Ht=P.extend({name:`tabs`,style:`
520
- .p-tabs {
521
- display: flex;
522
- flex-direction: column;
523
- }
524
-
525
- .p-tablist {
526
- display: flex;
527
- position: relative;
528
- overflow: hidden;
529
- background: dt('tabs.tablist.background');
530
- }
531
-
532
- .p-tablist-viewport {
533
- overflow-x: auto;
534
- overflow-y: hidden;
535
- scroll-behavior: smooth;
536
- scrollbar-width: none;
537
- overscroll-behavior: contain auto;
538
- }
539
-
540
- .p-tablist-viewport::-webkit-scrollbar {
541
- display: none;
542
- }
543
-
544
- .p-tablist-tab-list {
545
- position: relative;
546
- display: flex;
547
- border-style: solid;
548
- border-color: dt('tabs.tablist.border.color');
549
- border-width: dt('tabs.tablist.border.width');
550
- }
551
-
552
- .p-tablist-content {
553
- flex-grow: 1;
554
- }
555
-
556
- .p-tablist-nav-button {
557
- all: unset;
558
- position: absolute !important;
559
- flex-shrink: 0;
560
- inset-block-start: 0;
561
- z-index: 2;
562
- height: 100%;
563
- display: flex;
564
- align-items: center;
565
- justify-content: center;
566
- background: dt('tabs.nav.button.background');
567
- color: dt('tabs.nav.button.color');
568
- width: dt('tabs.nav.button.width');
569
- transition:
570
- color dt('tabs.transition.duration'),
571
- outline-color dt('tabs.transition.duration'),
572
- box-shadow dt('tabs.transition.duration');
573
- box-shadow: dt('tabs.nav.button.shadow');
574
- outline-color: transparent;
575
- cursor: pointer;
576
- }
577
-
578
- .p-tablist-nav-button:focus-visible {
579
- z-index: 1;
580
- box-shadow: dt('tabs.nav.button.focus.ring.shadow');
581
- outline: dt('tabs.nav.button.focus.ring.width') dt('tabs.nav.button.focus.ring.style') dt('tabs.nav.button.focus.ring.color');
582
- outline-offset: dt('tabs.nav.button.focus.ring.offset');
583
- }
584
-
585
- .p-tablist-nav-button:hover {
586
- color: dt('tabs.nav.button.hover.color');
587
- }
588
-
589
- .p-tablist-prev-button {
590
- inset-inline-start: 0;
591
- }
592
-
593
- .p-tablist-next-button {
594
- inset-inline-end: 0;
595
- }
596
-
597
- .p-tablist-prev-button:dir(rtl),
598
- .p-tablist-next-button:dir(rtl) {
599
- transform: rotate(180deg);
600
- }
601
-
602
- .p-tab {
603
- flex-shrink: 0;
604
- cursor: pointer;
605
- user-select: none;
606
- position: relative;
607
- border-style: solid;
608
- white-space: nowrap;
609
- gap: dt('tabs.tab.gap');
610
- background: dt('tabs.tab.background');
611
- border-width: dt('tabs.tab.border.width');
612
- border-color: dt('tabs.tab.border.color');
613
- color: dt('tabs.tab.color');
614
- padding: dt('tabs.tab.padding');
615
- font-weight: dt('tabs.tab.font.weight');
616
- transition:
617
- background dt('tabs.transition.duration'),
618
- border-color dt('tabs.transition.duration'),
619
- color dt('tabs.transition.duration'),
620
- outline-color dt('tabs.transition.duration'),
621
- box-shadow dt('tabs.transition.duration');
622
- margin: dt('tabs.tab.margin');
623
- outline-color: transparent;
624
- }
625
-
626
- .p-tab:not(.p-disabled):focus-visible {
627
- z-index: 1;
628
- box-shadow: dt('tabs.tab.focus.ring.shadow');
629
- outline: dt('tabs.tab.focus.ring.width') dt('tabs.tab.focus.ring.style') dt('tabs.tab.focus.ring.color');
630
- outline-offset: dt('tabs.tab.focus.ring.offset');
631
- }
632
-
633
- .p-tab:not(.p-tab-active):not(.p-disabled):hover {
634
- background: dt('tabs.tab.hover.background');
635
- border-color: dt('tabs.tab.hover.border.color');
636
- color: dt('tabs.tab.hover.color');
637
- }
638
-
639
- .p-tab-active {
640
- background: dt('tabs.tab.active.background');
641
- border-color: dt('tabs.tab.active.border.color');
642
- color: dt('tabs.tab.active.color');
643
- }
644
-
645
- .p-tabpanels {
646
- background: dt('tabs.tabpanel.background');
647
- color: dt('tabs.tabpanel.color');
648
- padding: dt('tabs.tabpanel.padding');
649
- outline: 0 none;
650
- }
651
-
652
- .p-tabpanel:focus-visible {
653
- box-shadow: dt('tabs.tabpanel.focus.ring.shadow');
654
- outline: dt('tabs.tabpanel.focus.ring.width') dt('tabs.tabpanel.focus.ring.style') dt('tabs.tabpanel.focus.ring.color');
655
- outline-offset: dt('tabs.tabpanel.focus.ring.offset');
656
- }
657
-
658
- .p-tablist-active-bar {
659
- z-index: 1;
660
- display: block;
661
- position: absolute;
662
- inset-block-end: dt('tabs.active.bar.bottom');
663
- height: dt('tabs.active.bar.height');
664
- background: dt('tabs.active.bar.background');
665
- transition: 250ms cubic-bezier(0.35, 0, 0.25, 1);
666
- }
667
- `,classes:{root:function(e){return[`p-tabs p-component`,{"p-tabs-scrollable":e.props.scrollable}]}}}),Ut={name:`Tabs`,extends:{name:`BaseTabs`,extends:z,props:{value:{type:[String,Number],default:void 0},lazy:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},showNavigators:{type:Boolean,default:!0},tabindex:{type:Number,default:0},selectOnFocus:{type:Boolean,default:!1}},style:Ht,provide:function(){return{$pcTabs:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`update:value`],data:function(){return{d_value:this.value}},watch:{value:function(e){this.d_value=e}},methods:{updateValue:function(e){this.d_value!==e&&(this.d_value=e,this.$emit(`update:value`,e))},isVertical:function(){return this.orientation===`vertical`}}};function Wt(e,t,n,r,i,a){return d(),x(`div`,p({class:e.cx(`root`)},e.ptmi(`root`)),[c(e.$slots,`default`)],16)}Ut.render=Wt;var Gt={name:`TabPanels`,extends:{name:`BaseTabPanels`,extends:z,props:{},style:P.extend({name:`tabpanels`,classes:{root:`p-tabpanels`}}),provide:function(){return{$pcTabPanels:this,$parentInstance:this}}},inheritAttrs:!1};function Kt(e,t,n,r,i,a){return d(),x(`div`,p({class:e.cx(`root`),role:`presentation`},e.ptmi(`root`)),[c(e.$slots,`default`)],16)}Gt.render=Kt;var qt=P.extend({name:`tabpanel`,classes:{root:function(e){return[`p-tabpanel`,{"p-tabpanel-active":e.instance.active}]}}}),Jt={name:`TabPanel`,extends:{name:`BaseTabPanel`,extends:z,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:qt,provide:function(){return{$pcTabPanel:this,$parentInstance:this}}},inheritAttrs:!1,inject:[`$pcTabs`],computed:{active:function(){return ne(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 Yt(e,t,n,i,a,o){var s,u;return o.$pcTabs?(d(),x(v,{key:1},[e.asChild?c(e.$slots,`default`,{key:1,class:r(e.cx(`root`)),active:o.active,a11yAttrs:o.a11yAttrs}):(d(),x(v,{key:0},[!((s=o.$pcTabs)!=null&&s.lazy)||o.active?l((d(),h(O(e.as),p({key:0,class:e.cx(`root`)},o.attrs),{default:S(function(){return[c(e.$slots,`default`)]}),_:3},16,[`class`])),[[me,(u=o.$pcTabs)!=null&&u.lazy?!0:o.active]]):g(``,!0)],64))],64)):c(e.$slots,`default`,{key:0})}Jt.render=Yt;var Xt={name:`ChevronLeftIcon`,extends:ee};function Zt(e){return tn(e)||en(e)||$t(e)||Qt()}function Qt(){throw TypeError(`Invalid attempt to spread non-iterable instance.
668
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $t(e,t){if(e){if(typeof e==`string`)return nn(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)?nn(e,t):void 0}}function en(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function tn(e){if(Array.isArray(e))return nn(e)}function nn(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 rn(e,t,n,r,i,a){return d(),x(`svg`,p({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),Zt(t[0]||=[w(`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)}Xt.render=rn;var an={name:`TabList`,extends:{name:`BaseTabList`,extends:z,props:{},style:P.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,watch:{showNavigators:function(e){e?this.bindResizeObserver():this.unbindResizeObserver()},activeValue:{flush:`post`,handler:function(){this.updateInkBar()}}},mounted:function(){var e=this;setTimeout(function(){e.updateInkBar()},150),this.showNavigators&&(this.updateButtonState(),this.bindResizeObserver())},updated:function(){this.showNavigators&&this.updateButtonState()},beforeUnmount:function(){this.unbindResizeObserver()},methods:{onScroll:function(e){this.showNavigators&&this.updateButtonState(),e.preventDefault()},onPrevButtonClick:function(){var e=this.$refs.content,t=this.getVisibleButtonWidths(),n=k(e)-t,r=Math.abs(e.scrollLeft)-n*.8,i=Math.max(r,0);e.scrollLeft=ue(e)?-1*i:i},onNextButtonClick:function(){var e=this.$refs.content,t=this.getVisibleButtonWidths(),n=k(e)-t,r=Math.abs(e.scrollLeft)+n*.8,i=e.scrollWidth-n,a=Math.min(r,i);e.scrollLeft=ue(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},updateInkBar:function(){var e=this.$refs,t=e.content,n=e.inkbar,r=e.tabs;if(n){var i=R(t,`[data-pc-name="tab"][data-p-active="true"]`);this.$pcTabs.isVertical()?(n.style.height=te(i)+`px`,n.style.top=I(i).top-I(r).top+`px`):(n.style.width=de(i)+`px`,n.style.left=I(i).left-I(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=[k(n),pe(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 L({scrollable:this.$pcTabs.scrollable})}},components:{ChevronLeftIcon:Xt,ChevronRightIcon:ce},directives:{ripple:F}},on=[`data-p`],sn=[`aria-label`,`tabindex`],cn=[`data-p`],ln=[`aria-orientation`],un=[`aria-label`,`tabindex`];function dn(e,t,n,r,i,a){var o=f(`ripple`);return d(),x(`div`,p({ref:`list`,class:e.cx(`root`),"data-p":a.dataP},e.ptmi(`root`)),[a.showNavigators&&i.isPrevButtonEnabled?l((d(),x(`button`,p({key:0,ref:`prevButton`,type:`button`,class:e.cx(`prevButton`),"aria-label":a.prevButtonAriaLabel,tabindex:a.$pcTabs.tabindex,onClick:t[0]||=function(){return a.onPrevButtonClick&&a.onPrevButtonClick.apply(a,arguments)}},e.ptm(`prevButton`),{"data-pc-group-section":`navigator`}),[(d(),h(O(a.templates.previcon||`ChevronLeftIcon`),p({"aria-hidden":`true`},e.ptm(`prevIcon`)),null,16))],16,sn)),[[o]]):g(``,!0),w(`div`,p({ref:`content`,class:e.cx(`content`),onScroll:t[1]||=function(){return a.onScroll&&a.onScroll.apply(a,arguments)},"data-p":a.dataP},e.ptm(`content`)),[w(`div`,p({ref:`tabs`,class:e.cx(`tabList`),role:`tablist`,"aria-orientation":a.$pcTabs.orientation||`horizontal`},e.ptm(`tabList`)),[c(e.$slots,`default`),w(`span`,p({ref:`inkbar`,class:e.cx(`activeBar`),role:`presentation`,"aria-hidden":`true`},e.ptm(`activeBar`)),null,16)],16,ln)],16,cn),a.showNavigators&&i.isNextButtonEnabled?l((d(),x(`button`,p({key:1,ref:`nextButton`,type:`button`,class:e.cx(`nextButton`),"aria-label":a.nextButtonAriaLabel,tabindex:a.$pcTabs.tabindex,onClick:t[2]||=function(){return a.onNextButtonClick&&a.onNextButtonClick.apply(a,arguments)}},e.ptm(`nextButton`),{"data-pc-group-section":`navigator`}),[(d(),h(O(a.templates.nexticon||`ChevronRightIcon`),p({"aria-hidden":`true`},e.ptm(`nextIcon`)),null,16))],16,un)),[[o]]):g(``,!0)],16,on)}an.render=dn;var fn=P.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}]}}}),pn={name:`Tab`,extends:{name:`BaseTab`,extends:z,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:fn,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?N(t,`data-p-disabled`)||N(t,`data-pc-section`)===`activebar`?this.findNextTab(t):R(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?N(t,`data-p-disabled`)||N(t,`data-pc-section`)===`activebar`?this.findPrevTab(t):R(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){le(t),this.scrollInView(t)},scrollInView:function(e){var t;e==null||(t=e.scrollIntoView)==null||t.call(e,{block:`nearest`})}},computed:{active:function(){return ne(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 L({active:this.active})}},directives:{ripple:F}};function mn(e,t,n,i,a,o){var s=f(`ripple`);return e.asChild?c(e.$slots,`default`,{key:1,dataP:o.dataP,class:r(e.cx(`root`)),active:o.active,a11yAttrs:o.a11yAttrs,onClick:o.onClick}):l((d(),h(O(e.as),p({key:0,class:e.cx(`root`),"data-p":o.dataP,onClick:o.onClick},o.attrs),{default:S(function(){return[c(e.$slots,`default`)]}),_:3},16,[`class`,`data-p`,`onClick`])),[[s]])}pn.render=mn;var hn={key:0,class:`build-details-modal`},gn={class:`build-overview`},_n={class:`overview-header`},vn={class:`build-title`},yn={class:`build-meta`},bn={class:`meta-item`},xn={class:`meta-item`},Sn={key:0,class:`meta-item`},Cn={key:1,class:`meta-item`},wn={class:`meta-item`},Tn={class:`steps-container`},En={key:0,class:`no-steps`},Dn={key:1,class:`steps-timeline`},On={class:`step-timeline-marker`},kn={key:0,class:`step-connector`},An={class:`step-timeline-content`},jn={class:`step-header`},Mn={class:`step-name`},Nn={class:`step-status-info`},Pn={key:0,class:`step-duration`},Fn={class:`step-details`},In={class:`step-timing`},Ln={key:0,class:`start-time`},Rn={key:1,class:`end-time`},zn={key:0,class:`step-logs`},Bn={class:`logs-details`},Vn={class:`logs-content`},Hn={class:`log-time`},Un={class:`log-level`},Wn={class:`log-message`},Gn={key:0,class:`log-source`},Kn={key:1,class:`step-error`},qn={class:`error-details`},Jn={class:`error-summary`},Yn={class:`error-content`},Xn={class:`error-message`},Zn={key:0,class:`error-stack`},Qn={key:1,class:`error-metadata`},$n={key:2,class:`step-output`},er={class:`output-details`},tr={class:`output-content`},nr={class:`logs-container`},rr={key:0,class:`no-logs`},ir={key:1,class:`logs-list`},ar={class:`log-time`},or={class:`log-level`},sr={class:`log-message`},cr={key:0,class:`log-source`},lr={class:`error-container`},ur={class:`error-header`},dr={class:`error-content`},fr={class:`error-message`},pr={key:0,class:`error-stack`},mr={key:1,class:`error-metadata`},hr={class:`metadata-container`},gr={key:0,class:`no-metadata`},_r={key:1,class:`metadata-content`},vr={class:`modal-actions`},yr=C(D({__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,a=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=()=>{a(`hide`)},p=()=>{a(`hide`)},_=()=>{n.entry&&a(`retry`,n.entry)},y=()=>{n.entry&&a(`delete`,n.entry)};return(e,t)=>{let n=pn,a=an,b=Jt,C=Gt,E=Ut,D=A,O=ie;return d(),h(O,{visible:e.visible,modal:``,header:`Build Details - ${e.entry?.projectName||`Unknown`}`,style:{width:`90vw`,maxWidth:`1200px`},closable:!0,"onUpdate:visible":p},{default:S(()=>[e.entry?(d(),x(`div`,hn,[w(`div`,gn,[w(`div`,_n,[w(`div`,vn,[w(`h3`,null,i(e.entry.projectName),1),T(U,{status:e.entry.status,size:`large`},null,8,[`status`])]),w(`div`,yn,[w(`div`,bn,[t[0]||=w(`label`,null,`Project ID:`,-1),w(`span`,null,i(e.entry.pipelineId),1)]),w(`div`,xn,[t[1]||=w(`label`,null,`Started:`,-1),w(`span`,null,i(s(e.entry.startTime)),1)]),e.entry.endTime?(d(),x(`div`,Sn,[t[2]||=w(`label`,null,`Ended:`,-1),w(`span`,null,i(s(e.entry.endTime)),1)])):g(``,!0),e.entry.duration?(d(),x(`div`,Cn,[t[3]||=w(`label`,null,`Duration:`,-1),w(`span`,null,i(l(e.entry.duration)),1)])):g(``,!0),w(`div`,wn,[t[4]||=w(`label`,null,`Progress:`,-1),w(`span`,null,i(e.entry.completedSteps)+`/`+i(e.entry.totalSteps)+` steps`,1)])])])]),T(E,{value:`steps`,class:`details-tabs`},{default:S(()=>[T(a,null,{default:S(()=>[T(n,{value:`steps`},{default:S(()=>t[5]||=[m(`Execution Steps`)]),_:1}),T(n,{value:`logs`},{default:S(()=>t[6]||=[m(`Build Logs`)]),_:1}),e.entry.error?(d(),h(n,{key:0,value:`error`},{default:S(()=>t[7]||=[m(`Error Details`)]),_:1})):g(``,!0),T(n,{value:`metadata`},{default:S(()=>t[8]||=[m(`Metadata`)]),_:1})]),_:1}),T(C,null,{default:S(()=>[T(b,{value:`steps`},{default:S(()=>[w(`div`,Tn,[!e.entry.steps||e.entry.steps.length===0?(d(),x(`div`,En,t[9]||=[w(`p`,null,`No execution steps available.`,-1)])):(d(),x(`div`,Dn,[(d(!0),x(v,null,o(e.entry.steps||[],(n,a)=>(d(),x(`div`,{key:n.id,class:r([`step-timeline-item`,n.status])},[w(`div`,On,[w(`i`,{class:r([u(n.status),`step-icon`])},null,2),a<e.entry.steps.length-1?(d(),x(`div`,kn)):g(``,!0)]),w(`div`,An,[w(`div`,jn,[w(`h4`,Mn,i(n.name),1),w(`div`,Nn,[T(U,{status:n.status,size:`small`},null,8,[`status`]),n.duration?(d(),x(`span`,Pn,i(l(n.duration)),1)):g(``,!0)])]),w(`div`,Fn,[w(`div`,In,[n.startTime?(d(),x(`span`,Ln,` Started: `+i(c(n.startTime)),1)):g(``,!0),n.endTime?(d(),x(`span`,Rn,` Ended: `+i(c(n.endTime)),1)):g(``,!0)]),n.logs?.length>0?(d(),x(`div`,zn,[w(`details`,Bn,[w(`summary`,null,`View Logs (`+i(n.logs?.length||0)+` entries)`,1),w(`div`,Vn,[(d(!0),x(v,null,o(n.logs||[],e=>(d(),x(`div`,{key:e.id,class:r([`log-entry`,`log-${e.level||`info`}`])},[w(`span`,Hn,i(c(e.timestamp)),1),w(`span`,Un,i((e.level||`info`).toUpperCase()),1),w(`span`,Wn,i(Array.isArray(e.message)?e.message.join(` `):e.message),1),e.source?(d(),x(`span`,Gn,`(`+i(e.source)+`)`,1)):g(``,!0)],2))),128))])])])):g(``,!0),n.error?(d(),x(`div`,Kn,[w(`details`,qn,[w(`summary`,Jn,[t[10]||=w(`i`,{class:`pi pi-exclamation-triangle`},null,-1),m(` Error: `+i(n.error.message),1)]),w(`div`,Yn,[w(`p`,Xn,i(n.error.message),1),n.error.stack?(d(),x(`div`,Zn,[t[11]||=w(`h6`,null,`Stack Trace:`,-1),w(`pre`,null,i(n.error.stack),1)])):g(``,!0),n.error.code?(d(),x(`div`,Qn,[w(`small`,null,[t[12]||=w(`strong`,null,`Error Code:`,-1),m(` `+i(n.error.code),1)])])):g(``,!0)])])])):g(``,!0),n.output?(d(),x(`div`,$n,[w(`details`,er,[t[13]||=w(`summary`,null,`Step Output`,-1),w(`div`,tr,[w(`pre`,null,i(JSON.stringify(n.output,null,2)),1)])])])):g(``,!0)])])],2))),128))]))])]),_:1}),T(b,{value:`logs`},{default:S(()=>[w(`div`,nr,[!e.entry.logs||e.entry.logs.length===0?(d(),x(`div`,rr,t[14]||=[w(`p`,null,`No build logs available.`,-1)])):(d(),x(`div`,ir,[(d(!0),x(v,null,o(e.entry.logs||[],e=>(d(),x(`div`,{key:e.id,class:r([`log-entry`,`log-${e.level||`info`}`])},[w(`span`,ar,i(c(e.timestamp)),1),w(`span`,or,i((e.level||`info`).toUpperCase()),1),w(`span`,sr,i(Array.isArray(e.message)?e.message.join(` `):e.message),1),e.source?(d(),x(`span`,cr,`(`+i(e.source)+`)`,1)):g(``,!0)],2))),128))]))])]),_:1}),e.entry.error?(d(),h(b,{key:0,value:`error`},{default:S(()=>[w(`div`,lr,[w(`div`,ur,[t[15]||=w(`h4`,null,`Build Error`,-1),T(U,{status:`failed`,size:`medium`})]),w(`div`,dr,[w(`div`,fr,[t[16]||=w(`strong`,null,`Message:`,-1),w(`p`,null,i(e.entry.error.message),1)]),e.entry.error.stack?(d(),x(`div`,pr,[t[17]||=w(`strong`,null,`Stack Trace:`,-1),w(`pre`,null,i(e.entry.error.stack),1)])):g(``,!0),e.entry.error.code?(d(),x(`div`,mr,[t[18]||=w(`strong`,null,`Error Code:`,-1),m(` `+i(e.entry.error.code),1)])):g(``,!0)])])]),_:1})):g(``,!0),T(b,{value:`metadata`},{default:S(()=>[w(`div`,hr,[e.entry.metadata?(d(),x(`div`,_r,[w(`pre`,null,i(JSON.stringify(e.entry.metadata,null,2)),1)])):(d(),x(`div`,gr,t[19]||=[w(`p`,null,`No metadata available.`,-1)]))])]),_:1})]),_:1})]),_:1}),w(`div`,vr,[T(D,{label:`Close`,severity:`secondary`,onClick:f}),e.canRetry&&e.entry.status===`failed`?(d(),h(D,{key:0,label:`Retry Build`,severity:`info`,onClick:_})):g(``,!0),e.canDelete?(d(),h(D,{key:1,label:`Delete Entry`,severity:`danger`,onClick:y})):g(``,!0)])])):g(``,!0)]),_:1},8,[`visible`,`header`])}}}),[[`__scopeId`,`data-v-1ee95f2f`]]),br={class:`build-history-dialog`},xr={key:0,class:`loading-state`},Sr={key:1,class:`main-content`},Cr={key:2,class:`unauthorized-state`},wr={class:`unauthorized-actions`},Tr={class:`export-dialog`},Er={class:`export-status`},Dr=C(D({__name:`BuildHistoryDialog`,props:{visible:{type:Boolean},pipelineId:{}},emits:[`hide`,`update:visible`],setup(t,{emit:r}){let o=t,c=r,l=he(),u=ge(),f=fe(),p=E(`openUpgradeDialog`),m=e(null),g=e(!1),_=e(!1),v=e(0),C=e(``),D=b(()=>u.storageInfo?.totalEntries||0),O=e=>{m.value=e,g.value=!0},k=()=>{g.value=!1,m.value=null},j=async e=>{l.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 u.deleteEntry(e.id)}catch(e){console.error(`Failed to delete entry:`,e)}}})},ee=async()=>{let e=o.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?`;l.require({group:`build-history`,message:e,header:`Clear Build History`,icon:`pi pi-exclamation-triangle`,accept:async()=>{try{o.pipelineId?await u.clearHistoryByPipeline(o.pipelineId):await u.clearHistory()}catch(e){console.error(`Failed to clear entries:`,e)}}})},te=async e=>{k(),console.log(`Retrying build for entry:`,e.id),l.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:()=>{}})},ne=()=>{c(`update:visible`,!1)},M=async()=>{if(console.log(`buildHistoryStore.canUseHistory`,u.canUseHistory),u.canUseHistory)try{let e={pipelineId:o.pipelineId||void 0};console.log(`query`,e),await u.loadEntries(e)}catch(e){console.error(`Failed to load build history after auth change:`,e)}};return s(()=>o.visible,e=>{e&&M()}),s(()=>o.pipelineId,()=>{o.visible&&M()}),f.onSubscriptionChanged(async({subscriptions:e})=>{o.visible&&M()}),y(()=>{o.visible&&M()}),a(()=>{m.value=null}),(e,t)=>{let r=qe,a=A,o=We,s=Le,c=ie;return d(),h(c,{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:S(()=>[w(`div`,br,[n(f).isLoadingSubscriptions?(d(),x(`div`,xr,[T(r),t[3]||=w(`p`,null,`Loading build history...`,-1)])):n(u).canUseHistory?(d(),x(`div`,Sr,[T(Vt,{entries:n(u).entries,"is-loading":n(u).isLoading,error:n(u).error,"total-count":D.value,"can-delete":!0,"can-start-build":!1,onViewDetails:O,onDelete:j,onClearAll:ee,onStartBuild:ne},null,8,[`entries`,`is-loading`,`error`,`total-count`])])):(d(),x(`div`,Cr,[t[4]||=w(`div`,{class:`unauthorized-icon`},[w(`i`,{class:`pi pi-lock`})],-1),t[5]||=w(`h3`,null,`Premium Feature`,-1),t[6]||=w(`p`,null,`Build history tracking is available with a premium subscription.`,-1),w(`div`,wr,[T(a,{label:`Upgrade to Access`,severity:`primary`,onClick:n(p)},null,8,[`onClick`]),T(a,{label:`Close`,severity:`secondary`,onClick:t[0]||=t=>e.$emit(`update:visible`,!1)})])])),T(yr,{entry:m.value,visible:g.value,"can-delete":!0,"can-retry":!0,onHide:k,onRetry:te,onDelete:j},null,8,[`entry`,`visible`]),T(o,{group:`build-history`}),T(c,{visible:_.value,"onUpdate:visible":t[1]||=e=>_.value=e,modal:``,header:`Export Build History`,style:{width:`400px`},closable:!0},{default:S(()=>[w(`div`,Tr,[t[7]||=w(`p`,null,`Exporting build history data...`,-1),T(s,{value:v.value,"show-value":!0},null,8,[`value`]),w(`p`,Er,i(C.value),1)])]),_:1},8,[`visible`])])]),_:1},8,[`visible`])}}}),[[`__scopeId`,`data-v-ad9852ab`]]),Or={},kr;function Ar(e={}){Or={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 W(e){return e?Or[e]:Or}function jr(e){kr=e}function G(){return kr}var K={};function q(e,t){K[e]=t}function J(e){var t;(t=K[e])==null||t.call(K)}function Mr(){K={}}function Y(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function Nr(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`&&Lr(e))}function Pr(e){if(!e||Ir(e))return;let t=W(`smoothScroll`),n=e.offsetHeight>window.innerHeight;e.scrollIntoView({behavior:!t||Fr(e)?`auto`:`smooth`,inline:`center`,block:n?`start`:`center`})}function Fr(e){if(!e||!e.parentElement)return;let t=e.parentElement;return t.scrollHeight>t.clientHeight}function Ir(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 Lr(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}var X={};function Z(e,t){X[e]=t}function Q(e){return e?X[e]:X}function Rr(){X={}}function zr(e,t,n,r){let i=Q(`__activeStagePosition`),a=i||n.getBoundingClientRect(),o=r.getBoundingClientRect();i={x:Y(e,a.x,o.x-a.x,t),y:Y(e,a.y,o.y-a.y,t),width:Y(e,a.width,o.width-a.width,t),height:Y(e,a.height,o.height-a.height,t)},Ur(i),Z(`__activeStagePosition`,i)}function Br(e){if(!e)return;let t=e.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height};Z(`__activeStagePosition`,n),Ur(n)}function Vr(){let e=Q(`__activeStagePosition`),t=Q(`__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 Hr(e){let t=Wr(e);document.body.appendChild(t),ei(t,e=>{e.target.tagName===`path`&&J(`overlayClick`)}),Z(`__overlaySvg`,t)}function Ur(e){let t=Q(`__overlaySvg`);if(!t){Hr(e);return}let n=t.firstElementChild;if(n?.tagName!==`path`)throw Error(`no path element found in stage svg`);n.setAttribute(`d`,Gr(e))}function Wr(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`,Gr(e)),i.style.fill=W(`overlayColor`)||`rgb(0,0,0)`,i.style.opacity=`${W(`overlayOpacity`)}`,i.style.pointerEvents=`auto`,i.style.cursor=`auto`,r.appendChild(i),r}function Gr(e){let t=window.innerWidth,n=window.innerHeight,r=W(`stagePadding`)||0,i=W(`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
669
- 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 Kr(){let e=Q(`__overlaySvg`);e&&e.remove()}function qr(){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 Jr(e){let{element:t}=e,n=typeof t==`function`?t():typeof t==`string`?document.querySelector(t):t;n||=qr(),Xr(n,e)}function Yr(){let e=Q(`__activeElement`),t=Q(`__activeStep`);e&&(Br(e),Vr(),ci(e,t))}function Xr(e,t){let n=Date.now(),r=Q(`__activeStep`),i=Q(`__activeElement`)||e,a=!i||i===e,o=e.id===`driver-dummy-element`,s=i.id===`driver-dummy-element`,c=W(`animate`),l=t.onHighlightStarted||W(`onHighlightStarted`),u=t?.onHighlighted||W(`onHighlighted`),d=r?.onDeselected||W(`onDeselected`),f=W(),p=Q();!a&&d&&d(s?void 0:i,r,{config:f,state:p,driver:G()}),l&&l(o?void 0:e,t,{config:f,state:p,driver:G()});let m=!a&&c,h=!1;ri(),Z(`previousStep`,r),Z(`previousElement`,i),Z(`activeStep`,t),Z(`activeElement`,e);let g=()=>{if(Q(`__transitionCallback`)!==g)return;let a=Date.now()-n,s=400-a<=400/2;t.popover&&s&&!h&&m&&(ii(e,t),h=!0),W(`animate`)&&a<400?zr(a,400,i,e):(Br(e),u&&u(o?void 0:e,t,{config:W(),state:Q(),driver:G()}),Z(`__transitionCallback`,void 0),Z(`__previousStep`,r),Z(`__previousElement`,i),Z(`__activeStep`,t),Z(`__activeElement`,e)),window.requestAnimationFrame(g)};Z(`__transitionCallback`,g),window.requestAnimationFrame(g),Pr(e),!m&&t.popover&&ii(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??W(`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 Zr(){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 $(){let e=Q(`__resizeTimeout`);e&&window.cancelAnimationFrame(e),Z(`__resizeTimeout`,window.requestAnimationFrame(Yr))}function Qr(e){if(!Q(`isInitialized`)||!(e.key===`Tab`||e.keyCode===9))return;let t=Q(`__activeElement`),n=Q(`popover`)?.wrapper,r=Nr([...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 $r(e){var t;((t=W(`allowKeyboardControl`))==null||t)&&(e.key===`Escape`?J(`escapePress`):e.key===`ArrowRight`?J(`arrowRightPress`):e.key===`ArrowLeft`&&J(`arrowLeftPress`))}function ei(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 ti(){window.addEventListener(`keyup`,$r,!1),window.addEventListener(`keydown`,Qr,!1),window.addEventListener(`resize`,$),window.addEventListener(`scroll`,$)}function ni(){window.removeEventListener(`keyup`,$r),window.removeEventListener(`resize`,$),window.removeEventListener(`scroll`,$)}function ri(){let e=Q(`popover`);e&&(e.wrapper.style.display=`none`)}function ii(e,t){let n=Q(`popover`);n&&document.body.removeChild(n.wrapper),n=ui(),document.body.appendChild(n.wrapper);let{title:r,description:i,showButtons:a,disableButtons:o,showProgress:s,nextBtnText:c=W(`nextBtnText`)||`Next &rarr;`,prevBtnText:l=W(`prevBtnText`)||`&larr; Previous`,progressText:u=W(`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||W(`showButtons`),f=s||W(`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||W(`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||W(`popoverClass`)||``}`.trim(),ei(n.wrapper,n=>{let r=n.target,i=t.popover?.onNextClick||W(`onNextClick`),a=t.popover?.onPrevClick||W(`onPrevClick`),o=t.popover?.onCloseClick||W(`onCloseClick`);if(r.closest(`.driver-popover-next-btn`))return i?i(e,t,{config:W(),state:Q(),driver:G()}):J(`nextClick`);if(r.closest(`.driver-popover-prev-btn`))return a?a(e,t,{config:W(),state:Q(),driver:G()}):J(`prevClick`);if(r.closest(`.driver-popover-close-btn`))return o?o(e,t,{config:W(),state:Q(),driver:G()}):J(`closeClick`)},e=>!(n!=null&&n.description.contains(e))&&!(n!=null&&n.title.contains(e))&&typeof e.className==`string`&&e.className.includes(`driver-popover`)),Z(`popover`,n);let _=t.popover?.onPopoverRender||W(`onPopoverRender`);_&&_(n,{config:W(),state:Q(),driver:G()}),ci(e,t),Pr(h);let v=Nr([h,...e.classList.contains(`driver-dummy-element`)?[]:[e]]);v.length>0&&v[0].focus()}function ai(){let e=Q(`popover`);if(!(e!=null&&e.wrapper))return;let t=e.wrapper.getBoundingClientRect(),n=W(`stagePadding`)||0,r=W(`popoverOffset`)||0;return{width:t.width+n+r,height:t.height+n+r,realWidth:t.width,realHeight:t.height}}function oi(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 si(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 ci(e,t){let n=Q(`popover`);if(!n)return;let{align:r=`start`,side:i=`left`}=t?.popover||{},a=r,o=e.id===`driver-dummy-element`?`over`:i,s=W(`stagePadding`)||0,c=ai(),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=oi(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=oi(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=si(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=si(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`):li(a,b,e)}function li(e,t,n){let r=Q(`popover`);if(!r)return;let i=n.getBoundingClientRect(),a=ai(),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=W(`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 ui(){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=`&times;`;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=`&larr; Previous`;let l=document.createElement(`button`);return l.type=`button`,l.classList.add(`driver-popover-next-btn`),l.innerHTML=`Next &rarr;`,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 di(){var e;let t=Q(`popover`);t&&((e=t.wrapper.parentElement)==null||e.removeChild(t.wrapper))}function fi(e={}){Ar(e);function t(){W(`allowClose`)&&u()}function n(){let e=W(`overlayClickBehavior`);if(W(`allowClose`)&&e===`close`){u();return}if(typeof e==`function`){let t=Q(`__activeStep`);e(Q(`__activeElement`),t,{config:W(),state:Q(),driver:G()});return}e===`nextStep`&&r()}function r(){let e=Q(`activeIndex`),t=W(`steps`)||[];if(e===void 0)return;let n=e+1;t[n]?l(n):u()}function i(){let e=Q(`activeIndex`),t=W(`steps`)||[];if(e===void 0)return;let n=e-1;t[n]?l(n):u()}function a(e){(W(`steps`)||[])[e]?l(e):u()}function o(){if(Q(`__transitionCallback`))return;let e=Q(`activeIndex`),t=Q(`__activeStep`),n=Q(`__activeElement`);if(e===void 0||t===void 0||Q(`activeIndex`)===void 0)return;let r=t.popover?.onPrevClick||W(`onPrevClick`);if(r)return r(n,t,{config:W(),state:Q(),driver:G()});i()}function s(){if(Q(`__transitionCallback`))return;let e=Q(`activeIndex`),t=Q(`__activeStep`),n=Q(`__activeElement`);if(e===void 0||t===void 0)return;let i=t.popover?.onNextClick||W(`onNextClick`);if(i)return i(n,t,{config:W(),state:Q(),driver:G()});r()}function c(){Q(`isInitialized`)||(Z(`isInitialized`,!0),document.body.classList.add(`driver-active`,W(`animate`)?`driver-fade`:`driver-simple`),ti(),q(`overlayClick`,n),q(`escapePress`,t),q(`arrowLeftPress`,o),q(`arrowRightPress`,s))}function l(e=0){let t=W(`steps`);if(!t){console.error(`No steps to drive through`),u();return}if(!t[e]){u();return}Z(`__activeOnDestroyed`,document.activeElement),Z(`activeIndex`,e);let n=t[e],r=t[e+1],i=t[e-1],a=n.popover?.doneBtnText||W(`doneBtnText`)||`Done`,o=W(`allowClose`),s=n.popover?.showProgress===void 0?W(`showProgress`):n.popover?.showProgress,c=(n.popover?.progressText||W(`progressText`)||`{{current}} of {{total}}`).replace(`{{current}}`,`${e+1}`).replace(`{{total}}`,`${t.length}`),d=n.popover?.showButtons||W(`showButtons`),f=[`next`,`previous`,...o?[`close`]:[]].filter(e=>!(d!=null&&d.length)||d.includes(e)),p=n.popover?.onNextClick||W(`onNextClick`),m=n.popover?.onPrevClick||W(`onPrevClick`),h=n.popover?.onCloseClick||W(`onCloseClick`);Jr({...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=Q(`__activeElement`),n=Q(`__activeStep`),r=Q(`__activeOnDestroyed`),i=W(`onDestroyStarted`);if(e&&i){i(!t||t?.id===`driver-dummy-element`?void 0:t,n,{config:W(),state:Q(),driver:G()});return}let a=n?.onDeselected||W(`onDeselected`),o=W(`onDestroyed`);if(document.body.classList.remove(`driver-active`,`driver-fade`,`driver-simple`),ni(),di(),Zr(),Kr(),Mr(),Rr(),t&&n){let e=t.id===`driver-dummy-element`;a&&a(e?void 0:t,n,{config:W(),state:Q(),driver:G()}),o&&o(e?void 0:t,n,{config:W(),state:Q(),driver:G()})}r&&r.focus()}let d={isActive:()=>Q(`isInitialized`)||!1,refresh:$,drive:(e=0)=>{c(),l(e)},setConfig:Ar,setSteps:e=>{Rr(),Ar({...W(),steps:e})},getConfig:W,getState:Q,getActiveIndex:()=>Q(`activeIndex`),isFirstStep:()=>Q(`activeIndex`)===0,isLastStep:()=>{let e=W(`steps`)||[],t=Q(`activeIndex`);return t!==void 0&&t===e.length-1},getActiveStep:()=>Q(`activeStep`),getActiveElement:()=>Q(`activeElement`),getPreviousElement:()=>Q(`previousElement`),getPreviousStep:()=>Q(`previousStep`),moveNext:r,movePrevious:i,moveTo:a,hasNextStep:()=>{let e=W(`steps`)||[],t=Q(`activeIndex`);return t!==void 0&&!!e[t+1]},hasPreviousStep:()=>{let e=W(`steps`)||[],t=Q(`activeIndex`);return t!==void 0&&!!e[t-1]},highlight:e=>{c(),Jr({...e,popover:e.popover?{showButtons:[],showProgress:!1,progressText:``,...e.popover}:void 0})},destroy:()=>{u(!1)}};return jr(d),d}function pi(e){let t=M(),{settings:n}=se(t),{updateSettings:r}=t;return{startTour:(t,i=!1)=>{let a=fi({showProgress:!0,steps:t,onHighlighted:(i,a,{state:o})=>{let s={...n.value.tours};s[e]={step:o.activeIndex,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{ve as a,we as i,Dr as n,We as r,pi as t};