@venite/components 0.16.21 → 0.16.22-s

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/dist/cjs/{index-c9b940c7.js → book-1a92678a.js} +2 -96
  2. package/dist/cjs/{change-deff223a.js → change-cdb1e8c0.js} +0 -0
  3. package/dist/cjs/{cursor-849a5372.js → cursor-81bfd01e.js} +0 -0
  4. package/dist/cjs/{heading-fae3ce98.js → heading-5afc2b24.js} +2 -2
  5. package/dist/cjs/{image-41000c7b.js → image-3bee3e73.js} +2 -2
  6. package/dist/cjs/ion-button_13.cjs.entry.js +7 -8
  7. package/dist/cjs/ion-card-content_6.cjs.entry.js +3 -4
  8. package/dist/cjs/ion-checkbox_3.cjs.entry.js +2 -3
  9. package/dist/cjs/ion-input_2.cjs.entry.js +3 -3
  10. package/dist/cjs/ion-segment_16.cjs.entry.js +20 -20
  11. package/dist/cjs/ldf-day-name_5.cjs.entry.js +73 -71
  12. package/dist/cjs/ldf-editable-add-block-menu.cjs.entry.js +9 -10
  13. package/dist/cjs/ldf-editable-condition-piece.cjs.entry.js +6 -7
  14. package/dist/cjs/ldf-editable-condition.cjs.entry.js +4 -5
  15. package/dist/cjs/ldf-editable-filter-documents.cjs.entry.js +10 -11
  16. package/dist/cjs/ldf-editable-lookup_2.cjs.entry.js +9 -10
  17. package/dist/cjs/ldf-editable-metadata.cjs.entry.js +10 -11
  18. package/dist/cjs/ldf-editable-preference-option.cjs.entry.js +3 -4
  19. package/dist/cjs/ldf-editable-preference.cjs.entry.js +3 -4
  20. package/dist/cjs/ldf-editable-preferences.cjs.entry.js +3 -4
  21. package/dist/cjs/ldf-editable-string-list.cjs.entry.js +2 -3
  22. package/dist/cjs/ldf-editor.cjs.entry.js +14 -14
  23. package/dist/cjs/{option-6fb78f5c.js → option-a078d432.js} +17 -5
  24. package/dist/cjs/{preference-1365e161.js → preference-a4bd51c4.js} +0 -0
  25. package/dist/cjs/{refrain-f51fd88d.js → refrain-91fb446b.js} +2 -2
  26. package/dist/cjs/{rubric-ad2f926f.js → rubric-0afbe4c0.js} +485 -16
  27. package/dist/cjs/{specific-class-071762e7.js → specific-class-76b4d343.js} +5 -5
  28. package/dist/cjs/{text-8d8d32e7.js → text-5edb80f3.js} +2 -2
  29. package/dist/collection/components/prayers-and-thanksgivings/dist/prayers-and-thanksgivings.js +5 -5
  30. package/dist/collection/components/prayers-and-thanksgivings/prayers-and-thanksgivings.js +5 -5
  31. package/dist/collection/components/text/text.i18n.es.json +2 -1
  32. package/dist/collection/i18n/text.i18n.es.json +2 -1
  33. package/dist/esm/{index-2e220677.js → book-31b8cdde.js} +2 -96
  34. package/dist/esm/{change-b077b77c.js → change-ea574d32.js} +0 -0
  35. package/dist/esm/{cursor-cb97384b.js → cursor-0e47f111.js} +0 -0
  36. package/dist/esm/{heading-c03fbe8b.js → heading-cc5ffa8a.js} +1 -1
  37. package/dist/esm/{image-a1336f0a.js → image-c6a3f0c5.js} +1 -1
  38. package/dist/esm/ion-button_13.entry.js +7 -8
  39. package/dist/esm/ion-card-content_6.entry.js +3 -4
  40. package/dist/esm/ion-checkbox_3.entry.js +2 -3
  41. package/dist/esm/ion-input_2.entry.js +3 -3
  42. package/dist/esm/ion-segment_16.entry.js +7 -7
  43. package/dist/esm/ldf-day-name_5.entry.js +9 -7
  44. package/dist/esm/ldf-editable-add-block-menu.entry.js +7 -8
  45. package/dist/esm/ldf-editable-condition-piece.entry.js +2 -3
  46. package/dist/esm/ldf-editable-condition.entry.js +2 -3
  47. package/dist/esm/ldf-editable-filter-documents.entry.js +2 -3
  48. package/dist/esm/ldf-editable-lookup_2.entry.js +8 -9
  49. package/dist/esm/ldf-editable-metadata.entry.js +8 -9
  50. package/dist/esm/ldf-editable-preference-option.entry.js +3 -4
  51. package/dist/esm/ldf-editable-preference.entry.js +3 -4
  52. package/dist/esm/ldf-editable-preferences.entry.js +3 -4
  53. package/dist/esm/ldf-editable-string-list.entry.js +2 -3
  54. package/dist/esm/ldf-editor.entry.js +3 -3
  55. package/dist/esm/{option-e130a4b2.js → option-c16af13a.js} +16 -4
  56. package/dist/esm/{preference-60cdfde3.js → preference-d070d4cb.js} +0 -0
  57. package/dist/esm/{refrain-9b9f05cc.js → refrain-75a412cb.js} +1 -1
  58. package/dist/esm/{rubric-0d2b870d.js → rubric-f779c469.js} +478 -9
  59. package/dist/esm/{specific-class-3f0e0c45.js → specific-class-09c98625.js} +5 -5
  60. package/dist/esm/{text-801eb7de.js → text-ed75fbd4.js} +1 -1
  61. package/dist/ldf/i18n/text.i18n.es.json +2 -1
  62. package/dist/ldf/ldf.esm.js +1 -1
  63. package/dist/ldf/p-005ad01b.entry.js +1 -0
  64. package/dist/ldf/p-00e5ee6b.js +1 -0
  65. package/dist/ldf/p-03afc8cb.entry.js +1 -0
  66. package/dist/ldf/{p-0d9b71a8.entry.js → p-23af1bc3.entry.js} +1 -1
  67. package/dist/ldf/p-2ae548b3.entry.js +1 -0
  68. package/dist/ldf/p-2c39ce94.entry.js +1 -0
  69. package/dist/ldf/p-304a2bdb.entry.js +1 -0
  70. package/dist/ldf/p-476327d6.js +1 -0
  71. package/dist/ldf/p-4aa9a6f2.js +1 -0
  72. package/dist/ldf/{p-6a68fa7b.js → p-5066eaa5.js} +0 -0
  73. package/dist/ldf/p-594fa9d4.entry.js +1 -0
  74. package/dist/ldf/{p-93911ad1.js → p-5b43e6be.js} +1 -1
  75. package/dist/ldf/p-65563763.entry.js +1 -0
  76. package/dist/ldf/p-65d26c45.js +1 -0
  77. package/dist/ldf/p-65ea7ab3.entry.js +1 -0
  78. package/dist/ldf/p-7a9ab85c.entry.js +1 -0
  79. package/dist/ldf/p-800a115c.entry.js +1 -0
  80. package/dist/ldf/{p-12d81208.js → p-8ec26587.js} +0 -0
  81. package/dist/ldf/{p-05ac8045.entry.js → p-95650471.entry.js} +1 -1
  82. package/dist/ldf/{p-2a08ff25.js → p-991c0877.js} +0 -0
  83. package/dist/ldf/p-9c1973a6.entry.js +1 -0
  84. package/dist/ldf/p-a1729dbd.js +1 -0
  85. package/dist/ldf/p-c0ef6296.entry.js +1 -0
  86. package/dist/ldf/p-d56dff05.js +3 -0
  87. package/dist/ldf/p-e301606a.entry.js +1 -0
  88. package/dist/ldf/p-e7a449d7.js +1 -0
  89. package/dist/ldf/p-f0de7628.entry.js +1 -0
  90. package/dist/ldf/p-fa191f47.entry.js +1 -0
  91. package/package.json +1 -1
  92. package/dist/ldf/p-31a1f740.js +0 -1
  93. package/dist/ldf/p-34e37c39.entry.js +0 -1
  94. package/dist/ldf/p-37d9f551.entry.js +0 -1
  95. package/dist/ldf/p-3a7cb4d5.entry.js +0 -1
  96. package/dist/ldf/p-3e0814c2.entry.js +0 -1
  97. package/dist/ldf/p-405928d1.js +0 -1
  98. package/dist/ldf/p-4ed034a1.js +0 -1
  99. package/dist/ldf/p-5eef960d.entry.js +0 -1
  100. package/dist/ldf/p-67c52455.entry.js +0 -1
  101. package/dist/ldf/p-69d493f3.entry.js +0 -1
  102. package/dist/ldf/p-80f6ec9f.js +0 -1
  103. package/dist/ldf/p-82f2facb.entry.js +0 -1
  104. package/dist/ldf/p-9424ca03.entry.js +0 -1
  105. package/dist/ldf/p-952f8992.entry.js +0 -1
  106. package/dist/ldf/p-9b008ca8.entry.js +0 -1
  107. package/dist/ldf/p-a712728b.js +0 -1
  108. package/dist/ldf/p-b37dd77a.entry.js +0 -1
  109. package/dist/ldf/p-b3b245a2.entry.js +0 -1
  110. package/dist/ldf/p-bc84c531.entry.js +0 -1
  111. package/dist/ldf/p-c02098e2.entry.js +0 -1
  112. package/dist/ldf/p-cec60628.js +0 -1
  113. package/dist/ldf/p-ff0452c1.js +0 -3
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index$1 = require('./index-8fe0df8d.js');
6
- const index = require('./index-c9b940c7.js');
7
- const text = require('./text-8d8d32e7.js');
5
+ const index = require('./index-8fe0df8d.js');
6
+ const book = require('./book-1a92678a.js');
7
+ const text = require('./text-5edb80f3.js');
8
8
  const locale = require('./locale-d4e925b1.js');
