function notification_centered_onShow(n){if(n.sender.getNotifications().length==1){var t=n.element.parent(),u=t.width(),f=t.height(),e=$(window).width(),o=$(window).height(),i,r;r=Math.floor(e/2-u/2);i=Math.floor(o/2-f/2);n.element.parent().css({top:i,left:r})}}function notification_centered_horizontal_onShow(n){if(n.sender.getNotifications().length==1){var i=n.element.parent(),r=i.width(),u=$(window).width(),t;t=Math.floor(u/2-r/2);n.element.parent().css({left:t})}}function AddToCartSuccess(n){NotifySuccess(n)}function NotifySuccess(n){var t=$("#notification").data("kendoNotification");t.show({message:n},"success")}function NotifyError(n){var t=$("#notification").data("kendoNotification");t.show({message:n},"error")}function AutoPopDatePicker(n){$(n).data("kendoDatePicker").open()}function SampleSearchData(){return{text:$("#SampleSearch").val()}}function updateMinDate(){var i=$("input[name='DeliveryMethod']:checked").val(),t=$("#RequestedDate").data("kendoDatePicker"),n=new Date(Date.now());i==="PickupAtTechoBloc"?t.min(n):(n.setDate(n.getDate()+1),t.min(n));$("#RequestedDate").val("")}