PageSourceSearch

https://www.archaeological.org/wp-content/plugins/woocommerce-memb…/wc-memberships-frontend.min.js?ver=1.30.0

js archaeological.org collected 2026-09-24 08:32:44 UTC 4,557 bytes, 1 lines download raw bytes

1jQuery(function(c){var n=null!==window.wc_memberships_frontend?window.wc_memberships_frontend:{},r={},f=[];function s(){c.fn.select2&&c(".wc-memberships-member-profile-field select").not(".select2-hidden-accessible").select2().addClass("select2-initialized");var e=c(".wc-memberships-member-profile-field"),s=c(".form-row");s.not(e).find(".woocommerce-input-wrapper :input").on("keydown click focus",function(){e.find(".description").prop("aria-hidden",!0).slideUp(250)}),e.each(function(){var i=c(this),e=i.find(".description");i.find('.woocommerce-input-wrapper input[type="checkbox"], .woocommerce-input-wrapper input[type="radio"]').off(),e.hide(),i.hasClass("wc-memberships-member-profile-field wc-memberships-member-profile-field-input-file")?i.find("label, .wc-memberships-profile-field-input-file-dropzone").on("click",function(){l(i,s)}):i.hasClass("wc-memberships-member-profile-field-input-multiselect")?c(this).find("label, .select2-selection").on("click change",function(){l(i,s)}):(i.hasClass("wc-memberships-member-profile-field-input-select")&&i.find(".select2-selection").on("click change",function(){l(i,s)}),i.find("input, textarea, select, label").not(".select2-selection").on("keydown click",function(){if(c(this).is("label")){var e=c(this).attr("for"),e=c("#"+e);if(e.is(":text")||e.is("textarea")||e.is("select"))return}l(i,s)}))}),c(".wc-memberships-member-profile-field-input-file").each(function(){var r=c(this),l=r.find(".wc-memberships-profile-field-input-file-dropzone"),o=r.find(".wc-memberships-profile-field-input-file-preview"),t=r.find(".wc-memberships-profile-field-input-file-upload-progress"),a=r.find(".wc-memberships-profile-field-input-file-feedback"),d=r.find('input[type="hidden"]'),i=d.data("slug"),e={url:n.ajax_url,browse_button:l[0],drop_element:l[0],multi_selection:1<n.max_files,multipart_params:{action:"wc_memberships_upload_profile_field_file",security:n.nonces.profile_field_upload_file,profile_field:i},filters:{max_file_size:n.max_file_size,mime_types:n.mime_types}},s=new plupload.Uploader(e);s.init(),f.push(s),s.bind("Error",function(e,i){var s=null;try{s=i.response?JSON.parse(i.response):null}catch(e){s=null}return s=s&&s.data?s.data:n.i18n.upload_error.replace("%1$s",i.code).replace("%2$s",i.message),a.html(s).removeClass("hide"),l.removeClass("disabled"),t.addClass("hide")}),s.bind("FilesAdded",function(e,i){return a.html("").addClass("hide"),l.addClass("disabled"),t.removeClass("hide"),s.start()}),s.bind("UploadProgress",function(e,i){return t.find(".bar").css("width",i.percent+"%")}),s.bind("FileUploaded",function(e,i,s){var n=null;try{n=JSON.parse(s.response)}catch(e){n=null}if(n&&!1!==n.success)return c("#woocommerce-register-nonce").val(n.security),d.val(n.id).trigger("change"),o.removeClass("hide").find("a.file").prop("href",n.url).text(n.title),l.addClass("hide").removeClass("disabled"),t.addClass("hide").find(".bar").css("width",0),r.find(".moxie-shim").addClass("hide");t.addClass("hide"),l.removeClass("disabled"),a.html(n&&n.data?n.data:s.response).removeClass("hide")}),r.find("a.remove-file").on("click",function(e){e.preventDefault(),o.addClass("hide").find("a.file").prop("href","").text(""),l.removeClass("hide disabled");e={action:"wc_memberships_remove_profile_field_file",security:n.nonces.profile_field_remove_file,file:d.val(),profile_field:i};return c.post(n.ajax_url,e,function(e){e&&e.success||console.log(e)}).always(function(){d.val("").trigger("change")}),r.find(".moxie-shim").removeClass("hide")})})}function l(e,i){var s=e.find("span.description");s.is(":visible")||s.prop("aria-hidden",!1).slideDown(250),i.not(e).find(".description").prop("aria-hidden",!0).slideUp(250)}function o(e,i){e.find(".woocommerce-variation-add-to-cart").prepend(i),s()}function t(e){var i,e=e.find(".wc-memberships-profile-fields-wrapper");e.length&&(f.length&&f.forEach(function(e){e.destroy()}),(i=e.find(".wc-memberships-member-profile-field select.select2-initialized")).length&&i.select2("destroy"),e.remove())}c("form.variations_form").on("show_variation wcm_show_variation",function(e){var i=c('input[name="variation_id"]').val(),s=c(e.currentTarget);if(t(s),!i)return!0;
1i in r?o(s,r[i]):(s.block({message:null}),c.post(n.ajax_url,{action:"wc_memberships_get_variation_profile_fields",security:n.nonces.get_product_profile_fields,product_id:i},function(e){e.success&&e.data.length&&(o(s,e.data),r[i]=e.data)}).always(function(){s.unblock()}))}).on("woocommerce_variation_has_changed",function(e){c('input[name="variation_id"]').val()||t(c(e.currentTarget))}),s()});

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.