"use strict";$(function(){var r,t=$(".basic-ratings"),i=$(".custom-svg-ratings"),a=$(".multi-color-ratings"),n=$(".half-star-ratings"),s=$(".full-star-ratings"),e=$(".read-only-ratings"),l=$(".onset-event-ratings"),o=$(".onChange-event-ratings"),g=$(".methods-ratings"),c=$(".btn-initialize"),h=$(".btn-destroy"),d=$(".btn-get-rating"),u=$(".btn-set-rating");t&&t.rateYo({rating:3.6,rtl:isRtl}),i&&i.rateYo({rating:3.2,starSvg:"<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z'-></path>",rtl:isRtl}),a&&a.rateYo({rtl:isRtl,multiColor:{startColor:"#fdb528",endColor:"#fdb528"}}),n&&n.rateYo({rtl:isRtl,rating:2}),s&&s.rateYo({rtl:isRtl,rating:2}),e&&e.rateYo({rating:2,rtl:isRtl}),l&&l.rateYo({rtl:isRtl}).on("rateyo.set",function(t,r){alert("The rating is set to "+r.rating+"!")}),o&&o.rateYo({rtl:isRtl}).on("rateyo.change",function(t,r){r=r.rating;$(this).parent().find(".counter").text(r)}),g&&(r=g.rateYo({rtl:isRtl}),c&&c.on("click",function(){r.rateYo({rtl:isRtl})}),h&&h.on("click",function(){r.hasClass("jq-ry-container")?r.rateYo("destroy"):window.alert("Please Initialize Ratings First")}),d&&d.on("click",function(){var t;r.hasClass("jq-ry-container")?(t=r.rateYo("rating"),window.alert("Current Ratings are "+t)):window.alert("Please Initialize Ratings First")}),u)&&u.on("click",function(){r.hasClass("jq-ry-container")?r.rateYo("rating",1):window.alert("Please Initialize Ratings First")})});