jQuery(document).ready((t=>{t.noConflict();const{ajaxurl:o}=multi_inventory,{enable_price:n}=(multi_inventory.autodetect,multi_inventory),{instock:e}=(multi_inventory.user_specific_location,multi_inventory.show_location_selection,multi_inventory),{soldout:i}=multi_inventory,{widget_select_type:c}=(multi_inventory.stock_format,multi_inventory),l=multi_inventory.nxtloc;multi_inventory.store_on_map_arr,multi_inventory.default_zoom,multi_inventory.setting_loc_dis_unit,multi_inventory.optiontype_loc,multi_inventory.scoptiontype_loc,multi_inventory.fulladd,multi_inventory.viewformat,multi_inventory.wchideoosproduct;var a=multi_inventory.NextClosestinStock;multi_inventory.isdefault;const{isClearCart:_}=multi_inventory,{isLocationsGroup:s}=multi_inventory;t(".next_closest_location_detail").html(""),t(".Wcmlim_accept_btn").remove(),t(".rselect_location").on("change",(function(){t('input[class="nextAcceptLoc"]').each((function(){t(".Wcmlim_accept_btn").remove()}));const n=t("#select_location").find("option:selected").val(),e=t("#select_location").find("option:selected").attr("data-lc-qty");if(t(".variation_id").length)var i="",c=t("input.variation_id").val();else i=t(".single_add_to_cart_button").val(),c="";e<=0&&t.ajax({url:o,type:"post",data:{product_id:i,variation_id:c,selectedLocationId:n,action:"wcmlim_closest_instock_location"},dataType:"json",success(o){"true"==t.trim(o.status)&&"on"==l&&(t(".postcode-location-distance").show(),t(".postcode-location-distance").html('<i class="fa fa-map-marker-alt"></i>'+o.loc_dis_unit),t.each(["1","2","3","4","5"],(function(){t(".nextAcceptLoc").length&&t(".Wcmlim_accept_btn").remove()})),t(".next_closest_location_detail").html(""),t(".next_closest_location_detail").show(),t("#load").hide(),t(`<button id="" class="Wcmlim_accept_btn"><i class="fa fa-check"></i>Accept</button><input type="hidden" class="nextAcceptLoc" value="${o.secNearLocKey}" />`).appendTo(".Wcmlim_nextloc_label"),t("<strong>"+a+": <br/> "+o.loc_address+' <span class="next_km">('+o.loc_dis_unit+")</span></strong>").appendTo(".next_closest_location_detail"))}})}))}));