bitboss-ui 2.0.42 → 2.0.43

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.
Files changed (219) hide show
  1. package/dist/components/BaseButton/BaseButton.vue.d.ts +7 -14
  2. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +6 -15
  3. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +221 -27
  4. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +2 -12
  5. package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +18 -27
  6. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +19 -161
  7. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +2 -16
  8. package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +3 -10
  9. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +2 -11
  10. package/dist/components/BaseRadio/BaseRadio.vue.d.ts +6 -13
  11. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +224 -27
  12. package/dist/components/BaseRating/BaseRating.vue.d.ts +2 -11
  13. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +6 -337
  14. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +3 -15
  15. package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +2 -11
  16. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +214 -30
  17. package/dist/components/BaseTag/BaseTag.vue.d.ts +4 -210
  18. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +3 -12
  19. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +2 -11
  20. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +20 -28
  21. package/dist/components/BbAlert/BbAlert.vue.d.ts +16 -23
  22. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +6 -15
  23. package/dist/components/BbBadge/BbBadge.vue.d.ts +7 -14
  24. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +44 -51
  25. package/dist/components/BbButton/BbButton.vue.d.ts +6 -13
  26. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +19 -26
  27. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +249 -34
  28. package/dist/components/BbChip/BbChip.vue.d.ts +6 -13
  29. package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +6 -13
  30. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +12 -19
  31. package/dist/components/BbConfirm/BbConfirm.vue.d.ts +17 -24
  32. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +22 -29
  33. package/dist/components/BbDialog/BbDialog.vue.d.ts +2 -9
  34. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +159 -169
  35. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +183 -190
  36. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +17 -26
  37. package/dist/components/BbIntersection/BbIntersection.vue.d.ts +15 -24
  38. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -98
  39. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -17
  40. package/dist/components/BbPagination/BbPagination.vue.d.ts +23 -33
  41. package/dist/components/BbPopover/BbPopover.vue.d.ts +53 -65
  42. package/dist/components/BbRadio/BbRadio.vue.d.ts +19 -26
  43. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +252 -34
  44. package/dist/components/BbRating/BbRating.vue.d.ts +12 -19
  45. package/dist/components/BbRatio/BbRatio.vue.d.ts +7 -14
  46. package/dist/components/BbSelect/BbSelect.vue.d.ts +156 -15
  47. package/dist/components/BbSlider/BbSlider.vue.d.ts +12 -19
  48. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -13
  49. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +19 -26
  50. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +249 -34
  51. package/dist/components/BbTab/BbTab.vue.d.ts +77 -88
  52. package/dist/components/BbTable/BbTable.vue.d.ts +77 -86
  53. package/dist/components/BbTag/BbTag.vue.d.ts +2 -9
  54. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +12 -19
  55. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +12 -19
  56. package/dist/components/BbToast/BbToast.vue.d.ts +1 -1
  57. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -13
  58. package/dist/components/BbTree/BbTree.vue.d.ts +2 -9
  59. package/dist/components/ChipsBox.vue.d.ts +1 -1
  60. package/dist/components/CommaBox.vue.d.ts +1 -1
  61. package/dist/components/CommonFloating.vue.d.ts +4 -14
  62. package/dist/components/CommonInputInnerContainer.vue.d.ts +7 -16
  63. package/dist/components/CommonInputOuterContainer.vue.d.ts +5 -12
  64. package/dist/components/ListBox.vue.d.ts +15 -24
  65. package/dist/components/OptionsContainer.vue.d.ts +88 -26
  66. package/dist/components/Transitions/Slide.vue.d.ts +5 -12
  67. package/dist/components/Transitions/SlideBack.vue.d.ts +5 -12
  68. package/dist/composables/useBroadcastChannelInstance.d.ts +2 -2
  69. package/dist/composables/useToast.d.ts +1 -1
  70. package/dist/composables/useWizard.d.ts +1 -1
  71. package/dist/index108.js +1 -1
  72. package/dist/index110.js +4 -4
  73. package/dist/index120.js +5 -5
  74. package/dist/index126.js +1 -1
  75. package/dist/index127.js +1 -1
  76. package/dist/index128.js +1 -1
  77. package/dist/index13.js +1 -1
  78. package/dist/index130.js +1 -1
  79. package/dist/index132.js +2 -2
  80. package/dist/index133.js +2 -2
  81. package/dist/index15.js +43 -42
  82. package/dist/index17.js +3 -3
  83. package/dist/index19.js +2 -2
  84. package/dist/index204.js +2 -116
  85. package/dist/index205.js +8 -2
  86. package/dist/index206.js +52 -157
  87. package/dist/index208.js +15 -0
  88. package/dist/index209.js +20 -3
  89. package/dist/index21.js +14 -14
  90. package/dist/index210.js +4 -8
  91. package/dist/index211.js +116 -3
  92. package/dist/index212.js +2 -41
  93. package/dist/index213.js +4 -6
  94. package/dist/index214.js +2 -7
  95. package/dist/index215.js +5 -53
  96. package/dist/index216.js +18 -0
  97. package/dist/index217.js +16 -13
  98. package/dist/index218.js +19 -2
  99. package/dist/index219.js +19 -4
  100. package/dist/index220.js +27 -2
  101. package/dist/index221.js +3 -20
  102. package/dist/index222.js +2 -4
  103. package/dist/index223.js +245 -122
  104. package/dist/index224.js +52 -5
  105. package/dist/index225.js +44 -125
  106. package/dist/index226.js +5 -19
  107. package/dist/index227.js +49 -16
  108. package/dist/index228.js +124 -14
  109. package/dist/index229.js +125 -2
  110. package/dist/index23.js +15 -15
  111. package/dist/index230.js +2 -2
  112. package/dist/index231.js +41 -5
  113. package/dist/index232.js +6 -369
  114. package/dist/index233.js +5 -19
  115. package/dist/index234.js +367 -25
  116. package/dist/index235.js +158 -3
  117. package/dist/index236.js +77 -242
  118. package/dist/index238.js +3 -44
  119. package/dist/index239.js +3 -5
  120. package/dist/index240.js +7 -49
  121. package/dist/index241.js +106 -2
  122. package/dist/index243.js +47 -53
  123. package/dist/index245.js +2 -100
  124. package/dist/index25.js +5 -5
  125. package/dist/index250.js +6 -3
  126. package/dist/index251.js +16 -12
  127. package/dist/index252.js +3 -9
  128. package/dist/index253.js +8 -8
  129. package/dist/index254.js +23 -17
  130. package/dist/index255.js +7 -222
  131. package/dist/index256.js +3 -431
  132. package/dist/index258.js +7 -3
  133. package/dist/index259.js +178 -0
  134. package/dist/index260.js +3 -6
  135. package/dist/index261.js +281 -4
  136. package/dist/index262.js +5 -175
  137. package/dist/index263.js +2 -200
  138. package/dist/index264.js +2 -6
  139. package/dist/index265.js +2 -16
  140. package/dist/index266.js +2 -3
  141. package/dist/index267.js +2 -9
  142. package/dist/index268.js +2 -23
  143. package/dist/index269.js +2 -9
  144. package/dist/index27.js +1 -1
  145. package/dist/index270.js +2 -281
  146. package/dist/index271.js +2 -6
  147. package/dist/index272.js +2 -2
  148. package/dist/index273.js +28 -2
  149. package/dist/index274.js +22 -2
  150. package/dist/index276.js +2 -2
  151. package/dist/index277.js +126 -2
  152. package/dist/index278.js +431 -2
  153. package/dist/index279.js +21 -1
  154. package/dist/index281.js +3 -2
  155. package/dist/index282.js +12 -28
  156. package/dist/index283.js +8 -21
  157. package/dist/index284.js +11 -0
  158. package/dist/index285.js +17 -2
  159. package/dist/index286.js +218 -120
  160. package/dist/index287.js +199 -21
  161. package/dist/index288.js +438 -0
  162. package/dist/index289.js +113 -422
  163. package/dist/index29.js +3 -3
  164. package/dist/index290.js +87 -125
  165. package/dist/index291.js +1 -1
  166. package/dist/index292.js +1 -1
  167. package/dist/index293.js +2 -2
  168. package/dist/index297.js +4 -5
  169. package/dist/index298.js +4 -8
  170. package/dist/index299.js +58 -10
  171. package/dist/index300.js +4 -3
  172. package/dist/index301.js +8 -4
  173. package/dist/index302.js +79 -4
  174. package/dist/index304.js +4 -79
  175. package/dist/index305.js +37 -0
  176. package/dist/index306.js +6 -34
  177. package/dist/index307.js +18 -6
  178. package/dist/index308.js +5 -17
  179. package/dist/index309.js +10 -46
  180. package/dist/index31.js +2 -2
  181. package/dist/index310.js +46 -6
  182. package/dist/index312.js +1 -1
  183. package/dist/index33.js +2 -2
  184. package/dist/index35.js +3 -3
  185. package/dist/index37.js +13 -13
  186. package/dist/index39.js +3 -3
  187. package/dist/index41.js +2 -2
  188. package/dist/index43.js +2 -2
  189. package/dist/index45.js +6 -6
  190. package/dist/index47.js +2 -2
  191. package/dist/index49.js +2 -2
  192. package/dist/index55.js +1 -1
  193. package/dist/index57.js +1 -1
  194. package/dist/index75.js +3 -3
  195. package/dist/index79.js +2 -2
  196. package/dist/index81.js +1 -1
  197. package/dist/index84.js +2 -2
  198. package/dist/index86.js +1 -1
  199. package/dist/index88.js +3 -3
  200. package/dist/index90.js +1 -1
  201. package/dist/style.css +1 -1
  202. package/dist/utilities/functions/booleanishToBoolean.d.ts +1 -1
  203. package/dist/utilities/functions/deburr.d.ts +1 -1
  204. package/dist/utilities/functions/flattenTree.d.ts +1 -1
  205. package/dist/utilities/functions/groupBy.d.ts +1 -1
  206. package/dist/utilities/functions/indexBy.d.ts +1 -1
  207. package/dist/utilities/functions/mapValues.d.ts +1 -1
  208. package/dist/utilities/functions/millisecondsTo.d.ts +1 -1
  209. package/dist/utilities/functions/replace.d.ts +1 -1
  210. package/dist/utilities/functions/retry.d.ts +1 -1
  211. package/dist/utilities/functions/throttle.d.ts +2 -2
  212. package/package.json +2 -2
  213. package/dist/index207.js +0 -86
  214. package/dist/index237.js +0 -54
  215. package/dist/index257.js +0 -91
  216. package/dist/index275.js +0 -4
  217. package/dist/index280.js +0 -4
  218. package/dist/index303.js +0 -61
  219. /package/dist/{index242.js → index246.js} +0 -0
