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aAAaF,EAAAA,EAAAA,iBAAiBO,EAAOpB,QAAU,MAC9C,KAAM,EAAG5C,IACZZ,EAAAA,EAAAA,oBAAoB,MAAOa,EAAa,EACtCb,EAAAA,EAAAA,oBAAoB,MAAO,CACzBP,MAAO,sBACP2F,OAAOC,EAAAA,EAAAA,gBAAgB,CAAEC,MAAO,GAAGV,EAAOpB,cACzC,KAAM,aAKjB,UAEN2B,EAAAA,EAAAA,oBAAoB,IAAI,GAC5BrE,SAIN,CAEJ,ICvNA,MAAMyE,EAAc,EAEpB,O","sources":["webpack://beliefnet-frontend/./src/services/poll.service.ts","webpack://beliefnet-frontend/./src/components/quiz/PollSidebar.vue?0a24","webpack://beliefnet-frontend/./src/components/quiz/PollSidebar.vue"],"sourcesContent":["import { VueLogger } from 'vue-logger-plugin/dist/types/logger';\nimport { FetchService } from './fetch.service';\nimport { Question } from '../common/models/pathfinder/question.model';\nimport { QuestionOptionCount } from '@/common/models/pathfinder/questionoptioncount.model';\n\n// get domain\nlet domain = window.location.hostname.split('.').slice(window.location.hostname.endsWith('.com.br') ? -3 : -2).join('.');\n\n// Special Case Overrides\nif (domain == 'familia.com.br') {\n // Portugese Family site will use Spanish Family domain\n domain = 'familias.com';\n} else if (domain == 'notion-staging.com' || domain == 'bibleminute.co') {\n // BibleMinute will just use Beliefnet domain\n domain = 'beliefnet.com';\n}\n\n// get endpoint url base (familia.com.br needs to pull from familias.com)\nconst endpointBase = `https://cr.${domain}/public/api/v2.0`;\n\n// handle dev environment\n// if (process.env.NODE_ENV == 'development') {\n// endpointBase = 'http://localhost:5000/public/api';\n// }\n\n\nexport class PollService {\n private logger: VueLogger;\n private fetchService: FetchService;\n\n constructor(logger: VueLogger, fetchService: FetchService) {\n this.logger = logger;\n this.fetchService = fetchService\n }\n\n async getQuizOptionCount(\n quizId: string | undefined\n ): Promise {\n try {\n if (!quizId) {\n return null;\n }\n\n const result = await this.fetchService.get(`${endpointBase}/questions/options/${quizId}`);\n return result.data;\n } catch(error) {\n this.logger.error('failed to get quiz: ', error);\n }\n\n return null;\n }\n\n /**\n * gets back quiz and answer\n */\n async getQuizOptions(\n quizId: string | undefined\n ): Promise {\n try {\n if (!quizId) {\n return null;\n }\n\n const result = await this.fetchService.get(`${endpointBase}/questions/${quizId}`);\n return result.data;\n } catch(error) {\n this.logger.error('failed to get quiz: ', error);\n }\n\n return null;\n }\n\n async submitQuizChoice(\n quizId: string | undefined,\n optionId: string | undefined\n ): Promise {\n try {\n if (!quizId || !optionId) {\n return false;\n }\n\n await this.fetchService.post(`${endpointBase}/questions/${quizId}/${optionId}`, null);\n\n return true;\n } catch (error) {\n this.logger.error('failed to submit quiz: ', error);\n }\n\n return false;\n }\n}\n","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, isRef as _isRef, vModelRadio as _vModelRadio, withDirectives as _withDirectives, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle } from \"vue\"\n\nconst _hoisted_1 = { class: \"container vert-spacing\" }\nconst _hoisted_2 = { class: \"top-reading\" }\nconst _hoisted_3 = { class: \"list-box\" }\nconst _hoisted_4 = [\"href\"]\nconst _hoisted_5 = { class: \"full-column-box\" }\nconst _hoisted_6 = { class: \"poll-block decorated\" }\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"section-title\" }, \"Latest Poll\", -1)\nconst _hoisted_8 = [\"textContent\"]\nconst _hoisted_9 = [\"value\"]\nconst _hoisted_10 = [\"textContent\"]\nconst _hoisted_11 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"poll-submit\" }, [\n /*#__PURE__*/_createElementVNode(\"input\", {\n type: \"submit\",\n id: \"\",\n class: \"poll-submit-btn\",\n value: \"Submit\"\n })\n], -1)\nconst _hoisted_12 = {\n key: 1,\n class: \"poll-results-wrapper\"\n}\nconst _hoisted_13 = [\"textContent\"]\nconst _hoisted_14 = {\n key: 1,\n class: \"poll-results-bar\"\n}\nconst _hoisted_15 = [\"textContent\"]\nconst _hoisted_16 = { class: \"poll-results-bar-inner\" }\nconst _hoisted_17 = /*#__PURE__*/_createElementVNode(\"a\", {\n href: \"/entertainment/quizzes/polls.aspx\",\n class: \"see-all\"\n}, \"See all polls\", -1)\n\nimport { FetchService } from '@/services/fetch.service';\nimport { ref, watch, inject } from 'vue';\nimport { useLogger } from 'vue-logger-plugin';\nimport { useField, useForm } from 'vee-validate';\nimport { PollService } from '@/services/poll.service';\nimport { Question } from '@/common/models/pathfinder/question.model';\nimport useValidators from '../../composables/validators.composable';\n\n\n// Incoming props\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'PollSidebar',\n props: { \n quizId: { type: String },\n thumbnail: { type: String },\n topReadings: { type: Array }\n},\n setup(__props) {\n\nconst props = __props;\n\n\n\nconst logger = useLogger();\n// inject our locationservice\nconst fetchService: FetchService | undefined = inject('FetchService');\n// get the quiz service that we need to submit results\nconst pollService = new PollService(logger, fetchService);\n\nconst quizPoll = ref();\npollService.getQuizOptions(props?.quizId)?.then((res) => {\n quizPoll.value = res;\n});\n\n// get validators\nconst { isRequired } = useValidators();\n// generate validation schema\nconst validationSchema = {\n optionId: (value: string) => isRequired(value, 'Please make your choice!')\n};\n\nconst { handleSubmit, errors } = useForm({ validationSchema });\n\n// Field Configurations\nconst { value: optionId } = useField('optionId');\n\nconst submitted = ref(false);\nconst onSubmit = handleSubmit(async (values) => {\n if (props?.quizId && values.optionId) {\n pollService.submitQuizChoice(props?.quizId, values.optionId).then(() => {\n submitted.value = true;\n });\n }\n});\n\n// watch the quiz if we submitted then fetch the stats so we can show them to the user\nwatch(submitted, (newSubmitted, oldSubmitted) => {\n if (oldSubmitted == false && newSubmitted == true) {\n pollService.getQuizOptionCount(props?.quizId).then((res) => {\n quizPoll.value?.options.forEach(o => {\n res?.forEach(oc => {\n if (oc.optionId == o.id) {\n o.count = oc.count;\n }\n });\n });\n\n let totalAnswers = 0;\n quizPoll.value?.options.forEach(o => {\n if (!isNaN(o.count)) {\n totalAnswers += o.count;\n }\n });\n\n quizPoll.value?.options.forEach(o => {\n if (!isNaN(o.count) && !isNaN(totalAnswers)) {\n o.percent = Math.max(0, Math.min(100, Math.floor((o.count / totalAnswers) * 100)));\n }\n });\n });\n }\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"ul\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.topReadings, (topReading) => {\n return (_openBlock(), _createElementBlock(\"li\", { key: topReading }, [\n _createElementVNode(\"a\", {\n href: topReading.Href\n }, _toDisplayString(topReading.Title), 9, _hoisted_4)\n ]))\n }), 128))\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createElementVNode(\"h4\", {\n textContent: _toDisplayString(quizPoll.value?.text)\n }, null, 8, _hoisted_8),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(errors), (error) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"alert alert-warning\",\n role: \"alert\",\n key: error\n }, _toDisplayString(error), 1))\n }), 128)),\n (submitted.value === false)\n ? (_openBlock(), _createElementBlock(\"form\", {\n key: 0,\n onSubmit: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_unref(onSubmit) && _unref(onSubmit)(...args))),\n class: \"poll-option-wrapper\",\n id: \"input_1\"\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(quizPoll.value?.options, (option) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"poll-option\",\n key: option\n }, [\n _withDirectives(_createElementVNode(\"input\", {\n name: \"optionId\",\n type: \"radio\",\n value: `${option.id}`,\n class: \"poll-input\",\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(optionId) ? (optionId).value = $event : null))\n }, null, 8, _hoisted_9), [\n [_vModelRadio, _unref(optionId)]\n ]),\n _createElementVNode(\"label\", {\n for: \"input_question\",\n textContent: _toDisplayString(option.text)\n }, null, 8, _hoisted_10)\n ]))\n }), 128)),\n _hoisted_11\n ], 32))\n : _createCommentVNode(\"\", true),\n (submitted.value === true)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(quizPoll.value?.options, (option) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"poll-results-item\",\n key: option\n }, [\n (!isNaN(option.percent))\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"poll-results-label\",\n textContent: _toDisplayString(option.text)\n }, null, 8, _hoisted_13))\n : _createCommentVNode(\"\", true),\n (!isNaN(option.percent))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", {\n class: \"poll-percentage\",\n textContent: _toDisplayString(option.percent + '%')\n }, null, 8, _hoisted_15),\n _createElementVNode(\"div\", _hoisted_16, [\n _createElementVNode(\"div\", {\n class: \"grad-bar-percentage\",\n style: _normalizeStyle({ width: `${option.percent}%` })\n }, null, 4)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n _hoisted_17\n ])\n ])\n ])\n ]))\n}\n}\n\n})","import script from \"./PollSidebar.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./PollSidebar.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__"],"names":["domain","window","location","hostname","split","slice","endsWith","join","endpointBase","PollService","constructor","logger","fetchService","this","getQuizOptionCount","quizId","result","get","data","error","getQuizOptions","submitQuizChoice","optionId","post","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_createElementVNode","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","type","id","value","_hoisted_12","key","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","href","_defineComponent","__name","props","String","thumbnail","topReadings","Array","setup","__props","useLogger","inject","pollService","quizPoll","ref","_a","then","res","isRequired","useValidators","validationSchema","handleSubmit","errors","useForm","useField","submitted","onSubmit","values","__awaiter","watch","newSubmitted","oldSubmitted","options","forEach","o","oc","count","totalAnswers","_b","isNaN","_c","percent","Math","max","min","floor","_ctx","_cache","_openBlock","_createElementBlock","_Fragment","_renderList","topReading","Href","_toDisplayString","Title","textContent","text","_unref","role","args","option","_withDirectives","name","$event","_isRef","_vModelRadio","for","_createCommentVNode","style","_normalizeStyle","width","__exports__"],"sourceRoot":""}