{"version":3,"sources":["jsdelivr-header.js","/gh/Ezra-Siton-UIX/custom_code_for_webflow_websites@main/Greenfield/enter_anination_green.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,SAAS,iBAAiB,oBAAqB,IAGpC,KAAK,aAGX,IACD,CAEE,UAAW,qBACX,SAAU,uBAEX,IAEC,IAAI,UAAE,EAAS,SAAE,GAAa,EAAQ,WAEZ,KAAK,MAAM,QAAQ,iBAC3B,SAAQ,CAAC,EAAkB,KAG3C,IAAI,EAAS,EAAiB,aAAa,UACvC,EAAS,EAAiB,aAAa,UACvC,EAAiB,EAAiB,aAAa,kBAC/C,EAAgB,EAAiB,aAAa,iBAC9C,EAAQ,EAAiB,aAAa,SACtC,EAAkB,EAAiB,aAAa,mBACpD,MAAM,EAAuB,IAEP,MAAnB,IACD,EAAkB,GAGpB,IAAI,EAAQ,EAAiB,aAAa,SAE9B,MAAT,GAA0B,IAAT,IAClB,EAAQ,GAIG,MAAV,GAA4B,IAAV,IACnB,EAAS,GAGE,MAAV,GAA4B,IAAV,IACnB,EAAS,GAGW,OAAnB,GAA8C,mBAAnB,IAC5B,EAAS,EACT,EAAS,GAGU,kBAAlB,IACD,EAAS,EACT,EAAS,GAGU,OAAlB,GAA4C,kBAAlB,IAC3B,GAAU,EACV,EAAS,GAGS,iBAAjB,IACD,GAAS,IACT,EAAS,GAGC,MAAT,IACD,EAAQ,aAMe,KAAK,SAAS,CAErC,cAAe,CACb,QAAS,EACT,YAAY,EACZ,gBAAiB,EACjB,SAAS,EACT,KAAK,EACL,MAAO,EACP,IAAK,aACL,MAAO,EAAY,EAAI,GAEzB,SAAU,CACR,KAAM,yBAMS,KACjB,EACA,CACE,QAAS,EAAY,EAAI,EACzB,EAAG,EAAY,OAAO,GAAU,GAChC,EAAG,EAAY,OAAO,GAAU,EAChC,MAAO,GAEX,GACA,GAMF","file":"/gh/Ezra-Siton-UIX/custom_code_for_webflow_websites@main/Greenfield/enter_anination_green.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /gh/Ezra-Siton-UIX/custom_code_for_webflow_websites@main/Greenfield/enter_anination_green.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","document.addEventListener(\"DOMContentLoaded\", (event) => {\n\n  // create\n  let mm = gsap.matchMedia();\n  const breakPoint = 800;\n\n  mm.add(\n    {\n      // set up any number of arbitrarily-named conditions. The function below will be called when ANY of them match.\n      isDesktop: `(min-width: ${breakPoint}px)`,\n      isMobile: `(max-width: ${breakPoint - 1}px)`,\n    },\n    (context) => {\n      // context.conditions has a boolean property for each condition defined above indicating if it's matched or not.\n      let { isDesktop, isMobile } = context.conditions;\n\n      const parallax_triggers = gsap.utils.toArray(\"[trigger_box]\");\n      parallax_triggers.forEach((parallax_trigger, i) => {\n\n\n        let from_x = parallax_trigger.getAttribute(\"from_x\");\n        let from_y = parallax_trigger.getAttribute(\"from_y\");\n        let from_right_top = parallax_trigger.getAttribute(\"from_right_top\");\n        let from_left_top = parallax_trigger.getAttribute(\"from_left_top\");\n        let start = parallax_trigger.getAttribute(\"start\");\n        let refreshPriority = parallax_trigger.getAttribute(\"refreshPriority\");\n        const from_y_deafult_value = 100;\n\n        if(refreshPriority == null){\n          refreshPriority = 1;\n        }\n\n        let delay = parallax_trigger.getAttribute(\"delay\");\n\n        if(delay == null || delay == \"\"){\n          delay = 0;\n        }\n\n\n        if(from_y == null || from_y == \"\"){\n          from_y = from_y_deafult_value;\n        }\n\n        if(from_x == null || from_x == \"\"){\n          from_x = 0;\n        }\n\n        if(from_right_top !== null && from_right_top !== \"from_right_top\"){\n          from_x = from_right_top;\n          from_y = from_right_top;\n        }\n\n        if(from_right_top == \"from_right_top\"){\n          from_x = from_y_deafult_value;\n          from_y = from_y_deafult_value;\n        }\n\n        if(from_left_top !== null && from_left_top !== \"from_left_top\"){\n          from_x = -from_left_top;\n          from_y = from_left_top;\n        }\n\n        if(from_left_top == \"from_left_top\"){\n          from_x = -from_y_deafult_value;\n          from_y = from_y_deafult_value;\n        }\n\n        if(start == null){\n          start = \"-93% 100%\"; //      start = \"-95% 100%\";\n        }\n\n        // var parallax_section = parallax_trigger.querySelector(\"[parallax_section]\");\n        //var image = parallax_trigger.querySelector(\"img\");\n        //var second_section = parallax_trigger.querySelector(\"[second_section]\");\n        let tl_enter_animation = gsap.timeline({\n          // yes, we can add it to an entire timeline!\n          scrollTrigger: {\n            trigger: parallax_trigger,\n            pinSpacing: false,\n            refreshPriority: refreshPriority,\n            markers: false,\n            pin: false, // pin the trigger element while active\n            start: start, // when the center of the trigger hits the center of the viewport\n            end: \"center 94%\",\n            scrub: isDesktop ? 3 : 1, // smooth scrubbing, takes 1 second to \"catch up\" to the scrollbar\n          },\n          defaults: {\n            ease: \"slow(0.7,0.7,false)\",\n          },\n        });\n\n\n        /* ANIMATION */\n        tl_enter_animation.from(\n          parallax_trigger,\n          {\n            opacity: isDesktop ? 0 : 1,\n            y: isDesktop ? Number(from_y) : 50,\n            x: isDesktop ? Number(from_x) : 0,\n            delay: delay\n          }\n        )\n      });/* end for each */\n\n\n\n\n\n    }); /* end match media */\n\n\n});/* end DOMContentLoaded */\n\n\n\n\n"]}