var WP_shop = location.hostname;
var share = window.location.href;
var enable_btn = '';
var btn_msg_text = "";
var btn_msg_text = btn_msg_text.replace("'", "\'");
var is_share_url = '';

var chat_text = '&text=';
if(btn_msg_text != ''){
  chat_text = '&text='+btn_msg_text;
}
if ("alanyaexperience.myshopify.com" == 'ethnicyug.myshopify.com'){
    //console.log("test",enable_btn);
}
if ("alanyaexperience.myshopify.com" == 'hotcrown2.myshopify.com'){
  chat_text = '?text='+btn_msg_text;
}

if (WP_shop == "naturalinestore.co.il"){
  var share_url = decodeURIComponent(share);
}
else{
 var share_url = encodeURIComponent(share);
}

/*if ("alanyaexperience.myshopify.com" == "ilovepinch-cosmetics.myshopify.com"){

  }*/

  if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
    chat_text = '?text='+btn_msg_text;
    var chat_url = 'https://wa.me/';
    }else{
      var chat_url = 'https://web.whatsapp.com/';
    }


    /*if ("alanyaexperience.myshopify.com" == 'hotcrown2.myshopify.com'){
      if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
        chat_url = 'https://wa.me/';
        
        }else{
          chat_url = 'https://web.whatsapp.com/';
        }
        console.log(chat_url);
        }*/

  //sticky bar
        if(document.getElementById("wp_share")){

//console.log("test");
          if (WP_shop == "hijabona.com") {
            if(share_url.includes('product')){
              document.getElementById("wp_share").innerHTML = "<div id='wp_share_content' shop='"+WP_shop+"'><a href='whatsapp://send?text="+share_url+"' data-text='"+share_url+"' data-href='"+share_url+"' data-type='Sticky Bar' class='wp_share_btn'><img src='https://shopiapps.in/whatsapp-share/admin/assets/images/wp_icon.png' /> </a></div>";
            }
            }else{
              document.getElementById("wp_share").innerHTML = "<div id='wp_share_content' shop='"+WP_shop+"'><a href='whatsapp://send?text="+share_url+"' data-text='"+share_url+"' data-href='"+share_url+"' data-type='Sticky Bar' class='wp_share_btn'><img src='https://shopiapps.in/whatsapp-share/admin/assets/images/wp_icon.png' /> </a></div>";
            }
          }

          /*if(document.getElementById("sp_wp_share_widget")){
            var shareIcon = 'sp_whatsapp_icon.svg';
            document.getElementById("sp_wp_share_widget").innerHTML = '<a href="whatsapp://send" data-text="Hello   {{ product.title }}, " data-href="http://{{ shop.domain }}{{ product.url }}" data-type="WhatsApp Share" data-bdcolor="{{bdcolor}}" data-fcolor="{{fcolor}}" data-bgcolor="{{bgcolor}}" data-temp="{{template_name}}" data-image="{{ '+shareIcon+' | asset_url }}" class="wa_btn wa_btn_s wp_share_btn" style="display:none">Whats App</a>';
            }*/

            if(enable_btn == 'yes'){ 
              if(is_share_url=="yes"){
                var url_link = chat_url+"send?phone=Array"+chat_text+" "+" "+" "+share_url;
              }
              else{
                var url_link = chat_url+"send?phone=Array"+chat_text;
              }

              if(document.getElementById("wp_chat_btn")){
               /* document.getElementById("wp_chat_btn").innerHTML = "<div id='wp_chat_content' style='position: relative;'><a class='chat_btn_link' href='"+url_link+"'  target='_blank' style='height: 50px;width: 50px;display:inline-block;border-radius: 50%;opacity:1;box-shadow: 2px 2px 6px rgba(0,0,0,0.4);float:left;left: 50%;position: relative;transform: translateX(-50%);'><svg version='1.1' id='Layer_1' xmlns:sketch='http://www.bohemiancoding.com/sketch/ns' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='51px' height='51px' viewBox='-0.5 -0.5 51 51' enable-background='new -0.5 -0.5 51 51' xml:space='preserve'><path fill='#4DC247' d='M25,50c13.807,0,25-11.193,25-25C50,11.193,38.807,0,25,0C11.193,0,0,11.193,0,25C0,38.807,11.193,50,25,50z '/><path fill='#FFFFFF' d='M25.323,41.052c-2.927,0-5.676-0.745-8.069-2.059l-9.239,2.938l3.012-8.886 c-1.518-2.496-2.395-5.421-2.395-8.551c0-9.147,7.472-16.563,16.691-16.563c9.219,0,16.692,7.416,16.692,16.563 C42.015,33.637,34.542,41.052,25.323,41.052z M25.323,10.567c-7.742,0-14.032,6.248-14.032,13.924c0,3.047,0.993,5.866,2.673,8.165 l-1.753,5.169l5.391-1.711c2.217,1.454,4.871,2.302,7.722,2.302c7.734,0,14.033-6.246,14.033-13.923 C39.355,16.815,33.057,10.567,25.323,10.567L25.323,10.567z M33.751,28.305c-0.104-0.169-0.377-0.271-0.782-0.473 c-0.41-0.206-2.426-1.188-2.798-1.323c-0.376-0.133-0.647-0.201-0.921,0.206c-0.272,0.406-1.058,1.318-1.298,1.59 c-0.235,0.272-0.476,0.306-0.883,0.103c-0.412-0.204-1.729-0.633-3.292-2.015c-1.217-1.075-2.037-2.405-2.276-2.81 c-0.238-0.405-0.024-0.624,0.179-0.827c0.184-0.182,0.41-0.473,0.614-0.711c0.203-0.236,0.272-0.406,0.409-0.676 c0.136-0.27,0.068-0.507-0.035-0.71c-0.102-0.204-0.921-2.2-1.263-3.014c-0.34-0.811-0.68-0.677-0.919-0.677 c-0.238,0-0.511-0.035-0.784-0.035c-0.273,0-0.714,0.102-1.09,0.508c-0.375,0.407-1.432,1.39-1.432,3.385c0,2,1.465,3.928,1.669,4.2 c0.207,0.27,2.831,4.502,6.989,6.13c4.158,1.623,4.158,1.084,4.912,1.017c0.747-0.069,2.418-0.985,2.761-1.933 C33.854,29.288,33.854,28.478,33.751,28.305L33.751,28.305z'/></svg></a><span style='float:left;font-weight:600;clear:left;margin-top: 5px;font-size: 14px;'></span></div>";*/

               /*<h3>hi there,</h3><p>We are Happy to help you. Chat with us on WhatsApp, for any query.</p>*/

               if (WP_shop == "www.ohnii.com") {
                if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){

                  document.getElementById("wp_chat_btn").innerHTML = "<style>#contacts a:hover{text-decoration:none !important;} #contacts h4{display:inline-block;color:;font-size: 20px;vertical-align:top;margin-bottom:0;} #wp_contacts_close{float:right;border-radius: 50px;width: 25px;height: 25px;text-align: center;display: flex;align-items: center;justify-content: center;}#wp_contacts_close:hover, #wp_contacts_close:focus{background: ;}#contacts ul{margin:0px;padding:15px;background:rgb(245, 245, 245);overflow:hidden;margin-bottom:-1px;border-radius: 0 0 6px 6px;border-bottom:none;;} #contacts ul li{list-style: none;padding: 3px;background-color: #fff;margin-bottom: 10px;border-radius: 50px;box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.1);transition: all 400ms ease-in-out;}#contacts ul li:hover {box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.3);} #wp_chat_content .chat_btn_link{display:flex;flex-wrap:wrap;opacity:1;float:left;left: 50%;position: relative;transform: translateX(-50%);} #wp_chat_content .display_text{float:left;font-weight:600;clear:left;margin-top: 0px;font-size: 14px;display: block;width: 100%;text-align: center;}#contacts ul li:last-child{margin-bottom:0 !important;}@media screen and (max-width: 400px){#contacts{width:290px !important;:15px !important;}#contacts li{padding:0}}.dev_by{background-color: #fff;text-align: center;border-radius: 0 0 6px 6px;padding: 7px 0;font-size: 13px;border-top: 1px solid #e5e5e5;}.dev_by span{ color: #4dc247;font-size: 15px;line-height: initial;}</style><div id='contacts' style='height:auto;width:350px;color:#fff;position:fixed;:20px;bottom:20px;;cursor:pointer;z-index:2147483647;display: none;box-shadow:rgba(0, 0, 0, 0.3) 0px 0px 30px;border-radius:6px;'><div style='color:;background:;padding:25px 15px;border-radius:6px 6px 0 0;'><h4></h4><span id='wp_contacts_close'><svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'viewBox='0 0 512 512' style='height:13px;width:13px;fill:;'><path d='M505.943,6.058c-8.077-8.077-21.172-8.077-29.249,0L6.058,476.693c-8.077,8.077-8.077,21.172,0,29.249C10.096,509.982,15.39,512,20.683,512c5.293,0,10.586-2.019,14.625-6.059L505.943,35.306C514.019,27.23,514.019,14.135,505.943,6.058z'/><path d='M505.942,476.694L35.306,6.059c-8.076-8.077-21.172-8.077-29.248,0c-8.077,8.076-8.077,21.171,0,29.248l470.636,470.636c4.038,4.039,9.332,6.058,14.625,6.058c5.293,0,10.587-2.019,14.624-6.057C514.018,497.866,514.018,484.771,505.942,476.694z'/></svg></span></div><ul></ul></div><div id='wp_chat_content' style='position: relative;'><span class='chat_btn_link' target='_blank' style=''><svg version='1.1' id='Layer_1' xmlns:sketch='http://www.bohemiancoding.com/sketch/ns' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='51px' height='51px' viewBox='-0.5 -0.5 51 51' enable-background='new -0.5 -0.5 51 51' xml:space='preserve'><path fill='#4DC247' d='M25,50c13.807,0,25-11.193,25-25C50,11.193,38.807,0,25,0C11.193,0,0,11.193,0,25C0,38.807,11.193,50,25,50z '/><path fill='#FFFFFF' d='M25.323,41.052c-2.927,0-5.676-0.745-8.069-2.059l-9.239,2.938l3.012-8.886 c-1.518-2.496-2.395-5.421-2.395-8.551c0-9.147,7.472-16.563,16.691-16.563c9.219,0,16.692,7.416,16.692,16.563 C42.015,33.637,34.542,41.052,25.323,41.052z M25.323,10.567c-7.742,0-14.032,6.248-14.032,13.924c0,3.047,0.993,5.866,2.673,8.165 l-1.753,5.169l5.391-1.711c2.217,1.454,4.871,2.302,7.722,2.302c7.734,0,14.033-6.246,14.033-13.923 C39.355,16.815,33.057,10.567,25.323,10.567L25.323,10.567z M33.751,28.305c-0.104-0.169-0.377-0.271-0.782-0.473 c-0.41-0.206-2.426-1.188-2.798-1.323c-0.376-0.133-0.647-0.201-0.921,0.206c-0.272,0.406-1.058,1.318-1.298,1.59 c-0.235,0.272-0.476,0.306-0.883,0.103c-0.412-0.204-1.729-0.633-3.292-2.015c-1.217-1.075-2.037-2.405-2.276-2.81 c-0.238-0.405-0.024-0.624,0.179-0.827c0.184-0.182,0.41-0.473,0.614-0.711c0.203-0.236,0.272-0.406,0.409-0.676 c0.136-0.27,0.068-0.507-0.035-0.71c-0.102-0.204-0.921-2.2-1.263-3.014c-0.34-0.811-0.68-0.677-0.919-0.677 c-0.238,0-0.511-0.035-0.784-0.035c-0.273,0-0.714,0.102-1.09,0.508c-0.375,0.407-1.432,1.39-1.432,3.385c0,2,1.465,3.928,1.669,4.2 c0.207,0.27,2.831,4.502,6.989,6.13c4.158,1.623,4.158,1.084,4.912,1.017c0.747-0.069,2.418-0.985,2.761-1.933 C33.854,29.288,33.854,28.478,33.751,28.305L33.751,28.305z'/></svg></span><span class='display_text'></span></div>";
                }
                }else{
                  document.getElementById("wp_chat_btn").innerHTML = "<style>#contacts a:hover{text-decoration:none !important;} #contacts h4{display:inline-block;color:;font-size: 20px;vertical-align:top;margin-bottom:0;} #wp_contacts_close{float:right;border-radius: 50px;width: 25px;height: 25px;text-align: center;display: flex;align-items: center;justify-content: center;}#wp_contacts_close:hover, #wp_contacts_close:focus{background: ;}#contacts ul{margin:0px;padding:15px;background:rgb(245, 245, 245);overflow:hidden;margin-bottom:-1px;border-radius: 0 0 6px 6px;border-bottom:none;;} #contacts ul li{list-style: none;padding: 3px;background-color: #fff;margin-bottom: 10px;border-radius: 50px;box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.1);transition: all 400ms ease-in-out;}#contacts ul li:hover {box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.3);} #wp_chat_content .chat_btn_link{display:flex;flex-wrap:wrap;opacity:1;float:left;left: 50%;position: relative;transform: translateX(-50%);} #wp_chat_content .display_text{float:left;font-weight:600;clear:left;margin-top: 0px;font-size: 14px;display: block;width: 100%;text-align: center;}#contacts ul li:last-child{margin-bottom:0 !important;}@media screen and (max-width: 400px){#contacts{width:290px !important;:15px !important;}#contacts li{padding:0}}.dev_by{background-color: #fff;text-align: center;border-radius: 0 0 6px 6px;padding: 7px 0;font-size: 13px;border-top: 1px solid #e5e5e5;}.dev_by span{ color: #4dc247;font-size: 15px;line-height: initial;}</style><div id='contacts' style='height:auto;width:350px;color:#fff;position:fixed;:20px;bottom:20px;;cursor:pointer;z-index:2147483647;display: none;box-shadow:rgba(0, 0, 0, 0.3) 0px 0px 30px;border-radius:6px;'><div style='color:;background:;padding:25px 15px;border-radius:6px 6px 0 0;display: flex;align-items: center;justify-content: space-between;'><h4></h4><span id='wp_contacts_close'><svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'viewBox='0 0 512 512' style='height:13px;width:13px;fill:;'><path d='M505.943,6.058c-8.077-8.077-21.172-8.077-29.249,0L6.058,476.693c-8.077,8.077-8.077,21.172,0,29.249C10.096,509.982,15.39,512,20.683,512c5.293,0,10.586-2.019,14.625-6.059L505.943,35.306C514.019,27.23,514.019,14.135,505.943,6.058z'/><path d='M505.942,476.694L35.306,6.059c-8.076-8.077-21.172-8.077-29.248,0c-8.077,8.076-8.077,21.171,0,29.248l470.636,470.636c4.038,4.039,9.332,6.058,14.625,6.058c5.293,0,10.587-2.019,14.624-6.057C514.018,497.866,514.018,484.771,505.942,476.694z'/></svg></span></div><ul></ul></div><div id='wp_chat_content' style='position: relative;'><span class='chat_btn_link' target='_blank' style=''><svg version='1.1' id='Layer_1' xmlns:sketch='http://www.bohemiancoding.com/sketch/ns' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='51px' height='51px' viewBox='-0.5 -0.5 51 51' enable-background='new -0.5 -0.5 51 51' xml:space='preserve'><path fill='#4DC247' d='M25,50c13.807,0,25-11.193,25-25C50,11.193,38.807,0,25,0C11.193,0,0,11.193,0,25C0,38.807,11.193,50,25,50z '/><path fill='#FFFFFF' d='M25.323,41.052c-2.927,0-5.676-0.745-8.069-2.059l-9.239,2.938l3.012-8.886 c-1.518-2.496-2.395-5.421-2.395-8.551c0-9.147,7.472-16.563,16.691-16.563c9.219,0,16.692,7.416,16.692,16.563 C42.015,33.637,34.542,41.052,25.323,41.052z M25.323,10.567c-7.742,0-14.032,6.248-14.032,13.924c0,3.047,0.993,5.866,2.673,8.165 l-1.753,5.169l5.391-1.711c2.217,1.454,4.871,2.302,7.722,2.302c7.734,0,14.033-6.246,14.033-13.923 C39.355,16.815,33.057,10.567,25.323,10.567L25.323,10.567z M33.751,28.305c-0.104-0.169-0.377-0.271-0.782-0.473 c-0.41-0.206-2.426-1.188-2.798-1.323c-0.376-0.133-0.647-0.201-0.921,0.206c-0.272,0.406-1.058,1.318-1.298,1.59 c-0.235,0.272-0.476,0.306-0.883,0.103c-0.412-0.204-1.729-0.633-3.292-2.015c-1.217-1.075-2.037-2.405-2.276-2.81 c-0.238-0.405-0.024-0.624,0.179-0.827c0.184-0.182,0.41-0.473,0.614-0.711c0.203-0.236,0.272-0.406,0.409-0.676 c0.136-0.27,0.068-0.507-0.035-0.71c-0.102-0.204-0.921-2.2-1.263-3.014c-0.34-0.811-0.68-0.677-0.919-0.677 c-0.238,0-0.511-0.035-0.784-0.035c-0.273,0-0.714,0.102-1.09,0.508c-0.375,0.407-1.432,1.39-1.432,3.385c0,2,1.465,3.928,1.669,4.2 c0.207,0.27,2.831,4.502,6.989,6.13c4.158,1.623,4.158,1.084,4.912,1.017c0.747-0.069,2.418-0.985,2.761-1.933 C33.854,29.288,33.854,28.478,33.751,28.305L33.751,28.305z'/></svg></span><span class='display_text'></span></div>";
                }
              }
              
            }

            /* $(".chat_btn_link").click(function(){
              var redirect_url = chat_url+"send?phone=Array"+chat_text;
              window.open(redirect_url,'_blank');
              });

              
              $("#wp_chat_content").click(function(){
                var redirect_url = chat_url+"send?phone=Array"+chat_text;
                window.open(redirect_url,'_blank');
                }); */
                
                var mobile_data = '';
                var single_owner_data= '';

                if(mobile_data != ''){
                 var owner_data = mobile_data.split('=');
                 single_owner_data = owner_data[1].split('@@');
               }
               $(document).on('click', '#wp_chat_content', function(){ 
     // $("#wp_chat_content").click(function(){
                var select = document.getElementById('contacts').children[1];
                
                if(select.childNodes.length <= 0){
                  var str = [];
                  var icon = "";
                  single_owner_data.forEach(function(data) {

                    str = data.split(',');
                    /*if(is_share_url=="yes"){
                      var url_link = chat_url+"send?phone="+str[0]+chat_text+" "+" "+" "+share_url;
                    }
                    else{
                      var url_link = chat_url+"send?phone="+str[0]+chat_text;
                      }*/


            //if("alanyaexperience.myshopify.com" == 'hotcrown2.myshopify.com'){
                      var new_num = str[0].replace('+','');
                      if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
                        if(is_share_url=="yes"){
                          url_link = chat_url+"/"+new_num+chat_text+" "+" "+" "+share_url;
                        }
                        else{
                          url_link = chat_url+"/"+new_num+chat_text;
                        }
                        }else{
                          if(is_share_url=="yes"){
                            url_link = chat_url+"send?phone="+str[0]+chat_text+" "+" "+" "+share_url;
                          }
                          else{
                            url_link = chat_url+"send?phone="+str[0]+chat_text;
                          }
                        }
           // }


                        var node = document.createElement("LI");
                        if(str[3] == 'icon_1'){
                          icon = '<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"><path style="fill:#D8E6F0;" d="M341.262,359.214l-64.711-23.229c-15.373-5.52-32.302-5.52-47.673,0l-64.711,23.229c-26.933,9.668-45.029,35.391-45.029,64.007v75.078c0,7.555,6.146,13.701,13.701,13.701H372.59c7.555,0,13.701-6.146,13.701-13.701v-75.078C386.291,394.604,368.194,368.882,341.262,359.214z"/><path style="fill:#B4CBDB;" d="M341.262,359.214l-64.711-23.229c-11.875-4.264-24.676-5.22-36.972-2.896c3.623,0.684,7.204,1.64,10.702,2.896l64.711,23.229c26.933,9.668,45.029,35.391,45.029,64.007v75.078c0,7.555-6.146,13.701-13.701,13.701h26.27c7.555,0,13.701-6.146,13.701-13.701v-75.078C386.291,394.604,368.194,368.882,341.262,359.214z"/><path style="fill:#BED9EA;" d="M232.198,314.393l-12.08,5.351c-16.095,7.129-26.29,23.273-25.809,40.869l1.578,57.796c0.102,3.752,4.19,6.022,7.429,4.124l49.4-28.935l49.4,28.935c3.239,1.897,7.326-0.372,7.429-4.124l1.578-57.796c0.48-17.596-9.715-33.74-25.809-40.869l-12.08-5.351C260.166,308.606,245.263,308.606,232.198,314.393z"/><path style="fill:#F0B27D;" d="M219.976,293.365v59.174c0,18.081,32.739,41.059,32.739,41.059s32.739-22.978,32.739-41.059v-59.174H219.976z"/><polygon style="fill:#394245;" points="236.099,426.075 221.202,512 284.227,512 269.33,426.075 "/><path style="fill:#636D70;" d="M252.715,393.599l-31.512,18.457c3.869,13.769,16.507,23.868,31.512,23.868s27.644-10.099,31.512-23.868L252.715,393.599z"/><path style="fill:#935D38;" d="M398.44,148.718c-7.794,45.791-36.089,81.626-61.034,76.663c-24.956-4.963-38.951-40.26-31.278-78.825c6.475-0.172,12.564-0.842,18.308-1.959c8.322-1.613,15.893-4.141,22.774-7.398c18.725-8.86,32.344-23.068,41.995-38.728C398.521,108.783,402.448,125.143,398.44,148.718z"/><path style="fill:#B4CBDB;" d="M360.299,325.857c-1.919,0-3.839-0.732-5.304-2.196c-2.929-2.93-2.929-7.678,0-10.607l12.333-12.332V254.9c0-4.143,3.357-7.5,7.5-7.5s7.5,3.357,7.5,7.5v48.928c0,1.989-0.79,3.896-2.196,5.304l-14.529,14.529C364.138,325.125,362.218,325.857,360.299,325.857z"/><g><path style="fill:#636D70;" d="M132.896,267.428h42.858v-78.052h-42.858c-10.228,0-18.52,8.292-18.52,18.52v41.013C114.376,259.136,122.668,267.428,132.896,267.428z"/>	<path style="fill:#636D70;" d="M372.533,267.428h-42.858v-78.052h42.858c10.228,0,18.52,8.292,18.52,18.52v41.013C391.053,259.136,382.762,267.428,372.533,267.428z"/></g><path style="fill:#F9C295;" d="M349.33,149.053v109.058c0,37.073-56.599,78.916-96.615,78.916c-0.548,0-1.096-0.01-1.644-0.03c-0.335,0-0.67-0.01-1.004-0.041c-0.183,0-0.376-0.01-0.568-0.02c-0.325-0.01-0.65-0.031-0.974-0.061c-0.386-0.02-0.772-0.051-1.157-0.091c-0.376-0.031-0.761-0.061-1.147-0.111c-0.832-0.081-1.665-0.193-2.497-0.305c-0.234-0.041-0.477-0.071-0.711-0.102c-0.396-0.061-0.781-0.122-1.177-0.193c-0.406-0.061-0.812-0.132-1.228-0.213c-0.061,0-0.122-0.01-0.183-0.03c-38.362-7.033-84.325-44.309-84.325-77.719v-84.153c11.529-7.389,25.29-23.18,31.572-49.881c2.578,1.522,5.247,2.974,8.018,4.364c25.25,12.645,58.74,19.496,110.438,18.115c6.475-0.172,12.564-0.842,18.308-1.959c8.322-1.613,15.893-4.141,22.774-7.398C348.579,140.893,349.33,144.882,349.33,149.053z"/><path style="fill:#DE9962;" d="M349.33,149.053v109.058c0,37.073-56.599,78.916-96.615,78.916c-0.548,0-1.096-0.01-1.644-0.03c-0.335,0-0.67-0.01-1.004-0.041c-0.183,0-0.376-0.01-0.568-0.02c-0.325-0.01-0.65-0.031-0.974-0.061c-0.386-0.02-0.772-0.051-1.157-0.091c-0.376-0.031-0.761-0.061-1.147-0.111c-0.832-0.081-1.665-0.193-2.497-0.305c-0.234-0.041-0.477-0.071-0.711-0.102c-0.396-0.061-0.781-0.122-1.177-0.193c-0.406-0.061-0.812-0.132-1.228-0.213c-0.061,0-0.122-0.01-0.183-0.03c38.372-7.054,84.305-44.309,84.305-77.719V149.053c0-1.512-0.102-2.994-0.294-4.455c8.322-1.613,15.893-4.141,22.774-7.398C348.579,140.893,349.33,144.882,349.33,149.053z"/> <g><path style="fill:#3A3B4A;" d="M252.95,275.848c-11.417,0-22.829-4.309-31.726-12.93c-2.975-2.883-3.049-7.631-0.166-10.605c2.882-2.975,7.63-3.05,10.605-0.166c11.935,11.565,30.636,11.566,42.574,0c2.975-2.884,7.724-2.808,10.604,0.167c2.883,2.975,2.808,7.723-0.167,10.604C275.782,271.537,264.364,275.848,252.95,275.848z"/><path style="fill:#3A3B4A;" d="M318.771,212.679c-2.097,0-4.183-0.875-5.666-2.582c-1.374-1.583-3.112-2.454-4.895-2.454s-3.521,0.871-4.895,2.454c-2.718,3.127-7.454,3.459-10.581,0.745c-3.127-2.716-3.461-7.453-0.745-10.581c4.205-4.841,10.117-7.618,16.221-7.618s12.016,2.777,16.221,7.618c2.716,3.128,2.382,7.865-0.745,10.581C322.266,212.074,320.514,212.679,318.771,212.679z"/><path style="fill:#3A3B4A;" d="M207.779,212.679c-2.097,0-4.183-0.875-5.666-2.582c-1.374-1.583-3.112-2.454-4.895-2.454s-3.521,0.871-4.895,2.454c-2.718,3.127-7.454,3.459-10.581,0.745c-3.127-2.716-3.461-7.453-0.745-10.581c4.205-4.841,10.117-7.618,16.221-7.618s12.016,2.777,16.221,7.618c2.716,3.128,2.382,7.865-0.745,10.581C211.274,212.074,209.522,212.679,207.779,212.679z"/></g><path style="fill:#FFDC48;" d="M365.603,313.055c-3.581-3.581-8.342-5.554-13.406-5.554s-9.825,1.973-13.405,5.553l-5.564,5.563c-7.391,7.392-7.391,19.42,0.001,26.813c3.696,3.695,8.551,5.543,13.405,5.543c4.855,0,9.71-1.848,13.406-5.543l0.001-0.001l5.562-5.563c3.581-3.581,5.554-8.342,5.554-13.406S369.183,316.635,365.603,313.055z"/><path style="fill:#B78358;" d="M389.204,98.472c22.743-36.84,23.565-81.646,17.435-83.3c-10.372-2.801-61.775-4.943-172.528-14.208c-103.547-8.667-102.776,43.233-98.209,71.578c-23.971,5.419-38.332,23.352-32.506,58.101c4.17,24.83,15.538,46.337,29.291,58.743c0.07-0.001,0.138-0.01,0.207-0.01h23.203v-15.418c11.529-7.389,25.29-23.18,31.572-49.881c2.578,1.522,5.247,2.974,8.018,4.364c25.25,12.645,58.74,19.496,110.438,18.115c6.475-0.172,12.564-0.842,18.308-1.959c8.322-1.613,15.893-4.141,22.774-7.398C365.933,128.339,379.553,114.131,389.204,98.472z"/></svg>';
                          }else if(str[3] == 'icon_2'){
                            icon = '<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512.003 512.003" style="enable-background:new 0 0 512.003 512.003;" xml:space="preserve"><path style="fill:#B4CBDB;" d="M356.919,325.858c-1.919,0-3.839-0.732-5.303-2.196c-2.929-2.93-2.929-7.678,0-10.606l12.332-12.333 v-45.822c0-4.143,3.358-7.5,7.5-7.5s7.5,3.357,7.5,7.5v48.928c0,1.989-0.79,3.896-2.197,5.303l-14.529,14.529 C360.758,325.126,358.839,325.858,356.919,325.858z"/><path style="fill:#E0E6E9;" d="M337.881,359.215l-64.711-23.229c-15.371-5.52-32.302-5.519-47.671,0l-64.711,23.229 c-26.933,9.668-45.029,35.39-45.029,64.007V498.3c0,7.555,6.146,13.701,13.701,13.701h239.75c7.555,0,13.701-6.146,13.701-13.701 v-75.078C382.911,394.606,364.815,368.883,337.881,359.215z"/><path style="fill:#B4BEC1;" d="M337.881,359.215l-64.711-23.229c-11.71-4.205-24.323-5.197-36.463-2.995 c3.796,0.688,7.547,1.68,11.208,2.995l64.711,23.229c26.934,9.668,45.029,35.39,45.029,64.007V498.3 c0,7.555-6.146,13.701-13.701,13.701h25.255c7.555,0,13.701-6.146,13.701-13.701v-75.078 C382.911,394.606,364.815,368.883,337.881,359.215z"/><g><path style="fill:#CAD6DB;" d="M341.781,512.001c0.272-1.147,0.306-2.357,0.081-3.544l-7.769-40.92l15.619-21.224c3.116-4.235,3.767-9.909,1.697-14.809l-33.825-80.053c-0.846-2.002-2.427-3.552-4.379-4.293l-8.437-3.202c-2.331-0.883-4.925-0.515-6.95,0.994c-2.026,1.507-3.232,3.962-3.232,6.583v158.51c0,0.677,0.088,1.331,0.237,1.96h46.958V512.001z"/><path style="fill:#CAD6DB;" d="M165.216,467.536l-7.769,40.92c-0.226,1.188-0.192,2.398,0.081,3.544h46.958c0.149-0.628,0.237-1.282,0.237-1.96V351.531c0-2.62-1.206-5.076-3.232-6.583c-2.026-1.508-4.62-1.876-6.95-0.994l-8.437,3.202c-1.951,0.741-3.533,2.291-4.379,4.293l-33.824,80.055c-2.07,4.898-1.419,10.572,1.697,14.806L165.216,467.536z"/></g><path style="fill:#81EBC7;" d="M197.111,512.001h105.086V354.492l-31.598-11.343c-13.747-4.935-28.782-4.935-42.528,0 l-30.959,11.113L197.111,512.001L197.111,512.001z"/><path style="fill:#5ED3A9;" d="M228.818,314.394l-12.08,5.351c-16.095,7.129-26.29,23.273-25.809,40.869l1.578,57.796 c0.102,3.752,4.19,6.022,7.429,4.124l49.4-28.935l49.4,28.935c3.239,1.897,7.326-0.372,7.429-4.124l1.578-57.796 c0.48-17.596-9.715-33.74-25.809-40.869l-12.08-5.351C256.786,308.607,241.884,308.607,228.818,314.394z"/><path style="fill:#5A5E70;" d="M124.277,124.418v91.487h250.754v-91.487c0-23.548-19.089-42.637-42.637-42.637h-165.48 C143.367,81.781,124.277,100.87,124.277,124.418z"/><path style="fill:#DEA565;" d="M128.073,252.095h24.966v-47.384h-24.966c-13.085,0-23.692,10.607-23.692,23.692l0,0 C104.381,241.488,114.988,252.095,128.073,252.095z"/><path style="fill:#FFDC48;" d="M362.222,313.055c-7.393-7.391-19.42-7.391-26.813,0l-5.563,5.563c-7.391,7.392-7.391,19.42,0,26.813 c3.696,3.695,8.551,5.543,13.406,5.543s9.71-1.848,13.406-5.543l5.563-5.563c3.581-3.581,5.553-8.342,5.553-13.406 S365.803,316.636,362.222,313.055z"/><path style="fill:#80B9F9;" d="M370.201,264.385h-35.802v-68.339h35.802c14.125,0,25.576,11.451,25.576,25.576v17.188 C395.777,252.934,384.326,264.385,370.201,264.385z"/><path style="fill:#C78E4D;" d="M216.596,293.367v59.174c0,18.081,32.739,41.059,32.739,41.059s32.739-22.978,32.739-41.059v-59.174 H216.596z"/><path style="fill:#D19A5C;" d="M191.118,114.974c-21.031,0-38.079,17.049-38.079,38.079v105.06 c0,37.074,56.599,78.912,96.615,78.912s96.615-41.838,96.615-78.912V149.056c0-18.823-15.259-34.082-34.082-34.082 C312.187,114.974,191.118,114.974,191.118,114.974z"/><path style="fill:#A3713B;" d="M312.187,114.974h-24.598c18.823,0,34.082,15.259,34.082,34.082v109.056 c0,33.405-45.949,70.671-84.316,77.722c4.214,0.774,8.339,1.19,12.299,1.19c40.016,0,96.615-41.838,96.615-78.912V149.056 C346.27,130.233,331.011,114.974,312.187,114.974z"/><path style="fill:#4D4E5B;" d="M428.376,89.632c-16.18-37.897-58.12-56.154-71.82-61.238c-2.377-0.882-3.376-3.707-2.066-5.878 c1.974-3.272,5.296-8.057,10.321-13.189c2.419-2.471,0.895-6.632-2.552-6.917c-79.268-6.557-126.492,11.352-144.176,20.04 c-3.09,1.518-6.541-1.264-5.721-4.608c0.891-3.632,1.955-8.094,3.024-12.883c0.621-2.781-1.748-5.35-4.563-4.909 c-42.068,6.588-86.021,52.917-95.284,77.932c-0.585,1.581-2.118,2.611-3.804,2.604c-7.666-0.037-13.677-0.368-23.121-3.367 c-3.234-1.027-6.248,2.115-5.052,5.29c12.95,34.372,47.546,61.941,69.477,75.772v-5.228c0-21.03,17.049-38.079,38.079-38.079 h121.069c18.823,0,34.082,15.259,34.082,34.082v17.31l18.055-10.424c6.963-4.02,15.475-4.253,22.653-0.63 c4.77,2.408,10.655,5.466,16.986,8.951c2.39,1.316,5.398-0.056,5.933-2.731c4.597-22.999-2.382-48.013-5.563-57.624 c-0.741-2.238,0.581-4.633,2.869-5.202c4.457-1.109,11.627-2.733,17.894-3.427C427.809,94.98,429.448,92.143,428.376,89.632z"/><g><path style="fill:#303449;" d="M361.827,94.81c-30.107-26.056-56.75-25.28-73.795-20.04c-10.159,3.122-19.577,8.705-27.235,16.145 c-7.036,6.835-12.004,14.692-13.989,22.124c-0.173,0.647-0.247,1.296-0.247,1.936h15.36c4.278-11.672,18.482-22.167,30.518-25.866 c13.426-4.123,34.658-4.518,59.573,17.044c3.133,2.711,7.868,2.368,10.579-0.763C365.301,102.256,364.959,97.52,361.827,94.81z"/> <path style="fill:#303449;" d="M208.254,114.974c0.001-0.992-0.194-2-0.612-2.969c-3.104-7.202-2.871-20.331,4.977-32.14 c7.869-11.84,25.398-25.88,64.367-25.512c4.15,0.038,7.531-3.288,7.569-7.43c0.039-4.143-3.288-7.531-7.43-7.57 c-19.028-0.188-35.54,2.87-49.05,9.059c-11.984,5.489-21.388,13.278-27.949,23.15c-8.987,13.523-11.734,30.191-7.372,43.411 L208.254,114.974L208.254,114.974z"/></g><g><path style="fill:#3A3B4A;" d="M249.571,279.836c-9.508,0-19.016-3.589-26.424-10.769c-2.975-2.882-3.049-7.63-0.167-10.604c2.882-2.976,7.63-3.051,10.605-0.167c8.964,8.686,23.008,8.686,31.972,0c2.975-2.884,7.723-2.808,10.605,0.167c2.882,2.975,2.808,7.723-0.167,10.604C268.586,276.247,259.078,279.836,249.571,279.836z"/><path style="fill:#3A3B4A;" d="M315.391,212.68c-2.098,0-4.183-0.875-5.667-2.583c-1.374-1.582-3.112-2.453-4.894-2.453s-3.521,0.871-4.895,2.454c-2.716,3.127-7.452,3.461-10.581,0.745c-3.127-2.716-3.461-7.453-0.746-10.581c4.205-4.841,10.117-7.618,16.221-7.618l0,0c6.104,0,12.016,2.777,16.22,7.619c2.716,3.127,2.382,7.864-0.746,10.58C318.885,212.075,317.134,212.68,315.391,212.68z"/><path style="fill:#3A3B4A;" d="M183.279,212.68c-1.743,0-3.494-0.604-4.914-1.837c-3.127-2.716-3.461-7.453-0.746-10.58c4.204-4.842,10.116-7.619,16.22-7.619s12.017,2.776,16.221,7.618c2.716,3.128,2.382,7.865-0.746,10.581c-3.128,2.715-7.865,2.38-10.581-0.745c-1.374-1.583-3.112-2.454-4.895-2.454s-3.521,0.871-4.894,2.453C187.462,211.805,185.376,212.68,183.279,212.68z"/></g><g><path style="fill:#5A5E70;" d="M249.655,325.858c-31.099,0-56.4-20.937-56.4-46.671c0-46.671,40.975-46.671,56.4-46.671s56.4,0,56.4,46.671C306.055,304.922,280.754,325.858,249.655,325.858z M249.655,247.517c-30.567,0-41.4,8.288-41.4,31.671c0,17.464,18.572,31.671,41.4,31.671s41.4-14.207,41.4-31.671C291.055,255.805,280.221,247.517,249.655,247.517z"/><path style="fill:#5A5E70;" d="M346.27,258.113v-29.388l-20.83,15.486c-1.203,0.894-2.033,2.2-2.333,3.668l-2.56,12.535c-3.203,15.684-14.222,28.644-29.21,34.266c-11.503,4.314-26.088,8.133-41.683,8.133s-30.18-3.819-41.683-8.133c-14.988-5.622-26.006-18.582-29.21-34.266l-2.56-12.535c-0.3-1.468-1.131-2.774-2.333-3.668l-20.83-15.486v29.388c0,37.074,56.599,78.912,96.615,78.912S346.27,295.187,346.27,258.113z"/></g></svg>';
                            }else if(str[3] == 'icon_3'){
                              icon = '<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"> <path style="fill:#46495E;" d="M424.486,135.992c-4.745-35.771-19.662-62.174-38.79-81.651C378.113,11.502,334.13,0,256,0 C232.301,0,104.428,8.476,87.514,135.992c-25.719,193.892,74.954,299.132,105.4,314.693c45.854,0,98.926,0,126.173,0 C349.532,435.124,450.205,329.884,424.486,135.992z"/> <g> <path style="fill:#303449;" d="M424.486,135.992c-4.745-35.771-19.662-62.174-38.79-81.651C378.113,11.502,334.13,0,256,0 c-2.128,0-5.107,0.071-8.759,0.287c65.733,1.99,102.925,14.992,109.84,54.054c19.128,19.477,34.045,45.88,38.79,81.651 c25.719,193.892-74.954,299.132-105.4,314.693c11.109,0,20.899,0,28.616,0C349.532,435.124,450.206,329.885,424.486,135.992z"/> <rect x="160.58" y="233.41" style="fill:#303449;" width="95.42" height="164.55"/> </g> <path style="fill:#81EBC7;" d="M344.546,359.214l-64.71-23.229c-15.371-5.52-32.302-5.52-47.671,0l-64.711,23.229 c-26.933,9.668-45.029,35.39-45.029,64.007v75.078c0,7.555,6.146,13.701,13.701,13.701h239.75c7.555,0,13.701-6.146,13.701-13.701 v-75.078C389.576,394.605,371.48,368.882,344.546,359.214z"/> <path style="fill:#50B596;" d="M344.546,359.214l-64.71-23.229c-11.828-4.248-24.579-5.213-36.832-2.923 c3.67,0.686,7.298,1.651,10.84,2.923l64.71,23.229c26.934,9.668,45.03,35.39,45.03,64.007v75.078 c0,7.555-6.146,13.701-13.701,13.701h25.992c7.555,0,13.701-6.146,13.701-13.701v-75.078 C389.576,394.605,371.48,368.882,344.546,359.214z"/> <path style="fill:#F0B27D;" d="M322.232,351.204l-25.882-9.291v-48.547c0-4.204-3.408-7.611-7.611-7.611h-65.478 c-4.204,0-7.611,3.407-7.611,7.611v48.547l-25.308,9.085c-3.753,1.347-5.831,5.363-4.761,9.205 c5.712,20.515,16.057,46.156,28.383,70.347c7.565,14.847,22.44,41.862,37.067,55.974c1.475,1.423,3.38,2.134,5.285,2.134 s3.811-0.712,5.285-2.134c14.602-14.088,29.454-41.043,37.007-55.856c12.303-24.131,22.649-49.735,28.383-70.252 C328.065,356.573,325.989,352.552,322.232,351.204z"/> <path style="fill:#E6EFF5;" d="M203.047,407.595c3.39,7.659,7.056,15.378,10.917,22.955c7.565,14.847,22.44,41.862,37.067,55.974 c1.475,1.423,3.38,2.134,5.285,2.134s3.811-0.712,5.285-2.134c14.602-14.088,29.454-41.043,37.007-55.856 c3.881-7.612,7.566-15.372,10.975-23.071C274.073,424.894,238.561,424.891,203.047,407.595z"/> <path style="fill:#DE9962;" d="M322.232,351.204l-0.663-0.238l-25.219-9.053v9.33l22.204,7.971c2.696,0.968,5.298,2.103,7.807,3.379 c0.211-0.727,0.429-1.462,0.629-2.177C328.065,356.573,325.989,352.552,322.232,351.204z"/> <path style="fill:#B4CBDB;" d="M363.584,325.857c-1.919,0-3.839-0.732-5.303-2.196c-2.929-2.929-2.929-7.678,0-10.606l10.546-10.547 c1.151-1.152,1.786-2.683,1.786-4.311V254.9c0-4.143,3.358-7.5,7.5-7.5s7.5,3.357,7.5,7.5v43.297c0,5.635-2.194,10.932-6.179,14.917 l-10.546,10.546C367.423,325.125,365.504,325.857,363.584,325.857z"/> <path style="fill:#80B9F9;" d="M372.537,264.384h-35.802v-68.339h35.802c14.125,0,25.576,11.451,25.576,25.576v17.188 C398.112,252.933,386.662,264.384,372.537,264.384z"/> <path style="fill:#FFDC48;" d="M368.888,313.054c-7.393-7.391-19.42-7.391-26.813,0l-5.563,5.563 c-3.581,3.581-5.553,8.342-5.553,13.406s1.972,9.825,5.553,13.405c3.581,3.582,8.342,5.554,13.406,5.554s9.825-1.972,13.406-5.553 l5.563-5.563C376.279,332.475,376.279,320.446,368.888,313.054z"/> <path style="fill:#F9C295;" d="M341.067,168.168c6.947,2.993,11.553,9.703,11.553,17.268v72.675 c0,37.073-56.599,78.916-96.615,78.916c-30.091,0-69.569-23.667-87.299-51.159v-72.512c0-27.554,20.561-50.764,47.912-54.082 l31.278-3.806c23.799-2.882,44.816-16.918,56.609-37.794l1.522-2.699h5.47v8.261C311.498,143.374,323.674,160.675,341.067,168.168z" /> <path style="fill:#DE9962;" d="M341.067,168.169c-17.394-7.494-29.569-24.795-29.569-44.933v-8.261h-5.47l-1.522,2.699 c-3.146,5.568-6.953,10.644-11.289,15.157c2.745,15.924,12.184,29.066,24.793,35.337c6.017,2.993,10.007,9.703,10.007,17.267v72.675 c0,35.173-44.129,74.633-78.255,78.587c2.117,0.211,4.202,0.329,6.242,0.329c40.016,0,96.615-41.843,96.615-78.916v-72.675 C352.62,177.872,348.014,171.161,341.067,168.169z"/> <g> <path style="fill:#3A3B4A;" d="M256.236,274.815c-9.603,0-19.206-3.625-26.689-10.877c-2.975-2.883-3.049-7.631-0.167-10.605 c2.882-2.974,7.63-3.05,10.605-0.166c9.112,8.83,23.389,8.83,32.501,0c2.975-2.885,7.724-2.808,10.605,0.166 c2.883,2.975,2.808,7.723-0.167,10.605C275.442,271.19,265.839,274.815,256.236,274.815z"/> <path style="fill:#3A3B4A;" d="M322.056,212.679c-2.098,0-4.183-0.874-5.666-2.582c-1.374-1.582-3.112-2.453-4.895-2.453 s-3.521,0.871-4.895,2.453c-2.715,3.128-7.452,3.462-10.581,0.744c-3.127-2.716-3.46-7.453-0.745-10.58 c4.205-4.841,10.117-7.617,16.22-7.617l0,0c6.104,0,12.015,2.776,16.219,7.617c2.716,3.128,2.382,7.864-0.745,10.581 C325.551,212.074,323.799,212.679,322.056,212.679z"/> <path style="fill:#3A3B4A;" d="M189.944,212.679c-1.743,0-3.495-0.604-4.914-1.837c-3.127-2.717-3.461-7.453-0.745-10.581 c4.204-4.841,10.116-7.617,16.219-7.617c6.104,0,12.016,2.776,16.221,7.617c2.716,3.127,2.383,7.864-0.745,10.58 c-3.128,2.717-7.865,2.383-10.581-0.744c-1.374-1.582-3.112-2.453-4.895-2.453s-3.521,0.871-4.895,2.453 C194.127,211.804,192.041,212.679,189.944,212.679z"/> </g> <path style="fill:#46495E;" d="M256,0c-5.394,0-151.572,8.477-168.486,135.992c-23.533,177.411,58.752,280.599,96.234,308.781 c2.616,1.967,6.203-0.645,5.094-3.724c-10.652-29.581-20.139-89.542-20.139-124.187V213.35c0-27.549,20.566-50.762,47.914-54.082 l31.278-3.797c23.804-2.889,44.817-16.92,56.609-37.799l17.549-31.071"/> </svg>';
                              }else if(str[3] == 'icon_4'){
                                icon = '<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"> <path style="fill:#E87769;" d="M372.658,54.692C331.926-5.158,231.149-9.16,182.944,10.786 C74.166,55.793,58.457,185.141,87.55,258.075c36.452,91.382,56.805,137.683,56.805,210.077h209.922 c0-72.394,31.039-118.696,67.491-210.077C450.861,185.141,441.529,80.473,372.658,54.692z"/> <path style="fill:#C95047;" d="M372.658,54.692c-28.215-41.458-85.24-56.113-133.646-54.578 c41.586,1.428,87.068,16.982,110.683,54.578c63.564,25.781,72.176,130.449,45.326,203.383 c-33.642,91.382-62.289,137.683-62.289,210.077h21.547c0-72.394,31.039-118.696,67.491-210.077 C450.861,185.141,441.529,80.473,372.658,54.692z"/> <path style="fill:#D8E6F0;" d="M344.546,359.214l-64.71-23.229c-15.371-5.52-32.302-5.52-47.671,0l-64.711,23.229 c-26.933,9.668-45.029,35.39-45.029,64.007v75.078c0,7.555,6.146,13.701,13.701,13.701h239.75c7.555,0,13.701-6.146,13.701-13.701 v-75.078C389.576,394.605,371.48,368.882,344.546,359.214z"/> <g> <path style="fill:#636D70;" d="M256,442.237c-4.143,0-7.5-3.357-7.5-7.5v-1.016c0-4.143,3.357-7.5,7.5-7.5 c4.143,0,7.5,3.357,7.5,7.5v1.016C263.5,438.88,260.143,442.237,256,442.237z"/> <path style="fill:#636D70;" d="M256,480.428c-4.143,0-7.5-3.357-7.5-7.5v-1.015c0-4.143,3.357-7.5,7.5-7.5 c4.143,0,7.5,3.357,7.5,7.5v1.015C263.5,477.07,260.143,480.428,256,480.428z"/> </g> <path style="fill:#B4CBDB;" d="M344.546,359.214l-64.71-23.229c-11.873-4.264-24.675-5.22-36.971-2.896 c3.623,0.684,7.203,1.64,10.701,2.896l64.71,23.229c26.934,9.668,45.03,35.39,45.03,64.007v75.078 c0,7.555-6.146,13.701-13.701,13.701h26.27c7.555,0,13.701-6.146,13.701-13.701v-75.078 C389.576,394.605,371.48,368.882,344.546,359.214z"/> <path style="fill:#BED9EA;" d="M235.483,314.393l-12.08,5.351c-16.095,7.129-26.29,23.273-25.809,40.869l1.578,57.796 c0.102,3.752,4.19,6.022,7.429,4.124l49.4-28.935l49.4,28.935c3.239,1.897,7.326-0.372,7.429-4.124l1.578-57.796 c0.48-17.596-9.715-33.74-25.809-40.869l-12.08-5.351C263.451,308.606,248.549,308.606,235.483,314.393z"/> <path style="fill:#F0B27D;" d="M222.941,293.366v59.174c0,18.081,32.739,41.059,32.739,41.059s32.739-22.978,32.739-41.059v-59.174 H222.941z"/> <path style="fill:#FFC599;" d="M134.418,252.094h24.966V204.71h-24.966c-13.085,0-23.692,10.607-23.692,23.692l0,0 C110.727,241.487,121.334,252.094,134.418,252.094z"/> <path style="fill:#B4CBDB;" d="M363.265,325.857c-1.919,0-3.839-0.732-5.304-2.196c-2.929-2.93-2.929-7.678,0-10.607l12.333-12.332 V254.9c0-4.143,3.357-7.5,7.5-7.5s7.5,3.357,7.5,7.5v48.928c0,1.989-0.79,3.896-2.196,5.304l-14.529,14.529 C367.104,325.125,365.184,325.857,363.265,325.857z"/> <path style="fill:#FFDC48;" d="M357.702,340.126l5.563-5.563c4.475-4.475,4.475-11.731,0-16.206s-11.731-4.475-16.206,0 l-5.563,5.563c-4.475,4.475-4.475,11.731,0,16.206S353.227,344.601,357.702,340.126z"/> <path d="M349.599,350.973c-4.854,0-9.709-1.848-13.405-5.543c-7.392-7.393-7.392-19.421-0.001-26.813l5.563-5.563 c7.394-7.392,19.422-7.39,26.813,0c7.391,7.392,7.392,19.42,0,26.813l-5.563,5.563c-0.001,0-0.001,0-0.001,0 C359.309,349.125,354.454,350.973,349.599,350.973z M357.702,340.126h0.01H357.702z M355.162,322.503 c-1.015,0-2.028,0.386-2.801,1.158l-5.562,5.563c-1.544,1.543-1.544,4.056,0,5.6c1.543,1.543,4.056,1.544,5.599-0.001l5.563-5.563 c1.544-1.543,1.544-4.056,0-5.599C357.189,322.889,356.176,322.503,355.162,322.503z"/> <path style="fill:#FFDC48;" d="M368.568,313.054c-7.392-7.39-19.42-7.392-26.813,0l-5.563,5.563 c-7.391,7.392-7.391,19.42,0.001,26.813c3.696,3.695,8.551,5.543,13.405,5.543c4.855,0,9.71-1.848,13.406-5.543c0,0,0,0,0.001,0 l5.563-5.563C375.96,332.474,375.959,320.445,368.568,313.054z"/> <path style="fill:#80B9F9;" d="M376.547,264.384h-35.802v-68.339h35.802c14.125,0,25.576,11.451,25.576,25.576v17.188 C402.122,252.933,390.672,264.384,376.547,264.384z"/> <path style="fill:#F9C295;" d="M352.615,171.462v86.649c0,37.073-56.599,78.916-96.615,78.916s-96.615-41.843-96.615-78.916V173.38 c66.311-3.795,85.137-22.936,89.988-30.365c0.528-0.812,1.786-0.487,1.857,0.477c0.457,5.795,1.126,17.74-0.091,26.64 c-0.102,0.68,0.518,1.258,1.187,1.136c29.797-5.409,51.728-17.364,67.377-33.704C324.209,155.762,336.793,166.803,352.615,171.462z" /> <path style="fill:#DE9962;" d="M328.017,155.17v102.942c0,33.404-45.949,70.671-84.316,77.721c3.12,0.573,6.19,0.947,9.182,1.105 c0.088,0.004,0.176,0.008,0.264,0.012c0.96,0.046,1.912,0.073,2.854,0.073c24.385,0,54.928-15.536,75.068-36.063 c12.911-13.159,21.547-28.368,21.547-42.85v-86.649C342.774,168.564,334.189,163.193,328.017,155.17z"/> <g> <path style="fill:#3A3B4A;" d="M255.916,279.835c-9.508,0-19.016-3.589-26.424-10.769c-2.976-2.882-3.05-7.63-0.167-10.604 c2.882-2.976,7.631-3.05,10.604-0.167c8.965,8.686,23.008,8.686,31.973,0c2.974-2.883,7.723-2.809,10.604,0.167 c2.883,2.975,2.809,7.723-0.167,10.604C274.932,276.246,265.424,279.835,255.916,279.835z"/> <path style="fill:#3A3B4A;" d="M321.736,212.679c-2.097,0-4.183-0.875-5.666-2.582c-1.374-1.583-3.112-2.454-4.895-2.454 s-3.521,0.871-4.895,2.454c-2.718,3.127-7.454,3.459-10.581,0.745c-3.127-2.716-3.461-7.453-0.745-10.581 c4.205-4.841,10.117-7.618,16.221-7.618s12.016,2.777,16.221,7.618c2.716,3.128,2.382,7.865-0.745,10.581 C325.231,212.074,323.479,212.679,321.736,212.679z"/> <path style="fill:#3A3B4A;" d="M210.745,212.679c-2.097,0-4.183-0.875-5.666-2.582c-1.374-1.583-3.112-2.454-4.895-2.454 s-3.52,0.871-4.894,2.453c-2.715,3.128-7.452,3.461-10.58,0.746c-3.128-2.716-3.462-7.452-0.746-10.58 c4.204-4.842,10.115-7.619,16.219-7.619c6.104,0,12.017,2.776,16.222,7.618c2.716,3.128,2.382,7.865-0.745,10.581 C214.24,212.074,212.488,212.679,210.745,212.679z"/> </g> </svg>';
                                }else if(str[3] == 'icon_5'){
                                  icon = '<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"> <path style="fill:#B4CBDB;" d="M379.168,297.43c-1.919,0-3.839-0.732-5.303-2.197c-2.929-2.929-2.929-7.677,0-10.606l14.552-14.553 v-53.298c0-4.142,3.358-7.5,7.5-7.5s7.5,3.358,7.5,7.5v56.405c0,1.989-0.79,3.896-2.197,5.303l-16.749,16.75 C383.007,296.697,381.087,297.43,379.168,297.43z"/> <path style="fill:#80B9F9;" d="M86.942,178.405v19.819c0,16.286,13.197,29.483,29.483,29.483h28.196 c-0.398-2.422-0.608-4.832-0.608-7.23v-71.554h-27.588C100.139,148.922,86.942,162.131,86.942,178.405z"/> <path style="fill:#ED6161;" d="M356.843,338.087l-74.617-26.785c-17.47-6.27-36.712-6.27-54.182,0l-74.616,26.785 c-30.595,10.983-51.151,40.202-51.151,72.709v86.571c0,8.068,6.564,14.633,14.633,14.633h276.451 c8.068,0,14.633-6.564,14.633-14.633v-86.571C407.993,378.289,387.437,349.07,356.843,338.087z"/> <path style="fill:#D14848;" d="M356.843,338.087l-74.617-26.785c-13.253-4.756-27.524-5.896-41.269-3.436 c4.374,0.783,8.696,1.922,12.913,3.436l74.617,26.785c30.595,10.983,51.151,40.202,51.151,72.709v86.571 c0,8.068-6.564,14.633-14.633,14.633h28.356c8.068,0,14.633-6.564,14.633-14.633v-86.571 C407.993,378.289,387.437,349.07,356.843,338.087z"/> <polygon style="fill:#80B9F9;" points="245.462,400.026 221.705,512 291.392,512 267.635,400.026 "/> <circle style="fill:#3185DB;" cx="256" cy="385.01" r="38.1"/> <path style="fill:#D14848;" d="M229.203,371.819l-27.896,38.13c-2.738,3.743-8.568,2.789-9.97-1.632L171.68,346.34 c-5.229-16.487,3.802-34.109,20.239-39.492l63.215-20.704l63.215,20.704c16.437,5.384,25.468,23.005,20.239,39.492l-19.656,61.978 c-1.402,4.421-7.232,5.375-9.97,1.632l-27.896-38.13L229.203,371.819L229.203,371.819z"/> <path style="fill:#F0B27D;" d="M292.886,323.216v-62.153h-75.501v62.153l-21.177,7.602c4.157,18.131,16.936,32.23,32.859,41.002 c7.105,3.914,19.373,7.34,27.482,7.104c7.52-0.219,18.158-3.311,24.655-7.104c15.699-9.167,28.702-22.871,32.859-41.002 L292.886,323.216z"/> <path style="fill:#F9C295;" d="M249.979,0c-58.188,0-105.358,47.171-105.358,105.358v115.118c0,42.738,65.248,90.975,111.379,90.975 c43.546,0,104.126-42.984,110.771-83.745c0.398-2.422,0.608-4.832,0.608-7.23V105.358C367.379,47.171,320.209,0,262.021,0H249.979z" /> <path style="fill:#DE9962;" d="M262.021,0h-12.042c-0.324,0-0.646,0.009-0.969,0.012c50.921,0.521,92.06,47.482,92.06,105.346 v115.118c0,2.398-0.186,4.808-0.536,7.23c-5.553,38.625-53.814,79.238-91.533,83.39c2.373,0.231,4.71,0.355,7,0.355 c43.546,0,104.126-42.984,110.771-83.745c0.398-2.422,0.608-4.832,0.608-7.23V105.358C367.379,47.17,320.209,0,262.021,0z"/> <g> <path style="fill:#3A3B4A;" d="M255.784,239.776c-12.875,0-25.744-4.859-35.776-14.581c-2.975-2.882-3.049-7.63-0.167-10.605 c2.882-2.975,7.63-3.05,10.605-0.167c14.207,13.768,36.466,13.768,50.675,0c2.975-2.883,7.724-2.808,10.605,0.167 c2.883,2.975,2.808,7.723-0.167,10.605C281.53,234.915,268.655,239.776,255.784,239.776z"/> <path style="fill:#3A3B4A;" d="M331.662,166.956c-2.098,0-4.183-0.875-5.666-2.583c-1.805-2.078-4.116-3.223-6.508-3.223 s-4.703,1.145-6.508,3.223c-2.715,3.128-7.451,3.462-10.58,0.745c-3.127-2.716-3.461-7.453-0.745-10.58 c4.697-5.409,11.03-8.388,17.833-8.388s13.137,2.979,17.833,8.388c2.716,3.127,2.382,7.864-0.745,10.58 C335.156,166.351,333.405,166.956,331.662,166.956z"/> <path style="fill:#3A3B4A;" d="M203.71,166.956c-2.098,0-4.183-0.875-5.666-2.583c-1.805-2.078-4.116-3.223-6.508-3.223 s-4.703,1.145-6.508,3.223c-2.715,3.128-7.452,3.462-10.58,0.745c-3.127-2.716-3.461-7.453-0.745-10.58 c4.697-5.409,11.03-8.388,17.833-8.388c6.803,0,13.136,2.979,17.833,8.388c2.716,3.127,2.382,7.864-0.745,10.58 C207.205,166.351,205.453,166.956,203.71,166.956z"/> </g> <path style="fill:#80B9F9;" d="M425.058,178.405v19.819c0,16.286-13.197,29.483-29.483,29.483h-28.196 c0.398-2.422,0.608-4.832,0.608-7.23v-71.554h27.588C411.861,148.922,425.058,162.131,425.058,178.405z"/> <path style="fill:#FFDC48;" d="M384.471,284.626c-3.912-3.912-9.113-6.066-14.645-6.066s-10.733,2.155-14.644,6.066l-6.414,6.413 c-8.074,8.075-8.074,21.214,0,29.289c4.038,4.038,9.341,6.056,14.645,6.056c5.303,0,10.606-2.019,14.644-6.056l6.413-6.413 c3.912-3.912,6.066-9.112,6.066-14.644S388.383,288.538,384.471,284.626z"/> <path style="fill:#4D4E5B;" d="M320.956,228.817c-0.338-2.129-2.203-3.716-4.344-3.658c-2.156,0.029-3.963,1.637-4.243,3.775 c-2.457,18.767-14.073,35.025-31.073,43.489c-1.097,0.547-2.335,0.605-3.484,0.164c-1.175-0.451-2.078-1.346-2.543-2.522 c-3.573-9.037-10.956-14.651-19.27-14.651c-8.314,0-15.698,5.614-19.269,14.651c-0.465,1.176-1.368,2.072-2.542,2.522 c-1.149,0.442-2.386,0.383-3.486-0.164c-16.999-8.464-28.615-24.721-31.072-43.489c-0.28-2.138-2.087-3.746-4.243-3.775 c-2.144-0.049-4.006,1.53-4.344,3.659c-0.393,2.484-0.593,4.99-0.593,7.449v41.462c0,36.144,29.405,65.549,65.55,65.549 c36.144,0,65.549-29.405,65.549-65.549v-41.462C321.549,233.807,321.35,231.3,320.956,228.817z"/> <path style="fill:#D14848;" d="M370.949,459.708h-45.728c-4.142,0-7.5-3.358-7.5-7.5s3.358-7.5,7.5-7.5h45.728 c4.142,0,7.5,3.358,7.5,7.5S375.091,459.708,370.949,459.708z"/> </svg>';
                                }
                                
                                var name = 'Write Us..!';
                                var role = 'Support';
                                if(str[1] != ''){
                                  var name = str[1];
                                }
                                if(str[2] != ''){
                                  var role = str[2];
                                }

                                node.style.listStyle = 'none';
                                
            //node.style.padding = '10px 0px 10px 10px';
            //node.style.backgroundColor = '#f5f5f5';
            //node.style.marginBottom = '10px';
            //node.style.borderLeft = '2px solid #4dc247';
            //console.log("alanyaexperience.myshopify.com");
                                var fontSize = '15px';
                                if("alanyaexperience.myshopify.com" == 'bag-mall.myshopify.com'){
              //console.log("yes it is..!!");
                                  fontSize = '11px';
                                }
            //node.innerHTML = '<a href="'+url_link+'" target="_blank"><div link="'+url_link+'" class="single_contact" style="display:flex;padding-bottom:0px;flex-wrap:wrap;align-items:center;"><div class="image" style="display:inline-block;width: 55px;height:55px;margin:5px 5px;background:;border-radius:50px;overflow:hidden;">'+icon+'</div><div class="detail" style="display:inline-block;margin:5px 5px;"><h3 style="margin-left:0px;margin-bottom:0px;color:#666;font-size: '+fontSize+';line-height: normal;">'+name+'</h3><p style="margin-left:0px;margin-bottom:0px;color:#666;font-size:12px;">'+role+'</p></div></div></a>';
            //select.appendChild(node);  
            //if("alanyaexperience.myshopify.com" == 'sm-storelist.myshopify.com'){
                                node.innerHTML = '<div link="'+url_link+'" class="single_contact" style="display:flex;padding-bottom:0px;flex-wrap:wrap;align-items:center;"><div class="image" style="display:inline-block;width: 55px;height:55px;margin:5px 5px;background:;border-radius:50px;overflow:hidden;">'+icon+'</div><div class="detail" style="display:inline-block;margin:5px 5px;"><h3 style="margin-left:0px;margin-bottom:0px;color:#666;font-size: '+fontSize+';line-height: normal;">'+name+'</h3><p style="margin-left:0px;margin-bottom:0px;color:#666;font-size:12px;">'+role+'</p></div></div>';
                                select.appendChild(node); 
            //}
                                });
                              }

                              if($('#contacts ul li').length == 1){
          //alert($('#contacts ul li a').text());
                                $('#contacts .single_contact').click();
                              }
                              else{

                                if(document.getElementById('contacts').style.display == 'none'){
            //document.getElementById('contacts').style.display='block';
                                  $('#contacts').slideDown("20");
                                  }else{
             //document.getElementById('contacts').style.display='none';
                                    $('#contacts').slideUp("20");
                                  }
                                }
        //var redirect_url = chat_url+"send?phone=Array"+chat_text;
        //window.open(redirect_url,'_blank');
                                });

                                $(document).on('click', '#wp_contacts_close', function(){
                                  $('#contacts').slideUp("20");
                                  });


                                  $(document).on('click', '.single_contact', function(){
                                    var redirectsOn = $(this).attr("link");
                                    window.open(redirectsOn, '_blank');
                                    });

                                    $(document).ready(function(){ 

                                      var bgcolor = '';
                                      var fontColor = '';
                                      var border = '';
                                      $('.chat_btn_link .bg_color').attr("fill", bgcolor);    //filter: drop-shadow(0 0 3px #999);
                                      $('.chat_btn_link .font_color').attr("fill", fontColor);
                                      $('.chat_btn_link .border_color').attr("stroke", border);
                                      $('.chat_btn_link svg').css("filter", "drop-shadow(rgb(153, 153, 153,0.5) 0px 0px 2px)"); //css("filter", "drop-shadow(0 0 2px #999)");
                                      $("#wp_chat_btn").attr("style", "position: fixed;: 20px;bottom: 40px;cursor: pointer;z-index: 2147483647;");

                                      /*if('{{enable_wp_btn}}' == 'no'){
                                        jQ(".wp_share_btn").css("display", "none !important");
                                      }
                                      else{
                                        jQ(".wp_share_btn").css("display", "block !important");
                                        }*/
                                        });

  //jQ=jQuery.noConflict();
                                        var cInterval=0;
                                        var cCount=0;
                                        var isJqLoadCalled=false;
                                        if(typeof jQ == 'undefined'){
                                          if(jQuery != undefined){
                                            jQ=jQuery;
                                          }
                                          clearInterval(cInterval);
                                          cInterval=setInterval(function(){
                                            if(cCount >=10 && isJqLoadCalled == false){
                                             var script = document.createElement('script');
                                             script.src = '//code.jquery.com/jquery-1.11.0.min.js';
                                             script.type = 'text/javascript';
                                             script.onload = onJqLoad;
                                             document.getElementsByTagName('head')[0].appendChild(script);
                                             isJqLoadCalled=true;
                                           }
                                           if(jQ != undefined){
                                            clearInterval(cInterval);
                                            callback();
                                          }
                                          cCount++;
                                          },1000);
                                          }else{
                                            callback();
                                          }
                                          function onJqLoad(){
                                            jQ=jQuery.noConflict();
                                          }
                                          function callback(){
                                            jQ(".wp_share_btn").click(function(){
                                              var type = jQ(this).attr("data-type");
                                              var link = window.location.href;
                                              
                                              if (WP_shop == "naturalinestore.co.il"){
                                                var link = decodeURIComponent(link);
                                              }

                                              jQ.ajax({
                                                type: "POST",
                                                url: 'https://shopiapps.in/whatsapp-share/add_wp_share.php?shop=alanyaexperience.myshopify.com',
                                                data: {action:'add_wp_share_record',link:link,type:type},
                                                async:false,
                                                success: function (data) {

                                                }
                                                });
                                                });
                                              }
                                              
