UNPKG

@keyhowl/reservation-form

Version:

In order to use this form, you need to have a registration in Keyhowl. There is a detailed tutorial on how to use this package on the [Keyhowl website](https://keyhowl.com).

349 lines (348 loc) 8.18 kB
import { b as m, a as r, c as l, d as o } from "./main-e152d45e.mjs"; import { i as s } from "./index-fcb4e140.mjs"; import "react"; var g = { lessThanXSeconds: { one: "meno di un secondo", other: "meno di {{count}} secondi" }, xSeconds: { one: "un secondo", other: "{{count}} secondi" }, halfAMinute: "alcuni secondi", lessThanXMinutes: { one: "meno di un minuto", other: "meno di {{count}} minuti" }, xMinutes: { one: "un minuto", other: "{{count}} minuti" }, aboutXHours: { one: "circa un'ora", other: "circa {{count}} ore" }, xHours: { one: "un'ora", other: "{{count}} ore" }, xDays: { one: "un giorno", other: "{{count}} giorni" }, aboutXWeeks: { one: "circa una settimana", other: "circa {{count}} settimane" }, xWeeks: { one: "una settimana", other: "{{count}} settimane" }, aboutXMonths: { one: "circa un mese", other: "circa {{count}} mesi" }, xMonths: { one: "un mese", other: "{{count}} mesi" }, aboutXYears: { one: "circa un anno", other: "circa {{count}} anni" }, xYears: { one: "un anno", other: "{{count}} anni" }, overXYears: { one: "più di un anno", other: "più di {{count}} anni" }, almostXYears: { one: "quasi un anno", other: "quasi {{count}} anni" } }, c = function(e, i, t) { var a, n = g[e]; return typeof n == "string" ? a = n : i === 1 ? a = n.one : a = n.other.replace("{{count}}", i.toString()), t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "tra " + a : a + " fa" : a; }; const h = c; var v = { full: "EEEE d MMMM y", long: "d MMMM y", medium: "d MMM y", short: "dd/MM/y" }, f = { full: "HH:mm:ss zzzz", long: "HH:mm:ss z", medium: "HH:mm:ss", short: "HH:mm" }, p = { full: "{{date}} {{time}}", long: "{{date}} {{time}}", medium: "{{date}} {{time}}", short: "{{date}} {{time}}" }, b = { date: m({ formats: v, defaultWidth: "full" }), time: m({ formats: f, defaultWidth: "full" }), dateTime: m({ formats: p, defaultWidth: "full" }) }; const z = b; var d = ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"]; function P(e) { switch (e) { case 0: return "'domenica scorsa alle' p"; default: return "'" + d[e] + " scorso alle' p"; } } function u(e) { return "'" + d[e] + " alle' p"; } function M(e) { switch (e) { case 0: return "'domenica prossima alle' p"; default: return "'" + d[e] + " prossimo alle' p"; } } var w = { lastWeek: function(e, i, t) { var a = e.getUTCDay(); return s(e, i, t) ? u(a) : P(a); }, yesterday: "'ieri alle' p", today: "'oggi alle' p", tomorrow: "'domani alle' p", nextWeek: function(e, i, t) { var a = e.getUTCDay(); return s(e, i, t) ? u(a) : M(a); }, other: "P" }, y = function(e, i, t, a) { var n = w[e]; return typeof n == "function" ? n(i, t, a) : n; }; const W = y; var C = { narrow: ["aC", "dC"], abbreviated: ["a.C.", "d.C."], wide: ["avanti Cristo", "dopo Cristo"] }, k = { narrow: ["1", "2", "3", "4"], abbreviated: ["T1", "T2", "T3", "T4"], wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"] }, D = { narrow: ["G", "F", "M", "A", "M", "G", "L", "A", "S", "O", "N", "D"], abbreviated: ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic"], wide: ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre"] }, x = { narrow: ["D", "L", "M", "M", "G", "V", "S"], short: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"], abbreviated: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"], wide: ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"] }, T = { narrow: { am: "m.", pm: "p.", midnight: "mezzanotte", noon: "mezzogiorno", morning: "mattina", afternoon: "pomeriggio", evening: "sera", night: "notte" }, abbreviated: { am: "AM", pm: "PM", midnight: "mezzanotte", noon: "mezzogiorno", morning: "mattina", afternoon: "pomeriggio", evening: "sera", night: "notte" }, wide: { am: "AM", pm: "PM", midnight: "mezzanotte", noon: "mezzogiorno", morning: "mattina", afternoon: "pomeriggio", evening: "sera", night: "notte" } }, V = { narrow: { am: "m.", pm: "p.", midnight: "mezzanotte", noon: "mezzogiorno", morning: "di mattina", afternoon: "del pomeriggio", evening: "di sera", night: "di notte" }, abbreviated: { am: "AM", pm: "PM", midnight: "mezzanotte", noon: "mezzogiorno", morning: "di mattina", afternoon: "del pomeriggio", evening: "di sera", night: "di notte" }, wide: { am: "AM", pm: "PM", midnight: "mezzanotte", noon: "mezzogiorno", morning: "di mattina", afternoon: "del pomeriggio", evening: "di sera", night: "di notte" } }, F = function(e, i) { var t = Number(e); return t + "º"; }, H = { ordinalNumber: F, era: r({ values: C, defaultWidth: "wide" }), quarter: r({ values: k, defaultWidth: "wide", argumentCallback: function(e) { return e - 1; } }), month: r({ values: D, defaultWidth: "wide" }), day: r({ values: x, defaultWidth: "wide" }), dayPeriod: r({ values: T, defaultWidth: "wide", formattingValues: V, defaultFormattingWidth: "wide" }) }; const L = H; var E = /^(\d+)(º)?/i, S = /\d+/i, X = { narrow: /^(aC|dC)/i, abbreviated: /^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i, wide: /^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i }, A = { any: [/^a/i, /^(d|e)/i] }, N = { narrow: /^[1234]/i, abbreviated: /^t[1234]/i, wide: /^[1234](º)? trimestre/i }, q = { any: [/1/i, /2/i, /3/i, /4/i] }, $ = { narrow: /^[gfmalsond]/i, abbreviated: /^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i, wide: /^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i }, O = { narrow: [/^g/i, /^f/i, /^m/i, /^a/i, /^m/i, /^g/i, /^l/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], any: [/^ge/i, /^f/i, /^mar/i, /^ap/i, /^mag/i, /^gi/i, /^l/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i] }, R = { narrow: /^[dlmgvs]/i, short: /^(do|lu|ma|me|gi|ve|sa)/i, abbreviated: /^(dom|lun|mar|mer|gio|ven|sab)/i, wide: /^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i }, Y = { narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^g/i, /^v/i, /^s/i], any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^g/i, /^v/i, /^s/i] }, G = { narrow: /^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, any: /^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i }, U = { any: { am: /^a/i, pm: /^p/i, midnight: /^mezza/i, noon: /^mezzo/i, morning: /mattina/i, afternoon: /pomeriggio/i, evening: /sera/i, night: /notte/i } }, Q = { ordinalNumber: l({ matchPattern: E, parsePattern: S, valueCallback: function(e) { return parseInt(e, 10); } }), era: o({ matchPatterns: X, defaultMatchWidth: "wide", parsePatterns: A, defaultParseWidth: "any" }), quarter: o({ matchPatterns: N, defaultMatchWidth: "wide", parsePatterns: q, defaultParseWidth: "any", valueCallback: function(e) { return e + 1; } }), month: o({ matchPatterns: $, defaultMatchWidth: "wide", parsePatterns: O, defaultParseWidth: "any" }), day: o({ matchPatterns: R, defaultMatchWidth: "wide", parsePatterns: Y, defaultParseWidth: "any" }), dayPeriod: o({ matchPatterns: G, defaultMatchWidth: "any", parsePatterns: U, defaultParseWidth: "any" }) }; const I = Q; var J = { code: "it", formatDistance: h, formatLong: z, formatRelative: W, localize: L, match: I, options: { weekStartsOn: 1, firstWeekContainsDate: 4 } }; export { J as default };