9
- const heading = require('./heading-fae3ce98.js');
9
+ const heading = require('./heading-5afc2b24.js');
10
10
  const _commonjsHelpers = require('./_commonjsHelpers-bcc1208a.js');
11
11
  const overlays = require('./overlays-eb464d6d.js');
12
12
  require('./ionic-global-581fb4f8.js');
@@ -25,7 +25,7 @@ class LiturgicalDay {
25
25
  }
26
26
  /** Returns a native Date from the day's date string */
27
27
  getDate() {
28
- return index.dateFromYMDString(this.date);
28
+ return book.dateFromYMDString(this.date);
29
29
  }
30
30
  /** Given a LiturgicalDay, returns a new LiturgicalDay that includes the feasts passed */
31
31
  addHolyDays(holydays) {
@@ -65,7 +65,7 @@ class LiturgicalDay {
65
65
  propers = slug;
66
66
  }
67
67
  const color = observed.color || this.color, collect = observed.collect || this.collect, season = observed.season || this.season, octave = (_d = (_c = (this.holy_days || [])) === null || _c === void 0 ? void 0 : _c.concat(holydays)) === null || _d === void 0 ? void 0 : _d.map((holyday) => holyday.octave).filter((octave) => Boolean(octave)).reduce((acc, curr) => (acc ? acc : curr || acc), undefined);
68
- return new LiturgicalDay(Object.assign(Object.assign({}, this), { slug, propers: holy_day_is_observed && holy_day_rank > 2 ? observed === null || observed === void 0 ? void 0 : observed.slug : propers, color,
68
+ return new LiturgicalDay(Object.assign(Object.assign({}, this), { slug, propers: holy_day_is_observed && holy_day_rank > 2 ? (observed === null || observed === void 0 ? void 0 : observed.propers) || (observed === null || observed === void 0 ? void 0 : observed.slug) : propers, color,
69
69
  season,
70
70
  octave,
71
71
  collect, holy_days: (this.holy_days || new Array()).concat(holydays), holy_day_observed: holy_day_is_observed ? observed : this.holy_day_observed }));
@@ -82,7 +82,7 @@ class LiturgicalDay {
82
82
  else {
83
83
  // if `day.date` is defined, used it to generate a date
84
84
  // otherwise, use the current date
85
- const date = day.date ? index.dateFromYMDString(day.date) : index.dateOnly(new Date());
85
+ const date = day.date ? book.dateFromYMDString(day.date) : book.dateOnly(new Date());
86
86
  // Sundays => 4
87
87
  if (date.getDay() == 0) {
88
88
  return 4;
@@ -151,7 +151,7 @@ const LOCALE$2 = {
151
151
  };
152
152
  const DayNameComponent = class {
153
153
  constructor(hostRef) {
154
- index$1.registerInstance(this, hostRef);
154
+ index.registerInstance(this, hostRef);
155
155
  }
156
156
  dayChange(newDay) {
157
157
  let provisionalObj;
@@ -188,11 +188,11 @@ const DayNameComponent = class {
188
188
  // Holy Day => name of day
189
189
  if (((_a = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _a === void 0 ? void 0 : _a.name) && ((_c = (_b = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _b === void 0 ? void 0 : _b.type) === null || _c === void 0 ? void 0 : _c.rank) >= 3) {
190
190
  return !day.holy_day_observed.bio
191
- ? [index$1.h("p", { class: "holy-day-name" }, (_d = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _d === void 0 ? void 0 : _d.name), ((_e = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _e === void 0 ? void 0 : _e.subtitle) ? index$1.h("p", { class: "holy-day-subtitle" }, day.holy_day_observed.subtitle) : undefined]
192
- : index$1.h("details", null, index$1.h("summary", null, day.holy_day_observed.name), index$1.h("ldf-text", { doc: new text.Text({ type: "text", style: "text", value: day.holy_day_observed.bio }) }));
191
+ ? [index.h("p", { class: "holy-day-name" }, (_d = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _d === void 0 ? void 0 : _d.name), ((_e = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _e === void 0 ? void 0 : _e.subtitle) ? index.h("p", { class: "holy-day-subtitle" }, day.holy_day_observed.subtitle) : undefined]
192
+ : index.h("details", null, index.h("summary", null, day.holy_day_observed.name), index.h("ldf-text", { doc: new text.Text({ type: "text", style: "text", value: day.holy_day_observed.bio }) }));
193
193
  }
194
194
  else {
195
- const date = index.dateFromYMDString(day === null || day === void 0 ? void 0 : day.date), locale = ((_g = (_f = this.el) === null || _f === void 0 ? void 0 : _f.closest('[lang]')) === null || _g === void 0 ? void 0 : _g.lang) || 'en';
195
+ const date = book.dateFromYMDString(day === null || day === void 0 ? void 0 : day.date), locale = ((_g = (_f = this.el) === null || _f === void 0 ? void 0 : _f.closest('[lang]')) === null || _g === void 0 ? void 0 : _g.lang) || 'en';
196
196
  // Sunday => name of week
197
197
  if (date.getDay() == 0) {
198
198
  const the = localeStrings.the || ' the ';
@@ -216,16 +216,16 @@ const DayNameComponent = class {
216
216
  render() {
217
217
  var _a, _b, _c, _d, _e, _f, _g;
218
218
  const image = (typeof ((_a = this.obj) === null || _a === void 0 ? void 0 : _a.color) !== 'string' && ((_c = (_b = this.obj) === null || _b === void 0 ? void 0 : _b.color) === null || _c === void 0 ? void 0 : _c.image)) || this.obj.image || ((_d = this.obj.holy_day_observed) === null || _d === void 0 ? void 0 : _d.image), imageUrl = (typeof ((_e = this.obj) === null || _e === void 0 ? void 0 : _e.color) !== 'string' && ((_g = (_f = this.obj) === null || _f === void 0 ? void 0 : _f.color) === null || _g === void 0 ? void 0 : _g.imageUrl)) || this.obj.imageURL || this.obj['imageUrl'];
219
- return (index$1.h(index$1.Host, null, this.localeStrings && this.dayToNodes(this.obj, this.localeStrings), image && imageUrl && index$1.h("a", { href: imageUrl, target: "_system" }, index$1.h("img", { class: "icon", src: image })), image && !imageUrl && index$1.h("img", { class: "icon", src: image })));
219
+ return (index.h(index.Host, null, this.localeStrings && this.dayToNodes(this.obj, this.localeStrings), image && imageUrl && index.h("a", { href: imageUrl, target: "_system" }, index.h("img", { class: "icon", src: image })), image && !imageUrl && index.h("img", { class: "icon", src: image })));
220
220
  }
221
- get el() { return index$1.getElement(this); }
221
+ get el() { return index.getElement(this); }
222
222
  static get watchers() { return {
223
223
  "day": ["dayChange"]
224
224
  }; }
225
225
  };
226
226
  DayNameComponent.style = dayNameCss;
227
227
 
228
- const EditableNode = ({ uidOrSlug, path, text, index, bodyText }) => index$1.h("ldf-editable-text", { class: { 'body-text': bodyText }, id: `${uidOrSlug}-heading-${index}`, text: text, path: `${path}/value/${index}`, short: true, inputType: "text" });
228
+ const EditableNode = ({ uidOrSlug, path, text, index: index$1, bodyText }) => index.h("ldf-editable-text", { class: { 'body-text': bodyText }, id: `${uidOrSlug}-heading-${index$1}`, text: text, path: `${path}/value/${index$1}`, short: true, inputType: "text" });
229
229
 
230
230
  const date = "The Date of the Liturgy";
231
231
  const day = "The Name of the Liturgical Day";
@@ -241,7 +241,7 @@ const LOCALE$1 = {
241
241
  };
242
242
  const HeadingComponent = class {
243
243
  constructor(hostRef) {
244
- index$1.registerInstance(this, hostRef);
244
+ index.registerInstance(this, hostRef);
245
245
  }
246
246
  docChanged(newDoc) {
247
247
  try {
@@ -275,52 +275,52 @@ const HeadingComponent = class {
275
275
  let node;
276
276
  switch (level) {
277
277
  case 1:
278
- node = index$1.h("h1", null, contentNode);
278
+ node = index.h("h1", null, contentNode);
279
279
  break;
280
280
  case 2:
281
- node = index$1.h("h2", null, contentNode);
281
+ node = index.h("h2", null, contentNode);
282
282
  break;
283
283
  case 3:
284
- node = index$1.h("h3", { slot: 'start' }, contentNode);
284
+ node = index.h("h3", { slot: 'start' }, contentNode);
285
285
  break;
286
286
  case 4:
287
- node = index$1.h("h4", { slot: 'start' }, contentNode);
287
+ node = index.h("h4", { slot: 'start' }, contentNode);
288
288
  break;
289
289
  case 5:
290
- node = index$1.h("h5", { slot: 'start' }, contentNode);
290
+ node = index.h("h5", { slot: 'start' }, contentNode);
291
291
  break;
292
292
  default:
293
- node = index$1.h("h6", null, contentNode);
293
+ node = index.h("h6", null, contentNode);
294
294
  }
295
295
  return display && node;
296
296
  }
297
- textNode(text, index, bodyText) {
297
+ textNode(text, index$1, bodyText) {
298
298
  return this.editable
299
- ? index$1.h(EditableNode, { uidOrSlug: this.obj.uid || this.obj.slug || '', path: this.path, text: text, index: index, bodyText: Boolean(bodyText) })
300
- : index$1.h("ldf-string", { text: text, fragment: this.path });
299
+ ? index.h(EditableNode, { uidOrSlug: this.obj.uid || this.obj.slug || '', path: this.path, text: text, index: index$1, bodyText: Boolean(bodyText) })
300
+ : index.h("ldf-string", { text: text, fragment: this.path });
301
301
  }
302
302
  dateNode() {
303
303
  var _a, _b, _c, _d, _e, _f;
304
304
  const hasDate = !!((_b = (_a = this.obj) === null || _a === void 0 ? void 0 : _a.day) === null || _b === void 0 ? void 0 : _b.date);
305
305
  if (hasDate) {
306
- const date = index.dateFromYMDString((_d = (_c = this.obj) === null || _c === void 0 ? void 0 : _c.day) === null || _d === void 0 ? void 0 : _d.date), locale = ((_f = (_e = this.element) === null || _e === void 0 ? void 0 : _e.closest('[lang]')) === null || _f === void 0 ? void 0 : _f.lang) || 'en';
307
- return index$1.h("div", { class: "date" }, date.toLocaleDateString(locale, { year: 'numeric', month: 'long', day: 'numeric' }));
306
+ const date = book.dateFromYMDString((_d = (_c = this.obj) === null || _c === void 0 ? void 0 : _c.day) === null || _d === void 0 ? void 0 : _d.date), locale = ((_f = (_e = this.element) === null || _e === void 0 ? void 0 : _e.closest('[lang]')) === null || _f === void 0 ? void 0 : _f.lang) || 'en';
307
+ return index.h("div", { class: "date" }, date.toLocaleDateString(locale, { year: 'numeric', month: 'long', day: 'numeric' }));
308
308
  }
309
309
  else {
310
310
  return [];
311
311
  }
312
312
  }
313
313
  citationNode(c, slot = 'end') {
314
- return (index$1.h("div", { class: 'citation', slot: slot }, this.editable ?
315
- index$1.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-citation`, text: c, path: `${this.path}/citation` }) :
314
+ return (index.h("div", { class: 'citation', slot: slot }, this.editable ?
315
+ index.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-citation`, text: c, path: `${this.path}/citation` }) :
316
316
  c));
317
317
  }
318
318
  sourceNode(c) {
319
319
  const text = new Citation(c).toString().replace('bcp1979', 'BCP');
320
- return (index$1.h("div", { slot: 'end', class: 'source' }, this.editable ?
320
+ return (index.h("div", { slot: 'end', class: 'source' }, this.editable ?
321
321
  [
322
- index$1.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-source-source`, text: c === null || c === void 0 ? void 0 : c.source, path: `${this.path}/source/source` }),
323
- index$1.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-source-citation`, text: c === null || c === void 0 ? void 0 : c.citation, path: `${this.path}/source/citation` }),
322
+ index.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-source-source`, text: c === null || c === void 0 ? void 0 : c.source, path: `${this.path}/source/source` }),
323
+ index.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-source-citation`, text: c === null || c === void 0 ? void 0 : c.citation, path: `${this.path}/source/citation` }),
324
324
  ] :
325
325
  text));
326
326
  }
@@ -330,13 +330,13 @@ const HeadingComponent = class {
330
330
  const localeStrings = this.localeStrings || {};
331
331
  const level = this.obj.metadata ? this.obj.metadata.level : 4, hasCitation = Boolean((_a = this.obj) === null || _a === void 0 ? void 0 : _a.citation), hasSource = Boolean((_b = this.obj) === null || _b === void 0 ? void 0 : _b.source), isDate = ((_c = this.obj) === null || _c === void 0 ? void 0 : _c.style) == 'date', isDay = ((_d = this.obj) === null || _d === void 0 ? void 0 : _d.style) == 'day', isText = ((_e = this.obj) === null || _e === void 0 ? void 0 : _e.style) == undefined || ((_f = this.obj) === null || _f === void 0 ? void 0 : _f.style) == 'text' || (!isDate && !isDay);
332
332
  // Render
333
- return (index$1.h(index$1.Host, { lang: ((_g = this.obj) === null || _g === void 0 ? void 0 : _g.language) || 'en' }, this.editable && index$1.h("ldf-label-bar", null, index$1.h("slot", { slot: 'end', name: 'controls' })), index$1.h("ldf-label-bar", { center: ((_j = (_h = this.obj) === null || _h === void 0 ? void 0 : _h.metadata) === null || _j === void 0 ? void 0 : _j.level) <= 2, class: {
333
+ return (index.h(index.Host, { lang: ((_g = this.obj) === null || _g === void 0 ? void 0 : _g.language) || 'en' }, this.editable && index.h("ldf-label-bar", null, index.h("slot", { slot: 'end', name: 'controls' })), index.h("ldf-label-bar", { center: ((_j = (_h = this.obj) === null || _h === void 0 ? void 0 : _h.metadata) === null || _j === void 0 ? void 0 : _j.level) <= 2, class: {
334
334
  'text': isText && (((_k = this === null || this === void 0 ? void 0 : this.obj) === null || _k === void 0 ? void 0 : _k.value) || []).filter(n => Boolean(n)).length > 0
335
- } }, isText && ((_m = (_l = this.obj) === null || _l === void 0 ? void 0 : _l.value) === null || _m === void 0 ? void 0 : _m.length) > 0 && this.headerNode(level, this.textNode(this.obj.value[0], 0), true), isDate && !this.editable && this.dateNode(), isDate && this.editable && index$1.h("code", { class: "lookup" }, localeStrings.date), isDay && !this.editable && index$1.h("div", { class: "date" }, index$1.h("ldf-day-name", { day: (_o = this.obj) === null || _o === void 0 ? void 0 : _o.day })), isDay && !this.editable && ((_r = (_q = (_p = this.obj) === null || _p === void 0 ? void 0 : _p.day) === null || _q === void 0 ? void 0 : _q.holy_days) === null || _r === void 0 ? void 0 : _r.length) > 0 && index$1.h("ul", { class: "holy-days" }, (_t = (_s = this.obj) === null || _s === void 0 ? void 0 : _s.day) === null || _t === void 0 ? void 0 : _t.holy_days.filter(day => { var _a; return ((_a = day.type) === null || _a === void 0 ? void 0 : _a.rank) < 3; }).map(day => day.bio
336
- ? index$1.h("li", { class: "holy-day" }, index$1.h("details", null, index$1.h("summary", null, day.name), index$1.h("ldf-text", { doc: new text.Text({ type: "text", style: "text", value: day.bio }) })))
337
- : index$1.h("li", { class: "holy-day" }, day.name))), isDay && this.editable && index$1.h("code", { class: "lookup" }, localeStrings.day), ((_v = (_u = this.obj) === null || _u === void 0 ? void 0 : _u.value) === null || _v === void 0 ? void 0 : _v.length) > 1 && this.textNode(this.obj.value[1], 1), index$1.h("slot", { name: 'additional' }), index$1.h("slot", { name: 'citation', slot: 'end' }, hasSource && this.sourceNode(this.obj.source), hasCitation && !hasSource && this.obj.citation !== this.obj.label && this.obj.citation !== this.obj.value[0] && this.citationNode(this.obj.citation))), index$1.h("div", null, hasSource && hasCitation && this.obj.citation !== this.obj.label && this.citationNode(this.obj.citation, 'none')), ((_x = (_w = this.obj) === null || _w === void 0 ? void 0 : _w.value) === null || _x === void 0 ? void 0 : _x.length) > 2 && this.obj.value.slice(2, this.obj.value.length).map((text, index) => this.textNode(text, index + 2, true))));
335
+ } }, isText && ((_m = (_l = this.obj) === null || _l === void 0 ? void 0 : _l.value) === null || _m === void 0 ? void 0 : _m.length) > 0 && this.headerNode(level, this.textNode(this.obj.value[0], 0), true), isDate && !this.editable && this.dateNode(), isDate && this.editable && index.h("code", { class: "lookup" }, localeStrings.date), isDay && !this.editable && index.h("div", { class: "date" }, index.h("ldf-day-name", { day: (_o = this.obj) === null || _o === void 0 ? void 0 : _o.day })), isDay && !this.editable && ((_r = (_q = (_p = this.obj) === null || _p === void 0 ? void 0 : _p.day) === null || _q === void 0 ? void 0 : _q.holy_days) === null || _r === void 0 ? void 0 : _r.length) > 0 && index.h("ul", { class: "holy-days" }, (_t = (_s = this.obj) === null || _s === void 0 ? void 0 : _s.day) === null || _t === void 0 ? void 0 : _t.holy_days.filter(day => { var _a; return ((_a = day.type) === null || _a === void 0 ? void 0 : _a.rank) < 3; }).map(day => day.bio
336
+ ? index.h("li", { class: "holy-day" }, index.h("details", null, index.h("summary", null, day.name), index.h("ldf-text", { doc: new text.Text({ type: "text", style: "text", value: day.bio }) })))
337
+ : index.h("li", { class: "holy-day" }, day.name))), isDay && this.editable && index.h("code", { class: "lookup" }, localeStrings.day), ((_v = (_u = this.obj) === null || _u === void 0 ? void 0 : _u.value) === null || _v === void 0 ? void 0 : _v.length) > 1 && this.textNode(this.obj.value[1], 1), index.h("slot", { name: 'additional' }), index.h("slot", { name: 'citation', slot: 'end' }, hasSource && this.sourceNode(this.obj.source), hasCitation && !hasSource && this.obj.citation !== this.obj.label && this.obj.citation !== this.obj.value[0] && this.citationNode(this.obj.citation))), index.h("div", null, hasSource && hasCitation && this.obj.citation !== this.obj.label && this.citationNode(this.obj.citation, 'none')), ((_x = (_w = this.obj) === null || _w === void 0 ? void 0 : _w.value) === null || _x === void 0 ? void 0 : _x.length) > 2 && this.obj.value.slice(2, this.obj.value.length).map((text, index) => this.textNode(text, index + 2, true))));
338
338
  }
339
- get element() { return index$1.getElement(this); }
339
+ get element() { return index.getElement(this); }
340
340
  static get watchers() { return {
341
341
  "doc": ["docChanged"]
342
342
  }; }
@@ -347,16 +347,16 @@ const labelBarCss = ".label-bar{display:flex;flex-direction:row;flex-wrap:wrap;a
347
347
 
348
348
  const LabelBarComponent = class {
349
349
  constructor(hostRef) {
350
- index$1.registerInstance(this, hostRef);
350
+ index.registerInstance(this, hostRef);
351
351
  this.center = false;
352
352
  }
353
353
  // Render
354
354
  render() {
355
355
  if (this.center) {
356
- return (index$1.h("div", { class: 'label-bar center' }, index$1.h("slot", { name: 'start' }), index$1.h("slot", null), index$1.h("slot", { name: 'end' })));
356
+ return (index.h("div", { class: 'label-bar center' }, index.h("slot", { name: 'start' }), index.h("slot", null), index.h("slot", { name: 'end' })));
357
357
  }
358
358
  else {
359
- return (index$1.h("div", { class: 'label-bar left' }, index$1.h("slot", { name: 'start' }), index$1.h("slot", null), index$1.h("slot", { name: 'end' })));
359
+ return (index.h("div", { class: 'label-bar left' }, index.h("slot", { name: 'start' }), index.h("slot", null), index.h("slot", { name: 'end' })));
360
360
  }
361
361
  }
362
362
  };
@@ -366,8 +366,8 @@ const stringCss = "span.sc-ldf-string{font-family:var(--ldf-font-face);font-weig
366
366
 
367
367
  const StringComponent = class {
368
368
  constructor(hostRef) {
369
- index$1.registerInstance(this, hostRef);
370
- this.ldfStringClicked = index$1.createEvent(this, "ldfStringClicked", 7);
369
+ index.registerInstance(this, hostRef);
370
+ this.ldfStringClicked = index.createEvent(this, "ldfStringClicked", 7);
371
371
  /**
372
372
  * Enable, disable, or force dropcap on the first letter of the text.
373
373
  */
@@ -418,14 +418,14 @@ const StringComponent = class {
418
418
  return '';
419
419
  }
420
420
  else if ((node.startsWith('*') && node.endsWith('*')) || node.startsWith('%') && node.endsWith('%')) {
421
- return index$1.h("em", null, node.slice(1, node.length - 1));
421
+ return index.h("em", null, node.slice(1, node.length - 1));
422
422
  }
423
423
  else if (node.startsWith('^') && node.endsWith('^')) {
424
424
  if (this.maintainCasing(node)) {
425
425
  return node.replace(/\^/g, '');
426
426
  }
427
427
  else {
428
- return index$1.h("span", { class: "sc" }, node[1], node.slice(2, node.length - 1).toLowerCase());
428
+ return index.h("span", { class: "sc" }, node[1], node.slice(2, node.length - 1).toLowerCase());
429
429
  }
430
430
  }
431
431
  else {
@@ -437,20 +437,20 @@ const StringComponent = class {
437
437
  processTetragrammaton(s) {
438
438
  if (s) {
439
439
  const replacements = {
440
- '\n': () => index$1.h("br", null),
440
+ '\n': () => index.h("br", null),
441
441
  '’S': () => '’s',
442
442
  '\'S': () => '’s',
443
443
  'LORD’S': () => 'LORD’s',
444
444
  "LORD'S": () => 'LORD’s',
445
- 'LORD': () => index$1.h("span", { class: "sc" }, "Lord"),
446
- 'Lord GOD': () => index$1.h("span", null, "Lord ", index$1.h("span", { class: "sc" }, "God")),
447
- 'GOD': () => index$1.h("span", { class: "sc" }, "God"),
448
- 'YHWH': () => index$1.h("span", { class: "sc" }, "Yhwh"),
449
- 'Yhwh': () => index$1.h("span", { class: "sc" }, "Yhwh"),
450
- 'YAHWEH': () => index$1.h("span", { class: "sc" }, "Yhwh"),
451
- 'Yahweh': () => index$1.h("span", { class: "sc" }, "Yhwh"),
452
- '\t': () => index$1.h("span", { class: 'tab' }, "\u00A0"),
453
- ' ': () => index$1.h("span", { class: 'half-tab' }, "\u00A0")
445
+ 'LORD': () => index.h("span", { class: "sc" }, "Lord"),
446
+ 'Lord GOD': () => index.h("span", null, "Lord ", index.h("span", { class: "sc" }, "God")),
447
+ 'GOD': () => index.h("span", { class: "sc" }, "God"),
448
+ 'YHWH': () => index.h("span", { class: "sc" }, "Yhwh"),
449
+ 'Yhwh': () => index.h("span", { class: "sc" }, "Yhwh"),
450
+ 'YAHWEH': () => index.h("span", { class: "sc" }, "Yhwh"),
451
+ 'Yahweh': () => index.h("span", { class: "sc" }, "Yhwh"),
452
+ '\t': () => index.h("span", { class: 'tab' }, "\u00A0"),
453
+ ' ': () => index.h("span", { class: 'half-tab' }, "\u00A0")
454
454
  };
455
455
  const split = s.split(/(( )|\n|LORD[\'’]S|[\'’]S|LORD|Lord GOD|GOD|YHWH|YAHWEH|Yhwh|Yahweh|\t)/g);
456
456
  return split.map(phrase => replacements.hasOwnProperty(phrase) ? replacements[phrase]() : phrase);
@@ -484,7 +484,7 @@ const StringComponent = class {
484
484
  : /^ ?([\"\'“”‘’\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff])([\wñáéíóú\u0590-\u05ff\u0370-\u03ff\,]*[\s.!?]*[\wñáéíóú\u0590-\u05ff\u0370-\u03ff]*)/, reIncludingPunctuation = ((_a = firstWord[0]) === null || _a === void 0 ? void 0 : _a.match(/[\"\'“”‘’\!\?\[\]\(\)]/))
485
485
  ? /^ ?([\"\'“”‘’\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff]{2})\s*([\wñáéíóú\u0590-\u05ff\u0370-\u03ff]*)/
486
486
  : re, buffer = firstWord.length == 1, split = firstChunk.split(reIncludingPunctuation).filter(s => s !== ''), [match1, match2, nextWord] = split;
487
- final = new Array(index$1.h("span", { class: 'firstword' }, index$1.h("span", { class: buffer ? `drop buffered-drop drop-${match1}` : `drop drop-${match1}` }, match1), this.maintainCasing(match2) ? match2 : match2 === null || match2 === void 0 ? void 0 : match2.toLowerCase()))
487
+ final = new Array(index.h("span", { class: 'firstword' }, index.h("span", { class: buffer ? `drop buffered-drop drop-${match1}` : `drop drop-${match1}` }, match1), this.maintainCasing(match2) ? match2 : match2 === null || match2 === void 0 ? void 0 : match2.toLowerCase()))
488
488
  .concat(nextWord)
489
489
  .concat(processed.slice(1));
490
490
  }
@@ -496,9 +496,9 @@ const StringComponent = class {
496
496
  }
497
497
  // Render
498
498
  render() {
499
- return this.text && index$1.h("span", { onClick: () => this.ldfStringClicked.emit({ target: this.element, text: this.text, citation: this.citation, fragment: this.fragment }) }, this.processedString);
499
+ return this.text && index.h("span", { onClick: () => this.ldfStringClicked.emit({ target: this.element, text: this.text, citation: this.citation, fragment: this.fragment }) }, this.processedString);
500
500
  }
501
- get element() { return index$1.getElement(this); }
501
+ get element() { return index.getElement(this); }
502
502
  static get watchers() { return {
503
503
  "text": ["textChanged"]
504
504
  }; }
@@ -5547,13 +5547,13 @@ if (module.exports) {
5547
5547
  });
5548
5548
 
5549
5549
  const amen$1 = "Amen.";
5550
- const authorized_prayers = "Prayers and Thanksgivings";
5550
+ const authorized_prayers$1 = "Prayers and Thanksgivings";
5551
5551
  const label = "Label";
5552
5552
  const source = "Source";
5553
5553
  const source_citation = "Citation";
5554
5554
  const EN = {
5555
5555
  amen: amen$1,
5556
- authorized_prayers: authorized_prayers,
5556
+ authorized_prayers: authorized_prayers$1,
5557
5557
  label: label,
5558
5558
  source: source,
5559
5559
  source_citation: source_citation,
@@ -5561,9 +5561,11 @@ const EN = {
5561
5561
  };
5562
5562
 
5563
5563
  const amen = "Amén.";
5564
+ const authorized_prayers = "Oraciones y Acciones de Gracias";
5564
5565
  const ES = {
5565
5566
  amen: amen,
5566
- "prayer-list": "Oraciones"
5567
+ "prayer-list": "Oraciones",
5568
+ authorized_prayers: authorized_prayers
5567
5569
  };
5568
5570
 
5569
5571
  const textCss = "ldf-label-bar.sc-ldf-text{min-height:0}p.sc-ldf-text{font-family:var(--ldf-font-face);text-align:var(--ldf-text-align);text-justify:inter-character}li.sc-ldf-text,h1.sc-ldf-text,h2.sc-ldf-text,h3.sc-ldf-text,h4.sc-ldf-text,h5.sc-ldf-text,h6.sc-ldf-text,ol.sc-ldf-text,span.sc-ldf-text,em.sc-ldf-text,strong.sc-ldf-text{font-family:var(--ldf-font-face)}.response.sc-ldf-text{font-weight:var(--ldf-response-font-weight);font-style:var(--ldf-response-font-style)}.text.omit.sc-ldf-text .text-body.sc-ldf-text{display:none}.text.editable.omit.sc-ldf-text .text-body.sc-ldf-text{display:block}.text.unison.sc-ldf-text .text-body.sc-ldf-text{font-weight:var(--ldf-unison-font-weight);font-style:var(--ldf-unison-font-style)}h3.editable-label.sc-ldf-text{text-align:var(--ldf-h3-text-align);font-weight:var(--ldf-h3-font-weight);font-style:var(--ldf-h3-font-style);font-variant:var(--ldf-h3-font-variant);font-size:var(--ldf-h3-font-size);text-transform:var(--ldf-h3-text-transform)}.prayer-list.sc-ldf-text{display:block;margin:0;padding:0;text-align:center}.prayer-list.sc-ldf-text li.sc-ldf-text{list-style-type:none;text-align:center;margin:0.5em 0;padding:0}";
@@ -5574,9 +5576,9 @@ const LOCALE = {
5574
5576
  };
5575
5577
  const TextComponent = class {
5576
5578
  constructor(hostRef) {
5577
- index$1.registerInstance(this, hostRef);
5578
- this.ldfDocShouldChange = index$1.createEvent(this, "ldfDocShouldChange", 7);
5579
- this.ldfAskForPrayerList = index$1.createEvent(this, "ldfAskForPrayerList", 7);
5579
+ index.registerInstance(this, hostRef);
5580
+ this.ldfDocShouldChange = index.createEvent(this, "ldfDocShouldChange", 7);
5581
+ this.ldfAskForPrayerList = index.createEvent(this, "ldfAskForPrayerList", 7);
5580
5582
  // prayer list for authorized prayers
5581
5583
  this.intentions = [];
5582
5584
  }
@@ -5644,8 +5646,8 @@ const TextComponent = class {
5644
5646
  const localeStrings = this.localeStrings || {};
5645
5647
  /** `authorized-prayer` type */
5646
5648
  if (((_a = this.obj) === null || _a === void 0 ? void 0 : _a.style) === 'authorized-prayers') {
5647
- const splits = this.path.split('/'), index = Number(splits[splits.length - 1]), base = splits.slice(0, splits.length - 1).join('/');
5648
- return index$1.h(index$1.Host, null, index$1.h("ldf-label-bar", null, index$1.h("ion-button", { onClick: () => this.addPAndT(base, index), fill: "clear" }, localeStrings.authorized_prayers)), (_c = ((_b = this.intentions) === null || _b === void 0 ? void 0 : _b.length) > 0) !== null && _c !== void 0 ? _c : index$1.h("strong", { class: "prayer-list" }, localeStrings['prayer-list']), index$1.h("ul", { class: "prayer-list" }, (this.intentions || []).map(intention => index$1.h("li", null, intention))));
5649
+ const splits = this.path.split('/'), index$1 = Number(splits[splits.length - 1]), base = splits.slice(0, splits.length - 1).join('/');
5650
+ return index.h(index.Host, null, index.h("ldf-label-bar", null, index.h("ion-button", { onClick: () => this.addPAndT(base, index$1), fill: "clear" }, localeStrings.authorized_prayers)), (_c = ((_b = this.intentions) === null || _b === void 0 ? void 0 : _b.length) > 0) !== null && _c !== void 0 ? _c : index.h("strong", { class: "prayer-list" }, localeStrings['prayer-list']), index.h("ul", { class: "prayer-list" }, (this.intentions || []).map(intention => index.h("li", null, intention))));
5649
5651
  }
5650
5652
  else {
5651
5653
  let value = ((_e = (_d = this.obj) === null || _d === void 0 ? void 0 : _d.metadata) === null || _e === void 0 ? void 0 : _e.rollup)
@@ -5660,29 +5662,29 @@ const TextComponent = class {
5660
5662
  compiledValue = [[firstChunk], [lastChunk]];
5661
5663
  }
5662
5664
  if (this.editable) {
5663
- return (index$1.h(index$1.Host, { lang: this.obj.language }, index$1.h("ldf-label-bar", null, index$1.h("slot", { slot: 'end', name: 'controls' })), !this.editable && index$1.h("ldf-heading", { path: `${this.path}/label`, doc: new heading.Heading({ type: 'heading', metadata: { level: 3 }, value: [this.obj.label], citation: this.obj.citation, source: this.obj.source }) }), this.editable && index$1.h("ldf-label-bar", null, !((_k = (_j = this.obj) === null || _j === void 0 ? void 0 : _j.metadata) === null || _k === void 0 ? void 0 : _k.omit_label) && index$1.h("h3", { class: "editable-label", slot: "start" }, index$1.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-label`, text: (_l = this.obj) === null || _l === void 0 ? void 0 : _l.label, placeholder: localeStrings.label, path: `${this.path}/label` })), index$1.h("ldf-editable-text", { slot: "end", id: "source-source", text: (_o = (_m = this.obj) === null || _m === void 0 ? void 0 : _m.source) === null || _o === void 0 ? void 0 : _o.source, path: `${this.path}/source/source`, placeholder: (_p = this.localeStrings) === null || _p === void 0 ? void 0 : _p.source }), index$1.h("ldf-editable-text", { slot: "end", id: "source-citation", text: (_r = (_q = this.obj) === null || _q === void 0 ? void 0 : _q.source) === null || _r === void 0 ? void 0 : _r.citation, path: `${this.path}/source/citation`, placeholder: (_s = this.localeStrings) === null || _s === void 0 ? void 0 : _s.source_citation })), index$1.h("div", { class: `text ${this.editable ? 'editable' : ''} ${((_t = this.obj) === null || _t === void 0 ? void 0 : _t.display_format) || 'default'}` }, this.obj.value.map((prayer, prayerIndex) => index$1.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-${prayerIndex}`, text: prayer, path: `${this.path}/value/${prayerIndex}` })), (((_u = this.obj) === null || _u === void 0 ? void 0 : _u.style) === 'prayer' || (((_w = (_v = this.obj) === null || _v === void 0 ? void 0 : _v.metadata) === null || _w === void 0 ? void 0 : _w.response) && !((_y = (_x = this.obj) === null || _x === void 0 ? void 0 : _x.metadata) === null || _y === void 0 ? void 0 : _y.omit_response))) && index$1.h("span", { class: 'response' }, index$1.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-response`, text: this.obj.metadata && this.obj.metadata.response, path: `${this.path}/response`, placeholder: localeStrings.amen })))));
5665
+ return (index.h(index.Host, { lang: this.obj.language }, index.h("ldf-label-bar", null, index.h("slot", { slot: 'end', name: 'controls' })), !this.editable && index.h("ldf-heading", { path: `${this.path}/label`, doc: new heading.Heading({ type: 'heading', metadata: { level: 3 }, value: [this.obj.label], citation: this.obj.citation, source: this.obj.source }) }), this.editable && index.h("ldf-label-bar", null, !((_k = (_j = this.obj) === null || _j === void 0 ? void 0 : _j.metadata) === null || _k === void 0 ? void 0 : _k.omit_label) && index.h("h3", { class: "editable-label", slot: "start" }, index.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-label`, text: (_l = this.obj) === null || _l === void 0 ? void 0 : _l.label, placeholder: localeStrings.label, path: `${this.path}/label` })), index.h("ldf-editable-text", { slot: "end", id: "source-source", text: (_o = (_m = this.obj) === null || _m === void 0 ? void 0 : _m.source) === null || _o === void 0 ? void 0 : _o.source, path: `${this.path}/source/source`, placeholder: (_p = this.localeStrings) === null || _p === void 0 ? void 0 : _p.source }), index.h("ldf-editable-text", { slot: "end", id: "source-citation", text: (_r = (_q = this.obj) === null || _q === void 0 ? void 0 : _q.source) === null || _r === void 0 ? void 0 : _r.citation, path: `${this.path}/source/citation`, placeholder: (_s = this.localeStrings) === null || _s === void 0 ? void 0 : _s.source_citation })), index.h("div", { class: `text ${this.editable ? 'editable' : ''} ${((_t = this.obj) === null || _t === void 0 ? void 0 : _t.display_format) || 'default'}` }, this.obj.value.map((prayer, prayerIndex) => index.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-${prayerIndex}`, text: prayer, path: `${this.path}/value/${prayerIndex}` })), (((_u = this.obj) === null || _u === void 0 ? void 0 : _u.style) === 'prayer' || (((_w = (_v = this.obj) === null || _v === void 0 ? void 0 : _v.metadata) === null || _w === void 0 ? void 0 : _w.response) && !((_y = (_x = this.obj) === null || _x === void 0 ? void 0 : _x.metadata) === null || _y === void 0 ? void 0 : _y.omit_response))) && index.h("span", { class: 'response' }, index.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-response`, text: this.obj.metadata && this.obj.metadata.response, path: `${this.path}/response`, placeholder: localeStrings.amen })))));
5664
5666
  }
5665
5667
  else {
5666
5668
  /** `markdown` types */
5667
5669
  if (((_z = this.obj) === null || _z === void 0 ? void 0 : _z.style) === 'markdown') {
5668
5670
  const converter = new showdown.Converter();
5669
- return (((_0 = this.obj) === null || _0 === void 0 ? void 0 : _0.value) || []).map(value => index$1.h("div", { innerHTML: converter.makeHtml(value) }));
5671
+ return (((_0 = this.obj) === null || _0 === void 0 ? void 0 : _0.value) || []).map(value => index.h("div", { innerHTML: converter.makeHtml(value) }));
5670
5672
  }
5671
5673
  /** `text` and `prayer` types */
5672
5674
  else {
5673
- return (index$1.h("div", { lang: ((_1 = this.obj) === null || _1 === void 0 ? void 0 : _1.language) || 'en', class: `text ${((_2 = this.obj) === null || _2 === void 0 ? void 0 : _2.display_format) || 'default'}` }, ((((_3 = this.obj) === null || _3 === void 0 ? void 0 : _3.label) && !((_5 = (_4 = this.obj) === null || _4 === void 0 ? void 0 : _4.metadata) === null || _5 === void 0 ? void 0 : _5.omit_label)) || ((_6 = this.obj) === null || _6 === void 0 ? void 0 : _6.citation)) && index$1.h("ldf-heading", { path: this.path, doc: new heading.Heading({ type: 'heading', metadata: { level: 3 }, value: [((_7 = this.obj.metadata) === null || _7 === void 0 ? void 0 : _7.omit_label) ? '' : this.obj.label], citation: this.obj.citation, source: this.obj.source }) }), compiledValue.map((prayer, prayerIndex) => {
5675
+ return (index.h("div", { lang: ((_1 = this.obj) === null || _1 === void 0 ? void 0 : _1.language) || 'en', class: `text ${((_2 = this.obj) === null || _2 === void 0 ? void 0 : _2.display_format) || 'default'}` }, ((((_3 = this.obj) === null || _3 === void 0 ? void 0 : _3.label) && !((_5 = (_4 = this.obj) === null || _4 === void 0 ? void 0 : _4.metadata) === null || _5 === void 0 ? void 0 : _5.omit_label)) || ((_6 = this.obj) === null || _6 === void 0 ? void 0 : _6.citation)) && index.h("ldf-heading", { path: this.path, doc: new heading.Heading({ type: 'heading', metadata: { level: 3 }, value: [((_7 = this.obj.metadata) === null || _7 === void 0 ? void 0 : _7.omit_label) ? '' : this.obj.label], citation: this.obj.citation, source: this.obj.source }) }), compiledValue.map((prayer, prayerIndex) => {
5674
5676
  var _a, _b, _c, _d;
5675
- return index$1.h("p", { class: "text-body", id: `${this.obj.uid || this.obj.slug}-prayerIndex` }, prayer === null || prayer === void 0 ? void 0 :
5677
+ return index.h("p", { class: "text-body", id: `${this.obj.uid || this.obj.slug}-prayerIndex` }, prayer === null || prayer === void 0 ? void 0 :
5676
5678
  prayer.map((chunk, chunkIndex) => {
5677
5679
  var _a;
5678
- return index$1.h("span", { id: `${this.obj.uid || this.obj.slug}-${prayerIndex}-${chunkIndex}` }, index$1.h("ldf-string", { text: chunk, citation: { label: this.obj.label }, dropcap: ((_a = this.obj) === null || _a === void 0 ? void 0 : _a.display_format) == "force_dropcap" && prayerIndex === 0 && chunkIndex === 0 ? "force" : (prayerIndex === 0 && chunkIndex <= 1 ? "enabled" : "disabled"), index: prayerIndex + chunkIndex, fragment: this.path }));
5679
- }), ((_b = (_a = this.obj) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.response) && prayerIndex == compiledValue.length - 1 && index$1.h("span", { class: "response" }, " ", this.obj.metadata.response), !((_d = (_c = this.obj) === null || _c === void 0 ? void 0 : _c.metadata) === null || _d === void 0 ? void 0 : _d.response) && this.obj.style == 'prayer' && prayerIndex == compiledValue.length - 1 && index$1.h("span", { class: "response" }, " ", localeStrings.amen));
5680
+ return index.h("span", { id: `${this.obj.uid || this.obj.slug}-${prayerIndex}-${chunkIndex}` }, index.h("ldf-string", { text: chunk, citation: { label: this.obj.label }, dropcap: ((_a = this.obj) === null || _a === void 0 ? void 0 : _a.display_format) == "force_dropcap" && prayerIndex === 0 && chunkIndex === 0 ? "force" : (prayerIndex === 0 && chunkIndex <= 1 ? "enabled" : "disabled"), index: prayerIndex + chunkIndex, fragment: this.path }));
5681
+ }), ((_b = (_a = this.obj) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.response) && prayerIndex == compiledValue.length - 1 && index.h("span", { class: "response" }, " ", this.obj.metadata.response), !((_d = (_c = this.obj) === null || _c === void 0 ? void 0 : _c.metadata) === null || _d === void 0 ? void 0 : _d.response) && this.obj.style == 'prayer' && prayerIndex == compiledValue.length - 1 && index.h("span", { class: "response" }, " ", localeStrings.amen));
5680
5682
  })));
5681
5683
  }
5682
5684
  }
5683
5685
  }
5684
5686
  }
5685
- get element() { return index$1.getElement(this); }
5687
+ get element() { return index.getElement(this); }
5686
5688
  static get watchers() { return {
5687
5689
  "doc": ["docChanged"]
5688
5690
  }; }
@@ -3,15 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8fe0df8d.js');
6
- const index$1 = require('./index-c9b940c7.js');
7
- const rubric$1 = require('./rubric-ad2f926f.js');
8
- const heading$1 = require('./heading-fae3ce98.js');
9
- const image$1 = require('./image-41000c7b.js');
10
- const option$1 = require('./option-6fb78f5c.js');
11
- const refrain$1 = require('./refrain-f51fd88d.js');
12
- const text$1 = require('./text-8d8d32e7.js');
6
+ const book = require('./book-1a92678a.js');
7
+ const rubric$1 = require('./rubric-0afbe4c0.js');
8
+ const heading$1 = require('./heading-5afc2b24.js');
9
+ const image$1 = require('./image-3bee3e73.js');
10
+ const option$1 = require('./option-a078d432.js');
11
+ const refrain$1 = require('./refrain-91fb446b.js');
12
+ const text$1 = require('./text-5edb80f3.js');
13
13
  const locale = require('./locale-d4e925b1.js');
14
- require('./_commonjsHelpers-bcc1208a.js');
15
14
 
16
15
  const MENU = [
17
16
  {
@@ -336,7 +335,7 @@ const MENU = [
336
335
  /* SVG is Font Awesome 'fa-praying-hands' */
337
336
  icon: () => (index.h("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "praying-hands", class: "svg-inline--fa fa-praying-hands fa-w-20", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 512" },
338
337
  index.h("path", { fill: "currentColor", d: "M272 191.91c-17.6 0-32 14.4-32 32v80c0 8.84-7.16 16-16 16s-16-7.16-16-16v-76.55c0-17.39 4.72-34.47 13.69-49.39l77.75-129.59c9.09-15.16 4.19-34.81-10.97-43.91-14.45-8.67-32.72-4.3-42.3 9.21-.2.23-.62.21-.79.48l-117.26 175.9C117.56 205.9 112 224.31 112 243.29v80.23l-90.12 30.04A31.974 31.974 0 0 0 0 383.91v96c0 10.82 8.52 32 32 32 2.69 0 5.41-.34 8.06-1.03l179.19-46.62C269.16 449.99 304 403.8 304 351.91v-128c0-17.6-14.4-32-32-32zm346.12 161.73L528 323.6v-80.23c0-18.98-5.56-37.39-16.12-53.23L394.62 14.25c-.18-.27-.59-.24-.79-.48-9.58-13.51-27.85-17.88-42.3-9.21-15.16 9.09-20.06 28.75-10.97 43.91l77.75 129.59c8.97 14.92 13.69 32 13.69 49.39V304c0 8.84-7.16 16-16 16s-16-7.16-16-16v-80c0-17.6-14.4-32-32-32s-32 14.4-32 32v128c0 51.89 34.84 98.08 84.75 112.34l179.19 46.62c2.66.69 5.38 1.03 8.06 1.03 23.48 0 32-21.18 32-32v-96c0-13.77-8.81-25.99-21.88-30.35z" }))),
339
- template: [new index$1.LiturgicalDocument({ type: 'text', style: 'prayer', value: [''] })]
338
+ template: [new book.LiturgicalDocument({ type: 'text', style: 'prayer', value: [''] })]
340
339
  },
341
340
  {
342
341
  label: 'authorized-prayers',
@@ -344,7 +343,7 @@ const MENU = [
344
343
  /* SVG is Font Awesome 'fa-praying-hands' */
345
344
  icon: () => (index.h("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "praying-hands", class: "svg-inline--fa fa-praying-hands fa-w-20", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 512" },
346
345
  index.h("path", { fill: "currentColor", d: "M272 191.91c-17.6 0-32 14.4-32 32v80c0 8.84-7.16 16-16 16s-16-7.16-16-16v-76.55c0-17.39 4.72-34.47 13.69-49.39l77.75-129.59c9.09-15.16 4.19-34.81-10.97-43.91-14.45-8.67-32.72-4.3-42.3 9.21-.2.23-.62.21-.79.48l-117.26 175.9C117.56 205.9 112 224.31 112 243.29v80.23l-90.12 30.04A31.974 31.974 0 0 0 0 383.91v96c0 10.82 8.52 32 32 32 2.69 0 5.41-.34 8.06-1.03l179.19-46.62C269.16 449.99 304 403.8 304 351.91v-128c0-17.6-14.4-32-32-32zm346.12 161.73L528 323.6v-80.23c0-18.98-5.56-37.39-16.12-53.23L394.62 14.25c-.18-.27-.59-.24-.79-.48-9.58-13.51-27.85-17.88-42.3-9.21-15.16 9.09-20.06 28.75-10.97 43.91l77.75 129.59c8.97 14.92 13.69 32 13.69 49.39V304c0 8.84-7.16 16-16 16s-16-7.16-16-16v-80c0-17.6-14.4-32-32-32s-32 14.4-32 32v128c0 51.89 34.84 98.08 84.75 112.34l179.19 46.62c2.66.69 5.38 1.03 8.06 1.03 23.48 0 32-21.18 32-32v-96c0-13.77-8.81-25.99-21.88-30.35z" }))),
347
- template: [new index$1.LiturgicalDocument({ type: 'text', style: 'authorized-prayers' })]
346
+ template: [new book.LiturgicalDocument({ type: 'text', style: 'authorized-prayers' })]
348
347
  },
349
348
  {
350
349
  label: 'preces',
@@ -3,10 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8fe0df8d.js');
6
- const index$1 = require('./index-c9b940c7.js');
7
- const change = require('./change-deff223a.js');
6
+ const book = require('./book-1a92678a.js');
7
+ const change = require('./change-cdb1e8c0.js');
8
8
  const locale = require('./locale-d4e925b1.js');
9
- require('./_commonjsHelpers-bcc1208a.js');
10
9
 
11
10
  //import { PROPERS } from './propers';
12
11
  const WEEKDAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
@@ -129,7 +128,7 @@ const EditableConditionComponent = class {
129
128
  // Sets or clears one of the `Condition.___` fields (`season`, `day`, etc.)
130
129
  toggleSubcondition(subcondition, active, template) {
131
130
  if (active && this.workingCondition[subcondition] == undefined) {
132
- this.workingCondition = new index$1.Condition(Object.assign(Object.assign({}, this.workingCondition), { [subcondition]: template }));
131
+ this.workingCondition = new book.Condition(Object.assign(Object.assign({}, this.workingCondition), { [subcondition]: template }));
133
132
  this.ldfDocShouldChange.emit(new change.Change({
134
133
  path: `${this.path}/${subcondition}`,
135
134
  op: [{
@@ -148,7 +147,7 @@ const EditableConditionComponent = class {
148
147
  }]
149
148
  }));
150
149
  this.workingCondition[subcondition] = undefined;
151
- this.workingCondition = new index$1.Condition(this.workingCondition);
150
+ this.workingCondition = new book.Condition(this.workingCondition);
152
151
  }
153
152
  }
154
153
  toggleExceptOnly(field, subfield, value) {
@@ -176,7 +175,7 @@ const EditableConditionComponent = class {
176
175
  }]
177
176
  }));
178
177
  }
179
- this.workingCondition = new index$1.Condition(Object.assign({}, this.workingCondition));
178
+ this.workingCondition = new book.Condition(Object.assign({}, this.workingCondition));
180
179
  }
181
180
  setDateField(field, dateString) {
182
181
  var _a;
@@ -193,7 +192,7 @@ const EditableConditionComponent = class {
193
192
  preferenceIs(value) {
194
193
  var _a, _b;
195
194
  const oldValue = (_b = (_a = this.workingCondition) === null || _a === void 0 ? void 0 : _a.preference) === null || _b === void 0 ? void 0 : _b.is;
196
- this.workingCondition = new index$1.Condition(Object.assign(Object.assign({}, this.workingCondition), { preference: Object.assign(Object.assign({}, this.workingCondition.preference), { is: value }) }));
195
+ this.workingCondition = new book.Condition(Object.assign(Object.assign({}, this.workingCondition), { preference: Object.assign(Object.assign({}, this.workingCondition.preference), { is: value }) }));
197
196
  this.ldfDocShouldChange.emit(new change.Change({
198
197
  path: `${this.path}/preference`,
199
198
  op: [{
@@ -3,10 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8fe0df8d.js');
6
- const index$1 = require('./index-c9b940c7.js');
7
- const change = require('./change-deff223a.js');
6
+ const book = require('./book-1a92678a.js');
7
+ const change = require('./change-cdb1e8c0.js');
8
8
  const locale = require('./locale-d4e925b1.js');
9
- require('./_commonjsHelpers-bcc1208a.js');
10
9
 
11
10
  const addCondition = "Add a Condition";
12
11
  const and = "All of the following are true";
@@ -81,11 +80,11 @@ const EditableConditionComponent = class {
81
80
  }));
82
81
  }
83
82
  // add to the array
84
- this.currentCondition = Object.assign(Object.assign({}, this.currentCondition), { conditions: this.currentCondition.conditions.concat(new index$1.Condition()) });
83
+ this.currentCondition = Object.assign(Object.assign({}, this.currentCondition), { conditions: this.currentCondition.conditions.concat(new book.Condition()) });
85
84
  const index = this.currentCondition.conditions.length - 1;
86
85
  this.ldfDocShouldChange.emit(new change.Change({
87
86
  path: `${this.path}/conditions`,
88
- op: [{ type: 'insertAt', index: index < 0 ? 0 : index, value: new index$1.Condition() }]
87
+ op: [{ type: 'insertAt', index: index < 0 ? 0 : index, value: new book.Condition() }]
89
88
  }));
90
89
  }
91
90
  render() {
@@ -2,17 +2,16 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index$1 = require('./index-8fe0df8d.js');
6
- const index = require('./index-c9b940c7.js');
7
- const option = require('./option-6fb78f5c.js');
5
+ const index = require('./index-8fe0df8d.js');
6
+ const book = require('./book-1a92678a.js');
7
+ const option = require('./option-a078d432.js');
8
8
  const locale = require('./locale-d4e925b1.js');
9
- require('./_commonjsHelpers-bcc1208a.js');
10
9
 
11
10
  /* Converts a list of documents into a single document showing options in parallel */
12
11
  function docsToOption(d, versions = undefined) {
13
12
  if (Array.isArray(d)) {
14
13
  // remove duplicates if literally same JSON
15
- const docs = Array.from(new Set(d.map((doc) => JSON.stringify(doc)))).map((doc) => new index.LiturgicalDocument(JSON.parse(doc)));
14
+ const docs = Array.from(new Set(d.map((doc) => JSON.stringify(doc)))).map((doc) => new book.LiturgicalDocument(JSON.parse(doc)));
16
15
  // sort by preferred version
17
16
  let sorted;
18
17
  if (versions !== undefined && versions.length > 0) {
@@ -60,8 +59,8 @@ const LOCALE = {
60
59
  };
61
60
  const EditableFilterDocumentsComponent = class {
62
61
  constructor(hostRef) {
63
- index$1.registerInstance(this, hostRef);
64
- this.ldfDocumentSelected = index$1.createEvent(this, "ldfDocumentSelected", 7);
62
+ index.registerInstance(this, hostRef);
63
+ this.ldfDocumentSelected = index.createEvent(this, "ldfDocumentSelected", 7);
65
64
  this.filteredOptions = [];
66
65
  /** Whether to include a `LiturgicalDocument.version` field with the selection */
67
66
  this.versions = {};
@@ -134,14 +133,14 @@ const EditableFilterDocumentsComponent = class {
134
133
  }
135
134
  render() {
136
135
  const localeStrings = this.localeStrings || {};
137
- return (index$1.h(index$1.Host, null, this.modal && index$1.h("ion-header", null, index$1.h("ion-toolbar", null, index$1.h("ion-buttons", { slot: "end" }, index$1.h("ion-button", { onClick: () => this.modal.dismiss() }, index$1.h("ion-icon", { name: "close", slot: "icon-only" }))))), index$1.h("ion-content", null, index$1.h("form", null, index$1.h("ion-list", null, index$1.h("ion-button", { fill: "clear", onClick: () => { this.chooseDoc(docsToOption(this.filteredOptions)); this.choose(); } }, index$1.h("ion-label", null, localeStrings.includeAll)), this.versions && index$1.h("ion-item", null, index$1.h("ion-label", null, localeStrings.version), index$1.h("ion-select", { value: this.version, onIonChange: (ev) => this.chooseVersion(ev.detail.value) }, Object.entries(this.versions)
136
+ return (index.h(index.Host, null, this.modal && index.h("ion-header", null, index.h("ion-toolbar", null, index.h("ion-buttons", { slot: "end" }, index.h("ion-button", { onClick: () => this.modal.dismiss() }, index.h("ion-icon", { name: "close", slot: "icon-only" }))))), index.h("ion-content", null, index.h("form", null, index.h("ion-list", null, index.h("ion-button", { fill: "clear", onClick: () => { this.chooseDoc(docsToOption(this.filteredOptions)); this.choose(); } }, index.h("ion-label", null, localeStrings.includeAll)), this.versions && index.h("ion-item", null, index.h("ion-label", null, localeStrings.version), index.h("ion-select", { value: this.version, onIonChange: (ev) => this.chooseVersion(ev.detail.value) }, Object.entries(this.versions)
138
137
  .sort((a, b) => a[0] > b[0] ? 1 : -1)
139
- .map(([versionKey, versionLabel]) => index$1.h("ion-select-option", { value: versionKey }, versionLabel)))), index$1.h("ion-searchbar", { onIonChange: (ev) => this.filter(ev.detail.value) }), this.filteredOptions && this.filteredOptions.map(doc => {
138
+ .map(([versionKey, versionLabel]) => index.h("ion-select-option", { value: versionKey }, versionLabel)))), index.h("ion-searchbar", { onIonChange: (ev) => this.filter(ev.detail.value) }), this.filteredOptions && this.filteredOptions.map(doc => {
140
139
  var _a, _b, _c, _d;
141
- return index$1.h("ion-item", { button: true, onClick: () => { this.chooseDoc(doc); this.choose(); }, color: doc == this.doc ? 'primary' : undefined }, (_b = (_a = doc.label) !== null && _a !== void 0 ? _a : doc.version_label) !== null && _b !== void 0 ? _b : `${(_d = (_c = (((doc.value || [])[0] || {}).text)) !== null && _c !== void 0 ? _c : (doc.value || [])[0]) !== null && _d !== void 0 ? _d : ''}${doc.citation ? ` (${doc.citation})` : ''}`);
140
+ return index.h("ion-item", { button: true, onClick: () => { this.chooseDoc(doc); this.choose(); }, color: doc == this.doc ? 'primary' : undefined }, (_b = (_a = doc.label) !== null && _a !== void 0 ? _a : doc.version_label) !== null && _b !== void 0 ? _b : `${(_d = (_c = (((doc.value || [])[0] || {}).text)) !== null && _c !== void 0 ? _c : (doc.value || [])[0]) !== null && _d !== void 0 ? _d : ''}${doc.citation ? ` (${doc.citation})` : ''}`);
142
141
  }))))));
143
142
  }
144
- get element() { return index$1.getElement(this); }
143
+ get element() { return index.getElement(this); }
145
144
  static get watchers() { return {
146
145
  "version": ["versionChange"],
147
146
  "versions": ["versionsChange"],
@@ -3,16 +3,15 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8fe0df8d.js');
6
- const index$1 = require('./index-c9b940c7.js');
7
- const change = require('./change-deff223a.js');
8
- const option = require('./option-6fb78f5c.js');
9
- const specificClass = require('./specific-class-071762e7.js');
6
+ const book = require('./book-1a92678a.js');
7
+ const change = require('./change-cdb1e8c0.js');
8
+ const option = require('./option-a078d432.js');
9
+ const specificClass = require('./specific-class-76b4d343.js');
10
10
  const locale = require('./locale-d4e925b1.js');
11
- require('./_commonjsHelpers-bcc1208a.js');
12
- require('./rubric-ad2f926f.js');
13
- require('./heading-fae3ce98.js');
14
- require('./refrain-f51fd88d.js');
15
- require('./text-8d8d32e7.js');
11
+ require('./rubric-0afbe4c0.js');
12
+ require('./heading-5afc2b24.js');
13
+ require('./refrain-91fb446b.js');
14
+ require('./text-5edb80f3.js');
16
15
 
17
16
  const LOCALE_STRINGS = {
18
17
  "allowMultiple": "Allow multiple options",
@@ -262,7 +261,7 @@ const EditableMetadataMetadataFieldsComponent = class {
262
261
  }
263
262
  catch (e) {
264
263
  console.warn(e);
265
- this.obj = new index$1.LiturgicalDocument();
264
+ this.obj = new book.LiturgicalDocument();
266
265
  }
267
266
  }
268
267
  introsChanged() {