{"version":3,"sources":["webpack:///./resources/js/src/app/eros/plugins/plentymarkets/feedback/mixins/loadFeedbackModule.js","webpack:///./resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackContainer.vue","webpack:///./resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackForm.vue","webpack:///resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackForm.vue","webpack:///./resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackForm.vue?b66c","webpack:///./resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackForm.vue?7638","webpack:///./resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackList.vue","webpack:///./resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackListEntry.vue","webpack:///./resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackComment.vue","webpack:///resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackComment.vue","webpack:///./resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackComment.vue?95f5","webpack:///resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackListEntry.vue","webpack:///./resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackListEntry.vue?ba56","webpack:///./resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackComment.vue?0447","webpack:///./resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackListEntry.vue?52cf","webpack:///./resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackList.vue?7cde","webpack:///resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackList.vue","webpack:///resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackContainer.vue","webpack:///./resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackContainer.vue?ca01","webpack:///./resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackList.vue?6f52","webpack:///./resources/js/src/app/eros/plugins/plentymarkets/feedback/components/item/singleitem/FeedbackContainer.vue?1088"],"names":["created","this","$store","hasModule","App","isSSR","registerModule","FeedbackModule","preserveState","state","feedback","render","_vm","_c","_self","staticClass","_v","_s","$translate","counts","ratingsCountTotal","_l","index","key","style","width","averageValue","class","classes","styles","_m","ratingsCountOf5","highestCount","ratingsCountOf4","ratingsCountOf3","ratingsCountOf2","ratingsCountOf1","isLoading","_e","attrs","variationId","optionsForm","authenticatedUser","feedbacks","optionsList","on","$event","showDeleteConfirmation","pagination","isLastPage","loadFeedbacks","ref","_uid","feedbackToDelete","isReply","deleteFeedback","_withStripped","isLoggedIn","options","allowGuestFeedbacks","i","directives","name","rawName","value","ratingValue","expression","domProps","_q","$set","ratingMissing","allowNoRatingFeedback","authorName","limitReached","hasPurchased","target","composing","honeypot","title","titleMissing","message","createFeedback","createLoginModal","id","showControls","$emit","onLoadMoreClicked","loading","editableFeedback","feedbackData","isVisible","editFeedback","saveEditableFeedback","feedbackRating","rating","full","empty","isPurchased","variationAttributes","variationAttribute","sourceRelation","feedbackRelationType","sourceRelationLabel","feedbackRelationSourceId","length","displayName","timestampVisibility","_f","createdAt","replyFormVisible","replies","replyListVisible","replyMessage","createReply","reply"],"mappings":"2FAAA,aAEe,KACdA,QAAO,WACDC,KAAKC,OAAOC,UAAU,aAAgBC,IAAIC,OAC9CJ,KAAKC,OAAOI,eAAe,WAAYC,IAAgB,CAAEC,gBAAiBP,KAAKC,OAAOO,MAAMC,c,wCCL/F,IAAIC,EAAS,WAAkB,IAAIC,EAAIX,KAAKY,EAAGD,EAAIE,MAAMD,GAAG,OAAOA,EAAG,UAAU,CAACE,YAAY,sBAAsB,CAACF,EAAG,MAAM,CAACE,YAAY,SAAS,CAACH,EAAII,GAAG,SAASJ,EAAIK,GAAGL,EAAIM,W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ACA,uBACA,SACA,0DACA,eACA,sBAGA,eACA,oDACA,yFAKA,gCACA,WACA,iCACA,4BACA,GACA,mBAGA,YACA,gBACA,6BAGA,kBACA,QACA,WACA,wDACA,OACA,oBACA,yDACA,qCAEA,YACA,6BACA,gEAEA,gBAEA,sBACA,iBACA,kBAIA,8BG5Me,EAXC,YACd,EACA,EPLoB,IOOpB,EACA,KACA,KACA,M,QCd+O,ECuBjP,CACA,oBACA,YACA,yBAEA,OACA,gBACA,mBACA,qBACA,eACA,cACA,gBAGA,SACA,6BACA,2B,sVCoIA,IC3KsP,ED2KtP,CACA,yBACA,YACA,kBACA,gBExKgB,YACd,EACA,EbPoB,IaSpB,EACA,KACA,KACA,M,SFoKF,Q,OAAA,GAEA,QACA,QACA,eAIA,OACA,eACA,eACA,eAGA,gBACA,OACA,aACA,sBACA,aACA,qDACA,sDAEA,aACA,yEACA,yDACA,iDACA,wDAKA,S,+VAAA,EACA,4BACA,iEAGA,uBACA,mEAGA,aACA,mEACA,6CACA,mDACA,wDAIA,mBACA,qBAWA,sBAXA,CACA,WACA,8EACA,eACA,mBACA,yBAEA,kDAQA,SACA,mBACA,gDACA,MACA,yEACA,kDAEA,mBACA,gCAIA,qBACA,+DAGA,yBACA,sDACA,mBACA,kDAIA,mCACA,wBACA,gDAGA,0BACA,iCACA,uCACA,yCAEA,uCACA,aACA,mBACA,gDAIA,gDAGA,0BACA,oCACA,OACA,gCACA,kBACA,kCACA,iBACA,0BACA,qCACA,2CAEA,WAGA,+DACA,oCACA,IAiBA,GACA,iBACA,QACA,MAjBA,mDACA,uDACA,+CAEA,wCAEA,oDACA,6BAEA,aAEA,EAOA,kBAEA,0BACA,6CACA,aACA,cACA,iBACA,kDAIA,oBAGA,uCACA,6CACA,gCACA,iCG5UI,EAAY,YACd,EACA7C,EnBPoB,CAAC,WAAY,IAAaE,EAALZ,KAAYa,MAAMD,GAAG,OAAOA,EAAG,IAAI,CAACE,YAAY,4BAA4B,CAA5Ed,KAAiFe,GAAG,MAAMH,EAAG,IAAI,CAACE,YAAY,kBACvJ,WAAY,IAAaF,EAALZ,KAAYa,MAAMD,GAAG,OAAOA,EAAG,IAAI,CAACE,YAAY,4BAA4B,CAA5Ed,KAAiFe,GAAG,MAAMH,EAAG,IAAI,CAACE,YAAY,kBAClI,WAAY,IAAaF,EAALZ,KAAYa,MAAMD,GAAG,OAAOA,EAAG,IAAI,CAACE,YAAY,4BAA4B,CAA5Ed,KAAiFe,GAAG,MAAMH,EAAG,IAAI,CAACE,YAAY,kBAClI,WAAY,IAAaF,EAALZ,KAAYa,MAAMD,GAAG,OAAOA,EAAG,IAAI,CAACE,YAAY,4BAA4B,CAA5Ed,KAAiFe,GAAG,MAAMH,EAAG,IAAI,CAACE,YAAY,kBAClI,WAAY,IAAaF,EAALZ,KAAYa,MAAMD,GAAG,OAAOA,EAAG,IAAI,CAACE,YAAY,4BAA4B,CAA5Ed,KAAiFe,GAAG,MAAMH,EAAG,IAAI,CAACE,YAAY,kBAClI,WAAY,IAAaF,EAALZ,KAAYa,MAAMD,GAAG,OAAOA,EAAG,SAAS,CAACE,YAAY,QAAQwB,MAAM,CAAC,KAAO,SAAS,eAAe,QAAQ,aAAa,UAAU,CAAC1B,EAAG,OAAO,CAAC0B,MAAM,CAAC,cAAc,SAAS,CAA5KtC,KAAiLe,GAAG,YmBIxM,EACA,KACA,KACA,MAIa,Y","file":"chunks/eros-26.min.js","sourcesContent":["import FeedbackModule from \"../store/FeedbackModule\";\r\n\r\nexport default {\r\n\tcreated() {\r\n\t\tif (!this.$store.hasModule(\"feedback\") && !App.isSSR) {\r\n\t\t\tthis.$store.registerModule(\"feedback\", FeedbackModule, { preserveState: !!this.$store.state.feedback });\r\n\t\t}\r\n\t}\r\n};\r\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('section',{staticClass:\"feedback-container\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.customerReviews\"))+\"\\n\\t\\t\"),_c('small',{staticClass:\"feedback-average-count\"},[_vm._v(\" (\"+_vm._s(_vm.counts.ratingsCountTotal)+\")\")])]),_vm._v(\" \"),_c('div',{staticClass:\"feedback-stars-average\"},[_c('div',{staticClass:\"feedback-stars-background clearfix\"},_vm._l((5),function(index){return _c('div',{key:'feedback_stars_background' + index,staticClass:\"feedback-star\"},[_c('i',{staticClass:\"fa fa-star\"})])}),0),_vm._v(\" \"),_c('div',{staticClass:\"feedback-stars-overlay-wrap\",style:({ width: (_vm.counts.averageValue * 100) / 5 + '%' })},[_c('div',{staticClass:\"feedback-stars-overlay clearfix\"},_vm._l((5),function(index){return _c('div',{key:'feedback_stars_overlay_' + index,staticClass:\"feedback-star\"},[_c('i',{staticClass:\"fa fa-star\"})])}),0)])]),_vm._v(\" \"),_c('hr'),_vm._v(\" \"),_c('div',{staticClass:\"row my-2\",class:_vm.classes,style:(_vm.styles)},[_c('div',{staticClass:\"col-sm-6\"},[_c('div',{staticClass:\"feedback-bars\"},[_c('div',{staticClass:\"feedback-bar-wrap\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"feedback-bar\"},[_c('div',{staticClass:\"feedback-bar-fill bg-primary bg-appearance\",style:({ width: (_vm.counts.ratingsCountOf5 / _vm.counts.highestCount) * 100 + '%' })})]),_vm._v(\" \"),_c('p',{staticClass:\"feedback-bar-text-after\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.counts.ratingsCountOf5)+\"\\n\\t\\t\\t\\t\\t\")])]),_vm._v(\" \"),_c('div',{staticClass:\"feedback-bar-wrap\"},[_vm._m(1),_vm._v(\" \"),_c('div',{staticClass:\"feedback-bar\"},[_c('div',{staticClass:\"feedback-bar-fill bg-primary bg-appearance\",style:({ width: (_vm.counts.ratingsCountOf4 / _vm.counts.highestCount) * 100 + '%' })})]),_vm._v(\" \"),_c('p',{staticClass:\"feedback-bar-text-after\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.counts.ratingsCountOf4)+\"\\n\\t\\t\\t\\t\\t\")])]),_vm._v(\" \"),_c('div',{staticClass:\"feedback-bar-wrap\"},[_vm._m(2),_vm._v(\" \"),_c('div',{staticClass:\"feedback-bar\"},[_c('div',{staticClass:\"feedback-bar-fill bg-primary bg-appearance\",style:({ width: (_vm.counts.ratingsCountOf3 / _vm.counts.highestCount) * 100 + '%' })})]),_vm._v(\" \"),_c('p',{staticClass:\"feedback-bar-text-after\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.counts.ratingsCountOf3)+\"\\n\\t\\t\\t\\t\\t\")])]),_vm._v(\" \"),_c('div',{staticClass:\"feedback-bar-wrap\"},[_vm._m(3),_vm._v(\" \"),_c('div',{staticClass:\"feedback-bar\"},[_c('div',{staticClass:\"feedback-bar-fill bg-primary bg-appearance\",style:({ width: (_vm.counts.ratingsCountOf2 / _vm.counts.highestCount) * 100 + '%' })})]),_vm._v(\" \"),_c('p',{staticClass:\"feedback-bar-text-after\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.counts.ratingsCountOf2)+\"\\n\\t\\t\\t\\t\\t\")])]),_vm._v(\" \"),_c('div',{staticClass:\"feedback-bar-wrap\"},[_vm._m(4),_vm._v(\" \"),_c('div',{staticClass:\"feedback-bar\"},[_c('div',{staticClass:\"feedback-bar-fill bg-primary bg-appearance\",style:({ width: (_vm.counts.ratingsCountOf1 / _vm.counts.highestCount) * 100 + '%' })})]),_vm._v(\" \"),_c('p',{staticClass:\"feedback-bar-text-after\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.counts.ratingsCountOf1)+\"\\n\\t\\t\\t\\t\\t\")])])])]),_vm._v(\" \"),_c('div',{staticClass:\"col-sm-6\"},[(!_vm.isLoading)?_c('feedback-form',{attrs:{\"variation-id\":_vm.variationId,\"options\":_vm.optionsForm}}):_vm._e()],1)]),_vm._v(\" \"),_c('hr'),_vm._v(\" \"),_c('feedback-list',{attrs:{\"feedbacks\":_vm.authenticatedUser.feedbacks,\"is-last-page\":true,\"show-controls\":true,\"classes\":_vm.classes,\"styles\":_vm.styles,\"options\":_vm.optionsList},on:{\"delete\":function($event){return _vm.showDeleteConfirmation($event)}}}),_vm._v(\" \"),_c('feedback-list',{attrs:{\"feedbacks\":_vm.feedbacks,\"is-last-page\":_vm.pagination.isLastPage,\"show-controls\":false,\"classes\":_vm.classes,\"styles\":_vm.styles,\"options\":_vm.optionsList},on:{\"load-more\":function($event){return _vm.loadFeedbacks()},\"delete\":function($event){return _vm.showDeleteConfirmation($event)}}}),_vm._v(\" \"),(_vm.isLoading)?_c('p',{staticClass:\"loading-hint\"},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.loadingFeedbacks\"))+\"\\n\\t\")]):_vm._e(),_vm._v(\" \"),_c('div',{ref:\"confirmDeleteModal\",staticClass:\"modal fade\",attrs:{\"tabindex\":\"-1\",\"role\":\"dialog\",\"aria-labelledby\":'feedbackConfirmDeleteLabel-' + _vm._uid,\"aria-hidden\":\"true\"}},[_c('div',{staticClass:\"modal-dialog\",attrs:{\"role\":\"document\"}},[_c('div',{staticClass:\"modal-content\"},[_c('div',{staticClass:\"modal-header\"},[_vm._m(5),_vm._v(\" \"),_c('span',{staticClass:\"modal-title h5\",attrs:{\"id\":'feedbackConfirmDeleteLabel-' + _vm._uid}},[_vm._v(_vm._s(_vm.$translate(\"Feedback::Feedback.deleteConfirm\")))])]),_vm._v(\" \"),_c('div',{staticClass:\"modal-body\"},[(!!_vm.feedbackToDelete && _vm.feedbackToDelete.isReply)?_c('p',{staticClass:\"feedback-delete-confirmation\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.deleteReply\"))+\"\\n\\t\\t\\t\\t\\t\")]):_c('p',{staticClass:\"feedback-delete-confirmation\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.deleteReview\"))+\"\\n\\t\\t\\t\\t\\t\")])]),_vm._v(\" \"),_c('div',{staticClass:\"modal-footer\"},[_c('button',{staticClass:\"btn btn-secondary\",attrs:{\"type\":\"button\",\"data-dismiss\":\"modal\"}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.cancel\"))+\"\\n\\t\\t\\t\\t\\t\")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary btn-appearance\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.deleteFeedback()}}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.yesDeleteIt\"))+\"\\n\\t\\t\\t\\t\\t\")])])])])])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"feedback-bar-text-before\"},[_vm._v(\"5 \"),_c('i',{staticClass:\"fa fa-star\"})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"feedback-bar-text-before\"},[_vm._v(\"4 \"),_c('i',{staticClass:\"fa fa-star\"})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"feedback-bar-text-before\"},[_vm._v(\"3 \"),_c('i',{staticClass:\"fa fa-star\"})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"feedback-bar-text-before\"},[_vm._v(\"2 \"),_c('i',{staticClass:\"fa fa-star\"})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"feedback-bar-text-before\"},[_vm._v(\"1 \"),_c('i',{staticClass:\"fa fa-star\"})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"data-dismiss\":\"modal\",\"aria-label\":\"Close\"}},[_c('span',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"×\")])])\n}]\nrender._withStripped = true\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.authenticatedUser.isLoggedIn || _vm.options.allowGuestFeedbacks)?_c('div',{staticClass:\"createFeedback\"},[_c('div',{staticClass:\"stars\"},[_vm._l(([5, 4, 3, 2, 1]),function(i){return [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.feedback.ratingValue),expression:\"feedback.ratingValue\"}],key:'star_input_' + i,class:'star star-' + i,attrs:{\"id\":'star-' + i + _vm._uid,\"type\":\"radio\",\"name\":'ratingValue' + _vm._uid},domProps:{\"value\":i,\"checked\":_vm._q(_vm.feedback.ratingValue,i)},on:{\"change\":function($event){return _vm.$set(_vm.feedback, \"ratingValue\", i)}}}),_vm._v(\" \"),_c('label',{key:'star_label_' + i,class:'star star-' + i,attrs:{\"for\":'star-' + i + _vm._uid}})]})],2),_vm._v(\" \"),(_vm.ratingMissing && !_vm.options.allowNoRatingFeedback)?_c('p',{staticClass:\"feedback-error alert alert-danger\"},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.ratingRequired\"))+\"\\n\\t\\t\")]):_vm._e(),_vm._v(\" \"),(!_vm.authenticatedUser.isLoggedIn && _vm.options.allowGuestFeedbacks)?_c('div',{staticClass:\"form-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.feedback.authorName),expression:\"feedback.authorName\"}],staticClass:\"form-control\",attrs:{\"id\":\"author\",\"type\":\"text\",\"name\":\"author\",\"placeholder\":_vm.$translate('Feedback::Feedback.authorName'),\"disabled\":_vm.authenticatedUser.limitReached || !_vm.authenticatedUser.hasPurchased},domProps:{\"value\":(_vm.feedback.authorName)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.feedback, \"authorName\", $event.target.value)}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.feedback.honeypot),expression:\"feedback.honeypot\"}],staticClass:\"form-control\",attrs:{\"id\":\"feedback-textfield\",\"type\":\"text\",\"name\":\"feedback-textfield\"},domProps:{\"value\":(_vm.feedback.honeypot)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.feedback, \"honeypot\", $event.target.value)}}})]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"form-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.feedback.title),expression:\"feedback.title\"}],staticClass:\"form-control\",class:{ 'is-invalid': _vm.titleMissing },attrs:{\"id\":\"title\",\"type\":\"text\",\"name\":\"title\",\"placeholder\":_vm.$translate('Feedback::Feedback.title'),\"disabled\":_vm.authenticatedUser.limitReached || !_vm.authenticatedUser.hasPurchased},domProps:{\"value\":(_vm.feedback.title)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.feedback, \"title\", $event.target.value)}}}),_vm._v(\" \"),_c('div',{staticClass:\"invalid-feedback\"},[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.titleRequired\"))+\"\\n\\t\\t\\t\")])]),_vm._v(\" \"),_c('div',{staticClass:\"form-group\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.feedback.message),expression:\"feedback.message\"}],staticClass:\"form-control\",attrs:{\"id\":\"message\",\"name\":\"message\",\"rows\":\"3\",\"placeholder\":_vm.$translate('Feedback::Feedback.reviewMessage'),\"disabled\":_vm.authenticatedUser.limitReached || !_vm.authenticatedUser.hasPurchased},domProps:{\"value\":(_vm.feedback.message)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.feedback, \"message\", $event.target.value)}}})]),_vm._v(\" \"),(_vm.authenticatedUser.limitReached)?_c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\"}],staticClass:\"feedback-tooltip-wrapper\",attrs:{\"data-toggle\":\"tooltip\",\"data-placement\":\"top\",\"data-original-title\":_vm.$translate('Feedback::Feedback.maximumNumberOfFeedbacksReached')}},[_c('button',{staticClass:\"btn btn-primary btn-appearance\",attrs:{\"disabled\":\"\"}},[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.submitReview\"))+\"\\n\\t\\t\\t\")])]):(!_vm.authenticatedUser.hasPurchased)?_c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\"}],staticClass:\"feedback-tooltip-wrapper\",attrs:{\"data-toggle\":\"tooltip\",\"data-placement\":\"top\",\"data-original-title\":_vm.$translate('Feedback::Feedback.errorDoesntOwnProduct')}},[_c('button',{staticClass:\"btn btn-primary btn-appearance\",attrs:{\"disabled\":\"\"}},[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.submitReview\"))+\"\\n\\t\\t\\t\")])]):_c('button',{staticClass:\"btn btn-primary btn-appearance\",attrs:{\"disabled\":_vm.isLoading},on:{\"click\":function($event){return _vm.createFeedback()}}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.submitReview\"))+\"\\n\\t\\t\")])]):_c('div',[_c('div',{staticClass:\"alert alert-info\"},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.logInCustomerReviews\"))+\"\\n\\t\\t\")]),_vm._v(\" \"),_c('a',{staticClass:\"btn btn-primary btn-appearance\",attrs:{\"data-toggle\":\"modal\",\"href\":\"#login\"},on:{\"click\":function($event){return _vm.createLoginModal()}}},[_c('span',[_vm._v(_vm._s(_vm.$translate(\"Feedback::Feedback.login\")))]),_vm._v(\" \"),_c('i',{staticClass:\"fa fa-user\",attrs:{\"aria-hidden\":\"true\"}})])])])\n}\nvar staticRenderFns = []\nrender._withStripped = true\nexport { render, staticRenderFns }","<template>\n\t<div>\n\t\t<div v-if=\"authenticatedUser.isLoggedIn || options.allowGuestFeedbacks\" class=\"createFeedback\">\n\t\t\t<div class=\"stars\">\n\t\t\t\t<template v-for=\"i in [5, 4, 3, 2, 1]\">\n\t\t\t\t\t<input\n\t\t\t\t\t\t:id=\"'star-' + i + _uid\"\n\t\t\t\t\t\t:key=\"'star_input_' + i\"\n\t\t\t\t\t\tv-model=\"feedback.ratingValue\"\n\t\t\t\t\t\t:class=\"'star star-' + i\"\n\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t:value=\"i\"\n\t\t\t\t\t\t:name=\"'ratingValue' + _uid\"\n\t\t\t\t\t/>\n\t\t\t\t\t<label :key=\"'star_label_' + i\" :class=\"'star star-' + i\" :for=\"'star-' + i + _uid\" />\n\t\t\t\t</template>\n\t\t\t</div>\n\n\t\t\t<p v-if=\"ratingMissing && !options.allowNoRatingFeedback\" class=\"feedback-error alert alert-danger\">\n\t\t\t\t{{ $translate(\"Feedback::Feedback.ratingRequired\") }}\n\t\t\t</p>\n\n\t\t\t<div v-if=\"!authenticatedUser.isLoggedIn && options.allowGuestFeedbacks\" class=\"form-group\">\n\t\t\t\t<input\n\t\t\t\t\tid=\"author\"\n\t\t\t\t\tv-model=\"feedback.authorName\"\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\tclass=\"form-control\"\n\t\t\t\t\tname=\"author\"\n\t\t\t\t\t:placeholder=\"$translate('Feedback::Feedback.authorName')\"\n\t\t\t\t\t:disabled=\"authenticatedUser.limitReached || !authenticatedUser.hasPurchased\"\n\t\t\t\t/>\n\n\t\t\t\t<input\n\t\t\t\t\tid=\"feedback-textfield\"\n\t\t\t\t\tv-model=\"feedback.honeypot\"\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\tclass=\"form-control\"\n\t\t\t\t\tname=\"feedback-textfield\"\n\t\t\t\t/>\n\t\t\t</div>\n\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<input\n\t\t\t\t\tid=\"title\"\n\t\t\t\t\tv-model=\"feedback.title\"\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\tclass=\"form-control\"\n\t\t\t\t\t:class=\"{ 'is-invalid': titleMissing }\"\n\t\t\t\t\tname=\"title\"\n\t\t\t\t\t:placeholder=\"$translate('Feedback::Feedback.title')\"\n\t\t\t\t\t:disabled=\"authenticatedUser.limitReached || !authenticatedUser.hasPurchased\"\n\t\t\t\t/>\n\n\t\t\t\t<div class=\"invalid-feedback\">\n\t\t\t\t\t{{ $translate(\"Feedback::Feedback.titleRequired\") }}\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<textarea\n\t\t\t\t\tid=\"message\"\n\t\t\t\t\tv-model=\"feedback.message\"\n\t\t\t\t\tclass=\"form-control\"\n\t\t\t\t\tname=\"message\"\n\t\t\t\t\trows=\"3\"\n\t\t\t\t\t:placeholder=\"$translate('Feedback::Feedback.reviewMessage')\"\n\t\t\t\t\t:disabled=\"authenticatedUser.limitReached || !authenticatedUser.hasPurchased\"\n\t\t\t\t/>\n\t\t\t</div>\n\n\t\t\t<div\n\t\t\t\tv-if=\"authenticatedUser.limitReached\"\n\t\t\t\tv-tooltip\n\t\t\t\tclass=\"feedback-tooltip-wrapper\"\n\t\t\t\tdata-toggle=\"tooltip\"\n\t\t\t\tdata-placement=\"top\"\n\t\t\t\t:data-original-title=\"$translate('Feedback::Feedback.maximumNumberOfFeedbacksReached')\"\n\t\t\t>\n\t\t\t\t<button class=\"btn btn-primary btn-appearance\" disabled>\n\t\t\t\t\t{{ $translate(\"Feedback::Feedback.submitReview\") }}\n\t\t\t\t</button>\n\t\t\t</div>\n\n\t\t\t<div\n\t\t\t\tv-else-if=\"!authenticatedUser.hasPurchased\"\n\t\t\t\tv-tooltip\n\t\t\t\tclass=\"feedback-tooltip-wrapper\"\n\t\t\t\tdata-toggle=\"tooltip\"\n\t\t\t\tdata-placement=\"top\"\n\t\t\t\t:data-original-title=\"$translate('Feedback::Feedback.errorDoesntOwnProduct')\"\n\t\t\t>\n\t\t\t\t<button class=\"btn btn-primary btn-appearance\" disabled>\n\t\t\t\t\t{{ $translate(\"Feedback::Feedback.submitReview\") }}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t\t<button v-else class=\"btn btn-primary btn-appearance\" :disabled=\"isLoading\" @click=\"createFeedback()\">\n\t\t\t\t{{ $translate(\"Feedback::Feedback.submitReview\") }}\n\t\t\t</button>\n\t\t</div>\n\t\t<div v-else>\n\t\t\t<div class=\"alert alert-info\">\n\t\t\t\t{{ $translate(\"Feedback::Feedback.logInCustomerReviews\") }}\n\t\t\t</div>\n\n\t\t\t<a class=\"btn btn-primary btn-appearance\" data-toggle=\"modal\" href=\"#login\" @click=\"createLoginModal()\">\n\t\t\t\t<span>{{ $translate(\"Feedback::Feedback.login\") }}</span>\n\t\t\t\t<i class=\"fa fa-user\" aria-hidden=\"true\" />\n\t\t\t</a>\n\t\t</div>\n\t</div>\n</template>\n\n<script>\nimport { mapState } from \"vuex\";\n\nexport default {\n\tname: \"FeedbackForm\",\n\tprops: {\n\t\tvariationId: Number,\n\t\toptions: Object\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tfeedback: {\n\t\t\t\tratingValue: 0,\n\t\t\t\tauthorName: \"\",\n\t\t\t\ttitle: \"\",\n\t\t\t\tmessage: \"\",\n\t\t\t\ttype: \"review\",\n\t\t\t\ttargetId: this.variationId,\n\t\t\t\thoneypot: \"\"\n\t\t\t},\n\t\t\tisLoading: false,\n\t\t\ttitleMissing: false,\n\t\t\tratingMissing: false\n\t\t};\n\t},\n\n\tcomputed: {\n\t\t...mapState({\n\t\t\tauthenticatedUser: state => state.feedback.authenticatedUser\n\t\t})\n\t},\n\n\tmethods: {\n\t\tcreateFeedback() {\n\t\t\tif (this.isLoading) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (this.feedback.honeypot.length > 0) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (!this.options.allowNoRatingFeedback && this.feedback.ratingValue <= 0) {\n\t\t\t\tthis.ratingMissing = true;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (!this.feedback.title) {\n\t\t\t\tthis.titleMissing = true;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.isLoading = true;\n\n\t\t\t$.ajax({\n\t\t\t\ttype: \"POST\",\n\t\t\t\turl: \"/rest/feedbacks/feedback/create\",\n\t\t\t\tdata: this.feedback,\n\t\t\t\tcontentType: \"application/x-www-form-urlencoded; charset=UTF-8\",\n\t\t\t\tdataType: \"json\",\n\t\t\t\txhrFields: {\n\t\t\t\t\twithCredentials: true\n\t\t\t\t},\n\t\t\t\tsuccess: data => {\n\t\t\t\t\tthis.$store.commit(\"addFeedback\", data);\n\t\t\t\t\tthis.isLoading = false;\n\t\t\t\t\tthis.feedback.authorName = \"\";\n\t\t\t\t\tthis.feedback.message = \"\";\n\t\t\t\t\tthis.feedback.title = \"\";\n\t\t\t\t\tthis.feedback.ratingValue = 0;\n\t\t\t\t\tthis.titleMissing = false;\n\t\t\t\t\tthis.ratingMissing = false;\n\t\t\t\t},\n\t\t\t\terror: (jqXHR, textStatus, errorThrown) => {\n\t\t\t\t\tconsole.error(errorThrown);\n\t\t\t\t\tthis.isLoading = false;\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\tcreateLoginModal() {\n\t\t\tthis.$store.dispatch(\"loadComponent\", \"login-modal\");\n\t\t}\n\t}\n};\n</script>\n","import mod from \"-!../../../../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FeedbackForm.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FeedbackForm.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./FeedbackForm.vue?vue&type=template&id=97df3542\"\nimport script from \"./FeedbackForm.vue?vue&type=script&lang=js\"\nexport * from \"./FeedbackForm.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"feedback-list\"},[_vm._l((_vm.feedbacks),function(feedback){return _c('feedback-list-entry',{key:feedback.id,attrs:{\"feedback\":feedback,\"is-reply\":false,\"show-controls\":_vm.showControls,\"classes\":_vm.classes,\"styles\":_vm.styles,\"options\":_vm.options},on:{\"delete\":function($event){return _vm.$emit('delete', $event)}}})}),_vm._v(\" \"),(!_vm.isLastPage)?_c('a',{staticClass:\"btn btn-default btn-block feedback-loadmore\",on:{\"click\":function($event){return _vm.onLoadMoreClicked()}}},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.loadMore\"))+\"\\n\\t\")]):_vm._e()],2)\n}\nvar staticRenderFns = []\nrender._withStripped = true\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"feedback clearfix\",class:{ loading: _vm.isLoading }},[(!_vm.editableFeedback && _vm.showControls)?_c('div',{staticClass:\"feedback-options\"},[(!_vm.feedbackData.isVisible)?_c('span',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\"}],staticClass:\"btn-sm btn-danger\",attrs:{\"data-toggle\":\"tooltip\",\"data-placement\":\"top\",\"data-original-title\":_vm.$translate('Feedback::Feedback.moderationMessage')}},[_c('i',{staticClass:\"fa fa-eye-slash\"})]):_vm._e(),_vm._v(\" \"),(_vm.authenticatedUser.isLoggedIn)?_c('span',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\"}],ref:\"editButton\",staticClass:\"btn btn-sm btn-danger\",attrs:{\"data-toggle\":\"tooltip\",\"data-placement\":\"top\",\"data-original-title\":_vm.isReply ? _vm.$translate('Feedback::Feedback.editReply') : _vm.$translate('Feedback::Feedback.editReview')},on:{\"click\":function($event){return _vm.editFeedback()}}},[_c('i',{staticClass:\"fa fa-pencil\"})]):_vm._e(),_vm._v(\" \"),(_vm.authenticatedUser.isLoggedIn)?_c('span',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\"}],staticClass:\"btn btn-sm btn-danger\",attrs:{\"data-toggle\":\"tooltip\",\"data-placement\":\"top\",\"data-original-title\":_vm.isReply\n\t\t\t\t\t? _vm.$translate('Feedback::Feedback.deleteReply')\n\t\t\t\t\t: _vm.$translate('Feedback::Feedback.deleteReview')},on:{\"click\":function($event){return _vm.showDeleteConfirmation()}}},[_c('i',{staticClass:\"fa fa-trash-o\"})]):_vm._e()]):_vm._e(),_vm._v(\" \"),(!_vm.editableFeedback)?_c('feedback-comment',{attrs:{\"feedback\":_vm.feedbackData,\"is-reply\":_vm.isReply,\"show-controls\":_vm.showControls,\"classes\":_vm.classes,\"styles\":_vm.styles,\"options\":_vm.options},on:{\"delete\":function($event){return _vm.$emit('delete', $event)}}}):_vm._e(),_vm._v(\" \"),(!!_vm.editableFeedback && _vm.isReply)?_c('div',[_c('div',{staticClass:\"form-group\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editableFeedback.message),expression:\"editableFeedback.message\"}],staticClass:\"form-control\",attrs:{\"rows\":\"3\",\"placeholder\":_vm.$translate('Feedback::Feedback.replyMessage')},domProps:{\"value\":(_vm.editableFeedback.message)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.editableFeedback, \"message\", $event.target.value)}}})]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary btn-appearance\",on:{\"click\":function($event){return _vm.saveEditableFeedback()}}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.editReply\"))+\"\\n\\t\\t\")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-secondary feedback-edit-cancel\",on:{\"click\":function($event){_vm.editableFeedback = null}}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.cancel\"))+\"\\n\\t\\t\")])]):_vm._e(),_vm._v(\" \"),(!!_vm.editableFeedback && !_vm.isReply)?_c('div',[_c('div',{staticClass:\"stars\"},[_vm._l(([5, 4, 3, 2, 1]),function(i){return [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editableFeedback.ratingValue),expression:\"editableFeedback.ratingValue\"}],key:'stars_input_' + i,class:'star star-' + i,attrs:{\"id\":'star-' + _vm._uid + '-' + i,\"type\":\"radio\",\"name\":\"ratingValue\"},domProps:{\"value\":i,\"checked\":_vm._q(_vm.editableFeedback.ratingValue,i)},on:{\"change\":function($event){return _vm.$set(_vm.editableFeedback, \"ratingValue\", i)}}}),_vm._v(\" \"),_c('label',{key:'stars_label_' + i,class:'star star-' + i,attrs:{\"for\":'star-' + _vm._uid + '-' + i}})]})],2),_vm._v(\" \"),_c('div',{staticClass:\"form-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editableFeedback.title),expression:\"editableFeedback.title\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"name\":\"title\",\"placeholder\":_vm.$translate('Feedback::Feedback.title'),\"required\":\"\"},domProps:{\"value\":(_vm.editableFeedback.title)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.editableFeedback, \"title\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"form-group\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editableFeedback.message),expression:\"editableFeedback.message\"}],staticClass:\"form-control\",attrs:{\"name\":\"message\",\"rows\":\"3\",\"placeholder\":_vm.$translate('Feedback::Feedback.title')},domProps:{\"value\":(_vm.editableFeedback.message)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.editableFeedback, \"message\", $event.target.value)}}})]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary btn-appearance\",on:{\"click\":function($event){return _vm.saveEditableFeedback()}}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.editReview\"))+\"\\n\\t\\t\")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-secondary feedback-edit-cancel\",on:{\"click\":function($event){_vm.editableFeedback = null}}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.cancel\"))+\"\\n\\t\\t\")])]):_vm._e()],1)\n}\nvar staticRenderFns = []\nrender._withStripped = true\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"feedback-comment\",class:_vm.classes,style:(_vm.styles)},[(!_vm.isReply)?_c('div',[_c('p',{staticClass:\"feedback-comment-title\"},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.feedbackData.title)+\"\\n\\t\\t\")]),_vm._v(\" \"),(_vm.feedbackData.feedbackRating.rating.ratingValue > 0)?_c('div',{staticClass:\"feedback-rating\"},_vm._l((5),function(i){return _c('i',{key:'feedback_rating_' + i,staticClass:\"fa fa-star\",class:{\n\t\t\t\t\tfull: _vm.feedbackData.feedbackRating.rating.ratingValue >= i,\n\t\t\t\t\tempty: _vm.feedbackData.feedbackRating.rating.ratingValue < i\n\t\t\t\t}})}),0):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"feedback-attributes-list\"},[_c('p',[(_vm.isPurchased)?_c('span',{staticClass:\"feedback-verified-tag\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.verifiedPurchase\"))+\"\\n\\t\\t\\t\\t\")]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.variationAttributes),function(variationAttribute,index){return _c('span',{key:'feedback_attributes_' + index,staticClass:\"feedback-attributes\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(variationAttribute.name)+\": \"+_vm._s(variationAttribute.value)+\"\\n\\t\\t\\t\\t\")])})],2)])]):_vm._e(),_vm._v(\" \"),_c('p',{staticClass:\"feedback-comment-text\",domProps:{\"textContent\":_vm._s(_vm.message)}}),_vm._v(\" \"),_c('p',{staticClass:\"feedback-info\"},[_c('span',{staticClass:\"feedback-info-segment\"},[_c('strong',[(_vm.feedbackData.sourceRelation[0].feedbackRelationType === 'user')?_c('span',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\"}],staticClass:\"feedback-admin\",attrs:{\"data-toggle\":\"tooltip\",\"data-placement\":\"top\",\"data-original-title\":_vm.$translate('Feedback::Feedback.shopManagerLabel')}},[_c('i',{staticClass:\"fa fa-check-square\"}),_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.feedbackData.sourceRelation[0].sourceRelationLabel)+\"\\n\\t\\t\\t\\t\")]):(\n\t\t\t\t\t\t_vm.feedbackData.sourceRelation[0].feedbackRelationType === 'contact' &&\n\t\t\t\t\t\t\t_vm.feedbackData.sourceRelation[0].feedbackRelationSourceId > 0\n\t\t\t\t\t)?_c('span',[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.feedbackData.sourceRelation[0].sourceRelationLabel)+\"\\n\\t\\t\\t\\t\")]):(\n\t\t\t\t\t\t_vm.feedbackData.sourceRelation[0].feedbackRelationSourceId == 0 &&\n\t\t\t\t\t\t\t_vm.feedback.authorName.length > 0\n\t\t\t\t\t)?_c('span',[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.feedbackData.authorName)+\"\\n\\t\\t\\t\\t\")]):_c('span',[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.displayName)+\"\\n\\t\\t\\t\\t\")])])]),_vm._v(\" \"),(_vm.options.timestampVisibility)?_c('span',{staticClass:\"feedback-info-segment\"},[_c('i',{staticClass:\"fa fa-calendar text-muted\"}),_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm._f(\"date\")(_vm.feedbackData.createdAt,_vm.$translate(\"Ceres::Template.devDateFormatMoment\") || \"DD.MM.YYYY\"))+\"\\n\\t\\t\")]):_vm._e(),_vm._v(\" \"),(!_vm.isReply && (_vm.authenticatedUser.isLoggedIn || _vm.options.allowGuestFeedbacks))?_c('span',{staticClass:\"feedback-info-segment btn btn-sm btn-default\",on:{\"click\":function($event){_vm.replyFormVisible = !_vm.replyFormVisible}}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.addComment\"))+\"\\n\\t\\t\")]):_vm._e(),_vm._v(\" \"),(!!_vm.feedbackData.replies && _vm.feedbackData.replies.length > 0 && !_vm.replyListVisible)?_c('span',{staticClass:\"feedback-info-segment btn btn-sm btn-default\",on:{\"click\":function($event){_vm.replyListVisible = !_vm.replyListVisible}}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.viewComments\"))+\" (\"+_vm._s(_vm.feedbackData.replies.length)+\")\\n\\t\\t\")]):(!!_vm.feedbackData.replies && _vm.feedbackData.replies.length > 0 && _vm.replyListVisible)?_c('span',{staticClass:\"feedback-info-segment btn btn-sm btn-default\",on:{\"click\":function($event){_vm.replyListVisible = !_vm.replyListVisible}}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.hideComments\"))+\"\\n\\t\\t\")]):_vm._e()]),_vm._v(\" \"),(_vm.replyFormVisible && !_vm.isReply && (_vm.authenticatedUser.isLoggedIn || _vm.options.allowGuestFeedbacks))?_c('div',{staticClass:\"feedback-add-reply\"},[(!_vm.authenticatedUser.isLoggedIn && _vm.options.allowGuestFeedbacks)?_c('div',{staticClass:\"form-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.authorName),expression:\"authorName\"}],staticClass:\"form-control\",attrs:{\"id\":\"author\",\"type\":\"text\",\"name\":\"author\",\"placeholder\":_vm.$translate('Feedback::Feedback.authorName'),\"disabled\":_vm.authenticatedUser.limitReached || !_vm.authenticatedUser.hasPurchased},domProps:{\"value\":(_vm.authorName)},on:{\"input\":function($event){if($event.target.composing)return;_vm.authorName=$event.target.value}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.honeypot),expression:\"honeypot\"}],staticClass:\"form-control\",attrs:{\"id\":\"comment-textfield\",\"type\":\"text\",\"name\":\"comment-textfield\"},domProps:{\"value\":(_vm.honeypot)},on:{\"input\":function($event){if($event.target.composing)return;_vm.honeypot=$event.target.value}}})]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"form-group\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.replyMessage),expression:\"replyMessage\"}],staticClass:\"form-control\",attrs:{\"name\":\"message\",\"rows\":\"3\",\"placeholder\":_vm.$translate('Feedback::Feedback.commentMessage')},domProps:{\"value\":(_vm.replyMessage)},on:{\"input\":function($event){if($event.target.composing)return;_vm.replyMessage=$event.target.value}}})]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary btn-appearance\",attrs:{\"disabled\":!_vm.replyMessage},on:{\"click\":function($event){return _vm.createReply()}}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.$translate(\"Feedback::Feedback.submitComment\"))+\"\\n\\t\\t\")])]):_vm._e(),_vm._v(\" \"),(!!_vm.feedbackData.replies && _vm.feedbackData.replies.length > 0 && _vm.replyListVisible)?_c('div',{staticClass:\"feedback-replies\"},_vm._l((_vm.feedbackData.replies),function(reply){return _c('feedback-list-entry',{key:reply.id,attrs:{\"feedback\":reply,\"is-reply\":true,\"show-controls\":_vm.showControls,\"classes\":_vm.classes,\"styles\":_vm.styles,\"options\":_vm.options},on:{\"delete\":function($event){return _vm.$emit('delete', $event)}}})}),1):_vm._e()])\n}\nvar staticRenderFns = []\nrender._withStripped = true\nexport { render, staticRenderFns }","<template>\n\t<div class=\"feedback-comment\" :class=\"classes\" :style=\"styles\">\n\t\t<div v-if=\"!isReply\">\n\t\t\t<p class=\"feedback-comment-title\">\n\t\t\t\t{{ feedbackData.title }}\n\t\t\t</p>\n\n\t\t\t<div v-if=\"feedbackData.feedbackRating.rating.ratingValue > 0\" class=\"feedback-rating\">\n\t\t\t\t<i\n\t\t\t\t\tv-for=\"i in 5\"\n\t\t\t\t\t:key=\"'feedback_rating_' + i\"\n\t\t\t\t\tclass=\"fa fa-star\"\n\t\t\t\t\t:class=\"{\n\t\t\t\t\t\tfull: feedbackData.feedbackRating.rating.ratingValue >= i,\n\t\t\t\t\t\tempty: feedbackData.feedbackRating.rating.ratingValue < i\n\t\t\t\t\t}\"\n\t\t\t\t/>\n\t\t\t</div>\n\n\t\t\t<div class=\"feedback-attributes-list\">\n\t\t\t\t<p>\n\t\t\t\t\t<span v-if=\"isPurchased\" class=\"feedback-verified-tag\">\n\t\t\t\t\t\t{{ $translate(\"Feedback::Feedback.verifiedPurchase\") }}\n\t\t\t\t\t</span>\n\n\t\t\t\t\t<span\n\t\t\t\t\t\tv-for=\"(variationAttribute, index) in variationAttributes\"\n\t\t\t\t\t\t:key=\"'feedback_attributes_' + index\"\n\t\t\t\t\t\tclass=\"feedback-attributes\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{{ variationAttribute.name }}: {{ variationAttribute.value }}\n\t\t\t\t\t</span>\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<p class=\"feedback-comment-text\" v-text=\"message\" />\n\t\t<p class=\"feedback-info\">\n\t\t\t<span class=\"feedback-info-segment\">\n\t\t\t\t<strong>\n\t\t\t\t\t<span\n\t\t\t\t\t\tv-if=\"feedbackData.sourceRelation[0].feedbackRelationType === 'user'\"\n\t\t\t\t\t\tv-tooltip\n\t\t\t\t\t\tclass=\"feedback-admin\"\n\t\t\t\t\t\tdata-toggle=\"tooltip\"\n\t\t\t\t\t\tdata-placement=\"top\"\n\t\t\t\t\t\t:data-original-title=\"$translate('Feedback::Feedback.shopManagerLabel')\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<i class=\"fa fa-check-square\" />\n\t\t\t\t\t\t{{ feedbackData.sourceRelation[0].sourceRelationLabel }}\n\t\t\t\t\t</span>\n\t\t\t\t\t<span\n\t\t\t\t\t\tv-else-if=\"\n\t\t\t\t\t\t\tfeedbackData.sourceRelation[0].feedbackRelationType === 'contact' &&\n\t\t\t\t\t\t\t\tfeedbackData.sourceRelation[0].feedbackRelationSourceId > 0\n\t\t\t\t\t\t\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{{ feedbackData.sourceRelation[0].sourceRelationLabel }}\n\t\t\t\t\t</span>\n\t\t\t\t\t<span\n\t\t\t\t\t\tv-else-if=\"\n\t\t\t\t\t\t\tfeedbackData.sourceRelation[0].feedbackRelationSourceId == 0 &&\n\t\t\t\t\t\t\t\tfeedback.authorName.length > 0\n\t\t\t\t\t\t\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{{ feedbackData.authorName }}\n\t\t\t\t\t</span>\n\t\t\t\t\t<span v-else>\n\t\t\t\t\t\t{{ displayName }}\n\t\t\t\t\t</span>\n\t\t\t\t</strong>\n\t\t\t</span>\n\n\t\t\t<span v-if=\"options.timestampVisibility\" class=\"feedback-info-segment\">\n\t\t\t\t<i class=\"fa fa-calendar text-muted\" />\n\t\t\t\t{{ feedbackData.createdAt | date($translate(\"Ceres::Template.devDateFormatMoment\") || \"DD.MM.YYYY\") }}\n\t\t\t</span>\n\n\t\t\t<span\n\t\t\t\tv-if=\"!isReply && (authenticatedUser.isLoggedIn || options.allowGuestFeedbacks)\"\n\t\t\t\tclass=\"feedback-info-segment btn btn-sm btn-default\"\n\t\t\t\t@click=\"replyFormVisible = !replyFormVisible\"\n\t\t\t>\n\t\t\t\t{{ $translate(\"Feedback::Feedback.addComment\") }}\n\t\t\t</span>\n\n\t\t\t<span\n\t\t\t\tv-if=\"!!feedbackData.replies && feedbackData.replies.length > 0 && !replyListVisible\"\n\t\t\t\tclass=\"feedback-info-segment btn btn-sm btn-default\"\n\t\t\t\t@click=\"replyListVisible = !replyListVisible\"\n\t\t\t>\n\t\t\t\t{{ $translate(\"Feedback::Feedback.viewComments\") }} ({{ feedbackData.replies.length }})\n\t\t\t</span>\n\t\t\t<span\n\t\t\t\tv-else-if=\"!!feedbackData.replies && feedbackData.replies.length > 0 && replyListVisible\"\n\t\t\t\tclass=\"feedback-info-segment btn btn-sm btn-default\"\n\t\t\t\t@click=\"replyListVisible = !replyListVisible\"\n\t\t\t>\n\t\t\t\t{{ $translate(\"Feedback::Feedback.hideComments\") }}\n\t\t\t</span>\n\t\t</p>\n\n\t\t<div\n\t\t\tv-if=\"replyFormVisible && !isReply && (authenticatedUser.isLoggedIn || options.allowGuestFeedbacks)\"\n\t\t\tclass=\"feedback-add-reply\"\n\t\t>\n\t\t\t<div v-if=\"!authenticatedUser.isLoggedIn && options.allowGuestFeedbacks\" class=\"form-group\">\n\t\t\t\t<input\n\t\t\t\t\tid=\"author\"\n\t\t\t\t\tv-model=\"authorName\"\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\tclass=\"form-control\"\n\t\t\t\t\tname=\"author\"\n\t\t\t\t\t:placeholder=\"$translate('Feedback::Feedback.authorName')\"\n\t\t\t\t\t:disabled=\"authenticatedUser.limitReached || !authenticatedUser.hasPurchased\"\n\t\t\t\t/>\n\n\t\t\t\t<input\n\t\t\t\t\tid=\"comment-textfield\"\n\t\t\t\t\tv-model=\"honeypot\"\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\tclass=\"form-control\"\n\t\t\t\t\tname=\"comment-textfield\"\n\t\t\t\t/>\n\t\t\t</div>\n\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<textarea\n\t\t\t\t\tv-model=\"replyMessage\"\n\t\t\t\t\tclass=\"form-control\"\n\t\t\t\t\tname=\"message\"\n\t\t\t\t\trows=\"3\"\n\t\t\t\t\t:placeholder=\"$translate('Feedback::Feedback.commentMessage')\"\n\t\t\t\t/>\n\t\t\t</div>\n\n\t\t\t<button class=\"btn btn-primary btn-appearance\" :disabled=\"!replyMessage\" @click=\"createReply()\">\n\t\t\t\t{{ $translate(\"Feedback::Feedback.submitComment\") }}\n\t\t\t</button>\n\t\t</div>\n\n\t\t<div\n\t\t\tv-if=\"!!feedbackData.replies && feedbackData.replies.length > 0 && replyListVisible\"\n\t\t\tclass=\"feedback-replies\"\n\t\t>\n\t\t\t<feedback-list-entry\n\t\t\t\tv-for=\"reply in feedbackData.replies\"\n\t\t\t\t:key=\"reply.id\"\n\t\t\t\t:feedback=\"reply\"\n\t\t\t\t:is-reply=\"true\"\n\t\t\t\t:show-controls=\"showControls\"\n\t\t\t\t:classes=\"classes\"\n\t\t\t\t:styles=\"styles\"\n\t\t\t\t:options=\"options\"\n\t\t\t\t@delete=\"$emit('delete', $event)\"\n\t\t\t/>\n\t\t</div>\n\t</div>\n</template>\n\n<script>\nimport FeedbackListEntry from \"./FeedbackListEntry.vue\";\nimport { mapState } from \"vuex\";\n\nexport default {\n\tname: \"FeedbackComment\",\n\tcomponents: {\n\t\t\"feedback-list-entry\": FeedbackListEntry\n\t},\n\tprops: {\n\t\tfeedback: Object,\n\t\tisReply: Boolean,\n\t\tshowControls: Boolean,\n\t\tclasses: String,\n\t\tstyles: String,\n\t\toptions: Object\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tauthorName: \"\",\n\t\t\treplyMessage: \"\",\n\t\t\treplyFormVisible: false,\n\t\t\treplyListVisible: false,\n\t\t\thoneypot: \"\",\n\t\t\tfeedbackData: {}\n\t\t};\n\t},\n\n\tcomputed: {\n\t\tvariationAttributes() {\n\t\t\tif (\n\t\t\t\tthis.feedbackData.targetRelation.feedbackRelationType !== \"variation\" ||\n\t\t\t\tthis.feedbackData.targetRelation.targetRelationName.length <= 0 ||\n\t\t\t\t!this.feedbackData.targetRelation.variationAttributes ||\n\t\t\t\t!this.itemAttributes\n\t\t\t) {\n\t\t\t\treturn [];\n\t\t\t}\n\n\t\t\tconst _self = this;\n\t\t\treturn this.feedbackData.targetRelation.variationAttributes\n\t\t\t\t.map(function(attributeIds) {\n\t\t\t\t\tconst targetId = _self.feedbackData.targetRelation.feedbackRelationTargetId;\n\t\t\t\t\tif (\n\t\t\t\t\t\t!Object.prototype.hasOwnProperty.call(_self.itemAttributes, targetId) ||\n\t\t\t\t\t\t!Object.prototype.hasOwnProperty.call(\n\t\t\t\t\t\t\t_self.itemAttributes[targetId],\n\t\t\t\t\t\t\tattributeIds.attributeId\n\t\t\t\t\t\t) ||\n\t\t\t\t\t\t!Object.prototype.hasOwnProperty.call(\n\t\t\t\t\t\t\t_self.itemAttributes[targetId][attributeIds.attributeId],\n\t\t\t\t\t\t\tattributeIds.valueId\n\t\t\t\t\t\t)\n\t\t\t\t\t) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tconst attribute = _self.itemAttributes[targetId][attributeIds.attributeId][attributeIds.valueId];\n\t\t\t\t\treturn {\n\t\t\t\t\t\tname: attribute.attributeName,\n\t\t\t\t\t\tvalue: attribute.attributeValue\n\t\t\t\t\t};\n\t\t\t\t})\n\t\t\t\t.filter(function(entry) {\n\t\t\t\t\treturn entry !== null;\n\t\t\t\t});\n\t\t},\n\n\t\tdisplayName() {\n\t\t\tconst rawName = this.feedbackData.sourceRelation[0].sourceRelationLabel;\n\t\t\tconst guestName = this.$translate(\"Feedback::Feedback.guestName\");\n\t\t\treturn guestName !== \" \" ? guestName : rawName;\n\t\t},\n\n\t\tmessage() {\n\t\t\tif (!this.feedbackData.feedbackComment) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\treturn this.feedbackData.feedbackComment.comment.message;\n\t\t},\n\n\t\tisPurchased() {\n\t\t\treturn this.feedbackData.sourceRelation.find(function(relation) {\n\t\t\t\treturn relation.feedbackRelationType === \"orderItem\";\n\t\t\t});\n\t\t},\n\n\t\t...mapState({\n\t\t\tauthenticatedUser: state => state.feedback.authenticatedUser,\n\t\t\titemAttributes: state => state.feedback.itemAttributes\n\t\t})\n\t},\n\n\tcreated() {\n\t\tthis.feedbackData = this.feedback;\n\t},\n\n\tmethods: {\n\t\tcreateReply() {\n\t\t\tif (!this.replyMessage || this.honeypot.length > 0) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst _self = this;\n\t\t\t$.ajax({\n\t\t\t\ttype: \"POST\",\n\t\t\t\turl: \"/rest/feedbacks/feedback/create\",\n\t\t\t\tdata: {\n\t\t\t\t\tauthorName: this.authorName,\n\t\t\t\t\tmessage: this.replyMessage,\n\t\t\t\t\ttargetId: this.feedbackData.id,\n\t\t\t\t\ttype: \"reply\"\n\t\t\t\t},\n\t\t\t\tcontentType: \"application/x-www-form-urlencoded; charset=UTF-8\",\n\t\t\t\tdataType: \"json\",\n\t\t\t\txhrFields: {\n\t\t\t\t\twithCredentials: true\n\t\t\t\t},\n\t\t\t\tsuccess: function(data) {\n\t\t\t\t\tif (!_self.feedbackData.replies) {\n\t\t\t\t\t\t_self.feedbackData.replies = [];\n\t\t\t\t\t}\n\t\t\t\t\t_self.feedbackData.replies.unshift(data);\n\t\t\t\t\t_self.replyMessage = \"\";\n\t\t\t\t\t_self.replyFormVisible = false;\n\t\t\t\t\t_self.replyListVisible = true;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n};\n</script>\n","import mod from \"-!../../../../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FeedbackComment.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FeedbackComment.vue?vue&type=script&lang=js\"","<template>\n\t<div class=\"feedback clearfix\" :class=\"{ loading: isLoading }\">\n\t\t<div v-if=\"!editableFeedback && showControls\" class=\"feedback-options\">\n\t\t\t<span\n\t\t\t\tv-if=\"!feedbackData.isVisible\"\n\t\t\t\tv-tooltip\n\t\t\t\tclass=\"btn-sm btn-danger\"\n\t\t\t\tdata-toggle=\"tooltip\"\n\t\t\t\tdata-placement=\"top\"\n\t\t\t\t:data-original-title=\"$translate('Feedback::Feedback.moderationMessage')\"\n\t\t\t>\n\t\t\t\t<i class=\"fa fa-eye-slash\" />\n\t\t\t</span>\n\n\t\t\t<span\n\t\t\t\tv-if=\"authenticatedUser.isLoggedIn\"\n\t\t\t\tref=\"editButton\"\n\t\t\t\tv-tooltip\n\t\t\t\tclass=\"btn btn-sm btn-danger\"\n\t\t\t\tdata-toggle=\"tooltip\"\n\t\t\t\tdata-placement=\"top\"\n\t\t\t\t:data-original-title=\"\n\t\t\t\t\tisReply ? $translate('Feedback::Feedback.editReply') : $translate('Feedback::Feedback.editReview')\n\t\t\t\t\"\n\t\t\t\t@click=\"editFeedback()\"\n\t\t\t>\n\t\t\t\t<i class=\"fa fa-pencil\" />\n\t\t\t</span>\n\n\t\t\t<span\n\t\t\t\tv-if=\"authenticatedUser.isLoggedIn\"\n\t\t\t\tv-tooltip\n\t\t\t\tclass=\"btn btn-sm btn-danger\"\n\t\t\t\tdata-toggle=\"tooltip\"\n\t\t\t\tdata-placement=\"top\"\n\t\t\t\t:data-original-title=\"\n\t\t\t\t\tisReply\n\t\t\t\t\t\t? $translate('Feedback::Feedback.deleteReply')\n\t\t\t\t\t\t: $translate('Feedback::Feedback.deleteReview')\n\t\t\t\t\"\n\t\t\t\t@click=\"showDeleteConfirmation()\"\n\t\t\t>\n\t\t\t\t<i class=\"fa fa-trash-o\" />\n\t\t\t</span>\n\t\t</div>\n\n\t\t<feedback-comment\n\t\t\tv-if=\"!editableFeedback\"\n\t\t\t:feedback=\"feedbackData\"\n\t\t\t:is-reply=\"isReply\"\n\t\t\t:show-controls=\"showControls\"\n\t\t\t:classes=\"classes\"\n\t\t\t:styles=\"styles\"\n\t\t\t:options=\"options\"\n\t\t\t@delete=\"$emit('delete', $event)\"\n\t\t/>\n\n\t\t<div v-if=\"!!editableFeedback && isReply\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<textarea\n\t\t\t\t\tv-model=\"editableFeedback.message\"\n\t\t\t\t\tclass=\"form-control\"\n\t\t\t\t\trows=\"3\"\n\t\t\t\t\t:placeholder=\"$translate('Feedback::Feedback.replyMessage')\"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<button class=\"btn btn-primary btn-appearance\" @click=\"saveEditableFeedback()\">\n\t\t\t\t{{ $translate(\"Feedback::Feedback.editReply\") }}\n\t\t\t</button>\n\t\t\t<button class=\"btn btn-secondary feedback-edit-cancel\" @click=\"editableFeedback = null\">\n\t\t\t\t{{ $translate(\"Feedback::Feedback.cancel\") }}\n\t\t\t</button>\n\t\t</div>\n\n\t\t<div v-if=\"!!editableFeedback && !isReply\">\n\t\t\t<div class=\"stars\">\n\t\t\t\t<template v-for=\"i in [5, 4, 3, 2, 1]\">\n\t\t\t\t\t<input\n\t\t\t\t\t\t:id=\"'star-' + _uid + '-' + i\"\n\t\t\t\t\t\t:key=\"'stars_input_' + i\"\n\t\t\t\t\t\tv-model=\"editableFeedback.ratingValue\"\n\t\t\t\t\t\t:class=\"'star star-' + i\"\n\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t:value=\"i\"\n\t\t\t\t\t\tname=\"ratingValue\"\n\t\t\t\t\t/>\n\t\t\t\t\t<label :key=\"'stars_label_' + i\" :class=\"'star star-' + i\" :for=\"'star-' + _uid + '-' + i\" />\n\t\t\t\t</template>\n\t\t\t</div>\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<input\n\t\t\t\t\tv-model=\"editableFeedback.title\"\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\tclass=\"form-control\"\n\t\t\t\t\tname=\"title\"\n\t\t\t\t\t:placeholder=\"$translate('Feedback::Feedback.title')\"\n\t\t\t\t\trequired\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<textarea\n\t\t\t\t\tv-model=\"editableFeedback.message\"\n\t\t\t\t\tclass=\"form-control\"\n\t\t\t\t\tname=\"message\"\n\t\t\t\t\trows=\"3\"\n\t\t\t\t\t:placeholder=\"$translate('Feedback::Feedback.title')\"\n\t\t\t\t/>\n\t\t\t</div>\n\n\t\t\t<button class=\"btn btn-primary btn-appearance\" @click=\"saveEditableFeedback()\">\n\t\t\t\t{{ $translate(\"Feedback::Feedback.editReview\") }}\n\t\t\t</button>\n\t\t\t<button class=\"btn btn-secondary feedback-edit-cancel\" @click=\"editableFeedback = null\">\n\t\t\t\t{{ $translate(\"Feedback::Feedback.cancel\") }}\n\t\t\t</button>\n\t\t</div>\n\t</div>\n</template>\n\n<script>\nimport { mapState } from \"vuex\";\nimport FeedbackComment from \"./FeedbackComment.vue\";\n\nexport default {\n\tname: \"FeedbackListEntry\",\n\n    components: {\n        FeedbackComment\n    },\n\n\tprops: {\n\t\tfeedback: Object,\n\t\tisReply: Boolean,\n\t\tshowControls: Boolean,\n\t\tclasses: String,\n\t\tstyles: String,\n\t\toptions: Object\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\teditableFeedback: null,\n\t\t\tisLoading: false,\n\t\t\tfeedbackData: {}\n\t\t};\n\t},\n\n\tcreated() {\n\t\tthis.feedbackData = this.feedback;\n\t},\n\n\tcomputed: {\n\t\t...mapState({\n\t\t\tauthenticatedUser: state => state.feedback.authenticatedUser\n\t\t})\n\t},\n\n\tmethods: {\n\t\tshowDeleteConfirmation() {\n\t\t\tlet parentFeedbackId = null;\n\t\t\tif (this.isReply) {\n\t\t\t\tparentFeedbackId = parseInt(this.feedbackData.targetRelation.feedbackRelationTargetId);\n\t\t\t}\n\t\t\tthis.$emit(\"delete\", {\n\t\t\t\tfeedbackId: this.feedbackData.id,\n\t\t\t\tisReply: this.isReply,\n\t\t\t\tparentFeedbackId: parentFeedbackId,\n\t\t\t\tfeedbackObject: this.feedbackData\n\t\t\t});\n\t\t},\n\n\t\teditFeedback() {\n\t\t\tif (this.editableFeedback === null) {\n\t\t\t\t$(this.$refs.editButton).tooltip(\"dispose\");\n\t\t\t\tthis.editableFeedback = {\n\t\t\t\t\ttitle: \"\",\n\t\t\t\t\tmessage: this.feedbackData.feedbackComment.comment.message,\n\t\t\t\t\tratingValue: -1,\n\t\t\t\t\tisReply: this.isReply\n\t\t\t\t};\n\n\t\t\t\tif (!this.isReply) {\n\t\t\t\t\tthis.editableFeedback.title = this.feedbackData.title;\n\t\t\t\t\tthis.editableFeedback.ratingValue = this.feedbackData.feedbackRating.rating.ratingValue;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tsaveEditableFeedback() {\n\t\t\tconst _self = this;\n\t\t\tif (this.editableFeedback !== null) {\n\t\t\t\tconst editableFeedback = this.editableFeedback;\n\t\t\t\tconst requestBody = {\n\t\t\t\t\tmessage: editableFeedback.message\n\t\t\t\t};\n\n\t\t\t\tif (!editableFeedback.isReply) {\n\t\t\t\t\trequestBody.title = editableFeedback.title;\n\t\t\t\t\trequestBody.ratingValue = editableFeedback.ratingValue;\n\t\t\t\t}\n\n\t\t\t\tthis.isLoading = true;\n\t\t\t\t$.ajax({\n\t\t\t\t\ttype: \"PUT\",\n\t\t\t\t\turl: \"/rest/feedbacks/feedback/update/\" + this.feedback.id,\n\t\t\t\t\tdata: requestBody,\n\t\t\t\t\tsuccess: function(data) {\n\t\t\t\t\t\t_self.feedbackData.feedbackComment.comment.message = editableFeedback.message;\n\t\t\t\t\t\t_self.feedbackData.isVisible = data.isVisible;\n\n\t\t\t\t\t\tif (!editableFeedback.isReply) {\n\t\t\t\t\t\t\t_self.feedbackData.title = editableFeedback.title;\n\t\t\t\t\t\t\t_self.feedbackData.feedbackRating.rating.ratingValue = editableFeedback.ratingValue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t_self.isLoading = false;\n\t\t\t\t\t},\n\t\t\t\t\terror: function(jqXHR, textStatus, errorThrown) {\n\t\t\t\t\t\tconsole.error(errorThrown);\n\t\t\t\t\t\t_self.isLoading = false;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tthis.editableFeedback = null;\n\t\t}\n\t}\n};\n</script>\n","import mod from \"-!../../../../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FeedbackListEntry.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FeedbackListEntry.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./FeedbackComment.vue?vue&type=template&id=1353e2ee\"\nimport script from \"./FeedbackComment.vue?vue&type=script&lang=js\"\nexport * from \"./FeedbackComment.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports","import { render, staticRenderFns } from \"./FeedbackListEntry.vue?vue&type=template&id=4f56b498\"\nimport script from \"./FeedbackListEntry.vue?vue&type=script&lang=js\"\nexport * from \"./FeedbackListEntry.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports","import mod from \"-!../../../../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FeedbackList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FeedbackList.vue?vue&type=script&lang=js\"","<template>\n\t<div class=\"feedback-list\">\n\t\t<feedback-list-entry\n\t\t\tv-for=\"feedback in feedbacks\"\n\t\t\t:key=\"feedback.id\"\n\t\t\t:feedback=\"feedback\"\n\t\t\t:is-reply=\"false\"\n\t\t\t:show-controls=\"showControls\"\n\t\t\t:classes=\"classes\"\n\t\t\t:styles=\"styles\"\n\t\t\t:options=\"options\"\n\t\t\t@delete=\"$emit('delete', $event)\"\n\t\t/>\n\n\t\t<a v-if=\"!isLastPage\" class=\"btn btn-default btn-block feedback-loadmore\" @click=\"onLoadMoreClicked()\">\n\t\t\t{{ $translate(\"Feedback::Feedback.loadMore\") }}\n\t\t</a>\n\t</div>\n</template>\n\n<script>\nimport FeedbackListEntry from \"./FeedbackListEntry.vue\";\n\nexport default {\n\tname: \"FeedbackList\",\n\tcomponents: {\n\t\t\"feedback-list-entry\": FeedbackListEntry\n\t},\n\tprops: {\n\t\tfeedbacks: Array,\n\t\tisLastPage: Boolean,\n\t\tshowControls: Boolean,\n\t\tclasses: String,\n\t\tstyles: String,\n\t\toptions: Object\n\t},\n\n\tmethods: {\n\t\tonLoadMoreClicked() {\n\t\t\tthis.$emit(\"load-more\");\n\t\t}\n\t}\n};\n</script>\n","<template>\n\t<section class=\"feedback-container\">\n\t\t<div class=\"title\">\n\t\t\t{{ $translate(\"Feedback::Feedback.customerReviews\") }}\n\t\t\t<small class=\"feedback-average-count\"> ({{ counts.ratingsCountTotal }})</small>\n\t\t</div>\n\t\t<div class=\"feedback-stars-average\">\n\t\t\t<div class=\"feedback-stars-background clearfix\">\n\t\t\t\t<div v-for=\"index in 5\" :key=\"'feedback_stars_background' + index\" class=\"feedback-star\">\n\t\t\t\t\t<i class=\"fa fa-star\" />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"feedback-stars-overlay-wrap\" :style=\"{ width: (counts.averageValue * 100) / 5 + '%' }\">\n\t\t\t\t<div class=\"feedback-stars-overlay clearfix\">\n\t\t\t\t\t<div v-for=\"index in 5\" :key=\"'feedback_stars_overlay_' + index\" class=\"feedback-star\">\n\t\t\t\t\t\t<i class=\"fa fa-star\" />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<hr />\n\t\t<div class=\"row my-2\" :class=\"classes\" :style=\"styles\">\n\t\t\t<div class=\"col-sm-6\">\n\t\t\t\t<div class=\"feedback-bars\">\n\t\t\t\t\t<div class=\"feedback-bar-wrap\">\n\t\t\t\t\t\t<p class=\"feedback-bar-text-before\">5 <i class=\"fa fa-star\" /></p>\n\t\t\t\t\t\t<div class=\"feedback-bar\">\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass=\"feedback-bar-fill bg-primary bg-appearance\"\n\t\t\t\t\t\t\t\t:style=\"{ width: (counts.ratingsCountOf5 / counts.highestCount) * 100 + '%' }\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<p class=\"feedback-bar-text-after\">\n\t\t\t\t\t\t\t{{ counts.ratingsCountOf5 }}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=\"feedback-bar-wrap\">\n\t\t\t\t\t\t<p class=\"feedback-bar-text-before\">4 <i class=\"fa fa-star\" /></p>\n\t\t\t\t\t\t<div class=\"feedback-bar\">\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass=\"feedback-bar-fill bg-primary bg-appearance\"\n\t\t\t\t\t\t\t\t:style=\"{ width: (counts.ratingsCountOf4 / counts.highestCount) * 100 + '%' }\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<p class=\"feedback-bar-text-after\">\n\t\t\t\t\t\t\t{{ counts.ratingsCountOf4 }}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=\"feedback-bar-wrap\">\n\t\t\t\t\t\t<p class=\"feedback-bar-text-before\">3 <i class=\"fa fa-star\" /></p>\n\t\t\t\t\t\t<div class=\"feedback-bar\">\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass=\"feedback-bar-fill bg-primary bg-appearance\"\n\t\t\t\t\t\t\t\t:style=\"{ width: (counts.ratingsCountOf3 / counts.highestCount) * 100 + '%' }\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<p class=\"feedback-bar-text-after\">\n\t\t\t\t\t\t\t{{ counts.ratingsCountOf3 }}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=\"feedback-bar-wrap\">\n\t\t\t\t\t\t<p class=\"feedback-bar-text-before\">2 <i class=\"fa fa-star\" /></p>\n\t\t\t\t\t\t<div class=\"feedback-bar\">\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass=\"feedback-bar-fill bg-primary bg-appearance\"\n\t\t\t\t\t\t\t\t:style=\"{ width: (counts.ratingsCountOf2 / counts.highestCount) * 100 + '%' }\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<p class=\"feedback-bar-text-after\">\n\t\t\t\t\t\t\t{{ counts.ratingsCountOf2 }}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=\"feedback-bar-wrap\">\n\t\t\t\t\t\t<p class=\"feedback-bar-text-before\">1 <i class=\"fa fa-star\" /></p>\n\t\t\t\t\t\t<div class=\"feedback-bar\">\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass=\"feedback-bar-fill bg-primary bg-appearance\"\n\t\t\t\t\t\t\t\t:style=\"{ width: (counts.ratingsCountOf1 / counts.highestCount) * 100 + '%' }\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<p class=\"feedback-bar-text-after\">\n\t\t\t\t\t\t\t{{ counts.ratingsCountOf1 }}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-sm-6\">\n\t\t\t\t<feedback-form v-if=\"!isLoading\" :variation-id=\"variationId\" :options=\"optionsForm\" />\n\t\t\t</div>\n\t\t</div>\n\n\t\t<hr />\n\n\t\t<feedback-list\n\t\t\t:feedbacks=\"authenticatedUser.feedbacks\"\n\t\t\t:is-last-page=\"true\"\n\t\t\t:show-controls=\"true\"\n\t\t\t:classes=\"classes\"\n\t\t\t:styles=\"styles\"\n\t\t\t:options=\"optionsList\"\n\t\t\t@delete=\"showDeleteConfirmation($event)\"\n\t\t/>\n\n\t\t<feedback-list\n\t\t\t:feedbacks=\"feedbacks\"\n\t\t\t:is-last-page=\"pagination.isLastPage\"\n\t\t\t:show-controls=\"false\"\n\t\t\t:classes=\"classes\"\n\t\t\t:styles=\"styles\"\n\t\t\t:options=\"optionsList\"\n\t\t\t@load-more=\"loadFeedbacks()\"\n\t\t\t@delete=\"showDeleteConfirmation($event)\"\n\t\t/>\n\n\t\t<p v-if=\"isLoading\" class=\"loading-hint\">\n\t\t\t{{ $translate(\"Feedback::Feedback.loadingFeedbacks\") }}\n\t\t</p>\n\n\t\t<!-- Modal -->\n\t\t<div\n\t\t\tref=\"confirmDeleteModal\"\n\t\t\tclass=\"modal fade\"\n\t\t\ttabindex=\"-1\"\n\t\t\trole=\"dialog\"\n\t\t\t:aria-labelledby=\"'feedbackConfirmDeleteLabel-' + _uid\"\n\t\t\taria-hidden=\"true\"\n\t\t>\n\t\t\t<div class=\"modal-dialog\" role=\"document\">\n\t\t\t\t<div class=\"modal-content\">\n\t\t\t\t\t<div class=\"modal-header\">\n\t\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n\t\t\t\t\t\t\t<span aria-hidden=\"true\">&times;</span>\n\t\t\t\t\t\t</button>\n\n\t\t\t\t\t\t<span :id=\"'feedbackConfirmDeleteLabel-' + _uid\" class=\"modal-title h5\">{{\n\t\t\t\t\t\t\t$translate(\"Feedback::Feedback.deleteConfirm\")\n\t\t\t\t\t\t}}</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"modal-body\">\n\t\t\t\t\t\t<p v-if=\"!!feedbackToDelete && feedbackToDelete.isReply\" class=\"feedback-delete-confirmation\">\n\t\t\t\t\t\t\t{{ $translate(\"Feedback::Feedback.deleteReply\") }}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p v-else class=\"feedback-delete-confirmation\">\n\t\t\t\t\t\t\t{{ $translate(\"Feedback::Feedback.deleteReview\") }}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"modal-footer\">\n\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">\n\t\t\t\t\t\t\t{{ $translate(\"Feedback::Feedback.cancel\") }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-primary btn-appearance\" @click=\"deleteFeedback()\">\n\t\t\t\t\t\t\t{{ $translate(\"Feedback::Feedback.yesDeleteIt\") }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</section>\n</template>\n\n<script>\nimport FeedbackForm from \"./FeedbackForm.vue\";\nimport FeedbackList from \"./FeedbackList.vue\";\nimport { mapState } from \"vuex\";\nimport loadFeedbackModule from \"../../../mixins/loadFeedbackModule\";\n\nexport default {\n\tname: \"FeedbackContainer\",\n\tcomponents: {\n\t\t\"feedback-form\": FeedbackForm,\n\t\t\"feedback-list\": FeedbackList\n\t},\n\n\tmixins: [loadFeedbackModule],\n\n\tinject: {\n\t\titemId: {\n\t\t\tdefault: null\n\t\t}\n\t},\n\n\tprops: {\n\t\toptions: Object,\n\t\tclasses: String,\n\t\tstyles: String\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tisLoading: true,\n\t\t\tfeedbackToDelete: null,\n\t\t\toptionsList: {\n\t\t\t\ttimestampVisibility: this.options.timestampVisibility,\n\t\t\t\tallowGuestFeedbacks: this.options.allowGuestFeedbacks\n\t\t\t},\n\t\t\toptionsForm: {\n\t\t\t\tallowFeedbacksOnlyIfPurchased: this.options.allowFeedbacksOnlyIfPurchased,\n\t\t\t\tallowNoRatingFeedback: this.options.allowNoRatingFeedback,\n\t\t\t\tnumberOfFeedbacks: this.options.numberOfFeedbacks,\n\t\t\t\tallowGuestFeedbacks: this.options.allowGuestFeedbacks\n\t\t\t}\n\t\t};\n\t},\n\n\tcomputed: {\n\t\tcurrentVariation: function() {\n\t\t\treturn this.$store.getters[this.itemId + \"/currentItemVariation\"];\n\t\t},\n\n\t\tvariationId: function() {\n\t\t\treturn this.currentVariation && this.currentVariation.variation.id;\n\t\t},\n\n\t\t...mapState({\n\t\t\tauthenticatedUser: state => state.feedback.authenticatedUser,\n\t\t\tcounts: state => state.feedback.counts,\n\t\t\tfeedbacks: state => state.feedback.feedbacks,\n\t\t\tpagination: state => state.feedback.pagination\n\t\t})\n\t},\n\n\tmounted() {\n\t\tif (!App.isShopBuilder) {\n\t\t\tconst _self = this;\n\t\t\t$.when(this.getUser(), this.getCounts(), this.loadFeedbacks()).done(function() {\n\t\t\t\t_self.isLoading = false;\n\t\t\t\t_self.generateJsonLD();\n\t\t\t\tVue.nextTick(function() {\n\t\t\t\t\t// DOM updated\n\t\t\t\t\twindow.dispatchEvent(new Event(\"resize\"));\n\t\t\t\t});\n\t\t\t});\n\t\t} else {\n\t\t\tthis.isLoading = false;\n\t\t}\n\t},\n\n\tmethods: {\n\t\tgetUser() {\n\t\t\treturn this.$store.dispatch(\"loadFeedbackUser\", {\n\t\t\t\tdata: {\n\t\t\t\t\tallowFeedbacksOnlyIfPurchased: this.options.allowFeedbacksOnlyIfPurchased,\n\t\t\t\t\tnumberOfFeedbacks: this.options.numberOfFeedbacks\n\t\t\t\t},\n\t\t\t\titemId: this.itemId,\n\t\t\t\tvariationId: this.variationId\n\t\t\t});\n\t\t},\n\n\t\tgetCounts() {\n\t\t\treturn this.$store.dispatch(\"loadFeedbackCounts\", this.itemId);\n\t\t},\n\n\t\tloadFeedbacks() {\n\t\t\treturn this.$store.dispatch(\"loadPaginatedFeedbacks\", {\n\t\t\t\titemId: this.itemId,\n\t\t\t\tfeedbacksPerPage: this.options.feedbacksPerPage\n\t\t\t});\n\t\t},\n\n\t\tshowDeleteConfirmation(feedbackToDelete) {\n\t\t\tthis.feedbackToDelete = feedbackToDelete;\n\t\t\t$(this.$refs.confirmDeleteModal).modal(\"show\");\n\t\t},\n\n\t\tdeleteFeedback() {\n\t\t\tif (this.feedbackToDelete !== null) {\n\t\t\t\tconst feedbackId = this.feedbackToDelete.feedbackId;\n\t\t\t\tconst parentFeedbackId = this.feedbackToDelete.parentFeedbackId;\n\n\t\t\t\tthis.$store.dispatch(\"deleteFeedback\", {\n\t\t\t\t\tfeedbackId: feedbackId,\n\t\t\t\t\tparentFeedbackId: parentFeedbackId,\n\t\t\t\t\tfeedback: this.feedbackToDelete.feedbackObject\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t$(this.$refs.confirmDeleteModal).modal(\"hide\");\n\t\t},\n\n\t\tgenerateJsonLD() {\n\t\t\tif (this.counts.ratingsCountTotal > 0) {\n\t\t\t\tconst jsonld = {\n\t\t\t\t\t\"@context\": \"http://schema.org/\",\n\t\t\t\t\t\"@type\": \"Product\",\n\t\t\t\t\t\"@id\": this.variationId.toString(),\n\t\t\t\t\taggregateRating: {\n\t\t\t\t\t\t\"@type\": \"AggregateRating\",\n\t\t\t\t\t\tratingValue: this.counts.averageValue,\n\t\t\t\t\t\treviewCount: this.counts.ratingsCountTotal\n\t\t\t\t\t},\n\t\t\t\t\treview: []\n\t\t\t\t};\n\n\t\t\t\tconst anonymous = this.$translate(\"Feedback::Feedback.anonymous\") || \"Anonymous\";\n\t\t\t\tthis.feedbacks.forEach(function(feedback) {\n\t\t\t\t\tlet author;\n\n\t\t\t\t\tif (\n\t\t\t\t\t\t(feedback.sourceRelation[0].feedbackRelationType === \"user\" ||\n\t\t\t\t\t\t\tfeedback.sourceRelation[0].feedbackRelationType === \"contact\") &&\n\t\t\t\t\t\tfeedback.sourceRelation[0].feedbackRelationSourceId > 0\n\t\t\t\t\t) {\n\t\t\t\t\t\tauthor = feedback.sourceRelation[0].sourceRelationLabel;\n\t\t\t\t\t} else if (\n\t\t\t\t\t\tfeedback.sourceRelation[0].feedbackRelationSourceId === \"0\" &&\n\t\t\t\t\t\tfeedback.authorName.trim().length > 0\n\t\t\t\t\t) {\n\t\t\t\t\t\tauthor = feedback.authorName;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tauthor = anonymous;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst review = {\n\t\t\t\t\t\t\"@type\": \"Review\",\n\t\t\t\t\t\tauthor: {\n\t\t\t\t\t\t\tname: author,\n\t\t\t\t\t\t\t\"@type\": \"Person\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdatePublished: feedback.createdAt,\n\t\t\t\t\t\treviewBody: feedback.feedbackComment.comment.message,\n\t\t\t\t\t\tname: feedback.title,\n\t\t\t\t\t\treviewRating: {\n\t\t\t\t\t\t\t\"@type\": \"Rating\",\n\t\t\t\t\t\t\tratingValue: feedback.feedbackRating.rating.ratingValue\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\n\t\t\t\t\tjsonld.review.push(review);\n\t\t\t\t});\n\n\t\t\t\tconst script = document.createElement(\"script\");\n\t\t\t\tscript.setAttribute(\"type\", \"application/ld+json\");\n\t\t\t\tscript.textContent = JSON.stringify(jsonld);\n\t\t\t\tdocument.head.appendChild(script);\n\t\t\t}\n\t\t}\n\t}\n};\n</script>\n","import mod from \"-!../../../../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FeedbackContainer.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FeedbackContainer.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./FeedbackList.vue?vue&type=template&id=4f1a26d4\"\nimport script from \"./FeedbackList.vue?vue&type=script&lang=js\"\nexport * from \"./FeedbackList.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports","import { render, staticRenderFns } from \"./FeedbackContainer.vue?vue&type=template&id=52c0fcea\"\nimport script from \"./FeedbackContainer.vue?vue&type=script&lang=js\"\nexport * from \"./FeedbackContainer.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}