1import{Accessibility as G,Command as S,CommandCollection as K,Context as q,ContextPlugin as $,EditingKeystrokeHandler as Q,Editor as Y,ElementApiMixin as J,MultiCommand as Z,PendingActions as X,Plugin as b,_DEFAULT_ACCESSIBILITY_GROUP_ID as ee,_getEditorUsageData as te,attachToForm as oe,secureSourceElement as ne}from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-core$dist$index.js.js";import{WIDGET_CLASS_NAME as ae,WIDGET_SELECTED_CLASS_NAME as le,Widget as A,WidgetHighlightStack as ce,WidgetResize as se,WidgetResizeState as de,WidgetResizer as me,WidgetToolbarRepository as ue,WidgetTypeAround as Ie,_WIDGET_TYPE_AROUND_SELECTION_ATTRIBUTE as we,_WidgetSizeView as ge,_getClosestWidgetTypeAroundDomButton as pe,_getClosestWidgetViewElement as be,_getWidgetTypeAroundButtonPosition as Ce,_getWidgetTypeAroundFakeCaretPosition as he,calculateResizeHostAncestorWidth as Ve,calculateResizeHostPercentageWidth as Ee,findOptimalInsertionRange as P,getLabel as ve,isTypeAroundWidget as fe,isWidget as Te,setHighlightHandling as Le,setLabel as Be,toWidget as M,toWidgetEditable as Se,verticalWidgetNavigationHandler as Ae,viewToModelPositionOutsideModelElement as Pe}from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-widget$dist$index.js.js";import{AccessibilityHelp as De,AccessibilityHelpContentView as He,AriaLiveAnnouncer as ke,AriaLiveAnnouncerPoliteness as xe,AriaLiveAnnouncerRegionView as ye,AriaLiveAnnouncerView as Re,AutocompleteView as Oe,Badge as Fe,BalloonPanelView as We,BalloonToolbar as Ue,BlockButtonView as ze,BlockToolbar as Ne,BodyCollection as je,BoxedEditorUIView as Ge,ButtonLabelView as Ke,ButtonLabelWithHighlightView as qe,ButtonView as v,CollapsibleView as $e,ColorGridView as Qe,ColorGridsFragmentView as Ye,ColorPickerFragmentView as Je,ColorPickerInputRowView as Ze,ColorPickerView as Xe,ColorSelectorView as et,ColorTileView as tt,ComponentFactory as ot,ContextualBalloon as nt,CssTransitionDisablerMixin as it,DefaultMenuBarItems as rt,Dialog as at,DialogActionsView as lt,DialogContentView as ct,DialogView as st,DialogViewPosition as dt,DocumentColorCollection as mt,DraggableViewMixin as ut,DropdownButtonView as It,DropdownMenuButtonView as wt,DropdownMenuListItemButtonView as gt,DropdownMenuListItemView as pt,DropdownMenuListView as bt,DropdownMenuNestedMenuPanelView as Ct,DropdownMenuNestedMenuView as ht,DropdownMenuPanelPositioningFunctions as Vt,DropdownMenuRootListView as Et,DropdownPanelView as vt,DropdownView as ft,EditableUIView as Tt,EditorUI as Lt,EditorUIView as Bt,EvaluationBadge as St,FileDialogButtonView as At,FileDialogListItemButtonView as Pt,FileDialogViewMixin as Mt,FocusCycler as _t,FormHeaderView as Dt,FormRowView as Ht,HighlightedTextView as kt,IconView as xt,IframeView as yt,InlineEditableUIView as Rt,InputBase as Ot,InputNumberView as Ft,InputTextView as Wt,InputView as Ut,ItemsView as zt,LabelView as Nt,LabelWithHighlightView as jt,LabeledFieldView as Gt,LabeledInputView as Kt,ListItemButtonView as qt,ListItemGroupView as $t,ListItemView as Qt,ListSeparatorView as Yt,ListView as Jt,MenuBarMenuButtonView as Zt,MenuBarMenuListItemButtonView as _,MenuBarMenuListItemFileDialogButtonView as Xt,MenuBarMenuListItemView as eo,MenuBarMenuListView as to,MenuBarMenuPanelView as oo,MenuBarMenuView as no,MenuBarView as io,NESTED_TOOLBAR_ICONS as ro,Notification as ao,PoweredBy as lo,SearchInfoView as co,SearchResultsView as so,SearchTextView as mo,SliderView as uo,SpinnerView as Io,SplitButtonView as wo,StickyPanelView as go,SwitchButtonView as po,Template as bo,TextareaView as Co,ToolbarLineBreakView as ho,ToolbarSeparatorView as Vo,ToolbarView as Eo,TooltipManager as vo,UIModel as fo,View as To,ViewCollection as Lo,ViewModel as Bo,_CheckIconHolderView as So,_CollapsibleView as Ao,_ContextualBalloonRotatorView as Po,_DropdownMenuBehaviors as Mo,_DropdownRootMenuBehaviors as _o,_MenuBarBehaviors as Do,_MenuBarMenuBehaviors as Ho,_MenuBarMenuViewPanelPositioningFunctions as ko,_SearchInfoView as xo,_SearchTextQueryView as yo,_TemplateBinding as Ro,_TemplateIfBinding as Oo,_TemplateToBinding as Fo,_convertColor as Wo,_convertColorToHex as Uo,_preventUiViewDefault as zo,_processMenuBarConfig as No,_registerCustomElement as jo,_tryNormalizeHexColor as Go,addKeyboardHandlingForGrid as Ko,addListToDropdown as qo,addMenuToDropdown as $o,addToolbarToDropdown as Qo,clickOutsideHandler as Yo,createDropdown as Jo,createLabeledDropdown as Zo,createLabeledInputNumber as Xo,createLabeledInputText as en,createLabeledTextarea as tn,filterGroupAndItemNames as on,focusChildOnDropdownOpen as nn,getLocalizedColorOptions as rn,isFocusable as an,isViewWithFocusCycler as ln,normalizeColorOptions as cn,normalizeMenuBarConfig as sn,normalizeSingleColorDefinition as dn,normalizeToolbarConfig as mn,submitHandler as un}from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-ui$dist$index.js.js";import{CKEditorError as gn,Collection as pn,Config as bn,DOCUMENTATION_URL as Cn,DomEmitterMixin as hn,ElementReplacer as Vn,EmitterMixin as En,EventInfo as vn,FocusTracker as fn,KeystrokeHandler as Tn,Locale as Ln,ObservableMixin as Bn,Rect as Sn,ResizeObserver as An,_clearTranslations as Pn,_getEmitterId as Mn,_getEmitterListenedTo as _n,_getUserAgent as Dn,_isAndroid as Hn,_isBlink as kn,_isGecko as xn,_isMac as yn,_isMediaForcedColors as Rn,_isMotionReduced as On,_isRegExpUnicodePropertySupported as Fn,_isSafari as Wn,_isWindows as Un,_isiOS as zn,_setEmitterId as Nn,_translate as jn,_unifyTranslations as Gn,abortableDebounce as Kn,add as qn,are
1ConnectedThroughProperties as $n,collectStylesheets as Qn,compareArrays as Yn,count as Jn,crc32 as Zn,createElement as g,delay as Xn,diff as ei,diffToChanges as ti,env as oi,exponentialDelay as ni,fastDiff as ii,findClosestScrollableAncestor as ri,first as ai,formatHtml as li,getAncestors as ci,getBorderWidths as si,getCode as di,getCommonAncestor as mi,getDataFromElement as ui,getEnvKeystrokeText as Ii,getLanguageDirection as wi,getLocalizedArrowKeyCodeDirection as gi,getOptimalPosition as pi,getPositionedAncestor as bi,getRangeFromMouseEvent as Ci,getVisualViewportOffset as hi,global as Vi,indexOf as Ei,insertAt as vi,insertToPriorityArray as fi,isArrowKeyCode as Ti,isCombiningMark as Li,isComment as Bi,isForwardArrowKeyCode as Si,isHighSurrogateHalf as Ai,isInsideCombinedSymbol as Pi,isInsideEmojiSequence as Mi,isInsideSurrogatePair as _i,isIterable as Di,isLowSurrogateHalf as Hi,isNode as ki,isRange as xi,isText as yi,isValidAttributeName as Ri,isViewWithFocusTracker as Oi,isVisible as Fi,isWindow as Wi,keyCodes as Ui,logError as zi,logWarning as D,mapsEqual as Ni,nth as ji,objectToMap as Gi,parseBase64EncodedObject as Ki,parseKeystroke as qi,priorities as $i,releaseDate as Qi,remove as Yi,retry as Ji,scrollAncestorsToShowTarget as Zi,scrollViewportToShowTarget as Xi,setDataInElement as er,spliceArray as tr,spy as or,toArray as nr,toMap as ir,toUnit as rr,uid as ar,ver
1sion as lr,wait as cr}from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-utils$dist$index.js.js";import{IconAccessibility as mr,IconAddComment as ur,IconAlignBottom as Ir,IconAlignCenter as wr,IconAlignJustify as gr,IconAlignLeft as pr,IconAlignMiddle as br,IconAlignRight as Cr,IconAlignTop as hr,IconArrowDown as Vr,IconArrowUp as Er,IconBold as vr,IconBookmark as fr,IconBookmarkInline as Tr,IconBookmarkMedium as Lr,IconBookmarkSmall as Br,IconBrowseFiles as Sr,IconBulletedList as Ar,IconCancel as H,IconCaption as Pr,IconCaseChange as Mr,IconCheck as k,IconChevronDown as _r,IconChevronUp as Dr,IconCkboxImageEdit as Hr,IconCode as kr,IconCodeBlock as xr,IconCog as yr,IconColorPalette as Rr,IconColorTileCheck as Or,IconCommentsArchive as Fr,IconContentLock as Wr,IconContentUnlock as Ur,IconCopy as zr,IconDragHandle as Nr,IconDragIndicator as jr,IconDropbox as Gr,IconDropdownArrow as Kr,IconEditComment as qr,IconEmoji as $r,IconEraser as Qr,IconError as Yr,IconExportPdf as Jr,IconExportWord as Zr,IconFacebook as Xr,IconFindReplace as ea,IconFontBackground as ta,IconFontColor as oa,IconFontFamily as na,IconFontSize as ia,IconFullscreenEnter as ra,IconFullscreenLeave as aa,IconGoogleDrive as la,IconGooglePhotos as ca,IconHeading1 as sa,IconHeading2 as da,IconHeading3 as ma,IconHeading4 as ua,IconHeading5 as Ia,IconHeading6 as wa,IconHistory as ga,IconHorizontalLine as pa,IconHtml as x,IconImage as ba,IconImageAssetManager as Ca,IconImageUpload as ha,IconImageUrl as Va,IconImportExport as Ea,IconImportWord as va,IconIndent as fa,IconInsertMergeField as Ta,IconItalic as La,IconLegalStyleList as Ba,IconLineHeight as Sa,IconLink as Aa,IconListStyleCircle as Pa,IconListStyleDecimal as Ma,IconListStyleDecimalLeadingZero as _a,IconListStyleDisc as Da,IconListStyleLowerLatin as Ha,IconListStyleLowerRoman as ka,IconListStyleSquare as xa,IconListStyleUpperLatin as ya,IconListStyleUpperRoman as Ra,IconLocal as Oa,IconLoupe as Fa,IconLowVision as Wa,IconMagicWand as Ua,IconMarker as za,IconMedia as Na,IconMediaPlaceholder as ja,IconMultiLevelList as Ga,IconNextArrow as Ka,IconNotification as qa,IconNumberedList as $a,IconObjectCenter as Qa,IconObjectFullWidth as Ya,IconObjectInline as Ja,IconObjectInlineLeft as Za,IconObjectInlineRight as Xa,IconObjectLeft as el,IconObjectRight as tl,IconObjectSizeCustom as ol,IconObjectSizeFull as nl,IconObjectSizeLarge as il,IconObjectSizeMedium as rl,IconObjectSizeSmall as al,IconOneDrive as ll,IconOutdent as cl,IconPageBreak as sl,IconPaginationExample as dl,IconPaintRoller as ml,IconPaintRollerCursorDefault as ul,IconPaintRollerCursorText as Il,IconParagraph as wl,IconPen as gl,IconPencil as f,IconPilcrow as pl,IconPlay as bl,IconPlus as Cl,IconPreviewMergeFields as hl,IconPreviousArrow as Vl,IconPrint as El,IconProjectLogo as vl,IconQuote as fl,IconRedo as Tl,IconRemove as Ll,IconRemoveComment as Bl,IconRemoveFormat as Sl,IconReturnArrow as Al,IconRevisionHistory as Pl,IconRobotPencil as Ml,IconSelectAll as _l,IconSettings as Dl,IconShowBlocks as Hl,IconSource as kl,IconSpecialCharacters as xl,IconStrikethrough as yl,IconSubmit as Rl,IconSubscript as Ol,IconSuperscript as Fl,IconTable as Wl,IconTableCellProperties as Ul,IconTableColumn as zl,IconTableLayout as Nl,IconTableMergeCell as jl,IconTableOfContents as Gl,IconTableProperties as Kl,IconTableRow as ql,IconTemplate as $l,IconTemplateGeneric as Ql,IconText as Yl,IconTextAlternative as Jl,IconThreeVerticalDots as Zl,IconTodoList as Xl,IconTrackChanges as ec,IconTrackChangesAccept as tc,IconTrackChangesDiscard as oc,IconUnderline as nc,IconUndo as ic,IconUnlink as rc,IconUploadcareImageEdit as ac,IconUploadcareImageUpload as lc,IconUploadcareLink as cc,IconUser as sc,IconWarning as dc}from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-icons$dist$index.js.js";var C=class extends S{refresh(){let e=this.editor.model,n=e.schema,r=e.document.selection,t=y(r);this.isEnabled=U(r,n,e),this.value=t?t.getAttribute("value")||"":null}execute(e){let n=this.editor.model,r=n.document.selection;n.change(t=>{let I;this.value!==null?I=y(r):(I=t.createElement("rawHtml"),n.insertObject(I,null,null,{setSelection:"on"})),t.setAttribute("value",e,I)})}};function U(d,e,n){let r=z(d,n);return e.checkChild(r,"rawHtml")}function z(d,e){let r=P(d,e).start.parent;return r.isEmpty&&!r.is("rootElement")?r.parent:r}function y(d){let e=d.getSelectedElement();return e&&e.is("element","rawHtml")?e:null}var h=class extends b{_widgetButtonViewReferences=new Set;static get pluginName(){return"HtmlEmbedEditing"}static get isOfficialPlugin(){return!0}constructor(e){super(e),e.config.define("htmlEmbed",{showPreviews:!1,sanitizeHtml:n=>
1(D("html-embed-provide-sanitize-function"),{html:n,hasChanged:!1})})}init(){let e=this.editor;e.model.schema.register("rawHtml",{inheritAllFrom:"$blockObject",allowAttributes:["value"]}),e.commands.add("htmlEmbed",new C(e)),this._setupConversion()}_setupConversion(){let e=this.editor,n=e.t,r=e.editing.view,t=this._widgetButtonViewReferences,I=e.config.get("htmlEmbed");this.editor.editing.view.on("render",()=>{for(let a of t){if(a.element&&a.element.isConnected)return;a.destroy(),t.delete(a)}},{priority:"lowest"}),e.data.registerRawContentMatcher({name:"div",classes:"raw-html-embed"}),e.conversion.for("upcast").elementToElement({view:{name:"div",classes:"raw-html-embed"},model:(a,{writer:i})=>i.createElement("rawHtml",{value:a.getCustomProperty("$rawContent")})}),e.conversion.for("dataDowncast").elementToElement({model:"rawHtml",view:(a,{writer:i})=>i.createRawElement("div",{class:"raw-html-embed"},function(l){l.innerHTML=a.getAttribute("value")||""})}),e.conversion.for("editingDowncast").elementToStructure({model:{name:"rawHtml",attributes:["value"]},view:(a,{writer:i})=>{let l,o,c,s=i.createRawElement("div",{class:"raw-html-embed__content-wrapper"},function(u){l=u,E({editor:e,domElement:u,state:o,props:c}),l.addEventListener("mousedown",()=>{if(o.isEditable){let p=e.model;p.document.selection.getSelectedElement()!==a&&p.change(W=>W.setSelection(a,"on"))}},!0)}),w={makeEditable(){o=Object.assign({},o,{isEditable:!0}),E({domElement:l,editor:e,state:o,props:c}),r.change(u=>{u.setAttribute("data-cke-ignore-events","true",s)}),l.querySelector("textarea").focus()},save(u){u!==o.getRawHtmlValue()?(e.execute("htmlEmbed",u),e.editing.view.focus()):this.cancel()},cancel(){o=Object.assign({},o,{isEditable:!1}),E({domElement:l,editor:e,state:o,props:c}),e.editing.view.focus(),r.change(u=>{u.removeAttribute("data-cke-ignore-events",s)})}};o={showPreviews:I.showPreviews,isEditable:!1,getRawHtmlValue:()=>a.getAttribute("value")||""},c={sanitizeHtml:I.sanitizeHtml,textareaPlaceholder:n("Paste raw HTML here..."),onEditClick(){w.makeEditable()},onSaveClick(u){w.save(u)},onCancelClick(){w.cancel()}};let m=i.createContainerElement("div",{class:"raw-html-embed","data-html-embed-label":n("HTML snippet"),dir:e.locale.uiLanguageDirection},s);return i.setCustomProperty("rawHtmlApi",w,m),i.setCustomProperty("rawHtml",!0,m),M(m,i,{label:n("HTML snippet"),hasSelectionHandle:!0})}});function E({editor:a,domElement:i,state:l,props:o}){i.textContent="";let c=i.ownerDocument,s;if(l.isEditable){let m={isDisabled:!1,placeholder:o.textareaPlaceholder};s=B({domDocument:c,state:l,props:m}),i.append(s)}else if(l.showPreviews){let m={sanitizeHtml:o.sanitizeHtml};i.append(O({domDocument:c,state:l,props:m,editor:a}))}else{let m={isDisabled:!0,placeholder:o.textareaPlaceholder};i.append(B({domDocument:c,state:l,props:m}))}let w={onEditClick:o.onEditClick,onSaveClick:()=>{o.onSaveClick(s.value)},onCancelClick:o.onCancelClick};i.prepend(R({editor:a,domDocument:c,state:l,props:w}))}function R({editor:a,domDocument:i,state:l,props:o}){let c=g(i,"div",{class:"raw-html-embed__buttons-wrapper"});if(l.isEditable){let s=T(a,"save",o.onSaveClick),w=T(a,"cancel",o.onCancelClick);c.append(s.element,w.element),t.add(s).add(w)}else{let s=T(a,"edit",o.onEditClick);c.append(s.element),t.add(s)}return c}function B({domDocument:a,state:i,props:l}){let o=g(a,"textarea",{placeholder:l.placeholder,class:"ck ck-reset ck-input ck-input-text raw-html-embed__source"});return o.disabled=l.isDisabled,o.value=i.getRawHtmlValue(),o}function O({editor:a,domDocument:i,state:l,props:o}){let c=o.sanitizeHtml(l.getRawHtmlValue()),s=l.getRawHtmlValue().length>0?n("No preview available"):n("Empty snippet content"),w=g(i,"div",{class:"ck ck-reset_all raw-html-embed__preview-placeholder"},s),m=g(i,"div",{class:"raw-html-embed__preview-content",dir:a.locale.contentLanguageDirection}),p=i.createRange().createContextualFragment(c.html);return m.appendChild(p),g(i,"div",{class:"raw-html-embed__preview"},[w,m])}}};function T(d,e,n){let{t:r}=d.locale,t=new v(d.locale),I=d.commands.get("htmlEmbed");return t.set({class:`raw-html-embed__${e}-button`,icon:f,tooltip:!0,tooltipPosition:d.locale.uiLanguageDirection==="rtl"?"e":"w"}),t.render(),e==="edit"?(t.set({icon:f,label:r("Edit source")}),t.bind("isEnabled").to(I)):e==="save"?(t.set({icon:k,label:r("Save changes")}
1),t.bind("isEnabled").to(I)):t.set({icon:H,label:r("Cancel")}),t.on("execute",n),t}var V=class extends b{static get pluginName(){return"HtmlEmbedUI"}static get isOfficialPlugin(){return!0}init(){let e=this.editor,r=e.locale.t;e.ui.componentFactory.add("htmlEmbed",()=>{let t=this._createButton(v);return t.set({tooltip:!0,label:r("Insert HTML")}),t}),e.ui.componentFactory.add("menuBar:htmlEmbed",()=>{let t=this._createButton(_);return t.set({label:r("HTML snippet")}),t})}_createButton(e){let n=this.editor,r=n.commands.get("htmlEmbed"),t=new e(n.locale);return t.set({icon:x}),t.bind("isEnabled").to(r,"isEnabled"),this.listenTo(t,"execute",()=>{n.execute("htmlEmbed"),n.editing.view.focus(),n.editing.view.document.selection.getSelectedElement().getCustomProperty("rawHtmlApi").makeEditable()}),t}},L=class extends b{static get requires(){return[h,V,A]}static get pluginName(){return"HtmlEmbed"}static get isOfficialPlugin(){return!0}};export{L as HtmlEmbed,C as HtmlEmbedCommand,h as HtmlEmbedEditing,V as HtmlEmbedUI}; 2/*! Bundled license information: 3 4@ckeditor/ckeditor5-html-embed/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-html-embed$dist$index.js.(JGMG3ETY).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.