1var __awaiter=this&&this.__awaiter||function(t,e,n,o){function r(t){return t instanceof n?t:new n(function(e){e(t)})}return new(n||(n=Promise))(function(n,i){function a(t){try{s(o.next(t))}catch(t){i(t)}}function c(t){try{s(o.throw(t))}catch(t){i(t)}}function s(t){t.done?n(t.value):r(t.value).then(a,c)}s((o=o.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function n(t){return function(e){return o([t,e])}}function o(n){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=0,n[0]&&(s=0)),s;)try{if(r=1,i&&(a=2&n[0]?i.return:n[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,n[1])).done)return a;switch(i=0,a&&(n=[2&n[0],a.value]),n[0]){case 0:case 1:a=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,i=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(6===n[0]||2===n[0])){s=0;continue}if(3===n[0]&&(!a||n[1]>a[0]&&n[1]<a[3])){s.label=n[1];break}if(6===n[0]&&s.label<a[1]){s.label=a[1],a=n;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(n);break}a[2]&&s.ops.pop(),s.trys.pop();continue}n=e.call(t,s)}catch(t){n=[6,t],i=0}finally{r=a=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var r,i,a,c,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return c={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c},ReviewGlobal=function(){function t(){this.bindScore()}return t.prototype.bindScore=function(){var t=this;$(document).on("click",".score[data-step]",function(e){e.preventDefault();var n=$(e.currentTarget);t.saveReview(n[0])})},t.prototype.canSetScore=function(t){var e=GetItemFromLocalStorage("testimonial"+t.toString());return null===e||"1"!==e},t.prototype.saveReview=function(t){return __awaiter(this,void 0,void 0,function(){var e,n,o,r=this;return __generator(this,function(i){return e=parseInt(t.getAttribute("data-step")),n=parseInt(t.getAttribute("data-id")),o=parseInt(t.getAttribute("data-itemId")),this.canSetScore(n)?(e=e>0?1:-1,EshopService("CommodityReviewScore",{commodityId:o,testimonialId:n,score:e},!0,function(e){if(0===e.ErrorLevel){var o=parseInt(t.firstChild.textContent);o++,t.firstChild.textContent=o.toString(),r.setScoreToLocalStorage(n)}else"exists"===e.Message?r.showAlert():"ratingCooldown"===e.Message&&r.showRatingCooldownAlert()}),[2]):(this.showAlert(),[2])})})},t.prototype.setScoreToLocalStorage=function(t){AddItemToLocalStorage("testimonial"+t.toString(),"1")},t.prototype.showAlert=function(){fancyMessage("",GetTextDynamic("testimonial_com_score_cant_set"),"info","fancybox-alert")},t.prototype.showRatingCooldownAlert=function(){fancyMessage("",GetTextDynamic("testimonial_com_score_cooldown"),"info","fancybox-alert")},t}();
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.