Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/landing/mediaservice/ |
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/landing/mediaservice/service_factory.min.js |
(function(){"use strict";BX.namespace("BX.Landing.MediaService");BX.Landing.MediaService.Factory=function(){};BX.Landing.MediaService.Factory.prototype={services:{youtube:"BX.Landing.MediaService.Youtube",rutube:"BX.Landing.MediaService.Rutube",vk:"BX.Landing.MediaService.Vk",vimeo:"BX.Landing.MediaService.Vimeo",vine:"BX.Landing.MediaService.Vine",instagram:"BX.Landing.MediaService.Instagram",facebookVideos:"BX.Landing.MediaService.FacebookVideos",facebookPosts:"BX.Landing.MediaService.FacebookPosts"},create:function(e,i){const n=this.getRelevantClass(e);if(n){return new n(e,i)}return null},getRelevantClass:function(e){let i=null;for(let n in this.services){if(this.services.hasOwnProperty(n)&&BX.getClass(this.services[n])["validate"](e)){i=BX.getClass(this.services[n]);break}}return i}}})(); //# sourceMappingURL=service_factory.map.js