{"version":3,"file":"ProfessionalAffirmationSplashModal-DUY_GROt-chunk.js","sources":["../../../src/components/public-site/audience-sort/ProfessionalAffirmationSplashModal.tsx"],"sourcesContent":["import { useEffect, useState } from \"react\";\nimport { AudienceSelectionProps } from \"./utility/audienceSortPropTypes\";\nimport { audienceSortStepNames } from \"components/public-site/audience-sort/utility/audienceSortStepNames\";\nimport AudienceSortModal from \"./AudienceSortModal\";\nimport ProfessionalAffirmation from \"./ProfessionalAffirmation\";\nimport getProfessionalAffirmationSplashData from \"components/utility/api/GetProfessionalAffirmationSplashData\";\n\nconst ProfessionalAffirmationSplashModal = () => {\n\tconst [audienceSelectionData, setAudienceSelectionData] = useState(\n\t\tnull\n\t);\n\tconst [step, setStep] = useState(audienceSortStepNames.initialStep);\n\tconst [isModalOpen, setIsModalOpen] = useState(true);\n\tconst [modalJustOpened] = useState(true);\n\n\tconst currentPage = \"pro-only-entry\";\n\tconst modalColorTheme = \"light-theme-teal\";\n\n\tuseEffect(() => {\n\t\tgetProfessionalAffirmationSplashData(\"professionalAffirmationSplashModal\").then(\n\t\t\t(initialData) => {\n\t\t\t\tif (initialData.status === \"success\" && typeof initialData.data !== \"string\") {\n\t\t\t\t\tsetAudienceSelectionData({\n\t\t\t\t\t\tcountryKey: window[\"professionalAffirmationSplashModal\"]?.countryKey,\n\t\t\t\t\t\t...initialData.data\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t}, []);\n\n\treturn (\n\t\t\n\t\t\t{audienceSelectionData && (\n\t\t\t\t {}}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\n\t);\n};\n\nexport default ProfessionalAffirmationSplashModal;\n"],"names":["ProfessionalAffirmationSplashModal","audienceSelectionData","setAudienceSelectionData","useState","step","setStep","audienceSortStepNames","isModalOpen","setIsModalOpen","modalJustOpened","currentPage","modalColorTheme","useEffect","getProfessionalAffirmationSplashData","initialData","_a","jsx","AudienceSortModal","ProfessionalAffirmation"],"mappings":"ytBAOA,MAAMA,EAAqC,IAAM,CAC1C,KAAA,CAACC,EAAuBC,CAAwB,EAAIC,EAAA,SACzD,IACD,EACM,CAACC,EAAMC,CAAO,EAAIF,EAAAA,SAASG,EAAsB,WAAW,EAC5D,CAACC,EAAaC,CAAc,EAAIL,EAAAA,SAAS,EAAI,EAC7C,CAACM,CAAe,EAAIN,EAAA,SAAkB,EAAI,EAE1CO,EAAc,iBACdC,EAAkB,mBAExBC,OAAAA,EAAAA,UAAU,IAAM,CACfC,EAAqC,oCAAoC,EAAE,KACzEC,GAAgB,OACZA,EAAY,SAAW,WAAa,OAAOA,EAAY,MAAS,UAC1CZ,EAAA,CACxB,YAAYa,EAAA,OAAO,qCAAP,YAAAA,EAA8C,WAC1D,GAAGD,EAAY,IAAA,CACf,CACF,CAEF,CACD,EAAG,EAAE,EAGJE,EAAA,IAACC,EAAA,CACA,MAAON,EACP,YAAAD,EACA,YAAaN,EACb,QAAAC,EACA,SAAU,GACV,YAAAE,EACA,OACC,EACCH,IAASE,EAAsB,aAC/BF,IAASE,EAAsB,uBAGjC,UAAU,oCACV,gBAAAG,EACA,0BAA2B,GAE1B,SACAR,GAAAe,EAAA,IAACE,EAAA,CACA,YAAAR,EACA,eAAgB,GAChB,kBAAmBC,EACnB,sBAAAV,EACA,eAAAO,EACA,oBAAqB,GACrB,QAAS,IAAM,CAAA,CAAC,CAAA,CACjB,CAEF,CAEF"}