PageSourceSearch

https://www.freelo.io/dist/main.js?v=tltff4

js freelo.io collected 2026-09-24 10:12:01 UTC 18,201 bytes, 1 lines download raw bytes

1"use strict";window.FreeloModal=function(){var e={},t={onOpen:{},onClose:{}},n=0,o=0;function i(){if(--n<=0){n=0,document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.overflow="";var e=document.documentElement,t=e.style.scrollBehavior;e.style.scrollBehavior="auto",window.scrollTo(0,o),e.style.scrollBehavior=t}}function r(i,r){r=r||{};var a=document.getElementById(i);if(a&&"DIALOG"===a.tagName){r.videoUrl&&(e[i]=r.videoUrl),0===n&&(o=window.scrollY,document.body.style.position="fixed",document.body.style.top="-"+o+"px",document.body.style.left="0",document.body.style.right="0",document.body.style.overflow="hidden"),n++,a.showModal();var l=t.onOpen[i];l&&l(a,r);var c=a.querySelector('input:not([type="hidden"]), textarea');c&&setTimeout(function(){c.focus()},100)}else console.warn("Modal not found:",i)}function a(e,n,o){"open"===n?t.onOpen[e]=o:"close"===n&&(t.onClose[e]=o)}function l(){for(var e=document.querySelectorAll("dialog.modal"),n=0;n<e.length;n++)(function(e){e.addEventListener("click",function(t){t.target===e&&e.close()}),e.addEventListener("close",function(){document.activeElement&&e.contains(document.activeElement)&&document.activeElement.blur(),i(),requestAnimationFrame(function(){window.scrollTo(0,document.documentElement.scrollTop)});var n=t.onClose[e.id];n&&n(e)})})(e[n]);for(var o=document.querySelectorAll("[data-modal-open]"),a=0;a<o.length;a++)(function(e){e.addEventListener("click",function(t){t.preventDefault(),r(e.dataset.modalOpen,{videoUrl:e.dataset.video})})})(o[a])}function c(){a("videoModal","open",function(t,n){var o=n.videoUrl||e.videoModal;if(o){var i=t.querySelector(".embed-responsive");if(i){var r=document.createElement("iframe");r.setAttribute("width","100%"),r.setAttribute("height","500"),r.setAttribute("src",o),r.setAttribute("frameborder","0"),r.setAttribute("allow","accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"),r.setAttribute("allowfullscreen",""),i.innerHTML="",i.appendChild(r)}}}),a("videoModal","close",function(t){var n=t.querySelector(".embed-responsive");n&&(n.innerHTML=""),delete e.videoModal})}return"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){l(),c()}):(l(),c()),{open:r,close:function(n){var o=document.getElementById(n);if(o&&"DIALOG"===o.tagName){o.close();var i=t.onClose[n];i&&i(o),delete e[n]}},getVideoUrl:function(t){return e[t]},on:a,init:l}}(),window.openModal=FreeloModal.open,window.closeModal=FreeloModal.close,function(){function e(){document.querySelectorAll("[data-hs-input-number]").forEach(function(e){var t=e.querySelector("[data-hs-input-number-input]"),n=e.querySelector("[data-hs-input-number-decrement]"),o=e.querySelector("[data-hs-input-number-increment]");t&&(n&&n.addEventListener("click",function(e){e.preventDefault(),t.stepDown(),t.dispatchEvent(new Event("change",{bubbles:!0}))}),o&&o.addEventListener("click",function(e){e.preventDefault(),t.stepUp(),t.dispatchEvent(new Event("change",{bubbles:!0}))}))})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}(),$(function(){var e=jQuery;e(".js-register-form").on("submit",function(t){t.preventDefault();var n=e(this),o=n.find("input[type=submit]"),i=n.find("input[type=email]")[0];if(i){var r=i.value.trim(),a=[];try{a=JSON.parse(i.getAttribute("data-nette-rules")||"[]")}catch(e){}var l=null;if(r){if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)){l="Zkontroluj prosím, zda je e-mail správně.";for(c=0;c<a.length;c++)if(":email"===a[c].op){l=a[c].msg;break}}}else{l="Vyplň prosím emailovou adresu, např. [email protected]";for(var c=0;c<a.length;c++)if(":filled"===a[c].op){l=a[c].msg;break}}if(l){n.parent().find("ul.error").remove();var d=e("<ul/>",{class:"error"});return d.append(e("<li/>").text(l)),void d.insertBefore(n)}}n.parent().find("ul.error").remove();var s=n.find(".cf-turnstile")[0];if(s&&"undefined"!=typeof turnstile&&!turnstile.getResponse(s)){var u=e("<ul/>",{class:"error"});return u.append(e("<li/>").text("Please complete the verification below.")),void u.insertBefore(n)}n.data("button-submit-text")&&o.val(n.data("button-submit-text")),e.ajax({type:"post",url:e(this).attr("action"),data:e(this).serialize(),success:function(t){if(t.hasOwnProperty("errors")&&t.errors.length>0){var o=e("<ul/>",{class:"error"});e.each(t.errors,function(t,n){o.append(e("<li/>").text(n))}),n.parent().find("ul.error").remove(),o.insertBefore(n)}t.hasOwnProperty("redirect")&&(window.location.href=t.redirect)}})}),e.nette.init(),setTimeout(function(){var e=document.getElementById("app-data");e&&(e.style.display="",e.style.opacity="0",e.animate([{opacity:0}
1,{opacity:1}],{duration:1500,fill:"forwards"}).onfinish=function(){setTimeout(function(){e.animate([{opacity:1},{opacity:0}],{duration:1500,fill:"forwards"}).onfinish=function(){e.style.display="none"}},8e3)})},5e3)}),function(){for(var e=document.querySelectorAll(".js-youtube-custom"),t=0;t<e.length;t++)(function(t){var n=e[t],o="https://img.youtube.com/vi/"+n.dataset.embed+"/sddefault.jpg",i=new Image;i.src=o,i.addEventListener("load",function(){n.appendChild(i)}),null!=n.dataset.imageAlt&&(i.alt=n.dataset.imageAlt,n.removeAttribute("data-image-alt")),n.addEventListener("click",function(){var e=document.createElement("iframe");e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen",""),e.setAttribute("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"),e.setAttribute("title","YouTube video"),e.setAttribute("src","https://www.youtube.com/embed/"+this.dataset.embed+"?rel=0&showinfo=0&autoplay=1"),this.innerHTML="",this.appendChild(e)})})(t)}(),document.addEventListener("DOMContentLoaded",function(){if(document.getElementById("js-pricing-people")){function n(){var e=parseInt(document.getElementById("js-pricing-people").value),t=Number(document.getElementById("js-pricing-hour-rate").value),n=e*(t/2)*20,o=JSON.parse(document.getElementById("js-pricing-calculator").dataset.placeholders),i=document.getElementById("js-pricing-calculator").dataset.currencySign,r=o.good,a=document.getElementById("js-pricing-hour-rate").dataset.isCz;0===e&&(r=o.you_are_alone),t<=0&&(r=o.bad_luck),(a&&n>1e4||!a&&n>500)&&(r=o.great),(a&&n>15e3||!a&&n>750)&&(r=o.cool),(a&&n>2e4||!a&&n>1e3)&&(r=o.hmm),(a&&n>3e4||!a&&n>1500)&&(r=o.perfect),(a&&n>4e4||!a&&n>2e3)&&(r=o.wow),(a&&n>1e5||!a&&n>5e3)&&(r=o.woho),(a&&n>12e4||!a&&n>6e3)&&(r=o.super),(a&&n>16e4||!a&&n>8e3)&&(r=o.miracle),document.getElementById("js-pricing-wow-text").innerHTML=r;var l=Number(n.toFixed(0)).toLocaleString();document.getElementById("js-pricing-usetris").innerHTML=l+" "+i}document.addEventListener("propertychange",n,!1),document.addEventListener("change",n,!1),document.addEventListener("click",n,!1),document.addEventListener("keyup",n,!1),document.addEventListener("input",n,!1),document.addEventListener("paste",n,!1),n()}for(var e=document.querySelectorAll(".js-b_p2"),t=0;t<e.length;t++)e[t].value=6},!1),document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("js-pricing-business-people"),t=!1;if(e){function u(){return parseInt(document.getElementById("js-pricing-business-people").value)}let m=JSON.parse(document.getElementById("js-pricing-business-prices").dataset.prices);var n=u(),o=1,i=0,r=0,a=0,l=0,c=e.dataset.isCz;function v(e){var t=1.21;return{totalCZKWithVAT:e.totalCZK*t,totalCZKYearlyWithVAT:e.totalCZKYearly*t,totalEURWithVAT:e.totalEUR*t,totalEURYearlyWithVAT:e.totalEURYearly*t}}function f(t,o,i,r,a,l,c,d){var s=e.dataset.currencySign,u=document.getElementById("pricing-yearly-switch-checkbox").checked,m=document.getElementById("pricing-vat-switch-checkbox").checked,v=m?1.21:1;function f(e){if(m)return Math.round(e).toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0});var t=Math.round(100*e)/100,n=Math.abs(t-Math.round(t))>1e-4?2:0;return t.toLocaleString(void 0,{minimumFractionDigits:n,maximumFractionDigits:n})}var p=(u?l:a)*v,h=document.getElementById("js-pricing-business-per-user-price");h&&(h.innerHTML=f(p)+" "+s);var y=f((a-l)*v*n*12)+" "+s,g=document.getElementById("js-pricing-annual-savings-amount");g&&(g.innerHTML=y);var E=document.getElementById("js-pricing-monthly-loss-amount");E&&(E.innerHTML=y);var b=document.getElementById("js-pricing-annual-savings");b&&(b.classList.toggle("inline-block",u),b.classList.toggle("hidden",!u));var L=document.getElementById("js-pricing-monthly-loss");L&&(L.classList.toggle("inline-block",!u),L.classList.toggle("hidden",u));var w=document.getElementById("js-pricing-business-people-text");w&&(w.innerHTML=n),document.querySelectorAll("[data-pricing-business-one-user-show]").forEach(e=>{var t="true"===e.dataset.pricingBusinessOneUserShow,o=t&&1===n||!t&&1!==n;e.classList.toggle("hidden",!o)})}function p(){var e=[...new Set(Object.keys(m).map(e=>Number(e.split("/")[0])))].sort((e,t)=>
1e-t).find(e=>e>=n),t=m[e+"/1"],o=m[e+"/12"],d=12*Number(t)-Number(o);const s=v({totalCZK:i=n*t,totalCZKYearly:r=n*o,totalEUR:a=n*t,totalEURYearly:l=n*o});c?f(0,0,s.totalCZKWithVAT,s.totalCZKYearlyWithVAT,i/n,r/n):f(0,0,s.totalEURWithVAT,s.totalEURYearlyWithVAT,a/n,l/n)}function h(){n=u(),o=n<=20?1:5,e.setAttribute("step",o),p(),1===n?t&&(e.classList.remove("tw:tooltip-visible"),t=!1):y()?t||(e.classList.add("tw:tooltip-visible"),t=!0):t&&(e.classList.remove("tw:tooltip-visible"),t=!1)}function y(){return!(n<=20)&&n!==5*Math.ceil(n/5)}document.addEventListener("propertychange",h,!1),document.addEventListener("change",h,!1),document.addEventListener("click",h,!1),document.addEventListener("keyup",h,!1),document.addEventListener("input",h,!1),document.addEventListener("paste",h,!1);const g=document.getElementById("pricing-vat-switch-checkbox");g&&g.addEventListener("change",function(){h()});const E=document.getElementById("pricing-yearly-switch-checkbox");E&&E.addEventListener("change",function(){h()});var d=e.parentElement.querySelector("button:not(.plus)"),s=e.parentElement.querySelector("button.plus");d&&(d.onclick=function(t){t.preventDefault();var n=parseInt(e.value);n>20?e.value=n<=25?20:n-5:n>1&&(e.value=n-1),h()}),s&&(s.onclick=function(t){t.preventDefault();var n=parseInt(e.value);e.value=n>=20?n+5:n+1,h()}),e.addEventListener("blur",function(){if((n=u())<1)n=1,e.value=n;else if(n>20){var t=5*Math.ceil(n/5);n!==t&&(n=t,e.value=n)}h()}),h()}},!1);var SCROLL_INTO_VIEW_OFFSET=100,SCROLL_SENSITIVITY_THRESHOLD=125;function handleScroll(e,t,n){for(var o=t,i=n,r=Object.values(e),a=0;a<r.length;a++){var l=r[a].headingElement.getBoundingClientRect();l.top<=SCROLL_SENSITIVITY_THRESHOLD?i=r[a].liElement:l.top>SCROLL_SENSITIVITY_THRESHOLD&&l.top<=-SCROLL_SENSITIVITY_THRESHOLD&&a>0&&(i=r[a-1].liElement)}return null!=o&&o!=i&&(o.classList.remove("active"),"OL"===o.parentElement.nodeName&&o.parentElement.classList.contains("collapsed")&&o.parentElement.classList.remove("in")),null!=i&&i!=o&&(i.classList.add("active"),"OL"===i.parentElement.nodeName&&i.parentElement.classList.contains("collapsed")&&i.parentElement.classList.add("in")),i}function initScrollToHrefOnAnchor(e,t){e.addEventListener("click",function(e){e.preventDefault(),document.dispatchEvent(new CustomEvent("scroll-started")),location.hash=t,window.scrollBy({top:document.querySelector(t).getBoundingClientRect().top-SCROLL_INTO_VIEW_OFFSET,behavior:"smooth"}),setTimeout(function(){document.dispatchEvent(new CustomEvent("scroll-ended"))},750)})}function initNavScrollInteractions(e){if(e){for(var t=Object.create(null),n=null,o=null,i=!1,r=e.querySelectorAll("li:not(.entry-content__nav__title)"),a=document.querySelector("article"),l=null==a?[]:a.querySelectorAll("a"),c=e.querySelectorAll(".entry-content__nav__li1").length>1,d=0;d<r.length;d++){var s=r[d].querySelector("a"),u=r[d].querySelector("ol");if(null!=s)if((v=s.getAttribute("href"))&&v.length>1&&v.startsWith("#"))try{var m=document.querySelector(v);m&&(t[v]={liElement:r[d],headingElement:m},initScrollToHrefOnAnchor(s,v))}catch(e){}null!=u&&c&&u.classList.add("collapsed")}for(d=0;d<l.length;d++){var v=(s=l[d]).getAttribute("href");try{var f=new URL(v)}catch(e){continue}null!=t[f.hash]&&initScrollToHrefOnAnchor(s,f.hash)}if(document.addEventListener("scroll-started",function(){i=!0}),document.addEventListener("scroll-ended",function(){i=!1;var e=handleScroll(t,n,o);n=e,o=e}),document.addEventListener("scroll",function(){if(!i){var e=handleScroll(t,n,o);n=e,o=e}}),""!==(f=new URL(location.href)).hash){var p=document.querySelector(f.hash);null!=p&&(document.dispatchEvent(new CustomEvent("scroll-started")),setTimeout(function(){window.scrollBy({top:p.getBoundingClientRect().top-SCROLL_INTO_VIEW_OFFSET,behavior:"smooth"}),setTimeout(function(){document.dispatchEvent(new CustomEvent("scroll-ended"))},750)},500))}}}function initPreventDefaultClick(){document.querySelectorAll(".prevent-default-click").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault()})})}initNavScrollInteractions(document.querySelector("ol.entry-content__nav__list")),initPreventDefaultClick(),function(){function e(){var e=document.querySelector(".js-gopay-pay");e&&e.addEventListener("click",function(t){t.preventDefault();var n=e.dataset.createPaymentUrl;n&&(e.disabled=!0,e.textContent="Zpracovávám...",fetch(n,{method:"GET",headers:{"X-Requested-With":"XMLHttpRequest"}}).then(function(e){if(!e.ok)throw new Error("HTTP "+e.status);return e.json()}).then(function(t){if(t.error)return e.disabled=!1,e.textContent="Zaplatit online",void alert(t.error);t.gw_url&&(window.location.href=t.gw_url)}).catch(function(){e.disabled=!1,e.textContent="Zaplatit online",alert("Nastala chyba při vytváření platby. Zkuste to prosím znovu.")}))})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}(),function(){function e(e,t){e.style.borderColor="#e74c3c";var n=e.closest(".form-field")||e.parentElement,o=n?n.querySelector(".form-field-error"):null;o&&(o.textContent=t,o.classList.remove("hidden"))}function t(e){e.style.borderColor="";var t=e.closest(".form-field")||e.parentElement,n=t?t.querySelector(".form-field-error"):null;n&&(n.classList.add("hidden"),n.textContent="")}function n(){var n=document.querySelector(".js-ares-lookup");if(n){var o=n.dataset;n.addEventListener("click",function(){var i=document.getElementById("billing_ic");if(i){var r=(i.value||"").trim();if(/^\d{8}$/.test(r)){t(i),n.disabled=!0;var a=n.textContent;n.textContent=o.tLoading;var l=o.aresUrl+(-1===o.aresUrl.indexOf("?")?"?":"&")+"ic="+encodeURIComponent(r);o.aresHash&&(l+="&r="+encodeURIComponent(o.aresHash)),fetch(l,{headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}}).then(function(e){return 429===e.status?Promise.reject(new Error("rate-limit")):e.ok?e.json():Promise.reject()}).then(function(t){if(t&&!Array.isArray(t)&&t.company){var n=function(e,t){var n=document.getElementById(e);n&&(n.value=t||"",n.dispatchEvent(new Event("input",{bubbles:!0})))};n("billing_company",t.company),n("billing_dic",t.dic),n("billing_street",t.street),n("billing_zip",t.zip),n("billing_city",t.town)}else e(i,o.tNotFound)}).catch(function(t){e(i,t&&"rate-limit"===t.message?o.tRateLimit:o.tError)}).finally(function(){n.disabled=!1,n.textContent=a})}else e(i,o.tInvalidIc)}})}}function o(){var e=document.querySelector("#is-company");e&&e.addEventListener("change",function(){e.checked||["billing_ic","billing_dic"].forEach(function(e){var n=document.getElementById(e);n&&(n.value="",t(n))})})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){n(),o()}):(n(),o())}(),function(){var e=null,t=null;function n(){(e=document.createElement("div")).className="freelo-tooltip",e.setAttribute("role","tooltip"),e.setAttribute("aria-hidden","true"),document.body.appendChild(e),document.body.classList.add("tooltips-js"),document.addEventListener("mouseover",c),document.addEventListener("mouseout",d),document.addEventListener("focusin",s),document.addEventListener("focusout",u),window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",a)}function o(e){return e&&e.closest?e.closest(".tooltip[data-tip]"):null}function i(n){t=n,e.textContent=n.getAttribute("data-tip")||"",e.dataset.placement=function(e){return e.classList.contains("tooltip-top")?"top":e.classList.contains("tooltip-left")?"left":e.classList.contains("tooltip-right")?"right":"bottom"}(n),r(),e.dataset.show="true",e.setAttribute("aria-hidden","false")}function r(){if(t&&e){var n,o,i=t.getBoundingClientRect(),r=window.innerWidth,a=window.innerHeight,l=e.dataset.placement||"bottom",c=e.offsetWidth,d=e.offsetHeight;"top"===l?(o=i.top-d-8,n=i.left+i.width/2-c/2):"left"===l?(o=i.top+i.height/2-d/2,n=i.left-c-8):"right"===l?(o=i.top+i.height/2-d/2,n=i.right+8):(o=i.bottom+8,n=i.left+i.width/2-c/2),n=Math.max(8,Math.min(n,r-c-8)),o=Math.max(8,Math.min(o,a-d-8)),e.style.left=Math.round(n)+"px",e.style.top=Math.round(o)+"px"}}function a(){e&&(e.dataset.show="false",e.setAttribute("aria-hidden","true"),t=null)}function l(){t&&r()}function c(e){var n=o(e.target);n&&n!==t&&i(n)}function d(e){if(t&&o(e.target)===t){var n=e.relatedTarget;n&&t.contains(n)||a()}}function s(e){var n=o(e.target);n&&n!==t&&i(n)}function u(e){t&&(o(e.target)===t&&a())}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",n):n()}(),function(){function e(){var e=document.querySelector(".js-gopay-status-alert");if(e){var t=e.dataset.checkUrl;if(t)var n=0,o=setInterval(function(){if(++n>=60){clearInterval(o);var i=e.dataset.fallbackText||"Nepodařilo se ověřit stav platby. Zkuste obnovit stránku, nebo nás kontaktujte na [email protected].";return e.textContent=i,e.classList.remove("alert-warning"),void e.classList.add("alert-danger")}fetch(t,{headers:{"X-Requested-With":"XMLHttpRequest"}}).then(function(e){return e.json()}).then(function(e){e.state&&-1!==["PAID","CANCELED","TIMEOUTED","REFUNDED","PARTIALLY_REFUNDED"].indexOf(e.state)&&(clearInterval(o),window.location.reload())}).catch(function(){})},3e3)}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}();

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.