{"version":3,"file":"ColumnBehaviour.BiBrTaop.mjs","names":["_Fragment","useState"],"sources":["https:/framerusercontent.com/modules/1n5BXhg6UbMeZaTVuHjB/AaKJXV5wAMExZN4H6l6G/ColumnBehaviour.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,forwardRef}from\"react\";import{useState}from\"react\";const isLargeScreen=width=>{return width>1199;};const useLargeScreen=()=>{const[isLarge,setIsLarge]=useState(false);useEffect(()=>{const handleResize=()=>{setIsLarge(isLargeScreen(window.innerWidth));};handleResize();window.addEventListener(\"resize\",handleResize);return()=>window.removeEventListener(\"resize\",handleResize);},[]);return isLarge;};function ComponentWrapper({direction,children}){return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n            @media(max-width: 1199px) {\n                .custom-override-class {\n                    flex-direction: ${direction} !important;\n                }\n                .custom-override-class > * {\n                    width: 100% !important;\n                    flex-shrink: 1 !important;\n                    flex-grow: 0 !important;\n                    flex-basis: auto !important;\n                }\n            }`}),children]});}export function Column(Component){return /*#__PURE__*/forwardRef(({className,...props},ref)=>{const isLarge=useLargeScreen();return /*#__PURE__*/_jsx(ComponentWrapper,{direction:\"column\",children:/*#__PURE__*/_jsx(Component,{ref:ref,className:className+\" custom-override-class\",...props})});});}export function ColumnReverse(Component){return /*#__PURE__*/forwardRef(({className,...props},ref)=>{const isLarge=useLargeScreen();return /*#__PURE__*/_jsx(ComponentWrapper,{direction:\"column-reverse\",children:/*#__PURE__*/_jsx(Component,{ref:ref,className:className+\" custom-override-class\",...props})});});}\nexport const __FramerMetadata__ = {\"exports\":{\"ColumnReverse\":{\"type\":\"reactHoc\",\"name\":\"ColumnReverse\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Column\":{\"type\":\"reactHoc\",\"name\":\"Column\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ColumnBehaviour.map"],"mappings":"gOAA8e,SAAS,EAAiB,CAAC,YAAU,YAAU,CAAC,OAAoB,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;;;sCAG3kB,EAAU;;;;;;;;eAQjC,CAAC,CAAC,EAAS,CAAC,CAAC,CAAE,SAAgB,EAAO,EAAU,CAAC,OAAoB,GAAY,CAAC,YAAU,GAAG,GAAO,KAAqB,GAAgB,CAAqB,EAAK,EAAiB,CAAC,UAAU,SAAS,SAAsB,EAAK,EAAU,CAAK,MAAI,UAAU,EAAU,yBAAyB,GAAG,EAAM,CAAC,CAAC,CAAC,EAAG,CAAE,SAAgB,EAAc,EAAU,CAAC,OAAoB,GAAY,CAAC,YAAU,GAAG,GAAO,KAAqB,GAAgB,CAAqB,EAAK,EAAiB,CAAC,UAAU,iBAAiB,SAAsB,EAAK,EAAU,CAAK,MAAI,UAAU,EAAU,yBAAyB,GAAG,EAAM,CAAC,CAAC,CAAC,EAAG,0BAX1iB,IAAwC,CAAkC,EAAc,GAAe,EAAM,KAAa,MAAmB,CAAC,GAAK,CAAC,EAAQ,GAAYC,EAAS,GAAM,CAAuN,OAAtN,MAAc,CAAC,IAAM,MAAiB,CAAC,EAAW,EAAc,EAAO,WAAW,CAAC,EAAiE,OAA9D,GAAc,CAAC,EAAO,iBAAiB,SAAS,EAAa,KAAW,EAAO,oBAAoB,SAAS,EAAa,EAAG,EAAE,CAAC,CAAQ"}