{"version":3,"file":"useDirection-CJD1NZiM.js","sources":["../../node_modules/reka-ui/dist/ConfigProvider/ConfigProvider.js","../../node_modules/reka-ui/dist/shared/useDirection.js"],"sourcesContent":["import { defineComponent, toRefs, renderSlot } from 'vue';\nimport { c as createContext } from '../shared/createContext.js';\n\nconst [injectConfigProviderContext, provideConfigProviderContext] = createContext(\"ConfigProvider\");\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n ...{\n inheritAttrs: false\n },\n __name: \"ConfigProvider\",\n props: {\n dir: { default: \"ltr\" },\n locale: { default: \"en\" },\n scrollBody: { type: [Boolean, Object], default: true },\n nonce: { default: undefined },\n useId: { type: Function, default: undefined }\n },\n setup(__props) {\n const props = __props;\n const { dir, locale, scrollBody, nonce } = toRefs(props);\n provideConfigProviderContext({\n dir,\n locale,\n scrollBody,\n nonce,\n useId: props.useId\n });\n return (_ctx, _cache) => {\n return renderSlot(_ctx.$slots, \"default\");\n };\n }\n});\n\nexport { _sfc_main as _, injectConfigProviderContext as i };\n//# sourceMappingURL=ConfigProvider.js.map\n","import { ref, computed } from 'vue';\nimport { i as injectConfigProviderContext } from '../ConfigProvider/ConfigProvider.js';\n\nfunction useDirection(dir) {\n const context = injectConfigProviderContext({\n dir: ref(\"ltr\")\n });\n return computed(() => dir?.value || context.dir?.value || \"ltr\");\n}\n\nexport { useDirection as u };\n//# sourceMappingURL=useDirection.js.map\n"],"names":["injectConfigProviderContext","provideConfigProviderContext","createContext","useDirection","dir","context","ref","computed","value","_a"],"mappings":"2aAGK,MAAEA,EAA6BC,GAAgCC,EAAc,kBCAlF,SAASC,EAAaC,GACpB,MAAMC,EAAUL,EAA4B,CAC1CI,IAAKE,EAAI,SAEX,OAAOC,GAAS,WAAM,OAAA,MAAAH,OAAA,EAAAA,EAAKI,SAAS,OAAAC,EAAAJ,EAAQD,UAAR,EAAAK,EAAaD,QAAS,KAAA,GAC5D","x_google_ignoreList":[0,1]}