@pie-element/passage 7.1.1-next.0 → 7.1.1-next.101

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 (113) hide show
  1. package/CHANGELOG.json +227 -0
  2. package/CHANGELOG.md +1452 -0
  3. package/LICENSE.md +5 -0
  4. package/README.md +3 -0
  5. package/configure/CHANGELOG.md +672 -0
  6. package/configure/lib/common.js +74 -0
  7. package/configure/lib/common.js.map +1 -0
  8. package/configure/lib/defaults.js +174 -0
  9. package/configure/lib/defaults.js.map +1 -0
  10. package/configure/lib/design.js +185 -0
  11. package/configure/lib/design.js.map +1 -0
  12. package/configure/lib/index.js +87 -0
  13. package/configure/lib/index.js.map +1 -0
  14. package/configure/lib/passage.js +194 -0
  15. package/configure/lib/passage.js.map +1 -0
  16. package/configure/package.json +23 -0
  17. package/controller/CHANGELOG.json +1 -0
  18. package/controller/CHANGELOG.md +109 -0
  19. package/controller/lib/defaults.js +23 -0
  20. package/controller/lib/defaults.js.map +1 -0
  21. package/controller/lib/index.js +80 -0
  22. package/controller/lib/index.js.map +1 -0
  23. package/controller/package.json +13 -0
  24. package/docs/config-schema.json +1325 -0
  25. package/docs/config-schema.json.md +974 -0
  26. package/docs/demo/config.js +8 -0
  27. package/docs/demo/generate.js +32 -0
  28. package/docs/demo/index.html +1 -0
  29. package/docs/pie-schema.json +775 -0
  30. package/docs/pie-schema.json.md +561 -0
  31. package/lib/index.js +144 -0
  32. package/lib/index.js.map +1 -0
  33. package/lib/print.js +78 -0
  34. package/lib/print.js.map +1 -0
  35. package/lib/stimulus-tabs.js +427 -0
  36. package/lib/stimulus-tabs.js.map +1 -0
  37. package/module/configure.js +1 -0
  38. package/module/controller.js +920 -0
  39. package/module/demo.js +57 -0
  40. package/module/element.js +1 -0
  41. package/module/index.html +21 -0
  42. package/module/manifest.json +10 -0
  43. package/module/print-demo.js +95 -0
  44. package/module/print.html +18 -0
  45. package/module/print.js +1 -0
  46. package/package.json +19 -56
  47. package/dist/author/common.d.ts +0 -36
  48. package/dist/author/common.js +0 -56
  49. package/dist/author/defaults.d.ts +0 -175
  50. package/dist/author/defaults.js +0 -113
  51. package/dist/author/design.d.ts +0 -28
  52. package/dist/author/design.js +0 -120
  53. package/dist/author/index.d.ts +0 -36
  54. package/dist/author/index.js +0 -66
  55. package/dist/author/passage.d.ts +0 -27
  56. package/dist/author/passage.js +0 -127
  57. package/dist/controller/defaults.d.ts +0 -23
  58. package/dist/controller/defaults.js +0 -17
  59. package/dist/controller/index.d.ts +0 -18
  60. package/dist/controller/index.js +0 -50
  61. package/dist/delivery/index.d.ts +0 -22
  62. package/dist/delivery/index.js +0 -83
  63. package/dist/delivery/stimulus-tabs.d.ts +0 -21
  64. package/dist/delivery/stimulus-tabs.js +0 -220
  65. package/dist/index.d.ts +0 -1
  66. package/dist/index.iife.d.ts +0 -8
  67. package/dist/index.iife.js +0 -145
  68. package/dist/index.js +0 -2
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +0 -8
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +0 -8
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +0 -50
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +0 -7
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +0 -19
  112. package/dist/print/index.d.ts +0 -15
  113. package/dist/print/index.js +0 -47
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- import e from "./delivery/index.js";
2
- export { e as default };
@@ -1,6 +0,0 @@
1
- import e from "./_root.js";
2
- import t from "./_getNative.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js
4
- var n = t(e, "DataView");
5
- //#endregion
6
- export { n as default };
@@ -1,6 +0,0 @@
1
- import e from "./_root.js";
2
- import t from "./_getNative.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
4
- var n = t(e, "Map");
5
- //#endregion
6
- export { n as default };
@@ -1,6 +0,0 @@
1
- import e from "./_root.js";
2
- import t from "./_getNative.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js
4
- var n = t(e, "Promise");
5
- //#endregion
6
- export { n as default };
@@ -1,6 +0,0 @@
1
- import e from "./_root.js";
2
- import t from "./_getNative.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js
4
- var n = t(e, "Set");
5
- //#endregion
6
- export { n as default };
@@ -1,5 +0,0 @@
1
- import e from "./_root.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
3
- var t = e.Symbol;
4
- //#endregion
5
- export { t as default };
@@ -1,6 +0,0 @@
1
- import e from "./_root.js";
2
- import t from "./_getNative.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js
4
- var n = t(e, "WeakMap");
5
- //#endregion
6
- export { n as default };
@@ -1,10 +0,0 @@
1
- import e from "./_Symbol.js";
2
- import t from "./_getRawTag.js";
3
- import n from "./_objectToString.js";
4
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
5
- var r = "[object Null]", i = "[object Undefined]", a = e ? e.toStringTag : void 0;
6
- function o(e) {
7
- return e == null ? e === void 0 ? i : r : a && a in Object(e) ? t(e) : n(e);
8
- }
9
- //#endregion
10
- export { o as default };
@@ -1,9 +0,0 @@
1
- import e from "./_baseGetTag.js";
2
- import t from "./isObjectLike.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js
4
- var n = "[object Arguments]";
5
- function r(r) {
6
- return t(r) && e(r) == n;
7
- }
8
- //#endregion
9
- export { r as default };
@@ -1,11 +0,0 @@
1
- import e from "./isObject.js";
2
- import t from "./isFunction.js";
3
- import n from "./_isMasked.js";
4
- import r from "./_toSource.js";
5
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
6
- var i = /[\\^$.*+?()[\]{}|]/g, a = /^\[object .+?Constructor\]$/, o = Function.prototype, s = Object.prototype, c = o.toString, l = s.hasOwnProperty, u = RegExp("^" + c.call(l).replace(i, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
7
- function d(i) {
8
- return !e(i) || n(i) ? !1 : (t(i) ? u : a).test(r(i));
9
- }
10
- //#endregion
11
- export { d as default };
@@ -1,11 +0,0 @@
1
- import e from "./_baseGetTag.js";
2
- import t from "./isObjectLike.js";
3
- import n from "./isLength.js";
4
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js
5
- var r = "[object Arguments]", i = "[object Array]", a = "[object Boolean]", o = "[object Date]", s = "[object Error]", c = "[object Function]", l = "[object Map]", u = "[object Number]", d = "[object Object]", f = "[object RegExp]", p = "[object Set]", m = "[object String]", h = "[object WeakMap]", g = "[object ArrayBuffer]", _ = "[object DataView]", v = "[object Float32Array]", y = "[object Float64Array]", b = "[object Int8Array]", x = "[object Int16Array]", S = "[object Int32Array]", C = "[object Uint8Array]", w = "[object Uint8ClampedArray]", T = "[object Uint16Array]", E = "[object Uint32Array]", D = {};
6
- D[v] = D[y] = D[b] = D[x] = D[S] = D[C] = D[w] = D[T] = D[E] = !0, D[r] = D[i] = D[g] = D[a] = D[_] = D[o] = D[s] = D[c] = D[l] = D[u] = D[d] = D[f] = D[p] = D[m] = D[h] = !1;
7
- function O(r) {
8
- return t(r) && n(r.length) && !!D[e(r)];
9
- }
10
- //#endregion
11
- export { O as default };
@@ -1,12 +0,0 @@
1
- import e from "./_isPrototype.js";
2
- import t from "./_nativeKeys.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js
4
- var n = Object.prototype.hasOwnProperty;
5
- function r(r) {
6
- if (!e(r)) return t(r);
7
- var i = [];
8
- for (var a in Object(r)) n.call(r, a) && a != "constructor" && i.push(a);
9
- return i;
10
- }
11
- //#endregion
12
- export { r as default };
@@ -1,8 +0,0 @@
1
- import e from "./_trimmedEndIndex.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js
3
- var t = /^\s+/;
4
- function n(n) {
5
- return n && n.slice(0, e(n) + 1).replace(t, "");
6
- }
7
- //#endregion
8
- export { n as default };
@@ -1,8 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
2
- function e(e) {
3
- return function(t) {
4
- return e(t);
5
- };
6
- }
7
- //#endregion
8
- export { e as default };
@@ -1,5 +0,0 @@
1
- import e from "./_root.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
3
- var t = e["__core-js_shared__"];
4
- //#endregion
5
- export { t as default };
@@ -1,4 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
2
- var e = typeof global == "object" && global && global.Object === Object && global;
3
- //#endregion
4
- export { e as default };
@@ -1,9 +0,0 @@
1
- import e from "./_baseIsNative.js";
2
- import t from "./_getValue.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
4
- function n(n, r) {
5
- var i = t(n, r);
6
- return e(i) ? i : void 0;
7
- }
8
- //#endregion
9
- export { n as default };
@@ -1,14 +0,0 @@
1
- import e from "./_Symbol.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js
3
- var t = Object.prototype, n = t.hasOwnProperty, r = t.toString, i = e ? e.toStringTag : void 0;
4
- function a(e) {
5
- var t = n.call(e, i), a = e[i];
6
- try {
7
- e[i] = void 0;
8
- var o = !0;
9
- } catch {}
10
- var s = r.call(e);
11
- return o && (t ? e[i] = a : delete e[i]), s;
12
- }
13
- //#endregion
14
- export { a as default };
@@ -1,23 +0,0 @@
1
- import e from "./_baseGetTag.js";
2
- import t from "./_toSource.js";
3
- import n from "./_WeakMap.js";
4
- import r from "./_Map.js";
5
- import i from "./_DataView.js";
6
- import a from "./_Promise.js";
7
- import o from "./_Set.js";
8
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js
9
- var s = "[object Map]", c = "[object Object]", l = "[object Promise]", u = "[object Set]", d = "[object WeakMap]", f = "[object DataView]", p = t(i), m = t(r), h = t(a), g = t(o), _ = t(n), v = e;
10
- (i && v(new i(/* @__PURE__ */ new ArrayBuffer(1))) != f || r && v(new r()) != s || a && v(a.resolve()) != l || o && v(new o()) != u || n && v(new n()) != d) && (v = function(n) {
11
- var r = e(n), i = r == c ? n.constructor : void 0, a = i ? t(i) : "";
12
- if (a) switch (a) {
13
- case p: return f;
14
- case m: return s;
15
- case h: return l;
16
- case g: return u;
17
- case _: return d;
18
- }
19
- return r;
20
- });
21
- var y = v;
22
- //#endregion
23
- export { y as default };
@@ -1,6 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
2
- function e(e, t) {
3
- return e?.[t];
4
- }
5
- //#endregion
6
- export { e as default };
@@ -1,11 +0,0 @@
1
- import e from "./_coreJsData.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js
3
- var t = function() {
4
- var t = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
5
- return t ? "Symbol(src)_1." + t : "";
6
- }();
7
- function n(e) {
8
- return !!t && t in e;
9
- }
10
- //#endregion
11
- export { n as default };
@@ -1,8 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js
2
- var e = Object.prototype;
3
- function t(t) {
4
- var n = t && t.constructor;
5
- return t === (typeof n == "function" && n.prototype || e);
6
- }
7
- //#endregion
8
- export { t as default };
@@ -1,5 +0,0 @@
1
- import e from "./_overArg.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js
3
- var t = e(Object.keys, Object);
4
- //#endregion
5
- export { t as default };
@@ -1,9 +0,0 @@
1
- import e from "./_freeGlobal.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js
3
- var t = typeof exports == "object" && exports && !exports.nodeType && exports, n = t && typeof module == "object" && module && !module.nodeType && module, r = n && n.exports === t && e.process, i = function() {
4
- try {
5
- return n && n.require && n.require("util").types || r && r.binding && r.binding("util");
6
- } catch {}
7
- }();
8
- //#endregion
9
- export { i as default };
@@ -1,7 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
2
- var e = Object.prototype.toString;
3
- function t(t) {
4
- return e.call(t);
5
- }
6
- //#endregion
7
- export { t as default };
@@ -1,8 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js
2
- function e(e, t) {
3
- return function(n) {
4
- return e(t(n));
5
- };
6
- }
7
- //#endregion
8
- export { e as default };
@@ -1,5 +0,0 @@
1
- import e from "./_freeGlobal.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js
3
- var t = typeof self == "object" && self && self.Object === Object && self, n = e || t || Function("return this")();
4
- //#endregion
5
- export { n as default };
@@ -1,15 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
2
- var e = Function.prototype.toString;
3
- function t(t) {
4
- if (t != null) {
5
- try {
6
- return e.call(t);
7
- } catch {}
8
- try {
9
- return t + "";
10
- } catch {}
11
- }
12
- return "";
13
- }
14
- //#endregion
15
- export { t as default };
@@ -1,8 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js
2
- var e = /\s/;
3
- function t(t) {
4
- for (var n = t.length; n-- && e.test(t.charAt(n)););
5
- return n;
6
- }
7
- //#endregion
8
- export { t as default };
@@ -1,50 +0,0 @@
1
- import e from "./isObject.js";
2
- import t from "./toNumber.js";
3
- import n from "./now.js";
4
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js
5
- var r = "Expected a function", i = Math.max, a = Math.min;
6
- function o(o, s, c) {
7
- var l, u, d, f, p, m, h = 0, g = !1, _ = !1, v = !0;
8
- if (typeof o != "function") throw TypeError(r);
9
- s = t(s) || 0, e(c) && (g = !!c.leading, _ = "maxWait" in c, d = _ ? i(t(c.maxWait) || 0, s) : d, v = "trailing" in c ? !!c.trailing : v);
10
- function y(e) {
11
- var t = l, n = u;
12
- return l = u = void 0, h = e, f = o.apply(n, t), f;
13
- }
14
- function b(e) {
15
- return h = e, p = setTimeout(C, s), g ? y(e) : f;
16
- }
17
- function x(e) {
18
- var t = e - m, n = e - h, r = s - t;
19
- return _ ? a(r, d - n) : r;
20
- }
21
- function S(e) {
22
- var t = e - m, n = e - h;
23
- return m === void 0 || t >= s || t < 0 || _ && n >= d;
24
- }
25
- function C() {
26
- var e = n();
27
- if (S(e)) return w(e);
28
- p = setTimeout(C, x(e));
29
- }
30
- function w(e) {
31
- return p = void 0, v && l ? y(e) : (l = u = void 0, f);
32
- }
33
- function T() {
34
- p !== void 0 && clearTimeout(p), h = 0, l = m = u = p = void 0;
35
- }
36
- function E() {
37
- return p === void 0 ? f : w(n());
38
- }
39
- function D() {
40
- var e = n(), t = S(e);
41
- if (l = arguments, u = this, m = e, t) {
42
- if (p === void 0) return b(m);
43
- if (_) return clearTimeout(p), p = setTimeout(C, s), y(m);
44
- }
45
- return p === void 0 && (p = setTimeout(C, s)), f;
46
- }
47
- return D.cancel = T, D.flush = E, D;
48
- }
49
- //#endregion
50
- export { o as default };
@@ -1,10 +0,0 @@
1
- import e from "./isObjectLike.js";
2
- import t from "./_baseIsArguments.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js
4
- var n = Object.prototype, r = n.hasOwnProperty, i = n.propertyIsEnumerable, a = t(function() {
5
- return arguments;
6
- }()) ? t : function(t) {
7
- return e(t) && r.call(t, "callee") && !i.call(t, "callee");
8
- };
9
- //#endregion
10
- export { a as default };
@@ -1,4 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
2
- var e = Array.isArray;
3
- //#endregion
4
- export { e as default };
@@ -1,8 +0,0 @@
1
- import e from "./isFunction.js";
2
- import t from "./isLength.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
4
- function n(n) {
5
- return n != null && t(n.length) && !e(n);
6
- }
7
- //#endregion
8
- export { n as default };
@@ -1,6 +0,0 @@
1
- import e from "./_root.js";
2
- import t from "./stubFalse.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js
4
- var n = typeof exports == "object" && exports && !exports.nodeType && exports, r = n && typeof module == "object" && module && !module.nodeType && module, i = r && r.exports === n ? e.Buffer : void 0, a = (i ? i.isBuffer : void 0) || t;
5
- //#endregion
6
- export { a as default };
@@ -1,21 +0,0 @@
1
- import e from "./isArray.js";
2
- import t from "./isArrayLike.js";
3
- import n from "./_isPrototype.js";
4
- import r from "./isArguments.js";
5
- import i from "./isBuffer.js";
6
- import a from "./isTypedArray.js";
7
- import o from "./_baseKeys.js";
8
- import s from "./_getTag.js";
9
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js
10
- var c = "[object Map]", l = "[object Set]", u = Object.prototype.hasOwnProperty;
11
- function d(d) {
12
- if (d == null) return !0;
13
- if (t(d) && (e(d) || typeof d == "string" || typeof d.splice == "function" || i(d) || a(d) || r(d))) return !d.length;
14
- var f = s(d);
15
- if (f == c || f == l) return !d.size;
16
- if (n(d)) return !o(d).length;
17
- for (var p in d) if (u.call(d, p)) return !1;
18
- return !0;
19
- }
20
- //#endregion
21
- export { d as default };
@@ -1,11 +0,0 @@
1
- import e from "./_baseGetTag.js";
2
- import t from "./isObject.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
4
- var n = "[object AsyncFunction]", r = "[object Function]", i = "[object GeneratorFunction]", a = "[object Proxy]";
5
- function o(o) {
6
- if (!t(o)) return !1;
7
- var s = e(o);
8
- return s == r || s == i || s == n || s == a;
9
- }
10
- //#endregion
11
- export { o as default };
@@ -1,7 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
2
- var e = 9007199254740991;
3
- function t(t) {
4
- return typeof t == "number" && t > -1 && t % 1 == 0 && t <= e;
5
- }
6
- //#endregion
7
- export { t as default };
@@ -1,7 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
2
- function e(e) {
3
- var t = typeof e;
4
- return e != null && (t == "object" || t == "function");
5
- }
6
- //#endregion
7
- export { e as default };
@@ -1,6 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
2
- function e(e) {
3
- return typeof e == "object" && !!e;
4
- }
5
- //#endregion
6
- export { e as default };
@@ -1,9 +0,0 @@
1
- import e from "./_baseGetTag.js";
2
- import t from "./isObjectLike.js";
3
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
4
- var n = "[object Symbol]";
5
- function r(r) {
6
- return typeof r == "symbol" || t(r) && e(r) == n;
7
- }
8
- //#endregion
9
- export { r as default };
@@ -1,7 +0,0 @@
1
- import e from "./_baseIsTypedArray.js";
2
- import t from "./_baseUnary.js";
3
- import n from "./_nodeUtil.js";
4
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js
5
- var r = n && n.isTypedArray, i = r ? t(r) : e;
6
- //#endregion
7
- export { i as default };
@@ -1,7 +0,0 @@
1
- import e from "./_root.js";
2
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js
3
- var t = function() {
4
- return e.Date.now();
5
- };
6
- //#endregion
7
- export { t as default };
@@ -1,6 +0,0 @@
1
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js
2
- function e() {
3
- return !1;
4
- }
5
- //#endregion
6
- export { e as default };
@@ -1,19 +0,0 @@
1
- import e from "./isSymbol.js";
2
- import t from "./_baseTrim.js";
3
- import n from "./isObject.js";
4
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
5
- var r = NaN, i = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, o = /^0o[0-7]+$/i, s = parseInt;
6
- function c(c) {
7
- if (typeof c == "number") return c;
8
- if (e(c)) return r;
9
- if (n(c)) {
10
- var l = typeof c.valueOf == "function" ? c.valueOf() : c;
11
- c = n(l) ? l + "" : l;
12
- }
13
- if (typeof c != "string") return c === 0 ? c : +c;
14
- c = t(c);
15
- var u = a.test(c);
16
- return u || o.test(c) ? s(c.slice(2), u ? 2 : 8) : i.test(c) ? r : +c;
17
- }
18
- //#endregion
19
- export { c as default };
@@ -1,15 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/passage/src/print.js
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- export default class PassagePrint extends HTMLElement {
10
- constructor();
11
- set model(s: any);
12
- set options(o: any);
13
- connectedCallback(): void;
14
- disconnectedCallback(): void;
15
- }
@@ -1,47 +0,0 @@
1
- import e from "../delivery/stimulus-tabs.js";
2
- import t from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js";
3
- import n from "react";
4
- import { createRoot as r } from "react-dom/client";
5
- import i from "debug";
6
- //#region src/print/index.tsx
7
- var a = i("pie-element:passage:print"), o = (e) => e != null, s = (e, t) => o(e) ? e : t, c = (e, t) => {
8
- let n = t.role === "instructor", r = s(e.teacherInstructionsEnabled, !0), i = s(e.titleEnabled, !0), a = s(e.authorEnabled, !1), o = s(e.subtitleEnabled, !0), c = s(e.textEnabled, !0);
9
- return e.passages.map((e, t) => ({
10
- id: t,
11
- teacherInstructions: s(e.teacherInstructionsEnabled, r) && n && e.teacherInstructions || "",
12
- label: e.title || `Passage ${t + 1}`,
13
- title: s(e.titleEnabled, i) && e.title || "",
14
- author: s(e.authorEnabled, a) && e.author || "",
15
- subtitle: s(e.subtitleEnabled, o) && e.subtitle || "",
16
- text: s(e.textEnabled, c) && e.text || ""
17
- }));
18
- }, l = class extends HTMLElement {
19
- constructor() {
20
- super(), this._model = null, this._options = null, this._session = [], this._root = null, this._rerender = t(() => {
21
- if (this._model && this._session) {
22
- if (this._model.passages && this._model.passages.length > 0) {
23
- let t = c(this._model, this._options), i = n.createElement(e, {
24
- disabledTabs: !0,
25
- tabs: t
26
- });
27
- this._root ||= r(this), this._root.render(i);
28
- }
29
- } else a("skip");
30
- }, 50, {
31
- leading: !1,
32
- trailing: !0
33
- });
34
- }
35
- set model(e) {
36
- this._model = e, this._rerender();
37
- }
38
- set options(e) {
39
- this._options = e;
40
- }
41
- connectedCallback() {}
42
- disconnectedCallback() {
43
- this._root && this._root.unmount();
44
- }
45
- };
46
- //#endregion
47
- export { l as default };