{"version":3,"names":["articleShareBlockCss","ArticleShareBlockStyle0","ArticleShareBlock","render","langCode","checkLanguageCookie","href","h","Host","key","class","this","backgroundColor","paddingBottom","paddingTop","sharePost","stayConnected","target","subscribeToday"],"sources":["src/components/article-share-block/article-share-block.css?tag=article-share-block","src/components/article-share-block/article-share-block.tsx"],"sourcesContent":["/* @import '../../global/app.css'; */\n/* @import '../../global/min-app.css'; */\n\n:host {\n @apply selection:text-dark-blue selection:bg-logo-orange font-poppins;\n display: block;\n}\n\n.share-block-wrapper {\n @apply max-w-[650px] lg:min-w-[650px] mx-auto;\n}\n\n.article-share-btn {\n @apply block px-16px py-8px text-0 md:text-1 font-medium rounded text-white transition-colors bg-medium-blue hover:bg-dark-blue visited:text-white hover:text-white text-center w-fit; \n}\n\n.addtoany_shortcode .addtoany_list {\n @apply flex justify-center items-center gap-8px flex-nowrap;\n\n}\n\n.addtoany_list a {\n @apply w-32px h-32px bg-medium-blue rounded-[4px] flex flex-row justify-center items-center !important;\n transition: all 0.15s ease;\n}\n\n.addtoany_list a:hover {\n @apply opacity-100 bg-dark-blue !important;\n}\n\n.addtoany_list a span {\n @apply bg-medium-blue rounded-[4px] !important;\n transition: all 0.15s ease;\n}\n\n.addtoany_list a:hover span {\n @apply opacity-100 bg-dark-blue !important;\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\nimport { checkLanguageCookie } from '../../utils/utils';\n\n@Component({\n tag: 'article-share-block',\n styleUrl: 'article-share-block.css',\n shadow: false,\n})\nexport class ArticleShareBlock {\n /**\n * shareBlock\n */\n @Prop() shareBlock: string;\n /**\n * Image alt\n */\n @Prop() imageAlt: string;\n /**\n * Asset Type\n */\n @Prop() assetType: string;\n /**\n * Video\n */\n @Prop() videoUrl: string;\n /**\n * Caption\n */\n @Prop() caption: string;\n /**\n * Share Post\n */\n @Prop() sharePost: string;\n /**\n * stay Connected\n */\n @Prop() stayConnected: string;\n\n /**\n * subscribe Today\n */\n @Prop() subscribeToday: string;\n\n /**\n * Background Color\n */\n @Prop() backgroundColor: string;\n\n /**\n * Text Color\n */\n @Prop() textColor: string;\n\n /**\n * Padding Top\n */\n @Prop() paddingTop: string;\n\n /**\n * Padding Bottom\n */\n @Prop() paddingBottom: string;\n\n /**\n * Background Image Url\n */\n @Prop() backgroundImage: string;\n render() {\n //const shareBlock = JSON.parse(this.shareBlock);\n //console.log(shareBlock);\n\n // Get the language code from the cookie\n const langCode = checkLanguageCookie('wp-wpml_current_language'); \n // Construct the href dynamically\n const href = langCode ? `/${langCode}/preference-center` : '/preference-center';\n return (\n \n \n
\n

{this.sharePost}

\n \n
\n
\n

{this.stayConnected}

\n \n {this.subscribeToday}\n \n
\n \n
\n );\n }\n}\n"],"mappings":"sFAAA,MAAMA,EAAuB,gtDAC7B,MAAAC,EAAeD,E,MCOFE,EAAiB,M,qXA2D5B,MAAAC,GAKE,MAAMC,EAAWC,EAAoB,4BAErC,MAAMC,EAAOF,EAAW,IAAIA,sBAA+B,qBAC3D,OACEG,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,OAAAE,IAAA,2CACEC,MAAO,oGAAoGC,KAAKC,mBAAmBD,KAAKE,iBAAiBF,KAAKG,wBAE9JP,EAAA,OAAAE,IAAA,2CAAKC,MAAO,WACVH,EAAA,MAAAE,IAAA,2CAAIC,MAAO,yDAA0DC,KAAKI,WAC1ER,EAAA,QAAAE,IAAA,8CAEFF,EAAA,OAAAE,IAAA,2CAAKC,MAAO,iBACVH,EAAA,MAAAE,IAAA,2CAAIC,MAAO,yDAA0DC,KAAKK,eAC1ET,EAAA,KAAAE,IAAA,2CAAGH,KAAMA,EAAMW,OAAQ,SAAUP,MAAO,6BACrCC,KAAKO,kB"}