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KAAM,CACxBwC,KAAM,eACN5C,OAAO6C,EAAAA,EAAAA,gBAAgB,CAAEC,OAA+B,iBAAvBtB,EAAcM,QAC/CiB,QAASN,EAAO,KAAOA,EAAO,GAAMO,GAAiBrB,EAAiB,mBACrEZ,EAAa,IAChBX,EAAAA,EAAAA,oBAAoB,KAAM,CACxBwC,KAAM,eACN5C,OAAO6C,EAAAA,EAAAA,gBAAgB,CAAEC,OAA+B,mBAAvBtB,EAAcM,QAC/CiB,QAASN,EAAO,KAAOA,EAAO,GAAMO,GAAiBrB,EAAiB,qBACrEV,EAAa,QAGpBb,EAAAA,EAAAA,oBAAoB,MAAO,CACzBJ,MAAO,YACPiD,QAAS,mBACTxB,IAAKC,GACJ,EACDwB,EAAAA,EAAAA,YAAYV,EAAKW,OAAQ,YACxB,SAIT,IC3HA,MAAMC,EAAc,EAEpB,O","sources":["webpack://beliefnet-frontend/./src/components/columnists/List.vue?b7f1","webpack://beliefnet-frontend/./src/components/columnists/List.vue"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"col-sm-2\" }\nconst _hoisted_2 = {\n class: \"rail-nav-list\",\n id: \"category\"\n}\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"a\", null, \"See all\", -1)\nconst _hoisted_4 = [\n _hoisted_3\n]\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"a\", null, \"Faith & Prayer\", -1)\nconst _hoisted_6 = [\n _hoisted_5\n]\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"a\", null, \"Inspiration\", -1)\nconst _hoisted_8 = [\n _hoisted_7\n]\nconst _hoisted_9 = /*#__PURE__*/_createElementVNode(\"a\", null, \"Christian Inspiration\", -1)\nconst _hoisted_10 = [\n _hoisted_9\n]\nconst _hoisted_11 = /*#__PURE__*/_createElementVNode(\"a\", null, \"Health & Wellness\", -1)\nconst _hoisted_12 = [\n _hoisted_11\n]\nconst _hoisted_13 = /*#__PURE__*/_createElementVNode(\"a\", null, \"Entertainment\", -1)\nconst _hoisted_14 = [\n _hoisted_13\n]\nconst _hoisted_15 = /*#__PURE__*/_createElementVNode(\"a\", null, \"Love & Family\", -1)\nconst _hoisted_16 = [\n _hoisted_15\n]\n\nimport { ref } from 'vue';\nimport { useLogger } from 'vue-logger-plugin';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'List',\n setup(__props) {\n\nconst logger = useLogger();\nconst currentFilter = ref(null);\nconst columnistElement = ref<HTMLDivElement>();\n\nconst filterColumnists = function (section) {\n logger.debug(`changing to ${section}`);\n\n if (section == 'All') {\n currentFilter.value = null;\n } else {\n currentFilter.value = section;\n }\n\n // go through each child element to display or not\n for (let i = 0; i < columnistElement.value.children.length; i++) {\n const child = columnistElement.value.children[i] as HTMLElement;\n child.style.display = 'none';\n\n if (currentFilter.value === null) {\n child.style.display = 'block';\n } else {\n var items = child.getAttribute('items');\n if (items.indexOf(currentFilter.value) != -1) {\n child.style.display = 'block';\n }\n }\n }\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createElementVNode(\"section\", null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"ul\", _hoisted_2, [\n _createElementVNode(\"li\", {\n role: \"presentation\",\n class: _normalizeClass({ active: currentFilter.value == null }),\n onClick: _cache[0] || (_cache[0] = ($event: any) => (filterColumnists('All')))\n }, _hoisted_4, 2),\n _createElementVNode(\"li\", {\n role: \"presentation\",\n class: _normalizeClass({ active: currentFilter.value == 'Faith And Prayer' }),\n onClick: _cache[1] || (_cache[1] = ($event: any) => (filterColumnists('Faith And Prayer')))\n }, _hoisted_6, 2),\n _createElementVNode(\"li\", {\n role: \"presentation\",\n class: _normalizeClass({ active: currentFilter.value == 'Inspiration' }),\n onClick: _cache[2] || (_cache[2] = ($event: any) => (filterColumnists('Inspiration')))\n }, _hoisted_8, 2),\n _createElementVNode(\"li\", {\n role: \"presentation\",\n class: _normalizeClass({ active: currentFilter.value == 'Christian Inspiration' }),\n onClick: _cache[3] || (_cache[3] = ($event: any) => (filterColumnists('Christian Inspiration')))\n }, _hoisted_10, 2),\n _createElementVNode(\"li\", {\n role: \"presentation\",\n class: _normalizeClass({ active: currentFilter.value == 'Health And Wellness' }),\n onClick: _cache[4] || (_cache[4] = ($event: any) => (filterColumnists('Health And Wellness')))\n }, _hoisted_12, 2),\n _createElementVNode(\"li\", {\n role: \"presentation\",\n class: _normalizeClass({ active: currentFilter.value == 'Entertainment' }),\n onClick: _cache[5] || (_cache[5] = ($event: any) => (filterColumnists('Entertainment')))\n }, _hoisted_14, 2),\n _createElementVNode(\"li\", {\n role: \"presentation\",\n class: _normalizeClass({ active: currentFilter.value == 'Love And Family' }),\n onClick: _cache[6] || (_cache[6] = ($event: any) => (filterColumnists('Love And Family')))\n }, _hoisted_16, 2)\n ])\n ]),\n _createElementVNode(\"div\", {\n class: \"col-sm-10\",\n ref_key: \"columnistElement\",\n ref: columnistElement\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 512)\n ])\n ]))\n}\n}\n\n})","import script from \"./List.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./List.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__"],"names":["_hoisted_1","class","_hoisted_2","id","_hoisted_3","_createElementVNode","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_defineComponent","__name","setup","__props","logger","useLogger","currentFilter","ref","columnistElement","filterColumnists","section","debug","value","i","children","length","child","style","display","items","getAttribute","indexOf","_ctx","_cache","_openBlock","_createElementBlock","role","_normalizeClass","active","onClick","$event","ref_key","_renderSlot","$slots","__exports__"],"sourceRoot":""}