!function(){var o,t,e,a=function(){var o=null,t=function(t){o.ajax({type:"GET",url:a.getScriptUrl("/index.php?dispatch=fashion_pack_look_book.shop_the_look"),dataType:"json",data:{shop:a.getShopUrl(),id:t,is_mobile:window.innerWidth<=768}}).done((function(t){if(t.html){o("body").append(''),"nanui-swim.myshopify.com"===Shopify.shop?o('form[action="/cart/add"]').first().append(t.html):o(".sfg-shop-the-look-wrap").append(t.html);var e=o(".sfg-shop-the-look-wrap").data("mobile-slides")||shoppableSettings.shop_the_look_slides_mobile,a=o(".sfg-shop-the-look-wrap").data("desktop-slides")||shoppableSettings.shop_the_look_slides,i=o(".sfg-shop-the-look-wrap").data("slides-gap")||shoppableSettings.shop_the_look_gap;new Swiper(".swiper",{navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},slidesPerView:1,breakpoints:{320:{slidesPerView:parseInt(e),spaceBetween:parseInt(i)},768:{slidesPerView:parseInt(a),spaceBetween:parseInt(i)}}})}}))},e=function(t){var e=t.attr("id");e&&(t.css("display","none"),o.ajax({type:"GET",url:a.getScriptUrl("/index.php?dispatch=fashion_pack_look_book.look_book_data"),dataType:"json",data:{shop:a.getShopUrl(),hash:e}}).done((function(e){e.html&&(t.html(e.html),a.preloadImages(e.all_images),o("body").addClass("sg-lookbook-embed-page"),t.css("display","block"),setTimeout((function(){s(!0,t)}),1e3))})))},i=function(t){var e=t.attr("id");e&&(t.css("display","none"),o.ajax({type:"GET",url:a.getScriptUrl("/index.php?dispatch=fashion_pack_look.embed_look_data"),dataType:"json",data:{shop:a.getShopUrl(),hash:e}}).done((function(e){e.html&&(t.html(e.html),o("body").addClass("sg-single-look-embed-page"),t.css("display","block"),setTimeout((function(){r(!0,t)}),1e3))})))},n=function(){var o="",t=a.getThemeName();t&&(o=" shoppable-"+t.replace(/\s/g,"-")+"-css-fix"),document.body.className+=o},r=function(t,e){var i=o(".image-map-pro-container",e).data("id");o.ajax({type:"GET",url:a.getScriptUrl("/index.php?dispatch=fashion_pack_look.look_data"),dataType:"json",data:{shop:a.getShopUrl(),id:i,look_book:!1}}).done((function(t){o("body").before(`\n