PageSourceSearch

https://www.3chi.com/wp-content/plugins/yith-woocommerce-points-an…/js/frontend-my-account.min.js?ver=4.18.0

js 3chi.com collected 2026-09-25 23:52:12 UTC 3,959 bytes, 1 lines download raw bytes

1jQuery((function(t){"use strict";t("body");var e={message:null,overlayCSS:{background:"#fff",opacity:.7},ignoreIfBlocked:!0};t('input[name="yith_birthday"]').length>0&&function(){let t=yith_ywpar_general.birthday_date_format.replace("yy","yyyy");new dtsel.DTS('input[name="yith_birthday"]',{dateFormat:t,localization:yith_ywpar_general.datepicker})}(),t(document).on("click",".ywpar_tabs_links",(function(e){var n,a,o,r=t(this).closest("#ywpar_tabs");n=e,a=r,o=t(this).data("target"),a.find(".ywpar_tabcontent").each((function(){t(this).hide(),t(this).removeClass("active")})),a.find(".ywpar_tabs_links").each((function(){t(this).removeClass("active")})),a.find("#"+o).addClass("active").fadeIn("slow"),n.currentTarget.className+=" active"})),t(".ywpar_tabs_links:first-child").each((function(){t(this).click()}));t(document).on("click",".ywpar-copy-to-clipboard__copy",(function(){var e,n=t(this).closest("#ywpar-copy-to-clipboard-wrapper"),a=n.find("input.ywpar-copy-to-clipboard__field"),o=n.find(".ywpar-copy-to-clipboard__tip"),r=n.data("tip-timeout");r&&clearTimeout(r),a.select(),document.execCommand("copy"),(e="getSelection"in window&&window.getSelection())?"empty"in e?e.empty():"removeAllRanges"in e&&e.removeAllRanges():"selection"in document&&document.selection.empty(),o.fadeIn(400),r=setTimeout((function(){o.fadeOut(400)}),1500),n.data("tip-timeout",r)}));var n=function(){var e=t(document).find("#ywpar_share_points_to_share"),n=parseInt(e.val()),a=parseInt(t(document).find("#ywpar-share-points__min").val()),o=parseInt(t(document).find("#ywpar-share-points__max").val());if(t(document).find("#share_points .error").hide(),e.removeClass("input-error"),n>o)return t(document).find("#share_points .error.max-exceed").show(),e.addClass("input-error"),!1;if(a>0&&n<a)return t(document).find("#share_points .error.min-exceed").show(),e.addClass("input-error"),!1;var r={points:n,action:"ywpar_calculate_worth_from_points_on_share_points",customer:t(document).find("#ywpar-share-points__customer").val(),security:t(document).find("#_wpnonce").val()};return t.post(yith_ywpar_general.ajax_url,r,(function(e){e.success?t(document).find(".worth-price").html(e.data.worth):window.alert(e.data.error)})),!0};t(document).on("keyup blur","#ywpar_share_points_to_share",(function(t){n()}));var a=1,o=function(){var e=t(document).find("#share_points .ywpar_share_points_table.my_account_orders tr:first-child td");a-=.02,e.css({backgroundColor:"rgba(255, 255, 255, "+a+")"}),a>=0&&setTimeout(o,50)};t(document).on("click","#ywpar-share-points__submit",(function(r){if(r.preventDefault(),n()){var i={points:t(document).find("#ywpar_share_points_to_share").val(),action:"ywpar_create_share_points_coupon",customer:t(document).find("#ywpar-share-points__customer").val(),security:t(document).find("#_wpnonce").val()},c=t(document).find("#ywpar-share-points");c.block(e),t.post(yith_ywpar_general.ajax_url,i,(function(n){n.success?(c.unblock(e),t.post(document.location.href,(function(e){if(""!=e){a=1;var n=t("<div></div>").html(e),r=n.find("#share_points"),i=n.find(".ywpar_myaccount_entry_info");t(document).find("#share_points").html(r.html()),t(document).find(".ywpar_myaccount_entry_info").html(i.html()),t(document).find("#share_points .ywpar_share_points_table.my_account_orders tr:first-child").addClass("highlight"),o()}}))):window.alert(n.data.error)}))}}))})),window.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelectorAll('[role="tab"]'),e=document.querySelector('[role="tablist"]');if(!t.length)return;t.forEach((t=>{t.addEventListener("click",(function(t){var e=new CustomEvent("ywpar_my_points_tab_clicked",{data:t});document.dispatchEvent(e)}))}));let n=0;e.addEventListener("keydown",(e=>{13===e.keyCode&&e.target.click(),39!==e.keyCode&&37!==e.keyCode||(t[n].setAttribute("tabindex",-1),39===e.keyCode?(n++,n>=t.length&&(n=0)):37===e.keyCode&&(n--,n<0&&(n=t.length-1)),t[n].setAttribute("tabindex",0),t[n].focus())}))}));

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.