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/ilovecveti.ru/bitrix/js/landing/copilot-chat/dist/ |
Upload File : |
this.BX=this.BX||{};(function(t,e,i){"use strict";class o{static getCopilotChatInstance(t){var i,o,s;const a=t.entityId;const n=(i=t.chatId)!=null?i:null;const h=(o=t.scenario)!=null?o:"site_with_ai";return new BX.AI.CopilotChat.Core.CopilotChat({entityId:a,chatId:n,scenarioCode:h,entityType:"landing",initChatExtraOptions:{isSiteEditChat:(s=t.isSiteEditChat)!=null?s:false},chatOptions:{popupOptions:{cacheable:true,width:this.getPopupWidth(),height:this.getPopupHeight(t.showChatButtonElement),bindElement:this.getPopupPosition(Boolean(t.showChatButtonElement)),className:"landing__create-site-copilot-chat-popup",animation:{showClassName:"create-site-chat-show",closeClassName:"create-site-chat-hide",closeAnimationType:"animation"},events:{onPopupFirstShow:e=>{e.subscribe("onBeforeAdjustPosition",(()=>{e.setHeight(this.getPopupHeight(t.showChatButtonElement));e.setBindElement(this.getPopupPosition(Boolean(t.showChatButtonElement)))}))}}},header:{title:e.Loc.getMessage("LANDING_COPILOT_CHAT_TITLE"),subtitle:e.Loc.getMessage("LANDING_COPILOT_CHAT_SUBTITLE"),avatar:"/bitrix/js/landing/copilot-chat/images/avatar.png?v2"},botOptions:{messageTitle:e.Loc.getMessage("LANDING_COPILOT_CHAT_BOT_TITLE"),avatar:"/bitrix/js/landing/copilot-chat/images/avatar.png?v2"},slots:{LOADER:null,LOADER_ERROR:null},vueComponents:{},showCopilotWarningMessage:false,inputPlaceholder:e.Loc.getMessage("LANDING_COPILOT_CHAT_INPUT_PLACEHOLDER")}})}static getPopupPosition(t){return{top:this.getTopPanelHeight()+this.getPopupVerticalOffset(),left:document.body.clientWidth-this.getPopupWidth()-this.getPopupHorizontalOffset(t)}}static getPopupWidth(){return 375}static getPopupHeight(t){const i=e.Dom.getPosition(t);return(i.top||window.innerHeight)-this.getTopPanelHeight()-this.getPopupVerticalOffset()*2}static getPopupVerticalOffset(){return 15}static getPopupHorizontalOffset(t){return t?32:12}static getTopPanelHeight(){return 66}}t.CopilotChat=o})(this.BX.Landing=this.BX.Landing||{},BX,BX.AI.CopilotChat.Core); //# sourceMappingURL=copilot-chat.bundle.map.js