//tealium universal tag - utag.267 ut4.0.202602242130, Copyright 2026 Tealium.com Inc. All Rights Reserved.
if(!window.cj)window.cj={};try{(function(id,loader){var u={"id":id};utag.o[loader].sender[id]=u;u.ev={"view":1};u.scriptrequested=false;u.map={};u.extend=[function(a,b){try{if(1){(function(){var cookieName='cje';var cjevent=null;var query=window.location.search.substring(1);var params=query.split('&');for(var i=0;i<params.length;i++){var pair=params[i].split('=');if(pair[0].toLowerCase()==='cjevent'){cjevent=decodeURIComponent(pair[1]);var expirationDays=395;var expirationDate=new Date();expirationDate.setTime(expirationDate.getTime()+(expirationDays*86400*1000));var expires=expirationDate.toUTCString();document.cookie=cookieName+'='+encodeURIComponent(cjevent)+
'; Path=/'+
'; Domain=.trendmicro.com'+
'; Expires='+expires+
'; Secure'+
'; SameSite=None';break;}}
if(!cjevent){var cookies=document.cookie.split(';');for(var j=0;j<cookies.length;j++){var cookie=cookies[j].trim();if(cookie.indexOf(cookieName+'=')===0){cjevent=decodeURIComponent(cookie.substring((cookieName+'=').length));break;}}}
if(cjevent&&typeof utag_data!=='undefined'){utag_data.cj_event=cjevent;}})();}}catch(e){utag.DB(e)}}];u.send=function(utag_event,data_layer){if(u.ev[utag_event]||u.ev.all!==undefined){utag.DB("send:267");utag.DB(data_layer);var a,b,c,d,i;a=utag_event;b=data_layer;u.data={"base_url":"","proxyPath":"","tagId":"354436803236","actionTrackerId":"486572","enterpriseId":"1157059","enablePageVisit":"true","order_id":"","order_subtotal":"","order_currency":"","order_coupon_code":"","product_id":[],"product_quantity":[],"product_unit_price":[],"product_discount":[]};for(c=0;c<u.extend.length;c++){try{d=u.extend[c](a,b);if(d==false)return}catch(e){if(typeof utag_err!='undefined'){utag_err.push({e:'extension error:'+e,s:utag.cfg.path+'utag.'+id+'.js',l:c,t:'ex'})}}};utag.DB("send:267:EXTENSIONS");utag.DB(data_layer);for(var mapping_key in utag.loader.GV(u.map)){if(data_layer[mapping_key]!==undefined&&data_layer[mapping_key]!==""){var destinations=u.map[mapping_key].split(",");for(i=0;i<destinations.length;i++){mapFunc(destinations[i].split("."),u.data,data_layer[mapping_key]);}}}
utag.DB("send:267:MAPPINGS");utag.DB(u.data);u.data.order_id=u.data.order_id||data_layer._corder||"";u.data.order_subtotal=u.data.order_subtotal||data_layer._csubtotal||"";u.data.order_currency=u.data.order_currency||data_layer._ccurrency||"";u.data.order_coupon_code=u.data.order_coupon_code||data_layer._cpromo||"";u.data.customer_id=u.data.customer_id||data_layer._ccustid||"";if(u.data.product_id.length===0&&data_layer._cprod!==undefined){u.data.product_id=data_layer._cprod.slice(0);}
if(u.data.product_quantity.length===0&&data_layer._cquan!==undefined){u.data.product_quantity=data_layer._cquan.slice(0);}
if(u.data.product_unit_price.length===0&&data_layer._cprice!==undefined){u.data.product_unit_price=data_layer._cprice.slice(0);}
if(u.data.product_discount.length===0&&data_layer._cpdisc!==undefined){u.data.product_discount=data_layer._cpdisc.slice(0);}
if(!u.data.proxyPath&&!u.data.tagId){utag.DB(u.id+": Tag not fired: Either a proxyPath or tagId is required.");return;}
if(u.data.proxyPath){u.data.base_url=u.data.proxyPath;}else{u.data.base_url="//www.mczbf.com/tags/"+u.data.tagId+"/tag.js";}
if(!u.data.order_id&&toBoolean(u.data.enablePageVisit)){var sitePageParams={enterpriseId:"enterpriseId",pageType:"pageType",userId:"customer_id",emailHash:"emailHash",referringChannel:"referringChannel",cartSubtotal:"order_subtotal",items:""};window.cj.sitePage=createDataObj(sitePageParams,u.data);}
if(u.data.order_id){if(!u.data.enterpriseId||!u.data.actionTrackerId||!u.data.order_currency||!u.data.order_subtotal){utag.DB(u.id+": Order requires parameters: enterpriseId, actionTrackerId, order_currency and order_subtotal");}else{var orderParams={enterpriseId:"enterpriseId",actionTrackerId:"actionTrackerId",orderId:"order_id",currency:"order_currency",amount:"order_subtotal",discount:"order_discount",coupon:"order_coupon_code",items:"",bypassChannel:"bypassChannel",brand:"brand",brandId:"brandId",category:"category",customerStatus:"customerStatus",delivery:"delivery",marketingChannel:"marketingChannel",loyaltyEarned:"loyaltyEarned",loyaltyFirstTimeSignup:"loyaltyFirstTimeSignup",loyaltyLevel:"loyaltyLevel",loyaltyRedeemed:"loyaltyRedeemed",loyaltyStatus:"loyaltyStatus"};window.cj.order=createDataObj(orderParams,u.data);}}
if(!u.scriptrequested){u.scriptrequested=true;utag.ut.loader({"type":"script","src":u.data.base_url,"cb":null,"loc":"script","id":"cjapitag","attrs":{}});}
utag.DB("send:267:COMPLETE");}};function mapFunc(arr,obj,item){var i=arr.shift();obj[i]=obj[i]||{};if(arr.length>0){mapFunc(arr,obj[i],item);}else{obj[i]=item;}}
function toBoolean(val){val=val||"";return val===true||val.toLowerCase()==="true"||val.toLowerCase()==="on";}
function getItems(data){var paramObj={unitPrice:"product_unit_price",itemId:"product_id",quantity:"product_quantity",discount:"product_discount"};var items=[];var item;var param;for(var i=0;i<data.product_id.length;i++){item={};for(param in paramObj){if(data[paramObj[param]][i]){item[param]=param==="itemId"?data[paramObj[param]][i]:parseFloat(data[paramObj[param]][i]);}}
if(!item.unitPrice){utag.DB(u.id+": Missing, required unitPrice for itemId: "+item.itemId);}
if(!item.quantity){utag.DB(u.id+": Missing, required quantity for itemId: "+item.itemId);}
items.push(item);}
return items;}
function createDataObj(paramObj,data){var obj={pointOfSale:"web",trackingSource:"Tealium",v:"3170.20250717"};for(var param in paramObj){if(param==="items"){obj[param]=getItems(data);}else if(data[paramObj[param]]){obj[param]=param.match(/amount|discount|cartSubtotal/)?parseFloat(data[paramObj[param]]):data[paramObj[param]];}}
return obj;}
utag.o[loader].loader.LOAD(id);}("267","trendmicro.nabucms"));}catch(error){utag.DB(error);}
