function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r-1&&(blockedRecommendations=!0,console.log("recomendations blocked"))})),blockedRecommendations)||function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof2(exports))&&exports&&"string"!=typeof exports.nodeName?e(exports):"function2"==typeof define&&define.amd?define(["exports"],e):(t.Mustache={},e(t.Mustache))}(this,(function(t){var e=Object.prototype.toString,r=Array.isArray||function(t){return"[object Array]"===e.call(t)};function a(t){return"function"==typeof t}function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function n(t,e){return null!=t&&"object"===_typeof2(t)&&e in t}var o=RegExp.prototype.test;var s=/\S/;function c(t){return!function(t,e){return o.call(t,e)}(s,t)}var l={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};var m=/\s*/,u=/\s+/,h=/\s*=/,d=/\s*\}/,S=/#|\^|\/|>|\{|&|=|!/;function p(t){this.string=t,this.tail=t,this.pos=0}function g(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function f(){this.cache={}}p.prototype.eos=function(){return""===this.tail},p.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var r=e[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r},p.prototype.scanUntil=function(t){var e,r=this.tail.search(t);switch(r){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=e.length,e},g.prototype.push=function(t){return new g(t,this)},g.prototype.lookup=function(t){var e,r,i,o=this.cache;if(o.hasOwnProperty(t))e=o[t];else{for(var s,c,l,m=this,u=!1;m;){if(t.indexOf(".")>0)for(s=m.view,c=t.split("."),l=0;null!=s&&l0?i[i.length-1][4]:r;break;default:a.push(e)}return r}(function(t){for(var e,r,a=[],i=0,n=t.length;i"===o?s=this.renderPartial(n,e,r,i):"&"===o?s=this.unescapedValue(n,e):"name"===o?s=this.escapedValue(n,e):"text"===o&&(s=this.rawValue(n)),void 0!==s&&(c+=s);return c},f.prototype.renderSection=function(t,e,i,n){var o=this,s="",c=e.lookup(t[1]);if(c){if(r(c))for(var l=0,m=c.length;l"'`=\/]/g,(function(t){return l[t]}))},t.Scanner=p,t.Context=g,t.Writer=f,t}));!function(t){var e=t(window);t.fn.visible=function(r,a,i,n){if(!(this.length<1)){i=i||"both";var o=this.length>1?this.eq(0):this,s=null!=n,c=s?t(n):e,l=s?c.position():0,m=o.get(0),u=c.outerWidth(),h=c.outerHeight(),d=!0!==a||m.offsetWidth*m.offsetHeight;if("function"==typeof m.getBoundingClientRect){var S=m.getBoundingClientRect(),p=s?S.top-l.top>=0&&S.top=0&&S.top0&&S.bottom<=h+l.top:S.bottom>0&&S.bottom<=h,f=s?S.left-l.left>=0&&S.left=0&&S.left0&&S.right0&&S.right<=u,v=r?p||g:p&&g,H=r?f||y:f&&y;if(v=S.top<0&&S.bottom>h||v,H=S.left<0&&S.right>u||H,"both"===i)return d&&v&&H;if("vertical"===i)return d&&v;if("horizontal"===i)return d&&H}else{var b=s?0:l,x=b+h,k=c.scrollLeft(),_=k+u,w=o.position(),T=w.top,j=T+o.height(),Q=w.left,C=Q+o.width(),P=!0===r?j:T,I=!0===r?T:j,B=!0===r?C:Q,R=!0===r?Q:C;if("both"===i)return!!d&&I<=x&&P>=b&&R<=_&&B>=k;if("vertical"===i)return!!d&&I<=x&&P>=b;if("horizontal"===i)return!!d&&R<=_&&B>=k}}}}(jQuery),String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t});var initTimeout=void 0,queueTimeout=void 0,queueTimeoutBox=void 0,queueTimeoutBoxCustom=void 0,queueTimeoutPromotionalBox=void 0,queueTimeoutComboBox=void 0,queueTimeoutSearch=void 0,smarthint_queue=[],smarthint_queue_aux=[],smarthint_queue_box=[],smarthint_queue_box_aux=[],smarthint_queue_box_custom=[],smarthint_queue_box_custom_aux=[],smarthint_queue_promotional_box=[],smarthint_queue_promotional_box_aux=[],smarthint_queue_box_combo=[],smarthint_queue_box_combo_aux=[],smarthint_queue_search=[],smarthint_queue_search_aux=[],_key=smarthintkey,_url="https://service.smarthint.co/track/",_urlRecomendation="https://service.smarthint.co/recommendation/",_urlBox="https://service.smarthint.co/box/",_urlPlugins="https://static.smarthint.co/plugins/",_SmartHint_lastUrl="",_SmartHint_lastPageType="",SmartHint=SmartHint||{};function getVariationsHering(t,e){var r="/api/catalog_system/pub/products/variations/"+t,a={},i=[],n=[];return null!=t&&null!=t&&""!=t&&jQuery.ajax({type:"GET",url:r,async:!1,success:function(t){for(var r={Name:"Tamanho",Values:{}},o=0;o-1)("; "+document.cookie).split(";").forEach((function(t,e){"string"==typeof t.split("=")[0]&&t.split("=")[0].indexOf("SmartHint-Products-")>-1&&SmartHint.Framework.SetCookie(t.split("=")[0],"",-1)}));return localStorage.setItem(t,e)}return SmartHint.Framework.GetCookie(cookieName)},GetSession:function(){var t=SmartHint.Framework.GetCookie("SmartHint-Session");return void 0!==t&&null!=t&&""!=t&&"undefined"!=t&&SmartHint.Framework.SetCookieToday("SmartHint-Session",t,30),t},GetSlick:function(){var t,e;blockedRecommendations||void 0===jQuery().slick&&((t=document.createElement("script")).type="text/javascript",t.async=!0,t.src=_urlPlugins+"slick/slick.js",(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(t,e),(t=document.createElement("link")).rel="stylesheet",t.type="text/css",t.href=_urlPlugins+"slick/slick.css",(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(t,e),(t=document.createElement("link")).rel="stylesheet",t.type="text/css",t.href=_urlPlugins+"slick/slick-theme.css",(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(t,e))},GetTemplate:function(t,e){var r="",a=!1,i="",n="",o="",s="";if(void 0!==_templates){if("smarthint-look"==t){var c=0;_templates.forEach((function(t,e){"smarthint-look"==t.Name&&c++})),0==c&&(t="smarthint-product")}for(var l=0;l<_templates.length;l++)if(t.toLowerCase()==_templates[l].Name.toLowerCase()){r=_templates[l].Html,a=_templates[l].HasAd,i=_templates[l].AdMessage,o=_templates[l].StoreVersion;for(var m=0;m<_templates[l].Configurations.length;m++)"propertycarouselconfig"==_templates[l].Configurations[m].Name.toLowerCase()&&(n=_templates[l].Configurations[m].Value),"PropertyRecommendedProductsNumber".toLocaleLowerCase()==_templates[l].Configurations[m].Name.toLowerCase()&&(s=_templates[l].Configurations[m].Value);break}}if(""!=n)try{var u=JSON.parse(n.replace(/(['"])?([a-z0-9A-Z_]+)(['"])?:/g,'"$2": '));n=u}catch(t){console.log(t),n=""}return""==n&&(n={dots:!0,infinite:!0,speed:300,slidesToShow:4,slidesToScroll:4,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:800,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1}}]}),e&&(n.slidesToShow=n.slidesToShow-1),{Html:r,CarouselConfig:n,HasAd:a,AdMessage:i,StoreVersion:o,TemplateName:t,ProductsNumber:s}},IsIOS:function(){return!!("undefined"!==window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform))},IsMobileOrTablet:function(){var t,e=!1;return t=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e},RemoveNonAscii:function(t){var e="",r=t.length;if(!r)return t;for(var a=0;a-1?t+"="+encodeURIComponent(e)+"; path=/"+i+";SameSite=None;secure;domain="+SmartHint.Framework.GetDomain():t+"="+encodeURIComponent(e)+"; path=/"+i+";domain="+SmartHint.Framework.GetDomain(),document.cookie=n},SetCookieCategory:function(t){var e="SmartHint-Category-"+_key,r=SmartHint.Framework.GetLocalStorage(e),a=[];null!=r&&(a=JSON.parse(r)),t=encodeURIComponent(t),jQuery.inArray(t,a)>=0&&a.splice(jQuery.inArray(t,a),1),a.unshift(t),a.length>5&&a.splice(5),r="function"==typeof a.toJSON?a.toJSON():JSON.stringify(a),SmartHint.Framework.SetLocalStorage(e,r,365)},SetProductsView:function(t){(null==SmartHint.LinkToLower||SmartHint.LinkToLower)&&(t=t.toLowerCase(),t=decodeURIComponent(t));var e="SmartHint-Products-"+_key,r=SmartHint.Framework.GetLocalStorage(e);"SH-708510"==_key&&"cart"==SmartHint.Framework.GetPageType()&&(r=SmartHint.Framework.GetCookie(e));var a=[];null!=r&&(r=decodeURIComponent(r),a=JSON.parse(r)),jQuery.inArray(t,a)>=0&&a.splice(jQuery.inArray(t,a),1),a.unshift(t),a.length>10&&a.splice(10),r="function"==typeof a.toJSON?a.toJSON():JSON.stringify(a),SmartHint.Framework.SetLocalStorage(e,r,365),"SH-708510"==_key&&SmartHint.Framework.SetCookie(e,r,1)},SetCookieToday:function(t,e,r){var a=new Date;if(a.setTime(a.getTime()+60*r*1e3),a.toLocaleDateString()!==(new Date).toLocaleDateString()){var i=new Date;i.setHours(0,0,0,0),i.setTime(i.getTime()+86399e3),a=i}var n="; expires="+a.toGMTString(),o="";o=window.location.protocol.indexOf("https")>-1?t+"="+encodeURIComponent(e)+"; path=/"+n+";SameSite=None;secure;domain="+SmartHint.Framework.GetDomain():t+"="+encodeURIComponent(e)+"; path=/"+n+";domain="+SmartHint.Framework.GetDomain(),document.cookie=o},GetDate:function(){var t,e=(t=new Date).getDate(),r=t.getMonth()+1,a=t.getFullYear(),i=t.getHours(),n=t.getMinutes(),o=t.getSeconds();return e<10&&(e="0"+e),r<10&&(r="0"+r),i<10&&(i="0"+i),n<10&&(n="0"+n),o<10&&(o="0"+o),t=e+"/"+r+"/"+a+" "+i+":"+n+":"+o},UpdateStoreVersion:function(t){jQuery.ajax({url:"https://service.smarthint.co/box/updateStoreVersion",type:"POST",dataType:"json",data:{key:_key,storeVersion:t}})},HasProductStock:function(){return!0},GetPageType:function(){},AddProductToCard:function(t){console.log("Método AddProductToCard não disponível para a plataforma."),console.log(t)},ThousandsWithDots:function(t){var e=t.toString().split(",");return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,"."),e.join(",")},InsertGtag:function(){return"function"!=typeof window.gtagSH&&(window.gtagSH=function(){"undefined"!=typeof google_tag_manager&&void 0!==google_tag_manager[SmartHint.GACode]&&void 0!==google_tag_manager[SmartHint.GACode].dataLayer?window[google_tag_manager[SmartHint.GACode].dataLayer.name].push(arguments):"undefined"!=typeof dataLayer&&dataLayer.push(arguments)}),"function"==typeof window.gtagSH}},SmartHint.BoughtTogether={Update:function(){for(var t in products=SmartHint.BoughtTogether.Products,p=[],TotalProducts=0,Result={Price:0,SalePrice:0,HasDiscount:!1,Discount:0},SmartHint.BoughtTogether.Selecteds)if(!isNaN(t)&&parseInt(t)>=0){i=SmartHint.BoughtTogether.Selecteds[t].Index;var e=SmartHint.BoughtTogether.Selecteds[t].Active;products[i].Index=i,products[i].Active=e,products[i].CanDelete=0!=i&&e,products[i].CanChange=0!=i&&e,products[i].CanActive=0!=i&&!e,products[i].Index=t,e&&(Result.HasSalePrice=!(!Result.HasSalePrice&&!products[i].HasSalePrice),Result.SalePrice=Result.SalePrice+(products[i].SalePrice?products[i].SalePrice:products[i].Price),Result.SalePriceInteger=Math.floor(Result.SalePrice),Result.SalePriceDecimal=Math.floor(100*(Result.SalePrice-Result.SalePriceInteger)),TotalProducts++,Result.Price=Result.Price+products[i].Price,Result.PriceInteger=Math.floor(Result.Price),Result.PriceDecimal=Math.floor(100*(Result.Price-Result.PriceInteger)),Result.Discount=Result.Discount+products[i].Discount,Result.DiscountInteger=Math.floor(Result.Discount),Result.DiscountDecimal=Math.floor(100*(Result.Discount-Result.DiscountInteger)),Result.HasDiscount=!(!Result.HasDiscount&&!products[i].HasDiscount)),Result.DiscountDecimal=0==Result.DiscountDecimal?"00":Result.DiscountDecimal,Result.PriceDecimal=0==Result.PriceDecimal?"00":Result.PriceDecimal,Result.SalePriceDecimal=0==Result.SalePriceDecimal?"00":Result.SalePriceDecimal,p.push(products[i])}data={BoxTitle:SmartHint.BoughtTogether.BoxTitle,Products:p,TotalProducts:TotalProducts,Result:Result},output=Mustache.render(SmartHint.BoughtTogether.HTML,data),jQuery(SmartHint.BoughtTogether.DivId).html(output),SmartHint.BoughtTogether.setActions()},setActions:function(){jQuery("#smarthint-bought-together .actions .delete").click((function(){var t=jQuery(this).attr("data-id");SmartHint.BoughtTogether.Selecteds[t].Active=!1,SmartHint.BoughtTogether.Update()})),jQuery("#smarthint-bought-together .actions .active").click((function(){var t=jQuery(this).attr("data-id");SmartHint.BoughtTogether.Selecteds[t].Active=!0,SmartHint.BoughtTogether.Update()})),jQuery("#smarthint-bought-together .actions .change").click((function(){var t=jQuery(this).attr("data-id"),e=[];for(var r in SmartHint.BoughtTogether.Selecteds)parseInt(r)>=0&&e.push(SmartHint.BoughtTogether.Selecteds[r].Index);do{novo=parseInt(1e3*Math.random())%SmartHint.BoughtTogether.Products.length}while(e.indexOf(novo)>-1);SmartHint.BoughtTogether.Selecteds[t].Active=!0,SmartHint.BoughtTogether.Selecteds[t].Index=novo,SmartHint.BoughtTogether.Selecteds[t].Variant=-1,SmartHint.BoughtTogether.Selecteds[t].SelectVariant=!1,SmartHint.BoughtTogether.Update()})),jQuery("#smarthint-bought-together .selectvariant").click((function(){var t=jQuery(this).attr("data-id"),e=jQuery(this).attr("data-id-variant"),r=SmartHint.BoughtTogether.Selecteds[t].Index;for(c in SmartHint.BoughtTogether.Products[r].Products)parseInt(c)>=0&&SmartHint.BoughtTogether.Products[r].Products[c].Variations[0].Value==e&&("in stock"!=SmartHint.BoughtTogether.Products[r].Products[c].Availability?(variant=-1,alert("Produto Indisponível")):variant=c);SmartHint.BoughtTogether.Selecteds[t].Variant=parseInt(variant),SmartHint.BoughtTogether.Selecteds[t].SelectVariant=!1,SmartHint.BoughtTogether.Update()})),jQuery("#smarthint-bought-together-buy").click((function(){SmartHint.BoughtTogether.Buy()}))},Buy:function(){var t=[];for(var e in SmartHint.BoughtTogether.Selecteds)parseInt(e)>=0&&SmartHint.BoughtTogether.Selecteds[e].Active&&t.push(SmartHint.BoughtTogether.Products[SmartHint.BoughtTogether.Selecteds[e].Index]);SmartHint.Framework.AddProductToCart(t)}},SmartHint.BoughtTogetherCatalog={Update:function(){for(var t in products=SmartHint.BoughtTogetherCatalog.Products,p=[],TotalProducts=0,Result={Price:0,SalePrice:0,HasDiscount:!1,Discount:0,SelectAll:!1},SmartHint.BoughtTogetherCatalog.Selecteds)if(SmartHint.BoughtTogetherCatalog.Selecteds.hasOwnProperty(t)){if(i=SmartHint.BoughtTogetherCatalog.Selecteds[t].Index,v=SmartHint.BoughtTogetherCatalog.Selecteds[t].Variant,needSelect=SmartHint.BoughtTogetherCatalog.Selecteds[t].SelectVariant,outofstock=SmartHint.BoughtTogetherCatalog.Selecteds[t].outofstock,Active=SmartHint.BoughtTogetherCatalog.Selecteds[t].Active,0==products[i].Products[0].Specifications.length&&(SmartHint.BoughtTogetherCatalog.Selecteds[t].Variant=0,v=0),1==products[i].Products[0].Specifications.length&&"N/A"==products[i].Products[0].Specifications[0].variations[0].Name&&"N/A"==products[i].Products[0].Specifications[0].variations[0].Value&&(SmartHint.BoughtTogetherCatalog.Selecteds[t].Variant=0,products[i].Variations=[],v=0),-1==v||"in stock"!=products[i].Products[0].Availability)for(c in products[i].Products[0].Specifications)if("in stock"==products[i].Products[0].Specifications[c].availability){v=c;break}productSelected=products[i].Products[0],productSelected.Index=i,productSelected.Active=Active,productSelected.CanDelete=0!=i&&Active,productSelected.CanChange=0!=i&&Active,productSelected.CanActive=0!=i&&!Active,productSelected.VariantSelected=SmartHint.BoughtTogetherCatalog.Selecteds[t].Variant>=0?"activevariant":"inactivevariant",null!=needSelect&&null!=needSelect?productSelected.pleaseSelect=needSelect:productSelected.pleaseSelect=!0,productSelected.outOfStock=outofstock,productSelected.Index=t,variations=[];var e=Object.keys(SmartHint.BoughtTogetherCatalog.Selecteds[t].Variables).length,r=Object.keys(products[i].Variations).length,a={};for(variantIndex in products[i].Variations){var n,o;if(products[i].Variations.hasOwnProperty(variantIndex))!function(){var r=products[i].Variations[variantIndex].Name,s={Name:r,VariantPrevSelected:!0,Values:[]};for(variantValue in products[i].Variations[variantIndex].Values)products[i].Variations[variantIndex].Values.hasOwnProperty(variantValue)&&function(){var c,l=!1,m=SmartHint.BoughtTogetherCatalog.Selecteds[t].Variables,u=products[i].Products[0].Specifications;(u=u.filter((function(t){return"in stock"==t.availability&&t.variations.some((function(t){return t.Name==r&&t.Value==variantValue}))}))).length>0&&e>0&&a.hasOwnProperty("Values")&&(n=a.Values.find((function(t){return t.selected})),o=n&&n.specifications?n.specifications:[],u=o.filter((function(t){return u.includes(t)}))),c=u.length>0,s.Name in m&&((l=m[r]==variantValue&&c)||m[r]!=variantValue||(delete SmartHint.BoughtTogetherCatalog.Selecteds[t].Variables[r],SmartHint.BoughtTogetherCatalog.Selecteds[t].Variant=-1,products[i].Products[0].pleaseSelect=!0,products[i].Products[0].SelectVariant=!0)),s.Values.push({value:variantValue,stock:c,selected:l,specifications:c?u:[]})}();a.hasOwnProperty("Values")&&(s.VariantPrevSelected=a.Values.filter((function(t){return!0===t.selected})).length>0),variations.push(s),a=s}()}if(productSelected.VariantOptions=variations,r==e&&variations.length>0){var s=variations[variations.length-1],l=s&&s.Values?s.Values.find((function(t){return t.selected})):null,m=l?l.specifications:[];if(1==m.length&&m[0].hasOwnProperty("changes")){var u=!1;for(changeIndex in m[0].changes)if(m[0].changes[changeIndex].hasOwnProperty("name")){if("Price"==m[0].changes[changeIndex].name){productSelected.Price=m[0].changes[changeIndex].valueDouble;var h=productSelected.Price.toFixed(2).split(".");productSelected.PriceInteger=parseInt(h[0]),productSelected.PriceDecimal=h[1],u=!0}if("SalePrice"==m[0].changes[changeIndex].name){productSelected.SalePrice=m[0].changes[changeIndex].valueDouble;var d=productSelected.SalePrice.toFixed(2).split(".");productSelected.SalePriceInteger=parseInt(d[0]),productSelected.SalePriceDecimal=d[1],u=!0}}if(u){productSelected.HasSalePrice=productSelected.SalePrice>0&&productSelected.SalePrice!=productSelected.Price,productSelected.HasDiscount=productSelected.SalePrice-1);SmartHint.BoughtTogetherCatalog.Selecteds[t].Active=!0,SmartHint.BoughtTogetherCatalog.Selecteds[t].Index=novo,SmartHint.BoughtTogetherCatalog.Selecteds[t].Variant=-1,SmartHint.BoughtTogetherCatalog.Selecteds[t].Variables={},SmartHint.BoughtTogetherCatalog.Selecteds[t].pleaseSelect=!0,SmartHint.BoughtTogetherCatalog.Selecteds[t].SelectVariant=!0,SmartHint.BoughtTogetherCatalog.Update()})),jQuery("#smarthint-bought-together .selectvariant").click((function(){var t=jQuery(this).attr("data-id"),e=jQuery(this).attr("data-id-variant"),r=jQuery(this).attr("data-id-variant-name"),a=SmartHint.BoughtTogetherCatalog.Selecteds[t].Index;if(variant=-1,SmartHint.BoughtTogetherCatalog.Selecteds[t].Variables[r]=e,Object.keys(SmartHint.BoughtTogetherCatalog.Selecteds[t].Variables).length==SmartHint.BoughtTogetherCatalog.Products[a].Variations.length){for(c in SmartHint.BoughtTogetherCatalog.Products[a].Products){for(vari in ok=!0,SmartHint.BoughtTogetherCatalog.Products[a].Products[0].Variations)name=SmartHint.BoughtTogetherCatalog.Products[a].Products[0].Variations[vari].Name,valor=SmartHint.BoughtTogetherCatalog.Products[a].Products[0].Variations[vari].Value,SmartHint.BoughtTogetherCatalog.Selecteds[t].Variables[name]!=valor&&(ok=!1);if(ok){SmartHint.BoughtTogetherCatalog.Selecteds[t].SelectVariant=!1,"in stock"!=SmartHint.BoughtTogetherCatalog.Products[a].Products[0].Availability?SmartHint.BoughtTogetherCatalog.Selecteds[t].outofstock=!0:(SmartHint.BoughtTogetherCatalog.Selecteds[t].outofstock=!1,variant=c);break}}SmartHint.BoughtTogetherCatalog.Selecteds[t].Variant=parseInt(variant),SmartHint.BoughtTogetherCatalog.Update()}else SmartHint.BoughtTogetherCatalog.Selecteds[t].SelectVariant=!0,SmartHint.BoughtTogetherCatalog.Update()})),jQuery("#smarthint-bought-together-buy").click((function(){SmartHint.BoughtTogetherCatalog.Buy()}))},Buy:function(){var t=[],e=!1;for(var r in SmartHint.BoughtTogetherCatalog.Selecteds)if(SmartHint.BoughtTogetherCatalog.Selecteds[r].Active&&(-1==SmartHint.BoughtTogetherCatalog.Selecteds[r].Variant&&(SmartHint.BoughtTogetherCatalog.Selecteds[r].SelectVariant=!0,e=!0),!e)){SmartHint.BoughtTogetherCatalog.Selecteds[r].SelectedProduct={};var a={},i=SmartHint.BoughtTogetherCatalog.Products[SmartHint.BoughtTogetherCatalog.Selecteds[r].Index].Products[SmartHint.BoughtTogetherCatalog.Selecteds[r].Variant],n=i.Specifications;for(var o in SmartHint.BoughtTogetherCatalog.Selecteds[r].Variables){var s=SmartHint.BoughtTogetherCatalog.Selecteds[r].Variables[o];n=jQuery.grep(n,(function(t){if(jQuery.grep(t.variations,(function(t){return t.Name==o&&t.Value==s})).length>0)return t}))}1==n.length&&(a={productId:i.ProductId,specificationId:n[0].specificationId,variations:n[0].variations}),selectedProduct={product:i,specification:a},SmartHint.BoughtTogetherCatalog.Selecteds[r].SelectedProduct=selectedProduct,t.push(selectedProduct)}e?SmartHint.BoughtTogetherCatalog.Update():SmartHint.Framework.AddProductToCartCatalog(t)},ConvertObject:function(t){var e=[];for(var r in t)if(t.hasOwnProperty(r)){var a,i=[],n=[];for(var o in t[r].Specifications)if(t[r].Specifications.hasOwnProperty(o)&&"in stock"==t[r].Specifications[o].availability&&null!=t[r].Specifications[o].variations)for(var s in t[r].Specifications[o].variations)if(t[r].Specifications[o].variations.hasOwnProperty(s)){var c=!1;for(var l in i)i.hasOwnProperty(l)&&i[l].Name==t[r].Specifications[o].variations[s].Name&&(c=!0,(i[l].Values.hasOwnProperty(t[r].Specifications[o].variations[s].Value)||t[r].Specifications[o].variations.lenght>1||"in stock"==t[r].Specifications[o].availability.toLowerCase())&&(i[l].Values[t[r].Specifications[o].variations[s].Value]="in stock"==t[r].Specifications[o].availability.toLowerCase()));if(!c){var m={Values:[]};m.Name=t[r].Specifications[o].variations[s].Name,m.Values[t[r].Specifications[o].variations[s].Value]="in stock"==t[r].Specifications[o].availability.toLowerCase(),i.push(m)}}n.push(t[r]),a={Products:n,Variations:i},e.push(a)}return e}},SmartHint.BoxCombo={Update:function(t,e,r){for(var a in t){var i=t[a].Products;for(var n in p=[],TotalProducts=0,r)if(!isNaN(n)){var o=r[n].Index,s=r[n].Variant,l=r[n].SelectVariant,m=r[n].outofstock;if(null!=i&&null!=i[o]){if(1==i[o].Product.Specifications.length&&(r[n].Variant=0,s=0),1==i[o].Product.Specifications.length&&"N/A"==i[o].Product.Specifications[0].variations[0].Name&&"N/A"==i[o].Product.Specifications[0].variations[0].Value&&(r[n].Variant=0,i[o].Specifications=[],i[o].Product.Specifications=[],s=0),-1==s&&i[o].Product.Specifications.length>0)for(c in i[o].Product.Specifications)if("in stock"==i[o].Product.Specifications[c].availability){s=c;break}i[o].Product.Index=o,i[o].Product.VariantSelected=r[n].Variant>=0?"activevariant":"inactivevariant",i[o].Product.pleaseSelect=l,i[o].Product.outOfStock=m,i[o].Product.Index=n,variations=[];var u=Object.keys(r[n].Variables).length,h=Object.keys(i[o].Specifications).length;for(var d in i[o].Specifications)if("function"!=typeof i[o].Specifications[d]){for(valueOption in variant={Name:i[o].Specifications[d].Name,Values:[]},i[o].Specifications[d].Values)if(i[o].Specifications[d].Values.hasOwnProperty(valueOption)){var S=!1,g=r[n].Variables[variant.Name];void 0!==g&&g==valueOption&&(S=!0);var f=!1,y=i[o].Product;(null!=y.Specifications&&y.Specifications.length>0||y.length>0&&u==h&&!S)&&(f=!0),variant.Values.push({value:valueOption,stock:f,selected:S})}variations.push(variant)}i[o].Product.VariantOptions=variations,p.push(i[o].Product)}}e[a].Products=p}return SmartHint.BoxCombo.setActions(),e},setActions:function(){setTimeout((function(){var t;jQuery(".smarthint .boxcombo-modal-external-container .boxcombo-modal-product-variants-group-options").change((function(){var t=0;jQuery(".smarthint-recommendation-combo").each((function(){jQuery(this).find(".boxcombo-modal-external-container.active").length>0||t++}));var e=jQuery(this).parents(".boxcombo-modal-container-product").attr("data-index-product"),r=jQuery(this).parents(".boxcombo-modal-external-container").attr("data-id-combo-order");if(r=parseInt(r)-1,""!=jQuery(this).val()){var a=jQuery(this).find(".attributes-item[data-id-variant-value='"+jQuery(this).val()+"']"),i=a.attr("data-id"),n=a.attr("data-id-variant-value"),o=a.attr("data-id-variant-name"),s=SmartHint.BoxCombo.Combinations[t].Selecteds[i].Index,l=jQuery(".boxcombo-modal-external-container.active [data-index-product="+e+"]");if(l.find("input.select-product").prop("disabled",!1),l.find(".boxcombo-modal-product-variants-group-options .attributes-item").each((function(){jQuery(this).removeClass("unavailable").removeClass("selected")})),variant=-1,SmartHint.BoxCombo.Combinations[t].Selecteds[i].Variables[o]=n,Object.keys(SmartHint.BoxCombo.Combinations[t].Selecteds[i].Variables).length==SmartHint.BoxCombo.Combinations[t].Products[r].Products[s].Specifications.length){for(c in SmartHint.BoxCombo.Combinations[t].Products[s].Products){for(vari in ok=!0,SmartHint.BoxCombo.Combinations[t].Products[s].Products[c].Specifications)name=SmartHint.BoxCombo.Combinations[t].Products[s].Products[c].Specifications[vari].Name,valor=SmartHint.BoxCombo.Combinations[t].Products[s].Products[c].Specifications[vari].Value,SmartHint.BoxCombo.Combinations[t].Selecteds[i].Variables[name]!=valor&&(ok=!1);if(ok){SmartHint.BoxCombo.Combinations[t].Selecteds[i].SelectVariant=!1,"in stock"!=SmartHint.BoxCombo.Combinations[t].Products[s].Products[c].Availability?SmartHint.BoxCombo.Combinations[t].Selecteds[i].outofstock=!0:(SmartHint.BoxCombo.Combinations[t].Selecteds[i].outofstock=!1,variant=c);break}}SmartHint.BoxCombo.Combinations[t].Selecteds[i].Variant=parseInt(variant),SmartHint.BoxCombo.setVariables(t,r,e)}else SmartHint.BoxCombo.Combinations[t].Selecteds[i].SelectVariant=!0,SmartHint.BoxCombo.setVariables(t,r,e),jQuery(".boxcombo-modal-external-container.active [data-index-product="+e+"] input.select-product").attr("data-specification",""),SmartHint.BoxCombo.Combinations[t].Selecteds[e].SpecificationId=0;jQuery(".smarthint .boxcombo-modal-external-container.active .message-empty-variation").each((function(){var t=jQuery(this);"block"==t.css("display")&&""!=t.siblings(".boxcombo-modal-product-variants-group-options").val()&&t.hide()}))}else{var m=jQuery(".boxcombo-modal-external-container.active [data-index-product="+e+"]");m.find("input.select-product").attr("data-specification","").prop("checked",!1).prop("disabled",!1),SmartHint.BoxCombo.Combinations[t].Selecteds[e].SpecificationId=0;var u=!1;jQuery(".boxcombo-modal-external-container.active input.select-product").each((function(){jQuery(this).is(":checked")&&(u=!0)})),u||jQuery(".boxcombo-modal-external-container.active .btn-combo-modal").prop("disabled",!0);var h=jQuery(this).attr("data-select-name");delete SmartHint.BoxCombo.Combinations[t].Selecteds[e].Variables[h],m.find(".attributes-item").each((function(){jQuery(this).removeClass("unavailable").removeClass("selected")}));var d=JSON.parse(JSON.stringify(SmartHint.BoxCombo.Combinations[t].Products[r].Products[e].Combinations));for(var S in SmartHint.BoxCombo.Combinations[t].Selecteds[e].Variables){var p=S,g=SmartHint.BoxCombo.Combinations[t].Selecteds[e].Variables[S];d=d.filter((function(t){return t[p]==g&&t.Stock}))}for(var S in SmartHint.BoxCombo.Combinations[t].Selecteds[e].Variables){p=S,g=SmartHint.BoxCombo.Combinations[t].Selecteds[e].Variables[S];jQuery(".boxcombo-modal-external-container.active [data-index-product="+e+"] .boxcombo-modal-product-variants-group-options").each((function(){var t=jQuery(this).find(".attributes-item[data-id-variant-name='"+p+"'][data-id-variant-value='"+g+"']");d.length>0?t.addClass("selected"):t.addClass("unavailable")}))}}})),jQuery(".smarthint .boxcombo-container .btn-combo").click((function(){var e=jQuery(this).parents(".smarthint-recommendation-combo"),r=jQuery(this).attr("data-id-combo-order");e.find(".boxcombo-modal-external-container[data-id-combo-order="+r+"]").addClass("active").show();var a=0;jQuery(".smarthint-recommendation-combo").each((function(){jQuery(this).find(".boxcombo-modal-external-container.active").length>0||a++})),(t=jQuery(".boxcombo-modal-external-container.active").find("input.select-product")).change((function(){var e,r=jQuery(this);r.is(":checked")&&r.parents(".boxcombo-modal-container-product").find(".boxcombo-modal-product-variants select").each((function(){""==jQuery(this).val()&&(r.prop("checked",!1),jQuery(this).siblings(".message-empty-variation").show())}));t.parents(".boxcombo-modal").find(".btn-combo-modal").prop("disabled",!0),e=!1,t.each((function(){jQuery(this).is(":checked")&&(e=!0)})),e&&t.parents(".boxcombo-modal").find(".btn-combo-modal").prop("disabled",!1);var i=r.parents(".boxcombo-modal-container-product").attr("data-index-product");SmartHint.BoxCombo.Combinations[a].Selecteds[i].Selected=r.is(":checked"),SmartHint.BoxCombo.Combinations[a].Selecteds[i].ProductId=r.parents(".boxcombo-modal-container-product").find(".select-product").attr("data-productid")}));var i=parseInt(r)-1,n=SmartHint.BoxCombo.Combinations[a].Products[i].Products;for(var o in n)if(n.hasOwnProperty(o))for(var s in n[o])if(n[o].hasOwnProperty(s)&&1==n[o].Specifications.length){var c=n[o].Specifications[0].Name,l=n[o].Specifications[0].Values,m=[];for(var u in l)l.hasOwnProperty(u)&&!l[u]&&m.push(u);for(var h in m)e.find(".boxcombo-modal-external-container.active .boxcombo-modal-product-variants-group-options[data-id='"+o+"'][data-select-name='"+c+"'] .attributes-item[data-id-variant-value='"+m[h]+"']").addClass("unavailable")}})),jQuery(".smarthint .boxcombo-modal-external-container .boxcombo-modal-close").click((function(){var t=jQuery(".boxcombo-modal-external-container.active");t.find(".btn-combo-modal").prop("disabled",!0),t.find("input.select-product").each((function(){jQuery(this).prop("checked",!1),jQuery(this).attr("data-specification","")})),jQuery(".message-empty-variation").each((function(){jQuery(this).hide()})),t.find(".boxcombo-modal-product-variants-group-options").each((function(){jQuery(this).val("")})),jQuery(".boxcombo-modal-product-variants-group-options .attributes-item").each((function(){jQuery(this).removeClass("unavailable").removeClass("selected")}));var e=0;jQuery(".smarthint-recommendation-combo").each((function(){jQuery(this).find(".boxcombo-modal-external-container.active").length>0||e++})),SmartHint.BoxCombo.Combinations[e].Selecteds=SmartHint.BoxCombo.InitializeBoxComboSelecteds(),jQuery(this).parents(".boxcombo-modal-external-container.active").removeClass("active").hide()})),jQuery(".smarthint .boxcombo-modal-external-container .btn-combo-modal").click((function(){SmartHint.BoxCombo.Buy()}))}),300)},setVariables:function(t,e,r){var a=SmartHint.BoxCombo.Combinations[t].Products[e].Products[r],i=SmartHint.BoxCombo.Combinations[t].Selecteds[r],n=Object.keys(i.Variables).length,o=Object.keys(a.Specifications).length,s=JSON.parse(JSON.stringify(a.Combinations)),c=JSON.parse(JSON.stringify(a.Combinations));for(var l in i.Variables){var m=l,u=i.Variables[l];c=c.filter((function(t){return t[m]!=u||!t.Stock})),s=s.filter((function(t){return t[m]==u&&t.Stock}))}n==o&&s.length>0&&(jQuery(".boxcombo-modal-external-container.active [data-index-product="+r+"] input.select-product").attr("data-specification",s[0].SpecificationId),SmartHint.BoxCombo.Combinations[t].Selecteds[r].SpecificationId=s[0].SpecificationId);var h=[];for(var l in i.Variables){m=l,u=i.Variables[l];var d=jQuery(".boxcombo-modal-external-container.active [data-index-product="+r+"] .boxcombo-modal-product-variants-group-options");for(var S in d.each((function(){var t=jQuery(this).find(".attributes-item[data-id-variant-name='"+m+"'][data-id-variant-value='"+u+"']");if(s.length>0)t.addClass("selected");else{t.addClass("unavailable");var e=jQuery(".boxcombo-modal-external-container.active [data-index-product="+r+"] input.select-product");e.prop("disabled",!0),e.prop("checked",!1);var a=!1;jQuery(".boxcombo-modal-external-container.active input.select-product").each((function(){jQuery(this).is(":checked")&&(a=!0)})),a||jQuery(".boxcombo-modal-external-container.active .btn-combo-modal").prop("disabled",!0)}})),a.Specifications)if(a.Specifications.hasOwnProperty(S)&&a.Specifications[S].Name!=m)for(var p in a.Specifications[S].Values)if(a.Specifications[S].Values.hasOwnProperty(p)){var g=a.Combinations.filter((function(t){return t[a.Specifications[S].Name]==p}));if(0==(g=g.filter((function(t){return t[m]==u&&t.Stock}))).length){var f=[];f[a.Specifications[S].Name]=p,h.push(f)}}}for(var S in h)for(var p in h[S])h[S].hasOwnProperty(p)&&null==i.Variables[p]&&jQuery(".boxcombo-modal-external-container.active .boxcombo-modal-product-variants-group-options[data-select-name='"+p+"'][data-id="+r+"] .attributes-item").each((function(){jQuery(this).attr("data-id-variant-value")==h[S][p]&&jQuery(this).addClass("unavailable")}))},Buy:function(){var t=0,e=0;jQuery(".smarthint-recommendation-combo").each((function(r,a){jQuery(this).find(".boxcombo-modal-external-container.active").length>0?e=r:t++}));var r=jQuery(".boxcombo-modal-external-container.active").attr("data-id-combo-order");r=parseInt(r)-1;var a=[];for(var i in SmartHint.BoxCombo.Combinations[t].Selecteds)SmartHint.BoxCombo.Combinations[t].Selecteds[i].Selected&&a.push(SmartHint.BoxCombo.Combinations[e].Products[r].Products[SmartHint.BoxCombo.Combinations[t].Selecteds[i].Index].Product);SmartHint.Framework.AddProductToCartBoxCombo(a)},InitializeBoxComboSelecteds:function(){return[{Index:0,Selected:!1,ProductId:0,SpecificationId:0,Variant:-1,Variables:{}},{Index:1,Selected:!1,ProductId:0,SpecificationId:0,Variant:-1,Variables:{}},{Index:2,Selected:!1,ProductId:0,SpecificationId:0,Variant:-1,Variables:{}},{Index:3,Selected:!1,ProductId:0,SpecificationId:0,Variant:-1,Variables:{}},{Index:4,Selected:!1,ProductId:0,SpecificationId:0,Variant:-1,Variables:{}},{Index:5,Selected:!1,ProductId:0,SpecificationId:0,Variant:-1,Variables:{}}]}},SmartHint.Recommendation={CreateDiv:function(t,e,r,a){var i=a.Html,n=a.CarouselConfig,o=a.StoreVersion;"SH-767357"!=smarthintkey&&_storeVersion>0&&_storeVersion!=o&&SmartHint.Framework.UpdateStoreVersion(_storeVersion);var s={};if("smarthint-boxcombo"==a.TemplateName){var c,l=SmartHint.Recommendation.ConvertProductsToBoxCombo(t.Combos),m=JSON.parse(JSON.stringify(l)),u=SmartHint.BoxCombo.InitializeBoxComboSelecteds();c={Products:l,Combos:m=SmartHint.BoxCombo.Update(l,m,u),Selecteds:u},SmartHint.BoxCombo.Combinations=null==SmartHint.BoxCombo.Combinations?[]:SmartHint.BoxCombo.Combinations,SmartHint.BoxCombo.Combinations.push(c),s={NameRecommendation:t.NameRecommendation,TitleRecommendation:t.TitleRecommendation,Combos:m}}else s={BoxTitle:r,Products:t};if(void 0!==s.Products&&s.Products.length>0){for(var h,d=0;d","