package/dist/index207.js DELETED
@@ -1,86 +0,0 @@
1
- import { defineComponent as b, openBlock as t, createElementBlock as n, normalizeClass as r, createElementVNode as l, renderSlot as s, createTextVNode as o, toDisplayString as d, createCommentVNode as h, Fragment as c, renderList as m } from "vue";
2
- const p = { class: "bb-cr-container__container" }, u = {
3
- key: 0,
4
- class: "bb-cr-container__loading-container"
5
- }, g = {
6
- key: 1,
7
- class: "bb-cr-container__no-data-container"
8
- }, f = /* @__PURE__ */ b({
9
- __name: "OptionsContainer",
10
- props: {
11
- direction: {},
12
- hasErrors: { type: Boolean },
13
- hideLabel: { type: Boolean },
14
- loadingText: {},
15
- loading: { type: Boolean },
16
- noDataText: {},
17
- options: {}
18
- },
19
- setup(k) {
20
- return (a, y) => (t(), n("span", {
21
- ref: "container",
22
- class: r(["bb-cr-container", {
23
- "bb-cr-container--errors": a.hasErrors,
24
- "bb-cr-container--horizontal": a.direction === "horizontal",
25
- "bb-cr-container--vertical": a.direction === "vertical"
26
- }])
27
- }, [
28
- l("span", p, [
29
- s(a.$slots, "prepend"),
30
- !a.options.length && a.loading ? (t(), n("span", u, [
31
- s(a.$slots, "loading", {}, () => [
32
- o(d(a.loadingText), 1)
33
- ])
34
- ])) : a.options.length ? h("", !0) : (t(), n("span", g, [
35
- s(a.$slots, "no-data", {}, () => [
36
- o(d(a.noDataText), 1)
37
- ])
38
- ])),
39
- (t(!0), n(c, null, m(a.options, (e, i) => (t(), n(c, {
40
- key: (e == null ? void 0 : e.valueHash) || i
41
- }, [
42
- s(a.$slots, "option:prepend", {
43
- id: e.valueHash,
44
- checked: !!e.selected,
45
- disabled: !!e.disabled,
46
- item: e.item,
47
- text: e.text
48
- }),
49
- l("label", {
50
- class: r(["bb-cr-container-option", { "bb-base-radio-selected": e.selected }])
51
- }, [
52
- s(a.$slots, "input", {
53
- index: i,
54
- option: e
55
- }),
56
- l("span", {
57
- class: r({
58
- "bb-cr-container-option__text": !0,
59
- "sr-only": a.hideLabel
60
- })
61
- }, [
62
- s(a.$slots, "label", {
63
- checked: !!e.selected,
64
- item: e.item,
65
- text: e.text
66
- }, () => [
67
- o(d(e.text), 1)
68
- ])
69
- ], 2)
70
- ], 2),
71
- s(a.$slots, "option:append", {
72
- id: e.valueHash,
73
- checked: !!e.selected,
74
- disabled: !!e.disabled,
75
- item: e.item,
76
- text: e.text
77
- })
78
- ], 64))), 128)),
79
- s(a.$slots, "append")
80
- ])
81
- ], 2));
82
- }
83
- });
84
- export {
85
- f as default
86
- };
package/dist/index237.js DELETED
@@ -1,54 +0,0 @@
1
- import { defineComponent as p, ref as b, watch as _, computed as m, openBlock as d, createElementBlock as c, normalizeClass as u, createElementVNode as t, createVNode as h, withCtx as f, toDisplayString as o } from "vue";
2
- import k from "./index239.js";
3
- const y = { class: "bb-base-date-picker__year-container" }, v = {
4
- "aria-live": "polite",
5
- class: "bb-base-date-picker__selected-day-label"
6
- }, B = { class: "bb-base-date-picker__weekday" }, D = { class: "bb-base-date-picker__monthday" }, M = { class: "bb-base-date-picker__month-button" }, C = /* @__PURE__ */ p({
7
- __name: "BaseDatePickerHeader",
8
- props: {
9
- cursor: {},
10
- disabled: { type: Boolean },
11
- hidden: { type: Boolean }
12
- },
13
- emits: ["mode:year", "mode:month"],
14
- setup(n) {
15
- const s = n, r = b("top"), l = (e, a) => {
16
- e && a && (r.value = e.isBefore(a) ? "top" : "bottom");
17
- };
18
- _(
19
- () => s.cursor,
20
- (e, a) => {
21
- l(e, a);
22
- }
23
- );
24
- const i = m(() => s.cursor.format("YYYY"));
25
- return (e, a) => (d(), c("div", {
26
- class: u(["bb-base-date-picker__header", { "bb-base-date-picker__header--hidden": e.hidden }])
27
- }, [
28
- t("div", y, [
29
- h(k, {
30
- direction: r.value,
31
- duration: 500,
32
- gap: 30
33
- }, {
34
- default: f(() => [
35
- (d(), c("span", {
36
- key: i.value,
37
- "aria-live": "polite",
38
- class: "bb-base-date-picker__year-button"
39
- }, o(i.value), 1))
40
- ]),
41
- _: 1
42
- }, 8, ["direction"])
43
- ]),
44
- t("div", v, [
45
- t("span", B, o(e.cursor.format("ddd")) + ", ", 1),
46
- t("span", D, o(e.cursor.format("DD")), 1),
47
- t("span", M, o(e.cursor.format("MMMM")), 1)
48
- ])
49
- ], 2));
50
- }
51
- });
52
- export {
53
- C as default
54
- };
package/dist/index257.js DELETED
@@ -1,91 +0,0 @@
1
- import { getDefaultExportFromCjs as M, commonjsGlobal as b } from "./index271.js";
2
- var k = "Expected a function", E = NaN, N = "[object Symbol]", $ = /^\s+|\s+$/g, A = /^[-+]0x[0-9a-f]+$/i, B = /^0b[01]+$/i, R = /^0o[0-7]+$/i, _ = parseInt, D = typeof b == "object" && b && b.Object === Object && b, G = typeof self == "object" && self && self.Object === Object && self, P = D || G || Function("return this")(), H = Object.prototype, U = H.toString, X = Math.max, q = Math.min, v = function() {
3
- return P.Date.now();
4
- };
5
- function z(e, n, r) {
6
- var f, a, m, u, i, c, s = 0, x = !1, l = !1, j = !0;
7
- if (typeof e != "function")
8
- throw new TypeError(k);
9
- n = S(n) || 0, y(r) && (x = !!r.leading, l = "maxWait" in r, m = l ? X(S(r.maxWait) || 0, n) : m, j = "trailing" in r ? !!r.trailing : j);
10
- function p(t) {
11
- var o = f, d = a;
12
- return f = a = void 0, s = t, u = e.apply(d, o), u;
13
- }
14
- function C(t) {
15
- return s = t, i = setTimeout(g, n), x ? p(t) : u;
16
- }
17
- function L(t) {
18
- var o = t - c, d = t - s, O = n - o;
19
- return l ? q(O, m - d) : O;
20
- }
21
- function h(t) {
22
- var o = t - c, d = t - s;
23
- return c === void 0 || o >= n || o < 0 || l && d >= m;
24
- }
25
- function g() {
26
- var t = v();
27
- if (h(t))
28
- return I(t);
29
- i = setTimeout(g, L(t));
30
- }
31
- function I(t) {
32
- return i = void 0, j && f ? p(t) : (f = a = void 0, u);
33
- }
34
- function W() {
35
- i !== void 0 && clearTimeout(i), s = 0, f = c = a = i = void 0;
36
- }
37
- function F() {
38
- return i === void 0 ? u : I(v());
39
- }
40
- function T() {
41
- var t = v(), o = h(t);
42
- if (f = arguments, a = this, c = t, o) {
43
- if (i === void 0)
44
- return C(c);
45
- if (l)
46
- return i = setTimeout(g, n), p(c);
47
- }
48
- return i === void 0 && (i = setTimeout(g, n)), u;
49
- }
50
- return T.cancel = W, T.flush = F, T;
51
- }
52
- function J(e, n, r) {
53
- var f = !0, a = !0;
54
- if (typeof e != "function")
55
- throw new TypeError(k);
56
- return y(r) && (f = "leading" in r ? !!r.leading : f, a = "trailing" in r ? !!r.trailing : a), z(e, n, {
57
- leading: f,
58
- maxWait: n,
59
- trailing: a
60
- });
61
- }
62
- function y(e) {
63
- var n = typeof e;
64
- return !!e && (n == "object" || n == "function");
65
- }
66
- function K(e) {
67
- return !!e && typeof e == "object";
68
- }
69
- function Q(e) {
70
- return typeof e == "symbol" || K(e) && U.call(e) == N;
71
- }
72
- function S(e) {
73
- if (typeof e == "number")
74
- return e;
75
- if (Q(e))
76
- return E;
77
- if (y(e)) {
78
- var n = typeof e.valueOf == "function" ? e.valueOf() : e;
79
- e = y(n) ? n + "" : n;
80
- }
81
- if (typeof e != "string")
82
- return e === 0 ? e : +e;
83
- e = e.replace($, "");
84
- var r = B.test(e);
85
- return r || R.test(e) ? _(e.slice(2), r ? 2 : 8) : A.test(e) ? E : +e;
86
- }
87
- var V = J;
88
- const Z = /* @__PURE__ */ M(V);
89
- export {
90
- Z as default
91
- };
package/dist/index275.js DELETED
@@ -1,4 +0,0 @@
1
- var e = { exports: {} };
2
- export {
3
- e as __module
4
- };
package/dist/index280.js DELETED
@@ -1,4 +0,0 @@
1
- import f from "./index238.js";
2
- export {
3
- f as default
4
- };
package/dist/index303.js DELETED
@@ -1,61 +0,0 @@
1
- var o = function(a, e, s, t) {
2
- if (s === "a" && !t) throw new TypeError("Private accessor was defined without a getter");
3
- if (typeof e == "function" ? a !== e || !t : !e.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
- return s === "m" ? t : s === "a" ? t.call(a) : t ? t.value : e.get(a);
5
- }, r, l, i;
6
- class d {
7
- constructor(...e) {
8
- r.set(this, /* @__PURE__ */ new Map()), l.set(this, /* @__PURE__ */ new Map()), i.set(this, /* @__PURE__ */ new Map());
9
- for (const s of e)
10
- this.define(s);
11
- }
12
- define(e, s = !1) {
13
- for (let [t, f] of Object.entries(e)) {
14
- t = t.toLowerCase(), f = f.map((n) => n.toLowerCase()), o(this, i, "f").has(t) || o(this, i, "f").set(t, /* @__PURE__ */ new Set());
15
- const h = o(this, i, "f").get(t);
16
- let u = !0;
17
- for (let n of f) {
18
- const w = n.startsWith("*");
19
- if (n = w ? n.slice(1) : n, h == null || h.add(n), u && o(this, l, "f").set(t, n), u = !1, w)
20
- continue;
21
- const c = o(this, r, "f").get(n);
22
- if (c && c != t && !s)
23
- throw new Error(`"${t} -> ${n}" conflicts with "${c} -> ${n}". Pass \`force=true\` to override this definition.`);
24
- o(this, r, "f").set(n, t);
25
- }
26
- }
27
- return this;
28
- }
29
- getType(e) {
30
- if (typeof e != "string")
31
- return null;
32
- const s = e.replace(/^.*[/\\]/, "").toLowerCase(), t = s.replace(/^.*\./, "").toLowerCase(), f = s.length < e.length;
33
- return !(t.length < s.length - 1) && f ? null : o(this, r, "f").get(t) ?? null;
34
- }
35
- getExtension(e) {
36
- var s;
37
- return typeof e != "string" ? null : (e = (s = e == null ? void 0 : e.split) == null ? void 0 : s.call(e, ";")[0], (e && o(this, l, "f").get(e.trim().toLowerCase())) ?? null);
38
- }
39
- getAllExtensions(e) {
40
- return typeof e != "string" ? null : o(this, i, "f").get(e.toLowerCase()) ?? null;
41
- }
42
- _freeze() {
43
- this.define = () => {
44
- throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
45
- }, Object.freeze(this);
46
- for (const e of o(this, i, "f").values())
47
- Object.freeze(e);
48
- return this;
49
- }
50
- _getTestState() {
51
- return {
52
- types: o(this, r, "f"),
53
- extensions: o(this, l, "f")
54
- };
55
- }
56
- }
57
- r = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap();
58
- const g = d;
59
- export {
60
- g as default
61
- };
File without changes