tttb 0.1.24

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