Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/js/calendar/sliderloader/dist/ |
Upload File : |
/* eslint-disable */ this.BX = this.BX || {}; (function (exports,main_core) { 'use strict'; class SliderLoader { constructor(entryId, options = {}) { this.extensionName = main_core.Type.isString(entryId) && (entryId === 'NEW' || entryId.substring(0, 4) === 'EDIT') || !parseInt(entryId) ? 'EventEditForm' : 'EventViewForm'; this.sliderId = options.sliderId || "calendar:slider-" + Math.random(); entryId = main_core.Type.isString(entryId) && entryId.substring(0, 4) === 'EDIT' ? parseInt(entryId.substring(4)) : parseInt(entryId); this.extensionParams = { entryId: entryId, entry: options.entry || null, type: options.type || null, ownerId: parseInt(options.ownerId) || null, userId: parseInt(options.userId) || null }; if (main_core.Type.isArray(options.participantsEntityList)) { this.extensionParams.participantsEntityList = options.participantsEntityList; } if (main_core.Type.isArray(options.participantsSelectorEntityList)) { this.extensionParams.participantsSelectorEntityList = options.participantsSelectorEntityList; } if (options.formDataValue) { this.extensionParams.formDataValue = options.formDataValue; } if (options.calendarContext) { this.extensionParams.calendarContext = options.calendarContext; } if (options.isLocationCalendar) { this.extensionParams.isLocationCalendar = options.isLocationCalendar; } if (options.roomsManager) { this.extensionParams.roomsManager = options.roomsManager; } if (options.locationAccess) { this.extensionParams.locationAccess = options.locationAccess; } if (options.locationCapacity) { this.extensionParams.locationCapacity = options.locationCapacity; } if (main_core.Type.isDate(options.entryDateFrom)) { this.extensionParams.entryDateFrom = options.entryDateFrom; } if (options.timezoneOffset) { this.extensionParams.timezoneOffset = options.timezoneOffset; } if (main_core.Type.isString(options.entryName)) { this.extensionParams.entryName = options.entryName; } if (main_core.Type.isString(options.entryDescription)) { this.extensionParams.entryDescription = options.entryDescription; } if (main_core.Type.isString(options.link)) { const uri = new main_core.Uri(options.link); const isSharing = uri.getQueryParam('IS_SHARING'); this.isSharing = isSharing === '1'; } if (main_core.Type.isBoolean(options.isSharing) && options.isSharing === true) { this.isSharing = true; } if (main_core.Type.isStringFilled(options.jumpToControl)) { this.extensionParams.jumpToControl = options.jumpToControl; } if (options.createChatId) { this.extensionParams.createChatId = options.createChatId; } } show() { if (this.isSharing) { BX.SidePanel.Instance.open(this.sliderId, { contentCallback: this.loadDeletedViewForm.bind(this), width: 600 }); } else { BX.SidePanel.Instance.open(this.sliderId, { contentCallback: this.loadExtension.bind(this), label: { text: main_core.Loc.getMessage('CALENDAR_EVENT'), bgColor: '#55D0E0' }, data: { type: 'calendar:slider' } }); } } loadExtension(slider) { return new Promise(resolve => { const extensionName = `calendar.${this.extensionName.toLowerCase()}`; main_core.Runtime.loadExtension(extensionName).then(exports => { if (exports && exports[this.extensionName]) { const calendarForm = new exports[this.extensionName](this.extensionParams); if (typeof calendarForm.initInSlider) { calendarForm.initInSlider(slider, resolve); } } else { console.error(`Extension "calendar.${extensionName}" not found`); } }); }); } async loadDeletedViewForm(slider) { const { DeletedViewForm } = await main_core.Runtime.loadExtension('calendar.sharing.deletedviewform'); return new Promise(resolve => { new DeletedViewForm(this.extensionParams.entryId).initInSlider(slider, resolve); }); } } exports.SliderLoader = SliderLoader; }((this.BX.Calendar = this.BX.Calendar || {}),BX)); //# sourceMappingURL=sliderloader.bundle.js.map