@rededor/site-front-end-lib 4.0.0-alpha.4 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -9
- package/esm2022/lib/components/algolia-dropdown/algolia-dropdown.component.mjs +126 -0
- package/esm2022/lib/components/avatar/avatar.component.mjs +66 -0
- package/esm2022/lib/components/banner/content-banner/content-banner.component.mjs +41 -0
- package/esm2022/lib/components/breadcrumbs/breadcrumbs.component.mjs +133 -0
- package/esm2022/lib/components/cards/card-unidade-planos-convenios/card-unidade-planos-convenios.component.mjs +65 -0
- package/esm2022/lib/components/cards/expandable-card/expandable-card.component.mjs +69 -0
- package/esm2022/lib/components/cards/testimonial-card/testimonial-card.component.mjs +63 -0
- package/esm2022/lib/components/carousels/testimonials-carousel/testimonials-carousel.component.mjs +64 -0
- package/esm2022/lib/components/cta-wrapper/cta-wrapper.component.mjs +84 -0
- package/esm2022/lib/components/dropdown-search/dropdown-search-category.component.mjs +24 -0
- package/esm2022/lib/components/dropdown-search/dropdown-search-not-found.component.mjs +24 -0
- package/esm2022/lib/components/dropdown-search/dropdown-search-option.component.mjs +65 -0
- package/esm2022/lib/components/dropdown-search/dropdown-search.component.mjs +292 -0
- package/esm2022/lib/components/error/error-service/error.service.mjs +17 -0
- package/esm2022/lib/components/error/error.component.mjs +183 -0
- package/esm2022/lib/components/filter-letter-and-terms/filter-letter-and-terms.component.mjs +103 -0
- package/esm2022/lib/components/filters/filter-generic/filter-generic.component.mjs +235 -0
- package/esm2022/lib/components/filters/filter-planos-convenios/filter-planos-convenios.component.mjs +150 -0
- package/esm2022/lib/components/footer/footer.component.mjs +125 -0
- package/esm2022/lib/components/footer/helpers/footerTheme.func.mjs +70 -0
- package/esm2022/lib/components/footer/models/FooterTheme.model.mjs +2 -0
- package/esm2022/lib/components/header/components/header-action-menu/header-action-menu.component.mjs +36 -0
- package/esm2022/lib/components/header/components/header-aux-menu/header-aux-menu.component.mjs +12 -0
- package/esm2022/lib/components/header/components/header-aux-menu-container/header-aux-menu-container.component.mjs +17 -0
- package/esm2022/lib/components/header/components/header-aux-menu-item/header-aux-menu-item.component.mjs +51 -0
- package/esm2022/lib/components/header/components/header-aux-menu-item-dropdown/header-aux-menu-item-dropdown.component.mjs +23 -0
- package/esm2022/lib/components/header/components/header-logo/header-logo.component.mjs +32 -0
- package/esm2022/lib/components/header/components/header-main-menu/header-main-menu.component.mjs +11 -0
- package/esm2022/lib/components/header/components/header-main-menu-item/header-main-menu-item.component.mjs +77 -0
- package/esm2022/lib/components/header/components/header-main-menu-item-dropdown/header-main-menu-item-dropdown.component.mjs +99 -0
- package/esm2022/lib/components/header/components/header-side-menu/header-side-menu.component.mjs +26 -0
- package/esm2022/lib/components/header/components/header-side-menu-item/header-side-menu-item.component.mjs +54 -0
- package/esm2022/lib/components/header/header.component.mjs +104 -0
- package/esm2022/lib/components/header/helpers/headerTheme.func.mjs +136 -0
- package/esm2022/lib/components/header/models/HeaderTheme.model.mjs +2 -0
- package/esm2022/lib/components/header/services/header.service.mjs +43 -0
- package/esm2022/lib/components/image/image.component.mjs +61 -0
- package/esm2022/lib/components/index.mjs +52 -0
- package/esm2022/lib/components/input-file/input-file.component.mjs +304 -0
- package/esm2022/lib/components/load-screen/load-screen.component.mjs +23 -0
- package/esm2022/lib/components/overlay/overlay.component.mjs +19 -0
- package/esm2022/lib/components/page-header/page-header.component.mjs +47 -0
- package/esm2022/lib/components/page-template-fullcontent/page-template-fullcontent.component.mjs +30 -0
- package/esm2022/lib/components/page-template-sidebar/page-template-sidebar.component.mjs +39 -0
- package/esm2022/lib/components/pagination/pagination.component.mjs +64 -0
- package/esm2022/lib/components/post-header/post-header.component.mjs +56 -0
- package/esm2022/lib/components/search/search.component.mjs +147 -0
- package/esm2022/lib/components/section-navigation/section-navigation.component.mjs +149 -0
- package/esm2022/lib/components/side-ctas/components/side-ctas-bottom/side-ctas-bottom.component.mjs +43 -0
- package/esm2022/lib/components/side-ctas/components/side-ctas-right-bottom/side-ctas-right-bottom.component.mjs +43 -0
- package/esm2022/lib/components/side-ctas/components/side-ctas-right-middle/side-ctas-right-middle.component.mjs +42 -0
- package/esm2022/lib/components/side-ctas/components/side-ctas-right-top/side-ctas-right-top.component.mjs +11 -0
- package/esm2022/lib/components/side-ctas/models/SideCta.model.mjs +2 -0
- package/esm2022/lib/components/side-ctas/side-ctas.component.mjs +23 -0
- package/esm2022/lib/components/sidebar-navigation/sidebar-navigation.component.mjs +119 -0
- package/esm2022/lib/components/sticky-navigation/sticky-navigation.component.mjs +132 -0
- package/esm2022/lib/components/whatsapp/whatsapp.component.mjs +60 -0
- package/esm2022/lib/directives/index.mjs +4 -0
- package/esm2022/lib/directives/rdsite-click-outside/rdsite-click-outside.directive.mjs +29 -0
- package/esm2022/lib/directives/rdsite-link/rdsite-link.directive.mjs +197 -0
- package/esm2022/lib/directives/rdsite-phone-modal/rdsite-phone-modal.directive.mjs +52 -0
- package/esm2022/lib/enums/EnumDoencaTaxonomy.enum.mjs +11 -0
- package/esm2022/lib/enums/EnumError.enum.mjs +6 -0
- package/esm2022/lib/enums/EnumThemes.enum.mjs +9 -0
- package/esm2022/lib/enums/Estados.enum.mjs +31 -0
- package/esm2022/lib/enums/Filter.enum.mjs +9 -0
- package/esm2022/lib/enums/IconCuraDefaultType.enum.mjs +121 -0
- package/esm2022/lib/enums/ImageMimeType.enum.mjs +7 -0
- package/esm2022/lib/enums/RdsiteModalComponentStyle.enum.mjs +16 -0
- package/esm2022/lib/enums/RdsiteModalDrawerComponentStyle.enum.mjs +9 -0
- package/esm2022/lib/enums/UnidadeCoverageType.enum.mjs +7 -0
- package/esm2022/lib/enums/index.mjs +11 -0
- package/esm2022/lib/helpers/check-safari-agent.func.mjs +7 -0
- package/esm2022/lib/helpers/formatPhone.func.mjs +29 -0
- package/esm2022/lib/helpers/getCircularReplacer.func.mjs +38 -0
- package/esm2022/lib/helpers/getSiteUrl.func.mjs +11 -0
- package/esm2022/lib/helpers/index.mjs +9 -0
- package/esm2022/lib/helpers/mediaQueries.mjs +11 -0
- package/esm2022/lib/helpers/removeDuplicateObjectsFromArray.func.mjs +5 -0
- package/esm2022/lib/helpers/removeDuplicateValuesFromArray.func.mjs +5 -0
- package/esm2022/lib/helpers/removeHtmlTags.func.mjs +6 -0
- package/esm2022/lib/helpers/toQueryParams.func.mjs +8 -0
- package/esm2022/lib/interceptors/error.interceptor.mjs +36 -0
- package/esm2022/lib/interceptors/index.mjs +3 -0
- package/esm2022/lib/interceptors/log.interceptor.mjs +35 -0
- package/esm2022/lib/middlewares/index.mjs +5 -0
- package/esm2022/lib/middlewares/ssr-initialization.middleware.mjs +8 -0
- package/esm2022/lib/middlewares/url-validation-default-logo.mjs +38 -0
- package/esm2022/lib/middlewares/url-validation-error-page.mjs +209 -0
- package/esm2022/lib/middlewares/url-validation.middleware.mjs +41 -0
- package/esm2022/lib/models/algolia-search-api.model.mjs +2 -0
- package/esm2022/lib/models/breadcrumbs/breadcrumbs-items.model.mjs +2 -0
- package/esm2022/lib/models/breadcrumbs/breadcrumbs-json-item.model.mjs +2 -0
- package/esm2022/lib/models/centro-estudos-backend.model.mjs +2 -0
- package/esm2022/lib/models/centro-medico.model.mjs +2 -0
- package/esm2022/lib/models/content-banner.model.mjs +2 -0
- package/esm2022/lib/models/cta-wrapper.model.mjs +2 -0
- package/esm2022/lib/models/doenca-backend.model.mjs +2 -0
- package/esm2022/lib/models/doenca-taxonomy.model.mjs +2 -0
- package/esm2022/lib/models/especialidade-backend.model.mjs +2 -0
- package/esm2022/lib/models/exame-backend.model.mjs +2 -0
- package/esm2022/lib/models/filters/filter-planos-convenios.model.mjs +2 -0
- package/esm2022/lib/models/filters/filter-section.type.mjs +2 -0
- package/esm2022/lib/models/filters/filter-sections.model.mjs +2 -0
- package/esm2022/lib/models/images/rdsite-image.model.mjs +2 -0
- package/esm2022/lib/models/medico-cv.model.mjs +2 -0
- package/esm2022/lib/models/medico.model.mjs +2 -0
- package/esm2022/lib/models/menu-de-unidade.model.mjs +2 -0
- package/esm2022/lib/models/menu-item.model.mjs +2 -0
- package/esm2022/lib/models/privacy-tools/privacy-tools.model.mjs +2 -0
- package/esm2022/lib/models/rdsl-cobertura.model.mjs +2 -0
- package/esm2022/lib/models/rdsl-convenio.model.mjs +2 -0
- package/esm2022/lib/models/rdsl-especialidade.model.mjs +2 -0
- package/esm2022/lib/models/rdsl-planos.model.mjs +2 -0
- package/esm2022/lib/models/rdsl-post-category.model.mjs +2 -0
- package/esm2022/lib/models/rdsl-unidade.model.mjs +2 -0
- package/esm2022/lib/models/section-navigation.model.mjs +2 -0
- package/esm2022/lib/models/seo/seo-data.model.mjs +2 -0
- package/esm2022/lib/models/seo/seo-unidade.model.mjs +2 -0
- package/esm2022/lib/models/social-meta-properties.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/WpResponse.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/category/wpCategory.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/content.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/excerpt.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/featuredMedia.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/guid.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/index.mjs +11 -0
- package/esm2022/lib/models/wordpress/general/links.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/meta.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/title.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/yoastData.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/yoastHeadJson.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/general/yoastMeta.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/page/page.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/post/post.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/unidade/wp-unidade-onco.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/unidade/wp-unidade-site-detalhe.model.mjs +2 -0
- package/esm2022/lib/models/wordpress/unidade/wp-unidade-site.model.mjs +2 -0
- package/esm2022/lib/pipes/index.mjs +2 -0
- package/esm2022/lib/pipes/phone/phone.pipe.mjs +18 -0
- package/esm2022/lib/services/algolia/algolia.service.mjs +37 -0
- package/esm2022/lib/services/algolia-search-api/algolia-search-api.service.mjs +71 -0
- package/esm2022/lib/services/geoloc/geoloc.service.mjs +202 -0
- package/esm2022/lib/services/http-client/http-client.service.mjs +55 -0
- package/esm2022/lib/services/index.mjs +19 -0
- package/esm2022/lib/services/log/log.service.mjs +46 -0
- package/esm2022/lib/services/mapbox/mapbox.service.mjs +69 -0
- package/esm2022/lib/services/modal/modal.service.mjs +56 -0
- package/esm2022/lib/services/modal-drawer/modal-drawer.service.mjs +42 -0
- package/esm2022/lib/services/ngu-carousel/ngu-carousel.service.mjs +81 -0
- package/esm2022/lib/services/phone/phone.service.mjs +28 -0
- package/esm2022/lib/services/privacy-tools/privacy-tools.service.mjs +92 -0
- package/esm2022/lib/services/seo/seo.service.mjs +489 -0
- package/esm2022/lib/services/server-response/server-response.service.mjs +92 -0
- package/esm2022/lib/services/site-back-end/site-back-end.service.mjs +197 -0
- package/esm2022/lib/services/ssr-loading/ssr-loading.service.mjs +48 -0
- package/esm2022/lib/services/transfer-state/transfer-state.service.mjs +33 -0
- package/esm2022/lib/services/youtube/youtube.service.mjs +39 -0
- package/esm2022/lib/tokens/LibConfig.mjs +4 -0
- package/esm2022/lib/tokens/express.tokens.mjs +4 -0
- package/esm2022/public-api.mjs +23 -0
- package/esm2022/rededor-site-front-end-lib.mjs +5 -0
- package/fesm2022/rededor-site-front-end-lib.mjs +6408 -2
- package/fesm2022/rededor-site-front-end-lib.mjs.map +1 -1
- package/index.d.ts +5 -3
- package/lib/components/algolia-dropdown/algolia-dropdown.component.d.ts +38 -0
- package/lib/components/avatar/avatar.component.d.ts +26 -0
- package/lib/components/banner/content-banner/content-banner.component.d.ts +20 -0
- package/lib/components/breadcrumbs/breadcrumbs.component.d.ts +36 -0
- package/lib/components/cards/card-unidade-planos-convenios/card-unidade-planos-convenios.component.d.ts +41 -0
- package/lib/components/cards/expandable-card/expandable-card.component.d.ts +29 -0
- package/lib/components/cards/testimonial-card/testimonial-card.component.d.ts +31 -0
- package/lib/components/carousels/testimonials-carousel/testimonials-carousel.component.d.ts +28 -0
- package/lib/components/cta-wrapper/cta-wrapper.component.d.ts +33 -0
- package/lib/components/dropdown-search/dropdown-search-category.component.d.ts +9 -0
- package/lib/components/dropdown-search/dropdown-search-not-found.component.d.ts +9 -0
- package/lib/components/dropdown-search/dropdown-search-option.component.d.ts +26 -0
- package/lib/components/dropdown-search/dropdown-search.component.d.ts +71 -0
- package/lib/components/error/error-service/error.service.d.ts +8 -0
- package/lib/components/error/error.component.d.ts +48 -0
- package/lib/components/filter-letter-and-terms/filter-letter-and-terms.component.d.ts +36 -0
- package/lib/components/filters/filter-generic/filter-generic.component.d.ts +77 -0
- package/lib/components/filters/filter-planos-convenios/filter-planos-convenios.component.d.ts +45 -0
- package/lib/components/footer/footer.component.d.ts +49 -0
- package/lib/components/footer/helpers/footerTheme.func.d.ts +3 -0
- package/lib/components/footer/models/FooterTheme.model.d.ts +7 -0
- package/lib/components/header/components/header-action-menu/header-action-menu.component.d.ts +16 -0
- package/lib/components/header/components/header-aux-menu/header-aux-menu.component.d.ts +5 -0
- package/lib/components/header/components/header-aux-menu-container/header-aux-menu-container.component.d.ts +6 -0
- package/lib/components/header/components/header-aux-menu-item/header-aux-menu-item.component.d.ts +21 -0
- package/lib/components/header/components/header-aux-menu-item-dropdown/header-aux-menu-item-dropdown.component.d.ts +10 -0
- package/lib/components/header/components/header-logo/header-logo.component.d.ts +12 -0
- package/lib/components/header/components/header-main-menu/header-main-menu.component.d.ts +5 -0
- package/lib/components/header/components/header-main-menu-item/header-main-menu-item.component.d.ts +29 -0
- package/lib/components/header/components/header-main-menu-item-dropdown/header-main-menu-item-dropdown.component.d.ts +41 -0
- package/lib/components/header/components/header-side-menu/header-side-menu.component.d.ts +11 -0
- package/lib/components/header/components/header-side-menu-item/header-side-menu-item.component.d.ts +22 -0
- package/lib/components/header/header.component.d.ts +36 -0
- package/lib/components/header/helpers/headerTheme.func.d.ts +3 -0
- package/lib/components/header/models/HeaderTheme.model.d.ts +8 -0
- package/lib/components/header/services/header.service.d.ts +11 -0
- package/lib/components/image/image.component.d.ts +22 -0
- package/lib/components/index.d.ts +50 -0
- package/lib/components/input-file/input-file.component.d.ts +88 -0
- package/{components/load-screen/index.d.ts → lib/components/load-screen/load-screen.component.d.ts} +5 -6
- package/{components/overlay/index.d.ts → lib/components/overlay/overlay.component.d.ts} +4 -6
- package/lib/components/page-header/page-header.component.d.ts +20 -0
- package/lib/components/page-template-fullcontent/page-template-fullcontent.component.d.ts +14 -0
- package/lib/components/page-template-sidebar/page-template-sidebar.component.d.ts +17 -0
- package/lib/components/pagination/pagination.component.d.ts +30 -0
- package/lib/components/post-header/post-header.component.d.ts +31 -0
- package/lib/components/search/search.component.d.ts +48 -0
- package/lib/components/section-navigation/section-navigation.component.d.ts +44 -0
- package/lib/components/side-ctas/components/side-ctas-bottom/side-ctas-bottom.component.d.ts +23 -0
- package/lib/components/side-ctas/components/side-ctas-right-bottom/side-ctas-right-bottom.component.d.ts +15 -0
- package/lib/components/side-ctas/components/side-ctas-right-middle/side-ctas-right-middle.component.d.ts +22 -0
- package/lib/components/side-ctas/components/side-ctas-right-top/side-ctas-right-top.component.d.ts +5 -0
- package/lib/components/side-ctas/models/SideCta.model.d.ts +5 -0
- package/lib/components/side-ctas/side-ctas.component.d.ts +11 -0
- package/lib/components/sidebar-navigation/sidebar-navigation.component.d.ts +39 -0
- package/lib/components/sticky-navigation/sticky-navigation.component.d.ts +43 -0
- package/lib/components/whatsapp/whatsapp.component.d.ts +29 -0
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/rdsite-click-outside/rdsite-click-outside.directive.d.ts +10 -0
- package/lib/directives/rdsite-link/rdsite-link.directive.d.ts +40 -0
- package/lib/directives/rdsite-phone-modal/rdsite-phone-modal.directive.d.ts +17 -0
- package/lib/enums/EnumDoencaTaxonomy.enum.d.ts +8 -0
- package/lib/enums/EnumError.enum.d.ts +4 -0
- package/lib/enums/EnumThemes.enum.d.ts +7 -0
- package/lib/enums/Estados.enum.d.ts +29 -0
- package/lib/enums/Filter.enum.d.ts +7 -0
- package/{enums/index.d.ts → lib/enums/IconCuraDefaultType.enum.d.ts} +1 -58
- package/lib/enums/ImageMimeType.enum.d.ts +5 -0
- package/lib/enums/RdsiteModalComponentStyle.enum.d.ts +14 -0
- package/lib/enums/RdsiteModalDrawerComponentStyle.enum.d.ts +7 -0
- package/lib/enums/UnidadeCoverageType.enum.d.ts +5 -0
- package/lib/enums/index.d.ts +10 -0
- package/lib/helpers/check-safari-agent.func.d.ts +2 -0
- package/lib/helpers/formatPhone.func.d.ts +1 -0
- package/lib/helpers/getCircularReplacer.func.d.ts +7 -0
- package/lib/helpers/getSiteUrl.func.d.ts +2 -0
- package/lib/helpers/index.d.ts +8 -0
- package/lib/helpers/mediaQueries.d.ts +6 -0
- package/lib/helpers/removeDuplicateObjectsFromArray.func.d.ts +2 -0
- package/lib/helpers/removeDuplicateValuesFromArray.func.d.ts +2 -0
- package/lib/helpers/removeHtmlTags.func.d.ts +2 -0
- package/lib/helpers/toQueryParams.func.d.ts +5 -0
- package/lib/interceptors/error.interceptor.d.ts +13 -0
- package/lib/interceptors/index.d.ts +2 -0
- package/lib/interceptors/log.interceptor.d.ts +11 -0
- package/lib/middlewares/index.d.ts +4 -0
- package/lib/middlewares/ssr-initialization.middleware.d.ts +2 -0
- package/lib/middlewares/url-validation-default-logo.d.ts +1 -0
- package/lib/middlewares/url-validation-error-page.d.ts +22 -0
- package/lib/middlewares/url-validation.middleware.d.ts +13 -0
- package/lib/models/algolia-search-api.model.d.ts +179 -0
- package/lib/models/breadcrumbs/breadcrumbs-items.model.d.ts +10 -0
- package/lib/models/breadcrumbs/breadcrumbs-json-item.model.d.ts +8 -0
- package/lib/models/centro-estudos-backend.model.d.ts +8 -0
- package/lib/models/centro-medico.model.d.ts +33 -0
- package/lib/models/content-banner.model.d.ts +15 -0
- package/lib/models/cta-wrapper.model.d.ts +9 -0
- package/lib/models/doenca-backend.model.d.ts +25 -0
- package/lib/models/doenca-taxonomy.model.d.ts +11 -0
- package/lib/models/especialidade-backend.model.d.ts +24 -0
- package/lib/models/exame-backend.model.d.ts +25 -0
- package/lib/models/filters/filter-planos-convenios.model.d.ts +28 -0
- package/lib/models/filters/filter-section.type.d.ts +13 -0
- package/lib/models/filters/filter-sections.model.d.ts +52 -0
- package/lib/models/images/rdsite-image.model.d.ts +5 -0
- package/lib/models/medico-cv.model.d.ts +10 -0
- package/lib/models/medico.model.d.ts +68 -0
- package/lib/models/menu-de-unidade.model.d.ts +14 -0
- package/lib/models/menu-item.model.d.ts +67 -0
- package/lib/models/privacy-tools/privacy-tools.model.d.ts +8 -0
- package/lib/models/rdsl-cobertura.model.d.ts +71 -0
- package/lib/models/rdsl-convenio.model.d.ts +17 -0
- package/lib/models/rdsl-especialidade.model.d.ts +33 -0
- package/lib/models/rdsl-planos.model.d.ts +13 -0
- package/lib/models/rdsl-post-category.model.d.ts +8 -0
- package/lib/models/rdsl-unidade.model.d.ts +50 -0
- package/lib/models/section-navigation.model.d.ts +9 -0
- package/lib/models/seo/seo-data.model.d.ts +11 -0
- package/lib/models/seo/seo-unidade.model.d.ts +6 -0
- package/lib/models/social-meta-properties.model.d.ts +9 -0
- package/lib/models/wordpress/WpResponse.model.d.ts +31 -0
- package/lib/models/wordpress/category/wpCategory.model.d.ts +14 -0
- package/lib/models/wordpress/general/content.model.d.ts +4 -0
- package/lib/models/wordpress/general/excerpt.model.d.ts +4 -0
- package/lib/models/wordpress/general/featuredMedia.model.d.ts +26 -0
- package/lib/models/wordpress/general/guid.model.d.ts +3 -0
- package/lib/models/wordpress/general/index.d.ts +10 -0
- package/lib/models/wordpress/general/links.model.d.ts +47 -0
- package/lib/models/wordpress/general/meta.model.d.ts +3 -0
- package/lib/models/wordpress/general/title.model.d.ts +3 -0
- package/lib/models/wordpress/general/yoastData.model.d.ts +4 -0
- package/lib/models/wordpress/general/yoastHeadJson.model.d.ts +56 -0
- package/lib/models/wordpress/general/yoastMeta.model.d.ts +5 -0
- package/lib/models/wordpress/page/page.model.d.ts +10 -0
- package/lib/models/wordpress/post/post.model.d.ts +33 -0
- package/lib/models/wordpress/unidade/wp-unidade-onco.model.d.ts +56 -0
- package/lib/models/wordpress/unidade/wp-unidade-site-detalhe.model.d.ts +166 -0
- package/lib/models/wordpress/unidade/wp-unidade-site.model.d.ts +45 -0
- package/lib/pipes/index.d.ts +1 -0
- package/lib/pipes/phone/phone.pipe.d.ts +7 -0
- package/{services/algolia/index.d.ts → lib/services/algolia/algolia.service.d.ts} +4 -6
- package/{services/algolia-search-api/index.d.ts → lib/services/algolia-search-api/algolia-search-api.service.d.ts} +7 -6
- package/lib/services/geoloc/geoloc.service.d.ts +49 -0
- package/lib/services/http-client/http-client.service.d.ts +19 -0
- package/lib/services/index.d.ts +18 -0
- package/lib/services/log/log.service.d.ts +16 -0
- package/lib/services/mapbox/mapbox.service.d.ts +55 -0
- package/lib/services/modal/modal.service.d.ts +31 -0
- package/lib/services/modal-drawer/modal-drawer.service.d.ts +37 -0
- package/{services/ngu-carousel/index.d.ts → lib/services/ngu-carousel/ngu-carousel.service.d.ts} +3 -6
- package/lib/services/phone/phone.service.d.ts +11 -0
- package/lib/services/privacy-tools/privacy-tools.service.d.ts +20 -0
- package/lib/services/seo/seo.service.d.ts +142 -0
- package/lib/services/server-response/server-response.service.d.ts +39 -0
- package/lib/services/site-back-end/site-back-end.service.d.ts +87 -0
- package/{services/ssr-loading/index.d.ts → lib/services/ssr-loading/ssr-loading.service.d.ts} +4 -5
- package/lib/services/transfer-state/transfer-state.service.d.ts +12 -0
- package/{services/youtube/index.d.ts → lib/services/youtube/youtube.service.d.ts} +3 -5
- package/lib/tokens/LibConfig.d.ts +38 -0
- package/lib/tokens/express.tokens.d.ts +4 -0
- package/package.json +13 -283
- package/public-api.d.ts +10 -0
- package/components/algolia-dropdown/index.d.ts +0 -38
- package/components/algolia-search/index.d.ts +0 -292
- package/components/banner/index.d.ts +0 -20
- package/components/breadcrumbs/index.d.ts +0 -35
- package/components/cards/index.d.ts +0 -96
- package/components/carousels/index.d.ts +0 -28
- package/components/cta-wrapper/index.d.ts +0 -31
- package/components/error/index.d.ts +0 -46
- package/components/filter-letter-and-terms/index.d.ts +0 -36
- package/components/filters/filter-generic/index.d.ts +0 -68
- package/components/filters/filter-planos-convenios/index.d.ts +0 -41
- package/components/footer/index.d.ts +0 -38
- package/components/header/components/action/index.d.ts +0 -17
- package/components/header/components/auxiliar/index.d.ts +0 -29
- package/components/header/components/main/index.d.ts +0 -70
- package/components/header/components/side/index.d.ts +0 -33
- package/components/header/index.d.ts +0 -60
- package/components/header/services/index.d.ts +0 -14
- package/components/image/index.d.ts +0 -23
- package/components/modal/index.d.ts +0 -29
- package/components/modal-drawer/index.d.ts +0 -49
- package/components/page-header/index.d.ts +0 -20
- package/components/page-template-sidebar/index.d.ts +0 -20
- package/components/pagination/index.d.ts +0 -30
- package/components/search/index.d.ts +0 -45
- package/components/section-navigation/index.d.ts +0 -41
- package/components/side-ctas/index.d.ts +0 -70
- package/components/whatsapp/index.d.ts +0 -27
- package/core/index.d.ts +0 -1984
- package/cura/accordion/index.d.ts +0 -120
- package/cura/api/index.d.ts +0 -359
- package/cura/badges/cura-badge-counter/index.d.ts +0 -38
- package/cura/badges/cura-badge-distance/index.d.ts +0 -21
- package/cura/badges/cura-badge-dot/index.d.ts +0 -29
- package/cura/badges/cura-badge-pill/index.d.ts +0 -47
- package/cura/badges/index.d.ts +0 -5
- package/cura/buttons/cura-button/index.d.ts +0 -85
- package/cura/buttons/cura-button-outline/index.d.ts +0 -85
- package/cura/buttons/cura-button-select/index.d.ts +0 -34
- package/cura/buttons/cura-button-transparent/index.d.ts +0 -82
- package/cura/buttons/index.d.ts +0 -15
- package/cura/cards/cura-card/index.d.ts +0 -54
- package/cura/feedback/cura-alert/index.d.ts +0 -55
- package/cura/feedback/cura-modal/index.d.ts +0 -97
- package/cura/forms/cura-checkbox/index.d.ts +0 -152
- package/cura/forms/cura-input-text/index.d.ts +0 -234
- package/cura/forms/cura-label/index.d.ts +0 -51
- package/cura/forms/cura-radio/index.d.ts +0 -143
- package/cura/forms/cura-select/index.d.ts +0 -151
- package/cura/forms/cura-select-option/index.d.ts +0 -49
- package/cura/forms/cura-switch/index.d.ts +0 -113
- package/cura/forms/index.d.ts +0 -20
- package/cura/icons/cura-icon/index.d.ts +0 -46
- package/cura/loaders/cura-loader-bar/index.d.ts +0 -22
- package/cura/loaders/cura-loader-circle/index.d.ts +0 -24
- package/cura/texts/cura-display/index.d.ts +0 -54
- package/cura/texts/cura-heading/index.d.ts +0 -65
- package/cura/texts/cura-paragraph/index.d.ts +0 -54
- package/cura/texts/index.d.ts +0 -7
- package/fesm2022/rededor-site-front-end-lib-components-algolia-dropdown.mjs +0 -108
- package/fesm2022/rededor-site-front-end-lib-components-algolia-dropdown.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-algolia-search.mjs +0 -583
- package/fesm2022/rededor-site-front-end-lib-components-algolia-search.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-banner.mjs +0 -44
- package/fesm2022/rededor-site-front-end-lib-components-banner.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs +0 -119
- package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-cards.mjs +0 -152
- package/fesm2022/rededor-site-front-end-lib-components-cards.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-carousels.mjs +0 -75
- package/fesm2022/rededor-site-front-end-lib-components-carousels.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-cta-wrapper.mjs +0 -74
- package/fesm2022/rededor-site-front-end-lib-components-cta-wrapper.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-error.mjs +0 -173
- package/fesm2022/rededor-site-front-end-lib-components-error.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-filter-letter-and-terms.mjs +0 -91
- package/fesm2022/rededor-site-front-end-lib-components-filter-letter-and-terms.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs +0 -243
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-planos-convenios.mjs +0 -139
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-planos-convenios.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-footer.mjs +0 -150
- package/fesm2022/rededor-site-front-end-lib-components-footer.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-action.mjs +0 -31
- package/fesm2022/rededor-site-front-end-lib-components-header-components-action.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs +0 -59
- package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs +0 -164
- package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-side.mjs +0 -68
- package/fesm2022/rededor-site-front-end-lib-components-header-components-side.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-services.mjs +0 -50
- package/fesm2022/rededor-site-front-end-lib-components-header-services.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-header.mjs +0 -259
- package/fesm2022/rededor-site-front-end-lib-components-header.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-image.mjs +0 -48
- package/fesm2022/rededor-site-front-end-lib-components-image.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-load-screen.mjs +0 -30
- package/fesm2022/rededor-site-front-end-lib-components-load-screen.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-modal-drawer.mjs +0 -162
- package/fesm2022/rededor-site-front-end-lib-components-modal-drawer.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-modal.mjs +0 -82
- package/fesm2022/rededor-site-front-end-lib-components-modal.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-overlay.mjs +0 -24
- package/fesm2022/rededor-site-front-end-lib-components-overlay.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-page-header.mjs +0 -41
- package/fesm2022/rededor-site-front-end-lib-components-page-header.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-page-template-sidebar.mjs +0 -30
- package/fesm2022/rededor-site-front-end-lib-components-page-template-sidebar.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-pagination.mjs +0 -55
- package/fesm2022/rededor-site-front-end-lib-components-pagination.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-search.mjs +0 -119
- package/fesm2022/rededor-site-front-end-lib-components-search.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-section-navigation.mjs +0 -134
- package/fesm2022/rededor-site-front-end-lib-components-section-navigation.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-side-ctas.mjs +0 -118
- package/fesm2022/rededor-site-front-end-lib-components-side-ctas.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-components-whatsapp.mjs +0 -49
- package/fesm2022/rededor-site-front-end-lib-components-whatsapp.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-core.mjs +0 -1600
- package/fesm2022/rededor-site-front-end-lib-core.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-accordion.mjs +0 -252
- package/fesm2022/rededor-site-front-end-lib-cura-accordion.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-api.mjs +0 -541
- package/fesm2022/rededor-site-front-end-lib-cura-api.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs +0 -90
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs +0 -55
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs +0 -66
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs +0 -96
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges.mjs +0 -4
- package/fesm2022/rededor-site-front-end-lib-cura-badges.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-outline.mjs +0 -165
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-outline.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-select.mjs +0 -130
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-select.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs +0 -156
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button.mjs +0 -165
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons.mjs +0 -13
- package/fesm2022/rededor-site-front-end-lib-cura-buttons.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-cards-cura-card.mjs +0 -96
- package/fesm2022/rededor-site-front-end-lib-cura-cards-cura-card.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-alert.mjs +0 -90
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-alert.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-modal.mjs +0 -105
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-modal.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-checkbox.mjs +0 -253
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-checkbox.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs +0 -547
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-label.mjs +0 -88
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-label.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs +0 -237
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs +0 -82
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select.mjs +0 -377
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs +0 -182
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms.mjs +0 -21
- package/fesm2022/rededor-site-front-end-lib-cura-forms.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs +0 -88
- package/fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs +0 -44
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs +0 -49
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-display.mjs +0 -84
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-display.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-heading.mjs +0 -104
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-heading.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-paragraph.mjs +0 -89
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-paragraph.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts.mjs +0 -4
- package/fesm2022/rededor-site-front-end-lib-cura-texts.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-enums.mjs +0 -187
- package/fesm2022/rededor-site-front-end-lib-enums.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-services-algolia-search-api.mjs +0 -74
- package/fesm2022/rededor-site-front-end-lib-services-algolia-search-api.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-services-algolia.mjs +0 -41
- package/fesm2022/rededor-site-front-end-lib-services-algolia.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-services-ngu-carousel.mjs +0 -88
- package/fesm2022/rededor-site-front-end-lib-services-ngu-carousel.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-services-ssr-loading.mjs +0 -52
- package/fesm2022/rededor-site-front-end-lib-services-ssr-loading.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-services-youtube.mjs +0 -40
- package/fesm2022/rededor-site-front-end-lib-services-youtube.mjs.map +0 -1
- package/fesm2022/rededor-site-front-end-lib-shared.mjs +0 -110
- package/fesm2022/rededor-site-front-end-lib-shared.mjs.map +0 -1
- package/shared/index.d.ts +0 -40
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, input, HostBinding, Component, model, output, PLATFORM_ID, signal, viewChild } from '@angular/core';
|
|
3
|
-
import { RdsiteLinkDirective } from '@rededor/site-front-end-lib/core';
|
|
4
|
-
import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
|
|
5
|
-
import { ImageMimeType } from '@rededor/site-front-end-lib/enums';
|
|
6
|
-
import { ImageComponent } from '@rededor/site-front-end-lib/components/image';
|
|
7
|
-
import { CuraHeadingComponent } from '@rededor/site-front-end-lib/cura/texts/cura-heading';
|
|
8
|
-
import { CuraParagraphComponent } from '@rededor/site-front-end-lib/cura/texts/cura-paragraph';
|
|
9
|
-
import { CuraBadgePillComponent } from '@rededor/site-front-end-lib/cura/badges/cura-badge-pill';
|
|
10
|
-
import { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';
|
|
11
|
-
import { CuraButtonComponent } from '@rededor/site-front-end-lib/cura/buttons/cura-button';
|
|
12
|
-
import * as i1 from '@angular/common';
|
|
13
|
-
import { CommonModule, isPlatformBrowser } from '@angular/common';
|
|
14
|
-
import * as i1$1 from '@angular/youtube-player';
|
|
15
|
-
import { YouTubePlayerModule } from '@angular/youtube-player';
|
|
16
|
-
import { YoutubeService } from '@rededor/site-front-end-lib/services/youtube';
|
|
17
|
-
|
|
18
|
-
class CardUnidadePlanosConveniosComponent {
|
|
19
|
-
constructor() {
|
|
20
|
-
this.curaApiService = inject(CuraApiService);
|
|
21
|
-
this.title = input('', ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
22
|
-
this.subtitle = input('', ...(ngDevMode ? [{ debugName: "subtitle" }] : []));
|
|
23
|
-
this.coverage = input(...(ngDevMode ? [undefined, { debugName: "coverage" }] : []));
|
|
24
|
-
this.address = input('', ...(ngDevMode ? [{ debugName: "address" }] : []));
|
|
25
|
-
this.cta1 = input(...(ngDevMode ? [undefined, { debugName: "cta1" }] : []));
|
|
26
|
-
this.cta2 = input(...(ngDevMode ? [undefined, { debugName: "cta2" }] : []));
|
|
27
|
-
this.logoWebpSrc = input('', ...(ngDevMode ? [{ debugName: "logoWebpSrc" }] : []));
|
|
28
|
-
this.logoDefaultSrc = input('', ...(ngDevMode ? [{ debugName: "logoDefaultSrc" }] : []));
|
|
29
|
-
this.logoSizes = input([], ...(ngDevMode ? [{ debugName: "logoSizes" }] : []));
|
|
30
|
-
this.logoMimeType = input(ImageMimeType.JPEG, ...(ngDevMode ? [{ debugName: "logoMimeType" }] : []));
|
|
31
|
-
this.logoAlt = input('', ...(ngDevMode ? [{ debugName: "logoAlt" }] : []));
|
|
32
|
-
this.logoTitle = input('', ...(ngDevMode ? [{ debugName: "logoTitle" }] : []));
|
|
33
|
-
this.styleBinding = {
|
|
34
|
-
'--neutral-light': this.curaApiService.theme.colors.getColor('neutral-light'),
|
|
35
|
-
'--neutral-white': this.curaApiService.theme.colors.getColor('neutral-white'),
|
|
36
|
-
'--neutral-purewhite': this.curaApiService.theme.colors.getColor('neutral-purewhite'),
|
|
37
|
-
'--color-base': this.curaApiService.theme.colors.getColor('primary-base'),
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CardUnidadePlanosConveniosComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
41
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.2", type: CardUnidadePlanosConveniosComponent, isStandalone: true, selector: "rdsite-card-unidade-planos-convenios", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, coverage: { classPropertyName: "coverage", publicName: "coverage", isSignal: true, isRequired: false, transformFunction: null }, address: { classPropertyName: "address", publicName: "address", isSignal: true, isRequired: false, transformFunction: null }, cta1: { classPropertyName: "cta1", publicName: "cta1", isSignal: true, isRequired: false, transformFunction: null }, cta2: { classPropertyName: "cta2", publicName: "cta2", isSignal: true, isRequired: false, transformFunction: null }, logoWebpSrc: { classPropertyName: "logoWebpSrc", publicName: "logoWebpSrc", isSignal: true, isRequired: false, transformFunction: null }, logoDefaultSrc: { classPropertyName: "logoDefaultSrc", publicName: "logoDefaultSrc", isSignal: true, isRequired: false, transformFunction: null }, logoSizes: { classPropertyName: "logoSizes", publicName: "logoSizes", isSignal: true, isRequired: false, transformFunction: null }, logoMimeType: { classPropertyName: "logoMimeType", publicName: "logoMimeType", isSignal: true, isRequired: false, transformFunction: null }, logoAlt: { classPropertyName: "logoAlt", publicName: "logoAlt", isSignal: true, isRequired: false, transformFunction: null }, logoTitle: { classPropertyName: "logoTitle", publicName: "logoTitle", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style": "this.styleBinding" } }, ngImport: i0, template: "<div class=\"rdsite-card-unidade-planos-convenios\">\n <rdsite-image\n class=\"rdsite-card-unidade-planos-convenios-logo\"\n [imageWebpSrc]=\"logoWebpSrc()\"\n [imageDefaultSrc]=\"logoDefaultSrc()\"\n [imageSizes]=\"logoSizes()\"\n [mimeType]=\"logoMimeType()\"\n [alt]=\"logoAlt()\"\n [title]=\"logoTitle()\"\n loading=\"lazy\"\n ></rdsite-image>\n\n <div class=\"rdsite-card-unidade-planos-convenios-heading\">\n @if (title()) {\n <cura-heading size=\"small\" [level]=\"2\" color=\"neutral-black\" weight=\"bold\" marginBlock=\"0\" lineHeight=\"150%\">\n {{ title() }}\n </cura-heading>\n }\n\n @if (subtitle()) {\n <cura-paragraph size=\"xsmall\" color=\"neutral-dark\" weight=\"bold\" marginBlock=\"0\" lineHeight=\"130%\">\n <span class=\"cura-paragraph-weight\">\n {{ subtitle() }}\n </span>\n </cura-paragraph>\n }\n </div>\n\n <div class=\"rdsite-card-unidade-planos-convenios-content\">\n @if (coverage()) {\n <cura-paragraph size=\"xsmall\" color=\"neutral-black\" marginBlock=\"0\" lineHeight=\"130%\">\n <span class=\"cura-paragraph-weight\">\n {{ coverage()?.title }}\n </span>\n </cura-paragraph>\n\n @if (coverage()?.list?.length) {\n <div class=\"coverage-list\">\n @for (item of coverage()?.list; track item.title) {\n <cura-badge-pill type=\"solid\" color=\"success\" [disabled]=\"!item.isCovered\" [iconName]=\"item.isCovered ? 'check' : 'close'\">\n {{ item.title }}\n </cura-badge-pill>\n }\n </div>\n }\n }\n\n @if (address()) {\n <div class=\"address\">\n <cura-icon name=\"geotag\" color=\"neutral-dark\" size=\"20\"></cura-icon>\n\n <cura-paragraph size=\"xsmall\" color=\"neutral-black\" marginBlock=\"0\" lineHeight=\"130%\">\n <span class=\"cura-paragraph-weight\"> {{ address() }} \u2022 </span>\n <a rdsitelink href=\"https://www.google.com/maps?q={{ address() }}\">Mapa</a>\n </cura-paragraph>\n </div>\n }\n </div>\n\n <div class=\"rdsite-card-unidade-planos-convenios-ctas\">\n @if (cta2() && cta2()?.label && cta2()?.link) {\n <cura-button type=\"button\" size=\"medium\" iconName=\"calendar\" color=\"accent\" rdsitelink [href]=\"cta2()!.link\">\n {{ cta2()?.label }}\n </cura-button>\n }\n\n @if (cta1() && cta1()?.label && cta1()?.link) {\n <cura-button type=\"button\" size=\"medium\" iconName=\"exam\" color=\"accent\" rdsitelink [href]=\"cta1()!.link\">\n {{ cta1()?.label }}\n </cura-button>\n }\n </div>\n</div>\n", styles: [":host{display:flex;width:100%;padding:20px;border-radius:12px;border:1px solid var(--neutral-light, rgb(212, 212, 212));background-color:var(--neutral-purewhite, rgb(255, 255, 255))}.rdsite-card-unidade-planos-convenios{display:grid;grid-template-rows:auto;grid-template-columns:auto;grid-template-areas:\"logo\" \"heading\" \"content\" \"ctas\";gap:12px 0;width:100%}.rdsite-card-unidade-planos-convenios-logo{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:2.26}.rdsite-card-unidade-planos-convenios ::ng-deep rdsite-image{grid-area:logo;padding:16px;background-color:var(--neutral-white);border-radius:4px}.rdsite-card-unidade-planos-convenios ::ng-deep rdsite-image picture,.rdsite-card-unidade-planos-convenios ::ng-deep rdsite-image picture img{width:80%;display:flex;align-items:center;justify-content:center}.rdsite-card-unidade-planos-convenios-heading{grid-area:heading}.rdsite-card-unidade-planos-convenios-content{grid-area:content;display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:3 0 0;width:100%}.rdsite-card-unidade-planos-convenios-content .address{display:flex;padding:8px;align-items:center;gap:8px;width:100%;border-radius:4px;background-color:var(--neutral-white, rgb(246, 246, 246))}.rdsite-card-unidade-planos-convenios-content .address a{color:var(--color-base);font-weight:500}.rdsite-card-unidade-planos-convenios-content .coverage-list{display:flex;gap:8px;flex-wrap:wrap}.rdsite-card-unidade-planos-convenios-ctas{grid-area:ctas;display:flex;width:100%;flex-direction:column;justify-content:center;align-items:stretch;gap:12px}@media screen and (min-width: 992px){.rdsite-card-unidade-planos-convenios{grid-template-rows:auto;grid-template-columns:152px 1fr auto;grid-template-areas:\"logo heading ctas\" \"content content content\";gap:20px;align-items:flex-start}.rdsite-card-unidade-planos-convenios-logo{aspect-ratio:1.26}.rdsite-card-unidade-planos-convenios ::ng-deep rdsite-image picture,.rdsite-card-unidade-planos-convenios ::ng-deep rdsite-image picture img{width:100%}.rdsite-card-unidade-planos-convenios-content{gap:16px}.rdsite-card-unidade-planos-convenios-content .coverage-list{gap:16px 8px}.rdsite-card-unidade-planos-convenios-content .address{width:fit-content}.rdsite-card-unidade-planos-convenios-ctas{width:224px}}span.cura-paragraph-weight{font-weight:500}\n"], dependencies: [{ kind: "component", type: ImageComponent, selector: "rdsite-image", inputs: ["imageWebpSrc", "imageDefaultSrc", "imageSizes", "mimeType", "alt", "title", "loading"], outputs: ["imageDefaultSrcChange", "mimeTypeChange"] }, { kind: "directive", type: RdsiteLinkDirective, selector: "[rdsitelink]", inputs: ["anchorAdjustment", "anchorExtraAdjustment", "phonemodal"] }, { kind: "component", type: CuraHeadingComponent, selector: "cura-heading", inputs: ["level", "size", "weight", "spotColor", "color", "marginBlock", "lineHeight", "textOverflow"] }, { kind: "component", type: CuraParagraphComponent, selector: "cura-paragraph", inputs: ["size", "spotColor", "color", "marginBlock", "lineHeight", "textOverflow"] }, { kind: "component", type: CuraBadgePillComponent, selector: "cura-badge-pill", inputs: ["type", "color", "iconName", "iconset", "disabled", "iconOnly", "borderRadius"] }, { kind: "component", type: CuraIconComponent, selector: "cura-icon", inputs: ["name", "color", "size", "iconset", "disabled"] }, { kind: "component", type: CuraButtonComponent, selector: "cura-button", inputs: ["type", "size", "disabled", "isLoading", "iconName", "iconset", "iconPosition", "iconOnly", "href", "target", "color", "background", "fontColor", "textAlign", "justify"], outputs: ["buttonClick"] }] }); }
|
|
42
|
-
}
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CardUnidadePlanosConveniosComponent, decorators: [{
|
|
44
|
-
type: Component,
|
|
45
|
-
args: [{ selector: 'rdsite-card-unidade-planos-convenios', imports: [ImageComponent, RdsiteLinkDirective, CuraHeadingComponent, CuraParagraphComponent, CuraBadgePillComponent, CuraIconComponent, CuraButtonComponent], template: "<div class=\"rdsite-card-unidade-planos-convenios\">\n <rdsite-image\n class=\"rdsite-card-unidade-planos-convenios-logo\"\n [imageWebpSrc]=\"logoWebpSrc()\"\n [imageDefaultSrc]=\"logoDefaultSrc()\"\n [imageSizes]=\"logoSizes()\"\n [mimeType]=\"logoMimeType()\"\n [alt]=\"logoAlt()\"\n [title]=\"logoTitle()\"\n loading=\"lazy\"\n ></rdsite-image>\n\n <div class=\"rdsite-card-unidade-planos-convenios-heading\">\n @if (title()) {\n <cura-heading size=\"small\" [level]=\"2\" color=\"neutral-black\" weight=\"bold\" marginBlock=\"0\" lineHeight=\"150%\">\n {{ title() }}\n </cura-heading>\n }\n\n @if (subtitle()) {\n <cura-paragraph size=\"xsmall\" color=\"neutral-dark\" weight=\"bold\" marginBlock=\"0\" lineHeight=\"130%\">\n <span class=\"cura-paragraph-weight\">\n {{ subtitle() }}\n </span>\n </cura-paragraph>\n }\n </div>\n\n <div class=\"rdsite-card-unidade-planos-convenios-content\">\n @if (coverage()) {\n <cura-paragraph size=\"xsmall\" color=\"neutral-black\" marginBlock=\"0\" lineHeight=\"130%\">\n <span class=\"cura-paragraph-weight\">\n {{ coverage()?.title }}\n </span>\n </cura-paragraph>\n\n @if (coverage()?.list?.length) {\n <div class=\"coverage-list\">\n @for (item of coverage()?.list; track item.title) {\n <cura-badge-pill type=\"solid\" color=\"success\" [disabled]=\"!item.isCovered\" [iconName]=\"item.isCovered ? 'check' : 'close'\">\n {{ item.title }}\n </cura-badge-pill>\n }\n </div>\n }\n }\n\n @if (address()) {\n <div class=\"address\">\n <cura-icon name=\"geotag\" color=\"neutral-dark\" size=\"20\"></cura-icon>\n\n <cura-paragraph size=\"xsmall\" color=\"neutral-black\" marginBlock=\"0\" lineHeight=\"130%\">\n <span class=\"cura-paragraph-weight\"> {{ address() }} \u2022 </span>\n <a rdsitelink href=\"https://www.google.com/maps?q={{ address() }}\">Mapa</a>\n </cura-paragraph>\n </div>\n }\n </div>\n\n <div class=\"rdsite-card-unidade-planos-convenios-ctas\">\n @if (cta2() && cta2()?.label && cta2()?.link) {\n <cura-button type=\"button\" size=\"medium\" iconName=\"calendar\" color=\"accent\" rdsitelink [href]=\"cta2()!.link\">\n {{ cta2()?.label }}\n </cura-button>\n }\n\n @if (cta1() && cta1()?.label && cta1()?.link) {\n <cura-button type=\"button\" size=\"medium\" iconName=\"exam\" color=\"accent\" rdsitelink [href]=\"cta1()!.link\">\n {{ cta1()?.label }}\n </cura-button>\n }\n </div>\n</div>\n", styles: [":host{display:flex;width:100%;padding:20px;border-radius:12px;border:1px solid var(--neutral-light, rgb(212, 212, 212));background-color:var(--neutral-purewhite, rgb(255, 255, 255))}.rdsite-card-unidade-planos-convenios{display:grid;grid-template-rows:auto;grid-template-columns:auto;grid-template-areas:\"logo\" \"heading\" \"content\" \"ctas\";gap:12px 0;width:100%}.rdsite-card-unidade-planos-convenios-logo{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:2.26}.rdsite-card-unidade-planos-convenios ::ng-deep rdsite-image{grid-area:logo;padding:16px;background-color:var(--neutral-white);border-radius:4px}.rdsite-card-unidade-planos-convenios ::ng-deep rdsite-image picture,.rdsite-card-unidade-planos-convenios ::ng-deep rdsite-image picture img{width:80%;display:flex;align-items:center;justify-content:center}.rdsite-card-unidade-planos-convenios-heading{grid-area:heading}.rdsite-card-unidade-planos-convenios-content{grid-area:content;display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:3 0 0;width:100%}.rdsite-card-unidade-planos-convenios-content .address{display:flex;padding:8px;align-items:center;gap:8px;width:100%;border-radius:4px;background-color:var(--neutral-white, rgb(246, 246, 246))}.rdsite-card-unidade-planos-convenios-content .address a{color:var(--color-base);font-weight:500}.rdsite-card-unidade-planos-convenios-content .coverage-list{display:flex;gap:8px;flex-wrap:wrap}.rdsite-card-unidade-planos-convenios-ctas{grid-area:ctas;display:flex;width:100%;flex-direction:column;justify-content:center;align-items:stretch;gap:12px}@media screen and (min-width: 992px){.rdsite-card-unidade-planos-convenios{grid-template-rows:auto;grid-template-columns:152px 1fr auto;grid-template-areas:\"logo heading ctas\" \"content content content\";gap:20px;align-items:flex-start}.rdsite-card-unidade-planos-convenios-logo{aspect-ratio:1.26}.rdsite-card-unidade-planos-convenios ::ng-deep rdsite-image picture,.rdsite-card-unidade-planos-convenios ::ng-deep rdsite-image picture img{width:100%}.rdsite-card-unidade-planos-convenios-content{gap:16px}.rdsite-card-unidade-planos-convenios-content .coverage-list{gap:16px 8px}.rdsite-card-unidade-planos-convenios-content .address{width:fit-content}.rdsite-card-unidade-planos-convenios-ctas{width:224px}}span.cura-paragraph-weight{font-weight:500}\n"] }]
|
|
46
|
-
}], propDecorators: { styleBinding: [{
|
|
47
|
-
type: HostBinding,
|
|
48
|
-
args: ['style']
|
|
49
|
-
}] } });
|
|
50
|
-
|
|
51
|
-
class ExpandableCardComponent {
|
|
52
|
-
constructor() {
|
|
53
|
-
this.curaApiService = inject(CuraApiService);
|
|
54
|
-
this.opened = model(false, ...(ngDevMode ? [{ debugName: "opened" }] : []));
|
|
55
|
-
this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
56
|
-
this.link = input('', ...(ngDevMode ? [{ debugName: "link" }] : []));
|
|
57
|
-
this.badgeLabel = input('', ...(ngDevMode ? [{ debugName: "badgeLabel" }] : []));
|
|
58
|
-
this.openIcon = input('plus', ...(ngDevMode ? [{ debugName: "openIcon" }] : []));
|
|
59
|
-
this.closeIcon = input('minus', ...(ngDevMode ? [{ debugName: "closeIcon" }] : []));
|
|
60
|
-
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
61
|
-
this.toggle = output();
|
|
62
|
-
this.styleBinding = {
|
|
63
|
-
'--neutral-light': this.curaApiService.theme.colors.getColor('neutral-light'),
|
|
64
|
-
'--neutral-base': this.curaApiService.theme.colors.getColor('neutral-base'),
|
|
65
|
-
'--neutral-purewhite': this.curaApiService.theme.colors.getColor('neutral-purewhite'),
|
|
66
|
-
'--neutral-black': this.curaApiService.theme.colors.getColor('neutral-black'),
|
|
67
|
-
'--color-one-dark': this.curaApiService.theme.colors.getColor('primary-dark'),
|
|
68
|
-
'--font-family': this.curaApiService.theme.fonts.getFamily(''),
|
|
69
|
-
};
|
|
70
|
-
this.classes = [];
|
|
71
|
-
}
|
|
72
|
-
ngOnChanges() {
|
|
73
|
-
this.checkDisabledCard();
|
|
74
|
-
}
|
|
75
|
-
toggleCard() {
|
|
76
|
-
this.opened.set(!this.opened());
|
|
77
|
-
this.toggle.emit(this.opened());
|
|
78
|
-
}
|
|
79
|
-
checkDisabledCard() {
|
|
80
|
-
this.classes = this.disabled() ? ['disabled'] : [];
|
|
81
|
-
}
|
|
82
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ExpandableCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
83
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.2", type: ExpandableCardComponent, isStandalone: true, selector: "rdsite-expandable-card", inputs: { opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, badgeLabel: { classPropertyName: "badgeLabel", publicName: "badgeLabel", isSignal: true, isRequired: false, transformFunction: null }, openIcon: { classPropertyName: "openIcon", publicName: "openIcon", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "openedChange", toggle: "toggle" }, host: { properties: { "style": "this.styleBinding", "class": "this.classes" } }, usesOnChanges: true, ngImport: i0, template: "@if (label()) {\n <div class=\"card-header\" [ngClass]=\"{ noBadge: !badgeLabel() }\" (click)=\"toggleCard()\">\n @if (link() && label()) {\n <a rdsitelink class=\"card-link\" [href]=\"link()\">\n {{ label() }}\n <cura-icon name=\"arrowRight\" color=\"primary-dark\" size=\"16\"></cura-icon>\n </a>\n }\n\n @if (badgeLabel()) {\n <cura-badge-pill type=\"solid\" color=\"primary\">\n {{ badgeLabel() }}\n </cura-badge-pill>\n }\n\n <cura-icon [name]=\"opened() ? closeIcon() : openIcon()\" color=\"primary-dark\" size=\"20\"></cura-icon>\n </div>\n\n <div class=\"card-content\" [ngClass]=\"{ opened: opened() }\">\n <ng-content></ng-content>\n </div>\n}\n", styles: [":host{display:block;width:100%;height:auto;border-radius:12px;border:2px solid var(--neutral-base);background:var(--neutral-purewhite)}:host .card-header{display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr auto;grid-template-areas:\"badge . icon\" \"label . icon\" \"link . icon\";width:100%;height:auto;padding:20px;cursor:pointer}:host .card-header .card-link{grid-area:link;font-family:var(--font-family);color:var(--color-one-dark);font-size:14px;font-weight:500;line-height:19px;letter-spacing:.28px;text-decoration-line:underline;display:flex;justify-content:flex-start;align-items:center;gap:8px;margin-top:4px}@media screen and (min-width: 992px){:host .card-header .card-link{font-size:16px;line-height:23px;letter-spacing:.32px}}:host .card-header cura-badge-pill{grid-area:badge;margin-bottom:4px}:host .card-header>cura-icon{grid-area:icon;margin-left:16px}:host .card-header.noBadge{grid-template-areas:\"label . icon\" \"link . icon\"}:host .card-content{overflow:hidden;max-height:0;transition:all .25s ease;transform:translateZ(0)}:host .card-content.opened{max-height:fit-content;transition:.5s ease .14s}:host.disabled .card-header{grid-template-areas:\"label\" \"link\";cursor:default}:host.disabled .card-header cura-badge-pill,:host.disabled .card-header>cura-icon{display:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: RdsiteLinkDirective, selector: "[rdsitelink]", inputs: ["anchorAdjustment", "anchorExtraAdjustment", "phonemodal"] }, { kind: "component", type: CuraIconComponent, selector: "cura-icon", inputs: ["name", "color", "size", "iconset", "disabled"] }, { kind: "component", type: CuraBadgePillComponent, selector: "cura-badge-pill", inputs: ["type", "color", "iconName", "iconset", "disabled", "iconOnly", "borderRadius"] }] }); }
|
|
84
|
-
}
|
|
85
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ExpandableCardComponent, decorators: [{
|
|
86
|
-
type: Component,
|
|
87
|
-
args: [{ selector: 'rdsite-expandable-card', imports: [CommonModule, RdsiteLinkDirective, CuraIconComponent, CuraBadgePillComponent], template: "@if (label()) {\n <div class=\"card-header\" [ngClass]=\"{ noBadge: !badgeLabel() }\" (click)=\"toggleCard()\">\n @if (link() && label()) {\n <a rdsitelink class=\"card-link\" [href]=\"link()\">\n {{ label() }}\n <cura-icon name=\"arrowRight\" color=\"primary-dark\" size=\"16\"></cura-icon>\n </a>\n }\n\n @if (badgeLabel()) {\n <cura-badge-pill type=\"solid\" color=\"primary\">\n {{ badgeLabel() }}\n </cura-badge-pill>\n }\n\n <cura-icon [name]=\"opened() ? closeIcon() : openIcon()\" color=\"primary-dark\" size=\"20\"></cura-icon>\n </div>\n\n <div class=\"card-content\" [ngClass]=\"{ opened: opened() }\">\n <ng-content></ng-content>\n </div>\n}\n", styles: [":host{display:block;width:100%;height:auto;border-radius:12px;border:2px solid var(--neutral-base);background:var(--neutral-purewhite)}:host .card-header{display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr auto;grid-template-areas:\"badge . icon\" \"label . icon\" \"link . icon\";width:100%;height:auto;padding:20px;cursor:pointer}:host .card-header .card-link{grid-area:link;font-family:var(--font-family);color:var(--color-one-dark);font-size:14px;font-weight:500;line-height:19px;letter-spacing:.28px;text-decoration-line:underline;display:flex;justify-content:flex-start;align-items:center;gap:8px;margin-top:4px}@media screen and (min-width: 992px){:host .card-header .card-link{font-size:16px;line-height:23px;letter-spacing:.32px}}:host .card-header cura-badge-pill{grid-area:badge;margin-bottom:4px}:host .card-header>cura-icon{grid-area:icon;margin-left:16px}:host .card-header.noBadge{grid-template-areas:\"label . icon\" \"link . icon\"}:host .card-content{overflow:hidden;max-height:0;transition:all .25s ease;transform:translateZ(0)}:host .card-content.opened{max-height:fit-content;transition:.5s ease .14s}:host.disabled .card-header{grid-template-areas:\"label\" \"link\";cursor:default}:host.disabled .card-header cura-badge-pill,:host.disabled .card-header>cura-icon{display:none}\n"] }]
|
|
88
|
-
}], propDecorators: { styleBinding: [{
|
|
89
|
-
type: HostBinding,
|
|
90
|
-
args: ['style']
|
|
91
|
-
}], classes: [{
|
|
92
|
-
type: HostBinding,
|
|
93
|
-
args: ['class']
|
|
94
|
-
}] } });
|
|
95
|
-
|
|
96
|
-
class TestimonialCardComponent {
|
|
97
|
-
constructor() {
|
|
98
|
-
this.curaApiService = inject(CuraApiService);
|
|
99
|
-
this.youtubeService = inject(YoutubeService);
|
|
100
|
-
this.platformId = inject(PLATFORM_ID);
|
|
101
|
-
this.type = input('image', ...(ngDevMode ? [{ debugName: "type" }] : []));
|
|
102
|
-
this.image = input(null, ...(ngDevMode ? [{ debugName: "image" }] : []));
|
|
103
|
-
this.videoUrl = input('', ...(ngDevMode ? [{ debugName: "videoUrl" }] : []));
|
|
104
|
-
this.text = input('', ...(ngDevMode ? [{ debugName: "text" }] : []));
|
|
105
|
-
this.author = input('', ...(ngDevMode ? [{ debugName: "author" }] : []));
|
|
106
|
-
this.position = input('', ...(ngDevMode ? [{ debugName: "position" }] : []));
|
|
107
|
-
this.videoId = signal('', ...(ngDevMode ? [{ debugName: "videoId" }] : []));
|
|
108
|
-
this.platformBrowser = signal(null, ...(ngDevMode ? [{ debugName: "platformBrowser" }] : []));
|
|
109
|
-
this.youtubePlayer = viewChild.required('youtubePlayer');
|
|
110
|
-
this.styleBinding = {
|
|
111
|
-
'--neutral-black': this.curaApiService.theme.colors.getColor('neutral-black'),
|
|
112
|
-
'--color-one-darker': this.curaApiService.theme.colors.getColor('primary-darker'),
|
|
113
|
-
'--font-family': this.curaApiService.theme.fonts.getFamily(''),
|
|
114
|
-
};
|
|
115
|
-
this.youtubeService.setScript();
|
|
116
|
-
}
|
|
117
|
-
ngOnInit() {
|
|
118
|
-
this.platformBrowser.set(isPlatformBrowser(this.platformId));
|
|
119
|
-
if (this.type() === 'video' && this.videoUrl()) {
|
|
120
|
-
this.getVideoId();
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
getVideoId() {
|
|
124
|
-
const params = new URLSearchParams(this.videoUrl().split('?')[1]);
|
|
125
|
-
return params.get('v') || '';
|
|
126
|
-
}
|
|
127
|
-
stopVideo() {
|
|
128
|
-
const youtubePlayer = this.youtubePlayer();
|
|
129
|
-
if (this.getVideoId() && youtubePlayer) {
|
|
130
|
-
youtubePlayer.stopVideo();
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
ngOnDestroy() {
|
|
134
|
-
this.youtubeService.removeScript();
|
|
135
|
-
}
|
|
136
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: TestimonialCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
137
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.2", type: TestimonialCardComponent, isStandalone: true, selector: "rdsite-testimonial-card", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, videoUrl: { classPropertyName: "videoUrl", publicName: "videoUrl", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, author: { classPropertyName: "author", publicName: "author", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style": "this.styleBinding" } }, viewQueries: [{ propertyName: "youtubePlayer", first: true, predicate: ["youtubePlayer"], descendants: true, isSignal: true }], ngImport: i0, template: "@if ((image() || getVideoId()) && text()) {\n @switch (type()) {\n @case ('image') {\n @if (image()) {\n <rdsite-image\n [imageWebpSrc]=\"image()?.webp_sizes?.['rdsl-card-unidades']\"\n [imageDefaultSrc]=\"image()?.sizes?.['rdsl-card-unidades']\"\n [mimeType]=\"image()?.mime_type\"\n [alt]=\"image()?.alt\"\n >\n </rdsite-image>\n }\n }\n @case ('video') {\n @if (getVideoId() && platformBrowser()) {\n <youtube-player #youtubePlayer [videoId]=\"getVideoId()\" [disablePlaceholder]=\"true\"></youtube-player>\n }\n }\n }\n\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"26\" viewBox=\"0 0 32 26\" fill=\"none\">\n <path\n d=\"M14.375 3.3125C12.9062 4.15625 11.7188 4.89062 10.8125 5.51562C9.90625 6.10938 8.98438 6.90625 8.04688 7.90625C7.17188 8.84375 6.5 9.82812 6.03125 10.8594C5.5625 11.8906 5.23438 13.2188 5.04688 14.8438H7.29688C9.23438 14.8438 10.75 15.3281 11.8438 16.2969C12.9688 17.2344 13.5312 18.625 13.5312 20.4688C13.5312 21.7812 13.0312 23.0156 12.0312 24.1719C11.0625 25.2969 9.71875 25.8594 8 25.8594C5.3125 25.8594 3.39062 24.9844 2.23438 23.2344C1.07812 21.4531 0.5 19.125 0.5 16.25C0.5 14.2188 0.9375 12.375 1.8125 10.7188C2.6875 9.03125 3.75 7.53125 5 6.21875C6.28125 4.875 7.64062 3.73438 9.07812 2.79688C10.5156 1.85938 11.7188 1.09375 12.6875 0.5L14.375 3.3125ZM31.7188 3.3125C30.25 4.15625 29.0625 4.89062 28.1562 5.51562C27.25 6.10938 26.3281 6.90625 25.3906 7.90625C24.4844 8.875 23.7969 9.875 23.3281 10.9062C22.8906 11.9062 22.5781 13.2188 22.3906 14.8438H24.6406C26.5781 14.8438 28.0938 15.3281 29.1875 16.2969C30.3125 17.2344 30.875 18.625 30.875 20.4688C30.875 21.7812 30.375 23.0156 29.375 24.1719C28.4062 25.2969 27.0625 25.8594 25.3438 25.8594C22.6562 25.8594 20.7344 24.9844 19.5781 23.2344C18.4219 21.4531 17.8438 19.125 17.8438 16.25C17.8438 14.2188 18.2812 12.375 19.1562 10.7188C20.0312 9.03125 21.0938 7.53125 22.3438 6.21875C23.625 4.875 24.9844 3.73438 26.4219 2.79688C27.8594 1.85938 29.0625 1.09375 30.0312 0.5L31.7188 3.3125Z\"\n fill=\"#202122\"\n />\n </svg>\n\n <div class=\"testimonials-text\">\n <q class=\"quote\" [innerHTML]=\"text()\" (click)=\"stopVideo()\"></q>\n\n @if (author()) {\n <span class=\"author\">{{ author() }}</span>\n }\n\n @if (position()) {\n <span class=\"position\">\n {{ position() }}\n </span>\n }\n </div>\n}\n", styles: [":host{display:flex;flex-direction:column;gap:15px;width:100%;height:auto;padding:28px;border-radius:3px;background-color:#f7f5f0}@media screen and (min-width: 1024px){:host{flex-direction:row;justify-content:center;gap:12px;background:linear-gradient(to right,#fff 102px,#f7f5f0 0)}}:host rdsite-image,:host youtube-player{border-radius:3px 50px 3px 3px}@media screen and (min-width: 1024px){:host rdsite-image,:host youtube-player{flex:1 1 50%}}:host rdsite-image{aspect-ratio:1.35}@media screen and (min-width: 769px){:host rdsite-image{aspect-ratio:1.78}}:host youtube-player{overflow:hidden;aspect-ratio:1.35}@media screen and (min-width: 769px){:host youtube-player{aspect-ratio:unset}}:host youtube-player ::ng-deep>div{width:100%;height:100%}:host youtube-player ::ng-deep iframe{width:100%;height:100%}:host svg{margin-top:24px}:host .testimonials-text{flex:1 1 50%;display:flex;flex-direction:column}:host .testimonials-text *{font-family:var(--font-family)}:host .testimonials-text .quote{color:var(--color-one-darker);font-size:17px;font-weight:400;line-height:150%;margin-bottom:15px}@media screen and (min-width: 1024px){:host .testimonials-text .quote{font-size:19px;margin-bottom:44px;margin-top:44px}}:host .testimonials-text .author,:host .testimonials-text .position{color:var(--neutral-black);font-size:12px;font-weight:500;line-height:135%;letter-spacing:.48px}@media screen and (min-width: 1024px){:host .testimonials-text .author,:host .testimonials-text .position{font-size:14px;letter-spacing:.56px}}\n"], dependencies: [{ kind: "component", type: ImageComponent, selector: "rdsite-image", inputs: ["imageWebpSrc", "imageDefaultSrc", "imageSizes", "mimeType", "alt", "title", "loading"], outputs: ["imageDefaultSrcChange", "mimeTypeChange"] }, { kind: "ngmodule", type: YouTubePlayerModule }, { kind: "component", type: i1$1.YouTubePlayer, selector: "youtube-player", inputs: ["videoId", "height", "width", "startSeconds", "endSeconds", "suggestedQuality", "playerVars", "disableCookies", "loadApi", "disablePlaceholder", "showBeforeIframeApiLoads", "placeholderButtonLabel", "placeholderImageQuality"], outputs: ["ready", "stateChange", "error", "apiChange", "playbackQualityChange", "playbackRateChange"] }] }); }
|
|
138
|
-
}
|
|
139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: TestimonialCardComponent, decorators: [{
|
|
140
|
-
type: Component,
|
|
141
|
-
args: [{ selector: 'rdsite-testimonial-card', imports: [ImageComponent, YouTubePlayerModule], template: "@if ((image() || getVideoId()) && text()) {\n @switch (type()) {\n @case ('image') {\n @if (image()) {\n <rdsite-image\n [imageWebpSrc]=\"image()?.webp_sizes?.['rdsl-card-unidades']\"\n [imageDefaultSrc]=\"image()?.sizes?.['rdsl-card-unidades']\"\n [mimeType]=\"image()?.mime_type\"\n [alt]=\"image()?.alt\"\n >\n </rdsite-image>\n }\n }\n @case ('video') {\n @if (getVideoId() && platformBrowser()) {\n <youtube-player #youtubePlayer [videoId]=\"getVideoId()\" [disablePlaceholder]=\"true\"></youtube-player>\n }\n }\n }\n\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"26\" viewBox=\"0 0 32 26\" fill=\"none\">\n <path\n d=\"M14.375 3.3125C12.9062 4.15625 11.7188 4.89062 10.8125 5.51562C9.90625 6.10938 8.98438 6.90625 8.04688 7.90625C7.17188 8.84375 6.5 9.82812 6.03125 10.8594C5.5625 11.8906 5.23438 13.2188 5.04688 14.8438H7.29688C9.23438 14.8438 10.75 15.3281 11.8438 16.2969C12.9688 17.2344 13.5312 18.625 13.5312 20.4688C13.5312 21.7812 13.0312 23.0156 12.0312 24.1719C11.0625 25.2969 9.71875 25.8594 8 25.8594C5.3125 25.8594 3.39062 24.9844 2.23438 23.2344C1.07812 21.4531 0.5 19.125 0.5 16.25C0.5 14.2188 0.9375 12.375 1.8125 10.7188C2.6875 9.03125 3.75 7.53125 5 6.21875C6.28125 4.875 7.64062 3.73438 9.07812 2.79688C10.5156 1.85938 11.7188 1.09375 12.6875 0.5L14.375 3.3125ZM31.7188 3.3125C30.25 4.15625 29.0625 4.89062 28.1562 5.51562C27.25 6.10938 26.3281 6.90625 25.3906 7.90625C24.4844 8.875 23.7969 9.875 23.3281 10.9062C22.8906 11.9062 22.5781 13.2188 22.3906 14.8438H24.6406C26.5781 14.8438 28.0938 15.3281 29.1875 16.2969C30.3125 17.2344 30.875 18.625 30.875 20.4688C30.875 21.7812 30.375 23.0156 29.375 24.1719C28.4062 25.2969 27.0625 25.8594 25.3438 25.8594C22.6562 25.8594 20.7344 24.9844 19.5781 23.2344C18.4219 21.4531 17.8438 19.125 17.8438 16.25C17.8438 14.2188 18.2812 12.375 19.1562 10.7188C20.0312 9.03125 21.0938 7.53125 22.3438 6.21875C23.625 4.875 24.9844 3.73438 26.4219 2.79688C27.8594 1.85938 29.0625 1.09375 30.0312 0.5L31.7188 3.3125Z\"\n fill=\"#202122\"\n />\n </svg>\n\n <div class=\"testimonials-text\">\n <q class=\"quote\" [innerHTML]=\"text()\" (click)=\"stopVideo()\"></q>\n\n @if (author()) {\n <span class=\"author\">{{ author() }}</span>\n }\n\n @if (position()) {\n <span class=\"position\">\n {{ position() }}\n </span>\n }\n </div>\n}\n", styles: [":host{display:flex;flex-direction:column;gap:15px;width:100%;height:auto;padding:28px;border-radius:3px;background-color:#f7f5f0}@media screen and (min-width: 1024px){:host{flex-direction:row;justify-content:center;gap:12px;background:linear-gradient(to right,#fff 102px,#f7f5f0 0)}}:host rdsite-image,:host youtube-player{border-radius:3px 50px 3px 3px}@media screen and (min-width: 1024px){:host rdsite-image,:host youtube-player{flex:1 1 50%}}:host rdsite-image{aspect-ratio:1.35}@media screen and (min-width: 769px){:host rdsite-image{aspect-ratio:1.78}}:host youtube-player{overflow:hidden;aspect-ratio:1.35}@media screen and (min-width: 769px){:host youtube-player{aspect-ratio:unset}}:host youtube-player ::ng-deep>div{width:100%;height:100%}:host youtube-player ::ng-deep iframe{width:100%;height:100%}:host svg{margin-top:24px}:host .testimonials-text{flex:1 1 50%;display:flex;flex-direction:column}:host .testimonials-text *{font-family:var(--font-family)}:host .testimonials-text .quote{color:var(--color-one-darker);font-size:17px;font-weight:400;line-height:150%;margin-bottom:15px}@media screen and (min-width: 1024px){:host .testimonials-text .quote{font-size:19px;margin-bottom:44px;margin-top:44px}}:host .testimonials-text .author,:host .testimonials-text .position{color:var(--neutral-black);font-size:12px;font-weight:500;line-height:135%;letter-spacing:.48px}@media screen and (min-width: 1024px){:host .testimonials-text .author,:host .testimonials-text .position{font-size:14px;letter-spacing:.56px}}\n"] }]
|
|
142
|
-
}], ctorParameters: () => [], propDecorators: { styleBinding: [{
|
|
143
|
-
type: HostBinding,
|
|
144
|
-
args: ['style']
|
|
145
|
-
}] } });
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Generated bundle index. Do not edit.
|
|
149
|
-
*/
|
|
150
|
-
|
|
151
|
-
export { CardUnidadePlanosConveniosComponent, ExpandableCardComponent, TestimonialCardComponent };
|
|
152
|
-
//# sourceMappingURL=rededor-site-front-end-lib-components-cards.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-components-cards.mjs","sources":["../../../projects/site-front-end-lib/components/cards/card-unidade-planos-convenios/card-unidade-planos-convenios.component.ts","../../../projects/site-front-end-lib/components/cards/card-unidade-planos-convenios/card-unidade-planos-convenios.component.html","../../../projects/site-front-end-lib/components/cards/expandable-card/expandable-card.component.ts","../../../projects/site-front-end-lib/components/cards/expandable-card/expandable-card.component.html","../../../projects/site-front-end-lib/components/cards/testimonial-card/testimonial-card.component.ts","../../../projects/site-front-end-lib/components/cards/testimonial-card/testimonial-card.component.html","../../../projects/site-front-end-lib/components/cards/rededor-site-front-end-lib-components-cards.ts"],"sourcesContent":["import { Component, HostBinding, input, inject } from '@angular/core';\nimport { RdsiteImage, RdsiteLinkDirective } from '@rededor/site-front-end-lib/core';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { ImageMimeType, UnidadeCoverageType } from '@rededor/site-front-end-lib/enums';\nimport { ImageComponent } from '@rededor/site-front-end-lib/components/image';\nimport { CuraHeadingComponent } from '@rededor/site-front-end-lib/cura/texts/cura-heading';\nimport { CuraParagraphComponent } from '@rededor/site-front-end-lib/cura/texts/cura-paragraph';\nimport { CuraBadgePillComponent } from '@rededor/site-front-end-lib/cura/badges/cura-badge-pill';\nimport { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';\nimport { CuraButtonComponent } from '@rededor/site-front-end-lib/cura/buttons/cura-button';\n\n@Component({\n selector: 'rdsite-card-unidade-planos-convenios',\n imports: [ImageComponent, RdsiteLinkDirective, CuraHeadingComponent, CuraParagraphComponent, CuraBadgePillComponent, CuraIconComponent, CuraButtonComponent],\n templateUrl: './card-unidade-planos-convenios.component.html',\n styleUrl: './card-unidade-planos-convenios.component.scss',\n})\nexport class CardUnidadePlanosConveniosComponent {\n private readonly curaApiService = inject(CuraApiService);\n\n readonly title = input<string>('');\n readonly subtitle = input<string | undefined>('');\n readonly coverage = input<{\n title: UnidadeCoverageType;\n list?: {\n title: string;\n isCovered: boolean;\n }[];\n }>();\n readonly address = input<string | undefined>('');\n readonly cta1 = input<{\n label: string;\n link: string;\n }>();\n readonly cta2 = input<{\n label: string;\n link: string;\n }>();\n\n readonly logoWebpSrc = input<string>('');\n readonly logoDefaultSrc = input<string>('');\n readonly logoSizes = input<RdsiteImage[]>([]);\n readonly logoMimeType = input<ImageMimeType>(ImageMimeType.JPEG);\n readonly logoAlt = input<string>('');\n readonly logoTitle = input<string>('');\n\n @HostBinding('style') styleBinding = {\n '--neutral-light': this.curaApiService.theme.colors.getColor('neutral-light'),\n '--neutral-white': this.curaApiService.theme.colors.getColor('neutral-white'),\n '--neutral-purewhite': this.curaApiService.theme.colors.getColor('neutral-purewhite'),\n '--color-base': this.curaApiService.theme.colors.getColor('primary-base'),\n };\n}\n","<div class=\"rdsite-card-unidade-planos-convenios\">\n <rdsite-image\n class=\"rdsite-card-unidade-planos-convenios-logo\"\n [imageWebpSrc]=\"logoWebpSrc()\"\n [imageDefaultSrc]=\"logoDefaultSrc()\"\n [imageSizes]=\"logoSizes()\"\n [mimeType]=\"logoMimeType()\"\n [alt]=\"logoAlt()\"\n [title]=\"logoTitle()\"\n loading=\"lazy\"\n ></rdsite-image>\n\n <div class=\"rdsite-card-unidade-planos-convenios-heading\">\n @if (title()) {\n <cura-heading size=\"small\" [level]=\"2\" color=\"neutral-black\" weight=\"bold\" marginBlock=\"0\" lineHeight=\"150%\">\n {{ title() }}\n </cura-heading>\n }\n\n @if (subtitle()) {\n <cura-paragraph size=\"xsmall\" color=\"neutral-dark\" weight=\"bold\" marginBlock=\"0\" lineHeight=\"130%\">\n <span class=\"cura-paragraph-weight\">\n {{ subtitle() }}\n </span>\n </cura-paragraph>\n }\n </div>\n\n <div class=\"rdsite-card-unidade-planos-convenios-content\">\n @if (coverage()) {\n <cura-paragraph size=\"xsmall\" color=\"neutral-black\" marginBlock=\"0\" lineHeight=\"130%\">\n <span class=\"cura-paragraph-weight\">\n {{ coverage()?.title }}\n </span>\n </cura-paragraph>\n\n @if (coverage()?.list?.length) {\n <div class=\"coverage-list\">\n @for (item of coverage()?.list; track item.title) {\n <cura-badge-pill type=\"solid\" color=\"success\" [disabled]=\"!item.isCovered\" [iconName]=\"item.isCovered ? 'check' : 'close'\">\n {{ item.title }}\n </cura-badge-pill>\n }\n </div>\n }\n }\n\n @if (address()) {\n <div class=\"address\">\n <cura-icon name=\"geotag\" color=\"neutral-dark\" size=\"20\"></cura-icon>\n\n <cura-paragraph size=\"xsmall\" color=\"neutral-black\" marginBlock=\"0\" lineHeight=\"130%\">\n <span class=\"cura-paragraph-weight\"> {{ address() }} • </span>\n <a rdsitelink href=\"https://www.google.com/maps?q={{ address() }}\">Mapa</a>\n </cura-paragraph>\n </div>\n }\n </div>\n\n <div class=\"rdsite-card-unidade-planos-convenios-ctas\">\n @if (cta2() && cta2()?.label && cta2()?.link) {\n <cura-button type=\"button\" size=\"medium\" iconName=\"calendar\" color=\"accent\" rdsitelink [href]=\"cta2()!.link\">\n {{ cta2()?.label }}\n </cura-button>\n }\n\n @if (cta1() && cta1()?.label && cta1()?.link) {\n <cura-button type=\"button\" size=\"medium\" iconName=\"exam\" color=\"accent\" rdsitelink [href]=\"cta1()!.link\">\n {{ cta1()?.label }}\n </cura-button>\n }\n </div>\n</div>\n","import { Component, HostBinding, OnChanges, input, model, output, inject } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RdsiteLinkDirective } from '@rededor/site-front-end-lib/core';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';\nimport { CuraBadgePillComponent } from '@rededor/site-front-end-lib/cura/badges/cura-badge-pill';\n\n@Component({\n selector: 'rdsite-expandable-card',\n imports: [CommonModule, RdsiteLinkDirective, CuraIconComponent, CuraBadgePillComponent],\n templateUrl: './expandable-card.component.html',\n styleUrls: ['./expandable-card.component.scss'],\n})\nexport class ExpandableCardComponent implements OnChanges {\n private readonly curaApiService = inject(CuraApiService);\n\n opened = model(false);\n readonly label = input<string>('');\n readonly link = input<string>('');\n readonly badgeLabel = input<string>('');\n readonly openIcon = input<string>('plus');\n readonly closeIcon = input<string>('minus');\n readonly disabled = input(false);\n\n readonly toggle = output<boolean>();\n\n @HostBinding('style') styleBinding = {\n '--neutral-light': this.curaApiService.theme.colors.getColor('neutral-light'),\n '--neutral-base': this.curaApiService.theme.colors.getColor('neutral-base'),\n '--neutral-purewhite': this.curaApiService.theme.colors.getColor('neutral-purewhite'),\n '--neutral-black': this.curaApiService.theme.colors.getColor('neutral-black'),\n '--color-one-dark': this.curaApiService.theme.colors.getColor('primary-dark'),\n '--font-family': this.curaApiService.theme.fonts.getFamily(''),\n };\n\n @HostBinding('class') classes: string[] = [];\n\n ngOnChanges(): void {\n this.checkDisabledCard();\n }\n\n toggleCard() {\n this.opened.set(!this.opened());\n this.toggle.emit(this.opened());\n }\n\n checkDisabledCard() {\n this.classes = this.disabled() ? ['disabled'] : [];\n }\n}\n","@if (label()) {\n <div class=\"card-header\" [ngClass]=\"{ noBadge: !badgeLabel() }\" (click)=\"toggleCard()\">\n @if (link() && label()) {\n <a rdsitelink class=\"card-link\" [href]=\"link()\">\n {{ label() }}\n <cura-icon name=\"arrowRight\" color=\"primary-dark\" size=\"16\"></cura-icon>\n </a>\n }\n\n @if (badgeLabel()) {\n <cura-badge-pill type=\"solid\" color=\"primary\">\n {{ badgeLabel() }}\n </cura-badge-pill>\n }\n\n <cura-icon [name]=\"opened() ? closeIcon() : openIcon()\" color=\"primary-dark\" size=\"20\"></cura-icon>\n </div>\n\n <div class=\"card-content\" [ngClass]=\"{ opened: opened() }\">\n <ng-content></ng-content>\n </div>\n}\n","import { Component, HostBinding, input, OnDestroy, OnInit, PLATFORM_ID, signal, viewChild, inject } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { YouTubePlayer, YouTubePlayerModule } from '@angular/youtube-player';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { YoutubeService } from '@rededor/site-front-end-lib/services/youtube';\nimport { ImageComponent } from '@rededor/site-front-end-lib/components/image';\n\n@Component({\n selector: 'rdsite-testimonial-card',\n imports: [ImageComponent, YouTubePlayerModule],\n templateUrl: './testimonial-card.component.html',\n styleUrls: ['./testimonial-card.component.scss'],\n})\nexport class TestimonialCardComponent implements OnInit, OnDestroy {\n private readonly curaApiService = inject(CuraApiService);\n private readonly youtubeService = inject(YoutubeService);\n private readonly platformId = inject(PLATFORM_ID);\n\n type = input('image');\n image = input<any | null>(null);\n videoUrl = input('');\n text = input('');\n author = input('');\n position = input('');\n\n videoId = signal<string | null>('');\n\n platformBrowser = signal<any | null>(null);\n\n readonly youtubePlayer = viewChild.required<YouTubePlayer>('youtubePlayer');\n\n @HostBinding('style') styleBinding = {\n '--neutral-black': this.curaApiService.theme.colors.getColor('neutral-black'),\n '--color-one-darker': this.curaApiService.theme.colors.getColor('primary-darker'),\n '--font-family': this.curaApiService.theme.fonts.getFamily(''),\n };\n\n constructor() {\n this.youtubeService.setScript();\n }\n\n ngOnInit(): void {\n this.platformBrowser.set(isPlatformBrowser(this.platformId));\n\n if (this.type() === 'video' && this.videoUrl()) {\n this.getVideoId();\n }\n }\n\n getVideoId(): string {\n const params = new URLSearchParams(this.videoUrl().split('?')[1]);\n return params.get('v') || '';\n }\n\n stopVideo(): void {\n const youtubePlayer = this.youtubePlayer();\n if (this.getVideoId() && youtubePlayer) {\n youtubePlayer.stopVideo();\n }\n }\n\n ngOnDestroy(): void {\n this.youtubeService.removeScript();\n }\n}\n","@if ((image() || getVideoId()) && text()) {\n @switch (type()) {\n @case ('image') {\n @if (image()) {\n <rdsite-image\n [imageWebpSrc]=\"image()?.webp_sizes?.['rdsl-card-unidades']\"\n [imageDefaultSrc]=\"image()?.sizes?.['rdsl-card-unidades']\"\n [mimeType]=\"image()?.mime_type\"\n [alt]=\"image()?.alt\"\n >\n </rdsite-image>\n }\n }\n @case ('video') {\n @if (getVideoId() && platformBrowser()) {\n <youtube-player #youtubePlayer [videoId]=\"getVideoId()\" [disablePlaceholder]=\"true\"></youtube-player>\n }\n }\n }\n\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"26\" viewBox=\"0 0 32 26\" fill=\"none\">\n <path\n d=\"M14.375 3.3125C12.9062 4.15625 11.7188 4.89062 10.8125 5.51562C9.90625 6.10938 8.98438 6.90625 8.04688 7.90625C7.17188 8.84375 6.5 9.82812 6.03125 10.8594C5.5625 11.8906 5.23438 13.2188 5.04688 14.8438H7.29688C9.23438 14.8438 10.75 15.3281 11.8438 16.2969C12.9688 17.2344 13.5312 18.625 13.5312 20.4688C13.5312 21.7812 13.0312 23.0156 12.0312 24.1719C11.0625 25.2969 9.71875 25.8594 8 25.8594C5.3125 25.8594 3.39062 24.9844 2.23438 23.2344C1.07812 21.4531 0.5 19.125 0.5 16.25C0.5 14.2188 0.9375 12.375 1.8125 10.7188C2.6875 9.03125 3.75 7.53125 5 6.21875C6.28125 4.875 7.64062 3.73438 9.07812 2.79688C10.5156 1.85938 11.7188 1.09375 12.6875 0.5L14.375 3.3125ZM31.7188 3.3125C30.25 4.15625 29.0625 4.89062 28.1562 5.51562C27.25 6.10938 26.3281 6.90625 25.3906 7.90625C24.4844 8.875 23.7969 9.875 23.3281 10.9062C22.8906 11.9062 22.5781 13.2188 22.3906 14.8438H24.6406C26.5781 14.8438 28.0938 15.3281 29.1875 16.2969C30.3125 17.2344 30.875 18.625 30.875 20.4688C30.875 21.7812 30.375 23.0156 29.375 24.1719C28.4062 25.2969 27.0625 25.8594 25.3438 25.8594C22.6562 25.8594 20.7344 24.9844 19.5781 23.2344C18.4219 21.4531 17.8438 19.125 17.8438 16.25C17.8438 14.2188 18.2812 12.375 19.1562 10.7188C20.0312 9.03125 21.0938 7.53125 22.3438 6.21875C23.625 4.875 24.9844 3.73438 26.4219 2.79688C27.8594 1.85938 29.0625 1.09375 30.0312 0.5L31.7188 3.3125Z\"\n fill=\"#202122\"\n />\n </svg>\n\n <div class=\"testimonials-text\">\n <q class=\"quote\" [innerHTML]=\"text()\" (click)=\"stopVideo()\"></q>\n\n @if (author()) {\n <span class=\"author\">{{ author() }}</span>\n }\n\n @if (position()) {\n <span class=\"position\">\n {{ position() }}\n </span>\n }\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;MAiBa,mCAAmC,CAAA;AANhD,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AAE/C,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,EAAE,iDAAC;AACzB,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAqB,EAAE,oDAAC;QACxC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,GAAA,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,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECbrC,i6EAyCA,EAAA,MAAA,EAAA,CAAA,w/CAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDhCY,cAAc,gNAAE,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,IAAA,CAAA,aAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,QAAA,EAAA,OAAA,EAAA,cAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,YAAA,EAAA,gBAAA,EAAA,SAAA,EAAA,oBAAA,EAAA,0BAAA,EAAA,wBAAA,EAAA,yBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,OAAA,EAAA,aAAA,EAAA,OAAA,EAAA,WAAA,EAAA,uBAAA,EAAA,oBAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIlC,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,yBAAyB,EAAA,OAAA,EAC1B,CAAC,cAAc,EAAE,mBAAmB,CAAC,EAAA,QAAA,EAAA,i6EAAA,EAAA,MAAA,EAAA,CAAA,w/CAAA,CAAA,EAAA;wDAsBxB,YAAY,EAAA,CAAA;sBAAjC,WAAW;uBAAC,OAAO;;;AE/BtB;;AAEG;;;;"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, input, viewChild, viewChildren, HostBinding, Component } from '@angular/core';
|
|
3
|
-
import { NguCarousel, NguItemComponent, NguCarouselDefDirective } from '@ngu/carousel';
|
|
4
|
-
import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
|
|
5
|
-
import { NguCarouselService } from '@rededor/site-front-end-lib/services/ngu-carousel';
|
|
6
|
-
import { TestimonialCardComponent } from '@rededor/site-front-end-lib/components/cards';
|
|
7
|
-
import { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';
|
|
8
|
-
|
|
9
|
-
class TestimonialsCarouselComponent {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.curaApiService = inject(CuraApiService);
|
|
12
|
-
this.nguService = inject(NguCarouselService);
|
|
13
|
-
this.title = input('', ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
14
|
-
this.items = input([], ...(ngDevMode ? [{ debugName: "items" }] : []));
|
|
15
|
-
this.carouselTestimonialsConfig = this.nguService.customCarouselConfig({
|
|
16
|
-
grid: { xs: 1, sm: 1, md: 1, lg: 1.1, all: 0 },
|
|
17
|
-
gridBreakpoints: { sm: 360, md: 768, lg: 1024, xl: 1920 },
|
|
18
|
-
loop: true,
|
|
19
|
-
interval: {
|
|
20
|
-
timing: 600000,
|
|
21
|
-
initialDelay: 600000,
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
this.carouselTestimonials = viewChild.required('carouselTestimonialsEl');
|
|
25
|
-
this.testimonialCards = viewChildren('testimonialCard', ...(ngDevMode ? [{ debugName: "testimonialCards" }] : []));
|
|
26
|
-
this.styleBinding = {
|
|
27
|
-
'--neutral-purewhite': this.curaApiService.theme.colors.getColor('neutral-purewhite'),
|
|
28
|
-
'--neutral-black': this.curaApiService.theme.colors.getColor('neutral-black'),
|
|
29
|
-
'--font-family': this.curaApiService.theme.fonts.getFamily(''),
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
ngOnInit() {
|
|
33
|
-
this.carouselTestimonialsConfig.set(this.nguService.customCarouselConfig({
|
|
34
|
-
grid: { xs: 1, sm: 1, md: 1, lg: 1.1, all: 0 },
|
|
35
|
-
gridBreakpoints: { sm: 360, md: 768, lg: 1024, xl: 1920 },
|
|
36
|
-
loop: true,
|
|
37
|
-
interval: {
|
|
38
|
-
timing: 600000,
|
|
39
|
-
initialDelay: 600000,
|
|
40
|
-
},
|
|
41
|
-
}));
|
|
42
|
-
}
|
|
43
|
-
nextSlide() {
|
|
44
|
-
this.nguService.scrollRight(this.carouselTestimonials());
|
|
45
|
-
}
|
|
46
|
-
prevSlide() {
|
|
47
|
-
this.nguService.scrollLeft(this.carouselTestimonials());
|
|
48
|
-
}
|
|
49
|
-
moveTo(pointerNumber) {
|
|
50
|
-
this.nguService.moveTo(this.carouselTestimonials(), pointerNumber);
|
|
51
|
-
}
|
|
52
|
-
stopVideos() {
|
|
53
|
-
this.testimonialCards().forEach((card) => {
|
|
54
|
-
if (card.type() === 'video') {
|
|
55
|
-
card.stopVideo();
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: TestimonialsCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
60
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.2", type: TestimonialsCarouselComponent, isStandalone: true, selector: "rdsite-testimonials-carousel", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style": "this.styleBinding" } }, viewQueries: [{ propertyName: "carouselTestimonials", first: true, predicate: ["carouselTestimonialsEl"], descendants: true, isSignal: true }, { propertyName: "testimonialCards", predicate: ["testimonialCard"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (title()) {\r\n <h3 class=\"testimonials-carousel-title\">{{ title() }}</h3>\r\n}\r\n\r\n<ngu-carousel #carouselTestimonialsEl [inputs]=\"carouselTestimonialsConfig()!\" [dataSource]=\"items()\" (onMove)=\"stopVideos()\">\r\n <ngu-item *nguCarouselDef=\"let item\">\r\n <rdsite-testimonial-card\r\n #testimonialCard\r\n [type]=\"item.type\"\r\n [image]=\"item.image\"\r\n [videoUrl]=\"item.video_url\"\r\n [text]=\"item.text\"\r\n [author]=\"item.author\"\r\n [position]=\"item.role\"\r\n >\r\n </rdsite-testimonial-card>\r\n </ngu-item>\r\n</ngu-carousel>\r\n\r\n<div class=\"testimonials-carousel-controls\">\r\n <cura-icon name=\"arrowLeftCircle\" size=\"40\" color=\"primary-base\" (click)=\"prevSlide()\"></cura-icon>\r\n\r\n <cura-icon name=\"arrowRightCircle\" size=\"40\" color=\"primary-base\" (click)=\"nextSlide()\"></cura-icon>\r\n\r\n <ul>\r\n @for (item of carouselTestimonials().pointNumbers(); track i; let i = $index) {\r\n <li [class.active]=\"i === carouselTestimonials().activePoint()\" (click)=\"moveTo(i)\"></li>\r\n }\r\n </ul>\r\n</div>\r\n", styles: [":host{display:block}@media screen and (min-width: 1024px){:host{background-color:var(--neutral-purewhite)}}:host .testimonials-carousel-title{color:var(--neutral-black);font-family:var(--font-family);font-size:24px;font-weight:500;line-height:130%;margin-bottom:16px}@media screen and (min-width: 1024px){:host .testimonials-carousel-title{font-size:28px;margin-bottom:48px}}:host ngu-carousel{background-color:#f7f5f0}@media screen and (min-width: 1024px){:host ngu-item{background:linear-gradient(to right,var(--neutral-purewhite) 102px,#f7f5f0 0)}}:host ngu-item rdsite-testimonial-card{height:100%}:host .testimonials-carousel-controls{display:flex;justify-content:space-between;align-items:center;padding:20px 0 48px 28px;background-color:#f7f5f0}@media screen and (min-width: 1024px){:host .testimonials-carousel-controls{padding:48px 0 0;background-color:transparent}}:host .testimonials-carousel-controls cura-icon{display:none}@media screen and (min-width: 1024px){:host .testimonials-carousel-controls cura-icon{display:block;cursor:pointer}:host .testimonials-carousel-controls cura-icon:nth-of-type(1){margin-left:48px}:host .testimonials-carousel-controls cura-icon:nth-of-type(2){margin-right:48px}}:host .testimonials-carousel-controls ul{display:flex;justify-content:center;align-items:center;gap:8px}@media screen and (min-width: 1024px){:host .testimonials-carousel-controls ul{display:none}}:host .testimonials-carousel-controls ul li{background-color:transparent;width:11px;height:11px;border:2px solid var(--neutral-black);border-radius:50%;list-style-type:none}:host .testimonials-carousel-controls ul li.active{background-color:var(--neutral-black)}\n"], dependencies: [{ kind: "component", type: NguCarousel, selector: "ngu-carousel", inputs: ["inputs", "dataSource", "trackBy"], outputs: ["carouselLoad", "onMove"] }, { kind: "component", type: NguItemComponent, selector: "ngu-item" }, { kind: "directive", type: NguCarouselDefDirective, selector: "[nguCarouselDef]" }, { kind: "component", type: TestimonialCardComponent, selector: "rdsite-testimonial-card", inputs: ["type", "image", "videoUrl", "text", "author", "position"] }, { kind: "component", type: CuraIconComponent, selector: "cura-icon", inputs: ["name", "color", "size", "iconset", "disabled"] }] }); }
|
|
61
|
-
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: TestimonialsCarouselComponent, decorators: [{
|
|
63
|
-
type: Component,
|
|
64
|
-
args: [{ selector: 'rdsite-testimonials-carousel', imports: [NguCarousel, NguItemComponent, NguCarouselDefDirective, TestimonialCardComponent, CuraIconComponent], template: "@if (title()) {\r\n <h3 class=\"testimonials-carousel-title\">{{ title() }}</h3>\r\n}\r\n\r\n<ngu-carousel #carouselTestimonialsEl [inputs]=\"carouselTestimonialsConfig()!\" [dataSource]=\"items()\" (onMove)=\"stopVideos()\">\r\n <ngu-item *nguCarouselDef=\"let item\">\r\n <rdsite-testimonial-card\r\n #testimonialCard\r\n [type]=\"item.type\"\r\n [image]=\"item.image\"\r\n [videoUrl]=\"item.video_url\"\r\n [text]=\"item.text\"\r\n [author]=\"item.author\"\r\n [position]=\"item.role\"\r\n >\r\n </rdsite-testimonial-card>\r\n </ngu-item>\r\n</ngu-carousel>\r\n\r\n<div class=\"testimonials-carousel-controls\">\r\n <cura-icon name=\"arrowLeftCircle\" size=\"40\" color=\"primary-base\" (click)=\"prevSlide()\"></cura-icon>\r\n\r\n <cura-icon name=\"arrowRightCircle\" size=\"40\" color=\"primary-base\" (click)=\"nextSlide()\"></cura-icon>\r\n\r\n <ul>\r\n @for (item of carouselTestimonials().pointNumbers(); track i; let i = $index) {\r\n <li [class.active]=\"i === carouselTestimonials().activePoint()\" (click)=\"moveTo(i)\"></li>\r\n }\r\n </ul>\r\n</div>\r\n", styles: [":host{display:block}@media screen and (min-width: 1024px){:host{background-color:var(--neutral-purewhite)}}:host .testimonials-carousel-title{color:var(--neutral-black);font-family:var(--font-family);font-size:24px;font-weight:500;line-height:130%;margin-bottom:16px}@media screen and (min-width: 1024px){:host .testimonials-carousel-title{font-size:28px;margin-bottom:48px}}:host ngu-carousel{background-color:#f7f5f0}@media screen and (min-width: 1024px){:host ngu-item{background:linear-gradient(to right,var(--neutral-purewhite) 102px,#f7f5f0 0)}}:host ngu-item rdsite-testimonial-card{height:100%}:host .testimonials-carousel-controls{display:flex;justify-content:space-between;align-items:center;padding:20px 0 48px 28px;background-color:#f7f5f0}@media screen and (min-width: 1024px){:host .testimonials-carousel-controls{padding:48px 0 0;background-color:transparent}}:host .testimonials-carousel-controls cura-icon{display:none}@media screen and (min-width: 1024px){:host .testimonials-carousel-controls cura-icon{display:block;cursor:pointer}:host .testimonials-carousel-controls cura-icon:nth-of-type(1){margin-left:48px}:host .testimonials-carousel-controls cura-icon:nth-of-type(2){margin-right:48px}}:host .testimonials-carousel-controls ul{display:flex;justify-content:center;align-items:center;gap:8px}@media screen and (min-width: 1024px){:host .testimonials-carousel-controls ul{display:none}}:host .testimonials-carousel-controls ul li{background-color:transparent;width:11px;height:11px;border:2px solid var(--neutral-black);border-radius:50%;list-style-type:none}:host .testimonials-carousel-controls ul li.active{background-color:var(--neutral-black)}\n"] }]
|
|
65
|
-
}], propDecorators: { styleBinding: [{
|
|
66
|
-
type: HostBinding,
|
|
67
|
-
args: ['style']
|
|
68
|
-
}] } });
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Generated bundle index. Do not edit.
|
|
72
|
-
*/
|
|
73
|
-
|
|
74
|
-
export { TestimonialsCarouselComponent };
|
|
75
|
-
//# sourceMappingURL=rededor-site-front-end-lib-components-carousels.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-components-carousels.mjs","sources":["../../../projects/site-front-end-lib/components/carousels/testimonials-carousel/testimonials-carousel.component.ts","../../../projects/site-front-end-lib/components/carousels/testimonials-carousel/testimonials-carousel.component.html","../../../projects/site-front-end-lib/components/carousels/rededor-site-front-end-lib-components-carousels.ts"],"sourcesContent":["import { Component, HostBinding, input, OnInit, viewChild, viewChildren, inject } from '@angular/core';\nimport { NguCarousel, NguCarouselDefDirective, NguItemComponent } from '@ngu/carousel';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { NguCarouselService } from '@rededor/site-front-end-lib/services/ngu-carousel';\nimport { TestimonialCardComponent } from '@rededor/site-front-end-lib/components/cards';\nimport { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';\n\n@Component({\n selector: 'rdsite-testimonials-carousel',\n imports: [NguCarousel, NguItemComponent, NguCarouselDefDirective, TestimonialCardComponent, CuraIconComponent],\n templateUrl: './testimonials-carousel.component.html',\n styleUrls: ['./testimonials-carousel.component.scss'],\n})\nexport class TestimonialsCarouselComponent implements OnInit {\n private readonly curaApiService = inject(CuraApiService);\n private nguService = inject(NguCarouselService);\n\n title = input('');\n items = input<any[] | null>([]);\n\n carouselTestimonialsConfig: any = this.nguService.customCarouselConfig({\n grid: { xs: 1, sm: 1, md: 1, lg: 1.1, all: 0 },\n gridBreakpoints: { sm: 360, md: 768, lg: 1024, xl: 1920 },\n loop: true,\n interval: {\n timing: 600000,\n initialDelay: 600000,\n },\n });\n\n readonly carouselTestimonials = viewChild.required<NguCarousel<any[]>>('carouselTestimonialsEl');\n readonly testimonialCards = viewChildren<TestimonialCardComponent>('testimonialCard');\n\n @HostBinding('style') styleBinding = {\n '--neutral-purewhite': this.curaApiService.theme.colors.getColor('neutral-purewhite'),\n '--neutral-black': this.curaApiService.theme.colors.getColor('neutral-black'),\n '--font-family': this.curaApiService.theme.fonts.getFamily(''),\n };\n\n ngOnInit() {\n this.carouselTestimonialsConfig.set(\n this.nguService.customCarouselConfig({\n grid: { xs: 1, sm: 1, md: 1, lg: 1.1, all: 0 },\n gridBreakpoints: { sm: 360, md: 768, lg: 1024, xl: 1920 },\n loop: true,\n interval: {\n timing: 600000,\n initialDelay: 600000,\n },\n }),\n );\n }\n\n nextSlide(): void {\n this.nguService.scrollRight(this.carouselTestimonials());\n }\n\n prevSlide(): void {\n this.nguService.scrollLeft(this.carouselTestimonials());\n }\n\n moveTo(pointerNumber: number): void {\n this.nguService.moveTo(this.carouselTestimonials(), pointerNumber);\n }\n\n stopVideos(): void {\n this.testimonialCards().forEach((card) => {\n if (card.type() === 'video') {\n card.stopVideo();\n }\n });\n }\n}\n","@if (title()) {\r\n <h3 class=\"testimonials-carousel-title\">{{ title() }}</h3>\r\n}\r\n\r\n<ngu-carousel #carouselTestimonialsEl [inputs]=\"carouselTestimonialsConfig()!\" [dataSource]=\"items()\" (onMove)=\"stopVideos()\">\r\n <ngu-item *nguCarouselDef=\"let item\">\r\n <rdsite-testimonial-card\r\n #testimonialCard\r\n [type]=\"item.type\"\r\n [image]=\"item.image\"\r\n [videoUrl]=\"item.video_url\"\r\n [text]=\"item.text\"\r\n [author]=\"item.author\"\r\n [position]=\"item.role\"\r\n >\r\n </rdsite-testimonial-card>\r\n </ngu-item>\r\n</ngu-carousel>\r\n\r\n<div class=\"testimonials-carousel-controls\">\r\n <cura-icon name=\"arrowLeftCircle\" size=\"40\" color=\"primary-base\" (click)=\"prevSlide()\"></cura-icon>\r\n\r\n <cura-icon name=\"arrowRightCircle\" size=\"40\" color=\"primary-base\" (click)=\"nextSlide()\"></cura-icon>\r\n\r\n <ul>\r\n @for (item of carouselTestimonials().pointNumbers(); track i; let i = $index) {\r\n <li [class.active]=\"i === carouselTestimonials().activePoint()\" (click)=\"moveTo(i)\"></li>\r\n }\r\n </ul>\r\n</div>\r\n","/**\n * Generated bundle index. Do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AA,IAAA,EAAE,uBAAuB,EAAA,QAAA,EAAA,kBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,wBAAwB,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,OAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,iBAAiB,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIlG,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBANzC,SAAS;+BACE,8BAA8B,EAAA,OAAA,EAC/B,CAAC,WAAW,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,iBAAiB,CAAC,EAAA,QAAA,EAAA,4mCAAA,EAAA,MAAA,EAAA,CAAA,4oDAAA,CAAA,EAAA;8BAwBxF,YAAY,EAAA,CAAA;sBAAjC,WAAW;uBAAC,OAAO;;;AEjCtB;;AAEG;;;;"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { isPlatformBrowser } from '@angular/common';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, PLATFORM_ID, input, viewChild, HostBinding, HostListener, Component } from '@angular/core';
|
|
4
|
-
import { NguCarousel, NguItemComponent, NguCarouselDefDirective } from '@ngu/carousel';
|
|
5
|
-
import { RdsiteLinkDirective } from '@rededor/site-front-end-lib/core';
|
|
6
|
-
import { CuraApiService } from '@rededor/site-front-end-lib/cura/api';
|
|
7
|
-
import { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';
|
|
8
|
-
import { NguCarouselService } from '@rededor/site-front-end-lib/services/ngu-carousel';
|
|
9
|
-
import { MediaQueries } from '@rededor/site-front-end-lib/shared';
|
|
10
|
-
|
|
11
|
-
class CtaWrapperComponent {
|
|
12
|
-
constructor() {
|
|
13
|
-
this.curaApiService = inject(CuraApiService);
|
|
14
|
-
this.nguService = inject(NguCarouselService);
|
|
15
|
-
this.platformId = inject(PLATFORM_ID);
|
|
16
|
-
this.content = input(null, ...(ngDevMode ? [{ debugName: "content" }] : []));
|
|
17
|
-
this.showTitleAndText = input(true, ...(ngDevMode ? [{ debugName: "showTitleAndText" }] : []));
|
|
18
|
-
this.colors = input({ border: 'primary-base', icon: 'primary-dark' }, ...(ngDevMode ? [{ debugName: "colors" }] : []));
|
|
19
|
-
this.bannerControl = false;
|
|
20
|
-
this.seeMoreControl = false;
|
|
21
|
-
this.nguCarouselCtas = viewChild.required('nguCarouselCtas');
|
|
22
|
-
this.class = ['rdsite-container'];
|
|
23
|
-
}
|
|
24
|
-
onWindowResize() {
|
|
25
|
-
if (isPlatformBrowser(this.platformId)) {
|
|
26
|
-
this.bannerControl = window.innerWidth > MediaQueries.smallBreakpoint;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
get style() {
|
|
30
|
-
return {
|
|
31
|
-
'--font-family': this.curaApiService.theme.fonts.getFamily('') ?? '',
|
|
32
|
-
'--border-color': this.curaApiService.theme.colors.getColor(this.colors().border) ?? '',
|
|
33
|
-
'--icon-color': this.curaApiService.theme.colors.getColor(this.colors().icon) ?? '',
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
ngOnInit() {
|
|
37
|
-
if (isPlatformBrowser(this.platformId)) {
|
|
38
|
-
this.bannerControl = window.innerWidth > MediaQueries.smallBreakpoint;
|
|
39
|
-
}
|
|
40
|
-
this.carouselCtasConfig = this.nguService.customCarouselConfig({
|
|
41
|
-
grid: { xs: 2.1, sm: 2.1, md: 2.1, lg: 2.1, all: 0 },
|
|
42
|
-
loop: true,
|
|
43
|
-
interval: {
|
|
44
|
-
timing: 600000,
|
|
45
|
-
initialDelay: 600000,
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
moreOptions() {
|
|
50
|
-
this.seeMoreControl = !this.seeMoreControl;
|
|
51
|
-
}
|
|
52
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CtaWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
53
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.2", type: CtaWrapperComponent, isStandalone: true, selector: "rdsite-cta-wrapper", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, showTitleAndText: { classPropertyName: "showTitleAndText", publicName: "showTitleAndText", isSignal: true, isRequired: false, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "window:resize": "onWindowResize()" }, properties: { "style": "this.style", "class": "this.class" } }, viewQueries: [{ propertyName: "nguCarouselCtas", first: true, predicate: ["nguCarouselCtas"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (content()?.ctas?.length) {\n @if (content()?.title && showTitleAndText()) {\n <h3 class=\"ctas-title\">{{ content()?.title }}</h3>\n }\n\n @if (content()?.text && showTitleAndText()) {\n <p class=\"ctas-text\" [innerHTML]=\"content()?.text\"></p>\n }\n\n @if (!seeMoreControl) {\n <nav class=\"ctas-wrapper\" data-testid=\"_rdsite-ctas-wrapper\">\n @if (!bannerControl) {\n <ngu-carousel #nguCarouselCtas [inputs]=\"carouselCtasConfig\" [dataSource]=\"content()?.ctas\">\n <ngu-item *nguCarouselDef=\"let cta; let i = index\">\n <a rdsitelink class=\"cta\" [href]=\"cta?.link\">\n @if (cta?.icon) {\n <cura-icon [name]=\"cta.icon\" size=\"24\" [color]=\"colors().icon\"></cura-icon>\n }\n <p>{{ cta?.label }}</p>\n </a>\n </ngu-item>\n </ngu-carousel>\n\n <div class=\"show-more\" data-testid=\"_rdsite-ctas-wrapper-show-more\">\n <button type=\"button\" (click)=\"moreOptions()\">Mais op\u00E7\u00F5es</button>\n </div>\n } @else {\n @for (cta of content()?.ctas; track $index) {\n @if (cta?.label) {\n <a rdsitelink class=\"cta\" [href]=\"cta?.link\">\n @if (cta?.icon) {\n <cura-icon [name]=\"cta.icon\" size=\"24\" [color]=\"colors().icon\"></cura-icon>\n }\n <p>{{ cta?.label }}</p>\n </a>\n }\n }\n }\n </nav>\n } @else {\n <nav class=\"more-options\" data-testid=\"_rdsite-ctas-wrapper-more-options\">\n @for (cta of content()?.ctas; track $index) {\n @if (cta?.label) {\n <a rdsitelink class=\"cta\" [href]=\"cta?.link\">\n @if (cta?.icon) {\n <cura-icon [name]=\"cta.icon\" size=\"24\" [color]=\"colors().icon\"></cura-icon>\n }\n <p>{{ cta?.label }}</p>\n </a>\n }\n }\n </nav>\n }\n}\n", styles: [":host{display:block}:host .ctas-title,:host .ctas-text{font-family:var(--font-family);padding:0;margin:0}:host .ctas-title:not(:last-child),:host .ctas-text:not(:last-child){padding-bottom:0}:host .ctas-title{color:var(--icon-color);font-size:29px;font-weight:500;line-height:38px;letter-spacing:-.58px;padding:0 24px;margin-bottom:24px}@media only screen and (min-width: 1024px){:host .ctas-title{font-size:33px;line-height:43px;letter-spacing:-.66px;padding:0}}:host .ctas-text{color:var(--icon-color);font-size:17px;font-weight:400;line-height:25px;padding:0 24px}@media only screen and (min-width: 1024px){:host .ctas-text{font-size:19px;line-height:28px;padding:0}}:host .ctas-wrapper{display:flex;flex-wrap:wrap;gap:16px;margin-top:50px}:host .ctas-wrapper ngu-carousel{max-width:100vw;margin-left:-6%}:host .ctas-wrapper ngu-carousel::ng-deep .ngucarousel{padding-left:6%}:host .ctas-wrapper ngu-item a{margin-right:16px}:host .ctas-wrapper .show-more{display:flex;justify-content:flex-end;width:100%;height:auto}:host .ctas-wrapper .show-more button{font-family:var(--font-family);color:var(--icon-color);background-color:transparent;font-size:16px;font-weight:500;line-height:145%;letter-spacing:.32px;text-decoration-line:underline;text-align:center}:host .more-options{display:flex;flex-wrap:wrap;gap:16px;margin-top:60px}:host .cta{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;min-width:150px;height:100%;min-height:150px;padding:24px 16px;border-radius:4px;border:1px solid var(--border-color);text-decoration:none}:host .cta p{font-family:var(--font-family);color:var(--icon-color);font-size:16px;font-weight:700;line-height:145%;letter-spacing:.32px;padding:0;margin:0;text-align:center}\n"], dependencies: [{ kind: "component", type: NguCarousel, selector: "ngu-carousel", inputs: ["inputs", "dataSource", "trackBy"], outputs: ["carouselLoad", "onMove"] }, { kind: "component", type: NguItemComponent, selector: "ngu-item" }, { kind: "directive", type: NguCarouselDefDirective, selector: "[nguCarouselDef]" }, { kind: "directive", type: RdsiteLinkDirective, selector: "[rdsitelink]", inputs: ["anchorAdjustment", "anchorExtraAdjustment", "phonemodal"] }, { kind: "component", type: CuraIconComponent, selector: "cura-icon", inputs: ["name", "color", "size", "iconset", "disabled"] }] }); }
|
|
54
|
-
}
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: CtaWrapperComponent, decorators: [{
|
|
56
|
-
type: Component,
|
|
57
|
-
args: [{ selector: 'rdsite-cta-wrapper', imports: [NguCarousel, NguItemComponent, NguCarouselDefDirective, RdsiteLinkDirective, CuraIconComponent], template: "@if (content()?.ctas?.length) {\n @if (content()?.title && showTitleAndText()) {\n <h3 class=\"ctas-title\">{{ content()?.title }}</h3>\n }\n\n @if (content()?.text && showTitleAndText()) {\n <p class=\"ctas-text\" [innerHTML]=\"content()?.text\"></p>\n }\n\n @if (!seeMoreControl) {\n <nav class=\"ctas-wrapper\" data-testid=\"_rdsite-ctas-wrapper\">\n @if (!bannerControl) {\n <ngu-carousel #nguCarouselCtas [inputs]=\"carouselCtasConfig\" [dataSource]=\"content()?.ctas\">\n <ngu-item *nguCarouselDef=\"let cta; let i = index\">\n <a rdsitelink class=\"cta\" [href]=\"cta?.link\">\n @if (cta?.icon) {\n <cura-icon [name]=\"cta.icon\" size=\"24\" [color]=\"colors().icon\"></cura-icon>\n }\n <p>{{ cta?.label }}</p>\n </a>\n </ngu-item>\n </ngu-carousel>\n\n <div class=\"show-more\" data-testid=\"_rdsite-ctas-wrapper-show-more\">\n <button type=\"button\" (click)=\"moreOptions()\">Mais op\u00E7\u00F5es</button>\n </div>\n } @else {\n @for (cta of content()?.ctas; track $index) {\n @if (cta?.label) {\n <a rdsitelink class=\"cta\" [href]=\"cta?.link\">\n @if (cta?.icon) {\n <cura-icon [name]=\"cta.icon\" size=\"24\" [color]=\"colors().icon\"></cura-icon>\n }\n <p>{{ cta?.label }}</p>\n </a>\n }\n }\n }\n </nav>\n } @else {\n <nav class=\"more-options\" data-testid=\"_rdsite-ctas-wrapper-more-options\">\n @for (cta of content()?.ctas; track $index) {\n @if (cta?.label) {\n <a rdsitelink class=\"cta\" [href]=\"cta?.link\">\n @if (cta?.icon) {\n <cura-icon [name]=\"cta.icon\" size=\"24\" [color]=\"colors().icon\"></cura-icon>\n }\n <p>{{ cta?.label }}</p>\n </a>\n }\n }\n </nav>\n }\n}\n", styles: [":host{display:block}:host .ctas-title,:host .ctas-text{font-family:var(--font-family);padding:0;margin:0}:host .ctas-title:not(:last-child),:host .ctas-text:not(:last-child){padding-bottom:0}:host .ctas-title{color:var(--icon-color);font-size:29px;font-weight:500;line-height:38px;letter-spacing:-.58px;padding:0 24px;margin-bottom:24px}@media only screen and (min-width: 1024px){:host .ctas-title{font-size:33px;line-height:43px;letter-spacing:-.66px;padding:0}}:host .ctas-text{color:var(--icon-color);font-size:17px;font-weight:400;line-height:25px;padding:0 24px}@media only screen and (min-width: 1024px){:host .ctas-text{font-size:19px;line-height:28px;padding:0}}:host .ctas-wrapper{display:flex;flex-wrap:wrap;gap:16px;margin-top:50px}:host .ctas-wrapper ngu-carousel{max-width:100vw;margin-left:-6%}:host .ctas-wrapper ngu-carousel::ng-deep .ngucarousel{padding-left:6%}:host .ctas-wrapper ngu-item a{margin-right:16px}:host .ctas-wrapper .show-more{display:flex;justify-content:flex-end;width:100%;height:auto}:host .ctas-wrapper .show-more button{font-family:var(--font-family);color:var(--icon-color);background-color:transparent;font-size:16px;font-weight:500;line-height:145%;letter-spacing:.32px;text-decoration-line:underline;text-align:center}:host .more-options{display:flex;flex-wrap:wrap;gap:16px;margin-top:60px}:host .cta{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;min-width:150px;height:100%;min-height:150px;padding:24px 16px;border-radius:4px;border:1px solid var(--border-color);text-decoration:none}:host .cta p{font-family:var(--font-family);color:var(--icon-color);font-size:16px;font-weight:700;line-height:145%;letter-spacing:.32px;padding:0;margin:0;text-align:center}\n"] }]
|
|
58
|
-
}], propDecorators: { onWindowResize: [{
|
|
59
|
-
type: HostListener,
|
|
60
|
-
args: ['window:resize']
|
|
61
|
-
}], style: [{
|
|
62
|
-
type: HostBinding,
|
|
63
|
-
args: ['style']
|
|
64
|
-
}], class: [{
|
|
65
|
-
type: HostBinding,
|
|
66
|
-
args: ['class']
|
|
67
|
-
}] } });
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Generated bundle index. Do not edit.
|
|
71
|
-
*/
|
|
72
|
-
|
|
73
|
-
export { CtaWrapperComponent };
|
|
74
|
-
//# sourceMappingURL=rededor-site-front-end-lib-components-cta-wrapper.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-components-cta-wrapper.mjs","sources":["../../../projects/site-front-end-lib/components/cta-wrapper/cta-wrapper.component.ts","../../../projects/site-front-end-lib/components/cta-wrapper/cta-wrapper.component.html","../../../projects/site-front-end-lib/components/cta-wrapper/rededor-site-front-end-lib-components-cta-wrapper.ts"],"sourcesContent":["import { isPlatformBrowser } from '@angular/common';\nimport { Component, HostBinding, HostListener, OnInit, PLATFORM_ID, input, viewChild, inject } from '@angular/core';\nimport { NguCarousel, NguCarouselConfig, NguCarouselDefDirective, NguItemComponent } from '@ngu/carousel';\nimport { CtaWrapper, RdsiteLinkDirective } from '@rededor/site-front-end-lib/core';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';\nimport { NguCarouselService } from '@rededor/site-front-end-lib/services/ngu-carousel';\nimport { MediaQueries } from '@rededor/site-front-end-lib/shared';\n\n@Component({\n selector: 'rdsite-cta-wrapper',\n imports: [NguCarousel, NguItemComponent, NguCarouselDefDirective, RdsiteLinkDirective, CuraIconComponent],\n templateUrl: './cta-wrapper.component.html',\n styleUrl: './cta-wrapper.component.scss',\n})\nexport class CtaWrapperComponent implements OnInit {\n private readonly curaApiService = inject(CuraApiService);\n private nguService = inject(NguCarouselService);\n private readonly platformId = inject(PLATFORM_ID);\n\n readonly content = input<CtaWrapper | null>(null);\n readonly showTitleAndText = input(true);\n readonly colors = input<{\n border: string;\n icon: string;\n }>({ border: 'primary-base', icon: 'primary-dark' });\n\n carouselCtasConfig!: NguCarouselConfig;\n\n bannerControl = false;\n seeMoreControl = false;\n\n readonly nguCarouselCtas = viewChild.required<NguCarousel<any, any>>('nguCarouselCtas');\n\n @HostListener('window:resize')\n onWindowResize() {\n if (isPlatformBrowser(this.platformId)) {\n this.bannerControl = window.innerWidth > MediaQueries.smallBreakpoint;\n }\n }\n\n @HostBinding('style')\n get style(): { [key: string]: string } {\n return {\n '--font-family': this.curaApiService.theme.fonts.getFamily('') ?? '',\n '--border-color': this.curaApiService.theme.colors.getColor(this.colors().border) ?? '',\n '--icon-color': this.curaApiService.theme.colors.getColor(this.colors().icon) ?? '',\n };\n }\n\n @HostBinding('class') class = ['rdsite-container'];\n\n ngOnInit(): void {\n if (isPlatformBrowser(this.platformId)) {\n this.bannerControl = window.innerWidth > MediaQueries.smallBreakpoint;\n }\n\n this.carouselCtasConfig = this.nguService.customCarouselConfig({\n grid: { xs: 2.1, sm: 2.1, md: 2.1, lg: 2.1, all: 0 },\n loop: true,\n interval: {\n timing: 600000,\n initialDelay: 600000,\n },\n });\n }\n\n moreOptions(): void {\n this.seeMoreControl = !this.seeMoreControl;\n }\n}\n","@if (content()?.ctas?.length) {\n @if (content()?.title && showTitleAndText()) {\n <h3 class=\"ctas-title\">{{ content()?.title }}</h3>\n }\n\n @if (content()?.text && showTitleAndText()) {\n <p class=\"ctas-text\" [innerHTML]=\"content()?.text\"></p>\n }\n\n @if (!seeMoreControl) {\n <nav class=\"ctas-wrapper\" data-testid=\"_rdsite-ctas-wrapper\">\n @if (!bannerControl) {\n <ngu-carousel #nguCarouselCtas [inputs]=\"carouselCtasConfig\" [dataSource]=\"content()?.ctas\">\n <ngu-item *nguCarouselDef=\"let cta; let i = index\">\n <a rdsitelink class=\"cta\" [href]=\"cta?.link\">\n @if (cta?.icon) {\n <cura-icon [name]=\"cta.icon\" size=\"24\" [color]=\"colors().icon\"></cura-icon>\n }\n <p>{{ cta?.label }}</p>\n </a>\n </ngu-item>\n </ngu-carousel>\n\n <div class=\"show-more\" data-testid=\"_rdsite-ctas-wrapper-show-more\">\n <button type=\"button\" (click)=\"moreOptions()\">Mais opções</button>\n </div>\n } @else {\n @for (cta of content()?.ctas; track $index) {\n @if (cta?.label) {\n <a rdsitelink class=\"cta\" [href]=\"cta?.link\">\n @if (cta?.icon) {\n <cura-icon [name]=\"cta.icon\" size=\"24\" [color]=\"colors().icon\"></cura-icon>\n }\n <p>{{ cta?.label }}</p>\n </a>\n }\n }\n }\n </nav>\n } @else {\n <nav class=\"more-options\" data-testid=\"_rdsite-ctas-wrapper-more-options\">\n @for (cta of content()?.ctas; track $index) {\n @if (cta?.label) {\n <a rdsitelink class=\"cta\" [href]=\"cta?.link\">\n @if (cta?.icon) {\n <cura-icon [name]=\"cta.icon\" size=\"24\" [color]=\"colors().icon\"></cura-icon>\n }\n <p>{{ cta?.label }}</p>\n </a>\n }\n }\n </nav>\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],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