var randomUuDai={init:function(o){randomUuDai.make_request_get_location(o,randomUuDai.hight_light_salon_near_you)},make_request_get_location:function(o,n){if(null==localStorage.getItem("ipLocationAdress"))$.ajax({type:"GET",cache:!1,async:!0,data:{},url:"https://log.oto.com.vn/IpLocationApi/location",success:function(e){n(o,e)},complete:function(){},error:function(e,t,a){n(o,null)}});else{var e=JSON.parse(localStorage.getItem("ipLocationAdress"));n(o,e)}},hight_light_salon_near_you:function(o,n){var e=$(".box-show-phone-on-page .item-point-phone",o);if(null!=e&&null!=e&&e.length>=1){for(var t=e.length-1,a=$(".box-show-phone-on-page .item-point-phone:not('.item-hotline')",o),i=$(".box-show-phone-on-page .item-point-phone.item-hotline",o),l=[],p=[],h=0;h<=t;h++){var r=a.eq(h).data("cityId");null!=n&&r==n.city_id?l.push(h):p.push(h)}var s=[];if(p.length>=2)for(;p.length>0;){var c=Math.floor(Math.random()*p.length);s.push(p[c]),p.splice(c,1)}else 1==p.length&&s.push(p[0]);$(".box-show-phone-on-page .list-container",o).empty();var g=0;for(h=0;h<l.length;h++){(u=a.eq(l[h])).find("a").attr("data-position",g),g++,$(".map-link",u).append("Showroom gần bạn"),$(".map-link .icon-dot",u).removeClass("hidden"),$(".box-show-phone-on-page .list-container",o).append(u)}for(h=0;h<s.length;h++){var u;(u=a.eq(s[h])).find("a").attr("data-position",g),g++,$(".box-show-phone-on-page .list-container",o).append(u)}i.length>0&&i.appendTo(".box-show-phone-on-page .list-container")}}};