{"version":3,"sources":["../../src/switch/UISwitch.parts.ts","../../src/switch/root/UISwitchRoot.tsx","../../src/switch/index.ts"],"sourcesContent":["export { SwitchControl as Control, SwitchThumb as Thumb } from 'primereact/switch';\nexport { UISwitchRoot as Root } from './root';\n","'use client';\nimport { Component } from '@primereact/core/component';\nimport { styles } from '@primereact/styles/switch';\nimport { withComponent } from '@primereact/ui/base';\nimport { mergeDefaultProps } from '@primeuix/utils';\nimport { SwitchRoot, defaultRootProps } from 'primereact/switch';\nimport * as React from 'react';\n\nexport const UISwitchRoot = withComponent({\n    name: 'Switch.Root',\n    defaultProps: defaultRootProps,\n    render(instance) {\n        const rootProps = mergeDefaultProps({ styles }, instance.inProps);\n\n        return <Component as={SwitchRoot} attrs={rootProps} />;\n    }\n});\n","export * as Switch from './UISwitch.parts';\n\n// Named runtime exports to maximize tree-shaking\nexport { defaultControlProps, defaultRootProps, defaultThumbProps, SwitchControl, SwitchProps, SwitchProvider, SwitchThumb, useSwitchContext } from 'primereact/switch';\nexport { UISwitchRoot as SwitchRoot } from './root';\n"],"mappings":"0FAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,EAAA,SAAAC,EAAA,UAAAC,IAAA,OAA0B,iBAAjBF,EAAyC,eAAfE,MAA4B,oBCC/D,OAAS,aAAAC,MAAiB,6BAC1B,OAAS,UAAAC,MAAc,4BACvB,OAAS,iBAAAC,MAAqB,sBAC9B,OAAS,qBAAAC,MAAyB,kBAClC,OAAS,cAAAC,EAAY,oBAAAC,MAAwB,oBAC7C,UAAYC,MAAW,QAEhB,IAAMC,EAAeL,EAAc,CACtC,KAAM,cACN,aAAcG,EACd,OAAOG,EAAU,CACb,IAAMC,EAAYN,EAAkB,CAAE,OAAAF,CAAO,EAAGO,EAAS,OAAO,EAEhE,OAAO,gBAACR,EAAA,CAAU,GAAII,EAAY,MAAOK,EAAW,CACxD,CACJ,CAAC,ECbD,OAAS,uBAAAC,EAAqB,oBAAAC,EAAkB,qBAAAC,EAAmB,iBAAAC,EAAe,eAAAC,EAAa,kBAAAC,EAAgB,eAAAC,EAAa,oBAAAC,MAAwB","names":["UISwitch_parts_exports","__export","SwitchControl","UISwitchRoot","SwitchThumb","Component","styles","withComponent","mergeDefaultProps","SwitchRoot","defaultRootProps","React","UISwitchRoot","instance","rootProps","defaultControlProps","defaultRootProps","defaultThumbProps","SwitchControl","SwitchProps","SwitchProvider","SwitchThumb","useSwitchContext"]}