1(()=>{"use strict";let t;class e{static isSupported(){return"undefined"!==document.cookie}static setItem(t,e,r){if(null==t)throw Error("You must specify a key to set a cookie");let i=new Date;i.setTime(i.getTime()+864e5*r);let n="";"https:"===location.protocol&&(n="secure"),document.cookie="".concat(t,"=").concat(e,";expires=").concat(i.toUTCString(),";path=/;sameSite=lax;").concat(n)}static getItem(t){if(!t)return!1;let e=t+"=",r=document.cookie.split(";");for(let t=0;t<r.length;t++){let i=r[t];for(;" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return!1}static removeItem(t){document.cookie="".concat(t,"= ; expires = Thu, 01 Jan 1970 00:00:00 GMT;path=/")}static key(){return""}static clear(){}}class r{get(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",i=this._createPreparedRequest("GET",t,r);return this._sendRequest(i,null,e)}post(t,e,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(e,i);let n=this._createPreparedRequest("POST",t,i);return this._sendRequest(n,e,r)}delete(t,e,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(e,i);let n=this._createPreparedRequest("DELETE",t,i);return this._sendRequest(n,e,r)}patch(t,e,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(e,i);let n=this._createPreparedRequest("PATCH",t,i);return this._sendRequest(n,e,r)}
1abort(){if(this._request)return this._request.abort()}_registerOnLoaded(t,e){e&&t.addEventListener("loadend",()=>{e(t.responseText,t)})}_sendRequest(t,e,r){return this._registerOnLoaded(t,r),t.send(e),t}_getContentType(t,e){return t instanceof FormData&&(e=!1),e}_createPreparedRequest(t,e,r){return this._request=new XMLHttpRequest,this._request.open(t,e),this._request.setRequestHeader("X-Requested-With","XMLHttpRequest"),r&&this._request.setRequestHeader("Content-type",r),this._request}constructor(){this._request=null}}class i{loadContext(t){this._client.post(this.routes.customer,null,e=>{t(JSON.parse(e))})}loadCart(t){this._client.post(this.routes.cart,null,e=>{t(JSON.parse(e))})}loadOrder(t,e){this._client.post(this.routes.order,JSON.stringify({orderId:t}),t=>{e(JSON.parse(t))})}loadProduct(t,e){this._client.post(this.routes.product,JSON.stringify({productId:t}),t=>{e(JSON.parse(t))})}constructor(t){this._client=new r,this.routes=t}}class n{get(t){return this.data.has(t)?this.data.get(t):null}constructor(){this.data=window.mediameetsFacebookPixelData}}class s{supports(t,e){return this.warn("Method 'supports' was not overridden by `"+this.constructor.name+"`. Default return set to false."),!1}execute(){this.warn("Method 'execute' was not overridden by `"+this.constructor.name+"`.")}disable(){this.active=!1}initEvent(t){return new t(this.plugin)}warn(t){console.warn("[Facebook Pixel Plugin (media:meets GmbH)] "+t)}getStorageKey(t){return"mediameetsFacebookPixel."+t}constructor(t){this.active=!0,this.plugin=t,this.apiService=new i(t.options.routes)}}class o extends s{execute(){let t=this.events(),e=window.PluginManager,r=e.getPluginList();Object.keys(t).forEach(i=>{void 0!==r[i]&&e.getPluginInstances(i).forEach(e=>{Object.keys(t[i]).forEach(r=>{e.$emitter.subscribe(r,t[i][r])})})})}events(){this.warn("Method 'events' was not overridden by `"+this.constructor.name+"`.")}}class a{static getContents(t){let e=[];return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"products")&&t.products.forEach(function(t){e.push({id:t.productNumber,quantity:1})}),e}}let c={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},u=new Uint8Array(16);function d(){if(!t&&!(t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(u)}let l=[];for(let t=0;t<256;++t)l.push((t+256).toString(16).slice(1));let h=function(t,e,r){if(c.randomUUID&&!e&&!t)return c.randomUUID();let i=(t=t||{}).random||(t.rng||d)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){r=r||0;for(let t=0;t<16;++t)e[r+t]=i[t];return e}return function(t,e=0){return l[t[e+0]]+l[t[e+1]]+l[t[e+2]]+l[t[e+3]]+"-"+l[t[e+4]]+l[t[e+5]]+"-"+l[t[e+6]]+l[t[e+7]]+"-"+l[t[e+8]]+l[t[e+9]]+"-"+l[t[e+10]]+l[t[e+11]]+l[t[e+12]]+l[t[e+13]]+l[t[e+14]]+l[t[e+15]]}(i)};class p{generateEventId(){return this.plugin.isExternalIdDeduplication()?null:h()}setupEventIdForJS(t){return this.plugin.isExternalIdDeduplication()?null:{eventID:t}}callConversionApi(t){let e=this.plugin.options;!0===e.config.useConversionApi&&""!==e.conversionApi.endpoint&&this.httpClient.post(e.conversionApi.endpoint,JSON.stringify({events:t,customer:this.plugin.customer,event_source_url:this.getEventSourceUrl()}))}getEventSourceUrl(){let t=[window.location.href,document.location.href,document.URL,document.documentURI],e="";for(let r of t)if("string"==typeof r&&""!==r){e=r;break}if("string"==typeof e&&""!==e)return e;let r=document.querySelector('link[rel="canonical"]');return r&&"string"==typeof(e=r.href)&&""!==e?e:""}constructor(t){this.apiService=new i(t.options.routes),this.httpClient=new r,this.plugin=t}}class g{constructor(t,e,r){this.name=t,this.data=e,this.id=r,this.time=Math.floor(Date.now()/1e3)}}class f extends p{track(t,e){if(!window.fbq)return;let r="Search",i={search_string:t,content_type:"product",contents:a.getContents(e),currency:this.plugin.options.shop.currency,value:0},n=this.generateEventId();window.fbq("track",r,i,this.setupEventIdForJS(n)),this.callConversionApi([new g(r,i,n)])}}class v extends o{supports(){return!0}events(){return{SearchWidget:{handleInputEvent:this._trackEvent.bind(this)}}}_trackEvent(t){this.active&&this.initEvent(f).track(t.detail.value)}}class m extends s{supports(t,e){return"search"===t&&"search"===e}execute(){if(!this.active)return;let t=new URLSearchParams(window.location.search);if(!t.has("search"))return;let e=new n().get("listing");this.initEvent(f).track(t.get("search"),e)}}class _{static getContents(t){let e=[];
1return Object.values(t.lineItems).forEach(function(t){e.push({id:t.productNumber,quantity:t.quantity})}),e}static getTotalItems(t){let e=0;return Object.values(t.lineItems).forEach(function(t){e+=t.quantity}),e}static getProductByNumber(t,e){let r=null;return Object.values(t.lineItems).forEach(function(t){t.productNumber===e&&(r=t)}),r}static getProductById(t,e){let r=null;return Object.values(t.lineItems).forEach(function(t){t.referencedId===e&&(r=t)}),r}}class w extends p{track(t,e){if(!window.fbq)return;let r=(t.totalPrice/t.quantity*(e=void 0===e?1:e)).toFixed(2),i="AddToCart",n={content_type:"product",content_name:t.label,value:r,currency:this.plugin.options.shop.currency,contents:[{id:t.productNumber,quantity:e}]},s=this.generateEventId();window.fbq("track",i,n,this.setupEventIdForJS(s)),this.callConversionApi([new g(i,n,s)])}}class y extends o{supports(){return!0}events(){return{AddToCart:{beforeFormSubmit:this._cacheAddedProduct.bind(this),offCanvasOpened:this._trackAddedProduct.bind(this)},OffCanvasCart:{offCanvasOpened:this._trackAddedProduct.bind(this)}}}_cacheAddedProduct(t){if(!this.active)return;let e=this;t.detail.forEach((t,r)=>{r.endsWith("[referencedId]")&&(e.added.id=t),r.endsWith("[quantity]")&&(e.added.quantity=t)})}_trackAddedProduct(){if(!this.active||null===this.added.id)return;let t=null===this.added.quantity?1:this.added.quantity,e=this;this.apiService.loadCart(function(r){let i=_.getProductById(r,e.added.id);e._reset(),null!==i&&e.initEvent(w).track(i,t)})}_reset(){this.added.id=null,this.added.quantity=null}constructor(...t){super(...t),this.added={id:null,quantity:null}}}class b{static ucFirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lcFirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static toDashCase(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(t,e){let r=b.toUpperCamelCase(t,e);return b.lcFirst(r)}static toUpperCamelCase(t,e){return e?t.split(e).map(t=>b.ucFirst(t.toLowerCase())).join(""):b.ucFirst(t.toLowerCase())}static parsePrimitive(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}class C{static isNode(t){return"object"==typeof t&&null!==t&&(t===document||t===window||t instanceof Node)}static hasAttribute(t,e){if(!C.isNode(t))throw Error("The element must be a valid HTML Node!");return"function"==typeof t.hasAttribute&&t.hasAttribute(e)}static getAttribute(t,e){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!1===C.hasAttribute(t,e))throw Error('The required property "'.concat(e,'" does not exist!'));if("function"!=typeof t.getAttribute){if(r)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(e)}static getDataAttribute(t,e){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=e.replace(/^data(|-)/,""),n=b.toLowerCamelCase(i,"-");if(!C.isNode(t)){if(r)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===t.dataset){if(r)throw Error("This node doesn't support the dataset attribute!");return}let s=t.dataset[n];if(void 0===s){if(r)throw Error('The required data attribute "'.concat(e,'" does not exist on ').concat(t,"!"));return s}return b.parsePrimitive(s)}static querySelector(t,e){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!C.isNode(t))throw Error("The parent node is not a valid HTML Node!");let i=t.querySelector(e)||!1;if(r&&!1===i)throw Error('The required element "'.concat(e,'" does not exist in parent node!'));return i}static querySelectorAll(t,e){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!C.isNode(t))throw Error("The parent node is not a valid HTML Node!");let i=t.querySelectorAll(e);if(0===i.length&&(i=!1),r&&!1===i)throw Error('At least one item of "'.concat(e,'" must exist in parent node!'));return i}}class I{setItem(t,e){return this._storage[t]=e}getItem(t){return Object.prototype.hasOwnProperty.call(this._storage,t)?this._storage[t]:null}removeItem(t){return delete this._storage[t]}key(t){return Object.values(this._storage)[t]||null}clear(){return this._storage={}}constructor(){this._storage={}}}class k{_chooseStorage(){return k._isSupported(window.localStorage)?this._storage=window.localStorage:k._isSupported(window.sessionStorage)?this._storage=window.sessionStorage:e.isSupported()?this._storage=e:this._storage=new I}static _isSupported(t){try{let e="__storage_test";return t.setItem(e,"1"),t.removeItem(e),!0}catch(t){return!1}}_validateStorage(){if("function"!=typeof this._storage.setItem)throw Error('The storage must have a "setItem" function');if("function"!=typeof this._storage.getItem)throw Error('The storage must have a "getItem" function');if("function"!=typeof this._storage.removeItem)throw Error('The storage must have a "removeItem" function');if("function"!=typeof this._storage.key)throw Error('The storage must have a "key" function');if("function"!=typeof this._storage.clear)throw Error('The storage must have a "clear" function')}getStorage(){return this._storage}constructor(){this._storage=null,this._chooseStorage(),this._val
1idateStorage()}}let E=Object.freeze(new k).getStorage();class S extends s{supports(t,e){return"checkout"===t&&"cartpage"===e}execute(){if(!this.active)return;let t=E.getItem(this.storageKey);"string"==typeof t&&this._trackAddedProduct(t),E.removeItem(this.storageKey);let e=C.querySelector(document,".cart-add-product",!1);e&&e.addEventListener("submit",this._storeProductNumber.bind(this))}_storeProductNumber(t){let e=C.querySelector(t.currentTarget,"#addProductInput");E.setItem(this.storageKey,e.value)}_trackAddedProduct(t){let e=this;this.apiService.loadCart(function(r){let i=_.getProductByNumber(r,t);null!==i&&e.initEvent(w).track(i,1)})}constructor(...t){super(...t),this.storageKey=this.getStorageKey("productAddedToCartByNumber")}}class q extends p{track(t){if(!window.fbq)return;let e="ViewCategory",r={content_category:t.path,category_name:t.name,category_id:t.id,content_type:"product",contents:a.getContents(t),currency:this.plugin.options.shop.currency,value:0},i=this.generateEventId();window.fbq("trackCustom",e,r,this.setupEventIdForJS(i)),this.callConversionApi([new g(e,r,i)])}}class x extends s{supports(t,e){return"navigation"===t&&("home"===e||"index"===e)}execute(){if(!this.active)return;let t=new n().get("listing");null!==t&&this.initEvent(q).track(t)}}class P extends p{track(t){if(!window.fbq)return;let e={content_category:t.category,content_type:"product",content_name:t.name,contents:[{id:t.productNumber,quantity:1}],currency:this.plugin.options.shop.currency,value:t.price},r="ViewContent",i=this.generateEventId(),n="ViewProduct",s=this.generateEventId();window.fbq("track",r,e,this.setupEventIdForJS(i)),window.fbq("trackCustom",n,e,this.setupEventIdForJS(s)),this.callConversionApi([new g(r,e,i),new g(n,e,s)])}}class T extends p{track(t){if(!window.fbq)return;let e="CustomizeProduct",r={content_category:t.category,content_type:"product",content_name:t.name,contents:[{id:t.productNumber,quantity:1}],currency:this.plugin.options.shop.currency,value:t.price},i=this.generateEventId();window.fbq("track",e,r,this.setupEventIdForJS(i)),this.callConversionApi([new g(e,r,i)])}}class A extends s{supports(t,e){return"product"===t&&"index"===e}execute(){if(!this.active)return;let t=new n().get("product");null!==t&&(this.initEvent(P).track(t),this._handleCustomizeProductEvent(t))}_handleCustomizeProductEvent(t){let e=this.getStorageKey("customizedProduct");1===parseInt(E.getItem(e),10)&&(E.removeItem(e),this.initEvent(T).track(t))}}class O extends o{supports(){return!0}events(){return{VariantSwitch:{onChange:this._storeCustomization.bind(this)}}}_storeCustomization(){this.active&&E.setItem(this.getStorageKey("customizedProduct"),1)}}class N extends s{supports(t,e){return"checkout"===t&&"cartpage"===e}execute(){let t=C.querySelector(document,".begin-checkout-btn",!1);t&&t.addEventListener("click",this._onBeginCheckout.bind(this))}_onBeginCheckout(){this.active&&E.setItem(this.getStorageKey("initiateCheckout"),1)}}class L extends o{supports(){return!0}events(){return{OffCanvasCart:{offCanvasOpened:this._offCanvasOpened.bind(this)}}}_offCanvasOpened(){let t=C.querySelector(document,".begin-checkout-btn",!1);t&&t.addEventListener("click",this._onBeginCheckout.bind(this))}_onBeginCheckout(){this.active&&E.setItem(this.getStorageKey("initiateCheckout"),1)}}class F extends p{track(){window.fbq&&this.apiService.loadCart(this._onCartLoaded.bind(this))}_onCartLoaded(t){if(null===t)return;let e="InitiateCheckout",r={content_type:"product",value:this.plugin.options.config.includeShippingCosts?t.totalPrice:t.positionPrice,currency:this.plugin.options.shop.currency,contents:_.getContents(t),num_items:_.getTotalItems(t)},i=this.generateEventId();window.fbq("track",e,r,this.setupEventIdForJS(i)),this.callConversionApi([new g(e,r,i)])}}class M extends p{track(){if(!window.fbq)return;let t="PageView",e=this.generateEventId();window.fbq("track",t,{},this.setupEventIdForJS(e)),this.callConversionApi([new g(t,{},e)])}}class j extends s{supports(){return!0}execute(){this.active&&(this._handlePageViewEvent(),this._handleInitiateCheckoutEvent())}_handlePageViewEvent(){this.initEvent(M).track()}_handleInitiateCheckoutEvent(){let t=this.getStorageKey("initiateCheckout");1===parseInt(E.getItem(t),10)&&(E.removeItem(t),this.initEvent(F).track())}}class U extends p{track(){window.fbq&&this.apiService.loadCart(this._onCartLoaded.bind(this))}_onCartLoaded(t){if(null===t)return;let e="AddPaymentInfo",r={content_type:"product",value:this.plugin.options.config.includeShippingCosts?t.totalPrice:t.positionPrice,currency:this.plugin.options.shop.currency,contents:_.getContents(t)},i=this.generateEventId();window.fbq("track",e,r,this.setupEventIdForJS(i)),this.callConversionApi([new g(e,r,i)])}}class J extends s{supports(t,e){return"accountpayment"===t&&"paymentoverview"===e}execute(){this.active&&this.initEvent(U).track()}}class R extends s{supports(t,e){return"checkout"===t&&"confirmpage"===e}execute(){this._handleAddedPaymentInfo();let t=C.querySelector(document,"#changePaymentForm",!1);t&&t.addEventListener("change",this._onChangePaymentForm.bind(this))}
1_onChangePaymentForm(){this.active&&E.setItem(this.getStorageKey("addedPaymentInfo"),1)}_handleAddedPaymentInfo(){let t=this.getStorageKey("addedPaymentInfo");1===parseInt(E.getItem(t),10)&&(E.removeItem(t),this.initEvent(U).track())}}class D extends p{track(){if(!window.fbq)return;let t=new n().get("order");if(null===t){let t=new URLSearchParams(window.location.search);if(!t.has("orderId"))return;this.apiService.loadOrder(t.get("orderId"),this._onLoadOrder.bind(this))}else this._onLoadOrder(t)}_onLoadOrder(t){if(null===t)return;let e="Purchase",r={content_type:"product",value:this.plugin.options.config.includeShippingCosts?t.totalPrice:t.positionPrice,currency:this.plugin.options.shop.currency,contents:_.getContents(t),num_items:_.getTotalItems(t)},i=t.orderNumber;window.fbq("track",e,r,this.setupEventIdForJS(i)),this.callConversionApi([new g(e,r,i)])}}class K extends s{supports(t,e){return"checkout"===t&&"finishpage"===e}execute(){this.active&&this.initEvent(D).track()}}class B extends p{track(){if(!window.fbq)return;let t=this.generateEventId(),e="CustomerHasAccount";window.fbq("trackCustom",e,{},this.setupEventIdForJS(t)),this.callConversionApi([new g(e,{},t)])}}class z extends p{track(t){if(!window.fbq)return;let e="FrequentShopper",r={total_orders:t.orderCount},i=this.generateEventId();window.fbq("trackCustom",e,r,this.setupEventIdForJS(i)),this.callConversionApi([new g(e,r,i)])}}class H extends s{supports(t){return["accountprofile","address","accountpayment","accountorder"].includes(t)}execute(){this.active&&this.apiService.loadContext(this._onContextLoaded.bind(this))}_onContextLoaded(t){Object.prototype.hasOwnProperty.call(t,"customer")&&(!1===t.guest&&this.initEvent(B).track(),t.orderCount>=2&&this.initEvent(z).track(t.customer))}}class V extends p{track(t){if(!window.fbq)return;let e="AddToWishlist",r={content_type:"product",content_name:t.label,value:t.price,currency:this.plugin.options.shop.currency,contents:[{id:t.productNumber,quantity:1}]},i=this.generateEventId();window.fbq("track",e,r,this.setupEventIdForJS(i)),this.callConversionApi([new g(e,r,i)])}}class W extends o{supports(){return!0}events(){return{WishlistStorage:{"Wishlist/onProductAdded":this._trackAddedProduct.bind(this)}}}_trackAddedProduct(t){if(!this.active||!t.detail.productId)return;let e=this;this.apiService.loadProduct(t.detail.productId,function(t){e.initEvent(V).track(t)})}}class G extends p{track(){window.fbq&&this.apiService.loadCart(this._trackOnLoadCart.bind(this))}_trackOnLoadCart(t){if(null===t)return;let e="CompleteRegistration",r={content_type:"product",value:this.plugin.options.config.includeShippingCosts?t.totalPrice:t.positionPrice,currency:this.plugin.options.shop.currency,contents:_.getContents(t),num_items:_.getTotalItems(t)},i=this.generateEventId();window.fbq("track",e,r,this.setupEventIdForJS(i)),this.callConversionApi([new g(e,r,i)])}}class $ extends s{supports(){return!0}execute(){if(!this.active)return;let t=new n().get("events");null!==t&&t.includes("CompleteRegistration")&&this.initEvent(G).track()}}class X extends window.PluginBaseClass{init(){this.pixelInitialized=!1,this.cookieName="mediameets-facebook-pixel-enabled",this.apiService=new i(this.options.routes),this.customer=null;let t=this.isConsentMode();t&&this._subscribeToCookieConsentManager(),(t&&this._consentGiven()||this.isAlwaysActiveMode())&&this.start()}start(){if(!0===this.pixelInitialized){this._startTriggers();return}this.pixelInitialized=!0;let t=!0===this.options.config.advancedMatching;if(t){let e=this,r=new n().get("customer");null===r?this.apiService.loadContext(function(r){if(null===r||!Object.prototype.hasOwnProperty.call(r,"customer")){e._initPixel();return}e._initPixel(t?r.customer:null)}):e._initPixel(t&&Object.prototype.hasOwnProperty.call(r,"customer")?r.customer:null);return}this._initPixel()}stop(){this._removeCookies(),this._disableTriggers()}_initPixel(t){this._injectPixelCode(),this.customer=t;let e=this.options.config;if(!Object.prototype.hasOwnProperty.call(e,"pixelIds"))return;let r=e.pixelIds.split(",").map(function(t){return t.trim()});0!==r.length&&(!0===e.disablePushState&&(window.fbq.disablePushState=!0),r.forEach(r=>{window.fbq("set","autoConfig",!0===e.autoConfig,r),window.fbq("init",r,t)}),this._startTriggers())}_startTriggers(){this.triggers=[],this._registerAllTriggers(),this._executeTriggers()}_registerAllTriggers(){this._registerTrigger(j),this._registerTrigger(J),this._registerTrigger(R),this._registerTrigger(y),this._registerTrigger(S),this._registerTrigger(O),this._registerTrigger(L),this._registerTrigger(N),this._registerTrigger(x),this._registerTrigger(K),this._registerTrigger(v),this._registerTrigger(m),this._registerTrigger(A),this._registerTrigger(H),this._registerTrigger(W),this._registerTrigger($)}_registerTrigger(t){this.triggers.push(new t(this))}_executeTriggers(){let t=this;
1this.triggers.forEach(e=>{e.supports(t.options.shop.controller,t.options.shop.action)&&e.execute()})}_disableTriggers(){this.triggers.forEach(t=>{t.disable()})}_subscribeToCookieConsentManager(){document.$emitter.subscribe("CookieConfiguration_Update",this.handleCookieUpdate.bind(this))}handleCookieUpdate(t){let e=t.detail;if(Object.prototype.hasOwnProperty.call(e,this.cookieName)){if(e[this.cookieName]){this.start();return}this.stop()}}isConsentMode(){return"integrate"===this.options.config.privacyMode}isAlwaysActiveMode(){return"active"===this.options.config.privacyMode}isExternalIdDeduplication(){return"externalid"===this.options.config.conversionApiDeduplication}_consentGiven(){return!!this.isConsentMode()&&e.getItem(this.cookieName)}_removeCookies(){let t=document.cookie.split(";"),r=/^_fbp/;t.forEach(t=>{let i=t.split("=")[0].trim();i.match(r)&&e.removeItem(i)})}_injectPixelCode(){(function(t,e,r,i,n,s,o){t.fbq||(n=t.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)},t._fbq||(t._fbq=n),n.push=n,n.loaded=!0,n.version="2.0",n.queue=[],(s=e.createElement(r)).async=!0,s.src=i,(o=e.getElementsByTagName(r)[0]).parentNode.insertBefore(s,o))})(window,document,"script","https://connect.facebook.net/en_US/fbevents.js")}}X.options={config:{privacyMode:"integrate",pixelIds:"",autoConfig:!0,advancedMatching:!1,includeShippingCosts:!0,useConversionApi:!1,disablePushState:!1,conversionApiDeduplication:"eventid"},shop:{controller:"",action:"",currency:""},routes:{cart:"",customer:"",order:"",product:""},conversionApi:{endpoint:""}},window.PluginManager.register("mediameetsFacebookPixel",X,"[data-mediameets-facebook-pixel-options]")})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.