1(self.webpackChunk_name_=self.webpackChunk_name_||[]).push([[4778],{30663:function(t,i,e){"use strict";e.r(i);var n=e(8081),a=e.n(n),s=e(23645),o=e.n(s)()(a());o.push([t.id,".tiptap-editor *{outline:0px solid rgba(0,0,0,0)}.tiptap-editor .ProseMirror{max-height:150px;overflow-y:auto}.tiptap-editor .menubar{margin-bottom:1rem;transition:visibility .2s .4s,opacity .2s .4s;border-bottom:1px solid rgba(255,255,255,.2)}.tiptap-editor .menubar.is-hidden{visibility:hidden;opacity:0}.tiptap-editor .menubar.is-focused{visibility:visible;opacity:1;transition:visibility .2s,opacity .2s}.tiptap-editor .menubar__button{font-weight:bold;display:inline-flex;background:rgba(0,0,0,0);border:0;color:#fff;padding:.2rem .5rem;margin-right:.2rem;border-radius:3px;cursor:pointer}.tiptap-editor .menubar__button:hover{background-color:rgba(255,255,255,.1)}.tiptap-editor .menubar__button.is-active{background-color:rgba(255,255,255,.2)}.tiptap-editor .menubar span.tiptap-editor .menubar__button{font-size:13.3333px}.tiptap-editor .menububble{position:absolute;display:flex;z-index:20;background:#000;border-radius:5px;padding:.3rem;margin-bottom:.5rem;transform:translateX(-50%);visibility:hidden;opacity:0;transition:opacity .2s,visibility .2s}.tiptap-editor .menububble.is-active{opacity:1;visibility:visible}.tiptap-editor .menububble__button{display:inline-flex;background:rgba(0,0,0,0);border:0;color:#fff;padding:.2rem .5rem;margin-right:.2rem;border-radius:3px;cursor:pointer}.tiptap-editor .menububble__button:last-child{margin-right:0}.tiptap-editor .menububble__button:hover{background-color:rgba(255,255,255,.1)}.tiptap-editor .menububble__button.is-active{background-color:rgba(255,255,255,.2)}.tiptap-editor .menububble__form{display:flex;align-items:center}.tiptap-editor .menububble__input{font:inherit;border:none;background:rgba(0,0,0,0);color:#fff}.tiptap-editor .menububble i{margin-left:4px}.tiptap-editor p.is-empty:first-child::before{content:attr(data-empty-text);float:left;color:#aaa;pointer-events:none;height:0;font-style:italic}",""]),i.default=o},4778:function(t,i,e){"use strict";e.r(i),e.d(i,{default:function(){return u}});var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"tiptap-editor"},[e("EditorMenuBubble",{staticClass:"menububble",attrs:{editor:t.editor},on:{hide:t.hideLinkMenu},scopedSlots:t._u([{key:"default",fn:function(i){var n=i.commands,a=i.menu;return[e("div",{staticClass:"menububble",class:{"is-active":a.isActive},style:"left: "+a.left+"px; bottom: "+a.bottom+"px;"},[t.linkMenuIsActive?e("form",{staticClass:"menububble__form",on:{submit:function(i){return i.preventDefault(),t.setLinkUrl(n.link,t.linkUrl)}}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.linkUrl,expression:"linkUrl"}],ref:"linkInput",staticClass:"menububble__input",attrs:{type:"text",placeholder:"https://"},domProps:{value:t.linkUrl},on:{keydown:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"esc",27,i.key,["Esc","Escape"])?null:t.hideLinkMenu.apply(null,arguments)},input:function(i){i.target.composing||(t.linkUrl=i.target.value)}}}),t._v(" "),e("button",{staticClass:"menububble__button",attrs:{type:"button"},on:{click:function(i){return t.setLinkUrl(n.link,null)}}},[e("i",{staticClass:"far fa-times-circle"})])]):t._e()])]}}])}),t._v(" "),e("EditorMenuBar",{attrs:{editor:t.editor},scopedSlots:t._u([{key:"default",fn:function(i){var n=i.commands,a=i.isActive,s=i.getMarkAttrs;return[e("div",{staticClass:"menubar"},[e("button",{staticClass:"menubar__button",class:{"is-active":a.bold()},on:{click:n.bold}},[e("i",{staticClass:"fas fa-bold"})]),t._v(" "),e("button",{staticClass:"menubar__button",class:{"is-active":a.italic()},on:{click:n.italic}},[e("i",{staticClass:"fas fa-italic"})]),t._v(" "),e("button",{staticClass:"menubar__button",class:{"is-active":a.strike()},on:{click:n.strike}},[e("i",{staticClass:"fas fa-strikethrough"})]),t._v(" "),e("button",{staticClass:"menubar__button",class:{"is-active":a.underline()},on:{click:n.underline}},[e("i",{staticClass:"fas fa-underline"})]),t._v(" "),e("button",{staticClass:"menubar__button",class:{"
1is-active":a.link()},on:{click:function(i){t.showLinkMenu(s("link"))}}},[e("i",{staticClass:"fas fa-link"})]),t._v(" "),e("button",{staticClass:"menubar__button",class:{"is-active":a.heading({level:1})},on:{click:function(t){return n.heading({level:1})}}},[t._v("\n H1\n ")]),t._v(" "),e("button",{staticClass:"menubar__button",class:{"is-active":a.heading({level:2})},on:{click:function(t){return n.heading({level:2})}}},[t._v("\n H2\n ")]),t._v(" "),e("button",{staticClass:"menubar__button",class:{"is-active":a.heading({level:3})},on:{click:function(t){return n.heading({level:3})}}},[t._v("\n H3\n ")]),t._v(" "),e("button",{staticClass:"menubar__button",class:{"is-active":a.bullet_list()},on:{click:n.bullet_list}},[e("i",{staticClass:"fas fa-list-ul"})]),t._v(" "),e("button",{staticClass:"menubar__button",class:{"is-active":a.ordered_list()},on:{click:n.ordered_list}},[e("i",{staticClass:"fas fa-list-ol"})]),t._v(" "),e("button",{staticClass:"menubar__button",class:{"is-active":a.blockquote()},on:{click:n.blockquote}},[e("i",{staticClass:"fas fa-quote-right"})]),t._v(" "),e("button",{staticClass:"menubar__button",on:{click:n.horizontal_rule}},[t._v("\n -\n ")]),t._v(" "),e("button",{staticClass:"menubar__button",on:{click:n.undo}},[e("i",{staticClass:"fas fa-undo"})]),t._v(" "),e("button",{staticClass:"menubar__button",on:{click:n.redo}},[e("i",{staticClass:"fas fa-redo"})])])]}}])}),t._v(" "),e("EditorContent",{staticClass:"editor__content",attrs:{editor:t.editor}})],1)};n._withStripped=!0;var a=e(75231),s=e(76008),o=e(26226),r={name:"html-editor-tiptap",mixins:[a.Z],props:{value:{type:String}},components:{EditorContent:s.kg,EditorMenuBar:s.Yz,EditorMenuBubble:s.eb},data:function(){return{editor:null,linkUrl:null,linkMenuIsActive:!1}},methods:{showLinkMenu:function(t){var i=this;this.linkUrl=t.href,this.linkMenuIsActive=!0,this.$nextTick((function(){i.$refs.linkInput.focus()}))},hideLinkMenu:function(){this.linkUrl=null,this.linkMenuIsActive=!1},setLinkUrl:function(t,i){t({href:i}),this.hideLinkMenu(),this.editor.focus()}},mounted:function(){var t=this;this.editor=new s.ML({editorProps:{handleKeyDown:function(t,i){i.stopPropagation()}},autoFocus:!0,extensions:[new o.V6,new o.DY,new o.dn,new o.U1,new o.X6({levels:[1,2,3]}),new o.bo,new o.HC,new o.GS,new o.PK,new o.B4,new o.rU,new o.d8,new o.EK,new o.Tx,new o.Re,new o.v6,new o.Ay,new o.Vm({emptyNodeClass:"is-empty",emptyNodeText:this.resolveLabel("DigitalReadyViewerAlto_EditPlaceholder"),showOnlyWhenEditable:!0})],content:this.value,onUpdate:function(i){var e=i.getHTML;t.$emit("input",e())}})},beforeDestroy:function(){this.editor.destroy()}},l=(e(44953),(0,e(51900).Z)(r,n,[],!1,null,null,null));l.options.__file="src/apps/digital-ready-viewer/components/popups/alto/HtmlEditor/HtmlEditorTipTap.vue";var u=l.exports},44953:function(t,i,e){var n=e(30663);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals),(0,e(45346).Z)("be5fca08",n,!1,{})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.