{"version":3,"file":"useBannerHelp.B2K7smmk.js","sources":["../../../../components/Banner/Help/Utility/Card.iconMapping.ts","../../../../components/Banner/Help/Utility/Card.vue","../../../../layers/checkout/composables/useBannerHelp.ts"],"sourcesContent":["import { IconProps } from \"components/Utils/Icon.props\"\n\nexport const iconsSrcMap: {\n [key: string]: IconProps\n} = {\n customerServiceCall: {\n name: \"CustomerServiceCall.svg\",\n color: \"tiffany-400\"\n },\n customerServiceChat: {\n name: \"CustomerServiceChat.svg\",\n color: \"tiffany-400\"\n },\n customerServiceFaq: { name: \"CustomerServiceFaq.svg\", color: \"tiffany-400\" },\n customerServiceMail: {\n name: \"CustomerServiceMail.svg\",\n color: \"tiffany-400\"\n },\n customerServiceOrder: {\n name: \"CustomerServiceOrder.svg\",\n color: \"tiffany-400\"\n },\n customerServiceReceipt: {\n name: \"CustomerServiceReceipt.svg\",\n color: \"tiffany-400\"\n },\n call: { name: \"Call.svg\", color: \"tiffany-400\" },\n chat: { name: \"Chat.svg\", color: \"tiffany-400\" },\n mail: { name: \"Mail.svg\", color: \"tiffany-400\" }\n}\n","\n\n\n","import type { CustomerServiceProps } from \"~/components/Banner/Help/CustomerService.props\"\nimport type { CardProps } from \"~/components/Banner/Help/Utility/Card.props\"\nimport { customPaths } from \"~/utils/constants\"\n\nexport const useBannerHelp = () => {\n const { t } = useI18n()\n\n const listHelpCards: CardProps[] = [\n {\n iconType: \"customerServiceOrder\",\n title: t(\"homepage.bannerCustomerService.card1.title\"),\n text: t(\"homepage.bannerCustomerService.card1.text\"),\n contact: t(\"homepage.bannerCustomerService.card1.contact\"),\n hrefContact: customPaths.findOrder,\n theme: \"green\"\n },\n {\n iconType: \"customerServiceReceipt\",\n title: t(\"homepage.bannerCustomerService.card2.title\"),\n text: t(\"homepage.bannerCustomerService.card2.text\"),\n contact: t(\"homepage.bannerCustomerService.card2.contact\"),\n theme: \"green\",\n hrefContact: customPaths.findOrder\n },\n {\n iconType: \"customerServiceCall\",\n title: t(\"homepage.bannerCustomerService.card3.title\"),\n text: t(\"homepage.bannerCustomerService.card3.text\"),\n contact: t(\"general.supportPhone.label\"),\n hrefContact: t(\"general.supportPhone.link\"),\n theme: \"green\"\n },\n {\n iconType: \"customerServiceChat\",\n title: t(\"homepage.bannerCustomerService.card4.title\"),\n text: t(\"homepage.bannerCustomerService.card4.text\"),\n contact: t(\"homepage.bannerCustomerService.card4.contact\"),\n hrefContact: customPaths.contactUs,\n theme: \"green\"\n },\n {\n iconType: \"customerServiceFaq\",\n title: t(\"homepage.bannerCustomerService.card5.title\"),\n text: t(\"homepage.bannerCustomerService.card5.text\"),\n contact: t(\"homepage.bannerCustomerService.card5.contact\"),\n hrefContact: customPaths.faqs,\n theme: \"green\"\n },\n {\n iconType: \"customerServiceMail\",\n title: t(\"homepage.bannerCustomerService.card6.title\"),\n text: t(\"homepage.bannerCustomerService.card6.text\"),\n contact: t(\"homepage.bannerCustomerService.card6.contact\"),\n hrefContact: `${customPaths.contactUs}?help_subject=${helpSubjectParams.consulting_pharma}`,\n theme: \"green\"\n }\n ]\n\n const customerService: CustomerServiceProps = {\n title: t(\"homepage.bannerCustomerService.title\"),\n caption: t(\"homepage.bannerCustomerService.caption\"),\n text: t(\"homepage.bannerCustomerService.text\"),\n listHelpCard: listHelpCards.filter((card) =>\n [\n \"customerServiceCall\",\n \"customerServiceChat\",\n \"customerServiceFaq\"\n ].includes(card.iconType)\n ),\n bgImage: {\n focalPoint: {\n x: 273,\n y: 100\n },\n activateFocalPoint: true,\n altText: \"Sfondo verde con macchie\",\n base64:\n \"data:image/jpeg;base64,/9j/2wBDABQODxIPDRQSEBIXFRQYHjIhHhwcHj0sLiQySUBMS0dARkVQWnNiUFVtVkVGZIhlbXd7gYKBTmCNl4x9lnN+gXz/2wBDARUXFx4aHjshITt8U0ZTfHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHz/wAARCAAJABADASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAABAX/xAAcEAEAAgEFAAAAAAAAAAAAAAABAAIyAxESFCP/xAAVAQEBAAAAAAAAAAAAAAAAAAAAAf/EABURAQEAAAAAAAAAAAAAAAAAAAAR/9oADAMBAAIRAxEAPwB5Z5i2GO7HnsJI2llFXwipH//Z\",\n image: {\n url: \"https://images.ctfassets.net/i5oh5hzamkwo/1LgKOhZjCJDZ8zGy0Iaeq1/6ad656e84496895984f014bc6fcdf58c/bg-banner-servizio-clienti.jpg\",\n height: 785,\n width: 1321\n }\n },\n isCheckout: true\n }\n\n const customerServiceHomepage: CustomerServiceProps = {\n ...customerService,\n isCheckout: false\n }\n\n return { listHelpCards, customerServiceHomepage, customerService }\n}\n"],"names":["iconsSrcMap","sendEventPhoneHelp","useGA4SiteEvents","props","__props","route","useRoute","emit","__emit","handleClickCard","customPaths","navigateTo","helpSubjectParams","useBannerHelp","t","useI18n","listHelpCards","customerService","card","customerServiceHomepage"],"mappings":"0MAEO,MAAMA,EAET,CACF,oBAAqB,CACnB,KAAM,0BACN,MAAO,aACT,EACA,oBAAqB,CACnB,KAAM,0BACN,MAAO,aACT,EACA,mBAAoB,CAAE,KAAM,yBAA0B,MAAO,aAAc,EAC3E,oBAAqB,CACnB,KAAM,0BACN,MAAO,aACT,EACA,qBAAsB,CACpB,KAAM,2BACN,MAAO,aACT,EACA,uBAAwB,CACtB,KAAM,6BACN,MAAO,aACT,EACA,KAAM,CAAE,KAAM,WAAY,MAAO,aAAc,EAC/C,KAAM,CAAE,KAAM,WAAY,MAAO,aAAc,EAC/C,KAAM,CAAE,KAAM,WAAY,MAAO,aAAc,CACjD,uOC1BA,KAAA,CAAA,mBAAAC,GAAAC,IAEAC,EAAAC,EAIAC,EAAAC,IAEAC,EAAAC,EAGAC,EAAA,IAAA,CACAN,EAAA,UAAA,uBACAF,IAIAI,EAAA,SAAA,WAAAK,EAAA,SAAA,IACAP,EAAA,WAAA,uBACAQ,EAAAD,EAAA,SAAA,EAEAP,EAAA,WA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