PageSourceSearch

https://insights.dsij.in/_next/static/chunks/4086-bc4eafa277fb1f22.js

js dsij.in collected 2026-10-01 12:08:13 UTC 25,905 bytes, 1 lines download raw bytes

vendor: 6,773 bytes, line 1
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4086],{24086:function(e,t,r){r.r(t),r.d(t,{CountrySelector:function(){return H},CountrySelectorDropdown:function(){return U},DialCodePreview:function(){return J},FlagImage:function(){return q},PhoneInput:function(){return Z},buildCountryData:function(){return f},defaultCountries:function(){return n},getActiveFormattingMask:function(){return V},getCountry:function(){return G},guessCountryByPartialPhoneNumber:function(){return T},parseCountry:function(){return j},removeDialCode:function(){return m},usePhoneInput:function(){return F}});var a=r(2265),n=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["C\xf4te d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Cura\xe7ao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Faroe Islands","fo","298",".. .. .."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594","... .. .. .."],["French Polynesia","pf","689",{"/^44/":".. .. ..","/^80[0-5]/":"... .. .. ..",default:".. .. .. .."}],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","... .. .. ..",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596","... .. .. .."],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","... .. .. ..",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["R\xe9union","re","262","... .. .. ..",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Pierre & Miquelon","pm","508",{"/^708/":"... ... ...","/^8/":"... .. .. ..",default:".. .. .."}],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["S\xe3o Tom\xe9 and Pr\xedncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["S
1omalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681",".. .. .."],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],i=(...e)=>e.filter(e=>!!e).join(" ").trim(),o=(...e)=>i(...e).split(" ").map(e=>`react-international-phone-${e}`).join(" "),l=({addPrefix:e,rawClassNames:t})=>i(o(...e),...t),s=({value:e,mask:t,maskSymbol:r,offset:a=0,trimNonMaskCharsLeftover:n=!1})=>{if(e.length<a)return e;let i=e.slice(0,a),o=e.slice(a),l=i,s=0;for(let e of t.split("")){if(s>=o.length){if(!n&&e!==r){l+=e;continue}break}e===r?(l+=o[s],s+=1):l+=e}return l},u=e=>!!e&&/^\d+$/.test(e),d=e=>e.replace(/\D/g,""),c=(e,t)=>{let r=e.style.display;"block"!==r&&(e.style.display="block");let a=e.getBoundingClientRect(),n=t.getBoundingClientRect(),i=n.top-a.top,o=a.bottom-n.bottom;i>=0&&o>=0||(Math.abs(i)<Math.abs(o)?e.scrollTop+=i:e.scrollTop-=o),e.style.display=r},f=e=>{let{name:t,iso2:r,dialCode:a,format:n,priority:i,areaCodes:o}=e,l=[t,r,a,n,i,o];for(let e=0;e<l.length;e+=1){if(0===e)continue;let t=l[e-1],r=l[e];if(void 0===t&&void 0!==r){let e=JSON.stringify(l,(e,t)=>void 0===t?"__undefined":t).replace(/"__undefined"/g,"undefined");throw Error(`[react-international-phone] invalid country values passed to buildCountryData. Check ${t} in: ${e}`)}}return l.filter(e=>void 0!==e)},p=()=>!(typeof window>"u")&&window.navigator.userAgent.toLowerCase().includes("macintosh"),m=({phone:e,dialCode:t,prefix:r="+",charAfterDialCode:a=" "})=>
1{if(!e||!t)return e;let n=e;return n.startsWith(r)&&(n=n.replace(r,"")),n.startsWith(t)?((n=n.replace(t,"")).startsWith(a)&&(n=n.replace(a,"")),n):e},y=(e,t)=>{let r,a=!t.disableDialCodeAndPrefix&&t.forceDialCode,n=!t.disableDialCodeAndPrefix&&t.insertDialCodeOnEmpty,i=e,o=e=>t.trimNonDigitsEnd?e.trim():e;if(!i)return o(n&&!i.length||a?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:i);if((i=d(i))===t.dialCode&&!t.disableDialCodeAndPrefix)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return o(a?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(a)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return o(`${t.prefix}${i}`)}let{phoneLeftSide:l,phoneRightSide:u}=(r=t.dialCode.length,{phoneLeftSide:i.slice(0,r),phoneRightSide:i.slice(r)});return l=`${t.prefix}${l}${t.charAfterDialCode}`,u=s({value:u,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&0===u.length}),t.disableDialCodeAndPrefix&&(l=""),o(`${l}${u}`)},h=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:r,cursorPositionAfterInput:a,leftOffset:n=0,deletion:i})=>{if(a<n)return n;if(!e)return r.length;let o=null;for(let e=a-1;e>=0;e-=1)if(u(t[e])){o=e;break}if(null===o){for(let e=0;e<t.length;e+=1)if(u(r[e]))return e;return t.length}let l=0;for(let e=0;e<o;e+=1)u(t[e])&&(l+=1);let s=0,d=0;for(let e=0;e<r.length&&(s+=1,u(r[e])&&(d+=1),!(d>=l+1));e+=1);if("backward"!==i)for(;!u(r[s])&&s<r.length;)s+=1;return s},C=({phone:e,prefix:t})=>e?`${t}${d(e)}`:"";function g({value:e,country:t,insertDialCodeOnEmpty:r,trimNonDigitsEnd:a,countries:n,prefix:i,charAfterDialCode:o,forceDialCode:l,disableDialCodeAndPrefix:s,defaultMask:u,countryGuessingEnabled:d,disableFormatting:c}){let f=e;s&&(f=f.startsWith(`${i}`)?f:`${i}${t.dialCode}${f}`);let p=d?T({phone:f,countries:n,currentCountryIso2:t?.iso2}):void 0,m=p?.country??t,h=y(f,{prefix:i,mask:V({phone:f,country:m,defaultMask:u,disableFormatting:c}),maskChar:N,dialCode:m.dialCode,trimNonDigitsEnd:a,charAfterDialCode:o,forceDialCode:l,insertDialCodeOnEmpty:r,disableDialCodeAndPrefix:s}),g=d&&!p?.fullDialCodeMatch?t:m;return{phone:C({phone:s?`${g.dialCode}${h}`:h,prefix:i}),inputValue:h,country:g}}var b=e=>{if(e?.toLocaleLowerCase().includes("delete"))return e?.toLocaleLowerCase().includes("forward")?"forward":"backward"},w=(e,{country:t,insertDialCodeOnEmpty:r,phoneBeforeInput:a,prefix:n,charAfterDialCode:i,forceDialCode:o,disableDialCodeAndPrefix:l,countryGuessingEnabled:s,defaultMask:d,disableFormatting:c,countries:f})=>{let p=e.nativeEvent,m=p.inputType,y=b(m),w=!!m?.startsWith("insertFrom"),v="insertText"===m,D=p?.data||void 0,k=e.target.value,N=e.target.selectionStart??0;if(m?.includes("history"))return{inputValue:a,phone:C({phone:a,prefix:n}),cursorPosition:a.length,country:t};if(v&&!u(D)&&k!==n)return{inputValue:a,phone:C({phone:l?`${t.dialCode}${a}`:a,prefix:n}),cursorPosition:N-(D?.length??0),country:t};if(o&&!k.startsWith(`${n}${t.dialCode}`)&&!w){let e=k?a:`${n}${t.dialCode}${i}`;return{inputValue:e,phone:C({phone:e,prefix:n}),cursorPosition:n.length+t.dialCode.length+i.length,country:t}}let{phone:x,inputValue:S,country:P}=g({value:k,country:t,trimNonDigitsEnd:"backward"===y,insertDialCodeOnEmpty:r,countryGuessingEnabled:s,countries:f,prefix:n,charAfterDialCode:i,forceDialCode:o,disableDialCodeAndPrefix:l,disableFormatting:c,defaultMask:d}),A=h({cursorPositionAfterInput:N,phoneBeforeInput:a,phoneAfterInput:k,phoneAfterFormatted:S,leftOffset:o?n.length+t.dialCode.length+i.length:0,deletion:y});return{phone:x,inputValue:S,cursorPosition:A,country:P}},v=(e,t)=>{let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let a of r)if(e[a]!==t[a])return!1;return!0},D=()=>{let e=(0,a.useRef)(),t=(0,a.useRef)(Date.now());return{check:()=>{let r=Date.now(),a=e.current?r-t.current:void 0;return e.current=t.current,t.current=r,a}}},k={size:20,overrideLastItemDebounceMS:-1},N=".",x="us",S="",P="+",A="............",$=" ",E=200,M=!1,I=!1,_=!1,L=!1,z=!1,B=n,F=({defaultCountry:e=x,value:t=S,countries:r=B,prefix:n=P,defaultMask:i=A,charAfterDialCode:o=$,historySaveDebounceMS:l=E,disableCountryGuess:s=M,disableDialCodePrefill:u=I,forceDialCode:d=_,disableDialCodeAndPrefix:c=L,disableFormatting:f=z,onChange:m,inputRef:y})=>{let h={countries:r,prefix:n,charAfterDialCode:o,forceDialCode:!c&&d,disableDialCodeAndPrefix:c,defaultMask:i,countryGuessingEnabled:!s,disableFormatting:f},C=(0,a.useRef)(null),b=y||C,N=e=>{Promise.resolve().then(()=>{typeof window>"u"||b.current!==document?.activeElement||b.current?.setSelectionRange(e,e)})},[{phone:F,inputValue:V,country:j},R,T,O]=function(e,t){let{size:r,overrideLastItemDebounceMS:n,onChange:i}={...k,...t},[o,l]=(0,a.useState)(e),[s,u]=(0,a.useState)([o]),[d,c]=(0,a.useState)(0),f=D();return[o,(e,t)=>{if("object"==typeof e&&"object"==typeof o&&v(e,o)||e===o)return;let a=f.check();if(t?.overrideLastItem!==void 0?t.overrideLastItem:!(!(n>0)||void 0===a||a>n))u(t=>[...t.slice(0,d),e]);else{let t=s.length>=r;u(r=>[...r.slice(t?1:0,d+1),e]),t||c(e=>e+1)}l(e),i?.(e)},()=>{if(d<=0)return{success:!1};let e=s[d-1];return l(e),c(e=>e-1),i?.(e),{success:!0,value:e}},()=>{if(d+1>=s.length)return{success:!1};let e=s[d+1];return l(e),c(e=>e+1),i?.(e),{success:!0,value:e}}]}(()=>{let a=G({value:e,field:"iso2",countries:r});a||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let{phone:n,inputValue:i,country:o}=g({value:t,country:a||G({value:"us",field:"iso2",countries:r}),insertDialCodeOnEmpty:!u,...h});return N(i.length),{phone:n,inputValue:i,country:o.iso2}},{overrideLastItemDebounceMS:l,onChange:({inputValue:e,phone:t,country:r})=>{m&&m({phone:t,inputValue:e,country:K(r)})}}),K=(0,a.useCallback)(e=>G({value:e,field:"iso2",countries:r}),[r]),W=(0,a.useMemo)(()=>K(j),[j,K]);(0,a.useEffect)(()=>{let e=b.current;if(!e)return;let t=e=>
1{if(!e.key)return;let t=e.ctrlKey,r=e.metaKey,a=e.shiftKey;if("z"===e.key.toLowerCase()){if(p()){if(!r)return}else if(!t)return;a?O():T()}};return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[b,T,O]);let[q,U]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(!q){U(!0),t!==F&&m?.({inputValue:V,phone:F,country:W});return}if(t===F)return;let{phone:e,inputValue:r,country:a}=g({value:t,country:W,insertDialCodeOnEmpty:!u,...h});R({phone:e,inputValue:r,country:a.iso2})},[t]),{phone:F,inputValue:V,country:W,setCountry:(e,t={focusOnInput:!1})=>{let a=G({value:e,field:"iso2",countries:r});if(!a){console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);return}R({inputValue:c?"":`${n}${a.dialCode}${o}`,phone:`${n}${a.dialCode}`,country:a.iso2}),t.focusOnInput&&Promise.resolve().then(()=>{b.current?.focus()})},handlePhoneValueChange:e=>{e.preventDefault();let{phone:r,inputValue:a,country:n,cursorPosition:i}=w(e,{country:W,phoneBeforeInput:V,insertDialCodeOnEmpty:!1,...h});return R({inputValue:a,phone:r,country:n.iso2}),N(i),t},inputRef:b}},V=({phone:e,country:t,defaultMask:r="............",disableFormatting:a=!1})=>{let n=t.format,i=e=>a?e.replace(RegExp(`[^${N}]`,"g"),""):e;if(!n)return i(r);if("string"==typeof n)return i(n);if(!n.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),i(r);let o=Object.keys(n).find(r=>{if("default"===r)return!1;if(!("/"===r.charAt(0)&&"/"===r.charAt(r.length-1)))return console.error(`[react-international-phone]: format regex "${r}" for ${t.iso2} is not valid`),!1;let a=new RegExp(r.substring(1,r.length-1)),n=e.replace(t.dialCode,"");return a.test(d(n))});return i(o?n[o]:n.default)},j=e=>{let[t,r,a,n,i,o]=e;return{name:t,iso2:r,dialCode:a,format:n,priority:i,areaCodes:o}},R=e=>`Field "${e}" is not supported`,G=({field:e,value:t,countries:r=n})=>{if(["priority"].includes(e))throw Error(R(e));let a=r.find(r=>t===j(r)[e]);if(a)return j(a)},T=({phone:e,countries:t=n,currentCountryIso2:r})=>{let a={country:void 0,fullDialCodeMatch:!1};if(!e)return a;let i=d(e);if(!i)return a;let o=a,l=({country:e,fullDialCodeMatch:t})=>{let r=e.dialCode===o.country?.dialCode,a=(e.priority??0)<(o.country?.priority??0);(!r||a)&&(o={country:e,fullDialCodeMatch:t})};for(let e of t){let t=j(e),{dialCode:r,areaCodes:a}=t;if(i.startsWith(r)){let e=!o.country||Number(r)>=Number(o.country.dialCode);if(a){let e=i.substring(r.length);for(let r of a)if(e.startsWith(r))return{country:t,fullDialCodeMatch:!0}}(e||r===i||!o.fullDialCodeMatch)&&l({country:t,fullDialCodeMatch:!0})}o.fullDialCodeMatch||i.length<r.length&&r.startsWith(i)&&(!o.country||Number(r)<=Number(o.country.dialCode))&&l({country:t,fullDialCodeMatch:!1})}if(r){let e=G({value:r,field:"iso2",countries:t});if(!e)return o;let a=!!e&&(e=>{if(!e?.areaCodes)return!1;let t=i.substring(e.dialCode.length);return e.areaCodes.some(e=>e.startsWith(t))})(e);o&&o.country?.dialCode===e.dialCode&&o.country!==e&&o.fullDialCodeMatch&&(!e.areaCodes||a)&&(o={country:e,fullDialCodeMatch:!0})}return o},O=(e,t)=>Number(parseInt(e,16)+t).toString(16),K="abcdefghijklmnopqrstuvwxyz".split("").reduce((e,t,r)=>({...e,[t]:O("1f1e6",r)}),{}),W=e=>[K[e[0]],K[e[1]]].join("-"),q=({iso2:e,size:t,src:r,protocol:n="https",disableLazyLoading:i,className:o,style:s,...u})=>e?a.createElement("img",{className:l({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:(()=>{if(r)return r;let t=W(e);return`${n}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${t}.svg`})(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...s},alt:"",...u}):a.createElement("img",{className:l({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:t,height:t,...u}),U=({show:e,dialCodePrefix:t="+",selectedCountry:r,countries:i=n,preferredCountries:o=[],flags:s,onSelect:u,onClose:d,...f})=>{let p=(0,a.useRef)(null),m=(0,a.useRef)(),y=(0,a.useMemo)(()=>{if(!o||!o.length)return i;let e=[],t=[...i];for(let r of o){let a=t.findIndex(e=>j(e).iso2===r);if(-1!==a){let r=t.splice(a,1)[0];e.push(r)}}return e.concat(t)},[i,o]),h=(0,a.useRef)({updatedAt:void 0,value:""}),C=e=>{let t=h.current.updatedAt&&new Date().getTime()-h.current.updatedAt.getTime()>1e3;h.current={value:t?e:`${h.current.value}${e}`,updatedAt:new Date};let r=y.findIndex(e=>j(e).name.toLowerCase().startsWith(h.current.value));-1!==r&&w(r)},g=(0,a.useCallback)(e=>y.findIndex(t=>j(t).iso2===e),[y]),[b,w]=(0,a.useState)(g(r)),v=()=>{m.current!==r&&w(g(r))},D=(0,a.useCallback)(e=>{w(g(e.iso2)),u?.(e)},[u,g]),k=e=>{let t=y.length-1,r=r=>"prev"===e?r-1:"next"===e?r+1:"last"===e?t:0;w(e=>{let a=r(e);return a<0?0:a>t?t:a})},N=(0,a.useCallback)(()=>
1{if(!p.current||void 0===b)return;let e=j(y[b]).iso2;if(e===m.current)return;let t=p.current.querySelector(`[data-country="${e}"]`);t&&(c(p.current,t),m.current=e)},[b,y]);return(0,a.useEffect)(()=>{N()},[b,N]),(0,a.useEffect)(()=>{p.current&&(e?p.current.focus():v())},[e]),(0,a.useEffect)(()=>{v()},[r]),a.createElement("ul",{ref:p,role:"listbox",className:l({addPrefix:["country-selector-dropdown"],rawClassNames:[f.className]}),style:{display:e?"block":"none",...f.style},onKeyDown:e=>{if(e.stopPropagation(),"Enter"===e.key){e.preventDefault(),D(j(y[b]));return}if("Escape"===e.key){d?.();return}if("ArrowUp"===e.key){e.preventDefault(),k("prev");return}if("ArrowDown"===e.key){e.preventDefault(),k("next");return}if("PageUp"===e.key){e.preventDefault(),k("first");return}if("PageDown"===e.key){e.preventDefault(),k("last");return}" "===e.key&&e.preventDefault(),1!==e.key.length||e.altKey||e.ctrlKey||e.metaKey||C(e.key.toLocaleLowerCase())},onBlur:d,tabIndex:-1,"aria-activedescendant":`react-international-phone__${j(y[b]).iso2}-option`},y.map((e,n)=>{let i=j(e),u=i.iso2===r,d=n===b,c=o.includes(i.iso2),p=n===o.length-1,m=s?.find(e=>e.iso2===i.iso2);return a.createElement(a.Fragment,{key:i.iso2},a.createElement("li",{"data-country":i.iso2,role:"option","aria-selected":u,"aria-label":`${i.name} ${t}${i.dialCode}`,id:`react-international-phone__${i.iso2}-option`,className:l({addPrefix:["country-selector-dropdown__list-item",c&&"country-selector-dropdown__list-item--preferred",u&&"country-selector-dropdown__list-item--selected",d&&"country-selector-dropdown__list-item--focused"],rawClassNames:[f.listItemClassName,c&&f.listItemPreferredClassName,u&&f.listItemSelectedClassName,d&&f.listItemFocusedClassName]}),onClick:()=>D(i),style:f.listItemStyle,title:i.name},a.createElement(q,{iso2:i.iso2,src:m?.src,className:l({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[f.listItemFlagClassName]}),style:f.listItemFlagStyle}),a.createElement("span",{className:l({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[f.listItemCountryNameClassName]}),style:f.listItemCountryNameStyle},i.name),a.createElement("span",{className:l({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[f.listItemDialCodeClassName]}),style:f.listItemDialCodeStyle},t,i.dialCode)),p?a.createElement("hr",{className:l({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[f.preferredListDividerClassName]}),style:f.preferredListDividerStyle}):null)}))},H=({selectedCountry:e,onSelect:t,disabled:r,hideDropdown:i,countries:o=n,preferredCountries:s=[],flags:u,renderButtonWrapper:d,...c})=>{let f,p,[m,y]=(0,a.useState)(!1),h=(0,a.useMemo)(()=>{if(e)return G({value:e,field:"iso2",countries:o})},[o,e]),C=(0,a.useRef)(null);return a.createElement("div",{className:l({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:C},(f={title:h?.name,onClick:()=>y(e=>!e),onMouseDown:e=>e.preventDefault(),onKeyDown:e=>{e.key&&["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),y(!0))},disabled:i||r,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":m},p=a.createElement("div",{className:l({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},a.createElement(q,{iso2:e,src:u?.find(t=>t.iso2===e)?.src,className:l({addPrefix:["country-selector-button__flag-emoji",r&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:e?"visible":"hidden",...c.flagStyle}}),!i&&a.createElement("div",{className:l({addPrefix:["country-selector-button__dropdown-arrow",r&&"country-selector-button__dropdown-arrow--disabled",m&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle})),d?d({children:p,rootProps:f}):a.createElement("button",{...f,type:"button",className:l({addPrefix:["country-selector-button",m&&"country-selector-button--active",r&&"country-selector-button--disabled",i&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":e,style:c.buttonStyle},p)),a.createElement(U,{show:m,countries:o,preferredCountries:s,flags:u,onSelect:e=>{y(!1),t?.(e)},selectedCountry:e,onClose:()=>{y(!1)},...c.dropdownStyleProps}))},J=({dialCode:e,prefix:t,disabled:r,style:n,className:i})=>a.createElement("div",{className:l({addPrefix:["dial-code-preview",r&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:n},`${t}${e}
1`),Z=(0,a.forwardRef)(({value:e,onChange:t,countries:r=n,preferredCountries:i=[],hideDropdown:o,showDisabledDialCodeAndPrefix:s,disableFocusAfterCountrySelect:u,flags:d,style:c,className:f,inputStyle:p,inputClassName:m,countrySelectorStyleProps:y,dialCodePreviewStyleProps:h,inputProps:C,placeholder:g,disabled:b,name:w,onFocus:v,onBlur:D,required:k,autoFocus:N,...x},S)=>{let{phone:P,inputValue:A,inputRef:$,country:E,setCountry:M,handlePhoneValueChange:I}=F({value:e,countries:r,...x,onChange:e=>{t?.(e.phone,{country:e.country,inputValue:e.inputValue})}}),_=x.disableDialCodeAndPrefix&&s&&E?.dialCode;return(0,a.useImperativeHandle)(S,()=>$.current?Object.assign($.current,{setCountry:M,state:{phone:P,inputValue:A,country:E}}):null,[$,M,P,A,E]),a.createElement("div",{ref:S,className:l({addPrefix:["input-container"],rawClassNames:[f]}),style:c},a.createElement(H,{onSelect:e=>M(e.iso2,{focusOnInput:!u}),flags:d,selectedCountry:E.iso2,countries:r,preferredCountries:i,disabled:b,hideDropdown:o,...y}),_&&a.createElement(J,{dialCode:E.dialCode,prefix:x.prefix??"+",disabled:b,...h}),a.createElement("input",{onChange:I,value:A,type:"tel",ref:$,className:l({addPrefix:["input",b&&"input--disabled"],rawClassNames:[m]}),placeholder:g,disabled:b,style:p,name:w,onFocus:v,onBlur:D,autoFocus:N,required:k,...C}))})}}]);

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.