diff --git a/docs/assets/ActionDispatcher-6e189b3d.js b/docs/assets/ActionDispatcher-6e189b3d.js new file mode 100644 index 00000000..af64fadc --- /dev/null +++ b/docs/assets/ActionDispatcher-6e189b3d.js @@ -0,0 +1 @@ +import{_ as c,M as a,r as l,o as n,c as r,a as i,b as p}from"./index-3a50609c.js";const d={components:{Multiselect:a},data(){return{actions:["alert","console.log","scrollTop"]}},methods:{dispatchAction(e){switch(e){case"alert":window.alert('You just dispatched "alert" action!');break;case"console.log":console.log('You just dispatched "console.log" action!');break;case"scrollTop":window.scrollTo(0,0);break}}}},u=p("label",{class:"typo__label"},"Open console to see logs.",-1);function _(e,h,m,f,o,t){const s=l("multiselect");return n(),r("div",null,[u,i(s,{placeholder:"Pick action",options:o.actions,searchable:!1,"reset-after":!0,onSelect:t.dispatchAction},null,8,["options","onSelect"])])}const k=c(d,[["render",_]]);export{k as default}; diff --git a/docs/assets/ActionDispatcher-c6a30a98.js b/docs/assets/ActionDispatcher-c6a30a98.js new file mode 100644 index 00000000..667349de --- /dev/null +++ b/docs/assets/ActionDispatcher-c6a30a98.js @@ -0,0 +1 @@ +import{_ as c,M as a,r as l,o as n,c as r,a as i,b as p}from"./index-8204e237.js";const d={components:{Multiselect:a},data(){return{actions:["alert","console.log","scrollTop"]}},methods:{dispatchAction(e){switch(e){case"alert":window.alert('You just dispatched "alert" action!');break;case"console.log":console.log('You just dispatched "console.log" action!');break;case"scrollTop":window.scrollTo(0,0);break}}}},u=p("label",{class:"typo__label"},"Open console to see logs.",-1);function _(e,h,m,f,o,t){const s=l("multiselect");return n(),r("div",null,[u,i(s,{placeholder:"Pick action",options:o.actions,searchable:!1,"reset-after":!0,onSelect:t.dispatchAction},null,8,["options","onSelect"])])}const k=c(d,[["render",_]]);export{k as default}; diff --git a/docs/assets/AjaxSearch-57ae35a4.js b/docs/assets/AjaxSearch-57ae35a4.js new file mode 100644 index 00000000..1a381cc3 --- /dev/null +++ b/docs/assets/AjaxSearch-57ae35a4.js @@ -0,0 +1 @@ +import{_ as h,M,r as C,o as r,c as l,a as g,w as m,b as a,t as u,d as A,e as p}from"./index-8204e237.js";const G=[{name:"Afghanistan",code:"AF"},{name:"Åland Islands",code:"AX"},{name:"Albania",code:"AL"},{name:"Algeria",code:"DZ"},{name:"American Samoa",code:"AS"},{name:"Andorra",code:"AD"},{name:"Angola",code:"AO"},{name:"Anguilla",code:"AI"},{name:"Antarctica",code:"AQ"},{name:"Antigua and Barbuda",code:"AG"},{name:"Argentina",code:"AR"},{name:"Armenia",code:"AM"},{name:"Aruba",code:"AW"},{name:"Australia",code:"AU"},{name:"Austria",code:"AT"},{name:"Azerbaijan",code:"AZ"},{name:"Bahamas",code:"BS"},{name:"Bahrain",code:"BH"},{name:"Bangladesh",code:"BD"},{name:"Barbados",code:"BB"},{name:"Belarus",code:"BY"},{name:"Belgium",code:"BE"},{name:"Belize",code:"BZ"},{name:"Benin",code:"BJ"},{name:"Bermuda",code:"BM"},{name:"Bhutan",code:"BT"},{name:"Bolivia",code:"BO"},{name:"Bosnia and Herzegovina",code:"BA"},{name:"Botswana",code:"BW"},{name:"Bouvet Island",code:"BV"},{name:"Brazil",code:"BR"},{name:"British Indian Ocean Territory",code:"IO"},{name:"Brunei Darussalam",code:"BN"},{name:"Bulgaria",code:"BG"},{name:"Burkina Faso",code:"BF"},{name:"Burundi",code:"BI"},{name:"Cambodia",code:"KH"},{name:"Cameroon",code:"CM"},{name:"Canada",code:"CA"},{name:"Cape Verde",code:"CV"},{name:"Cayman Islands",code:"KY"},{name:"Central African Republic",code:"CF"},{name:"Chad",code:"TD"},{name:"Chile",code:"CL"},{name:"China",code:"CN"},{name:"Christmas Island",code:"CX"},{name:"Cocos (Keeling) Islands",code:"CC"},{name:"Colombia",code:"CO"},{name:"Comoros",code:"KM"},{name:"Congo",code:"CG"},{name:"Congo, The Democratic Republic of the",code:"CD"},{name:"Cook Islands",code:"CK"},{name:"Costa Rica",code:"CR"},{name:"Cote D'Ivoire",code:"CI"},{name:"Croatia",code:"HR"},{name:"Cuba",code:"CU"},{name:"Cyprus",code:"CY"},{name:"Czech Republic",code:"CZ"},{name:"Denmark",code:"DK"},{name:"Djibouti",code:"DJ"},{name:"Dominica",code:"DM"},{name:"Dominican Republic",code:"DO"},{name:"Ecuador",code:"EC"},{name:"Egypt",code:"EG"},{name:"El Salvador",code:"SV"},{name:"Equatorial Guinea",code:"GQ"},{name:"Eritrea",code:"ER"},{name:"Estonia",code:"EE"},{name:"Ethiopia",code:"ET"},{name:"Falkland Islands (Malvinas)",code:"FK"},{name:"Faroe Islands",code:"FO"},{name:"Fiji",code:"FJ"},{name:"Finland",code:"FI"},{name:"France",code:"FR"},{name:"French Guiana",code:"GF"},{name:"French Polynesia",code:"PF"},{name:"French Southern Territories",code:"TF"},{name:"Gabon",code:"GA"},{name:"Gambia",code:"GM"},{name:"Georgia",code:"GE"},{name:"Germany",code:"DE"},{name:"Ghana",code:"GH"},{name:"Gibraltar",code:"GI"},{name:"Greece",code:"GR"},{name:"Greenland",code:"GL"},{name:"Grenada",code:"GD"},{name:"Guadeloupe",code:"GP"},{name:"Guam",code:"GU"},{name:"Guatemala",code:"GT"},{name:"Guernsey",code:"GG"},{name:"Guinea",code:"GN"},{name:"Guinea-Bissau",code:"GW"},{name:"Guyana",code:"GY"},{name:"Haiti",code:"HT"},{name:"Heard Island and Mcdonald Islands",code:"HM"},{name:"Holy See (Vatican City State)",code:"VA"},{name:"Honduras",code:"HN"},{name:"Hong Kong",code:"HK"},{name:"Hungary",code:"HU"},{name:"Iceland",code:"IS"},{name:"India",code:"IN"},{name:"Indonesia",code:"ID"},{name:"Iran, Islamic Republic Of",code:"IR"},{name:"Iraq",code:"IQ"},{name:"Ireland",code:"IE"},{name:"Isle of Man",code:"IM"},{name:"Israel",code:"IL"},{name:"Italy",code:"IT"},{name:"Jamaica",code:"JM"},{name:"Japan",code:"JP"},{name:"Jersey",code:"JE"},{name:"Jordan",code:"JO"},{name:"Kazakhstan",code:"KZ"},{name:"Kenya",code:"KE"},{name:"Kiribati",code:"KI"},{name:"Korea, Democratic People's Republic of",code:"KP"},{name:"Korea, Republic of",code:"KR"},{name:"Kuwait",code:"KW"},{name:"Kyrgyzstan",code:"KG"},{name:"Lao People's Democratic Republic",code:"LA"},{name:"Latvia",code:"LV"},{name:"Lebanon",code:"LB"},{name:"Lesotho",code:"LS"},{name:"Liberia",code:"LR"},{name:"Libyan Arab Jamahiriya",code:"LY"},{name:"Liechtenstein",code:"LI"},{name:"Lithuania",code:"LT"},{name:"Luxembourg",code:"LU"},{name:"Macao",code:"MO"},{name:"Macedonia, The Former Yugoslav Republic of",code:"MK"},{name:"Madagascar",code:"MG"},{name:"Malawi",code:"MW"},{name:"Malaysia",code:"MY"},{name:"Maldives",code:"MV"},{name:"Mali",code:"ML"},{name:"Malta",code:"MT"},{name:"Marshall Islands",code:"MH"},{name:"Martinique",code:"MQ"},{name:"Mauritania",code:"MR"},{name:"Mauritius",code:"MU"},{name:"Mayotte",code:"YT"},{name:"Mexico",code:"MX"},{name:"Micronesia, Federated States of",code:"FM"},{name:"Moldova, Republic of",code:"MD"},{name:"Monaco",code:"MC"},{name:"Mongolia",code:"MN"},{name:"Montserrat",code:"MS"},{name:"Morocco",code:"MA"},{name:"Mozambique",code:"MZ"},{name:"Myanmar",code:"MM"},{name:"Namibia",code:"NA"},{name:"Nauru",code:"NR"},{name:"Nepal",code:"NP"},{name:"Netherlands",code:"NL"},{name:"Netherlands Antilles",code:"AN"},{name:"New Caledonia",code:"NC"},{name:"New Zealand",code:"NZ"},{name:"Nicaragua",code:"NI"},{name:"Niger",code:"NE"},{name:"Nigeria",code:"NG"},{name:"Niue",code:"NU"},{name:"Norfolk Island",code:"NF"},{name:"Northern Mariana Islands",code:"MP"},{name:"Norway",code:"NO"},{name:"Oman",code:"OM"},{name:"Pakistan",code:"PK"},{name:"Palau",code:"PW"},{name:"Palestinian Territory, Occupied",code:"PS"},{name:"Panama",code:"PA"},{name:"Papua New Guinea",code:"PG"},{name:"Paraguay",code:"PY"},{name:"Peru",code:"PE"},{name:"Philippines",code:"PH"},{name:"Pitcairn",code:"PN"},{name:"Poland",code:"PL"},{name:"Portugal",code:"PT"},{name:"Puerto Rico",code:"PR"},{name:"Qatar",code:"QA"},{name:"Reunion",code:"RE"},{name:"Romania",code:"RO"},{name:"Russian Federation",code:"RU"},{name:"RWANDA",code:"RW"},{name:"Saint Helena",code:"SH"},{name:"Saint Kitts and Nevis",code:"KN"},{name:"Saint Lucia",code:"LC"},{name:"Saint Pierre and Miquelon",code:"PM"},{name:"Saint Vincent and the Grenadines",code:"VC"},{name:"Samoa",code:"WS"},{name:"San Marino",code:"SM"},{name:"Sao Tome and Principe",code:"ST"},{name:"Saudi Arabia",code:"SA"},{name:"Senegal",code:"SN"},{name:"Serbia and Montenegro",code:"CS"},{name:"Seychelles",code:"SC"},{name:"Sierra Leone",code:"SL"},{name:"Singapore",code:"SG"},{name:"Slovakia",code:"SK"},{name:"Slovenia",code:"SI"},{name:"Solomon Islands",code:"SB"},{name:"Somalia",code:"SO"},{name:"South Africa",code:"ZA"},{name:"South Georgia and the South Sandwich Islands",code:"GS"},{name:"Spain",code:"ES"},{name:"Sri Lanka",code:"LK"},{name:"Sudan",code:"SD"},{name:"Suriname",code:"SR"},{name:"Svalbard and Jan Mayen",code:"SJ"},{name:"Swaziland",code:"SZ"},{name:"Sweden",code:"SE"},{name:"Switzerland",code:"CH"},{name:"Syrian Arab Republic",code:"SY"},{name:"Taiwan, Province of China",code:"TW"},{name:"Tajikistan",code:"TJ"},{name:"Tanzania, United Republic of",code:"TZ"},{name:"Thailand",code:"TH"},{name:"Timor-Leste",code:"TL"},{name:"Togo",code:"TG"},{name:"Tokelau",code:"TK"},{name:"Tonga",code:"TO"},{name:"Trinidad and Tobago",code:"TT"},{name:"Tunisia",code:"TN"},{name:"Turkey",code:"TR"},{name:"Turkmenistan",code:"TM"},{name:"Turks and Caicos Islands",code:"TC"},{name:"Tuvalu",code:"TV"},{name:"Uganda",code:"UG"},{name:"Ukraine",code:"UA"},{name:"United Arab Emirates",code:"AE"},{name:"United Kingdom",code:"GB"},{name:"United States",code:"US"},{name:"United States Minor Outlying Islands",code:"UM"},{name:"Uruguay",code:"UY"},{name:"Uzbekistan",code:"UZ"},{name:"Vanuatu",code:"VU"},{name:"Venezuela",code:"VE"},{name:"Viet Nam",code:"VN"},{name:"Virgin Islands, British",code:"VG"},{name:"Virgin Islands, U.S.",code:"VI"},{name:"Wallis and Futuna",code:"WF"},{name:"Western Sahara",code:"EH"},{name:"Yemen",code:"YE"},{name:"Zambia",code:"ZM"},{name:"Zimbabwe",code:"ZW"}];function T(n){return new Promise((o,S)=>{setTimeout(()=>{const i=G.filter((e,d,t)=>e.name.toLowerCase().includes(n.toLowerCase()));o(i)},1e3)})}const I={components:{Multiselect:M},data(){return{selectedCountries:[],countries:[],isLoading:!1}},methods:{limitText(n){return`and ${n} other countries`},asyncFind(n){this.isLoading=!0,T(n).then(o=>{this.countries=o,this.isLoading=!1})},clearAll(){this.selectedCountries=[]}}},b=a("label",{class:"typo__label",for:"ajax"},"Async multiselect",-1),B={class:"custom__tag"},N=["onClick"],y=["onMousedown"],L=a("span",null,"Oops! No elements found. Consider changing the search query.",-1),P={class:"language-json"};function R(n,o,S,i,e,d){const t=C("multiselect");return r(),l("div",null,[b,g(t,{modelValue:e.selectedCountries,"onUpdate:modelValue":o[0]||(o[0]=c=>e.selectedCountries=c),id:"ajax",label:"name","track-by":"code",placeholder:"Type to search","open-direction":"bottom",options:e.countries,multiple:!0,searchable:!0,loading:e.isLoading,"internal-search":!1,"clear-on-select":!1,"close-on-select":!1,"options-limit":300,limit:3,"limit-text":d.limitText,"max-height":600,"show-no-results":!1,"hide-selected":!0,onSearchChange:d.asyncFind},{tag:m(({option:c,remove:s})=>[a("span",B,[a("span",null,u(c.name),1),a("span",{class:"custom__remove",onClick:_=>s(c)},"❌",8,N)])]),clear:m(c=>[e.selectedCountries.length?(r(),l("div",{key:0,class:"multiselect__clear",onMousedown:A(s=>d.clearAll(c.search),["prevent","stop"])},null,40,y)):p("",!0)]),noResult:m(()=>[L]),_:1},8,["modelValue","options","loading","limit-text","onSearchChange"]),a("pre",P,[a("code",null,u(e.selectedCountries),1)])])}const K=h(I,[["render",R]]);export{K as default}; diff --git a/docs/assets/AjaxSearch-ecd8b93e.js b/docs/assets/AjaxSearch-ecd8b93e.js new file mode 100644 index 00000000..04c89340 --- /dev/null +++ b/docs/assets/AjaxSearch-ecd8b93e.js @@ -0,0 +1 @@ +import{_ as h,M,r as C,o as r,c as l,a as g,w as m,b as a,t as u,d as A,e as p}from"./index-3a50609c.js";const G=[{name:"Afghanistan",code:"AF"},{name:"Åland Islands",code:"AX"},{name:"Albania",code:"AL"},{name:"Algeria",code:"DZ"},{name:"American Samoa",code:"AS"},{name:"Andorra",code:"AD"},{name:"Angola",code:"AO"},{name:"Anguilla",code:"AI"},{name:"Antarctica",code:"AQ"},{name:"Antigua and Barbuda",code:"AG"},{name:"Argentina",code:"AR"},{name:"Armenia",code:"AM"},{name:"Aruba",code:"AW"},{name:"Australia",code:"AU"},{name:"Austria",code:"AT"},{name:"Azerbaijan",code:"AZ"},{name:"Bahamas",code:"BS"},{name:"Bahrain",code:"BH"},{name:"Bangladesh",code:"BD"},{name:"Barbados",code:"BB"},{name:"Belarus",code:"BY"},{name:"Belgium",code:"BE"},{name:"Belize",code:"BZ"},{name:"Benin",code:"BJ"},{name:"Bermuda",code:"BM"},{name:"Bhutan",code:"BT"},{name:"Bolivia",code:"BO"},{name:"Bosnia and Herzegovina",code:"BA"},{name:"Botswana",code:"BW"},{name:"Bouvet Island",code:"BV"},{name:"Brazil",code:"BR"},{name:"British Indian Ocean Territory",code:"IO"},{name:"Brunei Darussalam",code:"BN"},{name:"Bulgaria",code:"BG"},{name:"Burkina Faso",code:"BF"},{name:"Burundi",code:"BI"},{name:"Cambodia",code:"KH"},{name:"Cameroon",code:"CM"},{name:"Canada",code:"CA"},{name:"Cape Verde",code:"CV"},{name:"Cayman Islands",code:"KY"},{name:"Central African Republic",code:"CF"},{name:"Chad",code:"TD"},{name:"Chile",code:"CL"},{name:"China",code:"CN"},{name:"Christmas Island",code:"CX"},{name:"Cocos (Keeling) Islands",code:"CC"},{name:"Colombia",code:"CO"},{name:"Comoros",code:"KM"},{name:"Congo",code:"CG"},{name:"Congo, The Democratic Republic of the",code:"CD"},{name:"Cook Islands",code:"CK"},{name:"Costa Rica",code:"CR"},{name:"Cote D'Ivoire",code:"CI"},{name:"Croatia",code:"HR"},{name:"Cuba",code:"CU"},{name:"Cyprus",code:"CY"},{name:"Czech Republic",code:"CZ"},{name:"Denmark",code:"DK"},{name:"Djibouti",code:"DJ"},{name:"Dominica",code:"DM"},{name:"Dominican Republic",code:"DO"},{name:"Ecuador",code:"EC"},{name:"Egypt",code:"EG"},{name:"El Salvador",code:"SV"},{name:"Equatorial Guinea",code:"GQ"},{name:"Eritrea",code:"ER"},{name:"Estonia",code:"EE"},{name:"Ethiopia",code:"ET"},{name:"Falkland Islands (Malvinas)",code:"FK"},{name:"Faroe Islands",code:"FO"},{name:"Fiji",code:"FJ"},{name:"Finland",code:"FI"},{name:"France",code:"FR"},{name:"French Guiana",code:"GF"},{name:"French Polynesia",code:"PF"},{name:"French Southern Territories",code:"TF"},{name:"Gabon",code:"GA"},{name:"Gambia",code:"GM"},{name:"Georgia",code:"GE"},{name:"Germany",code:"DE"},{name:"Ghana",code:"GH"},{name:"Gibraltar",code:"GI"},{name:"Greece",code:"GR"},{name:"Greenland",code:"GL"},{name:"Grenada",code:"GD"},{name:"Guadeloupe",code:"GP"},{name:"Guam",code:"GU"},{name:"Guatemala",code:"GT"},{name:"Guernsey",code:"GG"},{name:"Guinea",code:"GN"},{name:"Guinea-Bissau",code:"GW"},{name:"Guyana",code:"GY"},{name:"Haiti",code:"HT"},{name:"Heard Island and Mcdonald Islands",code:"HM"},{name:"Holy See (Vatican City State)",code:"VA"},{name:"Honduras",code:"HN"},{name:"Hong Kong",code:"HK"},{name:"Hungary",code:"HU"},{name:"Iceland",code:"IS"},{name:"India",code:"IN"},{name:"Indonesia",code:"ID"},{name:"Iran, Islamic Republic Of",code:"IR"},{name:"Iraq",code:"IQ"},{name:"Ireland",code:"IE"},{name:"Isle of Man",code:"IM"},{name:"Israel",code:"IL"},{name:"Italy",code:"IT"},{name:"Jamaica",code:"JM"},{name:"Japan",code:"JP"},{name:"Jersey",code:"JE"},{name:"Jordan",code:"JO"},{name:"Kazakhstan",code:"KZ"},{name:"Kenya",code:"KE"},{name:"Kiribati",code:"KI"},{name:"Korea, Democratic People's Republic of",code:"KP"},{name:"Korea, Republic of",code:"KR"},{name:"Kuwait",code:"KW"},{name:"Kyrgyzstan",code:"KG"},{name:"Lao People's Democratic Republic",code:"LA"},{name:"Latvia",code:"LV"},{name:"Lebanon",code:"LB"},{name:"Lesotho",code:"LS"},{name:"Liberia",code:"LR"},{name:"Libyan Arab Jamahiriya",code:"LY"},{name:"Liechtenstein",code:"LI"},{name:"Lithuania",code:"LT"},{name:"Luxembourg",code:"LU"},{name:"Macao",code:"MO"},{name:"Macedonia, The Former Yugoslav Republic of",code:"MK"},{name:"Madagascar",code:"MG"},{name:"Malawi",code:"MW"},{name:"Malaysia",code:"MY"},{name:"Maldives",code:"MV"},{name:"Mali",code:"ML"},{name:"Malta",code:"MT"},{name:"Marshall Islands",code:"MH"},{name:"Martinique",code:"MQ"},{name:"Mauritania",code:"MR"},{name:"Mauritius",code:"MU"},{name:"Mayotte",code:"YT"},{name:"Mexico",code:"MX"},{name:"Micronesia, Federated States of",code:"FM"},{name:"Moldova, Republic of",code:"MD"},{name:"Monaco",code:"MC"},{name:"Mongolia",code:"MN"},{name:"Montserrat",code:"MS"},{name:"Morocco",code:"MA"},{name:"Mozambique",code:"MZ"},{name:"Myanmar",code:"MM"},{name:"Namibia",code:"NA"},{name:"Nauru",code:"NR"},{name:"Nepal",code:"NP"},{name:"Netherlands",code:"NL"},{name:"Netherlands Antilles",code:"AN"},{name:"New Caledonia",code:"NC"},{name:"New Zealand",code:"NZ"},{name:"Nicaragua",code:"NI"},{name:"Niger",code:"NE"},{name:"Nigeria",code:"NG"},{name:"Niue",code:"NU"},{name:"Norfolk Island",code:"NF"},{name:"Northern Mariana Islands",code:"MP"},{name:"Norway",code:"NO"},{name:"Oman",code:"OM"},{name:"Pakistan",code:"PK"},{name:"Palau",code:"PW"},{name:"Palestinian Territory, Occupied",code:"PS"},{name:"Panama",code:"PA"},{name:"Papua New Guinea",code:"PG"},{name:"Paraguay",code:"PY"},{name:"Peru",code:"PE"},{name:"Philippines",code:"PH"},{name:"Pitcairn",code:"PN"},{name:"Poland",code:"PL"},{name:"Portugal",code:"PT"},{name:"Puerto Rico",code:"PR"},{name:"Qatar",code:"QA"},{name:"Reunion",code:"RE"},{name:"Romania",code:"RO"},{name:"Russian Federation",code:"RU"},{name:"RWANDA",code:"RW"},{name:"Saint Helena",code:"SH"},{name:"Saint Kitts and Nevis",code:"KN"},{name:"Saint Lucia",code:"LC"},{name:"Saint Pierre and Miquelon",code:"PM"},{name:"Saint Vincent and the Grenadines",code:"VC"},{name:"Samoa",code:"WS"},{name:"San Marino",code:"SM"},{name:"Sao Tome and Principe",code:"ST"},{name:"Saudi Arabia",code:"SA"},{name:"Senegal",code:"SN"},{name:"Serbia and Montenegro",code:"CS"},{name:"Seychelles",code:"SC"},{name:"Sierra Leone",code:"SL"},{name:"Singapore",code:"SG"},{name:"Slovakia",code:"SK"},{name:"Slovenia",code:"SI"},{name:"Solomon Islands",code:"SB"},{name:"Somalia",code:"SO"},{name:"South Africa",code:"ZA"},{name:"South Georgia and the South Sandwich Islands",code:"GS"},{name:"Spain",code:"ES"},{name:"Sri Lanka",code:"LK"},{name:"Sudan",code:"SD"},{name:"Suriname",code:"SR"},{name:"Svalbard and Jan Mayen",code:"SJ"},{name:"Swaziland",code:"SZ"},{name:"Sweden",code:"SE"},{name:"Switzerland",code:"CH"},{name:"Syrian Arab Republic",code:"SY"},{name:"Taiwan, Province of China",code:"TW"},{name:"Tajikistan",code:"TJ"},{name:"Tanzania, United Republic of",code:"TZ"},{name:"Thailand",code:"TH"},{name:"Timor-Leste",code:"TL"},{name:"Togo",code:"TG"},{name:"Tokelau",code:"TK"},{name:"Tonga",code:"TO"},{name:"Trinidad and Tobago",code:"TT"},{name:"Tunisia",code:"TN"},{name:"Turkey",code:"TR"},{name:"Turkmenistan",code:"TM"},{name:"Turks and Caicos Islands",code:"TC"},{name:"Tuvalu",code:"TV"},{name:"Uganda",code:"UG"},{name:"Ukraine",code:"UA"},{name:"United Arab Emirates",code:"AE"},{name:"United Kingdom",code:"GB"},{name:"United States",code:"US"},{name:"United States Minor Outlying Islands",code:"UM"},{name:"Uruguay",code:"UY"},{name:"Uzbekistan",code:"UZ"},{name:"Vanuatu",code:"VU"},{name:"Venezuela",code:"VE"},{name:"Viet Nam",code:"VN"},{name:"Virgin Islands, British",code:"VG"},{name:"Virgin Islands, U.S.",code:"VI"},{name:"Wallis and Futuna",code:"WF"},{name:"Western Sahara",code:"EH"},{name:"Yemen",code:"YE"},{name:"Zambia",code:"ZM"},{name:"Zimbabwe",code:"ZW"}];function T(n){return new Promise((o,S)=>{setTimeout(()=>{const i=G.filter((e,d,t)=>e.name.toLowerCase().includes(n.toLowerCase()));o(i)},1e3)})}const I={components:{Multiselect:M},data(){return{selectedCountries:[],countries:[],isLoading:!1}},methods:{limitText(n){return`and ${n} other countries`},asyncFind(n){this.isLoading=!0,T(n).then(o=>{this.countries=o,this.isLoading=!1})},clearAll(){this.selectedCountries=[]}}},b=a("label",{class:"typo__label",for:"ajax"},"Async multiselect",-1),B={class:"custom__tag"},N=["onClick"],y=["onMousedown"],L=a("span",null,"Oops! No elements found. Consider changing the search query.",-1),P={class:"language-json"};function R(n,o,S,i,e,d){const t=C("multiselect");return r(),l("div",null,[b,g(t,{modelValue:e.selectedCountries,"onUpdate:modelValue":o[0]||(o[0]=c=>e.selectedCountries=c),id:"ajax",label:"name","track-by":"code",placeholder:"Type to search","open-direction":"bottom",options:e.countries,multiple:!0,searchable:!0,loading:e.isLoading,"internal-search":!1,"clear-on-select":!1,"close-on-select":!1,"options-limit":300,limit:3,"limit-text":d.limitText,"max-height":600,"show-no-results":!1,"hide-selected":!0,onSearchChange:d.asyncFind},{tag:m(({option:c,remove:s})=>[a("span",B,[a("span",null,u(c.name),1),a("span",{class:"custom__remove",onClick:_=>s(c)},"❌",8,N)])]),clear:m(c=>[e.selectedCountries.length?(r(),l("div",{key:0,class:"multiselect__clear",onMousedown:A(s=>d.clearAll(c.search),["prevent","stop"])},null,40,y)):p("",!0)]),noResult:m(()=>[L]),_:1},8,["modelValue","options","loading","limit-text","onSearchChange"]),a("pre",P,[a("code",null,u(e.selectedCountries),1)])])}const K=h(I,[["render",R]]);export{K as default}; diff --git a/docs/assets/CustomConfiguration-afeca2d2.js b/docs/assets/CustomConfiguration-afeca2d2.js new file mode 100644 index 00000000..e9e376f4 --- /dev/null +++ b/docs/assets/CustomConfiguration-afeca2d2.js @@ -0,0 +1 @@ +import{_ as o,M as i,r as n,o as c,c as u,a as r,f as d,v as m,b as t,n as h}from"./index-3a50609c.js";const p={components:{Multiselect:i},data(){return{isDisabled:!1,isTouched:!1,value:[],options:["Select option","Disable me!","Reset me!","mulitple","label","searchable"]}},computed:{isInvalid(){return this.isTouched&&this.value.length===0}},methods:{onChange(e){this.value=e,e.indexOf("Reset me!")!==-1&&(this.value=[])},onSelect(e){e==="Disable me!"&&(this.isDisabled=!0)},onTouch(){this.isTouched=!0}}},_=t("label",{class:"typo__label"},"Customized multiselect",-1),b={class:"typo__label form__label"};function v(e,f,C,k,s,l){const a=n("multiselect");return c(),u("div",{class:h({invalid:l.isInvalid})},[_,r(a,{placeholder:"Pick at least one","select-label":"Enter doesn’t work here!","model-value":s.value,options:s.options,multiple:!0,searchable:!0,"allow-empty":!1,"prevent-autofocus":!0,"hide-selected":!0,"max-height":150,max:3,disabled:s.isDisabled,"block-keys":["Tab","Enter"],"onUpdate:modelValue":l.onChange,onClose:l.onTouch,onSelect:l.onSelect},null,8,["model-value","options","disabled","onUpdate:modelValue","onClose","onSelect"]),d(t("label",b,"Must have at least one value",512),[[m,l.isInvalid]])],2)}const D=o(p,[["render",v]]);export{D as default}; diff --git a/docs/assets/CustomConfiguration-dc1e1243.js b/docs/assets/CustomConfiguration-dc1e1243.js new file mode 100644 index 00000000..1b55f72b --- /dev/null +++ b/docs/assets/CustomConfiguration-dc1e1243.js @@ -0,0 +1 @@ +import{_ as o,M as i,r as n,o as c,c as u,a as r,f as d,v as m,b as t,n as h}from"./index-8204e237.js";const p={components:{Multiselect:i},data(){return{isDisabled:!1,isTouched:!1,value:[],options:["Select option","Disable me!","Reset me!","mulitple","label","searchable"]}},computed:{isInvalid(){return this.isTouched&&this.value.length===0}},methods:{onChange(e){this.value=e,e.indexOf("Reset me!")!==-1&&(this.value=[])},onSelect(e){e==="Disable me!"&&(this.isDisabled=!0)},onTouch(){this.isTouched=!0}}},_=t("label",{class:"typo__label"},"Customized multiselect",-1),b={class:"typo__label form__label"};function v(e,f,C,k,s,l){const a=n("multiselect");return c(),u("div",{class:h({invalid:l.isInvalid})},[_,r(a,{placeholder:"Pick at least one","select-label":"Enter doesn’t work here!","model-value":s.value,options:s.options,multiple:!0,searchable:!0,"allow-empty":!1,"prevent-autofocus":!0,"hide-selected":!0,"max-height":150,max:3,disabled:s.isDisabled,"block-keys":["Tab","Enter"],"onUpdate:modelValue":l.onChange,onClose:l.onTouch,onSelect:l.onSelect},null,8,["model-value","options","disabled","onUpdate:modelValue","onClose","onSelect"]),d(t("label",b,"Must have at least one value",512),[[m,l.isInvalid]])],2)}const D=o(p,[["render",v]]);export{D as default}; diff --git a/docs/assets/CustomOptions-6450c41a.js b/docs/assets/CustomOptions-6450c41a.js new file mode 100644 index 00000000..e4bbdb2e --- /dev/null +++ b/docs/assets/CustomOptions-6450c41a.js @@ -0,0 +1 @@ +import{_ as p,M as _,r,o as d,c as m,a as u,w as i,b as e,t as l}from"./index-3a50609c.js";const g={components:{Multiselect:_},data(){return{value:{title:"Explorer",desc:"Discovering new species!",img:"assets/posters/creatures.png"},options:[{title:"Space Pirate",desc:"More space battles!",img:"assets/posters/fleet.png"},{title:"Merchant",desc:"PROFIT!",img:"assets/posters/trading_post.png"},{title:"Explorer",desc:"Discovering new species!",img:"assets/posters/creatures.png"},{title:"Miner",desc:"We need to go deeper!",img:"assets/posters/resource_lab.png"}]}},methods:{customLabel({title:n,desc:t}){return`${n} – ${t}`}}},h=e("label",{class:"typo__label"},"Custom option template",-1),b=["src"],v={class:"option__desc"},f={class:"option__title"},y=["src"],M={class:"option__desc"},x={class:"option__title"},k={class:"option__small"},w={class:"language-json"};function C(n,t,N,S,o,a){const c=r("multiselect");return d(),m("div",null,[h,u(c,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=s=>o.value=s),placeholder:"Fav No Man’s Sky path",label:"title","track-by":"title",options:o.options,"option-height":104,"custom-label":a.customLabel,"show-labels":!1},{singleLabel:i(s=>[e("img",{class:"option__image",src:s.option.img,alt:"No Man’s Sky"},null,8,b),e("span",v,[e("span",f,l(s.option.title),1)])]),option:i(s=>[e("img",{class:"option__image",src:s.option.img,alt:"No Man’s Sky"},null,8,y),e("div",M,[e("span",x,l(s.option.title),1),e("span",k,l(s.option.desc),1)])]),_:1},8,["modelValue","options","custom-label"]),e("pre",w,[e("code",null,l(o.value),1)])])}const B=p(g,[["render",C]]);export{B as default}; diff --git a/docs/assets/CustomOptions-8f47a91d.js b/docs/assets/CustomOptions-8f47a91d.js new file mode 100644 index 00000000..42cc39e6 --- /dev/null +++ b/docs/assets/CustomOptions-8f47a91d.js @@ -0,0 +1 @@ +import{_ as p,M as _,r,o as d,c as m,a as u,w as i,b as e,t as l}from"./index-8204e237.js";const g={components:{Multiselect:_},data(){return{value:{title:"Explorer",desc:"Discovering new species!",img:"assets/posters/creatures.png"},options:[{title:"Space Pirate",desc:"More space battles!",img:"assets/posters/fleet.png"},{title:"Merchant",desc:"PROFIT!",img:"assets/posters/trading_post.png"},{title:"Explorer",desc:"Discovering new species!",img:"assets/posters/creatures.png"},{title:"Miner",desc:"We need to go deeper!",img:"assets/posters/resource_lab.png"}]}},methods:{customLabel({title:n,desc:t}){return`${n} – ${t}`}}},h=e("label",{class:"typo__label"},"Custom option template",-1),b=["src"],v={class:"option__desc"},f={class:"option__title"},y=["src"],M={class:"option__desc"},x={class:"option__title"},k={class:"option__small"},w={class:"language-json"};function C(n,t,N,S,o,a){const c=r("multiselect");return d(),m("div",null,[h,u(c,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=s=>o.value=s),placeholder:"Fav No Man’s Sky path",label:"title","track-by":"title",options:o.options,"option-height":104,"custom-label":a.customLabel,"show-labels":!1},{singleLabel:i(s=>[e("img",{class:"option__image",src:s.option.img,alt:"No Man’s Sky"},null,8,b),e("span",v,[e("span",f,l(s.option.title),1)])]),option:i(s=>[e("img",{class:"option__image",src:s.option.img,alt:"No Man’s Sky"},null,8,y),e("div",M,[e("span",x,l(s.option.title),1),e("span",k,l(s.option.desc),1)])]),_:1},8,["modelValue","options","custom-label"]),e("pre",w,[e("code",null,l(o.value),1)])])}const B=p(g,[["render",C]]);export{B as default}; diff --git a/docs/assets/MultiSelect-9328907a.js b/docs/assets/MultiSelect-9328907a.js new file mode 100644 index 00000000..03e25851 --- /dev/null +++ b/docs/assets/MultiSelect-9328907a.js @@ -0,0 +1 @@ +import{_ as i,M as u,r as p,o as s,c as n,a as m,w as _,f as g,v as d,t as o,e as v,b as a}from"./index-8204e237.js";const f={components:{Multiselect:u},data(){return{value:[],options:[{name:"Vue.js",language:"JavaScript"},{name:"Adonis",language:"JavaScript"},{name:"Rails",language:"Ruby"},{name:"Sinatra",language:"Ruby"},{name:"Laravel",language:"PHP"},{name:"Phoenix",language:"Elixir"}]}}},h=a("label",{class:"typo__label"},"Simple select / dropdown",-1),y={class:"language-json"};function S(b,l,x,V,e,k){const c=p("multiselect");return s(),n("div",null,[h,m(c,{modelValue:e.value,"onUpdate:modelValue":l[0]||(l[0]=t=>e.value=t),options:e.options,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:"Pick some",label:"name","track-by":"name","preselect-first":!0},{selection:_(({values:t,search:w,isOpen:r})=>[t.length?g((s(),n("span",{key:0,class:"multiselect__single"},o(t.length)+" options selected",513)),[[d,!r]]):v("",!0)]),_:1},8,["modelValue","options"]),a("pre",y,[a("code",null,o(e.value),1)])])}const P=i(f,[["render",S]]);export{P as default}; diff --git a/docs/assets/MultiSelect-def5ba3e.js b/docs/assets/MultiSelect-def5ba3e.js new file mode 100644 index 00000000..0c703720 --- /dev/null +++ b/docs/assets/MultiSelect-def5ba3e.js @@ -0,0 +1 @@ +import{_ as i,M as u,r as p,o as s,c as n,a as m,w as _,f as g,v as d,t as o,e as v,b as a}from"./index-3a50609c.js";const f={components:{Multiselect:u},data(){return{value:[],options:[{name:"Vue.js",language:"JavaScript"},{name:"Adonis",language:"JavaScript"},{name:"Rails",language:"Ruby"},{name:"Sinatra",language:"Ruby"},{name:"Laravel",language:"PHP"},{name:"Phoenix",language:"Elixir"}]}}},h=a("label",{class:"typo__label"},"Simple select / dropdown",-1),y={class:"language-json"};function S(b,l,x,V,e,k){const c=p("multiselect");return s(),n("div",null,[h,m(c,{modelValue:e.value,"onUpdate:modelValue":l[0]||(l[0]=t=>e.value=t),options:e.options,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:"Pick some",label:"name","track-by":"name","preselect-first":!0},{selection:_(({values:t,search:w,isOpen:r})=>[t.length?g((s(),n("span",{key:0,class:"multiselect__single"},o(t.length)+" options selected",513)),[[d,!r]]):v("",!0)]),_:1},8,["modelValue","options"]),a("pre",y,[a("code",null,o(e.value),1)])])}const P=i(f,[["render",S]]);export{P as default}; diff --git a/docs/assets/OptionGroups-babed101.js b/docs/assets/OptionGroups-babed101.js new file mode 100644 index 00000000..f42bdc15 --- /dev/null +++ b/docs/assets/OptionGroups-babed101.js @@ -0,0 +1 @@ +import{_ as s,M as l,r,o as c,c as u,a as i,w as p,b as a,t as d}from"./index-8204e237.js";const g={components:{Multiselect:l},data(){return{options:[{language:"Javascript",libs:[{name:"Vue.js",category:"Front-end"},{name:"Adonis",category:"Backend"}]},{language:"Ruby",libs:[{name:"Rails",category:"Backend"},{name:"Sinatra",category:"Backend"}]},{language:"Other",libs:[{name:"Laravel",category:"Backend"},{name:"Phoenix",category:"Backend"}]}],value:[]}}},m=a("label",{class:"typo__label"},"Groups",-1),_=a("span",{slot:"noResult"},"Oops! No elements found. Consider changing the search query.",-1),y={class:"language-json"};function b(h,o,v,f,e,k){const t=r("multiselect");return c(),u("div",null,[m,i(t,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=n=>e.value=n),options:e.options,multiple:!0,"group-values":"libs","group-label":"language","group-select":!0,placeholder:"Type to search","track-by":"name",label:"name"},{default:p(()=>[_]),_:1},8,["modelValue","options"]),a("pre",y,[a("code",null,d(e.value),1)])])}const V=s(g,[["render",b]]);export{V as default}; diff --git a/docs/assets/OptionGroups-bac33757.js b/docs/assets/OptionGroups-bac33757.js new file mode 100644 index 00000000..ce78d10e --- /dev/null +++ b/docs/assets/OptionGroups-bac33757.js @@ -0,0 +1 @@ +import{_ as s,M as l,r,o as c,c as u,a as i,w as p,b as a,t as d}from"./index-3a50609c.js";const g={components:{Multiselect:l},data(){return{options:[{language:"Javascript",libs:[{name:"Vue.js",category:"Front-end"},{name:"Adonis",category:"Backend"}]},{language:"Ruby",libs:[{name:"Rails",category:"Backend"},{name:"Sinatra",category:"Backend"}]},{language:"Other",libs:[{name:"Laravel",category:"Backend"},{name:"Phoenix",category:"Backend"}]}],value:[]}}},m=a("label",{class:"typo__label"},"Groups",-1),_=a("span",{slot:"noResult"},"Oops! No elements found. Consider changing the search query.",-1),y={class:"language-json"};function b(h,o,v,f,e,k){const t=r("multiselect");return c(),u("div",null,[m,i(t,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=n=>e.value=n),options:e.options,multiple:!0,"group-values":"libs","group-label":"language","group-select":!0,placeholder:"Type to search","track-by":"name",label:"name"},{default:p(()=>[_]),_:1},8,["modelValue","options"]),a("pre",y,[a("code",null,d(e.value),1)])])}const V=s(g,[["render",b]]);export{V as default}; diff --git a/docs/assets/ProgrammaticControl-4026b96b.js b/docs/assets/ProgrammaticControl-4026b96b.js new file mode 100644 index 00000000..a71f17dc --- /dev/null +++ b/docs/assets/ProgrammaticControl-4026b96b.js @@ -0,0 +1 @@ +import{_ as i,M as r,r as u,o as a,c as p,b as o,t as c,a as m}from"./index-8204e237.js";const f={components:{Multiselect:r},data(){return{isOpen:!1,value:[],options:["Select option","Option 1","Option 2","Option 3","Option 4","Option 5"]}},methods:{toggle(){this.$refs.multiselect.$el.focus(),setTimeout(()=>{this.$refs.multiselect.$refs.search.blur()},1e3)},open(){this.$refs.multiselect.activate()},close(){this.$refs.multiselect.deactivate()}}},b=o("label",{class:"typo__label"},"Controlling multiselect programmatically",-1);function g(O,e,v,d,s,l){const n=u("multiselect");return a(),p("div",null,[o("button",{onClick:e[0]||(e[0]=(...t)=>l.toggle&&l.toggle(...t)),class:"button button-small"},"Toggle"),o("button",{onClick:e[1]||(e[1]=(...t)=>l.open&&l.open(...t)),class:"button button-small"},"Open"),o("button",{onClick:e[2]||(e[2]=(...t)=>l.close&&l.close(...t)),class:"button button-small"},"Close"),o("pre",null,"Multiselect Open: "+c(s.isOpen),1),b,m(n,{ref:"multiselect",placeholder:"Pick at least one",value:s.value,options:s.options,multiple:!0,searchable:!0,"allow-empty":!1,"hide-selected":!0,"max-height":150,max:3,onOpen:e[3]||(e[3]=t=>s.isOpen=!0),onClose:e[4]||(e[4]=t=>s.isOpen=!1)},null,8,["value","options"])])}const k=i(f,[["render",g]]);export{k as default}; diff --git a/docs/assets/ProgrammaticControl-778a1194.js b/docs/assets/ProgrammaticControl-778a1194.js new file mode 100644 index 00000000..25b798d7 --- /dev/null +++ b/docs/assets/ProgrammaticControl-778a1194.js @@ -0,0 +1 @@ +import{_ as i,M as r,r as u,o as a,c as p,b as o,t as c,a as m}from"./index-3a50609c.js";const f={components:{Multiselect:r},data(){return{isOpen:!1,value:[],options:["Select option","Option 1","Option 2","Option 3","Option 4","Option 5"]}},methods:{toggle(){this.$refs.multiselect.$el.focus(),setTimeout(()=>{this.$refs.multiselect.$refs.search.blur()},1e3)},open(){this.$refs.multiselect.activate()},close(){this.$refs.multiselect.deactivate()}}},b=o("label",{class:"typo__label"},"Controlling multiselect programmatically",-1);function g(O,e,v,d,s,l){const n=u("multiselect");return a(),p("div",null,[o("button",{onClick:e[0]||(e[0]=(...t)=>l.toggle&&l.toggle(...t)),class:"button button-small"},"Toggle"),o("button",{onClick:e[1]||(e[1]=(...t)=>l.open&&l.open(...t)),class:"button button-small"},"Open"),o("button",{onClick:e[2]||(e[2]=(...t)=>l.close&&l.close(...t)),class:"button button-small"},"Close"),o("pre",null,"Multiselect Open: "+c(s.isOpen),1),b,m(n,{ref:"multiselect",placeholder:"Pick at least one",value:s.value,options:s.options,multiple:!0,searchable:!0,"allow-empty":!1,"hide-selected":!0,"max-height":150,max:3,onOpen:e[3]||(e[3]=t=>s.isOpen=!0),onClose:e[4]||(e[4]=t=>s.isOpen=!1)},null,8,["value","options"])])}const k=i(f,[["render",g]]);export{k as default}; diff --git a/docs/assets/SingleSelectObject-4830d340.js b/docs/assets/SingleSelectObject-4830d340.js new file mode 100644 index 00000000..3269f75f --- /dev/null +++ b/docs/assets/SingleSelectObject-4830d340.js @@ -0,0 +1 @@ +import{_ as i,M as r,r as c,o as u,c as p,a as m,w as g,b as e,t as a,g as d}from"./index-3a50609c.js";const _={components:{Multiselect:r},data(){return{value:null,options:[{name:"Vue.js",language:"JavaScript"},{name:"Rails",language:"Ruby"},{name:"Sinatra",language:"Ruby"},{name:"Laravel",language:"PHP",$isDisabled:!0},{name:"Phoenix",language:"Elixir"}]}}},b=e("label",{class:"typo__label"},"Single select / dropdown",-1),v={slot:"singleLabel","slot-scope":"{ option }"},f=d(" is written in"),h={class:"language-json"};function S(o,t,V,y,l,w){const n=c("multiselect");return u(),p("div",null,[b,m(n,{modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=s=>l.value=s),"deselect-label":"Can't remove this value","track-by":"name",label:"name",placeholder:"Select one",options:l.options,searchable:!1,"allow-empty":!1},{default:g(()=>[e("template",v,[e("strong",null,a(o.option.name),1),f,e("strong",null,a(o.option.language),1)])]),_:1},8,["modelValue","options"]),e("pre",h,[e("code",null,a(l.value),1)])])}const j=i(_,[["render",S]]);export{j as default}; diff --git a/docs/assets/SingleSelectObject-4f11241a.js b/docs/assets/SingleSelectObject-4f11241a.js new file mode 100644 index 00000000..48a36d4c --- /dev/null +++ b/docs/assets/SingleSelectObject-4f11241a.js @@ -0,0 +1 @@ +import{_ as i,M as r,r as c,o as u,c as p,a as m,w as g,b as e,t as a,g as d}from"./index-8204e237.js";const _={components:{Multiselect:r},data(){return{value:null,options:[{name:"Vue.js",language:"JavaScript"},{name:"Rails",language:"Ruby"},{name:"Sinatra",language:"Ruby"},{name:"Laravel",language:"PHP",$isDisabled:!0},{name:"Phoenix",language:"Elixir"}]}}},b=e("label",{class:"typo__label"},"Single select / dropdown",-1),v={slot:"singleLabel","slot-scope":"{ option }"},f=d(" is written in"),h={class:"language-json"};function S(o,t,V,y,l,w){const n=c("multiselect");return u(),p("div",null,[b,m(n,{modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=s=>l.value=s),"deselect-label":"Can't remove this value","track-by":"name",label:"name",placeholder:"Select one",options:l.options,searchable:!1,"allow-empty":!1},{default:g(()=>[e("template",v,[e("strong",null,a(o.option.name),1),f,e("strong",null,a(o.option.language),1)])]),_:1},8,["modelValue","options"]),e("pre",h,[e("code",null,a(l.value),1)])])}const j=i(_,[["render",S]]);export{j as default}; diff --git a/docs/assets/SingleSelectPrimitive-4b2b9215.js b/docs/assets/SingleSelectPrimitive-4b2b9215.js new file mode 100644 index 00000000..d3699748 --- /dev/null +++ b/docs/assets/SingleSelectPrimitive-4b2b9215.js @@ -0,0 +1 @@ +import{_ as a,M as n,r as c,o as i,c as r,a as p,b as l,t as u}from"./index-8204e237.js";const d={components:{Multiselect:n},data(){return{value:"",options:["Select option","options","selected","multiple","label","searchable","clearOnSelect","hideSelected","maxHeight","allowEmpty","showLabels","onChange","touched"]}}},m=l("label",{class:"typo__label"},"Single select",-1),_={class:"language-json"};function h(f,o,b,v,e,g){const s=c("multiselect");return i(),r("div",null,[m,p(s,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=t=>e.value=t),options:e.options,searchable:!1,"close-on-select":!1,"show-labels":!1,placeholder:"Pick a value"},null,8,["modelValue","options"]),l("pre",_,[l("code",null,u(e.value),1)])])}const V=a(d,[["render",h]]);export{V as default}; diff --git a/docs/assets/SingleSelectPrimitive-d5936036.js b/docs/assets/SingleSelectPrimitive-d5936036.js new file mode 100644 index 00000000..cac531bd --- /dev/null +++ b/docs/assets/SingleSelectPrimitive-d5936036.js @@ -0,0 +1 @@ +import{_ as a,M as n,r as c,o as i,c as r,a as p,b as l,t as u}from"./index-3a50609c.js";const d={components:{Multiselect:n},data(){return{value:"",options:["Select option","options","selected","multiple","label","searchable","clearOnSelect","hideSelected","maxHeight","allowEmpty","showLabels","onChange","touched"]}}},m=l("label",{class:"typo__label"},"Single select",-1),_={class:"language-json"};function h(f,o,b,v,e,g){const s=c("multiselect");return i(),r("div",null,[m,p(s,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=t=>e.value=t),options:e.options,searchable:!1,"close-on-select":!1,"show-labels":!1,placeholder:"Pick a value"},null,8,["modelValue","options"]),l("pre",_,[l("code",null,u(e.value),1)])])}const V=a(d,[["render",h]]);export{V as default}; diff --git a/docs/assets/SingleSelectSearch-9078ce31.js b/docs/assets/SingleSelectSearch-9078ce31.js new file mode 100644 index 00000000..38c58747 --- /dev/null +++ b/docs/assets/SingleSelectSearch-9078ce31.js @@ -0,0 +1 @@ +import{_ as c,M as u,r,o as i,c as m,a as p,b as l,t as g}from"./index-3a50609c.js";const _={components:{Multiselect:u},data(){return{value:{name:"Vue.js",language:"JavaScript"},options:[{name:"Vue.js",language:"JavaScript"},{name:"Rails",language:"Ruby"},{name:"Sinatra",language:"Ruby"},{name:"Laravel",language:"PHP"},{name:"Phoenix",language:"Elixir"}]}},methods:{nameWithLang({name:n,language:e}){return`${n} — [${e}]`}}},d=l("label",{class:"typo__label"},"Select with search",-1),b={class:"language-json"};function h(n,e,v,S,a,t){const o=r("multiselect");return i(),m("div",null,[d,p(o,{modelValue:a.value,"onUpdate:modelValue":e[0]||(e[0]=s=>a.value=s),options:a.options,"custom-label":t.nameWithLang,placeholder:"Select one",label:"name","track-by":"name"},null,8,["modelValue","options","custom-label"]),l("pre",b,[l("code",null,g(a.value),1)])])}const f=c(_,[["render",h]]);export{f as default}; diff --git a/docs/assets/SingleSelectSearch-fb5cedad.js b/docs/assets/SingleSelectSearch-fb5cedad.js new file mode 100644 index 00000000..9d7602ea --- /dev/null +++ b/docs/assets/SingleSelectSearch-fb5cedad.js @@ -0,0 +1 @@ +import{_ as c,M as u,r,o as i,c as m,a as p,b as l,t as g}from"./index-8204e237.js";const _={components:{Multiselect:u},data(){return{value:{name:"Vue.js",language:"JavaScript"},options:[{name:"Vue.js",language:"JavaScript"},{name:"Rails",language:"Ruby"},{name:"Sinatra",language:"Ruby"},{name:"Laravel",language:"PHP"},{name:"Phoenix",language:"Elixir"}]}},methods:{nameWithLang({name:n,language:e}){return`${n} — [${e}]`}}},d=l("label",{class:"typo__label"},"Select with search",-1),b={class:"language-json"};function h(n,e,v,S,a,t){const o=r("multiselect");return i(),m("div",null,[d,p(o,{modelValue:a.value,"onUpdate:modelValue":e[0]||(e[0]=s=>a.value=s),options:a.options,"custom-label":t.nameWithLang,placeholder:"Select one",label:"name","track-by":"name"},null,8,["modelValue","options","custom-label"]),l("pre",b,[l("code",null,g(a.value),1)])])}const f=c(_,[["render",h]]);export{f as default}; diff --git a/docs/assets/Tagging-13f66db2.js b/docs/assets/Tagging-13f66db2.js new file mode 100644 index 00000000..1768f88e --- /dev/null +++ b/docs/assets/Tagging-13f66db2.js @@ -0,0 +1 @@ +import{_ as c,M as r,r as d,o as u,c as p,a as i,b as t,t as m}from"./index-3a50609c.js";const g={components:{Multiselect:r},data(){return{value:[{name:"Javascript",code:"js"}],options:[{name:"Vue.js",code:"vu"},{name:"Javascript",code:"js"},{name:"Open Source",code:"os"}]}},methods:{addTag(a){const e={name:a,code:a.substring(0,2)+Math.floor(Math.random()*1e7)};this.options.push(e),this.value.push(e)}}},_=t("label",{class:"typo__label"},"Tagging",-1),h={class:"language-json"};function v(a,e,b,f,o,s){const l=d("multiselect");return u(),p("div",null,[_,i(l,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=n=>o.value=n),"tag-placeholder":"Add this as new tag",placeholder:"Search or add a tag",label:"name","track-by":"code",options:o.options,multiple:!0,taggable:!0,onTag:s.addTag},null,8,["modelValue","options","onTag"]),t("pre",h,[t("code",null,m(o.value),1)])])}const T=c(g,[["render",v]]);export{T as default}; diff --git a/docs/assets/Tagging-6095f9d7.js b/docs/assets/Tagging-6095f9d7.js new file mode 100644 index 00000000..8cce7598 --- /dev/null +++ b/docs/assets/Tagging-6095f9d7.js @@ -0,0 +1 @@ +import{_ as c,M as r,r as d,o as u,c as p,a as i,b as t,t as m}from"./index-8204e237.js";const g={components:{Multiselect:r},data(){return{value:[{name:"Javascript",code:"js"}],options:[{name:"Vue.js",code:"vu"},{name:"Javascript",code:"js"},{name:"Open Source",code:"os"}]}},methods:{addTag(a){const e={name:a,code:a.substring(0,2)+Math.floor(Math.random()*1e7)};this.options.push(e),this.value.push(e)}}},_=t("label",{class:"typo__label"},"Tagging",-1),h={class:"language-json"};function v(a,e,b,f,o,s){const l=d("multiselect");return u(),p("div",null,[_,i(l,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=n=>o.value=n),"tag-placeholder":"Add this as new tag",placeholder:"Search or add a tag",label:"name","track-by":"code",options:o.options,multiple:!0,taggable:!0,onTag:s.addTag},null,8,["modelValue","options","onTag"]),t("pre",h,[t("code",null,m(o.value),1)])])}const T=c(g,[["render",v]]);export{T as default}; diff --git a/docs/assets/VuexSupport-76ce23eb.js b/docs/assets/VuexSupport-76ce23eb.js new file mode 100644 index 00000000..0b94fea9 --- /dev/null +++ b/docs/assets/VuexSupport-76ce23eb.js @@ -0,0 +1 @@ +import{_ as a,M as t,m as l,h as s,r as n,o as c,c as p,a as u,b as d}from"./index-8204e237.js";const m={components:{Multiselect:t},computed:{...l(["value","options"])},methods:{...s(["updateValueAction"])}},r=d("label",{class:"typo__label"},"Vuex example.",-1);function i(e,_,V,f,h,b){const o=n("multiselect");return c(),p("div",null,[r,u(o,{placeholder:"Pick action",modelValue:e.value,options:e.options,searchable:!1,"onUpdate:modelValue":e.updateValueAction},null,8,["modelValue","options","onUpdate:modelValue"])])}const $=a(m,[["render",i]]);export{$ as default}; diff --git a/docs/assets/VuexSupport-e282fa8f.js b/docs/assets/VuexSupport-e282fa8f.js new file mode 100644 index 00000000..b0033df9 --- /dev/null +++ b/docs/assets/VuexSupport-e282fa8f.js @@ -0,0 +1 @@ +import{_ as a,M as t,m as l,h as s,r as n,o as c,c as p,a as u,b as d}from"./index-3a50609c.js";const m={components:{Multiselect:t},computed:{...l(["value","options"])},methods:{...s(["updateValueAction"])}},r=d("label",{class:"typo__label"},"Vuex example.",-1);function i(e,_,V,f,h,b){const o=n("multiselect");return c(),p("div",null,[r,u(o,{placeholder:"Pick action",modelValue:e.value,options:e.options,searchable:!1,"onUpdate:modelValue":e.updateValueAction},null,8,["modelValue","options","onUpdate:modelValue"])])}const $=a(m,[["render",i]]);export{$ as default}; diff --git a/docs/assets/index-3a50609c.js b/docs/assets/index-3a50609c.js new file mode 100644 index 00000000..90c5b3dd --- /dev/null +++ b/docs/assets/index-3a50609c.js @@ -0,0 +1,43 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=s(i);fetch(i.href,o)}})();function qr(e,t){const s=Object.create(null),n=e.split(",");for(let i=0;i!!s[i.toLowerCase()]:i=>!!s[i]}const Ur=()=>{},Hr=Object.assign,Wr=Object.prototype.hasOwnProperty,Is=(e,t)=>Wr.call(e,t),mt=Array.isArray,ys=e=>ai(e)==="[object Map]",zr=e=>typeof e=="function",Kr=e=>typeof e=="string",xn=e=>typeof e=="symbol",Rs=e=>e!==null&&typeof e=="object",Jr=Object.prototype.toString,ai=e=>Jr.call(e),Qr=e=>ai(e).slice(8,-1),An=e=>Kr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Tn=(e,t)=>!Object.is(e,t),Yr=(e,t,s)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:s})};let wt;const ps=[];class li{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&wt&&(this.parent=wt,this.index=(wt.scopes||(wt.scopes=[])).push(this)-1)}run(t){if(this.active)try{return this.on(),t()}finally{this.off()}}on(){this.active&&(ps.push(this),wt=this)}off(){this.active&&(ps.pop(),wt=ps[ps.length-1])}stop(t){if(this.active){if(this.effects.forEach(s=>s.stop()),this.cleanups.forEach(s=>s()),this.scopes&&this.scopes.forEach(s=>s.stop(!0)),this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.active=!1}}}function Xr(e){return new li(e)}function Zr(e,t){t=t||wt,t&&t.active&&t.effects.push(e)}const jn=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ci=e=>(e.w&_t)>0,ui=e=>(e.n&_t)>0,ea=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let s=0;for(let n=0;n0?zt[t-1]:void 0}}stop(){this.active&&(co(this),this.onStop&&this.onStop(),this.active=!1)}}function co(e){const{deps:t}=e;if(t.length){for(let s=0;s{(l==="length"||l>=n)&&a.push(u)});else switch(s!==void 0&&a.push(r.get(s)),t){case"add":mt(e)?An(s)&&a.push(r.get("length")):(a.push(r.get(Pt)),ys(e)&&a.push(r.get(un)));break;case"delete":mt(e)||(a.push(r.get(Pt)),ys(e)&&a.push(r.get(un)));break;case"set":ys(e)&&a.push(r.get(Pt));break}if(a.length===1)a[0]&&dn(a[0]);else{const u=[];for(const l of a)l&&u.push(...l);dn(jn(u))}}function dn(e,t){for(const s of mt(e)?e:[...e])(s!==Lt||s.allowRecurse)&&(s.scheduler?s.scheduler():s.run())}const na=qr("__proto__,__v_isRef,__isVue"),hi=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(xn)),oa=$n(),ia=$n(!1,!0),ra=$n(!0),uo=aa();function aa(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...s){const n=he(this);for(let o=0,r=this.length;o{e[t]=function(...s){Ut();const n=he(this)[t].apply(this,s);return jt(),n}}),e}function $n(e=!1,t=!1){return function(n,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&o===(e?t?Sa:bi:t?_i:gi).get(n))return n;const r=mt(n);if(!e&&r&&Is(uo,i))return Reflect.get(uo,i,o);const a=Reflect.get(n,i,o);return(xn(i)?hi.has(i):na(i))||(e||Fe(n,"get",i),t)?a:Oe(a)?!r||!An(i)?a.value:a:Rs(a)?e?yi(a):Ms(a):a}}const la=fi(),ca=fi(!0);function fi(e=!1){return function(s,n,i,o){let r=s[n];if(!e&&!Mn(i)&&(i=he(i),r=he(r),!mt(s)&&Oe(r)&&!Oe(i)))return r.value=i,!0;const a=mt(s)&&An(n)?Number(n)e,Cs=e=>Reflect.getPrototypeOf(e);function hs(e,t,s=!1,n=!1){e=e.__v_raw;const i=he(e),o=he(t);t!==o&&!s&&Fe(i,"get",t),!s&&Fe(i,"get",o);const{has:r}=Cs(i),a=n?In:s?Bn:rs;if(r.call(i,t))return a(e.get(t));if(r.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function fs(e,t=!1){const s=this.__v_raw,n=he(s),i=he(e);return e!==i&&!t&&Fe(n,"has",e),!t&&Fe(n,"has",i),e===i?s.has(e):s.has(e)||s.has(i)}function ms(e,t=!1){return e=e.__v_raw,!t&&Fe(he(e),"iterate",Pt),Reflect.get(e,"size",e)}function po(e){e=he(e);const t=he(this);return Cs(t).has.call(t,e)||(t.add(e),at(t,"add",e,e)),this}function ho(e,t){t=he(t);const s=he(this),{has:n,get:i}=Cs(s);let o=n.call(s,e);o||(e=he(e),o=n.call(s,e));const r=i.call(s,e);return s.set(e,t),o?Tn(t,r)&&at(s,"set",e,t):at(s,"add",e,t),this}function fo(e){const t=he(this),{has:s,get:n}=Cs(t);let i=s.call(t,e);i||(e=he(e),i=s.call(t,e)),n&&n.call(t,e);const o=t.delete(e);return i&&at(t,"delete",e,void 0),o}function mo(){const e=he(this),t=e.size!==0,s=e.clear();return t&&at(e,"clear",void 0,void 0),s}function gs(e,t){return function(n,i){const o=this,r=o.__v_raw,a=he(r),u=t?In:e?Bn:rs;return!e&&Fe(a,"iterate",Pt),r.forEach((l,f)=>n.call(i,u(l),u(f),o))}}function _s(e,t,s){return function(...n){const i=this.__v_raw,o=he(i),r=ys(o),a=e==="entries"||e===Symbol.iterator&&r,u=e==="keys"&&r,l=i[e](...n),f=s?In:t?Bn:rs;return!t&&Fe(o,"iterate",u?un:Pt),{next(){const{value:d,done:m}=l.next();return m?{value:d,done:m}:{value:a?[f(d[0]),f(d[1])]:f(d),done:m}},[Symbol.iterator](){return this}}}}function ct(e){return function(...t){return e==="delete"?!1:this}}function ma(){const e={get(o){return hs(this,o)},get size(){return ms(this)},has:fs,add:po,set:ho,delete:fo,clear:mo,forEach:gs(!1,!1)},t={get(o){return hs(this,o,!1,!0)},get size(){return ms(this)},has:fs,add:po,set:ho,delete:fo,clear:mo,forEach:gs(!1,!0)},s={get(o){return hs(this,o,!0)},get size(){return ms(this,!0)},has(o){return fs.call(this,o,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:gs(!0,!1)},n={get(o){return hs(this,o,!0,!0)},get size(){return ms(this,!0)},has(o){return fs.call(this,o,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:gs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=_s(o,!1,!1),s[o]=_s(o,!0,!1),t[o]=_s(o,!1,!0),n[o]=_s(o,!0,!0)}),[e,s,t,n]}const[ga,_a,ba,ya]=ma();function Rn(e,t){const s=t?e?ya:ba:e?_a:ga;return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Is(s,i)&&i in n?s:n,i,o)}const va={get:Rn(!1,!1)},wa={get:Rn(!1,!0)},ka={get:Rn(!0,!1)},gi=new WeakMap,_i=new WeakMap,bi=new WeakMap,Sa=new WeakMap;function Na(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function La(e){return e.__v_skip||!Object.isExtensible(e)?0:Na(Qr(e))}function Ms(e){return e&&e.__v_isReadonly?e:Cn(e,!1,mi,va,gi)}function Pa(e){return Cn(e,!1,fa,wa,_i)}function yi(e){return Cn(e,!0,ha,ka,bi)}function Cn(e,t,s,n,i){if(!Rs(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const r=La(e);if(r===0)return e;const a=new Proxy(e,r===2?n:s);return i.set(e,a),a}function Dt(e){return Mn(e)?Dt(e.__v_raw):!!(e&&e.__v_isReactive)}function Mn(e){return!!(e&&e.__v_isReadonly)}function vi(e){return Dt(e)||Mn(e)}function he(e){const t=e&&e.__v_raw;return t?he(t):e}function wi(e){return Yr(e,"__v_skip",!0),e}const rs=e=>Rs(e)?Ms(e):e,Bn=e=>Rs(e)?yi(e):e;function ki(e){di()&&(e=he(e),e.dep||(e.dep=jn()),pi(e.dep))}function Si(e,t){e=he(e),e.dep&&dn(e.dep)}function Oe(e){return!!(e&&e.__v_isRef===!0)}function Ws(e){return xa(e,!1)}function xa(e,t){return Oe(e)?e:new Aa(e,t)}class Aa{constructor(t,s){this._shallow=s,this.dep=void 0,this.__v_isRef=!0,this._rawValue=s?t:he(t),this._value=s?t:rs(t)}get value(){return ki(this),this._value}set value(t){t=this._shallow?t:he(t),Tn(t,this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:rs(t),Si(this))}}function Ta(e){return Oe(e)?e.value:e}const ja={get:(e,t,s)=>Ta(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return Oe(i)&&!Oe(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function Ni(e){return Dt(e)?e:new Proxy(e,ja)}class Oa{constructor(t,s,n){this._setter=s,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new On(t,()=>{this._dirty||(this._dirty=!0,Si(this))}),this.__v_isReadonly=n}get value(){const t=he(this);return ki(t),t._dirty&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Li(e,t){let s,n;const i=zr(e);return i?(s=e,n=Ur):(s=e.get,n=e.set),new Oa(s,n,i||!n)}Promise.resolve();function Ea(e,t){const s=Object.create(null),n=e.split(",");for(let i=0;i!!s[i.toLowerCase()]:i=>!!s[i]}function xt(e){if(ce(e)){const t={};for(let s=0;s{if(s){const n=s.split(Ia);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ye(e){let t="";if(Ge(e))t=e;else if(ce(e))for(let s=0;se==null?"":ce(e)||Ee(e)&&(e.toString===Oi||!se(e.toString))?JSON.stringify(e,Pi,2):String(e),Pi=(e,t)=>t&&t.__v_isRef?Pi(e,t.value):Ai(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i])=>(s[`${n} =>`]=i,s),{})}:Ti(t)?{[`Set(${t.size})`]:[...t.values()]}:Ee(t)&&!ce(t)&&!Ei(t)?String(t):t,be={},Ft=[],Ze=()=>{},Ca=()=>!1,Ma=/^on[^a-z]/,Dn=e=>Ma.test(e),xi=e=>e.startsWith("onUpdate:"),Ve=Object.assign,Fn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Ba=Object.prototype.hasOwnProperty,ge=(e,t)=>Ba.call(e,t),ce=Array.isArray,Ai=e=>Vn(e)==="[object Map]",Ti=e=>Vn(e)==="[object Set]",se=e=>typeof e=="function",Ge=e=>typeof e=="string",Ee=e=>e!==null&&typeof e=="object",ji=e=>Ee(e)&&se(e.then)&&se(e.catch),Oi=Object.prototype.toString,Vn=e=>Oi.call(e),Ei=e=>Vn(e)==="[object Object]",vs=Ea(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bs=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},Da=/-(\w)/g,et=Bs(e=>e.replace(Da,(t,s)=>s?s.toUpperCase():"")),Fa=/\B([A-Z])/g,Ds=Bs(e=>e.replace(Fa,"-$1").toLowerCase()),Gn=Bs(e=>e.charAt(0).toUpperCase()+e.slice(1)),zs=Bs(e=>e?`on${Gn(e)}`:""),go=(e,t)=>!Object.is(e,t),Ks=(e,t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:s})},Va=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let _o;const Ga=()=>_o||(_o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function qa(e,t,...s){const n=e.vnode.props||be;let i=s;const o=t.startsWith("update:"),r=o&&t.slice(7);if(r&&r in n){const f=`${r==="modelValue"?"model":r}Modifiers`,{number:d,trim:m}=n[f]||be;m?i=s.map(A=>A.trim()):d&&(i=s.map(Va))}let a,u=n[a=zs(t)]||n[a=zs(et(t))];!u&&o&&(u=n[a=zs(Ds(t))]),u&&Ue(u,e,6,i);const l=n[a+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ue(l,e,6,i)}}function $i(e,t,s=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!se(e)){const u=l=>{const f=$i(l,t,!0);f&&(a=!0,Ve(r,f))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!a?(n.set(e,null),null):(ce(o)?o.forEach(u=>r[u]=null):Ve(r,o),n.set(e,r),r)}function qn(e,t){return!e||!Dn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ge(e,t[0].toLowerCase()+t.slice(1))||ge(e,Ds(t))||ge(e,t))}let De=null,Fs=null;function Ss(e){const t=De;return De=e,Fs=e&&e.type.__scopeId||null,t}function Ua(e){Fs=e}function Ha(){Fs=null}function as(e,t=De,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&xo(-1);const o=Ss(t),r=e(...i);return Ss(o),n._d&&xo(1),r};return n._n=!0,n._c=!0,n._d=!0,n}function Js(e){const{type:t,vnode:s,proxy:n,withProxy:i,props:o,propsOptions:[r],slots:a,attrs:u,emit:l,render:f,renderCache:d,data:m,setupState:A,ctx:b,inheritAttrs:O}=e;let T,L;const S=Ss(e);try{if(s.shapeFlag&4){const P=i||n;T=Xe(f.call(P,P,d,o,A,m,b)),L=u}else{const P=t;T=Xe(P.length>1?P(o,{attrs:u,slots:a,emit:l}):P(o,null)),L=t.props?u:Wa(u)}}catch(P){ss.length=0,ds(P,e,1),T=Y(ze)}let k=T;if(L&&O!==!1){const P=Object.keys(L),{shapeFlag:_}=k;P.length&&_&7&&(r&&P.some(xi)&&(L=za(L,r)),k=Gt(k,L))}return s.dirs&&(k.dirs=k.dirs?k.dirs.concat(s.dirs):s.dirs),s.transition&&(k.transition=s.transition),T=k,Ss(S),T}const Wa=e=>{let t;for(const s in e)(s==="class"||s==="style"||Dn(s))&&((t||(t={}))[s]=e[s]);return t},za=(e,t)=>{const s={};for(const n in e)(!xi(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Ka(e,t,s){const{props:n,children:i,component:o}=e,{props:r,children:a,patchFlag:u}=t,l=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?bo(n,r,l):!!r;if(u&8){const f=t.dynamicProps;for(let d=0;de.__isSuspense;function Ya(e,t){t&&t.pendingBranch?ce(e)?t.effects.push(...e):t.effects.push(e):Jl(e)}function Xa(e,t){if(Le){let s=Le.provides;const n=Le.parent&&Le.parent.provides;n===s&&(s=Le.provides=Object.create(n)),s[e]=t}}function Qs(e,t,s=!1){const n=Le||De;if(n){const i=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return s&&se(t)?t.call(n.proxy):t}}function Za(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Bi(()=>{e.isMounted=!0}),Di(()=>{e.isUnmounting=!0}),e}const qe=[Function,Array],el={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qe,onEnter:qe,onAfterEnter:qe,onEnterCancelled:qe,onBeforeLeave:qe,onLeave:qe,onAfterLeave:qe,onLeaveCancelled:qe,onBeforeAppear:qe,onAppear:qe,onAfterAppear:qe,onAppearCancelled:qe},setup(e,{slots:t}){const s=Ml(),n=Za();let i;return()=>{const o=t.default&&Ci(t.default(),!0);if(!o||!o.length)return;const r=he(e),{mode:a}=r,u=o[0];if(n.isLeaving)return Ys(u);const l=yo(u);if(!l)return Ys(u);const f=hn(l,r,n,s);fn(l,f);const d=s.subTree,m=d&&yo(d);let A=!1;const{getTransitionKey:b}=l.type;if(b){const O=b();i===void 0?i=O:O!==i&&(i=O,A=!0)}if(m&&m.type!==ze&&(!St(l,m)||A)){const O=hn(m,r,n,s);if(fn(m,O),a==="out-in")return n.isLeaving=!0,O.afterLeave=()=>{n.isLeaving=!1,s.update()},Ys(u);a==="in-out"&&l.type!==ze&&(O.delayLeave=(T,L,S)=>{const k=Ri(n,m);k[String(m.key)]=m,T._leaveCb=()=>{L(),T._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=S})}return u}}},Ii=el;function Ri(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function hn(e,t,s,n){const{appear:i,mode:o,persisted:r=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:l,onEnterCancelled:f,onBeforeLeave:d,onLeave:m,onAfterLeave:A,onLeaveCancelled:b,onBeforeAppear:O,onAppear:T,onAfterAppear:L,onAppearCancelled:S}=t,k=String(e.key),P=Ri(s,e),_=(h,g)=>{h&&Ue(h,n,9,g)},c={mode:o,persisted:r,beforeEnter(h){let g=a;if(!s.isMounted)if(i)g=O||a;else return;h._leaveCb&&h._leaveCb(!0);const p=P[k];p&&St(e,p)&&p.el._leaveCb&&p.el._leaveCb(),_(g,[h])},enter(h){let g=u,p=l,v=f;if(!s.isMounted)if(i)g=T||u,p=L||l,v=S||f;else return;let y=!1;const w=h._enterCb=j=>{y||(y=!0,j?_(v,[h]):_(p,[h]),c.delayedLeave&&c.delayedLeave(),h._enterCb=void 0)};g?(g(h,w),g.length<=1&&w()):w()},leave(h,g){const p=String(e.key);if(h._enterCb&&h._enterCb(!0),s.isUnmounting)return g();_(d,[h]);let v=!1;const y=h._leaveCb=w=>{v||(v=!0,g(),w?_(b,[h]):_(A,[h]),h._leaveCb=void 0,P[p]===e&&delete P[p])};P[p]=e,m?(m(h,y),m.length<=1&&y()):y()},clone(h){return hn(h,t,s,n)}};return c}function Ys(e){if(us(e))return e=Gt(e),e.children=null,e}function yo(e){return us(e)?e.children?e.children[0]:void 0:e}function fn(e,t){e.shapeFlag&6&&e.component?fn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ci(e,t=!1){let s=[],n=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;function tl(e){se(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:i=200,timeout:o,suspensible:r=!0,onError:a}=e;let u=null,l,f=0;const d=()=>(f++,u=null,m()),m=()=>{let A;return u||(A=u=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),a)return new Promise((O,T)=>{a(b,()=>O(d()),()=>T(b),f+1)});throw b}).then(b=>A!==u&&u?u:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),l=b,b)))};return Un({name:"AsyncComponentWrapper",__asyncLoader:m,get __asyncResolved(){return l},setup(){const A=Le;if(l)return()=>Xs(l,A);const b=S=>{u=null,ds(S,A,13,!n)};if(r&&A.suspense||ls)return m().then(S=>()=>Xs(S,A)).catch(S=>(b(S),()=>n?Y(n,{error:S}):null));const O=Ws(!1),T=Ws(),L=Ws(!!i);return i&&setTimeout(()=>{L.value=!1},i),o!=null&&setTimeout(()=>{if(!O.value&&!T.value){const S=new Error(`Async component timed out after ${o}ms.`);b(S),T.value=S}},o),m().then(()=>{O.value=!0,A.parent&&us(A.parent.vnode)&&Xn(A.parent.update)}).catch(S=>{b(S),T.value=S}),()=>{if(O.value&&l)return Xs(l,A);if(T.value&&n)return Y(n,{error:T.value});if(s&&!L.value)return Y(s)}}})}function Xs(e,{vnode:{ref:t,props:s,children:n}}){const i=Y(e,s,n);return i.ref=t,i}const us=e=>e.type.__isKeepAlive;function sl(e,t){Mi(e,"a",t)}function nl(e,t){Mi(e,"da",t)}function Mi(e,t,s=Le){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Vs(t,n,s),s){let i=s.parent;for(;i&&i.parent;)us(i.parent.vnode)&&ol(n,t,s,i),i=i.parent}}function ol(e,t,s,n){const i=Vs(t,e,n,!0);Fi(()=>{Fn(n[t],i)},s)}function Vs(e,t,s=Le,n=!1){if(s){const i=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(s.isUnmounted)return;Ut(),qt(s);const a=Ue(t,s,e,r);return Tt(),jt(),a});return n?i.unshift(o):i.push(o),o}}const lt=e=>(t,s=Le)=>(!ls||e==="sp")&&Vs(e,t,s),il=lt("bm"),Bi=lt("m"),rl=lt("bu"),al=lt("u"),Di=lt("bum"),Fi=lt("um"),ll=lt("sp"),cl=lt("rtg"),ul=lt("rtc");function dl(e,t=Le){Vs("ec",e,t)}let gn=!0;function pl(e){const t=Gi(e),s=e.proxy,n=e.ctx;gn=!1,t.beforeCreate&&vo(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:u,inject:l,created:f,beforeMount:d,mounted:m,beforeUpdate:A,updated:b,activated:O,deactivated:T,beforeDestroy:L,beforeUnmount:S,destroyed:k,unmounted:P,render:_,renderTracked:c,renderTriggered:h,errorCaptured:g,serverPrefetch:p,expose:v,inheritAttrs:y,components:w,directives:j,filters:D}=t;if(l&&hl(l,n,null,e.appContext.config.unwrapInjectedRef),r)for(const Z in r){const Q=r[Z];se(Q)&&(n[Z]=Q.bind(s))}if(i){const Z=i.call(s,s);Ee(Z)&&(e.data=Ms(Z))}if(gn=!0,o)for(const Z in o){const Q=o[Z],ee=se(Q)?Q.bind(s,s):se(Q.get)?Q.get.bind(s,s):Ze,me=!se(Q)&&se(Q.set)?Q.set.bind(s):Ze,fe=Li({get:ee,set:me});Object.defineProperty(n,Z,{enumerable:!0,configurable:!0,get:()=>fe.value,set:re=>fe.value=re})}if(a)for(const Z in a)Vi(a[Z],n,s,Z);if(u){const Z=se(u)?u.call(s):u;Reflect.ownKeys(Z).forEach(Q=>{Xa(Q,Z[Q])})}f&&vo(f,e,"c");function W(Z,Q){ce(Q)?Q.forEach(ee=>Z(ee.bind(s))):Q&&Z(Q.bind(s))}if(W(il,d),W(Bi,m),W(rl,A),W(al,b),W(sl,O),W(nl,T),W(dl,g),W(ul,c),W(cl,h),W(Di,S),W(Fi,P),W(ll,p),ce(v))if(v.length){const Z=e.exposed||(e.exposed={});v.forEach(Q=>{Object.defineProperty(Z,Q,{get:()=>s[Q],set:ee=>s[Q]=ee})})}else e.exposed||(e.exposed={});_&&e.render===Ze&&(e.render=_),y!=null&&(e.inheritAttrs=y),w&&(e.components=w),j&&(e.directives=j)}function hl(e,t,s=Ze,n=!1){ce(e)&&(e=_n(e));for(const i in e){const o=e[i];let r;Ee(o)?"default"in o?r=Qs(o.from||i,o.default,!0):r=Qs(o.from||i):r=Qs(o),Oe(r)&&n?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:a=>r.value=a}):t[i]=r}}function vo(e,t,s){Ue(ce(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Vi(e,t,s,n){const i=n.includes(".")?cr(s,n):()=>s[n];if(Ge(e)){const o=t[e];se(o)&&is(i,o)}else if(se(e))is(i,e.bind(s));else if(Ee(e))if(ce(e))e.forEach(o=>Vi(o,t,s,n));else{const o=se(e.handler)?e.handler.bind(s):t[e.handler];se(o)&&is(i,o,e)}}function Gi(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let u;return a?u=a:!i.length&&!s&&!n?u=t:(u={},i.length&&i.forEach(l=>Ns(u,l,r,!0)),Ns(u,t,r)),o.set(t,u),u}function Ns(e,t,s,n=!1){const{mixins:i,extends:o}=t;o&&Ns(e,o,s,!0),i&&i.forEach(r=>Ns(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const a=fl[r]||s&&s[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const fl={data:wo,props:kt,emits:kt,methods:kt,computed:kt,beforeCreate:je,created:je,beforeMount:je,mounted:je,beforeUpdate:je,updated:je,beforeDestroy:je,beforeUnmount:je,destroyed:je,unmounted:je,activated:je,deactivated:je,errorCaptured:je,serverPrefetch:je,components:kt,directives:kt,watch:gl,provide:wo,inject:ml};function wo(e,t){return t?e?function(){return Ve(se(e)?e.call(this,this):e,se(t)?t.call(this,this):t)}:t:e}function ml(e,t){return kt(_n(e),_n(t))}function _n(e){if(ce(e)){const t={};for(let s=0;s0)&&!(r&16)){if(r&8){const f=e.vnode.dynamicProps;for(let d=0;d{u=!0;const[m,A]=Ui(d,t,!0);Ve(r,m),A&&a.push(...A)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!u)return n.set(e,Ft),Ft;if(ce(o))for(let f=0;f-1,A[1]=O<0||b-1||ge(A,"default"))&&a.push(d)}}}const l=[r,a];return n.set(e,l),l}function ko(e){return e[0]!=="$"}function So(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function No(e,t){return So(e)===So(t)}function Lo(e,t){return ce(t)?t.findIndex(s=>No(s,e)):se(t)&&No(t,e)?0:-1}const Hi=e=>e[0]==="_"||e==="$stable",Hn=e=>ce(e)?e.map(Xe):[Xe(e)],yl=(e,t,s)=>{const n=as((...i)=>Hn(t(...i)),s);return n._c=!1,n},Wi=(e,t,s)=>{const n=e._ctx;for(const i in e){if(Hi(i))continue;const o=e[i];if(se(o))t[i]=yl(i,o,n);else if(o!=null){const r=Hn(o);t[i]=()=>r}}},zi=(e,t)=>{const s=Hn(t);e.slots.default=()=>s},vl=(e,t)=>{if(e.vnode.shapeFlag&32){const s=t._;s?(e.slots=he(t),pn(t,"_",s)):Wi(t,e.slots={})}else e.slots={},t&&zi(e,t);pn(e.slots,Gs,1)},wl=(e,t,s)=>{const{vnode:n,slots:i}=e;let o=!0,r=be;if(n.shapeFlag&32){const a=t._;a?s&&a===1?o=!1:(Ve(i,t),!s&&a===1&&delete i._):(o=!t.$stable,Wi(t,i)),r=t}else t&&(zi(e,t),r={default:1});if(o)for(const a in i)!Hi(a)&&!(a in r)&&delete i[a]};function Kt(e,t){const s=De;if(s===null)return e;const n=s.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;oyn(m,t&&(ce(t)?t[A]:t),s,n,i));return}if(mn(n)&&!i)return;const o=n.shapeFlag&4?Qn(n.component)||n.component.proxy:n.el,r=i?null:o,{i:a,r:u}=e,l=t&&t.r,f=a.refs===be?a.refs={}:a.refs,d=a.setupState;if(l!=null&&l!==u&&(Ge(l)?(f[l]=null,ge(d,l)&&(d[l]=null)):Oe(l)&&(l.value=null)),se(u))gt(u,a,12,[r,f]);else{const m=Ge(u),A=Oe(u);if(m||A){const b=()=>{if(e.f){const O=m?f[u]:u.value;i?ce(O)&&Fn(O,o):ce(O)?O.includes(o)||O.push(o):m?f[u]=[o]:(u.value=[o],e.k&&(f[e.k]=u.value))}else m?(f[u]=r,ge(d,u)&&(d[u]=r)):Oe(u)&&(u.value=r,e.k&&(f[e.k]=r))};r?(b.id=-1,$e(b,s)):b()}}}const $e=Ya;function Nl(e){return Ll(e)}function Ll(e,t){const s=Ga();s.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:r,createText:a,createComment:u,setText:l,setElementText:f,parentNode:d,nextSibling:m,setScopeId:A=Ze,cloneNode:b,insertStaticContent:O}=e,T=(N,x,$,M=null,C=null,G=null,H=!1,F=null,q=!!x.dynamicChildren)=>{if(N===x)return;N&&!St(N,x)&&(M=_e(N),ne(N,C,G,!0),N=null),x.patchFlag===-2&&(q=!1,x.dynamicChildren=null);const{type:V,ref:E,shapeFlag:R}=x;switch(V){case zn:L(N,x,$,M);break;case ze:S(N,x,$,M);break;case ws:N==null&&k(x,$,M,H);break;case Re:j(N,x,$,M,C,G,H,F,q);break;default:R&1?c(N,x,$,M,C,G,H,F,q):R&6?D(N,x,$,M,C,G,H,F,q):(R&64||R&128)&&V.process(N,x,$,M,C,G,H,F,q,Se)}E!=null&&C&&yn(E,N&&N.ref,G,x||N,!x)},L=(N,x,$,M)=>{if(N==null)n(x.el=a(x.children),$,M);else{const C=x.el=N.el;x.children!==N.children&&l(C,x.children)}},S=(N,x,$,M)=>{N==null?n(x.el=u(x.children||""),$,M):x.el=N.el},k=(N,x,$,M)=>{[N.el,N.anchor]=O(N.children,x,$,M)},P=({el:N,anchor:x},$,M)=>{let C;for(;N&&N!==x;)C=m(N),n(N,$,M),N=C;n(x,$,M)},_=({el:N,anchor:x})=>{let $;for(;N&&N!==x;)$=m(N),i(N),N=$;i(x)},c=(N,x,$,M,C,G,H,F,q)=>{H=H||x.type==="svg",N==null?h(x,$,M,C,G,H,F,q):v(N,x,C,G,H,F,q)},h=(N,x,$,M,C,G,H,F)=>{let q,V;const{type:E,props:R,shapeFlag:z,transition:J,patchFlag:K,dirs:X}=N;if(N.el&&b!==void 0&&K===-1)q=N.el=b(N.el);else{if(q=N.el=r(N.type,G,R&&R.is,R),z&8?f(q,N.children):z&16&&p(N.children,q,null,M,C,G&&E!=="foreignObject",H,F),X&&bt(N,null,M,"created"),R){for(const le in R)le!=="value"&&!vs(le)&&o(q,le,null,R[le],G,N.children,M,C,B);"value"in R&&o(q,"value",null,R.value),(V=R.onVnodeBeforeMount)&&Qe(V,M,N)}g(q,N,N.scopeId,H,M)}X&&bt(N,null,M,"beforeMount");const te=(!C||C&&!C.pendingBranch)&&J&&!J.persisted;te&&J.beforeEnter(q),n(q,x,$),((V=R&&R.onVnodeMounted)||te||X)&&$e(()=>{V&&Qe(V,M,N),te&&J.enter(q),X&&bt(N,null,M,"mounted")},C)},g=(N,x,$,M,C)=>{if($&&A(N,$),M)for(let G=0;G{for(let V=q;V{const F=x.el=N.el;let{patchFlag:q,dynamicChildren:V,dirs:E}=x;q|=N.patchFlag&16;const R=N.props||be,z=x.props||be;let J;$&&yt($,!1),(J=z.onVnodeBeforeUpdate)&&Qe(J,$,x,N),E&&bt(x,N,$,"beforeUpdate"),$&&yt($,!0);const K=C&&x.type!=="foreignObject";if(V?y(N.dynamicChildren,V,F,$,M,K,G):H||ee(N,x,F,null,$,M,K,G,!1),q>0){if(q&16)w(F,x,R,z,$,M,C);else if(q&2&&R.class!==z.class&&o(F,"class",null,z.class,C),q&4&&o(F,"style",R.style,z.style,C),q&8){const X=x.dynamicProps;for(let te=0;te{J&&Qe(J,$,x,N),E&&bt(x,N,$,"updated")},M)},y=(N,x,$,M,C,G,H)=>{for(let F=0;F{if($!==M){for(const F in M){if(vs(F))continue;const q=M[F],V=$[F];q!==V&&F!=="value"&&o(N,F,V,q,H,x.children,C,G,B)}if($!==be)for(const F in $)!vs(F)&&!(F in M)&&o(N,F,$[F],null,H,x.children,C,G,B);"value"in M&&o(N,"value",$.value,M.value)}},j=(N,x,$,M,C,G,H,F,q)=>{const V=x.el=N?N.el:a(""),E=x.anchor=N?N.anchor:a("");let{patchFlag:R,dynamicChildren:z,slotScopeIds:J}=x;J&&(F=F?F.concat(J):J),N==null?(n(V,$,M),n(E,$,M),p(x.children,$,E,C,G,H,F,q)):R>0&&R&64&&z&&N.dynamicChildren?(y(N.dynamicChildren,z,$,C,G,H,F),(x.key!=null||C&&x===C.subTree)&&Ji(N,x,!0)):ee(N,x,$,E,C,G,H,F,q)},D=(N,x,$,M,C,G,H,F,q)=>{x.slotScopeIds=F,N==null?x.shapeFlag&512?C.ctx.activate(x,$,M,H,q):U(x,$,M,C,G,H,q):W(N,x,q)},U=(N,x,$,M,C,G,H)=>{const F=N.component=Cl(N,M,C);if(us(N)&&(F.ctx.renderer=Se),Bl(F),F.asyncDep){if(C&&C.registerDep(F,Z),!N.el){const q=F.subTree=Y(ze);S(null,q,x,$)}return}Z(F,N,x,$,C,G,H)},W=(N,x,$)=>{const M=x.component=N.component;if(Ka(N,x,$))if(M.asyncDep&&!M.asyncResolved){Q(M,x,$);return}else M.next=x,zl(M.update),M.update();else x.component=N.component,x.el=N.el,M.vnode=x},Z=(N,x,$,M,C,G,H)=>{const F=()=>{if(N.isMounted){let{next:E,bu:R,u:z,parent:J,vnode:K}=N,X=E,te;yt(N,!1),E?(E.el=K.el,Q(N,E,H)):E=K,R&&Ks(R),(te=E.props&&E.props.onVnodeBeforeUpdate)&&Qe(te,J,E,K),yt(N,!0);const le=Js(N),Pe=N.subTree;N.subTree=le,T(Pe,le,d(Pe.el),_e(Pe),N,C,G),E.el=le.el,X===null&&Ja(N,le.el),z&&$e(z,C),(te=E.props&&E.props.onVnodeUpdated)&&$e(()=>Qe(te,J,E,K),C)}else{let E;const{el:R,props:z}=x,{bm:J,m:K,parent:X}=N,te=mn(x);if(yt(N,!1),J&&Ks(J),!te&&(E=z&&z.onVnodeBeforeMount)&&Qe(E,X,x),yt(N,!0),R&&tt){const le=()=>{N.subTree=Js(N),tt(R,N.subTree,N,C,null)};te?x.type.__asyncLoader().then(()=>!N.isUnmounted&&le()):le()}else{const le=N.subTree=Js(N);T(null,le,$,M,N,C,G),x.el=le.el}if(K&&$e(K,C),!te&&(E=z&&z.onVnodeMounted)){const le=x;$e(()=>Qe(E,X,le),C)}x.shapeFlag&256&&N.a&&$e(N.a,C),N.isMounted=!0,x=$=M=null}},q=N.effect=new On(F,()=>Xn(N.update),N.scope),V=N.update=q.run.bind(q);V.id=N.uid,yt(N,!0),V()},Q=(N,x,$)=>{x.component=N;const M=N.vnode.props;N.vnode=x,N.next=null,bl(N,x.props,M,$),wl(N,x.children,$),Ut(),Zn(void 0,N.update),jt()},ee=(N,x,$,M,C,G,H,F,q=!1)=>{const V=N&&N.children,E=N?N.shapeFlag:0,R=x.children,{patchFlag:z,shapeFlag:J}=x;if(z>0){if(z&128){fe(V,R,$,M,C,G,H,F,q);return}else if(z&256){me(V,R,$,M,C,G,H,F,q);return}}J&8?(E&16&&B(V,C,G),R!==V&&f($,R)):E&16?J&16?fe(V,R,$,M,C,G,H,F,q):B(V,C,G,!0):(E&8&&f($,""),J&16&&p(R,$,M,C,G,H,F,q))},me=(N,x,$,M,C,G,H,F,q)=>{N=N||Ft,x=x||Ft;const V=N.length,E=x.length,R=Math.min(V,E);let z;for(z=0;zE?B(N,C,G,!0,!1,R):p(x,$,M,C,G,H,F,q,R)},fe=(N,x,$,M,C,G,H,F,q)=>{let V=0;const E=x.length;let R=N.length-1,z=E-1;for(;V<=R&&V<=z;){const J=N[V],K=x[V]=q?ht(x[V]):Xe(x[V]);if(St(J,K))T(J,K,$,null,C,G,H,F,q);else break;V++}for(;V<=R&&V<=z;){const J=N[R],K=x[z]=q?ht(x[z]):Xe(x[z]);if(St(J,K))T(J,K,$,null,C,G,H,F,q);else break;R--,z--}if(V>R){if(V<=z){const J=z+1,K=Jz)for(;V<=R;)ne(N[V],C,G,!0),V++;else{const J=V,K=V,X=new Map;for(V=K;V<=z;V++){const Me=x[V]=q?ht(x[V]):Xe(x[V]);Me.key!=null&&X.set(Me.key,V)}let te,le=0;const Pe=z-K+1;let st=!1,ro=0;const Wt=new Array(Pe);for(V=0;V=Pe){ne(Me,C,G,!0);continue}let Je;if(Me.key!=null)Je=X.get(Me.key);else for(te=K;te<=z;te++)if(Wt[te-K]===0&&St(Me,x[te])){Je=te;break}Je===void 0?ne(Me,C,G,!0):(Wt[Je-K]=V+1,Je>=ro?ro=Je:st=!0,T(Me,x[Je],$,null,C,G,H,F,q),le++)}const ao=st?Pl(Wt):Ft;for(te=ao.length-1,V=Pe-1;V>=0;V--){const Me=K+V,Je=x[Me],lo=Me+1{const{el:G,type:H,transition:F,children:q,shapeFlag:V}=N;if(V&6){re(N.component.subTree,x,$,M);return}if(V&128){N.suspense.move(x,$,M);return}if(V&64){H.move(N,x,$,Se);return}if(H===Re){n(G,x,$);for(let R=0;RF.enter(G),C);else{const{leave:R,delayLeave:z,afterLeave:J}=F,K=()=>n(G,x,$),X=()=>{R(G,()=>{K(),J&&J()})};z?z(G,K,X):X()}else n(G,x,$)},ne=(N,x,$,M=!1,C=!1)=>{const{type:G,props:H,ref:F,children:q,dynamicChildren:V,shapeFlag:E,patchFlag:R,dirs:z}=N;if(F!=null&&yn(F,null,$,N,!0),E&256){x.ctx.deactivate(N);return}const J=E&1&&z,K=!mn(N);let X;if(K&&(X=H&&H.onVnodeBeforeUnmount)&&Qe(X,x,N),E&6)ke(N.component,$,M);else{if(E&128){N.suspense.unmount($,M);return}J&&bt(N,null,x,"beforeUnmount"),E&64?N.type.remove(N,x,$,C,Se,M):V&&(G!==Re||R>0&&R&64)?B(V,x,$,!1,!0):(G===Re&&R&384||!C&&E&16)&&B(q,x,$),M&&ae(N)}(K&&(X=H&&H.onVnodeUnmounted)||J)&&$e(()=>{X&&Qe(X,x,N),J&&bt(N,null,x,"unmounted")},$)},ae=N=>{const{type:x,el:$,anchor:M,transition:C}=N;if(x===Re){ue($,M);return}if(x===ws){_(N);return}const G=()=>{i($),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(N.shapeFlag&1&&C&&!C.persisted){const{leave:H,delayLeave:F}=C,q=()=>H($,G);F?F(N.el,G,q):q()}else G()},ue=(N,x)=>{let $;for(;N!==x;)$=m(N),i(N),N=$;i(x)},ke=(N,x,$)=>{const{bum:M,scope:C,update:G,subTree:H,um:F}=N;M&&Ks(M),C.stop(),G&&(G.active=!1,ne(H,N,x,$)),F&&$e(F,x),$e(()=>{N.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&N.asyncDep&&!N.asyncResolved&&N.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve())},B=(N,x,$,M=!1,C=!1,G=0)=>{for(let H=G;HN.shapeFlag&6?_e(N.component.subTree):N.shapeFlag&128?N.suspense.next():m(N.anchor||N.el),de=(N,x,$)=>{N==null?x._vnode&&ne(x._vnode,null,null,!0):T(x._vnode||null,N,x,null,null,null,$),rr(),x._vnode=N},Se={p:T,um:ne,m:re,r:ae,mt:U,mc:p,pc:ee,pbc:y,n:_e,o:e};let We,tt;return t&&([We,tt]=t(Se)),{render:de,hydrate:We,createApp:Sl(de,We)}}function yt({effect:e,update:t},s){e.allowRecurse=t.allowRecurse=s}function Ji(e,t,s=!1){const n=e.children,i=t.children;if(ce(n)&&ce(i))for(let o=0;o>1,e[s[a]]0&&(t[n]=s[o-1]),s[o]=n)}}for(o=s.length,r=s[o-1];o-- >0;)s[o]=r,r=t[r];return s}const xl=e=>e.__isTeleport,Wn="components";function oe(e,t){return Yi(Wn,e,!0,t)||e}const Qi=Symbol();function Al(e){return Ge(e)?Yi(Wn,e,!1)||e:e||Qi}function Yi(e,t,s=!0,n=!1){const i=De||Le;if(i){const o=i.type;if(e===Wn){const a=Gl(o);if(a&&(a===t||a===et(t)||a===Gn(et(t))))return o}const r=Po(i[e]||o[e],t)||Po(i.appContext[e],t);return!r&&n?o:r}}function Po(e,t){return e&&(e[t]||e[et(t)]||e[Gn(et(t))])}const Re=Symbol(void 0),zn=Symbol(void 0),ze=Symbol(void 0),ws=Symbol(void 0),ss=[];let At=null;function ie(e=!1){ss.push(At=e?null:[])}function Tl(){ss.pop(),At=ss[ss.length-1]||null}let Ls=1;function xo(e){Ls+=e}function Xi(e){return e.dynamicChildren=Ls>0?At||Ft:null,Tl(),Ls>0&&At&&At.push(e),e}function pe(e,t,s,n,i,o){return Xi(I(e,t,s,n,i,o,!0))}function Kn(e,t,s,n,i){return Xi(Y(e,t,s,n,i,!0))}function Ps(e){return e?e.__v_isVNode===!0:!1}function St(e,t){return e.type===t.type&&e.key===t.key}const Gs="__vInternal",Zi=({key:e})=>e??null,ks=({ref:e,ref_key:t,ref_for:s})=>e!=null?Ge(e)||Oe(e)||se(e)?{i:De,r:e,k:t,f:!!s}:e:null;function I(e,t=null,s=null,n=0,i=null,o=e===Re?0:1,r=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Zi(t),ref:t&&ks(t),scopeId:Fs,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null};return a?(Jn(u,s),o&128&&e.normalize(u)):s&&(u.shapeFlag|=Ge(s)?8:16),Ls>0&&!r&&At&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&At.push(u),u}const Y=jl;function jl(e,t=null,s=null,n=0,i=null,o=!1){if((!e||e===Qi)&&(e=ze),Ps(e)){const a=Gt(e,t,!0);return s&&Jn(a,s),a}if(ql(e)&&(e=e.__vccOpts),t){t=Ol(t);let{class:a,style:u}=t;a&&!Ge(a)&&(t.class=ye(a)),Ee(u)&&(vi(u)&&!ce(u)&&(u=Ve({},u)),t.style=xt(u))}const r=Ge(e)?1:Qa(e)?128:xl(e)?64:Ee(e)?4:se(e)?2:0;return I(e,t,s,n,i,r,o,!0)}function Ol(e){return e?vi(e)||Gs in e?Ve({},e):e:null}function Gt(e,t,s=!1){const{props:n,ref:i,patchFlag:o,children:r}=e,a=t?El(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Zi(a),ref:t&&t.ref?s&&i?ce(i)?i.concat(ks(t)):[i,ks(t)]:ks(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Re?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gt(e.ssContent),ssFallback:e.ssFallback&&Gt(e.ssFallback),el:e.el,anchor:e.anchor}}function xe(e=" ",t=0){return Y(zn,null,e,t)}function Ae(e,t){const s=Y(ws,null,e);return s.staticCount=t,s}function nt(e="",t=!1){return t?(ie(),Kn(ze,null,e)):Y(ze,null,e)}function Xe(e){return e==null||typeof e=="boolean"?Y(ze):ce(e)?Y(Re,null,e.slice()):typeof e=="object"?ht(e):Y(zn,null,String(e))}function ht(e){return e.el===null||e.memo?e:Gt(e)}function Jn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ce(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Jn(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!(Gs in t)?t._ctx=De:i===3&&De&&(De.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:De},s=32):(t=String(t),n&64?(s=16,t=[xe(t)]):s=8);e.children=t,e.shapeFlag|=s}function El(...e){const t={};for(let s=0;st(r,a,void 0,o&&o[a]));else{const r=Object.keys(e);i=new Array(r.length);for(let a=0,u=r.length;aPs(t)?!(t.type===ze||t.type===Re&&!er(t.children)):!0)?e:null}const vn=e=>e?tr(e)?Qn(e)||e.proxy:vn(e.parent):null,xs=Ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>vn(e.parent),$root:e=>vn(e.root),$emit:e=>e.emit,$options:e=>Gi(e),$forceUpdate:e=>()=>Xn(e.update),$nextTick:e=>Hl.bind(e.proxy),$watch:e=>Ql.bind(e)}),$l={get({_:e},t){const{ctx:s,setupState:n,data:i,props:o,accessCache:r,type:a,appContext:u}=e;let l;if(t[0]!=="$"){const A=r[t];if(A!==void 0)switch(A){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return o[t]}else{if(n!==be&&ge(n,t))return r[t]=1,n[t];if(i!==be&&ge(i,t))return r[t]=2,i[t];if((l=e.propsOptions[0])&&ge(l,t))return r[t]=3,o[t];if(s!==be&&ge(s,t))return r[t]=4,s[t];gn&&(r[t]=0)}}const f=xs[t];let d,m;if(f)return t==="$attrs"&&Fe(e,"get",t),f(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(s!==be&&ge(s,t))return r[t]=4,s[t];if(m=u.config.globalProperties,ge(m,t))return m[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:o}=e;if(i!==be&&ge(i,t))i[t]=s;else if(n!==be&&ge(n,t))n[t]=s;else if(ge(e.props,t))return!1;return t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,propsOptions:o}},r){let a;return!!s[r]||e!==be&&ge(e,r)||t!==be&&ge(t,r)||(a=o[0])&&ge(a,r)||ge(n,r)||ge(xs,r)||ge(i.config.globalProperties,r)}},Il=Ki();let Rl=0;function Cl(e,t,s){const n=e.type,i=(t?t.appContext:e.appContext)||Il,o={uid:Rl++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new li(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ui(n,i),emitsOptions:$i(n,i),emit:null,emitted:null,propsDefaults:be,inheritAttrs:n.inheritAttrs,ctx:be,data:be,props:be,attrs:be,slots:be,refs:be,setupState:be,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=qa.bind(null,o),e.ce&&e.ce(o),o}let Le=null;const Ml=()=>Le||De,qt=e=>{Le=e,e.scope.on()},Tt=()=>{Le&&Le.scope.off(),Le=null};function tr(e){return e.vnode.shapeFlag&4}let ls=!1;function Bl(e,t=!1){ls=t;const{props:s,children:n}=e.vnode,i=tr(e);_l(e,s,i,t),vl(e,n);const o=i?Dl(e,t):void 0;return ls=!1,o}function Dl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=wi(new Proxy(e.ctx,$l));const{setup:n}=s;if(n){const i=e.setupContext=n.length>1?Vl(e):null;qt(e),Ut();const o=gt(n,e,0,[e.props,i]);if(jt(),Tt(),ji(o)){if(o.then(Tt,Tt),t)return o.then(r=>{To(e,r,t)}).catch(r=>{ds(r,e,0)});e.asyncDep=o}else To(e,o,t)}else sr(e,t)}function To(e,t,s){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ee(t)&&(e.setupState=Ni(t)),sr(e,s)}let jo;function sr(e,t,s){const n=e.type;if(!e.render){if(!t&&jo&&!n.render){const i=n.template;if(i){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:u}=n,l=Ve(Ve({isCustomElement:o,delimiters:a},r),u);n.render=jo(i,l)}}e.render=n.render||Ze}qt(e),Ut(),pl(e),jt(),Tt()}function Fl(e){return new Proxy(e.attrs,{get(t,s){return Fe(e,"get","$attrs"),t[s]}})}function Vl(e){const t=n=>{e.exposed=n||{}};let s;return{get attrs(){return s||(s=Fl(e))},slots:e.slots,emit:e.emit,expose:t}}function Qn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ni(wi(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in xs)return xs[s](e)}}))}function Gl(e){return se(e)&&e.displayName||e.name}function ql(e){return se(e)&&"__vccOpts"in e}function gt(e,t,s,n){let i;try{i=n?e(...n):e()}catch(o){ds(o,t,s)}return i}function Ue(e,t,s,n){if(se(e)){const o=gt(e,t,s,n);return o&&ji(o)&&o.catch(r=>{ds(r,t,s)}),o}const i=[];for(let o=0;o>>1;cs(Be[n])it&&Be.splice(t,1)}function ir(e,t,s,n){ce(e)?s.push(...e):(!t||!t.includes(e,e.allowRecurse?n+1:n))&&s.push(e),or()}function Kl(e){ir(e,es,ns,Mt)}function Jl(e){ir(e,pt,os,Bt)}function Zn(e,t=null){if(ns.length){for(kn=t,es=[...new Set(ns)],ns.length=0,Mt=0;Mtcs(s)-cs(n)),Bt=0;Bte.id==null?1/0:e.id;function ar(e){wn=!1,As=!0,Zn(e),Be.sort((s,n)=>cs(s)-cs(n));const t=Ze;try{for(it=0;ite.value,l=!!e._shallow):Dt(e)?(u=()=>e,n=!0):ce(e)?(f=!0,l=e.some(Dt),u=()=>e.map(L=>{if(Oe(L))return L.value;if(Dt(L))return Nt(L);if(se(L))return gt(L,a,2)})):se(e)?t?u=()=>gt(e,a,2):u=()=>{if(!(a&&a.isUnmounted))return d&&d(),Ue(e,a,3,[m])}:u=Ze,t&&n){const L=u;u=()=>Nt(L())}let d,m=L=>{d=T.onStop=()=>{gt(L,a,4)}};if(ls)return m=Ze,t?s&&Ue(t,a,3,[u(),f?[]:void 0,m]):u(),Ze;let A=f?[]:Oo;const b=()=>{if(T.active)if(t){const L=T.run();(n||l||(f?L.some((S,k)=>go(S,A[k])):go(L,A)))&&(d&&d(),Ue(t,a,3,[L,A===Oo?void 0:A,m]),A=L)}else T.run()};b.allowRecurse=!!t;let O;i==="sync"?O=b:i==="post"?O=()=>$e(b,a&&a.suspense):O=()=>{!a||a.isMounted?Kl(b):b()};const T=new On(u,O);return t?s?b():A=T.run():i==="post"?$e(T.run.bind(T),a&&a.suspense):T.run(),()=>{T.stop(),a&&a.scope&&Fn(a.scope.effects,T)}}function Ql(e,t,s){const n=this.proxy,i=Ge(e)?e.includes(".")?cr(n,e):()=>n[e]:e.bind(n,n);let o;se(t)?o=t:(o=t.handler,s=t);const r=Le;qt(this);const a=lr(i,o.bind(n),s);return r?qt(r):Tt(),a}function cr(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;i{Nt(s,t)});else if(Ei(e))for(const s in e)Nt(e[s],t);return e}function ur(e,t,s){const n=arguments.length;return n===2?Ee(t)&&!ce(t)?Ps(t)?Y(e,null,[t]):Y(e,t):Y(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Ps(s)&&(s=[s]),Y(e,t,s))}const Yl="3.2.25";function Xl(e,t){const s=Object.create(null),n=e.split(",");for(let i=0;i!!s[i.toLowerCase()]:i=>!!s[i]}const Zl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ec=Xl(Zl);function dr(e){return!!e||e===""}const tc=/^on[^a-z]/,sc=e=>tc.test(e),nc=e=>e.startsWith("onUpdate:"),eo=Object.assign,qs=Array.isArray,pr=e=>typeof e=="function",Ts=e=>typeof e=="string",oc=e=>e!==null&&typeof e=="object",hr=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},ic=/\B([A-Z])/g,to=hr(e=>e.replace(ic,"-$1").toLowerCase()),rc=hr(e=>e.charAt(0).toUpperCase()+e.slice(1)),ac=e=>{const t=parseFloat(e);return isNaN(t)?e:t},lc="http://www.w3.org/2000/svg",Et=typeof document<"u"?document:null,Eo=new Map,cc={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t?Et.createElementNS(lc,e):Et.createElement(e,s?{is:s}:void 0);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,s,n){const i=s?s.previousSibling:t.lastChild;let o=Eo.get(e);if(!o){const r=Et.createElement("template");if(r.innerHTML=n?`${e}`:e,o=r.content,n){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}Eo.set(e,o)}return t.insertBefore(o.cloneNode(!0),s),[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}};function uc(e,t,s){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}function dc(e,t,s){const n=e.style,i=Ts(s);if(s&&!i){for(const o in s)Sn(n,o,s[o]);if(t&&!Ts(t))for(const o in t)s[o]==null&&Sn(n,o,"")}else{const o=n.display;i?t!==s&&(n.cssText=s):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=o)}}const $o=/\s*!important$/;function Sn(e,t,s){if(qs(s))s.forEach(n=>Sn(e,t,n));else if(t.startsWith("--"))e.setProperty(t,s);else{const n=pc(e,t);$o.test(s)?e.setProperty(to(n),s.replace($o,""),"important"):e[n]=s}}const Io=["Webkit","Moz","ms"],Zs={};function pc(e,t){const s=Zs[t];if(s)return s;let n=et(t);if(n!=="filter"&&n in e)return Zs[t]=n;n=rc(n);for(let i=0;idocument.createEvent("Event").timeStamp&&(js=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);fr=!!(e&&Number(e[1])<=53)}let Nn=0;const mc=Promise.resolve(),gc=()=>{Nn=0},_c=()=>Nn||(mc.then(gc),Nn=js());function bc(e,t,s,n){e.addEventListener(t,s,n)}function yc(e,t,s,n){e.removeEventListener(t,s,n)}function vc(e,t,s,n,i=null){const o=e._vei||(e._vei={}),r=o[t];if(n&&r)r.value=n;else{const[a,u]=wc(t);if(n){const l=o[t]=kc(n,i);bc(e,a,l,u)}else r&&(yc(e,a,r,u),o[t]=void 0)}}const Co=/(?:Once|Passive|Capture)$/;function wc(e){let t;if(Co.test(e)){t={};let s;for(;s=e.match(Co);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[to(e.slice(2)),t]}function kc(e,t){const s=n=>{const i=n.timeStamp||js();(fr||i>=s.attached-1)&&Ue(Sc(n,s.value),t,5,[n])};return s.value=e,s.attached=_c(),s}function Sc(e,t){if(qs(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n(i))}else return t}const Mo=/^on[a-z]/,Nc=(e,t,s,n,i=!1,o,r,a,u)=>{t==="class"?uc(e,n,i):t==="style"?dc(e,s,n):sc(t)?nc(t)||vc(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Lc(e,t,n,i))?fc(e,t,n,o,r,a,u):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),hc(e,t,n,i))};function Lc(e,t,s,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&Mo.test(t)&&pr(s)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Mo.test(t)&&Ts(s)?!1:t in e}const ut="transition",Jt="animation",Os=(e,{slots:t})=>ur(Ii,Pc(e),t);Os.displayName="Transition";const mr={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Os.props=eo({},Ii.props,mr);const vt=(e,t=[])=>{qs(e)?e.forEach(s=>s(...t)):e&&e(...t)},Bo=e=>e?qs(e)?e.some(t=>t.length>1):e.length>1:!1;function Pc(e){const t={};for(const w in e)w in mr||(t[w]=e[w]);if(e.css===!1)return t;const{name:s="v",type:n,duration:i,enterFromClass:o=`${s}-enter-from`,enterActiveClass:r=`${s}-enter-active`,enterToClass:a=`${s}-enter-to`,appearFromClass:u=o,appearActiveClass:l=r,appearToClass:f=a,leaveFromClass:d=`${s}-leave-from`,leaveActiveClass:m=`${s}-leave-active`,leaveToClass:A=`${s}-leave-to`}=e,b=xc(i),O=b&&b[0],T=b&&b[1],{onBeforeEnter:L,onEnter:S,onEnterCancelled:k,onLeave:P,onLeaveCancelled:_,onBeforeAppear:c=L,onAppear:h=S,onAppearCancelled:g=k}=t,p=(w,j,D)=>{$t(w,j?f:a),$t(w,j?l:r),D&&D()},v=(w,j)=>{$t(w,A),$t(w,m),j&&j()},y=w=>(j,D)=>{const U=w?h:S,W=()=>p(j,w,D);vt(U,[j,W]),Do(()=>{$t(j,w?u:o),dt(j,w?f:a),Bo(U)||Fo(j,n,O,W)})};return eo(t,{onBeforeEnter(w){vt(L,[w]),dt(w,o),dt(w,r)},onBeforeAppear(w){vt(c,[w]),dt(w,u),dt(w,l)},onEnter:y(!1),onAppear:y(!0),onLeave(w,j){const D=()=>v(w,j);dt(w,d),jc(),dt(w,m),Do(()=>{$t(w,d),dt(w,A),Bo(P)||Fo(w,n,T,D)}),vt(P,[w,D])},onEnterCancelled(w){p(w,!1),vt(k,[w])},onAppearCancelled(w){p(w,!0),vt(g,[w])},onLeaveCancelled(w){v(w),vt(_,[w])}})}function xc(e){if(e==null)return null;if(oc(e))return[en(e.enter),en(e.leave)];{const t=en(e);return[t,t]}}function en(e){return ac(e)}function dt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e._vtc||(e._vtc=new Set)).add(t)}function $t(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:s}=e;s&&(s.delete(t),s.size||(e._vtc=void 0))}function Do(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ac=0;function Fo(e,t,s,n){const i=e._endId=++Ac,o=()=>{i===e._endId&&n()};if(s)return setTimeout(o,s);const{type:r,timeout:a,propCount:u}=Tc(e,t);if(!r)return n();const l=r+"end";let f=0;const d=()=>{e.removeEventListener(l,m),o()},m=A=>{A.target===e&&++f>=u&&d()};setTimeout(()=>{f(s[b]||"").split(", "),i=n(ut+"Delay"),o=n(ut+"Duration"),r=Vo(i,o),a=n(Jt+"Delay"),u=n(Jt+"Duration"),l=Vo(a,u);let f=null,d=0,m=0;t===ut?r>0&&(f=ut,d=r,m=o.length):t===Jt?l>0&&(f=Jt,d=l,m=u.length):(d=Math.max(r,l),f=d>0?r>l?ut:Jt:null,m=f?f===ut?o.length:u.length:0);const A=f===ut&&/\b(transform|all)(,|$)/.test(s[ut+"Property"]);return{type:f,timeout:d,propCount:m,hasTransform:A}}function Vo(e,t){for(;e.lengthGo(s)+Go(e[n])))}function Go(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function jc(){return document.body.offsetHeight}const Oc=["ctrl","shift","alt","meta"],Ec={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Oc.some(s=>e[`${s}Key`]&&!t.includes(s))},Ne=(e,t)=>(s,...n)=>{for(let i=0;is=>{if(!("key"in s))return;const n=to(s.key);if(t.some(i=>i===n||$c[i]===n))return e(s)},Qt={beforeMount(e,{value:t},{transition:s}){e._vod=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):Yt(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:n}){!t!=!s&&(n?t?(n.beforeEnter(e),Yt(e,!0),n.enter(e)):n.leave(e,()=>{Yt(e,!1)}):Yt(e,t))},beforeUnmount(e,{value:t}){Yt(e,t)}};function Yt(e,t){e.style.display=t?e._vod:"none"}const Ic=eo({patchProp:Nc},cc);let qo;function Rc(){return qo||(qo=Nl(Ic))}const Cc=(...e)=>{const t=Rc().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=Mc(n);if(!i)return;const o=t._component;!pr(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const r=s(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t};function Mc(e){return Ts(e)?document.querySelector(e):e}function tn(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function Bc(e){return(...t)=>!e(...t)}function Dc(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function gr(e,t,s,n){return t?e.filter(i=>Dc(n(i,s),t)).sort((i,o)=>n(i,s).length-n(o,s).length):e}function Fc(e){return e.filter(t=>!t.$isLabel)}function sn(e,t){return s=>s.reduce((n,i)=>i[e]&&i[e].length?(n.push({$groupLabel:i[t],$isLabel:!0}),n.concat(i[e])):n,[])}function Vc(e,t,s,n,i){return o=>o.map(r=>{if(!r[s])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const a=gr(r[s],e,t,i);return a.length?{[n]:r[n],[s]:a}:[]})}const Uo=(...e)=>t=>e.reduce((s,n)=>n(s),t),Gc={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return tn(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let s=this.options.concat();return this.internalSearch?s=this.groupValues?this.filterAndFlat(s,t,this.label):gr(s,t,this.label,this.customLabel):s=this.groupValues?sn(this.groupValues,this.groupLabel)(s):s,s=this.hideSelected?s.filter(Bc(this.isSelected)):s,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?s.push({isTag:!0,label:e}):s.unshift({isTag:!0,label:e})),s.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,s){return Uo(Vc(t,s,this.groupValues,this.groupLabel,this.customLabel),sn(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return Uo(sn(this.groupValues,this.groupLabel),Fc)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(tn(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return tn(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(s=>s[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const s=this.trackBy?t[this.groupValues].map(i=>i[this.trackBy]):t[this.groupValues],n=this.internalValue.filter(i=>s.indexOf(this.trackBy?i[this.trackBy]:i)===-1);this.$emit("update:modelValue",n)}else{let s=t[this.groupValues].filter(n=>!(this.isOptionDisabled(n)||this.isSelected(n)));this.max&&s.splice(this.max-this.internalValue.length),this.$emit("select",s,this.id),this.$emit("update:modelValue",this.internalValue.concat(s))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const s=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const n=this.internalValue.slice(0,s).concat(this.internalValue.slice(s+1));this.$emit("update:modelValue",n)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}},qc={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const s=this.options.find(n=>n[this.groupLabel]===t.$groupLabel);return s&&!this.wholeGroupDisabled(s)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(s)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}};const we=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},Uc={name:"vue-multiselect",mixins:[Gc,qc],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}},Hc=["tabindex","aria-owns"],Wc={ref:"tags",class:"multiselect__tags"},zc={class:"multiselect__tags-wrap"},Kc=["textContent"],Jc=["onKeypress","onMousedown"],Qc=["textContent"],Yc={class:"multiselect__spinner"},Xc=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-controls"],Zc=["id","aria-multiselectable"],eu={key:0},tu={class:"multiselect__option"},su=["aria-selected","id","role"],nu=["onClick","onMouseenter","data-select","data-selected","data-deselect"],ou=["data-select","data-deselect","onMouseenter","onMousedown"],iu={class:"multiselect__option"},ru=xe("No elements found. Consider changing the search query."),au={class:"multiselect__option"},lu=xe("List is empty.");function cu(e,t,s,n,i,o){return ie(),pe("div",{tabindex:e.searchable?-1:s.tabindex,class:ye([{"multiselect--active":e.isOpen,"multiselect--disabled":s.disabled,"multiselect--above":o.isAbove,"multiselect--has-options-group":o.hasOptionGroup},"multiselect"]),onFocus:t[13]||(t[13]=r=>e.activate()),onBlur:t[14]||(t[14]=r=>e.searchable?!1:e.deactivate()),onKeydown:[t[15]||(t[15]=Ye(Ne(r=>e.pointerForward(),["self","prevent"]),["down"])),t[16]||(t[16]=Ye(Ne(r=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[17]||(t[17]=Ye(Ne(r=>e.addPointerElement(r),["stop","self"]),["enter","tab"])),onKeyup:t[18]||(t[18]=Ye(r=>e.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+e.id},[Te(e.$slots,"caret",{toggle:e.toggle},()=>[I("div",{onMousedown:t[0]||(t[0]=Ne(r=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),Te(e.$slots,"clear",{search:e.search}),I("div",Wc,[Te(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:o.visibleValues,isOpen:e.isOpen},()=>[Kt(I("div",zc,[(ie(!0),pe(Re,null,Ao(o.visibleValues,(r,a)=>Te(e.$slots,"tag",{option:r,search:e.search,remove:e.removeElement},()=>[(ie(),pe("span",{class:"multiselect__tag",key:a},[I("span",{textContent:ot(e.getOptionLabel(r))},null,8,Kc),I("i",{tabindex:"1",onKeypress:Ye(Ne(u=>e.removeElement(r),["prevent"]),["enter"]),onMousedown:Ne(u=>e.removeElement(r),["prevent"]),class:"multiselect__tag-icon"},null,40,Jc)]))])),256))],512),[[Qt,o.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>s.limit?Te(e.$slots,"limit",{key:0},()=>[I("strong",{class:"multiselect__strong",textContent:ot(s.limitText(e.internalValue.length-s.limit))},null,8,Qc)]):nt("",!0)]),Y(Os,{name:"multiselect__loading"},{default:as(()=>[Te(e.$slots,"loading",{},()=>[Kt(I("div",Yc,null,512),[[Qt,s.loading]])])]),_:3}),e.searchable?(ie(),pe("input",{key:0,ref:"search",name:s.name,id:e.id,type:"text",autocomplete:"off",spellcheck:s.spellcheck,placeholder:e.placeholder,required:s.required,style:xt(o.inputStyle),value:e.search,disabled:s.disabled,tabindex:s.tabindex,onInput:t[1]||(t[1]=r=>e.updateSearch(r.target.value)),onFocus:t[2]||(t[2]=Ne(r=>e.activate(),["prevent"])),onBlur:t[3]||(t[3]=Ne(r=>e.deactivate(),["prevent"])),onKeyup:t[4]||(t[4]=Ye(r=>e.deactivate(),["esc"])),onKeydown:[t[5]||(t[5]=Ye(Ne(r=>e.pointerForward(),["prevent"]),["down"])),t[6]||(t[6]=Ye(Ne(r=>e.pointerBackward(),["prevent"]),["up"])),t[8]||(t[8]=Ye(Ne(r=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[7]||(t[7]=Ye(Ne(r=>e.addPointerElement(r),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,Xc)):nt("",!0),o.isSingleLabelVisible?(ie(),pe("span",{key:1,class:"multiselect__single",onMousedown:t[9]||(t[9]=Ne((...r)=>e.toggle&&e.toggle(...r),["prevent"]))},[Te(e.$slots,"singleLabel",{option:o.singleValue},()=>[xe(ot(e.currentOptionLabel),1)])],32)):nt("",!0),o.isPlaceholderVisible?(ie(),pe("span",{key:2,class:"multiselect__placeholder",onMousedown:t[10]||(t[10]=Ne((...r)=>e.toggle&&e.toggle(...r),["prevent"]))},[Te(e.$slots,"placeholder",{},()=>[xe(ot(e.placeholder),1)])],32)):nt("",!0)],512),Y(Os,{name:"multiselect"},{default:as(()=>[Kt(I("div",{class:"multiselect__content-wrapper",onFocus:t[11]||(t[11]=(...r)=>e.activate&&e.activate(...r)),tabindex:"-1",onMousedown:t[12]||(t[12]=Ne(()=>{},["prevent"])),style:xt({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[I("ul",{class:"multiselect__content",style:xt(o.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[Te(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(ie(),pe("li",eu,[I("span",tu,[Te(e.$slots,"maxElements",{},()=>[xe("Maximum of "+ot(e.max)+" options selected. First remove a selected option to select another.",1)])])])):nt("",!0),!e.max||e.internalValue.length(ie(),pe("li",{class:"multiselect__element",key:a,"aria-selected":e.isSelected(r),id:e.id+"-"+a,role:r&&(r.$isLabel||r.$isDisabled)?null:"option"},[r&&(r.$isLabel||r.$isDisabled)?nt("",!0):(ie(),pe("span",{key:0,class:ye([e.optionHighlight(a,r),"multiselect__option"]),onClick:Ne(u=>e.select(r),["stop"]),onMouseenter:Ne(u=>e.pointerSet(a),["self"]),"data-select":r&&r.isTag?e.tagPlaceholder:o.selectLabelText,"data-selected":o.selectedLabelText,"data-deselect":o.deselectLabelText},[Te(e.$slots,"option",{option:r,search:e.search,index:a},()=>[I("span",null,ot(e.getOptionLabel(r)),1)])],42,nu)),r&&(r.$isLabel||r.$isDisabled)?(ie(),pe("span",{key:1,"data-select":e.groupSelect&&o.selectGroupLabelText,"data-deselect":e.groupSelect&&o.deselectGroupLabelText,class:ye([e.groupHighlight(a,r),"multiselect__option"]),onMouseenter:Ne(u=>e.groupSelect&&e.pointerSet(a),["self"]),onMousedown:Ne(u=>e.selectGroup(r),["prevent"])},[Te(e.$slots,"option",{option:r,search:e.search,index:a},()=>[I("span",null,ot(e.getOptionLabel(r)),1)])],42,ou)):nt("",!0)],8,su))),128)):nt("",!0),Kt(I("li",null,[I("span",iu,[Te(e.$slots,"noResult",{search:e.search},()=>[ru])])],512),[[Qt,s.showNoResults&&e.filteredOptions.length===0&&e.search&&!s.loading]]),Kt(I("li",null,[I("span",au,[Te(e.$slots,"noOptions",{},()=>[lu])])],512),[[Qt,s.showNoOptions&&(e.options.length===0||o.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!s.loading]]),Te(e.$slots,"afterList")],12,Zc)],36),[[Qt,e.isOpen]])]),_:3})],42,Hc)}const uu=we(Uc,[["render",cu]]);const du={data(){return{badges:[{img:"https://camo.githubusercontent.com/d0e25b09a82bc4bfde9f1e048a092752eebbb4f3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c6174",name:"License"},{img:"https://img.shields.io/github/stars/shentao/vue-multiselect.svg?label=Stars",name:"GitHub Stars"},{img:"https://camo.githubusercontent.com/64f9a2333bb303d34b1587e1436b24dee6a8e134/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f646d2f7675652d6d756c746973656c6563742e737667",name:"Npm Monthly Downloads"},{img:"",name:"Full Test Coverage"},{img:"https://img.shields.io/badge/dependencies-none-brightgreen.svg?style=flat",name:"NO Dependencies"}],value:[]}},methods:{onTagging(e){this.source.push({name:e,language:e}),this.value.push({name:e,language:e})}}},pu={class:"badge__name"},hu=["src","alt"],fu=I("span",null,[xe(" Badge not found. Suggest a badge "),I("a",{class:"typo__link",href:"https://github.com/shentao/vue-multiselect/issues",target:"_blank"},"here"),xe(". ")],-1);function mu(e,t,s,n,i,o){const r=oe("multiselect");return ie(),pe("div",null,[Y(r,{options:i.badges,modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=a=>i.value=a),label:"name","track-by":"name",placeholder:"Pick badges",multiple:!0,"show-labels":!1,limit:3,onTag:o.onTagging},{option:as(a=>[I("span",pu,ot(a.option.name),1),a.option.img!==""?(ie(),pe("img",{key:0,class:"badge__img",src:a.option.img,alt:a.option.name},null,8,hu)):nt("",!0)]),noResult:as(()=>[fu]),_:1},8,["options","modelValue","onTag"])])}const gu=we(du,[["render",mu]]),_u=""+new URL("vue-logo-bb2438f9.png",import.meta.url).href,Ho=", 100%, 85%",bu=Un({name:"Start",components:{multiselectExample:gu},data(){return{version:"3.1.0",firstColor:Math.floor(Math.random()*255),secondColor:Math.floor(Math.random()*255)}},computed:{gradient(){return{background:`linear-gradient(to left bottom, hsl(${this.firstColor+Ho}) 0%, hsl(${this.secondColor+Ho}) 100%)`}}}}),yu={class:"center-vertically"},vu={class:"typo__h1"},wu=I("img",{class:"logo",src:_u},null,-1),ku=xe("Vue-multiselect"),Su={class:"version"},Nu=Ae('

The most complete selecting solution for Vue.js

LicensenpmNo Dependencies
',2),Lu={class:"grid__row grid__row--centered"},Pu={class:"grid__column grid__unit--md-6"},xu={class:"multiselect-example__container"},Au=Ae('
',1),Tu=I("div",{class:"grid__row grid__row--centered"},[I("div",{class:"grid__column utils--center"},[I("a",{class:"button button--large button--secondary button--github",href:"https://github.com/shentao/vue-multiselect",target:"_BLANK"},"View on GitHub"),I("a",{class:"button button--large",href:"#sub-getting-started"},"Getting started & example")])],-1);function ju(e,t,s,n,i,o){const r=oe("multiselect-example");return ie(),pe("section",{class:"start",style:xt(e.gradient)},[I("div",yu,[I("h1",vu,[wu,ku,I("small",Su,ot(e.version),1)]),Nu,I("div",Lu,[I("div",Pu,[I("div",xu,[Y(r),Au])])]),Tu])],4)}const Ou=we(bu,[["render",ju]]);function Wo(){ts=Array.from(document.querySelectorAll("[data-section]")).map(e=>({id:e.id,offset:e.getBoundingClientRect().top+window.pageYOffset-50}))}let ts;const Eu={name:"NavMenu",data(){return{isNavSticky:!1,versions:["v1.x","v2.x","v3.x"],version:"v3.x",currentPosition:""}},methods:{adjustNav(){this.isNavSticky=window.scrollY>window.innerHeight,ts||Wo();for(let e=ts.length-1;e>=0;e--)if(window.scrollY>ts[e].offset){this.currentPosition=ts[e].id;break}},pickVersion(e){switch(e){case"v1.x":window.location.assign("v1/index.html");break;case"v2.x":window.location.assign("v2/index.html");break;case"v3.x":window.location.assign("https://vue-multiselect.js.org/");break}}},mounted(){this.adjustNav(),window.addEventListener("scroll",this.adjustNav),setTimeout(function(){Wo()},1e3)}},$u=I("li",{class:"list__heading"},"Setup",-1),Iu={class:"list__element"},Ru={class:"list__element"},Cu={class:"list__heading"},Mu={class:"list__element"},Bu={class:"list__element"},Du={class:"list__element"},Fu={class:"list__element"},Vu={class:"list__element"},Gu={class:"list__element"},qu={class:"list__element"},Uu={class:"list__element"},Hu={class:"list__element"},Wu={class:"list__element"},zu={class:"list__element"},Ku={class:"list__element"},Ju=I("li",{class:"list__heading"},"API",-1),Qu={class:"list__element"},Yu={class:"list__element"},Xu={class:"list__element"},Zu=Ae('
  • Our other libraries
  • VuelidateSimple model-based validation plugin for Vue.js
  • ',2);function ed(e,t,s,n,i,o){const r=oe("multiselect");return ie(),pe("ul",{class:ye(["list",{"list--sticky":i.isNavSticky}])},[Y(r,{class:"list__multiselect",options:i.versions,"model-value":i.version,"allow-empty":!1,searchable:!1,"onUpdate:modelValue":o.pickVersion,"select-label":"Go to","deselect-label":"","selected-label":""},null,8,["options","model-value","onUpdate:modelValue"]),$u,I("li",Iu,[I("a",{href:"#sub-getting-started",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-getting-started"}])},"Getting Started",2)]),I("li",Ru,[I("a",{href:"#sub-migration-guide",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-migration-guide"}])},"Migration Guide",2)]),I("li",Cu,[I("a",{href:"#examples",class:ye(["link blank__link",{"list__link--active":i.currentPosition==="sub-examples"}])},"Examples",2)]),I("li",Mu,[I("a",{href:"#sub-single-select",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-single-select"}])},"Single select",2)]),I("li",Bu,[I("a",{href:"#sub-single-select-object",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-single-select-object"}])},"Single select (object)",2)]),I("li",Du,[I("a",{href:"#sub-select-with-search",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-select-with-search"}])},"Select with search",2)]),I("li",Fu,[I("a",{href:"#sub-multiple-select",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-multiple-select"}])},"Multiple select",2)]),I("li",Vu,[I("a",{href:"#sub-asynchronous-select",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-asynchronous-select"}])},"Asynchronous select",2)]),I("li",Gu,[I("a",{href:"#sub-tagging",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-tagging"}])},"Tagging",2)]),I("li",qu,[I("a",{href:"#sub-custom-option-template",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-custom-option-template"}])},"Custom option template",2)]),I("li",Uu,[I("a",{href:"#sub-option-groups",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-option-groups"}])},"Option groups",2)]),I("li",Hu,[I("a",{href:"#sub-vuex-support",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-vuex-support"}])},"Vuex support",2)]),I("li",Wu,[I("a",{href:"#sub-action-dispatcher",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-action-dispatcher"}])},"Action dispatcher",2)]),I("li",zu,[I("a",{href:"#sub-custom-configuration",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-custom-configuration"}])},"Custom configuration",2)]),I("li",Ku,[I("a",{href:"#sub-programmatic-control",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-programmatic-control"}])},"Programmatic control",2)]),Ju,I("li",Qu,[I("a",{href:"#sub-props",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-props"}])},"Props",2)]),I("li",Yu,[I("a",{href:"#sub-events",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-events"}])},"Events",2)]),I("li",Xu,[I("a",{href:"#sub-slots",class:ye(["link list__link",{"list__link--active":i.currentPosition==="sub-slots"}])},"Slots",2)]),Zu],2)}const td=we(Eu,[["render",ed]]),sd={name:"GettingStarted",mounted:function(){this.$refs["basic-usage"].innerHTML=this.highlighter.codeToHtml(this.$refs["basic-usage"].innerText,{lang:"html"}),this.$refs["npm-install"].innerHTML=this.highlighter.codeToHtml(this.$refs["npm-install"].innerText,{lang:"bash"}),this.$refs["cdn-install"].innerHTML=this.highlighter.codeToHtml(this.$refs["cdn-install"].innerText,{lang:"html"}),this.$refs["cdn-usage"].innerHTML=this.highlighter.codeToHtml(this.$refs["cdn-usage"].innerText,{lang:"javascript"})}},nd={class:"grid__row"},od={class:"grid__column"},id={id:"sub-getting-started","data-section":"data-section"},rd=I("h1",{class:"typo__h1"},"Getting started",-1),ad=I("hr",{class:"typo__hr"},null,-1),ld={class:"grid__row"},cd=I("div",{class:"grid__column"},[I("h2",{class:"typo__h2"},"Prerequisites"),I("p",null,"The multiselect from version 3.x requires Vue 3.0. If you need a version of the multiselect to support an older version of Vue, check out 2.x versions")],-1),ud={class:"grid__column"},dd=I("h2",{class:"typo__h2"},"Installation",-1),pd=I("h3",{class:"typo__h3"},"via npm",-1),hd=xe(" "),fd={ref:"npm-install"},md=xe(` + `),gd=I("h3",{class:"typo__h3"},"via CDN",-1),_d=xe(" "),bd={ref:"cdn-install"},yd=xe(` + `),vd={class:"grid__column"},wd=I("h2",{class:"typo__h2"},"Basic usage",-1),kd=I("h3",{class:"typo__h3"},"via npm",-1),Sd={ref:"basic-usage"},Nd=I("h3",{class:"typo__h3"},"via CDN",-1),Ld={ref:"cdn-usage"},Pd=Ae('

    Migration Guide


    If you are upgrading from vue-multiselect 2.x, there are only Vue 2 to Vue 3 Migration tasks to complete. These include:

    • value prop is now modelValue
    • @input event is now @update:modelValue

    If you are having issues with your migration, here are some tips and tricks to apply:

    • Change props use kebab-case style
    • If you are using slots, check if your templates are setup correctly based of the examples below
    ',1);function xd(e,t,s,n,i,o){return ie(),pe("div",nd,[I("div",od,[I("section",id,[rd,ad,I("div",ld,[cd,I("div",ud,[dd,pd,I("pre",null,[hd,I("code",fd,"npm install vue-multiselect --save",512),md]),gd,I("pre",null,[_d,I("code",bd,` + diff --git a/documentation/src/components/Props.vue b/documentation/src/components/Props.vue index 4273fdb5..a061f24b 100644 --- a/documentation/src/components/Props.vue +++ b/documentation/src/components/Props.vue @@ -299,6 +299,12 @@ false Enables search input's browser spellcheck if true.
    Added in v3.1.0 + + required + Boolean + false + Passes the Boolean value to the inbuilt input element.
    Added in v3.1.0 + pointerMixin.js