import{i as e,R as a,aC as o,h as r,I as t,B as l,G as s}from"./iframe-DvhcA1iZ.js";import"./preload-helper-PPVm8Dsz.js";const u=`Afghanistan
Albania
Algeria
Andorra
Angola
Antigua & Deps
Argentina
Armenia
Australia
Austria
Azerbaijan
Bahamas
Bahrain
Bangladesh
Barbados
Belarus
Belgium
Belize
Benin
Bhutan
Bolivia
Bosnia Herzegovina
Botswana
Brazil
Brunei
Bulgaria
Burkina
Burundi
Cambodia
Cameroon
Canada
Cape Verde
Central African Rep
Chad
Chile
China
Colombia
Comoros
Congo
Congo {Democratic Rep}
Costa Rica
Croatia
Cuba
Cyprus
Czech Republic
Denmark
Djibouti
Dominica
Dominican Republic
East Timor
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Ethiopia
Fiji
Finland
France
Gabon
Gambia
Georgia
Germany
Ghana
Greece
Grenada
Guatemala
Guinea
Guinea-Bissau
Guyana
Haiti
Honduras
Hungary
Iceland
India
Indonesia
Iran
Iraq
Ireland {Republic}
Israel
Italy
Ivory Coast
Jamaica
Japan
Jordan
Kazakhstan
Kenya
Kiribati
Korea North
Korea South
Kosovo
Kuwait
Kyrgyzstan
Laos
Latvia
Lebanon
Lesotho
Liberia
Libya
Liechtenstein
Lithuania
Luxembourg
Macedonia
Madagascar
Malawi
Malaysia
Maldives
Mali
Malta
Marshall Islands
Mauritania
Mauritius
Mexico
Micronesia
Moldova
Monaco
Mongolia
Montenegro
Morocco
Mozambique
Myanmar, {Burma}
Namibia
Nauru
Nepal
Netherlands
New Zealand
Nicaragua
Niger
Nigeria
Norway
Oman
Pakistan
Palau
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Poland
Portugal
Qatar
Romania
Russian Federation
Rwanda
St Kitts & Nevis
St Lucia
Saint Vincent & the Grenadines
Samoa
San Marino
Sao Tome & Principe
Saudi Arabia
Senegal
Serbia
Seychelles
Sierra Leone
Singapore
Slovakia
Slovenia
Solomon Islands
Somalia
South Africa
South Sudan
Spain
Sri Lanka
Sudan
Suriname
Swaziland
Sweden
Switzerland
Syria
Taiwan
Tajikistan
Tanzania
Thailand
Togo
Tonga
Trinidad & Tobago
Tunisia
Turkey
Turkmenistan
Tuvalu
Uganda
Ukraine
United Arab Emirates
United Kingdom
United States
Uruguay
Uzbekistan
Vanuatu
Vatican City
Venezuela
Vietnam
Yemen
Zambia
Zimbabwe`.split(`
`).map(n=>n.trim()),p={title:"Components/Form/Input",component:e,tags:["autodocs","form"],argTypes:{error:{type:"boolean"},disabled:{type:"boolean"},readOnly:{type:"boolean"},prefix:{type:"string"},suffix:{type:"string"},children:{table:{disable:!0}}}},g={args:{placeholder:"Capacity",prefix:a.createElement(r,{name:t.battery}),suffix:"kWh"}},c=(n,i)=>{alert("Suggestion "+(i?"picked":"matched")+" : "+n)},h={render:()=>a.createElement(s,null,a.createElement(e,{placeholder:"Capacity",prefix:a.createElement(r,{name:t.battery}),suffix:"kWh"}),a.createElement(e,{value:"William J. Welter"}),a.createElement(e,{prefix:"Text prefix",value:"Polly W. Wilson"}),a.createElement(e,{prefix:"Disabled",value:"Clayton J. Foster",disabled:!0}),a.createElement(e,{prefix:"Read only",value:"Norma J. Gomez",readOnly:!0}),a.createElement(e,{placeholder:"With suggestions, try country name",suggestions:u,onSuggestionMatch:c}))},y={render:()=>{const n=a.useRef(null),i=o.useCallback(()=>{n.current&&(n.current.value=(Math.random()*100).toFixed(2))},[]);return a.createElement(a.Fragment,null,a.createElement(e,{ref:n,placeholder:"Capacity",prefix:a.createElement(r,{name:t.battery}),suffix:"kWh"}),a.createElement(l,{onClick:i},"Set random value"))}},b=["Primary","Mixed","InputRef"];export{y as InputRef,h as Mixed,g as Primary,b as __namedExportsOrder,p as default};
