@ecomplus/widget-martan 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/public/widget-martan.1.min.js +1 -1
  3. package/dist/public/widget-martan.1.min.js.map +1 -1
  4. package/dist/public/widget-martan.2.min.js +1 -1
  5. package/dist/public/widget-martan.2.min.js.map +1 -1
  6. package/dist/public/widget-martan.3.min.js +1 -1
  7. package/dist/public/widget-martan.3.min.js.map +1 -1
  8. package/dist/public/widget-martan.4.min.js +1 -1
  9. package/dist/public/widget-martan.4.min.js.map +1 -1
  10. package/dist/public/widget-martan.5.min.js +1 -1
  11. package/dist/public/widget-martan.5.min.js.map +1 -1
  12. package/dist/public/widget-martan.6.min.js +1 -1
  13. package/dist/public/widget-martan.6.min.js.map +1 -1
  14. package/dist/public/widget-martan.7.min.js +1 -1
  15. package/dist/public/widget-martan.7.min.js.map +1 -1
  16. package/dist/public/widget-martan.8.min.js +1 -1
  17. package/dist/public/widget-martan.8.min.js.map +1 -1
  18. package/dist/public/widget-martan.var.min.js +2 -2
  19. package/dist/public/widget-martan.var.min.js.map +1 -1
  20. package/dist/widget-martan.1.min.js +1 -1
  21. package/dist/widget-martan.1.min.js.map +1 -1
  22. package/dist/widget-martan.2.min.js +1 -1
  23. package/dist/widget-martan.2.min.js.map +1 -1
  24. package/dist/widget-martan.3.min.js +1 -1
  25. package/dist/widget-martan.3.min.js.map +1 -1
  26. package/dist/widget-martan.4.min.js +1 -1
  27. package/dist/widget-martan.4.min.js.map +1 -1
  28. package/dist/widget-martan.5.min.js +1 -1
  29. package/dist/widget-martan.5.min.js.map +1 -1
  30. package/dist/widget-martan.6.min.js +1 -1
  31. package/dist/widget-martan.6.min.js.map +1 -1
  32. package/dist/widget-martan.7.min.js +1 -1
  33. package/dist/widget-martan.7.min.js.map +1 -1
  34. package/dist/widget-martan.8.min.js +1 -1
  35. package/dist/widget-martan.8.min.js.map +1 -1
  36. package/dist/widget-martan.min.js +3 -3
  37. package/dist/widget-martan.min.js.map +1 -1
  38. package/package.json +2 -2
  39. package/src/widgets/reviews/components/VerifiedPurchase.vue +1 -1
  40. package/dist/public/widget-martan.0.min.js +0 -62
  41. package/dist/public/widget-martan.0.min.js.map +0 -1
  42. package/dist/public/widget-martan.9.min.js +0 -2
  43. package/dist/public/widget-martan.9.min.js.map +0 -1
  44. package/dist/widget-martan.0.min.js +0 -62
  45. package/dist/widget-martan.0.min.js.map +0 -1
  46. package/dist/widget-martan.9.min.js +0 -2
  47. package/dist/widget-martan.9.min.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://widgetMartan/./src/widgets/reviews/components/Quickview.vue?15f7","webpack://widgetMartan/./src/widgets/reviews/components/VideoPlayer.vue?6573","webpack://widgetMartan/src/widgets/reviews/components/VideoPlayer.vue","webpack://widgetMartan/./src/widgets/reviews/components/Quickview.vue?4bf3","webpack://widgetMartan/src/widgets/reviews/components/Quickview.vue","webpack://widgetMartan/./src/widgets/reviews/components/VideoPlayer.vue","webpack://widgetMartan/./src/widgets/reviews/components/VideoPlayer.vue?9e41","webpack://widgetMartan/./src/widgets/reviews/components/Quickview.vue","webpack://widgetMartan/./src/utils/time-ago.js","webpack://widgetMartan/./src/widgets/reviews/components/ReviewReply.vue?1552","webpack://widgetMartan/./src/widgets/reviews/components/VerifiedPurchase.vue?97c2","webpack://widgetMartan/./src/widgets/reviews/components/ReviewCard.vue?86c8","webpack://widgetMartan/./src/widgets/reviews/components/ReviewReply.vue?7b6c","webpack://widgetMartan/./src/widgets/reviews/components/ReviewReply.vue?734e","webpack://widgetMartan/./src/widgets/reviews/components/VerifiedPurchase.vue?07cb","webpack://widgetMartan/./src/widgets/reviews/components/VerifiedPurchase.vue?f501","webpack://widgetMartan/./src/widgets/reviews/components/ReviewCard.vue?69aa","webpack://widgetMartan/./src/widgets/reviews/components/ReviewCard.vue?9d98","webpack://widgetMartan/./src/widgets/reviews/components/VideoPlayer.vue?5e24","webpack://widgetMartan/./src/widgets/reviews/components/Quickview.vue?0df4","webpack://widgetMartan/./src/widgets/reviews/components/Quickview.vue?0f33","webpack://widgetMartan/./src/widgets/reviews/components/ReviewCard.vue?95f5","webpack://widgetMartan/./src/widgets/reviews/components/ReviewReply.vue?852f","webpack://widgetMartan/src/widgets/reviews/components/ReviewReply.vue","webpack://widgetMartan/./src/widgets/reviews/components/ReviewReply.vue","webpack://widgetMartan/./src/widgets/reviews/components/ReviewReply.vue?0133","webpack://widgetMartan/../storefront-twbs/src/$.js","webpack://widgetMartan/../storefront-twbs/src/animate-css.js","webpack://widgetMartan/../storefront-twbs/src/_env.js","webpack://widgetMartan/../storefront-twbs/src/index.js","webpack://widgetMartan/./src/widgets/reviews/components/VerifiedPurchase.vue?1474","webpack://widgetMartan/src/widgets/reviews/components/VerifiedPurchase.vue","webpack://widgetMartan/./src/widgets/reviews/components/ReviewCard.vue?2843","webpack://widgetMartan/src/widgets/reviews/components/ReviewCard.vue","webpack://widgetMartan/./src/widgets/reviews/components/VerifiedPurchase.vue","webpack://widgetMartan/./src/widgets/reviews/components/VerifiedPurchase.vue?e0c3","webpack://widgetMartan/./src/widgets/reviews/components/ReviewCard.vue","webpack://widgetMartan/./src/widgets/reviews/components/VideoPlayer.vue?b41c","webpack://widgetMartan/./src/widgets/reviews/components/VideoPlayer.vue?63f2","webpack://widgetMartan/./src/widgets/reviews/components/Quickview.vue?3059","webpack://widgetMartan/./src/widgets/reviews/components/Quickview.vue?1fd6","webpack://widgetMartan/./src/widgets/reviews/components/Quickview.vue?f3ce","webpack://widgetMartan/./src/widgets/reviews/components/Quickview.vue?b0f2"],"names":["name","props","video","type","String","required","data","isPlaying","methods","play","$refs","videoPlayer","paused","ended","pause","updateBtn","mounted","playButton","addEventListener","components","VideoPlayer","_h","this","$createElement","_c","_self","staticClass","ref","attrs","ReviewCard","review","Object","isOpen","Boolean","default","starColor","currentImageIndex","currentImage","computed","i19quickview","i19next","i18n","i19previous","reviewId","id","pictures","video_url","title","author","display_name","rating","recommended","is_recommended","isVerified","verified_purchase","reply","created","created_at","body","watch","isOpened","$","modal","immediate","handler","newPics","length","big","normal","on","close","mount","formatDate","timeAgo","$emit","setCurrentImage","index","_vm","directives","rawName","value","expression","_v","_s","_m","_e","_l","pic","key","class","active","$event","thumb","date","segundos","Math","floor","Date","intervalos","ano","mês","semana","dia","hora","minuto","segundo","contador","intervalo","content","__esModule","module","i","locals","exports","add","___CSS_LOADER_API_IMPORT___","push","i19storeResponse","staticStyle","window","jQuery","animateCss","$el","animationName","Promise","resolve","handleAnimationEnd","classList","remove","clearTimeout","fallbackTimer","removeEventListener","setTimeout","contains","userAgent","navigator","isIOS","document","offsetWidth","screen","width","includes","test","MSStream","documentMode","version","showVerified","collapseId","i19verifiedBuyer","i19howProcessVerifiedMsg","en_us","pt_br","i19useMartanPrivacyMsg","i19howWeCollectMsg","i19howClientsReviewMsg","open","collapse","now","ReviewReply","VerifiedPurchase","showFullText","truncateBody","toLocaleDateString","timeZone","truncatedText","substring","images","Array","from","querySelectorAll","imageObserver","IntersectionObserver","entries","observer","forEach","entry","isIntersecting","target","dataset","loaded","image","src","unobserve","img","observe","star","imageIndex"],"mappings":"2HAAA,I,yBCAkN,ECmDnM,CACfA,KAAA,cAEAC,MAAA,CACAC,MAAA,CACAC,KAAAC,OACAC,UAAA,IAIAC,UACA,CACAC,WAAA,IAIAC,QAAA,CACAC,OACA,KAAAC,MAAAC,YAAAC,QAAA,KAAAF,MAAAC,YAAAE,MACA,KAAAH,MAAAC,YAAAF,OAEA,KAAAC,MAAAC,YAAAG,SAGAC,YACA,KAAAR,UAAA,KAAAG,MAAAC,YAAAC,SAGAI,QAAA,WACA,KAAAN,MAAAO,WAAAC,iBAAA,aAAAT,MACA,KAAAC,MAAAC,YAAAO,iBAAA,aAAAT,MACA,KAAAC,MAAAC,YAAAO,iBAAA,YAAAH,WACA,KAAAL,MAAAC,YAAAO,iBA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,OAAOG,EAAG,MAAM,CAACE,YAAY,+BAA+B,CAACF,EAAG,IAAI,CAACE,YAAY,iBAAiBF,EAAG,OAAO,CAACE,YAAY,WAAW,CAA3LJ,KAAgM4D,GAAG,8CeW7O,EACA,KACA,WACA,OAIa,Y,yCCnBf,O,oBCEA+B,EADkC,EAAQ,EAChCE,EAA4B,IAE9BC,KAAK,CAACN,EAAOC,EAAI,4gBAA6gB,KAEtiBD,EAAOG,QAAUA,G,gCCNjB,O,oBCEAA,EADkC,EAAQ,EAChCE,EAA4B,IAE9BC,KAAK,CAACN,EAAOC,EAAI,8MAA+M,KAExOD,EAAOG,QAAUA,G,gCCNjB,O,oBCEAA,EADkC,EAAQ,EAChCE,EAA4B,IAE9BC,KAAK,CAACN,EAAOC,EAAI,2gEAA4gE,KAEriED,EAAOG,QAAUA","file":"widget-martan.2.min.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"modal fade\",attrs:{\"id\":\"martan-quickview\",\"tabindex\":\"-1\",\"role\":\"dialog\",\"aria-labelledby\":\"quickviewModal\",\"aria-hidden\":\"true\"}},[_c('div',{staticClass:\"modal-dialog modal-dialog-centered modal-xl\",attrs:{\"role\":\"document\"}},[_c('div',{staticClass:\"modal-content\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(false),expression:\"false\"}],staticClass:\"modal-header\"},[_c('h5',{staticClass:\"modal-title\",attrs:{\"id\":\"quickviewModal\"}},[_vm._v(_vm._s(_vm.i19quickview))]),_vm._m(0)]),_c('div',{staticClass:\"modal-body mt-quickview\"},[_vm._m(1),_c('div',{staticClass:\"mt-quickview__content\"},[_c('div',{staticClass:\"mt-quickview__gallery-column\"},[_c('div',{staticClass:\"mt-quickview__main-image\"},[(_vm.currentImage)?_c('img',{attrs:{\"src\":_vm.currentImage,\"alt\":'Review image'}}):(_vm.video)?_c('VideoPlayer',{attrs:{\"videoUrl\":_vm.video}}):_vm._e()],1),(_vm.pictures.length || _vm.video)?_c('div',{staticClass:\"mt-quickview__thumbnails\"},[_vm._l((_vm.pictures),function(pic,index){return _c('div',{key:(\"thumb-\" + index),staticClass:\"mt-quickview__thumb\",class:{ active: _vm.currentImageIndex === index },on:{\"click\":function($event){return _vm.setCurrentImage(index)}}},[_c('img',{attrs:{\"src\":pic.thumb,\"alt\":'Thumbnail ' + (index + 1)}})])}),(_vm.video)?_c('div',{staticClass:\"mt-quickview__thumb\",class:{ active: _vm.currentImageIndex === _vm.pictures.length },on:{\"click\":function($event){return _vm.setCurrentImage(_vm.pictures.length)}}},[_c('i',{staticClass:\"fas fa-play-circle\"})]):_vm._e()],2):_vm._e()]),(_vm.review)?_c('div',{staticClass:\"mt-quickview__info-column\"},[_c('div',{staticClass:\"mt-review\"},[_c('div',{staticClass:\"mt-rating__group\"},[_c('ReviewCard',{attrs:{\"truncate-body\":false,\"review\":_vm.review,\"star-color\":_vm.starColor,\"full\":true}})],1)])]):_vm._e()])])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"data-dismiss\":\"modal\",\"aria-label\":\"Close\"}},[_c('span',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"×\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"data-dismiss\":\"modal\",\"aria-label\":\"Close\"}},[_c('span',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"×\")])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoPlayer.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!./VideoPlayer.vue?vue&type=script&lang=js\"","<template>\n <div class=\"mt-player\">\n <video preload=\"metadata\" ref=\"videoPlayer\">\n <source :src=\"video\" type=\"video/mp4\" />\n </video>\n\n <div class=\"mt-player__controls\">\n <button ref=\"playButton\" class=\"playPauseBtn\" title=\"tocar vídeo\">\n <svg\n v-if=\"this.isPlaying\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"icon icon-tabler icon-tabler-player-play\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n fill=\"none\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M7 4v16l13 -8z\" />\n </svg>\n <svg\n v-else\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"icon icon-tabler icon-tabler-player-pause\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n fill=\"none\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path\n d=\"M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z\"\n />\n <path\n d=\"M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z\"\n />\n </svg>\n </button>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"VideoPlayer\",\n\n props: {\n video: {\n type: String,\n required: true\n },\n },\n\n data() {\n return {\n isPlaying: true,\n };\n },\n\n methods: {\n play() {\n if (this.$refs.videoPlayer.paused || this.$refs.videoPlayer.ended) {\n this.$refs.videoPlayer.play();\n } else {\n this.$refs.videoPlayer.pause();\n }\n },\n updateBtn() {\n this.isPlaying = this.$refs.videoPlayer.paused;\n },\n },\n mounted: function () {\n this.$refs.playButton.addEventListener(\"click\", this.play);\n this.$refs.videoPlayer.addEventListener(\"click\", this.play);\n this.$refs.videoPlayer.addEventListener(\"play\", this.updateBtn);\n this.$refs.videoPlayer.addEventListener(\"pause\", this.updateBtn);\n },\n};\n</script>\n\n<style lang=\"scss\">\n.mt-player {\n video {\n display: block;\n width: 100%;\n }\n\n .playPauseBtn {\n background: none;\n border: 0;\n line-height: 1;\n color: #212529;\n text-align: center;\n outline: 0;\n padding: 0;\n cursor: pointer;\n max-width: 50px;\n }\n\n &__controls {\n width: 100%;\n transform: translateY(0);\n padding: 5px;\n }\n\n &__controls > * {\n flex: 1;\n }\n\n &__progress {\n flex: 10;\n position: relative;\n display: flex;\n flex-basis: 100%;\n height: 5px;\n background: rgba(255, 255, 255, 0.5);\n cursor: pointer;\n max-width: 430px;\n width: 100%;\n &--filled {\n width: 50%;\n background: #aa5500;\n flex: 0;\n flex-basis: 0%;\n }\n }\n}\n</style>\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Quickview.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!./Quickview.vue?vue&type=script&lang=js\"","<template>\n <div\n class=\"modal fade\"\n id=\"martan-quickview\"\n tabindex=\"-1\"\n role=\"dialog\"\n aria-labelledby=\"quickviewModal\"\n aria-hidden=\"true\"\n >\n <div class=\"modal-dialog modal-dialog-centered modal-xl\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\" v-show=\"false\">\n <h5 class=\"modal-title\" id=\"quickviewModal\">{{ i19quickview }}</h5>\n <button\n type=\"button\"\n class=\"close\"\n data-dismiss=\"modal\"\n aria-label=\"Close\"\n >\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n\n <div class=\"modal-body mt-quickview\">\n <button\n type=\"button\"\n class=\"close\"\n data-dismiss=\"modal\"\n aria-label=\"Close\"\n >\n <span aria-hidden=\"true\">&times;</span>\n </button>\n\n <div class=\"mt-quickview__content\">\n <!-- Image Gallery Column -->\n <div class=\"mt-quickview__gallery-column\">\n <!-- Main Image Display -->\n <div class=\"mt-quickview__main-image\">\n <img\n :src=\"currentImage\"\n :alt=\"'Review image'\"\n v-if=\"currentImage\"\n />\n <VideoPlayer v-else-if=\"video\" :videoUrl=\"video\" />\n </div>\n\n <!-- Thumbnails -->\n <div\n class=\"mt-quickview__thumbnails\"\n v-if=\"pictures.length || video\"\n >\n <div\n v-for=\"(pic, index) in pictures\"\n :key=\"`thumb-${index}`\"\n class=\"mt-quickview__thumb\"\n :class=\"{ active: currentImageIndex === index }\"\n @click=\"setCurrentImage(index)\"\n >\n <img :src=\"pic.thumb\" :alt=\"'Thumbnail ' + (index + 1)\" />\n </div>\n <div\n v-if=\"video\"\n class=\"mt-quickview__thumb\"\n :class=\"{ active: currentImageIndex === pictures.length }\"\n @click=\"setCurrentImage(pictures.length)\"\n >\n <i class=\"fas fa-play-circle\"></i>\n </div>\n </div>\n </div>\n\n <!-- Review Info Column -->\n <div class=\"mt-quickview__info-column\" v-if=\"review\">\n <div class=\"mt-review\">\n <div class=\"mt-rating__group\">\n <ReviewCard\n :truncate-body=\"false\"\n :review=\"review\"\n :star-color=\"starColor\"\n :full=\"true\"\n />\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport { i19next, i19previous } from \"@ecomplus/i18n\";\nimport { i18n, formatDate } from \"@ecomplus/utils\";\n\nimport { timeAgo } from \"../../../utils/time-ago\";\nimport VideoPlayer from \"./VideoPlayer.vue\";\nimport ReviewCard from \"./ReviewCard.vue\";\n\nexport default {\n name: \"Quickview\",\n\n components: {\n VideoPlayer,\n ReviewCard,\n },\n\n props: {\n review: Object,\n isOpen: {\n type: Boolean,\n default: false,\n },\n starColor: String,\n },\n\n data() {\n return {\n currentImageIndex: 0,\n currentImage: null,\n };\n },\n\n computed: {\n i19quickview: () => \"Quickview\",\n i19next: () => i18n(i19next),\n i19previous: () => i18n(i19previous),\n\n reviewId: function () {\n if (this.review && this.review.id) {\n return this.review.id;\n }\n\n return null;\n },\n\n pictures: function () {\n if (this.review && this.review.pictures) {\n return this.review.pictures;\n }\n return [];\n },\n\n video: function () {\n if (this.review && this.review.video_url) {\n return this.review.video_url;\n }\n return null;\n },\n\n title: function () {\n if (this.review && this.review.title) {\n return this.review.title;\n }\n return null;\n },\n\n author: function () {\n if (this.review && this.review.display_name) {\n return this.review.display_name;\n }\n return null;\n },\n\n rating: function () {\n if (this.review && this.review.rating) {\n return this.review.rating;\n }\n return null;\n },\n\n recommended: function () {\n if (this.review && this.review.is_recommended) {\n return this.review.is_recommended;\n }\n return null;\n },\n\n isVerified: function () {\n if (this.review && this.review.verified_purchase) {\n return this.review.verified_purchase;\n }\n return null;\n },\n\n reply: function () {\n if (this.review && this.review.reply) {\n return this.review.reply;\n }\n return null;\n },\n\n created: function () {\n if (this.review && this.review.created_at) {\n return this.review.created_at;\n }\n return null;\n },\n\n body: function () {\n if (this.review && this.review.body) {\n return this.review.body;\n }\n return null;\n },\n },\n\n watch: {\n isOpen: function (isOpened) {\n if (isOpened) {\n $(\"#martan-quickview\").modal(\"show\");\n }\n },\n pictures: {\n immediate: true,\n handler(newPics) {\n if (newPics && newPics.length) {\n this.currentImage = newPics[0].big || newPics[0].normal;\n }\n },\n },\n },\n\n mounted() {\n $(\"#martan-quickview\").on(\"hidden.bs.modal\", this.close);\n $(\"#martan-quickview\").on(\"shown.bs.modal\", this.mount);\n },\n\n methods: {\n formatDate,\n timeAgo,\n close: function () {\n this.$emit(\"onClose\", true);\n },\n setCurrentImage(index) {\n this.currentImageIndex = index;\n if (index < this.pictures.length) {\n this.currentImage = this.pictures[index].big;\n } else {\n this.currentImage = null; // Will show video player\n }\n },\n },\n};\n</script>\n\n<style lang=\"scss\">\n#martan-quickview {\n padding: 0 !important;\n .modal-dialog {\n margin: 0 auto;\n }\n}\n\n.mt-quickview {\n .review-card {\n width: 100% !important;\n margin-top: 0 !important;\n }\n .review-card__images {\n display: none;\n }\n}\n</style>\n\n<style lang=\"scss\" scoped>\n.mt-quickview {\n padding: 0;\n\n &__content {\n display: flex;\n flex-direction: column;\n\n @media (min-width: 992px) {\n flex-direction: row;\n }\n }\n\n &__gallery-column {\n flex: 1;\n max-width: 500px;\n width: 100%;\n }\n\n &__main-image {\n img {\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n border-top-left-radius: 3px;\n @media (max-width: 992px) {\n border-top-right-radius: 3px;\n }\n }\n }\n\n &__thumbnails {\n display: flex;\n gap: 0.5rem;\n overflow-x: auto;\n padding: 0.5rem;\n\n @media (min-width: 992px) {\n flex-wrap: wrap;\n max-height: 100px;\n }\n }\n\n &__thumb {\n width: 60px;\n height: 60px;\n border: 2px solid transparent;\n cursor: pointer;\n flex-shrink: 0;\n\n &.active {\n border-color: var(--primary);\n }\n\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n i {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #f8f9fa;\n font-size: 1.5rem;\n }\n }\n\n &__info-column {\n flex: 1;\n @media (min-width: 992px) {\n max-height: 500px;\n overflow-y: auto;\n }\n }\n\n .close {\n position: absolute;\n z-index: 1;\n padding: 8px 1rem;\n }\n\n &__galery {\n max-width: 500px;\n min-height: 500px;\n width: 100%;\n display: flex;\n align-items: center;\n\n img {\n max-width: 500px;\n max-height: 500px;\n height: 100%;\n object-fit: contain;\n width: 100%;\n }\n\n .glide__slides {\n align-items: center;\n }\n }\n\n &__review {\n padding: 1rem;\n\n @media (min-width: 992px) {\n max-height: 500px;\n overflow: auto;\n }\n\n @media (min-width: 1200px) {\n max-height: 500px;\n overflow: auto;\n }\n }\n\n .video-wrapper {\n display: flex;\n align-items: center;\n }\n}\n</style>\n","import { render, staticRenderFns } from \"./VideoPlayer.vue?vue&type=template&id=4f122ab7\"\nimport script from \"./VideoPlayer.vue?vue&type=script&lang=js\"\nexport * from \"./VideoPlayer.vue?vue&type=script&lang=js\"\nimport style0 from \"./VideoPlayer.vue?vue&type=style&index=0&id=4f122ab7&prod&lang=scss\"\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 () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mt-player\"},[_c('video',{ref:\"videoPlayer\",attrs:{\"preload\":\"metadata\"}},[_c('source',{attrs:{\"src\":_vm.video,\"type\":\"video/mp4\"}})]),_c('div',{staticClass:\"mt-player__controls\"},[_c('button',{ref:\"playButton\",staticClass:\"playPauseBtn\",attrs:{\"title\":\"tocar vídeo\"}},[(this.isPlaying)?_c('svg',{staticClass:\"icon icon-tabler icon-tabler-player-play\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":\"24\",\"height\":\"24\",\"viewBox\":\"0 0 24 24\",\"stroke-width\":\"2\",\"stroke\":\"currentColor\",\"fill\":\"none\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}},[_c('path',{attrs:{\"stroke\":\"none\",\"d\":\"M0 0h24v24H0z\",\"fill\":\"none\"}}),_c('path',{attrs:{\"d\":\"M7 4v16l13 -8z\"}})]):_c('svg',{staticClass:\"icon icon-tabler icon-tabler-player-pause\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":\"24\",\"height\":\"24\",\"viewBox\":\"0 0 24 24\",\"stroke-width\":\"2\",\"stroke\":\"currentColor\",\"fill\":\"none\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}},[_c('path',{attrs:{\"stroke\":\"none\",\"d\":\"M0 0h24v24H0z\",\"fill\":\"none\"}}),_c('path',{attrs:{\"d\":\"M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z\"}}),_c('path',{attrs:{\"d\":\"M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z\"}})])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./Quickview.vue?vue&type=template&id=ef1c07f4&scoped=true\"\nimport script from \"./Quickview.vue?vue&type=script&lang=js\"\nexport * from \"./Quickview.vue?vue&type=script&lang=js\"\nimport style0 from \"./Quickview.vue?vue&type=style&index=0&id=ef1c07f4&prod&lang=scss\"\nimport style1 from \"./Quickview.vue?vue&type=style&index=1&id=ef1c07f4&prod&lang=scss&scoped=true\"\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 \"ef1c07f4\",\n null\n \n)\n\nexport default component.exports","// Retorna uma hora em formato humanizade\nexport function timeAgo (date) {\n const segundos = Math.floor((new Date() - new Date(date)) / 1000)\n\n const intervalos = {\n ano: 31536000,\n mês: 2592000,\n semana: 604800,\n dia: 86400,\n hora: 3600,\n minuto: 60,\n segundo: 1\n }\n\n let contador\n\n if (segundos === 0) {\n return 'Agora'\n }\n\n for (const intervalo in intervalos) {\n contador = Math.floor(segundos / intervalos[intervalo])\n\n if (contador > 0) {\n if (contador === 1) {\n return `${contador} ${intervalo} atrás`\n } else {\n if (intervalo === 'mês') {\n return `${contador} meses atrás`\n }\n return `${contador} ${intervalo}s atrás`\n }\n }\n }\n}\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReviewReply.vue?vue&type=style&index=0&id=35ae7688&prod&lang=css&scoped=true\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"36ac3f8a\", content, true, {});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VerifiedPurchase.vue?vue&type=style&index=0&id=74c2f4be&prod&lang=scss\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"8c871a26\", content, true, {});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReviewCard.vue?vue&type=style&index=0&id=3da2753a&prod&lang=scss&scoped=true\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"414da60f\", content, true, {});","export * from \"-!../../../../../../node_modules/vue-style-loader/index.js!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReviewReply.vue?vue&type=style&index=0&id=35ae7688&prod&lang=css&scoped=true\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".mt-reply[data-v-35ae7688]{background:var(--white);border-left:3px solid #e6e6e6;border-radius:12px;border-right:1px solid hsla(0,0%,9%,.102);display:flex;flex-direction:column;font-size:15px;gap:10px;line-height:1.6;margin:10px 0 0;padding:20px;width:100%}@media(max-width:580px){.mt-reply[data-v-35ae7688]{margin:10px 0}}.mt-reply__date[data-v-35ae7688]{color:#475569;color:#777;font-weight:400}.mt-reply__body[data-v-35ae7688],.mt-reply__date[data-v-35ae7688]{font-size:14px;text-decoration:none}.mt-reply__body[data-v-35ae7688]{font-weight:600}.mt-reply__wrapper[data-v-35ae7688]{align-items:center;display:flex}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","export * from \"-!../../../../../../node_modules/vue-style-loader/index.js!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VerifiedPurchase.vue?vue&type=style&index=0&id=74c2f4be&prod&lang=scss\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".mt-rating__verified{align-items:center;color:#9e9e9e;display:flex;font-size:10px;font-weight:400;gap:3px}.mt-rating__verified svg{color:var(--success);width:15px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","export * from \"-!../../../../../../node_modules/vue-style-loader/index.js!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReviewCard.vue?vue&type=style&index=0&id=3da2753a&prod&lang=scss&scoped=true\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".review-card[data-v-3da2753a]{background-color:#f3f3f3;border-radius:8px;height:-moz-max-content;height:max-content;padding:16px;width:100%}.review-card__header[data-v-3da2753a]{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:1rem}.review-card__author[data-v-3da2753a]{display:flex;flex-direction:column}.review-card__name[data-v-3da2753a]{font-weight:700;margin-bottom:.25rem}.review-card__date[data-v-3da2753a]{color:#71717a;font-size:70%}.review-card__rating[data-v-3da2753a]{display:flex;gap:.25rem}.review-card__content[data-v-3da2753a]{font-size:.9375rem}.review-card__text[data-v-3da2753a]{line-height:1.5;margin-bottom:1rem}.review-card__text-toggle[data-v-3da2753a]{color:#047857;cursor:pointer;font-size:.875rem;line-height:1.25rem}.review-card__images[data-v-3da2753a]{display:flex;flex-wrap:wrap;gap:.5rem}.review-card__images img[data-v-3da2753a]{border-radius:.25rem;cursor:pointer;height:80px;-o-object-fit:cover;object-fit:cover;width:80px}.review-card__text-empty[data-v-3da2753a]{color:#71717a;font-size:70%}.review-card__title[data-v-3da2753a]{font-size:1.125rem;font-weight:500;line-height:1.75rem;margin-bottom:.5rem}.review-card__recommendation[data-v-3da2753a]{color:#047857;font-size:.875rem;line-height:1.25rem;margin-top:1rem}.i-happy-line[data-v-3da2753a]{--un-icon:url(\\\"data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' margin-bottom='0.22rem' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='currentColor' d='M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12m6.5-2c-.195 0-.444.124-.606.448a1 1 0 0 1-1.788-.896C6.542 8.68 7.413 8 8.5 8s1.957.68 2.394 1.552a1 1 0 0 1-1.788.896C8.944 10.124 8.696 10 8.5 10m7 0c-.195 0-.444.124-.606.448a1 1 0 1 1-1.788-.896C13.543 8.68 14.413 8 15.5 8s1.957.68 2.394 1.552a1 1 0 0 1-1.788.896c-.162-.324-.41-.448-.606-.448m-6.896 4.338a1 1 0 0 1 1.412-.088c.53.468 1.223.75 1.984.75s1.455-.282 1.984-.75a1 1 0 1 1 1.324 1.5A4.98 4.98 0 0 1 12 17a4.98 4.98 0 0 1-3.308-1.25a1 1 0 0 1-.088-1.412'/%3E%3C/g%3E%3C/svg%3E\\\");background-color:#047857;color:inherit;display:inline-block;height:1em;margin-bottom:.22rem;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;vertical-align:middle;width:1em}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoPlayer.vue?vue&type=style&index=0&id=4f122ab7&prod&lang=scss\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"307f0beb\", content, true, {});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Quickview.vue?vue&type=style&index=0&id=ef1c07f4&prod&lang=scss\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"0b763a1c\", content, true, {});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Quickview.vue?vue&type=style&index=1&id=ef1c07f4&prod&lang=scss&scoped=true\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"2cc802e8\", content, true, {});","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.review)?_c('div',{staticClass:\"review-card\"},[_c('div',{staticClass:\"review-card__header\"},[_c('div',{staticClass:\"review-card__author\"},[_c('span',{staticClass:\"review-card__name\"},[_vm._v(_vm._s(_vm.review.display_name))]),_c('span',{staticClass:\"review-card__date\",attrs:{\"title\":_vm.timeAgo(_vm.review.created_at)}},[_vm._v(_vm._s(_vm.formatDate(_vm.review.created_at)))]),(_vm.review.verified_purchase)?_c('VerifiedPurchase'):_vm._e()],1),_c('div',{staticClass:\"review-card__rating\"},_vm._l((5),function(star){return _c('div',{key:star,staticClass:\"review-card__star\"},[_c('svg',{attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":\"14\",\"height\":\"14\",\"viewBox\":\"0 0 24 24\",\"stroke\":star <= _vm.review.rating ? _vm.starColor : '#E6E3E3',\"fill\":star <= _vm.review.rating ? _vm.starColor : 'none',\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}},[_c('path',{attrs:{\"stroke\":\"none\",\"d\":\"M0 0h24v24H0z\",\"fill\":\"none\"}}),_c('path',{attrs:{\"d\":\"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z\"}})])])}),0)]),_c('div',{staticClass:\"review-card__content\"},[(_vm.review.title)?_c('p',{staticClass:\"review-card__title\"},[_vm._v(\" \"+_vm._s(_vm.review.title)+\" \")]):_vm._e(),(_vm.review.body)?_c('p',{staticClass:\"review-card__text\"},[_vm._v(\" \"+_vm._s(_vm.showFullText ? _vm.review.body : _vm.truncatedText)+\" \"),(_vm.review.body.length > 200)?_c('span',{staticClass:\"review-card__text-toggle\",on:{\"click\":function($event){_vm.showFullText = !_vm.showFullText}}},[_vm._v(\" \"+_vm._s(_vm.showFullText ? \"Ver menos\" : \"Ver mais\")+\" \")]):_vm._e()]):_c('p',{staticClass:\"review-card__text-empty\"},[_vm._v(\"(Avaliação sem comentário)\")]),(_vm.review.pictures && _vm.review.pictures.length)?_c('div',{staticClass:\"review-card__images\"},_vm._l((_vm.review.pictures),function(image,index){return _c('img',{directives:[{name:\"show\",rawName:\"v-show\",value:(image.thumb),expression:\"image.thumb\"}],key:index,staticClass:\"mt-lazy-image\",attrs:{\"data-loaded\":\"false\",\"data-src\":image.thumb,\"alt\":(\"Review image \" + (index + 1))},on:{\"click\":function($event){return _vm.$emit('openQuickview', { review: _vm.review, imageIndex: index })}}})}),0):_vm._e(),_vm._m(0)]),(_vm.review.reply)?_c('div',{staticClass:\"review-card-reply\"},[_c('ReviewReply',{attrs:{\"reply\":_vm.review.reply}})],1):_vm._e()]):_vm._e()}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"review-card__recommendation\"},[_c('i',{staticClass:\"i-happy-line\"}),_c('span',{staticClass:\"text-sm\"},[_vm._v(\"Eu comprei e recomendo esse produto\")])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReviewReply.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!./ReviewReply.vue?vue&type=script&lang=js\"","<template>\n <div\n v-if=\"reply\"\n class=\"mt-reply__wrapper\"\n >\n <div style=\"margin-right: 10px\">\n <svg\n width=\"24px\"\n height=\"24px\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style=\"transform: rotate(180deg)\"\n >\n <path\n d=\"M10.53 5.03a.75.75 0 10-1.06-1.06l-6.25 6.25a.75.75 0 000 1.06l6.25 6.25a.75.75 0 101.06-1.06L5.56 11.5H17a3.248 3.248 0 013.25 3.248v4.502a.75.75 0 001.5 0v-4.502A4.748 4.748 0 0017 10H5.56l4.97-4.97z\"\n />\n </svg>\n </div>\n\n <div class=\"mt-reply\">\n <span class=\"mt-reply__body\"\n >{{ i19storeResponse }} ·\n <span\n class=\"mt-reply__date\"\n :title=\"'Respondido em ' + formatDate(reply.created_at)\"\n >{{ timeAgo(reply.created_at) }}</span\n ></span\n >\n <span>{{ reply.body }}</span>\n </div>\n </div>\n</template>\n\n<script>\nimport { formatDate } from \"@ecomplus/utils\";\nimport { timeAgo } from \"../../../utils/time-ago\";\n\nexport default {\n\n name: \"ReviewReply\",\n\n props: {\n reply: {\n type: Object,\n }\n },\n\n computed: {\n i19storeResponse: () => 'Resposta da loja'\n },\n\n methods: {\n formatDate,\n timeAgo\n }\n};\n</script>\n<style lang=\"css\" scoped>\n.mt-reply {\n margin: 10px 0 0;\n display: flex;\n flex-direction: column;\n background: var(--white);\n padding: 20px;\n border-radius: 12px;\n font-size: 15px;\n line-height: 1.6;\n gap: 10px;\n border-right: 1px solid #1717171a;\n border-left: 3px solid rgb(230, 230, 230);\n width: 100%;\n}\n\n@media (max-width: 580px) {\n .mt-reply {\n margin: 10px 0;\n }\n}\n\n.mt-reply__date {\n font-weight: normal;\n font-size: 14px;\n text-decoration: none;\n color: #475569;\n color: #777;\n}\n\n.mt-reply__body {\n font-weight: 600;\n font-size: 14px;\n text-decoration: none;\n}\n\n.mt-reply__wrapper {\n display: flex;\n align-items: center;\n}\n</style>\n","import { render, staticRenderFns } from \"./ReviewReply.vue?vue&type=template&id=35ae7688&scoped=true\"\nimport script from \"./ReviewReply.vue?vue&type=script&lang=js\"\nexport * from \"./ReviewReply.vue?vue&type=script&lang=js\"\nimport style0 from \"./ReviewReply.vue?vue&type=style&index=0&id=35ae7688&prod&lang=css&scoped=true\"\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 \"35ae7688\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.reply)?_c('div',{staticClass:\"mt-reply__wrapper\"},[_c('div',{staticStyle:{\"margin-right\":\"10px\"}},[_c('svg',{staticStyle:{\"transform\":\"rotate(180deg)\"},attrs:{\"width\":\"24px\",\"height\":\"24px\",\"viewBox\":\"0 0 24 24\",\"xmlns\":\"http://www.w3.org/2000/svg\"}},[_c('path',{attrs:{\"d\":\"M10.53 5.03a.75.75 0 10-1.06-1.06l-6.25 6.25a.75.75 0 000 1.06l6.25 6.25a.75.75 0 101.06-1.06L5.56 11.5H17a3.248 3.248 0 013.25 3.248v4.502a.75.75 0 001.5 0v-4.502A4.748 4.748 0 0017 10H5.56l4.97-4.97z\"}})])]),_c('div',{staticClass:\"mt-reply\"},[_c('span',{staticClass:\"mt-reply__body\"},[_vm._v(_vm._s(_vm.i19storeResponse)+\" · \"),_c('span',{staticClass:\"mt-reply__date\",attrs:{\"title\":'Respondido em ' + _vm.formatDate(_vm.reply.created_at)}},[_vm._v(_vm._s(_vm.timeAgo(_vm.reply.created_at)))])]),_c('span',[_vm._v(_vm._s(_vm.reply.body))])])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import $ from 'jquery'\n\nif (typeof window === 'object') {\n window.$ = window.jQuery = $\n}\n\nexport default $\n","var animateCss = function ($el, animationName) {\n return new Promise(function (resolve) {\n function handleAnimationEnd () {\n $el.classList.remove('animated', animationName)\n resolve()\n clearTimeout(fallbackTimer)\n $el.removeEventListener('animationend', handleAnimationEnd)\n }\n\n $el.classList.add('animated', animationName)\n var fallbackTimer = setTimeout(handleAnimationEnd, $el.classList.contains('slower') ? 800 : 500)\n $el.addEventListener('animationend', handleAnimationEnd)\n })\n}\n\nif (typeof window === 'object') {\n window.animateCss = animateCss\n}\n\nexport default animateCss\n","const { userAgent } = navigator\nconst screenWidth = document.body ? document.body.offsetWidth : window.screen.width\n\nexport const isSafari = userAgent.includes('Safari') && !userAgent.includes('Chrome')\n\nexport const isSafariNew = isSafari && /Version\\/1[4-9]/i.test(userAgent)\n\nexport const isIOS = /iPad|iPhone|iPod/.test(userAgent) && !window.MSStream\n\nexport const isIE = !!document.documentMode\n\nexport const isMobile = isIOS || /Android|webOS|BlackBerry|IEMobile|Opera Mini/i.test(userAgent)\n\nexport const isScreenXs = screenWidth <= 575.98\n\nexport const isScreenLg = screenWidth >= 992\n","/*!\n * @ecomplus/storefront-twbs\n * (c) E-Com Club <ti@e-com.club>\n * Released under the MIT License.\n */\n\nimport { name, version } from './../package.json'\n\nimport $ from './$'\nimport animateCss from './animate-css'\nimport './bootstrap'\n\nconst _self = name + '@' + version\n\nexport * from './_env'\n\nexport {\n _self,\n $,\n animateCss\n}\n\nexport default $\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VerifiedPurchase.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!./VerifiedPurchase.vue?vue&type=script&lang=js\"","<template>\n <div>\n <div class=\"mt-rating__verified\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"icon icon-tabler icon-tabler-discount-check-filled\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n fill=\"none\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path\n d=\"M12.01 2.011a3.2 3.2 0 0 1 2.113 .797l.154 .145l.698 .698a1.2 1.2 0 0 0 .71 .341l.135 .008h1a3.2 3.2 0 0 1 3.195 3.018l.005 .182v1c0 .27 .092 .533 .258 .743l.09 .1l.697 .698a3.2 3.2 0 0 1 .147 4.382l-.145 .154l-.698 .698a1.2 1.2 0 0 0 -.341 .71l-.008 .135v1a3.2 3.2 0 0 1 -3.018 3.195l-.182 .005h-1a1.2 1.2 0 0 0 -.743 .258l-.1 .09l-.698 .697a3.2 3.2 0 0 1 -4.382 .147l-.154 -.145l-.698 -.698a1.2 1.2 0 0 0 -.71 -.341l-.135 -.008h-1a3.2 3.2 0 0 1 -3.195 -3.018l-.005 -.182v-1a1.2 1.2 0 0 0 -.258 -.743l-.09 -.1l-.697 -.698a3.2 3.2 0 0 1 -.147 -4.382l.145 -.154l.698 -.698a1.2 1.2 0 0 0 .341 -.71l.008 -.135v-1l.005 -.182a3.2 3.2 0 0 1 3.013 -3.013l.182 -.005h1a1.2 1.2 0 0 0 .743 -.258l.1 -.09l.698 -.697a3.2 3.2 0 0 1 2.269 -.944zm3.697 7.282a1 1 0 0 0 -1.414 0l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.32 1.497l2 2l.094 .083a1 1 0 0 0 1.32 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z\"\n stroke-width=\"0\"\n fill=\"currentColor\"\n />\n </svg>\n\n <span title=\"Esta compra foi auditada por Martan.app\"> {{ i19verifiedBuyer }} </span>\n </div>\n <div class=\"collapse multi-collapse\" :id=\"collapseId\">\n <div class=\"card card-body\">\n <h5>{{ i19howProcessVerifiedMsg }}</h5>\n\n <p>\n {{ i19useMartanPrivacyMsg }}\n </p>\n\n <p>\n {{ i19howWeCollectMsg }}\n </p>\n\n <p>\n {{ i19howClientsReviewMsg }}\n </p>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport { i18n } from \"@ecomplus/utils\";\nimport $ from \"../../../../../storefront-twbs/src\";\n\nexport default {\n name: \"VerifiedPurchase\",\n\n props: {\n showVerified: {\n type: Boolean,\n default: false,\n },\n },\n\n data() {\n return {\n collapseId: null,\n };\n },\n\n computed: {\n i19verifiedBuyer: () => \"Comprador verificado\",\n i19howProcessVerifiedMsg: () =>\n i18n({\n en_us: \"How we verify and process reviews\",\n pt_br: \"Como verificamos e processamos avaliações\",\n }),\n i19useMartanPrivacyMsg: () =>\n i18n({\n en_us:\n \"We use Martan, a web-based application that provides an online reviews and marketing solution, to collect, source, process and display reviews on our website.\",\n pt_br:\n \"Utilizamos o Martan, uma aplicação baseada na web que oferece uma solução de avaliações online e marketing, para coletar, originar, processar e exibir avaliações em nosso site.\",\n }),\n i19howWeCollectMsg: () =>\n i18n({\n en_us:\n 'We automatically send review requests through Martan to customers for whom we have a record of purchasing products directly from our website. This allows us to verify the reliability of the review through technical means such as the customers email address. Reviews submitted directly through these requests are marked as \"Verified Purchase\", and the following statement will be displayed in the interface where the review is published: \"This review was collected from a verified customer who purchased this item.\"',\n pt_br:\n 'Enviamos automaticamente solicitações de avaliações por meio do Martan aos clientes para os quais temos registro de que compraram produtos diretamente em nosso site. Isso nos permite verificar a confiabilidade da avaliação por meio de meios técnicos, como o endereço de e-mail do cliente. As avaliações enviadas diretamente por essas solicitações são marcadas como \"Compra verificada\", e a seguinte declaração será exibida na interface em que a avaliação for publicada: \"Esta avaliação foi coletada de um cliente verificado que comprou este item\".',\n }),\n i19howClientsReviewMsg: () =>\n i18n({\n en_us:\n \"Customers can choose how to rate reviewed products with a score between 1 and 5. The average review score is calculated using a simple mathematical average, which is then rounded to a half or full star rating using standard rounding rules. The average review score includes reviews for which customers received discounts on future purchases for adding a photo or video to their review.\",\n pt_br:\n \"Os clientes podem escolher como avaliar os produtos avaliados com uma pontuação entre 1 e 5. A pontuação média das avaliações é calculada usando uma média matemática simples, que é então arredondada para uma meia ou uma avaliação de estrela completa usando regras padrão de arredondamento. A pontuação média das avaliações inclui avaliações para as quais os clientes receberam descontos em compras futuras por adicionar uma foto ou um vídeo à sua avaliação.\",\n }),\n },\n\n methods: {\n open: function () {\n $(\"#\" + this.collapseId).collapse(\"toggle\");\n },\n },\n\n mounted: function () {\n this.collapseId = \"mt-verified-\" + Date.now();\n },\n};\n</script>\n\n<style lang=\"scss\">\n.mt-rating__verified {\n color: #9e9e9e;\n font-size: 10px;\n font-weight: 400;\n display: flex;\n align-items: center;\n gap: 3px;\n svg {\n width: 15px;\n color: var(--success);\n }\n}\n</style>\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReviewCard.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!./ReviewCard.vue?vue&type=script&lang=js\"","x<template>\n <div class=\"review-card\" v-if=\"review\">\n <div class=\"review-card__header\">\n <div class=\"review-card__author\">\n <span class=\"review-card__name\">{{ review.display_name }}</span>\n <span class=\"review-card__date\" :title=\"timeAgo(review.created_at)\">{{\n formatDate(review.created_at)\n }}</span>\n\n <VerifiedPurchase v-if=\"review.verified_purchase\" />\n </div>\n <div class=\"review-card__rating\">\n <div v-for=\"star in 5\" :key=\"star\" class=\"review-card__star\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\"\n :stroke=\"star <= review.rating ? starColor : '#E6E3E3'\" :fill=\"star <= review.rating ? starColor : 'none'\"\n stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path\n d=\"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z\" />\n </svg>\n </div>\n </div>\n </div>\n\n <div class=\"review-card__content\">\n <p class=\"review-card__title\" v-if=\"review.title\">\n {{ review.title }}\n </p>\n\n <p class=\"review-card__text\" v-if=\"review.body\">\n {{ showFullText ? review.body : truncatedText }}\n <span v-if=\"review.body.length > 200\" class=\"review-card__text-toggle\" @click=\"showFullText = !showFullText\">\n {{ showFullText ? \"Ver menos\" : \"Ver mais\" }}\n </span>\n </p>\n <p class=\"review-card__text-empty\" v-else>(Avaliação sem comentário)</p>\n\n <div v-if=\"review.pictures && review.pictures.length\" class=\"review-card__images\">\n <img v-for=\"(image, index) in review.pictures\" :key=\"index\" data-loaded=\"false\" :data-src=\"image.thumb\"\n :alt=\"`Review image ${index + 1}`\" @click=\"$emit('openQuickview', { review, imageIndex: index })\"\n v-show=\"image.thumb\" class=\"mt-lazy-image\" />\n </div>\n\n <div class=\"review-card__recommendation\">\n <i class=\"i-happy-line\"></i>\n <span class=\"text-sm\">Eu comprei e recomendo esse produto</span>\n </div>\n </div>\n\n <div class=\"review-card-reply\" v-if=\"review.reply\">\n <ReviewReply :reply=\"review.reply\" />\n </div>\n </div>\n</template>\n\n<script>\nimport { timeAgo } from \"../../../utils/time-ago\";\nimport ReviewReply from \"./ReviewReply.vue\";\nimport VerifiedPurchase from \"./VerifiedPurchase.vue\";\n\nexport default {\n name: \"ReviewCard\",\n\n components: {\n ReviewReply,\n VerifiedPurchase,\n },\n\n data() {\n return {\n showFullText: false,\n };\n },\n\n props: {\n review: {\n type: Object,\n required: true,\n },\n starColor: {\n type: String,\n default: \"#212529\",\n },\n truncateBody: {\n type: Boolean,\n default: true,\n },\n },\n\n methods: {\n timeAgo,\n formatDate(date) {\n return new Date(date).toLocaleDateString(\"pt-BR\", {\n timeZone: \"America/Sao_Paulo\",\n });\n },\n },\n\n computed: {\n truncatedText() {\n return this.review.body.substring(0, 200) + \"...\";\n },\n },\n\n mounted() {\n const images = Array.from(document.querySelectorAll(\".mt-lazy-image\"));\n const imageObserver = new IntersectionObserver((entries, observer) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting && entry.target.dataset.loaded === \"false\") {\n const image = entry.target;\n image.dataset.loaded = true;\n image.src = image.dataset.src;\n imageObserver.unobserve(image);\n }\n });\n });\n\n images.forEach((img) => imageObserver.observe(img));\n this.showFullText = !this.truncateBody;\n },\n};\n</script>\n\n<style lang=\"scss\" scoped>\n.review-card {\n background-color: #F3F3F3;\n border-radius: 8px;\n padding: 16px;\n width: 100%;\n height: max-content;\n\n &__header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n margin-bottom: 1rem;\n }\n\n &__author {\n display: flex;\n flex-direction: column;\n }\n\n &__name {\n font-weight: bold;\n margin-bottom: 0.25rem;\n }\n\n &__date {\n font-size: 70%;\n color: rgb(113 113 122 / 1);\n }\n\n &__rating {\n display: flex;\n gap: 0.25rem;\n }\n\n &__content {\n font-size: 0.9375rem;\n }\n\n &__text {\n margin-bottom: 1rem;\n line-height: 1.5;\n }\n\n &__text-toggle {\n cursor: pointer;\n color: #047857;\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n\n &__images {\n display: flex;\n gap: 0.5rem;\n flex-wrap: wrap;\n\n img {\n width: 80px;\n height: 80px;\n object-fit: cover;\n border-radius: 0.25rem;\n cursor: pointer;\n }\n }\n\n &__text-empty {\n font-size: 70%;\n color: rgb(113 113 122 / 1);\n }\n\n &__title {\n font-size: 1.125rem;\n line-height: 1.75rem;\n font-weight: 500;\n margin-bottom: 0.5rem;\n }\n\n &__recommendation {\n margin-top: 1rem;\n color: #047857;\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n}\n\n.i-happy-line {\n --un-icon: url(\"data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' margin-bottom='0.22rem' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='currentColor' d='M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12m6.5-2c-.195 0-.444.124-.606.448a1 1 0 0 1-1.788-.896C6.542 8.68 7.413 8 8.5 8s1.957.68 2.394 1.552a1 1 0 0 1-1.788.896C8.944 10.124 8.696 10 8.5 10m7 0c-.195 0-.444.124-.606.448a1 1 0 1 1-1.788-.896C13.543 8.68 14.413 8 15.5 8s1.957.68 2.394 1.552a1 1 0 0 1-1.788.896c-.162-.324-.41-.448-.606-.448m-6.896 4.338a1 1 0 0 1 1.412-.088c.53.468 1.223.75 1.984.75s1.455-.282 1.984-.75a1 1 0 1 1 1.324 1.5A4.98 4.98 0 0 1 12 17a4.98 4.98 0 0 1-3.308-1.25a1 1 0 0 1-.088-1.412'/%3E%3C/g%3E%3C/svg%3E\");\n -webkit-mask: var(--un-icon) no-repeat;\n mask: var(--un-icon) no-repeat;\n -webkit-mask-size: 100% 100%;\n mask-size: 100% 100%;\n background-color: #047857;\n color: inherit;\n display: inline-block;\n vertical-align: middle;\n margin-bottom: 0.22rem;\n width: 1em;\n height: 1em;\n}\n</style>\n","import { render, staticRenderFns } from \"./VerifiedPurchase.vue?vue&type=template&id=74c2f4be\"\nimport script from \"./VerifiedPurchase.vue?vue&type=script&lang=js\"\nexport * from \"./VerifiedPurchase.vue?vue&type=script&lang=js\"\nimport style0 from \"./VerifiedPurchase.vue?vue&type=style&index=0&id=74c2f4be&prod&lang=scss\"\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 () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"mt-rating__verified\"},[_c('svg',{staticClass:\"icon icon-tabler icon-tabler-discount-check-filled\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":\"24\",\"height\":\"24\",\"viewBox\":\"0 0 24 24\",\"stroke-width\":\"2\",\"stroke\":\"currentColor\",\"fill\":\"none\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}},[_c('path',{attrs:{\"stroke\":\"none\",\"d\":\"M0 0h24v24H0z\",\"fill\":\"none\"}}),_c('path',{attrs:{\"d\":\"M12.01 2.011a3.2 3.2 0 0 1 2.113 .797l.154 .145l.698 .698a1.2 1.2 0 0 0 .71 .341l.135 .008h1a3.2 3.2 0 0 1 3.195 3.018l.005 .182v1c0 .27 .092 .533 .258 .743l.09 .1l.697 .698a3.2 3.2 0 0 1 .147 4.382l-.145 .154l-.698 .698a1.2 1.2 0 0 0 -.341 .71l-.008 .135v1a3.2 3.2 0 0 1 -3.018 3.195l-.182 .005h-1a1.2 1.2 0 0 0 -.743 .258l-.1 .09l-.698 .697a3.2 3.2 0 0 1 -4.382 .147l-.154 -.145l-.698 -.698a1.2 1.2 0 0 0 -.71 -.341l-.135 -.008h-1a3.2 3.2 0 0 1 -3.195 -3.018l-.005 -.182v-1a1.2 1.2 0 0 0 -.258 -.743l-.09 -.1l-.697 -.698a3.2 3.2 0 0 1 -.147 -4.382l.145 -.154l.698 -.698a1.2 1.2 0 0 0 .341 -.71l.008 -.135v-1l.005 -.182a3.2 3.2 0 0 1 3.013 -3.013l.182 -.005h1a1.2 1.2 0 0 0 .743 -.258l.1 -.09l.698 -.697a3.2 3.2 0 0 1 2.269 -.944zm3.697 7.282a1 1 0 0 0 -1.414 0l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.32 1.497l2 2l.094 .083a1 1 0 0 0 1.32 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z\",\"stroke-width\":\"0\",\"fill\":\"currentColor\"}})]),_c('span',{attrs:{\"title\":\"Esta compra foi auditada por Martan.app\"}},[_vm._v(\" \"+_vm._s(_vm.i19verifiedBuyer)+\" \")])]),_c('div',{staticClass:\"collapse multi-collapse\",attrs:{\"id\":_vm.collapseId}},[_c('div',{staticClass:\"card card-body\"},[_c('h5',[_vm._v(_vm._s(_vm.i19howProcessVerifiedMsg))]),_c('p',[_vm._v(\" \"+_vm._s(_vm.i19useMartanPrivacyMsg)+\" \")]),_c('p',[_vm._v(\" \"+_vm._s(_vm.i19howWeCollectMsg)+\" \")]),_c('p',[_vm._v(\" \"+_vm._s(_vm.i19howClientsReviewMsg)+\" \")])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./ReviewCard.vue?vue&type=template&id=3da2753a&scoped=true\"\nimport script from \"./ReviewCard.vue?vue&type=script&lang=js\"\nexport * from \"./ReviewCard.vue?vue&type=script&lang=js\"\nimport style0 from \"./ReviewCard.vue?vue&type=style&index=0&id=3da2753a&prod&lang=scss&scoped=true\"\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 \"3da2753a\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../../../node_modules/vue-style-loader/index.js!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoPlayer.vue?vue&type=style&index=0&id=4f122ab7&prod&lang=scss\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".mt-player video{display:block;width:100%}.mt-player .playPauseBtn{background:none;border:0;color:#212529;cursor:pointer;line-height:1;max-width:50px;outline:0;padding:0;text-align:center}.mt-player__controls{padding:5px;transform:translateY(0);width:100%}.mt-player__controls>*{flex:1}.mt-player__progress{background:hsla(0,0%,100%,.5);cursor:pointer;display:flex;flex:10;flex-basis:100%;height:5px;max-width:430px;position:relative;width:100%}.mt-player__progress--filled{background:#a50;flex:0;flex-basis:0%;width:50%}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","export * from \"-!../../../../../../node_modules/vue-style-loader/index.js!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Quickview.vue?vue&type=style&index=0&id=ef1c07f4&prod&lang=scss\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"#martan-quickview{padding:0!important}#martan-quickview .modal-dialog{margin:0 auto}.mt-quickview .review-card{margin-top:0!important;width:100%!important}.mt-quickview .review-card__images{display:none}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","export * from \"-!../../../../../../node_modules/vue-style-loader/index.js!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Quickview.vue?vue&type=style&index=1&id=ef1c07f4&prod&lang=scss&scoped=true\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".mt-quickview[data-v-ef1c07f4]{padding:0}.mt-quickview__content[data-v-ef1c07f4]{display:flex;flex-direction:column}@media(min-width:992px){.mt-quickview__content[data-v-ef1c07f4]{flex-direction:row}}.mt-quickview__gallery-column[data-v-ef1c07f4]{flex:1;max-width:500px;width:100%}.mt-quickview__main-image img[data-v-ef1c07f4]{border-top-left-radius:3px;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}@media(max-width:992px){.mt-quickview__main-image img[data-v-ef1c07f4]{border-top-right-radius:3px}}.mt-quickview__thumbnails[data-v-ef1c07f4]{display:flex;gap:.5rem;overflow-x:auto;padding:.5rem}@media(min-width:992px){.mt-quickview__thumbnails[data-v-ef1c07f4]{flex-wrap:wrap;max-height:100px}}.mt-quickview__thumb[data-v-ef1c07f4]{border:2px solid transparent;cursor:pointer;flex-shrink:0;height:60px;width:60px}.mt-quickview__thumb.active[data-v-ef1c07f4]{border-color:var(--primary)}.mt-quickview__thumb img[data-v-ef1c07f4]{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.mt-quickview__thumb i[data-v-ef1c07f4]{align-items:center;background:#f8f9fa;display:flex;font-size:1.5rem;height:100%;justify-content:center;width:100%}.mt-quickview__info-column[data-v-ef1c07f4]{flex:1}@media(min-width:992px){.mt-quickview__info-column[data-v-ef1c07f4]{max-height:500px;overflow-y:auto}}.mt-quickview .close[data-v-ef1c07f4]{padding:8px 1rem;position:absolute;z-index:1}.mt-quickview__galery[data-v-ef1c07f4]{align-items:center;display:flex;max-width:500px;min-height:500px;width:100%}.mt-quickview__galery img[data-v-ef1c07f4]{height:100%;max-height:500px;max-width:500px;-o-object-fit:contain;object-fit:contain;width:100%}.mt-quickview__galery .glide__slides[data-v-ef1c07f4]{align-items:center}.mt-quickview__review[data-v-ef1c07f4]{padding:1rem}@media(min-width:992px){.mt-quickview__review[data-v-ef1c07f4]{max-height:500px;overflow:auto}}@media(min-width:1200px){.mt-quickview__review[data-v-ef1c07f4]{max-height:500px;overflow:auto}}.mt-quickview .video-wrapper[data-v-ef1c07f4]{align-items:center;display:flex}\", \"\"]);\n// Exports\nmodule.exports = exports;\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://widgetMartan/./src/widgets/reviews/components/Rating.vue?c507","webpack://widgetMartan/./src/widgets/reviews/components/Rating.vue?ab9f","webpack://widgetMartan/./src/widgets/reviews/components/Rating.vue?03a2","webpack://widgetMartan/src/widgets/reviews/components/Rating.vue","webpack://widgetMartan/./src/widgets/reviews/components/Rating.vue","webpack://widgetMartan/./src/widgets/reviews/components/RatingBreakdown.vue?c0f1","webpack://widgetMartan/./src/widgets/reviews/components/Rating.vue?2ff4","webpack://widgetMartan/./src/widgets/reviews/components/Rating.vue?0e4b","webpack://widgetMartan/./src/widgets/reviews/components/RatingBreakdown.vue?b1e0","webpack://widgetMartan/./src/widgets/reviews/components/RatingBreakdown.vue?0822","webpack://widgetMartan/./src/widgets/reviews/components/SortDropdown.vue?bccc","webpack://widgetMartan/./src/widgets/reviews/components/RatingBreakdown.vue?e347","webpack://widgetMartan/./src/widgets/reviews/components/RatingBreakdown.vue?1232","webpack://widgetMartan/src/widgets/reviews/components/RatingBreakdown.vue","webpack://widgetMartan/./src/widgets/reviews/components/RatingBreakdown.vue","webpack://widgetMartan/./src/widgets/reviews/components/SortDropdown.vue?c1e6","webpack://widgetMartan/./src/widgets/reviews/components/SortDropdown.vue?3dca","webpack://widgetMartan/./src/widgets/reviews/components/SortDropdown.vue?a8fb","webpack://widgetMartan/./src/widgets/reviews/components/SortDropdown.vue?3555","webpack://widgetMartan/src/widgets/reviews/components/SortDropdown.vue","webpack://widgetMartan/./src/widgets/reviews/components/SortDropdown.vue","webpack://widgetMartan/./src/widgets/reviews/components/RatingSummary.vue?5ab9","webpack://widgetMartan/./src/widgets/reviews/headers/Compact.vue?e004","webpack://widgetMartan/./src/widgets/reviews/components/RatingSummary.vue?9074","webpack://widgetMartan/./src/widgets/reviews/components/RatingSummary.vue?8f95","webpack://widgetMartan/./src/widgets/reviews/headers/Compact.vue?0022","webpack://widgetMartan/./src/widgets/reviews/headers/Compact.vue?e0f5","webpack://widgetMartan/./src/widgets/reviews/headers/Compact.vue?4d16","webpack://widgetMartan/./src/widgets/reviews/components/RatingSummary.vue?df39","webpack://widgetMartan/src/widgets/reviews/components/RatingSummary.vue","webpack://widgetMartan/./src/widgets/reviews/components/RatingSummary.vue","webpack://widgetMartan/./src/widgets/reviews/components/RatingSummary.vue?8c27","webpack://widgetMartan/./src/widgets/reviews/headers/Compact.vue?f361","webpack://widgetMartan/src/widgets/reviews/headers/Compact.vue","webpack://widgetMartan/./src/widgets/reviews/headers/Compact.vue"],"names":["content","__esModule","default","module","i","locals","exports","add","name","props","rating","type","Number","color","String","data","stars","Array","fill","mounted","updateStars","methods","Math","max","min","map","_","index","getStarClass","star","getStarFill","watch","component","_vm","this","_h","$createElement","_c","_self","staticClass","_l","key","class","style","attrs","_e","___CSS_LOADER_API_IMPORT___","push","configProp","Object","five","four","three","two","one","totalRating","average","currentActive","computed","ratingBreakdown","houverColor","config","widget_review","star_color","lightenColor","getBarWidth","count","selectRating","$emit","components","Rating","on","$event","parseInt","width","backgroundColor","_v","_s","visible","Boolean","currentSort","sortOptions","value","label","addClickOutsideListener","beforeDestroy","removeClickOutsideListener","newValue","$nextTick","selectSort","sortValue","document","addEventListener","handleClickOutside","removeEventListener","event","target","classList","contains","nodeName","$refs","dropdown","ref","_m","option","RatingBreakdown","recommended","totalRecommended","round","ratingSummary","toFixed","RatingSummary","SortDropdown","showDropdown","showFilter","formatReviewsCount","replace","toLocaleString","toggleDropdown","toggleFilter","onRatingSelected","onSortSelected"],"mappings":"oGAGA,IAAIA,EAAU,EAAQ,IACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,iBAAZF,IAAsBA,EAAU,CAAC,CAACG,EAAOC,EAAIJ,EAAS,MAC7DA,EAAQK,SAAQF,EAAOG,QAAUN,EAAQK,SAG/BE,EADH,EAAQ,GAA2EL,SAC5E,WAAYF,GAAS,EAAM,K,gCCT5C,ICA6M,ECiC9L,CACfQ,KAAA,SAEAC,MAAA,CACAC,OAAA,CACAC,KAAAC,OACAV,QAAA,GAGAW,MAAA,CACAF,KAAAG,OACAZ,QAAA,YAIAa,UACA,CACAC,MAAAC,MAAA,GAAAC,KAAA,KAIAC,UACA,KAAAC,eAGAC,QAAA,CACAD,cACA,MAAAV,EAAAY,KAAAC,IAAA,EAAAD,KAAAE,IAAA,OAAAd,SACA,KAAAM,MAAAC,MAAA,GAAAC,KAAA,GAAAO,IAAA,CAAAC,EAAAC,IAEAjB,GADAiB,EAAA,EAEA,EACAjB,EAAAiB,EACA,GAEA,IAKAC,aAAAC,GACA,IAAAA,EACA,0BACA,KAAAA,EACA,wBAEA,mBAIAC,aAAAD,EAAAF,IACA,IAAAE,EACA,eACA,KAAAA,EACA,iBAAAF,KAEA,QAKAI,MAAA,CACArB,OAAA,gB,eCvFIsB,EAAY,YACd,GHTW,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACE,YAAY,iBAAiBN,EAAIO,GAAIP,EAAS,OAAE,SAASJ,EAAKF,GAAO,OAAOU,EAAG,MAAM,CAACI,IAAId,EAAMY,YAAY,mBAAmBG,MAAMT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kBAAkBgC,GAAG,CAAC,MAAQtC,EAAIsF,eAAe,CAAClF,EAAG,MAAM,CAACO,MAAM,CAAC,MAAQ,KAAK,OAAS,KAAK,QAAU,YAAY,KAAO,SAAS,CAACP,EAAG,OAAO,CAACO,MAAM,CAAC,EAAI,yBAAyB,OAAS,eAAe,eAAe,MAAM,iBAAiB,WAAWP,EAAG,SAAS,CAACO,MAAM,CAAC,GAAK,IAAI,GAAK,IAAI,EAAI,MAAM,KAAO,kBAAkBP,EAAG,SAAS,CAACO,MAAM,CAAC,GAAK,KAAK,GAAK,IAAI,EAAI,MAAM,KAAO,kBAAkBP,EAAG,SAAS,CAACO,MAAM,CAAC,GAAK,IAAI,GAAK,KAAK,EAAI,MAAM,KAAO,sBAAsBP,EAAG,eAAe,CAACO,MAAM,CAAC,QAAUX,EAAIiF,WAAW,eAAejF,EAAI+C,aAAaT,GAAG,CAAC,gBAAgBtC,EAAIwF,eAAe,MAAQ,SAASjD,GAAQvC,EAAIiF,YAAa,OAAW,OAC3zD,IOWpB,EACA,KACA,WACA,OAIa,Y","file":"widget-martan.2.min.js","sourcesContent":["// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Rating.vue?vue&type=style&index=0&id=39af319e&prod&lang=css\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"5a552598\", content, true, {});","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"martan-rating\"},_vm._l((_vm.stars),function(star,index){return _c('svg',{key:index,staticClass:\"icon icon-tabler\",class:_vm.getStarClass(star),style:({ color: _vm.color }),attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":\"14\",\"height\":\"14\",\"viewBox\":\"0 0 24 24\",\"stroke-width\":\"2\",\"stroke\":\"currentColor\",\"fill\":\"none\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}},[(star === 0.5)?_c('defs',[_c('linearGradient',{attrs:{\"id\":(\"gradient-\" + index),\"x1\":\"0%\",\"y1\":\"0%\",\"x2\":\"100%\",\"y2\":\"0%\"}},[_c('stop',{style:((\"stop-color:\" + _vm.color + \";stop-opacity:1\")),attrs:{\"offset\":\"50%\"}}),_c('stop',{style:((\"stop-color:\" + _vm.color + \";stop-opacity:0\")),attrs:{\"offset\":\"50%\"}})],1)],1):_vm._e(),_c('path',{attrs:{\"stroke\":\"none\",\"d\":\"M0 0h24v24H0z\",\"fill\":\"none\"}}),_c('path',{attrs:{\"d\":\"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z\",\"fill\":_vm.getStarFill(star, index)}})])}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Rating.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!./Rating.vue?vue&type=script&lang=js\"","<template>\n <span class=\"martan-rating\">\n <svg\n v-for=\"(star, index) in stars\"\n :key=\"index\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"icon icon-tabler\"\n :class=\"getStarClass(star)\"\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n fill=\"none\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n :style=\"{ color }\"\n >\n <defs v-if=\"star === 0.5\">\n <linearGradient :id=\"`gradient-${index}`\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">\n <stop offset=\"50%\" :style=\"`stop-color:${color};stop-opacity:1`\" />\n <stop offset=\"50%\" :style=\"`stop-color:${color};stop-opacity:0`\" />\n </linearGradient>\n </defs>\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path\n d=\"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z\"\n :fill=\"getStarFill(star, index)\" />\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: 'Rating',\n\n props: {\n rating: {\n type: Number,\n default: 5\n },\n\n color: {\n type: String,\n default: \"#000000\"\n },\n },\n\n data() {\n return {\n stars: Array(5).fill(0)\n };\n },\n\n mounted() {\n this.updateStars();\n },\n\n methods: {\n updateStars() {\n const rating = Math.max(0, Math.min(5, this.rating));\n this.stars = Array(5).fill(0).map((_, index) => {\n const starPosition = index + 1;\n if (rating >= starPosition) {\n return 1;\n } else if (rating > index) {\n return 0.5;\n } else {\n return 0;\n }\n });\n },\n\n getStarClass(star) {\n if (star === 1) {\n return 'icon-tabler-star-filled';\n } else if (star === 0.5) {\n return 'icon-tabler-star-half';\n } else {\n return 'icon-tabler-star';\n }\n },\n\n getStarFill(star, index) {\n if (star === 1) {\n return 'currentColor';\n } else if (star === 0.5) {\n return `url(#gradient-${index})`;\n } else {\n return 'none';\n }\n }\n },\n\n watch: {\n rating: 'updateStars'\n }\n};\n</script>\n\n<style lang=\"css\">\n.martan-rating {\n display: flex;\n gap: 4px;\n}\n</style>\n","import { render, staticRenderFns } from \"./Rating.vue?vue&type=template&id=39af319e\"\nimport script from \"./Rating.vue?vue&type=script&lang=js\"\nexport * from \"./Rating.vue?vue&type=script&lang=js\"\nimport style0 from \"./Rating.vue?vue&type=style&index=0&id=39af319e&prod&lang=css\"\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","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RatingBreakdown.vue?vue&type=style&index=0&id=121d360c&prod&lang=scss&scoped=true\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"8c4908ae\", content, true, {});","export * from \"-!../../../../../../node_modules/vue-style-loader/index.js!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Rating.vue?vue&type=style&index=0&id=39af319e&prod&lang=css\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".martan-rating{display:flex;gap:4px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","export * from \"-!../../../../../../node_modules/vue-style-loader/index.js!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RatingBreakdown.vue?vue&type=style&index=0&id=121d360c&prod&lang=scss&scoped=true\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".mrtn-rating-breakdown[data-v-121d360c]{display:flex;flex-direction:column;width:100%}.mrtn-rating-row[data-v-121d360c]{align-items:center;border-radius:6px;cursor:pointer;display:flex;gap:12px;padding:8px;position:relative;transition:all .2s ease}.mrtn-rating-row--active[data-v-121d360c],.mrtn-rating-row[data-v-121d360c]:hover{background:var(--hover-color)}.mrtn-rating-row--active[data-v-121d360c]{box-shadow:0 0 0 2px var(--hover-color);transform:scale(1.02);z-index:10}.mrtn-rating-breakdown--has-active .mrtn-rating-row[data-v-121d360c]:not(.mrtn-rating-row--active){filter:grayscale(.8);opacity:.4}.mrtn-rating-stars[data-v-121d360c]{display:flex;gap:2px;min-width:80px}.mrtn-rating-star[data-v-121d360c]{color:#e5e5e5;font-size:14px}.mrtn-rating-star--filled[data-v-121d360c]{color:#000}.mrtn-rating-bar[data-v-121d360c]{background:#f0f0f0;border-radius:4px;flex:1;height:8px;overflow:hidden;position:relative;transition:all .2s ease}.mrtn-rating-bar__fill[data-v-121d360c]{border-radius:4px;height:100%;transition:width .3s ease}.mrtn-rating-count[data-v-121d360c]{color:#666;font-size:12px;min-width:40px;text-align:right}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SortDropdown.vue?vue&type=style&index=0&id=2b3eeb35&prod&lang=scss&scoped=true\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"a1278eac\", content, true, {});","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mrtn-rating-breakdown\",class:{ 'mrtn-rating-breakdown--has-active': _vm.currentActive !== null },style:('--hover-color: ' + _vm.houverColor)},_vm._l((_vm.ratingBreakdown),function(count,stars){return _c('div',{key:stars,staticClass:\"mrtn-rating-row\",class:{ 'mrtn-rating-row--active': _vm.currentActive === stars },on:{\"click\":function($event){return _vm.selectRating(stars)}}},[_c('div',{staticClass:\"mrtn-rating-stars\"},[_c('Rating',{attrs:{\"rating\":parseInt(stars),\"color\":_vm.config.widget_review.star_color}})],1),_c('div',{staticClass:\"mrtn-rating-bar\"},[_c('div',{staticClass:\"mrtn-rating-bar__fill\",style:({\n width: _vm.getBarWidth(count) + '%',\n backgroundColor: _vm.config.widget_review.star_color\n })})]),_c('span',{staticClass:\"mrtn-rating-count\"},[_vm._v(\"(\"+_vm._s(count)+\")\")])])}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RatingBreakdown.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!./RatingBreakdown.vue?vue&type=script&lang=js\"","<template>\n <div class=\"mrtn-rating-breakdown\" :style=\"'--hover-color: ' + houverColor\" :class=\"{ 'mrtn-rating-breakdown--has-active': currentActive !== null }\">\n <div v-for=\"(count, stars) in ratingBreakdown\" :key=\"stars\" class=\"mrtn-rating-row\"\n :class=\"{ 'mrtn-rating-row--active': currentActive === stars }\" @click=\"selectRating(stars)\">\n <div class=\"mrtn-rating-stars\">\n <Rating :rating=\"parseInt(stars)\" :color=\"config.widget_review.star_color\" />\n </div>\n\n <div class=\"mrtn-rating-bar\">\n <div class=\"mrtn-rating-bar__fill\" :style=\"{\n width: getBarWidth(count) + '%',\n backgroundColor: config.widget_review.star_color\n }\"></div>\n </div>\n\n <span class=\"mrtn-rating-count\">({{ count }})</span>\n </div>\n </div>\n</template>\n\n<script>\nimport { configProp } from \"../../../utils/configProps\";\nimport Rating from \"./Rating.vue\";\nimport { lightenColor } from \"../../../utils/lighten-color\";\n\nexport default {\n name: 'RatingBreakdown',\n\n props: {\n ...configProp,\n rating: {\n type: Object,\n default: () => ({\n five: 0,\n four: 0,\n three: 0,\n two: 0,\n one: 0\n })\n },\n\n totalRating: {\n type: Number,\n default: 0\n },\n\n\n average: {\n type: Number,\n default: 0\n }\n },\n\n data() {\n return {\n currentActive: null\n }\n },\n\n computed: {\n ratingBreakdown() {\n return {\n 5: this.rating.five,\n 4: this.rating.four,\n 3: this.rating.three,\n 2: this.rating.two,\n 1: this.rating.one\n }\n },\n\n houverColor() {\n if (!this.config.widget_review.star_color) return null\n return lightenColor(this.config.widget_review.star_color, 0.9)\n }\n },\n\n methods: {\n lightenColor,\n getBarWidth(count) {\n if (this.totalRating === 0) return 0\n return (count / this.totalRating) * 100\n },\n\n selectRating(rating) {\n if (this.currentActive === rating) {\n this.currentActive = null\n } else {\n this.currentActive = rating\n }\n this.$emit('rating-selected', this.currentActive)\n }\n },\n\n components: {\n Rating\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.mrtn-rating-breakdown {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n.mrtn-rating-row {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px;\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.2s ease;\n position: relative;\n\n &:hover {\n background: var(--hover-color);\n }\n\n &--active {\n background: var(--hover-color);\n box-shadow: 0 0 0 2px var(--hover-color);\n transform: scale(1.02);\n z-index: 10;\n }\n}\n\n.mrtn-rating-breakdown--has-active .mrtn-rating-row:not(.mrtn-rating-row--active) {\n opacity: 0.4;\n filter: grayscale(0.8);\n}\n\n.mrtn-rating-stars {\n display: flex;\n gap: 2px;\n min-width: 80px;\n}\n\n.mrtn-rating-star {\n font-size: 14px;\n color: #e5e5e5;\n\n &--filled {\n color: #000000;\n }\n}\n\n.mrtn-rating-bar {\n flex: 1;\n height: 8px;\n background: #f0f0f0;\n border-radius: 4px;\n overflow: hidden;\n position: relative;\n transition: all 0.2s ease;\n}\n\n.mrtn-rating-bar__fill {\n height: 100%;\n border-radius: 4px;\n transition: width 0.3s ease;\n}\n\n.mrtn-rating-count {\n font-size: 12px;\n color: #666666;\n min-width: 40px;\n text-align: right;\n}\n</style>\n","import { render, staticRenderFns } from \"./RatingBreakdown.vue?vue&type=template&id=121d360c&scoped=true\"\nimport script from \"./RatingBreakdown.vue?vue&type=script&lang=js\"\nexport * from \"./RatingBreakdown.vue?vue&type=script&lang=js\"\nimport style0 from \"./RatingBreakdown.vue?vue&type=style&index=0&id=121d360c&prod&lang=scss&scoped=true\"\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 \"121d360c\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../../../node_modules/vue-style-loader/index.js!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SortDropdown.vue?vue&type=style&index=0&id=2b3eeb35&prod&lang=scss&scoped=true\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".mrtn-sort-dropdown[data-v-2b3eeb35]{background:#fff;border:1px solid #e5e5e5;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.1);margin-top:8px;min-width:200px;padding:16px;position:absolute;right:0;top:100%;z-index:1000}.mrtn-sort-dropdown__header[data-v-2b3eeb35]{margin-bottom:12px}.mrtn-sort-dropdown__title[data-v-2b3eeb35]{color:#000;font-size:16px;font-weight:600;margin:0}.mrtn-sort-dropdown__options[data-v-2b3eeb35]{display:flex;flex-direction:column;gap:4px}.mrtn-sort-option[data-v-2b3eeb35]{align-items:center;border-radius:4px;cursor:pointer;display:flex;justify-content:space-between;padding:8px 12px;transition:background-color .2s ease}.mrtn-sort-option[data-v-2b3eeb35]:hover{background:#f8f8f8}.mrtn-sort-option--active[data-v-2b3eeb35]{background:#f0f0f0}.mrtn-sort-option__text[data-v-2b3eeb35]{color:#000;font-size:14px;font-weight:400}.mrtn-sort-option__check[data-v-2b3eeb35]{color:#000;flex-shrink:0}.mrtn-sort-dropdown__footer[data-v-2b3eeb35]{margin-top:12px;text-align:right}.mrtn-sort-dropdown__powered[data-v-2b3eeb35]{color:#999;font-size:11px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.visible)?_c('div',{ref:\"dropdown\",staticClass:\"mrtn-sort-dropdown\"},[_vm._m(0),_c('div',{staticClass:\"mrtn-sort-dropdown__options\"},_vm._l((_vm.sortOptions),function(option){return _c('div',{key:option.value,staticClass:\"mrtn-sort-option\",class:{ 'mrtn-sort-option--active': _vm.currentSort === option.value },on:{\"click\":function($event){return _vm.selectSort(option.value)}}},[_c('span',{staticClass:\"mrtn-sort-option__text\"},[_vm._v(_vm._s(option.label))]),(_vm.currentSort === option.value)?_c('svg',{staticClass:\"mrtn-sort-option__check\",attrs:{\"width\":\"16\",\"height\":\"16\",\"viewBox\":\"0 0 16 16\",\"fill\":\"none\"}},[_c('path',{attrs:{\"d\":\"M13.5 4.5L6 12L2.5 8.5\",\"stroke\":\"currentColor\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}})]):_vm._e()])}),0),_vm._m(1)]):_vm._e()}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mrtn-sort-dropdown__header\"},[_c('h3',{staticClass:\"mrtn-sort-dropdown__title\"},[_vm._v(\"Ordenar por\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mrtn-sort-dropdown__footer\"},[_c('span',{staticClass:\"mrtn-sort-dropdown__powered\"},[_vm._v(\"Powered by MARTAN.app\")])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SortDropdown.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!./SortDropdown.vue?vue&type=script&lang=js\"","<template>\n <div v-if=\"visible\" ref=\"dropdown\" class=\"mrtn-sort-dropdown\">\n <div class=\"mrtn-sort-dropdown__header\">\n <h3 class=\"mrtn-sort-dropdown__title\">Ordenar por</h3>\n </div>\n\n <div class=\"mrtn-sort-dropdown__options\">\n <div\n v-for=\"option in sortOptions\"\n :key=\"option.value\"\n class=\"mrtn-sort-option\"\n :class=\"{ 'mrtn-sort-option--active': currentSort === option.value }\"\n @click=\"selectSort(option.value)\"\n >\n <span class=\"mrtn-sort-option__text\">{{ option.label }}</span>\n <svg\n v-if=\"currentSort === option.value\"\n class=\"mrtn-sort-option__check\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n >\n <path d=\"M13.5 4.5L6 12L2.5 8.5\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </div>\n </div>\n\n <div class=\"mrtn-sort-dropdown__footer\">\n <span class=\"mrtn-sort-dropdown__powered\">Powered by MARTAN.app</span>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'SortDropdown',\n\n props: {\n visible: {\n type: Boolean,\n default: false\n },\n\n currentSort: {\n type: String,\n default: 'most_recent'\n }\n },\n\n data() {\n return {\n sortOptions: [\n { value: 'most_recent', label: 'Recentes' },\n { value: 'most_voted', label: 'Mais úteis' },\n { value: 'most_positive', label: 'Positivas' },\n { value: 'most_negative', label: 'Negativas' }\n ]\n }\n },\n\n mounted() {\n this.addClickOutsideListener()\n },\n\n beforeDestroy() {\n this.removeClickOutsideListener()\n },\n\n watch: {\n visible(newValue) {\n if (newValue) {\n this.$nextTick(() => {\n this.addClickOutsideListener()\n })\n } else {\n this.removeClickOutsideListener()\n }\n }\n },\n\n methods: {\n selectSort(sortValue) {\n this.$emit('sort-selected', sortValue)\n },\n\n addClickOutsideListener() {\n document.addEventListener('click', this.handleClickOutside)\n },\n\n removeClickOutsideListener() {\n document.removeEventListener('click', this.handleClickOutside)\n },\n\n handleClickOutside(event) {\n if (!this.visible) return\n if (\n event.target &&\n event.target.classList &&\n event.target.classList.contains('mrtn-filter-btn') &&\n event.target.nodeName !== 'svg' &&\n event.target.nodeName !== 'SVG'\n ) {\n return\n }\n if (this.$refs.dropdown && !this.$refs.dropdown.contains(event.target)) {\n this.$emit('close')\n }\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.mrtn-sort-dropdown {\n position: absolute;\n top: 100%;\n right: 0;\n background: white;\n border: 1px solid #e5e5e5;\n border-radius: 8px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n z-index: 1000;\n margin-top: 8px;\n padding: 16px;\n min-width: 200px;\n}\n\n.mrtn-sort-dropdown__header {\n margin-bottom: 12px;\n}\n\n.mrtn-sort-dropdown__title {\n font-size: 16px;\n font-weight: 600;\n color: #000000;\n margin: 0;\n}\n\n.mrtn-sort-dropdown__options {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.mrtn-sort-option {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 8px 12px;\n border-radius: 4px;\n cursor: pointer;\n transition: background-color 0.2s ease;\n\n &:hover {\n background: #f8f8f8;\n }\n\n &--active {\n background: #f0f0f0;\n }\n}\n\n.mrtn-sort-option__text {\n font-size: 14px;\n color: #000000;\n font-weight: 400;\n}\n\n.mrtn-sort-option__check {\n color: #000000;\n flex-shrink: 0;\n}\n\n.mrtn-sort-dropdown__footer {\n margin-top: 12px;\n text-align: right;\n}\n\n.mrtn-sort-dropdown__powered {\n font-size: 11px;\n color: #999999;\n}\n</style>\n","import { render, staticRenderFns } from \"./SortDropdown.vue?vue&type=template&id=2b3eeb35&scoped=true\"\nimport script from \"./SortDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./SortDropdown.vue?vue&type=script&lang=js\"\nimport style0 from \"./SortDropdown.vue?vue&type=style&index=0&id=2b3eeb35&prod&lang=scss&scoped=true\"\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 \"2b3eeb35\",\n null\n \n)\n\nexport default component.exports","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RatingSummary.vue?vue&type=style&index=0&id=b190791c&prod&lang=scss&scoped=true\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"4a045d99\", content, true, {});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Compact.vue?vue&type=style&index=0&id=4d4d0d6b&prod&lang=scss&scoped=true\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"b015bed6\", content, true, {});","export * from \"-!../../../../../../node_modules/vue-style-loader/index.js!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RatingSummary.vue?vue&type=style&index=0&id=b190791c&prod&lang=scss&scoped=true\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".mrtn-rating-summary[data-v-b190791c]{background:#fff;border:1px solid #e5e5e5;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.1);left:0;margin-top:8px;min-width:300px;padding:24px 18px;position:absolute;right:0;top:100%;z-index:1000}.mrtn-rating-summary__header[data-v-b190791c]{margin-bottom:16px;text-align:center}.mrtn-average-score[data-v-b190791c]{align-items:center;display:flex;gap:8px;justify-content:center}.mrtn-average-score__number[data-v-b190791c]{color:#000;font-size:24px;font-weight:700}.mrtn-average-score__text[data-v-b190791c]{color:#666;font-size:16px;font-weight:100}.mrtn-average-section[data-v-b190791c]{display:flex;justify-content:center;margin-bottom:16px}.mrtn-average-display[data-v-b190791c]{gap:12px}.mrtn-average-display[data-v-b190791c],.mrtn-stars-container[data-v-b190791c]{align-items:center;display:flex}@media(max-width:580px){.mrtn-stars-container[data-v-b190791c]{display:none}}.mrtn-average-badge[data-v-b190791c]{background:#ff6b35;border-radius:20px;color:#fff;font-size:14px;font-weight:600;padding:8px 16px}.mrtn-rating-summary__footer[data-v-b190791c]{margin-top:12px;text-align:center}.mrtn-rating-summary__powered[data-v-b190791c]{color:#999;font-size:11px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","export * from \"-!../../../../../../node_modules/vue-style-loader/index.js!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Compact.vue?vue&type=style&index=0&id=4d4d0d6b&prod&lang=scss&scoped=true\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".mrtn-header--compact[data-v-4d4d0d6b]{align-items:center;background:#fff;display:flex;justify-content:space-between;padding:16px 0}.mrtn-header__rating[data-v-4d4d0d6b]{align-items:center;display:flex;gap:12px}.mrtn-stars[data-v-4d4d0d6b]{display:flex;gap:2px}.mrtn-star[data-v-4d4d0d6b]{color:#e5e5e5;font-size:16px;transition:color .2s ease}.mrtn-star--filled[data-v-4d4d0d6b]{color:#000}.mrtn-header__info[data-v-4d4d0d6b]{align-items:center;display:flex;gap:8px;position:relative}.mrtn-reviews-count[data-v-4d4d0d6b]{color:#000;cursor:pointer;font-size:14px;font-weight:500}.mrtn-dropdown-toggle[data-v-4d4d0d6b]{align-items:center;background:transparent;border:none;color:#000;cursor:pointer;display:flex;height:20px;justify-content:center;transition:transform .2s ease;width:20px}.mrtn-dropdown-toggle[data-v-4d4d0d6b]:hover{color:#666}.mrtn-dropdown-toggle--active[data-v-4d4d0d6b]{transform:rotate(180deg)}.mrtn-dropdown-toggle svg[data-v-4d4d0d6b]{height:12px;width:12px}.mrtn-filter-container[data-v-4d4d0d6b]{position:relative}.mrtn-filter-btn[data-v-4d4d0d6b]{align-items:center;background:#fff;border:1px solid #e5e5e5;border-radius:6px;color:#000;cursor:pointer;display:flex;height:25px;justify-content:center;transition:all .2s ease;width:25px}.mrtn-filter-btn[data-v-4d4d0d6b]:hover{background:#f8f8f8;border-color:#ccc}.mrtn-filter-btn[data-v-4d4d0d6b]:active{transform:scale(.95)}.mrtn-filter-btn svg[data-v-4d4d0d6b]{height:16px;width:16px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mrtn-header--compact\"},[_c('div',{staticClass:\"mrtn-header__rating\"},[_c('div',{staticClass:\"mrtn-stars\"},[_c('Rating',{attrs:{\"rating\":_vm.average,\"color\":_vm.config.widget_review.star_color}})],1),_c('div',{staticClass:\"mrtn-header__info\"},[_c('span',{staticClass:\"mrtn-reviews-count\",on:{\"click\":_vm.toggleDropdown}},[_vm._v(_vm._s(_vm.formatReviewsCount)+\" Avaliações\")]),_c('button',{staticClass:\"mrtn-dropdown-toggle\",class:{ 'mrtn-dropdown-toggle--active': _vm.showDropdown },on:{\"click\":_vm.toggleDropdown}},[_c('svg',{attrs:{\"width\":\"12\",\"height\":\"12\",\"viewBox\":\"0 0 12 12\",\"fill\":\"none\"}},[_c('path',{attrs:{\"d\":\"M3 4.5L6 7.5L9 4.5\",\"stroke\":\"currentColor\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}})])]),_c('RatingSummary',{attrs:{\"config\":_vm.config,\"visible\":_vm.showDropdown,\"rating\":_vm.rating,\"average\":_vm.average,\"total-ratings\":_vm.totalRating,\"recommended\":_vm.recommended},on:{\"rating-selected\":_vm.onRatingSelected,\"close\":function($event){_vm.showDropdown = false}}})],1)]),_c('div',{staticClass:\"mrtn-filter-container\"},[_c('button',{staticClass:\"mrtn-filter-btn\",on:{\"click\":_vm.toggleFilter}},[_c('svg',{attrs:{\"width\":\"16\",\"height\":\"16\",\"viewBox\":\"0 0 16 16\",\"fill\":\"none\"}},[_c('path',{attrs:{\"d\":\"M2 4H14M4 8H12M6 12H10\",\"stroke\":\"currentColor\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\"}}),_c('circle',{attrs:{\"cx\":\"4\",\"cy\":\"4\",\"r\":\"1.5\",\"fill\":\"currentColor\"}}),_c('circle',{attrs:{\"cx\":\"12\",\"cy\":\"8\",\"r\":\"1.5\",\"fill\":\"currentColor\"}}),_c('circle',{attrs:{\"cx\":\"8\",\"cy\":\"12\",\"r\":\"1.5\",\"fill\":\"currentColor\"}})])]),_c('SortDropdown',{attrs:{\"visible\":_vm.showFilter,\"current-sort\":_vm.currentSort},on:{\"sort-selected\":_vm.onSortSelected,\"close\":function($event){_vm.showFilter = false}}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RatingSummary.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!./RatingSummary.vue?vue&type=script&lang=js\"","<template>\n <div v-if=\"visible\" ref=\"ratingSummary\" class=\"mrtn-rating-summary\">\n <div class=\"mrtn-rating-summary__header\">\n <div class=\"mrtn-average-section\">\n <div class=\"mrtn-average-display\">\n <div class=\"mrtn-average-badge\" :style=\"{ backgroundColor: config.widget_review.star_color }\">\n {{ average.toFixed(1) }} / 5\n </div>\n </div>\n </div>\n\n <span v-if=\"totalRecommended\" class=\"mrtn-average-score__text\">\n {{ totalRecommended }}\n </span>\n </div>\n\n <RatingBreakdown :config=\"config\" :rating=\"rating\" :total-rating=\"totalRating\" :current-active=\"currentActive\"\n @rating-selected=\"selectRating\" />\n\n <div class=\"mrtn-rating-summary__footer\">\n <span class=\"mrtn-rating-summary__powered\">Powered by MARTAN.app</span>\n </div>\n </div>\n</template>\n\n<script>\nimport RatingBreakdown from './RatingBreakdown.vue'\nimport { configProp } from \"../../../utils/configProps\";\n\nexport default {\n name: 'RatingSummary',\n\n components: {\n RatingBreakdown\n },\n\n props: {\n ...configProp,\n\n visible: {\n type: Boolean,\n default: false\n },\n\n rating: {\n type: Object,\n default: () => ({\n five: 0,\n four: 0,\n three: 0,\n two: 0,\n one: 0\n })\n },\n\n average: {\n type: Number,\n default: 0\n },\n\n totalRating: {\n type: Number,\n default: 0\n },\n\n recommended: {\n type: Number,\n default: 0\n }\n },\n\n data() {\n return {\n currentActive: null\n }\n },\n\n computed: {\n totalRecommended() {\n if (this.recommended === 0) return null\n return `${Math.round(this.recommended)}% dos clientes recomendam este produto.`\n }\n },\n\n mounted() {\n this.addClickOutsideListener()\n },\n\n beforeDestroy() {\n this.removeClickOutsideListener()\n },\n\n watch: {\n visible(newValue) {\n if (newValue) {\n this.$nextTick(() => {\n this.addClickOutsideListener()\n })\n } else {\n this.removeClickOutsideListener()\n }\n }\n },\n\n methods: {\n selectRating(rating) {\n if (this.currentActive === rating) {\n this.currentActive = null\n this.$emit('rating-selected', null)\n } else {\n this.currentActive = rating\n this.$emit('rating-selected', rating)\n }\n },\n\n addClickOutsideListener() {\n document.addEventListener('click', this.handleClickOutside)\n },\n\n removeClickOutsideListener() {\n document.removeEventListener('click', this.handleClickOutside)\n },\n\n handleClickOutside(event) {\n if (!this.visible) return\n if (\n event.target &&\n (\n event.target.nodeName === 'svg' ||\n event.target.nodeName === 'SVG' ||\n (event.target.classList && (\n event.target.classList.contains('mrtn-dropdown-toggle') ||\n event.target.classList.contains('mrtn-reviews-count')\n ))\n )\n ) {\n return\n }\n if (this.$refs.ratingSummary && !this.$refs.ratingSummary.contains(event.target)) {\n this.$emit('close')\n }\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.mrtn-rating-summary {\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n background: white;\n border: 1px solid #e5e5e5;\n border-radius: 8px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n z-index: 1000;\n margin-top: 8px;\n padding: 24px 18px;\n min-width: 300px;\n}\n\n.mrtn-rating-summary__header {\n margin-bottom: 16px;\n text-align: center;\n}\n\n.mrtn-average-score {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n}\n\n.mrtn-average-score__number {\n font-size: 24px;\n font-weight: 700;\n color: #000000;\n}\n\n.mrtn-average-score__text {\n color: #666;\n font-size: 16px;\n font-weight: 100;\n}\n\n.mrtn-average-section {\n display: flex;\n justify-content: center;\n margin-bottom: 16px;\n}\n\n.mrtn-average-display {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.mrtn-stars-container {\n display: flex;\n align-items: center;\n\n @media (max-width: 580px) {\n display: none;\n }\n}\n\n.mrtn-average-badge {\n background: #ff6b35;\n color: white;\n padding: 8px 16px;\n border-radius: 20px;\n font-weight: 600;\n font-size: 14px;\n}\n\n.mrtn-rating-summary__footer {\n text-align: center;\n margin-top: 12px;\n}\n\n.mrtn-rating-summary__powered {\n font-size: 11px;\n color: #999999;\n}\n</style>\n","import { render, staticRenderFns } from \"./RatingSummary.vue?vue&type=template&id=b190791c&scoped=true\"\nimport script from \"./RatingSummary.vue?vue&type=script&lang=js\"\nexport * from \"./RatingSummary.vue?vue&type=script&lang=js\"\nimport style0 from \"./RatingSummary.vue?vue&type=style&index=0&id=b190791c&prod&lang=scss&scoped=true\"\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 \"b190791c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.visible)?_c('div',{ref:\"ratingSummary\",staticClass:\"mrtn-rating-summary\"},[_c('div',{staticClass:\"mrtn-rating-summary__header\"},[_c('div',{staticClass:\"mrtn-average-section\"},[_c('div',{staticClass:\"mrtn-average-display\"},[_c('div',{staticClass:\"mrtn-average-badge\",style:({ backgroundColor: _vm.config.widget_review.star_color })},[_vm._v(\" \"+_vm._s(_vm.average.toFixed(1))+\" / 5 \")])])]),(_vm.totalRecommended)?_c('span',{staticClass:\"mrtn-average-score__text\"},[_vm._v(\" \"+_vm._s(_vm.totalRecommended)+\" \")]):_vm._e()]),_c('RatingBreakdown',{attrs:{\"config\":_vm.config,\"rating\":_vm.rating,\"total-rating\":_vm.totalRating,\"current-active\":_vm.currentActive},on:{\"rating-selected\":_vm.selectRating}}),_vm._m(0)],1):_vm._e()}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mrtn-rating-summary__footer\"},[_c('span',{staticClass:\"mrtn-rating-summary__powered\"},[_vm._v(\"Powered by MARTAN.app\")])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Compact.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!./Compact.vue?vue&type=script&lang=js\"","<template>\n <div class=\"mrtn-header--compact\">\n <div class=\"mrtn-header__rating\">\n <div class=\"mrtn-stars\">\n <Rating :rating=\"average\" :color=\"config.widget_review.star_color\" />\n </div>\n\n <div class=\"mrtn-header__info\">\n <span class=\"mrtn-reviews-count\" @click=\"toggleDropdown\">{{ formatReviewsCount }} Avaliações</span>\n <button class=\"mrtn-dropdown-toggle\" @click=\"toggleDropdown\"\n :class=\"{ 'mrtn-dropdown-toggle--active': showDropdown }\">\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\">\n <path d=\"M3 4.5L6 7.5L9 4.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n </svg>\n </button>\n\n <RatingSummary :config=\"config\" :visible=\"showDropdown\" :rating=\"rating\" :average=\"average\"\n :total-ratings=\"totalRating\" :recommended=\"recommended\" @rating-selected=\"onRatingSelected\"\n @close=\"showDropdown = false\" />\n </div>\n </div>\n\n <div class=\"mrtn-filter-container\">\n <button class=\"mrtn-filter-btn\" @click=\"toggleFilter\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path d=\"M2 4H14M4 8H12M6 12H10\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" />\n <circle cx=\"4\" cy=\"4\" r=\"1.5\" fill=\"currentColor\" />\n <circle cx=\"12\" cy=\"8\" r=\"1.5\" fill=\"currentColor\" />\n <circle cx=\"8\" cy=\"12\" r=\"1.5\" fill=\"currentColor\" />\n </svg>\n </button>\n\n <SortDropdown :visible=\"showFilter\" :current-sort=\"currentSort\" @sort-selected=\"onSortSelected\" @close=\"showFilter = false\" />\n </div>\n </div>\n</template>\n\n<script>\nimport RatingSummary from '../components/RatingSummary.vue'\nimport SortDropdown from '../components/SortDropdown.vue'\nimport Rating from '../components/Rating.vue';\n\nimport { configProp } from \"../../../utils/configProps\";\n\nexport default {\n name: 'Compact',\n\n components: {\n RatingSummary,\n SortDropdown,\n Rating\n },\n\n props: {\n ...configProp,\n rating: {\n type: Object,\n default: () => ({\n five: 0,\n four: 0,\n three: 0,\n two: 0,\n one: 0\n })\n },\n\n recommended: {\n type: Number,\n default: 0\n },\n\n average: {\n type: Number,\n default: 0\n },\n\n totalRating: {\n type: Number,\n default: 0\n }\n },\n\n data() {\n return {\n showDropdown: false,\n showFilter: false,\n currentSort: 'most_recent'\n }\n },\n\n computed: {\n formatReviewsCount() {\n if (this.totalRating >= 1000) {\n return (this.totalRating / 1000).toFixed(1).replace('.0', '') + 'k'\n }\n return this.totalRating.toLocaleString()\n }\n },\n\n methods: {\n toggleDropdown() {\n this.showDropdown = !this.showDropdown\n },\n\n toggleFilter() {\n this.showFilter = !this.showFilter\n this.$emit('filter-toggle', this.showFilter)\n },\n\n onRatingSelected(rating) {\n this.$emit('rating-selected', rating)\n },\n\n onSortSelected(sortValue) {\n this.currentSort = sortValue\n this.showFilter = false\n this.$emit('sort-selected', sortValue)\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.mrtn-header--compact {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 0;\n background: white;\n}\n\n.mrtn-header__rating {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.mrtn-stars {\n display: flex;\n gap: 2px;\n}\n\n.mrtn-star {\n font-size: 16px;\n color: #e5e5e5;\n transition: color 0.2s ease;\n\n &--filled {\n color: #000000;\n }\n}\n\n.mrtn-header__info {\n display: flex;\n align-items: center;\n gap: 8px;\n position: relative;\n}\n\n.mrtn-reviews-count {\n font-size: 14px;\n font-weight: 500;\n color: #000000;\n cursor: pointer;\n}\n\n.mrtn-dropdown-toggle {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 20px;\n border: none;\n background: transparent;\n cursor: pointer;\n color: #000000;\n transition: transform 0.2s ease;\n\n &:hover {\n color: #666666;\n }\n\n &--active {\n transform: rotate(180deg);\n }\n\n svg {\n width: 12px;\n height: 12px;\n }\n}\n\n.mrtn-filter-container {\n position: relative;\n}\n\n.mrtn-filter-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 25px;\n height: 25px;\n border: 1px solid #e5e5e5;\n border-radius: 6px;\n background: white;\n cursor: pointer;\n color: #000000;\n transition: all 0.2s ease;\n\n &:hover {\n border-color: #cccccc;\n background: #f8f8f8;\n }\n\n &:active {\n transform: scale(0.95);\n }\n\n svg {\n width: 16px;\n height: 16px;\n }\n}\n</style>\n","import { render, staticRenderFns } from \"./Compact.vue?vue&type=template&id=4d4d0d6b&scoped=true\"\nimport script from \"./Compact.vue?vue&type=script&lang=js\"\nexport * from \"./Compact.vue?vue&type=script&lang=js\"\nimport style0 from \"./Compact.vue?vue&type=style&index=0&id=4d4d0d6b&prod&lang=scss&scoped=true\"\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 \"4d4d0d6b\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- (window.webpackJsonpwidgetMartan=window.webpackJsonpwidgetMartan||[]).push([[3],{102:function(t,e,r){"use strict";r.r(e);var a=r(43),i=r(4),n={name:"RatingSummary",components:{RatingBreakdown:a.a},props:{...i.a,visible:{type:Boolean,default:!1},rating:{type:Object,default:()=>({five:0,four:0,three:0,two:0,one:0})},average:{type:Number,default:0},totalRating:{type:Number,default:0},recommended:{type:Number,default:0}},data:()=>({currentActive:null}),computed:{totalRecommended(){return 0===this.recommended?null:Math.round(this.recommended)+"% dos clientes recomendam este produto."}},mounted(){this.addClickOutsideListener()},beforeDestroy(){this.removeClickOutsideListener()},watch:{visible(t){t?this.$nextTick(()=>{this.addClickOutsideListener()}):this.removeClickOutsideListener()}},methods:{selectRating(t){this.currentActive===t?(this.currentActive=null,this.$emit("rating-selected",null)):(this.currentActive=t,this.$emit("rating-selected",t))},addClickOutsideListener(){document.addEventListener("click",this.handleClickOutside)},removeClickOutsideListener(){document.removeEventListener("click",this.handleClickOutside)},handleClickOutside(t){this.visible&&(t.target&&("svg"===t.target.nodeName||"SVG"===t.target.nodeName||t.target.classList&&(t.target.classList.contains("mrtn-dropdown-toggle")||t.target.classList.contains("mrtn-reviews-count")))||this.$refs.ratingSummary&&!this.$refs.ratingSummary.contains(t.target)&&this.$emit("close"))}}},o=(r(82),r(3)),s=Object(o.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.visible?r("div",{ref:"ratingSummary",staticClass:"mrtn-rating-summary"},[r("div",{staticClass:"mrtn-rating-summary__header"},[r("div",{staticClass:"mrtn-average-section"},[r("div",{staticClass:"mrtn-average-display"},[r("div",{staticClass:"mrtn-average-badge",style:{backgroundColor:t.config.widget_review.star_color}},[t._v(" "+t._s(t.average.toFixed(1))+" / 5 ")])])]),t.totalRecommended?r("span",{staticClass:"mrtn-average-score__text"},[t._v(" "+t._s(t.totalRecommended)+" ")]):t._e()]),r("RatingBreakdown",{attrs:{config:t.config,rating:t.rating,"total-rating":t.totalRating,"current-active":t.currentActive},on:{"rating-selected":t.selectRating}}),t._m(0)],1):t._e()}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"mrtn-rating-summary__footer"},[e("span",{staticClass:"mrtn-rating-summary__powered"},[this._v("Powered by MARTAN.app")])])}],!1,null,"b190791c",null).exports,d=r(54),l=r(31),c={name:"Compact",components:{RatingSummary:s,SortDropdown:d.a,Rating:l.a},props:{...i.a,rating:{type:Object,default:()=>({five:0,four:0,three:0,two:0,one:0})},recommended:{type:Number,default:0},average:{type:Number,default:0},totalRating:{type:Number,default:0}},data:()=>({showDropdown:!1,showFilter:!1,currentSort:"most_recent"}),computed:{formatReviewsCount(){return this.totalRating>=1e3?(this.totalRating/1e3).toFixed(1).replace(".0","")+"k":this.totalRating.toLocaleString()}},methods:{toggleDropdown(){this.showDropdown=!this.showDropdown},toggleFilter(){this.showFilter=!this.showFilter,this.$emit("filter-toggle",this.showFilter)},onRatingSelected(t){this.$emit("rating-selected",t)},onSortSelected(t){this.currentSort=t,this.showFilter=!1,this.$emit("sort-selected",t)}}},p=(r(84),Object(o.a)(c,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mrtn-header--compact"},[r("div",{staticClass:"mrtn-header__rating"},[r("div",{staticClass:"mrtn-stars"},[r("Rating",{attrs:{rating:t.average,color:t.config.widget_review.star_color}})],1),r("div",{staticClass:"mrtn-header__info"},[r("span",{staticClass:"mrtn-reviews-count",on:{click:t.toggleDropdown}},[t._v(t._s(t.formatReviewsCount)+" Avaliações")]),r("button",{staticClass:"mrtn-dropdown-toggle",class:{"mrtn-dropdown-toggle--active":t.showDropdown},on:{click:t.toggleDropdown}},[r("svg",{attrs:{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"}},[r("path",{attrs:{d:"M3 4.5L6 7.5L9 4.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}})])]),r("RatingSummary",{attrs:{config:t.config,visible:t.showDropdown,rating:t.rating,average:t.average,"total-ratings":t.totalRating,recommended:t.recommended},on:{"rating-selected":t.onRatingSelected,close:function(e){t.showDropdown=!1}}})],1)]),r("div",{staticClass:"mrtn-filter-container"},[r("button",{staticClass:"mrtn-filter-btn",on:{click:t.toggleFilter}},[r("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"}},[r("path",{attrs:{d:"M2 4H14M4 8H12M6 12H10",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"}}),r("circle",{attrs:{cx:"4",cy:"4",r:"1.5",fill:"currentColor"}}),r("circle",{attrs:{cx:"12",cy:"8",r:"1.5",fill:"currentColor"}}),r("circle",{attrs:{cx:"8",cy:"12",r:"1.5",fill:"currentColor"}})])]),r("SortDropdown",{attrs:{visible:t.showFilter,"current-sort":t.currentSort},on:{"sort-selected":t.onSortSelected,close:function(e){t.showFilter=!1}}})],1)])}),[],!1,null,"4d4d0d6b",null));e.default=p.exports},30:function(t,e,r){var a=r(35);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);(0,r(9).default)("5a552598",a,!0,{})},31:function(t,e,r){"use strict";var a={name:"Rating",props:{rating:{type:Number,default:5},color:{type:String,default:"#000000"}},data:()=>({stars:Array(5).fill(0)}),mounted(){this.updateStars()},methods:{updateStars(){const t=Math.max(0,Math.min(5,this.rating));this.stars=Array(5).fill(0).map((e,r)=>t>=r+1?1:t>r?.5:0)},getStarClass:t=>1===t?"icon-tabler-star-filled":.5===t?"icon-tabler-star-half":"icon-tabler-star",getStarFill:(t,e)=>1===t?"currentColor":.5===t?`url(#gradient-${e})`:"none"},watch:{rating:"updateStars"}},i=(r(34),r(3)),n=Object(i.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("span",{staticClass:"martan-rating"},t._l(t.stars,(function(e,a){return r("svg",{key:a,staticClass:"icon icon-tabler",class:t.getStarClass(e),style:{color:t.color},attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[.5===e?r("defs",[r("linearGradient",{attrs:{id:"gradient-"+a,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},[r("stop",{style:"stop-color:"+t.color+";stop-opacity:1",attrs:{offset:"50%"}}),r("stop",{style:"stop-color:"+t.color+";stop-opacity:0",attrs:{offset:"50%"}})],1)],1):t._e(),r("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),r("path",{attrs:{d:"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z",fill:t.getStarFill(e,a)}})])})),0)}),[],!1,null,null,null);e.a=n.exports},33:function(t,e,r){var a=r(41);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);(0,r(9).default)("8c4908ae",a,!0,{})},34:function(t,e,r){"use strict";r(30)},35:function(t,e,r){(e=r(8)(!1)).push([t.i,".martan-rating{display:flex;gap:4px}",""]),t.exports=e},40:function(t,e,r){"use strict";r(33)},41:function(t,e,r){(e=r(8)(!1)).push([t.i,".mrtn-rating-breakdown[data-v-121d360c]{display:flex;flex-direction:column;width:100%}.mrtn-rating-row[data-v-121d360c]{align-items:center;border-radius:6px;cursor:pointer;display:flex;gap:12px;padding:8px;position:relative;transition:all .2s ease}.mrtn-rating-row--active[data-v-121d360c],.mrtn-rating-row[data-v-121d360c]:hover{background:var(--hover-color)}.mrtn-rating-row--active[data-v-121d360c]{box-shadow:0 0 0 2px var(--hover-color);transform:scale(1.02);z-index:10}.mrtn-rating-breakdown--has-active .mrtn-rating-row[data-v-121d360c]:not(.mrtn-rating-row--active){filter:grayscale(.8);opacity:.4}.mrtn-rating-stars[data-v-121d360c]{display:flex;gap:2px;min-width:80px}.mrtn-rating-star[data-v-121d360c]{color:#e5e5e5;font-size:14px}.mrtn-rating-star--filled[data-v-121d360c]{color:#000}.mrtn-rating-bar[data-v-121d360c]{background:#f0f0f0;border-radius:4px;flex:1;height:8px;overflow:hidden;position:relative;transition:all .2s ease}.mrtn-rating-bar__fill[data-v-121d360c]{border-radius:4px;height:100%;transition:width .3s ease}.mrtn-rating-count[data-v-121d360c]{color:#666;font-size:12px;min-width:40px;text-align:right}",""]),t.exports=e},42:function(t,e,r){var a=r(53);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);(0,r(9).default)("a1278eac",a,!0,{})},43:function(t,e,r){"use strict";var a=r(4),i=r(31),n=r(10),o={name:"RatingBreakdown",props:{...a.a,rating:{type:Object,default:()=>({five:0,four:0,three:0,two:0,one:0})},totalRating:{type:Number,default:0},average:{type:Number,default:0}},data:()=>({currentActive:null}),computed:{ratingBreakdown(){return{5:this.rating.five,4:this.rating.four,3:this.rating.three,2:this.rating.two,1:this.rating.one}},houverColor(){return this.config.widget_review.star_color?Object(n.a)(this.config.widget_review.star_color,.9):null}},methods:{lightenColor:n.a,getBarWidth(t){return 0===this.totalRating?0:t/this.totalRating*100},selectRating(t){this.currentActive===t?this.currentActive=null:this.currentActive=t,this.$emit("rating-selected",this.currentActive)}},components:{Rating:i.a}},s=(r(40),r(3)),d=Object(s.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mrtn-rating-breakdown",class:{"mrtn-rating-breakdown--has-active":null!==t.currentActive},style:"--hover-color: "+t.houverColor},t._l(t.ratingBreakdown,(function(e,a){return r("div",{key:a,staticClass:"mrtn-rating-row",class:{"mrtn-rating-row--active":t.currentActive===a},on:{click:function(e){return t.selectRating(a)}}},[r("div",{staticClass:"mrtn-rating-stars"},[r("Rating",{attrs:{rating:parseInt(a),color:t.config.widget_review.star_color}})],1),r("div",{staticClass:"mrtn-rating-bar"},[r("div",{staticClass:"mrtn-rating-bar__fill",style:{width:t.getBarWidth(e)+"%",backgroundColor:t.config.widget_review.star_color}})]),r("span",{staticClass:"mrtn-rating-count"},[t._v("("+t._s(e)+")")])])})),0)}),[],!1,null,"121d360c",null);e.a=d.exports},52:function(t,e,r){"use strict";r(42)},53:function(t,e,r){(e=r(8)(!1)).push([t.i,".mrtn-sort-dropdown[data-v-2b3eeb35]{background:#fff;border:1px solid #e5e5e5;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.1);margin-top:8px;min-width:200px;padding:16px;position:absolute;right:0;top:100%;z-index:1000}.mrtn-sort-dropdown__header[data-v-2b3eeb35]{margin-bottom:12px}.mrtn-sort-dropdown__title[data-v-2b3eeb35]{color:#000;font-size:16px;font-weight:600;margin:0}.mrtn-sort-dropdown__options[data-v-2b3eeb35]{display:flex;flex-direction:column;gap:4px}.mrtn-sort-option[data-v-2b3eeb35]{align-items:center;border-radius:4px;cursor:pointer;display:flex;justify-content:space-between;padding:8px 12px;transition:background-color .2s ease}.mrtn-sort-option[data-v-2b3eeb35]:hover{background:#f8f8f8}.mrtn-sort-option--active[data-v-2b3eeb35]{background:#f0f0f0}.mrtn-sort-option__text[data-v-2b3eeb35]{color:#000;font-size:14px;font-weight:400}.mrtn-sort-option__check[data-v-2b3eeb35]{color:#000;flex-shrink:0}.mrtn-sort-dropdown__footer[data-v-2b3eeb35]{margin-top:12px;text-align:right}.mrtn-sort-dropdown__powered[data-v-2b3eeb35]{color:#999;font-size:11px}",""]),t.exports=e},54:function(t,e,r){"use strict";var a={name:"SortDropdown",props:{visible:{type:Boolean,default:!1},currentSort:{type:String,default:"most_recent"}},data:()=>({sortOptions:[{value:"most_recent",label:"Recentes"},{value:"most_voted",label:"Mais úteis"},{value:"most_positive",label:"Positivas"},{value:"most_negative",label:"Negativas"}]}),mounted(){this.addClickOutsideListener()},beforeDestroy(){this.removeClickOutsideListener()},watch:{visible(t){t?this.$nextTick(()=>{this.addClickOutsideListener()}):this.removeClickOutsideListener()}},methods:{selectSort(t){this.$emit("sort-selected",t)},addClickOutsideListener(){document.addEventListener("click",this.handleClickOutside)},removeClickOutsideListener(){document.removeEventListener("click",this.handleClickOutside)},handleClickOutside(t){this.visible&&(t.target&&t.target.classList&&t.target.classList.contains("mrtn-filter-btn")&&"svg"!==t.target.nodeName&&"SVG"!==t.target.nodeName||this.$refs.dropdown&&!this.$refs.dropdown.contains(t.target)&&this.$emit("close"))}}},i=(r(52),r(3)),n=Object(i.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.visible?r("div",{ref:"dropdown",staticClass:"mrtn-sort-dropdown"},[t._m(0),r("div",{staticClass:"mrtn-sort-dropdown__options"},t._l(t.sortOptions,(function(e){return r("div",{key:e.value,staticClass:"mrtn-sort-option",class:{"mrtn-sort-option--active":t.currentSort===e.value},on:{click:function(r){return t.selectSort(e.value)}}},[r("span",{staticClass:"mrtn-sort-option__text"},[t._v(t._s(e.label))]),t.currentSort===e.value?r("svg",{staticClass:"mrtn-sort-option__check",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"}},[r("path",{attrs:{d:"M13.5 4.5L6 12L2.5 8.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]):t._e()])})),0),t._m(1)]):t._e()}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"mrtn-sort-dropdown__header"},[e("h3",{staticClass:"mrtn-sort-dropdown__title"},[this._v("Ordenar por")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"mrtn-sort-dropdown__footer"},[e("span",{staticClass:"mrtn-sort-dropdown__powered"},[this._v("Powered by MARTAN.app")])])}],!1,null,"2b3eeb35",null);e.a=n.exports},66:function(t,e,r){var a=r(83);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);(0,r(9).default)("4a045d99",a,!0,{})},67:function(t,e,r){var a=r(85);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);(0,r(9).default)("b015bed6",a,!0,{})},82:function(t,e,r){"use strict";r(66)},83:function(t,e,r){(e=r(8)(!1)).push([t.i,".mrtn-rating-summary[data-v-b190791c]{background:#fff;border:1px solid #e5e5e5;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.1);left:0;margin-top:8px;min-width:300px;padding:24px 18px;position:absolute;right:0;top:100%;z-index:1000}.mrtn-rating-summary__header[data-v-b190791c]{margin-bottom:16px;text-align:center}.mrtn-average-score[data-v-b190791c]{align-items:center;display:flex;gap:8px;justify-content:center}.mrtn-average-score__number[data-v-b190791c]{color:#000;font-size:24px;font-weight:700}.mrtn-average-score__text[data-v-b190791c]{color:#666;font-size:16px;font-weight:100}.mrtn-average-section[data-v-b190791c]{display:flex;justify-content:center;margin-bottom:16px}.mrtn-average-display[data-v-b190791c]{gap:12px}.mrtn-average-display[data-v-b190791c],.mrtn-stars-container[data-v-b190791c]{align-items:center;display:flex}@media(max-width:580px){.mrtn-stars-container[data-v-b190791c]{display:none}}.mrtn-average-badge[data-v-b190791c]{background:#ff6b35;border-radius:20px;color:#fff;font-size:14px;font-weight:600;padding:8px 16px}.mrtn-rating-summary__footer[data-v-b190791c]{margin-top:12px;text-align:center}.mrtn-rating-summary__powered[data-v-b190791c]{color:#999;font-size:11px}",""]),t.exports=e},84:function(t,e,r){"use strict";r(67)},85:function(t,e,r){(e=r(8)(!1)).push([t.i,".mrtn-header--compact[data-v-4d4d0d6b]{align-items:center;background:#fff;display:flex;justify-content:space-between;padding:16px 0}.mrtn-header__rating[data-v-4d4d0d6b]{align-items:center;display:flex;gap:12px}.mrtn-stars[data-v-4d4d0d6b]{display:flex;gap:2px}.mrtn-star[data-v-4d4d0d6b]{color:#e5e5e5;font-size:16px;transition:color .2s ease}.mrtn-star--filled[data-v-4d4d0d6b]{color:#000}.mrtn-header__info[data-v-4d4d0d6b]{align-items:center;display:flex;gap:8px;position:relative}.mrtn-reviews-count[data-v-4d4d0d6b]{color:#000;cursor:pointer;font-size:14px;font-weight:500}.mrtn-dropdown-toggle[data-v-4d4d0d6b]{align-items:center;background:transparent;border:none;color:#000;cursor:pointer;display:flex;height:20px;justify-content:center;transition:transform .2s ease;width:20px}.mrtn-dropdown-toggle[data-v-4d4d0d6b]:hover{color:#666}.mrtn-dropdown-toggle--active[data-v-4d4d0d6b]{transform:rotate(180deg)}.mrtn-dropdown-toggle svg[data-v-4d4d0d6b]{height:12px;width:12px}.mrtn-filter-container[data-v-4d4d0d6b]{position:relative}.mrtn-filter-btn[data-v-4d4d0d6b]{align-items:center;background:#fff;border:1px solid #e5e5e5;border-radius:6px;color:#000;cursor:pointer;display:flex;height:25px;justify-content:center;transition:all .2s ease;width:25px}.mrtn-filter-btn[data-v-4d4d0d6b]:hover{background:#f8f8f8;border-color:#ccc}.mrtn-filter-btn[data-v-4d4d0d6b]:active{transform:scale(.95)}.mrtn-filter-btn svg[data-v-4d4d0d6b]{height:16px;width:16px}",""]),t.exports=e}}]);
