@venite/components 0.16.5 → 0.16.9
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.
- package/dist/cjs/{index-5e2cc9e9.js → book-1a92678a.js} +1 -92
- package/dist/cjs/{heading-d3809e59.js → heading-5afc2b24.js} +2 -2
- package/dist/cjs/{image-f0ace076.js → image-3bee3e73.js} +2 -2
- package/dist/cjs/ion-button_13.cjs.entry.js +1 -2
- package/dist/cjs/ion-card-content_6.cjs.entry.js +2 -3
- package/dist/cjs/ion-checkbox_3.cjs.entry.js +1 -2
- package/dist/cjs/ion-input_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment_16.cjs.entry.js +25 -23
- package/dist/cjs/ldf-day-name_5.cjs.entry.js +73 -71
- package/dist/cjs/ldf-editable-add-block-menu.cjs.entry.js +9 -10
- package/dist/cjs/ldf-editable-condition-piece.cjs.entry.js +5 -6
- package/dist/cjs/ldf-editable-condition.cjs.entry.js +3 -4
- package/dist/cjs/ldf-editable-filter-documents.cjs.entry.js +10 -11
- package/dist/cjs/ldf-editable-lookup_2.cjs.entry.js +8 -9
- package/dist/cjs/ldf-editable-metadata.cjs.entry.js +9 -10
- package/dist/cjs/ldf-editable-preference-option.cjs.entry.js +1 -2
- package/dist/cjs/ldf-editable-preference.cjs.entry.js +1 -2
- package/dist/cjs/ldf-editable-preferences.cjs.entry.js +1 -2
- package/dist/cjs/ldf-editable-string-list.cjs.entry.js +1 -2
- package/dist/cjs/ldf-editor.cjs.entry.js +12 -12
- package/dist/cjs/{option-961df0f2.js → option-e2221398.js} +3 -3
- package/dist/cjs/{refrain-a605892e.js → refrain-91fb446b.js} +2 -2
- package/dist/cjs/{rubric-662d8baa.js → rubric-5b467a6a.js} +8 -8
- package/dist/cjs/{specific-class-94e41d45.js → specific-class-c586a541.js} +5 -5
- package/dist/cjs/{text-c5e8ca0a.js → text-5edb80f3.js} +2 -2
- package/dist/collection/components/bible-reading/bible-reading.js +6 -3
- package/dist/collection/components/bible-reading/dist/bible-reading.js +354 -0
- package/dist/collection/components/option/dist/option.js +318 -0
- package/dist/collection/components/psalm/dist/psalm.js +0 -1
- package/dist/collection/components/psalm/psalm.js +0 -1
- package/dist/collection/components/string/dist/string.js +2 -3
- package/dist/collection/components/string/string.js +3 -4
- package/dist/collection/components/text/dist/text.js +3 -2
- package/dist/collection/components/text/text.js +6 -3
- package/dist/esm/{index-f5b9b789.js → book-31b8cdde.js} +1 -92
- package/dist/esm/{heading-c9eb7d89.js → heading-cc5ffa8a.js} +1 -1
- package/dist/esm/{image-f0e35b01.js → image-c6a3f0c5.js} +1 -1
- package/dist/esm/ion-button_13.entry.js +1 -2
- package/dist/esm/ion-card-content_6.entry.js +2 -3
- package/dist/esm/ion-checkbox_3.entry.js +1 -2
- package/dist/esm/ion-input_2.entry.js +1 -1
- package/dist/esm/ion-segment_16.entry.js +12 -10
- package/dist/esm/ldf-day-name_5.entry.js +12 -10
- package/dist/esm/ldf-editable-add-block-menu.entry.js +7 -8
- package/dist/esm/ldf-editable-condition-piece.entry.js +1 -2
- package/dist/esm/ldf-editable-condition.entry.js +1 -2
- package/dist/esm/ldf-editable-filter-documents.entry.js +2 -3
- package/dist/esm/ldf-editable-lookup_2.entry.js +7 -8
- package/dist/esm/ldf-editable-metadata.entry.js +7 -8
- package/dist/esm/ldf-editable-preference-option.entry.js +1 -2
- package/dist/esm/ldf-editable-preference.entry.js +1 -2
- package/dist/esm/ldf-editable-preferences.entry.js +1 -2
- package/dist/esm/ldf-editable-string-list.entry.js +1 -2
- package/dist/esm/ldf-editor.entry.js +1 -1
- package/dist/esm/{option-b80b12c6.js → option-d0361d23.js} +2 -2
- package/dist/esm/{refrain-810c4de5.js → refrain-75a412cb.js} +1 -1
- package/dist/esm/{rubric-2330a030.js → rubric-91bf7fed.js} +1 -1
- package/dist/esm/{specific-class-c2f505d5.js → specific-class-943fc789.js} +5 -5
- package/dist/esm/{text-ce1ed17d.js → text-ed75fbd4.js} +1 -1
- package/dist/ldf/ldf.esm.js +1 -1
- package/dist/ldf/p-03afc8cb.entry.js +1 -0
- package/dist/ldf/{p-c77ce7bf.js → p-161be025.js} +1 -1
- package/dist/ldf/{p-db435131.entry.js → p-23af1bc3.entry.js} +1 -1
- package/dist/ldf/p-2ae548b3.entry.js +1 -0
- package/dist/ldf/p-3b31b6af.entry.js +1 -0
- package/dist/ldf/p-3f8ef67b.entry.js +1 -0
- package/dist/ldf/p-476327d6.js +1 -0
- package/dist/ldf/p-48aafa34.entry.js +1 -0
- package/dist/ldf/p-4aa9a6f2.js +1 -0
- package/dist/ldf/p-594fa9d4.entry.js +1 -0
- package/dist/ldf/{p-937ffc85.js → p-5b43e6be.js} +1 -1
- package/dist/ldf/p-65563763.entry.js +1 -0
- package/dist/ldf/p-65d26c45.js +1 -0
- package/dist/ldf/p-65ea7ab3.entry.js +1 -0
- package/dist/ldf/p-800a115c.entry.js +1 -0
- package/dist/ldf/{p-9e82b403.js → p-8f67abb8.js} +1 -1
- package/dist/ldf/p-932f9f17.entry.js +1 -0
- package/dist/ldf/p-9c1973a6.entry.js +1 -0
- package/dist/ldf/p-a1729dbd.js +1 -0
- package/dist/ldf/p-b4bbe638.js +1 -0
- package/dist/ldf/{p-4a60affd.entry.js → p-d41efada.entry.js} +1 -1
- package/dist/ldf/p-e4f0cd91.entry.js +1 -0
- package/dist/ldf/p-f0de7628.entry.js +1 -0
- package/dist/ldf/{p-c1bcd0a9.entry.js → p-fa191f47.entry.js} +1 -1
- package/dist/ldf/p-fb2e5aa0.entry.js +1 -0
- package/package.json +2 -2
- package/dist/ldf/p-0d44076e.entry.js +0 -1
- package/dist/ldf/p-1504379f.entry.js +0 -1
- package/dist/ldf/p-2fa1c501.entry.js +0 -1
- package/dist/ldf/p-3174f69c.entry.js +0 -1
- package/dist/ldf/p-31d27100.js +0 -1
- package/dist/ldf/p-37f356a4.entry.js +0 -1
- package/dist/ldf/p-4d392128.entry.js +0 -1
- package/dist/ldf/p-626a614d.entry.js +0 -1
- package/dist/ldf/p-673e7c2c.entry.js +0 -1
- package/dist/ldf/p-698a3399.entry.js +0 -1
- package/dist/ldf/p-73a16936.entry.js +0 -1
- package/dist/ldf/p-8ee9ccd3.js +0 -1
- package/dist/ldf/p-972e4f2a.entry.js +0 -1
- package/dist/ldf/p-9cf557f9.js +0 -1
- package/dist/ldf/p-b355bfa2.js +0 -1
- package/dist/ldf/p-b667a7c2.entry.js +0 -1
- package/dist/ldf/p-d49a739d.js +0 -1
- package/dist/ldf/p-d7fa99cc.entry.js +0 -1
- package/dist/ldf/p-ff51dbd0.entry.js +0 -1
|
@@ -3,15 +3,15 @@ import { c as config, g as getIonMode } from './ionic-global-ef89a0a5.js';
|
|
|
3
3
|
import { p as pointerCoord } from './helpers-8c93393b.js';
|
|
4
4
|
import { c as createColorClasses, h as hostContext } from './theme-74c22054.js';
|
|
5
5
|
import { f as alertController, l as loadingController, m as modalController, t as toastController } from './overlays-06b43b65.js';
|
|
6
|
-
import { R as Responsive, L as LiturgicalDocument, d as dateFromYMDString } from './
|
|
7
|
-
import { B as BibleReading, L as Liturgy, M as Meditation, P as Psalm, R as ResponsivePrayer, a as Rubric } from './rubric-
|
|
8
|
-
import { H as Heading } from './heading-
|
|
9
|
-
import { v as versionToString, O as Option } from './option-
|
|
6
|
+
import { R as Responsive, L as LiturgicalDocument, d as dateFromYMDString } from './book-31b8cdde.js';
|
|
7
|
+
import { B as BibleReading, L as Liturgy, M as Meditation, P as Psalm, R as ResponsivePrayer, a as Rubric } from './rubric-91bf7fed.js';
|
|
8
|
+
import { H as Heading } from './heading-cc5ffa8a.js';
|
|
9
|
+
import { v as versionToString, O as Option } from './option-d0361d23.js';
|
|
10
10
|
import { C as Change } from './change-ea574d32.js';
|
|
11
11
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
12
|
-
import { I as Image } from './image-
|
|
12
|
+
import { I as Image } from './image-c6a3f0c5.js';
|
|
13
13
|
import { D as Debounce } from './index-f08f6130.js';
|
|
14
|
-
import { R as Refrain } from './refrain-
|
|
14
|
+
import { R as Refrain } from './refrain-75a412cb.js';
|
|
15
15
|
import './hardware-back-button-b3b61715.js';
|
|
16
16
|
import './_commonjsHelpers-ba3f0406.js';
|
|
17
17
|
|
|
@@ -618,9 +618,12 @@ const BibleReadingComponent = class {
|
|
|
618
618
|
else {
|
|
619
619
|
responseNode = h("span", { class: "response" }, " ", this.obj.metadata.response);
|
|
620
620
|
}
|
|
621
|
-
return (h(Host, null, ((_l = this.obj) === null || _l === void 0 ? void 0 : _l.label) && h("ldf-heading", { doc: new Heading({ type: 'heading', metadata: { level: 3 }, value: [this.obj.label] }) }), h("div", { lang: (_m = this.obj) === null || _m === void 0 ? void 0 : _m.language, class: `bible-reading ${((_o = this.obj) === null || _o === void 0 ? void 0 : _o.display_format) || 'default'}` }, h("p", null, this.verses.map(verse
|
|
622
|
-
|
|
623
|
-
|
|
621
|
+
return (h(Host, null, ((_l = this.obj) === null || _l === void 0 ? void 0 : _l.label) && h("ldf-heading", { doc: new Heading({ type: 'heading', metadata: { level: 3 }, value: [this.obj.label] }) }), h("div", { lang: (_m = this.obj) === null || _m === void 0 ? void 0 : _m.language, class: `bible-reading ${((_o = this.obj) === null || _o === void 0 ? void 0 : _o.display_format) || 'default'}` }, h("p", null, this.verses.map((verse, verseIndex) => {
|
|
622
|
+
var _a;
|
|
623
|
+
return verse.hasOwnProperty('type') && verse.type === 'heading'
|
|
624
|
+
? h("ldf-heading", { doc: new Heading(verse) })
|
|
625
|
+
: h("ldf-string", { citation: { book: verse.book, chapter: verse.chapter, verse: verse.verse }, id: this.obj.uid, text: verse.text, fragment: this.path, dropcap: ((_a = this.obj) === null || _a === void 0 ? void 0 : _a.display_format) == "force_dropcap" && verseIndex === 0 ? "force" : "disabled" });
|
|
626
|
+
}), shortResponse && !((_q = (_p = this.obj) === null || _p === void 0 ? void 0 : _p.metadata) === null || _q === void 0 ? void 0 : _q.omit_response) && responseNode, h("span", { class: "citation" }, this.obj.citation)), !shortResponse && !((_s = (_r = this.obj) === null || _r === void 0 ? void 0 : _r.metadata) === null || _s === void 0 ? void 0 : _s.omit_response) && h("p", null, responseNode))));
|
|
624
627
|
}
|
|
625
628
|
/* `long` render a typical Bible reading in the liturgy */
|
|
626
629
|
else {
|
|
@@ -2213,7 +2216,6 @@ const PsalmComponent = class {
|
|
|
2213
2216
|
render() {
|
|
2214
2217
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
2215
2218
|
const includeAntiphon = this.obj.includeAntiphon();
|
|
2216
|
-
console.log('includeAntiphon = ', includeAntiphon);
|
|
2217
2219
|
// create blank psalm verse pattern
|
|
2218
2220
|
let pattern, templateMaker = (verse) => ({ type: 'psalm-verse', number: '', halfverse: '', verse });
|
|
2219
2221
|
if (this.editable) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, a as getElement, c as createEvent } from './index-f0f6a379.js';
|
|
2
|
-
import { d as dateFromYMDString, a as dateOnly } from './
|
|
3
|
-
import { T as Text } from './text-
|
|
2
|
+
import { d as dateFromYMDString, a as dateOnly } from './book-31b8cdde.js';
|
|
3
|
+
import { T as Text } from './text-ed75fbd4.js';
|
|
4
4
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
5
|
-
import { H as Heading } from './heading-
|
|
5
|
+
import { H as Heading } from './heading-cc5ffa8a.js';
|
|
6
6
|
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-ba3f0406.js';
|
|
7
7
|
import { m as modalController } from './overlays-06b43b65.js';
|
|
8
8
|
import './ionic-global-ef89a0a5.js';
|
|
@@ -61,7 +61,7 @@ class LiturgicalDay {
|
|
|
61
61
|
propers = slug;
|
|
62
62
|
}
|
|
63
63
|
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);
|
|
64
|
-
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,
|
|
64
|
+
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,
|
|
65
65
|
season,
|
|
66
66
|
octave,
|
|
67
67
|
collect, holy_days: (this.holy_days || new Array()).concat(holydays), holy_day_observed: holy_day_is_observed ? observed : this.holy_day_observed }));
|
|
@@ -475,11 +475,10 @@ const StringComponent = class {
|
|
|
475
475
|
let final = processed;
|
|
476
476
|
if (firstChunk) {
|
|
477
477
|
const splitTest = (firstChunk || '').split(/[\s.!?\\]/);
|
|
478
|
-
console.log('firstChunk = ', firstChunk);
|
|
479
478
|
const firstWord = splitTest ? splitTest[0] : '', re = firstWord.length > 2
|
|
480
|
-
? /^ ?([\"\'“”‘’\!\?\[\]\(\)
|
|
481
|
-
: /^ ?([\"\'“”‘’\!\?\[\]\(\)
|
|
482
|
-
? /^ ?([\"\'“”‘’\!\?\[\]\(\)
|
|
479
|
+
? /^ ?([\"\'“”‘’\!\?\[\]\(\)\,\w\u0590-\u05ff\u0370-\u03ff])([\w\u0590-\u05ff\u0370-\u03ff\,]*)/
|
|
480
|
+
: /^ ?([\"\'“”‘’\!\?\[\]\(\)\,\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(/[\"\'“”‘’\!\?\[\]\(\)]/))
|
|
481
|
+
? /^ ?([\"\'“”‘’\!\?\[\]\(\)\,\w\u0590-\u05ff\u0370-\u03ff]{2})\s*([\w\u0590-\u05ff\u0370-\u03ff]*)/
|
|
483
482
|
: re, buffer = firstWord.length == 1, split = firstChunk.split(reIncludingPunctuation).filter(s => s !== ''), [match1, match2, nextWord] = split;
|
|
484
483
|
final = new Array(h("span", { class: 'firstword' }, 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()))
|
|
485
484
|
.concat(nextWord)
|
|
@@ -5635,7 +5634,7 @@ const TextComponent = class {
|
|
|
5635
5634
|
? (((_d = this.obj) === null || _d === void 0 ? void 0 : _d.value) || []).map(s => s.replace(/\s+/g, ' '))
|
|
5636
5635
|
: (((_e = this.obj) === null || _e === void 0 ? void 0 : _e.value) || []);
|
|
5637
5636
|
let compiledValue = value.map(s => {
|
|
5638
|
-
return s.split(/([\*\w\n\s,:;\.\-–—'
|
|
5637
|
+
return s.split(/([\*\w\n\s,:;\.\-–—'“☩✠”‘’\!\?”\[\]\%\(\)\/\u0041-\u024F]+([^\*\w\n\s,;:\.'“”☩✠‘’”\-–—\!\?\[\]\%\(\)\/\u0041-\u024F]))/g);
|
|
5639
5638
|
});
|
|
5640
5639
|
if (!this.editable && ((_f = this.obj) === null || _f === void 0 ? void 0 : _f.display_format) === 'abbreviated') {
|
|
5641
5640
|
const firstSection = compiledValue[0], lastSection = compiledValue[compiledValue.length - 1];
|
|
@@ -5656,7 +5655,10 @@ const TextComponent = class {
|
|
|
5656
5655
|
return (h("div", { lang: ((_z = this.obj) === null || _z === void 0 ? void 0 : _z.language) || 'en', class: `text ${((_0 = this.obj) === null || _0 === void 0 ? void 0 : _0.display_format) || 'default'}` }, ((((_1 = this.obj) === null || _1 === void 0 ? void 0 : _1.label) && !((_3 = (_2 = this.obj) === null || _2 === void 0 ? void 0 : _2.metadata) === null || _3 === void 0 ? void 0 : _3.omit_label)) || ((_4 = this.obj) === null || _4 === void 0 ? void 0 : _4.citation)) && h("ldf-heading", { path: this.path, doc: new Heading({ type: 'heading', metadata: { level: 3 }, value: [((_5 = this.obj.metadata) === null || _5 === void 0 ? void 0 : _5.omit_label) ? '' : this.obj.label], citation: this.obj.citation, source: this.obj.source }) }), compiledValue.map((prayer, prayerIndex) => {
|
|
5657
5656
|
var _a, _b, _c, _d;
|
|
5658
5657
|
return h("p", { class: "text-body", id: `${this.obj.uid || this.obj.slug}-prayerIndex` }, prayer === null || prayer === void 0 ? void 0 :
|
|
5659
|
-
prayer.map((chunk, chunkIndex) =>
|
|
5658
|
+
prayer.map((chunk, chunkIndex) => {
|
|
5659
|
+
var _a;
|
|
5660
|
+
return h("span", { id: `${this.obj.uid || this.obj.slug}-${prayerIndex}-${chunkIndex}` }, 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 }));
|
|
5661
|
+
}), ((_b = (_a = this.obj) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.response) && prayerIndex == compiledValue.length - 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 && h("span", { class: "response" }, " ", localeStrings.amen));
|
|
5660
5662
|
})));
|
|
5661
5663
|
}
|
|
5662
5664
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, H as Host, a as getElement } from './index-f0f6a379.js';
|
|
2
|
-
import { L as LiturgicalDocument } from './
|
|
3
|
-
import { B as BibleReading, P as Psalm, L as Liturgy$1, M as Meditation, R as ResponsivePrayer, a as Rubric } from './rubric-
|
|
4
|
-
import { H as Heading } from './heading-
|
|
5
|
-
import { I as Image } from './image-
|
|
6
|
-
import { O as Option } from './option-
|
|
7
|
-
import { R as Refrain } from './refrain-
|
|
8
|
-
import { T as Text } from './text-
|
|
2
|
+
import { L as LiturgicalDocument } from './book-31b8cdde.js';
|
|
3
|
+
import { B as BibleReading, P as Psalm, L as Liturgy$1, M as Meditation, R as ResponsivePrayer, a as Rubric } from './rubric-91bf7fed.js';
|
|
4
|
+
import { H as Heading } from './heading-cc5ffa8a.js';
|
|
5
|
+
import { I as Image } from './image-c6a3f0c5.js';
|
|
6
|
+
import { O as Option } from './option-d0361d23.js';
|
|
7
|
+
import { R as Refrain } from './refrain-75a412cb.js';
|
|
8
|
+
import { T as Text } from './text-ed75fbd4.js';
|
|
9
9
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
10
|
-
import './_commonjsHelpers-ba3f0406.js';
|
|
11
10
|
|
|
12
11
|
const MENU = [
|
|
13
12
|
{
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, H as Host, a as getElement } from './index-f0f6a379.js';
|
|
2
|
-
import { C as Condition } from './
|
|
2
|
+
import { C as Condition } from './book-31b8cdde.js';
|
|
3
3
|
import { C as Change } from './change-ea574d32.js';
|
|
4
4
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
5
|
-
import './_commonjsHelpers-ba3f0406.js';
|
|
6
5
|
|
|
7
6
|
//import { PROPERS } from './propers';
|
|
8
7
|
const WEEKDAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-f0f6a379.js';
|
|
2
|
-
import { C as Condition } from './
|
|
2
|
+
import { C as Condition } from './book-31b8cdde.js';
|
|
3
3
|
import { C as Change } from './change-ea574d32.js';
|
|
4
4
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
5
|
-
import './_commonjsHelpers-ba3f0406.js';
|
|
6
5
|
|
|
7
6
|
const addCondition = "Add a Condition";
|
|
8
7
|
const and = "All of the following are true";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-f0f6a379.js';
|
|
2
|
-
import { L as LiturgicalDocument } from './
|
|
3
|
-
import { v as versionToString, O as Option } from './option-
|
|
2
|
+
import { L as LiturgicalDocument } from './book-31b8cdde.js';
|
|
3
|
+
import { v as versionToString, O as Option } from './option-d0361d23.js';
|
|
4
4
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
5
|
-
import './_commonjsHelpers-ba3f0406.js';
|
|
6
5
|
|
|
7
6
|
/* Converts a list of documents into a single document showing options in parallel */
|
|
8
7
|
function docsToOption(d, versions = undefined) {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-f0f6a379.js';
|
|
2
|
-
import { L as LiturgicalDocument } from './
|
|
2
|
+
import { L as LiturgicalDocument } from './book-31b8cdde.js';
|
|
3
3
|
import { C as Change } from './change-ea574d32.js';
|
|
4
|
-
import { v as versionToString } from './option-
|
|
5
|
-
import { s as specificClass } from './specific-class-
|
|
4
|
+
import { v as versionToString } from './option-d0361d23.js';
|
|
5
|
+
import { s as specificClass } from './specific-class-943fc789.js';
|
|
6
6
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
11
|
-
import './text-ce1ed17d.js';
|
|
7
|
+
import './rubric-91bf7fed.js';
|
|
8
|
+
import './heading-cc5ffa8a.js';
|
|
9
|
+
import './refrain-75a412cb.js';
|
|
10
|
+
import './text-ed75fbd4.js';
|
|
12
11
|
|
|
13
12
|
const LOCALE_STRINGS = {
|
|
14
13
|
"allowMultiple": "Allow multiple options",
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-f0f6a379.js';
|
|
2
|
-
import { L as LiturgicalDocument } from './
|
|
2
|
+
import { L as LiturgicalDocument } from './book-31b8cdde.js';
|
|
3
3
|
import { C as Change } from './change-ea574d32.js';
|
|
4
|
-
import { s as specificClass } from './specific-class-
|
|
4
|
+
import { s as specificClass } from './specific-class-943fc789.js';
|
|
5
5
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
11
|
-
import './text-ce1ed17d.js';
|
|
6
|
+
import './rubric-91bf7fed.js';
|
|
7
|
+
import './heading-cc5ffa8a.js';
|
|
8
|
+
import './option-d0361d23.js';
|
|
9
|
+
import './refrain-75a412cb.js';
|
|
10
|
+
import './text-ed75fbd4.js';
|
|
12
11
|
|
|
13
12
|
const abbreviated = "Abbreviated";
|
|
14
13
|
const advanced = "Advanced Settings";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-f0f6a379.js';
|
|
2
|
-
import './
|
|
2
|
+
import './book-31b8cdde.js';
|
|
3
3
|
import { a as PreferenceOption } from './preference-d070d4cb.js';
|
|
4
4
|
import { C as Change } from './change-ea574d32.js';
|
|
5
5
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
6
|
-
import './_commonjsHelpers-ba3f0406.js';
|
|
7
6
|
|
|
8
7
|
const additional = "Advanced Settings";
|
|
9
8
|
const alternateYear = "“Alternate Year” Reading";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-f0f6a379.js';
|
|
2
|
-
import './
|
|
2
|
+
import './book-31b8cdde.js';
|
|
3
3
|
import { P as Preference, a as PreferenceOption } from './preference-d070d4cb.js';
|
|
4
4
|
import { C as Change } from './change-ea574d32.js';
|
|
5
5
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
6
|
-
import './_commonjsHelpers-ba3f0406.js';
|
|
7
6
|
|
|
8
7
|
const add = "Add an Option";
|
|
9
8
|
const category = "Category";
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, H as Host, a as getElement } from './index-f0f6a379.js';
|
|
2
2
|
import { f as alertController } from './overlays-06b43b65.js';
|
|
3
|
-
import './
|
|
3
|
+
import './book-31b8cdde.js';
|
|
4
4
|
import { P as Preference } from './preference-d070d4cb.js';
|
|
5
5
|
import { C as Change } from './change-ea574d32.js';
|
|
6
6
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
7
7
|
import './ionic-global-ef89a0a5.js';
|
|
8
8
|
import './hardware-back-button-b3b61715.js';
|
|
9
|
-
import './_commonjsHelpers-ba3f0406.js';
|
|
10
9
|
|
|
11
10
|
function categoriesToPreferenceTree(categories, preferences) {
|
|
12
11
|
return categories.reduce((obj, category) => (Object.assign(Object.assign({}, obj), { [category]: Object.entries(preferences)
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-f0f6a379.js';
|
|
2
|
-
import './
|
|
2
|
+
import './book-31b8cdde.js';
|
|
3
3
|
import { C as Change } from './change-ea574d32.js';
|
|
4
4
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
5
|
-
import './_commonjsHelpers-ba3f0406.js';
|
|
6
5
|
|
|
7
6
|
const category = {
|
|
8
7
|
add: "Add a Category",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-f0f6a379.js';
|
|
2
|
-
import { L as LiturgicalDocument } from './
|
|
2
|
+
import { L as LiturgicalDocument } from './book-31b8cdde.js';
|
|
3
3
|
import { C as Cursor } from './cursor-0e47f111.js';
|
|
4
4
|
import { C as Change } from './change-ea574d32.js';
|
|
5
5
|
import { e as elementFromPath, q as querySelectorDeep, v as values_js } from './index-1bf6d100.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as LiturgicalDocument } from './
|
|
1
|
+
import { L as LiturgicalDocument } from './book-31b8cdde.js';
|
|
2
2
|
|
|
3
3
|
function versionToString(version) {
|
|
4
4
|
if (typeof version === 'string') {
|
|
@@ -89,7 +89,7 @@ class Option extends LiturgicalDocument {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
// Readings with same citation + different versions => Version
|
|
92
|
-
else if (uniqueCitations == 1) {
|
|
92
|
+
else if (option.type == 'bible-reading' && uniqueCitations == 1) {
|
|
93
93
|
label = versionToString(option.version);
|
|
94
94
|
}
|
|
95
95
|
// Readings with one version => John 1:1-4
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { M as Meditation, P as Psalm, B as BibleReading, R as ResponsivePrayer, a as Rubric, L as Liturgy } from './rubric-
|
|
2
|
-
import { H as Heading } from './heading-
|
|
3
|
-
import { O as Option } from './option-
|
|
4
|
-
import { R as Refrain } from './refrain-
|
|
5
|
-
import { T as Text } from './text-
|
|
1
|
+
import { M as Meditation, P as Psalm, B as BibleReading, R as ResponsivePrayer, a as Rubric, L as Liturgy } from './rubric-91bf7fed.js';
|
|
2
|
+
import { H as Heading } from './heading-cc5ffa8a.js';
|
|
3
|
+
import { O as Option } from './option-d0361d23.js';
|
|
4
|
+
import { R as Refrain } from './refrain-75a412cb.js';
|
|
5
|
+
import { T as Text } from './text-ed75fbd4.js';
|
|
6
6
|
|
|
7
7
|
/** Transforms a generic `LiturgicalDocument` (either a class instance or an `Object` that matches the type),
|
|
8
8
|
* into an instance of a more-specific inherited class */
|
package/dist/ldf/ldf.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-978e2c6d.js";import{g as t}from"./p-4b80de48.js";import"./p-d282d4f9.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>(t(),o(JSON.parse('[["p-ff51dbd0",[[2,"ldf-prayers-and-thanksgivings",{"base":[513],"index":[513],"modal":[8],"parent":[8],"options":[16],"localeStrings":[32],"currentOptions":[32],"filter":[32],"setOptions":[64]}],[34,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}],[33,"ion-title",{"color":[1],"size":[1]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[2,"click","onClick"]]],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[33,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]},[[0,"ionStyle","itemStyle"]]],[33,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]],[34,"ion-buttons",{"collapse":[4]}],[34,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[33,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"svgContent":[32],"isVisible":[32]}],[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["p-626a614d",[[2,"ldf-editable-metadata",{"doc":[1],"path":[513],"visible":[4],"collapsed":[4],"modal":[8],"obj":[32],"localeStrings":[32],"collapsedState":[32],"showAdvanced":[32]}]]],["p-db435131",[[6,"ldf-editor",{"doc":[1],"users":[16],"uid":[1],"cursors":[16],"listUsers":[4,"list-users"],"preview":[4],"obj":[32],"cursor":[32],"focusObj":[32]},[[0,"ldfCursorMoved","onCursorMoved"],[4,"ldfDocShouldChange","onDocShouldChange"],[0,"ldfDocShouldAdd","onDocShouldAdd"],[0,"ldfAddChildAfter","onAddChildAfter"],[0,"ldfMergeWithPrevious","onMergeWithPrevious"],[4,"ldfAskForBibleIntros","onAskForBibleIntros"],[4,"ldfAskForCanticleOptions","onAskForCanticleOptions"],[4,"ldfAskForPrayersAndThanksgivings","onAskForPT"],[4,"ldfShouldAddGloriaPatri","onShouldAddGloriaPatri"],[8,"paste","onPaste"],[8,"drop","onDrop"],[8,"dragover","onDragOver"],[8,"dragenter","onDragEnter"],[0,"focusObj","onFocusObj"]]]]],["p-4d392128",[[2,"ldf-editable-condition",{"path":[513],"obj":[16],"modal":[8],"localeStrings":[32],"currentCondition":[32]}]]],["p-972e4f2a",[[2,"ldf-editable-preferences",{"path":[513],"obj":[16],"modal":[8],"tree":[32],"specialTree":[32],"localeStrings":[32],"currentPreferences":[32],"currentSpecialPreferences":[32]}]]],["p-673e7c2c",[[2,"ldf-editable-filter-documents",{"modal":[8],"type":[1],"versions":[16],"options":[16],"changeCallback":[16],"localeStrings":[32],"filteredOptions":[32],"doc":[32],"version":[32],"setVersions":[64],"setOptions":[64]}]]],["p-c1df632d",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]]]],["p-0d44076e",[[2,"ldf-editable-add-block-menu",{"localeStrings":[32],"menu":[32]},[[0,"ionChange","onIonChange"]]]]],["p-5be7ff17",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-4e0b3c0f",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-380f8655",[[33,"ion-back-button",{"color":[1],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1]}]]],["p-374118d7",[[33,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1]}]]],["p-9bd5d1d4",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-2c36a583",[[33,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["p-302dc0d5",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}]]],["p-e0e12ae3",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}]]],["p-018e57db",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-ea66c343",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}]]],["p-3f39c2ad",[[33,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}]]],["p-c41e055c",[[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]]]],["p-7abeb82c",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-d7966e9b",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-c3841978",[[33,"ion-reorder",null,[[2,"click","onClick"]]]]],["p-c82dd468",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[32,"ionTabBarChanged","onTabBarChanged"]]]]],["p-08584ccc",[[0,"ion-app"]]],["p-c6163f81",[[33,"ion-avatar"]]],["p-8c2727db",[[33,"ion-badge",{"color":[1]}]]],["p-c3042920",[[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}]]],["p-07d6d3ad",[[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["p-32f7ba8e",[[36,"ion-footer",{"translucent":[4]}]]],["p-9c397c49",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["p-327b14ac",[[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["p-dd99e42a",[[33,"ion-item-divider",{"color":[1],"sticky":[4]}]]],["p-8932ec85",[[32,"ion-item-group"]]],["p-d195c957",[[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}]]],["p-ba021918",[[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["p-21e2f0a3",[[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["p-fe59a676",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}]]],["p-4a4380fa",[[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"]}]]],["p-69f85ad3",[[33,"ion-note",{"color":[1]}]]],["p-3c9930ff",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],["p-cbfbb80c",[[33,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["p-ec5eecdc",[[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["p-84f38db6",[[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["p-b7388aec",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16]}]]],["p-6fe24d85",[[0,"ion-route-redirect",{"from":[1],"to":[1]}]]],["p-25a736f1",[[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]]]],["p-3545fcdc",[[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"target":[1]}]]],["p-0873a34a",[[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}]]],["p-c3807857",[[0,"ion-slide"]]],["p-9e2c172e",[[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["p-ca698b8f",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["p-59340423",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}]]],["p-c74d3fd0",[[33,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},[[8,"keyboardWillHide","onKeyboardWillHide"],[8,"keyboardWillShow","onKeyboardWillShow"]]]]],["p-8767a74e",[[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["p-430c418a",[[1,"ion-text",{"color":[1]}]]],["p-e4be11ad",[[34,"ion-textarea",{"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]}]]],["p-dc445c36",[[1,"ion-thumbnail"]]],["p-ac7a17ce",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["p-c1bcd0a9",[[2,"ldf-editable-text",{"text":[1],"path":[513],"placeholder":[1],"short":[4],"unit":[1],"inputType":[1,"input-type"],"template":[1],"templateMaker":[16],"currentText":[32],"localeStrings":[32]},[[0,"input","onInput"],[0,"focusout","onFocusOut"],[0,"select","onSelect"],[0,"focus","onFocus"],[0,"click","onClick"],[0,"keydown","onKeyDown"]]],[34,"ion-input",{"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]}]]],["p-37f356a4",[[2,"ldf-editable-preference-option",{"path":[513],"option":[16],"localeStrings":[32],"currentOption":[32]}]]],["p-2fa1c501",[[2,"ldf-editable-preference",{"path":[513],"preference":[16],"modal":[8],"localeStrings":[32],"currentPreference":[32]}]]],["p-79a526a1",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["p-73a16936",[[2,"ldf-editable-string-list",{"path":[513],"property":[513],"value":[16],"localeStrings":[32],"optimisticValues":[32],"currentValue":[32]}]]],["p-04715bf0",[[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[33,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["p-1504379f",[[2,"ldf-editable-condition-piece",{"path":[513],"condition":[16],"localeStrings":[32],"workingCondition":[32]}]]],["p-52656429",[[32,"ion-picker-column",{"col":[16]}]]],["p-70e47f8b",[[2,"ldf-editor-cursors",{"parent":[16],"users":[16],"uid":[513],"cursors":[16],"cursorPos":[32]},[[5,"scroll","onScroll"],[9,"resize","onResize"]]]]],["p-63b5daf6",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["p-e215fd02",[[33,"ion-list-header",{"color":[1],"lines":[1]}]]],["p-1a8e2899",[[33,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"target":[1]}],[33,"ion-card-header",{"color":[1],"translucent":[4]}]]],["p-66a7385e",[[33,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"value":[8],"checked":[32]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]}]]],["p-c6b42618",[[33,"ion-chip",{"color":[1],"outline":[4]}]]],["p-b78336d7",[[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["p-698a3399",[[2,"ldf-editable-delete",{"base":[513],"index":[520],"type":[1],"obj":[8],"localeStrings":[32]},[[0,"click","onClick"]]],[2,"ldf-editable-boolean",{"path":[513],"property":[513],"value":[4]},[[0,"ionChange","onChange"]]],[33,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["p-b667a7c2",[[1,"ldf-heading",{"doc":[1],"path":[513],"editable":[4],"obj":[32],"localeStrings":[32]}],[2,"ldf-day-name",{"day":[1],"obj":[32],"localeStrings":[32]}],[6,"ldf-text",{"doc":[1],"path":[513],"editable":[4],"obj":[32],"localeStrings":[32]}],[2,"ldf-string",{"text":[1],"citation":[16],"dropcap":[1],"dropcapMinLength":[2,"dropcap-min-length"],"replaceTetragrammaton":[4,"replace-tetragrammaton"],"index":[2],"fragment":[1],"processedString":[32]}],[1,"ldf-label-bar",{"center":[516]}]]],["p-4a60affd",[[6,"ldf-bible-reading",{"doc":[1],"path":[513],"editable":[4],"obj":[32],"localeStrings":[32],"verses":[32],"loadingError":[32],"changeReading":[64]}],[2,"ldf-liturgical-document",{"doc":[1],"path":[513],"base":[513],"index":[2],"parentType":[513,"parent-type"],"editable":[4],"preview":[4],"padding":[1],"obj":[32],"localeStrings":[32],"hasFocus":[32]},[[0,"dragover","onDragOver"],[4,"selectionchange","selectionChangeHandler"],[3,"mouseover","onMouseOver"],[3,"mouseout","onMouseOut"],[2,"click","onClick"]]],[2,"ldf-editable-add-block",{"visible":[4],"base":[513],"index":[514],"localeStrings":[32]}],[2,"ldf-option",{"doc":[1],"path":[513],"editable":[4],"preview":[4],"obj":[32],"localeStrings":[32],"filteredOptions":[32],"select":[64]}],[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}],[33,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"value":[1025],"activated":[32]}],[6,"ldf-psalm",{"doc":[1],"path":[513],"editable":[4],"obj":[32],"localeStrings":[32],"filteredValue":[32],"focusedVerse":[32],"focusedSection":[32]}],[6,"ldf-responsive-prayer",{"doc":[1],"path":[513],"editable":[4],"obj":[32],"localeStrings":[32]}],[2,"ldf-editable-metadata-buttons",{"visible":[4],"base":[513],"index":[514],"obj":[16],"parentType":[1,"parent-type"],"preview":[4],"localeStrings":[32],"collapsedState":[32],"modal":[32]}],[2,"ldf-editable-select",{"path":[513],"property":[513],"options":[16],"value":[8],"placeholder":[1]},[[0,"ionChange","onChange"]]],[2,"ldf-liturgy",{"doc":[1],"path":[513],"editable":[4],"preview":[4],"obj":[32],"hasFocus":[32]},[[0,"focusPath","onFocusPath"]]],[6,"ldf-image",{"doc":[1],"path":[513],"editable":[4],"modal":[8],"obj":[32],"localeStrings":[32],"isResizing":[32],"height":[32],"width":[32]},[[5,"mouseup","stopResizing"],[9,"mousemove","resizingMove"]]],[2,"ldf-meditation",{"doc":[1],"path":[513],"editable":[4],"color":[1],"autostart":[4],"obj":[32],"localeStrings":[32],"secondsRemaining":[32],"started":[32],"paused":[32],"start":[64],"pause":[64],"resume":[64],"rewind":[64],"duration":[64],"reset":[64]}],[6,"ldf-refrain",{"doc":[1],"path":[513],"editable":[4],"obj":[32]}],[6,"ldf-rubric",{"doc":[1],"path":[513],"editable":[4],"obj":[32]}],[1,"ion-skeleton-text",{"animated":[4]}]]],["p-d7fa99cc",[[2,"ldf-editable-antiphon-field",{"path":[513],"antiphon":[1],"omit_antiphon":[4],"insert_antiphon":[4],"localeStrings":[32],"currentAntiphon":[32],"currentOmitAntiphon":[32],"currentInsertAntiphon":[32],"mode":[32]}],[32,"ion-card-content"],[33,"ion-card-title",{"color":[1]}],[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["p-3174f69c",[[2,"ldf-editable-metadata-metadata-fields",{"path":[513],"doc":[1],"bibleReadingIntros":[16],"localeStrings":[32],"fields":[32],"obj":[32],"currentBibleReadingIntros":[32],"setBibleReadingIntros":[64]}],[2,"ldf-editable-lookup",{"path":[513],"lookup":[16],"types":[16],"currentLookup":[32]}]]],["p-7efa633b",[[33,"ion-card-subtitle",{"color":[1]}]]]]'),e))));
|
|
1
|
+
import{p as e,b as o}from"./p-978e2c6d.js";import{g as t}from"./p-4b80de48.js";import"./p-d282d4f9.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>(t(),o(JSON.parse('[["p-e4f0cd91",[[2,"ldf-prayers-and-thanksgivings",{"base":[513],"index":[513],"modal":[8],"parent":[8],"options":[16],"localeStrings":[32],"currentOptions":[32],"filter":[32],"setOptions":[64]}],[34,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}],[33,"ion-title",{"color":[1],"size":[1]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[2,"click","onClick"]]],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[33,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]},[[0,"ionStyle","itemStyle"]]],[33,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]],[34,"ion-buttons",{"collapse":[4]}],[34,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[33,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"svgContent":[32],"isVisible":[32]}],[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["p-48aafa34",[[2,"ldf-editable-metadata",{"doc":[1],"path":[513],"visible":[4],"collapsed":[4],"modal":[8],"obj":[32],"localeStrings":[32],"collapsedState":[32],"showAdvanced":[32]}]]],["p-23af1bc3",[[6,"ldf-editor",{"doc":[1],"users":[16],"uid":[1],"cursors":[16],"listUsers":[4,"list-users"],"preview":[4],"obj":[32],"cursor":[32],"focusObj":[32]},[[0,"ldfCursorMoved","onCursorMoved"],[4,"ldfDocShouldChange","onDocShouldChange"],[0,"ldfDocShouldAdd","onDocShouldAdd"],[0,"ldfAddChildAfter","onAddChildAfter"],[0,"ldfMergeWithPrevious","onMergeWithPrevious"],[4,"ldfAskForBibleIntros","onAskForBibleIntros"],[4,"ldfAskForCanticleOptions","onAskForCanticleOptions"],[4,"ldfAskForPrayersAndThanksgivings","onAskForPT"],[4,"ldfShouldAddGloriaPatri","onShouldAddGloriaPatri"],[8,"paste","onPaste"],[8,"drop","onDrop"],[8,"dragover","onDragOver"],[8,"dragenter","onDragEnter"],[0,"focusObj","onFocusObj"]]]]],["p-594fa9d4",[[2,"ldf-editable-condition",{"path":[513],"obj":[16],"modal":[8],"localeStrings":[32],"currentCondition":[32]}]]],["p-03afc8cb",[[2,"ldf-editable-preferences",{"path":[513],"obj":[16],"modal":[8],"tree":[32],"specialTree":[32],"localeStrings":[32],"currentPreferences":[32],"currentSpecialPreferences":[32]}]]],["p-fb2e5aa0",[[2,"ldf-editable-filter-documents",{"modal":[8],"type":[1],"versions":[16],"options":[16],"changeCallback":[16],"localeStrings":[32],"filteredOptions":[32],"doc":[32],"version":[32],"setVersions":[64],"setOptions":[64]}]]],["p-c1df632d",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]]]],["p-3b31b6af",[[2,"ldf-editable-add-block-menu",{"localeStrings":[32],"menu":[32]},[[0,"ionChange","onIonChange"]]]]],["p-5be7ff17",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-4e0b3c0f",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-380f8655",[[33,"ion-back-button",{"color":[1],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1]}]]],["p-374118d7",[[33,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1]}]]],["p-9bd5d1d4",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-2c36a583",[[33,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["p-302dc0d5",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}]]],["p-e0e12ae3",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}]]],["p-018e57db",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-ea66c343",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}]]],["p-3f39c2ad",[[33,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}]]],["p-c41e055c",[[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]]]],["p-7abeb82c",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-d7966e9b",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-c3841978",[[33,"ion-reorder",null,[[2,"click","onClick"]]]]],["p-c82dd468",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[32,"ionTabBarChanged","onTabBarChanged"]]]]],["p-08584ccc",[[0,"ion-app"]]],["p-c6163f81",[[33,"ion-avatar"]]],["p-8c2727db",[[33,"ion-badge",{"color":[1]}]]],["p-c3042920",[[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}]]],["p-07d6d3ad",[[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["p-32f7ba8e",[[36,"ion-footer",{"translucent":[4]}]]],["p-9c397c49",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["p-327b14ac",[[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["p-dd99e42a",[[33,"ion-item-divider",{"color":[1],"sticky":[4]}]]],["p-8932ec85",[[32,"ion-item-group"]]],["p-d195c957",[[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}]]],["p-ba021918",[[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["p-21e2f0a3",[[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["p-fe59a676",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}]]],["p-4a4380fa",[[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"]}]]],["p-69f85ad3",[[33,"ion-note",{"color":[1]}]]],["p-3c9930ff",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],["p-cbfbb80c",[[33,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["p-ec5eecdc",[[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["p-84f38db6",[[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["p-b7388aec",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16]}]]],["p-6fe24d85",[[0,"ion-route-redirect",{"from":[1],"to":[1]}]]],["p-25a736f1",[[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]]]],["p-3545fcdc",[[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"target":[1]}]]],["p-0873a34a",[[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}]]],["p-c3807857",[[0,"ion-slide"]]],["p-9e2c172e",[[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["p-ca698b8f",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["p-59340423",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}]]],["p-c74d3fd0",[[33,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},[[8,"keyboardWillHide","onKeyboardWillHide"],[8,"keyboardWillShow","onKeyboardWillShow"]]]]],["p-8767a74e",[[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["p-430c418a",[[1,"ion-text",{"color":[1]}]]],["p-e4be11ad",[[34,"ion-textarea",{"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]}]]],["p-dc445c36",[[1,"ion-thumbnail"]]],["p-ac7a17ce",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["p-fa191f47",[[2,"ldf-editable-text",{"text":[1],"path":[513],"placeholder":[1],"short":[4],"unit":[1],"inputType":[1,"input-type"],"template":[1],"templateMaker":[16],"currentText":[32],"localeStrings":[32]},[[0,"input","onInput"],[0,"focusout","onFocusOut"],[0,"select","onSelect"],[0,"focus","onFocus"],[0,"click","onClick"],[0,"keydown","onKeyDown"]]],[34,"ion-input",{"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]}]]],["p-800a115c",[[2,"ldf-editable-preference-option",{"path":[513],"option":[16],"localeStrings":[32],"currentOption":[32]}]]],["p-65ea7ab3",[[2,"ldf-editable-preference",{"path":[513],"preference":[16],"modal":[8],"localeStrings":[32],"currentPreference":[32]}]]],["p-79a526a1",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["p-2ae548b3",[[2,"ldf-editable-string-list",{"path":[513],"property":[513],"value":[16],"localeStrings":[32],"optimisticValues":[32],"currentValue":[32]}]]],["p-04715bf0",[[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[33,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["p-65563763",[[2,"ldf-editable-condition-piece",{"path":[513],"condition":[16],"localeStrings":[32],"workingCondition":[32]}]]],["p-52656429",[[32,"ion-picker-column",{"col":[16]}]]],["p-70e47f8b",[[2,"ldf-editor-cursors",{"parent":[16],"users":[16],"uid":[513],"cursors":[16],"cursorPos":[32]},[[5,"scroll","onScroll"],[9,"resize","onResize"]]]]],["p-63b5daf6",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["p-e215fd02",[[33,"ion-list-header",{"color":[1],"lines":[1]}]]],["p-1a8e2899",[[33,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"target":[1]}],[33,"ion-card-header",{"color":[1],"translucent":[4]}]]],["p-66a7385e",[[33,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"value":[8],"checked":[32]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]}]]],["p-c6b42618",[[33,"ion-chip",{"color":[1],"outline":[4]}]]],["p-b78336d7",[[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["p-f0de7628",[[2,"ldf-editable-delete",{"base":[513],"index":[520],"type":[1],"obj":[8],"localeStrings":[32]},[[0,"click","onClick"]]],[2,"ldf-editable-boolean",{"path":[513],"property":[513],"value":[4]},[[0,"ionChange","onChange"]]],[33,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["p-3f8ef67b",[[1,"ldf-heading",{"doc":[1],"path":[513],"editable":[4],"obj":[32],"localeStrings":[32]}],[2,"ldf-day-name",{"day":[1],"obj":[32],"localeStrings":[32]}],[6,"ldf-text",{"doc":[1],"path":[513],"editable":[4],"obj":[32],"localeStrings":[32]}],[2,"ldf-string",{"text":[1],"citation":[16],"dropcap":[1],"dropcapMinLength":[2,"dropcap-min-length"],"replaceTetragrammaton":[4,"replace-tetragrammaton"],"index":[2],"fragment":[1],"processedString":[32]}],[1,"ldf-label-bar",{"center":[516]}]]],["p-d41efada",[[6,"ldf-bible-reading",{"doc":[1],"path":[513],"editable":[4],"obj":[32],"localeStrings":[32],"verses":[32],"loadingError":[32],"changeReading":[64]}],[2,"ldf-liturgical-document",{"doc":[1],"path":[513],"base":[513],"index":[2],"parentType":[513,"parent-type"],"editable":[4],"preview":[4],"padding":[1],"obj":[32],"localeStrings":[32],"hasFocus":[32]},[[0,"dragover","onDragOver"],[4,"selectionchange","selectionChangeHandler"],[3,"mouseover","onMouseOver"],[3,"mouseout","onMouseOut"],[2,"click","onClick"]]],[2,"ldf-editable-add-block",{"visible":[4],"base":[513],"index":[514],"localeStrings":[32]}],[2,"ldf-option",{"doc":[1],"path":[513],"editable":[4],"preview":[4],"obj":[32],"localeStrings":[32],"filteredOptions":[32],"select":[64]}],[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}],[33,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"value":[1025],"activated":[32]}],[6,"ldf-psalm",{"doc":[1],"path":[513],"editable":[4],"obj":[32],"localeStrings":[32],"filteredValue":[32],"focusedVerse":[32],"focusedSection":[32]}],[6,"ldf-responsive-prayer",{"doc":[1],"path":[513],"editable":[4],"obj":[32],"localeStrings":[32]}],[2,"ldf-editable-metadata-buttons",{"visible":[4],"base":[513],"index":[514],"obj":[16],"parentType":[1,"parent-type"],"preview":[4],"localeStrings":[32],"collapsedState":[32],"modal":[32]}],[2,"ldf-editable-select",{"path":[513],"property":[513],"options":[16],"value":[8],"placeholder":[1]},[[0,"ionChange","onChange"]]],[2,"ldf-liturgy",{"doc":[1],"path":[513],"editable":[4],"preview":[4],"obj":[32],"hasFocus":[32]},[[0,"focusPath","onFocusPath"]]],[6,"ldf-image",{"doc":[1],"path":[513],"editable":[4],"modal":[8],"obj":[32],"localeStrings":[32],"isResizing":[32],"height":[32],"width":[32]},[[5,"mouseup","stopResizing"],[9,"mousemove","resizingMove"]]],[2,"ldf-meditation",{"doc":[1],"path":[513],"editable":[4],"color":[1],"autostart":[4],"obj":[32],"localeStrings":[32],"secondsRemaining":[32],"started":[32],"paused":[32],"start":[64],"pause":[64],"resume":[64],"rewind":[64],"duration":[64],"reset":[64]}],[6,"ldf-refrain",{"doc":[1],"path":[513],"editable":[4],"obj":[32]}],[6,"ldf-rubric",{"doc":[1],"path":[513],"editable":[4],"obj":[32]}],[1,"ion-skeleton-text",{"animated":[4]}]]],["p-9c1973a6",[[2,"ldf-editable-antiphon-field",{"path":[513],"antiphon":[1],"omit_antiphon":[4],"insert_antiphon":[4],"localeStrings":[32],"currentAntiphon":[32],"currentOmitAntiphon":[32],"currentInsertAntiphon":[32],"mode":[32]}],[32,"ion-card-content"],[33,"ion-card-title",{"color":[1]}],[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["p-932f9f17",[[2,"ldf-editable-metadata-metadata-fields",{"path":[513],"doc":[1],"bibleReadingIntros":[16],"localeStrings":[32],"fields":[32],"obj":[32],"currentBibleReadingIntros":[32],"setBibleReadingIntros":[64]}],[2,"ldf-editable-lookup",{"path":[513],"lookup":[16],"types":[16],"currentLookup":[32]}]]],["p-7efa633b",[[33,"ion-card-subtitle",{"color":[1]}]]]]'),e))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,r as t,c as i,H as l,a as n}from"./p-978e2c6d.js";import{f as s}from"./p-d7f8c770.js";import"./p-4aa9a6f2.js";import{P as o}from"./p-8ec26587.js";import{C as r}from"./p-991c0877.js";import{g as a}from"./p-0491d1d2.js";import"./p-d282d4f9.js";import"./p-f3a0c163.js";const c=({path:t,tree:i,label:l,desc:n,localeStrings:s,newCallback:o})=>new Array(e("ion-card",null,e("ion-card-header",null,e("ion-card-title",null,l),n&&e("ion-card-subtitle",null,n)),Object.keys(i).map((l=>e("section",null,e("ion-list",null,e("ion-list-header",null,l),i[l].map((i=>[e("ion-toolbar",null,e("ion-title",{slot:"start"},i.label," (",e("code",null,i.key),")"),e("ion-buttons",{slot:"end"},e("ldf-editable-delete",{base:t,index:i.key,type:"object",obj:i}))),e("ion-item",null,e("ldf-editable-preference",{path:t+"/"+i.key,preference:i}))])))))),e("ion-item",{lines:"none"},e("ion-button",{onClick:e=>o(e)},e("ion-icon",{slot:"start",name:"add"}),s.addPreference||"Add Preference")))),d={en:{addPreference:"Add Preference",cancel:"Cancel",label:"Label",new_preference:"New Preference",ok:"OK",preferences:"Preferences",special_preferences:"Special Preferences",special_preferences_desc:"These won’t be saved between sessions. (For example, you might include a ‘Footwashing’ setting to be used on Maundy Thursday.)"}},h=class{constructor(e){t(this,e),this.ldfDocShouldChange=i(this,"ldfDocShouldChange",7)}objChange(){var e,t,i,l;console.log("(EditablePreferences) obj changed, rebuilding trees"),this.currentPreferences=(null===(t=null===(e=this.obj)||void 0===e?void 0:e.metadata)||void 0===t?void 0:t.preferences)||{},this.tree=this.buildTree(this.currentPreferences),this.currentSpecialPreferences=(null===(l=null===(i=this.obj)||void 0===i?void 0:i.metadata)||void 0===l?void 0:l.special_preferences)||{},this.specialTree=this.buildTree(this.currentSpecialPreferences)}componentWillLoad(){var e,t,i,l,n,s,o,a;this.currentPreferences=(null===(t=null===(e=this.obj)||void 0===e?void 0:e.metadata)||void 0===t?void 0:t.preferences)||{},this.currentSpecialPreferences=(null===(l=null===(i=this.obj)||void 0===i?void 0:i.metadata)||void 0===l?void 0:l.special_preferences)||{},this.tree=this.buildTree(this.currentPreferences),this.specialTree=this.buildTree(this.currentSpecialPreferences),(null===(s=null===(n=this.obj)||void 0===n?void 0:n.metadata)||void 0===s?void 0:s.preferences)||this.ldfDocShouldChange.emit(new r({path:`${this.path}/preferences`,op:[{type:"set",value:{}}]})),(null===(a=null===(o=this.obj)||void 0===o?void 0:o.metadata)||void 0===a?void 0:a.special_preferences)||this.ldfDocShouldChange.emit(new r({path:`${this.path}/special_preferences`,op:[{type:"set",value:{}}]})),this.loadLocaleStrings()}async loadLocaleStrings(){try{this.localeStrings=d[a(this.element)]}catch(e){console.warn(e)}}buildTree(e){return function(e,t){return e.reduce(((e,i)=>Object.assign(Object.assign({},e),{[i]:Object.entries(t).map((([e,t])=>new o(Object.assign(Object.assign({},t),{key:e})))).filter((e=>e.category==i||!e.category&&"Preferences"==i)).sort(((e,t)=>e.index&&t.index?e.index<t.index?-1:1:e.label<t.label?-1:1))})),{})}(function(e){return Object.values(e).map((e=>e.category||"Preferences")).reduce(((e,t)=>e.includes(t)?e:[...e,t]),[])}(e),e)}async addPreference(){var e,t;const{key:i,label:l}=await this.grabKeyFromAlert();this.currentPreferences=Object.assign(Object.assign({},this.currentPreferences),{[i]:new o({key:i,label:l})}),this.tree=this.buildTree(this.currentPreferences),this.emit(null===(t=null===(e=this.obj)||void 0===e?void 0:e.metadata)||void 0===t?void 0:t.preferences,"preferences",i,this.currentPreferences[i])}async addSpecialPreference(){var e,t;const{key:i,label:l}=await this.grabKeyFromAlert();this.currentSpecialPreferences=Object.assign(Object.assign({},this.currentSpecialPreferences),{[i]:new o({key:i,label:l})}),this.specialTree=this.buildTree(this.currentSpecialPreferences),this.emit(null===(t=null===(e=this.obj)||void 0===e?void 0:e.metadata)||void 0===t?void 0:t.special_preferences,"special_preferences",i,this.currentSpecialPreferences[i])}async grabKeyFromAlert(){var e,t;const i=this.localeStrings||{},l=await s.create({header:i.new_preference,inputs:[{name:"label",type:"text",placeholder:i.label}],buttons:[{text:i.cancel||"Cancel",role:"cancel",cssClass:"danger"},{text:i.ok||"OK"}]});await l.present();const n=await l.onDidDismiss(),o=null===(t=null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.values)||void 0===t?void 0:t.label;return{key:o.replace(/(?:^\w|[A-Z]|\b\w)/g,((e,t)=>0===t?e.toLowerCase():e.toUpperCase())).replace(/\s+/g,""),label:o}}emit(e,t,i,l){const n=`${this.path}/${t}`;this.ldfDocShouldChange.emit(new r(null==e?{path:n,op:[{type:"set",value:{[i]:l}}]}:{path:`${n}/${i}`,op:[{type:"set",value:l}]}))}render(){const t=this.localeStrings||{};return e(l,null,e("ion-header",null,e("ion-toolbar",null,e("ion-title",null,t.preferences),e("ion-buttons",{slot:"primary"},e("ion-button",{onClick:()=>this.modal.dismiss(null)},e("ion-icon",{slot:"icon-only",name:"close"}))))),e("ion-content",null,e(c,{path:`${this.path}/preferences`,tree:this.tree,label:t.preferences,newCallback:()=>this.addPreference(),localeStrings:t}),e(c,{path:`${this.path}/special_preferences`,tree:this.specialTree,label:t.special_preferences,desc:t.special_preferences_desc,newCallback:()=>this.addSpecialPreference(),localeStrings:t})))}get element(){return n(this)}static get watchers(){return{obj:["objChange"]}}};h.style="ldf-editable-preference.sc-ldf-editable-preferences{width:100%}";export{h as ldf_editable_preferences}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as e}from"./p-
|
|
1
|
+
import{L as e}from"./p-4aa9a6f2.js";function i(e){return"string"==typeof e?e:JSON.stringify(e)}const l={ip:"IP",bcp1979:"Rite II",bcp1979_psalm:"1979",eow:"EOW",coverdale:"Coverdale",rite_i:"Rite I"};function s(e){return"psalm"===e.type&&"psalm"===e.style&&"bcp1979"===e.version?"bcp1979_psalm":e.version}class t extends e{constructor(e={}){super(e)}availableDisplayFormats(){return[]}uniqueVersions(){return(this.value||[]).map((e=>i(e.version))).reduce(((e,i)=>e.includes(i)?e:[...e,i]),[]).length}uniqueLabels(){return(this.value||[]).map((e=>e.label)).reduce(((e,i)=>e.includes(i)?e:[...e,i]),[]).length}uniqueCitations(){return(this.value||[]).map((e=>e.citation?e.citation.toString():"")).filter((e=>!!e)).reduce(((e,i)=>e.includes(i)?e:[...e,i]),[]).length}uniqueCanticleNumbers(){return Array.from(new Set((this.value||[]).map((e=>{var i;return"canticle"===e.style?null===(i=e.metadata)||void 0===i?void 0:i.number:e.slug||Math.random()})))).length}getVersionLabel(e,t=50){var a,r,n;const o=this.uniqueVersions(),u=this.uniqueLabels(),f=this.uniqueCitations(),p=this.uniqueCanticleNumbers();let c="";if("liturgy"==e.type)c=e.label||e.version_label||"Option";else if("psalm"==e.type&&1==o&&e.label&&((null===(a=e.slug)||void 0===a?void 0:a.match(/psalm_119_/))||(null===(r=e.citation)||void 0===r?void 0:r.toString().match(/Ps[^\d]+119/))))c=e.label;else if("psalm"==e.type&&"psalm"==e.style&&(e.citation||(null===(n=e.metadata)||void 0===n?void 0:n.number))&&1==o)c=e.citation?e.citation.toString():`Psalm ${e.metadata.number}`;else if("bible-reading"==e.type&&f>1&&e.citation&&e.value&&e.value.length>0){const i=e.value.map((e=>e.hasOwnProperty("text")?e.text:e.toString())).join(" "),l="short"==e.style?` (“${i}”)`:"";c=o>1?`${e.citation.toString()} (${e.version})${l}`:`${e.citation.toString()}${l}`}else if("bible-reading"==e.type&&1==f)c=i(e.version);else if("bible-reading"==e.type&&e.citation&&1==o)c=e.citation.toString();else if("bible-reading"==e.type&&e.citation&&o>1)c=`${e.citation.toString()} (${i(e.version)})`;else if(1==o&&"psalm"==e.type&&"canticle"==e.style&&e.metadata&&e.metadata.localname)c=e.metadata.localname;else if(o>1&&1===p)c=l[i(s(e))];else if(o>1&&e.metadata&&e.metadata.hasOwnProperty("localname")&&e.version)c=`${e.metadata.localname} (${l[i(s(e))]})`;else if(e.version_label&&"bcp1979"!==e.version_label)c=e.version_label;else if(e.label&&u>1&&1==o)c=e.label;else if(e.label&&u>1&&o>1)c=`${e.label} (${l[i(s(e))]})`;else if(!e.metadata||!e.metadata.hasOwnProperty("localname")||e.version_label&&"bcp1979"!=e.version_label)if(o>1&&e.version)c=l[i(s(e))];else if(e.citation)c=e.citation.toString();else{if(!e.value)throw`Unable to generate a label from ${JSON.stringify(e)}`;c=`“${JSON.stringify(e.value).replace(/[\[\]\{\}\"\'\:]/g," ").replace(/\\n/g," ").trim()}”`}else c=e.metadata.localname;return c.length>t?c.substring(0,t)+"...":c}}export{t as O,i as v}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as n,h as e,H as o,a as s}from"./p-978e2c6d.js";import{L as i}from"./p-
|
|
1
|
+
import{r as t,c as n,h as e,H as o,a as s}from"./p-978e2c6d.js";import{L as i}from"./p-4aa9a6f2.js";import{C as r}from"./p-5066eaa5.js";import{C as a}from"./p-991c0877.js";import{e as d,q as h,v as l}from"./p-3ca74c80.js";import"./p-3e8ff66b.js";const p=class{constructor(e){t(this,e),this.editorCursorMoved=n(this,"editorCursorMoved",7),this.editorDocShouldChange=n(this,"editorDocShouldChange",7),this.editorDocShouldAdd=n(this,"editorDocShouldAdd",7),this.editorAskForBibleIntros=n(this,"editorAskForBibleIntros",7),this.editorAskForCanticleOptions=n(this,"editorAskForCanticleOptions",7),this.editorAskForPrayersAndThanksgivings=n(this,"editorAskForPrayersAndThanksgivings",7),this.editorShouldAddGloriaPatri=n(this,"editorShouldAddGloriaPatri",7),this.listUsers=!0,this.preview=!1}async docChanged(t){try{this.obj=new i("string"==typeof t?JSON.parse(t):t)}catch(t){console.warn(t),this.obj=new i}}componentWillLoad(){this.docChanged(this.doc)}onCursorMoved(t){this.editorCursorMoved.emit(t.detail||new r("",0,0,void 0))}onDocShouldChange(t){this.editorDocShouldChange.emit(t.detail)}onDocShouldAdd(t){this.editorDocShouldAdd.emit(t.detail)}onAddChildAfter(t){const{path:n,index:e}=this.pathAndIndexFromPath(t.detail.path),o=new a({path:n,op:[{type:"insertAt",index:e+1,value:t.detail.template}]});this.editorDocShouldChange.emit(o)}onMergeWithPrevious(t){var n;const{path:e,index:o,previousIndex:s,field:i}=this.pathAndIndexFromPath(t.detail.path),r=e.split("/").concat(s.toString()).concat(i).join("/").replace(/\/$/,"");if(s>=0){const i=d(this.el,r),h=(null===(n=i.shadowRoot)||void 0===n?void 0:n.querySelector("textarea"))||i.querySelector("textarea"),l=null==h?void 0:h.value,p={type:"edit",index:s,value:l.length>0?[l.length,t.detail.value]:[t.detail.value]},c=new a({path:e,op:[{type:"deleteAt",index:o,oldValue:t.detail.value}]}),u=new a({path:r,op:[p]});this.editorDocShouldChange.emit(u),this.editorDocShouldChange.emit(c),h.focus(),h.selectionStart=l.length,h.selectionEnd=l.length}}onAskForBibleIntros(t){this.editorAskForBibleIntros.emit(t.target.querySelector("ldf-editable-metadata-metadata-fields"))}onAskForCanticleOptions(){this.editorAskForCanticleOptions.emit(h("ldf-editable-filter-documents"))}onAskForPT(){this.editorAskForPrayersAndThanksgivings.emit(h("ldf-prayers-and-thanksgivings"))}onShouldAddGloriaPatri(t){this.editorShouldAddGloriaPatri.emit(t.detail)}async onPaste(t){try{const n=JSON.parse(t.clipboardData.getData("text"));if(n.type&&n.value){const{path:e,index:o}=this.focusObj?this.pathAndIndexFromPath(this.focusObj.path):{path:"/value",index:0},s=new a({path:e,op:[{type:"insertAt",index:o,value:n}]});this.editorDocShouldChange.emit(s),t.preventDefault(),t.stopPropagation()}}catch(t){console.log("Text pasted in that is not JSON.")}}async onDrop(t){try{const n=JSON.parse(t.dataTransfer.getData("application/json"));if(n.type&&n.value){const{path:e,index:o}=this.focusObj?this.pathAndIndexFromPath(this.focusObj.path):{path:"/value",index:0};console.log("dropped on ",e,o);const s=new a({path:e,op:[{type:"insertAt",index:o+1,value:n}]});this.editorDocShouldChange.emit(s),t.preventDefault(),t.stopPropagation()}}catch(t){console.log("Text pasted in that is not LDF JSON.")}}async onDragOver(t){t.dataTransfer.types.includes("application/json")&&t.preventDefault()}async onDragEnter(t){t.dataTransfer.types.includes("application/json")&&t.preventDefault()}pathAndIndexFromPath(t){const n=t.split("/"),e=n.slice(n.length-1)[0],o=n.slice(0,n.length-1);let s,i,r;if(Number(e)>=0)s=o.join("/"),i=Number(e);else{const t=n.slice(n.length-2,n.length-1)[0];s=n.slice(0,n.length-2).join("/"),i=Number(t),r=e}return{path:s,index:i,previousIndex:Number(i)-1,field:r}}onFocusObj(t){this.focusObj=t.detail}render(){const t=this.users||{},n=t[this.uid],s=Object.entries(t).filter((t=>t[0]!==this.uid));return e(o,null,this.listUsers&&e("ldf-label-bar",null,e("div",{slot:"start"},n&&e("span",null,"Logged in as ",e("span",{class:"user",style:{backgroundColor:new l(n.color).tint(40).hexString(),borderColor:new l(n.color).shade(10).hexString()}},n.displayName),". "),s&&s.length>0&&s.map((([,t])=>e("span",null,e("span",{class:"user",style:{backgroundColor:new l(t.color).tint(40).hexString(),borderColor:new l(t.color).shade(10).hexString()}},t.displayName)))).reduce(((t,n)=>null===t?[n]:[t,", ",n]),null)),e("slot",{name:"controls",slot:"end"})),e("ldf-editor-cursors",{parent:this.el,cursors:this.cursors,users:this.users,uid:this.uid}),this.obj&&e("ldf-liturgical-document",{editable:!0,preview:this.preview,path:"/",doc:this.obj}))}get el(){return s(this)}static get watchers(){return{doc:["docChanged"]}}};p.style='ldf-editor.sc-ldf-editor, .sc-ldf-editor-h {\n display: block;\n}\n\n.sc-ldf-editor-h textarea.sc-ldf-editor {\n display: block;\n\n width: 100%;\n max-width: 100%;\n max-height: 100%;\n\n border: 1px solid grey;\n\n outline: none;\n\n background: transparent;\n box-sizing: border-box;\n resize: none;\n appearance: none;\n\n font-family: inherit;\n}\n\n@keyframes "blink" {\n from, to {\n opacity: 0;\n }\n 50% {\n opacity: 1;\n }\n}\n\n.user.sc-ldf-editor {\n padding-top: 3px;\n padding-bottom: 3px;\n border-left-width: 2px;\n border-right-width: 2px;\n border-style: solid;\n border-top-width: 0;\n border-bottom-width: 0;\n}';export{p as ldf_editor}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as s,a as e}from"./p-978e2c6d.js";import"./p-4aa9a6f2.js";import{C as l}from"./p-991c0877.js";import{g as n}from"./p-0491d1d2.js";const o={en:{category:{add:"Add a Category",list:"Categories"},except:{add:"Except...",list:"Except the Following"},liturgyversions:{add:"Add a Liturgy Version",list:"Liturgy Versions"},only:{add:"Only",list:"Only the Following"}}},a=class{constructor(s){t(this,s),this.ldfDocShouldChange=i(this,"ldfDocShouldChange",7),this.optimisticValues=new Array}async componentWillLoad(){this.optimisticValues=this.value||new Array,this.loadLocaleStrings(),this.value&&Array.isArray(this.value)||this.ldfDocShouldChange.emit(new l({path:`${this.path}/${this.property}`,op:[{type:"set",value:new Array}]}))}async loadLocaleStrings(){try{this.localeStrings=o[n(this.element)]}catch(t){console.warn(t)}}onInput(t){this.currentValue=t.target.value}onKeyDown(t){13!=t.keyCode&&188!=t.keyCode||(t.preventDefault(),this.add())}add(){let t;t=new l(this.optimisticValues?{path:`${this.path}/${this.property}`,op:[{type:"insertAt",index:this.optimisticValues.length,value:this.currentValue}]}:{path:`${this.path}/${this.property}`,op:[{type:"set",value:new Array(this.currentValue)}]}),this.optimisticValues.push(this.currentValue),this.currentValue="",this.ldfDocShouldChange.emit(t)}remove(t){const i=this.optimisticValues[t];this.optimisticValues.splice(t,1),this.optimisticValues=[...this.optimisticValues];const s=new l(this.optimisticValues.length>0?{path:`${this.path}/${this.property}`,op:[{type:"deleteAt",index:t,oldValue:i}]}:{path:`${this.path}/${this.property}`,op:[{type:"set",value:[],oldValue:[i]}]});this.ldfDocShouldChange.emit(s)}render(){const t=(this.localeStrings||{})[this.property]||{};return s("ion-item",{lines:"none"},s("div",{class:"wrapper"},s("ion-label",{position:"stacked"},t.list),s("ul",null,this.optimisticValues.map(((t,i)=>s("li",null,s("ion-chip",null,s("ion-label",null,t),s("ion-icon",{name:"close-circle",onClick:()=>this.remove(i)})))))),s("div",{class:"controls"},s("ion-input",{placeholder:t.add,onIonInput:t=>this.onInput(t),onKeyDown:t=>this.onKeyDown(t),value:this.currentValue}),s("ion-button",{onClick:()=>this.add()},s("ion-icon",{slot:"icon-only",name:"add"})))))}get element(){return e(this)}};a.style=".wrapper.sc-ldf-editable-string-list{display:flex;flex-direction:column}li.sc-ldf-editable-string-list{list-style-type:none;margin:0;padding:0}ul.sc-ldf-editable-string-list{display:flex;flex-direction:row;padding:0}.controls.sc-ldf-editable-string-list{display:flex;flex-direction:row}";export{a as ldf_editable_string_list}
|