{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/AbrgFjrol5iIgCFlovfj/qGlfEBOIhu1k3h7UlSLq/NewsPropertyControls.js"],
  "sourcesContent": ["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers/\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/components/auto-sizing\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function NewsPropertyControls(props){// This is a React component containing an Example component\n// Replace <Example /> with your own code\n//console.log({ props })\n//const { firstHalfPart, bannersContainerPart, secondHalfPart } = props\nconst frames=props.children.map(child=>{return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"fit-content\"},children:child},Math.random());});return /*#__PURE__*/_jsx(\"div\",{style:{height:\"fit-content\",maxWidth:\"864px\",width:\"100%\",display:\"flex\",gap:24,flexDirection:\"column\"},children:frames});}// Adicionando controles de propriedades para configura\u00E7\u00E3o no Framer\n/* addPropertyControls(NewsPropertyControls, {\n    firstHalfPart: {\n        type: ControlType.ComponentInstance,\n        title: \"first half part\",\n    },\n    bannersContainerPart: {\n        type: ControlType.ComponentInstance,\n        title: \"banner container\",\n    },\n    secondHalfPart: {\n        type: ControlType.ComponentInstance,\n        title: \"second half part\",\n    },\n}) */// Add a multi-connector to your component to connect components on the canvas\naddPropertyControls(NewsPropertyControls,{children:{type:ControlType.Array,control:{type:ControlType.ComponentInstance},maxCount:5}});// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\n/* const containerStyle = {\n    height: \"100%\",\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\",\n    overflow: \"hidden\",\n} *//* export function consoleLog(Component): ComponentType {\n    return (props) => {\n        console.log(\"consoleLog\", props.children)\n        return <Component {...props} onCLick={() => console.log({ props })} />\n    }\n} */export function FirstHalfNews(Component){return props=>{var _props_children_props,_props_children;const childrenElement=props===null||props===void 0?void 0:props.children;const childrenProps=props===null||props===void 0?void 0:(_props_children=props.children)===null||_props_children===void 0?void 0:(_props_children_props=_props_children.props)===null||_props_children_props===void 0?void 0:_props_children_props.children;if(!childrenElement){console.log({childrenElement},\"testou falso\");return null;}const middle=Math.ceil(childrenProps.length/2);const isThatArray=Array.isArray(childrenProps);console.log(\"FirstHalfNews\",{childrenProps,isThatArray,middle});if(!isThatArray){return /*#__PURE__*/_jsx(Component,{...props});}const firstHalf=childrenProps.slice(0,middle);const secondHalf=childrenProps.slice(middle);const newChildrenElement={...childrenElement,props:{children:firstHalf}};return /*#__PURE__*/_jsx(Component,{...props,children:newChildrenElement});};}export function SecondHalfNews(Component){return props=>{var _props_children_props,_props_children;const childrenElement=props===null||props===void 0?void 0:props.children;const childrenProps=props===null||props===void 0?void 0:(_props_children=props.children)===null||_props_children===void 0?void 0:(_props_children_props=_props_children.props)===null||_props_children_props===void 0?void 0:_props_children_props.children;if(!childrenElement){console.log({childrenElement},\"testou falso\");return null;}const middle=Math.ceil(childrenProps.length/2);const isThatArray=Array.isArray(childrenProps);console.log(\"SecondHalfNews\",{childrenProps,isThatArray,middle});if(!isThatArray){return;}const firstHalf=childrenProps.slice(0,middle);const secondHalf=childrenProps.slice(middle);const newChildrenElement={...childrenElement,props:{children:secondHalf}};return /*#__PURE__*/_jsx(Component,{...props,children:newChildrenElement});};}\nexport const __FramerMetadata__ = {\"exports\":{\"FirstHalfNews\":{\"type\":\"reactHoc\",\"name\":\"FirstHalfNews\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"NewsPropertyControls\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"SecondHalfNews\":{\"type\":\"reactHoc\",\"name\":\"SecondHalfNews\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable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AM,SAASgB,CAAkB,CAAC,CAAE,CAAE,CAAQ,SAASC,EAAeV,EAAU,CAAC,OAAOP,GAAO,CAAC,IAAIQ,EAAsBC,EAAgB,IAAMC,EAAoDV,GAAM,SAAeW,EAAcX,GAAQ,OAA6BS,EAAgBT,EAAM,YAAY,MAAMS,IAAkB,SAAeD,EAAsBC,EAAgB,SAAS,MAAMD,IAAwB,OAA9J,OAA4KA,EAAsB,SAAS,GAAG,CAACE,EAAiB,eAAQ,IAAI,CAAC,gBAAAA,CAAe,EAAE,cAAc,EAAS,KAAM,IAAME,EAAO,KAAK,KAAKD,EAAc,OAAO,CAAC,EAAQE,EAAY,MAAM,QAAQF,CAAa,EAAmE,GAAjE,QAAQ,IAAI,iBAAiB,CAAC,cAAAA,EAAc,YAAAE,EAAY,OAAAD,CAAM,CAAC,EAAK,CAACC,EAAa,OAAQ,IAAMC,EAAUH,EAAc,MAAM,EAAEC,CAAM,EAAQG,EAAWJ,EAAc,MAAMC,CAAM,EAAQI,EAAmB,CAAC,GAAGN,EAAgB,MAAM,CAAC,SAASK,CAAU,CAAC,EAAE,OAAoBZ,EAAKI,EAAU,CAAC,GAAGP,EAAM,SAASgB,CAAkB,CAAC,CAAE,CAAE",
  "names": ["NewsPropertyControls", "props", "frames", "child", "p", "addPropertyControls", "ControlType", "FirstHalfNews", "Component", "_props_children_props", "_props_children", "childrenElement", "childrenProps", "middle", "isThatArray", "firstHalf", "secondHalf", "newChildrenElement", "SecondHalfNews"]
}
