1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6603],{49618:function(e,u,c){c.d(u,{_s:function(){return Y},NI:function(){return J},iX:function(){return T},Ph:function(){return R}});var r,n,D,a,o=c(24246),l=c(27378),d=c(10513),y=c(89003);(r=D||(D={})).FileInvalidType="file-invalid-type",r.FileTooLarge="file-too-large",r.FileTooSmall="file-too-small",r.TooManyFiles="too-many-files";let i=e=>e/1e3<1e3?"".concat(Math.round(e/1e3)," Ko"):e/1e6<1e3?"".concat(Math.round(e/1e6)," Mo"):"".concat(Math.round(e/1e9)," Go");async function t(e,u){return Promise.all(e.map(e=>{let c=new FormData;return c.append("file",e),fetch(u,{method:"POST",credentials:"same-origin",headers:{},body:c}).then(e=>e.json()).then(e=>({id:e.id,name:e.name,size:e.size,url:e.url,type:e.type}))})).then(e=>e)}let _=(e,u,c)=>e.map(e=>{let r=e.errors[0];if((null==c?void 0:c.maxSize)&&"file-too-large"===r.code)return u.formatMessage({id:"error-image-too-big"},{size:i(c.maxSize)});if((null==c?void 0:c.format)&&"file-invalid-type"===r.code){let c=e.file.type.split("/")[1],r=e.file.name;return u.formatMessage({id:"error-file-not-supported"},{fileName:r,fileExtension:c})}return""}).filter(Boolean),m=(e,u,c,r,n)=>{let D=_(e,r,n);u(c?D:D[0])},C=(e,u,c,r)=>{var n;if(!("image"!==(n=e[0].type,/^(.+?)\//.test(n)?n.split("/")[0]:/^\./.test(n)?n.split(".")[1]:n))){if(r){let n=new Image;n.onload=function(){n.width&&n.height&&r.width&&r.height&&(n.width<r.width||n.height<r.height)&&u(c.formatMessage({id:"warning-image-quality"}))},n.src=URL.createObjectURL(e[0])}else e[0].size>1572864&&u(c.formatMessage({id:"warning-image-size-big"}))}},s=(0,l.forwardRef)((e,u)=>{let{onDrop:c,onDropRejected:r,uploadURI:n,multiple:D=!1,maxSize:a=1e7,value:i,onChange:_,onRemove:s,...g}=e,f=(0,y.Z)(),[F,E]=(0,l.useState)([]),[b,A]=(0,l.useState)(null),M=(0,l.useRef)(i);(0,l.useEffect)(()=>{M.current=i},[i]);let h={uploaderPrompt:f.formatMessage({id:"uploader-prompt"},{count:D?2:1}),uploaderLoadingPrompt:f.formatMessage({id:"page-media-add--loading"}),fileDeleteLabel:f.formatMessage({id:"action_delete"})},S=()=>{E(null),A(null)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.Qm,{ref:u,wording:h,onDrop:async function(){for(var e=arguments.length,u=Array(e),r=0;r<e;r++)u[r]=arguments[r];if(C(u[0],A,f,g.minResolution),n){let e=await t(u[0],n);if(_){if(D){let u=[...Array.isArray(M.current)?M.current:[],...e],c=g.maxFiles?u.slice(0,g.maxFiles):u;M.current=c,_(c)}else _(e[0])}}(F||b)&&S(),c&&c(...u)},value:i,onDropRejected:(e,u)=>{(a||g.format)&&m(e,E,D,f,{maxSize:a,format:g.format}),r&&r(e,u)},multiple:D,maxSize:a,onRemove:e=>{_&&_(null),s&&s(e)},...g}),b&&(0,o.jsx)(d.$J,{variant:"warning",children:(0,o.jsx)(d.$J.Title,{children:b})}),Array.isArray(F)&&F.length>0&&(0,o.jsxs)(d.$J,{variant:"danger",children:[(0,o.jsx)(d.$J.Title,{children:f.formatMessage({id:"uploader.rejected.list.title"})}),F.map((e,u)=>(0,o.jsx)(d.$J.Content,{color:"red.900",children:e},"error-".concat(u)))]}),!Array.isArray(F)&&F&&(0,o.jsx)(d.$J,{variant:"danger",children:(0,o.jsx)(d.$J.Title,{children:F})}),D&&Array.isArray(i)&&i.length>0&&(0,o.jsx)(d.mF,{files:i,deleteFileLabel:f.formatMessage({id:"action_delete"}),onRemove:e=>{_&&Array.isArray(i)&&_(i.filter(u=>u.id!==e.id))}})]})});s.displayName="Uploader";var g=c(60042),f=c.n(g),F=c(19200),E=[{name:"Afghanistan",dial_code:93,country_code:"AF",flag:"\uD83C\uDDE6\uD83C\uDDEB",currency:"AFN",currency_symbol:"Af"},{name:"Albania",dial_code:355,country_code:"AL",flag:"\uD83C\uDDE6\uD83C\uDDF1",currency:"ALL",currency_symbol:"L"},{name:"Algeria",dial_code:213,country_code:"DZ",flag:"\uD83C\uDDE9\uD83C\uDDFF",currency:"DZD",currency_symbol:"د.ج"},{name:"AmericanSamoa",dial_code:1684,country_code:"AS",flag:"\uD83C\uDDE6\uD83C\uDDF8",currency:"USD",currency_symbol:"$"},{name:"Andorra",dial_code:376,country_code:"AD",flag:"\uD83C\uDDE6\uD83C\uDDE9",currency:"EUR",currency_symbol:"â¬"},{name:"Angola",dial_code:244,country_code:"AO",flag:"\uD83C\uDDE6\uD83C\uDDF4",currency:"AOA",currency_symbol:"Kz"},{name:"Anguilla",dial_code:1264,country_code:"AI",flag:"\uD83C\uDDE6\uD83C\uDDEE",currency:"XCD",currency_symbol:"$"},{name:"Antigua and Barbuda",dial_code:1268,country_code:"AG",flag:"\uD83C\uDDE6\uD83C\uDDEC",currency:"XCD",currency_symbol:"$"},{name:"Argentina",dial_code:54,country_code:"AR",flag:"\uD83C\uDDE6\uD83C\uDDF7",currency:"ARS",currency_symbol:"$"},{name:"Armenia",dial_code:374,country_code:"AM",flag:"\uD83C\uDDE6\uD83C\uDDF2",currency:"AMD",currency_symbol:"Ô´"},{name:"Aruba",dial_code:297,country_code:"AW",flag:"\uD83C\uDDE6\uD83C\uDDFC",currency:"AWG",currency_symbol:"Æ"},{name:"Australia",dial_code:61,country_code:"AU",flag:"\uD83C\uDDE6\uD83C\uDDFA",currency:"AUD",currency_symbol:"$"},{name:"Austria",dial_code:43,country_code:"AT",flag:"\uD83C\uDDE6\uD83C\uDDF9",currency:"EUR",currency_symbol:"â¬"},{name:"Azerbaijan",dial_code:994,country_code:"AZ",flag:"\uD83C\uDDE6\uD83C\uDDFF",currency:"AZN",currency_symbol:"ман"},{name:"Bahamas",dial_code:1242,country_code:"BS",flag:"\uD83C\uDDE7\uD83C\uDDF8",currency:"BSD",currency_symbol:"$"},{name:"Bahrain",dial_code:973,country_code:"BH",flag:"\uD83C\uDDE7\uD83C\uDDED",currency:"BHD",currency_symbol:"ب.د"},{name:"Bangladesh",dial_code:880,country_code:"BD",flag:"\uD83C\uDDE7\uD83C\uDDE9",currency:"BDT",currency_symbol:"à§³"},{name:"Barbados",dial_code:1246,country_code:"BB",flag:"\uD83C\uDDE7\uD83C\uDDE7",currency:"BBD",currency_symbol:"$"},{name:"Belarus",dial_code:375,country_code:"BY",flag:"\uD83C\uDDE7\uD83C\uDDFE",currency:"BYN",currency_symbol:"Br"},{name:"Belgium",dial_code:32,country_code:"BE",flag:"\uD83C\uDDE7\uD83C\uDDEA",currency:"EUR",currency_symbol:"â¬"},{name:"Belize",dial_code:501,country_code:"BZ",flag:"\uD83C\uDDE7\uD83C\uDDFF",currency:"BZD",currency_symbol:"$"},{name:"Benin",dial_code:229,country_code:"BJ",flag:"\uD83C\uDDE7\uD83C\uDDEF",currency:"XAF",currency_symbol:"â£"},{name:"Bermuda",dial_code:1441,country_code:"BM",flag:"\uD83C\uDDE7\uD83C\uDDF2",currency:"BMD",currency_symbol:"$"},{name:"Bhutan",dial_code:975,country_code:"BT",flag:"\uD83C\uDDE7\uD83C\uDDF9",currency:"BTN",currency_symbol:"Nu"},{name:"Plurinational State of Bolivia",dial_code:591,country_code:"BO",flag:"\uD83C\uDDE7\uD83C\uDDF4",currency:"BOB",currency_symbol:"Bs"},{name:"Bosnia and Herzegovina",dial_code:387,country_code:"BA",flag:"\uD83C\uDDE7\uD83C\uDDE6",currency:"BAM",currency_symbol:"ÐÐ"},{name:"Botswana",dial_code:267,country_code:"BW",flag:"\uD83C\uDDE7\uD83C\uDDFC",currency:"BWP",currency_symbol:"P"},{name:"Brazil",dial_code:55,country_code:"BR",flag:"\uD83C\uDDE7\uD83C\uDDF7",currency:"BRL",currency_symbol:"R$"},{name:"British Indian Ocean Territory",dial_code:246,country_code:"IO",flag:"\uD83C\uDDEE\uD83C\uDDF4",currency:"GBP",currency_symbol:"\xa3"},{name:"Brunei Darussalam",dial_code:673,country_code:"BN",flag:"\uD83C\uDDE7\uD83C\uDDF3",currency:"BND",currency_symbol:"$"},{name:"Bulgaria",dial_code:359,country_code:"BG",flag:"\uD83C\uDDE7\uD83C\uDDEC",currency:"BGN",currency_symbol:"лв"},{name:"Burkina Faso",dial_code:226,country_code:"BF",flag:"\uD83C\uDDE7\uD83C\uDDEB",currency:"XAF",currency_symbol:"â£"},{name:"Burundi",dial_code:257,country_code:"BI",flag:"\uD83C\uDDE7\uD83C\uDDEE",currency:"BIF",currency_symbol:"â£"},{name:"Cambodia",dial_code:855,country_code:"KH",flag:"\uD83C\uDDF0\uD83C\uDDED",currency:"KHR",currency_symbol:"á"},{name:"Cameroon",dial_code:237,country_code:"CM",flag:"\uD83C\uDDE8\uD83C\uDDF2",currency:"XAF",currency_symbol:"â£"},{name:"Canada",dial_code:1,country_code:"CA",flag:"\uD83C\uDDE8\uD83C\uDDE6",currency:"CAD",currency_symbol:"$"},{name:"Cape Verde",dial_code:238,country_code:"CV",flag:"\uD83C\uDDE8\uD83C\uDDFB",currency:"CVE",currency_symbol:"$"},{name:"Cayman Islands",dial_code:345,country_code:"KY",flag:"\uD83C\uDDF0\uD83C\uDDFE",currency:"KYD",currency_symbol:"$"},{name:"Central African Republic",dial_code:236,country_code:"CF",flag:"\uD83C\uDDE8\uD83C\uDDEB",currency:"XAF",currency_symbol:"â£"},{name:"Chad",dial_code:235,country_code:"TD",flag:"\uD83C\uDDF9\uD83C\uDDE9",currency:"XAF",currency_symbol:"â£"},{name:"Chile",dial_code:56,country_code:"CL",flag:"\uD83C\uDDE8\uD83C\uDDF1",currency:"CLP",currency_symbol:"$"},{name:"China",dial_code:86,country_code:"CN",flag:"\uD83C\uDDE8\uD83C\uDDF3",currency:"CNY",currency_symbol:"\xa5"},{name:"Christmas Island",dial_code:61,country_code:"CX",flag:"\uD83C\uDDE8\uD83C\uDDFD",currency:"AUD",currency_symbol:"$"},{name:"Cocos (Keeling) Islands",dial_code:61,country_code:"CC",flag:"\uD83C\uDDE8\uD83C\uDDE8",currency:"AUD",currency_symbol:"$"},{name:"Colombia",dial_code:57,country_code:"CO",flag:"\uD83C\uDDE8\uD83C\uDDF4",currency:"COP",currency_symbol:"$"},{name:"Comoros",dial_code:269,country_code:"KM",flag:"\uD83C\uDDF0\uD83C\uDDF2",currency:"KMF",currency_symbol:"CF"},{name:"Congo",dial_code:242,country_code:"CG",flag:"\uD83C\uDDE8\uD83C\uDDEC",currency:"CDF",currency_symbol:"â£"},{name:"Democratic Republic of the Congo",dial_code:243,country_code:"CD",flag:"\uD83C\uDDE8\uD83C\uDDE9",currency:"CDF",currency_symbol:"FC"},{name:"Cook Islands",dial_code:682,country_code:"CK",flag:"\uD83C\uDDE8\uD83C\uDDF0",currency:"NZD",currency_symbol:"$"},{name:"Costa Rica",dial_code:506,country_code:"CR",flag:"\uD83C\uDDE8\uD83C\uDDF7",currency:"CRC",currency_symbol:"â¡"},{name:"Cote d'Ivoire",dial_code:225,country_code:"CI",flag:"\uD83C\uDDE8\uD83C\uDDEE",currency:"XOF",currency_symbol:"CFA"},{name:"Croatia",dial_code:385,country_code:"HR",flag:"\uD83C\uDDED\uD83C\uDDF7",currency:"HRK",currency_symbol:"Kn"},{name:"Cuba",dial_code:53,country_code:"CU",flag:"\uD83C\uDDE8\uD83C\uDDFA",currency:"CUP",currency_symbol:"$"},{name:"Cyprus",dial_code:537,country_code:"CY",flag:"\uD83C\uDDE8\uD83C\uDDFE",currency:"EUR",currency_symbol:"â¬"},{name:"Czech Republic",dial_code:420,country_code:"CZ",flag:"\uD83C\uDDE8\uD83C\uDDFF",currency:"CZK",currency_symbol:"KÄ"},{name:"Denmark",dial_code:45,country_code:"DK",flag:"\uD83C\uDDE9\uD83C\uDDF0",currency:"DKK",currency_symbol:"kr"},{name:"Djibouti",dial_code:253,country_code:"DJ",flag:"\uD83C\uDDE9\uD83C\uDDEF",currency:"DJF",currency_symbol:"â£"},{name:"Dominica",dial_code:1767,country_code:"DM",flag:"\uD83C\uDDE9\uD83C\uDDF2",currency:"DOP",currency_symbol:"$"},{name:"Dominican Republic",dial_code:1849,country_code:"DO",flag:"\uD83C\uDDE9\uD83C\uDDF4",currency:"DOP",currency_symbol:"$"},{name:"Ecuador",dial_code:593,country_code:"EC",flag:"\uD83C\uDDEA\uD83C\uDDE8",currency:"USD",currency_symbol:"$"},{name:"Egypt",dial_code:20,country_code:"EG",flag:"\uD83C\uDDEA\uD83C\uDDEC",currency:"EGP",currency_symbol:"\xa3"},{name:"El Salvador",dial_code:503,country_code:"SV",flag:"\uD83C\uDDF8\uD83C\uDDFB",currency:"USD",currency_symbol:"$"},{name:"Equatorial Guinea",dial_code:240,country_code:"GQ",flag:"\uD83C\uDDEC\uD83C\uDDF6",currency:"XAF",currency_symbol:"â£"},{name:"Eritrea",dial_code:291,country_code:"ER",flag:"\uD83C\uDDEA\uD83C\uDDF7",currency:"ERN",currency_symbol:"Nfk"},{name:"Estonia",dial_code:372,country_code:"EE",flag:"\uD83C\uDDEA\uD83C\uDDEA",currency:"EUR",currency_symbol:"â¬"},{name:"Ethiopia",dial_code:251,country_code:"ET",flag:"\uD83C\uDDEA\uD83C\uDDF9",currency:"ETB",currency_symbol:"á¥á"},{name:"Falkland Islands (Malvinas)",dial_code:500,country_code:"FK",flag:"\uD83C\uDDEB\uD83C\uDDF0",currency:"FKP",currency_symbol:"\xa3"},{name:"Faroe Islands",dial_code:298,country_code:"FO",flag:"\uD83C\uDDEB\uD83C\uDDF4",currency:"FOK",currency_symbol:"kr"},{name:"Fiji",dial_code:679,country_code:"FJ",flag:"\uD83C\uDDEB\uD83C\uDDEF",currency:"FJD",currency_symbol:"$"},{name:"Finland",dial_code:358,country_code:"FI",flag:"\uD83C\uDDEB\uD83C\uDDEE",currency:"EUR",currency_symbol:"â¬"},{name:"France",dial_code:33,country_code:"FR",flag:"\uD83C\uDDEB\uD83C\uDDF7",currency:"EUR",currency_symbol:"â¬"},{name:"French Guiana",dial_code:594,country_code:"GF",flag:"\uD83C\uDDEC\uD83C\uDDEB",currency:"EUR",currency_symbol:"â¬"},{name:"French Polynesia",dial_code:689,country_code:"PF",flag:"\uD83C\uDDF5\uD83C\uDDEB",currency:"XPF",currency_symbol:"â£"},{name:"Gabon",dial_code:241,country_code:"GA",flag:"\uD83C\uDDEC\uD83C\uDDE6",currency:"XAF",currency_symbol:"â£"},{name:"Gambia",dial_code:220,country_code:"GM",flag:"\uD83C\uDDEC\uD83C\uDDF2",currency:"GMD",currency_symbol:"D"},{name:"Georgia",dial_code:995,country_code:"GE",flag:"\uD83C\uDDEC\uD83C\uDDEA",currency:"GEL",currency_symbol:"á"},{name:"Germany",dial_code:49,country_code:"DE",flag:"\uD83C\uDDE9\uD83C\uDDEA",currency:"EUR",currency_symbol:"â¬"},{name:"Ghana",dial_code:233,country_code:"GH",flag:"\uD83C\uDDEC\uD83C\uDDED",currency:"GHS",currency_symbol:"âµ"},{name:"Gibraltar",dial_code:350,country_code:"GI",flag:"\uD83C\uDDEC\uD83C\uDDEE",currency:"GIP",currency_symbol:"\xa3"},{name:"Greece",dial_code:30,country_code:"GR",flag:"\uD83C\uDDEC\uD83C\uDDF7",currency:"EUR",currency_symbol:"â¬"},{name:"Greenland",dial_code:299,country_code:"GL",flag:"\uD83C\uDDEC\uD83C\uDDF1",currency:"DKK",currency_symbol:"kr."},{name:"Grenada",dial_code:1473,country_code:"GD",flag:"\uD83C\uDDEC\uD83C\uDDE9",currency:"XCD",currency_symbol:"$"},{name:"Guadeloupe",dial_code:590,country_code:"GP",flag:"\uD83C\uDDEC\uD83C\uDDF5",currency:"EUR",currency_symbol:"â¬"},{name:"Guam",dial_code:1671,country_code:"GU",flag:"\uD83C\uDDEC\uD83C\uDDFA",currency:"USD",currency_symbol:"$"},{name:"Guatemala",dial_code:502,country_code:"GT",flag:"\uD83C\uDDEC\uD83C\uDDF9",currency:"GTQ",currency_symbol:"Q"},{name:"Guernsey",dial_code:44,country_code:"GG",flag:"\uD83C\uDDEC\uD83C\uDDEC",currency:"GBP",currency_symbol:"\xa3"},{name:"Guinea",dial_code:224,country_code:"GN",flag:"\uD83C\uDDEC\uD83C\uDDF3",currency:"GNF",currency_symbol:"â£"},{name:"Guinea-Bissau",dial_code:245,country_code:"GW",flag:"\uD83C\uDDEC\uD83C\uDDFC",currency:"XAF",currency_symbol:"â£"},{name:"Guyana",dial_code:595,country_code:"GY",flag:"\uD83C\uDDEC\uD83C\uDDFE",currency:"GYD",currency_symbol:"$"},{name:"Haiti",dial_code:509,country_code:"HT",flag:"\uD83C\uDDED\uD83C\uDDF9",currency:"HTG",currency_symbol:"G"},{name:"Holy See (Vatican City State)",dial_code:379,country_code:"VA",flag:"\uD83C\uDDFB\uD83C\uDDE6",currency:"EUR",currency_symbol:"â¬"},{name:"Honduras",dial_code:504,country_code:"HN",flag:"\uD83C\uDDED\uD83C\uDDF3",currency:"HNL",currency_symbol:"L"},{name:"Hong Kong",dial_code:852,country_code:"HK",flag:"\uD83C\uDDED\uD83C\uDDF0",currency:"HKD",currency_symbol:"$"},{name:"Hungary",dial_code:36,country_code:"HU",flag:"\uD83C\uDDED\uD83C\uDDFA",currency:"HUF",currency_symbol:"Ft"},{name:"Iceland",dial_code:354,country_code:"IS",flag:"\uD83C\uDDEE\uD83C\uDDF8",currency:"ISK",currency_symbol:"Kr"},{name:"India",dial_code:91,country_code:"IN",flag:"\uD83C\uDDEE\uD83C\uDDF3",currency:"INR",currency_symbol:"â¹ "},{name:"Indonesia",dial_code:62,country_code:"ID",flag:"\uD83C\uDDEE\uD83C\uDDE9",currency:"IDR",currency_symbol:"Rp"},{name:"Iran",dial_code:98,country_code:"IR",flag:"\uD83C\uDDEE\uD83C\uDDF7",currency:"IRR",currency_symbol:"ï·¼"},{name:"Iraq",dial_code:964,country_code:"IQ",flag:"\uD83C\uDDEE\uD83C\uDDF6",currency:"IQD",currency_symbol:"ع.د"},{name:"Ireland",dial_code:353,country_code:"IE",flag:"\uD83C\uDDEE\uD83C\uDDEA",currency:"EUR",currency_symbol:"â¬"},{name:"Isle of Man",dial_code:44,country_code:"IM",flag:"\uD83C\uDDEE\uD83C\uDDF2",currency:"IMP",currency_symbol:"\xa3"},{name:"Israel",dial_code:972,country_code:"IL",flag:"\uD83C\uDDEE\uD83C\uDDF1",currency:"ILS",currency_symbol:"âª"},{name:"Italy",dial_code:39,country_code:"IT",flag:"\uD83C\uDDEE\uD83C\uDDF9",currency:"EUR",currency_symbol:"â¬"},{name:"Jamaica",dial_code:1876,country_code:"JM",flag:"\uD83C\uDDEF\uD83C\uDDF2",currency:"JMD",currency_symbol:"$"},{name:"Japan",dial_code:81,country_code:"JP",flag:"\uD83C\uDDEF\uD83C\uDDF5",currency:"JPY",currency_symbol:"\xa5"},{name:"Jersey",dial_code:44,country_code:"JE",flag:"\uD83C\uDDEF\uD83C\uDDEA",currency:"JEP",currency_symbol:"\xa3"},{name:"Jordan",dial_code:962,country_code:"JO",flag:"\uD83C\uDDEF\uD83C\uDDF4",currency:"JOD",currency_symbol:"د.ا"},{name:"Kazakhstan",dial_code:77,country_code:"KZ",flag:"\uD83C\uDDF0\uD83C\uDDFF",currency:"KZT",currency_symbol:"ã"},{name:"Kenya",dial_code:254,country_code:"KE",flag:"\uD83C\uDDF0\uD83C\uDDEA",currency:"KES",currency_symbol:"Sh"},{na
1me:"Kiribati",dial_code:686,country_code:"KI",flag:"\uD83C\uDDF0\uD83C\uDDEE",currency:"AUD",currency_symbol:"$"},{name:"Democratic People's Republic of Korea",dial_code:850,country_code:"KP",flag:"\uD83C\uDDF0\uD83C\uDDF5",currency:"KPW",currency_symbol:"â©"},{name:"Republic of Korea",dial_code:82,country_code:"KR",flag:"\uD83C\uDDF0\uD83C\uDDF7",currency:"KRW",currency_symbol:"â©"},{name:"Kuwait",dial_code:965,country_code:"KW",flag:"\uD83C\uDDF0\uD83C\uDDFC",currency:"KWD",currency_symbol:"د.Ù"},{name:"Kyrgyzstan",dial_code:996,country_code:"KG",flag:"\uD83C\uDDF0\uD83C\uDDEC",currency:"KGS",currency_symbol:"Ðв"},{name:"Lao People's Democratic Republic",dial_code:856,country_code:"LA",flag:"\uD83C\uDDF1\uD83C\uDDE6",currency:"LAK",currency_symbol:"â"},{name:"Latvia",dial_code:371,country_code:"LV",flag:"\uD83C\uDDF1\uD83C\uDDFB",currency:"EUR",currency_symbol:"â¬"},{name:"Lebanon",dial_code:961,country_code:"LB",flag:"\uD83C\uDDF1\uD83C\uDDE7",currency:"LBP",currency_symbol:"Ù.Ù"},{name:"Lesotho",dial_code:266,country_code:"LS",flag:"\uD83C\uDDF1\uD83C\uDDF8",currency:"LSL",currency_symbol:"L"},{name:"Liberia",dial_code:231,country_code:"LR",flag:"\uD83C\uDDF1\uD83C\uDDF7",currency:"LRD",currency_symbol:"$"},{name:"Libyan Arab Jamahiriya",dial_code:218,country_code:"LY",flag:"\uD83C\uDDF1\uD83C\uDDFE",currency:"LYD",currency_symbol:"Ù.د"},{name:"Liechtenstein",dial_code:423,country_code:"LI",flag:"\uD83C\uDDF1\uD83C\uDDEE",currency:"CHF",currency_symbol:"Fr"},{name:"Lithuania",dial_code:370,country_code:"LT",flag:"\uD83C\uDDF1\uD83C\uDDF9",currency:"EUR",currency_symbol:"â¬"},{name:"Luxembourg",dial_code:352,country_code:"LU",flag:"\uD83C\uDDF1\uD83C\uDDFA",currency:"EUR",currency_symbol:"â¬"},{name:"Macao",dial_code:853,country_code:"MO",flag:"\uD83C\uDDF2\uD83C\uDDF4",currency:"MOP",currency_symbol:"P"},{name:"Republic of North Macedonia",dial_code:389,country_code:"MK",flag:"\uD83C\uDDF2\uD83C\uDDF0",currency:"MKD",currency_symbol:"ден"},{name:"Madagascar",dial_code:261,country_code:"MG",flag:"\uD83C\uDDF2\uD83C\uDDEC",currency:"MGA",currency_symbol:"Ar"},{name:"Malawi",dial_code:265,country_code:"MW",flag:"\uD83C\uDDF2\uD83C\uDDFC",currency:"MWK",currency_symbol:"MK"},{name:"Malaysia",dial_code:60,country_code:"MY",flag:"\uD83C\uDDF2\uD83C\uDDFE",currency:"MYR",currency_symbol:"RM"},{name:"Maldives",dial_code:960,country_code:"MV",flag:"\uD83C\uDDF2\uD83C\uDDFB",currency:"MVR",currency_symbol:"Þ."},{name:"Mali",dial_code:223,country_code:"ML",flag:"\uD83C\uDDF2\uD83C\uDDF1",currency:"SOS",currency_symbol:"Sh"},{name:"Malta",dial_code:356,country_code:"MT",flag:"\uD83C\uDDF2\uD83C\uDDF9",currency:"EUR",currency_symbol:"â¬"},{name:"Marshall Islands",dial_code:692,country_code:"MH",flag:"\uD83C\uDDF2\uD83C\uDDED",currency:"USD",currency_symbol:"$"},{name:"Martinique",dial_code:596,country_code:"MQ",flag:"\uD83C\uDDF2\uD83C\uDDF6",currency:"EUR",currency_symbol:"â¬"},{name:"Mauritania",dial_code:222,country_code:"MR",flag:"\uD83C\uDDF2\uD83C\uDDF7",currency:"MRU",currency_symbol:"UM"},{name:"Mauritius",dial_code:230,country_code:"MU",flag:"\uD83C\uDDF2\uD83C\uDDFA",currency:"MUR",currency_symbol:"â¨"},{name:"Mayotte",dial_code:262,country_code:"YT",flag:"\uD83C\uDDFE\uD83C\uDDF9",currency:"EUR",currency_symbol:"â¬"},{name:"Mexico",dial_code:52,country_code:"MX",flag:"\uD83C\uDDF2\uD83C\uDDFD",currency:"MXN",currency_symbol:"$"},{name:"Federated States of Micronesia",dial_code:691,country_code:"FM",flag:"\uD83C\uDDEB\uD83C\uDDF2",currency:"USD",currency_symbol:"$"},{name:"Republic of Moldova ",dial_code:373,country_code:"MD",flag:"\uD83C\uDDF2\uD83C\uDDE9",currency:"MDL",currency_symbol:"L"},{name:"Monaco",dial_code:377,country_code:"MC",flag:"\uD83C\uDDF2\uD83C\uDDE8",currency:"EUR",currency_symbol:"â¬"},{name:"Mongolia",dial_code:976,country_code:"MN",flag:"\uD83C\uDDF2\uD83C\uDDF3",currency:"MNT",currency_symbol:"â®"},{name:"Montenegro",dial_code:382,country_code:"ME",flag:"\uD83C\uDDF2\uD83C\uDDEA",currency:"EUR",currency_symbol:"â¬"},{name:"Montserrat",dial_code:1664,country_code:"MS",flag:"\uD83C\uDDF2\uD83C\uDDF8",currency:"XCD",currency_symbol:"$"},{name:"Morocco",dial_code:212,country_code:"MA",flag:"\uD83C\uDDF2\uD83C\uDDE6",currency:"MAD",currency_symbol:"د.Ù
."},{name:"Mozambique",dial_code:258,country_code:"MZ",flag:"\uD83C\uDDF2\uD83C\uDDFF",currency:"MZN",currency_symbol:"MTn"},{name:"Myanmar",dial_code:95,country_code:"MM",flag:"\uD83C\uDDF2\uD83C\uDDF2",currency:"MMK",currency_symbol:"K"},{name:"Namibia",dial_code:264,country_code:"NA",flag:"\uD83C\uDDF3\uD83C\uDDE6",currency:"NAD",currency_symbol:"$"},{name:"Nauru",dial_code:674,country_code:"NR",flag:"\uD83C\uDDF3\uD83C\uDDF7",currency:"AUD",currency_symbol:"$"}
1,{name:"Nepal",dial_code:977,country_code:"NP",flag:"\uD83C\uDDF3\uD83C\uDDF5",currency:"NPR",currency_symbol:"â¨"},{name:"Netherlands",dial_code:31,country_code:"NL",flag:"\uD83C\uDDF3\uD83C\uDDF1",currency:"EUR",currency_symbol:"â¬"},{name:"Netherlands Antilles",dial_code:599,country_code:"AN",flag:"\uD83C\uDDE6\uD83C\uDDF3",currency:"ANG",currency_symbol:"Æ"},{name:"New Caledonia",dial_code:687,country_code:"NC",flag:"\uD83C\uDDF3\uD83C\uDDE8",currency:"XPF",currency_symbol:"â£"},{name:"New Zealand",dial_code:64,country_code:"NZ",flag:"\uD83C\uDDF3\uD83C\uDDFF",currency:"NZD",currency_symbol:"$"},{name:"Nicaragua",dial_code:505,country_code:"NI",flag:"\uD83C\uDDF3\uD83C\uDDEE",currency:"NIO",currency_symbol:"C$"},{name:"Niger",dial_code:227,country_code:"NE",flag:"\uD83C\uDDF3\uD83C\uDDEA",currency:"NGN",currency_symbol:"â¦"},{name:"Nigeria",dial_code:234,country_code:"NG",flag:"\uD83C\uDDF3\uD83C\uDDEC",currency:"NGN",currency_symbol:"â¦"},{name:"Niue",dial_code:683,country_code:"NU",flag:"\uD83C\uDDF3\uD83C\uDDFA",currency:"NZD",currency_symbol:"$"},{name:"Norfolk Island",dial_code:672,country_code:"NF",flag:"\uD83C\uDDF3\uD83C\uDDEB",currency:"AUD",currency_symbol:"$"},{name:"Northern Mariana Islands",dial_code:1670,country_code:"MP",flag:"\uD83C\uDDF2\uD83C\uDDF5",currency:"USD",currency_symbol:"$"},{name:"Norway",dial_code:47,country_code:"NO",flag:"\uD83C\uDDF3\uD83C\uDDF4",currency:"NOK",currency_symbol:"kr"},{name:"Oman",dial_code:968,country_code:"OM",flag:"\uD83C\uDDF4\uD83C\uDDF2",currency:"OMR",currency_symbol:"ر.ع."},{name:"Pakistan",dial_code:92,country_code:"PK",flag:"\uD83C\uDDF5\uD83C\uDDF0",currency:"PKR",currency_symbol:"â¨"},{name:"Palau",dial_code:680,country_code:"PW",flag:"\uD83C\uDDF5\uD83C\uDDFC",currency:"USD",currency_symbol:"$"},{name:"Palestine",dial_code:970,country_code:"PS",flag:"\uD83C\uDDF5\uD83C\uDDF8",currency:"ILS",currency_symbol:"âª"},{name:"Panama",dial_code:507,country_code:"PA",flag:"\uD83C\uDDF5\uD83C\uDDE6",currency:"PAB",currency_symbol:"B/."},{name:"Papua New Guinea",dial_code:675,country_code:"PG",flag:"\uD83C\uDDF5\uD83C\uDDEC",currency:"PGK",currency_symbol:"K"},{name:"Paraguay",dial_code:595,country_code:"PY",flag:"\uD83C\uDDF5\uD83C\uDDFE",currency:"PYG",currency_symbol:"â²"},{name:"Peru",dial_code:51,country_code:"PE",flag:"\uD83C\uDDF5\uD83C\uDDEA",currency:"PEN",currency_symbol:"S/."},{name:"Philippines",dial_code:63,country_code:"PH",flag:"\uD83C\uDDF5\uD83C\uDDED",currency:"PHP",currency_symbol:"â±"},{name:"Pitcairn",dial_code:872,country_code:"PN",flag:"\uD83C\uDDF5\uD83C\uDDF3",currency:"NZD",currency_symbol:"$"},{name:"Poland",dial_code:48,country_code:"PL",flag:"\uD83C\uDDF5\uD83C\uDDF1",currency:"PLN",currency_symbol:"zÅ"},{name:"Portugal",dial_code:351,country_code:"PT",flag:"\uD83C\uDDF5\uD83C\uDDF9",currency:"EUR",currency_symbol:"â¬"},{name:"Puerto Rico",dial_code:1939,country_code:"PR",flag:"\uD83C\uDDF5\uD83C\uDDF7",currency:"USD",currency_symbol:"$"},{name:"Qatar",dial_code:974,country_code:"QA",flag:"\uD83C\uDDF6\uD83C\uDDE6",currency:"QAR",currency_symbol:"ر.Ù"},{name:"Romania",dial_code:40,country_code:"RO",flag:"\uD83C\uDDF7\uD83C\uDDF4",currency:"RON",currency_symbol:"L"},{name:"Russia",dial_code:7,country_code:"RU",flag:"\uD83C\uDDF7\uD83C\uDDFA",currency:"RUB",currency_symbol:"Ñ."},{name:"Rwanda",dial_code:250,country_code:"RW",flag:"\uD83C\uDDF7\uD83C\uDDFC",currency:"RWF",currency_symbol:"â£"},{name:"R\xe9union",dial_code:262,country_code:"RE",flag:"\uD83C\uDDF7\uD83C\uDDEA",currency:"EUR",currency_symbol:"â¬"},{name:"Saint Barth\xe9lemy",dial_code:590,country_code:"BL",flag:"\uD83C\uDDE7\uD83C\uDDF1",currency:"EUR",currency_symbol:"â¬"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:290,country_code:"SH",flag:"\uD83C\uDDF8\uD83C\uDDED",currency:"SHP",currency_symbol:"\xa3"},{name:"Saint Kitts and Nevis",dial_code:1869,country_code:"KN",flag:"\uD83C\uDDF0\uD83C\uDDF3",currency:"XCD",currency_symbol:"$"},{name:"Saint Lucia",dial_code:1758,country_code:"LC",flag:"\uD83C\uDDF1\uD83C\uDDE8",currency:"XCD",currency_symbol:"$"},{name:"Saint Martin",dial_code:590,country_code:"MF",flag:"\uD83C\uDDF2\uD83C\uDDEB",currency:"ANG",currency_symbol:"Æ"},{name:"Saint Pierre and Miquelon",dial_code:508,country_code:"PM",flag:"\uD83C\uDDF5\uD83C\uDDF2",currency:"EUR",currency_symbol:"â¬"},{name:"Saint Vincent and the Grenadines",dial_code:1784,country_code:"VC",flag:"\uD83C\uDDFB\uD83C\uDDE8",currency:"XCD",currency_symbol:"$"},{name:"Samoa",dial_code:685,country_code:"WS",flag:"\uD83C\uDDFC\uD83C\uDDF8",currency:"USD",currency_symbol:"$"},{name:"San Marino",dial_code:378,country_code:"SM",flag:"\uD83C\uDDF8\uD83C\uDDF2",currency:"EUR",currency_symbol:"â¬"},{name:"Sao Tome and Principe",dial_code:239,country_code:"ST",flag:"\uD83C\uDDF8\uD83C\uDDF9",currency:"STN",currency_symbol:"Db"},{name:"Saudi Arabia",dial_code:966,country_code:"SA",flag:"\uD83C\uDDF8\uD83C\uDDE6",currency:"SAR",currency_symbol:"ر.س"},{name:"Senegal",dial_code:221,country_code:"SN",flag:"\uD83C\uDDF8\uD83C\uDDF3",currency:"XAF",currency_symbol:"â£"},{name:"Serbia",dial_code:381,country_code:"RS",flag:"\uD83C\uDDF7\uD83C\uDDF8",currency:"RSD",currency_symbol:"din"},{name:"Seychelles",dial_code:248,country_code:"SC",flag:"\uD83C\uDDF8\uD83C\uDDE8",currency:"SCR",currency_symbol:"â¨"},{name:"Sierra Leone",dial_code:232,country_code:"SL",flag:"\uD83C\uDDF8\uD83C\uDDF1",currency:"SLL",currency_symbol:"Le"}
1,{name:"Singapore",dial_code:65,country_code:"SG",flag:"\uD83C\uDDF8\uD83C\uDDEC",currency:"BND",currency_symbol:"$"},{name:"Slovakia",dial_code:421,country_code:"SK",flag:"\uD83C\uDDF8\uD83C\uDDF0",currency:"EUR",currency_symbol:"â¬"},{name:"Slovenia",dial_code:386,country_code:"SI",flag:"\uD83C\uDDF8\uD83C\uDDEE",currency:"EUR",currency_symbol:"â¬"},{name:"Solomon Islands",dial_code:677,country_code:"SB",flag:"\uD83C\uDDF8\uD83C\uDDE7",currency:"SBD",currency_symbol:"$"},{name:"Somalia",dial_code:252,country_code:"SO",flag:"\uD83C\uDDF8\uD83C\uDDF4",currency:"SOS",currency_symbol:"Sh"},{name:"South Africa",dial_code:27,country_code:"ZA",flag:"\uD83C\uDDFF\uD83C\uDDE6",currency:"ZAR",currency_symbol:"R"},{name:"South Georgia and the South Sandwich Islands",dial_code:500,country_code:"GS",flag:"\uD83C\uDDEC\uD83C\uDDF8",currency:"GBP",currency_symbol:"\xa3"},{name:"Spain",dial_code:34,country_code:"ES",flag:"\uD83C\uDDEA\uD83C\uDDF8",currency:"EUR",currency_symbol:"â¬"},{name:"Sri Lanka",dial_code:94,country_code:"LK",flag:"\uD83C\uDDF1\uD83C\uDDF0",currency:"LKR",currency_symbol:"Rs"},{name:"Sudan",dial_code:249,country_code:"SD",flag:"\uD83C\uDDF8\uD83C\uDDE9",currency:"SDG",currency_symbol:"\xa3"},{name:"Suriname",dial_code:597,country_code:"SR",flag:"\uD83C\uDDF8\uD83C\uDDF7",currency:"SRD",currency_symbol:"$"},{name:"Svalbard and Jan Mayen",dial_code:47,country_code:"SJ",flag:"\uD83C\uDDF8\uD83C\uDDEF",currency:"NOK",currency_symbol:"kr"},{name:"Swaziland",dial_code:268,country_code:"SZ",flag:"\uD83C\uDDF8\uD83C\uDDFF",currency:"SZL",currency_symbol:"L"},{name:"Sweden",dial_code:46,country_code:"SE",flag:"\uD83C\uDDF8\uD83C\uDDEA",currency:"SEK",currency_symbol:"kr"},{name:"Switzerland",dial_code:41,country_code:"CH",flag:"\uD83C\uDDE8\uD83C\uDDED",currency:"CHF",currency_symbol:"â£"},{name:"Arab Republic of Syria",dial_code:963,country_code:"SY",flag:"\uD83C\uDDF8\uD83C\uDDFE",currency:"SYP",currency_symbol:"\xa3S"},{name:"Taiwan",dial_code:886,country_code:"TW",flag:"\uD83C\uDDF9\uD83C\uDDFC",currency:"TWD",currency_symbol:" å"},{name:"Tajikistan",dial_code:992,country_code:"TJ",flag:"\uD83C\uDDF9\uD83C\uDDEF",currency:"TJS",currency_symbol:"Ð
Ð"},{name:"Tanzania",dial_code:255,country_code:"TZ",flag:"\uD83C\uDDF9\uD83C\uDDFF",currency:"TZS",currency_symbol:"Tsh"},{name:"Thailand",dial_code:66,country_code:"TH",flag:"\uD83C\uDDF9\uD83C\uDDED",currency:"THB",currency_symbol:"฿"},{name:"Timor-Leste",dial_code:670,country_code:"TL",flag:"\uD83C\uDDF9\uD83C\uDDF1",currency:"USD",currency_symbol:"$"},{name:"Togo",dial_code:228,country_code:"TG",flag:"\uD83C\uDDF9\uD83C\uDDEC",currency:"XAF",currency_symbol:"â£"},{name:"Tokelau",dial_code:690,country_code:"TK",flag:"\uD83C\uDDF9\uD83C\uDDF0",currency:"NZD",currency_symbol:"$"},{name:"Tonga",dial_code:676,country_code:"TO",flag:"\uD83C\uDDF9\uD83C\uDDF4",currency:"TOP",currency_symbol:"T$"},{name:"Trinidad and Tobago",dial_code:1868,country_code:"TT",flag:"\uD83C\uDDF9\uD83C\uDDF9",currency:"TTD",currency_symbol:"$"},{name:"Tunisia",dial_code:216,country_code:"TN",flag:"\uD83C\uDDF9\uD83C\uDDF3",currency:"TND",currency_symbol:"د.ت"},{name:"Turkey",dial_code:90,country_code:"TR",flag:"\uD83C\uDDF9\uD83C\uDDF7",currency:"TRY",currency_symbol:"â¤"},{name:"Turkmenistan",dial_code:993,country_code:"TM",flag:"\uD83C\uDDF9\uD83C\uDDF2",currency:"TMT",currency_symbol:"m"},{name:"Turks and Caicos Islands",dial_code:1649,country_code:"TC",flag:"\uD83C\uDDF9\uD83C\uDDE8",currency:"USD",currency_symbol:"$"},{name:"Tuvalu",dial_code:688,country_code:"TV",flag:"\uD83C\uDDF9\uD83C\uDDFB",currency:"AUD",currency_symbol:"$"},{name:"Uganda",dial_code:256,country_code:"UG",flag:"\uD83C\uDDFA\uD83C\uDDEC",currency:"UGX",currency_symbol:"Sh"},{name:"Ukraine",dial_code:380,country_code:"UA",flag:"\uD83C\uDDFA\uD83C\uDDE6",currency:"UAH",currency_symbol:"â´"},{name:"United Arab Emirates",dial_code:971,country_code:"AE",flag:"\uD83C\uDDE6\uD83C\uDDEA",currency:"AED",currency_symbol:"د.Ø¥"},{name:"United Kingdom",dial_code:44,country_code:"GB",flag:"\uD83C\uDDEC\uD83C\uDDE7",currency:"GDP",currency_symbol:"\xa3"},{name:"United States",dial_code:1,country_code:"US",flag:"\uD83C\uDDFA\uD83C\uDDF8",currency:"USD",currency_symbol:"$"},{name:"Uruguay",dial_code:598,country_code:"UY",flag:"\uD83C\uDDFA\uD83C\uDDFE",currency:"UYU",currency_symbol:"$"},{name:"Uzbekistan",dial_code:998,country_code:"UZ",flag:"\uD83C\uDDFA\uD83C\uDDFF",currency:"UZS",currency_symbol:"ÑÑм"},{name:"Vanuatu",dial_code:678,country_code:"VU",flag:"\uD83C\uDDFB\uD83C\uDDFA",currency:"VUV",currency_symbol:"Vt"},{name:"Bolivarian Republic of Venezuela",dial_code:58,country_code:"VE",flag:"\uD83C\uDDFB\uD83C\uDDEA",currency:"VES",currency_symbol:"Bs"},{name:"Vietnam",dial_code:84,country_code:"VN",flag:"\uD83C\uDDFB\uD83C\uDDF3",currency:"VND",currency_symbol:"â«"},{name:"Virgin Islands, British",dial_code:1284,country_code:"VG",flag:"\uD83C\uDDFB\uD83C\uDDEC",currency:"USD",currency_symbol:"$"},{name:"Virgin Islands, U.S.",dial_code:1340,country_code:"VI",flag:"\uD83C\uDDFB\uD83C\uDDEE",currency:"USD",currency_symbol:"$"},{name:"Wallis and Futuna",dial_code:681,country_code:"WF",flag:"\uD83C\uDDFC\uD83C\uDDEB",currency:"XPF",currency_symbol:"â£"},{name:"Yemen",dial_code:967,country_code:"YE",flag:"\uD83C\uDDFE\uD83C\uDDEA",currency:"YER",currency_symbol:"ï·¼"},{name:"Zambia",dial_code:260,country_code:"ZM",flag:"\uD83C\uDDFF\uD83C\uDDF2",currency:"ZMW",currency_symbol:"ZK"},{name:"Zimbabwe",dial_code:263,country_code:"ZW",flag:"\uD83C\uDDFF\uD83C\uDDFC",currency:"ZWL",currency_symbol:"$"},{name:"\xc5land Islands",dial_code:358,country_code:"AX",flag:"\uD83C\uDDE6\uD83C\uDDFD",currency:"EUR",currency_symbol:"â¬"}];let b=E.map(e=>({value:e.country_code,label:(0,o.jsxs)(d.kC,{direction:"row",spacing:2,align:"center",children:[(0,o.jsx)(d.xu,{children:e.flag}),(0,o.jsxs)(d.xv,{color:"gray.900",fontSize:d.bs.BodyRegular,lineHeight:d._D.Normal,m:0,ml:2,children:[e.country_code," (+",e.dial_code,")"]})]})}));function A(e){let{children:u,...c}=e,{isLoading:r}=c.selectProps;return(0,o.jsxs)(F.c.Control,{...c,children:[Array.isArray(u)&&u[0],r&&(0,o.jsx)(d.$j,{mr:2,color:"blue.500"}),!r&&!c.isDisabled&&(0,o.jsxs)(d.kC,{mr:2,direction:"column",style:{cursor:"pointer"},onClick:c.clearValue,children:[(0,o.jsx)(d.JO,{name:d.NQ.ArrowUp,size:d.WD.Xs,color:"gray.700"}),(0,o.jsx)(d.JO,{name:d.NQ.ArrowDown,size:d.WD.Xs,color:"gray.700"})]})]})}var M=e=>{let{className:u,variantSize:c,variantColor:r,uniqueCountry:n,onChange:D,value:a,...l}=e,y=(0,d.Yp)(l),i=e=>b.findIndex(u=>u.value===e);return(0,o.jsx)(d.Ph,{...y,isDisabled:!!n,options:b,defaultValue:n?b[i(n)]:a?b[i(E.find(e=>e.dial_code===a).country_code)]:null,inputId:"color",components:{Control:A},className:f()("cap-phone-number-select","".concat(u,"-select")),onChange:e=>
1{D(E[i(e.value)].dial_code)},variantColor:r})};(n=a||(a={})).AF="AF",n.AL="AL",n.DZ="DZ",n.AS="AS",n.AD="AD",n.AO="AO",n.AI="AI",n.AG="AG",n.AR="AR",n.AM="AM",n.AW="AW",n.AU="AU",n.AT="AT",n.AZ="AZ",n.BS="BS",n.BH="BH",n.BD="BD",n.BB="BB",n.BY="BY",n.BE="BE",n.BZ="BZ",n.BJ="BJ",n.BM="BM",n.BT="BT",n.BO="BO",n.BA="BA",n.BW="BW",n.BR="BR",n.IO="IO",n.BN="BN",n.BG="BG",n.BF="BF",n.BI="BI",n.KH="KH",n.CM="CM",n.CA="CA",n.CV="CV",n.KY="KY",n.CF="CF",n.TD="TD",n.CL="CL",n.CN="CN",n.CX="CX",n.CC="CC",n.CO="CO",n.KM="KM",n.CG="CG",n.CD="CD",n.CK="CK",n.CR="CR",n.CI="CI",n.HR="HR",n.CU="CU",n.CY="CY",n.CZ="CZ",n.DK="DK",n.DJ="DJ",n.DM="DM",n.DO="DO",n.EC="EC",n.EG="EG",n.SV="SV",n.GQ="GQ",n.ER="ER",n.EE="EE",n.ET="ET",n.FK="FK",n.FO="FO",n.FJ="FJ",n.FI="FI",n.FR="FR",n.GF="GF",n.PF="PF",n.GA="GA",n.GM="GM",n.GE="GE",n.DE="DE",n.GH="GH",n.GI="GI",n.GR="GR",n.GL="GL",n.GD="GD",n.GP="GP",n.GU="GU",n.GT="GT",n.GG="GG",n.GN="GN",n.GW="GW",n.GY="GY",n.HT="HT",n.VA="VA",n.HN="HN",n.HK="HK",n.HU="HU",n.IS="IS",n.IN="IN",n.ID="ID",n.IR="IR",n.IQ="IQ",n.IE="IE",n.IM="IM",n.IL="IL",n.IT="IT",n.JM="JM",n.JP="JP",n.JE="JE",n.JO="JO",n.KZ="KZ",n.KE="KE",n.KI="KI",n.KP="KP",n.KR="KR",n.KW="KW",n.KG="KG",n.LA="LA",n.LV="LV",n.LB="LB",n.LS="LS",n.LR="LR",n.LY="LY",n.LI="LI",n.LT="LT",n.LU="LU",n.MO="MO",n.MK="MK",n.MG="MG",n.MW="MW",n.MY="MY",n.MV="MV",n.ML="ML",n.MT="MT",n.MH="MH",n.MQ="MQ",n.MR="MR",n.MU="MU",n.YT="YT",n.MX="MX",n.FM="FM",n.MD="MD",n.MC="MC",n.MN="MN",n.ME="ME",n.MS="MS",n.MA="MA",n.MZ="MZ",n.MM="MM",n.NA="NA",n.NR="NR",n.NP="NP",n.NL="NL",n.AN="AN",n.NC="NC",n.NZ="NZ",n.NI="NI",n.NE="NE",n.NG="NG",n.NU="NU",n.NF="NF",n.MP="MP",n.NO="NO",n.OM="OM",n.PK="PK",n.PW="PW",n.PS="PS",n.PA="PA",n.PG="PG",n.PY="PY",n.PE="PE",n.PH="PH",n.PN="PN",n.PL="PL",n.PT="PT",n.PR="PR",n.QA="QA",n.RO="RO",n.RU="RU",n.RW="RW",n.RE="RE",n.BL="BL",n.SH="SH",n.KN="KN",n.LC="LC",n.MF="MF",n.PM="PM",n.VC="VC",n.WS="WS",n.SM="SM",n.ST="ST",n.SA="SA",n.SN="SN",n.RS="RS",n.SC="SC",n.SL="SL",n.SG="SG",n.SK="SK",n.SI="SI",n.SB="SB",n.SO="SO",n.ZA="ZA",n.GS="GS",n.ES="ES",n.LK="LK",n.SD="SD",n.SR="SR",n.SJ="SJ",n.SZ="SZ",n.SE="SE",n.CH="CH",n.SY="SY",n.TW="TW",n.TJ="TJ",n.TZ="TZ",n.TH="TH",n.TL="TL",n.TG="TG",n.TK="TK",n.TO="TO",n.TT="TT",n.TN="TN",n.TR="TR",n.TM="TM",n.TC="TC",n.TV="TV",n.UG="UG",n.UA="UA",n.AE="AE",n.GB="GB",n.US="US",n.UY="UY",n.UZ="UZ",n.VU="VU",n.VE="VE",n.VN="VN",n.VG="VG",n.VI="VI",n.WF="WF",n.YE="YE",n.ZM="ZM",n.ZW="ZW",n.AX="AX";var h=c(88039),S=e=>{let{choices:u,value:c,id:r,onChange:n,...D}=e,a=c?c.labels:[],y="choices-for-field-".concat(r),i=(e,u)=>{let c=[...a];e&&e.target.checked?c.push(u):c.splice(c.indexOf(u),1),n&&n({labels:c})};return(0,o.jsx)(d.cO,{children:u.map((e,u)=>{let c=e.id?"choice-".concat(e.id):"choice-".concat(u),n=e.useIdAsValue&&e.id?e.id:e.label;return(0,l.createElement)(d.XZ,{...D,key:c,name:y,id:"".concat(r,"_").concat(c),checked:null==a?void 0:a.includes(n),onChange:e=>i(e,n)},e.label)})})},p=e=>{let{choices:u,value:c,id:r,onChange:n,...D}=e,a=c?c.labels:[],y="choices-for-field-".concat(r),i=(e,u)=>{a&&a.includes(u)||n({labels:[u]})};return(0,o.jsx)(d.Ee,{children:u.map((e,u)=>{var c;let n=e.id?"choice-".concat(e.id):"choice-".concat(u),o=e.useIdAsValue&&e.id?e.id:e.label;return(0,l.createElement)(d.Y8,{...D,key:n,name:y,id:"".concat(r,"_").concat(n),checked:null==a?void 0:a.includes(o),onChange:e=>i(e,o),isDisabled:null!==(c=null==e?void 0:e.disabled)&&void 0!==c&&c},e.label)})})},B=function(e){let u,c,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,D=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[];return function(){for(var l=arguments.length,d=Array(l),y=0;y<l;y++)d[y]=arguments[y];let i="function"==typeof n?n():n,t=new Date().getTime(),_=!u||t-u>i;if(u=t,_&&D.leading)return D.accumulate?Promise.resolve(e.call(this,[d])).then(e=>e[0]):Promise.resolve(e.call(this,...d));if(c?clearTimeout(r):c=function(){let e={};return e.promise=new Promise((u,c)=>{e.resolve=u,e.reject=c}),e}(),a.push(d),r=setTimeout(o.bind(this),i),D.accumulate){let e=a.length-1;return c.promise.then(u=>u[e])}return c.promise};function o(){let u=c;clearTimeout(r),Promise.resolve(D.accumulate?e.call(this,a):e.apply(this,a[a.length-1])).then(u.resolve,u.reject),a=[],c=null}},R=e=>{let{loadOptions:u,options:c,onChange:r,noOptionsMessage:n,loadingMessage:D,value:a,clearable:l,...i}=e,t=(0,y.Z)();if(u){let e=B(u,400,{leading:!0});return(0,o.jsx)(d.qb,{...i,isClearable:l,value:a,loadOptions:e,loadingMessage:()=>D||t.formatMessage({id:"global.loading"}),noOptionsMessage:()=>n||t.formatMessage({id:"result-not-found"}),placeholder:i.placeholder||t.formatMessage({id:"admin.fields.menu_item.parent_empty"}),onChange:e=>{"function"==typeof r&&r(e)}})}return(0,o.jsx)(d.Ph,{...i,isClearable:l,options:c,noOptionsMessage:()=>n||t.formatMessage({id:"result-not-found"}),placeholder:i.placeholder||t.formatMessage({id:"admin.fields.menu_item.parent_empty"}),value:null==c?void 0:c.find(e=>e.value===a),onChange:e=>{"function"==typeof r&&r(i.isMulti?e:(null==e?void 0:e.value)||"")}})},N=c(65469);let G=(0,l.forwardRef)((e,u)=>{let{value:c,onChange:r,placeholder:n,className:D,width:a,getAddress:l,getPosition:y,...i}=e,t=async e=>{let u=await (0,N.NU)(e).then(e=>e[0]).catch(e=>console.error("Error",e));await (0,N.WV)(u).then(e=>{let c={...u,geometry:{...u.geometry,location:{lat:e.lat,lng:e.lng}}};y&&y(e.lat,e.lng),l&&l(c),r(c.formatted_address)}).catch(e=>console.error("Error",e))};return(0,o.jsx)(N.ZP,{value:c,onChange:r,onSelect:t,children:e=>{let{getInputProps:y,suggestions:t,getSuggestionItemProps:_}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(d.xu,{position:"relative",width:a,children:[(0,o.jsx)(d.JO,{name:d.NQ.Search,position:"absolute",left:"xxs",top:"xxs"}),(0,o.jsx)(d.II,{ref:u,width:"100%",pl:"28px!important",pr:c?"xxl!important":void 0,...y({placeholder:n,className:f()("cap-address__input",D)}),...i}),c&&(0,o.jsx)(d.xu,{as:"button",type:"button","aria-label":"Clear address",position:"absolute",right:"xxs",top:"xxs",p:0,border:0,background:"transparent",onClick:()=>{r(""),null==l||l(null)},children:(0,o.jsx)(d.JO,{name:d.NQ.Cross})})]}),t.length>0&&(0,o.jsx)(d.Lt,{zIndex:1e3,width:a,className:f()("cap-address__dropdown",D),children:t.map(e=>{let{key:u,...c}=_(e);return(0,o.jsx)(d.Lt.Item,{...c,children:e.description},u||e.placeId)})})]})}})});G.displayName="Address";let v=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,T=/^(https:\/\/)[\w.-]+(?:\.[\w/.-]+)+[\w\-/._~:/?#[\]@!/$&'/(/)/*/+,;=.]+$/gi,P=(e,u)=>({value:e,message:u.formatMessage({id:"characters-minimum-required"},{length:e})}),I=(e,u)=>({value:e,message:u.formatMessage({id:"characters-maximum-required"},{length:e})}),L=e=>({value:v,message:e.formatMessage({id:"global.constraints.email.invalid"})}),U=e=>e.replace(/\D/g,""),K=e=>{var u,c;if(null==e)return"";let r=U(String(e));return r&&null!==(c=null===(u=r.match(/.{1,2}/g))||void 0===u?void 0:u.join(" "))&&void 0!==c?c:""};var x=c(71636),$=c.n(x);let Z="YYYY-MM-DD",j="HH:mm",O="".concat(Z," ").concat(j,":ss"),H=(0,l.forwardRef)((e,u)=>{let{onChange:c,value:r,id:n,placeholder:D,variantSize:a=d.C9.Sm,isDisabled:y,isInvalid:i,dateInputProps:t={}}=e,{colors:_}=(0,d.Fg)(),[m,C]=(0,l.useState)(r?$()(r).format(Z):null),[s,g]=(0,l.useState)(r?$()(r).format(j):"00:00"),f=m&&s?$()("".concat(m," ").concat(s)).format(O):null;return(0,l.useEffect)(()=>{c&&c(f)}
1,[f]),(0,o.jsx)(d.xu,{sx:{"& .cap-date-input":{borderRight:"0px !important",borderTopRightRadius:"0px !important",borderBottomRightRadius:"0px !important"},"& .cap-date-input + div":{flex:"none"},"& .cap-hour-input":{borderLeft:"0px !important",borderTopLeftRadius:"0px !important",borderBottomLeftRadius:"0px !important"},"&:focus-within *":y||i?{}:{borderColor:"".concat(_.blue[500]," !important")}},children:(0,o.jsxs)(d.BZ,{sx:{flexWrap:"nowrap !important"},children:[(0,o.jsx)(d.Wr,{onChange:e=>{C(e.target.value||null)},value:m,variantSize:a,isDisabled:y,isInvalid:i,placeholder:D,...t,ref:u}),(0,o.jsx)(d.Rd,{defaultValue:s,value:s,onChange:e=>{g(e.target.value||null)},variantSize:a,isDisabled:y,isInvalid:i,id:n})]})})}),V=(0,l.forwardRef)((e,u)=>{let{name:c,type:r="text",control:n,rules:D,defaultValue:a,onChange:l,onBlur:i,id:t,..._}=e,m=(0,y.Z)(),C=_.minLength?P(_.minLength,m):void 0,g=_.maxLength?I(_.maxLength,m):void 0,f="email"===r?L(m):void 0,{field:F}=(0,h.bc)({name:c,control:n,rules:{minLength:C,maxLength:g,pattern:f,...D},defaultValue:a}),E=e=>{l&&l(e),F.onChange(e)},b=e=>{i&&i(e),F.onBlur(e)};switch(r){case"hidden":case"text":case"email":case"password":default:return(0,o.jsx)(d.II,{type:r,..._,...F,id:t,onChange:E,onBlur:b,ref:u});case"tel":return(0,o.jsx)(d.II,{type:r,..._,...F,id:t,onChange:e=>{l&&l(e);let u=U(e.target.value);F.onChange({...e,target:{...e.target,value:u}})},value:K(F.value),onBlur:b,ref:u});case"number":return(0,o.jsx)(d.Rn,{..._,...F,id:t,onChange:e=>{if(l&&l(e),""!==e.target.value){let u={...e,target:{...e.target,value:Number(e.target.value)}};F.onChange(u);return}F.onChange(e)},onBlur:b,ref:u});case"textarea":return(0,o.jsx)(d.Kx,{..._,...F,id:t,onChange:E,onBlur:b,ref:u});case"select":return(0,o.jsx)(R,{..._,...F,id:t,onChange:E,onBlur:b,ref:u});case"switch":return(0,o.jsx)(d.rs,{..._,...F,id:t,onChange:E,onBlur:b,checked:F.value,ref:u});case"checkbox":return(null==_?void 0:_.choices)?(0,o.jsx)(S,{..._,...F,id:t,onChange:E,onBlur:b,ref:u}):(0,o.jsx)(d.XZ,{..._,...F,id:t,onChange:E,onBlur:b,checked:F.value,ref:u});case"radio":return(null==_?void 0:_.choices)?(0,o.jsx)(p,{..._,...F,id:t,onChange:E,onBlur:b,ref:u}):(0,o.jsx)(d.Y8,{..._,...F,id:t,onChange:E,onBlur:b,checked:F.value,ref:u});case"uploader":return(0,o.jsx)(s,{..._,...F,onChange:E,id:t,ref:u});case"codeInput":return(0,o.jsx)(d.Nw,{..._,...F,id:t,ref:u,onComplete:e=>E({target:{value:e}})});case"flagSelect":return(0,o.jsx)(M,{..._,...F,id:t,onChange:E,onBlur:b,ref:u});case"date":var A;return(0,o.jsx)(d.Wr,{..._,...F,value:null===(A=F.value)||void 0===A?void 0:A.format("YYYY-MM-DD"),id:t,onChange:e=>{let u=$()(e.target.value);l&&l(u),F.onChange(u)},onBlur:b,ref:u});case"hour":return(0,o.jsx)(d.Rd,{..._,...F,id:t,onChange:E,onBlur:b,ref:u});case"dateHour":return(0,o.jsx)(H,{..._,...F,id:t,onChange:E,onBlur:b,ref:u});case"address":return(0,o.jsx)(G,{..._,...F,id:t,onChange:E,onBlur:b,ref:u});case"colorPicker":return(0,o.jsx)(d.zH,{..._,...F,id:t,onChange:E,onBlur:b,ref:u})}});V.displayName="FieldInput";var Y=V;let w=(e,u)=>{if(!u.includes("."))return e[u];let[c,r]=u.split(".");return!!e[c]&&e[c][r]};var J=e=>{var u,c,r;let{name:n,control:D,children:a,variantSize:i=d.C9.Sm,sx:t,isRequired:_,...m}=e,C=(0,y.Z)(),s=(0,l.useId)(),{field:g,fieldState:{invalid:f,error:F},formState:{touchedFields:E}}=(0,h.bc)({name:n,control:D,rules:{required:_?C.formatMessage({id:"fill-field"}):void 0}}),b=null==D?void 0:null===(u=D._options)||void 0===u?void 0:u.mode,A=f&&("onChange"!==b||w(E,n)),M="".concat(n,"-error"),S=l.Children.toArray(a).find(e=>{var u;return(null==e?void 0:null===(u=e.type)||void 0===u?void 0:u.displayName)==="FieldInput"}),p=null==S?void 0:null===(c=S.props)||void 0===c?void 0:c.id,B=l.Children.toArray(a).find(e=>{var u;return(null==e?void 0:null===(u=e.type)||void 0===u?void 0:u.displayName)==="FormLabel"}),R=null==B?void 0:null===(r=B.props)||void 0===r?void 0:r.htmlFor,N=S&&B&&(!p||!R||p!==R),G=l.Children.map(a,e=>{if(l.isValidElement(e)){var u,c;return(null==e?void 0:null===(u=e.type)||void 0===u?void 0:u.displayName)==="FieldInput"?l.cloneElement(e,{ref:g.ref,"aria-describedby":A?M:void 0,id:N?s:e.props.id}):(null==e?void 0:null===(c=e.type)||void 0===c?void 0:c.displayName)==="FormLabel"&&N?l.cloneElement(e,{htmlFor:s}):l.cloneElement(e)}return null});return(0,o.jsxs)(d.NI,{variantSize:i,mb:4,isInvalid:A,isRequired:_,sx:{"&:last-child":{mb:0},...t},...m,children:[G,A&&(null==F?void 0:F.message)&&(0,o.jsx)(d.J1,{color:"red.700",id:M,children:F.message})]})}},21578:function(e,u,c){c.d(u,{p:function(){return n}});var r=c(10513);let n=(e,u)=>(0,r.Am)({variant:"danger",content:null!=u?u:e.formatMessage({id:"global.error.server.form"})})},96075:function(e,u,c){c.d(u,{Iv:function(){return o},Qm:function(){return a},Rr:function(){return D},pj:function(){return n.p},rf:function(){return l}});var r=c(10513),n=c(21578);let D=e=>(0,r.Am)({variant:"info",content:e}),a=e=>(0,r.Am)({variant:"success",content:e}),o=e=>(0,r.Am)({variant:"warning",content:e}),l=e=>(0,r.Am)({variant:"danger",content:e})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.