@turquoisehealth/pit-viper 2.243.2-dev.2 → 2.244.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_src/assets/sprite-v2.svg +1 -1
- package/_src/assets/sprite.svg +1 -1
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-file-input-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvFileInput/PvFileInput.vue.d.ts +6 -0
- package/pv-components/dist/vue/base/components/base/PvFileInput/PvFileInput.vue.d.ts +6 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +12 -10
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFileInput/PvFileInput.vue.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/visualizations/index.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2712 -2703
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-file-input/pv-file-input.js +13 -5
- package/pv-components/dist/web/pv-components.iife.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -204,6 +204,14 @@ var A = [
|
|
|
204
204
|
showSelectedFile: {
|
|
205
205
|
type: Boolean,
|
|
206
206
|
default: !0
|
|
207
|
+
},
|
|
208
|
+
confirmButtonVariant: {
|
|
209
|
+
default: "primary",
|
|
210
|
+
type: String
|
|
211
|
+
},
|
|
212
|
+
destructiveButtonVariant: {
|
|
213
|
+
default: "destructive",
|
|
214
|
+
type: String
|
|
207
215
|
}
|
|
208
216
|
}, {
|
|
209
217
|
modelValue: { default: () => [] },
|
|
@@ -230,26 +238,26 @@ var A = [
|
|
|
230
238
|
a("label", {
|
|
231
239
|
for: x(p),
|
|
232
240
|
class: "pv-label"
|
|
233
|
-
}, [
|
|
241
|
+
}, [a("span", { class: f([`pv-button-${s.confirmButtonVariant}`, "pv-button-large"]) }, "Choose File", 2)], 8, oe),
|
|
234
242
|
a("p", { class: f(["pv-text-body-sm", s.showSelectedFile && d.value.length ? "pv-flex-item pv-truncate" : "pv-text-subdued"]) }, b(_.value), 3),
|
|
235
243
|
s.showSelectedFile && d.value.length === 1 ? (h(), n(ne, {
|
|
236
244
|
key: 0,
|
|
237
245
|
"left-icon": "trash",
|
|
238
|
-
variant:
|
|
246
|
+
variant: s.destructiveButtonVariant,
|
|
239
247
|
size: "md",
|
|
240
248
|
"aria-label": "Remove file",
|
|
241
249
|
onClick: c[0] ||= (e) => g(d.value[0])
|
|
242
|
-
})) : r("v-if", !0)
|
|
250
|
+
}, null, 8, ["variant"])) : r("v-if", !0)
|
|
243
251
|
]), s.showSelectedFile && d.value.length > 1 ? (h(), i("ul", se, [(h(!0), i(e, null, y(d.value, (e) => (h(), i("li", {
|
|
244
252
|
key: e.name,
|
|
245
253
|
class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between pv-inset-square"
|
|
246
254
|
}, [a("p", ce, b(e.name), 1), o(ne, {
|
|
247
255
|
"left-icon": "trash",
|
|
248
|
-
variant:
|
|
256
|
+
variant: s.destructiveButtonVariant,
|
|
249
257
|
size: "md",
|
|
250
258
|
"aria-label": "Remove file",
|
|
251
259
|
onClick: (t) => g(e)
|
|
252
|
-
}, null, 8, ["onClick"])]))), 128))])) : r("v-if", !0)]));
|
|
260
|
+
}, null, 8, ["variant", "onClick"])]))), 128))])) : r("v-if", !0)]));
|
|
253
261
|
}
|
|
254
262
|
}), ue = Object.defineProperty, de = Object.getOwnPropertySymbols, fe = Object.prototype.hasOwnProperty, pe = Object.prototype.propertyIsEnumerable, me = (e, t, n) => t in e ? ue(e, t, {
|
|
255
263
|
enumerable: !0,
|
|
@@ -1529,7 +1529,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1529
1529
|
transform: translateX(-100%);
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
|
-
`,classes:{root:function(e){var t=e.props;return[`p-skeleton p-component`,{"p-skeleton-circle":t.shape===`circle`,"p-skeleton-animation-none":t.animation===`none`}]}},inlineStyles:{root:{position:`relative`}}}),MO={name:`BaseSkeleton`,extends:qx,props:{shape:{type:String,default:`rectangle`},size:{type:String,default:null},width:{type:String,default:`100%`},height:{type:String,default:`1rem`},borderRadius:{type:String,default:null},animation:{type:String,default:`wave`}},style:jO,provide:function(){return{$pcSkeleton:this,$parentInstance:this}}};function NO(e){"@babel/helpers - typeof";return NO=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},NO(e)}function PO(e,t,n){return(t=FO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FO(e){var t=IO(e,`string`);return NO(t)==`symbol`?t:t+``}function IO(e,t){if(NO(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(NO(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var LO={name:`Skeleton`,extends:MO,inheritAttrs:!1,computed:{containerStyle:function(){return this.size?{width:this.size,height:this.size,borderRadius:this.borderRadius}:{width:this.width,height:this.height,borderRadius:this.borderRadius}},dataP:function(){return ly(PO({},this.shape,this.shape))}}},RO=[`data-p`];function zO(e,t,n,r,i,a){return U(),W(`div`,J({class:e.cx(`root`),style:[e.sx(`root`),a.containerStyle],"aria-hidden":`true`},e.ptmi(`root`),{"data-p":a.dataP}),null,16,RO)}LO.render=zO;var BO=V({__name:`PvSkeleton`,props:{size:{default:`md`,type:String},variant:{default:`rectangle`,type:String},width:{type:String},height:{type:String}},setup(e){let t={xs:`0.75rem`,sm:`1rem`,md:`1.25rem`,lg:`1.5rem`,xl:`2rem`},n=e,r=Z(()=>n.variant===`square`||n.variant===`circle`),i=Z(()=>n.height??t[n.size]),a=Z(()=>n.width??(r.value?t[n.size]:`100%`)),o=Z(()=>n.variant===`circle`?`circle`:`rectangle`);return(e,t)=>(U(),G(R(LO),{"data-testid":`pv-skeleton`,shape:o.value,height:i.value,width:a.value},null,8,[`shape`,`height`,`width`]))}}),VO={class:`pv-stack-8`},HO={class:`pv-input-file`},UO=[`id`,`accept`,`disabled`,`multiple`],WO=[`for`],GO={key:0,class:`pv-stack-8`},KO={class:`pv-flex-item pv-truncate pv-text-body-sm`},qO=V({__name:`PvFileInput`,props:na({helperText:{type:String},accept:{type:String},disabled:{type:Boolean},multiple:{type:Boolean,default:!1},showSelectedFile:{type:Boolean,default:!0}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:na([`select-file`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=ba(e,`modelValue`),a=mi(),o=e=>{let t=e.target,n=Array.from(t.files??[]);t.value=``,n.length&&(i.value=[...i.value,...n],n.forEach(e=>r(`select-file`,e)))},s=e=>{i.value=i.value.filter(t=>t!==e)},c=Z(()=>!n.showSelectedFile||i.value.length===0?n.helperText:i.value.length===1?i.value[0].name:`${i.value.length} files selected`);return(t,n)=>(U(),W(`div`,VO,[K(`div`,HO,[K(`input`,{id:R(a),type:`file`,name:`file`,accept:e.accept,disabled:e.disabled,multiple:e.multiple,onChange:o},null,40,UO),K(`label`,{for:R(a),class:`pv-label`},[...n[1]||=[K(`span`,{class:`pv-button-primary pv-button-large`},`Choose File`,-1)]],8,WO),K(`p`,{class:b([`pv-text-body-sm`,e.showSelectedFile&&i.value.length?`pv-flex-item pv-truncate`:`pv-text-subdued`])},I(c.value),3),e.showSelectedFile&&i.value.length===1?(U(),G(Sd,{key:0,"left-icon":`trash`,variant:`destructive`,size:`md`,"aria-label":`Remove file`,onClick:n[0]||=e=>s(i.value[0])})):q(``,!0)]),e.showSelectedFile&&i.value.length>1?(U(),W(`ul`,GO,[(U(!0),W(Y,null,Bi(i.value,e=>(U(),W(`li`,{key:e.name,class:`pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between pv-inset-square`},[K(`p`,KO,I(e.name),1),X(Sd,{"left-icon":`trash`,variant:`destructive`,size:`md`,"aria-label":`Remove file`,onClick:t=>s(e)},null,8,[`onClick`])]))),128))])):q(``,!0)]))}}),JO=[`data-rating`],YO=[`value`],XO=V({__name:`PvRating`,props:{variant:{default:`dot`,type:null},value:{type:Number},size:{default:20,type:null}},setup(e){let t=e,n=Z(()=>t.variant===`dot`?`dot`:void 0);return(t,r)=>(U(),W(`div`,{class:`pv-rating`,"data-testid":`pv-rating`,style:_({"--height":`${e.size}px`}),"data-rating":n.value},[K(`meter`,{id:`rating`,min:`0`,max:`5`,value:e.value},`4.0 stars`,8,YO)],12,JO))}}),ZO={key:0,class:`pv-flex pv-full-width`},QO={class:`pv-flex-item pv-truncate`},$O={class:`pv-card-hover-action__action pv-flex`},ek={key:1,class:`pv-flex pv-full-width`},tk={class:`pv-flex-item pv-truncate`},nk={class:`pv-card-hover-action__action pv-flex`},rk={key:2,class:`pv-flex pv-full-width`},ik={class:`pv-flex-item pv-truncate`},ak={class:`pv-card-hover-action__action pv-flex`},ok=V({__name:`PvCard`,props:{href:{type:String},variant:{default:`primary`,type:String},interactive:{type:Boolean,default:!1},headerAction:{type:Boolean,default:!1},descriptionAction:{type:Boolean,default:!1},footerAction:{type:Boolean,default:!1}},setup(e){let t=e,n=Z(()=>t.headerAction||t.descriptionAction||t.footerAction),r=Z(()=>t.href?`a`:t.interactive?`button`:`div`),i=Z(()=>!t.href&&t.interactive?`button`:void 0),a=Z(()=>`pv-card pv-inset-square-8 ${n.value?`pv-flex-vertical`:`pv-inline-block`}`);return(t,o)=>(U(),G(Ii(r.value),{href:e.href,type:i.value,class:b([a.value,{"pv-card-secondary":e.variant===`secondary`&&!n.value,"pv-card-hover-action":n.value,"pv-card-hover-action-secondary":n.value&&e.variant===`secondary`}]),style:_(n.value?{"--flex-align":`flex-start`}:void 0),"data-testid":`pv-card`},{default:z(()=>[n.value?(U(),W(Y,{key:0},[e.headerAction?(U(),W(`div`,ZO,[K(`div`,QO,[H(t.$slots,`header`)]),K(`div`,$O,[H(t.$slots,`header-action`)])])):q(``,!0),e.descriptionAction?(U(),W(`div`,ek,[K(`div`,tk,[H(t.$slots,`description`)]),K(`div`,nk,[H(t.$slots,`description-action`)])])):q(``,!0),e.footerAction?(U(),W(`div`,rk,[K(`div`,ik,[H(t.$slots,`footer`)]),K(`div`,ak,[H(t.$slots,`footer-action`)])])):q(``,!0)],64)):H(t.$slots,`default`,{key:1})]),_:3},8,[`href`,`type`,`class`,`style`]))}}),sk=V({__name:`PvWidget`,setup(e){return(e,t)=>(U(),G(ok,{class:`pv-inset-square-16`},{default:z(()=>[H(e.$slots,`default`)]),_:3}))}}),ck={class:`pv-flex-vertical`,style:{"--flex-align":`flex-start`,"--flex-gap":`0.25rem`}},lk={key:0,class:`pv-flex`,style:{"--flex-gap":`0.25rem`}},uk={class:`pv-text-body-sm`},dk={key:1,class:`pv-text-body-sm pv-text-tertiary`},fk={key:2,class:`pv-heading-2`},pk={key:3,class:`pv-text-body-md pv-text-secondary pv-text-subdued`},mk=vd(V({__name:`PvInsightCard`,props:{icon:{default:`ai`,type:String},insight:{type:String},upperLabel:{type:String},title:{type:String},description:{type:String},showButton:{type:Boolean,default:!1},interactive:{type:Boolean,default:!1}},emits:[`click`,`icon-click`],setup(e){let t=e,n=Z(()=>t.icon||t.insight);return(t,r)=>(U(),G(ok,{variant:`secondary`,interactive:e.interactive,onClick:r[1]||=e=>t.$emit(`click`),class:`pv-relative`},{default:z(()=>[K(`div`,ck,[n.value?(U(),W(`div`,lk,[e.icon?(U(),G(hd,{key:0,style:{color:`#218c88`},name:e.icon,size:12},null,8,[`name`])):q(``,!0),K(`span`,uk,I(e.insight),1)])):q(``,!0),e.upperLabel?(U(),W(`span`,dk,I(e.upperLabel),1)):q(``,!0),e.title?(U(),W(`span`,fk,I(e.title),1)):q(``,!0),e.description?(U(),W(`span`,pk,I(e.description),1)):q(``,!0)]),e.showButton?(U(),G(Sd,{key:0,"left-icon":`new-tab`,ariaLabel:`Open in new tab`,variant:`ghost`,size:`md`,class:`pv-insight-button`,onClick:r[0]||=Ju(e=>t.$emit(`icon-click`),[`stop`])})):q(``,!0)]),_:1},8,[`interactive`]))}}),[[`styles`,[`.pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}`]],[`__scopeId`,`data-v-c1185c07`]]),hk=vd(V({__name:`PvExpandableContent`,props:{lines:{default:4,type:Number},size:{default:`md`,type:String},variant:{default:`primary`,type:String},defaultOpen:{type:Boolean,default:!1}},setup(e){let t={none:`0`,xs:`4px`,sm:`8px`,md:`12px`,lg:`16px`},n=e,r=L(null),i=L(n.defaultOpen),a=L(!0),o=()=>{i.value=!i.value},s=()=>{let e=r.value;if(!e||e.offsetWidth===0&&e.scrollHeight===0)return;let t=Number.parseFloat(window.getComputedStyle(e).lineHeight);!Number.isFinite(t)||t<=0||(a.value=e.scrollHeight>t*n.lines+1)};Fs(()=>{s(),document.fonts?.ready.then(s)}),B(()=>n.lines,s),hh(r,s),dh(r,s,{characterData:!0,childList:!0,subtree:!0});let c=Z(()=>a.value&&!i.value),l=Z(()=>({"--lines":c.value?n.lines:`none`,"max-height":c.value?`calc(${n.lines} * 1lh)`:`100vh`}));return(n,s)=>(U(),W(`div`,{class:b([`pv-inset-square expandable-content`,{"pv-surface-accent":e.variant===`ghost`}]),style:_({"--inset-size":t[e.size]})},[K(`p`,{ref_key:`contentRef`,ref:r,class:b([`pv-line-clamp pv-text-body-md`,{"pv-stack-8":a.value}]),style:_(l.value)},[H(n.$slots,`default`,{},void 0,!0)],6),a.value?(U(),G(Sd,{key:0,label:i.value?`Show Less`:`Show More`,variant:`ghost`,size:`md`,onClick:o,"left-icon":i.value?`chevron-up`:`chevron-down`},null,8,[`label`,`left-icon`])):q(``,!0)],6))}}),[[`styles`,[`.expandable-content[data-v-fc5fc7e0]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-fc5fc7e0]{transition:max-height .3s ease-in-out}`]],[`__scopeId`,`data-v-fc5fc7e0`]]),gk=[`data-style`],_k=V({__name:`PvActionBar`,props:{variant:{default:`white`,type:String}},setup(e){return(t,n)=>(U(),W(`div`,{class:`pv-action-bar-container`,"data-style":e.variant===`white`?`white`:void 0},[H(t.$slots,`default`)],8,gk))}});function vk(e){Object.getOwnPropertySymbols(e).forEach(t=>{KM[t]=e[t]})}function yk(e,t=``){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:ZM}}function bk(e,t,n,r,i,a,o,s=!1,c=!1,l=!1,u=ZM){return e&&(s?(e.helper(fM),e.helper(Rk(e.inSSR,l))):e.helper(Lk(e.inSSR,l)),o&&e.helper(wM)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:o,isBlock:s,disableTracking:c,isComponent:l,loc:u}}function xk(e,t=ZM){return{type:17,loc:t,elements:e}}function Sk(e,t=ZM){return{type:15,loc:t,properties:e}}function Ck(e,t){return{type:16,loc:ZM,key:F(e)?wk(e,!0):e,value:t}}function wk(e,t=!1,n=ZM,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Tk(e,t){return{type:5,loc:t,content:F(e)?wk(e,!1,t):e}}function Ek(e,t=ZM){return{type:8,loc:t,children:e}}function Dk(e,t=[],n=ZM){return{type:14,loc:n,callee:e,arguments:t}}function Ok(e,t=void 0,n=!1,r=!1,i=ZM){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function kk(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:ZM}}function Ak(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:ZM}}function jk(e){return{type:21,body:e,loc:ZM}}function Mk(e){return{type:22,elements:e,loc:ZM}}function Nk(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:ZM}}function Pk(e,t){return{type:24,left:e,right:t,loc:ZM}}function Fk(e){return{type:25,expressions:e,loc:ZM}}function Ik(e){return{type:26,returns:e,loc:ZM}}function Lk(e,t){return e||t?hM:gM}function Rk(e,t){return e||t?pM:mM}function zk(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Lk(r,e.isComponent)),t(fM),t(Rk(r,e.isComponent)))}function Bk(e){return e>=97&&e<=122||e>=65&&e<=90}function Vk(e){return e===32||e===10||e===9||e===12||e===13}function Hk(e){return e===47||e===62||Vk(e)}function Uk(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function Wk(e,{compatConfig:t}){let n=t&&t[e];return e===`MODE`?n||3:n}function Gk(e,t){let n=Wk(`MODE`,t),r=Wk(e,t);return n===3?r===!0:r!==!1}function Kk(e,t,n,...r){return Gk(e,t)}function qk(e,t,n,...r){if(Wk(e,t)===`suppress-warning`)return;let{message:i,link:a}=rN[e],o=`(deprecation ${e}) ${typeof i==`function`?i(...r):i}${a?`
|
|
1532
|
+
`,classes:{root:function(e){var t=e.props;return[`p-skeleton p-component`,{"p-skeleton-circle":t.shape===`circle`,"p-skeleton-animation-none":t.animation===`none`}]}},inlineStyles:{root:{position:`relative`}}}),MO={name:`BaseSkeleton`,extends:qx,props:{shape:{type:String,default:`rectangle`},size:{type:String,default:null},width:{type:String,default:`100%`},height:{type:String,default:`1rem`},borderRadius:{type:String,default:null},animation:{type:String,default:`wave`}},style:jO,provide:function(){return{$pcSkeleton:this,$parentInstance:this}}};function NO(e){"@babel/helpers - typeof";return NO=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},NO(e)}function PO(e,t,n){return(t=FO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FO(e){var t=IO(e,`string`);return NO(t)==`symbol`?t:t+``}function IO(e,t){if(NO(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(NO(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var LO={name:`Skeleton`,extends:MO,inheritAttrs:!1,computed:{containerStyle:function(){return this.size?{width:this.size,height:this.size,borderRadius:this.borderRadius}:{width:this.width,height:this.height,borderRadius:this.borderRadius}},dataP:function(){return ly(PO({},this.shape,this.shape))}}},RO=[`data-p`];function zO(e,t,n,r,i,a){return U(),W(`div`,J({class:e.cx(`root`),style:[e.sx(`root`),a.containerStyle],"aria-hidden":`true`},e.ptmi(`root`),{"data-p":a.dataP}),null,16,RO)}LO.render=zO;var BO=V({__name:`PvSkeleton`,props:{size:{default:`md`,type:String},variant:{default:`rectangle`,type:String},width:{type:String},height:{type:String}},setup(e){let t={xs:`0.75rem`,sm:`1rem`,md:`1.25rem`,lg:`1.5rem`,xl:`2rem`},n=e,r=Z(()=>n.variant===`square`||n.variant===`circle`),i=Z(()=>n.height??t[n.size]),a=Z(()=>n.width??(r.value?t[n.size]:`100%`)),o=Z(()=>n.variant===`circle`?`circle`:`rectangle`);return(e,t)=>(U(),G(R(LO),{"data-testid":`pv-skeleton`,shape:o.value,height:i.value,width:a.value},null,8,[`shape`,`height`,`width`]))}}),VO={class:`pv-stack-8`},HO={class:`pv-input-file`},UO=[`id`,`accept`,`disabled`,`multiple`],WO=[`for`],GO={key:0,class:`pv-stack-8`},KO={class:`pv-flex-item pv-truncate pv-text-body-sm`},qO=V({__name:`PvFileInput`,props:na({helperText:{type:String},accept:{type:String},disabled:{type:Boolean},multiple:{type:Boolean,default:!1},showSelectedFile:{type:Boolean,default:!0},confirmButtonVariant:{default:`primary`,type:String},destructiveButtonVariant:{default:`destructive`,type:String}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:na([`select-file`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=ba(e,`modelValue`),a=mi(),o=e=>{let t=e.target,n=Array.from(t.files??[]);t.value=``,n.length&&(i.value=[...i.value,...n],n.forEach(e=>r(`select-file`,e)))},s=e=>{i.value=i.value.filter(t=>t!==e)},c=Z(()=>!n.showSelectedFile||i.value.length===0?n.helperText:i.value.length===1?i.value[0].name:`${i.value.length} files selected`);return(t,n)=>(U(),W(`div`,VO,[K(`div`,HO,[K(`input`,{id:R(a),type:`file`,name:`file`,accept:e.accept,disabled:e.disabled,multiple:e.multiple,onChange:o},null,40,UO),K(`label`,{for:R(a),class:`pv-label`},[K(`span`,{class:b([`pv-button-${e.confirmButtonVariant}`,`pv-button-large`])},`Choose File`,2)],8,WO),K(`p`,{class:b([`pv-text-body-sm`,e.showSelectedFile&&i.value.length?`pv-flex-item pv-truncate`:`pv-text-subdued`])},I(c.value),3),e.showSelectedFile&&i.value.length===1?(U(),G(Sd,{key:0,"left-icon":`trash`,variant:e.destructiveButtonVariant,size:`md`,"aria-label":`Remove file`,onClick:n[0]||=e=>s(i.value[0])},null,8,[`variant`])):q(``,!0)]),e.showSelectedFile&&i.value.length>1?(U(),W(`ul`,GO,[(U(!0),W(Y,null,Bi(i.value,t=>(U(),W(`li`,{key:t.name,class:`pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between pv-inset-square`},[K(`p`,KO,I(t.name),1),X(Sd,{"left-icon":`trash`,variant:e.destructiveButtonVariant,size:`md`,"aria-label":`Remove file`,onClick:e=>s(t)},null,8,[`variant`,`onClick`])]))),128))])):q(``,!0)]))}}),JO=[`data-rating`],YO=[`value`],XO=V({__name:`PvRating`,props:{variant:{default:`dot`,type:null},value:{type:Number},size:{default:20,type:null}},setup(e){let t=e,n=Z(()=>t.variant===`dot`?`dot`:void 0);return(t,r)=>(U(),W(`div`,{class:`pv-rating`,"data-testid":`pv-rating`,style:_({"--height":`${e.size}px`}),"data-rating":n.value},[K(`meter`,{id:`rating`,min:`0`,max:`5`,value:e.value},`4.0 stars`,8,YO)],12,JO))}}),ZO={key:0,class:`pv-flex pv-full-width`},QO={class:`pv-flex-item pv-truncate`},$O={class:`pv-card-hover-action__action pv-flex`},ek={key:1,class:`pv-flex pv-full-width`},tk={class:`pv-flex-item pv-truncate`},nk={class:`pv-card-hover-action__action pv-flex`},rk={key:2,class:`pv-flex pv-full-width`},ik={class:`pv-flex-item pv-truncate`},ak={class:`pv-card-hover-action__action pv-flex`},ok=V({__name:`PvCard`,props:{href:{type:String},variant:{default:`primary`,type:String},interactive:{type:Boolean,default:!1},headerAction:{type:Boolean,default:!1},descriptionAction:{type:Boolean,default:!1},footerAction:{type:Boolean,default:!1}},setup(e){let t=e,n=Z(()=>t.headerAction||t.descriptionAction||t.footerAction),r=Z(()=>t.href?`a`:t.interactive?`button`:`div`),i=Z(()=>!t.href&&t.interactive?`button`:void 0),a=Z(()=>`pv-card pv-inset-square-8 ${n.value?`pv-flex-vertical`:`pv-inline-block`}`);return(t,o)=>(U(),G(Ii(r.value),{href:e.href,type:i.value,class:b([a.value,{"pv-card-secondary":e.variant===`secondary`&&!n.value,"pv-card-hover-action":n.value,"pv-card-hover-action-secondary":n.value&&e.variant===`secondary`}]),style:_(n.value?{"--flex-align":`flex-start`}:void 0),"data-testid":`pv-card`},{default:z(()=>[n.value?(U(),W(Y,{key:0},[e.headerAction?(U(),W(`div`,ZO,[K(`div`,QO,[H(t.$slots,`header`)]),K(`div`,$O,[H(t.$slots,`header-action`)])])):q(``,!0),e.descriptionAction?(U(),W(`div`,ek,[K(`div`,tk,[H(t.$slots,`description`)]),K(`div`,nk,[H(t.$slots,`description-action`)])])):q(``,!0),e.footerAction?(U(),W(`div`,rk,[K(`div`,ik,[H(t.$slots,`footer`)]),K(`div`,ak,[H(t.$slots,`footer-action`)])])):q(``,!0)],64)):H(t.$slots,`default`,{key:1})]),_:3},8,[`href`,`type`,`class`,`style`]))}}),sk=V({__name:`PvWidget`,setup(e){return(e,t)=>(U(),G(ok,{class:`pv-inset-square-16`},{default:z(()=>[H(e.$slots,`default`)]),_:3}))}}),ck={class:`pv-flex-vertical`,style:{"--flex-align":`flex-start`,"--flex-gap":`0.25rem`}},lk={key:0,class:`pv-flex`,style:{"--flex-gap":`0.25rem`}},uk={class:`pv-text-body-sm`},dk={key:1,class:`pv-text-body-sm pv-text-tertiary`},fk={key:2,class:`pv-heading-2`},pk={key:3,class:`pv-text-body-md pv-text-secondary pv-text-subdued`},mk=vd(V({__name:`PvInsightCard`,props:{icon:{default:`ai`,type:String},insight:{type:String},upperLabel:{type:String},title:{type:String},description:{type:String},showButton:{type:Boolean,default:!1},interactive:{type:Boolean,default:!1}},emits:[`click`,`icon-click`],setup(e){let t=e,n=Z(()=>t.icon||t.insight);return(t,r)=>(U(),G(ok,{variant:`secondary`,interactive:e.interactive,onClick:r[1]||=e=>t.$emit(`click`),class:`pv-relative`},{default:z(()=>[K(`div`,ck,[n.value?(U(),W(`div`,lk,[e.icon?(U(),G(hd,{key:0,style:{color:`#218c88`},name:e.icon,size:12},null,8,[`name`])):q(``,!0),K(`span`,uk,I(e.insight),1)])):q(``,!0),e.upperLabel?(U(),W(`span`,dk,I(e.upperLabel),1)):q(``,!0),e.title?(U(),W(`span`,fk,I(e.title),1)):q(``,!0),e.description?(U(),W(`span`,pk,I(e.description),1)):q(``,!0)]),e.showButton?(U(),G(Sd,{key:0,"left-icon":`new-tab`,ariaLabel:`Open in new tab`,variant:`ghost`,size:`md`,class:`pv-insight-button`,onClick:r[0]||=Ju(e=>t.$emit(`icon-click`),[`stop`])})):q(``,!0)]),_:1},8,[`interactive`]))}}),[[`styles`,[`.pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}`]],[`__scopeId`,`data-v-c1185c07`]]),hk=vd(V({__name:`PvExpandableContent`,props:{lines:{default:4,type:Number},size:{default:`md`,type:String},variant:{default:`primary`,type:String},defaultOpen:{type:Boolean,default:!1}},setup(e){let t={none:`0`,xs:`4px`,sm:`8px`,md:`12px`,lg:`16px`},n=e,r=L(null),i=L(n.defaultOpen),a=L(!0),o=()=>{i.value=!i.value},s=()=>{let e=r.value;if(!e||e.offsetWidth===0&&e.scrollHeight===0)return;let t=Number.parseFloat(window.getComputedStyle(e).lineHeight);!Number.isFinite(t)||t<=0||(a.value=e.scrollHeight>t*n.lines+1)};Fs(()=>{s(),document.fonts?.ready.then(s)}),B(()=>n.lines,s),hh(r,s),dh(r,s,{characterData:!0,childList:!0,subtree:!0});let c=Z(()=>a.value&&!i.value),l=Z(()=>({"--lines":c.value?n.lines:`none`,"max-height":c.value?`calc(${n.lines} * 1lh)`:`100vh`}));return(n,s)=>(U(),W(`div`,{class:b([`pv-inset-square expandable-content`,{"pv-surface-accent":e.variant===`ghost`}]),style:_({"--inset-size":t[e.size]})},[K(`p`,{ref_key:`contentRef`,ref:r,class:b([`pv-line-clamp pv-text-body-md`,{"pv-stack-8":a.value}]),style:_(l.value)},[H(n.$slots,`default`,{},void 0,!0)],6),a.value?(U(),G(Sd,{key:0,label:i.value?`Show Less`:`Show More`,variant:`ghost`,size:`md`,onClick:o,"left-icon":i.value?`chevron-up`:`chevron-down`},null,8,[`label`,`left-icon`])):q(``,!0)],6))}}),[[`styles`,[`.expandable-content[data-v-fc5fc7e0]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-fc5fc7e0]{transition:max-height .3s ease-in-out}`]],[`__scopeId`,`data-v-fc5fc7e0`]]),gk=[`data-style`],_k=V({__name:`PvActionBar`,props:{variant:{default:`white`,type:String}},setup(e){return(t,n)=>(U(),W(`div`,{class:`pv-action-bar-container`,"data-style":e.variant===`white`?`white`:void 0},[H(t.$slots,`default`)],8,gk))}});function vk(e){Object.getOwnPropertySymbols(e).forEach(t=>{KM[t]=e[t]})}function yk(e,t=``){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:ZM}}function bk(e,t,n,r,i,a,o,s=!1,c=!1,l=!1,u=ZM){return e&&(s?(e.helper(fM),e.helper(Rk(e.inSSR,l))):e.helper(Lk(e.inSSR,l)),o&&e.helper(wM)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:o,isBlock:s,disableTracking:c,isComponent:l,loc:u}}function xk(e,t=ZM){return{type:17,loc:t,elements:e}}function Sk(e,t=ZM){return{type:15,loc:t,properties:e}}function Ck(e,t){return{type:16,loc:ZM,key:F(e)?wk(e,!0):e,value:t}}function wk(e,t=!1,n=ZM,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Tk(e,t){return{type:5,loc:t,content:F(e)?wk(e,!1,t):e}}function Ek(e,t=ZM){return{type:8,loc:t,children:e}}function Dk(e,t=[],n=ZM){return{type:14,loc:n,callee:e,arguments:t}}function Ok(e,t=void 0,n=!1,r=!1,i=ZM){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function kk(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:ZM}}function Ak(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:ZM}}function jk(e){return{type:21,body:e,loc:ZM}}function Mk(e){return{type:22,elements:e,loc:ZM}}function Nk(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:ZM}}function Pk(e,t){return{type:24,left:e,right:t,loc:ZM}}function Fk(e){return{type:25,expressions:e,loc:ZM}}function Ik(e){return{type:26,returns:e,loc:ZM}}function Lk(e,t){return e||t?hM:gM}function Rk(e,t){return e||t?pM:mM}function zk(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Lk(r,e.isComponent)),t(fM),t(Rk(r,e.isComponent)))}function Bk(e){return e>=97&&e<=122||e>=65&&e<=90}function Vk(e){return e===32||e===10||e===9||e===12||e===13}function Hk(e){return e===47||e===62||Vk(e)}function Uk(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function Wk(e,{compatConfig:t}){let n=t&&t[e];return e===`MODE`?n||3:n}function Gk(e,t){let n=Wk(`MODE`,t),r=Wk(e,t);return n===3?r===!0:r!==!1}function Kk(e,t,n,...r){return Gk(e,t)}function qk(e,t,n,...r){if(Wk(e,t)===`suppress-warning`)return;let{message:i,link:a}=rN[e],o=`(deprecation ${e}) ${typeof i==`function`?i(...r):i}${a?`
|
|
1533
1533
|
Details: ${a}`:``}`,s=SyntaxError(o);s.code=e,n&&(s.loc=n),t.onWarn(s)}function Jk(e){throw e}function Yk(e){}function Xk(e,t,n,r){let i=`https://vuejs.org/error-reference/#compiler-${e}`,a=SyntaxError(String(i));return a.code=e,a.loc=t,a}function Zk(e,t,n=!1,r=[],i=Object.create(null)){}function Qk(e,t,n){return!1}function $k(e,t){if(e&&(e.type===`ObjectProperty`||e.type===`ArrayPattern`)){let e=t.length;for(;e--;){let n=t[e];if(n.type===`AssignmentExpression`)return!0;if(n.type!==`ObjectProperty`&&!n.type.endsWith(`Pattern`))break}}return!1}function eA(e){let t=e.length;for(;t--;){let n=e[t];if(n.type===`NewExpression`)return!0;if(n.type!==`MemberExpression`)break}return!1}function tA(e,t){for(let n of e.params)for(let e of oA(n))t(e)}function nA(e,t){let n=e.type===`SwitchCase`?e.consequent:e.body;for(let e of n)if(e.type===`VariableDeclaration`){if(e.declare)continue;for(let n of e.declarations)for(let e of oA(n.id))t(e)}else if(e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`){if(e.declare||!e.id)continue;t(e.id)}else rA(e)?iA(e,!0,t):e.type===`SwitchStatement`&&aA(e,!0,t)}function rA(e){return e.type===`ForOfStatement`||e.type===`ForInStatement`||e.type===`ForStatement`}function iA(e,t,n){let r=e.type===`ForStatement`?e.init:e.left;if(r&&r.type===`VariableDeclaration`&&(r.kind===`var`?t:!t))for(let e of r.declarations)for(let t of oA(e.id))n(t)}function aA(e,t,n){for(let r of e.cases){for(let e of r.consequent)if(e.type===`VariableDeclaration`&&(e.kind===`var`?t:!t))for(let t of e.declarations)for(let e of oA(t.id))n(e);nA(r,n)}}function oA(e,t=[]){switch(e.type){case`Identifier`:t.push(e);break;case`MemberExpression`:let n=e;for(;n.type===`MemberExpression`;)n=n.object;t.push(n);break;case`ObjectPattern`:for(let n of e.properties)n.type===`RestElement`?oA(n.argument,t):oA(n.value,t);break;case`ArrayPattern`:e.elements.forEach(e=>{e&&oA(e,t)});break;case`RestElement`:oA(e.argument,t);break;case`AssignmentPattern`:oA(e.left,t);break}return t}function sA(e){return lN.includes(e.type)?sA(e.expression):e}function cA(e){switch(e){case`Teleport`:case`teleport`:return cM;case`Suspense`:case`suspense`:return lM;case`KeepAlive`:case`keep-alive`:return uM;case`BaseTransition`:case`base-transition`:return dM}}function lA(e,t,n=t.length){return uA({offset:e.offset,line:e.line,column:e.column},t,n)}function uA(e,t,n=t.length){let r=0,i=-1;for(let e=0;e<n;e++)t.charCodeAt(e)===10&&(r++,i=e);return e.offset+=n,e.line+=r,e.column=i===-1?e.column+n:n-i,e}function dA(e,t){if(!e)throw Error(t||`unexpected compiler condition`)}function fA(e,t,n=!1){for(let r=0;r<e.props.length;r++){let i=e.props[r];if(i.type===7&&(n||i.exp)&&(F(t)?i.name===t:t.test(i.name)))return i}}function pA(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){let a=e.props[i];if(a.type===6){if(n)continue;if(a.name===t&&(a.value||r))return a}else if(a.name===`bind`&&(a.exp||r)&&mA(a.arg,t))return a}}function mA(e,t){return!!(e&&uN(e)&&e.content===t)}function hA(e){return e.props.some(e=>e.type===7&&e.name===`bind`&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function gA(e){return e.type===5||e.type===2}function _A(e){return e.type===7&&e.name===`pre`}function vA(e){return e.type===7&&e.name===`slot`}function yA(e){return e.type===1&&e.tagType===3}function bA(e){return e.type===1&&e.tagType===2}function xA(e,t=[]){if(e&&!F(e)&&e.type===14){let n=e.callee;if(!F(n)&&wN.has(n))return xA(e.arguments[0],t.concat(e))}return[e,t]}function SA(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],a=[],o;if(i&&!F(i)&&i.type===14){let e=xA(i);i=e[0],a=e[1],o=a[a.length-1]}if(i==null||F(i))r=Sk([t]);else if(i.type===14){let e=i.arguments[0];!F(e)&&e.type===15?CA(t,e)||e.properties.unshift(t):i.callee===PM?r=Dk(n.helper(kM),[Sk([t]),i]):i.arguments.unshift(Sk([t])),!r&&(r=i)}else i.type===15?(CA(t,i)||i.properties.unshift(t),r=i):(r=Dk(n.helper(kM),[Sk([t]),i]),o&&o.callee===NM&&(o=a[a.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function CA(e,t){let n=!1;if(e.key.type===4){let r=e.key.content;n=t.properties.some(e=>e.key.type===4&&e.key.content===r)}return n}function wA(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>t===`-`?`_`:e.charCodeAt(n).toString())}`}function TA(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){let r=e.props[n];if(r.type===7&&(TA(r.arg,t)||TA(r.exp,t)))return!0}return e.children.some(e=>TA(e,t));case 11:return TA(e.source,t)?!0:e.children.some(e=>TA(e,t));case 9:return e.branches.some(e=>TA(e,t));case 10:return TA(e.condition,t)?!0:e.children.some(e=>TA(e,t));case 4:return!e.isStatic&&fN(e.content)&&!!t[e.content];case 8:return e.children.some(e=>me(e)&&TA(e,t));case 5:case 12:return TA(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function EA(e){return e.type===14&&e.callee===WM?e.arguments[1].returns:e}function DA(e){for(let t=0;t<e.length;t++)if(!Vk(e.charCodeAt(t)))return!1;return!0}function OA(e){return e.type===2&&DA(e.content)||e.type===12&&OA(e.content)}function kA(e){return e.type===3||OA(e)}function AA(e){let t=e.loc,n=e.content,r=n.match(TN);if(!r)return;let[,i,a]=r,o=(e,n,r=!1)=>{let i=t.start.offset+n;return JA(e,!1,WA(i,i+e.length),0,+!!r)},s={source:o(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1},c=i.trim().replace(VN,``).trim(),l=i.indexOf(c),u=c.match(BN);if(u){c=c.replace(BN,``).trim();let e=u[1].trim(),t;if(e&&(t=n.indexOf(e,l+c.length),s.key=o(e,t,!0)),u[2]){let r=u[2].trim();r&&(s.index=o(r,n.indexOf(r,s.key?t+e.length:l+c.length),!0))}}return c&&(s.value=o(c,l,!0)),s}function jA(e,t){return kN.slice(e,t)}function MA(e){zN.inSFCRoot&&(AN.innerLoc=WA(e+1,e+1)),UA(AN);let{tag:t,ns:n}=AN;n===0&&DN.isPreTag(t)&&FN++,DN.isVoidTag(t)?PA(AN,e):(RN.unshift(AN),(n===1||n===2)&&(zN.inXML=!0)),AN=null}function NA(e,t,n){{let t=RN[0]&&RN[0].tag;t!==`script`&&t!==`style`&&e.includes(`&`)&&(e=DN.decodeEntities(e,!1))}let r=RN[0]||ON,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,KA(i.loc,n)):r.children.push({type:2,content:e,loc:WA(t,n)})}function PA(e,t,n=!1){n?KA(e.loc,IA(t,60)):KA(e.loc,FA(t,62)+1),zN.inSFCRoot&&(e.children.length?e.innerLoc.end=ae({},e.children[e.children.length-1].loc.end):e.innerLoc.end=ae({},e.innerLoc.start),e.innerLoc.source=jA(e.innerLoc.start.offset,e.innerLoc.end.offset));let{tag:r,ns:i,children:a}=e;if(IN||(r===`slot`?e.tagType=2:LA(e)?e.tagType=3:RA(e)&&(e.tagType=1)),zN.inRCDATA||(e.children=BA(a)),i===0&&DN.isIgnoreNewlineTag(r)){let e=a[0];e&&e.type===2&&(e.content=e.content.replace(/^\r?\n/,``))}i===0&&DN.isPreTag(r)&&FN--,LN===e&&(IN=zN.inVPre=!1,LN=null),zN.inXML&&(RN[0]?RN[0].ns:DN.ns)===0&&(zN.inXML=!1);{let t=e.props;if(!zN.inSFCRoot&&Gk(`COMPILER_NATIVE_TEMPLATE`,DN)&&e.tag===`template`&&!LA(e)){let t=RN[0]||ON,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}let n=t.find(e=>e.type===6&&e.name===`inline-template`);n&&Kk(`COMPILER_INLINE_TEMPLATE`,DN,n.loc)&&e.children.length&&(n.value={type:2,content:jA(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function FA(e,t){let n=e;for(;kN.charCodeAt(n)!==t&&n<kN.length-1;)n++;return n}function IA(e,t){let n=e;for(;kN.charCodeAt(n)!==t&&n>=0;)n--;return n}function LA({tag:e,props:t}){if(e===`template`){for(let e=0;e<t.length;e++)if(t[e].type===7&&HN.has(t[e].name))return!0}return!1}function RA({tag:e,props:t}){if(DN.isCustomElement(e))return!1;if(e===`component`||zA(e.charCodeAt(0))||cA(e)||DN.isBuiltInComponent&&DN.isBuiltInComponent(e)||DN.isNativeTag&&!DN.isNativeTag(e))return!0;for(let e=0;e<t.length;e++){let n=t[e];if(n.type===6){if(n.name===`is`&&n.value&&(n.value.content.startsWith(`vue:`)||Kk(`COMPILER_IS_ON_ELEMENT`,DN,n.loc)))return!0}else if(n.name===`bind`&&mA(n.arg,`is`)&&Kk(`COMPILER_IS_ON_ELEMENT`,DN,n.loc))return!0}return!1}function zA(e){return e>64&&e<91}function BA(e){let t=DN.whitespace!==`preserve`,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(i.type===2)if(FN)i.content=i.content.replace(UN,`
|
|
1534
1534
|
`);else if(DA(i.content)){let a=e[r-1]&&e[r-1].type,o=e[r+1]&&e[r+1].type;!a||!o||t&&(a===3&&(o===3||o===1)||a===1&&(o===3||o===1&&VA(i.content)))?(n=!0,e[r]=null):i.content=` `}else t&&(i.content=HA(i.content))}return n?e.filter(Boolean):e}function VA(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function HA(e){let t=``,n=!1;for(let r=0;r<e.length;r++)Vk(e.charCodeAt(r))?n||=(t+=` `,!0):(t+=e[r],n=!1);return t}function UA(e){(RN[0]||ON).children.push(e)}function WA(e,t){return{start:zN.getPos(e),end:t==null?t:zN.getPos(t),source:t==null?t:jA(e,t)}}function GA(e){return WA(e.start.offset,e.end.offset)}function KA(e,t){e.end=zN.getPos(t),e.source=jA(e.start.offset,t)}function qA(e){let t={type:6,name:e.rawName,nameLoc:WA(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){let n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function JA(e,t=!1,n,r=0,i=0){return wk(e,t,n,r)}function YA(e,t,n){DN.onError(Xk(e,WA(t,t),void 0,n))}function XA(){zN.reset(),AN=null,jN=null,MN=``,NN=-1,PN=-1,RN.length=0}function ZA(e,t){if(XA(),kN=e,DN=ae({},EN),t){let e;for(e in t)t[e]!=null&&(DN[e]=t[e])}zN.mode=DN.parseMode===`html`?1:DN.parseMode===`sfc`?2:0,zN.inXML=DN.ns===1||DN.ns===2;let n=t&&t.delimiters;n&&(zN.delimiterOpen=Uk(n[0]),zN.delimiterClose=Uk(n[1]));let r=ON=yk([],e);return zN.parse(kN),r.loc=WA(0,e.length),r.children=BA(r.children),ON=null,r}function QA(e,t){ej(e,void 0,t,!!$A(e))}function $A(e){let t=e.children.filter(e=>e.type!==3);return t.length===1&&t[0].type===1&&!bA(t[0])?t[0]:null}function ej(e,t,n,r=!1,i=!1){let{children:a}=e,o=[];for(let t=0;t<a.length;t++){let s=a[t];if(s.type===1&&s.tagType===0){let e=r?0:tj(s,n);if(e>0){if(e>=2){s.codegenNode.patchFlag=-1,o.push(s);continue}}else{let e=s.codegenNode;if(e.type===13){let t=e.patchFlag;if((t===void 0||t===512||t===1)&&rj(s,n)>=2){let t=ij(s);t&&(e.props=n.hoist(t))}e.dynamicProps&&=n.hoist(e.dynamicProps)}}}else if(s.type===12&&(r?0:tj(s,n))>=2){s.codegenNode.type===14&&s.codegenNode.arguments.length>0&&s.codegenNode.arguments.push(`-1`),o.push(s);continue}if(s.type===1){let t=s.tagType===1;t&&n.scopes.vSlot++,ej(s,e,n,!1,i),t&&n.scopes.vSlot--}else if(s.type===11)ej(s,e,n,s.children.length===1,!0);else if(s.type===9)for(let t=0;t<s.branches.length;t++)ej(s.branches[t],e,n,s.branches[t].children.length===1,i)}let s=!1;if(o.length===a.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&N(e.codegenNode.children))e.codegenNode.children=c(xk(e.codegenNode.children)),s=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!N(e.codegenNode.children)&&e.codegenNode.children.type===15){let t=l(e.codegenNode,`default`);t&&(t.returns=c(xk(t.returns)),s=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!N(t.codegenNode.children)&&t.codegenNode.children.type===15){let n=fA(e,`slot`,!0),r=n&&n.arg&&l(t.codegenNode,n.arg);r&&(r.returns=c(xk(r.returns)),s=!0)}}if(!s)for(let e of o)e.codegenNode=n.cache(e.codegenNode);function c(e){let t=n.cache(e);return t.needArraySpread=!0,t}function l(e,t){if(e.children&&!N(e.children)&&e.children.type===15){let n=e.children.properties.find(e=>e.key===t||e.key.content===t);return n&&n.value}}o.length&&n.transformHoist&&n.transformHoist(a,n,e)}function tj(e,t){let{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;let r=n.get(e);if(r!==void 0)return r;let i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!==`svg`&&e.tag!==`foreignObject`&&e.tag!==`math`)return 0;if(i.patchFlag===void 0){let r=3,a=rj(e,t);if(a===0)return n.set(e,0),0;a<r&&(r=a);for(let i=0;i<e.children.length;i++){let a=tj(e.children[i],t);if(a===0)return n.set(e,0),0;a<r&&(r=a)}if(r>1)for(let i=0;i<e.props.length;i++){let a=e.props[i];if(a.type===7&&a.name===`bind`&&a.exp){let i=tj(a.exp,t);if(i===0)return n.set(e,0),0;i<r&&(r=i)}}if(i.isBlock){for(let t=0;t<e.props.length;t++)if(e.props[t].type===7)return n.set(e,0),0;t.removeHelper(fM),t.removeHelper(Rk(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Lk(t.inSSR,i.isComponent))}return n.set(e,r),r}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return tj(e.content,t);case 4:return e.constType;case 8:let a=3;for(let n=0;n<e.children.length;n++){let r=e.children[n];if(F(r)||pe(r))continue;let i=tj(r,t);if(i===0)return 0;i<a&&(a=i)}return a;case 20:return 2;default:return 0}}function nj(e,t){if(e.type===14&&!F(e.callee)&&WN.has(e.callee)){let n=e.arguments[0];if(n.type===4)return tj(n,t);if(n.type===14)return nj(n,t)}return 0}function rj(e,t){let n=3,r=ij(e);if(r&&r.type===15){let{properties:e}=r;for(let r=0;r<e.length;r++){let{key:i,value:a}=e[r],o=tj(i,t);if(o===0)return o;o<n&&(n=o);let s;if(s=a.type===4?tj(a,t):a.type===14?nj(a,t):0,s===0)return s;s<n&&(n=s)}}return n}function ij(e){let t=e.codegenNode;if(t.type===13)return t.props}function aj(e,{filename:t=``,prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:a=!1,nodeTransforms:o=[],directiveTransforms:s={},transformHoist:c=null,isBuiltInComponent:l=te,isCustomElement:u=te,expressionPlugins:d=[],scopeId:f=null,slotted:p=!0,ssr:m=!1,inSSR:h=!1,ssrCssVars:g=``,bindingMetadata:_=M,inline:v=!1,isTS:y=!1,onError:b=Jk,onWarn:x=Yk,compatConfig:S}){let C=t.replace(/\?.*$/,``).match(/([^/\\]+)\.\w+$/),w={filename:t,selfName:C&&Oe(Te(C[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:a,nodeTransforms:o,directiveTransforms:s,transformHoist:c,isBuiltInComponent:l,isCustomElement:u,expressionPlugins:d,scopeId:f,slotted:p,ssr:m,inSSR:h,ssrCssVars:g,bindingMetadata:_,inline:v,isTS:y,onError:b,onWarn:x,compatConfig:S,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){let t=w.helpers.get(e)||0;return w.helpers.set(e,t+1),e},removeHelper(e){let t=w.helpers.get(e);if(t){let n=t-1;n?w.helpers.set(e,n):w.helpers.delete(e)}},helperString(e){return`_${KM[w.helper(e)]}`},replaceNode(e){w.parent.children[w.childIndex]=w.currentNode=e},removeNode(e){let t=w.parent.children,n=e?t.indexOf(e):w.currentNode?w.childIndex:-1;!e||e===w.currentNode?(w.currentNode=null,w.onNodeRemoved()):w.childIndex>n&&(w.childIndex--,w.onNodeRemoved()),w.parent.children.splice(n,1)},onNodeRemoved:te,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){F(e)&&(e=wk(e)),w.hoists.push(e);let t=wk(`_hoisted_${w.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){let r=Ak(w.cached.length,e,t,n);return w.cached.push(r),r}};return w.filters=new Set,w}function oj(e,t){let n=aj(e,t);lj(e,n),t.hoistStatic&&QA(e,n),t.ssr||sj(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function sj(e,t){let{helper:n}=t,{children:r}=e;if(r.length===1){let n=$A(e);if(n&&n.codegenNode){let r=n.codegenNode;r.type===13&&zk(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else r.length>1&&(e.codegenNode=bk(t,n(sM),void 0,e.children,64,void 0,void 0,!0,void 0,!1))}function cj(e,t){let n=0,r=()=>{n--};for(;n<e.children.length;n++){let i=e.children[n];F(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,lj(i,t))}}function lj(e,t){t.currentNode=e;let{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){let a=n[i](e,t);if(a&&(N(a)?r.push(...a):r.push(a)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(_M);break;case 5:t.ssr||t.helper(OM);break;case 9:for(let n=0;n<e.branches.length;n++)lj(e.branches[n],t);break;case 10:case 11:case 1:case 0:cj(e,t);break}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function uj(e,t){let n=F(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(e.type===1){let{props:i}=e;if(e.tagType===3&&i.some(vA))return;let a=[];for(let o=0;o<i.length;o++){let s=i[o];if(s.type===7&&n(s.name)){i.splice(o,1),o--;let n=t(e,s,r);n&&a.push(n)}}return a}}}function dj(e,{mode:t=`function`,prefixIdentifiers:n=t===`module`,sourceMap:r=!1,filename:i=`template.vue.html`,scopeId:a=null,optimizeImports:o=!1,runtimeGlobalName:s=`Vue`,runtimeModuleName:c=`vue`,ssrRuntimeModuleName:l=`vue/server-renderer`,ssr:u=!1,isTS:d=!1,inSSR:f=!1}){let p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:a,optimizeImports:o,runtimeGlobalName:s,runtimeModuleName:c,ssrRuntimeModuleName:l,ssr:u,isTS:d,inSSR:f,source:e.source,code:``,column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${KM[e]}`},push(e,t=-2,n){p.code+=e},indent(){m(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:m(--p.indentLevel)},newline(){m(p.indentLevel)}};function m(e){p.push(`
|
|
1535
1535
|
`+` `.repeat(e),0)}return p}function fj(e,t={}){let n=dj(e,t);t.onContextCreated&&t.onContextCreated(n);let{mode:r,push:i,prefixIdentifiers:a,indent:o,deindent:s,newline:c,scopeId:l,ssr:u}=n,d=Array.from(e.helpers),f=d.length>0,p=!a&&r!==`module`;if(pj(e,n),i(`function ${u?`ssrRender`:`render`}(${(u?[`_ctx`,`_push`,`_parent`,`_attrs`]:[`_ctx`,`_cache`]).join(`, `)}) {`),o(),p&&(i(`with (_ctx) {`),o(),f&&(i(`const { ${d.map(KN).join(`, `)} } = _Vue
|