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AAAA,OAAOrB,IACnB,EACDnB,EAAAA,EAAAA,oBAAoB,IAAK,CACvByC,OAAQ,SACRC,MAAMF,EAAAA,EAAAA,OAAOnB,GACbkB,MAAO,uBACNhC,EAAY,EAAGJ,IAClBH,EAAAA,EAAAA,oBAAoB,IAAK,CACvB0C,MAAMF,EAAAA,EAAAA,OAAOpB,GACbqB,OAAQ,SACRF,MAAO,sBACN7B,EAAY,EAAGF,IAClBR,EAAAA,EAAAA,oBAAoB,IAAK,CACvB0C,KAAMjB,EAASE,MACfY,MAAO,oBACN1B,EAAa,EAAGF,IAClB,EAAGT,IACL,IAEL,ICvGA,MAAMyC,EAAc,EAEpB,O","sources":["webpack://beliefnet-frontend/./src/components/social/ShareV1.vue?45ca","webpack://beliefnet-frontend/./src/components/social/ShareV1.vue"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = /*#__PURE__*/_createElementVNode(\"div\", { id: \"fb-root\" }, null, -1)\nconst _hoisted_2 = [\"data-link\"]\nconst _hoisted_3 = [\"href\"]\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"img\", {\n src: \"https://www.beliefnet.com/faiths/articles/~/media/images/components-v2/icons/icon-facebook-white.svg\",\n alt: \"Facebook\"\n}, null, -1)\nconst _hoisted_5 = [\n _hoisted_4\n]\nconst _hoisted_6 = [\"href\"]\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"img\", {\n src: \"https://www.beliefnet.com/faiths/articles/~/media/images/components-v2/icons/icon-twitter-white.svg\",\n alt: \"Twitter\"\n}, null, -1)\nconst _hoisted_8 = [\n _hoisted_7\n]\nconst _hoisted_9 = [\"href\"]\nconst _hoisted_10 = /*#__PURE__*/_createElementVNode(\"img\", {\n src: \"https://www.beliefnet.com/faiths/articles/~/media/images/components-v2/icons/icon-email-white.svg\",\n alt: \"Email\"\n}, null, -1)\nconst _hoisted_11 = [\n _hoisted_10\n]\n\nimport { toRefs, inject, ref } from 'vue';\nimport { useLogger } from 'vue-logger-plugin';\nimport { UtilsService } from './services/utils.service';\n\n// Incoming props\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ShareV1',\n props: {\n pageUrl: String,\n dataLink: String,\n twitterUrl: String,\n facebookUrl: String\n},\n setup(__props) {\n\nconst props = __props;\n\n\n\n// get back prop values\nconst {\n pageUrl,\n dataLink,\n twitterUrl,\n facebookUrl\n} = toRefs(props);\nconst pageHref = ref('mailto:?subject=I wanted you to see this site&body=Check out this site ' + pageUrl?.value);\n\n// use the logger\nconst logger = useLogger();\n// utils services for including google captcha script\nconst utilsService: UtilsService | undefined = inject('UtilsService');\n// load the script to handle the recaptcha\nutilsService?.includeScript(\n 'https://platform.twitter.com/widgets.js',\n 'twitter-wjs',\n function () {\n logger.debug('Finished loaded twitter js');\n }\n);\n\nutilsService?.includeScript(\n 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v7.0',\n 'facebook-loadjs',\n function () {\n logger.debug('Finished loaded facebook js');\n },\n 'xNkWMpmD',\n 'anonymous'\n);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _hoisted_1,\n _createElementVNode(\"div\", {\n class: \"beliefnet-share-container\",\n \"data-link\": _unref(dataLink)\n }, [\n _createElementVNode(\"a\", {\n target: \"_blank\",\n href: _unref(facebookUrl),\n class: \"share-icon facebook\"\n }, _hoisted_5, 8, _hoisted_3),\n _createElementVNode(\"a\", {\n href: _unref(twitterUrl),\n target: \"_blank\",\n class: \"share-icon twitter\"\n }, _hoisted_8, 8, _hoisted_6),\n _createElementVNode(\"a\", {\n href: pageHref.value,\n class: \"share-icon email\"\n }, _hoisted_11, 8, _hoisted_9)\n ], 8, _hoisted_2)\n ], 64))\n}\n}\n\n})","import script from \"./ShareV1.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ShareV1.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__"],"names":["_hoisted_1","_createElementVNode","id","_hoisted_2","_hoisted_3","_hoisted_4","src","alt","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_defineComponent","__name","props","pageUrl","String","dataLink","twitterUrl","facebookUrl","setup","__props","toRefs","pageHref","ref","value","logger","useLogger","utilsService","inject","includeScript","debug","_ctx","_cache","_openBlock","_createElementBlock","_Fragment","class","_unref","target","href","__exports__"],"sourceRoot":""}