{"version":3,"sources":["webpack:///./src/components/ProductFlow/ProductSetupStepper/ProgramInformation/testData.ts"],"names":["setDatesForNewEstimate","hasCheer","config","getters","productOfferings","productOfferingConfig","firstPracticeDateEstimate","toDate","playerEstimate","sportCoachEstimate","cheerEstimate","cheerCoachEstimate","commit","setProductOfferingConfig","item"],"mappings":"kHAAA,+GAKM,SAAUA,EAAuBC,GACrC,IAAMC,EAAS,uBAAU,OAAMC,QAAQC,iBAAiBC,uBACnDH,EAAOI,4BACVJ,EAAOI,0BAA4B,MAAQC,UAExCL,EAAOM,iBACVN,EAAOM,eAAiB,KAErBN,EAAOO,qBACVP,EAAOO,mBAAqB,IAE1BR,IAAaC,EAAOQ,gBACtBR,EAAOQ,cAAgB,IAErBT,IAAaC,EAAOS,qBACtBT,EAAOS,mBAAqB,GAE9B,OAAMC,OAAOR,iBAAiBS,yBAAyB,CAAEC,KAAMZ","file":"js/chunk-2d0da315.c5d51a6a.js","sourcesContent":["import dayjs from 'dayjs'\nimport { SavedProductOfferingConfig } from '@/GeneratedTypes/SavedProductOfferingConfig'\nimport store from '@/store'\nimport { cloneDeep } from 'lodash'\n\nexport function setDatesForNewEstimate(hasCheer: boolean) {\n const config = cloneDeep(store.getters.productOfferings.productOfferingConfig) as SavedProductOfferingConfig\n if (!config.firstPracticeDateEstimate) {\n config.firstPracticeDateEstimate = dayjs().toDate()\n }\n if (!config.playerEstimate) {\n config.playerEstimate = 100\n }\n if (!config.sportCoachEstimate) {\n config.sportCoachEstimate = 10\n }\n if (hasCheer && !config.cheerEstimate) {\n config.cheerEstimate = 75\n }\n if (hasCheer && !config.cheerCoachEstimate) {\n config.cheerCoachEstimate = 7\n }\n store.commit.productOfferings.setProductOfferingConfig({ item: config })\n}\n"],"sourceRoot":""}