1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2473],{20876:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth",function(){return n(78701)}])},36157:function(e,t,n){"use strict";var s=n(85893),a=n(67294);t.Z=(0,a.memo)(function(e){let{text:t,style:n}=e;return t?(0,s.jsx)("span",{className:"input-item-error",style:n,children:t}):null})},12677:function(e,t,n){"use strict";var s=n(85893),a=n(89552),i=n(67294);t.Z=(0,i.memo)(function(e){let{children:t,title:n,onClick:r,className:o,loading:l,disabled:u}=e,c=(0,i.useCallback)(e=>{u||r(e)},[r,u]);return(0,s.jsxs)("div",{onClick:c,className:[o,u?"btn__disabled":""].join(" "),style:{display:"flex",alignItems:"center",padding:0},children:[n||t,l&&(0,s.jsx)("div",{style:{marginLeft:8,marginRight:4,marginTop:4},children:(0,s.jsx)(a.Z,{})})]})})},66875:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var s,a,i=n(85893),r=n(67294),o=n(36157),l=n(76627),u=n.n(l);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}).apply(null,arguments)}var d=function(e){return r.createElement("svg",c({width:22,height:14,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),s||(s=r.createElement("path",{d:"M11 .443c-4.203 0-8.015 2.3-10.828 6.035a.87.87 0 0 0 0 1.04c2.813 3.74 6.625 6.039 10.828 6.039 4.203 0 8.015-2.3 10.828-6.035a.87.87 0 0 0 0-1.04C19.015 2.742 15.203.442 11 .442Zm.302 11.174a4.63 4.63 0 0 1-4.92-4.919 4.638 4.638 0 0 1 4.316-4.315 4.63 4.63 0 0 1 4.92 4.918c-.15 2.3-2.017 4.168-4.316 4.316Zm-.14-2.133a2.487 2.487 0 0 1-2.646-2.646 2.502 2.502 0 0 1 2.326-2.327 2.488 2.488 0 0 1 2.647 2.646 2.502 2.502 0 0 1-2.327 2.327Z",fill:"#595959"})))};function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}).apply(null,arguments)}var f=function(e){return r.createElement("svg",p({width:22,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=r.createElement("path",{d:"M18.852 1.148a.733.733 0 0 0-1.037 0l-2.328 2.328A10.612 10.612 0 0 0 11 2.4C5.04 2.4.353 8.296.156 8.547a.733.733 0 0 0 0 .905 20.33 20.33 0 0 0 5.004 4.351l-2.012 2.012a.732.732 0 1 0 1.037 1.037L18.852 2.185a.733.733 0 0 0 0-1.037ZM7.333 9A3.671 3.671 0 0 1 11 5.333a3.588 3.588 0 0 1 2.002.628L7.962 11A3.587 3.587 0 0 1 7.332 9ZM21.844 8.547a20.49 20.49 0 0 0-3.752-3.528l-3.477 3.476c.03.167.046.336.051.505A3.671 3.671 0 0 1 11 12.666a3.572 3.572 0 0 1-.505-.05l-2.493 2.492c.968.317 1.98.483 2.998.492 5.959 0 10.647-5.897 10.844-6.148a.733.733 0 0 0 0-.905Z",fill:"#595959"})))};let h=(0,r.forwardRef)((e,t)=>{var n;let{error:s,label:a,classNameWrap:l,styleContainer:c,modalBlock:p,prefix:h}=e,[m,v]=(0,r.useState)(null==e?void 0:e.type);return(0,i.jsxs)("div",{className:"input-item",style:null!=c?c:{},children:[a&&(0,i.jsx)("div",{className:"input-item__title",children:a}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"d-flex align-items-center input-item__wrap ".concat(null!=l?l:"").concat(s?" input-item-error":""),children:[(null==e?void 0:e.type)==="password"&&(0,i.jsx)("div",{className:"input-item_password",onClick:()=>v(e=>"text"===e?"password":"text"),children:"text"===m?(0,i.jsx)(f,{}):(0,i.jsx)(d,{})}),h,(0,i.jsx)(u(),{...e,inputRef:e=>{t||(t=e)},className:s?"error":void 0,type:null!=m?m:"text",value:null!==(n=null==e?void 0:e.value)&&void 0!==n?n:""}),p]}),(0,i.jsx)(o.Z,{text:s})]})]})});var m=(0,r.memo)(h)},78701:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var s=n(85893),a=n(11163),i=n(50319),r=n(67294),o=n(75600),l=n(87445),u=n(15580),c=n(58829),d=n(77079),p=n(12677),f=n(66875),h=n(26250),m=(0,r.memo)(function(){var e,t,n;let m=(0,c.T)(),v=(0,a.useRouter)(),[g,w]=(0,r.useState)({}),[_,k]=(0,r.useState)({email:"",password:""}),[b,{loading:x,error:C}]=(0,i.D)(l.H4,{update(e,t){var n,s,a;let{data:i}=t;e.writeQuery({query:u.JA,data:{user:{...i.userSignIn}}}),v.push(null!==(a=null===(s=v.query)||void 0===s?void 0:null===(n=s.refer)||void 0===n?void 0:n.toString())&&void 0!==a?a:"/"),setTimeout(()=>{(0,o.fs)({isShow:!0,sitterText:"profile_not_shown_search",ownerText:"owner_profile_not_activated"})},3e3)}}),y=(0,r.useCallback)(e=>{let{target:{name:t,value:n}}=e;k(e=>({...e,[t]:n.replace(" ","")}))},[]),S=(0,r.useCallback)(async()=>{let e={};if(Object.entries(_).forEach(t=>{let[n,s]=t;(null==d?void 0:d[n])&&(e[n]=d[n](s))}),Object.values(e).some(e=>!(null==e?void 0:e.isValidate))){w(e);return}await b({variables:{input:_}})},[_,b]);return(0,r.useEffect)(()=>{let e=e=>{("Enter"===e.code||"NumpadEnter"===e.code)&&(e.preventDefault(),S())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[_]),(0,s.jsxs)("div",{className:"form",children:[(0,s.jsx)(f.Z,{label:m("email"),error:(null==g?void 0:null===(e=g.email)||void 0===e?void 0:e.message)||(null===(t=String(C))||void 0===t?void 0:t.includes("Received status code 401"))?m("wrong_login_or_password"):void 0,type:"text",placeholder:m("placeholder_your_email"),value:_.email,name:"email",onChange:y,maxLength:"250"}),(0,s.jsx)(f.Z,{value:_.password,label:m("password"),error:null==g?void 0:null===(n=g.password)||void 0===n?void 0:n.message,type:"password",placeholder:m("placeholder_your_password"),name:"password",onChange:y,maxLength:"32",minLength:"8"}),(0,s.jsx)("div",{className:"d-flex justify-content-end sign-up__forgot",children:(0,s.jsx)(h.Z,{href:"/auth/recovery",className:"d-block sign-up__forgot-link",children:m("forgot_password_link")})}),(0,s.jsx)(p.Z,{disabled:""===_.email||""===_.password,loading:x,children:m("sign_in"),onClick:S,className:"btn btn__sign-up btn__blue"})]})}),v=n(61925),g=n(50013),w=n(18676),_=n(7588),k=n(65243);function b(){var e,t;let n=(0,a.useRouter)(),{query:i}=(0,k.Z)(),r=(0,c.T)();(0,_.a)({redirectTo:null!==(t=null==n?void 0:null===(e=n.query)||void 0===e?void 0:e.refer)&&void 0!==t?t:"/",redirectIfFound:!0});let o=(null==i?void 0:i.refer)?"?page=type&refer=".concat(i.refer):"?page=type";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(w.Z,{title:"FanClaws | ".concat(r("sign_in"))}),(0,s.jsx)(g.Z,{}),(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100vh"},children:[(0,s.jsx)("main",{className:"sign-up-page",children:(0,s.jsx)("div",{className:"container",children:(0,s.jsx)("div",{className:"row",children:(0,s.jsx)("div",{className:"col-12 offset-lg-3 col-lg-6",children:(0,s.jsxs)("div",{className:"sign-up__card",children:[(0,s.jsxs)("div",{className:"sign-up__card-container",children:[(0,s.jsx)("h1",{children:r("sign_in")}),(0,s.jsxs)("div",{className:"social",children:[(0,s.jsx)("a",{href:"#",onClick:e=>{e.preventDefault();let t="width=860, height=470, top="+(screen.height-470)/2+",left="+(screen.width-860)/2+", resizable=yes, scrollbars=no, status=yes";window.open("".concat("https://fanclaws.com","/api/auth/facebook"),"_self",t)},className:"btn btn__sign-up btn__sign-up_facebook",children:(0,s.jsx)("span",{className:"icon icon-facebook"})}),(0,s.jsx)("a",{onClick:e=>{e.preventDefault();let t="width=860, height=470, top="+(screen.height-470)/2+",left="+(screen.width-860)/2+", resizable=yes, scrollbars=no, status=yes";window.open("".concat("https://fanclaws.com","/api/auth/apple"),"_self",t)},href:"#",className:"btn btn__sign-up btn__sign-up_apple",children:(0,s.jsx)("span",{className:"icon icon-apple"})}),(0,s.jsx)("a",{href:"#",onClick:e=>{e.preventDefault();let t="width=860, height=470, top="+(screen.height-470)/2+",left="+(screen.width-860)/2+", resizable=yes, scrollbars=no, status=yes";window.open("".concat("https://fanclaws.com","/api/auth/google"),"_self",t)},className:"btn btn__sign-up btn__sign-up_google",children:(0,s.jsx)("span",{className:"icon icon-google"})})]}),(0,s.jsx)("div",{className:"sign-up__line"}),(0,s.jsx)(m,{}),(0,s.jsx)("div",{className:"sign-up__small-text mt-3",dangerouslySetInnerHTML:{__html:r("auth_privacy_policy",{replace:["<a href='/user-agreement'>","</a>","<a href='/privacy-policy'>","</a>"]})}})]}),(0,s.jsxs)("div",{className:"sign-up__card-bottom",children:[(0,s.jsx)("div",{children:r("dont_have_account")}
1),(0,s.jsx)("div",{className:"d-flex justify-content-center",children:(0,s.jsx)(h.Z,{href:"/auth/sign-up".concat(o),className:"btn btn__yellow",children:r("btn_text_sign_up")})})]})]})})})})}),(0,s.jsx)(v.Z,{})]})]})}},44100:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});let s=e=>0===e.length?{isValidate:!1,message:"required_field"}:e.length<4?{isValidate:!1,message:"wrong_format"}:{isValidate:!0,message:""}},63285:function(e,t,n){"use strict";n.d(t,{D:function(){return s}});let s=e=>0===e.length?{isValidate:!1,message:"required_field"}:e.includes("@")?/^([a-zA-Z0-9_-]+\.)*[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)*\.[a-zA-Z]{2,6}$/.test(e)?{isValidate:!0,message:""}:{isValidate:!1,message:"incorrect_input"}:{isValidate:!1,message:"email_must_contain"}},77079:function(e,t,n){"use strict";n.r(t),n.d(t,{code:function(){return l.T},email:function(){return s.D},first_name:function(){return r},last_name:function(){return r},location:function(){return o},password:function(){return a.B},password_new:function(){return a.B},password_new2:function(){return a.B},pet_age:function(){return u},pet_name:function(){return r},phone_number:function(){return i}});var s=n(63285),a=n(12880);let i=e=>0===e.length?{isValidate:!1,message:"required_field"}:e.replace(/[\s()+_-]/g,"").length<11?{isValidate:!1,message:"wrong_format"}:{isValidate:!0,message:""},r=(e,t)=>0===e.length?{isValidate:!1,message:"required_field"}:"pet_name"===t&&e.length>20||("first_name"===t||"last_name"===t)&&e.length>50?{isValidate:!1,message:"exceeded_number_of_characters"}:(/[,\\.:;!'")({}[\]â%*+=_/@#$^~&<\->|\'`?/0-9]/.test(e)||/^\s+/.test(e))&&"pet_name"!==t?{isValidate:!1,message:"validation_error"}:{isValidate:!0,message:""},o=e=>{var t,n,s;return 0===Object.values(e).length?{isValidate:!1,message:"required_field"}:(null==e?void 0:null===(t=e.place_type)||void 0===t?void 0:t[0])==="country"?{isValidate:!1,message:"enter_the_city"}:(null==e?void 0:null===(n=e.place_type)||void 0===n?void 0:n[0])==="place"?{isValidate:!1,message:"enter_the_street"}:(null===(s=Object)||void 0===s?void 0:s.values(e).length)<2?{isValidate:!1,message:"address_entered_incorrectly"}:{isValidate:!0,message:""}};var l=n(44100);let u=e=>0===e.length?{isValidate:!1,message:"required_field"}:/[^0-9]/.test(e)?{isValidate:!1,message:"use_number_characters"}:{isValidate:!0,message:""}},12880:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});let s=e=>e.length<8?{isValidate:!1,message:"password_length"}:{isValidate:!0,message:""}},76627:function(e,t,n){e.exports=n(53462)},53462:function(e,t,n){"use strict";var s,a=(s=n(67294))&&"object"==typeof s&&"default"in s?s.default:s,i=n(73935);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}).apply(this,arguments)}function o(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(e,t,n,s,a,i,r,o){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,s,a,i,r,o],c=0;(l=Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}};function u(e,t,n){if("selectionStart"in e&&"selectionEnd"in e)e.selectionStart=t,e.selectionEnd=n;else{var s=e.createTextRange();s.collapse(!0),s.moveStart("character",t),s.moveEnd("character",n-t),s.select()}}var c={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};function d(e,t,n){var s="",a="",i=null,r=[];if(void 0===t&&(t="_"),null==n&&(n=c),!e||"string"!=typeof e)return{maskChar:t,formatChars:n,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var o=!1;return e.split("").forEach(function(e){o=!o&&"\\"===e||(o||!n[e]?(r.push(s.length),s.length===r.length-1&&(a+=e)):i=s.length+1,s+=e,!1)}),{maskChar:t,formatChars:n,prefix:a,mask:s,lastEditablePosition:i,permanents:r}}function p(e,t){return -1!==e.permanents.indexOf(t)}function f(e,t,n){var s=e.mask,a=e.formatChars;if(!n)return!1;if(p(e,t))return s[t]===n;var i=a[s[t]];return new RegExp(i).test(n)}function h(e,t){return t.split("").every(function(t,n){return p(e,n)||!f(e,n,t)})}function m(e,t){var n=e.maskChar,s=e.prefix;if(!n){for(;t.length>s.length&&p(e,t.length-1);)t=t.slice(0,t.length-1);return t.length}for(var a=s.length,i=t.length;i>=s.length;i--){var r=t[i];if(!p(e,i)&&f(e,i,r)){a=i+1;break}}return a}function v(e,t){return m(e,t)===e.mask.length}function g(e,t){var n=e.maskChar,s=e.mask,a=e.prefix;if(!n){for((t=w(e,"",t,0)).length<a.length&&(t=a);t.length<s.length&&p(e,t.length);)t+=s[t.length];return t}if(t)return w(e,g(e,""),t,0);for(var i=0;i<s.length;i++)p(e,i)?t+=s[i]:t+=n;return t}function w(e,t,n,s){var a=e.mask,i=e.maskChar,r=e.prefix,o=n.split(""),l=v(e,t);return!i&&s>t.length&&(t+=a.slice(t.length,s)),o.every(function(n){for(var o,u;p(e,u=s)&&n!==a[u];){if(s>=t.length&&(t+=a[s]),o=s,i&&p(e,o)&&n===i)return!0;
1if(++s>=a.length)return!1}return!f(e,s,n)&&n!==i||(s<t.length?t=i||l||s<r.length?t.slice(0,s)+n+t.slice(s+1):(t=t.slice(0,s)+n+t.slice(s),g(e,t)):i||(t+=n),++s<a.length)}),t}function _(e,t){for(var n=e.mask,s=t;s<n.length;++s)if(!p(e,s))return s;return null}function k(e){return e||0===e?e+"":""}function b(e){return"function"==typeof e}function x(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function C(e){return(x()?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:function(){return setTimeout(e,1e3/60)})(e)}function y(e){(x()||clearTimeout)(e)}var S=function(e){function t(t){var n=e.call(this,t)||this;n.focused=!1,n.mounted=!1,n.previousSelection=null,n.selectionDeferId=null,n.saveSelectionLoopDeferId=null,n.saveSelectionLoop=function(){n.previousSelection=n.getSelection(),n.saveSelectionLoopDeferId=C(n.saveSelectionLoop)},n.runSaveSelectionLoop=function(){null===n.saveSelectionLoopDeferId&&n.saveSelectionLoop()},n.stopSaveSelectionLoop=function(){null!==n.saveSelectionLoopDeferId&&(y(n.saveSelectionLoopDeferId),n.saveSelectionLoopDeferId=null,n.previousSelection=null)},n.getInputDOMNode=function(){if(!n.mounted)return null;var e=i.findDOMNode(o(o(n))),t="undefined"!=typeof window&&e instanceof window.Element;if(e&&!t)return null;if("INPUT"!==e.nodeName&&(e=e.querySelector("input")),!e)throw Error("react-input-mask: inputComponent doesn't contain input node");return e},n.getInputValue=function(){var e=n.getInputDOMNode();return e?e.value:null},n.setInputValue=function(e){var t=n.getInputDOMNode();t&&(n.value=e,t.value=e)},n.setCursorToEnd=function(){var e=m(n.maskOptions,n.value),t=_(n.maskOptions,e);null!==t&&n.setCursorPosition(t)},n.setSelection=function(e,t,s){void 0===s&&(s={});var a=n.getInputDOMNode(),i=n.isFocused();a&&i&&(s.deferred||u(a,e,t),null!==n.selectionDeferId&&y(n.selectionDeferId),n.selectionDeferId=C(function(){n.selectionDeferId=null,u(a,e,t)}),n.previousSelection={start:e,end:t,length:Math.abs(t-e)})},n.getSelection=function(){return function(e){var t=0,n=0;if("selectionStart"in e&&"selectionEnd"in e)t=e.selectionStart,n=e.selectionEnd;else{var s=document.selection.createRange();s.parentElement()===e&&(t=-s.moveStart("character",-e.value.length),n=-s.moveEnd("character",-e.value.length))}return{start:t,end:n,length:n-t}}(n.getInputDOMNode())},n.getCursorPosition=function(){return n.getSelection().start},n.setCursorPosition=function(e){n.setSelection(e,e)},n.isFocused=function(){return n.focused},n.getBeforeMaskedValueChangeConfig=function(){var e=n.maskOptions,t=e.mask,s=e.maskChar,a=e.permanents,i=e.formatChars;return{mask:t,maskChar:s,permanents:a,alwaysShowMask:!!n.props.alwaysShowMask,formatChars:i}},n.isInputAutofilled=function(e,t,s,a){var i=n.getInputDOMNode();try{if(i.matches(":-webkit-autofill"))return!0}catch(e){}return!n.focused||a.end<s.length&&t.end===e.length},n.onChange=function(e){var t,s,a,i,r,l,u,c,d,h,m,v,k,x,C,y,S,j,O,V=o(o(n)).beforePasteState,M=o(o(n)).previousSelection,D=n.props.beforeMaskedValueChange,N=n.getInputValue(),I=n.value,E=n.getSelection();n.isInputAutofilled(N,E,I,M)&&(I=g(n.maskOptions,""),M={start:0,end:0,length:0}),V&&(M=V.selection,I=V.value,E={start:M.start+N.length,end:M.start+N.length,length:0},N=I.slice(0,M.start)+N+I.slice(M.end),n.beforePasteState=null);var L=(t=n.maskOptions,s=N,a=E,i=I,r=M,v=t.mask,k=t.prefix,x=t.lastEditablePosition,C=s,y="",S=0,j=0,O=Math.min(r.start,a.start),a.end>r.start?(l=y=C.slice(r.start,a.end),u=O,c=t.mask,d=t.maskChar,h=l.split(""),m=u,h.every(function(e){for(var n;p(t,n=u)&&e!==c[n];)if(++u>=c.length)return!1;return(f(t,u,e)||e===d)&&u++,u<c.length}),j=(S=u-m)?r.length:0):C.length<i.length&&(j=i.length-C.length),C=i,j&&(1!==j||r.length||(O=r.start===a.start?_(t,a.start):function(e,t){for(var n=t;0<=n;--n)if(!p(e,n))return n;return null}(t,a.start)),C=function(e,t,n,s){var a=n+s,i=e.maskChar,r=e.mask,o=e.prefix,l=t.split("");if(i)return l.map(function(t,s){return s<n||a<=s?t:p(e,s)?r[s]:i}).join("");for(var u=a;u<l.length;u++)p(e,u)&&(l[u]="");return n=Math.max(o.length,n),l.splice(n,a-n),g(e,t=l.join(""))}(t,C,O,j)),C=w(t,C,y,O),(O+=S)>=v.length?O=v.length:O<k.length&&!S?O=k.length:O>=k.length&&O<x&&S&&(O=_(t,O)),y||(y=null),{value:C=g(t,C),enteredString:y,selection:{start:O,end:O}}),P=L.enteredString,Z=L.selection,T=L.value;if(b(D)){var A=D({value:T,selection:Z}
vendor: 4,875 bytes, line 1
1,{value:I,selection:M},P,n.getBeforeMaskedValueChangeConfig());T=A.value,Z=A.selection}n.setInputValue(T),b(n.props.onChange)&&n.props.onChange(e),n.isWindowsPhoneBrowser?n.setSelection(Z.start,Z.end,{deferred:!0}):n.setSelection(Z.start,Z.end)},n.onFocus=function(e){var t=n.props.beforeMaskedValueChange,s=n.maskOptions,a=s.mask,i=s.prefix;if(n.focused=!0,n.mounted=!0,a){if(n.value)m(n.maskOptions,n.value)<n.maskOptions.mask.length&&n.setCursorToEnd();else{var r=g(n.maskOptions,i),o=g(n.maskOptions,r),l=m(n.maskOptions,o),u=_(n.maskOptions,l),c={start:u,end:u};if(b(t)){var d=t({value:o,selection:c},{value:n.value,selection:null},null,n.getBeforeMaskedValueChangeConfig());o=d.value,c=d.selection}var p=o!==n.getInputValue();p&&n.setInputValue(o),p&&b(n.props.onChange)&&n.props.onChange(e),n.setSelection(c.start,c.end)}n.runSaveSelectionLoop()}b(n.props.onFocus)&&n.props.onFocus(e)},n.onBlur=function(e){var t=n.props.beforeMaskedValueChange,s=n.maskOptions.mask;if(n.stopSaveSelectionLoop(),n.focused=!1,s&&!n.props.alwaysShowMask&&h(n.maskOptions,n.value)){var a="";b(t)&&(a=t({value:a,selection:null},{value:n.value,selection:n.previousSelection},null,n.getBeforeMaskedValueChangeConfig()).value);var i=a!==n.getInputValue();i&&n.setInputValue(a),i&&b(n.props.onChange)&&n.props.onChange(e)}b(n.props.onBlur)&&n.props.onBlur(e)},n.onMouseDown=function(e){!n.focused&&document.addEventListener&&(n.mouseDownX=e.clientX,n.mouseDownY=e.clientY,n.mouseDownTime=(new Date).getTime(),document.addEventListener("mouseup",function e(t){if(document.removeEventListener("mouseup",e),n.focused){var s=Math.max(Math.abs(t.clientX-n.mouseDownX),Math.abs(t.clientY-n.mouseDownY)),a=(new Date).getTime()-n.mouseDownTime;(s<=10&&a<=200||s<=5&&a<=300)&&n.setCursorToEnd()}})),b(n.props.onMouseDown)&&n.props.onMouseDown(e)},n.onPaste=function(e){b(n.props.onPaste)&&n.props.onPaste(e),e.defaultPrevented||(n.beforePasteState={value:n.getInputValue(),selection:n.getSelection()},n.setInputValue(""))},n.handleRef=function(e){null==n.props.children&&b(n.props.inputRef)&&n.props.inputRef(e)};var s=t.mask,a=t.maskChar,r=t.formatChars,l=t.alwaysShowMask,c=t.beforeMaskedValueChange,v=t.defaultValue,x=t.value;n.maskOptions=d(s,a,r),null==v&&(v=""),null==x&&(x=v);var S=k(x);if(n.maskOptions.mask&&(l||S)&&(S=g(n.maskOptions,S),b(c))){var j=t.value;null==t.value&&(j=v),S=c({value:S,selection:null},{value:j=k(j),selection:null},null,n.getBeforeMaskedValueChangeConfig()).value}return n.value=S,n}t.prototype=Object.create(e.prototype),function(e,t){for(var n=Object.getOwnPropertyNames(t),s=0;s<n.length;s++){var a=n[s],i=Object.getOwnPropertyDescriptor(t,a);i&&i.configurable&&void 0===e[a]&&Object.defineProperty(e,a,i)}}(t.prototype.constructor=t,e);var n=t.prototype;return n.componentDidMount=function(){var e;this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=(e=navigator.userAgent,/windows/i.test(e)&&/phone/i.test(e)),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},n.componentDidUpdate=function(){var e=this.previousSelection,t=this.props,n=t.beforeMaskedValueChange,s=t.alwaysShowMask,a=t.mask,i=t.maskChar,r=t.formatChars,o=this.maskOptions,l=s||this.isFocused(),u=null!=this.props.value,c=u?k(this.props.value):this.value,p=e?e.start:null;if(this.maskOptions=d(a,i,r),this.maskOptions.mask){!o.mask&&this.isFocused()&&this.runSaveSelectionLoop();var f=this.maskOptions.mask&&this.maskOptions.mask!==o.mask;if(o.mask||u||(c=this.getInputValue()),(f||this.maskOptions.mask&&(c||l))&&(c=g(this.maskOptions,c)),f){var w=m(this.maskOptions,c);(null===p||w<p)&&(p=v(this.maskOptions,c)?w:_(this.maskOptions,w))}!this.maskOptions.mask||!h(this.maskOptions,c)||l||u&&this.props.value||(c="");var x={start:p,end:p};if(b(n)){var C=n({value:c,selection:x},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());c=C.value,x=C.selection}this.value=c;var y=this.getInputValue()!==this.value;y?(this.setInputValue(this.value),this.forceUpdate()):f&&this.forceUpdate();var S=!1;null!=x.start&&null!=x.end&&(S=!e||e.start!==x.start||e.end!==x.end),(S||y)&&this.setSelection(x.start,x.end)}else o.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},n.componentWillUnmount=function(){this.mounted=!1,null!==this.selectionDeferId&&y(this.selectionDeferId),this.stopSaveSelectionLoop()},n.render=function(){var e,t=this.props,n=(t.mask,t.alwaysShowMask,t.maskChar,t.formatChars,t.inputRef,t.beforeMaskedValueChange,t.children),s=function(e,t){if(null==e)return{};var n,s,a={},i=Object.keys(e);for(s=0;s<i.length;s++)0<=t.indexOf(n=i[s])||(a[n]=e[n]);return a}(t,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(n){b(n)||l(!1);var i=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],o=r({},s);
1i.forEach(function(e){return delete o[e]}),e=n(o),i.filter(function(t){return null!=e.props[t]&&e.props[t]!==s[t]}).length&&l(!1)}else e=a.createElement("input",r({ref:this.handleRef},s));var u={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(s.disabled||s.readOnly||(u.onChange=this.onChange,u.onPaste=this.onPaste,u.onMouseDown=this.onMouseDown),null!=s.value&&(u.value=this.value)),e=a.cloneElement(e,u)},t}(a.Component);e.exports=S}},function(e){e.O(0,[7125,7683,1925,9774,2888,179],function(){return e(e.s=20876)}),_N_E=e.O()}]);
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.