@dejwcake/craftable 0.1.9 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +117 -3
- package/dist/buildMatchPatternFn-BV4I8r8j.js +63 -0
- package/dist/buildMatchPatternFn-T5KjFTBQ.cjs +1 -0
- package/dist/craftable.css +2 -0
- package/dist/cs-B5QMxFrl.js +682 -0
- package/dist/cs-MAoetkhe.cjs +1 -0
- package/dist/de-BlQ2ZKmc.js +526 -0
- package/dist/de-BoVLAn6U.cjs +1 -0
- package/dist/en-US-BLvEnhs4.js +443 -0
- package/dist/en-US-Dz8vkDZ_.cjs +1 -0
- package/dist/en-US-X9gX759i.cjs +1 -0
- package/dist/es-DBHDeXHI.cjs +1 -0
- package/dist/es-YEqfkBY2.js +437 -0
- package/dist/fr-B7MHC2AN.js +407 -0
- package/dist/fr-DLs3QoNB.cjs +1 -0
- package/dist/hu-BKZPI9jH.cjs +1 -0
- package/dist/hu-reoJgNxD.js +425 -0
- package/dist/index.cjs +1 -0
- package/dist/index.mjs +3866 -0
- package/dist/isSameWeek-CC6GX_zp.js +40 -0
- package/dist/isSameWeek-Mctj6Tdj.cjs +1 -0
- package/dist/pl-B5A0Rjp7.js +628 -0
- package/dist/pl-BMyrOO-Q.cjs +1 -0
- package/dist/sk-B7JF2MoV.cjs +1 -0
- package/dist/sk-Btro3W4S.js +602 -0
- package/package.json +68 -40
- package/scripts/publish-components.js +118 -0
- package/scss/_images.scss +1 -1
- package/scss/_variables.scss +13 -6
- package/scss/app.scss +4 -4
- package/scss/overrides/_alerts.scss +0 -2
- package/scss/overrides/_badges.scss +1 -17
- package/scss/overrides/_buttons.scss +64 -7
- package/scss/overrides/_cards.scss +4 -51
- package/scss/overrides/_checkboxes.scss +54 -59
- package/scss/overrides/_forms.scss +270 -176
- package/scss/overrides/_index.scss +18 -18
- package/scss/overrides/_keyframes.scss +6 -4
- package/scss/overrides/_layout.scss +24 -30
- package/scss/overrides/_media-wysiwyg.scss +9 -111
- package/scss/overrides/_modal.scss +0 -18
- package/scss/overrides/_multiselect.scss +63 -7
- package/scss/overrides/_nav.scss +55 -33
- package/scss/overrides/_notifications.scss +6 -1
- package/scss/overrides/_pagination.scss +3 -3
- package/scss/overrides/_sidebar.scss +84 -0
- package/scss/overrides/_tables.scss +52 -37
- package/scss/overrides/_text.scss +1 -3
- package/scss/overrides/_wysiwyg.scss +151 -48
- package/scss/styles/_auth.scss +32 -37
- package/scss/styles/_custom.scss +44 -1
- package/scss/styles/_index.scss +4 -4
- package/scss/styles/_legacy.scss +5 -81
- package/scss/styles/_others.scss +232 -337
- package/scss/vendor/_index.scss +5 -4
- package/src/auth/ActivationError.vue +23 -0
- package/src/auth/ActivationForm.vue +69 -0
- package/src/auth/ForgotPasswordForm.vue +74 -0
- package/src/auth/LoginForm.vue +107 -0
- package/src/auth/ResetPasswordForm.vue +122 -0
- package/src/components/ConfirmModal.vue +65 -0
- package/src/components/UserDetailTooltip.vue +88 -0
- package/src/components/form/CkeditorEditor.vue +205 -0
- package/src/components/form/FormCheckbox.vue +29 -0
- package/src/components/form/FormDatePicker.vue +52 -0
- package/src/components/form/FormEmail.vue +17 -0
- package/src/components/form/FormInput.vue +31 -0
- package/src/components/form/FormLocalizedInput.vue +47 -0
- package/src/components/form/FormLocalizedWysiwyg.vue +55 -0
- package/src/components/form/FormLocalizedWysiwygSimple.vue +55 -0
- package/src/components/form/FormMultiSelect.vue +36 -0
- package/src/components/form/FormPasswordConfirm.vue +49 -0
- package/src/components/form/FormSelect.vue +35 -0
- package/src/components/form/FormSubmit.vue +13 -0
- package/src/components/form/FormTextarea.vue +31 -0
- package/src/components/form/FormWysiwyg.vue +31 -0
- package/src/components/form/FormWysiwygSimple.vue +31 -0
- package/src/components/form/LocalizationBar.vue +90 -0
- package/src/components/form/MediaUpload.vue +317 -0
- package/src/components/form/TiptapEditor.vue +238 -0
- package/src/components/listing/BulkCheckboxHeader.vue +18 -0
- package/src/components/listing/BulkCheckboxRow.vue +21 -0
- package/src/components/listing/BulkOperationsBar.vue +41 -0
- package/src/components/listing/DeleteButton.vue +46 -0
- package/src/components/listing/EditButton.vue +17 -0
- package/src/components/listing/EmptyState.vue +25 -0
- package/src/components/listing/ListingHeader.vue +24 -0
- package/src/components/listing/Pagination.vue +158 -0
- package/src/components/listing/PerPage.vue +15 -0
- package/src/components/listing/PublishedAtColumn.vue +226 -0
- package/src/components/listing/Search.vue +81 -0
- package/src/components/listing/Sortable.vue +28 -0
- package/src/components/listing/ToggleSwitch.vue +47 -0
- package/src/composables/useAdmin.js +39 -0
- package/src/composables/useBaseAuth.js +81 -0
- package/src/composables/useBaseForm.js +265 -0
- package/src/composables/useBaseListing.js +316 -0
- package/src/composables/useResponsiveColumns.js +62 -0
- package/src/index.js +62 -0
- package/src/translation/TranslationListing.vue +230 -0
- package/src/translation/modals/TranslationEditModal.vue +86 -0
- package/src/translation/modals/TranslationExportModal.vue +74 -0
- package/src/translation/modals/TranslationImportModal.vue +255 -0
- package/src/ui/index.js +99 -0
- package/src/utils/ckeditorHelpers.js +36 -0
- package/src/utils/dateFnsLocale.js +24 -0
- package/src/utils/dateFormatters.js +30 -0
- package/src/utils/mediaProps.js +14 -0
- package/src/utils/notify.js +22 -0
- package/dist/admin/Admin.js +0 -42
- package/dist/auth/Form.js +0 -15
- package/dist/base-components/Form/BaseForm.js +0 -392
- package/dist/base-components/Form/BaseUpload.js +0 -188
- package/dist/base-components/Form/bootstrap.js +0 -21
- package/dist/base-components/Listing/BaseListing.js +0 -454
- package/dist/base-components/Listing/components/Pagination.js +0 -105
- package/dist/base-components/Listing/components/Sortable.js +0 -48
- package/dist/base-components/Listing/components/UserDetailTooltip.js +0 -55
- package/dist/index.js +0 -70
- package/dist/overrides/trumbowyg.edit-embed-template.js +0 -72
- package/dist/overrides/trumbowyg.reupload.js +0 -146
- package/dist/overrides/trumbowyg.template.js +0 -67
- package/dist/translation/Form.js +0 -15
- package/dist/translation/Listing.js +0 -283
- package/dist/ui/index.js +0 -33
- package/scss/overrides/_switches.scss +0 -25
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
//#region node_modules/date-fns/constants.js
|
|
2
|
+
var e = 365.2425, t = 3600 * 24;
|
|
3
|
+
t * 7, t * e / 12 * 3;
|
|
4
|
+
var n = Symbol.for("constructDateFrom");
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region node_modules/date-fns/constructFrom.js
|
|
7
|
+
function r(e, t) {
|
|
8
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && n in e ? e[n](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region node_modules/date-fns/_lib/normalizeDates.js
|
|
12
|
+
function i(e, ...t) {
|
|
13
|
+
let n = r.bind(null, e || t.find((e) => typeof e == "object"));
|
|
14
|
+
return t.map(n);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region node_modules/date-fns/_lib/defaultOptions.js
|
|
18
|
+
var a = {};
|
|
19
|
+
function o() {
|
|
20
|
+
return a;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region node_modules/date-fns/toDate.js
|
|
24
|
+
function s(e, t) {
|
|
25
|
+
return r(t || e, e);
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region node_modules/date-fns/startOfWeek.js
|
|
29
|
+
function c(e, t) {
|
|
30
|
+
let n = o(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = s(e, t?.in), a = i.getDay(), c = (a < r ? 7 : 0) + a - r;
|
|
31
|
+
return i.setDate(i.getDate() - c), i.setHours(0, 0, 0, 0), i;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region node_modules/date-fns/isSameWeek.js
|
|
35
|
+
function l(e, t, n) {
|
|
36
|
+
let [r, a] = i(n?.in, e, t);
|
|
37
|
+
return +c(r, n) == +c(a, n);
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { l as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=365.2425,t=3600*24;t*7,t*e/12*3;var n=Symbol.for(`constructDateFrom`);function r(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&n in e?e[n](t):e instanceof Date?new e.constructor(t):new Date(t)}function i(e,...t){let n=r.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}var a={};function o(){return a}function s(e,t){return r(t||e,e)}function c(e,t){let n=o(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=s(e,t?.in),a=i.getDay(),c=(a<r?7:0)+a-r;return i.setDate(i.getDate()-c),i.setHours(0,0,0,0),i}function l(e,t,n){let[r,a]=i(n?.in,e,t);return+c(r,n)==+c(a,n)}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return l}});
|
|
@@ -0,0 +1,628 @@
|
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./buildMatchPatternFn-BV4I8r8j.js";
|
|
2
|
+
import { t as i } from "./isSameWeek-CC6GX_zp.js";
|
|
3
|
+
//#region node_modules/date-fns/locale/pl/_lib/formatDistance.js
|
|
4
|
+
var a = {
|
|
5
|
+
lessThanXSeconds: {
|
|
6
|
+
one: {
|
|
7
|
+
regular: "mniej niż sekunda",
|
|
8
|
+
past: "mniej niż sekundę",
|
|
9
|
+
future: "mniej niż sekundę"
|
|
10
|
+
},
|
|
11
|
+
twoFour: "mniej niż {{count}} sekundy",
|
|
12
|
+
other: "mniej niż {{count}} sekund"
|
|
13
|
+
},
|
|
14
|
+
xSeconds: {
|
|
15
|
+
one: {
|
|
16
|
+
regular: "sekunda",
|
|
17
|
+
past: "sekundę",
|
|
18
|
+
future: "sekundę"
|
|
19
|
+
},
|
|
20
|
+
twoFour: "{{count}} sekundy",
|
|
21
|
+
other: "{{count}} sekund"
|
|
22
|
+
},
|
|
23
|
+
halfAMinute: {
|
|
24
|
+
one: "pół minuty",
|
|
25
|
+
twoFour: "pół minuty",
|
|
26
|
+
other: "pół minuty"
|
|
27
|
+
},
|
|
28
|
+
lessThanXMinutes: {
|
|
29
|
+
one: {
|
|
30
|
+
regular: "mniej niż minuta",
|
|
31
|
+
past: "mniej niż minutę",
|
|
32
|
+
future: "mniej niż minutę"
|
|
33
|
+
},
|
|
34
|
+
twoFour: "mniej niż {{count}} minuty",
|
|
35
|
+
other: "mniej niż {{count}} minut"
|
|
36
|
+
},
|
|
37
|
+
xMinutes: {
|
|
38
|
+
one: {
|
|
39
|
+
regular: "minuta",
|
|
40
|
+
past: "minutę",
|
|
41
|
+
future: "minutę"
|
|
42
|
+
},
|
|
43
|
+
twoFour: "{{count}} minuty",
|
|
44
|
+
other: "{{count}} minut"
|
|
45
|
+
},
|
|
46
|
+
aboutXHours: {
|
|
47
|
+
one: {
|
|
48
|
+
regular: "około godziny",
|
|
49
|
+
past: "około godziny",
|
|
50
|
+
future: "około godzinę"
|
|
51
|
+
},
|
|
52
|
+
twoFour: "około {{count}} godziny",
|
|
53
|
+
other: "około {{count}} godzin"
|
|
54
|
+
},
|
|
55
|
+
xHours: {
|
|
56
|
+
one: {
|
|
57
|
+
regular: "godzina",
|
|
58
|
+
past: "godzinę",
|
|
59
|
+
future: "godzinę"
|
|
60
|
+
},
|
|
61
|
+
twoFour: "{{count}} godziny",
|
|
62
|
+
other: "{{count}} godzin"
|
|
63
|
+
},
|
|
64
|
+
xDays: {
|
|
65
|
+
one: {
|
|
66
|
+
regular: "dzień",
|
|
67
|
+
past: "dzień",
|
|
68
|
+
future: "1 dzień"
|
|
69
|
+
},
|
|
70
|
+
twoFour: "{{count}} dni",
|
|
71
|
+
other: "{{count}} dni"
|
|
72
|
+
},
|
|
73
|
+
aboutXWeeks: {
|
|
74
|
+
one: "około tygodnia",
|
|
75
|
+
twoFour: "około {{count}} tygodni",
|
|
76
|
+
other: "około {{count}} tygodni"
|
|
77
|
+
},
|
|
78
|
+
xWeeks: {
|
|
79
|
+
one: "tydzień",
|
|
80
|
+
twoFour: "{{count}} tygodnie",
|
|
81
|
+
other: "{{count}} tygodni"
|
|
82
|
+
},
|
|
83
|
+
aboutXMonths: {
|
|
84
|
+
one: "około miesiąc",
|
|
85
|
+
twoFour: "około {{count}} miesiące",
|
|
86
|
+
other: "około {{count}} miesięcy"
|
|
87
|
+
},
|
|
88
|
+
xMonths: {
|
|
89
|
+
one: "miesiąc",
|
|
90
|
+
twoFour: "{{count}} miesiące",
|
|
91
|
+
other: "{{count}} miesięcy"
|
|
92
|
+
},
|
|
93
|
+
aboutXYears: {
|
|
94
|
+
one: "około rok",
|
|
95
|
+
twoFour: "około {{count}} lata",
|
|
96
|
+
other: "około {{count}} lat"
|
|
97
|
+
},
|
|
98
|
+
xYears: {
|
|
99
|
+
one: "rok",
|
|
100
|
+
twoFour: "{{count}} lata",
|
|
101
|
+
other: "{{count}} lat"
|
|
102
|
+
},
|
|
103
|
+
overXYears: {
|
|
104
|
+
one: "ponad rok",
|
|
105
|
+
twoFour: "ponad {{count}} lata",
|
|
106
|
+
other: "ponad {{count}} lat"
|
|
107
|
+
},
|
|
108
|
+
almostXYears: {
|
|
109
|
+
one: "prawie rok",
|
|
110
|
+
twoFour: "prawie {{count}} lata",
|
|
111
|
+
other: "prawie {{count}} lat"
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
function o(e, t) {
|
|
115
|
+
if (t === 1) return e.one;
|
|
116
|
+
let n = t % 100;
|
|
117
|
+
if (n <= 20 && n > 10) return e.other;
|
|
118
|
+
let r = n % 10;
|
|
119
|
+
return r >= 2 && r <= 4 ? e.twoFour : e.other;
|
|
120
|
+
}
|
|
121
|
+
function s(e, t, n) {
|
|
122
|
+
let r = o(e, t);
|
|
123
|
+
return (typeof r == "string" ? r : r[n]).replace("{{count}}", String(t));
|
|
124
|
+
}
|
|
125
|
+
var c = (e, t, n) => {
|
|
126
|
+
let r = a[e];
|
|
127
|
+
return n?.addSuffix ? n.comparison && n.comparison > 0 ? "za " + s(r, t, "future") : s(r, t, "past") + " temu" : s(r, t, "regular");
|
|
128
|
+
}, l = {
|
|
129
|
+
date: e({
|
|
130
|
+
formats: {
|
|
131
|
+
full: "EEEE, do MMMM y",
|
|
132
|
+
long: "do MMMM y",
|
|
133
|
+
medium: "do MMM y",
|
|
134
|
+
short: "dd.MM.y"
|
|
135
|
+
},
|
|
136
|
+
defaultWidth: "full"
|
|
137
|
+
}),
|
|
138
|
+
time: e({
|
|
139
|
+
formats: {
|
|
140
|
+
full: "HH:mm:ss zzzz",
|
|
141
|
+
long: "HH:mm:ss z",
|
|
142
|
+
medium: "HH:mm:ss",
|
|
143
|
+
short: "HH:mm"
|
|
144
|
+
},
|
|
145
|
+
defaultWidth: "full"
|
|
146
|
+
}),
|
|
147
|
+
dateTime: e({
|
|
148
|
+
formats: {
|
|
149
|
+
full: "{{date}} {{time}}",
|
|
150
|
+
long: "{{date}} {{time}}",
|
|
151
|
+
medium: "{{date}}, {{time}}",
|
|
152
|
+
short: "{{date}}, {{time}}"
|
|
153
|
+
},
|
|
154
|
+
defaultWidth: "full"
|
|
155
|
+
})
|
|
156
|
+
}, u = {
|
|
157
|
+
masculine: "ostatni",
|
|
158
|
+
feminine: "ostatnia"
|
|
159
|
+
}, d = {
|
|
160
|
+
masculine: "ten",
|
|
161
|
+
feminine: "ta"
|
|
162
|
+
}, f = {
|
|
163
|
+
masculine: "następny",
|
|
164
|
+
feminine: "następna"
|
|
165
|
+
}, p = {
|
|
166
|
+
0: "feminine",
|
|
167
|
+
1: "masculine",
|
|
168
|
+
2: "masculine",
|
|
169
|
+
3: "feminine",
|
|
170
|
+
4: "masculine",
|
|
171
|
+
5: "masculine",
|
|
172
|
+
6: "feminine"
|
|
173
|
+
};
|
|
174
|
+
function m(e, t, n, r) {
|
|
175
|
+
let a;
|
|
176
|
+
if (i(t, n, r)) a = d;
|
|
177
|
+
else if (e === "lastWeek") a = u;
|
|
178
|
+
else if (e === "nextWeek") a = f;
|
|
179
|
+
else throw Error(`Cannot determine adjectives for token ${e}`);
|
|
180
|
+
let o = p[t.getDay()];
|
|
181
|
+
return `'${a[o]}' eeee 'o' p`;
|
|
182
|
+
}
|
|
183
|
+
var h = {
|
|
184
|
+
lastWeek: m,
|
|
185
|
+
yesterday: "'wczoraj o' p",
|
|
186
|
+
today: "'dzisiaj o' p",
|
|
187
|
+
tomorrow: "'jutro o' p",
|
|
188
|
+
nextWeek: m,
|
|
189
|
+
other: "P"
|
|
190
|
+
}, g = {
|
|
191
|
+
code: "pl",
|
|
192
|
+
formatDistance: c,
|
|
193
|
+
formatLong: l,
|
|
194
|
+
formatRelative: (e, t, n, r) => {
|
|
195
|
+
let i = h[e];
|
|
196
|
+
return typeof i == "function" ? i(e, t, n, r) : i;
|
|
197
|
+
},
|
|
198
|
+
localize: {
|
|
199
|
+
ordinalNumber: (e, t) => String(e),
|
|
200
|
+
era: n({
|
|
201
|
+
values: {
|
|
202
|
+
narrow: ["p.n.e.", "n.e."],
|
|
203
|
+
abbreviated: ["p.n.e.", "n.e."],
|
|
204
|
+
wide: ["przed naszą erą", "naszej ery"]
|
|
205
|
+
},
|
|
206
|
+
defaultWidth: "wide"
|
|
207
|
+
}),
|
|
208
|
+
quarter: n({
|
|
209
|
+
values: {
|
|
210
|
+
narrow: [
|
|
211
|
+
"1",
|
|
212
|
+
"2",
|
|
213
|
+
"3",
|
|
214
|
+
"4"
|
|
215
|
+
],
|
|
216
|
+
abbreviated: [
|
|
217
|
+
"I kw.",
|
|
218
|
+
"II kw.",
|
|
219
|
+
"III kw.",
|
|
220
|
+
"IV kw."
|
|
221
|
+
],
|
|
222
|
+
wide: [
|
|
223
|
+
"I kwartał",
|
|
224
|
+
"II kwartał",
|
|
225
|
+
"III kwartał",
|
|
226
|
+
"IV kwartał"
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
defaultWidth: "wide",
|
|
230
|
+
argumentCallback: (e) => e - 1
|
|
231
|
+
}),
|
|
232
|
+
month: n({
|
|
233
|
+
values: {
|
|
234
|
+
narrow: [
|
|
235
|
+
"S",
|
|
236
|
+
"L",
|
|
237
|
+
"M",
|
|
238
|
+
"K",
|
|
239
|
+
"M",
|
|
240
|
+
"C",
|
|
241
|
+
"L",
|
|
242
|
+
"S",
|
|
243
|
+
"W",
|
|
244
|
+
"P",
|
|
245
|
+
"L",
|
|
246
|
+
"G"
|
|
247
|
+
],
|
|
248
|
+
abbreviated: [
|
|
249
|
+
"sty",
|
|
250
|
+
"lut",
|
|
251
|
+
"mar",
|
|
252
|
+
"kwi",
|
|
253
|
+
"maj",
|
|
254
|
+
"cze",
|
|
255
|
+
"lip",
|
|
256
|
+
"sie",
|
|
257
|
+
"wrz",
|
|
258
|
+
"paź",
|
|
259
|
+
"lis",
|
|
260
|
+
"gru"
|
|
261
|
+
],
|
|
262
|
+
wide: [
|
|
263
|
+
"styczeń",
|
|
264
|
+
"luty",
|
|
265
|
+
"marzec",
|
|
266
|
+
"kwiecień",
|
|
267
|
+
"maj",
|
|
268
|
+
"czerwiec",
|
|
269
|
+
"lipiec",
|
|
270
|
+
"sierpień",
|
|
271
|
+
"wrzesień",
|
|
272
|
+
"październik",
|
|
273
|
+
"listopad",
|
|
274
|
+
"grudzień"
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
defaultWidth: "wide",
|
|
278
|
+
formattingValues: {
|
|
279
|
+
narrow: [
|
|
280
|
+
"s",
|
|
281
|
+
"l",
|
|
282
|
+
"m",
|
|
283
|
+
"k",
|
|
284
|
+
"m",
|
|
285
|
+
"c",
|
|
286
|
+
"l",
|
|
287
|
+
"s",
|
|
288
|
+
"w",
|
|
289
|
+
"p",
|
|
290
|
+
"l",
|
|
291
|
+
"g"
|
|
292
|
+
],
|
|
293
|
+
abbreviated: [
|
|
294
|
+
"sty",
|
|
295
|
+
"lut",
|
|
296
|
+
"mar",
|
|
297
|
+
"kwi",
|
|
298
|
+
"maj",
|
|
299
|
+
"cze",
|
|
300
|
+
"lip",
|
|
301
|
+
"sie",
|
|
302
|
+
"wrz",
|
|
303
|
+
"paź",
|
|
304
|
+
"lis",
|
|
305
|
+
"gru"
|
|
306
|
+
],
|
|
307
|
+
wide: [
|
|
308
|
+
"stycznia",
|
|
309
|
+
"lutego",
|
|
310
|
+
"marca",
|
|
311
|
+
"kwietnia",
|
|
312
|
+
"maja",
|
|
313
|
+
"czerwca",
|
|
314
|
+
"lipca",
|
|
315
|
+
"sierpnia",
|
|
316
|
+
"września",
|
|
317
|
+
"października",
|
|
318
|
+
"listopada",
|
|
319
|
+
"grudnia"
|
|
320
|
+
]
|
|
321
|
+
},
|
|
322
|
+
defaultFormattingWidth: "wide"
|
|
323
|
+
}),
|
|
324
|
+
day: n({
|
|
325
|
+
values: {
|
|
326
|
+
narrow: [
|
|
327
|
+
"N",
|
|
328
|
+
"P",
|
|
329
|
+
"W",
|
|
330
|
+
"Ś",
|
|
331
|
+
"C",
|
|
332
|
+
"P",
|
|
333
|
+
"S"
|
|
334
|
+
],
|
|
335
|
+
short: [
|
|
336
|
+
"nie",
|
|
337
|
+
"pon",
|
|
338
|
+
"wto",
|
|
339
|
+
"śro",
|
|
340
|
+
"czw",
|
|
341
|
+
"pią",
|
|
342
|
+
"sob"
|
|
343
|
+
],
|
|
344
|
+
abbreviated: [
|
|
345
|
+
"niedz.",
|
|
346
|
+
"pon.",
|
|
347
|
+
"wt.",
|
|
348
|
+
"śr.",
|
|
349
|
+
"czw.",
|
|
350
|
+
"pt.",
|
|
351
|
+
"sob."
|
|
352
|
+
],
|
|
353
|
+
wide: [
|
|
354
|
+
"niedziela",
|
|
355
|
+
"poniedziałek",
|
|
356
|
+
"wtorek",
|
|
357
|
+
"środa",
|
|
358
|
+
"czwartek",
|
|
359
|
+
"piątek",
|
|
360
|
+
"sobota"
|
|
361
|
+
]
|
|
362
|
+
},
|
|
363
|
+
defaultWidth: "wide",
|
|
364
|
+
formattingValues: {
|
|
365
|
+
narrow: [
|
|
366
|
+
"n",
|
|
367
|
+
"p",
|
|
368
|
+
"w",
|
|
369
|
+
"ś",
|
|
370
|
+
"c",
|
|
371
|
+
"p",
|
|
372
|
+
"s"
|
|
373
|
+
],
|
|
374
|
+
short: [
|
|
375
|
+
"nie",
|
|
376
|
+
"pon",
|
|
377
|
+
"wto",
|
|
378
|
+
"śro",
|
|
379
|
+
"czw",
|
|
380
|
+
"pią",
|
|
381
|
+
"sob"
|
|
382
|
+
],
|
|
383
|
+
abbreviated: [
|
|
384
|
+
"niedz.",
|
|
385
|
+
"pon.",
|
|
386
|
+
"wt.",
|
|
387
|
+
"śr.",
|
|
388
|
+
"czw.",
|
|
389
|
+
"pt.",
|
|
390
|
+
"sob."
|
|
391
|
+
],
|
|
392
|
+
wide: [
|
|
393
|
+
"niedziela",
|
|
394
|
+
"poniedziałek",
|
|
395
|
+
"wtorek",
|
|
396
|
+
"środa",
|
|
397
|
+
"czwartek",
|
|
398
|
+
"piątek",
|
|
399
|
+
"sobota"
|
|
400
|
+
]
|
|
401
|
+
},
|
|
402
|
+
defaultFormattingWidth: "wide"
|
|
403
|
+
}),
|
|
404
|
+
dayPeriod: n({
|
|
405
|
+
values: {
|
|
406
|
+
narrow: {
|
|
407
|
+
am: "a",
|
|
408
|
+
pm: "p",
|
|
409
|
+
midnight: "półn.",
|
|
410
|
+
noon: "poł",
|
|
411
|
+
morning: "rano",
|
|
412
|
+
afternoon: "popoł.",
|
|
413
|
+
evening: "wiecz.",
|
|
414
|
+
night: "noc"
|
|
415
|
+
},
|
|
416
|
+
abbreviated: {
|
|
417
|
+
am: "AM",
|
|
418
|
+
pm: "PM",
|
|
419
|
+
midnight: "północ",
|
|
420
|
+
noon: "południe",
|
|
421
|
+
morning: "rano",
|
|
422
|
+
afternoon: "popołudnie",
|
|
423
|
+
evening: "wieczór",
|
|
424
|
+
night: "noc"
|
|
425
|
+
},
|
|
426
|
+
wide: {
|
|
427
|
+
am: "AM",
|
|
428
|
+
pm: "PM",
|
|
429
|
+
midnight: "północ",
|
|
430
|
+
noon: "południe",
|
|
431
|
+
morning: "rano",
|
|
432
|
+
afternoon: "popołudnie",
|
|
433
|
+
evening: "wieczór",
|
|
434
|
+
night: "noc"
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
defaultWidth: "wide",
|
|
438
|
+
formattingValues: {
|
|
439
|
+
narrow: {
|
|
440
|
+
am: "a",
|
|
441
|
+
pm: "p",
|
|
442
|
+
midnight: "o półn.",
|
|
443
|
+
noon: "w poł.",
|
|
444
|
+
morning: "rano",
|
|
445
|
+
afternoon: "po poł.",
|
|
446
|
+
evening: "wiecz.",
|
|
447
|
+
night: "w nocy"
|
|
448
|
+
},
|
|
449
|
+
abbreviated: {
|
|
450
|
+
am: "AM",
|
|
451
|
+
pm: "PM",
|
|
452
|
+
midnight: "o północy",
|
|
453
|
+
noon: "w południe",
|
|
454
|
+
morning: "rano",
|
|
455
|
+
afternoon: "po południu",
|
|
456
|
+
evening: "wieczorem",
|
|
457
|
+
night: "w nocy"
|
|
458
|
+
},
|
|
459
|
+
wide: {
|
|
460
|
+
am: "AM",
|
|
461
|
+
pm: "PM",
|
|
462
|
+
midnight: "o północy",
|
|
463
|
+
noon: "w południe",
|
|
464
|
+
morning: "rano",
|
|
465
|
+
afternoon: "po południu",
|
|
466
|
+
evening: "wieczorem",
|
|
467
|
+
night: "w nocy"
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
defaultFormattingWidth: "wide"
|
|
471
|
+
})
|
|
472
|
+
},
|
|
473
|
+
match: {
|
|
474
|
+
ordinalNumber: r({
|
|
475
|
+
matchPattern: /^(\d+)?/i,
|
|
476
|
+
parsePattern: /\d+/i,
|
|
477
|
+
valueCallback: (e) => parseInt(e, 10)
|
|
478
|
+
}),
|
|
479
|
+
era: t({
|
|
480
|
+
matchPatterns: {
|
|
481
|
+
narrow: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,
|
|
482
|
+
abbreviated: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,
|
|
483
|
+
wide: /^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i
|
|
484
|
+
},
|
|
485
|
+
defaultMatchWidth: "wide",
|
|
486
|
+
parsePatterns: { any: [/^p/i, /^n/i] },
|
|
487
|
+
defaultParseWidth: "any"
|
|
488
|
+
}),
|
|
489
|
+
quarter: t({
|
|
490
|
+
matchPatterns: {
|
|
491
|
+
narrow: /^[1234]/i,
|
|
492
|
+
abbreviated: /^(I|II|III|IV)\s*kw\.?/i,
|
|
493
|
+
wide: /^(I|II|III|IV)\s*kwarta(ł|l)/i
|
|
494
|
+
},
|
|
495
|
+
defaultMatchWidth: "wide",
|
|
496
|
+
parsePatterns: {
|
|
497
|
+
narrow: [
|
|
498
|
+
/1/i,
|
|
499
|
+
/2/i,
|
|
500
|
+
/3/i,
|
|
501
|
+
/4/i
|
|
502
|
+
],
|
|
503
|
+
any: [
|
|
504
|
+
/^I kw/i,
|
|
505
|
+
/^II kw/i,
|
|
506
|
+
/^III kw/i,
|
|
507
|
+
/^IV kw/i
|
|
508
|
+
]
|
|
509
|
+
},
|
|
510
|
+
defaultParseWidth: "any",
|
|
511
|
+
valueCallback: (e) => e + 1
|
|
512
|
+
}),
|
|
513
|
+
month: t({
|
|
514
|
+
matchPatterns: {
|
|
515
|
+
narrow: /^[slmkcwpg]/i,
|
|
516
|
+
abbreviated: /^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,
|
|
517
|
+
wide: /^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i
|
|
518
|
+
},
|
|
519
|
+
defaultMatchWidth: "wide",
|
|
520
|
+
parsePatterns: {
|
|
521
|
+
narrow: [
|
|
522
|
+
/^s/i,
|
|
523
|
+
/^l/i,
|
|
524
|
+
/^m/i,
|
|
525
|
+
/^k/i,
|
|
526
|
+
/^m/i,
|
|
527
|
+
/^c/i,
|
|
528
|
+
/^l/i,
|
|
529
|
+
/^s/i,
|
|
530
|
+
/^w/i,
|
|
531
|
+
/^p/i,
|
|
532
|
+
/^l/i,
|
|
533
|
+
/^g/i
|
|
534
|
+
],
|
|
535
|
+
any: [
|
|
536
|
+
/^st/i,
|
|
537
|
+
/^lu/i,
|
|
538
|
+
/^mar/i,
|
|
539
|
+
/^k/i,
|
|
540
|
+
/^maj/i,
|
|
541
|
+
/^c/i,
|
|
542
|
+
/^lip/i,
|
|
543
|
+
/^si/i,
|
|
544
|
+
/^w/i,
|
|
545
|
+
/^p/i,
|
|
546
|
+
/^lis/i,
|
|
547
|
+
/^g/i
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
defaultParseWidth: "any"
|
|
551
|
+
}),
|
|
552
|
+
day: t({
|
|
553
|
+
matchPatterns: {
|
|
554
|
+
narrow: /^[npwścs]/i,
|
|
555
|
+
short: /^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,
|
|
556
|
+
abbreviated: /^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,
|
|
557
|
+
wide: /^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i
|
|
558
|
+
},
|
|
559
|
+
defaultMatchWidth: "wide",
|
|
560
|
+
parsePatterns: {
|
|
561
|
+
narrow: [
|
|
562
|
+
/^n/i,
|
|
563
|
+
/^p/i,
|
|
564
|
+
/^w/i,
|
|
565
|
+
/^ś/i,
|
|
566
|
+
/^c/i,
|
|
567
|
+
/^p/i,
|
|
568
|
+
/^s/i
|
|
569
|
+
],
|
|
570
|
+
abbreviated: [
|
|
571
|
+
/^n/i,
|
|
572
|
+
/^po/i,
|
|
573
|
+
/^w/i,
|
|
574
|
+
/^(ś|s)r/i,
|
|
575
|
+
/^c/i,
|
|
576
|
+
/^pt/i,
|
|
577
|
+
/^so/i
|
|
578
|
+
],
|
|
579
|
+
any: [
|
|
580
|
+
/^n/i,
|
|
581
|
+
/^po/i,
|
|
582
|
+
/^w/i,
|
|
583
|
+
/^(ś|s)r/i,
|
|
584
|
+
/^c/i,
|
|
585
|
+
/^pi/i,
|
|
586
|
+
/^so/i
|
|
587
|
+
]
|
|
588
|
+
},
|
|
589
|
+
defaultParseWidth: "any"
|
|
590
|
+
}),
|
|
591
|
+
dayPeriod: t({
|
|
592
|
+
matchPatterns: {
|
|
593
|
+
narrow: /^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,
|
|
594
|
+
any: /^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i
|
|
595
|
+
},
|
|
596
|
+
defaultMatchWidth: "any",
|
|
597
|
+
parsePatterns: {
|
|
598
|
+
narrow: {
|
|
599
|
+
am: /^a$/i,
|
|
600
|
+
pm: /^p$/i,
|
|
601
|
+
midnight: /pó(ł|l)n/i,
|
|
602
|
+
noon: /po(ł|l)/i,
|
|
603
|
+
morning: /rano/i,
|
|
604
|
+
afternoon: /po\s*po(ł|l)/i,
|
|
605
|
+
evening: /wiecz/i,
|
|
606
|
+
night: /noc/i
|
|
607
|
+
},
|
|
608
|
+
any: {
|
|
609
|
+
am: /^am/i,
|
|
610
|
+
pm: /^pm/i,
|
|
611
|
+
midnight: /pó(ł|l)n/i,
|
|
612
|
+
noon: /po(ł|l)/i,
|
|
613
|
+
morning: /rano/i,
|
|
614
|
+
afternoon: /po\s*po(ł|l)/i,
|
|
615
|
+
evening: /wiecz/i,
|
|
616
|
+
night: /noc/i
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
defaultParseWidth: "any"
|
|
620
|
+
})
|
|
621
|
+
},
|
|
622
|
+
options: {
|
|
623
|
+
weekStartsOn: 1,
|
|
624
|
+
firstWeekContainsDate: 4
|
|
625
|
+
}
|
|
626
|
+
};
|
|
627
|
+
//#endregion
|
|
628
|
+
export { g as default, g as pl };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./buildMatchPatternFn-T5KjFTBQ.cjs`),t=require(`./isSameWeek-Mctj6Tdj.cjs`);var n={lessThanXSeconds:{one:{regular:`mniej niż sekunda`,past:`mniej niż sekundę`,future:`mniej niż sekundę`},twoFour:`mniej niż {{count}} sekundy`,other:`mniej niż {{count}} sekund`},xSeconds:{one:{regular:`sekunda`,past:`sekundę`,future:`sekundę`},twoFour:`{{count}} sekundy`,other:`{{count}} sekund`},halfAMinute:{one:`pół minuty`,twoFour:`pół minuty`,other:`pół minuty`},lessThanXMinutes:{one:{regular:`mniej niż minuta`,past:`mniej niż minutę`,future:`mniej niż minutę`},twoFour:`mniej niż {{count}} minuty`,other:`mniej niż {{count}} minut`},xMinutes:{one:{regular:`minuta`,past:`minutę`,future:`minutę`},twoFour:`{{count}} minuty`,other:`{{count}} minut`},aboutXHours:{one:{regular:`około godziny`,past:`około godziny`,future:`około godzinę`},twoFour:`około {{count}} godziny`,other:`około {{count}} godzin`},xHours:{one:{regular:`godzina`,past:`godzinę`,future:`godzinę`},twoFour:`{{count}} godziny`,other:`{{count}} godzin`},xDays:{one:{regular:`dzień`,past:`dzień`,future:`1 dzień`},twoFour:`{{count}} dni`,other:`{{count}} dni`},aboutXWeeks:{one:`około tygodnia`,twoFour:`około {{count}} tygodni`,other:`około {{count}} tygodni`},xWeeks:{one:`tydzień`,twoFour:`{{count}} tygodnie`,other:`{{count}} tygodni`},aboutXMonths:{one:`około miesiąc`,twoFour:`około {{count}} miesiące`,other:`około {{count}} miesięcy`},xMonths:{one:`miesiąc`,twoFour:`{{count}} miesiące`,other:`{{count}} miesięcy`},aboutXYears:{one:`około rok`,twoFour:`około {{count}} lata`,other:`około {{count}} lat`},xYears:{one:`rok`,twoFour:`{{count}} lata`,other:`{{count}} lat`},overXYears:{one:`ponad rok`,twoFour:`ponad {{count}} lata`,other:`ponad {{count}} lat`},almostXYears:{one:`prawie rok`,twoFour:`prawie {{count}} lata`,other:`prawie {{count}} lat`}};function r(e,t){if(t===1)return e.one;let n=t%100;if(n<=20&&n>10)return e.other;let r=n%10;return r>=2&&r<=4?e.twoFour:e.other}function i(e,t,n){let i=r(e,t);return(typeof i==`string`?i:i[n]).replace(`{{count}}`,String(t))}var a=(e,t,r)=>{let a=n[e];return r?.addSuffix?r.comparison&&r.comparison>0?`za `+i(a,t,`future`):i(a,t,`past`)+` temu`:i(a,t,`regular`)},o={date:e.i({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:e.i({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:e.i({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},s={masculine:`ostatni`,feminine:`ostatnia`},c={masculine:`ten`,feminine:`ta`},l={masculine:`następny`,feminine:`następna`},u={0:`feminine`,1:`masculine`,2:`masculine`,3:`feminine`,4:`masculine`,5:`masculine`,6:`feminine`};function d(e,n,r,i){let a;if(t.t(n,r,i))a=c;else if(e===`lastWeek`)a=s;else if(e===`nextWeek`)a=l;else throw Error(`Cannot determine adjectives for token ${e}`);let o=u[n.getDay()];return`'${a[o]}' eeee 'o' p`}var f={lastWeek:d,yesterday:`'wczoraj o' p`,today:`'dzisiaj o' p`,tomorrow:`'jutro o' p`,nextWeek:d,other:`P`},p={code:`pl`,formatDistance:a,formatLong:o,formatRelative:(e,t,n,r)=>{let i=f[e];return typeof i==`function`?i(e,t,n,r):i},localize:{ordinalNumber:(e,t)=>String(e),era:e.r({values:{narrow:[`p.n.e.`,`n.e.`],abbreviated:[`p.n.e.`,`n.e.`],wide:[`przed naszą erą`,`naszej ery`]},defaultWidth:`wide`}),quarter:e.r({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`I kw.`,`II kw.`,`III kw.`,`IV kw.`],wide:[`I kwartał`,`II kwartał`,`III kwartał`,`IV kwartał`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:e.r({values:{narrow:[`S`,`L`,`M`,`K`,`M`,`C`,`L`,`S`,`W`,`P`,`L`,`G`],abbreviated:[`sty`,`lut`,`mar`,`kwi`,`maj`,`cze`,`lip`,`sie`,`wrz`,`paź`,`lis`,`gru`],wide:[`styczeń`,`luty`,`marzec`,`kwiecień`,`maj`,`czerwiec`,`lipiec`,`sierpień`,`wrzesień`,`październik`,`listopad`,`grudzień`]},defaultWidth:`wide`,formattingValues:{narrow:[`s`,`l`,`m`,`k`,`m`,`c`,`l`,`s`,`w`,`p`,`l`,`g`],abbreviated:[`sty`,`lut`,`mar`,`kwi`,`maj`,`cze`,`lip`,`sie`,`wrz`,`paź`,`lis`,`gru`],wide:[`stycznia`,`lutego`,`marca`,`kwietnia`,`maja`,`czerwca`,`lipca`,`sierpnia`,`września`,`października`,`listopada`,`grudnia`]},defaultFormattingWidth:`wide`}),day:e.r({values:{narrow:[`N`,`P`,`W`,`Ś`,`C`,`P`,`S`],short:[`nie`,`pon`,`wto`,`śro`,`czw`,`pią`,`sob`],abbreviated:[`niedz.`,`pon.`,`wt.`,`śr.`,`czw.`,`pt.`,`sob.`],wide:[`niedziela`,`poniedziałek`,`wtorek`,`środa`,`czwartek`,`piątek`,`sobota`]},defaultWidth:`wide`,formattingValues:{narrow:[`n`,`p`,`w`,`ś`,`c`,`p`,`s`],short:[`nie`,`pon`,`wto`,`śro`,`czw`,`pią`,`sob`],abbreviated:[`niedz.`,`pon.`,`wt.`,`śr.`,`czw.`,`pt.`,`sob.`],wide:[`niedziela`,`poniedziałek`,`wtorek`,`środa`,`czwartek`,`piątek`,`sobota`]},defaultFormattingWidth:`wide`}),dayPeriod:e.r({values:{narrow:{am:`a`,pm:`p`,midnight:`półn.`,noon:`poł`,morning:`rano`,afternoon:`popoł.`,evening:`wiecz.`,night:`noc`},abbreviated:{am:`AM`,pm:`PM`,midnight:`północ`,noon:`południe`,morning:`rano`,afternoon:`popołudnie`,evening:`wieczór`,night:`noc`},wide:{am:`AM`,pm:`PM`,midnight:`północ`,noon:`południe`,morning:`rano`,afternoon:`popołudnie`,evening:`wieczór`,night:`noc`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`o półn.`,noon:`w poł.`,morning:`rano`,afternoon:`po poł.`,evening:`wiecz.`,night:`w nocy`},abbreviated:{am:`AM`,pm:`PM`,midnight:`o północy`,noon:`w południe`,morning:`rano`,afternoon:`po południu`,evening:`wieczorem`,night:`w nocy`},wide:{am:`AM`,pm:`PM`,midnight:`o północy`,noon:`w południe`,morning:`rano`,afternoon:`po południu`,evening:`wieczorem`,night:`w nocy`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:e.t({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:e.n({matchPatterns:{narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^p/i,/^n/i]},defaultParseWidth:`any`}),quarter:e.n({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:e.n({matchPatterns:{narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},defaultParseWidth:`any`}),day:e.n({matchPatterns:{narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},defaultParseWidth:`any`}),dayPeriod:e.n({matchPatterns:{narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},defaultMatchWidth:`any`,parsePatterns:{narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};exports.default=p,exports.pl=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./buildMatchPatternFn-T5KjFTBQ.cjs`),t=require(`./isSameWeek-Mctj6Tdj.cjs`);function n(e,t){return t===1&&e.one?e.one:t>=2&&t<=4&&e.twoFour?e.twoFour:e.other}function r(e,t,r){return n(e,t)[r].replace(`{{count}}`,String(t))}function i(e){return[`lessThan`,`about`,`over`,`almost`].filter(function(t){return!!e.match(RegExp(`^`+t))})[0]}function a(e){let t=``;return e===`almost`&&(t=`takmer`),e===`about`&&(t=`približne`),t.length>0?t+` `:``}function o(e){let t=``;return e===`lessThan`&&(t=`menej než`),e===`over`&&(t=`viac než`),t.length>0?t+` `:``}function s(e){return e.charAt(0).toLowerCase()+e.slice(1)}var c={xSeconds:{one:{present:`sekunda`,past:`sekundou`,future:`sekundu`},twoFour:{present:`{{count}} sekundy`,past:`{{count}} sekundami`,future:`{{count}} sekundy`},other:{present:`{{count}} sekúnd`,past:`{{count}} sekundami`,future:`{{count}} sekúnd`}},halfAMinute:{other:{present:`pol minúty`,past:`pol minútou`,future:`pol minúty`}},xMinutes:{one:{present:`minúta`,past:`minútou`,future:`minútu`},twoFour:{present:`{{count}} minúty`,past:`{{count}} minútami`,future:`{{count}} minúty`},other:{present:`{{count}} minút`,past:`{{count}} minútami`,future:`{{count}} minút`}},xHours:{one:{present:`hodina`,past:`hodinou`,future:`hodinu`},twoFour:{present:`{{count}} hodiny`,past:`{{count}} hodinami`,future:`{{count}} hodiny`},other:{present:`{{count}} hodín`,past:`{{count}} hodinami`,future:`{{count}} hodín`}},xDays:{one:{present:`deň`,past:`dňom`,future:`deň`},twoFour:{present:`{{count}} dni`,past:`{{count}} dňami`,future:`{{count}} dni`},other:{present:`{{count}} dní`,past:`{{count}} dňami`,future:`{{count}} dní`}},xWeeks:{one:{present:`týždeň`,past:`týždňom`,future:`týždeň`},twoFour:{present:`{{count}} týždne`,past:`{{count}} týždňami`,future:`{{count}} týždne`},other:{present:`{{count}} týždňov`,past:`{{count}} týždňami`,future:`{{count}} týždňov`}},xMonths:{one:{present:`mesiac`,past:`mesiacom`,future:`mesiac`},twoFour:{present:`{{count}} mesiace`,past:`{{count}} mesiacmi`,future:`{{count}} mesiace`},other:{present:`{{count}} mesiacov`,past:`{{count}} mesiacmi`,future:`{{count}} mesiacov`}},xYears:{one:{present:`rok`,past:`rokom`,future:`rok`},twoFour:{present:`{{count}} roky`,past:`{{count}} rokmi`,future:`{{count}} roky`},other:{present:`{{count}} rokov`,past:`{{count}} rokmi`,future:`{{count}} rokov`}}},l=(e,t,n)=>{let l=i(e)||``,u=c[s(e.substring(l.length))];return n?.addSuffix?n.comparison&&n.comparison>0?a(l)+`o `+o(l)+r(u,t,`future`):a(l)+`pred `+o(l)+r(u,t,`past`):a(l)+o(l)+r(u,t,`present`)},u={date:e.i({formats:{full:`EEEE d. MMMM y`,long:`d. MMMM y`,medium:`d. M. y`,short:`d. M. y`},defaultWidth:`full`}),time:e.i({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:e.i({formats:{full:`{{date}}, {{time}}`,long:`{{date}}, {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},d=[`nedeľu`,`pondelok`,`utorok`,`stredu`,`štvrtok`,`piatok`,`sobotu`];function f(e){let t=d[e];switch(e){case 0:case 3:case 6:return`'minulú `+t+` o' p`;default:return`'minulý' eeee 'o' p`}}function p(e){let t=d[e];return e===4?`'vo' eeee 'o' p`:`'v `+t+` o' p`}function m(e){let t=d[e];switch(e){case 0:case 4:case 6:return`'budúcu `+t+` o' p`;default:return`'budúci' eeee 'o' p`}}var h={lastWeek:(e,n,r)=>{let i=e.getDay();return t.t(e,n,r)?p(i):f(i)},yesterday:`'včera o' p`,today:`'dnes o' p`,tomorrow:`'zajtra o' p`,nextWeek:(e,n,r)=>{let i=e.getDay();return t.t(e,n,r)?p(i):m(i)},other:`P`},g={code:`sk`,formatDistance:l,formatLong:u,formatRelative:(e,t,n,r)=>{let i=h[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:(e,t)=>Number(e)+`.`,era:e.r({values:{narrow:[`pred Kr.`,`po Kr.`],abbreviated:[`pred Kr.`,`po Kr.`],wide:[`pred Kristom`,`po Kristovi`]},defaultWidth:`wide`}),quarter:e.r({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. štvrťrok`,`2. štvrťrok`,`3. štvrťrok`,`4. štvrťrok`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:e.r({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`máj`,`jún`,`júl`,`aug`,`sep`,`okt`,`nov`,`dec`],wide:[`január`,`február`,`marec`,`apríl`,`máj`,`jún`,`júl`,`august`,`september`,`október`,`november`,`december`]},defaultWidth:`wide`,formattingValues:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`máj`,`jún`,`júl`,`aug`,`sep`,`okt`,`nov`,`dec`],wide:[`januára`,`februára`,`marca`,`apríla`,`mája`,`júna`,`júla`,`augusta`,`septembra`,`októbra`,`novembra`,`decembra`]},defaultFormattingWidth:`wide`}),day:e.r({values:{narrow:[`n`,`p`,`u`,`s`,`š`,`p`,`s`],short:[`ne`,`po`,`ut`,`st`,`št`,`pi`,`so`],abbreviated:[`ne`,`po`,`ut`,`st`,`št`,`pi`,`so`],wide:[`nedeľa`,`pondelok`,`utorok`,`streda`,`štvrtok`,`piatok`,`sobota`]},defaultWidth:`wide`}),dayPeriod:e.r({values:{narrow:{am:`AM`,pm:`PM`,midnight:`poln.`,noon:`pol.`,morning:`ráno`,afternoon:`pop.`,evening:`več.`,night:`noc`},abbreviated:{am:`AM`,pm:`PM`,midnight:`poln.`,noon:`pol.`,morning:`ráno`,afternoon:`popol.`,evening:`večer`,night:`noc`},wide:{am:`AM`,pm:`PM`,midnight:`polnoc`,noon:`poludnie`,morning:`ráno`,afternoon:`popoludnie`,evening:`večer`,night:`noc`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`o poln.`,noon:`nap.`,morning:`ráno`,afternoon:`pop.`,evening:`več.`,night:`v n.`},abbreviated:{am:`AM`,pm:`PM`,midnight:`o poln.`,noon:`napol.`,morning:`ráno`,afternoon:`popol.`,evening:`večer`,night:`v noci`},wide:{am:`AM`,pm:`PM`,midnight:`o polnoci`,noon:`napoludnie`,morning:`ráno`,afternoon:`popoludní`,evening:`večer`,night:`v noci`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:e.t({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:e.n({matchPatterns:{narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^pr/i,/^(po|n)/i]},defaultParseWidth:`any`}),quarter:e.n({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:e.n({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:e.n({matchPatterns:{narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},defaultParseWidth:`any`}),dayPeriod:e.n({matchPatterns:{narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};exports.default=g,exports.sk=g;
|