tttb 0.1.29

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 (264) hide show
  1. package/README.md +42 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  3. package/dist/components/Button/index.js +6 -0
  4. package/dist/components/Button/index.vue.js +7 -0
  5. package/dist/components/Button/index.vue2.js +54 -0
  6. package/dist/components/Button/types.js +8 -0
  7. package/dist/components/Checkbox/index.js +6 -0
  8. package/dist/components/Checkbox/index.vue.js +7 -0
  9. package/dist/components/Checkbox/index.vue2.js +35 -0
  10. package/dist/components/Checkbox/types.js +7 -0
  11. package/dist/components/Collapse/index.js +6 -0
  12. package/dist/components/Collapse/index.vue.js +7 -0
  13. package/dist/components/Collapse/index.vue2.js +42 -0
  14. package/dist/components/Collapse/types.js +7 -0
  15. package/dist/components/CollapseItem/index.js +6 -0
  16. package/dist/components/CollapseItem/index.vue.js +7 -0
  17. package/dist/components/CollapseItem/index.vue2.js +80 -0
  18. package/dist/components/Dialog/DialogItem.vue.js +7 -0
  19. package/dist/components/Dialog/DialogItem.vue2.js +69 -0
  20. package/dist/components/Dialog/DialogPrompt.vue.js +7 -0
  21. package/dist/components/Dialog/DialogPrompt.vue2.js +63 -0
  22. package/dist/components/Dialog/index.js +6 -0
  23. package/dist/components/Dialog/index.vue.js +7 -0
  24. package/dist/components/Dialog/index.vue2.js +91 -0
  25. package/dist/components/Icon/index.js +6 -0
  26. package/dist/components/Icon/index.vue.js +45 -0
  27. package/dist/components/Icon/index.vue2.js +4 -0
  28. package/dist/components/Loading/index.js +6 -0
  29. package/dist/components/Loading/index.vue.js +7 -0
  30. package/dist/components/Loading/index.vue2.js +37 -0
  31. package/dist/components/Loading/types.js +7 -0
  32. package/dist/components/Message/index.js +6 -0
  33. package/dist/components/Message/index.vue.js +7 -0
  34. package/dist/components/Message/index.vue2.js +91 -0
  35. package/dist/components/Modal/index.js +6 -0
  36. package/dist/components/Modal/index.vue.js +7 -0
  37. package/dist/components/Modal/index.vue2.js +39 -0
  38. package/dist/components/Modal/types.js +7 -0
  39. package/dist/components/Nav/index.js +6 -0
  40. package/dist/components/Nav/index.vue.js +7 -0
  41. package/dist/components/Nav/index.vue2.js +95 -0
  42. package/dist/components/Pagination/index.js +6 -0
  43. package/dist/components/Pagination/index.vue.js +7 -0
  44. package/dist/components/Pagination/index.vue2.js +149 -0
  45. package/dist/components/Pagination/types.js +8 -0
  46. package/dist/components/Popconfirm/index.js +7 -0
  47. package/dist/components/Popconfirm/index.vue.js +92 -0
  48. package/dist/components/Popconfirm/index.vue3.js +5 -0
  49. package/dist/components/Popconfirm/types.js +14 -0
  50. package/dist/components/Popover/index.js +7 -0
  51. package/dist/components/Popover/index.vue.js +32 -0
  52. package/dist/components/Popover/index.vue3.js +5 -0
  53. package/dist/components/Progress/index.js +6 -0
  54. package/dist/components/Progress/index.vue.js +7 -0
  55. package/dist/components/Progress/index.vue2.js +38 -0
  56. package/dist/components/Progress/types.js +7 -0
  57. package/dist/components/RouterNav/index.js +6 -0
  58. package/dist/components/RouterNav/index.vue.js +33 -0
  59. package/dist/components/RouterNav/index.vue2.js +4 -0
  60. package/dist/components/Switch/index.js +6 -0
  61. package/dist/components/Switch/index.vue.js +7 -0
  62. package/dist/components/Switch/index.vue2.js +76 -0
  63. package/dist/components/Switch/types.js +6 -0
  64. package/dist/components/Table/index.js +6 -0
  65. package/dist/components/Table/index.vue.js +7 -0
  66. package/dist/components/Table/index.vue2.js +57 -0
  67. package/dist/components/Timer/index.js +6 -0
  68. package/dist/components/Timer/index.vue.js +31 -0
  69. package/dist/components/Timer/index.vue2.js +4 -0
  70. package/dist/components/Tooltip/TooltipContent.vue.js +33 -0
  71. package/dist/components/Tooltip/TooltipContent.vue2.js +4 -0
  72. package/dist/components/Tooltip/TooltipItem.vue.js +58 -0
  73. package/dist/components/Tooltip/TooltipItem.vue2.js +4 -0
  74. package/dist/components/Tooltip/TooltipLayer.vue.js +49 -0
  75. package/dist/components/Tooltip/TooltipLayer.vue2.js +4 -0
  76. package/dist/components/Tooltip/index.js +6 -0
  77. package/dist/components/Tooltip/index.vue.js +74 -0
  78. package/dist/components/Tooltip/index.vue2.js +4 -0
  79. package/dist/components/Tooltip/manager.js +105 -0
  80. package/dist/components/Tooltip/types.js +38 -0
  81. package/dist/components/Tooltip/useTooltip.js +43 -0
  82. package/dist/components/Warn/index.js +6 -0
  83. package/dist/components/Warn/index.vue.js +7 -0
  84. package/dist/components/Warn/index.vue2.js +21 -0
  85. package/dist/components/Warn/types.js +6 -0
  86. package/dist/components/Watermark/index.js +6 -0
  87. package/dist/components/Watermark/index.vue.js +7 -0
  88. package/dist/components/Watermark/index.vue2.js +54 -0
  89. package/dist/components/Watermark/types.js +10 -0
  90. package/dist/components/Watermark/useWatermarkBg.js +11 -0
  91. package/dist/components/helpers.js +25 -0
  92. package/dist/components.js +44 -0
  93. package/dist/directives/vBackTop.js +111 -0
  94. package/dist/directives/vDelayIn.js +41 -0
  95. package/dist/directives/vHoldPointer.js +112 -0
  96. package/dist/directives/vLazy.js +61 -0
  97. package/dist/directives/vLoading.js +49 -0
  98. package/dist/directives/vRipple.js +81 -0
  99. package/dist/directives/vSlideIn.js +39 -0
  100. package/dist/directives/vTextJump.js +50 -0
  101. package/dist/directives/vTooltip.js +55 -0
  102. package/dist/directives.js +20 -0
  103. package/dist/hooks/useAudio.js +112 -0
  104. package/dist/hooks/useElementScroll.js +30 -0
  105. package/dist/hooks/useGSAP.js +40 -0
  106. package/dist/hooks/useRefreshRate.js +26 -0
  107. package/dist/hooks/useWindowBackTop.js +86 -0
  108. package/dist/hooks.js +13 -0
  109. package/dist/icons/brands.js +592 -0
  110. package/dist/icons/regular.js +278 -0
  111. package/dist/icons/solid.js +2005 -0
  112. package/dist/index.js +135 -0
  113. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js +448 -0
  114. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +401 -0
  115. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  116. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
  117. package/dist/node_modules/.pnpm/@floating-ui_vue@1.1.11_vue@3.5.34_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.js +131 -0
  118. package/dist/node_modules/.pnpm/@fortawesome_fontawesome-svg-core@7.2.0/node_modules/@fortawesome/fontawesome-svg-core/index.js +3102 -0
  119. package/dist/node_modules/.pnpm/@fortawesome_free-brands-svg-icons@7.2.0/node_modules/@fortawesome/free-brands-svg-icons/index.js +3380 -0
  120. package/dist/node_modules/.pnpm/@fortawesome_free-regular-svg-icons@7.2.0/node_modules/@fortawesome/free-regular-svg-icons/index.js +1228 -0
  121. package/dist/node_modules/.pnpm/@fortawesome_free-solid-svg-icons@7.2.0/node_modules/@fortawesome/free-solid-svg-icons/index.js +9694 -0
  122. package/dist/node_modules/.pnpm/@fortawesome_vue-fontawesom_b85c0ed4b0a431cb59a463de76a3e522/node_modules/@fortawesome/vue-fontawesome/index.es.js +528 -0
  123. package/dist/node_modules/.pnpm/gsap@3.15.0/node_modules/gsap/CSSPlugin.js +424 -0
  124. package/dist/node_modules/.pnpm/gsap@3.15.0/node_modules/gsap/gsap-core.js +1652 -0
  125. package/dist/node_modules/.pnpm/gsap@3.15.0/node_modules/gsap/index.js +13 -0
  126. package/dist/tttb.css +1 -0
  127. package/dist/types/bundle.d.ts +10 -0
  128. package/dist/types/components/Button/index.d.ts +22 -0
  129. package/dist/types/components/Button/types.d.ts +12 -0
  130. package/dist/types/components/Checkbox/index.d.ts +29 -0
  131. package/dist/types/components/Checkbox/types.d.ts +8 -0
  132. package/dist/types/components/Collapse/index.d.ts +28 -0
  133. package/dist/types/components/Collapse/types.d.ts +16 -0
  134. package/dist/types/components/CollapseItem/index.d.ts +27 -0
  135. package/dist/types/components/CollapseItem/types.d.ts +6 -0
  136. package/dist/types/components/Dialog/DialogItem.d.ts +38 -0
  137. package/dist/types/components/Dialog/DialogPrompt.d.ts +16 -0
  138. package/dist/types/components/Dialog/index.d.ts +10 -0
  139. package/dist/types/components/Dialog/types.d.ts +58 -0
  140. package/dist/types/components/Icon/index.d.ts +3 -0
  141. package/dist/types/components/Icon/types.d.ts +2 -0
  142. package/dist/types/components/Loading/index.d.ts +6 -0
  143. package/dist/types/components/Loading/types.d.ts +8 -0
  144. package/dist/types/components/Message/index.d.ts +9 -0
  145. package/dist/types/components/Message/types.d.ts +13 -0
  146. package/dist/types/components/Modal/index.d.ts +21 -0
  147. package/dist/types/components/Modal/types.d.ts +11 -0
  148. package/dist/types/components/Nav/index.d.ts +7 -0
  149. package/dist/types/components/Nav/types.d.ts +15 -0
  150. package/dist/types/components/Pagination/index.d.ts +18 -0
  151. package/dist/types/components/Pagination/types.d.ts +16 -0
  152. package/dist/types/components/Popconfirm/index.d.ts +262 -0
  153. package/dist/types/components/Popconfirm/types.d.ts +27 -0
  154. package/dist/types/components/Popover/index.d.ts +150 -0
  155. package/dist/types/components/Progress/index.d.ts +21 -0
  156. package/dist/types/components/Progress/types.d.ts +9 -0
  157. package/dist/types/components/RouterNav/index.d.ts +2 -0
  158. package/dist/types/components/Switch/index.d.ts +13 -0
  159. package/dist/types/components/Switch/types.d.ts +6 -0
  160. package/dist/types/components/Table/index.d.ts +35 -0
  161. package/dist/types/components/Table/types.d.ts +4 -0
  162. package/dist/types/components/Timer/index.d.ts +6 -0
  163. package/dist/types/components/Tooltip/TooltipContent.d.ts +17 -0
  164. package/dist/types/components/Tooltip/TooltipItem.d.ts +45 -0
  165. package/dist/types/components/Tooltip/TooltipLayer.d.ts +2 -0
  166. package/dist/types/components/Tooltip/index.d.ts +42 -0
  167. package/dist/types/components/Tooltip/manager.d.ts +18 -0
  168. package/dist/types/components/Tooltip/types.d.ts +54 -0
  169. package/dist/types/components/Tooltip/useTooltip.d.ts +8 -0
  170. package/dist/types/components/Warn/index.d.ts +20 -0
  171. package/dist/types/components/Warn/types.d.ts +6 -0
  172. package/dist/types/components/Watermark/index.d.ts +28 -0
  173. package/dist/types/components/Watermark/types.d.ts +14 -0
  174. package/dist/types/components/Watermark/useWatermarkBg.d.ts +6 -0
  175. package/dist/types/components/helpers.d.ts +14 -0
  176. package/dist/types/components/index.d.ts +21 -0
  177. package/dist/types/directives/index.d.ts +9 -0
  178. package/dist/types/directives/vBackTop.d.ts +3 -0
  179. package/dist/types/directives/vDelayIn.d.ts +3 -0
  180. package/dist/types/directives/vHoldPointer.d.ts +3 -0
  181. package/dist/types/directives/vLazy.d.ts +3 -0
  182. package/dist/types/directives/vLoading.d.ts +3 -0
  183. package/dist/types/directives/vRipple.d.ts +3 -0
  184. package/dist/types/directives/vSlideIn.d.ts +3 -0
  185. package/dist/types/directives/vTextJump.d.ts +3 -0
  186. package/dist/types/directives/vTooltip.d.ts +7 -0
  187. package/dist/types/hooks/index.d.ts +5 -0
  188. package/dist/types/hooks/useAudio.d.ts +38 -0
  189. package/dist/types/hooks/useElementScroll.d.ts +32 -0
  190. package/dist/types/hooks/useGSAP.d.ts +34 -0
  191. package/dist/types/hooks/useRefreshRate.d.ts +5 -0
  192. package/dist/types/hooks/useWindowBackTop.d.ts +14 -0
  193. package/dist/types/icons/brands.d.ts +589 -0
  194. package/dist/types/icons/regular.d.ts +275 -0
  195. package/dist/types/icons/solid.d.ts +2002 -0
  196. package/dist/types/router/index.d.ts +2 -0
  197. package/dist/types/utils/chance.d.ts +7 -0
  198. package/dist/types/utils/copyToClipboard.d.ts +6 -0
  199. package/dist/types/utils/debounce.d.ts +16 -0
  200. package/dist/types/utils/deepClone.d.ts +6 -0
  201. package/dist/types/utils/deepEqual.d.ts +5 -0
  202. package/dist/types/utils/dialog.d.ts +12 -0
  203. package/dist/types/utils/getId.d.ts +6 -0
  204. package/dist/types/utils/getRandomColor.d.ts +4 -0
  205. package/dist/types/utils/getRandomInt.d.ts +6 -0
  206. package/dist/types/utils/getRandomStr.d.ts +6 -0
  207. package/dist/types/utils/index.d.ts +23 -0
  208. package/dist/types/utils/injectStyles.d.ts +9 -0
  209. package/dist/types/utils/isElementOverflow.d.ts +20 -0
  210. package/dist/types/utils/isEmpty.d.ts +6 -0
  211. package/dist/types/utils/isMobile.d.ts +6 -0
  212. package/dist/types/utils/isObject.d.ts +4 -0
  213. package/dist/types/utils/isPromise.d.ts +6 -0
  214. package/dist/types/utils/localStorage.d.ts +24 -0
  215. package/dist/types/utils/msg.d.ts +20 -0
  216. package/dist/types/utils/omit.d.ts +6 -0
  217. package/dist/types/utils/pick.d.ts +6 -0
  218. package/dist/types/utils/sessionStorage.d.ts +24 -0
  219. package/dist/types/utils/shuffleArray.d.ts +6 -0
  220. package/dist/types/utils/throttle.d.ts +9 -0
  221. package/dist/types/views/TestButton.d.ts +2 -0
  222. package/dist/types/views/TestCheckbox.d.ts +2 -0
  223. package/dist/types/views/TestCollapse.d.ts +2 -0
  224. package/dist/types/views/TestDialog.d.ts +2 -0
  225. package/dist/types/views/TestHome.d.ts +2 -0
  226. package/dist/types/views/TestIcon.d.ts +2 -0
  227. package/dist/types/views/TestMessage.d.ts +2 -0
  228. package/dist/types/views/TestModal.d.ts +2 -0
  229. package/dist/types/views/TestNav.d.ts +2 -0
  230. package/dist/types/views/TestPager.d.ts +2 -0
  231. package/dist/types/views/TestPopconfirm.d.ts +4 -0
  232. package/dist/types/views/TestProgress.d.ts +2 -0
  233. package/dist/types/views/TestSwitch.d.ts +2 -0
  234. package/dist/types/views/TestTable.d.ts +2 -0
  235. package/dist/types/views/TestTimer.d.ts +19 -0
  236. package/dist/types/views/TestTooltip.d.ts +2 -0
  237. package/dist/types/views/TestVLoading.d.ts +2 -0
  238. package/dist/types/views/TestWarn.d.ts +2 -0
  239. package/dist/types/views/TestWatermark.d.ts +2 -0
  240. package/dist/utils/chance.js +7 -0
  241. package/dist/utils/copyToClipboard.js +19 -0
  242. package/dist/utils/debounce.js +14 -0
  243. package/dist/utils/deepClone.js +17 -0
  244. package/dist/utils/deepEqual.js +40 -0
  245. package/dist/utils/dialog.js +47 -0
  246. package/dist/utils/getId.js +10 -0
  247. package/dist/utils/getRandomColor.js +4 -0
  248. package/dist/utils/getRandomInt.js +4 -0
  249. package/dist/utils/getRandomStr.js +5 -0
  250. package/dist/utils/injectStyles.js +24 -0
  251. package/dist/utils/isElementOverflow.js +22 -0
  252. package/dist/utils/isEmpty.js +4 -0
  253. package/dist/utils/isMobile.js +7 -0
  254. package/dist/utils/isObject.js +4 -0
  255. package/dist/utils/isPromise.js +7 -0
  256. package/dist/utils/localStorage.js +50 -0
  257. package/dist/utils/msg.js +24 -0
  258. package/dist/utils/omit.js +9 -0
  259. package/dist/utils/pick.js +9 -0
  260. package/dist/utils/sessionStorage.js +47 -0
  261. package/dist/utils/shuffleArray.js +10 -0
  262. package/dist/utils/throttle.js +11 -0
  263. package/dist/utils.js +50 -0
  264. package/package.json +102 -0
