Your IP : 13.59.68.167


Current Path : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/js/fileman/html_editor/
Upload File :
Current File : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/js/fileman/html_editor/html-views.map.js

{"version":3,"file":"html-views.map.js","names":["BXEditorView","editor","element","container","this","config","isShown","bbCode","BX","addCustomEvent","proxy","OnClick","prototype","Focus","document","querySelector","ownerDocument","focus","e","Hide","style","display","Show","Disable","setAttribute","Enable","removeAttribute","params","IsShown","BXEditorTextareaView","parent","textareaElement","BXEditorIframeView","superclass","constructor","apply","arguments","name","InitEventHandlers","value","content","SetValue","extend","Clear","GetValue","bParse","IsEmpty","parse","html","bFormat","Parse","dom","pValueInput","SaveValue","inited","HasPlaceholderSet","placeholderText","getAttribute","util","trim","_this","bind","On","isFocused","textareaKeyDownPreventDefault","ctrlKey","metaKey","altKey","keyCode","KEY_CODES","GetViewMode","PreventDefault","IsFocused","ScrollToSelectedText","searchText","SelectText","ind","indexOf","setSelectionRange","length","GetTextSelection","res","selectionStart","undefined","substr","selectionEnd","selection","createRange","text","window","getSelection","toString","WrapWith","tagBegin","tagEnd","postText","bReplaceText","selectedText","mode","currentScroll","scrollTop","start","end","sel","selection_copy","duplicate","replace","setEndPoint","collapse","moveEnd","select","GetCursorPosition","BXEditorIframeCopilot","copilotParams","copilotLoaded","selectionTypeCaret","resultNodeAttr","resultColor","invitationLineModes","NONE","LAST_LINE","EACH_LINE","invitationLineMode","iframeView","iframeContainer","contentEditable","invitationLine","renderInvitationLine","invitationLineAbsolute","insertResultNode","renderInsertResultNode","copilot","AI","Copilot","moduleId","contextId","category","contextParameters","autoHide","preventAutoHide","event","contains","target","bindHandlers","init","placeHolder","message","isMentionUnavailable","Tag","render","subscribe","finishInitHandler","aiResultHandler","saveHandler","addBelowHandler","cancelHandler","saveResultNodes","addEventListener","documentClickHandler","onWindowKeyDownHandler","onContentEditableKeyDown","onScrollHandler","ResizeObserver","observe","handleResizeWindow","startAdjustAnimation","hideObserver","MutationObserver","offsetHeight","hideInvitationLine","disconnect","body","childList","animation","stop","easing","duration","finish","transition","makeEaseOut","transitions","linear","step","adjust","getAdjustOptionsForRect","adjustmentRect","copilotBtnPopup","adjustCopilotButton","getAdjustOptionsForRectSpaced","complete","animate","updateInvitationLine","resultNodes","getResultNodes","lastResultSpan","pop","innerText","data","result","getSpanWithText","Dom","attr","after","remove","ScrollToInsertedText","removeAllRanges","getAdjustOptions","getRangeAt","span","deleteContents","insertNode","UpdateHeight","synchro","FromIframeToTextarea","FromTextareaToIframe","hide","lastSelectedElement","getSelectionText","endContainer","isSelectionEndOutOfBounds","append","before","removeResultNodes","showRect","create","key","adjustWidth","getCopilotWidth","forEach","resultNode","childNode","childNodes","cloneNode","onContentEditableMouseDown","hideCopilotButton","onIframeWindowClick","update","updatePopup","onContentEditableKeyUp","parentNode","showInvitationLine","range","onContentEditableBlur","setTimeout","onIframeFocus","shouldBeShown","offsetWidth","show","showFromSpace","setContext","bindElement","top","parseInt","left","containerRect","getBoundingClientRect","bottom","y","scrollY","x","scrollX","width","showAtTheBottom","emptyBr","emptyLine","needToAppendEmptyElement","lastNode","getFilteredChildNodes","tagName","position","at","updateCopilotButton","shouldShowCopilotButton","showCopilotButton","Main","Popup","padding","borderRadius","renderCopilotButton","setMaxWidth","setMinWidth","setPadding","adjustPosition","Runtime","loadExtension","copilotButton","copilotButtonClickHandler","adjustOptions","setSelectedText","showFromPopup","options","setBindElement","close","isNotFocusedOrCursorAtResultNode","pivot","isCentered","pivotRect","adjustment","documentElement","focusNode","filter","node","parentElement","querySelectorAll","shouldShowInvitationLine","rangeCount","isZwnbspNode","replaceWith","invitationLineRect","offsetTop","offsetLeft","registered","ZIndexManager","register","bringToFront","shouldDisplayInvitationLine","contentEditableRect","replaceAll","GetSelection","activeElement","isCursorAtStartOfLine","isCursorAtNewLine","type","removeZwnbspSequence","contentEditableOffset","getComputedStyle","paddingLeft","tmpNode","previousNode","previousSibling","nextNode","nextSibling","offset","afterBr","doesNodeMakeLine","nodeName","textContent","beforeBr","atStart","outerHTML","nodes","isEmptyOrOnlyLine","doesLastNodeMakeLine","spanNodes","lastSpanNode","oneSpanNodeBeforeLast","oneNodeBeforeLast","doLastTwoNodesMakeLine","isCursorAtTheEndOfDocument","nodesToRemove","push","innerHTML","createZwnbspNode","makingLineNodes","includes","focusOffset","modify","textarea","caretNode","OnCreateIframe","sandbox","GetDocument","rangy","isCopilotEnabled","setCopilotContextParameters","formData","xmlId","entityId","scrollHeight","isCopilotInitialized","iframeValue","GetInnerHtml","CheckContentLastChild","ReInit","setToEnd","browser","IsIE","IsIOS","focusTimeout","clearTimeout","orScrollTop","orScrollLeft","scrollLeft","scrollTo","lastChild","SetBefore","SetAfter","SetFocusedFlag","GetTextContent","clearInvisibleSpace","txt","elementsWithVisualValue","_initObjectResizing","properties","propertiesLength","commands","exec","allowObjectResizing","supportsEvent","srcElement","i","property","redraw","preventDefault","focusWithoutScrolling","setActive","elementStyle","originalScrollTop","doc","originalScrollLeft","originalStyles","WebkitUserSelect","setStyles","on","win","iframeWindow","GetWindow","_element","IsOpera","_eventsInitedObject","onCustomEvent","shiftKey","getEventButton","MSRIGHT","contMenuRangeCollapsed","GetRange","bxTag","GetBxTag","collapsed","IsSyncOn","StopSync","IsIE10","IsIE11","phpParser","RedrawSurrogates","CheckParentSurrogate","startContainer","surr","SetInvisibleTextAfterNode","SetInvisibleTextBeforeNode","action","actions","quote","checkSpaceAfterQuotes","SaveRange","StartSync","IsFirefox","delegate","OnPasteHandler","clipboardEvent","Event","BaseEvent","EventEmitter","emitAsync","then","isDefaultPrevented","GetSelectedNode","OnEnterHandlerKeyUp","OnKeyUpArrowsHandler","IsChrome","nodeType","ExecuteAndRestoreSimple","SetTextContent","removeChild","FirstLetterSupported","parser","firstNodeCheck","FirstLetterCheckNodes","stopBugusScrollTimeout","stopBugusScroll","CheckImageSelectSupport","SelectNode","CheckPreCursorSupport","selectedNode","FocusPreElement","KeyDown","savedScroll","lastSavedScroll","_RestoreScrollTop","nodeTitles","IMG","SrcTitle","A","UrlTitle","hasAttribute","InitClipboardHandler","iframeKeyDownPreventDefault","GetWindowScrollPos","command","SHORTCUTS","in_array","firstChild","startOffset","endOffset","_IEBodyClearHandler","_IEBodyClearHandlerEx","isUserTyping","typingTimeout","Exec","className","IsSafari","next","GetNextNotEmptySibling","Refresh","OnKeyDownArrowsHandler","li","findParent","tag","ul","customBullitClass","insertUnorderedList","getCustomBullitClass","checkCustomBullitList","FirstLetterBackspaceHandler","OnEnterHandler","removeCustomEvent","p","toLowerCase","newPar","ReplaceWithOwnChildren","IsEmptyNode","minHeight","unwrap","n","emptyNode","GetInvisibleTextNode","insertBefore","list","br","blockElement","blockTags","listTags","bullitClass","getElementsByTagName","match","IsSupported","INVISIBLE_SPACE","IsMac","tmpId","Math","round","random","tmpElement","GetIframeElement","checkNode","InsertNode","prev","GetBlockTags","prevNode","KC","keyDownRange","IsBlockElement","IsBlockNode","pre","prevToSur","nextToSur","keyDownNode","keyDownPre","isEmpty","isSur","sameLastRange","startCont","endCont","startIsSur","endIsSur","GetStructuralTags","CheckLastRange","CheckSurrogateNode","_MoveCursorAfterNode","setStartBefore","SetSelection","setEndAfter","_MoveCursorBeforeNode","preNode","timeout","_focusPreElementTimeout","skipPasteHandler","pasteNodeIndex","arNodes","curNode","qnodes","markGoodNode","randValue","sync","pasteHandlerTimeout","SetCursorNode","pasteHandleMode","bbParseContentMode","lastIframeValue","skipPasteControl","pasteControl","SaveIframeContent","CheckAndShow","lastTextareaValue","RestoreCursor","InitAutoLinking","nativeAutolinkCanBeDisabled","IsSupportedByBrowser","nativeAutoLink","IsIE9","autoLink","ignorableParents","CODE","PRE","SCRIPT","HEAD","TITLE","STYLE","urlRegExp","emailRegExp","MAX_LENGTH","BRACKETS","autolinkUrlRegExp","autolinkEmailRegExp","autoLinkHandler","checkAutoLink","ExecuteAndRestore","nodeValue","GetIframeDoc","walker","createTreeWalker","NodeFilter","SHOW_TEXT","ignorableParent","parseNode","convertUrlToLink","str","htmlspecialchars","url","punctuation","opening","split","realUrl","displayUrl","convertEmailToLink","email","getTmpDiv","tmp","_bx_autolink_temp_div","createElement","tmpDiv","autolinkTimeout","links","getTextContent","link","newTextContent","IsUserTypingNow","IsSurrogate","appendChild","BXEditorViewsSynchro","textareaView","INTERVAL","lastFocused","bParseHtml","bbCodes","bbParser","Unparse","lastSavedIframeValue","htmlFromBbCode","FullSyncFromIframe","Sync","view","currentViewName","GetSplitMode","delay","interval","OnIframeMousedown","IsFocusedOnTextarea"],"sources":["html-views.js"],"mappings":"CAOA,WAGA,SAASA,EAAaC,EAAQC,EAASC,GAEtCC,KAAKH,OAASA,EACdG,KAAKF,QAAUA,EACfE,KAAKD,UAAYA,EACjBC,KAAKC,OAASJ,EAAOI,QAAU,CAAC,EAChCD,KAAKE,QAAU,KACfF,KAAKG,OAASN,EAAOM,OACrBC,GAAGC,eAAeL,KAAKH,OAAQ,gBAAiBO,GAAGE,MAAMN,KAAKO,QAASP,MACxE,CAEAJ,EAAaY,UAAY,CACxBC,MAAO,WAEN,IAAKC,SAASC,eAAiBX,KAAKF,QAAQc,cAAcD,cAAc,YAAcX,KAAKF,QAC1F,OAED,IAAIE,KAAKF,QAAQe,OAAkB,CAAT,MAAMC,GAAG,CACpC,EAEAC,KAAM,WAELf,KAAKE,QAAU,MACfF,KAAKD,UAAUiB,MAAMC,QAAU,MAChC,EAEAC,KAAM,WAELlB,KAAKE,QAAU,KACfF,KAAKD,UAAUiB,MAAMC,QAAU,EAChC,EAEAE,QAAS,WAERnB,KAAKF,QAAQsB,aAAa,WAAY,WACvC,EAEAC,OAAQ,WAEPrB,KAAKF,QAAQwB,gBAAgB,WAC9B,EAEAf,QAAS,SAASgB,GAGlB,EAEAC,QAAS,WAER,QAASxB,KAAKE,OACf,GAGD,SAASuB,EAAqBC,EAAQC,EAAiB5B,GAGtD6B,EAAmBC,WAAWC,YAAYC,MAAM/B,KAAMgC,WACtDhC,KAAKiC,KAAO,WACZjC,KAAK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