PageSourceSearch

https://www.irum.ro/wp-content/cache/minify/88fed.js

js irum.ro collected 2026-10-02 13:43:22 UTC 8,372 bytes, 29 lines download raw bytes

1jQuery(function($){$(document.body).on('added_to_cart',function(e,fragments,cart_hash,thisbutton){});let script=document.createElement('script');script.src='https://unpkg.com/[email protected]/bundle/libphonenumber-min.js';document.head.appendChild(script);let uuidScript=document.createElement('script');uuidScript.src='https://cdnjs.cloudflare.com/ajax/libs/uuid/8.1.0/uuidv4.min.js';document.head.appendChild(uuidScript);function getEmailAndPhone(inputElement,pixelCode,source){if(window.tt4b_script_vars.advanced_matching!=='1'){return;}
2let result={email:"",phone_number:""};if(!inputElement){return result}
3let form=inputElement.closest('form')||inputElement.querySelector('form');if((!form||form.length===0)&&source!=='ninjaforms'){return;}else if((!form||form.length===0)&&source==='ninjaforms'){form=inputElement.first('form')[0];}
4let inputElements=form.querySelectorAll('input');for(let input of inputElements){if(input.type==='email'){result.email=input.value;}else if(input.type==='tel'){try{let phone_number=input.value;result.phone_number=libphonenumber.parsePhoneNumber(phone_number,window.tt4b_script_vars.country).number}catch(error){console.warn("Error occurred while parsing phone number: ",error);}}}
5ttq.instance(pixelCode).identify(result);}
6function firePixelBasedOnFormIntent(inputElement,pixelCode,source){let form=inputElement.closest('form')||inputElement.querySelector('form');if((!form||form.length===0)&&source!=='ninjaforms'){return;}else if((!form||form.length===0)&&source==='ninjaforms'){form=inputElement.first('form')[0];}
7let inputElements=form.querySelectorAll('input');let hasAMData=false;for(let input of inputElements){if(input.type==='email'||input.type==='tel'){hasAMData=true;break;}}
8let eventType=hasAMData?'Contact':'SubmitForm'
9let event_id=""
10try{event_id=uuidv4()}catch(error){console.warn("Error occurred while generating uuidv4: ",error);}
11ttq.instance(pixelCode).track(eventType,{'source':source,'wp_plugin':source,"event_id":event_id})}
12function createObserver(source){return new MutationObserver(function(mutations){mutations.forEach(function(mutation){if(window.getComputedStyle(mutation.target).display!=='none'){getEmailAndPhone(mutation.target,window.tt4b_script_vars.pixel_code);firePixelBasedOnFormIntent(mutation.target,window.tt4b_script_vars.pixel_code,source)}});});}
13document.addEventListener('submit',function(event){var pixel_code=window.tt4b_script_vars.pixel_code;getEmailAndPhone(event.target,pixel_code);firePixelBasedOnFormIntent(event.target,pixel_code,"fallback")});$('button, :submit').on('click',function(event){var pixel_code=window.tt4b_script_vars.pixel_code;getEmailAndPhone(event.target,pixel_code);let event_id=""
14try{event_id=uuidv4()}catch(error){console.warn("Error occurred while generating uuidv4: ",error);}
15ttq.instance(pixel_code).track('ClickButton',{'content':'SubmitClick',"event_id":event_id});});document.addEventListener('wpcf7mailsent',function(event){var pixel_code=window.tt4b_script_vars.pixel_code;getEmailAndPhone(event.target,pixel_code);firePixelBasedOnFormIntent(event.target,pixel_code,"contactform7")},false);var mailchimp_forms=document.querySelectorAll('.mc4wp-form');mailchimp_forms.forEach(function(form){var pixel_code=window.tt4b_script_vars.pixel_code;form.addEventListener('submit',function(event){getEmailAndPhone(event.target,pixel_code);firePixelBasedOnFormIntent(event.target,pixel_code,"mailchimp4wordpress")});});var jetpackMailchimpNodes=document.querySelectorAll('.wp-block-jetpack-mailchimp_success');if(jetpackMailchimpNodes.length>0){var jetpackMailchimpObserver=createObserver('jetpackmailchimp');jetpackMailchimpNodes.forEach(function(targetNode){jetpackMailchimpObserver.observe(targetNode,{attributes:true,childList:true,subtree:true});});}
16$('input.mailpoet_submit').on('click',function(){var pixel_code=window.tt4b_script_vars.pixel_code;getEmailAndPhone(event.target,pixel_code);firePixelBasedOnFormIntent(event.target,pixel_code,"mailpoet")});var spectraForms=document.querySelectorAll('.uagb-forms-main-form');spectraForms.forEach(function(form){var pixel_code=window.tt4b_script_vars.pixel_code;form.addEventListener('submit',function(event){getEmailAndPhone(event.target,pixel_code);
16firePixelBasedOnFormIntent(event.target,pixel_code,"spectra")});});$('form.wpforms-form').on('wpformsAjaxSubmitSuccess',(event)=>{var pixel_code=window.tt4b_script_vars.pixel_code;getEmailAndPhone(event.target,pixel_code);firePixelBasedOnFormIntent(event.target,pixel_code,"wpforms")})
17if(document.querySelector('[class*=jetpack-contact-form]')){document.addEventListener('submit',(event)=>{var pixel_code=window.tt4b_script_vars.pixel_code;getEmailAndPhone(event.target,pixel_code);firePixelBasedOnFormIntent(event.target,pixel_code,"jetpack")});}
18$(document).on('nfFormSubmitResponse',(event)=>{event.preventDefault();var pixel_code=window.tt4b_script_vars.pixel_code;getEmailAndPhone($('.nf-form-layout'),pixel_code,"ninjaforms");firePixelBasedOnFormIntent($('.nf-form-layout'),pixel_code,"ninjaforms")});$(document).on('nfFormReady',(event)=>{event.preventDefault();$('button, :submit, input[type="submit"]').on('click',function(event){var pixel_code=window.tt4b_script_vars.pixel_code;getEmailAndPhone(event.target,pixel_code);ttq.instance(pixel_code).track('ClickButton',{'content':'SubmitClick'});});})});
19;/*
20 * jQuery.bind-first library v0.2.3
21 * Copyright (c) 2013 Vladimir Zhuravlev
22 *
23 * Released under MIT License
24 * @license
25 *
26 * Date: Thu Feb  6 10:13:59 ICT 2014
27 **/
28(function(t){function e(e){return u?e.data("events"):t._data(e[0]).events}function n(t,n,r){var i=e(t),a=i[n];if(!u){var s=r?a.splice(a.delegateCount-1,1)[0]:a.pop();return a.splice(r?0:a.delegateCount||0,0,s),void 0}r?i.live.unshift(i.live.pop()):a.unshift(a.pop())}function r(e,r,i){var a=r.split(/\s+/);e.each(function(){for(var e=0;a.length>e;++e){var r=a[e].trim().match(/[^\.]+/i)[0];n(t(this),r,i)}})}function i(e){t.fn[e+"First"]=function(){var n=t.makeArray(arguments),i=n.shift();return i&&(t.fn[e].apply(this,arguments),r(this,i)),this}}var a=t.fn.jquery.split("."),s=parseInt(a[0]),f=parseInt(a[1]),u=1>s||1==s&&7>f;i("bind"),i("one"),t.fn.delegateFirst=function(){var e=t.makeArray(arguments),n=e[1];return n&&(e.splice(0,2),t.fn.delegate.apply(this,arguments),r(this,n,!0)),this},t.fn.liveFirst=function(){var e=t.makeArray(arguments);return e.unshift(this.selector),t.fn.delegateFirst.apply(t(document),e),this},u||(t.fn.onFirst=function(e,n){var i=t(this),a="string"==typeof n;if(t.fn.on.apply(i,arguments),"object"==typeof e)for(type in e)e.hasOwnProperty(type)&&r(i,type,a);else"string"==typeof e&&r(i,e,a);return i})})(jQuery);
29;!function(e){var n=!1;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}(function(){function e(){for(var e=0,n={};e<arguments.length;e++){var o=arguments[e];for(var t in o)n[t]=o[t]}return n}function n(o){function t(n,r,i){var c;if("undefined"!=typeof document){if(arguments.length>1){if(i=e({path:"/"},t.defaults,i),"number"==typeof i.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(e){}return r=o.write?o.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)),n=n.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),n=n.replace(/[\(\)]/g,escape),document.cookie=[n,"=",r,i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],s=/(%[0-9A-Z]{2})+/g,d=0;d<p.length;d++){var f=p[d].split("="),u=f.slice(1).join("=");'"'===u.charAt(0)&&(u=u.slice(1,-1));try{var l=f[0].replace(s,decodeURIComponent);if(u=o.read?o.read(u,l):o(u,l)||u.replace(s,decodeURIComponent),this.json)try{u=JSON.parse(u)}catch(e){}if(n===l){c=u;break}n||(c[l]=u)}catch(e){}}return c}}return t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={},t.remove=function(n,o){t(n,"",e(o,{expires:-1}))},t.withConverter=n,t}return n(function(){})});

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.