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EAE/D,CAEH,EAUAjD,EAAoBiB,EAAEQ,EAAI,SAASwB,GAAW,OAAoC,IAA7B4C,EAAgB5C,EAAgB,EAGrF,IAAIsD,EAAuB,SAASC,EAA4B5T,GAC/D,IAKI8N,EAAUuC,EALV9B,EAAWvO,EAAK,GAChB6T,EAAc7T,EAAK,GACnB8T,EAAU9T,EAAK,GAGI4E,EAAI,EAC3B,GAAG2J,EAAS7T,MAAK,SAASxC,GAAM,OAA+B,IAAxB+a,EAAgB/a,EAAW,IAAI,CACrE,IAAI4V,KAAY+F,EACZzG,EAAoBzS,EAAEkZ,EAAa/F,KACrCV,EAAoBe,EAAEL,GAAY+F,EAAY/F,IAGhD,GAAGgG,EAAS,IAAIxF,EAASwF,EAAQ1G,EAClC,CAEA,IADGwG,GAA4BA,EAA2B5T,GACrD4E,EAAI2J,EAASrS,OAAQ0I,IACzByL,EAAU9B,EAAS3J,GAChBwI,EAAoBzS,EAAEsY,EAAiB5C,IAAY4C,EAAgB5C,IACrE4C,EAAgB5C,GAAS,KAE1B4C,EAAgB5C,GAAW,EAE5B,OAAOjD,EAAoBiB,EAAEC,EAC9B,EAEIyF,EAAqBC,KAAK,sBAAwBA,KAAK,uBAAyB,GACpFD,EAAmB1R,QAAQsR,EAAqBnB,KAAK,KAAM,IAC3DuB,EAAmB9V,KAAO0V,EAAqBnB,KAAK,KAAMuB,EAAmB9V,KAAKuU,KAAKuB,G,ICpFvF,IAAIE,EAAsB7G,EAAoBiB,OAAEpM,EAAW,CAAC,MAAM,WAAa,OAAOmL,EAAoB,IAAM,IAChH6G,EAAsB7G,EAAoBiB,EAAE4F,E","sources":["webpack://client/./src/App.vue","webpack://client/./src/App.vue?7ccd","webpack://client/./src/views/SurveyView.vue?7dec","webpack://client/./src/components/SurveyHeader.vue?7fa5","webpack://client/./src/i18n.ts","webpack://client/./src/components/SurveyHeader.vue?5f6d","webpack://client/./src/components/SurveyHeader.vue","webpack://client/./src/components/ComponentsByType/SingleDropdownComponent.vue?7a98","webpack://client/./src/components/ComponentsByType/SingleDropdownComponent.vue?e2a2","webpack://client/./src/components/ComponentsByType/SingleDropdownComponent.vue","webpack://client/./src/components/ComponentsByType/SingleRadioComponent.vue?d14e","webpack://client/./src/components/ComponentsByType/SingleRadioComponent.vue?8c87","webpack://client/./src/components/ComponentsByType/SingleRadioComponent.vue","webpack://client/./src/components/ComponentsByType/SmileyComponent.vue?128c","webpack://client/./src/components/ComponentsByType/SmileyComponent.vue?da8d","webpack://client/./src/components/ComponentsByType/SmileyComponent.vue","webpack://client/./src/components/ComponentsByType/TextMultiComponent.vue?93d0","webpack://client/./src/components/ComponentsByType/TextMultiComponent.vue?4136","webpack://client/./src/components/ComponentsByType/TextMultiComponent.vue","webpack://client/./src/components/ComponentsByType/TextSingleComponent.vue?2145","webpack://client/./src/components/ComponentsByType/TextSingleComponent.vue?1cd8","webpack://client/./src/components/ComponentsByType/TextSingleComponent.vue","webpack://client/./src/components/ComponentsByType/MultiCheckboxComponent.vue?e2ef","webpack://client/./src/components/ComponentsByType/MultiCheckboxComponent.vue?de73","webpack://client/./src/components/ComponentsByType/MultiCheckboxComponent.vue","webpack://client/./src/components/ComponentsByType/MultiLimitedComponent.vue?117d","webpack://client/./src/components/ComponentsByType/MultiLimitedComponent.vue?7242","webpack://client/./src/components/ComponentsByType/MultiLimitedComponent.vue","webpack://client/./src/components/ComponentsByType/NpsComponent.vue?02b2","webpack://client/./src/components/ComponentsByType/NpsComponent.vue?a547","webpack://client/./src/components/ComponentsByType/NpsComponent.vue","webpack://client/./src/components/ComponentsByType/ScoreComponent.vue?d209","webpack://client/./src/components/ComponentsByType/ScoreComponent.vue?3253","webpack://client/./src/components/ComponentsByType/ScoreComponent.vue","webpack://client/./src/store/index.ts","webpack://client/./src/views/SurveyView.vue?6b13","webpack://client/./src/views/SurveyView.vue","webpack://client/./src/views/ThankYouView.vue?02d5","webpack://client/./src/components/SurveyAnswer.vue?b911","webpack://client/./src/components/AnswerForSingleQuestion.vue?a67a","webpack://client/./src/components/AnswerForSingleQuestion.vue?5722","webpack://client/./src/components/AnswerForSingleQuestion.vue","webpack://client/./src/components/SurveyAnswer.vue?8d76","webpack://client/./src/components/SurveyAnswer.vue","webpack://client/./src/views/ThankYouView.vue?0cb2","webpack://client/./src/views/ThankYouView.vue","webpack://client/./src/router/index.ts","webpack://client/./src/main.ts","webpack://client/./src/locales/ lazy ^\\.\\/.*\\.json$ chunkName: lang-[request] namespace object","webpack://client/webpack/bootstrap","webpack://client/webpack/runtime/chunk loaded","webpack://client/webpack/runtime/compat get default export","webpack://client/webpack/runtime/create fake namespace object","webpack://client/webpack/runtime/define property getters","webpack://client/webpack/runtime/ensure chunk","webpack://client/webpack/runtime/get javascript chunk filename","webpack://client/webpack/runtime/get mini-css chunk filename","webpack://client/webpack/runtime/global","webpack://client/webpack/runtime/hasOwnProperty shorthand","webpack://client/webpack/runtime/load script","webpack://client/webpack/runtime/make namespace object","webpack://client/webpack/runtime/node module decorator","webpack://client/webpack/runtime/publicPath","webpack://client/webpack/runtime/jsonp chunk loading","webpack://client/webpack/startup"],"sourcesContent":["\n\n\n","import { render } from \"./App.vue?vue&type=template&id=6fafeab3\"\nconst script = {}\n\nimport \"./App.vue?vue&type=style&index=0&id=6fafeab3&lang=scss\"\n\nimport exportComponent from \"/opt/atlassian/pipelines/agent/build/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, vShow as _vShow, createVNode as _createVNode, withDirectives as _withDirectives, createBlock as _createBlock, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, withCtx as _withCtx, resolveDynamicComponent as _resolveDynamicComponent, Transition as _Transition, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-983d252e\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"container\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"test-answer\"\n}\nconst _hoisted_3 = { key: 2 }\nconst _hoisted_4 = { class: \"invalid-page-title\" }\nconst _hoisted_5 = { class: \"invalid-page-text\" }\nconst _hoisted_6 = { class: \"question-info\" }\nconst _hoisted_7 = [\"id\"]\nconst _hoisted_8 = {\n key: 0,\n class: \"required text-muted\"\n}\nconst _hoisted_9 = {\n key: 0,\n style: {\"white-space\":\"pre-wrap\"}\n}\nconst _hoisted_10 = { key: 1 }\nconst _hoisted_11 = {\n key: 0,\n class: \"question-content mt-3\"\n}\nconst _hoisted_12 = { key: 1 }\nconst _hoisted_13 = [\"for\"]\nconst _hoisted_14 = { class: \"buttons my-4\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_SurveyHeader = _resolveComponent(\"SurveyHeader\")!\n const _component_HakoSpinner = _resolveComponent(\"HakoSpinner\")!\n const _component_HakoConvertHyperlinks = _resolveComponent(\"HakoConvertHyperlinks\")!\n const _component_HakoTextArea = _resolveComponent(\"HakoTextArea\")!\n const _component_HakoContentBlock = _resolveComponent(\"HakoContentBlock\")!\n const _component_HakoButton = _resolveComponent(\"HakoButton\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_ctx.cIsTestAnswer)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, _toDisplayString(_ctx.$t(\"thisIsTestAnswer\")), 1))\n : _createCommentVNode(\"\", true),\n _withDirectives(_createVNode(_component_SurveyHeader, {\n title: _ctx.surveyName(_ctx.survey),\n languages: _ctx.survey?.languages,\n langFromUrl: _ctx.langFromUrl,\n pageIndicatorColor: _ctx.cPageIndicatorColor,\n currentPage: _ctx.currentPage,\n pageAmount: _ctx.cPageAmount,\n surveyId: _ctx.survey?.id\n }, null, 8, [\"title\", \"languages\", \"langFromUrl\", \"pageIndicatorColor\", \"currentPage\", \"pageAmount\", \"surveyId\"]), [\n [_vShow, _ctx.survey]\n ]),\n (_ctx.loading)\n ? (_openBlock(), _createBlock(_component_HakoSpinner, { key: 1 }))\n : (_ctx.invalidCode)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, _toDisplayString(_ctx.$t(\"surveyNotFoundTitle\")), 1),\n _createElementVNode(\"div\", _hoisted_5, _toDisplayString(_ctx.$t(\"surveyNotFoundText\")), 1)\n ]))\n : (_openBlock(true), _createElementBlock(_Fragment, { key: 3 }, _renderList(_ctx.cPages, (page, index) => {\n return (_openBlock(), _createBlock(_Transition, {\n key: page.id,\n name: _ctx.slideDirClass,\n mode: \"out-in\"\n }, {\n default: _withCtx(() => [\n _withDirectives(_createElementVNode(\"div\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(page.questions!, (question) => {\n return (_openBlock(), _createBlock(_Transition, {\n key: question.id,\n name: \"next-page-fade\"\n }, {\n default: _withCtx(() => [\n _withDirectives(_createVNode(_component_HakoContentBlock, {\n noHeader: true,\n class: \"mt-3\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", {\n class: \"question-title\",\n id: 'question' + question.id,\n style: _normalizeStyle(\n\t\t\t\t\t\t\t\t\t\t\t\tquestion.type?.technicalName == 'textBlock'\n\t\t\t\t\t\t\t\t\t\t\t\t\t? 'font-size: x-large'\n\t\t\t\t\t\t\t\t\t\t\t\t\t: 'font-size: larger'\n\t\t\t\t\t\t\t\t\t\t\t)\n }, [\n _createTextVNode(_toDisplayString(_ctx.getTextInCurrLang(question.translations, \"question\")) + \" \", 1),\n (question.isRequired)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_8, _toDisplayString(_ctx.$t(\"required\")), 1))\n : _createCommentVNode(\"\", true)\n ], 12, _hoisted_7),\n (_ctx.getTextInCurrLang(question.translations, 'description'))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [\n _createVNode(_component_HakoConvertHyperlinks, null, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.getTextInCurrLang(question.translations, \"description\")), 1)\n ]),\n _: 2\n }, 1024)\n ]))\n : _createCommentVNode(\"\", true),\n (\n\t\t\t\t\t\t\t\t\t\t\t\tquestion.type?.technicalName == 'multiLimited' &&\n\t\t\t\t\t\t\t\t\t\t\t\tquestion.maxOptionPicks\n\t\t\t\t\t\t\t\t\t\t\t)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, _toDisplayString(_ctx.$t(\"maxOptionPicks\") + \": \" + question.maxOptionPicks), 1))\n : _createCommentVNode(\"\", true)\n ]),\n (_ctx.isAnswerType(question.type))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_11, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.getComponentName(question.typeId)), {\n questionData: question,\n lang: _ctx.$i18n.locale,\n activations: \n\t\t\t\t\t\t\t\t\t\t\t\t_ctx.activations.filter(\n\t\t\t\t\t\t\t\t\t\t\t\t\t(x) =>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tquestion.options?.some((o) => o.id == x.optionId) ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tquestion.id == x.activatingQuestionId\n\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t,\n answerRow: \n\t\t\t\t\t\t\t\t\t\t\t\t_ctx.answerDto?.answerRows?.find((x) => x.questionId == question.id)\n\t\t\t\t\t\t\t\t\t\t\t,\n onActivatedActivations: ($event: any) => (\n\t\t\t\t\t\t\t\t\t\t\t\t_ctx.updateActivatedActivations($event, question.id!)\n\t\t\t\t\t\t\t\t\t\t\t),\n onSave: ($event: any) => (_ctx.saveAnswerRow(question, $event))\n }, null, 40, [\"questionData\", \"lang\", \"activations\", \"answerRow\", \"onActivatedActivations\", \"onSave\"]))\n ]))\n : _createCommentVNode(\"\", true),\n (question.asksComments)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _createElementVNode(\"label\", {\n for: 'comments' + question.id\n }, _toDisplayString(_ctx.$t(\"comments\")) + \":\", 9, _hoisted_13),\n _createVNode(_component_HakoTextArea, {\n id: 'comments' + question.id,\n modelValue: _ctx.answerDto!.answerRows!.find((x) => x.questionId == question.id)!.commentText,\n \"onUpdate:modelValue\": ($event: any) => ((_ctx.answerDto!.answerRows!.find((x) => x.questionId == question.id)!.commentText) = $event),\n onChange: ($event: any) => (_ctx.saveComment(question.id!))\n }, null, 8, [\"id\", \"modelValue\", \"onUpdate:modelValue\", \"onChange\"])\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 2\n }, 1536), [\n [_vShow, _ctx.checkIfQuestionActivated(question.id!)]\n ])\n ]),\n _: 2\n }, 1024))\n }), 128)),\n _createElementVNode(\"div\", _hoisted_14, [\n (index > 0)\n ? (_openBlock(), _createBlock(_component_HakoButton, {\n key: 0,\n class: \"previous-button\",\n theme: \"secondary\",\n onClick: ($event: any) => (_ctx.previousPage(index))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"previousPage\")), 1)\n ]),\n _: 2\n }, 1032, [\"onClick\"]))\n : _createCommentVNode(\"\", true),\n (index + 1 < _ctx.cPages.length)\n ? (_openBlock(), _createBlock(_component_HakoButton, {\n key: 1,\n class: \"next-button\",\n theme: \"secondary\",\n onClick: ($event: any) => (_ctx.nextPage(index))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"nextPage\")), 1)\n ]),\n _: 2\n }, 1032, [\"onClick\"]))\n : (_openBlock(), _createBlock(_component_HakoButton, {\n key: 2,\n theme: \"success\",\n class: \"next-button\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.finished()))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"send\")), 1)\n ]),\n _: 1\n }))\n ])\n ], 512), [\n [_vShow, _ctx.showPage(page)]\n ])\n ]),\n _: 2\n }, 1032, [\"name\"]))\n }), 128))\n ]))\n}","import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, normalizeStyle as _normalizeStyle, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-17547f62\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"row\" }\nconst _hoisted_2 = { class: \"col-xs-12 col-sm-8 col-md-9 col-lg-10\" }\nconst _hoisted_3 = { class: \"d-flex\" }\nconst _hoisted_4 = {\n key: 0,\n class: \"mb-2 logo-container\"\n}\nconst _hoisted_5 = [\"src\"]\nconst _hoisted_6 = { class: \"title\" }\nconst _hoisted_7 = { class: \"col-xs-12 col-sm-4 col-md-3 col-lg-2 order-first order-sm-last\" }\nconst _hoisted_8 = { class: \"lang-select-and-page\" }\nconst _hoisted_9 = {\n key: 0,\n class: \"lang-select mb-3\"\n}\nconst _hoisted_10 = {\n key: 1,\n class: \"page-indicator\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_HakoMultiselect = _resolveComponent(\"HakoMultiselect\")!\n const _component_HakoContentBlock = _resolveComponent(\"HakoContentBlock\")!\n\n return (_openBlock(), _createBlock(_component_HakoContentBlock, {\n \"no-header\": true,\n class: \"mb-3\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n (_ctx.surveyId && !_ctx.hideLogo)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n _createElementVNode(\"img\", {\n class: \"survey-logo\",\n src: `${_ctx.cBaseUrl}/Survey/Logo/${_ctx.selectedLanguage!}/${_ctx.surveyId}`,\n onError: _cache[0] || (_cache[0] = ($event: any) => (_ctx.hideLogo = true))\n }, null, 40, _hoisted_5)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_6, _toDisplayString(_ctx.title), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n (_ctx.cLanguages && _ctx.cLanguages.length > 1)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [\n _createVNode(_component_HakoMultiselect, {\n options: _ctx.cLanguages,\n \"disallow-remove\": true,\n modelValue: _ctx.selectedLanguage,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.selectedLanguage) = $event)),\n \"use-avatar\": false,\n placeholder: \"\"\n }, null, 8, [\"options\", \"modelValue\"])\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.pageAmount > 1)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.pageAmount, (index) => {\n return (_openBlock(), _createElementBlock(_Fragment, { key: index }, [\n (index == _ctx.currentPage)\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 0,\n style: _normalizeStyle(\n\t\t\t\t\t\t\t\t\t'background-color:' +\n\t\t\t\t\t\t\t\t\t_ctx.pageIndicatorColor +\n\t\t\t\t\t\t\t\t\t';' +\n\t\t\t\t\t\t\t\t\t'border-color:' +\n\t\t\t\t\t\t\t\t\t_ctx.pageIndicatorColor +\n\t\t\t\t\t\t\t\t\t';'\n\t\t\t\t\t\t\t\t),\n class: \"dot\"\n }, \"  \", 4))\n : (_openBlock(), _createElementBlock(\"span\", {\n key: 1,\n style: _normalizeStyle('border-color:' + _ctx.pageIndicatorColor + ';'),\n class: \"dot\"\n }, \"   \", 4))\n ], 64))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ])\n ]),\n _: 1\n }))\n}","import { createI18n } from \"vue-i18n\";\nimport axios from \"axios\";\nimport { config } from \"@hakosalo/hakolib\";\n\nconst loadedLanguages = [] as string[];\n\nconst i18n = createI18n({\n\tlocale: process.env.VUE_APP_I18N_LOCALE || \"fi\",\n\tfallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || \"fi\",\n\tmessages: {},\n});\n\nfunction setI18nLanguage(lang: \"fi\" | \"sv\" | \"en\") {\n\ti18n.global.locale = lang;\n\taxios.defaults.headers.common[\"Accept-Language\"] = lang;\n\tdocument.querySelector(\"html\")?.setAttribute(\"lang\", lang);\n\treturn lang;\n}\n\nconst setLanguageAsync = async (code: \"fi\" | \"sv\" | \"en\") => {\n\treturn import(/* webpackChunkName: \"lang-[request]\" */ `@/locales/${code}.json`).then(\n\t\t(messages) => {\n\t\t\ti18n.global.setLocaleMessage(code, messages.default);\n\t\t\tloadedLanguages.push(code);\n\t\t\tconfig.language = code;\n\t\t\treturn setI18nLanguage(code);\n\t\t}\n\t);\n};\n\nexport { i18n, setLanguageAsync };\n","\nimport { setLanguageAsync } from \"@/i18n\";\nimport { ISelectOption } from \"@hakosalo/hakolib\";\nimport { computed, defineComponent, PropType, ref, watch } from \"vue\";\nimport axios from \"axios\";\nimport { LanguageDto } from \"../../../crm2/CrmApi/TS/language-dto\";\n\nexport default defineComponent({\n\tprops: {\n\t\ttitle: {\n\t\t\ttype: String as PropType,\n\t\t\tdefault: \"\",\n\t\t},\n\n\t\tlanguages: {\n\t\t\ttype: Array as PropType,\n\t\t\tdefault: () => [],\n\t\t\trequired: false,\n\t\t},\n\n\t\tlangFromUrl: {\n\t\t\ttype: String as PropType<\"fi\" | \"sv\" | \"en\">,\n\t\t\trequired: false,\n\t\t},\n\n\t\tcurrentPage: {\n\t\t\ttype: Number as PropType,\n\t\t\trequired: true,\n\t\t},\n\n\t\tpageAmount: {\n\t\t\ttype: Number as PropType,\n\t\t\trequired: true,\n\t\t},\n\n\t\tpageIndicatorColor: {\n\t\t\ttype: String as PropType,\n\t\t\trequired: true,\n\t\t},\n\n\t\t// firstPageText: {\n\t\t// \ttype: String as PropType,\n\t\t// \trequired: false,\n\t\t// },\n\n\t\t// ingress: {\n\t\t// \ttype: String as PropType,\n\t\t// \trequired: false,\n\t\t// },\n\n\t\tsurveyId: {\n\t\t\ttype: Number as PropType,\n\t\t\trequired: false,\n\t\t},\n\t},\n\tsetup(props) {\n\t\tconst selectedLanguage = ref<\"fi\" | \"sv\" | \"en\">(\n\t\t\tprops.langFromUrl ? props.langFromUrl : \"fi\"\n\t\t);\n\n\t\tconst hideLogo = ref(false);\n\n\t\tconst cLanguages = computed(() => {\n\t\t\tif (props.languages.length == 0) return [];\n\n\t\t\treturn props.languages.map(\n\t\t\t\t(lang) =>\n\t\t\t\t\t({\n\t\t\t\t\t\tvalue: lang.code,\n\t\t\t\t\t\ttext: lang.native,\n\t\t\t\t\t} as ISelectOption)\n\t\t\t);\n\t\t});\n\n\t\tconst cBaseUrl = computed(() => {\n\t\t\treturn axios.defaults.baseURL;\n\t\t});\n\n\t\tconst setLanguage = async () => {\n\t\t\thideLogo.value = false;\n\t\t\tawait setLanguageAsync(selectedLanguage.value);\n\t\t};\n\n\t\twatch(\n\t\t\t() => selectedLanguage.value,\n\t\t\t(newValue, oldValue) => {\n\t\t\t\tif (newValue != oldValue) setLanguage();\n\t\t\t},\n\t\t\t{ immediate: true }\n\t\t);\n\n\t\twatch(\n\t\t\t() => props.langFromUrl,\n\t\t\t(newVal, oldVal) => {\n\t\t\t\tif (newVal && newVal != oldVal) selectedLanguage.value = newVal;\n\t\t\t}\n\t\t);\n\n\t\treturn {\n\t\t\tselectedLanguage,\n\t\t\tcLanguages,\n\t\t\tsetLanguage,\n\t\t\tcBaseUrl,\n\t\t\thideLogo,\n\t\t};\n\t},\n});\n","import { render } from \"./SurveyHeader.vue?vue&type=template&id=17547f62&scoped=true&ts=true\"\nimport script from \"./SurveyHeader.vue?vue&type=script&lang=ts\"\nexport * from \"./SurveyHeader.vue?vue&type=script&lang=ts\"\n\nimport \"./SurveyHeader.vue?vue&type=style&index=0&id=17547f62&scoped=true&lang=scss\"\n\nimport exportComponent from \"/opt/atlassian/pipelines/agent/build/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-17547f62\"]])\n\nexport default __exports__","import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-49f32698\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"single-select\"\n}\nconst _hoisted_2 = {\n key: 1,\n class: \"mt-3\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_HakoSingleSelect2 = _resolveComponent(\"HakoSingleSelect2\")!\n const _component_HakoTextArea = _resolveComponent(\"HakoTextArea\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n (_ctx.questionData.options && _ctx.questionData.options?.filter((x) => x.isActive).length > 0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_HakoSingleSelect2, {\n modelValue: _ctx.answer,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.answer) = $event)),\n placeholder: _ctx.$t('select'),\n options: _ctx.questionData.options?.filter((x) => x.isActive),\n \"option-generator\": \n\t\t\t\t(o) => ({\n\t\t\t\t\ttext: o.translations?.find((y) => y.languageCode == _ctx.lang)?.text || 'error'\n\t\t\t\t})\n\t\t\t,\n \"option-comparer\": (o) => (o.id ?? 0).toString()\n }, null, 8, [\"modelValue\", \"placeholder\", \"options\", \"option-generator\", \"option-comparer\"])\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.cIsOtherOption)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_2, [\n _createVNode(_component_HakoTextArea, {\n modelValue: _ctx.otherText,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.otherText) = $event))\n }, null, 8, [\"modelValue\"])\n ]))\n : _createCommentVNode(\"\", true)\n ], 64))\n}","\nimport {\n\tSurveyActivationDto,\n\tSurveyAnswerRowDto,\n\tSurveyQuestionDto,\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\tSurveyQuestionOptionDto,\n} from \"@/dto\";\nimport { defineComponent, PropType } from \"vue\";\nimport { debounce } from \"lodash\";\n\nexport default defineComponent({\n\tprops: {\n\t\tquestionData: {\n\t\t\ttype: Object as PropType,\n\t\t\trequired: true,\n\t\t},\n\n\t\tlang: {\n\t\t\ttype: String as PropType,\n\t\t\trequired: true,\n\t\t},\n\n\t\tactivations: {\n\t\t\ttype: Array as PropType,\n\t\t\tdefault: () => [] as SurveyActivationDto[],\n\t\t},\n\n\t\tanswerRow: {\n\t\t\ttype: Object as PropType,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tanswer: null as SurveyQuestionOptionDto | null,\n\t\t\tallowSaving: false,\n\t\t\totherText: null as string | null,\n\t\t};\n\t},\n\n\tcreated() {\n\t\tthis.emitAnswer = debounce(this.emitAnswer, 200);\n\t\tthis.emitAnswerText = debounce(this.emitAnswerText, 200);\n\t},\n\n\tmounted() {\n\t\tthis.answer = this.answerRow?.optionId\n\t\t\t? this.questionData.options?.find((x) => x.id == this.answerRow!.optionId) ?? null\n\t\t\t: null;\n\t\tthis.otherText = this.answerRow?.optionManualAnswer\n\t\t\t? this.answerRow.optionManualAnswer\n\t\t\t: null;\n\t\tsetTimeout(() => (this.allowSaving = true), 1100);\n\n\t\tif (this.answer?.id) this.updateActivations(this.answer.id);\n\t},\n\n\tcomputed: {\n\t\tcIsOtherOption(): boolean {\n\t\t\treturn !!this.answer?.isOtherOption;\n\t\t},\n\t},\n\n\twatch: {\n\t\tanswer: {\n\t\t\thandler(newVal, oldVal) {\n\t\t\t\tif (newVal?.id != oldVal?.id) {\n\t\t\t\t\tthis.updateActivations(newVal?.id);\n\n\t\t\t\t\tthis.emitAnswer(newVal?.id);\n\n\t\t\t\t\tconst opt = this.questionData.options?.find((x) => x.id == newVal?.id);\n\t\t\t\t\tif (opt && !opt.isOtherOption) this.otherText = null;\n\t\t\t\t}\n\t\t\t},\n\t\t\timmediate: false,\n\t\t},\n\n\t\totherText: {\n\t\t\thandler(newVal, oldVal) {\n\t\t\t\tif (newVal != oldVal) {\n\t\t\t\t\tthis.emitAnswerText(newVal);\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t},\n\n\tmethods: {\n\t\tupdateActivations(optionId: number) {\n\t\t\tlet activations = this.activations.filter((x) => x.optionId == optionId);\n\n\t\t\tthis.$emit(\"activatedActivations\", activations);\n\t\t},\n\n\t\temitAnswer(answer: number) {\n\t\t\tif (this.allowSaving) this.$emit(\"save\", { optionId: answer });\n\t\t},\n\n\t\temitAnswerText(text: string | null) {\n\t\t\tif (this.allowSaving)\n\t\t\t\tthis.$emit(\"save\", { optionId: this.answer?.id, optionManualAnswer: text });\n\t\t},\n\t},\n});\n","import { render } from \"./SingleDropdownComponent.vue?vue&type=template&id=49f32698&scoped=true&ts=true\"\nimport script from \"./SingleDropdownComponent.vue?vue&type=script&lang=ts\"\nexport * from \"./SingleDropdownComponent.vue?vue&type=script&lang=ts\"\n\nimport \"./SingleDropdownComponent.vue?vue&type=style&index=0&id=49f32698&lang=scss&scoped=true\"\n\nimport exportComponent from \"/opt/atlassian/pipelines/agent/build/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-49f32698\"]])\n\nexport default __exports__","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-2611366a\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"single-select-radio ms-3\" }\nconst _hoisted_2 = { key: 0 }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_HakoRadio = _resolveComponent(\"HakoRadio\")!\n const _component_HakoTextArea = _resolveComponent(\"HakoTextArea\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.questionData.options?.filter((x) => x.isActive), (option) => {\n return (_openBlock(), _createElementBlock(_Fragment, {\n key: option.id\n }, [\n _createVNode(_component_HakoRadio, {\n modelValue: _ctx.answer,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.answer) = $event)),\n value: option.id,\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.userHasAnswered = true))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(option.translations!.find((y) => y.languageCode == _ctx.lang)?.text || \"error\"), 1)\n ]),\n _: 2\n }, 1032, [\"modelValue\", \"value\"]),\n (option.isOtherOption && _ctx.answer && _ctx.answerRow?.optionId == option.id)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_2, [\n _createVNode(_component_HakoTextArea, {\n modelValue: _ctx.otherText,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.otherText) = $event)),\n onClick: _cache[3] || (_cache[3] = ($event: any) => (_ctx.userHasAnswered = true))\n }, null, 8, [\"modelValue\"])\n ]))\n : _createCommentVNode(\"\", true)\n ], 64))\n }), 128))\n ]))\n}","\nimport { SurveyActivationDto, SurveyAnswerRowDto, SurveyQuestionDto } from \"@/dto\";\nimport { defineComponent, PropType } from \"vue\";\nimport { debounce } from \"lodash\";\n\nexport default defineComponent({\n\tprops: {\n\t\tquestionData: {\n\t\t\ttype: Object as PropType,\n\t\t\trequired: true,\n\t\t},\n\n\t\tlang: {\n\t\t\ttype: String as PropType,\n\t\t\trequired: true,\n\t\t},\n\n\t\tactivations: {\n\t\t\ttype: Array as PropType,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\tanswerRow: {\n\t\t\ttype: Object as PropType,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tanswer: null as number | null,\n\t\t\totherText: null as string | null,\n\t\t\tuserHasAnswered: false,\n\t\t};\n\t},\n\n\tcreated() {\n\t\tthis.emitAnswer = debounce(this.emitAnswer, 200);\n\t\tthis.emitAnswerText = debounce(this.emitAnswerText, 200);\n\t},\n\n\tmounted() {\n\t\tthis.answer = this.answerRow?.optionId ? this.answerRow.optionId : null;\n\n\t\tif (this.answer) this.updateActivations(this.answer);\n\t},\n\n\twatch: {\n\t\tanswer: {\n\t\t\thandler(newVal, oldVal) {\n\t\t\t\tif (newVal != oldVal) {\n\t\t\t\t\tthis.updateActivations(newVal);\n\n\t\t\t\t\tthis.emitAnswer(newVal);\n\n\t\t\t\t\tconst opt = this.questionData.options?.find((x) => x.id == newVal);\n\t\t\t\t\tif (opt && !opt.isOtherOption) this.otherText = null;\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\n\t\totherText: {\n\t\t\thandler(newVal, oldVal) {\n\t\t\t\tif (newVal != oldVal) {\n\t\t\t\t\tthis.emitAnswerText(newVal);\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t},\n\n\tmethods: {\n\t\tupdateActivations(optionId: number) {\n\t\t\tlet activations = this.activations.filter((x) => x.optionId == optionId);\n\n\t\t\tthis.$emit(\"activatedActivations\", activations);\n\t\t},\n\n\t\temitAnswer(answer: number) {\n\t\t\tif (this.userHasAnswered) this.$emit(\"save\", { optionId: answer });\n\t\t},\n\n\t\temitAnswerText(text: string | null) {\n\t\t\tif (this.userHasAnswered)\n\t\t\t\tthis.$emit(\"save\", { optionId: this.answer, optionManualAnswer: text });\n\t\t},\n\t},\n});\n","import { render } from \"./SingleRadioComponent.vue?vue&type=template&id=2611366a&scoped=true&ts=true\"\nimport script from \"./SingleRadioComponent.vue?vue&type=script&lang=ts\"\nexport * from \"./SingleRadioComponent.vue?vue&type=script&lang=ts\"\n\nimport \"./SingleRadioComponent.vue?vue&type=style&index=0&id=2611366a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/opt/atlassian/pipelines/agent/build/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2611366a\"]])\n\nexport default __exports__","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, vShow as _vShow, withDirectives as _withDirectives, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-652abe8a\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"active ms-2\" }\nconst _hoisted_2 = [\"src\", \"alt\"]\nconst _hoisted_3 = { class: \"ms-2\" }\nconst _hoisted_4 = [\"src\", \"alt\", \"onClick\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.getSmileys(_ctx.questionData.smileyAmount!), (smiley) => {\n return (_openBlock(), _createElementBlock(_Fragment, { key: smiley }, [\n _withDirectives(_createElementVNode(\"span\", _hoisted_1, [\n _createElementVNode(\"img\", {\n src: '/assets/survey/' + smiley + '.png',\n alt: smiley + '',\n class: \"smiley\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => {\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_ctx.selected = null;\n\t\t\t\t\t\t\t_ctx.userHasAnswered = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n }, null, 8, _hoisted_2)\n ], 512), [\n [_vShow, _ctx.selected == smiley]\n ]),\n _withDirectives(_createElementVNode(\"span\", _hoisted_3, [\n _createElementVNode(\"img\", {\n src: '/assets/survey/' + smiley + '.png',\n alt: smiley + '',\n class: \"smiley\",\n onClick: ($event: any) => {\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_ctx.selected = smiley;\n\t\t\t\t\t\t\t_ctx.userHasAnswered = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n }, null, 8, _hoisted_4)\n ], 512), [\n [_vShow, _ctx.selected != smiley]\n ])\n ], 64))\n }), 128))\n ]))\n}","\nimport { SurveyActivationDto, SurveyAnswerRowDto, SurveyQuestionDto } from \"@/dto\";\nimport { defineComponent, PropType } from \"vue\";\nimport { debounce } from \"lodash\";\n\nexport default defineComponent({\n\tprops: {\n\t\tquestionData: {\n\t\t\ttype: Object as PropType,\n\t\t\trequired: true,\n\t\t},\n\n\t\tactivations: {\n\t\t\ttype: Array as PropType,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\tanswerRow: {\n\t\t\ttype: Object as PropType,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tselected: null as number | null,\n\t\t\tuserHasAnswered: false,\n\t\t};\n\t},\n\n\tcreated() {\n\t\tthis.emitAnswer = debounce(this.emitAnswer, 200);\n\t},\n\n\tmounted() {\n\t\tthis.selected = this.answerRow?.smileyValue ? this.answerRow.smileyValue : null;\n\n\t\tif (this.selected) this.updateActivations(this.selected);\n\t},\n\n\twatch: {\n\t\tselected: {\n\t\t\thandler(newVal, oldVal) {\n\t\t\t\tif (newVal != oldVal) {\n\t\t\t\t\tthis.updateActivations(newVal);\n\n\t\t\t\t\tthis.emitAnswer(newVal);\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t},\n\n\tmethods: {\n\t\tgetSmileys(amount: number) {\n\t\t\tif (amount == 2) return [5, 1];\n\t\t\tif (amount == 3) return [5, 3, 1];\n\t\t\tif (amount == 4) return [5, 4, 2, 1];\n\t\t\tif (amount == 5) return [5, 4, 3, 2, 1];\n\t\t\treturn [];\n\t\t},\n\n\t\tupdateActivations(numericValue: number) {\n\t\t\tlet activations = this.activations.filter((x) => x.numericValue == numericValue);\n\n\t\t\tthis.$emit(\"activatedActivations\", activations);\n\t\t},\n\n\t\temitAnswer(answer: number) {\n\t\t\tif (this.userHasAnswered) this.$emit(\"save\", answer);\n\t\t},\n\t},\n});\n","import { render } from \"./SmileyComponent.vue?vue&type=template&id=652abe8a&scoped=true&ts=true\"\nimport script from \"./SmileyComponent.vue?vue&type=script&lang=ts\"\nexport * from \"./SmileyComponent.vue?vue&type=script&lang=ts\"\n\nimport \"./SmileyComponent.vue?vue&type=style&index=0&id=652abe8a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/opt/atlassian/pipelines/agent/build/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-652abe8a\"]])\n\nexport default __exports__","import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_HakoTextArea = _resolveComponent(\"HakoTextArea\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createVNode(_component_HakoTextArea, {\n modelValue: _ctx.answer,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.answer) = $event))\n }, null, 8, [\"modelValue\"])\n ]))\n}","\nimport { PropType, defineComponent } from \"vue\";\nimport { debounce } from \"lodash\";\nimport { SurveyAnswerRowDto } from \"@/dto\";\n\nexport default defineComponent({\n\tprops: {\n\t\tanswerRow: {\n\t\t\ttype: Object as PropType,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tanswer: this.answerRow?.answerText ? this.answerRow.answerText : \"\",\n\t\t};\n\t},\n\n\tcreated() {\n\t\tthis.emitAnswer = debounce(this.emitAnswer, 200);\n\t},\n\n\twatch: {\n\t\tanswer: {\n\t\t\thandler(newVal, oldVal) {\n\t\t\t\tif (newVal != oldVal) this.emitAnswer(newVal);\n\t\t\t},\n\t\t\timmediate: false,\n\t\t},\n\t},\n\n\tmethods: {\n\t\temitAnswer(answer: string) {\n\t\t\tthis.$emit(\"save\", answer);\n\t\t},\n\t},\n});\n","import { render } from \"./TextMultiComponent.vue?vue&type=template&id=5abce38d&ts=true\"\nimport script from \"./TextMultiComponent.vue?vue&type=script&lang=ts\"\nexport * from \"./TextMultiComponent.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"/opt/atlassian/pipelines/agent/build/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_HakoInput = _resolveComponent(\"HakoInput\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createVNode(_component_HakoInput, {\n modelValue: _ctx.answer,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.answer) = $event))\n }, null, 8, [\"modelValue\"])\n ]))\n}","\nimport { PropType, defineComponent } from \"vue\";\nimport { debounce } from \"lodash\";\nimport { SurveyAnswerRowDto } from \"@/dto\";\n\nexport default defineComponent({\n\tprops: {\n\t\tanswerRow: {\n\t\t\ttype: Object as PropType,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tanswer: this.answerRow?.answerText ? this.answerRow.answerText : \"\",\n\t\t};\n\t},\n\n\tcreated() {\n\t\tthis.emitAnswer = debounce(this.emitAnswer, 200);\n\t},\n\n\twatch: {\n\t\tanswer: {\n\t\t\thandler(newVal, oldVal) {\n\t\t\t\tif (newVal != oldVal) this.emitAnswer(newVal);\n\t\t\t},\n\t\t\timmediate: false,\n\t\t},\n\t},\n\n\tmethods: {\n\t\temitAnswer(answer: string) {\n\t\t\tthis.$emit(\"save\", answer);\n\t\t},\n\t},\n});\n","import { render } from \"./TextSingleComponent.vue?vue&type=template&id=603a5934&ts=true\"\nimport script from \"./TextSingleComponent.vue?vue&type=script&lang=ts\"\nexport * from \"./TextSingleComponent.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"/opt/atlassian/pipelines/agent/build/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, vModelCheckbox as _vModelCheckbox, createElementVNode as _createElementVNode, withDirectives as _withDirectives, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = [\"value\", \"id\", \"onChange\"]\nconst _hoisted_2 = [\"for\"]\nconst _hoisted_3 = { key: 0 }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_HakoTextArea = _resolveComponent(\"HakoTextArea\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.questionData.options?.filter((x) => x.isActive), (option) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: option.id,\n class: \"form-check mb-2\"\n }, [\n _withDirectives(_createElementVNode(\"input\", {\n type: \"checkbox\",\n value: option.id,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.answerNumbers) = $event)),\n id: 'option' + option.id,\n onChange: ($event: any) => (_ctx.checkActivations($event, option.id!))\n }, null, 40, _hoisted_1), [\n [_vModelCheckbox, _ctx.answerNumbers]\n ]),\n _createElementVNode(\"label\", {\n for: 'option' + option.id,\n class: \"ms-2\"\n }, _toDisplayString(option.translations?.find((x) => x.languageCode == _ctx.lang)?.text), 9, _hoisted_2),\n (option.isOtherOption && _ctx.answerNumbers.includes(option.id!))\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_3, [\n (\n\t\t\t\t\t\t\t_ctx.answerDtos.find((x) => x.optionId == option.id)?.otherOptionText != undefined\n\t\t\t\t\t\t)\n ? (_openBlock(), _createBlock(_component_HakoTextArea, {\n key: 0,\n modelValue: _ctx.answerDtos.find((x) => x.optionId == option.id)!.otherOptionText,\n \"onUpdate:modelValue\": ($event: any) => ((_ctx.answerDtos.find((x) => x.optionId == option.id)!.otherOptionText) = $event)\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128))\n ]))\n}","\nimport {\n\tSurveyActivationDto,\n\tSurveyAnswerRowDto,\n\tSurveyAnswerRowOptionDto,\n\tSurveyQuestionDto,\n} from \"@/dto\";\nimport { defineComponent, PropType } from \"vue\";\nimport { debounce } from \"lodash\";\n\nexport default defineComponent({\n\tprops: {\n\t\tquestionData: {\n\t\t\ttype: Object as PropType,\n\t\t\trequired: true,\n\t\t},\n\n\t\tlang: {\n\t\t\ttype: String as PropType,\n\t\t\trequired: true,\n\t\t},\n\n\t\tactivations: {\n\t\t\ttype: Array as PropType,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\tanswerRow: {\n\t\t\ttype: Object as PropType,\n\t\t},\n\t},\n\n\tcreated() {\n\t\tthis.emitAnswer = debounce(this.emitAnswer, 200);\n\t},\n\n\tmounted() {\n\t\tthis.answerNumbers = this.answerRow?.multiSelectOptions\n\t\t\t? this.answerRow?.multiSelectOptions.map((x) => x.optionId)\n\t\t\t: ([] as number[]);\n\t\tthis.answerDtos = this.answerRow?.multiSelectOptions\n\t\t\t? this.answerRow?.multiSelectOptions\n\t\t\t: ([] as SurveyAnswerRowOptionDto[]);\n\n\t\tthis.answerNumbers.forEach((num) => {\n\t\t\tif (this.optionHasActivation(num)) this.updateAddedActivations(num);\n\t\t});\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tanswerNumbers: [] as number[],\n\t\t\tanswerDtos: [] as SurveyAnswerRowOptionDto[],\n\t\t\tactivatedActivations: [] as SurveyActivationDto[],\n\t\t\tuserHasEdited: false,\n\t\t};\n\t},\n\n\tmethods: {\n\t\tcheckActivations(event: Event, id: number) {\n\t\t\tthis.userHasEdited = true;\n\t\t\tlet target = event.target as HTMLInputElement;\n\n\t\t\tif (!target.checked) {\n\t\t\t\tlet removedDto = this.questionData.options!.find((x) => x.id == id);\n\t\t\t\tthis.answerDtos = this.answerDtos.filter((x) => x.optionId != removedDto!.id!);\n\n\t\t\t\tif (this.optionHasActivation(id)) this.updateRemovedActivations(id);\n\t\t\t}\n\n\t\t\tif (target.checked) {\n\t\t\t\tlet newDto = this.questionData.options!.find((x) => x.id == id);\n\t\t\t\tthis.answerDtos.push({\n\t\t\t\t\toptionId: newDto!.id!,\n\t\t\t\t\totherOptionText: \"\",\n\t\t\t\t});\n\t\t\t\tif (this.optionHasActivation(id)) {\n\t\t\t\t\tthis.updateAddedActivations(id);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\toptionHasActivation(optionId: number) {\n\t\t\tif (!optionId) return false;\n\n\t\t\tif (this.activations && this.activations.some((x) => x.optionId == optionId)) return true;\n\n\t\t\treturn false;\n\t\t},\n\n\t\tupdateAddedActivations(optionId: number) {\n\t\t\tlet activated = this.activations.filter((x) => x.optionId == optionId);\n\t\t\tthis.activatedActivations = this.activatedActivations.concat(activated);\n\t\t},\n\n\t\tupdateRemovedActivations(optionId: number) {\n\t\t\tthis.activatedActivations = this.activatedActivations.filter(\n\t\t\t\t(x) => x.optionId != optionId\n\t\t\t);\n\t\t},\n\n\t\temitAnswer(answers: SurveyAnswerRowOptionDto[]) {\n\t\t\tif (this.userHasEdited) this.$emit(\"save\", answers);\n\t\t},\n\t},\n\n\twatch: {\n\t\tactivatedActivations(val) {\n\t\t\tthis.$emit(\"activatedActivations\", val);\n\t\t},\n\n\t\tanswerDtos: {\n\t\t\thandler(newVal) {\n\t\t\t\tthis.emitAnswer(newVal);\n\t\t\t},\n\t\t\timmediate: false,\n\t\t\tdeep: true,\n\t\t},\n\t},\n});\n","import { render } from \"./MultiCheckboxComponent.vue?vue&type=template&id=217d97d0&ts=true\"\nimport script from \"./MultiCheckboxComponent.vue?vue&type=script&lang=ts\"\nexport * from \"./MultiCheckboxComponent.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"/opt/atlassian/pipelines/agent/build/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, vModelCheckbox as _vModelCheckbox, withModifiers as _withModifiers, createElementVNode as _createElementVNode, withDirectives as _withDirectives, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, createBlock as _createBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-7fab854e\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"value\", \"id\", \"onChange\"]\nconst _hoisted_2 = [\"for\"]\nconst _hoisted_3 = { key: 0 }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_HakoTextArea = _resolveComponent(\"HakoTextArea\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.questionData.options?.filter((x) => x.isActive), (option) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: option.id,\n class: \"form-check mb-2\"\n }, [\n _withDirectives(_createElementVNode(\"input\", {\n type: \"checkbox\",\n value: option.id,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.answerNumbers) = $event)),\n id: 'option' + option.id,\n onChange: _withModifiers(($event: any) => (_ctx.checkLimit($event, option.id!)), [\"stop\"])\n }, null, 40, _hoisted_1), [\n [_vModelCheckbox, _ctx.answerNumbers]\n ]),\n _createElementVNode(\"label\", {\n for: 'option' + option.id,\n class: \"ms-2\"\n }, _toDisplayString(option.translations?.find((x) => x.languageCode == _ctx.lang)?.text), 9, _hoisted_2),\n (option.isOtherOption && _ctx.answerDtos.map(x => x.optionId).includes(option.id!))\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_3, [\n (\n\t\t\t\t\t\t\t_ctx.answerDtos.find((x) => x.optionId == option.id)?.otherOptionText != undefined\n\t\t\t\t\t\t)\n ? (_openBlock(), _createBlock(_component_HakoTextArea, {\n key: 0,\n modelValue: _ctx.answerDtos.find((x) => x.optionId == option.id)!.otherOptionText,\n \"onUpdate:modelValue\": ($event: any) => ((_ctx.answerDtos.find((x) => x.optionId == option.id)!.otherOptionText) = $event)\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128))\n ]))\n}","\nimport {\n\tSurveyActivationDto,\n\tSurveyAnswerRowDto,\n\tSurveyAnswerRowOptionDto,\n\tSurveyQuestionDto,\n} from \"@/dto\";\nimport { defineComponent, PropType } from \"vue\";\nimport { debounce } from \"lodash\";\n\nexport default defineComponent({\n\tprops: {\n\t\tquestionData: {\n\t\t\ttype: Object as PropType,\n\t\t\trequired: true,\n\t\t},\n\n\t\tlang: {\n\t\t\ttype: String as PropType,\n\t\t\trequired: true,\n\t\t},\n\n\t\tactivations: {\n\t\t\ttype: Array as PropType,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\tanswerRow: {\n\t\t\ttype: Object as PropType,\n\t\t},\n\t},\n\n\tcreated() {\n\t\tthis.emitAnswer = debounce(this.emitAnswer, 200);\n\t},\n\n\tmounted() {\n\t\tthis.answerNumbers = this.answerRow?.multiSelectOptions\n\t\t\t? this.answerRow?.multiSelectOptions.map((x) => x.optionId)\n\t\t\t: ([] as number[]);\n\t\tthis.answerDtos = this.answerRow?.multiSelectOptions\n\t\t\t? this.answerRow?.multiSelectOptions\n\t\t\t: ([] as SurveyAnswerRowOptionDto[]);\n\n\t\tthis.answerNumbers.forEach((num) => {\n\t\t\tif (this.optionHasActivation(num)) this.updateAddedActivations(num);\n\t\t});\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tanswerNumbers: [] as number[],\n\t\t\tanswerDtos: [] as SurveyAnswerRowOptionDto[],\n\t\t\tactivatedActivations: [] as SurveyActivationDto[],\n\t\t\tuserHasEdited: false,\n\t\t};\n\t},\n\n\tmethods: {\n\t\tcheckLimit(event: Event, id: number) {\n\t\t\tthis.userHasEdited = true;\n\t\t\tlet target = event.target as HTMLInputElement;\n\n\t\t\tif (!target.checked) {\n\t\t\t\tlet removedDto = this.questionData.options!.find((x) => x.id == id);\n\t\t\t\tthis.answerDtos = this.answerDtos.filter((x) => x.optionId != removedDto!.id!);\n\n\t\t\t\tif (this.optionHasActivation(id)) this.updateRemovedActivations(id);\n\t\t\t}\n\n\t\t\tif (target.checked && this.answerNumbers.length <= this.questionData.maxOptionPicks!) {\n\t\t\t\tlet newDto = this.questionData.options!.find((x) => x.id == id);\n\t\t\t\tthis.answerDtos.push({\n\t\t\t\t\toptionId: newDto!.id!,\n\t\t\t\t\totherOptionText: \"\",\n\t\t\t\t});\n\t\t\t\tif (this.optionHasActivation(id)) {\n\t\t\t\t\tthis.updateAddedActivations(id);\n\t\t\t\t}\n\t\t\t} else this.answerNumbers = this.answerNumbers.filter((x) => x != id);\n\t\t},\n\n\t\toptionHasActivation(optionId: number) {\n\t\t\tif (!optionId) return false;\n\n\t\t\tif (this.activations && this.activations.some((x) => x.optionId == optionId)) return true;\n\n\t\t\treturn false;\n\t\t},\n\n\t\tupdateAddedActivations(optionId: number) {\n\t\t\tlet activated = this.activations.filter((x) => x.optionId == optionId);\n\t\t\tthis.activatedActivations = this.activatedActivations.concat(activated);\n\t\t},\n\n\t\tupdateRemovedActivations(optionId: number) {\n\t\t\tthis.activatedActivations = this.activatedActivations.filter(\n\t\t\t\t(x) => x.optionId != optionId\n\t\t\t);\n\t\t},\n\n\t\temitAnswer(answers: SurveyAnswerRowOptionDto[]) {\n\t\t\tif (this.userHasEdited) this.$emit(\"save\", answers);\n\t\t},\n\t},\n\n\twatch: {\n\t\tactivatedActivations(val) {\n\t\t\tthis.$emit(\"activatedActivations\", val);\n\t\t},\n\n\t\tanswerDtos: {\n\t\t\thandler(newVal) {\n\t\t\t\tthis.emitAnswer(newVal);\n\t\t\t},\n\t\t\timmediate: false,\n\t\t\tdeep: true,\n\t\t},\n\t},\n});\n","import { render } from \"./MultiLimitedComponent.vue?vue&type=template&id=7fab854e&scoped=true&ts=true\"\nimport script from \"./MultiLimitedComponent.vue?vue&type=script&lang=ts\"\nexport * from \"./MultiLimitedComponent.vue?vue&type=script&lang=ts\"\n\nimport \"./MultiLimitedComponent.vue?vue&type=style&index=0&id=7fab854e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/opt/atlassian/pipelines/agent/build/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7fab854e\"]])\n\nexport default __exports__","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, vShow as _vShow, createElementVNode as _createElementVNode, withDirectives as _withDirectives, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-7c1c8868\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"nps\" }\nconst _hoisted_2 = [\"onClick\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_1, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], (num) => {\n return (_openBlock(), _createElementBlock(_Fragment, { key: num }, [\n _withDirectives(_createElementVNode(\"div\", {\n class: \"nps-item nps-item-active\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => {\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_ctx.selected = null;\n\t\t\t\t\t\t\t_ctx.userHasAnswered = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n }, _toDisplayString(num), 513), [\n [_vShow, num == _ctx.selected]\n ]),\n _withDirectives(_createElementVNode(\"div\", {\n class: \"nps-item\",\n onClick: ($event: any) => {\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_ctx.selected = num;\n\t\t\t\t\t\t\t_ctx.userHasAnswered = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n }, _toDisplayString(num), 9, _hoisted_2), [\n [_vShow, num != _ctx.selected]\n ])\n ], 64))\n }), 64))\n ])\n ]))\n}","\nimport { SurveyActivationDto, SurveyAnswerRowDto } from \"@/dto\";\nimport { PropType, defineComponent } from \"vue\";\nimport { debounce } from \"lodash\";\n\nexport default defineComponent({\n\tprops: {\n\t\tactivations: {\n\t\t\ttype: Array as PropType,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\tanswerRow: {\n\t\t\ttype: Object as PropType,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tselected: null as number | null,\n\t\t\tuserHasAnswered: false,\n\t\t};\n\t},\n\n\tcreated() {\n\t\tthis.emitAnswer = debounce(this.emitAnswer, 200);\n\t},\n\n\tmounted() {\n\t\tthis.selected = this.answerRow?.npsValue ? this.answerRow.npsValue : null;\n\n\t\tif (this.selected) this.updateActivations(this.selected);\n\t},\n\n\tmethods: {\n\t\tupdateActivations(numericValue: number) {\n\t\t\tlet activations = this.activations.filter((x) => x.numericValue == numericValue);\n\n\t\t\tthis.$emit(\"activatedActivations\", activations);\n\t\t},\n\n\t\temitAnswer(answer: string) {\n\t\t\tif (this.userHasAnswered) this.$emit(\"save\", answer);\n\t\t},\n\t},\n\n\twatch: {\n\t\tselected: {\n\t\t\thandler(newVal, oldVal) {\n\t\t\t\tif (newVal != oldVal) {\n\t\t\t\t\tthis.updateActivations(newVal);\n\n\t\t\t\t\tthis.emitAnswer(newVal);\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t},\n});\n","import { render } from \"./NpsComponent.vue?vue&type=template&id=7c1c8868&scoped=true&ts=true\"\nimport script from \"./NpsComponent.vue?vue&type=script&lang=ts\"\nexport * from \"./NpsComponent.vue?vue&type=script&lang=ts\"\n\nimport \"./NpsComponent.vue?vue&type=style&index=0&id=7c1c8868&lang=scss&scoped=true\"\n\nimport exportComponent from \"/opt/atlassian/pipelines/agent/build/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7c1c8868\"]])\n\nexport default __exports__","import { createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-519a852d\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"table table-striped scoring-table\" }\nconst _hoisted_2 = [\"colspan\"]\nconst _hoisted_3 = { key: 0 }\nconst _hoisted_4 = { key: 0 }\nconst _hoisted_5 = [\"colspan\"]\nconst _hoisted_6 = [\"onClick\"]\nconst _hoisted_7 = [\"onClick\"]\nconst _hoisted_8 = { key: 0 }\nconst _hoisted_9 = [\"onClick\"]\nconst _hoisted_10 = [\"onClick\"]\nconst _hoisted_11 = { key: 0 }\nconst _hoisted_12 = {\n colspan: \"12\",\n style: {\"text-align\":\"end\"}\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_HakoBsIcon = _resolveComponent(\"HakoBsIcon\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createElementVNode(\"table\", _hoisted_1, [\n _createElementVNode(\"thead\", null, [\n _createElementVNode(\"tr\", null, [\n _createElementVNode(\"td\", {\n colspan: 12 - _ctx.cPointsScaleSize\n }, null, 8, _hoisted_2),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.cPoints, (point) => {\n return (_openBlock(), _createElementBlock(\"td\", { key: point }, _toDisplayString(point), 1))\n }), 128)),\n (_ctx.questionData.showNoAnswerOption)\n ? (_openBlock(), _createElementBlock(\"td\", _hoisted_3, [\n _createTextVNode(\" -\"),\n (_ctx.cHasNoAnswerText)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_4, \"*\"))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"tbody\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.answers, (row, index) => {\n return (_openBlock(), _createElementBlock(\"tr\", {\n key: 'row' + index\n }, [\n _createElementVNode(\"td\", {\n colspan: 12 - _ctx.cPointsScaleSize,\n class: \"align-left\"\n }, _toDisplayString(row.scorable!.translations!.find((x) => x.languageCode == _ctx.lang)?.text), 9, _hoisted_5),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.cPoints, (point) => {\n return (_openBlock(), _createElementBlock(\"td\", { key: point }, [\n _withDirectives(_createElementVNode(\"span\", {\n class: \"item item-active\",\n onClick: ($event: any) => {\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trow.points = undefined;\n\t\t\t\t\t\t\t\t\trow.pointsNoAnswer = false;\n\t\t\t\t\t\t\t\t\t_ctx.userHasAnswered = true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n }, [\n _createVNode(_component_HakoBsIcon, {\n icon: \"check-circle-fill\",\n theme: \"success\"\n })\n ], 8, _hoisted_6), [\n [_vShow, point == row.points]\n ]),\n _withDirectives(_createElementVNode(\"span\", {\n class: \"item\",\n onClick: ($event: any) => {\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trow.points = point;\n\t\t\t\t\t\t\t\t\trow.pointsNoAnswer = false;\n\t\t\t\t\t\t\t\t\t_ctx.userHasAnswered = true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n }, [\n _createVNode(_component_HakoBsIcon, {\n icon: \"circle\",\n theme: \"secondary\"\n })\n ], 8, _hoisted_7), [\n [_vShow, point != row.points]\n ])\n ]))\n }), 128)),\n (_ctx.questionData.showNoAnswerOption)\n ? (_openBlock(), _createElementBlock(\"td\", _hoisted_8, [\n _withDirectives(_createElementVNode(\"span\", {\n class: \"item item-active\",\n onClick: ($event: any) => {\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trow.points = undefined;\n\t\t\t\t\t\t\t\t\trow.pointsNoAnswer = false;\n\t\t\t\t\t\t\t\t\t_ctx.userHasAnswered = true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n }, [\n _createVNode(_component_HakoBsIcon, {\n icon: \"check-circle-fill\",\n theme: \"success\"\n })\n ], 8, _hoisted_9), [\n [_vShow, row.pointsNoAnswer == true]\n ]),\n _withDirectives(_createElementVNode(\"span\", {\n class: \"item\",\n onClick: ($event: any) => {\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trow.points = undefined;\n\t\t\t\t\t\t\t\t\trow.pointsNoAnswer = true;\n\t\t\t\t\t\t\t\t\t_ctx.userHasAnswered = true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n }, [\n _createVNode(_component_HakoBsIcon, {\n icon: \"circle\",\n theme: \"secondary\"\n })\n ], 8, _hoisted_10), [\n [_vShow, row.pointsNoAnswer == false]\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128)),\n (_ctx.cHasNoAnswerText)\n ? (_openBlock(), _createElementBlock(\"tr\", _hoisted_11, [\n _createElementVNode(\"td\", _hoisted_12, \" * \" + _toDisplayString(_ctx.questionData.translations.find((x) => x.languageCode == _ctx.lang)?.noAnswerText), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]))\n}","\nimport {\n\tSurveyAnswerRowDto,\n\tSurveyAnswerRowScoreDto,\n\tSurveyQuestionDto,\n\tSurveyQuestionTranslationDto,\n} from \"@/dto\";\nimport { debounce } from \"lodash\";\nimport { defineComponent, PropType } from \"vue\";\n\nexport default defineComponent({\n\tprops: {\n\t\tquestionData: {\n\t\t\ttype: Object as PropType,\n\t\t\trequired: true,\n\t\t},\n\n\t\tlang: {\n\t\t\ttype: String as PropType,\n\t\t\trequired: true,\n\t\t},\n\n\t\tanswerRow: {\n\t\t\ttype: Object as PropType,\n\t\t},\n\t},\n\n\tcreated() {\n\t\tthis.emitAnswer = debounce(this.emitAnswer, 200);\n\t},\n\n\tmounted() {\n\t\tthis.setupThings();\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tanswers: [] as SurveyAnswerRowScoreDto[],\n\t\t\tuserHasAnswered: false,\n\t\t};\n\t},\n\n\tcomputed: {\n\t\tcPointsScaleSize(): number {\n\t\t\tif (!this.questionData) return 0;\n\n\t\t\tif (this.questionData.pointsMax && this.questionData.pointsMin) {\n\t\t\t\tlet size = this.questionData.pointsMax! - this.questionData.pointsMin! + 1;\n\t\t\t\tif (this.questionData.showNoAnswerOption) size++;\n\t\t\t\treturn size <= 10 ? size : 10;\n\t\t\t}\n\n\t\t\treturn 0;\n\t\t},\n\n\t\tcPoints(): number[] {\n\t\t\tlet arr = [];\n\t\t\tif (this.questionData.scoringIsReversed) {\n\t\t\t\tfor (let i = this.questionData.pointsMax!; i >= this.questionData.pointsMin!; i--) {\n\t\t\t\t\tarr.push(i);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (let i = this.questionData.pointsMin!; i <= this.questionData.pointsMax!; i++) {\n\t\t\t\t\tarr.push(i);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn arr;\n\t\t},\n\n\t\tcHasNoAnswerText(): boolean {\n\t\t\treturn !!this.questionData.translations.find(\n\t\t\t\t(x: SurveyQuestionTranslationDto) => x.languageCode == this.lang\n\t\t\t)?.noAnswerText;\n\t\t},\n\t},\n\n\tmethods: {\n\t\tsetupThings() {\n\t\t\tthis.questionData.scorables\n\t\t\t\t?.filter((x) => x.isActive)\n\t\t\t\t.forEach((x) => {\n\t\t\t\t\tthis.answers.push({\n\t\t\t\t\t\tscorableId: x.id!,\n\t\t\t\t\t\tscorable: x,\n\t\t\t\t\t\tpoints:\n\t\t\t\t\t\t\tthis.answerRow?.scores?.find((y) => y.scorableId == x.id)?.points ?? undefined,\n\t\t\t\t\t\tpointsNoAnswer:\n\t\t\t\t\t\t\tthis.answerRow?.scores?.find((y) => y.scorableId == x.id)?.pointsNoAnswer ??\n\t\t\t\t\t\t\tfalse,\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t},\n\n\t\temitAnswer(answers: SurveyAnswerRowScoreDto[]) {\n\t\t\tlet nonEmptyAnswers = answers.filter((x) => x.points != null || x.pointsNoAnswer);\n\t\t\tif (this.userHasAnswered) this.$emit(\"save\", nonEmptyAnswers);\n\t\t},\n\t},\n\n\twatch: {\n\t\tanswers: {\n\t\t\thandler(newVal) {\n\t\t\t\tthis.emitAnswer(newVal);\n\t\t\t},\n\t\t\timmediate: false,\n\t\t\tdeep: true,\n\t\t},\n\t},\n});\n","import { render } from \"./ScoreComponent.vue?vue&type=template&id=519a852d&scoped=true&ts=true\"\nimport script from \"./ScoreComponent.vue?vue&type=script&lang=ts\"\nexport * from \"./ScoreComponent.vue?vue&type=script&lang=ts\"\n\nimport \"./ScoreComponent.vue?vue&type=style&index=0&id=519a852d&lang=scss&scoped=true\"\n\nimport exportComponent from \"/opt/atlassian/pipelines/agent/build/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-519a852d\"]])\n\nexport default __exports__","import { SurveyAnswerDto } from \"@/dto\";\nimport { createStore } from \"vuex\";\n\nexport default createStore({\n\tstate: () => ({\n\t\ttestAnswer: null as SurveyAnswerDto | null,\n\t}),\n\tgetters: {\n\t\tgetTestAnswer(state) {\n\t\t\treturn state.testAnswer;\n\t\t},\n\t},\n\tmutations: {\n\t\tsetTestAnswer(state, answer: SurveyAnswerDto) {\n\t\t\tstate.testAnswer = answer;\n\t\t},\n\t},\n\tactions: {},\n\tmodules: {},\n});\n","\nimport { defineComponent, ref, onBeforeMount, computed } from \"vue\";\nimport {\n\tSurveyActivationDto,\n\tSurveyAnswerDto,\n\tSurveyAnswerRowDto,\n\tSurveyDto,\n\tSurveyPageDto,\n\tSurveyQuestionDto,\n\tSurveyQuestionTypeDto,\n} from \"@/dto\";\nimport axios from \"axios\";\nimport SurveyHeader from \"@/components/SurveyHeader.vue\";\nimport { i18n } from \"@/i18n\";\nimport { useRoute, useRouter } from \"vue-router\";\nimport SingleDropdownComponent from \"@/components/ComponentsByType/SingleDropdownComponent.vue\";\nimport SingleRadioComponent from \"@/components/ComponentsByType/SingleRadioComponent.vue\";\nimport SmileyComponent from \"@/components/ComponentsByType/SmileyComponent.vue\";\nimport TextMultiComponent from \"@/components/ComponentsByType/TextMultiComponent.vue\";\nimport TextSingleComponent from \"@/components/ComponentsByType/TextSingleComponent.vue\";\nimport MultiCheckboxComponent from \"@/components/ComponentsByType/MultiCheckboxComponent.vue\";\nimport MultiLimitedComponent from \"@/components/ComponentsByType/MultiLimitedComponent.vue\";\nimport NpsComponent from \"@/components/ComponentsByType/NpsComponent.vue\";\nimport ScoreComponent from \"@/components/ComponentsByType/ScoreComponent.vue\";\nimport store from \"@/store\";\nimport { sortBy } from \"lodash\";\n\nexport default defineComponent({\n\tsetup() {\n\t\tconst route = useRoute();\n\t\tconst router = useRouter();\n\n\t\tonBeforeMount(async () => {\n\t\t\t// await getFirstPageText();\n\t\t\tawait getSurvey();\n\t\t\tsetLanguage();\n\t\t});\n\n\t\tconst survey = ref(null);\n\t\t// const firstPageTexts = ref([]);\n\t\tconst currentPage = ref(1);\n\t\tconst currentPageId = ref(null);\n\t\tconst activations = ref([]);\n\t\tconst slideDirClass = ref(\"next-page-fade\");\n\t\tconst activatedActivations = ref([]);\n\t\tconst loading = ref(true);\n\t\tconst answerDto = ref(null);\n\t\tconst langFromUrl = ref<\"fi\" | \"sv\" | \"en\" | undefined>(undefined);\n\t\tconst invalidCode = ref(false);\n\n\t\tconst cPageAmount = computed(() => {\n\t\t\tif (cPages.value.length > 1) return cPages.value.length;\n\n\t\t\treturn 1;\n\t\t});\n\n\t\tconst cPageIndicatorColor = computed(() => {\n\t\t\tif (survey.value && survey.value.pageIndicatorColor)\n\t\t\t\treturn survey.value.pageIndicatorColor;\n\n\t\t\treturn \"#000000\";\n\t\t});\n\n\t\tconst cPages = computed((): SurveyPageDto[] => {\n\t\t\tif (!survey.value?.pages) return [];\n\n\t\t\tlet activePages = survey.value.pages.filter((x) => checkIfPageActivated(x.id!));\n\n\t\t\tlet sortedPages = sortBy(activePages, (x) => x.order);\n\n\t\t\treturn sortedPages;\n\t\t});\n\n\t\tconst cIsTestAnswer = computed((): boolean => {\n\t\t\tif (route.params[\"code\"].length == 15) return true;\n\n\t\t\treturn false;\n\t\t});\n\n\t\tconst surveyName = (survey: SurveyDto | null) => {\n\t\t\tif (!survey) return \"\";\n\n\t\t\tlet found = \"\" as string | null | undefined;\n\t\t\t[i18n.global.locale, \"fi\", \"sv\", \"en\"].forEach((lang) => {\n\t\t\t\tif (!found && survey?.translations.some((x) => x.languageCode == lang))\n\t\t\t\t\tfound = survey!.translations.find((x) => x.languageCode == lang)?.name;\n\t\t\t});\n\n\t\t\treturn found ? found : \"\";\n\t\t};\n\n\t\t// const getFirstPageText = async () => {\n\t\t// \tconst code = route.params[\"code\"];\n\n\t\t// \ttry {\n\t\t// \t\tconst response = await axios.get(\n\t\t// \t\t\t`survey/FirstPageText/${code}`,\n\t\t// \t\t\t{\n\t\t// \t\t\t\theaders: {\n\t\t// \t\t\t\t\torganization: route.params[\"org\"],\n\t\t// \t\t\t\t},\n\t\t// \t\t\t}\n\t\t// \t\t);\n\t\t// \t\tfirstPageTexts.value = response.data;\n\t\t// \t} catch (ex: unknown) {\n\t\t// \t\tconsole.log(ex);\n\t\t// \t\tinvalidCode.value = true;\n\t\t// \t\tloading.value = false;\n\t\t// \t}\n\t\t// };\n\n\t\tconst getSurvey = async () => {\n\t\t\tconst code = route.params[\"code\"];\n\n\t\t\ttry {\n\t\t\t\tconst response = await axios.get<{ answer: SurveyAnswerDto; survey: SurveyDto }>(\n\t\t\t\t\t`survey/${code}`,\n\t\t\t\t\t{\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\torganization: route.params[\"org\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t\tsurvey.value = response.data.survey;\n\t\t\t\tanswerDto.value = response.data.answer;\n\t\t\t\tawait formatAnswerDto();\n\n\t\t\t\tif (survey.value.id) {\n\t\t\t\t\tcurrentPageId.value = survey.value?.pages ? survey.value.pages[0].id : null;\n\t\t\t\t\tawait getActivations(survey.value.id);\n\t\t\t\t}\n\t\t\t} catch (ex: unknown) {\n\t\t\t\tconsole.log(ex);\n\t\t\t\tinvalidCode.value = true;\n\t\t\t\tloading.value = false;\n\t\t\t}\n\t\t};\n\n\t\tconst getActivations = async (surveyId: number) => {\n\t\t\ttry {\n\t\t\t\tconst response = await axios.get(\n\t\t\t\t\t`survey/activations/${surveyId}`,\n\t\t\t\t\t{\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\torganization: route.params[\"org\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t\tactivations.value = response.data;\n\t\t\t} catch (ex: unknown) {\n\t\t\t\tconsole.log(\"Problem loading activations\");\n\t\t\t} finally {\n\t\t\t\tloading.value = false;\n\t\t\t}\n\t\t};\n\n\t\tconst getTextInCurrLang = (translations: any[], key: string) => {\n\t\t\tif (!translations) return \"\";\n\n\t\t\tlet found = translations.find((x) => x.languageCode == i18n.global.locale);\n\n\t\t\tif (found) return found[key] || \"\";\n\n\t\t\treturn \"\";\n\t\t};\n\n\t\tconst getComponentName = (questionTypeId: number): string => {\n\t\t\tlet componentMap = new Map([\n\t\t\t\t[1, \"SingleRadioComponent\"],\n\t\t\t\t[2, \"MultiCheckboxComponent\"],\n\t\t\t\t[3, \"TextMultiComponent\"],\n\t\t\t\t[4, \"ScoreComponent\"],\n\t\t\t\t[5, \"SingleDropdownComponent\"],\n\t\t\t\t[7, \"TextSingleComponent\"],\n\t\t\t\t[8, \"SmileyComponent\"],\n\t\t\t\t[9, \"NpsComponent\"],\n\t\t\t\t[10, \"MultiLimitedComponent\"],\n\t\t\t]);\n\n\t\t\treturn componentMap.get(questionTypeId) || \"\";\n\t\t};\n\n\t\tconst showPage = (page: SurveyPageDto): boolean => {\n\t\t\tif (page?.id && currentPageId.value == page.id && checkIfPageActivated(page.id))\n\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t};\n\n\t\tconst previousPage = (index: number) => {\n\t\t\tslideDirClass.value = \"prev-page-fade\";\n\t\t\tcurrentPageId.value = cPages.value[index - 1].id;\n\t\t\tcurrentPage.value--;\n\t\t};\n\n\t\tconst nextPage = async (index: number) => {\n\t\t\tif (!validateAnswers()) return;\n\n\t\t\tslideDirClass.value = \"next-page-fade\";\n\t\t\tcurrentPageId.value = cPages.value[index + 1].id;\n\t\t\tcurrentPage.value++;\n\t\t};\n\n\t\tconst finished = async () => {\n\t\t\tif (cIsTestAnswer.value) {\n\t\t\t\tif (!validateAnswers()) return;\n\n\t\t\t\tstore.commit(\"setTestAnswer\", answerDto.value);\n\n\t\t\t\trouter.push({\n\t\t\t\t\tname: \"thankYou\",\n\t\t\t\t\tparams: { lang: langFromUrl.value },\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (!answerDto.value?.id) await createNewAnswer();\n\n\t\t\ttry {\n\t\t\t\tconst response = await axios.post(\n\t\t\t\t\t`survey/FinishAnswer/${answerDto.value!.id}`,\n\t\t\t\t\tnull,\n\t\t\t\t\t{\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\torganization: route.params[\"org\"],\n\t\t\t\t\t\t\tcode: answerDto.value?.uniqueCode,\n\t\t\t\t\t\t},\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t\tif (response?.data) {\n\t\t\t\t\trouter.push({\n\t\t\t\t\t\tname: \"thankYou\",\n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\torg: route.params[\"org\"],\n\t\t\t\t\t\t\tcode: route.params[\"code\"],\n\t\t\t\t\t\t\tlang: langFromUrl.value,\n\t\t\t\t\t\t},\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} catch (ex: unknown) {\n\t\t\t\tconsole.log(ex);\n\t\t\t}\n\t\t};\n\n\t\tconst updateActivatedActivations = (list: SurveyActivationDto[], questionId: number) => {\n\t\t\tactivatedActivations.value = activatedActivations.value.filter(\n\t\t\t\t(x) => !(x.activatingQuestionId == questionId || x.option?.questionId == questionId)\n\t\t\t);\n\t\t\tactivatedActivations.value = activatedActivations.value.concat(list);\n\t\t};\n\n\t\tconst checkIfPageActivated = (pageId: number) => {\n\t\t\t// If requires activation but no activation yet activates it\n\t\t\tif (\n\t\t\t\tactivations.value.some((x) => x.activatesPageId == pageId) &&\n\t\t\t\t!activatedActivations.value.some((x) => x.activatesPageId == pageId)\n\t\t\t)\n\t\t\t\treturn false;\n\n\t\t\treturn true;\n\t\t};\n\n\t\tconst checkIfQuestionActivated = (questionId: number) => {\n\t\t\t// If requires activation but no activation yet activates it\n\t\t\tif (\n\t\t\t\tactivations.value.some((x) => x.activatesQuestionId == questionId) &&\n\t\t\t\t!activatedActivations.value.some((x) => x.activatesQuestionId == questionId)\n\t\t\t)\n\t\t\t\treturn false;\n\n\t\t\treturn true;\n\t\t};\n\n\t\tconst saveAnswerRow = async (question: SurveyQuestionDto, answer: any) => {\n\t\t\tif (!answerDto.value?.id && !cIsTestAnswer.value) await createNewAnswer();\n\n\t\t\tlet deleteAnswerRow = false;\n\n\t\t\tlet answerRow = answerDto.value!.answerRows!.find((x) => x.questionId == question.id)!;\n\t\t\tanswerRow.answerId = answerDto.value!.id;\n\n\t\t\tif (\n\t\t\t\tquestion.type?.technicalName == \"textSingle\" ||\n\t\t\t\tquestion.type?.technicalName == \"textMulti\"\n\t\t\t) {\n\t\t\t\tif (answer.trim() == \"\") deleteAnswerRow = true;\n\n\t\t\t\tanswerRow.answerText = answer;\n\t\t\t} else if (question.type?.technicalName == \"smiley\") {\n\t\t\t\tif (answer == null) deleteAnswerRow = true;\n\n\t\t\t\tanswerRow.smileyValue = answer;\n\t\t\t} else if (question.type?.technicalName == \"nps\") {\n\t\t\t\tif (answer == null) deleteAnswerRow = true;\n\n\t\t\t\tanswerRow.npsValue = answer;\n\t\t\t} else if (\n\t\t\t\tquestion.type?.technicalName == \"singleRadio\" ||\n\t\t\t\tquestion.type?.technicalName == \"singleDropdown\"\n\t\t\t) {\n\t\t\t\tif (answer == null) deleteAnswerRow = true;\n\n\t\t\t\tanswerRow.optionId = answer?.optionId ?? null;\n\t\t\t\tanswerRow.optionManualAnswer = answer?.optionManualAnswer ?? null;\n\t\t\t} else if (\n\t\t\t\tquestion.type?.technicalName == \"multiLimited\" ||\n\t\t\t\tquestion.type?.technicalName == \"multiCheckbox\"\n\t\t\t) {\n\t\t\t\tif (answer.length == 0) deleteAnswerRow = true;\n\n\t\t\t\tanswerRow.multiSelectOptions = answer;\n\t\t\t} else if (question.type?.technicalName == \"score\") {\n\t\t\t\tif (answer.length == 0) deleteAnswerRow = true;\n\n\t\t\t\tanswerRow.scores = answer;\n\t\t\t}\n\n\t\t\tif (deleteAnswerRow && !answerRow.commentText) {\n\t\t\t\tanswerRow = {\n\t\t\t\t\tanswerId: answerDto.value?.id,\n\t\t\t\t\tquestionId: question.id,\n\t\t\t\t} as SurveyAnswerRowDto;\n\t\t\t} else {\n\t\t\t\tdeleteAnswerRow = false;\n\t\t\t}\n\n\t\t\tif (!cIsTestAnswer.value) {\n\t\t\t\ttry {\n\t\t\t\t\tconst response = deleteAnswerRow\n\t\t\t\t\t\t? await axios.post(`survey/DeleteQuestionAnswer`, answerRow, {\n\t\t\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t\t\torganization: route.params[\"org\"],\n\t\t\t\t\t\t\t\t\tcode: answerDto.value?.uniqueCode,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t })\n\t\t\t\t\t\t: await axios.post(`survey/SaveQuestionAnswer`, answerRow, {\n\t\t\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t\t\torganization: route.params[\"org\"],\n\t\t\t\t\t\t\t\t\tcode: answerDto.value?.uniqueCode,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t });\n\t\t\t\t\tif (response?.data) console.log(\"Question answer saved\");\n\t\t\t\t} catch (ex: unknown) {\n\t\t\t\t\tconsole.log(ex);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tconst createNewAnswer = async () => {\n\t\t\ttry {\n\t\t\t\tconst response = await axios.post(\n\t\t\t\t\t`survey/NewAnswer/${survey.value!.id}`,\n\t\t\t\t\tnull,\n\t\t\t\t\t{\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\torganization: route.params[\"org\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t\tif (!answerDto.value) answerDto.value = response.data;\n\t\t\t\telse {\n\t\t\t\t\tanswerDto.value.id = response.data.id;\n\t\t\t\t\tanswerDto.value.uniqueCode = response.data.uniqueCode;\n\t\t\t\t}\n\t\t\t\trouter.push({\n\t\t\t\t\tname: \"survey\",\n\t\t\t\t\tparams: {\n\t\t\t\t\t\torg: route.params[\"org\"],\n\t\t\t\t\t\tcode: answerDto.value.uniqueCode,\n\t\t\t\t\t\tlang: langFromUrl.value,\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t} catch (ex: unknown) {\n\t\t\t\tconsole.log(ex);\n\t\t\t}\n\t\t};\n\n\t\tconst formatAnswerDto = async () => {\n\t\t\tif (!answerDto.value)\n\t\t\t\tanswerDto.value = {\n\t\t\t\t\tid: 0,\n\t\t\t\t\tsurveyId: survey.value?.id,\n\t\t\t\t\tanswerRows: [] as SurveyAnswerRowDto[],\n\t\t\t\t} as SurveyAnswerDto;\n\n\t\t\tsurvey.value?.pages?.forEach((page) => {\n\t\t\t\tpage.questions?.forEach((question) => {\n\t\t\t\t\tif (!answerDto.value!.answerRows!.some((x) => x.questionId == question.id)) {\n\t\t\t\t\t\tanswerDto.value!.answerRows!.push({\n\t\t\t\t\t\t\tquestionId: question.id,\n\t\t\t\t\t\t} as SurveyAnswerRowDto);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t};\n\n\t\tconst saveComment = async (questionId: number) => {\n\t\t\tif (cIsTestAnswer.value) return;\n\n\t\t\tif (!answerDto.value?.id) await createNewAnswer();\n\n\t\t\tlet answerRow = {\n\t\t\t\tanswerId: answerDto.value?.id,\n\t\t\t\tquestionId: questionId,\n\t\t\t\tcommentText: answerDto.value!.answerRows!.find((x) => x.questionId == questionId)!\n\t\t\t\t\t.commentText,\n\t\t\t} as SurveyAnswerRowDto;\n\n\t\t\ttry {\n\t\t\t\tconst response = await axios.post(`survey/SaveQuestionComment`, answerRow, {\n\t\t\t\t\theaders: {\n\t\t\t\t\t\torganization: route.params[\"org\"],\n\t\t\t\t\t\tcode: answerDto.value?.uniqueCode,\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t\tif (response?.data) console.log(\"Question comment saved\");\n\t\t\t} catch (ex: unknown) {\n\t\t\t\tconsole.log(ex);\n\t\t\t}\n\t\t};\n\n\t\tconst validateAnswers = () => {\n\t\t\tlet shownQuestions = cPages.value\n\t\t\t\t.find((x) => x.id == currentPageId.value)!\n\t\t\t\t.questions!.filter((y) => checkIfQuestionActivated(y.id!));\n\n\t\t\tlet requiredQuestions = shownQuestions?.filter((x) => x.isRequired);\n\n\t\t\tif (requiredQuestions.length == 0) return true;\n\n\t\t\tlet answerRows = answerDto.value!.answerRows?.filter((x) =>\n\t\t\t\trequiredQuestions.map((y) => y.id!).includes(x.questionId)\n\t\t\t);\n\n\t\t\treturn questionsAreAnswered(answerRows!);\n\t\t};\n\n\t\tconst questionsAreAnswered = (answerRows: SurveyAnswerRowDto[]) => {\n\t\t\tlet valid = true;\n\t\t\tanswerRows.forEach((row) => {\n\t\t\t\tif (valid) {\n\t\t\t\t\tlet rowValid = false;\n\t\t\t\t\tif (row.answerText) rowValid = true;\n\t\t\t\t\tif (row.optionId) rowValid = true;\n\t\t\t\t\tif (row.smileyValue) rowValid = true;\n\t\t\t\t\tif (row.npsValue) rowValid = true;\n\t\t\t\t\tif (row.multiSelectOptions && row.multiSelectOptions?.length > 0) rowValid = true;\n\t\t\t\t\tif (row.scores && row.scores.some((x) => x.points || x.pointsNoAnswer))\n\t\t\t\t\t\trowValid = true;\n\n\t\t\t\t\tvalid = rowValid;\n\n\t\t\t\t\tif (!valid) {\n\t\t\t\t\t\tlet el = document.getElementById(\"question\" + row.questionId)!;\n\n\t\t\t\t\t\tel.scrollIntoView({ block: \"center\", behavior: \"smooth\" });\n\n\t\t\t\t\t\tsetTimeout(() => el.classList.toggle(\"error\"), 500);\n\n\t\t\t\t\t\tsetTimeout(() => el.classList.toggle(\"error\"), 1500);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn valid;\n\t\t};\n\n\t\tconst setLanguage = () => {\n\t\t\tlet lang = route.params[\"lang\"] as \"fi\" | \"sv\" | \"en\" | undefined;\n\t\t\tif (lang && [\"fi\", \"sv\", \"en\"].includes(lang)) langFromUrl.value = lang;\n\t\t\telse {\n\t\t\t\t([\"fi\", \"sv\", \"en\"] as (\"fi\" | \"sv\" | \"en\")[]).forEach((x) => {\n\t\t\t\t\tif (!lang && survey.value?.languages?.map((y) => y.code).includes(x)) lang = x;\n\t\t\t\t});\n\t\t\t\tlangFromUrl.value = lang;\n\t\t\t}\n\t\t};\n\n\t\tconst isAnswerType = (type: SurveyQuestionTypeDto | undefined) => {\n\t\t\tif (!type) return false;\n\n\t\t\treturn type.id > 0;\n\t\t};\n\n\t\treturn {\n\t\t\tloading,\n\t\t\tsurvey,\n\t\t\t// firstPageTexts,\n\t\t\tcurrentPage,\n\t\t\tcurrentPageId,\n\t\t\tslideDirClass,\n\t\t\tactivations,\n\t\t\tactivatedActivations,\n\t\t\tanswerDto,\n\t\t\tlangFromUrl,\n\t\t\tinvalidCode,\n\t\t\tcPageAmount,\n\t\t\tcPageIndicatorColor,\n\t\t\tcPages,\n\t\t\tcIsTestAnswer,\n\t\t\t// cIngress,\n\t\t\tsurveyName,\n\t\t\tgetTextInCurrLang,\n\t\t\tgetComponentName,\n\t\t\tshowPage,\n\t\t\tpreviousPage,\n\t\t\tnextPage,\n\t\t\tfinished,\n\t\t\tupdateActivatedActivations,\n\t\t\tcheckIfQuestionActivated,\n\t\t\tsaveAnswerRow,\n\t\t\tsaveComment,\n\t\t\tsetLanguage,\n\t\t\tisAnswerType,\n\t\t};\n\t},\n\n\tcomponents: {\n\t\tSurveyHeader,\n\t\tSingleRadioComponent,\n\t\tNpsComponent,\n\t\tMultiLimitedComponent,\n\t\tTextSingleComponent,\n\t\tMultiCheckboxComponent,\n\t\tTextMultiComponent,\n\t\tSmileyComponent,\n\t\tSingleDropdownComponent,\n\t\tScoreComponent,\n\t},\n});\n","import { render } from \"./SurveyView.vue?vue&type=template&id=983d252e&scoped=true&ts=true\"\nimport script from \"./SurveyView.vue?vue&type=script&lang=ts\"\nexport * from \"./SurveyView.vue?vue&type=script&lang=ts\"\n\nimport \"./SurveyView.vue?vue&type=style&index=0&id=983d252e&scoped=true&lang=scss\"\n\nimport exportComponent from \"/opt/atlassian/pipelines/agent/build/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-983d252e\"]])\n\nexport default __exports__","import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-4cc85bd0\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"container\" }\nconst _hoisted_2 = {\n key: 1,\n class: \"thank-you\"\n}\nconst _hoisted_3 = { class: \"title\" }\nconst _hoisted_4 = {\n key: 0,\n class: \"mt-3\",\n style: {\"white-space\":\"pre-wrap\"}\n}\nconst _hoisted_5 = {\n key: 1,\n class: \"mt-5\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_HakoSpinner = _resolveComponent(\"HakoSpinner\")!\n const _component_HakoButton = _resolveComponent(\"HakoButton\")!\n const _component_HakoContentBlock = _resolveComponent(\"HakoContentBlock\")!\n const _component_SurveyAnswer = _resolveComponent(\"SurveyAnswer\")!\n const _component_HakoModal = _resolveComponent(\"HakoModal\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_HakoContentBlock, {\n noHeader: true,\n class: \"mt-5\"\n }, {\n default: _withCtx(() => [\n (_ctx.loading)\n ? (_openBlock(), _createBlock(_component_HakoSpinner, { key: 0 }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, _toDisplayString(_ctx.thankYouTitle ? _ctx.thankYouTitle : _ctx.$t(\"thankYouForAnswering\") + \"!\"), 1),\n (_ctx.thankYouText)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, _toDisplayString(_ctx.thankYouText), 1))\n : _createCommentVNode(\"\", true),\n (_ctx.showAnswers)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", null, _toDisplayString(_ctx.$t(\"answerSummary\")), 1),\n _createVNode(_component_HakoButton, {\n class: \"mt-3\",\n theme: \"primary\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.showAnswersModal = true))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"showAnswers\")), 1)\n ]),\n _: 1\n })\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n ]),\n _: 1\n }),\n _createVNode(_component_HakoModal, {\n modelValue: _ctx.showAnswersModal,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.showAnswersModal) = $event)),\n title: _ctx.$t('answerSummary'),\n noCloseButton: \"\"\n }, {\n \"modal-buttons\": _withCtx(() => [\n _createVNode(_component_HakoButton, {\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.showAnswersModal = false)),\n theme: \"secondary\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"close\")), 1)\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createVNode(_component_SurveyAnswer, {\n onClose: _cache[2] || (_cache[2] = ($event: any) => (_ctx.showAnswersModal = false)),\n code: (_ctx.$route.params['code'] as string),\n org: (_ctx.$route.params['org'] as string)\n }, null, 8, [\"code\", \"org\"])\n ]),\n _: 1\n }, 8, [\"modelValue\", \"title\"])\n ]))\n}","import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createVNode as _createVNode, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-108f4a78\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { key: 1 }\nconst _hoisted_2 = { class: \"question\" }\nconst _hoisted_3 = { class: \"description\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_HakoSpinner = _resolveComponent(\"HakoSpinner\")!\n const _component_AnswerForSingleQuestion = _resolveComponent(\"AnswerForSingleQuestion\")!\n const _component_HakoContentBlock = _resolveComponent(\"HakoContentBlock\")!\n\n return (_ctx.loading)\n ? (_openBlock(), _createBlock(_component_HakoSpinner, { key: 0 }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.answer.survey?.pages, (page) => {\n return (_openBlock(), _createElementBlock(_Fragment, {\n key: page.id\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(page.questions, (question) => {\n return (_openBlock(), _createElementBlock(_Fragment, {\n key: question.id!\n }, [\n (_ctx.questionWasAnswered(question.id!))\n ? (_openBlock(), _createBlock(_component_HakoContentBlock, {\n key: 0,\n \"no-header\": true\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, _toDisplayString(_ctx.questionTitle(question.translations)), 1),\n _createElementVNode(\"div\", _hoisted_3, _toDisplayString(_ctx.questionDescription(question.translations)), 1),\n _createVNode(_component_AnswerForSingleQuestion, {\n answerRow: _ctx.answer.answerRows?.find((x) => x.questionId == question.id),\n question: question\n }, null, 8, [\"answerRow\", \"question\"])\n ]),\n _: 2\n }, 1024))\n : _createCommentVNode(\"\", true)\n ], 64))\n }), 128))\n ], 64))\n }), 128))\n ]))\n}","import { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-05af7b79\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = {\n key: 0,\n class: \"selectedAnswer p-1\"\n}\nconst _hoisted_3 = { key: 1 }\nconst _hoisted_4 = {\n key: 0,\n style: {\"white-space\":\"pre-wrap\"}\n}\nconst _hoisted_5 = { key: 2 }\nconst _hoisted_6 = { class: \"table table-striped scoring-table\" }\nconst _hoisted_7 = [\"colspan\"]\nconst _hoisted_8 = { key: 0 }\nconst _hoisted_9 = { key: 0 }\nconst _hoisted_10 = [\"colspan\"]\nconst _hoisted_11 = { key: 0 }\nconst _hoisted_12 = { key: 0 }\nconst _hoisted_13 = {\n colspan: \"12\",\n style: {\"text-align\":\"end\"}\n}\nconst _hoisted_14 = { key: 3 }\nconst _hoisted_15 = [\"src\", \"alt\"]\nconst _hoisted_16 = {\n key: 4,\n class: \"nps\"\n}\nconst _hoisted_17 = {\n key: 5,\n class: \"mt-2\"\n}\nconst _hoisted_18 = {\n key: 0,\n class: \"selectedAnswer\"\n}\nconst _hoisted_19 = { key: 1 }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_HakoBsIcon = _resolveComponent(\"HakoBsIcon\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n (\n\t\t\t\t_ctx.question.type!.technicalName == 'textSingle' ||\n\t\t\t\t_ctx.question.type!.technicalName == 'textMulti'\n\t\t\t)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_ctx.answerRow?.answerText)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, _toDisplayString(_ctx.answerRow?.answerText), 1))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.isOptionType(_ctx.question.type!.technicalName))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.question.options?.filter((x) => x.isActive), (option) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: option.id!,\n class: _normalizeClass([\"mb-1 p-1\", { 'selectedAnswer': _ctx.isAnswered(option.id!) }])\n }, [\n _createTextVNode(_toDisplayString(_ctx.optionName(option.translations!)) + \" \", 1),\n (_ctx.textAnswer(option.id))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, _toDisplayString(_ctx.textAnswer(option.id)), 1))\n : _createCommentVNode(\"\", true)\n ], 2))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.question.type!.technicalName == 'score')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"table\", _hoisted_6, [\n _createElementVNode(\"thead\", null, [\n _createElementVNode(\"tr\", null, [\n _createElementVNode(\"td\", {\n colspan: 12 - _ctx.cPointsScaleSize\n }, null, 8, _hoisted_7),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.cPoints, (point) => {\n return (_openBlock(), _createElementBlock(\"td\", { key: point }, _toDisplayString(point), 1))\n }), 128)),\n (_ctx.question.showNoAnswerOption)\n ? (_openBlock(), _createElementBlock(\"td\", _hoisted_8, [\n _createTextVNode(\"-\"),\n (!!_ctx.cNoAnswerText)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_9, \"*\"))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"tbody\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.question.scorables?.filter((x) => x.isActive), (scorable) => {\n return (_openBlock(), _createElementBlock(\"tr\", {\n key: scorable.id!\n }, [\n _createElementVNode(\"td\", {\n colspan: 12 - _ctx.cPointsScaleSize,\n class: \"align-left\"\n }, _toDisplayString(_ctx.scorableText(scorable.translations!)), 9, _hoisted_10),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.cPoints, (point) => {\n return (_openBlock(), _createElementBlock(\"td\", { key: point }, [\n _createVNode(_component_HakoBsIcon, {\n class: \"item\",\n icon: _ctx.isScoreAnswered(scorable.id!, point, false) ? 'check-circle-fill' : 'circle',\n theme: _ctx.isScoreAnswered(scorable.id!, point, false) ? 'success' : 'secondary'\n }, null, 8, [\"icon\", \"theme\"])\n ]))\n }), 128)),\n (_ctx.question.showNoAnswerOption)\n ? (_openBlock(), _createElementBlock(\"td\", _hoisted_11, [\n _createVNode(_component_HakoBsIcon, {\n class: \"item\",\n icon: _ctx.isScoreAnswered(scorable.id!, 0, true) ? 'check-circle-fill' : 'circle',\n theme: _ctx.isScoreAnswered(scorable.id!, 0, true) ? 'success' : 'secondary'\n }, null, 8, [\"icon\", \"theme\"])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128)),\n (!!_ctx.cNoAnswerText)\n ? (_openBlock(), _createElementBlock(\"tr\", _hoisted_12, [\n _createElementVNode(\"td\", _hoisted_13, \" * \" + _toDisplayString(_ctx.cNoAnswerText), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.question.type!.technicalName == 'smiley')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.getSmileys(_ctx.question.smileyAmount!), (smiley) => {\n return (_openBlock(), _createElementBlock(\"span\", {\n key: smiley,\n class: \"ms-2\"\n }, [\n _createElementVNode(\"img\", {\n src: '/assets/survey/' + smiley + '.png',\n alt: smiley + '',\n class: _normalizeClass([\"smiley\", { 'selectedAnswer': _ctx.answerRow?.smileyValue == smiley }])\n }, null, 10, _hoisted_15)\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.question.type!.technicalName == 'nps')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_16, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], (nps) => {\n return _createElementVNode(\"div\", {\n key: nps,\n class: _normalizeClass([\"nps-item\", { 'selectedAnswer': _ctx.answerRow?.npsValue == nps }])\n }, _toDisplayString(nps), 3)\n }), 64))\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.question.asksComments)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_17, [\n _createElementVNode(\"div\", null, _toDisplayString(_ctx.$t(\"comments\")), 1),\n (_ctx.answerRow?.commentText)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_18, _toDisplayString(_ctx.answerRow.commentText), 1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_19, _toDisplayString(_ctx.$t(\"noComments\")), 1))\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}","\nimport { i18n } from \"@/i18n\";\nimport {\n\tSurveyAnswerRowDto,\n\tSurveyQuestionDto,\n\tSurveyQuestionOptionTranslationDto,\n\tSurveyQuestionScorableTranslationDto,\n} from \"@/dto\";\nimport { computed, defineComponent, PropType } from \"vue\";\n\nexport default defineComponent({\n\tprops: {\n\t\tanswerRow: {\n\t\t\ttype: Object as PropType,\n\t\t\trequired: false,\n\t\t},\n\n\t\tquestion: {\n\t\t\ttype: Object as PropType,\n\t\t\trequired: true,\n\t\t},\n\t},\n\tsetup(props) {\n\t\tconst cPointsScaleSize = computed(() => {\n\t\t\tif (!props.question) return 0;\n\n\t\t\tif (props.question.pointsMax && props.question.pointsMin) {\n\t\t\t\tlet size = props.question.pointsMax! - props.question.pointsMin! + 1;\n\t\t\t\tif (props.question.showNoAnswerOption) size++;\n\t\t\t\treturn size <= 10 ? size : 10;\n\t\t\t}\n\n\t\t\treturn 0;\n\t\t});\n\n\t\tconst cPoints = computed(() => {\n\t\t\tlet arr = [];\n\t\t\tif (props.question.scoringIsReversed) {\n\t\t\t\tfor (let i = props.question.pointsMax!; i >= props.question.pointsMin!; i--) {\n\t\t\t\t\tarr.push(i);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (let i = props.question.pointsMin!; i <= props.question.pointsMax!; i++) {\n\t\t\t\t\tarr.push(i);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn arr;\n\t\t});\n\n\t\tconst cNoAnswerText = computed(() => {\n\t\t\treturn props.question.translations.find((x) => x.languageCode == i18n.global.locale)\n\t\t\t\t?.noAnswerText;\n\t\t});\n\n\t\tconst getSmileys = (amount: number) => {\n\t\t\tif (amount == 2) return [5, 1];\n\t\t\tif (amount == 3) return [5, 3, 1];\n\t\t\tif (amount == 4) return [5, 4, 2, 1];\n\t\t\tif (amount == 5) return [5, 4, 3, 2, 1];\n\t\t\treturn [];\n\t\t};\n\n\t\tconst isOptionType = (typeName: string) => {\n\t\t\tif (\n\t\t\t\ttypeName == \"singleRadio\" ||\n\t\t\t\ttypeName == \"singleDropdown\" ||\n\t\t\t\ttypeName == \"multiCheckbox\" ||\n\t\t\t\ttypeName == \"multiLimited\"\n\t\t\t)\n\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t};\n\n\t\tconst optionName = (translations: SurveyQuestionOptionTranslationDto[]) => {\n\t\t\tlet resp = \"\";\n\t\t\t[i18n.global.locale, \"fi\", \"sv\", \"en\"].forEach((lang) => {\n\t\t\t\tif (!resp) {\n\t\t\t\t\tlet translation = translations.find((x) => x.languageCode == lang);\n\t\t\t\t\tif (translation?.text) resp = translation.text;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn resp;\n\t\t};\n\n\t\tconst scorableText = (translations: SurveyQuestionScorableTranslationDto[]) => {\n\t\t\tlet resp = \"\";\n\t\t\t[i18n.global.locale, \"fi\", \"sv\", \"en\"].forEach((lang) => {\n\t\t\t\tif (!resp) {\n\t\t\t\t\tlet translation = translations.find((x) => x.languageCode == lang);\n\t\t\t\t\tif (translation?.text) resp = translation.text;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn resp;\n\t\t};\n\n\t\tconst isAnswered = (optionId: number) => {\n\t\t\tif (props.answerRow?.answerText && props.answerRow.answerText.length > 0) return true;\n\n\t\t\tif (props.answerRow?.optionId == optionId) return true;\n\n\t\t\tif (props.answerRow?.multiSelectOptions?.some((x) => x.optionId == optionId)) return true;\n\n\t\t\treturn false;\n\t\t};\n\n\t\tconst textAnswer = (optionId: number | null | undefined) => {\n\t\t\tif (!optionId) return \"\";\n\t\t\tif (props.answerRow?.optionId == optionId) return props.answerRow.optionManualAnswer;\n\n\t\t\tif (props.answerRow?.multiSelectOptions?.some((x) => x.optionId == optionId)) {\n\t\t\t\tconst opt = props.answerRow?.multiSelectOptions?.find((x) => x.optionId == optionId);\n\t\t\t\treturn opt?.otherOptionText ?? \"\";\n\t\t\t}\n\t\t\treturn \"\";\n\t\t};\n\n\t\tconst isScoreAnswered = (scorableId: number, points: number, noAnswer: boolean) => {\n\t\t\tif (\n\t\t\t\tprops.answerRow?.scores?.some(\n\t\t\t\t\t(x) =>\n\t\t\t\t\t\tx.scorableId == scorableId &&\n\t\t\t\t\t\t(x.points == points || (x.pointsNoAnswer && noAnswer))\n\t\t\t\t)\n\t\t\t)\n\t\t\t\treturn true;\n\n\t\t\treturn false;\n\t\t};\n\n\t\treturn {\n\t\t\tcPointsScaleSize,\n\t\t\tcPoints,\n\t\t\tcNoAnswerText,\n\t\t\tgetSmileys,\n\t\t\tisOptionType,\n\t\t\toptionName,\n\t\t\tscorableText,\n\t\t\tisAnswered,\n\t\t\ttextAnswer,\n\t\t\tisScoreAnswered,\n\t\t};\n\t},\n});\n","import { render } from \"./AnswerForSingleQuestion.vue?vue&type=template&id=05af7b79&scoped=true&ts=true\"\nimport script from \"./AnswerForSingleQuestion.vue?vue&type=script&lang=ts\"\nexport * from \"./AnswerForSingleQuestion.vue?vue&type=script&lang=ts\"\n\nimport \"./AnswerForSingleQuestion.vue?vue&type=style&index=0&id=05af7b79&scoped=true&lang=scss\"\n\nimport exportComponent from \"/opt/atlassian/pipelines/agent/build/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-05af7b79\"]])\n\nexport default __exports__","\nimport { i18n } from \"@/i18n\";\nimport AnswerForSingleQuestion from \"@/components/AnswerForSingleQuestion.vue\";\nimport {\n\tSurveyAnswerDto,\n\tSurveyQuestionTranslationDto,\n\tSurveyQuestionTypeTranslationDto,\n\tSurveyDto,\n} from \"@/dto\";\nimport { NotificationManager } from \"@hakosalo/hakolib\";\nimport { computed, defineComponent, onBeforeMount, PropType, ref } from \"vue\";\nimport axios from \"axios\";\nimport store from \"@/store\";\n\nexport default defineComponent({\n\tprops: {\n\t\tcode: {\n\t\t\ttype: String as PropType,\n\t\t},\n\n\t\torg: {\n\t\t\ttype: String as PropType,\n\t\t},\n\t},\n\n\tcomponents: {\n\t\tAnswerForSingleQuestion,\n\t},\n\n\tsetup(props) {\n\t\tconst { t } = i18n.global;\n\n\t\tonBeforeMount(async () => {\n\t\t\tif (cIsTestAnswer.value) {\n\t\t\t\tawait loadTestAnswerFromStore();\n\t\t\t} else {\n\t\t\t\tawait getAnswer();\n\t\t\t}\n\t\t});\n\n\t\tconst loading = ref(true);\n\t\tconst answer = ref({} as SurveyAnswerDto);\n\n\t\tconst getAnswer = async () => {\n\t\t\ttry {\n\t\t\t\tconst resp = await axios.get(`survey/answerSummary/${props.code}`, {\n\t\t\t\t\theaders: {\n\t\t\t\t\t\torganization: props.org,\n\t\t\t\t\t},\n\t\t\t\t});\n\n\t\t\t\tif (resp.data) {\n\t\t\t\t\tanswer.value = resp.data;\n\t\t\t\t\tloading.value = false;\n\t\t\t\t} else {\n\t\t\t\t\tNotificationManager.quickDanger(t(\"error_loading_data\"), t(\"problemGettingSurveys\"));\n\t\t\t\t\tloading.value = false;\n\t\t\t\t}\n\t\t\t} catch (ex) {\n\t\t\t\tconsole.log(ex);\n\t\t\t}\n\t\t};\n\n\t\tconst questionTitle = (translations: SurveyQuestionTranslationDto[]) => {\n\t\t\tlet resp = \"\";\n\t\t\t[i18n.global.locale, \"fi\", \"sv\", \"en\"].forEach((lang) => {\n\t\t\t\tif (!resp) {\n\t\t\t\t\tlet translation = translations.find((x) => x.languageCode == lang);\n\t\t\t\t\tif (translation?.question) resp = translation.question;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn resp;\n\t\t};\n\n\t\tconst questionDescription = (translations: SurveyQuestionTranslationDto[]) => {\n\t\t\tlet resp = \"\";\n\t\t\t[i18n.global.locale, \"fi\", \"sv\", \"en\"].forEach((lang) => {\n\t\t\t\tif (!resp) {\n\t\t\t\t\tlet translation = translations.find((x) => x.languageCode == lang);\n\t\t\t\t\tif (translation?.description) resp = translation.description;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn resp;\n\t\t};\n\n\t\tconst questionType = (translations: SurveyQuestionTypeTranslationDto[]) => {\n\t\t\tlet resp = \"\";\n\t\t\t[i18n.global.locale, \"fi\", \"sv\", \"en\"].forEach((lang) => {\n\t\t\t\tif (!resp) {\n\t\t\t\t\tlet translation = translations.find((x) => x.languageCode == lang);\n\t\t\t\t\tif (translation?.name) resp = translation.name;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn resp;\n\t\t};\n\n\t\tconst surveyName = (survey: SurveyDto) => {\n\t\t\tif (!survey) return \"\";\n\n\t\t\tif (survey.internalName) return survey.internalName;\n\n\t\t\tlet name = survey.translations.find((x) => x.languageCode == i18n.global.locale)?.name;\n\t\t\tif (name) return name;\n\n\t\t\t[\"fi\", \"sv\", \"en\"].forEach((lang) => {\n\t\t\t\tname = survey.translations.find((x) => x.languageCode == lang)?.name;\n\t\t\t\tif (name) return name;\n\t\t\t});\n\n\t\t\treturn t(\"nameNotFound\");\n\t\t};\n\n\t\tconst questionWasAnswered = (questionId: number) => {\n\t\t\tif (cIsTestAnswer.value) {\n\t\t\t\tif (answer.value.answerRows?.some((x) => x.questionId == questionId && x.answerId == 0))\n\t\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tif (answer.value.answerRows?.some((x) => x.questionId == questionId)) return true;\n\t\t\t}\n\n\t\t\treturn false;\n\t\t};\n\n\t\tconst cIsTestAnswer = computed((): boolean => {\n\t\t\tif (props.code && props.code.length == 15) return true;\n\n\t\t\treturn false;\n\t\t});\n\n\t\tconst loadTestAnswerFromStore = async () => {\n\t\t\tconst storeAnswer = store.getters.getTestAnswer as SurveyAnswerDto | null;\n\t\t\tif (storeAnswer?.surveyId) {\n\t\t\t\ttry {\n\t\t\t\t\tconst resp = await axios.get(\n\t\t\t\t\t\t`survey/WithQuestions/${storeAnswer.surveyId}`,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t\torganization: props.org,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\n\t\t\t\t\tif (resp.data) {\n\t\t\t\t\t\tanswer.value = storeAnswer;\n\t\t\t\t\t\tanswer.value.survey = resp.data;\n\t\t\t\t\t\tloading.value = false;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tNotificationManager.quickDanger(\n\t\t\t\t\t\t\tt(\"error_loading_data\"),\n\t\t\t\t\t\t\tt(\"problemGettingSurveys\")\n\t\t\t\t\t\t);\n\t\t\t\t\t\tloading.value = false;\n\t\t\t\t\t}\n\t\t\t\t} catch (ex) {\n\t\t\t\t\tconsole.log(ex);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tloading.value = false;\n\t\t};\n\n\t\treturn {\n\t\t\tloading,\n\t\t\tanswer,\n\t\t\tquestionTitle,\n\t\t\tquestionDescription,\n\t\t\tquestionType,\n\t\t\tsurveyName,\n\t\t\tquestionWasAnswered,\n\t\t};\n\t},\n});\n","import { render } from \"./SurveyAnswer.vue?vue&type=template&id=108f4a78&scoped=true&ts=true\"\nimport script from \"./SurveyAnswer.vue?vue&type=script&lang=ts\"\nexport * from \"./SurveyAnswer.vue?vue&type=script&lang=ts\"\n\nimport \"./SurveyAnswer.vue?vue&type=style&index=0&id=108f4a78&scoped=true&lang=scss\"\n\nimport exportComponent from \"/opt/atlassian/pipelines/agent/build/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-108f4a78\"]])\n\nexport default __exports__","\nimport { i18n, setLanguageAsync } from \"@/i18n\";\nimport axios from \"axios\";\nimport { onBeforeMount } from \"vue\";\nimport { ref } from \"vue\";\nimport { defineComponent } from \"vue\";\nimport { useRoute } from \"vue-router\";\nimport SurveyAnswer from \"@/components/SurveyAnswer.vue\";\n\nexport default defineComponent({\n\tcomponents: { SurveyAnswer },\n\tsetup() {\n\t\tconst route = useRoute();\n\n\t\tonBeforeMount(async () => {\n\t\t\tsetLanguage();\n\t\t\tawait getThankYouTitle();\n\t\t\tawait getThankYouText();\n\t\t\tawait getShowSummary();\n\t\t\tloading.value = false;\n\t\t});\n\n\t\tconst thankYouTitle = ref(\"\");\n\t\tconst thankYouText = ref(\"\");\n\t\tconst loading = ref(true);\n\t\tconst showAnswers = ref(false);\n\t\tconst showAnswersModal = ref(false);\n\n\t\tconst getThankYouTitle = async () => {\n\t\t\ttry {\n\t\t\t\tconst response = await axios.get(\n\t\t\t\t\t`survey/thankYouTitle/${route.params[\"code\"]}/${i18n.global.locale}`,\n\t\t\t\t\t{\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\torganization: route.params[\"org\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t\tif (response?.data) thankYouTitle.value = response.data;\n\t\t\t} catch (ex: unknown) {\n\t\t\t\tconsole.log(\"Problem fetching thank you -title\");\n\t\t\t}\n\t\t};\n\n\t\tconst getThankYouText = async () => {\n\t\t\ttry {\n\t\t\t\tconst response = await axios.get(\n\t\t\t\t\t`survey/thankYouText/${route.params[\"code\"]}/${i18n.global.locale}`,\n\t\t\t\t\t{\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\torganization: route.params[\"org\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t\tthankYouText.value = response.data;\n\t\t\t} catch (ex: unknown) {\n\t\t\t\tconsole.log(\"Problem fetching thank you -text\");\n\t\t\t}\n\t\t};\n\n\t\tconst getShowSummary = async () => {\n\t\t\ttry {\n\t\t\t\tconst response = await axios.get(\n\t\t\t\t\t`survey/showSummary/${route.params[\"code\"]}`,\n\t\t\t\t\t{\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\torganization: route.params[\"org\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t\tshowAnswers.value = response.data;\n\t\t\t} catch (ex: unknown) {\n\t\t\t\tconsole.log(\"Problem fetching show summary -data\");\n\t\t\t}\n\t\t};\n\n\t\tconst setLanguage = () => {\n\t\t\tlet lang = route.params[\"lang\"] as \"fi\" | \"sv\" | \"en\" | undefined;\n\t\t\tif (lang) setLanguageAsync(lang);\n\t\t};\n\n\t\treturn {\n\t\t\tthankYouTitle,\n\t\t\tthankYouText,\n\t\t\tloading,\n\t\t\tshowAnswers,\n\t\t\tshowAnswersModal,\n\t\t};\n\t},\n});\n","import { render } from \"./ThankYouView.vue?vue&type=template&id=4cc85bd0&scoped=true&ts=true\"\nimport script from \"./ThankYouView.vue?vue&type=script&lang=ts\"\nexport * from \"./ThankYouView.vue?vue&type=script&lang=ts\"\n\nimport \"./ThankYouView.vue?vue&type=style&index=0&id=4cc85bd0&scoped=true&lang=scss\"\n\nimport exportComponent from \"/opt/atlassian/pipelines/agent/build/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4cc85bd0\"]])\n\nexport default __exports__","import { createRouter, createWebHistory, RouteRecordRaw } from \"vue-router\";\nimport SurveyView from \"../views/SurveyView.vue\";\nimport ThankYouView from \"@/views/ThankYouView.vue\";\n\nconst routes: Array = [\n\t{\n\t\tpath: \"/:org/:code/:lang?\",\n\t\tname: \"survey\",\n\t\t// route level code-splitting\n\t\t// this generates a separate chunk (about.[hash].js) for this route\n\t\t// which is lazy-loaded when the route is visited.\n\t\t// component: () => import(/* webpackChunkName: \"about\" */ '../views/AboutView.vue')\n\t\tcomponent: SurveyView,\n\t},\n\t{\n\t\tpath: \"/thankYou/:org/:code/:lang?\",\n\t\tname: \"thankYou\",\n\t\tcomponent: ThankYouView,\n\t},\n];\n\nconst router = createRouter({\n\thistory: createWebHistory(process.env.BASE_URL),\n\troutes,\n});\n\nexport default router;\n","import { createApp } from \"vue\";\nimport App from \"./App.vue\";\nimport router from \"./router\";\nimport store from \"./store\";\nimport axios from \"axios\";\nimport { i18n, setLanguageAsync } from \"./i18n\";\nimport { hakoLibVuePlugin } from \"@hakosalo/hakolib\";\n\n// Set default base url\naxios.defaults.baseURL = process.env[\"VUE_APP_CRM2API\"];\n\n// Mount app\ncreateApp(App).use(store).use(router).use(i18n).use(hakoLibVuePlugin).mount(\"#app\");\n\nsetLanguageAsync(\"fi\");\n","var map = {\n\t\"./en.json\": [\n\t\t790,\n\t\t627\n\t],\n\t\"./fi.json\": [\n\t\t2276,\n\t\t403\n\t],\n\t\"./sv.json\": [\n\t\t3244,\n\t\t914\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__.t(id, 3 | 16);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 2695;\nmodule.exports = webpackAsyncContext;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","var getProto = Object.getPrototypeOf ? function(obj) { return Object.getPrototypeOf(obj); } : function(obj) { return obj.__proto__; };\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });\n\t}\n\tdef['default'] = function() { return value; };\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + {\"403\":\"lang-fi-json\",\"627\":\"lang-en-json\",\"914\":\"lang-sv-json\"}[chunkId] + \".\" + {\"403\":\"2febaf40\",\"627\":\"93ee8870\",\"914\":\"cc356a23\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"client:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkclient\"] = self[\"webpackChunkclient\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [998], function() { return __webpack_require__(706); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["_createBlock","_component_router_view","script","__exports__","render","_hoisted_1","class","_hoisted_2","key","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","style","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_ctx","_cache","$props","$setup","$data","$options","_component_SurveyHeader","_resolveComponent","_component_HakoSpinner","_component_HakoConvertHyperlinks","_component_HakoTextArea","_component_HakoContentBlock","_component_HakoButton","_openBlock","_createElementBlock","cIsTestAnswer","_toDisplayString","$t","_createCommentVNode","_withDirectives","_createVNode","title","surveyName","survey","languages","langFromUrl","pageIndicatorColor","cPageIndicatorColor","currentPage","pageAmount","cPageAmount","surveyId","id","_vShow","loading","invalidCode","_createElementVNode","_Fragment","_renderList","cPages","page","index","_Transition","name","slideDirClass","mode","default","_withCtx","questions","question","noHeader","_normalizeStyle","type","technicalName","_createTextVNode","getTextInCurrLang","translations","isRequired","_","maxOptionPicks","isAnswerType","_resolveDynamicComponent","getComponentName","typeId","questionData","lang","$i18n","locale","activations","filter","x","options","some","o","optionId","activatingQuestionId","answerRow","answerDto","answerRows","find","questionId","onActivatedActivations","$event","updateActivatedActivations","onSave","saveAnswerRow","asksComments","for","modelValue","commentText","onChange","saveComment","checkIfQuestionActivated","theme","onClick","previousPage","length","nextPage","finished","showPage","_component_HakoMultiselect","hideLogo","src","cBaseUrl","selectedLanguage","onError","cLanguages","placeholder","loadedLanguages","i18n","createI18n","process","VUE_APP_I18N_LOCALE","fallbackLocale","VUE_APP_I18N_FALLBACK_LOCALE","messages","setI18nLanguage","global","axios","document","querySelector","setAttribute","setLanguageAsync","async","code","then","setLocaleMessage","push","config","defineComponent","props","String","Array","required","Number","setup","ref","computed","map","value","text","native","setLanguage","watch","newValue","oldValue","immediate","newVal","oldVal","_component_HakoSingleSelect2","isActive","answer","y","languageCode","toString","cIsOtherOption","otherText","Object","data","allowSaving","created","this","emitAnswer","debounce","emitAnswerText","mounted","optionManualAnswer","setTimeout","updateActivations","isOtherOption","handler","opt","methods","$emit","_component_HakoRadio","option","userHasAnswered","getSmileys","smileyAmount","smiley","alt","selected","smileyValue","amount","numericValue","answerText","_component_HakoInput","answerNumbers","checkActivations","_vModelCheckbox","includes","undefined","answerDtos","otherOptionText","multiSelectOptions","forEach","num","optionHasActivation","updateAddedActivations","activatedActivations","userHasEdited","event","target","checked","removedDto","updateRemovedActivations","newDto","activated","concat","answers","val","deep","_withModifiers","checkLimit","npsValue","colspan","_component_HakoBsIcon","cPointsScaleSize","cPoints","point","showNoAnswerOption","cHasNoAnswerText","row","scorable","points","pointsNoAnswer","icon","noAnswerText","setupThings","pointsMax","pointsMin","size","arr","scoringIsReversed","i","scorables","scorableId","scores","nonEmptyAnswers","createStore","state","testAnswer","getters","getTestAnswer","mutations","setTestAnswer","actions","modules","route","useRoute","router","useRouter","onBeforeMount","getSurvey","currentPageId","pages","activePages","checkIfPageActivated","sortedPages","sortBy","order","params","found","response","headers","organization","formatAnswerDto","getActivations","ex","console","log","questionTypeId","componentMap","Map","get","validateAnswers","store","commit","createNewAnswer","uniqueCode","org","list","pageId","activatesPageId","activatesQuestionId","deleteAnswerRow","answerId","trim","shownQuestions","requiredQuestions","questionsAreAnswered","valid","rowValid","el","getElementById","scrollIntoView","block","behavior","classList","toggle","components","SurveyHeader","SingleRadioComponent","NpsComponent","MultiLimitedComponent","TextSingleComponent","MultiCheckboxComponent","TextMultiComponent","SmileyComponent","SingleDropdownComponent","ScoreComponent","_component_SurveyAnswer","_component_HakoModal","thankYouTitle","thankYouText","showAnswers","showAnswersModal","noCloseButton","onClose","$route","_component_AnswerForSingleQuestion","questionWasAnswered","questionTitle","questionDescription","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","isOptionType","_normalizeClass","isAnswered","optionName","textAnswer","cNoAnswerText","scorableText","isScoreAnswered","nps","typeName","resp","translation","noAnswer","AnswerForSingleQuestion","t","loadTestAnswerFromStore","getAnswer","NotificationManager","description","questionType","internalName","storeAnswer","SurveyAnswer","getThankYouTitle","getThankYouText","getShowSummary","routes","path","component","SurveyView","ThankYouView","createRouter","history","createWebHistory","createApp","App","use","hakoLibVuePlugin","mount","webpackAsyncContext","req","__webpack_require__","Promise","resolve","e","Error","ids","keys","module","exports","__webpack_module_cache__","moduleId","cachedModule","loaded","__webpack_modules__","call","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","every","splice","r","n","getter","__esModule","d","a","leafPrototypes","getProto","getPrototypeOf","obj","__proto__","ns","create","def","current","indexOf","getOwnPropertyNames","definition","defineProperty","enumerable","f","chunkId","all","reduce","promises","u","miniCssF","g","globalThis","Function","window","prop","prototype","hasOwnProperty","inProgress","dataWebpackPrefix","l","url","done","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","onScriptComplete","prev","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","bind","head","appendChild","Symbol","toStringTag","nmd","paths","children","p","installedChunks","installedChunkData","promise","reject","error","loadingEnded","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}