1(function(){'use strict';$.widget('ajaxReviews',{component:'Magento_Review/js/process-reviews',create:function(){var self=this,reviewTab=$(this.options.reviewsTabSelector);if(!reviewTab.length){this.loadReviews();}else if(reviewTab.attr('role')==='tab'&&reviewTab.hasClass('active')){this.loadReviews();}else{reviewTab.one('collapsible:beforeOpen',function(){self.loadReviews();});} 2$(document).on('click.ajaxReviews','[data-role="product-review"] .pages a',function(event){event.preventDefault();self.loadReviews(this.href).then(function(){$('#reviews').get(0).scrollIntoView();});});},destroy:function(){$(document).off('click.ajaxReviews');this._super();},loadReviews:function(href){return $.request.get({url:href||this.options.productReviewUrl,type:'html'}).then(function(response){$('#product-review-container').html('').append(response.text).trigger('contentUpdated');});}});$.view('reviewForm',{component:'Magento_Review/js/view/review',create:function(){this.review=$.sections.get('review');},nickname:function(){return this.review().nickname||$.sections.get('customer')().firstname;}});$.validator.validators['rating-required']=[function(value){return value!==undefined;},$.__('Please select one of each of the ratings above.')];$(document).on('breeze:mount:Magento_Review/js/validate-review',function(event,data){$(data.el).validator({onValid:function(){this.form.find('.submit').prop('disabled',true);},addErrorNodes:function(el,nodes){var reviewTable=$(el).parents('#product-review-table');if(reviewTable.length){reviewTable.after(nodes);}else{this.addErrorNodes(el,nodes);}},removeErrorNodes:function(el){var reviewTable=$(el).parents('#product-review-table');if(reviewTable.length){reviewTable.siblings('.error-text[generated]').remove();}else{this.removeErrorNodes(el);}}});});})();
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.