jQuery(document).ready(e=>{e.noConflict(),e("#wcmlim-change-sl-select").on("change",function(c){let t=e(this).find("option:selected").val();-1==t&&e("#wcmlim_get_direction_for_location").hide()}),e("#wcmlim-change-lcselect").on("change",function(c){e("#wcmlim_get_direction_for_location").length>0&&e("#wcmlim_get_direction_for_location").hide();var t=e("#wcmlim-change-lcselect").find(":selected").attr("data-lc-loc");e('<a id="wcmlim_get_direction_for_location" target="_blank" href="https://www.google.com/maps?saddr=&daddr='+t+'">Get Direction</a>').insertAfter(" .Wcmlim_prefloc_sel")})});