+function(n){var t=n.ContractFX=n.ContractFX||{};t.Controls=t.Controls||{};t.Controls.General=t.Controls.ERFx||{};t.Controls.ERFx.EpisodeItems=function(n,t,i,r,u,f,e,o,s,h,c,l,a,v){var y=this;this.cbpAllShoppingCartItems=t;this.rptAllShoppingCartItems=i;this.init=function(){this.cbpAllShoppingCartItems.BeginCallback.AddHandler(jQuery.proxy(this,"cbpAllShoppingCartItems_BeginCallback"));this.cbpAllShoppingCartItems.EndCallback.AddHandler(jQuery.proxy(this,"cbpAllShoppingCartItems_EndCallback"));u.BeginCallback.AddHandler(jQuery.proxy(this,"cbpWarrantyDataPopup_BeginCallback"));u.EndCallback.AddHandler(jQuery.proxy(this,"cbpWarrantyDataPopup_EndCallback"));f.Click.AddHandler(jQuery.proxy(this,"btnCloseWarrantyPopupA_Click"))};this.cbpAllShoppingCartItems_BeginCallback=function(){loading.Show()};this.cbpAllShoppingCartItems_EndCallback=function(){this.NoAction();typeof initShoppingItemsCounter=="function"&&initShoppingItemsCounter();loading.Hide()};this.btnShoppingItemsSearchControl_Click=function(){var n="";typeof this.tbSearchShoppingItemsControl!="undefined"&&(n=this.tbSearchShoppingItemsControl.value);this.cbpAllShoppingCartItems.PerformCallback(this.tbSearchShoppingItemsControl.value)};this.btnShoppingItemsSearchControl_Click=function(){var n="";typeof this.tbSearchShoppingItemsControl!="undefined"&&(n=this.tbSearchShoppingItemsControl.value);this.cbpAllShoppingCartItems.PerformCallback(this.tbSearchShoppingItemsControl.value)};this.btnCloseWarrantyPopupA_Click=function(){r.Hide()};this.cbpWarrantyDataPopup_BeginCallback=function(){loading.Show()};this.cbpWarrantyDataPopup_EndCallback=function(){r.Show();loading.Hide()};this.ShowWarrantyInfo=function(n){u.PerformCallback(e+"|"+n)};this.ShowReturnInfo=function(n){u.PerformCallback(o+"|"+n)};this.NoAction=function(){a.Set("PagerAction","")};this.btnFirstPage_Click=function(){a.Set("PagerAction","FirstPage");this.cbpAllShoppingCartItems.PerformCallback();this.ScrollToTop()};this.btnPrevPage_Click=function(){a.Set("PagerAction","PrevPage");this.cbpAllShoppingCartItems.PerformCallback();this.ScrollToTop()};this.tbGotoPage_ValueChanged=function(){a.Set("PagerAction","GotoPage");this.cbpAllShoppingCartItems.PerformCallback();this.ScrollToTop()};this.btnNextPage_Click=function(){a.Set("PagerAction","NextPage");this.cbpAllShoppingCartItems.PerformCallback();this.ScrollToTop()};this.btnLastPage_Click=function(){a.Set("PagerAction","LastPage");this.cbpAllShoppingCartItems.PerformCallback();this.ScrollToTop()};this.ddlRecordPerPage_Click=function(){a.Set("PagerAction","ChangedSize");this.cbpAllShoppingCartItems.PerformCallback();this.ScrollToTop()};this.ScrollToTop=function(){typeof v!="undefined"&&document.querySelector("["+v+"]").scrollTo({top:0,behavior:"smooth"})};this.init()}}(window)