PageSourceSearch

https://bagisto.com/wp-content/plugins/bagisto-page-builder//assets/dist/js/bpd-front.min.js?ver=v1.1.0

js bagisto.com collected 2026-10-02 14:59:21 UTC 6,749 bytes, 1 lines download raw bytes

1var elementExist=e=>null!=e||null!=e,tooltip=document.querySelectorAll(".bpd-builder-block-tooltip");tooltip&&tooltip.forEach(e=>{e.remove()}),document.addEventListener("DOMContentLoaded",()=>{!function(){let e=document.querySelectorAll(".schema-faq");e&&e.forEach(e=>{if(e.classList.contains("bs-opened-schema-faq")){return void e.querySelectorAll(".schema-faq-question").forEach((e,t)=>{e.setAttribute("data-index",`0${t+1}`)})}let t=e.querySelectorAll(".schema-faq-answer");t&&t.forEach(e=>{e.style.height=`${e.offsetHeight}px`,e.classList.add("disable")});let r="",a="";e.querySelectorAll(".schema-faq-section").forEach(e=>{e.addEventListener("click",function(t){const i=e.querySelector(".schema-faq-question");if(i&&(t.target===i||e.contains(t.target))){let t=e.querySelector(".schema-faq-answer");t&&(i.classList.contains("active")?(i.classList.remove("active"),t.classList.add("disable"),a="",r=""):(i.classList.add("active"),r&&r.classList.remove("active"),t.classList.remove("disable"),a&&a.classList.add("disable"),r=i,a=t))}})})})}();const e=document.querySelector(".bpd-jumbotron-slider");if(e){const t=e.querySelector(".bpd-row-grid");if(t){!function(t,r){for(let a=0;a<r;a++){const r=t.cloneNode(!0);e.appendChild(r)}}(t,1)}}let t=document.querySelectorAll(".bpd-response-viewer");if(t.length){const e=t[0],r=t[1],a=e.querySelectorAll(".bpd-response-tab"),i=e.querySelectorAll(".bpd-response-section"),c=e.querySelector(".bpd-response-content"),n=r.querySelectorAll(".bpd-response-section"),o=r.querySelector(".bpd-response-content");t.forEach(e=>{const t=e.querySelector(".bpd-response-code"),r=e.querySelector(".bpd-response-content");t&&t.addEventListener("click",()=>{const e=r.getAttribute("data-code");if(e)if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(e).then(()=>{t.classList.add("copied"),setTimeout(()=>t.classList.remove("copied"),2e3)}).catch(e=>console.error("Clipboard write failed: ",e));else{const r=document.createElement("textarea");r.value=e,document.body.appendChild(r),r.select();try{document.execCommand("copy"),t.classList.add("copied"),setTimeout(()=>t.classList.remove("copied"),2e3)}catch(e){console.error("Fallback copy failed: ",e)}document.body.removeChild(r)}})}),a.forEach((e,t)=>{e.addEventListener("click",()=>{a.forEach(e=>e.classList.remove("active")),i.forEach(e=>e.classList.remove("active")),c.setAttribute("data-code",i[t].getAttribute("data-curr-code")),e.classList.add("active"),i[t].classList.add("active"),n.forEach(e=>e.classList.remove("active")),n[t]&&(n[t].classList.add("active"),o.setAttribute("data-code",n[t].getAttribute("data-curr-code")))})})}}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".bpd-pricing-tabs");e&&e.length&&e.forEach(function(e){var t=Array.prototype.slice.call(e.querySelectorAll('[role="tab"]')),r=e.querySelector(".bpd-pricing-tab-content");if(t.length&&r){var a=null,i={},c={};t.forEach(function(e,r){e.addEventListener("click",function(){o(e,!1)}),e.addEventListener("keydown",function(a){var i=null;switch(a.key){case"ArrowRight":case"ArrowDown":i=(r+1)%t.length;break;case"ArrowLeft":case"ArrowUp":i=(r-1+t.length)%t.length;break;case"Home":i=0;break;case"End":i=t.length-1;break;case"Enter":case" ":case"Spacebar":return a.preventDefault(),void o(e,!1);default:return}a.preventDefault(),o(t[i],!0)})}),o(t.filter(function(e){return"true"===e.getAttribute("aria-selected")})[0]||t[0],!1)}function n(e,t){e.classList.add("bpd-pt-iframe");e.addEventListener("load",function(){e.classList.add("is-loaded"),a&&t.getAttribute("data-tab-id")===a.id&&r.classList.remove("is-loading")})}function o(e,o){if(e!==a){a=e;for(var s=t.indexOf(e)+1,l=document.querySelectorAll(".bs-pricing-table"),d=0;d<l.length;d++){for(var u=l[d],f=u.className.split(" "),p=null,b=0;b<f.length;b++)if(0===f[b].indexOf("bs-linked-pricing-tab-")){p=f[b];break}p&&(u.style.display=p==="bs-linked-pricing-tab-"+s?"":"none")}t.forEach(function(t){var r=t===e;t.setAttribute("aria-selected",r?"true":"false"),t.setAttribute("tabindex",r?"0":"-1"),t.classList.toggle("is-active",r)}
1),r.setAttribute("aria-labelledby",e.id),Object.keys(i).forEach(function(e){i[e].style.display="none"});var v=e.id;if(i[v]){var m=i[v];m.style.display="block";var h=m.querySelector("iframe");h&&h.classList.contains("is-loaded")?r.classList.remove("is-loading"):h||c[v]?r.classList.add("is-loading"):r.classList.remove("is-loading")}else{var y=document.createElement("div");y.className="bpd-pricing-tab-pane",y.style.display="block",y.setAttribute("data-tab-id",v);var g=e.getAttribute("data-embed")||"";y.innerHTML=g,r.appendChild(y),i[v]=y,r.classList.add("is-loading"),y.querySelectorAll("script").forEach(function(e){var t=document.createElement("script");if(Array.prototype.slice.call(e.attributes).forEach(function(e){t.setAttribute(e.name,e.value)}),e.innerHTML&&(t.innerHTML=e.innerHTML),e.src)try{var r=new URL(e.src,window.location.href).origin;if(!document.querySelector('link[rel="preconnect"][href="'+r+'"]')){var a=document.createElement("link");a.rel="preconnect",a.href=r,document.head.appendChild(a)}if(!document.querySelector('link[rel="dns-prefetch"][href="'+r+'"]')){var i=document.createElement("link");i.rel="dns-prefetch",i.href=r,document.head.appendChild(i)}}catch(e){}e.parentNode.replaceChild(t,e)}),function(e,t){var r=e.querySelector("iframe");if(r)n(r,e);else if("undefined"!=typeof MutationObserver){var a=new MutationObserver(function(){var r=e.querySelector("iframe");r&&(a.disconnect(),delete c[t],n(r,e))});c[t]=a,a.observe(e,{childList:!0,subtree:!0})}}(y,v),setTimeout(function(){a&&a.id===v&&r.classList.remove("is-loading")},8e3)}o&&e.focus()}else o&&e.focus()}})}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".bpd-cpa-accordion");e&&e.length&&e.forEach(function(e){var t=e.querySelector(".bpd-cpa-acc__trigger"),r=e.querySelector(".bpd-cpa-acc__panel");t&&r&&("true"===e.getAttribute("data-default-open")?a():i(),t.addEventListener("click",c),t.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||(e.preventDefault(),c()),"Escape"===e.key&&(i(),t.focus())}));function a(){t.setAttribute("aria-expanded","true"),r.removeAttribute("hidden"),r.offsetHeight,r.style.maxHeight=r.scrollHeight+"px",setTimeout(function(){"true"===t.getAttribute("aria-expanded")&&(r.style.maxHeight="none")},400)}function i(){t.setAttribute("aria-expanded","false"),r.style.maxHeight=r.scrollHeight+"px",r.offsetHeight,r.style.maxHeight="0",setTimeout(function(){"false"===t.getAttribute("aria-expanded")&&(r.setAttribute("hidden",""),r.style.maxHeight=null)},400)}function c(){"true"===t.getAttribute("aria-expanded")?i():a()}})});

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.