Plugin Directory

Changeset 3846962


Ignore:
Timestamp:
12/06/2026 12:33:26 AM (11 hours ago)
Author:
leadwon
Message:

Release 1.3.4

Location:
dealroot/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • dealroot/trunk/assets/js/forms.js

    r3830572 r3846962  
    4242                { key: 'gravityforms', form: '.gform_wrapper form, form[id^="gform_"]', id: function ( f ) { return value( f, 'input[name="gform_submit"]' ) || match( f.id, /^gform_(\d+)$/ ); } },
    4343                { key: 'fluentforms', form: 'form.frm-fluent-form', id: function ( f ) { return f.getAttribute( 'data-form_id' ) || match( f.id, /^fluentform_(\d+)$/ ); } },
     44                { key: 'ninjaforms', form: '.nf-form-cont form', id: function ( f ) { var box = f.closest( '.nf-form-cont' ); return box ? match( box.id, /^nf-form-(\d+)-cont$/ ) : ''; } },
    4445                { key: 'formidable', form: 'form.frm-show-form', id: function ( f ) { return value( f, 'input[name="form_id"]' ); } },
    4546                { key: 'forminator', form: 'form.forminator-custom-form', id: function ( f ) { return f.getAttribute( 'data-form-id' ) || match( f.id, /^forminator-module-(\d+)$/ ); } },
    … …  
    4950                { key: 'wsform', form: 'form.wsf-form', id: function ( f ) { return f.getAttribute( 'data-id' ); } },
    5051                { key: 'sureforms', form: 'form.srfm-form', id: function ( f ) { return f.getAttribute( 'form-id' ) || value( f, 'input[name="form-id"]' ); } },
     52                { key: 'metform', form: 'form.metform-form-content', id: function ( f ) { var box = f.closest( '.mf-form-wrapper[data-form-id]' ); return box ? box.getAttribute( 'data-form-id' ) : ''; } },
    5153                { key: 'happyforms', form: 'form[id^="happyforms-form-"]', id: function ( f ) { return value( f, 'input[name="happyforms_form_id"]' ); } },
    5254                { key: 'jetpack', form: 'form.jetpack-contact-form__form, form.contact-form', id: function ( f ) { return value( f, 'input[name="contact-form-id"]' ); } },
  • dealroot/trunk/assets/js/tracker.js

    r3845738 r3846962  
    723723         * Forms without a dedicated integration: <form data-dealroot="Quote request"> or the CSS selector from the settings.
    724724         */
    725         var HANDLED = '.wpcf7-form, .elementor-form, .wpforms-form, .gform_wrapper form, .frm-show-form, .fluent_form, .ff-el-form, .nf-form-cont form, .forminator-custom-form, .jet-form-builder, .everest-form, .wsf-form, .srfm-form, .metform-form-content, form[id^="happyforms-form-"], .jetpack-contact-form__form, .kb-form, .kb-advanced-form, .uagb-forms-main-form, .otter-form__container, .et_pb_contact_form, .brxe-form, .fl-module-contact-form form, .thrv_lead_generation form, .mc4wp-form, .mailpoet_form, .um-register form, form.checkout, form.woocommerce-cart-form';
     725        var HANDLED = '.wpcf7-form, .elementor-form, .wpforms-form, .gform_wrapper form, .frm-show-form, .frm-fluent-form, .fluent_form, .ff-el-form, .nf-form-cont form, .forminator-custom-form, .jet-form-builder, .everest-form, .wsf-form, .srfm-form, .metform-form-content, form[id^="happyforms-form-"], .jetpack-contact-form__form, .kb-form, .kb-advanced-form, .uagb-forms-main-form, .otter-form__container, .et_pb_contact_form, .brxe-form, .fl-module-contact-form form, .thrv_lead_generation form, .mc4wp-form, .mailpoet_form, .um-register form, form.checkout, form.woocommerce-cart-form';
    726726        var SKIP_TYPES = [ 'password', 'file', 'submit', 'button', 'reset', 'image' ];
    727727
  • dealroot/trunk/assets/js/tracker.min.js

    r3845738 r3846962  
    1 !function(){"use strict";var e=window.dealrootTracker||{},t="dealroot_attr",n="dealroot_path",r=e.params||["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","fbclid"];function o(e,t){return(e=String(e||"")).length>t?e.slice(0,t):e}function i(e){var t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));if(!t)return null;try{var n=JSON.parse(decodeURIComponent(t[1]));return n&&n.f?n:null}catch(e){return null}}function a(t,n){var r=parseInt(e.days,10)||90,o=new Date(Date.now()+864e5*r).toUTCString(),i="https:"===window.location.protocol?"; Secure":"";document.cookie=t+"="+encodeURIComponent(JSON.stringify(n))+"; expires="+o+"; path=/; SameSite=Lax"+i}function c(t,n){if(e.endpoint){var r=e.endpoint.replace(/submit\/?$/,t),o=JSON.stringify(n);"submit"===t&&e.live&&n.form&&window.setTimeout(function(){_(n.form,"sent")},0),navigator.sendBeacon&&navigator.sendBeacon(r,new Blob([o],{type:"application/json"}))||window.fetch&&window.fetch(r,{method:"POST",credentials:"same-origin",keepalive:!0,headers:{"Content-Type":"application/json"},body:o}).catch(function(){})}}function u(){var e=new URLSearchParams(window.location.search),t={},n=!1;r.forEach(function(r){var i=e.get(r);i&&(t[r]=o(i,200),n=!0)});var i=function(){if(!document.referrer)return"";try{var e=new URL(document.referrer);return e.hostname===window.location.hostname?"":o(e.hostname+e.pathname,300)}catch(e){return""}}();return i&&(t.ref=i),t.lp=o(window.location.pathname+window.location.search,300),t.ts=Math.floor(Date.now()/1e3),{touch:t,isNew:n||!!i}}function s(){var r=i(t),s=u(),m=function(){try{return!window.sessionStorage.getItem("dealroot_s")&&(window.sessionStorage.setItem("dealroot_s","1"),!0)}catch(e){return!1}}(),d=function(){try{return o(Intl.DateTimeFormat().resolvedOptions().timeZone||"",60)}catch(e){return""}}();r?(s.isNew||d&&r.z!==d)&&(s.isNew&&(r.l=s.touch,r.t=(r.t||[]).concat([l(s.touch)]).slice(-6)),r.z=d,a(t,r)):a(t,{v:1,f:s.touch,l:s.touch,z:d}),function(e){var t=Math.floor(Date.now()/1e3),r=i(n)||{v:1,n:0,f:t,p:[]};!e&&r.n||(r.n=(parseInt(r.n,10)||0)+1);r.p=(r.p||[]).concat([[o(window.location.pathname,80),t]]).slice(-15),a(n,r)}(m||s.isNew),f(),e.visits&&(m||s.isNew)&&!navigator.webdriver&&c("visit",{touch:s.isNew?s.touch:{lp:s.touch.lp,ts:s.touch.ts},tz:d})}function l(e){var t={ts:e.ts};return e.utm_source&&(t.s=o(e.utm_source,60)),e.utm_medium&&(t.m=o(e.utm_medium,40)),e.utm_campaign&&(t.c=o(e.utm_campaign,60)),e.ref&&(t.r=o(String(e.ref).split("/")[0],60)),Object.keys(e).some(function(e){return!/^(utm_|lp$|ref$|ts$)/.test(e)&&(t.k=e,!0)}),t}function m(){switch(e.consent){case"wp_consent_api":return function(){if("function"==typeof window.wp_has_consent&&window.wp_has_consent("marketing"))return!0;if(window.Cookiebot&&window.Cookiebot.consent&&!0===window.Cookiebot.consent.marketing)return!0;try{var e="function"==typeof window.getCkyConsent?window.getCkyConsent():null;if(e&&e.categories&&!0===e.categories.advertisement)return!0}catch(e){}if(/(?:^|;\s*)cookieyes-consent=[^;]*advertisement:yes/.test(document.cookie)||/(?:^|;\s*)cmplz_marketing=allow/.test(document.cookie))return!0;return"granted"===function(){for(var e=window.dataLayer||[],t="",n=0;n<e.length;n++){var r=e[n];r&&"consent"===r[0]&&("default"===r[1]||"update"===r[1])&&r[2]&&r[2].ad_storage&&(t=String(r[2].ad_storage))}return t}()}();case"custom":return!0===window.dealrootConsent;case"cookieless":return!1;default:return!0}}function f(){var e=document.querySelector('script[src*="clarity.ms/tag/"]'),t=e&&/clarity\.ms\/tag\/([a-z0-9]+)/i.exec(e.src);return t&&(document.cookie="dealroot_clarity="+t[1]+"; path=/; SameSite=Lax"+("https:"===window.location.protocol?"; Secure":"")),"function"==typeof window.clarity}function d(e){p&&f()&&(window.clarity("event",e),window.clarity("upgrade",e))}var p=!1;function w(){if(!p&&m()){p=!0,s(),function(){if(!e.live||!e.endpoint||navigator.webdriver)return;y.fast=function(){try{return Date.now()-Number(window.sessionStorage.getItem("dealroot_w")||0)<12e4}catch(e){return!1}}(),y.sent=Date.now(),function(){var e=0;function t(){e=0;var t=function(){if((window.scrollY||0)<.5*window.innerHeight)return"";for(var e=document.querySelectorAll("section[id], main [id]:not(section)"),t=.35*window.innerHeight,n=null,r=0;r<e.length;r++){var o=e[r].getBoundingClientRect();o.height>120&&o.top<=t&&o.bottom>t&&/^[A-Za-z][\w-]{0,60}$/.test(e[r].id)&&("SECTION"===e[r].tagName||document.querySelector('a[href$="#'+e[r].id+'"]'))&&(n=e[r])}if(!n)return"";var i=document.querySelector('a[href$="#'+n.id+'"]'),a=i?i.textContent.replace(/\s+/g," ").trim():"";if(!a||a.length>40){var c=n.querySelector("h1, h2, h3");a=c?c.textContent.replace(/\s+/g," ").trim():""}return a.slice(0,100)}();t!==y.section&&(y.section=t,y.fast&&(window.clearTimeout(y.soon),y.soon=window.setTimeout(g,Math.max(0,700-(Date.now()-y.sent)))))}["scroll","hashchange"].forEach(function(n){window.addEventListener(n,function(){e||(e=window.setTimeout(t,"hashchange"===n?50:400))},{passive:!0})})}(),window.setTimeout(function(){g(),b()},y.fast?0:1500),window.addEventListener("pagehide",function(){var t=v();t&&navigator.sendBeacon&&navigator.sendBeacon(e.endpoint.replace(/submit\/?$/,"live"),new Blob([JSON.stringify({id:t,bye:1,fast:y.fast?1:0,page:o(window.location.pathname,191),open:Math.round((Date.now()-y.opened)/1e3)})],{type:"application/json"}))}),window.addEventListener("pageshow",function(e){e.persisted&&(y.opened=Date.now(),y.active=y.opened,y.reported=!1,g())}),document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState&&(y.active=Date.now(),y.active-y.sent>45e3&&g())}),["pointerdown","pointermove","keydown","scroll"].forEach(function(e){document.addEventListener(e,function(){y.active=Date.now(),!y.fast&&y.active-y.sent>45e3&&g()},{passive:!0,capture:!0})}),document.addEventListener("focusin",function(e){var t,n=function(e){if(!e||!e.matches||!e.matches(V))return"";var t=e.form||e.closest("form");if(!t)for(var n=e.parentElement,r=0;n&&n!==document.body&&r<8;n=n.parentElement,r++)if(n.querySelector('button, [role="button"], input[type="submit"]')){t=n;break}if(!t||q(t,H)||!t.querySelector('input[type="email"], input[type="tel"], textarea'))return"";return"FORM"===t.tagName?N(t):ne(t)}(e.target);n&&"sent"!==y.state&&((t=v())&&(document.cookie="dealroot_live="+t+"; path=/; SameSite=Lax"+("https:"===window.location.protocol?"; Secure":"")),_(n,"filling"))},!0)}();try{document.dispatchEvent(new CustomEvent("dealroot:tracking"))}catch(e){}}}function h(e){if(!p&&e&&"FORM"===e.tagName&&!e.querySelector('input[name="dealroot_touch"]')){var t=u();if(t.isNew){var n=document.createElement("input");n.type="hidden",n.name="dealroot_touch",n.value=JSON.stringify(t.touch),e.appendChild(n)}}}!1!==e.pageSource&&(document.addEventListener("focusin",function(e){h(e.target&&e.target.closest?e.target.closest("form"):null)},!0),document.addEventListener("submit",function(e){h(e.target)},!0));var y={form:"",state:"",nudge:"",nudged:"",active:Date.now(),opened:Date.now(),reported:!1,section:"",fast:!1,timer:0,sent:0};function v(){try{var e=window.sessionStorage.getItem("dealroot_l");if(!/^[a-f0-9]{32}$/.test(e||"")){var t=new Uint8Array(16);window.crypto.getRandomValues(t),e=Array.prototype.map.call(t,function(e){return("0"+e.toString(16)).slice(-2)}).join(""),window.sessionStorage.setItem("dealroot_l",e)}return e}catch(e){return""}}function g(){var t=v();if(!(!t||"hidden"===document.visibilityState&&y.reported||Date.now()-y.active>18e5)){y.sent=Date.now(),y.reported=!0;var n={id:t,page:o(window.location.pathname,191),title:o(document.title,191),form:o(y.form,191),state:y.state,nudge:o(y.nudge,100),nudge_state:y.nudged,open:Math.round((Date.now()-y.opened)/1e3),section:o(y.section,100),staff:e.staff?1:0};window.fetch?window.fetch(e.endpoint.replace(/submit\/?$/,"live"),{method:"POST",credentials:"same-origin",keepalive:!0,headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(function(e){return e.json()}).then(function(e){e&&(e.push&&document.dispatchEvent(new CustomEvent("dealroot:push",{detail:{id:e.push}})),e.follow&&document.dispatchEvent(new CustomEvent("dealroot:follow")),function(e){try{e?window.sessionStorage.setItem("dealroot_w",String(Date.now())):window.sessionStorage.removeItem("dealroot_w")}catch(e){}}(!!e.fast),!!e.fast!==y.fast&&(y.fast=!!e.fast,b()))}).catch(function(){}):c("live",n)}}function b(){window.clearInterval(y.timer),y.timer=window.setInterval(g,y.fast?5e3:9e4)}function _(e,t){y.form===e&&y.state===t||(y.form=e,y.state=t,g())}if(window.dealroot=window.dealroot||{},window.dealroot.liveNudge=function(t,n){!e.live||"shown"!==n&&"clicked"!==n||(y.nudge=String(t||""),y.nudged=n,g())},window.dealroot=window.dealroot||{},window.dealroot.tracking=function(){return p},window.dealroot.tabKey=v,window.dealroot.watched=function(){return y.fast},window.dealroot.grantConsent=function(){window.dealrootConsent=!0,w()},document.addEventListener("wp_listen_for_consent_change",function(e){e.detail&&"allow"===e.detail.marketing&&w()}),document.addEventListener("dealroot:consent",window.dealroot.grantConsent),"wp_consent_api"===e.consent){["CookiebotOnAccept","CookiebotOnConsentReady"].forEach(function(e){window.addEventListener(e,w)}),["cookieyes_consent_update","cmplz_status_change","cmplz_enable_category"].forEach(function(e){document.addEventListener(e,function(){window.setTimeout(w,0)})});var k=0,S=window.setInterval(function(){w(),(p||++k>=300)&&window.clearInterval(S)},1e3)}function E(e,t){var n=t.replace(/^(tel|sms|mailto|whatsapp|tg|viber):(\/\/)?/i,"").replace(/^https?:\/\/(www\.)?/i,"").split(/[?#]/)[0];try{n=decodeURIComponent(n)}catch(e){}if("whatsapp"===e){var r=/[?&]phone=(\d+)/.exec(t)||/wa\.me\/(\d+)/.exec(t);n=r?"+"+r[1]:n}return o(n,191)}w(),e.endpoint&&e.clicks&&document.addEventListener("click",function(e){var t=e.target&&e.target.closest?e.target.closest("a[href]"):null;if(t){var n=t.getAttribute("href")||"",r=function(e){var t=e.toLowerCase();return 0===t.indexOf("tel:")?"phone":0===t.indexOf("sms:")?"sms":0===t.indexOf("mailto:")?"email":0===t.indexOf("whatsapp:")||/^https?:\/\/(wa\.me|(api|web)\.whatsapp\.com|chat\.whatsapp\.com)\//.test(t)?"whatsapp":0===t.indexOf("tg:")||/^https?:\/\/(t\.me|telegram\.me)\//.test(t)?"telegram":0===t.indexOf("viber:")?"viber":/^https?:\/\/(maps\.app\.goo\.gl|goo\.gl\/maps|(www\.)?google\.[a-z.]+\/maps|maps\.google\.|maps\.apple\.com|waze\.com)/.test(t)?"directions":""}(n);r&&(c("click",{type:r,target:E(r,n),page:o(window.location.pathname,255)}),d("dealroot_contact_click"))}},!0);var L='.wpcf7-form, .elementor-form, .wpforms-form, .gform_wrapper form, .frm-show-form, .fluent_form, .ff-el-form, .nf-form-cont form, .forminator-custom-form, .jet-form-builder, .everest-form, .wsf-form, .srfm-form, .metform-form-content, form[id^="happyforms-form-"], .jetpack-contact-form__form, .kb-form, .kb-advanced-form, .uagb-forms-main-form, .otter-form__container, .et_pb_contact_form, .brxe-form, .fl-module-contact-form form, .thrv_lead_generation form, .mc4wp-form, .mailpoet_form, .um-register form, form.checkout, form.woocommerce-cart-form',C=["password","file","submit","button","reset","image"];function A(e,t){var n="",r=(e.type||"").toLowerCase();if(("checkbox"===r||"radio"===r)&&e.closest("fieldset")&&e.closest("fieldset").querySelector("legend")?n=e.closest("fieldset").querySelector("legend").textContent:"checkbox"!==r&&"radio"!==r||(n=e.name.replace(/\[\]$/,"").replace(/[-_]+/g," ")),!n&&e.id){var i=t.querySelector('label[for="'+e.id.replace(/"/g,'\\"')+'"]');n=i?i.textContent:""}return!n&&e.closest("label")&&(n=e.closest("label").textContent),n||(n=function(e,t){for(var n=e.parentElement,r=0;n&&n!==t&&r<2;r++){var o=n.querySelectorAll("label"),i=n.querySelectorAll('input:not([type="hidden"]), select, textarea');if(1===o.length&&1===i.length&&!o[0].control)return o[0].textContent;n=n.parentElement}return""}(e,t)),o((n=n||e.getAttribute("aria-label")||e.getAttribute("placeholder")||e.name).replace(/\s+/g," ").replace(/\s*\*\s*$/,"").trim(),200)}function x(e){var t=e.replace(/\[\]$/,"").replace(/^(contact|form|your|field|input|data|hidden)[-_]+/i,"").replace(/[-_]+/g," ").trim();return t?t.charAt(0).toUpperCase()+t.slice(1):e}function O(e){var t=[],n={},r=e.elements||e.querySelectorAll("input, select, textarea");return Array.prototype.forEach.call(r,function(r){var i=(r.type||"").toLowerCase(),a=r.name||(e.elements?"":(r.id||r.getAttribute("aria-label")||r.getAttribute("placeholder")||i).replace(/[^\w-]+/g,"_").slice(0,60));if(a&&!r.disabled&&-1===C.indexOf(i)&&0!==a.indexOf("_"))if("hidden"!==i){if(!/nonce|token|captcha|honeypot/i.test(a)&&("checkbox"!==i&&"radio"!==i||r.checked)){var c="select-multiple"===i?Array.prototype.filter.call(r.options,function(e){return e.selected}).map(function(e){return e.value}).join(", "):r.value;n[a]?n[a].value+=", "+c:(n[a]={name:a,label:A(r,e),type:"select-multiple"===i?"select":i,value:c},t.push(n[a]))}}else(function(e){var t=e.name||"",n=(e.value||"").replace(/\s+/g," ").trim();return!/nonce|token|captcha|honeypot|secur|hash|sign|key|referr?er|redirect|action|submit|send|lang|utm_|clid|^wp|^dealroot_|form_?id|post_?id|page_?id|_id$|^id$/i.test(t)&&n.length>1&&n.length<=2e3&&!/^[\d.,]+$/.test(n)&&!/^(true|false|yes|no|on|off)$/i.test(n)&&!/^\S{24,}$/.test(n)&&!/^https?:\/\//i.test(n)})(r)&&!n[a]&&(n[a]={name:a,label:o(x(a),200),type:"hidden",value:o(r.value.replace(/\s+/g," ").trim(),2e3)},t.push(n[a]))}),t}function q(e,t){try{return e.matches(t)}catch(e){}return t.split(",").some(function(t){try{return e.matches(t)}catch(e){return!1}})}function I(e,t){return!!t&&(!!q(e,t)||t.split(",").some(function(t){try{return!(!e.parentElement||!e.parentElement.closest(t))}catch(e){return!1}}))}function N(t){for(var n=t.querySelector(".wpforms-title, .gform_title, .frm_form_title, legend"),r=e.names||[],o=0;o<r.length;o++)try{if(t.matches(r[o][0])||t.parentElement&&t.parentElement.closest(r[o][0]))return r[o][1]}catch(e){}return t.getAttribute("data-dealroot")||t.getAttribute("aria-label")||t.getAttribute("name")||n&&n.textContent.trim()||ne(t)}var j=[];function F(e){var t=Date.now();return!!(j=j.filter(function(e){return t-e.time<3e3})).some(function(t){return t.form===e})||(j.push({form:e,time:t}),!1)}function D(){var e=new Uint8Array(16),t="";if(window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(e);else for(var n=0;n<16;n++)e[n]=Math.floor(256*Math.random());for(var r=0;r<16;r++)t+=("0"+e[r].toString(16)).slice(-2);try{window.localStorage.setItem("dealroot_k",JSON.stringify({k:t,t:Date.now()}))}catch(e){}return t}function $(){try{var e=JSON.parse(window.localStorage.getItem("dealroot_k")||"null");return e&&Date.now()-e.t<864e5?e.k:""}catch(e){return""}}function z(e){return e.some(function(e){return"hidden"!==e.type})}var T='iframe[src*="js.stripe.com"], iframe[name^="__privateStripeFrame"], .StripeElement, iframe[src*="paypal.com"], [id*="paypal-button" i], [class*="paypal-button" i], [id*="payment-element" i], [id*="card-element" i], input[autocomplete="cc-number"], input[autocomplete="cc-csc"], input[name*="cardnumber" i], input[name*="card_number" i], input[name="payment_method"], input[name*="zahlungsart" i]',R=/\/(checkout|kasse|warenkorb|cart|bezahlen|zahlung|payment|caisse|panier|carrito|pago|cassa|carrello|afrekenen|winkelwagen|koszyk|kasa|korzina|oformlenie-zakaza)(\/|$)/i;function M(e){try{return!(!e.matches("form.checkout, form.woocommerce-checkout, .wc-block-checkout form")&&!e.querySelector(T))||R.test(decodeURIComponent(location.pathname))&&!(!document.querySelector(T)&&!e.querySelector('input[autocomplete^="shipping"], input[autocomplete^="billing"], input[autocomplete="street-address"], input[autocomplete="address-line1"], input[autocomplete="postal-code"], input[name*="address" i], input[name*="adresse" i], input[name*="strasse" i], input[name*="street" i], input[name*="plz" i], input[name*="postcode" i], input[name*="zip" i]'))}catch(e){return!1}}function U(t){try{if(!t||!t.matches||t.matches(L))return;if(M(t))return void _e();if(!e.forms||!I(t,e.forms))return void function(t){if(q(t,H)||t.querySelector('input[type="password"]')||!t.querySelector('input[type="email"], input[type="tel"], textarea'))return;if(e.declined&&I(t,e.declined))return;var n=function(e){var t=[],n=e.getAttribute("name")||"",r=(e.getAttribute("action")||"").replace(/^https?:\/\/[^/]+/i,"").split(/[?#]/)[0],o=Y(e,3);e.id&&/^[A-Za-z][\w-]{0,60}$/.test(e.id)&&!/\d{4,}/.test(e.id)&&t.push("form#"+e.id);X(n)&&t.push("form[name="+X(n)+"]");t=t.concat(W(e)),r&&"/"!==r&&X(r)&&t.push("form[action$="+X(r)+"]");var i=Array.prototype.filter.call(e.classList,function(e){return/^[A-Za-z][\w-]{2,40}$/.test(e)&&!/\d{3,}/.test(e)}).slice(0,2);i.length&&t.push("form."+i.join("."));o&&t.push(Y(e,1),o);for(var a="",c=0;c<t.length;c++)try{if(e.matches(t[c])){if(1===document.querySelectorAll(t[c]).length)return t[c];!a&&Q(e,t[c])&&(a=t[c])}}catch(e){}return a}(t),r=O(t);if(!n||!z(r)||F(t))return;if(e.auto&&!B(t))return void c("submit",{form:ne(t),fields:r,found:n,title:o(document.title,120),key:D()});c("found",{selector:n,form:ne(t),newsletter:B(t),title:o(document.title,120)})}(t)}catch(e){return}var n=O(t);if(z(n)&&!F(t)){var r={form:o(N(t),191),fields:n,key:D()},i=t.querySelector('input[name="dealroot_touch"]');i&&!p&&(r.touch=i.value),c("submit",r)}}var H='[role="search"], .search-form, .searchform, #searchform, .wp-block-search, .comment-form, #commentform, #loginform, .login-form, .post-password-form, form[action*="wp-login.php"], form[action*="wp-comments-post.php"], form.cart, .variations_form',J='.tnp-subscription, .tnp-form, [id^="sib_signup_form"], .sib_signup_form, .newsletter-form, .klaviyo-form, .ml-block-form, form[id*="newsletter" i], form[class*="newsletter" i], form[action*="newsletter" i], form[id*="subscribe" i], form[action*="subscribe" i]',V='input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], input[type="date"], textarea, select';function P(e){return Array.prototype.filter.call(e.querySelectorAll(V),function(e){return!e.disabled})}function B(e){return q(e,J)||P(e).length<=2&&!!e.querySelector('input[type="email"]')&&!e.querySelector('textarea, input[type="tel"]')}function X(e){return/^[\w\-\[\]\.\/:]{1,80}$/.test(e)?'"'+e+'"':""}var Z=/^data-[a-z][a-z0-9]*(?:-[a-z0-9]+){0,5}$/,K=/^data-(?:v-|astro-|react|turbo|hs-|gtm|aos|wow|elementor|settings|nonce|ajax|id$|index|key$|dealroot|select2|parsley|validate|bound|initiali[sz]ed|loaded|processed)/;function W(e,t){var n=[];return t=t||"form",Array.prototype.forEach.call(e.attributes,function(e){var r=e.name;n.length>=6||r.length>45||!Z.test(r)||K.test(r)||/\d{3,}/.test(r)||(n.push(t+"["+r+"]"),e.value&&!/\d{4,}/.test(e.value)&&X(e.value)&&n.push(t+"["+r+"="+X(e.value)+"]"))}),n}function Y(e,t){var n=[];return P(e).forEach(function(e){var r=X(e.getAttribute("name")||"");r&&n.length<t&&-1===n.indexOf(r)&&n.push(r)}),n.length?"form"+n.map(function(e){return":has([name="+e+"])"}).join(""):""}function G(e){return P(e).map(function(e){return e.getAttribute("name")||e.type}).sort().join(" ")}function Q(e,t){var n=G(e);try{return Array.prototype.every.call(document.querySelectorAll(t),function(e){return G(e)===n})}catch(e){return!1}}var ee='form, input[type="email"], input[type="tel"], textarea';function te(e,t){for(var n=e,r=0;n&&r<t;r++){for(var o=n.previousElementSibling;o;o=o.previousElementSibling){if(o.matches(ee)||o.querySelector(ee))return"";var i=o.matches("h1, h2, h3, h4")?o:o.querySelector("h1, h2, h3, h4");if(i)return i.textContent}n=n.parentElement}return""}function ne(e){var t=e.getAttribute("data-dealroot")||e.getAttribute("aria-label")||e.getAttribute("data-name")||e.getAttribute("name")||"",n=e.querySelector("legend, h1, h2, h3, h4"),r=e.querySelector(function(e){return"FORM"===e.tagName?'button[type="submit"], input[type="submit"], button:not([type])':'button, [role="button"], input[type="button"], input[type="submit"]'}(e)),i=te(e,1)||n&&n.textContent||B(e)&&function(e){var t=e.querySelector('input[type="email"]'),n=t&&t.id?e.querySelector('label[for="'+t.id.replace(/"/g,'\\"')+'"]'):null;return n&&!/^\s*e-?mail/i.test(n.textContent)?n.textContent:""}(e)||te(e,3);i&&function(e,t){for(var n=String(t).replace(/\s+/g," ").trim().toLowerCase(),r=e,o=0;r&&o<5;r=r.parentElement,o++)for(var i=0;i<r.attributes.length;i++)if("class"!==r.attributes[i].name&&r.attributes[i].value.replace(/\s+/g," ").trim().toLowerCase()===n)return!0;return!1}(e,i)&&(i="");var a=t||i||r&&(r.value||r.textContent)||e.id||document.title;return o(String(a).replace(/\s+/g," ").trim(),80)}e.endpoint&&document.addEventListener("submit",function(e){U(e.target)},!0);var re=["div","section","aside","article","fieldset","li","dialog"],oe='button, [role="button"], input[type="button"], input[type="submit"]',ie=[],ae=null;function ce(e){return!!e&&!!e.matches&&!e.form&&e.matches(V)&&!e.closest("form")}function ue(e,t){for(var n=e.parentElement,r=0;n&&n!==document.body&&r<8;n=n.parentElement,r++){if(ie.some(function(e){return e.value&&n.contains(e)})&&(t||n.querySelector(oe)))return n}return null}function se(e,t){var n=e.toLowerCase(),r=n,o=e.replace(/\D/g,"");try{r=decodeURIComponent(n.replace(/\+/g," "))}catch(e){}return function(e){return P(e).map(function(e){return(e.value||"").trim().toLowerCase()}).filter(function(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)||/^[+\d][\d\s()./-]{5,}$/.test(e)&&e.replace(/\D/g,"").length>=6})}(t).some(function(e){return-1!==e.indexOf("@")?-1!==n.indexOf(e)||-1!==r.indexOf(e)||-1!==n.indexOf(e.replace("@","\\u0040")):-1!==o.indexOf(e.replace(/\D/g,""))})}function le(t,n){if(-1===String(t||"").indexOf("/dealroot/v1/")){var r=function(e){if(!e)return"";if("string"==typeof e)return e;if(window.URLSearchParams&&e instanceof window.URLSearchParams)return e.toString();if(window.FormData&&e instanceof window.FormData){var t=[];return e.forEach(function(e,n){"string"==typeof e&&t.push(n+"="+e)}),t.join("&")}return""}(n);if(Re(4e3).forEach(function(e){r&&se(r,e.form)&&He(e.form)}),ae&&!(Date.now()-ae.time>4e3)&&r&&se(r,ae.box)){var i=ae.box;ae=null,function(t){if(M(t))return void _e();var n=O(t);if(!z(n)||F(t))return;if(e.forms&&I(t,e.forms))return c("submit",{form:o(N(t),191),fields:n,key:D()}),void He(t);if(e.declined&&I(t,e.declined))return;var r=function(e){var t=e.tagName.toLowerCase(),n=[];if(-1===re.indexOf(t))return"";e.id&&/^[A-Za-z][\w-]{0,60}$/.test(e.id)&&!/\d{4,}/.test(e.id)&&n.push(t+"#"+e.id);n=n.concat(W(e,t));var r=Array.prototype.filter.call(e.classList,function(e){return/^[A-Za-z][\w-]{2,40}$/.test(e)&&!/\d{3,}/.test(e)}).slice(0,2);r.length&&n.push(t+"."+r.join("."));for(var o=0;o<n.length;o++)try{var i=document.querySelectorAll(n[o]);if(e.matches(n[o])&&(1===i.length||Q(e,n[o])))return n[o]}catch(e){}return""}(t);if(!r)return;if(e.auto&&!B(t))return void c("submit",{form:ne(t),fields:n,found:r,title:o(document.title,120),key:D()});c("found",{selector:r,form:ne(t),newsletter:B(t),title:o(document.title,120)})}(i)}}}if(e.endpoint){if(document.addEventListener("input",function(e){ce(e.target)&&-1===ie.indexOf(e.target)&&ie.push(e.target)},!0),document.addEventListener("click",function(e){var t=e.target&&e.target.closest?e.target.closest('button, [role="button"], input[type="button"], input[type="submit"], a'):null,n=t&&!t.closest("form")&&ie.length?ue(t,!0):null;n&&(ae={box:n,time:Date.now()})},!0),document.addEventListener("keydown",function(e){var t="Enter"===e.key&&ce(e.target)?ue(e.target):null;t&&(ae={box:t,time:Date.now()})},!0),window.fetch){var me=window.fetch;window.fetch=function(e,t){try{le("string"==typeof e?e:e&&e.url||"",t&&t.body)}catch(e){}return me.apply(this,arguments)}}if(window.XMLHttpRequest){var fe=window.XMLHttpRequest.prototype.open,de=window.XMLHttpRequest.prototype.send;window.XMLHttpRequest.prototype.open=function(e,t){return this.dealrootUrl=t,fe.apply(this,arguments)},window.XMLHttpRequest.prototype.send=function(e){try{le(this.dealrootUrl,e)}catch(e){}return de.apply(this,arguments)}}}function pe(e){var t=parseFloat(e.value),n=parseFloat(e.shipping),r=Array.isArray(e.items)?e.items:[],o=0,i=r.length>0;return r.forEach(function(e){var t=e?parseFloat(e.price):NaN,n=e&&e.quantity?parseFloat(e.quantity):1;isNaN(t)?i=!1:o+=t*(n>0?n:1)}),t>0&&n>0&&i&&Math.abs(o-t)<.01?Math.round(100*(t+n))/100:e.value}var we=null,he=/(checkout|kasse|warenkorb|bestell|zahlung|payment|commande|caisse|panier|pedido|pago|carrito|ordine|cassa|carrello|afrekenen|winkelwagen|zamowienie|koszyk|oformlen|zakaz|korzin)/i,ye=/(name|vorname|nachname|prénom|nombre|nome|imię|imie|voornaam|naam|имя|фамил|прізв|mail|phone|tel|mobil|handy|телефон)/i;function ve(e){if(!e||"object"!=typeof e)return null;var t=Array.isArray(e.address)?e.address[0]:e.address,n=t?[t.first_name,t.last_name].filter(Boolean).join(" "):e.name||"",r=Array.isArray(e.email)?e.email[0]:e.email||e.email_address||"",i=Array.isArray(e.phone_number)?e.phone_number[0]:e.phone_number||e.phone||"";return r||i?{name:o(n,191),email:o(r,191),phone:o(i,64)}:null}function ge(){var e=he.test(location.pathname),t=null;return Array.prototype.forEach.call(document.forms,function(n){if(!t&&(e||he.test(N(n)))&&!F(n)){var r=O(n).filter(function(e){return""!==String(e.value).trim()&&"hidden"!==e.type&&("email"===e.type||"tel"===e.type||ye.test(e.name+" "+e.label))}).slice(0,8);r.some(function(e){return"email"===e.type||"tel"===e.type||/@/.test(e.value)})&&(t=r)}}),t}var be="";function _e(){var e=ge(),t=e?JSON.stringify(e):"";e&&t!==be&&(be=t,c("contact",{fields:e,key:D()}))}function ke(e){!function(e){if(e&&"object"==typeof e){var t="set"===e[0]&&"user_data"===e[1]?ve(e[2]):null;!(t=t||ve(e.user_data)||ve(e.ecommerce&&e.ecommerce.customer))&&"event"===e[0]&&e[2]&&"object"==typeof e[2]&&(t=ve(e[2].user_data)),t&&(we=t)}}(e);var t=function(e){if(!e||"object"!=typeof e)return null;if("event"===e[0]&&"purchase"===e[1]&&e[2]&&"object"==typeof e[2])return{number:e[2].transaction_id,value:pe(e[2]),currency:e[2].currency,items:e[2].items};var t=e.ecommerce;if(!t||"object"!=typeof t)return null;if("purchase"===e.event&&t.transaction_id)return{number:t.transaction_id,value:pe(t),currency:t.currency,items:t.items};var n=t.purchase;return n&&n.actionField&&n.actionField.id?{number:n.actionField.id,value:n.actionField.revenue,currency:t.currencyCode,items:n.products}:null}(e),n=t?o(t.number,64):"",r=t?parseFloat(t.value):0;if(n&&r>0&&(Ve(),!function(e){try{var t=JSON.parse(window.localStorage.getItem("dealroot_o")||"[]");if(-1!==t.indexOf(e))return!0;t.push(e),window.localStorage.setItem("dealroot_o",JSON.stringify(t.slice(-20)))}catch(e){}return!1}(n))){var i=(Array.isArray(t.items)?t.items:[]).slice(0,20).map(function(e){var t=e&&(e.item_name||e.name||e.item_id||e.id),n=e&&parseInt(e.quantity,10);return o((n>1?n+" × ":"")+(t||""),200)}).filter(Boolean);c("order",{number:n,value:r,currency:o(t.currency,3),items:i,key:$(),customer:we||{},fields:ge()||[]})}}e.endpoint&&e.orders&&function(){var e=window.dataLayer=window.dataLayer||[],t=0;function n(){for(;t<e.length;t++)try{ke(e[t])}catch(e){}}n();var r=0,o=window.setInterval(function(){n(),++r>=30&&window.clearInterval(o)},1e3);window.addEventListener("pagehide",n),window.addEventListener("pagehide",_e),window.addEventListener("blur",function(){window.setTimeout(function(){document.activeElement&&"IFRAME"===document.activeElement.tagName&&_e()},0)})}(),e.endpoint&&e.stats&&document.body&&document.body.classList.contains("woocommerce-order-received")&&Ve();var Se={hubspot:/(^|\.)(hsforms\.(com|net)|hubspot\.com|hubspotusercontent[\w-]*\.net)$/,tally:/^tally\.so$/,typeform:/(^|\.)typeform\.com$/,calendly:/^calendly\.com$/};function Ee(e,t){try{return Se[t].test(new URL(e).hostname)}catch(e){return!1}}function Le(e,t,n,r){(r=r.filter(function(e){return""!==e.value})).length&&c("submit",{embed:e,id:o(t,64),form:o(n,191),fields:r.slice(0,50)})}function Ce(e,t,n){return n=Array.isArray(n)?n.join(", "):n,{name:o(e,191),label:o(t||e,200),type:/e-?mail/i.test(e)?"email":"",value:o(null==n?"":n,5e3)}}var Ae={started:{},sent:{},hooked:{}};function xe(t,n){!Ae.started[t]&&e.clicks&&(Ae.started[t]=!0,c("click",{type:"chat",target:n,page:o(window.location.pathname,255)}))}function Oe(e){var t={},n={name:/name|nickname/i,email:/e-?mail/i,phone:/phone|tel/i,message:/message|question|frage|nachricht/i};function r(e,r){"string"==typeof r&&""!==r.trim()&&Object.keys(n).forEach(function(o){!t[o]&&n[o].test(e)&&(t[o]=r.trim())})}return(Array.isArray(e)?e:[e]).forEach(function(e){e&&"object"==typeof e&&(void 0===e.answer&&void 0===e.value?Object.keys(e).forEach(function(t){e[t]&&"object"==typeof e[t]&&!Array.isArray(e[t])?Object.keys(e[t]).forEach(function(n){r(n,e[t][n])}):r(t,e[t])}):r(String(e.label||e.name||""),String(void 0!==e.answer?e.answer:e.value)))}),t}function qe(e,t,n){var r={name:"Name",email:"Email",phone:"Phone",message:"Message",visitor:t+" visitor ID"},o=Object.keys(r).filter(function(e){return n[e]}).map(function(e){return Ce(e,r[e],n[e])}),i=e+"|"+JSON.stringify(n);o.length&&!Ae.sent[i]&&(Ae.sent[i]=!0,xe(e,t),Le(e,"chat",t+" chat",o))}function Ie(e,t,n){var r=e[t];e[t]=function(){try{"function"==typeof r&&r.apply(this,arguments)}catch(e){}n.apply(this,arguments)}}var Ne={tawkto:function(){var e=window.Tawk_API;return!(!e||"object"!=typeof e)&&(Ie(e,"onChatStarted",function(){xe("tawkto","tawk.to")}),Ie(e,"onPrechatSubmit",function(e){qe("tawkto","tawk.to",Oe(e))}),Ie(e,"onOfflineSubmit",function(e){qe("tawkto","tawk.to",Oe(e))}),!0)},tidio:function(){var e=window.tidioChatApi;return!(!e||"function"!=typeof e.on)&&(e.on("conversationStart",function(){xe("tidio","Tidio")}),e.on("messageFromVisitor",function(){xe("tidio","Tidio")}),e.on("preFormFilled",function(e){qe("tidio","Tidio",Oe(e))}),!0)},crisp:function(){var e=window.$crisp;return!(!e||"function"!=typeof e.push)&&(e.push(["on","message:sent",function(){xe("crisp","Crisp")}]),["user:email:changed","user:phone:changed","user:nickname:changed"].forEach(function(t){e.push(["on",t,function(){var t={};try{t={name:e.get("user:nickname")||"",email:e.get("user:email")||"",phone:e.get("user:phone")||""}}catch(e){}(t.email||t.phone)&&qe("crisp","Crisp",t)}])}),!0)},livechat:function(){var e=window.LiveChatWidget;return!(!e||"function"!=typeof e.on)&&(e.on("new_event",function(e){e&&e.author&&"customer"===e.author.type&&xe("livechat","LiveChat")}),e.on("form_submitted",function(){try{var t=e.get("customer_data")||{};qe("livechat","LiveChat",{name:t.name||"",email:t.email||""})}catch(e){}}),!0)},drift:function(){var e=window.drift;return!(!e||"function"!=typeof e.on)&&(e.on("ready",function(){e.on("startConversation",function(){xe("drift","Drift")}),e.on("emailCapture",function(e){qe("drift","Drift",{email:e&&e.data&&e.data.email?String(e.data.email):""})})}),!0)},intercom:function(){var e=window.Intercom;return"function"==typeof e&&(e("onUserEmailSupplied",function(){var t="";try{t=String(e("getVisitorId")||"")}catch(e){}qe("intercom","Intercom",{visitor:t||"yes"})}),!0)},hubspot:function(){var e=window.HubSpotConversations;return!(!e||"function"!=typeof e.on)&&(e.on("conversationStarted",function(){xe("hubspot","HubSpot")}),!0)}};var je='[role="search"], .search-form, .comment-form, #commentform, #loginform, .woocommerce-form-login, form.checkout, form.woocommerce-cart-form',Fe=[];function De(){return p||!!e.stats||!!e.dataLayer}function $e(t,n){for(var r=0;r<Fe.length;r++)if(Fe[r].form===t)return Fe[r];return n&&function(t){try{if(t.matches(je))return!1;if(t.matches(L)||I(t,e.forms))return!0}catch(e){}return!!t.querySelector('input[type="email"], input[type="tel"], textarea')}(t)?(Fe.push({form:t,field:"",reported:!1}),Fe[Fe.length-1]):null}window.dealroot=window.dealroot||{},window.dealroot.stuckForm=function(){for(var e=Fe.length-1;e>=0;e--)if(!Fe[e].reported&&Fe[e].form.isConnected)return{form:o(N(Fe[e].form),191),field:Fe[e].field};return null};var ze=[["cf7",".wpcf7-form","input:_wpcf7"],["wpforms",".wpforms-form","data-formid"],["gravityforms",".gform_wrapper form","input:gform_submit"],["formidable",".frm-show-form","input:form_id"],["forminator",".forminator-custom-form","data-form-id"],["jetformbuilder",".jet-form-builder","data-form-id"],["everestforms",".everest-form","data-formid"],["wsform",".wsf-form","data-id"],["sureforms",".srfm-form","form-id"],["happyforms",'form[id^="happyforms-form-"]',"input:happyforms_form_id"],["kadence",".kb-advanced-form","input:_kb_adv_form_post_id"],["mc4wp",".mc4wp-form","data-id"],["mailpoet",".mailpoet_form","input:data[form_id]"],["ultimatemember",".um-register form","input:form_id"]];function Te(e){for(var t=0;t<ze.length;t++)if(e.matches(ze[t][1])){var n=ze[t][2],r=0===n.indexOf("input:")?e.querySelector('input[name="'+n.slice(6)+'"]'):null,o=r?r.value:e.getAttribute(n)||"";return/^\d+$/.test(o)?ze[t][0]+":"+o:""}return""}function Re(e){var t=Date.now();return Fe.filter(function(n){return!n.reported&&n.pressed&&t-n.pressed<=e})}function Me(e){var t=e?$e(e,!0):null;!t||e.checkValidity&&!e.checkValidity()||(t.pressed=Date.now())}function Ue(e,t){t.form=o(N(e),191),t.source=Te(e),c("form",t)}function He(n){var r=$e(n,!0);if(r&&!r.reported&&(r.reported=!0,d("dealroot_form_sent"),function(n){if(!e.dataLayer)return;var r=p?i(t):null,a=r&&r.f?r.f:{},c=r&&r.l?r.l:a,u=["gclid","gbraid","wbraid","msclkid","fbclid","ttclid","li_fat_id"].filter(function(e){return c[e]||a[e]})[0]||"",s=c.ref?String(c.ref).replace(/^https?:\/\//,"").split("/")[0]:"";(window.dataLayer=window.dataLayer||[]).push({event:"generate_lead",lead_source:p?c.utm_source||s||"direct":"",dealroot:{form:o(N(n),191),form_id:Te(n),source:c.utm_source||s,medium:c.utm_medium||"",campaign:c.utm_campaign||"",keyword:c.utm_term||"",click_id:u,first_source:a.utm_source||(a.ref?String(a.ref).replace(/^https?:\/\//,"").split("/")[0]:""),landing_page:a.lp||""}})}(n),e.stats)){if(e.checkout&&M(n)){var a=o(N(n),191),u=o(e.payment||"Payment",191);return c("form",{form:a,source:Te(n),sent:!1,field:u}),void Je(n,u)}Ue(n,{sent:!0})}}function Je(e,t){try{window.sessionStorage.setItem("dealroot_pay",JSON.stringify({form:o(N(e),191),source:Te(e),field:t,at:Date.now()}))}catch(e){}}function Ve(){var e=null;try{e=JSON.parse(window.sessionStorage.getItem("dealroot_pay")||"null"),window.sessionStorage.removeItem("dealroot_pay")}catch(e){}e&&e.form&&Date.now()-e.at<864e5&&c("form",{form:e.form,source:e.source||"",sent:!0,paid:!0,field:e.field||""})}function Pe(e){var t=e.target,n=t&&("FORM"===t.tagName?t:t.querySelector&&t.querySelector("form"));De()&&n&&He(n)}if(e.endpoint){if(document.addEventListener("focusin",function(e){var t=e.target,n=t&&t.form;if(De()&&n&&t.name&&-1===C.indexOf((t.type||"").toLowerCase())){var r=$e(n,!0);r&&(r.field=A(t,n))}}),document.addEventListener("submit",function(e){var t=e.target;De()&&t&&t.closest&&!t.closest(".wpcf7")&&He(t)},!0),document.addEventListener("click",function(e){var t=De()&&e.target&&e.target.closest?e.target.closest(oe):null;t&&"reset"!==(t.type||"").toLowerCase()&&Me(t.form||t.closest("form"))},!0),document.addEventListener("keydown",function(e){var t=e.target;De()&&"Enter"===e.key&&t&&t.form&&"TEXTAREA"!==t.tagName&&Me(t.form)},!0),document.addEventListener("wpcf7mailsent",Pe),window.addEventListener("message",function(e){var t=e.data;if(!t||"hsFormCallback"!==t.type||"onFormSubmitted"!==t.eventName||e.origin!==window.location.origin&&!Ee(e.origin,"hubspot"))if("string"==typeof t&&-1!==t.indexOf("Tally.FormSubmitted")&&Ee(e.origin,"tally")){var n;try{n=JSON.parse(t).payload||{}}catch(e){return}Le("tally",n.formId,n.formName||"Tally",(n.fields||[]).map(function(e){var t=e.answer&&"object"==typeof e.answer?e.answer.value:e.answer;return Ce(e.id||"",e.title,t)}))}else t&&"form-submit"===t.type&&t.responseId&&Ee(e.origin,"typeform")?Le("typeform",t.formId,"Typeform",[Ce("response_id","Typeform response",t.responseId)]):t&&"calendly.event_scheduled"===t.event&&Ee(e.origin,"calendly")&&Le("calendly","","Calendly",[Ce("booking","Calendly booking",t.payload&&t.payload.invitee&&t.payload.invitee.uri||"booked")]);else{var r=t.data&&t.data.submissionValues||{};Le("hubspot",t.id,"HubSpot",Object.keys(r).map(function(e){return Ce(e,e,r[e])}))}}),window.addEventListener("hs-form-event:on-submission:success",function(e){var t=window.HubSpotFormsV4,n=t&&t.getFormFromEvent?t.getFormFromEvent(e):null;n&&n.getFormFieldValues&&Promise.resolve(n.getFormFieldValues()).then(function(t){Le("hubspot",e.detail&&e.detail.formId,"HubSpot",(t||[]).map(function(e){var t=String(e.name||"").replace(/^\d+-\d+\//,"");return Ce(t,t,e.value)}))}).catch(function(){})}),function(){var e=0;function t(){Object.keys(Ne).forEach(function(e){if(!Ae.hooked[e])try{Ae.hooked[e]=Ne[e]()}catch(t){Ae.hooked[e]=!0}}),++e<30&&Object.keys(Ne).some(function(e){return!Ae.hooked[e]})&&window.setTimeout(t,2e3)}document.addEventListener("tidioChat-ready",t),t()}(),document.addEventListener("wpcf7mailfailed",Pe),window.HTMLFormElement&&"function"==typeof window.HTMLFormElement.prototype.submit){var Be=window.HTMLFormElement.prototype.submit;window.HTMLFormElement.prototype.submit=function(){try{U(this),!De()||this.closest&&this.closest(".wpcf7")||He(this)}catch(e){}return Be.apply(this,arguments)}}window.addEventListener("pagehide",function(){e.stats&&(Re(1e4).forEach(function(e){He(e.form)}),Fe.forEach(function(t){t.reported||(t.reported=!0,Ue(t.form,{sent:!1,field:o(t.field,191)}),e.checkout&&M(t.form)&&Je(t.form,o(t.field,191)))}))})}}();
     1!function(){"use strict";var e=window.dealrootTracker||{},t="dealroot_attr",n="dealroot_path",r=e.params||["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","fbclid"];function o(e,t){return(e=String(e||"")).length>t?e.slice(0,t):e}function i(e){var t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));if(!t)return null;try{var n=JSON.parse(decodeURIComponent(t[1]));return n&&n.f?n:null}catch(e){return null}}function a(t,n){var r=parseInt(e.days,10)||90,o=new Date(Date.now()+864e5*r).toUTCString(),i="https:"===window.location.protocol?"; Secure":"";document.cookie=t+"="+encodeURIComponent(JSON.stringify(n))+"; expires="+o+"; path=/; SameSite=Lax"+i}function c(t,n){if(e.endpoint){var r=e.endpoint.replace(/submit\/?$/,t),o=JSON.stringify(n);"submit"===t&&e.live&&n.form&&window.setTimeout(function(){_(n.form,"sent")},0),navigator.sendBeacon&&navigator.sendBeacon(r,new Blob([o],{type:"application/json"}))||window.fetch&&window.fetch(r,{method:"POST",credentials:"same-origin",keepalive:!0,headers:{"Content-Type":"application/json"},body:o}).catch(function(){})}}function u(){var e=new URLSearchParams(window.location.search),t={},n=!1;r.forEach(function(r){var i=e.get(r);i&&(t[r]=o(i,200),n=!0)});var i=function(){if(!document.referrer)return"";try{var e=new URL(document.referrer);return e.hostname===window.location.hostname?"":o(e.hostname+e.pathname,300)}catch(e){return""}}();return i&&(t.ref=i),t.lp=o(window.location.pathname+window.location.search,300),t.ts=Math.floor(Date.now()/1e3),{touch:t,isNew:n||!!i}}function s(){var r=i(t),s=u(),m=function(){try{return!window.sessionStorage.getItem("dealroot_s")&&(window.sessionStorage.setItem("dealroot_s","1"),!0)}catch(e){return!1}}(),d=function(){try{return o(Intl.DateTimeFormat().resolvedOptions().timeZone||"",60)}catch(e){return""}}();r?(s.isNew||d&&r.z!==d)&&(s.isNew&&(r.l=s.touch,r.t=(r.t||[]).concat([l(s.touch)]).slice(-6)),r.z=d,a(t,r)):a(t,{v:1,f:s.touch,l:s.touch,z:d}),function(e){var t=Math.floor(Date.now()/1e3),r=i(n)||{v:1,n:0,f:t,p:[]};!e&&r.n||(r.n=(parseInt(r.n,10)||0)+1);r.p=(r.p||[]).concat([[o(window.location.pathname,80),t]]).slice(-15),a(n,r)}(m||s.isNew),f(),e.visits&&(m||s.isNew)&&!navigator.webdriver&&c("visit",{touch:s.isNew?s.touch:{lp:s.touch.lp,ts:s.touch.ts},tz:d})}function l(e){var t={ts:e.ts};return e.utm_source&&(t.s=o(e.utm_source,60)),e.utm_medium&&(t.m=o(e.utm_medium,40)),e.utm_campaign&&(t.c=o(e.utm_campaign,60)),e.ref&&(t.r=o(String(e.ref).split("/")[0],60)),Object.keys(e).some(function(e){return!/^(utm_|lp$|ref$|ts$)/.test(e)&&(t.k=e,!0)}),t}function m(){switch(e.consent){case"wp_consent_api":return function(){if("function"==typeof window.wp_has_consent&&window.wp_has_consent("marketing"))return!0;if(window.Cookiebot&&window.Cookiebot.consent&&!0===window.Cookiebot.consent.marketing)return!0;try{var e="function"==typeof window.getCkyConsent?window.getCkyConsent():null;if(e&&e.categories&&!0===e.categories.advertisement)return!0}catch(e){}if(/(?:^|;\s*)cookieyes-consent=[^;]*advertisement:yes/.test(document.cookie)||/(?:^|;\s*)cmplz_marketing=allow/.test(document.cookie))return!0;return"granted"===function(){for(var e=window.dataLayer||[],t="",n=0;n<e.length;n++){var r=e[n];r&&"consent"===r[0]&&("default"===r[1]||"update"===r[1])&&r[2]&&r[2].ad_storage&&(t=String(r[2].ad_storage))}return t}()}();case"custom":return!0===window.dealrootConsent;case"cookieless":return!1;default:return!0}}function f(){var e=document.querySelector('script[src*="clarity.ms/tag/"]'),t=e&&/clarity\.ms\/tag\/([a-z0-9]+)/i.exec(e.src);return t&&(document.cookie="dealroot_clarity="+t[1]+"; path=/; SameSite=Lax"+("https:"===window.location.protocol?"; Secure":"")),"function"==typeof window.clarity}function d(e){p&&f()&&(window.clarity("event",e),window.clarity("upgrade",e))}var p=!1;function w(){if(!p&&m()){p=!0,s(),function(){if(!e.live||!e.endpoint||navigator.webdriver)return;y.fast=function(){try{return Date.now()-Number(window.sessionStorage.getItem("dealroot_w")||0)<12e4}catch(e){return!1}}(),y.sent=Date.now(),function(){var e=0;function t(){e=0;var t=function(){if((window.scrollY||0)<.5*window.innerHeight)return"";for(var e=document.querySelectorAll("section[id], main [id]:not(section)"),t=.35*window.innerHeight,n=null,r=0;r<e.length;r++){var o=e[r].getBoundingClientRect();o.height>120&&o.top<=t&&o.bottom>t&&/^[A-Za-z][\w-]{0,60}$/.test(e[r].id)&&("SECTION"===e[r].tagName||document.querySelector('a[href$="#'+e[r].id+'"]'))&&(n=e[r])}if(!n)return"";var i=document.querySelector('a[href$="#'+n.id+'"]'),a=i?i.textContent.replace(/\s+/g," ").trim():"";if(!a||a.length>40){var c=n.querySelector("h1, h2, h3");a=c?c.textContent.replace(/\s+/g," ").trim():""}return a.slice(0,100)}();t!==y.section&&(y.section=t,y.fast&&(window.clearTimeout(y.soon),y.soon=window.setTimeout(g,Math.max(0,700-(Date.now()-y.sent)))))}["scroll","hashchange"].forEach(function(n){window.addEventListener(n,function(){e||(e=window.setTimeout(t,"hashchange"===n?50:400))},{passive:!0})})}(),window.setTimeout(function(){g(),b()},y.fast?0:1500),window.addEventListener("pagehide",function(){var t=v();t&&navigator.sendBeacon&&navigator.sendBeacon(e.endpoint.replace(/submit\/?$/,"live"),new Blob([JSON.stringify({id:t,bye:1,fast:y.fast?1:0,page:o(window.location.pathname,191),open:Math.round((Date.now()-y.opened)/1e3)})],{type:"application/json"}))}),window.addEventListener("pageshow",function(e){e.persisted&&(y.opened=Date.now(),y.active=y.opened,y.reported=!1,g())}),document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState&&(y.active=Date.now(),y.active-y.sent>45e3&&g())}),["pointerdown","pointermove","keydown","scroll"].forEach(function(e){document.addEventListener(e,function(){y.active=Date.now(),!y.fast&&y.active-y.sent>45e3&&g()},{passive:!0,capture:!0})}),document.addEventListener("focusin",function(e){var t,n=function(e){if(!e||!e.matches||!e.matches(V))return"";var t=e.form||e.closest("form");if(!t)for(var n=e.parentElement,r=0;n&&n!==document.body&&r<8;n=n.parentElement,r++)if(n.querySelector('button, [role="button"], input[type="submit"]')){t=n;break}if(!t||q(t,H)||!t.querySelector('input[type="email"], input[type="tel"], textarea'))return"";return"FORM"===t.tagName?N(t):ne(t)}(e.target);n&&"sent"!==y.state&&((t=v())&&(document.cookie="dealroot_live="+t+"; path=/; SameSite=Lax"+("https:"===window.location.protocol?"; Secure":"")),_(n,"filling"))},!0)}();try{document.dispatchEvent(new CustomEvent("dealroot:tracking"))}catch(e){}}}function h(e){if(!p&&e&&"FORM"===e.tagName&&!e.querySelector('input[name="dealroot_touch"]')){var t=u();if(t.isNew){var n=document.createElement("input");n.type="hidden",n.name="dealroot_touch",n.value=JSON.stringify(t.touch),e.appendChild(n)}}}!1!==e.pageSource&&(document.addEventListener("focusin",function(e){h(e.target&&e.target.closest?e.target.closest("form"):null)},!0),document.addEventListener("submit",function(e){h(e.target)},!0));var y={form:"",state:"",nudge:"",nudged:"",active:Date.now(),opened:Date.now(),reported:!1,section:"",fast:!1,timer:0,sent:0};function v(){try{var e=window.sessionStorage.getItem("dealroot_l");if(!/^[a-f0-9]{32}$/.test(e||"")){var t=new Uint8Array(16);window.crypto.getRandomValues(t),e=Array.prototype.map.call(t,function(e){return("0"+e.toString(16)).slice(-2)}).join(""),window.sessionStorage.setItem("dealroot_l",e)}return e}catch(e){return""}}function g(){var t=v();if(!(!t||"hidden"===document.visibilityState&&y.reported||Date.now()-y.active>18e5)){y.sent=Date.now(),y.reported=!0;var n={id:t,page:o(window.location.pathname,191),title:o(document.title,191),form:o(y.form,191),state:y.state,nudge:o(y.nudge,100),nudge_state:y.nudged,open:Math.round((Date.now()-y.opened)/1e3),section:o(y.section,100),staff:e.staff?1:0};window.fetch?window.fetch(e.endpoint.replace(/submit\/?$/,"live"),{method:"POST",credentials:"same-origin",keepalive:!0,headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(function(e){return e.json()}).then(function(e){e&&(e.push&&document.dispatchEvent(new CustomEvent("dealroot:push",{detail:{id:e.push}})),e.follow&&document.dispatchEvent(new CustomEvent("dealroot:follow")),function(e){try{e?window.sessionStorage.setItem("dealroot_w",String(Date.now())):window.sessionStorage.removeItem("dealroot_w")}catch(e){}}(!!e.fast),!!e.fast!==y.fast&&(y.fast=!!e.fast,b()))}).catch(function(){}):c("live",n)}}function b(){window.clearInterval(y.timer),y.timer=window.setInterval(g,y.fast?5e3:9e4)}function _(e,t){y.form===e&&y.state===t||(y.form=e,y.state=t,g())}if(window.dealroot=window.dealroot||{},window.dealroot.liveNudge=function(t,n){!e.live||"shown"!==n&&"clicked"!==n||(y.nudge=String(t||""),y.nudged=n,g())},window.dealroot=window.dealroot||{},window.dealroot.tracking=function(){return p},window.dealroot.tabKey=v,window.dealroot.watched=function(){return y.fast},window.dealroot.grantConsent=function(){window.dealrootConsent=!0,w()},document.addEventListener("wp_listen_for_consent_change",function(e){e.detail&&"allow"===e.detail.marketing&&w()}),document.addEventListener("dealroot:consent",window.dealroot.grantConsent),"wp_consent_api"===e.consent){["CookiebotOnAccept","CookiebotOnConsentReady"].forEach(function(e){window.addEventListener(e,w)}),["cookieyes_consent_update","cmplz_status_change","cmplz_enable_category"].forEach(function(e){document.addEventListener(e,function(){window.setTimeout(w,0)})});var k=0,S=window.setInterval(function(){w(),(p||++k>=300)&&window.clearInterval(S)},1e3)}function E(e,t){var n=t.replace(/^(tel|sms|mailto|whatsapp|tg|viber):(\/\/)?/i,"").replace(/^https?:\/\/(www\.)?/i,"").split(/[?#]/)[0];try{n=decodeURIComponent(n)}catch(e){}if("whatsapp"===e){var r=/[?&]phone=(\d+)/.exec(t)||/wa\.me\/(\d+)/.exec(t);n=r?"+"+r[1]:n}return o(n,191)}w(),e.endpoint&&e.clicks&&document.addEventListener("click",function(e){var t=e.target&&e.target.closest?e.target.closest("a[href]"):null;if(t){var n=t.getAttribute("href")||"",r=function(e){var t=e.toLowerCase();return 0===t.indexOf("tel:")?"phone":0===t.indexOf("sms:")?"sms":0===t.indexOf("mailto:")?"email":0===t.indexOf("whatsapp:")||/^https?:\/\/(wa\.me|(api|web)\.whatsapp\.com|chat\.whatsapp\.com)\//.test(t)?"whatsapp":0===t.indexOf("tg:")||/^https?:\/\/(t\.me|telegram\.me)\//.test(t)?"telegram":0===t.indexOf("viber:")?"viber":/^https?:\/\/(maps\.app\.goo\.gl|goo\.gl\/maps|(www\.)?google\.[a-z.]+\/maps|maps\.google\.|maps\.apple\.com|waze\.com)/.test(t)?"directions":""}(n);r&&(c("click",{type:r,target:E(r,n),page:o(window.location.pathname,255)}),d("dealroot_contact_click"))}},!0);var L='.wpcf7-form, .elementor-form, .wpforms-form, .gform_wrapper form, .frm-show-form, .frm-fluent-form, .fluent_form, .ff-el-form, .nf-form-cont form, .forminator-custom-form, .jet-form-builder, .everest-form, .wsf-form, .srfm-form, .metform-form-content, form[id^="happyforms-form-"], .jetpack-contact-form__form, .kb-form, .kb-advanced-form, .uagb-forms-main-form, .otter-form__container, .et_pb_contact_form, .brxe-form, .fl-module-contact-form form, .thrv_lead_generation form, .mc4wp-form, .mailpoet_form, .um-register form, form.checkout, form.woocommerce-cart-form',C=["password","file","submit","button","reset","image"];function A(e,t){var n="",r=(e.type||"").toLowerCase();if(("checkbox"===r||"radio"===r)&&e.closest("fieldset")&&e.closest("fieldset").querySelector("legend")?n=e.closest("fieldset").querySelector("legend").textContent:"checkbox"!==r&&"radio"!==r||(n=e.name.replace(/\[\]$/,"").replace(/[-_]+/g," ")),!n&&e.id){var i=t.querySelector('label[for="'+e.id.replace(/"/g,'\\"')+'"]');n=i?i.textContent:""}return!n&&e.closest("label")&&(n=e.closest("label").textContent),n||(n=function(e,t){for(var n=e.parentElement,r=0;n&&n!==t&&r<2;r++){var o=n.querySelectorAll("label"),i=n.querySelectorAll('input:not([type="hidden"]), select, textarea');if(1===o.length&&1===i.length&&!o[0].control)return o[0].textContent;n=n.parentElement}return""}(e,t)),o((n=n||e.getAttribute("aria-label")||e.getAttribute("placeholder")||e.name).replace(/\s+/g," ").replace(/\s*\*\s*$/,"").trim(),200)}function x(e){var t=e.replace(/\[\]$/,"").replace(/^(contact|form|your|field|input|data|hidden)[-_]+/i,"").replace(/[-_]+/g," ").trim();return t?t.charAt(0).toUpperCase()+t.slice(1):e}function O(e){var t=[],n={},r=e.elements||e.querySelectorAll("input, select, textarea");return Array.prototype.forEach.call(r,function(r){var i=(r.type||"").toLowerCase(),a=r.name||(e.elements?"":(r.id||r.getAttribute("aria-label")||r.getAttribute("placeholder")||i).replace(/[^\w-]+/g,"_").slice(0,60));if(a&&!r.disabled&&-1===C.indexOf(i)&&0!==a.indexOf("_"))if("hidden"!==i){if(!/nonce|token|captcha|honeypot/i.test(a)&&("checkbox"!==i&&"radio"!==i||r.checked)){var c="select-multiple"===i?Array.prototype.filter.call(r.options,function(e){return e.selected}).map(function(e){return e.value}).join(", "):r.value;n[a]?n[a].value+=", "+c:(n[a]={name:a,label:A(r,e),type:"select-multiple"===i?"select":i,value:c},t.push(n[a]))}}else(function(e){var t=e.name||"",n=(e.value||"").replace(/\s+/g," ").trim();return!/nonce|token|captcha|honeypot|secur|hash|sign|key|referr?er|redirect|action|submit|send|lang|utm_|clid|^wp|^dealroot_|form_?id|post_?id|page_?id|_id$|^id$/i.test(t)&&n.length>1&&n.length<=2e3&&!/^[\d.,]+$/.test(n)&&!/^(true|false|yes|no|on|off)$/i.test(n)&&!/^\S{24,}$/.test(n)&&!/^https?:\/\//i.test(n)})(r)&&!n[a]&&(n[a]={name:a,label:o(x(a),200),type:"hidden",value:o(r.value.replace(/\s+/g," ").trim(),2e3)},t.push(n[a]))}),t}function q(e,t){try{return e.matches(t)}catch(e){}return t.split(",").some(function(t){try{return e.matches(t)}catch(e){return!1}})}function I(e,t){return!!t&&(!!q(e,t)||t.split(",").some(function(t){try{return!(!e.parentElement||!e.parentElement.closest(t))}catch(e){return!1}}))}function N(t){for(var n=t.querySelector(".wpforms-title, .gform_title, .frm_form_title, legend"),r=e.names||[],o=0;o<r.length;o++)try{if(t.matches(r[o][0])||t.parentElement&&t.parentElement.closest(r[o][0]))return r[o][1]}catch(e){}return t.getAttribute("data-dealroot")||t.getAttribute("aria-label")||t.getAttribute("name")||n&&n.textContent.trim()||ne(t)}var j=[];function F(e){var t=Date.now();return!!(j=j.filter(function(e){return t-e.time<3e3})).some(function(t){return t.form===e})||(j.push({form:e,time:t}),!1)}function D(){var e=new Uint8Array(16),t="";if(window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(e);else for(var n=0;n<16;n++)e[n]=Math.floor(256*Math.random());for(var r=0;r<16;r++)t+=("0"+e[r].toString(16)).slice(-2);try{window.localStorage.setItem("dealroot_k",JSON.stringify({k:t,t:Date.now()}))}catch(e){}return t}function $(){try{var e=JSON.parse(window.localStorage.getItem("dealroot_k")||"null");return e&&Date.now()-e.t<864e5?e.k:""}catch(e){return""}}function z(e){return e.some(function(e){return"hidden"!==e.type})}var T='iframe[src*="js.stripe.com"], iframe[name^="__privateStripeFrame"], .StripeElement, iframe[src*="paypal.com"], [id*="paypal-button" i], [class*="paypal-button" i], [id*="payment-element" i], [id*="card-element" i], input[autocomplete="cc-number"], input[autocomplete="cc-csc"], input[name*="cardnumber" i], input[name*="card_number" i], input[name="payment_method"], input[name*="zahlungsart" i]',R=/\/(checkout|kasse|warenkorb|cart|bezahlen|zahlung|payment|caisse|panier|carrito|pago|cassa|carrello|afrekenen|winkelwagen|koszyk|kasa|korzina|oformlenie-zakaza)(\/|$)/i;function M(e){try{return!(!e.matches("form.checkout, form.woocommerce-checkout, .wc-block-checkout form")&&!e.querySelector(T))||R.test(decodeURIComponent(location.pathname))&&!(!document.querySelector(T)&&!e.querySelector('input[autocomplete^="shipping"], input[autocomplete^="billing"], input[autocomplete="street-address"], input[autocomplete="address-line1"], input[autocomplete="postal-code"], input[name*="address" i], input[name*="adresse" i], input[name*="strasse" i], input[name*="street" i], input[name*="plz" i], input[name*="postcode" i], input[name*="zip" i]'))}catch(e){return!1}}function U(t){try{if(!t||!t.matches||t.matches(L))return;if(M(t))return void _e();if(!e.forms||!I(t,e.forms))return void function(t){if(q(t,H)||t.querySelector('input[type="password"]')||!t.querySelector('input[type="email"], input[type="tel"], textarea'))return;if(e.declined&&I(t,e.declined))return;var n=function(e){var t=[],n=e.getAttribute("name")||"",r=(e.getAttribute("action")||"").replace(/^https?:\/\/[^/]+/i,"").split(/[?#]/)[0],o=Y(e,3);e.id&&/^[A-Za-z][\w-]{0,60}$/.test(e.id)&&!/\d{4,}/.test(e.id)&&t.push("form#"+e.id);X(n)&&t.push("form[name="+X(n)+"]");t=t.concat(W(e)),r&&"/"!==r&&X(r)&&t.push("form[action$="+X(r)+"]");var i=Array.prototype.filter.call(e.classList,function(e){return/^[A-Za-z][\w-]{2,40}$/.test(e)&&!/\d{3,}/.test(e)}).slice(0,2);i.length&&t.push("form."+i.join("."));o&&t.push(Y(e,1),o);for(var a="",c=0;c<t.length;c++)try{if(e.matches(t[c])){if(1===document.querySelectorAll(t[c]).length)return t[c];!a&&Q(e,t[c])&&(a=t[c])}}catch(e){}return a}(t),r=O(t);if(!n||!z(r)||F(t))return;if(e.auto&&!B(t))return void c("submit",{form:ne(t),fields:r,found:n,title:o(document.title,120),key:D()});c("found",{selector:n,form:ne(t),newsletter:B(t),title:o(document.title,120)})}(t)}catch(e){return}var n=O(t);if(z(n)&&!F(t)){var r={form:o(N(t),191),fields:n,key:D()},i=t.querySelector('input[name="dealroot_touch"]');i&&!p&&(r.touch=i.value),c("submit",r)}}var H='[role="search"], .search-form, .searchform, #searchform, .wp-block-search, .comment-form, #commentform, #loginform, .login-form, .post-password-form, form[action*="wp-login.php"], form[action*="wp-comments-post.php"], form.cart, .variations_form',J='.tnp-subscription, .tnp-form, [id^="sib_signup_form"], .sib_signup_form, .newsletter-form, .klaviyo-form, .ml-block-form, form[id*="newsletter" i], form[class*="newsletter" i], form[action*="newsletter" i], form[id*="subscribe" i], form[action*="subscribe" i]',V='input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], input[type="date"], textarea, select';function P(e){return Array.prototype.filter.call(e.querySelectorAll(V),function(e){return!e.disabled})}function B(e){return q(e,J)||P(e).length<=2&&!!e.querySelector('input[type="email"]')&&!e.querySelector('textarea, input[type="tel"]')}function X(e){return/^[\w\-\[\]\.\/:]{1,80}$/.test(e)?'"'+e+'"':""}var Z=/^data-[a-z][a-z0-9]*(?:-[a-z0-9]+){0,5}$/,K=/^data-(?:v-|astro-|react|turbo|hs-|gtm|aos|wow|elementor|settings|nonce|ajax|id$|index|key$|dealroot|select2|parsley|validate|bound|initiali[sz]ed|loaded|processed)/;function W(e,t){var n=[];return t=t||"form",Array.prototype.forEach.call(e.attributes,function(e){var r=e.name;n.length>=6||r.length>45||!Z.test(r)||K.test(r)||/\d{3,}/.test(r)||(n.push(t+"["+r+"]"),e.value&&!/\d{4,}/.test(e.value)&&X(e.value)&&n.push(t+"["+r+"="+X(e.value)+"]"))}),n}function Y(e,t){var n=[];return P(e).forEach(function(e){var r=X(e.getAttribute("name")||"");r&&n.length<t&&-1===n.indexOf(r)&&n.push(r)}),n.length?"form"+n.map(function(e){return":has([name="+e+"])"}).join(""):""}function G(e){return P(e).map(function(e){return e.getAttribute("name")||e.type}).sort().join(" ")}function Q(e,t){var n=G(e);try{return Array.prototype.every.call(document.querySelectorAll(t),function(e){return G(e)===n})}catch(e){return!1}}var ee='form, input[type="email"], input[type="tel"], textarea';function te(e,t){for(var n=e,r=0;n&&r<t;r++){for(var o=n.previousElementSibling;o;o=o.previousElementSibling){if(o.matches(ee)||o.querySelector(ee))return"";var i=o.matches("h1, h2, h3, h4")?o:o.querySelector("h1, h2, h3, h4");if(i)return i.textContent}n=n.parentElement}return""}function ne(e){var t=e.getAttribute("data-dealroot")||e.getAttribute("aria-label")||e.getAttribute("data-name")||e.getAttribute("name")||"",n=e.querySelector("legend, h1, h2, h3, h4"),r=e.querySelector(function(e){return"FORM"===e.tagName?'button[type="submit"], input[type="submit"], button:not([type])':'button, [role="button"], input[type="button"], input[type="submit"]'}(e)),i=te(e,1)||n&&n.textContent||B(e)&&function(e){var t=e.querySelector('input[type="email"]'),n=t&&t.id?e.querySelector('label[for="'+t.id.replace(/"/g,'\\"')+'"]'):null;return n&&!/^\s*e-?mail/i.test(n.textContent)?n.textContent:""}(e)||te(e,3);i&&function(e,t){for(var n=String(t).replace(/\s+/g," ").trim().toLowerCase(),r=e,o=0;r&&o<5;r=r.parentElement,o++)for(var i=0;i<r.attributes.length;i++)if("class"!==r.attributes[i].name&&r.attributes[i].value.replace(/\s+/g," ").trim().toLowerCase()===n)return!0;return!1}(e,i)&&(i="");var a=t||i||r&&(r.value||r.textContent)||e.id||document.title;return o(String(a).replace(/\s+/g," ").trim(),80)}e.endpoint&&document.addEventListener("submit",function(e){U(e.target)},!0);var re=["div","section","aside","article","fieldset","li","dialog"],oe='button, [role="button"], input[type="button"], input[type="submit"]',ie=[],ae=null;function ce(e){return!!e&&!!e.matches&&!e.form&&e.matches(V)&&!e.closest("form")}function ue(e,t){for(var n=e.parentElement,r=0;n&&n!==document.body&&r<8;n=n.parentElement,r++){if(ie.some(function(e){return e.value&&n.contains(e)})&&(t||n.querySelector(oe)))return n}return null}function se(e,t){var n=e.toLowerCase(),r=n,o=e.replace(/\D/g,"");try{r=decodeURIComponent(n.replace(/\+/g," "))}catch(e){}return function(e){return P(e).map(function(e){return(e.value||"").trim().toLowerCase()}).filter(function(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)||/^[+\d][\d\s()./-]{5,}$/.test(e)&&e.replace(/\D/g,"").length>=6})}(t).some(function(e){return-1!==e.indexOf("@")?-1!==n.indexOf(e)||-1!==r.indexOf(e)||-1!==n.indexOf(e.replace("@","\\u0040")):-1!==o.indexOf(e.replace(/\D/g,""))})}function le(t,n){if(-1===String(t||"").indexOf("/dealroot/v1/")){var r=function(e){if(!e)return"";if("string"==typeof e)return e;if(window.URLSearchParams&&e instanceof window.URLSearchParams)return e.toString();if(window.FormData&&e instanceof window.FormData){var t=[];return e.forEach(function(e,n){"string"==typeof e&&t.push(n+"="+e)}),t.join("&")}return""}(n);if(Re(4e3).forEach(function(e){r&&se(r,e.form)&&He(e.form)}),ae&&!(Date.now()-ae.time>4e3)&&r&&se(r,ae.box)){var i=ae.box;ae=null,function(t){if(M(t))return void _e();var n=O(t);if(!z(n)||F(t))return;if(e.forms&&I(t,e.forms))return c("submit",{form:o(N(t),191),fields:n,key:D()}),void He(t);if(e.declined&&I(t,e.declined))return;var r=function(e){var t=e.tagName.toLowerCase(),n=[];if(-1===re.indexOf(t))return"";e.id&&/^[A-Za-z][\w-]{0,60}$/.test(e.id)&&!/\d{4,}/.test(e.id)&&n.push(t+"#"+e.id);n=n.concat(W(e,t));var r=Array.prototype.filter.call(e.classList,function(e){return/^[A-Za-z][\w-]{2,40}$/.test(e)&&!/\d{3,}/.test(e)}).slice(0,2);r.length&&n.push(t+"."+r.join("."));for(var o=0;o<n.length;o++)try{var i=document.querySelectorAll(n[o]);if(e.matches(n[o])&&(1===i.length||Q(e,n[o])))return n[o]}catch(e){}return""}(t);if(!r)return;if(e.auto&&!B(t))return void c("submit",{form:ne(t),fields:n,found:r,title:o(document.title,120),key:D()});c("found",{selector:r,form:ne(t),newsletter:B(t),title:o(document.title,120)})}(i)}}}if(e.endpoint){if(document.addEventListener("input",function(e){ce(e.target)&&-1===ie.indexOf(e.target)&&ie.push(e.target)},!0),document.addEventListener("click",function(e){var t=e.target&&e.target.closest?e.target.closest('button, [role="button"], input[type="button"], input[type="submit"], a'):null,n=t&&!t.closest("form")&&ie.length?ue(t,!0):null;n&&(ae={box:n,time:Date.now()})},!0),document.addEventListener("keydown",function(e){var t="Enter"===e.key&&ce(e.target)?ue(e.target):null;t&&(ae={box:t,time:Date.now()})},!0),window.fetch){var me=window.fetch;window.fetch=function(e,t){try{le("string"==typeof e?e:e&&e.url||"",t&&t.body)}catch(e){}return me.apply(this,arguments)}}if(window.XMLHttpRequest){var fe=window.XMLHttpRequest.prototype.open,de=window.XMLHttpRequest.prototype.send;window.XMLHttpRequest.prototype.open=function(e,t){return this.dealrootUrl=t,fe.apply(this,arguments)},window.XMLHttpRequest.prototype.send=function(e){try{le(this.dealrootUrl,e)}catch(e){}return de.apply(this,arguments)}}}function pe(e){var t=parseFloat(e.value),n=parseFloat(e.shipping),r=Array.isArray(e.items)?e.items:[],o=0,i=r.length>0;return r.forEach(function(e){var t=e?parseFloat(e.price):NaN,n=e&&e.quantity?parseFloat(e.quantity):1;isNaN(t)?i=!1:o+=t*(n>0?n:1)}),t>0&&n>0&&i&&Math.abs(o-t)<.01?Math.round(100*(t+n))/100:e.value}var we=null,he=/(checkout|kasse|warenkorb|bestell|zahlung|payment|commande|caisse|panier|pedido|pago|carrito|ordine|cassa|carrello|afrekenen|winkelwagen|zamowienie|koszyk|oformlen|zakaz|korzin)/i,ye=/(name|vorname|nachname|prénom|nombre|nome|imię|imie|voornaam|naam|имя|фамил|прізв|mail|phone|tel|mobil|handy|телефон)/i;function ve(e){if(!e||"object"!=typeof e)return null;var t=Array.isArray(e.address)?e.address[0]:e.address,n=t?[t.first_name,t.last_name].filter(Boolean).join(" "):e.name||"",r=Array.isArray(e.email)?e.email[0]:e.email||e.email_address||"",i=Array.isArray(e.phone_number)?e.phone_number[0]:e.phone_number||e.phone||"";return r||i?{name:o(n,191),email:o(r,191),phone:o(i,64)}:null}function ge(){var e=he.test(location.pathname),t=null;return Array.prototype.forEach.call(document.forms,function(n){if(!t&&(e||he.test(N(n)))&&!F(n)){var r=O(n).filter(function(e){return""!==String(e.value).trim()&&"hidden"!==e.type&&("email"===e.type||"tel"===e.type||ye.test(e.name+" "+e.label))}).slice(0,8);r.some(function(e){return"email"===e.type||"tel"===e.type||/@/.test(e.value)})&&(t=r)}}),t}var be="";function _e(){var e=ge(),t=e?JSON.stringify(e):"";e&&t!==be&&(be=t,c("contact",{fields:e,key:D()}))}function ke(e){!function(e){if(e&&"object"==typeof e){var t="set"===e[0]&&"user_data"===e[1]?ve(e[2]):null;!(t=t||ve(e.user_data)||ve(e.ecommerce&&e.ecommerce.customer))&&"event"===e[0]&&e[2]&&"object"==typeof e[2]&&(t=ve(e[2].user_data)),t&&(we=t)}}(e);var t=function(e){if(!e||"object"!=typeof e)return null;if("event"===e[0]&&"purchase"===e[1]&&e[2]&&"object"==typeof e[2])return{number:e[2].transaction_id,value:pe(e[2]),currency:e[2].currency,items:e[2].items};var t=e.ecommerce;if(!t||"object"!=typeof t)return null;if("purchase"===e.event&&t.transaction_id)return{number:t.transaction_id,value:pe(t),currency:t.currency,items:t.items};var n=t.purchase;return n&&n.actionField&&n.actionField.id?{number:n.actionField.id,value:n.actionField.revenue,currency:t.currencyCode,items:n.products}:null}(e),n=t?o(t.number,64):"",r=t?parseFloat(t.value):0;if(n&&r>0&&(Ve(),!function(e){try{var t=JSON.parse(window.localStorage.getItem("dealroot_o")||"[]");if(-1!==t.indexOf(e))return!0;t.push(e),window.localStorage.setItem("dealroot_o",JSON.stringify(t.slice(-20)))}catch(e){}return!1}(n))){var i=(Array.isArray(t.items)?t.items:[]).slice(0,20).map(function(e){var t=e&&(e.item_name||e.name||e.item_id||e.id),n=e&&parseInt(e.quantity,10);return o((n>1?n+" × ":"")+(t||""),200)}).filter(Boolean);c("order",{number:n,value:r,currency:o(t.currency,3),items:i,key:$(),customer:we||{},fields:ge()||[]})}}e.endpoint&&e.orders&&function(){var e=window.dataLayer=window.dataLayer||[],t=0;function n(){for(;t<e.length;t++)try{ke(e[t])}catch(e){}}n();var r=0,o=window.setInterval(function(){n(),++r>=30&&window.clearInterval(o)},1e3);window.addEventListener("pagehide",n),window.addEventListener("pagehide",_e),window.addEventListener("blur",function(){window.setTimeout(function(){document.activeElement&&"IFRAME"===document.activeElement.tagName&&_e()},0)})}(),e.endpoint&&e.stats&&document.body&&document.body.classList.contains("woocommerce-order-received")&&Ve();var Se={hubspot:/(^|\.)(hsforms\.(com|net)|hubspot\.com|hubspotusercontent[\w-]*\.net)$/,tally:/^tally\.so$/,typeform:/(^|\.)typeform\.com$/,calendly:/^calendly\.com$/};function Ee(e,t){try{return Se[t].test(new URL(e).hostname)}catch(e){return!1}}function Le(e,t,n,r){(r=r.filter(function(e){return""!==e.value})).length&&c("submit",{embed:e,id:o(t,64),form:o(n,191),fields:r.slice(0,50)})}function Ce(e,t,n){return n=Array.isArray(n)?n.join(", "):n,{name:o(e,191),label:o(t||e,200),type:/e-?mail/i.test(e)?"email":"",value:o(null==n?"":n,5e3)}}var Ae={started:{},sent:{},hooked:{}};function xe(t,n){!Ae.started[t]&&e.clicks&&(Ae.started[t]=!0,c("click",{type:"chat",target:n,page:o(window.location.pathname,255)}))}function Oe(e){var t={},n={name:/name|nickname/i,email:/e-?mail/i,phone:/phone|tel/i,message:/message|question|frage|nachricht/i};function r(e,r){"string"==typeof r&&""!==r.trim()&&Object.keys(n).forEach(function(o){!t[o]&&n[o].test(e)&&(t[o]=r.trim())})}return(Array.isArray(e)?e:[e]).forEach(function(e){e&&"object"==typeof e&&(void 0===e.answer&&void 0===e.value?Object.keys(e).forEach(function(t){e[t]&&"object"==typeof e[t]&&!Array.isArray(e[t])?Object.keys(e[t]).forEach(function(n){r(n,e[t][n])}):r(t,e[t])}):r(String(e.label||e.name||""),String(void 0!==e.answer?e.answer:e.value)))}),t}function qe(e,t,n){var r={name:"Name",email:"Email",phone:"Phone",message:"Message",visitor:t+" visitor ID"},o=Object.keys(r).filter(function(e){return n[e]}).map(function(e){return Ce(e,r[e],n[e])}),i=e+"|"+JSON.stringify(n);o.length&&!Ae.sent[i]&&(Ae.sent[i]=!0,xe(e,t),Le(e,"chat",t+" chat",o))}function Ie(e,t,n){var r=e[t];e[t]=function(){try{"function"==typeof r&&r.apply(this,arguments)}catch(e){}n.apply(this,arguments)}}var Ne={tawkto:function(){var e=window.Tawk_API;return!(!e||"object"!=typeof e)&&(Ie(e,"onChatStarted",function(){xe("tawkto","tawk.to")}),Ie(e,"onPrechatSubmit",function(e){qe("tawkto","tawk.to",Oe(e))}),Ie(e,"onOfflineSubmit",function(e){qe("tawkto","tawk.to",Oe(e))}),!0)},tidio:function(){var e=window.tidioChatApi;return!(!e||"function"!=typeof e.on)&&(e.on("conversationStart",function(){xe("tidio","Tidio")}),e.on("messageFromVisitor",function(){xe("tidio","Tidio")}),e.on("preFormFilled",function(e){qe("tidio","Tidio",Oe(e))}),!0)},crisp:function(){var e=window.$crisp;return!(!e||"function"!=typeof e.push)&&(e.push(["on","message:sent",function(){xe("crisp","Crisp")}]),["user:email:changed","user:phone:changed","user:nickname:changed"].forEach(function(t){e.push(["on",t,function(){var t={};try{t={name:e.get("user:nickname")||"",email:e.get("user:email")||"",phone:e.get("user:phone")||""}}catch(e){}(t.email||t.phone)&&qe("crisp","Crisp",t)}])}),!0)},livechat:function(){var e=window.LiveChatWidget;return!(!e||"function"!=typeof e.on)&&(e.on("new_event",function(e){e&&e.author&&"customer"===e.author.type&&xe("livechat","LiveChat")}),e.on("form_submitted",function(){try{var t=e.get("customer_data")||{};qe("livechat","LiveChat",{name:t.name||"",email:t.email||""})}catch(e){}}),!0)},drift:function(){var e=window.drift;return!(!e||"function"!=typeof e.on)&&(e.on("ready",function(){e.on("startConversation",function(){xe("drift","Drift")}),e.on("emailCapture",function(e){qe("drift","Drift",{email:e&&e.data&&e.data.email?String(e.data.email):""})})}),!0)},intercom:function(){var e=window.Intercom;return"function"==typeof e&&(e("onUserEmailSupplied",function(){var t="";try{t=String(e("getVisitorId")||"")}catch(e){}qe("intercom","Intercom",{visitor:t||"yes"})}),!0)},hubspot:function(){var e=window.HubSpotConversations;return!(!e||"function"!=typeof e.on)&&(e.on("conversationStarted",function(){xe("hubspot","HubSpot")}),!0)}};var je='[role="search"], .search-form, .comment-form, #commentform, #loginform, .woocommerce-form-login, form.checkout, form.woocommerce-cart-form',Fe=[];function De(){return p||!!e.stats||!!e.dataLayer}function $e(t,n){for(var r=0;r<Fe.length;r++)if(Fe[r].form===t)return Fe[r];return n&&function(t){try{if(t.matches(je))return!1;if(t.matches(L)||I(t,e.forms))return!0}catch(e){}return!!t.querySelector('input[type="email"], input[type="tel"], textarea')}(t)?(Fe.push({form:t,field:"",reported:!1}),Fe[Fe.length-1]):null}window.dealroot=window.dealroot||{},window.dealroot.stuckForm=function(){for(var e=Fe.length-1;e>=0;e--)if(!Fe[e].reported&&Fe[e].form.isConnected)return{form:o(N(Fe[e].form),191),field:Fe[e].field};return null};var ze=[["cf7",".wpcf7-form","input:_wpcf7"],["wpforms",".wpforms-form","data-formid"],["gravityforms",".gform_wrapper form","input:gform_submit"],["formidable",".frm-show-form","input:form_id"],["forminator",".forminator-custom-form","data-form-id"],["jetformbuilder",".jet-form-builder","data-form-id"],["everestforms",".everest-form","data-formid"],["wsform",".wsf-form","data-id"],["sureforms",".srfm-form","form-id"],["happyforms",'form[id^="happyforms-form-"]',"input:happyforms_form_id"],["kadence",".kb-advanced-form","input:_kb_adv_form_post_id"],["mc4wp",".mc4wp-form","data-id"],["mailpoet",".mailpoet_form","input:data[form_id]"],["ultimatemember",".um-register form","input:form_id"]];function Te(e){for(var t=0;t<ze.length;t++)if(e.matches(ze[t][1])){var n=ze[t][2],r=0===n.indexOf("input:")?e.querySelector('input[name="'+n.slice(6)+'"]'):null,o=r?r.value:e.getAttribute(n)||"";return/^\d+$/.test(o)?ze[t][0]+":"+o:""}return""}function Re(e){var t=Date.now();return Fe.filter(function(n){return!n.reported&&n.pressed&&t-n.pressed<=e})}function Me(e){var t=e?$e(e,!0):null;!t||e.checkValidity&&!e.checkValidity()||(t.pressed=Date.now())}function Ue(e,t){t.form=o(N(e),191),t.source=Te(e),c("form",t)}function He(n){var r=$e(n,!0);if(r&&!r.reported&&(r.reported=!0,d("dealroot_form_sent"),function(n){if(!e.dataLayer)return;var r=p?i(t):null,a=r&&r.f?r.f:{},c=r&&r.l?r.l:a,u=["gclid","gbraid","wbraid","msclkid","fbclid","ttclid","li_fat_id"].filter(function(e){return c[e]||a[e]})[0]||"",s=c.ref?String(c.ref).replace(/^https?:\/\//,"").split("/")[0]:"";(window.dataLayer=window.dataLayer||[]).push({event:"generate_lead",lead_source:p?c.utm_source||s||"direct":"",dealroot:{form:o(N(n),191),form_id:Te(n),source:c.utm_source||s,medium:c.utm_medium||"",campaign:c.utm_campaign||"",keyword:c.utm_term||"",click_id:u,first_source:a.utm_source||(a.ref?String(a.ref).replace(/^https?:\/\//,"").split("/")[0]:""),landing_page:a.lp||""}})}(n),e.stats)){if(e.checkout&&M(n)){var a=o(N(n),191),u=o(e.payment||"Payment",191);return c("form",{form:a,source:Te(n),sent:!1,field:u}),void Je(n,u)}Ue(n,{sent:!0})}}function Je(e,t){try{window.sessionStorage.setItem("dealroot_pay",JSON.stringify({form:o(N(e),191),source:Te(e),field:t,at:Date.now()}))}catch(e){}}function Ve(){var e=null;try{e=JSON.parse(window.sessionStorage.getItem("dealroot_pay")||"null"),window.sessionStorage.removeItem("dealroot_pay")}catch(e){}e&&e.form&&Date.now()-e.at<864e5&&c("form",{form:e.form,source:e.source||"",sent:!0,paid:!0,field:e.field||""})}function Pe(e){var t=e.target,n=t&&("FORM"===t.tagName?t:t.querySelector&&t.querySelector("form"));De()&&n&&He(n)}if(e.endpoint){if(document.addEventListener("focusin",function(e){var t=e.target,n=t&&t.form;if(De()&&n&&t.name&&-1===C.indexOf((t.type||"").toLowerCase())){var r=$e(n,!0);r&&(r.field=A(t,n))}}),document.addEventListener("submit",function(e){var t=e.target;De()&&t&&t.closest&&!t.closest(".wpcf7")&&He(t)},!0),document.addEventListener("click",function(e){var t=De()&&e.target&&e.target.closest?e.target.closest(oe):null;t&&"reset"!==(t.type||"").toLowerCase()&&Me(t.form||t.closest("form"))},!0),document.addEventListener("keydown",function(e){var t=e.target;De()&&"Enter"===e.key&&t&&t.form&&"TEXTAREA"!==t.tagName&&Me(t.form)},!0),document.addEventListener("wpcf7mailsent",Pe),window.addEventListener("message",function(e){var t=e.data;if(!t||"hsFormCallback"!==t.type||"onFormSubmitted"!==t.eventName||e.origin!==window.location.origin&&!Ee(e.origin,"hubspot"))if("string"==typeof t&&-1!==t.indexOf("Tally.FormSubmitted")&&Ee(e.origin,"tally")){var n;try{n=JSON.parse(t).payload||{}}catch(e){return}Le("tally",n.formId,n.formName||"Tally",(n.fields||[]).map(function(e){var t=e.answer&&"object"==typeof e.answer?e.answer.value:e.answer;return Ce(e.id||"",e.title,t)}))}else t&&"form-submit"===t.type&&t.responseId&&Ee(e.origin,"typeform")?Le("typeform",t.formId,"Typeform",[Ce("response_id","Typeform response",t.responseId)]):t&&"calendly.event_scheduled"===t.event&&Ee(e.origin,"calendly")&&Le("calendly","","Calendly",[Ce("booking","Calendly booking",t.payload&&t.payload.invitee&&t.payload.invitee.uri||"booked")]);else{var r=t.data&&t.data.submissionValues||{};Le("hubspot",t.id,"HubSpot",Object.keys(r).map(function(e){return Ce(e,e,r[e])}))}}),window.addEventListener("hs-form-event:on-submission:success",function(e){var t=window.HubSpotFormsV4,n=t&&t.getFormFromEvent?t.getFormFromEvent(e):null;n&&n.getFormFieldValues&&Promise.resolve(n.getFormFieldValues()).then(function(t){Le("hubspot",e.detail&&e.detail.formId,"HubSpot",(t||[]).map(function(e){var t=String(e.name||"").replace(/^\d+-\d+\//,"");return Ce(t,t,e.value)}))}).catch(function(){})}),function(){var e=0;function t(){Object.keys(Ne).forEach(function(e){if(!Ae.hooked[e])try{Ae.hooked[e]=Ne[e]()}catch(t){Ae.hooked[e]=!0}}),++e<30&&Object.keys(Ne).some(function(e){return!Ae.hooked[e]})&&window.setTimeout(t,2e3)}document.addEventListener("tidioChat-ready",t),t()}(),document.addEventListener("wpcf7mailfailed",Pe),window.HTMLFormElement&&"function"==typeof window.HTMLFormElement.prototype.submit){var Be=window.HTMLFormElement.prototype.submit;window.HTMLFormElement.prototype.submit=function(){try{U(this),!De()||this.closest&&this.closest(".wpcf7")||He(this)}catch(e){}return Be.apply(this,arguments)}}window.addEventListener("pagehide",function(){e.stats&&(Re(1e4).forEach(function(e){He(e.form)}),Fe.forEach(function(t){t.reported||(t.reported=!0,Ue(t.form,{sent:!1,field:o(t.field,191)}),e.checkout&&M(t.form)&&Je(t.form,o(t.field,191)))}))})}}();
  • dealroot/trunk/dealroot.php

    r3846894 r3846962  
    44 * Plugin URI:        https://dealroot.net/docs/
    55 * Description:       See where every lead comes from, follow it to a sale, and get notified the moment it arrives.
    6  * Version:           1.3.3
     6 * Version:           1.3.4
    77 * Requires at least: 6.8
    88 * Requires PHP:      7.4
    … …  
    1919defined( 'ABSPATH' ) || exit;
    2020
    21 define( 'DEALROOT_VERSION', '1.3.3' );
     21define( 'DEALROOT_VERSION', '1.3.4' );
    2222define( 'DEALROOT_FILE', __FILE__ );
    2323define( 'DEALROOT_DIR', plugin_dir_path( __FILE__ ) );
  • dealroot/trunk/readme.txt

    r3846906 r3846962  
    55Tested up to: 7.2
    66Requires PHP: 7.4
    7 Stable tag: 1.3.3
     7Stable tag: 1.3.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    7272* [Track UTM parameters and gclid in Gravity Forms](https://www.youtube.com/watch?v=Ui5DY_5ofd8)
    7373* [Track UTM parameters and gclid in Elementor Pro forms](https://www.youtube.com/watch?v=t2ep9aILDz8)
     74* [Track UTM parameters and gclid in Fluent Forms](https://www.youtube.com/watch?v=aHRs97LCZH0)
     75* [Track UTM parameters and gclid in Ninja Forms](https://www.youtube.com/watch?v=snMXcDCWsrk)
     76* [Track UTM parameters and gclid in Forminator](https://www.youtube.com/watch?v=wTGSL3jPsKE)
    7477* [See the Google Ads keyword of every lead](https://www.youtube.com/watch?v=nL99fhhObZo)
    7578* [Send won leads to Google Ads as offline conversions](https://www.youtube.com/watch?v=I7x5GIK5Fak)
    … …  
    232235
    233236== Changelog ==
     237
     238= 1.3.4 =
     239* Fix: forms of Fluent Forms 6 are recognised in the browser again. Their entries were saved as a form without a form plugin and the form showed up twice on the Forms screen; now they are saved as Fluent Forms leads, with the fields Fluent Forms knows.
     240* Fix: the form scan recognises forms of Ninja Forms and MetForm. It listed them as forms without a form plugin, which then saved each enquiry a second time.
    234241
    235242= 1.3.3 =
Note: See TracChangeset for help on using the changeset viewer.