'.concat(e.$t("Outerwear-Subheadline"),"
")),
$(".recommender .question-groups").find(".question").wrapAll(''),
$(".question-container").after(' ")),
$(".recommender").find(".slug-page-outerwear .slug-question-temp .question-title").append(' ")),
$(".recommender").find(".slug-page-outerwear .slug-question-pack .question-title").append(' ")),
$(".recommender").find(".slug-page-outerwear .slug-question-type .question-title").append(' ")),
$(".icon-info").hover((function(){$(this).find(".popup__block").show()}),(function(){$(this).find(".popup__block").hide()})),$(".icon-info").toggle((function(){$(this).find(".popup__block").show()
}),(function(){$(this).find(".popup__block").hide()})),$(".recommender").find(".popup__close").on("click",(function(){$(this).parent(".popup__block").toggle()})),
$(".recommender").find(".slug-question-gender").after('
'.concat(e.$t("Apply"),'
")),
window.innerWidthx
'.concat(e.$t("Rain-Conditions-Info"),"x
'.concat(e.$t("Temperature-Conditions-Info"),"x
'.concat(e.$t("Packability-Info"),"x
'.concat(e.$t("Product-Type-Info"),"'.concat(e.$t("Reset"),"
")),$(".recommender .slug-choice-gender-mens input").prop("checked",!0).trigger("change"),
$(".recommender .slug-choice-pack-not-packable input").prop("checked",!0).trigger("change"),$(".recommender .slug-choice-pack-not-packable input").prop("checked",!1).trigger("change")},
pageAnimation:function(){},enterPage:function(){},afterActivateQuestion:function(){},afterDeactivateQuestion:function(){},afterRenderRecommendations:function(){
$(".recommender-main").find(".product-tile").first().addClass("product-first"),$(".recommender-main").find(".product-tile").eq(1).addClass("product-second"),
$(".recommender-main").find(".product-tile").eq(2).addClass("product-third"),
$(".product-tile.product-first").append(''.concat(e.$t("Best-Match"),"")),
$(".product-tile.product-second").append(''.concat(e.$t("2nd-Choice"),"")),
$(".product-tile.product-third").append(''.concat(e.$t("3rd-Choice"),"")),
$(".recommendations").append(' ")),$(".recommender .product-tile").each((function(){
$(this).fadeTo("slow",1);var a=$(this),o=a.attr("data-itemid"),i=function(t){if(t&&null!=t.colors){var o=e.$t("Color"),i=t.colors;i>1&&(o=e.$t("Colors")),
a.find(".colors-available").empty().append("".concat(i," ").concat(o))}if(t&&t.image){var r=a.find(".product-image img");r.length&&r.prop("src",t.image)}};if(c[o])c[o].then((function(e){i(e)}));else{
var r="//api.cartographer.drivecommerce.com/api/v4/runtime/products/?project=".concat(t,"&products=").concat(o,"&requestChildProducts=true");c[o]=new Promise((function(e){fetch(r).then((function(e){
return e.json()})).then((function(t){var a=new Set,o=null,r=null;t.length>0&&t[0].childProducts&&(t[0].childProducts.forEach((function(e){
e.attributes.c_defaultColorCode&&(o=e.attributes.c_defaultColorCode)})),t[0].childProducts.forEach((function(e){a.add(e.attributes.color),e.attributes.color===o&&(r=e.product.defaultImageUrl)})))
;var n={colors:a.size,image:r};i(n),e(n)}))}))}})),$("body").find(".recommender .recommender-products").removeClass("hidden"),$("body").find(".recommender .product-tile").on("click",a,l),
$("body").find(".recommender .recommender-mPDP .backToResults").on("click",n),$("body").find(".recommender-products .product-tile").hover((function(){
var e=$(this).attr("data-attribute-rain").toLowerCase().replace(/\s+/g,"").split(","),t=$(this).attr("data-attribute-temp").toLowerCase().replace(/\s+/g,"").split(","),a=$(this).attr("data-attribute-pack").toLowerCase().replace(/\s+/g,"").split(","),o=$(this).attr("data-attribute-type").toLowerCase().replace(/\s+/g,"").split(",")
;$(".slug-page-outerwear .slug-choice-rain-".concat(e[0])).addClass("highlight"),$(".slug-page-outerwear .slug-choice-rain-".concat(e[1])).addClass("highlight"),
$(".slug-page-outerwear .slug-choice-rain-".concat(e[2])).addClass("highlight"),$(".slug-page-outerwear .slug-choice-rain-".concat(e[3])).addClass("highlight"),
$(".slug-page-outerwear .slug-choice-temp-".concat(t[0])).addClass("highlight"),$(".slug-page-outerwear .slug-choice-temp-".concat(t[1])).addClass("highlight"),
$(".slug-page-outerwear .slug-choice-temp-".concat(t[2])).addClass("highlight"),$(".slug-page-outerwear .slug-choice-temp-".concat(t[3])).addClass("highlight"),
$(".slug-page-outerwear .slug-choice-pack-".concat(a[0])).addClass("highlight"),$(".slug-page-outerwear .slug-choice-pack-".concat(a[1])).addClass("highlight"),
$(".slug-page-outerwear .slug-choice-type-".concat(o[0])).addClass("highlight"),$(".slug-page-outerwear .slug-choice-type-".concat(o[1])).addClass("highlight"),
$(".slug-page-outerwear .slug-choice-type-".concat(o[2])).addClass("highlight"),$(".slug-page-outerwear .slug-choice-type-".concat(o[3])).addClass("highlight")}),(function(){
var e=$(this).attr("data-attribute-rain").toLowerCase().replace(/\s+/g,"").split(","),t=$(this).attr("data-attribute-temp").toLowerCase().replace(/\s+/g,"").split(","),a=$(this).attr("data-attribute-pack").toLowerCase().replace(/\s+/g,"").split(","),o=$(this).attr("data-attribute-type").toLowerCase().replace(/\s+/g,"").split(",")
;$(".slug-page-outerwear .slug-choice-rain-".concat(e[0])).removeClass("highlight"),$(".slug-page-outerwear .slug-choice-rain-".concat(e[1])).removeClass("highlight"),
$(".slug-page-outerwear .slug-choice-rain-".concat(e[2])).removeClass("highlight"),$(".slug-page-outerwear .slug-choice-rain-".concat(e[3])).removeClass("highlight"),
$(".slug-page-outerwear .slug-choice-temp-".concat(t[0])).removeClass("highlight"),$(".slug-page-outerwear .slug-choice-temp-".concat(t[1])).removeClass("highlight"),
$(".slug-page-outerwear .slug-choice-temp-".concat(t[2])).removeClass("highlight"),$(".slug-page-outerwear .slug-choice-temp-".concat(t[3])).removeClass("highlight"),
$(".slug-page-outerwear .slug-choice-pack-".concat(a[0])).removeClass("highlight"),$(".slug-page-outerwear .slug-choice-pack-".concat(a[1])).removeClass("highlight"),
$(".slug-page-outerwear .slug-choice-type-".concat(o[0])).removeClass("highlight"),$(".slug-page-outerwear .slug-choice-type-".concat(o[1])).removeClass("highlight"),
$(".slug-page-outerwear .slug-choice-type-".concat(o[2])).removeClass("highlight"),$(".slug-page-outerwear .slug-choice-type-".concat(o[3])).removeClass("highlight")}))},addToCart:function(){},
summaryUpdated:function(){}},helpers:{spaceAfterComma:function(e){return e.replace(/[,]/g,", ")},replaceCommaWithDiv:function(e){return e.replace(/[,]/g,"")}},templates:{
product:['
',"{{> productimage this}}",'
"].join(""),
productname:['"].join(""),
productcolors:'',
productimage:[''].join(""),
productmPDP:[' "].join(""),
productlink:"https://www.footjoy.fr/on/demandware.store/Sites-footjoy-emea-Site/fr_FR/Product-Show?pid={{product.externalId}}"}});e.run(),$(document).on("click",".recommender .reset",(function(t){t.preventDefault(),e.restart(),
$(".recommender .slug-choice-pack-not-packable input").prop("checked",!0).trigger("change"),$(".recommender .slug-choice-pack-not-packable input").prop("checked",!1).trigger("change")}));var i=1
;function n(){$(this).next().remove(),$("body").find(".recommender .recommender-mPDP").removeClass("show").addClass("hidden"),
$("body").find(".recommender .recommender-products").removeClass("hidden"),d&&(window.scrollTo({top:d,behavior:"smooth"}),d=null)}var c={};function s(t,a){
var o=a.data("product-id"),r=document.implementation.createHTMLDocument("preview"),n=$(a.data("html-pdp"),r),c=a.clone();c.appendTo($("body").find(".recommender .recommender-mPDP"))
;var s=n.find(".product-variations");s.length>0&&(c.find(".product-variations").html(s.html()),c.find(".product-variations ul li:first-child .label").text(e.$t("Available-Colors")),
c.find(".product-variations .custom-select-field").remove());var d=n.find(".product-price");d.length>0&&(c.find(".productPrice").html(d.html()),c.find(".price").html(d.html()))
;var l=n.find(".product-primary-image");l.length>0&&c.find(".productImages").html(l.html());var u="reviews-".concat((new Date).getTime(),"-").concat(i++);c.find(".productReviews").attr("id",u);var p={
ReviewSnippet:u};window.POWERREVIEWS&&(console.log("Loading power reviews for",o),POWERREVIEWS.display.render({api_key:"e3b046ff-7dd1-4538-99b4-515f9ed691c8",locale:"en_US",merchant_group_id:"48005",
merchant_id:"739006",style_sheet:"",page_id:o,components:p,on_render:function(){setTimeout((function(){
$("body").find(".recommender .recommender-mPDP .productReviews .pr-snippet-write-review-link").text(e.$t("Write-a-Review"))}),500)}})),
$("body").find(".recommender .recommender-mPDP .product-mPDP").removeClass("hidden"),$("body").find(".recommender .recommender-mPDP").addClass("show").removeClass("hidden"),
$("body").find(".recommender .recommender-products").addClass("hidden"),window.innerWidth=0&&(n="https://www.footjoy.com/on/demandware.store/Sites-footjoy-Site/en_US/Product-Show?pid=".concat(i,"&format=ajax"),
"de"===r&&(n="https://www.footjoy.de/on/demandware.store/Sites-footjoy-Site/en_US/Product-Show?pid=".concat(i,"&format=ajax")),
"fr"===r&&(n="https://www.footjoy.fr/on/demandware.store/Sites-footjoy-emea-Site/fr_FR/Product-Show?pid=".concat(i,"&format=ajax")));var s=function(r){a.data("html-pdp",r),a.data("product-id",i)
;var n=document.implementation.createHTMLDocument("preview"),c=$(r,n).find(".swatchanchor"),s=e.$t("Color"),d=c.length;d>1&&(s=e.$t("Colors")),
t.find(".colors-available").empty().append("".concat(d," ").concat(s)),o()};c[n]?function e(){"waiting"===c[n]?setTimeout(e,100):s(c[n])}():(c[n]="waiting",$.ajax({type:"GET",url:n,dataType:"html"
}).done((function(e){c[n]=e,s(e)})))}))}(a,o).then((function(){a.removeClass("product-loading"),s(0,o)}))):"loading"!==o.data("html-pdp")&&s(0,o)}},
(s=n.createElement("script")).type="text/javascript",s.addEventListener?s.addEventListener("load",(function(){c&&c()}),!1):s.readyState&&(s.onreadystatechange=function(){
"loaded"===this.readyState&&c&&c()}),s.src="//api.cartographer.drivecommerce.com/api/v4/runtime/client?type=production",n.getElementsByTagName("body")[0].appendChild(s)}))}])
{{> productname this}} {{> productcolors this}}
',"{{> productmPDP this}}