{"version":3,"file":"Articles.zd8IySsH.mjs","names":[],"sources":["https:/framerusercontent.com/modules/4m2AFLwwwkXvTHYZFwPT/BfvJkBHUexxhvF63J8sr/Articles.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";const createRandomChildrenComponent=numElements=>{return Component=>{return props=>{const ref=useRef(null);useEffect(()=>{if(ref.current){const anchorElements=ref.current.querySelectorAll(\"a\");const anchorsArray=anchorElements&&Array.from(anchorElements);if(anchorsArray&&anchorsArray.length>numElements){// Shuffle the array\nanchorsArray.sort(()=>.5-Math.random());// Keep the first numElements elements and hide the rest\nanchorsArray.slice(numElements).forEach(anchor=>{anchor.remove();});}}},[numElements]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref});};};};export function RandomChildren1(Component){return createRandomChildrenComponent(1)(Component);}export function RandomChildren2(Component){return createRandomChildrenComponent(2)(Component);}export function RandomChildren3(Component){return createRandomChildrenComponent(3)(Component);}export function RandomChildren4(Component){return createRandomChildrenComponent(4)(Component);}export function RandomChildren5(Component){return createRandomChildrenComponent(5)(Component);}export function RandomChildren6(Component){return createRandomChildrenComponent(6)(Component);}export function RandomChildren7(Component){return createRandomChildrenComponent(7)(Component);}export function RandomChildren8(Component){return createRandomChildrenComponent(8)(Component);}export function RandomChildren9(Component){return createRandomChildrenComponent(9)(Component);}export function RandomChildren10(Component){return createRandomChildrenComponent(10)(Component);}\nexport const __FramerMetadata__ = {\"exports\":{\"RandomChildren6\":{\"type\":\"reactHoc\",\"name\":\"RandomChildren6\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RandomChildren7\":{\"type\":\"reactHoc\",\"name\":\"RandomChildren7\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RandomChildren3\":{\"type\":\"reactHoc\",\"name\":\"RandomChildren3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RandomChildren1\":{\"type\":\"reactHoc\",\"name\":\"RandomChildren1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RandomChildren4\":{\"type\":\"reactHoc\",\"name\":\"RandomChildren4\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RandomChildren8\":{\"type\":\"reactHoc\",\"name\":\"RandomChildren8\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RandomChildren5\":{\"type\":\"reactHoc\",\"name\":\"RandomChildren5\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RandomChildren2\":{\"type\":\"reactHoc\",\"name\":\"RandomChildren2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RandomChildren9\":{\"type\":\"reactHoc\",\"name\":\"RandomChildren9\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RandomChildren10\":{\"type\":\"reactHoc\",\"name\":\"RandomChildren10\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Articles.map"],"mappings":"mKAEkV,SAAgB,EAAgB,EAAU,CAAC,MAAO,GAA8B,EAAE,CAAC,EAAU,AAAE,gBAF5V,AAArF,GAA2C,IAAoC,CAAM,EAA8B,GAAqB,GAAmB,GAAO,CAAC,IAAM,EAAI,EAAO,KAAK,CAElG,MAFmG,GAAU,IAAI,CAAC,GAAG,EAAI,QAAQ,CAAC,IAAM,EAAe,EAAI,QAAQ,iBAAiB,IAAI,CAAO,EAAa,GAAgB,MAAM,KAAK,EAAe,CAAC,AAAG,GAAc,EAAa,OAAO,IACnX,EAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,CAAC,CACvC,EAAa,MAAM,EAAY,CAAC,QAAQ,GAAQ,CAAC,EAAO,QAAQ,AAAE,EAAC,CAAG,CAAC,EAAC,CAAC,CAAY,EAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAU,KAAI,EAAC,AAAE"}