1(function(e){e("#params").data("device");var s="undefined"!==e("#params").data("webac")&&parseInt(e("#params").data("webac"),10);e.fn.dsFormValidator=function(a){var t={text_rules:{},datetime_rules:{},original_rules:{},closest_class:""},i=e.extend(t,a),r=new DsDateTimeValidator(i);return this.each(function(a){var t=e(this);void 0!==e.validator.defaults.ds_original_rules&&e.extend(e.validator.defaults.ds_original_rules,i.original_rules),void 0===e.validator.defaults.ds_text_rules&&(e.validator.setDefaults({ds_text_rules:i.text_rules,ds_datetime_rules:i.datetime_rules,ds_original_rules:i.original_rules,ds_closest_class:i.closest_class,errorClass:"a-valid-msg",errorElement:"span",ignore:".ignore",highlight:function(s,a,t){var i=e(s).closest("."+e.validator.defaults.ds_closest_class),r=e(s).attr("type");if("checkbox"===r||"radio"===r){var l=e(s).attr("name"),d=l.replace(/\[\]$/,""),o=e('input[name^="'+d+'"]'),n=o.filter(":checked").length>0;n||i.addClass("valid-error").removeClass("valid-success")}else i.addClass("valid-error").removeClass("valid-success");setTimeout(function(){e(s).filter("[data-rule-dstext='email2']").closest(".form-item").addClass("valid-error").removeClass("valid-success")},100)},unhighlight:function(s,a,t){var i=e(s).closest("."+e.validator.defaults.ds_closest_class);i.removeClass("valid-error");var r=e(s).attr("type"),l=e(s).attr("name");if("checkbox"===r||"radio"===r){var d=l.replace(/\[\]$/,""),o=e('input[name^="'+d+'"]'),n=o.filter(":checked").length>0;n?i.addClass("valid-success"):i.removeClass("valid-success").addClass("valid-error")}else e(s).val()&&i.addClass("valid-success")},showErrors:function(s,i,r){for(this.defaultShowErrors(),e(this.toShow).each(function(){$_this=e(this);var s=$_this.position().top-7;$_this.css("top",s+"px")}),t.hasClass("form-submit")&&t.find(".valid-item-msg").remove(),a=0;i[a];a++){var l=this.errorList[a];if(void 0!==l&&(e("span.a-valid-msg[for='"+l.element.id+"']").length||e("span.a-valid-msg[for='"+l.element.name+"']").length)){var d=e("span.a-valid-msg[for='"+l.element.id+"']").length?e("span.a-valid-msg[for='"+l.element.id+"']"):e("span.a-valid-msg[for='"+l.element.name+"']");"required"==l.method||"dsdatetime"==l.method||"å¿
é "==l.message?d.hide():d.show()}if(t.hasClass("form-submit")){var o=e("<div class='valid-item-msg "+l.method+"'></div>");if("required"!=l.method&&"dsdatetime"!=l.method||!e("#bg").hasClass("lang-ja")){if("equalTo"==l.method&&e(l.element).closest(".cell2").find(".valid-item-msg.dstext").length)continue;o.append(l.message)}else o.append(l.message+"é
ç®ãå
¥åããã¦ãã¾ãã");e(l.element).length&&e(l.element).before(o)}}}}),e.validator.addMethod("dstext",function(s,a,t){var i=e.validator.defaults.ds_text_rules,r=i[t],l=s.match(r.regex);return l||(e.validator.messages.dstext=r.msg),this.optional(a)||l},"error..."),e.validator.addMethod("dsoriginal",function(s,a,t){var i=e.validator.defaults.ds_original_rules,r=i[t],l=s.match(r.regex);return l||(e.validator.messages.dsoriginal=r.msg),this.optional(a)||l},"error..."),r.validatorAddMethod()),t.find("."+e.validator.defaults.ds_closest_class).each(function(){var s=e(this),a=s.find("input[type='checkbox']");if(a.length)for(var t=a.eq(0).attr("class").split(" "),i=0,l=t.length;i<l;i++)null!==t[i].match(/^ds-check-required[0-9]+$/)&&e.validator.addClassRules(t[i],{required:!0});var d=s.find("select.ds-datetime, input.ds-datetime-picker");if(d.length){var o=s.find(".ds-datetime-valid").eq(0);d.on("change",function(){if(e(this).hasClass("ds-datetime-picker")){var s=e(this).closest(".form-item").find(".ds-datetime-valid").data("rule-dsdatetime")?e(this).closest(".form-item").find(".ds-datetime-valid").data("rule-dsdatetime"):"Y-m-d H:i";switch(s){case"Y-m-d H:i":case"Y-m-d":case"Y-m":var a=e(this).val();break;case"m-d":a="-"+e(this).val()+" :";break;case"H:i":a="-- "+e(this).val()}}else a=r.htmlToString(e(this));o.val(a).trigger("focusout")}).eq(0).trigger("change")}var n=s.find(".selectbox-select2");
1n.length&&n.on("select2:select",function(s){e(this).valid()})}),t.valid(),t.on("submit",function(){const e=t.find(".valid-error:visible").first();e.length&&window.scrollTo({top:e.offset().top-100,behavior:"auto"})}),s&&t.submit(function(){if(t.addClass("form-submit"),t.find(".valid-error").length){var e=t.find(".form-err-msg.webac-msg").eq(0);e.length&&e.show().focus(),t.valid()}setTimeout(function(){t.removeClass("form-submit")},500)})})}})(jQuery);
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.