PageSourceSearch

https://www.sharely.ch/_nuxt/b9f6ebd.js

js sharely.ch collected 2026-10-04 13:31:25 UTC 30,349 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{1486:function(t,e,r){"use strict";r(796)},1487:function(t,e,r){var n=r(20)(!1);n.push([t.i,".rating-item-card[data-v-69f8e3ef]{max-width:85%;display:grid;grid-template-columns:50px 1fr 2fr;grid-auto-flow:row;padding-bottom:24px;border-bottom:1px solid #e1e3e6;margin-left:54px;margin-right:54px;margin-top:24px}.rating-item-card .lender-avatar[data-v-69f8e3ef]{max-width:50px;width:50px;max-height:50px;height:50px;align-self:center}.rating-item-card .lender-avatar img[data-v-69f8e3ef]{max-width:100%;width:100%;height:100%;max-height:100%;-o-object-fit:cover;object-fit:cover;border-radius:50%}.rating-item-card .lender-info[data-v-69f8e3ef]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;grid-gap:8px;gap:8px;margin-left:34px}.rating-item-card .lender-info .lender-name[data-v-69f8e3ef]{color:#1e2833;font-size:1rem;line-height:1.25rem;font-weight:600}.rating-item-card .lender-info .product-name[data-v-69f8e3ef]{color:#454545;font-size:1rem;line-height:1.25rem;font-weight:500}.rating-item-card .review-info[data-v-69f8e3ef],.rating-item-card .review-info-top[data-v-69f8e3ef]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.rating-item-card .review-info[data-v-69f8e3ef]{grid-gap:16px;gap:16px;padding-left:48px}.rating-item-card .review-info .review-info-top[data-v-69f8e3ef]{grid-gap:8px;gap:8px}.rating-item-card .review-info .review-info-top .date[data-v-69f8e3ef]{font-size:.75rem;color:#1e2833}.rating-item-card .review-info .review-comment[data-v-69f8e3ef]{font-size:.875rem;text-align:left;color:#454545}@media screen and (max-width:768px){.rating-item-card[data-v-69f8e3ef]{max-width:100%;grid-template-columns:50px 1fr;grid-template-rows:repeat(2,auto);margin-left:16px;margin-right:16px}.rating-item-card .lender-avatar[data-v-69f8e3ef]{grid-column:1/2;grid-row:1/2}.rating-item-card .lender-info[data-v-69f8e3ef]{grid-column:2/3;grid-row:1/2;margin-left:34px;max-width:100%}.rating-item-card .lender-info .lender-name[data-v-69f8e3ef]{color:#1e2833;font-size:1rem;line-height:1.25rem;font-weight:600}.rating-item-card .lender-info .product-name[data-v-69f8e3ef]{color:#454545;font-size:1rem;line-height:1.25rem;font-weight:500}.rating-item-card .review-info[data-v-69f8e3ef],.rating-item-card .review-info-top[data-v-69f8e3ef]{max-width:100%;grid-column:1/-1;grid-row:2/3}.rating-item-card .review-info[data-v-69f8e3ef]{grid-gap:16px;gap:16px;display:grid;grid-template-columns:50px 1fr;grid-template-rows:repeat(2,auto);padding-left:0;padding-right:32px}.rating-item-card .review-info .review-info-top[data-v-69f8e3ef]{margin-left:16px;margin-top:16px;flex-direction:row;max-width:100%;grid-column:2/3;grid-row:1/2;display:flex;justify-content:space-between;align-items:center}.rating-item-card .review-info .review-info-top .date[data-v-69f8e3ef]{font-size:.75rem;color:#1e2833;text-align:right}.rating-item-card .review-info .review-comment[data-v-69f8e3ef]{grid-row:2/3;grid-column:1/-1;font-size:.75rem;text-align:left;color:#454545}}",""]),t.exports=n},160:function(t,e,r){"use strict";r.r(e);r(35),r(37),r(10);var n=r(80),o={name:"ratings-list",components:{RatingsListItem:r(872).default,RateExperienceModal:n.default},props:{ratings:{type:Array,required:!0},type:{type:String,required:!1,default:"given"}},data:function(){return{rentalRequestId:null,rentalRequestType:"",username:""}},computed:{currentPage:function(){return this.$route.name.includes("dashboard")?"dashboard":"profile"}},methods:{showRatingModal:function(data){this.rentalRequestId=data.id,this.username=data.username,this.rentalRequestType=data.type,this.$modal.show(data.modal)}}},l=r(0),component=Object(l.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dashboard__reviews--ratings-list"},[e("RateExperienceModal",{class:[t.$route.name.includes("dashboard-redesign")?"modal__rate-experience-modal-new-dash":""],attrs:{size:"sm","rental-request-id":t.rentalRequestId,username:t.username,"request-type":t.rentalRequestType},on:{rated:function(e){return t.$emit("rated")}}}),t._v(" "),t._l(t.ratings,(function(r,n){return e("RatingsListItem",{key:n,attrs:{rating:r,type:t.type,page:t.currentPage},on:{show:t.showRatingModal}})}))],2)}),[],!1,null,null,null);e.default=component.exports},1795:function(t,e,r){"use strict";r.r(e);r(10);var n=r(3),o=(r(12),r(5)),l={name:"product-review",props:{product:{type:Object,required:!0}},data:function(){return{rating:0,comment:""}},methods:{reviewProduct:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.a.ratingsApi.updateRatingProductById({id:t.product.id,rating:t.rating,comment:t.comment});case 2:case"end":return e.stop()}}),e)})))()}}},d=r(0),component=Object(d.a)(l,(function(){var t=this,e=t._self._c;return e("div",[e("h1",[t._v("Rate your experience")]),t._v(" "),e("span",[t._v(" How did the rental go with "+t._s(this.product.name)+" ")]),t._v(" "),e("star-rating",{model:{value:t.rating,callback:function(e){t.rating=e},expression:"rating"}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.comment,expression:"comment"}],attrs:{type:"textarea"},domProps:{value:t.comment},on:{input:function(e){e.target.composing||(t.comment=e.target.value)}}}),t._v(" "),e("button",{on:{click:function(e){return t.reviewProduct()}}},[t._v("Save review")])],1)}),[],!1,null,null,null);e.default=component.exports},1796:function(t,e,r){"use strict";r.r(e);var n=r(3),o=(r(12),r(4),r(11),r(45),r(1)),l=r.n(o),d=r(279),c=r(278),v=r(160),m=r(5),h=r(55),f=r(49),w=r(159),_=r(44),R=r(82),y=r(83),x=r(89),$={name:"reviews",components:{Pagination:h.default,RatingsHeader:d.default,SectionTabs:w.default,Loader:_.default,NoRatings:c.default,RatingsList:v.default,FeatureSwitchBanner:R.default,FloatingButton:y.default},mixins:[f.a,x.a],data:function(){return{reviews:[],ratingsLoading:!1,currentUser:{}
1,currentPage:1,perPage:8,totalReviews:0,averageRating:0,activeRatingType:"given",ratingsList:[],givenRatings:[],receivedRatings:[],totalRatings:{given:0,received:0}}},computed:{ratingTabs:function(){return l.a.values(this.$t("pages.dashboard.tabs.reviews.ratingTabs"))},hasRatings:function(){return this.totalRatings[this.activeRatingType]>0}},watch:{currentPage:function(t){this.currentPage=t,this.fetchRatings()},givenRatings:{handler:function(t){l.a.isEqual(this.activeRatingType,"given")&&(this.ratingsList=t)},deep:!0},receivedRatings:{handler:function(t){l.a.isEqual(this.activeRatingType,"received")&&(this.ratingsList=t)},deep:!0},activeRatingType:{handler:function(t){l.a.isEqual(t,"given")?this.ratingsList=this.givenRatings:this.ratingsList=this.receivedRatings},immediate:!0}},mounted:function(){this.currentUser=this.$auth.user,this.fetchRatings()},methods:{selectTab:function(t){this.activeRatingType=0===t?"given":"received",1!==this.currentPage?this.currentPage=1:this.fetchRatings()},fetchRatings:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ratingsLoading=!0,r={page:t.currentPage,perPage:t.perPage},t.ratingsList=[],"given"!==t.activeRatingType){e.next=11;break}return e.next=6,m.a.rentalRatingsApi.getRatingsByMe(r);case 6:n=e.sent,t.totalRatings.given=n.itemsTotal,t.givenRatings=l.a.map(n.rentalRatings,(function(t){return{rating:t.rating,comment:t.comment,status:t.status,createdAt:t.createdAt,ratedAt:t.ratedAt,ratedBy:t.ratedBy,id:t.id,object:{title:t.rental.productTitle},rental:t.rental}})),e.next=16;break;case 11:return e.next=13,m.a.rentalRatingsApi.getRentalRatings(r);case 13:o=e.sent,t.receivedRatings=o.rentalRatings,t.totalRatings.received=o.count;case 16:t.ratingsLoading=!1;case 17:case"end":return e.stop()}}),e)})))()}}},C=r(0),component=Object(C.a)($,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel__wrapper rating"},[e("transition",{attrs:{name:"fade-y-banner"}},[t.isBannerShowing?e("FeatureSwitchBanner",{staticClass:"mb-40",attrs:{description:t.$root.desktopView&&!t.$root.tabletView?t.$t("feature-switch-banner.dashboard.description"):t.descriptionMobile,"switch-label":t.$t("feature-switch-banner.dashboard.switchLabel"),"preference-value":t.switchToOldDashboard,loading:t.switchLoading,"learn-more-button":t.$root.mobileView,"learn-more-button-text":t.showFullText?t.$t("buttons.showLess"):t.$t("buttons.learnMore")},on:{click:function(e){return t.updateNewDashboardPreference(e)},close:function(e){t.isBannerShowing=!1},"read-more":t.toggleFullText}}):t._e()],1),t._v(" "),e("RatingsHeader"),t._v(" "),e("SectionTabs",{attrs:{tabs:t.ratingTabs,"is-disabled":!t.hasRatings},on:{"tab-selected":function(e){return t.selectTab(e)}}}),t._v(" "),t.ratingsLoading?e("Loader",{staticClass:"loader"}):t._e(),t._v(" "),!t.ratingsLoading&&t.ratingsList.length<1?e("NoRatings"):!t.ratingsLoading&&t.hasRatings?e("RatingsList",{attrs:{ratings:t.ratingsList,type:t.activeRatingType},on:{rated:t.fetchRatings}}):t._e(),t._v(" "),!t.ratingsLoading&&t.hasRatings?e("Pagination",{staticClass:"pagination",attrs:{"current-page":t.currentPage,"total-items":t.totalRatings[t.activeRatingType],"per-page":t.perPage},on:{"page-click":function(e){return t.goToNextPage(e)}}}):t._e(),t._v(" "),t.$root.desktopView&&!t.$root.tabletView?e("FloatingButton",{attrs:{icon:t.isBannerShowing?"more-information":"more-information-light"},on:{click:function(e){return t.toggleBanner()}}}):t._e()],1)}),[],!1,null,null,null);e.default=component.exports},1797:function(t,e,r){"use strict";r.r(e);var n={name:"reviews-list",components:{ReviewsListItem:r(935).default},props:{reviews:{type:Array,required:!0}}},o=r(0),component=Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"reviews-list",class:{"pb-60":t.reviews.length>4}},t._l(t.reviews,(function(t,r){return e("ReviewsListItem",{key:r,attrs:{review:t}})})),1)}),[],!1,null,null,null);e.default=component.exports},278:function(t,e,r){"use strict";r.r(e);var n={name:"no-ratings"},o=r(0),component=Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dashboard__reviews--no-items"},[e("p",{domProps:{innerHTML:t._s(t.$t("pages.dashboard.tabs.reviews.noReviewsDescription"))}}),t._v(" "),e("nuxt-link",{staticClass:"btn btn--primary btn--center btn--fit",attrs:{to:t.localePath({name:"search"})}},[t._v("\n\t\t"+t._s(t.$t("pages.dashboard.tabs.reviews.buttons.lookForItem"))+"\n\t")])],1)}),[],!1,null,null,null);e.default=component.exports},279:function(t,e,r){"use strict";r.r(e);var n=r(1),o=r.n(n),l={name:"ratings-header",computed:{userAvatar:function(){return o.a.isNil(this.$auth.$state.user.avatar)?r(47):this.$auth.$state.user.avatar.images.medium},rating:function(){return parseFloat(this.$auth.$state.user.rating.ratingAvg)},totalRatings:function(){return this.$auth.$state.user.rating.ratingsTotal}}},d=r(0),component=Object(d.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dashboard__reviews--header"},[e("div",{staticClass:"avatar-placeholder"},[e("img",{staticClass:"avatar",attrs:{src:t.userAvatar,alt:"Profile image"}})]),t._v(" "),e("div",{staticClass:"rating"},[e("star-rating",{attrs:{"border-width":2,"border-color":"gold","active-color":"gold","inactive-color":"#FFFFFF","rounded-corners":!0,"read-only":!0,increment:.1,"star-size":20,"show-rating":!0},model:{value:t.rating,callback:function(e){t.rating=e},expression:"rating"}}),t._v(" "),e("span",{staticClass:"total"}
1,[t._v(t._s("(".concat(t.totalRatings,")")))])],1)])}),[],!1,null,null,null);e.default=component.exports},796:function(t,e,r){var content=r(1487);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(21).default)("366b0c72",content,!0,{sourceMap:!1})},80:function(t,e,r){"use strict";r.r(e);var n=r(3),o=(r(12),r(46),r(6)),l=r(1),d=r.n(l),c=r(5),v={name:"rate-experience-modal",components:{LoaderSubmitButton:r(34).default},props:{user:{type:Object,required:!1},size:{type:String,required:!1,default:"md"},rentalRequestId:{type:Number,required:!1},requestType:{type:String,default:"renter"},username:{type:String,required:!0}},data:function(){return{review:{rating:0,ratingCommunication:0,ratingLogistics:0,ratingArticleAccuracy:0,comment:""},sendingReview:!1,transactionsSection:""}},validations:{review:{comment:{required:o.required},rating:{required:o.required,between:Object(o.between)(1,5)},ratingCommunication:{required:o.required,between:Object(o.between)(1,5)},ratingLogistics:{required:o.required,between:Object(o.between)(1,5)},ratingArticleAccuracy:{required:Object(o.requiredIf)((function(t){return"leaser"===this.requestType}))}}},mounted:function(){this.transactionsSection=this.$route.query.section},methods:{reviewUser:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var n,o;return regeneratorRuntime.wrap((function(e){for(;;
1)switch(e.prev=e.next){case 0:if(t.$v.$touch(),t.$v.$invalid){e.next=20;break}return e.prev=2,t.sendingReview=!0,n={id:t.rentalRequestId,comment:t.review.comment,rating:t.review.rating,ratingCommunication:t.review.ratingCommunication,ratingLogistics:t.review.ratingLogistics,ratingArticleAccuracy:t.review.ratingArticleAccuracy},e.next=7,c.a.rentalRatingsApi.updateRatingRentalRequest(n,{lang:t.$i18n.locale});case 7:d.a.isEmpty(t.$route.query.rateID)||t.$router.push(t.localePath({name:"dashboard",section:t.transactionsSection})),t.$swal({title:t.$t("sweetAlert.success.ratingModal"),imageUrl:r(108),imageWidth:151,background:"#FFFFFF",border:"1px solid #E5E5E5",boxShadow:"0px 15px 50px rgba(0, 0, 0, 0.3)",color:"#1E2833",fontWeight:"bold",fontSize:24,lineHeight:29,borderRadius:"8px",imageHeight:85,imageAlt:"Custom image",customClass:{confirmButton:"btn btn--primary mr"},buttonsStyling:!1,titleStyling:!1}),t.sendingReview=!1,t.$emit("rated"),t.resetFields(),t.closeModal(),e.next=20;break;case 15:e.prev=15,e.t0=e.catch(2),t.sendingReview=!1,o=e.t0.response.data.message.split(":")[1],t.$swal({title:o,imageUrl:r(32),imageWidth:151,background:"#FFFFFF",border:"1px solid #E5E5E5",boxShadow:"0px 15px 50px rgba(0, 0, 0, 0.3)",color:"#1E2833",fontWeight:"bold",fontSize:24,lineHeight:29,borderRadius:"8px",imageHeight:85,imageAlt:"Custom image",customClass:{confirmButton:"btn btn--primary mr"},buttonsStyling:!1,titleStyling:!1});case 20:case"end":return e.stop()}}),e,null,[[2,15]])})))()},closeModal:function(){this.$v.$reset(),this.$modal.hide("rate-experience-modal")},resetFields:function(){this.review.comment="",this.review.rating=0,this.review.ratingCommunication=0,this.review.ratingLogistics=0,this.review.ratingArticleAccuracy=0}}},m=r(0),component=Object(m.a)(v,(function(){var t=this,e=t._self._c;return e("Modal",{attrs:{name:"rate-experience-modal",classes:"modal modal--".concat(t.size," modal__rate-experience-modal"),adaptive:"",height:"auto",scrollable:"","focus-trap":""}},[e("div",{staticClass:"modal__header"},[e("div",{staticClass:"modal__title modal__title--center"},[e("h3",[t._v(t._s(t.$t("modals.ratingModal.title")))])]),t._v(" "),e("div",{attrs:{slot:"top-right"},slot:"top-right"},[e("button",{staticClass:"flex--shrink-0",on:{click:function(e){return e.preventDefault(),t.closeModal.apply(null,arguments)}}},[e("Icon",{attrs:{"icon-name":"close"}})],1)])]),t._v(" "),e("div",{staticClass:"modal__body modal__body--center"},[e("div",{staticClass:"overall-rating"},[e("star-rating",{attrs:{"border-width":4,"border-color":"gold","active-color":"gold","rounded-corners":!0,"inactive-color":"#FFFFFF",increment:1,"star-size":20,"show-rating":!1},model:{value:t.review.rating,callback:function(e){t.$set(t.review,"rating",e)},expression:"review.rating"}}),t._v(" "),t.$v.review.rating.$error?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.requiredErrorMessage")))])],1)]:t._e(),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.review.comment,expression:"review.comment"}],staticClass:"form__textarea",class:{"form__input--has-error":t.$v.review.comment.$error&&t.review.comment},attrs:{id:"comment",name:"comment",required:"",placeholder:t.$t("modals.ratingModal.ratingCommentPlaceholder")},domProps:{value:t.review.comment},on:{input:function(e){e.target.composing||t.$set(t.review,"comment",e.target.value)}}}),t._v(" "),t.$v.review.comment.$error?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.requiredErrorMessage")))])],1)]:t._e()],2),t._v(" "),e("div",{staticClass:"additional-ratings"},[e("p",{staticClass:"question-text"},[t._v(t._s(t.$t("modals.ratingModal.communication",{username:t.username})))]),t._v(" "),e("star-rating",{attrs:{"border-width":4,"border-color":"gold","active-color":"gold","rounded-corners":!0,"inactive-color":"#FFFFFF",increment:1,"star-size":20,"show-rating":!1},model:{value:t.review.ratingCommunication,callback:function(e){t.$set(t.review,"ratingCommunication",e)},expression:"review.ratingCommunication"}}),t._v(" "),t.$v.review.ratingCommunication.$error?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.requiredErrorMessage")))])],1
1)]:t._e()],2),t._v(" "),e("div",{staticClass:"additional-ratings"},[e("p",{staticClass:"question-text"},[t._v(t._s(t.$t("modals.ratingModal.pickUpDropOff",{username:t.username})))]),t._v(" "),e("star-rating",{attrs:{"border-width":4,"border-color":"gold","active-color":"gold","rounded-corners":!0,"inactive-color":"#FFFFFF",increment:1,"star-size":20,"show-rating":!1},model:{value:t.review.ratingLogistics,callback:function(e){t.$set(t.review,"ratingLogistics",e)},expression:"review.ratingLogistics"}}),t._v(" "),t.$v.review.ratingLogistics.$error?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.requiredErrorMessage")))])],1)]:t._e()],2),t._v(" "),"leaser"===t.requestType?e("div",{staticClass:"additional-ratings"},[e("p",{staticClass:"question-text"},[t._v(t._s(t.$t("modals.ratingModal.articleAccuracy")))]),t._v(" "),e("star-rating",{attrs:{"border-width":4,"border-color":"gold","active-color":"gold","rounded-corners":!0,"inactive-color":"#FFFFFF",increment:1,"star-size":20,"show-rating":!1},model:{value:t.review.ratingArticleAccuracy,callback:function(e){t.$set(t.review,"ratingArticleAccuracy",e)},expression:"review.ratingArticleAccuracy"}}),t._v(" "),t.$v.review.ratingArticleAccuracy.$error?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.requiredErrorMessage")))])],1)]:t._e()],2):t._e(),t._v(" "),e("LoaderSubmitButton",{attrs:{"button-title":t.$t("buttons.saveReview"),"is-busy":t.sendingReview,"css-class":"btn--center btn--primary"},on:{click:t.reviewUser}})],1)])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Icon:r(17).default})},871:function(t,e,r){"use strict";r.r(e);var n=r(3),o=(r(12),r(4),r(11),r(45),r(1)),l=r.n(o),d=r(5),c=r(278),v=r(279),m=r(159),h=r(160),f=r(55),w=r(49),_=r(44),R={name:"reviews",components:{NoRatings:c.default,RatingsHeader:v.default,SectionTabs:m.default,RatingsList:h.default,Pagination:f.default,Loader:_.default},mixins:[w.a],data:function(){return{activeRatingType:"given",ratingsList:[],givenRatings:[],receivedRatings:[],totalRatings:{given:0,received:0},reviewsLoading:!0,currentPage:1,perPage:10}},computed:{reviewTabs:function(){return l.a.values(this.$t("pages.dashboard.tabs.reviews.tabs"))},hasRatings:function(){return this.totalRatings[this.activeRatingType]>0}},watch:{currentPage:function(t){this.currentPage=t,this.fetchRatings()},givenRatings:{handler:function(t){l.a.isEqual(this.activeRatingType,"given")&&(this.ratingsList=t)},deep:!0},receivedRatings:{handler:function(t){l.a.isEqual(this.activeRatingType,"received")&&(this.ratingsList=t)},deep:!0},activeRatingType:{handler:function(t){l.a.isEqual(t,"given")?this.ratingsList=this.givenRatings:this.ratingsList=this.receivedRatings},immediate:!0}},mounted:function(){this.fetchRatings()},methods:{selectTab:function(t){this.activeRatingType=0===t?"given":"received",1!==this.currentPage?this.currentPage=1:this.fetchRatings()},fetchRatings:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.reviewsLoading=!0,r={page:t.currentPage,perPage:t.perPage},t.ratingsList=[],"given"!==t.activeRatingType){e.next=11;break}return e.next=6,d.a.rentalRatingsApi.getRatingsByMe(r);case 6:n=e.sent,t.totalRatings.given=n.itemsTotal,t.givenRatings=l.a.map(n.rentalRatings,(function(t){return{rating:t.rating,comment:t.comment,status:t.status,createdAt:t.createdAt,ratedAt:t.ratedAt,ratedBy:t.ratedBy,id:t.id,object:{title:t.rental.productTitle},rental:t.rental}})),e.next=16;break;case 11:return e.next=13,d.a.rentalRatingsApi.getRentalRatings(r);case 13:o=e.sent,t.receivedRatings=l.a.map(o.rentalRatings,(function(t){return{rating:t.rating,comment:t.comment,status:t.status,createdAt:t.createdAt,ratedAt:t.ratedAt,ratedBy:t.ratedBy,id:t.id,object:{title:t.rental.productTitle},rental:t.rental}})),t.totalRatings.received=o.count;case 16:t.reviewsLoading=!1;case 17:case"end":return e.stop()}}),e)})))()}}},y=r(0),component=Object(y.a)(R,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dashboard__reviews"},[e("RatingsHeader"),t._v(" "),e("SectionTabs",{attrs:{tabs:t.reviewTabs,"is-disabled":!t.hasRatings},on:{"tab-selected":function(e){return t.selectTab(e)}}}),t._v(" "),t.reviewsLoading?e("Loader",{staticClass:"dashboard__reviews--loader"}):t._e(),t._v(" "),!t.reviewsLoading&&t.ratingsList.length<1?e("NoRatings"):!t.reviewsLoading&&t.hasRatings?e("RatingsList",{attrs:{ratings:t.ratingsList,type:t.activeRatingType},on:{rated:t.fetchRatings}}):t._e(),t._v(" "),!t.reviewsLoading&&t.hasRatings?e("Pagination",{staticClass:"dashboard__reviews--pagination",attrs:{"current-page":t.currentPage,"total-items":t.totalRatings[t.activeRatingType],"per-page":t.perPage},on:{"page-click":function(e){return t.goToNextPage(e)}}}):t._e()],1)}),[],!1,null,null,null);e.default=component.exports},872:function(t,e,r){"use strict";r.r(e);r(53);var n=r(1),o=r.n(n),l=r(2),d=r.n(l),c={name:"ratings-list-item",props:{rating:{type:Object,required:!0},type:{type:String,required:!1,default:"received"},page:{type:String,required:!1,default:"dashboard"}},computed:{userAvatar:function(){var t,e,r,n,o;if("dashboard"===this.page)if("received"===this.type){var l,d,c;if((null===(l=this.$auth)||void 0===l||null===(l=l.$state)||void 0===l||null===(l=l.user)||void 0===l?void 0:l.id)!==(null==this||null===(d=this.rating)||void 0===d||null===(d=d.ratedBy)||void 0===d?void 0:d.id)&&null!=this&&null!==(c=this.rating)&&void 0!==c&&null!==(c=c.ratedBy)&&void 0!==c&&null!==(c=c.avatar)&&void 0!==c&&null!==(c=c.images)&&void 0!==c&&c.small)return this.rating.ratedBy.avatar.images.small}else{if((null==this||null===(e=this.rating)||void 0===e||null===(e=e.rental)||void 0===e||null===(e=e.consumer)||void 0===e?void 0:e.uuid)!==this.$auth.$state.user.uuid&&null!=this&&null!==(r=this.rating)&&void 0!==r&&null!==(r=r.rental)&&void 0!==r&&null!==(r=r.consumer)&&void 0!==r&&null!==(r=r.avatar)&&void 0!==r&&null!==(r=r.images)&&void 0!==r&&r.small)return this.rating.rental.consumer.avatar.images.small;if((null==this||null===(n=this.rating)||void 0===n||null===(n=n.rental)||void 0===n||null===(n=n.supplier)||void 0===n?void 0:n.uuid)!==this.$auth.$state.user.uuid&&null!=this&&null!==(o=this.rating)&&void 0!==o&&null!==(o=o.rental)&&void 0!==o&&null!==(o=o.supplier)&&void 0!==o&&null!==(o=o.avatar)&&void 0!==o&&null!==(o=o.images)&&void 0!==o&&o.small)return this.rating.rental.supplier.avatar.images.small}else if(null!=this&&null!==(t=this.rating)&&void 0!==t&&null!==(t=t.ratedBy)&&void 0!==t&&null!==(t=t.avatar)&&void 0!==t&&null!==(t=t.images)&&void 0!==t&&t.small)return this.rating.ratedBy.avatar.images.small;return"/images/avatar_placeholder.svg"},username:function(){if("dashboard"===this.page&&"given"===this.type){var t,e,r,n,l,d,c,v,m,h,f,w,_,R;if((null==this||null===(t=this.rating)||void 0===t||null===(t=t.rental)||void 0===t||null===(t=t.consumer)||void 0===t?void 0:t.uuid)!==this.$auth.$state.user.uuid&&null!=this&&null!==(e=this.rating)&&void 0!==e&&null!==(e=e.rental)&&void 0!==e&&null!==(e=e.consumer)&&void 0!==e&&e.firstname)return o.a.isNil(null==this||null===(l=this.rating)||void 0===l||null===(l=l.consumer)||void 0===l?void 0:l.company)||o.a.isEmpty(null==this||null===(d=this.rating)||void 0===d||null===(d=d.consumer)||void 0===d?void 0:d.company)||o.a.isEqual(null==this||null===(c=this.rating)||void 0===c||null===(c=c.consumer)||void 0===c?void 0:c.company,"null")?null===(v=this.rating.rental.consumer)||void 0===v?void 0:v.firstname:null==this||null===(m=this.rating)||void 0===m||null===(m=m.consumer)||void 0===m?void 0:m.company;if((null==this||null===(r=this.rating)||void 0===r||null===(r=r.rental)||void 0===r||null===(r=r.supplier)||void 0===r?void 0:r.uuid)!==this.$auth.$state.user.uuid&&null!=this&&null!==(n=this.rating)&&void 0!==n&&null!==(n=n.rental)&&void 0!==n&&null!==(n=n.supplier)&&void 0!==n&&n.firstname)return o.a.isNil(null==this||null===(h=this.rating)||void 0===h||null===(h=h.supplier)||void 0===h?void 0:h.company)||o.a.isEmpty(null==this||null===(f=this.rating)||void 0===f||null===(f=f.supplier)||void 0===f?void 0:f.company)||o.a.isEqual(null==this||null===(w=this.rating)||void 0===w||null===(w=w.supplier)||void 0===w?void 0:w.company,"null")?null===(_=this.rating.rental.supplier)||void 0===_?void 0:_.firstname:null==this||null===(R=this.rating)||void 0===R||null===(R=R.supplier)||void 0===R?void 0:R.company}return o.a.isNil(this.rating.ratedBy.company)||o.a.isEmpty(this.rating.ratedBy.company)||o.a.isEqual(this.rating.ratedBy.company,"null")?this.rating.ratedBy.firstname:this.rating.ratedBy.company},dateRatedAt:function(){var t;return d()((null==this||null===(t=this.rating)||void 0===t?void 0:t.ratedAt)||void 0).format("DD MMMM YYYY")},ratingAvg:function(){return this.rating.rating},starSize:function(){return this.$root.desktopView||this.$root.tabletView?18:10},hasRating:function(){return Boolean(this.rating.rating)},canRate:function(){return"received"===this.type},rentalRatingTitle:function(){if("dashboard"===this.page){var t,e;if((null==this||null===(t=this.rating)||void 0===t||null===(t=t.rental)||void 0===t||null===(t=t.consumer)||void 0===t?void 0:t.uuid)===this.$auth.$state.user.uuid)return this.$t("pages.dashboard.tabs.reviews.ratingTitleAsBorrower",{username:this.username});if((null==this||null===(e=this.rating)||void 0===e||null===(e=e.rental)||void 0===e||null===(e=e.supplier)||void 0===e?void 0:e.uuid)===this.$auth.$state.user.uuid)return this.$t("pages.dashboard.tabs.reviews.ratingTitleAsLender",{username:this.username})}return this.username}},methods:{showRatingModal:function(t){var e;(null==this||null===(e=this.rating)||void 0===e?void 0:e.id)&&this.$emit("show",{modal:t,id:this.rating.id,type:this.rating.rental.consumer.uuid===this.$auth.$state.user.uuid?"leaser":"renter",username:this.username})}}},v=r(0),component=Object(v.a)(c,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"rating-item"},[e("div",{staticClass:"user-avatar"},[e("nuxt-img",{attrs:{src:t.userAvatar,alt:t.rating.object.title}}
1)],1),t._v(" "),e("p",{staticClass:"username"},[t._v(t._s(t.rentalRatingTitle))]),t._v(" "),e("p",{staticClass:"product-title"},[t._v(t._s(t.rating.object.title))]),t._v(" "),t.hasRating||t.canRate?e("div",{staticClass:"rating-info"},[e("star-rating",{attrs:{"border-width":2,"border-color":"gold","active-color":"gold","inactive-color":"#FFFFFF","rounded-corners":!0,"read-only":!0,increment:1,"star-size":t.starSize,"show-rating":!1},model:{value:t.ratingAvg,callback:function(e){t.ratingAvg=e},expression:"ratingAvg"}}),t._v(" "),e("div",{staticClass:"date"},[e("span",[t._v(t._s(t.dateRatedAt))])])],1):e("div",{staticClass:"rate-button",on:{click:function(e){return t.showRatingModal("rate-experience-modal")}}},[e("img",{attrs:{src:r(1527),alt:""}}),t._v(" "),e("span",{staticClass:"rate-button__label"},[t._v(t._s(t.$t("pages.dashboard.tabs.borrowedItems.buttons.rateTheRental")))]),t._v(" "),e("div",{staticClass:"rate-button__notification-alert"})]),t._v(" "),e("p",{staticClass:"rating-text"},[t._v("\n\t\t"+t._s(t.rating.comment)+"\n\t")])])}),[],!1,null,null,null);e.default=component.exports},935:function(t,e,r){"use strict";r.r(e);r(53);var n=r(2),o=r.n(n),l={name:"reviews-list-item",props:{review:{type:Object,required:!0}},computed:{lenderAvatar:{get:function(){var t,e;return null!==(t=null===(e=this.review.ratedBy)||void 0===e||null===(e=e.avatar)||void 0===e||null===(e=e.images)||void 0===e?void 0:e.small)&&void 0!==t?t:r(47)}},dateFormat:{get:function(){return null!==this.review.ratedAt?o()(this.review.ratedAt).format("DD MMMM YYYY"):o()(this.review.createdAt).format("DD MMMM YYYY")}},starSize:{get:function(){return this.$root.desktopView?25:16}}}},d=(r(1486),r(0)),component=Object(d.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"rating-item-card"},[e("div",{staticClass:"lender-avatar"},[e("img",{attrs:{src:"".concat(t.lenderAvatar),alt:"Lender Profile Picture"}})]),t._v(" "),e("div",{staticClass:"lender-info"},[e("h5",{staticClass:"lender-name"},[t._v(t._s(t.review.ratedBy.firstname))]),t._v(" "),e("h5",{staticClass:"product-name"},[t._v(t._s(t.review.object.title))])]),t._v(" "),e("div",{staticClass:"review-info"},[e("div",{staticClass:"review-info-top"},[e("star-rating",{attrs:{"star-size":t.starSize,"border-color":"gold","active-color":"gold","read-only":!0,"show-rating":!1},model:{value:t.review.rating,callback:function(e){t.$set(t.review,"rating",e)},expression:"review.rating"}}),t._v(" "),e("p",{staticClass:"date"},[t._v(t._s(t.dateFormat))])],1),t._v(" "),e("p",{staticClass:"review-comment"},[t._v(" "+t._s(t.review.comment))])])])}),[],!1,null,"69f8e3ef",null);e.default=component.exports}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.