@@ -0,0 +1,528 @@
1
+ import { defineComponent as T, computed as v, watch as U, h as w } from "vue";
2
+ import { parse as j, icon as q, config as L, text as H } from "../../../../@fortawesome_fontawesome-svg-core@7.2.0/node_modules/@fortawesome/fontawesome-svg-core/index.js";
3
+ function N(e, t) {
4
+ (t == null || t > e.length) && (t = e.length);
5
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
6
+ return n;
7
+ }
8
+ function M(e) {
9
+ if (Array.isArray(e)) return N(e);
10
+ }
11
+ function s(e, t, r) {
12
+ return (t = X(t)) in e ? Object.defineProperty(e, t, {
13
+ value: r,
14
+ enumerable: !0,
15
+ configurable: !0,
16
+ writable: !0
17
+ }) : e[t] = r, e;
18
+ }
19
+ function V(e) {
20
+ if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
21
+ }
22
+ function Z() {
23
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
24
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
25
+ }
26
+ function K(e, t) {
27
+ var r = Object.keys(e);
28
+ if (Object.getOwnPropertySymbols) {
29
+ var n = Object.getOwnPropertySymbols(e);
30
+ t && (n = n.filter(function(i) {
31
+ return Object.getOwnPropertyDescriptor(e, i).enumerable;
32
+ })), r.push.apply(r, n);
33
+ }
34
+ return r;
35
+ }
36
+ function o(e) {
37
+ for (var t = 1; t < arguments.length; t++) {
38
+ var r = arguments[t] != null ? arguments[t] : {};
39
+ t % 2 ? K(Object(r), !0).forEach(function(n) {
40
+ s(e, n, r[n]);
41
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : K(Object(r)).forEach(function(n) {
42
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
43
+ });
44
+ }
45
+ return e;
46
+ }
47
+ function k(e, t) {
48
+ if (e == null) return {};
49
+ var r, n, i = J(e, t);
50
+ if (Object.getOwnPropertySymbols) {
51
+ var u = Object.getOwnPropertySymbols(e);
52
+ for (n = 0; n < u.length; n++) r = u[n], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (i[r] = e[r]);
53
+ }
54
+ return i;
55
+ }
56
+ function J(e, t) {
57
+ if (e == null) return {};
58
+ var r = {};
59
+ for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
60
+ if (t.indexOf(n) !== -1) continue;
61
+ r[n] = e[n];
62
+ }
63
+ return r;
64
+ }
65
+ function B(e) {
66
+ return M(e) || V(e) || Y(e) || Z();
67
+ }
68
+ function Q(e, t) {
69
+ if (typeof e != "object" || !e) return e;
70
+ var r = e[Symbol.toPrimitive];
71
+ if (r !== void 0) {
72
+ var n = r.call(e, t);
73
+ if (typeof n != "object") return n;
74
+ throw new TypeError("@@toPrimitive must return a primitive value.");
75
+ }
76
+ return (t === "string" ? String : Number)(e);
77
+ }
78
+ function X(e) {
79
+ var t = Q(e, "string");
80
+ return typeof t == "symbol" ? t : t + "";
81
+ }
82
+ function F(e) {
83
+ "@babel/helpers - typeof";
84
+ return F = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
85
+ return typeof t;
86
+ } : function(t) {
87
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
88
+ }, F(e);
89
+ }
90
+ function Y(e, t) {
91
+ if (e) {
92
+ if (typeof e == "string") return N(e, t);
93
+ var r = {}.toString.call(e).slice(8, -1);
94
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? N(e, t) : void 0;
95
+ }
96
+ }
97
+ function S(e, t) {
98
+ return Array.isArray(t) && t.length > 0 || !Array.isArray(t) && t ? s({}, e, t) : {};
99
+ }
100
+ function E(e) {
101
+ var t, r = (t = {
102
+ "fa-spin": e.spin,
103
+ "fa-pulse": e.pulse,
104
+ // the fixedWidth property has been deprecated as of version 7.0.0
105
+ "fa-fw": e.fixedWidth,
106
+ "fa-border": e.border,
107
+ "fa-li": e.listItem,
108
+ "fa-inverse": e.inverse,
109
+ "fa-flip": e.flip === !0,
110
+ "fa-flip-horizontal": e.flip === "horizontal" || e.flip === "both",
111
+ "fa-flip-vertical": e.flip === "vertical" || e.flip === "both"
112
+ }, s(s(s(s(s(s(s(s(s(s(t, "fa-".concat(e.size), e.size !== null), "fa-rotate-".concat(e.rotation), e.rotation !== null), "fa-rotate-by", e.rotateBy), "fa-pull-".concat(e.pull), e.pull !== null), "fa-swap-opacity", e.swapOpacity), "fa-bounce", e.bounce), "fa-shake", e.shake), "fa-beat", e.beat), "fa-fade", e.fade), "fa-beat-fade", e.beatFade), s(s(s(s(t, "fa-flash", e.flash), "fa-spin-pulse", e.spinPulse), "fa-spin-reverse", e.spinReverse), "fa-width-auto", e.widthAuto));
113
+ return Object.keys(r).map(function(n) {
114
+ return r[n] ? n : null;
115
+ }).filter(function(n) {
116
+ return n;
117
+ });
118
+ }
119
+ var ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, $ = { exports: {} };
120
+ (function(e) {
121
+ (function(t) {
122
+ var r = function(a, l, y) {
123
+ if (!p(l) || A(l) || P(l) || I(l) || m(l))
124
+ return l;
125
+ var f, g = 0, h = 0;
126
+ if (d(l))
127
+ for (f = [], h = l.length; g < h; g++)
128
+ f.push(r(a, l[g], y));
129
+ else {
130
+ f = {};
131
+ for (var z in l)
132
+ Object.prototype.hasOwnProperty.call(l, z) && (f[a(z, y)] = r(a, l[z], y));
133
+ }
134
+ return f;
135
+ }, n = function(a, l) {
136
+ l = l || {};
137
+ var y = l.separator || "_", f = l.split || /(?=[A-Z])/;
138
+ return a.split(f).join(y);
139
+ }, i = function(a) {
140
+ return _(a) ? a : (a = a.replace(/[\-_\s]+(.)?/g, function(l, y) {
141
+ return y ? y.toUpperCase() : "";
142
+ }), a.substr(0, 1).toLowerCase() + a.substr(1));
143
+ }, u = function(a) {
144
+ var l = i(a);
145
+ return l.substr(0, 1).toUpperCase() + l.substr(1);
146
+ }, b = function(a, l) {
147
+ return n(a, l).toLowerCase();
148
+ }, c = Object.prototype.toString, m = function(a) {
149
+ return typeof a == "function";
150
+ }, p = function(a) {
151
+ return a === Object(a);
152
+ }, d = function(a) {
153
+ return c.call(a) == "[object Array]";
154
+ }, A = function(a) {
155
+ return c.call(a) == "[object Date]";
156
+ }, P = function(a) {
157
+ return c.call(a) == "[object RegExp]";
158
+ }, I = function(a) {
159
+ return c.call(a) == "[object Boolean]";
160
+ }, _ = function(a) {
161
+ return a = a - 0, a === a;
162
+ }, O = function(a, l) {
163
+ var y = l && "process" in l ? l.process : l;
164
+ return typeof y != "function" ? a : function(f, g) {
165
+ return y(f, a, g);
166
+ };
167
+ }, x = {
168
+ camelize: i,
169
+ decamelize: b,
170
+ pascalize: u,
171
+ depascalize: b,
172
+ camelizeKeys: function(a, l) {
173
+ return r(O(i, l), a);
174
+ },
175
+ decamelizeKeys: function(a, l) {
176
+ return r(O(b, l), a, l);
177
+ },
178
+ pascalizeKeys: function(a, l) {
179
+ return r(O(u, l), a);
180
+ },
181
+ depascalizeKeys: function() {
182
+ return this.decamelizeKeys.apply(this, arguments);
183
+ }
184
+ };
185
+ e.exports ? e.exports = x : t.humps = x;
186
+ })(ee);
187
+ })($);
188
+ var te = $.exports, re = ["gradientFill"], ne = ["class", "style"], ae = ["type", "stops", "id"];
189
+ function le(e) {
190
+ return e.split(";").map(function(t) {
191
+ return t.trim();
192
+ }).filter(function(t) {
193
+ return t;
194
+ }).reduce(function(t, r) {
195
+ var n = r.indexOf(":"), i = te.camelize(r.slice(0, n)), u = r.slice(n + 1).trim();
196
+ return t[i] = u, t;
197
+ }, {});
198
+ }
199
+ function ie(e) {
200
+ return e.split(/\s+/).reduce(function(t, r) {
201
+ return t[r] = !0, t;
202
+ }, {});
203
+ }
204
+ function oe(e, t) {
205
+ return w("stop", o({
206
+ key: "".concat(t, "-").concat(e.offset),
207
+ offset: e.offset,
208
+ "stop-color": e.color
209
+ }, e.opacity !== void 0 && {
210
+ "stop-opacity": e.opacity
211
+ }));
212
+ }
213
+ function R(e) {
214
+ if (typeof e == "string") return e;
215
+ var t = (e.children || []).map(R);
216
+ return e.tag === "path" && e.attributes && "fill" in e.attributes ? o(o({}, e), {}, {
217
+ attributes: o(o({}, e.attributes), {}, {
218
+ fill: void 0
219
+ }),
220
+ children: t
221
+ }) : o(o({}, e), {}, {
222
+ children: t
223
+ });
224
+ }
225
+ function C(e) {
226
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
227
+ if (typeof e == "string")
228
+ return e;
229
+ var n = t.gradientFill, i = n === void 0 ? null : n, u = k(t, re), b = !!i || "fill" in r, c = b ? R(e) : e, m = (c.children || []).map(function(f) {
230
+ return C(f, {}, {});
231
+ }), p = Object.keys(c.attributes || {}).reduce(function(f, g) {
232
+ var h = c.attributes[g];
233
+ switch (g) {
234
+ case "class":
235
+ f.class = ie(h);
236
+ break;
237
+ case "style":
238
+ f.style = le(h);
239
+ break;
240
+ default:
241
+ f.attrs[g] = h;
242
+ }
243
+ return f;
244
+ }, {
245
+ attrs: {},
246
+ class: {},
247
+ style: {}
248
+ });
249
+ r.class;
250
+ var d = r.style, A = d === void 0 ? {} : d, P = k(r, ne);
251
+ if (i && i.id && (i.type === "linear" || i.type === "radial")) {
252
+ var I = i.type, _ = i.stops, O = _ === void 0 ? [] : _, x = i.id, a = k(i, ae), l = I === "linear" ? "linearGradient" : "radialGradient", y = w(l, o(o({}, a), {}, {
253
+ id: x
254
+ }), O.map(oe));
255
+ return w(c.tag, o(o(o(o({}, u), {}, {
256
+ class: p.class,
257
+ style: o(o({}, p.style), A)
258
+ }, p.attrs), P), {}, {
259
+ fill: "url(#".concat(x, ")")
260
+ }), [y].concat(B(m)));
261
+ }
262
+ return w(e.tag, o(o(o({}, u), {}, {
263
+ class: p.class,
264
+ style: o(o({}, p.style), A)
265
+ }, p.attrs), P), m);
266
+ }
267
+ var G = !1;
268
+ try {
269
+ G = process.env.NODE_ENV === "production";
270
+ } catch {
271
+ }
272
+ function W() {
273
+ if (!G && console && typeof console.error == "function") {
274
+ var e;
275
+ (e = console).error.apply(e, arguments);
276
+ }
277
+ }
278
+ function D(e) {
279
+ if (e && F(e) === "object" && e.prefix && e.iconName && e.icon)
280
+ return e;
281
+ if (j.icon)
282
+ return j.icon(e);
283
+ if (e === null)
284
+ return null;
285
+ if (F(e) === "object" && e.prefix && e.iconName)
286
+ return e;
287
+ if (Array.isArray(e) && e.length === 2)
288
+ return {
289
+ prefix: e[0],
290
+ iconName: e[1]
291
+ };
292
+ if (typeof e == "string")
293
+ return {
294
+ prefix: "fas",
295
+ iconName: e
296
+ };
297
+ }
298
+ var se = T({
299
+ name: "FontAwesomeIcon",
300
+ props: {
301
+ border: {
302
+ type: Boolean,
303
+ default: !1
304
+ },
305
+ // the fixedWidth property has been deprecated as of version 7
306
+ fixedWidth: {
307
+ type: Boolean,
308
+ default: !1
309
+ },
310
+ flip: {
311
+ type: [Boolean, String],
312
+ default: !1,
313
+ validator: function(t) {
314
+ return [!0, !1, "horizontal", "vertical", "both"].indexOf(t) > -1;
315
+ }
316
+ },
317
+ icon: {
318
+ type: [Object, Array, String],
319
+ required: !0
320
+ },
321
+ mask: {
322
+ type: [Object, Array, String],
323
+ default: null
324
+ },
325
+ maskId: {
326
+ type: String,
327
+ default: null
328
+ },
329
+ listItem: {
330
+ type: Boolean,
331
+ default: !1
332
+ },
333
+ pull: {
334
+ type: String,
335
+ default: null,
336
+ validator: function(t) {
337
+ return ["right", "left"].indexOf(t) > -1;
338
+ }
339
+ },
340
+ pulse: {
341
+ type: Boolean,
342
+ default: !1
343
+ },
344
+ rotation: {
345
+ type: [String, Number],
346
+ default: null,
347
+ validator: function(t) {
348
+ return [90, 180, 270].indexOf(Number.parseInt(t, 10)) > -1;
349
+ }
350
+ },
351
+ // the rotateBy property is only supported in version 7.0.0 and later
352
+ rotateBy: {
353
+ type: Boolean,
354
+ default: !1
355
+ },
356
+ swapOpacity: {
357
+ type: Boolean,
358
+ default: !1
359
+ },
360
+ size: {
361
+ type: String,
362
+ default: null,
363
+ validator: function(t) {
364
+ return ["2xs", "xs", "sm", "lg", "xl", "2xl", "1x", "2x", "3x", "4x", "5x", "6x", "7x", "8x", "9x", "10x"].indexOf(t) > -1;
365
+ }
366
+ },
367
+ spin: {
368
+ type: Boolean,
369
+ default: !1
370
+ },
371
+ transform: {
372
+ type: [String, Object],
373
+ default: null
374
+ },
375
+ symbol: {
376
+ type: [Boolean, String],
377
+ default: !1
378
+ },
379
+ title: {
380
+ type: String,
381
+ default: null
382
+ },
383
+ titleId: {
384
+ type: String,
385
+ default: null
386
+ },
387
+ inverse: {
388
+ type: Boolean,
389
+ default: !1
390
+ },
391
+ bounce: {
392
+ type: Boolean,
393
+ default: !1
394
+ },
395
+ shake: {
396
+ type: Boolean,
397
+ default: !1
398
+ },
399
+ beat: {
400
+ type: Boolean,
401
+ default: !1
402
+ },
403
+ fade: {
404
+ type: Boolean,
405
+ default: !1
406
+ },
407
+ beatFade: {
408
+ type: Boolean,
409
+ default: !1
410
+ },
411
+ flash: {
412
+ type: Boolean,
413
+ default: !1
414
+ },
415
+ spinPulse: {
416
+ type: Boolean,
417
+ default: !1
418
+ },
419
+ spinReverse: {
420
+ type: Boolean,
421
+ default: !1
422
+ },
423
+ // the widthAuto property is only supported in version 7.0.0 and later
424
+ widthAuto: {
425
+ type: Boolean,
426
+ default: !1
427
+ },
428
+ gradientFill: {
429
+ type: Object,
430
+ default: null,
431
+ validator: function(t) {
432
+ return typeof t.id != "string" || !t.id ? (console.warn("FontAwesomeIcon: gradientFill.id must be a non-empty string"), !1) : t.type !== "linear" && t.type !== "radial" ? (console.warn('FontAwesomeIcon: gradientFill.type must be "linear" or "radial"'), !1) : !0;
433
+ }
434
+ }
435
+ },
436
+ setup: function(t, r) {
437
+ var n = r.attrs, i = v(function() {
438
+ return D(t.icon);
439
+ }), u = v(function() {
440
+ return S("classes", E(t));
441
+ }), b = v(function() {
442
+ return S("transform", typeof t.transform == "string" ? j.transform(t.transform) : t.transform);
443
+ }), c = v(function() {
444
+ return S("mask", D(t.mask));
445
+ }), m = v(function() {
446
+ var d = o(o(o(o({}, u.value), b.value), c.value), {}, {
447
+ symbol: t.symbol,
448
+ maskId: t.maskId
449
+ });
450
+ return d.title = t.title, d.titleId = t.titleId, q(i.value, d);
451
+ });
452
+ U(m, function(d) {
453
+ if (!d)
454
+ return W("Could not find one or more icon(s)", i.value, c.value);
455
+ }, {
456
+ immediate: !0
457
+ }), t.gradientFill && t.symbol && W("gradientFill is not supported when symbol is true and will be ignored");
458
+ var p = v(function() {
459
+ return m.value ? C(m.value.abstract[0], {
460
+ gradientFill: t.symbol ? null : t.gradientFill
461
+ }, n) : null;
462
+ });
463
+ return function() {
464
+ return p.value;
465
+ };
466
+ }
467
+ });
468
+ T({
469
+ name: "FontAwesomeLayers",
470
+ props: {
471
+ fixedWidth: {
472
+ type: Boolean,
473
+ default: !1
474
+ }
475
+ },
476
+ setup: function(t, r) {
477
+ var n = r.slots, i = L.familyPrefix, u = v(function() {
478
+ return ["".concat(i, "-layers")].concat(B(t.fixedWidth ? ["".concat(i, "-fw")] : []));
479
+ });
480
+ return function() {
481
+ return w("div", {
482
+ class: u.value
483
+ }, n.default ? n.default() : []);
484
+ };
485
+ }
486
+ });
487
+ T({
488
+ name: "FontAwesomeLayersText",
489
+ props: {
490
+ value: {
491
+ type: [String, Number],
492
+ default: ""
493
+ },
494
+ transform: {
495
+ type: [String, Object],
496
+ default: null
497
+ },
498
+ counter: {
499
+ type: Boolean,
500
+ default: !1
501
+ },
502
+ position: {
503
+ type: String,
504
+ default: null,
505
+ validator: function(t) {
506
+ return ["bottom-left", "bottom-right", "top-left", "top-right"].indexOf(t) > -1;
507
+ }
508
+ }
509
+ },
510
+ setup: function(t, r) {
511
+ var n = r.attrs, i = L.familyPrefix, u = v(function() {
512
+ return S("classes", [].concat(B(t.counter ? ["".concat(i, "-layers-counter")] : []), B(t.position ? ["".concat(i, "-layers-").concat(t.position)] : [])));
513
+ }), b = v(function() {
514
+ return S("transform", typeof t.transform == "string" ? j.transform(t.transform) : t.transform);
515
+ }), c = v(function() {
516
+ var p = H(t.value.toString(), o(o({}, b.value), u.value)), d = p.abstract;
517
+ return t.counter && (d[0].attributes.class = d[0].attributes.class.replace("fa-layers-text", "")), d[0];
518
+ }), m = v(function() {
519
+ return C(c.value, {}, n);
520
+ });
521
+ return function() {
522
+ return m.value;
523
+ };
524
+ }
525
+ });
526
+ export {
527
+ se as FontAwesomeIcon
528
+ };