403Webshell
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/rospirotorg.ru/bitrix/js/landing/ui/field/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/landing/ui/field/embed_field.min.js
(function(){"use strict";BX.namespace("BX.Landing.UI.Field");var e=BX.Landing.Utils.bind;var i=BX.Landing.Utils.fireCustomEvent;var t=BX.Landing.Utils.getQueryParams;var n=BX.Landing.Utils.remove;var a=BX.Landing.Utils.create;BX.Landing.UI.Field.Embed=function(e){e.textOnly=true;var i=e.content;e.content=i.source||i.src;e.placeholder=BX.Landing.Loc.getMessage("LANDING_EMBED_ERROR_TEXT");e.description=e.description||"<span class='landing-ui-anchor-preview'>"+BX.Landing.Loc.getMessage("LANDING_EMBED_NOT_BG_FIELD_DESCRIPTION")+"</span>";BX.Landing.UI.Field.Text.apply(this,arguments);this.hiddenInput=a("input",{props:{type:"hidden",value:i.src||this.input.innerText}});this.error=BX.create("div",{props:{className:"landing-ui-field-error"}});BX.Dom.append(this.error,this.layout);BX.Dom.style(this.description,"margin-bottom","0px");this.adjustForm()};BX.Landing.UI.Field.Embed.isBgVideo=false;BX.Landing.UI.Field.Embed.prototype={constructor:BX.Landing.UI.Field.Embed,__proto__:BX.Landing.UI.Field.Text.prototype,onInputInput:function(){var e=this.getValue();this.adjustForm(true);this.onInputHandler(e);this.onValueChangeHandler(this);if(this.input.innerText==="\n"){this.input.innerText=""}var i=new BX.Event.BaseEvent({data:{value:e},compatData:[e]});this.emit("change",i)},isEmbedUrl:function(e){return BX.Landing.Utils.Matchers.youtube.test(e)||BX.Landing.Utils.Matchers.vimeo.test(e)||BX.Landing.Utils.Matchers.rutube.test(e)||BX.Landing.Utils.Matchers.vk.test(e)||BX.Landing.Utils.Matchers.vine.test(e)||BX.Landing.Utils.Matchers.facebookVideos.test(e)},getValue:function(){return{src:this.mediaService?this.mediaService.getEmbedURL():this.input.innerText,preview:this.mediaService?this.mediaService.getEmbedPreview():"",source:this.input.innerText,ratio:this.mediaService&&this.mediaService.isVertical?BX.Landing.Node.Embed.DEFAULT_RATIO_V:BX.Landing.Node.Embed.DEFAULT_RATIO_H}},adjustForm:function(e){var i=String(this.input.innerText).trim();this.hideError();if(this.isEmbedUrl(i)){if(this.mediaService&&this.mediaService.form){n(this.mediaService.form.layout)}const r=new BX.Landing.MediaService.Factory;this.mediaService=r.create(i,!e?t(this.hiddenInput.value):{});this.mediaService.setBgVideoMode(this.constructor.isBgVideo);if(this.mediaService){var a=this.mediaService.getSettingsForm();if(a){this.layout.appendChild(a.layout)}if(!this.mediaService.isDataLoaded){this.readyToSave=false;BX.addCustomEvent(this.mediaService,"onDataLoaded",(()=>{this.readyToSave=true;this.emit("onChangeReadyToSave")}));BX.addCustomEvent(this.mediaService,"onDataLoadError",(e=>{this.readyToSave=false;this.showError(e.message)}))}this.emit("onChangeReadyToSave")}}else{if(this.mediaService){n(this.mediaService.form.layout)}if(BX.Type.isStringFilled(i)){this.showError(BX.Landing.Loc.getMessage("LANDING_EMBED_ERROR_WRONG_SOURCE_TEXT_ALL"))}}},showError:function(e){BX.Dom.append(BX.Landing.UI.Field.BaseField.createError(e),this.error);BX.Dom.style(this.description,"margin-bottom",null)},hideError:function(){BX.Dom.clean(this.error);BX.Dom.style(this.description,"margin-bottom","0px")}}})();
//# sourceMappingURL=embed_field.map.js

Youez - 2016 - github.com/yon3zu
LinuXploit