@venite/components 0.16.47 → 0.16.49
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/{book-82e0876b.js → book-6d16fad3.js} +1 -1
- package/dist/cjs/dropcaps-baa79b2d.js +21 -0
- package/dist/cjs/{heading-b7872a4d.js → heading-dff0a6f9.js} +1 -1
- package/dist/cjs/{image-75040cd8.js → image-527d7134.js} +1 -1
- package/dist/cjs/index-01fdec29.js +2 -2
- package/dist/cjs/ion-button_14.cjs.entry.js +1 -1
- package/dist/cjs/ion-card-content_6.cjs.entry.js +2 -2
- package/dist/cjs/ion-input_2.cjs.entry.js +1 -1
- package/dist/cjs/{ion-segment_16.cjs.entry.js → ion-segment_17.cjs.entry.js} +116 -45
- package/dist/cjs/ldf-day-name_5.cjs.entry.js +5 -7
- package/dist/cjs/ldf-editable-add-block-menu.cjs.entry.js +7 -7
- package/dist/cjs/ldf-editable-boolean_2.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-condition-piece.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-condition.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-filter-documents.cjs.entry.js +2 -2
- package/dist/cjs/ldf-editable-lookup_2.cjs.entry.js +7 -7
- package/dist/cjs/ldf-editable-metadata.cjs.entry.js +7 -7
- package/dist/cjs/ldf-editable-preference-option.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-preference.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-preferences.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-string-list.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editor.cjs.entry.js +1 -1
- package/dist/cjs/ldf.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{option-d7f9785e.js → option-af060fb4.js} +1 -1
- package/dist/cjs/{refrain-dcde813a.js → refrain-f867e88b.js} +1 -1
- package/dist/cjs/{rubric-cd1436af.js → rubric-9851b9bb.js} +1 -1
- package/dist/cjs/{specific-class-c2579d35.js → specific-class-a4d1cc65.js} +5 -5
- package/dist/cjs/{text-d86d8916.js → text-9dd495bb.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/bible-reading/bible-reading.js +5 -4
- package/dist/collection/components/editable-metadata-buttons/editable-metadata-buttons.js +2 -2
- package/dist/collection/components/liturgical-document/dist/liturgical-document.js +3 -0
- package/dist/collection/components/liturgical-document/liturgical-document.js +3 -0
- package/dist/collection/components/parallel/dist/option.js +318 -0
- package/dist/collection/components/parallel/dist/parallel.js +146 -0
- package/dist/collection/components/parallel/parallel.css +8 -0
- package/dist/collection/components/parallel/parallel.i18n.en.json +3 -0
- package/dist/collection/components/parallel/parallel.js +213 -0
- package/dist/collection/components/psalm/psalm.js +2 -1
- package/dist/collection/components/responsive-prayer/responsive-prayer.js +8 -7
- package/dist/collection/components/text/text.js +3 -5
- package/dist/collection/i18n/parallel.i18n.en.json +3 -0
- package/dist/collection/utils/dropcaps.js +17 -0
- package/dist/esm/{book-30d463e4.js → book-ffb2b7c9.js} +1 -1
- package/dist/esm/dropcaps-9409f9e0.js +19 -0
- package/dist/esm/{heading-3148493f.js → heading-32b75b51.js} +1 -1
- package/dist/esm/{image-72083f34.js → image-b773ce41.js} +1 -1
- package/dist/esm/index-034add74.js +2 -2
- package/dist/esm/ion-button_14.entry.js +1 -1
- package/dist/esm/ion-card-content_6.entry.js +2 -2
- package/dist/esm/ion-input_2.entry.js +1 -1
- package/dist/esm/{ion-segment_16.entry.js → ion-segment_17.entry.js} +116 -46
- package/dist/esm/ldf-day-name_5.entry.js +5 -7
- package/dist/esm/ldf-editable-add-block-menu.entry.js +7 -7
- package/dist/esm/ldf-editable-boolean_2.entry.js +1 -1
- package/dist/esm/ldf-editable-condition-piece.entry.js +1 -1
- package/dist/esm/ldf-editable-condition.entry.js +1 -1
- package/dist/esm/ldf-editable-filter-documents.entry.js +2 -2
- package/dist/esm/ldf-editable-lookup_2.entry.js +7 -7
- package/dist/esm/ldf-editable-metadata.entry.js +7 -7
- package/dist/esm/ldf-editable-preference-option.entry.js +1 -1
- package/dist/esm/ldf-editable-preference.entry.js +1 -1
- package/dist/esm/ldf-editable-preferences.entry.js +1 -1
- package/dist/esm/ldf-editable-string-list.entry.js +1 -1
- package/dist/esm/ldf-editor.entry.js +1 -1
- package/dist/esm/ldf.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{option-6f3f65cd.js → option-f5f45da6.js} +1 -1
- package/dist/esm/{refrain-7bd7ce8a.js → refrain-03edc2dd.js} +1 -1
- package/dist/esm/{rubric-4fcaa326.js → rubric-5e76db3e.js} +1 -1
- package/dist/esm/{specific-class-11a0f046.js → specific-class-19d5b8ae.js} +5 -5
- package/dist/esm/{text-8a1f3c31.js → text-035232e4.js} +1 -1
- package/dist/ldf/i18n/parallel.i18n.en.json +3 -0
- package/dist/ldf/ldf.esm.js +1 -1
- package/dist/ldf/p-07a5654e.js +1 -0
- package/dist/ldf/p-177719a0.entry.js +1 -0
- package/dist/ldf/{p-13c95df6.entry.js → p-1e912545.entry.js} +1 -1
- package/dist/ldf/{p-75945b61.entry.js → p-2a52fcd7.entry.js} +1 -1
- package/dist/ldf/{p-4cecd5be.js → p-3f3b5ab1.js} +1 -1
- package/dist/ldf/p-424ff111.entry.js +1 -0
- package/dist/ldf/{p-0275ff97.entry.js → p-4a2d5333.entry.js} +1 -1
- package/dist/ldf/{p-531b0af0.entry.js → p-5547df4c.entry.js} +1 -1
- package/dist/ldf/{p-809c58d3.js → p-619c1cd7.js} +1 -1
- package/dist/ldf/{p-b5f92da4.entry.js → p-64a75143.entry.js} +1 -1
- package/dist/ldf/{p-a54d398b.entry.js → p-6a61c406.entry.js} +1 -1
- package/dist/ldf/{p-28f67c35.entry.js → p-823625bb.entry.js} +1 -1
- package/dist/ldf/{p-be6a5a82.js → p-8e59a930.js} +1 -1
- package/dist/ldf/p-94095704.js +1 -0
- package/dist/ldf/{p-f51f98ee.entry.js → p-a745950c.entry.js} +1 -1
- package/dist/ldf/p-ae13ac48.js +1 -0
- package/dist/ldf/{p-49297483.js → p-c88be1ca.js} +1 -1
- package/dist/ldf/{p-76b4b747.entry.js → p-c9263178.entry.js} +1 -1
- package/dist/ldf/{p-4346d5f8.js → p-cf9d5530.js} +1 -1
- package/dist/ldf/{p-8bd9886e.entry.js → p-d15ff324.entry.js} +1 -1
- package/dist/ldf/p-d6b725e9.js +1 -0
- package/dist/ldf/{p-3d550f37.entry.js → p-dd824b02.entry.js} +1 -1
- package/dist/ldf/{p-3402f431.entry.js → p-e1f58e08.entry.js} +1 -1
- package/dist/ldf/{p-74080a1b.entry.js → p-e8a53a5e.entry.js} +1 -1
- package/dist/ldf/{p-c8423964.entry.js → p-e8bb8144.entry.js} +1 -1
- package/dist/ldf/{p-248ae134.entry.js → p-ea6696fa.entry.js} +1 -1
- package/dist/types/components/editable-metadata-buttons/editable-metadata-buttons.d.ts +1 -1
- package/dist/types/components/parallel/parallel.d.ts +41 -0
- package/dist/types/components/responsive-prayer/responsive-prayer.d.ts +2 -2
- package/dist/types/components.d.ts +56 -3
- package/dist/types/utils/dropcaps.d.ts +3 -0
- package/package.json +2 -2
- package/dist/ldf/p-705e7fad.js +0 -1
- package/dist/ldf/p-8d817f81.entry.js +0 -1
- package/dist/ldf/p-ce877995.js +0 -1
- package/dist/ldf/p-cf7fede1.entry.js +0 -1
- package/dist/ldf/p-de7668ff.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as n,h as e,H as o,d as s}from"./p-814a5a13.js";import{L as i}from"./p-
|
|
1
|
+
import{r as t,c as n,h as e,H as o,d as s}from"./p-814a5a13.js";import{L as i}from"./p-619c1cd7.js";import{C as r}from"./p-5066eaa5.js";import{C as d}from"./p-991c0877.js";import{e as a,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 d({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=a(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 d({path:e,op:[{type:"deleteAt",index:o,oldValue:t.detail.value}]}),u=new d({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 d({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 d({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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as n,H as e,d as o}from"./p-814a5a13.js";import{g as s}from"./p-b7c33573.js";import{d as r,i as a,j as h,p as l}from"./p-4aeedb04.js";import{c as d}from"./p-0e4de1d0.js";import{D as c}from"./p-e911e60d.js";import"./p-809c58d3.js";import{C as p}from"./p-5066eaa5.js";import{C as u}from"./p-991c0877.js";import{c as f}from"./p-3e8ff66b.js";import{g as v}from"./p-546bb0de.js";const g=class{constructor(n){t(this,n),this.ionInput=i(this,"ionInput",7),this.ionChange=i(this,"ionChange",7),this.ionBlur=i(this,"ionBlur",7),this.ionFocus=i(this,"ionFocus",7),this.ionStyle=i(this,"ionStyle",7),this.inputId="ion-input-"+m++,this.didBlurAfterEdit=!1,this.inheritedAttributes={},this.isComposing=!1,this.fireFocusEvents=!0,this.hasFocus=!1,this.autocapitalize="off",this.autocomplete="off",this.autocorrect="off",this.autofocus=!1,this.clearInput=!1,this.debounce=0,this.disabled=!1,this.name=this.inputId,this.readonly=!1,this.required=!1,this.spellcheck=!1,this.type="text",this.value="",this.onInput=t=>{const i=t.target;i&&(this.value=i.value||""),this.ionInput.emit(t)},this.onBlur=t=>{this.hasFocus=!1,this.focusChanged(),this.emitStyle(),this.fireFocusEvents&&this.ionBlur.emit(t)},this.onFocus=t=>{this.hasFocus=!0,this.focusChanged(),this.emitStyle(),this.fireFocusEvents&&this.ionFocus.emit(t)},this.onKeydown=t=>{this.shouldClearOnEdit()&&(this.didBlurAfterEdit&&this.hasValue()&&"Enter"!==t.key&&this.clearTextInput(),this.didBlurAfterEdit=!1)},this.onCompositionStart=()=>{this.isComposing=!0},this.onCompositionEnd=()=>{this.isComposing=!1},this.clearTextInput=t=>{this.clearInput&&!this.readonly&&!this.disabled&&t&&(t.preventDefault(),t.stopPropagation(),this.setFocus()),this.value="",this.nativeInput&&(this.nativeInput.value="")}}debounceChanged(){this.ionChange=r(this.ionChange,this.debounce)}disabledChanged(){this.emitStyle()}placeholderChanged(){this.emitStyle()}valueChanged(){const t=this.nativeInput,i=this.getValue();t&&t.value!==i&&!this.isComposing&&(t.value=i),this.emitStyle(),this.ionChange.emit({value:null==this.value?this.value:this.value.toString()})}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},a(this.el)),h(this.el,["tabindex","title"]))}connectedCallback(){this.emitStyle(),this.debounceChanged(),document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:this.el}))}componentDidLoad(){const t=this.nativeInput;t&&(t.addEventListener("compositionstart",this.onCompositionStart),t.addEventListener("compositionend",this.onCompositionEnd))}disconnectedCallback(){document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.el}));const t=this.nativeInput;t&&(t.removeEventListener("compositionstart",this.onCompositionStart),t.removeEventListener("compositionEnd",this.onCompositionEnd))}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async setBlur(){this.nativeInput&&this.nativeInput.blur()}getInputElement(){return Promise.resolve(this.nativeInput)}shouldClearOnEdit(){const{type:t,clearOnEdit:i}=this;return void 0===i?"password"===t:i}getValue(){return"number"==typeof this.value?this.value.toString():(this.value||"").toString()}emitStyle(){this.ionStyle.emit({interactive:!0,input:!0,"has-placeholder":void 0!==this.placeholder,"has-value":this.hasValue(),"has-focus":this.hasFocus,"interactive-disabled":this.disabled})}focusChanged(){!this.hasFocus&&this.shouldClearOnEdit()&&this.hasValue()&&(this.didBlurAfterEdit=!0)}hasValue(){return this.getValue().length>0}render(){const t=s(this),i=this.getValue(),o=this.inputId+"-lbl",r=l(this.el);return r&&(r.id=o),n(e,{"aria-disabled":this.disabled?"true":null,class:d(this.color,{[t]:!0,"has-value":this.hasValue(),"has-focus":this.hasFocus})},n("input",Object.assign({class:"native-input",ref:t=>this.nativeInput=t,"aria-labelledby":r?o:null,disabled:this.disabled,accept:this.accept,autoCapitalize:this.autocapitalize,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,min:this.min,max:this.max,minLength:this.minlength,maxLength:this.maxlength,multiple:this.multiple,name:this.name,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,step:this.step,size:this.size,type:this.type,value:i,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeydown},this.inheritedAttributes)),this.clearInput&&!this.readonly&&!this.disabled&&n("button",{"aria-label":"reset",type:"button",class:"input-clear-icon",onPointerDown:t=>{t.preventDefault()},onClick:this.clearTextInput}))}get el(){return o(this)}static get watchers(){return{debounce:["debounceChanged"],disabled:["disabledChanged"],placeholder:["placeholderChanged"],value:["valueChanged"]}}};let m=0;g.style={ios:".sc-ion-input-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:.5;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--background:transparent;--color:initial;display:flex;position:relative;flex:1;align-items:center;width:100%;padding:0 !important;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}ion-item.sc-ion-input-ios-h:not(.item-label),ion-item:not(.item-label) .sc-ion-input-ios-h{--padding-start:0}.ion-color.sc-ion-input-ios-h{color:var(--ion-color-base)}.native-input.sc-ion-input-ios{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;box-sizing:border-box;appearance:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.native-input.sc-ion-input-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.native-input.sc-ion-input-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-ios:invalid{box-shadow:none}.native-input.sc-ion-input-ios::-ms-clear{display:none}.native-input[disabled].sc-ion-input-ios{opacity:0.4}.cloned-input.sc-ion-input-ios{left:0;top:0;position:absolute;pointer-events:none}[dir=rtl].sc-ion-input-ios .cloned-input.sc-ion-input-ios,[dir=rtl].sc-ion-input-ios-h .cloned-input.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h .cloned-input.sc-ion-input-ios{left:unset;right:unset;right:0}.input-clear-icon.sc-ion-input-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;visibility:hidden;appearance:none}.input-clear-icon.sc-ion-input-ios:focus{opacity:0.5}.has-value.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{visibility:visible}.has-focus.sc-ion-input-ios-h{pointer-events:none}.has-focus.sc-ion-input-ios-h input.sc-ion-input-ios,.has-focus.sc-ion-input-ios-h a.sc-ion-input-ios,.has-focus.sc-ion-input-ios-h button.sc-ion-input-ios{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-ios-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-ios-h{transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.sc-ion-input-ios-h{--padding-top:10px;--padding-end:10px;--padding-bottom:10px;--padding-start:0;font-size:inherit}.item-label-stacked.sc-ion-input-ios-h,.item-label-stacked .sc-ion-input-ios-h,.item-label-floating.sc-ion-input-ios-h,.item-label-floating .sc-ion-input-ios-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0px}.input-clear-icon.sc-ion-input-ios{background-image:url(\"data:image/svg+xml;charset=utf-8,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'><path%20fill='var(--ion-color-step-600,%20%23666666)'%20d='M403.1,108.9c-81.2-81.2-212.9-81.2-294.2,0s-81.2,212.9,0,294.2c81.2,81.2,212.9,81.2,294.2,0S484.3,190.1,403.1,108.9z%20M352,340.2L340.2,352l-84.4-84.2l-84,83.8L160,339.8l84-83.8l-84-83.8l11.8-11.8l84,83.8l84.4-84.2l11.8,11.8L267.6,256L352,340.2z'/></svg>\");width:30px;height:30px;background-size:18px}",md:".sc-ion-input-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:.5;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--background:transparent;--color:initial;display:flex;position:relative;flex:1;align-items:center;width:100%;padding:0 !important;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}ion-item.sc-ion-input-md-h:not(.item-label),ion-item:not(.item-label) .sc-ion-input-md-h{--padding-start:0}.ion-color.sc-ion-input-md-h{color:var(--ion-color-base)}.native-input.sc-ion-input-md{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;box-sizing:border-box;appearance:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.native-input.sc-ion-input-md{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.native-input.sc-ion-input-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-md:invalid{box-shadow:none}.native-input.sc-ion-input-md::-ms-clear{display:none}.native-input[disabled].sc-ion-input-md{opacity:0.4}.cloned-input.sc-ion-input-md{left:0;top:0;position:absolute;pointer-events:none}[dir=rtl].sc-ion-input-md .cloned-input.sc-ion-input-md,[dir=rtl].sc-ion-input-md-h .cloned-input.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h .cloned-input.sc-ion-input-md{left:unset;right:unset;right:0}.input-clear-icon.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;visibility:hidden;appearance:none}.input-clear-icon.sc-ion-input-md:focus{opacity:0.5}.has-value.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{visibility:visible}.has-focus.sc-ion-input-md-h{pointer-events:none}.has-focus.sc-ion-input-md-h input.sc-ion-input-md,.has-focus.sc-ion-input-md-h a.sc-ion-input-md,.has-focus.sc-ion-input-md-h button.sc-ion-input-md{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-md-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-md-h{transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.sc-ion-input-md-h{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:8px;font-size:inherit}.item-label-stacked.sc-ion-input-md-h,.item-label-stacked .sc-ion-input-md-h,.item-label-floating.sc-ion-input-md-h,.item-label-floating .sc-ion-input-md-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0}.input-clear-icon.sc-ion-input-md{background-image:url(\"data:image/svg+xml;charset=utf-8,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'><polygon%20fill='var(--ion-color-step-600,%20%23666666)'%20points='405,136.798%20375.202,107%20256,226.202%20136.798,107%20107,136.798%20226.202,256%20107,375.202%20136.798,405%20256,285.798%20375.202,405%20405,375.202%20285.798,256'/></svg>\");width:30px;height:30px;background-size:22px}"};var b=f((function(t){function i(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}var n=-1;i.prototype.diff_main=function(t,i,n,e){void 0===e&&(e=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var o=e;if(null==t||null==i)throw new Error("Null input. (diff_main)");if(t==i)return t?[[0,t]]:[];void 0===n&&(n=!0);var s=n,r=this.diff_commonPrefix(t,i),a=t.substring(0,r);t=t.substring(r),i=i.substring(r),r=this.diff_commonSuffix(t,i);var h=t.substring(t.length-r);t=t.substring(0,t.length-r),i=i.substring(0,i.length-r);var l=this.diff_compute_(t,i,s,o);return a&&l.unshift([0,a]),h&&l.push([0,h]),this.diff_cleanupMerge(l),l},i.prototype.diff_compute_=function(t,i,e,o){var s;if(!t)return[[1,i]];if(!i)return[[n,t]];var r=t.length>i.length?t:i,a=t.length>i.length?i:t,h=r.indexOf(a);if(-1!=h)return s=[[1,r.substring(0,h)],[0,a],[1,r.substring(h+a.length)]],t.length>i.length&&(s[0][0]=s[2][0]=n),s;if(1==a.length)return[[n,t],[1,i]];var l=this.diff_halfMatch_(t,i);if(l){var d=l[1],c=l[3],p=l[4],u=this.diff_main(l[0],l[2],e,o),f=this.diff_main(d,c,e,o);return u.concat([[0,p]],f)}return e&&t.length>100&&i.length>100?this.diff_lineMode_(t,i,o):this.diff_bisect_(t,i,o)},i.prototype.diff_lineMode_=function(t,i,e){t=(c=this.diff_linesToChars_(t,i)).chars1;var o=c.lineArray,s=this.diff_main(t,i=c.chars2,!1,e);this.diff_charsToLines_(s,o),this.diff_cleanupSemantic(s),s.push([0,""]);for(var r=0,a=0,h=0,l="",d="";r<s.length;){switch(s[r][0]){case 1:h++,d+=s[r][1];break;case n:a++,l+=s[r][1];break;case 0:if(a>=1&&h>=1){s.splice(r-a-h,a+h),r=r-a-h;for(var c,p=(c=this.diff_main(l,d,!1,e)).length-1;p>=0;p--)s.splice(r,0,c[p]);r+=c.length}h=0,a=0,l="",d=""}r++}return s.pop(),s},i.prototype.diff_bisect_=function(t,i,e){for(var o=t.length,s=i.length,r=Math.ceil((o+s)/2),a=r,h=2*r,l=new Array(h),d=new Array(h),c=0;c<h;c++)l[c]=-1,d[c]=-1;l[a+1]=0,d[a+1]=0;for(var p=o-s,u=p%2!=0,f=0,v=0,g=0,m=0,b=0;b<r&&!((new Date).getTime()>e);b++){for(var w=-b+f;w<=b-v;w+=2){for(var y=a+w,x=(j=w==-b||w!=b&&l[y-1]<l[y+1]?l[y+1]:l[y-1]+1)-w;j<o&&x<s&&t.charAt(j)==i.charAt(x);)j++,x++;if(l[y]=j,j>o)v+=2;else if(x>s)f+=2;else if(u&&(I=a+p-w)>=0&&I<h&&-1!=d[I]&&j>=(C=o-d[I]))return this.diff_bisectSplit_(t,i,j,x,e)}for(var k=-b+g;k<=b-m;k+=2){for(var C,I=a+k,M=(C=k==-b||k!=b&&d[I-1]<d[I+1]?d[I+1]:d[I-1]+1)-k;C<o&&M<s&&t.charAt(o-C-1)==i.charAt(s-M-1);)C++,M++;if(d[I]=C,C>o)m+=2;else if(M>s)g+=2;else if(!u){var j;if((y=a+p-k)>=0&&y<h&&-1!=l[y])if(x=a+(j=l[y])-y,j>=(C=o-C))return this.diff_bisectSplit_(t,i,j,x,e)}}}return[[n,t],[1,i]]},i.prototype.diff_bisectSplit_=function(t,i,n,e,o){var s=t.substring(0,n),r=i.substring(0,e),a=t.substring(n),h=i.substring(e),l=this.diff_main(s,r,!1,o),d=this.diff_main(a,h,!1,o);return l.concat(d)},i.prototype.diff_linesToChars_=function(t,i){var n=[],e={};function o(t){for(var i="",o=0,s=-1,r=n.length;s<t.length-1;){-1==(s=t.indexOf("\n",o))&&(s=t.length-1);var a=t.substring(o,s+1);o=s+1,(e.hasOwnProperty?e.hasOwnProperty(a):void 0!==e[a])?i+=String.fromCharCode(e[a]):(i+=String.fromCharCode(r),e[a]=r,n[r++]=a)}return i}return n[0]="",{chars1:o(t),chars2:o(i),lineArray:n}},i.prototype.diff_charsToLines_=function(t,i){for(var n=0;n<t.length;n++){for(var e=t[n][1],o=[],s=0;s<e.length;s++)o[s]=i[e.charCodeAt(s)];t[n][1]=o.join("")}},i.prototype.diff_commonPrefix=function(t,i){if(!t||!i||t.charAt(0)!=i.charAt(0))return 0;for(var n=0,e=Math.min(t.length,i.length),o=e,s=0;n<o;)t.substring(s,o)==i.substring(s,o)?s=n=o:e=o,o=Math.floor((e-n)/2+n);return o},i.prototype.diff_commonSuffix=function(t,i){if(!t||!i||t.charAt(t.length-1)!=i.charAt(i.length-1))return 0;for(var n=0,e=Math.min(t.length,i.length),o=e,s=0;n<o;)t.substring(t.length-o,t.length-s)==i.substring(i.length-o,i.length-s)?s=n=o:e=o,o=Math.floor((e-n)/2+n);return o},i.prototype.diff_commonOverlap_=function(t,i){var n=t.length,e=i.length;if(0==n||0==e)return 0;n>e?t=t.substring(n-e):n<e&&(i=i.substring(0,n));var o=Math.min(n,e);if(t==i)return o;for(var s=0,r=1;;){var a=t.substring(o-r),h=i.indexOf(a);if(-1==h)return s;r+=h,0!=h&&t.substring(o-r)!=i.substring(0,r)||(s=r,r++)}},i.prototype.diff_halfMatch_=function(t,i){if(this.Diff_Timeout<=0)return null;var n=t.length>i.length?t:i,e=t.length>i.length?i:t;if(n.length<4||2*e.length<n.length)return null;var o=this;function s(t,i,n){for(var e,s,r,a,h=t.substring(n,n+Math.floor(t.length/4)),l=-1,d="";-1!=(l=i.indexOf(h,l+1));){var c=o.diff_commonPrefix(t.substring(n),i.substring(l)),p=o.diff_commonSuffix(t.substring(0,n),i.substring(0,l));d.length<p+c&&(d=i.substring(l-p,l)+i.substring(l,l+c),e=t.substring(0,n-p),s=t.substring(n+c),r=i.substring(0,l-p),a=i.substring(l+c))}return 2*d.length>=t.length?[e,s,r,a,d]:null}var r,a,h,l,d,c=s(n,e,Math.ceil(n.length/4)),p=s(n,e,Math.ceil(n.length/2));return c||p?(r=p?c&&c[4].length>p[4].length?c:p:c,t.length>i.length?(a=r[0],h=r[1],l=r[2],d=r[3]):(l=r[0],d=r[1],a=r[2],h=r[3]),[a,h,l,d,r[4]]):null},i.prototype.diff_cleanupSemantic=function(t){for(var i=!1,e=[],o=0,s=null,r=0,a=0,h=0,l=0,d=0;r<t.length;)0==t[r][0]?(e[o++]=r,a=l,h=d,l=0,d=0,s=t[r][1]):(1==t[r][0]?l+=t[r][1].length:d+=t[r][1].length,s&&s.length<=Math.max(a,h)&&s.length<=Math.max(l,d)&&(t.splice(e[o-1],0,[n,s]),t[e[o-1]+1][0]=1,o--,r=--o>0?e[o-1]:-1,a=0,h=0,l=0,d=0,s=null,i=!0)),r++;for(i&&this.diff_cleanupMerge(t),this.diff_cleanupSemanticLossless(t),r=1;r<t.length;){if(t[r-1][0]==n&&1==t[r][0]){var c=t[r-1][1],p=t[r][1],u=this.diff_commonOverlap_(c,p),f=this.diff_commonOverlap_(p,c);u>=f?(u>=c.length/2||u>=p.length/2)&&(t.splice(r,0,[0,p.substring(0,u)]),t[r-1][1]=c.substring(0,c.length-u),t[r+1][1]=p.substring(u),r++):(f>=c.length/2||f>=p.length/2)&&(t.splice(r,0,[0,c.substring(0,f)]),t[r-1][0]=1,t[r-1][1]=p.substring(0,p.length-f),t[r+1][0]=n,t[r+1][1]=c.substring(f),r++),r++}r++}},i.prototype.diff_cleanupSemanticLossless=function(t){function n(t,n){if(!t||!n)return 6;var e=t.charAt(t.length-1),o=n.charAt(0),s=e.match(i.nonAlphaNumericRegex_),r=o.match(i.nonAlphaNumericRegex_),a=s&&e.match(i.whitespaceRegex_),h=r&&o.match(i.whitespaceRegex_),l=a&&e.match(i.linebreakRegex_),d=h&&o.match(i.linebreakRegex_),c=l&&t.match(i.blanklineEndRegex_),p=d&&n.match(i.blanklineStartRegex_);return c||p?5:l||d?4:s&&!a&&h?3:a||h?2:s||r?1:0}for(var e=1;e<t.length-1;){if(0==t[e-1][0]&&0==t[e+1][0]){var o=t[e-1][1],s=t[e][1],r=t[e+1][1],a=this.diff_commonSuffix(o,s);if(a){var h=s.substring(s.length-a);o=o.substring(0,o.length-a),s=h+s.substring(0,s.length-a),r=h+r}for(var l=o,d=s,c=r,p=n(o,s)+n(s,r);s.charAt(0)===r.charAt(0);){o+=s.charAt(0),s=s.substring(1)+r.charAt(0),r=r.substring(1);var u=n(o,s)+n(s,r);u>=p&&(p=u,l=o,d=s,c=r)}t[e-1][1]!=l&&(l?t[e-1][1]=l:(t.splice(e-1,1),e--),t[e][1]=d,c?t[e+1][1]=c:(t.splice(e+1,1),e--))}e++}},i.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,i.whitespaceRegex_=/\s/,i.linebreakRegex_=/[\r\n]/,i.blanklineEndRegex_=/\n\r?\n$/,i.blanklineStartRegex_=/^\r?\n\r?\n/,i.prototype.diff_cleanupEfficiency=function(t){for(var i=!1,e=[],o=0,s=null,r=0,a=!1,h=!1,l=!1,d=!1;r<t.length;)0==t[r][0]?(t[r][1].length<this.Diff_EditCost&&(l||d)?(e[o++]=r,a=l,h=d,s=t[r][1]):(o=0,s=null),l=d=!1):(t[r][0]==n?d=!0:l=!0,s&&(a&&h&&l&&d||s.length<this.Diff_EditCost/2&&a+h+l+d==3)&&(t.splice(e[o-1],0,[n,s]),t[e[o-1]+1][0]=1,o--,s=null,a&&h?(l=d=!0,o=0):(r=--o>0?e[o-1]:-1,l=d=!1),i=!0)),r++;i&&this.diff_cleanupMerge(t)},i.prototype.diff_cleanupMerge=function(t){t.push([0,""]);for(var i,e=0,o=0,s=0,r="",a="";e<t.length;)switch(t[e][0]){case 1:s++,a+=t[e][1],e++;break;case n:o++,r+=t[e][1],e++;break;case 0:o+s>1?(0!==o&&0!==s&&(0!==(i=this.diff_commonPrefix(a,r))&&(e-o-s>0&&0==t[e-o-s-1][0]?t[e-o-s-1][1]+=a.substring(0,i):(t.splice(0,0,[0,a.substring(0,i)]),e++),a=a.substring(i),r=r.substring(i)),0!==(i=this.diff_commonSuffix(a,r))&&(t[e][1]=a.substring(a.length-i)+t[e][1],a=a.substring(0,a.length-i),r=r.substring(0,r.length-i))),0===o?t.splice(e-s,o+s,[1,a]):0===s?t.splice(e-o,o+s,[n,r]):t.splice(e-o-s,o+s,[n,r],[1,a]),e=e-o-s+(o?1:0)+(s?1:0)+1):0!==e&&0==t[e-1][0]?(t[e-1][1]+=t[e][1],t.splice(e,1)):e++,s=0,o=0,r="",a=""}""===t[t.length-1][1]&&t.pop();var h=!1;for(e=1;e<t.length-1;)0==t[e-1][0]&&0==t[e+1][0]&&(t[e][1].substring(t[e][1].length-t[e-1][1].length)==t[e-1][1]?(t[e][1]=t[e-1][1]+t[e][1].substring(0,t[e][1].length-t[e-1][1].length),t[e+1][1]=t[e-1][1]+t[e+1][1],t.splice(e-1,1),h=!0):t[e][1].substring(0,t[e+1][1].length)==t[e+1][1]&&(t[e-1][1]+=t[e+1][1],t[e][1]=t[e][1].substring(t[e+1][1].length)+t[e+1][1],t.splice(e+1,1),h=!0)),e++;h&&this.diff_cleanupMerge(t)},i.prototype.diff_xIndex=function(t,i){var e,o=0,s=0,r=0,a=0;for(e=0;e<t.length&&(1!==t[e][0]&&(o+=t[e][1].length),t[e][0]!==n&&(s+=t[e][1].length),!(o>i));e++)r=o,a=s;return t.length!=e&&t[e][0]===n?a:a+(i-r)},i.prototype.diff_prettyHtml=function(t){for(var i=[],e=/&/g,o=/</g,s=/>/g,r=/\n/g,a=0;a<t.length;a++){var h=t[a][0],l=t[a][1].replace(e,"&").replace(o,"<").replace(s,">").replace(r,"¶<br>");switch(h){case 1:i[a]='<ins style="background:#e6ffe6;">'+l+"</ins>";break;case n:i[a]='<del style="background:#ffe6e6;">'+l+"</del>";break;case 0:i[a]="<span>"+l+"</span>"}}return i.join("")},i.prototype.diff_text1=function(t){for(var i=[],n=0;n<t.length;n++)1!==t[n][0]&&(i[n]=t[n][1]);return i.join("")},i.prototype.diff_text2=function(t){for(var i=[],e=0;e<t.length;e++)t[e][0]!==n&&(i[e]=t[e][1]);return i.join("")},i.prototype.diff_levenshtein=function(t){for(var i=0,e=0,o=0,s=0;s<t.length;s++){var r=t[s][1];switch(t[s][0]){case 1:e+=r.length;break;case n:o+=r.length;break;case 0:i+=Math.max(e,o),e=0,o=0}}return i+Math.max(e,o)},i.prototype.diff_toDelta=function(t){for(var i=[],e=0;e<t.length;e++)switch(t[e][0]){case 1:i[e]="+"+encodeURI(t[e][1]);break;case n:i[e]="-"+t[e][1].length;break;case 0:i[e]="="+t[e][1].length}return i.join("\t").replace(/%20/g," ")},i.prototype.diff_fromDelta=function(t,i){for(var e=[],o=0,s=0,r=i.split(/\t/g),a=0;a<r.length;a++){var h=r[a].substring(1);switch(r[a].charAt(0)){case"+":try{e[o++]=[1,decodeURI(h)]}catch(t){throw new Error("Illegal escape in diff_fromDelta: "+h)}break;case"-":case"=":var l=parseInt(h,10);if(isNaN(l)||l<0)throw new Error("Invalid number in diff_fromDelta: "+h);var d=t.substring(s,s+=l);"="==r[a].charAt(0)?e[o++]=[0,d]:e[o++]=[n,d];break;default:if(r[a])throw new Error("Invalid diff operation in diff_fromDelta: "+r[a])}}if(s!=t.length)throw new Error("Delta length ("+s+") does not equal source text length ("+t.length+").");return e},i.prototype.match_main=function(t,i,n){if(null==t||null==i||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,t.length)),t==i?0:t.length?t.substring(n,n+i.length)==i?n:this.match_bitap_(t,i,n):-1},i.prototype.match_bitap_=function(t,i,n){if(i.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var e=this.match_alphabet_(i),o=this;function s(t,e){var s=t/i.length,r=Math.abs(n-e);return o.Match_Distance?s+r/o.Match_Distance:r?1:s}var r=this.Match_Threshold,a=t.indexOf(i,n);-1!=a&&(r=Math.min(s(0,a),r),-1!=(a=t.lastIndexOf(i,n+i.length))&&(r=Math.min(s(0,a),r)));var h,l,d=1<<i.length-1;a=-1;for(var c,p=i.length+t.length,u=0;u<i.length;u++){for(h=0,l=p;h<l;)s(u,n+l)<=r?h=l:p=l,l=Math.floor((p-h)/2+h);p=l;var f=Math.max(1,n-l+1),v=Math.min(n+l,t.length)+i.length,g=Array(v+2);g[v+1]=(1<<u)-1;for(var m=v;m>=f;m--){var b=e[t.charAt(m-1)];if(g[m]=0===u?(g[m+1]<<1|1)&b:(g[m+1]<<1|1)&b|(c[m+1]|c[m])<<1|1|c[m+1],g[m]&d){var w=s(u,m-1);if(w<=r){if(r=w,!((a=m-1)>n))break;f=Math.max(1,2*n-a)}}}if(s(u+1,n)>r)break;c=g}return a},i.prototype.match_alphabet_=function(t){for(var i={},n=0;n<t.length;n++)i[t.charAt(n)]=0;for(n=0;n<t.length;n++)i[t.charAt(n)]|=1<<t.length-n-1;return i},i.prototype.patch_addContext_=function(t,i){if(0!=i.length){for(var n=i.substring(t.start2,t.start2+t.length1),e=0;i.indexOf(n)!=i.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)n=i.substring(t.start2-(e+=this.Patch_Margin),t.start2+t.length1+e);var o=i.substring(t.start2-(e+=this.Patch_Margin),t.start2);o&&t.diffs.unshift([0,o]);var s=i.substring(t.start2+t.length1,t.start2+t.length1+e);s&&t.diffs.push([0,s]),t.start1-=o.length,t.start2-=o.length,t.length1+=o.length+s.length,t.length2+=o.length+s.length}},i.prototype.patch_make=function(t,e,o){var s,r;if("string"==typeof t&&"string"==typeof e&&void 0===o)(r=this.diff_main(s=t,e,!0)).length>2&&(this.diff_cleanupSemantic(r),this.diff_cleanupEfficiency(r));else if(t&&"object"==typeof t&&void 0===e&&void 0===o)s=this.diff_text1(r=t);else if("string"==typeof t&&e&&"object"==typeof e&&void 0===o)s=t,r=e;else{if("string"!=typeof t||"string"!=typeof e||!o||"object"!=typeof o)throw new Error("Unknown call format to patch_make.");s=t,r=o}if(0===r.length)return[];for(var a=[],h=new i.patch_obj,l=0,d=0,c=0,p=s,u=s,f=0;f<r.length;f++){var v=r[f][0],g=r[f][1];switch(l||0===v||(h.start1=d,h.start2=c),v){case 1:h.diffs[l++]=r[f],h.length2+=g.length,u=u.substring(0,c)+g+u.substring(c);break;case n:h.length1+=g.length,h.diffs[l++]=r[f],u=u.substring(0,c)+u.substring(c+g.length);break;case 0:g.length<=2*this.Patch_Margin&&l&&r.length!=f+1?(h.diffs[l++]=r[f],h.length1+=g.length,h.length2+=g.length):g.length>=2*this.Patch_Margin&&l&&(this.patch_addContext_(h,p),a.push(h),h=new i.patch_obj,l=0,p=u,d=c)}1!==v&&(d+=g.length),v!==n&&(c+=g.length)}return l&&(this.patch_addContext_(h,p),a.push(h)),a},i.prototype.patch_deepCopy=function(t){for(var n=[],e=0;e<t.length;e++){var o=t[e],s=new i.patch_obj;s.diffs=[];for(var r=0;r<o.diffs.length;r++)s.diffs[r]=o.diffs[r].slice();s.start1=o.start1,s.start2=o.start2,s.length1=o.length1,s.length2=o.length2,n[e]=s}return n},i.prototype.patch_apply=function(t,i){if(0==t.length)return[i,[]];t=this.patch_deepCopy(t);var e=this.patch_addPadding(t);i=e+i+e,this.patch_splitMax(t);for(var o=0,s=[],r=0;r<t.length;r++){var a,h,l=t[r].start2+o,d=this.diff_text1(t[r].diffs),c=-1;if(d.length>this.Match_MaxBits?-1!=(a=this.match_main(i,d.substring(0,this.Match_MaxBits),l))&&(-1==(c=this.match_main(i,d.substring(d.length-this.Match_MaxBits),l+d.length-this.Match_MaxBits))||a>=c)&&(a=-1):a=this.match_main(i,d,l),-1==a)s[r]=!1,o-=t[r].length2-t[r].length1;else if(s[r]=!0,o=a-l,d==(h=i.substring(a,-1==c?a+d.length:c+this.Match_MaxBits)))i=i.substring(0,a)+this.diff_text2(t[r].diffs)+i.substring(a+d.length);else{var p=this.diff_main(d,h,!1);if(d.length>this.Match_MaxBits&&this.diff_levenshtein(p)/d.length>this.Patch_DeleteThreshold)s[r]=!1;else{this.diff_cleanupSemanticLossless(p);for(var u,f=0,v=0;v<t[r].diffs.length;v++){var g=t[r].diffs[v];0!==g[0]&&(u=this.diff_xIndex(p,f)),1===g[0]?i=i.substring(0,a+u)+g[1]+i.substring(a+u):g[0]===n&&(i=i.substring(0,a+u)+i.substring(a+this.diff_xIndex(p,f+g[1].length))),g[0]!==n&&(f+=g[1].length)}}}}return[i=i.substring(e.length,i.length-e.length),s]},i.prototype.patch_addPadding=function(t){for(var i=this.Patch_Margin,n="",e=1;e<=i;e++)n+=String.fromCharCode(e);for(e=0;e<t.length;e++)t[e].start1+=i,t[e].start2+=i;var o=t[0],s=o.diffs;if(0==s.length||0!=s[0][0])s.unshift([0,n]),o.start1-=i,o.start2-=i,o.length1+=i,o.length2+=i;else if(i>s[0][1].length){var r=i-s[0][1].length;s[0][1]=n.substring(s[0][1].length)+s[0][1],o.start1-=r,o.start2-=r,o.length1+=r,o.length2+=r}return 0==(s=(o=t[t.length-1]).diffs).length||0!=s[s.length-1][0]?(s.push([0,n]),o.length1+=i,o.length2+=i):i>s[s.length-1][1].length&&(s[s.length-1][1]+=n.substring(0,r=i-s[s.length-1][1].length),o.length1+=r,o.length2+=r),n},i.prototype.patch_splitMax=function(t){for(var e=this.Match_MaxBits,o=0;o<t.length;o++)if(!(t[o].length1<=e)){var s=t[o];t.splice(o--,1);for(var r=s.start1,a=s.start2,h="";0!==s.diffs.length;){var l=new i.patch_obj,d=!0;for(l.start1=r-h.length,l.start2=a-h.length,""!==h&&(l.length1=l.length2=h.length,l.diffs.push([0,h]));0!==s.diffs.length&&l.length1<e-this.Patch_Margin;){var c=s.diffs[0][0],p=s.diffs[0][1];1===c?(l.length2+=p.length,a+=p.length,l.diffs.push(s.diffs.shift()),d=!1):c===n&&1==l.diffs.length&&0==l.diffs[0][0]&&p.length>2*e?(l.length1+=p.length,r+=p.length,d=!1,l.diffs.push([c,p]),s.diffs.shift()):(p=p.substring(0,e-l.length1-this.Patch_Margin),l.length1+=p.length,r+=p.length,0===c?(l.length2+=p.length,a+=p.length):d=!1,l.diffs.push([c,p]),p==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(p.length))}h=(h=this.diff_text2(l.diffs)).substring(h.length-this.Patch_Margin);var u=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);""!==u&&(l.length1+=u.length,l.length2+=u.length,0!==l.diffs.length&&0===l.diffs[l.diffs.length-1][0]?l.diffs[l.diffs.length-1][1]+=u:l.diffs.push([0,u])),d||t.splice(++o,0,l)}}},i.prototype.patch_toText=function(t){for(var i=[],n=0;n<t.length;n++)i[n]=t[n];return i.join("")},i.prototype.patch_fromText=function(t){var e=[];if(!t)return e;for(var o=t.split("\n"),s=0,r=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;s<o.length;){var a=o[s].match(r);if(!a)throw new Error("Invalid patch string: "+o[s]);var h=new i.patch_obj;for(e.push(h),h.start1=parseInt(a[1],10),""===a[2]?(h.start1--,h.length1=1):"0"==a[2]?h.length1=0:(h.start1--,h.length1=parseInt(a[2],10)),h.start2=parseInt(a[3],10),""===a[4]?(h.start2--,h.length2=1):"0"==a[4]?h.length2=0:(h.start2--,h.length2=parseInt(a[4],10)),s++;s<o.length;){var l=o[s].charAt(0);try{var d=decodeURI(o[s].substring(1))}catch(t){throw new Error("Illegal escape in patch_fromText: "+d)}if("-"==l)h.diffs.push([n,d]);else if("+"==l)h.diffs.push([1,d]);else if(" "==l)h.diffs.push([0,d]);else{if("@"==l)break;if(""!==l)throw new Error('Invalid patch mode "'+l+'" in: '+d)}s++}}return e},(i.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var t,i=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],e=0;e<this.diffs.length;e++){switch(this.diffs[e][0]){case 1:t="+";break;case n:t="-";break;case 0:t=" "}i[e+1]=t+encodeURI(this.diffs[e][1])+"\n"}return i.join("").replace(/%20/g," ")},t.exports=i,t.exports.diff_match_patch=i,t.exports.DIFF_DELETE=n,t.exports.DIFF_INSERT=1,t.exports.DIFF_EQUAL=0})),w=function(t,i,n,e){var o,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,n,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(s<3?o(r):s>3?o(i,n,r):o(i,n))||r);return s>3&&r&&Object.defineProperty(i,n,r),r};const y={en:{placeholder:"Begin typing here..."}},x=class{constructor(n){t(this,n),this.ldfCursorMoved=i(this,"ldfCursorMoved",7),this.ldfDocShouldChange=i(this,"ldfDocShouldChange",7),this.ldfAddChildAfter=i(this,"ldfAddChildAfter",7),this.ldfMergeWithPrevious=i(this,"ldfMergeWithPrevious",7),this.template="",this.templateMaker=t=>t}textChanged(t){this.currentText=t,this.previousText=this.currentText,this.textarea&&(this.textarea.value=this.currentText),this.autoGrow()}componentDidRender(){this.autoGrow()}onInput(){this.autoGrow(),this.handleInput()}handleInput(){var t,i;this.registerCursor();const n=function(t,i,n,e){const o=null==t?void 0:t.replace("//","/");if(null==i||null==i)return new u({path:o,op:[{type:"set",oldValue:i,value:n}]});if("number"==typeof i||"number"==e)return new u({path:o,op:[{type:"set",oldValue:Number(i),value:Number(n)}]});{const t=new b,e=t.diff_main(i,n);t.diff_cleanupSemantic(e);const s=t.patch_make(i,e),r=new Array;return s.forEach((t=>{const i=new Array;let n=t.start1;t.diffs.forEach((([t,e])=>{switch(t){case 0:n+=e.length;break;case 1:n>0&&(i.push(n),n=0),i.push(e);break;case-1:n>0&&(i.push(n),n=0),i.push({d:e.length})}})),r.push({type:"edit",value:i})})),new u({path:o,op:r})}}(this.cursor.path,this.previousText,this.cursor.element.value,this.inputType);this.previousText=(null===(i=null===(t=this.cursor)||void 0===t?void 0:t.element)||void 0===i?void 0:i.value)||"",this.ldfDocShouldChange.emit(n)}onFocusOut(){this.cursor=void 0,this.ldfCursorMoved.emit(void 0)}onSelect(){this.registerCursor()}onFocus(){this.registerCursor()}onClick(){this.registerCursor()}onKeyDown(){this.registerCursor()}registerCursor(){var t,i;return this.cursor&&this.textarea.selectionStart===(null===(t=this.cursor)||void 0===t?void 0:t.start)&&this.textarea.selectionEnd===(null===(i=this.cursor)||void 0===i?void 0:i.end)||(this.cursor=new p(this.path,this.textarea.selectionStart,this.textarea.selectionEnd,this.textarea),this.emitCursor(this.cursor)),this.cursor}autoGrow(){if(!this.short&&this.textarea&&window){this.textarea.style.height="1.5em";const t=window.getComputedStyle(this.textarea),i=parseInt(t.getPropertyValue("border-top-width"))+parseInt(t.getPropertyValue("padding-top"))+this.textarea.scrollHeight+parseInt(t.getPropertyValue("padding-bottom"))+parseInt(t.getPropertyValue("border-bottom-width"))+5;this.textarea.style.height=`${i}px`}}checkEnter(t){var i,n,e,o,s,r,a;if(this.registerCursor(),13==t.keyCode&&!t.shiftKey)if((null===(i=this.cursor)||void 0===i?void 0:i.start)==this.textarea.value.length)t.preventDefault(),this.ldfAddChildAfter.emit({path:this.path,template:this.template});else{t.preventDefault();const i=this.textarea.value,r=i.slice(0,null!==(e=null===(n=this.cursor)||void 0===n?void 0:n.start)&&void 0!==e?e:0),a=i.slice(null!==(s=null===(o=this.cursor)||void 0===o?void 0:o.start)&&void 0!==s?s:0,this.textarea.value.length);this.ldfDocShouldChange.emit(new u({path:this.path,op:[{type:"set",oldValue:i,value:r}]})),this.ldfAddChildAfter.emit({path:this.path,template:this.templateMaker(a)})}8==t.keyCode&&0==(null===(r=this.cursor)||void 0===r?void 0:r.start)&&0==(null===(a=this.cursor)||void 0===a?void 0:a.end)&&(t.preventDefault(),this.ldfMergeWithPrevious.emit({path:this.path,value:this.currentText}))}componentWillLoad(){this.loadLocaleStrings(),this.textChanged(this.text),this.previousText=this.text}emitCursor(t){this.ldfCursorMoved.emit(t)}async loadLocaleStrings(){try{this.localeStrings=y[v(this.element)]}catch(t){console.warn(t)}}render(){const t=this.localeStrings||{};return this.short?n(e,null,n("ion-input",{ref:async t=>this.textarea=await t.getInputElement(),placeholder:this.placeholder||t.placeholder,value:this.currentText,onKeyDown:t=>this.checkEnter(t),type:this.inputType||"text"}),this.unit&&this.unit):n(e,null,n("textarea",{ref:t=>this.textarea=t,placeholder:this.placeholder||t.placeholder,onKeyDown:t=>this.checkEnter(t)},this.currentText))}get element(){return o(this)}static get watchers(){return{text:["textChanged"]}}};w([c(1250)],x.prototype,"handleInput",null),w([c(500)],x.prototype,"emitCursor",null),x.style="ldf-editable-text.sc-ldf-editable-text{display:block;font-family:var(--ldf-font-face)}.sc-ldf-editable-text-h textarea.sc-ldf-editable-text{display:block;color:inherit;font-family:inherit;font-weight:inherit;font-style:inherit;font-size:inherit;font-variant:inherit;text-decoration:inherit;text-align:inherit;height:1.75em;width:100%;max-width:100%;min-height:1.75em;border:none;outline:none;background:transparent;box-sizing:border-box;resize:none;appearance:none;margin-top:calc(var(--ldf-string-border-width)+var(--ldf-string-border-radius));margin-bottom:var(--ldf-string-border-bottom-width);padding-left:calc(var(--ldf-string-border-width) + 4px);padding-right:calc(var(--ldf-string-border-width) + 4px)}ion-input.sc-ldf-editable-text{--ion-font-family:var(--ldf-font-face);min-height:2em !important}";export{g as ion_input,x as ldf_editable_text}
|
|
1
|
+
import{r as t,c as i,h as n,H as e,d as o}from"./p-814a5a13.js";import{g as s}from"./p-b7c33573.js";import{d as r,i as a,j as h,p as l}from"./p-4aeedb04.js";import{c as d}from"./p-0e4de1d0.js";import{D as c}from"./p-e911e60d.js";import"./p-619c1cd7.js";import{C as p}from"./p-5066eaa5.js";import{C as u}from"./p-991c0877.js";import{c as f}from"./p-3e8ff66b.js";import{g as v}from"./p-546bb0de.js";const g=class{constructor(n){t(this,n),this.ionInput=i(this,"ionInput",7),this.ionChange=i(this,"ionChange",7),this.ionBlur=i(this,"ionBlur",7),this.ionFocus=i(this,"ionFocus",7),this.ionStyle=i(this,"ionStyle",7),this.inputId="ion-input-"+m++,this.didBlurAfterEdit=!1,this.inheritedAttributes={},this.isComposing=!1,this.fireFocusEvents=!0,this.hasFocus=!1,this.autocapitalize="off",this.autocomplete="off",this.autocorrect="off",this.autofocus=!1,this.clearInput=!1,this.debounce=0,this.disabled=!1,this.name=this.inputId,this.readonly=!1,this.required=!1,this.spellcheck=!1,this.type="text",this.value="",this.onInput=t=>{const i=t.target;i&&(this.value=i.value||""),this.ionInput.emit(t)},this.onBlur=t=>{this.hasFocus=!1,this.focusChanged(),this.emitStyle(),this.fireFocusEvents&&this.ionBlur.emit(t)},this.onFocus=t=>{this.hasFocus=!0,this.focusChanged(),this.emitStyle(),this.fireFocusEvents&&this.ionFocus.emit(t)},this.onKeydown=t=>{this.shouldClearOnEdit()&&(this.didBlurAfterEdit&&this.hasValue()&&"Enter"!==t.key&&this.clearTextInput(),this.didBlurAfterEdit=!1)},this.onCompositionStart=()=>{this.isComposing=!0},this.onCompositionEnd=()=>{this.isComposing=!1},this.clearTextInput=t=>{this.clearInput&&!this.readonly&&!this.disabled&&t&&(t.preventDefault(),t.stopPropagation(),this.setFocus()),this.value="",this.nativeInput&&(this.nativeInput.value="")}}debounceChanged(){this.ionChange=r(this.ionChange,this.debounce)}disabledChanged(){this.emitStyle()}placeholderChanged(){this.emitStyle()}valueChanged(){const t=this.nativeInput,i=this.getValue();t&&t.value!==i&&!this.isComposing&&(t.value=i),this.emitStyle(),this.ionChange.emit({value:null==this.value?this.value:this.value.toString()})}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},a(this.el)),h(this.el,["tabindex","title"]))}connectedCallback(){this.emitStyle(),this.debounceChanged(),document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:this.el}))}componentDidLoad(){const t=this.nativeInput;t&&(t.addEventListener("compositionstart",this.onCompositionStart),t.addEventListener("compositionend",this.onCompositionEnd))}disconnectedCallback(){document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.el}));const t=this.nativeInput;t&&(t.removeEventListener("compositionstart",this.onCompositionStart),t.removeEventListener("compositionEnd",this.onCompositionEnd))}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async setBlur(){this.nativeInput&&this.nativeInput.blur()}getInputElement(){return Promise.resolve(this.nativeInput)}shouldClearOnEdit(){const{type:t,clearOnEdit:i}=this;return void 0===i?"password"===t:i}getValue(){return"number"==typeof this.value?this.value.toString():(this.value||"").toString()}emitStyle(){this.ionStyle.emit({interactive:!0,input:!0,"has-placeholder":void 0!==this.placeholder,"has-value":this.hasValue(),"has-focus":this.hasFocus,"interactive-disabled":this.disabled})}focusChanged(){!this.hasFocus&&this.shouldClearOnEdit()&&this.hasValue()&&(this.didBlurAfterEdit=!0)}hasValue(){return this.getValue().length>0}render(){const t=s(this),i=this.getValue(),o=this.inputId+"-lbl",r=l(this.el);return r&&(r.id=o),n(e,{"aria-disabled":this.disabled?"true":null,class:d(this.color,{[t]:!0,"has-value":this.hasValue(),"has-focus":this.hasFocus})},n("input",Object.assign({class:"native-input",ref:t=>this.nativeInput=t,"aria-labelledby":r?o:null,disabled:this.disabled,accept:this.accept,autoCapitalize:this.autocapitalize,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,min:this.min,max:this.max,minLength:this.minlength,maxLength:this.maxlength,multiple:this.multiple,name:this.name,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,step:this.step,size:this.size,type:this.type,value:i,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeydown},this.inheritedAttributes)),this.clearInput&&!this.readonly&&!this.disabled&&n("button",{"aria-label":"reset",type:"button",class:"input-clear-icon",onPointerDown:t=>{t.preventDefault()},onClick:this.clearTextInput}))}get el(){return o(this)}static get watchers(){return{debounce:["debounceChanged"],disabled:["disabledChanged"],placeholder:["placeholderChanged"],value:["valueChanged"]}}};let m=0;g.style={ios:".sc-ion-input-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:.5;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--background:transparent;--color:initial;display:flex;position:relative;flex:1;align-items:center;width:100%;padding:0 !important;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}ion-item.sc-ion-input-ios-h:not(.item-label),ion-item:not(.item-label) .sc-ion-input-ios-h{--padding-start:0}.ion-color.sc-ion-input-ios-h{color:var(--ion-color-base)}.native-input.sc-ion-input-ios{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;box-sizing:border-box;appearance:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.native-input.sc-ion-input-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.native-input.sc-ion-input-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-ios:invalid{box-shadow:none}.native-input.sc-ion-input-ios::-ms-clear{display:none}.native-input[disabled].sc-ion-input-ios{opacity:0.4}.cloned-input.sc-ion-input-ios{left:0;top:0;position:absolute;pointer-events:none}[dir=rtl].sc-ion-input-ios .cloned-input.sc-ion-input-ios,[dir=rtl].sc-ion-input-ios-h .cloned-input.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h .cloned-input.sc-ion-input-ios{left:unset;right:unset;right:0}.input-clear-icon.sc-ion-input-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;visibility:hidden;appearance:none}.input-clear-icon.sc-ion-input-ios:focus{opacity:0.5}.has-value.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{visibility:visible}.has-focus.sc-ion-input-ios-h{pointer-events:none}.has-focus.sc-ion-input-ios-h input.sc-ion-input-ios,.has-focus.sc-ion-input-ios-h a.sc-ion-input-ios,.has-focus.sc-ion-input-ios-h button.sc-ion-input-ios{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-ios-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-ios-h{transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.sc-ion-input-ios-h{--padding-top:10px;--padding-end:10px;--padding-bottom:10px;--padding-start:0;font-size:inherit}.item-label-stacked.sc-ion-input-ios-h,.item-label-stacked .sc-ion-input-ios-h,.item-label-floating.sc-ion-input-ios-h,.item-label-floating .sc-ion-input-ios-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0px}.input-clear-icon.sc-ion-input-ios{background-image:url(\"data:image/svg+xml;charset=utf-8,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'><path%20fill='var(--ion-color-step-600,%20%23666666)'%20d='M403.1,108.9c-81.2-81.2-212.9-81.2-294.2,0s-81.2,212.9,0,294.2c81.2,81.2,212.9,81.2,294.2,0S484.3,190.1,403.1,108.9z%20M352,340.2L340.2,352l-84.4-84.2l-84,83.8L160,339.8l84-83.8l-84-83.8l11.8-11.8l84,83.8l84.4-84.2l11.8,11.8L267.6,256L352,340.2z'/></svg>\");width:30px;height:30px;background-size:18px}",md:".sc-ion-input-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:.5;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--background:transparent;--color:initial;display:flex;position:relative;flex:1;align-items:center;width:100%;padding:0 !important;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}ion-item.sc-ion-input-md-h:not(.item-label),ion-item:not(.item-label) .sc-ion-input-md-h{--padding-start:0}.ion-color.sc-ion-input-md-h{color:var(--ion-color-base)}.native-input.sc-ion-input-md{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;box-sizing:border-box;appearance:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.native-input.sc-ion-input-md{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.native-input.sc-ion-input-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-md:invalid{box-shadow:none}.native-input.sc-ion-input-md::-ms-clear{display:none}.native-input[disabled].sc-ion-input-md{opacity:0.4}.cloned-input.sc-ion-input-md{left:0;top:0;position:absolute;pointer-events:none}[dir=rtl].sc-ion-input-md .cloned-input.sc-ion-input-md,[dir=rtl].sc-ion-input-md-h .cloned-input.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h .cloned-input.sc-ion-input-md{left:unset;right:unset;right:0}.input-clear-icon.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;visibility:hidden;appearance:none}.input-clear-icon.sc-ion-input-md:focus{opacity:0.5}.has-value.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{visibility:visible}.has-focus.sc-ion-input-md-h{pointer-events:none}.has-focus.sc-ion-input-md-h input.sc-ion-input-md,.has-focus.sc-ion-input-md-h a.sc-ion-input-md,.has-focus.sc-ion-input-md-h button.sc-ion-input-md{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-md-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-md-h{transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.sc-ion-input-md-h{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:8px;font-size:inherit}.item-label-stacked.sc-ion-input-md-h,.item-label-stacked .sc-ion-input-md-h,.item-label-floating.sc-ion-input-md-h,.item-label-floating .sc-ion-input-md-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0}.input-clear-icon.sc-ion-input-md{background-image:url(\"data:image/svg+xml;charset=utf-8,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'><polygon%20fill='var(--ion-color-step-600,%20%23666666)'%20points='405,136.798%20375.202,107%20256,226.202%20136.798,107%20107,136.798%20226.202,256%20107,375.202%20136.798,405%20256,285.798%20375.202,405%20405,375.202%20285.798,256'/></svg>\");width:30px;height:30px;background-size:22px}"};var b=f((function(t){function i(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}var n=-1;i.prototype.diff_main=function(t,i,n,e){void 0===e&&(e=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var o=e;if(null==t||null==i)throw new Error("Null input. (diff_main)");if(t==i)return t?[[0,t]]:[];void 0===n&&(n=!0);var s=n,r=this.diff_commonPrefix(t,i),a=t.substring(0,r);t=t.substring(r),i=i.substring(r),r=this.diff_commonSuffix(t,i);var h=t.substring(t.length-r);t=t.substring(0,t.length-r),i=i.substring(0,i.length-r);var l=this.diff_compute_(t,i,s,o);return a&&l.unshift([0,a]),h&&l.push([0,h]),this.diff_cleanupMerge(l),l},i.prototype.diff_compute_=function(t,i,e,o){var s;if(!t)return[[1,i]];if(!i)return[[n,t]];var r=t.length>i.length?t:i,a=t.length>i.length?i:t,h=r.indexOf(a);if(-1!=h)return s=[[1,r.substring(0,h)],[0,a],[1,r.substring(h+a.length)]],t.length>i.length&&(s[0][0]=s[2][0]=n),s;if(1==a.length)return[[n,t],[1,i]];var l=this.diff_halfMatch_(t,i);if(l){var d=l[1],c=l[3],p=l[4],u=this.diff_main(l[0],l[2],e,o),f=this.diff_main(d,c,e,o);return u.concat([[0,p]],f)}return e&&t.length>100&&i.length>100?this.diff_lineMode_(t,i,o):this.diff_bisect_(t,i,o)},i.prototype.diff_lineMode_=function(t,i,e){t=(c=this.diff_linesToChars_(t,i)).chars1;var o=c.lineArray,s=this.diff_main(t,i=c.chars2,!1,e);this.diff_charsToLines_(s,o),this.diff_cleanupSemantic(s),s.push([0,""]);for(var r=0,a=0,h=0,l="",d="";r<s.length;){switch(s[r][0]){case 1:h++,d+=s[r][1];break;case n:a++,l+=s[r][1];break;case 0:if(a>=1&&h>=1){s.splice(r-a-h,a+h),r=r-a-h;for(var c,p=(c=this.diff_main(l,d,!1,e)).length-1;p>=0;p--)s.splice(r,0,c[p]);r+=c.length}h=0,a=0,l="",d=""}r++}return s.pop(),s},i.prototype.diff_bisect_=function(t,i,e){for(var o=t.length,s=i.length,r=Math.ceil((o+s)/2),a=r,h=2*r,l=new Array(h),d=new Array(h),c=0;c<h;c++)l[c]=-1,d[c]=-1;l[a+1]=0,d[a+1]=0;for(var p=o-s,u=p%2!=0,f=0,v=0,g=0,m=0,b=0;b<r&&!((new Date).getTime()>e);b++){for(var w=-b+f;w<=b-v;w+=2){for(var y=a+w,x=(j=w==-b||w!=b&&l[y-1]<l[y+1]?l[y+1]:l[y-1]+1)-w;j<o&&x<s&&t.charAt(j)==i.charAt(x);)j++,x++;if(l[y]=j,j>o)v+=2;else if(x>s)f+=2;else if(u&&(I=a+p-w)>=0&&I<h&&-1!=d[I]&&j>=(C=o-d[I]))return this.diff_bisectSplit_(t,i,j,x,e)}for(var k=-b+g;k<=b-m;k+=2){for(var C,I=a+k,M=(C=k==-b||k!=b&&d[I-1]<d[I+1]?d[I+1]:d[I-1]+1)-k;C<o&&M<s&&t.charAt(o-C-1)==i.charAt(s-M-1);)C++,M++;if(d[I]=C,C>o)m+=2;else if(M>s)g+=2;else if(!u){var j;if((y=a+p-k)>=0&&y<h&&-1!=l[y])if(x=a+(j=l[y])-y,j>=(C=o-C))return this.diff_bisectSplit_(t,i,j,x,e)}}}return[[n,t],[1,i]]},i.prototype.diff_bisectSplit_=function(t,i,n,e,o){var s=t.substring(0,n),r=i.substring(0,e),a=t.substring(n),h=i.substring(e),l=this.diff_main(s,r,!1,o),d=this.diff_main(a,h,!1,o);return l.concat(d)},i.prototype.diff_linesToChars_=function(t,i){var n=[],e={};function o(t){for(var i="",o=0,s=-1,r=n.length;s<t.length-1;){-1==(s=t.indexOf("\n",o))&&(s=t.length-1);var a=t.substring(o,s+1);o=s+1,(e.hasOwnProperty?e.hasOwnProperty(a):void 0!==e[a])?i+=String.fromCharCode(e[a]):(i+=String.fromCharCode(r),e[a]=r,n[r++]=a)}return i}return n[0]="",{chars1:o(t),chars2:o(i),lineArray:n}},i.prototype.diff_charsToLines_=function(t,i){for(var n=0;n<t.length;n++){for(var e=t[n][1],o=[],s=0;s<e.length;s++)o[s]=i[e.charCodeAt(s)];t[n][1]=o.join("")}},i.prototype.diff_commonPrefix=function(t,i){if(!t||!i||t.charAt(0)!=i.charAt(0))return 0;for(var n=0,e=Math.min(t.length,i.length),o=e,s=0;n<o;)t.substring(s,o)==i.substring(s,o)?s=n=o:e=o,o=Math.floor((e-n)/2+n);return o},i.prototype.diff_commonSuffix=function(t,i){if(!t||!i||t.charAt(t.length-1)!=i.charAt(i.length-1))return 0;for(var n=0,e=Math.min(t.length,i.length),o=e,s=0;n<o;)t.substring(t.length-o,t.length-s)==i.substring(i.length-o,i.length-s)?s=n=o:e=o,o=Math.floor((e-n)/2+n);return o},i.prototype.diff_commonOverlap_=function(t,i){var n=t.length,e=i.length;if(0==n||0==e)return 0;n>e?t=t.substring(n-e):n<e&&(i=i.substring(0,n));var o=Math.min(n,e);if(t==i)return o;for(var s=0,r=1;;){var a=t.substring(o-r),h=i.indexOf(a);if(-1==h)return s;r+=h,0!=h&&t.substring(o-r)!=i.substring(0,r)||(s=r,r++)}},i.prototype.diff_halfMatch_=function(t,i){if(this.Diff_Timeout<=0)return null;var n=t.length>i.length?t:i,e=t.length>i.length?i:t;if(n.length<4||2*e.length<n.length)return null;var o=this;function s(t,i,n){for(var e,s,r,a,h=t.substring(n,n+Math.floor(t.length/4)),l=-1,d="";-1!=(l=i.indexOf(h,l+1));){var c=o.diff_commonPrefix(t.substring(n),i.substring(l)),p=o.diff_commonSuffix(t.substring(0,n),i.substring(0,l));d.length<p+c&&(d=i.substring(l-p,l)+i.substring(l,l+c),e=t.substring(0,n-p),s=t.substring(n+c),r=i.substring(0,l-p),a=i.substring(l+c))}return 2*d.length>=t.length?[e,s,r,a,d]:null}var r,a,h,l,d,c=s(n,e,Math.ceil(n.length/4)),p=s(n,e,Math.ceil(n.length/2));return c||p?(r=p?c&&c[4].length>p[4].length?c:p:c,t.length>i.length?(a=r[0],h=r[1],l=r[2],d=r[3]):(l=r[0],d=r[1],a=r[2],h=r[3]),[a,h,l,d,r[4]]):null},i.prototype.diff_cleanupSemantic=function(t){for(var i=!1,e=[],o=0,s=null,r=0,a=0,h=0,l=0,d=0;r<t.length;)0==t[r][0]?(e[o++]=r,a=l,h=d,l=0,d=0,s=t[r][1]):(1==t[r][0]?l+=t[r][1].length:d+=t[r][1].length,s&&s.length<=Math.max(a,h)&&s.length<=Math.max(l,d)&&(t.splice(e[o-1],0,[n,s]),t[e[o-1]+1][0]=1,o--,r=--o>0?e[o-1]:-1,a=0,h=0,l=0,d=0,s=null,i=!0)),r++;for(i&&this.diff_cleanupMerge(t),this.diff_cleanupSemanticLossless(t),r=1;r<t.length;){if(t[r-1][0]==n&&1==t[r][0]){var c=t[r-1][1],p=t[r][1],u=this.diff_commonOverlap_(c,p),f=this.diff_commonOverlap_(p,c);u>=f?(u>=c.length/2||u>=p.length/2)&&(t.splice(r,0,[0,p.substring(0,u)]),t[r-1][1]=c.substring(0,c.length-u),t[r+1][1]=p.substring(u),r++):(f>=c.length/2||f>=p.length/2)&&(t.splice(r,0,[0,c.substring(0,f)]),t[r-1][0]=1,t[r-1][1]=p.substring(0,p.length-f),t[r+1][0]=n,t[r+1][1]=c.substring(f),r++),r++}r++}},i.prototype.diff_cleanupSemanticLossless=function(t){function n(t,n){if(!t||!n)return 6;var e=t.charAt(t.length-1),o=n.charAt(0),s=e.match(i.nonAlphaNumericRegex_),r=o.match(i.nonAlphaNumericRegex_),a=s&&e.match(i.whitespaceRegex_),h=r&&o.match(i.whitespaceRegex_),l=a&&e.match(i.linebreakRegex_),d=h&&o.match(i.linebreakRegex_),c=l&&t.match(i.blanklineEndRegex_),p=d&&n.match(i.blanklineStartRegex_);return c||p?5:l||d?4:s&&!a&&h?3:a||h?2:s||r?1:0}for(var e=1;e<t.length-1;){if(0==t[e-1][0]&&0==t[e+1][0]){var o=t[e-1][1],s=t[e][1],r=t[e+1][1],a=this.diff_commonSuffix(o,s);if(a){var h=s.substring(s.length-a);o=o.substring(0,o.length-a),s=h+s.substring(0,s.length-a),r=h+r}for(var l=o,d=s,c=r,p=n(o,s)+n(s,r);s.charAt(0)===r.charAt(0);){o+=s.charAt(0),s=s.substring(1)+r.charAt(0),r=r.substring(1);var u=n(o,s)+n(s,r);u>=p&&(p=u,l=o,d=s,c=r)}t[e-1][1]!=l&&(l?t[e-1][1]=l:(t.splice(e-1,1),e--),t[e][1]=d,c?t[e+1][1]=c:(t.splice(e+1,1),e--))}e++}},i.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,i.whitespaceRegex_=/\s/,i.linebreakRegex_=/[\r\n]/,i.blanklineEndRegex_=/\n\r?\n$/,i.blanklineStartRegex_=/^\r?\n\r?\n/,i.prototype.diff_cleanupEfficiency=function(t){for(var i=!1,e=[],o=0,s=null,r=0,a=!1,h=!1,l=!1,d=!1;r<t.length;)0==t[r][0]?(t[r][1].length<this.Diff_EditCost&&(l||d)?(e[o++]=r,a=l,h=d,s=t[r][1]):(o=0,s=null),l=d=!1):(t[r][0]==n?d=!0:l=!0,s&&(a&&h&&l&&d||s.length<this.Diff_EditCost/2&&a+h+l+d==3)&&(t.splice(e[o-1],0,[n,s]),t[e[o-1]+1][0]=1,o--,s=null,a&&h?(l=d=!0,o=0):(r=--o>0?e[o-1]:-1,l=d=!1),i=!0)),r++;i&&this.diff_cleanupMerge(t)},i.prototype.diff_cleanupMerge=function(t){t.push([0,""]);for(var i,e=0,o=0,s=0,r="",a="";e<t.length;)switch(t[e][0]){case 1:s++,a+=t[e][1],e++;break;case n:o++,r+=t[e][1],e++;break;case 0:o+s>1?(0!==o&&0!==s&&(0!==(i=this.diff_commonPrefix(a,r))&&(e-o-s>0&&0==t[e-o-s-1][0]?t[e-o-s-1][1]+=a.substring(0,i):(t.splice(0,0,[0,a.substring(0,i)]),e++),a=a.substring(i),r=r.substring(i)),0!==(i=this.diff_commonSuffix(a,r))&&(t[e][1]=a.substring(a.length-i)+t[e][1],a=a.substring(0,a.length-i),r=r.substring(0,r.length-i))),0===o?t.splice(e-s,o+s,[1,a]):0===s?t.splice(e-o,o+s,[n,r]):t.splice(e-o-s,o+s,[n,r],[1,a]),e=e-o-s+(o?1:0)+(s?1:0)+1):0!==e&&0==t[e-1][0]?(t[e-1][1]+=t[e][1],t.splice(e,1)):e++,s=0,o=0,r="",a=""}""===t[t.length-1][1]&&t.pop();var h=!1;for(e=1;e<t.length-1;)0==t[e-1][0]&&0==t[e+1][0]&&(t[e][1].substring(t[e][1].length-t[e-1][1].length)==t[e-1][1]?(t[e][1]=t[e-1][1]+t[e][1].substring(0,t[e][1].length-t[e-1][1].length),t[e+1][1]=t[e-1][1]+t[e+1][1],t.splice(e-1,1),h=!0):t[e][1].substring(0,t[e+1][1].length)==t[e+1][1]&&(t[e-1][1]+=t[e+1][1],t[e][1]=t[e][1].substring(t[e+1][1].length)+t[e+1][1],t.splice(e+1,1),h=!0)),e++;h&&this.diff_cleanupMerge(t)},i.prototype.diff_xIndex=function(t,i){var e,o=0,s=0,r=0,a=0;for(e=0;e<t.length&&(1!==t[e][0]&&(o+=t[e][1].length),t[e][0]!==n&&(s+=t[e][1].length),!(o>i));e++)r=o,a=s;return t.length!=e&&t[e][0]===n?a:a+(i-r)},i.prototype.diff_prettyHtml=function(t){for(var i=[],e=/&/g,o=/</g,s=/>/g,r=/\n/g,a=0;a<t.length;a++){var h=t[a][0],l=t[a][1].replace(e,"&").replace(o,"<").replace(s,">").replace(r,"¶<br>");switch(h){case 1:i[a]='<ins style="background:#e6ffe6;">'+l+"</ins>";break;case n:i[a]='<del style="background:#ffe6e6;">'+l+"</del>";break;case 0:i[a]="<span>"+l+"</span>"}}return i.join("")},i.prototype.diff_text1=function(t){for(var i=[],n=0;n<t.length;n++)1!==t[n][0]&&(i[n]=t[n][1]);return i.join("")},i.prototype.diff_text2=function(t){for(var i=[],e=0;e<t.length;e++)t[e][0]!==n&&(i[e]=t[e][1]);return i.join("")},i.prototype.diff_levenshtein=function(t){for(var i=0,e=0,o=0,s=0;s<t.length;s++){var r=t[s][1];switch(t[s][0]){case 1:e+=r.length;break;case n:o+=r.length;break;case 0:i+=Math.max(e,o),e=0,o=0}}return i+Math.max(e,o)},i.prototype.diff_toDelta=function(t){for(var i=[],e=0;e<t.length;e++)switch(t[e][0]){case 1:i[e]="+"+encodeURI(t[e][1]);break;case n:i[e]="-"+t[e][1].length;break;case 0:i[e]="="+t[e][1].length}return i.join("\t").replace(/%20/g," ")},i.prototype.diff_fromDelta=function(t,i){for(var e=[],o=0,s=0,r=i.split(/\t/g),a=0;a<r.length;a++){var h=r[a].substring(1);switch(r[a].charAt(0)){case"+":try{e[o++]=[1,decodeURI(h)]}catch(t){throw new Error("Illegal escape in diff_fromDelta: "+h)}break;case"-":case"=":var l=parseInt(h,10);if(isNaN(l)||l<0)throw new Error("Invalid number in diff_fromDelta: "+h);var d=t.substring(s,s+=l);"="==r[a].charAt(0)?e[o++]=[0,d]:e[o++]=[n,d];break;default:if(r[a])throw new Error("Invalid diff operation in diff_fromDelta: "+r[a])}}if(s!=t.length)throw new Error("Delta length ("+s+") does not equal source text length ("+t.length+").");return e},i.prototype.match_main=function(t,i,n){if(null==t||null==i||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,t.length)),t==i?0:t.length?t.substring(n,n+i.length)==i?n:this.match_bitap_(t,i,n):-1},i.prototype.match_bitap_=function(t,i,n){if(i.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var e=this.match_alphabet_(i),o=this;function s(t,e){var s=t/i.length,r=Math.abs(n-e);return o.Match_Distance?s+r/o.Match_Distance:r?1:s}var r=this.Match_Threshold,a=t.indexOf(i,n);-1!=a&&(r=Math.min(s(0,a),r),-1!=(a=t.lastIndexOf(i,n+i.length))&&(r=Math.min(s(0,a),r)));var h,l,d=1<<i.length-1;a=-1;for(var c,p=i.length+t.length,u=0;u<i.length;u++){for(h=0,l=p;h<l;)s(u,n+l)<=r?h=l:p=l,l=Math.floor((p-h)/2+h);p=l;var f=Math.max(1,n-l+1),v=Math.min(n+l,t.length)+i.length,g=Array(v+2);g[v+1]=(1<<u)-1;for(var m=v;m>=f;m--){var b=e[t.charAt(m-1)];if(g[m]=0===u?(g[m+1]<<1|1)&b:(g[m+1]<<1|1)&b|(c[m+1]|c[m])<<1|1|c[m+1],g[m]&d){var w=s(u,m-1);if(w<=r){if(r=w,!((a=m-1)>n))break;f=Math.max(1,2*n-a)}}}if(s(u+1,n)>r)break;c=g}return a},i.prototype.match_alphabet_=function(t){for(var i={},n=0;n<t.length;n++)i[t.charAt(n)]=0;for(n=0;n<t.length;n++)i[t.charAt(n)]|=1<<t.length-n-1;return i},i.prototype.patch_addContext_=function(t,i){if(0!=i.length){for(var n=i.substring(t.start2,t.start2+t.length1),e=0;i.indexOf(n)!=i.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)n=i.substring(t.start2-(e+=this.Patch_Margin),t.start2+t.length1+e);var o=i.substring(t.start2-(e+=this.Patch_Margin),t.start2);o&&t.diffs.unshift([0,o]);var s=i.substring(t.start2+t.length1,t.start2+t.length1+e);s&&t.diffs.push([0,s]),t.start1-=o.length,t.start2-=o.length,t.length1+=o.length+s.length,t.length2+=o.length+s.length}},i.prototype.patch_make=function(t,e,o){var s,r;if("string"==typeof t&&"string"==typeof e&&void 0===o)(r=this.diff_main(s=t,e,!0)).length>2&&(this.diff_cleanupSemantic(r),this.diff_cleanupEfficiency(r));else if(t&&"object"==typeof t&&void 0===e&&void 0===o)s=this.diff_text1(r=t);else if("string"==typeof t&&e&&"object"==typeof e&&void 0===o)s=t,r=e;else{if("string"!=typeof t||"string"!=typeof e||!o||"object"!=typeof o)throw new Error("Unknown call format to patch_make.");s=t,r=o}if(0===r.length)return[];for(var a=[],h=new i.patch_obj,l=0,d=0,c=0,p=s,u=s,f=0;f<r.length;f++){var v=r[f][0],g=r[f][1];switch(l||0===v||(h.start1=d,h.start2=c),v){case 1:h.diffs[l++]=r[f],h.length2+=g.length,u=u.substring(0,c)+g+u.substring(c);break;case n:h.length1+=g.length,h.diffs[l++]=r[f],u=u.substring(0,c)+u.substring(c+g.length);break;case 0:g.length<=2*this.Patch_Margin&&l&&r.length!=f+1?(h.diffs[l++]=r[f],h.length1+=g.length,h.length2+=g.length):g.length>=2*this.Patch_Margin&&l&&(this.patch_addContext_(h,p),a.push(h),h=new i.patch_obj,l=0,p=u,d=c)}1!==v&&(d+=g.length),v!==n&&(c+=g.length)}return l&&(this.patch_addContext_(h,p),a.push(h)),a},i.prototype.patch_deepCopy=function(t){for(var n=[],e=0;e<t.length;e++){var o=t[e],s=new i.patch_obj;s.diffs=[];for(var r=0;r<o.diffs.length;r++)s.diffs[r]=o.diffs[r].slice();s.start1=o.start1,s.start2=o.start2,s.length1=o.length1,s.length2=o.length2,n[e]=s}return n},i.prototype.patch_apply=function(t,i){if(0==t.length)return[i,[]];t=this.patch_deepCopy(t);var e=this.patch_addPadding(t);i=e+i+e,this.patch_splitMax(t);for(var o=0,s=[],r=0;r<t.length;r++){var a,h,l=t[r].start2+o,d=this.diff_text1(t[r].diffs),c=-1;if(d.length>this.Match_MaxBits?-1!=(a=this.match_main(i,d.substring(0,this.Match_MaxBits),l))&&(-1==(c=this.match_main(i,d.substring(d.length-this.Match_MaxBits),l+d.length-this.Match_MaxBits))||a>=c)&&(a=-1):a=this.match_main(i,d,l),-1==a)s[r]=!1,o-=t[r].length2-t[r].length1;else if(s[r]=!0,o=a-l,d==(h=i.substring(a,-1==c?a+d.length:c+this.Match_MaxBits)))i=i.substring(0,a)+this.diff_text2(t[r].diffs)+i.substring(a+d.length);else{var p=this.diff_main(d,h,!1);if(d.length>this.Match_MaxBits&&this.diff_levenshtein(p)/d.length>this.Patch_DeleteThreshold)s[r]=!1;else{this.diff_cleanupSemanticLossless(p);for(var u,f=0,v=0;v<t[r].diffs.length;v++){var g=t[r].diffs[v];0!==g[0]&&(u=this.diff_xIndex(p,f)),1===g[0]?i=i.substring(0,a+u)+g[1]+i.substring(a+u):g[0]===n&&(i=i.substring(0,a+u)+i.substring(a+this.diff_xIndex(p,f+g[1].length))),g[0]!==n&&(f+=g[1].length)}}}}return[i=i.substring(e.length,i.length-e.length),s]},i.prototype.patch_addPadding=function(t){for(var i=this.Patch_Margin,n="",e=1;e<=i;e++)n+=String.fromCharCode(e);for(e=0;e<t.length;e++)t[e].start1+=i,t[e].start2+=i;var o=t[0],s=o.diffs;if(0==s.length||0!=s[0][0])s.unshift([0,n]),o.start1-=i,o.start2-=i,o.length1+=i,o.length2+=i;else if(i>s[0][1].length){var r=i-s[0][1].length;s[0][1]=n.substring(s[0][1].length)+s[0][1],o.start1-=r,o.start2-=r,o.length1+=r,o.length2+=r}return 0==(s=(o=t[t.length-1]).diffs).length||0!=s[s.length-1][0]?(s.push([0,n]),o.length1+=i,o.length2+=i):i>s[s.length-1][1].length&&(s[s.length-1][1]+=n.substring(0,r=i-s[s.length-1][1].length),o.length1+=r,o.length2+=r),n},i.prototype.patch_splitMax=function(t){for(var e=this.Match_MaxBits,o=0;o<t.length;o++)if(!(t[o].length1<=e)){var s=t[o];t.splice(o--,1);for(var r=s.start1,a=s.start2,h="";0!==s.diffs.length;){var l=new i.patch_obj,d=!0;for(l.start1=r-h.length,l.start2=a-h.length,""!==h&&(l.length1=l.length2=h.length,l.diffs.push([0,h]));0!==s.diffs.length&&l.length1<e-this.Patch_Margin;){var c=s.diffs[0][0],p=s.diffs[0][1];1===c?(l.length2+=p.length,a+=p.length,l.diffs.push(s.diffs.shift()),d=!1):c===n&&1==l.diffs.length&&0==l.diffs[0][0]&&p.length>2*e?(l.length1+=p.length,r+=p.length,d=!1,l.diffs.push([c,p]),s.diffs.shift()):(p=p.substring(0,e-l.length1-this.Patch_Margin),l.length1+=p.length,r+=p.length,0===c?(l.length2+=p.length,a+=p.length):d=!1,l.diffs.push([c,p]),p==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(p.length))}h=(h=this.diff_text2(l.diffs)).substring(h.length-this.Patch_Margin);var u=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);""!==u&&(l.length1+=u.length,l.length2+=u.length,0!==l.diffs.length&&0===l.diffs[l.diffs.length-1][0]?l.diffs[l.diffs.length-1][1]+=u:l.diffs.push([0,u])),d||t.splice(++o,0,l)}}},i.prototype.patch_toText=function(t){for(var i=[],n=0;n<t.length;n++)i[n]=t[n];return i.join("")},i.prototype.patch_fromText=function(t){var e=[];if(!t)return e;for(var o=t.split("\n"),s=0,r=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;s<o.length;){var a=o[s].match(r);if(!a)throw new Error("Invalid patch string: "+o[s]);var h=new i.patch_obj;for(e.push(h),h.start1=parseInt(a[1],10),""===a[2]?(h.start1--,h.length1=1):"0"==a[2]?h.length1=0:(h.start1--,h.length1=parseInt(a[2],10)),h.start2=parseInt(a[3],10),""===a[4]?(h.start2--,h.length2=1):"0"==a[4]?h.length2=0:(h.start2--,h.length2=parseInt(a[4],10)),s++;s<o.length;){var l=o[s].charAt(0);try{var d=decodeURI(o[s].substring(1))}catch(t){throw new Error("Illegal escape in patch_fromText: "+d)}if("-"==l)h.diffs.push([n,d]);else if("+"==l)h.diffs.push([1,d]);else if(" "==l)h.diffs.push([0,d]);else{if("@"==l)break;if(""!==l)throw new Error('Invalid patch mode "'+l+'" in: '+d)}s++}}return e},(i.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var t,i=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],e=0;e<this.diffs.length;e++){switch(this.diffs[e][0]){case 1:t="+";break;case n:t="-";break;case 0:t=" "}i[e+1]=t+encodeURI(this.diffs[e][1])+"\n"}return i.join("").replace(/%20/g," ")},t.exports=i,t.exports.diff_match_patch=i,t.exports.DIFF_DELETE=n,t.exports.DIFF_INSERT=1,t.exports.DIFF_EQUAL=0})),w=function(t,i,n,e){var o,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,n,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(s<3?o(r):s>3?o(i,n,r):o(i,n))||r);return s>3&&r&&Object.defineProperty(i,n,r),r};const y={en:{placeholder:"Begin typing here..."}},x=class{constructor(n){t(this,n),this.ldfCursorMoved=i(this,"ldfCursorMoved",7),this.ldfDocShouldChange=i(this,"ldfDocShouldChange",7),this.ldfAddChildAfter=i(this,"ldfAddChildAfter",7),this.ldfMergeWithPrevious=i(this,"ldfMergeWithPrevious",7),this.template="",this.templateMaker=t=>t}textChanged(t){this.currentText=t,this.previousText=this.currentText,this.textarea&&(this.textarea.value=this.currentText),this.autoGrow()}componentDidRender(){this.autoGrow()}onInput(){this.autoGrow(),this.handleInput()}handleInput(){var t,i;this.registerCursor();const n=function(t,i,n,e){const o=null==t?void 0:t.replace("//","/");if(null==i||null==i)return new u({path:o,op:[{type:"set",oldValue:i,value:n}]});if("number"==typeof i||"number"==e)return new u({path:o,op:[{type:"set",oldValue:Number(i),value:Number(n)}]});{const t=new b,e=t.diff_main(i,n);t.diff_cleanupSemantic(e);const s=t.patch_make(i,e),r=new Array;return s.forEach((t=>{const i=new Array;let n=t.start1;t.diffs.forEach((([t,e])=>{switch(t){case 0:n+=e.length;break;case 1:n>0&&(i.push(n),n=0),i.push(e);break;case-1:n>0&&(i.push(n),n=0),i.push({d:e.length})}})),r.push({type:"edit",value:i})})),new u({path:o,op:r})}}(this.cursor.path,this.previousText,this.cursor.element.value,this.inputType);this.previousText=(null===(i=null===(t=this.cursor)||void 0===t?void 0:t.element)||void 0===i?void 0:i.value)||"",this.ldfDocShouldChange.emit(n)}onFocusOut(){this.cursor=void 0,this.ldfCursorMoved.emit(void 0)}onSelect(){this.registerCursor()}onFocus(){this.registerCursor()}onClick(){this.registerCursor()}onKeyDown(){this.registerCursor()}registerCursor(){var t,i;return this.cursor&&this.textarea.selectionStart===(null===(t=this.cursor)||void 0===t?void 0:t.start)&&this.textarea.selectionEnd===(null===(i=this.cursor)||void 0===i?void 0:i.end)||(this.cursor=new p(this.path,this.textarea.selectionStart,this.textarea.selectionEnd,this.textarea),this.emitCursor(this.cursor)),this.cursor}autoGrow(){if(!this.short&&this.textarea&&window){this.textarea.style.height="1.5em";const t=window.getComputedStyle(this.textarea),i=parseInt(t.getPropertyValue("border-top-width"))+parseInt(t.getPropertyValue("padding-top"))+this.textarea.scrollHeight+parseInt(t.getPropertyValue("padding-bottom"))+parseInt(t.getPropertyValue("border-bottom-width"))+5;this.textarea.style.height=`${i}px`}}checkEnter(t){var i,n,e,o,s,r,a;if(this.registerCursor(),13==t.keyCode&&!t.shiftKey)if((null===(i=this.cursor)||void 0===i?void 0:i.start)==this.textarea.value.length)t.preventDefault(),this.ldfAddChildAfter.emit({path:this.path,template:this.template});else{t.preventDefault();const i=this.textarea.value,r=i.slice(0,null!==(e=null===(n=this.cursor)||void 0===n?void 0:n.start)&&void 0!==e?e:0),a=i.slice(null!==(s=null===(o=this.cursor)||void 0===o?void 0:o.start)&&void 0!==s?s:0,this.textarea.value.length);this.ldfDocShouldChange.emit(new u({path:this.path,op:[{type:"set",oldValue:i,value:r}]})),this.ldfAddChildAfter.emit({path:this.path,template:this.templateMaker(a)})}8==t.keyCode&&0==(null===(r=this.cursor)||void 0===r?void 0:r.start)&&0==(null===(a=this.cursor)||void 0===a?void 0:a.end)&&(t.preventDefault(),this.ldfMergeWithPrevious.emit({path:this.path,value:this.currentText}))}componentWillLoad(){this.loadLocaleStrings(),this.textChanged(this.text),this.previousText=this.text}emitCursor(t){this.ldfCursorMoved.emit(t)}async loadLocaleStrings(){try{this.localeStrings=y[v(this.element)]}catch(t){console.warn(t)}}render(){const t=this.localeStrings||{};return this.short?n(e,null,n("ion-input",{ref:async t=>this.textarea=await t.getInputElement(),placeholder:this.placeholder||t.placeholder,value:this.currentText,onKeyDown:t=>this.checkEnter(t),type:this.inputType||"text"}),this.unit&&this.unit):n(e,null,n("textarea",{ref:t=>this.textarea=t,placeholder:this.placeholder||t.placeholder,onKeyDown:t=>this.checkEnter(t)},this.currentText))}get element(){return o(this)}static get watchers(){return{text:["textChanged"]}}};w([c(1250)],x.prototype,"handleInput",null),w([c(500)],x.prototype,"emitCursor",null),x.style="ldf-editable-text.sc-ldf-editable-text{display:block;font-family:var(--ldf-font-face)}.sc-ldf-editable-text-h textarea.sc-ldf-editable-text{display:block;color:inherit;font-family:inherit;font-weight:inherit;font-style:inherit;font-size:inherit;font-variant:inherit;text-decoration:inherit;text-align:inherit;height:1.75em;width:100%;max-width:100%;min-height:1.75em;border:none;outline:none;background:transparent;box-sizing:border-box;resize:none;appearance:none;margin-top:calc(var(--ldf-string-border-width)+var(--ldf-string-border-radius));margin-bottom:var(--ldf-string-border-bottom-width);padding-left:calc(var(--ldf-string-border-width) + 4px);padding-right:calc(var(--ldf-string-border-width) + 4px)}ion-input.sc-ldf-editable-text{--ion-font-family:var(--ldf-font-face);min-height:2em !important}";export{g as ion_input,x as ldf_editable_text}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,r as t,c as o,H as i,d as n}from"./p-814a5a13.js";import{C as l}from"./p-
|
|
1
|
+
import{h as e,r as t,c as o,H as i,d as n}from"./p-814a5a13.js";import{C as l}from"./p-619c1cd7.js";import{C as a}from"./p-991c0877.js";import{g as s}from"./p-546bb0de.js";const r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["Advent","Christmas","Epiphany","Lent","HolyWeek","Easter","Ascension","Pentecost","Saints","OrdinaryTime","Ember","National","Rogation","Mary"],d=({field:t,localeStrings:o,options:i,currentCondition:n,onToggleSubcondition:l,onToggleValue:a})=>e("article",null,e("ion-item",null,e("ion-label",null,o[t]),e("ion-toggle",{checked:void 0!==n,onIonChange:e=>l(t,e.detail.checked,{except:[],only:[]})})),void 0!==n&&e("div",{class:"type"},e("h4",null,o.only),i.map((i=>{var l;const s=null===(l=n.only)||void 0===l?void 0:l.includes(i);return e("ion-chip",{onClick:()=>a(t,"only",i),color:s?"primary":"light"},o[i]||i)})),e("h4",null,o.except),i.map((i=>{var l;const s=null===(l=n.except)||void 0===l?void 0:l.includes(i);return e("ion-chip",{onClick:()=>a(t,"except",i),color:s?"primary":"light"},o[i]||i)})))),h=({path:t,field:o,localeStrings:i,currentCondition:n,onToggleSubcondition:l})=>n&&e("article",null,e("ion-item",null,e("ion-label",null,i[o]),e("ion-toggle",{checked:void 0!==n[o],onIonChange:e=>l(o,e.detail.checked,{except:[],only:[]})})),void 0!==n[o]&&e("div",{class:"type"},e("h4",null,i.except),e("ldf-editable-string-list",{path:`${t}/${o}`,property:"except",value:n[o].except}),e("h4",null,i.only),e("ldf-editable-string-list",{path:`${t}/${o}`,property:"only",value:n[o].only}))),p={en:{date:"Date (Month/Day)",day:"Liturgical Day",dayOfMonth:"Day of Month",dayOfMonthIs:"Day of Month Is",dayOfMonthIsNot:"Day of Month Is Not",except:"Except",feastDay:"Only on Holy Days and Sundays",notFeastDay:"Except on Holy Days and Sundays",gt:"After",gte:"On or After",lt:"Before",lte:"Before or On",only:"Only",preference:"Preference",preferenceIs:"=",preferenceIsNot:"≠",preferenceKey:"Key",preferenceValue:"Value",season:"Season",weekday:"Day of the Week"}},y=class{constructor(e){t(this,e),this.ldfDocShouldChange=o(this,"ldfDocShouldChange",7)}conditionChange(){this.workingCondition=this.condition}componentWillLoad(){this.loadLocaleStrings(),this.workingCondition=this.condition}async loadLocaleStrings(){try{this.localeStrings=p[s(this.element)]}catch(e){console.warn(e)}}toggleSubcondition(e,t,o){t&&null==this.workingCondition[e]?(this.workingCondition=new l(Object.assign(Object.assign({},this.workingCondition),{[e]:o})),this.ldfDocShouldChange.emit(new a({path:`${this.path}/${e}`,op:[{type:"set",value:o}]}))):(this.ldfDocShouldChange.emit(new a({path:`${this.path}/${e}`,op:[{type:"delete",oldValue:this.workingCondition[e]}]})),this.workingCondition[e]=void 0,this.workingCondition=new l(this.workingCondition))}toggleExceptOnly(e,t,o){const i=this.workingCondition[e][t];if(-1==i.indexOf(o))i.push(o),this.ldfDocShouldChange.emit(new a({path:`${this.path}/${e}/${t}`,op:[{type:"insertAt",index:i.length,value:o}]}));else{const n=i.indexOf(o);i.splice(n,1),this.ldfDocShouldChange.emit(new a({path:`${this.path}/${e}/${t}`,op:[{type:"deleteAt",index:n,oldValue:o}]}))}this.workingCondition=new l(Object.assign({},this.workingCondition))}setDateField(e,t){var o;const i=new Date(Date.parse(t)),n=i.getMonth()+1,l=i.getDate(),s=null===(o=this.workingCondition)||void 0===o?void 0:o.date[e];this.ldfDocShouldChange.emit(new a({path:`${this.path}/date/${e}`,op:[{type:"set",value:`${n}/${l}`,oldValue:s}]}))}preferenceIs(e){var t,o;const i=null===(o=null===(t=this.workingCondition)||void 0===t?void 0:t.preference)||void 0===o?void 0:o.is;this.workingCondition=new l(Object.assign(Object.assign({},this.workingCondition),{preference:Object.assign(Object.assign({},this.workingCondition.preference),{is:e})})),this.ldfDocShouldChange.emit(new a({path:`${this.path}/preference`,op:[{type:"set",index:"is",value:e,oldValue:i}]}))}render(){var t,o,n,l;const a=this.localeStrings||{};return e(i,null,e("ion-item",null,e("ion-label",null,a.feastDay),e("ion-toggle",{checked:!0===this.workingCondition.feastDay,onIonChange:e=>this.toggleSubcondition("feastDay",e.detail.checked,e.detail.checked)})),e("ion-item",null,e("ion-label",null,a.notFeastDay),e("ion-toggle",{checked:!1===this.workingCondition.feastDay,onIonChange:e=>this.toggleSubcondition("feastDay",e.detail.checked,!e.detail.checked)})),e(d,{field:"season",localeStrings:a,options:c,currentCondition:null===(t=this.workingCondition)||void 0===t?void 0:t.season,onToggleSubcondition:(e,t,o)=>this.toggleSubcondition(e,t,o),onToggleValue:(e,t,o)=>this.toggleExceptOnly(e,t,o)}),e(d,{field:"weekday",localeStrings:a,options:r,currentCondition:null===(o=this.workingCondition)||void 0===o?void 0:o.weekday,onToggleSubcondition:(e,t,o)=>this.toggleSubcondition(e,t,o),onToggleValue:(e,t,o)=>this.toggleExceptOnly(e,t,o)}),e("article",null,e("ion-item",null,e("ion-label",null,a.date),e("ion-toggle",{checked:void 0!==this.workingCondition.date,onIonChange:e=>this.toggleSubcondition("date",e.detail.checked,{})})),void 0!==this.workingCondition.date&&e("div",{class:"type"},e("ion-item",{lines:"none"},e("ion-label",{position:"stacked"},a.lte),e("ion-datetime",{presentation:"date",onIonChange:e=>this.setDateField("lte",Array.isArray(e.detail.value)?e.detail.value[0]:e.detail.value)})),e("ion-item",{lines:"none"},e("ion-label",{position:"stacked"},a.lt),e("ion-datetime",{presentation:"date",onIonChange:e=>this.setDateField("lt",Array.isArray(e.detail.value)?e.detail.value[0]:e.detail.value)})),e("ion-item",{lines:"none"},e("ion-label",{position:"stacked"},a.gte),e("ion-datetime",{presentation:"date",onIonChange:e=>this.setDateField("gte",Array.isArray(e.detail.value)?e.detail.value[0]:e.detail.value)})),e("ion-item",{lines:"none"},e("ion-label",{position:"stacked"},a.gt),e("ion-datetime",{onIonChange:e=>this.setDateField("gt",Array.isArray(e.detail.value)?e.detail.value[0]:e.detail.value)})))),e("article",null,e("ion-item",null,e("ion-label",null,a.dayOfMonth),e("ion-toggle",{checked:void 0!==this.workingCondition.day_of_month,onIonChange:e=>this.toggleSubcondition("day_of_month",e.detail.checked,{})})),void 0!==this.workingCondition.day_of_month&&e("div",{class:"type row"},e("ion-item",{lines:"none"},e("ion-label",{position:"stacked"},a.dayOfMonthIs),e("ldf-editable-text",{short:!0,inputType:"number",path:`${this.path}/day_of_month/eq`,placeholder:a.dayOfMonth,text:null===(n=this.workingCondition.day_of_month.eq)||void 0===n?void 0:n.toString()})),e("ion-item",{lines:"none"},e("ion-label",{position:"stacked"},a.dayOfMonthIsNot),e("ldf-editable-text",{short:!0,inputType:"number",path:`${this.path}/day_of_month/neq`,placeholder:a.dayOfMonth,text:null===(l=this.workingCondition.day_of_month.eq)||void 0===l?void 0:l.toString()})))),e("article",null,e("ion-item",null,e("ion-label",null,a.preference),e("ion-toggle",{checked:void 0!==this.workingCondition.preference,onIonChange:e=>this.toggleSubcondition("preference",e.detail.checked,{key:"",is:!0,value:""})})),void 0!==this.workingCondition.preference&&e("div",{class:"type row"},e("ldf-editable-text",{short:!0,inputType:"text",path:`${this.path}/preference/key`,placeholder:a.preferenceKey,text:this.workingCondition.preference.key}),e("ion-select",{value:this.workingCondition.preference.is,onIonChange:e=>this.preferenceIs(e.detail.value)},e("ion-select-option",{value:!0},a.preferenceIs),e("ion-select-option",{value:!1},a.preferenceIsNot)),e("ldf-editable-text",{short:!0,inputType:"text",path:`${this.path}/preference/value`,placeholder:a.preferenceValue,text:this.workingCondition.preference.value}))),e(h,{path:this.path,field:"day",localeStrings:a,currentCondition:this.workingCondition.day,onToggleSubcondition:(e,t,o)=>this.toggleSubcondition(e,t,o)}),e(h,{path:this.path,field:"week",localeStrings:a,currentCondition:this.workingCondition.week,onToggleSubcondition:(e,t,o)=>this.toggleSubcondition(e,t,o)}))}get element(){return n(this)}static get watchers(){return{condition:["conditionChange"]}}};y.style=".row.sc-ldf-editable-condition-piece{display:flex;flex-direction:row;justify-content:space-between;padding:8px}.type.sc-ldf-editable-condition-piece ul.checkbox.sc-ldf-editable-condition-piece{display:flex;flex-wrap:wrap;margin:0;padding:0}.type.sc-ldf-editable-condition-piece h4.sc-ldf-editable-condition-piece{text-align:center}.sc-ldf-editable-condition-piece:root{--ion-color-primary:#69bb7b;--ion-color-primary-rgb:105,187,123;--ion-color-primary-contrast:#000000;--ion-color-primary-contrast-rgb:0,0,0;--ion-color-primary-shade:#5ca56c;--ion-color-primary-tint:#78c288}.ion-color-primary.sc-ldf-editable-condition-piece{--ion-color-base:#69bb7b, var(--ion-color-primary);--ion-color-base-rgb:var(--ion-color-primary-rgb);--ion-color-contrast:var(--ion-color-primary-contrast);--ion-color-contrast-rgb:var(--ion-color-primary-contrast-rgb);--ion-color-shade:var(--ion-color-primary-shade);--ion-color-tint:var(--ion-color-primary-tint)}";export{y as ldf_editable_condition_piece}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as e}from"./p-
|
|
1
|
+
import{L as e}from"./p-619c1cd7.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",bhs:"Hebrew",hebrew:"Hebrew",EAIB:"EAIB",BCP:"BCP",eaib:"EAIB",bcp:"BCP"};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 r,a,n;const o=this.uniqueVersions(),u=this.uniqueLabels(),b=this.uniqueCitations(),c=this.uniqueCanticleNumbers();let p="";if(e.version_label)p=e.version_label;else if("liturgy"==e.type)p=e.label||e.version_label||"Option";else if("psalm"==e.type&&1==o&&e.label&&((null===(r=e.slug)||void 0===r?void 0:r.match(/psalm_119_/))||(null===(a=e.citation)||void 0===a?void 0:a.toString().match(/Ps[^\d]+119/))))p=e.label;else if("psalm"==e.type&&o>1)p=e.version_label||l[i(e.version)];else if("psalm"==e.type&&"psalm"==e.style&&(e.citation||(null===(n=e.metadata)||void 0===n?void 0:n.number))&&1==o)p=e.citation?e.citation.toString():`Psalm ${e.metadata.number}`;else if("bible-reading"==e.type&&b>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}”)`:"";p=o>1?`${e.citation.toString()} (${e.version})${l}`:`${e.citation.toString()}${l}`}else if("bible-reading"==e.type&&1==b)p=i(e.version);else if("bible-reading"==e.type&&e.citation&&1==o)p=e.citation.toString();else if("bible-reading"==e.type&&e.citation&&o>1)p=`${e.citation.toString()} (${i(e.version)})`;else if(1==o&&"psalm"==e.type&&"canticle"==e.style&&e.metadata&&e.metadata.localname)p=e.metadata.localname;else if(o>1&&1===c)p=l[i(s(e))];else if(o>1&&e.metadata&&e.metadata.hasOwnProperty("localname")&&e.version)p=`${e.metadata.localname} (${l[i(s(e))]})`;else if(e.version_label&&"bcp1979"!==e.version_label)p=e.version_label;else if(e.label&&u>1&&1==o)p=e.label;else if(e.label&&u>1&&o>1)p=`${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)p=l[i(s(e))];else if(e.citation)p=e.citation.toString();else{if(!e.value)throw`Unable to generate a label from ${JSON.stringify(e)}`;p=`“${JSON.stringify(e.value).replace(/[\[\]\{\}\"\'\:]/g," ").replace(/\\n/g," ").trim()}”`}else p=e.metadata.localname;return p.length>t?p.substring(0,t)+"...":p}}export{t as O,i as v}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{M as e,P as r,B as a,R as s,a as n,L as t}from"./p-c88be1ca.js";import{H as i}from"./p-d6b725e9.js";import{O as o}from"./p-8e59a930.js";import{R as c}from"./p-3f3b5ab1.js";import{T as u}from"./p-07a5654e.js";function p(p){switch(p.type){case"liturgy":return new t(p);case"heading":return new i(p);case"option":return new o(p);case"refrain":return new c(p);case"rubric":return new n(p);case"text":return new u(p);case"responsive":return new s(p);case"bible-reading":return new a(p);case"psalm":return new r(p);case"meditation":return new e(p);default:return p}}export{p as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as l,h as e,H as i,d as a}from"./p-814a5a13.js";import"./p-
|
|
1
|
+
import{r as t,c as l,h as e,H as i,d as a}from"./p-814a5a13.js";import"./p-619c1cd7.js";import{a as o}from"./p-8ec26587.js";import{C as n}from"./p-991c0877.js";import{g as s}from"./p-546bb0de.js";const d={en:{additional:"Advanced Settings",alternateYear:"“Alternate Year” Reading",default:"Default",fallback:"Fallback Value",label:"Label",option:"Option",value:"Value"}},h=class{constructor(e){t(this,e),this.ldfDocShouldChange=l(this,"ldfDocShouldChange",7)}optionChange(){this.currentOption=this.option||new o}componentWillLoad(){var t;this.currentOption=this.option||new o,(null===(t=this.currentOption)||void 0===t?void 0:t.metadata)||(this.currentOption.metadata={},this.ldfDocShouldChange.emit(new n({path:`${this.path}/metadata`,op:[{type:"set",value:{}}]}))),this.loadLocaleStrings()}async loadLocaleStrings(){try{this.localeStrings=d[s(this.element)]}catch(t){console.warn(t)}}render(){var t,l,a,o,n,s,d;const h=this.localeStrings||{};return e(i,null,e("ion-list",null,e("ion-item",null,e("ion-label",{position:"stacked"},h.value),e("ldf-editable-text",{path:`${this.path}/value`,placeholder:h.value,short:!0,text:null===(t=this.currentOption)||void 0===t?void 0:t.value})),e("ion-item",null,e("ion-label",{position:"stacked"},h.label),e("ldf-editable-text",{path:`${this.path}/label`,placeholder:h.label,short:!0,text:null===(l=this.currentOption)||void 0===l?void 0:l.label})),e("ion-item",null,e("ion-label",null,h.default),e("ldf-editable-boolean",{path:this.path,property:"default",value:null===(a=this.currentOption)||void 0===a?void 0:a.default})),e("ion-list-header",null,h.additional),e("ion-item",null,e("ion-label",null,h.alternateYear),e("ldf-editable-boolean",{path:`${this.path}/metadata`,property:"alternateYear",value:null===(n=null===(o=this.currentOption)||void 0===o?void 0:o.metadata)||void 0===n?void 0:n.alternateYear})),e("ion-item",null,e("ion-label",{position:"stacked"},h.fallback),e("ldf-editable-text",{path:`${this.path}/metadata/fallback`,placeholder:h.fallback,short:!0,text:null===(d=null===(s=this.currentOption)||void 0===s?void 0:s.metadata)||void 0===d?void 0:d.fallback}))))}get element(){return a(this)}static get watchers(){return{option:["optionChange"]}}};export{h as ldf_editable_preference_option}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,d,a){return"iu"==e||"he"==e?"disabled":"force_dropcap"===d?"enabled":"disable_dropcap"===d?"disabled":0==a?"enabled":"disabled"}export{e as u}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{L as o}from"./p-809c58d3.js";const e=[{name:"Genesis",aliases:["Gn","Gen","Genesis"]},{name:"Exodus",aliases:["Exod","Ex","Exo","Exodus"]},{name:"Leviticus",aliases:["Lev","Lv","Leviticus"]},{name:"Numbers",aliases:["Num","Numbers"]},{name:"Deuteronomy",aliases:["Deut","Deuteronomy"]},{name:"Joshua",aliases:["Josh","Joshua"]},{name:"Judges",aliases:["Judg","Jdg","Judges"]},{name:"Ruth",aliases:["Ruth"]},{name:"1 Samuel",aliases:["1Sam","1 Sam","1st Sam","1st Samuel","First Samuel","1 Samuel"]},{name:"2 Samuel",aliases:["2Sam","2 Sam","2nd Sam","2nd Samuel","Second Samuel","2 Samuel"]},{name:"1 Kings",aliases:["1Kgs","1 Kgs","1st Kgs","1st Kings","First Kings","1 Kings"]},{name:"2 Kings",aliases:["2Kgs","2 Kgs","2nd Kgs","2nd Kings","Second Kings","2 Kings"]},{name:"1 Chronicles",aliases:["1Chr","1 Chr","1st Chr","1st Chronicles","First Chronicles","1 Chronicles"]},{name:"2 Chronicles",aliases:["2Chr","2 Chr","2nd Chr","2nd Chronicles","Second Chronicles","2 Chronicles"]},{name:"Ezra",aliases:["Ezra"]},{name:"Nehemiah",aliases:["Neh","Nehemiah"]},{name:"Esther",aliases:["Esth","Est","Esther"]},{name:"Job",aliases:["Jb","Job"]},{name:"Psalms",aliases:["Ps","Psalm","Psalms"]},{name:"Proverbs",aliases:["Prov","Pro","Proverbs"]},{name:"Ecclesiastes",aliases:["Eccl","Ecc","Ecclesiastes"]},{name:"The Song of Solomon",aliases:["Song","Song of Songs","Song of Solomon","Cant"]},{name:"Isaiah",aliases:["Isa","Is","Isaiah"]},{name:"Jeremiah",aliases:["Jer","Jeremiah"]},{name:"Letter of Jeremiah",aliases:["EJer","EpJer","Epistle of Jeremiah"]},{name:"Lamentations",aliases:["Lam","Lamentations"]},{name:"Ezekiel",aliases:["Ezek","Ezekiel"]},{name:"Daniel",aliases:["Dan","Daniel"]},{name:"Hosea",aliases:["Hos","Hosea"]},{name:"Joel",aliases:["Joel"]},{name:"Amos",aliases:["Amos"]},{name:"Obadiah",aliases:["Obad","Oba","Obadiah"]},{name:"Jonah",aliases:["Jon","Jonah"]},{name:"Micah",aliases:["Mic","Micah"]},{name:"Nahum",aliases:["Nah","Nahum"]},{name:"Habakkuk",aliases:["Hab","Habakkuk"]},{name:"Zephaniah",aliases:["Zeph","Zephaniah"]},{name:"Haggai",aliases:["Hag","Haggai"]},{name:"Zechariah",aliases:["Zech","Zechariah"]},{name:"Malachi",aliases:["Mal","Malachi"]},{name:"Tobit",aliases:["Tob","Tobit"]},{name:"Judith",aliases:["Jdt","Judith"]},{name:"Baruch",aliases:["Bar","Baruch"]},{name:"1 Maccabees",aliases:["1Macc","1 Maccabees","First Maccabees","1 Macc"]},{name:"2 Maccabees",aliases:["2Macc","2 Maccabees","Second Maccabees","2 Macc"]},{name:"Wisdom",aliases:["Wis","Wisdom"]},{name:"Sirach",aliases:["Sir","Ecclus","Ben Sira","Ecclesiasticus"]},{name:"1 Esdras",aliases:["1 Esdr","1 Esdras","1 Esd","1Esdras","1Esdr","1Esd"]},{name:"2 Esdras",aliases:["2 Esdr","2 Esdras","2 Esd","2Esdras","2Esdr","2Esd"]},{name:"Bel",aliases:["Bel","Bel & the Dragon"]},{name:"Azariah",aliases:["Azariah","Song of the Three Young Men","Song of the Three Childr.","Song of the Three Children"]},{name:"Matthew",aliases:["Matt","Matthew","Mt"]},{name:"Mark",aliases:["Mark","Mk"]},{name:"Luke",aliases:["Luke","Lk"]},{name:"John",aliases:["Jn","John","Joh"]},{name:"Acts",aliases:["Acts"]},{name:"Romans",aliases:["Rom","Romans"]},{name:"1 Corinthians",aliases:["1Cor","1 Cor","1st Cor","1st Corinthians","First Corinthians","1 Corinthians"]},{name:"2 Corinthians",aliases:["2Cor","2 Cor","2nd Cor","2nd Corinthians","Second Corinthians","2 Corinthians"]},{name:"Galatians",aliases:["Gal","Galatians"]},{name:"Ephesians",aliases:["Eph","Ephesians"]},{name:"Philippians",aliases:["Phil","Philippians"]},{name:"Colossians",aliases:["Col","Colossians"]},{name:"1 Thessalonians",aliases:["1Thess","1 Thess","1st Thess","1st Thessalonians","First Thessalonians","1 Thessalonians"]},{name:"2 Thessalonians",aliases:["2Thess","2 Thess","2nd Thess","2nd Thessalonians","Second Thessalonians","2 Thessalonians"]},{name:"1 Timothy",aliases:["1 Tim","1Tim","1st Tim","1st Timothy","First Timothy","1 Timothy"]},{name:"2 Timothy",aliases:["2 Tim","2Tim","2nd Tim","2nd Timothy","Second Timothy","2 Timothy"]},{name:"Titus",aliases:["Titus"]},{name:"Philemon",aliases:["Phlm","Philemon"]},{name:"Hebrews",aliases:["Heb","Hebrews"]},{name:"James",aliases:["Jas","James"]},{name:"1 Peter",aliases:["1Pet","1 Pet","1st Pet","1st Peter","First Peter","1 Peter"]},{name:"2 Peter",aliases:["2Pet","2 Pet","2nd Pet","2nd Peter","Second Peter","2 Peter"]},{name:"1 John",aliases:["1John","1 John","1st John","First John","1 Joh"]},{name:"2 John",aliases:["2John","2 John","2nd John","Second John","2 Joh"]},{name:"3 John",aliases:["3John","3 John","3rd John","Third John","3 Joh"]},{name:"Jude",aliases:["Jude","Jd"]},{name:"Revelation",aliases:["Rev","Revelation","Revelations","Apocalypse","Apoc"]}],s={Genesis:{en:{short:"Genesis",long:"The Book of Genesis"},fr:{short:"Genèse",long:"Genèse"},es:{short:"Génesis",long:"El Libro de Génesis"},ne:{short:"परमेश्वरको वचन",long:"परमेश्वरको वचन"},th:{short:"พระธรรมเนียมปฐมกาล",long:"พระธรรมเนียมปฐมกาล"}},Exodus:{en:{short:"Exodus",long:"The Book of Exodus"},fr:{short:"Exode",long:"Exode"},es:{short:"Éxodo",long:"El Libro de Éxodo"},ne:{short:"निर्गमन",long:"निर्गमन"},th:{short:"พระธรรมนิยมประเทศอีสราเอล",long:"พระธรรมนิยมประเทศอีสราเอล"}},Leviticus:{en:{short:"Leviticus",long:"The Book of Leviticus"},fr:{short:"Lévitique",long:"Lévitique"},es:{short:"Levítico",long:"El Libro de Levítico"},ne:{short:"लैव्य",long:"लैव्य"},th:{short:"พระธรรมนิยมเลวี",long:"พระธรรมนิยมเลวี"}},Numbers:{en:{short:"Numbers",long:"The Book of Numbers"},fr:{short:"Nombres",long:"Nombres"},es:{short:"Números",long:"El Libro de Números"},ne:{short:"ग्रंथी",long:"ग्रंथी"},th:{short:"พระธรรมนิยมเบนไดกต์",long:"พระธรรมนิยมเบนไดกต์"}},Deuteronomy:{en:{short:"Deuteronomy",long:"The Book of Deuteronomy"},fr:{short:"Deutéronome",long:"Deutéronome"},es:{short:"Deuteronomio",long:"El Libro de Deuteronomio"},ne:{short:"दुतावाक्य",long:"दुतावाक्य"},th:{short:"พระธรรมนิยมฉบับนำหน้า",long:"พระธรรมนิยมฉบับนำหน้า"}},Joshua:{en:{short:"Joshua",long:"The Book of Joshua"},fr:{short:"Josué",long:"Josué"},es:{short:"Josué",long:"El Libro de Josué"},ne:{short:"योशू",long:"योशू"},th:{short:"นาคร้ายโยชูอา",long:"นาคร้ายโยชูอา"}},Judges:{en:{short:"Judges",long:"The Book of Judges"},fr:{short:"Juges",long:"Juges"},es:{short:"Jueces",long:"El Libro de Jueces"},ne:{short:"न्यायीहरू",long:"न्यायीहरू"},th:{short:"ผู้วินิจฉัย",long:"ผู้วินิจฉัย"}},Ruth:{en:{short:"Ruth",long:"The Book of Ruth"},fr:{short:"Ruth",long:"Ruth"},es:{short:"Rut",long:"El Libro de Rut"},ne:{short:"रुत",long:"रुत"},th:{short:"รูธ",long:"รูธ"}},"1 Samuel":{en:{short:"1 Samuel",long:"The First Book of Samuel"},fr:{short:"1 Samuel",long:"1 Samuel"},es:{short:"1 Samuel",long:"El Libro de 1 Samuel"},ne:{short:"1 समूएल",long:"1 समूएल"},th:{short:"1 ซามูเอล",long:"1 ซามูเอล "}},"2 Samuel":{en:{short:"2 Samuel",long:"The Second Book of Samuel"},fr:{short:"2 Samuel",long:"2 Samuel"},es:{short:"2 Samuel",long:"El Libro de 2 Samuel"},ne:{short:"2 समूएल",long:"2 समूएल"},th:{short:"2 ซามูเอล",long:"2 ซามูเอล "}},"1 Kings":{en:{short:"1 Kings",long:"The First Book of Kings"},fr:{short:"1 Rois",long:"1 Rois"},es:{short:"1 Reyes",long:"El Libro de 1 Reyes"},ne:{short:"1 राजाहरू",long:"1 राजाहरू"},th:{short:"1 พงศาวดาร",long:"1 พงศาวดาร "}},"2 Kings":{en:{short:"2 Kings",long:"The Second Book of Kings"},fr:{short:"2 Rois",long:"2 Rois"},es:{short:"2 Reyes",long:"El Libro de 2 Reyes"},ne:{short:"2 राजाहरू",long:"2 राजाहरू"},th:{short:"2 พงศาวดาร",long:"2 พงศาวดาร "}},"1 Chronicles":{en:{short:"1 Chronicles",long:"The First Book of Chronicles"},fr:{short:"1 Chroniques",long:"1 Chroniques"},es:{short:"1 Crónicas",long:"El Libro de 1 Crónicas"},ne:{short:"1 इतिहास",long:"1 इतिहास"},th:{short:"1 พงศาวดาร",long:"1 พงศาวดาร "}},"2 Chronicles":{en:{short:"2 Chronicles",long:"The Second Book of Chronicles"},fr:{short:"2 Chroniques",long:"2 Chroniques"},es:{short:"2 Crónicas",long:"El Libro de 2 Crónicas"},ne:{short:"2 इतिहास",long:"2 इतिहास"},th:{short:"2 พงศาวดาร",long:"2 พงศาวดาร "}},Ezra:{en:{short:"Ezra",long:"The Book of Ezra"},fr:{short:"Esdras",long:"Esdras"},es:{short:"Esdras",long:"El Libro de Esdras"},ne:{short:"एज्रा",long:"एज्रा"},th:{short:"เอสรา",long:"เอสรา"}},Nehemiah:{en:{short:"Nehemiah",long:"The Book of Nehemiah"},fr:{short:"Néhémie",long:"Néhémie"},es:{short:"Nehemías",long:"El Libro de Nehemías"},ne:{short:"नहेमाया",long:"नहेमाया"},th:{short:"เนหะมายา",long:"เนหะมายา"}},Esther:{en:{short:"Esther",long:"The Book of Esther"},fr:{short:"Esther",long:"Esther"},es:{short:"Ester",long:"El Libro de Ester"},ne:{short:"एस्थर",long:"एस्थर"},th:{short:"เอสเธอร์",long:"เอสเธอร์ "}},Job:{en:{short:"Job",long:"The Book of Job"},fr:{short:"Job",long:"Job"},es:{short:"Job",long:"El Libro de Job"},ne:{short:"अय्यूब",long:"अय्यूब"},th:{short:"อายูบ",long:"อายูบ "}},Psalms:{en:{short:"Psalms",long:"The Psalms"},fr:{short:"Psaumes",long:"Psaumes"},es:{short:"Salmos",long:"El Libro de Salmos"},ne:{short:"प्रागज्ञ",long:"प्रागज्ञ"},th:{short:"สดุดี",long:"สดุดี"}},Proverbs:{en:{short:"Proverbs",long:"The Book of Proverbs"},fr:{short:"Proverbes",long:"Proverbes"},es:{short:"Proverbios",long:"El Libro de Proverbios"},ne:{short:"उत्थान",long:"उत्थान"},th:{short:"ประธาน",long:"ประธาน "}},Ecclesiastes:{en:{short:"Ecclesiastes",long:"The Book of Ecclesiastes"},fr:{short:"Ecclésiaste",long:"Ecclésiaste"},es:{short:"Eclesiastés",long:"El Libro de Eclesiastés"},ne:{short:"उपदेशक",long:"उपदेशक"},th:{short:"เอกเคเลเซียส",long:"เอกเคเลเซียส"}},"The Song of Solomon":{en:{short:"The Song of Solomon",long:"The Song of Solomon"},fr:{short:"Cantique des Cantiques",long:"Cantique des Cantiques"},es:{short:"Cantares",long:"El Libro de Cantares"},ne:{short:"श्रेष्ठगीति",long:"श्रेष्ठगीति"},th:{short:"เพลงซอลโมน",long:"เพลงซอลโมน "}},Isaiah:{en:{short:"Isaiah",long:"The Book of the Prophet Isaiah"},fr:{short:"Esaïe",long:"Esaïe"},es:{short:"Isaías",long:"El Libro de Isaías"},ne:{short:"नबीहरूको ग्रन्थ",long:"नबीहरूको ग्रन्थ"},th:{short:"อิสยาห์",long:"อิสยาห์ "}},Jeremiah:{en:{short:"Jeremiah",long:"The Book of the Prophet Jeremiah"},fr:{short:"Jérémie",long:"Jérémie"},es:{short:"Jeremías",long:"El Libro de Jeremías"},ne:{short:"यिर्मिया",long:"यिर्मिया"},th:{short:"เยเรมีย์",long:"เยเรมีย์ "}},Lamentations:{en:{short:"Lamentations",long:"The Book of Lamentations"},fr:{short:"Lamentations",long:"Lamentations"},es:{short:"Lamentaciones",long:"El Libro de Lamentaciones"},ne:{short:"विलाप",long:"विलाप"},th:{short:"เพลงคร่ำครวญ",long:"เพลงคร่ำครวญ "}},Ezekiel:{en:{short:"Ezekiel",long:"The Book of the Prophet Ezekiel"},fr:{short:"Ezéchiel",long:"Ezéchiel"},es:{short:"Ezequiel",long:"El Libro de Ezequiel"},ne:{short:"यहेज्केल",long:"यहेज्केल"},th:{short:"ศาสนาบัญญัติ",long:"ศาสนาบัญญัติ "}},Daniel:{en:{short:"Daniel",long:"The Book of Daniel"},fr:{short:"Daniel",long:"Daniel"},es:{short:"Daniel",long:"El Libro de Daniel"},"en-CA":{short:"Daniel",long:"The Book of the Prophet Daniel"},iu:{short:"Daniel",long:"The Book of the Prophet Daniel"},ne:{short:"दानियेल",long:"दानियेल"},th:{short:"ดาเนียล",long:"ดาเนียล"}},Hosea:{en:{short:"Hosea",long:"The Book of the Prophet Hosea"},fr:{short:"Osée",long:"Osée"},es:{short:"Oseas",long:"El Libro de Oseas"},ne:{short:"होशे",long:"होशे"},th:{short:"โฮเชาย",long:"โฮเชาย "}},Joel:{en:{short:"Joel",long:"The Book of the Prophet Joel"},fr:{short:"Joël",long:"Joël"},es:{short:"Joel",long:"El Libro de Joel"},ne:{short:"योएल",long:"योएल"},th:{short:"โยเอล",long:"โยเอล "}},Amos:{en:{short:"Amos",long:"The Book of the Prophet Amos"},fr:{short:"Amos",long:"Amos"},es:{short:"Amós",long:"El Libro de Amós"},ne:{short:"आमोस",long:"आमोस"},th:{short:"อาโมส",long:"อาโมส "}},Obadiah:{en:{short:"Obadiah",long:"The Book of the Prophet Obadiah"},fr:{short:"Abdias",long:"Abdias"},es:{short:"Abdías",long:"El Libro de Abdías"},ne:{short:"ओबद्या",long:"ओबद्या"},th:{short:"โอบาดิห์",long:"โอบาดิห์ "}},Jonah:{en:{short:"Jonah",long:"The Book of the Prophet Jonah"},fr:{short:"Jonas",long:"Jonas"},es:{short:"Jonás",long:"El Libro de Jonás"},ne:{short:"योना",long:"योना"},th:{short:"โยนาห์",long:"โยนาห์ "}},Micah:{en:{short:"Micah",long:"The Book of the Prophet Micah"},fr:{short:"Michée",long:"Michée"},es:{short:"Miqueas",long:"El Libro de Miqueas"},ne:{short:"मीका",long:"मीका"},th:{short:"มีคาห์",long:"มีคาห์ "}},Nahum:{en:{short:"Nahum",long:"The Book of the Prophet Nahum"},fr:{short:"Nahum",long:"Nahum"},es:{short:"Nahúm",long:"El Libro de Nahúm"},ne:{short:"नहूम",long:"नहूम"},th:{short:"นาฮูม",long:"นาฮูม "}},Habakkuk:{en:{short:"Habakkuk",long:"The Book of the Prophet Habakkuk"},fr:{short:"Habacuc",long:"Habacuc"},es:{short:"Habacuc",long:"El Libro de Habacuc"},ne:{short:"हबक्कूक",long:"हबक्कूक"},th:{short:"ฮาบากุก",long:"ฮาบากุก "}},Zephaniah:{en:{short:"Zephaniah",long:"The Book of the Prophet Zephaniah"},fr:{short:"Sophonie",long:"Sophonie"},es:{short:"Sofonías",long:"El Libro de Sofonías"},ne:{short:"सपन्नाह",long:"सपन्नाह"},th:{short:"เศษนัย",long:"เศษนัย "}},Haggai:{en:{short:"Haggai",long:"The Book of the Prophet Haggai"},fr:{short:"Aggée",long:"Aggée"},es:{short:"Hageo",long:"El Libro de Hageo"},ne:{short:"हाग्गै",long:"हाग्गै"},th:{short:"ฮักกัย",long:"ฮักกัย"}},Zechariah:{en:{short:"Zechariah",long:"The Book of the Prophet Zechariah"},fr:{short:"Zacharie",long:"Zacharie"},es:{short:"Zacarías",long:"El Libro de Zacarías"},ne:{short:"जकर्या",long:"जकर्या"},th:{short:"เครีย",long:"เครีย"}},Malachi:{en:{short:"Malachi",long:"The Book of the Prophet Malachi"},fr:{short:"Malachie",long:"Malachie"},es:{short:"Malaquías",long:"El Libro de Malaquías"},ne:{short:"मलाकी",long:"मलाकी"},th:{short:"มาลาคี",long:"มาลาคี"}},Tobit:{en:{short:"Tobit",long:"The Book of Tobit"},fr:{short:"",long:""},es:{short:"Tobías",long:"El Libro de Tobías"}},Azariah:{en:{short:"The Song of the Three Children",long:"The Song of the Three Children"},fr:{short:"",long:""},es:{short:"El Himno de los tres jóvenes",long:"El Himno de los tres jóvenes"}},Judith:{en:{short:"Judith",long:"The Book of Judith"},fr:{short:"",long:""},es:{short:"Judit",long:"El Libro de Judit"}},Baruch:{en:{short:"Baruch",long:"The Book of Baruch"},fr:{short:"",long:""},es:{short:"Baruc",long:"El Libro de Baruc"}},"1 Maccabees":{en:{short:"1 Maccabees",long:"The First Book of Maccabees"},fr:{short:"",long:""},es:{short:"1 Macabeos",long:"El Libro 1 de los Macabeos"}},"2 Maccabees":{en:{short:"2 Maccabees",long:"The Second Book of Maccabees"},fr:{short:"",long:""},es:{short:"2 Macabeos",long:"El Libro 2 de los Macabeos"}},Wisdom:{en:{short:"Wisdom",long:"The Wisdom of Solomon"},fr:{short:"",long:""},es:{short:"Sabiduría",long:"El Libro de la Sabiduría"}},Sirach:{en:{short:"Sirach",long:"The Wisdom of Ben Sira"},fr:{short:"",long:""},es:{short:"Eclesiástico",long:"La Sabiduría de Jesús ben Sirá"},"en-CA":{short:"Sirach",long:"The Book of Ecclesiasticus"},iu:{short:"Sirach",long:"The Book of Ecclesiasticus"}},Matthew:{en:{short:"Matthew",long:"The Gospel According to Matthew"},fr:{short:"Matthieu",long:"Matthieu"},es:{short:"Mateo",long:"El Evangelio de San Mateo"},"en-CA":{short:"Matthew",long:"The Gospel According to St. Matthew"},iu:{short:"Matthew",long:"The Gospel According to St. Matthew"},ne:{short:"मत्ती",long:"मत्ती"},th:{short:"มัทธิว",long:"มัทธิว"}},Mark:{en:{short:"Mark",long:"The Gospel According to Mark"},fr:{short:"Marc",long:"Marc"},es:{short:"Marcos",long:"El Evangelio de San Marcos"},"en-CA":{short:"Mark",long:"The Gospel According to St. Mark"},iu:{short:"Mark",long:"The Gospel According to St. Mark"},ne:{short:"मर्कुस",long:"मर्कुस"},th:{short:"มาร์ค",long:"มาร์ค "}},Luke:{en:{short:"Luke",long:"The Gospel According to Luke"},fr:{short:"Luc",long:"Luc"},es:{short:"Lucas",long:"El Evangelio de San Mateo"},"en-CA":{short:"Luke",long:"The Gospel According to St. Luke"},iu:{short:"Luke",long:"The Gospel According to St. Luke"},ne:{short:"लूका",long:"लूका"},th:{short:"ลูกา",long:"ลูกา "}},John:{en:{short:"John",long:"The Gospel According to John"},fr:{short:"Jean",long:"Jean"},es:{short:"Juan",long:"El Evangelio de San Juan"},"en-CA":{short:"John",long:"The Gospel According to St. John"},iu:{short:"John",long:"The Gospel According to St. John"},ne:{short:"यूहन्ना",long:"यूहन्ना"},th:{short:"ยอห์น",long:"ยอห์น "}},Acts:{en:{short:"Acts",long:"The Acts of the Apostles"},fr:{short:"Les Actes des Apôtres",long:"Les Actes des Apôtres"},es:{short:"Hechos",long:"Los Hechos de los Apóstoles"},"en-CA":{short:"Acts",long:"The Book of the Acts of the Apostles"},iu:{short:"Acts",long:"The Book of the Acts of the Apostles"},ne:{short:"प्रेरितहरूको काम",long:"प्रेरितहरूको काम"},th:{short:"กิจการอัปโศก",long:"กิจการอัปโศก"}},Romans:{en:{short:"Romans",long:"The Letter to the Romans"},fr:{short:"Romains",long:"Romains"},es:{short:"Romanos",long:"La Epístola a los Romanos"},"en-CA":{short:"Romans",long:"The Epistle of St. Paul the Apostle to the Romans"},iu:{short:"Romans",long:"The Epistle of St. Paul the Apostle to the Romans"},ne:{short:"रोमीहरूलाई पत्र",long:"रोमीहरूलाई पत्र"},th:{short:"โรม",long:"โรม "}},"1 Corinthians":{en:{short:"1 Corinthians",long:"The First Letter to the Corinthians"},fr:{short:"1 Corinthiens",long:"1 Corinthiens"},es:{short:"1 Corintios",long:"La Primera Epístola a los Corintios"},"en-CA":{short:"1 Corinthians",long:"The First Epistle of St. Paul the Apostle to the Corinthians"},iu:{short:"1 Corinthians",long:"The First Epistle of St. Paul the Apostle to the Corinthians"},ne:{short:"1 कुरिन्थीहरूलाई पत्र",long:"1 कुरिन्थीहरूलाई पत्र"},th:{short:"1 โครินธ์",long:"1 โครินธ์ "}},"2 Corinthians":{en:{short:"2 Corinthians",long:"The Second Letter to the Corinthians"},fr:{short:"2 Corinthiens",long:"2 Corinthiens"},es:{short:"2 Corintios",long:"La Segunda Epístola a los Corintios"},"en-CA":{short:"2 Corinthians",long:"The Second Epistle of St. Paul the Apostle to the Corinthians"},iu:{short:"2 Corinthians",long:"The Second Epistle of St. Paul the Apostle to the Corinthians"},ne:{short:"2 कुरिन्थीहरूलाई पत्र",long:"2 कुरिन्थीहरूलाई पत्र"},th:{short:"2 โครินธ์",long:"2 โครินธ์ "}},Galatians:{en:{short:"Galatians",long:"The Letter to the Galatians"},fr:{short:"Galates",long:"Galates"},es:{short:"Gálatas",long:"La Epístola a los Gálatas"},"en-CA":{short:"Galatians",long:"The Epistle of St. Paul the Apostle to the Galatians"},iu:{short:"Galatians",long:"The Epistle of St. Paul the Apostle to the Galatians"},ne:{short:"गलातियहरूलाई पत्र",long:"गलातियहरूलाई पत्र"},th:{short:"กาลาเทีย",long:"กาลาเทีย "}},Ephesians:{en:{short:"Ephesians",long:"The Letter to the Ephesians"},fr:{short:"Ephésiens",long:"Ephésiens"},es:{short:"Efesios",long:"La Epístola a los Efesios"},"en-CA":{short:"Ephesians",long:"The Epistle of St. Paul the Apostle to the Ephesians"},iu:{short:"Ephesians",long:"The Epistle of St. Paul the Apostle to the Ephesians"},ne:{short:"इफिसीहरूलाई पत्र",long:"इफिसीहरूलाई पत्र"},th:{short:"เอเฟซัส",long:"เอเฟซัส "}},Philippians:{en:{short:"Philippians",long:"The Letter to the Philippians"},fr:{short:"Philippiens",long:"Philippiens"},es:{short:"Filipenses",long:"La Epístola a los Filipenses"},"en-CA":{short:"Philippians",long:"The Epistle of St. Paul the Apostle to the Philippians"},iu:{short:"Philippians",long:"The Epistle of St. Paul the Apostle to the Philippians"},ne:{short:"फिलिप्पीहरूलाई पत्र",long:"फिलिप्पीहरूलाई पत्र"},th:{short:"ฟีลิปปี",long:"ฟีลิปปี "}},Colossians:{en:{short:"Colossians",long:"The Letter to the Colossians"},fr:{short:"Colossiens",long:"Colossiens"},es:{short:"Colosenses",long:"La Epístola a los Colosenses"},"en-CA":{short:"Colossians",long:"The Epistle of St. Paul the Apostle to the Colossians"},iu:{short:"Colossians",long:"The Epistle of St. Paul the Apostle to the Colossians"},ne:{short:"कलस्सीहरूलाई पत्र",long:"कलस्सीहरूलाई पत्र"},th:{short:"โคโลสี",long:"โคโลสี"}},"1 Thessalonians":{en:{short:"1 Thessalonians",long:"The First Letter to the Thessalonians"},fr:{short:"1 Thessaloniciens",long:"1 Thessaloniciens"},es:{short:"1 Tesalonicenses",long:"La Primera Epístola a los Tesalonicenses"},"en-CA":{short:"1 Thessalonians",long:"The First Epistle of St. Paul the Apostle to the Thessalonians"},iu:{short:"1 Thessalonians",long:"The First Epistle of St. Paul the Apostle to the Thessalonians"},ne:{short:"1 थिस्सलोनिकीहरूलाई पत्र",long:"1 थिस्सलोनिकीहरूलाई पत्र"},th:{short:"1 เธสะโลนิกา",long:"1 เธสะโลนิกา "}},"2 Thessalonians":{en:{short:"2 Thessalonians",long:"The Second Letter to the Thessalonians"},fr:{short:"2 Thessaloniciens",long:"2 Thessaloniciens"},es:{short:"2 Tesalonicenses",long:"La Segunda Epístola a los Tesalonicenses"},"en-CA":{short:"2 Thessalonians",long:"The Second Epistle of St. Paul the Apostle to the Thessalonians"},iu:{short:"2 Thessalonians",long:"The Second Epistle of St. Paul the Apostle to the Thessalonians"},ne:{short:"2 थिस्सलोनिकीहरूलाई पत्र",long:"2 थिस्सलोनिकीहरूलाई पत्र"},th:{short:"2 เธสะโลนิกา",long:"2 เธสะโลนิกา "}},"1 Timothy":{en:{short:"1 Timothy",long:"The First Letter to Timothy"},fr:{short:"1 Timothée",long:"1 Timothée"},es:{short:"1 Timoteo",long:"La Primera Epístola a Timoteo"},"en-CA":{short:"1 Timothy",long:"The First Epistle of St. Paul the Apostle to Timothy"},iu:{short:"1 Timothy",long:"The First Epistle of St. Paul the Apostle to Timothy"},ne:{short:"1 तीमीथीहरूलाई पत्र",long:"1 तीमीथीहरूलाई पत्र"},th:{short:"1 ทิโมธี",long:"1 ทิโมธี "}},"2 Timothy":{en:{short:"2 Timothy",long:"The Second Letter to Timothy"},fr:{short:"2 Timothée",long:"2 Timothée"},es:{short:"2 Timoteo",long:"La Segunda Epístola a Timoteo"},"en-CA":{short:"2 Timothy",long:"The Second Epistle of St. Paul the Apostle to Timothy"},iu:{short:"2 Timothy",long:"The Second Epistle of St. Paul the Apostle to Timothy"},ne:{short:"2 तीमीथीहरूलाई पत्र",long:"2 तीमीथीहरूलाई पत्र"},th:{short:"2 ทิโมธี",long:"2 ทิโมธี "}},Titus:{en:{short:"Titus",long:"The Letter to Titus"},fr:{short:"Tite",long:"Tite"},es:{short:"Tito",long:"La Epístola a Tito"},"en-CA":{short:"Titus",long:"The Epistle of St. Paul the Apostle to Titus"},iu:{short:"Titus",long:"The Epistle of St. Paul the Apostle to Titus"},ne:{short:"तीतसलाई पत्र",long:"तीतसलाई पत्र"},th:{short:"ทิตัส",long:"ทิตัส "}},Philemon:{en:{short:"Philemon",long:"The Letter to Philemon"},fr:{short:"Philémon",long:"Philémon"},es:{short:"Filemón",long:"La Epístola a Filemón"},"en-CA":{short:"Philemon",long:"The Epistle of St. Paul the Apostle to Philemon"},iu:{short:"Philemon",long:"The Epistle of St. Paul the Apostle to Philemon"},ne:{short:"फिलेमोनलाई पत्र",long:"फिलेमोनलाई पत्र"},th:{short:"ฟีเลโมน",long:"ฟีเลโมน"}},Hebrews:{en:{short:"Hebrews",long:"The Book of Hebrews"},fr:{short:"Hébreux",long:"Hébreux"},es:{short:"Hebrews",long:"La Epístola a los Hebreos"},"en-CA":{short:"Hebrews",long:"The Epistle to the Hebrews"},iu:{short:"Hebrews",long:"The Epistle to the Hebrews"},ne:{short:"इब्रीहरूलाई पत्र",long:"इब्रीहरूलाई पत्र"},th:{short:"ฮีบรู",long:"ฮีบรู"}},James:{en:{short:"James",long:"The Letter of James"},fr:{short:"Jacques",long:"Jacques"},es:{short:"Santiago",long:"La Epístola de Santiago"},"en-CA":{short:"James",long:"The Epistle General of St. James"},iu:{short:"James",long:"The Epistle General of St. James"},ne:{short:"याकूबको पत्र",long:"याकूबको पत्र"},th:{short:"ยากอบ",long:"ยากอบ "}},"1 Peter":{en:{short:"1 Peter",long:"The First Letter of Peter"},fr:{short:"1 Pierre",long:"1 Pierre"},es:{short:"1 Pedro",long:"La Primera Epístola de Pedro"},"en-CA":{short:"1 Peter",long:"The First Epistle General of St. Peter"},iu:{short:"1 Peter",long:"The First Epistle General of St. Peter"},ne:{short:"1 पत्रुसको पत्र",long:"1 पत्रुसको पत्र"},th:{short:"1 ปีเตอร์",long:"1 ปีเตอร์ "}},"2 Peter":{en:{short:"2 Peter",long:"The Second Letter of Peter"},fr:{short:"2 Pierre",long:"2 Pierre"},es:{short:"2 Pedro",long:"La Segunda Epístola de Pedro"},"en-CA":{short:"2 Peter",long:"The Second Epistle General of St. Peter"},iu:{short:"2 Peter",long:"The Second Epistle General of St. Peter"},ne:{short:"2 पत्रुसको पत्र",long:"2 पत्रुसको पत्र"},th:{short:"2 ปีเตอร์",long:"2 ปีเตอร์ "}},"1 John":{en:{short:"1 John",long:"The First Letter of John"},fr:{short:"1 Jean",long:"1 Jean"},es:{short:"1 Juan",long:"La Primera Epístola de Juan"},"en-CA":{short:"2 John",long:"The First Epistle General of St. John"},iu:{short:"2 John",long:"The First Epistle General of St. John"},ne:{short:"1 यूहन्ना",long:"1 यूहन्ना"},th:{short:"1 ยอห์น",long:"1 ยอห์น "}},"2 John":{en:{short:"2 John",long:"The Second Letter of John"},fr:{short:"2 Jean",long:"2 Jean"},es:{short:"1 Juan",long:"La Segunda Epístola de Juan"},"en-CA":{short:"2 John",long:"The Second Epistle General of St. John"},iu:{short:"2 John",long:"The Second Epistle General of St. John"},ne:{short:"2 यूहन्ना",long:"2 यूहन्ना"},th:{short:"2 ยอห์น",long:"2 ยอห์น"}},"3 John":{en:{short:"3 John",long:"The Third Letter of John"},fr:{short:"3 Jean",long:"3 Jean"},es:{short:"1 Juan",long:"La Tercera Epístola de Juan"},"en-CA":{short:"3 John",long:"The Third Epistle General of St. John"},iu:{short:"3 John",long:"The Third Epistle General of St. John"},ne:{short:"3 यूहन्ना",long:"3 यूहन्ना"},th:{short:"3 ยอห์น",long:"3 ยอห์น"}},Jude:{en:{short:"Jude",long:"The Letter of Jude"},fr:{short:"Jude",long:"Jude"},es:{short:"Judas",long:"La Epístola de Judas"},"en-CA":{short:"Jude",long:"The Epistle General of St. Jude"},iu:{short:"Jude",long:"The Epistle General of St. Jude"},ne:{short:"यहूदाको पत्र",long:"यहूदाको पत्र"},th:{short:"ยูดา",long:"ยูดา "}},Revelation:{en:{short:"Revelation",long:"The Book of Revelation"},fr:{short:"Apocalypse",long:"Apocalypse"},es:{short:"Apocalipsis",long:"El Apocalipsis de San Juan"},"en-CA":{short:"Revelation",long:"The Revelation to St. John the Divine"},iu:{short:"Revelation",long:"The Revelation to St. John the Divine"},ne:{short:"प्रकटीकरण",long:"प्रकटीकरण"},th:{short:"วิวรณ์",long:"วิวรณ์"}},"1 Esdras":{en:{short:"1 Esdras",long:"The Second Book of Esdras"},fr:{short:"",long:""},es:{short:"1 Esdras",long:"1 Esdras"}},"2 Esdras":{en:{short:"2 Esdras",long:"The Second Book of Esdras"},fr:{short:"",long:""},es:{short:"2 Esdras",long:"2 Esdras"}},Bel:{en:{short:"Bel",long:"Bel and the Dragon"},fr:{short:"",long:""},es:{short:"Bel",long:"La Historia de Bel y el Dragón"}},"Letter of Jeremiah":{en:{short:"Letter of Jeremiah",long:"The Letter of Jeremiah"},fr:{short:"",long:""},es:{short:"Letter of Jeremiah",long:"La Epístola de Jeremías"}}};function t(o){var e=o%10,s=o%100;return 1==e&&11!=s?o+"st":2==e&&12!=s?o+"nd":3==e&&13!=s?o+"rd":o+"th"}const n=["long","short"];class h extends o{constructor(o={}){super(o)}compileIntro(){var e,s,n,h;if(this.metadata&&this.metadata.intro){const r=null!==(e=this.abbrevFromCitation())&&void 0!==e?e:this.citation,a=this.bookCodeFromAbbrev(null!=r?r:""),l=r?this.longNameFromBookCode(null!=a?a:"",this.language||"en"):"—",i=r?this.shortNameFromBookCode(null!=a?a:"",this.language||"en"):"—",g=this.chapterFromCitation(),m=this.verseFromCitation(),c=new Array,u=o=>o.replace(/\$\{longName\}/g,(null!=l?l:r).replace("The","the")).replace(/\$\{shortName\}/g,null!=i?i:r).replace(/\$\{chapter\}/g,`${t(Number(g)||1)}`).replace(/\$\{verse\}/g,`${t(Number(m)||1)}`).replace("de El","del").replace("de La","de la");null===(h=null===(n=null===(s=this.metadata)||void 0===s?void 0:s.intro)||void 0===n?void 0:n.value)||void 0===h||h.forEach((o=>{"string"==typeof o?c.push(u(o)):o.hasOwnProperty("text")?c.push(Object.assign(Object.assign({},o),{text:u(o.text)})):c.push(u(o))})),this.metadata.compiled_intro=new o(Object.assign(Object.assign({},this.metadata.intro),{value:c}))}}abbrevFromCitation(){let o;try{const e=(this.citation||"").match(/(\d*\s*[a-zA-Z]+)/);o=e?e[0]:""}catch(e){o=this.citation}return o.replace(/\./g,"")}chapterFromCitation(){var o;const e=null===(o=(this.citation||"").split(";")[0])||void 0===o?void 0:o.match(/[\s\.:](\d+)/g);if(e){const[o]=e;return"string"==typeof o?o.trim().replace(/[\.,:]/g,""):void 0}}verseFromCitation(){var o;const e=null===(o=(this.citation||"").split(";")[0])||void 0===o?void 0:o.match(/[\s\.:](\d+)/g);if(e){const[,o]=e;return"string"==typeof o?o.trim().replace(/[\.,:]/g,""):void 0}}bookCodeFromAbbrev(o){if(o){const s=o.replace(/\./g,""),t=e.find((o=>o.name==s||o.aliases.includes(s)||o.name.includes(s)));return t?t.name:o}}longNameFromBookCode(o,e="en"){const t=this.bookCodeFromAbbrev(o);if(t){const n=s[t];let h=(n||{})[e];return h||(h=(n||{}).en),h?h.long:o}}shortNameFromBookCode(o,e="en"){var t;const n=(s[null!==(t=this.bookCodeFromAbbrev(o))&&void 0!==t?t:""]||{})[e];return n?n.short:o}availableStyles(){return n}availableDisplayFormats(){return["default","omit"]}}class r extends o{availableDisplayFormats(){return[]}}class a extends o{constructor(o={}){super(o)}}const l=["psalm","canticle","invitatory"];class i extends o{constructor(o={}){super(o)}filteredVerses(){var o,e;let s=new Array;if(this.citation&&(this.citation.match(/Ps[^\s]*\s*\d+/)||""==this.citation)){const t=this.versesInCitation(this.citation),n=null===(e=null===(o=this.citation)||void 0===o?void 0:o.trim())||void 0===e?void 0:e.endsWith("end");0==t.length?s=this.value:(this.value||[]).forEach((o=>{const e=new Array;(o.value||[]).forEach((o=>{n||!o.number||t.includes(o.number)?e.push(o):t.includes(`[${o.number}`)?e.push(Object.assign(Object.assign({},o),{verse:"["+o.verse})):t.includes(`${o.number}]`)?e.push(Object.assign(Object.assign({},o),{halfverse:o.halfverse+"]"})):t.includes(`[${o.number}]`)&&e.push(Object.assign(Object.assign({},o),{verse:"["+o.verse,halfverse:o.halfverse+"]"}))})),s.push(Object.assign(Object.assign({},o),{value:e}))}))}else s=this.value;return s}versesInCitation(o){function e(o,e,s){return o&&e?"["+s+"]":o?"["+s:e?s+"]":s}const s=o.replace(/Ps[\w\.]*\s*/g,"").split(/\s*([\[\]\(\),:\s])\s*/).slice(1);let t=new Array,n=!1,h=!1;return(s||[]).forEach(((o,r)=>{"["!==o&&"("!==o||(n=!0),"]"!==s[r+1]&&")"!==s[r+1]||(h=!0);const[a,l]=o.replace(/[^\d-s–]/g,"").split(/-|–/);if(a&&l){const o=h;for(let s=parseInt(a);s<=parseInt(l);s++)h=o&&s==parseInt(l),t.push(e(n,h,s.toString())),n=!1}else a&&(t.push(e(n,h,a)),n=!1),h=!1})),t}includeAntiphon(){const o=this.metadata||{};return!!o.antiphon&&!o.omit_antiphon;
|
|
1
|
+
import{L as o}from"./p-619c1cd7.js";const e=[{name:"Genesis",aliases:["Gn","Gen","Genesis"]},{name:"Exodus",aliases:["Exod","Ex","Exo","Exodus"]},{name:"Leviticus",aliases:["Lev","Lv","Leviticus"]},{name:"Numbers",aliases:["Num","Numbers"]},{name:"Deuteronomy",aliases:["Deut","Deuteronomy"]},{name:"Joshua",aliases:["Josh","Joshua"]},{name:"Judges",aliases:["Judg","Jdg","Judges"]},{name:"Ruth",aliases:["Ruth"]},{name:"1 Samuel",aliases:["1Sam","1 Sam","1st Sam","1st Samuel","First Samuel","1 Samuel"]},{name:"2 Samuel",aliases:["2Sam","2 Sam","2nd Sam","2nd Samuel","Second Samuel","2 Samuel"]},{name:"1 Kings",aliases:["1Kgs","1 Kgs","1st Kgs","1st Kings","First Kings","1 Kings"]},{name:"2 Kings",aliases:["2Kgs","2 Kgs","2nd Kgs","2nd Kings","Second Kings","2 Kings"]},{name:"1 Chronicles",aliases:["1Chr","1 Chr","1st Chr","1st Chronicles","First Chronicles","1 Chronicles"]},{name:"2 Chronicles",aliases:["2Chr","2 Chr","2nd Chr","2nd Chronicles","Second Chronicles","2 Chronicles"]},{name:"Ezra",aliases:["Ezra"]},{name:"Nehemiah",aliases:["Neh","Nehemiah"]},{name:"Esther",aliases:["Esth","Est","Esther"]},{name:"Job",aliases:["Jb","Job"]},{name:"Psalms",aliases:["Ps","Psalm","Psalms"]},{name:"Proverbs",aliases:["Prov","Pro","Proverbs"]},{name:"Ecclesiastes",aliases:["Eccl","Ecc","Ecclesiastes"]},{name:"The Song of Solomon",aliases:["Song","Song of Songs","Song of Solomon","Cant"]},{name:"Isaiah",aliases:["Isa","Is","Isaiah"]},{name:"Jeremiah",aliases:["Jer","Jeremiah"]},{name:"Letter of Jeremiah",aliases:["EJer","EpJer","Epistle of Jeremiah"]},{name:"Lamentations",aliases:["Lam","Lamentations"]},{name:"Ezekiel",aliases:["Ezek","Ezekiel"]},{name:"Daniel",aliases:["Dan","Daniel"]},{name:"Hosea",aliases:["Hos","Hosea"]},{name:"Joel",aliases:["Joel"]},{name:"Amos",aliases:["Amos"]},{name:"Obadiah",aliases:["Obad","Oba","Obadiah"]},{name:"Jonah",aliases:["Jon","Jonah"]},{name:"Micah",aliases:["Mic","Micah"]},{name:"Nahum",aliases:["Nah","Nahum"]},{name:"Habakkuk",aliases:["Hab","Habakkuk"]},{name:"Zephaniah",aliases:["Zeph","Zephaniah"]},{name:"Haggai",aliases:["Hag","Haggai"]},{name:"Zechariah",aliases:["Zech","Zechariah"]},{name:"Malachi",aliases:["Mal","Malachi"]},{name:"Tobit",aliases:["Tob","Tobit"]},{name:"Judith",aliases:["Jdt","Judith"]},{name:"Baruch",aliases:["Bar","Baruch"]},{name:"1 Maccabees",aliases:["1Macc","1 Maccabees","First Maccabees","1 Macc"]},{name:"2 Maccabees",aliases:["2Macc","2 Maccabees","Second Maccabees","2 Macc"]},{name:"Wisdom",aliases:["Wis","Wisdom"]},{name:"Sirach",aliases:["Sir","Ecclus","Ben Sira","Ecclesiasticus"]},{name:"1 Esdras",aliases:["1 Esdr","1 Esdras","1 Esd","1Esdras","1Esdr","1Esd"]},{name:"2 Esdras",aliases:["2 Esdr","2 Esdras","2 Esd","2Esdras","2Esdr","2Esd"]},{name:"Bel",aliases:["Bel","Bel & the Dragon"]},{name:"Azariah",aliases:["Azariah","Song of the Three Young Men","Song of the Three Childr.","Song of the Three Children"]},{name:"Matthew",aliases:["Matt","Matthew","Mt"]},{name:"Mark",aliases:["Mark","Mk"]},{name:"Luke",aliases:["Luke","Lk"]},{name:"John",aliases:["Jn","John","Joh"]},{name:"Acts",aliases:["Acts"]},{name:"Romans",aliases:["Rom","Romans"]},{name:"1 Corinthians",aliases:["1Cor","1 Cor","1st Cor","1st Corinthians","First Corinthians","1 Corinthians"]},{name:"2 Corinthians",aliases:["2Cor","2 Cor","2nd Cor","2nd Corinthians","Second Corinthians","2 Corinthians"]},{name:"Galatians",aliases:["Gal","Galatians"]},{name:"Ephesians",aliases:["Eph","Ephesians"]},{name:"Philippians",aliases:["Phil","Philippians"]},{name:"Colossians",aliases:["Col","Colossians"]},{name:"1 Thessalonians",aliases:["1Thess","1 Thess","1st Thess","1st Thessalonians","First Thessalonians","1 Thessalonians"]},{name:"2 Thessalonians",aliases:["2Thess","2 Thess","2nd Thess","2nd Thessalonians","Second Thessalonians","2 Thessalonians"]},{name:"1 Timothy",aliases:["1 Tim","1Tim","1st Tim","1st Timothy","First Timothy","1 Timothy"]},{name:"2 Timothy",aliases:["2 Tim","2Tim","2nd Tim","2nd Timothy","Second Timothy","2 Timothy"]},{name:"Titus",aliases:["Titus"]},{name:"Philemon",aliases:["Phlm","Philemon"]},{name:"Hebrews",aliases:["Heb","Hebrews"]},{name:"James",aliases:["Jas","James"]},{name:"1 Peter",aliases:["1Pet","1 Pet","1st Pet","1st Peter","First Peter","1 Peter"]},{name:"2 Peter",aliases:["2Pet","2 Pet","2nd Pet","2nd Peter","Second Peter","2 Peter"]},{name:"1 John",aliases:["1John","1 John","1st John","First John","1 Joh"]},{name:"2 John",aliases:["2John","2 John","2nd John","Second John","2 Joh"]},{name:"3 John",aliases:["3John","3 John","3rd John","Third John","3 Joh"]},{name:"Jude",aliases:["Jude","Jd"]},{name:"Revelation",aliases:["Rev","Revelation","Revelations","Apocalypse","Apoc"]}],s={Genesis:{en:{short:"Genesis",long:"The Book of Genesis"},fr:{short:"Genèse",long:"Genèse"},es:{short:"Génesis",long:"El Libro de Génesis"},ne:{short:"परमेश्वरको वचन",long:"परमेश्वरको वचन"},th:{short:"พระธรรมเนียมปฐมกาล",long:"พระธรรมเนียมปฐมกาล"}},Exodus:{en:{short:"Exodus",long:"The Book of Exodus"},fr:{short:"Exode",long:"Exode"},es:{short:"Éxodo",long:"El Libro de Éxodo"},ne:{short:"निर्गमन",long:"निर्गमन"},th:{short:"พระธรรมนิยมประเทศอีสราเอล",long:"พระธรรมนิยมประเทศอีสราเอล"}},Leviticus:{en:{short:"Leviticus",long:"The Book of Leviticus"},fr:{short:"Lévitique",long:"Lévitique"},es:{short:"Levítico",long:"El Libro de Levítico"},ne:{short:"लैव्य",long:"लैव्य"},th:{short:"พระธรรมนิยมเลวี",long:"พระธรรมนิยมเลวี"}},Numbers:{en:{short:"Numbers",long:"The Book of Numbers"},fr:{short:"Nombres",long:"Nombres"},es:{short:"Números",long:"El Libro de Números"},ne:{short:"ग्रंथी",long:"ग्रंथी"},th:{short:"พระธรรมนิยมเบนไดกต์",long:"พระธรรมนิยมเบนไดกต์"}},Deuteronomy:{en:{short:"Deuteronomy",long:"The Book of Deuteronomy"},fr:{short:"Deutéronome",long:"Deutéronome"},es:{short:"Deuteronomio",long:"El Libro de Deuteronomio"},ne:{short:"दुतावाक्य",long:"दुतावाक्य"},th:{short:"พระธรรมนิยมฉบับนำหน้า",long:"พระธรรมนิยมฉบับนำหน้า"}},Joshua:{en:{short:"Joshua",long:"The Book of Joshua"},fr:{short:"Josué",long:"Josué"},es:{short:"Josué",long:"El Libro de Josué"},ne:{short:"योशू",long:"योशू"},th:{short:"นาคร้ายโยชูอา",long:"นาคร้ายโยชูอา"}},Judges:{en:{short:"Judges",long:"The Book of Judges"},fr:{short:"Juges",long:"Juges"},es:{short:"Jueces",long:"El Libro de Jueces"},ne:{short:"न्यायीहरू",long:"न्यायीहरू"},th:{short:"ผู้วินิจฉัย",long:"ผู้วินิจฉัย"}},Ruth:{en:{short:"Ruth",long:"The Book of Ruth"},fr:{short:"Ruth",long:"Ruth"},es:{short:"Rut",long:"El Libro de Rut"},ne:{short:"रुत",long:"रुत"},th:{short:"รูธ",long:"รูธ"}},"1 Samuel":{en:{short:"1 Samuel",long:"The First Book of Samuel"},fr:{short:"1 Samuel",long:"1 Samuel"},es:{short:"1 Samuel",long:"El Libro de 1 Samuel"},ne:{short:"1 समूएल",long:"1 समूएल"},th:{short:"1 ซามูเอล",long:"1 ซามูเอล "}},"2 Samuel":{en:{short:"2 Samuel",long:"The Second Book of Samuel"},fr:{short:"2 Samuel",long:"2 Samuel"},es:{short:"2 Samuel",long:"El Libro de 2 Samuel"},ne:{short:"2 समूएल",long:"2 समूएल"},th:{short:"2 ซามูเอล",long:"2 ซามูเอล "}},"1 Kings":{en:{short:"1 Kings",long:"The First Book of Kings"},fr:{short:"1 Rois",long:"1 Rois"},es:{short:"1 Reyes",long:"El Libro de 1 Reyes"},ne:{short:"1 राजाहरू",long:"1 राजाहरू"},th:{short:"1 พงศาวดาร",long:"1 พงศาวดาร "}},"2 Kings":{en:{short:"2 Kings",long:"The Second Book of Kings"},fr:{short:"2 Rois",long:"2 Rois"},es:{short:"2 Reyes",long:"El Libro de 2 Reyes"},ne:{short:"2 राजाहरू",long:"2 राजाहरू"},th:{short:"2 พงศาวดาร",long:"2 พงศาวดาร "}},"1 Chronicles":{en:{short:"1 Chronicles",long:"The First Book of Chronicles"},fr:{short:"1 Chroniques",long:"1 Chroniques"},es:{short:"1 Crónicas",long:"El Libro de 1 Crónicas"},ne:{short:"1 इतिहास",long:"1 इतिहास"},th:{short:"1 พงศาวดาร",long:"1 พงศาวดาร "}},"2 Chronicles":{en:{short:"2 Chronicles",long:"The Second Book of Chronicles"},fr:{short:"2 Chroniques",long:"2 Chroniques"},es:{short:"2 Crónicas",long:"El Libro de 2 Crónicas"},ne:{short:"2 इतिहास",long:"2 इतिहास"},th:{short:"2 พงศาวดาร",long:"2 พงศาวดาร "}},Ezra:{en:{short:"Ezra",long:"The Book of Ezra"},fr:{short:"Esdras",long:"Esdras"},es:{short:"Esdras",long:"El Libro de Esdras"},ne:{short:"एज्रा",long:"एज्रा"},th:{short:"เอสรา",long:"เอสรา"}},Nehemiah:{en:{short:"Nehemiah",long:"The Book of Nehemiah"},fr:{short:"Néhémie",long:"Néhémie"},es:{short:"Nehemías",long:"El Libro de Nehemías"},ne:{short:"नहेमाया",long:"नहेमाया"},th:{short:"เนหะมายา",long:"เนหะมายา"}},Esther:{en:{short:"Esther",long:"The Book of Esther"},fr:{short:"Esther",long:"Esther"},es:{short:"Ester",long:"El Libro de Ester"},ne:{short:"एस्थर",long:"एस्थर"},th:{short:"เอสเธอร์",long:"เอสเธอร์ "}},Job:{en:{short:"Job",long:"The Book of Job"},fr:{short:"Job",long:"Job"},es:{short:"Job",long:"El Libro de Job"},ne:{short:"अय्यूब",long:"अय्यूब"},th:{short:"อายูบ",long:"อายูบ "}},Psalms:{en:{short:"Psalms",long:"The Psalms"},fr:{short:"Psaumes",long:"Psaumes"},es:{short:"Salmos",long:"El Libro de Salmos"},ne:{short:"प्रागज्ञ",long:"प्रागज्ञ"},th:{short:"สดุดี",long:"สดุดี"}},Proverbs:{en:{short:"Proverbs",long:"The Book of Proverbs"},fr:{short:"Proverbes",long:"Proverbes"},es:{short:"Proverbios",long:"El Libro de Proverbios"},ne:{short:"उत्थान",long:"उत्थान"},th:{short:"ประธาน",long:"ประธาน "}},Ecclesiastes:{en:{short:"Ecclesiastes",long:"The Book of Ecclesiastes"},fr:{short:"Ecclésiaste",long:"Ecclésiaste"},es:{short:"Eclesiastés",long:"El Libro de Eclesiastés"},ne:{short:"उपदेशक",long:"उपदेशक"},th:{short:"เอกเคเลเซียส",long:"เอกเคเลเซียส"}},"The Song of Solomon":{en:{short:"The Song of Solomon",long:"The Song of Solomon"},fr:{short:"Cantique des Cantiques",long:"Cantique des Cantiques"},es:{short:"Cantares",long:"El Libro de Cantares"},ne:{short:"श्रेष्ठगीति",long:"श्रेष्ठगीति"},th:{short:"เพลงซอลโมน",long:"เพลงซอลโมน "}},Isaiah:{en:{short:"Isaiah",long:"The Book of the Prophet Isaiah"},fr:{short:"Esaïe",long:"Esaïe"},es:{short:"Isaías",long:"El Libro de Isaías"},ne:{short:"नबीहरूको ग्रन्थ",long:"नबीहरूको ग्रन्थ"},th:{short:"อิสยาห์",long:"อิสยาห์ "}},Jeremiah:{en:{short:"Jeremiah",long:"The Book of the Prophet Jeremiah"},fr:{short:"Jérémie",long:"Jérémie"},es:{short:"Jeremías",long:"El Libro de Jeremías"},ne:{short:"यिर्मिया",long:"यिर्मिया"},th:{short:"เยเรมีย์",long:"เยเรมีย์ "}},Lamentations:{en:{short:"Lamentations",long:"The Book of Lamentations"},fr:{short:"Lamentations",long:"Lamentations"},es:{short:"Lamentaciones",long:"El Libro de Lamentaciones"},ne:{short:"विलाप",long:"विलाप"},th:{short:"เพลงคร่ำครวญ",long:"เพลงคร่ำครวญ "}},Ezekiel:{en:{short:"Ezekiel",long:"The Book of the Prophet Ezekiel"},fr:{short:"Ezéchiel",long:"Ezéchiel"},es:{short:"Ezequiel",long:"El Libro de Ezequiel"},ne:{short:"यहेज्केल",long:"यहेज्केल"},th:{short:"ศาสนาบัญญัติ",long:"ศาสนาบัญญัติ "}},Daniel:{en:{short:"Daniel",long:"The Book of Daniel"},fr:{short:"Daniel",long:"Daniel"},es:{short:"Daniel",long:"El Libro de Daniel"},"en-CA":{short:"Daniel",long:"The Book of the Prophet Daniel"},iu:{short:"Daniel",long:"The Book of the Prophet Daniel"},ne:{short:"दानियेल",long:"दानियेल"},th:{short:"ดาเนียล",long:"ดาเนียล"}},Hosea:{en:{short:"Hosea",long:"The Book of the Prophet Hosea"},fr:{short:"Osée",long:"Osée"},es:{short:"Oseas",long:"El Libro de Oseas"},ne:{short:"होशे",long:"होशे"},th:{short:"โฮเชาย",long:"โฮเชาย "}},Joel:{en:{short:"Joel",long:"The Book of the Prophet Joel"},fr:{short:"Joël",long:"Joël"},es:{short:"Joel",long:"El Libro de Joel"},ne:{short:"योएल",long:"योएल"},th:{short:"โยเอล",long:"โยเอล "}},Amos:{en:{short:"Amos",long:"The Book of the Prophet Amos"},fr:{short:"Amos",long:"Amos"},es:{short:"Amós",long:"El Libro de Amós"},ne:{short:"आमोस",long:"आमोस"},th:{short:"อาโมส",long:"อาโมส "}},Obadiah:{en:{short:"Obadiah",long:"The Book of the Prophet Obadiah"},fr:{short:"Abdias",long:"Abdias"},es:{short:"Abdías",long:"El Libro de Abdías"},ne:{short:"ओबद्या",long:"ओबद्या"},th:{short:"โอบาดิห์",long:"โอบาดิห์ "}},Jonah:{en:{short:"Jonah",long:"The Book of the Prophet Jonah"},fr:{short:"Jonas",long:"Jonas"},es:{short:"Jonás",long:"El Libro de Jonás"},ne:{short:"योना",long:"योना"},th:{short:"โยนาห์",long:"โยนาห์ "}},Micah:{en:{short:"Micah",long:"The Book of the Prophet Micah"},fr:{short:"Michée",long:"Michée"},es:{short:"Miqueas",long:"El Libro de Miqueas"},ne:{short:"मीका",long:"मीका"},th:{short:"มีคาห์",long:"มีคาห์ "}},Nahum:{en:{short:"Nahum",long:"The Book of the Prophet Nahum"},fr:{short:"Nahum",long:"Nahum"},es:{short:"Nahúm",long:"El Libro de Nahúm"},ne:{short:"नहूम",long:"नहूम"},th:{short:"นาฮูม",long:"นาฮูม "}},Habakkuk:{en:{short:"Habakkuk",long:"The Book of the Prophet Habakkuk"},fr:{short:"Habacuc",long:"Habacuc"},es:{short:"Habacuc",long:"El Libro de Habacuc"},ne:{short:"हबक्कूक",long:"हबक्कूक"},th:{short:"ฮาบากุก",long:"ฮาบากุก "}},Zephaniah:{en:{short:"Zephaniah",long:"The Book of the Prophet Zephaniah"},fr:{short:"Sophonie",long:"Sophonie"},es:{short:"Sofonías",long:"El Libro de Sofonías"},ne:{short:"सपन्नाह",long:"सपन्नाह"},th:{short:"เศษนัย",long:"เศษนัย "}},Haggai:{en:{short:"Haggai",long:"The Book of the Prophet Haggai"},fr:{short:"Aggée",long:"Aggée"},es:{short:"Hageo",long:"El Libro de Hageo"},ne:{short:"हाग्गै",long:"हाग्गै"},th:{short:"ฮักกัย",long:"ฮักกัย"}},Zechariah:{en:{short:"Zechariah",long:"The Book of the Prophet Zechariah"},fr:{short:"Zacharie",long:"Zacharie"},es:{short:"Zacarías",long:"El Libro de Zacarías"},ne:{short:"जकर्या",long:"जकर्या"},th:{short:"เครีย",long:"เครีย"}},Malachi:{en:{short:"Malachi",long:"The Book of the Prophet Malachi"},fr:{short:"Malachie",long:"Malachie"},es:{short:"Malaquías",long:"El Libro de Malaquías"},ne:{short:"मलाकी",long:"मलाकी"},th:{short:"มาลาคี",long:"มาลาคี"}},Tobit:{en:{short:"Tobit",long:"The Book of Tobit"},fr:{short:"",long:""},es:{short:"Tobías",long:"El Libro de Tobías"}},Azariah:{en:{short:"The Song of the Three Children",long:"The Song of the Three Children"},fr:{short:"",long:""},es:{short:"El Himno de los tres jóvenes",long:"El Himno de los tres jóvenes"}},Judith:{en:{short:"Judith",long:"The Book of Judith"},fr:{short:"",long:""},es:{short:"Judit",long:"El Libro de Judit"}},Baruch:{en:{short:"Baruch",long:"The Book of Baruch"},fr:{short:"",long:""},es:{short:"Baruc",long:"El Libro de Baruc"}},"1 Maccabees":{en:{short:"1 Maccabees",long:"The First Book of Maccabees"},fr:{short:"",long:""},es:{short:"1 Macabeos",long:"El Libro 1 de los Macabeos"}},"2 Maccabees":{en:{short:"2 Maccabees",long:"The Second Book of Maccabees"},fr:{short:"",long:""},es:{short:"2 Macabeos",long:"El Libro 2 de los Macabeos"}},Wisdom:{en:{short:"Wisdom",long:"The Wisdom of Solomon"},fr:{short:"",long:""},es:{short:"Sabiduría",long:"El Libro de la Sabiduría"}},Sirach:{en:{short:"Sirach",long:"The Wisdom of Ben Sira"},fr:{short:"",long:""},es:{short:"Eclesiástico",long:"La Sabiduría de Jesús ben Sirá"},"en-CA":{short:"Sirach",long:"The Book of Ecclesiasticus"},iu:{short:"Sirach",long:"The Book of Ecclesiasticus"}},Matthew:{en:{short:"Matthew",long:"The Gospel According to Matthew"},fr:{short:"Matthieu",long:"Matthieu"},es:{short:"Mateo",long:"El Evangelio de San Mateo"},"en-CA":{short:"Matthew",long:"The Gospel According to St. Matthew"},iu:{short:"Matthew",long:"The Gospel According to St. Matthew"},ne:{short:"मत्ती",long:"मत्ती"},th:{short:"มัทธิว",long:"มัทธิว"}},Mark:{en:{short:"Mark",long:"The Gospel According to Mark"},fr:{short:"Marc",long:"Marc"},es:{short:"Marcos",long:"El Evangelio de San Marcos"},"en-CA":{short:"Mark",long:"The Gospel According to St. Mark"},iu:{short:"Mark",long:"The Gospel According to St. Mark"},ne:{short:"मर्कुस",long:"मर्कुस"},th:{short:"มาร์ค",long:"มาร์ค "}},Luke:{en:{short:"Luke",long:"The Gospel According to Luke"},fr:{short:"Luc",long:"Luc"},es:{short:"Lucas",long:"El Evangelio de San Mateo"},"en-CA":{short:"Luke",long:"The Gospel According to St. Luke"},iu:{short:"Luke",long:"The Gospel According to St. Luke"},ne:{short:"लूका",long:"लूका"},th:{short:"ลูกา",long:"ลูกา "}},John:{en:{short:"John",long:"The Gospel According to John"},fr:{short:"Jean",long:"Jean"},es:{short:"Juan",long:"El Evangelio de San Juan"},"en-CA":{short:"John",long:"The Gospel According to St. John"},iu:{short:"John",long:"The Gospel According to St. John"},ne:{short:"यूहन्ना",long:"यूहन्ना"},th:{short:"ยอห์น",long:"ยอห์น "}},Acts:{en:{short:"Acts",long:"The Acts of the Apostles"},fr:{short:"Les Actes des Apôtres",long:"Les Actes des Apôtres"},es:{short:"Hechos",long:"Los Hechos de los Apóstoles"},"en-CA":{short:"Acts",long:"The Book of the Acts of the Apostles"},iu:{short:"Acts",long:"The Book of the Acts of the Apostles"},ne:{short:"प्रेरितहरूको काम",long:"प्रेरितहरूको काम"},th:{short:"กิจการอัปโศก",long:"กิจการอัปโศก"}},Romans:{en:{short:"Romans",long:"The Letter to the Romans"},fr:{short:"Romains",long:"Romains"},es:{short:"Romanos",long:"La Epístola a los Romanos"},"en-CA":{short:"Romans",long:"The Epistle of St. Paul the Apostle to the Romans"},iu:{short:"Romans",long:"The Epistle of St. Paul the Apostle to the Romans"},ne:{short:"रोमीहरूलाई पत्र",long:"रोमीहरूलाई पत्र"},th:{short:"โรม",long:"โรม "}},"1 Corinthians":{en:{short:"1 Corinthians",long:"The First Letter to the Corinthians"},fr:{short:"1 Corinthiens",long:"1 Corinthiens"},es:{short:"1 Corintios",long:"La Primera Epístola a los Corintios"},"en-CA":{short:"1 Corinthians",long:"The First Epistle of St. Paul the Apostle to the Corinthians"},iu:{short:"1 Corinthians",long:"The First Epistle of St. Paul the Apostle to the Corinthians"},ne:{short:"1 कुरिन्थीहरूलाई पत्र",long:"1 कुरिन्थीहरूलाई पत्र"},th:{short:"1 โครินธ์",long:"1 โครินธ์ "}},"2 Corinthians":{en:{short:"2 Corinthians",long:"The Second Letter to the Corinthians"},fr:{short:"2 Corinthiens",long:"2 Corinthiens"},es:{short:"2 Corintios",long:"La Segunda Epístola a los Corintios"},"en-CA":{short:"2 Corinthians",long:"The Second Epistle of St. Paul the Apostle to the Corinthians"},iu:{short:"2 Corinthians",long:"The Second Epistle of St. Paul the Apostle to the Corinthians"},ne:{short:"2 कुरिन्थीहरूलाई पत्र",long:"2 कुरिन्थीहरूलाई पत्र"},th:{short:"2 โครินธ์",long:"2 โครินธ์ "}},Galatians:{en:{short:"Galatians",long:"The Letter to the Galatians"},fr:{short:"Galates",long:"Galates"},es:{short:"Gálatas",long:"La Epístola a los Gálatas"},"en-CA":{short:"Galatians",long:"The Epistle of St. Paul the Apostle to the Galatians"},iu:{short:"Galatians",long:"The Epistle of St. Paul the Apostle to the Galatians"},ne:{short:"गलातियहरूलाई पत्र",long:"गलातियहरूलाई पत्र"},th:{short:"กาลาเทีย",long:"กาลาเทีย "}},Ephesians:{en:{short:"Ephesians",long:"The Letter to the Ephesians"},fr:{short:"Ephésiens",long:"Ephésiens"},es:{short:"Efesios",long:"La Epístola a los Efesios"},"en-CA":{short:"Ephesians",long:"The Epistle of St. Paul the Apostle to the Ephesians"},iu:{short:"Ephesians",long:"The Epistle of St. Paul the Apostle to the Ephesians"},ne:{short:"इफिसीहरूलाई पत्र",long:"इफिसीहरूलाई पत्र"},th:{short:"เอเฟซัส",long:"เอเฟซัส "}},Philippians:{en:{short:"Philippians",long:"The Letter to the Philippians"},fr:{short:"Philippiens",long:"Philippiens"},es:{short:"Filipenses",long:"La Epístola a los Filipenses"},"en-CA":{short:"Philippians",long:"The Epistle of St. Paul the Apostle to the Philippians"},iu:{short:"Philippians",long:"The Epistle of St. Paul the Apostle to the Philippians"},ne:{short:"फिलिप्पीहरूलाई पत्र",long:"फिलिप्पीहरूलाई पत्र"},th:{short:"ฟีลิปปี",long:"ฟีลิปปี "}},Colossians:{en:{short:"Colossians",long:"The Letter to the Colossians"},fr:{short:"Colossiens",long:"Colossiens"},es:{short:"Colosenses",long:"La Epístola a los Colosenses"},"en-CA":{short:"Colossians",long:"The Epistle of St. Paul the Apostle to the Colossians"},iu:{short:"Colossians",long:"The Epistle of St. Paul the Apostle to the Colossians"},ne:{short:"कलस्सीहरूलाई पत्र",long:"कलस्सीहरूलाई पत्र"},th:{short:"โคโลสี",long:"โคโลสี"}},"1 Thessalonians":{en:{short:"1 Thessalonians",long:"The First Letter to the Thessalonians"},fr:{short:"1 Thessaloniciens",long:"1 Thessaloniciens"},es:{short:"1 Tesalonicenses",long:"La Primera Epístola a los Tesalonicenses"},"en-CA":{short:"1 Thessalonians",long:"The First Epistle of St. Paul the Apostle to the Thessalonians"},iu:{short:"1 Thessalonians",long:"The First Epistle of St. Paul the Apostle to the Thessalonians"},ne:{short:"1 थिस्सलोनिकीहरूलाई पत्र",long:"1 थिस्सलोनिकीहरूलाई पत्र"},th:{short:"1 เธสะโลนิกา",long:"1 เธสะโลนิกา "}},"2 Thessalonians":{en:{short:"2 Thessalonians",long:"The Second Letter to the Thessalonians"},fr:{short:"2 Thessaloniciens",long:"2 Thessaloniciens"},es:{short:"2 Tesalonicenses",long:"La Segunda Epístola a los Tesalonicenses"},"en-CA":{short:"2 Thessalonians",long:"The Second Epistle of St. Paul the Apostle to the Thessalonians"},iu:{short:"2 Thessalonians",long:"The Second Epistle of St. Paul the Apostle to the Thessalonians"},ne:{short:"2 थिस्सलोनिकीहरूलाई पत्र",long:"2 थिस्सलोनिकीहरूलाई पत्र"},th:{short:"2 เธสะโลนิกา",long:"2 เธสะโลนิกา "}},"1 Timothy":{en:{short:"1 Timothy",long:"The First Letter to Timothy"},fr:{short:"1 Timothée",long:"1 Timothée"},es:{short:"1 Timoteo",long:"La Primera Epístola a Timoteo"},"en-CA":{short:"1 Timothy",long:"The First Epistle of St. Paul the Apostle to Timothy"},iu:{short:"1 Timothy",long:"The First Epistle of St. Paul the Apostle to Timothy"},ne:{short:"1 तीमीथीहरूलाई पत्र",long:"1 तीमीथीहरूलाई पत्र"},th:{short:"1 ทิโมธี",long:"1 ทิโมธี "}},"2 Timothy":{en:{short:"2 Timothy",long:"The Second Letter to Timothy"},fr:{short:"2 Timothée",long:"2 Timothée"},es:{short:"2 Timoteo",long:"La Segunda Epístola a Timoteo"},"en-CA":{short:"2 Timothy",long:"The Second Epistle of St. Paul the Apostle to Timothy"},iu:{short:"2 Timothy",long:"The Second Epistle of St. Paul the Apostle to Timothy"},ne:{short:"2 तीमीथीहरूलाई पत्र",long:"2 तीमीथीहरूलाई पत्र"},th:{short:"2 ทิโมธี",long:"2 ทิโมธี "}},Titus:{en:{short:"Titus",long:"The Letter to Titus"},fr:{short:"Tite",long:"Tite"},es:{short:"Tito",long:"La Epístola a Tito"},"en-CA":{short:"Titus",long:"The Epistle of St. Paul the Apostle to Titus"},iu:{short:"Titus",long:"The Epistle of St. Paul the Apostle to Titus"},ne:{short:"तीतसलाई पत्र",long:"तीतसलाई पत्र"},th:{short:"ทิตัส",long:"ทิตัส "}},Philemon:{en:{short:"Philemon",long:"The Letter to Philemon"},fr:{short:"Philémon",long:"Philémon"},es:{short:"Filemón",long:"La Epístola a Filemón"},"en-CA":{short:"Philemon",long:"The Epistle of St. Paul the Apostle to Philemon"},iu:{short:"Philemon",long:"The Epistle of St. Paul the Apostle to Philemon"},ne:{short:"फिलेमोनलाई पत्र",long:"फिलेमोनलाई पत्र"},th:{short:"ฟีเลโมน",long:"ฟีเลโมน"}},Hebrews:{en:{short:"Hebrews",long:"The Book of Hebrews"},fr:{short:"Hébreux",long:"Hébreux"},es:{short:"Hebrews",long:"La Epístola a los Hebreos"},"en-CA":{short:"Hebrews",long:"The Epistle to the Hebrews"},iu:{short:"Hebrews",long:"The Epistle to the Hebrews"},ne:{short:"इब्रीहरूलाई पत्र",long:"इब्रीहरूलाई पत्र"},th:{short:"ฮีบรู",long:"ฮีบรู"}},James:{en:{short:"James",long:"The Letter of James"},fr:{short:"Jacques",long:"Jacques"},es:{short:"Santiago",long:"La Epístola de Santiago"},"en-CA":{short:"James",long:"The Epistle General of St. James"},iu:{short:"James",long:"The Epistle General of St. James"},ne:{short:"याकूबको पत्र",long:"याकूबको पत्र"},th:{short:"ยากอบ",long:"ยากอบ "}},"1 Peter":{en:{short:"1 Peter",long:"The First Letter of Peter"},fr:{short:"1 Pierre",long:"1 Pierre"},es:{short:"1 Pedro",long:"La Primera Epístola de Pedro"},"en-CA":{short:"1 Peter",long:"The First Epistle General of St. Peter"},iu:{short:"1 Peter",long:"The First Epistle General of St. Peter"},ne:{short:"1 पत्रुसको पत्र",long:"1 पत्रुसको पत्र"},th:{short:"1 ปีเตอร์",long:"1 ปีเตอร์ "}},"2 Peter":{en:{short:"2 Peter",long:"The Second Letter of Peter"},fr:{short:"2 Pierre",long:"2 Pierre"},es:{short:"2 Pedro",long:"La Segunda Epístola de Pedro"},"en-CA":{short:"2 Peter",long:"The Second Epistle General of St. Peter"},iu:{short:"2 Peter",long:"The Second Epistle General of St. Peter"},ne:{short:"2 पत्रुसको पत्र",long:"2 पत्रुसको पत्र"},th:{short:"2 ปีเตอร์",long:"2 ปีเตอร์ "}},"1 John":{en:{short:"1 John",long:"The First Letter of John"},fr:{short:"1 Jean",long:"1 Jean"},es:{short:"1 Juan",long:"La Primera Epístola de Juan"},"en-CA":{short:"2 John",long:"The First Epistle General of St. John"},iu:{short:"2 John",long:"The First Epistle General of St. John"},ne:{short:"1 यूहन्ना",long:"1 यूहन्ना"},th:{short:"1 ยอห์น",long:"1 ยอห์น "}},"2 John":{en:{short:"2 John",long:"The Second Letter of John"},fr:{short:"2 Jean",long:"2 Jean"},es:{short:"1 Juan",long:"La Segunda Epístola de Juan"},"en-CA":{short:"2 John",long:"The Second Epistle General of St. John"},iu:{short:"2 John",long:"The Second Epistle General of St. John"},ne:{short:"2 यूहन्ना",long:"2 यूहन्ना"},th:{short:"2 ยอห์น",long:"2 ยอห์น"}},"3 John":{en:{short:"3 John",long:"The Third Letter of John"},fr:{short:"3 Jean",long:"3 Jean"},es:{short:"1 Juan",long:"La Tercera Epístola de Juan"},"en-CA":{short:"3 John",long:"The Third Epistle General of St. John"},iu:{short:"3 John",long:"The Third Epistle General of St. John"},ne:{short:"3 यूहन्ना",long:"3 यूहन्ना"},th:{short:"3 ยอห์น",long:"3 ยอห์น"}},Jude:{en:{short:"Jude",long:"The Letter of Jude"},fr:{short:"Jude",long:"Jude"},es:{short:"Judas",long:"La Epístola de Judas"},"en-CA":{short:"Jude",long:"The Epistle General of St. Jude"},iu:{short:"Jude",long:"The Epistle General of St. Jude"},ne:{short:"यहूदाको पत्र",long:"यहूदाको पत्र"},th:{short:"ยูดา",long:"ยูดา "}},Revelation:{en:{short:"Revelation",long:"The Book of Revelation"},fr:{short:"Apocalypse",long:"Apocalypse"},es:{short:"Apocalipsis",long:"El Apocalipsis de San Juan"},"en-CA":{short:"Revelation",long:"The Revelation to St. John the Divine"},iu:{short:"Revelation",long:"The Revelation to St. John the Divine"},ne:{short:"प्रकटीकरण",long:"प्रकटीकरण"},th:{short:"วิวรณ์",long:"วิวรณ์"}},"1 Esdras":{en:{short:"1 Esdras",long:"The Second Book of Esdras"},fr:{short:"",long:""},es:{short:"1 Esdras",long:"1 Esdras"}},"2 Esdras":{en:{short:"2 Esdras",long:"The Second Book of Esdras"},fr:{short:"",long:""},es:{short:"2 Esdras",long:"2 Esdras"}},Bel:{en:{short:"Bel",long:"Bel and the Dragon"},fr:{short:"",long:""},es:{short:"Bel",long:"La Historia de Bel y el Dragón"}},"Letter of Jeremiah":{en:{short:"Letter of Jeremiah",long:"The Letter of Jeremiah"},fr:{short:"",long:""},es:{short:"Letter of Jeremiah",long:"La Epístola de Jeremías"}}};function t(o){var e=o%10,s=o%100;return 1==e&&11!=s?o+"st":2==e&&12!=s?o+"nd":3==e&&13!=s?o+"rd":o+"th"}const n=["long","short"];class h extends o{constructor(o={}){super(o)}compileIntro(){var e,s,n,h;if(this.metadata&&this.metadata.intro){const r=null!==(e=this.abbrevFromCitation())&&void 0!==e?e:this.citation,a=this.bookCodeFromAbbrev(null!=r?r:""),l=r?this.longNameFromBookCode(null!=a?a:"",this.language||"en"):"—",i=r?this.shortNameFromBookCode(null!=a?a:"",this.language||"en"):"—",g=this.chapterFromCitation(),m=this.verseFromCitation(),c=new Array,u=o=>o.replace(/\$\{longName\}/g,(null!=l?l:r).replace("The","the")).replace(/\$\{shortName\}/g,null!=i?i:r).replace(/\$\{chapter\}/g,`${t(Number(g)||1)}`).replace(/\$\{verse\}/g,`${t(Number(m)||1)}`).replace("de El","del").replace("de La","de la");null===(h=null===(n=null===(s=this.metadata)||void 0===s?void 0:s.intro)||void 0===n?void 0:n.value)||void 0===h||h.forEach((o=>{"string"==typeof o?c.push(u(o)):o.hasOwnProperty("text")?c.push(Object.assign(Object.assign({},o),{text:u(o.text)})):c.push(u(o))})),this.metadata.compiled_intro=new o(Object.assign(Object.assign({},this.metadata.intro),{value:c}))}}abbrevFromCitation(){let o;try{const e=(this.citation||"").match(/(\d*\s*[a-zA-Z]+)/);o=e?e[0]:""}catch(e){o=this.citation}return o.replace(/\./g,"")}chapterFromCitation(){var o;const e=null===(o=(this.citation||"").split(";")[0])||void 0===o?void 0:o.match(/[\s\.:](\d+)/g);if(e){const[o]=e;return"string"==typeof o?o.trim().replace(/[\.,:]/g,""):void 0}}verseFromCitation(){var o;const e=null===(o=(this.citation||"").split(";")[0])||void 0===o?void 0:o.match(/[\s\.:](\d+)/g);if(e){const[,o]=e;return"string"==typeof o?o.trim().replace(/[\.,:]/g,""):void 0}}bookCodeFromAbbrev(o){if(o){const s=o.replace(/\./g,""),t=e.find((o=>o.name==s||o.aliases.includes(s)||o.name.includes(s)));return t?t.name:o}}longNameFromBookCode(o,e="en"){const t=this.bookCodeFromAbbrev(o);if(t){const n=s[t];let h=(n||{})[e];return h||(h=(n||{}).en),h?h.long:o}}shortNameFromBookCode(o,e="en"){var t;const n=(s[null!==(t=this.bookCodeFromAbbrev(o))&&void 0!==t?t:""]||{})[e];return n?n.short:o}availableStyles(){return n}availableDisplayFormats(){return["default","omit"]}}class r extends o{availableDisplayFormats(){return[]}}class a extends o{constructor(o={}){super(o)}}const l=["psalm","canticle","invitatory"];class i extends o{constructor(o={}){super(o)}filteredVerses(){var o,e;let s=new Array;if(this.citation&&(this.citation.match(/Ps[^\s]*\s*\d+/)||""==this.citation)){const t=this.versesInCitation(this.citation),n=null===(e=null===(o=this.citation)||void 0===o?void 0:o.trim())||void 0===e?void 0:e.endsWith("end");0==t.length?s=this.value:(this.value||[]).forEach((o=>{const e=new Array;(o.value||[]).forEach((o=>{n||!o.number||t.includes(o.number)?e.push(o):t.includes(`[${o.number}`)?e.push(Object.assign(Object.assign({},o),{verse:"["+o.verse})):t.includes(`${o.number}]`)?e.push(Object.assign(Object.assign({},o),{halfverse:o.halfverse+"]"})):t.includes(`[${o.number}]`)&&e.push(Object.assign(Object.assign({},o),{verse:"["+o.verse,halfverse:o.halfverse+"]"}))})),s.push(Object.assign(Object.assign({},o),{value:e}))}))}else s=this.value;return s}versesInCitation(o){function e(o,e,s){return o&&e?"["+s+"]":o?"["+s:e?s+"]":s}const s=o.replace(/Ps[\w\.]*\s*/g,"").split(/\s*([\[\]\(\),:\s])\s*/).slice(1);let t=new Array,n=!1,h=!1;return(s||[]).forEach(((o,r)=>{"["!==o&&"("!==o||(n=!0),"]"!==s[r+1]&&")"!==s[r+1]||(h=!0);const[a,l]=o.replace(/[^\d-s–]/g,"").split(/-|–/);if(a&&l){const o=h;for(let s=parseInt(a);s<=parseInt(l);s++)h=o&&s==parseInt(l),t.push(e(n,h,s.toString())),n=!1}else a&&(t.push(e(n,h,a)),n=!1),h=!1})),t}includeAntiphon(){const o=this.metadata||{};return!!o.antiphon&&!o.omit_antiphon;
|
|
2
2
|
//!(this.style == 'canticle' && !metadata.omit_gloria);
|
|
3
3
|
}repeatAntiphon(o,e=0){const s=this.metadata||{};return 0==e&&(e=this.filteredVerses().length),this.includeAntiphon()&&!(s.omit_gloria&&o==e-1)}availableStyles(){return l}availableDisplayFormats(){return["default","omit","unison","wholeverse","halfverse"]}}const g=["preces","litany","responsive"];class m extends o{constructor(o={}){super(o)}availableStyles(){return g}availableDisplayFormats(){return[]}}class c extends o{constructor(o={}){super(o)}availableDisplayFormats(){return[]}}export{h as B,r as L,a as M,i as P,m as R,c as a}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,r as t,c as i,H as l,d as n}from"./p-814a5a13.js";import{f as s}from"./p-011c0279.js";import"./p-
|
|
1
|
+
import{h as e,r as t,c as i,H as l,d as n}from"./p-814a5a13.js";import{f as s}from"./p-011c0279.js";import"./p-619c1cd7.js";import{P as o}from"./p-8ec26587.js";import{C as r}from"./p-991c0877.js";import{g as a}from"./p-546bb0de.js";import"./p-b7c33573.js";import"./p-add30d46.js";import"./p-4aeedb04.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 s}from"./p-
|
|
1
|
+
import{L as s}from"./p-619c1cd7.js";const a=["normal","slideshow","carousel"];class r extends s{constructor(s={}){super(s)}availableStyles(){return a}availableDisplayFormats(){return[]}}export{r as I}
|