{
  "version": 3,
  "sources": ["ssg: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": "uDAA+E,IAAMA,EAA8BC,GAAqBC,GAAmBC,GAAO,CAAC,IAAMC,EAAIC,EAAO,IAAI,EAAE,OAAAC,EAAU,IAAI,CAAC,GAAGF,EAAI,QAAQ,CAAC,IAAMG,EAAeH,EAAI,QAAQ,iBAAiB,GAAG,EAAQI,EAAaD,GAAgB,MAAM,KAAKA,CAAc,EAAKC,GAAcA,EAAa,OAAOP,IACnXO,EAAa,KAAK,IAAI,GAAG,KAAK,OAAO,CAAC,EACtCA,EAAa,MAAMP,CAAW,EAAE,QAAQQ,GAAQ,CAACA,EAAO,OAAO,CAAE,CAAC,EAAG,CAAC,EAAE,CAACR,CAAW,CAAC,EAAsBS,EAAKR,EAAU,CAAC,GAAGC,EAAM,IAAIC,CAAG,CAAC,CAAE,EAA2M,SAASO,EAAgBC,EAAU,CAAC,OAAOC,EAA8B,CAAC,EAAED,CAAS,CAAE",
  "names": ["createRandomChildrenComponent", "numElements", "Component", "props", "ref", "pe", "ue", "anchorElements", "anchorsArray", "anchor", "p", "RandomChildren3", "Component", "createRandomChildrenComponent"]
}
