1"use strict";(self.rspackChunkvagaro_websitebuilder_consumer=self.rspackChunkvagaro_websitebuilder_consumer||[]).push([[181],{40820(s,r,e){e.r(r),e.d(r,{default:()=>i});var a=e(74848),l=e(96540);let i=({CurrentValue:s,MaxValue:r,Orientation:e="horizontal",Title:i,ShowPointsBody:o,BodyPosition:t="bottom",ShowPoints:n=!1,ColorVariant:g="default",MultiProgressData:d,Showlegend:c=!1,Size:m="regular",ProgressbarHeight:v,CustomColor:p})=>{let[h,u]=(0,l.useState)(!1),b=v?`progressbar-height-${v}`:"";(0,l.useEffect)(()=>{let s=window.matchMedia("(max-width: 767px)"),r=()=>u(s.matches);return r(),s.addEventListener("change",r),()=>s.removeEventListener("change",r)},[]);let x="vertical"===e||h&&n,j=Math.min(Math.max(s,0),r),y=n?r>1?(j-1)/(r-1)*100:0:j/r*100,N=()=>n&&o&&Array.isArray(o)?(0,a.jsx)("div",{className:`vg-progress-hr-bar-body-array ${t}`,children:o.map((s,r)=>(0,a.jsx)("div",{className:"vg-progress-bar-body-inline",children:"string"==typeof s.Body?(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:s.Body}}):s.Body},r))}):null,f=()=>(0,a.jsx)("div",{className:"vg-progress-bar-header-body",children:"string"==typeof i?(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:i}}):i});return"multiProgress"===g?(0,a.jsx)("div",{className:`vg-progress-bar ${b}`,children:"multiProgress"===g&&d&&0!==d.length?(0,a.jsxs)("div",{className:`vg-progress-bar-multi-progress ${m}`,children:["top"===t&&f(),(0,a.jsx)("div",{className:"vg-progress-bar-multi-progress-track",children:d.map((s,e)=>{let l=r>0?100*s.value/r:0;return(0,a.jsx)("span",{className:"vg-progress-bar-multi-progress-segment",style:{width:`${l}%`,backgroundColor:s.color||void 0}},e)})}),c&&(0,a.jsx)("div",{className:"vg-progress-bar-multi-progress-labels",children:d.map((s,r)=>(0,a.jsxs)("div",{className:"vg-progress-bar-multi-progress-label",children:[(0,a.jsx)("span",{className:"multi-progress-color-indicator",style:{backgroundColor:s.color||"#ccc"}}),(0,a.jsxs)("div",{className:"multi-progress-content",children:[(0,a.jsx)("span",{className:"multi-progress-title",children:s.title}),(0,a.jsx)("span",{className:"multi-progress-description",children:s.description})]})]},r))})]}):null}):x&&n?(0,a.jsx)("div",{className:"vg-progress-bar-vertical-inline",children:(0,a.jsxs)("div",{className:"vg-progress-bar-wrapper vertical points",children:[(0,a.jsx)("div",{className:"vg-progress-bar-track"}),(0,a.jsx)("div",{className:"vg-progress-bar-fill-line",style:{height:`${y}%`}}),(0,a.jsx)("div",{className:"vg-progress-points",children:Array.from({length:r},(r,e)=>(0,a.jsxs)("div",{className:`vg-progress-point ${e<s?"default"===g?"filled":"theme-filled":""}`,children:[(0,a.jsx)("span",{className:"vg-progress-dots"}),(0,a.jsx)("div",{className:"vg-progress-bar-body-inline",children:"string"==typeof o?.[e]?.Body?(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:o[e].Body}}):o?.[e]?.Body})]},e))})]})}):(0,a.jsxs)("div",{className:`vg-progress-bar ${b}`,children:["top"===t&&f(),n&&"top"===t&&N(),(0,a.jsx)("div",{className:`vg-progress-bar-wrapper ${x?"vertical":"horizontal"} ${n?"points":""}`,children:n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"vg-progress-bar-track"}),(0,a.jsx)("div",{className:`${"default"===g&&"vg-progress-bar-default-fill-line"} ${"theme"===g&&"vg-progress-bar-theme-fill-line"}`,style:{width:`${y}%`}}),(0,a.jsx)("div",{className:"vg-progress-points",children:Array.from({length:r},(r,e)=>(0,a.jsx)("div",{className:`vg-progress-point${e<s?" filled":""}${"theme"===g?" theme":""}`},e))})]}):(0,a.jsx)("div",{className:`vg-progress-bar-fill ${"theme"===g?" vg-progress-bar-varient":""} ${"flamingo"===g||"custom"===g?` vg-progress-bar-varient vg-progress-bar-varient-${g}`:""}`,style:{width:`${y}%`,backgroundColor:"custom"===g?p:void 0}})}),n&&"bottom"===t&&N(),"bottom"===t&&f()]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.