{"version":3,"sources":["jsdelivr-header.js","/gh/Piyush-Bansal/Univ.AI-2.0@651e17f52ed13395fc0901a984374a873de6b9bf/vite.js/univ_ai_2.1/javascript/sections.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACLA,MAAM,SAAW,SAAS,iBACxB,yDAEF,SAAS,SAAS,IAChB,KAAK,KAAK,EAAK,CACb,EAAG,MACH,QAAS,EACT,SAAU,GACV,QAAS,GACT,KAAM,iBACN,cAAe,CACb,QAAS,EACT,MAAO,cAET,IAIJ,KAAK,IAAI,gBAAiB,CAAE,QAAS,UACrC,MAAM,gBAAkB,SAAS,iBAAiB,iBAClD,gBAAgB,SAAS,IACvB,KAAK,GAAG,EAAS,CACf,EAAG,OACH,QAAS,GACT,SAAU,GACV,KAAM,mBACN,cAAe,CACb,QAAS,EACT,MAAO,cAET,IAIJ,MAAM,WAAa,SAAS,iBAAiB,gBAC7C,WAAW,SAAS,IACI,EAAQ,iBAAiB,aACjC,SAAS,IACrB,KAAK,IAAI,EAAK,CACZ,OAAQ,OACR,MAAO,OACP,EAAG,SAGL,KAAK,GAAG,EAAK,CACX,EAAG,KACH,KAAM,aACN,cAAe,CACb,QAAS,EACT,MAAO,YACP,IAAK,YACL,OAAO,IAET,GACF,IAIJ,MAAM,WAAa,SAAS,iBAAiB,eACvC,YAAc,KAAK,SAAS,CAChC,cAAe,CACb,QAAS,WACT,MAAO,eAIX,WAAW,SAAS,IAClB,MAAM,EAAe,EAAM,iBAAiB,6BACtC,EAAqB,EAAM,iBAAiB,0BAC5C,EAAkB,EAAM,iBAAiB,0BACzC,EAAoB,EAAM,iBAAiB,kBAC3C,EAAuB,EAAM,iBAAiB,iBAuBpD,YAAY,IArBZ,WACE,MAAM,EAAU,KAAK,SAAS,CAC5B,SAAU,GACV,KAAM,qBAeR,OAZA,EACG,KAAK,EAAc,CAAE,EAAG,MAAO,QAAS,IACxC,KAAK,EAAoB,CAAE,MAAO,MAAQ,SAC1C,KACC,CAAC,EAAiB,EAAmB,GACrC,CACE,EAAG,MACH,QAAS,EACT,QAAS,IAEX,SAEG,CACT,CAEgB,GAAS,QAAQ,IAInC,MAAM,QAAU,SAAS,cAAc,SACjC,YAAc,QAAQ,WAE5B,IAAK,IAAI,KAAQ,YACf,KAAK,KAAK,EAAM,CACd,EAAG,MACH,QAAS,EACT,SAAU,GACV,QAAS,GACT,KAAM,iBACN,cAAe,CACb,QAAS,EACT,MAAO","file":"/gh/Piyush-Bansal/Univ.AI-2.0@651e17f52ed13395fc0901a984374a873de6b9bf/vite.js/univ_ai_2.1/javascript/sections.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /gh/Piyush-Bansal/Univ.AI-2.0@651e17f52ed13395fc0901a984374a873de6b9bf/vite.js/univ_ai_2.1/javascript/sections.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","//stagger reveal table rows\nconst tableRow = document.querySelectorAll(\n  \".table-row, .accordion, .table-label, .stagger-reveal\"\n);\ntableRow.forEach((row) => {\n  gsap.from(row, {\n    y: \"10%\",\n    opacity: 0,\n    duration: 0.5,\n    stagger: 0.2,\n    ease: \"Power4.easeOut\",\n    scrollTrigger: {\n      trigger: row,\n      start: \"start 75%\",\n    },\n  });\n});\n\n//curtain animation\ngsap.set(\".img__curtain\", { display: \"block\" });\nconst curtainElements = document.querySelectorAll(\".img__curtain\");\ncurtainElements.forEach((element) => {\n  gsap.to(element, {\n    y: \"101%\",\n    stagger: 0.4,\n    duration: 0.8,\n    ease: \"Power4.easeInOut\",\n    scrollTrigger: {\n      trigger: element,\n      start: \"start 75%\",\n    },\n  });\n});\n\n//image parallax\nconst imgWrapper = document.querySelectorAll(\".img-wrapper\");\nimgWrapper.forEach((wrapper) => {\n  const imgWrapperImg = wrapper.querySelectorAll(\".parallax\");\n  imgWrapperImg.forEach((img) => {\n    gsap.set(img, {\n      height: \"112%\",\n      width: \"112%\",\n      y: \"-12%\",\n    });\n\n    gsap.to(img, {\n      y: \"0%\",\n      ease: \"sine.inOut\",\n      scrollTrigger: {\n        trigger: img,\n        start: \"start 68%\",\n        end: \"start 12%\",\n        scrub: true,\n      },\n    });\n  });\n});\n\n// value prop animations\nconst valueProps = document.querySelectorAll(\".value-prop\");\nconst valuePropTl = gsap.timeline({\n  scrollTrigger: {\n    trigger: valueProps,\n    start: \"start 75%\",\n  },\n});\n\nvalueProps.forEach((value) => {\n  const valuePropImg = value.querySelectorAll(\".value-prop__illustration\");\n  const valuePropSeparator = value.querySelectorAll(\".value-prop .separator\");\n  const valuePropNumber = value.querySelectorAll(\".value-prop .monospace\");\n  const valuePropHeadline = value.querySelectorAll(\".value-prop h5\");\n  const valuePropDescription = value.querySelectorAll(\".value-prop p\");\n\n  function scene() {\n    const valueTl = gsap.timeline({\n      duration: 0.3,\n      ease: \"Power4.easeInOut\",\n    });\n\n    valueTl\n      .from(valuePropImg, { y: \"10%\", opacity: 0 })\n      .from(valuePropSeparator, { width: \"0%\" }, \"-=0.3\")\n      .from(\n        [valuePropNumber, valuePropHeadline, valuePropDescription],\n        {\n          y: \"10%\",\n          opacity: 0,\n          stagger: 0.2,\n        },\n        \"-=0.3\"\n      );\n    return valueTl;\n  }\n\n  valuePropTl.add(scene(), \"-=0.8\");\n});\n\n//form child stagger\nconst formTag = document.querySelector(\".form\");\nconst formElement = formTag.childNodes;\n\nfor (let item of formElement) {\n  gsap.from(item, {\n    y: \"10%\",\n    opacity: 0,\n    duration: 0.5,\n    stagger: 0.2,\n    ease: \"Power4.easeOut\",\n    scrollTrigger: {\n      trigger: item,\n      start: \"start 85%\",\n    },\n  });\n}\n\n//profile reveals\n\n// const profileSection = document.querySelectorAll(\".profiles__wrapper\");\n\n// profileSection.forEach((pSection) => {\n//   const profilesMasterTl = gsap.timeline({\n//     scrollTrigger: {\n//       trigger: \".profiles__wrapper\",\n//       start: \"start 85%\",\n//       markers: true,\n//     },\n//   });\n\n//   const profileWrapper = pSection.querySelectorAll(\".profile__wrapper\");\n//   profileWrapper.forEach((section) => {\n//     function scene() {\n//       const curtain = section.querySelectorAll(\".profile-img__curtain\");\n//       const profileTitle = section.querySelectorAll(\".profile__title\");\n//       const profileDescription = section.querySelectorAll(\n//         \".profile_description\"\n//       );\n//       const separator = section.querySelectorAll(\".separator\");\n\n//       curtain.forEach((element) => {\n//         gsap.set(element, { display: \"block\" });\n//       });\n\n//       const profileTl = gsap.timeline({\n//         duration: 0.8,\n//         ease: Power4.easeInOut,\n//       });\n\n//       profileTl\n//         .to(curtain, { y: \"101%\" })\n//         .from(\n//           profileTitle,\n//           {\n//             opacity: 0,\n//             y: \"-20%\",\n//           },\n//           \"-=0.2\"\n//         )\n//         .from(\n//           profileDescription,\n//           {\n//             opacity: 0,\n//             y: \"-20%\",\n//           },\n//           \"-=0.2\"\n//         )\n//         .from(\n//           separator,\n//           {\n//             height: 0,\n//           },\n//           \"-=0.1\"\n//         );\n//       return profileTl;\n//     }\n//     profilesMasterTl.add(scene(), \"-=1.4\");\n//   });\n// });\n"]}