From 103a07cfe702fed4eabbb19561aa8a2fd43d86b3 Mon Sep 17 00:00:00 2001 From: antoniandre Date: Wed, 25 Sep 2024 21:33:19 +0200 Subject: [PATCH] Publish documentation on Github. --- docs/assets/{index-DFZCaZsJ.js => index-DpVbjpXy.js} | 6 +++--- ...test-view-Bz6gUFhh.js => isolated-test-view-CfCHNBQX.js} | 2 +- docs/index.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename docs/assets/{index-DFZCaZsJ.js => index-DpVbjpXy.js} (99%) rename docs/assets/{isolated-test-view-Bz6gUFhh.js => isolated-test-view-CfCHNBQX.js} (96%) diff --git a/docs/assets/index-DFZCaZsJ.js b/docs/assets/index-DpVbjpXy.js similarity index 99% rename from docs/assets/index-DFZCaZsJ.js rename to docs/assets/index-DpVbjpXy.js index 213a9f8c..244b4eb3 100644 --- a/docs/assets/index-DFZCaZsJ.js +++ b/docs/assets/index-DpVbjpXy.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/isolated-test-view-Bz6gUFhh.js","assets/isolated-test-view-DH1hyTdI.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/isolated-test-view-CfCHNBQX.js","assets/isolated-test-view-DH1hyTdI.css"])))=>i.map(i=>d[i]); var Nr=Object.defineProperty;var Wr=(t,e,s)=>e in t?Nr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var wt=(t,e,s)=>Wr(t,typeof e!="symbol"?e+"":e,s);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const n of o)if(n.type==="childList")for(const r of n.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function s(o){const n={};return o.integrity&&(n.integrity=o.integrity),o.referrerPolicy&&(n.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?n.credentials="include":o.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function i(o){if(o.ep)return;o.ep=!0;const n=s(o);fetch(o.href,n)}})();/** * @vue/shared v3.5.8 * (c) 2018-present Yuxi (Evan) You and Vue contributors @@ -1892,7 +1892,7 @@ what can be done via CSS should be done via CSS. CSS classes will help you style cells, splits, etc.`),l("br"),a(` Vue Cal provides the minimum needed CSS styles, not the nicest one: that makes it highly customizable for all the scenarii and a breeze to override.`),l("br"),l("strong",null,[a("You most likely don't need the "),l("code",null,"!important"),a(" flag.")])])],-1))])]),_:1})]),l("div",fv,[h(d,{class:"ml-1 mr4",size:"50",color:"orange-light3"},{default:p(()=>e[10]||(e[10]=[a("material-icons report")])),_:1}),h(u,{class:"message-box","border-left":"",color:"orange-dark1"},{default:p(()=>e[11]||(e[11]=[l("p",null,[a("Vue 2 has reached EOL, and so has Vue Cal legacy branch."),l("br"),a(` -You can still you it for Vue 2 projects with `),l("code",{class:"grey-light6--bg bdrs1 px1"},[a("npm i vue-cal@"),l("strong",null,"legacy")]),a(`, but +You can still use it for Vue 2 projects with `),l("code",{class:"grey-light6--bg bdrs1 px1"},[a("npm i vue-cal@"),l("strong",null,"legacy")]),a(`, but it will not receive further updates or support.`),l("br"),a(`Time to move on! 🚀 `)],-1)])),_:1})]),l("div",gv,[h(d,{class:"ml-1 mr4",size:"50",color:"pink-light3"},{default:p(()=>e[12]||(e[12]=[a("material-icons favorite")])),_:1}),h(u,{class:"message-box","border-left":"",color:"pink"},{default:p(()=>e[13]||(e[13]=[a("If you like Vue Cal, you can"),l("a",{class:"pink mx2",href:"https://github.com/sponsors/antoniandre",target:"_blank",style:{"text-decoration":"underline"}},[l("strong",null,"Sponsor me")],-1),a("or"),l("a",{class:"pink ml2",href:"https://www.paypal.me/antoniandre1",target:"_blank",style:{"text-decoration":"underline"}},[l("strong",null,"buy me a coffee")],-1),a("!"),l("div",null,[a("Thank you so much to all the backers! "),l("span",{class:"title2 ml1"},"🙏")],-1)])),_:1})]),l("div",vv,[(f(),y("svg",yv,e[14]||(e[14]=[l("path",{fill:"#497ca2",d:"M449 0c-78 5-152 39-217 82-19 13-37 26-54 40-39 1-77 15-110 34-34 21-53 60-61 99-11 52-8 108 6 159 7 23 16 46 33 63 4-4 13-4 13-11-1-5-7-8-9-14-27-48-32-108-11-159 13-32 36-63 68-77 19-9 42-7 58 6 6 7 18 4 24-2 6-4 11-10 19-10-24 25-39 60-38 95 1 15 3 31 8 45 16 36 41 69 76 89 5 2 10 6 16 7 5-2 14-5 14-12-4-9-14-12-21-18-27-23-56-48-67-82-9-29-1-60 8-88 7-15 21-32 39-29 15 1 28 13 43 8 11-5 13-17 16-27 5-17 3-38-10-51-16-18-40-23-62-25l-11-2c23-19 53-26 81-31 21-3 43-5 64-2 18 3 28 21 42 31-33 47-57 102-56 159a170 170 0 0086 149c6-1 13-7 10-14-5-11-17-16-25-25-33-30-52-75-50-121 1-29 11-58 24-84 12-25 25-52 47-71 9-8 22-13 33-7 20 8 42 14 63 13-35 27-55 70-64 113-9 44-7 91 12 133 15 37 45 68 81 85 32 16 67 24 101 27 18 1 36 2 53-4 4-1 6-7 2-9-13-6-28-4-42-6-45-5-92-16-127-45-34-28-54-71-60-114-5-47 7-97 34-137 11-15 26-31 45-34 14-1 25 12 31 23 6 12 16 24 29 28 20-10 40-26 43-50 2-17-6-34-14-49-15-25-40-43-69-48-20-5-41-2-61-6-22-21-54-24-83-24zm6 21c22 0 48 5 62 25 4 7 8 16 8 24-1 10-10 22-21 19-9-7-18-14-30-16-14-4-31-1-43 8-6 6-17 8-24 2-9-6-17-15-28-17-27-7-54 1-81 6a364 364 0 01157-51zm117 29c33 0 66 25 72 58 3 12 3 28-8 35-3 2-6 4-8 1-8-12-12-27-23-37-3-7-12-8-19-9-13-2-26 0-39-4 7-7 6-17 4-25l-3-16 24-3zm-372 92l46 2c18 2 33 16 34 34 1 7 1 17-6 21-6 0-12-4-18-6-21-8-46-14-67-3-6 2-11 9-17 5-10-4-18-14-30-12-30 1-56 21-77 42-16 17-30 37-43 56 0-39 17-80 49-104 26-22 61-30 94-34l35-1z"},null,-1)]))),h(u,{class:"message-box ml-1","border-left":"",color:"pale-blue"},{default:p(()=>e[15]||(e[15]=[l("strong",null,[a("Check out my Vue UI framework!"),l("a",{class:"title3 ml4",href:"https://antoniandre.github.io/wave-ui",target:"_blank",style:{width:"50px",color:"#1471b8","text-decoration":"underline"}},[l("strong",null,"Wave UI")])],-1)])),_:1})]),e[122]||(e[122]=l("h2",{class:"title2 mt12 pt12"},[l("a",{href:"#to-do-list"},"To do..."),l("a",{id:"to-do-list",name:"to-do-list"})],-1)),h(m,{"model-value":[!1,!0],items:2,"expand-icon-right":"","expand-single":""},{"item-title.1":p(()=>[h(d,{class:"mr2 primary"},{default:p(()=>e[16]||(e[16]=[a("material-icons check_circle")])),_:1}),e[17]||(e[17]=l("strong",{class:"mra"},"Done",-1))]),"item-content.1":p(()=>[l("div",bv,[h(c,null,{default:p(()=>e[18]||(e[18]=[a("default active view")])),_:1}),h(c,null,{default:p(()=>e[19]||(e[19]=[a("Enable / disable views")])),_:1}),h(c,null,{default:p(()=>e[20]||(e[20]=[a("Hide / show weekends")])),_:1}),h(c,null,{default:p(()=>e[21]||(e[21]=[a("Add timeline w/ time range & increment")])),_:1}),h(c,null,{default:p(()=>e[22]||(e[22]=[a("Add timeline")])),_:1}),h(c,null,{default:p(()=>e[23]||(e[23]=[a("time format 12/24 h")])),_:1}),h(c,null,{default:p(()=>e[24]||(e[24]=[a("Support for i18n")])),_:1}),h(c,null,{default:p(()=>e[25]||(e[25]=[a("Split days")])),_:1}),h(c,null,{default:p(()=>e[26]||(e[26]=[a("Support events")])),_:1}),h(c,null,{default:p(()=>e[27]||(e[27]=[a("Background events")])),_:1}),h(c,null,{default:p(()=>e[28]||(e[28]=[a("Overlap events")])),_:1}),h(c,null,{default:p(()=>e[29]||(e[29]=[a("Keep only default style in CSS")])),_:1}),h(c,null,{default:p(()=>e[30]||(e[30]=[a("Allow custom arrows")])),_:1}),h(c,null,{default:p(()=>e[31]||(e[31]=[a("Default active date")])),_:1}),h(c,null,{default:p(()=>e[32]||(e[32]=[a("Double tap on touch devices")])),_:1}),h(c,null,{default:p(()=>e[33]||(e[33]=[a("1st NPM Release!")])),_:1}),h(c,null,{default:p(()=>e[34]||(e[34]=[a("Built-in themes")])),_:1}),h(c,null,{default:p(()=>e[35]||(e[35]=[a("Resize events")])),_:1}),h(c,null,{default:p(()=>e[36]||(e[36]=[a("Delete events")])),_:1}),h(c,null,{default:p(()=>e[37]||(e[37]=[a("Emit DOM events")])),_:1}),h(c,null,{default:p(()=>e[38]||(e[38]=[a("Event indicator on month view")])),_:1}),h(c,null,{default:p(()=>e[39]||(e[39]=[a("Custom time format")])),_:1}),h(c,null,{default:p(()=>e[40]||(e[40]=[a("Highlight current time")])),_:1}),h(c,null,{default:p(()=>e[41]||(e[41]=[a("Show events on month view")])),_:1}),h(c,null,{default:p(()=>e[42]||(e[42]=[a("sync 2 vue-cal instances")])),_:1}),h(c,null,{default:p(()=>e[43]||(e[43]=[a("Add CSS transitions")])),_:1}),h(c,null,{default:p(()=>e[44]||(e[44]=[a("Multiple day events")])),_:1}),h(c,null,{default:p(()=>e[45]||(e[45]=[a("Custom events rendering")])),_:1}),h(c,null,{default:p(()=>e[46]||(e[46]=[a("Custom callback on event click")])),_:1}),h(c,null,{default:p(()=>e[47]||(e[47]=[a("Option to start week on Sunday")])),_:1}),h(c,null,{default:p(()=>e[48]||(e[48]=[a("All day events in top bar")])),_:1}),h(c,null,{default:p(()=>e[49]||(e[49]=[a("Custom cell rendering")])),_:1}),h(c,null,{default:p(()=>e[50]||(e[50]=[a("Events count on year(s) views")])),_:1}),h(c,null,{default:p(()=>e[51]||(e[51]=[a("Create new event")])),_:1}),h(c,null,{default:p(()=>e[52]||(e[52]=[a("min & max dates")])),_:1}),h(c,null,{default:p(()=>e[53]||(e[53]=[a("Today button")])),_:1}),h(c,null,{default:p(()=>e[54]||(e[54]=[a("Externalize locales")])),_:1}),h(c,null,{default:p(()=>e[55]||(e[55]=[a("Support more simultaneous events")])),_:1}),h(c,null,{default:p(()=>e[56]||(e[56]=[a("Sticky day splits labels")])),_:1}),h(c,null,{default:p(()=>e[57]||(e[57]=[a("Hide particular weekdays")])),_:1}),h(c,null,{default:p(()=>e[58]||(e[58]=[a("Optional week number")])),_:1}),h(c,null,{default:p(()=>e[59]||(e[59]=[a("Date prototypes")])),_:1}),h(c,null,{default:p(()=>e[60]||(e[60]=[a("Business hours")])),_:1}),h(c,null,{default:p(()=>e[61]||(e[61]=[a("Drag & drop events")])),_:1}),h(c,null,{default:p(()=>e[62]||(e[62]=[a("Resize events snap to time")])),_:1}),h(c,null,{default:p(()=>e[63]||(e[63]=[a("Drag events snap to time")])),_:1}),h(c,null,{default:p(()=>e[64]||(e[64]=[a("Drag & drop ext. events into Vue Cal")])),_:1}),h(c,null,{default:p(()=>e[65]||(e[65]=[a("Disable days")])),_:1}),h(c,null,{default:p(()=>e[66]||(e[66]=[a("Support Vue 3")])),_:1})])]),"item-title.2":p(()=>[h(d,{class:"mr2 orange"},{default:p(()=>e[67]||(e[67]=[a("material-icons access_time")])),_:1}),e[68]||(e[68]=l("strong",{class:"mra"},"Backlog",-1))]),"item-content.2":p(()=>[l("div",wv,[h(c,{status:"doing"},{default:p(()=>e[69]||(e[69]=[a("Recurring events")])),_:1}),h(c,{status:"todo"},{default:p(()=>e[70]||(e[70]=[a("Drag & drop multiple day events")])),_:1}),h(c,{status:"todo"},{default:p(()=>e[71]||(e[71]=[a("Drag & drop events on touch devices")])),_:1}),h(c,{status:"todo"},{default:p(()=>e[72]||(e[72]=[l("a",{href:"https://github.com/antoniandre/vue-cal/issues/168",target:"_blank",style:{"text-decoration":"underline",color:"inherit"}},"Full Typescript support",-1)])),_:1}),h(c,{status:"todo"},{default:p(()=>e[73]||(e[73]=[l("a",{href:"https://github.com/antoniandre/vue-cal/issues/127",target:"_blank",style:{"text-decoration":"underline",color:"inherit"}},"Full SSR support",-1)])),_:1}),h(c,{status:"todo"},{default:p(()=>e[74]||(e[74]=[a("Improve multiple day events Month view")])),_:1}),h(c,{status:"todo"},{default:p(()=>e[75]||(e[75]=[a("Prevent event intersect. on drag/resize")])),_:1}),h(c,{status:"todo"},{default:p(()=>e[76]||(e[76]=[a("Horizontal timeline")])),_:1})])]),_:1}),e[123]||(e[123]=ce('

Installation

You have 2 options: using NPM or <script> tag.

',2)),l("ul",kv,[l("li",null,[e[99]||(e[99]=l("h3",{class:"mt4"},"Via NPM",-1)),l("div",xv,[h(g,{class:"my0",language:"shell"},{default:p(()=>e[77]||(e[77]=[a("npm i vue-cal # Vue 3")])),_:1}),e[79]||(e[79]=l("span",{class:"mx6"},"or",-1)),h(g,{class:"my0",language:"shell"},{default:p(()=>e[78]||(e[78]=[a("npm i vue-cal@legacy # Vue 2")])),_:1})]),e[100]||(e[100]=l("p",{class:"mt6 mb3"},"Then import Vue Cal in your Vue component and use it.",-1)),h(w,{class:"vs-d-block",gap:"6"},{default:p(()=>[h(v,{class:"w-flex column bdrs2",items:2,"content-class":"pa0 fill-height"},{"item-title.1":p(()=>e[80]||(e[80]=[a("Options API")])),"item-content.1":p(()=>[h(g,{class:"fill-height ma0 bd0",language:"js"},{default:p(()=>e[81]||(e[81]=[a(`import VueCal from 'vue-cal' @@ -1957,4 +1957,4 @@ weekdays headings and the all-day bar get an added padding right to align well w This is done once, in the mounted hook.

# Disabled text selection

By default the selection is disabled in the whole calendar except in the events. you can override this by CSS. -

Release notes

`,8)),h($)])}const Lv=[{code:"sq",label:"Albanian"},{code:"ar",label:"Arabic"},{code:"bn",label:"Bangla"},{code:"bs",label:"Bosnian"},{code:"bg",label:"Bulgarian"},{code:"ca",label:"Catalan"},{code:"cs",label:"Czech"},{code:"zh-cn",label:"Chinese (Simplified)"},{code:"zh-hk",label:"Chinese (Traditional)"},{code:"hr",label:"Croatian"},{code:"da",label:"Danish"},{code:"nl",label:"Dutch"},{code:"en",label:"English"},{code:"et",label:"Estonian"},{code:"fa",label:"Farsi"},{code:"fr",label:"French"},{code:"ka",label:"Georgian"},{code:"de",label:"German"},{code:"el",label:"Greek"},{code:"he",label:"Hebrew"},{code:"hu",label:"Hungarian"},{code:"is",label:"Icelandic"},{code:"it",label:"Italian"},{code:"id",label:"Indonesian"},{code:"ja",label:"Japanese"},{code:"ko",label:"Korean"},{code:"lt",label:"Lithuanian"},{code:"mn",label:"Mongolian"},{code:"no",label:"Norwegian"},{code:"pl",label:"Polish"},{code:"pt-br",label:"Portuguese Brasilian"},{code:"ro",label:"Romanian"},{code:"ru",label:"Russian"},{code:"sr",label:"Serbian"},{code:"sk",label:"Slovak"},{code:"sl",label:"Slovenian"},{code:"es",label:"Spanish"},{code:"sv",label:"Swedish"},{code:"tr",label:"Turkish"},{code:"uk",label:"Ukrainian"},{code:"vi",label:"Vietnamese"}],Pv={components:{VueCal:Ci,SshPre:xi,HighlightMessage:ul,TodoListItem:Zh,MainDemo:dm,Examples:Kg,Api:Zg,ReleaseNotes:iv},data:()=>({localesList:Lv}),computed:{nowFormatted(){return Date.prototype.format&&new Date().format("YYYY{MM}DD")}}},Nv=Ge(Pv,[["render",Rv]]),Wv=[{path:"/",component:Nv},{path:"/test",component:()=>ue(()=>import("./isolated-test-view-Bz6gUFhh.js"),__vite__mapDeps([0,1]))}],Hv=Ep({history:np("/vue-cal/"),routes:Wv});var jv=Object.defineProperty,$r=t=>{throw TypeError(t)},zv=(t,e,s)=>e in t?jv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,$n=(t,e,s)=>zv(t,typeof e!="symbol"?e+"":e,s),Ir=(t,e,s)=>e.has(t)||$r("Cannot "+s),Fl=(t,e,s)=>(Ir(t,e,"read from private field"),s?s.call(t):e.get(t)),Mr=(t,e,s)=>e.has(t)?$r("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),Ar=(t,e,s,i)=>(Ir(t,e,"write to private field"),e.set(t,s),s);const Fv=Zt({on:"#app",breakpoints:{xs:600,sm:900,md:1200,lg:1700,xl:9999},css:{colorShades:!0,colorShadeCssVariables:!1,breakpointSpaces:!1,breakpointLayoutClasses:!0,grid:12},colors:{light:{primary:"#234781",secondary:"#d3ebff",info:"#3d9ff5",warning:"#f80",success:"#54b946",error:"#f65555"},dark:{primary:"#89b6d2",secondary:"#375b6a",info:"#3d9ff5",warning:"#f80",success:"#54b946",error:"#f65555"}},theme:"light",icons:[],iconsLigature:!1,notificationManager:{align:"right",transition:"default"},presets:{}}),Br=(t,e=Fv)=>{if(!Object.keys(e).length)e=Object.assign(e,t);else for(const s in t){const i=t[s];typeof i=="object"&&typeof e[s]=="object"?Br(t[s],e[s]):e[s]=i}return e},an=t=>console.warn(`Wave UI: ${t}`),Us=t=>console.error(`Wave UI: ${t}`),Yv=t=>{["light","dark"].forEach(e=>{var s,i,o;const n=t.colors[e];n.shades={};for(const r in n){if(r==="shades")continue;const d=n[r],u={label:r,color:(o=(i=((s=n[r])==null?void 0:s.color)??n[r])==null?void 0:i.replace)==null?void 0:o.call(i,"#","")},c=u.color;if(c){c.length===3&&(u.color=c[0]+""+c[0]+c[1]+c[1]+c[2]+c[2]);for(let m=1;m<=6;m++){const g=Gv(`#${u.color}`,m*((d==null?void 0:d.lightIncrement)??16)+((d==null?void 0:d.lightOffset)??0)),v=Xv(`#${u.color}`,m*((d==null?void 0:d.darkIncrement)??12.4)+((d==null?void 0:d.darkOffset)??0));n.shades[`${u.label}-light${m}`]=g,n.shades[`${u.label}-dark${m}`]=v}}}})},La=(t,e)=>{const s={...e.reduce((i,o)=>{i[o.label]=o.color;const n=(o.shades||[]).reduce((r,d)=>(r[d.label]=d.color,r),{});return{...i,...n}},{...t,...t.shades})};return delete s.shades,s};function kn(t,e,s){return Math.min(Math.max(t,e),s)}function xn(t){const e=t.toString(16);return e.length===1&&`0${e}`||e.length===2&&e||Us(`expected value from 0~255, got: ${t}`)||""}function Uv(t){return/^#[0-9a-f]{6}([0-9a-f]{2})?$/i.test(t)}function Kv(t){return/^#[0-9a-f]{3}([0-9a-f])?$/i.test(t)}function qv(t){return`#${t.substring(1).split("").map(e=>`${e}${e}`).join("")}`}function Jv(t){return Uv(t)&&t||Kv(t)&&qv(t)||Us(`expected color hex string, got '${t}'`)||""}function Pa(t){const e=Jv(t),s=parseInt(e.substring(1,3),16),i=parseInt(e.substring(3,5),16),o=parseInt(e.substring(5,7),16),n=e.length===9?parseInt(e.substring(7,9),16)/255:1;return{red:s,green:i,blue:o,alpha:n,hasAlpha:e.length===9}}function Na(t,e,s,i){return`#${xn(t)}${xn(e)}${xn(s)}${i?xn(Math.floor(i*255)):""}`}function Or(t,e,s=50){const i=Pa(t),o=Pa(e),n=kn(s,0,100)/100,r=2*n-1,d=i.alpha-o.alpha,u=((r*d===-1?r:(r+d)/(1+r*d))+1)/2,c=1-u,m=kn(Math.round(i.red*u+o.red*c),0,255),g=kn(Math.round(i.green*u+o.green*c),0,255),v=kn(Math.round(i.blue*u+o.blue*c),0,255),w=i.alpha*n+o.alpha*(1-n);return i.hasAlpha||o.hasAlpha||w!==1?Na(m,g,v,w):Na(m,g,v)}function Gv(t,e=15){return Or("#ffffff",t,e)}function Xv(t,e=12.4){return Or("#000000",t,e)}const Wa=[{label:"pink",color:"#e91e63",shades:[{label:"pink-light6",color:"#fdebf1"},{label:"pink-light5",color:"#faccdc"},{label:"pink-light4",color:"#f7adc6"},{label:"pink-light3",color:"#f48eb1"},{label:"pink-light2",color:"#f16f9b"},{label:"pink-light1",color:"#ee5085"},{label:"pink-dark1",color:"#d31555"},{label:"pink-dark2",color:"#b6124a"},{label:"pink-dark3",color:"#990f3e"},{label:"pink-dark4",color:"#7c0c32"},{label:"pink-dark5",color:"#600927"},{label:"pink-dark6",color:"#43071b"}]},{label:"purple",color:"#a741b9",shades:[{label:"purple-light6",color:"#f9f2fa"},{label:"purple-light5",color:"#eed9f2"},{label:"purple-light4",color:"#e3c1e9"},{label:"purple-light3",color:"#d8a8e1"},{label:"purple-light2",color:"#cd90d8"},{label:"purple-light1",color:"#c277cf"},{label:"purple-dark1",color:"#9239a2"},{label:"purple-dark2",color:"#7d318a"},{label:"purple-dark3",color:"#682873"},{label:"purple-dark4",color:"#53205b"},{label:"purple-dark5",color:"#3d1844"},{label:"purple-dark6",color:"#28102d"}]},{label:"deep-purple",color:"#673ab7",shades:[{label:"deep-purple-light6",color:"#f1edf9"},{label:"deep-purple-light5",color:"#daceef"},{label:"deep-purple-light4",color:"#c2afe6"},{label:"deep-purple-light3",color:"#ab90dc"},{label:"deep-purple-light2",color:"#9471d2"},{label:"deep-purple-light1",color:"#7c52c8"},{label:"deep-purple-dark1",color:"#5b33a1"},{label:"deep-purple-dark2",color:"#4e2c8b"},{label:"deep-purple-dark3",color:"#422575"},{label:"deep-purple-dark4",color:"#351e5f"},{label:"deep-purple-dark5",color:"#291749"},{label:"deep-purple-dark6",color:"#1c1033"}]},{label:"indigo",color:"#3f51b5",shades:[{label:"indigo-light6",color:"#eff1fa"},{label:"indigo-light5",color:"#d1d6ef"},{label:"indigo-light4",color:"#b3bae4"},{label:"indigo-light3",color:"#949fda"},{label:"indigo-light2",color:"#7684cf"},{label:"indigo-light1",color:"#5869c5"},{label:"indigo-dark1",color:"#37479f"},{label:"indigo-dark2",color:"#303e8a"},{label:"indigo-dark3",color:"#283474"},{label:"indigo-dark4",color:"#212a5f"},{label:"indigo-dark5",color:"#192149"},{label:"indigo-dark6",color:"#121734"}]},{label:"blue",color:"#2196f3",shades:[{label:"blue-light6",color:"#e6f3fe"},{label:"blue-light5",color:"#c6e4fc"},{label:"blue-light4",color:"#a5d4fa"},{label:"blue-light3",color:"#84c5f8"},{label:"blue-light2",color:"#63b5f7"},{label:"blue-light1",color:"#42a6f5"},{label:"blue-dark1",color:"#0c85e5"},{label:"blue-dark2",color:"#0b72c4"},{label:"blue-dark3",color:"#095fa3"},{label:"blue-dark4",color:"#074c82"},{label:"blue-dark5",color:"#053961"},{label:"blue-dark6",color:"#032540"}]},{label:"light-blue",color:"#03a9f4",shades:[{label:"light-blue-light6",color:"#e7f7ff"},{label:"light-blue-light5",color:"#c0ebfe"},{label:"light-blue-light4",color:"#98defe"},{label:"light-blue-light3",color:"#71d2fd"},{label:"light-blue-light2",color:"#4ac5fd"},{label:"light-blue-light1",color:"#22b9fc"},{label:"light-blue-dark1",color:"#0393d5"},{label:"light-blue-dark2",color:"#027eb6"},{label:"light-blue-dark3",color:"#026896"},{label:"light-blue-dark4",color:"#015277"},{label:"light-blue-dark5",color:"#013d58"},{label:"light-blue-dark6",color:"#012739"}]},{label:"cyan",color:"#04cbe5",shades:[{label:"cyan-light6",color:"#e9fcff"},{label:"cyan-light5",color:"#baf6fe"},{label:"cyan-light4",color:"#8bf0fd"},{label:"cyan-light3",color:"#5ceafc"},{label:"cyan-light2",color:"#2ce3fb"},{label:"cyan-light1",color:"#04d8f4"},{label:"cyan-dark1",color:"#04b2c8"},{label:"cyan-dark2",color:"#0398ac"},{label:"cyan-dark3",color:"#037f8f"},{label:"cyan-dark4",color:"#026673"},{label:"cyan-dark5",color:"#024c56"},{label:"cyan-dark6",color:"#01333a"}]},{label:"teal",color:"#1db3a8",shades:[{label:"teal-light6",color:"#e2faf9"},{label:"teal-light5",color:"#b8f3ef"},{label:"teal-light4",color:"#8eede6"},{label:"teal-light3",color:"#64e6dc"},{label:"teal-light2",color:"#39dfd3"},{label:"teal-light1",color:"#20c7bb"},{label:"teal-dark1",color:"#199b92"},{label:"teal-dark2",color:"#15847c"},{label:"teal-dark3",color:"#116c65"},{label:"teal-dark4",color:"#0e544f"},{label:"teal-dark5",color:"#0a3c39"},{label:"teal-dark6",color:"#062523"}]},{label:"green",color:"#4caf50",shades:[{label:"green-light6",color:"#edf7ed"},{label:"green-light5",color:"#d2ebd3"},{label:"green-light4",color:"#b7e0b8"},{label:"green-light3",color:"#9bd49e"},{label:"green-light2",color:"#80c883"},{label:"green-light1",color:"#65bc69"},{label:"green-dark1",color:"#439b47"},{label:"green-dark2",color:"#3a863d"},{label:"green-dark3",color:"#327234"},{label:"green-dark4",color:"#295e2b"},{label:"green-dark5",color:"#204a22"},{label:"green-dark6",color:"#173518"}]},{label:"light-green",color:"#90d73f",shades:[{label:"light-green-light6",color:"#f4fbec"},{label:"light-green-light5",color:"#e5f6d3"},{label:"light-green-light4",color:"#d7f1b9"},{label:"light-green-light3",color:"#c8eba0"},{label:"light-green-light2",color:"#b9e687"},{label:"light-green-light1",color:"#abe16d"},{label:"light-green-dark1",color:"#80cc2a"},{label:"light-green-dark2",color:"#70b225"},{label:"light-green-dark3",color:"#609820"},{label:"light-green-dark4",color:"#4f7d1a"},{label:"light-green-dark5",color:"#3f6315"},{label:"light-green-dark6",color:"#2e490f"}]},{label:"lime",color:"#cee029",shades:[{label:"lime-light6",color:"#fafce9"},{label:"lime-light5",color:"#f4f8ce"},{label:"lime-light4",color:"#edf4b2"},{label:"lime-light3",color:"#e7f097"},{label:"lime-light2",color:"#e1ec7b"},{label:"lime-light1",color:"#dae85f"},{label:"lime-dark1",color:"#bbcc1e"},{label:"lime-dark2",color:"#a1b01a"},{label:"lime-dark3",color:"#889516"},{label:"lime-dark4",color:"#6f7912"},{label:"lime-dark5",color:"#565d0e"},{label:"lime-dark6",color:"#3c420a"}]},{label:"yellow",color:"#ffe70f",shades:[{label:"yellow-light6",color:"#fffce0"},{label:"yellow-light5",color:"#fff9c4"},{label:"yellow-light4",color:"#fff6a8"},{label:"yellow-light3",color:"#fff38c"},{label:"yellow-light2",color:"#fff170"},{label:"yellow-light1",color:"#ffee54"},{label:"yellow-dark1",color:"#eed700"},{label:"yellow-dark2",color:"#cfba00"},{label:"yellow-dark3",color:"#af9e00"},{label:"yellow-dark4",color:"#908100"},{label:"yellow-dark5",color:"#706500"},{label:"yellow-dark6",color:"#504800"}]},{label:"amber",color:"#ffc107",shades:[{label:"amber-light6",color:"#fffaed"},{label:"amber-light5",color:"#fff1c6"},{label:"amber-light4",color:"#ffe7a0"},{label:"amber-light3",color:"#ffde7a"},{label:"amber-light2",color:"#ffd454"},{label:"amber-light1",color:"#ffcb2d"},{label:"amber-dark1",color:"#e6ad00"},{label:"amber-dark2",color:"#c79500"},{label:"amber-dark3",color:"#a77d00"},{label:"amber-dark4",color:"#886600"},{label:"amber-dark5",color:"#684e00"},{label:"amber-dark6",color:"#483600"}]},{label:"orange",color:"#ff9800",shades:[{label:"orange-light6",color:"#fff5e6"},{label:"orange-light5",color:"#ffe5bf"},{label:"orange-light4",color:"#ffd699"},{label:"orange-light3",color:"#ffc673"},{label:"orange-light2",color:"#ffb74d"},{label:"orange-light1",color:"#ffa726"},{label:"orange-dark1",color:"#df8500"},{label:"orange-dark2",color:"#c07200"},{label:"orange-dark3",color:"#a05f00"},{label:"orange-dark4",color:"#814d00"},{label:"orange-dark5",color:"#613a00"},{label:"orange-dark6",color:"#412700"}]},{label:"deep-orange",color:"#ff6825",shades:[{label:"deep-orange-light6",color:"#fff0e9"},{label:"deep-orange-light5",color:"#ffd9c8"},{label:"deep-orange-light4",color:"#ffc2a8"},{label:"deep-orange-light3",color:"#ffac87"},{label:"deep-orange-light2",color:"#ff9566"},{label:"deep-orange-light1",color:"#ff7f46"},{label:"deep-orange-dark1",color:"#ff5205"},{label:"deep-orange-dark2",color:"#e54600"},{label:"deep-orange-dark3",color:"#c53d00"},{label:"deep-orange-dark4",color:"#a63300"},{label:"deep-orange-dark5",color:"#862900"},{label:"deep-orange-dark6",color:"#661f00"}]},{label:"red",color:"#fa3317",shades:[{label:"red-light6",color:"#fee3df"},{label:"red-light5",color:"#fec6be"},{label:"red-light4",color:"#fdaa9e"},{label:"red-light3",color:"#fc8d7d"},{label:"red-light2",color:"#fc705d"},{label:"red-light1",color:"#fb543c"},{label:"red-dark1",color:"#ec2205"},{label:"red-dark2",color:"#cd1d04"},{label:"red-dark3",color:"#ae1904"},{label:"red-dark4",color:"#8f1403"},{label:"red-dark5",color:"#701002"},{label:"red-dark6",color:"#520c02"}]},{label:"brown",color:"#845848",shades:[{label:"brown-light6",color:"#f2eae7"},{label:"brown-light5",color:"#e2d1ca"},{label:"brown-light4",color:"#d2b7ad"},{label:"brown-light3",color:"#c39e90"},{label:"brown-light2",color:"#b38473"},{label:"brown-light1",color:"#a16b58"},{label:"brown-dark1",color:"#744d3f"},{label:"brown-dark2",color:"#634236"},{label:"brown-dark3",color:"#53372d"},{label:"brown-dark4",color:"#422c24"},{label:"brown-dark5",color:"#32211b"},{label:"brown-dark6",color:"#211612"}]},{label:"blue-grey",color:"#6c8693",shades:[{label:"blue-grey-light6",color:"#f0f3f4"},{label:"blue-grey-light5",color:"#dae1e4"},{label:"blue-grey-light4",color:"#c4cfd4"},{label:"blue-grey-light3",color:"#aebcc4"},{label:"blue-grey-light2",color:"#98aab3"},{label:"blue-grey-light1",color:"#8298a3"},{label:"blue-grey-dark1",color:"#5f7581"},{label:"blue-grey-dark2",color:"#51656f"},{label:"blue-grey-dark3",color:"#44545c"},{label:"blue-grey-dark4",color:"#36444a"},{label:"blue-grey-dark5",color:"#293338"},{label:"blue-grey-dark6",color:"#1c2226"}]},{label:"grey",color:"#848484",shades:[{label:"grey-light6",color:"#f7f7f7"},{label:"grey-light5",color:"#e4e4e4"},{label:"grey-light4",color:"#d1d1d1"},{label:"grey-light3",color:"#bdbdbd"},{label:"grey-light2",color:"#aaaaaa"},{label:"grey-light1",color:"#979797"},{label:"grey-dark1",color:"#747474"},{label:"grey-dark2",color:"#646464"},{label:"grey-dark3",color:"#555555"},{label:"grey-dark4",color:"#454545"},{label:"grey-dark5",color:"#353535"},{label:"grey-dark6",color:"#252525"}]},{label:"black",color:"#000"},{label:"white",color:"#fff"},{label:"transparent",color:"transparent"},{label:"inherit",color:"inherit"}],on={cssScope:".w-app",baseIncrement:4};let Yl={keys:[],values:[]},Ha=null;const Qv=(t,e)=>{var s;let i="";const o={},{info:n,warning:r,success:d,error:u,shades:c,...m}=t,{cssScope:g}=on;for(const _ in m)i+=`${g} .${_}--bg{background-color:var(--w-${_}-color)}${g} .${_}{color:var(--w-${_}-color)}`;for(const _ in c)i+=`${g} .${_}--bg{background-color:${c[_]}}${g} .${_}{color:${c[_]}}`;const v={...m,info:n,warning:r,success:d,error:u};for(const _ in v)o[_]=((s=v[_])==null?void 0:s.color)??v[_];if(e)for(const _ in c)o[_]=c[_];let w="";return Object.entries(o).forEach(([_,M])=>{w+=`--w-${_}-color: ${M};`}),`:root{${w}}${i}`},Zv=(t,e)=>{let s="";const{cssScope:i}=on;return t.forEach(({min:o,label:n})=>{if(n==="xs")for(let r=0;r{let e="";const{cssScope:s,baseIncrement:i}=on,o=["show{display:block}","hide{display:none}","d-flex{display:flex}","d-iflex{display:inline-flex}","d-block{display:block}","d-iblock{display:inline-block}","text-left{text-align:left}","text-center{text-align:center}","text-right{text-align:right}","text-nowrap{white-space:nowrap}","row{flex-direction:row}","column{flex-direction:column}","column-reverse{flex-direction:column-reverse}","grow{flex-grow:1;flex-basis:auto}","no-grow{flex-grow:0}","shrink{flex-shrink:1;margin-left:auto;margin-right:auto}","no-shrink{flex-shrink:0}","wrap{flex-wrap: wrap}","no-wrap{flex-wrap: nowrap}","fill-width{width:100%}","fill-height{height:100%}","basis-zero{flex-basis:0}","align-start{align-items:flex-start}","align-center{align-items:center}","align-end{align-items:flex-end}","align-self-start{align-self:flex-start}","align-self-center{align-self:center}","align-self-end{align-self:flex-end}","align-self-stretch{align-self:stretch}","justify-start{justify-content:flex-start}","justify-center{justify-content:center}","justify-end{justify-content:flex-end}","justify-space-between{justify-content:space-between}","justify-space-around{justify-content:space-around}","justify-space-evenly{justify-content:space-evenly}"],n=Array(12).fill();return t.forEach(({label:r,min:d})=>{r!=="xs"&&(e+=`@media(min-width:${d}px){`+o.map(u=>`${s} .${r}u-${u}`).join("")+n.map((u,c)=>`.w-grid.${r}u-columns${c+1}{grid-template-columns:repeat(${c+1},1fr);}`).join("")+n.map((u,c)=>`.w-flex.${r}u-gap${c+1},.w-grid.${r}u-gap${c+1}{gap:${(c+1)*i}px;}`).join("")+`.w-flex.${r}u-gap0,.w-flex.${r}u-gap0{gap:0}}`)}),t.forEach(({label:r,min:d,max:u})=>{e+=`@media (min-width:${d}px) and (max-width:${u}px){`+o.map(c=>`${s} .${r}-${c}`).join("")+n.map((c,m)=>`.w-grid.${r}-columns${m+1}{grid-template-columns:repeat(${m+1},1fr);}`).join("")+n.map((c,m)=>`.w-flex.${r}-gap${m+1},.w-grid.${r}-gap${m+1}{gap:${(m+1)*i}px;}`).join("")+`.w-flex.${r}-gap0,.w-flex.${r}-gap0{gap:0}}`}),t.forEach(({label:r,max:d})=>{r!=="xl"&&(e+=`@media (max-width:${d}px){`+o.map(u=>`${s} .${r}d-${u}`).join("")+n.map((u,c)=>`.w-grid.${r}d-columns${c+1}{grid-template-columns:repeat(${c+1},1fr);}`).join("")+n.map((u,c)=>`.w-flex.${r}d-gap${c+1},.w-grid.${r}d-gap${c+1}{gap:${(c+1)*i}px;}`).join("")+`.w-flex.${r}d-gap0,.w-flex.${r}d-gap0{gap:0}}`)}),e},ja=t=>{const e=window.innerWidth,s=Yl.values.slice(0);s.push(e),s.sort((o,n)=>o-n);const i=Yl.keys[s.indexOf(e)]||"xl";i!==Ha&&(Ha=i,t.breakpoint={name:i,xs:i==="xs",sm:i==="sm",md:i==="md",lg:i==="lg",xl:i==="xl",width:e}),t.breakpoint.width=window.innerWidth},ty=t=>{const{config:e}=t;if(Yl={keys:Object.keys(e.breakpoints),values:Object.values(e.breakpoints)},!document.getElementById("wave-ui-styles")){const s=document.createElement("style");s.id="wave-ui-styles",s.innerHTML=ny(e);const i=document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];i?i.before(s):document.head.appendChild(s)}ja(t),window.addEventListener("resize",()=>ja(t))},sy=(t,e,s)=>{if(!document.getElementById("wave-ui-colors")){const i=document.createElement("style");i.id="wave-ui-colors",i.innerHTML=Qv(t,e);const o=document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];o?o.before(i):document.head.appendChild(i)}},ny=t=>{const e=Object.entries(t.breakpoints),s=e.map(([n,r],d)=>{const[,u=0]=e[d-1]||[];return{label:n,min:u?u+1:0,max:r}}),i=getComputedStyle(document.documentElement);on.cssScope=i.getPropertyValue("--w-css-scope"),on.baseIncrement=parseInt(i.getPropertyValue("--w-base-increment"));let o="";return o+=Zv(s,t.css.grid),t.css.breakpointLayoutClasses&&(o+=ey(s)),o},ly=["innerHTML"];function iy(t,e,s,i,o,n){const r=R("w-alert");return f(),B(Pd,{to:".w-app"},[h(rl,{class:E(["w-notification-manager",{"w-notification-manager--left":n.conf.align==="left"}]),tag:"div",name:n.transition,appear:""},{default:p(()=>[(f(!0),y(H,null,ge(n.notifications,d=>(f(),y(H,null,[d._value?(f(),B(r,ee({class:"white--bg",key:d._uid,modelValue:d._value,"onUpdate:modelValue":u=>d._value=u,onClose:d.dismiss,ref_for:!0},n.notifProps(d)),{default:p(()=>[l("div",{innerHTML:d.message},null,8,ly)]),_:2},1040,["modelValue","onUpdate:modelValue","onClose"])):C("",!0)],64))),256))]),_:1},8,["class","name"])])}const ne=(t,e)=>{const s=t.__vccOpts||t;for(const[i,o]of e)s[i]=o;return s},ay={name:"w-notification-manager",computed:{conf(){return this.$waveui.config.notificationManager},notifications(){var t;return(t=this.$waveui._notificationManager)==null?void 0:t.notifications},transition(){return this.conf.transition?this.conf.transition.replace("default",`slide-${this.conf.align==="left"?"right":"left"}`):""}},methods:{notifProps(t){const{_value:e,_uid:s,message:i,timeout:o,...n}=t;return n.dismiss&&(n.dismiss=!0),n}}},oy=ne(ay,[["render",iy]]);var Ks;const Rr=class In{constructor(){if($n(this,"notifications"),$n(this,"_uid"),$n(this,"_notificationDefaults"),Fl(In,Ks))return Fl(In,Ks);this.notifications=[],this._uid=0,this._notificationDefaults={_uid:0,_value:!0,message:"",timeout:4e3,dismiss:!0},Ar(In,Ks,this)}notify(...e){let s={...this._notificationDefaults,_uid:this._uid++};if(typeof e[0]=="object")s={...s,...e[0]};else{const[i,o,n]=e;s={...s,message:i||"",[o===void 0?"info":o]:!0,timeout:n||n===0?parseFloat(n):4e3}}s.dismiss&&(s.dismiss=()=>this.dismiss(s._uid)),this.notifications.push(s),~~s.timeout&&setTimeout(()=>this.dismiss(s._uid),s.timeout)}dismiss(e){this.notifications=this.notifications.filter(s=>s._uid!==e)}};Ks=new WeakMap,Mr(Rr,Ks);let ry=Rr;const dy=(t,e,s)=>{const i=document.createElement("div");t.appendChild(i);const o=mr(ui({...oy,inject:["$waveui"]})).provide("$waveui",s);for(const n in e){const r=e[n];o.component(r.name,{...r,inject:["$waveui"]})}o.mount(i),i.remove()};let za=!1;const uy=t=>{const e=window.matchMedia("(prefers-color-scheme: dark)");t.preferredTheme=e.matches?"dark":"light",t.switchTheme(t.preferredTheme),e.addEventListener("change",s=>{t.preferredTheme=s.matches?"dark":"light",t.switchTheme(t.preferredTheme)})},cy=(t,e)=>{var s,i;for(const o in e)if((s=t.props)!=null&&s[o])t.props[o].default=e[o];else{let n=!1;if(Array.isArray(t.mixins)&&t.mixins.length){for(const r of t.mixins)if((i=r==null?void 0:r.props)!=null&&i[o]){r.props[o].default=e[o],n=!0;break}n||an(`Attempting to set a preset on a prop that doesn't exist: \`${t.name}.${o}\`.`);continue}}};var Fn;const Lr=class Mn{constructor(e,s={}){if($n(this,"$waveui",{breakpoint:{name:"",xs:!1,sm:!1,md:!1,lg:!1,xl:!1,width:null},config:{},colors:{},preferredTheme:null,theme:null,_notificationManager:null,notify(...r){this._notificationManager.notify(...r)},switchTheme(r,d=!1){var u,c;this.theme=r,document.documentElement.setAttribute("data-theme",r),(c=(u=document.head.querySelector("#wave-ui-colors"))==null?void 0:u.remove)==null||c.call(u);const m=this.config.colors[this.theme];sy(m,this.config.css.colorShadeCssVariables),this.colors=La(m,Wa)}}),Fl(Mn,Fn))return;if(this.$waveui._notificationManager=new ry,s.theme||(s.theme="light"),s.colors){const r={...s.colors};s.colors.light||(s.colors.light=r),s.colors.dark||(s.colors.dark=r),s.colors={light:s.colors.light,dark:s.colors.dark}}let{components:i,...o}=s;o=this.$waveui.config=Br(o),o.css.colorShades&&Yv(o);const n=Zt(this.$waveui);e.config.globalProperties.$waveui=n,e.provide("$waveui",n),o.theme!=="auto"&&(this.$waveui.colors=La(o.colors[o.theme],Wa))}static install(e,s={}){var i;e.directive("focus",{mounted:n=>setTimeout(()=>n.focus(),0)}),e.directive("scroll",{mounted:(n,r)=>{const d=u=>{r.value(u,n)&&window.removeEventListener("scroll",d)};window.addEventListener("scroll",d)}});const{components:o={}}=s||{};for(const n in o){const r=o[n];(i=s.presets)!=null&&i[r.name]&&cy(r,s.presets[r.name]),e.component(r.name,r)}e.mixin({beforeMount(){if(!za){za=!0;const n=St("$waveui"),{config:r}=n,d=document.querySelector(r.on)||document.body;d.classList.add("w-app"),r.theme==="auto"?uy(n):n.switchTheme(r.theme,!0),ty(n),dy(d,o,n),e._context.mixins.find(u=>u.mounted&&delete u.mounted)}}}),new Mn(e,s),Ar(Mn,Fn,!0)}};Fn=new WeakMap,Mr(Lr,Fn,!1);let Yn=Lr;const py=["aria-expanded"],hy=["onClick","onFocus","onKeypress","tabindex"],my=["innerHTML"],fy=["innerHTML"];function gy(t,e,s,i,o,n){const r=R("w-button"),d=R("w-transition-expand");return f(),y("div",{class:E(["w-accordion",n.accordionClasses])},[(f(!0),y(H,null,ge(t.accordionItems,(u,c)=>(f(),y("div",{class:E(["w-accordion__item",n.itemClasses(u)]),key:c,"aria-expanded":u._expanded?"true":"false"},[l("div",{class:E(["w-accordion__item-title",s.titleClass]),onClick:m=>!u._disabled&&n.toggleItem(u,m),onFocus:m=>t.$emit("focus",n.getOriginalItem(u)),onKeypress:vt(m=>!u._disabled&&n.toggleItem(u,m),["enter"]),tabindex:!u._disabled&&0},[s.expandIcon&&!s.expandIconRight?(f(),B(r,{key:0,class:E(["w-accordion__expand-icon",{"w-accordion__expand-icon--expanded":u._expanded,"w-accordion__expand-icon--rotate90":s.expandIconRotate90}]),icon:u._expanded&&s.collapseIcon||s.expandIcon,"icon-props":s.expandIconProps,disabled:u._disabled||null,tabindex:-1,text:"",onKeypress:e[0]||(e[0]=We(()=>{},["stop"])),onClick:We(m=>!u._disabled&&n.toggleItem(u,m),["stop"])},null,8,["icon","icon-props","disabled","onClick","class"])):C("",!0),t.$slots[`item-title.${u.id||c+1}`]?D(t.$slots,`item-title.${u.id||c+1}`,{key:1,item:n.getOriginalItem(u),expanded:u._expanded,index:c+1}):D(t.$slots,"item-title",{key:2,item:n.getOriginalItem(u),expanded:u._expanded,index:c+1},()=>[l("div",{class:"grow",innerHTML:u[s.itemTitleKey]},null,8,my)]),s.expandIcon&&s.expandIconRight?(f(),B(r,{key:3,class:E(["w-accordion__expand-icon",{"w-accordion__expand-icon--expanded":u._expanded,"w-accordion__expand-icon--rotate90":s.expandIconRotate90}]),icon:u._expanded&&s.collapseIcon||s.expandIcon,text:"",onKeypress:e[1]||(e[1]=We(()=>{},["stop"])),onClick:We(m=>!u._disabled&&n.toggleItem(u,m),["stop"])},null,8,["icon","onClick","class"])):C("",!0)],42,hy),h(d,{y:"",onAfterLeave:m=>n.onEndOfCollapse(u),duration:s.duration},{default:p(()=>[u._expanded?(f(),y("div",{key:0,class:E(["w-accordion__item-content",s.contentClass])},[t.$slots[`item-content.${u.id||c+1}`]?D(t.$slots,`item-content.${u.id||c+1}`,{key:0,item:n.getOriginalItem(u),expanded:u._expanded,index:c+1}):D(t.$slots,"item-content",{key:1,item:n.getOriginalItem(u),expanded:u._expanded,index:c+1},()=>[l("div",{innerHTML:u[s.itemContentKey]},null,8,fy)])],2)):C("",!0)]),_:2},1032,["onAfterLeave","duration"])],10,py))),128))],2)}const vy={name:"w-accordion",props:{modelValue:{type:Array},color:{type:String},bgColor:{type:String},items:{type:[Array,Number],required:!0},itemColorKey:{type:String,default:"color"},itemTitleKey:{type:String,default:"title"},itemContentKey:{type:String,default:"content"},itemClass:{type:String},titleClass:{type:String},contentClass:{type:String},expandIcon:{type:[String,Boolean],default:"wi-triangle-down"},expandIconRight:{type:Boolean},expandIconRotate90:{type:Boolean},expandIconProps:{type:Object,default:()=>({})},expandSingle:{type:Boolean},collapseIcon:{type:String},shadow:{type:Boolean},duration:{type:Number,default:250},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","focus","item-expand","item-collapsed"],data:()=>({accordionItems:[]}),computed:{accordionClasses(){return{[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,"w-accordion--dark":this.dark,"w-accordion--light":this.light,"w-accordion--shadow":this.shadow,"w-accordion--no-icon":!this.expandIcon&&!this.collapseIcon,"w-accordion--icon-right":this.expandIcon&&this.expandIconRight,"w-accordion--rotate-icon":this.expandIcon&&!this.collapseIcon}}},methods:{toggleItem(t,e){t._expanded=!t._expanded,this.expandSingle&&this.accordionItems.forEach(i=>i._index!==t._index&&(i._expanded=!1));const s=this.accordionItems.map(i=>i._expanded||!1);this.$emit("update:modelValue",s),this.$emit("input",s),this.$emit("item-expand",{item:t,expanded:t._expanded}),e.target.blur(),setTimeout(()=>e.target.focus(),300)},onEndOfCollapse(t){this.$emit("item-collapsed",{item:t,expanded:t._expanded})},getOriginalItem(t){return this.items[t._index]},itemClasses(t){return{[this.itemClass]:this.itemClass||null,"w-accordion__item--expanded":t._expanded,"w-accordion__item--disabled":t._disabled,[t[this.itemColorKey]]:t[this.itemColorKey]}},updateItems(){const t=typeof this.items=="number"?Array(this.items).fill({}):this.items||[];this.accordionItems=t.map((e,s)=>({...e,_index:s,_expanded:this.modelValue&&this.modelValue[s],_disabled:!!e.disabled}))}},created(){this.updateItems()},watch:{modelValue(){this.updateItems()},items:{handler(){this.updateItems()},deep:!0}}},yy=ne(vy,[["render",gy]]),by={class:"w-alert__content"};function wy(t,e,s,i,o,n){const r=R("w-icon"),d=R("w-button");return o.show?(f(),y("div",{key:0,class:E(["w-alert",n.classes])},[n.type||s.icon||s.dismiss?(f(),y(H,{key:0},[n.type||s.icon?(f(),B(r,{key:0,class:"w-alert__icon"},{default:p(()=>[a(S(n.type?n.typeIcon:s.icon),1)]),_:1})):C("",!0),l("div",by,[D(t.$slots,"default")]),s.dismiss?(f(),B(d,{key:1,class:"w-alert__dismiss",onClick:e[0]||(e[0]=u=>{t.$emit("update:modelValue",o.show=!1),t.$emit("input",!1),t.$emit("close",!1)}),icon:"wi-cross",color:"inherit",sm:"",text:""})):C("",!0)],64)):D(t.$slots,"default",{key:1})],2)):C("",!0)}const ky={name:"w-alert",props:{modelValue:{default:!0},color:{type:String},bgColor:{type:String},shadow:{type:Boolean},tile:{type:Boolean},round:{type:Boolean},icon:{type:String},iconOutside:{type:Boolean},plain:{type:Boolean},dismiss:{type:Boolean},bold:{type:Boolean},success:{type:Boolean},info:{type:Boolean},warning:{type:Boolean},error:{type:Boolean},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean},border:{type:Boolean},borderLeft:{type:Boolean},borderRight:{type:Boolean},borderTop:{type:Boolean},borderBottom:{type:Boolean},outline:{type:Boolean}},emits:["input","update:modelValue","close"],data(){return{show:this.modelValue}},computed:{typeIcon(){return this.type==="success"&&"wi-check-circle"||this.type==="warning"&&"wi-warning-circle"||this.type==="error"&&"wi-cross-circle"||this.type==="info"&&"wi-info-circle"},type(){return this.success&&"success"||this.info&&"info"||this.warning&&"warning"||this.error&&"error"||null},presetSize(){return this.xs&&"xs"||this.sm&&"sm"||this.md&&"md"||this.lg&&"lg"||this.xl&&"xl"||null},hasSingleBorder(){return this.borderLeft||this.borderRight||this.borderTop||this.borderBottom},classes(){const t=this.bgColor||this.plain&&this.type,e=this.color||!this.plain&&this.type||!t&&"primary";return{[`${t}--bg w-alert--bg`]:t,[e]:e,[`size--${this.presetSize}`]:this.presetSize,[`w-alert--${this.type}`]:this.type,"w-alert--has-icon":this.type||this.icon||this.dismiss,"w-alert--icon-outside":this.iconOutside,"w-alert--plain":this.type&&this.plain,"w-alert--outline":this.outline,"w-alert--tile":this.tile,"w-alert--round":this.round,"w-alert--one-border":this.hasSingleBorder||this.iconOutside,"w-alert--border-left":this.borderLeft||this.iconOutside,"w-alert--border-right":this.borderRight,"w-alert--border-top":this.borderTop,"w-alert--border-bottom":this.borderBottom,"w-alert--border":this.border&&!this.hasSingleBorder,"w-alert--shadow":this.shadow,"w-alert--bold":this.bold}}},watch:{modelValue(t){this.show=t}}},xy=ne(ky,[["render",wy]]),Cy={class:"w-autocomplete__selection"},_y=["innerHTML"],Sy=["innerHTML"],Dy=["value"],Ey=["onClick"],Ty=["innerHTML"],Vy=["innerHTML"];function $y(t,e,s,i,o,n){const r=R("w-button"),d=R("w-transition-slide-fade");return f(),y("div",{class:E(["w-autocomplete",n.classes]),onClick:e[5]||(e[5]=(...u)=>n.onClick&&n.onClick(...u)),style:me(t.$attrs.style)},[t.selection.length?(f(!0),y(H,{key:0},ge(t.selection,(u,c)=>(f(),y("div",Cy,[D(t.$slots,"selection",{item:u,unselect:m=>n.unselectItem(m)},()=>[l("span",{innerHTML:u[s.itemLabelKey]},null,8,_y),h(r,{onClick:We(m=>n.unselectItem(c),["stop"]),icon:"wi-cross",xs:"",text:"",color:"currentColor"},null,8,["onClick"])])]))),256)):C("",!0),!t.selection.length&&!t.keywords&&s.placeholder?(f(),y("div",{key:1,class:"w-autocomplete__placeholder",innerHTML:s.placeholder},null,8,Sy)):C("",!0),l("input",ee({class:"w-autocomplete__input",ref:"input",value:t.keywords},pt(n.inputEventListeners,!0),n.inputAttrs),null,16,Dy),h(d,null,{default:p(()=>[t.menuOpen?(f(),y("ul",{key:0,class:"w-autocomplete__menu",ref:"menu",onMousedown:e[1]||(e[1]=u=>t.menuIsBeingClicked=!0),onMouseup:e[2]||(e[2]=(...u)=>n.setEndOfMenuClick&&n.setEndOfMenuClick(...u)),onTouchstart:e[3]||(e[3]=u=>t.menuIsBeingClicked=!0),onTouchend:e[4]||(e[4]=(...u)=>n.setEndOfMenuClick&&n.setEndOfMenuClick(...u))},[(f(!0),y(H,null,ge(n.filteredItems,(u,c)=>(f(),y("li",{key:c,onClick:We(m=>(n.selectItem(u),t.$emit("item-click",u)),["stop"]),class:E({highlighted:t.highlightedItem===u.uid})},[D(t.$slots,"item",{item:u,highlighted:t.highlightedItem===u.uid},()=>[l("span",{innerHTML:u[s.itemLabelKey]},null,8,Ty)])],10,Ey))),128)),n.filteredItems.length?C("",!0):(f(),y("li",{key:0,class:E(["w-autocomplete__no-match",{"w-autocomplete__no-match--default":!t.$slots.noMatch}])},[D(t.$slots,"no-match",{},()=>[l("div",{class:"caption",innerHTML:s.noMatch??"No match."},null,8,Vy)])],2)),t.$slots["extra-item"]?(f(),y("li",{key:1,class:E(["w-autocomplete__extra-item",{highlighted:t.highlightedItem==="extra-item"}]),onClick:e[0]||(e[0]=(...u)=>n.selectExtraItem&&n.selectExtraItem(...u))},[D(t.$slots,"extra-item")],2)):C("",!0)],544)):C("",!0)]),_:3})],6)}const Iy={name:"w-autocomplete",inheritAttrs:!1,props:{items:{type:Array,required:!0},modelValue:{type:[String,Number,Array]},placeholder:{type:String},openOnKeydown:{type:Boolean},multiple:{type:Boolean},allowDuplicates:{type:Boolean},noMatch:{type:String},itemValueKey:{type:String,default:"value"},itemLabelKey:{type:String,default:"label"},itemSearchableKey:{type:String,default:"searchable"}},emits:["update:modelValue","input","focus","blur","keydown","item-click","item-select","extra-item-select"],data:()=>({keywords:"",selection:[],menuOpen:!1,highlightedItem:null,menuIsBeingClicked:!1}),computed:{normalizedKeywords(){return this.normalize(this.keywords)},optimizedItemsForSearch(){return this.items.map((t,e)=>({...t,uid:e,searchable:this.normalize(t[this.itemSearchableKey]||"")}))},filteredItems(){let t=this.optimizedItemsForSearch;const e=s=>!this.selection.find(i=>i.uid===s.uid);return this.keywords?t=t.filter(s=>s.searchable.includes(this.normalizedKeywords)?this.multiple&&!this.allowDuplicates?e(s):!0:!1):this.multiple&&!this.allowDuplicates&&(t=t.filter(e)),t},highlightedItemIndex(){return this.highlightedItem===null?-1:this.highlightedItem==="extra-item"?this.filteredItems.length:this.filteredItems.findIndex(t=>t.uid===this.highlightedItem)},wrapperAttrs(){const{style:t,class:e}=this.$attrs;return{style:t,class:e}},inputAttrs(){const{style:t,class:e,...s}=this.$attrs;return s},inputEventListeners(){return{input:t=>{this.keywords=t.target.value},focus:t=>{this.menuIsBeingClicked||(this.onFocus(t),this.$emit("focus",t))},blur:t=>{this.menuIsBeingClicked||this.$emit("blur",t)},keydown:t=>{this.onKeydown(t),this.$emit("keydown",t)},drop:this.onDrop,compositionstart:this.onCompositionStart,compositionupdate:this.onCompositionUpdate}},classes(){return{"w-autocomplete--open":this.menuOpen,"w-autocomplete--filled":this.selection.length,"w-autocomplete--has-keywords":this.keywords,"w-autocomplete--empty":!this.selection.length&&!this.keywords,[this.$attrs.class]:!!this.$attrs.class}}},methods:{normalize(t){return t.toLowerCase().normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/œ/g,"oe")},selectItem(t){this.multiple||(this.selection=[]),this.selection.push(t),this.highlightedItem=t.uid,this.keywords="";const e=this.multiple?this.selection.map(s=>s[this.itemValueKey]):t[this.itemValueKey];this.$emit("item-select",t),this.$emit("update:modelValue",e),this.$emit("input",e),this.$refs.input.focus(),this.multiple||this.closeMenu()},unselectItem(t){this.selection.splice(t??this.selection.length-1,1),this.highlightedItem=null,this.$emit("update:modelValue",null),this.$emit("input",null),this.$refs.input.focus()},selectExtraItem(){this.keywords="",this.$emit("extra-item-select"),this.closeMenu()},setEndOfMenuClick(){setTimeout(()=>this.menuIsBeingClicked=!1,100)},onClick(){this.openOnKeydown||this.openMenu(),this.$refs.input.focus()},onFocus(){this.openOnKeydown||this.openMenu()},onKeydown(t){var e;const s=this.filteredItems.length+(this.$slots["extra-item"]?1:0);if((!this.openOnKeydown||(this.keywords||t.key.length===1)&&!this.menuOpen)&&this.openMenu(),t.keyCode===9)this.closeMenu();else if(t.keyCode===8&&(!this.keywords||!t.target.selectionStart&&!t.target.selectionEnd))this.unselectItem();else if(t.keyCode===13)t.preventDefault(),this.highlightedItem==="extra-item"?this.selectExtraItem():this.highlightedItemIndex>=0&&this.selectItem(this.filteredItems[this.highlightedItemIndex]);else if([38,40].includes(t.keyCode)){t.preventDefault();let i=this.highlightedItemIndex;i===-1?i=t.keyCode===38?s-1:0:i=(i+(t.keyCode===38?-1:1)+s)%s,this.$slots["extra-item"]&&i===s-1?this.highlightedItem="extra-item":this.highlightedItem=((e=this.filteredItems[i])==null?void 0:e.uid)||0;const o=this.$refs.menu;if(o)if(this.$slots["extra-item"]&&i===s-1)o.scrollTop=o.scrollHeight;else{const{offsetHeight:n,offsetTop:r}=o.childNodes[i]||{};o.scrollTop+o.offsetHeight-nr&&(o.scrollTop=r)}}else!this.multiple&&this.selection.length&&t.key.length===1&&t.preventDefault()},onDrop(t){!this.multiple&&this.selection.length&&t.preventDefault()},onCompositionStart(t){!this.multiple&&this.selection.length&&t.target.setAttribute("readonly",!0)},onCompositionUpdate(t){!this.multiple&&this.selection.length&&setTimeout(()=>t.target.removeAttribute("readonly"),200)},openMenu(){this.menuOpen||(this.menuOpen=!0,document.addEventListener("click",this.onDocumentClick))},closeMenu(){this.menuOpen=!1,document.removeEventListener("click",this.onDocumentClick)},onDocumentClick(t){!this.$el.contains(t.target)&&!this.$el.isSameNode(t.target)&&this.closeMenu()}},created(){this.modelValue&&(Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]).forEach(t=>{this.selection.push(this.optimizedItemsForSearch.find(e=>e[this.itemValueKey]===+t))})},beforeUnmount(){document.removeEventListener("click",this.onDocumentClick)},watch:{modelValue(t){this.selection=[],t&&(Array.isArray(t)?t:[t]).forEach(e=>{this.selection.push(this.optimizedItemsForSearch.find(s=>s[this.itemValueKey]===+e))})}}},My=ne(Iy,[["render",$y]]),Ay={class:"w-app"};function By(t,e,s,i,o,n){return f(),y("div",Ay,[D(t.$slots,"default")])}const Oy={name:"w-app",props:{block:{type:Boolean},row:{type:Boolean},alignCenter:{type:Boolean},alignEnd:{type:Boolean},justifyCenter:{type:Boolean},justifyEnd:{type:Boolean},justifySpaceBetween:{type:Boolean},justifySpaceAround:{type:Boolean},justifySpaceEvenly:{type:Boolean},textCenter:{type:Boolean},textRight:{type:Boolean}}},Ry=ne(Oy,[["render",By]]),Ly={class:"w-badge-wrap"};function Py(t,e,s,i,o,n){return f(),y("div",Ly,[D(t.$slots,"default"),h(Oe,{name:`${s.transition}`},{default:p(()=>[s.modelValue?(f(),y("div",{key:0,class:E(["w-badge",n.classes]),style:me(n.styles),"aria-atomic":"true","aria-label":"Badge","aria-live":"polite",role:"status"},[s.dot?C("",!0):D(t.$slots,"badge",{key:0},()=>[a(S(s.modelValue===!0?"":s.modelValue||""),1)])],6)):C("",!0)]),_:3},8,["name"])])}const Ny={name:"w-badge",props:{modelValue:{default:!0},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean},top:{type:Boolean},left:{type:Boolean},right:{type:Boolean},bottom:{type:Boolean},overlap:{type:Boolean},inline:{type:Boolean},color:{type:String},size:{type:[Number,String]},bgColor:{type:String,default:"primary"},badgeClass:{type:String},outline:{type:Boolean},shadow:{type:Boolean},dot:{type:Boolean},round:{type:Boolean},transition:{type:String,default:"fade"},dark:{type:Boolean},light:{type:Boolean}},emits:[],computed:{forcedSize(){return this.size&&(isNaN(this.size)?this.size:`${this.size}px`)},presetSize(){return this.xs&&"xs"||this.sm&&"sm"||this.md&&"md"||this.lg&&"lg"||this.xl&&"xl"||"md"},position(){return[this.top&&"top"||this.bottom&&"bottom"||"top",this.left&&"left"||this.right&&"right"||"right"]},classes(){const t=this.$slots.badge&&this.$slots.badge().map(e=>e.children).join("");return{[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,[this.badgeClass]:this.badgeClass||null,"w-badge--round":this.round||(t||this.modelValue+""||"").length<2,"w-badge--dark":this.dark,"w-badge--light":this.light,"w-badge--outline":this.outline,"w-badge--inline":this.inline,"w-badge--shadow":this.shadow,"w-badge--overlap":this.overlap,"w-badge--dot":this.dot,[`size--${this.presetSize}`]:this.presetSize&&!this.forcedSize,[`w-badge--${this.position.join(" w-badge--")}`]:!0}},styles(){return this.forcedSize&&`font-size: ${this.forcedSize}`}}},Wy=ne(Ny,[["render",Py]]),Hy=["innerHTML"];function jy(t,e,s,i,o,n){const r=R("w-icon");return f(),y("div",{class:E(["w-breadcrumbs",n.classes])},[(f(!0),y(H,null,ge(s.items,(d,u)=>(f(),y(H,null,[u&&t.$slots.separator?(f(),y("span",{class:E(["w-breadcrumbs__separator",s.separatorColor]),key:`${u}a`},[D(t.$slots,"separator",{index:u})],2)):u?(f(),B(r,{class:E(["w-breadcrumbs__separator",s.separatorColor]),key:`${u}b`},{default:p(()=>[a(S(s.icon),1)]),_:2},1032,["class"])):C("",!0),d[s.itemRouteKey]&&(u[D(t.$slots,"item",{item:d,index:u+1,isLast:u===s.items.length-1})]),_:2},1032,["to","href","class"])):(f(),B(De(n.hasRouter?"router-link":"a"),{class:E(["w-breadcrumbs__item",s.color||null]),key:`${u}d`,to:n.hasRouter&&d[s.itemRouteKey],href:d[s.itemRouteKey],innerHTML:d[s.itemLabelKey]},null,8,["to","href","innerHTML","class"]))],64)):t.$slots.item?D(t.$slots,"item",{key:`${u}e`,item:d,index:u+1,isLast:u===s.items.length-1}):(f(),y("span",{key:`${u}f`,innerHTML:d[s.itemLabelKey]},null,8,Hy))],64))),256))],2)}const zy={name:"w-breadcrumbs",props:{items:{type:Array,required:!0},linkLastItem:{type:Boolean},color:{type:String},separatorColor:{type:String,default:"grey-light1"},icon:{type:String,default:"wi-chevron-right"},itemRouteKey:{type:String,default:"route"},itemLabelKey:{type:String,default:"label"},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean}},emits:[],computed:{hasRouter(){return"$router"in this},size(){return this.xs&&"xs"||this.sm&&"sm"||this.lg&&"lg"||this.xl&&"xl"||"md"},classes(){return{[`size--${this.size}`]:!0}}}},Fy=ne(zy,[["render",jy]]),Yy={key:0,class:"w-button__loader"};function Uy(t,e,s,i,o,n){const r=R("w-icon");return f(),B(De(!s.disabled&&s.route?"a":"button"),ee({class:["w-button",n.classes],type:!s.route&&s.type,href:!s.disabled&&s.route&&(n.externalLink?s.route:n.resolvedRoute)||null,disabled:!!s.disabled||null},n.attrs,{style:n.styles}),{default:p(()=>[s.icon?(f(),B(r,qs(ee({key:0},s.iconProps||{})),{default:p(()=>[a(S(s.icon),1)]),_:1},16)):D(t.$slots,"default",{key:1}),h(Oe,{name:"scale-fade"},{default:p(()=>[s.loading?(f(),y("div",Yy,[D(t.$slots,"loading",{},()=>[e[0]||(e[0]=l("svg",{viewBox:"0 0 40 40"},[l("circle",{cx:"20",cy:"20",r:"18",fill:"transparent",stroke:"currentColor","stroke-width":"4","stroke-linecap":"round"})],-1))])])):C("",!0)]),_:3})]),_:3},16,["type","href","class","disabled","style"])}const Ky={inheritAttrs:!1,props:{color:{type:String},bgColor:{type:String},dark:{type:Boolean},light:{type:Boolean},outline:{type:Boolean},text:{type:Boolean},round:{type:Boolean},shadow:{type:Boolean},tile:{type:Boolean},route:{type:[String,Object]},forceLink:{type:Boolean},type:{type:String,default:"button"},disabled:{type:Boolean},loading:{type:Boolean},icon:{type:String,default:null},iconProps:{type:Object,default:()=>({})},absolute:{type:Boolean},fixed:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},left:{type:Boolean},right:{type:Boolean},zIndex:{type:[Number,String]},width:{type:[Number,String]},height:{type:[Number,String]},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean}},emits:[],computed:{hasRouter(){return"$router"in this},resolvedRoute(){return this.hasRouter?this.$router.resolve(this.route).href:this.route},attrs(){const t=this.route&&this.hasRouter&&!this.forceLink&&!this.externalLink,e=s=>{this.$attrs.onClick&&this.$attrs.onClick(s),this.$router.push(this.route),s.stopPropagation(),s.preventDefault()};return{...this.$attrs,onClick:!this.disabled&&(t?e:this.$attrs.onClick)}},size(){return this.xs&&"xs"||this.sm&&"sm"||this.lg&&"lg"||this.xl&&"xl"||"md"},position(){return[this.top&&"top"||this.bottom&&"bottom"||"top",this.left&&"left"||this.right&&"right"||"right"]},externalLink(){return/^(https?:)?\/\/|mailto:|tel:/.test(this.route)},classes(){return{"primary--bg":!this.bgColor&&!this.color&&!(this.outline||this.text),primary:!this.bgColor&&!this.color&&!this.dark&&(this.outline||this.text),[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,"w-button--dark":this.dark,"w-button--light":this.light,"w-button--outline":this.outline,"w-button--text":this.text,"w-button--round":this.round,"w-button--tile":this.tile,"w-button--shadow":this.shadow,"w-button--loading":this.loading,"w-button--icon":this.icon,[`size--${this.size}`]:!0,"w-button--absolute":this.absolute,"w-button--fixed":this.fixed,[`w-button--${this.position.join(" w-button--")}`]:this.absolute||this.fixed}},styles(){return{width:(isNaN(this.width)?this.width:`${this.width}px`)||null,height:(isNaN(this.height)?this.height:`${this.height}px`)||null,zIndex:this.zIndex||this.zIndex===0||null}}}},qy=ne(Ky,[["render",Uy]]),Jy=["innerHTML"];function Gy(t,e,s,i,o,n){const r=R("button-partial");return s.tooltip?(f(),B(De("w-tooltip"),qs(ee({key:0},s.tooltipProps)),{activator:p(({on:d})=>[h(r,ee(n.buttonProps,pt(d)),{default:p(()=>[D(t.$slots,"default")]),_:2},1040)]),default:p(()=>[l("div",{innerHTML:s.tooltip},null,8,Jy)]),_:3},16)):(f(),B(r,qs(ee({key:1},n.buttonProps)),{loading:p(()=>[D(t.$slots,"loading")]),default:p(()=>[D(t.$slots,"default")]),_:3},16))}const Xy={name:"w-button",inheritAttrs:!1,props:{color:{type:String},bgColor:{type:String},dark:{type:Boolean},outline:{type:Boolean},text:{type:Boolean},round:{type:Boolean},shadow:{type:Boolean},tile:{type:Boolean},tooltip:{type:String},tooltipProps:{type:Object,default:()=>({})},route:{type:[String,Object]},forceLink:{type:Boolean},type:{type:String,default:"button"},disabled:{type:Boolean},loading:{type:Boolean},icon:{type:String,default:null},iconProps:{type:Object,default:()=>({})},absolute:{type:Boolean},fixed:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},left:{type:Boolean},right:{type:Boolean},zIndex:{type:[Number,String]},width:{type:[Number,String]},height:{type:[Number,String]},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean}},components:{ButtonPartial:qy},emits:[],computed:{buttonProps(){const{tooltip:t,tooltipProps:e={},...s}=this.$props;return{...s,...this.$attrs}}}},Qy=ne(Xy,[["render",Gy]]),Ct=(t={})=>(typeof t=="string"?t={[t]:!0}:Array.isArray(t)&&(t={[t.join(" ")]:!0}),t),Zy=["innerHTML"];function eb(t,e,s,i,o,n){const r=R("w-image");return f(),y("div",{class:E(["w-card",n.classes])},[t.$slots.title?(f(),y("div",{key:0,class:E(["w-card__title",{"w-card__title--has-toolbar":t.$slots.title&&n.titleHasToolbar,...n.titleClasses}])},[D(t.$slots,"title")],2)):s.title?(f(),y("div",{key:1,class:E(["w-card__title",{"w-card__title--has-toolbar":t.$slots.title&&n.titleHasToolbar,...n.titleClasses}]),innerHTML:s.title},null,10,Zy)):C("",!0),s.image?(f(),B(r,ee({key:2,class:"w-card__image",src:s.image},n.imgProps),{default:p(()=>[D(t.$slots,"image-content")]),_:3},16,["src"])):C("",!0),l("div",{class:E(["w-card__content",n.contentClasses])},[D(t.$slots,"default")],2),t.$slots.actions?(f(),y("div",{key:3,class:E(["w-card__actions",{"w-card__actions--has-toolbar":n.actionsHasToolbar}])},[D(t.$slots,"actions")],2)):C("",!0)],2)}const tb={name:"w-card",props:{color:{type:String},bgColor:{type:String},shadow:{type:Boolean},noBorder:{type:Boolean},tile:{type:Boolean},title:{type:String},image:{type:String},imageProps:{type:Object},titleClass:{type:[String,Object,Array]},contentClass:{type:[String,Object,Array]},dark:{type:Boolean},light:{type:Boolean}},emits:[],computed:{titleClasses(){return Ct(this.titleClass)},contentClasses(){return Ct(this.contentClass)},titleHasToolbar(){const{title:t}=this.$slots;return t&&t().map(e=>e.type.name).join("").includes("w-toolbar")},actionsHasToolbar(){const{actions:t}=this.$slots;return t&&t().map(e=>e.type.name).join("").includes("w-toolbar")},imgProps(){return{tag:"div",ratio:1/2,...this.imageProps}},classes(){return{[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,"w-card--no-border":this.noBorder,"w-card--tile":this.tile,"w-card--shadow":this.shadow,"w-card--dark":this.dark,"w-card--light":this.light}}}},sb=ne(tb,[["render",eb]]),Et={inject:{formRegister:{default:null},formProps:{default:()=>({disabled:!1,readonly:!1})}},props:{name:{type:String},disabled:{type:Boolean},readonly:{type:Boolean},required:{type:Boolean},tabindex:{type:String},validators:{type:Array}},data:()=>({valid:null}),computed:{inputName(){return this.name||`${this.$options.name}--${this._.uid}`},isDisabled(){return this.disabled||this.formProps.disabled},isReadonly(){return this.readonly||this.formProps.readonly},validationColor(){return this.formProps.validationColor},labelClasses(){return{[this.labelColor]:this.labelColor&&this.valid!==!1,[this.validationColor]:this.valid===!1}}},methods:{validate(){this.$refs.formEl.validate(this)}}},nb=["id","name","checked","disabled","required","tabindex","aria-checked"],lb=["for"],ib=["for","innerHTML"],ab=["for"],ob=["for","innerHTML"];function rb(t,e,s,i,o,n){return f(),B(De(t.formRegister&&!n.wCheckboxes?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:o.isChecked,disabled:t.isDisabled,readonly:t.isReadonly},{valid:t.valid,"onUpdate:valid":e[5]||(e[5]=r=>t.valid=r),onReset:e[6]||(e[6]=r=>{t.$emit("update:modelValue",o.isChecked=null),t.$emit("input",null)}),class:n.classes}),{default:p(()=>[l("input",{ref:"input",id:`w-checkbox--${t._.uid}`,type:"checkbox",name:t.inputName,checked:o.isChecked||null,disabled:t.isDisabled||t.isReadonly||null,required:t.required||null,tabindex:t.tabindex||null,onFocus:e[0]||(e[0]=r=>t.$emit("focus",r)),onBlur:e[1]||(e[1]=r=>t.$emit("blur",r)),onChange:e[2]||(e[2]=r=>n.onInput()),onKeypress:e[3]||(e[3]=vt((...r)=>n.onInput&&n.onInput(...r),["enter"])),"aria-checked":o.isChecked||"false",role:"checkbox"},null,40,nb),n.hasLabel&&s.labelOnLeft?(f(),y(H,{key:0},[t.$slots.default?(f(),y("label",{key:0,class:E(["w-checkbox__label w-form-el-shakable pr2",t.labelClasses]),for:`w-checkbox--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,lb)):s.label?(f(),y("label",{key:1,class:E(["w-checkbox__label w-form-el-shakable pr2",t.labelClasses]),for:`w-checkbox--${t._.uid}`,innerHTML:s.label},null,10,ib)):C("",!0)],64)):C("",!0),l("div",{class:E(["w-checkbox__input",this.color]),onClick:e[4]||(e[4]=r=>{t.$refs.input.focus(),t.$refs.input.click()})},e[7]||(e[7]=[l("svg",{viewBox:"-0.5 0 12 10"},[l("polyline",{points:"1 5 4 8 10 2"})],-1)]),2),n.hasLabel&&!s.labelOnLeft?(f(),y(H,{key:1},[t.$slots.default?(f(),y("label",{key:0,class:E(["w-checkbox__label w-form-el-shakable pl2",t.labelClasses]),for:`w-checkbox--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,ab)):s.label?(f(),y("label",{key:1,class:E(["w-checkbox__label w-form-el-shakable pl2",t.labelClasses]),for:`w-checkbox--${t._.uid}`,innerHTML:s.label},null,10,ob)):C("",!0)],64)):C("",!0)]),_:3},16,["valid","class"])}const db={name:"w-checkbox",mixins:[Et],inject:{wCheckboxes:{default:null}},props:{modelValue:{default:!1},returnValue:{},label:{type:String},labelOnLeft:{type:Boolean},color:{type:String,default:"primary"},labelColor:{type:String,default:"primary"},noRipple:{type:Boolean},indeterminate:{type:Boolean},round:{type:Boolean},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","focus","blur"],data(){return{isChecked:this.modelValue,ripple:{start:!1,end:!1,timeout:null}}},computed:{hasLabel(){return this.label||this.$slots.default},classes(){return{[`w-checkbox w-checkbox--${this.isChecked?"checked":"unchecked"}`]:!0,"w-checkbox--disabled":this.isDisabled,"w-checkbox--readonly":this.isReadonly,"w-checkbox--indeterminate":this.indeterminate,"w-checkbox--ripple":this.ripple.start,"w-checkbox--rippled":this.ripple.end,"w-checkbox--round":this.round,"w-checkbox--dark":this.dark,"w-checkbox--light":this.light}}},methods:{onInput(){this.isChecked=!this.isChecked;const t=this.isChecked&&this.returnValue!==void 0?this.returnValue:this.isChecked;this.$emit("update:modelValue",t),this.$emit("input",t),this.noRipple||(this.isChecked?(this.ripple.start=!0,this.ripple.timeout=setTimeout(()=>{this.ripple.start=!1,this.ripple.end=!0,setTimeout(()=>this.ripple.end=!1,100)},700)):(this.ripple.start=!1,clearTimeout(this.ripple.timeout)))}},watch:{modelValue(t){this.isChecked=t}}},ub=ne(db,[["render",rb]]),cb=["innerHTML"];function pb(t,e,s,i,o,n){const r=R("w-checkbox");return f(),B(De(t.formRegister?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:n.checkboxItems.some(d=>d._isChecked),disabled:t.isDisabled},{valid:t.valid,"onUpdate:valid":e[1]||(e[1]=d=>t.valid=d),onReset:n.reset,column:!s.inline,wrap:s.inline,class:n.classes}),{default:p(()=>[(f(!0),y(H,null,ge(n.checkboxItems,(d,u)=>(f(),B(r,ee({key:u,"model-value":d._isChecked,"onUpdate:modelValue":c=>n.toggleCheck(d,c),onFocus:e[0]||(e[0]=c=>t.$emit("focus",c)),name:`${t.inputName}[]`,ref_for:!0},{label:d.label,color:d.color,labelOnLeft:s.labelOnLeft,labelColor:s.labelColor,round:s.round},{disabled:t.isDisabled||null,readonly:t.isReadonly||null,class:{mt1:!s.inline&&u}}),{default:p(()=>[t.$slots[`item.${u+1}`]||t.$slots.item?D(t.$slots,t.$slots[`item.${u+1}`]?`item.${u+1}`:"item",{key:0,item:n.getOriginalItem(d),checked:!!d._isChecked,index:u+1,innerHTML:d.label}):d.label?(f(),y("div",{key:1,innerHTML:d.label},null,8,cb)):C("",!0)]),_:2},1040,["model-value","onUpdate:modelValue","name","disabled","readonly","class"]))),128))]),_:3},16,["valid","onReset","column","wrap","class"])}const hb={name:"w-checkboxes",mixins:[Et],props:{items:{type:Array,required:!0},modelValue:{type:Array},returnValues:{type:Boolean},labelOnLeft:{type:Boolean},itemLabelKey:{type:String,default:"label"},itemValueKey:{type:String,default:"value"},itemColorKey:{type:String,default:"color"},inline:{type:Boolean},round:{type:Boolean},color:{type:String,default:"primary"},labelColor:{type:String,default:"primary"}},emits:["input","update:modelValue","focus"],provide(){return{wCheckboxes:!0}},computed:{checkboxItems(){return(this.items||[]).map((t,e)=>{const s=t[this.itemValueKey]===void 0?t[this.itemLabelKey]||e:t[this.itemValueKey];return Zt({...t,label:t[this.itemLabelKey],_index:e,value:s,color:t[this.itemColorKey]||this.color,_isChecked:this.modelValue&&this.modelValue.includes(s)})})},classes(){return["w-checkboxes",`w-checkboxes--${this.inline?"inline":"column"}`]}},methods:{reset(){this.checkboxItems.forEach(t=>t._isChecked=null),this.$emit("update:modelValue",[]),this.$emit("input",[])},toggleCheck(t,e){t._isChecked=e;const s=this.checkboxItems.filter(i=>i._isChecked).map(i=>this.returnValues?i.returnValue:i.value);this.$emit("update:modelValue",s),this.$emit("input",s)},getOriginalItem(t){return this.items[t._index]}}},mb=ne(hb,[["render",pb]]);function fb(t,e,s,i,o,n){const r=R("w-button"),d=R("w-flex"),u=R("w-menu"),c=en("focus");return f(),B(u,ee({modelValue:t.showPopup,"onUpdate:modelValue":e[2]||(e[2]=m=>t.showPopup=m)},n.wMenuProps),{activator:p(({on:m})=>[h(r,ee({class:"w-confirm"},{...t.$attrs,...n.buttonProps},pt(s.disablePrompt?{}:{...m})),{default:p(()=>[D(t.$slots,"default")]),_:2},1040)]),default:p(()=>[h(d,{column:!s.inline,"align-center":""},{default:p(()=>[l("div",null,[D(t.$slots,"question",{},()=>[a(S(s.question),1)])]),l("div",{class:E(["w-flex justify-end",s.inline?"ml2":"mt2"])},[s.cancel!==!1?(f(),B(r,ee({key:0,class:"mr2"},n.cancelButtonProps,{"bg-color":(n.cancelButton||{}).bgColor||"error",onKeyup:e[0]||(e[0]=vt(m=>!s.persistent&&n.onCancel(),["escape"])),onClick:n.onCancel}),{default:p(()=>[D(t.$slots,"cancel",{},()=>[a(S(n.cancelButton.label),1)])]),_:3},16,["bg-color","onClick"])):C("",!0),st((f(),B(r,ee(n.confirmButtonProps,{"bg-color":(n.confirmButton||{}).bgColor||"success",onKeyup:e[1]||(e[1]=vt(m=>!s.persistent&&n.onCancel(),["escape"])),onClick:n.onConfirm}),{default:p(()=>[D(t.$slots,"confirm",{},()=>[a(S(n.confirmButton.label),1)])]),_:3},16,["bg-color","onClick"])),[[c]])],2)]),_:3},8,["column"])]),_:3},16,["modelValue"])}const gb={name:"w-confirm",inheritAttrs:!1,props:{bgColor:{type:String},color:{type:String},icon:{type:String},disablePrompt:{type:Boolean},mainButton:{type:Object},question:{type:String,default:"Are you sure?"},cancel:{type:[Boolean,Object,String],default:void 0},confirm:{type:[Object,String]},inline:{type:Boolean},menu:{type:Object,default:()=>({})},tooltip:{type:[Boolean,Object,String]},noArrow:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},left:{type:Boolean},right:{type:Boolean},alignTop:{type:Boolean},alignBottom:{type:Boolean},alignLeft:{type:Boolean},alignRight:{type:Boolean},persistent:{type:Boolean},transition:{type:String},dark:{type:Boolean},light:{type:Boolean}},emits:["cancel","confirm"],data:()=>({showPopup:!1,props:[]}),computed:{cancelButton(){let t={label:typeof this.cancel=="string"?this.cancel:"Cancel"};return typeof this.cancel=="object"&&(t=Object.assign({},t,this.cancel)),t},cancelButtonProps(){const{label:t,...e}=this.cancelButton;return e},confirmButton(){let t={label:typeof this.confirm=="string"?this.confirm:"Confirm"};return typeof this.confirm=="object"&&(t=Object.assign({},t,this.confirm)),t},confirmButtonProps(){const{label:t,...e}=this.confirmButton;return e},wMenuProps(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right,arrow:!this.noArrow,alignTop:this.alignTop,alignBottom:this.alignBottom,alignLeft:this.alignLeft,alignRight:this.alignRight,persistent:this.persistent,transition:this.transition,...this.menu}},tooltipObject(){let t={label:typeof this.tooltip=="string"?this.tooltip:""};return typeof this.tooltip=="object"&&(t=Object.assign({},t,this.tooltip)),t},buttonProps(){const{label:t,...e}=this.tooltipObject;return{bgColor:this.bgColor,color:this.color,icon:this.icon,dark:this.dark,light:this.light,tooltip:t,tooltipProps:e,...this.mainButton}}},methods:{onCancel(){this.$emit("cancel"),this.showPopup=!1},onConfirm(){this.$emit("confirm"),this.showPopup=!1}}},vb=ne(gb,[["render",fb]]);function yb(t,e,s,i,o,n){return f(),y("div",{class:E(["w-date-picker",n.classes]),style:me(n.styles)},[D(t.$slots,"default")],6)}const bb={name:"w-date-picker",props:{dark:{type:Boolean},light:{type:Boolean}},emits:[],computed:{classes(){return{"w-date-picker--dark":this.dark,"w-date-picker--light":this.light}},styles(){return!1}}},wb=ne(bb,[["render",yb]]);function kb(t,e,s,i,o,n){const r=R("w-card"),d=R("w-overlay");return f(),B(d,{class:E(["w-dialog",n.classes]),"model-value":o.showWrapper,persistent:s.persistent,"persistent-no-animation":s.persistentNoAnimation,onClick:n.onOutsideClick,onClose:n.onClose,"bg-color":s.overlayColor,opacity:s.overlayOpacity},{default:p(()=>[h(Oe,{name:s.transition,appear:"",onAfterLeave:n.onBeforeClose},{default:p(()=>[st(h(r,{class:E(["w-dialog__content",s.dialogClass]),ref:"dialog","no-border":"",color:s.color,"bg-color":s.bgColor,"title-class":s.titleClass,"content-class":s.contentClass,title:s.title||void 0,style:me(n.contentStyles)},rs({default:p(()=>[D(t.$slots,"default")]),_:2},[t.$slots.title?{name:"title",fn:p(()=>[D(t.$slots,"title")]),key:"0"}:void 0,t.$slots.actions?{name:"actions",fn:p(()=>[D(t.$slots,"actions")]),key:"1"}:void 0]),1032,["color","bg-color","class","title-class","content-class","title","style"]),[[ol,o.showContent]])]),_:3},8,["name","onAfterLeave"])]),_:3},8,["model-value","persistent","persistent-no-animation","onClick","onClose","bg-color","opacity","class"])}const xb={name:"w-dialog",props:{modelValue:{default:!0},width:{type:[Number,String],default:0},fullscreen:{type:Boolean},persistent:{type:Boolean},persistentNoAnimation:{type:Boolean},tile:{type:Boolean},title:{type:String},transition:{type:String,default:"fade"},titleClass:{type:[String,Object,Array]},contentClass:{type:[String,Object,Array]},dialogClass:{type:[String,Object,Array]},overlayColor:{type:String},color:{type:String},bgColor:{type:String},overlayOpacity:{type:[Number,String,Boolean]},dark:{type:Boolean},light:{type:Boolean}},provide(){return{detachableDefaultRoot:()=>this.$refs.dialog.$el||null}},emits:["input","update:modelValue","before-close","close"],data(){return{showWrapper:this.modelValue,showContent:this.modelValue}},computed:{titleClasses(){return Ct(this.titleClass)},contentClasses(){return Ct(this.contentClass)},dialogClasses(){return Ct(this.dialogClass)},maxWidth(){let t=this.width;return t&&parseInt(t)===+t&&(t+="px"),t},classes(){return{"w-dialog--fullscreen":this.fullscreen,"w-dialog--dark":this.dark,"w-dialog--light":this.light}},contentStyles(){return{maxWidth:!this.fullscreen&&this.maxWidth?this.maxWidth:null}}},methods:{onOutsideClick(){this.persistent||(this.showContent=!1,this.transition==="fade"&&this.onBeforeClose())},onBeforeClose(){this.showWrapper=!1,this.$emit("before-close")},onClose(){this.$emit("update:modelValue",!1),this.$emit("input",!1),this.$emit("close")}},watch:{modelValue(t){this.showWrapper=t,this.showContent=t}}},Cb=ne(xb,[["render",kb]]),_b=["role","aria-orientation"];function Sb(t,e,s,i,o,n){return f(),y("div",{class:E(["w-divider",n.classes]),role:t.$slots.default?null:"presentation","aria-orientation":s.vertical?"vertical":"horizontal"},[D(t.$slots,"default")],10,_b)}const Db={name:"w-divider",props:{vertical:{type:Boolean},color:{type:String},dark:{type:Boolean},light:{type:Boolean}},emits:[],computed:{classes(){return{[`w-divider--has-color ${this.color}`]:this.color,[`w-divider--${this.vertical?"vertical":"horizontal"}`]:!0,"w-divider--has-content":this.$slots.default,"w-divider--dark":this.dark,"w-divider--light":this.light}}}},Eb=ne(Db,[["render",Sb]]),Tb={class:"w-drawer-wrap__pushable"};function Vb(t,e,s,i,o,n){const r=R("w-overlay");return o.showWrapper||s.pushContent?(f(),y("div",{key:0,class:E(["w-drawer-wrap",n.wrapperClasses])},[s.pushContent?(f(),y("div",{key:0,class:"w-drawer-wrap__track",style:me(n.trackStyles)},[l("div",Tb,[s.noOverlay?C("",!0):(f(),B(r,{key:0,modelValue:o.showDrawer,"onUpdate:modelValue":e[0]||(e[0]=d=>o.showDrawer=d),onClick:n.onOutsideClick,persistent:s.persistent,"persistent-no-animation":"","bg-color":s.overlayColor||"transparent",opacity:s.overlayOpacity},null,8,["modelValue","onClick","persistent","bg-color","opacity"])),D(t.$slots,"pushable")]),h(Oe,{name:"fade",onBeforeLeave:n.onBeforeClose,onAfterLeave:n.onClose},{default:p(()=>[o.showDrawer?(f(),B(De(s.tag||"aside"),{key:0,class:E(["w-drawer",n.drawerClasses]),ref:"drawer",style:me(n.styles)},{default:p(()=>[D(t.$slots,"default")]),_:3},8,["class","style"])):C("",!0)]),_:3},8,["onBeforeLeave","onAfterLeave"])],4)):(f(),y(H,{key:1},[s.noOverlay?C("",!0):(f(),B(r,{key:0,modelValue:o.showDrawer,"onUpdate:modelValue":e[1]||(e[1]=d=>o.showDrawer=d),onClick:n.onOutsideClick,persistent:s.persistent,"persistent-no-animation":"","bg-color":s.overlayColor,opacity:s.overlayOpacity},null,8,["modelValue","onClick","persistent","bg-color","opacity"])),h(Oe,{name:n.transitionName,appear:"",onBeforeLeave:n.onBeforeClose,onAfterLeave:n.onClose},{default:p(()=>[o.showDrawer?(f(),B(De(s.tag||"aside"),{key:0,class:E(["w-drawer",n.drawerClasses]),ref:"drawer",style:me(n.styles)},{default:p(()=>[D(t.$slots,"default")]),_:3},8,["class","style"])):C("",!0)]),_:3},8,["name","onBeforeLeave","onAfterLeave"])],64))],2)):C("",!0)}const $b={left:"right",right:"left",top:"down",bottom:"up"},Ib={name:"w-drawer",props:{modelValue:{default:!0},left:{type:Boolean},right:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},persistent:{type:Boolean},persistentNoAnimation:{type:Boolean},fitContent:{type:Boolean},width:{type:[Number,String,Boolean]},height:{type:[Number,String,Boolean]},zIndex:{type:[Number,String,Boolean]},color:{type:String},bgColor:{type:String},noOverlay:{type:Boolean},pushContent:{type:Boolean},absolute:{type:Boolean},overlayColor:{type:String},overlayOpacity:{type:[Number,String,Boolean]},drawerClass:{type:String},tag:{type:String,default:"aside"},dark:{type:Boolean},light:{type:Boolean}},provide(){return{detachableDefaultRoot:()=>this.$refs.drawer||null}},emits:["input","update:modelValue","before-close","close"],data(){return{showWrapper:this.modelValue,showDrawer:this.modelValue,persistentAnimate:!1}},computed:{size(){let t=this.width||this.height;return t&&parseInt(t)==t&&(t+="px"),t||!1},sizeProperty(){return["left","right"].includes(this.position)&&"width"||"height"},position(){return this.left&&"left"||this.right&&"right"||this.top&&"top"||this.bottom&&"bottom"||"right"},wrapperClasses(){return{"w-drawer-wrap--fixed":!this.absolute&&!this.pushContent,"w-drawer-wrap--absolute":this.absolute,"w-drawer-wrap--push-content":this.pushContent}},drawerClasses(){return{[this.drawerClass]:!0,[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,"w-drawer--open":!!this.showDrawer,[`w-drawer--${this.position}`]:!0,"w-drawer--fit-content":this.fitContent,"w-drawer--persistent":this.persistent,"w-drawer--persistent-animate":this.persistent&&this.persistentAnimate,"w-drawer--dark":this.dark,"w-drawer--light":this.light}},trackStyles(){return this.pushContent&&this.showDrawer&&{transform:`translateX(${this.position==="left"?"":"-"}${this.size||"200px"})`}},styles(){return{[`max-${this.sizeProperty}`]:this.size||null,zIndex:this.zIndex||this.zIndex===0||null}},unmountDrawer(){return!this.showWrapper},transitionName(){return`slide-${$b[this.position]}`}},methods:{onBeforeClose(){this.$emit("before-close")},onClose(){this.showWrapper=!1,this.$emit("update:modelValue",!1),this.$emit("input",!1),this.$emit("close")},onOutsideClick(){this.persistent?this.persistentNoAnimation||(this.persistentAnimate=!0,setTimeout(()=>this.persistentAnimate=!1,200)):this.showDrawer=!1}},watch:{modelValue(t){t&&(this.showWrapper=!0),this.showDrawer=t}}},Mb=ne(Ib,[["render",Vb]]);function Ab(t,e,s,i,o,n){return f(),B(De(s.tag),{class:E(["w-flex",n.classes])},{default:p(()=>[D(t.$slots,"default")]),_:3},8,["class"])}const Bb={name:"w-flex",props:{tag:{type:String,default:"div"},column:{type:Boolean},grow:{type:Boolean},noGrow:{type:Boolean},shrink:{type:Boolean},noShrink:{type:Boolean},fillHeight:{type:Boolean},wrap:{type:Boolean},alignStart:{type:Boolean},alignCenter:{type:Boolean},alignEnd:{type:Boolean},justifyStart:{type:Boolean},justifyCenter:{type:Boolean},justifyEnd:{type:Boolean},justifySpaceBetween:{type:Boolean},justifySpaceAround:{type:Boolean},justifySpaceEvenly:{type:Boolean},basisZero:{type:Boolean},gap:{type:[Number,String],default:0}},computed:{classes(){return{column:this.column,grow:this.grow,"no-grow":this.noGrow,shrink:this.shrink,"no-shrink":this.noShrink,"fill-height":this.fillHeight,wrap:this.wrap,"align-start":this.alignStart,"align-center":this.alignCenter,"align-end":this.alignEnd,"justify-start":this.justifyStart,"justify-center":this.justifyCenter,"justify-end":this.justifyEnd,"justify-space-between":this.justifySpaceBetween,"justify-space-around":this.justifySpaceAround,"justify-space-evenly":this.justifySpaceEvenly,"basis-zero":this.basisZero,[`gap${this.gap}`]:~~this.gap}}}},Ob=ne(Bb,[["render",Ab]]);function Rb(t,e,s,i,o,n){return f(),y("form",{class:E(["w-form",n.classes]),onSubmit:e[0]||(e[0]=(...r)=>n.onSubmit&&n.onSubmit(...r)),onReset:e[1]||(e[1]=(...r)=>n.reset&&n.reset(...r)),novalidate:""},[D(t.$slots,"default")],34)}const Lb=async(t,e)=>{for(const s of t)if(await e(s))return!0;return!1},Pb={name:"w-form",props:{modelValue:{},allowSubmit:{type:Boolean},noKeyupValidation:{type:Boolean},noBlurValidation:{type:Boolean},errorPlaceholders:{type:Boolean},validationColor:{type:String,default:"error"},disabled:{type:Boolean},readonly:{type:Boolean}},provide(){return{formRegister:this.register,formUnregister:this.unregister,validateElement:this.validateElement,formProps:this.$props}},emits:["submit","before-validate","validate","success","error","reset","input","update:modelValue","update:errorsCount"],data:()=>({formElements:[],status:null,errorsCount:0}),computed:{classes(){return{"w-form--pristine":this.status===null,"w-form--error":this.status===!1,"w-form--success":this.status===!0,"w-form--error-placeholders":this.errorPlaceholders}}},methods:{register(t){this.formElements.push(t)},unregister(t){this.formElements=this.formElements.filter(e=>e._.uid!==t._.uid)},async validate(t){this.$emit("before-validate",{e:t,errorsCount:this.errorsCount});let e=0;return await(async()=>{var s;for(const i of this.formElements)!((s=i.validators)!=null&&s.length)||i.disabled||i.readonly||(await this.checkElementValidators(i),e+=~~!i.Validation.isValid,i.$emit("update:valid",i.Validation.isValid))})(),this.updateErrorsCount(e),this.status=!e,this.$emit("validate",{e:t,errorsCount:e}),this.$emit(this.status?"success":"error",{e:t,errorsCount:e}),this.status},async validateElement(t){return await this.checkElementValidators(t),this.updateErrorsCount(),t.Validation.isValid},async checkElementValidators(t){let e=!1,s="";await Lb(t.validators,async i=>{const o=await(typeof i=="function"&&i(t.inputValue));return e=typeof o!="string",s=e?"":o,!e}),t.hasJustReset=!1,t.Validation.isValid=e,t.Validation.message=s},reset(t){this.status=null,this.formElements.forEach(e=>e.reset()),this.updateErrorsCount(0,!0),this.$emit("reset",t)},updateErrorsCount(t=null,e=!1){this.errorsCount=t!==null?t:this.formElements.reduce((s,i)=>s+~~(i.Validation.isValid===!1),0),this.status=e?null:!this.errorsCount,this.$emit("update:modelValue",this.status),this.$emit("input",this.status),this.$emit("update:errorsCount",this.errorsCount)},onSubmit(t){this.validate(t),this.$emit("submit",t),(!this.allowSubmit||!this.status)&&t.preventDefault()}},created(){this.status=this.modelValue||null},watch:{modelValue(t){(this.status===!1&&t||t===null&&this.status!==null)&&this.reset(),this.status=t}}},Nb=ne(Pb,[["render",Rb]]);function Wb(t,e,s,i,o,n){const r=R("w-transition-expand");return f(),y("div",{class:E(n.classes)},[l("div",{class:E(["w-flex grow",[s.column?"column":"align-center",s.wrap?"wrap":""]])},[D(t.$slots,"default")],2),h(r,{y:""},{default:p(()=>[t.Validation.message?(f(),y("div",{key:0,class:E(["w-form-el__error",n.formProps.validationColor])},[D(t.$slots,"error-message",{message:t.Validation.message},()=>[a(S(t.Validation.message),1)])],2)):C("",!0)]),_:3})],2)}const Hb={name:"w-form-element",props:{valid:{required:!0},disabled:{type:Boolean},readonly:{type:Boolean},inputValue:{required:!0},validators:{type:Array},isFocused:{default:!1},column:{default:!1},wrap:{default:!1}},inject:{formRegister:{default:null},formUnregister:{default:null},validateElement:{default:null},formProps:{default:()=>({noKeyupValidation:!1,noBlurValidation:!1,validationColor:"error",disabled:!1,readonly:!1})}},emits:["reset","update:valid"],data:()=>({Validation:{isValid:null,message:""},hasJustReset:!1}),computed:{classes(){return["w-form-el",["w-form-el--error error","w-form-el--success","w-form-el--pristine"][this.Validation.isValid===null?2:~~this.Validation.isValid]]}},methods:{reset(){this.$emit("reset"),this.$emit("update:valid",null),this.Validation.message="",this.Validation.isValid=null,this.hasJustReset=!0},async validate(){this.$emit("update:valid",await this.validateElement(this))}},watch:{async inputValue(){if(this.hasJustReset)return this.hasJustReset=!1;!this.formProps.noKeyupValidation&&this.validators&&this.$emit("update:valid",await this.validateElement(this))},async isFocused(t){t?this.hasJustReset=!1:!this.formProps.noBlurValidation&&this.validators&&!this.readonly&&this.$emit("update:valid",await this.validateElement(this))}},created(){this.formRegister&&this.formRegister(this)},beforeUnmount(){this.formUnregister&&this.formUnregister(this)}},jb=ne(Hb,[["render",Wb]]);function zb(t,e,s,i,o,n){return f(),B(De(s.tag),{class:E(["w-grid",n.classes])},{default:p(()=>[D(t.$slots,"default")]),_:3},8,["class"])}const Fb={name:"w-grid",props:{tag:{type:String,default:"div"},columns:{type:[Number,Object,String]},gap:{type:[Number,Object,String],default:0}},computed:{breakpointsColumns(){let t={xs:0,sm:0,md:0,lg:0,xl:0};switch(typeof this.columns){case"object":t=Object.assign(t,this.columns);break;case"number":case"string":t=Object.keys(t).reduce((e,s)=>e[s]=~~this.columns,{});break}return t},breakpointsGap(){let t={xs:0,sm:0,md:0,lg:0,xl:0};switch(typeof this.gap){case"object":t=Object.assign(t,this.gap);break;case"number":case"string":t=Object.keys(t).reduce((e,s)=>e[s]=~~this.gap,{});break}return t},classes(){let t=null;typeof this.columns=="object"&&(t=Object.entries(this.breakpointsColumns).reduce((s,[i,o])=>(s[`${i}-columns${o}`]=!0,s),{}));let e=null;return typeof this.gap=="object"&&(e=Object.entries(this.breakpointsGap).reduce((s,[i,o])=>(s[`${i}-gap${o}`]=!0,s),{})),{...t||{[`columns${this.columns}`]:this.columns},...e||{[`gap${this.gap}`]:this.gap}}}}},Yb=ne(Fb,[["render",zb]]);function Ub(t,e,s,i,o,n){return f(),B(De(s.tag||"i"),{class:E(["w-icon",n.classes]),role:"icon","aria-hidden":"true",style:me(n.readIcon()&&n.styles)},{default:p(()=>[n.hasLigature?(f(),y(H,{key:0},[a(S(t.icon),1)],64)):C("",!0)]),_:1},8,["class","style"])}const Kb={name:"w-icon",props:{tag:{type:String,default:"i"},color:{type:String},bgColor:{type:String},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean},spin:{type:Boolean},spinA:{type:Boolean},rotate135a:{type:Boolean},rotate90a:{type:Boolean},rotate45a:{type:Boolean},rotate45:{type:Boolean},rotate90:{type:Boolean},rotate135:{type:Boolean},rotate180:{type:Boolean},flipX:{type:Boolean},flipY:{type:Boolean},size:{type:[Number,String]}},emits:[],data:()=>({icon:"",fontName:""}),computed:{hasLigature(){return this.$waveui.config.iconsLigature===this.fontName},forcedSize(){return this.size&&(isNaN(this.size)?this.size:`${this.size}px`)},presetSize(){return this.xs&&"xs"||this.sm&&"sm"||this.md&&"md"||this.lg&&"lg"||this.xl&&"xl"||null},classes(){return{[this.fontName]:!0,[!this.hasLigature&&this.icon]:!this.hasLigature&&this.icon,[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,[`size--${this.presetSize}`]:this.presetSize&&!this.forcedSize,"w-icon--spin":this.spin,"w-icon--spin-a":this.spinA,"w-icon--rotate45":this.rotate45,"w-icon--rotate90":this.rotate90,"w-icon--rotate135":this.rotate135,"w-icon--rotate180":this.rotate180,"w-icon--rotate-45":this.rotate45a,"w-icon--rotate-90":this.rotate90a,"w-icon--rotate-135":this.rotate135a,"w-icon--flip-x":this.flipX,"w-icon--flip-y":this.flipY}},styles(){return this.forcedSize&&`font-size: ${this.forcedSize}`}},methods:{readIcon(){const{default:t}=this.$slots,[e="",s=""]=typeof t=="function"&&t()[0].children.trim().split(" ")||[];return this.fontName=e,this.icon=s,!0}}},qb=ne(Kb,[["render",Ub]]),Jb={key:0,class:"w-image__loader"},Gb=["innerHTML"];function Xb(t,e,s,i,o,n){const r=R("w-progress");return f(),B(De(n.wrapperTag),{class:E(["w-image",n.wrapperClasses]),style:me(n.wrapperStyles)},{default:p(()=>[h(Oe,{name:s.transition,appear:""},{default:p(()=>[o.loaded?(f(),B(De(n.normalized.tag),{key:0,class:E(["w-image__image",n.imageClasses]),style:me(n.imageStyles),src:n.normalized.tag==="img"?o.computedImg.src:null},null,8,["class","style","src"])):C("",!0)]),_:1},8,["name"]),!s.noSpinner&&o.loading?(f(),y("span",Jb,[t.$slots.loading?D(t.$slots,"loading",{key:0}):(f(),B(r,ee({key:1,circle:"",indeterminate:""},s.spinnerColor?{color:s.spinnerColor}:{}),null,16))])):C("",!0),t.$slots.default?(f(),B(De(n.wrapperTag),{key:1,class:E(["w-image__content",s.contentClass])},{default:p(()=>[D(t.$slots,"default")]),_:3},8,["class"])):C("",!0),t.$slots.caption?(f(),y("figcaption",{key:2,class:E(["w-image__caption caption",s.captionClass])},[D(t.$slots,"caption")],2)):s.caption?(f(),y("figcaption",{key:3,class:E(["w-image__caption caption",s.captionClass]),innerHTML:s.caption},null,10,Gb)):C("",!0)]),_:3},8,["class","style"])}const Qb={name:"w-image",props:{tag:{type:String,default:"span"},src:{type:String},width:{type:[Number,String]},height:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},ratio:{type:[Number,String]},lazy:{type:Boolean},absolute:{type:Boolean},fixed:{type:Boolean},contain:{type:Boolean},noSpinner:{type:Boolean},spinnerColor:{type:String},fallback:{type:String},transition:{type:String,default:"fade"},contentClass:{type:[String,Array,Object]},caption:{type:String},captionClass:{type:String}},emits:["loading","loaded","error"],data(){return{loading:!1,loaded:!1,computedImg:{src:"",width:0,height:0,ratio:0}}},computed:{normalized(){return{width:(isNaN(this.width)?this.width:`${this.width}px`)||null,height:(isNaN(this.height)?this.height:`${this.height}px`)||null,maxWidth:(isNaN(this.maxWidth)?this.maxWidth:`${this.maxWidth}px`)||null,maxHeight:(isNaN(this.maxHeight)?this.maxHeight:`${this.maxHeight}px`)||null,ratio:parseFloat(this.ratio)||void 0,tag:this.tag==="img"||this.tag==="figure"||this.caption?"img":"span"}},wrapperTag(){return this.caption||this.tag==="figure"?"figure":["span","div"].includes(this.tag)?this.tag:"span"},wrapperClasses(){return{"w-image--absolute":this.absolute,"w-image--fixed":this.fixed,"w-image--has-ratio":this.normalized.ratio}},wrapperStyles(){let t=this.normalized.width;const e=this.normalized.height;let s=this.normalized.maxWidth,i=this.normalized.ratio;return i&&!t&&!e?t="100%":!t&&!e?(t="100%",s=this.normalized.maxWidth||`${this.computedImg.width}px`,i=i||this.computedImg.width/this.computedImg.height):(t&&!e||e&&!t)&&(i=i||this.computedImg.width/this.computedImg.height),{width:t,height:e,maxWidth:s,maxHeight:this.normalized.maxHeight,aspectRatio:i}},imageClasses(){return{"w-image__image--loading":this.loading,"w-image__image--loaded":this.loaded,"w-image__image--contain":this.contain}},imageStyles(){return{"background-image":this.normalized.tag!=="img"&&this.loaded?`url('${this.computedImg.src}')`:null}}},methods:{loadImage(t=!1){if(!this.loading)return this.loading=!0,this.loaded=!1,this.$emit("loading",t?this.fallback:this.src),new Promise(e=>{const s=new Image;s.onload=i=>(this.computedImg.width=i.target.width,this.computedImg.height=i.target.height,this.computedImg.ratio=i.target.height/i.target.width,this.loading=!1,this.loaded=!0,this.computedImg.src=t?this.fallback:this.src,this.$emit("loaded",this.computedImg.src),e(s)),s.onerror=i=>{this.$emit("error",i),this.fallback&&!t?(this.loading=!1,this.loadImage(!0)):(this.loading=!1,this.loaded=!1)},s.src=t?this.fallback:this.src})}},mounted(){if(!this.src)return an("The w-image component was used without src.");if(this.lazy){const t=new IntersectionObserver(e=>{e[0]&&e[0].isIntersecting&&(this.loadImage(),t.disconnect())},this.intersectionConfig);t.observe(this.$el)}else this.loadImage()},watch:{src(){this.loadImage()}}},Zb=ne(Qb,[["render",Xb]]),e1=["name"],t1=["for"],s1=["id","type","name","placeholder","step","min","max","minlength","maxlength","readonly","aria-readonly","disabled","required","tabindex"],n1=["id","name","multiple","disabled","data-progress"],l1={class:"w-input__no-file",key:"no-file"},i1=["for"],a1=["src"],o1=["for"];function r1(t,e,s,i,o,n){const r=R("w-icon"),d=R("w-progress");return f(),B(De(t.formRegister?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:o.inputValue,disabled:t.isDisabled,readonly:t.isReadonly,isFocused:o.isFocused},{valid:t.valid,"onUpdate:valid":e[10]||(e[10]=u=>t.valid=u),onReset:e[11]||(e[11]=u=>{t.$emit("update:modelValue",o.inputValue=""),t.$emit("input","")}),wrap:n.hasLabel&&s.labelPosition!=="inside",class:n.classes,style:t.$attrs.style}),{default:p(()=>[s.type==="hidden"?st((f(),y("input",{key:0,type:"hidden",name:t.name||null,"onUpdate:modelValue":e[0]||(e[0]=u=>o.inputValue=u)},null,8,e1)),[[zn,o.inputValue]]):(f(),y(H,{key:1},[s.labelPosition==="left"?(f(),y(H,{key:0},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-input__label w-input__label--left w-form-el-shakable",t.labelClasses]),for:`w-input--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,t1)):C("",!0)],64)):C("",!0),l("div",{class:E(["w-input__input-wrap",n.inputWrapClasses])},[D(t.$slots,"icon-left",{inputId:`w-input--${t._.uid}`},()=>[s.innerIconLeft?(f(),B(r,{key:0,class:"w-input__icon w-input__icon--inner-left",tag:"label",for:`w-input--${t._.uid}`,onClick:e[1]||(e[1]=u=>t.$emit("click:inner-icon-left",u))},{default:p(()=>[a(S(s.innerIconLeft),1)]),_:1},8,["for"])):C("",!0)]),s.type!=="file"?st((f(),y("input",ee({key:0,class:"w-input__input",ref:"input","onUpdate:modelValue":e[2]||(e[2]=u=>o.inputValue=u),onInput:e[3]||(e[3]=(...u)=>n.onInput&&n.onInput(...u)),onFocus:e[4]||(e[4]=(...u)=>n.onFocus&&n.onFocus(...u)),onBlur:e[5]||(e[5]=(...u)=>n.onBlur&&n.onBlur(...u)),id:`w-input--${t._.uid}`,type:s.type,name:t.inputName,placeholder:s.placeholder||null,step:s.step||null,min:s.min||null,max:s.max||null,minlength:s.minlength||null,maxlength:s.maxlength||null,readonly:t.isReadonly||null,"aria-readonly":t.isReadonly?"true":"false",disabled:t.isDisabled||null,required:t.required||null,tabindex:t.tabindex||null},n.attrs),null,16,s1)),[[gc,o.inputValue]]):(f(),y(H,{key:1},[l("input",ee({ref:"input",id:`w-input--${t._.uid}`,type:"file",name:t.name||null,onFocus:e[6]||(e[6]=(...u)=>n.onFocus&&n.onFocus(...u)),onBlur:e[7]||(e[7]=(...u)=>n.onBlur&&n.onBlur(...u)),onChange:e[8]||(e[8]=(...u)=>n.onFileChange&&n.onFileChange(...u)),multiple:s.multiple||null},n.attrs,{disabled:t.isDisabled||null,"data-progress":n.overallFilesProgress}),null,16,n1),h(rl,{class:"w-input__input w-input__input--file",tag:"label",name:"fade",for:`w-input--${t._.uid}`},{default:p(()=>[!o.inputFiles.length&&o.isFocused?(f(),y("span",l1,[D(t.$slots,"no-file",{},()=>[t.$slots["no-file"]===void 0?(f(),y(H,{key:0},[a("No file")],64)):C("",!0)])])):C("",!0),(f(!0),y(H,null,ge(o.inputFiles,(u,c)=>(f(),y("span",{key:u.lastModified},[a(S(c?", ":""),1),(f(),y("span",{class:"filename",key:`${c}b`},S(u.base),1)),a(S(u.extension?`.${u.extension}`:""),1)]))),128))]),_:3},8,["for"])],64)),s.labelPosition==="inside"&&n.showLabelInside?(f(),y(H,{key:2},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-input__label w-input__label--inside w-form-el-shakable",t.labelClasses])},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],2)):C("",!0)],64)):C("",!0),D(t.$slots,"icon-right",{inputId:`w-input--${t._.uid}`},()=>[s.innerIconRight?(f(),B(r,{key:0,class:"w-input__icon w-input__icon--inner-right",tag:"label",for:`w-input--${t._.uid}`,onClick:e[9]||(e[9]=u=>t.$emit("click:inner-icon-right",u))},{default:p(()=>[a(S(s.innerIconRight),1)]),_:1},8,["for"])):C("",!0)]),n.hasLoading||s.showProgress&&(n.uploadInProgress||n.uploadComplete)?(f(),B(d,{key:3,class:"fill-width",size:"2",color:s.progressColor||s.color,"model-value":s.showProgress?(n.uploadInProgress||n.uploadComplete)&&n.overallFilesProgress:n.loadingValue},null,8,["color","model-value"])):C("",!0)],2),s.type==="file"&&s.preview&&o.inputFiles.length?(f(),y("label",{key:1,class:"d-flex",for:`w-input--${t._.uid}`},[(f(!0),y(H,null,ge(o.inputFiles,(u,c)=>(f(),y(H,null,[u.progress<100?(f(),y("i",{class:"w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",key:`${c}a`})):u.preview?(f(),y("img",{class:"w-input__file-preview",key:`${c}b`,src:u.preview,alt:""},null,8,a1)):(f(),y("i",{class:E(["w-icon w-input__file-preview primary size--md",s.preview&&typeof s.preview=="string"?s.preview:"wi-file"]),key:`${c}c`},null,2))],64))),256))],8,i1)):C("",!0),s.labelPosition==="right"?(f(),y(H,{key:2},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-input__label w-input__label--right w-form-el-shakable",t.labelClasses]),for:`w-input--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,o1)):C("",!0)],64)):C("",!0)],64))]),_:3},16,["valid","wrap","class","style"])}const d1={name:"w-input",mixins:[Et],inheritAttrs:!1,props:{modelValue:{default:""},type:{type:String,default:"text"},label:{type:String},labelPosition:{type:String,default:"inside"},innerIconLeft:{type:String},innerIconRight:{type:String},staticLabel:{type:Boolean},placeholder:{type:String},color:{type:String,default:"primary"},bgColor:{type:String},labelColor:{type:String,default:"primary"},progressColor:{type:String},minlength:{type:[Number,String]},maxlength:{type:[Number,String]},step:{type:[Number,String]},min:{type:[Number,String]},max:{type:[Number,String]},outline:{type:Boolean},round:{type:Boolean},shadow:{type:Boolean},tile:{type:Boolean},multiple:{type:Boolean},preview:{type:[Boolean,String],default:!0},loading:{type:[Boolean,Number],default:!1},showProgress:{type:[Boolean]},files:{type:Array},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","focus","blur","click:inner-icon-left","click:inner-icon-right","update:overallProgress"],data(){return{inputValue:this.modelValue,inputNumberError:!1,isFocused:!1,inputFiles:[],fileReader:null,isAutofilled:!1}},computed:{attrs(){const{class:t,style:e,...s}=this.$attrs;return this.type==="file"&&!this.inputFiles.length&&(s.value=null),s},hasValue(){switch(this.type){case"file":return!!this.inputFiles.length;case"number":return this.inputValue||this.inputValue===0||this.inputNumberError;case"date":case"time":return!0;default:return this.inputValue||this.inputValue===0}},hasLabel(){return this.label||this.$slots.default},hasLoading(){return![void 0,!1].includes(this.loading)},loadingValue(){let t;return typeof this.loading=="number"?t=this.loading:this.loading&&(t=this.type==="file"&&this.overallFilesProgress?this.overallFilesProgress:void 0),t},showLabelInside(){return!this.staticLabel||!this.hasValue&&!this.placeholder},overallFilesProgress(){const t=+this.inputFiles.reduce((e,s)=>e+s.progress,0)/this.inputFiles.length;return this.$emit("update:overallProgress",this.inputFiles.length?t:0),t},uploadInProgress(){return this.overallFilesProgress>0&&this.overallFilesProgress<100},uploadComplete(){return this.overallFilesProgress===100},classes(){return{"w-input":!0,"w-input--file":this.type==="file","w-input--disabled":this.isDisabled,"w-input--readonly":this.isReadonly,[`w-input--${this.hasValue||this.isAutofilled?"filled":"empty"}`]:!0,"w-input--focused":this.isFocused&&!this.isReadonly,"w-input--dark":this.dark,"w-input--light":this.light,"w-input--floating-label":this.hasLabel&&this.labelPosition==="inside"&&!this.staticLabel,"w-input--no-padding":!this.outline&&!this.bgColor&&!this.shadow&&!this.round,"w-input--has-placeholder":this.placeholder,"w-input--inner-icon-left":this.innerIconLeft,"w-input--inner-icon-right":this.innerIconRight,[this.$attrs.class]:!!this.$attrs.class}},inputWrapClasses(){return{[this.valid===!1?this.validationColor:this.color]:this.color||this.valid===!1,[`${this.bgColor}--bg`]:this.bgColor,"w-input__input-wrap--file":this.type==="file","w-input__input-wrap--round":this.round,"w-input__input-wrap--tile":this.tile,"w-input__input-wrap--box":this.outline||this.bgColor||this.shadow,"w-input__input-wrap--underline":!this.outline,"w-input__input-wrap--shadow":this.shadow,"w-input__input-wrap--no-padding":!this.outline&&!this.bgColor&&!this.shadow&&!this.round,"w-input__input-wrap--loading":this.loading||this.showProgress&&this.uploadInProgress,"w-input__input-wrap--upload-complete":this.uploadComplete}}},methods:{onInput(t){this.inputNumberError=t.target.validity.badInput,this.$emit("update:modelValue",this.inputValue),this.$emit("input",this.inputValue)},onFocus(t){this.isFocused=!0,this.$emit("focus",t)},onBlur(t){this.isFocused=!1,this.$emit("blur",t)},onFileChange(t){this.inputFiles=[...t.target.files].map(s=>{const[,i="",o="",n=""]=s.name.match(/^(.*?)\.([^.]*)$|(.*)/),r=Zt({name:s.name,base:i||n,extension:o,type:s.type,size:s.size,lastModified:s.lastModified,preview:null,progress:0,file:s});return this.readFile(s,r),r});const e=this.multiple?this.inputFiles:this.inputFiles[0];this.$emit("update:modelValue",e),this.$emit("input",e)},readFile(t,e){const s=new FileReader,i=typeof this.preview=="string",o=t.type&&t.type.startsWith("image/");this.preview&&!i&&o?s.addEventListener("load",n=>{e.preview=n.target.result}):delete e.preview,s.addEventListener("progress",n=>{n.loaded&&n.total&&(e.progress=n.loaded*100/n.total)}),s.readAsDataURL(t)}},mounted(){setTimeout(()=>{this.$refs.input&&this.$refs.input.matches(":-webkit-autofill")&&(this.isAutofilled=!0)},400)},watch:{modelValue(t){this.inputValue=t,!t&&t!==0&&(this.isAutofilled=!1,this.inputFiles=[])}}},u1=ne(d1,[["render",r1]]);function c1(t,e,s,i,o,n){const r=R("w-icon"),d=R("w-list",!0);return f(),y("ul",{class:E(["w-list",n.classes])},[(f(!0),y(H,null,ge(t.listItems,(u,c)=>(f(),y("li",{class:E(["w-list__item",{"w-list__item--parent":(u.children||[]).length}]),key:c},[s.icon?(f(),B(r,{key:0,class:"w-list__item-bullet"},{default:p(()=>[a(S(s.icon),1)]),_:1})):C("",!0),t.$slots[`item.${c+1}`]||t.$slots.item||t.$slots.default?(f(),B(De(s.checklist?"w-checkbox":s.nav&&!u.disabled&&u.route?n.hasRouter?"router-link":"a":"div"),ee({key:1,class:"w-list__item-label",ref_for:!0},n.liLabelProps(u,c,u._selected)),{default:p(()=>[t.$slots[`item.${c+1}`]?D(t.$slots,`item.${c+1}`,{key:0,item:n.cleanLi(u),index:c+1,selected:u._selected}):t.$slots.item?D(t.$slots,"item",{key:1,item:n.cleanLi(u),index:c+1,selected:u._selected}):D(t.$slots,"default",{key:2,item:n.cleanLi(u),index:c+1,selected:u._selected},()=>[a(S(u._label),1)])]),_:2},1040)):(f(),B(De(s.checklist?"w-checkbox":s.nav&&!u.disabled&&u.route?n.hasRouter?"router-link":"a":"div"),ee({key:2,class:"w-list__item-label",ref_for:!0},n.liLabelProps(u,c,u._selected)),null,16)),(u.children||[]).length?(f(),B(d,ee({key:3,ref_for:!0},t.$props,{items:u.children,depth:s.depth+1,"onUpdate:modelValue":e[0]||(e[0]=m=>t.$emit("update:modelValue",m)),onInput:e[1]||(e[1]=m=>t.$emit("input",m)),onItemClick:e[2]||(e[2]=m=>t.$emit("item-click",m)),onItemSelect:e[3]||(e[3]=m=>t.$emit("item-select",m))}),rs({_:2},[t.$slots.item?{name:"item",fn:p(({item:m,index:g,selected:v})=>[D(t.$slots,"item",{item:n.cleanLi(m),index:g,selected:v})]),key:"0"}:{name:"default",fn:p(({item:m,index:g,selected:v})=>[D(t.$slots,"default",{item:n.cleanLi(m),index:g,selected:v},()=>[a(S(m[s.itemLabelKey]),1)])]),key:"1"}]),1040,["items","depth"])):C("",!0)],2))),128))],2)}const p1={name:"w-list",props:{items:{type:[Array,Number],required:!0},modelValue:{},checklist:{type:Boolean},roundCheckboxes:{type:Boolean},multiple:{type:Boolean},addIds:{type:[Boolean,String]},hover:{type:Boolean},color:{type:String},selectionColor:{type:String},bgColor:{type:String},nav:{type:Boolean},icon:{type:String,default:""},itemLabelKey:{type:String,default:"label"},itemValueKey:{type:String,default:"value"},itemClassKey:{type:String,default:"class"},itemColorKey:{type:String,default:"color"},itemRouteKey:{type:String,default:"route"},itemClass:{type:String},depth:{type:Number,default:0},returnObject:{type:Boolean},noUnselect:{type:Boolean},arrowsNavigation:{type:Boolean}},emits:["input","update:modelValue","item-click","item-select","keydown:escape","keydown:enter"],data:()=>({listItems:[]}),computed:{hasRouter(){return"$router"in this},listId(){return this.addIds?typeof this.addIds=="string"?this.addIds:`w-list--${this._.uid}`:null},selectedItems(){return this.listItems.filter(t=>t._selected)},enabledItemsIndexes(){return this.listItems.filter(t=>!t.disabled).map(t=>t.index)},isMultipleSelect(){return this.multiple||this.checklist},isSelectable(){return this.modelValue!==void 0||this.checklist||this.nav},SelectionColor(){const t=this.selectionColor===void 0?!this.color&&"primary":this.selectionColor;return this.isSelectable&&t},classes(){return{[this.color]:this.color||null,[`${this.bgColor}--bg`]:this.bgColor||null,"w-list--checklist":this.checklist,"w-list--navigation":this.nav,"w-list--icon":this.icon,[`w-list--child w-list--depth-${this.depth}`]:this.depth}}},methods:{getItemValue(t){return t&&typeof t=="object"?t[this.itemValueKey]!==void 0?t[this.itemValueKey]:t[this.itemLabelKey]!==void 0?t[this.itemLabelKey]:t.index:t},selectItem(t,e){t._selected&&!this.multiple&&this.noUnselect||(t._selected=e!==void 0?e:!t._selected,t._selected&&!this.isMultipleSelect&&this.listItems.forEach(s=>s._index!==t._index&&(s._selected=!1)),this.emitSelection())},liLabelClasses(t){return{"w-list__item-label--disabled":t.disabled||this.nav&&!t[this.itemRouteKey]&&!t.children,"w-list__item-label--active":this.isSelectable&&t._selected||null,"w-list__item-label--focused":t._focused,"w-list__item-label--hoverable":this.hover,"w-list__item-label--selectable":this.isSelectable,[t[this.itemColorKey]]:!!t[this.itemColorKey],[this.SelectionColor]:t._selected&&!t[this.itemColorKey]&&this.SelectionColor,[t[this.itemClassKey]||this.itemClass]:t[this.itemClassKey]||this.itemClass}},liLabelProps(t,e,s){const i=this.$slots[`item.${e+1}`]||this.$slots.item,o=()=>{if(!t.disabled){const u=this.cleanLi(t);this.$emit("item-click",u),this.$emit("item-select",u)}},n=this.isSelectable&&(u=>{u.stopPropagation(),!t.disabled&&this.selectItem(t)}),r=this.isSelectable&&(u=>{!t.disabled&&u.keyCode===13?(this.selectItem(t),this.$emit("keydown:enter"),this.$emit("item-select",this.cleanLi(t))):u.keyCode===27?this.$emit("keydown:escape"):this.arrowsNavigation&&[38,40].includes(u.keyCode)&&(u.preventDefault(),u.keyCode===38&&this.focusPrevNextItem(t._index,!1),u.keyCode===40&&this.focusPrevNextItem(t._index,!0))}),d={class:this.liLabelClasses(t),tabindex:t.disabled||this.checklist?null:"0","aria-selected":s?"true":"false",id:this.listId?`${this.listId}_item-${e+1}`:null,role:"option"};return this.checklist?(d.modelValue=t._selected,d.color=t[this.itemColorKey]||this.color,d.round=this.roundCheckboxes,d.disabled=t.disabled,i||(d.label=t._label||null),d.onFocus=()=>t._focused=!0,d.onBlur=()=>t._focused=!1,d.onInput=u=>this.selectItem(t,u),d.onClick=u=>{const c=u.target.querySelector('input[type="checkbox"]');c&&(c.focus(),c.click()),o()}):this.nav?(!t.disabled&&t[this.itemRouteKey]&&(d.onKeydown=r,d.onMousedown=n,this.$router?(d.to=t[this.itemRouteKey],d.onClick=u=>{u.preventDefault(),this.$router.push(t[this.itemRouteKey]),o()}):(d.href=t[this.itemRouteKey],d.onClick=o)),i||(d.innerHTML=t._label)):(this.isSelectable&&(t.disabled||(d.tabindex=0),d.onClick=o,d.onKeydown=r,d.onMousedown=n),i||(d.innerHTML=t._label)),d},checkSelection(t){return t=Array.isArray(t)?t:t?[t]:[],this.returnObject&&(t=t.map(this.getItemValue)),t},emitSelection(){const t=this.selectedItems.map(s=>{if(!this.returnObject)return s._value;const{_value:i,_selected:o,...n}=s;return n}),e=this.isMultipleSelect?t:t[0]!==void 0?t[0]:null;this.$emit("update:modelValue",e),this.$emit("input",e)},focusPrevNextItem(t,e=!0){t=this.enabledItemsIndexes[this.enabledItemsIndexes.indexOf(t)+(e?1:-1)];const s=e?0:this.enabledItemsIndexes.length-1;t===void 0&&(t=this.enabledItemsIndexes[s]),this.$el.querySelector(`#${this.listId}_item-${t+1}`).focus()},cleanLi(t){const{_index:e,_value:s,_label:i,_selected:o,_focused:n,...r}=t;return r},refreshListItems(){const t=typeof this.items=="number"?Array(this.items).fill({}):this.items||[];this.listItems=t.map((e,s)=>({...e,_index:s,_value:e[this.itemValueKey]===void 0?e[this.itemLabelKey]||s:e[this.itemValueKey],_selected:e._selected||!1,_label:e[this.itemLabelKey]||"",_focused:!1}))},applySelectionOnItems(t){this.isMultipleSelect||this.listItems.forEach(s=>s._selected=!1);const e=this.checkSelection(t);this.listItems.forEach(s=>{s._selected=e.find(i=>s._value===i)!==void 0})}},created(){this.refreshListItems(),this.applySelectionOnItems(this.modelValue)},watch:{items(){this.refreshListItems(),this.applySelectionOnItems(this.modelValue)},modelValue(t){this.applySelectionOnItems(t)},multiple(t){if(!t){let e=null;this.listItems.forEach(s=>{s._selected&&!e?e=s:s._selected&&(s._selected=!1)}),this.emitSelection()}}}},h1=ne(p1,[["render",c1]]),Pr={props:{appendTo:{type:[String,Boolean,Object]},fixed:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},left:{type:Boolean},right:{type:Boolean},alignTop:{type:Boolean},alignBottom:{type:Boolean},alignLeft:{type:Boolean},alignRight:{type:Boolean},noPosition:{type:Boolean},zIndex:{type:[Number,String,Boolean]},activator:{type:[String,Object]}},inject:{detachableDefaultRoot:{default:null}},data:()=>({docEventListenersHandlers:[],openTimeout:null}),computed:{appendToTarget(){let t=".w-app";typeof this.detachableDefaultRoot=="function"&&(t=this.detachableDefaultRoot()||t);let e=this.appendTo||t;return e===!0?e=t:this.appendTo==="activator"?e=this.$el.previousElementSibling:e&&!["object","string"].includes(typeof e)?e=t:typeof e=="object"&&!e.nodeType&&(e=t,an(`Invalid node provided in ${this.$options.name} \`append-to\`. Falling back to .w-app.`)),typeof e=="string"&&(e=document.querySelector(e)),e||(an(`Unable to locate ${this.appendTo?`target ${this.appendTo}`:t}`),e=document.querySelector(t)),e},detachableParentEl(){return this.appendToTarget},hasSeparateActivator(){var t;if(this.$slots.activator)return!1;const e=typeof this.activator=="string",s=(((t=this.activator)==null?void 0:t.$el)||this.activator)instanceof HTMLElement;return e||s},activatorEl:{get(){var t;if(this.hasSeparateActivator){const e=((t=this.activator)==null?void 0:t.$el)||this.activator;return e instanceof HTMLElement?e:document.querySelector(this.activator)}return this.$el.nextElementSibling},set(){}},position(){return this.top&&"top"||this.bottom&&"bottom"||this.left&&"left"||this.right&&"right"||"bottom"},alignment(){return["top","bottom"].includes(this.position)&&this.alignLeft&&"left"||["top","bottom"].includes(this.position)&&this.alignRight&&"right"||["left","right"].includes(this.position)&&this.alignTop&&"top"||["left","right"].includes(this.position)&&this.alignBottom&&"bottom"||""},shouldShowOnClick(){return this.$options.props.showOnHover&&!this.showOnHover||this.$options.props.showOnClick&&this.showOnClick}},methods:{async open(t){this.delay&&await new Promise(e=>this.openTimeout=setTimeout(e,this.delay)),!(this.delay&&!this.openTimeout)&&(this.detachableVisible=!0,this.activator&&(this.activatorEl=t.target),await this.insertInDOM(),this.minWidth==="activator"&&(this.activatorWidth=this.activatorEl.offsetWidth),this.noPosition||this.computeDetachableCoords(),this.timeoutId=setTimeout(()=>{this.$emit("update:modelValue",!0),this.$emit("input",!0),this.$emit("open")},0),this.persistent||document.addEventListener("mousedown",this.onOutsideMousedown),this.noPosition||window.addEventListener("resize",this.onResize))},getActivatorCoordinates(){const{top:t,left:e,width:s,height:i}=this.activatorEl.getBoundingClientRect();let o={top:t,left:e,width:s,height:i};if(!this.fixed){const{top:n,left:r}=this.detachableParentEl.getBoundingClientRect(),d=window.getComputedStyle(this.detachableParentEl,null);o={...o,top:t-n+this.detachableParentEl.scrollTop-parseInt(d.getPropertyValue("border-top-width")),left:e-r+this.detachableParentEl.scrollLeft-parseInt(d.getPropertyValue("border-left-width"))}}return o},computeDetachableCoords(){let{top:t,left:e,width:s,height:i}=this.getActivatorCoordinates();if(!this.detachableEl)return;this.detachableEl.style.visibility="hidden",this.detachableEl.style.display="flex";const o=window.getComputedStyle(this.detachableEl,null);switch(this.position){case"top":{t-=this.detachableEl.offsetHeight,this.alignRight?e+=s-this.detachableEl.offsetWidth+parseInt(o.getPropertyValue("border-right-width")):this.alignLeft||(e+=(s-this.detachableEl.offsetWidth)/2);break}case"bottom":{t+=i,this.alignRight?e+=s-this.detachableEl.offsetWidth+parseInt(o.getPropertyValue("border-right-width")):this.alignLeft||(e+=(s-this.detachableEl.offsetWidth)/2);break}case"left":{e-=this.detachableEl.offsetWidth,this.alignBottom?t+=i-this.detachableEl.offsetHeight:this.alignTop||(t+=(i-this.detachableEl.offsetHeight)/2);break}case"right":{e+=s,this.alignBottom?t+=i-this.detachableEl.offsetHeight+parseInt(o.getPropertyValue("margin-top")):this.alignTop||(t+=(i-this.detachableEl.offsetHeight)/2+parseInt(o.getPropertyValue("margin-top")));break}}this.detachableEl.style.visibility=null,this.detachableVisible||(this.detachableEl.style.display="none"),this.detachableCoords={top:t,left:e}},onResize(){this.minWidth==="activator"&&(this.activatorWidth=this.activatorEl.offsetWidth),this.computeDetachableCoords()},onOutsideMousedown(t){!this.detachableEl.contains(t.target)&&!this.activatorEl.contains(t.target)&&(this.$emit("update:modelValue",this.detachableVisible=!1),this.$emit("input",!1),this.$emit("close"),document.removeEventListener("mousedown",this.onOutsideMousedown),window.removeEventListener("resize",this.onResize))},insertInDOM(){return new Promise(t=>{this.$nextTick(()=>{var e;this.detachableEl=((e=this.$refs.detachable)==null?void 0:e.$el)||this.$refs.detachable,this.detachableEl&&this.appendToTarget.appendChild(this.detachableEl),t()})})},removeFromDOM(){document.removeEventListener("mousedown",this.onOutsideMousedown),window.removeEventListener("resize",this.onResize),this.detachableEl&&this.detachableEl.parentNode&&(this.detachableVisible=!1,this.detachableEl.remove(),this.detachableEl=null)},bindActivatorEvents(){const t=typeof this.activator=="string";Object.entries(this.activatorEventHandlers).forEach(([e,s])=>{e=e.replace("mouseenter","mouseover").replace("mouseleave","mouseout");const i=o=>{var n;(t&&(n=o.target)!=null&&n.matches&&o.target.matches(this.activator)||o.target===this.activatorEl||this.activatorEl.contains(o.target))&&s(o)};document.addEventListener(e,i),this.docEventListenersHandlers.push({eventName:e,handler:i})})}},mounted(){var t;this.activator?this.bindActivatorEvents():this.$nextTick(()=>{this.activator&&this.bindActivatorEvents(),this.modelValue&&this.open({target:this.activatorEl})}),this.overlay&&(this.overlayEl=(t=this.$refs.overlay)==null?void 0:t.$el),this.modelValue&&this.activator?this.toggle({type:this.shouldShowOnClick?"click":"mouseenter",target:this.activatorEl}):this.modelValue&&this.open({target:this.activatorEl})},unmounted(){this.close(),this.removeFromDOM(),this.docEventListenersHandlers.length&&this.docEventListenersHandlers.forEach(({eventName:t,handler:e})=>{document.removeEventListener(t,e)})},watch:{modelValue(t){!!t!==this.detachableVisible&&(t?this.open({target:this.activatorEl}):this.close())},appendTo(){this.removeFromDOM(),this.insertInDOM()}}};function m1(t,e,s,i,o,n){const r=R("w-card"),d=R("w-overlay");return f(),y(H,null,[D(t.$slots,"activator",{on:n.activatorEventHandlers}),h(Oe,{name:n.transitionName,appear:""},{default:p(()=>[s.custom&&t.detachableVisible?(f(),y("div",ee({key:0,class:"w-menu",ref:"detachable"},t.$attrs,{onClick:e[0]||(e[0]=u=>s.hideOnMenuClick&&n.close(!0)),onMouseenter:e[1]||(e[1]=u=>s.showOnHover&&(t.hoveringMenu=!0)),onMouseleave:e[2]||(e[2]=u=>s.showOnHover&&(t.hoveringMenu=!1,n.close())),class:n.classes,style:n.styles}),[D(t.$slots,"default")],16)):t.detachableVisible?(f(),B(r,ee({key:1,class:"w-menu",ref:"detachable"},t.$attrs,{onClick:e[3]||(e[3]=u=>s.hideOnMenuClick&&n.close(!0)),onMouseenter:e[4]||(e[4]=u=>s.showOnHover&&(t.hoveringMenu=!0)),onMouseleave:e[5]||(e[5]=u=>s.showOnHover&&(t.hoveringMenu=!1,n.close())),tile:s.tile,"title-class":n.titleClasses,"content-class":n.contentClasses,shadow:s.shadow,"no-border":s.noBorder,class:n.classes,style:n.styles}),rs({default:p(()=>[D(t.$slots,"default")]),_:2},[t.$slots.title?{name:"title",fn:p(()=>[D(t.$slots,"title")]),key:"0"}:void 0,t.$slots.actions?{name:"actions",fn:p(()=>[D(t.$slots,"actions")]),key:"1"}:void 0]),1040,["tile","title-class","content-class","shadow","no-border","class","style"])):C("",!0)]),_:3},8,["name"]),s.overlay?(f(),B(d,ee({key:0,ref:"overlay","model-value":t.detachableVisible,persistent:s.persistent,class:n.overlayClasses},s.overlayProps,{"z-index":(t.zIndex||200)-1,"onUpdate:modelValue":e[6]||(e[6]=u=>t.detachableVisible=!1)}),null,16,["model-value","persistent","class","z-index"])):C("",!0)],64)}const f1={name:"w-menu",mixins:[Pr],inheritAttrs:!1,props:{modelValue:{},showOnHover:{type:Boolean},hideOnMenuClick:{type:Boolean},color:{type:String},bgColor:{type:String},shadow:{type:Boolean},custom:{type:Boolean},tile:{type:Boolean},round:{type:Boolean},noBorder:{type:Boolean},transition:{type:String},menuClass:{type:[String,Object,Array]},titleClass:{type:[String,Object,Array]},contentClass:{type:[String,Object,Array]},arrow:{type:Boolean},minWidth:{type:[Number,String]},maxWidth:{type:[Number,String]},overlay:{type:Boolean},overlayClass:{type:[String,Object,Array]},overlayProps:{type:Object},persistent:{type:Boolean},delay:{type:Number},dark:{type:Boolean},light:{type:Boolean}},provide(){return{detachableDefaultRoot:()=>{var t;return((t=this.$refs.detachable)==null?void 0:t.$el)||this.$refs.detachable||null}}},emits:["input","update:modelValue","open","close"],data:()=>({detachableVisible:!1,hoveringActivator:!1,hoveringMenu:!1,detachableCoords:{top:0,left:0},activatorWidth:0,detachableEl:null,timeoutId:null}),computed:{transitionName(){return this.transition||"scale-fade"},menuMinWidth(){return this.minWidth==="activator"?this.activatorWidth?`${this.activatorWidth}px`:0:isNaN(this.minWidth)?this.minWidth:this.minWidth?`${this.minWidth}px`:0},menuMaxWidth(){return this.maxWidth==="activator"?this.activatorWidth?`${this.activatorWidth}px`:0:isNaN(this.maxWidth)?this.maxWidth:this.maxWidth?`${this.maxWidth}px`:0},menuClasses(){return Ct(this.menuClass)},titleClasses(){return Ct(this.titleClass)},contentClasses(){return Ct(this.contentClass)},overlayClasses(){return{...Ct(this.overlayClass),"w-overlay--no-pointer-event":this.showOnHover}},classes(){return{[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,...this.menuClasses,[`w-menu--${this.position}`]:!this.noPosition,[`w-menu--align-${this.alignment}`]:!this.noPosition&&this.alignment,"w-menu--tile":this.tile,"w-menu--card":!this.custom,"w-menu--round":this.round,"w-menu--arrow":this.arrow,"w-menu--shadow":this.shadow,"w-menu--fixed":this.fixed,"w-menu--dark":this.dark,"w-menu--light":this.light}},styles(){return{zIndex:this.zIndex||this.zIndex===0||this.overlay&&!this.zIndex&&200||null,top:this.detachableCoords.top&&`${~~this.detachableCoords.top}px`||null,left:this.detachableCoords.left&&`${~~this.detachableCoords.left}px`||null,minWidth:this.minWidth&&this.menuMinWidth||null,maxWidth:this.maxWidth&&this.menuMaxWidth||null,"--w-menu-bg-color":this.arrow&&(this.$waveui.colors[this.bgColor]||"rgb(var(--w-base-bg-color-rgb))")}},activatorEventHandlers(){let t={};return this.showOnHover?(t={focus:this.toggle,blur:this.toggle,mouseenter:e=>{this.hoveringActivator=!0,this.open(e)},mouseleave:e=>{this.hoveringActivator=!1,setTimeout(()=>{this.hoveringMenu||this.close()},10)}},typeof window<"u"&&"ontouchstart"in window&&(t.click=this.toggle)):t={click:this.toggle},t}},methods:{toggle(t){let e=this.detachableVisible;typeof window<"u"&&"ontouchstart"in window&&this.showOnHover&&t.type==="click"||t.type==="click"&&!this.showOnHover?e=!e:t.type==="mouseenter"&&this.showOnHover?(this.hoveringActivator=!0,e=!0):t.type==="mouseleave"&&this.showOnHover&&(this.hoveringActivator=!1,e=!1),this.timeoutId=clearTimeout(this.timeoutId),e?this.open(t):this.close()},async close(t=!1){this.openTimeout=clearTimeout(this.openTimeout),this.detachableVisible&&(this.showOnHover&&!t&&(await new Promise(e=>setTimeout(e,10)),this.showOnHover&&(this.hoveringMenu||this.hoveringActivator))||(this.$emit("update:modelValue",this.detachableVisible=!1),this.$emit("input",!1),this.$emit("close"),document.removeEventListener("mousedown",this.onOutsideMousedown),window.removeEventListener("resize",this.onResize)))}}},g1=ne(f1,[["render",m1]]);function v1(t,e,s,i,o,n){const r=R("w-alert");return f(),B(Oe,{name:n.transitionName,appear:""},{default:p(()=>[o.show?(f(),y("div",{key:0,class:E(["w-notification",n.classes]),style:me(n.styles)},[h(r,ee(n.alertProps,{class:n.alertClasses,"onUpdate:modelValue":e[0]||(e[0]=d=>{t.$emit("update:modelValue",!1),t.$emit("input",!1)})}),{default:p(()=>[D(t.$slots,"default")]),_:3},16,["class"])],6)):C("",!0)]),_:3},8,["name"])}const y1={name:"w-notification",props:{modelValue:{default:!0},transition:{type:[String,Boolean],default:""},timeout:{type:[Number,String],default:0},absolute:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},left:{type:Boolean},right:{type:Boolean},zIndex:{type:[Number,String,Boolean]},success:{type:Boolean},info:{type:Boolean},warning:{type:Boolean},error:{type:Boolean},color:{type:String},bgColor:{type:String},shadow:{type:Boolean},tile:{type:Boolean},round:{type:Boolean},plain:{type:Boolean},noBorder:{type:Boolean},borderLeft:{type:Boolean},borderRight:{type:Boolean},borderTop:{type:Boolean},borderBottom:{type:Boolean},outline:{type:Boolean},dismiss:{type:Boolean},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","close"],data(){return{show:this.modelValue,timeoutId:null}},computed:{transitionName(){return this.transition===!1?"":this.transition?this.transition:`slide-${{top:"down",bottom:"up",left:"right",right:"left"}[this.position[this.position[1]==="center"?0:1]]}`},position(){let t=[];return!this.top&&!this.bottom&&!this.left&&!this.right?t=["top","right"]:t=[this.top&&"top"||this.bottom&&"bottom"||"top",this.left&&"left"||this.right&&"right"||"center"],t},hasType(){return!!(this.success||this.info||this.warning||this.error)},alertProps(){return{modelValue:this.show,success:this.success,info:this.info,warning:this.warning,error:this.error,color:this.color,bgColor:this.bgColor||!this.hasType&&"white"||"",shadow:this.shadow,tile:this.tile,round:this.round,plain:this.plain,noBorder:this.noBorder,borderLeft:this.borderLeft,borderRight:this.borderRight,borderTop:this.borderTop,borderBottom:this.borderBottom,outline:this.outline,dismiss:this.dismiss,xs:this.xs,sm:this.sm,md:this.md,lg:this.lg,xl:this.xl}},classes(){return{"w-notification--dark":this.dark,"w-notification--light":this.light,"w-notification--absolute":this.absolute,[`w-notification--${this.position.join(" w-notification--")}`]:!0}},alertClasses(){return this.bgColor||(this.success||this.info||this.warning||this.error)&&this.plain?null:"white--bg"},styles(){return{zIndex:this.zIndex||this.zIndex===0||null}},timeoutVal(){return parseInt(this.timeout)}},methods:{countdown(){this.timeoutId=setTimeout(()=>{this.$emit("update:modelValue",this.show=!1),this.$emit("input",!1),this.$emit("close")},this.timeoutVal)}},created(){this.modelValue&&this.timeoutVal&&this.countdown()},watch:{modelValue(t){clearTimeout(this.timeoutId),this.show=t,t&&this.timeoutVal&&this.countdown()}}},b1=ne(y1,[["render",v1]]);function w1(t,e,s,i,o,n){const r=en("focus");return f(),B(Oe,{name:"fade",appear:"",onAfterLeave:n.onClose},{default:p(()=>[s.modelValue?st((f(),y("div",{key:0,class:E(["w-overlay",n.classes]),ref:"overlay",style:me(s.modelValue&&n.styles||null),onKeydown:e[0]||(e[0]=vt(We((...d)=>n.onClick&&n.onClick(...d),["stop"]),["escape"])),onClick:e[1]||(e[1]=(...d)=>n.onClick&&n.onClick(...d)),tabindex:"0"},[D(t.$slots,"default")],38)),[[ol,t.showOverlay],[r]]):C("",!0)]),_:3},8,["onAfterLeave"])}const k1={name:"w-overlay",props:{modelValue:{},opacity:{type:[Number,String,Boolean]},bgColor:{type:String},absolute:{type:Boolean},zIndex:{type:[Number,String,Boolean]},persistent:{type:Boolean},persistentNoAnimation:{type:Boolean}},provide(){return{detachableDefaultRoot:()=>this.$refs.overlay||null}},emits:["input","update:modelValue","click","before-close","close"],data:()=>({persistentAnimate:!1,showOverlay:!1}),computed:{backgroundColor(){return this.bgColor||this.opacity&&`rgba(0, 0, 0, ${this.opacity})`||!1},classes(){return{"w-overlay--persistent-animate":this.persistentAnimate,"w-overlay--absolute":this.absolute}},styles(){return{backgroundColor:this.backgroundColor,zIndex:this.zIndex||this.zIndex===0?this.zIndex:!1}}},methods:{onClick(t){t.target.classList.contains("w-overlay")&&(this.persistent&&!this.persistentNoAnimation?(this.persistentAnimate=!0,setTimeout(()=>this.persistentAnimate=!1,150)):this.persistent||(this.showOverlay=!1,this.$emit("before-close")),this.$emit("click",t))},onClose(){this.$emit("update:modelValue",!1),this.$emit("input",!1),this.modelValue||this.$emit("close")}},created(){this.showOverlay=this.modelValue},watch:{modelValue(t){t&&(this.showOverlay=!0)}}},x1=ne(k1,[["render",w1]]),C1={class:"w-parallax"};function _1(t,e,s,i,o,n){return f(),y("div",C1)}const S1={name:"w-parallax",props:{},emits:[],data:()=>({})},D1=ne(S1,[["render",_1]]),E1=["viewBox"],T1=["cx","cy","r","stroke-dasharray","stroke-width"],V1=["cx","cy","r","stroke-width","stroke-linecap","stroke-dasharray"];function $1(t,e,s,i,o,n){return f(),y("div",{class:E(["w-progress",n.classes]),style:me(n.styles)},[s.circle?(f(),y("svg",{key:1,viewBox:`${n.circleCenter/2} ${n.circleCenter/2} ${n.circleCenter} ${n.circleCenter}`},[s.bgColor||this.progressValue>-1?(f(),y("circle",{key:0,class:E(["bg",s.bgColor||null]),cx:n.circleCenter,cy:n.circleCenter,r:t.circleRadius,fill:"transparent","stroke-dasharray":t.circleCircumference,"stroke-width":s.stroke},null,10,T1)):C("",!0),l("circle",{class:"w-progress__progress",cx:n.circleCenter,cy:n.circleCenter,r:t.circleRadius,fill:"transparent","stroke-width":s.stroke,"stroke-linecap":s.roundCap&&"round","stroke-dasharray":t.circleCircumference,style:me(`stroke-dashoffset: ${(1-n.progressValue/100)*t.circleCircumference}`)},null,12,V1)],8,E1)):(f(),y("div",{key:0,class:E(["w-progress__progress",{full:n.progressValue===100}]),style:me(`width: ${n.progressValue}%`)},null,6)),s.label||t.$slots.default?(f(),y("div",{key:2,class:E(["w-progress__label",s.labelColor||!1])},[D(t.$slots,"default",{},()=>[a(S(Math.round(n.progressValue))+S(s.circle?"":"%"),1)])],2)):C("",!0)],6)}const Un=40,I1=Un/2,M1=Math.round(Un*3.14*100)/100,A1={name:"w-progress",props:{modelValue:{type:[Number,String,Boolean],default:-1},label:{type:Boolean},roundCap:{type:Boolean},color:{type:String,default:"primary"},bgColor:{type:String},labelColor:{type:String},size:{type:[Number,String]},circle:{type:Boolean},stroke:{type:[Number,String],default:4},shadow:{type:Boolean},tile:{type:Boolean},round:{type:Boolean},outline:{type:Boolean},stripes:{type:Boolean},absolute:{type:Boolean},fixed:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},zIndex:{type:[Number,String,Boolean]}},emits:[],data:()=>({circleSize:Un,circleRadius:I1,circleCircumference:M1}),computed:{progressValue(){return parseFloat(this.modelValue)},circleCenter(){return Un+this.stroke},forcedSize(){return this.size&&(isNaN(this.size)?this.size:`${this.size}px`)},position(){return this.top&&"top"||this.bottom&&"bottom"||"top"},classes(){return{[`w-progress--${this.circle?"circular":"linear"}`]:!0,[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor&&!this.circle,[`w-progress--${this.position}`]:!this.circle&&(this.absolute||this.fixed),"w-progress--default-bg":!this.bgColor,"w-progress--indeterminate":this.modelValue===-1,"w-progress--outline":!this.circle&&this.outline,"w-progress--tile":!this.circle&&this.tile,"w-progress--stripes":!this.circle&&this.stripes,"w-progress--round":!this.circle&&this.round,"w-progress--shadow":this.shadow,"w-progress--absolute":!this.circle&&this.absolute,"w-progress--fixed":!this.circle&&!this.absolute&&this.fixed,[`w-progress--${this.roundCap?"round":"flat"}-cap`]:!0}},styles(){return{[this.circle?"width":"height"]:this.forcedSize||null}}}},B1=ne(A1,[["render",$1]]),O1=["id","name","checked","disabled","required","tabindex","aria-checked"],R1=["for"],L1=["for","innerHTML"],P1=["for"],N1=["for","innerHTML"];function W1(t,e,s,i,o,n){return f(),B(De(t.formRegister&&!n.wRadios?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:t.inputValue,disabled:t.isDisabled,readonly:t.isReadonly},{valid:t.valid,"onUpdate:valid":e[3]||(e[3]=r=>t.valid=r),onReset:e[4]||(e[4]=r=>{t.$emit("update:modelValue",t.inputValue=null),t.$emit("input",null)}),class:n.classes}),{default:p(()=>[l("input",{ref:"input",id:`w-radio--${t._.uid}`,type:"radio",name:t.inputName,checked:t.inputValue||null,disabled:t.isDisabled||t.isReadonly||null,required:t.required||null,tabindex:t.tabindex||null,onFocus:e[0]||(e[0]=r=>t.$emit("focus",r)),onChange:e[1]||(e[1]=r=>n.onInput(r)),"aria-checked":t.inputValue||"false",role:"radio"},null,40,O1),n.hasLabel&&s.labelOnLeft?(f(),y(H,{key:0},[t.$slots.default?(f(),y("label",{key:0,class:E(["w-radio__label w-form-el-shakable pr2",t.labelClasses]),for:`w-radio--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,R1)):s.label?(f(),y("label",{key:1,class:E(["w-radio__label w-form-el-shakable pr2",t.labelClasses]),for:`w-radio--${t._.uid}`,innerHTML:s.label},null,10,L1)):C("",!0)],64)):C("",!0),l("div",{class:E(["w-radio__input",this.color]),onClick:e[2]||(e[2]=r=>{t.$refs.input.focus(),t.$refs.input.click()})},null,2),n.hasLabel&&!s.labelOnLeft?(f(),y(H,{key:1},[t.$slots.default?(f(),y("label",{key:0,class:E(["w-radio__label w-form-el-shakable pl2",t.labelClasses]),for:`w-radio--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,P1)):s.label?(f(),y("label",{key:1,class:E(["w-radio__label w-form-el-shakable pl2",t.labelClasses]),for:`w-radio--${t._.uid}`,innerHTML:s.label},null,10,N1)):C("",!0)],64)):C("",!0)]),_:3},16,["valid","class"])}const H1={name:"w-radio",mixins:[Et],inject:{wRadios:{default:null}},props:{modelValue:{default:!1},returnValue:{},label:{type:String},labelOnLeft:{type:Boolean},color:{type:String,default:"primary"},labelColor:{type:String,default:"primary"},noRipple:{type:Boolean},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","focus"],data:()=>({inputValue:!1,ripple:{start:!1,end:!1,timeout:null}}),computed:{hasLabel(){return this.label||this.$slots.default},classes(){return{[`w-radio w-radio--${this.inputValue?"checked":"unchecked"}`]:!0,"w-radio--disabled":this.isDisabled,"w-radio--readonly":this.isReadonly,"w-radio--ripple":this.ripple.start,"w-radio--rippled":this.ripple.end,"w-radio--dark":this.ripple.dark,"w-radio--light":this.ripple.light}}},methods:{toggleFromOutside(){this.inputValue=this.returnValue!==void 0?this.returnValue===this.modelValue:this.modelValue},onInput(t){this.inputValue=t.target.checked;const e=this.inputValue&&this.returnValue!==void 0?this.returnValue:this.inputValue;this.$emit("update:modelValue",e),this.$emit("input",e),this.noRipple||(this.inputValue?(this.ripple.start=!0,this.ripple.timeout=setTimeout(()=>{this.ripple.start=!1,this.ripple.end=!0,setTimeout(()=>this.ripple.end=!1,100)},700)):(this.ripple.start=!1,clearTimeout(this.ripple.timeout)))}},created(){this.modelValue!==void 0&&this.toggleFromOutside()},watch:{modelValue(){this.toggleFromOutside()}}},j1=ne(H1,[["render",W1]]),z1=["innerHTML"];function F1(t,e,s,i,o,n){const r=R("w-radio");return f(),B(De(t.formRegister?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:t.inputValue,disabled:t.isDisabled},{valid:t.valid,"onUpdate:valid":e[1]||(e[1]=d=>t.valid=d),onReset:e[2]||(e[2]=d=>{t.$emit("update:modelValue",t.inputValue=null),t.$emit("input",null)}),column:!s.inline,wrap:s.inline,class:n.classes}),{default:p(()=>[(f(!0),y(H,null,ge(n.radioItems,(d,u)=>(f(),B(r,ee({key:u,"model-value":d.value===s.modelValue,"onUpdate:modelValue":c=>n.onInput(d),onFocus:e[0]||(e[0]=c=>t.$emit("focus",c)),name:t.inputName,ref_for:!0},{label:d.label,color:d.color,labelOnLeft:s.labelOnLeft,labelColor:s.labelColor},{disabled:t.isDisabled||null,readonly:t.isReadonly||null,class:{mt1:!s.inline&&u}}),{default:p(()=>[t.$slots[`item.${u+1}`]||t.$slots.item?D(t.$slots,t.$slots[`item.${u+1}`]?`item.${u+1}`:"item",{key:0,item:n.getOriginalItem(d),index:u+1,checked:d.value===s.modelValue,innerHTML:d.label}):d.label?(f(),y("div",{key:1,innerHTML:d.label},null,8,z1)):C("",!0)]),_:2},1040,["model-value","onUpdate:modelValue","name","disabled","readonly","class"]))),128))]),_:3},16,["valid","column","wrap","class"])}const Y1={name:"w-radios",mixins:[Et],props:{items:{type:Array,required:!0},modelValue:{type:[String,Number,Boolean]},labelOnLeft:{type:Boolean},itemLabelKey:{type:String,default:"label"},itemValueKey:{type:String,default:"value"},itemColorKey:{type:String,default:"color"},inline:{type:Boolean},color:{type:String,default:"primary"},labelColor:{type:String,default:"primary"}},emits:["input","update:modelValue","focus"],provide(){return{wRadios:!0}},data:()=>({inputValue:null}),computed:{radioItems(){return(this.items||[]).map((t,e)=>({...t,_index:e,label:t[this.itemLabelKey],value:t[this.itemValueKey]===void 0?t[this.itemLabelKey]||e:t[this.itemValueKey],color:t[this.itemColorKey]||this.color}))},classes(){return["w-radios",`w-radios--${this.inline?"inline":"column"}`]}},methods:{onInput(t){this.inputValue=!0,this.$emit("update:modelValue",t.value),this.$emit("input",t.value)},getOriginalItem(t){return this.items[t._index]}}},U1=ne(Y1,[["render",F1]]),K1=["id","name","value"],q1=["disabled","onMouseenter","onClick","tabindex"];function J1(t,e,s,i,o,n){return f(),B(De(t.formRegister?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:o.rating,disabled:t.isDisabled,readonly:t.isReadonly},{valid:t.valid,"onUpdate:valid":e[4]||(e[4]=r=>t.valid=r),onReset:e[5]||(e[5]=r=>{t.$emit("update:modelValue",o.rating=null),t.$emit("input",null)}),class:n.classes}),{default:p(()=>[l("input",{id:t.inputName,name:t.inputName,type:"hidden",value:o.rating},null,8,K1),(f(!0),y(H,null,ge(s.max,r=>(f(),y(H,{key:r},[t.$slots.item?D(t.$slots,"item",{key:0,index:r+1}):C("",!0),l("button",{class:E(["w-rating__button",n.buttonClasses(r)]),disabled:t.isDisabled||t.isReadonly,onMouseenter:d=>o.hover=r,onMouseleave:e[0]||(e[0]=d=>o.hover=0),onClick:d=>n.onButtonClick(r),onFocus:e[1]||(e[1]=(...d)=>n.onFocus&&n.onFocus(...d)),onBlur:e[2]||(e[2]=(...d)=>n.onBlur&&n.onBlur(...d)),onKeydown:e[3]||(e[3]=(...d)=>n.onKeydown&&n.onKeydown(...d)),type:"button",tabindex:r===1?0:-1},[r-1===~~o.rating&&o.rating-~~o.rating?(f(),y("i",{key:0,class:E(["w-icon",`${s.icon} ${s.color}`]),role:"icon","aria-hidden":"true",style:me(n.halfStarStyle)},null,6)):C("",!0)],42,q1)],64))),128))]),_:3},16,["valid","class"])}const G1={name:"w-rating",mixins:[Et],props:{modelValue:{},max:{type:[Number,String],default:5},color:{type:String,default:"primary"},bgColor:{type:String},icon:{type:String,default:"wi-star"},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean},noRipple:{type:Boolean},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","focus","blur"],data(){return{rating:parseFloat(this.modelValue||0),hover:0,hasFocus:0,ripple:{start:!1,end:!1,timeout:null}}},computed:{size(){return this.xs&&"xs"||this.sm&&"sm"||this.lg&&"lg"||this.xl&&"xl"||"md"},classes(){return{"w-rating":!0,"w-rating--dark":this.dark,"w-rating--light":this.light,"w-rating--focus":this.hasFocus,"w-rating--hover":this.hover,"w-rating--disabled":this.isDisabled,"w-rating--readonly":this.isReadonly,"w-rating--ripple":this.ripple.start,"w-rating--rippled":this.ripple.end}},halfStarStyle(){return{width:this.hover<=~~this.rating&&`${(this.rating-~~this.rating)*100}%`}}},methods:{onButtonClick(t){this.rating=t,this.$emit("update:modelValue",this.rating),this.$emit("input",this.rating),this.noRipple||(this.ripple.start=!0,this.ripple.timeout=setTimeout(()=>{this.ripple.start=!1,this.ripple.end=!0,setTimeout(()=>this.ripple.end=!1,100)},700))},onFocus(t){this.hasFocus=!0,this.$emit("focus",t)},onBlur(t){this.hasFocus=!1,this.$emit("blur",t)},onKeydown(t){if([37,38,39,40].includes(t.keyCode)){[39,40].includes(t.keyCode)?this.rating<=this.max-1&&this.rating++:this.rating>1&&this.rating--;const e=this.$el.querySelectorAll("button")[this.rating-1];e&&(e.focus(),e.click()),t.preventDefault()}},buttonClasses(t){const e=t-1===~~this.rating&&this.rating-~~this.rating,s=this.hover>=t||!e&&this.hover===0&&this.rating>=t;return{"w-rating__button--on":s,"w-rating__button--half":e,[this.icon]:!0,[`size--${this.size}`]:!0,[this.color]:s,[this.bgColor]:this.bgColor&&!s}}},watch:{value(t){this.rating=parseFloat(t)}}},X1=ne(G1,[["render",J1]]);function Q1(t,e,s,i,o,n){return f(),y(H,null,[l("div",ee({class:["w-scrollable",n.scrollableClasses],ref:"scrollable",onMouseenter:e[0]||(e[0]=(...r)=>n.onMouseEnter&&n.onMouseEnter(...r)),onMouseleave:e[1]||(e[1]=(...r)=>n.onMouseLeave&&n.onMouseLeave(...r)),onMousewheel:e[2]||(e[2]=(...r)=>n.onMouseWheel&&n.onMouseWheel(...r))},t.$attrs,{style:n.scrollableStyles}),[D(t.$slots,"default")],16),l("div",{class:E(["w-scrollbar",n.scrollbarClasses]),ref:"track",onMousedown:e[3]||(e[3]=(...r)=>n.onTrackMouseDown&&n.onTrackMouseDown(...r))},[l("div",{class:"w-scrollbar__thumb",ref:"thumb",style:me(n.thumbStyles)},null,4)],34)],64)}const Z1={h:{direction:"horizontal",topOrLeft:"left",size:"width",offsetSize:"offsetWidth",maxSize:"max-width",scrollSize:"scrollWidth",clientXorY:"clientX",deltaXorY:"deltaX",scrollTopOrLeft:"scrollLeft"},v:{direction:"vertical",topOrLeft:"top",size:"height",offsetSize:"offsetHeight",maxSize:"max-height",scrollSize:"scrollHeight",clientXorY:"clientY",deltaXorY:"deltaY",scrollTopOrLeft:"scrollTop"}},ew={name:"w-scrollable",props:{color:{type:String,default:"primary"},bgColor:{type:String},width:{type:[Number,String]},height:{type:[Number,String]}},emits:[],data:()=>({mounted:!1,scrollable:{top:null,left:null,hovered:!1},scrollValuePercent:0}),computed:{isHorizontal(){var t,e,s,i;return this.mounted?(console.log("💂‍♂️",(t=this.$refs.scrollable)==null?void 0:t.scrollWidth,(e=this.$refs.scrollable)==null?void 0:e.offsetWidth),this.width&&!this.height||((s=this.$refs.scrollable)==null?void 0:s.scrollWidth)>((i=this.$refs.scrollable)==null?void 0:i.offsetWidth)):!1},m(){return Z1[this.isHorizontal?"h":"v"]},scrollableClasses(){return{[`w-scrollable--${this.m.direction}`]:!0}},scrollbarClasses(){return{[`w-scrollbar--${this.m.direction}`]:!0}},thumbSizePercent(){var t;return this.mounted&&(this[this.m.size]??this.$refs.scrollable[[this.m.offsetSize]])*100/((t=this.$refs.scrollable)==null?void 0:t[this.m.scrollSize])||0},scrollableStyles(){return{[this.m.maxSize]:`${this[this.m.size]}px`}},thumbStyles(){let t=this.scrollValuePercent;return t=Math.max(0,Math.min(t,100-this.thumbSizePercent)),{[this.m.size]:`${this.thumbSizePercent}%`,[this.m.topOrLeft]:`${t}%`}}},methods:{onTrackMouseDown(t){if(this.isDisabled||this.isReadonly||"ontouchstart"in window&&t.type==="mousedown")return;const{top:e,left:s,width:i,height:o}=this.$refs.track.getBoundingClientRect();this.isHorizontal?(this.$refs.track.width=i,this.$refs.track.left=s):(this.$refs.track.height=o,this.$refs.track.top=e),this.dragging=!0,this.computeScroll(t.type==="touchstart"?t.touches[0][this.m.clientXorY]:t[this.m.clientXorY]),this.scroll(),document.addEventListener(t.type==="touchstart"?"touchmove":"mousemove",this.onDrag),document.addEventListener(t.type==="touchstart"?"touchend":"mouseup",this.onMouseUp,{once:!0})},onDrag(t){this.computeScroll(t.type==="touchmove"?t.touches[0][this.m.clientXorY]:t[this.m.clientXorY]),this.scroll()},onMouseUp(t){this.dragging=!1,document.removeEventListener(t.type==="touchend"?"touchmove":"mousemove",this.onDrag),this.$refs.thumb&&this.$refs.thumb.focus()},onMouseEnter(){this.scrollable.hovered=!0},onMouseLeave(){this.scrollable.hovered=!1},onResize(t){},onMouseWheel(t){this.scrollable.hovered&&(this.scrollValuePercent<=0&&t[this.m.deltaXorY]<0||this.scrollValuePercent>=100-this.thumbSizePercent&&t[this.m.deltaXorY]>0||(t.preventDefault(),this.scrollValuePercent+=t[this.m.deltaXorY]*.05,this.scrollValuePercent=Math.max(0,Math.min(this.scrollValuePercent,100)),this.scroll()))},computeScroll(t){const{top:e,left:s,width:i,height:o}=this.$refs.scrollable.getBoundingClientRect(),n=this.isHorizontal?s:e,r=this.isHorizontal?i:o;this.scrollValuePercent=Math.max(0,Math.min((t-n)/r*100,100))},scroll(){var t;this.$refs.scrollable[this.m.scrollTopOrLeft]=this.scrollValuePercent*((t=this.$refs.scrollable)==null?void 0:t[this.m.scrollSize])/100,this.updateThumbPosition()},updateThumbPosition(){this.$refs.thumb.style[this.m.topOrLeft]=this.scrollValuePercent}},mounted(){this.mounted=!0;const{top:t,left:e}=this.$refs.scrollable.getBoundingClientRect();this.scrollable.top=t,this.scrollable.left=e,this.$el.parentNode.style.position="relative",this.$el.parentNode.style.padding=0,window.addEventListener("resize",this.onResize)}},tw=ne(ew,[["render",Q1]]),sw=["aria-expanded","aria-owns","aria-activedescendant"],nw={key:0,class:"w-select__selection-slot"},lw=["innerHTML"],iw=["value","name"];function aw(t,e,s,i,o,n){const r=R("w-icon"),d=R("w-list"),u=R("w-menu");return f(),B(De(t.formRegister?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:n.selectionString,disabled:t.isDisabled,readonly:t.isReadonly,isFocused:t.isFocused},{valid:t.valid,"onUpdate:valid":e[12]||(e[12]=c=>t.valid=c),onReset:n.onReset,wrap:n.hasLabel&&s.labelPosition!=="inside",class:n.classes}),{default:p(()=>[s.labelPosition==="left"?(f(),y(H,{key:0},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-select__label w-select__label--left w-form-el-shakable",t.labelClasses]),onClick:e[0]||(e[0]=c=>t.$refs["selection-input"].click())},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],2)):C("",!0)],64)):C("",!0),h(u,ee({modelValue:t.showMenu,"onUpdate:modelValue":e[10]||(e[10]=c=>t.showMenu=c),onClose:n.closeMenu,"menu-class":`w-select__menu ${s.menuClass||""}`,transition:"slide-fade-down","append-to":(s.menuProps||{}).appendTo!==void 0?(s.menuProps||{}).appendTo:void 0,"align-left":"",custom:"","min-width":"activator"},s.menuProps||{}),{activator:p(()=>[l("div",{class:E(["w-select__selection-wrap",n.inputWrapClasses]),onClick:e[6]||(e[6]=c=>!t.isDisabled&&!t.isReadonly&&n.onInputFieldClick()),role:"button","aria-haspopup":"listbox","aria-expanded":t.showMenu?"true":"false","aria-owns":`w-select-menu--${t._.uid}`,"aria-activedescendant":`w-select-menu--${t._.uid}_item-1`},[D(t.$slots,"icon-left",{},()=>[s.innerIconLeft?(f(),B(r,{key:0,class:"w-select__icon w-select__icon--inner-left",tag:"label",onClick:e[1]||(e[1]=c=>t.$emit("click:inner-icon-left",c))},{default:p(()=>[a(S(s.innerIconLeft),1)]),_:1})):C("",!0)]),t.$slots.selection?(f(),y("div",nw,[D(t.$slots,"selection",{item:s.multiple?t.inputValue:t.inputValue[0]})])):C("",!0),l("div",ee({class:"w-select__selection",ref:"selection-input",onFocus:e[2]||(e[2]=c=>!t.isDisabled&&!t.isReadonly&&n.onFocus(c)),onBlur:e[3]||(e[3]=(...c)=>n.onBlur&&n.onBlur(...c)),onKeydown:e[4]||(e[4]=c=>!t.isDisabled&&!t.isReadonly&&n.onKeydown(c))},n.selectionAttributes,{innerHTML:n.selectionHtml}),null,16,lw),(f(!0),y(H,null,ge(t.inputValue.length?t.inputValue:[{}],(c,m)=>(f(),y("input",{key:m,type:"hidden",value:c.value===void 0?"":c.value.toString(),name:t.inputName+(s.multiple?"[]":"")},null,8,iw))),128)),s.labelPosition==="inside"&&n.showLabelInside?(f(),y(H,{key:1},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-select__label w-select__label--inside w-form-el-shakable",t.labelClasses])},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],2)):C("",!0)],64)):C("",!0),D(t.$slots,"icon-right",{},()=>[s.innerIconRight?(f(),B(r,{key:0,class:"w-select__icon w-select__icon--inner-right",tag:"label",onClick:e[5]||(e[5]=c=>t.$emit("click:inner-icon-right",c))},{default:p(()=>[a(S(s.innerIconRight),1)]),_:1})):C("",!0)])],10,sw)]),default:p(()=>[h(d,{ref:"w-list","model-value":t.inputValue,"onUpdate:modelValue":n.onInput,onItemClick:e[7]||(e[7]=c=>t.$emit("item-click",c)),onItemSelect:n.onListItemSelect,onKeydown:n.onWListKeydown,"onKeydown:enter":e[8]||(e[8]=c=>s.noUnselect&&!s.multiple&&n.closeMenu()),"onKeydown:escape":e[9]||(e[9]=c=>t.showMenu&&(t.showMenu=!1)),items:n.selectItems,multiple:s.multiple,"arrows-navigation":"","return-object":"","add-ids":`w-select-menu--${t._.uid}`,"no-unselect":s.noUnselect,"selection-color":s.selectionColor,"item-color-key":s.itemColorKey,role:"listbox",tabindex:"-1"},rs({_:2},[ge(s.items.length,c=>({name:`item.${c}`,fn:p(({item:m,selected:g,index:v})=>[t.$slots[`item.${c}`]&&t.$slots[`item.${c}`](m,g,v)?D(t.$slots,`item.${c}`,{key:0,item:m,selected:g,index:v},()=>[a(S(m[s.itemLabelKey]),1)]):D(t.$slots,"item",{key:1,item:m,selected:g,index:v},()=>[a(S(m[s.itemLabelKey]),1)])])}))]),1032,["model-value","onUpdate:modelValue","onItemSelect","onKeydown","items","multiple","add-ids","no-unselect","selection-color","item-color-key"])]),_:3},16,["modelValue","onClose","menu-class","append-to"]),s.labelPosition==="right"?(f(),y(H,{key:1},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-select__label w-select__label--right w-form-el-shakable",t.labelClasses]),onClick:e[11]||(e[11]=c=>t.$refs["selection-input"].click())},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],2)):C("",!0)],64)):C("",!0)]),_:3},16,["valid","onReset","wrap","class"])}const ow={name:"w-select",mixins:[Et],props:{items:{type:Array,required:!0},modelValue:{},multiple:{type:Boolean},placeholder:{type:String},label:{type:String},labelPosition:{type:String,default:"inside"},innerIconLeft:{type:String},innerIconRight:{type:String,default:"wi-triangle-down"},staticLabel:{type:Boolean},itemLabelKey:{type:String,default:"label"},itemColorKey:{type:String,default:"color"},itemValueKey:{type:String,default:"value"},itemClass:{type:String},menuClass:{type:String},color:{type:String,default:"primary"},bgColor:{type:String},labelColor:{type:String,default:"primary"},selectionColor:{type:String,default:"primary"},outline:{type:Boolean},round:{type:Boolean},shadow:{type:Boolean},tile:{type:Boolean},returnObject:{type:Boolean},noUnselect:{type:Boolean},menuProps:{type:Object},dark:{type:Boolean},light:{type:Boolean},fitToContent:{type:Boolean}},emits:["input","update:modelValue","focus","blur","item-click","item-select","click:inner-icon-left","click:inner-icon-right"],data:()=>({inputValue:[],showMenu:!1,menuMinWidth:0,isFocused:!1,selectionWrapRef:void 0,quickLookup:{string:"",timeout:null}}),computed:{selectItems(){return this.items.map((t,e)=>{const s={...t};return s.value=s[this.itemValueKey]===void 0?s[this.itemLabelKey]||e:s[this.itemValueKey],s.index=e,s})},hasLabel(){return this.label||this.$slots.default},showLabelInside(){return!this.staticLabel||!this.inputValue.length&&!this.placeholder},selectionAttributes(){return{class:{"w-select__selection--placeholder":!this.$slots.selection&&!this.selectionString&&this.placeholder},disabled:this.isDisabled||null,readonly:!0,ariareadonly:"true",tabindex:this.tabindex??null,contenteditable:this.isDisabled||this.isReadonly?"false":"true"}},selectionString(){return this.inputValue.map(t=>t[this.itemValueKey]!==void 0?t[this.itemLabelKey]:t[this.itemLabelKey]??t).join(", ")},selectionHtml(){return this.inputValue.length?this.$slots.selection?"":this.selectionString:this.placeholder||""},classes(){return{"w-select":!0,"w-select--dark":this.dark,"w-select--light":this.light,"w-select--disabled":this.isDisabled,"w-select--fit-to-content":this.fitToContent,"w-select--readonly":this.isReadonly,[`w-select--${this.inputValue.length?"filled":"empty"}`]:!0,"w-select--focused":(this.isFocused||this.showMenu)&&!this.isReadonly,"w-select--floating-label":this.hasLabel&&this.labelPosition==="inside"&&!this.staticLabel,"w-select--no-padding":!this.outline&&!this.bgColor&&!this.shadow&&!this.round,"w-select--has-placeholder":this.placeholder,"w-select--inner-icon-left":this.innerIconLeft,"w-select--inner-icon-right":this.innerIconRight,"w-select--open":this.showMenu}},inputWrapClasses(){return{[this.valid===!1?"error":this.color]:this.color||this.valid===!1,[`${this.bgColor}--bg`]:this.bgColor,"w-select__selection-wrap--round":this.round,"w-select__selection-wrap--tile":this.tile,"w-select__selection-wrap--box":this.outline||this.bgColor||this.shadow,"w-select__selection-wrap--underline":!this.outline,"w-select__selection-wrap--shadow":this.shadow,"w-select__selection-wrap--no-padding":!this.outline&&!this.bgColor&&!this.shadow&&!this.round}}},methods:{onFocus(t){if(!this.isFocused)return this.isFocused=!0,this.$emit("focus",t),!1},onBlur(t){this.showMenu||(this.isFocused=!1,this.$emit("blur",t))},onKeydown(t){if(!t.metaKey&&!t.ctrlKey&&t.keyCode!==9&&t.preventDefault(),t.keyCode===27&&this.showMenu)this.closeMenu();else if([13,32].includes(t.keyCode))this.openMenu();else if([38,40].includes(t.keyCode))if(this.multiple)this.openMenu();else{let{index:e}=this.inputValue[0]||{};const s=this.selectItems;if(e===void 0)e=t.keyCode===38?s.length-1:0;else{const o=t.keyCode===38?-1:1;e=(e+s.length+o)%s.length}let i=!1;if(s[e].disabled){const o=t.keyCode===38?-1:1;let n=(e+o+s.length)%s.length;const r=s.length;let d=0;for(;d=r&&(i=!0),e=n}i||this.onInput(s[e])}else t.key.length===1&&this.focusItemOnQuickLookup(t)},onWListKeydown(t){t.key.length===1&&this.focusItemOnQuickLookup(t)},focusItemOnQuickLookup(t){var e,s,i;this.quickLookup.timeout&&clearTimeout(this.quickLookup.timeout),this.quickLookup.timeout=setTimeout(()=>this.quickLookup.string="",1e3),this.quickLookup.string+=t.key;const o=new RegExp(`^${this.quickLookup.string}`,"i"),n=this.selectItems.findIndex(r=>!r.disabled&&r[this.itemLabelKey].match(o))+1;if(n){const r=`.w-list__item:nth-child(${n}) .w-list__item-label`;(i=(s=(e=this.$refs["w-list"])==null?void 0:e.$el)==null?void 0:s.querySelector(r))==null||i.focus()}},onInput(t){this.inputValue=t===null?[]:this.multiple?t:[t],t=this.inputValue.map(s=>this.returnObject?this.items[s.index]:s.value);const e=this.multiple?t:t[0];this.$emit("update:modelValue",e),this.$emit("input",e)},onInputFieldClick(){this.showMenu?this.showMenu=!1:this.openMenu()},onListItemSelect(t){this.$emit("item-select",t),this.multiple||(this.showMenu=!1)},onReset(){this.inputValue=[];const t=this.multiple?[]:null;this.$emit("update:modelValue",t),this.$emit("input",t)},checkSelection(t){t=Array.isArray(t)?t:t!==void 0?[t]:[];const e=this.selectItems.map(s=>s.value);return t.map(s=>{let i=s;return s&&typeof s=="object"&&(i=s[this.itemValueKey]??s[this.itemLabelKey]??s),this.selectItems[e.indexOf(i)]}).filter(s=>s!==void 0)},openMenu(){this.showMenu=!0,setTimeout(()=>{var t;const e=this.inputValue.length?this.inputValue[0].index:0;(t=this.$refs["w-list"].$el.querySelector(`#w-select-menu--${this._.uid}_item-${e+1}`))==null||t.focus()},100)},closeMenu(){var t;((t=this.menuProps)==null?void 0:t.hideOnMenuClick)!==!1&&(this.showMenu=!1,setTimeout(()=>{var e;return(e=this.$refs["selection-input"])==null?void 0:e.focus()},50))}},created(){this.inputValue=this.checkSelection(this.modelValue)},watch:{modelValue(t){t!==this.inputValue&&(this.inputValue=this.checkSelection(t))},items(){this.inputValue=this.checkSelection(this.modelValue)}}},rw=ne(ow,[["render",aw]]),dw=["for"],uw=["for","innerHTML"],cw={class:"w-slider__track-wrap"},pw=["aria-valuemin","aria-valuemax","aria-valuenow","aria-readonly"],hw=["id","name","model-value","disabled","readonly","aria-readonly","tabindex"],mw=["for"],fw={key:0},gw={key:0,class:"w-slider__step-labels"},vw=["onClick"],yw=["for"],bw=["for","innerHTML"];function ww(t,e,s,i,o,n){return f(),B(De(t.formRegister?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:t.rangeValueScaled,disabled:t.isDisabled,readonly:t.isReadonly},{valid:t.valid,"onUpdate:valid":e[8]||(e[8]=r=>t.valid=r),onReset:e[9]||(e[9]=r=>{t.rangeValuePercent=0,n.updateRangeValueScaled()}),wrap:t.formRegister||null,class:n.wrapperClasses}),{default:p(()=>[t.$slots["label-left"]?(f(),y("label",{key:0,class:E(["w-slider__label w-slider__label--left w-form-el-shakable",t.labelClasses]),for:`button--${t._.uid}`},[D(t.$slots,"label-left")],10,dw)):s.labelLeft?(f(),y("label",{key:1,class:E(["w-slider__label w-slider__label--left w-form-el-shakable",t.labelClasses]),for:`button--${t._.uid}`,innerHTML:s.labelLeft},null,10,uw)):C("",!0),l("div",cw,[l("div",{class:E(["w-slider__track",n.trackClasses]),ref:"track",onMousedown:e[4]||(e[4]=(...r)=>n.onTrackMouseDown&&n.onTrackMouseDown(...r)),onTouchstart:e[5]||(e[5]=(...r)=>n.onTrackMouseDown&&n.onTrackMouseDown(...r)),role:"slider","aria-label":"Slider","aria-valuemin":n.minVal,"aria-valuemax":n.maxVal,"aria-valuenow":t.rangeValueScaled,"aria-readonly":t.isReadonly?"true":"false","aria-orientation":"horizontal"},[l("div",{class:E(["w-slider__range",n.rangeClasses]),style:me(n.rangeStyles)},null,6),l("div",{class:"w-slider__thumb",style:me(n.thumbStyles)},[l("button",{class:E(["w-slider__thumb-button",[s.color]]),ref:"thumb",id:`button--${t._.uid}`,name:t.inputName,"model-value":t.rangeValueScaled,disabled:t.isDisabled||null,readonly:t.isReadonly||null,"aria-readonly":t.isReadonly?"true":"false",tabindex:t.isDisabled||t.isReadonly?-1:null,onKeydown:[e[0]||(e[0]=vt(r=>n.onKeyDown(r,-1),["left"])),e[1]||(e[1]=vt(r=>n.onKeyDown(r,1),["right"]))],onFocus:e[2]||(e[2]=r=>t.$emit("focus",r)),onClick:e[3]||(e[3]=We(()=>{},["prevent"]))},null,42,hw),s.thumbLabel?(f(),y("label",{key:0,class:E(["w-slider__thumb-label",n.thumbClasses]),for:`button--${t._.uid}`},[s.thumbLabel==="droplet"?(f(),y("div",fw,[D(t.$slots,"label",{value:t.rangeValueScaled},()=>[a(S(~~t.rangeValueScaled),1)])])):D(t.$slots,"label",{key:1,value:t.rangeValueScaled},()=>[a(S(~~t.rangeValueScaled),1)])],10,mw)):C("",!0)],4)],42,pw),s.stepLabels&&s.step?(f(),y("div",gw,[l("div",{class:"w-slider__step-label",onClick:e[6]||(e[6]=r=>n.onStepLabelClick(0))},S(this.minVal),1),(f(!0),y(H,null,ge(~~n.numberOfSteps,r=>(f(),y("div",{class:"w-slider__step-label",key:r,onClick:d=>n.onStepLabelClick(r*(100/n.numberOfSteps)),style:me(`left: ${r*(100/n.numberOfSteps)}%`)},S(n.percentToScaled(r*(100/n.numberOfSteps))),13,vw))),128)),~~n.numberOfSteps!==n.numberOfSteps?(f(),y("div",{key:0,class:"w-slider__step-label",onClick:e[7]||(e[7]=r=>n.onStepLabelClick(100)),style:{left:"100%"}},S(this.maxVal),1)):C("",!0)])):C("",!0)]),t.$slots["label-right"]?(f(),y("label",{key:2,class:E(["w-slider__label w-slider__label--right w-form-el-shakable",t.labelClasses]),for:`button--${t._.uid}`},[D(t.$slots,"label-right")],10,yw)):s.labelRight?(f(),y("label",{key:3,class:E(["w-slider__label w-slider__label--right w-form-el-shakable",t.labelClasses]),for:`button--${t._.uid}`,innerHTML:s.labelRight},null,10,bw)):C("",!0)]),_:3},16,["valid","wrap","class"])}const kw={name:"w-slider",mixins:[Et],props:{modelValue:{type:Number,default:0},color:{type:String,default:"primary"},bgColor:{type:String},labelColor:{type:String,default:"primary"},stepLabels:{type:[Boolean,Array]},thumbLabel:{type:[Boolean,String]},thumbLabelClass:{type:String},trackClass:{type:String},rangeClass:{type:String},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String]},labelLeft:{type:String},labelRight:{type:String},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","focus"],data:()=>({track:{el:null,left:0,width:0},dragging:!1,rangeValuePercent:0,rangeValueScaled:0}),computed:{minVal(){return parseFloat(this.min)},maxVal(){return parseFloat(this.max)},stepValPercent(){return Math.min(parseFloat(this.step),this.scaledRange)/this.scaledRange*100},scaledRange(){return this.maxVal-this.minVal},numberOfSteps(){return 100/this.stepValPercent},rangeStyles(){return{width:`${this.rangeValuePercent}%`}},thumbStyles(){return{left:`${this.rangeValuePercent}%`}},rangeClasses(){return{[`${this.color}--bg`]:this.color,[this.rangeClass]:this.rangeClass||null}},trackClasses(){return{[`${this.bgColor}--bg`]:this.bgColor,[this.trackClass]:this.trackClass||null}},thumbClasses(){return{[this.thumbLabelClass]:this.thumbLabelClass||null,"w-slider__thumb-label--droplet":this.thumbLabel==="droplet"}},wrapperClasses(){return{"w-slider":!0,"w-slider--dark":this.dark,"w-slider--light":this.light,"w-slider--dragging":this.dragging,"w-slider--disabled":this.isDisabled,"w-slider--readonly":this.isReadonly,"w-slider--has-step-labels":this.step&&this.stepLabels}}},methods:{scaledToPercent(t){return Math.max(0,Math.min((t-this.minVal)/this.scaledRange*100,100))},percentToScaled(t){return Math.round((t/100*this.scaledRange+this.minVal)*100)/100},onTrackMouseDown(t){if(this.isDisabled||this.isReadonly||"ontouchstart"in window&&t.type==="mousedown")return;const{left:e,width:s}=this.track.el.getBoundingClientRect();this.track.width=s,this.track.left=e,this.dragging=!0,this.updateRange(t.type==="touchstart"?t.touches[0].clientX:t.clientX),document.addEventListener(t.type==="touchstart"?"touchmove":"mousemove",this.onDrag),document.addEventListener(t.type==="touchstart"?"touchend":"mouseup",this.onMouseUp,{once:!0})},onDrag(t){this.updateRange(t.type==="touchmove"?t.touches[0].clientX:t.clientX)},onMouseUp(t){this.dragging=!1,document.removeEventListener(t.type==="touchend"?"touchmove":"mousemove",this.onDrag),this.$refs.thumb&&this.$refs.thumb.focus()},onStepLabelClick(t){this.rangeValuePercent=t,this.updateRangeValueScaled()},onKeyDown(t,e){this.isDisabled||this.isReadonly||(this.rangeValuePercent+=e*(t.shiftKey?5:1)*(this.stepValPercent||1),this.rangeValuePercent=Math.max(0,Math.min(this.rangeValuePercent,100)),this.updateRangeValueScaled())},updateRange(t){if(this.rangeValuePercent=Math.max(0,Math.min((t-this.track.left)/this.track.width*100,100)),this.step){const e=this.rangeValuePercent+this.stepValPercent/2;this.rangeValuePercent=e-e%this.stepValPercent}this.updateRangeValueScaled()},updateRangeValueScaled(){this.rangeValueScaled=this.percentToScaled(this.rangeValuePercent),this.$emit("update:modelValue",this.rangeValueScaled),this.$emit("input",this.rangeValueScaled)}},beforeMount(){this.$nextTick(()=>{this.track.el=this.$refs.track,this.rangeValueScaled=this.modelValue,this.rangeValuePercent=this.scaledToPercent(this.modelValue)})},watch:{modelValue(t){this.rangeValueScaled!==t&&(this.rangeValueScaled=t,this.rangeValuePercent=this.scaledToPercent(t))}}},xw=ne(kw,[["render",ww]]),Cw={key:0};function _w(t,e,s,i,o,n){return s.modelValue||s.modelValue===void 0?(f(),y("div",{key:0,class:E(["w-spinner",n.classes]),style:me(n.styles)},[n.isThreeDots?(f(),y("span",Cw)):C("",!0)],6)):C("",!0)}const Sw={name:"w-spinner",props:{modelValue:{},color:{type:String,default:"primary"},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean},size:{type:[Number,String]},bounce:{type:Boolean},fade:{type:Boolean}},emits:[],computed:{isThreeDots(){return!this.bounce&&!this.fade},forcedSize(){return this.size&&(isNaN(this.size)?this.size:`${this.size}px`)},presetSize(){return this.xs&&"xs"||this.sm&&"sm"||this.md&&"md"||this.lg&&"lg"||this.xl&&"xl"||null},styles(){return this.forcedSize&&`font-size: ${this.forcedSize}`||null},classes(){return{[this.color]:this.color,[`size--${this.presetSize}`]:this.presetSize&&!this.forcedSize,"w-spinner--bounce":this.bounce,"w-spinner--fade":this.fade,"w-spinner--three-dots":this.isThreeDots}}}},Dw=ne(Sw,[["render",_w]]);function Ew(t,e,s,i,o,n){return f(),y("div",{class:E(["w-steps",n.classes])},null,2)}const Tw={name:"w-steps",props:{dark:{type:Boolean},light:{type:Boolean}},emits:[],data:()=>({}),computed:{classes(){return{"w-steps--dark":this.dark,"w-steps--light":this.light}}}},Vw=ne(Tw,[["render",Ew]]),$w=["id","name","checked","disabled","readonly","aria-readonly","required","tabindex","aria-checked"],Iw=["for"],Mw={key:0,class:"w-switch__track"},Aw={key:1,class:"w-switch__thumb"},Bw=["for"];function Ow(t,e,s,i,o,n){const r=R("w-progress");return f(),B(De(t.formRegister?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:o.isOn,disabled:t.isDisabled,readonly:t.isReadonly},{valid:t.valid,"onUpdate:valid":e[3]||(e[3]=d=>t.valid=d),onReset:e[4]||(e[4]=d=>{t.$emit("update:modelValue",o.isOn=null),t.$emit("input",null)}),class:n.classes,style:t.$attrs.style}),{default:p(()=>[l("input",ee({ref:"input",id:`w-switch--${t._.uid}`,type:"checkbox",name:t.inputName,checked:o.isOn,disabled:t.isDisabled||t.isReadonly||null,readonly:t.isReadonly||null,"aria-readonly":t.isReadonly?"true":"false",required:t.required||null,tabindex:t.tabindex||null},n.attrs,{onChange:e[0]||(e[0]=d=>n.onInput()),onFocus:e[1]||(e[1]=d=>t.$emit("focus",d)),"aria-checked":o.isOn||"false",role:"switch"}),null,16,$w),n.hasLabel&&s.labelOnLeft?(f(),y(H,{key:0},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-switch__label w-switch__label--left w-form-el-shakable",t.labelClasses]),for:`w-switch--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,Iw)):C("",!0)],64)):C("",!0),l("div",{class:E(["w-switch__input",n.inputClasses]),onClick:e[2]||(e[2]=d=>{t.$refs.input.focus(),t.$refs.input.click()})},[t.$slots.track?(f(),y("div",Mw,[D(t.$slots,"track")])):C("",!0),t.$slots.thumb||s.loading?(f(),y("div",Aw,[s.loading?(f(),B(r,ee({key:0,circle:"",color:"inherit"},typeof s.loading=="number"&&{"model-value":s.loading}),null,16)):D(t.$slots,"thumb",{key:1})])):C("",!0)],2),n.hasLabel&&!s.labelOnLeft?(f(),y(H,{key:1},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-switch__label w-switch__label--right w-form-el-shakable",t.labelClasses]),for:`w-switch--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,Bw)):C("",!0)],64)):C("",!0)]),_:3},16,["valid","class","style"])}const Rw={name:"w-switch",mixins:[Et],inheritAttrs:!1,props:{modelValue:{default:!1},label:{type:String,default:""},labelOnLeft:{type:Boolean},color:{type:String,default:"primary"},labelColor:{type:String,default:"primary"},thin:{type:Boolean},noRipple:{type:Boolean},loading:{type:[Boolean,Number],default:!1},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","focus"],data(){return{isOn:this.modelValue,ripple:{start:!1,end:!1,timeout:null}}},computed:{attrs(){const{class:t,style:e,...s}=this.$attrs;return s},hasLabel(){return this.label||this.$slots.default},classes(){return{[`w-switch w-switch--${this.isOn?"on":"off"}`]:!0,"w-switch--thin":this.thin,"w-switch--disabled":this.isDisabled,"w-switch--readonly":this.isReadonly,"w-switch--ripple":this.ripple.start,"w-switch--custom-thumb":this.$slots.thumb,"w-switch--custom-track":this.$slots.track,"w-switch--loading":this.loading,"w-switch--rippled":this.ripple.end,"w-switch--dark":this.dark,"w-switch--light":this.light,[this.$attrs.class]:!!this.$attrs.class}},inputClasses(){const t=this.hasLabel&&this.labelOnLeft?"l":"r";return[this.color,this.hasLabel?this.thin?`m${t}3`:`m${t}2`:""]}},methods:{onInput(){this.isOn=!this.isOn,this.$emit("update:modelValue",this.isOn),this.$emit("input",this.isOn),this.noRipple||(this.isOn?(this.ripple.start=!0,this.ripple.timeout=setTimeout(()=>{this.ripple.start=!1,this.ripple.end=!0,setTimeout(()=>this.ripple.end=!1,100)},700)):(this.ripple.start=!1,clearTimeout(this.ripple.timeout)))}},watch:{modelValue(t){this.isOn=t}}},Lw=ne(Rw,[["render",Ow]]),Pw={class:"w-tabs__content"};function Nw(t,e,s,i,o,n){return f(),y("div",Pw,[D(t.$slots,"default",{item:s.item})])}const Ww={name:"tab-content",props:{item:Object}},Hw=ne(Ww,[["render",Nw]]),jw=["onClick","onFocus","tabindex","onKeypress","aria-selected"],zw=["innerHTML"],Fw={key:0,class:"w-tabs__bar-extra"},Yw={key:0,class:"w-tabs__content-wrap"},Uw=["innerHTML"],Kw=["innerHTML"];function qw(t,e,s,i,o,n){const r=R("tab-content");return f(),y("div",{class:E(["w-tabs",n.tabsClasses])},[l("div",{class:E(["w-tabs__bar",n.tabsBarClasses]),ref:"tabs-bar"},[(f(!0),y(H,null,ge(t.tabs,(d,u)=>(f(),y("div",{class:E(["w-tabs__bar-item",n.barItemClasses(d)]),key:u,onClick:c=>!d._disabled&&d._uid!==t.activeTabUid&&n.openTab(d._uid),onFocus:c=>t.$emit("focus",n.getOriginalItem(d)),tabindex:!d._disabled&&0,onKeypress:vt(c=>!d._disabled&&n.openTab(d._uid),["enter"]),"aria-selected":d._uid===t.activeTabUid?"true":"false",role:"tab"},[t.$slots[`item-title.${d.id||u+1}`]?D(t.$slots,`item-title.${d.id||u+1}`,{key:0,item:n.getOriginalItem(d),index:u+1,active:d._uid===t.activeTabUid}):D(t.$slots,"item-title",{key:1,item:n.getOriginalItem(d),index:u+1,active:d._uid===t.activeTabUid},()=>[l("div",{innerHTML:d[s.itemTitleKey]},null,8,zw)])],42,jw))),128)),t.$slots["tabs-bar-extra"]?(f(),y("div",Fw,[D(t.$slots,"tabs-bar-extra")])):C("",!0),!s.noSlider&&!s.card?(f(),y("div",{key:1,class:E(["w-tabs__slider",s.sliderColor]),style:me(n.sliderStyles)},null,6)):C("",!0)],2),t.tabs.length?(f(),y("div",Yw,[s.keepInDom?(f(),B(rl,{key:0,name:n.transitionName},{default:p(()=>[(f(!0),y(H,null,ge(t.tabs,(d,u)=>st((f(),B(r,{key:d._uid,item:d,class:E(s.contentClass)},{default:p(()=>[t.$slots[`item-content.${d._index+1}`]?D(t.$slots,`item-content.${d._index+1}`,{key:0,item:n.getOriginalItem(d),index:d._index+1,active:d._index===n.activeTab._index}):D(t.$slots,"item-content",{key:1,item:n.getOriginalItem(d),index:d._index+1,active:d._index===n.activeTab._index},()=>[d[s.itemContentKey]?(f(),y("div",{key:0,innerHTML:d[s.itemContentKey]},null,8,Uw)):C("",!0)])]),_:2},1032,["item","class"])),[[ol,d._uid===n.activeTab._uid]])),128))]),_:3},8,["name"])):(f(),B(Oe,{key:1,name:n.transitionName,mode:n.transitionMode},{default:p(()=>[(f(),B(jd,{exclude:s.keepAlive?"":"tab-content"},[(f(),B(r,{key:t.activeTabUid,item:n.activeTab,class:E(s.contentClass)},{default:p(({item:d})=>[d?(f(),y(H,{key:0},[t.$slots[`item-content.${d._index+1}`]?D(t.$slots,`item-content.${d._index+1}`,{key:0,item:n.getOriginalItem(d),index:d._index+1,active:d._uid===t.activeTabUid}):D(t.$slots,"item-content",{key:1,item:n.getOriginalItem(d),index:d._index+1,active:d._uid===t.activeTabUid},()=>[d[s.itemContentKey]?(f(),y("div",{key:0,innerHTML:d[s.itemContentKey]},null,8,Kw)):C("",!0)])],64)):C("",!0)]),_:3},8,["item","class"]))],1032,["exclude"]))]),_:3},8,["name","mode"]))])):C("",!0)],2)}let Fa=0;const Jw={name:"w-tabs",props:{modelValue:{type:[Number,String]},color:{type:String},bgColor:{type:String},items:{type:[Array,Number]},itemIdKey:{type:String,default:"id"},itemTitleKey:{type:String,default:"title"},itemContentKey:{type:String,default:"content"},titleClass:{type:String},activeClass:{type:String,default:"primary"},noSlider:{type:Boolean},pillSlider:{type:Boolean},sliderColor:{type:String,default:"primary"},contentClass:{type:String},transition:{type:[String,Boolean],default:""},fillBar:{type:Boolean},center:{type:Boolean},right:{type:Boolean},card:{type:Boolean},dark:{type:Boolean},light:{type:Boolean},keepAlive:{type:Boolean,default:!0},keepInDom:{type:Boolean,default:!1}},components:{TabContent:Hw},emits:["input","update:modelValue","focus"],data:()=>({tabs:[],activeTabEl:null,activeTabUid:null,activeTabIndex:0,prevTabIndex:-1,slider:{left:0,width:0},init:!0}),computed:{transitionName(){return this.transition===!1?"":this.transition||`w-tabs-slide-${this.direction}`},transitionMode(){return["w-tabs-slide-left","w-tabs-slide-right"].includes(this.transitionName)?"":"out-in"},direction(){return this.activeTab._index(t[e._uid]=e)&&t,{})},tabsClasses(){return{"w-tabs--card":this.card,"w-tabs--no-slider":this.noSlider,"w-tabs--pill-slider":this.pillSlider,"w-tabs--fill-bar":this.fillBar,"w-tabs--init":this.init,"w-tabs--dark":this.dark,"w-tabs--light":this.light}},tabsBarClasses(){return{"w-tabs__bar--right":this.right,"w-tabs__bar--center":this.center}},sliderStyles(){return{left:this.slider.left,width:this.slider.width}}},methods:{addTab(t){(t[this.itemIdKey]??t._uid??!1)||(t._uid=+`${this._.uid}${++Fa}`),this.tabs.push({_uid:t[this.itemIdKey]??t._uid,_index:this.tabs.length,...t,_disabled:!!t.disabled})},refreshTabs(){let t=this.items;typeof t=="number"&&(t=Array(t).fill().map((e,s)=>this.tabs[s]||{})),this.tabs=t.map((e,s)=>((e[this.itemIdKey]??e._uid??!1)||(e._uid=+`${this._.uid}${++Fa}`),{...e,_uid:e[this.itemIdKey]??e._uid,_index:s,_disabled:!!e.disabled}))},reopenTheActiveTab(){var t,e,s;if(this.tabs.length===1)return this.openTab(this.tabs[0]._uid);let i=(t=this.tabsByUid[this.activeTabUid])==null?void 0:t._uid;i||(i=(e=this.tabs[this.activeTabIndex])==null?void 0:e._uid),i||(i=(s=this.tabs[Math.max(this.activeTabIndex-1,this.tabs.length-1)])==null?void 0:s._uid),i&&this.openTab(i)},onResize(){this.updateSlider(!1)},barItemClasses(t){const e=t._index===this.activeTabIndex;return{[`${this.bgColor}--bg`]:this.bgColor,[this.color]:this.color&&!t._disabled&&!(this.activeClass&&e),[`w-tabs__bar-item--active ${this.activeClass}`]:e,"w-tabs__bar-item--disabled":t._disabled,[this.titleClass]:this.titleClass}},openTab(t){this.prevTabIndex=this.activeTabIndex;const e=this.tabsByUid[t];this.activeTabIndex=e._index,this.activeTabUid=e._uid,this.$emit("update:modelValue",e._index),this.$emit("input",e._index),this.noSlider||this.$nextTick(this.updateSlider)},updateSlider(t=!0){if(t){const e=this.$refs["tabs-bar"];this.activeTabEl=e&&e.querySelector(".w-tabs__bar-item--active")}if(!this.fillBar&&this.activeTabEl){const{left:e,width:s}=this.activeTabEl.getBoundingClientRect(),i=this.activeTabEl.parentNode,{left:o}=i.getBoundingClientRect(),{borderLeftWidth:n}=getComputedStyle(i);this.slider.left=`${e-o-parseInt(n)+i.scrollLeft}px`,this.slider.width=`${s}px`}else this.slider.left=`${this.activeTab._index*100/this.tabs.length}%`,this.slider.width=`${100/this.tabs.length}%`},updateActiveTab(t){var e,s;typeof t=="string"?t=~~t:(isNaN(t)||t<0)&&(t=0),(e=this.tabs[t])!=null&&e._uid&&(this.openTab((s=this.tabs[t])==null?void 0:s._uid),this.$nextTick(()=>{const i=this.$refs["tabs-bar"];this.activeTabEl=i&&i.querySelector(`.w-tabs__bar-item:nth-child(${t+1})`),this.activeTabEl&&this.activeTabEl.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}))},getOriginalItem(t){return this.items[t._index]||{}}},beforeMount(){this.tabs=[],(typeof this.items=="number"?Array(this.items).fill().map(Object):this.items).forEach(this.addTab),(this.modelValue??!1)&&this.updateActiveTab(this.modelValue),this.$nextTick(()=>{this.updateSlider(),setTimeout(()=>this.init=!1,0)}),this.noSlider||window.addEventListener("resize",this.onResize)},beforeUnmount(){window.removeEventListener("resize",this.onResize)},watch:{modelValue(t){t!==this.activeTabIndex&&this.updateActiveTab(t)},items:{handler(){this.refreshTabs(),this.tabs.length&&this.reopenTheActiveTab(),this.noSlider||this.$nextTick(this.updateSlider)},deep:!0},fillBar(){this.noSlider||this.$nextTick(this.updateSlider)},noSlider(t){t?window.removeEventListener("resize",this.onResize):(this.updateSlider(),window.addEventListener("resize",this.onResize))}}},Gw=ne(Jw,[["render",qw]]),Xw={class:"w-table__scroll-wrap"},Qw={ref:"colgroup"},Zw=["width"],e0={key:0},t0=["onClick"],s0=["innerHTML"],n0={key:0,class:"w-table__progress-bar"},l0=["colspan"],i0={key:0,class:"w-table__progress-bar"},a0=["colspan"],o0={class:"w-table__loading-text"},r0={key:1,class:"no-data"},d0=["colspan"],u0=["onClick"],c0=["data-label"],p0=["data-label"],h0=["innerHTML"],m0={key:2,class:"w-table__row w-table__row--expansion"},f0=["colspan"],g0={key:0},v0={key:3,class:"w-table__extra-row"},y0={key:1,class:"w-table__footer"},b0={key:1,class:"w-table__row"},w0=["colspan"],k0={key:0,class:"w-table__pagination w-pagination"},x0={class:"pages-wrap"},C0={class:"w-pagination__results"};function _0(t,e,s,i,o,n){const r=R("w-icon"),d=R("w-progress"),u=R("w-transition-fade"),c=R("w-transition-expand"),m=R("w-select"),g=R("w-button");return f(),y("div",{class:E(["w-table w-table--wrap",n.classes])},[l("div",Xw,[l("table",{class:"w-table__table",onMousedown:e[1]||(e[1]=(...v)=>n.onMouseDown&&n.onMouseDown(...v)),onMouseover:e[2]||(e[2]=(...v)=>n.onMouseOver&&n.onMouseOver(...v)),onMouseout:e[3]||(e[3]=(...v)=>n.onMouseOut&&n.onMouseOut(...v))},[l("colgroup",Qw,[(f(!0),y(H,null,ge(s.headers,(v,w)=>(f(),y("col",{class:E(["w-table__col",n.colClasses[w]]),key:w,width:v.width||null},null,10,Zw))),128))],512),s.noHeaders?C("",!0):(f(),y("thead",e0,[l("tr",null,[(f(!0),y(H,null,ge(s.headers,(v,w)=>(f(),y("th",{class:E(["w-table__header",n.headerClasses(v)]),key:w,onClick:_=>!t.colResizing.dragging&&v.sortable!==!1&&n.sortTable(v)},[v.sortable!==!1&&v.align==="right"?(f(),B(r,{key:0,class:E(["w-table__header-sort",n.headerSortClasses(v)])},{default:p(()=>e[8]||(e[8]=[a("wi-arrow-down")])),_:2},1032,["class"])):C("",!0),v.label?(f(),y(H,{key:1},[t.$slots["header-label"]?D(t.$slots,"header-label",{key:0,header:v,label:v.label,index:w+1},()=>[a(S(v.label||""),1)]):(f(),y("span",{key:1,innerHTML:v.label||""},null,8,s0))],64)):C("",!0),v.sortable!==!1&&v.align!=="right"?(f(),B(r,{key:2,class:E(["w-table__header-sort",n.headerSortClasses(v)])},{default:p(()=>e[9]||(e[9]=[a("wi-arrow-down")])),_:2},1032,["class"])):C("",!0),w{},["stop"]))},null,2)):C("",!0)],10,t0))),128))]),h(u,null,{default:p(()=>[s.loading==="header"?(f(),y("tr",n0,[l("td",{colspan:s.headers.length},[h(d,{tile:""})],8,l0)])):C("",!0)]),_:1})])),l("tbody",null,[s.loading===!0?(f(),y("tr",i0,[l("td",{colspan:s.headers.length},[h(d,{tile:""}),l("div",o0,[D(t.$slots,"loading",{},()=>[e[10]||(e[10]=a("Loading..."))])])],8,a0)])):n.tableItems.length?C("",!0):(f(),y("tr",r0,[l("td",{class:"w-table__cell text-center",colspan:s.headers.length},[D(t.$slots,"no-data",{},()=>[e[11]||(e[11]=a("No data to show."))])],8,d0)])),n.tableItems.length&&s.loading!==!0?(f(!0),y(H,{key:2},ge(n.paginatedItems,(v,w)=>(f(),y(H,{key:w},[t.$slots.item?D(t.$slots,"item",{key:0,item:v,index:w+1,select:()=>n.doSelectRow(v,w),classes:{"w-table__row":!0,"w-table__row--selected":n.selectedRowsByUid[v._uid]!==void 0,"w-table__row--expanded":n.expandedRowsByUid[v._uid]!==void 0}}):(f(),y("tr",{key:1,class:E(["w-table__row",{"w-table__row--selected":n.selectedRowsByUid[v._uid]!==void 0,"w-table__row--expanded":n.expandedRowsByUid[v._uid]!==void 0}]),onClick:_=>n.doSelectRow(v,w)},[(f(!0),y(H,null,ge(s.headers,(_,M)=>(f(),y(H,null,[t.$slots[`item-cell.${_.key}`]||t.$slots[`item-cell.${M+1}`]||t.$slots["item-cell"]?(f(),y("td",{class:E(["w-table__cell",{[`text-${_.align||"left"}`]:!0,"w-table__cell--sticky":_.sticky}]),key:`${M}-a`,"data-label":_.label},[t.$slots[`item-cell.${_.key}`]?D(t.$slots,`item-cell.${_.key}`,{key:0,header:_,item:v,label:v[_.key]||"",index:w+1}):t.$slots[`item-cell.${M+1}`]?D(t.$slots,`item-cell.${M+1}`,{key:1,header:_,item:v,label:v[_.key]||"",index:w+1}):t.$slots["item-cell"]?D(t.$slots,"item-cell",{key:2,header:_,item:v,label:v[_.key]||"",index:w+1}):C("",!0),M[n.expandedRowsByUid[v._uid]?(f(),y("div",g0,[D(t.$slots,"row-expansion",{item:v,index:w+1})])):C("",!0),w[t.paginationConfig.itemsPerPageOptions?(f(),B(m,{key:0,class:"w-pagination__items-per-page",modelValue:t.paginationConfig.itemsPerPage,"onUpdate:modelValue":e[4]||(e[4]=v=>t.paginationConfig.itemsPerPage=v),onInput:e[5]||(e[5]=v=>n.updatePaginationConfig({itemsPerPage:t.paginationConfig.itemsPerPage})),items:t.paginationConfig.itemsPerPageOptions,"label-position":"left",label:"Items per page","label-color":"inherit"},null,8,["modelValue","items"])):C("",!0),l("div",x0,[h(g,{class:"w-pagination__arrow w-pagination__arrow--prev",onClick:e[6]||(e[6]=v=>n.goToPage("-1")),disabled:t.paginationConfig.page<=1,icon:"wi-chevron-left",text:"",lg:""},null,8,["disabled"]),t.paginationConfig.pagesCount>7?(f(!0),y(H,{key:0},ge(t.paginationConfig.pagesCount,v=>(f(),y(H,{key:v},[[1,t.paginationConfig.pagesCount,t.paginationConfig.page-1,t.paginationConfig.page,t.paginationConfig.page+1].includes(v)?(f(),B(g,{key:0,class:E(["w-pagination__page",{"w-pagination__page--active":v===t.paginationConfig.page}]),onClick:w=>v!==t.paginationConfig.page&&n.goToPage(v),round:"",lg:""},{default:p(()=>[a(S(v),1)]),_:2},1032,["onClick","class"])):[1,t.paginationConfig.pagesCount,t.paginationConfig.page-1,t.paginationConfig.page,t.paginationConfig.page+1].includes(v-1)?(f(),B(g,{key:1,class:E(["w-pagination__page",{"w-pagination__page--active":v===t.paginationConfig.page}]),onClick:w=>v!==t.paginationConfig.page&&n.goToPage(v),round:"",lg:""},{default:p(()=>e[12]||(e[12]=[a("...")])),_:2},1032,["onClick","class"])):C("",!0)],64))),128)):(f(!0),y(H,{key:1},ge(t.paginationConfig.pagesCount,v=>(f(),B(g,{class:E(["w-pagination__page",{"w-pagination__page--active":v===t.paginationConfig.page}]),key:v,onClick:w=>v!==t.paginationConfig.page&&n.goToPage(v),round:"",lg:""},{default:p(()=>[a(S(v),1)]),_:2},1032,["onClick","class"]))),128)),h(g,{class:"w-pagination__arrow w-pagination__arrow--next",onClick:e[7]||(e[7]=v=>n.goToPage("+1")),disabled:t.paginationConfig.page>=t.paginationConfig.pagesCount,icon:"wi-chevron-right",text:"",lg:""},null,8,["disabled"])]),l("span",C0,S(t.paginationConfig.start)+"-"+S(t.paginationConfig.end||t.paginationConfig.total)+" of "+S(t.paginationConfig.total),1)])])):C("",!0)],2)}const Ya=15,S0={name:"w-table",props:{items:{type:Array,required:!0},headers:{type:Array,required:!0},noHeaders:{type:Boolean},fixedLayout:{type:Boolean},fixedHeaders:{type:Boolean},fixedFooter:{type:Boolean},loading:{type:[Boolean,String]},sort:{type:[String,Array]},sortFunction:{type:Function},filter:{type:Function},fetch:{type:Function},expandableRows:{validator:t=>([void 0,!0,!1,1,"1",""].includes(t)||Us(`Wrong value for the w-table's \`expandableRows\` prop. Given: "${t}", expected one of: [undefined, true, false, 1, '1', ''].`),!0)},expandedRows:{type:Array},selectableRows:{validator:t=>([void 0,!0,!1,1,"1",""].includes(t)||Us(`Wrong value for the w-table's \`selectableRows\` prop. Given: "${t}", expected one of: [undefined, true, false, 1, '1', ''].`),!0)},selectedRows:{type:Array},forceSelection:{type:Boolean},uidKey:{type:String,default:"id"},mobileBreakpoint:{type:Number,default:0},resizableColumns:{type:Boolean},pagination:{type:[Boolean,Object,String],validator:t=>{if(t){if(typeof t=="object"&&(!t.itemsPerPage||t.page&&isNaN(t.page)))return Us("Wrong pagination config received in the w-table's `pagination` prop (received: `"+JSON.stringify(t)+"`). \nExpected object: { itemsPerPage: Integer, page: Integer } or { itemsPerPage: Integer, start: Integer }."),!1}else return!0;return!0}},dark:{type:Boolean},light:{type:Boolean}},emits:["row-select","row-expand","row-click","update:sort","update:selected-rows","update:expanded-rows","column-resize"],data:()=>({activeSorting:[],selectedRowsInternal:[],expandedRowsInternal:[],colResizing:{dragging:!1,hover:!1,columnIndex:null,startCursorX:null,colWidth:null,nextColWidth:null,columnEl:null,nextColumnEl:null},paginationConfig:{itemsPerPage:0,itemsPerPageOptions:{},start:void 0,end:void 0,page:1,total:0}}),computed:{tableItems(){return this.items.map((t,e)=>(t._uid=t[this.uidKey]??e,t))},filteredItems(){return typeof this.filter=="function"?this.tableItems.filter(this.filter):this.tableItems},sortedItems(){if(!this.activeSorting.length||this.sortFunction||this.fetch)return this.filteredItems;const t=this.activeSorting[0].replace(/^[+-]/,""),e=this.activeSorting[0][0]==="-";return[...this.filteredItems].sort((s,i)=>(s=s[t],i=i[t],!isNaN(s)&&!isNaN(i)&&(s=parseFloat(s),i=parseFloat(i)),(s>i?1:-1)*(e?-1:1)))},paginatedItems(){return typeof this.fetch=="function"?this.sortedItems:this.sortedItems.slice(this.paginationConfig.start-1,this.paginationConfig.end)},activeSortingKeys(){return this.activeSorting.reduce((t,e)=>(t[e.replace(/^[+-]/,"")]=e[0],t),{})},classes(){return{"w-table--loading":this.loading,"w-table--loading-in-header":this.loading==="header","w-table--fixed-layout":this.fixedLayout||this.resizableColumns||this.hasStickyColumn,"w-table--mobile":this.isMobile||null,"w-table--resizable-cols":this.resizableColumns||null,"w-table--resizing":this.colResizing.dragging,"w-table--fixed-header":this.fixedHeaders,"w-table--fixed-footer":this.fixedFooter,"w-table--sticky-column":this.hasStickyColumn,"w-table--dark":this.dark,"w-table--light":this.light}},colClasses(){return this.headers.map(t=>({"w-table__col--highlighted":this.activeSortingKeys[t.key]}))||[]},isMobile(){return~~this.mobileBreakpoint&&this.$waveui.breakpoint.width<=~~this.mobileBreakpoint},hasStickyColumn(){return this.headers.find(t=>t.sticky)},selectedRowsByUid(){return this.selectedRowsInternal.reduce((t,e)=>(t[e]=!0)&&t,{})},expandedRowsByUid(){return this.expandedRowsInternal.reduce((t,e)=>(t[e]=!0)&&t,{})}},methods:{headerClasses(t){return{"w-table__header--sortable":t.sortable!==!1,"w-table__header--sticky":t.sticky,"w-table__header--resizable":!!this.resizableColumns,[`text-${t.align||"left"}`]:!0}},headerSortClasses(t){const e=this.activeSortingKeys[t.key];return[`w-table__header-sort--${e?"active":"inactive"}`,`w-table__header-sort--${e==="-"?"desc":"asc"}`,`m${t.align==="right"?"r":"l"}1`]},async sortTable(t){const e=this.activeSortingKeys[t.key];e&&this.activeSortingKeys[t.key]==="-"?this.activeSorting=[]:this.activeSorting[0]=(e?"-":"+")+t.key,this.$emit("update:sort",this.activeSorting),typeof this.sortFunction=="function"?await this.sortFunction(this.activeSorting):typeof this.fetch=="function"&&await this.callApiFetch()},doSelectRow(t,e){const s=this.expandableRows===""?!0:this.expandableRows,i=this.selectableRows===""?!0:this.selectableRows;if(s){const o=this.expandedRowsByUid[t._uid]===void 0;o?this.expandableRows.toString()==="1"?this.expandedRowsInternal=[t._uid]:this.expandedRowsInternal.push(t._uid):this.expandedRowsInternal=this.expandedRowsInternal.filter(n=>n!==t._uid),this.$emit("row-expand",{item:t,index:e,expanded:o,expandedRows:this.expandedRowsInternal.map(n=>this.filteredItems[n])}),this.$emit("update:expanded-rows",this.expandedRowsInternal)}else if(i){let o=!1;const n=this.selectedRowsByUid[t._uid]===void 0;n?(this.selectableRows.toString()==="1"?this.selectedRowsInternal=[t._uid]:this.selectedRowsInternal.push(t._uid),o=!0):(!this.forceSelection||this.selectedRowsInternal.length>1)&&(this.selectedRowsInternal=this.selectedRowsInternal.filter(r=>r!==t._uid),o=!0),o&&(this.$emit("row-select",{item:t,index:e,selected:n,selectedRows:this.selectedRowsInternal.map(r=>this.filteredItems[r])}),this.$emit("update:selected-rows",this.selectedRowsInternal))}this.$emit("row-click",{item:t,index:e})},onMouseDown(t){t.target.classList.contains("w-table__col-resizer")&&(this.colResizing.columnIndex=+t.target.parentNode.cellIndex,this.colResizing.startCursorX=t.pageX,this.colResizing.columnEl=this.$el.querySelector(`col:nth-child(${this.colResizing.columnIndex+1})`),this.colResizing.nextColumnEl=this.colResizing.columnEl.nextSibling,this.colResizing.colWidth=this.colResizing.columnEl.offsetWidth,this.colResizing.nextColWidth=this.colResizing.nextColumnEl.offsetWidth,document.addEventListener("mousemove",this.onResizerMouseMove),document.addEventListener("mouseup",this.onResizerMouseUp))},onMouseOver({target:t}){t.classList.contains("w-table__col-resizer")&&(this.colResizing.hover=+t.parentNode.cellIndex)},onMouseOut({target:t}){t.classList.contains("w-table__col-resizer")&&(this.colResizing.hover=!1)},onResizerMouseMove(t){const{startCursorX:e,columnEl:s,nextColumnEl:i,colWidth:o,nextColWidth:n}=this.colResizing;this.colResizing.dragging=!0;const r=t.pageX-e,d=o+n,u=o+r,c=n-r;s.style.width=o+r+"px",i.style.width=n-r+"px";const m=r<0&&s.offsetWidth>u||s.offsetWidth<=Ya,g=r>0&&i.offsetWidth>c;if(m){const v=Math.max(s.offsetWidth,Ya);s.style.width=v+"px",i.style.width=d-v+"px"}else g&&(s.style.width=d-i.offsetWidth+"px",i.style.width=i.offsetWidth+"px")},onResizerMouseUp(){document.removeEventListener("mousemove",this.onResizerMouseMove),document.removeEventListener("mouseup",this.onResizerMouseUp),setTimeout(()=>{const t=[...this.$refs.colgroup.children].map(e=>{var s;return((s=e.style)==null?void 0:s.width)||e.offsetWidth});this.$emit("column-resize",{index:this.colResizing.columnIndex,widths:t}),this.colResizing.dragging=!1,this.colResizing.columnIndex=null,this.colResizing.startCursorX=null,this.colResizing.columnEl=null,this.colResizing.nextColumnEl=null,this.colResizing.colWidth=null,this.colResizing.nextColWidth=null},0)},initPagination(){var t,e;const s=((t=this.pagination)==null?void 0:t.itemsPerPage)??20,i=((e=this.pagination)==null?void 0:e.itemsPerPageOptions)||[20,100,{label:"All",value:0}];i.find(n=>((n==null?void 0:n.value)??n)===+s)||i.push(s),this.paginationConfig.itemsPerPageOptions=i.map(n=>({label:["string","number"].includes(typeof n)?n.toString():n.label||n.value,value:["string","number"].includes(typeof n)?~~n:n.value??n.label})),this.paginationConfig.itemsPerPageOptions.sort((n,r)=>n.value=i?i:s%i,this.paginationConfig.pagesCount=Math.ceil(s/t)}e&&this.goToPage(e)},async goToPage(t){["-1","+1"].includes(t)?this.paginationConfig.page+=+t:this.paginationConfig.page=t;const{itemsPerPage:e,total:s}=this.paginationConfig;this.paginationConfig.page=Math.max(1,this.paginationConfig.page),this.paginationConfig.start=e*(this.paginationConfig.page-1)+1,this.paginationConfig.end=this.paginationConfig.start-1+(e||s),typeof this.fetch=="function"&&await this.callApiFetch()},async callApiFetch(){const{page:t,start:e,end:s,total:i,itemsPerPage:o}=this.paginationConfig;return await this.fetch({page:t,start:e,end:s||i,total:i,itemsPerPage:o||i,sorting:this.activeSorting})}},created(){this.sort?this.activeSorting=Array.isArray(this.sort)?this.sort:[this.sort]:this.activeSorting=[],(this.expandedRows||[]).length&&(this.expandedRowsInternal=this.expandedRows),(this.selectedRows||[]).length&&(this.selectedRowsInternal=this.selectedRows),this.pagination&&this.initPagination()},watch:{sort(t){t?this.activeSorting=Array.isArray(t)?t:[t]:this.activeSorting=[]},expandableRows(t){t?t.toString()==="1"&&(this.expandedRowsInternal=this.expandedRowsInternal.slice(0,1)):this.expandedRowsInternal=[]},expandedRows(t){this.expandedRowsInternal=Array.isArray(t)&&t.length?this.expandedRows:[]},selectableRows(t){t?t.toString()==="1"&&(this.selectedRowsInternal=this.selectedRowsInternal.slice(0,1)):this.selectedRowsInternal=[]},selectedRows(t){this.selectedRowsInternal=Array.isArray(t)&&t.length?this.selectedRows:[]},"pagination.page"(t){this.updatePaginationConfig({page:t})},"pagination.itemsPerPage"(t){this.updatePaginationConfig({itemsPerPage:t})},"pagination.total"(t){this.updatePaginationConfig({total:t})}}},D0=ne(S0,[["render",_0]]),E0=["role","aria-pressed","tabindex"];function T0(t,e,s,i,o,n){return f(),y("span",{class:E(["w-tag",n.classes]),onClick:e[1]||(e[1]=r=>{t.$emit("update:modelValue",!s.modelValue),t.$emit("input",!s.modelValue)}),onKeypress:e[2]||(e[2]=vt(r=>{t.$emit("update:modelValue",!s.modelValue),t.$emit("input",!s.modelValue)},["enter"])),role:s.modelValue!==-1&&"button","aria-pressed":s.modelValue!==-1&&(s.modelValue?"true":"false"),tabindex:s.modelValue!==-1&&0,style:me(n.styles)},[D(t.$slots,"default"),s.closable&&s.modelValue?(f(),y("i",{key:0,class:"w-icon w-tag__closable wi-cross",onClick:e[0]||(e[0]=We(r=>{t.$emit("update:modelValue",!1),t.$emit("input",!1)},["stop"])),role:"icon","aria-hidden":"true"})):C("",!0)],46,E0)}const V0={name:"w-tag",props:{modelValue:{type:[Boolean,Number],default:-1},color:{type:String},bgColor:{type:String},shadow:{type:Boolean},tile:{type:Boolean},round:{type:Boolean},closable:{type:Boolean},outline:{type:Boolean},noBorder:{type:Boolean},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean},width:{type:[Number,String]},height:{type:[Number,String]},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue"],computed:{presetSize(){return this.xs&&"xs"||this.sm&&"sm"||this.lg&&"lg"||this.xl&&"xl"||"md"},classes(){return{[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,[`size--${this.presetSize}`]:!0,"w-tag--dark":this.dark,"w-tag--light":this.light,"w-tag--clickable":this.modelValue!==-1,"w-tag--outline":this.outline,"w-tag--no-border":this.noBorder||this.shadow,"w-tag--tile":this.tile,"w-tag--round":this.round,"w-tag--shadow":this.shadow}},styles(){return{width:(isNaN(this.width)?this.width:`${this.width}px`)||null,height:(isNaN(this.height)?this.height:`${this.height}px`)||null}}}},$0=ne(V0,[["render",T0]]),I0=["for"],M0=["id","name","placeholder","rows","cols","readonly","aria-readonly","disabled","required","tabindex"],A0=["for"];function B0(t,e,s,i,o,n){const r=R("w-icon");return f(),B(De(t.formRegister?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:o.inputValue,disabled:t.isDisabled,readonly:t.isReadonly,isFocused:o.isFocused},{valid:t.valid,"onUpdate:valid":e[6]||(e[6]=d=>t.valid=d),wrap:n.hasLabel&&s.labelPosition!=="inside",onReset:e[7]||(e[7]=d=>{t.$emit("update:modelValue",o.inputValue=""),t.$emit("input","")}),class:n.classes,style:t.$attrs.style}),{default:p(()=>[s.labelPosition==="left"?(f(),y(H,{key:0},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-textarea__label w-textarea__label--left w-form-el-shakable",t.labelClasses]),for:`w-textarea--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,I0)):C("",!0)],64)):C("",!0),l("div",{class:E(["w-textarea__textarea-wrap",n.inputWrapClasses])},[D(t.$slots,"icon-left",{inputId:`w-textarea--${t._.uid}`},()=>[s.innerIconLeft?(f(),B(r,{key:0,class:"w-textarea__icon w-textarea__icon--inner-left",tag:"label",for:`w-textarea--${t._.uid}`,onClick:e[0]||(e[0]=d=>t.$emit("click:inner-icon-left",d))},{default:p(()=>[a(S(s.innerIconLeft),1)]),_:1},8,["for"])):C("",!0)]),st(l("textarea",ee({class:"w-textarea__textarea",ref:"textarea","onUpdate:modelValue":e[1]||(e[1]=d=>o.inputValue=d)},n.attrs,{onInput:e[2]||(e[2]=(...d)=>n.onInput&&n.onInput(...d)),onFocus:e[3]||(e[3]=(...d)=>n.onFocus&&n.onFocus(...d)),onBlur:e[4]||(e[4]=(...d)=>n.onBlur&&n.onBlur(...d)),id:`w-textarea--${t._.uid}`,name:t.inputName,placeholder:s.placeholder||null,rows:s.rows||null,cols:s.cols||null,readonly:t.isReadonly||null,"aria-readonly":t.isReadonly?"true":"false",disabled:t.isDisabled||null,required:t.required||null,tabindex:t.tabindex||null}),null,16,M0),[[zn,o.inputValue]]),s.labelPosition==="inside"&&n.showLabelInside?(f(),y(H,{key:0},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-textarea__label w-textarea__label--inside w-form-el-shakable",t.labelClasses])},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],2)):C("",!0)],64)):C("",!0),D(t.$slots,"icon-right",{inputId:`w-textarea--${t._.uid}`},()=>[s.innerIconRight?(f(),B(r,{key:0,class:"w-textarea__icon w-textarea__icon--inner-right",tag:"label",for:`w-textarea--${t._.uid}`,onClick:e[5]||(e[5]=d=>t.$emit("click:inner-icon-right",d))},{default:p(()=>[a(S(s.innerIconRight),1)]),_:1},8,["for"])):C("",!0)])],2),s.labelPosition==="right"?(f(),y(H,{key:1},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-textarea__label w-textarea__label--right w-form-el-shakable",t.labelClasses]),for:`w-textarea--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,A0)):C("",!0)],64)):C("",!0)]),_:3},16,["valid","wrap","class","style"])}const O0={name:"w-textarea",mixins:[Et],inheritAttrs:!1,props:{modelValue:{default:""},label:{type:String},labelPosition:{type:String,default:"inside"},innerIconLeft:{type:String},innerIconRight:{type:String},staticLabel:{type:Boolean},placeholder:{type:String},color:{type:String,default:"primary"},bgColor:{type:String},labelColor:{type:String,default:"primary"},outline:{type:Boolean},shadow:{type:Boolean},noAutogrow:{type:Boolean},resizable:{type:Boolean},tile:{type:Boolean},rows:{type:[Number,String],default:3},cols:{type:[Number,String]},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","focus","blur","click:inner-icon-left","click:inner-icon-right"],data(){return{inputValue:this.modelValue,isFocused:!1,height:null,lineHeight:null,paddingY:null}},computed:{attrs(){const{class:t,style:e,...s}=this.$attrs;return s},hasValue(){return this.inputValue||this.inputValue===0},hasLabel(){return this.label||this.$slots.default},showLabelInside(){return!this.staticLabel||!this.hasValue&&!this.placeholder},classes(){return{"w-textarea":!0,"w-textarea--disabled":this.isDisabled,"w-textarea--readonly":this.isReadonly,[`w-textarea--${this.hasValue?"filled":"empty"}`]:!0,"w-textarea--focused":this.isFocused&&!this.isReadonly,"w-textarea--dark":this.dark,"w-textarea--light":this.light,"w-textarea--resizable":this.resizable,"w-textarea--floating-label":this.hasLabel&&this.labelPosition==="inside"&&!this.staticLabel,"w-textarea--no-padding":!this.outline&&!this.bgColor&&!this.shadow,"w-textarea--has-placeholder":this.placeholder,"w-textarea--inner-icon-left":this.innerIconLeft,"w-textarea--inner-icon-right":this.innerIconRight,[this.$attrs.class]:!!this.$attrs.class}},inputWrapClasses(){return{[this.valid===!1?this.validationColor:this.color]:this.color||this.valid===!1,[`${this.bgColor}--bg`]:this.bgColor,"w-textarea__textarea-wrap--tile":this.tile,"w-textarea__textarea-wrap--box":this.outline||this.bgColor||this.shadow,"w-textarea__textarea-wrap--underline":!this.outline,"w-textarea__textarea-wrap--shadow":this.shadow,"w-textarea__textarea-wrap--no-padding":!this.outline&&!this.bgColor&&!this.shadow}},textareaStyles(){return this.noAutogrow||this.resizable?{}:{height:this.height?`${this.height}px`:null}}},methods:{onInput(){!this.noAutogrow&&!this.resizable&&this.computeHeight(),this.$emit("update:modelValue",this.inputValue),this.$emit("input",this.inputValue)},onFocus(t){this.isFocused=!0,this.$emit("focus",t)},onBlur(t){this.isFocused=!1,this.$emit("blur",t)},computeHeight(){this.$refs.textarea.style.height="";const t=(this.$refs.textarea.scrollHeight-this.paddingY)/this.lineHeight,e=Math.max(t,this.rows)*this.lineHeight+this.paddingY;this.$refs.textarea.style.height=e+"px"},getLineHeight(){const t=window.getComputedStyle(this.$refs.textarea,null);this.lineHeight=parseFloat(t.getPropertyValue("line-height")),this.paddingY=parseFloat(t.getPropertyValue("padding-top")),this.paddingY+=parseFloat(t.getPropertyValue("padding-bottom"))}},mounted(){!this.noAutogrow&&!this.resizable&&(this.getLineHeight(),this.computeHeight())},watch:{modelValue(t){this.inputValue=t,this.$nextTick(this.computeHeight)},resizable(t){t?this.height=null:this.noAutogrow||this.getLineHeight()},noAutogrow(t){t?this.getLineHeight():this.height=null}}},R0=ne(O0,[["render",B0]]),L0=["innerHTML"],P0=["innerHTML"];function N0(t,e,s,i,o,n){return f(),y("ul",{class:E(["w-timeline",n.classes])},[(f(!0),y(H,null,ge(s.items,(r,d)=>(f(),y("li",{class:"w-timeline-item",key:d},[(f(),B(De(r[s.itemIconKey]||s.icon?"w-icon":"div"),{class:E(["w-timeline-item__bullet",{[r[s.itemColorKey]||s.color]:r[s.itemColorKey]||s.color}])},{default:p(()=>[a(S(r[s.itemIconKey]||s.icon),1)]),_:2},1032,["class"])),t.$slots[`item.${d+1}`]?D(t.$slots,`item.${d+1}`,{key:1,item:r,index:d+1}):D(t.$slots,"item",{key:0,item:r,index:d+1},()=>[l("div",{class:E(["w-timeline-item__title",{[r[s.itemColorKey]||s.color]:r[s.itemColorKey]||s.color}]),innerHTML:r[s.itemTitleKey]},null,10,L0),l("div",{class:"w-timeline-item__content",innerHTML:r[s.itemContentKey]},null,8,P0)])]))),128))],2)}const W0={name:"w-timeline",props:{items:{type:[Array,Number],required:!0},color:{type:String},icon:{type:String},itemTitleKey:{type:String,default:"title"},itemContentKey:{type:String,default:"content"},itemIconKey:{type:String,default:"icon"},itemColorKey:{type:String,default:"color"},dark:{type:Boolean},light:{type:Boolean}},emits:[],computed:{classes(){return{"w-timeline--dark":this.dark,"w-timeline--light":this.light}}}},H0=ne(W0,[["render",N0]]);function j0(t,e,s,i,o,n){return f(),y("div",{class:E(["w-toolbar",n.classes]),style:me(n.styles)},[D(t.$slots,"default")],6)}const z0={name:"w-toolbar",props:{color:{type:String},bgColor:{type:String},absolute:{type:Boolean},fixed:{type:Boolean},bottom:{type:Boolean},vertical:{type:Boolean},left:{type:Boolean},right:{type:Boolean},width:{type:[Number,String],default:null},height:{type:[Number,String],default:null},noBorder:{type:Boolean},shadow:{type:Boolean},dark:{type:Boolean},light:{type:Boolean}},emits:[],computed:{toolbarHeight(){const t=this.height;return t&&parseInt(t)==t?t+"px":t},toolbarWidth(){const t=this.width;return t&&parseInt(t)==t?t+"px":t},classes(){return{[this.color]:!!this.color,[`${this.bgColor}--bg`]:!!this.bgColor,"w-toolbar--dark":this.dark,"w-toolbar--light":this.light,"w-toolbar--absolute":!!this.absolute,"w-toolbar--fixed":!!this.fixed,[`w-toolbar--${this.bottom?"bottom":"top"}`]:!this.vertical,[`w-toolbar--vertical w-toolbar--${this.right?"right":"left"}`]:this.vertical,"w-toolbar--no-border":this.noBorder,"w-toolbar--shadow":!!this.shadow}},styles(){return{height:this.height&&!this.vertical?this.toolbarHeight:null,width:this.width&&this.vertical?this.toolbarWidth:null}}}},F0=ne(z0,[["render",j0]]);function Y0(t,e,s,i,o,n){return f(),y(H,null,[D(t.$slots,"activator",{on:n.activatorEventHandlers}),h(Oe,{name:n.transitionName,appear:""},{default:p(()=>[t.detachableVisible?(f(),y("div",{class:E(["w-tooltip",n.classes]),ref:"detachable",key:t._.uid,style:me(n.styles)},[D(t.$slots,"default")],6)):C("",!0)]),_:3},8,["name"])],64)}const U0={name:"w-tooltip",mixins:[Pr],props:{modelValue:{},showOnClick:{type:Boolean},color:{type:String},bgColor:{type:String},noBorder:{type:Boolean},shadow:{type:Boolean},tile:{type:Boolean},round:{type:Boolean},transition:{type:String},tooltipClass:{type:[String,Object,Array]},persistent:{type:Boolean},delay:{type:Number},dark:{type:Boolean},light:{type:Boolean},caption:{type:Boolean},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean},enableTouch:{type:Boolean}},emits:["input","update:modelValue","open","close"],data:()=>({detachableVisible:!1,hoveringActivator:!1,detachableCoords:{top:0,left:0},detachableEl:null,timeoutId:null}),computed:{tooltipClasses(){return Ct(this.tooltipClass)},transitionName(){const t=this.position.replace(/top|bottom/,e=>({top:"up",bottom:"down"})[e]);return this.transition||`w-tooltip-slide-fade-${t}`},size(){return this.xs&&"xs"||this.sm&&"sm"||this.sm&&"md"||this.lg&&"lg"||this.xl&&"xl"||(this.caption?"sm":"md")},classes(){return{[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,...this.tooltipClasses,[`w-tooltip--${this.position}`]:!this.noPosition,[`w-tooltip--align-${this.alignment}`]:!this.noPosition&&this.alignment,"w-tooltip--dark":this.dark,"w-tooltip--light":this.light,"w-tooltip--tile":this.tile,"w-tooltip--round":this.round,caption:this.caption,[`size--${this.size}`]:!0,"w-tooltip--shadow":this.shadow,"w-tooltip--fixed":this.fixed,"w-tooltip--no-border":this.noBorder||this.bgColor,"w-tooltip--custom-transition":this.transition}},styles(){return{zIndex:this.zIndex||this.zIndex===0||null,top:this.detachableCoords.top&&`${~~this.detachableCoords.top}px`||null,left:this.detachableCoords.left&&`${~~this.detachableCoords.left}px`||null,"--w-tooltip-bg-color":this.$waveui.colors[this.bgColor]||"rgb(var(--w-base-bg-color-rgb))"}},activatorEventHandlers(){let t={};const e=typeof window<"u"&&"ontouchstart"in window;return!this.showOnClick&&!e?t={focus:this.open,blur:this.close,mouseenter:s=>{this.hoveringActivator=!0,this.open(s)},mouseleave:s=>{this.hoveringActivator=!1,this.close()}}:(this.enableTouch||this.showOnClick)&&(t={click:this.toggle}),t}},methods:{toggle(t){let e=this.detachableVisible;typeof window<"u"&&"ontouchstart"in window?!this.enableTouch&&!this.showOnClick?e=!1:e=!e:t.type==="click"&&this.showOnClick?e=!e:["mouseenter","focus"].includes(t.type)&&!this.showOnClick?e=!0:["mouseleave","blur"].includes(t.type)&&!this.showOnClick&&(e=!1),this.timeoutId=clearTimeout(this.timeoutId),e?this.open(t):this.close()},async close(t=!1){this.detachableVisible&&(this.showOnHover&&!t&&(await new Promise(e=>setTimeout(e,10)),this.showOnHover&&this.hoveringActivator)||(this.$emit("update:modelValue",this.detachableVisible=!1),this.$emit("input",!1),this.$emit("close"),document.removeEventListener("mousedown",this.onOutsideMousedown),window.removeEventListener("resize",this.onResize)))}}},K0=ne(U0,[["render",Y0]]);function q0(t,e,s,i,o,n){return f(),B(Oe,ee({name:"bounce"},t.$props),{default:p(()=>[D(t.$slots,"default")]),_:3},16)}const J0={name:"w-transition-bounce",props:{appear:{type:Boolean},duration:{type:[Number,String]}}},G0=ne(J0,[["render",q0]]);function X0(t,e,s,i,o,n){return f(),B(Oe,{name:"expand",mode:"out-in",css:!1,onBeforeAppear:n.beforeAppear,onAppear:n.appear,onAfterAppear:n.afterAppear,onBeforeEnter:n.beforeEnter,onEnter:n.enter,onAfterEnter:n.afterEnter,onBeforeLeave:n.beforeLeave,onLeave:n.leave,onAfterLeave:n.afterLeave},{default:p(()=>[D(t.$slots,"default")]),_:3},8,["onBeforeAppear","onAppear","onAfterAppear","onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}const Q0={name:"w-transition-expand",props:{x:{type:Boolean},y:{type:Boolean},duration:{type:Number,default:250}},data:()=>({el:{savedState:!1,originalStyles:"",width:0,height:0,marginLeft:0,marginRight:0,marginTop:0,marginBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0},cleanTransitionCycle:!0}),computed:{animX(){return this.x||!this.y},animY(){return this.y||!this.x}},methods:{beforeAppear(t){this.cleanTransitionCycle&&this.saveOriginalInlineStyles(t),this.cleanTransitionCycle=!1},appear(t,e){this.show(t),setTimeout(e,this.duration),this.cleanTransitionCycle=!1},afterAppear(t){this.applyOriginalStyles(t),t.style.cssText=t.style.cssText.replace("display: none;",""),this.cleanTransitionCycle=!1},beforeEnter(t){this.cleanTransitionCycle&&this.saveOriginalInlineStyles(t),this.cleanTransitionCycle=!1},enter(t,e){this.show(t),setTimeout(e,this.duration),this.cleanTransitionCycle=!1},afterEnter(t){this.applyOriginalStyles(t),t.style.cssText=t.style.cssText.replace("display: none;",""),this.cleanTransitionCycle=!1},beforeLeave(t){this.el.savedState||this.saveComputedStyles(t),this.beforeHide(t),this.cleanTransitionCycle=!1},leave(t,e){this.hide(t),setTimeout(e,this.duration),this.cleanTransitionCycle=!1},afterLeave(t){this.applyOriginalStyles(t),this.cleanTransitionCycle=!0,this.el.savedState=!1},applyHideStyles(t){this.animX&&(t.style.width=0,t.style.marginLeft=0,t.style.marginRight=0,t.style.paddingLeft=0,t.style.paddingRight=0,t.style.borderLeftWidth=0,t.style.borderRightWidth=0),this.animY&&(t.style.height=0,t.style.marginTop=0,t.style.marginBottom=0,t.style.paddingTop=0,t.style.paddingBottom=0,t.style.borderTopWidth=0,t.style.borderBottomWidth=0),t.style.overflow="hidden"},applyShowStyles(t){this.animX&&(t.style.width=this.el.width+"px",t.style.marginLeft=this.el.marginLeft,t.style.marginRight=this.el.marginRight,t.style.paddingLeft=this.el.paddingLeft,t.style.paddingRight=this.el.paddingRight,t.style.borderLeftWidth=this.el.borderLeftWidth,t.style.borderRightWidth=this.el.borderRightWidth),this.animY&&(t.style.height=this.el.height+"px",t.style.marginTop=this.el.marginTop,t.style.marginBottom=this.el.marginBottom,t.style.paddingTop=this.el.paddingTop,t.style.paddingBottom=this.el.paddingBottom,t.style.borderTopWidth=this.el.borderTopWidth,t.style.borderBottomWidth=this.el.borderBottomWidth),t.style.transition=this.duration+"ms ease-in-out"},applyOriginalStyles(t){t.style.cssText=this.el.originalStyles},saveOriginalInlineStyles(t){this.el.originalStyles=t.style.cssText},show(t){this.saveComputedStyles(t),this.applyHideStyles(t),setTimeout(()=>this.applyShowStyles(t),20)},beforeHide(t){this.applyShowStyles(t)},hide(t){setTimeout(()=>this.applyHideStyles(t),20)},saveComputedStyles(t){const e=window.getComputedStyle(t,null);this.animX&&(this.el.width=t.offsetWidth,this.el.marginLeft=e.getPropertyValue("marginLeft"),this.el.marginRight=e.getPropertyValue("marginRight"),this.el.paddingLeft=e.getPropertyValue("paddingLeft"),this.el.paddingRight=e.getPropertyValue("paddingRight"),this.el.borderLeftWidth=e.getPropertyValue("borderLeftWidth"),this.el.borderRightWidth=e.getPropertyValue("borderRightWidth")),this.animY&&(this.el.height=t.offsetHeight,this.el.marginTop=e.getPropertyValue("marginTop"),this.el.marginBottom=e.getPropertyValue("marginBottom"),this.el.paddingTop=e.getPropertyValue("paddingTop"),this.el.paddingBottom=e.getPropertyValue("paddingBottom"),this.el.borderTopWidth=e.getPropertyValue("borderTopWidth"),this.el.borderBottomWidth=e.getPropertyValue("borderBottomWidth")),this.el.savedState=!0}}},Z0=ne(Q0,[["render",X0]]);function e2(t,e,s,i,o,n){return f(),B(Oe,ee({name:"fade"},t.$props),{default:p(()=>[D(t.$slots,"default")]),_:3},16)}const t2={name:"w-transition-fade",props:{appear:{type:Boolean},duration:{type:[Number,String]}}},s2=ne(t2,[["render",e2]]);function n2(t,e,s,i,o,n){return f(),B(Oe,ee({name:"scale"},t.$props),{default:p(()=>[D(t.$slots,"default")]),_:3},16)}const l2={name:"w-transition-scale",props:{appear:{type:Boolean},duration:{type:[Number,String]}}},i2=ne(l2,[["render",n2]]);function a2(t,e,s,i,o,n){return f(),B(Oe,ee({name:"scale-fade"},t.$props),{default:p(()=>[D(t.$slots,"default")]),_:3},16)}const o2={name:"w-transition-scale-fade",props:{appear:{type:Boolean},duration:{type:[Number,String]}}},r2=ne(o2,[["render",a2]]);function d2(t,e,s,i,o,n){return f(),B(Oe,ee({name:n.transitionName},t.$props),{default:p(()=>[D(t.$slots,"default")]),_:3},16,["name"])}const u2={name:"w-transition-slide",props:{appear:{type:Boolean},left:{type:Boolean},right:{type:Boolean},up:{type:Boolean},down:{type:Boolean},duration:{type:[Number,String]}},computed:{direction(){return this.up&&"up"||this.down&&"down"||this.left&&"left"||this.right&&"right"||"down"},transitionName(){return`slide-${this.direction}`}}},c2=ne(u2,[["render",d2]]);function p2(t,e,s,i,o,n){return f(),B(Oe,ee({name:n.transitionName},t.$props),{default:p(()=>[D(t.$slots,"default")]),_:3},16,["name"])}const h2={name:"w-transition-slide-fade",props:{appear:{type:Boolean},left:{type:Boolean},right:{type:Boolean},up:{type:Boolean},down:{type:Boolean},duration:{type:[Number,String]}},computed:{direction(){return this.up&&"up"||this.down&&"down"||this.left&&"left"||this.right&&"right"||"down"},transitionName(){return`slide-fade-${this.direction}`}}},m2=ne(h2,[["render",p2]]);function f2(t,e,s,i,o,n){return f(),B(Oe,ee({name:"twist"},t.$props),{default:p(()=>[D(t.$slots,"default")]),_:3},16)}const g2={name:"w-transition-twist",props:{appear:{type:Boolean},duration:{type:[Number,String]}}},v2=ne(g2,[["render",f2]]),y2=["innerHTML"],b2={key:1,class:"ml1"};function w2(t,e,s,i,o,n){const r=R("w-button"),d=R("w-icon"),u=R("w-tree",!0);return f(),y("ul",{class:E(["w-tree",n.classes])},[(f(!0),y(H,null,ge(t.currentDepthItems,(c,m)=>(f(),y("li",{class:E(["w-tree__item",n.itemClasses(c)]),key:m},[(f(),B(De(n.getTreeItemComponent(c)),ee({class:"w-tree__item-label",ref_for:!0},c.route&&{[!t.$router||n.hasExternalLink(c)?"href":"to"]:c.route},{onClick:g=>!s.disabled&&!c.disabled&&n.onLabelClick(c,g),onKeydown:g=>!s.disabled&&!c.disabled&&n.onLabelKeydown(c,g),tabindex:n.getTreeItemTabindex(c)}),{default:p(()=>[(c.children||c.branch)&&(s.expandOpenIcon&&c.open||s.expandIcon)&&!(s.unexpandableEmpty&&!c.children)?(f(),B(r,{key:0,class:"w-tree__item-expand",onClick:We(g=>!s.disabled&&!c.disabled&&n.onLabelClick(c,g),["stop"]),color:"inherit",icon:c.open&&s.expandOpenIcon||s.expandIcon,"icon-props":{rotate90a:!c.open},tabindex:-1,disabled:s.disabled||c.disabled,text:"",sm:""},null,8,["onClick","icon","icon-props","disabled"])):C("",!0),D(t.$slots,"item",{item:c.originalItem,depth:s.depth,path:c.path,open:c.open},()=>{var g;return[n.itemIcon(c)?(f(),B(d,{key:0,class:"w-tree__item-icon",color:c.originalItem[s.itemIconColorKey]||s.iconColor},{default:p(()=>[a(S(n.itemIcon(c)),1)]),_:2},1032,["color"])):C("",!0),l("span",{innerHTML:c.label},null,8,y2),s.counts&&(c.children||c.branch)?(f(),y("span",b2,"("+S(((g=c.originalItem.children)==null?void 0:g.length)||0)+")",1)):C("",!0)]})]),_:2},1040,["onClick","onKeydown","tabindex"])),(f(),B(De(s.noTransition?"div":"w-transition-expand"),{y:!s.noTransition||null,onAfterEnter:g=>t.$emit("open",n.emitPayload(c)),onAfterLeave:g=>t.$emit("close",n.emitPayload(c))},{default:p(()=>[c.children&&c.open?(f(),B(u,ee({key:0,ref_for:!0},t.$props,{depth:s.depth+1,data:c.originalItem.children,parent:c,onBeforeOpen:e[0]||(e[0]=g=>t.$emit("before-open",g)),onOpen:e[1]||(e[1]=g=>t.$emit("open",g)),onBeforeClose:e[2]||(e[2]=g=>t.$emit("before-close",g)),onClose:e[3]||(e[3]=g=>t.$emit("close",g)),onClick:e[4]||(e[4]=g=>t.$emit("click",g)),onSelect:e[5]||(e[5]=g=>t.$emit("select",g)),"onUpdate:modelValue":e[6]||(e[6]=g=>t.$emit("update:model-value",g))}),{item:p(({item:g,depth:v,path:w,open:_})=>[D(t.$slots,"item",{item:g,depth:v,path:w,open:_})]),_:2},1040,["depth","data","parent"])):C("",!0)]),_:2},1064,["y","onAfterEnter","onAfterLeave"]))],2))),128))],2)}const k2={name:"w-tree",props:{modelValue:{type:[Object,Array]},data:{type:[Object,Array],required:!0},depth:{type:Number,default:0},parent:{type:Object,default:null},branchClass:{type:String},leafClass:{type:String},branchIcon:{type:String},branchOpenIcon:{type:String},leafIcon:{type:String},expandIcon:{type:[Boolean,String],default:"wi-triangle-down"},expandOpenIcon:{type:[Boolean,String]},expandAll:{type:Boolean},unexpandableEmpty:{type:Boolean},disabled:{type:Boolean},noTransition:{type:Boolean},selectable:{type:Boolean},deepReactivity:{type:Boolean},counts:{type:Boolean},itemIconKey:{type:String,default:"icon"},iconColor:{type:String},itemLabelKey:{type:String,default:"label"},itemIconColorKey:{type:String,default:"iconColor"},itemRouteKey:{type:String,default:"route"},itemDisabledKey:{type:String,default:"disabled"},itemOpenKey:{type:String,default:"open"}},emits:["update:model-value","before-open","open","before-close","close","click","select"],data:()=>({currentDepthItems:[],dataPropUnwatch:null}),computed:{classes(){return{[`w-tree--depth${this.depth}`]:!0,"w-tree--expand-icon":this.expandIcon&&!this.depth,"w-tree--selectable":this.selectable,"w-tree--disabled":this.disabled&&!this.depth,"w-tree--no-expand-button":!this.expandIcon}}},methods:{updateCurrentDepthTree(t,e=[]){if(this.currentDepthItems=[],!Array.isArray(t)&&typeof t!="object")return an(`[w-tree] the tree items must be of type array or object, ${typeof t} received.`);Array.isArray(t)||(t=[t]),t.forEach((s,i)=>{var o,n;const r={originalItem:s,_uid:this.depth.toString()+(i+1),label:s[this.itemLabelKey],children:!!s.children,branch:s.branch,route:s[this.itemRouteKey],disabled:s[this.itemDisabledKey],selected:((o=e[i])==null?void 0:o.selected)||!1,depth:this.depth,open:!!((n=e[i])!=null&&n.open||this.expandAll||s[this.itemOpenKey]),parent:this.parent||null,path:[]};r.path=this.getTreeItemPath(r),this.currentDepthItems.push(r)})},getTreeItemComponent(t){return!this.disabled&&!t.disabled&&t.route?!this.$router||this.hasExternalLink(t)?"a":"router-link":"div"},getTreeItemTabindex(t){return!this.disabled&&!t.disabled&&(t.children||t.branch||this.selectable)&&!(this.unexpandableEmpty&&!t.children)?0:null},getTreeItemPath(t){const e=[t];let s=t.parent;for(;s;)e.push(s),s=s.parent;return e.reverse(),e},getTreeItemPathForOutput(t){return t.path.map(e=>e.originalItem)},expandDepth(t,e){typeof e=="boolean"?t.open=e:t.open=!t.open;const s=this.emitPayload(t);return this.$emit(t.open?"before-open":"before-close",s),!this.unexpandableEmpty&&!t.children&&this.$emit(t.open?"open":"close",s),!0},onLabelClick(t,e){t[this.itemRouteKey]&&this.$router&&!this.hasExternalLink(t)&&e.preventDefault(),(t.children||t.branch&&!this.unexpandableEmpty)&&this.expandDepth(t),this.selectable&&(t.selected=!t.selected);const s=this.emitPayload(t,e);this.$emit("click",s),this.emitItemSelection(t,e)},onLabelKeydown(t,e){if(!(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)&&[13,32,37,38,39,40].includes(e.keyCode)&&((t.children||t.branch)&&([13,32].includes(e.keyCode)?this.expandDepth(t)&&e.preventDefault():e.keyCode===37?this.expandDepth(t,!1)&&e.preventDefault():e.keyCode===39&&this.expandDepth(t,!0)&&e.preventDefault()),[38,40].includes(e.keyCode))){const s=this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'),i=e.target.closest(".w-tree__item-label"),o=e.keyCode===38?-1:1;[...s].some((n,r)=>n.isSameNode(i)?(s[r+o]&&s[r+o].focus(),!0):!1)}e.keyCode===13&&(this.selectable&&(t.selected=!t.selected),this.emitItemSelection(t,e))},emitItemSelection(t,e){const s=this.emitPayload(t,e);this.$emit("update:model-value",s),this.selectable&&this.$emit("select",s)},emitPayload(t,e){const s={item:t.originalItem,depth:this.depth,path:this.getTreeItemPathForOutput(t)};return e&&(s.e=e),(t.children||t.branch&&!this.unexpandableEmpty)&&(s.open=t.open),this.selectable&&(s.selected=t.selected),s},getPreviousSibling(t,e){for(;e&&(t=t.previousElementSibling);)if(t.matches(e))return t;return!1},getNextSibling(t,e){for(;e&&(t=t.nextElementSibling);)if(t.matches(e))return t;return!1},focusTreeItem(t){t&&t.querySelector(".w-tree__item-label").focus()},itemIcon(t){return t.originalItem[this.itemIconKey]||!t.children&&!t.branch&&this.leafIcon||(t.children||t.branch)&&(t.open&&this.branchOpenIcon||this.branchIcon)},hasExternalLink(t){return/^(https?:)?\/\/|mailto:|tel:/.test(t[this.itemRouteKey])},itemClasses(t){return{[t.children||t.branch?"w-tree__item--branch":"w-tree__item--leaf"]:!0,"w-tree__item--disabled":t[this.itemDisabledKey],"w-tree__item--selected":t.selected,"w-tree__item--empty":t.branch&&!t.children,"w-tree__item--unexpandable":t.branch&&!t.children&&this.unexpandableEmpty}}},created(){this.updateCurrentDepthTree(this.data),this.dataPropUnwatch=this.$watch("data",t=>this.updateCurrentDepthTree(t,this.currentDepthItems),{deep:!!this.deepReactivity})},unmounted(){this.dataPropUnwatch()}},x2=ne(k2,[["render",w2]]),C2=Object.freeze(Object.defineProperty({__proto__:null,WAccordion:yy,WAlert:xy,WApp:Ry,WAutocomplete:My,WBadge:Wy,WBreadcrumbs:Fy,WButton:Qy,WCard:sb,WCheckbox:ub,WCheckboxes:mb,WConfirm:vb,WDatePicker:wb,WDialog:Cb,WDivider:Eb,WDrawer:Mb,WFlex:Ob,WForm:Nb,WFormElement:jb,WGrid:Yb,WIcon:qb,WImage:Zb,WInput:u1,WList:h1,WMenu:g1,WNotification:b1,WOverlay:x1,WParallax:D1,WProgress:B1,WRadio:j1,WRadios:U1,WRating:X1,WScrollable:tw,WSelect:rw,WSlider:xw,WSpinner:Dw,WSteps:Vw,WSwitch:Lw,WTable:D0,WTabs:Gw,WTag:$0,WTextarea:R0,WTimeline:H0,WToolbar:F0,WTooltip:K0,WTransitionBounce:G0,WTransitionExpand:Z0,WTransitionFade:s2,WTransitionScale:i2,WTransitionScaleFade:r2,WTransitionSlide:c2,WTransitionSlideFade:m2,WTransitionTwist:v2,WTree:x2},Symbol.toStringTag,{value:"Module"})),_2=Yn.install;Yn.install=(t,e={})=>_2.call(Yn,t,{components:C2,...e});const S2={class:"top-bar__title"},D2={class:"w-flex align-center primary px5"},E2={class:"w-flex align-center top-bar__logo-link no-grow",href:"#top"},T2={class:"logo top-bar__logo"},V2={class:"top-bar__logo-title"},$2={class:"version"},I2={class:"top-bar__items fill-height mr3"},M2={key:1,class:"w-flex grow align-center px5 py2"},A2=["innerHTML"],B2={key:2,class:"py2"},O2=["innerHTML"],R2={key:1,class:"w-flex grow align-center px5 py2"},L2=["innerHTML"],P2={key:2,class:"w-flex grow align-center px5 py2"},N2=["innerHTML"];function W2(t,e,s,i,o,n){const r=R("w-icon"),d=R("w-button"),u=R("w-divider"),c=R("w-list"),m=R("w-menu"),g=R("w-toolbar"),v=en("scroll-to");return f(),B(g,{class:E(["top-bar pa0",{scrolled:s.offsetTop>108}])},{default:p(()=>[l("div",S2,[e[2]||(e[2]=l("span",{class:"top-bar__title-line"},null,-1)),e[3]||(e[3]=l("span",{class:"top-bar__title-line"},null,-1)),l("h1",D2,[st((f(),y("a",E2,[l("div",T2,S(t.todayDate<10?`0${t.todayDate}`:t.todayDate),1),l("div",V2,[e[0]||(e[0]=a("Vue Cal")),l("div",$2,"v. "+S(n.version),1)])])),[[v,"#top"]]),e[1]||(e[1]=l("span",{class:"intro"},[a("Vue.js full cal  "),l("span",{class:"code"},"--no-deps --no-bs"),a("  :metal:")],-1))])]),l("div",I2,[h(m,{"show-on-hover":"","hide-on-menu-click":"","align-right":"",transition:"slide-fade-down","menu-class":"mt0 top-menu top-menu--doc","append-to":".top-bar__items",custom:""},{activator:p(({on:w})=>[h(d,ee({class:"bd0"},pt(w),{text:"",tile:"",color:"secondary",height:"100%"}),{default:p(()=>[h(r,{class:"mr2",lg:""},{default:p(()=>e[4]||(e[4]=[a("material-icons school")])),_:1}),e[5]||(e[5]=l("span",null,"DOC",-1))]),_:2},1040)]),default:p(()=>[h(c,{class:"mt0 pa0 sh2 white--bg bdrs1",nav:"",items:t.docs,"item-route-key":"href","item-class":"pa0"},{item:p(({item:w})=>[w.class==="w-divider"?(f(),B(u,{key:0,class:"grow",color:"grey-light1"})):w.href?st((f(),y("div",M2,[w.icon?(f(),B(r,{key:0,class:"mr2",lg:""},{default:p(()=>[a(S(w.icon),1)]),_:2},1024)):C("",!0),l("span",{innerHTML:w.label},null,8,A2)])),[[v,`${w.href}`]]):(f(),y("span",B2,[w.icon?(f(),B(r,{key:0,class:"mr2",lg:""},{default:p(()=>[a(S(w.icon),1)]),_:2},1024)):C("",!0),l("span",{innerHTML:w.label},null,8,O2)]))]),_:1},8,["items"])]),_:1}),h(m,{"show-on-hover":"","hide-on-menu-click":"","align-right":"",transition:"slide-fade-down","menu-class":"mt0 top-menu top-menu--examples","append-to":".top-bar__items",custom:""},{activator:p(({on:w})=>[st((f(),B(d,ee({class:"bd0"},pt(w),{text:"",tile:"",color:"secondary",href:"#examples",height:"100%"}),{default:p(()=>[h(r,{class:"mr2",lg:""},{default:p(()=>e[6]||(e[6]=[a("material-icons apps")])),_:1}),e[7]||(e[7]=l("span",null,"EXAMPLES",-1))]),_:2},1040)),[[v,"#examples"]])]),default:p(()=>[h(c,{class:"mt0 pa0 sh2 white--bg bdrs1",nav:"",items:t.examples,"item-route-key":"href","item-class":"pa0",style:{"max-height":"90vh",overflow:"auto","white-space":"nowrap"}},{item:p(({item:w})=>[w.class==="w-divider"?(f(),B(u,{key:0,class:"grow",color:"grey-light1"})):w.href?st((f(),y("div",R2,[w.icon?(f(),B(r,{key:0,class:"mr2",lg:""},{default:p(()=>[a(S(w.icon),1)]),_:2},1024)):C("",!0),l("span",{class:E({ml8:!w.icon}),innerHTML:w.label},null,10,L2)])),[[v,`${w.href}`]]):(f(),y("div",P2,[w.icon?(f(),B(r,{key:0,class:"mr2",lg:""},{default:p(()=>[a(S(w.icon),1)]),_:2},1024)):C("",!0),l("span",{class:E({ml8:!w.icon}),innerHTML:w.label},null,10,N2)]))]),_:1},8,["items"])]),_:1})])]),_:1},8,["class"])}var H2={NVM_INC:"/Users/anto/.nvm/versions/node/v22.1.0/include/node",npm_package_funding:"https://github.com/sponsors/antoniandre",MANPATH:"/Users/anto/.nvm/versions/node/v22.1.0/share/man:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/share/man:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man:/usr/share/man:/usr/local/share/man:/Users/anto/.nvm/versions/node/v22.1.0/share/man:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/share/man:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man:",npm_package_repository:"https://github.com/antoniandre/vue-cal",TERM_PROGRAM:"vscode",NODE:"/Users/anto/.nvm/versions/node/v22.1.0/bin/node",NVM_CD_FLAGS:"",npm_package_homepage:"https://antoniandre.github.io/vue-cal",npm_package_scripts_build_bundle:"BUNDLE=true vite build && mv ./dist/style.css ./dist/vuecal.css && rm ./dist/favicon.ico",npm_package_devDependencies__fortawesome_fontawesome_free:"^5.15.4",INIT_CWD:"/Users/anto/localhost/vue-cal",SHELL:"/usr/local/bin/fish",TERM:"xterm-256color",npm_package_unpkg:"dist/vue-cal.iife.js",npm_package_devDependencies_vite:"^5.4.8",OMF_CONFIG:"/Users/anto/.config/omf",TMPDIR:"/var/folders/r7/_rv6vdmj54v1_lr7bzk7f3wr0000gn/T/",npm_package_scripts_lint:"vite lint",TERM_PROGRAM_VERSION:"1.93.1",npm_package_scripts_dev:"vite",npm_package_devDependencies__vitejs_plugin_vue:"^5.1.4",MallocNanoZone:"0",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",npm_config_registry:"https://registry.npmjs.org/",PNPM_HOME:"/Users/anto/Library/pnpm",npm_package_jsdelivr:"dist/vue-cal.iife.js",NVM_DIR:"/Users/anto/.nvm",USER:"anto",npm_package_description:"A Vue JS full calendar, no dependency, no BS. :metal:",npm_package_license:"MIT",npm_package_exports___package_json:"./package.json",COMMAND_MODE:"unix2003",npm_package_exports___import:"./dist/vue-cal.es.js",npm_package_devDependencies_pug:"^3.0.3",PNPM_SCRIPT_SRC_DIR:"/Users/anto/localhost/vue-cal",npm_package_devDependencies__babel_core:"^7.25.2",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.LOIwfyoLoK/Listeners",__CF_USER_TEXT_ENCODING:"0x1F5:0x0:0x0",npm_package_devDependencies_eslint:"^8.57.1",npm_package_devDependencies_postcss:"^8.4.47",npm_execpath:"/Users/anto/Library/pnpm/global/5/.pnpm/pnpm@9.9.0/node_modules/pnpm/bin/pnpm.cjs",npm_package_module:"dist/vue-cal.es.js",npm_config_frozen_lockfile:"",PATH:"/Users/anto/localhost/vue-cal/node_modules/.bin:/Users/anto/Library/pnpm/global/5/.pnpm/pnpm@9.9.0/node_modules/pnpm/dist/node-gyp-bin:/Users/anto/Library/pnpm:/Users/anto/.nvm/versions/node/v22.1.0/bin:/Applications/MAMP/bin/php/php8.2.0/bin:/opt/homebrew/bin:/Applications/MAMP/bin/php/php8.0.8/bin:/Users/antoniandre/.yarn/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/anto/Library/pnpm:/Users/anto/.nvm/versions/node/v22.1.0/bin",npm_package_devDependencies_rollup:"^4.22.4",LaunchInstanceID:"C78DD324-A6C8-426F-8DFB-47D613B82529",npm_package_peerDependencies_vue:"^3.2.0",__CFBundleIdentifier:"com.microsoft.VSCode",npm_package_author:"Antoni Andre ",npm_package_keywords_4:"calendar events",PWD:"/Users/anto/localhost/vue-cal",npm_package_keywords_5:"vue",npm_package_devDependencies_terser:"^5.33.0",npm_command:"run-script",npm_package_keywords_6:"vuejs",npm_package_keywords_7:"vue 3",npm_lifecycle_event:"build",LANG:"en_US.UTF-8",npm_package_name:"vue-cal",npm_package_keywords_0:"vuecal",npm_package_devDependencies_simple_syntax_highlighter:"^3.0.10",npm_package_devDependencies_vue:"^3.5.8",npm_package_keywords_1:"vue cal",NODE_PATH:"/Users/anto/localhost/vue-cal/node_modules/.pnpm/vite@5.4.8_sass@1.79.3_terser@5.33.0/node_modules/vite/bin/node_modules:/Users/anto/localhost/vue-cal/node_modules/.pnpm/vite@5.4.8_sass@1.79.3_terser@5.33.0/node_modules/vite/node_modules:/Users/anto/localhost/vue-cal/node_modules/.pnpm/vite@5.4.8_sass@1.79.3_terser@5.33.0/node_modules:/Users/anto/localhost/vue-cal/node_modules/.pnpm/node_modules:/Users/anto/Library/pnpm/global/5/.pnpm/pnpm@9.9.0/node_modules/pnpm/bin/node_modules:/Users/anto/Library/pnpm/global/5/.pnpm/pnpm@9.9.0/node_modules/pnpm/node_modules:/Users/anto/Library/pnpm/global/5/.pnpm/pnpm@9.9.0/node_modules:/Users/anto/Library/pnpm/global/5/.pnpm/node_modules",npm_package_keywords_2:"vue calendar",npm_package_scripts_build:"vite build --base /vue-cal/",npm_package_devDependencies_sass:"^1.79.3",XPC_FLAGS:"0x0",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",npm_package_keywords_3:"full calendar",npm_package_devDependencies__babel_eslint_parser:"^7.25.1",npm_package_devDependencies_vue_router:"^4.4.5",npm_package_devDependencies_wave_ui:"^3.16.2",npm_package_main:"dist/vue-cal.cjs.js",npm_config_node_gyp:"/Users/anto/Library/pnpm/global/5/.pnpm/pnpm@9.9.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",XPC_SERVICE_NAME:"application.com.microsoft.VSCode.56529699.56529705",npm_package_version:"4.10.0",VSCODE_INJECTION:"1",npm_package_keywords_8:"vue 2",npm_package_devDependencies_autoprefixer:"^10.4.20",HOME:"/Users/anto",SHLVL:"3",npm_package_keywords_9:"ui",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",npm_package_scripts_serve:"vite preview docs --base /vue-cal/",OMF_PATH:"/Users/anto/.local/share/omf",LOGNAME:"anto",npm_package_exports___require:"./dist/vue-cal.cjs.js",npm_lifecycle_script:"vite build --base /vue-cal/",LC_CTYPE:"en_US.UTF-8",VSCODE_GIT_IPC_HANDLE:"/var/folders/r7/_rv6vdmj54v1_lr7bzk7f3wr0000gn/T/vscode-git-d95cd6036f.sock",XDG_DATA_DIRS:"/usr/local/share:/usr/share:/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/contrib/terminal/browser/media/fish_xdg_data",npm_package_exports___dist__:"./dist/*",NVM_BIN:"/Users/anto/.nvm/versions/node/v22.1.0/bin",npm_package_files_3:"LICENSE",npm_package_devDependencies__vue_compiler_sfc:"^3.5.8",npm_config_user_agent:"pnpm/9.9.0 npm/? node/v22.1.0 darwin arm64",VSCODE_GIT_ASKPASS_NODE:"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)",GIT_ASKPASS:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh",npm_package_files_2:"README.md",npm_package_files_1:"package.json",npm_package_files_0:"dist",npm_package_devDependencies__mdi_font:"^7.4.47",SECURITYSESSIONID:"186ab",COLORTERM:"truecolor",npm_node_execpath:"/Users/anto/.nvm/versions/node/v22.1.0/bin/node",NODE_ENV:"production",VITE_APP_VERSION:"4.10.0"};const j2={props:{offsetTop:{type:Number,default:0}},data:()=>({todayDate:new Date().getDate(),docs:[{href:"#installation",label:"Installation"},{href:"#how-to-use",label:"How to use"},{href:"#api",label:"API"},{href:"#date-prototypes",label:"Date prototypes"},{href:"#css-notes",label:"CSS notes"},{href:"#release-notes",label:"Release notes"}],examples:[{class:"heading",href:"#ex--basic",label:"BASIC & VIEW OPTIONS",icon:"material-icons done"},{href:"#ex--basic",label:"Basic, hide weekends"},{href:"#ex--small-cal",label:"Small calendar, no view selector, custom arrows"},{href:"#ex--disable-views",label:"Disable views, default view"},{href:"#ex--min-max-dates",label:"Min / max dates & single click to navigate"},{href:"#ex--disable-days",label:"Disable days"},{href:"#ex--calendar-themes",label:"Calendar themes"},{href:"#ex--hiding-particular-week-days",label:"Hide particular weekdays & show week numbers"},{class:"heading",href:"#ex--internationalization",label:"INTERNATIONALIZATION (I18N)",icon:"material-icons translate"},{href:"#ex--internationalization",label:"Internationalization"},{class:"heading",href:"#ex--timeline",label:"TIMELINE, BUSINESS HOURS & TODAY",icon:"material-icons access_time"},{href:"#ex--timeline",label:"Timeline"},{href:"#ex--special-hours",label:"Business Hours"},{href:"#ex--today-current-time",label:"Today's current time"},{href:"#ex--adding-a-today-button",label:"Adding a Today button"},{class:"heading",href:"#ex--timeless-events",label:"EVENTS",icon:"material-icons event"},{href:"#ex--timeless-events",label:"Timeless events"},{href:"#ex--events-with-time",label:"Events with time information"},{href:"#ex--open-dialog-on-event-click",label:"Open a dialog box on event click / dblclick"},{href:"#ex--events-indicators",label:"Events indicators"},{href:"#ex--events-on-month-view",label:"Display events on month view"},{href:"#ex--edit-and-delete-events",label:"Edit & delete events"},{href:"#ex--create-events",label:"Create events"},{href:"#ex--other-event-creation-methods",label:"Other event creation methods"},{href:"#ex--drag-and-drop",label:"Drag & drop"},{href:"#ex--external-events-drag-and-drop",label:"External events drag & drop"},{href:"#ex--multiple-day-events",label:"Multiple day events"},{href:"#ex--recurring-events",label:"Recurring events"},{href:"#ex--overlapping-events",label:"Overlapping events"},{href:"#ex--background-events",label:"Background events"},{href:"#ex--all-day-events",label:"All day events"},{href:"#ex--splitting-days",label:"Splitting days"},{class:"heading",href:"#ex--emitted-events",label:"COMMUNICATING WITH VUE CAL",icon:"material-icons swap_horiz"},{href:"#ex--emitted-events",label:"Vue Cal emitted events"},{href:"#ex--external-controls",label:"External controls & use of Vue Cal methods"},{href:"#ex--sync-two-calendars",label:"Sync two vue-cal instances"},{href:"#ex--modifying-events-from-outside",label:"Modifying events from outside"},{class:"heading",href:"#ex--timeline-tweaking",label:"ADVANCED CUSTOMIZATION",icon:"material-icons tune"},{href:"#ex--scroll-to-time",label:"Scroll the view to a particular time"},{href:"#ex--timeline-tweaking",label:"Timeline tweaking"},{href:"#ex--custom-events-count",label:"Custom events count"},{href:"#ex--custom-title-and-cells",label:"Custom title & cells"},{href:"#ex--custom-event-rendering",label:"Custom event rendering"},{href:"#ex--custom-day-split-labels",label:"Custom day split labels"}]}),computed:{version(){return H2.VITE_APP_VERSION.replace(/-(\w)(\w+)\.(\d+)/,(t,e,s,i)=>` ${e.toUpperCase()}${s} ${i}`)}},directives:{scrollTo:{mounted:(t,e)=>{t.addEventListener("click",()=>{(e.value&&document.querySelector(e.value)).scrollIntoView()})}}}},z2=Ge(j2,[["render",W2]]),F2={class:"page-container w-flex grey-dark1 wrap justify-center mt12 mb8"},Y2={class:"xs12 sm6 text-center smu-text-left copyright"},U2={class:"xs12 sm6 text-center smu-text-right made-with"},K2={class:"mb1"},q2={href:"https://github.com/antoniandre/vue-cal",target:"_blank"};function J2(t,e,s,i,o,n){const r=R("top-bar"),d=R("router-view"),u=R("w-button"),c=R("w-transition-twist"),m=R("w-icon"),g=R("w-tooltip"),v=en("scroll-to"),w=en("scroll");return st((f(),y("div",{class:E({ready:t.ready})},[h(r,{"offset-top":t.offsetTop},null,8,["offset-top"]),h(d),h(c,null,{default:p(()=>[st(h(u,{class:"go-top ma2",icon:"material-icons keyboard_arrow_up",fixed:"",bottom:"",right:"",round:"",xl:""},null,512),[[ol,!t.goTopHidden],[v,"#top"]])]),_:1}),l("footer",F2,[e[16]||(e[16]=l("div",{class:"w-divider fill-width mb8"},null,-1)),l("div",Y2,"Copyright © "+S(new Date().getFullYear())+" Antoni André, all rights reserved.",1),l("div",U2,[l("div",K2,[e[10]||(e[10]=a("This documentation is made with")),h(g,null,{activator:p(({on:_})=>[h(m,pt(_),{default:p(()=>e[0]||(e[0]=[a("fab fa-vuejs")])),_:2},1040)]),default:p(()=>[e[1]||(e[1]=a("Vue"))]),_:1}),h(g,null,{activator:p(({on:_})=>[h(m,pt(_),{default:p(()=>e[2]||(e[2]=[a("fab fa-html5")])),_:2},1040)]),default:p(()=>[e[3]||(e[3]=a("HTML5 & Pug"))]),_:1}),h(g,null,{activator:p(({on:_})=>[h(m,ee({class:"ml1"},pt(_)),{default:p(()=>e[4]||(e[4]=[a("fab fa-css3")])),_:2},1040)]),default:p(()=>[e[5]||(e[5]=a("CSS3"))]),_:1}),h(g,null,{activator:p(({on:_})=>[h(m,ee({class:"ml1"},pt(_)),{default:p(()=>e[6]||(e[6]=[a("fab fa-sass")])),_:2},1040)]),default:p(()=>[e[7]||(e[7]=a("SCSS"))]),_:1}),e[11]||(e[11]=l("span",{class:"ml2 mr1"},"&",-1)),h(g,null,{activator:p(({on:_})=>[h(m,ee({class:"heart"},pt(_)),{default:p(()=>e[8]||(e[8]=[a("material-icons favorite")])),_:2},1040)]),default:p(()=>[e[9]||(e[9]=a("Love"))]),_:1})]),e[14]||(e[14]=a("View project on ")),l("a",q2,[h(m,null,{default:p(()=>e[12]||(e[12]=[a("fab fa-github")])),_:1}),e[13]||(e[13]=a(" Github"))]),e[15]||(e[15]=a("."))])])],2)),[[w,n.onScroll]])}const G2={name:"app",components:{TopBar:z2},data:()=>({ready:!1,offsetTop:0,goTopHidden:!0}),created(){setTimeout(()=>this.ready=!0,500)},methods:{onScroll(){this.offsetTop=window.pageYOffset||document.documentElement.scrollTop,this.goTopHidden=this.offsetTop<200||document.documentElement.offsetHeight-document.documentElement.scrollTop-window.innerHeight<=100}},directives:{scroll:{mounted:(t,e)=>{const s=i=>{e.value(i,t)&&window.removeEventListener("scroll",s)};window.addEventListener("scroll",s)}},scrollTo:{mounted:(t,e)=>{t.addEventListener("click",()=>{(e.value&&document.querySelector(e.value)).scrollIntoView()})}}}},X2=Ge(G2,[["render",J2]]),_i=mr(X2);_i.use(Hv);_i.use(Yn,{iconsLigature:"material-icons",colors:{primary:"#42b983",secondary:"#2c3e50",lightgrey:"#eee"}});_i.mount("#app");export{Ci as V,Ge as _,h as a,l as b,y as c,f as o,R as r,S as t}; +

Release notes

`,8)),h($)])}const Lv=[{code:"sq",label:"Albanian"},{code:"ar",label:"Arabic"},{code:"bn",label:"Bangla"},{code:"bs",label:"Bosnian"},{code:"bg",label:"Bulgarian"},{code:"ca",label:"Catalan"},{code:"cs",label:"Czech"},{code:"zh-cn",label:"Chinese (Simplified)"},{code:"zh-hk",label:"Chinese (Traditional)"},{code:"hr",label:"Croatian"},{code:"da",label:"Danish"},{code:"nl",label:"Dutch"},{code:"en",label:"English"},{code:"et",label:"Estonian"},{code:"fa",label:"Farsi"},{code:"fr",label:"French"},{code:"ka",label:"Georgian"},{code:"de",label:"German"},{code:"el",label:"Greek"},{code:"he",label:"Hebrew"},{code:"hu",label:"Hungarian"},{code:"is",label:"Icelandic"},{code:"it",label:"Italian"},{code:"id",label:"Indonesian"},{code:"ja",label:"Japanese"},{code:"ko",label:"Korean"},{code:"lt",label:"Lithuanian"},{code:"mn",label:"Mongolian"},{code:"no",label:"Norwegian"},{code:"pl",label:"Polish"},{code:"pt-br",label:"Portuguese Brasilian"},{code:"ro",label:"Romanian"},{code:"ru",label:"Russian"},{code:"sr",label:"Serbian"},{code:"sk",label:"Slovak"},{code:"sl",label:"Slovenian"},{code:"es",label:"Spanish"},{code:"sv",label:"Swedish"},{code:"tr",label:"Turkish"},{code:"uk",label:"Ukrainian"},{code:"vi",label:"Vietnamese"}],Pv={components:{VueCal:Ci,SshPre:xi,HighlightMessage:ul,TodoListItem:Zh,MainDemo:dm,Examples:Kg,Api:Zg,ReleaseNotes:iv},data:()=>({localesList:Lv}),computed:{nowFormatted(){return Date.prototype.format&&new Date().format("YYYY{MM}DD")}}},Nv=Ge(Pv,[["render",Rv]]),Wv=[{path:"/",component:Nv},{path:"/test",component:()=>ue(()=>import("./isolated-test-view-CfCHNBQX.js"),__vite__mapDeps([0,1]))}],Hv=Ep({history:np("/vue-cal/"),routes:Wv});var jv=Object.defineProperty,$r=t=>{throw TypeError(t)},zv=(t,e,s)=>e in t?jv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,$n=(t,e,s)=>zv(t,typeof e!="symbol"?e+"":e,s),Ir=(t,e,s)=>e.has(t)||$r("Cannot "+s),Fl=(t,e,s)=>(Ir(t,e,"read from private field"),s?s.call(t):e.get(t)),Mr=(t,e,s)=>e.has(t)?$r("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),Ar=(t,e,s,i)=>(Ir(t,e,"write to private field"),e.set(t,s),s);const Fv=Zt({on:"#app",breakpoints:{xs:600,sm:900,md:1200,lg:1700,xl:9999},css:{colorShades:!0,colorShadeCssVariables:!1,breakpointSpaces:!1,breakpointLayoutClasses:!0,grid:12},colors:{light:{primary:"#234781",secondary:"#d3ebff",info:"#3d9ff5",warning:"#f80",success:"#54b946",error:"#f65555"},dark:{primary:"#89b6d2",secondary:"#375b6a",info:"#3d9ff5",warning:"#f80",success:"#54b946",error:"#f65555"}},theme:"light",icons:[],iconsLigature:!1,notificationManager:{align:"right",transition:"default"},presets:{}}),Br=(t,e=Fv)=>{if(!Object.keys(e).length)e=Object.assign(e,t);else for(const s in t){const i=t[s];typeof i=="object"&&typeof e[s]=="object"?Br(t[s],e[s]):e[s]=i}return e},an=t=>console.warn(`Wave UI: ${t}`),Us=t=>console.error(`Wave UI: ${t}`),Yv=t=>{["light","dark"].forEach(e=>{var s,i,o;const n=t.colors[e];n.shades={};for(const r in n){if(r==="shades")continue;const d=n[r],u={label:r,color:(o=(i=((s=n[r])==null?void 0:s.color)??n[r])==null?void 0:i.replace)==null?void 0:o.call(i,"#","")},c=u.color;if(c){c.length===3&&(u.color=c[0]+""+c[0]+c[1]+c[1]+c[2]+c[2]);for(let m=1;m<=6;m++){const g=Gv(`#${u.color}`,m*((d==null?void 0:d.lightIncrement)??16)+((d==null?void 0:d.lightOffset)??0)),v=Xv(`#${u.color}`,m*((d==null?void 0:d.darkIncrement)??12.4)+((d==null?void 0:d.darkOffset)??0));n.shades[`${u.label}-light${m}`]=g,n.shades[`${u.label}-dark${m}`]=v}}}})},La=(t,e)=>{const s={...e.reduce((i,o)=>{i[o.label]=o.color;const n=(o.shades||[]).reduce((r,d)=>(r[d.label]=d.color,r),{});return{...i,...n}},{...t,...t.shades})};return delete s.shades,s};function kn(t,e,s){return Math.min(Math.max(t,e),s)}function xn(t){const e=t.toString(16);return e.length===1&&`0${e}`||e.length===2&&e||Us(`expected value from 0~255, got: ${t}`)||""}function Uv(t){return/^#[0-9a-f]{6}([0-9a-f]{2})?$/i.test(t)}function Kv(t){return/^#[0-9a-f]{3}([0-9a-f])?$/i.test(t)}function qv(t){return`#${t.substring(1).split("").map(e=>`${e}${e}`).join("")}`}function Jv(t){return Uv(t)&&t||Kv(t)&&qv(t)||Us(`expected color hex string, got '${t}'`)||""}function Pa(t){const e=Jv(t),s=parseInt(e.substring(1,3),16),i=parseInt(e.substring(3,5),16),o=parseInt(e.substring(5,7),16),n=e.length===9?parseInt(e.substring(7,9),16)/255:1;return{red:s,green:i,blue:o,alpha:n,hasAlpha:e.length===9}}function Na(t,e,s,i){return`#${xn(t)}${xn(e)}${xn(s)}${i?xn(Math.floor(i*255)):""}`}function Or(t,e,s=50){const i=Pa(t),o=Pa(e),n=kn(s,0,100)/100,r=2*n-1,d=i.alpha-o.alpha,u=((r*d===-1?r:(r+d)/(1+r*d))+1)/2,c=1-u,m=kn(Math.round(i.red*u+o.red*c),0,255),g=kn(Math.round(i.green*u+o.green*c),0,255),v=kn(Math.round(i.blue*u+o.blue*c),0,255),w=i.alpha*n+o.alpha*(1-n);return i.hasAlpha||o.hasAlpha||w!==1?Na(m,g,v,w):Na(m,g,v)}function Gv(t,e=15){return Or("#ffffff",t,e)}function Xv(t,e=12.4){return Or("#000000",t,e)}const Wa=[{label:"pink",color:"#e91e63",shades:[{label:"pink-light6",color:"#fdebf1"},{label:"pink-light5",color:"#faccdc"},{label:"pink-light4",color:"#f7adc6"},{label:"pink-light3",color:"#f48eb1"},{label:"pink-light2",color:"#f16f9b"},{label:"pink-light1",color:"#ee5085"},{label:"pink-dark1",color:"#d31555"},{label:"pink-dark2",color:"#b6124a"},{label:"pink-dark3",color:"#990f3e"},{label:"pink-dark4",color:"#7c0c32"},{label:"pink-dark5",color:"#600927"},{label:"pink-dark6",color:"#43071b"}]},{label:"purple",color:"#a741b9",shades:[{label:"purple-light6",color:"#f9f2fa"},{label:"purple-light5",color:"#eed9f2"},{label:"purple-light4",color:"#e3c1e9"},{label:"purple-light3",color:"#d8a8e1"},{label:"purple-light2",color:"#cd90d8"},{label:"purple-light1",color:"#c277cf"},{label:"purple-dark1",color:"#9239a2"},{label:"purple-dark2",color:"#7d318a"},{label:"purple-dark3",color:"#682873"},{label:"purple-dark4",color:"#53205b"},{label:"purple-dark5",color:"#3d1844"},{label:"purple-dark6",color:"#28102d"}]},{label:"deep-purple",color:"#673ab7",shades:[{label:"deep-purple-light6",color:"#f1edf9"},{label:"deep-purple-light5",color:"#daceef"},{label:"deep-purple-light4",color:"#c2afe6"},{label:"deep-purple-light3",color:"#ab90dc"},{label:"deep-purple-light2",color:"#9471d2"},{label:"deep-purple-light1",color:"#7c52c8"},{label:"deep-purple-dark1",color:"#5b33a1"},{label:"deep-purple-dark2",color:"#4e2c8b"},{label:"deep-purple-dark3",color:"#422575"},{label:"deep-purple-dark4",color:"#351e5f"},{label:"deep-purple-dark5",color:"#291749"},{label:"deep-purple-dark6",color:"#1c1033"}]},{label:"indigo",color:"#3f51b5",shades:[{label:"indigo-light6",color:"#eff1fa"},{label:"indigo-light5",color:"#d1d6ef"},{label:"indigo-light4",color:"#b3bae4"},{label:"indigo-light3",color:"#949fda"},{label:"indigo-light2",color:"#7684cf"},{label:"indigo-light1",color:"#5869c5"},{label:"indigo-dark1",color:"#37479f"},{label:"indigo-dark2",color:"#303e8a"},{label:"indigo-dark3",color:"#283474"},{label:"indigo-dark4",color:"#212a5f"},{label:"indigo-dark5",color:"#192149"},{label:"indigo-dark6",color:"#121734"}]},{label:"blue",color:"#2196f3",shades:[{label:"blue-light6",color:"#e6f3fe"},{label:"blue-light5",color:"#c6e4fc"},{label:"blue-light4",color:"#a5d4fa"},{label:"blue-light3",color:"#84c5f8"},{label:"blue-light2",color:"#63b5f7"},{label:"blue-light1",color:"#42a6f5"},{label:"blue-dark1",color:"#0c85e5"},{label:"blue-dark2",color:"#0b72c4"},{label:"blue-dark3",color:"#095fa3"},{label:"blue-dark4",color:"#074c82"},{label:"blue-dark5",color:"#053961"},{label:"blue-dark6",color:"#032540"}]},{label:"light-blue",color:"#03a9f4",shades:[{label:"light-blue-light6",color:"#e7f7ff"},{label:"light-blue-light5",color:"#c0ebfe"},{label:"light-blue-light4",color:"#98defe"},{label:"light-blue-light3",color:"#71d2fd"},{label:"light-blue-light2",color:"#4ac5fd"},{label:"light-blue-light1",color:"#22b9fc"},{label:"light-blue-dark1",color:"#0393d5"},{label:"light-blue-dark2",color:"#027eb6"},{label:"light-blue-dark3",color:"#026896"},{label:"light-blue-dark4",color:"#015277"},{label:"light-blue-dark5",color:"#013d58"},{label:"light-blue-dark6",color:"#012739"}]},{label:"cyan",color:"#04cbe5",shades:[{label:"cyan-light6",color:"#e9fcff"},{label:"cyan-light5",color:"#baf6fe"},{label:"cyan-light4",color:"#8bf0fd"},{label:"cyan-light3",color:"#5ceafc"},{label:"cyan-light2",color:"#2ce3fb"},{label:"cyan-light1",color:"#04d8f4"},{label:"cyan-dark1",color:"#04b2c8"},{label:"cyan-dark2",color:"#0398ac"},{label:"cyan-dark3",color:"#037f8f"},{label:"cyan-dark4",color:"#026673"},{label:"cyan-dark5",color:"#024c56"},{label:"cyan-dark6",color:"#01333a"}]},{label:"teal",color:"#1db3a8",shades:[{label:"teal-light6",color:"#e2faf9"},{label:"teal-light5",color:"#b8f3ef"},{label:"teal-light4",color:"#8eede6"},{label:"teal-light3",color:"#64e6dc"},{label:"teal-light2",color:"#39dfd3"},{label:"teal-light1",color:"#20c7bb"},{label:"teal-dark1",color:"#199b92"},{label:"teal-dark2",color:"#15847c"},{label:"teal-dark3",color:"#116c65"},{label:"teal-dark4",color:"#0e544f"},{label:"teal-dark5",color:"#0a3c39"},{label:"teal-dark6",color:"#062523"}]},{label:"green",color:"#4caf50",shades:[{label:"green-light6",color:"#edf7ed"},{label:"green-light5",color:"#d2ebd3"},{label:"green-light4",color:"#b7e0b8"},{label:"green-light3",color:"#9bd49e"},{label:"green-light2",color:"#80c883"},{label:"green-light1",color:"#65bc69"},{label:"green-dark1",color:"#439b47"},{label:"green-dark2",color:"#3a863d"},{label:"green-dark3",color:"#327234"},{label:"green-dark4",color:"#295e2b"},{label:"green-dark5",color:"#204a22"},{label:"green-dark6",color:"#173518"}]},{label:"light-green",color:"#90d73f",shades:[{label:"light-green-light6",color:"#f4fbec"},{label:"light-green-light5",color:"#e5f6d3"},{label:"light-green-light4",color:"#d7f1b9"},{label:"light-green-light3",color:"#c8eba0"},{label:"light-green-light2",color:"#b9e687"},{label:"light-green-light1",color:"#abe16d"},{label:"light-green-dark1",color:"#80cc2a"},{label:"light-green-dark2",color:"#70b225"},{label:"light-green-dark3",color:"#609820"},{label:"light-green-dark4",color:"#4f7d1a"},{label:"light-green-dark5",color:"#3f6315"},{label:"light-green-dark6",color:"#2e490f"}]},{label:"lime",color:"#cee029",shades:[{label:"lime-light6",color:"#fafce9"},{label:"lime-light5",color:"#f4f8ce"},{label:"lime-light4",color:"#edf4b2"},{label:"lime-light3",color:"#e7f097"},{label:"lime-light2",color:"#e1ec7b"},{label:"lime-light1",color:"#dae85f"},{label:"lime-dark1",color:"#bbcc1e"},{label:"lime-dark2",color:"#a1b01a"},{label:"lime-dark3",color:"#889516"},{label:"lime-dark4",color:"#6f7912"},{label:"lime-dark5",color:"#565d0e"},{label:"lime-dark6",color:"#3c420a"}]},{label:"yellow",color:"#ffe70f",shades:[{label:"yellow-light6",color:"#fffce0"},{label:"yellow-light5",color:"#fff9c4"},{label:"yellow-light4",color:"#fff6a8"},{label:"yellow-light3",color:"#fff38c"},{label:"yellow-light2",color:"#fff170"},{label:"yellow-light1",color:"#ffee54"},{label:"yellow-dark1",color:"#eed700"},{label:"yellow-dark2",color:"#cfba00"},{label:"yellow-dark3",color:"#af9e00"},{label:"yellow-dark4",color:"#908100"},{label:"yellow-dark5",color:"#706500"},{label:"yellow-dark6",color:"#504800"}]},{label:"amber",color:"#ffc107",shades:[{label:"amber-light6",color:"#fffaed"},{label:"amber-light5",color:"#fff1c6"},{label:"amber-light4",color:"#ffe7a0"},{label:"amber-light3",color:"#ffde7a"},{label:"amber-light2",color:"#ffd454"},{label:"amber-light1",color:"#ffcb2d"},{label:"amber-dark1",color:"#e6ad00"},{label:"amber-dark2",color:"#c79500"},{label:"amber-dark3",color:"#a77d00"},{label:"amber-dark4",color:"#886600"},{label:"amber-dark5",color:"#684e00"},{label:"amber-dark6",color:"#483600"}]},{label:"orange",color:"#ff9800",shades:[{label:"orange-light6",color:"#fff5e6"},{label:"orange-light5",color:"#ffe5bf"},{label:"orange-light4",color:"#ffd699"},{label:"orange-light3",color:"#ffc673"},{label:"orange-light2",color:"#ffb74d"},{label:"orange-light1",color:"#ffa726"},{label:"orange-dark1",color:"#df8500"},{label:"orange-dark2",color:"#c07200"},{label:"orange-dark3",color:"#a05f00"},{label:"orange-dark4",color:"#814d00"},{label:"orange-dark5",color:"#613a00"},{label:"orange-dark6",color:"#412700"}]},{label:"deep-orange",color:"#ff6825",shades:[{label:"deep-orange-light6",color:"#fff0e9"},{label:"deep-orange-light5",color:"#ffd9c8"},{label:"deep-orange-light4",color:"#ffc2a8"},{label:"deep-orange-light3",color:"#ffac87"},{label:"deep-orange-light2",color:"#ff9566"},{label:"deep-orange-light1",color:"#ff7f46"},{label:"deep-orange-dark1",color:"#ff5205"},{label:"deep-orange-dark2",color:"#e54600"},{label:"deep-orange-dark3",color:"#c53d00"},{label:"deep-orange-dark4",color:"#a63300"},{label:"deep-orange-dark5",color:"#862900"},{label:"deep-orange-dark6",color:"#661f00"}]},{label:"red",color:"#fa3317",shades:[{label:"red-light6",color:"#fee3df"},{label:"red-light5",color:"#fec6be"},{label:"red-light4",color:"#fdaa9e"},{label:"red-light3",color:"#fc8d7d"},{label:"red-light2",color:"#fc705d"},{label:"red-light1",color:"#fb543c"},{label:"red-dark1",color:"#ec2205"},{label:"red-dark2",color:"#cd1d04"},{label:"red-dark3",color:"#ae1904"},{label:"red-dark4",color:"#8f1403"},{label:"red-dark5",color:"#701002"},{label:"red-dark6",color:"#520c02"}]},{label:"brown",color:"#845848",shades:[{label:"brown-light6",color:"#f2eae7"},{label:"brown-light5",color:"#e2d1ca"},{label:"brown-light4",color:"#d2b7ad"},{label:"brown-light3",color:"#c39e90"},{label:"brown-light2",color:"#b38473"},{label:"brown-light1",color:"#a16b58"},{label:"brown-dark1",color:"#744d3f"},{label:"brown-dark2",color:"#634236"},{label:"brown-dark3",color:"#53372d"},{label:"brown-dark4",color:"#422c24"},{label:"brown-dark5",color:"#32211b"},{label:"brown-dark6",color:"#211612"}]},{label:"blue-grey",color:"#6c8693",shades:[{label:"blue-grey-light6",color:"#f0f3f4"},{label:"blue-grey-light5",color:"#dae1e4"},{label:"blue-grey-light4",color:"#c4cfd4"},{label:"blue-grey-light3",color:"#aebcc4"},{label:"blue-grey-light2",color:"#98aab3"},{label:"blue-grey-light1",color:"#8298a3"},{label:"blue-grey-dark1",color:"#5f7581"},{label:"blue-grey-dark2",color:"#51656f"},{label:"blue-grey-dark3",color:"#44545c"},{label:"blue-grey-dark4",color:"#36444a"},{label:"blue-grey-dark5",color:"#293338"},{label:"blue-grey-dark6",color:"#1c2226"}]},{label:"grey",color:"#848484",shades:[{label:"grey-light6",color:"#f7f7f7"},{label:"grey-light5",color:"#e4e4e4"},{label:"grey-light4",color:"#d1d1d1"},{label:"grey-light3",color:"#bdbdbd"},{label:"grey-light2",color:"#aaaaaa"},{label:"grey-light1",color:"#979797"},{label:"grey-dark1",color:"#747474"},{label:"grey-dark2",color:"#646464"},{label:"grey-dark3",color:"#555555"},{label:"grey-dark4",color:"#454545"},{label:"grey-dark5",color:"#353535"},{label:"grey-dark6",color:"#252525"}]},{label:"black",color:"#000"},{label:"white",color:"#fff"},{label:"transparent",color:"transparent"},{label:"inherit",color:"inherit"}],on={cssScope:".w-app",baseIncrement:4};let Yl={keys:[],values:[]},Ha=null;const Qv=(t,e)=>{var s;let i="";const o={},{info:n,warning:r,success:d,error:u,shades:c,...m}=t,{cssScope:g}=on;for(const _ in m)i+=`${g} .${_}--bg{background-color:var(--w-${_}-color)}${g} .${_}{color:var(--w-${_}-color)}`;for(const _ in c)i+=`${g} .${_}--bg{background-color:${c[_]}}${g} .${_}{color:${c[_]}}`;const v={...m,info:n,warning:r,success:d,error:u};for(const _ in v)o[_]=((s=v[_])==null?void 0:s.color)??v[_];if(e)for(const _ in c)o[_]=c[_];let w="";return Object.entries(o).forEach(([_,M])=>{w+=`--w-${_}-color: ${M};`}),`:root{${w}}${i}`},Zv=(t,e)=>{let s="";const{cssScope:i}=on;return t.forEach(({min:o,label:n})=>{if(n==="xs")for(let r=0;r{let e="";const{cssScope:s,baseIncrement:i}=on,o=["show{display:block}","hide{display:none}","d-flex{display:flex}","d-iflex{display:inline-flex}","d-block{display:block}","d-iblock{display:inline-block}","text-left{text-align:left}","text-center{text-align:center}","text-right{text-align:right}","text-nowrap{white-space:nowrap}","row{flex-direction:row}","column{flex-direction:column}","column-reverse{flex-direction:column-reverse}","grow{flex-grow:1;flex-basis:auto}","no-grow{flex-grow:0}","shrink{flex-shrink:1;margin-left:auto;margin-right:auto}","no-shrink{flex-shrink:0}","wrap{flex-wrap: wrap}","no-wrap{flex-wrap: nowrap}","fill-width{width:100%}","fill-height{height:100%}","basis-zero{flex-basis:0}","align-start{align-items:flex-start}","align-center{align-items:center}","align-end{align-items:flex-end}","align-self-start{align-self:flex-start}","align-self-center{align-self:center}","align-self-end{align-self:flex-end}","align-self-stretch{align-self:stretch}","justify-start{justify-content:flex-start}","justify-center{justify-content:center}","justify-end{justify-content:flex-end}","justify-space-between{justify-content:space-between}","justify-space-around{justify-content:space-around}","justify-space-evenly{justify-content:space-evenly}"],n=Array(12).fill();return t.forEach(({label:r,min:d})=>{r!=="xs"&&(e+=`@media(min-width:${d}px){`+o.map(u=>`${s} .${r}u-${u}`).join("")+n.map((u,c)=>`.w-grid.${r}u-columns${c+1}{grid-template-columns:repeat(${c+1},1fr);}`).join("")+n.map((u,c)=>`.w-flex.${r}u-gap${c+1},.w-grid.${r}u-gap${c+1}{gap:${(c+1)*i}px;}`).join("")+`.w-flex.${r}u-gap0,.w-flex.${r}u-gap0{gap:0}}`)}),t.forEach(({label:r,min:d,max:u})=>{e+=`@media (min-width:${d}px) and (max-width:${u}px){`+o.map(c=>`${s} .${r}-${c}`).join("")+n.map((c,m)=>`.w-grid.${r}-columns${m+1}{grid-template-columns:repeat(${m+1},1fr);}`).join("")+n.map((c,m)=>`.w-flex.${r}-gap${m+1},.w-grid.${r}-gap${m+1}{gap:${(m+1)*i}px;}`).join("")+`.w-flex.${r}-gap0,.w-flex.${r}-gap0{gap:0}}`}),t.forEach(({label:r,max:d})=>{r!=="xl"&&(e+=`@media (max-width:${d}px){`+o.map(u=>`${s} .${r}d-${u}`).join("")+n.map((u,c)=>`.w-grid.${r}d-columns${c+1}{grid-template-columns:repeat(${c+1},1fr);}`).join("")+n.map((u,c)=>`.w-flex.${r}d-gap${c+1},.w-grid.${r}d-gap${c+1}{gap:${(c+1)*i}px;}`).join("")+`.w-flex.${r}d-gap0,.w-flex.${r}d-gap0{gap:0}}`)}),e},ja=t=>{const e=window.innerWidth,s=Yl.values.slice(0);s.push(e),s.sort((o,n)=>o-n);const i=Yl.keys[s.indexOf(e)]||"xl";i!==Ha&&(Ha=i,t.breakpoint={name:i,xs:i==="xs",sm:i==="sm",md:i==="md",lg:i==="lg",xl:i==="xl",width:e}),t.breakpoint.width=window.innerWidth},ty=t=>{const{config:e}=t;if(Yl={keys:Object.keys(e.breakpoints),values:Object.values(e.breakpoints)},!document.getElementById("wave-ui-styles")){const s=document.createElement("style");s.id="wave-ui-styles",s.innerHTML=ny(e);const i=document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];i?i.before(s):document.head.appendChild(s)}ja(t),window.addEventListener("resize",()=>ja(t))},sy=(t,e,s)=>{if(!document.getElementById("wave-ui-colors")){const i=document.createElement("style");i.id="wave-ui-colors",i.innerHTML=Qv(t,e);const o=document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];o?o.before(i):document.head.appendChild(i)}},ny=t=>{const e=Object.entries(t.breakpoints),s=e.map(([n,r],d)=>{const[,u=0]=e[d-1]||[];return{label:n,min:u?u+1:0,max:r}}),i=getComputedStyle(document.documentElement);on.cssScope=i.getPropertyValue("--w-css-scope"),on.baseIncrement=parseInt(i.getPropertyValue("--w-base-increment"));let o="";return o+=Zv(s,t.css.grid),t.css.breakpointLayoutClasses&&(o+=ey(s)),o},ly=["innerHTML"];function iy(t,e,s,i,o,n){const r=R("w-alert");return f(),B(Pd,{to:".w-app"},[h(rl,{class:E(["w-notification-manager",{"w-notification-manager--left":n.conf.align==="left"}]),tag:"div",name:n.transition,appear:""},{default:p(()=>[(f(!0),y(H,null,ge(n.notifications,d=>(f(),y(H,null,[d._value?(f(),B(r,ee({class:"white--bg",key:d._uid,modelValue:d._value,"onUpdate:modelValue":u=>d._value=u,onClose:d.dismiss,ref_for:!0},n.notifProps(d)),{default:p(()=>[l("div",{innerHTML:d.message},null,8,ly)]),_:2},1040,["modelValue","onUpdate:modelValue","onClose"])):C("",!0)],64))),256))]),_:1},8,["class","name"])])}const ne=(t,e)=>{const s=t.__vccOpts||t;for(const[i,o]of e)s[i]=o;return s},ay={name:"w-notification-manager",computed:{conf(){return this.$waveui.config.notificationManager},notifications(){var t;return(t=this.$waveui._notificationManager)==null?void 0:t.notifications},transition(){return this.conf.transition?this.conf.transition.replace("default",`slide-${this.conf.align==="left"?"right":"left"}`):""}},methods:{notifProps(t){const{_value:e,_uid:s,message:i,timeout:o,...n}=t;return n.dismiss&&(n.dismiss=!0),n}}},oy=ne(ay,[["render",iy]]);var Ks;const Rr=class In{constructor(){if($n(this,"notifications"),$n(this,"_uid"),$n(this,"_notificationDefaults"),Fl(In,Ks))return Fl(In,Ks);this.notifications=[],this._uid=0,this._notificationDefaults={_uid:0,_value:!0,message:"",timeout:4e3,dismiss:!0},Ar(In,Ks,this)}notify(...e){let s={...this._notificationDefaults,_uid:this._uid++};if(typeof e[0]=="object")s={...s,...e[0]};else{const[i,o,n]=e;s={...s,message:i||"",[o===void 0?"info":o]:!0,timeout:n||n===0?parseFloat(n):4e3}}s.dismiss&&(s.dismiss=()=>this.dismiss(s._uid)),this.notifications.push(s),~~s.timeout&&setTimeout(()=>this.dismiss(s._uid),s.timeout)}dismiss(e){this.notifications=this.notifications.filter(s=>s._uid!==e)}};Ks=new WeakMap,Mr(Rr,Ks);let ry=Rr;const dy=(t,e,s)=>{const i=document.createElement("div");t.appendChild(i);const o=mr(ui({...oy,inject:["$waveui"]})).provide("$waveui",s);for(const n in e){const r=e[n];o.component(r.name,{...r,inject:["$waveui"]})}o.mount(i),i.remove()};let za=!1;const uy=t=>{const e=window.matchMedia("(prefers-color-scheme: dark)");t.preferredTheme=e.matches?"dark":"light",t.switchTheme(t.preferredTheme),e.addEventListener("change",s=>{t.preferredTheme=s.matches?"dark":"light",t.switchTheme(t.preferredTheme)})},cy=(t,e)=>{var s,i;for(const o in e)if((s=t.props)!=null&&s[o])t.props[o].default=e[o];else{let n=!1;if(Array.isArray(t.mixins)&&t.mixins.length){for(const r of t.mixins)if((i=r==null?void 0:r.props)!=null&&i[o]){r.props[o].default=e[o],n=!0;break}n||an(`Attempting to set a preset on a prop that doesn't exist: \`${t.name}.${o}\`.`);continue}}};var Fn;const Lr=class Mn{constructor(e,s={}){if($n(this,"$waveui",{breakpoint:{name:"",xs:!1,sm:!1,md:!1,lg:!1,xl:!1,width:null},config:{},colors:{},preferredTheme:null,theme:null,_notificationManager:null,notify(...r){this._notificationManager.notify(...r)},switchTheme(r,d=!1){var u,c;this.theme=r,document.documentElement.setAttribute("data-theme",r),(c=(u=document.head.querySelector("#wave-ui-colors"))==null?void 0:u.remove)==null||c.call(u);const m=this.config.colors[this.theme];sy(m,this.config.css.colorShadeCssVariables),this.colors=La(m,Wa)}}),Fl(Mn,Fn))return;if(this.$waveui._notificationManager=new ry,s.theme||(s.theme="light"),s.colors){const r={...s.colors};s.colors.light||(s.colors.light=r),s.colors.dark||(s.colors.dark=r),s.colors={light:s.colors.light,dark:s.colors.dark}}let{components:i,...o}=s;o=this.$waveui.config=Br(o),o.css.colorShades&&Yv(o);const n=Zt(this.$waveui);e.config.globalProperties.$waveui=n,e.provide("$waveui",n),o.theme!=="auto"&&(this.$waveui.colors=La(o.colors[o.theme],Wa))}static install(e,s={}){var i;e.directive("focus",{mounted:n=>setTimeout(()=>n.focus(),0)}),e.directive("scroll",{mounted:(n,r)=>{const d=u=>{r.value(u,n)&&window.removeEventListener("scroll",d)};window.addEventListener("scroll",d)}});const{components:o={}}=s||{};for(const n in o){const r=o[n];(i=s.presets)!=null&&i[r.name]&&cy(r,s.presets[r.name]),e.component(r.name,r)}e.mixin({beforeMount(){if(!za){za=!0;const n=St("$waveui"),{config:r}=n,d=document.querySelector(r.on)||document.body;d.classList.add("w-app"),r.theme==="auto"?uy(n):n.switchTheme(r.theme,!0),ty(n),dy(d,o,n),e._context.mixins.find(u=>u.mounted&&delete u.mounted)}}}),new Mn(e,s),Ar(Mn,Fn,!0)}};Fn=new WeakMap,Mr(Lr,Fn,!1);let Yn=Lr;const py=["aria-expanded"],hy=["onClick","onFocus","onKeypress","tabindex"],my=["innerHTML"],fy=["innerHTML"];function gy(t,e,s,i,o,n){const r=R("w-button"),d=R("w-transition-expand");return f(),y("div",{class:E(["w-accordion",n.accordionClasses])},[(f(!0),y(H,null,ge(t.accordionItems,(u,c)=>(f(),y("div",{class:E(["w-accordion__item",n.itemClasses(u)]),key:c,"aria-expanded":u._expanded?"true":"false"},[l("div",{class:E(["w-accordion__item-title",s.titleClass]),onClick:m=>!u._disabled&&n.toggleItem(u,m),onFocus:m=>t.$emit("focus",n.getOriginalItem(u)),onKeypress:vt(m=>!u._disabled&&n.toggleItem(u,m),["enter"]),tabindex:!u._disabled&&0},[s.expandIcon&&!s.expandIconRight?(f(),B(r,{key:0,class:E(["w-accordion__expand-icon",{"w-accordion__expand-icon--expanded":u._expanded,"w-accordion__expand-icon--rotate90":s.expandIconRotate90}]),icon:u._expanded&&s.collapseIcon||s.expandIcon,"icon-props":s.expandIconProps,disabled:u._disabled||null,tabindex:-1,text:"",onKeypress:e[0]||(e[0]=We(()=>{},["stop"])),onClick:We(m=>!u._disabled&&n.toggleItem(u,m),["stop"])},null,8,["icon","icon-props","disabled","onClick","class"])):C("",!0),t.$slots[`item-title.${u.id||c+1}`]?D(t.$slots,`item-title.${u.id||c+1}`,{key:1,item:n.getOriginalItem(u),expanded:u._expanded,index:c+1}):D(t.$slots,"item-title",{key:2,item:n.getOriginalItem(u),expanded:u._expanded,index:c+1},()=>[l("div",{class:"grow",innerHTML:u[s.itemTitleKey]},null,8,my)]),s.expandIcon&&s.expandIconRight?(f(),B(r,{key:3,class:E(["w-accordion__expand-icon",{"w-accordion__expand-icon--expanded":u._expanded,"w-accordion__expand-icon--rotate90":s.expandIconRotate90}]),icon:u._expanded&&s.collapseIcon||s.expandIcon,text:"",onKeypress:e[1]||(e[1]=We(()=>{},["stop"])),onClick:We(m=>!u._disabled&&n.toggleItem(u,m),["stop"])},null,8,["icon","onClick","class"])):C("",!0)],42,hy),h(d,{y:"",onAfterLeave:m=>n.onEndOfCollapse(u),duration:s.duration},{default:p(()=>[u._expanded?(f(),y("div",{key:0,class:E(["w-accordion__item-content",s.contentClass])},[t.$slots[`item-content.${u.id||c+1}`]?D(t.$slots,`item-content.${u.id||c+1}`,{key:0,item:n.getOriginalItem(u),expanded:u._expanded,index:c+1}):D(t.$slots,"item-content",{key:1,item:n.getOriginalItem(u),expanded:u._expanded,index:c+1},()=>[l("div",{innerHTML:u[s.itemContentKey]},null,8,fy)])],2)):C("",!0)]),_:2},1032,["onAfterLeave","duration"])],10,py))),128))],2)}const vy={name:"w-accordion",props:{modelValue:{type:Array},color:{type:String},bgColor:{type:String},items:{type:[Array,Number],required:!0},itemColorKey:{type:String,default:"color"},itemTitleKey:{type:String,default:"title"},itemContentKey:{type:String,default:"content"},itemClass:{type:String},titleClass:{type:String},contentClass:{type:String},expandIcon:{type:[String,Boolean],default:"wi-triangle-down"},expandIconRight:{type:Boolean},expandIconRotate90:{type:Boolean},expandIconProps:{type:Object,default:()=>({})},expandSingle:{type:Boolean},collapseIcon:{type:String},shadow:{type:Boolean},duration:{type:Number,default:250},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","focus","item-expand","item-collapsed"],data:()=>({accordionItems:[]}),computed:{accordionClasses(){return{[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,"w-accordion--dark":this.dark,"w-accordion--light":this.light,"w-accordion--shadow":this.shadow,"w-accordion--no-icon":!this.expandIcon&&!this.collapseIcon,"w-accordion--icon-right":this.expandIcon&&this.expandIconRight,"w-accordion--rotate-icon":this.expandIcon&&!this.collapseIcon}}},methods:{toggleItem(t,e){t._expanded=!t._expanded,this.expandSingle&&this.accordionItems.forEach(i=>i._index!==t._index&&(i._expanded=!1));const s=this.accordionItems.map(i=>i._expanded||!1);this.$emit("update:modelValue",s),this.$emit("input",s),this.$emit("item-expand",{item:t,expanded:t._expanded}),e.target.blur(),setTimeout(()=>e.target.focus(),300)},onEndOfCollapse(t){this.$emit("item-collapsed",{item:t,expanded:t._expanded})},getOriginalItem(t){return this.items[t._index]},itemClasses(t){return{[this.itemClass]:this.itemClass||null,"w-accordion__item--expanded":t._expanded,"w-accordion__item--disabled":t._disabled,[t[this.itemColorKey]]:t[this.itemColorKey]}},updateItems(){const t=typeof this.items=="number"?Array(this.items).fill({}):this.items||[];this.accordionItems=t.map((e,s)=>({...e,_index:s,_expanded:this.modelValue&&this.modelValue[s],_disabled:!!e.disabled}))}},created(){this.updateItems()},watch:{modelValue(){this.updateItems()},items:{handler(){this.updateItems()},deep:!0}}},yy=ne(vy,[["render",gy]]),by={class:"w-alert__content"};function wy(t,e,s,i,o,n){const r=R("w-icon"),d=R("w-button");return o.show?(f(),y("div",{key:0,class:E(["w-alert",n.classes])},[n.type||s.icon||s.dismiss?(f(),y(H,{key:0},[n.type||s.icon?(f(),B(r,{key:0,class:"w-alert__icon"},{default:p(()=>[a(S(n.type?n.typeIcon:s.icon),1)]),_:1})):C("",!0),l("div",by,[D(t.$slots,"default")]),s.dismiss?(f(),B(d,{key:1,class:"w-alert__dismiss",onClick:e[0]||(e[0]=u=>{t.$emit("update:modelValue",o.show=!1),t.$emit("input",!1),t.$emit("close",!1)}),icon:"wi-cross",color:"inherit",sm:"",text:""})):C("",!0)],64)):D(t.$slots,"default",{key:1})],2)):C("",!0)}const ky={name:"w-alert",props:{modelValue:{default:!0},color:{type:String},bgColor:{type:String},shadow:{type:Boolean},tile:{type:Boolean},round:{type:Boolean},icon:{type:String},iconOutside:{type:Boolean},plain:{type:Boolean},dismiss:{type:Boolean},bold:{type:Boolean},success:{type:Boolean},info:{type:Boolean},warning:{type:Boolean},error:{type:Boolean},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean},border:{type:Boolean},borderLeft:{type:Boolean},borderRight:{type:Boolean},borderTop:{type:Boolean},borderBottom:{type:Boolean},outline:{type:Boolean}},emits:["input","update:modelValue","close"],data(){return{show:this.modelValue}},computed:{typeIcon(){return this.type==="success"&&"wi-check-circle"||this.type==="warning"&&"wi-warning-circle"||this.type==="error"&&"wi-cross-circle"||this.type==="info"&&"wi-info-circle"},type(){return this.success&&"success"||this.info&&"info"||this.warning&&"warning"||this.error&&"error"||null},presetSize(){return this.xs&&"xs"||this.sm&&"sm"||this.md&&"md"||this.lg&&"lg"||this.xl&&"xl"||null},hasSingleBorder(){return this.borderLeft||this.borderRight||this.borderTop||this.borderBottom},classes(){const t=this.bgColor||this.plain&&this.type,e=this.color||!this.plain&&this.type||!t&&"primary";return{[`${t}--bg w-alert--bg`]:t,[e]:e,[`size--${this.presetSize}`]:this.presetSize,[`w-alert--${this.type}`]:this.type,"w-alert--has-icon":this.type||this.icon||this.dismiss,"w-alert--icon-outside":this.iconOutside,"w-alert--plain":this.type&&this.plain,"w-alert--outline":this.outline,"w-alert--tile":this.tile,"w-alert--round":this.round,"w-alert--one-border":this.hasSingleBorder||this.iconOutside,"w-alert--border-left":this.borderLeft||this.iconOutside,"w-alert--border-right":this.borderRight,"w-alert--border-top":this.borderTop,"w-alert--border-bottom":this.borderBottom,"w-alert--border":this.border&&!this.hasSingleBorder,"w-alert--shadow":this.shadow,"w-alert--bold":this.bold}}},watch:{modelValue(t){this.show=t}}},xy=ne(ky,[["render",wy]]),Cy={class:"w-autocomplete__selection"},_y=["innerHTML"],Sy=["innerHTML"],Dy=["value"],Ey=["onClick"],Ty=["innerHTML"],Vy=["innerHTML"];function $y(t,e,s,i,o,n){const r=R("w-button"),d=R("w-transition-slide-fade");return f(),y("div",{class:E(["w-autocomplete",n.classes]),onClick:e[5]||(e[5]=(...u)=>n.onClick&&n.onClick(...u)),style:me(t.$attrs.style)},[t.selection.length?(f(!0),y(H,{key:0},ge(t.selection,(u,c)=>(f(),y("div",Cy,[D(t.$slots,"selection",{item:u,unselect:m=>n.unselectItem(m)},()=>[l("span",{innerHTML:u[s.itemLabelKey]},null,8,_y),h(r,{onClick:We(m=>n.unselectItem(c),["stop"]),icon:"wi-cross",xs:"",text:"",color:"currentColor"},null,8,["onClick"])])]))),256)):C("",!0),!t.selection.length&&!t.keywords&&s.placeholder?(f(),y("div",{key:1,class:"w-autocomplete__placeholder",innerHTML:s.placeholder},null,8,Sy)):C("",!0),l("input",ee({class:"w-autocomplete__input",ref:"input",value:t.keywords},pt(n.inputEventListeners,!0),n.inputAttrs),null,16,Dy),h(d,null,{default:p(()=>[t.menuOpen?(f(),y("ul",{key:0,class:"w-autocomplete__menu",ref:"menu",onMousedown:e[1]||(e[1]=u=>t.menuIsBeingClicked=!0),onMouseup:e[2]||(e[2]=(...u)=>n.setEndOfMenuClick&&n.setEndOfMenuClick(...u)),onTouchstart:e[3]||(e[3]=u=>t.menuIsBeingClicked=!0),onTouchend:e[4]||(e[4]=(...u)=>n.setEndOfMenuClick&&n.setEndOfMenuClick(...u))},[(f(!0),y(H,null,ge(n.filteredItems,(u,c)=>(f(),y("li",{key:c,onClick:We(m=>(n.selectItem(u),t.$emit("item-click",u)),["stop"]),class:E({highlighted:t.highlightedItem===u.uid})},[D(t.$slots,"item",{item:u,highlighted:t.highlightedItem===u.uid},()=>[l("span",{innerHTML:u[s.itemLabelKey]},null,8,Ty)])],10,Ey))),128)),n.filteredItems.length?C("",!0):(f(),y("li",{key:0,class:E(["w-autocomplete__no-match",{"w-autocomplete__no-match--default":!t.$slots.noMatch}])},[D(t.$slots,"no-match",{},()=>[l("div",{class:"caption",innerHTML:s.noMatch??"No match."},null,8,Vy)])],2)),t.$slots["extra-item"]?(f(),y("li",{key:1,class:E(["w-autocomplete__extra-item",{highlighted:t.highlightedItem==="extra-item"}]),onClick:e[0]||(e[0]=(...u)=>n.selectExtraItem&&n.selectExtraItem(...u))},[D(t.$slots,"extra-item")],2)):C("",!0)],544)):C("",!0)]),_:3})],6)}const Iy={name:"w-autocomplete",inheritAttrs:!1,props:{items:{type:Array,required:!0},modelValue:{type:[String,Number,Array]},placeholder:{type:String},openOnKeydown:{type:Boolean},multiple:{type:Boolean},allowDuplicates:{type:Boolean},noMatch:{type:String},itemValueKey:{type:String,default:"value"},itemLabelKey:{type:String,default:"label"},itemSearchableKey:{type:String,default:"searchable"}},emits:["update:modelValue","input","focus","blur","keydown","item-click","item-select","extra-item-select"],data:()=>({keywords:"",selection:[],menuOpen:!1,highlightedItem:null,menuIsBeingClicked:!1}),computed:{normalizedKeywords(){return this.normalize(this.keywords)},optimizedItemsForSearch(){return this.items.map((t,e)=>({...t,uid:e,searchable:this.normalize(t[this.itemSearchableKey]||"")}))},filteredItems(){let t=this.optimizedItemsForSearch;const e=s=>!this.selection.find(i=>i.uid===s.uid);return this.keywords?t=t.filter(s=>s.searchable.includes(this.normalizedKeywords)?this.multiple&&!this.allowDuplicates?e(s):!0:!1):this.multiple&&!this.allowDuplicates&&(t=t.filter(e)),t},highlightedItemIndex(){return this.highlightedItem===null?-1:this.highlightedItem==="extra-item"?this.filteredItems.length:this.filteredItems.findIndex(t=>t.uid===this.highlightedItem)},wrapperAttrs(){const{style:t,class:e}=this.$attrs;return{style:t,class:e}},inputAttrs(){const{style:t,class:e,...s}=this.$attrs;return s},inputEventListeners(){return{input:t=>{this.keywords=t.target.value},focus:t=>{this.menuIsBeingClicked||(this.onFocus(t),this.$emit("focus",t))},blur:t=>{this.menuIsBeingClicked||this.$emit("blur",t)},keydown:t=>{this.onKeydown(t),this.$emit("keydown",t)},drop:this.onDrop,compositionstart:this.onCompositionStart,compositionupdate:this.onCompositionUpdate}},classes(){return{"w-autocomplete--open":this.menuOpen,"w-autocomplete--filled":this.selection.length,"w-autocomplete--has-keywords":this.keywords,"w-autocomplete--empty":!this.selection.length&&!this.keywords,[this.$attrs.class]:!!this.$attrs.class}}},methods:{normalize(t){return t.toLowerCase().normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/œ/g,"oe")},selectItem(t){this.multiple||(this.selection=[]),this.selection.push(t),this.highlightedItem=t.uid,this.keywords="";const e=this.multiple?this.selection.map(s=>s[this.itemValueKey]):t[this.itemValueKey];this.$emit("item-select",t),this.$emit("update:modelValue",e),this.$emit("input",e),this.$refs.input.focus(),this.multiple||this.closeMenu()},unselectItem(t){this.selection.splice(t??this.selection.length-1,1),this.highlightedItem=null,this.$emit("update:modelValue",null),this.$emit("input",null),this.$refs.input.focus()},selectExtraItem(){this.keywords="",this.$emit("extra-item-select"),this.closeMenu()},setEndOfMenuClick(){setTimeout(()=>this.menuIsBeingClicked=!1,100)},onClick(){this.openOnKeydown||this.openMenu(),this.$refs.input.focus()},onFocus(){this.openOnKeydown||this.openMenu()},onKeydown(t){var e;const s=this.filteredItems.length+(this.$slots["extra-item"]?1:0);if((!this.openOnKeydown||(this.keywords||t.key.length===1)&&!this.menuOpen)&&this.openMenu(),t.keyCode===9)this.closeMenu();else if(t.keyCode===8&&(!this.keywords||!t.target.selectionStart&&!t.target.selectionEnd))this.unselectItem();else if(t.keyCode===13)t.preventDefault(),this.highlightedItem==="extra-item"?this.selectExtraItem():this.highlightedItemIndex>=0&&this.selectItem(this.filteredItems[this.highlightedItemIndex]);else if([38,40].includes(t.keyCode)){t.preventDefault();let i=this.highlightedItemIndex;i===-1?i=t.keyCode===38?s-1:0:i=(i+(t.keyCode===38?-1:1)+s)%s,this.$slots["extra-item"]&&i===s-1?this.highlightedItem="extra-item":this.highlightedItem=((e=this.filteredItems[i])==null?void 0:e.uid)||0;const o=this.$refs.menu;if(o)if(this.$slots["extra-item"]&&i===s-1)o.scrollTop=o.scrollHeight;else{const{offsetHeight:n,offsetTop:r}=o.childNodes[i]||{};o.scrollTop+o.offsetHeight-nr&&(o.scrollTop=r)}}else!this.multiple&&this.selection.length&&t.key.length===1&&t.preventDefault()},onDrop(t){!this.multiple&&this.selection.length&&t.preventDefault()},onCompositionStart(t){!this.multiple&&this.selection.length&&t.target.setAttribute("readonly",!0)},onCompositionUpdate(t){!this.multiple&&this.selection.length&&setTimeout(()=>t.target.removeAttribute("readonly"),200)},openMenu(){this.menuOpen||(this.menuOpen=!0,document.addEventListener("click",this.onDocumentClick))},closeMenu(){this.menuOpen=!1,document.removeEventListener("click",this.onDocumentClick)},onDocumentClick(t){!this.$el.contains(t.target)&&!this.$el.isSameNode(t.target)&&this.closeMenu()}},created(){this.modelValue&&(Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]).forEach(t=>{this.selection.push(this.optimizedItemsForSearch.find(e=>e[this.itemValueKey]===+t))})},beforeUnmount(){document.removeEventListener("click",this.onDocumentClick)},watch:{modelValue(t){this.selection=[],t&&(Array.isArray(t)?t:[t]).forEach(e=>{this.selection.push(this.optimizedItemsForSearch.find(s=>s[this.itemValueKey]===+e))})}}},My=ne(Iy,[["render",$y]]),Ay={class:"w-app"};function By(t,e,s,i,o,n){return f(),y("div",Ay,[D(t.$slots,"default")])}const Oy={name:"w-app",props:{block:{type:Boolean},row:{type:Boolean},alignCenter:{type:Boolean},alignEnd:{type:Boolean},justifyCenter:{type:Boolean},justifyEnd:{type:Boolean},justifySpaceBetween:{type:Boolean},justifySpaceAround:{type:Boolean},justifySpaceEvenly:{type:Boolean},textCenter:{type:Boolean},textRight:{type:Boolean}}},Ry=ne(Oy,[["render",By]]),Ly={class:"w-badge-wrap"};function Py(t,e,s,i,o,n){return f(),y("div",Ly,[D(t.$slots,"default"),h(Oe,{name:`${s.transition}`},{default:p(()=>[s.modelValue?(f(),y("div",{key:0,class:E(["w-badge",n.classes]),style:me(n.styles),"aria-atomic":"true","aria-label":"Badge","aria-live":"polite",role:"status"},[s.dot?C("",!0):D(t.$slots,"badge",{key:0},()=>[a(S(s.modelValue===!0?"":s.modelValue||""),1)])],6)):C("",!0)]),_:3},8,["name"])])}const Ny={name:"w-badge",props:{modelValue:{default:!0},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean},top:{type:Boolean},left:{type:Boolean},right:{type:Boolean},bottom:{type:Boolean},overlap:{type:Boolean},inline:{type:Boolean},color:{type:String},size:{type:[Number,String]},bgColor:{type:String,default:"primary"},badgeClass:{type:String},outline:{type:Boolean},shadow:{type:Boolean},dot:{type:Boolean},round:{type:Boolean},transition:{type:String,default:"fade"},dark:{type:Boolean},light:{type:Boolean}},emits:[],computed:{forcedSize(){return this.size&&(isNaN(this.size)?this.size:`${this.size}px`)},presetSize(){return this.xs&&"xs"||this.sm&&"sm"||this.md&&"md"||this.lg&&"lg"||this.xl&&"xl"||"md"},position(){return[this.top&&"top"||this.bottom&&"bottom"||"top",this.left&&"left"||this.right&&"right"||"right"]},classes(){const t=this.$slots.badge&&this.$slots.badge().map(e=>e.children).join("");return{[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,[this.badgeClass]:this.badgeClass||null,"w-badge--round":this.round||(t||this.modelValue+""||"").length<2,"w-badge--dark":this.dark,"w-badge--light":this.light,"w-badge--outline":this.outline,"w-badge--inline":this.inline,"w-badge--shadow":this.shadow,"w-badge--overlap":this.overlap,"w-badge--dot":this.dot,[`size--${this.presetSize}`]:this.presetSize&&!this.forcedSize,[`w-badge--${this.position.join(" w-badge--")}`]:!0}},styles(){return this.forcedSize&&`font-size: ${this.forcedSize}`}}},Wy=ne(Ny,[["render",Py]]),Hy=["innerHTML"];function jy(t,e,s,i,o,n){const r=R("w-icon");return f(),y("div",{class:E(["w-breadcrumbs",n.classes])},[(f(!0),y(H,null,ge(s.items,(d,u)=>(f(),y(H,null,[u&&t.$slots.separator?(f(),y("span",{class:E(["w-breadcrumbs__separator",s.separatorColor]),key:`${u}a`},[D(t.$slots,"separator",{index:u})],2)):u?(f(),B(r,{class:E(["w-breadcrumbs__separator",s.separatorColor]),key:`${u}b`},{default:p(()=>[a(S(s.icon),1)]),_:2},1032,["class"])):C("",!0),d[s.itemRouteKey]&&(u[D(t.$slots,"item",{item:d,index:u+1,isLast:u===s.items.length-1})]),_:2},1032,["to","href","class"])):(f(),B(De(n.hasRouter?"router-link":"a"),{class:E(["w-breadcrumbs__item",s.color||null]),key:`${u}d`,to:n.hasRouter&&d[s.itemRouteKey],href:d[s.itemRouteKey],innerHTML:d[s.itemLabelKey]},null,8,["to","href","innerHTML","class"]))],64)):t.$slots.item?D(t.$slots,"item",{key:`${u}e`,item:d,index:u+1,isLast:u===s.items.length-1}):(f(),y("span",{key:`${u}f`,innerHTML:d[s.itemLabelKey]},null,8,Hy))],64))),256))],2)}const zy={name:"w-breadcrumbs",props:{items:{type:Array,required:!0},linkLastItem:{type:Boolean},color:{type:String},separatorColor:{type:String,default:"grey-light1"},icon:{type:String,default:"wi-chevron-right"},itemRouteKey:{type:String,default:"route"},itemLabelKey:{type:String,default:"label"},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean}},emits:[],computed:{hasRouter(){return"$router"in this},size(){return this.xs&&"xs"||this.sm&&"sm"||this.lg&&"lg"||this.xl&&"xl"||"md"},classes(){return{[`size--${this.size}`]:!0}}}},Fy=ne(zy,[["render",jy]]),Yy={key:0,class:"w-button__loader"};function Uy(t,e,s,i,o,n){const r=R("w-icon");return f(),B(De(!s.disabled&&s.route?"a":"button"),ee({class:["w-button",n.classes],type:!s.route&&s.type,href:!s.disabled&&s.route&&(n.externalLink?s.route:n.resolvedRoute)||null,disabled:!!s.disabled||null},n.attrs,{style:n.styles}),{default:p(()=>[s.icon?(f(),B(r,qs(ee({key:0},s.iconProps||{})),{default:p(()=>[a(S(s.icon),1)]),_:1},16)):D(t.$slots,"default",{key:1}),h(Oe,{name:"scale-fade"},{default:p(()=>[s.loading?(f(),y("div",Yy,[D(t.$slots,"loading",{},()=>[e[0]||(e[0]=l("svg",{viewBox:"0 0 40 40"},[l("circle",{cx:"20",cy:"20",r:"18",fill:"transparent",stroke:"currentColor","stroke-width":"4","stroke-linecap":"round"})],-1))])])):C("",!0)]),_:3})]),_:3},16,["type","href","class","disabled","style"])}const Ky={inheritAttrs:!1,props:{color:{type:String},bgColor:{type:String},dark:{type:Boolean},light:{type:Boolean},outline:{type:Boolean},text:{type:Boolean},round:{type:Boolean},shadow:{type:Boolean},tile:{type:Boolean},route:{type:[String,Object]},forceLink:{type:Boolean},type:{type:String,default:"button"},disabled:{type:Boolean},loading:{type:Boolean},icon:{type:String,default:null},iconProps:{type:Object,default:()=>({})},absolute:{type:Boolean},fixed:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},left:{type:Boolean},right:{type:Boolean},zIndex:{type:[Number,String]},width:{type:[Number,String]},height:{type:[Number,String]},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean}},emits:[],computed:{hasRouter(){return"$router"in this},resolvedRoute(){return this.hasRouter?this.$router.resolve(this.route).href:this.route},attrs(){const t=this.route&&this.hasRouter&&!this.forceLink&&!this.externalLink,e=s=>{this.$attrs.onClick&&this.$attrs.onClick(s),this.$router.push(this.route),s.stopPropagation(),s.preventDefault()};return{...this.$attrs,onClick:!this.disabled&&(t?e:this.$attrs.onClick)}},size(){return this.xs&&"xs"||this.sm&&"sm"||this.lg&&"lg"||this.xl&&"xl"||"md"},position(){return[this.top&&"top"||this.bottom&&"bottom"||"top",this.left&&"left"||this.right&&"right"||"right"]},externalLink(){return/^(https?:)?\/\/|mailto:|tel:/.test(this.route)},classes(){return{"primary--bg":!this.bgColor&&!this.color&&!(this.outline||this.text),primary:!this.bgColor&&!this.color&&!this.dark&&(this.outline||this.text),[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,"w-button--dark":this.dark,"w-button--light":this.light,"w-button--outline":this.outline,"w-button--text":this.text,"w-button--round":this.round,"w-button--tile":this.tile,"w-button--shadow":this.shadow,"w-button--loading":this.loading,"w-button--icon":this.icon,[`size--${this.size}`]:!0,"w-button--absolute":this.absolute,"w-button--fixed":this.fixed,[`w-button--${this.position.join(" w-button--")}`]:this.absolute||this.fixed}},styles(){return{width:(isNaN(this.width)?this.width:`${this.width}px`)||null,height:(isNaN(this.height)?this.height:`${this.height}px`)||null,zIndex:this.zIndex||this.zIndex===0||null}}}},qy=ne(Ky,[["render",Uy]]),Jy=["innerHTML"];function Gy(t,e,s,i,o,n){const r=R("button-partial");return s.tooltip?(f(),B(De("w-tooltip"),qs(ee({key:0},s.tooltipProps)),{activator:p(({on:d})=>[h(r,ee(n.buttonProps,pt(d)),{default:p(()=>[D(t.$slots,"default")]),_:2},1040)]),default:p(()=>[l("div",{innerHTML:s.tooltip},null,8,Jy)]),_:3},16)):(f(),B(r,qs(ee({key:1},n.buttonProps)),{loading:p(()=>[D(t.$slots,"loading")]),default:p(()=>[D(t.$slots,"default")]),_:3},16))}const Xy={name:"w-button",inheritAttrs:!1,props:{color:{type:String},bgColor:{type:String},dark:{type:Boolean},outline:{type:Boolean},text:{type:Boolean},round:{type:Boolean},shadow:{type:Boolean},tile:{type:Boolean},tooltip:{type:String},tooltipProps:{type:Object,default:()=>({})},route:{type:[String,Object]},forceLink:{type:Boolean},type:{type:String,default:"button"},disabled:{type:Boolean},loading:{type:Boolean},icon:{type:String,default:null},iconProps:{type:Object,default:()=>({})},absolute:{type:Boolean},fixed:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},left:{type:Boolean},right:{type:Boolean},zIndex:{type:[Number,String]},width:{type:[Number,String]},height:{type:[Number,String]},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean}},components:{ButtonPartial:qy},emits:[],computed:{buttonProps(){const{tooltip:t,tooltipProps:e={},...s}=this.$props;return{...s,...this.$attrs}}}},Qy=ne(Xy,[["render",Gy]]),Ct=(t={})=>(typeof t=="string"?t={[t]:!0}:Array.isArray(t)&&(t={[t.join(" ")]:!0}),t),Zy=["innerHTML"];function eb(t,e,s,i,o,n){const r=R("w-image");return f(),y("div",{class:E(["w-card",n.classes])},[t.$slots.title?(f(),y("div",{key:0,class:E(["w-card__title",{"w-card__title--has-toolbar":t.$slots.title&&n.titleHasToolbar,...n.titleClasses}])},[D(t.$slots,"title")],2)):s.title?(f(),y("div",{key:1,class:E(["w-card__title",{"w-card__title--has-toolbar":t.$slots.title&&n.titleHasToolbar,...n.titleClasses}]),innerHTML:s.title},null,10,Zy)):C("",!0),s.image?(f(),B(r,ee({key:2,class:"w-card__image",src:s.image},n.imgProps),{default:p(()=>[D(t.$slots,"image-content")]),_:3},16,["src"])):C("",!0),l("div",{class:E(["w-card__content",n.contentClasses])},[D(t.$slots,"default")],2),t.$slots.actions?(f(),y("div",{key:3,class:E(["w-card__actions",{"w-card__actions--has-toolbar":n.actionsHasToolbar}])},[D(t.$slots,"actions")],2)):C("",!0)],2)}const tb={name:"w-card",props:{color:{type:String},bgColor:{type:String},shadow:{type:Boolean},noBorder:{type:Boolean},tile:{type:Boolean},title:{type:String},image:{type:String},imageProps:{type:Object},titleClass:{type:[String,Object,Array]},contentClass:{type:[String,Object,Array]},dark:{type:Boolean},light:{type:Boolean}},emits:[],computed:{titleClasses(){return Ct(this.titleClass)},contentClasses(){return Ct(this.contentClass)},titleHasToolbar(){const{title:t}=this.$slots;return t&&t().map(e=>e.type.name).join("").includes("w-toolbar")},actionsHasToolbar(){const{actions:t}=this.$slots;return t&&t().map(e=>e.type.name).join("").includes("w-toolbar")},imgProps(){return{tag:"div",ratio:1/2,...this.imageProps}},classes(){return{[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,"w-card--no-border":this.noBorder,"w-card--tile":this.tile,"w-card--shadow":this.shadow,"w-card--dark":this.dark,"w-card--light":this.light}}}},sb=ne(tb,[["render",eb]]),Et={inject:{formRegister:{default:null},formProps:{default:()=>({disabled:!1,readonly:!1})}},props:{name:{type:String},disabled:{type:Boolean},readonly:{type:Boolean},required:{type:Boolean},tabindex:{type:String},validators:{type:Array}},data:()=>({valid:null}),computed:{inputName(){return this.name||`${this.$options.name}--${this._.uid}`},isDisabled(){return this.disabled||this.formProps.disabled},isReadonly(){return this.readonly||this.formProps.readonly},validationColor(){return this.formProps.validationColor},labelClasses(){return{[this.labelColor]:this.labelColor&&this.valid!==!1,[this.validationColor]:this.valid===!1}}},methods:{validate(){this.$refs.formEl.validate(this)}}},nb=["id","name","checked","disabled","required","tabindex","aria-checked"],lb=["for"],ib=["for","innerHTML"],ab=["for"],ob=["for","innerHTML"];function rb(t,e,s,i,o,n){return f(),B(De(t.formRegister&&!n.wCheckboxes?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:o.isChecked,disabled:t.isDisabled,readonly:t.isReadonly},{valid:t.valid,"onUpdate:valid":e[5]||(e[5]=r=>t.valid=r),onReset:e[6]||(e[6]=r=>{t.$emit("update:modelValue",o.isChecked=null),t.$emit("input",null)}),class:n.classes}),{default:p(()=>[l("input",{ref:"input",id:`w-checkbox--${t._.uid}`,type:"checkbox",name:t.inputName,checked:o.isChecked||null,disabled:t.isDisabled||t.isReadonly||null,required:t.required||null,tabindex:t.tabindex||null,onFocus:e[0]||(e[0]=r=>t.$emit("focus",r)),onBlur:e[1]||(e[1]=r=>t.$emit("blur",r)),onChange:e[2]||(e[2]=r=>n.onInput()),onKeypress:e[3]||(e[3]=vt((...r)=>n.onInput&&n.onInput(...r),["enter"])),"aria-checked":o.isChecked||"false",role:"checkbox"},null,40,nb),n.hasLabel&&s.labelOnLeft?(f(),y(H,{key:0},[t.$slots.default?(f(),y("label",{key:0,class:E(["w-checkbox__label w-form-el-shakable pr2",t.labelClasses]),for:`w-checkbox--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,lb)):s.label?(f(),y("label",{key:1,class:E(["w-checkbox__label w-form-el-shakable pr2",t.labelClasses]),for:`w-checkbox--${t._.uid}`,innerHTML:s.label},null,10,ib)):C("",!0)],64)):C("",!0),l("div",{class:E(["w-checkbox__input",this.color]),onClick:e[4]||(e[4]=r=>{t.$refs.input.focus(),t.$refs.input.click()})},e[7]||(e[7]=[l("svg",{viewBox:"-0.5 0 12 10"},[l("polyline",{points:"1 5 4 8 10 2"})],-1)]),2),n.hasLabel&&!s.labelOnLeft?(f(),y(H,{key:1},[t.$slots.default?(f(),y("label",{key:0,class:E(["w-checkbox__label w-form-el-shakable pl2",t.labelClasses]),for:`w-checkbox--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,ab)):s.label?(f(),y("label",{key:1,class:E(["w-checkbox__label w-form-el-shakable pl2",t.labelClasses]),for:`w-checkbox--${t._.uid}`,innerHTML:s.label},null,10,ob)):C("",!0)],64)):C("",!0)]),_:3},16,["valid","class"])}const db={name:"w-checkbox",mixins:[Et],inject:{wCheckboxes:{default:null}},props:{modelValue:{default:!1},returnValue:{},label:{type:String},labelOnLeft:{type:Boolean},color:{type:String,default:"primary"},labelColor:{type:String,default:"primary"},noRipple:{type:Boolean},indeterminate:{type:Boolean},round:{type:Boolean},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","focus","blur"],data(){return{isChecked:this.modelValue,ripple:{start:!1,end:!1,timeout:null}}},computed:{hasLabel(){return this.label||this.$slots.default},classes(){return{[`w-checkbox w-checkbox--${this.isChecked?"checked":"unchecked"}`]:!0,"w-checkbox--disabled":this.isDisabled,"w-checkbox--readonly":this.isReadonly,"w-checkbox--indeterminate":this.indeterminate,"w-checkbox--ripple":this.ripple.start,"w-checkbox--rippled":this.ripple.end,"w-checkbox--round":this.round,"w-checkbox--dark":this.dark,"w-checkbox--light":this.light}}},methods:{onInput(){this.isChecked=!this.isChecked;const t=this.isChecked&&this.returnValue!==void 0?this.returnValue:this.isChecked;this.$emit("update:modelValue",t),this.$emit("input",t),this.noRipple||(this.isChecked?(this.ripple.start=!0,this.ripple.timeout=setTimeout(()=>{this.ripple.start=!1,this.ripple.end=!0,setTimeout(()=>this.ripple.end=!1,100)},700)):(this.ripple.start=!1,clearTimeout(this.ripple.timeout)))}},watch:{modelValue(t){this.isChecked=t}}},ub=ne(db,[["render",rb]]),cb=["innerHTML"];function pb(t,e,s,i,o,n){const r=R("w-checkbox");return f(),B(De(t.formRegister?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:n.checkboxItems.some(d=>d._isChecked),disabled:t.isDisabled},{valid:t.valid,"onUpdate:valid":e[1]||(e[1]=d=>t.valid=d),onReset:n.reset,column:!s.inline,wrap:s.inline,class:n.classes}),{default:p(()=>[(f(!0),y(H,null,ge(n.checkboxItems,(d,u)=>(f(),B(r,ee({key:u,"model-value":d._isChecked,"onUpdate:modelValue":c=>n.toggleCheck(d,c),onFocus:e[0]||(e[0]=c=>t.$emit("focus",c)),name:`${t.inputName}[]`,ref_for:!0},{label:d.label,color:d.color,labelOnLeft:s.labelOnLeft,labelColor:s.labelColor,round:s.round},{disabled:t.isDisabled||null,readonly:t.isReadonly||null,class:{mt1:!s.inline&&u}}),{default:p(()=>[t.$slots[`item.${u+1}`]||t.$slots.item?D(t.$slots,t.$slots[`item.${u+1}`]?`item.${u+1}`:"item",{key:0,item:n.getOriginalItem(d),checked:!!d._isChecked,index:u+1,innerHTML:d.label}):d.label?(f(),y("div",{key:1,innerHTML:d.label},null,8,cb)):C("",!0)]),_:2},1040,["model-value","onUpdate:modelValue","name","disabled","readonly","class"]))),128))]),_:3},16,["valid","onReset","column","wrap","class"])}const hb={name:"w-checkboxes",mixins:[Et],props:{items:{type:Array,required:!0},modelValue:{type:Array},returnValues:{type:Boolean},labelOnLeft:{type:Boolean},itemLabelKey:{type:String,default:"label"},itemValueKey:{type:String,default:"value"},itemColorKey:{type:String,default:"color"},inline:{type:Boolean},round:{type:Boolean},color:{type:String,default:"primary"},labelColor:{type:String,default:"primary"}},emits:["input","update:modelValue","focus"],provide(){return{wCheckboxes:!0}},computed:{checkboxItems(){return(this.items||[]).map((t,e)=>{const s=t[this.itemValueKey]===void 0?t[this.itemLabelKey]||e:t[this.itemValueKey];return Zt({...t,label:t[this.itemLabelKey],_index:e,value:s,color:t[this.itemColorKey]||this.color,_isChecked:this.modelValue&&this.modelValue.includes(s)})})},classes(){return["w-checkboxes",`w-checkboxes--${this.inline?"inline":"column"}`]}},methods:{reset(){this.checkboxItems.forEach(t=>t._isChecked=null),this.$emit("update:modelValue",[]),this.$emit("input",[])},toggleCheck(t,e){t._isChecked=e;const s=this.checkboxItems.filter(i=>i._isChecked).map(i=>this.returnValues?i.returnValue:i.value);this.$emit("update:modelValue",s),this.$emit("input",s)},getOriginalItem(t){return this.items[t._index]}}},mb=ne(hb,[["render",pb]]);function fb(t,e,s,i,o,n){const r=R("w-button"),d=R("w-flex"),u=R("w-menu"),c=en("focus");return f(),B(u,ee({modelValue:t.showPopup,"onUpdate:modelValue":e[2]||(e[2]=m=>t.showPopup=m)},n.wMenuProps),{activator:p(({on:m})=>[h(r,ee({class:"w-confirm"},{...t.$attrs,...n.buttonProps},pt(s.disablePrompt?{}:{...m})),{default:p(()=>[D(t.$slots,"default")]),_:2},1040)]),default:p(()=>[h(d,{column:!s.inline,"align-center":""},{default:p(()=>[l("div",null,[D(t.$slots,"question",{},()=>[a(S(s.question),1)])]),l("div",{class:E(["w-flex justify-end",s.inline?"ml2":"mt2"])},[s.cancel!==!1?(f(),B(r,ee({key:0,class:"mr2"},n.cancelButtonProps,{"bg-color":(n.cancelButton||{}).bgColor||"error",onKeyup:e[0]||(e[0]=vt(m=>!s.persistent&&n.onCancel(),["escape"])),onClick:n.onCancel}),{default:p(()=>[D(t.$slots,"cancel",{},()=>[a(S(n.cancelButton.label),1)])]),_:3},16,["bg-color","onClick"])):C("",!0),st((f(),B(r,ee(n.confirmButtonProps,{"bg-color":(n.confirmButton||{}).bgColor||"success",onKeyup:e[1]||(e[1]=vt(m=>!s.persistent&&n.onCancel(),["escape"])),onClick:n.onConfirm}),{default:p(()=>[D(t.$slots,"confirm",{},()=>[a(S(n.confirmButton.label),1)])]),_:3},16,["bg-color","onClick"])),[[c]])],2)]),_:3},8,["column"])]),_:3},16,["modelValue"])}const gb={name:"w-confirm",inheritAttrs:!1,props:{bgColor:{type:String},color:{type:String},icon:{type:String},disablePrompt:{type:Boolean},mainButton:{type:Object},question:{type:String,default:"Are you sure?"},cancel:{type:[Boolean,Object,String],default:void 0},confirm:{type:[Object,String]},inline:{type:Boolean},menu:{type:Object,default:()=>({})},tooltip:{type:[Boolean,Object,String]},noArrow:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},left:{type:Boolean},right:{type:Boolean},alignTop:{type:Boolean},alignBottom:{type:Boolean},alignLeft:{type:Boolean},alignRight:{type:Boolean},persistent:{type:Boolean},transition:{type:String},dark:{type:Boolean},light:{type:Boolean}},emits:["cancel","confirm"],data:()=>({showPopup:!1,props:[]}),computed:{cancelButton(){let t={label:typeof this.cancel=="string"?this.cancel:"Cancel"};return typeof this.cancel=="object"&&(t=Object.assign({},t,this.cancel)),t},cancelButtonProps(){const{label:t,...e}=this.cancelButton;return e},confirmButton(){let t={label:typeof this.confirm=="string"?this.confirm:"Confirm"};return typeof this.confirm=="object"&&(t=Object.assign({},t,this.confirm)),t},confirmButtonProps(){const{label:t,...e}=this.confirmButton;return e},wMenuProps(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right,arrow:!this.noArrow,alignTop:this.alignTop,alignBottom:this.alignBottom,alignLeft:this.alignLeft,alignRight:this.alignRight,persistent:this.persistent,transition:this.transition,...this.menu}},tooltipObject(){let t={label:typeof this.tooltip=="string"?this.tooltip:""};return typeof this.tooltip=="object"&&(t=Object.assign({},t,this.tooltip)),t},buttonProps(){const{label:t,...e}=this.tooltipObject;return{bgColor:this.bgColor,color:this.color,icon:this.icon,dark:this.dark,light:this.light,tooltip:t,tooltipProps:e,...this.mainButton}}},methods:{onCancel(){this.$emit("cancel"),this.showPopup=!1},onConfirm(){this.$emit("confirm"),this.showPopup=!1}}},vb=ne(gb,[["render",fb]]);function yb(t,e,s,i,o,n){return f(),y("div",{class:E(["w-date-picker",n.classes]),style:me(n.styles)},[D(t.$slots,"default")],6)}const bb={name:"w-date-picker",props:{dark:{type:Boolean},light:{type:Boolean}},emits:[],computed:{classes(){return{"w-date-picker--dark":this.dark,"w-date-picker--light":this.light}},styles(){return!1}}},wb=ne(bb,[["render",yb]]);function kb(t,e,s,i,o,n){const r=R("w-card"),d=R("w-overlay");return f(),B(d,{class:E(["w-dialog",n.classes]),"model-value":o.showWrapper,persistent:s.persistent,"persistent-no-animation":s.persistentNoAnimation,onClick:n.onOutsideClick,onClose:n.onClose,"bg-color":s.overlayColor,opacity:s.overlayOpacity},{default:p(()=>[h(Oe,{name:s.transition,appear:"",onAfterLeave:n.onBeforeClose},{default:p(()=>[st(h(r,{class:E(["w-dialog__content",s.dialogClass]),ref:"dialog","no-border":"",color:s.color,"bg-color":s.bgColor,"title-class":s.titleClass,"content-class":s.contentClass,title:s.title||void 0,style:me(n.contentStyles)},rs({default:p(()=>[D(t.$slots,"default")]),_:2},[t.$slots.title?{name:"title",fn:p(()=>[D(t.$slots,"title")]),key:"0"}:void 0,t.$slots.actions?{name:"actions",fn:p(()=>[D(t.$slots,"actions")]),key:"1"}:void 0]),1032,["color","bg-color","class","title-class","content-class","title","style"]),[[ol,o.showContent]])]),_:3},8,["name","onAfterLeave"])]),_:3},8,["model-value","persistent","persistent-no-animation","onClick","onClose","bg-color","opacity","class"])}const xb={name:"w-dialog",props:{modelValue:{default:!0},width:{type:[Number,String],default:0},fullscreen:{type:Boolean},persistent:{type:Boolean},persistentNoAnimation:{type:Boolean},tile:{type:Boolean},title:{type:String},transition:{type:String,default:"fade"},titleClass:{type:[String,Object,Array]},contentClass:{type:[String,Object,Array]},dialogClass:{type:[String,Object,Array]},overlayColor:{type:String},color:{type:String},bgColor:{type:String},overlayOpacity:{type:[Number,String,Boolean]},dark:{type:Boolean},light:{type:Boolean}},provide(){return{detachableDefaultRoot:()=>this.$refs.dialog.$el||null}},emits:["input","update:modelValue","before-close","close"],data(){return{showWrapper:this.modelValue,showContent:this.modelValue}},computed:{titleClasses(){return Ct(this.titleClass)},contentClasses(){return Ct(this.contentClass)},dialogClasses(){return Ct(this.dialogClass)},maxWidth(){let t=this.width;return t&&parseInt(t)===+t&&(t+="px"),t},classes(){return{"w-dialog--fullscreen":this.fullscreen,"w-dialog--dark":this.dark,"w-dialog--light":this.light}},contentStyles(){return{maxWidth:!this.fullscreen&&this.maxWidth?this.maxWidth:null}}},methods:{onOutsideClick(){this.persistent||(this.showContent=!1,this.transition==="fade"&&this.onBeforeClose())},onBeforeClose(){this.showWrapper=!1,this.$emit("before-close")},onClose(){this.$emit("update:modelValue",!1),this.$emit("input",!1),this.$emit("close")}},watch:{modelValue(t){this.showWrapper=t,this.showContent=t}}},Cb=ne(xb,[["render",kb]]),_b=["role","aria-orientation"];function Sb(t,e,s,i,o,n){return f(),y("div",{class:E(["w-divider",n.classes]),role:t.$slots.default?null:"presentation","aria-orientation":s.vertical?"vertical":"horizontal"},[D(t.$slots,"default")],10,_b)}const Db={name:"w-divider",props:{vertical:{type:Boolean},color:{type:String},dark:{type:Boolean},light:{type:Boolean}},emits:[],computed:{classes(){return{[`w-divider--has-color ${this.color}`]:this.color,[`w-divider--${this.vertical?"vertical":"horizontal"}`]:!0,"w-divider--has-content":this.$slots.default,"w-divider--dark":this.dark,"w-divider--light":this.light}}}},Eb=ne(Db,[["render",Sb]]),Tb={class:"w-drawer-wrap__pushable"};function Vb(t,e,s,i,o,n){const r=R("w-overlay");return o.showWrapper||s.pushContent?(f(),y("div",{key:0,class:E(["w-drawer-wrap",n.wrapperClasses])},[s.pushContent?(f(),y("div",{key:0,class:"w-drawer-wrap__track",style:me(n.trackStyles)},[l("div",Tb,[s.noOverlay?C("",!0):(f(),B(r,{key:0,modelValue:o.showDrawer,"onUpdate:modelValue":e[0]||(e[0]=d=>o.showDrawer=d),onClick:n.onOutsideClick,persistent:s.persistent,"persistent-no-animation":"","bg-color":s.overlayColor||"transparent",opacity:s.overlayOpacity},null,8,["modelValue","onClick","persistent","bg-color","opacity"])),D(t.$slots,"pushable")]),h(Oe,{name:"fade",onBeforeLeave:n.onBeforeClose,onAfterLeave:n.onClose},{default:p(()=>[o.showDrawer?(f(),B(De(s.tag||"aside"),{key:0,class:E(["w-drawer",n.drawerClasses]),ref:"drawer",style:me(n.styles)},{default:p(()=>[D(t.$slots,"default")]),_:3},8,["class","style"])):C("",!0)]),_:3},8,["onBeforeLeave","onAfterLeave"])],4)):(f(),y(H,{key:1},[s.noOverlay?C("",!0):(f(),B(r,{key:0,modelValue:o.showDrawer,"onUpdate:modelValue":e[1]||(e[1]=d=>o.showDrawer=d),onClick:n.onOutsideClick,persistent:s.persistent,"persistent-no-animation":"","bg-color":s.overlayColor,opacity:s.overlayOpacity},null,8,["modelValue","onClick","persistent","bg-color","opacity"])),h(Oe,{name:n.transitionName,appear:"",onBeforeLeave:n.onBeforeClose,onAfterLeave:n.onClose},{default:p(()=>[o.showDrawer?(f(),B(De(s.tag||"aside"),{key:0,class:E(["w-drawer",n.drawerClasses]),ref:"drawer",style:me(n.styles)},{default:p(()=>[D(t.$slots,"default")]),_:3},8,["class","style"])):C("",!0)]),_:3},8,["name","onBeforeLeave","onAfterLeave"])],64))],2)):C("",!0)}const $b={left:"right",right:"left",top:"down",bottom:"up"},Ib={name:"w-drawer",props:{modelValue:{default:!0},left:{type:Boolean},right:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},persistent:{type:Boolean},persistentNoAnimation:{type:Boolean},fitContent:{type:Boolean},width:{type:[Number,String,Boolean]},height:{type:[Number,String,Boolean]},zIndex:{type:[Number,String,Boolean]},color:{type:String},bgColor:{type:String},noOverlay:{type:Boolean},pushContent:{type:Boolean},absolute:{type:Boolean},overlayColor:{type:String},overlayOpacity:{type:[Number,String,Boolean]},drawerClass:{type:String},tag:{type:String,default:"aside"},dark:{type:Boolean},light:{type:Boolean}},provide(){return{detachableDefaultRoot:()=>this.$refs.drawer||null}},emits:["input","update:modelValue","before-close","close"],data(){return{showWrapper:this.modelValue,showDrawer:this.modelValue,persistentAnimate:!1}},computed:{size(){let t=this.width||this.height;return t&&parseInt(t)==t&&(t+="px"),t||!1},sizeProperty(){return["left","right"].includes(this.position)&&"width"||"height"},position(){return this.left&&"left"||this.right&&"right"||this.top&&"top"||this.bottom&&"bottom"||"right"},wrapperClasses(){return{"w-drawer-wrap--fixed":!this.absolute&&!this.pushContent,"w-drawer-wrap--absolute":this.absolute,"w-drawer-wrap--push-content":this.pushContent}},drawerClasses(){return{[this.drawerClass]:!0,[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,"w-drawer--open":!!this.showDrawer,[`w-drawer--${this.position}`]:!0,"w-drawer--fit-content":this.fitContent,"w-drawer--persistent":this.persistent,"w-drawer--persistent-animate":this.persistent&&this.persistentAnimate,"w-drawer--dark":this.dark,"w-drawer--light":this.light}},trackStyles(){return this.pushContent&&this.showDrawer&&{transform:`translateX(${this.position==="left"?"":"-"}${this.size||"200px"})`}},styles(){return{[`max-${this.sizeProperty}`]:this.size||null,zIndex:this.zIndex||this.zIndex===0||null}},unmountDrawer(){return!this.showWrapper},transitionName(){return`slide-${$b[this.position]}`}},methods:{onBeforeClose(){this.$emit("before-close")},onClose(){this.showWrapper=!1,this.$emit("update:modelValue",!1),this.$emit("input",!1),this.$emit("close")},onOutsideClick(){this.persistent?this.persistentNoAnimation||(this.persistentAnimate=!0,setTimeout(()=>this.persistentAnimate=!1,200)):this.showDrawer=!1}},watch:{modelValue(t){t&&(this.showWrapper=!0),this.showDrawer=t}}},Mb=ne(Ib,[["render",Vb]]);function Ab(t,e,s,i,o,n){return f(),B(De(s.tag),{class:E(["w-flex",n.classes])},{default:p(()=>[D(t.$slots,"default")]),_:3},8,["class"])}const Bb={name:"w-flex",props:{tag:{type:String,default:"div"},column:{type:Boolean},grow:{type:Boolean},noGrow:{type:Boolean},shrink:{type:Boolean},noShrink:{type:Boolean},fillHeight:{type:Boolean},wrap:{type:Boolean},alignStart:{type:Boolean},alignCenter:{type:Boolean},alignEnd:{type:Boolean},justifyStart:{type:Boolean},justifyCenter:{type:Boolean},justifyEnd:{type:Boolean},justifySpaceBetween:{type:Boolean},justifySpaceAround:{type:Boolean},justifySpaceEvenly:{type:Boolean},basisZero:{type:Boolean},gap:{type:[Number,String],default:0}},computed:{classes(){return{column:this.column,grow:this.grow,"no-grow":this.noGrow,shrink:this.shrink,"no-shrink":this.noShrink,"fill-height":this.fillHeight,wrap:this.wrap,"align-start":this.alignStart,"align-center":this.alignCenter,"align-end":this.alignEnd,"justify-start":this.justifyStart,"justify-center":this.justifyCenter,"justify-end":this.justifyEnd,"justify-space-between":this.justifySpaceBetween,"justify-space-around":this.justifySpaceAround,"justify-space-evenly":this.justifySpaceEvenly,"basis-zero":this.basisZero,[`gap${this.gap}`]:~~this.gap}}}},Ob=ne(Bb,[["render",Ab]]);function Rb(t,e,s,i,o,n){return f(),y("form",{class:E(["w-form",n.classes]),onSubmit:e[0]||(e[0]=(...r)=>n.onSubmit&&n.onSubmit(...r)),onReset:e[1]||(e[1]=(...r)=>n.reset&&n.reset(...r)),novalidate:""},[D(t.$slots,"default")],34)}const Lb=async(t,e)=>{for(const s of t)if(await e(s))return!0;return!1},Pb={name:"w-form",props:{modelValue:{},allowSubmit:{type:Boolean},noKeyupValidation:{type:Boolean},noBlurValidation:{type:Boolean},errorPlaceholders:{type:Boolean},validationColor:{type:String,default:"error"},disabled:{type:Boolean},readonly:{type:Boolean}},provide(){return{formRegister:this.register,formUnregister:this.unregister,validateElement:this.validateElement,formProps:this.$props}},emits:["submit","before-validate","validate","success","error","reset","input","update:modelValue","update:errorsCount"],data:()=>({formElements:[],status:null,errorsCount:0}),computed:{classes(){return{"w-form--pristine":this.status===null,"w-form--error":this.status===!1,"w-form--success":this.status===!0,"w-form--error-placeholders":this.errorPlaceholders}}},methods:{register(t){this.formElements.push(t)},unregister(t){this.formElements=this.formElements.filter(e=>e._.uid!==t._.uid)},async validate(t){this.$emit("before-validate",{e:t,errorsCount:this.errorsCount});let e=0;return await(async()=>{var s;for(const i of this.formElements)!((s=i.validators)!=null&&s.length)||i.disabled||i.readonly||(await this.checkElementValidators(i),e+=~~!i.Validation.isValid,i.$emit("update:valid",i.Validation.isValid))})(),this.updateErrorsCount(e),this.status=!e,this.$emit("validate",{e:t,errorsCount:e}),this.$emit(this.status?"success":"error",{e:t,errorsCount:e}),this.status},async validateElement(t){return await this.checkElementValidators(t),this.updateErrorsCount(),t.Validation.isValid},async checkElementValidators(t){let e=!1,s="";await Lb(t.validators,async i=>{const o=await(typeof i=="function"&&i(t.inputValue));return e=typeof o!="string",s=e?"":o,!e}),t.hasJustReset=!1,t.Validation.isValid=e,t.Validation.message=s},reset(t){this.status=null,this.formElements.forEach(e=>e.reset()),this.updateErrorsCount(0,!0),this.$emit("reset",t)},updateErrorsCount(t=null,e=!1){this.errorsCount=t!==null?t:this.formElements.reduce((s,i)=>s+~~(i.Validation.isValid===!1),0),this.status=e?null:!this.errorsCount,this.$emit("update:modelValue",this.status),this.$emit("input",this.status),this.$emit("update:errorsCount",this.errorsCount)},onSubmit(t){this.validate(t),this.$emit("submit",t),(!this.allowSubmit||!this.status)&&t.preventDefault()}},created(){this.status=this.modelValue||null},watch:{modelValue(t){(this.status===!1&&t||t===null&&this.status!==null)&&this.reset(),this.status=t}}},Nb=ne(Pb,[["render",Rb]]);function Wb(t,e,s,i,o,n){const r=R("w-transition-expand");return f(),y("div",{class:E(n.classes)},[l("div",{class:E(["w-flex grow",[s.column?"column":"align-center",s.wrap?"wrap":""]])},[D(t.$slots,"default")],2),h(r,{y:""},{default:p(()=>[t.Validation.message?(f(),y("div",{key:0,class:E(["w-form-el__error",n.formProps.validationColor])},[D(t.$slots,"error-message",{message:t.Validation.message},()=>[a(S(t.Validation.message),1)])],2)):C("",!0)]),_:3})],2)}const Hb={name:"w-form-element",props:{valid:{required:!0},disabled:{type:Boolean},readonly:{type:Boolean},inputValue:{required:!0},validators:{type:Array},isFocused:{default:!1},column:{default:!1},wrap:{default:!1}},inject:{formRegister:{default:null},formUnregister:{default:null},validateElement:{default:null},formProps:{default:()=>({noKeyupValidation:!1,noBlurValidation:!1,validationColor:"error",disabled:!1,readonly:!1})}},emits:["reset","update:valid"],data:()=>({Validation:{isValid:null,message:""},hasJustReset:!1}),computed:{classes(){return["w-form-el",["w-form-el--error error","w-form-el--success","w-form-el--pristine"][this.Validation.isValid===null?2:~~this.Validation.isValid]]}},methods:{reset(){this.$emit("reset"),this.$emit("update:valid",null),this.Validation.message="",this.Validation.isValid=null,this.hasJustReset=!0},async validate(){this.$emit("update:valid",await this.validateElement(this))}},watch:{async inputValue(){if(this.hasJustReset)return this.hasJustReset=!1;!this.formProps.noKeyupValidation&&this.validators&&this.$emit("update:valid",await this.validateElement(this))},async isFocused(t){t?this.hasJustReset=!1:!this.formProps.noBlurValidation&&this.validators&&!this.readonly&&this.$emit("update:valid",await this.validateElement(this))}},created(){this.formRegister&&this.formRegister(this)},beforeUnmount(){this.formUnregister&&this.formUnregister(this)}},jb=ne(Hb,[["render",Wb]]);function zb(t,e,s,i,o,n){return f(),B(De(s.tag),{class:E(["w-grid",n.classes])},{default:p(()=>[D(t.$slots,"default")]),_:3},8,["class"])}const Fb={name:"w-grid",props:{tag:{type:String,default:"div"},columns:{type:[Number,Object,String]},gap:{type:[Number,Object,String],default:0}},computed:{breakpointsColumns(){let t={xs:0,sm:0,md:0,lg:0,xl:0};switch(typeof this.columns){case"object":t=Object.assign(t,this.columns);break;case"number":case"string":t=Object.keys(t).reduce((e,s)=>e[s]=~~this.columns,{});break}return t},breakpointsGap(){let t={xs:0,sm:0,md:0,lg:0,xl:0};switch(typeof this.gap){case"object":t=Object.assign(t,this.gap);break;case"number":case"string":t=Object.keys(t).reduce((e,s)=>e[s]=~~this.gap,{});break}return t},classes(){let t=null;typeof this.columns=="object"&&(t=Object.entries(this.breakpointsColumns).reduce((s,[i,o])=>(s[`${i}-columns${o}`]=!0,s),{}));let e=null;return typeof this.gap=="object"&&(e=Object.entries(this.breakpointsGap).reduce((s,[i,o])=>(s[`${i}-gap${o}`]=!0,s),{})),{...t||{[`columns${this.columns}`]:this.columns},...e||{[`gap${this.gap}`]:this.gap}}}}},Yb=ne(Fb,[["render",zb]]);function Ub(t,e,s,i,o,n){return f(),B(De(s.tag||"i"),{class:E(["w-icon",n.classes]),role:"icon","aria-hidden":"true",style:me(n.readIcon()&&n.styles)},{default:p(()=>[n.hasLigature?(f(),y(H,{key:0},[a(S(t.icon),1)],64)):C("",!0)]),_:1},8,["class","style"])}const Kb={name:"w-icon",props:{tag:{type:String,default:"i"},color:{type:String},bgColor:{type:String},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean},spin:{type:Boolean},spinA:{type:Boolean},rotate135a:{type:Boolean},rotate90a:{type:Boolean},rotate45a:{type:Boolean},rotate45:{type:Boolean},rotate90:{type:Boolean},rotate135:{type:Boolean},rotate180:{type:Boolean},flipX:{type:Boolean},flipY:{type:Boolean},size:{type:[Number,String]}},emits:[],data:()=>({icon:"",fontName:""}),computed:{hasLigature(){return this.$waveui.config.iconsLigature===this.fontName},forcedSize(){return this.size&&(isNaN(this.size)?this.size:`${this.size}px`)},presetSize(){return this.xs&&"xs"||this.sm&&"sm"||this.md&&"md"||this.lg&&"lg"||this.xl&&"xl"||null},classes(){return{[this.fontName]:!0,[!this.hasLigature&&this.icon]:!this.hasLigature&&this.icon,[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,[`size--${this.presetSize}`]:this.presetSize&&!this.forcedSize,"w-icon--spin":this.spin,"w-icon--spin-a":this.spinA,"w-icon--rotate45":this.rotate45,"w-icon--rotate90":this.rotate90,"w-icon--rotate135":this.rotate135,"w-icon--rotate180":this.rotate180,"w-icon--rotate-45":this.rotate45a,"w-icon--rotate-90":this.rotate90a,"w-icon--rotate-135":this.rotate135a,"w-icon--flip-x":this.flipX,"w-icon--flip-y":this.flipY}},styles(){return this.forcedSize&&`font-size: ${this.forcedSize}`}},methods:{readIcon(){const{default:t}=this.$slots,[e="",s=""]=typeof t=="function"&&t()[0].children.trim().split(" ")||[];return this.fontName=e,this.icon=s,!0}}},qb=ne(Kb,[["render",Ub]]),Jb={key:0,class:"w-image__loader"},Gb=["innerHTML"];function Xb(t,e,s,i,o,n){const r=R("w-progress");return f(),B(De(n.wrapperTag),{class:E(["w-image",n.wrapperClasses]),style:me(n.wrapperStyles)},{default:p(()=>[h(Oe,{name:s.transition,appear:""},{default:p(()=>[o.loaded?(f(),B(De(n.normalized.tag),{key:0,class:E(["w-image__image",n.imageClasses]),style:me(n.imageStyles),src:n.normalized.tag==="img"?o.computedImg.src:null},null,8,["class","style","src"])):C("",!0)]),_:1},8,["name"]),!s.noSpinner&&o.loading?(f(),y("span",Jb,[t.$slots.loading?D(t.$slots,"loading",{key:0}):(f(),B(r,ee({key:1,circle:"",indeterminate:""},s.spinnerColor?{color:s.spinnerColor}:{}),null,16))])):C("",!0),t.$slots.default?(f(),B(De(n.wrapperTag),{key:1,class:E(["w-image__content",s.contentClass])},{default:p(()=>[D(t.$slots,"default")]),_:3},8,["class"])):C("",!0),t.$slots.caption?(f(),y("figcaption",{key:2,class:E(["w-image__caption caption",s.captionClass])},[D(t.$slots,"caption")],2)):s.caption?(f(),y("figcaption",{key:3,class:E(["w-image__caption caption",s.captionClass]),innerHTML:s.caption},null,10,Gb)):C("",!0)]),_:3},8,["class","style"])}const Qb={name:"w-image",props:{tag:{type:String,default:"span"},src:{type:String},width:{type:[Number,String]},height:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},ratio:{type:[Number,String]},lazy:{type:Boolean},absolute:{type:Boolean},fixed:{type:Boolean},contain:{type:Boolean},noSpinner:{type:Boolean},spinnerColor:{type:String},fallback:{type:String},transition:{type:String,default:"fade"},contentClass:{type:[String,Array,Object]},caption:{type:String},captionClass:{type:String}},emits:["loading","loaded","error"],data(){return{loading:!1,loaded:!1,computedImg:{src:"",width:0,height:0,ratio:0}}},computed:{normalized(){return{width:(isNaN(this.width)?this.width:`${this.width}px`)||null,height:(isNaN(this.height)?this.height:`${this.height}px`)||null,maxWidth:(isNaN(this.maxWidth)?this.maxWidth:`${this.maxWidth}px`)||null,maxHeight:(isNaN(this.maxHeight)?this.maxHeight:`${this.maxHeight}px`)||null,ratio:parseFloat(this.ratio)||void 0,tag:this.tag==="img"||this.tag==="figure"||this.caption?"img":"span"}},wrapperTag(){return this.caption||this.tag==="figure"?"figure":["span","div"].includes(this.tag)?this.tag:"span"},wrapperClasses(){return{"w-image--absolute":this.absolute,"w-image--fixed":this.fixed,"w-image--has-ratio":this.normalized.ratio}},wrapperStyles(){let t=this.normalized.width;const e=this.normalized.height;let s=this.normalized.maxWidth,i=this.normalized.ratio;return i&&!t&&!e?t="100%":!t&&!e?(t="100%",s=this.normalized.maxWidth||`${this.computedImg.width}px`,i=i||this.computedImg.width/this.computedImg.height):(t&&!e||e&&!t)&&(i=i||this.computedImg.width/this.computedImg.height),{width:t,height:e,maxWidth:s,maxHeight:this.normalized.maxHeight,aspectRatio:i}},imageClasses(){return{"w-image__image--loading":this.loading,"w-image__image--loaded":this.loaded,"w-image__image--contain":this.contain}},imageStyles(){return{"background-image":this.normalized.tag!=="img"&&this.loaded?`url('${this.computedImg.src}')`:null}}},methods:{loadImage(t=!1){if(!this.loading)return this.loading=!0,this.loaded=!1,this.$emit("loading",t?this.fallback:this.src),new Promise(e=>{const s=new Image;s.onload=i=>(this.computedImg.width=i.target.width,this.computedImg.height=i.target.height,this.computedImg.ratio=i.target.height/i.target.width,this.loading=!1,this.loaded=!0,this.computedImg.src=t?this.fallback:this.src,this.$emit("loaded",this.computedImg.src),e(s)),s.onerror=i=>{this.$emit("error",i),this.fallback&&!t?(this.loading=!1,this.loadImage(!0)):(this.loading=!1,this.loaded=!1)},s.src=t?this.fallback:this.src})}},mounted(){if(!this.src)return an("The w-image component was used without src.");if(this.lazy){const t=new IntersectionObserver(e=>{e[0]&&e[0].isIntersecting&&(this.loadImage(),t.disconnect())},this.intersectionConfig);t.observe(this.$el)}else this.loadImage()},watch:{src(){this.loadImage()}}},Zb=ne(Qb,[["render",Xb]]),e1=["name"],t1=["for"],s1=["id","type","name","placeholder","step","min","max","minlength","maxlength","readonly","aria-readonly","disabled","required","tabindex"],n1=["id","name","multiple","disabled","data-progress"],l1={class:"w-input__no-file",key:"no-file"},i1=["for"],a1=["src"],o1=["for"];function r1(t,e,s,i,o,n){const r=R("w-icon"),d=R("w-progress");return f(),B(De(t.formRegister?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:o.inputValue,disabled:t.isDisabled,readonly:t.isReadonly,isFocused:o.isFocused},{valid:t.valid,"onUpdate:valid":e[10]||(e[10]=u=>t.valid=u),onReset:e[11]||(e[11]=u=>{t.$emit("update:modelValue",o.inputValue=""),t.$emit("input","")}),wrap:n.hasLabel&&s.labelPosition!=="inside",class:n.classes,style:t.$attrs.style}),{default:p(()=>[s.type==="hidden"?st((f(),y("input",{key:0,type:"hidden",name:t.name||null,"onUpdate:modelValue":e[0]||(e[0]=u=>o.inputValue=u)},null,8,e1)),[[zn,o.inputValue]]):(f(),y(H,{key:1},[s.labelPosition==="left"?(f(),y(H,{key:0},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-input__label w-input__label--left w-form-el-shakable",t.labelClasses]),for:`w-input--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,t1)):C("",!0)],64)):C("",!0),l("div",{class:E(["w-input__input-wrap",n.inputWrapClasses])},[D(t.$slots,"icon-left",{inputId:`w-input--${t._.uid}`},()=>[s.innerIconLeft?(f(),B(r,{key:0,class:"w-input__icon w-input__icon--inner-left",tag:"label",for:`w-input--${t._.uid}`,onClick:e[1]||(e[1]=u=>t.$emit("click:inner-icon-left",u))},{default:p(()=>[a(S(s.innerIconLeft),1)]),_:1},8,["for"])):C("",!0)]),s.type!=="file"?st((f(),y("input",ee({key:0,class:"w-input__input",ref:"input","onUpdate:modelValue":e[2]||(e[2]=u=>o.inputValue=u),onInput:e[3]||(e[3]=(...u)=>n.onInput&&n.onInput(...u)),onFocus:e[4]||(e[4]=(...u)=>n.onFocus&&n.onFocus(...u)),onBlur:e[5]||(e[5]=(...u)=>n.onBlur&&n.onBlur(...u)),id:`w-input--${t._.uid}`,type:s.type,name:t.inputName,placeholder:s.placeholder||null,step:s.step||null,min:s.min||null,max:s.max||null,minlength:s.minlength||null,maxlength:s.maxlength||null,readonly:t.isReadonly||null,"aria-readonly":t.isReadonly?"true":"false",disabled:t.isDisabled||null,required:t.required||null,tabindex:t.tabindex||null},n.attrs),null,16,s1)),[[gc,o.inputValue]]):(f(),y(H,{key:1},[l("input",ee({ref:"input",id:`w-input--${t._.uid}`,type:"file",name:t.name||null,onFocus:e[6]||(e[6]=(...u)=>n.onFocus&&n.onFocus(...u)),onBlur:e[7]||(e[7]=(...u)=>n.onBlur&&n.onBlur(...u)),onChange:e[8]||(e[8]=(...u)=>n.onFileChange&&n.onFileChange(...u)),multiple:s.multiple||null},n.attrs,{disabled:t.isDisabled||null,"data-progress":n.overallFilesProgress}),null,16,n1),h(rl,{class:"w-input__input w-input__input--file",tag:"label",name:"fade",for:`w-input--${t._.uid}`},{default:p(()=>[!o.inputFiles.length&&o.isFocused?(f(),y("span",l1,[D(t.$slots,"no-file",{},()=>[t.$slots["no-file"]===void 0?(f(),y(H,{key:0},[a("No file")],64)):C("",!0)])])):C("",!0),(f(!0),y(H,null,ge(o.inputFiles,(u,c)=>(f(),y("span",{key:u.lastModified},[a(S(c?", ":""),1),(f(),y("span",{class:"filename",key:`${c}b`},S(u.base),1)),a(S(u.extension?`.${u.extension}`:""),1)]))),128))]),_:3},8,["for"])],64)),s.labelPosition==="inside"&&n.showLabelInside?(f(),y(H,{key:2},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-input__label w-input__label--inside w-form-el-shakable",t.labelClasses])},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],2)):C("",!0)],64)):C("",!0),D(t.$slots,"icon-right",{inputId:`w-input--${t._.uid}`},()=>[s.innerIconRight?(f(),B(r,{key:0,class:"w-input__icon w-input__icon--inner-right",tag:"label",for:`w-input--${t._.uid}`,onClick:e[9]||(e[9]=u=>t.$emit("click:inner-icon-right",u))},{default:p(()=>[a(S(s.innerIconRight),1)]),_:1},8,["for"])):C("",!0)]),n.hasLoading||s.showProgress&&(n.uploadInProgress||n.uploadComplete)?(f(),B(d,{key:3,class:"fill-width",size:"2",color:s.progressColor||s.color,"model-value":s.showProgress?(n.uploadInProgress||n.uploadComplete)&&n.overallFilesProgress:n.loadingValue},null,8,["color","model-value"])):C("",!0)],2),s.type==="file"&&s.preview&&o.inputFiles.length?(f(),y("label",{key:1,class:"d-flex",for:`w-input--${t._.uid}`},[(f(!0),y(H,null,ge(o.inputFiles,(u,c)=>(f(),y(H,null,[u.progress<100?(f(),y("i",{class:"w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",key:`${c}a`})):u.preview?(f(),y("img",{class:"w-input__file-preview",key:`${c}b`,src:u.preview,alt:""},null,8,a1)):(f(),y("i",{class:E(["w-icon w-input__file-preview primary size--md",s.preview&&typeof s.preview=="string"?s.preview:"wi-file"]),key:`${c}c`},null,2))],64))),256))],8,i1)):C("",!0),s.labelPosition==="right"?(f(),y(H,{key:2},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-input__label w-input__label--right w-form-el-shakable",t.labelClasses]),for:`w-input--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,o1)):C("",!0)],64)):C("",!0)],64))]),_:3},16,["valid","wrap","class","style"])}const d1={name:"w-input",mixins:[Et],inheritAttrs:!1,props:{modelValue:{default:""},type:{type:String,default:"text"},label:{type:String},labelPosition:{type:String,default:"inside"},innerIconLeft:{type:String},innerIconRight:{type:String},staticLabel:{type:Boolean},placeholder:{type:String},color:{type:String,default:"primary"},bgColor:{type:String},labelColor:{type:String,default:"primary"},progressColor:{type:String},minlength:{type:[Number,String]},maxlength:{type:[Number,String]},step:{type:[Number,String]},min:{type:[Number,String]},max:{type:[Number,String]},outline:{type:Boolean},round:{type:Boolean},shadow:{type:Boolean},tile:{type:Boolean},multiple:{type:Boolean},preview:{type:[Boolean,String],default:!0},loading:{type:[Boolean,Number],default:!1},showProgress:{type:[Boolean]},files:{type:Array},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","focus","blur","click:inner-icon-left","click:inner-icon-right","update:overallProgress"],data(){return{inputValue:this.modelValue,inputNumberError:!1,isFocused:!1,inputFiles:[],fileReader:null,isAutofilled:!1}},computed:{attrs(){const{class:t,style:e,...s}=this.$attrs;return this.type==="file"&&!this.inputFiles.length&&(s.value=null),s},hasValue(){switch(this.type){case"file":return!!this.inputFiles.length;case"number":return this.inputValue||this.inputValue===0||this.inputNumberError;case"date":case"time":return!0;default:return this.inputValue||this.inputValue===0}},hasLabel(){return this.label||this.$slots.default},hasLoading(){return![void 0,!1].includes(this.loading)},loadingValue(){let t;return typeof this.loading=="number"?t=this.loading:this.loading&&(t=this.type==="file"&&this.overallFilesProgress?this.overallFilesProgress:void 0),t},showLabelInside(){return!this.staticLabel||!this.hasValue&&!this.placeholder},overallFilesProgress(){const t=+this.inputFiles.reduce((e,s)=>e+s.progress,0)/this.inputFiles.length;return this.$emit("update:overallProgress",this.inputFiles.length?t:0),t},uploadInProgress(){return this.overallFilesProgress>0&&this.overallFilesProgress<100},uploadComplete(){return this.overallFilesProgress===100},classes(){return{"w-input":!0,"w-input--file":this.type==="file","w-input--disabled":this.isDisabled,"w-input--readonly":this.isReadonly,[`w-input--${this.hasValue||this.isAutofilled?"filled":"empty"}`]:!0,"w-input--focused":this.isFocused&&!this.isReadonly,"w-input--dark":this.dark,"w-input--light":this.light,"w-input--floating-label":this.hasLabel&&this.labelPosition==="inside"&&!this.staticLabel,"w-input--no-padding":!this.outline&&!this.bgColor&&!this.shadow&&!this.round,"w-input--has-placeholder":this.placeholder,"w-input--inner-icon-left":this.innerIconLeft,"w-input--inner-icon-right":this.innerIconRight,[this.$attrs.class]:!!this.$attrs.class}},inputWrapClasses(){return{[this.valid===!1?this.validationColor:this.color]:this.color||this.valid===!1,[`${this.bgColor}--bg`]:this.bgColor,"w-input__input-wrap--file":this.type==="file","w-input__input-wrap--round":this.round,"w-input__input-wrap--tile":this.tile,"w-input__input-wrap--box":this.outline||this.bgColor||this.shadow,"w-input__input-wrap--underline":!this.outline,"w-input__input-wrap--shadow":this.shadow,"w-input__input-wrap--no-padding":!this.outline&&!this.bgColor&&!this.shadow&&!this.round,"w-input__input-wrap--loading":this.loading||this.showProgress&&this.uploadInProgress,"w-input__input-wrap--upload-complete":this.uploadComplete}}},methods:{onInput(t){this.inputNumberError=t.target.validity.badInput,this.$emit("update:modelValue",this.inputValue),this.$emit("input",this.inputValue)},onFocus(t){this.isFocused=!0,this.$emit("focus",t)},onBlur(t){this.isFocused=!1,this.$emit("blur",t)},onFileChange(t){this.inputFiles=[...t.target.files].map(s=>{const[,i="",o="",n=""]=s.name.match(/^(.*?)\.([^.]*)$|(.*)/),r=Zt({name:s.name,base:i||n,extension:o,type:s.type,size:s.size,lastModified:s.lastModified,preview:null,progress:0,file:s});return this.readFile(s,r),r});const e=this.multiple?this.inputFiles:this.inputFiles[0];this.$emit("update:modelValue",e),this.$emit("input",e)},readFile(t,e){const s=new FileReader,i=typeof this.preview=="string",o=t.type&&t.type.startsWith("image/");this.preview&&!i&&o?s.addEventListener("load",n=>{e.preview=n.target.result}):delete e.preview,s.addEventListener("progress",n=>{n.loaded&&n.total&&(e.progress=n.loaded*100/n.total)}),s.readAsDataURL(t)}},mounted(){setTimeout(()=>{this.$refs.input&&this.$refs.input.matches(":-webkit-autofill")&&(this.isAutofilled=!0)},400)},watch:{modelValue(t){this.inputValue=t,!t&&t!==0&&(this.isAutofilled=!1,this.inputFiles=[])}}},u1=ne(d1,[["render",r1]]);function c1(t,e,s,i,o,n){const r=R("w-icon"),d=R("w-list",!0);return f(),y("ul",{class:E(["w-list",n.classes])},[(f(!0),y(H,null,ge(t.listItems,(u,c)=>(f(),y("li",{class:E(["w-list__item",{"w-list__item--parent":(u.children||[]).length}]),key:c},[s.icon?(f(),B(r,{key:0,class:"w-list__item-bullet"},{default:p(()=>[a(S(s.icon),1)]),_:1})):C("",!0),t.$slots[`item.${c+1}`]||t.$slots.item||t.$slots.default?(f(),B(De(s.checklist?"w-checkbox":s.nav&&!u.disabled&&u.route?n.hasRouter?"router-link":"a":"div"),ee({key:1,class:"w-list__item-label",ref_for:!0},n.liLabelProps(u,c,u._selected)),{default:p(()=>[t.$slots[`item.${c+1}`]?D(t.$slots,`item.${c+1}`,{key:0,item:n.cleanLi(u),index:c+1,selected:u._selected}):t.$slots.item?D(t.$slots,"item",{key:1,item:n.cleanLi(u),index:c+1,selected:u._selected}):D(t.$slots,"default",{key:2,item:n.cleanLi(u),index:c+1,selected:u._selected},()=>[a(S(u._label),1)])]),_:2},1040)):(f(),B(De(s.checklist?"w-checkbox":s.nav&&!u.disabled&&u.route?n.hasRouter?"router-link":"a":"div"),ee({key:2,class:"w-list__item-label",ref_for:!0},n.liLabelProps(u,c,u._selected)),null,16)),(u.children||[]).length?(f(),B(d,ee({key:3,ref_for:!0},t.$props,{items:u.children,depth:s.depth+1,"onUpdate:modelValue":e[0]||(e[0]=m=>t.$emit("update:modelValue",m)),onInput:e[1]||(e[1]=m=>t.$emit("input",m)),onItemClick:e[2]||(e[2]=m=>t.$emit("item-click",m)),onItemSelect:e[3]||(e[3]=m=>t.$emit("item-select",m))}),rs({_:2},[t.$slots.item?{name:"item",fn:p(({item:m,index:g,selected:v})=>[D(t.$slots,"item",{item:n.cleanLi(m),index:g,selected:v})]),key:"0"}:{name:"default",fn:p(({item:m,index:g,selected:v})=>[D(t.$slots,"default",{item:n.cleanLi(m),index:g,selected:v},()=>[a(S(m[s.itemLabelKey]),1)])]),key:"1"}]),1040,["items","depth"])):C("",!0)],2))),128))],2)}const p1={name:"w-list",props:{items:{type:[Array,Number],required:!0},modelValue:{},checklist:{type:Boolean},roundCheckboxes:{type:Boolean},multiple:{type:Boolean},addIds:{type:[Boolean,String]},hover:{type:Boolean},color:{type:String},selectionColor:{type:String},bgColor:{type:String},nav:{type:Boolean},icon:{type:String,default:""},itemLabelKey:{type:String,default:"label"},itemValueKey:{type:String,default:"value"},itemClassKey:{type:String,default:"class"},itemColorKey:{type:String,default:"color"},itemRouteKey:{type:String,default:"route"},itemClass:{type:String},depth:{type:Number,default:0},returnObject:{type:Boolean},noUnselect:{type:Boolean},arrowsNavigation:{type:Boolean}},emits:["input","update:modelValue","item-click","item-select","keydown:escape","keydown:enter"],data:()=>({listItems:[]}),computed:{hasRouter(){return"$router"in this},listId(){return this.addIds?typeof this.addIds=="string"?this.addIds:`w-list--${this._.uid}`:null},selectedItems(){return this.listItems.filter(t=>t._selected)},enabledItemsIndexes(){return this.listItems.filter(t=>!t.disabled).map(t=>t.index)},isMultipleSelect(){return this.multiple||this.checklist},isSelectable(){return this.modelValue!==void 0||this.checklist||this.nav},SelectionColor(){const t=this.selectionColor===void 0?!this.color&&"primary":this.selectionColor;return this.isSelectable&&t},classes(){return{[this.color]:this.color||null,[`${this.bgColor}--bg`]:this.bgColor||null,"w-list--checklist":this.checklist,"w-list--navigation":this.nav,"w-list--icon":this.icon,[`w-list--child w-list--depth-${this.depth}`]:this.depth}}},methods:{getItemValue(t){return t&&typeof t=="object"?t[this.itemValueKey]!==void 0?t[this.itemValueKey]:t[this.itemLabelKey]!==void 0?t[this.itemLabelKey]:t.index:t},selectItem(t,e){t._selected&&!this.multiple&&this.noUnselect||(t._selected=e!==void 0?e:!t._selected,t._selected&&!this.isMultipleSelect&&this.listItems.forEach(s=>s._index!==t._index&&(s._selected=!1)),this.emitSelection())},liLabelClasses(t){return{"w-list__item-label--disabled":t.disabled||this.nav&&!t[this.itemRouteKey]&&!t.children,"w-list__item-label--active":this.isSelectable&&t._selected||null,"w-list__item-label--focused":t._focused,"w-list__item-label--hoverable":this.hover,"w-list__item-label--selectable":this.isSelectable,[t[this.itemColorKey]]:!!t[this.itemColorKey],[this.SelectionColor]:t._selected&&!t[this.itemColorKey]&&this.SelectionColor,[t[this.itemClassKey]||this.itemClass]:t[this.itemClassKey]||this.itemClass}},liLabelProps(t,e,s){const i=this.$slots[`item.${e+1}`]||this.$slots.item,o=()=>{if(!t.disabled){const u=this.cleanLi(t);this.$emit("item-click",u),this.$emit("item-select",u)}},n=this.isSelectable&&(u=>{u.stopPropagation(),!t.disabled&&this.selectItem(t)}),r=this.isSelectable&&(u=>{!t.disabled&&u.keyCode===13?(this.selectItem(t),this.$emit("keydown:enter"),this.$emit("item-select",this.cleanLi(t))):u.keyCode===27?this.$emit("keydown:escape"):this.arrowsNavigation&&[38,40].includes(u.keyCode)&&(u.preventDefault(),u.keyCode===38&&this.focusPrevNextItem(t._index,!1),u.keyCode===40&&this.focusPrevNextItem(t._index,!0))}),d={class:this.liLabelClasses(t),tabindex:t.disabled||this.checklist?null:"0","aria-selected":s?"true":"false",id:this.listId?`${this.listId}_item-${e+1}`:null,role:"option"};return this.checklist?(d.modelValue=t._selected,d.color=t[this.itemColorKey]||this.color,d.round=this.roundCheckboxes,d.disabled=t.disabled,i||(d.label=t._label||null),d.onFocus=()=>t._focused=!0,d.onBlur=()=>t._focused=!1,d.onInput=u=>this.selectItem(t,u),d.onClick=u=>{const c=u.target.querySelector('input[type="checkbox"]');c&&(c.focus(),c.click()),o()}):this.nav?(!t.disabled&&t[this.itemRouteKey]&&(d.onKeydown=r,d.onMousedown=n,this.$router?(d.to=t[this.itemRouteKey],d.onClick=u=>{u.preventDefault(),this.$router.push(t[this.itemRouteKey]),o()}):(d.href=t[this.itemRouteKey],d.onClick=o)),i||(d.innerHTML=t._label)):(this.isSelectable&&(t.disabled||(d.tabindex=0),d.onClick=o,d.onKeydown=r,d.onMousedown=n),i||(d.innerHTML=t._label)),d},checkSelection(t){return t=Array.isArray(t)?t:t?[t]:[],this.returnObject&&(t=t.map(this.getItemValue)),t},emitSelection(){const t=this.selectedItems.map(s=>{if(!this.returnObject)return s._value;const{_value:i,_selected:o,...n}=s;return n}),e=this.isMultipleSelect?t:t[0]!==void 0?t[0]:null;this.$emit("update:modelValue",e),this.$emit("input",e)},focusPrevNextItem(t,e=!0){t=this.enabledItemsIndexes[this.enabledItemsIndexes.indexOf(t)+(e?1:-1)];const s=e?0:this.enabledItemsIndexes.length-1;t===void 0&&(t=this.enabledItemsIndexes[s]),this.$el.querySelector(`#${this.listId}_item-${t+1}`).focus()},cleanLi(t){const{_index:e,_value:s,_label:i,_selected:o,_focused:n,...r}=t;return r},refreshListItems(){const t=typeof this.items=="number"?Array(this.items).fill({}):this.items||[];this.listItems=t.map((e,s)=>({...e,_index:s,_value:e[this.itemValueKey]===void 0?e[this.itemLabelKey]||s:e[this.itemValueKey],_selected:e._selected||!1,_label:e[this.itemLabelKey]||"",_focused:!1}))},applySelectionOnItems(t){this.isMultipleSelect||this.listItems.forEach(s=>s._selected=!1);const e=this.checkSelection(t);this.listItems.forEach(s=>{s._selected=e.find(i=>s._value===i)!==void 0})}},created(){this.refreshListItems(),this.applySelectionOnItems(this.modelValue)},watch:{items(){this.refreshListItems(),this.applySelectionOnItems(this.modelValue)},modelValue(t){this.applySelectionOnItems(t)},multiple(t){if(!t){let e=null;this.listItems.forEach(s=>{s._selected&&!e?e=s:s._selected&&(s._selected=!1)}),this.emitSelection()}}}},h1=ne(p1,[["render",c1]]),Pr={props:{appendTo:{type:[String,Boolean,Object]},fixed:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},left:{type:Boolean},right:{type:Boolean},alignTop:{type:Boolean},alignBottom:{type:Boolean},alignLeft:{type:Boolean},alignRight:{type:Boolean},noPosition:{type:Boolean},zIndex:{type:[Number,String,Boolean]},activator:{type:[String,Object]}},inject:{detachableDefaultRoot:{default:null}},data:()=>({docEventListenersHandlers:[],openTimeout:null}),computed:{appendToTarget(){let t=".w-app";typeof this.detachableDefaultRoot=="function"&&(t=this.detachableDefaultRoot()||t);let e=this.appendTo||t;return e===!0?e=t:this.appendTo==="activator"?e=this.$el.previousElementSibling:e&&!["object","string"].includes(typeof e)?e=t:typeof e=="object"&&!e.nodeType&&(e=t,an(`Invalid node provided in ${this.$options.name} \`append-to\`. Falling back to .w-app.`)),typeof e=="string"&&(e=document.querySelector(e)),e||(an(`Unable to locate ${this.appendTo?`target ${this.appendTo}`:t}`),e=document.querySelector(t)),e},detachableParentEl(){return this.appendToTarget},hasSeparateActivator(){var t;if(this.$slots.activator)return!1;const e=typeof this.activator=="string",s=(((t=this.activator)==null?void 0:t.$el)||this.activator)instanceof HTMLElement;return e||s},activatorEl:{get(){var t;if(this.hasSeparateActivator){const e=((t=this.activator)==null?void 0:t.$el)||this.activator;return e instanceof HTMLElement?e:document.querySelector(this.activator)}return this.$el.nextElementSibling},set(){}},position(){return this.top&&"top"||this.bottom&&"bottom"||this.left&&"left"||this.right&&"right"||"bottom"},alignment(){return["top","bottom"].includes(this.position)&&this.alignLeft&&"left"||["top","bottom"].includes(this.position)&&this.alignRight&&"right"||["left","right"].includes(this.position)&&this.alignTop&&"top"||["left","right"].includes(this.position)&&this.alignBottom&&"bottom"||""},shouldShowOnClick(){return this.$options.props.showOnHover&&!this.showOnHover||this.$options.props.showOnClick&&this.showOnClick}},methods:{async open(t){this.delay&&await new Promise(e=>this.openTimeout=setTimeout(e,this.delay)),!(this.delay&&!this.openTimeout)&&(this.detachableVisible=!0,this.activator&&(this.activatorEl=t.target),await this.insertInDOM(),this.minWidth==="activator"&&(this.activatorWidth=this.activatorEl.offsetWidth),this.noPosition||this.computeDetachableCoords(),this.timeoutId=setTimeout(()=>{this.$emit("update:modelValue",!0),this.$emit("input",!0),this.$emit("open")},0),this.persistent||document.addEventListener("mousedown",this.onOutsideMousedown),this.noPosition||window.addEventListener("resize",this.onResize))},getActivatorCoordinates(){const{top:t,left:e,width:s,height:i}=this.activatorEl.getBoundingClientRect();let o={top:t,left:e,width:s,height:i};if(!this.fixed){const{top:n,left:r}=this.detachableParentEl.getBoundingClientRect(),d=window.getComputedStyle(this.detachableParentEl,null);o={...o,top:t-n+this.detachableParentEl.scrollTop-parseInt(d.getPropertyValue("border-top-width")),left:e-r+this.detachableParentEl.scrollLeft-parseInt(d.getPropertyValue("border-left-width"))}}return o},computeDetachableCoords(){let{top:t,left:e,width:s,height:i}=this.getActivatorCoordinates();if(!this.detachableEl)return;this.detachableEl.style.visibility="hidden",this.detachableEl.style.display="flex";const o=window.getComputedStyle(this.detachableEl,null);switch(this.position){case"top":{t-=this.detachableEl.offsetHeight,this.alignRight?e+=s-this.detachableEl.offsetWidth+parseInt(o.getPropertyValue("border-right-width")):this.alignLeft||(e+=(s-this.detachableEl.offsetWidth)/2);break}case"bottom":{t+=i,this.alignRight?e+=s-this.detachableEl.offsetWidth+parseInt(o.getPropertyValue("border-right-width")):this.alignLeft||(e+=(s-this.detachableEl.offsetWidth)/2);break}case"left":{e-=this.detachableEl.offsetWidth,this.alignBottom?t+=i-this.detachableEl.offsetHeight:this.alignTop||(t+=(i-this.detachableEl.offsetHeight)/2);break}case"right":{e+=s,this.alignBottom?t+=i-this.detachableEl.offsetHeight+parseInt(o.getPropertyValue("margin-top")):this.alignTop||(t+=(i-this.detachableEl.offsetHeight)/2+parseInt(o.getPropertyValue("margin-top")));break}}this.detachableEl.style.visibility=null,this.detachableVisible||(this.detachableEl.style.display="none"),this.detachableCoords={top:t,left:e}},onResize(){this.minWidth==="activator"&&(this.activatorWidth=this.activatorEl.offsetWidth),this.computeDetachableCoords()},onOutsideMousedown(t){!this.detachableEl.contains(t.target)&&!this.activatorEl.contains(t.target)&&(this.$emit("update:modelValue",this.detachableVisible=!1),this.$emit("input",!1),this.$emit("close"),document.removeEventListener("mousedown",this.onOutsideMousedown),window.removeEventListener("resize",this.onResize))},insertInDOM(){return new Promise(t=>{this.$nextTick(()=>{var e;this.detachableEl=((e=this.$refs.detachable)==null?void 0:e.$el)||this.$refs.detachable,this.detachableEl&&this.appendToTarget.appendChild(this.detachableEl),t()})})},removeFromDOM(){document.removeEventListener("mousedown",this.onOutsideMousedown),window.removeEventListener("resize",this.onResize),this.detachableEl&&this.detachableEl.parentNode&&(this.detachableVisible=!1,this.detachableEl.remove(),this.detachableEl=null)},bindActivatorEvents(){const t=typeof this.activator=="string";Object.entries(this.activatorEventHandlers).forEach(([e,s])=>{e=e.replace("mouseenter","mouseover").replace("mouseleave","mouseout");const i=o=>{var n;(t&&(n=o.target)!=null&&n.matches&&o.target.matches(this.activator)||o.target===this.activatorEl||this.activatorEl.contains(o.target))&&s(o)};document.addEventListener(e,i),this.docEventListenersHandlers.push({eventName:e,handler:i})})}},mounted(){var t;this.activator?this.bindActivatorEvents():this.$nextTick(()=>{this.activator&&this.bindActivatorEvents(),this.modelValue&&this.open({target:this.activatorEl})}),this.overlay&&(this.overlayEl=(t=this.$refs.overlay)==null?void 0:t.$el),this.modelValue&&this.activator?this.toggle({type:this.shouldShowOnClick?"click":"mouseenter",target:this.activatorEl}):this.modelValue&&this.open({target:this.activatorEl})},unmounted(){this.close(),this.removeFromDOM(),this.docEventListenersHandlers.length&&this.docEventListenersHandlers.forEach(({eventName:t,handler:e})=>{document.removeEventListener(t,e)})},watch:{modelValue(t){!!t!==this.detachableVisible&&(t?this.open({target:this.activatorEl}):this.close())},appendTo(){this.removeFromDOM(),this.insertInDOM()}}};function m1(t,e,s,i,o,n){const r=R("w-card"),d=R("w-overlay");return f(),y(H,null,[D(t.$slots,"activator",{on:n.activatorEventHandlers}),h(Oe,{name:n.transitionName,appear:""},{default:p(()=>[s.custom&&t.detachableVisible?(f(),y("div",ee({key:0,class:"w-menu",ref:"detachable"},t.$attrs,{onClick:e[0]||(e[0]=u=>s.hideOnMenuClick&&n.close(!0)),onMouseenter:e[1]||(e[1]=u=>s.showOnHover&&(t.hoveringMenu=!0)),onMouseleave:e[2]||(e[2]=u=>s.showOnHover&&(t.hoveringMenu=!1,n.close())),class:n.classes,style:n.styles}),[D(t.$slots,"default")],16)):t.detachableVisible?(f(),B(r,ee({key:1,class:"w-menu",ref:"detachable"},t.$attrs,{onClick:e[3]||(e[3]=u=>s.hideOnMenuClick&&n.close(!0)),onMouseenter:e[4]||(e[4]=u=>s.showOnHover&&(t.hoveringMenu=!0)),onMouseleave:e[5]||(e[5]=u=>s.showOnHover&&(t.hoveringMenu=!1,n.close())),tile:s.tile,"title-class":n.titleClasses,"content-class":n.contentClasses,shadow:s.shadow,"no-border":s.noBorder,class:n.classes,style:n.styles}),rs({default:p(()=>[D(t.$slots,"default")]),_:2},[t.$slots.title?{name:"title",fn:p(()=>[D(t.$slots,"title")]),key:"0"}:void 0,t.$slots.actions?{name:"actions",fn:p(()=>[D(t.$slots,"actions")]),key:"1"}:void 0]),1040,["tile","title-class","content-class","shadow","no-border","class","style"])):C("",!0)]),_:3},8,["name"]),s.overlay?(f(),B(d,ee({key:0,ref:"overlay","model-value":t.detachableVisible,persistent:s.persistent,class:n.overlayClasses},s.overlayProps,{"z-index":(t.zIndex||200)-1,"onUpdate:modelValue":e[6]||(e[6]=u=>t.detachableVisible=!1)}),null,16,["model-value","persistent","class","z-index"])):C("",!0)],64)}const f1={name:"w-menu",mixins:[Pr],inheritAttrs:!1,props:{modelValue:{},showOnHover:{type:Boolean},hideOnMenuClick:{type:Boolean},color:{type:String},bgColor:{type:String},shadow:{type:Boolean},custom:{type:Boolean},tile:{type:Boolean},round:{type:Boolean},noBorder:{type:Boolean},transition:{type:String},menuClass:{type:[String,Object,Array]},titleClass:{type:[String,Object,Array]},contentClass:{type:[String,Object,Array]},arrow:{type:Boolean},minWidth:{type:[Number,String]},maxWidth:{type:[Number,String]},overlay:{type:Boolean},overlayClass:{type:[String,Object,Array]},overlayProps:{type:Object},persistent:{type:Boolean},delay:{type:Number},dark:{type:Boolean},light:{type:Boolean}},provide(){return{detachableDefaultRoot:()=>{var t;return((t=this.$refs.detachable)==null?void 0:t.$el)||this.$refs.detachable||null}}},emits:["input","update:modelValue","open","close"],data:()=>({detachableVisible:!1,hoveringActivator:!1,hoveringMenu:!1,detachableCoords:{top:0,left:0},activatorWidth:0,detachableEl:null,timeoutId:null}),computed:{transitionName(){return this.transition||"scale-fade"},menuMinWidth(){return this.minWidth==="activator"?this.activatorWidth?`${this.activatorWidth}px`:0:isNaN(this.minWidth)?this.minWidth:this.minWidth?`${this.minWidth}px`:0},menuMaxWidth(){return this.maxWidth==="activator"?this.activatorWidth?`${this.activatorWidth}px`:0:isNaN(this.maxWidth)?this.maxWidth:this.maxWidth?`${this.maxWidth}px`:0},menuClasses(){return Ct(this.menuClass)},titleClasses(){return Ct(this.titleClass)},contentClasses(){return Ct(this.contentClass)},overlayClasses(){return{...Ct(this.overlayClass),"w-overlay--no-pointer-event":this.showOnHover}},classes(){return{[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,...this.menuClasses,[`w-menu--${this.position}`]:!this.noPosition,[`w-menu--align-${this.alignment}`]:!this.noPosition&&this.alignment,"w-menu--tile":this.tile,"w-menu--card":!this.custom,"w-menu--round":this.round,"w-menu--arrow":this.arrow,"w-menu--shadow":this.shadow,"w-menu--fixed":this.fixed,"w-menu--dark":this.dark,"w-menu--light":this.light}},styles(){return{zIndex:this.zIndex||this.zIndex===0||this.overlay&&!this.zIndex&&200||null,top:this.detachableCoords.top&&`${~~this.detachableCoords.top}px`||null,left:this.detachableCoords.left&&`${~~this.detachableCoords.left}px`||null,minWidth:this.minWidth&&this.menuMinWidth||null,maxWidth:this.maxWidth&&this.menuMaxWidth||null,"--w-menu-bg-color":this.arrow&&(this.$waveui.colors[this.bgColor]||"rgb(var(--w-base-bg-color-rgb))")}},activatorEventHandlers(){let t={};return this.showOnHover?(t={focus:this.toggle,blur:this.toggle,mouseenter:e=>{this.hoveringActivator=!0,this.open(e)},mouseleave:e=>{this.hoveringActivator=!1,setTimeout(()=>{this.hoveringMenu||this.close()},10)}},typeof window<"u"&&"ontouchstart"in window&&(t.click=this.toggle)):t={click:this.toggle},t}},methods:{toggle(t){let e=this.detachableVisible;typeof window<"u"&&"ontouchstart"in window&&this.showOnHover&&t.type==="click"||t.type==="click"&&!this.showOnHover?e=!e:t.type==="mouseenter"&&this.showOnHover?(this.hoveringActivator=!0,e=!0):t.type==="mouseleave"&&this.showOnHover&&(this.hoveringActivator=!1,e=!1),this.timeoutId=clearTimeout(this.timeoutId),e?this.open(t):this.close()},async close(t=!1){this.openTimeout=clearTimeout(this.openTimeout),this.detachableVisible&&(this.showOnHover&&!t&&(await new Promise(e=>setTimeout(e,10)),this.showOnHover&&(this.hoveringMenu||this.hoveringActivator))||(this.$emit("update:modelValue",this.detachableVisible=!1),this.$emit("input",!1),this.$emit("close"),document.removeEventListener("mousedown",this.onOutsideMousedown),window.removeEventListener("resize",this.onResize)))}}},g1=ne(f1,[["render",m1]]);function v1(t,e,s,i,o,n){const r=R("w-alert");return f(),B(Oe,{name:n.transitionName,appear:""},{default:p(()=>[o.show?(f(),y("div",{key:0,class:E(["w-notification",n.classes]),style:me(n.styles)},[h(r,ee(n.alertProps,{class:n.alertClasses,"onUpdate:modelValue":e[0]||(e[0]=d=>{t.$emit("update:modelValue",!1),t.$emit("input",!1)})}),{default:p(()=>[D(t.$slots,"default")]),_:3},16,["class"])],6)):C("",!0)]),_:3},8,["name"])}const y1={name:"w-notification",props:{modelValue:{default:!0},transition:{type:[String,Boolean],default:""},timeout:{type:[Number,String],default:0},absolute:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},left:{type:Boolean},right:{type:Boolean},zIndex:{type:[Number,String,Boolean]},success:{type:Boolean},info:{type:Boolean},warning:{type:Boolean},error:{type:Boolean},color:{type:String},bgColor:{type:String},shadow:{type:Boolean},tile:{type:Boolean},round:{type:Boolean},plain:{type:Boolean},noBorder:{type:Boolean},borderLeft:{type:Boolean},borderRight:{type:Boolean},borderTop:{type:Boolean},borderBottom:{type:Boolean},outline:{type:Boolean},dismiss:{type:Boolean},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","close"],data(){return{show:this.modelValue,timeoutId:null}},computed:{transitionName(){return this.transition===!1?"":this.transition?this.transition:`slide-${{top:"down",bottom:"up",left:"right",right:"left"}[this.position[this.position[1]==="center"?0:1]]}`},position(){let t=[];return!this.top&&!this.bottom&&!this.left&&!this.right?t=["top","right"]:t=[this.top&&"top"||this.bottom&&"bottom"||"top",this.left&&"left"||this.right&&"right"||"center"],t},hasType(){return!!(this.success||this.info||this.warning||this.error)},alertProps(){return{modelValue:this.show,success:this.success,info:this.info,warning:this.warning,error:this.error,color:this.color,bgColor:this.bgColor||!this.hasType&&"white"||"",shadow:this.shadow,tile:this.tile,round:this.round,plain:this.plain,noBorder:this.noBorder,borderLeft:this.borderLeft,borderRight:this.borderRight,borderTop:this.borderTop,borderBottom:this.borderBottom,outline:this.outline,dismiss:this.dismiss,xs:this.xs,sm:this.sm,md:this.md,lg:this.lg,xl:this.xl}},classes(){return{"w-notification--dark":this.dark,"w-notification--light":this.light,"w-notification--absolute":this.absolute,[`w-notification--${this.position.join(" w-notification--")}`]:!0}},alertClasses(){return this.bgColor||(this.success||this.info||this.warning||this.error)&&this.plain?null:"white--bg"},styles(){return{zIndex:this.zIndex||this.zIndex===0||null}},timeoutVal(){return parseInt(this.timeout)}},methods:{countdown(){this.timeoutId=setTimeout(()=>{this.$emit("update:modelValue",this.show=!1),this.$emit("input",!1),this.$emit("close")},this.timeoutVal)}},created(){this.modelValue&&this.timeoutVal&&this.countdown()},watch:{modelValue(t){clearTimeout(this.timeoutId),this.show=t,t&&this.timeoutVal&&this.countdown()}}},b1=ne(y1,[["render",v1]]);function w1(t,e,s,i,o,n){const r=en("focus");return f(),B(Oe,{name:"fade",appear:"",onAfterLeave:n.onClose},{default:p(()=>[s.modelValue?st((f(),y("div",{key:0,class:E(["w-overlay",n.classes]),ref:"overlay",style:me(s.modelValue&&n.styles||null),onKeydown:e[0]||(e[0]=vt(We((...d)=>n.onClick&&n.onClick(...d),["stop"]),["escape"])),onClick:e[1]||(e[1]=(...d)=>n.onClick&&n.onClick(...d)),tabindex:"0"},[D(t.$slots,"default")],38)),[[ol,t.showOverlay],[r]]):C("",!0)]),_:3},8,["onAfterLeave"])}const k1={name:"w-overlay",props:{modelValue:{},opacity:{type:[Number,String,Boolean]},bgColor:{type:String},absolute:{type:Boolean},zIndex:{type:[Number,String,Boolean]},persistent:{type:Boolean},persistentNoAnimation:{type:Boolean}},provide(){return{detachableDefaultRoot:()=>this.$refs.overlay||null}},emits:["input","update:modelValue","click","before-close","close"],data:()=>({persistentAnimate:!1,showOverlay:!1}),computed:{backgroundColor(){return this.bgColor||this.opacity&&`rgba(0, 0, 0, ${this.opacity})`||!1},classes(){return{"w-overlay--persistent-animate":this.persistentAnimate,"w-overlay--absolute":this.absolute}},styles(){return{backgroundColor:this.backgroundColor,zIndex:this.zIndex||this.zIndex===0?this.zIndex:!1}}},methods:{onClick(t){t.target.classList.contains("w-overlay")&&(this.persistent&&!this.persistentNoAnimation?(this.persistentAnimate=!0,setTimeout(()=>this.persistentAnimate=!1,150)):this.persistent||(this.showOverlay=!1,this.$emit("before-close")),this.$emit("click",t))},onClose(){this.$emit("update:modelValue",!1),this.$emit("input",!1),this.modelValue||this.$emit("close")}},created(){this.showOverlay=this.modelValue},watch:{modelValue(t){t&&(this.showOverlay=!0)}}},x1=ne(k1,[["render",w1]]),C1={class:"w-parallax"};function _1(t,e,s,i,o,n){return f(),y("div",C1)}const S1={name:"w-parallax",props:{},emits:[],data:()=>({})},D1=ne(S1,[["render",_1]]),E1=["viewBox"],T1=["cx","cy","r","stroke-dasharray","stroke-width"],V1=["cx","cy","r","stroke-width","stroke-linecap","stroke-dasharray"];function $1(t,e,s,i,o,n){return f(),y("div",{class:E(["w-progress",n.classes]),style:me(n.styles)},[s.circle?(f(),y("svg",{key:1,viewBox:`${n.circleCenter/2} ${n.circleCenter/2} ${n.circleCenter} ${n.circleCenter}`},[s.bgColor||this.progressValue>-1?(f(),y("circle",{key:0,class:E(["bg",s.bgColor||null]),cx:n.circleCenter,cy:n.circleCenter,r:t.circleRadius,fill:"transparent","stroke-dasharray":t.circleCircumference,"stroke-width":s.stroke},null,10,T1)):C("",!0),l("circle",{class:"w-progress__progress",cx:n.circleCenter,cy:n.circleCenter,r:t.circleRadius,fill:"transparent","stroke-width":s.stroke,"stroke-linecap":s.roundCap&&"round","stroke-dasharray":t.circleCircumference,style:me(`stroke-dashoffset: ${(1-n.progressValue/100)*t.circleCircumference}`)},null,12,V1)],8,E1)):(f(),y("div",{key:0,class:E(["w-progress__progress",{full:n.progressValue===100}]),style:me(`width: ${n.progressValue}%`)},null,6)),s.label||t.$slots.default?(f(),y("div",{key:2,class:E(["w-progress__label",s.labelColor||!1])},[D(t.$slots,"default",{},()=>[a(S(Math.round(n.progressValue))+S(s.circle?"":"%"),1)])],2)):C("",!0)],6)}const Un=40,I1=Un/2,M1=Math.round(Un*3.14*100)/100,A1={name:"w-progress",props:{modelValue:{type:[Number,String,Boolean],default:-1},label:{type:Boolean},roundCap:{type:Boolean},color:{type:String,default:"primary"},bgColor:{type:String},labelColor:{type:String},size:{type:[Number,String]},circle:{type:Boolean},stroke:{type:[Number,String],default:4},shadow:{type:Boolean},tile:{type:Boolean},round:{type:Boolean},outline:{type:Boolean},stripes:{type:Boolean},absolute:{type:Boolean},fixed:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},zIndex:{type:[Number,String,Boolean]}},emits:[],data:()=>({circleSize:Un,circleRadius:I1,circleCircumference:M1}),computed:{progressValue(){return parseFloat(this.modelValue)},circleCenter(){return Un+this.stroke},forcedSize(){return this.size&&(isNaN(this.size)?this.size:`${this.size}px`)},position(){return this.top&&"top"||this.bottom&&"bottom"||"top"},classes(){return{[`w-progress--${this.circle?"circular":"linear"}`]:!0,[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor&&!this.circle,[`w-progress--${this.position}`]:!this.circle&&(this.absolute||this.fixed),"w-progress--default-bg":!this.bgColor,"w-progress--indeterminate":this.modelValue===-1,"w-progress--outline":!this.circle&&this.outline,"w-progress--tile":!this.circle&&this.tile,"w-progress--stripes":!this.circle&&this.stripes,"w-progress--round":!this.circle&&this.round,"w-progress--shadow":this.shadow,"w-progress--absolute":!this.circle&&this.absolute,"w-progress--fixed":!this.circle&&!this.absolute&&this.fixed,[`w-progress--${this.roundCap?"round":"flat"}-cap`]:!0}},styles(){return{[this.circle?"width":"height"]:this.forcedSize||null}}}},B1=ne(A1,[["render",$1]]),O1=["id","name","checked","disabled","required","tabindex","aria-checked"],R1=["for"],L1=["for","innerHTML"],P1=["for"],N1=["for","innerHTML"];function W1(t,e,s,i,o,n){return f(),B(De(t.formRegister&&!n.wRadios?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:t.inputValue,disabled:t.isDisabled,readonly:t.isReadonly},{valid:t.valid,"onUpdate:valid":e[3]||(e[3]=r=>t.valid=r),onReset:e[4]||(e[4]=r=>{t.$emit("update:modelValue",t.inputValue=null),t.$emit("input",null)}),class:n.classes}),{default:p(()=>[l("input",{ref:"input",id:`w-radio--${t._.uid}`,type:"radio",name:t.inputName,checked:t.inputValue||null,disabled:t.isDisabled||t.isReadonly||null,required:t.required||null,tabindex:t.tabindex||null,onFocus:e[0]||(e[0]=r=>t.$emit("focus",r)),onChange:e[1]||(e[1]=r=>n.onInput(r)),"aria-checked":t.inputValue||"false",role:"radio"},null,40,O1),n.hasLabel&&s.labelOnLeft?(f(),y(H,{key:0},[t.$slots.default?(f(),y("label",{key:0,class:E(["w-radio__label w-form-el-shakable pr2",t.labelClasses]),for:`w-radio--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,R1)):s.label?(f(),y("label",{key:1,class:E(["w-radio__label w-form-el-shakable pr2",t.labelClasses]),for:`w-radio--${t._.uid}`,innerHTML:s.label},null,10,L1)):C("",!0)],64)):C("",!0),l("div",{class:E(["w-radio__input",this.color]),onClick:e[2]||(e[2]=r=>{t.$refs.input.focus(),t.$refs.input.click()})},null,2),n.hasLabel&&!s.labelOnLeft?(f(),y(H,{key:1},[t.$slots.default?(f(),y("label",{key:0,class:E(["w-radio__label w-form-el-shakable pl2",t.labelClasses]),for:`w-radio--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,P1)):s.label?(f(),y("label",{key:1,class:E(["w-radio__label w-form-el-shakable pl2",t.labelClasses]),for:`w-radio--${t._.uid}`,innerHTML:s.label},null,10,N1)):C("",!0)],64)):C("",!0)]),_:3},16,["valid","class"])}const H1={name:"w-radio",mixins:[Et],inject:{wRadios:{default:null}},props:{modelValue:{default:!1},returnValue:{},label:{type:String},labelOnLeft:{type:Boolean},color:{type:String,default:"primary"},labelColor:{type:String,default:"primary"},noRipple:{type:Boolean},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","focus"],data:()=>({inputValue:!1,ripple:{start:!1,end:!1,timeout:null}}),computed:{hasLabel(){return this.label||this.$slots.default},classes(){return{[`w-radio w-radio--${this.inputValue?"checked":"unchecked"}`]:!0,"w-radio--disabled":this.isDisabled,"w-radio--readonly":this.isReadonly,"w-radio--ripple":this.ripple.start,"w-radio--rippled":this.ripple.end,"w-radio--dark":this.ripple.dark,"w-radio--light":this.ripple.light}}},methods:{toggleFromOutside(){this.inputValue=this.returnValue!==void 0?this.returnValue===this.modelValue:this.modelValue},onInput(t){this.inputValue=t.target.checked;const e=this.inputValue&&this.returnValue!==void 0?this.returnValue:this.inputValue;this.$emit("update:modelValue",e),this.$emit("input",e),this.noRipple||(this.inputValue?(this.ripple.start=!0,this.ripple.timeout=setTimeout(()=>{this.ripple.start=!1,this.ripple.end=!0,setTimeout(()=>this.ripple.end=!1,100)},700)):(this.ripple.start=!1,clearTimeout(this.ripple.timeout)))}},created(){this.modelValue!==void 0&&this.toggleFromOutside()},watch:{modelValue(){this.toggleFromOutside()}}},j1=ne(H1,[["render",W1]]),z1=["innerHTML"];function F1(t,e,s,i,o,n){const r=R("w-radio");return f(),B(De(t.formRegister?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:t.inputValue,disabled:t.isDisabled},{valid:t.valid,"onUpdate:valid":e[1]||(e[1]=d=>t.valid=d),onReset:e[2]||(e[2]=d=>{t.$emit("update:modelValue",t.inputValue=null),t.$emit("input",null)}),column:!s.inline,wrap:s.inline,class:n.classes}),{default:p(()=>[(f(!0),y(H,null,ge(n.radioItems,(d,u)=>(f(),B(r,ee({key:u,"model-value":d.value===s.modelValue,"onUpdate:modelValue":c=>n.onInput(d),onFocus:e[0]||(e[0]=c=>t.$emit("focus",c)),name:t.inputName,ref_for:!0},{label:d.label,color:d.color,labelOnLeft:s.labelOnLeft,labelColor:s.labelColor},{disabled:t.isDisabled||null,readonly:t.isReadonly||null,class:{mt1:!s.inline&&u}}),{default:p(()=>[t.$slots[`item.${u+1}`]||t.$slots.item?D(t.$slots,t.$slots[`item.${u+1}`]?`item.${u+1}`:"item",{key:0,item:n.getOriginalItem(d),index:u+1,checked:d.value===s.modelValue,innerHTML:d.label}):d.label?(f(),y("div",{key:1,innerHTML:d.label},null,8,z1)):C("",!0)]),_:2},1040,["model-value","onUpdate:modelValue","name","disabled","readonly","class"]))),128))]),_:3},16,["valid","column","wrap","class"])}const Y1={name:"w-radios",mixins:[Et],props:{items:{type:Array,required:!0},modelValue:{type:[String,Number,Boolean]},labelOnLeft:{type:Boolean},itemLabelKey:{type:String,default:"label"},itemValueKey:{type:String,default:"value"},itemColorKey:{type:String,default:"color"},inline:{type:Boolean},color:{type:String,default:"primary"},labelColor:{type:String,default:"primary"}},emits:["input","update:modelValue","focus"],provide(){return{wRadios:!0}},data:()=>({inputValue:null}),computed:{radioItems(){return(this.items||[]).map((t,e)=>({...t,_index:e,label:t[this.itemLabelKey],value:t[this.itemValueKey]===void 0?t[this.itemLabelKey]||e:t[this.itemValueKey],color:t[this.itemColorKey]||this.color}))},classes(){return["w-radios",`w-radios--${this.inline?"inline":"column"}`]}},methods:{onInput(t){this.inputValue=!0,this.$emit("update:modelValue",t.value),this.$emit("input",t.value)},getOriginalItem(t){return this.items[t._index]}}},U1=ne(Y1,[["render",F1]]),K1=["id","name","value"],q1=["disabled","onMouseenter","onClick","tabindex"];function J1(t,e,s,i,o,n){return f(),B(De(t.formRegister?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:o.rating,disabled:t.isDisabled,readonly:t.isReadonly},{valid:t.valid,"onUpdate:valid":e[4]||(e[4]=r=>t.valid=r),onReset:e[5]||(e[5]=r=>{t.$emit("update:modelValue",o.rating=null),t.$emit("input",null)}),class:n.classes}),{default:p(()=>[l("input",{id:t.inputName,name:t.inputName,type:"hidden",value:o.rating},null,8,K1),(f(!0),y(H,null,ge(s.max,r=>(f(),y(H,{key:r},[t.$slots.item?D(t.$slots,"item",{key:0,index:r+1}):C("",!0),l("button",{class:E(["w-rating__button",n.buttonClasses(r)]),disabled:t.isDisabled||t.isReadonly,onMouseenter:d=>o.hover=r,onMouseleave:e[0]||(e[0]=d=>o.hover=0),onClick:d=>n.onButtonClick(r),onFocus:e[1]||(e[1]=(...d)=>n.onFocus&&n.onFocus(...d)),onBlur:e[2]||(e[2]=(...d)=>n.onBlur&&n.onBlur(...d)),onKeydown:e[3]||(e[3]=(...d)=>n.onKeydown&&n.onKeydown(...d)),type:"button",tabindex:r===1?0:-1},[r-1===~~o.rating&&o.rating-~~o.rating?(f(),y("i",{key:0,class:E(["w-icon",`${s.icon} ${s.color}`]),role:"icon","aria-hidden":"true",style:me(n.halfStarStyle)},null,6)):C("",!0)],42,q1)],64))),128))]),_:3},16,["valid","class"])}const G1={name:"w-rating",mixins:[Et],props:{modelValue:{},max:{type:[Number,String],default:5},color:{type:String,default:"primary"},bgColor:{type:String},icon:{type:String,default:"wi-star"},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean},noRipple:{type:Boolean},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","focus","blur"],data(){return{rating:parseFloat(this.modelValue||0),hover:0,hasFocus:0,ripple:{start:!1,end:!1,timeout:null}}},computed:{size(){return this.xs&&"xs"||this.sm&&"sm"||this.lg&&"lg"||this.xl&&"xl"||"md"},classes(){return{"w-rating":!0,"w-rating--dark":this.dark,"w-rating--light":this.light,"w-rating--focus":this.hasFocus,"w-rating--hover":this.hover,"w-rating--disabled":this.isDisabled,"w-rating--readonly":this.isReadonly,"w-rating--ripple":this.ripple.start,"w-rating--rippled":this.ripple.end}},halfStarStyle(){return{width:this.hover<=~~this.rating&&`${(this.rating-~~this.rating)*100}%`}}},methods:{onButtonClick(t){this.rating=t,this.$emit("update:modelValue",this.rating),this.$emit("input",this.rating),this.noRipple||(this.ripple.start=!0,this.ripple.timeout=setTimeout(()=>{this.ripple.start=!1,this.ripple.end=!0,setTimeout(()=>this.ripple.end=!1,100)},700))},onFocus(t){this.hasFocus=!0,this.$emit("focus",t)},onBlur(t){this.hasFocus=!1,this.$emit("blur",t)},onKeydown(t){if([37,38,39,40].includes(t.keyCode)){[39,40].includes(t.keyCode)?this.rating<=this.max-1&&this.rating++:this.rating>1&&this.rating--;const e=this.$el.querySelectorAll("button")[this.rating-1];e&&(e.focus(),e.click()),t.preventDefault()}},buttonClasses(t){const e=t-1===~~this.rating&&this.rating-~~this.rating,s=this.hover>=t||!e&&this.hover===0&&this.rating>=t;return{"w-rating__button--on":s,"w-rating__button--half":e,[this.icon]:!0,[`size--${this.size}`]:!0,[this.color]:s,[this.bgColor]:this.bgColor&&!s}}},watch:{value(t){this.rating=parseFloat(t)}}},X1=ne(G1,[["render",J1]]);function Q1(t,e,s,i,o,n){return f(),y(H,null,[l("div",ee({class:["w-scrollable",n.scrollableClasses],ref:"scrollable",onMouseenter:e[0]||(e[0]=(...r)=>n.onMouseEnter&&n.onMouseEnter(...r)),onMouseleave:e[1]||(e[1]=(...r)=>n.onMouseLeave&&n.onMouseLeave(...r)),onMousewheel:e[2]||(e[2]=(...r)=>n.onMouseWheel&&n.onMouseWheel(...r))},t.$attrs,{style:n.scrollableStyles}),[D(t.$slots,"default")],16),l("div",{class:E(["w-scrollbar",n.scrollbarClasses]),ref:"track",onMousedown:e[3]||(e[3]=(...r)=>n.onTrackMouseDown&&n.onTrackMouseDown(...r))},[l("div",{class:"w-scrollbar__thumb",ref:"thumb",style:me(n.thumbStyles)},null,4)],34)],64)}const Z1={h:{direction:"horizontal",topOrLeft:"left",size:"width",offsetSize:"offsetWidth",maxSize:"max-width",scrollSize:"scrollWidth",clientXorY:"clientX",deltaXorY:"deltaX",scrollTopOrLeft:"scrollLeft"},v:{direction:"vertical",topOrLeft:"top",size:"height",offsetSize:"offsetHeight",maxSize:"max-height",scrollSize:"scrollHeight",clientXorY:"clientY",deltaXorY:"deltaY",scrollTopOrLeft:"scrollTop"}},ew={name:"w-scrollable",props:{color:{type:String,default:"primary"},bgColor:{type:String},width:{type:[Number,String]},height:{type:[Number,String]}},emits:[],data:()=>({mounted:!1,scrollable:{top:null,left:null,hovered:!1},scrollValuePercent:0}),computed:{isHorizontal(){var t,e,s,i;return this.mounted?(console.log("💂‍♂️",(t=this.$refs.scrollable)==null?void 0:t.scrollWidth,(e=this.$refs.scrollable)==null?void 0:e.offsetWidth),this.width&&!this.height||((s=this.$refs.scrollable)==null?void 0:s.scrollWidth)>((i=this.$refs.scrollable)==null?void 0:i.offsetWidth)):!1},m(){return Z1[this.isHorizontal?"h":"v"]},scrollableClasses(){return{[`w-scrollable--${this.m.direction}`]:!0}},scrollbarClasses(){return{[`w-scrollbar--${this.m.direction}`]:!0}},thumbSizePercent(){var t;return this.mounted&&(this[this.m.size]??this.$refs.scrollable[[this.m.offsetSize]])*100/((t=this.$refs.scrollable)==null?void 0:t[this.m.scrollSize])||0},scrollableStyles(){return{[this.m.maxSize]:`${this[this.m.size]}px`}},thumbStyles(){let t=this.scrollValuePercent;return t=Math.max(0,Math.min(t,100-this.thumbSizePercent)),{[this.m.size]:`${this.thumbSizePercent}%`,[this.m.topOrLeft]:`${t}%`}}},methods:{onTrackMouseDown(t){if(this.isDisabled||this.isReadonly||"ontouchstart"in window&&t.type==="mousedown")return;const{top:e,left:s,width:i,height:o}=this.$refs.track.getBoundingClientRect();this.isHorizontal?(this.$refs.track.width=i,this.$refs.track.left=s):(this.$refs.track.height=o,this.$refs.track.top=e),this.dragging=!0,this.computeScroll(t.type==="touchstart"?t.touches[0][this.m.clientXorY]:t[this.m.clientXorY]),this.scroll(),document.addEventListener(t.type==="touchstart"?"touchmove":"mousemove",this.onDrag),document.addEventListener(t.type==="touchstart"?"touchend":"mouseup",this.onMouseUp,{once:!0})},onDrag(t){this.computeScroll(t.type==="touchmove"?t.touches[0][this.m.clientXorY]:t[this.m.clientXorY]),this.scroll()},onMouseUp(t){this.dragging=!1,document.removeEventListener(t.type==="touchend"?"touchmove":"mousemove",this.onDrag),this.$refs.thumb&&this.$refs.thumb.focus()},onMouseEnter(){this.scrollable.hovered=!0},onMouseLeave(){this.scrollable.hovered=!1},onResize(t){},onMouseWheel(t){this.scrollable.hovered&&(this.scrollValuePercent<=0&&t[this.m.deltaXorY]<0||this.scrollValuePercent>=100-this.thumbSizePercent&&t[this.m.deltaXorY]>0||(t.preventDefault(),this.scrollValuePercent+=t[this.m.deltaXorY]*.05,this.scrollValuePercent=Math.max(0,Math.min(this.scrollValuePercent,100)),this.scroll()))},computeScroll(t){const{top:e,left:s,width:i,height:o}=this.$refs.scrollable.getBoundingClientRect(),n=this.isHorizontal?s:e,r=this.isHorizontal?i:o;this.scrollValuePercent=Math.max(0,Math.min((t-n)/r*100,100))},scroll(){var t;this.$refs.scrollable[this.m.scrollTopOrLeft]=this.scrollValuePercent*((t=this.$refs.scrollable)==null?void 0:t[this.m.scrollSize])/100,this.updateThumbPosition()},updateThumbPosition(){this.$refs.thumb.style[this.m.topOrLeft]=this.scrollValuePercent}},mounted(){this.mounted=!0;const{top:t,left:e}=this.$refs.scrollable.getBoundingClientRect();this.scrollable.top=t,this.scrollable.left=e,this.$el.parentNode.style.position="relative",this.$el.parentNode.style.padding=0,window.addEventListener("resize",this.onResize)}},tw=ne(ew,[["render",Q1]]),sw=["aria-expanded","aria-owns","aria-activedescendant"],nw={key:0,class:"w-select__selection-slot"},lw=["innerHTML"],iw=["value","name"];function aw(t,e,s,i,o,n){const r=R("w-icon"),d=R("w-list"),u=R("w-menu");return f(),B(De(t.formRegister?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:n.selectionString,disabled:t.isDisabled,readonly:t.isReadonly,isFocused:t.isFocused},{valid:t.valid,"onUpdate:valid":e[12]||(e[12]=c=>t.valid=c),onReset:n.onReset,wrap:n.hasLabel&&s.labelPosition!=="inside",class:n.classes}),{default:p(()=>[s.labelPosition==="left"?(f(),y(H,{key:0},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-select__label w-select__label--left w-form-el-shakable",t.labelClasses]),onClick:e[0]||(e[0]=c=>t.$refs["selection-input"].click())},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],2)):C("",!0)],64)):C("",!0),h(u,ee({modelValue:t.showMenu,"onUpdate:modelValue":e[10]||(e[10]=c=>t.showMenu=c),onClose:n.closeMenu,"menu-class":`w-select__menu ${s.menuClass||""}`,transition:"slide-fade-down","append-to":(s.menuProps||{}).appendTo!==void 0?(s.menuProps||{}).appendTo:void 0,"align-left":"",custom:"","min-width":"activator"},s.menuProps||{}),{activator:p(()=>[l("div",{class:E(["w-select__selection-wrap",n.inputWrapClasses]),onClick:e[6]||(e[6]=c=>!t.isDisabled&&!t.isReadonly&&n.onInputFieldClick()),role:"button","aria-haspopup":"listbox","aria-expanded":t.showMenu?"true":"false","aria-owns":`w-select-menu--${t._.uid}`,"aria-activedescendant":`w-select-menu--${t._.uid}_item-1`},[D(t.$slots,"icon-left",{},()=>[s.innerIconLeft?(f(),B(r,{key:0,class:"w-select__icon w-select__icon--inner-left",tag:"label",onClick:e[1]||(e[1]=c=>t.$emit("click:inner-icon-left",c))},{default:p(()=>[a(S(s.innerIconLeft),1)]),_:1})):C("",!0)]),t.$slots.selection?(f(),y("div",nw,[D(t.$slots,"selection",{item:s.multiple?t.inputValue:t.inputValue[0]})])):C("",!0),l("div",ee({class:"w-select__selection",ref:"selection-input",onFocus:e[2]||(e[2]=c=>!t.isDisabled&&!t.isReadonly&&n.onFocus(c)),onBlur:e[3]||(e[3]=(...c)=>n.onBlur&&n.onBlur(...c)),onKeydown:e[4]||(e[4]=c=>!t.isDisabled&&!t.isReadonly&&n.onKeydown(c))},n.selectionAttributes,{innerHTML:n.selectionHtml}),null,16,lw),(f(!0),y(H,null,ge(t.inputValue.length?t.inputValue:[{}],(c,m)=>(f(),y("input",{key:m,type:"hidden",value:c.value===void 0?"":c.value.toString(),name:t.inputName+(s.multiple?"[]":"")},null,8,iw))),128)),s.labelPosition==="inside"&&n.showLabelInside?(f(),y(H,{key:1},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-select__label w-select__label--inside w-form-el-shakable",t.labelClasses])},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],2)):C("",!0)],64)):C("",!0),D(t.$slots,"icon-right",{},()=>[s.innerIconRight?(f(),B(r,{key:0,class:"w-select__icon w-select__icon--inner-right",tag:"label",onClick:e[5]||(e[5]=c=>t.$emit("click:inner-icon-right",c))},{default:p(()=>[a(S(s.innerIconRight),1)]),_:1})):C("",!0)])],10,sw)]),default:p(()=>[h(d,{ref:"w-list","model-value":t.inputValue,"onUpdate:modelValue":n.onInput,onItemClick:e[7]||(e[7]=c=>t.$emit("item-click",c)),onItemSelect:n.onListItemSelect,onKeydown:n.onWListKeydown,"onKeydown:enter":e[8]||(e[8]=c=>s.noUnselect&&!s.multiple&&n.closeMenu()),"onKeydown:escape":e[9]||(e[9]=c=>t.showMenu&&(t.showMenu=!1)),items:n.selectItems,multiple:s.multiple,"arrows-navigation":"","return-object":"","add-ids":`w-select-menu--${t._.uid}`,"no-unselect":s.noUnselect,"selection-color":s.selectionColor,"item-color-key":s.itemColorKey,role:"listbox",tabindex:"-1"},rs({_:2},[ge(s.items.length,c=>({name:`item.${c}`,fn:p(({item:m,selected:g,index:v})=>[t.$slots[`item.${c}`]&&t.$slots[`item.${c}`](m,g,v)?D(t.$slots,`item.${c}`,{key:0,item:m,selected:g,index:v},()=>[a(S(m[s.itemLabelKey]),1)]):D(t.$slots,"item",{key:1,item:m,selected:g,index:v},()=>[a(S(m[s.itemLabelKey]),1)])])}))]),1032,["model-value","onUpdate:modelValue","onItemSelect","onKeydown","items","multiple","add-ids","no-unselect","selection-color","item-color-key"])]),_:3},16,["modelValue","onClose","menu-class","append-to"]),s.labelPosition==="right"?(f(),y(H,{key:1},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-select__label w-select__label--right w-form-el-shakable",t.labelClasses]),onClick:e[11]||(e[11]=c=>t.$refs["selection-input"].click())},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],2)):C("",!0)],64)):C("",!0)]),_:3},16,["valid","onReset","wrap","class"])}const ow={name:"w-select",mixins:[Et],props:{items:{type:Array,required:!0},modelValue:{},multiple:{type:Boolean},placeholder:{type:String},label:{type:String},labelPosition:{type:String,default:"inside"},innerIconLeft:{type:String},innerIconRight:{type:String,default:"wi-triangle-down"},staticLabel:{type:Boolean},itemLabelKey:{type:String,default:"label"},itemColorKey:{type:String,default:"color"},itemValueKey:{type:String,default:"value"},itemClass:{type:String},menuClass:{type:String},color:{type:String,default:"primary"},bgColor:{type:String},labelColor:{type:String,default:"primary"},selectionColor:{type:String,default:"primary"},outline:{type:Boolean},round:{type:Boolean},shadow:{type:Boolean},tile:{type:Boolean},returnObject:{type:Boolean},noUnselect:{type:Boolean},menuProps:{type:Object},dark:{type:Boolean},light:{type:Boolean},fitToContent:{type:Boolean}},emits:["input","update:modelValue","focus","blur","item-click","item-select","click:inner-icon-left","click:inner-icon-right"],data:()=>({inputValue:[],showMenu:!1,menuMinWidth:0,isFocused:!1,selectionWrapRef:void 0,quickLookup:{string:"",timeout:null}}),computed:{selectItems(){return this.items.map((t,e)=>{const s={...t};return s.value=s[this.itemValueKey]===void 0?s[this.itemLabelKey]||e:s[this.itemValueKey],s.index=e,s})},hasLabel(){return this.label||this.$slots.default},showLabelInside(){return!this.staticLabel||!this.inputValue.length&&!this.placeholder},selectionAttributes(){return{class:{"w-select__selection--placeholder":!this.$slots.selection&&!this.selectionString&&this.placeholder},disabled:this.isDisabled||null,readonly:!0,ariareadonly:"true",tabindex:this.tabindex??null,contenteditable:this.isDisabled||this.isReadonly?"false":"true"}},selectionString(){return this.inputValue.map(t=>t[this.itemValueKey]!==void 0?t[this.itemLabelKey]:t[this.itemLabelKey]??t).join(", ")},selectionHtml(){return this.inputValue.length?this.$slots.selection?"":this.selectionString:this.placeholder||""},classes(){return{"w-select":!0,"w-select--dark":this.dark,"w-select--light":this.light,"w-select--disabled":this.isDisabled,"w-select--fit-to-content":this.fitToContent,"w-select--readonly":this.isReadonly,[`w-select--${this.inputValue.length?"filled":"empty"}`]:!0,"w-select--focused":(this.isFocused||this.showMenu)&&!this.isReadonly,"w-select--floating-label":this.hasLabel&&this.labelPosition==="inside"&&!this.staticLabel,"w-select--no-padding":!this.outline&&!this.bgColor&&!this.shadow&&!this.round,"w-select--has-placeholder":this.placeholder,"w-select--inner-icon-left":this.innerIconLeft,"w-select--inner-icon-right":this.innerIconRight,"w-select--open":this.showMenu}},inputWrapClasses(){return{[this.valid===!1?"error":this.color]:this.color||this.valid===!1,[`${this.bgColor}--bg`]:this.bgColor,"w-select__selection-wrap--round":this.round,"w-select__selection-wrap--tile":this.tile,"w-select__selection-wrap--box":this.outline||this.bgColor||this.shadow,"w-select__selection-wrap--underline":!this.outline,"w-select__selection-wrap--shadow":this.shadow,"w-select__selection-wrap--no-padding":!this.outline&&!this.bgColor&&!this.shadow&&!this.round}}},methods:{onFocus(t){if(!this.isFocused)return this.isFocused=!0,this.$emit("focus",t),!1},onBlur(t){this.showMenu||(this.isFocused=!1,this.$emit("blur",t))},onKeydown(t){if(!t.metaKey&&!t.ctrlKey&&t.keyCode!==9&&t.preventDefault(),t.keyCode===27&&this.showMenu)this.closeMenu();else if([13,32].includes(t.keyCode))this.openMenu();else if([38,40].includes(t.keyCode))if(this.multiple)this.openMenu();else{let{index:e}=this.inputValue[0]||{};const s=this.selectItems;if(e===void 0)e=t.keyCode===38?s.length-1:0;else{const o=t.keyCode===38?-1:1;e=(e+s.length+o)%s.length}let i=!1;if(s[e].disabled){const o=t.keyCode===38?-1:1;let n=(e+o+s.length)%s.length;const r=s.length;let d=0;for(;d=r&&(i=!0),e=n}i||this.onInput(s[e])}else t.key.length===1&&this.focusItemOnQuickLookup(t)},onWListKeydown(t){t.key.length===1&&this.focusItemOnQuickLookup(t)},focusItemOnQuickLookup(t){var e,s,i;this.quickLookup.timeout&&clearTimeout(this.quickLookup.timeout),this.quickLookup.timeout=setTimeout(()=>this.quickLookup.string="",1e3),this.quickLookup.string+=t.key;const o=new RegExp(`^${this.quickLookup.string}`,"i"),n=this.selectItems.findIndex(r=>!r.disabled&&r[this.itemLabelKey].match(o))+1;if(n){const r=`.w-list__item:nth-child(${n}) .w-list__item-label`;(i=(s=(e=this.$refs["w-list"])==null?void 0:e.$el)==null?void 0:s.querySelector(r))==null||i.focus()}},onInput(t){this.inputValue=t===null?[]:this.multiple?t:[t],t=this.inputValue.map(s=>this.returnObject?this.items[s.index]:s.value);const e=this.multiple?t:t[0];this.$emit("update:modelValue",e),this.$emit("input",e)},onInputFieldClick(){this.showMenu?this.showMenu=!1:this.openMenu()},onListItemSelect(t){this.$emit("item-select",t),this.multiple||(this.showMenu=!1)},onReset(){this.inputValue=[];const t=this.multiple?[]:null;this.$emit("update:modelValue",t),this.$emit("input",t)},checkSelection(t){t=Array.isArray(t)?t:t!==void 0?[t]:[];const e=this.selectItems.map(s=>s.value);return t.map(s=>{let i=s;return s&&typeof s=="object"&&(i=s[this.itemValueKey]??s[this.itemLabelKey]??s),this.selectItems[e.indexOf(i)]}).filter(s=>s!==void 0)},openMenu(){this.showMenu=!0,setTimeout(()=>{var t;const e=this.inputValue.length?this.inputValue[0].index:0;(t=this.$refs["w-list"].$el.querySelector(`#w-select-menu--${this._.uid}_item-${e+1}`))==null||t.focus()},100)},closeMenu(){var t;((t=this.menuProps)==null?void 0:t.hideOnMenuClick)!==!1&&(this.showMenu=!1,setTimeout(()=>{var e;return(e=this.$refs["selection-input"])==null?void 0:e.focus()},50))}},created(){this.inputValue=this.checkSelection(this.modelValue)},watch:{modelValue(t){t!==this.inputValue&&(this.inputValue=this.checkSelection(t))},items(){this.inputValue=this.checkSelection(this.modelValue)}}},rw=ne(ow,[["render",aw]]),dw=["for"],uw=["for","innerHTML"],cw={class:"w-slider__track-wrap"},pw=["aria-valuemin","aria-valuemax","aria-valuenow","aria-readonly"],hw=["id","name","model-value","disabled","readonly","aria-readonly","tabindex"],mw=["for"],fw={key:0},gw={key:0,class:"w-slider__step-labels"},vw=["onClick"],yw=["for"],bw=["for","innerHTML"];function ww(t,e,s,i,o,n){return f(),B(De(t.formRegister?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:t.rangeValueScaled,disabled:t.isDisabled,readonly:t.isReadonly},{valid:t.valid,"onUpdate:valid":e[8]||(e[8]=r=>t.valid=r),onReset:e[9]||(e[9]=r=>{t.rangeValuePercent=0,n.updateRangeValueScaled()}),wrap:t.formRegister||null,class:n.wrapperClasses}),{default:p(()=>[t.$slots["label-left"]?(f(),y("label",{key:0,class:E(["w-slider__label w-slider__label--left w-form-el-shakable",t.labelClasses]),for:`button--${t._.uid}`},[D(t.$slots,"label-left")],10,dw)):s.labelLeft?(f(),y("label",{key:1,class:E(["w-slider__label w-slider__label--left w-form-el-shakable",t.labelClasses]),for:`button--${t._.uid}`,innerHTML:s.labelLeft},null,10,uw)):C("",!0),l("div",cw,[l("div",{class:E(["w-slider__track",n.trackClasses]),ref:"track",onMousedown:e[4]||(e[4]=(...r)=>n.onTrackMouseDown&&n.onTrackMouseDown(...r)),onTouchstart:e[5]||(e[5]=(...r)=>n.onTrackMouseDown&&n.onTrackMouseDown(...r)),role:"slider","aria-label":"Slider","aria-valuemin":n.minVal,"aria-valuemax":n.maxVal,"aria-valuenow":t.rangeValueScaled,"aria-readonly":t.isReadonly?"true":"false","aria-orientation":"horizontal"},[l("div",{class:E(["w-slider__range",n.rangeClasses]),style:me(n.rangeStyles)},null,6),l("div",{class:"w-slider__thumb",style:me(n.thumbStyles)},[l("button",{class:E(["w-slider__thumb-button",[s.color]]),ref:"thumb",id:`button--${t._.uid}`,name:t.inputName,"model-value":t.rangeValueScaled,disabled:t.isDisabled||null,readonly:t.isReadonly||null,"aria-readonly":t.isReadonly?"true":"false",tabindex:t.isDisabled||t.isReadonly?-1:null,onKeydown:[e[0]||(e[0]=vt(r=>n.onKeyDown(r,-1),["left"])),e[1]||(e[1]=vt(r=>n.onKeyDown(r,1),["right"]))],onFocus:e[2]||(e[2]=r=>t.$emit("focus",r)),onClick:e[3]||(e[3]=We(()=>{},["prevent"]))},null,42,hw),s.thumbLabel?(f(),y("label",{key:0,class:E(["w-slider__thumb-label",n.thumbClasses]),for:`button--${t._.uid}`},[s.thumbLabel==="droplet"?(f(),y("div",fw,[D(t.$slots,"label",{value:t.rangeValueScaled},()=>[a(S(~~t.rangeValueScaled),1)])])):D(t.$slots,"label",{key:1,value:t.rangeValueScaled},()=>[a(S(~~t.rangeValueScaled),1)])],10,mw)):C("",!0)],4)],42,pw),s.stepLabels&&s.step?(f(),y("div",gw,[l("div",{class:"w-slider__step-label",onClick:e[6]||(e[6]=r=>n.onStepLabelClick(0))},S(this.minVal),1),(f(!0),y(H,null,ge(~~n.numberOfSteps,r=>(f(),y("div",{class:"w-slider__step-label",key:r,onClick:d=>n.onStepLabelClick(r*(100/n.numberOfSteps)),style:me(`left: ${r*(100/n.numberOfSteps)}%`)},S(n.percentToScaled(r*(100/n.numberOfSteps))),13,vw))),128)),~~n.numberOfSteps!==n.numberOfSteps?(f(),y("div",{key:0,class:"w-slider__step-label",onClick:e[7]||(e[7]=r=>n.onStepLabelClick(100)),style:{left:"100%"}},S(this.maxVal),1)):C("",!0)])):C("",!0)]),t.$slots["label-right"]?(f(),y("label",{key:2,class:E(["w-slider__label w-slider__label--right w-form-el-shakable",t.labelClasses]),for:`button--${t._.uid}`},[D(t.$slots,"label-right")],10,yw)):s.labelRight?(f(),y("label",{key:3,class:E(["w-slider__label w-slider__label--right w-form-el-shakable",t.labelClasses]),for:`button--${t._.uid}`,innerHTML:s.labelRight},null,10,bw)):C("",!0)]),_:3},16,["valid","wrap","class"])}const kw={name:"w-slider",mixins:[Et],props:{modelValue:{type:Number,default:0},color:{type:String,default:"primary"},bgColor:{type:String},labelColor:{type:String,default:"primary"},stepLabels:{type:[Boolean,Array]},thumbLabel:{type:[Boolean,String]},thumbLabelClass:{type:String},trackClass:{type:String},rangeClass:{type:String},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String]},labelLeft:{type:String},labelRight:{type:String},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","focus"],data:()=>({track:{el:null,left:0,width:0},dragging:!1,rangeValuePercent:0,rangeValueScaled:0}),computed:{minVal(){return parseFloat(this.min)},maxVal(){return parseFloat(this.max)},stepValPercent(){return Math.min(parseFloat(this.step),this.scaledRange)/this.scaledRange*100},scaledRange(){return this.maxVal-this.minVal},numberOfSteps(){return 100/this.stepValPercent},rangeStyles(){return{width:`${this.rangeValuePercent}%`}},thumbStyles(){return{left:`${this.rangeValuePercent}%`}},rangeClasses(){return{[`${this.color}--bg`]:this.color,[this.rangeClass]:this.rangeClass||null}},trackClasses(){return{[`${this.bgColor}--bg`]:this.bgColor,[this.trackClass]:this.trackClass||null}},thumbClasses(){return{[this.thumbLabelClass]:this.thumbLabelClass||null,"w-slider__thumb-label--droplet":this.thumbLabel==="droplet"}},wrapperClasses(){return{"w-slider":!0,"w-slider--dark":this.dark,"w-slider--light":this.light,"w-slider--dragging":this.dragging,"w-slider--disabled":this.isDisabled,"w-slider--readonly":this.isReadonly,"w-slider--has-step-labels":this.step&&this.stepLabels}}},methods:{scaledToPercent(t){return Math.max(0,Math.min((t-this.minVal)/this.scaledRange*100,100))},percentToScaled(t){return Math.round((t/100*this.scaledRange+this.minVal)*100)/100},onTrackMouseDown(t){if(this.isDisabled||this.isReadonly||"ontouchstart"in window&&t.type==="mousedown")return;const{left:e,width:s}=this.track.el.getBoundingClientRect();this.track.width=s,this.track.left=e,this.dragging=!0,this.updateRange(t.type==="touchstart"?t.touches[0].clientX:t.clientX),document.addEventListener(t.type==="touchstart"?"touchmove":"mousemove",this.onDrag),document.addEventListener(t.type==="touchstart"?"touchend":"mouseup",this.onMouseUp,{once:!0})},onDrag(t){this.updateRange(t.type==="touchmove"?t.touches[0].clientX:t.clientX)},onMouseUp(t){this.dragging=!1,document.removeEventListener(t.type==="touchend"?"touchmove":"mousemove",this.onDrag),this.$refs.thumb&&this.$refs.thumb.focus()},onStepLabelClick(t){this.rangeValuePercent=t,this.updateRangeValueScaled()},onKeyDown(t,e){this.isDisabled||this.isReadonly||(this.rangeValuePercent+=e*(t.shiftKey?5:1)*(this.stepValPercent||1),this.rangeValuePercent=Math.max(0,Math.min(this.rangeValuePercent,100)),this.updateRangeValueScaled())},updateRange(t){if(this.rangeValuePercent=Math.max(0,Math.min((t-this.track.left)/this.track.width*100,100)),this.step){const e=this.rangeValuePercent+this.stepValPercent/2;this.rangeValuePercent=e-e%this.stepValPercent}this.updateRangeValueScaled()},updateRangeValueScaled(){this.rangeValueScaled=this.percentToScaled(this.rangeValuePercent),this.$emit("update:modelValue",this.rangeValueScaled),this.$emit("input",this.rangeValueScaled)}},beforeMount(){this.$nextTick(()=>{this.track.el=this.$refs.track,this.rangeValueScaled=this.modelValue,this.rangeValuePercent=this.scaledToPercent(this.modelValue)})},watch:{modelValue(t){this.rangeValueScaled!==t&&(this.rangeValueScaled=t,this.rangeValuePercent=this.scaledToPercent(t))}}},xw=ne(kw,[["render",ww]]),Cw={key:0};function _w(t,e,s,i,o,n){return s.modelValue||s.modelValue===void 0?(f(),y("div",{key:0,class:E(["w-spinner",n.classes]),style:me(n.styles)},[n.isThreeDots?(f(),y("span",Cw)):C("",!0)],6)):C("",!0)}const Sw={name:"w-spinner",props:{modelValue:{},color:{type:String,default:"primary"},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean},size:{type:[Number,String]},bounce:{type:Boolean},fade:{type:Boolean}},emits:[],computed:{isThreeDots(){return!this.bounce&&!this.fade},forcedSize(){return this.size&&(isNaN(this.size)?this.size:`${this.size}px`)},presetSize(){return this.xs&&"xs"||this.sm&&"sm"||this.md&&"md"||this.lg&&"lg"||this.xl&&"xl"||null},styles(){return this.forcedSize&&`font-size: ${this.forcedSize}`||null},classes(){return{[this.color]:this.color,[`size--${this.presetSize}`]:this.presetSize&&!this.forcedSize,"w-spinner--bounce":this.bounce,"w-spinner--fade":this.fade,"w-spinner--three-dots":this.isThreeDots}}}},Dw=ne(Sw,[["render",_w]]);function Ew(t,e,s,i,o,n){return f(),y("div",{class:E(["w-steps",n.classes])},null,2)}const Tw={name:"w-steps",props:{dark:{type:Boolean},light:{type:Boolean}},emits:[],data:()=>({}),computed:{classes(){return{"w-steps--dark":this.dark,"w-steps--light":this.light}}}},Vw=ne(Tw,[["render",Ew]]),$w=["id","name","checked","disabled","readonly","aria-readonly","required","tabindex","aria-checked"],Iw=["for"],Mw={key:0,class:"w-switch__track"},Aw={key:1,class:"w-switch__thumb"},Bw=["for"];function Ow(t,e,s,i,o,n){const r=R("w-progress");return f(),B(De(t.formRegister?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:o.isOn,disabled:t.isDisabled,readonly:t.isReadonly},{valid:t.valid,"onUpdate:valid":e[3]||(e[3]=d=>t.valid=d),onReset:e[4]||(e[4]=d=>{t.$emit("update:modelValue",o.isOn=null),t.$emit("input",null)}),class:n.classes,style:t.$attrs.style}),{default:p(()=>[l("input",ee({ref:"input",id:`w-switch--${t._.uid}`,type:"checkbox",name:t.inputName,checked:o.isOn,disabled:t.isDisabled||t.isReadonly||null,readonly:t.isReadonly||null,"aria-readonly":t.isReadonly?"true":"false",required:t.required||null,tabindex:t.tabindex||null},n.attrs,{onChange:e[0]||(e[0]=d=>n.onInput()),onFocus:e[1]||(e[1]=d=>t.$emit("focus",d)),"aria-checked":o.isOn||"false",role:"switch"}),null,16,$w),n.hasLabel&&s.labelOnLeft?(f(),y(H,{key:0},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-switch__label w-switch__label--left w-form-el-shakable",t.labelClasses]),for:`w-switch--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,Iw)):C("",!0)],64)):C("",!0),l("div",{class:E(["w-switch__input",n.inputClasses]),onClick:e[2]||(e[2]=d=>{t.$refs.input.focus(),t.$refs.input.click()})},[t.$slots.track?(f(),y("div",Mw,[D(t.$slots,"track")])):C("",!0),t.$slots.thumb||s.loading?(f(),y("div",Aw,[s.loading?(f(),B(r,ee({key:0,circle:"",color:"inherit"},typeof s.loading=="number"&&{"model-value":s.loading}),null,16)):D(t.$slots,"thumb",{key:1})])):C("",!0)],2),n.hasLabel&&!s.labelOnLeft?(f(),y(H,{key:1},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-switch__label w-switch__label--right w-form-el-shakable",t.labelClasses]),for:`w-switch--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,Bw)):C("",!0)],64)):C("",!0)]),_:3},16,["valid","class","style"])}const Rw={name:"w-switch",mixins:[Et],inheritAttrs:!1,props:{modelValue:{default:!1},label:{type:String,default:""},labelOnLeft:{type:Boolean},color:{type:String,default:"primary"},labelColor:{type:String,default:"primary"},thin:{type:Boolean},noRipple:{type:Boolean},loading:{type:[Boolean,Number],default:!1},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","focus"],data(){return{isOn:this.modelValue,ripple:{start:!1,end:!1,timeout:null}}},computed:{attrs(){const{class:t,style:e,...s}=this.$attrs;return s},hasLabel(){return this.label||this.$slots.default},classes(){return{[`w-switch w-switch--${this.isOn?"on":"off"}`]:!0,"w-switch--thin":this.thin,"w-switch--disabled":this.isDisabled,"w-switch--readonly":this.isReadonly,"w-switch--ripple":this.ripple.start,"w-switch--custom-thumb":this.$slots.thumb,"w-switch--custom-track":this.$slots.track,"w-switch--loading":this.loading,"w-switch--rippled":this.ripple.end,"w-switch--dark":this.dark,"w-switch--light":this.light,[this.$attrs.class]:!!this.$attrs.class}},inputClasses(){const t=this.hasLabel&&this.labelOnLeft?"l":"r";return[this.color,this.hasLabel?this.thin?`m${t}3`:`m${t}2`:""]}},methods:{onInput(){this.isOn=!this.isOn,this.$emit("update:modelValue",this.isOn),this.$emit("input",this.isOn),this.noRipple||(this.isOn?(this.ripple.start=!0,this.ripple.timeout=setTimeout(()=>{this.ripple.start=!1,this.ripple.end=!0,setTimeout(()=>this.ripple.end=!1,100)},700)):(this.ripple.start=!1,clearTimeout(this.ripple.timeout)))}},watch:{modelValue(t){this.isOn=t}}},Lw=ne(Rw,[["render",Ow]]),Pw={class:"w-tabs__content"};function Nw(t,e,s,i,o,n){return f(),y("div",Pw,[D(t.$slots,"default",{item:s.item})])}const Ww={name:"tab-content",props:{item:Object}},Hw=ne(Ww,[["render",Nw]]),jw=["onClick","onFocus","tabindex","onKeypress","aria-selected"],zw=["innerHTML"],Fw={key:0,class:"w-tabs__bar-extra"},Yw={key:0,class:"w-tabs__content-wrap"},Uw=["innerHTML"],Kw=["innerHTML"];function qw(t,e,s,i,o,n){const r=R("tab-content");return f(),y("div",{class:E(["w-tabs",n.tabsClasses])},[l("div",{class:E(["w-tabs__bar",n.tabsBarClasses]),ref:"tabs-bar"},[(f(!0),y(H,null,ge(t.tabs,(d,u)=>(f(),y("div",{class:E(["w-tabs__bar-item",n.barItemClasses(d)]),key:u,onClick:c=>!d._disabled&&d._uid!==t.activeTabUid&&n.openTab(d._uid),onFocus:c=>t.$emit("focus",n.getOriginalItem(d)),tabindex:!d._disabled&&0,onKeypress:vt(c=>!d._disabled&&n.openTab(d._uid),["enter"]),"aria-selected":d._uid===t.activeTabUid?"true":"false",role:"tab"},[t.$slots[`item-title.${d.id||u+1}`]?D(t.$slots,`item-title.${d.id||u+1}`,{key:0,item:n.getOriginalItem(d),index:u+1,active:d._uid===t.activeTabUid}):D(t.$slots,"item-title",{key:1,item:n.getOriginalItem(d),index:u+1,active:d._uid===t.activeTabUid},()=>[l("div",{innerHTML:d[s.itemTitleKey]},null,8,zw)])],42,jw))),128)),t.$slots["tabs-bar-extra"]?(f(),y("div",Fw,[D(t.$slots,"tabs-bar-extra")])):C("",!0),!s.noSlider&&!s.card?(f(),y("div",{key:1,class:E(["w-tabs__slider",s.sliderColor]),style:me(n.sliderStyles)},null,6)):C("",!0)],2),t.tabs.length?(f(),y("div",Yw,[s.keepInDom?(f(),B(rl,{key:0,name:n.transitionName},{default:p(()=>[(f(!0),y(H,null,ge(t.tabs,(d,u)=>st((f(),B(r,{key:d._uid,item:d,class:E(s.contentClass)},{default:p(()=>[t.$slots[`item-content.${d._index+1}`]?D(t.$slots,`item-content.${d._index+1}`,{key:0,item:n.getOriginalItem(d),index:d._index+1,active:d._index===n.activeTab._index}):D(t.$slots,"item-content",{key:1,item:n.getOriginalItem(d),index:d._index+1,active:d._index===n.activeTab._index},()=>[d[s.itemContentKey]?(f(),y("div",{key:0,innerHTML:d[s.itemContentKey]},null,8,Uw)):C("",!0)])]),_:2},1032,["item","class"])),[[ol,d._uid===n.activeTab._uid]])),128))]),_:3},8,["name"])):(f(),B(Oe,{key:1,name:n.transitionName,mode:n.transitionMode},{default:p(()=>[(f(),B(jd,{exclude:s.keepAlive?"":"tab-content"},[(f(),B(r,{key:t.activeTabUid,item:n.activeTab,class:E(s.contentClass)},{default:p(({item:d})=>[d?(f(),y(H,{key:0},[t.$slots[`item-content.${d._index+1}`]?D(t.$slots,`item-content.${d._index+1}`,{key:0,item:n.getOriginalItem(d),index:d._index+1,active:d._uid===t.activeTabUid}):D(t.$slots,"item-content",{key:1,item:n.getOriginalItem(d),index:d._index+1,active:d._uid===t.activeTabUid},()=>[d[s.itemContentKey]?(f(),y("div",{key:0,innerHTML:d[s.itemContentKey]},null,8,Kw)):C("",!0)])],64)):C("",!0)]),_:3},8,["item","class"]))],1032,["exclude"]))]),_:3},8,["name","mode"]))])):C("",!0)],2)}let Fa=0;const Jw={name:"w-tabs",props:{modelValue:{type:[Number,String]},color:{type:String},bgColor:{type:String},items:{type:[Array,Number]},itemIdKey:{type:String,default:"id"},itemTitleKey:{type:String,default:"title"},itemContentKey:{type:String,default:"content"},titleClass:{type:String},activeClass:{type:String,default:"primary"},noSlider:{type:Boolean},pillSlider:{type:Boolean},sliderColor:{type:String,default:"primary"},contentClass:{type:String},transition:{type:[String,Boolean],default:""},fillBar:{type:Boolean},center:{type:Boolean},right:{type:Boolean},card:{type:Boolean},dark:{type:Boolean},light:{type:Boolean},keepAlive:{type:Boolean,default:!0},keepInDom:{type:Boolean,default:!1}},components:{TabContent:Hw},emits:["input","update:modelValue","focus"],data:()=>({tabs:[],activeTabEl:null,activeTabUid:null,activeTabIndex:0,prevTabIndex:-1,slider:{left:0,width:0},init:!0}),computed:{transitionName(){return this.transition===!1?"":this.transition||`w-tabs-slide-${this.direction}`},transitionMode(){return["w-tabs-slide-left","w-tabs-slide-right"].includes(this.transitionName)?"":"out-in"},direction(){return this.activeTab._index(t[e._uid]=e)&&t,{})},tabsClasses(){return{"w-tabs--card":this.card,"w-tabs--no-slider":this.noSlider,"w-tabs--pill-slider":this.pillSlider,"w-tabs--fill-bar":this.fillBar,"w-tabs--init":this.init,"w-tabs--dark":this.dark,"w-tabs--light":this.light}},tabsBarClasses(){return{"w-tabs__bar--right":this.right,"w-tabs__bar--center":this.center}},sliderStyles(){return{left:this.slider.left,width:this.slider.width}}},methods:{addTab(t){(t[this.itemIdKey]??t._uid??!1)||(t._uid=+`${this._.uid}${++Fa}`),this.tabs.push({_uid:t[this.itemIdKey]??t._uid,_index:this.tabs.length,...t,_disabled:!!t.disabled})},refreshTabs(){let t=this.items;typeof t=="number"&&(t=Array(t).fill().map((e,s)=>this.tabs[s]||{})),this.tabs=t.map((e,s)=>((e[this.itemIdKey]??e._uid??!1)||(e._uid=+`${this._.uid}${++Fa}`),{...e,_uid:e[this.itemIdKey]??e._uid,_index:s,_disabled:!!e.disabled}))},reopenTheActiveTab(){var t,e,s;if(this.tabs.length===1)return this.openTab(this.tabs[0]._uid);let i=(t=this.tabsByUid[this.activeTabUid])==null?void 0:t._uid;i||(i=(e=this.tabs[this.activeTabIndex])==null?void 0:e._uid),i||(i=(s=this.tabs[Math.max(this.activeTabIndex-1,this.tabs.length-1)])==null?void 0:s._uid),i&&this.openTab(i)},onResize(){this.updateSlider(!1)},barItemClasses(t){const e=t._index===this.activeTabIndex;return{[`${this.bgColor}--bg`]:this.bgColor,[this.color]:this.color&&!t._disabled&&!(this.activeClass&&e),[`w-tabs__bar-item--active ${this.activeClass}`]:e,"w-tabs__bar-item--disabled":t._disabled,[this.titleClass]:this.titleClass}},openTab(t){this.prevTabIndex=this.activeTabIndex;const e=this.tabsByUid[t];this.activeTabIndex=e._index,this.activeTabUid=e._uid,this.$emit("update:modelValue",e._index),this.$emit("input",e._index),this.noSlider||this.$nextTick(this.updateSlider)},updateSlider(t=!0){if(t){const e=this.$refs["tabs-bar"];this.activeTabEl=e&&e.querySelector(".w-tabs__bar-item--active")}if(!this.fillBar&&this.activeTabEl){const{left:e,width:s}=this.activeTabEl.getBoundingClientRect(),i=this.activeTabEl.parentNode,{left:o}=i.getBoundingClientRect(),{borderLeftWidth:n}=getComputedStyle(i);this.slider.left=`${e-o-parseInt(n)+i.scrollLeft}px`,this.slider.width=`${s}px`}else this.slider.left=`${this.activeTab._index*100/this.tabs.length}%`,this.slider.width=`${100/this.tabs.length}%`},updateActiveTab(t){var e,s;typeof t=="string"?t=~~t:(isNaN(t)||t<0)&&(t=0),(e=this.tabs[t])!=null&&e._uid&&(this.openTab((s=this.tabs[t])==null?void 0:s._uid),this.$nextTick(()=>{const i=this.$refs["tabs-bar"];this.activeTabEl=i&&i.querySelector(`.w-tabs__bar-item:nth-child(${t+1})`),this.activeTabEl&&this.activeTabEl.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}))},getOriginalItem(t){return this.items[t._index]||{}}},beforeMount(){this.tabs=[],(typeof this.items=="number"?Array(this.items).fill().map(Object):this.items).forEach(this.addTab),(this.modelValue??!1)&&this.updateActiveTab(this.modelValue),this.$nextTick(()=>{this.updateSlider(),setTimeout(()=>this.init=!1,0)}),this.noSlider||window.addEventListener("resize",this.onResize)},beforeUnmount(){window.removeEventListener("resize",this.onResize)},watch:{modelValue(t){t!==this.activeTabIndex&&this.updateActiveTab(t)},items:{handler(){this.refreshTabs(),this.tabs.length&&this.reopenTheActiveTab(),this.noSlider||this.$nextTick(this.updateSlider)},deep:!0},fillBar(){this.noSlider||this.$nextTick(this.updateSlider)},noSlider(t){t?window.removeEventListener("resize",this.onResize):(this.updateSlider(),window.addEventListener("resize",this.onResize))}}},Gw=ne(Jw,[["render",qw]]),Xw={class:"w-table__scroll-wrap"},Qw={ref:"colgroup"},Zw=["width"],e0={key:0},t0=["onClick"],s0=["innerHTML"],n0={key:0,class:"w-table__progress-bar"},l0=["colspan"],i0={key:0,class:"w-table__progress-bar"},a0=["colspan"],o0={class:"w-table__loading-text"},r0={key:1,class:"no-data"},d0=["colspan"],u0=["onClick"],c0=["data-label"],p0=["data-label"],h0=["innerHTML"],m0={key:2,class:"w-table__row w-table__row--expansion"},f0=["colspan"],g0={key:0},v0={key:3,class:"w-table__extra-row"},y0={key:1,class:"w-table__footer"},b0={key:1,class:"w-table__row"},w0=["colspan"],k0={key:0,class:"w-table__pagination w-pagination"},x0={class:"pages-wrap"},C0={class:"w-pagination__results"};function _0(t,e,s,i,o,n){const r=R("w-icon"),d=R("w-progress"),u=R("w-transition-fade"),c=R("w-transition-expand"),m=R("w-select"),g=R("w-button");return f(),y("div",{class:E(["w-table w-table--wrap",n.classes])},[l("div",Xw,[l("table",{class:"w-table__table",onMousedown:e[1]||(e[1]=(...v)=>n.onMouseDown&&n.onMouseDown(...v)),onMouseover:e[2]||(e[2]=(...v)=>n.onMouseOver&&n.onMouseOver(...v)),onMouseout:e[3]||(e[3]=(...v)=>n.onMouseOut&&n.onMouseOut(...v))},[l("colgroup",Qw,[(f(!0),y(H,null,ge(s.headers,(v,w)=>(f(),y("col",{class:E(["w-table__col",n.colClasses[w]]),key:w,width:v.width||null},null,10,Zw))),128))],512),s.noHeaders?C("",!0):(f(),y("thead",e0,[l("tr",null,[(f(!0),y(H,null,ge(s.headers,(v,w)=>(f(),y("th",{class:E(["w-table__header",n.headerClasses(v)]),key:w,onClick:_=>!t.colResizing.dragging&&v.sortable!==!1&&n.sortTable(v)},[v.sortable!==!1&&v.align==="right"?(f(),B(r,{key:0,class:E(["w-table__header-sort",n.headerSortClasses(v)])},{default:p(()=>e[8]||(e[8]=[a("wi-arrow-down")])),_:2},1032,["class"])):C("",!0),v.label?(f(),y(H,{key:1},[t.$slots["header-label"]?D(t.$slots,"header-label",{key:0,header:v,label:v.label,index:w+1},()=>[a(S(v.label||""),1)]):(f(),y("span",{key:1,innerHTML:v.label||""},null,8,s0))],64)):C("",!0),v.sortable!==!1&&v.align!=="right"?(f(),B(r,{key:2,class:E(["w-table__header-sort",n.headerSortClasses(v)])},{default:p(()=>e[9]||(e[9]=[a("wi-arrow-down")])),_:2},1032,["class"])):C("",!0),w{},["stop"]))},null,2)):C("",!0)],10,t0))),128))]),h(u,null,{default:p(()=>[s.loading==="header"?(f(),y("tr",n0,[l("td",{colspan:s.headers.length},[h(d,{tile:""})],8,l0)])):C("",!0)]),_:1})])),l("tbody",null,[s.loading===!0?(f(),y("tr",i0,[l("td",{colspan:s.headers.length},[h(d,{tile:""}),l("div",o0,[D(t.$slots,"loading",{},()=>[e[10]||(e[10]=a("Loading..."))])])],8,a0)])):n.tableItems.length?C("",!0):(f(),y("tr",r0,[l("td",{class:"w-table__cell text-center",colspan:s.headers.length},[D(t.$slots,"no-data",{},()=>[e[11]||(e[11]=a("No data to show."))])],8,d0)])),n.tableItems.length&&s.loading!==!0?(f(!0),y(H,{key:2},ge(n.paginatedItems,(v,w)=>(f(),y(H,{key:w},[t.$slots.item?D(t.$slots,"item",{key:0,item:v,index:w+1,select:()=>n.doSelectRow(v,w),classes:{"w-table__row":!0,"w-table__row--selected":n.selectedRowsByUid[v._uid]!==void 0,"w-table__row--expanded":n.expandedRowsByUid[v._uid]!==void 0}}):(f(),y("tr",{key:1,class:E(["w-table__row",{"w-table__row--selected":n.selectedRowsByUid[v._uid]!==void 0,"w-table__row--expanded":n.expandedRowsByUid[v._uid]!==void 0}]),onClick:_=>n.doSelectRow(v,w)},[(f(!0),y(H,null,ge(s.headers,(_,M)=>(f(),y(H,null,[t.$slots[`item-cell.${_.key}`]||t.$slots[`item-cell.${M+1}`]||t.$slots["item-cell"]?(f(),y("td",{class:E(["w-table__cell",{[`text-${_.align||"left"}`]:!0,"w-table__cell--sticky":_.sticky}]),key:`${M}-a`,"data-label":_.label},[t.$slots[`item-cell.${_.key}`]?D(t.$slots,`item-cell.${_.key}`,{key:0,header:_,item:v,label:v[_.key]||"",index:w+1}):t.$slots[`item-cell.${M+1}`]?D(t.$slots,`item-cell.${M+1}`,{key:1,header:_,item:v,label:v[_.key]||"",index:w+1}):t.$slots["item-cell"]?D(t.$slots,"item-cell",{key:2,header:_,item:v,label:v[_.key]||"",index:w+1}):C("",!0),M[n.expandedRowsByUid[v._uid]?(f(),y("div",g0,[D(t.$slots,"row-expansion",{item:v,index:w+1})])):C("",!0),w[t.paginationConfig.itemsPerPageOptions?(f(),B(m,{key:0,class:"w-pagination__items-per-page",modelValue:t.paginationConfig.itemsPerPage,"onUpdate:modelValue":e[4]||(e[4]=v=>t.paginationConfig.itemsPerPage=v),onInput:e[5]||(e[5]=v=>n.updatePaginationConfig({itemsPerPage:t.paginationConfig.itemsPerPage})),items:t.paginationConfig.itemsPerPageOptions,"label-position":"left",label:"Items per page","label-color":"inherit"},null,8,["modelValue","items"])):C("",!0),l("div",x0,[h(g,{class:"w-pagination__arrow w-pagination__arrow--prev",onClick:e[6]||(e[6]=v=>n.goToPage("-1")),disabled:t.paginationConfig.page<=1,icon:"wi-chevron-left",text:"",lg:""},null,8,["disabled"]),t.paginationConfig.pagesCount>7?(f(!0),y(H,{key:0},ge(t.paginationConfig.pagesCount,v=>(f(),y(H,{key:v},[[1,t.paginationConfig.pagesCount,t.paginationConfig.page-1,t.paginationConfig.page,t.paginationConfig.page+1].includes(v)?(f(),B(g,{key:0,class:E(["w-pagination__page",{"w-pagination__page--active":v===t.paginationConfig.page}]),onClick:w=>v!==t.paginationConfig.page&&n.goToPage(v),round:"",lg:""},{default:p(()=>[a(S(v),1)]),_:2},1032,["onClick","class"])):[1,t.paginationConfig.pagesCount,t.paginationConfig.page-1,t.paginationConfig.page,t.paginationConfig.page+1].includes(v-1)?(f(),B(g,{key:1,class:E(["w-pagination__page",{"w-pagination__page--active":v===t.paginationConfig.page}]),onClick:w=>v!==t.paginationConfig.page&&n.goToPage(v),round:"",lg:""},{default:p(()=>e[12]||(e[12]=[a("...")])),_:2},1032,["onClick","class"])):C("",!0)],64))),128)):(f(!0),y(H,{key:1},ge(t.paginationConfig.pagesCount,v=>(f(),B(g,{class:E(["w-pagination__page",{"w-pagination__page--active":v===t.paginationConfig.page}]),key:v,onClick:w=>v!==t.paginationConfig.page&&n.goToPage(v),round:"",lg:""},{default:p(()=>[a(S(v),1)]),_:2},1032,["onClick","class"]))),128)),h(g,{class:"w-pagination__arrow w-pagination__arrow--next",onClick:e[7]||(e[7]=v=>n.goToPage("+1")),disabled:t.paginationConfig.page>=t.paginationConfig.pagesCount,icon:"wi-chevron-right",text:"",lg:""},null,8,["disabled"])]),l("span",C0,S(t.paginationConfig.start)+"-"+S(t.paginationConfig.end||t.paginationConfig.total)+" of "+S(t.paginationConfig.total),1)])])):C("",!0)],2)}const Ya=15,S0={name:"w-table",props:{items:{type:Array,required:!0},headers:{type:Array,required:!0},noHeaders:{type:Boolean},fixedLayout:{type:Boolean},fixedHeaders:{type:Boolean},fixedFooter:{type:Boolean},loading:{type:[Boolean,String]},sort:{type:[String,Array]},sortFunction:{type:Function},filter:{type:Function},fetch:{type:Function},expandableRows:{validator:t=>([void 0,!0,!1,1,"1",""].includes(t)||Us(`Wrong value for the w-table's \`expandableRows\` prop. Given: "${t}", expected one of: [undefined, true, false, 1, '1', ''].`),!0)},expandedRows:{type:Array},selectableRows:{validator:t=>([void 0,!0,!1,1,"1",""].includes(t)||Us(`Wrong value for the w-table's \`selectableRows\` prop. Given: "${t}", expected one of: [undefined, true, false, 1, '1', ''].`),!0)},selectedRows:{type:Array},forceSelection:{type:Boolean},uidKey:{type:String,default:"id"},mobileBreakpoint:{type:Number,default:0},resizableColumns:{type:Boolean},pagination:{type:[Boolean,Object,String],validator:t=>{if(t){if(typeof t=="object"&&(!t.itemsPerPage||t.page&&isNaN(t.page)))return Us("Wrong pagination config received in the w-table's `pagination` prop (received: `"+JSON.stringify(t)+"`). \nExpected object: { itemsPerPage: Integer, page: Integer } or { itemsPerPage: Integer, start: Integer }."),!1}else return!0;return!0}},dark:{type:Boolean},light:{type:Boolean}},emits:["row-select","row-expand","row-click","update:sort","update:selected-rows","update:expanded-rows","column-resize"],data:()=>({activeSorting:[],selectedRowsInternal:[],expandedRowsInternal:[],colResizing:{dragging:!1,hover:!1,columnIndex:null,startCursorX:null,colWidth:null,nextColWidth:null,columnEl:null,nextColumnEl:null},paginationConfig:{itemsPerPage:0,itemsPerPageOptions:{},start:void 0,end:void 0,page:1,total:0}}),computed:{tableItems(){return this.items.map((t,e)=>(t._uid=t[this.uidKey]??e,t))},filteredItems(){return typeof this.filter=="function"?this.tableItems.filter(this.filter):this.tableItems},sortedItems(){if(!this.activeSorting.length||this.sortFunction||this.fetch)return this.filteredItems;const t=this.activeSorting[0].replace(/^[+-]/,""),e=this.activeSorting[0][0]==="-";return[...this.filteredItems].sort((s,i)=>(s=s[t],i=i[t],!isNaN(s)&&!isNaN(i)&&(s=parseFloat(s),i=parseFloat(i)),(s>i?1:-1)*(e?-1:1)))},paginatedItems(){return typeof this.fetch=="function"?this.sortedItems:this.sortedItems.slice(this.paginationConfig.start-1,this.paginationConfig.end)},activeSortingKeys(){return this.activeSorting.reduce((t,e)=>(t[e.replace(/^[+-]/,"")]=e[0],t),{})},classes(){return{"w-table--loading":this.loading,"w-table--loading-in-header":this.loading==="header","w-table--fixed-layout":this.fixedLayout||this.resizableColumns||this.hasStickyColumn,"w-table--mobile":this.isMobile||null,"w-table--resizable-cols":this.resizableColumns||null,"w-table--resizing":this.colResizing.dragging,"w-table--fixed-header":this.fixedHeaders,"w-table--fixed-footer":this.fixedFooter,"w-table--sticky-column":this.hasStickyColumn,"w-table--dark":this.dark,"w-table--light":this.light}},colClasses(){return this.headers.map(t=>({"w-table__col--highlighted":this.activeSortingKeys[t.key]}))||[]},isMobile(){return~~this.mobileBreakpoint&&this.$waveui.breakpoint.width<=~~this.mobileBreakpoint},hasStickyColumn(){return this.headers.find(t=>t.sticky)},selectedRowsByUid(){return this.selectedRowsInternal.reduce((t,e)=>(t[e]=!0)&&t,{})},expandedRowsByUid(){return this.expandedRowsInternal.reduce((t,e)=>(t[e]=!0)&&t,{})}},methods:{headerClasses(t){return{"w-table__header--sortable":t.sortable!==!1,"w-table__header--sticky":t.sticky,"w-table__header--resizable":!!this.resizableColumns,[`text-${t.align||"left"}`]:!0}},headerSortClasses(t){const e=this.activeSortingKeys[t.key];return[`w-table__header-sort--${e?"active":"inactive"}`,`w-table__header-sort--${e==="-"?"desc":"asc"}`,`m${t.align==="right"?"r":"l"}1`]},async sortTable(t){const e=this.activeSortingKeys[t.key];e&&this.activeSortingKeys[t.key]==="-"?this.activeSorting=[]:this.activeSorting[0]=(e?"-":"+")+t.key,this.$emit("update:sort",this.activeSorting),typeof this.sortFunction=="function"?await this.sortFunction(this.activeSorting):typeof this.fetch=="function"&&await this.callApiFetch()},doSelectRow(t,e){const s=this.expandableRows===""?!0:this.expandableRows,i=this.selectableRows===""?!0:this.selectableRows;if(s){const o=this.expandedRowsByUid[t._uid]===void 0;o?this.expandableRows.toString()==="1"?this.expandedRowsInternal=[t._uid]:this.expandedRowsInternal.push(t._uid):this.expandedRowsInternal=this.expandedRowsInternal.filter(n=>n!==t._uid),this.$emit("row-expand",{item:t,index:e,expanded:o,expandedRows:this.expandedRowsInternal.map(n=>this.filteredItems[n])}),this.$emit("update:expanded-rows",this.expandedRowsInternal)}else if(i){let o=!1;const n=this.selectedRowsByUid[t._uid]===void 0;n?(this.selectableRows.toString()==="1"?this.selectedRowsInternal=[t._uid]:this.selectedRowsInternal.push(t._uid),o=!0):(!this.forceSelection||this.selectedRowsInternal.length>1)&&(this.selectedRowsInternal=this.selectedRowsInternal.filter(r=>r!==t._uid),o=!0),o&&(this.$emit("row-select",{item:t,index:e,selected:n,selectedRows:this.selectedRowsInternal.map(r=>this.filteredItems[r])}),this.$emit("update:selected-rows",this.selectedRowsInternal))}this.$emit("row-click",{item:t,index:e})},onMouseDown(t){t.target.classList.contains("w-table__col-resizer")&&(this.colResizing.columnIndex=+t.target.parentNode.cellIndex,this.colResizing.startCursorX=t.pageX,this.colResizing.columnEl=this.$el.querySelector(`col:nth-child(${this.colResizing.columnIndex+1})`),this.colResizing.nextColumnEl=this.colResizing.columnEl.nextSibling,this.colResizing.colWidth=this.colResizing.columnEl.offsetWidth,this.colResizing.nextColWidth=this.colResizing.nextColumnEl.offsetWidth,document.addEventListener("mousemove",this.onResizerMouseMove),document.addEventListener("mouseup",this.onResizerMouseUp))},onMouseOver({target:t}){t.classList.contains("w-table__col-resizer")&&(this.colResizing.hover=+t.parentNode.cellIndex)},onMouseOut({target:t}){t.classList.contains("w-table__col-resizer")&&(this.colResizing.hover=!1)},onResizerMouseMove(t){const{startCursorX:e,columnEl:s,nextColumnEl:i,colWidth:o,nextColWidth:n}=this.colResizing;this.colResizing.dragging=!0;const r=t.pageX-e,d=o+n,u=o+r,c=n-r;s.style.width=o+r+"px",i.style.width=n-r+"px";const m=r<0&&s.offsetWidth>u||s.offsetWidth<=Ya,g=r>0&&i.offsetWidth>c;if(m){const v=Math.max(s.offsetWidth,Ya);s.style.width=v+"px",i.style.width=d-v+"px"}else g&&(s.style.width=d-i.offsetWidth+"px",i.style.width=i.offsetWidth+"px")},onResizerMouseUp(){document.removeEventListener("mousemove",this.onResizerMouseMove),document.removeEventListener("mouseup",this.onResizerMouseUp),setTimeout(()=>{const t=[...this.$refs.colgroup.children].map(e=>{var s;return((s=e.style)==null?void 0:s.width)||e.offsetWidth});this.$emit("column-resize",{index:this.colResizing.columnIndex,widths:t}),this.colResizing.dragging=!1,this.colResizing.columnIndex=null,this.colResizing.startCursorX=null,this.colResizing.columnEl=null,this.colResizing.nextColumnEl=null,this.colResizing.colWidth=null,this.colResizing.nextColWidth=null},0)},initPagination(){var t,e;const s=((t=this.pagination)==null?void 0:t.itemsPerPage)??20,i=((e=this.pagination)==null?void 0:e.itemsPerPageOptions)||[20,100,{label:"All",value:0}];i.find(n=>((n==null?void 0:n.value)??n)===+s)||i.push(s),this.paginationConfig.itemsPerPageOptions=i.map(n=>({label:["string","number"].includes(typeof n)?n.toString():n.label||n.value,value:["string","number"].includes(typeof n)?~~n:n.value??n.label})),this.paginationConfig.itemsPerPageOptions.sort((n,r)=>n.value=i?i:s%i,this.paginationConfig.pagesCount=Math.ceil(s/t)}e&&this.goToPage(e)},async goToPage(t){["-1","+1"].includes(t)?this.paginationConfig.page+=+t:this.paginationConfig.page=t;const{itemsPerPage:e,total:s}=this.paginationConfig;this.paginationConfig.page=Math.max(1,this.paginationConfig.page),this.paginationConfig.start=e*(this.paginationConfig.page-1)+1,this.paginationConfig.end=this.paginationConfig.start-1+(e||s),typeof this.fetch=="function"&&await this.callApiFetch()},async callApiFetch(){const{page:t,start:e,end:s,total:i,itemsPerPage:o}=this.paginationConfig;return await this.fetch({page:t,start:e,end:s||i,total:i,itemsPerPage:o||i,sorting:this.activeSorting})}},created(){this.sort?this.activeSorting=Array.isArray(this.sort)?this.sort:[this.sort]:this.activeSorting=[],(this.expandedRows||[]).length&&(this.expandedRowsInternal=this.expandedRows),(this.selectedRows||[]).length&&(this.selectedRowsInternal=this.selectedRows),this.pagination&&this.initPagination()},watch:{sort(t){t?this.activeSorting=Array.isArray(t)?t:[t]:this.activeSorting=[]},expandableRows(t){t?t.toString()==="1"&&(this.expandedRowsInternal=this.expandedRowsInternal.slice(0,1)):this.expandedRowsInternal=[]},expandedRows(t){this.expandedRowsInternal=Array.isArray(t)&&t.length?this.expandedRows:[]},selectableRows(t){t?t.toString()==="1"&&(this.selectedRowsInternal=this.selectedRowsInternal.slice(0,1)):this.selectedRowsInternal=[]},selectedRows(t){this.selectedRowsInternal=Array.isArray(t)&&t.length?this.selectedRows:[]},"pagination.page"(t){this.updatePaginationConfig({page:t})},"pagination.itemsPerPage"(t){this.updatePaginationConfig({itemsPerPage:t})},"pagination.total"(t){this.updatePaginationConfig({total:t})}}},D0=ne(S0,[["render",_0]]),E0=["role","aria-pressed","tabindex"];function T0(t,e,s,i,o,n){return f(),y("span",{class:E(["w-tag",n.classes]),onClick:e[1]||(e[1]=r=>{t.$emit("update:modelValue",!s.modelValue),t.$emit("input",!s.modelValue)}),onKeypress:e[2]||(e[2]=vt(r=>{t.$emit("update:modelValue",!s.modelValue),t.$emit("input",!s.modelValue)},["enter"])),role:s.modelValue!==-1&&"button","aria-pressed":s.modelValue!==-1&&(s.modelValue?"true":"false"),tabindex:s.modelValue!==-1&&0,style:me(n.styles)},[D(t.$slots,"default"),s.closable&&s.modelValue?(f(),y("i",{key:0,class:"w-icon w-tag__closable wi-cross",onClick:e[0]||(e[0]=We(r=>{t.$emit("update:modelValue",!1),t.$emit("input",!1)},["stop"])),role:"icon","aria-hidden":"true"})):C("",!0)],46,E0)}const V0={name:"w-tag",props:{modelValue:{type:[Boolean,Number],default:-1},color:{type:String},bgColor:{type:String},shadow:{type:Boolean},tile:{type:Boolean},round:{type:Boolean},closable:{type:Boolean},outline:{type:Boolean},noBorder:{type:Boolean},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean},width:{type:[Number,String]},height:{type:[Number,String]},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue"],computed:{presetSize(){return this.xs&&"xs"||this.sm&&"sm"||this.lg&&"lg"||this.xl&&"xl"||"md"},classes(){return{[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,[`size--${this.presetSize}`]:!0,"w-tag--dark":this.dark,"w-tag--light":this.light,"w-tag--clickable":this.modelValue!==-1,"w-tag--outline":this.outline,"w-tag--no-border":this.noBorder||this.shadow,"w-tag--tile":this.tile,"w-tag--round":this.round,"w-tag--shadow":this.shadow}},styles(){return{width:(isNaN(this.width)?this.width:`${this.width}px`)||null,height:(isNaN(this.height)?this.height:`${this.height}px`)||null}}}},$0=ne(V0,[["render",T0]]),I0=["for"],M0=["id","name","placeholder","rows","cols","readonly","aria-readonly","disabled","required","tabindex"],A0=["for"];function B0(t,e,s,i,o,n){const r=R("w-icon");return f(),B(De(t.formRegister?"w-form-element":"div"),ee({ref:"formEl"},t.formRegister&&{validators:t.validators,inputValue:o.inputValue,disabled:t.isDisabled,readonly:t.isReadonly,isFocused:o.isFocused},{valid:t.valid,"onUpdate:valid":e[6]||(e[6]=d=>t.valid=d),wrap:n.hasLabel&&s.labelPosition!=="inside",onReset:e[7]||(e[7]=d=>{t.$emit("update:modelValue",o.inputValue=""),t.$emit("input","")}),class:n.classes,style:t.$attrs.style}),{default:p(()=>[s.labelPosition==="left"?(f(),y(H,{key:0},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-textarea__label w-textarea__label--left w-form-el-shakable",t.labelClasses]),for:`w-textarea--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,I0)):C("",!0)],64)):C("",!0),l("div",{class:E(["w-textarea__textarea-wrap",n.inputWrapClasses])},[D(t.$slots,"icon-left",{inputId:`w-textarea--${t._.uid}`},()=>[s.innerIconLeft?(f(),B(r,{key:0,class:"w-textarea__icon w-textarea__icon--inner-left",tag:"label",for:`w-textarea--${t._.uid}`,onClick:e[0]||(e[0]=d=>t.$emit("click:inner-icon-left",d))},{default:p(()=>[a(S(s.innerIconLeft),1)]),_:1},8,["for"])):C("",!0)]),st(l("textarea",ee({class:"w-textarea__textarea",ref:"textarea","onUpdate:modelValue":e[1]||(e[1]=d=>o.inputValue=d)},n.attrs,{onInput:e[2]||(e[2]=(...d)=>n.onInput&&n.onInput(...d)),onFocus:e[3]||(e[3]=(...d)=>n.onFocus&&n.onFocus(...d)),onBlur:e[4]||(e[4]=(...d)=>n.onBlur&&n.onBlur(...d)),id:`w-textarea--${t._.uid}`,name:t.inputName,placeholder:s.placeholder||null,rows:s.rows||null,cols:s.cols||null,readonly:t.isReadonly||null,"aria-readonly":t.isReadonly?"true":"false",disabled:t.isDisabled||null,required:t.required||null,tabindex:t.tabindex||null}),null,16,M0),[[zn,o.inputValue]]),s.labelPosition==="inside"&&n.showLabelInside?(f(),y(H,{key:0},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-textarea__label w-textarea__label--inside w-form-el-shakable",t.labelClasses])},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],2)):C("",!0)],64)):C("",!0),D(t.$slots,"icon-right",{inputId:`w-textarea--${t._.uid}`},()=>[s.innerIconRight?(f(),B(r,{key:0,class:"w-textarea__icon w-textarea__icon--inner-right",tag:"label",for:`w-textarea--${t._.uid}`,onClick:e[5]||(e[5]=d=>t.$emit("click:inner-icon-right",d))},{default:p(()=>[a(S(s.innerIconRight),1)]),_:1},8,["for"])):C("",!0)])],2),s.labelPosition==="right"?(f(),y(H,{key:1},[t.$slots.default||s.label?(f(),y("label",{key:0,class:E(["w-textarea__label w-textarea__label--right w-form-el-shakable",t.labelClasses]),for:`w-textarea--${t._.uid}`},[D(t.$slots,"default",{},()=>[a(S(s.label),1)])],10,A0)):C("",!0)],64)):C("",!0)]),_:3},16,["valid","wrap","class","style"])}const O0={name:"w-textarea",mixins:[Et],inheritAttrs:!1,props:{modelValue:{default:""},label:{type:String},labelPosition:{type:String,default:"inside"},innerIconLeft:{type:String},innerIconRight:{type:String},staticLabel:{type:Boolean},placeholder:{type:String},color:{type:String,default:"primary"},bgColor:{type:String},labelColor:{type:String,default:"primary"},outline:{type:Boolean},shadow:{type:Boolean},noAutogrow:{type:Boolean},resizable:{type:Boolean},tile:{type:Boolean},rows:{type:[Number,String],default:3},cols:{type:[Number,String]},dark:{type:Boolean},light:{type:Boolean}},emits:["input","update:modelValue","focus","blur","click:inner-icon-left","click:inner-icon-right"],data(){return{inputValue:this.modelValue,isFocused:!1,height:null,lineHeight:null,paddingY:null}},computed:{attrs(){const{class:t,style:e,...s}=this.$attrs;return s},hasValue(){return this.inputValue||this.inputValue===0},hasLabel(){return this.label||this.$slots.default},showLabelInside(){return!this.staticLabel||!this.hasValue&&!this.placeholder},classes(){return{"w-textarea":!0,"w-textarea--disabled":this.isDisabled,"w-textarea--readonly":this.isReadonly,[`w-textarea--${this.hasValue?"filled":"empty"}`]:!0,"w-textarea--focused":this.isFocused&&!this.isReadonly,"w-textarea--dark":this.dark,"w-textarea--light":this.light,"w-textarea--resizable":this.resizable,"w-textarea--floating-label":this.hasLabel&&this.labelPosition==="inside"&&!this.staticLabel,"w-textarea--no-padding":!this.outline&&!this.bgColor&&!this.shadow,"w-textarea--has-placeholder":this.placeholder,"w-textarea--inner-icon-left":this.innerIconLeft,"w-textarea--inner-icon-right":this.innerIconRight,[this.$attrs.class]:!!this.$attrs.class}},inputWrapClasses(){return{[this.valid===!1?this.validationColor:this.color]:this.color||this.valid===!1,[`${this.bgColor}--bg`]:this.bgColor,"w-textarea__textarea-wrap--tile":this.tile,"w-textarea__textarea-wrap--box":this.outline||this.bgColor||this.shadow,"w-textarea__textarea-wrap--underline":!this.outline,"w-textarea__textarea-wrap--shadow":this.shadow,"w-textarea__textarea-wrap--no-padding":!this.outline&&!this.bgColor&&!this.shadow}},textareaStyles(){return this.noAutogrow||this.resizable?{}:{height:this.height?`${this.height}px`:null}}},methods:{onInput(){!this.noAutogrow&&!this.resizable&&this.computeHeight(),this.$emit("update:modelValue",this.inputValue),this.$emit("input",this.inputValue)},onFocus(t){this.isFocused=!0,this.$emit("focus",t)},onBlur(t){this.isFocused=!1,this.$emit("blur",t)},computeHeight(){this.$refs.textarea.style.height="";const t=(this.$refs.textarea.scrollHeight-this.paddingY)/this.lineHeight,e=Math.max(t,this.rows)*this.lineHeight+this.paddingY;this.$refs.textarea.style.height=e+"px"},getLineHeight(){const t=window.getComputedStyle(this.$refs.textarea,null);this.lineHeight=parseFloat(t.getPropertyValue("line-height")),this.paddingY=parseFloat(t.getPropertyValue("padding-top")),this.paddingY+=parseFloat(t.getPropertyValue("padding-bottom"))}},mounted(){!this.noAutogrow&&!this.resizable&&(this.getLineHeight(),this.computeHeight())},watch:{modelValue(t){this.inputValue=t,this.$nextTick(this.computeHeight)},resizable(t){t?this.height=null:this.noAutogrow||this.getLineHeight()},noAutogrow(t){t?this.getLineHeight():this.height=null}}},R0=ne(O0,[["render",B0]]),L0=["innerHTML"],P0=["innerHTML"];function N0(t,e,s,i,o,n){return f(),y("ul",{class:E(["w-timeline",n.classes])},[(f(!0),y(H,null,ge(s.items,(r,d)=>(f(),y("li",{class:"w-timeline-item",key:d},[(f(),B(De(r[s.itemIconKey]||s.icon?"w-icon":"div"),{class:E(["w-timeline-item__bullet",{[r[s.itemColorKey]||s.color]:r[s.itemColorKey]||s.color}])},{default:p(()=>[a(S(r[s.itemIconKey]||s.icon),1)]),_:2},1032,["class"])),t.$slots[`item.${d+1}`]?D(t.$slots,`item.${d+1}`,{key:1,item:r,index:d+1}):D(t.$slots,"item",{key:0,item:r,index:d+1},()=>[l("div",{class:E(["w-timeline-item__title",{[r[s.itemColorKey]||s.color]:r[s.itemColorKey]||s.color}]),innerHTML:r[s.itemTitleKey]},null,10,L0),l("div",{class:"w-timeline-item__content",innerHTML:r[s.itemContentKey]},null,8,P0)])]))),128))],2)}const W0={name:"w-timeline",props:{items:{type:[Array,Number],required:!0},color:{type:String},icon:{type:String},itemTitleKey:{type:String,default:"title"},itemContentKey:{type:String,default:"content"},itemIconKey:{type:String,default:"icon"},itemColorKey:{type:String,default:"color"},dark:{type:Boolean},light:{type:Boolean}},emits:[],computed:{classes(){return{"w-timeline--dark":this.dark,"w-timeline--light":this.light}}}},H0=ne(W0,[["render",N0]]);function j0(t,e,s,i,o,n){return f(),y("div",{class:E(["w-toolbar",n.classes]),style:me(n.styles)},[D(t.$slots,"default")],6)}const z0={name:"w-toolbar",props:{color:{type:String},bgColor:{type:String},absolute:{type:Boolean},fixed:{type:Boolean},bottom:{type:Boolean},vertical:{type:Boolean},left:{type:Boolean},right:{type:Boolean},width:{type:[Number,String],default:null},height:{type:[Number,String],default:null},noBorder:{type:Boolean},shadow:{type:Boolean},dark:{type:Boolean},light:{type:Boolean}},emits:[],computed:{toolbarHeight(){const t=this.height;return t&&parseInt(t)==t?t+"px":t},toolbarWidth(){const t=this.width;return t&&parseInt(t)==t?t+"px":t},classes(){return{[this.color]:!!this.color,[`${this.bgColor}--bg`]:!!this.bgColor,"w-toolbar--dark":this.dark,"w-toolbar--light":this.light,"w-toolbar--absolute":!!this.absolute,"w-toolbar--fixed":!!this.fixed,[`w-toolbar--${this.bottom?"bottom":"top"}`]:!this.vertical,[`w-toolbar--vertical w-toolbar--${this.right?"right":"left"}`]:this.vertical,"w-toolbar--no-border":this.noBorder,"w-toolbar--shadow":!!this.shadow}},styles(){return{height:this.height&&!this.vertical?this.toolbarHeight:null,width:this.width&&this.vertical?this.toolbarWidth:null}}}},F0=ne(z0,[["render",j0]]);function Y0(t,e,s,i,o,n){return f(),y(H,null,[D(t.$slots,"activator",{on:n.activatorEventHandlers}),h(Oe,{name:n.transitionName,appear:""},{default:p(()=>[t.detachableVisible?(f(),y("div",{class:E(["w-tooltip",n.classes]),ref:"detachable",key:t._.uid,style:me(n.styles)},[D(t.$slots,"default")],6)):C("",!0)]),_:3},8,["name"])],64)}const U0={name:"w-tooltip",mixins:[Pr],props:{modelValue:{},showOnClick:{type:Boolean},color:{type:String},bgColor:{type:String},noBorder:{type:Boolean},shadow:{type:Boolean},tile:{type:Boolean},round:{type:Boolean},transition:{type:String},tooltipClass:{type:[String,Object,Array]},persistent:{type:Boolean},delay:{type:Number},dark:{type:Boolean},light:{type:Boolean},caption:{type:Boolean},xs:{type:Boolean},sm:{type:Boolean},md:{type:Boolean},lg:{type:Boolean},xl:{type:Boolean},enableTouch:{type:Boolean}},emits:["input","update:modelValue","open","close"],data:()=>({detachableVisible:!1,hoveringActivator:!1,detachableCoords:{top:0,left:0},detachableEl:null,timeoutId:null}),computed:{tooltipClasses(){return Ct(this.tooltipClass)},transitionName(){const t=this.position.replace(/top|bottom/,e=>({top:"up",bottom:"down"})[e]);return this.transition||`w-tooltip-slide-fade-${t}`},size(){return this.xs&&"xs"||this.sm&&"sm"||this.sm&&"md"||this.lg&&"lg"||this.xl&&"xl"||(this.caption?"sm":"md")},classes(){return{[this.color]:this.color,[`${this.bgColor}--bg`]:this.bgColor,...this.tooltipClasses,[`w-tooltip--${this.position}`]:!this.noPosition,[`w-tooltip--align-${this.alignment}`]:!this.noPosition&&this.alignment,"w-tooltip--dark":this.dark,"w-tooltip--light":this.light,"w-tooltip--tile":this.tile,"w-tooltip--round":this.round,caption:this.caption,[`size--${this.size}`]:!0,"w-tooltip--shadow":this.shadow,"w-tooltip--fixed":this.fixed,"w-tooltip--no-border":this.noBorder||this.bgColor,"w-tooltip--custom-transition":this.transition}},styles(){return{zIndex:this.zIndex||this.zIndex===0||null,top:this.detachableCoords.top&&`${~~this.detachableCoords.top}px`||null,left:this.detachableCoords.left&&`${~~this.detachableCoords.left}px`||null,"--w-tooltip-bg-color":this.$waveui.colors[this.bgColor]||"rgb(var(--w-base-bg-color-rgb))"}},activatorEventHandlers(){let t={};const e=typeof window<"u"&&"ontouchstart"in window;return!this.showOnClick&&!e?t={focus:this.open,blur:this.close,mouseenter:s=>{this.hoveringActivator=!0,this.open(s)},mouseleave:s=>{this.hoveringActivator=!1,this.close()}}:(this.enableTouch||this.showOnClick)&&(t={click:this.toggle}),t}},methods:{toggle(t){let e=this.detachableVisible;typeof window<"u"&&"ontouchstart"in window?!this.enableTouch&&!this.showOnClick?e=!1:e=!e:t.type==="click"&&this.showOnClick?e=!e:["mouseenter","focus"].includes(t.type)&&!this.showOnClick?e=!0:["mouseleave","blur"].includes(t.type)&&!this.showOnClick&&(e=!1),this.timeoutId=clearTimeout(this.timeoutId),e?this.open(t):this.close()},async close(t=!1){this.detachableVisible&&(this.showOnHover&&!t&&(await new Promise(e=>setTimeout(e,10)),this.showOnHover&&this.hoveringActivator)||(this.$emit("update:modelValue",this.detachableVisible=!1),this.$emit("input",!1),this.$emit("close"),document.removeEventListener("mousedown",this.onOutsideMousedown),window.removeEventListener("resize",this.onResize)))}}},K0=ne(U0,[["render",Y0]]);function q0(t,e,s,i,o,n){return f(),B(Oe,ee({name:"bounce"},t.$props),{default:p(()=>[D(t.$slots,"default")]),_:3},16)}const J0={name:"w-transition-bounce",props:{appear:{type:Boolean},duration:{type:[Number,String]}}},G0=ne(J0,[["render",q0]]);function X0(t,e,s,i,o,n){return f(),B(Oe,{name:"expand",mode:"out-in",css:!1,onBeforeAppear:n.beforeAppear,onAppear:n.appear,onAfterAppear:n.afterAppear,onBeforeEnter:n.beforeEnter,onEnter:n.enter,onAfterEnter:n.afterEnter,onBeforeLeave:n.beforeLeave,onLeave:n.leave,onAfterLeave:n.afterLeave},{default:p(()=>[D(t.$slots,"default")]),_:3},8,["onBeforeAppear","onAppear","onAfterAppear","onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}const Q0={name:"w-transition-expand",props:{x:{type:Boolean},y:{type:Boolean},duration:{type:Number,default:250}},data:()=>({el:{savedState:!1,originalStyles:"",width:0,height:0,marginLeft:0,marginRight:0,marginTop:0,marginBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0},cleanTransitionCycle:!0}),computed:{animX(){return this.x||!this.y},animY(){return this.y||!this.x}},methods:{beforeAppear(t){this.cleanTransitionCycle&&this.saveOriginalInlineStyles(t),this.cleanTransitionCycle=!1},appear(t,e){this.show(t),setTimeout(e,this.duration),this.cleanTransitionCycle=!1},afterAppear(t){this.applyOriginalStyles(t),t.style.cssText=t.style.cssText.replace("display: none;",""),this.cleanTransitionCycle=!1},beforeEnter(t){this.cleanTransitionCycle&&this.saveOriginalInlineStyles(t),this.cleanTransitionCycle=!1},enter(t,e){this.show(t),setTimeout(e,this.duration),this.cleanTransitionCycle=!1},afterEnter(t){this.applyOriginalStyles(t),t.style.cssText=t.style.cssText.replace("display: none;",""),this.cleanTransitionCycle=!1},beforeLeave(t){this.el.savedState||this.saveComputedStyles(t),this.beforeHide(t),this.cleanTransitionCycle=!1},leave(t,e){this.hide(t),setTimeout(e,this.duration),this.cleanTransitionCycle=!1},afterLeave(t){this.applyOriginalStyles(t),this.cleanTransitionCycle=!0,this.el.savedState=!1},applyHideStyles(t){this.animX&&(t.style.width=0,t.style.marginLeft=0,t.style.marginRight=0,t.style.paddingLeft=0,t.style.paddingRight=0,t.style.borderLeftWidth=0,t.style.borderRightWidth=0),this.animY&&(t.style.height=0,t.style.marginTop=0,t.style.marginBottom=0,t.style.paddingTop=0,t.style.paddingBottom=0,t.style.borderTopWidth=0,t.style.borderBottomWidth=0),t.style.overflow="hidden"},applyShowStyles(t){this.animX&&(t.style.width=this.el.width+"px",t.style.marginLeft=this.el.marginLeft,t.style.marginRight=this.el.marginRight,t.style.paddingLeft=this.el.paddingLeft,t.style.paddingRight=this.el.paddingRight,t.style.borderLeftWidth=this.el.borderLeftWidth,t.style.borderRightWidth=this.el.borderRightWidth),this.animY&&(t.style.height=this.el.height+"px",t.style.marginTop=this.el.marginTop,t.style.marginBottom=this.el.marginBottom,t.style.paddingTop=this.el.paddingTop,t.style.paddingBottom=this.el.paddingBottom,t.style.borderTopWidth=this.el.borderTopWidth,t.style.borderBottomWidth=this.el.borderBottomWidth),t.style.transition=this.duration+"ms ease-in-out"},applyOriginalStyles(t){t.style.cssText=this.el.originalStyles},saveOriginalInlineStyles(t){this.el.originalStyles=t.style.cssText},show(t){this.saveComputedStyles(t),this.applyHideStyles(t),setTimeout(()=>this.applyShowStyles(t),20)},beforeHide(t){this.applyShowStyles(t)},hide(t){setTimeout(()=>this.applyHideStyles(t),20)},saveComputedStyles(t){const e=window.getComputedStyle(t,null);this.animX&&(this.el.width=t.offsetWidth,this.el.marginLeft=e.getPropertyValue("marginLeft"),this.el.marginRight=e.getPropertyValue("marginRight"),this.el.paddingLeft=e.getPropertyValue("paddingLeft"),this.el.paddingRight=e.getPropertyValue("paddingRight"),this.el.borderLeftWidth=e.getPropertyValue("borderLeftWidth"),this.el.borderRightWidth=e.getPropertyValue("borderRightWidth")),this.animY&&(this.el.height=t.offsetHeight,this.el.marginTop=e.getPropertyValue("marginTop"),this.el.marginBottom=e.getPropertyValue("marginBottom"),this.el.paddingTop=e.getPropertyValue("paddingTop"),this.el.paddingBottom=e.getPropertyValue("paddingBottom"),this.el.borderTopWidth=e.getPropertyValue("borderTopWidth"),this.el.borderBottomWidth=e.getPropertyValue("borderBottomWidth")),this.el.savedState=!0}}},Z0=ne(Q0,[["render",X0]]);function e2(t,e,s,i,o,n){return f(),B(Oe,ee({name:"fade"},t.$props),{default:p(()=>[D(t.$slots,"default")]),_:3},16)}const t2={name:"w-transition-fade",props:{appear:{type:Boolean},duration:{type:[Number,String]}}},s2=ne(t2,[["render",e2]]);function n2(t,e,s,i,o,n){return f(),B(Oe,ee({name:"scale"},t.$props),{default:p(()=>[D(t.$slots,"default")]),_:3},16)}const l2={name:"w-transition-scale",props:{appear:{type:Boolean},duration:{type:[Number,String]}}},i2=ne(l2,[["render",n2]]);function a2(t,e,s,i,o,n){return f(),B(Oe,ee({name:"scale-fade"},t.$props),{default:p(()=>[D(t.$slots,"default")]),_:3},16)}const o2={name:"w-transition-scale-fade",props:{appear:{type:Boolean},duration:{type:[Number,String]}}},r2=ne(o2,[["render",a2]]);function d2(t,e,s,i,o,n){return f(),B(Oe,ee({name:n.transitionName},t.$props),{default:p(()=>[D(t.$slots,"default")]),_:3},16,["name"])}const u2={name:"w-transition-slide",props:{appear:{type:Boolean},left:{type:Boolean},right:{type:Boolean},up:{type:Boolean},down:{type:Boolean},duration:{type:[Number,String]}},computed:{direction(){return this.up&&"up"||this.down&&"down"||this.left&&"left"||this.right&&"right"||"down"},transitionName(){return`slide-${this.direction}`}}},c2=ne(u2,[["render",d2]]);function p2(t,e,s,i,o,n){return f(),B(Oe,ee({name:n.transitionName},t.$props),{default:p(()=>[D(t.$slots,"default")]),_:3},16,["name"])}const h2={name:"w-transition-slide-fade",props:{appear:{type:Boolean},left:{type:Boolean},right:{type:Boolean},up:{type:Boolean},down:{type:Boolean},duration:{type:[Number,String]}},computed:{direction(){return this.up&&"up"||this.down&&"down"||this.left&&"left"||this.right&&"right"||"down"},transitionName(){return`slide-fade-${this.direction}`}}},m2=ne(h2,[["render",p2]]);function f2(t,e,s,i,o,n){return f(),B(Oe,ee({name:"twist"},t.$props),{default:p(()=>[D(t.$slots,"default")]),_:3},16)}const g2={name:"w-transition-twist",props:{appear:{type:Boolean},duration:{type:[Number,String]}}},v2=ne(g2,[["render",f2]]),y2=["innerHTML"],b2={key:1,class:"ml1"};function w2(t,e,s,i,o,n){const r=R("w-button"),d=R("w-icon"),u=R("w-tree",!0);return f(),y("ul",{class:E(["w-tree",n.classes])},[(f(!0),y(H,null,ge(t.currentDepthItems,(c,m)=>(f(),y("li",{class:E(["w-tree__item",n.itemClasses(c)]),key:m},[(f(),B(De(n.getTreeItemComponent(c)),ee({class:"w-tree__item-label",ref_for:!0},c.route&&{[!t.$router||n.hasExternalLink(c)?"href":"to"]:c.route},{onClick:g=>!s.disabled&&!c.disabled&&n.onLabelClick(c,g),onKeydown:g=>!s.disabled&&!c.disabled&&n.onLabelKeydown(c,g),tabindex:n.getTreeItemTabindex(c)}),{default:p(()=>[(c.children||c.branch)&&(s.expandOpenIcon&&c.open||s.expandIcon)&&!(s.unexpandableEmpty&&!c.children)?(f(),B(r,{key:0,class:"w-tree__item-expand",onClick:We(g=>!s.disabled&&!c.disabled&&n.onLabelClick(c,g),["stop"]),color:"inherit",icon:c.open&&s.expandOpenIcon||s.expandIcon,"icon-props":{rotate90a:!c.open},tabindex:-1,disabled:s.disabled||c.disabled,text:"",sm:""},null,8,["onClick","icon","icon-props","disabled"])):C("",!0),D(t.$slots,"item",{item:c.originalItem,depth:s.depth,path:c.path,open:c.open},()=>{var g;return[n.itemIcon(c)?(f(),B(d,{key:0,class:"w-tree__item-icon",color:c.originalItem[s.itemIconColorKey]||s.iconColor},{default:p(()=>[a(S(n.itemIcon(c)),1)]),_:2},1032,["color"])):C("",!0),l("span",{innerHTML:c.label},null,8,y2),s.counts&&(c.children||c.branch)?(f(),y("span",b2,"("+S(((g=c.originalItem.children)==null?void 0:g.length)||0)+")",1)):C("",!0)]})]),_:2},1040,["onClick","onKeydown","tabindex"])),(f(),B(De(s.noTransition?"div":"w-transition-expand"),{y:!s.noTransition||null,onAfterEnter:g=>t.$emit("open",n.emitPayload(c)),onAfterLeave:g=>t.$emit("close",n.emitPayload(c))},{default:p(()=>[c.children&&c.open?(f(),B(u,ee({key:0,ref_for:!0},t.$props,{depth:s.depth+1,data:c.originalItem.children,parent:c,onBeforeOpen:e[0]||(e[0]=g=>t.$emit("before-open",g)),onOpen:e[1]||(e[1]=g=>t.$emit("open",g)),onBeforeClose:e[2]||(e[2]=g=>t.$emit("before-close",g)),onClose:e[3]||(e[3]=g=>t.$emit("close",g)),onClick:e[4]||(e[4]=g=>t.$emit("click",g)),onSelect:e[5]||(e[5]=g=>t.$emit("select",g)),"onUpdate:modelValue":e[6]||(e[6]=g=>t.$emit("update:model-value",g))}),{item:p(({item:g,depth:v,path:w,open:_})=>[D(t.$slots,"item",{item:g,depth:v,path:w,open:_})]),_:2},1040,["depth","data","parent"])):C("",!0)]),_:2},1064,["y","onAfterEnter","onAfterLeave"]))],2))),128))],2)}const k2={name:"w-tree",props:{modelValue:{type:[Object,Array]},data:{type:[Object,Array],required:!0},depth:{type:Number,default:0},parent:{type:Object,default:null},branchClass:{type:String},leafClass:{type:String},branchIcon:{type:String},branchOpenIcon:{type:String},leafIcon:{type:String},expandIcon:{type:[Boolean,String],default:"wi-triangle-down"},expandOpenIcon:{type:[Boolean,String]},expandAll:{type:Boolean},unexpandableEmpty:{type:Boolean},disabled:{type:Boolean},noTransition:{type:Boolean},selectable:{type:Boolean},deepReactivity:{type:Boolean},counts:{type:Boolean},itemIconKey:{type:String,default:"icon"},iconColor:{type:String},itemLabelKey:{type:String,default:"label"},itemIconColorKey:{type:String,default:"iconColor"},itemRouteKey:{type:String,default:"route"},itemDisabledKey:{type:String,default:"disabled"},itemOpenKey:{type:String,default:"open"}},emits:["update:model-value","before-open","open","before-close","close","click","select"],data:()=>({currentDepthItems:[],dataPropUnwatch:null}),computed:{classes(){return{[`w-tree--depth${this.depth}`]:!0,"w-tree--expand-icon":this.expandIcon&&!this.depth,"w-tree--selectable":this.selectable,"w-tree--disabled":this.disabled&&!this.depth,"w-tree--no-expand-button":!this.expandIcon}}},methods:{updateCurrentDepthTree(t,e=[]){if(this.currentDepthItems=[],!Array.isArray(t)&&typeof t!="object")return an(`[w-tree] the tree items must be of type array or object, ${typeof t} received.`);Array.isArray(t)||(t=[t]),t.forEach((s,i)=>{var o,n;const r={originalItem:s,_uid:this.depth.toString()+(i+1),label:s[this.itemLabelKey],children:!!s.children,branch:s.branch,route:s[this.itemRouteKey],disabled:s[this.itemDisabledKey],selected:((o=e[i])==null?void 0:o.selected)||!1,depth:this.depth,open:!!((n=e[i])!=null&&n.open||this.expandAll||s[this.itemOpenKey]),parent:this.parent||null,path:[]};r.path=this.getTreeItemPath(r),this.currentDepthItems.push(r)})},getTreeItemComponent(t){return!this.disabled&&!t.disabled&&t.route?!this.$router||this.hasExternalLink(t)?"a":"router-link":"div"},getTreeItemTabindex(t){return!this.disabled&&!t.disabled&&(t.children||t.branch||this.selectable)&&!(this.unexpandableEmpty&&!t.children)?0:null},getTreeItemPath(t){const e=[t];let s=t.parent;for(;s;)e.push(s),s=s.parent;return e.reverse(),e},getTreeItemPathForOutput(t){return t.path.map(e=>e.originalItem)},expandDepth(t,e){typeof e=="boolean"?t.open=e:t.open=!t.open;const s=this.emitPayload(t);return this.$emit(t.open?"before-open":"before-close",s),!this.unexpandableEmpty&&!t.children&&this.$emit(t.open?"open":"close",s),!0},onLabelClick(t,e){t[this.itemRouteKey]&&this.$router&&!this.hasExternalLink(t)&&e.preventDefault(),(t.children||t.branch&&!this.unexpandableEmpty)&&this.expandDepth(t),this.selectable&&(t.selected=!t.selected);const s=this.emitPayload(t,e);this.$emit("click",s),this.emitItemSelection(t,e)},onLabelKeydown(t,e){if(!(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)&&[13,32,37,38,39,40].includes(e.keyCode)&&((t.children||t.branch)&&([13,32].includes(e.keyCode)?this.expandDepth(t)&&e.preventDefault():e.keyCode===37?this.expandDepth(t,!1)&&e.preventDefault():e.keyCode===39&&this.expandDepth(t,!0)&&e.preventDefault()),[38,40].includes(e.keyCode))){const s=this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'),i=e.target.closest(".w-tree__item-label"),o=e.keyCode===38?-1:1;[...s].some((n,r)=>n.isSameNode(i)?(s[r+o]&&s[r+o].focus(),!0):!1)}e.keyCode===13&&(this.selectable&&(t.selected=!t.selected),this.emitItemSelection(t,e))},emitItemSelection(t,e){const s=this.emitPayload(t,e);this.$emit("update:model-value",s),this.selectable&&this.$emit("select",s)},emitPayload(t,e){const s={item:t.originalItem,depth:this.depth,path:this.getTreeItemPathForOutput(t)};return e&&(s.e=e),(t.children||t.branch&&!this.unexpandableEmpty)&&(s.open=t.open),this.selectable&&(s.selected=t.selected),s},getPreviousSibling(t,e){for(;e&&(t=t.previousElementSibling);)if(t.matches(e))return t;return!1},getNextSibling(t,e){for(;e&&(t=t.nextElementSibling);)if(t.matches(e))return t;return!1},focusTreeItem(t){t&&t.querySelector(".w-tree__item-label").focus()},itemIcon(t){return t.originalItem[this.itemIconKey]||!t.children&&!t.branch&&this.leafIcon||(t.children||t.branch)&&(t.open&&this.branchOpenIcon||this.branchIcon)},hasExternalLink(t){return/^(https?:)?\/\/|mailto:|tel:/.test(t[this.itemRouteKey])},itemClasses(t){return{[t.children||t.branch?"w-tree__item--branch":"w-tree__item--leaf"]:!0,"w-tree__item--disabled":t[this.itemDisabledKey],"w-tree__item--selected":t.selected,"w-tree__item--empty":t.branch&&!t.children,"w-tree__item--unexpandable":t.branch&&!t.children&&this.unexpandableEmpty}}},created(){this.updateCurrentDepthTree(this.data),this.dataPropUnwatch=this.$watch("data",t=>this.updateCurrentDepthTree(t,this.currentDepthItems),{deep:!!this.deepReactivity})},unmounted(){this.dataPropUnwatch()}},x2=ne(k2,[["render",w2]]),C2=Object.freeze(Object.defineProperty({__proto__:null,WAccordion:yy,WAlert:xy,WApp:Ry,WAutocomplete:My,WBadge:Wy,WBreadcrumbs:Fy,WButton:Qy,WCard:sb,WCheckbox:ub,WCheckboxes:mb,WConfirm:vb,WDatePicker:wb,WDialog:Cb,WDivider:Eb,WDrawer:Mb,WFlex:Ob,WForm:Nb,WFormElement:jb,WGrid:Yb,WIcon:qb,WImage:Zb,WInput:u1,WList:h1,WMenu:g1,WNotification:b1,WOverlay:x1,WParallax:D1,WProgress:B1,WRadio:j1,WRadios:U1,WRating:X1,WScrollable:tw,WSelect:rw,WSlider:xw,WSpinner:Dw,WSteps:Vw,WSwitch:Lw,WTable:D0,WTabs:Gw,WTag:$0,WTextarea:R0,WTimeline:H0,WToolbar:F0,WTooltip:K0,WTransitionBounce:G0,WTransitionExpand:Z0,WTransitionFade:s2,WTransitionScale:i2,WTransitionScaleFade:r2,WTransitionSlide:c2,WTransitionSlideFade:m2,WTransitionTwist:v2,WTree:x2},Symbol.toStringTag,{value:"Module"})),_2=Yn.install;Yn.install=(t,e={})=>_2.call(Yn,t,{components:C2,...e});const S2={class:"top-bar__title"},D2={class:"w-flex align-center primary px5"},E2={class:"w-flex align-center top-bar__logo-link no-grow",href:"#top"},T2={class:"logo top-bar__logo"},V2={class:"top-bar__logo-title"},$2={class:"version"},I2={class:"top-bar__items fill-height mr3"},M2={key:1,class:"w-flex grow align-center px5 py2"},A2=["innerHTML"],B2={key:2,class:"py2"},O2=["innerHTML"],R2={key:1,class:"w-flex grow align-center px5 py2"},L2=["innerHTML"],P2={key:2,class:"w-flex grow align-center px5 py2"},N2=["innerHTML"];function W2(t,e,s,i,o,n){const r=R("w-icon"),d=R("w-button"),u=R("w-divider"),c=R("w-list"),m=R("w-menu"),g=R("w-toolbar"),v=en("scroll-to");return f(),B(g,{class:E(["top-bar pa0",{scrolled:s.offsetTop>108}])},{default:p(()=>[l("div",S2,[e[2]||(e[2]=l("span",{class:"top-bar__title-line"},null,-1)),e[3]||(e[3]=l("span",{class:"top-bar__title-line"},null,-1)),l("h1",D2,[st((f(),y("a",E2,[l("div",T2,S(t.todayDate<10?`0${t.todayDate}`:t.todayDate),1),l("div",V2,[e[0]||(e[0]=a("Vue Cal")),l("div",$2,"v. "+S(n.version),1)])])),[[v,"#top"]]),e[1]||(e[1]=l("span",{class:"intro"},[a("Vue.js full cal  "),l("span",{class:"code"},"--no-deps --no-bs"),a("  :metal:")],-1))])]),l("div",I2,[h(m,{"show-on-hover":"","hide-on-menu-click":"","align-right":"",transition:"slide-fade-down","menu-class":"mt0 top-menu top-menu--doc","append-to":".top-bar__items",custom:""},{activator:p(({on:w})=>[h(d,ee({class:"bd0"},pt(w),{text:"",tile:"",color:"secondary",height:"100%"}),{default:p(()=>[h(r,{class:"mr2",lg:""},{default:p(()=>e[4]||(e[4]=[a("material-icons school")])),_:1}),e[5]||(e[5]=l("span",null,"DOC",-1))]),_:2},1040)]),default:p(()=>[h(c,{class:"mt0 pa0 sh2 white--bg bdrs1",nav:"",items:t.docs,"item-route-key":"href","item-class":"pa0"},{item:p(({item:w})=>[w.class==="w-divider"?(f(),B(u,{key:0,class:"grow",color:"grey-light1"})):w.href?st((f(),y("div",M2,[w.icon?(f(),B(r,{key:0,class:"mr2",lg:""},{default:p(()=>[a(S(w.icon),1)]),_:2},1024)):C("",!0),l("span",{innerHTML:w.label},null,8,A2)])),[[v,`${w.href}`]]):(f(),y("span",B2,[w.icon?(f(),B(r,{key:0,class:"mr2",lg:""},{default:p(()=>[a(S(w.icon),1)]),_:2},1024)):C("",!0),l("span",{innerHTML:w.label},null,8,O2)]))]),_:1},8,["items"])]),_:1}),h(m,{"show-on-hover":"","hide-on-menu-click":"","align-right":"",transition:"slide-fade-down","menu-class":"mt0 top-menu top-menu--examples","append-to":".top-bar__items",custom:""},{activator:p(({on:w})=>[st((f(),B(d,ee({class:"bd0"},pt(w),{text:"",tile:"",color:"secondary",href:"#examples",height:"100%"}),{default:p(()=>[h(r,{class:"mr2",lg:""},{default:p(()=>e[6]||(e[6]=[a("material-icons apps")])),_:1}),e[7]||(e[7]=l("span",null,"EXAMPLES",-1))]),_:2},1040)),[[v,"#examples"]])]),default:p(()=>[h(c,{class:"mt0 pa0 sh2 white--bg bdrs1",nav:"",items:t.examples,"item-route-key":"href","item-class":"pa0",style:{"max-height":"90vh",overflow:"auto","white-space":"nowrap"}},{item:p(({item:w})=>[w.class==="w-divider"?(f(),B(u,{key:0,class:"grow",color:"grey-light1"})):w.href?st((f(),y("div",R2,[w.icon?(f(),B(r,{key:0,class:"mr2",lg:""},{default:p(()=>[a(S(w.icon),1)]),_:2},1024)):C("",!0),l("span",{class:E({ml8:!w.icon}),innerHTML:w.label},null,10,L2)])),[[v,`${w.href}`]]):(f(),y("div",P2,[w.icon?(f(),B(r,{key:0,class:"mr2",lg:""},{default:p(()=>[a(S(w.icon),1)]),_:2},1024)):C("",!0),l("span",{class:E({ml8:!w.icon}),innerHTML:w.label},null,10,N2)]))]),_:1},8,["items"])]),_:1})])]),_:1},8,["class"])}var H2={NVM_INC:"/Users/anto/.nvm/versions/node/v22.1.0/include/node",npm_package_funding:"https://github.com/sponsors/antoniandre",MANPATH:"/Users/anto/.nvm/versions/node/v22.1.0/share/man:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/share/man:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man:/usr/share/man:/usr/local/share/man:/Users/anto/.nvm/versions/node/v22.1.0/share/man:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/share/man:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man:",npm_package_repository:"https://github.com/antoniandre/vue-cal",TERM_PROGRAM:"vscode",NODE:"/Users/anto/.nvm/versions/node/v22.1.0/bin/node",NVM_CD_FLAGS:"",npm_package_homepage:"https://antoniandre.github.io/vue-cal",npm_package_scripts_build_bundle:"BUNDLE=true vite build && mv ./dist/style.css ./dist/vuecal.css && rm ./dist/favicon.ico",npm_package_devDependencies__fortawesome_fontawesome_free:"^5.15.4",INIT_CWD:"/Users/anto/localhost/vue-cal",SHELL:"/usr/local/bin/fish",TERM:"xterm-256color",npm_package_unpkg:"dist/vue-cal.iife.js",npm_package_devDependencies_vite:"^5.4.8",OMF_CONFIG:"/Users/anto/.config/omf",TMPDIR:"/var/folders/r7/_rv6vdmj54v1_lr7bzk7f3wr0000gn/T/",npm_package_scripts_lint:"vite lint",TERM_PROGRAM_VERSION:"1.93.1",npm_package_scripts_dev:"vite",npm_package_devDependencies__vitejs_plugin_vue:"^5.1.4",MallocNanoZone:"0",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",npm_config_registry:"https://registry.npmjs.org/",PNPM_HOME:"/Users/anto/Library/pnpm",npm_package_jsdelivr:"dist/vue-cal.iife.js",NVM_DIR:"/Users/anto/.nvm",USER:"anto",npm_package_description:"A Vue JS full calendar, no dependency, no BS. :metal:",npm_package_license:"MIT",npm_package_exports___package_json:"./package.json",COMMAND_MODE:"unix2003",npm_package_exports___import:"./dist/vue-cal.es.js",npm_package_devDependencies_pug:"^3.0.3",PNPM_SCRIPT_SRC_DIR:"/Users/anto/localhost/vue-cal",npm_package_devDependencies__babel_core:"^7.25.2",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.LOIwfyoLoK/Listeners",__CF_USER_TEXT_ENCODING:"0x1F5:0x0:0x0",npm_package_devDependencies_eslint:"^8.57.1",npm_package_devDependencies_postcss:"^8.4.47",npm_execpath:"/Users/anto/Library/pnpm/global/5/.pnpm/pnpm@9.9.0/node_modules/pnpm/bin/pnpm.cjs",npm_package_module:"dist/vue-cal.es.js",npm_config_frozen_lockfile:"",PATH:"/Users/anto/localhost/vue-cal/node_modules/.bin:/Users/anto/Library/pnpm/global/5/.pnpm/pnpm@9.9.0/node_modules/pnpm/dist/node-gyp-bin:/Users/anto/Library/pnpm:/Users/anto/.nvm/versions/node/v22.1.0/bin:/Applications/MAMP/bin/php/php8.2.0/bin:/opt/homebrew/bin:/Applications/MAMP/bin/php/php8.0.8/bin:/Users/antoniandre/.yarn/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/anto/Library/pnpm:/Users/anto/.nvm/versions/node/v22.1.0/bin",npm_package_devDependencies_rollup:"^4.22.4",LaunchInstanceID:"C78DD324-A6C8-426F-8DFB-47D613B82529",npm_package_peerDependencies_vue:"^3.2.0",__CFBundleIdentifier:"com.microsoft.VSCode",npm_package_author:"Antoni Andre ",npm_package_keywords_4:"calendar events",PWD:"/Users/anto/localhost/vue-cal",npm_package_keywords_5:"vue",npm_package_devDependencies_terser:"^5.33.0",npm_command:"run-script",npm_package_keywords_6:"vuejs",npm_package_keywords_7:"vue 3",npm_lifecycle_event:"build",LANG:"en_US.UTF-8",npm_package_name:"vue-cal",npm_package_keywords_0:"vuecal",npm_package_devDependencies_simple_syntax_highlighter:"^3.0.10",npm_package_devDependencies_vue:"^3.5.8",npm_package_keywords_1:"vue cal",NODE_PATH:"/Users/anto/localhost/vue-cal/node_modules/.pnpm/vite@5.4.8_sass@1.79.3_terser@5.33.0/node_modules/vite/bin/node_modules:/Users/anto/localhost/vue-cal/node_modules/.pnpm/vite@5.4.8_sass@1.79.3_terser@5.33.0/node_modules/vite/node_modules:/Users/anto/localhost/vue-cal/node_modules/.pnpm/vite@5.4.8_sass@1.79.3_terser@5.33.0/node_modules:/Users/anto/localhost/vue-cal/node_modules/.pnpm/node_modules:/Users/anto/Library/pnpm/global/5/.pnpm/pnpm@9.9.0/node_modules/pnpm/bin/node_modules:/Users/anto/Library/pnpm/global/5/.pnpm/pnpm@9.9.0/node_modules/pnpm/node_modules:/Users/anto/Library/pnpm/global/5/.pnpm/pnpm@9.9.0/node_modules:/Users/anto/Library/pnpm/global/5/.pnpm/node_modules",npm_package_keywords_2:"vue calendar",npm_package_scripts_build:"vite build --base /vue-cal/",npm_package_devDependencies_sass:"^1.79.3",XPC_FLAGS:"0x0",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",npm_package_keywords_3:"full calendar",npm_package_devDependencies__babel_eslint_parser:"^7.25.1",npm_package_devDependencies_vue_router:"^4.4.5",npm_package_devDependencies_wave_ui:"^3.16.2",npm_package_main:"dist/vue-cal.cjs.js",npm_config_node_gyp:"/Users/anto/Library/pnpm/global/5/.pnpm/pnpm@9.9.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",XPC_SERVICE_NAME:"application.com.microsoft.VSCode.56529699.56529705",npm_package_version:"4.10.0",VSCODE_INJECTION:"1",npm_package_keywords_8:"vue 2",npm_package_devDependencies_autoprefixer:"^10.4.20",HOME:"/Users/anto",SHLVL:"3",npm_package_keywords_9:"ui",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",npm_package_scripts_serve:"vite preview docs --base /vue-cal/",OMF_PATH:"/Users/anto/.local/share/omf",LOGNAME:"anto",npm_package_exports___require:"./dist/vue-cal.cjs.js",npm_lifecycle_script:"vite build --base /vue-cal/",LC_CTYPE:"en_US.UTF-8",VSCODE_GIT_IPC_HANDLE:"/var/folders/r7/_rv6vdmj54v1_lr7bzk7f3wr0000gn/T/vscode-git-d95cd6036f.sock",XDG_DATA_DIRS:"/usr/local/share:/usr/share:/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/contrib/terminal/browser/media/fish_xdg_data",npm_package_exports___dist__:"./dist/*",NVM_BIN:"/Users/anto/.nvm/versions/node/v22.1.0/bin",npm_package_files_3:"LICENSE",npm_package_devDependencies__vue_compiler_sfc:"^3.5.8",npm_config_user_agent:"pnpm/9.9.0 npm/? node/v22.1.0 darwin arm64",VSCODE_GIT_ASKPASS_NODE:"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)",GIT_ASKPASS:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh",npm_package_files_2:"README.md",npm_package_files_1:"package.json",npm_package_files_0:"dist",npm_package_devDependencies__mdi_font:"^7.4.47",SECURITYSESSIONID:"186ab",COLORTERM:"truecolor",npm_node_execpath:"/Users/anto/.nvm/versions/node/v22.1.0/bin/node",NODE_ENV:"production",VITE_APP_VERSION:"4.10.0"};const j2={props:{offsetTop:{type:Number,default:0}},data:()=>({todayDate:new Date().getDate(),docs:[{href:"#installation",label:"Installation"},{href:"#how-to-use",label:"How to use"},{href:"#api",label:"API"},{href:"#date-prototypes",label:"Date prototypes"},{href:"#css-notes",label:"CSS notes"},{href:"#release-notes",label:"Release notes"}],examples:[{class:"heading",href:"#ex--basic",label:"BASIC & VIEW OPTIONS",icon:"material-icons done"},{href:"#ex--basic",label:"Basic, hide weekends"},{href:"#ex--small-cal",label:"Small calendar, no view selector, custom arrows"},{href:"#ex--disable-views",label:"Disable views, default view"},{href:"#ex--min-max-dates",label:"Min / max dates & single click to navigate"},{href:"#ex--disable-days",label:"Disable days"},{href:"#ex--calendar-themes",label:"Calendar themes"},{href:"#ex--hiding-particular-week-days",label:"Hide particular weekdays & show week numbers"},{class:"heading",href:"#ex--internationalization",label:"INTERNATIONALIZATION (I18N)",icon:"material-icons translate"},{href:"#ex--internationalization",label:"Internationalization"},{class:"heading",href:"#ex--timeline",label:"TIMELINE, BUSINESS HOURS & TODAY",icon:"material-icons access_time"},{href:"#ex--timeline",label:"Timeline"},{href:"#ex--special-hours",label:"Business Hours"},{href:"#ex--today-current-time",label:"Today's current time"},{href:"#ex--adding-a-today-button",label:"Adding a Today button"},{class:"heading",href:"#ex--timeless-events",label:"EVENTS",icon:"material-icons event"},{href:"#ex--timeless-events",label:"Timeless events"},{href:"#ex--events-with-time",label:"Events with time information"},{href:"#ex--open-dialog-on-event-click",label:"Open a dialog box on event click / dblclick"},{href:"#ex--events-indicators",label:"Events indicators"},{href:"#ex--events-on-month-view",label:"Display events on month view"},{href:"#ex--edit-and-delete-events",label:"Edit & delete events"},{href:"#ex--create-events",label:"Create events"},{href:"#ex--other-event-creation-methods",label:"Other event creation methods"},{href:"#ex--drag-and-drop",label:"Drag & drop"},{href:"#ex--external-events-drag-and-drop",label:"External events drag & drop"},{href:"#ex--multiple-day-events",label:"Multiple day events"},{href:"#ex--recurring-events",label:"Recurring events"},{href:"#ex--overlapping-events",label:"Overlapping events"},{href:"#ex--background-events",label:"Background events"},{href:"#ex--all-day-events",label:"All day events"},{href:"#ex--splitting-days",label:"Splitting days"},{class:"heading",href:"#ex--emitted-events",label:"COMMUNICATING WITH VUE CAL",icon:"material-icons swap_horiz"},{href:"#ex--emitted-events",label:"Vue Cal emitted events"},{href:"#ex--external-controls",label:"External controls & use of Vue Cal methods"},{href:"#ex--sync-two-calendars",label:"Sync two vue-cal instances"},{href:"#ex--modifying-events-from-outside",label:"Modifying events from outside"},{class:"heading",href:"#ex--timeline-tweaking",label:"ADVANCED CUSTOMIZATION",icon:"material-icons tune"},{href:"#ex--scroll-to-time",label:"Scroll the view to a particular time"},{href:"#ex--timeline-tweaking",label:"Timeline tweaking"},{href:"#ex--custom-events-count",label:"Custom events count"},{href:"#ex--custom-title-and-cells",label:"Custom title & cells"},{href:"#ex--custom-event-rendering",label:"Custom event rendering"},{href:"#ex--custom-day-split-labels",label:"Custom day split labels"}]}),computed:{version(){return H2.VITE_APP_VERSION.replace(/-(\w)(\w+)\.(\d+)/,(t,e,s,i)=>` ${e.toUpperCase()}${s} ${i}`)}},directives:{scrollTo:{mounted:(t,e)=>{t.addEventListener("click",()=>{(e.value&&document.querySelector(e.value)).scrollIntoView()})}}}},z2=Ge(j2,[["render",W2]]),F2={class:"page-container w-flex grey-dark1 wrap justify-center mt12 mb8"},Y2={class:"xs12 sm6 text-center smu-text-left copyright"},U2={class:"xs12 sm6 text-center smu-text-right made-with"},K2={class:"mb1"},q2={href:"https://github.com/antoniandre/vue-cal",target:"_blank"};function J2(t,e,s,i,o,n){const r=R("top-bar"),d=R("router-view"),u=R("w-button"),c=R("w-transition-twist"),m=R("w-icon"),g=R("w-tooltip"),v=en("scroll-to"),w=en("scroll");return st((f(),y("div",{class:E({ready:t.ready})},[h(r,{"offset-top":t.offsetTop},null,8,["offset-top"]),h(d),h(c,null,{default:p(()=>[st(h(u,{class:"go-top ma2",icon:"material-icons keyboard_arrow_up",fixed:"",bottom:"",right:"",round:"",xl:""},null,512),[[ol,!t.goTopHidden],[v,"#top"]])]),_:1}),l("footer",F2,[e[16]||(e[16]=l("div",{class:"w-divider fill-width mb8"},null,-1)),l("div",Y2,"Copyright © "+S(new Date().getFullYear())+" Antoni André, all rights reserved.",1),l("div",U2,[l("div",K2,[e[10]||(e[10]=a("This documentation is made with")),h(g,null,{activator:p(({on:_})=>[h(m,pt(_),{default:p(()=>e[0]||(e[0]=[a("fab fa-vuejs")])),_:2},1040)]),default:p(()=>[e[1]||(e[1]=a("Vue"))]),_:1}),h(g,null,{activator:p(({on:_})=>[h(m,pt(_),{default:p(()=>e[2]||(e[2]=[a("fab fa-html5")])),_:2},1040)]),default:p(()=>[e[3]||(e[3]=a("HTML5 & Pug"))]),_:1}),h(g,null,{activator:p(({on:_})=>[h(m,ee({class:"ml1"},pt(_)),{default:p(()=>e[4]||(e[4]=[a("fab fa-css3")])),_:2},1040)]),default:p(()=>[e[5]||(e[5]=a("CSS3"))]),_:1}),h(g,null,{activator:p(({on:_})=>[h(m,ee({class:"ml1"},pt(_)),{default:p(()=>e[6]||(e[6]=[a("fab fa-sass")])),_:2},1040)]),default:p(()=>[e[7]||(e[7]=a("SCSS"))]),_:1}),e[11]||(e[11]=l("span",{class:"ml2 mr1"},"&",-1)),h(g,null,{activator:p(({on:_})=>[h(m,ee({class:"heart"},pt(_)),{default:p(()=>e[8]||(e[8]=[a("material-icons favorite")])),_:2},1040)]),default:p(()=>[e[9]||(e[9]=a("Love"))]),_:1})]),e[14]||(e[14]=a("View project on ")),l("a",q2,[h(m,null,{default:p(()=>e[12]||(e[12]=[a("fab fa-github")])),_:1}),e[13]||(e[13]=a(" Github"))]),e[15]||(e[15]=a("."))])])],2)),[[w,n.onScroll]])}const G2={name:"app",components:{TopBar:z2},data:()=>({ready:!1,offsetTop:0,goTopHidden:!0}),created(){setTimeout(()=>this.ready=!0,500)},methods:{onScroll(){this.offsetTop=window.pageYOffset||document.documentElement.scrollTop,this.goTopHidden=this.offsetTop<200||document.documentElement.offsetHeight-document.documentElement.scrollTop-window.innerHeight<=100}},directives:{scroll:{mounted:(t,e)=>{const s=i=>{e.value(i,t)&&window.removeEventListener("scroll",s)};window.addEventListener("scroll",s)}},scrollTo:{mounted:(t,e)=>{t.addEventListener("click",()=>{(e.value&&document.querySelector(e.value)).scrollIntoView()})}}}},X2=Ge(G2,[["render",J2]]),_i=mr(X2);_i.use(Hv);_i.use(Yn,{iconsLigature:"material-icons",colors:{primary:"#42b983",secondary:"#2c3e50",lightgrey:"#eee"}});_i.mount("#app");export{Ci as V,Ge as _,h as a,l as b,y as c,f as o,R as r,S as t}; diff --git a/docs/assets/isolated-test-view-Bz6gUFhh.js b/docs/assets/isolated-test-view-CfCHNBQX.js similarity index 96% rename from docs/assets/isolated-test-view-Bz6gUFhh.js rename to docs/assets/isolated-test-view-CfCHNBQX.js index 92a41592..d420a2d3 100644 --- a/docs/assets/isolated-test-view-Bz6gUFhh.js +++ b/docs/assets/isolated-test-view-CfCHNBQX.js @@ -1 +1 @@ -import{c as r,a as n,b as c,t as d,r as m,o as i,_ as u,V as D}from"./index-DFZCaZsJ.js";const f={class:"test-view"};function g(e,o,b,w,v,s){const l=m("vue-cal");return i(),r("div",f,[n(l,{class:"ml2 mr1 vuecal--blue-theme",events:e.events,"editable-events":"","cell-contextmenu":"","today-button":"","time-from":7*60,"time-to":20*60,"special-hours":e.specialHours,selectedDate:e.selectedDate,"onUpdate:selectedDate":o[0]||(o[0]=a=>e.selectedDate=a),onCellContextmenu:s.log},null,8,["events","special-hours","selectedDate","onCellContextmenu"]),c("p",null,"selectedDate: "+d(e.selectedDate),1)])}const t=new Date,p={components:{VueCal:D},data:()=>({selectedDate:t,view:"week",specialHours:{1:{from:8*60,to:17*60,class:"doctor-1",label:"Doctor 1
Full day shift"},2:{from:9*60,to:18*60,class:"doctor-2",label:"Doctor 2
Full day shift"},3:[{from:8*60,to:12*60,class:"doctor-1",label:"Doctor 1
Morning shift"},{from:14*60,to:19*60,class:"doctor-3",label:"Doctor 3
Afternoon shift"}],4:{from:8*60,to:17*60,class:"doctor-1",label:"Doctor 1
Full day shift"},5:{from:9*60,to:18*60,class:"doctor-3",label:"Doctor 3
Full day shift"},6:{from:9*60,to:18*60,class:"doctor-2",label:"Doctor 2
Full day shift"},7:{from:7*60,to:20*60,class:"closed",label:"Closed"}},events:[{start:new Date(new Date(t).setHours(1,0,0)),end:new Date(new Date(t).setHours(4,0,0)),allDay:!0,title:"Event 1",split:2},{start:new Date(new Date(t).setHours(1,0,0)),end:new Date(new Date(t).setHours(4,0,0)),title:"Event 2",split:1},{start:new Date(new Date(t).setHours(3,0,0)),end:new Date(new Date(t).setHours(5,0,0)),title:"Event 3",split:2}],daySplits:[{label:"Tom",color:"green"},{label:"Kate",color:"pink"}]}),methods:{log(...e){console.log(...e)}}},y=u(p,[["render",g]]);export{y as default}; +import{c as r,a as n,b as c,t as d,r as m,o as i,_ as u,V as D}from"./index-DpVbjpXy.js";const f={class:"test-view"};function g(e,o,b,w,v,s){const l=m("vue-cal");return i(),r("div",f,[n(l,{class:"ml2 mr1 vuecal--blue-theme",events:e.events,"editable-events":"","cell-contextmenu":"","today-button":"","time-from":7*60,"time-to":20*60,"special-hours":e.specialHours,selectedDate:e.selectedDate,"onUpdate:selectedDate":o[0]||(o[0]=a=>e.selectedDate=a),onCellContextmenu:s.log},null,8,["events","special-hours","selectedDate","onCellContextmenu"]),c("p",null,"selectedDate: "+d(e.selectedDate),1)])}const t=new Date,p={components:{VueCal:D},data:()=>({selectedDate:t,view:"week",specialHours:{1:{from:8*60,to:17*60,class:"doctor-1",label:"Doctor 1
Full day shift"},2:{from:9*60,to:18*60,class:"doctor-2",label:"Doctor 2
Full day shift"},3:[{from:8*60,to:12*60,class:"doctor-1",label:"Doctor 1
Morning shift"},{from:14*60,to:19*60,class:"doctor-3",label:"Doctor 3
Afternoon shift"}],4:{from:8*60,to:17*60,class:"doctor-1",label:"Doctor 1
Full day shift"},5:{from:9*60,to:18*60,class:"doctor-3",label:"Doctor 3
Full day shift"},6:{from:9*60,to:18*60,class:"doctor-2",label:"Doctor 2
Full day shift"},7:{from:7*60,to:20*60,class:"closed",label:"Closed"}},events:[{start:new Date(new Date(t).setHours(1,0,0)),end:new Date(new Date(t).setHours(4,0,0)),allDay:!0,title:"Event 1",split:2},{start:new Date(new Date(t).setHours(1,0,0)),end:new Date(new Date(t).setHours(4,0,0)),title:"Event 2",split:1},{start:new Date(new Date(t).setHours(3,0,0)),end:new Date(new Date(t).setHours(5,0,0)),title:"Event 3",split:2}],daySplits:[{label:"Tom",color:"green"},{label:"Kate",color:"pink"}]}),methods:{log(...e){console.log(...e)}}},y=u(p,[["render",g]]);export{y as default}; diff --git a/docs/index.html b/docs/index.html index d3354927..1718287c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -20,7 +20,7 @@ Vue Cal - Documentation - +