',nextHtml:' ',onSliderLoad:function(){addDataThumbCover();},responsive:[{breakpoint:1600,settings:{thumbItem:6,}},{breakpoint:1300,settings:{thumbItem:4,}},{breakpoint:480,settings:{thumbItem:2,}}]});}}
function addDataThumbCover(){$('#pms .ls-item').each(function(index){var coverValue=$(this).attr('data-cover');console.log(coverValue);var correspondingThumb=$('#pms_wrap .lSPager.lSGallery li').eq(index);correspondingThumb.attr('data-cover',coverValue);});}
function variant_select(){$("#variants .variant").addClass("hidden");$("#variant-prices .variant-price").addClass("hidden");var vts="";var product_options=$("#product_options input").val().split(",");console.log(product_options);$.each(product_options,function(index,value){vts+="-"+$("#option-"+value).val();});console.log(vts);$("#variants "+"#variant"+vts).removeClass("hidden");$("#variant-prices "+"#variant-price"+vts).removeClass("hidden");$("#pmts .item").removeClass("hidden");var pmo=$('
').append(pm_original);var image_ids=$("#variants #variant"+vts+" input[name=image_ids]").val();$.each(image_ids.split(','),function(index,value){pmo.find("#pms #pm_"+value).remove();});$("#pms").remove();$("#pms_wrap").html(pmo.html());slider_init();$("#block-product .sod").selectOrDie("destroy");$("#block-product .sod").selectOrDie({cycle:true,size:5});}
function disableOptions(option_select){var this_id=option_select.val();var rel="";$("#options select").each(function(){if($(this).val()==this_id){return false;}
rel+=$(this).val()+"-";});rel=".rel_"+rel+this_id;var select_next=option_select.parents(".option").nextAll(".option:first").find("select");select_next.find("option").prop("disabled",true);select_next.find("option").each(function(){$(this).text($(this).data("text"));});select_next.find("option"+rel).removeProp("disabled");select_next.find("option"+rel).each(function(){$(this).text($(this).data("text"));});}
function options(){if($("#options").length==0){slider_init();return;}
$("#options").on("change",".option:not(:last) select",function(e){if($(this).is("disabled")){return false;}
disableOptions($(this));var select_next=$(this).parents(".option").nextAll(".option:first").find("select");select_next.val(select_next.find("option:not(:disabled):first").val()).trigger("change");});$("#options").on("change",".option:last select",function(e){if($(this).is("disabled")){return false;}
variant_select();});var vtoselect;if($("#variants .variant[data-select='True']").length>0){vtoselect=$("#variants .variant[data-select='True']:first").attr("id").replace("variant-","").split("-");}else{vtoselect=$("#variants .variant:first").attr("id").replace("variant-","").split("-");}
$("#options .option select").each(function(index){$(this).val(vtoselect[index]);disableOptions($(this));});variant_select();}
var flag=true;var pm_original;$(function(){pm_original=$("#pms_wrap").html();options();});$(function(){$(".form-booking .datepicker").each(function(){var language_iso=$("body").data("language-iso");var language_iso_specific=$("body").data("language-iso-specific");if(language_iso_specific!=""){language_iso+="-"+language_iso_specific}
var datestart=new Date($(this).data("datestart"));var dateend=new Date($(this).data("dateend"));var daysofweek=[];if($(this).data("daysofweek")!=""){daysofweek=$(this).data("daysofweek").toString().split(",");}
var months=[];if($(this).data("months")!=""){months=$(this).data("months").toString().split(",");}
var bookingdates=[];if($(this).data("bookingdates")!=""){bookingdates=$(this).data("bookingdates").toString().split(",");}
var dateranges=$(this).find(".dateranges .daterange");$(this).find('input[type=text]').datepicker({language:language_iso,orientation:"right",autoclose:true,todayHighlight:true,beforeShowDay:function(date){if(date
dateend){return false;}
var day=date.getDay();if(daysofweek.length>0&&daysofweek.indexOf(day.toString())<0){return false;}
var month=date.getMonth()+1;if(months.length>0&&months.indexOf(month.toString())<0){return false;}
var bookingdates_check;$.each(bookingdates,function(index,val){var bookingdate=new Date(val);if(bookingdate.getTime()===date.getTime()){bookingdates_check=true;return true;}});if(bookingdates_check===true)return false;var dateranges_check;dateranges.each(function(){var range_datestart=new Date($(this).data("datestart"));var range_dateend=new Date($(this).data("dateend"));if(date>=range_datestart&&date<=range_dateend){dateranges_check=true;return true;}});if(dateranges_check===true)return false;return true;}});})
$(".form-booking").on("change","input[data-trigger='date_submit']",function(e){var pid=$(e.delegateTarget).data("product").toString();eval($(".form-booking[data-product='"+pid+"'] a[data-action='date_submit']").attr("href"));});$(".form-booking").on("change","select[data-trigger='time_submit']",function(e){var pid=$(e.delegateTarget).data("product").toString();eval($(".form-booking[data-product='"+pid+"'] a[data-action='time_submit']").attr("href"));});});
Disclaimer
We would like to inform you that for orders made after the 20th of November, we cannot guarantee delivery by Christmas in the United States. For any question you can contact Maxime directly at maxime@torreacona.com. Thank you! The Torre a Cona team.