@phillips/seldon 1.143.2 → 1.145.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/dist/_virtual/build.js +4 -0
- package/dist/_virtual/defaults.js +4 -0
- package/dist/_virtual/encode-new-lines.js +4 -0
- package/dist/_virtual/encode-param-value.js +4 -0
- package/dist/_virtual/fold-line.js +4 -0
- package/dist/_virtual/format-date.js +4 -0
- package/dist/_virtual/format-duration.js +4 -0
- package/dist/_virtual/format-text.js +4 -0
- package/dist/_virtual/format.js +4 -0
- package/dist/_virtual/index.browser.js +6 -0
- package/dist/_virtual/index.cjs.production.min.js +4 -0
- package/dist/_virtual/index.esm.js +6 -0
- package/dist/_virtual/index10.js +4 -0
- package/dist/_virtual/index11.js +4 -0
- package/dist/_virtual/index12.js +4 -0
- package/dist/_virtual/index7.js +4 -0
- package/dist/_virtual/index8.js +4 -0
- package/dist/_virtual/index9.js +4 -0
- package/dist/_virtual/set-alarm.js +4 -0
- package/dist/_virtual/set-contact.js +4 -0
- package/dist/_virtual/set-description.js +4 -0
- package/dist/_virtual/set-geolocation.js +4 -0
- package/dist/_virtual/set-location.js +4 -0
- package/dist/_virtual/set-organizer.js +4 -0
- package/dist/_virtual/set-summary.js +4 -0
- package/dist/_virtual/validate.js +4 -0
- package/dist/components/AddToCalendar/AddToCalendar.d.ts +10 -0
- package/dist/components/AddToCalendar/AddToCalendar.js +62 -0
- package/dist/components/AddToCalendar/AddToCalendar.stories.d.ts +25 -0
- package/dist/components/AddToCalendar/AddToCalendar.test.d.ts +1 -0
- package/dist/components/AddToCalendar/calendarLinks.d.ts +6 -0
- package/dist/components/AddToCalendar/calendarLinks.js +89 -0
- package/dist/components/AddToCalendar/calendarLinks.test.d.ts +1 -0
- package/dist/components/AddToCalendar/index.d.ts +1 -0
- package/dist/components/AddToCalendar/types.d.ts +8 -0
- package/dist/components/ComboBox/ComboBox.d.ts +69 -0
- package/dist/components/ComboBox/ComboBox.js +221 -0
- package/dist/components/ComboBox/ComboBox.stories.d.ts +18 -0
- package/dist/components/ComboBox/ComboBox.test.d.ts +1 -0
- package/dist/components/ComboBox/index.d.ts +1 -0
- package/dist/components/PhoneNumberPicker/PhoneNumberPicker.d.ts +38 -0
- package/dist/components/PhoneNumberPicker/PhoneNumberPicker.stories.d.ts +14 -0
- package/dist/components/PhoneNumberPicker/PhoneNumberPicker.test.d.ts +1 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.js +116 -112
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +208 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +608 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-popper/dist/index.js +218 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +18 -17
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-popper/dist/index.js +218 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.js +17 -0
- package/dist/node_modules/cmdk/dist/index.js +312 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +517 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
- package/dist/node_modules/date-fns/addHours.js +9 -0
- package/dist/node_modules/date-fns/addMilliseconds.js +9 -0
- package/dist/node_modules/date-fns/constants.js +6 -5
- package/dist/node_modules/date-fns/format.js +58 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
- package/dist/node_modules/date-fns/getISOWeek.js +12 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
- package/dist/node_modules/date-fns/getWeek.js +12 -0
- package/dist/node_modules/date-fns/getWeekYear.js +16 -0
- package/dist/node_modules/date-fns/isDate.js +7 -0
- package/dist/node_modules/date-fns/isValid.js +9 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +12 -0
- package/dist/node_modules/date-fns/startOfYear.js +9 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +7 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/newDateUTC/index.js +7 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzParseTimezone/index.js +63 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzPattern/index.js +4 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzTokenizeDate/index.js +71 -0
- package/dist/node_modules/date-fns-tz/dist/esm/toDate/index.js +180 -0
- package/dist/node_modules/date-fns-tz/dist/esm/toZonedTime/index.js +10 -0
- package/dist/node_modules/ics/dist/defaults.js +23 -0
- package/dist/node_modules/ics/dist/index.js +115 -0
- package/dist/node_modules/ics/dist/pipeline/build.js +50 -0
- package/dist/node_modules/ics/dist/pipeline/format.js +70 -0
- package/dist/node_modules/ics/dist/pipeline/index.js +53 -0
- package/dist/node_modules/ics/dist/pipeline/validate.js +17 -0
- package/dist/node_modules/ics/dist/schema/index.js +211 -0
- package/dist/node_modules/ics/dist/utils/encode-new-lines.js +9 -0
- package/dist/node_modules/ics/dist/utils/encode-param-value.js +9 -0
- package/dist/node_modules/ics/dist/utils/fold-line.js +14 -0
- package/dist/node_modules/ics/dist/utils/format-date.js +68 -0
- package/dist/node_modules/ics/dist/utils/format-duration.js +10 -0
- package/dist/node_modules/ics/dist/utils/format-text.js +9 -0
- package/dist/node_modules/ics/dist/utils/index.js +87 -0
- package/dist/node_modules/ics/dist/utils/set-alarm.js +49 -0
- package/dist/node_modules/ics/dist/utils/set-contact.js +18 -0
- package/dist/node_modules/ics/dist/utils/set-description.js +15 -0
- package/dist/node_modules/ics/dist/utils/set-geolocation.js +10 -0
- package/dist/node_modules/ics/dist/utils/set-location.js +15 -0
- package/dist/node_modules/ics/dist/utils/set-organizer.js +16 -0
- package/dist/node_modules/ics/dist/utils/set-summary.js +15 -0
- package/dist/node_modules/nanoid/index.browser.js +19 -0
- package/dist/node_modules/nanoid/url-alphabet/index.js +4 -0
- package/dist/node_modules/property-expr/index.js +77 -0
- package/dist/node_modules/runes2/dist/index.cjs.development.js +139 -0
- package/dist/node_modules/runes2/dist/index.cjs.production.min.js +86 -0
- package/dist/node_modules/runes2/dist/index.js +8 -0
- package/dist/node_modules/tiny-case/index.js +17 -0
- package/dist/node_modules/toposort/index.js +65 -0
- package/dist/node_modules/yup/index.esm.js +1899 -0
- package/dist/scss/_vars.scss +3 -0
- package/dist/scss/_vars.scss.js +3 -0
- package/dist/scss/componentStyles.scss +2 -0
- package/dist/scss/components/AddToCalendar/_addToCalendar.scss +64 -0
- package/dist/scss/components/ComboBox/_combobox.scss +149 -0
- package/package.json +8 -2
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { __exports as l } from "../../../_virtual/index7.js";
|
|
2
|
+
import "./pipeline/index.js";
|
|
3
|
+
import { __exports as _ } from "../../../_virtual/index8.js";
|
|
4
|
+
Object.defineProperty(l, "__esModule", {
|
|
5
|
+
value: !0
|
|
6
|
+
});
|
|
7
|
+
l.convertTimestampToArray = H;
|
|
8
|
+
var A = l.createEvent = D;
|
|
9
|
+
l.createEvents = h;
|
|
10
|
+
l.isValidURL = U;
|
|
11
|
+
var o = _;
|
|
12
|
+
function a(e) {
|
|
13
|
+
"@babel/helpers - typeof";
|
|
14
|
+
return a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
15
|
+
return typeof r;
|
|
16
|
+
} : function(r) {
|
|
17
|
+
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
18
|
+
}, a(e);
|
|
19
|
+
}
|
|
20
|
+
function g(e, r) {
|
|
21
|
+
var n = Object.keys(e);
|
|
22
|
+
if (Object.getOwnPropertySymbols) {
|
|
23
|
+
var t = Object.getOwnPropertySymbols(e);
|
|
24
|
+
r && (t = t.filter(function(i) {
|
|
25
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
26
|
+
})), n.push.apply(n, t);
|
|
27
|
+
}
|
|
28
|
+
return n;
|
|
29
|
+
}
|
|
30
|
+
function c(e) {
|
|
31
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
32
|
+
var n = arguments[r] != null ? arguments[r] : {};
|
|
33
|
+
r % 2 ? g(Object(n), !0).forEach(function(t) {
|
|
34
|
+
w(e, t, n[t]);
|
|
35
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g(Object(n)).forEach(function(t) {
|
|
36
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return e;
|
|
40
|
+
}
|
|
41
|
+
function w(e, r, n) {
|
|
42
|
+
return r = S(r), r in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
|
|
43
|
+
}
|
|
44
|
+
function S(e) {
|
|
45
|
+
var r = T(e, "string");
|
|
46
|
+
return a(r) === "symbol" ? r : String(r);
|
|
47
|
+
}
|
|
48
|
+
function T(e, r) {
|
|
49
|
+
if (a(e) !== "object" || e === null) return e;
|
|
50
|
+
var n = e[Symbol.toPrimitive];
|
|
51
|
+
if (n !== void 0) {
|
|
52
|
+
var t = n.call(e, r || "default");
|
|
53
|
+
if (a(t) !== "object") return t;
|
|
54
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
55
|
+
}
|
|
56
|
+
return (r === "string" ? String : Number)(e);
|
|
57
|
+
}
|
|
58
|
+
function j(e) {
|
|
59
|
+
return (0, o.validateHeader)((0, o.buildHeader)(e));
|
|
60
|
+
}
|
|
61
|
+
function b(e) {
|
|
62
|
+
return (0, o.validateHeaderAndEvent)(c(c({}, (0, o.buildHeader)(e)), (0, o.buildEvent)(e)));
|
|
63
|
+
}
|
|
64
|
+
function H(e) {
|
|
65
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "local", n = [], t = new Date(e);
|
|
66
|
+
return n.push(r === "local" ? t.getFullYear() : t.getUTCFullYear()), n.push((r === "local" ? t.getMonth() : t.getUTCMonth()) + 1), n.push(r === "local" ? t.getDate() : t.getUTCDate()), n.push(r === "local" ? t.getHours() : t.getUTCHours()), n.push(r === "local" ? t.getMinutes() : t.getUTCMinutes()), n;
|
|
67
|
+
}
|
|
68
|
+
function D(e, r) {
|
|
69
|
+
return h([e], r);
|
|
70
|
+
}
|
|
71
|
+
function h(e, r, n) {
|
|
72
|
+
var t = a(r) === "object" ? r : {}, i = arguments.length === 3 ? n : typeof r == "function" ? r : null, O = function() {
|
|
73
|
+
if (!e)
|
|
74
|
+
return {
|
|
75
|
+
error: new Error("one argument is required"),
|
|
76
|
+
value: null
|
|
77
|
+
};
|
|
78
|
+
var s = e.length === 0 ? j(t) : b(c(c({}, e[0]), t)), d = s.error, P = s.value;
|
|
79
|
+
if (d)
|
|
80
|
+
return {
|
|
81
|
+
error: d,
|
|
82
|
+
value: null
|
|
83
|
+
};
|
|
84
|
+
var f = "";
|
|
85
|
+
f += (0, o.formatHeader)(P);
|
|
86
|
+
for (var p = 0; p < e.length; p++) {
|
|
87
|
+
var m = b(e[p]), y = m.error, E = m.value;
|
|
88
|
+
if (y) return {
|
|
89
|
+
error: y,
|
|
90
|
+
value: null
|
|
91
|
+
};
|
|
92
|
+
f += (0, o.formatEvent)(E);
|
|
93
|
+
}
|
|
94
|
+
return f += (0, o.formatFooter)(), {
|
|
95
|
+
error: null,
|
|
96
|
+
value: f
|
|
97
|
+
};
|
|
98
|
+
}, u;
|
|
99
|
+
try {
|
|
100
|
+
u = O();
|
|
101
|
+
} catch (v) {
|
|
102
|
+
u = {
|
|
103
|
+
error: v,
|
|
104
|
+
value: null
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
return i ? i(u.error, u.value) : u;
|
|
108
|
+
}
|
|
109
|
+
function U(e) {
|
|
110
|
+
return o.urlRegex.test(e);
|
|
111
|
+
}
|
|
112
|
+
export {
|
|
113
|
+
A as createEvent,
|
|
114
|
+
l as default
|
|
115
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { __exports as u } from "../../../../_virtual/build.js";
|
|
2
|
+
import "../defaults.js";
|
|
3
|
+
import { __exports as a } from "../../../../_virtual/defaults.js";
|
|
4
|
+
Object.defineProperty(u, "__esModule", {
|
|
5
|
+
value: !0
|
|
6
|
+
});
|
|
7
|
+
u.buildEvent = b;
|
|
8
|
+
u.buildHeader = d;
|
|
9
|
+
var o = a;
|
|
10
|
+
function n(t) {
|
|
11
|
+
"@babel/helpers - typeof";
|
|
12
|
+
return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
13
|
+
return typeof e;
|
|
14
|
+
} : function(e) {
|
|
15
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
16
|
+
}, n(t);
|
|
17
|
+
}
|
|
18
|
+
function l(t, e, r) {
|
|
19
|
+
return e = s(e), e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
20
|
+
}
|
|
21
|
+
function s(t) {
|
|
22
|
+
var e = m(t, "string");
|
|
23
|
+
return n(e) === "symbol" ? e : String(e);
|
|
24
|
+
}
|
|
25
|
+
function m(t, e) {
|
|
26
|
+
if (n(t) !== "object" || t === null) return t;
|
|
27
|
+
var r = t[Symbol.toPrimitive];
|
|
28
|
+
if (r !== void 0) {
|
|
29
|
+
var i = r.call(t, e || "default");
|
|
30
|
+
if (n(i) !== "object") return i;
|
|
31
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
32
|
+
}
|
|
33
|
+
return (e === "string" ? String : Number)(t);
|
|
34
|
+
}
|
|
35
|
+
function f(t) {
|
|
36
|
+
return Object.entries(t).reduce(function(e, r) {
|
|
37
|
+
return typeof r[1] < "u" ? Object.assign(e, l({}, r[0], r[1])) : e;
|
|
38
|
+
}, {});
|
|
39
|
+
}
|
|
40
|
+
function d() {
|
|
41
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = Object.assign({}, (0, o.headerDefaults)(), t);
|
|
42
|
+
return f(e);
|
|
43
|
+
}
|
|
44
|
+
function b() {
|
|
45
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = Object.assign({}, (0, o.eventDefaults)(), t);
|
|
46
|
+
return f(e);
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
u as default
|
|
50
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { __exports as d } from "../../../../_virtual/format.js";
|
|
2
|
+
import "../utils/index.js";
|
|
3
|
+
import "../utils/encode-new-lines.js";
|
|
4
|
+
import { __exports as x } from "../../../../_virtual/index9.js";
|
|
5
|
+
import { __exports as F } from "../../../../_virtual/encode-new-lines.js";
|
|
6
|
+
Object.defineProperty(d, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
});
|
|
9
|
+
d.formatEvent = q;
|
|
10
|
+
d.formatFooter = B;
|
|
11
|
+
d.formatHeader = X;
|
|
12
|
+
var e = x, a = H(F);
|
|
13
|
+
function H(t) {
|
|
14
|
+
return t && t.__esModule ? t : { default: t };
|
|
15
|
+
}
|
|
16
|
+
function X() {
|
|
17
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = t.productId, l = t.method, u = t.calName, r = "";
|
|
18
|
+
return r += `BEGIN:VCALENDAR\r
|
|
19
|
+
`, r += `VERSION:2.0\r
|
|
20
|
+
`, r += `CALSCALE:GREGORIAN\r
|
|
21
|
+
`, r += (0, e.foldLine)("PRODID:".concat((0, a.default)(f))) + `\r
|
|
22
|
+
`, r += (0, e.foldLine)("METHOD:".concat((0, a.default)(l))) + `\r
|
|
23
|
+
`, r += u ? (0, e.foldLine)("X-WR-CALNAME:".concat((0, a.default)(u))) + `\r
|
|
24
|
+
` : "", r += `X-PUBLISHED-TTL:PT1H\r
|
|
25
|
+
`, r;
|
|
26
|
+
}
|
|
27
|
+
function B() {
|
|
28
|
+
return `END:VCALENDAR\r
|
|
29
|
+
`;
|
|
30
|
+
}
|
|
31
|
+
function q() {
|
|
32
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = t.title, l = t.uid, u = t.sequence, r = t.timestamp, i = t.start, s = t.startType, m = t.startInputType, E = t.startOutputType, T = t.duration, o = t.end, V = t.endInputType, G = t.endOutputType, L = t.description, p = t.url, D = t.geo, A = t.location, N = t.status, R = t.categories, S = t.organizer, I = t.attendees, O = t.alarms, g = t.recurrenceRule, C = t.exclusionDates, y = t.busyStatus, h = t.transp, _ = t.classification, M = t.created, U = t.lastModified, v = t.htmlContent, n = "";
|
|
33
|
+
return n += `BEGIN:VEVENT\r
|
|
34
|
+
`, n += (0, e.foldLine)("UID:".concat((0, a.default)(l))) + `\r
|
|
35
|
+
`, n += f ? (0, e.foldLine)("SUMMARY:".concat((0, a.default)((0, e.setSummary)(f)))) + `\r
|
|
36
|
+
` : "", n += (0, e.foldLine)("DTSTAMP:".concat((0, a.default)((0, e.formatDate)(r)))) + `\r
|
|
37
|
+
`, n += (0, e.foldLine)("DTSTART".concat(i && i.length == 3 ? ";VALUE=DATE" : "", ":").concat((0, a.default)((0, e.formatDate)(i, E || s, m)))) + `\r
|
|
38
|
+
`, (!o || o.length !== 3 || i.length !== o.length || i.some(function(c, P) {
|
|
39
|
+
return c !== o[P];
|
|
40
|
+
})) && o && (n += (0, e.foldLine)("DTEND".concat(o.length === 3 ? ";VALUE=DATE" : "", ":").concat((0, a.default)((0, e.formatDate)(o, G || E || s, V || m)))) + `\r
|
|
41
|
+
`), n += typeof u < "u" ? "SEQUENCE:".concat(u, `\r
|
|
42
|
+
`) : "", n += L ? (0, e.foldLine)("DESCRIPTION:".concat((0, a.default)((0, e.setDescription)(L)))) + `\r
|
|
43
|
+
` : "", n += p ? (0, e.foldLine)("URL:".concat((0, a.default)(p))) + `\r
|
|
44
|
+
` : "", n += D ? (0, e.foldLine)("GEO:".concat((0, e.setGeolocation)(D))) + `\r
|
|
45
|
+
` : "", n += A ? (0, e.foldLine)("LOCATION:".concat((0, a.default)((0, e.setLocation)(A)))) + `\r
|
|
46
|
+
` : "", n += N ? (0, e.foldLine)("STATUS:".concat((0, a.default)(N))) + `\r
|
|
47
|
+
` : "", n += R ? (0, e.foldLine)("CATEGORIES:".concat((0, a.default)(R.join(",")))) + `\r
|
|
48
|
+
` : "", n += S ? (0, e.foldLine)("ORGANIZER;".concat((0, e.setOrganizer)(S))) + `\r
|
|
49
|
+
` : "", n += y ? (0, e.foldLine)("X-MICROSOFT-CDO-BUSYSTATUS:".concat((0, a.default)(y))) + `\r
|
|
50
|
+
` : "", n += h ? (0, e.foldLine)("TRANSP:".concat((0, a.default)(h))) + `\r
|
|
51
|
+
` : "", n += _ ? (0, e.foldLine)("CLASS:".concat((0, a.default)(_))) + `\r
|
|
52
|
+
` : "", n += M ? "CREATED:" + (0, a.default)((0, e.formatDate)(M)) + `\r
|
|
53
|
+
` : "", n += U ? "LAST-MODIFIED:" + (0, a.default)((0, e.formatDate)(U)) + `\r
|
|
54
|
+
` : "", n += v ? (0, e.foldLine)("X-ALT-DESC;FMTTYPE=text/html:".concat((0, a.default)(v))) + `\r
|
|
55
|
+
` : "", I && I.forEach(function(c) {
|
|
56
|
+
n += (0, e.foldLine)("ATTENDEE;".concat((0, a.default)((0, e.setContact)(c)))) + `\r
|
|
57
|
+
`;
|
|
58
|
+
}), n += g ? (0, e.foldLine)("RRULE:".concat((0, a.default)(g))) + `\r
|
|
59
|
+
` : "", n += C ? (0, e.foldLine)("EXDATE:".concat((0, a.default)(C.map(function(c) {
|
|
60
|
+
return (0, e.formatDate)(c);
|
|
61
|
+
}).join(",")))) + `\r
|
|
62
|
+
` : "", n += T ? (0, e.foldLine)("DURATION:".concat((0, e.formatDuration)(T))) + `\r
|
|
63
|
+
` : "", O && O.forEach(function(c) {
|
|
64
|
+
n += (0, e.setAlarm)(c);
|
|
65
|
+
}), n += `END:VEVENT\r
|
|
66
|
+
`, n;
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
d as default
|
|
70
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { __exports as u } from "../../../../_virtual/index8.js";
|
|
2
|
+
import "./build.js";
|
|
3
|
+
import "./format.js";
|
|
4
|
+
import "./validate.js";
|
|
5
|
+
import { __exports as i } from "../../../../_virtual/build.js";
|
|
6
|
+
import { __exports as o } from "../../../../_virtual/format.js";
|
|
7
|
+
import { __exports as d } from "../../../../_virtual/validate.js";
|
|
8
|
+
(function(e) {
|
|
9
|
+
Object.defineProperty(e, "__esModule", {
|
|
10
|
+
value: !0
|
|
11
|
+
}), Object.defineProperty(e, "buildEvent", {
|
|
12
|
+
enumerable: !0,
|
|
13
|
+
get: function() {
|
|
14
|
+
return a.buildEvent;
|
|
15
|
+
}
|
|
16
|
+
}), Object.defineProperty(e, "buildHeader", {
|
|
17
|
+
enumerable: !0,
|
|
18
|
+
get: function() {
|
|
19
|
+
return a.buildHeader;
|
|
20
|
+
}
|
|
21
|
+
}), Object.defineProperty(e, "formatEvent", {
|
|
22
|
+
enumerable: !0,
|
|
23
|
+
get: function() {
|
|
24
|
+
return r.formatEvent;
|
|
25
|
+
}
|
|
26
|
+
}), Object.defineProperty(e, "formatFooter", {
|
|
27
|
+
enumerable: !0,
|
|
28
|
+
get: function() {
|
|
29
|
+
return r.formatFooter;
|
|
30
|
+
}
|
|
31
|
+
}), Object.defineProperty(e, "formatHeader", {
|
|
32
|
+
enumerable: !0,
|
|
33
|
+
get: function() {
|
|
34
|
+
return r.formatHeader;
|
|
35
|
+
}
|
|
36
|
+
}), Object.defineProperty(e, "urlRegex", {
|
|
37
|
+
enumerable: !0,
|
|
38
|
+
get: function() {
|
|
39
|
+
return n.urlRegex;
|
|
40
|
+
}
|
|
41
|
+
}), Object.defineProperty(e, "validateHeader", {
|
|
42
|
+
enumerable: !0,
|
|
43
|
+
get: function() {
|
|
44
|
+
return n.validateHeader;
|
|
45
|
+
}
|
|
46
|
+
}), Object.defineProperty(e, "validateHeaderAndEvent", {
|
|
47
|
+
enumerable: !0,
|
|
48
|
+
get: function() {
|
|
49
|
+
return n.validateHeaderAndEvent;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
var a = i, r = o, n = d;
|
|
53
|
+
})(u);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __exports as n } from "../../../../_virtual/validate.js";
|
|
2
|
+
import "../schema/index.js";
|
|
3
|
+
import { __exports as u } from "../../../../_virtual/index10.js";
|
|
4
|
+
(function(r) {
|
|
5
|
+
Object.defineProperty(r, "__esModule", {
|
|
6
|
+
value: !0
|
|
7
|
+
});
|
|
8
|
+
var t = u;
|
|
9
|
+
Object.keys(t).forEach(function(e) {
|
|
10
|
+
e === "default" || e === "__esModule" || e in r && r[e] === t[e] || Object.defineProperty(r, e, {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: function() {
|
|
13
|
+
return t[e];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
})(n);
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { __exports as f } from "../../../../_virtual/index10.js";
|
|
2
|
+
import b from "../../../../_virtual/index.esm.js";
|
|
3
|
+
Object.defineProperty(f, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
});
|
|
6
|
+
f.urlRegex = void 0;
|
|
7
|
+
f.validateHeader = _;
|
|
8
|
+
f.validateHeaderAndEvent = $;
|
|
9
|
+
var e = v(b);
|
|
10
|
+
function m(r) {
|
|
11
|
+
if (typeof WeakMap != "function") return null;
|
|
12
|
+
var t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
13
|
+
return (m = function(u) {
|
|
14
|
+
return u ? n : t;
|
|
15
|
+
})(r);
|
|
16
|
+
}
|
|
17
|
+
function v(r, t) {
|
|
18
|
+
if (r && r.__esModule)
|
|
19
|
+
return r;
|
|
20
|
+
if (r === null || c(r) !== "object" && typeof r != "function")
|
|
21
|
+
return { default: r };
|
|
22
|
+
var n = m(t);
|
|
23
|
+
if (n && n.has(r))
|
|
24
|
+
return n.get(r);
|
|
25
|
+
var a = {}, u = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
26
|
+
for (var i in r)
|
|
27
|
+
if (i !== "default" && Object.prototype.hasOwnProperty.call(r, i)) {
|
|
28
|
+
var o = u ? Object.getOwnPropertyDescriptor(r, i) : null;
|
|
29
|
+
o && (o.get || o.set) ? Object.defineProperty(a, i, o) : a[i] = r[i];
|
|
30
|
+
}
|
|
31
|
+
return a.default = r, n && n.set(r, a), a;
|
|
32
|
+
}
|
|
33
|
+
function c(r) {
|
|
34
|
+
"@babel/helpers - typeof";
|
|
35
|
+
return c = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
36
|
+
return typeof t;
|
|
37
|
+
} : function(t) {
|
|
38
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
39
|
+
}, c(r);
|
|
40
|
+
}
|
|
41
|
+
function d(r, t) {
|
|
42
|
+
var n = Object.keys(r);
|
|
43
|
+
if (Object.getOwnPropertySymbols) {
|
|
44
|
+
var a = Object.getOwnPropertySymbols(r);
|
|
45
|
+
t && (a = a.filter(function(u) {
|
|
46
|
+
return Object.getOwnPropertyDescriptor(r, u).enumerable;
|
|
47
|
+
})), n.push.apply(n, a);
|
|
48
|
+
}
|
|
49
|
+
return n;
|
|
50
|
+
}
|
|
51
|
+
function l(r) {
|
|
52
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
53
|
+
var n = arguments[t] != null ? arguments[t] : {};
|
|
54
|
+
t % 2 ? d(Object(n), !0).forEach(function(a) {
|
|
55
|
+
O(r, a, n[a]);
|
|
56
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : d(Object(n)).forEach(function(a) {
|
|
57
|
+
Object.defineProperty(r, a, Object.getOwnPropertyDescriptor(n, a));
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
return r;
|
|
61
|
+
}
|
|
62
|
+
function O(r, t, n) {
|
|
63
|
+
return t = S(t), t in r ? Object.defineProperty(r, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = n, r;
|
|
64
|
+
}
|
|
65
|
+
function S(r) {
|
|
66
|
+
var t = w(r, "string");
|
|
67
|
+
return c(t) === "symbol" ? t : String(t);
|
|
68
|
+
}
|
|
69
|
+
function w(r, t) {
|
|
70
|
+
if (c(r) !== "object" || r === null) return r;
|
|
71
|
+
var n = r[Symbol.toPrimitive];
|
|
72
|
+
if (n !== void 0) {
|
|
73
|
+
var a = n.call(r, t || "default");
|
|
74
|
+
if (c(a) !== "object") return a;
|
|
75
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
76
|
+
}
|
|
77
|
+
return (t === "string" ? String : Number)(r);
|
|
78
|
+
}
|
|
79
|
+
var p = f.urlRegex = /^(?:([a-z0-9+.-]+):\/\/)(?:\S+(?::\S*)?@)?(?:(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*\.?)(?::\d{2,5})?(?:[/?#]\S*)?$/, s = function(t) {
|
|
80
|
+
var n = t.required;
|
|
81
|
+
return e.lazy(function(a) {
|
|
82
|
+
return typeof a == "number" ? e.number().integer().min(0) : typeof a == "string" ? e.string().required() : !n && typeof a > "u" ? e.mixed().oneOf([void 0]) : e.array().required().min(3).max(7).of(e.lazy(function(u, i) {
|
|
83
|
+
var o = i.parent.indexOf(i.value);
|
|
84
|
+
return [e.number().integer(), e.number().integer().min(1).max(12), e.number().integer().min(1).max(31), e.number().integer().min(0).max(23), e.number().integer().min(0).max(60), e.number().integer().min(0).max(60)][o];
|
|
85
|
+
}));
|
|
86
|
+
});
|
|
87
|
+
}, g = e.object().shape({
|
|
88
|
+
before: e.boolean(),
|
|
89
|
+
//option to set before alaram
|
|
90
|
+
weeks: e.number(),
|
|
91
|
+
days: e.number(),
|
|
92
|
+
hours: e.number(),
|
|
93
|
+
minutes: e.number(),
|
|
94
|
+
seconds: e.number()
|
|
95
|
+
}).noUnknown(), y = e.object().shape({
|
|
96
|
+
name: e.string(),
|
|
97
|
+
email: e.string().email(),
|
|
98
|
+
rsvp: e.boolean(),
|
|
99
|
+
dir: e.string().matches(p),
|
|
100
|
+
partstat: e.string(),
|
|
101
|
+
role: e.string(),
|
|
102
|
+
cutype: e.string(),
|
|
103
|
+
xNumGuests: e.number()
|
|
104
|
+
}).noUnknown(), P = e.object().shape({
|
|
105
|
+
name: e.string(),
|
|
106
|
+
email: e.string().email(),
|
|
107
|
+
dir: e.string(),
|
|
108
|
+
sentBy: e.string()
|
|
109
|
+
}).noUnknown(), x = e.object().shape({
|
|
110
|
+
action: e.string().matches(/^(audio|display|email)$/).required(),
|
|
111
|
+
trigger: e.mixed().required(),
|
|
112
|
+
description: e.string(),
|
|
113
|
+
duration: g,
|
|
114
|
+
repeat: e.number(),
|
|
115
|
+
attach: e.string(),
|
|
116
|
+
attachType: e.string(),
|
|
117
|
+
summary: e.string(),
|
|
118
|
+
attendee: y,
|
|
119
|
+
"x-prop": e.mixed(),
|
|
120
|
+
"iana-prop": e.mixed()
|
|
121
|
+
}).noUnknown(), h = {
|
|
122
|
+
productId: e.string(),
|
|
123
|
+
method: e.string(),
|
|
124
|
+
calName: e.string()
|
|
125
|
+
}, E = e.object().shape(h).noUnknown(), q = {
|
|
126
|
+
summary: e.string(),
|
|
127
|
+
timestamp: s({
|
|
128
|
+
required: !1
|
|
129
|
+
}),
|
|
130
|
+
title: e.string(),
|
|
131
|
+
uid: e.string(),
|
|
132
|
+
sequence: e.number().integer().max(2147483647),
|
|
133
|
+
start: s({
|
|
134
|
+
required: !0
|
|
135
|
+
}),
|
|
136
|
+
duration: g,
|
|
137
|
+
startType: e.string().matches(/^(utc|local)$/),
|
|
138
|
+
startInputType: e.string().matches(/^(utc|local)$/),
|
|
139
|
+
startOutputType: e.string().matches(/^(utc|local)$/),
|
|
140
|
+
end: s({
|
|
141
|
+
required: !1
|
|
142
|
+
}),
|
|
143
|
+
endInputType: e.string().matches(/^(utc|local)$/),
|
|
144
|
+
endOutputType: e.string().matches(/^(utc|local)$/),
|
|
145
|
+
description: e.string(),
|
|
146
|
+
url: e.string().matches(p),
|
|
147
|
+
geo: e.object().shape({
|
|
148
|
+
lat: e.number(),
|
|
149
|
+
lon: e.number()
|
|
150
|
+
}),
|
|
151
|
+
location: e.string(),
|
|
152
|
+
status: e.string().matches(/^(TENTATIVE|CANCELLED|CONFIRMED)$/i),
|
|
153
|
+
categories: e.array().of(e.string()),
|
|
154
|
+
organizer: P,
|
|
155
|
+
attendees: e.array().of(y),
|
|
156
|
+
alarms: e.array().of(x),
|
|
157
|
+
recurrenceRule: e.string(),
|
|
158
|
+
busyStatus: e.string().matches(/^(TENTATIVE|FREE|BUSY|OOF)$/i),
|
|
159
|
+
transp: e.string().matches(/^(TRANSPARENT|OPAQUE)$/i),
|
|
160
|
+
classification: e.string(),
|
|
161
|
+
created: s({
|
|
162
|
+
required: !1
|
|
163
|
+
}),
|
|
164
|
+
lastModified: s({
|
|
165
|
+
required: !1
|
|
166
|
+
}),
|
|
167
|
+
exclusionDates: e.array().of(s({
|
|
168
|
+
required: !0
|
|
169
|
+
})),
|
|
170
|
+
htmlContent: e.string()
|
|
171
|
+
}, T = e.object().shape(l(l({}, h), q)).test("xor", "object should have end or duration (but not both)", function(r) {
|
|
172
|
+
var t = !!r.end, n = !!r.duration;
|
|
173
|
+
return t && !n || !t && n || !t && !n;
|
|
174
|
+
}).noUnknown();
|
|
175
|
+
function _(r) {
|
|
176
|
+
try {
|
|
177
|
+
var t = E.validateSync(r, {
|
|
178
|
+
abortEarly: !1,
|
|
179
|
+
strict: !0
|
|
180
|
+
});
|
|
181
|
+
return {
|
|
182
|
+
error: null,
|
|
183
|
+
value: t
|
|
184
|
+
};
|
|
185
|
+
} catch (n) {
|
|
186
|
+
return {
|
|
187
|
+
error: Object.assign({}, n),
|
|
188
|
+
value: void 0
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
function $(r) {
|
|
193
|
+
try {
|
|
194
|
+
var t = T.validateSync(r, {
|
|
195
|
+
abortEarly: !1,
|
|
196
|
+
strict: !0
|
|
197
|
+
});
|
|
198
|
+
return {
|
|
199
|
+
error: null,
|
|
200
|
+
value: t
|
|
201
|
+
};
|
|
202
|
+
} catch (n) {
|
|
203
|
+
return {
|
|
204
|
+
error: Object.assign({}, n),
|
|
205
|
+
value: void 0
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
export {
|
|
210
|
+
f as default
|
|
211
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { __exports as o } from "../../../../_virtual/fold-line.js";
|
|
2
|
+
import { d as a } from "../../../runes2/dist/index.js";
|
|
3
|
+
(function(u) {
|
|
4
|
+
Object.defineProperty(u, "__esModule", {
|
|
5
|
+
value: !0
|
|
6
|
+
}), u.default = n;
|
|
7
|
+
var s = a;
|
|
8
|
+
function n(r) {
|
|
9
|
+
for (var e = [], t = 75; (0, s.runes)(r).length > t; )
|
|
10
|
+
e.push((0, s.substring)(r, 0, t)), r = (0, s.substring)(r, t), t = 74;
|
|
11
|
+
return e.push(r), e.join(`\r
|
|
12
|
+
`);
|
|
13
|
+
}
|
|
14
|
+
})(o);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { __exports as S } from "../../../../_virtual/format-date.js";
|
|
2
|
+
(function(s) {
|
|
3
|
+
Object.defineProperty(s, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), s.default = U;
|
|
6
|
+
function g(t, r) {
|
|
7
|
+
return C(t) || w(t, r) || j(t, r) || D();
|
|
8
|
+
}
|
|
9
|
+
function D() {
|
|
10
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
12
|
+
}
|
|
13
|
+
function j(t, r) {
|
|
14
|
+
if (t) {
|
|
15
|
+
if (typeof t == "string") return d(t, r);
|
|
16
|
+
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
17
|
+
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set") return Array.from(t);
|
|
18
|
+
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return d(t, r);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function d(t, r) {
|
|
22
|
+
(r == null || r > t.length) && (r = t.length);
|
|
23
|
+
for (var e = 0, o = new Array(r); e < r; e++) o[e] = t[e];
|
|
24
|
+
return o;
|
|
25
|
+
}
|
|
26
|
+
function w(t, r) {
|
|
27
|
+
var e = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
28
|
+
if (e != null) {
|
|
29
|
+
var o, f, c, i, n = [], u = !0, l = !1;
|
|
30
|
+
try {
|
|
31
|
+
if (c = (e = e.call(t)).next, r === 0) {
|
|
32
|
+
if (Object(e) !== e) return;
|
|
33
|
+
u = !1;
|
|
34
|
+
} else for (; !(u = (o = c.call(e)).done) && (n.push(o.value), n.length !== r); u = !0) ;
|
|
35
|
+
} catch (y) {
|
|
36
|
+
l = !0, f = y;
|
|
37
|
+
} finally {
|
|
38
|
+
try {
|
|
39
|
+
if (!u && e.return != null && (i = e.return(), Object(i) !== i)) return;
|
|
40
|
+
} finally {
|
|
41
|
+
if (l) throw f;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return n;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function C(t) {
|
|
48
|
+
if (Array.isArray(t)) return t;
|
|
49
|
+
}
|
|
50
|
+
var a = function(r) {
|
|
51
|
+
return r < 10 ? "0".concat(r) : "".concat(r);
|
|
52
|
+
};
|
|
53
|
+
function U() {
|
|
54
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "utc", e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "local";
|
|
55
|
+
if (typeof t == "string")
|
|
56
|
+
return t;
|
|
57
|
+
if (Array.isArray(t) && t.length === 3) {
|
|
58
|
+
var o = g(t, 3), f = o[0], c = o[1], i = o[2];
|
|
59
|
+
return "".concat(f).concat(a(c)).concat(a(i));
|
|
60
|
+
}
|
|
61
|
+
var n = /* @__PURE__ */ new Date();
|
|
62
|
+
if (Array.isArray(t) && t.length > 0 && t[0]) {
|
|
63
|
+
var u = g(t, 6), l = u[0], y = u[1], m = u[2], p = u[3], v = p === void 0 ? 0 : p, A = u[4], T = A === void 0 ? 0 : A, b = u[5], h = b === void 0 ? 0 : b;
|
|
64
|
+
e === "local" ? n = new Date(l, y - 1, m, v, T, h) : n = new Date(Date.UTC(l, y - 1, m, v, T, h));
|
|
65
|
+
} else Array.isArray(t) || (n = new Date(t));
|
|
66
|
+
return r === "local" ? [n.getFullYear(), a(n.getMonth() + 1), a(n.getDate()), "T", a(n.getHours()), a(n.getMinutes()), a(n.getSeconds())].join("") : [n.getUTCFullYear(), a(n.getUTCMonth() + 1), a(n.getUTCDate()), "T", a(n.getUTCHours()), a(n.getUTCMinutes()), a(n.getUTCSeconds()), "Z"].join("");
|
|
67
|
+
}
|
|
68
|
+
})(S);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { __exports as i } from "../../../../_virtual/format-duration.js";
|
|
2
|
+
(function(n) {
|
|
3
|
+
Object.defineProperty(n, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), n.default = c;
|
|
6
|
+
function c() {
|
|
7
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = e.weeks, r = e.days, o = e.hours, u = e.minutes, s = e.seconds, t = "P";
|
|
8
|
+
return t += a ? "".concat(a, "W") : "", t += r ? "".concat(r, "D") : "", t += "T", t += o ? "".concat(o, "H") : "", t += u ? "".concat(u, "M") : "", t += s ? "".concat(s, "S") : "", t;
|
|
9
|
+
}
|
|
10
|
+
})(i);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __exports as a } from "../../../../_virtual/format-text.js";
|
|
2
|
+
(function(e) {
|
|
3
|
+
Object.defineProperty(e, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), e.default = r;
|
|
6
|
+
function r(t) {
|
|
7
|
+
return t.replace(/\\/gm, "\\\\").replace(/\r?\n/gm, "\\n").replace(/;/gm, "\\;").replace(/,/gm, "\\,");
|
|
8
|
+
}
|
|
9
|
+
})(a);
|