{"version":3,"file":"a5EASynPI.xHo1HSSi.mjs","names":["React.useRef","React.useState"],"sources":["https:/framerusercontent.com/modules/feXRJ0itnCTO7c2NoCYF/WMqCIxfvOFU74t1bxtyS/ImageParallaxHorizontal.js","https:/framerusercontent.com/modules/4f37Fm7HpFULTfwhGy6l/1lqkrSTxv6ChqCaGXa0u/a5EASynPI.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n *\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 300\n */export default function ImageParallaxHorizontal(props){const{image,parallax=100,...rest}=props;const containerRef=React.useRef(null);const[translateX,setTranslateX]=React.useState(0);const[ready,setReady]=React.useState(false);React.useEffect(()=>{if(typeof window===\"undefined\")return;const calculateParallax=()=>{if(!containerRef.current)return;const rect=containerRef.current.getBoundingClientRect();const windowWidth=window.innerWidth;const elementWidth=rect.width;const startPosition=windowWidth-rect.left;const endPosition=-rect.right;const totalTravel=windowWidth+elementWidth;let progress=0;if(startPosition>=0&&endPosition<=0){progress=startPosition/totalTravel;}else if(startPosition<0){progress=0;}else if(endPosition>0){progress=1;}setTranslateX(parallax-progress*parallax);setReady(true);};window.addEventListener(\"scroll\",calculateParallax);calculateParallax();return()=>window.removeEventListener(\"scroll\",calculateParallax);},[parallax]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{overflow:\"hidden\",position:\"relative\",backgroundColor:\"#ffffff\",...rest.style},children:image&&ready&&/*#__PURE__*/_jsx(\"img\",{src:image,style:{width:`calc(100% + ${parallax}px)`,height:\"100%\",objectFit:\"cover\",transform:`translateX(${-translateX}px)`},alt:\"Parallax Image\"})});}addPropertyControls(ImageParallaxHorizontal,{image:{type:ControlType.Image,title:\"Image\"},parallax:{type:ControlType.Number,title:\"Parallax\",defaultValue:100,min:0,max:300,step:10,description:\"Component made by Anton Drukarov\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageParallaxHorizontal\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"300\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"*\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageParallaxHorizontal.map","// Generated by Framer (662ecd5)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Playfair-500\",\"GF;Playfair-700\",\"GF;Playfair-700italic\",\"GF;Playfair-500italic\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"Playfair\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/playfair/v9/0nkQC9D7PO4KhmUJ5_zTZ_4MYQXznAK-TUcZXKO3UMnW6VNpe4-SiiZ4b8h5G3GutPkmetgYoSMw5ifm.woff2\",weight:\"500\"},{family:\"Playfair\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/playfair/v9/0nkQC9D7PO4KhmUJ5_zTZ_4MYQXznAK-TUcZXKO3UMnW6VNpe4-SiiZ4b8h5G3GutPnzfdgYoSMw5ifm.woff2\",weight:\"700\"},{family:\"Playfair\",source:\"google\",style:\"italic\",url:\"https://fonts.gstatic.com/s/playfair/v9/0nkSC9D7PO4KhmUJ59baVQ_iWhg0cgSrLQZDFpFUsLCFf_1ubkfQeG9KkBAQcOsAs-zcOddZqyIS4zfmNrE.woff2\",weight:\"700\"},{family:\"Playfair\",source:\"google\",style:\"italic\",url:\"https://fonts.gstatic.com/s/playfair/v9/0nkSC9D7PO4KhmUJ59baVQ_iWhg0cgSrLQZDFpFUsLCFf_1ubkfQeG9KkBAQcOsAs-zcOQJeqyIS4zfmNrE.woff2\",weight:\"500\"}]}];export const css=['.framer-IORtY .framer-styles-preset-19md8ao:not(.rich-text-wrapper), .framer-IORtY .framer-styles-preset-19md8ao.rich-text-wrapper h2 { --framer-font-family: \"Playfair\", \"Playfair Placeholder\", serif; --framer-font-family-bold: \"Playfair\", \"Playfair Placeholder\", serif; --framer-font-family-bold-italic: \"Playfair\", \"Playfair Placeholder\", serif; --framer-font-family-italic: \"Playfair\", \"Playfair Placeholder\", serif; --framer-font-open-type-features: normal; --framer-font-size: 64px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 500; --framer-letter-spacing: -0.05em; --framer-line-height: 90%; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: var(--token-a52a650f-fdc2-43f9-93f7-15f9ca573529, #000000); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }','@media (max-width: 1199px) and (min-width: 810px) { .framer-IORtY .framer-styles-preset-19md8ao:not(.rich-text-wrapper), .framer-IORtY .framer-styles-preset-19md8ao.rich-text-wrapper h2 { --framer-font-family: \"Playfair\", \"Playfair Placeholder\", serif; --framer-font-family-bold: \"Playfair\", \"Playfair Placeholder\", serif; --framer-font-family-bold-italic: \"Playfair\", \"Playfair Placeholder\", serif; --framer-font-family-italic: \"Playfair\", \"Playfair Placeholder\", serif; --framer-font-open-type-features: normal; --framer-font-size: 60px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 500; --framer-letter-spacing: -0.05em; --framer-line-height: 100%; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: var(--token-a52a650f-fdc2-43f9-93f7-15f9ca573529, #000000); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }','@media (max-width: 809px) and (min-width: 0px) { .framer-IORtY .framer-styles-preset-19md8ao:not(.rich-text-wrapper), .framer-IORtY .framer-styles-preset-19md8ao.rich-text-wrapper h2 { --framer-font-family: \"Playfair\", \"Playfair Placeholder\", serif; --framer-font-family-bold: \"Playfair\", \"Playfair Placeholder\", serif; --framer-font-family-bold-italic: \"Playfair\", \"Playfair Placeholder\", serif; --framer-font-family-italic: \"Playfair\", \"Playfair Placeholder\", serif; --framer-font-open-type-features: normal; --framer-font-size: 52px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 500; --framer-letter-spacing: -0.05em; --framer-line-height: 90%; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: var(--token-a52a650f-fdc2-43f9-93f7-15f9ca573529, #000000); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }'];export const className=\"framer-IORtY\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"wMAQG,SAAwB,EAAwB,EAAM,CAAC,GAAK,CAAC,QAAM,WAAS,IAAI,GAAG,GAAM,EAAY,EAAaA,EAAa,KAAK,CAAM,CAAC,EAAW,GAAeC,EAAe,EAAE,CAAM,CAAC,EAAM,GAAUA,EAAe,GAAM,CAAwtB,OAAvtB,MAAoB,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,MAAsB,CAAC,GAAG,CAAC,EAAa,QAAQ,OAA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