@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
5 lines (4 loc) • 633 B
JavaScript
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
v3.3.0-next.10 */
import{c}from"./UYBDATYT.js";import{h as s}from"./5RWA6O77.js";import{S as r}from"./MPBE2SPX.js";var o={},n={};async function l(e){let t=s(e);if(o[t])return o[t];n[t]||(n[t]=fetch(r(`./assets/date-picker/nls/${t}.json`)).then(i=>i.json()).catch(()=>(console.error(`Translations for "${t}" not found or invalid, falling back to english`),l("en"))));let a=await n[t];return o[t]=a,a}function m(e){return e.map((t,a)=>c(t,a===1))}export{l as a,m as b};