PageSourceSearch

https://gumpla.jp/wp-content/plugins/wp-user-frontend/assets/js/frontend-form.min.js?4&ver=4.9.33

js gumpla.jp collected 2026-10-03 22:14:19 UTC 25,712 bytes, 481 lines download raw bytes

1!(function (a, b) {
2  (a.fn.listautowidth = function () {
3    return this.each(function () {
4      var b = a(this).width(),
5        c = b / a(this).children("li").length;
6      a(this)
7        .children("li")
8        .each(function () {
9          var b = a(this).outerWidth(!0) - a(this).width();
10          a(this).width(c - b);
11        });
12    });
13  }),
14    (b.WP_User_Frontend = {
15      init: function () {
16        this.enableMultistep(this),
17          a(".wpuf-form").on("click", "img.wpuf-clone-field", this.cloneField),
18          a(".wpuf-form").on("click", "img.wpuf-remove-field", this.removeField),
19          a(".wpuf-form").on("click", "a.wpuf-delete-avatar", this.deleteAvatar),
20          a(".wpuf-form").on("click", "a#wpuf-post-draft", this.draftPost),
21          a(".wpuf-form").on("click", "button#wpuf-account-update-profile", this.account_update_profile),
22          a(".wpuf-form-add").on("submit", this.formSubmit),
23          a("form#post").on("submit", this.adminPostSubmit),
24          a(".wpuf-form").on("step-change-fieldset", function (a, b, c) {
25            if (wpuf_plupload_items.length) for (var d = wpuf_plupload_items.length - 1; d >= 0; d--) wpuf_plupload_items[d].refresh();
26            if (wpuf_map_items.length) for (var d = wpuf_map_items.length - 1; d >= 0; d--) google.maps.event.trigger(wpuf_map_items[d].map, "resize"), wpuf_map_items[d].map.setCenter(wpuf_map_items[d].center);
27          }),
28          this.ajaxCategory(),
29          a(':submit[name="wpuf_cancel_subscription"]').click(function () {
30            if (!confirm("Are you sure you want to cancel your current subscription ?")) return !1;
31          });
32      },
33      check_pass_strength: function () {
34        var b = a("#pass1").val();
35        if ((a("#pass-strength-result").show(), a("#pass-strength-result").removeClass("short bad good strong"), !b)) return a("#pass-strength-result").html(" "), void a("#pass-strength-result").hide();
36        if (void 0 !== wp.passwordStrength)
37          switch (wp.passwordStrength.meter(b, wp.passwordStrength.userInputBlacklist(), b)) {
38            case 2:
39              a("#pass-strength-result").addClass("bad").html(pwsL10n.bad);
40              break;
41            case 3:
42              a("#pass-strength-result").addClass("good").html(pwsL10n.good);
43              break;
44            case 4:
45              a("#pass-strength-result").addClass("strong").html(pwsL10n.strong);
46              break;
47            case 5:
48              a("#pass-strength-result").addClass("short").html(pwsL10n.mismatch);
49              break;
50            default:
51              a("#pass-strength-result").addClass("short").html(pwsL10n.short);
52          }
53      },
54      enableMultistep: function (b) {
55        var c = this,
56          d = 0,
57          e = a(':hidden[name="wpuf_multistep_type"]').val();
58        if (null != e) {
59          if ((a("fieldset.wpuf-multistep-fieldset").find(".wpuf-multistep-prev-btn").first().remove(), a("fieldset.wpuf-multistep-fieldset").find(".wpuf-multistep-next-btn").last().remove(), a(".wpuf-form fieldset").removeClass("field-active").first().addClass("field-active"), "progressive" == e && 0 != a(".wpuf-form .wpuf-multistep-fieldset").length)) {
60            a("fieldset.wpuf-multistep-fieldset legend").first();
61            a(".wpuf-multistep-progressbar").html('<div class="wpuf-progress-percentage"></div>');
62            var f = a(".wpuf-multistep-progressbar"),
63              g = a(".wpuf-progress-percentage");
64            a(".wpuf-multistep-progressbar").progressbar({
65              change: function () {
66                g.text(f.progressbar("value") + "%");
67              },
68            }),
69              a(".wpuf-multistep-fieldset legend").hide();
70          } else
71            a(".wpuf-form").each(function () {
72              var b = a(this),
73                c = a(".wpuf-multistep-progressbar", b),
74                d = "";
75              c.addClass("wizard-steps"),
76                (d += '<ul class="wpuf-step-wizard">'),
77                a(".wpuf-multistep-fieldset", this).each(function () {
78                  (d += "<li>" + a.trim(a("legend", this).text()) + "</li>"), a("legend", this).hide();
79                }),
80                (d += "</ul>"),
81                c.append(d),
82                a(".wpuf-step-wizard li", c).first().addClass("active-step"),
83                a(".wpuf-step-wizard", c).listautowidth();
84            });
85          this.change_fieldset(d, e),
86            a("fieldset .wpuf-multistep-prev-btn, fieldset .wpuf-multistep-next-btn").click(function (f) {
87              if (a(this).hasClass("wpuf-multistep-next-btn")) {
88                0 != c.formStepCheck("", a(this).closest("fieldset")) && b.change_fieldset(++d, e);
89              } else a(this).hasClass("wpuf-multistep-prev-btn") && b.change_fieldset(--d, e);
90              return !1;
91            });
92        }
93      },
94      change_fieldset: function (b, c) {
95        var d = a("fieldset.wpuf-multistep-fieldset").eq(b);
96        a("fieldset.wpuf-multistep-fieldset").removeClass("field-active").eq(b).addClass("field-active"),
97          a(".wpuf-step-wizard li").each(function () {
98            a(this).index() <= b ? ("step_by_step" == c ? a(this).addClass("passed-wpuf-ms-bar") : a(".wpuf-ps-bar", this).addClass("passed-wpuf-ms-bar")) : "step_by_step" == c ? a(this).removeClass("passed-wpuf-ms-bar") : a(".wpuf-ps-bar", this).removeClass("passed-wpuf-ms-bar");
99          }),
100          a(".wpuf-step-wizard li").removeClass("wpuf-ms-bar-active active-step completed-step"),
101          a(".passed-wpuf-ms-bar").addClass("completed-step").last().addClass("wpuf-ms-bar-active"),
102          a(".wpuf-ms-bar-active").addClass("active-step");
103        var e = a("fieldset.wpuf-multistep-fieldset").eq(b).find("legend").text();
104        if (((e = a.trim(e)), "progressive" == c && 0 != a(".wpuf-form .wpuf-multistep-fieldset").length)) {
105          var f = (100 * (b + 1)) / a("fieldset.wpuf-multistep-fieldset").length,
106            f = Number(f.toFixed(2));
107          a(".wpuf-multistep-progressbar").progressbar({ value: f }), a(".wpuf-progress-percentage").text(e + " (" + f + "%)");
108        }
109        a(".wpuf-form").trigger("step-change-fieldset", [b, d]);
110      },
111      ajaxCategory: function () {
112        var b = ".category-wrap";
113        a(b).on("change", ".cat-ajax", function () {
114          (currentLevel = parseInt(a(this).parent().attr("level"))), WP_User_Frontend.getChildCats(a(this), "lvl", currentLevel + 1, b, "category");
115        });
116      },
117      getChildCats: function (b, c, d, e, f) {
118        (cat = a(b).val()),
119          (results_div = c + d),
120          (f = void 0 !== f ? f : "category"),
121          (field_attr = a(b).siblings("span").data("taxonomy")),
122          a.ajax({
123            type: "post",
124            url: wpuf_frontend.ajaxurl,
125            data: { action: "wpuf_get_child_cat", catID: cat, nonce: wpuf_frontend.nonce, field_attr: field_attr },
126            beforeSend: function () {
127              a(b).parent().parent().next(".loading").addClass("wpuf-loading");
128            },
129            complete: function () {
130              a(b).parent().parent().next(".loading").removeClass("wpuf-loading");
131            },
132            success: function (e) {
133              a(b)
134                .parent()
135                .nextAll()
136                .each(function () {
137                  a(this).remove();
138                }),
139                "" != e &&
140                  (a(b)
141                    .parent()
142                    .addClass("hasChild")
143                    .parent()
144                    .append('<div id="' + c + d + '" level="' + d + '"></div>'),
145                  b
146                    .parent()
147                    .parent()
148                    .find("#" + results_div)
149                    .html(e)
150                    .slideDown("fast"));
151            },
152          });
153      },
154      cloneField: function (b) {
155        b.preventDefault();
156        var c = a(this).closest("tr"),
157          d = c.clone();
158        d.find("input").val(""), d.find(":checked").attr("checked", ""), c.after(d);
159      },
160      removeField: function () {
161        var b = a(this).closest("tr");
162        b.siblings().addBack().length > 1 && b.remove();
163      },
164      adminPostSubmit: function (b) {
165        b.preventDefault();
166        var c = a(this);
167        if (WP_User_Frontend.validateForm(c)) return !0;
168      },
169      draftPost: function (b) {
170        b.preventDefault();
171        var c = a(this),
172          d = a(this).closest("form"),
173          e = d.serialize() + "&action=wpuf_draft_post",
174          f = d.find('input[type="hidden"][name="post_id"]').val(),
175          g = [];
176        a(".wpuf-rich-validation").each(function (b, c) {
177          var c = a(c),
178            d = c.data("id"),
179            e = c.data("name"),
180            f = a.trim(tinyMCE.get(d).getContent());
181          g.push(e + "=" + encodeURIComponent(f));
182        }),
183          (e = e + "&" + g.join("&")),
184          c.after(' <span class="wpuf-loading"></span>'),
185          a.post(wpuf_frontend.ajaxurl, e, function (b) {
186            if (void 0 === f) {
187              var e = '<input type="hidden" name="post_id" value="' + b.post_id + '">';
188              (e += '<input type="hidden" name="post_date" value="' + b.date + '">'), (e += '<input type="hidden" name="post_author" value="' + b.post_author + '">'), (e += '<input type="hidden" name="comment_status" value="' + b.comment_status + '">'), d.append(e);
189            }
190            var redirectUrl = "https://gumpla.jp/?p=" + b.post_id + "&preview=true";
191            window.onbeforeunload = null;
192            window.location.replace(redirectUrl);
193          });
194      },
195      account_update_profile: function (b) {
196        b.preventDefault();
197        var c = a(this).closest("form");
198        a.post(wpuf_frontend.ajaxurl, c.serialize(), function (a) {
199          a.success ? (c.find(".wpuf-error").hide(), c.find(".wpuf-success").show()) : (c.find(".wpuf-success").hide(), c.find(".wpuf-error").show(), c.find(".wpuf-error").text(a.data));
200        });
201      },
202      formStepCheck: function (a, b) {
203        var c = b;
204        c.find("input[type=submit]");
205        return (form_data = WP_User_Frontend.validateForm(c)), 0 == form_data && WP_User_Frontend.addErrorNotice(self, "bottom"), form_data;
206      },
207      formSubmit: function (c) {
208        c.preventDefault();
209        var d = a(this),
210          e = d.find("input[type=submit]");
211        (form_data = WP_User_Frontend.validateForm(d)),
212          form_data &&
213            (d.find("li.wpuf-submit").append('<span class="wpuf-loading"></span>'),
214            e.attr("disabled", "disabled").addClass("button-primary-disabled"),
215            a.post(wpuf_frontend.ajaxurl, form_data, function (c) {
216              if (c.success) a("body").trigger("wpuf:postform:success", c), 1 == c.show_message ? (d.before('<div class="wpuf-success">' + c.message + "</div>"), a("html, body").animate({ scrollTop: a(".wpuf-success").offset().top - 100 }, "fast")) : (b.location = c.redirect_to);
217              else {
218                if (void 0 !== c.type && "login" === c.type) return void (confirm(c.error) ? (b.location = c.redirect_to) : (e.removeAttr("disabled"), e.removeClass("button-primary-disabled"), d.find("span.wpuf-loading").remove()));
219                d.find(".g-recaptcha").length > 0 && grecaptcha.reset(), alert(c.error), e.removeAttr("disabled");
220              }
221              e.removeClass("button-primary-disabled"), d.find("span.wpuf-loading").remove();
222            }));
223      },
224      validateForm: function (b) {
225        var c = !1;
226        (error_type = ""),
227          WP_User_Frontend.removeErrors(b),
228          WP_User_Frontend.removeErrorNotice(b),
229          b.find('[data-required="yes"]:visible').each(function (b, d) {
230            var e = a(d).data("type");
231            switch (((j = ""), e)) {
232              case "rich":
233                var f = a(d).data("id");
234                "" === (j = a.trim(tinyMCE.get(f).getContent())) && ((c = !0), WP_User_Frontend.markError(d));
235                break;
236              case "textarea":
237              case "text":
238                "" === (j = a.trim(a(d).val())) && ((c = !0), (error_type = "required"), WP_User_Frontend.markError(d, error_type));
239                break;
240              case "password":
241              case "confirm_password":
242                var g = a(d).data("repeat");
243                if (((j = a.trim(a(d).val())), "" === j && ((c = !0), (error_type = "required"), WP_User_Frontend.markError(d, error_type)), g)) {
244                  var h = a('[data-type="confirm_password"]').eq(0);
245                  h.val() != j && ((c = !0), (error_type = "mismatch"), WP_User_Frontend.markError(h, error_type));
246                }
247                break;
248              case "select":
249                ((j = a(d).val()) && "-1" !== j) || ((c = !0), (error_type = "required"), WP_User_Frontend.markError(d, error_type));
250                break;
251              case "multiselect":
252                (null !== (j = a(d).val()) && 0 !== j.length) || ((c = !0), (error_type = "required"), WP_User_Frontend.markError(d, error_type));
253                break;
254              case "tax-checkbox":
255                var i = a(d).children().find("input:checked").length;
256                i || ((c = !0), (error_type = "required"), WP_User_Frontend.markError(d, error_type));
257                break;
258              case "radio":
259                var i = a(d).find("input:checked").length;
260                i || ((c = !0), (error_type = "required"), WP_User_Frontend.markError(d, error_type));
261                break;
262              case "file":
263                var i = a(d).find("ul").children().length;
264                i || ((c = !0), (error_type = "required"), WP_User_Frontend.markError(d, error_type));
265                break;
266              case "email":
267                var j = a(d).val();
268                "" !== j ? WP_User_Frontend.isValidEmail(j) || ((c = !0), (error_type = "validation"), WP_User_Frontend.markError(d, error_type)) : "" === j && ((c = !0), (error_type = "required"), WP_User_Frontend.markError(d, error_type));
269                break;
270              case "url":
271                var j = a(d).val();
272                "" !== j && (WP_User_Frontend.isValidURL(j) || ((c = !0), (error_type = "validation"), WP_User_Frontend.markError(d, error_type)));
273            }
274          });
275        var d = b.find('[data-required="yes"][name="google_map"]');
276        if (d) {
277          "," == a(d).val() && ((c = !0), (error_type = "required"), WP_User_Frontend.markError(d, error_type));
278        }
279        if (c) return WP_User_Frontend.addErrorNotice(b, "end"), !1;
280        var e = b.serialize(),
281          f = [];
282        return (
283          a(".wpuf-rich-validation", b).each(function (b, c) {
284            var c = a(c),
285              d = c.data("id"),
286              e = c.data("name"),
287              g = a.trim(tinyMCE.get(d).getContent());
288            f.push(e + "=" + encodeURIComponent(g));
289          }),
290          (e = e + "&" + f.join("&"))
291        );
292      },
293      addErrorNotice: function (b, c) {
294        "bottom" == c
295          ? a(".wpuf-multistep-fieldset:visible").append('<div class="wpuf-errors">' + wpuf_frontend.error_message + "</div>")
296          : a(b)
297              .find("li.wpuf-submit")
298              .append('<div class="wpuf-errors">' + wpuf_frontend.error_message + "</div>");
299      },
300      removeErrorNotice: function (b) {
301        a(b).find(".wpuf-errors").remove();
302      },
303      markError: function (b, c) {
304        var d = "";
305        if ((a(b).closest("li").addClass("has-error"), c)) {
306          switch (((d = a(b).closest("li").data("label")), c)) {
307            case "required":
308            case "mismatch":
309            case "validation":
310              d = d + " " + error_str_obj[c];
311          }
312          a(b).siblings(".wpuf-error-msg").remove(), a(b).after('<div class="wpuf-error-msg">' + d + "</div>");
313        }
314        a(b).focus();
315      },
316      removeErrors: function (b) {
317        a(b).find(".has-error").removeClass("has-error"), a(".wpuf-error-msg").remove();
318      },
319      isValidEmail: function (a) {
320        return new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(a);
321      },
322      isValidURL: function (a) {
323        return new RegExp("^(http://www.|https://www.|ftp://www.|www.|http://|https://){1}([0-9A-Za-z]+.)").test(a);
324      },
325      insertImage: function (b, c) {
326        if (a("#" + b).length) {
327          var d = new plupload.Uploader({ runtimes: "html5,html4", browse_button: b, container: "wpuf-insert-image-container", multipart: !0, multipart_params: { action: "wpuf_insert_image", form_id: a("#" + b).data("form_id") }, multiple_queues: !1, multi_selection: !1, urlstream_upload: !0, file_data_name: "wpuf_file", max_file_size: "20mb", url: wpuf_frontend_upload.plupload.url, flash_swf_url: wpuf_frontend_upload.flash_swf_url, filters: [{ title: "Allowed Files", extensions: "jpg,jpeg,gif,png,bmp" }] });
328          d.bind("Init", function (a, b) {}),
329            d.bind("FilesAdded", function (b, c) {
330              var d = a("#wpuf-insert-image-container");
331              a.each(c, function (a, b) {
332                d.append('<div class="upload-item" id="' + b.id + '"><div class="progress progress-striped active"><div class="bar"></div></div><div class="filename original"><b><img src="/wp-content/themes/gush/img/icon_loading.gif"></b>アップロード中(しばらくお待ちください)</div></div>');
333              }),
334                b.refresh(),
335                b.start();
336            }),
337            d.bind("QueueChanged", function (a) {
338              d.start();
339            }),
340            d.bind("UploadProgress", function (b, c) {
341              var d = a("#" + c.id);
342              a(".bar", d).css({ width: c.percent + "%" }), a(".percent", d).html(c.percent + "%");
343            }),
344            d.bind("Error", function (a, b) {
345              alert("Error #" + b.code + ": " + b.message);
346            }),
347            d.bind("FileUploaded", function (b, d, e) {
348              if ((a("#" + d.id).remove(), "error" !== e.response)) {
349                if ("undefined" != typeof tinyMCE)
350                  if ("function" != typeof tinyMCE.execInstanceCommand) {
351                    var f = tinyMCE.get("post_content_" + c);
352                    null !== f && f.insertContent(e.response);
353                  } else tinyMCE.execInstanceCommand("post_content_" + c, "mceInsertContent", !1, e.response);
354                var g = a("#post_content_" + c);
355                g.val(g.val() + e.response);
356              } else alert("Something went wrong");
357            }),
358            d.init();
359        }
360      },
361      deleteAvatar: function (b) {
362        b.preventDefault(),
363          confirm(a(this).data("confirm")) &&
364            a.post(wpuf_frontend.ajaxurl, { action: "wpuf_delete_avatar", _wpnonce: wpuf_frontend.nonce }, function () {
365              a(b.target).parent().remove(), a("[id^=wpuf-avatar]").css("display", "");
366            });
367      },
368      editorLimit: {
369        bind: function (b, c, d) {
370          "no" === d
371            ? (a("textarea#" + c).keydown(function (a) {
372                WP_User_Frontend.editorLimit.textLimit.call(this, a, b);
373              }),
374              a("input#" + c).keydown(function (a) {
375                WP_User_Frontend.editorLimit.textLimit.call(this, a, b);
376              }),
377              a("textarea#" + c).on("paste", function (c) {
378                var d = a(this);
379                setTimeout(function () {
380                  WP_User_Frontend.editorLimit.textLimit.call(d, c, b);
381                }, 100);
382              }),
383              a("input#" + c).on("paste", function (c) {
384                var d = a(this);
385                setTimeout(function () {
386                  WP_User_Frontend.editorLimit.textLimit.call(d, c, b);
387                }, 100);
388              }))
389            : setTimeout(function () {
390                tinyMCE.get(c).onKeyDown.add(function (a, c) {
391                  WP_User_Frontend.editorLimit.tinymce.onKeyDown(a, c, b);
392                }),
393                  tinyMCE.get(c).onPaste.add(function (a, c) {
394                    setTimeout(function () {
395                      WP_User_Frontend.editorLimit.tinymce.onPaste(a, c, b);
396                    }, 100);
397                  });
398              }, 1e3);
399        },
400        tinymce: {
401          getStats: function (a) {
402            var b = a.getBody(),
403              c = tinymce.trim(b.innerText || b.textContent);
404            return { chars: c.length, words: c.split(/[\w\u2019\'-]+/).length };
405          },
406          onKeyDown: function (b, c, d) {
407            var e = WP_User_Frontend.editorLimit.tinymce.getStats(b).words - 1;
408            d && a(".mce-path-item.mce-last", b.container).html("Word Limit : " + e + "/" + d), d && e > d && (WP_User_Frontend.editorLimit.blockTyping(c), jQuery(".mce-path-item.mce-last", b.container).html(wpuf_frontend.word_limit));
409          },
410          onPaste: function (a, b, c) {
411            var d = a.getContent().split(" ").slice(0, c).join(" ");
412            a.setContent(d), WP_User_Frontend.editorLimit.make_media_embed_code(d, a);
413          },
414        },
415        textLimit: function (b, c) {
416          var d = a(this),
417            e = d.val().split(" ");
418          c && e.length > c ? (d.closest(".wpuf-fields").find("span.wpuf-wordlimit-message").html(wpuf_frontend.word_limit), WP_User_Frontend.editorLimit.blockTyping(b)) : d.closest(".wpuf-fields").find("span.wpuf-wordlimit-message").html(""), "paste" === b.type && d.val(e.slice(0, c).join(" "));
419        },
420        blockTyping: function (b) {
421          -1 !== a.inArray(b.keyCode, [46, 8, 9, 27, 13, 110, 190, 189]) || (65 == b.keyCode && !0 === b.ctrlKey) || (b.keyCode >= 35 && b.keyCode <= 40) || (b.preventDefault(), b.stopPropagation());
422        },
423        make_media_embed_code: function (b, c) {
424          a.post(ajaxurl, { action: "make_media_embed_code", content: b }, function (a) {
425            c.setContent(c.getContent() + c.setContent(a));
426          });
427        },
428      },
429    }),
430    a(function () {
431      if (
432        (WP_User_Frontend.init(),
433        a("ul.wpuf-payment-gateways").on("click", "input[type=radio]", function (b) {
434          a(".wpuf-payment-instruction").slideUp(250), a(this).parents("li").find(".wpuf-payment-instruction").slideDown(250);
435        }),
436        a("ul.wpuf-payment-gateways li").find("input[type=radio]").is(":checked"))
437      ) {
438        a("ul.wpuf-payment-gateways li").find("input[type=radio]:checked").parents("li").find(".wpuf-payment-instruction").slideDown(250);
439      } else a("ul.wpuf-payment-gateways li").first().find("input[type=radio]").click();
440    }),
441    a(function () {
442      a('input[name="first_name"], input[name="last_name"]').on("change keyup", function () {
443        var b,
444          c = a
445            .makeArray(
446              a('input[name="first_name"], input[name="last_name"]').map(function () {
447                if ((b = a(this).val())) return b;
448              })
449            )
450            .join(" ");
451        a('input[name="display_name"]').val(c);
452      });
453    }),
454    a(function (a) {
455      a('.wpuf-form-add input[name="dokan_store_name"]').on("focusout", function () {
456        var b = a(this)
457          .val()
458          .toLowerCase()
459          .replace(/-+/g, "")
460          .replace(/\s+/g, "-")
461          .replace(/[^a-z0-9-]/g, "");
462        a('input[name="shopurl"]').val(b), a("#url-alart").text(b), a('input[name="shopurl"]').focus();
463      }),
464        a('.wpuf-form-add input[name="shopurl"]').keydown(function (b) {
465          a(this).val();
466          -1 !== a.inArray(b.keyCode, [46, 8, 9, 27, 13, 91, 109, 110, 173, 189, 190]) || (65 == b.keyCode && !0 === b.ctrlKey) || (b.keyCode >= 35 && b.keyCode <= 39) || ((b.shiftKey || ((b.keyCode < 65 || b.keyCode > 90) && (b.keyCode < 48 || b.keyCode > 57))) && (b.keyCode < 96 || b.keyCode > 105) && b.preventDefault());
467        }),
468        a('.wpuf-form-add input[name="shopurl"]').keyup(function (b) {
469          a("#url-alart").text(a(this).val());
470        }),
471        a('.wpuf-form-add input[name="shopurl"]').on("focusout", function () {
472          var b = a(this),
473            c = { action: "shop_url", url_slug: b.val(), _nonce: dokan.nonce };
474          "" !== b.val() &&
475            a.post(dokan.ajaxurl, c, function (b) {
476              0 == b ? (a("#url-alart").removeClass("text-success").addClass("text-danger"), a("#url-alart-mgs").removeClass("text-success").addClass("text-danger").text(dokan.seller.notAvailable)) : (a("#url-alart").removeClass("text-danger").addClass("text-success"), a("#url-alart-mgs").removeClass("text-danger").addClass("text-success").text(dokan.seller.available));
477            });
478        }),
479        a(".wpuf-form-add #wpuf-map-add-location").attr("name", "find_address");
480    });
481})(jQuery, window);

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.