@pie-element/passage 7.1.1-next.11 → 7.1.2-next.0

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 (134) hide show
  1. package/configure.js +2 -0
  2. package/controller.js +1 -0
  3. package/dist/author/common.d.ts +36 -0
  4. package/dist/author/common.js +56 -0
  5. package/dist/author/defaults.d.ts +175 -0
  6. package/dist/author/defaults.js +113 -0
  7. package/dist/author/design.d.ts +28 -0
  8. package/dist/author/design.js +120 -0
  9. package/dist/author/index.d.ts +36 -0
  10. package/dist/author/index.js +66 -0
  11. package/dist/author/passage.d.ts +27 -0
  12. package/dist/author/passage.js +127 -0
  13. package/dist/browser/author/index.js +39774 -0
  14. package/dist/browser/author/index.js.map +1 -0
  15. package/dist/browser/controller/index.js +64 -0
  16. package/dist/browser/controller/index.js.map +1 -0
  17. package/dist/browser/debounce-CUPmq2t-.js +86 -0
  18. package/dist/browser/debounce-CUPmq2t-.js.map +1 -0
  19. package/dist/browser/delivery/index.js +117 -0
  20. package/dist/browser/delivery/index.js.map +1 -0
  21. package/dist/browser/dist-C_PfhNd9.js +9602 -0
  22. package/dist/browser/dist-C_PfhNd9.js.map +1 -0
  23. package/dist/browser/isEmpty-xEtDXvJL.js +143 -0
  24. package/dist/browser/isEmpty-xEtDXvJL.js.map +1 -0
  25. package/dist/browser/isObjectLike-qb18ZQkj.js +38 -0
  26. package/dist/browser/isObjectLike-qb18ZQkj.js.map +1 -0
  27. package/dist/browser/passage.css +2 -0
  28. package/dist/browser/print/index.js +48 -0
  29. package/dist/browser/print/index.js.map +1 -0
  30. package/dist/browser/stimulus-tabs-CMox8txJ.js +218 -0
  31. package/dist/browser/stimulus-tabs-CMox8txJ.js.map +1 -0
  32. package/dist/controller/defaults.d.ts +23 -0
  33. package/dist/controller/defaults.js +17 -0
  34. package/dist/controller/index.d.ts +18 -0
  35. package/dist/controller/index.js +50 -0
  36. package/dist/delivery/index.d.ts +22 -0
  37. package/dist/delivery/index.js +83 -0
  38. package/dist/delivery/stimulus-tabs.d.ts +21 -0
  39. package/dist/delivery/stimulus-tabs.js +220 -0
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.iife.d.ts +8 -0
  42. package/dist/index.iife.js +145 -0
  43. package/dist/index.js +2 -0
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +50 -0
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +7 -0
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
  87. package/dist/print/index.d.ts +15 -0
  88. package/dist/print/index.js +47 -0
  89. package/package.json +83 -19
  90. package/CHANGELOG.json +0 -227
  91. package/CHANGELOG.md +0 -1452
  92. package/LICENSE.md +0 -5
  93. package/README.md +0 -3
  94. package/configure/CHANGELOG.md +0 -672
  95. package/configure/lib/common.js +0 -74
  96. package/configure/lib/common.js.map +0 -1
  97. package/configure/lib/defaults.js +0 -174
  98. package/configure/lib/defaults.js.map +0 -1
  99. package/configure/lib/design.js +0 -185
  100. package/configure/lib/design.js.map +0 -1
  101. package/configure/lib/index.js +0 -86
  102. package/configure/lib/index.js.map +0 -1
  103. package/configure/lib/passage.js +0 -194
  104. package/configure/lib/passage.js.map +0 -1
  105. package/configure/package.json +0 -23
  106. package/controller/CHANGELOG.json +0 -1
  107. package/controller/CHANGELOG.md +0 -109
  108. package/controller/lib/defaults.js +0 -23
  109. package/controller/lib/defaults.js.map +0 -1
  110. package/controller/lib/index.js +0 -80
  111. package/controller/lib/index.js.map +0 -1
  112. package/controller/package.json +0 -13
  113. package/docs/config-schema.json +0 -1325
  114. package/docs/config-schema.json.md +0 -974
  115. package/docs/demo/config.js +0 -8
  116. package/docs/demo/generate.js +0 -32
  117. package/docs/demo/index.html +0 -1
  118. package/docs/pie-schema.json +0 -775
  119. package/docs/pie-schema.json.md +0 -561
  120. package/lib/index.js +0 -143
  121. package/lib/index.js.map +0 -1
  122. package/lib/print.js +0 -78
  123. package/lib/print.js.map +0 -1
  124. package/lib/stimulus-tabs.js +0 -323
  125. package/lib/stimulus-tabs.js.map +0 -1
  126. package/module/configure.js +0 -1
  127. package/module/controller.js +0 -920
  128. package/module/demo.js +0 -57
  129. package/module/element.js +0 -1
  130. package/module/index.html +0 -21
  131. package/module/manifest.json +0 -10
  132. package/module/print-demo.js +0 -95
  133. package/module/print.html +0 -18
  134. package/module/print.js +0 -1
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ import e from "./delivery/index.js";
2
+ export { e as default };
@@ -0,0 +1,6 @@
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 };
@@ -0,0 +1,6 @@
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 };
@@ -0,0 +1,6 @@
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 };
@@ -0,0 +1,6 @@
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 };
@@ -0,0 +1,5 @@
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 };
@@ -0,0 +1,6 @@
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 };
@@ -0,0 +1,10 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,11 @@
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 };
@@ -0,0 +1,11 @@
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 };
@@ -0,0 +1,12 @@
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 };
@@ -0,0 +1,8 @@
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 };
@@ -0,0 +1,8 @@
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 };
@@ -0,0 +1,5 @@
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 };
@@ -0,0 +1,4 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,14 @@
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 };
@@ -0,0 +1,23 @@
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 };
@@ -0,0 +1,6 @@
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 };
@@ -0,0 +1,11 @@
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 };
@@ -0,0 +1,8 @@
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 };
@@ -0,0 +1,5 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,7 @@
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 };
@@ -0,0 +1,8 @@
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 };
@@ -0,0 +1,5 @@
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 };
@@ -0,0 +1,15 @@
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 };
@@ -0,0 +1,8 @@
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 };
@@ -0,0 +1,50 @@
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 };
@@ -0,0 +1,10 @@
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 };
@@ -0,0 +1,4 @@
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 };
@@ -0,0 +1,8 @@
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 };
@@ -0,0 +1,6 @@
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 };
@@ -0,0 +1,21 @@
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 };
@@ -0,0 +1,11 @@
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 };
@@ -0,0 +1,7 @@
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 };
@@ -0,0 +1,7 @@
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 };
@@ -0,0 +1,6 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,7 @@
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 };
@@ -0,0 +1,7 @@
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 };
@@ -0,0 +1,6 @@
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 };
@@ -0,0 +1,19 @@
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 };
@@ -0,0 +1,15 @@
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
+ }
@@ -0,0 +1,47 @@
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 };