{"version":3,"file":"SkeletonAnimation.cjs","sources":["../../../../../src/components/loader/skeletons/SkeletonAnimation.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport React from \"react\";\nimport type { SkeletonAnimationProps } from \"../types.js\";\nimport { useDelayedRender } from \"../useDelayedRender.js\";\n\nexport const SkeletonAnimation = ({\n    className,\n    delay = 0,\n    textDescription = \"Vennligst vent\",\n    ...rest\n}: SkeletonAnimationProps) => {\n    const renderComponent = useDelayedRender(delay);\n\n    if (delay && !renderComponent) {\n        return null;\n    }\n\n    return (\n        <div\n            className={clsx(\"jkl-skeleton-animation\", className)}\n            aria-busy=\"true\"\n            aria-label={textDescription}\n            {...rest}\n        />\n    );\n};\n"],"names":["className","delay","textDescription","rest","renderComponent","useDelayedRender","jsx","clsx"],"mappings":"sPAKiC,EAC7BA,UAAAA,EACAC,MAAAA,EAAQ,EACRC,gBAAAA,EAAkB,oBACfC,MAEH,MAAMC,EAAkBC,EAAAA,iBAAiBJ,GAEzC,OAAIA,IAAUG,EACH,KAIPE,EAAAA,IAAC,MAAA,CACGN,UAAWO,EAAAA,KAAK,yBAA0BP,GAC1C,YAAU,OACV,aAAYE,KACRC"}