1"use strict";var Login=function(){var e,a=$(".ui.form"),r=$('#csrf input[type="hidden"]'),s=$("#captcha"),i=$("#msg"),t="Ú©ÙÙ
ÙâÙØ§Û Ø¹Ø¨ÙØ± با ÙÙ
ØªØ·Ø§Ø¨Ù ÙØ¯Ø§Ø±Ùد.",n="آدرس اÛÙ
ÛÙ Ù
عتبر ÙÛØ³Øª.",o="Ú©ÙÙ
Ù Ø¹Ø¨ÙØ± را ÙØ§Ø±Ø¯ Ú©ÙÛØ¯.",c="ÙÛÙØ¯ Ø§ÙØ²Ø§Ù
Û Ø±Ø§ پر Ú©ÙÛØ¯.",p="",d="",f=function(t){a.removeClass("loading"),m(t)},m=function(t){var e=(t.hasOwnProperty("responseJSON")?t.responseJSON:t).data;i.html(p).addClass("ui message ".concat(d)).show(),e.hasOwnProperty("csrf")&&null!==e.csrf&&r.val(e.csrf),e.hasOwnProperty("captcha")&&null!==e.captcha&&s.html(e.captcha)},u=function(t){var e=$(".cpatcha-img"),r=t.data,a=r.src,s=r.id;e.find("img").attr("src",a),$('input[name="captcha[id]"]').val(s)},l=function(t){var e=t.data;if(e.hasOwnProperty("messages")){var r=e.messages;$.each(r,function(t,e){$.each(e,function(t,e){$("<li />",{text:e}).appendTo(p)})})}},h=function(t){t.data;var e=t.hasOwnProperty("responseJSON")?t.responseJSON:t;if(d=e.status,0===e.message.length)return l(e);p=e.message,"success"===d&&function(t){var e=t.data;if(e&&e.hasOwnProperty("redirect")){var r=e.redirect;setTimeout(function(){window.location=r.url},r.delay)}else a.form("reset")}(e)},w=function(){a.form({fields:{email:{identifier:"email",rules:[{type:"email",prompt:n}]},text:{identifier:"text",rules:[{type:"empty",prompt:c}]},captcha:{identifier:"captcha-input",rules:[{type:"empty",prompt:c}]},password:{identifier:"password",rules:[{type:"empty",prompt:o}]},confirmPassword:{identifier:"confirmPassword",rules:[{type:"match[password]",prompt:t}]},confirm_password:{identifier:"confirm_password",rules:[{type:"match[password]",prompt:t}]},newPassword:{identifier:"newPassword",rules:[{type:"empty",prompt:o}]},confirmNewPassword:{identifier:"confirmNewPassword",rules:[{type:"match[newPassword]",prompt:t}]}}}).submit(function(t){t.preventDefault(),i.hide().removeAttr("class"),(e=$(t.currentTarget)).form("is valid")&&(e.addClass("loading"),p=$("<ul />",{class:"list"}),$.post(e.attr("action"),e.serialize(),h).fail(h).always(f))})};return{init:function(){w(),s.on("click",".refresh-captcha",function(t){$.post("".concat(usersPath,"/refreshcaptcha"),u)}),a.find('input[type="checkbox"]').attr("tabindex",0)}}}();Login.init();
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.