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,EAAAA,cAAcC,EAAAA,EAAAA,oBAAoB,MAAOnC,EAAY,EAC3DoC,EAAAA,EAAAA,kBAAiBC,EAAAA,EAAAA,kBAAiBC,EAAAA,EAAAA,OAAOnB,IAAa,IAAK,IAC1DmB,EAAAA,EAAAA,OAAO5B,GAAKc,OAASN,IACjBgB,EAAAA,EAAAA,cAAcC,EAAAA,EAAAA,oBAAoB,OAAQjC,EAAY,EACrDkC,EAAAA,EAAAA,iBAAiB,OACjBG,EAAAA,EAAAA,oBAAoB,IAAK,CACvBC,KAAM,GACNvC,MAAO,aACPwC,QAAS,cACT1B,IAAKD,EACL4B,SAASC,EAAAA,EAAAA,eAAeb,EAAQ,CAAC,aAChC,eAAgB,EAAGzB,IACtBkC,EAAAA,EAAAA,oBAAoB,OAAQ,CAC1BE,QAAS,cACT1B,IAAKC,EACLZ,MAAO,CAAC,QAAU,SACjB,EACDgC,EAAAA,EAAAA,kBAAiBC,EAAAA,EAAAA,kBAAiBC,EAAAA,EAAAA,OAAOT,IAAc,KAAM,IAC7DU,EAAAA,EAAAA,oBAAoB,IAAK,CACvBC,KAAM,GACNvC,MAAO,aACPyC,SAASC,EAAAA,EAAAA,eAAeb,EAAQ,CAAC,aAChC,eAAgB,EAAGxB,IACrB,SAELsC,EAAAA,EAAAA,oBAAoB,IAAI,KAGhC,ICxFA,MAAMC,EAAc,EAEpB,O","sources":["webpack://beliefnet-frontend/./src/components/contributing-writers/Bio.vue?008c","webpack://beliefnet-frontend/./src/components/contributing-writers/Bio.vue"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, withModifiers as _withModifiers, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"writer-bio\" }\nconst _hoisted_2 = {\n key: 0,\n style: {\"vertical-align\":\"top\"}\n}\nconst _hoisted_3 = [\"onClick\"]\nconst _hoisted_4 = [\"onClick\"]\n\nimport { computed, ref, toRefs } from 'vue';\n\n// Define Component Input Properties\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Bio',\n props: {\n bio: String\n},\n setup(__props) {\n\nconst props = __props;\n\n\n\nconst showMoreBtn = ref<HTMLAnchorElement>();\nconst hiddenBlurb = ref<HTMLAnchorElement>();\n\nconst { bio } = toRefs(props);\nconst showChar = 345;\n\nconst bioShown = computed(() => {\n let writerBio = bio != undefined ? bio.value : '';\n if (writerBio.length > showChar) {\n let mod = writerBio.indexOf(' ', showChar);\n let showCharMod = mod < writerBio.length && mod > 0 ? mod : showChar;\n writerBio = writerBio.substr(0, showCharMod);\n }\n return writerBio;\n});\n\nconst bioHidden = computed(() => {\n let writerBio = bio != undefined ? bio.value : '';\n if (writerBio.length > showChar) {\n let mod = writerBio.indexOf(' ', showChar);\n let showCharMod = mod < writerBio.length && mod > 0 ? mod : showChar;\n writerBio = writerBio.substr(showCharMod - 0, writerBio.length - showCharMod);\n }\n return writerBio;\n});\n\nconst toggle = function () {\n if (showMoreBtn.value.style.display == 'none') {\n showMoreBtn.value.style.display = 'inline';\n hiddenBlurb.value.style.display = 'none';\n } else {\n showMoreBtn.value.style.display = 'none';\n hiddenBlurb.value.style.display = 'inline';\n }\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createTextVNode(_toDisplayString(_unref(bioShown)) + \" \", 1),\n (_unref(bio).length > showChar)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, [\n _createTextVNode(\" Â \"),\n _createElementVNode(\"a\", {\n href: \"\",\n class: \"serif-link\",\n ref_key: \"showMoreBtn\",\n ref: showMoreBtn,\n onClick: _withModifiers(toggle, [\"prevent\"])\n }, \"...show more\", 8, _hoisted_3),\n _createElementVNode(\"span\", {\n ref_key: \"hiddenBlurb\",\n ref: hiddenBlurb,\n style: {\"display\":\"none\"}\n }, [\n _createTextVNode(_toDisplayString(_unref(bioHidden)) + \" Â \", 1),\n _createElementVNode(\"a\", {\n href: \"\",\n class: \"serif-link\",\n onClick: _withModifiers(toggle, [\"prevent\"])\n }, \"...show less\", 8, _hoisted_4)\n ], 512)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./Bio.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Bio.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__"],"names":["_hoisted_1","class","_hoisted_2","key","style","_hoisted_3","_hoisted_4","_defineComponent","__name","props","bio","String","setup","__props","showMoreBtn","ref","hiddenBlurb","toRefs","showChar","bioShown","computed","writerBio","undefined","value","length","mod","indexOf","showCharMod","substr","bioHidden","toggle","display","_ctx","_cache","_openBlock","_createElementBlock","_createTextVNode","_toDisplayString","_unref","_createElementVNode","href","ref_key","onClick","_withModifiers","_createCommentVNode","__exports__"],"sourceRoot":""}