dojo.require("wc.render.common");CommonControllersDeclarationJS={langId:"-1",storeId:"",catalogId:"",ajaxCheckOut:true,setCommonParameters:function(a,b,c){this.langId=a;this.storeId=b;this.catalogId=c},setControllerURL:function(a,b){wc.render.getRefreshControllerById(a).url=b}}; wc.render.declareRefreshController({id:"MiniShoppingCartController",renderContext:wc.render.getContextById("MiniShoppingCartContext"),url:"",formId:"",modelChangedHandler:function(a,b){if(a.actionId in order_updated){var c=[];if(a.actionId=="AjaxAddOrderItem"){c.addedOrderItemId=a.orderItemId+"";showDropdown=true}b.refresh(c)}},postRefreshHandler:function(){destroyDialog();if(showDropdown){showMiniShopCartDropDown(null,"placeHolder","quick_cart_container","orderItemAdded");showDropdown=false}}}); wc.render.declareRefreshController({id:"CategoryDisplay_Controller",renderContext:wc.render.getContextById("CategoryDisplay_Context"),url:"",formId:"",renderContextChangedHandler:function(a,b){var c=this.renderContext;categoryDisplayJS.contextChanged=true;b.refresh(c.properties)},postRefreshHandler:function(){if(categoryDisplayJS.contextChanged&&!categoryDisplayJS.isHistory){var a="&identifier="+(new Date).getTime();a=new categoryDisplayJS.HistoryTracker("CategoryDisplay_Widget",this.url+a);dojo.back.addToHistory(a); categoryDisplayJS.contextChanged=false;categoryDisplayJS.isHistory=false}cursor_clear()}}); wc.render.declareRefreshController({id:"SubCategoryDisplay_Controller",renderContext:wc.render.getContextById("SubCategoryDisplay_Context"),url:"",formId:"",renderContextChangedHandler:function(a,b){var c=this.renderContext;categoryDisplayJS.contextChanged=true;b.refresh(c.properties)},postRefreshHandler:function(){if(categoryDisplayJS.contextChanged&&!categoryDisplayJS.isHistory){var a="&identifier="+(new Date).getTime();a=new categoryDisplayJS.HistoryTracker("SubCategoryDisplay_Widget",this.url+ a);dojo.back.addToHistory(a);categoryDisplayJS.contextChanged=false;categoryDisplayJS.isHistory=false}cursor_clear()}}); wc.render.declareRefreshController({id:"WishlistDisplay_Controller",renderContext:wc.render.getContextById("WishlistDisplay_Context"),url:"",formId:"",renderContextChangedHandler:function(a,b){var c=this.renderContext;AccountWishListDisplay.contextChanged=true;b.refresh(c.properties)},modelChangedHandler:function(a,b){var c=this.renderContext;if(a.actionId=="InterestItemDelete"){this.url=wc.render.getRefreshControllerById("WishlistDisplay_Controller").url;b.refresh(c.properties)}if(a.actionId=="AjaxInterestItemAdd"){this.url= wc.render.getRefreshControllerById("WishlistDisplay_Controller").url;b.refresh(c.properties)}},postRefreshHandler:function(){var a=this.renderContext;if(AccountWishListDisplay.contextChanged&&!AccountWishListDisplay.isHistory){var b="&identifier="+(new Date).getTime();a=a.properties.url;a=a==null||a==""?this.url:a;b=new AccountWishListDisplay.HistoryTracker("WishlistDisplay_Widget",a+b,this.url+b);dojo.back.addToHistory(b);AccountWishListDisplay.contextChanged=false;AccountWishListDisplay.isHistory= false}cursor_clear()}}); wc.render.declareRefreshController({id:"ShopCartDisplayController",renderContext:wc.render.getContextById("ShopCartPaginationDisplay_Context"),url:"",formId:"",modelChangedHandler:function(a,b){var c=this.renderContext;a.actionId in order_updated&&b.refresh(c.properties)},postRefreshHandler:function(){if(document.getElementById("discountDetailsSection")!=null)document.getElementById("discountDetailsSection").style.display="block";if(document.getElementById("appliedPromotionCodes")!=null)document.getElementById("appliedPromotionCodes").style.display= "block";cursor_clear()}});wc.render.declareRefreshController({id:"ShopCartPaginationDisplayController",renderContext:wc.render.getContextById("ShopCartPaginationDisplay_Context"),url:"",formId:"",renderContextChangedHandler:function(a,b){var c=this.renderContext;this.testForChangedRC(["beginIndex"])&&b.refresh(c.properties)},postRefreshHandler:function(){cursor_clear()}}); wc.render.declareRefreshController({id:"OrderItemPaginationDisplayController",renderContext:wc.render.getContextById("OrderItemPaginationDisplay_Context"),url:"",formId:"",renderContextChangedHandler:function(a,b){var c=this.renderContext;this.testForChangedRC(["beginIndex"])&&b.refresh(c.properties)},postRefreshHandler:function(){cursor_clear()}}); wc.render.declareRefreshController({id:"MSOrderItemPaginationDisplayController",renderContext:wc.render.getContextById("MSOrderItemPaginationDisplay_Context"),url:"",formId:"",renderContextChangedHandler:function(a,b){var c=this.renderContext;this.testForChangedRC(["beginIndex"])&&b.refresh(c.properties)},postRefreshHandler:function(){cursor_clear()}}); wc.render.declareRefreshController({id:"CouponDisplay_Controller",renderContext:wc.render.getContextById("CouponDisplay_Context"),url:"",formId:"",modelChangedHandler:function(a,b){var c=this.renderContext;a.actionId=="AjaxCouponsAddRemove"&&b.refresh(c.properties)}});