1
+ (window.webpackJsonpwidgetMartan=window.webpackJsonpwidgetMartan||[]).push([[3],{29:function(t,e,r){var a=r(33);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);(0,r(9).default)("5a552598",a,!0,{})},30:function(t,e,r){"use strict";var a={name:"Rating",props:{rating:{type:Number,default:5},color:{type:String,default:"#000000"}},data:()=>({stars:Array(5).fill(0)}),mounted(){this.updateStars()},methods:{updateStars(){const t=Math.max(0,Math.min(5,this.rating));this.stars=Array(5).fill(0).map((e,r)=>t>=r+1?1:t>r?.5:0)},getStarClass:t=>1===t?"icon-tabler-star-filled":.5===t?"icon-tabler-star-half":"icon-tabler-star",getStarFill:(t,e)=>1===t?"currentColor":.5===t?`url(#gradient-${e})`:"none"},watch:{rating:"updateStars"}},o=(r(32),r(3)),n=Object(o.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("span",{staticClass:"martan-rating"},t._l(t.stars,(function(e,a){return r("svg",{key:a,staticClass:"icon icon-tabler",class:t.getStarClass(e),style:{color:t.color},attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[.5===e?r("defs",[r("linearGradient",{attrs:{id:"gradient-"+a,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},[r("stop",{style:"stop-color:"+t.color+";stop-opacity:1",attrs:{offset:"50%"}}),r("stop",{style:"stop-color:"+t.color+";stop-opacity:0",attrs:{offset:"50%"}})],1)],1):t._e(),r("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),r("path",{attrs:{d:"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z",fill:t.getStarFill(e,a)}})])})),0)}),[],!1,null,null,null);e.a=n.exports},31:function(t,e,r){var a=r(39);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);(0,r(9).default)("8c4908ae",a,!0,{})},32:function(t,e,r){"use strict";r(29)},33:function(t,e,r){(e=r(8)(!1)).push([t.i,".martan-rating{display:flex;gap:4px}",""]),t.exports=e},38:function(t,e,r){"use strict";r(31)},39:function(t,e,r){(e=r(8)(!1)).push([t.i,".mrtn-rating-breakdown[data-v-121d360c]{display:flex;flex-direction:column;width:100%}.mrtn-rating-row[data-v-121d360c]{align-items:center;border-radius:6px;cursor:pointer;display:flex;gap:12px;padding:8px;position:relative;transition:all .2s ease}.mrtn-rating-row--active[data-v-121d360c],.mrtn-rating-row[data-v-121d360c]:hover{background:var(--hover-color)}.mrtn-rating-row--active[data-v-121d360c]{box-shadow:0 0 0 2px var(--hover-color);transform:scale(1.02);z-index:10}.mrtn-rating-breakdown--has-active .mrtn-rating-row[data-v-121d360c]:not(.mrtn-rating-row--active){filter:grayscale(.8);opacity:.4}.mrtn-rating-stars[data-v-121d360c]{display:flex;gap:2px;min-width:80px}.mrtn-rating-star[data-v-121d360c]{color:#e5e5e5;font-size:14px}.mrtn-rating-star--filled[data-v-121d360c]{color:#000}.mrtn-rating-bar[data-v-121d360c]{background:#f0f0f0;border-radius:4px;flex:1;height:8px;overflow:hidden;position:relative;transition:all .2s ease}.mrtn-rating-bar__fill[data-v-121d360c]{border-radius:4px;height:100%;transition:width .3s ease}.mrtn-rating-count[data-v-121d360c]{color:#666;font-size:12px;min-width:40px;text-align:right}",""]),t.exports=e},40:function(t,e,r){var a=r(49);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);(0,r(9).default)("a1278eac",a,!0,{})},41:function(t,e,r){"use strict";var a=r(4),o=r(30),n=r(10),i={name:"RatingBreakdown",props:{...a.a,rating:{type:Object,default:()=>({five:0,four:0,three:0,two:0,one:0})},totalRating:{type:Number,default:0},average:{type:Number,default:0}},data:()=>({currentActive:null}),computed:{ratingBreakdown(){return{5:this.rating.five,4:this.rating.four,3:this.rating.three,2:this.rating.two,1:this.rating.one}},houverColor(){return this.config.widget_review.star_color?Object(n.a)(this.config.widget_review.star_color,.9):null}},methods:{lightenColor:n.a,getBarWidth(t){return 0===this.totalRating?0:t/this.totalRating*100},selectRating(t){this.currentActive===t?this.currentActive=null:this.currentActive=t,this.$emit("rating-selected",this.currentActive)}},components:{Rating:o.a}},s=(r(38),r(3)),l=Object(s.a)(i,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mrtn-rating-breakdown",class:{"mrtn-rating-breakdown--has-active":null!==t.currentActive},style:"--hover-color: "+t.houverColor},t._l(t.ratingBreakdown,(function(e,a){return r("div",{key:a,staticClass:"mrtn-rating-row",class:{"mrtn-rating-row--active":t.currentActive===a},on:{click:function(e){return t.selectRating(a)}}},[r("div",{staticClass:"mrtn-rating-stars"},[r("Rating",{attrs:{rating:parseInt(a),color:t.config.widget_review.star_color}})],1),r("div",{staticClass:"mrtn-rating-bar"},[r("div",{staticClass:"mrtn-rating-bar__fill",style:{width:t.getBarWidth(e)+"%",backgroundColor:t.config.widget_review.star_color}})]),r("span",{staticClass:"mrtn-rating-count"},[t._v("("+t._s(e)+")")])])})),0)}),[],!1,null,"121d360c",null);e.a=l.exports},48:function(t,e,r){"use strict";r(40)},49:function(t,e,r){(e=r(8)(!1)).push([t.i,".mrtn-sort-dropdown[data-v-2b3eeb35]{background:#fff;border:1px solid #e5e5e5;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.1);margin-top:8px;min-width:200px;padding:16px;position:absolute;right:0;top:100%;z-index:1000}.mrtn-sort-dropdown__header[data-v-2b3eeb35]{margin-bottom:12px}.mrtn-sort-dropdown__title[data-v-2b3eeb35]{color:#000;font-size:16px;font-weight:600;margin:0}.mrtn-sort-dropdown__options[data-v-2b3eeb35]{display:flex;flex-direction:column;gap:4px}.mrtn-sort-option[data-v-2b3eeb35]{align-items:center;border-radius:4px;cursor:pointer;display:flex;justify-content:space-between;padding:8px 12px;transition:background-color .2s ease}.mrtn-sort-option[data-v-2b3eeb35]:hover{background:#f8f8f8}.mrtn-sort-option--active[data-v-2b3eeb35]{background:#f0f0f0}.mrtn-sort-option__text[data-v-2b3eeb35]{color:#000;font-size:14px;font-weight:400}.mrtn-sort-option__check[data-v-2b3eeb35]{color:#000;flex-shrink:0}.mrtn-sort-dropdown__footer[data-v-2b3eeb35]{margin-top:12px;text-align:right}.mrtn-sort-dropdown__powered[data-v-2b3eeb35]{color:#999;font-size:11px}",""]),t.exports=e},50:function(t,e,r){"use strict";var a={name:"SortDropdown",props:{visible:{type:Boolean,default:!1},currentSort:{type:String,default:"most_recent"}},data:()=>({sortOptions:[{value:"most_recent",label:"Recentes"},{value:"most_voted",label:"Mais úteis"},{value:"most_positive",label:"Positivas"},{value:"most_negative",label:"Negativas"}]}),mounted(){this.addClickOutsideListener()},beforeDestroy(){this.removeClickOutsideListener()},watch:{visible(t){t?this.$nextTick(()=>{this.addClickOutsideListener()}):this.removeClickOutsideListener()}},methods:{selectSort(t){this.$emit("sort-selected",t)},addClickOutsideListener(){document.addEventListener("click",this.handleClickOutside)},removeClickOutsideListener(){document.removeEventListener("click",this.handleClickOutside)},handleClickOutside(t){this.visible&&(t.target&&t.target.classList&&t.target.classList.contains("mrtn-filter-btn")&&"svg"!==t.target.nodeName&&"SVG"!==t.target.nodeName||this.$refs.dropdown&&!this.$refs.dropdown.contains(t.target)&&this.$emit("close"))}}},o=(r(48),r(3)),n=Object(o.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.visible?r("div",{ref:"dropdown",staticClass:"mrtn-sort-dropdown"},[t._m(0),r("div",{staticClass:"mrtn-sort-dropdown__options"},t._l(t.sortOptions,(function(e){return r("div",{key:e.value,staticClass:"mrtn-sort-option",class:{"mrtn-sort-option--active":t.currentSort===e.value},on:{click:function(r){return t.selectSort(e.value)}}},[r("span",{staticClass:"mrtn-sort-option__text"},[t._v(t._s(e.label))]),t.currentSort===e.value?r("svg",{staticClass:"mrtn-sort-option__check",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"}},[r("path",{attrs:{d:"M13.5 4.5L6 12L2.5 8.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]):t._e()])})),0),t._m(1)]):t._e()}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"mrtn-sort-dropdown__header"},[e("h3",{staticClass:"mrtn-sort-dropdown__title"},[this._v("Ordenar por")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"mrtn-sort-dropdown__footer"},[e("span",{staticClass:"mrtn-sort-dropdown__powered"},[this._v("Powered by MARTAN.app")])])}],!1,null,"2b3eeb35",null);e.a=n.exports},56:function(t,e,r){var a=r(75);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);(0,r(9).default)("23c55671",a,!0,{})},57:function(t,e,r){var a=r(77);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);(0,r(9).default)("1bbba03d",a,!0,{})},74:function(t,e,r){"use strict";r(56)},75:function(t,e,r){(e=r(8)(!1)).push([t.i,".mrtn-header--center .mrtn-rating-breakdown{max-width:520px;width:100%}",""]),t.exports=e},76:function(t,e,r){"use strict";r(57)},77:function(t,e,r){(e=r(8)(!1)).push([t.i,".mrtn-filter-container[data-v-3eefd51d]{position:relative}.mrtn-filter-container .mrtn-filter-btn[data-v-3eefd51d]{background:transparent;border:none;color:#000;cursor:pointer;transition:all .2s ease}.mrtn-filter-container .mrtn-filter-btn[data-v-3eefd51d]:hover{color:#666}.mrtn-filter-container .mrtn-filter-btn[data-v-3eefd51d]:active{transform:scale(.95)}.mrtn-header--center[data-v-3eefd51d]{align-items:center;background:#fff;display:flex;flex-direction:column;gap:12px;position:relative}.mrtn-header__main[data-v-3eefd51d]{align-items:center;display:flex;gap:16px;justify-content:center;max-width:320px;width:100%}.mrtn-average-section[data-v-3eefd51d]{align-items:center;display:flex;gap:12px}.mrtn-average-icon[data-v-3eefd51d]{align-items:center;border-radius:8px;display:flex;height:40px;justify-content:center;width:40px}.mrtn-average-info[data-v-3eefd51d]{align-items:flex-start;display:flex;flex-direction:column}.mrtn-average-score[data-v-3eefd51d]{color:#000;font-size:32px;font-weight:700;line-height:1}.mrtn-total-reviews[data-v-3eefd51d]{color:#666;font-size:14px;margin-top:4px}.mrtn-dropdown-toggle[data-v-3eefd51d]{align-items:center;background:#fff;border:1px solid #e5e5e5;border-radius:6px;color:#000;cursor:pointer;display:flex;height:32px;justify-content:center;transition:all .2s ease;width:32px}.mrtn-dropdown-toggle[data-v-3eefd51d]:hover{background:#f8f8f8;border-color:#ccc}.mrtn-dropdown-toggle[data-v-3eefd51d]:active{transform:scale(.95)}.mrtn-dropdown-toggle svg[data-v-3eefd51d]{height:12px;width:12px}",""]),t.exports=e},93:function(t,e,r){"use strict";r.r(e);var a=r(41),o=r(50),n=r(4),i=r(10),s={name:"Center",components:{RatingBreakdown:a.a,SortDropdown:o.a},props:{...n.a,rating:{type:Object,default:()=>({five:0,four:0,three:0,two:0,one:0})},recommended:{type:Number,default:0},average:{type:Number,default:0},totalRating:{type:Number,default:0}},data:()=>({showDropdown:!0,showFilter:!1,currentSort:"most_recent",currentActive:null}),computed:{formatReviewsCount(){return this.totalRating>=1e3?(this.totalRating/1e3).toFixed(1).replace(".0","")+"k":this.totalRating.toLocaleString()}},methods:{lightenColor:i.a,toggleDropdown(){this.showDropdown=!this.showDropdown},onRatingSelected(t){this.currentActive===t?(this.currentActive=null,this.$emit("rating-selected",null)):(this.currentActive=t,this.$emit("rating-selected",t))},onSortSelected(t){this.currentSort=t,this.showFilter=!1,this.$emit("sort-selected",t)},toggleFilter(){this.showFilter=!this.showFilter,this.$emit("filter-toggle",this.showFilter)}}},l=(r(74),r(76),r(3)),d=Object(l.a)(s,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mrtn-header--center"},[r("div",{staticClass:"mrtn-header__main"},[r("div",{staticClass:"mrtn-average-section"},[r("div",{staticClass:"mrtn-average-icon",style:{backgroundColor:t.lightenColor(t.config.widget_review.star_color,.8)}},[r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",stroke:t.config.widget_review.star_color,fill:t.average>0?t.config.widget_review.star_color:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[r("defs",[r("linearGradient",{attrs:{id:"starGradient"+t.average}},[r("stop",{attrs:{offset:"0%","stop-color":t.config.widget_review.star_color}}),r("stop",{attrs:{offset:(t.average<5?t.average-1:t.average)/5*100+"%","stop-color":t.config.widget_review.star_color}}),r("stop",{attrs:{offset:(t.average<5?t.average-1:t.average)/5*100+"%","stop-color":"transparent"}}),r("stop",{attrs:{offset:"100%","stop-color":"transparent"}})],1)],1),r("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),r("path",{attrs:{d:"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z",fill:"url(#starGradient"+t.average+")"}})])]),r("div",{staticClass:"mrtn-average-info"},[r("span",{staticClass:"mrtn-average-score"},[t._v(t._s(t.average.toFixed(1)))]),r("span",{staticClass:"mrtn-total-reviews"},[t._v(t._s(t.formatReviewsCount)+" Avaliações")])])])]),r("RatingBreakdown",{attrs:{config:t.config,rating:t.rating,"total-rating":t.totalRating,"current-active":t.currentActive},on:{"rating-selected":t.onRatingSelected}}),r("div",{staticClass:"mrtn-filter-container"},[r("button",{staticClass:"mrtn-filter-btn",on:{click:t.toggleFilter}},[t._v(" Ordenar por ")]),r("SortDropdown",{attrs:{visible:t.showFilter,"current-sort":t.currentSort},on:{"sort-selected":t.onSortSelected,close:function(e){t.showFilter=!1}}})],1)],1)}),[],!1,null,"3eefd51d",null);e.default=d.exports}}]);
2
2
  //# sourceMappingURL=widget-martan.3.min.js.map