{"version":3,"names":["ScrollAreaRootDataAttributes","scrollAreaDataAttrs","state","hasOverflowX","undefined","hasOverflowY","overflowXStart","overflowXEnd","overflowYStart","overflowYEnd"],"sources":["state-attrs.ts"],"sourcesContent":["import type { Accessor } from \"solid-js\";\nimport type { ScrollAreaRootState } from \"../root/scroll-area-root-context.ts\";\nimport { ScrollAreaRootDataAttributes } from \"../root/scroll-area-root-data-attributes.ts\";\n\n/**\n * Reactive `data-*` getter bag shared by `<ScrollArea.Root>`,\n * `<ScrollArea.Viewport>`, `<ScrollArea.Content>`, and the scrollbar parts.\n * Each key is a live getter reading through the supplied `state` accessor —\n * safe to spread into `mergeRootProps` without losing reactivity.\n *\n * Mirrors `scrollAreaStateAttributesMapping` (see `../root/state-attributes-mapping.ts`):\n * `cornerHidden` is intentionally not projected. `data-scrolling` is omitted\n * because the legacy mapping never included it (the root state shape carries\n * the field but the mapping skipped it under the default projection rule that\n * `false` ⇒ no attr — present here for completeness so that `true` projects).\n *\n * Established as part of §1 wave 3 alongside `numberFieldDataAttrs` and\n * `sliderDataAttrs`.\n */\nexport function scrollAreaDataAttrs(\n\tstate: Accessor<ScrollAreaRootState>,\n): Record<string, string | undefined> {\n\treturn {\n\t\tget [ScrollAreaRootDataAttributes.hasOverflowX](): \"\" | undefined {\n\t\t\treturn state().hasOverflowX ? \"\" : undefined;\n\t\t},\n\t\tget [ScrollAreaRootDataAttributes.hasOverflowY](): \"\" | undefined {\n\t\t\treturn state().hasOverflowY ? \"\" : undefined;\n\t\t},\n\t\tget [ScrollAreaRootDataAttributes.overflowXStart](): \"\" | undefined {\n\t\t\treturn state().overflowXStart ? \"\" : undefined;\n\t\t},\n\t\tget [ScrollAreaRootDataAttributes.overflowXEnd](): \"\" | undefined {\n\t\t\treturn state().overflowXEnd ? \"\" : undefined;\n\t\t},\n\t\tget [ScrollAreaRootDataAttributes.overflowYStart](): \"\" | undefined {\n\t\t\treturn state().overflowYStart ? \"\" : undefined;\n\t\t},\n\t\tget [ScrollAreaRootDataAttributes.overflowYEnd](): \"\" | undefined {\n\t\t\treturn state().overflowYEnd ? \"\" : undefined;\n\t\t},\n\t};\n}\n"],"mappings":"AAEA,SAASA,4BAA4B,QAAQ,6CAA6C;;AAE1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CAClCC,KAAoC,EACC;EACrC,OAAO;IACN,KAAKF,4BAA4B,CAACG,YAAY,IAAoB;MACjE,OAAOD,KAAK,CAAC,CAAC,CAACC,YAAY,GAAG,EAAE,GAAGC,SAAS;IAC7C,CAAC;IACD,KAAKJ,4BAA4B,CAACK,YAAY,IAAoB;MACjE,OAAOH,KAAK,CAAC,CAAC,CAACG,YAAY,GAAG,EAAE,GAAGD,SAAS;IAC7C,CAAC;IACD,KAAKJ,4BAA4B,CAACM,cAAc,IAAoB;MACnE,OAAOJ,KAAK,CAAC,CAAC,CAACI,cAAc,GAAG,EAAE,GAAGF,SAAS;IAC/C,CAAC;IACD,KAAKJ,4BAA4B,CAACO,YAAY,IAAoB;MACjE,OAAOL,KAAK,CAAC,CAAC,CAACK,YAAY,GAAG,EAAE,GAAGH,SAAS;IAC7C,CAAC;IACD,KAAKJ,4BAA4B,CAACQ,cAAc,IAAoB;MACnE,OAAON,KAAK,CAAC,CAAC,CAACM,cAAc,GAAG,EAAE,GAAGJ,SAAS;IAC/C,CAAC;IACD,KAAKJ,4BAA4B,CAACS,YAAY,IAAoB;MACjE,OAAOP,KAAK,CAAC,CAAC,CAACO,YAAY,GAAG,EAAE,GAAGL,SAAS;IAC7C;EACD,CAAC;AACF","ignoreList":[]}