PageSourceSearch

https://www.avinci.ai/cache-buster-1791201757/static/js/scripts.js

js avinci.ai collected 2026-10-05 12:54:01 UTC 31,056 bytes, 20 lines download raw bytes

1window.handleFilteringObjects=e=>{if(!e)return;const t=e.querySelectorAll(".category-button"),o=e.querySelector(".results-container"),i=e.querySelector(".spinner");let a=`${window.location.origin}${window.location.pathname}`;const r=e.querySelector(".category-button.active");let d=r?r.getAttribute("data-tab"):t[0].getAttribute("data-tab"),l=1;const s=c=>{i.style.display=c?"grid":"none"},u=()=>{const c=e.querySelectorAll(".detail-page-link");c&&c.forEach(y=>{y.addEventListener("click",()=>{const v=y.getAttribute("data-link");window.location.href=v})})};u();const n=async(c,y)=>{try{s(!0);let v=`${c}?`;y&&y!=="null"&&(v+=`${y}&`),v+=`page=${l}&ajax=1`;const m=await fetch(v);if(!m.ok)throw new Error(`Failed to fetch data. Status: ${m.status}`);const S=await m.json();o.innerHTML=`${S.content}`,window.VanillaCounter&&function(){function k(g){VanillaCounter()}document.querySelectorAll(".count-up-element").forEach(k)}(),window.Waypoint&&function(){function k(b){w()}function g(b){new Waypoint.Inview({element:b,entered:function(){k(b)},exited:function(){}})}document.querySelectorAll(".count-up-element").forEach(g);function w(){VanillaCounter()}}(),window.Waypoint&&function(){function k(g){new Waypoint.Inview({element:g,enter:function(){this.element.className=this.element.className+" hway-active"},exited:function(){this.element.className=this.element.className.replace(/\shway-active/g,"")}})}document.querySelectorAll(".hway").forEach(k)}(),u(),f()}catch(v){console.error("Error fetching data:",v)}finally{s(!1)}};t.forEach(c=>{c.addEventListener("click",y=>{y.preventDefault(),d=c.getAttribute("data-tab"),l=1;let v=new URL(window.location),m=new URLSearchParams(v.search);m.delete("c");let S=`${v.origin}${v.pathname}`;m.toString()&&(S+=`?${m.toString()}`);const k=new URLSearchParams(m);d&&d!=="null"&&new URLSearchParams(d).forEach((w,b)=>k.set(b,w));const g=k.toString();window.history.replaceState({},"",`${v.pathname}${g?`?${g}`:""}`),n(S,d),t.forEach(w=>{w.classList.remove("active")}),c.classList.add("active")})});const f=()=>{const c=e.querySelector(".load-more-btn");c&&c.addEventListener("click",()=>{l++,console.log("currentURL",a),console.log("dataTabValue",d),n(a,d)})};f()};console.log("Triggering pipeline");document.querySelectorAll("[data-link]")&&document.querySelectorAll("[data-link]").forEach(t=>{t.addEventListener("click",()=>{const o=t.getAttribute("data-link");window.location.href=o})});if(document.querySelector(".back-to-top-btn")){const e=document.querySelector(".back-to-top-btn");window.addEventListener("scroll",()=>{document.body.scrollTop>screen.height*2||document.documentElement.scrollTop>screen.height*2?e.classList.remove("scale-0"):e.classList.add("scale-0")});const t=()=>{document.body.scrollTop=0,document.documentElement.scrollTop=0};e.addEventListener("click",t)}window.Swiper&&function(e){function t(o){var i={},a=o.getAttribute("data-pagination"),r=o.getAttribute("data-slides"),d=o.getAttribute("data-space"),l=o.getAttribute("data-prev"),s=o.getAttribute("data-next");r&&(i.breakpoints={768:{slidesPerView:r}}),d&&(i.spaceBetween=d),(l||s)&&(i.navigation={}),l&&(i.navigation.prevEl=l),s&&(i.navigation.nextEl=s),a&&(i.pagination={el:a,type:"custom",renderCustom:function(u,n,f){var c=u.el.querySelector(u.pagination.el.getAttribute("data-tmpl")).innerHTML;return c=c.replace("group-"+n,"active"),c=c.replace("w-[%px]","w-["+n/f*100+"%]"),c=c.replace("01",(n<10?"0":"")+n),c}}),new Swiper(o,i)}e.querySelectorAll(".swiper").forEach(t)}(document);window.VanillaCounter&&function(){function e(t){VanillaCounter()}document.querySelectorAll(".count-up-element").forEach(e)}();window.Waypoint&&function(){function e(i){o()}function t(i){new Waypoint.Inview({element:i,entered:function(){e()},exited:function(){}})}document.querySelectorAll(".count-up-element").forEach(t);function o(){VanillaCounter()}}();window.Waypoint&&function(){function e(t){new Waypoint.Inview({element:t,enter:function(){this.element.className=this.element.className+" hway-active"},exited:function(){this.element.className=this.element.className.replace(/\shway-active/g,"")}})}document.querySelectorAll(".hway").forEach(e)}();window.Waypoint&&function(){function e(t){t.addEventListener("click",function(o){o.preventDefault();var i=document.querySelector(this.hash),a=this.getAttribute("data-c-toggle");i.setAttribute("data-t",i.getAttribute("data-t")==a&&!i.getAttribute("data-twice")?"":a);const r=document.querySelector(".services-slider-section");return r&&r.classList.contains("editmode")&&r.querySelectorAll('.services-slider-container > div[id^="s"]').forEach(function(l){l.id===a?l.style.display="block":l.style.display="none"}),!1})}document.querySelectorAll("[data-c-toggle]").forEach(e)}();document.querySelector(".client-slider")&&(document.querySelector(".client-slider"),new Swiper(".client-slider",{slidesPerView:1,spaceBetween:10,loop:!0,centeredSlides:!0,speed:2e3,allowTouchMove:!1,autoplay:{delay:0},loopedSlides:2,breakpoints:{320:{slidesPerView:2,spaceBetween:20},480:{slidesPerView:3,spaceBetween:30},640:{slidesPerView:5,spaceBetween:50}}}));document.querySelectorAll(".content-tabs")&&document.querySelectorAll(".content-tabs").forEach(t=>{const o=t.querySelectorAll(".content-tab-btn"),i=t.querySelectorAll("[data-body]");function a(n){n.classList.add("hidden"),n.style.display="none",n.style.visibility="",n.style.opacity=""}function r(n){n.classList.remove("hidden"),n.style.display="block",n.style.visibility="visible",n.style.opacity="1"}function d(n){o.forEach(f=>f.classList.remove("active")),n.classList.add("active")}let l=null,s=null;const u=t.querySelector(".content-tab-btn.active");if(u){const n=u.getAttribute("data-tab");s=t.querySelector(`[data-body='${n}']`),l=u}if(!l&&o.length>0){l=o[0];const n=l.getAttribute("data-tab");s=t.querySelector(`[data-body='${n}']`)}i.forEach(n=>
1{n===s?r(n):a(n)}),l&&d(l),o.forEach(n=>{n.addEventListener("click",f=>{f.preventDefault();const c=n.getAttribute("data-tab");if(!c){console.warn("Tab button missing data-tab attribute:",n);return}const y=t.querySelector(`[data-body='${c}']`);if(!y){console.warn(`No content found for tab: ${c}`);return}d(n),i.forEach(m=>{m===y?r(m):a(m)});const v=new CustomEvent("tabChanged",{detail:{tabNumber:c,tabButton:n,tabContent:y,tabContainer:t}});t.dispatchEvent(v)})}),o.forEach((n,f)=>{n.addEventListener("keydown",c=>{let y=f;switch(c.key){case"ArrowRight":case"ArrowDown":c.preventDefault(),y=(f+1)%o.length;break;case"ArrowLeft":case"ArrowUp":c.preventDefault(),y=(f-1+o.length)%o.length;break;case"Home":c.preventDefault(),y=0;break;case"End":c.preventDefault(),y=o.length-1;break;default:return}o[y].focus(),o[y].click()})}),o.forEach(n=>{const f=n.getAttribute("data-tab"),c=`tab-content-${f}`,y=t.querySelector(`[data-body='${f}']`);n.setAttribute("role","tab"),n.setAttribute("aria-controls",c),n.setAttribute("tabindex",n.classList.contains("active")?"0":"-1"),y&&(y.setAttribute("role","tabpanel"),y.setAttribute("id",c),y.setAttribute("aria-labelledby",`tab-${f}`)),n.setAttribute("id",`tab-${f}`)}),t.setAttribute("role","tablist")});window.TabHandler={switchToTab:function(e,t){const o=document.querySelector(e);if(o){const i=o.querySelector(`[data-tab='${t}']`);if(i)return i.click(),!0}return!1},getActiveTab:function(e){const t=document.querySelector(e);if(t){const o=t.querySelector(".content-tab-btn.active");return o?o.getAttribute("data-tab"):null}return null}};if(document.body.id==="asioso"){let e=function(){const t=document.querySelector(".meet-us-section");t&&t.querySelectorAll(".meet-us-card").forEach(i=>{const a=i.querySelector(".meet-us-card-content"),r=i.offsetHeight,l=a.offsetWidth/r*100;a.style.top=`calc(100% - ${l}%)`})};var G=e;e(),window.addEventListener("resize",e)}if(document.querySelectorAll(".gallery").length>0){const e=document.querySelectorAll(".gallery"),t=document.querySelector("#galleryModal"),o=document.querySelector(".gallery-modal-overlay");e.forEach(function(r){let l=r.getElementsByTagName("img").length;r.classList.add("gallery-"+l),t&&r.addEventListener("click",()=>{t.classList.remove("hidden")})}),o&&t&&o.addEventListener("click",()=>{t.classList.add("hidden")});const i=document.querySelector(".gallery-button-left"),a=document.querySelector(".gallery-button-right");new Swiper(".gallery-swiper",{slidesPerView:1.1,spaceBetween:20,breakpoints:{1024:{slidesPerView:2.5,spaceBetween:40}},navigation:{nextEl:a,prevEl:i},on:{slideChange:({activeIndex:r,isEnd:d})=>{r!==0?i.classList.replace("hidden","flex"):i.classList.add("flex","hidden"),d?a.classList.add("hidden"):a.classList.remove("lg:hidden")}}})}if(document.querySelector(".filter-blogs")){const e=document.querySelector(".filter-blogs");window.handleFilteringObjects(e)}document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("tags"),t=document.getElementById("toggle-btn");if(e&&t){const o=e.querySelectorAll("a");if(o.length===0)return;const i=2;let a=!1;const r=()=>{const u=window.getComputedStyle(o[0]);let n=parseFloat(u.lineHeight);return isNaN(n)&&(n=o[0].offsetHeight),n},d=()=>{const u=e.clientWidth,n=r();let f=0,c=1;for(const v of o){const m=v.offsetWidth;if(f+m>u&&(c++,f=0,c>i))break;f+=m}const y=n*i;return{rows:c,visibleHeight:y}},l=()=>{const{rows:u,visibleHeight:n}=d();u>i&&!a?(t.classList.remove("hidden"),e.style.maxHeight=`${n}px`,e.classList.add("overflow-hidden")):a?(e.style.maxHeight=`${e.scrollHeight}px`,e.classList.remove("overflow-hidden")):(t.classList.add("hidden"),e.style.maxHeight=null,e.classList.remove("overflow-hidden"))},s=()=>{a=!a,a?(e.style.maxHeight=`${e.scrollHeight}px`,t.textContent=t.getAttribute("data-show-less")):(e.style.maxHeight=`${d().visibleHeight}px`,t.textContent=t.getAttribute("data-show-more"))};t.addEventListener("click",s),window.addEventListener("resize",l),e.style.transition="max-height 0.5s ease",l()}});document.querySelectorAll(".jobs-tabs")&&document.body.id==="asioso"&&document.querySelectorAll(".jobs-tabs").forEach(t=>{const o=t.querySelectorAll(".job-tab-btn");o.forEach(i=>
1{i.addEventListener("click",()=>{o.forEach(l=>{l.classList.remove("active")}),i.classList.add("active");const a=i.getAttribute("data-tab");t.querySelectorAll("[data-body]").forEach(l=>{l.style.display="none"});const d=document.querySelector(`[data-body='${a}']`);d.style.display="block"})})});if(document.querySelector(".tag-filtering")){const e=document.querySelector(".tag-filtering");window.handleFilteringObjects(e)}if(document.querySelectorAll(".video-section")&&document.body.id==="asioso"){let a=function(s){const u=s.querySelector(".video-overlay");u&&(u.style.display="flex",u.classList.remove("hidden"))},r=function(s){const u=s.querySelector(".video-overlay");u&&(u.style.display="none",u.classList.add("hidden"))},d=function(s){s.querySelectorAll(".video-section").forEach(n=>{const f=n.querySelector(".video");if(f&&f.tagName.toLowerCase()==="iframe"&&f.id&&i[f.id])try{const y=i[f.id];typeof y.pauseVideo=="function"&&(y.pauseVideo(),a(n))}catch(y){console.error("Error pausing YouTube video:",y)}else if(f&&f.tagName.toLowerCase()==="video")try{f.pause(),f.currentTime=0,a(n)}catch(y){console.error("Error pausing HTML5 video:",y)}})},l=function(){const s=document.querySelector(".carrer-videos-section");s&&(s.addEventListener("tabChanged",n=>{console.log("Tab changed in career videos section, stopping all videos"),d(s)}),s.querySelectorAll(".content-tab-btn").forEach(n=>{n.addEventListener("click",()=>{setTimeout(()=>{d(s)},100)})}))};var X=a,J=r,Z=d,Q=l;const e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";const t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t);const o=document.querySelectorAll(".video-section"),i={};window.onYouTubeIframeAPIReady=function(){o.forEach((s,u)=>{const n=s.querySelector(".video"),f=s.querySelector(".video-overlay"),c=s.querySelector(".play-button");if(n&&n.tagName.toLowerCase()==="iframe"){const v=`youtube-player-${u}`;if(n.id=v,!n.src.includes("enablejsapi=1")){let m=n.src;m+=(m.includes("?")?"&":"?")+"enablejsapi=1",n.src=m}i[v]=new YT.Player(v,{events:{onReady:m=>{console.log("Player ready:",v),f&&f.addEventListener("click",()=>{try{const S=m.target;S&&typeof S.playVideo=="function"?(S.playVideo(),r(s)):console.error("Player or playVideo not available:",S)}catch(S){console.error("Error playing video:",S)}}),c&&(c.style.display="flex")},onStateChange:m=>{m.data===YT.PlayerState.PAUSED||m.data===YT.PlayerState.ENDED?a(s):m.data===YT.PlayerState.PLAYING&&r(s)}}})}else n&&n.tagName.toLowerCase()==="video"&&(n.addEventListener("pause",()=>a(s)),n.addEventListener("ended",()=>a(s)),n.addEventListener("play",()=>r(s)),f&&f.addEventListener("click",()=>{n.play(),r(s)}))}),l()},window.YT&&window.YT.Player&&window.onYouTubeIframeAPIReady()}window.VideoHandler={stopVideosInContainer:function(e){const t=document.querySelector(e);if(!t)return!1;const o=t.querySelectorAll(".video-section");let i=0;return o.forEach(a=>{const r=a.querySelector(".video"),d=a.querySelector(".video-overlay");if(!r)return;if(r.tagName.toLowerCase()==="iframe"&&r.id&&window.players&&window.players[r.id])try{const s=window.players[r.id];typeof s.pauseVideo=="function"&&(s.pauseVideo(),d&&(d.style.display="flex",d.classList.remove("hidden")),i++)}catch(s){console.error("Error stopping YouTube video:",s)}else if(r.tagName.toLowerCase()==="video")try{r.pause(),d&&(d.style.display="flex",d.classList.remove("hidden")),i++}catch(s){console.error("Error stopping HTML5 video:",s)}}),i>0},stopAllVideos:function(){return this.stopVideosInContainer("body")}};if(document.querySelector("#article")){let t=function(d){let l="";if(d.nodeType===3)l+=d.textContent;else if(d.nodeType===1)for(const s of d.childNodes)l+=t(s);return l};var K=t;const e=document.querySelector("#article"),o=t(e),i=225,a=o.trim().split(/\s+/).length,r=Math.ceil(a/i);document.querySelector("#reading-time").innerText=`${r}`}if(document.querySelector(".service-hero-image")&&document.body.id==="asioso"){const e=document.querySelector(".service-hero-image"),t=Math.random()*8-4;e.style.transform=`rotate(${t}deg)`}if(document.querySelector("nav")&&document.querySelector(".expand-nav-btn")){const e=document.querySelector(".expand-nav-btn"),t=document.querySelector(".header-container");e.addEventListener("click",()=>{t.classList.toggle("opened")});const o=r=>{r.preventDefault();const d=r.target.closest(".main-nav-link[data-header]");if(!d)return;const l=d.getAttribute("data-header"),s=document.querySelector(`.main-nav-dropdown[data-body="${l}"]`);if(!s)return;const u=d.classList.contains("opened");document.querySelectorAll(".main-nav-link").forEach(c=>c.classList.remove("opened")),document.querySelectorAll(".main-nav-dropdown").forEach(c=>c.classList.remove("opened")),u||(d.classList.add("opened"),s.classList.add("opened"))},i=r=>{if(!r.target.closest("nav")){const l=document.querySelectorAll(".main-nav-link.opened"),s=document.querySelectorAll(".main-nav-dropdown.opened");l.forEach(u=>
1u.classList.remove("opened")),s.forEach(u=>u.classList.remove("opened"))}};document.querySelectorAll(".main-nav-link[data-header]").forEach(r=>{r.addEventListener("click",o)}),document.addEventListener("click",i)}if(document.querySelector(".our-story-section")&&document.body.id==="asioso"){const e=()=>{window.matchMedia("only screen and (max-width: 768px)").matches&&new Swiper(".our-story-gallery",{loop:!0,pagination:{el:".swiper-pagination",clickable:!0}})};e(),window.addEventListener("resize",()=>{e()})}if(document.querySelector(".benefits-section")&&document.body.id==="asioso"){const t=document.querySelector(".benefits-section").querySelector(".benefits-container");t.children.length<5&&t.classList.remove("xl:grid-cols-3")}if(document.querySelector("[name='contact_us_form']")&&document.body.id==="asioso"){let o=function(a){if(a.type==="hidden")return;const r=a.closest(".input-group").querySelector(".error-field");r&&(a.checkValidity()?r.classList.replace("block","hidden"):r.classList.replace("hidden","block"))},i=function(){e.querySelectorAll("input, textarea").forEach(function(r){o(r)})};var ee=o,te=i;const e=document.querySelector("[name='contact_us_form']");e.setAttribute("novalidate",!0),e.querySelectorAll("input, textarea").forEach(function(a){a.addEventListener("input",function(){o(a)})}),e.addEventListener("submit",function(a){a.preventDefault(),e.checkValidity()?e.submit():i()})}document.addEventListener("DOMContentLoaded",function(){const e=document.querySelectorAll(".default-dropdown");e.forEach(t=>{const o=t.querySelector(".dropdown-btn"),i=o.querySelector("svg"),a=t.querySelector(".dropdown-body");o.addEventListener("click",()=>{e.forEach(r=>{if(r!==t){const d=r.querySelector(".dropdown-btn"),l=r.querySelector(".dropdown-btn svg"),s=r.querySelector(".dropdown-body");l.classList.remove("rotate-180"),s.classList.remove("scale-1"),s.classList.add("scale-0"),d.setAttribute("aria-expanded","false")}}),i.classList.toggle("rotate-180"),a.classList.toggle("scale-0"),a.classList.toggle("scale-1"),o.setAttribute("aria-expanded",a.classList.contains("scale-1"))})}),document.addEventListener("click",function(t){t.target.closest(".default-dropdown")||e.forEach(i=>{const a=i.querySelector(".dropdown-btn svg"),r=i.querySelector(".dropdown-body");a.classList.remove("rotate-180"),r.classList.remove("scale-1"),r.classList.add("scale-0"),i.setAttribute("aria-expanded","false")})})});if(document.querySelector(".our-projects-section")){const e=document.querySelector(".our-projects-section"),t=e.querySelector(".project-filters-modal"),o=e.querySelectorAll(".project-filter-option"),i=e.querySelector(".selected-filters-container"),a=e.querySelectorAll(".expand-project-filters-modal-btn"),r=document.querySelector(".close-project-filter-dropdown-btn"),d=document.querySelector(".expand-nav-btn"),l=e.querySelector(".results-container"),s=e.querySelector(".spinner"),u=`${window.location.href.split("/").slice(0,4).join("/")}/project/listing?`;let n=[],f=1;const c=async()=>{try{y(!0);const p=n.map(q=>`tagIds[]=${q}`).join("&"),h=await fetch(`${u}${p}&page=${f}&ajax=1`);if(!h.ok)throw new Error(`Failed to fetch data. Status: ${h.status}`);const E=await h.json();l.innerHTML=`${E.content}`,window.VanillaCounter&&function(){function q(x){VanillaCounter()}document.querySelectorAll(".count-up-element").forEach(q)}(),window.Waypoint&&function(){function q(T){L()}function x(T){new Waypoint.Inview({element:T,entered:function(){q(T)},exited:function(){}})}document.querySelectorAll(".count-up-element").forEach(x);function L(){VanillaCounter()}}(),window.Waypoint&&function(){function q(x){new Waypoint.Inview({element:x,enter:function(){this.element.className=this.element.className+" hway-active"},exited:function(){this.element.className=this.element.className.replace(/\shway-active/g,"")}})}document.querySelectorAll(".hway").forEach(q)}(),v()}catch(p){console.error("Error fetching data:",p)}finally{y(!1)}},y=p=>{s.style.display=p?"grid":"none"},v=()=>{const p=e.querySelector(".load-more-btn");p&&p.addEventListener("click",()=>{f++,c()})};v();const m=()=>{e.querySelectorAll(".project-filters-modal-body").forEach(h=>h.classList.add("hidden")),t.classList.replace("left-0","left-[200vw]"),d.classList.remove("hidden"),r.classList.add("hidden")},S=p=>{p.addEventListener("click",()=>{t.classList.replace("left-[200vw]","left-0"),d.classList.add("hidden"),r.classList.remove("hidden");const h=p.dataset.index,E=e.querySelector(`.project-filters-modal-body[data-index="${h}"]`);E&&E.classList.remove("hidden")})},k=p=>{const h=document.createElement("button"),E=document.body.id==="avinci";h.classList.add("filter-chips","p-2.5","lg:py-4","lg:px-2.5",E?"bg-primary-blue":"bg-primary-green","text-white","flex","gap-2.5","rounded","items-center","hover:outline-4",E?"hover:outline-primary-blue/20":"hover:outline-primary-green/20","hover:outline","focus-within:outline-6",E?"focus-within:outline-primary-blue/20":"focus-within:outline-primary-green/20","focus-within:outline"),h.setAttribute("data-value",p.value),h.setAttribute("data-name",p.name),h.innerHTML=`${p.nextElementSibling.children[0].textContent}
2      <svg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'>
3        <path d='M6 4.66688L10.6669 0L12 1.33312L7.33312 6L12 10.6669L10.6669 12L6 7.33312L1.33312 12L0 10.6669L4.66688 6L0 1.33312L1.33312 0L6 4.66688Z' fill='white'/>
4      </svg>`,h.addEventListener("click",()=>{h.remove(),p.checked=!1,g(p)}),i.appendChild(h)};a.forEach(S),r.addEventListener("click",m),window.addEventListener("resize",m);const g=p=>{const{value:h,checked:E}=p,q=i.querySelectorAll(`.filter-chips[data-value="${h}"]`);if(E){i.querySelector(`.filter-chips[data-value="${h}"]`)||k(p);const L=[...o].find(T=>T.value===h&&T!==p);L&&!L.checked&&(L.checked=!0,i.querySelector(`.filter-chips[data-value="${L.value}"]`)||k(L)),w("tagIds[]",h,!0)}else{q.forEach(L=>L.remove());const x=[...o].find(L=>L.value===h&&L!==p);x&&x.checked&&(x.checked=!1,i.querySelectorAll(`.filter-chips[data-value="${x.value}"]`).forEach(T=>T.remove())),w("tagIds[]",h,!1)}},w=(p,h,E)=>{const q=new URL(window.location.href),x=q.searchParams;let L=x.getAll(p);E?L.includes(h)||L.push(h):L=L.filter(T=>
4T!==h),x.delete(p),L.forEach(T=>{x.append(p,T)}),n=L,console.log("seclectedValues",n),c(),window.history.pushState({},"",q)},b=new URLSearchParams(window.location.search);o.forEach(p=>{const h=p.value,E=b.getAll("tagIds[]");n=E,console.log(1,n);const q=E.includes(h);p.checked=q,q&&g(p),p.addEventListener("change",()=>g(p))})}document.querySelectorAll(".pinned-element")&&document.addEventListener("DOMContentLoaded",()=>{gsap.registerPlugin(ScrollTrigger),document.querySelectorAll(".pinned-element").forEach(t=>{const o=t.querySelector(".sticky-img-container"),i=o.querySelector("img"),a=t.querySelectorAll(".gsap-text-block"),r=i.offsetHeight,d=o.offsetHeight;gsap.to(i,{scrollTrigger:{trigger:o,start:`${r/2}px center`,end:()=>"+="+(d-r)+"px",scrub:.7,pin:i},rotate:360,ease:"none"}),a.forEach(l=>{gsap.fromTo(l,{opacity:0,y:30},{opacity:1,y:0,duration:.7,ease:"power2.out",scrollTrigger:{trigger:l,start:"top 80%",toggleActions:"play none none none"}})})})});document.querySelectorAll(".client-wall-gsap")&&document.body.id==="asioso"&&document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".client-wall-gsap").forEach(t=>{const o=t.querySelectorAll(".logo-1"),i=t.querySelectorAll(".logo-2"),a=gsap.timeline({repeat:-1,yoyo:!0,delay:3.5,repeatDelay:3.5,defaults:{duration:.2,ease:"none",stagger:{each:.1,from:"center",grid:"auto"}}});a.to(o,{y:"105%"}),a.to(i,{y:"0"},"-=0.35")})});if(document.querySelector(".downloads-section")&&document.body.id==="asioso"){const e=document.querySelector(".downloads-section"),t=e.querySelectorAll(".download-document-btn"),o=e.querySelector(".brevo-form-modal"),i=e.querySelector(".brevo-form-modal-overlay"),a=o.querySelector("iframe");t.forEach(r=>{r.addEventListener("click",d=>{d.preventDefault();const l=r.href;l&&(a.src=l,o.classList.remove("hidden"))})}),i.addEventListener("click",r=>{o.classList.add("hidden")})}if(document.querySelector(".services-slider-section")&&!document.querySelector(".services-slider-section").classList.contains("editmode")){const t=document.querySelector(".services-slider-section").querySelector(".services-slider-container"),o=t?t.querySelectorAll(":scope > div"):[],i=window.matchMedia("only screen and (min-width: 1024px)").matches;let a=0;const r=()=>{a=0,o.forEach(l=>{const s=l.querySelector("img"),u=l.querySelector(".service-text-content");let n=0;if(s){const y=(i?t.offsetWidth-100:t.offsetWidth-50)*26/51;if(n+=y,u){const v=u.scrollHeight;s.style.paddingBottom=v+"px",n+=v}}else u&&(n+=u.scrollHeight);a=Math.max(a,n),l.querySelectorAll(":scope > div:nth-child(-n+2)").forEach(c=>{c&&(c.style.display="none")})}),t&&(t.style.height=a+"px")},d=()=>{r()};o.forEach(l=>{(l.querySelector("img")||l.querySelector(".service-text-content"))&&r()}),window.addEventListener("resize",d),document.addEventListener("slideChange",r),window.addEventListener("DOMContentLoaded",r)}document.querySelector(".video-listing-section")&&function(){if((typeof YT>"u"||typeof YT.Player>"u")&&!document.querySelector('script[src*="youtube.com/iframe_api"]')){const g=document.createElement("script");g.src="https://www.youtube.com/iframe_api";const w=document.getElementsByTagName("script")[0];w.parentNode.insertBefore(g,w)}const e=document.querySelector(".video-listing-section"),t=e.querySelector(".video-listing-results");let o=e.querySelector(".load-more-btn"),i=document.getElementById("videoModal"),a=document.getElementById("modalVideo"),r=document.getElementById("modalYoutubeContainer"),d=document.getElementById("closeModal"),l=document.querySelector(".modal-overlay");i||(f(),i=document.getElementById("videoModal"),a=document.getElementById("modalVideo"),r=document.getElementById("modalYoutubeContainer"),d=document.getElementById("closeModal"),l=document.querySelector(".modal-overlay"));let s=null,u=1;o&&o.hasAttribute("data-page")&&(u=parseInt(o.getAttribute("data-page"))||1);let n=!1;function f(){const g=`
5        <div id="videoModal" class="fixed inset-0 z-50 flex items-center justify-center hidden">
6          <div class="modal-overlay absolute inset-0 bg-black opacity-75"></div>
7          <div class="modal-container relative z-50 w-full max-w-4xl mx-auto">
8            <button id="closeModal" class="absolute top-4 right-4 text-white z-50 p-2">
9              <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
10                <line x1="18" y1="6" x2="6" y2="18"></line>
11                <line x1="6" y1="6" x2="18" y2="18"></line>
12              </svg>
13            </button>
14            <div class="relative w-full aspect-video bg-black rounded-lg overflow-hidden">
15              <video id="modalVideo" class="w-full h-full hidden" c
15ontrols></video>
16              <div id="modalYoutubeContainer" class="w-full h-full hidden"></div>
17            </div>
18          </div>
19        </div>
20      `;document.body.insertAdjacentHTML("beforeend",g)}function c(){e.querySelectorAll(".video-item").forEach(w=>{const b=w.querySelector(".video-overlay");b&&(b.removeEventListener("click",y),b.addEventListener("click",y))})}function y(){const g=this.closest(".video-item");v(g)}function v(g){const w=g.getAttribute("data-video-type");if(a.classList.add("hidden"),r.classList.add("hidden"),w==="html5"){const b=g.getAttribute("data-video-src");if(!b){console.error("No video source provided for HTML5 video");return}a.src=b,a.classList.remove("hidden"),i.classList.remove("hidden"),a.play()}else if(w==="youtube"){const b=g.getAttribute("data-video-id");if(!b){console.error("No video ID provided for YouTube video");return}r.classList.remove("hidden"),i.classList.remove("hidden"),typeof YT<"u"&&typeof YT.Player<"u"?m(b):window.onYouTubeIframeAPIReady=function(){m(b)}}}function m(g){s&&s.destroy(),s=new YT.Player(r,{height:"100%",width:"100%",videoId:g,playerVars:{autoplay:1,modestbranding:1,rel:0},events:{onReady:w=>{w.target.playVideo()}}})}function S(){a.pause(),a.src="",s&&(s.destroy(),s=null),i.classList.add("hidden")}async function k(){if(!n){n=!0,u++;try{const w=window.location.pathname.split("/")[1]||"en",b=await fetch(`/${w}/videos/listing?page=${u}&ajax=1`);if(!b.ok)throw new Error(`Failed to fetch more videos. Status: ${b.status}`);const p=await b.json();if(p.content&&p.content.trim()){t.innerHTML=p.content,c();const h=e.querySelector(".load-more-btn");h?(o&&o.removeEventListener("click",k),o=h,o.addEventListener("click",k),o.hasAttribute("data-page")&&o.setAttribute("data-page",u.toString())):console.log("No more videos to load")}else o&&(o.style.display="none")}catch(g){console.error("Error loading more videos:",g)}finally{n=!1}}}d&&d.addEventListener("click",S),l&&l.addEventListener("click",S),document.addEventListener("keydown",g=>{g.key==="Escape"&&S()}),o&&o.addEventListener("click",k),c()}();(function(){var e=".head-animation-section",t=".particlehead",o="https://s3-us-west-2.amazonaws.com/s.cdpn.io/40480/head.obj",i=7,a=35,r=1.2,d=9682226,l=2.5,s=.5,u=.05,n=2,f=document.querySelector(e);if(!f)return;var c=f.querySelector(t)||document.querySelector(t);if(!c)return;if(!F()){c.classList.add("particlehead--unsupported");return}if(typeof THREE>"u"){console.warn("[head-animation] THREE is not available.");return}var y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=new THREE.Scene,m=new THREE.PerspectiveCamera(a,1,1,2e3);m.position.z=300;var S=new THREE.BufferGeometry,k=new THREE.PointsMaterial({color:d,size:l}),g=new THREE.Points(S,k);v.add(g);var w=new THREE.WebGLRenderer({alpha:!0,antialias:!0});w.setClearColor(0,0),c.appendChild(w.domElement);var b=m.position.z,p=0,h=0,E=null,q=!1;x(),$(),L(),W(),c.addEventListener("mousemove",j),c.addEventListener("mouseleave",O);function x(){var C=Math.round(c.clientWidth),A=Math.round(c.clientHeight);!C||!A||(m.aspect=C/A,m.position.z=m.aspect<1?b/m.aspect:b,m.updateProjectionMatrix(),w.setPixelRatio(Math.min(window.devicePixelRatio||1,n)),w.setSize(C,A,!1),P())}function L(){"ResizeObserver"in window?new ResizeObserver(T).observe(c):window.addEventListener("resize",T)}function T(){q||(q=!0,requestAnimationFrame(function(){q=!1,x()}))}function $(){if(typeof THREE.OBJLoader!="function"){console.warn("[head-animation] THREE.OBJLoader is not loaded.");return}new THREE.OBJLoader().load(o,D,null,z)}function D(C){var A=[];if(C.traverse(function(H){if(!(!H.isMesh||!H.geometry)){var B=H.geometry.getAttribute("position");if(B)for(var M=0;M<B.count;M++)A.push(B.getX(M)*i,B.getY(M)*i,B.getZ(M)*i)}}),!A.length){console.warn("[head-animation] Model contained no vertex positions.");return}S.setAttribute("position",new THREE.Float32BufferAttribute(A,3)),S.computeBoundingBox();var I=new THREE.Vector3,R=new THREE.Vector3;S.boundingBox.getCenter(I),S.boundingBox.getSize(R),g.position.set(-I.x,-I.y,-I.z);var U=a*(Math.PI/180),_=Math.max(R.x,R.y,R.z);b=Math.abs(_/(2*Math.tan(U/2)))*r,x()}function z(C){console.warn("[head-animation] Failed to load model.",C)}function j(C){if(!y.matches){var A=c.getBoundingClientRect();p=(C.clientX-(A.left+A.width/2))/2,h=(C.clientY-(A.top+A.height/2))/2}}function O(){p=0,h=0}function W(){if(!("IntersectionObserver"in window)){V();return}new IntersectionObserver(function(C){for(var A=0;A<C.length;A++)C[A].isIntersecting?V():Y()},{threshold:0}).observe(c)}function V(){E===null&&(E=requestAnimationFrame(N))}function Y(){E!==null&&(cancelAnimationFrame(E),E=null)}function N(){E=requestAnimationFrame(N),P()}function P(){var C=p*s,A=-(h*s);m.position.x+=(C-m.position.x)*u,m.position.y+=(A-m.position.y)*u,m.lookAt(v.position),w.render(v,m)}function F(){try{var C=document.createElement("canvas");return!!(window.WebGLRenderingContext&&(C.getContext("webgl")||C.getContext("experimental-webgl")))}catch{return!1}}})();

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.