@orchidui/dashboard 1.8.1-95 → 1.8.1-97

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.
@@ -0,0 +1,37 @@
1
+ import { defineComponent as o, ref as i, onMounted as r, createElementBlock as s, openBlock as c } from "vue";
2
+ import { createHighlighter as u } from "shiki";
3
+ import m from "./Dashboard/CodeBlock/customTheme.js";
4
+ const p = Object.freeze(JSON.parse('{"displayName":"JSON","name":"json","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json"}},"end":"\\\\]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json"}},"name":"meta.structure.array.json","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json"},{"match":"[^\\\\s\\\\]]","name":"invalid.illegal.expected-array-separator.json"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.documentation.json"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.json"},{"captures":{"1":{"name":"punctuation.definition.comment.json"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[eE][+-]?\\\\d+)?)?","name":"constant.numeric.json"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json"}},"name":"meta.structure.dictionary.json","patterns":[{"comment":"the JSON object key","include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json"}},"end":"(,)|(?=\\\\})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json"}},"name":"meta.structure.dictionary.value.json","patterns":[{"comment":"the JSON object value","include":"#value"},{"match":"[^\\\\s,]","name":"invalid.illegal.expected-dictionary-separator.json"}]},{"match":"[^\\\\s\\\\}]","name":"invalid.illegal.expected-dictionary-separator.json"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json"}},"name":"string.json support.type.property-name.json","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json"}},"name":"string.quoted.double.json","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"\\\\\\\\/bfnrt]|u[0-9a-fA-F]{4})","name":"constant.character.escape.json"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json"}')), d = [
5
+ p
6
+ ], l = ["innerHTML"], h = /* @__PURE__ */ o({
7
+ __name: "OcCodeBlock",
8
+ props: {
9
+ jsonObject: {
10
+ type: String,
11
+ required: !0
12
+ },
13
+ lang: {
14
+ type: String,
15
+ default: "json"
16
+ }
17
+ },
18
+ setup(a) {
19
+ const n = a, e = i();
20
+ return r(async () => {
21
+ const t = await u({
22
+ themes: [m],
23
+ langs: [d]
24
+ });
25
+ e.value = t.codeToHtml(n.jsonObject, {
26
+ theme: "Custom Theme",
27
+ lang: n.lang
28
+ });
29
+ }), (t, g) => (c(), s("div", {
30
+ class: "p-5 rounded bg-oc-gray-900 code-block",
31
+ innerHTML: e.value
32
+ }, null, 8, l));
33
+ }
34
+ });
35
+ export {
36
+ h as default
37
+ };
@@ -3,7 +3,7 @@ import { g as getDefaultExportFromCjs } from "./QuillEditor-DRwC0sgJ.js";
3
3
  var lottie$2 = { exports: {} }, lottie$1 = lottie$2.exports, hasRequiredLottie;
