1var Z=Object.defineProperty;var tt=Object.getOwnPropertyDescriptor;var et=Object.getOwnPropertyNames;var it=Object.prototype.hasOwnProperty;var st=(i,t)=>{for(var e in t)Z(i,e,{get:t[e],enumerable:!0})},Y=(i,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of et(t))!it.call(i,c)&&c!==e&&Z(i,c,{get:()=>t[c],enumerable:!(s=tt(t,c))||s.enumerable});return i},m=(i,t,e)=>(Y(i,t,"default"),e&&Y(e,t,"default"));var Q={};st(Q,{AttributeCommand:()=>u,Bold:()=>M,BoldEditing:()=>T,BoldUI:()=>B,Code:()=>G,CodeEditing:()=>O,CodeUI:()=>P,Italic:()=>X,ItalicEditing:()=>A,ItalicUI:()=>E,Strikethrough:()=>W,StrikethroughEditing:()=>N,StrikethroughUI:()=>C,Subscript:()=>j,SubscriptEditing:()=>w,SubscriptUI:()=>F,Superscript:()=>z,SuperscriptEditing:()=>R,SuperscriptUI:()=>v,Underline:()=>J,UnderlineEditing:()=>U,UnderlineUI:()=>L,_getBasicStylesButtonCreator:()=>g});var r={};m(r,ot);import*as ot from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-core$dist$index.js.js";var o={};m(o,ct);import*as ct from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-icons$dist$index.js.js";var n={};m(n,at);import*as at from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-ui$dist$index.js.js";var l={};m(l,ut);import*as ut from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-typing$dist$index.js.js";var u=class extends r.Command{attributeKey;constructor(t,e){super(t),this.attributeKey=e}refresh(){let t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){let e=this.editor.model,c=e.document.selection,d=t.forceValue===void 0?!this.value:t.forceValue;e.change(h=>{if(c.isCollapsed)d?h.setSelectionAttribute(this.attributeKey,!0):h.removeSelectionAttribute(this.attributeKey);else{let S=e.schema.getValidRanges(c.getRanges(),this.attributeKey);for(let a of S)d?h.setAttribute(this.attributeKey,d,a):h.removeAttribute(this.attributeKey,a)}})}_getValueFromFirstAllowedNode(){let t=this.editor.model,e=t.schema,s=t.document.selection;if(s.isCollapsed)return s.hasAttribute(this.attributeKey);for(let c of s.getRanges())for(let d of c.getItems())if(e.checkAttribute(d,this.attributeKey))return d.hasAttribute(this.attributeKey);return!1}},f="bold",T=class extends r.Plugin{static get pluginName(){return"BoldEditing"}static get isOfficialPlugin(){return!0}init(){let t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:f}),t.model.schema.setAttributeProperties(f,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:f,view:"strong",upcastAlso:["b",s=>{let c=s.getStyle("font-weight");return c&&(c=="bold"||Number(c)>=600)?{name:!0,styles:["font-weight"]}:null}]}),t.commands.add(f,new u(t,f)),t.keystrokes.set("CTRL+B",f),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Bold text"),keystroke:"CTRL+B"}]})}};function g({editor:i,commandName:t,plugin:e,icon:s,label:c,keystroke:d}){return h=>{let S=i.commands.get(t),a=new h(i.locale);return a.set({label:c,icon:s,keystroke:d,isToggleable:!0}),a.bind("isEnabled").to(S,"isEnabled"),a.bind("isOn").to(S,"value"),a instanceof n.MenuBarMenuListItemButtonView?a.set({role:"menuitemcheckbox"}):a.set({tooltip:!0}),e.listenTo(a,"execute",()=>{i.execute(t),i.editing.view.focus()}),a}}var K="bold",B=class extends r.Plugin{static get pluginName(){return"BoldUI"}static get isOfficialPlugin(){return!0}init(){let t=this.editor,e=t.locale.t,s=g({editor:t,commandName:K,plugin:this,icon:o.IconBold,label:e("Bold"),keystroke:"CTRL+B"});
1t.ui.componentFactory.add(K,()=>s(n.ButtonView)),t.ui.componentFactory.add("menuBar:"+K,()=>s(n.MenuBarMenuListItemButtonView))}},M=class extends r.Plugin{static get requires(){return[T,B]}static get pluginName(){return"Bold"}static get isOfficialPlugin(){return!0}},p="code",rt="ck-code_selected",O=class extends r.Plugin{static get pluginName(){return"CodeEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[l.TwoStepCaretMovement]}init(){let t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:p}),t.model.schema.setAttributeProperties(p,{isFormatting:!0,copyOnEnter:!1}),t.conversion.attributeToElement({model:p,view:"code"}),t.commands.add(p,new u(t,p)),t.plugins.get(l.TwoStepCaretMovement).registerAttribute(p),(0,l.inlineHighlight)(t,p,"code",rt),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Move out of an inline code style"),keystroke:[["arrowleft","arrowleft"],["arrowright","arrowright"]]}]})}},$="code",P=class extends r.Plugin{static get pluginName(){return"CodeUI"}static get isOfficialPlugin(){return!0}init(){let t=this.editor,e=t.locale.t,s=g({editor:t,commandName:$,plugin:this,icon:o.IconCode,label:e("Code")});t.ui.componentFactory.add($,()=>s(n.ButtonView)),t.ui.componentFactory.add("menuBar:"+$,()=>s(n.MenuBarMenuListItemButtonView))}},G=class extends r.Plugin{static get requires(){return[O,P]}static get pluginName(){return"Code"}static get isOfficialPlugin(){return!0}},b="italic",A=class extends r.Plugin{static get pluginName(){return"ItalicEditing"}static get isOfficialPlugin(){return!0}init(){let t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:b}),t.model.schema.setAttributeProperties(b,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:b,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(b,new u(t,b)),t.keystrokes.set("CTRL+I",b),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Italic text"),keystroke:"CTRL+I"}]})}},_="italic",E=class extends r.Plugin{static get pluginName(){return"ItalicUI"}static get isOfficialPlugin(){return!0}init(){let t=this.editor,e=t.locale.t,s=g({editor:t,commandName:_,plugin:this,icon:o.IconItalic,keystroke:"CTRL+I",label:e("Italic")});t.ui.componentFactory.add(_,()=>s(n.ButtonView)),t.ui.componentFactory.add("menuBar:"+_,()=>s(n.MenuBarMenuListItemButtonView))}},X=class extends r.Plugin{static get requires(){return[A,E]}static get pluginName(){return"Italic"}static get isOfficialPlugin(){return!0}},y="strikethrough",N=class extends r.Plugin{static get pluginName(){return"StrikethroughEditing"}static get isOfficialPlugin(){return!0}init(){let t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:y}),t.model.schema.setAttributeProperties(y,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:y,view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),t.commands.add(y,new u(t,y)),t.keystrokes.set("CTRL+SHIFT+X","strikethrough"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Strikethrough text"),keystroke:"CTRL+SHIFT+X"}]})}},H="strikethrough",C=class extends r.Plugin{static get pluginName(){return"StrikethroughUI"}static get isOfficialPlugin(){return!0}init(){let t=this.editor,e=t.locale.t,s=g({editor:t,commandName:H,plugin:this,icon:o.IconStrikethrough,keystroke:"CTRL+SHIFT+X",label:e("Strikethrough")});t.ui.componentFactory.add(H,()=>s(n.ButtonView)),t.ui.componentFactory.add("menuBar:"+H,()=>s(n.MenuBarMenuListItemButtonView))}},W=class extends r.Plugin{static get requires(){return[N,C]}static get pluginName(){return"Strikethrough"}static get isOfficialPlugin(){return!0}},k="subscript",w=class extends r.Plugin{static get pluginName(){return"SubscriptEditing"}static get isOfficialPlugin(){return!0}init(){let t=this.editor;t.model.schema.extend("$text",{allowAttributes:k}),t.model.schema.setAttributeProperties(k,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:k,view:"sub",upcastAlso:[{styles:{"vertical-align":"sub"}}]}),t.commands.add(k,new u(t,k))}},q="subscript",F=class extends r.Plugin{static get pluginName(){return"SubscriptUI"}static get isOfficialPlugin(){return!0}init(){let t=this.editor,e=t.locale.t,s=g({editor:t,commandName:q,plugin:this,icon:o.IconSubscript,label:e("Subscript")});
1t.ui.componentFactory.add(q,()=>s(n.ButtonView)),t.ui.componentFactory.add("menuBar:"+q,()=>s(n.MenuBarMenuListItemButtonView))}},j=class extends r.Plugin{static get requires(){return[w,F]}static get pluginName(){return"Subscript"}static get isOfficialPlugin(){return!0}},x="superscript",R=class extends r.Plugin{static get pluginName(){return"SuperscriptEditing"}static get isOfficialPlugin(){return!0}init(){let t=this.editor;t.model.schema.extend("$text",{allowAttributes:x}),t.model.schema.setAttributeProperties(x,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:x,view:"sup",upcastAlso:[{styles:{"vertical-align":"super"}}]}),t.commands.add(x,new u(t,x))}},V="superscript",v=class extends r.Plugin{static get pluginName(){return"SuperscriptUI"}static get isOfficialPlugin(){return!0}init(){let t=this.editor,e=t.locale.t,s=g({editor:t,commandName:V,plugin:this,icon:o.IconSuperscript,label:e("Superscript")});t.ui.componentFactory.add(V,()=>s(n.ButtonView)),t.ui.componentFactory.add("menuBar:"+V,()=>s(n.MenuBarMenuListItemButtonView))}},z=class extends r.Plugin{static get requires(){return[R,v]}static get pluginName(){return"Superscript"}static get isOfficialPlugin(){return!0}},I="underline",U=class extends r.Plugin{static get pluginName(){return"UnderlineEditing"}static get isOfficialPlugin(){return!0}init(){let t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:I}),t.model.schema.setAttributeProperties(I,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:I,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),t.commands.add(I,new u(t,I)),t.keystrokes.set("CTRL+U","underline"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Underline text"),keystroke:"CTRL+U"}]})}},D="underline",L=class extends r.Plugin{static get pluginName(){return"UnderlineUI"}static get isOfficialPlugin(){return!0}init(){let t=this.editor,e=t.locale.t,s=g({editor:t,commandName:D,plugin:this,icon:o.IconUnderline,label:e("Underline"),keystroke:"CTRL+U"});t.ui.componentFactory.add(D,()=>s(n.ButtonView)),t.ui.componentFactory.add("menuBar:"+D,()=>s(n.MenuBarMenuListItemButtonView))}},J=class extends r.Plugin{static get requires(){return[U,L]}static get pluginName(){return"Underline"}static get isOfficialPlugin(){return!0}};var{AttributeCommand:pt,Bold:ht,BoldEditing:ft,BoldUI:bt,Code:yt,CodeEditing:kt,CodeUI:xt,Italic:It,ItalicEditing:St,ItalicUI:Tt,Strikethrough:Bt,StrikethroughEditing:Ot,StrikethroughUI:Pt,Subscript:At,SubscriptEditing:Et,SubscriptUI:Nt,Superscript:Ct,SuperscriptEditing:wt,SuperscriptUI:Ft,Underline:Rt,UnderlineEditing:vt,UnderlineUI:Ut,_getBasicStylesButtonCreator:Lt,__esModule:Kt}=Q;export{pt as AttributeCommand,ht as Bold,ft as BoldEditing,bt as BoldUI,yt as Code,kt as CodeEditing,xt as CodeUI,It as Italic,St as ItalicEditing,Tt as ItalicUI,Bt as Strikethrough,Ot as StrikethroughEditing,Pt as StrikethroughUI,At as Subscript,Et as SubscriptEditing,Nt as SubscriptUI,Ct as Superscript,wt as SuperscriptEditing,Ft as SuperscriptUI,Rt as Underline,vt as UnderlineEditing,Ut as UnderlineUI,Kt as __esModule,Lt as _getBasicStylesButtonCreator}; 2/*! Bundled license information: 3 4@ckeditor/ckeditor5-basic-styles/dist/index.js: 5 (** 6 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. 7 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options 8 *) 9*/ 10//# sourceMappingURL=@ckeditor$ckeditor5-basic-styles$dist$index.js.js.map
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.