text: var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _Context=require("./Context");var _reactNative=require("react-native");var _Box=_interopRequireDefault(require("../Box"));var _useThemeProps=require("../../../hooks/useThemeProps");var _useHasResponsiveProps=require("../../../hooks/useHasResponsiveProps");var _this=this,_jsxFileName="/Users/adityajamuar/Sites/projects/nativebase/NativeBase/src/components/primitives/Slider/SliderFilledTrack.tsx";var SliderFilledTrack=function SliderFilledTrack(_ref,ref){var style=_ref.style,props=(0,_objectWithoutProperties2.default)(_ref,["style"]);var _React$useContext=_react.default.useContext(_Context.SliderContext),isReversed=_React$useContext.isReversed,colorScheme=_React$useContext.colorScheme,state=_React$useContext.state,trackLayout=_React$useContext.trackLayout,orientation=_React$useContext.orientation,isDisabled=_React$useContext.isDisabled,sliderSize=_React$useContext.sliderSize,isReadOnly=_React$useContext.isReadOnly;var sliderTrackPosition=isReversed?orientation==='vertical'?trackLayout.height-trackLayout.height*state.getThumbPercent(0):trackLayout.width-trackLayout.width*state.getThumbPercent(0):state.getThumbPercent(0)*100+'%';var resolvedProps=(0,_useThemeProps.usePropsResolution)('SliderFilledTrack',(0,_extends2.default)({size:sliderSize,colorScheme:colorScheme},props),{isDisabled:isDisabled,isReadOnly:isReadOnly});var customStyle=_reactNative.StyleSheet.create({verticalStyle:{height:sliderTrackPosition,width:sliderSize},horizontalStyle:{width:sliderTrackPosition,height:sliderSize}});if((0,_useHasResponsiveProps.useHasResponsiveProps)(props)){return null;}return _react.default.createElement(_Box.default,(0,_extends2.default)({position:"absolute"},resolvedProps,{left:orientation!=='vertical'&&!isReversed?0:undefined,bottom:orientation==='vertical'&&!isReversed?0:undefined,right:orientation!=='vertical'&&isReversed?0:undefined,top:orientation==='vertical'&&isReversed?0:undefined,style:[style,orientation==='vertical'?customStyle.verticalStyle:customStyle.horizontalStyle],ref:ref,__self:_this,__source:{fileName:_jsxFileName,lineNumber:56,columnNumber:5}}));};var _default=_react.default.forwardRef(SliderFilledTrack);exports.default=_default;
  //# sourceMappingURL=SliderFilledTrack.js.map