'use strict';
import { eventListenerEvents } from '../../../../fd-toolbox/constants/events.js';
import { wizardStepperStepContentKinds } from './fd-wizard-constants.js';

var __defProp=Object['defineProperty'],__name=(_0x550395,_0x50c703)=>__defProp(_0x550395,'name',{'value':_0x50c703,'configurable':!![]});function getVisibleSteps(_0x2420aa,_0x1db3e6){const _0x5c5f6e=0x1398+-0xacd+-0x8c8;let _0x412fcf,_0x201cbd=_0x1db3e6;if(_0x1db3e6===_0x2420aa['length']-(0x8*0x10d+-0xc07+0x3a0))_0x412fcf=_0x2420aa['slice'](-_0x5c5f6e);else {if(_0x1db3e6<=-0x406+0x1*0xc61+-0x85a)_0x412fcf=_0x2420aa['slice'](-0x5f*0x5e+0xb2d+-0x15*-0x121,_0x5c5f6e);else {const _0x14007c=Math['max'](-0x2041+0x2b*-0xe5+0x124*0x3e,_0x1db3e6-Math['floor'](_0x5c5f6e/(0x13*0x9c+-0x1fc+0x332*-0x3)));_0x412fcf=_0x2420aa['slice'](_0x14007c,_0x14007c+_0x5c5f6e);}}return _0x201cbd=_0x412fcf['indexOf'](_0x2420aa[_0x1db3e6]),{'visibleSteps':_0x412fcf,'adjustedCurrentStep':_0x201cbd};}__name(getVisibleSteps,'getVisibleSteps');function isMobileChecker(_0xe94a7a){const _0x190793=__name(()=>checkIsMobile(_0xe94a7a),'resizeListener');return checkIsMobile(_0xe94a7a),window['addEventListener'](eventListenerEvents['resize'],_0x190793),()=>{window['removeEventListener'](eventListenerEvents['resize'],_0x190793);};}__name(isMobileChecker,'isMobileChecker');function getWizardStepperBackgroundClass(_0x2c4524,_0x4c74c3,_0x408b97,_0x25dc18){const _0x42d788=_0x4c74c3?_0x25dc18:_0x408b97;if(_0x2c4524>_0x42d788)return 'bg-muted-foreground';return 'bg-gradient-accent';}__name(getWizardStepperBackgroundClass,'getWizardStepperBackgroundClass');function getWizardStepperStepContent(_0x1562d4,_0x2694b7,_0x175901,_0x19b9ec,_0x1fb790,_0x195f2e){let _0xb5a464={'kind':wizardStepperStepContentKinds['number'],'value':_0x175901?_0x19b9ec['indexOf'](_0x1562d4)+(-0x85c+0x2698+-0x1*0x1e3b):_0x2694b7+(-0x3*-0x8cd+0xc69*-0x3+0xad5)};if(_0x2694b7<(_0x175901?_0x195f2e:_0x1fb790))_0xb5a464={'kind':wizardStepperStepContentKinds['completed']};else _0x1562d4['imageUrl']&&(_0xb5a464={'kind':wizardStepperStepContentKinds['image'],'imageUrl':_0x1562d4['imageUrl']});return _0xb5a464;}__name(getWizardStepperStepContent,'getWizardStepperStepContent');function checkIsMobile(_0x110d3c){_0x110d3c(window['matchMedia']('(max-width:\x20600px)')['matches']);}__name(checkIsMobile,'checkIsMobile');

export { getVisibleSteps, getWizardStepperBackgroundClass, getWizardStepperStepContent, isMobileChecker };
