{"version":3,"file":"Forter.js","names":["Forter","a","setters","Component","default","deepMerge","execute","constructor","element","options","arguments","length","siteID","initLoad","document","readyState","attachForterSnippet","loaded","forterSiteID","t","e","n","split","r","String","fromCharCode","charCodeAt","join","l","replace","S","ex","g","createElement","onerror","onload","type","id","async","src","o","getElementsByTagName","parentNode","insertBefore","k","T","uAL","setTimeout","i","v","uDF","h","m","U","uS","td","Date","ts","uF","eUoe","eTlu","write","setTime","getTime","toGMTString","cookie","escape","c","u","location","host","shift","s","read","charAt","substring","indexOf","unescape","f","window","ftr__startScriptLoad","p","vr","w","toString","Uint32Array","crypto","getRandomValues","d0","d1","d2","d3","Math","random","safeGenerateNoDash","isValidNumericalToken","parseInt","isValidUUIDToken","test","isValidFGUToken","mLd","tmos","tmosSecs","bIR","y","D","Array","clearTimeout","F"],"sources":["components/integration/Forter.js"],"sourcesContent":["import Component from 'core/Component';\nimport { deepMerge } from 'toolbox/deepMerge';\n\n/**\n * Attach and handle 3rd party forter pixel. option.siteID is required for proper execution of this component.\n * @class\n * @classdesc This class is used to handle attachment of Forter JS snippet. SiteId is required parameter\n * @extends Component\n */\nexport default class Forter extends Component {\n /**\n * Constructor of the class that mainly merge the options of the components\n * @param {HTMLElement} element HTMLElement of the component\n * @param {object} options options that belongs to the component\n */\n constructor(element, options = {}) {\n super(element, deepMerge({\n siteID: null, // forter site id\n // Your custom options goes here\n }, options));\n }\n\n /**\n * Executed when load event is triggered or triggered directly when component is initialized if window.onload has been\n * triggered before the initialization of the component. Is called after all the other hooks\n */\n initLoad() {\n if (this.options.siteID && document.readyState === 'complete') {\n this.attachForterSnippet(this.options.siteID);\n } else {\n this.loaded = false;\n }\n }\n\n /**\n * Attach forter js snippet\n * @param {string} forterSiteID - forter site id\n */\n attachForterSnippet(forterSiteID) {\n // eslint-disable-next-line\n function t(t,e){for(var n=t.split(\"\"),r=0;r>8&255]+n[t>>16&255]+n[t>>24&255]+a+n[255&e]+n[e>>8&255]+a+n[e>>16&15|64]+n[e>>24&255]+a+n[63&r|128]+n[r>>8&255]+a+n[r>>16&255]+n[r>>24&255]+n[255&o]+n[o>>8&255]+n[o>>16&255]+n[o>>24&255]},i=function(){if(window.Uint32Array&&window.crypto&&window.crypto.getRandomValues){var t=new window.Uint32Array(4);return window.crypto.getRandomValues(t),{d0:t[0],d1:t[1],d2:t[2],d3:t[3]}}return{d0:4294967296*Math.random()>>>0,d1:4294967296*Math.random()>>>0,d2:4294967296*Math.random()>>>0,d3:4294967296*Math.random()>>>0}},a=function(){var t=\"\",e=function(t,e){for(var n=\"\",r=t;r>0;--r)n+=e.charAt(1e3*Math.random()%e.length);return n};return t+=e(2,\"0123456789\"),t+=e(1,\"123456789\"),t+=e(8,\"0123456789\")};return t.safeGenerateNoDash=function(){try{var t=i();return o(t.d0,t.d1,t.d2,t.d3,!1)}catch(n){try{return e+a()}catch(n){}}},t.isValidNumericalToken=function(t){return t&&t.toString().length<=11&&t.length>=9&&parseInt(t,10).toString().length<=11&&parseInt(t,10).toString().length>=9},t.isValidUUIDToken=function(t){return t&&32===t.toString().length&&/^[a-z0-9]+$/.test(t)},t.isValidFGUToken=function(t){return 0==t.indexOf(e)&&t.length>=12},t}(),T={uDF:\"UDF\",uAL:\"UAL\",mLd:\"1\",eTlu:\"2\",eUoe:\"3\",uS:\"4\",uF:\"9\",tmos:[\"T5\",\"T10\",\"T15\",\"T30\",\"T60\"],tmosSecs:[5,10,15,30,60],bIR:\"43\"},y=function(t,e){for(var n=T.tmos,r=0;r