{"version":3,"file":"index.CDZikr0S.js","sources":["../../../../../../src/lib/utils/scholarship-wizard/types/index.ts","../../../../../../src/lib/utils/scholarship-wizard/store.ts","../../../../../../src/lib/utils/scholarship-wizard/index.ts"],"sourcesContent":["import type { Readable } from 'svelte/store';\n\nexport enum Steps {\n STEP_0 = 0,\n STEP_1 = 1,\n STEP_2 = 2,\n STEP_3 = 3,\n STEP_4 = 4,\n STEP_5 = 5,\n STEP_6 = 6,\n}\n\nexport interface DataStep1 {\n bsid: string;\n id: string;\n name: string;\n surname: string;\n email: string;\n phone: string;\n subscribe: boolean;\n profilingConsent: boolean;\n businessUseConsent: boolean;\n birthday: string;\n birthplace: string;\n province: string;\n linkedinProfile: string;\n}\n\nexport interface DataStep2 {\n primarySession?: {\n slug: string;\n sessionId: number;\n productCode: string;\n category: string;\n courseTypeFull: string;\n courseTitle: string;\n price: number;\n discountPrice: number;\n lessonMode: string;\n brochureAvailable: boolean;\n brochureBooking: boolean;\n brochureUrl: string;\n courseUrl: string;\n courseStartDate: string;\n courseReferrerName: string;\n courseReferrerEmail: string;\n };\n secondarySession?: {\n slug: string;\n sessionId: string;\n productCode: string;\n category: string;\n courseTypeFull: string;\n courseTitle: string;\n price: number;\n discountPrice: number;\n lessonMode: string;\n brochureAvailable: boolean;\n brochureBooking: boolean;\n brochureUrl: string;\n courseUrl: string;\n courseStartDate: string;\n courseReferrerName: string;\n courseReferrerEmail: string;\n };\n chooseLater: boolean;\n}\n\nexport interface DataStep3 {\n graduation: string;\n graduationAtInstitute: string;\n graduationVote: string;\n graduationYear: string;\n specialistGraduation: string;\n specialistAtInstitute: string;\n specialistThesisTitle: string;\n specialistVote: string;\n specialistStartYear: string;\n specialistEndYear: string;\n masterGraduation: string;\n masterAtInstitute: string;\n masterThesisTitle: string;\n masterVote: string;\n masterStartYear: string;\n masterEndYear: string;\n}\n\nexport interface DataStep4 {\n lastExperienceStartDate: string;\n lastExperienceEndDate: string;\n lastExperienceRole: string;\n lastExperienceCompany: string;\n secondExperienceStartDate: string;\n secondExperienceEndDate: string;\n secondExperienceRole: string;\n secondExperienceCompany: string;\n}\n\nexport interface DataStep5 {\n extraCurricularActivity: string;\n hobbyAndInterests: string;\n}\n\nexport interface DataStep6 {\n knowIsee: string;\n iseeRange: string;\n economicPosition: string;\n}\n\n\nexport interface ScholarshipWizard {\n /**\n * Has the wizard been started?\n */\n readonly hasStarted: Readable;\n\n /**\n * The current step of the wizard\n */\n readonly currentStep: Readable;\n\n /**\n * Does the wizard have a previous step?\n */\n readonly hasPreviousStep: Readable;\n\n /**\n * Does the wizard have a next step?\n */\n readonly hasNextStep: Readable;\n\n /**\n * Is the next button disabled?\n */\n readonly nextButtonDisabled: Readable;\n\n /**\n * Is the previous button disabled?\n */\n readonly previousButtonDisabled: Readable;\n\n /**\n * Set the \"next\" button status\n * @param active The status of the button to set\n */\n setNextButtonStatus(active: boolean): void;\n\n /**\n * Set the \"next\" button status\n * @param active The status of the button to set\n */\n setPreviousButtonStatus(active: boolean): void;\n\n /**\n * Start the wizard, that means go to first step\n */\n start(): void;\n\n /**\n * Proceed to the next step of the wizard\n */\n goToNextStep(): void;\n\n /**\n * Go back to he previous step of the wizard\n */\n goToPreviousStep(): void;\n}\n","import { goto } from '$app/navigation';\nimport { useCampaignStore } from '$lib/utils/campaign-store';\nimport { derived, get, type Readable, writable, type Writable } from 'svelte/store';\nimport { GtmStore } from '$lib/utils/gtm-store';\nimport {\n type DataStep1,\n type DataStep2,\n type DataStep3,\n type DataStep4,\n type DataStep5,\n type DataStep6,\n type ScholarshipWizard,\n Steps,\n} from './types';\nimport { browser } from '$app/environment';\nimport { useCtaServicesApiClient } from \"$lib/api/CtaServicesApiClientFactory\";\nimport { useOktaStore } from '../auth-store';\nimport { type SubmitAdmissionRequestRequest, type SubmitScholarshipRequestRequest } from '$lib/api/generated/cta-services';\nimport { fromCampaignDataTypesToWebsiteSessionDataTypes } from '../cta-services-mapper-utils';\nimport { createCtaEvent } from '../cta-flow/helpers';\n\nexport class ScholarshipWizardImpl implements ScholarshipWizard {\n private static _instance: ScholarshipWizardImpl;\n\n private _currentStep: Writable;\n private _nextButtonDisabled: Writable;\n private _previousButtonDisabled: Writable;\n\n private _dataStep1: DataStep1 | null;\n private _dataStep2: DataStep2 | null;\n private _dataStep3: DataStep3 | null;\n private _dataStep4: DataStep4 | null;\n private _dataStep5: DataStep5 | null;\n private _dataStep6: DataStep6 | null;\n\n constructor() {\n // Initialize the fields here (Maybe get stored value from local/session storage?)\n\n if (browser) {\n this._dataStep1 = this.getStepDataLocalStorage(1);\n this._dataStep2 = this.getStepDataLocalStorage(2);\n this._dataStep3 = this.getStepDataLocalStorage(3);\n this._dataStep4 = this.getStepDataLocalStorage(4);\n this._dataStep5 = this.getStepDataLocalStorage(5);\n this._dataStep6 = this.getStepDataLocalStorage(6);\n } else {\n this._dataStep1 = null;\n this._dataStep2 = null;\n this._dataStep3 = null;\n this._dataStep4 = null;\n this._dataStep5 = null;\n this._dataStep6 = null;\n }\n\n const startFromStep1 = this._dataStep1 !== null;\n this._currentStep = writable(startFromStep1 ? Steps.STEP_1 : Steps.STEP_0);\n this._nextButtonDisabled = writable(false);\n this._previousButtonDisabled = writable(false);\n }\n\n public get hasStarted(): Readable {\n return derived(this._currentStep, (value) => value > Steps.STEP_0);\n }\n\n public get currentStep(): Readable {\n return derived(this._currentStep, (value) => value);\n }\n\n public get hasNextStep(): Readable {\n return derived(this._currentStep, (value) => value <= Steps.STEP_6);\n }\n\n public get hasPreviousStep(): Readable {\n return derived(this._currentStep, (value) => value > Steps.STEP_1);\n }\n\n public get nextButtonDisabled(): Readable {\n return derived(this._nextButtonDisabled, (value) => value);\n }\n\n public get previousButtonDisabled(): Readable {\n return derived(this._previousButtonDisabled, (value) => value);\n }\n\n public get dataStep1() {\n return this._dataStep1;\n }\n\n public get dataStep2() {\n return this._dataStep2;\n }\n\n public get dataStep3() {\n return this._dataStep3;\n }\n\n public get dataStep4() {\n return this._dataStep4;\n }\n\n public get dataStep5() {\n return this._dataStep5;\n }\n public get dataStep6() {\n return this._dataStep6;\n }\n\n setNextButtonStatus(active: boolean) {\n this._nextButtonDisabled.set(!active);\n }\n\n setPreviousButtonStatus(active: boolean) {\n this._previousButtonDisabled.set(!active);\n }\n\n start() {\n this._currentStep.set(Steps.STEP_1);\n /******************** GTM EVENT PUSH *************************/\n GtmStore.pushEvent({\n pageCategory: '_AdesioneBorse_STEP[1]',\n });\n GtmStore.pushPageView();\n /*************************************************************/\n }\n\n goToNextStep() {\n const hasNextStep = get(this.hasNextStep);\n if (hasNextStep) {\n this._currentStep.update((value) => value + 1);\n const el = document.getElementById('scholarshipWizardContainer');\n if (el) {\n window.scroll(0, el.offsetTop - 90);\n }\n /******************** GTM EVENT PUSH *************************/\n GtmStore.pushEvent({\n pageCategory: '_AdesioneBorse_STEP[' + get(this.currentStep) + ']',\n });\n GtmStore.pushPageView();\n /*************************************************************/\n }\n }\n\n goToPreviousStep() {\n const hasPreviousStep = get(this.hasPreviousStep);\n if (hasPreviousStep) {\n this._nextButtonDisabled.set(false);\n this._currentStep.update((value) => value - 1);\n const el = document.getElementById('scholarshipWizardContainer');\n if (el) {\n window.scroll(0, el.offsetTop - 90);\n }\n /******************** GTM EVENT PUSH *************************/\n GtmStore.pushEvent({\n pageCategory: '_AdesioneBorse_STEP[' + get(this.currentStep) + ']',\n });\n GtmStore.pushPageView();\n /*************************************************************/\n }\n }\n\n setDataStep1(data: DataStep1 | null) {\n this._dataStep1 = data;\n this.setStepDataLocalStorage('step1', data);\n }\n\n setDataStep2(data: DataStep2 | null) {\n this._dataStep2 = data;\n this.setStepDataLocalStorage('step2', data);\n }\n setDataStep3(data: DataStep3 | null) {\n this._dataStep3 = data;\n this.setStepDataLocalStorage('step3', data);\n }\n setDataStep4(data: DataStep4 | null) {\n this._dataStep4 = data;\n this.setStepDataLocalStorage('step4', data);\n }\n setDataStep5(data: DataStep5 | null) {\n this._dataStep5 = data;\n this.setStepDataLocalStorage('step5', data);\n }\n setDataStep6(data: DataStep6 | null) {\n this._dataStep6 = data;\n this.setStepDataLocalStorage('step6', data);\n }\n\n setStepDataLocalStorage(name: string, data: any) {\n const scholarshipStr = localStorage.getItem('scholarship');\n let newData;\n if (scholarshipStr) {\n const scholarship = JSON.parse(decodeURI(scholarshipStr));\n if (scholarship) {\n newData = {\n ...scholarship,\n [name]: data,\n };\n }\n } else {\n newData = {\n [name]: data,\n };\n }\n const encodedData = encodeURI(JSON.stringify(newData));\n localStorage.setItem('scholarship', encodedData);\n }\n\n getStepDataLocalStorage(step: number) {\n const name = 'step' + step;\n const scholarshipStr = localStorage.getItem('scholarship');\n if (scholarshipStr) {\n const scholarship = JSON.parse(decodeURI(scholarshipStr));\n if (scholarship) {\n return scholarship[name];\n }\n }\n return null;\n }\n\n cleanLocalStorage() {\n this.setDataStep1(null);\n this.setDataStep2(null);\n this.setDataStep3(null);\n this.setDataStep4(null);\n this.setDataStep5(null);\n this.setDataStep6(null);\n }\n\n private createInformationSubject(): string {\n return (\n 'Borsa di studio ' +\n (this._dataStep2?.primarySession && this._dataStep2.primarySession.productCode\n ? 'Prima Opzione ' + this._dataStep2.primarySession.productCode\n : 'CORSO NON SELEZIONATO ')\n );\n }\n\n private hasMasterFields() {\n return (\n this._dataStep3?.masterAtInstitute &&\n this._dataStep3?.masterGraduation &&\n this._dataStep3?.masterThesisTitle &&\n this._dataStep3?.masterVote &&\n this._dataStep3?.masterStartYear &&\n this._dataStep3?.masterEndYear\n );\n }\n\n private formatBirthday(birthday: string) {\n const formatted = birthday.split('-').map((p) => parseInt(p));\n\n const formatter = new Intl.NumberFormat('it', {\n minimumIntegerDigits: 2,\n });\n\n const year = formatted[0];\n const month = formatter.format(formatted[1]);\n const day = formatter.format(formatted[2]);\n\n return `${year.toString()}${month}${day}`;\n }\n\n private formatDate(date: string, toIso: boolean) {\n if (date) {\n const birthday = date + '';\n\n const year = birthday.substr(0, 4);\n const month = birthday.substr(4, 2);\n const day = birthday.substr(6, 2);\n\n const formattedDate = new Date();\n formattedDate.setFullYear(parseInt(year));\n formattedDate.setMonth(parseInt(month) - 1); // 0 based...\n formattedDate.setDate(parseInt(day));\n\n return toIso ? formattedDate.toISOString().substring(0, 10) : formattedDate.toLocaleDateString('it-IT');\n }\n\n return null;\n }\n\n private createMessage(): string {\n return `\n Luogo di nascita: ${this._dataStep1?.birthplace} |\n Provincia di residenza: ${this._dataStep1?.province} |\n Profilo Linkedin: ${this._dataStep1?.linkedinProfile} |\n ${this._dataStep2?.secondarySession\n ? `Seconda Opzione: ${this.formatDate(this._dataStep2?.secondarySession.courseStartDate, true)} {}Codice Iniziativa: ${this._dataStep2.secondarySession.productCode}|`\n : 'Seconda Opzione: Non Selezionata {}Codice Iniziativa: |'\n }\n Diploma di Maturità: ${this._dataStep3?.graduation} {}Presso ${this._dataStep3?.graduationAtInstitute} {}Voto ${this._dataStep3?.graduationVote} {}Anno di fine ${this._dataStep3?.graduationYear}|\n Laurea Specialistica: ${this._dataStep3?.specialistGraduation} {}Presso ${this._dataStep3?.specialistAtInstitute} {}Voto ${this._dataStep3?.specialistVote} {}Anno di inizio ${this._dataStep3?.specialistStartYear} {}Anno di fine ${this._dataStep3?.specialistEndYear}|\n ${this.hasMasterFields()\n ? `Laurea Magistrale: ${this._dataStep3?.masterGraduation} {}Presso ${this._dataStep3?.masterAtInstitute} {}Voto ${this._dataStep3?.masterVote} {}Anno di inizio ${this._dataStep3?.masterStartYear} {}Anno di fine ${this._dataStep3?.masterEndYear}|`\n : 'Laurea Magistrale: Nessuna {}Presso {}Voto {}Anno di inizio {}Anno di fine |'\n }\n Esperienza Lavorativa 1: da ${this._dataStep4?.lastExperienceStartDate} {}a ${this._dataStep4?.lastExperienceEndDate} {}Ruolo ${this._dataStep4?.lastExperienceRole} {}Presso ${this._dataStep4?.lastExperienceCompany}|\n Esperienza Lavorativa 2: da ${this._dataStep4?.secondExperienceStartDate} {}a ${this._dataStep4?.secondExperienceEndDate} {}Ruolo ${this._dataStep4?.secondExperienceRole} {}Presso ${this._dataStep4?.secondExperienceCompany}|\n Attività Extra Curricolari: ${this._dataStep5?.extraCurricularActivity}|\n Hobby e Interessi: ${this._dataStep5?.hobbyAndInterests}|\n ${this._dataStep6?.knowIsee === 'true'\n ? `Fascia ISEE: ${this._dataStep6?.iseeRange} {}Posizione economica: Non Selezionata |`\n : `Fascia ISEE: Non Selezionata {}Posizione economica: ${this._dataStep6?.economicPosition} |`\n }\n `.replace(/ +/g, ' ');\n }\n\n private createScholarSchipRequest(): SubmitScholarshipRequestRequest {\n const campaignStore = useCampaignStore();\n const campaignData = get(campaignStore.campaignData);\n const webid = get(campaignStore.webid);\n\n const request: SubmitScholarshipRequestRequest = {\n // User related data\n bsid: this._dataStep1?.bsid,\n id: this._dataStep1?.id,\n name: this._dataStep1?.name,\n surname: this._dataStep1?.surname,\n email: this._dataStep1?.email,\n phone: this._dataStep1?.phone,\n subscribe: this._dataStep1?.subscribe,\n profilingConsent: this._dataStep1?.profilingConsent,\n businessUseConsent: this._dataStep1?.businessUseConsent,\n birthday: this._dataStep1?.birthday ? this.formatBirthday(this._dataStep1?.birthday) : undefined,\n // Website and campaign related data\n referrer: campaignData?.referrer,\n utmCampaignSource: campaignData?.utm_source,\n utmCampaignMedium: campaignData?.utm_medium,\n utmCampaignName: campaignData?.utm_campaign,\n utmCampaignTerm: '',\n utmCampaignContent: '',\n fbclid: campaignData?.fbclid,\n gclid: campaignData?.gclid,\n gclsrc: campaignData?.gclsrc,\n websiteSessionData: {\n referrer: campaignData?.referrer,\n utmCampaignSource: campaignData?.utm_source,\n utmCampaignMedium: campaignData?.utm_medium,\n utmCampaignName: campaignData?.utm_campaign,\n utmCampaignTerm: '',\n utmCampaignContent: '',\n fbclid: campaignData?.fbclid,\n gclid: campaignData?.gclid,\n gclsrc: campaignData?.gclsrc,\n type: fromCampaignDataTypesToWebsiteSessionDataTypes(campaignData?.type),\n webid: webid || undefined,\n },\n device: campaignData?.device,\n // Degree related data\n degreeLevel: this.hasMasterFields() ? this._dataStep3?.masterGraduation : this._dataStep3?.specialistGraduation,\n degreeTitle: `Diploma in ${this.hasMasterFields() ? this._dataStep3?.masterThesisTitle : this._dataStep3?.specialistThesisTitle\n } Anno di fine ${this.hasMasterFields() ? this._dataStep3?.masterEndYear : this._dataStep3?.specialistEndYear}`,\n degreeVote: this.hasMasterFields() ? this._dataStep3?.masterVote : this._dataStep3?.specialistVote,\n // Rest of the data\n informationSubject: this.createInformationSubject(),\n message: this.createMessage(),\n };\n // Product related data\n if (this._dataStep2 && this._dataStep2.primarySession) {\n request.sessionId = this._dataStep2.primarySession ? this._dataStep2.primarySession.sessionId || undefined : undefined;\n request.productCode = this._dataStep2.primarySession?.productCode || '';\n request.category = this._dataStep2.primarySession?.category || '';\n request.courseTypeFull = this._dataStep2.primarySession?.courseTypeFull || '';\n request.courseTitle = this._dataStep2.primarySession?.courseTitle || '';\n request.price = this._dataStep2.primarySession?.price || 0;\n request.discountPrice = this._dataStep2.primarySession?.discountPrice || 0;\n request.lessionMode = this._dataStep2.primarySession?.lessonMode || '';\n request.brochureAvailable = this._dataStep2.primarySession?.brochureAvailable || false;\n request.brochureBooking = this._dataStep2.primarySession?.brochureBooking || false;\n request.brochureUrl = this._dataStep2.primarySession?.brochureUrl || undefined;\n request.courseUrl = this._dataStep2.primarySession?.courseUrl || undefined;\n request.courseStartDate = this._dataStep2.primarySession?.courseStartDate || undefined;\n request.courseReferrerName = this._dataStep2.primarySession?.courseReferrerName || undefined;\n request.courseReferrerEmail = this._dataStep2.primarySession?.courseReferrerEmail || undefined;\n }\n return request;\n }\n\n private createAutoGeneratedAdmissionRequest(): SubmitAdmissionRequestRequest {\n const campaignStore = useCampaignStore();\n const campaignData = get(campaignStore.campaignData);\n const firstClickCampaignData = get(campaignStore.firstClickCampaignData);\n const webid = get(campaignStore.webid);\n\n let productSessionId = 0;\n let productCategory = '';\n let productCourseTypeFull = '';\n let productPrice = 0;\n let productDiscountPrice = 0;\n let productLessonMode = '';\n let productCourseUrl = '';\n let productBrochureOrDownloadUrl = '';\n let productCourseReferrerEmail = '';\n let productCourseReferrerName = '';\n let productCourseTitle = '';\n let productProductCode = '';\n\n // Product related data\n if (this._dataStep2 && this._dataStep2.primarySession) {\n productSessionId = this._dataStep2.primarySession ? this._dataStep2?.primarySession?.sessionId : 0;\n productCategory = this._dataStep2.primarySession?.category || '';\n productCourseTypeFull = this._dataStep2.primarySession?.courseTypeFull || '';\n productPrice = this._dataStep2.primarySession?.price || 0;\n productDiscountPrice = this._dataStep2.primarySession?.discountPrice || 0;\n productLessonMode = this._dataStep2.primarySession?.lessonMode || '';\n productCourseUrl = this._dataStep2.primarySession?.courseUrl || '';\n productBrochureOrDownloadUrl = this._dataStep2.primarySession?.brochureUrl || '';\n productCourseReferrerEmail = this._dataStep2.primarySession?.courseReferrerEmail || '';\n productCourseReferrerName = this._dataStep2.primarySession?.courseReferrerName || '';\n productCourseTitle = this._dataStep2.primarySession?.courseTitle || '';\n productProductCode = this._dataStep2.primarySession?.productCode || '';\n }\n\n const request: SubmitAdmissionRequestRequest = {\n bsid: this._dataStep1?.bsid,\n id: this._dataStep1?.id,\n name: this._dataStep1?.name,\n surname: this._dataStep1?.surname,\n email: this._dataStep1?.email,\n birthdate: this._dataStep1?.birthday ? this.formatBirthday(this._dataStep1?.birthday) : undefined,\n phone: this._dataStep1?.phone,\n consent1: false,\n consent2: false,\n consent3: false,\n //product related data\n sessionId: productSessionId,\n category: productCategory,\n courseTypeFull: productCourseTypeFull,\n price: productPrice,\n discountPrice: productDiscountPrice,\n lessionMode: productLessonMode,\n courseUrl: productCourseUrl,\n brochureOrDownloadUrl: productBrochureOrDownloadUrl,\n courseReferrerEmail: productCourseReferrerEmail,\n courseReferrerName: productCourseReferrerName,\n courseTitle: productCourseTitle,\n productCode: productProductCode,\n degreeTitle: `Diploma in ${this.hasMasterFields() ? this._dataStep3?.masterThesisTitle : this._dataStep3?.specialistThesisTitle\n } Anno di fine ${this.hasMasterFields() ? this._dataStep3?.masterEndYear : this._dataStep3?.specialistEndYear}`,\n degreeLevel: this.hasMasterFields() ? \"2\" : \"1\",\n degreeVote: this.hasMasterFields() ? this._dataStep3?.masterVote : this._dataStep3?.specialistVote,\n scholarshipType: undefined,\n scholarshipMandatory: false,\n discountCode: '',\n // optional, not functional to email sending\n password: '',\n referrer: campaignData?.referrer,\n // Old campaign data\n utmCampaignSource: campaignData?.utm_source,\n utmCampaignMedium: campaignData?.utm_medium,\n utmCampaignName: campaignData?.utm_campaign,\n utmCampaignTerm: '',\n utmCampaignContent: '',\n fbclid: campaignData?.fbclid,\n gclid: campaignData?.gclid,\n gclsrc: campaignData?.gclsrc,\n // First click campaign data\n websiteSessionData: {\n referrer: campaignData?.referrer,\n utmCampaignSource: campaignData?.utm_source,\n utmCampaignMedium: campaignData?.utm_medium,\n utmCampaignName: campaignData?.utm_campaign,\n utmCampaignTerm: '',\n utmCampaignContent: '',\n fbclid: campaignData?.fbclid,\n gclid: campaignData?.gclid,\n gclsrc: campaignData?.gclsrc,\n type: fromCampaignDataTypesToWebsiteSessionDataTypes(campaignData?.type),\n webid: webid || undefined,\n },\n device: campaignData?.device,\n autoGenerated: true,\n }\n\n return request;\n }\n\n async sendRequest() {\n const request = this.createScholarSchipRequest();\n const admissionRequest = this.createAutoGeneratedAdmissionRequest();\n\n try {\n const client = useCtaServicesApiClient();\n await client.submitScholarshipRequest(request, createCtaEvent('scholarship'));\n //call admissionRequestAutoGenerated only if preference is choosen \n if (admissionRequest.productCode !== '') {\n await client.submitAdmissionRequest(admissionRequest, createCtaEvent('admission_request'));\n }\n const authStore = useOktaStore();\n const userInfo = get(authStore.userInfo);\n\n if (!userInfo) {\n throw new Error('User info not found');\n }\n\n if (!this._dataStep1?.name) {\n throw new Error('Name is required');\n }\n\n if (!this._dataStep1?.surname) {\n throw new Error('Surname is required');\n }\n\n await authStore.updateUserProfile({\n ...userInfo,\n name: this._dataStep1?.name,\n surname: this._dataStep1?.surname,\n phone: this._dataStep1?.phone,\n birthday: this._dataStep1?.birthday ? this.formatBirthday(this._dataStep1?.birthday) : undefined,\n });\n\n GtmStore.pushEvent(\n {\n event: 'BBevent',\n category: 'AdesioneBorseStudio',\n action: 'Conferma',\n label: 'NOT SET',\n event_id: '12',\n },\n false\n );\n\n await goto('/borse-di-studio/adesione/thankyou', { replaceState: true });\n /******************** GTM EVENT PUSH *************************/\n } catch (error) {\n console.log(error);\n throw error;\n }\n }\n\n public static getInstance() {\n if (!ScholarshipWizardImpl._instance) {\n ScholarshipWizardImpl._instance = new ScholarshipWizardImpl();\n }\n return ScholarshipWizardImpl._instance;\n }\n}\n","import { ScholarshipWizardImpl } from './store';\n\nexport { Steps } from './types';\nexport const useScholarshipWizard = ScholarshipWizardImpl.getInstance;\n"],"names":["Steps","_ScholarshipWizardImpl","__publicField","startFromStep1","writable","derived","value","active","GtmStore","get","el","data","name","scholarshipStr","newData","scholarship","encodedData","step","_a","_b","_c","_d","_e","_f","birthday","formatted","p","formatter","year","month","day","date","toIso","formattedDate","_g","_h","_i","_j","_k","_l","_m","_n","_o","_p","_q","_r","_s","_t","_u","_v","_w","_x","_y","_z","_A","_B","_C","_D","_E","_F","campaignStore","useCampaignStore","campaignData","webid","request","fromCampaignDataTypesToWebsiteSessionDataTypes","_G","productSessionId","productCategory","productCourseTypeFull","productPrice","productDiscountPrice","productLessonMode","productCourseUrl","productBrochureOrDownloadUrl","productCourseReferrerEmail","productCourseReferrerName","productCourseTitle","productProductCode","admissionRequest","client","useCtaServicesApiClient","createCtaEvent","authStore","useOktaStore","userInfo","goto","error","ScholarshipWizardImpl","useScholarshipWizard"],"mappings":"gfAEY,IAAAA,GAAAA,IACVA,EAAAA,EAAA,OAAS,CAAT,EAAA,SACAA,EAAAA,EAAA,OAAS,CAAT,EAAA,SACAA,EAAAA,EAAA,OAAS,CAAT,EAAA,SACAA,EAAAA,EAAA,OAAS,CAAT,EAAA,SACAA,EAAAA,EAAA,OAAS,CAAT,EAAA,SACAA,EAAAA,EAAA,OAAS,CAAT,EAAA,S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