(()=>{var a,e;window.eu_owb=window.eu_owb||{},window.eu_owb.admin_orders=window.eu_owb.admin_orders||{},a=jQuery,(e=window.eu_owb).admin_orders={params:{},init:function(){var r=e.admin_orders;r.params=eu_owb_woocommerce_admin_orders_params,a(document).on("click",".order-preview-trigger:not(.disabled)",r.onPreview)},onPreview:function(){var r=a(this),d=e.admin_orders,o=r.data("orderId");return r.data("order-data")?a(this).WCBackboneModal({template:"wc-modal-view-order",variable:r.data("orderData")}):(r.addClass("disabled"),a.ajax({url:d.params.ajax_url,data:{order_id:o,action:"eu_owb_woocommerce_get_withdrawal_details",security:d.params.preview_nonce},type:"GET",success:function(e){a(".order-preview").removeClass("disabled"),e.success&&(r.data("orderData",e.data),a(this).WCBackboneModal({template:"wc-modal-view-order",variable:e.data}))}})),!1}},a(document).ready(function(){e.admin_orders.init()}),((window.owbWC=window.owbWC||{}).static=window.owbWC.static||{})["admin-orders"]={}})();