{"version":3,"file":"StudyPageGtmEvents.chunk.b4d8bc4f85dd0e88dd25.js","mappings":"0KAIO,MAAMA,EAA0DC,IACnE,MAAM,QAAEC,GAAYD,EAIpB,OAFAE,EAAAA,EAAAA,GAAsBD,GAEf,IAAI,C,kFCLR,SAASC,EAAsBD,GAClCE,EAAAA,WAAgB,KACRF,GAA8B,IAAnBA,EAAQG,QACnBC,EAAAA,EAAyBC,kBAAkBL,EAC/C,GACD,CAACA,GACR,C","sources":["webpack://Kristiania.Web/./Features/Pages/StudyPageBase/StudyPageGtmEvents.ts","webpack://Kristiania.Web/./Features/StudyPage/Campus/Utils/Hooks/useStudyPageGtmEvents.tsx"],"sourcesContent":["import type * as React from 'react';\nimport { useStudyPageGtmEvents } from '~/Features/StudyPage/Campus/Utils/Hooks/useStudyPageGtmEvents';\nimport type { AddToApplicationViewModel } from '~/Partials/AddToApplication/AddToApplicationViewModel.csharp';\n\nexport const StudyPageGtmEvents: React.FC = props => {\n const { choices } = props;\n\n useStudyPageGtmEvents(choices);\n\n return null;\n};\n","import * as React from 'react';\nimport type { ApplicationChoiceDto } from '~/Features/Search/ApplicationChoice/Controller/ApplicationChoiceDto.csharp';\nimport { GtmCommerceEventsHandler } from '~/Partials/GoogleTagManager/GtmCommerceEventsHandler';\n\nexport function useStudyPageGtmEvents(choices?: ApplicationChoiceDto[]) {\n React.useEffect(() => {\n if (choices && choices.length !== 0) {\n GtmCommerceEventsHandler.pushProductDetail(choices);\n }\n }, [choices]);\n}\n"],"names":["StudyPageGtmEvents","props","choices","useStudyPageGtmEvents","React","length","GtmCommerceEventsHandler","pushProductDetail"],"sourceRoot":""}