4
4
  function requireLottie() {
5
5
  return hasRequiredLottie || (hasRequiredLottie = 1, function(module, exports) {
6
- typeof document < "u" && typeof navigator < "u" && function(t, e) {
6
+ typeof navigator < "u" && function(t, e) {
7
7
  module.exports = e();
8
8
  }(lottie$1, function() {
9
9
  var svgNS = "http://www.w3.org/2000/svg", locationHref = "", _useWebWorker = !1, initialDefaultFrame = -999999, setWebWorker = function(e) {
@@ -127,10 +127,10 @@ function requireLottie() {
127
127
  }
128
128
  function _typeof$6(t) {
129
129
  "@babel/helpers - typeof";
130
- return _typeof$6 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
131
- return typeof e;
132
- } : function(e) {
133
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
130
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? _typeof$6 = function(r) {
131
+ return typeof r;
132
+ } : _typeof$6 = function(r) {
133
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
134
134
  }, _typeof$6(t);
135
135
  }
136
136
  var subframeEnabled = !0, expressionsPlugin = null, expressionsInterfaces = null, idPrefix$1 = "", isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), bmPow = Math.pow, bmSqrt = Math.sqrt, bmFloor = Math.floor, bmMax = Math.max, bmMin = Math.min, BMMath = {};
@@ -264,10 +264,10 @@ function requireLottie() {
264
264
  }
265
265
  function _typeof$5(t) {
266
266
  "@babel/helpers - typeof";
267
- return _typeof$5 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
268
- return typeof e;
269
- } : function(e) {
270
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
267
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? _typeof$5 = function(r) {
268
+ return typeof r;
269
+ } : _typeof$5 = function(r) {
270
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
271
271
  }, _typeof$5(t);
272
272
  }
273
273
  var dataManager = /* @__PURE__ */ function() {
@@ -510,13 +510,13 @@ function requireLottie() {
510
510
  var P, k, F = g.length, R, z, N, H;
511
511
  for (k = 0; k < F; k += 1) {
512
512
  if (P = g[k], P.hasMask) {
513
- var j = P.masksProperties;
514
- for (z = j.length, R = 0; R < z; R += 1)
515
- if (j[R].pt.k.i)
516
- j[R].pt.k.c = j[R].cl;
513
+ var W = P.masksProperties;
514
+ for (z = W.length, R = 0; R < z; R += 1)
515
+ if (W[R].pt.k.i)
516
+ W[R].pt.k.c = W[R].cl;
517
517
  else
518
- for (H = j[R].pt.k.length, N = 0; N < H; N += 1)
519
- j[R].pt.k[N].s && (j[R].pt.k[N].s[0].c = j[R].cl), j[R].pt.k[N].e && (j[R].pt.k[N].e[0].c = j[R].cl);
518
+ for (H = W[R].pt.k.length, N = 0; N < H; N += 1)
519
+ W[R].pt.k[N].s && (W[R].pt.k[N].s[0].c = W[R].cl), W[R].pt.k[N].e && (W[R].pt.k[N].e[0].c = W[R].cl);
520
520
  }
521
521
  P.ty === 4 && x(P.shapes);
522
522
  }
@@ -845,10 +845,10 @@ function requireLottie() {
845
845
  }
846
846
  function _typeof$4(t) {
847
847
  "@babel/helpers - typeof";
848
- return _typeof$4 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
849
- return typeof e;
850
- } : function(e) {
851
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
848
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? _typeof$4 = function(r) {
849
+ return typeof r;
850
+ } : _typeof$4 = function(r) {
851
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
852
852
  }, _typeof$4(t);
853
853
  }
854
854
  var AnimationItem = function() {
@@ -1899,18 +1899,18 @@ function requireLottie() {
1899
1899
  function p(g, P, k) {
1900
1900
  return !k && k !== 0 && (k = 1), g === 1 && P === 1 && k === 1 ? this : this._t(g, 0, 0, 0, 0, P, 0, 0, 0, 0, k, 0, 0, 0, 0, 1);
1901
1901
  }
1902
- function b(g, P, k, F, R, z, N, H, j, q, Y, Q, X, $, J, W) {
1903
- return this.props[0] = g, this.props[1] = P, this.props[2] = k, this.props[3] = F, this.props[4] = R, this.props[5] = z, this.props[6] = N, this.props[7] = H, this.props[8] = j, this.props[9] = q, this.props[10] = Y, this.props[11] = Q, this.props[12] = X, this.props[13] = $, this.props[14] = J, this.props[15] = W, this;
1902
+ function b(g, P, k, F, R, z, N, H, W, j, Y, Q, X, $, J, q) {
1903
+ return this.props[0] = g, this.props[1] = P, this.props[2] = k, this.props[3] = F, this.props[4] = R, this.props[5] = z, this.props[6] = N, this.props[7] = H, this.props[8] = W, this.props[9] = j, this.props[10] = Y, this.props[11] = Q, this.props[12] = X, this.props[13] = $, this.props[14] = J, this.props[15] = q, this;
1904
1904
  }
1905
1905
  function y(g, P, k) {
1906
1906
  return k = k || 0, g !== 0 || P !== 0 || k !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, g, P, k, 1) : this;
1907
1907
  }
1908
- function m(g, P, k, F, R, z, N, H, j, q, Y, Q, X, $, J, W) {
1908
+ function m(g, P, k, F, R, z, N, H, W, j, Y, Q, X, $, J, q) {
1909
1909
  var O = this.props;
1910
- if (g === 1 && P === 0 && k === 0 && F === 0 && R === 0 && z === 1 && N === 0 && H === 0 && j === 0 && q === 0 && Y === 1 && Q === 0)
1911
- return O[12] = O[12] * g + O[15] * X, O[13] = O[13] * z + O[15] * $, O[14] = O[14] * Y + O[15] * J, O[15] *= W, this._identityCalculated = !1, this;
1910
+ if (g === 1 && P === 0 && k === 0 && F === 0 && R === 0 && z === 1 && N === 0 && H === 0 && W === 0 && j === 0 && Y === 1 && Q === 0)
1911
+ return O[12] = O[12] * g + O[15] * X, O[13] = O[13] * z + O[15] * $, O[14] = O[14] * Y + O[15] * J, O[15] *= q, this._identityCalculated = !1, this;
1912
1912
  var et = O[0], at = O[1], rt = O[2], tt = O[3], it = O[4], st = O[5], Z = O[6], nt = O[7], ot = O[8], K = O[9], ht = O[10], U = O[11], lt = O[12], ft = O[13], pt = O[14], ct = O[15];
1913
- return O[0] = et * g + at * R + rt * j + tt * X, O[1] = et * P + at * z + rt * q + tt * $, O[2] = et * k + at * N + rt * Y + tt * J, O[3] = et * F + at * H + rt * Q + tt * W, O[4] = it * g + st * R + Z * j + nt * X, O[5] = it * P + st * z + Z * q + nt * $, O[6] = it * k + st * N + Z * Y + nt * J, O[7] = it * F + st * H + Z * Q + nt * W, O[8] = ot * g + K * R + ht * j + U * X, O[9] = ot * P + K * z + ht * q + U * $, O[10] = ot * k + K * N + ht * Y + U * J, O[11] = ot * F + K * H + ht * Q + U * W, O[12] = lt * g + ft * R + pt * j + ct * X, O[13] = lt * P + ft * z + pt * q + ct * $, O[14] = lt * k + ft * N + pt * Y + ct * J, O[15] = lt * F + ft * H + pt * Q + ct * W, this._identityCalculated = !1, this;
1913
+ return O[0] = et * g + at * R + rt * W + tt * X, O[1] = et * P + at * z + rt * j + tt * $, O[2] = et * k + at * N + rt * Y + tt * J, O[3] = et * F + at * H + rt * Q + tt * q, O[4] = it * g + st * R + Z * W + nt * X, O[5] = it * P + st * z + Z * j + nt * $, O[6] = it * k + st * N + Z * Y + nt * J, O[7] = it * F + st * H + Z * Q + nt * q, O[8] = ot * g + K * R + ht * W + U * X, O[9] = ot * P + K * z + ht * j + U * $, O[10] = ot * k + K * N + ht * Y + U * J, O[11] = ot * F + K * H + ht * Q + U * q, O[12] = lt * g + ft * R + pt * W + ct * X, O[13] = lt * P + ft * z + pt * j + ct * $, O[14] = lt * k + ft * N + pt * Y + ct * J, O[15] = lt * F + ft * H + pt * Q + ct * q, this._identityCalculated = !1, this;
1914
1914
  }
1915
1915
  function C(g) {
1916
1916
  var P = g.props;
@@ -1973,8 +1973,8 @@ function requireLottie() {
1973
1973
  if (this.isIdentity())
1974
1974
  F[0] = g[0], F[1] = g[1], F[2] = P[0], F[3] = P[1], F[4] = k[0], F[5] = k[1];
1975
1975
  else {
1976
- var R = this.props[0], z = this.props[1], N = this.props[4], H = this.props[5], j = this.props[12], q = this.props[13];
1977
- F[0] = g[0] * R + g[1] * N + j, F[1] = g[0] * z + g[1] * H + q, F[2] = P[0] * R + P[1] * N + j, F[3] = P[0] * z + P[1] * H + q, F[4] = k[0] * R + k[1] * N + j, F[5] = k[0] * z + k[1] * H + q;
1976
+ var R = this.props[0], z = this.props[1], N = this.props[4], H = this.props[5], W = this.props[12], j = this.props[13];
1977
+ F[0] = g[0] * R + g[1] * N + W, F[1] = g[0] * z + g[1] * H + j, F[2] = P[0] * R + P[1] * N + W, F[3] = P[0] * z + P[1] * H + j, F[4] = k[0] * R + k[1] * N + W, F[5] = k[0] * z + k[1] * H + j;
1978
1978
  }
1979
1979
  return F;
1980
1980
  }
@@ -2007,10 +2007,10 @@ function requireLottie() {
2007
2007
  }();
2008
2008
  function _typeof$3(t) {
2009
2009
  "@babel/helpers - typeof";
2010
- return _typeof$3 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2011
- return typeof e;
2012
- } : function(e) {
2013
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2010
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? _typeof$3 = function(r) {
2011
+ return typeof r;
2012
+ } : _typeof$3 = function(r) {
2013
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
2014
2014
  }, _typeof$3(t);
2015
2015
  }
2016
2016
  var lottie = {};
@@ -2063,7 +2063,7 @@ function requireLottie() {
2063
2063
  return null;
2064
2064
  }
2065
2065
  }
2066
- lottie.play = animationManager.play, lottie.pause = animationManager.pause, lottie.setLocationHref = setLocation, lottie.togglePause = animationManager.togglePause, lottie.setSpeed = animationManager.setSpeed, lottie.setDirection = animationManager.setDirection, lottie.stop = animationManager.stop, lottie.searchAnimations = searchAnimations, lottie.registerAnimation = animationManager.registerAnimation, lottie.loadAnimation = loadAnimation, lottie.setSubframeRendering = setSubframeRendering, lottie.resize = animationManager.resize, lottie.goToAndStop = animationManager.goToAndStop, lottie.destroy = animationManager.destroy, lottie.setQuality = setQuality, lottie.inBrowser = inBrowser, lottie.installPlugin = installPlugin, lottie.freeze = animationManager.freeze, lottie.unfreeze = animationManager.unfreeze, lottie.setVolume = animationManager.setVolume, lottie.mute = animationManager.mute, lottie.unmute = animationManager.unmute, lottie.getRegisteredAnimations = animationManager.getRegisteredAnimations, lottie.useWebWorker = setWebWorker, lottie.setIDPrefix = setPrefix, lottie.__getFactory = getFactory, lottie.version = "5.13.0";
2066
+ lottie.play = animationManager.play, lottie.pause = animationManager.pause, lottie.setLocationHref = setLocation, lottie.togglePause = animationManager.togglePause, lottie.setSpeed = animationManager.setSpeed, lottie.setDirection = animationManager.setDirection, lottie.stop = animationManager.stop, lottie.searchAnimations = searchAnimations, lottie.registerAnimation = animationManager.registerAnimation, lottie.loadAnimation = loadAnimation, lottie.setSubframeRendering = setSubframeRendering, lottie.resize = animationManager.resize, lottie.goToAndStop = animationManager.goToAndStop, lottie.destroy = animationManager.destroy, lottie.setQuality = setQuality, lottie.inBrowser = inBrowser, lottie.installPlugin = installPlugin, lottie.freeze = animationManager.freeze, lottie.unfreeze = animationManager.unfreeze, lottie.setVolume = animationManager.setVolume, lottie.mute = animationManager.mute, lottie.unmute = animationManager.unmute, lottie.getRegisteredAnimations = animationManager.getRegisteredAnimations, lottie.useWebWorker = setWebWorker, lottie.setIDPrefix = setPrefix, lottie.__getFactory = getFactory, lottie.version = "5.12.2";
2067
2067
  function checkReady() {
2068
2068
  document.readyState === "complete" && (clearInterval(readyStateCheckInterval), searchAnimations());
2069
2069
  }
@@ -2894,15 +2894,15 @@ function requireLottie() {
2894
2894
  for (z = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), N = 0; N < z.length; N += 1)
2895
2895
  z[N].href.indexOf(g[P].fPath) !== -1 && (R = !1);
2896
2896
  if (R) {
2897
- var j = createTag("link");
2898
- j.setAttribute("f-forigin", g[P].fOrigin), j.setAttribute("f-origin", g[P].origin), j.type = "text/css", j.rel = "stylesheet", j.href = g[P].fPath, document.body.appendChild(j);
2897
+ var W = createTag("link");
2898
+ W.setAttribute("f-forigin", g[P].fOrigin), W.setAttribute("f-origin", g[P].origin), W.type = "text/css", W.rel = "stylesheet", W.href = g[P].fPath, document.body.appendChild(W);
2899
2899
  }
2900
2900
  } else if (g[P].fOrigin === "t" || g[P].origin === 2) {
2901
2901
  for (z = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), N = 0; N < z.length; N += 1)
2902
2902
  g[P].fPath === z[N].src && (R = !1);
2903
2903
  if (R) {
2904
- var q = createTag("link");
2905
- q.setAttribute("f-forigin", g[P].fOrigin), q.setAttribute("f-origin", g[P].origin), q.setAttribute("rel", "stylesheet"), q.setAttribute("href", g[P].fPath), A.appendChild(q);
2904
+ var j = createTag("link");
2905
+ j.setAttribute("f-forigin", g[P].fOrigin), j.setAttribute("f-origin", g[P].origin), j.setAttribute("rel", "stylesheet"), j.setAttribute("href", g[P].fPath), A.appendChild(j);
2906
2906
  }
2907
2907
  }
2908
2908
  g[P].helper = m(g[P], A), g[P].cache = {}, this.fonts.push(g[P]);
@@ -3410,7 +3410,7 @@ function requireLottie() {
3410
3410
  for (e = this.finalTransform.mProp.v.props, r.cloneFromProps(e), i = 0; i < s; i += 1)
3411
3411
  r.multiply(this.hierarchy[i].finalTransform.mProp.v);
3412
3412
  }
3413
- (!this.localTransforms || this.finalTransform._matMdf) && (this.finalTransform._localMatMdf = this.finalTransform._matMdf), this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v);
3413
+ this.finalTransform._matMdf && (this.finalTransform._localMatMdf = this.finalTransform._matMdf), this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v);
3414
3414
  },
3415
3415
  renderLocalTransform: function() {
3416
3416
  if (this.localTransforms) {
@@ -4006,7 +4006,7 @@ function requireLottie() {
4006
4006
  (p.e._mdf || b) && (y.setAttribute("x2", c[0]), y.setAttribute("y2", c[1]), m && !p.g._collapsable && (p.of.setAttribute("x2", c[0]), p.of.setAttribute("y2", c[1])));
4007
4007
  else {
4008
4008
  var L;
4009
- if ((p.s._mdf || p.e._mdf || b) && (L = Math.sqrt(Math.pow(C[0] - c[0], 2) + Math.pow(C[1] - c[1], 2)), y.setAttribute("r", L), m && !p.g._collapsable && p.of.setAttribute("r", L)), p.s._mdf || p.e._mdf || p.h._mdf || p.a._mdf || b) {
4009
+ if ((p.s._mdf || p.e._mdf || b) && (L = Math.sqrt(Math.pow(C[0] - c[0], 2) + Math.pow(C[1] - c[1], 2)), y.setAttribute("r", L), m && !p.g._collapsable && p.of.setAttribute("r", L)), p.e._mdf || p.h._mdf || p.a._mdf || b) {
4010
4010
  L || (L = Math.sqrt(Math.pow(C[0] - c[0], 2) + Math.pow(C[1] - c[1], 2)));
4011
4011
  var V = Math.atan2(c[1] - C[1], c[0] - C[0]), D = p.h.v;
4012
4012
  D >= 1 ? D = 0.99 : D <= -1 && (D = -0.99);
@@ -4075,7 +4075,7 @@ function requireLottie() {
4075
4075
  }, SVGShapeElement.prototype.setElementStyles = function(t) {
4076
4076
  var e = t.styles, r, i = this.stylesList.length;
4077
4077
  for (r = 0; r < i; r += 1)
4078
- e.indexOf(this.stylesList[r]) === -1 && !this.stylesList[r].closed && e.push(this.stylesList[r]);
4078
+ this.stylesList[r].closed || e.push(this.stylesList[r]);
4079
4079
  }, SVGShapeElement.prototype.reloadShapes = function() {
4080
4080
  this._isFirstFrame = !0;
4081
4081
  var t, e = this.itemsData.length;
@@ -4088,7 +4088,7 @@ function requireLottie() {
4088
4088
  var h = [].concat(a), o, f = t.length - 1, v, S, p = [], b = [], y, m, C;
4089
4089
  for (o = f; o >= 0; o -= 1) {
4090
4090
  if (C = this.searchProcessedElement(t[o]), C ? e[o] = r[C - 1] : t[o]._render = n, t[o].ty === "fl" || t[o].ty === "st" || t[o].ty === "gf" || t[o].ty === "gs" || t[o].ty === "no")
4091
- C ? e[o].style.closed = t[o].hd : e[o] = this.createStyleElement(t[o], s), t[o]._render && e[o].style.pElem.parentNode !== i && i.appendChild(e[o].style.pElem), p.push(e[o].style);
4091
+ C ? e[o].style.closed = !1 : e[o] = this.createStyleElement(t[o], s), t[o]._render && e[o].style.pElem.parentNode !== i && i.appendChild(e[o].style.pElem), p.push(e[o].style);
4092
4092
  else if (t[o].ty === "gr") {
4093
4093
  if (!C)
4094
4094
  e[o] = this.createGroupElement(t[o]);
@@ -4405,7 +4405,7 @@ function requireLottie() {
4405
4405
  S = p.length, o = 0, f = 0;
4406
4406
  var B = t.finalSize * 1.2 * 0.714, I = !0, x, A, g, P, k;
4407
4407
  P = i.length;
4408
- var F, R = -1, z, N, H, j = y, q = l, Y = u, Q = -1, X, $, J, W, O, et, at, rt, tt = "", it = this.defaultPropsArray, st;
4408
+ var F, R = -1, z, N, H, W = y, j = l, Y = u, Q = -1, X, $, J, q, O, et, at, rt, tt = "", it = this.defaultPropsArray, st;
4409
4409
  if (t.j === 2 || t.j === 1) {
4410
4410
  var Z = 0, nt = 0, ot = t.j === 2 ? -0.5 : -1, K = 0, ht = !0;
4411
4411
  for (v = 0; v < S; v += 1)
@@ -4423,7 +4423,7 @@ function requireLottie() {
4423
4423
  }
4424
4424
  for (v = 0; v < S; v += 1) {
4425
4425
  if (a.reset(), X = 1, p[v].n)
4426
- o = 0, f += t.yOffset, f += I ? 1 : 0, y = j, I = !1, this._hasMaskedPath && (l = q, u = Y, E = _[l].points, d = E[u - 1], m = E[u], T = m.partialLength, C = 0), tt = "", rt = "", et = "", st = "", it = this.defaultPropsArray;
4426
+ o = 0, f += t.yOffset, f += I ? 1 : 0, y = W, I = !1, this._hasMaskedPath && (l = j, u = Y, E = _[l].points, d = E[u - 1], m = E[u], T = m.partialLength, C = 0), tt = "", rt = "", et = "", st = "", it = this.defaultPropsArray;
4427
4427
  else {
4428
4428
  if (this._hasMaskedPath) {
4429
4429
  if (Q !== p[v].line) {
@@ -4448,7 +4448,7 @@ function requireLottie() {
4448
4448
  z = p[v].an / 2 - p[v].add, a.translate(-z, 0, 0), a.translate(-r[0] * p[v].an * 5e-3, -r[1] * B * 0.01, 0);
4449
4449
  for (g = 0; g < P; g += 1)
4450
4450
  x = i[g].a, x.t.propType && (A = i[g].s, F = A.getMult(p[v].anIndexes[g], s.a[g].s.totalChars), (o !== 0 || t.j !== 0) && (this._hasMaskedPath ? F.length ? y += x.t.v * F[0] : y += x.t.v * F : F.length ? o += x.t.v * F[0] : o += x.t.v * F));
4451
- for (t.strokeWidthAnim && (J = t.sw || 0), t.strokeColorAnim && (t.sc ? $ = [t.sc[0], t.sc[1], t.sc[2]] : $ = [0, 0, 0]), t.fillColorAnim && t.fc && (W = [t.fc[0], t.fc[1], t.fc[2]]), g = 0; g < P; g += 1)
4451
+ for (t.strokeWidthAnim && (J = t.sw || 0), t.strokeColorAnim && (t.sc ? $ = [t.sc[0], t.sc[1], t.sc[2]] : $ = [0, 0, 0]), t.fillColorAnim && t.fc && (q = [t.fc[0], t.fc[1], t.fc[2]]), g = 0; g < P; g += 1)
4452
4452
  x = i[g].a, x.a.propType && (A = i[g].s, F = A.getMult(p[v].anIndexes[g], s.a[g].s.totalChars), F.length ? a.translate(-x.a.v[0] * F[0], -x.a.v[1] * F[1], x.a.v[2] * F[2]) : a.translate(-x.a.v[0] * F, -x.a.v[1] * F, x.a.v[2] * F));
4453
4453
  for (g = 0; g < P; g += 1)
4454
4454
  x = i[g].a, x.s.propType && (A = i[g].s, F = A.getMult(p[v].anIndexes[g], s.a[g].s.totalChars), F.length ? a.scale(1 + (x.s.v[0] - 1) * F[0], 1 + (x.s.v[1] - 1) * F[1], 1) : a.scale(1 + (x.s.v[0] - 1) * F, 1 + (x.s.v[1] - 1) * F, 1));
@@ -4459,13 +4459,13 @@ function requireLottie() {
4459
4459
  if (t.fillColorAnim && t.fc) {
4460
4460
  if (x.fc.propType)
4461
4461
  for (O = 0; O < 3; O += 1)
4462
- F.length ? W[O] += (x.fc.v[O] - W[O]) * F[0] : W[O] += (x.fc.v[O] - W[O]) * F;
4463
- x.fh.propType && (F.length ? W = addHueToRGB(W, x.fh.v * F[0]) : W = addHueToRGB(W, x.fh.v * F)), x.fs.propType && (F.length ? W = addSaturationToRGB(W, x.fs.v * F[0]) : W = addSaturationToRGB(W, x.fs.v * F)), x.fb.propType && (F.length ? W = addBrightnessToRGB(W, x.fb.v * F[0]) : W = addBrightnessToRGB(W, x.fb.v * F));
4462
+ F.length ? q[O] += (x.fc.v[O] - q[O]) * F[0] : q[O] += (x.fc.v[O] - q[O]) * F;
4463
+ x.fh.propType && (F.length ? q = addHueToRGB(q, x.fh.v * F[0]) : q = addHueToRGB(q, x.fh.v * F)), x.fs.propType && (F.length ? q = addSaturationToRGB(q, x.fs.v * F[0]) : q = addSaturationToRGB(q, x.fs.v * F)), x.fb.propType && (F.length ? q = addBrightnessToRGB(q, x.fb.v * F[0]) : q = addBrightnessToRGB(q, x.fb.v * F));
4464
4464
  }
4465
4465
  }
4466
4466
  for (g = 0; g < P; g += 1)
4467
4467
  x = i[g].a, x.p.propType && (A = i[g].s, F = A.getMult(p[v].anIndexes[g], s.a[g].s.totalChars), this._hasMaskedPath ? F.length ? a.translate(0, x.p.v[1] * F[0], -x.p.v[2] * F[1]) : a.translate(0, x.p.v[1] * F, -x.p.v[2] * F) : F.length ? a.translate(x.p.v[0] * F[0], x.p.v[1] * F[1], -x.p.v[2] * F[2]) : a.translate(x.p.v[0] * F, x.p.v[1] * F, -x.p.v[2] * F));
4468
- if (t.strokeWidthAnim && (et = J < 0 ? 0 : J), t.strokeColorAnim && (at = "rgb(" + Math.round($[0] * 255) + "," + Math.round($[1] * 255) + "," + Math.round($[2] * 255) + ")"), t.fillColorAnim && t.fc && (rt = "rgb(" + Math.round(W[0] * 255) + "," + Math.round(W[1] * 255) + "," + Math.round(W[2] * 255) + ")"), this._hasMaskedPath) {
4468
+ if (t.strokeWidthAnim && (et = J < 0 ? 0 : J), t.strokeColorAnim && (at = "rgb(" + Math.round($[0] * 255) + "," + Math.round($[1] * 255) + "," + Math.round($[2] * 255) + ")"), t.fillColorAnim && t.fc && (rt = "rgb(" + Math.round(q[0] * 255) + "," + Math.round(q[1] * 255) + "," + Math.round(q[2] * 255) + ")"), this._hasMaskedPath) {
4469
4469
  if (a.translate(0, -t.ls), a.translate(0, r[1] * B * 0.01 + f, 0), this._pathData.p.v) {
4470
4470
  G = (m.point[1] - d.point[1]) / (m.point[0] - d.point[0]);
4471
4471
  var lt = Math.atan(G) * 180 / Math.PI;
@@ -5968,10 +5968,10 @@ function requireLottie() {
5968
5968
  }();
5969
5969
  function _typeof$2(t) {
5970
5970
  "@babel/helpers - typeof";
5971
- return _typeof$2 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
5972
- return typeof e;
5973
- } : function(e) {
5974
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
5971
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? _typeof$2 = function(r) {
5972
+ return typeof r;
5973
+ } : _typeof$2 = function(r) {
5974
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
5975
5975
  }, _typeof$2(t);
5976
5976
  }
5977
5977
  function seedRandom(t, e) {
@@ -6051,10 +6051,10 @@ function requireLottie() {
6051
6051
  };
6052
6052
  function _typeof$1(t) {
6053
6053
  "@babel/helpers - typeof";
6054
- return _typeof$1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
6055
- return typeof e;
6056
- } : function(e) {
6057
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
6054
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? _typeof$1 = function(r) {
6055
+ return typeof r;
6056
+ } : _typeof$1 = function(r) {
6057
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
6058
6058
  }, _typeof$1(t);
6059
6059
  }
6060
6060
  var ExpressionManager = function() {
@@ -6257,7 +6257,7 @@ function requireLottie() {
6257
6257
  if (!elem.globalData.renderConfig.runExpressions)
6258
6258
  return noOp;
6259
6259
  var val = data.x, needsVelocity = /velocity(?![\w\d])/.test(val), _needsRandom = val.indexOf("random") !== -1, elemType = elem.data.ty, transform, $bm_transform, content, effect, thisProperty = property;
6260
- thisProperty._name = elem.data.nm, thisProperty.valueAtTime = thisProperty.getValueAtTime, Object.defineProperty(thisProperty, "value", {
6260
+ thisProperty.valueAtTime = thisProperty.getValueAtTime, Object.defineProperty(thisProperty, "value", {
6261
6261
  get: function() {
6262
6262
  return thisProperty.v;
6263
6263
  }
@@ -6452,7 +6452,7 @@ function requireLottie() {
6452
6452
  (!n || !("pv" in n)) && (n = t);
6453
6453
  var h = 1 / n.mult, o = n.pv * h, f = new Number(o);
6454
6454
  return f.value = o, r(f, n, "unidimensional"), function() {
6455
- return n.k && n.getValue(), o = n.v * h, f.value !== o && (f = new Number(o), f.value = o, f[0] = o, r(f, n, "unidimensional")), f;
6455
+ return n.k && n.getValue(), o = n.v * h, f.value !== o && (f = new Number(o), f.value = o, r(f, n, "unidimensional")), f;
6456
6456
  };
6457
6457
  }
6458
6458
  function s(n) {
@@ -7111,10 +7111,10 @@ function requireLottie() {
7111
7111
  }();
7112
7112
  function _typeof(t) {
7113
7113
  "@babel/helpers - typeof";
7114
- return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
7115
- return typeof e;
7116
- } : function(e) {
7117
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
7114
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? _typeof = function(r) {
7115
+ return typeof r;
7116
+ } : _typeof = function(r) {
7117
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
7118
7118
  }, _typeof(t);
7119
7119
  }
7120
7120
  var FootageInterface = /* @__PURE__ */ function() {
@@ -7661,7 +7661,7 @@ function requireLottie() {
7661
7661
  });
7662
7662
  }(lottie$2, lottie$2.exports)), lottie$2.exports;
7663
7663
  }
7664
- var lottieExports = /* @__PURE__ */ requireLottie();
7664
+ var lottieExports = requireLottie();
7665
7665
  const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), _sfc_main = {
7666
7666
  __name: "OcLottieAnimation",
7667
7667
  props: {
package/dist/index.js CHANGED
@@ -1862,9 +1862,9 @@ const It = { key: 1 }, Vt = {
1862
1862
  ]));
1863
1863
  }
1864
1864
  }), Ml = st(
1865
- () => import("./OcCodeBlock-CBdVqav7.js")
1865
+ () => import("./OcCodeBlock-uFQyGnLq.js")
1866
1866
  ), Ul = st(
1867
- () => import("./OcLottieAnimation-0mdksHMn.js")
1867
+ () => import("./OcLottieAnimation-BB7AK2AO.js")
1868
1868
  );
1869
1869
  export {
1870
1870
  Al as BarChart,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orchidui/dashboard",
3
3
  "description": "Orchid Dashboard UI , Dashboard Ui Library Vue 3 tailwind css",
4
- "version": "1.8.1-95",
4
+ "version": "1.8.1-97",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "vite build"
@@ -33,6 +33,6 @@
33
33
  "rollup": "npm:@rollup/wasm-node"
34
34
  },
35
35
  "dependencies": {
36
- "@orchidui/core": "1.8.1-95"
36
+ "@orchidui/core": "beta"
37
37
  }
38
- }
38
+ }
@@ -1,37 +0,0 @@
1
- import { defineComponent as o, ref as i, onMounted as r, createElementBlock as s, openBlock as c } from "vue";
2
- import { createHighlighter as u } from "shiki";
3
- import m from "./Dashboard/CodeBlock/customTheme.js";
4
- const p = Object.freeze(JSON.parse('{"displayName":"JSON","name":"json","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json"}},"name":"meta.structure.array.json","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json"},{"match":"[^]\\\\s]","name":"invalid.illegal.expected-array-separator.json"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.documentation.json"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.json"},{"captures":{"1":{"name":"punctuation.definition.comment.json"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[Ee][-+]?\\\\d+)?)?","name":"constant.numeric.json"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json"}},"name":"meta.structure.dictionary.json","patterns":[{"include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json"}},"name":"meta.structure.dictionary.value.json","patterns":[{"include":"#value"},{"match":"[^,\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json"}]},{"match":"[^}\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json"}},"name":"string.json support.type.property-name.json","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json"}},"name":"string.quoted.double.json","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"/\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.json"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json"}')), d = [
5
- p
6
- ], l = ["innerHTML"], h = /* @__PURE__ */ o({
7
- __name: "OcCodeBlock",
8
- props: {
9
- jsonObject: {
10
- type: String,
11
- required: !0
12
- },
13
- lang: {
14
- type: String,
15
- default: "json"
16
- }
17
- },
18
- setup(a) {
19
- const n = a, e = i();
20
- return r(async () => {
21
- const t = await u({
22
- themes: [m],
23
- langs: [d]
24
- });
25
- e.value = t.codeToHtml(n.jsonObject, {
26
- theme: "Custom Theme",
27
- lang: n.lang
28
- });
29
- }), (t, g) => (c(), s("div", {
30
- class: "p-5 rounded bg-oc-gray-900 code-block",
31
- innerHTML: e.value
32
- }, null, 8, l));
33
- }
34
- });
35
- export {
36
- h as default
37
- };