"use strict";define("paybright",function(){var n={el:{placementTag:"klarna-placement",affirmTag:".paybright-widget-container"},message:{has:function(){return 0<$(n.el.placementTag).length||0<$(n.el.affirmTag).length},update:function(t){t=Math.round(t),$(n.el.placementTag).attr("data-purchase-amount",t)}},installments:{installmentsNum:Oakley.variables.affirm.installmentsNum,calculate:function(t){var a=t.replace(/[\d-.,]*/g,""),e=t.replace(/\D/g,"")/affirm.installments.installmentsNum;return a+Math.round(e)/100},write:function(t){$(".affirmInstallmentNum").text(affirm.installments.installmentsNum),$(".affirmInstallmentValue").text(n.installments.calculate(t))}},cart:{updateCartAffirm:function(){var t=$("#totalPriceCart").length?$("#totalPriceCart").val():0<$("#configureContainer .fc-price").lenght?$("#configureContainer .fc-price").text():$(".total-price span[data-pa-total]").attr("data-pa-total");$(".paybright-widget-container").attr("data-pb_financedamount",t),pb_prequalify_init()},observe:function(){if(n.message.has()){var t=document.getElementsByClassName("total-price")[0];new MutationObserver(function(t,a){t.forEach(function(t){t.target.childNodes[0].nodeValue.substr(1),n.refreshUi()})}).observe(t,{attributes:!0,childList:!0,subtree:!0})}}},ocp:{msg:{calculate:function(){var t=(t=0<$("#mnt_pst").length?$("#mnt_pst").text():$(".fc-price").text()).replace(/[^\d.,]/g,""),a=n.installments.calculate(t),e=$(".paybright-disclaimer").html().replace(/0.00/g,a);$(".paybright-disclaimer").html(e)},append:function(){var t=0<$("#mnt_pst").length?$("#mnt_pst").text():$(".fc-price").text();50<(t=parseFloat(t.replace(/[^\d.,]/g,"")))&&$(".fc-price-container").append($(".paybright-disclaimer"))},appendOsiGuest:function(){var t=$(".paybright-disclaimer").html(),a=t.substr(t.indexOf('