1"use strict";(self.webpackChunkxcams=self.webpackChunkxcams||[]).push([[7673],{58502(e,t,r){r.r(t),r.d(t,{BrowserDataLayer:()=>a,ExpenseDataLayer:()=>n,OrderDataLayer:()=>s,ProductDataLayer:()=>o,UserDataLayer:()=>u});r(62953);function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l{update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object.keys(e).map((t=>{this.hasOwnProperty(t)&&(this[t]=e[t])})),this}}class a extends l{constructor(){super(...arguments),i(this,"pageName",null),i(this,"pageGridDisplay",null),i(this,"searchTerm",null),i(this,"searchNbResults",null),i(this,"searchType",null),i(this,"searchFilters",null),i(this,"chatModel",null),i(this,"chatModelLanguages",null),i(this,"chatNbVisitors",null),i(this,"chatTranslationLanguage",null),i(this,"chatTags",null)}}class u extends l{constructor(){super(...arguments),i(this,"userId",null),i(this,"userType",null),i(this,"userEmail",null),i(this,"userFirstname",null),i(this,"userLastname",null),i(this,"userFirstOrderDate",null),i(this,"userLastOrderDate",null),i(this,"userNbOrders",null),i(this,"userNbCredits",null),i(this,"userOptin",null),i(this,"userLoginType",null),i(this,"userCreationDate",null)}}class n extends l{constructor(){super(...arguments),i(this,"value",null),i(this,"virtual_currency_name",null),i(this,"item_name",null),i(this,"item_category",null),i(this,"show_price",null),i(this,"show_duration",null)}}class s extends l{constructor(){super(...arguments),i(this,"transaction_id",null),i(this,"discount",null),i(this,"currency",null),i(this,"tax",null),i(this,"value",null),i(this,"free",null),i(this,"payment_type",null),i(this,"offer_type",null)}}class o extends l{constructor(){super(...arguments),i(this,"index",null),i(this,"item_id",null),i(this,"item_name",null),i(this,"item_brand",null),i(this,"item_variant",null),i(this,"price",null),i(this,"discount",null),i(this,"quantity",null),i(this,"pack_offer_type",null)}}},37673(e,t,r){r.r(t),r.d(t,{EcommerceDataLayerHandler:()=>a});r(27495),r(25440);var i=r(58502);function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class a{constructor(e){l(this,"productLayer",null),l(this,"orderLayer",null),this.productLayer=new i.ProductDataLayer,this.orderLayer=new i.OrderDataLayer,this.productLayer.update(null==e?void 0:e.items[0]),this.orderLayer.update(e)}updateOrderDataLayer(e){return this.orderLayer.update(e),{ecommerce:this.orderLayer}}updateDataLayerAfterSuccessfulPayment(e){return this.orderLayer.update(e),this.productLayer.update(null==e?void 0:e.items[0]),{ecommerce:{items:[this.productLayer],...this.orderLayer}}}updateDataLayerAfterSelectedPack(e){var t,r,i,l;const a=this.orderLayer.payment_type,u=null==e?void 0:e.currentPack,n=null===(t=window.formattedPacks)||void 0===t||null===(t=t[a])||void 0===t||null===(t=t[u])||void 0===t?void 0:t.id,s=null===(r=window.formattedPacks)||void 0===r||null===(r=r[a])||void 0===r||null===(r=r[u])||void 0===r?void 0:r.currency,o=null===(i=window.formattedPacks)||void 0===i||null===(i=i[a])||void 0===i||null===(i=i[u])||void 0===i?void 0:i.label,d=Number(null===(l=window.formattedPacks)||void 0===l||null===(l=l[a])||void 0===l||null===(l=l[u])||void 0===l?void 0:l.amount);return this.orderLayer.update({value:d,currency:s}),this.productLayer.update({index:null==u?void 0:u.replace("p",""),item_variant:null==e?void 0:e.modelName,item_name:o,item_id:n,price:d,quantity:1}),{ecommerce:{items:[this.productLayer],...this.orderLayer}}}updateDataLayerAfterSubmitPayment(){return{ecommerce:{items:[this.productLayer],...this.orderLayer}}}}}}]);
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.