PageSourceSearch

https://www.lionheart.vc/app/themes/lionheart-ventures/assets/js/489.3a80999ed30b981b85f1.min.js

js lionheart.vc collected 2026-09-29 03:03:59 UTC 10,224 bytes, 2 lines download raw bytes

1/*! For license information please see 489.3a80999ed30b981b85f1.min.js.LICENSE.txt */
2"use strict";(self.webpackChunklionheart_ventures=self.webpackChunklionheart_ventures||[]).push([[489,373],{6489:(t,e,n)=>{n.r(e),n.d(e,{Index:()=>E});var o=n(5936),r=n(9876);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var a,l,s,c,u,f,p,y=function(){return"undefined"!=typeof window},d=function(){return a||y()&&(a=window.gsap)&&a.registerPlugin&&a},v=function(t){return"string"==typeof t},h=function(t){return"function"==typeof t},m=function(t,e){var n="x"===e?"Width":"Height",o="scroll"+n,r="client"+n;return t===s||t===c||t===u?Math.max(c[o],u[o])-(s["inner"+n]||c[r]||u[r]):t[o]-t["offset"+n]},g=function(t,e){var n="scroll"+("x"===e?"Left":"Top");return t===s&&(null!=t.pageXOffset?n="page"+e.toUpperCase()+"Offset":t=null!=c[n]?c:u),function(){return t[n]}},b=function(t,e){if(!(t=f(t)[0])||!t.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var n=t.getBoundingClientRect(),o=!e||e===s||e===u,r=o?{top:c.clientTop-(s.pageYOffset||c.scrollTop||u.scrollTop||0),left:c.clientLeft-(s.pageXOffset||c.scrollLeft||u.scrollLeft||0)}:e.getBoundingClientRect(),i={x:n.left-r.left,y:n.top-r.top};return!o&&e&&(i.x+=g(e,"x")(),i.y+=g(e,"y")()),i},S=function(t,e,n,o,r){return isNaN(t)||"object"===i(t)?v(t)&&"="===t.charAt(1)?parseFloat(t.substr(2))*("-"===t.charAt(0)?-1:1)+o-r:"max"===t?m(e,n)-r:Math.min(m(e,n),b(t,e)[n]-r):parseFloat(t)-r},k=function(){a=d(),y()&&a&&document.body&&(s=window,u=document.body,c=document.documentElement,f=a.utils.toArray,a.config({autoKillThreshold:7}),p=a.config(),l=1)},x={version:"3.10.4",name:"scrollTo",rawVars:1,register:function(t){a=t,k()},init:function(t,e,n,o,r){l||k();var c=this,u=a.getProperty(t,"scrollSnapType");c.isWin=t===s,c.target=t,c.tween=n,e=function(t,e,n,o){if(h(t)&&(t=t(e,n,o)),"object"!==i(t))return v(t)&&"max"!==t&&"="!==t.charAt(1)?{x:t,y:t}:{y:t};if(t.nodeType)return{y:t,x:t};var r,a={};for(r in t)a[r]="onAutoKill"!==r&&h(t[r])?t[r](e,n,o):t[r];return a}(e,o,t,r),c.vars=e,c.autoKill=!!e.autoKill,c.getX=g(t,"x"),c.getY=g(t,"y"),c.x=c.xPrev=c.getX(),c.y=c.yPrev=c.getY(),u&&"none"!==u&&(c.snap=1,c.snapInline=t.style.scrollSnapType,t.style.scrollSnapType="none"),null!=e.x?(c.add(c,"x",c.x,S(e.x,t,"x",c.x,e.offsetX||0),o,r),c._props.push("scrollTo_x")):c.skipX=1,null!=e.y?(c.add(c,"y",c.y,S(e.y,t,"y",c.y,e.offsetY||0),o,r),c._props.push("scrollTo_y")):c.skipY=1},render:function(t,e){for(var n,o,r,i,a,l=e._pt,c=e.target,u=e.tween,f=e.autoKill,y=e.xPrev,d=e.yPrev,v=e.isWin,h=e.snap,g=e.snapInline;l;)l.r(t,l.d),l=l._next;n=v||!e.skipX?e.getX():y,r=(o=v||!e.skipY?e.getY():d)-d,i=n-y,a=p.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),f&&(!e.skipX&&(i>a||i<-a)&&n<m(c,"x")&&(e.skipX=1),!e.skipY&&(r>a||r<-a)&&o<m(c,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(u.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(u,e.vars.onAutoKillParams||[]))),v?s.scrollTo(e.skipX?n:e.x,e.skipY?o:e.y):(e.skipY||(c.scrollTop=e.y),e.skipX||(c.scrollLeft=e.x)),!h||1!==t&&0!==t||(o=c.scrollTop,n=c.scrollLeft,g?c.style.scrollSnapType=g:c.style.removeProperty("scroll-snap-type"),c.scrollTop=o+1,c.scrollLeft=n+1,c.scrollTop=o,c.scrollLeft=n),e.xPrev=e.x,e.yPrev=e.y},kill:function(t){var e="scrollTo"===t;(e||"scrollTo_x"===t)&&(this.skipX=1),(e||"scrollTo_y"===t)&&(this.skipY=1)}};x.max=m,x.getOffset=b,x.buildGetter=g,d()&&a.registerPlugin(x);var w=n(8373);function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function L(t){return function(t){if(Array.isArray(t))return A(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function j(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,P(o.key),o)}}function P(t){var e=function(t,e){if("object"!=T(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=T(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==T(e)?e:String(e)}o.p8.registerPlugin(r.i),o.p8.registerPlugin(x);var E=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.index=e,this.body=document.querySelector("body"),this.forms=this.index.querySelectorAll("form"),this.hotInputs=this.index.querySelectorAll(".js-hot-input"),this.clearIcon=this.index.querySelector(".js-clear"),this.items=this.index.querySelector(".js-index-items"),this.pagination=this.index.querySelector(".js-index-pagination"),this.init()}var e,n;return e=t,(n=[{key:"setActiveInputs",value:function(){this.hotInputs.forEac
2h((function(t){var e=t.parentNode.querySelector('label[for="'+t.id+'"]');!0===t.checked?e.classList.add("active"):e.classList.remove("active")}))}},{key:"addEventListeners",value:function(){var t=this;L(this.forms).forEach((function(e){e.addEventListener("submit",(function(e){return t.onFormSubmit(e)}),!1)})),L(this.hotInputs).forEach((function(e){e.addEventListener("change",(function(e){return t.onFormSubmit(e)}),!1)})),this.pagination&&this.pagination.addEventListener("click",(function(e){return t.onPageClick(e)})),this.clearIcon&&this.clearIcon.addEventListener("click",(function(){return t.clearForm()}))}},{key:"clearForm",value:function(){var t=window.location.href.split("?")[0];this.doUpdate(t,"replace"),this.setActiveInputs()}},{key:"onFormSubmit",value:function(t){t.preventDefault();var e="submit"==t.type?t.currentTarget:t.currentTarget.form,n=new FormData(e),o=new URLSearchParams(n),r=[];o.forEach((function(t,e){""===t&&r.push(e)})),r.forEach((function(t){o.delete(t)}));var i=e.action+"?"+o;this.doUpdate(i,"replace"),this.setActiveInputs()}},{key:"initModals",value:function(){L(document.querySelectorAll(".js-modal-parent")).forEac
2h((function(t){new w.ModalSlideOut(t)}))}},{key:"onPageClick",value:function(t){t.preventDefault();for(var e=t.target;e&&"A"!==e.nodeName;)e=e.parentNode;if(e){var n=e.getAttribute("href");this.doUpdate(n,"replace")}}},{key:"doUpdate",value:function(t,e){var n=this;this.setLoading(!0),window.history.pushState({},null,t),fetch(t,{method:"get"}).then((function(t){return t.text()})).then((function(t){var o=(new DOMParser).parseFromString(t,"text/html");n.replaceOrAppendItems(o,e),n.pagination&&n.replacePagination(o),n.setLoading(!1),n.initModals(),n.items.scrollIntoView({behavior:"smooth",block:"start"})}))}},{key:"setLoading",value:function(t){var e=this,n=function(t,e){o.p8.to(t,{duration:.2,opacity:e})};t?n(e.items,.25):setTimeout((function(){n(e.items,1)}),200)}},{key:"replaceOrAppendItems",value:function(t,e){this.items.innerHTML=t.querySelector("#".concat(this.items.id)).innerHTML}},{key:"replacePagination",value:function(t){t.querySelector(".js-index-pagination")?this.pagination.innerHTML=t.querySelector(".js-index-pagination").innerHTML:this.pagination&&this.pagination.remove()}},{key:"init",value:function(){this.setActiveInputs(),this.addEventListeners()}}])&&j(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},8373:(t,e,n)=>{function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,i(o.key),o)}}function i(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:String(e)}n.r(e),n.d(e,{ModalSlideOut:()=>a});var a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=e,this.body=document.querySelector("body"),this.main=document.querySelector("main"),this.overlay=e.querySelector(".js-overlay"),this.openModals=e.querySelectorAll(".js-open-modal"),this.closeModals=e.querySelectorAll(".js-modal-close"),this.eventListeners()}var e,n;return e=t,(n=[{key:"eventListeners",value:function(){var t=this;this.openModals.forEach((function(e){e.addEventListener("click",(function(e){return t.openModal(e)}))})),this.closeModals.forEach((function(e){e.addEventListener("click",(function(e){return t.closeModal(e)}))})),this.overlay.addEventListener("click",(function(e){return t.closeModal(e)}))}},{key:"openModal",value:function(t){t.currentTarget.closest(".js-modal-parent").querySelector(".js-post-modal").classList.add("active"),this.body.classList.add("overflow-hidden"),this.main.classList.remove("contain-paint"),this.overlay.classList.add("active")}},{key:"closeModal",value:function(t){var e=this;t.currentTarget.closest(".js-modal-parent").querySelector(".js-post-modal").classList.remove("active"),this.overlay.classList.remove("active"),setTimeout((function(){e.body.classList.remove("overflow-hidden"),e.main.classList.add("contain-paint")}),300)}}])&&r(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()}}]);

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.