!function(){function e(e){return e&&e.__esModule?e.default:e}var t={};function o(e,t,o,n,i,a,c){try{var r=e[a](c),s=r.value}catch(e){return void o(e)}r.done?t(s):Promise.resolve(s).then(n,i)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var c=e.apply(t,n);function r(e){o(c,i,a,r,s,"next",e)}function s(e){o(c,i,a,r,s,"throw",e)}r(void 0)}))}};var n={},i=function(e){"use strict";var t,o=Object.prototype,n=o.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",r=i.toStringTag||"@@toStringTag";function s(e,t,o){return Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,o){return e[t]=o}}function l(e,t,o,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new O(n||[]);return a._invoke=function(e,t,o){var n=u;return function(i,a){if(n===h)throw new Error("Generator is already running");if(n===f){if("throw"===i)throw a;return E()}for(o.method=i,o.arg=a;;){var c=o.delegate;if(c){var r=C(c,o);if(r){if(r===k)continue;return r}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(n===u)throw n=f,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n=h;var s=d(e,t,o);if("normal"===s.type){if(n=o.done?f:p,s.arg===k)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(n=f,o.method="throw",o.arg=s.arg)}}}(e,o,c),a}function d(e,t,o){try{return{type:"normal",arg:e.call(t,o)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u="suspendedStart",p="suspendedYield",h="executing",f="completed",k={};function v(){}function m(){}function b(){}var g={};s(g,a,(function(){return this}));var y=Object.getPrototypeOf,_=y&&y(y(j([])));_&&_!==o&&n.call(_,a)&&(g=_);var A=b.prototype=v.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(i,a,c,r){var s=d(e[i],e,a);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){o("next",e,c,r)}),(function(e){o("throw",e,c,r)})):t.resolve(u).then((function(e){l.value=e,c(l)}),(function(e){return o("throw",e,c,r)}))}r(s.arg)}var i;this._invoke=function(e,n){function a(){return new t((function(t,i){o(e,n,t,i)}))}return i=i?i.then(a,a):a()}}function C(e,o){var n=e.iterator[o.method];if(n===t){if(o.delegate=null,"throw"===o.method){if(e.iterator.return&&(o.method="return",o.arg=t,C(e,o),"throw"===o.method))return k;o.method="throw",o.arg=new TypeError("The iterator does not provide a 'throw' method")}return k}var i=d(n,e.iterator,o.arg);if("throw"===i.type)return o.method="throw",o.arg=i.arg,o.delegate=null,k;var a=i.arg;return a?a.done?(o[e.resultName]=a.value,o.next=e.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,k):a:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,k)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function j(e){if(e){var o=e[a];if(o)return o.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,c=function o(){for(;++i<e.length;)if(n.call(e,i))return o.value=e[i],o.done=!1,o;return o.value=t,o.done=!0,o};return c.next=c}}return{next:E}}function E(){return{value:t,done:!0}}return m.prototype=b,s(A,"constructor",b),s(b,"constructor",m),m.displayName=s(b,r,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,r,"GeneratorFunction")),e.prototype=Object.create(A),e},e.awrap=function(e){return{__await:e}},w(x.prototype),s(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,o,n,i,a){void 0===a&&(a=Promise);var c=new x(l(t,o,n,i),a);return e.isGeneratorFunction(o)?c:c.next().then((function(e){return e.done?e.value:c.next()}))},w(A),s(A,r,"Generator"),s(A,a,(function(){return this})),s(A,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var o in e)t.push(o);return t.reverse(),function o(){for(;t.length;){var n=t.pop();if(n in e)return o.value=n,o.done=!1,o}return o.done=!0,o}},e.values=j,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var o in this)"t"===o.charAt(0)&&n.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var o=this;function i(n,i){return r.type="throw",r.arg=e,o.next=n,i&&(o.method="next",o.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var c=this.tryEntries[a],r=c.completion;if("root"===c.tryLoc)return i("end");if(c.tryLoc<=this.prev){var s=n.call(c,"catchLoc"),l=n.call(c,"finallyLoc");if(s&&l){if(this.prev<c.catchLoc)return i(c.catchLoc,!0);if(this.prev<c.finallyLoc)return i(c.finallyLoc)}else if(s){if(this.prev<c.catchLoc)return i(c.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return i(c.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var c=a?a.completion:{};return c.type=e,c.arg=t,a?(this.method="next",this.next=a.finallyLoc,k):this.complete(c)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),k},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),S(o),k}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var n=o.completion;if("throw"===n.type){var i=n.arg;S(o)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,o,n){return this.delegate={iterator:j(e),resultName:o,nextLoc:n},"next"===this.method&&(this.arg=t),k}},e}(n);try{regeneratorRuntime=i}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}var a={};Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};var c={};function r(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=function(e,t,o){t&&r(e.prototype,t);o&&r(e,o);return e};var s,l;function d(e){return u.apply(this,arguments)}function u(){return(u=e(t)(e(n).mark((function t(o){var i,a,c;return e(n).wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=o&&o in l?l[o].locale:l["bonusprint.co.uk"].locale,t.prev=2,t.next=5,fetch("https://cookie-consent.".concat(o,"/translations/").concat(c,".json"));case 5:if((i=t.sent).ok){t.next=8;break}throw new Error("".concat(i.status," ").concat(i.statusText));case 8:return t.next=10,i.json();case 10:a=t.sent,t.next=17;break;case 13:t.prev=13,t.t0=t.catch(2),console.error("Translation file error: ".concat(t.t0.message)),a=e(s);case 17:return t.abrupt("return",a);case 18:case"end":return t.stop()}}),t,null,[[2,13]])})))).apply(this,arguments)}s=JSON.parse('{"cookieConsentModal.title":"Cookie settings","cookieConsentModal.description":"bonusprint uses cookies to improve your browsing experience and to be of optimal service to you. By accepting our cookies, we are able to offer you our best experience. If you don\'t want an optimized experience, you can adjust your cookie settings.","cookieConsentModal.manageSettings":"Manage cookie settings","cookieConsentModal.acceptAll":"Accept all cookies","cookieConsentModal.acceptSelection":"Accept selection","cookieConsentModal.essential.title":"Essential cookies","cookieConsentModal.essential.description":"These cookies are essential to ensure the proper technical functioning of our websites. These cookies are also known as technical or purely functional cookies. Examples include cookies that remember what you have put in your shopping cart or what account you are logged in with.","cookieConsentModal.analytical.title":"Analytical cookies","cookieConsentModal.analytical.description":"We use Adobe Analytics and similar tools to analyse how you use our website. These cookies help us to determine what parts of the website are not clear and what we should improve. This information helps us to improve your user experience.","cookieConsentModal.marketing.title":"Marketing cookies","cookieConsentModal.marketing.description":"Tracking or marketing cookies collect data that we use to serve you the most relevant, personalised advertisements on other websites. Some of the cookies described above may be dropped by third parties when you’re using our website. They may use the cookies to serve ads based on your interest or track your response to their ad. bonusprint does not have access to or control over the use of the data collected by these third parties. Please check their Privacy and Cookie Statements for more information. Please note that we do not share any of your personal information we hold in our databases with these third-party companies, except in accordance with our Privacy Policy (you will also find a detailed overview of the specific cookies that are dropped through our websites there)"}'),l={"albelli.nl":{locale:"nl-NL",currencyCodeISO:"EUR",quickReject:!1,facebookId:"651184684948789",bingId:"4012714",tradeTrackerId:{cid:"1641",pid:"2052"},vendor:"albelli.nl"},"albelli.be":{locale:"nl-BE",currencyCodeISO:"EUR",quickReject:!1,facebookId:"274642072703287",bingId:"4011730",tradeTrackerId:{cid:"1727",pid:"2279"},vendor:"albelli.be"},"albelli.de":{locale:"de-DE",currencyCodeISO:"EUR",quickReject:!1,facebookId:"874702872623410",bingId:"4012710",awinId:"10658",vendor:"albelli.de"},"bonusprint.co.uk":{locale:"en-GB",currencyCodeISO:"GBP",quickReject:!1,facebookId:"435959466596432",bingId:"4012718",awinId:"7506",vendor:"bonusprint.co.uk"},"onskefoto.se":{locale:"sv-SE",currencyCodeISO:"SEK",quickReject:!1,facebookId:"662260693809248",bingId:"4012717",awinId:"8984",tradeTrackerId:{cid:"23581",pid:"34446",cidStudent:"23581",pidStudent:"36663"},vendor:"onskefoto.se"},"albelli.se":{locale:"sv-SE",currencyCodeISO:"SEK",quickReject:!1,facebookId:"662260693809248",bingId:"4012717",awinId:"8984",tradeTrackerId:{cid:"23581",pid:"34446",cidStudent:"23581",pidStudent:"36663"},vendor:"onskefoto.se"},"fotoknudsen.no":{locale:"no-NO",currencyCodeISO:"NOK",quickReject:!1,facebookId:"1747541998803910",bingId:"5709829",awinId:"8856",tradeTrackerId:{cid:"23582",pid:"34447"},vendor:"fotoknudsen.no"},"monalbumphoto.fr":{locale:"fr-FR",currencyCodeISO:"EUR",quickReject:!0,facebookId:"924343697599311",bingId:"5223094",vendor:"monalbumphoto.fr"}};var p=function(){"use strict";function o(t){e(a)(this,o),this.vendor=t;var n=document.createElement("style");n.textContent=e('.cookie-consent-modal *{color:#333;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Liberation Sans,sans-serif;font-weight:400}.cookie-consent-modal h5.cookie-title,.cookie-consent-modal p.cookie-paragraph{color:#333;font-size:16px;line-height:27.04px}.cookie-consent-modal h5.cookie-title{font-weight:700}.cookie-consent-modal a.cookie-setting-link{color:#333;font-size:16px;font-weight:700;text-decoration:underline}.cookie-consent-modal a.cookie-setting-link:hover{color:#38bfc4}.cookie-consent-modal .cookie-consent-btn{color:#fff;text-align:center;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;background-color:#38bfc4;border:none;border-radius:35px;padding:11px 48px 15px;font-size:16px;font-weight:700;line-height:normal;text-decoration:none;transition:background-color .3s,border .3s;display:inline-block}.cookie-consent-modal .cookie-consent-btn:hover,.cookie-consent-modal .cookie-consent-btn:active,.cookie-consent-modal .cookie-consent-btn:focus{background-color:#2fa0a4}.cookie-consent-modal .cookie-consent-btn.--secondary{color:#38bfc4;background-color:#fff;border:2px solid #38bfc4;padding:10px 24px 12px}.cookie-consent-modal .cookie-consent-btn.--secondary:hover,.cookie-consent-modal .cookie-consent-btn.--secondary:active,.cookie-consent-modal .cookie-consent-btn.--secondary:focus{color:#fff;background-color:#38bfc4}.cookie-consent-modal *{box-sizing:border-box}.cookie-consent-modal{background-color:#fff}body.cookie-consent-modal-open{width:auto;overflow:hidden}.cookie-consent-modal{text-align:center;z-index:1000;opacity:0;background-color:rgba(0,0,0,.5);margin:0;padding:0;font-size:0;transition:opacity .3s;display:none;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}.cookie-consent-modal:before{vertical-align:middle;content:"";height:100%;width:0;font-size:0;display:inline-block}@media (min-width:575px){.cookie-consent-modal{padding:24px 24px 0}}.cookie-consent-modal.--opened{opacity:1;display:block}.cookie-consent-modal .--hide{display:none!important}.cookie-consent-modal .cookie-consent-modal__content{width:auto;max-width:700px;vertical-align:bottom;text-align:left;background-color:#fff;margin-bottom:0;display:inline-block;position:relative}@media (min-width:575px){.cookie-consent-modal .cookie-consent-modal__content{vertical-align:middle;margin-bottom:24px}}.cookie-selection{max-height:100vh;flex-direction:column;display:flex}.cookie-selection h5{margin:0 0 8px}@media (min-width:575px){.cookie-selection{max-height:calc(100vh - 48px)}}html.os-ios .cookie-selection{max-height:-webkit-fill-available}.cookie-selection__content{overflow:auto;overflow-y:overlay;max-height:calc(100% - 145px);padding:16px}@media (min-width:575px){.cookie-selection__content{max-height:calc(100% - 81px);padding:24px 24px 8px}}.cookie-selection.--quick .cookie-selection__content{padding-bottom:0}.cookie-selection.--quick .cookie-selection__content p{margin-bottom:8px}.cookie-selection.--quick .cookie-selection__content p:last-of-type{margin-top:8px}.cookie-selection.--full .cookie-selection__content{border-bottom:1px solid #ccc}.cookie-selection__actions{flex-direction:column;flex-shrink:0;justify-content:flex-start;align-items:center;padding:16px;display:flex}@media (min-width:575px){.cookie-selection__actions{padding:16px 24px}}.cookie-selection__actions>:first-child{margin:0 0 16px}@media (min-width:575px){.cookie-selection__actions>:first-child{margin:0 0 8px}}.cookie-selection__actions .cookie-consent-btn{width:100%}@media (min-width:575px){.cookie-selection__actions{flex-direction:row}.cookie-selection__actions>:first-child{margin:0 16px 0 0}.cookie-selection__actions .cookie-consent-btn{width:auto}}.cookie-option{border:1px solid #ccc;margin-bottom:8px;padding:16px;position:relative}.cookie-option>div:last-of-type{margin-bottom:16px}.cookie-option label{-webkit-user-select:none;-ms-user-select:none;user-select:none;padding-right:16px;font-weight:700}.cookie-option label input,.cookie-option label span{font-size:16px;font-weight:700}.cookie-option label input:first-of-type,.cookie-option label span:first-of-type{padding-left:8px}.cookie-option:not(.--essential) label{cursor:pointer}.cookie-option__toggle{cursor:pointer;width:32px;height:32px;position:absolute;top:12px;right:8px}.cookie-option__toggle:before,.cookie-option__toggle:after{content:" ";width:10px;height:3px;background-color:#333;margin:auto;position:absolute;top:0;bottom:0;left:0;right:0}.cookie-option__toggle:after{transform:rotate(90deg)}.cookie-option__toggle:hover:before,.cookie-option__toggle:hover:after{background-color:#38bfc4}.cookie-option.--expanded .cookie-option__toggle:after,.cookie-option__description{display:none}.cookie-option.--expanded{border-color:#ff6a13}.cookie-option.--expanded .cookie-option__description{display:block}')+this.setupModalCompensatorCss(),document.head.appendChild(n)}return e(c)(o,[{key:"setupModalCompensatorCss",value:function(){var e=window.innerWidth-document.documentElement.clientWidth;return"body.modal-scroll-compensation { margin-right: ".concat(e,"px; }")}},{key:"getNodeTree",value:function(){var o=this;return e(t)(e(n).mark((function t(){var i;return e(n).wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(o.vendor);case 2:return o.translations=e.sent,i='<div class="cookie-consent-modal">\n                        <div class="cookie-consent-modal__content">\n                            '.concat(o.createQuickCookieSelectionNodeTree(),"\n                            ").concat(o.createFullCookieSelectionNodeTree(),"\n                        </div>\n                      </div>"),e.abrupt("return",document.createRange().createContextualFragment(i));case 5:case"end":return e.stop()}}),t)})))()}},{key:"createQuickCookieSelectionNodeTree",value:function(){return'\n            <div class="cookie-selection --quick">\n                <div class="cookie-selection__content">\n                    <h5 class="cookie-title">'.concat(this.translate("cookieConsentModal.title"),'</h5>\n                    <p class="cookie-paragraph">').concat(this.translate("cookieConsentModal.description"),'</p>\n                    <p class="cookie-paragraph">\n                        <a href="" class="cookie-selection__actions__manage cookie-setting-link">').concat(this.translate("cookieConsentModal.manageSettings"),'</a>\n                    </p>\n                </div>\n\n                <div class="cookie-selection__actions">\n                    <button class="cookie-consent-btn cookie-selection__actions__all">\n                        ').concat(this.translate("cookieConsentModal.acceptAll"),'\n                    </button>\n                    <button class="cookie-consent-btn --secondary cookie-selection__actions__reject --hide">\n                        ').concat(this.translate("cookieConsentModal.rejectMarketing"),"\n                    </button>\n                </div>\n            </div>")}},{key:"createFullCookieSelectionNodeTree",value:function(){return'\n            <div class="cookie-selection --full --hide">\n                <div class="cookie-selection__content">\n                    <div class="cookie-option --essential">\n                        <label>\n                            <input type="checkbox" checked disabled />\n                            <span>'.concat(this.translate("cookieConsentModal.essential.title"),'</span>\n                        </label>\n                        <span class="cookie-option__toggle"></span>\n                        <p class="cookie-paragraph cookie-option__description">\n                            ').concat(this.translate("cookieConsentModal.essential.description"),'\n                        </p>\n                    </div>\n                    <div class="cookie-option --essential">\n                        <label>\n                            <input type="checkbox" checked disabled /><span>\n                                ').concat(this.translate("cookieConsentModal.analytical.title"),'\n                            </span>\n                        </label>\n                        <span class="cookie-option__toggle"></span>\n                        <p class="cookie-paragraph cookie-option__description">\n                            ').concat(this.translate("cookieConsentModal.analytical.description"),'\n                        </p>\n                    </div>\n                    <div class="cookie-option">\n                        <label>\n                            <input type="checkbox" name="marketing" />\n                            <span>').concat(this.translate("cookieConsentModal.marketing.title"),'</span>\n                        </label>\n                        <span class="cookie-option__toggle"></span>\n                        <p class="cookie-paragraph cookie-option__description">\n                            ').concat(this.translate("cookieConsentModal.marketing.description"),'\n                        </p>\n                    </div>\n                </div>\n                <div class="cookie-selection__actions">\n                    <button class="cookie-consent-btn --secondary cookie-selection__actions__all">\n                        ').concat(this.translate("cookieConsentModal.acceptAll"),'\n                    </button>\n                    <button class="cookie-consent-btn --secondary cookie-selection__actions__selected">\n                        ').concat(this.translate("cookieConsentModal.acceptSelection"),"\n                    </button>\n                </div>\n            </div>\n        ")}},{key:"translate",value:function(e){return e in this.translations?this.translations[e]:e}}]),o}(),h=function(){"use strict";function t(o,n){if(e(a)(this,t),this.vendorObject=o,this.baseFbEventsScript(),this.initFbtrack(),"undefined"!=typeof AA_data&&"function"==typeof fbq){if("albelli-storefront"===n)this.productPageFbTrack(),this.photobookEditorTrack(),window.location.href.includes("student")&&"url-without-domain"in AA_data&&"ordercompleted"===AA_data["url-without-domain"]&&this.studentPlakatConversionPixel();"albelli-checkout"===n&&this.albelliCheckoutTrack()}}return e(c)(t,[{key:"baseFbEventsScript",value:function(){var e,t,o,n,i,a;e=window,t=document,o="script",e.fbq||(n=e.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)},e._fbq||(e._fbq=n),n.push=n,n.loaded=!0,n.version="2.0",n.queue=[],(i=t.createElement(o)).async=!0,i.src="https://connect.facebook.net/en_US/fbevents.js",(a=t.getElementsByTagName(o)[0]).parentNode.insertBefore(i,a))}},{key:"initFbtrack",value:function(){"function"==typeof fbq?(fbq("init",this.vendorObject.facebookId),fbq("track","PageView")):console.error("There seems to be a problem with the Facebook pixel script, fbq is not a function")}},{key:"productPageFbTrack",value:function(){if("page-name"in AA_data){var e="";["Wall Decor: Category Page","Wall Decor: Product Detail Page","Photo Book: Category Page","Photo Book: Sub-Category Page","Calendars: Product Detail Page","Photo Book: Product Filter Page","Photo Book: Product Detail Page","Calendars: Overview","Cards: Category Page","Cards: Sub-Category Page","Prints: Category Page","Mugs: Product Detail Page","Vouchers: Product Detail Page","Calendars: Category Page","Calendars: Sub-Category Page","Cards: Product Detail Page"].includes(AA_data["page-name"])&&(e=AA_data["page-name"],"Wall Decor: Product Detail Page"===AA_data["page-name"]&&(e=e+" "+AA_data["page-subcategory"]),"Photo Book: Product Detail Page"==AA_data["page-name"]&&AA_data["url-without-domain-global"].indexOf("/photo-books/themes/")>-1&&(e=e+" "+AA_data["url-without-domain-global"].split("/")[3]),fbq("track","ViewContent",{content_type:e}))}}},{key:"photobookEditorTrack",value:function(){if("url-without-domain-global"in AA_data){if(AA_data["url-without-domain-global"].includes("/photo-books/start/online")){var e=document.querySelector(".arc3-gallery-filter");if(e)e.querySelectorAll(".arc3-product-block").forEach((function(e){e.addEventListener("click",(function(){fbq("track","PhotobookEditor")}))}))}AA_data["url-without-domain-global"].includes("/start/installation-successful/")&&fbq("track","PhotobookEditor")}}},{key:"studentPlakatConversionPixel",value:function(){"totalprice"in AA_data&&fbq("track","Purchase",{value:AA_data.totalprice,currency:this.vendorObject.currencyCodeISO})}},{key:"albelliCheckoutTrack",value:function(){"Payment : Pending"===AA_data.pagename?this.albelliCheckoutPaymentPending():"Payment : Successful"===AA_data.pagename?this.albelliCheckoutPaymentSuccessful():this.albelliCheckoutConfigurationPages()}},{key:"albelliCheckoutPaymentPending",value:function(){var e;fbq("track","Purchase",{value:null===(e=AA_data.transaction)||void 0===e?void 0:e["price-no-vat"],currency:this.vendorObject.currencyCodeISO})}},{key:"albelliCheckoutPaymentSuccessful",value:function(){var e,t,o=/Mobi|Android/i.test(navigator.userAgent)?"Mobile":"Desktop",n=[],i=[],a="";if(1==AA_data.transaction.products.split(",").length)n.push(AA_data.transaction.products.split(",")[0].split(";")[1].split("_COVER")[0]),i.push({id:AA_data.transaction.products.split(",")[0].split(";")[1].split("_COVER")[0],quantity:AA_data.transaction.products.split(",")[0].split(";")[2]});else if(AA_data.transaction.products.split(",").length>1){for(var c,r=AA_data.transaction.products.split(","),s=0;s<r.length;s++)n.push(r[s].split(",")[0].split(";")[1].split("_COVER")[0]),i.push({id:r[s].split(",")[0].split(";")[1].split("_COVER")[0],quantity:r[s].split(",")[0].split(";")[2]});for(var l=r[0].split(",")[0].split(";")[3],d=0,u=1;u<r.length;u++)r[u].split(",")[0].split(";")[3]>l&&-1==r[u].split(",")[0].split(";")[1].split("_COVER")[0].indexOf("shipping")&&(d=u,l=r[u].split(",")[0].split(";")[3]);a=null===(c=AA_data.transaction)||void 0===c?void 0:c.products.split(",")[d].split("eVar8=")[1].split("|")[0]}fbq("track","Purchase",{value:null===(e=AA_data.transaction)||void 0===e?void 0:e["price-no-vat"],currency:this.vendorObject.currencyCodeISO,device:o,editor:a,content_ids:n,contents:JSON.stringify(i)},{eventID:null===(t=AA_data.transaction)||void 0===t?void 0:t.superorderid})}},{key:"albelliCheckoutConfigurationPages",value:function(){var e=window.location.pathname;try{if("/Basket"==e){var t=[];if(1==AA_data.products.split(",").length)t.push(AA_data.products.split(",")[0].split(";")[1].split("_COVER")[0]);else if(AA_data.products.split(",").length>1)for(var o=AA_data.products.split(","),n=0;n<o.length;n++)t.push(o[n].split(",")[0].split(";")[1].split("_COVER")[0]);fbq("track","AddToCart",{content_ids:t,content_type:"",value:AA_data["checkout-basket-value"],currency:this.vendorObject.currencyCodeISO})}else if("/Details"==e){var i=[];if(1==AA_data.products.split(",").length)i.push(AA_data.products.split(",")[0].split(";")[1].split("_COVER")[0]);else if(AA_data.products.split(",").length>1)for(var a=AA_data.products.split(","),c=0;c<a.length;c++)i.push(a[c].split(",")[0].split(";")[1].split("_COVER")[0]);fbq("track","InitiateCheckout",{content_ids:i,content_type:"",value:AA_data["checkout-basket-value"],currency:this.vendorObject.currencyCodeISO,num_items:AA_data["checkout-basket-quantity"]})}else"/Payment"==e&&fbq("track","AddPaymentInfo")}catch(e){console.log("Empty Cart")}}}]),t}(),f=function(){"use strict";function t(o,n){e(a)(this,t),this.vendorObject=o,this.baseBingEventsScript(),"undefined"!=typeof AA_data&&"object"==typeof uetq&&"albelli-checkout"===n&&this.albelliCheckoutTrack()}return e(c)(t,[{key:"baseBingEventsScript",value:function(){var e,t,o,n,i,a,c,r,s=this.vendorObject.bingId;e=window,t=document,o="script",r=s,e[n="uetq"]=e[n]||[],i=function(){var t={ti:r};t.q=e[n],e[n]=new UET(t),e[n].push("pageLoad")},(a=t.createElement(o)).src=" //bat.bing.com/bat.js",a.async=1,a.onload=a.onreadystatechange=function(){var e=this.readyState;e&&"loaded"!==e&&"complete"!==e||(i(),a.onload=a.onreadystatechange=null)},(c=t.getElementsByTagName(o)[0]).parentNode.insertBefore(a,c)}},{key:"albelliCheckoutTrack",value:function(){var e;window.uetq=window.uetq||[],window.uetq.push("event","",{revenue_value:null===(e=AA_data.transaction)||void 0===e?void 0:e["price-no-vat"],currency:this.vendorObject.currencyCodeISO})}}]),t}(),k=function(){"use strict";function t(o,n){e(a)(this,t),this.baseOutbrainScript(n),this.vendorObject=o,"undefined"!=typeof AA_data&&"function"==typeof obApi&&("albelli-checkout"!==n||"Payment : Pending"!==AA_data.pagename&&"Payment : Successful"!==AA_data.pagename||this.albelliCheckoutTrack())}return e(c)(t,[{key:"baseOutbrainScript",value:function(){!function(e,t){var o="000a65c41a2ce9b689492a7a50e3862417";if(e.obApi){var n=function(e){return"[object Array]"===Object.prototype.toString.call(e)?e:[e]};e.obApi.marketerId=n(e.obApi.marketerId).concat(n(o))}else{var i=e.obApi=function(){i.dispatch?i.dispatch.apply(i,arguments):i.queue.push(arguments)};i.version="1.1",i.loaded=!0,i.marketerId=o,i.queue=[];var a=t.createElement("script");a.async=!0,a.src="//amplify.outbrain.com/cp/obtp.js",a.type="text/javascript";var c=t.getElementsByTagName("script")[0];c.parentNode.insertBefore(a,c)}}(window,document),"function"==typeof obApi?(obApi("track","PAGE_VIEW"),window.location.pathname.indexOf("/livre-photo/debut/merci")>-1&&obApi("track","DOWNLOAD"),window.location.pathname.indexOf("/Basket")>-1&&obApi("track","ADD_TO_CART")):console.error("There seems to be a problem with the Outbrain pixel script, obApi is not a function")}},{key:"albelliCheckoutTrack",value:function(){var e,t;obApi("track","Purchase",{orderValue:null===(e=AA_data.transaction)||void 0===e?void 0:e["price-no-vat-no-shipping"],orderId:null===(t=AA_data.transaction)||void 0===t?void 0:t.superorderid,currency:this.vendorObject.currencyCodeISO})}}]),t}();function v(e){return document.cookie.split("; ").reduce((function(t,o){var n=o.split("=");return n[0]===e?decodeURIComponent(n[1]):t}),"")}function m(){if(!new URL(document.location.href).href.includes("exclude_tracking")){var e=document.head||document.querySelector("head"),t=document.createElement("script");t.setAttribute("id","launch-tag"),t.setAttribute("src","//assets.adobedtm.com/launch-EN52371c77beac4172b6a877965d642180.min.js"),t.setAttribute("defer",!0),e.appendChild(t)}}function b(e){var t=document.createElement("img");t.src=e,document.getElementsByTagName("head")[0].appendChild(t)}var g=function(){"use strict";function t(o,n){e(a)(this,t),this.vendorObject=o,this.baseKenshooScript(),"undefined"!=typeof AA_data&&"function"==typeof ktag&&"albelli-checkout"===n&&this.albelliCheckoutTrack()}return e(c)(t,[{key:"baseKenshooScript",value:function(){var e,t,o,n,i,a;e=window,t=document,o="script",e.ktag||(n=function(){n.sendEvent?n.sendEvent(arguments):n.ktq.push(arguments)},n.ktq=[],e.ktag=n,i=t.getElementsByTagName(o)[0],(a=t.createElement(o)).async=!0,a.src="//resources.xg4ken.com/js/v2/ktag.js?tid=KT-N34B6-3EB",i.parentNode.appendChild(a)),"function"==typeof ktag?ktag("setup","KT-N34B6-3EB"):console.error("There seems to be a problem with the Kenshoo pixel script, ktag is not a function")}},{key:"albelliCheckoutTrack",value:function(){if("Payment : Pending"===AA_data.pagename||"Payment : Successful"===AA_data.pagename){var e,t,o,n=null===(e=AA_data.items)||void 0===e?void 0:e.reduce((function(e,t){return e+parseInt(t.quantity)}),0);b("https://3494.xg4ken.com/pixel/v1?track=1&token=eb55ec13-27e2-4d57-9ab3-cc37966b36bf&conversionType=conv&revenue=".concat(null===(t=AA_data.transaction)||void 0===t?void 0:t["price-no-vat"],"&currency=").concat(this.vendorObject.currencyCodeISO,"&orderId=").concat(null===(o=AA_data.transaction)||void 0===o?void 0:o.superorderid,"&promoCode=&orderItemsCount=").concat(n,"&customParam2="))}}}]),t}(),y=function(){"use strict";function t(o,n){e(a)(this,t),this.vendorObject=o,this.application=n,this.googleScript()}return e(c)(t,[{key:"googleScript",value:function(){var e,t;function o(){dataLayer.push(arguments)}window.setTimeout((function(){!function(e,t,o){var n=e.createElement(t);n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=AW-1023345244";var i=e.getElementsByTagName(t)[0];i.parentNode.insertBefore(n,i)}(document,"script")}),500),window.dataLayer=window.dataLayer||[],o("js",new Date),o("config","AW-1023345244"),"undefined"!=typeof AA_data&&("albelli-checkout"!==this.application||"Payment : Pending"!==AA_data.pagename&&"Payment : Successful"!==AA_data.pagename||o("event","conversion",{send_to:"AW-1023345244/53CMCL_QgXUQ3IT85wM",value:null===(e=AA_data.transaction)||void 0===e?void 0:e["price-no-vat"],currency:this.vendorObject.currencyCodeISO,transaction_id:null===(t=AA_data.transaction)||void 0===t?void 0:t.superorderid}))}}]),t}(),_=function(){"use strict";function t(o){e(a)(this,t),this.baseLeadsmonitorScripts(),this.baseLeadsmonitorPixel(),"undefined"!=typeof AA_data&&("albelli-checkout"!==o||"Payment : Pending"!==AA_data.pagename&&"Payment : Successful"!==AA_data.pagename&&"Payment : Complimentary"!==AA_data.pagename||this.albelliCheckoutTrack())}return e(c)(t,[{key:"baseLeadsmonitorScripts",value:function(){document.body.insertAdjacentHTML("beforeend",'<script type="text/javascript" src="//monalbumphoto-1.leadsmonitor.io/track.js" async><\/script> <script type="text/javascript" src="//monalbumphoto-2.leadsmonitor.io/track.js" async><\/script>')}},{key:"baseLeadsmonitorPixel",value:function(){document.body.insertAdjacentHTML("beforeend",'<div id="_lm_pix" style="display: none;"></div>')}},{key:"albelliCheckoutTrack",value:function(){var e,t=t||{};t.type="order",t.revenue=null===(e=AA_data.transaction)||void 0===e?void 0:e["price-no-vat-no-shipping"]}}]),t}(),A=function(){"use strict";function t(o){e(a)(this,t),this.vendorObject=o,"tradeTrackerId"in this.vendorObject&&"undefined"!=typeof AA_data&&v("network").includes("AFF_TTR")&&("ordercompleted"!==AA_data["url-without-domain"]&&"Payment : Pending"!==AA_data.pagename&&"Payment : Successful"!==AA_data.pagename||this.baseTradetrackerPixel())}return e(c)(t,[{key:"baseTradetrackerPixel",value:function(){var e,t,o,n;"onskefoto.se"===this.vendorObject.vendor&&window.location.href.includes("student")?(o=this.vendorObject.tradeTrackerId.cidStudent,n=this.vendorObject.tradeTrackerId.pidStudent):(o=this.vendorObject.tradeTrackerId.cid,n=this.vendorObject.tradeTrackerId.pid);var i=null===AA_data||void 0===AA_data||null===(e=AA_data.transaction)||void 0===e?void 0:e.superorderid,a=null===AA_data||void 0===AA_data||null===(t=AA_data.transaction)||void 0===t?void 0:t["price-no-vat-no-shipping"];document.body.insertAdjacentHTML("beforeend",'<img style="display: none;" src="//ts.tradetracker.net/?cid='.concat(o,"&amp;pid=").concat(n,"&amp;tid=").concat(i,"&amp;tam=").concat(a,"&amp;descrMerchant=").concat(AA_data["menu-title"],"&amp;descrAffiliate=").concat(AA_data["menu-title"],"&amp;event=sales&amp;currency=").concat(this.vendorObject.currencyCodeISO,'" alt="" />'))}}]),t}(),w=function(){"use strict";function t(o){e(a)(this,t),this.vendorObject=o,"awinId"in this.vendorObject&&v("network").includes("AFF_ZNX")&&"undefined"!=typeof AA_data&&"Checkout : /Review"!==AA_data.pagename&&("url-without-domain"in AA_data&&"ordercompleted"===AA_data["url-without-domain"]||"Payment : Pending"===AA_data.pagename||"Payment : Successful"===AA_data.pagename?this.setAwinDataObject():this.baseAwinPixel())}return e(c)(t,[{key:"baseAwinPixel",value:function(){var e=document.head||document.querySelector("head"),t=document.createElement("script");t.setAttribute("src","https://www.dwin1.com/".concat(this.vendorObject.awinId,".js")),t.setAttribute("defer",!0),e.appendChild(t)}},{key:"setAwinDataObject",value:function(){var e,t,o,n,i,a,c=null===AA_data||void 0===AA_data||null===(e=AA_data.transaction)||void 0===e?void 0:e.superorderid,r=null!==(i=null===AA_data||void 0===AA_data||null===(t=AA_data.transaction)||void 0===t?void 0:t["price-no-vat-no-shipping"])&&void 0!==i?i:"",s="voucher"in AA_data?AA_data.voucher:"",l=null!==(a=[null===(o=AA_data.items)||void 0===o||null===(n=o[0])||void 0===n?void 0:n.category])&&void 0!==a?a:[],d={Tracking:{}};d.Tracking.Sale={},d.Tracking.Sale.amount=r,d.Tracking.Sale.channel="aw",d.Tracking.Sale.orderRef=c,d.Tracking.Sale.parts="default:"+r,d.Tracking.Sale.voucher=s,d.Tracking.Sale.currency=this.vendorObject.currencyCodeISO,d.Tracking.Sale.test=+window.location.href.includes("test"),d.Tracking.Sale.custom=l,document.body.insertAdjacentHTML("beforeend",'<img src="https://www.awin1.com/sread.img?tt=ns&tv=2&merchant='.concat(this.vendorObject.awinId,"&amount=").concat(r,"&ch=aw&parts=default:").concat(r,"&vc=").concat(s,"&cr=").concat(this.vendorObject.currencyCodeISO,"&ref=").concat(c,"&p1=").concat(l,"&testmode=").concat(+window.location.href.includes("test"),'" style="display:none;" alt="" />')),this.baseAwinPixel()}}]),t}(),x=function(){"use strict";function t(o,n){e(a)(this,t),this.vendorObject=o,"albelli-checkout"===n&&"undefined"!=typeof AA_data&&v("network").includes("AFF_M6G")&&("Payment : Pending"!==AA_data.pagename&&"Payment : Successful"!==AA_data.pagename||this.albelliCheckoutTrack())}return e(c)(t,[{key:"albelliCheckoutTrack",value:function(){var e,t;b("https://tbs.tradedoubler.com/report?organization=2208635&event=389675&ordernumber=".concat(null===(e=AA_data.transaction)||void 0===e?void 0:e.superorderid,"&ordervalue=").concat(null===(t=AA_data.transaction)||void 0===t?void 0:t["price-no-vat-no-shipping"],"&currency=").concat(this.vendorObject.currencyCodeISO))}}]),t}(),C=function(){"use strict";function t(o,n){e(a)(this,t),this.vendorObject=o,"albelli-checkout"===n&&"undefined"!=typeof AA_data&&v("network").includes("AFF_RPB_")&&("Payment : Pending"!==AA_data.pagename&&"Payment : Successful"!==AA_data.pagename||this.albelliCheckoutTrack())}return e(c)(t,[{key:"albelliCheckoutTrack",value:function(){var e,t,o,n;o="https://tbs.tradedoubler.com/report?organization=2079753&event=357963&orderNumber=".concat(null===(e=AA_data.transaction)||void 0===e?void 0:e.superorderid,"&orderValue=").concat(null===(t=AA_data.transaction)||void 0===t?void 0:t["price-no-vat-no-shipping"],"&currency=").concat(this.vendorObject.currencyCodeISO),(n=document.createElement("iframe")).style.display="none",n.src=o,document.body.appendChild(n)}}]),t}(),P=function(){"use strict";function t(o,n){e(a)(this,t),this.vendorObject=o,this.application=n,this.defaultPixels(),"monalbumphoto.fr"===o.vendor&&this.extraMonalbumphotoPixels()}return e(c)(t,[{key:"defaultPixels",value:function(){new h(this.vendorObject,this.application),new f(this.vendorObject,this.application),new k(this.vendorObject,this.application),new g(this.vendorObject,this.application),new y(this.vendorObject,this.application),new A(this.vendorObject),new w(this.vendorObject)}},{key:"extraMonalbumphotoPixels",value:function(){new _(this.application),new x(this.vendorObject,this.application),new C(this.vendorObject,this.application)}}]),t}(),S=function(){"use strict";function t(o,n,i){e(a)(this,t),this.modal=o.querySelector(".cookie-consent-modal"),this.vendor=n,this.application=i,this.vendorObject=n&&n in l?l[n]:l["bonusprint.co.uk"].locale,this.modal&&(this.quickSelection=this.modal.querySelector(".cookie-selection.--quick .cookie-selection__actions"),this.fullSelection=this.modal.querySelector(".cookie-selection.--full"),this.acceptAll=this.modal.querySelectorAll(".cookie-selection__actions__all"),this.rejectMarketing=this.modal.querySelector(".cookie-selection__actions__reject"),this.acceptSelected=this.modal.querySelector(".cookie-selection__actions__selected"),this.manageSettings=this.modal.querySelector(".cookie-selection__actions__manage"),this.options=this.modal.querySelectorAll(".cookie-option"),this.inputs={marketing:this.modal.querySelector("input[name=marketing]")},this.bindEventListeners(),document.body.appendChild(o),this.openConsentModal(),this.toggleQuickRejectButton())}return e(c)(t,[{key:"openConsentModal",value:function(){window.preventPoppingUpModals=!0,document.body.classList.add("modal-scroll-compensation"),document.body.classList.add("cookie-consent-modal-open"),this.modal&&this.modal.classList.add("--opened")}},{key:"toggleQuickRejectButton",value:function(){this.vendorObject.quickReject&&this.rejectMarketing&&this.rejectMarketing.classList.remove("--hide")}},{key:"bindEventListeners",value:function(){var e=this;this.manageSettings.addEventListener("click",(function(t){t.preventDefault(),e.setSelectionView("full")})),this.acceptAll.forEach((function(t){var o=e;t.addEventListener("click",(function(){o.saveCookie({marketing:!0}),o.closeModal(),o.addMarketingPixels()}))})),this.acceptSelected.addEventListener("click",(function(){var t={marketing:e.inputs.marketing.checked};e.saveCookie(t),e.closeModal(),e.inputs.marketing.checked&&e.addMarketingPixels()})),this.rejectMarketing.addEventListener("click",(function(){e.saveCookie({marketing:!1}),e.closeModal()})),this.options.forEach((function(t){var o=e,n=t.querySelector(".cookie-option__toggle");n&&n.addEventListener("click",(function(){o.options.forEach((function(e){var o=e!==t||t.classList.contains("--expanded")?"remove":"add";e.classList[o]("--expanded")}))}))}))}},{key:"closeModal",value:function(){this.removeModalBodyHelperClasses(),this.modal.classList.remove("--opened")}},{key:"removeModalBodyHelperClasses",value:function(){document.body.classList.remove("modal-scroll-compensation"),document.body.classList.remove("cookie-consent-modal-open")}},{key:"setSelectionView",value:function(e){var t="full"===e;this.quickSelection.classList[t?"add":"remove"]("--hide"),this.manageSettings.classList[t?"add":"remove"]("--hide"),this.fullSelection.classList[t?"remove":"add"]("--hide")}},{key:"saveCookie",value:function(e){var t=new Date;t.setTime(t.getTime()+31536e6);var o=t.toUTCString(),n="."+this.vendor;(window.Cypress||window.location.href.includes("localhost"))&&(n=window.location.hostname.replace("www.","")),document.cookie="".concat("cookie_consent","=").concat(e.marketing?"1":"0",";expires=").concat(o,";domain=").concat(n,";path=/"),document.cookie="".concat("hideCookieMessage","=1;expires=").concat(o,";domain=").concat(n,";path=/")}},{key:"addMarketingPixels",value:function(){this.vendor&&this.vendor in l?("monalbumphoto.fr"===this.vendor&&"albelli-storefront"===this.application&&m(),new P(l[this.vendor])):console.error("Unknown vendor given to the cookieConsent library, not setting marketing pixels")}}]),t}(),O="cookie_consent",j={};function E(){return T.apply(this,arguments)}function T(){return(T=e(t)(e(n).mark((function t(){var o,i;return e(n).wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=new p(j.vendor),e.next=3,o.getNodeTree();case 3:i=e.sent,new S(i,j.vendor,j.application);case 5:case"end":return e.stop()}}),t)})))).apply(this,arguments)}window.enableCookieConsentModal=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"albelli-storefront";if(e&&e in l){var o=v(O);j.vendor=l[e].vendor,j.application=t,"0"!==o&&("1"===o?("monalbumphoto.fr"===j.vendor&&"albelli-storefront"===j.application&&m(),setTimeout((function(){"complete"===document.readyState?new P(l[j.vendor],j.application):window.addEventListener("load",(function(){new P(l[j.vendor],j.application)}))}),4e3)):E())}else console.error("No (valid) vendor ".concat(e," given to the cookieConsent library, valid options are: "),Object.keys(l))}}();