Current Path : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/ui/timeline/dist/ |
Current File : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/ui/timeline/dist/timeline.bundle.map.js |
{"version":3,"file":"timeline.bundle.map.js","names":["this","BX","exports","main_loader","ui_dialogs_messagebox","main_popup","main_core_events","main_core","_","t","_t","_t2","_t3","_t4","_t5","_t6","_t7","_t8","_t9","_t10","Item","constructor","params","isProgress","EventEmitter","makeObservable","id","createdTimestamp","action","title","description","htmlDescription","textDescription","userId","isFixed","data","eventIds","Set","Type","isPlainObject","isSet","isString","isNumber","layout","timeFormat","nameFormat","users","Map","isLast","events","isPinned","afterRender","Event","bind","renderPin","onPinClick","bindActionsButtonClick","button","getActionsButton","onActionsButtonClick","setIsLast","isRendered","getContainer","classList","add","remove","setUserData","setTimeFormat","setNameFormat","container","isDomNode","getCreatedTime","Text","toInteger","Date","formatTime","time","date","format","getId","getTitle","getUserId","getScope","scope","isScopeManual","isScopeAutomation","isScopeTask","isScopeRest","render","renderContainer","updateLayout","clearLayout","appendChild","renderIcon","hasMenu","renderActionsButton","content","getContent","renderContent","Tag","pin","renderDescription","header","renderHeader","renderMain","renderHeaderUser","size","userData","link","fullName","photo","get","safeFullName","safe","main","getMain","icon","getItem","item","isFunction","emit","isSkipContainer","Object","keys","forEach","name","node","Dom","getDataForUpdate","updateData","update","onError","onDelete","hasActions","getActions","length","contextMenuButton","getActionsMenuId","getActionsMenu","toggle","MenuManager","create","bindElement","items","offsetTop","offsetLeft","angle","position","offset","onPopupShow","onContextMenuShow","onPopupClose","onContextMenuClose","destroy","startProgress","getLoader","show","stopProgress","isShown","hide","loader","Loader","target","_$1","_t$1","_t2$1","_t3$1","_t4$1","_t5$1","_t6$1","History","super","encode","renderStageChangeTitle","Loc","getMessage","renderStageChange","stageFrom","getStageFrom","stageTo","getStageTo","getFields","isArray","fields","renderFieldsChange","list","field","push","renderFieldsChangeTitle","_$2","_t$2","StageChange","stageChange","fieldsChange","_$3","_t$3","FieldsChange","Editor","getRandom","Error","clean","_$4","_t$4","_t2$2","_t3$2","_t4$2","_t5$2","_t6$2","_t7$1","CommentEditor","commentId","editorContent","setEventNamespace","getVisualEditorName","replace","getTextarea","textarea","renderTextarea","onFocus","getVisualEditorContainer","visualEditorContainer","renderVisualEditorContainer","getButtonsContainer","buttonsContainer","renderButtons","renderSaveButton","renderCancelButton","getSaveButton","saveButton","save","getCancelButton","cancelButton","cancel","showVisualEditor","postForm","visualEditor","eventNode","style","display","Focus","loadVisualEditor","then","setTimeout","oEditor","GetContent","catch","message","Promise","resolve","reject","showEditorLoader","event","BaseEvent","emitAsync","html","getData","Runtime","hideEditorLoader","LHEPostForm","BXHtmlEditor","getHandler","Get","editorLoader","append","hideVisualEditor","isCancel","files","getAttachments","getEmptyMessageNotification","reinit","emptyMessagePopup","Popup","darkMode","autoHide","zIndex","closeByEsc","bindOptions","forceBindPosition","refresh","SetContent","ReInitIframe","attachments","arFiles","controllers","fileControllers","values","controller","includes","fileController","fileId","_$5","_t$5","_t2$3","_t3$3","_t4$3","_t5$3","_t6$3","COLLAPSE_TEXT_MAX_LENGTH","Comment","props","isCollapsed","isContentLoaded","isAddExpandBlock","hasFiles","getMainDescription","renderExpandBlock","renderFilesContainer","ready","loadFilesContent","getFiles","renderMainDescription","mainDescription","onMainClick","expandBlock","renderExpandButton","getExpandBlock","expandButton","onExpandButtonClick","getExpandButton","getCommendEditor","commentEditor","subscribe","switchToViewMode","onSaveComment","getEditorContainer","editorContainer","renderEditorContainer","getEditorButtons","editorButtons","renderEditorButtons","filesContainer","getFilesContainer","switchToEditMode","text","onclick","actionEdit","actionDelete","close","MessageBox","confirm","comment","tagName","toLowerCase","hasClass","document","getSelection","toString","preventDefault","stopPropagation","maxHeight","scrollHeight","innerText","loadContent","Animation","start","finish","onFinish","_$6","_t$6","Drop","insertAfter","timeout","DEFAULT_TIMEOUT","createGhost","width","offsetWidth","top","getPosition","left","body","anchor","prepend","moveGhost","anchorPosition","startPosition","movingEvent","easing","duration","DURATION","height","transition","makeEaseOut","transitions","quart","step","state","complete","animate","opacity","Pin","addClass","_cloneHeight","_minHeight","_sumPaddingContent","_anchorPosition","_difference","bottom","_deepHistoryLimit","clientHeight","_duration","Math","abs","Show","expand","fadeIn","overflow","EXPAND_DURATION","FADE_IN_DURATION","_$7","_t$7","TaskComplete","task","taskNode","offsetHeight","taskHeight","removeClass","Hide","wrapperPosition","hideEvent","marginBottom","_items","babelHelpers","classPrivateFieldLooseKey","_isRunning","Queue","static","animation","classPrivateFieldLooseBase","animations","shift","promises","all","run","defineProperty","writable","value","_$8","_t$8","_t2$4","_t3$4","_t4$4","_t5$4","_t6$4","_t7$2","_t8$1","_t9$1","_t10$1","_t11","_t12","Stream","pinnedItems","tasks","editors","dateSeparators","initItemClasses","itemClasses","currentPage","pageSize","addUsers","createItem","addItem","initTasks","editor","set","bindEvents","progress","stream","onScrollHandler","throttle","onScroll","getItems","enableLoadOnScroll","Array","from","itemClassName","onItemPinClick","onItemDelete","getItemClassName","getTimeFormat","getPinnedItemFromItem","result","key","getItemFromArray","getPinnedItems","getPinnedItem","getTasks","getTask","renderEditors","pinnedItemsContainer","renderPinnedItems","tasksContainer","renderTasks","itemsContainer","renderItems","editorsTitle","editorsContent","isTitleActive","createFixedAnchor","pinnedItem","fixedAnchor","updateTasks","newTasks","deleteTasks","deleteItem","tasksTitle","getTasksTitle","renderTasksTitle","streamTask","parentElement","removeChild","lastItem","day","getDayFromDate","getDateSeparator","dateSeparator","createDateSeparator","separator","renderDateSeparator","isToday","Reflection","getClass","insertItem","unshift","datetimeFormat","dateFormat","convertBitrixFormat","trim","getDateTimeFormat","dateTimeFormat","window","disableLoadOnScroll","unbind","pos","getBoundingClientRect","documentElement","clone","pinItem","unPinItem","commonItem","filter","filteredItem","itemIndex","getItemIndexFromArray","splice","isAddHideAnimation","completedData","newItem","showError","console","error","addAnimation","Timeline","UI","Dialogs","Main"],"sources":["timeline.bundle.js"],"mappings":"AACAA,K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