PageSourceSearch

https://www.dynamic-cctv.com/scripts/jsinclude.bdl?id=638

js dynamic-cctv.com collected 2026-10-07 19:41:38 UTC 110,013 bytes, 12 lines download raw bytes

1function PageBuilder(){}PageBuilder.$MainForm=null;PageBuilder.$LstLanguageDisplay=null;PageBuilder.$LstLoadFromLanguage=null;PageBuilder.$ChkAutoSave=null;PageBuilder.$TxtCultureCode=null;PageBuilder.Editor=null;PageBuilder.EditorDocument=null;PageBuilder.CanAutoSave=!1;PageBuilder.CanUpdatePlugins=!1;PageBuilder.isReadOnly=!1;PageBuilder.NumberOfStepsBeforeAutoSave=5;PageBuilder.AutoSaveIntervalHandle=undefined;PageBuilder.WidgetUniqueCode="";PageBuilder.KeCommerceComponentsTypePrefix="";PageBuilder.PluginsToLoadByCode=[];PageBuilder.PluginsToLoadByCodeOptions={};PageBuilder.Resources={msgWarningLeavingPageWhenFormDirty:"!Fallback Msg! Your information will be lost if you leave the page, continue?",msgConfirmMediaDelete:"!Fallback Msg! Are you sure you want to delete this media?",msgWarningCurrentContentReplace:"!Fallback Msg! The current content will be replaced by the one from the selected language, continue?",msgPaveSaveSuccessfully:"!Fallback Msg! The page has been saved successfully?",customCodeWidgetName:"!Fallback Msg! Custom Code",customCodeWidgetToolbarActionTitle:"!Fallback Msg! Open custom code",customCodeComponentInnerHtml:"!Fallback Msg!",customCodeComponentModifyInnerHtml:"!Fallback Msg!",customCodeModalTitle:"!Fallback Msg! Insert your HTML/CSS code",customCodeModalBtnSaveLabel:"!Fallback Msg! Save",customCodeBlockLabel:"!Fallback Msg! Custom Code",customCodeBlockCategory:"!Fallback Msg! Advanced"};PageBuilder.PropertyName={ProjectCss:"ProjectCss",ProjectHtml:"ProjectHtml",ProjectHtmlFormatted:"ProjectHtmlFormatted",ProjectCssFormatted:"ProjectCssFormatted",ProjectDataJson:"ProjectDataJson",PluginManager_KeCommerceComponentsUsedInCanvas:"KeCommerceComponentsUsedInCanvas",PluginManager_PluginsNewVersion:"PluginManager.PluginsNewVersion",PluginManager_PluginsNewVersion_Name:"Name",PluginManager_PluginsNewVersion_VersionString:"VersionString"};PageBuilder.MediaManager={$Modal:null,$MediaSearchForm:null,$MediaUploadForm:null,GrapesJsTarget:null};PageBuilder.PluginManager={$Modal:null,PluginsNewVersion:[]};PageBuilder.GrapesJsConfiguration={CurrentLanguage:"",CurrentLanguageFull:"",DefaultLanguage:"",ProjectData:null,PluginsToLoad:[],AvailableEcomComponents:[],ThemePaletteColors:[],CanvasConfiguration:{Styles:[],Scripts:[]}};PageBuilder.AjaxUrls={LoadProject:"",SaveProject:"",LoadMediaManager:"",GetMediaResults:"",DeleteMedia:"",UploadMedia:"",LoadEcomComponentHtml:"",LoadPluginManager:""};PageBuilder.InitEcom=function(){};PageBuilder.EJS={};PageBuilder.EJS.EnabledOnEditorLoad=".ejs-enableOnEditorLoad";PageBuilder.EJS.FocusOnPageLoad="ejs-focusOnPageLoad";PageBuilder.EJS.pageBuilderIframe="#ejs-pageBuilderIframe";PageBuilder.EJS.btnSave=".ejs-btn-save";PageBuilder.EJS.btnSaveIcon=".ejs-btn-save-icon";PageBuilder.EJS.btnSaveDropdown=".ejs-btn-save-dropdown";PageBuilder.EJS.btnAutoSaveInput=".ejs-autosave-input";PageBuilder.EJS.btnAutoSaveLabel=".ejs-autosave-label";PageBuilder.EJS.lstLanguageDisplay=".ejs-cultureCodeDisplay";PageBuilder.EJS.lstLoadFromLanguage=".ejs-cultureCodeToLoadContentFrom";PageBuilder.EJS.txtCultureCode=".ejs-cultureCode";PageBuilder.EJS.resetIgnore=".ejs-resetIgnore";PageBuilder.EJS.PageLoader=".ejs-page-builder-loader";PageBuilder.EJS.TemplateCultureCodes=".ejs-template-culturecodes";PageBuilder.EJS.TemplateLoadContentFrom=".ejs-template-loadcontentfrom";PageBuilder.EJS.TemplateAutoSave=".ejs-template-autosave";PageBuilder.EJS.PageBuilderCultureCodes=".ejs-page-builder-culturescodes";PageBuilder.EJS.PageBuilderLoadContentFrom=".ejs-page-builder-loadcontentfrom";PageBuilder.EJS.WidgetOffcanvas="#offcanvas-widgets";PageBuilder.EJS.btnPluginManagerUpdate=".ejs-btn-update-plugin";PageBuilder.EJS.PluginManagerModal="#ejs-pluginManagerModal";PageBuilder.EJS.PluginManagerSelectAll=".ejs-pluginSelectAll";PageBuilder.EJS.PluginManagerSelectPlugin=".ejs-pluginSelect";PageBuilder.EJS.PluginManagerBtnUpdatePlugins=".ejs-btnUpdatePlugins";PageBuilder.EJS.PluginManagerPluginVersionTo=".ejs-pluginVersionTo";PageBuilder.EJS.PluginManagerPLuginRowContainer=".ejs-pluginRowContainer";PageBuilder.EJS.PluginManagerAddMedia=".ejs-row-click-add-media";PageBuilder.InitCmsEditor=function(){PageBuilder.$MainForm=$("#ejs-pageBuilderForm");PageBuilder.$TxtCultureCode=$(PageBuilder.EJS.txtCultureCode);PageBuilder.InitDirtyMonitor();PageBuilder.bindModalZindexIncrement();PageBuilder.initPluginManagerUpdateButton();typeof window.parent.PageProperties!="undefined"&&(window.parent.PageProperties.registerGetValueFunction(PageBuilder.SaveProject),window.parent.PageProperties.registerOnSuccessSaveFunction(PageBuilder.OnSuccessSave),window.parent.PageProperties.registerOnErrorSaveFunction(PageBuilder.OnErrorSave))};PageBuilder.InitDirtyMonitor=function(){var n=setInterval(function(){!CMSValidationDirty.Dirty&&PageBuilder.Editor&&PageBuilder.Editor.getDirtyCount()>0&&PageBuilder.SetDirty()},500)};PageBuilder.initPluginManagerUpdateButton=function(){if($btn=$(PageBuilder.EJS.btnPluginManagerUpdate),$btn.length>0)$btn.off("click.ke.pagebuilder").on("click.ke.pagebuilder",function(){PageBuilder.LoadPluginManager()})};PageBuilder.InitAutoSave=function(n){var i=$(n),r="kPBAutoSavePref",t;if(i.length>0&&PageBuilder.CanAutoSave){t=Utils.getCookie(r);
1(t==null||t=="true")&&(Utils.setCookie(r,!0),t="true",PageBuilder.InitAutoSaveInterval(i));t=="false"&&i.prop("checked",!1);i.off("change.ke.pagebuilder").on("change.ke.pagebuilder",function(){t=="false"?(Utils.setCookie(r,!0),PageBuilder.InitAutoSaveInterval(i)):Utils.setCookie(r,!1)})}};PageBuilder.initSaveButton=function(n){$btnSave=$(n);$btnSave.off("click.ke.pagebuilder").on("click.ke.pagebuilder",function(){PageBuilder.SetLoadingOnSaveBtn($btnSave,!0);PageBuilder.SaveProject(function(n){PageBuilder.exitFullscreen();n!==undefined&&n.Result==Utils.ajaxResultType.SUCCESS?window.parent.Statusbar.showMessage(PageBuilder.Resources.msgPaveSaveSuccessfully,Utils.messageTypeResult.SUCCESS):(PageBuilder.SetLoadingOnSaveBtn($btnSave,!1),window.parent.Statusbar.showMessage(TextResources.getText("requesterror"),Utils.messageTypeResult.ERROR));PageBuilder.SetDirty();$("#cmdSave").click()},!1)})};PageBuilder.initEditorAutoSaveCallback=function(n,t){var i=$(n),r=$(t);PageBuilder.$ChkAutoSave=i;!PageBuilder.CanAutoSave&&i.is(":checked")&&(i.prop("checked",!1).prop("disabled","disabled").addClass("is-disabled").removeClass(PageBuilder.EJS.EnabledOnEditorLoad),r[0].innerText=r.data("label-disabled"));PageBuilder.InitAutoSave(i)};PageBuilder.InitAutoSaveInterval=function(n){var t=$(n),i=t.parent().find(PageBuilder.EJS.btnAutoSaveLabel);PageBuilder.AutoSaveIntervalHandle&&clearInterval(PageBuilder.AutoSaveIntervalHandle);i[0].innerText=t.is(":checked")?i.data("label-enabled"):i.data("label-disabled");PageBuilder.CanAutoSave&&t.is(":checked")&&(PageBuilder.AutoSaveIntervalHandle=setInterval(function(){if(CMSValidationDirty.Dirty&&PageBuilder.Editor&&PageBuilder.Editor.getDirtyCount()>=PageBuilder.NumberOfStepsBeforeAutoSave){clearInterval(PageBuilder.AutoSaveIntervalHandle);var n=!1,i=!1;
1PageBuilder.SetLoadingOnSaveBtn(t,!0);PageBuilder.SaveProject(function(t){n=!0;t!==undefined&&t.Result==Utils.ajaxResultType.SUCCESS&&(i=!0)},!1,!0);PageBuilder.AwaitConditionComplete(function(){return n},function(){i?PageBuilder.InitAutoSaveInterval(t):(t.prop("checked",!1),PageBuilder.SetLoadingOnSaveBtn(t,!1));PageBuilder.SetLoadingOnSaveBtn(t,!1)})}},2e3))};PageBuilder.SetLoadingOnSaveBtn=function(n,t){var i=n.parents(".button-group").find(PageBuilder.EJS.btnSave),r=n.parents(".button-group").find(PageBuilder.EJS.btnSaveIcon),u=n.parents(".button-group").find(PageBuilder.EJS.btnSaveDropdown),f="fa-spinner fa-spin",e="fa-floppy-disk";t?(r.removeClass(e).addClass(f),i.prop("disabled",!0).addClass("is-disabled gjs-disabled"),u.prop("disabled",!0).addClass("is-disabled gjs-disabled")):(i.prop("disabled",!1).removeClass("is-disabled gjs-disabled"),r.removeClass(f).addClass(e),u.prop("disabled",!1).removeClass("is-disabled gjs-disabled"))};PageBuilder.AwaitConditionComplete=function(n,t){n()?t&&t():setTimeout(PageBuilder.AwaitConditionComplete,100,n,t)};PageBuilder.InitLanguageDropdown=function(){if(PageBuilder.$TxtCultureCode.length>0)PageBuilder.$TxtCultureCode.off("change.ke.pagebuilder").on("change.ke.pagebuilder",function(){PageBuilder.InitLoadFromLanguageDropdown()});if(PageBuilder.$LstLanguageDisplay.length>0){PageBuilder.$LstLanguageDisplay.children("option[value='']").hide();PageBuilder.$LstLanguageDisplay.off("change.ke.pagebuilder").on("change.ke.pagebuilder",function(){if($(this).val().length>0){var n=PageBuilder.$TxtCultureCode.val();PageBuilder.$TxtCultureCode.val($(this).val()).trigger("change");CMSValidationDirty.Dirty?PageBuilder.CanAutoSave&&PageBuilder.$ChkAutoSave.is(":checked")?(PageBuilder.$TxtCultureCode.val(n),PageBuilder.SaveProject(function(){PageBuilder.$TxtCultureCode.val(PageBuilder.$LstLanguageDisplay.val()).trigger("change");PageBuilder.LoadProject()},!0,!0)):(PageBuilder.exitFullscreen(),Statusbar.showConfirm(PageBuilder.Resources.msgWarningLeavingPageWhenFormDirty,function(t){t?PageBuilder.LoadProject():(PageBuilder.$TxtCultureCode.val(n).trigger("change"),PageBuilder.$LstLanguageDisplay.val(n))})):PageBuilder.LoadProject()}else $(this).val(PageBuilder.$TxtCultureCode.val())})}};PageBuilder.InitLoadFromLanguageDropdown=function(){if(PageBuilder.$LstLoadFromLanguage.length>0){PageBuilder.$LstLoadFromLanguage.children("option").hide().not("option[value^='"+PageBuilder.$TxtCultureCode.val()+"']").show();PageBuilder.$LstLoadFromLanguage.val("");PageBuilder.$LstLoadFromLanguage.off("change.ke.pagebuilder").on("change.ke.pagebuilder",function(){var n=$(this).val();n&&n.length>0&&(PageBuilder.exitFullscreen(),Statusbar.showConfirm(PageBuilder.Resources.msgWarningCurrentContentReplace,function(t){if(t){var i=PageBuilder.$TxtCultureCode.val();PageBuilder.$TxtCultureCode.val(n);PageBuilder.LoadProject(!1,function(){PageBuilder.$TxtCultureCode.val(i)})}}),$(this).val(""))})}};PageBuilder.InitDefaultValues=function(n){n.find("input,textarea,select").not(PageBuilder.EJS.resetIgnore).each(function(){var n=$(this).data("defaultvalue");n===undefined&&$(this).data("defaultvalue",$(this).is(":checkbox")?$(this).is(":checked"):$(this).val())})};PageBuilder.ResetDefaultValues=function(n){n.find("input,textarea,select").not(PageBuilder.EJS.resetIgnore).each(function(){typeof $(this).data("defaultvalue")!="undefined"&&($(this).is(":checkbox")?$(this).prop("checked",$(this).data("defaultvalue")):$(this).val($(this).data("defaultvalue")))})};PageBuilder.InitPluginManager=function(){PageBuilder.PluginManager.$Modal.find(PageBuilder.EJS.PluginManagerSelectAll).off("change.ke.pagebuilder").on("change.ke.pagebuilder",function(){PageBuilder.PluginManager.$Modal.find(PageBuilder.EJS.PluginManagerSelectPlugin).prop("checked",$(this).is(":checked")).trigger("change")});PageBuilder.PluginManager.$Modal.find(PageBuilder.EJS.PluginManagerSelectPlugin).off("change.ke.pagebuilder").on("change.ke.pagebuilder",function(){PageBuilder.PluginManager.$Modal.find(PageBuilder.EJS.PluginManagerSelectAll).prop("checked",PageBuilder.PluginManager.$Modal.find(PageBuilder.EJS.PluginManagerSelectPlugin).not(":checked").length===0);PageBuilder.PluginManager.$Modal.find(PageBuilder.EJS.PluginManagerBtnUpdatePlugins).prop("disabled",PageBuilder.PluginManager.$Modal.find(PageBuilder.EJS.PluginManagerSelectPlugin+":checked").length===0)});PageBuilder.PluginManager.$Modal.find(PageBuilder.EJS.PluginManagerPluginVersionTo).off("change.ke.pagebuilder").on("change.ke.pagebuilder",function(){$(this).closest(PageBuilder.EJS.PluginManagerPLuginRowContainer).find(PageBuilder.EJS.PluginManagerSelectPlugin).prop("checked",!0).trigger("change")})};PageBuilder.InitMediaManager=function(){PageBuilder.InitListingColumnSorting(PageBuilder.Media
1Manager.$Modal,PageBuilder.GetMediaResults);PageBuilder.InitDefaultValues(PageBuilder.MediaManager.$MediaSearchForm.find(".ejs-mediaSearchHeaderContainer"));$(PageBuilder.EJS.PluginManagerAddMedia).off("click.ke.pagebuilder").on("click.ke.pagebuilder",function(n){var r,u,t,i;PageBuilder.MediaManager.GrapesJsTarget!=null&&n.target.tagName!="A"&&n.target.tagName!="BUTTON"&&n.target.tagName!="I"&&(r=$(this).data("media-src"),u=PageBuilder.MediaManager.GrapesJsTarget.get("type"),u=="ke-comp-image"?(PageBuilder.MediaManager.GrapesJsTarget.set("src",r),t=$(this).data("media-width"),PageBuilder.MediaManager.GrapesJsTarget.set("width",t),PageBuilder.MediaManager.GrapesJsTarget.view.$el[0].setAttribute("width",t),PageBuilder.MediaManager.GrapesJsTarget.attributes.attributes.width=t,i=$(this).data("media-height"),PageBuilder.MediaManager.GrapesJsTarget.set("height",i),PageBuilder.MediaManager.GrapesJsTarget.view.$el[0].setAttribute("height",i),PageBuilder.MediaManager.GrapesJsTarget.attributes.attributes.height=i):PageBuilder.MediaManager.GrapesJsTarget.setStyle({"background-image":'url("'+r+'")'}),PageBuilder.CloseMediaManager())})};PageBuilder.ResetMediaSearch=function(){return PageBuilder.ResetDefaultValues(PageBuilder.MediaManager.$MediaSearchForm.find(".ejs-mediaSearchHeaderContainer")),PageBuilder.MediaManager.$Modal.find(PageBuilder.EJS.FocusOnPageLoad).focus(),PageBuilder.MediaManager.$MediaSearchForm.submit(),!1};PageBuilder.InitListingColumnSorting=function(n,t){var i="",r="",u=n.find("thead");if(i=n.find("#SortOrder").val(),r=n.find("#SortBy").val(),i!==undefined&&r!==undefined){switch(i.toLowerCase()){case"asc":u.find("th[data-sort-code='"+r+"']").first().attr("class","sortup");break;case"desc":u.find("th[data-sort-code='"+r+"']").first().attr("class","sortdown")}u.find("th[data-sort-code]").each(function(){$(this).off("click").on("click",function(){u.find("th[data-sort-code]").not($(this)).attr("class","");r=$(this).data("sort-code");switch($(this).attr("class")){case undefined:case"":case"sortdown":i="ASC";u.find("th[data-sort-code='"+$(this).data("sort-code")+"']").first().attr("class","sortup");break;case"sortup":i="DESC";u.find("th[data-sort-code='"+$(this).data("sort-code")+"']").first().attr("class","sortdown")}n.find("#SortOrder").val(i);n.find("#SortBy").val(r);t&&t()})})}};PageBuilder.EditorLoadCallback=function(n,t){var i,r,u,f,e;PageBuilder.Editor=n;PageBuilder.EditorDocument=t;PageBuilder.Editor.Commands.add("open-assets",(n,t,i={})=>{var r=i.target;typeof r=="undefined"&&typeof n.getSelected()!="undefined"&&(r=n.getSelected());PageBuilder.LoadMediaManager(null,r)});PageBuilder.SetNoDirty();PageBuilder.Editor.Layers.view.$el.removeClass("gjs-hidden");i=PageBuilder.EditorDocument.querySelector(PageBuilder.EJS.btnAutoSaveInput);r=PageBuilder.EditorDocument.querySelector(PageBuilder.EJS.btnAutoSaveLabel);PageBuilder.initEditorAutoSaveCallback(i,r);u=PageBuilder.EditorDocument.querySelector(PageBuilder.EJS.btnSave);PageBuilder.initSaveButton(u);f=PageBuilder.EditorDocument.querySelector(PageBuilder.EJS.PageBuilderCultureCodes);PageBuilder.initCultureCode(f);e=PageBuilder.EditorDocument.querySelector(PageBuilder.EJS.PageBuilderLoadContentFrom);PageBuilder.initLoadContentFrom(e);PageBuilder.Editor.onReady(()=>{var n,t;PageBuilder.isReadOnly&&PageBuilder.Editor.runCommand("cmd-pagebuilder-isreadonly");n=PageBuilder.EditorDocument.querySelector(PageBuilder.EJS.PageLoader);PageBuilder.PageLoader(n);PageBuilder.resizeIframe();PageBuilder.Editor.runCommand("cmd-pagebuilder-iscanvasempty")&&(t=$($(PageBuilder.EJS.pageBuilderIframe)[0]).contents().find(PageBuilder.EJS.WidgetOffcanvas),setTimeout(function(){t.find(".gjs-block-category:not(.category-initial)").addClass("gjs-disabled is-disabled").attr("disabled","disabled").find(".gjs-title").trigger("click").css("pointer-events","none")},1e3))})};PageBuilder.resizeIframe=function(){var n=$(PageBuilder.EJS.pageBuilderIframe);n.length>0&&(n[0].height="700px")};PageBuilder.initPluginsToLoad=function(){var n={};PageBuilder.GrapesJsConfiguration.PluginsToLoad.forEach(t=>{if(t.Name!=""&&(PageBuilder.PluginsToLoadByCode.push(t.Name),Object.keys(t.Options).length>0)){var i=t.Options;t.Name=="grapesjs-custom-code"&&(jsonOptions=JSON.stringify(i),jsonOptions=jsonOptions.replace("${PageBuilder.Resources.customCodeBlockLabel}",window.parent.PageBuilder.Resources.customCodeBlockLabel),jsonOptions=jsonOptions.replace("${PageBuilder.Resources.customCodeBlockCategory}",window.parent.PageBuilder.Resources.customCodeBlockCategory),jsonOptions=jsonOptions.replace("${PageBuilder.Resources.customCodeWidget
1Name}",window.parent.PageBuilder.Resources.customCodeWidgetName),jsonOptions=jsonOptions.replace("${PageBuilder.Resources.customCodeComponentInnerHtml}",window.parent.PageBuilder.Resources.customCodeComponentInnerHtml),jsonOptions=jsonOptions.replace("${PageBuilder.Resources.customCodeComponentModifyInnerHtml}",window.parent.PageBuilder.Resources.customCodeComponentModifyInnerHtml),jsonOptions=jsonOptions.replace("${PageBuilder.Resources.customCodeWidgetToolbarActionTitle}",window.parent.PageBuilder.Resources.customCodeWidgetToolbarActionTitle),jsonOptions=jsonOptions.replace("${PageBuilder.Resources.customCodeModalTitle}",window.parent.PageBuilder.Resources.customCodeModalTitle),jsonOptions=jsonOptions.replace("${PageBuilder.Resources.customCodeModalBtnSaveLabel}",window.parent.PageBuilder.Resources.customCodeModalBtnSaveLabel),i=JSON.parse(jsonOptions));n[t.Name]=i}});Object.keys(n).length>0&&(PageBuilder.PluginsToLoadByCodeOptions=n)};PageBuilder.initCultureCode=function(n){if($templateCultureCodes=$(PageBuilder.EJS.TemplateCultureCodes),$containerCultureCodes=$(n),$templateCultureCodes.length>0&&$containerCultureCodes.length>0){var t=$templateCultureCodes[0],i=t.content.cloneNode(!0);$containerCultureCodes.append(i);$containerCultureCodes.find(PageBuilder.EJS.EnabledOnEditorLoad).prop("disabled",!1);PageBuilder.$LstLanguageDisplay=$containerCultureCodes.find(PageBuilder.EJS.lstLanguageDisplay);PageBuilder.InitLanguageDropdown()}};PageBuilder.initLoadContentFrom=function(n){if($templateLoadContentFrom=$(PageBuilder.EJS.TemplateLoadContentFrom),$containerLoadContentFrom=$(n),$templateLoadContentFrom.length>0&&$containerLoadContentFrom.length>0){var t=$templateLoadContentFrom[0],i=t.content.cloneNode(!0);$containerLoadContentFrom.append(i);$containerLoadContentFrom.find(PageBuilder.EJS.EnabledOnEditorLoad).prop("disabled",!1);PageBuilder.$LstLoadFromLanguage=$containerLoadContentFrom.find(PageBuilder.EJS.lstLoadFromLanguage);PageBuilder.InitLoadFromLanguageDropdown()}};PageBuilder.exitFullscreen=function(){var n=parent.document.querySelector(PageBuilder.EJS.pageBuilderIframe);n!=null&&parent.document.fullscreenElement&&parent.document.exitFullscreen()};PageBuilder.PageLoader=function(n){var t=$(n);t.removeClass("is-loading").addClass("has-loaded")};PageBuilder.SetDirty=function(){typeof CMSValidationDirty!="undefined"&&typeof PageProperties!="undefined"&&(CMSValidationDirty.SetDirty(),PageProperties.EnableButton())};PageBuilder.SetNoDirty=function(){PageBuilder.Editor&&PageBuilder.Editor.clearDirtyCount();typeof CMSValidationDirty!="undefined"&&typeof PageProperties!="undefined"&&(PageProperties.DisableButton(),CMSValidationDirty.SetNoDirty())};PageBuilder.OnSuccessSave=function(){};PageBuilder.OnErrorSave=function(){};PageBuilder.CloseMediaManager=function(){PageBuilder.MediaManager.$Modal&&PageBuilder.MediaManager.$Modal.modal("hide")};PageBuilder.ClosePluginManager=function(){PageBuilder.PluginManager.$Modal&&PageBuilder.PluginManager.$Modal.modal("hide")};PageBuilder.GetKeCommerceComponentsUsedInCanvas=function(){var n=[];const t=PageBuilder.Editor.DomComponents.getWrapper(),i=t.find("[id]").map(n=>n.getId());return Object.keys(PageBuilder.Editor.DomComponents.componentsById).forEach(n=>{i.includes(n)||delete PageBuilder.Editor.DomComponents.componentsById[n]}),$.each(PageBuilder.Editor.DomComponents.componentsById,function(t,i){var r=i.attributes.type.toLowerCase();r.startsWith(PageBuilder.KeCommerceComponentsTypePrefix)&&n.indexOf(r)===-1&&n.push(r)}),n};PageBuilder.UpdatePlugins=function(){if(PageBuilder.PluginManager.PluginsNewVersion=[],PageBuilder.CanUpdatePlugins){var n=[],t=Statusbar.showLoading(null,!0,!0);PageBuilder.PluginManager.$Modal.find(".ejs-pluginSelect:checked").closest(".ejs-pluginRowContainer").each(function(){n.push({}[PageBuilder.PropertyName.PluginManager_PluginsNewVersion_Name]);$(this).data("name");[PageBuilder.PropertyName.PluginManager_PluginsNewVersion_VersionString];$(this).find(".ejs-pluginVersionTo").val()})}n.length>0?(PageBuilder.PluginManager.PluginsNewVersion=n,PageBuilder.SetDirty(),PageBuilder.ClosePluginManager(),t.close(),$("#cmdSave").click()):t.close()};PageBuilder.GetProjectCss=function(){return PageBuilder.Editor.getCss()};PageBuilder.GetProjectHtml=function(){return PageBuilder.Editor.getHtml()};PageBuilder.GetProjectHtmlFormatted=function(){return $("<div>").html(PageBuilder.GetProjectHtml()).html()};PageBuilder.GetProjectCssFormatted=function(){return $("<style>").removeAttr("lang").removeAttr("id").removeAttr("type").html(PageBuilder.GetProjectCss())[0].outerHTML};PageBuilder.GetProjectDataJson=function(){return JSON.stringify(PageBuilder.Editor.getProjectData())};PageBuilder.GetKeCommerceComponentsUsedInCanvasJson=function(){return JSON.stringify(PageBuilder.GetKeCommerceComponentsUsedInCanvas())};PageBuilder.DeleteMedia=function(n,t){var r=PageBuilder.Editor.getSelected(),i="";return Statusbar.showConfirm(PageBuilder.Resources.msgConfirmMediaDelete,function(u){if(u){var f=Statusbar.showLoading(null,!0,!0);$.ajax({type:"POST",url:PageBuilder.AjaxUrls.DeleteMedia,data:{idMedia:n},error:function(n){Utils.handleAjaxUnauthorize(n)||Statusbar.showMessage(TextResources.getText("requesterror"),Utils.messageTypeResult.ERROR)},success:function(n){function u(n,t=[]){return t.push(n),n.components().each(n=>u(n,t)),t}Utils.handleSuccessAjaxCallResult(n)&&PageBuilder.GetMediaResults(1,!1);setTimeout(function(){f.close();Statusbar.showMessage(PageBuilder.Resources.msgMediaDeleteSuccess,Utils.messageTypeResult.SUCCESS)},500);var e=u(PageBuilder.Editor.DomComponents.getWrapper());e.forEach(n=>
1{n.get("type")=="ke-comp-image"&&(i=PageBuilder.Editor.getSelected().getAttributes().src,i.includes(t)&&r.addAttributes({src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3R5bGU9ImZpbGw6IHJnYmEoMCwwLDAsMC4xNSk7IHRyYW5zZm9ybTogc2NhbGUoMC43NSkiPgogICAgICAgIDxwYXRoIGQ9Ik0yLjI4IDNMMSA0LjI3bDIgMlYxOWMwIDEuMS45IDIgMiAyaDEyLjczbDIgMkwyMSAyMS43MiAyLjI4IDNtMi41NSAwTDIxIDE5LjE3VjVhMiAyIDAgMCAwLTItMkg0LjgzTTguNSAxMy41bDIuNSAzIDEtMS4yNUwxNC43MyAxOEg1bDMuNS00LjV6Ij48L3BhdGg+CiAgICAgIDwvc3ZnPg=="}))})}})}}),!1};PageBuilder.GetMediaResults=function(n,t){var i;return t!=!1&&(i=Statusbar.showLoading(null,!0,!0)),$("#CurrentPage").val(n==undefined?1:n),$.ajax({type:"POST",url:PageBuilder.AjaxUrls.GetMediaResults,data:PageBuilder.MediaManager.$MediaSearchForm.serialize(),error:function(n){Utils.handleAjaxUnauthorize(n)||Statusbar.showMessage(TextResources.getText("requesterror"),Utils.messageTypeResult.ERROR)},success:function(n){Utils.handleSuccessAjaxCallResult(n)&&n.Result==Utils.ajaxResultType.SUCCESS&&(PageBuilder.MediaManager.$Modal.find("#ejs-mediaResults").html(n.Value),PageBuilder.InitMediaManager());n.StatusMessages&&n.StatusMessages.length!=0||i==null||i.close()}}),!1};PageBuilder.LoadMediaManager=function(n,t){PageBuilder.exitFullscreen();var i=Statusbar.showLoading(null,!0,!0);return $.ajax({type:"POST",url:PageBuilder.AjaxUrls.LoadMediaManager,data:{selectedTab:n,widgetUniqueCode:PageBuilder.WidgetUniqueCode},error:function(n){Utils.handleAjaxUnauthorize(n)||Statusbar.showMessage(TextResources.getText("requesterror"),Utils.messageTypeResult.ERROR)},success:function(n){if(Utils.handleSuccessAjaxCallResult(n)&&n.Result==Utils.ajaxResultType.SUCCESS&&n.Result==Utils.ajaxResultType.SUCCESS){$("#ejs-mediaManagerModal").length==0?$("#EditorMain").append(n.Value):$("#ejs-mediaManagerModal").replaceWith(n.Value);PageBuilder.MediaManager.$Modal=$("#ejs-mediaManagerModal");PageBuilder.MediaManager.$MediaSearchForm=PageBuilder.MediaManager.$Modal.find("#ejs-mediaSearchForm");PageBuilder.MediaManager.$MediaUploadForm=PageBuilder.MediaManager.$Modal.find("#ejs-mediaUploadDropzone");PageBuilder.MediaManager.GrapesJsTarget=t;PageBuilder.MediaManager.$Modal.off("show").on("show",function(){PageBuilder.InitMediaManager()});PageBuilder.MediaManager.$Modal.off("shown").on("shown",function(){PageBuilder.MediaManager.$Modal.find(PageBuilder.EJS.FocusOnPageLoad).focus();PageBuilder.MediaManager.$Modal.find("div.modal-body").scrollTop(0)});PageBuilder.MediaManager.$Modal.off("hidden").on("hidden",function(){PageBuilder.MediaManager.GrapesJsTarget=null});PageBuilder.MediaManager.$Modal.modal()}(!n.StatusMessages||n.StatusMessages.length==0)&&i&&i.close()}}),!1};PageBuilder.SaveProject=function(n,t,i){var u,f=!1,r;t&&(u=Statusbar.showLoading(null,!0,!0));i==undefined&&(i=!1);$(".ejs-is-auto-save-call").val(i);r=PageBuilder.$MainForm.serializeArray();r.push({name:PageBuilder.PropertyName.ProjectCss,value:PageBuilder.GetProjectCss()});r.push({name:PageBuilder.PropertyName.ProjectHtml,value:PageBuilder.GetProjectHtml()});r.push({name:PageBuilder.PropertyName.ProjectHtmlFormatted,value:PageBuilder.GetProjectHtmlFormatted()});r.push({name:PageBuilder.PropertyName.ProjectCssFormatted,value:PageBuilder.GetProjectCssFormatted()});r.push({name:PageBuilder.PropertyName.ProjectDataJson,value:PageBuilder.GetProjectDataJson()});$.each(PageBuilder.GetKeCommerceComponentsUsedInCanvas(),function(n,t){r.pu
1sh({name:PageBuilder.PropertyName.PluginManager_KeCommerceComponentsUsedInCanvas+"["+n+"]",value:t})});PageBuilder.CanUpdatePlugins&&$.each(PageBuilder.PluginManager.PluginsNewVersion,function(n,t){$.each(t,function(t,i){r.push({name:PageBuilder.PropertyName.PluginManager_PluginsNewVersion+"["+n+"]."+t,value:i})})});$.ajax({type:"POST",url:PageBuilder.AjaxUrls.SaveProject,data:r,success:function(n){f=!0;Utils.handleSuccessAjaxCallResult(n)&&n.Result==Utils.ajaxResultType.SUCCESS&&PageBuilder.SetNoDirty();(!n.StatusMessages||n.StatusMessages.length==0)&&u&&u.close()},error:function(n){Utils.handleAjaxUnauthorize(n)||window.parent.Statusbar.showMessage(TextResources.getText("requesterror"),Utils.messageTypeResult.ERROR)},complete:function(t){PageBuilder.PluginManager.PluginsNewVersion=[];n&&n(f?t.responseJSON:undefined)}})};PageBuilder.LoadProject=function(n,t){var i=Statusbar.showLoading(null,!0,!0);n==undefined&&(n=!0);$.ajax({type:"POST",url:PageBuilder.AjaxUrls.LoadProject,data:PageBuilder.$MainForm.serialize(),success:function(t){if(Utils.handleSuccessAjaxCallResult(t)&&t.Result==Utils.ajaxResultType.SUCCESS){var r=PageBuilder.Editor.getDirtyCount();t.Value&&t.Value.trim().length>0?PageBuilder.Editor.loadProjectData(JSON.parse(t.Value)):(PageBuilder.Editor.DomComponents.clear(),PageBuilder.Editor.CssComposer.clear(),PageBuilder.Editor.UndoManager.clear());n&&PageBuilder.AwaitConditionComplete(function(){return PageBuilder.Editor.getDirtyCount()>r},PageBuilder.SetNoDirty)}(!t.StatusMessages||t.StatusMessages.length==0)&&i&&i.close()},error:function(n){Utils.handleAjaxUnauthorize(n)||window.parent.Statusbar.showMessage(TextResources.getText("requesterror"),Utils.messageTypeResult.ERROR)},complete:function(n){t&&t(n.responseJSON)}})};PageBuilder.LoadEcomComponentHtml=function(n,t){var i=Statusbar.showLoading(null,!0,!0);$.ajax({type:"POST",contentType:"application/json",dataType:"json",url:PageBuilder.AjaxUrls.LoadEcomComponentHtml,data:JSON.stringify(n),success:function(n){Utils.handleSuccessAjaxCallResult(n)&&n.Result==Utils.ajaxResultType.SUCCESS&&t&&t(n.Value);(!n.StatusMessages||n.StatusMessages.length==0)&&i&&i.close()},error:function(n){Utils.handleAjaxUnauthorize(n)||window.parent.Statusbar.showMessage(TextResources.getText("requesterror"),Utils.messageTypeResult.ERROR)}})};PageBuilder.LoadPluginManager=function(){if(PageBuilder.CanUpdatePlugins){var n=Statusbar.showLoading(null,!0,!0);$.ajax({type:"POST",url:PageBuilder.AjaxUrls.LoadPluginManager,data:{widgetUniqueCode:PageBuilder.WidgetUniqueCode},error:function(n){Utils.handleAjaxUnauthorize(n)||Statusbar.showMessage(TextResources.getText("requesterror"),Utils.messageTypeResult.ERROR)},success:function(t){if(Utils.handleSuccessAjaxCallResult(t)&&t.Result==Utils.ajaxResultType.SUCCESS&&t.Result==Utils.ajaxResultType.SUCCESS){$(PageBuilder.EJS.PluginManagerModal).length==0?$("body").append(t.Value):$(PageBuilder.EJS.PluginManagerModal).replaceWith(t.Value);PageBuilder.PluginManager.$Modal=$(PageBuilder.EJS.PluginManagerModal);PageBuilder.PluginManager.$Modal.off("show").on("show",function(){PageBuilder.InitPluginManager()});PageBuilder.PluginManager.$Modal.off("shown").on("shown",function(){PageBuilder.PluginManager.$Modal.find(PageBuilder.EJS.FocusOnPageLoad).focus();PageBuilder.PluginManager.$Modal.find("div.modal-body").scrollTop(0)});PageBuilder.PluginManager.$Modal.modal()}(!t.StatusMessages||t.StatusMessages.length==0)&&n&&n.close()}})}return!1};PageBuilder.bindModalZindexIncrement=function(){var n=2e3,t=10;$(document).on("shown",".modal",function(){var i=$(this),u=i.attr("id"),f=$(".modal:visible, .offcanvas:visible").length,r=n+t*f;i.css("z-index",r);setTimeout(function(){$(".modal-backdrop").not(".modal-stack").css("z-index",r-1).addClass("modal-stack").attr("id",u+"_backdrop")},0)})};
2
3!function (h, i, s, a) { function l(t, e) { this.settings = null, this.options = h.extend({}, l.Defaults, e), this.$element = h(t), this._handlers = {}, this._plugins = {}, this._supress = {}, this._current = null, this._speed = null, this._coordinates = [], this._breakpoint = null, this._width = null, this._items = [], this._clones = [], this._mergers = [], this._widths = [], this._invalidated = {}, this._pipe = [], this._drag = { time: null, target: null, pointer: null, stage: { start: null, current: null }, direction: null }, this._states = { current: {}, tags: { initializing: ["busy"], animating: ["busy"], dragging: ["interacting"] } }, h.each(["onResize", "onThrottledResize"], h.proxy(function (t, e) { this._handlers[e] = h.proxy(this[e], this) }, this)), h.each(l.Plugins, h.proxy(function (t, e) { this._plugins[t.charAt(0).toLowerCase() + t.slice(1)] = new e(this) }, this)), h.each(l.Workers, h.proxy(function (t, e) { this._pipe.push({ filter: e.filter, run: h.proxy(e.run, this) }) }, this)), this.setup(), this.initialize() } l.Defaults = { items: 3, loop: !1, center: !1, rewind: !1, checkVisibility: !0, mouseDrag: !0, touchDrag: !0, pullDrag: !0, freeDrag: !1, margin: 0, stagePadding: 0, merge: !1, mergeFit: !0, autoWidth: !1, startPosition: 0, rtl: !1, smartSpeed: 250, fluidSpeed: !1, dragEndSpeed: !1, responsive: {}, responsiveRefreshRate: 200, responsiveBaseElement: i, fallbackEasing: "swing", slideTransition: "", info: !1, nestedItemSelector: !1, itemElement: "div", stageElement: "div", refreshClass: "slider--refresh owl-refresh", loadedClass: "slider--loaded owl-loaded", loadingClass: "slider--loading owl-loading", rtlClass: "slider--rtl owl-rtl", responsiveClass: "slider--responsive owl-responsive", dragClass: "slider--drag owl-drag", itemClass: "slider__item owl-item", stageClass: "slider__stage owl-stage", stageOuterClass: "slider__stage-outer owl-stage-outer", grabClass: "slider__grab owl-grab" }, l.Width = { Default: "default", Inner: "inner", Outer: "outer" }, l.Type = { Event: "event", State: "state" }, l.Plugins = {}, l.Workers = [{ filter: ["width", "settings"], run: function () { this._width = this.$element.width() } }, { filter: ["width", "items", "settings"], run: function (t) { t.current = this._items && this._items[this.relative(this._current)] } }, { filter: ["items", "settings"], run: function () { this.$stage.children(".cloned").remove() } }, { filter: ["width", "items", "settings"], run: function (t) { var e = this.settings.margin || "", i = !this.settings.autoWidth, s = this.settings.rtl, e = { width: "auto", "margin-left": s ? e : "", "margin-right": s ? "" : e }; i || this.$stage.children().css(e), t.css = e } }, { filter: ["width", "items", "settings"], run: function (t) { var e = (this.width() / this.settings.items).toFixed(3) - this.settings.margin, i = null, s = this._items.length, n = !this.settings.autoWidth, o = []; for (t.items = { merge: !1, width: e }; s--;)i = this._mergers[s], i = this.settings.mergeFit && Math.min(i, this.settings.items) || i, t.items.merge = 1 < i || t.items.merge, o[s] = n ? e * i : this._items[s].width(); this._widths = o } }, { filter: ["items", "settings"], run: function () { var t = [], e = this._items, i = this.settings, s = Math.max(2 * i.items, 4), n = 2 * Math.ceil(e.length / 2), o = i.loop && e.length ? i.rewind ? s : Math.max(s, n) : 0, r = "", a = ""; for (o /= 2; 0 < o;)t.push(this.normalize(t.length / 2, !0)), r += e[t[t.length - 1]][0].outerHTML, t.push(this.normalize(e.length - 1 - (t.length - 1) / 2, !0)), a = e[t[t.length - 1]][0].outerHTML + a, --o; this._clones = t, h(r).addClass("slider__item--cloned cloned").appendTo(this.$stage), h(a).addClass("slider__item--cloned cloned").prependTo(this.$stage) } }, { filter: ["width", "items", "settings"], run: function () { for (var t, e, i = this.settings.rtl ? 1 : -1, s = this._clones.length + this._items.length, n = -1, o = []; ++n < s;)t = o[n - 1] || 0, e = this._widths[this.relative(n)] + this.settings.margin, o.push(t + e * i); this._coordinates = o } }, { filter: ["width", "items", "settings"], run: function () { var t = this.settings.stagePadding, e = this._coordinates, t = { width: Math.ceil(Math.abs(e[e.length - 1])) + 2 * t, "padding-left": t || "", "padding-right": t || "" }; this.$stage.css(t) } }, { filter: ["width", "items", "settings"], run: function (t) { var e = this._coordinates.length, i = !this.settings.autoWidth, s = this.$stage.children(); if (i && t.items.merge) for (; e--;)t.css.width = this._widths[this.relative(e)], s.eq(e).css(t.css); else i && (t.css.width = t.items.width, s.css(t.css)) } }, { filter: ["items"], run: function () { this._coordinates.length < 1 && this.$stage.removeAttr("style") } }, { filter: ["width", "items", "settings"], run: function (t) { t.current = t.current ? this.$stage.children().index(t.current) : 0, t.current = Math.max(this.minimum(), Math.min(this.maximum(), t.current)), this.reset(t.current) } }, { filter: ["position"], run: function () { this.animate(this.coordinates(this._current)) } }, { filter: ["width", "position", "items", "settings"], run: function () { for (var t, e, i = this.settings.rtl ? 1 : -1, s = 2 * this.settings.stagePadding, n = this.coordinates(this.current()) + s, o = n + this.width() * i, r = [], a = 0, h = this._coordinates.length; a < h; a++)t = this._coordinates[a - 1] || 0, e = Math.abs(this._coordinates[a]) + s * i, (this.op(t, "<=", n) && this.op(t, ">", o) || this.op(e, "<", n) && this.op(e, ">", o)) && r.push(a); this.$stage.children(".active").removeClass("active").removeClass("is-active"), this.$stage.children(":eq(" + r.join("), :eq(") + ")").addClass("active").addClass("is-active"), this.$stage.children(".center").removeClass("center"), this.settings.center && this.$stage.children().eq(this.current()).addClass("center") } }], l.prototype.initializeStage = function () { this.$stage = this.$element.find("." + this.settings.stageClass), this.$stage.length || (this.$element.addClass(this.options.loadingClass), this.$stage = h("<" + this.settings.stageElement + ">", { class: this.settings.stageClass }).wrap(h("<div/>", { class: this.settings.stageOuterClass })), this.$element.append(this.$stage.parent())) }, l.prototype.initializeItems = function () { var t = this.$element.find(".owl-item"); if (t.length) return this._items = t.get().map(function (t) { return h(t) }), this._mergers = this._items.map(function () { return 1 }), void this.refresh(); this.replace(this.$element.children().not(this.$stage.parent())), this.isVisible() ? this.refresh() : this.invalidate("width"), this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass) }, l.prototype.initialize = function () { var t, e; this.enter("initializing"), this.trigger("initialize"), this.$element.toggleClass(this.settings.rtlClass, this.settings.rtl), this.settings.autoWidth && !this.is("pre-loading") && (t = this.$element.find("img"), e = this.settings.nestedItemSelector ? "." + this.settings.nestedItemSelector : a, e = this.$element.children(e).width(), t.length && e <= 0 && this.preloadAutoWidthImages(t)), this.initializeStage(), this.initializeItems(), this.registerEventHandlers(), this.leave("initializing"), this.trigger("initialized") }, l.prototype.isVisible = function () { return !this.settings.checkVisibility || this.$element.is(":visible") }, l.prototype.setup = function () { var e = this.viewport(), t = this.options.responsive, i = -1, s = null; t ? (h.each(t, function (t) { t <= e && i < t && (i = Number(t)) }), "function" == typeof (s = h.extend({}, this.options, t[i])).stagePadding && (s.stagePadding = s.stagePadding()), delete s.responsive, s.responsiveClass && this.$element.attr("class", this.$element.attr("class").replace(new RegExp("(" + this.options.responsiveClass + "-)\\S+\\s", "g"), "$1" + i))) : s = h.extend({}, this.options), this.trigger("change", { property: { name: "settings", value: s } }), this._breakpoint = i, this.settings = s, this.invalidate("settings"), this.trigger("changed", { property: { name: "settings", value: this.settings } }) }, l.prototype.optionsLogic = function () { this.settings.autoWidth && (this.settings.stagePadding = !1, this.settings.merge = !1) }, l.prototype.prepare = function (t) { var e = this.trigger("prepare", { c
vendor: 24,572 bytes, line 3
3ontent: t }); return e.data || (e.data = h("<" + this.settings.itemElement + "/>").addClass(this.options.itemClass).append(t)), this.trigger("prepared", { content: e.data }), e.data }, l.prototype.update = function () { for (var t = 0, e = this._pipe.length, i = h.proxy(function (t) { return this[t] }, this._invalidated), s = {}; t < e;)(this._invalidated.all || 0 < h.grep(this._pipe[t].filter, i).length) && this._pipe[t].run(s), t++; this._invalidated = {}, this.is("valid") || this.enter("valid") }, l.prototype.width = function (t) { switch (t = t || l.Width.Default) { case l.Width.Inner: case l.Width.Outer: return this._width; default: return this._width - 2 * this.settings.stagePadding + this.settings.margin } }, l.prototype.refresh = function () { this.enter("refreshing"), this.trigger("refresh"), this.setup(), this.optionsLogic(), this.$element.addClass(this.options.refreshClass), this.update(), this.$element.removeClass(this.options.refreshClass), this.leave("refreshing"), this.trigger("refreshed") }, l.prototype.onThrottledResize = function () { i.clearTimeout(this.resizeTimer), this.resizeTimer = i.setTimeout(this._handlers.onResize, this.settings.responsiveRefreshRate) }, l.prototype.onResize = function () { return !!this._items.length && (this._width !== this.$element.width() && (!!this.isVisible() && (this.enter("resizing"), this.trigger("resize").isDefaultPrevented() ? (this.leave("resizing"), !1) : (this.invalidate("width"), this.refresh(), this.leave("resizing"), void this.trigger("resized"))))) }, l.prototype.registerEventHandlers = function () { h.support.transition && this.$stage.on(h.support.transition.end + ".owl.core", h.proxy(this.onTransitionEnd, this)), !1 !== this.settings.responsive && this.on(i, "resize", this._handlers.onThrottledResize), this.settings.mouseDrag && (this.$element.addClass(this.options.dragClass), this.$stage.on("mousedown.owl.core", h.proxy(this.onDragStart, this)), this.$stage.on("dragstart.owl.core selectstart.owl.core", function () { return !1 })), this.settings.touchDrag && (this.$stage.on("touchstart.owl.core", h.proxy(this.onDragStart, this)), this.$stage.on("touchcancel.owl.core", h.proxy(this.onDragEnd, this))) }, l.prototype.onDragStart = function (t) { var e = null; 3 !== t.which && (e = h.support.transform ? { x: (e = this.$stage.css("transform").replace(/.*\(|\)| /g, "").split(","))[16 === e.length ? 12 : 4], y: e[16 === e.length ? 13 : 5] } : (e = this.$stage.position(), { x: this.settings.rtl ? e.left + this.$stage.width() - this.width() + this.settings.margin : e.left, y: e.top }), this.is("animating") && (h.support.transform ? this.animate(e.x) : this.$stage.stop(), this.invalidate("position")), this.$element.toggleClass(this.options.grabClass, "mousedown" === t.type), this.speed(0), this._drag.time = (new Date).getTime(), this._drag.target = h(t.target), this._drag.stage.start = e, this._drag.stage.current = e, this._drag.pointer = this.pointer(t), h(s).on("mouseup.owl.core touchend.owl.core", h.proxy(this.onDragEnd, this)), h(s).one("mousemove.owl.core touchmove.owl.core", h.proxy(function (t) { var e = this.difference(this._drag.pointer, this.pointer(t)); h(s).on("mousemove.owl.core touchmove.owl.core", h.proxy(this.onDragMove, this)), Math.abs(e.x) < Math.abs(e.y) && this.is("valid") || (t.preventDefault(), this.enter("dragging"), this.trigger("drag")) }, this))) }, l.prototype.onDragMove = function (t) { var e, i = null, s = null, n = this.difference(this._drag.pointer, this.pointer(t)), o = this.difference(this._drag.stage.start, n); this.is("dragging") && (t.preventDefault(), this.settings.loop ? (i = this.coordinates(this.minimum()), s = this.coordinates(this.maximum() + 1) - i, o.x = ((o.x - i) % s + s) % s + i) : (i = this.settings.rtl ? this.coordinates(this.maximum()) : this.coordinates(this.minimum()), s = this.settings.rtl ? this.coordinates(this.minimum()) : this.coordinates(this.maximum()), e = this.settings.pullDrag ? -1 * n.x / 5 : 0, o.x = Math.max(Math.min(o.x, i + e), s + e)), this._drag.stage.current = o, this.animate(o.x)) }, l.prototype.onDragEnd = function (t) { var e = this.difference(this._drag.pointer, this.pointer(t)), i = this._drag.stage.current, t = 0 < e.x ^ this.settings.rtl ? "left" : "right"; h(s).off(".owl.core"), this.$element.removeClass(this.options.grabClass), (0 !== e.x && this.is("dragging") || !this.is("valid")) && (this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed), this.current(this.closest(i.x, 0 !== e.x ? t : this._drag.direction)), this.invalidate("position"), this.update(), this._drag.direction = t, (3 < Math.abs(e.x) || 300 < (new Date).getTime() - this._drag.time) && this._drag.target.one("click.owl.core", function () { return !1 })), this.is("dragging") && (this.leave("dragging"), this.trigger("dragged")) }, l.prototype.closest = function (i, s) { var n = -1, o = this.width(), r = this.coordinates(); return this.settings.freeDrag || h.each(r, h.proxy(function (t, e) { return "left" === s && e - 30 < i && i < e + 30 ? n = t : "right" === s && e - o - 30 < i && i < e - o + 30 ? n = t + 1 : this.op(i, "<", e) && this.op(i, ">", r[t + 1] !== a ? r[t + 1] : e - o) && (n = "left" === s ? t + 1 : t), -1 === n }, this)), this.settings.loop || (this.op(i, ">", r[this.minimum()]) ? n = i = this.minimum() : this.op(i, "<", r[this.maximum()]) && (n = i = this.maximum())), n }, l.prototype.animate = function (t) { var e = 0 < this.speed(); this.is("animating") && this.onTransitionEnd(), e && (this.enter("animating"), this.trigger("translate")), h.support.transform3d && h.support.transition ? this.$stage.css({ transform: "translate3d(" + t + "px,0px,0px)", transition: this.speed() / 1e3 + "s" + (this.settings.slideTransition ? " " + this.settings.slideTransition : "") }) : e ? this.$stage.animate({ left: t + "px" }, this.speed(), this.settings.fallbackEasing, h.proxy(this.onTransitionEnd, this)) : this.$stage.css({ left: t + "px" }) }, l.prototype.is = function (t) { return this._states.current[t] && 0 < this._states.current[t] }, l.prototype.current = function (t) { return t === a ? this._current : 0 === this._items.length ? a : (t = this.normalize(t), this._current !== t && ((e = this.trigger("change", { property: { name: "position", value: t } })).data !== a && (t = this.normalize(e.data)), this._current = t, this.invalidate("position"), this.trigger("changed", { property: { name: "position", value: this._current } })), this._current); var e }, l.prototype.invalidate = function (t) { return "string" == typeof t && (this._invalidated[t] = !0, this.is("valid") && this.leave("valid")), h.map(this._invalidated, function (t, e) { return e }) }, l.prototype.reset = function (t) { (t = this.normalize(t)) !== a && (this._speed = 0, this._current = t, this.suppress(["translate", "translated"]), this.animate(this.coordinates(t)), this.release(["translate", "translated"])) }, l.prototype.normalize = function (t, e) { var i = this._items.length, e = e ? 0 : this._clones.length; return !this.isNumeric(t) || i < 1 ? t = a : (t < 0 || i + e <= t) && (t = ((t - e / 2) % i + i) % i + e / 2), t }, l.prototype.relative = function (t) { return t -= this._clones.length / 2, this.normalize(t, !0) }, l.prototype.maximum = function (t) { var e, i, s, n = this.settings, o = this._coordinates.length; if (n.loop) o = this._clones.length / 2 + this._items.length - 1; else if (n.autoWidth || n.merge) { if (e = this._items.length) for (i = this._items[--e].width(), s = this.$element.width(); e-- && !(s < (i += this._items[e].width() + this.settings.margin));); o = e + 1 } else o = n.center ? this._items.length - 1 : this._items.length - n.items; return t && (o -= this._clones.length / 2), Math.max(o, 0) }, l.prototype.minimum = function (t) { return t ? 0 : this._clones.length / 2 }, l.prototype.items = function (t) { return t === a ? this._items.slice() : (t = this.normalize(t, !0), this._items[t]) }, l.prototype.mergers = function (t) { return t === a ? this._mergers.slice() : (t = this.normalize(t, !0), this._mergers[t]) }, l.prototype.clones = function (i) { function s(t) { return t % 2 == 0 ? n + t / 2 : e - (t + 1) / 2 } var e = this._clones.length / 2, n = e + this._items.length; return i === a ? h.map(this._clones, function (t, e) { return s(e) }) : h.map(this._clones, function (t, e) { return t === i ? s(e) : null }) }, l.prototype.speed = function (t) { return t !== a && (this._speed = t), this._speed }, l.prototype.coordinates = function (t) { var e, i = 1, s = t - 1; return t === a ? h.map(this._coordinates, h.proxy(function (t, e) { return this.coordinates(e) }, this)) : (this.settings.center ? (this.settings.rtl && (i = -1, s = t + 1), e = this._coordinates[t], e += (this.width() - e + (this._coordinates[s] || 0)) / 2 * i) : e = this._coordinates[s] || 0, e = Math.ceil(e)) }, l.prototype.duration = function (t, e, i) { return 0 === i ? 0 : Math.min(Math.max(Math.abs(e - t), 1), 6) * Math.abs(i || this.settings.smartSpeed) }, l.prototype.to = function (t, e) { var i, s = this.current(), n = t - this.relative(s), o = (0 < n) - (n < 0), r = this._items.length, a = this.minimum(), h = this.maximum(); this.settings.loop ? (!this.settings.rewind && Math.abs(n) > r / 2 && (n += -1 * o * r), (i = (((t = s + n) - a) % r + r) % r + a) !== t && i - n <= h && 0 < i - n && (s = i - n, t = i, this.reset(s))) : t = this.settings.rewind ? (t % (h += 1) + h) % h : Math.max(a, Math.min(h, t)), this.speed(this.duration(s, t, e)), this.current(t), this.isVisible() && this.update() }, l.prototype.next = function (t) { t = t || !1, this.to(this.relative(this.current()) + 1, t) }, l.prototype.prev = function (t) { t = t || !1, this.to(this.relative(this.current()) - 1, t) }, l.prototype.onTransitionEnd = function (t) { if (t !== a && (t.stopPropagation(), (t.target || t.srcElement || t.originalTarget) !== this.$stage.get(0))) return !1; this.leave("animating"), this.trigger("translated") }, l.prototype.viewport = function () { var t; return this.options.responsiveBaseElement !== i ? t = h(this.options.responsiveBaseElement).width() : i.innerWidth ? t = i.innerWidth : s.documentElement && s.documentElement.clientWidth ? t = s.documentElement.clientWidth : console.warn("Can not detect viewport width."), t }, l.prototype.replace = function (t) { this.$stage.empty(), this._items = [], t = t && (t instanceof jQuery ? t : h(t)), this.settings.nestedItemSelector && (t = t.find("." + this.settings.nestedItemSelector)), t.filter(function () { return 1 === this.nodeType }).each(h.proxy(function (t, e) { e = this.prepare(e), this.$stage.append(e), this._items.push(e), this._mergers.push(+e.find("[data-merge]").addBack("[data-merge]").attr("data-merge") || 1) }, this)), this.reset(this.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0), this.invalidate("items") }, l.prototype.add = function (t, e) { var i = this.relative(this._current); e = e === a ? this._items.length : this.normalize(e, !0), t = t instanceof jQuery ? t : h(t), this.trigger("add", { content: t, position: e }), t = this.prepare(t), 0 === this._items.length || e === this._items.length ? (0 === this._items.length && this.$stage.append(t), 0 !== this._items.length && this._items[e - 1].after(t), this._items.push(t), this._mergers.push(+t.find("[data-merge]").addBack("[data-merge]").attr("data-merge") || 1)) : (this._items[e].before(t), this._items.splice(e, 0, t), this._mergers.splice(e, 0, +t.find("[data-merge]").addBack("[data-merge]").attr("data-merge") || 1)), this._items[i] && this.reset(this._items[i].index()), this.invalidate("items"), this.trigger("added", { content: t, position: e }) }, l.prototype.remove = function (t) { (t = this.normalize(t, !0)) !== a && (this.trigger("remove", { content: this._items[t], position: t }), this._items[t].remove(), this._items.splice(t, 1), this._mergers.splice(t, 1), this.invalidate("items"), this.trigger("removed", { content: null, position: t })) }, l.prototype.preloadAutoWidthImages = function (t) { t.each(h.proxy(function (t, e) { this.enter("pre-loading"), e = h(e), h(new Image).one("load", h.proxy(function (t) { e.attr("src", t.target.src), e.css("opacity", 1), this.leave("pre-loading"), this.is("pre-loading") || this.is("initializing") || this.refresh() }, this)).attr("src", e.attr("src") || e.attr("data-src") || e.attr("data-src-retina")) }, this)) }, l.prototype.destroy = function () { for (var t in this.$element.off(".owl.core"), this.$stage.off(".owl.core"), h(s).off(".owl.core"), !1 !== this.settings.responsive && (i.clearTimeout(this.resizeTimer), this.off(i, "resize", this._handlers.onThrottledResize)), this._plugins) this._plugins[t].destroy(); this.$stage.children(".cloned").remove(), this.$stage.unwrap(), this.$stage.children().contents().unwrap(), this.$stage.children().unwrap(), this.$stage.remove(), this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class", this.$element.attr("class").replace(new RegExp(this.options.responsiveClass + "-\\S+\\s", "g"), "")).removeData("owl.carousel") }, l.prototype.op = function (t, e, i) { var s = this.settings.rtl; switch (e) { case "<": return s ? i < t : t < i; case ">": return s ? t < i : i < t; case ">=": return s ? t <= i : i <= t; case "<=": return s ? i <= t : t <= i } }, l.prototype.on = function (t, e, i, s) { t.addEventListener ? t.addEventListener(e, i, s) : t.attachEvent && t.attachEvent("on" + e, i) }, l.prototype.off = function (t, e, i, s) { t.removeEventListener ? t.removeEventListener(e, i, s) : t.detachEvent && t.detachEvent("on" + e, i) }, l.prototype.trigger = function (t, e, i, s, n) { var o = { item: { count: this._items.length, index: this.current() } }, r = h.camelCase(h.grep(["on", t, i], function (t) { return t }).join("-").toLowerCase()), a = h.Event([t, "owl", i || "carousel"].join(".").toLowerCase(), h.extend({ relatedTarget: this }, o, e)); return this._supress[t] || (h.each(this._plugins, function (t, e) { e.onTrigger && e.onTrigger(a) }), this.register({ type: l.Type.Event, name: t }), this.$element.trigger(a), this.settings && "function" == typeof this.settings[r] && this.settings[r].call(this, a)), a }, l.prototype.enter = function (t) { h.each([t].concat(this._states.tags[t] || []), h.proxy(function (t, e) { this._states.current[e] === a && (this._states.current[e] = 0), this._states.current[e]++ }, this)) }, l.prototype.leave = function (t) { h.each([t].concat(this._states.tags[t] || []), h.proxy(function (t, e) { this._states.current[e]-- }, this)) }, l.prototype.register = function (i) { var e; i.type === l.Type.Event ? (h.event.special[i.name] || (h.event.special[i.name] = {}), h.event.special[i.name].owl || (e = h.event.special[i.name]._default, h.event.special[i.name]._default = function (t) { return !e || !e.apply || t.namespace && -1 !== t.namespace.indexOf("owl") ? t.namespace && -1 < t.namespace.indexOf("owl") : e.apply(this, arguments) }, h.event.special[i.name].owl = !0)) : i.type === l.Type.State && (this._states.tags[i.name] ? this._states.tags[i.name] = this._states.tags[i.name].concat(i.tags) : this._states.tags[i.name] = i.tags, this._states.tags[i.name] = h.grep(this._states.tags[i.name], h.proxy(function (t, e) { return h.inArray(t, this._states.tags[i.name]) === e }, this))) }, l.prototype.suppress = function (t) { h.each(t, h.proxy(function (t, e) { this._supress[e] = !0 }, this)) }, l.prototype.release = function (t) { h.each(t, h.proxy(function (t, e) { delete this._supress[e] }, this)) }, l.prototype.pointer = function (t) { var e = { x: null, y: null }; return (t = (t = t.originalEvent || t || i.event).touches && t.touches.length ? t.touches[0] : t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t).pageX ? (e.x = t.pageX, e.y = t.pageY) : (e.x = t.clientX, e.y = t.clientY), e }, l.prototype.isNumeric = function (t) { return !isNaN(parseFloat(t)) }, l.prototype.difference = function (t, e) { return { x: t.x - e.x, y: t.y - e.y } }, h.fn.owlCarousel = function (e) { var s = Array.prototype.slice.call(arguments, 1); return this.each(function () { var t = h(this), i = t.data("owl.carousel"); i || (i = new l(this, "object" == typeof e && e), t.data("owl.carousel", i), h.each(["next", "prev", "to", "destroy", "refresh", "replace", "add", "remove"], function (t, e) { i.register({ type: l.Type.Event, name: e }), i.$element.on(e + ".owl.carousel.core", h.proxy(function (t) { t.namespace && t.relatedTarget !== this && (this.suppress([e]), i[e].apply(this, [].slice.call(arguments, 1)), this.release([e])) }, i)) })), "string" == typeof e && "_" !== e.charAt(0) && i[e].apply(i, s) }) }, h.fn.owlCarousel.Constructor = l }(window.Zepto || window.jQuery, window, document), function (e, i) { var s = function (t) { this._core = t, this._interval = null, this._visible = null, this._handlers = { "initialized.owl.carousel": e.proxy(function (t) { t.namespace && this._core.settings.autoRefresh && this.watch() }, this) }, this._core.options = e.extend({}, s.Defaults, this._core.options), this._core.$element.on(this._handlers) }; s.Defaults = { autoRefresh: !0, autoRefreshInterval: 500 }, s.prototype.watch = function () { this._interval || (this._visible = this._core.isVisible(), this._interval = i.setInterval(e.proxy(this.refresh, this), this._core.settings.autoRefreshInterval)) }, s.prototype.refresh = function () { this._core.isVisible() !== this._visible && (this._visible = !this._visible, this._core.$element.toggleClass("owl-hidden", !this._visible), this._visible && this._core.invalidate("width") && this._core.refresh()) }, s.prototype.destroy = function () { var t, e; for (t in i.clearInterval(this._interval), this._handlers) this._core.$element.off(t, this._handlers[t]); for (e in Object.getOwnPropertyNames(this)) "function" != typeof this[e] && (this[e] = null) }, e.fn.owlCarousel.Constructor.Plugins.AutoRefresh = s }(window.Zepto || window.jQuery, window, document), function (a, n) { var e = function (t) { this._core = t, this._loaded = [], this._handlers = { "initialized.owl.carousel change.owl.carousel resized.owl.carousel": a.proxy(function (t) { if (t.namespace && this._core.settings && this._core.settings.lazyLoad && (t.property && "position" == t.property.name || "initialized" == t.type)) { var e = this._core.settings, i = e.center && Math.ceil(e.items / 2) || e.items, s = e.center && -1 * i || 0, n = (t.property && void 0 !== t.property.value ? t.property.value : this._core.current()) + s, o = this._core.clones().length, r = a.proxy(function (t, e) { this.load(e) }, this); for (0 < e.lazyLoadEager && (i += e.lazyLoadEager, e.loop && (n -= e.lazyLoadEager, i++)); s++ < i;)this.load(o / 2 + this._core.relative(n)), o && a.each(this._core.clones(this._core.relative(n)), r), n++ } }, this) }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers) }; e.Defaults = { lazyLoad: !1, lazyLoadEager: 0 }, e.prototype.load = function (t) { var e = this._core.$stage.children().eq(t), t = e && e.find(".owl-lazy"); !t || -1 < a.inArray(e.get(0), this._loaded) || (t.each(a.proxy(function (t, e) { var i = a(e), s = 1 < n.devicePixelRatio && i.attr("data-src-retina") || i.attr("data-src") || i.attr("data-srcset"); this._core.trigger("load", { element: i, url: s }, "lazy"), i.is("img") ? i.one("load.owl.lazy", a.proxy(function () { i.css("opacity", 1), this._core.trigger("loaded", { element: i, url: s }, "lazy"), i.addClass("has-loaded") }, this)).attr("src", s) : i.is("source") ? i.one("load.owl.lazy", a.proxy(function () { this._core.trigger("loaded", { element: i, url: s }, "lazy"), i.addClass("has-loaded") }, this)).attr("srcset", s) : ((e = new Image).onload = a.proxy(function () { i.css({ "background-image": 'url("' + s + '")', opacity: "1" }), this._core.trigger("loaded", { element: i, url: s }, "lazy"), i.addClass("has-loaded") }, this), e.src = s) }, this)), this._loaded.push(e.get(0))) }, e.prototype.destroy = function () { var t, e; for (t in this.handlers) this._core.$element.off(t, this.handlers[t]); for (e in Object.getOwnPropertyNames(this)) "function" != typeof this[e] && (this[e] = null) }, a.fn.owlCarousel.Constructor.Plugins.Lazy = e }(window.Zepto || window.jQuery, window, document), function (n, i) { var s = function (t) { this._core = t, this._previousHeight = null, this._handlers = { "initialized.owl.carousel refreshed.owl.carousel": n.proxy(function (t) { t.namespace && this._core.settings.autoHeight && this.update() }, this), "changed.owl.carousel": n.proxy(function (t) { t.namespace && this._core.settings.autoHeight && "position" === t.property.name && this.update() }, this), "loaded.owl.lazy": n.proxy(function (t) { t.namespace && this._core.settings.autoHeight && t.element.closest("." + this._core.settings.itemClass).index() === this._core.current() && this.update() }, this) }, this._core.options = n.extend({}, s.Defaults, this._core.options), this._core.$element.on(this._handlers), this._intervalId = null; var e = this; n(i).on("load", function () { e._core.settings.autoHeight && e.update() }), n(i).on("resize", function () { e._core.settings.autoHeight && (null != e._intervalId && clearTimeout(e._intervalId), e._intervalId = setTimeout(function () { e.update() }, 250)) }) }; s.Defaults = { autoHeight: !1, autoHeightClass: "slider__stage-outer--autoHeight owl-height" }, s.prototype.update = function () { var t = this._core._current, e = t + this._core.settings.items, i = this._core.settings.lazyLoad, t = this._core.$stage.children().toArray().slice(t, e), s = [], e = 0; n.each(t, function (t, e) { s.push(n(e).height()) }), (e = Math.max.apply(null, s)) <= 1 && i && this._previousHeight && (e = this._previousHeight), this._previousHeight = e, this._core.$stage.parent().height(e).addClass(this._core.settings.autoHeightClass) }, s.prototype.destroy = function () { var t, e; for (t in this._handlers) this._core.$element.off(t, this._handlers[t]); for (e in Object.getOwnPropertyNames(this)) "function" != typeof this[e] && (this[e] = null) }, n.fn.owlCarousel.Constructor.Plugins.AutoHeight = s }(window.Zepto || window.jQuery, window, document), function (c, e) { var i = function (t) { this._core = t, this._videos = {}, this._playing = null, this._handlers = { "initialized.owl.carousel": c.proxy(function (t) { t.namespace && this._core.register({ type: "state", name: "playing", tags: ["interacting"] }) }, this), "resize.owl.carousel": c.proxy(function (t) { t.namespace && this._core.settings.video && this.isInFullScreen() && t.preventDefault() }, this), "refreshed.owl.carousel": c.proxy(function (t) { t.namespace && this._core.is("resizing") && this._core.$stage.find(".cloned .owl-video-frame").remove() }, this), "changed.owl.carousel": c.proxy(function (t) { t.namespace && "position" === t.property.name && this._playing && this.stop() }, this), "prepared.owl.carousel": c.proxy(function (t) { var e; !t.namespace || (e = c(t.content).find(".owl-video")).length && (e.css("display", "none"), this.fetch(e, c(t.content))) }, this) }, this._core.options = c.extend({}, i.Defaults, this._core.options), this._core.$element.on(this._handlers), this._core.$element.on("click.owl.video", ".owl-video-play-icon", c.proxy(function (t) { this.play(t) }, this)) }; i.Defaults = { video: !1, videoHeight: !1, videoWidth: !1 }, i.prototype.fetch = function (t, e) { var i = t.attr("data-vimeo-id") ? "vimeo" : t.attr("data-vzaar-id") ? "vzaar" : "youtube", s = t.attr("data-vimeo-id") || t.attr("data-youtube-id") || t.attr("data-vzaar-id"), n = t.attr("data-width") || this._core.settings.videoWidth, o = t.attr("data-height") || this._core.settings.videoHeight, r = t.attr("href"); if (!r) throw new Error("Missing video URL."); if (-1 < (s = r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")) i = "youtube"; else if (-1 < s[3].indexOf("vimeo")) i = "vimeo"; else { if (!(-1 < s[3].indexOf("vzaar"))) throw new Error("Video URL not supported."); i = "vzaar" } s = s[6], this._videos[r] = { type: i, id: s, width: n, height: o }, e.attr("data-video", r), this.thumbnail(t, this._videos[r]) }, i.prototype.thumbnail = function (e, t) { function i(t) { s = l.lazyLoad ? c("<div/>
3", { class: "owl-video-tn " + h, srcType: t }) : c("<div/>", { class: "owl-video-tn", style: "opacity:1;background-image:url(" + t + ")" }), e.after(s), e.after('<div class="owl-video-play-icon"></div>') } var s, n, o = t.width && t.height ? "width:" + t.width + "px;height:" + t.height + "px;" : "", r = e.find("img"), a = "src", h = "", l = this._core.settings; if (e.wrap(c("<div/>", { class: "owl-video-wrapper", style: o })), this._core.settings.lazyLoad && (a = "data-src", h = "owl-lazy"), r.length) return i(r.attr(a)), r.remove(), !1; "youtube" === t.type ? (n = "//img.youtube.com/vi/" + t.id + "/hqdefault.jpg", i(n)) : "vimeo" === t.type ? c.ajax({ type: "GET", url: "//vimeo.com/api/v2/video/" + t.id + ".json", jsonp: "callback", dataType: "jsonp", success: function (t) { n = t[0].thumbnail_large, i(n) } }) : "vzaar" === t.type && c.ajax({ type: "GET", url: "//vzaar.com/api/videos/" + t.id + ".json", jsonp: "callback", dataType: "jsonp", success: function (t) { n = t.framegrab_url, i(n) } }) }, i.prototype.stop = function () { this._core.trigger("stop", null, "video"), this._playing.find(".owl-video-frame").remove(), this._playing.removeClass("owl-video-playing"), this._playing = null, this._core.leave("playing"), this._core.trigger("stopped", null, "video") }, i.prototype.play = function (t) { var e = c(t.target).closest("." + this._core.settings.itemClass), i = this._videos[e.attr("data-video")], s = i.width || "100%", n = i.height || this._core.$stage.height(); this._playing || (this._core.enter("playing"), this._core.trigger("play", null, "video"), e = this._core.items(this._core.relative(e.index())), this._core.reset(e.index()), (t = c('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height", n), t.attr("width", s), "youtube" === i.type ? t.attr("src", "//www.youtube.com/embed/" + i.id + "?autoplay=1&rel=0&v=" + i.id) : "vimeo" === i.type ? t.attr("src", "//player.vimeo.com/video/" + i.id + "?autoplay=1") : "vzaar" === i.type && t.attr("src", "//view.vzaar.com/" + i.id + "/player?autoplay=true"), c(t).wrap('<div class="owl-video-frame" />').insertAfter(e.find(".owl-video")), this._playing = e.addClass("owl-video-playing")) }, i.prototype.isInFullScreen = function () { var t = e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement; return t && c(t).parent().hasClass("owl-video-frame") }, i.prototype.destroy = function () { var t, e; for (t in this._core.$element.off("click.owl.video"), this._handlers) this._core.$element.off(t, this._handlers[t]); for (e in Object.getOwnPropertyNames(this)) "function" != typeof this[e] && (this[e] = null) }, c.fn.owlCarousel.Constructor.Plugins.Video = i }(window.Zepto || window.jQuery, (window, document)), function (r) { var e = function (t) { this.core = t, this.core.options = r.extend({}, e.Defaults, this.core.options), this.swapping = !0, this.previous = void 0, this.next = void 0, this.handlers = { "change.owl.carousel": r.proxy(function (t) { t.namespace && "position" == t.property.name && (this.previous = this.core.current(), this.next = t.property.value) }, this), "drag.owl.carousel dragged.owl.carousel translated.owl.carousel": r.proxy(function (t) { t.namespace && (this.swapping = "translated" == t.type) }, this), "translate.owl.carousel": r.proxy(function (t) { t.namespace && this.swapping && (this.core.options.animateOut || this.core.options.animateIn) && this.swap() }, this) }, this.core.$element.on(this.handlers) }; e.Defaults = { animateOut: !1, animateIn: !1 }, e.prototype.swap = function () { var t, e, i, s, n, o; 1 === this.core.settings.items && r.support.animation && r.support.transition && (this.core.speed(0), e = r.proxy(this.clear, this), i = this.core.$stage.children().eq(this.previous), s = this.core.$stage.children().eq(this.next), n = this.core.settings.animateIn, o = this.core.settings.animateOut, this.core.current() !== this.previous && (o && (t = this.core.coordinates(this.previous) - this.core.coordinates(this.next), i.one(r.support.animation.end, e).css({ left: t + "px" }).addClass("animated owl-animated-out").addClass(o)), n && s.one(r.support.animation.end, e).addClass("animated owl-animated-in").addClass(n))) }, e.prototype.clear = function (t) { r(t.target).css({ left: "" }).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut), this.core.onTransitionEnd() }, e.prototype.destroy = function () { var t, e; for (t in this.handlers) this.core.$element.off(t, this.handlers[t]); for (e in Object.getOwnPropertyNames(this)) "function" != typeof this[e] && (this[e] = null) }, r.fn.owlCarousel.Constructor.Plugins.Animate = e }(window.Zepto || window.jQuery, (window, document)), function (s, n, e) { var i = function (t) { this._core = t, this._call = null, this._time = 0, this._timeout = 0, this._paused = !0, this._handlers = { "changed.owl.carousel": s.proxy(function (t) { t.namespace && "settings" === t.property.name ? this._core.settings.autoplay ? this.play() : this.stop() : t.namespace && "position" === t.property.name && this._paused && (this._time = 0) }, this), "initialized.owl.carousel": s.proxy(function (t) { t.namespace && this._core.settings.autoplay && this.play() }, this), "play.owl.autoplay": s.proxy(function (t, e, i) { t.namespace && this.play(e, i) }, this), "stop.owl.autoplay": s.proxy(function (t) { t.namespace && this.stop() }, this), "mouseover.owl.autoplay": s.proxy(function () { this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.pause() }, this), "mouseleave.owl.autoplay": s.proxy(function () { this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.play() }, this), "touchstart.owl.core": s.proxy(function () { this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.pause() }, this), "touchend.owl.core": s.proxy(function () { this._core.settings.autoplayHoverPause && this.play() }, this) }, this._core.$element.on(this._handlers), this._core.options = s.extend({}, i.Defaults, this._core.options) }; i.Defaults = { autoplay: !1, autoplayTimeout: 5e3, autoplayHoverPause: !1, autoplaySpeed: !1 }, i.prototype._next = function (t) { this._call = n.setTimeout(s.proxy(this._next, this, t), this._timeout * (Math.round(this.read() / this._timeout) + 1) 
vendor: 7,717 bytes, line 3
3- this.read()), this._core.is("interacting") || e.hidden || this._core.next(t || this._core.settings.autoplaySpeed) }, i.prototype.read = function () { return (new Date).getTime() - this._time }, i.prototype.play = function (t, e) { var i; this._core.is("rotating") || this._core.enter("rotating"), t = t || this._core.settings.autoplayTimeout, i = Math.min(this._time % (this._timeout || t), t), this._paused ? (this._time = this.read(), this._paused = !1) : n.clearTimeout(this._call), this._time += this.read() % t - i, this._timeout = t, this._call = n.setTimeout(s.proxy(this._next, this, e), t - i) }, i.prototype.stop = function () { this._core.is("rotating") && (this._time = 0, this._paused = !0, n.clearTimeout(this._call), this._core.leave("rotating")) }, i.prototype.pause = function () { this._core.is("rotating") && !this._paused && (this._time = this.read(), this._paused = !0, n.clearTimeout(this._call)) }, i.prototype.destroy = function () { var t, e; for (t in this.stop(), this._handlers) this._core.$element.off(t, this._handlers[t]); for (e in Object.getOwnPropertyNames(this)) "function" != typeof this[e] && (this[e] = null) }, s.fn.owlCarousel.Constructor.Plugins.autoplay = i }(window.Zepto || window.jQuery, window, document), function (n) { "use strict"; var e = function (t) { this._core = t, this._initialized = !1, this._pages = [], this._controls = {}, this._templates = [], this.$element = this._core.$element, this._overrides = { next: this._core.next, prev: this._core.prev, to: this._core.to }, this._handlers = { "prepared.owl.carousel": n.proxy(function (t) { t.namespace && this._core.settings.dotsData && this._templates.push('<div class="' + this._core.settings.dotClass + '">' + n(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot") + "</div>") }, this), "added.owl.carousel": n.proxy(function (t) { t.namespace && this._core.settings.dotsData && this._templates.splice(t.position, 0, this._templates.pop()) }, this), "remove.owl.carousel": n.proxy(function (t) { t.namespace && this._core.settings.dotsData && this._templates.splice(t.position, 1) }, this), "changed.owl.carousel": n.proxy(function (t) { t.namespace && "position" == t.property.name && this.draw() }, this), "initialized.owl.carousel": n.proxy(function (t) { t.namespace && !this._initialized && (this._core.trigger("initialize", null, "navigation"), this.initialize(), this.update(), this.draw(), this._initialized = !0, this._core.trigger("initialized", null, "navigation")) }, this), "refreshed.owl.carousel": n.proxy(function (t) { t.namespace && this._initialized && (this._core.trigger("refresh", null, "navigation"), this.update(), this.draw(), this._core.trigger("refreshed", null, "navigation")) }, this) }, this._core.options = n.extend({}, e.Defaults, this._core.options), this.$element.on(this._handlers) }; e.Defaults = { nav: !1, navText: ['<span class="icon fas fa-angle-left" aria-hidden="true"></span>', '<span class="icon fas fa-angle-right" aria-hidden="true"></span>'], navAriaLabel: ["Previous", "Next"], navSpeed: !1, navElement: 'button type="button"', navContainer: !1, navContainerClass: "slider__nav owl-nav", navClass: ["slider__button slider__button--nav slider__button--previous button button--secondary button--auto button--inline btn btn-secondary", "slider__button slider__button--nav slider__button--next button button--secondary button--auto button--inline btn btn-secondary"], slideBy: 1, dotClass: "slider__dot owl-dot", dotsClass: "slider__dots owl-dots", dots: !0, dotsEach: !1, dotsData: !1, dotsSpeed: !1, dotsContainer: !1 }, e.prototype.initialize = function () { var t, i = this._core.settings; for (t in this._controls.$relative = (i.navContainer ? n(i.navContainer) : n("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"), this._controls.$previous = n("<" + i.navElement + ">").addClass(i.navClass[0]).attr("aria-label", i.navAriaLabel[0]).attr("title", i.navAriaLabel[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click", n.proxy(function (t) { this.prev(i.navSpeed) }, this)), this._controls.$next = n("<" + i.navElement + ">").addClass(i.navClass[1]).attr("aria-label", i.navAriaLabel[1]).attr("title", i.navAriaLabel[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click", n.proxy(function (t) { this.next(i.navSpeed) }, this)), i.dotsData || (this._templates = [n('<button type="button">').addClass(i.dotClass).attr("role", "presentation").append(n('<span class="slider__dot" aria-hidden="true"></span>')).prop("outerHTML")]), this._controls.$absolute = (i.dotsContainer ? n(i.dotsContainer) : n("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"), this._controls.$absolute.on("click", "button", n.proxy(function (t) { var e = (n(t.target).parent().is(this._controls.$absolute) ? n(t.target) : n(t.target).parent()).index(); t.preventDefault(), this.to(e, i.dotsSpeed) }, this)), this._overrides) this._core[t] = n.proxy(this[t], this) }, e.prototype.destroy = function () { var t, e, i, s, n = this._core.settings; for (t in this._handlers) this.$element.off(t, this._handlers[t]); for (e in this._controls) "$relative" === e && n.navContainer ? this._controls[e].html("") : this._controls[e].remove(); for (s in this.overides) this._core[s] = this._overrides[s]; for (i in Object.getOwnPropertyNames(this)) "function" != typeof this[i] && (this[i] = null) }, e.prototype.update = function () { var t, e, i = this._core.clones().length / 2, s = i + this._core.items().length, n = this._core.maximum(!0), o = this._core.settings, r = o.center || o.autoWidth || o.dotsData ? 1 : o.dotsEach || o.items; if ("page" !== o.slideBy && (o.slideBy = Math.min(o.slideBy, o.items)), o.dots || "page" == o.slideBy) for (this._pages = [], t = i, e = 0; t < s; t++) { if (r <= e || 0 === e) { if (this._pages.push({ start: Math.min(n, t - i), end: t - i + r - 1 }), Math.min(n, t - i) === n) break; e = 0, 0 } e += this._core.mergers(this._core.relative(t)) } }, e.prototype.draw = function () { var t = this._core.settings, e = this._core.items().length <= t.items, i = this._core.relative(this._core.current()), s = t.loop || t.rewind; this._controls.$relative.toggleClass("disabled", !t.nav || e), t.nav && (this._controls.$previous.toggleClass("disabled", !s && i <= this._core.minimum(!0)), this._controls.$next.toggleClass("disabled", !s && i >= this._core.maximum(!0))), this._controls.$absolute.toggleClass("disabled", !t.dots || e), t.dots && (e = this._pages.length - this._controls.$absolute.children().length, t.dotsData && 0 != e ? this._controls.$absolute.html(this._templates.join("")) : 0 < e ? this._controls.$absolute.append(new Array(1 + e).join(this._templates[0])) : e < 0 && this._controls.$absolute.children().slice(e).remove(), this._controls.$absolute.find(".active").removeClass("active"), this._controls.$absolute.children().eq(n.inArray(this.current(), this._pages)).addClass("active")) }, e.prototype.onTrigger = function (t) { var e = this._core.settings; t.page = { index: n.inArray(this.current(), this._pages), count: this._pages.length, size: e && (e.center || e.autoWidth || e.dotsData ? 1 : e.dotsEach || e.items) } }, e.prototype.current = function () { var i = this._core.relative(this._core.current()); return n.grep(this._pages, n.proxy(function (t, e) { return t.start <= i && t.end >= i }, this)).pop() }, e.prototype.getPosition = function (t) { var e, i, s = this._core.settings; return "page" == s.slideBy ? (e = n.inArray(this.current(), this._pages), i = this._pages.length, t ? ++e : --e, e = this._pages[(e % i + i) % i].start) : (e = this._core.relative(this._core.current()), i = this._core.items().length, t ? e 
3+= s.slideBy : e -= s.slideBy), e }, e.prototype.next = function (t) { n.proxy(this._overrides.to, this._core)(this.getPosition(!0), t) }, e.prototype.prev = function (t) { n.proxy(this._overrides.to, this._core)(this.getPosition(!1), t) }, e.prototype.to = function (t, e, i) { !i && this._pages.length ? (i = this._pages.length, n.proxy(this._overrides.to, this._core)(this._pages[(t % i + i) % i].start, e)) : n.proxy(this._overrides.to, this._core)(t, e) }, n.fn.owlCarousel.Constructor.Plugins.Navigation = e }(window.Zepto || window.jQuery, (window, document)), function (s, n) { "use strict"; var e = function (t) { this._core = t, this._hashes = {}, this.$element = this._core.$element, this._handlers = { "initialized.owl.carousel": s.proxy(function (t) { t.namespace && "URLHash" === this._core.settings.startPosition && s(n).trigger("hashchange.owl.navigation") }, this), "prepared.owl.carousel": s.proxy(function (t) { var e; !t.namespace || (e = s(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash")) && (this._hashes[e] = t.content) }, this), "changed.owl.carousel": s.proxy(function (t) { var i; t.namespace && "position" === t.property.name && (i = this._core.items(this._core.relative(this._core.current())), (t = s.map(this._hashes, function (t, e) { return t === i ? e : null }).join()) && n.location.hash.slice(1) !== t && (n.location.hash = t)) }, this) }, this._core.options = s.extend({}, e.Defaults, this._core.options), this.$element.on(this._handlers), s(n).on("hashchange.owl.navigation", s.proxy(function (t) { var e = n.location.hash.substring(1), i = this._core.$stage.children(), e = this._hashes[e] && i.index(this._hashes[e]); void 0 !== e && e !== this._core.current() && this._core.to(this._core.relative(e), !1, !0) }, this)) }; e.Defaults = { URLhashListener: !1 }, e.prototype.destroy = function () { var t, e; for (t in s(n).off("hashchange.owl.navigation"), this._handlers) this._core.$element.off(t, this._handlers[t]); for (e in Object.getOwnPropertyNames(this)) "function" != typeof this[e] && (this[e] = null) }, s.fn.owlCarousel.Constructor.Plugins.Hash = e }(window.Zepto || window.jQuery, window, document), function (n, o) { var r = n("<support>").get(0).style, a = "Webkit Moz O ms".split(" "), t = { transition: { end: { WebkitTransition: "webkitTransitionEnd", MozTransition: "transitionend", OTransition: "oTransitionEnd", transition: "transitionend" } }, animation: { end: { WebkitAnimation: "webkitAnimationEnd", MozAnimation: "animationend", OAnimation: "oAnimationEnd", animation: "animationend" } } }, e = function () { return !!h("transform") }, i = function () { return !!h("perspective") }, s = function () { return !!h("animation") }; function h(t, i) { var s = !1, e = t.charAt(0).toUpperCase() + t.slice(1); return n.each((t + " " + a.join(e + " ") + e).split(" "), function (t, e) { if (r[e] !== o) return s = !i || e, !1 }), s } function l(t) { return h(t, !0) } !function () { return !!h("transition") }() || (n.support.transition = new String(l("transition")), n.support.transition.end = t.transition.end[n.support.transition]), s() && (n.support.animation = new String(l("animation")), n.support.animation.end = t.animation.end[n.support.animation]), e() && (n.support.transform = new String(l("transform")), n.support.transform3d = i()) }(window.Zepto || window.jQuery, (window, void document));;
4
5function ProductListingSimple(){}ProductListingSimple.asyncPriceLoad=!1;ProductListingSimple.asyncMsgLoading="";ProductListingSimple.swatchesHoverTimeout;ProductListingSimple.init=function(n,t){ProductListingSimple.resetForm(n,t);EcomUtils.resizeEventWithDelay(ProductListing.initSwatchesCollapseDisplay,"swatches");EcomUtils.resizeEventWithDelay(Button.calculateSwatchesBadgeUnavailable,null)};ProductListingSimple.resetForm=function(n,t){var i=$("#"+n),r;i.length>0&&i.data("refreshproductajaxurl")!=null&&i.data("widgetuniquecode")!=null&&(ProductListingSimple.asyncMsgLoading=t,ProductListingSimple.InitializeProductListingForm(n),r=i.data("asyncpriceload"),ProductListingSimple.asyncPriceLoad=r?r.toLowerCase()==="true":!1,ProductListingSimple.asyncPriceLoad&&EcomUtils.InitAsyncHtmlSections(i.data("widgetuniquecode"),ProductListingSimple.InitializeProductListingForm.bind(null,n),ProductListingSimple.asyncMsgLoading))};ProductListingSimple._initProductsUOMChange=function(n){n.find(".ejs-product-listing-item").each(function(){ProductListingSimple._initProductUOMChange($(this),n)})};ProductListingSimple._initProductItem=function(n,t){ProductListingSimple._initProductUOMChange(n,t);ProductListingSimple._initProductConfiguration(n,t);ProductListing.initSwatchesCollapseDisplay();ProductListing.initSwatchesCollapse(n);Button.calculateSwatchesBadgeUnavailable()};ProductListingSimple._initProductItems=function(n){n.find(".ejs-product-listing-item").each(function(){ProductListingSimple._initProductItem($(this),n)})};ProductListingSimple._initProductUOMChange=function(n,t){n.find(".ejs-productuom").each(function(){var i=$(this);i.off("change.ke.productlistingsimple.initProductUOMChange").on("change.ke.productlistingsimple.initProductUOMChange",function(){var f=n.find(".ejs-addtocart-section"),o=f.data("productid"),s=i.find("option:selected").val(),r=n.parents("div.ejs-product-listing-container"),c=n.find("div.productbox").css("min-height"),u=f.find("input[data-productcode]"),h=u.val(),e=EcomUtils.getLoadingBig(r);e.show();r.hide();$.ajax({cache:!1,async:!0,type:"POST",url:t.data("refreshproductaja
5xurl"),data:{productId:o,selectedUom:s,widgetUniqueCode:t.data("widgetuniquecode")},error:function(n){Utils.handleAjaxUnauthorize(n)||Statusbar.showMessage(TextResources.getText("requesterror"),Utils.messageTypeResult.ERROR)},success:function(t){Utils.handleSuccessAjaxCallResult(t)&&(n.html(t),u=n.find(".ejs-quantity-input[data-productcode]"),u.val(h))},complete:function(i,u){if(r.show(),e.hide(),u=="success"){ProductListingSimple.onCompleteInitProductUOMChange(n,t);ProductListingSimple.asyncPriceLoad&&EcomUtils.InitAsyncHtmlSections(t.data("widgetuniquecode"),ProductListingSimple.onCompleteInitProductItem.bind(n,t),ProductListingSimple.asyncMsgLoading)}}})})})};ProductListingSimple._initProductConfiguration=function(n,t){n.find(".ejs-attribute-swatch-value").each(function(){var i=$(this),r=n.find(".ejs-main-image"),u=!1;i.off("click.ke.productlistingSimple.initProductConfiguration").on("click.ke.productlistingSimple.initProductConfiguration",function(){if(!i.data("selected")){var r=n,u=EcomUtils.getLoadingSmall(r);u.show();r.hide();ProductListingSimple.loadProductConfiguration(n,t,i,!1,function(t){var i=$(t.Value);n.replaceWith(i);n=i},function(i,f){if(r.show(),u.hide(),f=="success"){ProductListingSimple.onCompleteInitProductItem(n,t);ProductListingSimple.asyncPriceLoad&&EcomUtils.InitAsyncHtmlSections(t.data("widgetuniquecode"),ProductListingSimple.onCompleteInitProductItem.bind(n,t),ProductListingSimple.asyncMsgLoading)}})}});i.off("mouseenter.ke.productlistingsimple.initProductConfiguration").on("mouseenter.ke.productlistingsimple.initProductConfiguration",function(){if(clearTimeout(ProductListingSimple.swatchesHoverTimeout),u=!0,!i.data("selected")){var f=i.data("image");f&&f.length!=0?r.attr("srcset",f):ProductListingSimple.loadProductConfiguration(n,t,i,!0,function(n){i.attr("data-image",n.Tag);r.attr("data-originalimage")==undefined&&r.attr("data-originalimage",r.attr("srcset"));r.attr("srcset",n.Tag)})}}).off("mouseleave.ke.productlistingsimple.initProductConfiguration").on("mouseleave.ke.productlistingsimple.initProductConfiguration",function(){u=!1;i.data("selected")||(ProductListingSimple.swatchesHoverTimeout=setTimeout(function(){if(!u){var n=r.attr("data-originalimage");n&&n.length>0&&r.attr("srcset",n)}},500))})})};ProductListingSimple.loadProductConfiguration=function(n,t,i,r,u,f){var o=i.closest(".ejs-swatch-list-container"),e={IdProduct:n.data("product-id"),IdAttribute:o.data("attribute-id"),WidgetUniqueCode:t.data("widgetuniquecode"),LoadImageOnly:r?r:!1,AttributesJavascript:{}};n.find(".ejs-swatch-list-container").each(function(){var n=$(this).find('.ejs-attribute-swatch-value[data-selected="true"]');e.AttributesJavascript[$(this).data("attribute-id")]=n.length>0?n.data("attribute-list-value"):""});e.AttributesJavascript[e.IdAttribute]=i.data("attribute-list-value");$.ajax({cache:!1,async:!0,type:"POST",url:t.data("loadproductconfigurationajaxurl"),contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify({loadProductConfigurationRequest:e}),error:function(n){Utils.handleAjaxUnauthorize(n)||Statusbar.showMessage(TextResources.getText("requesterror"),Utils.messageTypeResult.ERROR)},success:function(n){Utils.handleSuccessAjaxCallResult(n)&&u&&u(n)},complete:function(n,t){f&&f(n,t)}})};ProductListingSimple.onCompleteInitProductUOMChange=function(n,t){ProductListingSimple._initProductUOMChange(n,t);ImageEcom.init();EcomUtils.initTooltip();EcomUtils.initAccordingToScreen(Button.initTouchSpin,["horizontal"],Button.initTouchSpin,["vertical"],!0);EcomUtils.bindProductsImagesRedirect();Form.initFloatingLabels();ShoppingCart.initAddToCart(t.attr("id"));ShoppingCart.initAddToPurchaseList(t.attr("id"));ShoppingCart.initIsInPromotionClass();ShoppingCart.quickAddToCartEnabled&&ShoppingCart.quickAddToCartInit()};ProductListingSimple.onCompleteInitProductItem=function(n,t){ProductListingSimple._initProductItem(n,t);ImageEcom.init();EcomUtils.initTooltip();EcomUtils.initAccordingToScreen(Button.initTouchSpin,["horizontal"],Button.initTouchSpin,["vertical"],!0);EcomUtils.bindProductsImagesRedirect();Form.initFloatingLabels();ShoppingCart.initAddToCart(t.attr("id"));ShoppingCart.initAddToPurchaseList(t.attr("id"))};ProductListing.initSwatchesCollapseDisplay=function(){$(ProductListing.ejsProductListingItem).each(function(){$(this).find(ProductListing.EJS.swatchListContainer).length>0&&($(this).find(ProductListing.EJS.swatchListContainer).each(function(){var t=$(this).outerWidth(),r=$(this).find(" > :not("+ProductListing.EJS.innerExpandButton+")").length,n=0;for(i=0;i<r;i++)n+=$($(this).find("> :not("+ProductListing.EJS.innerExpandButton+")")[i]).outerWidth();n>=t?$(this).find(ProductListing.EJS.innerExpandButton).removeClass("is-hidden"):$(this).find(ProductListing.EJS.innerExpandButton).addClass("is-hidden")}),ProductListing.initSwatchesCollapse($(this)),Button.calculateSwatchesBadgeUnavailable())})};ProductListing.initSwatchesCollapse=function(n){var t=n;if(t.find(ProductListing.EJS.swatchListContainer).length>0)t.find(ProductListing.EJS.swatchesExpandButton).off("click.ke.productlisting.initSwatchesCollapse").on("click.ke.productlisting.initSwatchesCollapse",function(){var t=$(this).closest(ProductListing.EJS.swatchListContainer),n=$(this).find(ProductListing.EJS.swatchesExpandText);t.hasClass("is-collapsed")?(t.removeClass("is-collapsed"),n.html(n.data("expanded-title")),EcomUtils.updateTooltip($(this),$(this).data("expanded-title")),$(this).attr("aria-expanded","true")):(t.addClass("is-collapsed"),n.html(n.data("c
5ollapsed-title")),EcomUtils.updateTooltip($(this),$(this).data("collapsed-title")),$(this).attr("aria-expanded","false"))})};ProductListing.loadProductConfiguration=function(n,t,i,r,u){var e=t.closest(ProductListing.EJS.swatchListContainer),f={IdProduct:n.data("product-id"),IdAttribute:e.data("attribute-id"),DisplayMode:ProductListing.data.displayMode,WidgetUniqueCode:ProductListing.data.widgetUniqueCode,UniqueListingString:ProductListing.data.categoryId,LoadImageOnly:i?i:!1,AttributesJavascript:{}};n.find(ProductListing.EJS.swatchListContainer).each(function(){var n=$(this).find('.ejs-attribute-swatch-value[data-selected="true"]');f.AttributesJavascript[$(this).data("attribute-id")]=n.length>0?n.data("attribute-list-value"):""});f.AttributesJavascript[f.IdAttribute]=t.data("attribute-list-value");$.ajax({cache:!1,async:!0,type:"POST",url:ProductListing.data.loadProductConfigurationAjaxUrl,contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify({loadProductConfigurationRequest:f}),error:function(n){Utils.handleAjaxUnauthorize(n)||Statusbar.showMessage(TextResources.getText("requesterror"),Utils.messageTypeResult.ERROR)},success:function(n){Utils.handleSuccessAjaxCallResult(n)&&r&&r(n)},complete:function(n,t){u&&u(n,t)}})};ProductListingSimple.InitializeProductListingForm=function(n){var t=$("#"+n);ShoppingCart.initAddToCart(n);ShoppingCart.initAddToPurchaseList(n);ShoppingCart.initIsInPromotionClass();ProductListing.initProduct();Utils.initClientSideValidation(t);ProductListingSimple._initProductItems(t);ShoppingCart.quickAddToCartEnabled&&ShoppingCart.quickAddToCartInit()};
6
7function FormBuilder(){}FormBuilder.ejsFBAutoSearch=".ejs-fb-auto-search";FormBuilder.ejsPhoneControl=".ejs-phone-control";FormBuilder.ejsSendButton=".ejs-send-button";FormBuilder.initForm=function(){FormBuilder.initAutoSearchControl();FormBuilder.initPhoneControl();FormBuilder.initRadioList();FormBuilder.initCheckBox()};FormBuilder.initAutoSearchControl=function(){$(FormBuilder.ejsFBAutoSearch).each(function(){var n=$(this);$(n).flexbox($(this).data("datasource"),{method:"POST",autoCompleteFirstMatch:!1,minChars:$(this).data("min-chars"),queryDelay:$(this).data("query-delay"),watermark:$(n).attr("data-watermark"),noResultsText:$(n).attr("data-labelnoresultfound"),resultsProperty:"Results",totalProperty:"Total",resultTemplate:"{name}",paging:{style:"input",cssClass:"paging",pageSize:10,maxPageLinks:5,showSummary:!0,summaryClass:"summary",summaryTemplate:$(n).attr("data-labelpage")+" {page} "+$(n).attr("data-labelof")+" {pages}"},onSelect:function(){$("#"+$(n).attr("data-input-field")).val($("#"+$(n).attr("id")+"_hidden").val())}});$("#"+$(n).attr("id")+"_input").off("change.ke.formbuilder").on("change.ke.formbuilder",function(){setTimeout(function(){$("#"+$(n).attr("id")+"_input").val()==""?$("#"+$(n).attr("data-input-field")).val(""):$("#"+$(n).attr("data-input-field")).val($("#"+$(n).attr("id")+"_hidden").val())},300)})})};FormBuilder.initPhoneControl=function(){$(FormBuilder.ejsPhoneControl).each(function(){var n=$(this);$(this).find(".form__input").each(function(){$(this).off("change.ke.formbuilder").on("change.ke.formbuilder",function(){$(n).find(".ejs-phone-control-value").val($(n).find(".ejs-phone-control-country-code").val()+"~|~"+$(n).find(".ejs-phone-control-number").val()+"~|~"+$(n).find(".ejs-phone-control-extension").val())})})})};FormBuilder.initRadioList=function(){$(".form__input--radio").off("click.ke.formbuilder").on("click.ke.formbuilder",function(){$("[name='"+$(this).data("target-value")+"']").val($(this).val());$('[data-valmsg-for="'+$(this).data("target-value")+'"]').hide()})};FormBuilder.initCheckBox=function(){$(".form__input--check").each(function(){if($(this).data("list-value-target")!=undefined)$(this).off("click.ke.formbuilder").on("click.ke.formbuilder",function(){var t=$("[name='"+$(this).data("list-value-target")+"']"),n="";$("[data-list-value-target='"+$(this).data("list-value-target")+"']").each(function(){n==""?$(this).prop("checked")&&(n=n+$(this).data("value")):$(this).prop("checked")&&(n=n+", "+$(this).data("value"))});$(t).val(n)})})};FormBuilder.submitForm=function(n){var i=$(n),r,t;return(Button.showLoadingStatus($(FormBuilder.ejsSendButton),!0),$(".form__input--check").each(function(){$(this).prop("checked")?$("[name='"+$(this).data("value-target")+"']").val("on"):$("[name='"+$(this).data("value-target")+"']").val("off")}),!i.valid())?(Button.showLoadingStatus($(FormBuilder.ejsSendButton),!1),!1):(r=$(n).clone(),FormBuilder.copyValues(i,r),FormBuilder.reIndexFields(r),t=Statusbar.showLoading(i.data("msg-loading"),!0),$.ajax({cache:!1,async:!0,type:"POST",url:i.attr("action"),data:r.serialize(),error:function(n){Utils.handleAjaxUnauthorize(n)||(t&&t.stopLoading(),Button.showLoadingStatus($(FormBuilder.ejsSendButton),!1),Statusbar.showMessage(TextResources.getText("requesterror"),Utils.messageTypeResult.ERROR))},success:function(n){n.Result==Utils.ajaxResultType.REDIRECT?document.location=n.RedirectUrl:(t.stopLoading(),n.StatusMessages&&n.StatusMessages.length>0?Statusbar.showMessages(n.StatusMessages):t.close(),Button.showLoadingStatus($(FormBuilder.ejsSendButton),!1),n.Value!=null&&$(".ejs-mainform").html(n.Value),n.CaptchaSection!=null&&$(".ejs-form-captcha").html(n.CaptchaSection))}}),!1)};FormBuilder.disableSection=function(n){EcomUtils.disable($(n).find(":input"),!0)};FormBuilder.enableSection=function(n){EcomUtils.disable($(n).find(":input"),!1)};FormBuilder.clearSection=function(n){$(n).find(".form__input").val("").removeAttr("checked");$(n).find(".form__select").val("")};FormBuilder.reIndexFields=function(n){for(var u=$("[name^='FormValues']").length,t=-1,r,i=0;i<u;i++)r=$(n).find("[name='FormValues["+i+"].Value']"),r[0]!=undefined&&($(r[0]).prop("disabled")||(i==t+1||i==0?t=t+1:(t=t+1,$($(n).find("[name='FormValues["+i+"].Value']")[0]).attr("name","FormValues["+t+"].Value"),$($(n).find("[name='FormValues["+i+"].Code']")[0]).attr("name","FormValues["+t+"].Code")))),r=undefined};FormBuilder.copyValues=function(n,t){$(n).find(".form__input").each(function(){$(t.find("[name='"+$(this).attr("name")+"']")[0]).val($(this).val())});$(n).find(".form__select").each(function(){$(t.find("[name='"+$(this).attr("name")+"']")[0]).val($(this).val())})};
8
9(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof module=="object"&&module.exports?module.exports=function(t,i){return i===undefined&&(i=typeof window!="undefined"?require("jquery"):require("jquery")(t)),n(i),i}:n(jQuery)})(function(n){"use strict";var t=0;n.fn.TouchSpin=function(i){var r={min:0,max:100,initval:"",replacementval:"",firstclickvalueifempty:null,step:1,stepup:1,stepdown:1,stepmin:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalup:"+",verticaldown:"-",verticalupclass:"",verticaldownclass:"",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-primary",buttonup_class:"btn btn-primary",buttondown_txt:"-",buttonup_txt:"+",callback_before_calculation:function(n){return n},callback_after_calculation:function(n){return n}},u={min:"min",max:"max",initval:"init-val",replacementval:"replacement-val",firstclickvalueifempty:"first-click-value-if-empty",step:"step",stepup:"stepup",stepdown:"stepdown",stepmin:"stepm
9in",decimals:"decimals",stepinterval:"step-interval",verticalbuttons:"vertical-buttons",verticalupclass:"vertical-up-class",verticaldownclass:"vertical-down-class",forcestepdivisibility:"force-step-divisibility",stepintervaldelay:"step-interval-delay",prefix:"prefix",postfix:"postfix",prefix_extraclass:"prefix-extra-class",postfix_extraclass:"postfix-extra-class",booster:"booster",boostat:"boostat",maxboostedstep:"max-boosted-step",mousewheel:"mouse-wheel",buttondown_class:"button-down-class",buttonup_class:"button-up-class",buttondown_txt:"button-down-txt",buttonup_txt:"button-up-txt"};return this.each(function(){function ot(){if(!e.data("alreadyinitialized")){if(e.data("alreadyinitialized",!0),t+=1,e.data("spinnerid",t),!e.is("input")){console.log("Must be an input.");return}ct();st();p();yt();bt();rt();kt();dt()}}function st(){f.initval!==""&&e.val()===""&&e.val(f.initval)}function ht(n){vt(n);p();var t=o.input.val();t!==""&&(t=Number(f.callback_before_calculation(o.input.val())),o.input.val(f.callback_after_calculation(Number(t).toFixed(f.decimals))))}function ct(){f=n.extend({},r,et,lt(),i)}function lt(){var t={};return n.each(u,function(n,i){var r="bts-"+i+"";e.is("[data-"+r+"]")&&(t[n]=e.data(r))}),t}function at(){var t=e.parent();h();e.off(".touchspin");t.hasClass("bootstrap-touchspin-injected")?(e.siblings().remove(),e.unwrap()):(n(".bootstrap-touchspin-injected",t).remove(),t.removeClass("bootstrap-touchspin"));e.data("alreadyinitialized",!1)}function vt(t){var i,r;f=n.extend({},f,t);t.postfix&&(i=e.parent().find(".bootstrap-touchspin-postfix"),i.length===0&&d.insertAfter(e),e.parent().find(".bootstrap-touchspin-postfix .input-group-text").text(t.postfix));t.prefix&&(r=e.parent().find(".bootstrap-touchspin-prefix"),r.length===0&&k.insertBefore(e),e.parent().find(".bootstrap-touchspin-prefix .input-group-text").text(t.prefix));rt()}function yt(){var n=e.val(),t=e.parent();n!==""&&(n=f.callback_after_calculation(Number(n).toFixed(f.decimals)));e.data("initvalue",n).val(n);e.addClass("form-control");t.hasClass("input-group")?pt(t):wt()}function pt(t){t.addClass("bootstrap-touchspin");var u=e.prev(),o=e.next(),i,r,s='<span class="input-group-addon input-group-prepend bootstrap-touchspin-prefix input-group-prepend bootstrap-touchspin-injected"><span class="input-group-text">'+f.prefix+"<\/span><\/span>",h='<span class="input-group-addon input-group-append bootstrap-touchspin-postfix input-group-append bootstrap-touchspin-injected"><span class="input-group-text">'+f.postfix+"<\/span><\/span>";u.hasClass("input-group-btn")||u.hasClass("input-group-prepend")?(i='<button class="'+f.buttondown_class+' bootstrap-touchspin-down bootstrap-touchspin-injected" type="button">'+f.buttondown_txt+"<\/button>",u.append(i)):(i='<span class="input-group-btn input-group-prepend bootstrap-touchspin-injected"><button class="'+f.buttondown_class+' bootstrap-touchspin-down" type="button">'+f.buttondown_txt+"<\/button><\/span>",n(i).insertBefore(e));o.hasClass("input-group-btn")||o.hasClass("input-group-append")?(r='<button class="'+f.buttonup_class+' bootstrap-touchspin-up bootstrap-touchspin-injected" type="button">'+f.buttonup_txt+"<\/button>",o.prepend(r)):(r='<span class="input-group-btn input-group-append bootstrap-touchspin-injected"><button class="'+f.buttonup_class+' bootstrap-touchspin-up" type="button">'+f.buttonup_txt+"<\/button><\/span>",n(r).insertAfter(e));n(s).insertBefore(e);n(h).insertAfter(e);l=t}function wt(){var i,t="";e.hasClass("input-sm")&&(t="input-group-sm");e.hasClass("input-lg")&&(t="input-group-lg");i=f.verticalbuttons?'<div class="input-group '+t+' bootstrap-touchspin bootstrap-touchspin-injected"><span class="input-group-addon input-group-prepend bootstrap-touchspin-prefix"><span class="input-group-text">'+f.prefix+'<\/span><\/span><span class="input-group-addon bootstrap-touchspin-postfix input-group-append"><span class="input-group-text">'+f.postfix+'<\/span><\/span><span class="input-group-btn-vertical"><button class="'+f.buttondown_class+" bootstrap-touchspin-up "+f.verticalupclass+'" type="button">'+f.verticalup+'<\/button>
9<button class="'+f.buttonup_class+" bootstrap-touchspin-down "+f.verticaldownclass+'" type="button">'+f.verticaldown+"<\/button><\/span><\/div>":'<div class="input-group bootstrap-touchspin bootstrap-touchspin-injected"><span class="input-group-btn input-group-prepend"><button class="'+f.buttondown_class+' bootstrap-touchspin-down" type="button">'+f.buttondown_txt+'<\/button><\/span><span class="input-group-addon bootstrap-touchspin-prefix input-group-prepend"><span class="input-group-text">'+f.prefix+'<\/span><\/span><span class="input-group-addon bootstrap-touchspin-postfix input-group-append"><span class="input-group-text">'+f.postfix+'<\/span><\/span><span class="input-group-btn input-group-append"><button class="'+f.buttonup_class+' bootstrap-touchspin-up" type="button">'+f.buttonup_txt+"<\/button><\/span><\/div>";l=n(i).insertBefore(e);n(".bootstrap-touchspin-prefix",l).after(e);e.hasClass("input-sm")?l.addClass("input-group-sm"):e.hasClass("input-lg")&&l.addClass("input-group-lg")}function bt(){o={down:n(".bootstrap-touchspin-down",l),up:n(".bootstrap-touchspin-up",l),input:n("input",l),prefix:n(".bootstrap-touchspin-prefix",l).addClass(f.prefix_extraclass),postfix:n(".bootstrap-touchspin-postfix",l).addClass(f.postfix_extraclass)}}function rt(){f.prefix===""&&(k=o.prefix.detach());f.postfix===""&&(d=o.postfix.detach())}function kt(){e.on("keydown.touchspin",function(n){var t=n.keyCode||n.which;t===38?(c!=="up"&&(v(),b()),n.preventDefault()):t===40&&(c!=="down"&&(y(),w()),n.preventDefault())});e.on("keyup.touchspin",function(n){var t=n.keyCode||n.which;t===38?h():t===40&&h()});e.on("blur.touchspin",function(){p();e.val(f.callback_after_calculation(e.val()))});o.down.on("keydown",function(n){var t=n.keyCode||n.which;(t===32||t===13)&&(c!=="down"&&y(),n.preventDefault())});o.down.on("keyup.touchspin",function(n){var t=n.keyCode||n.which;(t===32||t===13)&&h()});o.up.on("keydown.touchspin",function(n){var t=n.keyCode||n.which;(t===32||t===13)&&(c!=="up"&&v(),n.preventDefault())});o.up.on("keyup.touchspin",function(n){var t=n.keyCode||n.which;(t===32||t===13)&&h()});o.down.on("mousedown.touchspin",function(n){(o.down.off("touchstart.touchspin"),e.is(":disabled"))||(y(),w(),n.preventDefault(),n.stopPropagation())});o.down.on("touchstart.touchspin",function(n){(o.down.off("mousedown.touchspin"),e.is(":disabled"))||(y(),w(),n.preventDefault(),n.stopPropagation())});o.up.on("mousedown.touchspin",function(n){(o.up.off("touchstart.touchspin"),e.is(":disabled"))||(v(),b(),n.preventDefault(),n.stopPropagation())});o.up.on("touchstart.touchspin",function(n){(o.up.off("mousedown.touchspin"),e.is(":disabled"))||(v(),b(),n.preventDefault(),n.stopPropagation())});o.up.on("mouseup.touchspin mouseout.touchspin touchleave.touchspin touchend.touchspin touchcancel.touchspin",function(n){c&&(n.stopPropagation(),h())});o.down.on("mouseup.touchspin mouseout.touchspin touchleave.touchspin touchend.touchspin touchcancel.touchspin",function(n){c&&(n.stopPropagation(),h())});o.down.on("mousemove.touchspin touchmove.touchspin",function(n){c&&(n.stopPropagation(),n.preventDefault())});o.up.on("mousemove.touchspin touchmove.touchspin",function(n){c&&(n.stopPropagation(),n.preventDefault())});e.on("mousewheel.touchspin DOMMouseScroll.touchspin",function(n){if(f.mousewheel&&e.is(":focus")){var t=n.originalEvent.wheelDelta||-n.originalEvent.deltaY||-n.originalEvent.detail;n.stopPropagation();n.preventDefault();t<0?y():v()}})}function dt(){e.on("touchspin.destroy",function(){at()});e.on("touchspin.uponce",function(){h();v()});e.on("touchspin.downonce",function(){h();y()});e.on("touchspin.startupspin",function(){b()});e.on("touchspin.startdownspin",function(){w()});e.on("touchspin.stopspin",function(){h()});e.on("touchspin.updatesettings",function(n,t){ht(t)})}function gt(n){switch(f.forcestepdivisibility){case"round":return(Math.round(n/f.step)*f.step).toFixed(f.decimals);case"floor":return(Math.floor(n/f.step)*f.step).toFixed(f.decimals);case"ceil":return(Math.ceil(n/f.step)*f.step).toFixed(f.decimals);default:return n.toFixed(f.decimals)}}function p(){var t,n,i;if(t=f.callback_before_calculation(e.val()),t===""){f.replacementval!==""&&(e.val(f.replacementval),e.trigger("change"));return}f.decimals>0&&t==="."||(n=parseFloat(t),isNaN(n)&&(n=f.replacementval!==""?f.replacementval:0),i=n,n.toString()!==t&&(i=n),f.min!==null&&n<f.min,f.max!==null&&n>f.max,i=gt(i),Number(t).toString()!==i.toString()&&(e.val(i),e.trigger("change")))}function ut(t){if(f.booster){var i;return i=t=="down"?Math.pow(2,Math.floor(a/f.boostat))*f.stepdown:t=="up"?Math.pow(2,Math.floor(a/f.boostat))*f.stepup:Math.pow(2,Math.floor(a/f.boostat))*f.step,f.maxboostedstep&&i>f.maxboostedstep&&(i=f.maxboostedstep,s=Math.round(s/i)*i),t=="down"?n(e).val()==f.stepmin?f.stepmin:Math.max(f.stepdown,i):t=="up"?n(e).val()==0?f.stepmin:Math.max(f.stepup,i):Math.max(f.step,i)}return t=="down"?f.stepdown:t=="up"?f.stepup:f.step}function ft(){return typeof f.firstclickvalueifempty=="number"?f.firstclickvalueifempty:(f.min+f.max)/2}function v(){p();s=parseFloat(f.callback_before_calculation(o.input.val()));var t=s,n;isNaN(s)?s=ft():(n=ut("up"),s=s+n);f.max!==null&&s>f.max&&(s=f.max,e.trigger("touchspin.on.max"),h());o.input.val(f.callback_after_calculation(Number(s).toFixed(f.decimals)));t!==s&&e.trigger("change")}function y(){p();s=parseFloat(f.callback_before_calculation(o.input.val()));var t=s,n;isNaN(s)?s=ft():(n=ut("down"),s=s-n);f.min!==null&&s<f.min&&(s=f.min,e.trigger("touchspin.on.min"),h());o.input.val(f.callback_after_calculation(Number(s).toFixed(f.decimals)));t!==s&&e.trigger("change")}function w(){h();a=0;c="down";e.trigger("touchspin.on.startspin");e.trigger("touchspin.on.startdownspin");tt=setTimeout(function(){g=setInterval(function(){a++;y()},f.stepinterval)},f.stepintervaldelay)}function b(){h();a=0;c="up";e.trigger("touchspin.on.startspin");e.trigger("touchspin.on.startupspin");
9it=setTimeout(function(){nt=setInterval(function(){a++;v()},f.stepinterval)},f.stepintervaldelay)}function h(){clearTimeout(tt);clearTimeout(it);clearInterval(g);clearInterval(nt);switch(c){case"up":e.trigger("touchspin.on.stopupspin");e.trigger("touchspin.on.stopspin");break;case"down":e.trigger("touchspin.on.stopdownspin");e.trigger("touchspin.on.stopspin")}a=0;c=!1}var f,e=n(this),et=e.data(),k,d,l,o,s,g,nt,tt,it,a=0,c=!1;ot()})}});
10
11function Slider(){}Slider.data={};Slider.data.ItemNumber=0;Slider.data.ItemInitialized=!1;Slider.EJS={};Slider.EJS.SliderProgress="ejs-slider-progress";Slider.EJS.SliderProgressBar="ejs-slider-progress-bar";Slider.EJS.SliderPlayStopButton="ejs-slider-stop-btn";Slider.lblProgressBarAriaLabel="{0} complete";Slider.init=function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y){function ot(n){var t=n,u=Slider.lblProgressBarAriaLabel,f=u.replace("{0}","0%"),i,r;t.find("."+Slider.EJS.SliderProgress).length==0&&(i=$("<div class='slider__progress progress "+Slider.EJS.SliderProgress+"'>"),r=$("<div class='progress__bar progress-bar "+Slider.EJS.SliderProgressBar+"' role='progressbar' aria-valuenow='0' aria-valuemin='0' aria-valuemax='100' aria-label='"+f+"'>"),i.append(r).appendTo(t))}function g(){b===!1&&w===!1&&(nt(),k||(k=window.setInterval(st,h)))}function st(){var t=Slider.lblProgressBarAriaLabel,n=Math.floor(s/h);p.find("."+Slider.EJS.SliderProgressBar).show();b===!1&&w===!1&&(it+=1,d=Math.floor(it/n*100),p.find("."+Slider.EJS.SliderProgressBar).attr({"aria-valuenow":d,"aria-label":t.replace("{0}",d+"%")}).css({"animation-duration":n-1+"s"}))}function nt(){var n=Slider.lblProgressBarAriaLabel;b=!1;d=0;et=0;it=1;clearInterval(k);k=null;p.find("."+Slider.EJS.SliderProgressBar).attr({"aria-valuenow":"0","aria-label":n.replace("{0}","0%")}).hide()}function ht(){b=!0}function ct(n){$elem=n;var t=$("<button class='slider__button slider__button--play-stop button button--link button--no-decoration button--auto btn btn-link "+Slider.EJS.SliderPlayStopButton+" ejs-title-tooltip' type='button' data-bs-toggle='tooltip' title='"+r[1]+"' aria-label='"+r[1]+"' data-label-stop-animation='"+r[1]+"' data-label-start-animation='"+r[0]+"'><span class='icon fa fa-stop-circle' aria-hidden='true'><\/span><\/button>
11");t.appendTo($elem);$elem.find("."+Slider.EJS.SliderPlayStopButton).off("click.ke.slider.initPlayPause").on("click.ke.slider.initPlayPause",function(){$this=$(this);$this.find(".icon.fa-play-circle").length>0?(EcomUtils.updateTooltip($this,$this.data("label-stop-animation")),$this.attr("aria-label",$this.data("label-stop-animation")),$this.find(".icon").removeClass("fa-play-circle").addClass("fa-stop-circle"),w=!1,p.trigger("play.owl.autoplay")):(EcomUtils.updateTooltip($this,$this.data("label-start-animation")),$this.attr("aria-label",$this.data("label-start-animation")),$this.find(".icon").removeClass("fa-stop-circle").addClass("fa-play-circle"),w=!0,p.trigger("stop.owl.autoplay"))})}var p=$(n),tt=p.attr("data-slider-options"),rt,k,d,et,it,w,b=!1,ut,ft="";Slider.lblProgressBarAriaLabel=l;(typeof c!="boolean"||typeof c=="undefined")&&(c=e?!0:!1);v=="fade"&&(ut="animate__fadeIn",ft="animate__fadeOut");rt=typeof tt!="string"||typeof tt=="undefined"?{animateOut:ft,animateIn:ut,navContainerClass:t,navAriaLabel:i,items:1,loop:u,nav:f,autoHeight:a,autoplay:e,autoplayHoverPause:y,autoplayTimeout:s,autoplaySpeed:h,dots:o,dotsData:!0,margin:10,lazyLoad:!0,lazyLoadEager:1,navSpeed:h,dragEndSpeed:h,dotsSpeed:h}:eval("owlOptions="+tt);p.on("initialized.owl.carousel",function(n){b=!1;w=!1;Slider.data.ItemNumber=n.item.count;Slider.data.ItemNumber<=1&&(c=!1,e=!1);c&&e&&ot(p);e&&ct(p);p.trigger("refresh.owl.carousel")});p.owlCarousel(rt).on("changed.owl.carousel",function(){e&&(p.trigger("stop.owl.autoplay"),b===!1&&w===!1&&(p.trigger("play.owl.autoplay"),c&&(nt(),g())))}).on("drag.owl.carousel",function(){c&&e&&ht()}).on("resize.owl.carousel",function(){c&&e&&nt();e&&p.trigger("stop.owl.autoplay")}).on("resized.owl.carousel",function(){c&&e&&g();e&&p.trigger("start.owl.autoplay")}).on("loaded.owl.lazy",function(){EcomUtils.initTooltip(p.find(".slider__button"),null,null,"top");EcomUtils.initTooltip();Slider.data.ItemNumber<=1&&!Slider.data.ItemInitialized&&(oSlider=p.data("owl.carousel"),oSlider.options.autoplay=!1,oSlider.options.freeDrag=!1,oSlider.options.mouseDrag=!1,oSlider.options.pullDrag=!1,oSlider.options.touchDrag=!1,oSlider.options.loop=!1,Slider.data.ItemInitialized=!0,p.trigger("refresh.owl.carousel"));c&&e&&g()}).on("stop.owl.autoplay",function(){c&&e&&nt()}).on("play.owl.autoplay",function(){c&&e&&g()});if(e&&y)p.off("mouseover.ke.slider.init focusin.ke.slider.init").on("mouseover.ke.slider.init focusin.ke.slider.init",function(){w||(b=!0,p.find("."+Slider.EJS.SliderProgressBar).css("animation-play-state","paused"),p.trigger("stop.owl.autoplay"))}).off("mouseout.ke.slider.init focusout.ke.slider.init").on("mouseout.ke.slider.init focusout.ke.slider.init",function(){w||(b=!1,p.find("."+Slider.EJS.SliderProgressBar).css("animation-play-state","running"),p.trigger("play.owl.autoplay"))})};
12

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.