$((function(){$(".navbar-toggler").on("click",(function(){$(".ps-drawer--mobile").addClass("active"),$(".ps-site-overlay").addClass("active")})),$(".ps-drawer__close").on("click",(function(){$(".ps-drawer--mobile").removeClass("active"),$(".ps-site-overlay").removeClass("active")})),$("body").on("click",(function(e){$(e.target).siblings(".ps-drawer--mobile").hasClass("active")&&($(".ps-drawer--mobile").removeClass("active"),$(".ps-site-overlay").removeClass("active"))}));var e=function(e){$httpClient.make().get(e).then((function(e){var o=e.data;$(".order-detail-box").html(o),Botble.showSuccess(message)}))};$(document).on("click",".toggle-coupon-form",(function(){return $(document).find(".coupon-form").toggle("fast")})).on("click",".apply-coupon-code",(function(o){o.preventDefault();var t=$(o.currentTarget);$httpClient.make().withButtonLoading(t).post(t.data("url"),{coupon_code:t.closest("form").find('input[name="coupon_code"]').val()}).then((function(o){var t=o.data;Botble.showSuccess(t.message);var a=$(".order-detail-box").data("refresh-url");e(a)}))})).on("click",".remove-coupon-code",(function(o){o.preventDefault();var t=$(o.currentTarget);$httpClient.make().post(t.data("url")).then((function(o){var t=o.data;Botble.showSuccess(t.message);var a=$(".order-detail-box").data("refresh-url");e(a)}))}))}));