PageSourceSearch

https://cdn.vialibri.net/static/assets/CountrySelect-bQR_zE9k.js

js vialibri.net collected 2026-09-24 09:36:16 UTC 2,444 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1aec5515-6852-4416-86fa-84022463d622",e._sentryDebugIdIdentifier="sentry-dbid-1aec5515-6852-4416-86fa-84022463d622")}catch(e){}}();import"./_sentry-release-injection-file-SYOkQ1Km.js";import{a as e}from"./rolldown-runtime-BBzOAo5_.js";import{t}from"./react-DuV36FPs.js";import{t as s}from"./sortBy-Cw9Nl2mh.js";import{t as a}from"./prop-types-Ccm1EFGL.js";import{a as o,t as l}from"./selectStyles-ELM30RAn.js";import{t as n}from"./react-select.esm-BO-DpDEC.js";import{K as r,at as i}from"./index-CRc22cjs.js";import{t as u}from"./FormLayoutContext-CsyD3FrV.js";import{n as p}from"./FinalControlGroup-Cmc21xKd.js";import{r as d}from"./FormField-DM_MQnEG.js";var m=e(t()),c=e(a()),f=i(),y=r(),b=({name:e,single:t=!0,options:a,validate:r,alternativeCountries:i,required:c=!1,disabled:b=!1})=>{const v=d(e,r,c),g=(0,m.useContext)(u).inputs||{},j=s(Object.entries(a),[e=>"XX"===e[0]?"zzzzzzzzzzzzz":e[1].toLowerCase()]).map((e=>({value:e[0],label:e[1]}))),z=["FR","DE","GB","IT","US"],h=[{options:j.filter((e=>z.includes(e.value)))},{label:"--",options:j.filter((e=>!z.includes(e.value)))}],C=(0,m.useMemo)((()=>{const e=Object.entries(i).reduce(((e,[t,s])=>(e[s]?e[s].push(t):e[s]=[t],e)),{});return o({stringify:t=>[t.label,t.value,...e[t.value]||[]].join(" ")})}),[i]);return t?(0,y.jsx)(n,{inputId:e,styles:l(g.small),...v.input,value:v.input.value&&{value:v.input.value,label:a[v.input.value]},className:"vl-react-select",onChange:e=>v.input.onChange(e.value),options:h,placeholder:(0,y.jsx)(f.T,{message:"Select country..."}),menuPortalTarget:document.querySelector("body"),isDisabled:p(v.meta)||b,filterOption:C}):(0,y.jsx)(n,{inputId:e,styles:l(g.small),...v.input,value:v.input.value&&v.input.value.map((e=>({value:e,label:a[e]}))),className:"vl-react-select",onChange:e=>v.input.onChange(e?e.map((e=>e.value)):[]),placeholder:(0,y.jsx)(f.T,{message:"Type to search..."}),options:h,isMulti:!0,hideSelectedOptions:!1,closeMenuOnSelect:!1,menuPortalTarget:document.querySelector("body"),isDisabled:p(v.meta)||b,filterOption:C})};b.propTypes={name:c.default.string.isRequired,options:c.default.object,single:c.default.bool};export{b as t};
2//# sourceMappingURL=CountrySelect-bQR_zE9k.js.map

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.