diff --git a/dist/index.html b/dist/index.html index d524f05..23b9f80 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -
\ No newline at end of file + \ No newline at end of file diff --git a/dist/js/app.0720a71f.js b/dist/js/app.0720a71f.js deleted file mode 100644 index 520b0e5..0000000 --- a/dist/js/app.0720a71f.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){"use strict";var e={940:function(e,t,s){var i=s(242),n=s(396),o=s(139);const a={class:"tab",id:"header"},l=(0,n._)("h1",{style:{float:"left","padding-left":"20px","font-size":"16px","padding-top":"2px"}},"Ithkapp",-1),r=(0,n._)("i",{class:"fa-solid fa-gear fa-xs"},null,-1),h=[r],c=(0,n._)("i",{class:"fa-solid fa-align-right fa-xs"},null,-1),d=[c],p={key:0,class:"dropdown"},u=(0,n.Uk)("Adjunct ▼"),f=[u],g={class:"dropdown-content hidden",id:"adjDD"},m={key:1,class:"dropdown"},b=(0,n.Uk)("Formative ▼"),w=[b],y={class:"dropdown-content hidden",id:"formDD"},v={key:2,class:"dropdown"},S=(0,n.Uk)("Adjunct ▼"),M=[S],T={class:"dropdown-content hidden",id:"adj3"},O={key:3,class:"dropdown"},C=(0,n.Uk)("Formative ▼"),I=[C],x={class:"dropdown-content hidden",id:"form3"},A={id:"content"},k={id:"footer"},E={class:"word"},D=(0,n._)("br",null,null,-1),j={class:"smalltext"},P=(0,n._)("br",null,null,-1),N=["title"],R={id:"modal-content"},V={class:"tab"},W=["onClick"],_=(0,n._)("h2",{style:{"text-align":"center"}},"Settings",-1),L=["onUpdate:modelValue"],U=["onUpdate:modelValue"],F=(0,n._)("br",null,null,-1),z=(0,n._)("br",null,null,-1),G=(0,n._)("a",{href:"https://github.com/TheXXOs/ithkapp",target:"_blank"},"This project on GitHub",-1),B={key:0},X={style:{"text-align":"center"}},q=["innerHTML"],H={key:0},J={key:0,class:"tab"},$={key:1},Y=["onClick"],K=["innerHTML"],Q=["onClick"],Z=["src","alt"],ee=["innerHTML"],te={key:1},se=(0,n._)("br",null,null,-1),ie=(0,n._)("br",null,null,-1),ne=(0,n._)("p",{style:{"text-align":"center"}},"Your sentence:",-1),oe={style:{"text-align":"center"}},ae=(0,n._)("br",null,null,-1),le=(0,n._)("br",null,null,-1),re={id:"sidebar"},he={id:"sHeader"},ce=(0,n._)("h3",{style:{"padding-left":"20px"}},"Sentence Menu",-1),de={id:"sContent"},pe=["onClick","onMouseover","onMousemove","onTouchstart"],ue=["onUpdate:modelValue"],fe=(0,n._)("br",null,null,-1),ge={id:"sFooter"},me=(0,n._)("i",{class:"fa-solid fa-plus fa-xl"},null,-1),be=[me],we=(0,n._)("i",{class:"fa-solid fa-floppy-disk fa-xl"},null,-1),ye=[we],ve=(0,n._)("label",{id:"filab",for:"fimport"},[(0,n._)("i",{class:"fa-solid fa-arrow-up-from-bracket fa-xl"})],-1),Se=[ve],Me=(0,n._)("i",{class:"fa-solid fa-share-from-square fa-xl"},null,-1),Te=[Me];function Oe(e,t,s,r,c,u){const b=(0,n.up)("Ithkuil_v4"),S=(0,n.up)("Ithkuil_v3"),C=(0,n.Q2)("click-outside");return(0,n.wg)(),(0,n.iD)(n.HY,null,[(0,n._)("title",null,"Ithkapp | "+(0,o.zw)(c.ithkword),1),(0,n._)("div",a,[l,(0,n._)("span",{class:"close",style:{"padding-left":"10px"},onClick:t[0]||(t[0]=e=>u.openModal("settings")),title:"Settings"},h),(0,n._)("span",{class:"close",style:(0,o.j5)([{"padding-left":"10px",height:"38px"},c.sentenceOpen?"background-color:rgb(179, 255, 230); color:#333;":""]),onClick:t[1]||(t[1]=e=>u.openNav(!1)),title:"Sentence Menu"},d,4),4==c.langVer?((0,n.wg)(),(0,n.iD)("div",p,[(0,n.wy)(((0,n.wg)(),(0,n.iD)("button",{class:(0,o.C_)({active:!["normal","affRoot","refRoot","ref","refCS","free"].includes(c.wordType)}),onClick:t[2]||(t[2]=e=>u.openDropdown("adjDD"))},f,2)),[[C,e=>u.closeDropdown("adjDD",e)]]),(0,n._)("div",g,[(0,n._)("span",{onClick:t[3]||(t[3]=e=>u.switchWordType("affixjunct")),class:(0,o.C_)({active:"affixjunct"==c.wordType})},"Affixual",2),(0,n._)("span",{onClick:t[4]||(t[4]=e=>u.switchWordType("modular")),class:(0,o.C_)({active:"modular"==c.wordType})},"Modular",2),(0,n._)("span",{onClick:t[5]||(t[5]=e=>u.switchWordType("register")),class:(0,o.C_)({active:"register"==c.wordType})},"Register",2),(0,n._)("span",{onClick:t[6]||(t[6]=e=>u.switchWordType("suppletive")),class:(0,o.C_)({active:"suppletive"==c.wordType})},"Suppletive",2),(0,n._)("span",{onClick:t[7]||(t[7]=e=>u.switchWordType("bias")),class:(0,o.C_)({active:"bias"==c.wordType})},"Bias",2)])])):(0,n.kq)("",!0),4==c.langVer?((0,n.wg)(),(0,n.iD)("div",m,[(0,n.wy)(((0,n.wg)(),(0,n.iD)("button",{class:(0,o.C_)({active:["normal","affRoot","refRoot","ref","refCS","free"].includes(c.wordType)}),onClick:t[8]||(t[8]=e=>u.openDropdown("formDD"))},w,2)),[[C,e=>u.closeDropdown("formDD",e)]]),(0,n._)("div",y,[(0,n._)("span",{onClick:t[9]||(t[9]=e=>u.switchWordType("normal")),class:(0,o.C_)({active:"normal"==c.wordType})},"Normal",2),(0,n._)("span",{onClick:t[10]||(t[10]=e=>u.switchWordType("affRoot")),class:(0,o.C_)({active:"affRoot"==c.wordType})},"Affix as Root",2),(0,n._)("span",{onClick:t[11]||(t[11]=e=>u.switchWordType("refRoot")),class:(0,o.C_)({active:"refRoot"==c.wordType})},"Personal-Referential Root",2),(0,n._)("span",{onClick:t[12]||(t[12]=e=>u.switchWordType("ref")),class:(0,o.C_)({active:"ref"==c.wordType})},"Single/Dual-Referential",2),(0,n._)("span",{onClick:t[13]||(t[13]=e=>u.switchWordType("refCS")),class:(0,o.C_)({active:"refCS"==c.wordType})},"Single Referential w/ Case-Stacking",2),(0,n._)("span",{onClick:t[14]||(t[14]=e=>u.switchWordType("free")),class:(0,o.C_)({active:"free"==c.wordType})},"Non-Ithkuil (Borrowed) Word",2)])])):(0,n.kq)("",!0),3==c.langVer?((0,n.wg)(),(0,n.iD)("div",v,[(0,n.wy)(((0,n.wg)(),(0,n.iD)("button",{class:(0,o.C_)({active:["aspect","affix","bias"].includes(c.wordType)}),onClick:t[15]||(t[15]=e=>u.openDropdown("adj3"))},M,2)),[[C,e=>u.closeDropdown("adj3",e)]]),(0,n._)("div",T,[(0,n._)("span",{onClick:t[16]||(t[16]=e=>u.switchWordType("aspect")),class:(0,o.C_)({active:"aspect"==c.wordType})},"Aspectual",2),(0,n._)("span",{onClick:t[17]||(t[17]=e=>u.switchWordType("affix")),class:(0,o.C_)({active:"affix"==c.wordType})},"Affixual",2),(0,n._)("span",{onClick:t[18]||(t[18]=e=>u.switchWordType("bias")),class:(0,o.C_)({active:"bias"==c.wordType})},"Bias",2)])])):(0,n.kq)("",!0),3==c.langVer?((0,n.wg)(),(0,n.iD)("div",O,[(0,n.wy)(((0,n.wg)(),(0,n.iD)("button",{class:(0,o.C_)({active:["normal","ref"].includes(c.wordType)}),onClick:t[19]||(t[19]=e=>u.openDropdown("form3"))},I,2)),[[C,e=>u.closeDropdown("form3",e)]]),(0,n._)("div",x,[(0,n._)("span",{onClick:t[20]||(t[20]=e=>u.switchWordType("normal")),class:(0,o.C_)({active:"normal"==c.wordType})},"Normal",2),(0,n._)("span",{onClick:t[21]||(t[21]=e=>u.switchWordType("ref")),class:(0,o.C_)({active:"ref"==c.wordType})},"Personal Reference",2)])])):(0,n.kq)("",!0)]),(0,n._)("div",A,["4"==c.langVer?((0,n.wg)(),(0,n.j4)(b,{key:0,ref:"4",onModal:u.openModal,onGEmit:t[22]||(t[22]=e=>c.gOptions=JSON.parse(JSON.stringify(e))),onIthkword:t[23]||(t[23]=e=>{c.ithkword=e[0],c.ipa=e[1],c.gloss=e[2],c.fullGloss=e[3],c.sentence[c.selectedWord]=JSON.parse(JSON.stringify([c.ithkword,c.gOptions,c.wordType,c.sentence[c.selectedWord][3]]))}),listenModal:c.modalListen,listenWordtype:c.wordType,listenWord:c.gSOptions,selectedWord:c.selectedWord,sLength:c.sentence.length,nextWord:this.sentence[c.selectedWord+1]},null,8,["onModal","listenModal","listenWordtype","listenWord","selectedWord","sLength","nextWord"])):(0,n.kq)("",!0),"3"==c.langVer?((0,n.wg)(),(0,n.j4)(S,{key:1,ref:"3",onModal:u.openModal,onGEmit:t[24]||(t[24]=e=>c.gOptions=JSON.parse(JSON.stringify(e))),onIthkword:t[25]||(t[25]=e=>{c.ithkword=e[0],c.ipa=e[1],c.gloss=e[2],c.fullGloss=e[3],c.sentence[c.selectedWord]=JSON.parse(JSON.stringify([c.ithkword,c.gOptions,c.wordType,c.sentence[c.selectedWord][3]]))}),listenModal:c.modalListen,listenWord:c.gSOptions,listenWordtype:c.wordType},null,8,["onModal","listenModal","listenWord","listenWordtype"])):(0,n.kq)("",!0)]),(0,n._)("div",k,[(0,n._)("p",null,[(0,n._)("span",E,[(0,n._)("b",null,(0,o.zw)(c.ithkword),1)]),D,(0,n._)("span",j,[(0,n.Uk)("["+(0,o.zw)(c.ipa)+"]",1),P,(0,n._)("span",{title:c.fullGloss},(0,o.zw)(c.gloss),9,N)])])]),(0,n._)("div",{id:"modal",class:"modal",onClick:t[40]||(t[40]=(0,i.iM)((e=>u.closeModal()),["self"]))},[(0,n._)("div",R,[(0,n._)("div",V,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(c.modalTabs,(e=>((0,n.wg)(),(0,n.iD)("button",{key:e,class:(0,o.C_)({active:e===c.modalID}),onClick:t=>{u.closeModal(),u.openModal(e)}},(0,o.zw)(this.$refs[c.langVer].gData[isNaN(e.slice(-1))?e:e.slice(0,-1)].title),11,W)))),128)),"share"==c.modalID?((0,n.wg)(),(0,n.iD)("button",{key:0,onClick:t[26]||(t[26]=e=>u.notAvailableAlert("Sharing sentences via hyperlink"))},"Create Hyperlink")):(0,n.kq)("",!0),"share"==c.modalID?((0,n.wg)(),(0,n.iD)("button",{key:1,onClick:t[27]||(t[27]=e=>u.copytoCB(u.concatenateSentence(c.sentence)))},"Copy to Clipboard")):(0,n.kq)("",!0),(0,n._)("span",{class:"close",onClick:t[28]||(t[28]=e=>u.closeModal())},"×")]),(0,n._)("div",{class:(0,o.C_)({hidden:"settings"!=c.modalID}),style:{"padding-left":"20px","padding-right":"20px","padding-bottom":"20px"}},[_,((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(Object.keys(c.settingsClone),(e=>((0,n.wg)(),(0,n.iD)("div",{key:e},[(0,n._)("h3",null,(0,o.zw)(e),1),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(Object.keys(c.settingsClone[e]),(s=>((0,n.wg)(),(0,n.iD)("span",{key:s},[(0,n._)("label",null,(0,o.zw)(c.settingsClone[e][s][0]),1),c.settingsClone[e][s].length>2?(0,n.wy)(((0,n.wg)(),(0,n.iD)("select",{key:0,"onUpdate:modelValue":t=>this.$refs[c.langVer].settings[e][s][1]=t,onChange:t[29]||(t[29]=e=>this.$refs[c.langVer].handleSendMessage())},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(c.settingsClone[e][s][2],(e=>((0,n.wg)(),(0,n.iD)("option",{key:e},(0,o.zw)(e),1)))),128))],40,L)),[[i.bM,this.$refs[c.langVer].settings[e][s][1]]]):(0,n.wy)(((0,n.wg)(),(0,n.iD)("input",{key:1,type:"checkbox","onUpdate:modelValue":t=>this.$refs[c.langVer].settings[e][s][1]=t,onChange:t[30]||(t[30]=e=>this.$refs[c.langVer].handleSendMessage())},null,40,U)),[[i.e8,this.$refs[c.langVer].settings[e][s][1]]]),F,z])))),128))])))),128)),G],2),"settings"!=c.modalID&&"share"!=c.modalID?((0,n.wg)(),(0,n.iD)("div",B,[(0,n._)("h2",X,(0,o.zw)(c.modalContent.title),1),(0,n._)("p",{style:{"text-align":"center"},innerHTML:c.modalContent.popupdesc},null,8,q),""==c.modalContent.type?((0,n.wg)(),(0,n.iD)("div",H,[["c","c1","c2"].includes(c.modalID)?((0,n.wg)(),(0,n.iD)("div",J,[(0,n._)("button",{class:"tablinks active",onClick:t[31]||(t[31]=e=>u.changeClassTab("THM","PLM","Allcases")),id:"Allcases"},"All"),(0,n._)("button",{class:"tablinks",onClick:t[32]||(t[32]=e=>u.changeClassTab("THM","IND","Transrelative")),id:"Transrelative"},"Transrelative"),(0,n._)("button",{class:"tablinks",onClick:t[33]||(t[33]=e=>u.changeClassTab("POS","PAR","Appositive")),id:"Appositive"},"Appositive"),(0,n._)("button",{class:"tablinks",onClick:t[34]||(t[34]=e=>u.changeClassTab("APL","CSD","Associative")),id:"Associative"},"Associative"),(0,n._)("button",{class:"tablinks",onClick:t[35]||(t[35]=e=>u.changeClassTab("FUN","SIT","Adverbial")),id:"Adverbial"},"Adverbial"),(0,n._)("button",{class:"tablinks",onClick:t[36]||(t[36]=e=>u.changeClassTab("PRN","RLT","Relational")),id:"Relational"},"Relational"),(0,n._)("button",{class:"tablinks",onClick:t[37]||(t[37]=e=>u.changeClassTab("ACT","VOC","Affinitive")),id:"Affinitive"},"Affinitive"),(0,n._)("button",{class:"tablinks",onClick:t[38]||(t[38]=e=>u.changeClassTab("LOC","PLM","Spatio-Temporal")),id:"Spatio-Temporal"},"Spatio-Temporal")])):(0,n.kq)("",!0),["c","c1","c2"].includes(c.modalID)?((0,n.wg)(),(0,n.iD)("div",$,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(Object.keys(c.modalContent.options).slice(Object.keys(c.modalContent.options).indexOf(this.casePopupStart),Object.keys(c.modalContent.options).indexOf(this.casePopupEnd)+1),(e=>((0,n.wg)(),(0,n.iD)("div",{key:c.modalContent.options[e]},[(0,n._)("div",{onClick:t=>u.updateFromModal(c.modalID,e),class:(0,o.C_)(["modalOption",{modalSelected:this.$refs[c.langVer].gOptions[c.modalID]==e}])},[(0,n._)("h3",null,(0,o.zw)(c.modalContent.options[e].name)+(0,o.zw)(e!==e.toString().toUpperCase()||["0","1","2","3","4","5","6","7","8","9"].includes(e.toString())?"":" ("+e+")"),1),(0,n._)("p",{innerHTML:c.modalContent.options[e].desc},null,8,K)],10,Y)])))),128))])):((0,n.wg)(!0),(0,n.iD)(n.HY,{key:2},(0,n.Ko)(Object.keys(c.modalContent.options),(e=>((0,n.wg)(),(0,n.iD)("div",{key:c.modalContent.options[e]},[(0,n._)("div",{onClick:t=>u.updateFromModal(c.modalID,e),class:(0,o.C_)(["modalOption",{modalSelected:this.$refs[c.langVer].gOptions[c.modalID]==e}]),style:(0,o.j5)(c.modalContent.options[e].image?"min-height:170px;":"")},[c.modalContent.options[e].image?((0,n.wg)(),(0,n.iD)("img",{key:0,src:c.modalContent.options[e].image,alt:c.modalContent.options[e].name,style:{float:"right",height:"150px","padding-top":"10px","padding-left":"10px","padding-bottom":"10px"}},null,8,Z)):(0,n.kq)("",!0),(0,n._)("h3",null,(0,o.zw)(c.modalContent.options[e].name)+(0,o.zw)(e!==e.toString().toUpperCase()||["0","1","2","3","4","5","6","7","8","9"].includes(e.toString())?"":" ("+e+")"),1),(0,n._)("p",{innerHTML:c.modalContent.options[e].desc},null,8,ee)],14,Q)])))),128))])):(0,n.kq)("",!0)])):"share"==c.modalID?((0,n.wg)(),(0,n.iD)("div",te,[se,ie,ne,(0,n._)("h1",oe,(0,o.zw)(u.concatenateSentence(c.sentence)),1),ae,le])):(0,n.kq)("",!0)]),(0,n._)("button",{id:"modalToTop",onClick:t[39]||(t[39]=(...e)=>u.scrollToTop&&u.scrollToTop(...e)),class:(0,o.C_)({hidden:"share"==c.modalID})},"↑",2)]),(0,n._)("div",re,[(0,n._)("div",he,[(0,n._)("span",{class:"close",onClick:t[41]||(t[41]=e=>u.closeNav()),style:{transform:"translateY(-20px)"}},"×"),ce]),(0,n._)("div",de,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(c.sentence,((e,s)=>((0,n.wg)(),(0,n.iD)("div",{key:s,class:(0,o.C_)(["sentWord noSelecting",{active:c.selectedWord==s,deletable:c.deleteWordMode,dragging:c.draggedWord===s}]),onClick:e=>u.switchWord(s),onMouseover:e=>u.hoverChange(s),onMouseleave:t[43]||(t[43]=e=>c.hovering=null),onMousemove:e=>u.beginDrag(s),onTouchstart:e=>u.beginDrag(s)},[(0,n._)("p",null,[(0,n._)("b",null,(0,o.zw)(e[0]),1)]),(0,n.wy)((0,n._)("textarea",{placeholder:"Description...","onUpdate:modelValue":e=>c.sentence[s][3]=e,onInput:t[42]||(t[42]=(...e)=>u.resizeTA&&u.resizeTA(...e)),rows:"1",class:"ta"},null,40,ue),[[i.nr,c.sentence[s][3]]]),fe],42,pe)))),128))]),(0,n._)("div",ge,[(0,n._)("input",{type:"file",onChange:t[44]||(t[44]=(...e)=>u.uploadJSON&&u.uploadJSON(...e)),accept:".json",id:"fimport",class:"hidden"},null,32),(0,n._)("button",{title:"Add New Word",onClick:t[45]||(t[45]=e=>this.sentence.push(JSON.parse(JSON.stringify([this.$refs[c.langVer].defaultWord,this.$refs[c.langVer].gDefault,"normal",""]))))},be),(0,n._)("button",{title:"Save",onClick:t[46]||(t[46]=e=>u.exportToJsonFile(c.sentence))},ye),(0,n._)("button",{title:"Import",onClick:t[47]||(t[47]=(0,i.iM)((e=>u.openFileDialog()),["self"]))},Se),(0,n._)("button",{title:"Export/Share",onClick:t[48]||(t[48]=e=>{u.openModal("share"),u.closeNav()})},Te),(0,n._)("button",{title:"Delete Words",onClick:t[49]||(t[49]=e=>c.deleteWordMode=!c.deleteWordMode),class:(0,o.C_)({active:c.deleteWordMode})},[(0,n._)("i",{class:(0,o.C_)(c.deleteWordMode?"fa-solid fa-check fa-xl":"fa-solid fa-trash-can fa-xl")},null,2)],2)])])],64)}var Ce=s(51),Ie=s.n(Ce);const xe=(0,n.uE)('Compatible with the version of New Ithkuil on ithkuil.net.
Definitions are a combination of taken from the old Ithkuil III site, taken from the New Ithkuil website, and (occasionally) written by the creator of this site.
All past and current forms of Ithkuil and all official documentation are by John Quijada.
Click on a box's title to learn more about what it means.
Your sentence:
\r\nCompatible with the version of New Ithkuil on ithkuil.net.\r\n
Definitions are a combination of taken from the old Ithkuil III site, taken from the New Ithkuil website, and (occasionally) written by the creator of this site.\r\n
All past and current forms of Ithkuil and all official documentation are by John Quijada.\r\n
Click on a box's title to learn more about what it means.
ERROR: Empty affixes
\nERROR: Affixes are required
\nERROR: Empty text
\nERROR: Non-allowed characters
\n \nCompatible with the version of New Ithkuil on ithkuil.net.
Definitions are a combination of taken from the old Ithkuil III site, taken from the New Ithkuil website, and (occasionally) written by the creator of this site.
All past and current forms of Ithkuil and all official documentation are by John Quijada.
Click on a box's title to learn more about what it means.
Your sentence:
\r\nCompatible with the version of New Ithkuil on ithkuil.net.\r\n
Definitions are a combination of taken from the old Ithkuil III site, taken from the New Ithkuil website, and (occasionally) written by the creator of this site.\r\n
All past and current forms of Ithkuil and all official documentation are by John Quijada.\r\n
Click on a box's title to learn more about what it means.
ERROR: Empty affixes
\nERROR: Affixes are required
\nERROR: Empty text
\nERROR: Non-allowed characters
\n \nCompatible with the version of New Ithkuil on ithkuil.net. +
Compatible with the version of New Ithkuil on ithkuil.net.
Definitions are a combination of taken from the old Ithkuil III site, taken from the New Ithkuil website, and (occasionally) written by the creator of this site.
All past and current forms of Ithkuil and all official documentation are by John Quijada.
Click on a box's title to learn more about what it means.