platformscode-new-react 0.0.46 → 0.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1037909,7 +1037909,7 @@ a:focus {
|
|
|
1037909
1037909
|
|
|
1037910
1037910
|
.flex-align-stretch {
|
|
1037911
1037911
|
align-items: stretch;
|
|
1037912
|
-
}`,Sa=Ea,si=k(class extends u{constructor(){super(),this.__registerHost(),this.handleClick=()=>{this.isCurrentMonth&&this.onSelect&&(console.log(this.date,"this.date"),this.onSelect(this.date))},this.handleAddPressed=n=>{n.currentTarget.classList.add("active")},this.handleRemovePressed=n=>{n.currentTarget.classList.remove("active")},this.date=void 0,this.isCurrentMonth=void 0,this.isSelected=void 0,this.isToday=void 0,this.midRange=!1,this.isFirstRangeChild=!1,this.isLastRangeChild=!1,this.onSelect=void 0}render(){let n="date-cell";return this.isCurrentMonth||(n+=" date-cell--not-current-month"),this.isSelected&&(n+=" date-cell--selected"),this.isToday&&(n+=" date-cell--today"),this.midRange&&(n+=" date-cell--mid-range"),this.isFirstRangeChild&&(n+=" date-cell--mid-range--first-child"),this.isLastRangeChild&&(n+=" date-cell--mid-range--last-child"),e("button",{key:"bcf76d259c0db42e62caab6d1e5e64962dd58b04",type:"button",class:n,onClick:this.handleClick,onMouseDown:this.handleAddPressed,onMouseUp:this.handleRemovePressed,onMouseOut:this.handleRemovePressed,disabled:!this.isCurrentMonth},e("div",{key:"a7920b28cfc58f80801a02e71822cadd6ee6853c",class:"date-cell__label"},e("span",{key:"490ab9fad29fc7465616538faccc1adcf17a48a9"},this.date.getDate())))}static get style(){return Sa}},[0,"date-cell",{date:[16],isCurrentMonth:[4,"is-current-month"],isSelected:[4,"is-selected"],isToday:[4,"is-today"],midRange:[4,"mid-range"],isFirstRangeChild:[4,"is-first-range-child"],isLastRangeChild:[4,"is-last-range-child"],onSelect:[16]}]);function ce(){if(typeof customElements>"u")return;["date-cell"].forEach(n=>{switch(n){case"date-cell":customElements.get(n)||customElements.define(n,si);break}})}const Da=si,Ma=ce,Ia=ct,Ba=st,Aa=lt,Pa=bt,di=k(class extends u{constructor(){super(),this.__registerHost(),this.breadcrumbClick=Y(this,"breadcrumbClick",7),this.breadcrumbItems=[],this.items="[]"}componentWillLoad(){this.handleItemsChange(this.items)}handleItemsChange(n){try{this.breadcrumbItems=this.renderItems(JSON.parse(n))}catch(o){console.error("Invalid JSON in items prop:",o)}}isEllipsisItem(n){return n.ellipsis===!0}renderItems(n){return n.length<=5?n:[n[0],{ellipsis:!0},...n.slice(-2)]}handleClick(n,o,i){i.disabled||this.breadcrumbClick.emit({e:n,link:o,item:i})}render(){return e("nav",{key:"d4d18da600325dd3c70481ed7520638e6a913cfa","aria-label":"breadcrumb"},e("ul",{key:"d43fe0f906498ccbf7f2fb41166a600b81e521bd",class:"breadcrumb"},this.breadcrumbItems.map((n,o)=>{if(this.isEllipsisItem(n))return e("li",{key:o,class:"breadcrumb-item ellipsis"},e("span",{class:"breadcrumb-icon"},e("dga-icon",{icon:"ArrowRight01Icon",variant:"stroke",type:"rounded"})),e("a",{href:"#",class:"link link--sm link--neutral"},"..."));const i=o===this.breadcrumbItems.length-1,h=o===0;return e("li",{key:o,class:{"breadcrumb-item":!0,active:i},"aria-current":i?"page":void 0},n.path&&!i?e(H,null,!h&&e("span",{class:"breadcrumb-icon"},e("dga-icon",{icon:"ArrowRight01Icon",variant:"stroke",type:"rounded"})),e("a",{onClick:a=>this.handleClick(a,n.path,n),class:{"link link--sm link--neutral":!0,"disabled-link":n.disabled},href:n.disabled?void 0:n.path,"aria-disabled":n.disabled?"true":"false"},e("span",{class:"link__label"},n.label))):e(H,null,e("span",{class:"breadcrumb-icon"},e("dga-icon",{icon:"ArrowRight01Icon",variant:"stroke",type:"rounded"})),e("a",{onClick:a=>this.handleClick(a,n.path,n),class:{"link link--sm link--neutral link--disabled":!0,"disabled-link":n.disabled},href:n.disabled?void 0:n.path,"aria-disabled":n.disabled?"true":"false"},e("span",{class:"link__label"},n.label))))})))}static get watchers(){return{items:["handleItemsChange"]}}},[0,"dga-breadcrumbs",{items:[1]},void 0,{items:["handleItemsChange"]}]);function Ta(){if(typeof customElements>"u")return;["dga-breadcrumbs","dga-icon"].forEach(n=>{switch(n){case"dga-breadcrumbs":customElements.get(n)||customElements.define(n,di);break;case"dga-icon":customElements.get(n)||E();break}})}const La=di,Oa=Ta,Fa=kt,Ha=Z,Ra=wt,Ua=vt,fi=k(class extends u{constructor(){super(),this.__registerHost(),this.getRealisticPath=n=>n.map((o,i)=>`${i===0?"M":"L"} ${o.x} ${o.y}`).join(" "),this.type="realistic",this.trend="positive",this.size="lg",this.showMarker=!1,this.data=[],this.lineColor=this.trend==="positive"?"#067647":"#B42318",this.fillColor=this.trend==="positive"?"#079455":"#D92D20",this.width=this.size==="lg"?328:128,this.height=64}getLinePath(){const n=this.getPoints();switch(this.type){case"realistic":return this.getRealisticPath(n);case"wavy":return this.getWavyPath(n);case"straight":return this.getStraightPath(n);case"layers":return this.getSmoothPath(n);default:return""}}getPoints(){return this.data.map((n,o)=>({x:o/(this.data.length-1)*this.width,y:this.height-n/Math.max(...this.data)*this.height}))}getSmoothPath(n){return n.reduce((o,i,h,a)=>{if(h===0)return`M ${i.x},${i.y}`;const d=a[h-1],f=(d.x+i.x)/2;return`${o} C ${f},${d.y} ${f},${i.y} ${i.x},${i.y}`},"")}getWavyPath(n){return n.reduce((o,i,h)=>h===0?`M ${i.x},${i.y}`:`${o} Q ${i.x-10},${i.y+10} ${i.x},${i.y}`,"")}getStraightPath(n){return n.reduce((o,i,h)=>h===0?`M ${i.x},${i.y}`:`${o} L ${i.x},${i.y}`,"")}render(){const n=this.getLinePath(),o=`${n} L 129 65 L 1 65 Z`;return e("svg",{key:"39037b1cb9e3ca4c7b62fbdc6bb7904ceeded3c8",width:"130",height:"66",viewBox:"0 0 130 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("mask",{key:"22be63443a51d139288b4af23eb6b6ed16837a0d",id:"mask0",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"128",height:"64"},e("rect",{key:"c0b3936e9cbd44e3756dffd5bbc2589d18c214bb",width:"128",height:"64",transform:"translate(1 1)",fill:"url(#paint0_linear)"})),e("g",{key:"20470a586985efdaca15adaa16e3cc619b43f553",mask:"url(#mask0)"},e("path",{key:"98b581ed2eda0abb363fa83fcea6b57d10f37298",opacity:"0.2",d:o,fill:"#079455"})),e("path",{key:"f099bea3c5b5033f4035178a80a665f1cf937966",d:n,stroke:"#067647","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{key:"0658128bc343d7403aeb898f472ab7f691601f12",opacity:"0.2"},e("rect",{key:"714241fa63193068cfbe6d271e60daff34e842d3",x:"76",y:"5",width:"20",height:"20",rx:"10",stroke:"#067647","stroke-width":"2"})),e("rect",{key:"0b60b92efd3ba6a69cc174c41ff98307909cbe0b",x:"81",y:"10",width:"10",height:"10",rx:"5",fill:"white"}),e("rect",{key:"c87dffa52229ce8a73c09e85e7be3820ba4d5780",x:"81",y:"10",width:"10",height:"10",rx:"5",stroke:"#067647","stroke-width":"2"}),e("defs",{key:"236058fd11c3ee879fe6dabf7211f0c2c0a21376"},e("linearGradient",{key:"38ee15538e4b8760e4bc4f6779388cac52ee6f8b",id:"paint0_linear",x1:"64",y1:"0",x2:"64",y2:"64",gradientUnits:"userSpaceOnUse"},e("stop",{key:"62e8463a554a7cc3bac6ad19dfb71a7e0eafcd34"}),e("stop",{key:"c0278ef166adc952e77849bb931ae10a1c254788",offset:"1","stop-opacity":"0"}))))}},[0,"dga-chart-v2",{type:[1],trend:[1],size:[1],showMarker:[4,"show-marker"],data:[16],lineColor:[32],fillColor:[32],width:[32],height:[32]}]);function li(){if(typeof customElements>"u")return;["dga-chart-v2"].forEach(n=>{switch(n){case"dga-chart-v2":customElements.get(n)||customElements.define(n,fi);break}})}const Za=fi,Xa=li,bi=k(class extends u{constructor(){super(),this.__registerHost(),this.type="realistic",this.trend="positive",this.size="lg",this.showMarker=!1,this.data=[],this.lineColor=this.trend==="positive"?"#067647":"#B42318",this.fillColor=this.trend==="positive"?"#079455":"#D92D20",this.width=this.size==="lg"?328:128,this.height=64}handleSizeChange(){this.width=this.size==="lg"?328:128}getLinePath(){const n=this.getPoints();switch(this.type){case"realistic":return this.getSmoothPath(n);case"wavy":return this.getWavyPath(n);case"straight":return this.getStraightPath(n);case"layers":return this.getSmoothPath(n);default:return""}}getPoints(){return this.data.map((n,o)=>({x:o/(this.data.length-1)*this.width,y:this.height-n/Math.max(...this.data)*this.height}))}getSmoothPath(n){return n.reduce((o,i,h,a)=>{if(h===0)return`M ${i.x},${i.y}`;const d=a[h-1],f=(d.x+i.x)/2;return`${o} C ${f},${d.y} ${f},${i.y} ${i.x},${i.y}`},"")}getWavyPath(n){return n.reduce((o,i,h)=>h===0?`M ${i.x},${i.y}`:`${o} Q ${i.x-10},${i.y+10} ${i.x},${i.y}`,"")}getStraightPath(n){return n.reduce((o,i,h)=>h===0?`M ${i.x},${i.y}`:`${o} L ${i.x},${i.y}`,"")}getAreaPath(){return`${this.getLinePath()} L ${this.width},${this.height} L 0,${this.height} Z`}render(){const n=this.getLinePath(),o=this.getAreaPath();return e("svg",{key:"51168bffbab106dfe9183604eb317cd03cfde81c",width:this.width,height:this.height,viewBox:`0 0 ${this.width} ${this.height}`},e("defs",{key:"a37231447b2151f29637d3989aa2e7b7d1429613"},e("linearGradient",{key:"51924102685dd737c4ee24a9e08aa11161a13a5b",id:"areaGradient",x1:"0",x2:"0",y1:"0",y2:"1"},e("stop",{key:"6cf06627f38f9905e52cc0bdc9a3e36be5940125",offset:"0%","stop-color":this.fillColor,"stop-opacity":"0.25"}),e("stop",{key:"3dd51645b79561f2d84b323f9cbb2ecff64d909c",offset:"100%","stop-color":this.fillColor,"stop-opacity":"0"}))),e("path",{key:"63241183cd329c4cc7a3df0e668705e2c84b21c6",d:o,fill:"url(#areaGradient)"}),e("path",{key:"b87ab96a65a7ed81f5e093376b897bd40caa1829",d:n,fill:"none",stroke:this.lineColor,"stroke-width":"2"}),this.showMarker&&this.getPoints().map(i=>e("circle",{cx:i.x,cy:i.y,r:"4",fill:"white",stroke:this.lineColor,"stroke-width":"2"})))}static get watchers(){return{size:["handleSizeChange"]}}},[0,"dga-chart",{type:[1],trend:[1],size:[1],showMarker:[4,"show-marker"],data:[16],lineColor:[32],fillColor:[32],width:[32],height:[32]},void 0,{size:["handleSizeChange"]}]);function se(){if(typeof customElements>"u")return;["dga-chart"].forEach(n=>{switch(n){case"dga-chart":customElements.get(n)||customElements.define(n,bi);break}})}const Ya=bi,Wa=se,Va=mt,Ga=dn,Ja=qt,Ka=_t,ui=k(class extends u{constructor(){super(),this.__registerHost(),this.icons={success:"hgi-solid hgi-sharp hgi-checkmark-circle-02",info:"hgi-solid hgi-sharp hgi-information-circle",neutral:"hgi-solid hgi-sharp hgi-information-circle",warning:"hgi-solid hgi-alert-02",critical:"hgi-solid hgi-alert-circle"},this.sizes={"200px":200,"160px":160,"120px":120,"80px":80,"64px":64},this.size="200px",this.text=void 0,this.variant="primary",this.icon=void 0,this.percentage=0,this.internalPercentage=void 0}updateInternalPercentage(){this.internalPercentage=this.variant==="success"?100:this.percentage}componentWillLoad(){this.updateInternalPercentage()}render(){const n=this.sizes[this.size]/10,o=(this.sizes[this.size]-n)/2,i=2*Math.PI*o,h=i*(1-this.internalPercentage/100);return e("div",{key:"ba807f5e917f0cc2ba71d707ce081e8e7304f06e",class:"circular-progress-bar","aria-size":this.size},e("div",{key:"2b9c815f693defd2a3de8e1cd8cd588d51109dbe",class:"circular-progress-bar__label"},this.variant==="success"&&this.icon&&e("i",{key:"be46062808e57e454012a4853aa1296a2f1156ca",class:`circular-progress-bar__label--icon ${this.icons[this.icon]}`}),this.variant!=="success"&&e("h4",{key:"d461cb92d3c937ba956ee2087b2a93e41a62a135",class:"circular-progress-bar__label--percentage"},this.internalPercentage,"%"),this.text&&e("h5",{key:"e2d3fd543e1cf2c867504a533b595da65c24d061",class:`circular-progress-bar__label--text ${this.variant}`},this.text)),e("svg",{key:"66aaee3b702afa094d9c90cf0b64aee6fb9fad9d",width:this.sizes[this.size],height:this.sizes[this.size],viewBox:`0 0 ${this.sizes[this.size]} ${this.sizes[this.size]}`},e("circle",{key:"215d48906fb5d53671edaad0f8d2955298cca8ac",class:"track",fill:"none",stroke:"#e6e6e6",r:o,cx:this.sizes[this.size]/2,cy:this.sizes[this.size]/2,"stroke-width":n}),e("circle",{key:"e5b30951fdaa97fc394bf88c0ba282c599018738",class:`tail tail--${this.variant}`,fill:"none",stroke:"currentColor",r:o,cx:this.sizes[this.size]/2,cy:this.sizes[this.size]/2,"stroke-width":n,"stroke-linecap":"round","stroke-dasharray":i,"stroke-dashoffset":h,transform:`rotate(-180 ${this.sizes[this.size]/2} ${this.sizes[this.size]/2})`,style:{transition:"stroke-dashoffset 0.5s ease"}})))}static get watchers(){return{percentage:["updateInternalPercentage"],variant:["updateInternalPercentage"]}}},[0,"dga-circular-progress-bar",{size:[1],text:[1],variant:[1],icon:[1],percentage:[2],internalPercentage:[32]},void 0,{percentage:["updateInternalPercentage"],variant:["updateInternalPercentage"]}]);function ki(){if(typeof customElements>"u")return;["dga-circular-progress-bar"].forEach(n=>{switch(n){case"dga-circular-progress-bar":customElements.get(n)||customElements.define(n,ui);break}})}const Qa=ui,Na=ki,nc=jt,ec=Ct,tc=Dt,oc=Mt,ic=Et,hc=St;var rc=function(t,n){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(o[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,i=Object.getOwnPropertySymbols(t);h<i.length;h++)n.indexOf(i[h])<0&&Object.prototype.propertyIsEnumerable.call(t,i[h])&&(o[i[h]]=t[i[h]]);return o};const pi=k(class extends u{constructor(){super(),this.__registerHost(),this.sortData=(n="up",o,i)=>{if(n==="up"){const h=[...this.data.sort((a,d)=>d[o]>a[o]?1:a[o]>d[o]?-1:0)];this.sortedData=h}else if(n==="down"){const h=[...this.data.sort((a,d)=>a[o]>d[o]?1:d[o]>a[o]?-1:0)];this.sortedData=h}this.cells[i].sort=n=="down"?"up":"down"},this.handleSelectedRowChanges=(n,o)=>{const i=[...this.data];i[o].selected=n,this.sortedData=i,this.getSelectedRows&&this.getSelectedRows({selectedRows:i.filter(h=>h.selected),currentSelectedRow:i[o],currentSelectedRowIndex:o})},this.selectAll=n=>{const o=[...this.data];o.forEach(i=>i.selected=n),this.sortedData=o,this.getSelectedRows&&this.getSelectedRows({selectedRows:o})},this.data=[{selected:!0},{selected:!0}],this.rowDivider=!0,this.showSelectCheckBox=!0,this.alternate=!0,this.cells=[{propertyName:"test",isFilter:!1,isSort:!1,title:"Test",type:"propertyName",colSpan:1},{propertyName:"test",isFilter:!1,isSort:!1,title:"Test",type:"propertyName",colSpan:1}],this.contained=!0,this.getSelectedRows=void 0,this.pressOnFilter=void 0,this.sortedData=[],this.direction=!1}componentDidLoad(){document.dir?document.dir==="rtl"?this.direction=!0:this.direction=!1:document.documentElement.lang?document.documentElement.lang==="ar"?this.direction=!0:this.direction=!1:this.direction=!1}componentDidUpdate(){const n=[...this.data.map(o=>(o.selected=!1,o))];this.sortedData=n}render(){return e("div",{key:"8102c7419b110f8541c80944a67bbb6986e2bbf3",class:`table-wrapper ${this.contained?"table-contained":""}`},e("table",{key:"910be24f644da2a4e0bfa7ba604decf11dfd2b13",class:` azm-table ${this.contained?"table-contained":""}`,style:{direction:this.direction?"rtl":"ltr"}},e("thead",{key:"272bfac2cd722962fbdde8c2bea338fbf9862216"},e("tr",{key:"29b4046121ac9a5d9c3f1fe2e65337a35dbb58ac",class:`${this.rowDivider?"row-divider":""}`},this.showSelectCheckBox&&e("th",{key:"5312173764fe8fd4b05168b3f02b14281e49dcdd",style:{width:"20px"}},e("dga-checkbox",{key:"f5bc122b104ba6e793d86e2c013f333fc56b1b73",showBorderOnFocusAndFocusOute:!1,value:"true",onChange:n=>this.selectAll(n.target.checked)})),this.cells.map((n,o)=>{var{sort:i,isSort:h,propertyName:a,type:d}=n,f=rc(n,["sort","isSort","propertyName","type"]);return e("th",{key:o},e("span",null,e("span",{class:"text"},f.title),e("span",{class:"icon-wrapper"},h&&i=="up"&&d=="propertyName"&&e("button",{class:"btn btn--sort btn--icon btn--md",onClick:()=>this.sortData("up",a,o)},e("dga-icon",{icon:"SortByUp02Icon"})),h&&(!i||i=="down")&&d=="propertyName"&&e("button",{class:"btn btn--sort btn--icon btn--md",onClick:()=>this.sortData("down",a,o)},e("dga-icon",{icon:"SortByDown02Icon"})),f.isFilter&&e("button",{class:"btn btn--sort btn--icon btn--md ",onClick:()=>this.pressOnFilter&&this.pressOnFilter(a)},e("dga-icon",{icon:"FilterIcon"})))))}))),e("tbody",{key:"c0115157925e52ebb2b54d92c6bf670ad0e4da93"},this.sortedData.map((n,o)=>e("tr",{class:`${this.rowDivider?"row-divider":""} ${this.alternate?"alternate":""} ${n.selected?"row-selected":""} `,key:o},this.showSelectCheckBox&&e("td",null,e("dga-checkbox",{name:o+"checkboxSelection",value:n.selected,id:o+"checkboxSelection",showBorderOnFocusAndFocusOute:!1,onChange:i=>this.handleSelectedRowChanges(i.target.checked,o),checked:n.selected})))))))}},[0,"dga-data-table",{data:[16],rowDivider:[4,"row-divider"],showSelectCheckBox:[4,"show-select-check-box"],alternate:[4],cells:[16],contained:[4],getSelectedRows:[8,"get-selected-rows"],pressOnFilter:[8,"press-on-filter"],sortedData:[32],direction:[32]}]);function gc(){if(typeof customElements>"u")return;["dga-data-table","dga-checkbox","dga-icon"].forEach(n=>{switch(n){case"dga-data-table":customElements.get(n)||customElements.define(n,pi);break;case"dga-checkbox":customElements.get(n)||dn();break;case"dga-icon":customElements.get(n)||E();break}})}const ac=pi,cc=gc,He=t=>{const n=t.getMonth(),o=t.getFullYear(),i=new Date(o,n+1,0).getDate();return Array.from({length:i},(h,a)=>new Date(o,n,a+1))},Re=t=>{const n=new Date(t.getFullYear(),t.getMonth(),1).getDay(),o=new Date(t.getFullYear(),t.getMonth(),0),i=[];for(let h=0;h<n;h++)i.unshift(new Date(o.getFullYear(),o.getMonth(),o.getDate()-h));return i},Ue=t=>{const n=new Date(t.getFullYear(),t.getMonth()+1,0).getDay(),o=new Date(t.getFullYear(),t.getMonth()+1,1),i=[];for(let h=0;h<6-n;h++)i.push(new Date(o.getFullYear(),o.getMonth(),o.getDate()+h));return i},O=new Date,jn=new Date(O);jn.setDate(jn.getDate()-1);const mi=new Date(O);mi.setHours(0,0,0,0);const gn=new Date(O);gn.setHours(23,59,59,999);const wi=new Date(jn);wi.setHours(0,0,0,0);const vi=new Date(jn);vi.setHours(23,59,59,999);const In=new Date(O);In.setDate(O.getDate()-O.getDay());const Bn=new Date(O);Bn.setDate(O.getDate()+(6-O.getDay()));const yi=new Date(In);yi.setDate(In.getDate()-7);const xi=new Date(Bn);xi.setDate(Bn.getDate()-7);const on=new Date(O);on.setDate(1);const Rn=new Date(O);Rn.setMonth(Rn.getMonth()+1,0);const Un=new Date(on);Un.setMonth(Un.getMonth()-1,1);const Zn=new Date(on);Zn.setDate(Zn.getDate()-1);const Xn=new Date(on);Xn.setMonth(Xn.getMonth()-3,1);const Yn=new Date(on);Yn.setDate(Yn.getDate()-1);const Wn=new Date(O);Wn.setDate(Wn.getDate()-6);const Vn=new Date(O);Vn.setDate(Vn.getDate()-29);const Gn=new Date(O);Gn.setDate(Gn.getDate()-89);const sc=[{label:"Today",range:()=>({startDate:mi,endDate:gn})},{label:"Yesterday",range:()=>({startDate:wi,endDate:vi})},{label:"This Week",range:()=>({startDate:In,endDate:Bn})},{label:"Last Week",range:()=>({startDate:yi,endDate:xi})},{label:"This Month",range:()=>({startDate:on,endDate:Rn})},{label:"Last Month",range:()=>({startDate:Un,endDate:Zn})},{label:"Last 3 Months",range:()=>({startDate:Xn,endDate:Yn})},{label:"Last 7 Days",range:()=>({startDate:Wn,endDate:gn})},{label:"Last 30 Days",range:()=>({startDate:Vn,endDate:gn})},{label:"Last 90 Days",range:()=>({startDate:Gn,endDate:gn})}];function Pn(t,n){return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()}const Ze=t=>/^(?:January|February|March|April|May|June|July|August|September|October|November|December) (?:0?[1-9]|[12][0-9]|3[01]), (?:19|20)\d{2}$/.test(t)?(console.log("date is valid"),!0):(console.log("date is not valid"),!1),qi=k(class extends u{constructor(){super(),this.__registerHost(),this.initialDate=new Date,this.range=!1,this.dualMonthView=!1,this.inputField=!1,this.submitButton=!1,this.qickOptions=!1,this.onSubmit=()=>{},this.onCancel=()=>{},this.currentMonth=this.initialDate,this.selectedDate=null,this.rangeDates={},this.inputDates={startDate:"",endDate:""}}get nextMonth(){return new Date(this.currentMonth.getFullYear(),this.currentMonth.getMonth()+1)}get days(){return[...Re(this.currentMonth).slice(0,2),...He(this.currentMonth),...Ue(this.currentMonth).slice(0,2)]}get nextMonthDays(){return[...Re(this.nextMonth).slice(0,2),...He(this.nextMonth),...Ue(this.nextMonth).slice(0,2)]}formatDate(n){if(!n)return"";const o=new Date(n);return`${["January","February","March","April","May","June","July","August","September","October","November","December"][o.getMonth()]} ${o.getDate()}, ${o.getFullYear()}`}handleSelectDate(n){console.log(n,"reached"),this.range?this.rangeDates.startDate?this.rangeDates.endDate?this.rangeDates={startDate:n,endDate:null}:n>=this.rangeDates.startDate?this.rangeDates=Object.assign(Object.assign({},this.rangeDates),{endDate:n}):this.rangeDates={startDate:n}:this.rangeDates={startDate:n}:this.selectedDate=n}handleInputDate(n){const o=n.target,{name:i,value:h}=o;this.inputDates=Object.assign(Object.assign({},this.inputDates),{[i]:h})}handleChangeMonth(n){this.currentMonth=n}isMidRange(n){return this.range&&this.rangeDates.startDate&&this.rangeDates.endDate?n>this.rangeDates.startDate&&n<this.rangeDates.endDate:!1}isFirstRangeChild(n){return this.range&&this.rangeDates.startDate&&this.rangeDates.endDate?this.rangeDates.startDate.getTime()!==this.rangeDates.endDate.getTime()&&n.getTime()===this.rangeDates.startDate.getTime():!1}isLastRangeChild(n){return this.range&&this.rangeDates.startDate&&this.rangeDates.endDate?this.rangeDates.startDate.getTime()!==this.rangeDates.endDate.getTime()&&n.getTime()===this.rangeDates.endDate.getTime():!1}componentDidLoad(){this.inputField&&(this.rangeDates.startDate&&(this.inputDates=Object.assign(Object.assign({},this.inputDates),{startDate:this.formatDate(this.rangeDates.startDate)})),this.rangeDates.endDate?this.inputDates=Object.assign(Object.assign({},this.inputDates),{endDate:this.formatDate(this.rangeDates.endDate)}):this.inputDates=Object.assign(Object.assign({},this.inputDates),{endDate:""}))}render(){return e("div",{key:"b23fd66db579f9497a63e5642f15bc3fe82c5df9",class:"date-picker-root flex-column","data-dual-view":this.dualMonthView},e("div",{key:"3d9f1c682130c12697733ca6ccdbde8015e3f3c2",class:"flex"},this.qickOptions&&this.range&&e("div",{key:"774ff0296efd6cedbd1084437cc5aee2665ae476",class:"date-picker-root__quick-options"},e("span",{key:"9dad57887ae73fb5e7e8eddca8c1a3b45cefeda2",class:"text-md-regular"},"Qick options"),e("ul",{key:"a90e8b41abd5f5fb7fe6a60ffa646c3868a5c543",class:"options-list"},sc.map(({label:n,range:o})=>e("li",{key:n},e("button",{class:"text-md-medium",onClick:()=>this.rangeDates=o},n))))),e("div",{key:"9073e99d8f58b6c75fd88a4ac62043f1d4ced6a8",class:"date-picker-root__main"},this.inputField&&e("div",{key:"79db534e0f643647e850807d2c7b488935e32949",class:"date-picker-root__main__inputs"},e("dga-text-input",{key:"9695a84857a3f78881ec7a334fcb017d91c5fa2f",placeholder:"Month DD, YYYY",name:"startDate",value:this.inputDates.startDate,onChange:n=>this.handleInputDate(n),onBlur:n=>{if(Ze(n.target.value)){const o=new Date(n.target.value);this.range?this.rangeDates.startDate?this.rangeDates.endDate?o>=this.rangeDates.endDate?this.rangeDates={startDate:o,endDate:o}:this.rangeDates=Object.assign(Object.assign({},this.rangeDates),{startDate:o}):this.rangeDates={startDate:o,endDate:null}:this.rangeDates={startDate:o}:this.selectedDate=o}}}),this.range&&e("dga-text-input",{key:"bed10e9bb2e85ece567425645b3d91a3a11f886e",placeholder:"Month DD, YYYY",name:"endDate",value:this.inputDates.endDate,onChange:n=>this.handleInputDate(n),onBlur:n=>{if(Ze(n.target.value)){const o=new Date(n.target.value);this.range?this.rangeDates.endDate?this.rangeDates.startDate?o<=this.rangeDates.startDate?this.rangeDates={startDate:o,endDate:this.rangeDates.startDate}:this.rangeDates=Object.assign(Object.assign({},this.rangeDates),{endDate:o}):this.rangeDates={startDate:o,endDate:null}:this.rangeDates.startDate?o<=this.rangeDates.startDate&&(this.rangeDates={startDate:o,endDate:this.rangeDates.startDate}):this.rangeDates={startDate:o,endDate:null}:this.selectedDate=o}}})),e("div",{key:"f0cd731cf41f3d11b134a8b28ace46879c7ad269",class:"date-picker-root__main__content-wrapper"},e("div",{key:"236ad574e102ff7fe535c515151b698a0f0f9d0a",class:"date-picker"},e("month-navigator",{key:"76419c88e96343f7fc901ecbf2c2ac3205ec5361",currentMonth:this.currentMonth,onChange:n=>this.handleChangeMonth(n),showArrows:!this.dualMonthView}),e("div",{key:"43d3f053132bfb88aa84f7d05166cf982fc964e1",class:"date-picker__weekdays"},["Su","Mo","Tu","We","Th","Fr","Sa"].map(n=>e("div",{key:n,class:"date-picker__weekday"},n))),e("div",{key:"84475736123581baba249358a4fea373bcee6930",class:"date-picker__date-grid"},this.days.map(n=>e("date-cell",{key:n.toString(),date:n,isCurrentMonth:n.getMonth()===this.currentMonth.getMonth(),isSelected:this.range?!!this.rangeDates.startDate&&Pn(n,this.rangeDates.startDate)||!!this.rangeDates.endDate&&Pn(n,this.rangeDates.endDate):this.selectedDate?Pn(n,this.selectedDate):!1,isToday:new Date().toDateString()===n.toDateString(),isFirstRangeChild:this.isFirstRangeChild(n),isLastRangeChild:this.isLastRangeChild(n),midRange:this.isMidRange(n),onSelect:this.handleSelectDate})))),this.dualMonthView&&e("div",{key:"26b8b26272779d57a6c70f7bc98200e18fd4d76f",class:"date-picker"},e("month-navigator",{key:"e9f8baa8b9f180217548e132f8ba25df8f4d3f99",currentMonth:this.nextMonth,onChange:n=>{const o=n.getMonth()===this.currentMonth.getMonth()?new Date(this.currentMonth.getFullYear(),this.currentMonth.getMonth()-1):new Date(this.currentMonth.getFullYear(),this.currentMonth.getMonth()+1);this.handleChangeMonth(o)},showArrows:!0}),e("div",{key:"4b0294b820a3c58dea76e8eca5e7b44df2cb7de3",class:"date-picker__weekdays"},["Su","Mo","Tu","We","Th","Fr","Sa"].map(n=>e("div",{key:n,class:"date-picker__weekday"},n))),e("div",{key:"de244db6fc0b93e3093adc529e8aeb4fff836f69",class:"date-picker__date-grid"},this.nextMonthDays.map(n=>e("date-cell",{key:n.toString(),date:n,isCurrentMonth:n.getMonth()===this.nextMonth.getMonth(),isSelected:this.range?!!this.rangeDates.startDate&&n.getTime()===this.rangeDates.startDate.getTime()||!!this.rangeDates.endDate&&n.getTime()===this.rangeDates.endDate.getTime():this.selectedDate?n.getTime()===this.selectedDate.getTime():!1,isToday:new Date().toDateString()===n.toDateString(),midRange:this.isMidRange(n),isFirstRangeChild:this.isFirstRangeChild(n),isLastRangeChild:this.isLastRangeChild(n),onSelect:this.handleSelectDate}))))))))}},[0,"dga-datepicker",{initialDate:[16],range:[4],dualMonthView:[4,"dual-month-view"],inputField:[4,"input-field"],submitButton:[4,"submit-button"],qickOptions:[4,"qick-options"],onSubmit:[16],onCancel:[16],currentMonth:[32],selectedDate:[32],rangeDates:[32],inputDates:[32]}]);function _i(){if(typeof customElements>"u")return;["dga-datepicker","date-cell","dga-icon","dga-text-input"].forEach(n=>{switch(n){case"dga-datepicker":customElements.get(n)||customElements.define(n,qi);break;case"date-cell":customElements.get(n)||ce();break;case"dga-icon":customElements.get(n)||E();break;case"dga-text-input":customElements.get(n)||Dn();break}})}const zi=k(class extends u{constructor(){super(),this.__registerHost()}render(){return e("div",{key:"d07a6c5a280ebbfa89ed69517b76a4e7ff339ed3"},e("h1",{key:"21960433541bef6d896061082b1d259a23c2b5c5"},"Datepicker Example"),e("div",{key:"e920f6227e18ee1df3bdbec195f4eb319f9bb989",style:{padding:"50px",display:"flex",gap:"20px"}},e("div",{key:"788f5db1c249de9866422b575957f8bb7d08e4ef",style:{display:"flex",flexDirection:"column",gap:"20px"}},e("dga-datepicker",{key:"dfb95618c3052e445bab1164f11ffb19d5044ad5",inputField:!0}),e("dga-datepicker",{key:"4ef0f207e37ca7319d509cbe20e3e99000e408c5",range:!0})),e("div",{key:"b8e3a7954ca9ac02ad57fbba5845f65157d3f63d",style:{display:"flex",flexDirection:"column",gap:"20px"}})))}},[0,"dga-datepicker-usage"]);function dc(){if(typeof customElements>"u")return;["dga-datepicker-usage","date-cell","dga-datepicker","dga-icon","dga-text-input"].forEach(n=>{switch(n){case"dga-datepicker-usage":customElements.get(n)||customElements.define(n,zi);break;case"date-cell":customElements.get(n)||ce();break;case"dga-datepicker":customElements.get(n)||_i();break;case"dga-icon":customElements.get(n)||E();break;case"dga-text-input":customElements.get(n)||Dn();break}})}const fc=zi,lc=dc,bc=qi,uc=_i,ji=k(class extends u{constructor(){super(),this.__registerHost(),this.color="neutral"}render(){return e("span",{key:"a552ddba42564ac386f06ee46f84da9ce2e174e9",class:`dga-divider dga-divider--${this.color}`})}},[0,"dga-divider",{color:[1]}]);function kc(){if(typeof customElements>"u")return;["dga-divider"].forEach(n=>{switch(n){case"dga-divider":customElements.get(n)||customElements.define(n,ji);break}})}const pc=ji,mc=kc,wc=Ft,vc=Ht,yc=Ut,xc=Zt,qc=Wt,_c=te,zc=Qt,jc=Nt,de=k(class extends u{constructor(){super(),this.__registerHost(),this.label=void 0,this.icon=void 0,this.active=!1,this.extraClasses="",this.onClick=void 0}handleClick(n){n.preventDefault(),this.onClick&&this.onClick()}render(){return e("li",{key:"053de5905f50bc37c4fe22952e10699858308ce5"},e("a",{key:"f506f11eb012a07428659a603a979fc58eb5aeb0",href:"#",class:`header-menu__item ${this.active?"header-menu__item--active":""} ${this.extraClasses}`,onClick:this.handleClick.bind(this)},e("span",{key:"4f41284200d4d0947e78f7a6003bce094e85b5ea",class:"header-menu__item-arrow"},e("dga-icon",{key:"6a12fb2832c6ee92d9f260d2d57ce145709ffce7",icon:this.icon})),e("span",{key:"48c720a3c68b576796000263cca6db5ddb9039f0",class:"header-menu__item-label"},this.label)))}},[0,"dga-header-action-btn",{label:[1],icon:[1],active:[4],extraClasses:[1,"extra-classes"],onClick:[16]}]);function Cc(){if(typeof customElements>"u")return;["dga-header-action-btn","dga-icon"].forEach(n=>{switch(n){case"dga-header-action-btn":customElements.get(n)||customElements.define(n,de);break;case"dga-icon":customElements.get(n)||E();break}})}const $c=de,Ec=Cc,fe=k(class extends u{constructor(){super(),this.__registerHost(),this.fullWidth=!0,this.divider=!0}render(){return e("header",{key:"726bfc519703997a94965f1bc21d2b1d3f1d5d51",class:`header ${this.divider?"header--divider":""}`},e("nav",{key:"b89ae9d2b5100bc828966d478e67a7745bfe0b3a",class:`header-nav--${this.fullWidth?"full":"fixed"}`},e("slot",{key:"4ea790e021764ede43f03891c49336e3c50f71ff"})))}},[4,"dga-nav-header",{fullWidth:[4,"full-width"],divider:[4]}]);function Sc(){if(typeof customElements>"u")return;["dga-nav-header"].forEach(n=>{switch(n){case"dga-nav-header":customElements.get(n)||customElements.define(n,fe);break}})}const le=k(class extends u{constructor(){super(),this.__registerHost(),this.toggleCollapsed=Y(this,"toggleCollapsed",7),this.handleToggle=()=>{this.toggleCollapsed.emit(!this.collapsed)},this.collapsed=!1}render(){return e("div",{key:"1d6260517071eaa610af05a17014aa4ca9f0f1a7"},e("button",{key:"459df9019332c1c007326645247214dfe16ac891",type:"button",onClick:this.handleToggle,class:"header-menu__btn"},e("span",{key:"4f99919ed13afbe1aadcbe209b4ce9504b8bc466",class:"btn-icon header-menu__btn-icon"},e("dga-icon",{key:"cba61e02b2e82b655183996a0a95ccb6dd759c7a",icon:this.collapsed?"menu01":"cancel01"}))),e("div",{key:"f770b5480e526691f2156668be313e6455dac5b7",class:"header-nav__main"},e("slot",{key:"673d2f664360209d5c87d37f1106f2e3ed7f14ba"})))}},[4,"dga-nav-header-main",{collapsed:[4]}]);function Dc(){if(typeof customElements>"u")return;["dga-nav-header-main","dga-icon"].forEach(n=>{switch(n){case"dga-nav-header-main":customElements.get(n)||customElements.define(n,le);break;case"dga-icon":customElements.get(n)||E();break}})}const be=k(class extends u{constructor(){super(),this.__registerHost(),this.logoSrc=void 0,this.logoAlt=void 0,this.logoLink="#",this.govSrc=void 0,this.govAlt=void 0,this.govLink="#"}render(){return e("div",{key:"32c6e885fe2b7c1450f3b78f6dfd1d7f97385ed7",class:"header-nav__branding"},this.govSrc&&e("div",{key:"fbd02ad2ba968a841004f03a8501168a49e03910",class:"flex xs-hide"},e("a",{key:"2d1ebd951e50aac10eff8007d61ed4609c97548c",href:this.govLink},e("img",{key:"ca28477c013a8b75f8648c2e86470b79d7f5f64b",src:this.govSrc,alt:this.govAlt})),e("div",{key:"b0fd82bfebf0254981cf1c8fd77f25652eba95e8",class:"ver-divider"})),e("a",{key:"a794d7d5dc3e35124bb5caf2662ed86640747b64",href:this.logoLink,class:"header__logo"},e("img",{key:"25e3ebf0a31bfe905fc38ddc015bf8a1c060caaa",src:this.logoSrc,alt:this.logoAlt})))}},[0,"dga-nav-header-logos",{logoSrc:[1,"logo-src"],logoAlt:[1,"logo-alt"],logoLink:[1,"logo-link"],govSrc:[1,"gov-src"],govAlt:[1,"gov-alt"],govLink:[1,"gov-link"]}]);function Mc(){if(typeof customElements>"u")return;["dga-nav-header-logos"].forEach(n=>{switch(n){case"dga-nav-header-logos":customElements.get(n)||customElements.define(n,be);break}})}const ue=k(class extends u{constructor(){super(),this.__registerHost()}render(){return e("ul",{key:"3bcd828e93fb5f9725a6ffbc1647334ee15ffd3b",class:"header-nav__menu"},e("slot",{key:"c100bb3baed1b63096a036455d27588b99722876"}))}},[4,"dga-nav-header-menu"]);function Ic(){if(typeof customElements>"u")return;["dga-nav-header-menu"].forEach(n=>{switch(n){case"dga-nav-header-menu":customElements.get(n)||customElements.define(n,ue);break}})}const Ci=k(class extends u{constructor(){super(),this.__registerHost(),this.active=!1,this.subMenuFullWidth=!1,this.background=void 0}onActiveChange(){this.active&&this.submenu?(this.submenu.style.display="block",this.submenu.style.maxHeight=`${this.submenu.scrollHeight}px`):this.submenu&&(this.submenu.style.maxHeight="")}componentDidLoad(){this.submenu=this.el.shadowRoot.querySelector(".header__sub-menu"),this.onActiveChange()}render(){const n=this.background==="Brand"?"header__sub-menu--bg-brand":"",o=this.subMenuFullWidth?"header__sub-menu--full":"";return e("div",{key:"682e88dc934ee066490a95324ac13f9a6f565277",class:`header__sub-menu ${n} ${o}`,ref:i=>this.submenu=i},e("div",{key:"fd4e3885c24133167bf2ca4c84b3884f291661a1",class:"sub-menu__container"},e("slot",{key:"080c7dc18f03a1b614091efec2501d10f2060a43"})))}get el(){return this}static get watchers(){return{active:["onActiveChange"]}}},[4,"dga-nav-header-sub-menu",{active:[4],subMenuFullWidth:[4,"sub-menu-full-width"],background:[1]},void 0,{active:["onActiveChange"]}]);function $i(){if(typeof customElements>"u")return;["dga-nav-header-sub-menu"].forEach(n=>{switch(n){case"dga-nav-header-sub-menu":customElements.get(n)||customElements.define(n,Ci);break}})}const ke=k(class extends u{constructor(){super(),this.__registerHost(),this.linkClicked=Y(this,"linkClicked",7),this.handleClick=n=>{n.preventDefault(),this.linkClicked.emit()},this.label=void 0,this.icon=void 0,this.iconProps={},this.active=!1,this.subMenuBackground="Brand",this.subMenuFullWidth=!0}render(){return e("li",{key:"634d63d41af5563b5564afd652aaedc97869f5c5"},e("a",{key:"8d1999071c8925a8d302a2fe96775882d2d22ea3",href:"#",class:`header-menu__item ${this.active?"header-menu__item--active":""}`,onClick:this.handleClick},e("span",{key:"c5a45bc4e5fbd3e95df9336473650dcafd8d61b5",class:"header-menu__item-label"},this.label),e("span",{key:"1e7c4b1939ac1160a5727e60a463f5d98b4b56cd",class:"header-menu__item-arrow"},e("dga-icon",Object.assign({key:"ff2f404f6450a1649d7d82e90acc40d44a49ab2a",icon:this.icon},this.iconProps)))),this.active&&e("dga-nav-header-sub-menu",{key:"0390ac8ec6a1b685e70d284cf514a7b0000c0e43",active:this.active,"sub-menu-full-width":this.subMenuFullWidth,background:this.subMenuBackground},e("slot",{key:"d5ba905a7b14346f2545651012ffee6932071c22"})))}},[4,"dga-nav-header-link",{label:[1],icon:[1],iconProps:[16],active:[4],subMenuBackground:[1,"sub-menu-background"],subMenuFullWidth:[4,"sub-menu-full-width"]}]);function Bc(){if(typeof customElements>"u")return;["dga-nav-header-link","dga-icon","dga-nav-header-sub-menu"].forEach(n=>{switch(n){case"dga-nav-header-link":customElements.get(n)||customElements.define(n,ke);break;case"dga-icon":customElements.get(n)||E();break;case"dga-nav-header-sub-menu":customElements.get(n)||$i();break}})}const Cn=k(class extends u{constructor(){super(),this.__registerHost()}render(){return e("div",{key:"dc974cc566a8aad8add485daba94e7d3aa475636",class:"sub-menu__column"},e("slot",{key:"784ee4c0fb678538a71cfc3a253515db09730226"}))}},[4,"dga-nav-header-sub-menu-column"]);function Ac(){if(typeof customElements>"u")return;["dga-nav-header-sub-menu-column"].forEach(n=>{switch(n){case"dga-nav-header-sub-menu-column":customElements.get(n)||customElements.define(n,Cn);break}})}const pe=k(class extends u{constructor(){super(),this.__registerHost(),this.background=void 0,this.link=void 0,this.linkStyle=void 0,this.label=void 0,this.helperText=void 0,this.icon=void 0}render(){const n=this.background==="Brand"?"sub-menu__link--on-color":"",o=this.linkStyle&&this.linkStyle>0?this.linkStyle===2?"sub-menu__link-icon--bg":"sub-menu__link-icon":"";return e("a",{key:"dbdac1be5ad2706ef729d8e4e8d99a10cbee8c0d",href:this.link,class:`sub-menu__link ${n}`},this.linkStyle&&this.linkStyle>0?e("div",{class:o},this.icon&&e("dga-icon",{icon:this.icon})):null,e("div",{key:"b3e8959e49aa69feabf4bb06bf5546c289c5cbe9",class:"flex-column"},e("span",{key:"2c36784f20012cce6a132b8fba957eeeac5d0fad",class:"sub-menu__link-label"},this.label),this.helperText&&e("span",{key:"ce74e0d916e6e2f2c87e281663f705ca9370783c",class:"sub-menu__link-helper"},this.helperText)))}},[0,"dga-nav-header-sub-menu-link",{background:[1],link:[1],linkStyle:[2,"link-style"],label:[1],helperText:[1,"helper-text"],icon:[1]}]);function Pc(){if(typeof customElements>"u")return;["dga-nav-header-sub-menu-link","dga-icon"].forEach(n=>{switch(n){case"dga-nav-header-sub-menu-link":customElements.get(n)||customElements.define(n,pe);break;case"dga-icon":customElements.get(n)||E();break}})}const me=k(class extends u{constructor(){super(),this.__registerHost()}render(){return e(H,null,e("button",{key:"a2df6712612d2a73fdf1f64d08639268bac5c381",type:"button",class:"header-menu__btn btn btn--lg btn--subtle btn--icon"},e("span",{key:"5ca6ac23814473653e7bb8e73753367df88869a6",class:"btn-icon header-menu__btn-icon"},e("dga-icon",{key:"eaf0067d4d1ba97b1ff9f0ae229cff128a08bad5",icon:"MoreHorizontalCircleIcon",variant:"solid"}))),e("ul",{key:"c9b252ec5be2e39bfec33a341812f8484afb09a3",class:"header-nav__actions"},e("slot",{key:"b894afce208d5454aa6a42774a509a6f453da9ff"})))}},[4,"dga-nav-header-actions"]);function Tc(){if(typeof customElements>"u")return;["dga-nav-header-actions","dga-icon"].forEach(n=>{switch(n){case"dga-nav-header-actions":customElements.get(n)||customElements.define(n,me);break;case"dga-icon":customElements.get(n)||E();break}})}const Ei=k(class extends u{constructor(){super(),this.__registerHost(),this.config=void 0}render(){return e(fe,{key:"a4b27d9fe31ff8b3dee9036d2e50a70f69672f03",fullWidth:this.config.fullWidth,divider:this.config.divider},e(le,{key:"08e4c1eb49ca888c6bd5ce096f9305883e8b9c88",collapsed:!0},e(be,{key:"3400aeebf54005a3defc249e739168fb31326a02",logoSrc:this.config.logoSrc,govSrc:this.config.govSrc,logoLink:this.config.logoLink,govLink:this.config.govLink}),e(ue,{key:"a3db9f115debdbbcbc4a7451e8479948176f9b31"},this.config.headerLinks.map((n,o)=>e(ke,{key:o,active:!1,onClick:()=>console.log("clicked"),label:n.label,icon:n.icon,subMenuBackground:this.config.subMenuBackground,subMenuFullWidth:this.config.subMenuFullWidth},n.subMenu.map((i,h)=>e(Cn,{key:h},i.columns.map((a,d)=>e(Cn,{key:d},a.links.map((f,l)=>e(pe,{key:l,background:this.config.subMenuBackground,label:f.label,helperText:f.helperText,icon:f.icon,linkStyle:f.linkStyle})))))))))),e(me,{key:"4abc413d87a098db4f90545b9d07936f19a6817b"},this.config.actions.map((n,o)=>e(de,{key:o,onClick:()=>console.log("clicked"),label:n.label,icon:n.icon}))))}},[0,"dga-header",{config:[16]}]);function Lc(){if(typeof customElements>"u")return;["dga-header"].forEach(n=>{switch(n){case"dga-header":customElements.get(n)||customElements.define(n,Ei);break}})}const Oc=Ei,Fc=Lc,Si=k(class extends u{constructor(){super(),this.__registerHost(),this.label=void 0,this.color="neutral",this.variant="success",this.size="md",this.iconType=void 0,this.leadIcon=void 0,this.trailIcon=void 0,this.outlined=void 0,this.rounded=void 0,this.iconOnly=void 0}render(){return console.log(!!this.iconOnly,this.iconOnly),this.iconOnly?e("span",{class:`tag tag--${this.color}${this.outlined?"-outlined":""} tag--${this.size} ${this.rounded?"tag--rounded":""} tag--icon`},this.leadIcon&&e("span",{class:"tag-icon"},this.leadIcon),!this.leadIcon&&e("slot",null)):e("span",{class:`tag tag--${this.color}${this.outlined?"-outlined":""} tag--${this.size} ${this.rounded?"tag--rounded":""}`},this.leadIcon?e("span",{class:"tag-icon"},this.leadIcon):"",this.label,this.trailIcon?e("span",{class:"tag-icon"},this.trailIcon):"",e("slot",null))}},[4,"dga-html-tag",{label:[1],color:[1],variant:[1],size:[1],iconType:[8,"icon-type"],leadIcon:[8,"lead-icon"],trailIcon:[8,"trail-icon"],outlined:[516],rounded:[516],iconOnly:[516,"icon-only"]}]);function Hc(){if(typeof customElements>"u")return;["dga-html-tag"].forEach(n=>{switch(n){case"dga-html-tag":customElements.get(n)||customElements.define(n,Si);break}})}const Rc=Si,Uc=Hc,Zc=ft,Xc=E,Yc=so,Wc=fo,Vc=bo,Gc=uo,Jc=Yt,Kc=fn,Di=k(class extends u{constructor(){super(),this.__registerHost(),this.icon=void 0,this.size=24,this.color=void 0}render(){return e("svg",{key:"74ef0bbbcb35d6666a43110bd4b2f028dd33064f",width:this.size,height:this.size,fill:this.color||"currentColor","aria-hidden":"true"},e("use",{key:"26514b1c79780b27e4dde0a179b48f5b3eca9af2",href:`../../assets/sprite.svg#${this.icon}`}))}},[0,"dga-local-icon",{icon:[1],size:[2],color:[1]}]);function Qc(){if(typeof customElements>"u")return;["dga-local-icon"].forEach(n=>{switch(n){case"dga-local-icon":customElements.get(n)||customElements.define(n,Di);break}})}const Nc=Di,ns=Qc,Mi=k(class extends u{constructor(){super(),this.__registerHost(),this.groupLabel=void 0}render(){return e("div",{key:"46accf792451b6fa7c5418ed4706f3749f6563a5",class:"menu-group"},this.groupLabel&&e("span",{key:"3fc27b587b006d7d4021294a5a4e0f4f49f4dc42",class:"menu-group__label"},this.groupLabel),e("ul",{key:"17ef154195c649a6207fe11bb76bd1bc576e3523",class:"menu-group__items"},e("slot",{key:"135de24368e9669bc9cc9730b3f199e45d9d0054"})))}},[4,"dga-menu-group",{groupLabel:[1,"group-label"]}]);function es(){if(typeof customElements>"u")return;["dga-menu-group"].forEach(n=>{switch(n){case"dga-menu-group":customElements.get(n)||customElements.define(n,Mi);break}})}const ts=Mi,os=es,Ii=k(class extends u{constructor(){super(),this.__registerHost(),this.trailElement=void 0,this.disabled=!1,this.leadIcon=void 0,this.label=void 0}render(){return e("li",{key:"4dfa95ff00c7271d62704028f5c6e2a073ee3a54",class:`menu-item ${this.disabled?"disabled":""}`},this.leadIcon&&e("span",{key:"9f5ef257bc7ec813e1a47d13229d604194c786ba",class:"menu-item__icon"},this.leadIcon),e("span",{key:"3c59955f291f6d2cddcb2c11762f0fe6b6c0e9b1",class:"menu-item__label"},this.label),this.trailElement&&e("div",{key:"51314c4438ebd1a7df45ce3cdcdaccf1729e0715",class:"menu-item__trail-element"},this.trailElement))}},[0,"dga-menu-item",{trailElement:[8,"trail-element"],disabled:[4],leadIcon:[16],label:[1]}]);function Bi(){if(typeof customElements>"u")return;["dga-menu-item"].forEach(n=>{switch(n){case"dga-menu-item":customElements.get(n)||customElements.define(n,Ii);break}})}const is=Ii,hs=Bi,Ai=k(class extends u{constructor(){super(),this.__registerHost(),this.groups=[]}render(){return e("ul",{key:"67242f9b4ec3b53f8246021e717cc6372e39c97c",class:"menu"},this.groups.map((n,o)=>e(H,null,e("div",{class:"menu-group"},n.label&&e("span",{class:"menu-group__label"},n.label),n.items.map(i=>e("dga-menu-item",{trailElement:i.trailElement,label:i.label,disabled:i.disabled,leadIcon:i.leadIcon}))),o<this.groups.length-1&&e("span",{class:"divider"}))))}},[0,"dga-menu-updated",{groups:[16]}]);function rs(){if(typeof customElements>"u")return;["dga-menu-updated","dga-menu-item"].forEach(n=>{switch(n){case"dga-menu-updated":customElements.get(n)||customElements.define(n,Ai);break;case"dga-menu-item":customElements.get(n)||Bi();break}})}const gs=Ai,as=rs,Pi=k(class extends u{constructor(){super(),this.__registerHost()}render(){return e("ul",{key:"5b50d03cd9d6e01796b9a663903e6d6fc633a006",class:"menu"},e("slot",{key:"3fb5614d1019420716bb418397f1063bee03554d"}))}},[4,"dga-menu"]);function cs(){if(typeof customElements>"u")return;["dga-menu"].forEach(n=>{switch(n){case"dga-menu":customElements.get(n)||customElements.define(n,Pi);break}})}const ss=Pi,ds=cs,Ti=k(class extends u{constructor(){super(),this.__registerHost(),this.changeIcons={"01":{positive:"arrow-up-02",negative:"arrow-down-02"},"02":{positive:"trade-up",negative:"trade-down"}},this.label="",this.Style="small-chart",this.percentage="0%",this.showFeaturedIcon=!0,this.featuredIcon=e("i",{class:"hgi-stroke hgi-trade-up",style:{fontSize:"24px"}}),this.showChart=!0,this.showInfo=!0,this.showActions=!0,this.showSecondaryAction=!0,this.showMoreButton=!0,this.changeProps={type:"01",trend:"positive"},this.chartProps=void 0,this.trend=void 0,this.onPrimaryAction=()=>{},this.onSecondaryAction=()=>{},this.onExpandAction=()=>{}}render(){return e("div",{key:"bb18630be9d1f0a5257ad64fad4df92d5889c7ca",class:"dga-metric","data-chart-size":this.Style},e("div",{key:"f8bdf5ec3e43e00ca3d69fc7983bc548a1b2e0f3",class:"dga-metric__head"},e("div",{key:"efe5ffb448115562bce49a1c0f6fb8fdc2e2d9a6",class:"dga-metric__head-content"},this.showFeaturedIcon&&e("div",{key:"716c2ccd4546ef261c80cdad6ce0e0e9a9863b2b",class:"featured-icon featured-icon--light-brand featured-icon--circle featured-icon--sm"},this.featuredIcon),this.label&&e("span",{key:"5b4bd51d29392351bb25f6d3470c6f2b58065be2",class:"dga-metric__head-content-text"},this.label)),this.showMoreButton&&e("dga-button",{key:"ab855e283f4a222c79c139566af162f2abe84833",variant:"subtle",iconOnly:!0,leadIcon:!0,leadIconType:"more-vertical",leadIconProps:{variant:"stroke",type:"rounded"},onClick:this.onExpandAction})),e("div",{key:"1a43fc90efc19ee149a49dd14e3fb25ca51e1066",class:"dga-metric__body"},e("div",{key:"7d1bee47dd7c549250755cc6048591f008343578",class:"dga-metric__content"},e("h3",{key:"aff23dc6ca45ae4c95aa7c60c822f05a792251bf",class:"dga-metric__content-percentage"},this.percentage),this.showInfo&&e("div",{key:"b9994108aacf4d465c427862e9a7bd60a4c40ebc",class:"dga-metric__content-change","data-change-trend":this.changeProps.trend},e("span",{key:"545f36ce046fe020263f790c2196f997ec74fcea",class:"dga-metric__content-change-icon"},e("dga-icon",{key:"a9e1fa4b0dec66502a06bd636eafe9b2e4b80a4c",icon:this.changeIcons[this.changeProps.type][this.changeProps.trend],type:"rounded",variant:"stroke",size:24})),e("span",{key:"095e0e64fbe14b08c84591b1c1ba26366e0ae8a5",class:"dga-metric__content-change-value"},Math.abs(100),"%"),e("span",{key:"19137df07a42e406b5fc775e2181c776ffb58218",class:"dga-metric__content-change-period"},"vs last month"))),this.showChart&&e("div",{key:"b97ded1c0bef54f46971280f41799f99533304dc",class:"dga-metric__chart"},e("dga-chart",Object.assign({key:"f255a12467483676c4299e963bb3b8fd660d9f23"},this.chartProps,{size:this.Style==="small-chart"?"sm":"lg"})))),this.showActions&&e(H,{key:"4fa870d13972b18e0ef71a61084080d42e378a55"},e("div",{key:"ded189a0e9d3971ebab43d0dd2a86321f9912a17",class:"dga-metric__divider"}),e("div",{key:"7ef9385ba3b83e51f1afe31fb9027dc0da46f0a4",class:"dga-metric__actions"},this.showSecondaryAction&&e("dga-button",{key:"c05c535eb667e4dbffc24ab832940e7c3587367d",variant:"subtle",iconOnly:!0,leadIcon:!0,leadIconType:"settings-02",leadIconProps:{variant:"stroke",type:"rounded"},onClick:this.onSecondaryAction}),e("dga-button",{key:"f65c71c20cbbc9ad0ca8660dbe0684e01da5d101",variant:"secondary-outline",class:"dga-metric__actions--primary",label:"View Report",onClick:this.onPrimaryAction}))))}},[0,"dga-metric",{label:[1],Style:[1,"style"],percentage:[1],showFeaturedIcon:[4,"show-featured-icon"],featuredIcon:[8,"featured-icon"],showChart:[4,"show-chart"],showInfo:[4,"show-info"],showActions:[4,"show-actions"],showSecondaryAction:[4,"show-secondary-action"],showMoreButton:[4,"show-more-button"],changeProps:[16],chartProps:[16],trend:[16],onPrimaryAction:[16],onSecondaryAction:[16],onExpandAction:[16]}]);function Li(){if(typeof customElements>"u")return;["dga-metric","dga-button","dga-chart","dga-icon"].forEach(n=>{switch(n){case"dga-metric":customElements.get(n)||customElements.define(n,Ti);break;case"dga-button":customElements.get(n)||Z();break;case"dga-chart":customElements.get(n)||se();break;case"dga-icon":customElements.get(n)||E();break}})}const Oi=k(class extends u{constructor(){super(),this.__registerHost()}render(){return e("div",{key:"817630da879eefee0a911eaba22a6f2627dd1c4b"},e("h1",{key:"41eec05437011e5e7b844a622a4d9b13c978345d"},"Metric Example"),e("div",{key:"b60ff2d448443fc1e30415569c918e80d4bc6ac2",style:{padding:"50px",display:"flex",gap:"20px"}},e("div",{key:"487dfa0fb04ed40e6ccea1ea0080946c3dcf640c",style:{display:"flex",flexDirection:"column",gap:"20px"}},e("dga-metric",{key:"7ce5d5796242920c3e1e0443c5b98ba232c62386",Style:"small-chart",percentage:"60%",changeProps:{trend:"positive",type:"01"},chartProps:{data:[2,5.5,2,8.5,1.5,5],trend:"positive",type:"realistic",showMarker:!1}}),e("dga-metric",{key:"7dbc4ea2aa4547ae9fb1b9ec5e245880d313837e",Style:"small-chart",percentage:"60%",changeProps:{trend:"positive",type:"01"},chartProps:{data:[2,5.5,2,8.5,1.5,5],trend:"positive",type:"realistic",showMarker:!1}}),e("dga-metric",{key:"eb2d5ee0e9cdc96c4d3dad247c396b74c1a6e9a7",label:"24h Views",Style:"large-chart",percentage:"60%",showFeaturedIcon:!0,showChart:!1,showInfo:!1,showSecondaryAction:!1,showMoreButton:!1}),e("dga-metric",{key:"a26409d3ee22ec43ded81420d89464b87258f791",Style:"small-chart",percentage:"70%",showFeaturedIcon:!1,showChart:!1}),e("dga-chart",{key:"bbd8d6662a62c444109f129dcb9052c5564f6fe0",type:"wavy",data:[2,5.5,2,8.5,1.5,5],trend:"negative",size:"lg"}),e("dga-chart",{key:"b0299a39004fb1b57c1c52d7828ba1d985e11927",type:"wavy",data:[2,5.5,2,8.5,1.5,5],trend:"positive",size:"sm"}),e("dga-chart-v2",{key:"30e1d7d570ea426c634fa99e595fab81edd72010",data:[65,5.60606,57.2759,9,60.5862,129,1,10,20,15,2,3,5]})),e("div",{key:"5f5e7b4b38d8aef27f26df7a191f6eba500d4832",style:{display:"flex",flexDirection:"column",gap:"20px"}})))}},[0,"dga-metric-usage"]);function fs(){if(typeof customElements>"u")return;["dga-metric-usage","dga-button","dga-chart","dga-chart-v2","dga-icon","dga-metric"].forEach(n=>{switch(n){case"dga-metric-usage":customElements.get(n)||customElements.define(n,Oi);break;case"dga-button":customElements.get(n)||Z();break;case"dga-chart":customElements.get(n)||se();break;case"dga-chart-v2":customElements.get(n)||li();break;case"dga-icon":customElements.get(n)||E();break;case"dga-metric":customElements.get(n)||Li();break}})}const ls=Oi,bs=fs,us=Ti,ks=Li,ps=mo,ms=wo,ws=me,vs=Tc,ys=ke,xs=Bc,qs=be,_s=Mc,zs=le,js=Dc,Cs=ue,$s=Ic,Es=Cn,Ss=Ac,Ds=pe,Ms=Pc,Is=Ci,Bs=$i,As=fe,Ps=Sc,Ts=yo,Ls=xo,Os=_o,Fs=zo,Hs=Co,Rs=$o,Fi=k(class extends u{constructor(){super(),this.__registerHost(),this.onSelect=Y(this,"onSelect",7),this.type=void 0,this.variant=void 0,this.options=void 0,this.label=void 0,this.icon=void 0,this.dpIsActive=!1,this.selectedOption=null}handlePrefixClick(){this.prefixBtn.classList.toggle("open")}handleOptionSelect(n){this.selectedOption=n,this.onSelect.emit(n.value);const o=this.prefixBtn.querySelector(".dropdown__label");o&&o.classList.add("dropdown__label--selection"),this.prefixBtn.classList.remove("open"),this.prefixBtn.classList.add("selected")}render(){return this.type==="text"?e("div",{class:`input__prefix input__prefix--${this.variant}-text`},e("span",{class:"input__prefix-label"},this.label)):e(H,null,e("button",{class:`input__prefix input__prefix--${this.variant} input__dropdown-btn`,onMouseDown:()=>this.dpIsActive=!0,onMouseUp:()=>this.dpIsActive=!1,onMouseOut:()=>this.dpIsActive=!1,onClick:()=>this.handlePrefixClick(),ref:n=>this.prefixBtn=n},e("span",{class:"input__prefix-icon"},this.icon),e("span",{class:"dropdown__label"},this.selectedOption&&Object.keys(this.selectedOption).length?this.selectedOption.label:" "),e("span",{class:"input__prefix-label"},this.label),e("span",{class:"input__prefix-chevron"},e("dga-icon",{icon:"ArrowDown01Icon",variant:"stroke"}))),e("ul",{class:"input__dropdown-list"},this.options&&this.options.map(n=>{var o;return e("li",{key:n.value},e("button",{class:`dropdown__option ${((o=this.selectedOption)===null||o===void 0?void 0:o.value)===n.value?"selected":""}`,onClick:()=>this.handleOptionSelect(n)},e("span",{class:"dropdown__option-label"},n.label),e("span",{class:"dropdown__option-icon"},e("dga-icon",{icon:"Tick02Icon",variant:"solid"}))))})))}},[0,"dga-prefix",{type:[1],variant:[1],options:[16],label:[1],icon:[8],dpIsActive:[32],selectedOption:[32]}]);function Us(){if(typeof customElements>"u")return;["dga-prefix","dga-icon"].forEach(n=>{switch(n){case"dga-prefix":customElements.get(n)||customElements.define(n,Fi);break;case"dga-icon":customElements.get(n)||E();break}})}const Zs=Fi,Xs=Us,Hi=k(class extends u{constructor(){super(),this.__registerHost(),this.percentage=10,this.RTL=!1,this.size="small",this.progressStyle="neutral",this.showLabel=!0,this.showHelperText=!0,this.error=!1,this.success=!1,this.label="label",this.helperText="Help Text"}render(){const n={small:"sm",medium:"md",large:"lg"};let o=this.error?"error":this.success?"primary":this.progressStyle,i=this.error||this.success?100:this.percentage;const h={neutral:e("svg",{key:"75e743ccefd5e3cf5a52bb14ba57ebc1e0a570c1",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{key:"2d3685423027966b89942df91521c03c3095233a","clip-path":"url(#clip0_17869_405)"},e("path",{key:"7f01e9f1322e96a6ea8b3d5bd655eedb273a2afe",d:"M6.06004 6.00001C6.21678 5.55446 6.52614 5.17875 6.93334 4.93943C7.34055 4.70012 7.8193 4.61264 8.28483 4.69248C8.75035 4.77233 9.17259 5.01436 9.47676 5.3757C9.78093 5.73703 9.94741 6.19436 9.94671 6.66668C9.94671 8.00001 7.94671 8.66668 7.94671 8.66668M8.00004 11.3333H8.00671M14.6667 8.00001C14.6667 11.6819 11.6819 14.6667 8.00004 14.6667C4.31814 14.6667 1.33337 11.6819 1.33337 8.00001C1.33337 4.31811 4.31814 1.33334 8.00004 1.33334C11.6819 1.33334 14.6667 4.31811 14.6667 8.00001Z",stroke:"#384250","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),e("defs",{key:"5e475d2905f45ab5a7d678856c988123a0334e19"},e("clipPath",{key:"6c05f511736d3ca545d155ba2bdf379dacd4ebd9",id:"clip0_17869_405"},e("rect",{key:"649cf8c0439928300600ce1e6e70752796651e13",width:"16",height:"16",fill:"white"})))),primary:e("svg",{key:"6f7da9fff3474f0d50e4bb31555bc536af042ba8",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"14c77368d59d3f41888aee210999f33c4de3f65c","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00002 15.3334C12.0501 15.3334 15.3334 12.0501 15.3334 8.00002C15.3334 3.94993 12.0501 0.666687 8.00002 0.666687C3.94993 0.666687 0.666687 3.94993 0.666687 8.00002C0.666687 12.0501 3.94993 15.3334 8.00002 15.3334Z",fill:"white"}),e("path",{key:"f5f7f09a445554707d58e242c25801f6c2800369","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00002 15.3334C12.0501 15.3334 15.3334 12.0501 15.3334 8.00002C15.3334 3.94993 12.0501 0.666687 8.00002 0.666687C3.94993 0.666687 0.666687 3.94993 0.666687 8.00002C0.666687 12.0501 3.94993 15.3334 8.00002 15.3334ZM4.70017 7.41423C4.43982 7.67458 4.43982 8.09669 4.70017 8.35704L6.58578 10.2427C6.84613 10.503 7.26824 10.503 7.52859 10.2427L11.2998 6.47143C11.5602 6.21108 11.5602 5.78897 11.2998 5.52862C11.0395 5.26827 10.6174 5.26827 10.357 5.52862L7.05719 8.82845L5.64297 7.41423C5.38263 7.15388 4.96052 7.15388 4.70017 7.41423Z",fill:"#067647"})),error:e("svg",{key:"f19d347d7ccdec3f2074cda202afb58a64e3102a",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"3be9ea0aa39a9f44da97c3fd525f7aabc81bb606","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00002 15.3334C12.0501 15.3334 15.3334 12.0501 15.3334 8.00002C15.3334 3.94993 12.0501 0.666687 8.00002 0.666687C3.94993 0.666687 0.666687 3.94993 0.666687 8.00002C0.666687 12.0501 3.94993 15.3334 8.00002 15.3334Z",fill:"white"}),e("path",{key:"500223e70cf8c420d2d81e0ce721bf6f1bbfaa17","fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.3334 8.00002C15.3334 12.0502 12.0502 15.3334 8.00002 15.3334C3.94989 15.3334 0.666687 12.0502 0.666687 8.00002C0.666687 3.94989 3.94989 0.666687 8.00002 0.666687C12.0502 0.666687 15.3334 3.94989 15.3334 8.00002ZM5.80471 4.862C5.54445 4.60158 5.12225 4.60158 4.862 4.862C4.60158 5.12225 4.60158 5.54445 4.862 5.80471L7.05715 8.00002L4.862 10.1953C4.60158 10.4556 4.60158 10.8778 4.862 11.138C5.12225 11.3985 5.54445 11.3985 5.80471 11.138L8.00002 8.94289L10.1953 11.138C10.4556 11.3985 10.8778 11.3985 11.138 11.138C11.3985 10.8778 11.3985 10.4556 11.138 10.1953L8.94289 8.00002L11.138 5.80471C11.3985 5.54445 11.3985 5.12225 11.138 4.862C10.8778 4.60158 10.4556 4.60158 10.1953 4.862L8.00002 7.05715L5.80471 4.862Z",fill:"#B42318"}))};return e("div",{key:"e1cbdd0ccfc0230d093d92279b585e37a44e8e08",class:"progress-wrapper",style:{direction:this.RTL?"rtl":"ltr"}},this.showLabel&&e("h3",{key:"d940e337ded5100a826a3180a30890736b7ca166"},this.label),e("div",{key:"815435e58e3c989fe7475a0f265793a85ca55364",class:`progress-bar-container ${n[this.size]}`},e("div",{key:"fd9e9f68211d5b5d36df2441fa1d684fc84d27b1",class:`progress-bar ${o}`,style:{width:`${i}%`}},this.size==="large"&&e("span",{key:"2b145f82e470ae10f467ef506d2332804f9bebe2",class:"progress-bar-text"},this.percentage,"%"))),this.showHelperText&&e("div",{key:"222ac21690b58ecbe536dd3dda598ddf51d9d2ba",class:"progress-bar__note"},e("div",{key:"e5ad8b4287723086ddb63ff1d4f4dc3222f2d3f8",class:"icon"},this.error?h.error:this.success?h.primary:h.neutral),e("div",{key:"aaf7cf21017d487aa5b11440274d3a09b0291424",class:"content"},e("p",{key:"c7b9271cce2327da93226466c7f950c8ae23fb17"},this.helperText))))}},[0,"dga-progress-bar",{percentage:[2],RTL:[4,"r-t-l"],size:[1],progressStyle:[1,"progress-style"],showLabel:[4,"show-label"],showHelperText:[4,"show-helper-text"],error:[4],success:[4],label:[1],helperText:[1,"helper-text"]}]);function Ri(){if(typeof customElements>"u")return;["dga-progress-bar"].forEach(n=>{switch(n){case"dga-progress-bar":customElements.get(n)||customElements.define(n,Hi);break}})}const Ui=k(class extends u{constructor(){super(),this.__registerHost(),this.percentage=0}handleInputChange(n){const o=n.target;this.percentage=Number(o.value)}render(){return e("div",{key:"a664969603f2f8a5a075b8e43f57398329d7b0f2"},e("h1",{key:"24d2de92286db3e67e448947917ff71743030a63"},"Progress Bar Example"),e("div",{key:"ed19e5b5ef589f6e9c1df08c3cf58be864e3bab6",style:{padding:"50px",display:"flex",gap:"20px"}},e("div",{key:"09e51d3f7b4cc9afce636e07a01ce2820c110527",style:{display:"flex",flexDirection:"column",gap:"20px"}},e("dga-circular-progress-bar",{key:"3bcd7d055bfc5178de9871ee4f6cf1b68bc88161",size:"200px",percentage:this.percentage,text:"Active users"}),e("dga-circular-progress-bar",{key:"6ac72010595b488d3a9bc760453014ee40d4ac03",size:"160px",percentage:this.percentage,color:"success",icon:"success",variant:"success",text:"Active users"}),e("dga-circular-progress-bar",{key:"558d117b5a3051a04c61fc45617d4d0f4f19714a",size:"120px",percentage:this.percentage,text:"Active users"}),e("dga-circular-progress-bar",{key:"9f0aaa6c9408cca1a35d04264c2020da69ef99c8",size:"80px",percentage:this.percentage,text:"Active users"}),e("dga-circular-progress-bar",{key:"3a6d5a4cb3486e3942770d17039d17afe396e207",size:"64px",percentage:this.percentage}),e("dga-progress-bar",{key:"297988e81b3dd8f2b0d0d7cb2b0705d24a5c2ac8",percentage:this.percentage,size:"large"}),e("dga-progress-bar",{key:"92d9fe003c72b7d43c5a8b05bb85ead79f9db78e",percentage:this.percentage}),e("input",{key:"b59521c8199d8df24c60b167c47c7f04bfb33892",type:"range",min:"0",max:"100",value:this.percentage,onInput:n=>this.handleInputChange(n)}),this.percentage,"%"),e("div",{key:"2f4e938fb98b13ec3d6844090a14aef52bf07933",style:{display:"flex",flexDirection:"column",gap:"20px"}})))}},[0,"dga-progress-bar-usage",{percentage:[32]}]);function Ys(){if(typeof customElements>"u")return;["dga-progress-bar-usage","dga-circular-progress-bar","dga-progress-bar"].forEach(n=>{switch(n){case"dga-progress-bar-usage":customElements.get(n)||customElements.define(n,Ui);break;case"dga-circular-progress-bar":customElements.get(n)||ki();break;case"dga-progress-bar":customElements.get(n)||Ri();break}})}const Ws=Ui,Vs=Ys,Gs=Hi,Js=Ri,Ks=Mo,Qs=ae,Ns=Io,nd=Bo,ed=So,td=Do,od=Po,id=To,hd=Oo,rd=Fo,Zi=k(class extends u{constructor(){super(),this.__registerHost(),this.SILENCE_TIMEOUT_DURATION=8e3,this.label=void 0,this.placeholder=void 0,this.size="lg",this.variant="default",this.error=!1,this.showTrailingIcon=!0,this.icon=!0,this.disabled=!1,this.readonly=!1,this.name=S(),this.value="",this.onChange=()=>{},this.onInput=()=>{},this.onBlur=()=>{},this.speechLang="en",this.isActive=!1,this.isFocused=!1,this.isListening=!1}componentWillLoad(){const n=window.SpeechRecognition||window.webkitSpeechRecognition;n?(this.recognition=new n,this.recognition.continuous=!0,this.recognition.interimResults=!0,this.recognition.onresult=o=>{let i="";for(let h=o.resultIndex;h<o.results.length;++h)o.results[h].isFinal?this.value=o.results[h][0].transcript:i+=o.results[h][0].transcript;this.value=i||this.value},this.recognition.onend=()=>{this.isListening=!1},this.recognition.onerror=o=>{console.error("Speech recognition error",o),this.isListening=!1}):console.error("SpeechRecognition is not supported by this browser.")}startListening(){this.recognition&&(this.speechLang==="en"?this.recognition.lang="en-US":this.speechLang==="ar"&&(this.recognition.lang="ar"),this.isListening=!0,this.recognition.start(),this.resetSilenceTimer())}stopListening(){this.recognition&&(this.recognition.stop(),this.isListening=!1)}resetSilenceTimer(){this.clearSilenceTimer(),this.silenceTimeout=setTimeout(()=>{this.stopListening()},this.SILENCE_TIMEOUT_DURATION)}clearSilenceTimer(){this.silenceTimeout&&clearTimeout(this.silenceTimeout)}handleInputChange(n){console.log(this.value,"query"),this.onChange(n)}handleResetInput(){this.value=""}render(){return e("div",{key:"00f48bf7c7bc212922179f6107ea53d0ce5f5c8e",class:"dga-form-control"},this.label&&e("label",{key:"eb063358690673aa811814a5730f24d51b6e5890",class:"dga-label"},this.label),e("div",{key:"0b65210b8bc8ef8ca74ab7d3fc7e4bb19140c2f7",class:`dga-search-box dga-search-box--${this.size} ${this.error?"dga-search-box--error":""} ${this.variant!=="default"?`dga-search-box--${this.variant}`:""} ${this.isActive?"active":""} ${this.isFocused?"focus":""} ${this.disabled?"dga-search-box--disabled":""} ${this.readonly?"readOnly":""}`,ref:n=>this.inputContainerRef=n},this.icon&&e("span",{key:"6ee5c3e524d038bcf1719fc8a569b6cc7193b857",class:"dga-search-box__icon"},e("svg",{key:"02278e6cea6e574ae9758f041ae2c2ce5e0d4353",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"651e213e424d5a7e8ce1d5e6874b6e379a15e897","fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.16675 1.04163C4.67943 1.04163 1.04175 4.67931 1.04175 9.16663C1.04175 13.6539 4.67943 17.2916 9.16675 17.2916C11.1854 17.2916 13.0322 16.5554 14.4531 15.3369L17.8915 18.7752C18.1356 19.0193 18.5313 19.0193 18.7754 18.7752C19.0194 18.5312 19.0194 18.1354 18.7754 17.8914L15.337 14.453C16.5556 13.032 17.2917 11.1853 17.2917 9.16663C17.2917 4.67931 13.6541 1.04163 9.16675 1.04163ZM2.29175 9.16663C2.29175 5.36967 5.36979 2.29163 9.16675 2.29163C12.9637 2.29163 16.0417 5.36967 16.0417 9.16663C16.0417 12.9636 12.9637 16.0416 9.16675 16.0416C5.36979 16.0416 2.29175 12.9636 2.29175 9.16663Z",fill:"#161616"}))),e("input",{key:"cd03f7665688e386895b62104436833370c6eb75",name:this.name,type:"text",onFocus:()=>this.isFocused=!0,onBlur:n=>{this.isFocused=!1,this.onBlur(n)},class:"input__field",placeholder:this.placeholder,disabled:this.disabled,readOnly:this.readonly,onMouseDown:()=>this.isActive=!0,onMouseUp:()=>this.isActive=!1,onMouseOut:()=>this.isActive=!1,onChange:this.onChange,onInput:this.onInput}),e("div",{key:"527e87f94aa8a1efc0917eba89650c9ea9c03d4e",class:"dga-search-box__actions"},this.value.length>0&&e(H,{key:"2a9a761ed6812377583f0bce45da4b4039a24586"},e("button",{key:"ae58d2a7c07037fba36bd5847772708b43cbf084",class:"dga-search-box__action-btn",onClick:this.handleResetInput},e("i",{key:"8e98dccec459144924f7e632e120277a6c9f1cf7",class:"hgi-stroke hgi-cancel-01",style:{fontSize:"20px"}})),e("svg",{key:"f18dc15e6e5e017232076bda5aaaabd07baa8440",xmlns:"http://www.w3.org/2000/svg",width:"1",height:"26",viewBox:"0 0 1 26",fill:"none"},e("rect",{key:"374f56f4acebc8e580857347837ac105658219a9",x:"1",y:"0.5",width:"25",height:"1",transform:"rotate(90 1 0.5)",fill:"#D2D6DB"}))),this.showTrailingIcon&&e("dga-tooltip",{key:"daf482fea542d3e97ed542e339b7dfd42ed3aeec",tooltipTitle:"Search by voice",direction:"bottom",beakAlignment:"center",beakPlacement:"top"},e("button",{key:"935c3ea71792222752e437083ce357dfc6653f95",class:"dga-search-box__search-btn",onClick:()=>this.startListening(),disabled:this.isListening},this.isListening?e("span",{class:"dga-search-box__icon"},e("i",{class:"hgi-solid hgi-mic-01",style:{fontSize:"20px"}})):e("span",{class:"dga-search-box__icon"},e("i",{class:"hgi-stroke hgi-mic-01",style:{fontSize:"20px"}})))))))}},[0,"dga-search-box",{label:[1],placeholder:[1],size:[1],variant:[1],error:[4],showTrailingIcon:[4,"show-trailing-icon"],icon:[4],disabled:[4],readonly:[4],name:[1],value:[1],onChange:[16],onInput:[16],onBlur:[16],speechLang:[1,"speech-lang"],isActive:[32],isFocused:[32],isListening:[32]}]);function Xi(){if(typeof customElements>"u")return;["dga-search-box","dga-tooltip"].forEach(n=>{switch(n){case"dga-search-box":customElements.get(n)||customElements.define(n,Zi);break;case"dga-tooltip":customElements.get(n)||Mn();break}})}const Yi=k(class extends u{constructor(){super(),this.__registerHost(),this.value=""}render(){return e("div",{key:"944f4d6bc3710918903871c0611473d31705b979"},e("h1",{key:"ebdc3342ecdf86782eed96736517098756231254"},"Search Box Example"),e("div",{key:"b41b1237af2b695aa4a84d51e76019482464a9e3",style:{padding:"50px"}},e("div",{key:"9ef47124b945c5111e4fb6c4686c08c517fd563f",style:{display:"flex",flexDirection:"column",gap:"16px"}},e("dga-search-box",{key:"da4c3c84e545c54d1be20b5e9b73a0854014df13",variant:"default",placeholder:"test placeholder",onChange:n=>{const o=n.target;console.log("search changed"),this.value=o.value},onInput:n=>{console.log("search changed",n.target.value),this.value=n.target.value}}))))}},[0,"dga-search-box-usage",{value:[32]}]);function gd(){if(typeof customElements>"u")return;["dga-search-box-usage","dga-search-box","dga-tooltip"].forEach(n=>{switch(n){case"dga-search-box-usage":customElements.get(n)||customElements.define(n,Yi);break;case"dga-search-box":customElements.get(n)||Xi();break;case"dga-tooltip":customElements.get(n)||Mn();break}})}const ad=Yi,cd=gd,sd=Zi,dd=Xi,Wi=k(class extends u{constructor(){super(),this.__registerHost(),this.min=0,this.max=100,this.step=1,this.range=!0,this.label=void 0,this.showLabel=!0,this.showHelperText=!0,this.helperText=void 0,this.size="small",this.minValue=void 0,this.maxValue=void 0}calculatePositions(){const n=(this.minValue-this.min)/(this.max-this.min)*100,o=(this.maxValue-this.min)/(this.max-this.min)*100;this.minPos=n,this.maxPos=o,this.railColorStyle=this.range?{left:`${n}%`,width:`${o-n}%`}:{left:"0%",width:`${n}%`}}componentWillLoad(){this.minValue=this.min,this.maxValue=this.max,this.calculatePositions()}watchMinValue(n){this.minValue=n,this.calculatePositions()}watchMaxValue(n){this.maxValue=n,this.calculatePositions()}watchRangeValue(){this.calculatePositions()}handleMinChange(n){const o=n.target,i=this.range?Math.min(+o.value,this.maxValue-this.step):Math.min(+o.value);this.minValue=i,this.calculatePositions()}handleMaxChange(n){const o=n.target,i=Math.max(+o.value,this.minValue+this.step);this.maxValue=i,this.calculatePositions()}render(){return e("div",{key:"bc79508cb8c7ec7d31fc5e436ae9c94f318b6645",class:`range-slider-wrapper ${this.size}`},e("div",{key:"f8830a07e48cbfa3402d753c65bad8ec2df0bba4",class:"range-slider-input-wrapper"},e("input",{key:"cee24c02c6ec0b6ae56f1800df1ea1e9e7524194",class:"range-slider-input",type:"range",value:this.minValue,min:this.min,max:this.max,step:this.step,onInput:this.handleMinChange.bind(this)}),this.range&&e("input",{key:"73a2bbdbee6616ddf03c9c4fb1f6fd0e81ade8b1",class:"range-slider-input",type:"range",value:this.maxValue,min:this.min,max:this.max,step:this.step,onInput:this.handleMaxChange.bind(this)})),e("div",{key:"42ecc00fba624609b4e92e60b487cd1868c5fd0f",class:"range-slider-container"},this.showLabel&&e("h3",{key:"c6e6bab85612e463cd82e9ce777151ecb01aaaba"},this.label),e("div",{key:"146fae3b05e70b780da3518dcf668e55779bd236",class:"range-slider-control-wrapper"},e("div",{key:"ae5a22a9202939cf153ad677c04db3112a99d004",class:"range-slider-control",style:{left:`${this.minPos}%`}}),e("div",{key:"a642f75c2d8ac2fe3c0d54b74ef0cb72e36fedac",class:"range-slider-rail"},this.range&&e("div",{key:"6b6a2642026978f88d2fff4241a140f68abc8ad4",class:"range-slider-number_left"},this.minValue),e("div",{key:"f7bf6d55e3928ffa753ec3e2d7e657b11638fa9b",class:"range-slider-inner-rail",style:this.railColorStyle}),this.range&&e("div",{key:"8a96546fc5c374a26b9d27875af34b821c06de75",class:"range-slider-number_right"},this.maxValue),!this.range&&e("div",{key:"cd2ff3b59abe1ffe4e97d765dc09ddafc8da130b",class:"range-slider-number_right"},this.minValue)),this.range&&e("div",{key:"d56d4c878f6f8b814321d712ba20fde5af2224d3",class:"range-slider-control",style:{left:`${this.maxPos}%`}}),this.showHelperText&&e("div",{key:"87c12b17a646bd29bbe8c0e5e52fd931bf5249ff",class:"range-slider-note"},e("div",{key:"a0720f82917b6ed1ed35269e333a2b8b27f68f12",class:"range-slider-note-icon"},e("svg",{key:"ab3e2e5d870161954aea319ba91ba62c1370d238",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{key:"b82f0d114e125cf6afb5d591d504270c86ef2c07","clip-path":"url(#clip0_17869_405)"},e("path",{key:"80f0fad589a998c4129c3760c6c3e41a395fc109",d:"M6.06004 6.00001C6.21678 5.55446 6.52614 5.17875 6.93334 4.93943C7.34055 4.70012 7.8193 4.61264 8.28483 4.69248C8.75035 4.77233 9.17259 5.01436 9.47676 5.3757C9.78093 5.73703 9.94741 6.19436 9.94671 6.66668C9.94671 8.00001 7.94671 8.66668 7.94671 8.66668M8.00004 11.3333H8.00671M14.6667 8.00001C14.6667 11.6819 11.6819 14.6667 8.00004 14.6667C4.31814 14.6667 1.33337 11.6819 1.33337 8.00001C1.33337 4.31811 4.31814 1.33334 8.00004 1.33334C11.6819 1.33334 14.6667 4.31811 14.6667 8.00001Z",stroke:"#384250","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),e("defs",{key:"c62a467f85438e6c78b311b5a2c366431bc36d73"},e("clipPath",{key:"13f2de07dd722bd50225883c5ecdbb33159adad8",id:"clip0_17869_405"},e("rect",{key:"886fbb91dff6bfec73e93d037b51b337507bc4d4",width:"16",height:"16",fill:"white"}))))),e("div",{key:"ba35f4a35b15d1db18b31271e89cf6e41f613d10",class:"range-slider-note-content"},e("p",{key:"677ee0d6fa4a7ff285701b637b21d4d5df57a9b3"},this.helperText))))))}static get watchers(){return{min:["watchMinValue"],max:["watchMaxValue"],range:["watchRangeValue"]}}},[0,"dga-slider",{min:[2],max:[2],step:[2],range:[4],label:[1],showLabel:[4,"show-label"],showHelperText:[4,"show-helper-text"],helperText:[1,"helper-text"],size:[1],minValue:[32],maxValue:[32]},void 0,{min:["watchMinValue"],max:["watchMaxValue"],range:["watchRangeValue"]}]);function fd(){if(typeof customElements>"u")return;["dga-slider"].forEach(n=>{switch(n){case"dga-slider":customElements.get(n)||customElements.define(n,Wi);break}})}const ld=Wi,bd=fd,ud=Uo,kd=Zo,Vi=k(class extends u{constructor(){super(),this.__registerHost(),this.onSelect=Y(this,"onSelect",7),this.type=void 0,this.variant=void 0,this.options=void 0,this.label=void 0,this.icon=void 0,this.dpIsActive=!1,this.selectedOption=null}handleSuffixClick(){this.suffixBtn.classList.toggle("open")}handleOptionSelect(n){this.selectedOption=n,this.onSelect.emit(n.value);const o=this.suffixBtn.querySelector(".dropdown__label");o&&o.classList.add("dropdown__label--selection"),this.suffixBtn.classList.remove("open"),this.suffixBtn.classList.add("selected")}render(){return this.type==="text"?e("div",{class:`input__suffix input__suffix--${this.variant}-text`},e("span",{class:"input__suffix-label"},this.label)):e(H,null,e("button",{class:`input__suffix input__suffix--${this.variant} input__dropdown-btn`,onMouseDown:()=>this.dpIsActive=!0,onMouseUp:()=>this.dpIsActive=!1,onMouseOut:()=>this.dpIsActive=!1,onClick:()=>this.handleSuffixClick(),ref:n=>this.suffixBtn=n},e("span",{class:"input__suffix-icon"},this.icon),e("span",{class:"dropdown__label"},this.selectedOption&&Object.keys(this.selectedOption).length?this.selectedOption.label:" "),e("span",{class:"input__suffix-label"},this.label),e("span",{class:"input__suffix-chevron"},e("dga-icon",{icon:"ArrowDown01Icon",variant:"stroke"}))),e("ul",{class:"input__dropdown-list"},this.options&&this.options.map(n=>{var o;return e("li",{key:n.value},e("button",{class:`dropdown__option ${((o=this.selectedOption)===null||o===void 0?void 0:o.value)===n.value?"selected":""}`,onClick:()=>this.handleOptionSelect(n)},e("span",{class:"dropdown__option-label"},n.label),e("span",{class:"dropdown__option-icon"},e("dga-icon",{icon:"Tick02Icon",variant:"solid"}))))})))}},[0,"dga-suffix",{type:[1],variant:[1],options:[16],label:[1],icon:[8],dpIsActive:[32],selectedOption:[32]}]);function pd(){if(typeof customElements>"u")return;["dga-suffix","dga-icon"].forEach(n=>{switch(n){case"dga-suffix":customElements.get(n)||customElements.define(n,Vi);break;case"dga-icon":customElements.get(n)||E();break}})}const md=Vi,wd=pd,vd=Yo,yd=Wo,xd=Go,qd=Jo,_d=No,zd=ni,jd=At,Cd=W,$d=oi,Ed=Dn,Sd=hi,Dd=ri,Md=ai,Id=Mn,Bd=Gt,Ad=Jt,Pd=Ot,Td=ee,Ld=Tt,Od=en,Fd=Lt,Hd=Sn,Rd=Pt,Ud=nn;/**
|
|
1037912
|
+
}`,Sa=Ea,si=k(class extends u{constructor(){super(),this.__registerHost(),this.handleClick=()=>{this.isCurrentMonth&&this.onSelect&&(console.log(this.date,"this.date"),this.onSelect(this.date))},this.handleAddPressed=n=>{n.currentTarget.classList.add("active")},this.handleRemovePressed=n=>{n.currentTarget.classList.remove("active")},this.date=void 0,this.isCurrentMonth=void 0,this.isSelected=void 0,this.isToday=void 0,this.midRange=!1,this.isFirstRangeChild=!1,this.isLastRangeChild=!1,this.onSelect=void 0}render(){let n="date-cell";return this.isCurrentMonth||(n+=" date-cell--not-current-month"),this.isSelected&&(n+=" date-cell--selected"),this.isToday&&(n+=" date-cell--today"),this.midRange&&(n+=" date-cell--mid-range"),this.isFirstRangeChild&&(n+=" date-cell--mid-range--first-child"),this.isLastRangeChild&&(n+=" date-cell--mid-range--last-child"),e("button",{key:"bcf76d259c0db42e62caab6d1e5e64962dd58b04",type:"button",class:n,onClick:this.handleClick,onMouseDown:this.handleAddPressed,onMouseUp:this.handleRemovePressed,onMouseOut:this.handleRemovePressed,disabled:!this.isCurrentMonth},e("div",{key:"a7920b28cfc58f80801a02e71822cadd6ee6853c",class:"date-cell__label"},e("span",{key:"490ab9fad29fc7465616538faccc1adcf17a48a9"},this.date.getDate())))}static get style(){return Sa}},[0,"date-cell",{date:[16],isCurrentMonth:[4,"is-current-month"],isSelected:[4,"is-selected"],isToday:[4,"is-today"],midRange:[4,"mid-range"],isFirstRangeChild:[4,"is-first-range-child"],isLastRangeChild:[4,"is-last-range-child"],onSelect:[16]}]);function ce(){if(typeof customElements>"u")return;["date-cell"].forEach(n=>{switch(n){case"date-cell":customElements.get(n)||customElements.define(n,si);break}})}const Da=si,Ma=ce,Ia=ct,Ba=st,Aa=lt,Pa=bt,di=k(class extends u{constructor(){super(),this.__registerHost(),this.breadcrumbClick=Y(this,"breadcrumbClick",7),this.breadcrumbItems=[],this.items="[]"}componentWillLoad(){this.handleItemsChange(this.items)}handleItemsChange(n){try{this.breadcrumbItems=this.renderItems(JSON.parse(n))}catch(o){console.error("Invalid JSON in items prop:",o)}}isEllipsisItem(n){return n.ellipsis===!0}renderItems(n){return n.length<=5?n:[n[0],{ellipsis:!0},...n.slice(-2)]}handleClick(n,o,i){i.disabled||this.breadcrumbClick.emit({e:n,link:o,item:i})}render(){return e("nav",{key:"d4d18da600325dd3c70481ed7520638e6a913cfa","aria-label":"breadcrumb"},e("ul",{key:"d43fe0f906498ccbf7f2fb41166a600b81e521bd",class:"breadcrumb"},this.breadcrumbItems.map((n,o)=>{if(this.isEllipsisItem(n))return e("li",{key:o,class:"breadcrumb-item ellipsis"},e("span",{class:"breadcrumb-icon"},e("dga-icon",{icon:"ArrowRight01Icon",variant:"stroke",type:"rounded"})),e("a",{href:"#",class:"link link--sm link--neutral"},"..."));const i=o===this.breadcrumbItems.length-1,h=o===0;return e("li",{key:o,class:{"breadcrumb-item":!0,active:i},"aria-current":i?"page":void 0},n.path&&!i?e(H,null,!h&&e("span",{class:"breadcrumb-icon"},e("dga-icon",{icon:"ArrowRight01Icon",variant:"stroke",type:"rounded"})),e("a",{onClick:a=>this.handleClick(a,n.path,n),class:{"link link--sm link--neutral":!0,"disabled-link":n.disabled},href:n.disabled?void 0:n.path,"aria-disabled":n.disabled?"true":"false"},e("span",{class:"link__label"},n.label))):e(H,null,e("span",{class:"breadcrumb-icon"},e("dga-icon",{icon:"ArrowRight01Icon",variant:"stroke",type:"rounded"})),e("a",{onClick:a=>this.handleClick(a,n.path,n),class:{"link link--sm link--neutral link--disabled":!0,"disabled-link":n.disabled},href:n.disabled?void 0:n.path,"aria-disabled":n.disabled?"true":"false"},e("span",{class:"link__label"},n.label))))})))}static get watchers(){return{items:["handleItemsChange"]}}},[0,"dga-breadcrumbs",{items:[1]},void 0,{items:["handleItemsChange"]}]);function Ta(){if(typeof customElements>"u")return;["dga-breadcrumbs","dga-icon"].forEach(n=>{switch(n){case"dga-breadcrumbs":customElements.get(n)||customElements.define(n,di);break;case"dga-icon":customElements.get(n)||E();break}})}const La=di,Oa=Ta,Fa=kt,Ha=Z,Ra=wt,Ua=vt,fi=k(class extends u{constructor(){super(),this.__registerHost(),this.getRealisticPath=n=>n.map((o,i)=>`${i===0?"M":"L"} ${o.x} ${o.y}`).join(" "),this.type="realistic",this.trend="positive",this.size="lg",this.showMarker=!1,this.data=[],this.lineColor=this.trend==="positive"?"#067647":"#B42318",this.fillColor=this.trend==="positive"?"#079455":"#D92D20",this.width=this.size==="lg"?328:128,this.height=64}getLinePath(){const n=this.getPoints();switch(this.type){case"realistic":return this.getRealisticPath(n);case"wavy":return this.getWavyPath(n);case"straight":return this.getStraightPath(n);case"layers":return this.getSmoothPath(n);default:return""}}getPoints(){return this.data.map((n,o)=>({x:o/(this.data.length-1)*this.width,y:this.height-n/Math.max(...this.data)*this.height}))}getSmoothPath(n){return n.reduce((o,i,h,a)=>{if(h===0)return`M ${i.x},${i.y}`;const d=a[h-1],f=(d.x+i.x)/2;return`${o} C ${f},${d.y} ${f},${i.y} ${i.x},${i.y}`},"")}getWavyPath(n){return n.reduce((o,i,h)=>h===0?`M ${i.x},${i.y}`:`${o} Q ${i.x-10},${i.y+10} ${i.x},${i.y}`,"")}getStraightPath(n){return n.reduce((o,i,h)=>h===0?`M ${i.x},${i.y}`:`${o} L ${i.x},${i.y}`,"")}render(){const n=this.getLinePath(),o=`${n} L 129 65 L 1 65 Z`;return e("svg",{key:"39037b1cb9e3ca4c7b62fbdc6bb7904ceeded3c8",width:"130",height:"66",viewBox:"0 0 130 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("mask",{key:"22be63443a51d139288b4af23eb6b6ed16837a0d",id:"mask0",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"128",height:"64"},e("rect",{key:"c0b3936e9cbd44e3756dffd5bbc2589d18c214bb",width:"128",height:"64",transform:"translate(1 1)",fill:"url(#paint0_linear)"})),e("g",{key:"20470a586985efdaca15adaa16e3cc619b43f553",mask:"url(#mask0)"},e("path",{key:"98b581ed2eda0abb363fa83fcea6b57d10f37298",opacity:"0.2",d:o,fill:"#079455"})),e("path",{key:"f099bea3c5b5033f4035178a80a665f1cf937966",d:n,stroke:"#067647","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{key:"0658128bc343d7403aeb898f472ab7f691601f12",opacity:"0.2"},e("rect",{key:"714241fa63193068cfbe6d271e60daff34e842d3",x:"76",y:"5",width:"20",height:"20",rx:"10",stroke:"#067647","stroke-width":"2"})),e("rect",{key:"0b60b92efd3ba6a69cc174c41ff98307909cbe0b",x:"81",y:"10",width:"10",height:"10",rx:"5",fill:"white"}),e("rect",{key:"c87dffa52229ce8a73c09e85e7be3820ba4d5780",x:"81",y:"10",width:"10",height:"10",rx:"5",stroke:"#067647","stroke-width":"2"}),e("defs",{key:"236058fd11c3ee879fe6dabf7211f0c2c0a21376"},e("linearGradient",{key:"38ee15538e4b8760e4bc4f6779388cac52ee6f8b",id:"paint0_linear",x1:"64",y1:"0",x2:"64",y2:"64",gradientUnits:"userSpaceOnUse"},e("stop",{key:"62e8463a554a7cc3bac6ad19dfb71a7e0eafcd34"}),e("stop",{key:"c0278ef166adc952e77849bb931ae10a1c254788",offset:"1","stop-opacity":"0"}))))}},[0,"dga-chart-v2",{type:[1],trend:[1],size:[1],showMarker:[4,"show-marker"],data:[16],lineColor:[32],fillColor:[32],width:[32],height:[32]}]);function li(){if(typeof customElements>"u")return;["dga-chart-v2"].forEach(n=>{switch(n){case"dga-chart-v2":customElements.get(n)||customElements.define(n,fi);break}})}const Za=fi,Xa=li,bi=k(class extends u{constructor(){super(),this.__registerHost(),this.type="realistic",this.trend="positive",this.size="lg",this.showMarker=!1,this.data=[],this.lineColor=this.trend==="positive"?"#067647":"#B42318",this.fillColor=this.trend==="positive"?"#079455":"#D92D20",this.width=this.size==="lg"?328:128,this.height=64}handleSizeChange(){this.width=this.size==="lg"?328:128}getLinePath(){const n=this.getPoints();switch(this.type){case"realistic":return this.getSmoothPath(n);case"wavy":return this.getWavyPath(n);case"straight":return this.getStraightPath(n);case"layers":return this.getSmoothPath(n);default:return""}}getPoints(){return this.data.map((n,o)=>({x:o/(this.data.length-1)*this.width,y:this.height-n/Math.max(...this.data)*this.height}))}getSmoothPath(n){return n.reduce((o,i,h,a)=>{if(h===0)return`M ${i.x},${i.y}`;const d=a[h-1],f=(d.x+i.x)/2;return`${o} C ${f},${d.y} ${f},${i.y} ${i.x},${i.y}`},"")}getWavyPath(n){return n.reduce((o,i,h)=>h===0?`M ${i.x},${i.y}`:`${o} Q ${i.x-10},${i.y+10} ${i.x},${i.y}`,"")}getStraightPath(n){return n.reduce((o,i,h)=>h===0?`M ${i.x},${i.y}`:`${o} L ${i.x},${i.y}`,"")}getAreaPath(){return`${this.getLinePath()} L ${this.width},${this.height} L 0,${this.height} Z`}render(){const n=this.getLinePath(),o=this.getAreaPath();return e("svg",{key:"51168bffbab106dfe9183604eb317cd03cfde81c",width:this.width,height:this.height,viewBox:`0 0 ${this.width} ${this.height}`},e("defs",{key:"a37231447b2151f29637d3989aa2e7b7d1429613"},e("linearGradient",{key:"51924102685dd737c4ee24a9e08aa11161a13a5b",id:"areaGradient",x1:"0",x2:"0",y1:"0",y2:"1"},e("stop",{key:"6cf06627f38f9905e52cc0bdc9a3e36be5940125",offset:"0%","stop-color":this.fillColor,"stop-opacity":"0.25"}),e("stop",{key:"3dd51645b79561f2d84b323f9cbb2ecff64d909c",offset:"100%","stop-color":this.fillColor,"stop-opacity":"0"}))),e("path",{key:"63241183cd329c4cc7a3df0e668705e2c84b21c6",d:o,fill:"url(#areaGradient)"}),e("path",{key:"b87ab96a65a7ed81f5e093376b897bd40caa1829",d:n,fill:"none",stroke:this.lineColor,"stroke-width":"2"}),this.showMarker&&this.getPoints().map(i=>e("circle",{cx:i.x,cy:i.y,r:"4",fill:"white",stroke:this.lineColor,"stroke-width":"2"})))}static get watchers(){return{size:["handleSizeChange"]}}},[0,"dga-chart",{type:[1],trend:[1],size:[1],showMarker:[4,"show-marker"],data:[16],lineColor:[32],fillColor:[32],width:[32],height:[32]},void 0,{size:["handleSizeChange"]}]);function se(){if(typeof customElements>"u")return;["dga-chart"].forEach(n=>{switch(n){case"dga-chart":customElements.get(n)||customElements.define(n,bi);break}})}const Ya=bi,Wa=se,Va=mt,Ga=dn,Ja=qt,Ka=_t,ui=k(class extends u{constructor(){super(),this.__registerHost(),this.icons={success:"hgi-solid hgi-sharp hgi-checkmark-circle-02",info:"hgi-solid hgi-sharp hgi-information-circle",neutral:"hgi-solid hgi-sharp hgi-information-circle",warning:"hgi-solid hgi-alert-02",critical:"hgi-solid hgi-alert-circle"},this.sizes={"200px":200,"160px":160,"120px":120,"80px":80,"64px":64},this.size="200px",this.text=void 0,this.variant="primary",this.icon=void 0,this.percentage=0,this.internalPercentage=void 0}updateInternalPercentage(){this.internalPercentage=this.variant==="success"?100:this.percentage}componentWillLoad(){this.updateInternalPercentage()}render(){const n=this.sizes[this.size]/10,o=(this.sizes[this.size]-n)/2,i=2*Math.PI*o,h=i*(1-this.internalPercentage/100);return e("div",{key:"ba807f5e917f0cc2ba71d707ce081e8e7304f06e",class:"circular-progress-bar","aria-size":this.size},e("div",{key:"2b9c815f693defd2a3de8e1cd8cd588d51109dbe",class:"circular-progress-bar__label"},this.variant==="success"&&this.icon&&e("i",{key:"be46062808e57e454012a4853aa1296a2f1156ca",class:`circular-progress-bar__label--icon ${this.icons[this.icon]}`}),this.variant!=="success"&&e("h4",{key:"d461cb92d3c937ba956ee2087b2a93e41a62a135",class:"circular-progress-bar__label--percentage"},this.internalPercentage,"%"),this.text&&e("h5",{key:"e2d3fd543e1cf2c867504a533b595da65c24d061",class:`circular-progress-bar__label--text ${this.variant}`},this.text)),e("svg",{key:"66aaee3b702afa094d9c90cf0b64aee6fb9fad9d",width:this.sizes[this.size],height:this.sizes[this.size],viewBox:`0 0 ${this.sizes[this.size]} ${this.sizes[this.size]}`},e("circle",{key:"215d48906fb5d53671edaad0f8d2955298cca8ac",class:"track",fill:"none",stroke:"#e6e6e6",r:o,cx:this.sizes[this.size]/2,cy:this.sizes[this.size]/2,"stroke-width":n}),e("circle",{key:"e5b30951fdaa97fc394bf88c0ba282c599018738",class:`tail tail--${this.variant}`,fill:"none",stroke:"currentColor",r:o,cx:this.sizes[this.size]/2,cy:this.sizes[this.size]/2,"stroke-width":n,"stroke-linecap":"round","stroke-dasharray":i,"stroke-dashoffset":h,transform:`rotate(-180 ${this.sizes[this.size]/2} ${this.sizes[this.size]/2})`,style:{transition:"stroke-dashoffset 0.5s ease"}})))}static get watchers(){return{percentage:["updateInternalPercentage"],variant:["updateInternalPercentage"]}}},[0,"dga-circular-progress-bar",{size:[1],text:[1],variant:[1],icon:[1],percentage:[2],internalPercentage:[32]},void 0,{percentage:["updateInternalPercentage"],variant:["updateInternalPercentage"]}]);function ki(){if(typeof customElements>"u")return;["dga-circular-progress-bar"].forEach(n=>{switch(n){case"dga-circular-progress-bar":customElements.get(n)||customElements.define(n,ui);break}})}const Qa=ui,Na=ki,nc=jt,ec=Ct,tc=Dt,oc=Mt,ic=Et,hc=St;var rc=function(t,n){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(o[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,i=Object.getOwnPropertySymbols(t);h<i.length;h++)n.indexOf(i[h])<0&&Object.prototype.propertyIsEnumerable.call(t,i[h])&&(o[i[h]]=t[i[h]]);return o};const pi=k(class extends u{constructor(){super(),this.__registerHost(),this.sortData=(n="up",o,i)=>{if(n==="up"){const h=[...this.data.sort((a,d)=>d[o]>a[o]?1:a[o]>d[o]?-1:0)];this.sortedData=h}else if(n==="down"){const h=[...this.data.sort((a,d)=>a[o]>d[o]?1:d[o]>a[o]?-1:0)];this.sortedData=h}this.cells[i].sort=n=="down"?"up":"down"},this.handleSelectedRowChanges=(n,o)=>{const i=[...this.data];i[o].selected=n,this.sortedData=i,this.getSelectedRows&&this.getSelectedRows({selectedRows:i.filter(h=>h.selected),currentSelectedRow:i[o],currentSelectedRowIndex:o})},this.selectAll=n=>{const o=[...this.data];o.forEach(i=>i.selected=n),this.sortedData=o,this.getSelectedRows&&this.getSelectedRows({selectedRows:o})},this.data=[{selected:!0},{selected:!0}],this.rowDivider=!0,this.showSelectCheckBox=!0,this.alternate=!0,this.cells=[{propertyName:"test",isFilter:!1,isSort:!1,title:"Test",type:"propertyName",colSpan:1},{propertyName:"test",isFilter:!1,isSort:!1,title:"Test",type:"propertyName",colSpan:1}],this.contained=!0,this.getSelectedRows=void 0,this.pressOnFilter=void 0,this.sortedData=[],this.direction=!1}componentDidLoad(){document.dir?document.dir==="rtl"?this.direction=!0:this.direction=!1:document.documentElement.lang?document.documentElement.lang==="ar"?this.direction=!0:this.direction=!1:this.direction=!1}componentDidUpdate(){const n=[...this.data.map(o=>(o.selected=!1,o))];this.sortedData=n}render(){return e("div",{key:"8102c7419b110f8541c80944a67bbb6986e2bbf3",class:`table-wrapper ${this.contained?"table-contained":""}`},e("table",{key:"910be24f644da2a4e0bfa7ba604decf11dfd2b13",class:` azm-table ${this.contained?"table-contained":""}`,style:{direction:this.direction?"rtl":"ltr"}},e("thead",{key:"272bfac2cd722962fbdde8c2bea338fbf9862216"},e("tr",{key:"29b4046121ac9a5d9c3f1fe2e65337a35dbb58ac",class:`${this.rowDivider?"row-divider":""}`},this.showSelectCheckBox&&e("th",{key:"5312173764fe8fd4b05168b3f02b14281e49dcdd",style:{width:"20px"}},e("dga-checkbox",{key:"f5bc122b104ba6e793d86e2c013f333fc56b1b73",showBorderOnFocusAndFocusOute:!1,value:"true",onChange:n=>this.selectAll(n.target.checked)})),this.cells.map((n,o)=>{var{sort:i,isSort:h,propertyName:a,type:d}=n,f=rc(n,["sort","isSort","propertyName","type"]);return e("th",{key:o},e("span",null,e("span",{class:"text"},f.title),e("span",{class:"icon-wrapper"},h&&i=="up"&&d=="propertyName"&&e("button",{class:"btn btn--sort btn--icon btn--md",onClick:()=>this.sortData("up",a,o)},e("dga-icon",{icon:"SortByUp02Icon"})),h&&(!i||i=="down")&&d=="propertyName"&&e("button",{class:"btn btn--sort btn--icon btn--md",onClick:()=>this.sortData("down",a,o)},e("dga-icon",{icon:"SortByDown02Icon"})),f.isFilter&&e("button",{class:"btn btn--sort btn--icon btn--md ",onClick:()=>this.pressOnFilter&&this.pressOnFilter(a)},e("dga-icon",{icon:"FilterIcon"})))))}))),e("tbody",{key:"c0115157925e52ebb2b54d92c6bf670ad0e4da93"},this.sortedData.map((n,o)=>e("tr",{class:`${this.rowDivider?"row-divider":""} ${this.alternate?"alternate":""} ${n.selected?"row-selected":""} `,key:o},this.showSelectCheckBox&&e("td",null,e("dga-checkbox",{name:o+"checkboxSelection",value:n.selected,id:o+"checkboxSelection",showBorderOnFocusAndFocusOute:!1,onChange:i=>this.handleSelectedRowChanges(i.target.checked,o),checked:n.selected})))))))}},[0,"dga-data-table",{data:[16],rowDivider:[4,"row-divider"],showSelectCheckBox:[4,"show-select-check-box"],alternate:[4],cells:[16],contained:[4],getSelectedRows:[8,"get-selected-rows"],pressOnFilter:[8,"press-on-filter"],sortedData:[32],direction:[32]}]);function gc(){if(typeof customElements>"u")return;["dga-data-table","dga-checkbox","dga-icon"].forEach(n=>{switch(n){case"dga-data-table":customElements.get(n)||customElements.define(n,pi);break;case"dga-checkbox":customElements.get(n)||dn();break;case"dga-icon":customElements.get(n)||E();break}})}const ac=pi,cc=gc,He=t=>{const n=t.getMonth(),o=t.getFullYear(),i=new Date(o,n+1,0).getDate();return Array.from({length:i},(h,a)=>new Date(o,n,a+1))},Re=t=>{const n=new Date(t.getFullYear(),t.getMonth(),1).getDay(),o=new Date(t.getFullYear(),t.getMonth(),0),i=[];for(let h=0;h<n;h++)i.unshift(new Date(o.getFullYear(),o.getMonth(),o.getDate()-h));return i},Ue=t=>{const n=new Date(t.getFullYear(),t.getMonth()+1,0).getDay(),o=new Date(t.getFullYear(),t.getMonth()+1,1),i=[];for(let h=0;h<6-n;h++)i.push(new Date(o.getFullYear(),o.getMonth(),o.getDate()+h));return i},O=new Date,jn=new Date(O);jn.setDate(jn.getDate()-1);const mi=new Date(O);mi.setHours(0,0,0,0);const gn=new Date(O);gn.setHours(23,59,59,999);const wi=new Date(jn);wi.setHours(0,0,0,0);const vi=new Date(jn);vi.setHours(23,59,59,999);const In=new Date(O);In.setDate(O.getDate()-O.getDay());const Bn=new Date(O);Bn.setDate(O.getDate()+(6-O.getDay()));const yi=new Date(In);yi.setDate(In.getDate()-7);const xi=new Date(Bn);xi.setDate(Bn.getDate()-7);const on=new Date(O);on.setDate(1);const Rn=new Date(O);Rn.setMonth(Rn.getMonth()+1,0);const Un=new Date(on);Un.setMonth(Un.getMonth()-1,1);const Zn=new Date(on);Zn.setDate(Zn.getDate()-1);const Xn=new Date(on);Xn.setMonth(Xn.getMonth()-3,1);const Yn=new Date(on);Yn.setDate(Yn.getDate()-1);const Wn=new Date(O);Wn.setDate(Wn.getDate()-6);const Vn=new Date(O);Vn.setDate(Vn.getDate()-29);const Gn=new Date(O);Gn.setDate(Gn.getDate()-89);const sc=[{label:"Today",range:()=>({startDate:mi,endDate:gn})},{label:"Yesterday",range:()=>({startDate:wi,endDate:vi})},{label:"This Week",range:()=>({startDate:In,endDate:Bn})},{label:"Last Week",range:()=>({startDate:yi,endDate:xi})},{label:"This Month",range:()=>({startDate:on,endDate:Rn})},{label:"Last Month",range:()=>({startDate:Un,endDate:Zn})},{label:"Last 3 Months",range:()=>({startDate:Xn,endDate:Yn})},{label:"Last 7 Days",range:()=>({startDate:Wn,endDate:gn})},{label:"Last 30 Days",range:()=>({startDate:Vn,endDate:gn})},{label:"Last 90 Days",range:()=>({startDate:Gn,endDate:gn})}];function Pn(t,n){return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()}const Ze=t=>/^(?:January|February|March|April|May|June|July|August|September|October|November|December) (?:0?[1-9]|[12][0-9]|3[01]), (?:19|20)\d{2}$/.test(t)?(console.log("date is valid"),!0):(console.log("date is not valid"),!1),qi=k(class extends u{constructor(){super(),this.__registerHost(),this.initialDate=new Date,this.range=!1,this.dualMonthView=!1,this.inputField=!1,this.submitButton=!1,this.qickOptions=!1,this.onSubmit=()=>{},this.onCancel=()=>{},this.currentMonth=this.initialDate,this.selectedDate=null,this.rangeDates={},this.inputDates={startDate:"",endDate:""}}get nextMonth(){return new Date(this.currentMonth.getFullYear(),this.currentMonth.getMonth()+1)}get days(){return[...Re(this.currentMonth).slice(0,2),...He(this.currentMonth),...Ue(this.currentMonth).slice(0,2)]}get nextMonthDays(){return[...Re(this.nextMonth).slice(0,2),...He(this.nextMonth),...Ue(this.nextMonth).slice(0,2)]}formatDate(n){if(!n)return"";const o=new Date(n);return`${["January","February","March","April","May","June","July","August","September","October","November","December"][o.getMonth()]} ${o.getDate()}, ${o.getFullYear()}`}handleSelectDate(n){console.log(n,"reached"),this.range?this.rangeDates.startDate?this.rangeDates.endDate?this.rangeDates={startDate:n,endDate:null}:n>=this.rangeDates.startDate?this.rangeDates=Object.assign(Object.assign({},this.rangeDates),{endDate:n}):this.rangeDates={startDate:n}:this.rangeDates={startDate:n}:this.selectedDate=n}handleInputDate(n){const o=n.target,{name:i,value:h}=o;this.inputDates=Object.assign(Object.assign({},this.inputDates),{[i]:h})}handleChangeMonth(n){this.currentMonth=n}isMidRange(n){return this.range&&this.rangeDates.startDate&&this.rangeDates.endDate?n>this.rangeDates.startDate&&n<this.rangeDates.endDate:!1}isFirstRangeChild(n){return this.range&&this.rangeDates.startDate&&this.rangeDates.endDate?this.rangeDates.startDate.getTime()!==this.rangeDates.endDate.getTime()&&n.getTime()===this.rangeDates.startDate.getTime():!1}isLastRangeChild(n){return this.range&&this.rangeDates.startDate&&this.rangeDates.endDate?this.rangeDates.startDate.getTime()!==this.rangeDates.endDate.getTime()&&n.getTime()===this.rangeDates.endDate.getTime():!1}componentDidLoad(){this.inputField&&(this.rangeDates.startDate&&(this.inputDates=Object.assign(Object.assign({},this.inputDates),{startDate:this.formatDate(this.rangeDates.startDate)})),this.rangeDates.endDate?this.inputDates=Object.assign(Object.assign({},this.inputDates),{endDate:this.formatDate(this.rangeDates.endDate)}):this.inputDates=Object.assign(Object.assign({},this.inputDates),{endDate:""}))}render(){return e("div",{key:"b23fd66db579f9497a63e5642f15bc3fe82c5df9",class:"date-picker-root flex-column","data-dual-view":this.dualMonthView},e("div",{key:"3d9f1c682130c12697733ca6ccdbde8015e3f3c2",class:"flex"},this.qickOptions&&this.range&&e("div",{key:"774ff0296efd6cedbd1084437cc5aee2665ae476",class:"date-picker-root__quick-options"},e("span",{key:"9dad57887ae73fb5e7e8eddca8c1a3b45cefeda2",class:"text-md-regular"},"Qick options"),e("ul",{key:"a90e8b41abd5f5fb7fe6a60ffa646c3868a5c543",class:"options-list"},sc.map(({label:n,range:o})=>e("li",{key:n},e("button",{class:"text-md-medium",onClick:()=>this.rangeDates=o},n))))),e("div",{key:"9073e99d8f58b6c75fd88a4ac62043f1d4ced6a8",class:"date-picker-root__main"},this.inputField&&e("div",{key:"79db534e0f643647e850807d2c7b488935e32949",class:"date-picker-root__main__inputs"},e("dga-text-input",{key:"9695a84857a3f78881ec7a334fcb017d91c5fa2f",placeholder:"Month DD, YYYY",name:"startDate",value:this.inputDates.startDate,onChange:n=>this.handleInputDate(n),onBlur:n=>{if(Ze(n.target.value)){const o=new Date(n.target.value);this.range?this.rangeDates.startDate?this.rangeDates.endDate?o>=this.rangeDates.endDate?this.rangeDates={startDate:o,endDate:o}:this.rangeDates=Object.assign(Object.assign({},this.rangeDates),{startDate:o}):this.rangeDates={startDate:o,endDate:null}:this.rangeDates={startDate:o}:this.selectedDate=o}}}),this.range&&e("dga-text-input",{key:"bed10e9bb2e85ece567425645b3d91a3a11f886e",placeholder:"Month DD, YYYY",name:"endDate",value:this.inputDates.endDate,onChange:n=>this.handleInputDate(n),onBlur:n=>{if(Ze(n.target.value)){const o=new Date(n.target.value);this.range?this.rangeDates.endDate?this.rangeDates.startDate?o<=this.rangeDates.startDate?this.rangeDates={startDate:o,endDate:this.rangeDates.startDate}:this.rangeDates=Object.assign(Object.assign({},this.rangeDates),{endDate:o}):this.rangeDates={startDate:o,endDate:null}:this.rangeDates.startDate?o<=this.rangeDates.startDate&&(this.rangeDates={startDate:o,endDate:this.rangeDates.startDate}):this.rangeDates={startDate:o,endDate:null}:this.selectedDate=o}}})),e("div",{key:"f0cd731cf41f3d11b134a8b28ace46879c7ad269",class:"date-picker-root__main__content-wrapper"},e("div",{key:"236ad574e102ff7fe535c515151b698a0f0f9d0a",class:"date-picker"},e("month-navigator",{key:"76419c88e96343f7fc901ecbf2c2ac3205ec5361",currentMonth:this.currentMonth,onChange:n=>this.handleChangeMonth(n),showArrows:!this.dualMonthView}),e("div",{key:"43d3f053132bfb88aa84f7d05166cf982fc964e1",class:"date-picker__weekdays"},["Su","Mo","Tu","We","Th","Fr","Sa"].map(n=>e("div",{key:n,class:"date-picker__weekday"},n))),e("div",{key:"84475736123581baba249358a4fea373bcee6930",class:"date-picker__date-grid"},this.days.map(n=>e("date-cell",{key:n.toString(),date:n,isCurrentMonth:n.getMonth()===this.currentMonth.getMonth(),isSelected:this.range?!!this.rangeDates.startDate&&Pn(n,this.rangeDates.startDate)||!!this.rangeDates.endDate&&Pn(n,this.rangeDates.endDate):this.selectedDate?Pn(n,this.selectedDate):!1,isToday:new Date().toDateString()===n.toDateString(),isFirstRangeChild:this.isFirstRangeChild(n),isLastRangeChild:this.isLastRangeChild(n),midRange:this.isMidRange(n),onSelect:this.handleSelectDate})))),this.dualMonthView&&e("div",{key:"26b8b26272779d57a6c70f7bc98200e18fd4d76f",class:"date-picker"},e("month-navigator",{key:"e9f8baa8b9f180217548e132f8ba25df8f4d3f99",currentMonth:this.nextMonth,onChange:n=>{const o=n.getMonth()===this.currentMonth.getMonth()?new Date(this.currentMonth.getFullYear(),this.currentMonth.getMonth()-1):new Date(this.currentMonth.getFullYear(),this.currentMonth.getMonth()+1);this.handleChangeMonth(o)},showArrows:!0}),e("div",{key:"4b0294b820a3c58dea76e8eca5e7b44df2cb7de3",class:"date-picker__weekdays"},["Su","Mo","Tu","We","Th","Fr","Sa"].map(n=>e("div",{key:n,class:"date-picker__weekday"},n))),e("div",{key:"de244db6fc0b93e3093adc529e8aeb4fff836f69",class:"date-picker__date-grid"},this.nextMonthDays.map(n=>e("date-cell",{key:n.toString(),date:n,isCurrentMonth:n.getMonth()===this.nextMonth.getMonth(),isSelected:this.range?!!this.rangeDates.startDate&&n.getTime()===this.rangeDates.startDate.getTime()||!!this.rangeDates.endDate&&n.getTime()===this.rangeDates.endDate.getTime():this.selectedDate?n.getTime()===this.selectedDate.getTime():!1,isToday:new Date().toDateString()===n.toDateString(),midRange:this.isMidRange(n),isFirstRangeChild:this.isFirstRangeChild(n),isLastRangeChild:this.isLastRangeChild(n),onSelect:this.handleSelectDate}))))))))}},[0,"dga-datepicker",{initialDate:[16],range:[4],dualMonthView:[4,"dual-month-view"],inputField:[4,"input-field"],submitButton:[4,"submit-button"],qickOptions:[4,"qick-options"],onSubmit:[16],onCancel:[16],currentMonth:[32],selectedDate:[32],rangeDates:[32],inputDates:[32]}]);function _i(){if(typeof customElements>"u")return;["dga-datepicker","date-cell","dga-icon","dga-text-input"].forEach(n=>{switch(n){case"dga-datepicker":customElements.get(n)||customElements.define(n,qi);break;case"date-cell":customElements.get(n)||ce();break;case"dga-icon":customElements.get(n)||E();break;case"dga-text-input":customElements.get(n)||Dn();break}})}const zi=k(class extends u{constructor(){super(),this.__registerHost()}render(){return e("div",{key:"d07a6c5a280ebbfa89ed69517b76a4e7ff339ed3"},e("h1",{key:"21960433541bef6d896061082b1d259a23c2b5c5"},"Datepicker Example"),e("div",{key:"e920f6227e18ee1df3bdbec195f4eb319f9bb989",style:{padding:"50px",display:"flex",gap:"20px"}},e("div",{key:"788f5db1c249de9866422b575957f8bb7d08e4ef",style:{display:"flex",flexDirection:"column",gap:"20px"}},e("dga-datepicker",{key:"dfb95618c3052e445bab1164f11ffb19d5044ad5",inputField:!0}),e("dga-datepicker",{key:"4ef0f207e37ca7319d509cbe20e3e99000e408c5",range:!0})),e("div",{key:"b8e3a7954ca9ac02ad57fbba5845f65157d3f63d",style:{display:"flex",flexDirection:"column",gap:"20px"}})))}},[0,"dga-datepicker-usage"]);function dc(){if(typeof customElements>"u")return;["dga-datepicker-usage","date-cell","dga-datepicker","dga-icon","dga-text-input"].forEach(n=>{switch(n){case"dga-datepicker-usage":customElements.get(n)||customElements.define(n,zi);break;case"date-cell":customElements.get(n)||ce();break;case"dga-datepicker":customElements.get(n)||_i();break;case"dga-icon":customElements.get(n)||E();break;case"dga-text-input":customElements.get(n)||Dn();break}})}const fc=zi,lc=dc,bc=qi,uc=_i,ji=k(class extends u{constructor(){super(),this.__registerHost(),this.color="neutral"}render(){return e("span",{key:"a552ddba42564ac386f06ee46f84da9ce2e174e9",class:`dga-divider dga-divider--${this.color}`})}},[0,"dga-divider",{color:[1]}]);function kc(){if(typeof customElements>"u")return;["dga-divider"].forEach(n=>{switch(n){case"dga-divider":customElements.get(n)||customElements.define(n,ji);break}})}const pc=ji,mc=kc,wc=Ft,vc=Ht,yc=Ut,xc=Zt,qc=Wt,_c=te,zc=Qt,jc=Nt,de=k(class extends u{constructor(){super(),this.__registerHost(),this.label=void 0,this.icon=void 0,this.active=!1,this.extraClasses="",this.onClick=void 0}handleClick(n){n.preventDefault(),this.onClick&&this.onClick()}render(){return e("li",{key:"053de5905f50bc37c4fe22952e10699858308ce5"},e("a",{key:"f506f11eb012a07428659a603a979fc58eb5aeb0",href:"#",class:`header-menu__item ${this.active?"header-menu__item--active":""} ${this.extraClasses}`,onClick:this.handleClick.bind(this)},e("span",{key:"4f41284200d4d0947e78f7a6003bce094e85b5ea",class:"header-menu__item-arrow"},e("dga-icon",{key:"6a12fb2832c6ee92d9f260d2d57ce145709ffce7",icon:this.icon})),e("span",{key:"48c720a3c68b576796000263cca6db5ddb9039f0",class:"header-menu__item-label"},this.label)))}},[0,"dga-header-action-btn",{label:[1],icon:[1],active:[4],extraClasses:[1,"extra-classes"],onClick:[16]}]);function Cc(){if(typeof customElements>"u")return;["dga-header-action-btn","dga-icon"].forEach(n=>{switch(n){case"dga-header-action-btn":customElements.get(n)||customElements.define(n,de);break;case"dga-icon":customElements.get(n)||E();break}})}const $c=de,Ec=Cc,fe=k(class extends u{constructor(){super(),this.__registerHost(),this.fullWidth=!0,this.divider=!0}render(){return e("header",{key:"726bfc519703997a94965f1bc21d2b1d3f1d5d51",class:`header ${this.divider?"header--divider":""}`},e("nav",{key:"b89ae9d2b5100bc828966d478e67a7745bfe0b3a",class:`header-nav--${this.fullWidth?"full":"fixed"}`},e("slot",{key:"4ea790e021764ede43f03891c49336e3c50f71ff"})))}},[4,"dga-nav-header",{fullWidth:[4,"full-width"],divider:[4]}]);function Sc(){if(typeof customElements>"u")return;["dga-nav-header"].forEach(n=>{switch(n){case"dga-nav-header":customElements.get(n)||customElements.define(n,fe);break}})}const le=k(class extends u{constructor(){super(),this.__registerHost(),this.toggleCollapsed=Y(this,"toggleCollapsed",7),this.handleToggle=()=>{this.toggleCollapsed.emit(!this.collapsed)},this.collapsed=!1}render(){return e("div",{key:"1d6260517071eaa610af05a17014aa4ca9f0f1a7"},e("button",{key:"459df9019332c1c007326645247214dfe16ac891",type:"button",onClick:this.handleToggle,class:"header-menu__btn"},e("span",{key:"4f99919ed13afbe1aadcbe209b4ce9504b8bc466",class:"btn-icon header-menu__btn-icon"},e("dga-icon",{key:"cba61e02b2e82b655183996a0a95ccb6dd759c7a",icon:this.collapsed?"menu01":"cancel01"}))),e("div",{key:"f770b5480e526691f2156668be313e6455dac5b7",class:"header-nav__main"},e("slot",{key:"673d2f664360209d5c87d37f1106f2e3ed7f14ba"})))}},[4,"dga-nav-header-main",{collapsed:[4]}]);function Dc(){if(typeof customElements>"u")return;["dga-nav-header-main","dga-icon"].forEach(n=>{switch(n){case"dga-nav-header-main":customElements.get(n)||customElements.define(n,le);break;case"dga-icon":customElements.get(n)||E();break}})}const be=k(class extends u{constructor(){super(),this.__registerHost(),this.logoSrc=void 0,this.logoAlt=void 0,this.logoLink="#",this.govSrc=void 0,this.govAlt=void 0,this.govLink="#"}render(){return e("div",{key:"32c6e885fe2b7c1450f3b78f6dfd1d7f97385ed7",class:"header-nav__branding"},this.govSrc&&e("div",{key:"fbd02ad2ba968a841004f03a8501168a49e03910",class:"flex xs-hide"},e("a",{key:"2d1ebd951e50aac10eff8007d61ed4609c97548c",href:this.govLink},e("img",{key:"ca28477c013a8b75f8648c2e86470b79d7f5f64b",src:this.govSrc,alt:this.govAlt})),e("div",{key:"b0fd82bfebf0254981cf1c8fd77f25652eba95e8",class:"ver-divider"})),e("a",{key:"a794d7d5dc3e35124bb5caf2662ed86640747b64",href:this.logoLink,class:"header__logo"},e("img",{key:"25e3ebf0a31bfe905fc38ddc015bf8a1c060caaa",src:this.logoSrc,alt:this.logoAlt})))}},[0,"dga-nav-header-logos",{logoSrc:[1,"logo-src"],logoAlt:[1,"logo-alt"],logoLink:[1,"logo-link"],govSrc:[1,"gov-src"],govAlt:[1,"gov-alt"],govLink:[1,"gov-link"]}]);function Mc(){if(typeof customElements>"u")return;["dga-nav-header-logos"].forEach(n=>{switch(n){case"dga-nav-header-logos":customElements.get(n)||customElements.define(n,be);break}})}const ue=k(class extends u{constructor(){super(),this.__registerHost()}render(){return e("ul",{key:"3bcd828e93fb5f9725a6ffbc1647334ee15ffd3b",class:"header-nav__menu"},e("slot",{key:"c100bb3baed1b63096a036455d27588b99722876"}))}},[4,"dga-nav-header-menu"]);function Ic(){if(typeof customElements>"u")return;["dga-nav-header-menu"].forEach(n=>{switch(n){case"dga-nav-header-menu":customElements.get(n)||customElements.define(n,ue);break}})}const Ci=k(class extends u{constructor(){super(),this.__registerHost(),this.active=!1,this.subMenuFullWidth=!1,this.background=void 0}onActiveChange(){this.active&&this.submenu?(this.submenu.style.display="block",this.submenu.style.maxHeight=`${this.submenu.scrollHeight}px`):this.submenu&&(this.submenu.style.maxHeight="")}componentDidLoad(){this.submenu=this.el.shadowRoot.querySelector(".header__sub-menu"),this.onActiveChange()}render(){const n=this.background==="Brand"?"header__sub-menu--bg-brand":"",o=this.subMenuFullWidth?"header__sub-menu--full":"";return e("div",{key:"682e88dc934ee066490a95324ac13f9a6f565277",class:`header__sub-menu ${n} ${o}`,ref:i=>this.submenu=i},e("div",{key:"fd4e3885c24133167bf2ca4c84b3884f291661a1",class:"sub-menu__container"},e("slot",{key:"080c7dc18f03a1b614091efec2501d10f2060a43"})))}get el(){return this}static get watchers(){return{active:["onActiveChange"]}}},[4,"dga-nav-header-sub-menu",{active:[4],subMenuFullWidth:[4,"sub-menu-full-width"],background:[1]},void 0,{active:["onActiveChange"]}]);function $i(){if(typeof customElements>"u")return;["dga-nav-header-sub-menu"].forEach(n=>{switch(n){case"dga-nav-header-sub-menu":customElements.get(n)||customElements.define(n,Ci);break}})}const ke=k(class extends u{constructor(){super(),this.__registerHost(),this.linkClicked=Y(this,"linkClicked",7),this.handleClick=n=>{n.preventDefault(),this.linkClicked.emit()},this.label=void 0,this.icon=void 0,this.iconProps={},this.active=!1,this.subMenuBackground="Brand",this.subMenuFullWidth=!0}render(){return e("li",{key:"634d63d41af5563b5564afd652aaedc97869f5c5"},e("a",{key:"8d1999071c8925a8d302a2fe96775882d2d22ea3",href:"#",class:`header-menu__item ${this.active?"header-menu__item--active":""}`,onClick:this.handleClick},e("span",{key:"c5a45bc4e5fbd3e95df9336473650dcafd8d61b5",class:"header-menu__item-label"},this.label),e("span",{key:"1e7c4b1939ac1160a5727e60a463f5d98b4b56cd",class:"header-menu__item-arrow"},e("dga-icon",Object.assign({key:"ff2f404f6450a1649d7d82e90acc40d44a49ab2a",icon:this.icon},this.iconProps)))),this.active&&e("dga-nav-header-sub-menu",{key:"0390ac8ec6a1b685e70d284cf514a7b0000c0e43",active:this.active,"sub-menu-full-width":this.subMenuFullWidth,background:this.subMenuBackground},e("slot",{key:"d5ba905a7b14346f2545651012ffee6932071c22"})))}},[4,"dga-nav-header-link",{label:[1],icon:[1],iconProps:[16],active:[4],subMenuBackground:[1,"sub-menu-background"],subMenuFullWidth:[4,"sub-menu-full-width"]}]);function Bc(){if(typeof customElements>"u")return;["dga-nav-header-link","dga-icon","dga-nav-header-sub-menu"].forEach(n=>{switch(n){case"dga-nav-header-link":customElements.get(n)||customElements.define(n,ke);break;case"dga-icon":customElements.get(n)||E();break;case"dga-nav-header-sub-menu":customElements.get(n)||$i();break}})}const Cn=k(class extends u{constructor(){super(),this.__registerHost()}render(){return e("div",{key:"dc974cc566a8aad8add485daba94e7d3aa475636",class:"sub-menu__column"},e("slot",{key:"784ee4c0fb678538a71cfc3a253515db09730226"}))}},[4,"dga-nav-header-sub-menu-column"]);function Ac(){if(typeof customElements>"u")return;["dga-nav-header-sub-menu-column"].forEach(n=>{switch(n){case"dga-nav-header-sub-menu-column":customElements.get(n)||customElements.define(n,Cn);break}})}const pe=k(class extends u{constructor(){super(),this.__registerHost(),this.background=void 0,this.link=void 0,this.linkStyle=void 0,this.label=void 0,this.helperText=void 0,this.icon=void 0}render(){const n=this.background==="Brand"?"sub-menu__link--on-color":"",o=this.linkStyle&&this.linkStyle>0?this.linkStyle===2?"sub-menu__link-icon--bg":"sub-menu__link-icon":"";return e("a",{key:"dbdac1be5ad2706ef729d8e4e8d99a10cbee8c0d",href:this.link,class:`sub-menu__link ${n}`},this.linkStyle&&this.linkStyle>0?e("div",{class:o},this.icon&&e("dga-icon",{icon:this.icon})):null,e("div",{key:"b3e8959e49aa69feabf4bb06bf5546c289c5cbe9",class:"flex-column"},e("span",{key:"2c36784f20012cce6a132b8fba957eeeac5d0fad",class:"sub-menu__link-label"},this.label),this.helperText&&e("span",{key:"ce74e0d916e6e2f2c87e281663f705ca9370783c",class:"sub-menu__link-helper"},this.helperText)))}},[0,"dga-nav-header-sub-menu-link",{background:[1],link:[1],linkStyle:[2,"link-style"],label:[1],helperText:[1,"helper-text"],icon:[1]}]);function Pc(){if(typeof customElements>"u")return;["dga-nav-header-sub-menu-link","dga-icon"].forEach(n=>{switch(n){case"dga-nav-header-sub-menu-link":customElements.get(n)||customElements.define(n,pe);break;case"dga-icon":customElements.get(n)||E();break}})}const me=k(class extends u{constructor(){super(),this.__registerHost()}render(){return e(H,null,e("button",{key:"a2df6712612d2a73fdf1f64d08639268bac5c381",type:"button",class:"header-menu__btn btn btn--lg btn--subtle btn--icon"},e("span",{key:"5ca6ac23814473653e7bb8e73753367df88869a6",class:"btn-icon header-menu__btn-icon"},e("dga-icon",{key:"eaf0067d4d1ba97b1ff9f0ae229cff128a08bad5",icon:"MoreHorizontalCircleIcon",variant:"solid"}))),e("ul",{key:"c9b252ec5be2e39bfec33a341812f8484afb09a3",class:"header-nav__actions"},e("slot",{key:"b894afce208d5454aa6a42774a509a6f453da9ff"})))}},[4,"dga-nav-header-actions"]);function Tc(){if(typeof customElements>"u")return;["dga-nav-header-actions","dga-icon"].forEach(n=>{switch(n){case"dga-nav-header-actions":customElements.get(n)||customElements.define(n,me);break;case"dga-icon":customElements.get(n)||E();break}})}const Ei=k(class extends u{constructor(){super(),this.__registerHost(),this.config=void 0}render(){return e(fe,{key:"a4b27d9fe31ff8b3dee9036d2e50a70f69672f03",fullWidth:this.config.fullWidth,divider:this.config.divider},e(le,{key:"08e4c1eb49ca888c6bd5ce096f9305883e8b9c88",collapsed:!0},e(be,{key:"3400aeebf54005a3defc249e739168fb31326a02",logoSrc:this.config.logoSrc,govSrc:this.config.govSrc,logoLink:this.config.logoLink,govLink:this.config.govLink}),e(ue,{key:"a3db9f115debdbbcbc4a7451e8479948176f9b31"},this.config.headerLinks.map((n,o)=>e(ke,{key:o,active:!1,onClick:()=>console.log("clicked"),label:n.label,icon:n.icon,subMenuBackground:this.config.subMenuBackground,subMenuFullWidth:this.config.subMenuFullWidth},n.subMenu.map((i,h)=>e(Cn,{key:h},i.columns.map((a,d)=>e(Cn,{key:d},a.links.map((f,l)=>e(pe,{key:l,background:this.config.subMenuBackground,label:f.label,helperText:f.helperText,icon:f.icon,linkStyle:f.linkStyle})))))))))),e(me,{key:"4abc413d87a098db4f90545b9d07936f19a6817b"},this.config.actions.map((n,o)=>e(de,{key:o,onClick:()=>console.log("clicked"),label:n.label,icon:n.icon}))))}},[0,"dga-header",{config:[16]}]);function Lc(){if(typeof customElements>"u")return;["dga-header"].forEach(n=>{switch(n){case"dga-header":customElements.get(n)||customElements.define(n,Ei);break}})}const Oc=Ei,Fc=Lc,Si=k(class extends u{constructor(){super(),this.__registerHost(),this.label=void 0,this.color="neutral",this.variant="success",this.size="md",this.iconType=void 0,this.leadIcon=void 0,this.trailIcon=void 0,this.outlined=void 0,this.rounded=void 0,this.iconOnly=void 0}render(){return console.log(!!this.iconOnly,this.iconOnly),this.iconOnly?e("span",{class:`tag tag--${this.color}${this.outlined?"-outlined":""} tag--${this.size} ${this.rounded?"tag--rounded":""} tag--icon`},this.leadIcon&&e("span",{class:"tag-icon"},this.leadIcon),!this.leadIcon&&e("slot",null)):e("span",{class:`tag tag--${this.color}${this.outlined?"-outlined":""} tag--${this.size} ${this.rounded?"tag--rounded":""}`},this.leadIcon?e("span",{class:"tag-icon"},this.leadIcon):"",this.label,this.trailIcon?e("span",{class:"tag-icon"},this.trailIcon):"",e("slot",null))}},[4,"dga-html-tag",{label:[1],color:[1],variant:[1],size:[1],iconType:[8,"icon-type"],leadIcon:[8,"lead-icon"],trailIcon:[8,"trail-icon"],outlined:[516],rounded:[516],iconOnly:[516,"icon-only"]}]);function Hc(){if(typeof customElements>"u")return;["dga-html-tag"].forEach(n=>{switch(n){case"dga-html-tag":customElements.get(n)||customElements.define(n,Si);break}})}const Rc=Si,Uc=Hc,Zc=ft,Xc=E,Yc=so,Wc=fo,Vc=bo,Gc=uo,Jc=Yt,Kc=fn,Di=k(class extends u{constructor(){super(),this.__registerHost(),this.icon=void 0,this.size=24,this.color=void 0}render(){return e("svg",{key:"74ef0bbbcb35d6666a43110bd4b2f028dd33064f",width:this.size,height:this.size,fill:this.color||"currentColor","aria-hidden":"true"},e("use",{key:"26514b1c79780b27e4dde0a179b48f5b3eca9af2",href:`../../assets/sprite.svg#${this.icon}`}))}},[0,"dga-local-icon",{icon:[1],size:[2],color:[1]}]);function Qc(){if(typeof customElements>"u")return;["dga-local-icon"].forEach(n=>{switch(n){case"dga-local-icon":customElements.get(n)||customElements.define(n,Di);break}})}const Nc=Di,ns=Qc,Mi=k(class extends u{constructor(){super(),this.__registerHost(),this.groupLabel=void 0}render(){return e("div",{key:"46accf792451b6fa7c5418ed4706f3749f6563a5",class:"menu-group"},this.groupLabel&&e("span",{key:"3fc27b587b006d7d4021294a5a4e0f4f49f4dc42",class:"menu-group__label"},this.groupLabel),e("ul",{key:"17ef154195c649a6207fe11bb76bd1bc576e3523",class:"menu-group__items"},e("slot",{key:"135de24368e9669bc9cc9730b3f199e45d9d0054"})))}},[4,"dga-menu-group",{groupLabel:[1,"group-label"]}]);function es(){if(typeof customElements>"u")return;["dga-menu-group"].forEach(n=>{switch(n){case"dga-menu-group":customElements.get(n)||customElements.define(n,Mi);break}})}const ts=Mi,os=es,Ii=k(class extends u{constructor(){super(),this.__registerHost(),this.trailElement=void 0,this.disabled=!1,this.leadIcon=void 0,this.label=void 0}render(){return e("li",{key:"4dfa95ff00c7271d62704028f5c6e2a073ee3a54",class:`menu-item ${this.disabled?"disabled":""}`},this.leadIcon&&e("span",{key:"9f5ef257bc7ec813e1a47d13229d604194c786ba",class:"menu-item__icon"},this.leadIcon),e("span",{key:"3c59955f291f6d2cddcb2c11762f0fe6b6c0e9b1",class:"menu-item__label"},this.label),this.trailElement&&e("div",{key:"51314c4438ebd1a7df45ce3cdcdaccf1729e0715",class:"menu-item__trail-element"},this.trailElement))}},[0,"dga-menu-item",{trailElement:[8,"trail-element"],disabled:[4],leadIcon:[16],label:[1]}]);function Bi(){if(typeof customElements>"u")return;["dga-menu-item"].forEach(n=>{switch(n){case"dga-menu-item":customElements.get(n)||customElements.define(n,Ii);break}})}const is=Ii,hs=Bi,Ai=k(class extends u{constructor(){super(),this.__registerHost(),this.groups=[]}render(){return e("ul",{key:"67242f9b4ec3b53f8246021e717cc6372e39c97c",class:"menu"},this.groups.map((n,o)=>e(H,null,e("div",{class:"menu-group"},n.label&&e("span",{class:"menu-group__label"},n.label),n.items.map(i=>e("dga-menu-item",{trailElement:i.trailElement,label:i.label,disabled:i.disabled,leadIcon:i.leadIcon}))),o<this.groups.length-1&&e("span",{class:"divider"}))))}},[0,"dga-menu-updated",{groups:[16]}]);function rs(){if(typeof customElements>"u")return;["dga-menu-updated","dga-menu-item"].forEach(n=>{switch(n){case"dga-menu-updated":customElements.get(n)||customElements.define(n,Ai);break;case"dga-menu-item":customElements.get(n)||Bi();break}})}const gs=Ai,as=rs,Pi=k(class extends u{constructor(){super(),this.__registerHost()}render(){return e("ul",{key:"5b50d03cd9d6e01796b9a663903e6d6fc633a006",class:"menu"},e("slot",{key:"3fb5614d1019420716bb418397f1063bee03554d"}))}},[4,"dga-menu"]);function cs(){if(typeof customElements>"u")return;["dga-menu"].forEach(n=>{switch(n){case"dga-menu":customElements.get(n)||customElements.define(n,Pi);break}})}const ss=Pi,ds=cs,Ti=k(class extends u{constructor(){super(),this.__registerHost(),this.changeIcons={"01":{positive:"arrow-up-02",negative:"arrow-down-02"},"02":{positive:"trade-up",negative:"trade-down"}},this.label="",this.Style="small-chart",this.percentage="0%",this.showFeaturedIcon=!0,this.featuredIcon=e("i",{class:"hgi-stroke hgi-trade-up",style:{fontSize:"24px"}}),this.showChart=!0,this.showInfo=!0,this.showActions=!0,this.showSecondaryAction=!0,this.showMoreButton=!0,this.changeProps={type:"01",trend:"positive"},this.chartProps=void 0,this.trend=void 0,this.onPrimaryAction=()=>{},this.onSecondaryAction=()=>{},this.onExpandAction=()=>{}}render(){return e("div",{key:"bb18630be9d1f0a5257ad64fad4df92d5889c7ca",class:"dga-metric","data-chart-size":this.Style},e("div",{key:"f8bdf5ec3e43e00ca3d69fc7983bc548a1b2e0f3",class:"dga-metric__head"},e("div",{key:"efe5ffb448115562bce49a1c0f6fb8fdc2e2d9a6",class:"dga-metric__head-content"},this.showFeaturedIcon&&e("div",{key:"716c2ccd4546ef261c80cdad6ce0e0e9a9863b2b",class:"featured-icon featured-icon--light-brand featured-icon--circle featured-icon--sm"},this.featuredIcon),this.label&&e("span",{key:"5b4bd51d29392351bb25f6d3470c6f2b58065be2",class:"dga-metric__head-content-text"},this.label)),this.showMoreButton&&e("dga-button",{key:"ab855e283f4a222c79c139566af162f2abe84833",variant:"subtle",iconOnly:!0,leadIcon:!0,leadIconType:"more-vertical",leadIconProps:{variant:"stroke",type:"rounded"},onClick:this.onExpandAction})),e("div",{key:"1a43fc90efc19ee149a49dd14e3fb25ca51e1066",class:"dga-metric__body"},e("div",{key:"7d1bee47dd7c549250755cc6048591f008343578",class:"dga-metric__content"},e("h3",{key:"aff23dc6ca45ae4c95aa7c60c822f05a792251bf",class:"dga-metric__content-percentage"},this.percentage),this.showInfo&&e("div",{key:"b9994108aacf4d465c427862e9a7bd60a4c40ebc",class:"dga-metric__content-change","data-change-trend":this.changeProps.trend},e("span",{key:"545f36ce046fe020263f790c2196f997ec74fcea",class:"dga-metric__content-change-icon"},e("dga-icon",{key:"5a9bb10bb3369ccd1687683d998b24e2ac312133",icon:this.changeIcons[this.changeProps.type][this.changeProps.trend],type:"rounded",variant:"stroke",size:24})),e("span",{key:"7256f2fb4a127df78fe09b2be13eae33de1052ec",class:"dga-metric__content-change-value"},Math.abs(100),"%"),e("span",{key:"538174d93428080e837608c325d1942391b532b1",class:"dga-metric__content-change-period"},"vs last month"))),this.showChart&&e("div",{key:"f1ba23eef696e7a3284f925da416abd76527f61f",class:"dga-metric__chart"},e("dga-chart",Object.assign({key:"20a627b423e331087403976235500679f133aeb1"},this.chartProps,{size:this.Style==="small-chart"?"sm":"lg"})))),this.showActions&&e(H,{key:"ce510f34b9adc1f48b36d48ba8513da456fecb35"},e("div",{key:"a76469e64d6c9bf50faa7c947a79c10f705a8881",class:"dga-metric__divider"}),e("div",{key:"8feb1c01a2869665377b2ab5e81eb4964e584075",class:"dga-metric__actions"},this.showSecondaryAction&&e("dga-button",{key:"d3c7faea957974f9b16c0e1bacbdf62eba94a5b6",variant:"subtle",iconOnly:!0,leadIcon:!0,leadIconType:"settings-02",leadIconProps:{variant:"stroke",type:"rounded"},onClick:this.onSecondaryAction}),e("dga-button",{key:"73c47406768a97690b06b18f84acc3822a646b12",variant:"secondary-outline",class:"dga-metric__actions--primary",label:"View Report",onClick:this.onPrimaryAction}))))}},[0,"dga-metric",{label:[1],Style:[1,"style"],percentage:[1],showFeaturedIcon:[4,"show-featured-icon"],featuredIcon:[8,"featured-icon"],showChart:[4,"show-chart"],showInfo:[4,"show-info"],showActions:[4,"show-actions"],showSecondaryAction:[4,"show-secondary-action"],showMoreButton:[4,"show-more-button"],changeProps:[16],chartProps:[16],trend:[16],onPrimaryAction:[16],onSecondaryAction:[16],onExpandAction:[16]}]);function Li(){if(typeof customElements>"u")return;["dga-metric","dga-button","dga-chart","dga-icon"].forEach(n=>{switch(n){case"dga-metric":customElements.get(n)||customElements.define(n,Ti);break;case"dga-button":customElements.get(n)||Z();break;case"dga-chart":customElements.get(n)||se();break;case"dga-icon":customElements.get(n)||E();break}})}const Oi=k(class extends u{constructor(){super(),this.__registerHost()}render(){return e("div",{key:"817630da879eefee0a911eaba22a6f2627dd1c4b"},e("h1",{key:"41eec05437011e5e7b844a622a4d9b13c978345d"},"Metric Example"),e("div",{key:"b60ff2d448443fc1e30415569c918e80d4bc6ac2",style:{padding:"50px",display:"flex",gap:"20px"}},e("div",{key:"487dfa0fb04ed40e6ccea1ea0080946c3dcf640c",style:{display:"flex",flexDirection:"column",gap:"20px"}},e("dga-metric",{key:"7ce5d5796242920c3e1e0443c5b98ba232c62386",Style:"small-chart",percentage:"60%",changeProps:{trend:"positive",type:"01"},chartProps:{data:[2,5.5,2,8.5,1.5,5],trend:"positive",type:"realistic",showMarker:!1}}),e("dga-metric",{key:"7dbc4ea2aa4547ae9fb1b9ec5e245880d313837e",Style:"small-chart",percentage:"60%",changeProps:{trend:"positive",type:"01"},chartProps:{data:[2,5.5,2,8.5,1.5,5],trend:"positive",type:"realistic",showMarker:!1}}),e("dga-metric",{key:"eb2d5ee0e9cdc96c4d3dad247c396b74c1a6e9a7",label:"24h Views",Style:"large-chart",percentage:"60%",showFeaturedIcon:!0,showChart:!1,showInfo:!1,showSecondaryAction:!1,showMoreButton:!1}),e("dga-metric",{key:"a26409d3ee22ec43ded81420d89464b87258f791",Style:"small-chart",percentage:"70%",showFeaturedIcon:!1,showChart:!1}),e("dga-chart",{key:"bbd8d6662a62c444109f129dcb9052c5564f6fe0",type:"wavy",data:[2,5.5,2,8.5,1.5,5],trend:"negative",size:"lg"}),e("dga-chart",{key:"b0299a39004fb1b57c1c52d7828ba1d985e11927",type:"wavy",data:[2,5.5,2,8.5,1.5,5],trend:"positive",size:"sm"}),e("dga-chart-v2",{key:"30e1d7d570ea426c634fa99e595fab81edd72010",data:[65,5.60606,57.2759,9,60.5862,129,1,10,20,15,2,3,5]})),e("div",{key:"5f5e7b4b38d8aef27f26df7a191f6eba500d4832",style:{display:"flex",flexDirection:"column",gap:"20px"}})))}},[0,"dga-metric-usage"]);function fs(){if(typeof customElements>"u")return;["dga-metric-usage","dga-button","dga-chart","dga-chart-v2","dga-icon","dga-metric"].forEach(n=>{switch(n){case"dga-metric-usage":customElements.get(n)||customElements.define(n,Oi);break;case"dga-button":customElements.get(n)||Z();break;case"dga-chart":customElements.get(n)||se();break;case"dga-chart-v2":customElements.get(n)||li();break;case"dga-icon":customElements.get(n)||E();break;case"dga-metric":customElements.get(n)||Li();break}})}const ls=Oi,bs=fs,us=Ti,ks=Li,ps=mo,ms=wo,ws=me,vs=Tc,ys=ke,xs=Bc,qs=be,_s=Mc,zs=le,js=Dc,Cs=ue,$s=Ic,Es=Cn,Ss=Ac,Ds=pe,Ms=Pc,Is=Ci,Bs=$i,As=fe,Ps=Sc,Ts=yo,Ls=xo,Os=_o,Fs=zo,Hs=Co,Rs=$o,Fi=k(class extends u{constructor(){super(),this.__registerHost(),this.onSelect=Y(this,"onSelect",7),this.type=void 0,this.variant=void 0,this.options=void 0,this.label=void 0,this.icon=void 0,this.dpIsActive=!1,this.selectedOption=null}handlePrefixClick(){this.prefixBtn.classList.toggle("open")}handleOptionSelect(n){this.selectedOption=n,this.onSelect.emit(n.value);const o=this.prefixBtn.querySelector(".dropdown__label");o&&o.classList.add("dropdown__label--selection"),this.prefixBtn.classList.remove("open"),this.prefixBtn.classList.add("selected")}render(){return this.type==="text"?e("div",{class:`input__prefix input__prefix--${this.variant}-text`},e("span",{class:"input__prefix-label"},this.label)):e(H,null,e("button",{class:`input__prefix input__prefix--${this.variant} input__dropdown-btn`,onMouseDown:()=>this.dpIsActive=!0,onMouseUp:()=>this.dpIsActive=!1,onMouseOut:()=>this.dpIsActive=!1,onClick:()=>this.handlePrefixClick(),ref:n=>this.prefixBtn=n},e("span",{class:"input__prefix-icon"},this.icon),e("span",{class:"dropdown__label"},this.selectedOption&&Object.keys(this.selectedOption).length?this.selectedOption.label:" "),e("span",{class:"input__prefix-label"},this.label),e("span",{class:"input__prefix-chevron"},e("dga-icon",{icon:"ArrowDown01Icon",variant:"stroke"}))),e("ul",{class:"input__dropdown-list"},this.options&&this.options.map(n=>{var o;return e("li",{key:n.value},e("button",{class:`dropdown__option ${((o=this.selectedOption)===null||o===void 0?void 0:o.value)===n.value?"selected":""}`,onClick:()=>this.handleOptionSelect(n)},e("span",{class:"dropdown__option-label"},n.label),e("span",{class:"dropdown__option-icon"},e("dga-icon",{icon:"Tick02Icon",variant:"solid"}))))})))}},[0,"dga-prefix",{type:[1],variant:[1],options:[16],label:[1],icon:[8],dpIsActive:[32],selectedOption:[32]}]);function Us(){if(typeof customElements>"u")return;["dga-prefix","dga-icon"].forEach(n=>{switch(n){case"dga-prefix":customElements.get(n)||customElements.define(n,Fi);break;case"dga-icon":customElements.get(n)||E();break}})}const Zs=Fi,Xs=Us,Hi=k(class extends u{constructor(){super(),this.__registerHost(),this.percentage=10,this.RTL=!1,this.size="small",this.progressStyle="neutral",this.showLabel=!0,this.showHelperText=!0,this.error=!1,this.success=!1,this.label="label",this.helperText="Help Text"}render(){const n={small:"sm",medium:"md",large:"lg"};let o=this.error?"error":this.success?"primary":this.progressStyle,i=this.error||this.success?100:this.percentage;const h={neutral:e("svg",{key:"75e743ccefd5e3cf5a52bb14ba57ebc1e0a570c1",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{key:"2d3685423027966b89942df91521c03c3095233a","clip-path":"url(#clip0_17869_405)"},e("path",{key:"7f01e9f1322e96a6ea8b3d5bd655eedb273a2afe",d:"M6.06004 6.00001C6.21678 5.55446 6.52614 5.17875 6.93334 4.93943C7.34055 4.70012 7.8193 4.61264 8.28483 4.69248C8.75035 4.77233 9.17259 5.01436 9.47676 5.3757C9.78093 5.73703 9.94741 6.19436 9.94671 6.66668C9.94671 8.00001 7.94671 8.66668 7.94671 8.66668M8.00004 11.3333H8.00671M14.6667 8.00001C14.6667 11.6819 11.6819 14.6667 8.00004 14.6667C4.31814 14.6667 1.33337 11.6819 1.33337 8.00001C1.33337 4.31811 4.31814 1.33334 8.00004 1.33334C11.6819 1.33334 14.6667 4.31811 14.6667 8.00001Z",stroke:"#384250","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),e("defs",{key:"5e475d2905f45ab5a7d678856c988123a0334e19"},e("clipPath",{key:"6c05f511736d3ca545d155ba2bdf379dacd4ebd9",id:"clip0_17869_405"},e("rect",{key:"649cf8c0439928300600ce1e6e70752796651e13",width:"16",height:"16",fill:"white"})))),primary:e("svg",{key:"6f7da9fff3474f0d50e4bb31555bc536af042ba8",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"14c77368d59d3f41888aee210999f33c4de3f65c","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00002 15.3334C12.0501 15.3334 15.3334 12.0501 15.3334 8.00002C15.3334 3.94993 12.0501 0.666687 8.00002 0.666687C3.94993 0.666687 0.666687 3.94993 0.666687 8.00002C0.666687 12.0501 3.94993 15.3334 8.00002 15.3334Z",fill:"white"}),e("path",{key:"f5f7f09a445554707d58e242c25801f6c2800369","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00002 15.3334C12.0501 15.3334 15.3334 12.0501 15.3334 8.00002C15.3334 3.94993 12.0501 0.666687 8.00002 0.666687C3.94993 0.666687 0.666687 3.94993 0.666687 8.00002C0.666687 12.0501 3.94993 15.3334 8.00002 15.3334ZM4.70017 7.41423C4.43982 7.67458 4.43982 8.09669 4.70017 8.35704L6.58578 10.2427C6.84613 10.503 7.26824 10.503 7.52859 10.2427L11.2998 6.47143C11.5602 6.21108 11.5602 5.78897 11.2998 5.52862C11.0395 5.26827 10.6174 5.26827 10.357 5.52862L7.05719 8.82845L5.64297 7.41423C5.38263 7.15388 4.96052 7.15388 4.70017 7.41423Z",fill:"#067647"})),error:e("svg",{key:"f19d347d7ccdec3f2074cda202afb58a64e3102a",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"3be9ea0aa39a9f44da97c3fd525f7aabc81bb606","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00002 15.3334C12.0501 15.3334 15.3334 12.0501 15.3334 8.00002C15.3334 3.94993 12.0501 0.666687 8.00002 0.666687C3.94993 0.666687 0.666687 3.94993 0.666687 8.00002C0.666687 12.0501 3.94993 15.3334 8.00002 15.3334Z",fill:"white"}),e("path",{key:"500223e70cf8c420d2d81e0ce721bf6f1bbfaa17","fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.3334 8.00002C15.3334 12.0502 12.0502 15.3334 8.00002 15.3334C3.94989 15.3334 0.666687 12.0502 0.666687 8.00002C0.666687 3.94989 3.94989 0.666687 8.00002 0.666687C12.0502 0.666687 15.3334 3.94989 15.3334 8.00002ZM5.80471 4.862C5.54445 4.60158 5.12225 4.60158 4.862 4.862C4.60158 5.12225 4.60158 5.54445 4.862 5.80471L7.05715 8.00002L4.862 10.1953C4.60158 10.4556 4.60158 10.8778 4.862 11.138C5.12225 11.3985 5.54445 11.3985 5.80471 11.138L8.00002 8.94289L10.1953 11.138C10.4556 11.3985 10.8778 11.3985 11.138 11.138C11.3985 10.8778 11.3985 10.4556 11.138 10.1953L8.94289 8.00002L11.138 5.80471C11.3985 5.54445 11.3985 5.12225 11.138 4.862C10.8778 4.60158 10.4556 4.60158 10.1953 4.862L8.00002 7.05715L5.80471 4.862Z",fill:"#B42318"}))};return e("div",{key:"e1cbdd0ccfc0230d093d92279b585e37a44e8e08",class:"progress-wrapper",style:{direction:this.RTL?"rtl":"ltr"}},this.showLabel&&e("h3",{key:"d940e337ded5100a826a3180a30890736b7ca166"},this.label),e("div",{key:"815435e58e3c989fe7475a0f265793a85ca55364",class:`progress-bar-container ${n[this.size]}`},e("div",{key:"fd9e9f68211d5b5d36df2441fa1d684fc84d27b1",class:`progress-bar ${o}`,style:{width:`${i}%`}},this.size==="large"&&e("span",{key:"2b145f82e470ae10f467ef506d2332804f9bebe2",class:"progress-bar-text"},this.percentage,"%"))),this.showHelperText&&e("div",{key:"222ac21690b58ecbe536dd3dda598ddf51d9d2ba",class:"progress-bar__note"},e("div",{key:"e5ad8b4287723086ddb63ff1d4f4dc3222f2d3f8",class:"icon"},this.error?h.error:this.success?h.primary:h.neutral),e("div",{key:"aaf7cf21017d487aa5b11440274d3a09b0291424",class:"content"},e("p",{key:"c7b9271cce2327da93226466c7f950c8ae23fb17"},this.helperText))))}},[0,"dga-progress-bar",{percentage:[2],RTL:[4,"r-t-l"],size:[1],progressStyle:[1,"progress-style"],showLabel:[4,"show-label"],showHelperText:[4,"show-helper-text"],error:[4],success:[4],label:[1],helperText:[1,"helper-text"]}]);function Ri(){if(typeof customElements>"u")return;["dga-progress-bar"].forEach(n=>{switch(n){case"dga-progress-bar":customElements.get(n)||customElements.define(n,Hi);break}})}const Ui=k(class extends u{constructor(){super(),this.__registerHost(),this.percentage=0}handleInputChange(n){const o=n.target;this.percentage=Number(o.value)}render(){return e("div",{key:"a664969603f2f8a5a075b8e43f57398329d7b0f2"},e("h1",{key:"24d2de92286db3e67e448947917ff71743030a63"},"Progress Bar Example"),e("div",{key:"ed19e5b5ef589f6e9c1df08c3cf58be864e3bab6",style:{padding:"50px",display:"flex",gap:"20px"}},e("div",{key:"09e51d3f7b4cc9afce636e07a01ce2820c110527",style:{display:"flex",flexDirection:"column",gap:"20px"}},e("dga-circular-progress-bar",{key:"3bcd7d055bfc5178de9871ee4f6cf1b68bc88161",size:"200px",percentage:this.percentage,text:"Active users"}),e("dga-circular-progress-bar",{key:"6ac72010595b488d3a9bc760453014ee40d4ac03",size:"160px",percentage:this.percentage,color:"success",icon:"success",variant:"success",text:"Active users"}),e("dga-circular-progress-bar",{key:"558d117b5a3051a04c61fc45617d4d0f4f19714a",size:"120px",percentage:this.percentage,text:"Active users"}),e("dga-circular-progress-bar",{key:"9f0aaa6c9408cca1a35d04264c2020da69ef99c8",size:"80px",percentage:this.percentage,text:"Active users"}),e("dga-circular-progress-bar",{key:"3a6d5a4cb3486e3942770d17039d17afe396e207",size:"64px",percentage:this.percentage}),e("dga-progress-bar",{key:"297988e81b3dd8f2b0d0d7cb2b0705d24a5c2ac8",percentage:this.percentage,size:"large"}),e("dga-progress-bar",{key:"92d9fe003c72b7d43c5a8b05bb85ead79f9db78e",percentage:this.percentage}),e("input",{key:"b59521c8199d8df24c60b167c47c7f04bfb33892",type:"range",min:"0",max:"100",value:this.percentage,onInput:n=>this.handleInputChange(n)}),this.percentage,"%"),e("div",{key:"2f4e938fb98b13ec3d6844090a14aef52bf07933",style:{display:"flex",flexDirection:"column",gap:"20px"}})))}},[0,"dga-progress-bar-usage",{percentage:[32]}]);function Ys(){if(typeof customElements>"u")return;["dga-progress-bar-usage","dga-circular-progress-bar","dga-progress-bar"].forEach(n=>{switch(n){case"dga-progress-bar-usage":customElements.get(n)||customElements.define(n,Ui);break;case"dga-circular-progress-bar":customElements.get(n)||ki();break;case"dga-progress-bar":customElements.get(n)||Ri();break}})}const Ws=Ui,Vs=Ys,Gs=Hi,Js=Ri,Ks=Mo,Qs=ae,Ns=Io,nd=Bo,ed=So,td=Do,od=Po,id=To,hd=Oo,rd=Fo,Zi=k(class extends u{constructor(){super(),this.__registerHost(),this.SILENCE_TIMEOUT_DURATION=8e3,this.label=void 0,this.placeholder=void 0,this.size="lg",this.variant="default",this.error=!1,this.showTrailingIcon=!0,this.icon=!0,this.disabled=!1,this.readonly=!1,this.name=S(),this.value="",this.onChange=()=>{},this.onInput=()=>{},this.onBlur=()=>{},this.speechLang="en",this.isActive=!1,this.isFocused=!1,this.isListening=!1}componentWillLoad(){const n=window.SpeechRecognition||window.webkitSpeechRecognition;n?(this.recognition=new n,this.recognition.continuous=!0,this.recognition.interimResults=!0,this.recognition.onresult=o=>{let i="";for(let h=o.resultIndex;h<o.results.length;++h)o.results[h].isFinal?this.value=o.results[h][0].transcript:i+=o.results[h][0].transcript;this.value=i||this.value},this.recognition.onend=()=>{this.isListening=!1},this.recognition.onerror=o=>{console.error("Speech recognition error",o),this.isListening=!1}):console.error("SpeechRecognition is not supported by this browser.")}startListening(){this.recognition&&(this.speechLang==="en"?this.recognition.lang="en-US":this.speechLang==="ar"&&(this.recognition.lang="ar"),this.isListening=!0,this.recognition.start(),this.resetSilenceTimer())}stopListening(){this.recognition&&(this.recognition.stop(),this.isListening=!1)}resetSilenceTimer(){this.clearSilenceTimer(),this.silenceTimeout=setTimeout(()=>{this.stopListening()},this.SILENCE_TIMEOUT_DURATION)}clearSilenceTimer(){this.silenceTimeout&&clearTimeout(this.silenceTimeout)}handleInputChange(n){console.log(this.value,"query"),this.onChange(n)}handleResetInput(){this.value=""}render(){return e("div",{key:"00f48bf7c7bc212922179f6107ea53d0ce5f5c8e",class:"dga-form-control"},this.label&&e("label",{key:"eb063358690673aa811814a5730f24d51b6e5890",class:"dga-label"},this.label),e("div",{key:"0b65210b8bc8ef8ca74ab7d3fc7e4bb19140c2f7",class:`dga-search-box dga-search-box--${this.size} ${this.error?"dga-search-box--error":""} ${this.variant!=="default"?`dga-search-box--${this.variant}`:""} ${this.isActive?"active":""} ${this.isFocused?"focus":""} ${this.disabled?"dga-search-box--disabled":""} ${this.readonly?"readOnly":""}`,ref:n=>this.inputContainerRef=n},this.icon&&e("span",{key:"6ee5c3e524d038bcf1719fc8a569b6cc7193b857",class:"dga-search-box__icon"},e("svg",{key:"02278e6cea6e574ae9758f041ae2c2ce5e0d4353",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"651e213e424d5a7e8ce1d5e6874b6e379a15e897","fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.16675 1.04163C4.67943 1.04163 1.04175 4.67931 1.04175 9.16663C1.04175 13.6539 4.67943 17.2916 9.16675 17.2916C11.1854 17.2916 13.0322 16.5554 14.4531 15.3369L17.8915 18.7752C18.1356 19.0193 18.5313 19.0193 18.7754 18.7752C19.0194 18.5312 19.0194 18.1354 18.7754 17.8914L15.337 14.453C16.5556 13.032 17.2917 11.1853 17.2917 9.16663C17.2917 4.67931 13.6541 1.04163 9.16675 1.04163ZM2.29175 9.16663C2.29175 5.36967 5.36979 2.29163 9.16675 2.29163C12.9637 2.29163 16.0417 5.36967 16.0417 9.16663C16.0417 12.9636 12.9637 16.0416 9.16675 16.0416C5.36979 16.0416 2.29175 12.9636 2.29175 9.16663Z",fill:"#161616"}))),e("input",{key:"cd03f7665688e386895b62104436833370c6eb75",name:this.name,type:"text",onFocus:()=>this.isFocused=!0,onBlur:n=>{this.isFocused=!1,this.onBlur(n)},class:"input__field",placeholder:this.placeholder,disabled:this.disabled,readOnly:this.readonly,onMouseDown:()=>this.isActive=!0,onMouseUp:()=>this.isActive=!1,onMouseOut:()=>this.isActive=!1,onChange:this.onChange,onInput:this.onInput}),e("div",{key:"527e87f94aa8a1efc0917eba89650c9ea9c03d4e",class:"dga-search-box__actions"},this.value.length>0&&e(H,{key:"2a9a761ed6812377583f0bce45da4b4039a24586"},e("button",{key:"ae58d2a7c07037fba36bd5847772708b43cbf084",class:"dga-search-box__action-btn",onClick:this.handleResetInput},e("i",{key:"8e98dccec459144924f7e632e120277a6c9f1cf7",class:"hgi-stroke hgi-cancel-01",style:{fontSize:"20px"}})),e("svg",{key:"f18dc15e6e5e017232076bda5aaaabd07baa8440",xmlns:"http://www.w3.org/2000/svg",width:"1",height:"26",viewBox:"0 0 1 26",fill:"none"},e("rect",{key:"374f56f4acebc8e580857347837ac105658219a9",x:"1",y:"0.5",width:"25",height:"1",transform:"rotate(90 1 0.5)",fill:"#D2D6DB"}))),this.showTrailingIcon&&e("dga-tooltip",{key:"daf482fea542d3e97ed542e339b7dfd42ed3aeec",tooltipTitle:"Search by voice",direction:"bottom",beakAlignment:"center",beakPlacement:"top"},e("button",{key:"935c3ea71792222752e437083ce357dfc6653f95",class:"dga-search-box__search-btn",onClick:()=>this.startListening(),disabled:this.isListening},this.isListening?e("span",{class:"dga-search-box__icon"},e("i",{class:"hgi-solid hgi-mic-01",style:{fontSize:"20px"}})):e("span",{class:"dga-search-box__icon"},e("i",{class:"hgi-stroke hgi-mic-01",style:{fontSize:"20px"}})))))))}},[0,"dga-search-box",{label:[1],placeholder:[1],size:[1],variant:[1],error:[4],showTrailingIcon:[4,"show-trailing-icon"],icon:[4],disabled:[4],readonly:[4],name:[1],value:[1],onChange:[16],onInput:[16],onBlur:[16],speechLang:[1,"speech-lang"],isActive:[32],isFocused:[32],isListening:[32]}]);function Xi(){if(typeof customElements>"u")return;["dga-search-box","dga-tooltip"].forEach(n=>{switch(n){case"dga-search-box":customElements.get(n)||customElements.define(n,Zi);break;case"dga-tooltip":customElements.get(n)||Mn();break}})}const Yi=k(class extends u{constructor(){super(),this.__registerHost(),this.value=""}render(){return e("div",{key:"944f4d6bc3710918903871c0611473d31705b979"},e("h1",{key:"ebdc3342ecdf86782eed96736517098756231254"},"Search Box Example"),e("div",{key:"b41b1237af2b695aa4a84d51e76019482464a9e3",style:{padding:"50px"}},e("div",{key:"9ef47124b945c5111e4fb6c4686c08c517fd563f",style:{display:"flex",flexDirection:"column",gap:"16px"}},e("dga-search-box",{key:"da4c3c84e545c54d1be20b5e9b73a0854014df13",variant:"default",placeholder:"test placeholder",onChange:n=>{const o=n.target;console.log("search changed"),this.value=o.value},onInput:n=>{console.log("search changed",n.target.value),this.value=n.target.value}}))))}},[0,"dga-search-box-usage",{value:[32]}]);function gd(){if(typeof customElements>"u")return;["dga-search-box-usage","dga-search-box","dga-tooltip"].forEach(n=>{switch(n){case"dga-search-box-usage":customElements.get(n)||customElements.define(n,Yi);break;case"dga-search-box":customElements.get(n)||Xi();break;case"dga-tooltip":customElements.get(n)||Mn();break}})}const ad=Yi,cd=gd,sd=Zi,dd=Xi,Wi=k(class extends u{constructor(){super(),this.__registerHost(),this.min=0,this.max=100,this.step=1,this.range=!0,this.label=void 0,this.showLabel=!0,this.showHelperText=!0,this.helperText=void 0,this.size="small",this.minValue=void 0,this.maxValue=void 0}calculatePositions(){const n=(this.minValue-this.min)/(this.max-this.min)*100,o=(this.maxValue-this.min)/(this.max-this.min)*100;this.minPos=n,this.maxPos=o,this.railColorStyle=this.range?{left:`${n}%`,width:`${o-n}%`}:{left:"0%",width:`${n}%`}}componentWillLoad(){this.minValue=this.min,this.maxValue=this.max,this.calculatePositions()}watchMinValue(n){this.minValue=n,this.calculatePositions()}watchMaxValue(n){this.maxValue=n,this.calculatePositions()}watchRangeValue(){this.calculatePositions()}handleMinChange(n){const o=n.target,i=this.range?Math.min(+o.value,this.maxValue-this.step):Math.min(+o.value);this.minValue=i,this.calculatePositions()}handleMaxChange(n){const o=n.target,i=Math.max(+o.value,this.minValue+this.step);this.maxValue=i,this.calculatePositions()}render(){return e("div",{key:"bc79508cb8c7ec7d31fc5e436ae9c94f318b6645",class:`range-slider-wrapper ${this.size}`},e("div",{key:"f8830a07e48cbfa3402d753c65bad8ec2df0bba4",class:"range-slider-input-wrapper"},e("input",{key:"cee24c02c6ec0b6ae56f1800df1ea1e9e7524194",class:"range-slider-input",type:"range",value:this.minValue,min:this.min,max:this.max,step:this.step,onInput:this.handleMinChange.bind(this)}),this.range&&e("input",{key:"73a2bbdbee6616ddf03c9c4fb1f6fd0e81ade8b1",class:"range-slider-input",type:"range",value:this.maxValue,min:this.min,max:this.max,step:this.step,onInput:this.handleMaxChange.bind(this)})),e("div",{key:"42ecc00fba624609b4e92e60b487cd1868c5fd0f",class:"range-slider-container"},this.showLabel&&e("h3",{key:"c6e6bab85612e463cd82e9ce777151ecb01aaaba"},this.label),e("div",{key:"146fae3b05e70b780da3518dcf668e55779bd236",class:"range-slider-control-wrapper"},e("div",{key:"ae5a22a9202939cf153ad677c04db3112a99d004",class:"range-slider-control",style:{left:`${this.minPos}%`}}),e("div",{key:"a642f75c2d8ac2fe3c0d54b74ef0cb72e36fedac",class:"range-slider-rail"},this.range&&e("div",{key:"6b6a2642026978f88d2fff4241a140f68abc8ad4",class:"range-slider-number_left"},this.minValue),e("div",{key:"f7bf6d55e3928ffa753ec3e2d7e657b11638fa9b",class:"range-slider-inner-rail",style:this.railColorStyle}),this.range&&e("div",{key:"8a96546fc5c374a26b9d27875af34b821c06de75",class:"range-slider-number_right"},this.maxValue),!this.range&&e("div",{key:"cd2ff3b59abe1ffe4e97d765dc09ddafc8da130b",class:"range-slider-number_right"},this.minValue)),this.range&&e("div",{key:"d56d4c878f6f8b814321d712ba20fde5af2224d3",class:"range-slider-control",style:{left:`${this.maxPos}%`}}),this.showHelperText&&e("div",{key:"87c12b17a646bd29bbe8c0e5e52fd931bf5249ff",class:"range-slider-note"},e("div",{key:"a0720f82917b6ed1ed35269e333a2b8b27f68f12",class:"range-slider-note-icon"},e("svg",{key:"ab3e2e5d870161954aea319ba91ba62c1370d238",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{key:"b82f0d114e125cf6afb5d591d504270c86ef2c07","clip-path":"url(#clip0_17869_405)"},e("path",{key:"80f0fad589a998c4129c3760c6c3e41a395fc109",d:"M6.06004 6.00001C6.21678 5.55446 6.52614 5.17875 6.93334 4.93943C7.34055 4.70012 7.8193 4.61264 8.28483 4.69248C8.75035 4.77233 9.17259 5.01436 9.47676 5.3757C9.78093 5.73703 9.94741 6.19436 9.94671 6.66668C9.94671 8.00001 7.94671 8.66668 7.94671 8.66668M8.00004 11.3333H8.00671M14.6667 8.00001C14.6667 11.6819 11.6819 14.6667 8.00004 14.6667C4.31814 14.6667 1.33337 11.6819 1.33337 8.00001C1.33337 4.31811 4.31814 1.33334 8.00004 1.33334C11.6819 1.33334 14.6667 4.31811 14.6667 8.00001Z",stroke:"#384250","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),e("defs",{key:"c62a467f85438e6c78b311b5a2c366431bc36d73"},e("clipPath",{key:"13f2de07dd722bd50225883c5ecdbb33159adad8",id:"clip0_17869_405"},e("rect",{key:"886fbb91dff6bfec73e93d037b51b337507bc4d4",width:"16",height:"16",fill:"white"}))))),e("div",{key:"ba35f4a35b15d1db18b31271e89cf6e41f613d10",class:"range-slider-note-content"},e("p",{key:"677ee0d6fa4a7ff285701b637b21d4d5df57a9b3"},this.helperText))))))}static get watchers(){return{min:["watchMinValue"],max:["watchMaxValue"],range:["watchRangeValue"]}}},[0,"dga-slider",{min:[2],max:[2],step:[2],range:[4],label:[1],showLabel:[4,"show-label"],showHelperText:[4,"show-helper-text"],helperText:[1,"helper-text"],size:[1],minValue:[32],maxValue:[32]},void 0,{min:["watchMinValue"],max:["watchMaxValue"],range:["watchRangeValue"]}]);function fd(){if(typeof customElements>"u")return;["dga-slider"].forEach(n=>{switch(n){case"dga-slider":customElements.get(n)||customElements.define(n,Wi);break}})}const ld=Wi,bd=fd,ud=Uo,kd=Zo,Vi=k(class extends u{constructor(){super(),this.__registerHost(),this.onSelect=Y(this,"onSelect",7),this.type=void 0,this.variant=void 0,this.options=void 0,this.label=void 0,this.icon=void 0,this.dpIsActive=!1,this.selectedOption=null}handleSuffixClick(){this.suffixBtn.classList.toggle("open")}handleOptionSelect(n){this.selectedOption=n,this.onSelect.emit(n.value);const o=this.suffixBtn.querySelector(".dropdown__label");o&&o.classList.add("dropdown__label--selection"),this.suffixBtn.classList.remove("open"),this.suffixBtn.classList.add("selected")}render(){return this.type==="text"?e("div",{class:`input__suffix input__suffix--${this.variant}-text`},e("span",{class:"input__suffix-label"},this.label)):e(H,null,e("button",{class:`input__suffix input__suffix--${this.variant} input__dropdown-btn`,onMouseDown:()=>this.dpIsActive=!0,onMouseUp:()=>this.dpIsActive=!1,onMouseOut:()=>this.dpIsActive=!1,onClick:()=>this.handleSuffixClick(),ref:n=>this.suffixBtn=n},e("span",{class:"input__suffix-icon"},this.icon),e("span",{class:"dropdown__label"},this.selectedOption&&Object.keys(this.selectedOption).length?this.selectedOption.label:" "),e("span",{class:"input__suffix-label"},this.label),e("span",{class:"input__suffix-chevron"},e("dga-icon",{icon:"ArrowDown01Icon",variant:"stroke"}))),e("ul",{class:"input__dropdown-list"},this.options&&this.options.map(n=>{var o;return e("li",{key:n.value},e("button",{class:`dropdown__option ${((o=this.selectedOption)===null||o===void 0?void 0:o.value)===n.value?"selected":""}`,onClick:()=>this.handleOptionSelect(n)},e("span",{class:"dropdown__option-label"},n.label),e("span",{class:"dropdown__option-icon"},e("dga-icon",{icon:"Tick02Icon",variant:"solid"}))))})))}},[0,"dga-suffix",{type:[1],variant:[1],options:[16],label:[1],icon:[8],dpIsActive:[32],selectedOption:[32]}]);function pd(){if(typeof customElements>"u")return;["dga-suffix","dga-icon"].forEach(n=>{switch(n){case"dga-suffix":customElements.get(n)||customElements.define(n,Vi);break;case"dga-icon":customElements.get(n)||E();break}})}const md=Vi,wd=pd,vd=Yo,yd=Wo,xd=Go,qd=Jo,_d=No,zd=ni,jd=At,Cd=W,$d=oi,Ed=Dn,Sd=hi,Dd=ri,Md=ai,Id=Mn,Bd=Gt,Ad=Jt,Pd=Ot,Td=ee,Ld=Tt,Od=en,Fd=Lt,Hd=Sn,Rd=Pt,Ud=nn;/**
|
|
1037913
1037913
|
* @license
|
|
1037914
1037914
|
* Copyright 2018 Google LLC
|
|
1037915
1037915
|
* SPDX-License-Identifier: BSD-3-Clause
|
package/dist/index.js
CHANGED
|
@@ -1043905,10 +1043905,10 @@ const ss = Pi, ds = cs, Li = /* @__PURE__ */ k(class extends u {
|
|
|
1043905
1043905
|
return e("div", { key: "bb18630be9d1f0a5257ad64fad4df92d5889c7ca", class: "dga-metric", "data-chart-size": this.Style }, e("div", { key: "f8bdf5ec3e43e00ca3d69fc7983bc548a1b2e0f3", class: "dga-metric__head" }, e("div", { key: "efe5ffb448115562bce49a1c0f6fb8fdc2e2d9a6", class: "dga-metric__head-content" }, this.showFeaturedIcon && e("div", { key: "716c2ccd4546ef261c80cdad6ce0e0e9a9863b2b", class: "featured-icon featured-icon--light-brand featured-icon--circle featured-icon--sm" }, this.featuredIcon), this.label && e("span", { key: "5b4bd51d29392351bb25f6d3470c6f2b58065be2", class: "dga-metric__head-content-text" }, this.label)), this.showMoreButton && e("dga-button", { key: "ab855e283f4a222c79c139566af162f2abe84833", variant: "subtle", iconOnly: !0, leadIcon: !0, leadIconType: "more-vertical", leadIconProps: {
|
|
1043906
1043906
|
variant: "stroke",
|
|
1043907
1043907
|
type: "rounded"
|
|
1043908
|
-
}, onClick: this.onExpandAction })), e("div", { key: "1a43fc90efc19ee149a49dd14e3fb25ca51e1066", class: "dga-metric__body" }, e("div", { key: "7d1bee47dd7c549250755cc6048591f008343578", class: "dga-metric__content" }, e("h3", { key: "aff23dc6ca45ae4c95aa7c60c822f05a792251bf", class: "dga-metric__content-percentage" }, this.percentage), this.showInfo && e("div", { key: "b9994108aacf4d465c427862e9a7bd60a4c40ebc", class: "dga-metric__content-change", "data-change-trend": this.changeProps.trend }, e("span", { key: "545f36ce046fe020263f790c2196f997ec74fcea", class: "dga-metric__content-change-icon" }, e("dga-icon", { key: "
|
|
1043908
|
+
}, onClick: this.onExpandAction })), e("div", { key: "1a43fc90efc19ee149a49dd14e3fb25ca51e1066", class: "dga-metric__body" }, e("div", { key: "7d1bee47dd7c549250755cc6048591f008343578", class: "dga-metric__content" }, e("h3", { key: "aff23dc6ca45ae4c95aa7c60c822f05a792251bf", class: "dga-metric__content-percentage" }, this.percentage), this.showInfo && e("div", { key: "b9994108aacf4d465c427862e9a7bd60a4c40ebc", class: "dga-metric__content-change", "data-change-trend": this.changeProps.trend }, e("span", { key: "545f36ce046fe020263f790c2196f997ec74fcea", class: "dga-metric__content-change-icon" }, e("dga-icon", { key: "5a9bb10bb3369ccd1687683d998b24e2ac312133", icon: this.changeIcons[this.changeProps.type][this.changeProps.trend], type: "rounded", variant: "stroke", size: 24 })), e("span", { key: "7256f2fb4a127df78fe09b2be13eae33de1052ec", class: "dga-metric__content-change-value" }, Math.abs(100), "%"), e("span", { key: "538174d93428080e837608c325d1942391b532b1", class: "dga-metric__content-change-period" }, "vs last month"))), this.showChart && e("div", { key: "f1ba23eef696e7a3284f925da416abd76527f61f", class: "dga-metric__chart" }, e("dga-chart", Object.assign({ key: "20a627b423e331087403976235500679f133aeb1" }, this.chartProps, { size: this.Style === "small-chart" ? "sm" : "lg" })))), this.showActions && e(H, { key: "ce510f34b9adc1f48b36d48ba8513da456fecb35" }, e("div", { key: "a76469e64d6c9bf50faa7c947a79c10f705a8881", class: "dga-metric__divider" }), e("div", { key: "8feb1c01a2869665377b2ab5e81eb4964e584075", class: "dga-metric__actions" }, this.showSecondaryAction && e("dga-button", { key: "d3c7faea957974f9b16c0e1bacbdf62eba94a5b6", variant: "subtle", iconOnly: !0, leadIcon: !0, leadIconType: "settings-02", leadIconProps: {
|
|
1043909
1043909
|
variant: "stroke",
|
|
1043910
1043910
|
type: "rounded"
|
|
1043911
|
-
}, onClick: this.onSecondaryAction }), e("dga-button", { key: "
|
|
1043911
|
+
}, onClick: this.onSecondaryAction }), e("dga-button", { key: "73c47406768a97690b06b18f84acc3822a646b12", variant: "secondary-outline", class: "dga-metric__actions--primary", label: "View Report", onClick: this.onPrimaryAction }))));
|
|
1043912
1043912
|
}
|
|
1043913
1043913
|
}, [0, "dga-metric", {
|
|
1043914
1043914
|
label: [1],
|
package/package.json
CHANGED