vendor/assets/javascripts/flatpickr/l10n/hi.js in flatpickr-3.0.7.0 vs vendor/assets/javascripts/flatpickr/l10n/hi.js in flatpickr-4.5.2.0

- old
+ new

@@ -1,14 +1,65 @@ -/* Hindi locals for flatpickr */ -var flatpickr = flatpickr || { l10ns: {} }; -flatpickr.l10ns.hi = {}; +/* flatpickr v4.5.2, @license MIT */ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : + typeof define === 'function' && define.amd ? define(['exports'], factory) : + (factory((global.hi = {}))); +}(this, (function (exports) { 'use strict'; -flatpickr.l10ns.hi.weekdays = { - shorthand: ["रवि", "सोम", "मंगल", "बुध", "गुरु", "शुक्र", "शनि"], - longhand: ["रविवार", "सोमवार", "मंगलवार", "बुधवार", "गुरुवार", "शुक्रवार", "शनिवार"] -}; + const fp = typeof window !== "undefined" && window.flatpickr !== undefined + ? window.flatpickr + : { + l10ns: {}, + }; + const Hindi = { + weekdays: { + shorthand: ["रवि", "सोम", "मंगल", "बुध", "गुरु", "शुक्र", "शनि"], + longhand: [ + "रविवार", + "सोमवार", + "मंगलवार", + "बुधवार", + "गुरुवार", + "शुक्रवार", + "शनिवार", + ], + }, + months: { + shorthand: [ + "जन", + "फर", + "मार्च", + "अप्रेल", + "मई", + "जून", + "जूलाई", + "अग", + "सित", + "अक्ट", + "नव", + "दि", + ], + longhand: [ + "जनवरी ", + "फरवरी", + "मार्च", + "अप्रेल", + "मई", + "जून", + "जूलाई", + "अगस्त ", + "सितम्बर", + "अक्टूबर", + "नवम्बर", + "दिसम्बर", + ], + }, + }; + fp.l10ns.hi = Hindi; + var hi = fp.l10ns; -flatpickr.l10ns.hi.months = { - shorthand: ["जन", "फर", "मार्च", "अप्रेल", "मई", "जून", "जूलाई", "अग", "सित", "अक्ट", "नव", "दि"], - longhand: ["जनवरी ", "फरवरी", "मार्च", "अप्रेल", "मई", "जून", "जूलाई", "अगस्त ", "सितम्बर", "अक्टूबर", "नवम्बर", "दिसम्बर"] -}; -if (typeof module !== "undefined") module.exports = flatpickr.l10ns; \ No newline at end of file + exports.Hindi = Hindi; + exports.default = hi; + + Object.defineProperty(exports, '__esModule', { value: true }); + +})));