(()=>{document.addEventListener("DOMContentLoaded",function(){var e=[].slice.call(document.querySelectorAll("#myTab a"));e.forEach(function(e){var t=new bootstrap.Tab(e);e.addEventListener("click",function(e){e.preventDefault(),t.show()})})});var e,t,n,s,o,i,r,l,d,u,h=document.querySelectorAll('[data-bs-toggle="tooltip"]'),m=[...h].map(e=>new bootstrap.Tooltip(e)),a=document.getElementsByClassName("card"),c=160;if(window.innerWidth<1200)for(e=0;e<a.length;e++)s=a[e].getElementsByClassName("card-title")[0],o=a[e].getElementsByClassName("card-text")[0],n=s.textContent,l=o.textContent,i=n+" "+l,i.length>c&&(t=i.substring(0,c)+"...",r=Math.min(n.length,t.length),d=t.substring(0,r),u=t.substring(r),s.textContent=d,o.textContent=u);document.addEventListener("DOMContentLoaded",function(){var t=document.querySelectorAll("[id^='checkSupport_']"),n=document.querySelectorAll("[id^='checkConsulting_']");function e(e){var t=document.getElementById("checkSupport_"+e),o=document.getElementById("checkConsulting_"+e),i=parseFloat(t.getAttribute("data-base-price")),a=parseFloat(t.getAttribute("data-support-price")),r=document.getElementById("myLink_"+e),c=document.getElementById("totalPrice_"+e),n="https://purchase.groupdocs.com/buy/cart?ppId="+e,s=i;t.checked&&(n+="&paidSupport=true",s+=a),o.checked&&(n+="&paidConsulting=true",s+=5999),r.href=n,c.innerText=s.toFixed(2)}t.forEach(function(t){t.addEventListener("change",function(){e(t.getAttribute("data-pp-id"))}),e(t.getAttribute("data-pp-id"))}),n.forEach(function(t){t.addEventListener("change",function(){e(t.getAttribute("data-pp-id"))}),e(t.getAttribute("data-pp-id"))})})})()