1webpackJsonp([31],{
1"./app/components/TMMessage/Wrapper.js":function(e,t,n){"use strict";var r=n("./node_modules/styled-components/dist/styled-components.es.js"),o=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""],[""]);t.a=r.c.div(o)},
1"./app/components/TMMessage/index.js":function(e,t,n){"use strict";function r(e){switch(e.type){case"success":return s(a.a,{},void 0,s(i.u,{positive:!0},void 0,s(i.u.Header,{},void 0,e.header),s("p",{},void 0,e.message)));case"error":return s(a.a,{},void 0,s(i.u,{negative:!0},void 0,s(i.u.Header,{},void 0,e.header),s("p",{},void 0,e.message)));case"info":return s(a.a,{},void 0,s(i.u,{info:!0},void 0,s(i.u.Header,{},void 0,e.header),s("p",{},void 0,e.message)))}}t.a=r;var o=n("./node_modules/react/react.js"),i=(n.n(o),n("./node_modules/semantic-ui-react/dist/es/index.js")),a=n("./app/components/TMMessage/Wrapper.js"),s=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var c=Array(a),l=0;l<a;l++)c[l]=arguments[l+3];n.children=c}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()},
1"./app/containers/Registration/CustomStyle.js":function(e,t,n){"use strict";function r(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var o=n("./node_modules/styled-components/dist/styled-components.es.js"),i=n("./node_modules/semantic-ui-react/dist/es/index.js"),a=r(["\n\t\twidth: 70% !important;\n\t\tborder: 1px solid #c1bebe;\n\t\tpadding: 1em 2.3em 0 2.3em;\n\t"],["\n\t\twidth: 70% !important;\n\t\tborder: 1px solid #c1bebe;\n\t\tpadding: 1em 2.3em 0 2.3em;\n\t"]),s=r(["\n\t text-align: left;\n\t position: relative;\n\t bottom: ","!important;\n\t"],["\n\t text-align: left;\n\t position: relative;\n\t bottom: ","!important;\n\t"]),c=r(["\n\t padding: 1em 0 1em 0 !important;\n\t"],["\n\t padding: 1em 0 1em 0 !important;\n\t"]),l=r(["\n\t\t//padding: 1em 0;\n\t font-size: 18px;\n\t font-weight: 600;\n\t"],["\n\t\t//padding: 1em 0;\n\t font-size: 18px;\n\t font-weight: 600;\n\t"]),u=r(["\n\t\tbackground: #fafafa;\n\t"],["\n\t\tbackground: #fafafa;\n\t"]),d=r(["\n\t\ttext-decoration: none;\n\t\tcolor: ","!important;\n\t"],["\n\t\ttext-decoration: none;\n\t\tcolor: ","!important;\n\t"]),p=r(["\n\t\tmax-width: 100%;\n\t"],["\n\t\tmax-width: 100%;\n\t"]);t.a={LoginContainerStyle:Object(o.c)(i.f)(a),FieldLabelStyle:o.c.label(s,function(e){return e.spaceBottom?e.spaceBottom:"0"}),DivPaddingStyle:o.c.div(c),HeaderDivStyle:o.c.div(l),FooterDivStyle:o.c.div(u),HighlightAnchorMailTo:o.c.a(d,function(e){return e.highlight?e.highlight:"#28C1C8"}),BannerImage:o.c.img(p)}},
1"./app/containers/Registration/FooterContainer.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n("./node_modules/react/react.js"),s=(n.n(a),n("./app/components/Button/index.js")),c=n("./app/containers/Registration/CustomStyle.js"),l=n("./node_modules/react-router/es/index.js"),u=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var c=Array(a),l=0;l<a;l++)c[l]=arguments[l+3];n.children=c}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),d(t,[{key:"render",value:function(){var e=c.a;return u(e.FooterDivStyle,{className:"bleed"},void 0,u(e.LoginContainerStyle,{},void 0,u(e.FieldLabelStyle,{spaceBottom:"9px"},void 0,this.props.LabelText),u(l.a,{to:this.props.linkTo,id:this.props.id,className:this.props.className},void 0," ",u(s.a,{type:"secondary"},void 0,this.props.ButtonText))))}}]),t}(a.Component);t.a=p},
1"./app/containers/Registration/actions.js":function(e,t,n){"use strict";function r(){return{type:a.b}}function o(e){return{type:a.e,details:e}}function i(e){return{type:a.c,error:e}}t.a=r,t.c=o,t.b=i;var a=n("./app/containers/Registration/constants.js")},
1"./app/containers/Registration/constants.js":function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"d",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"e",function(){return s});var r="app/Registration/DEFAULT_ACTION",o="tailorman/Registration/REGISTER",i="tailorman/Registration/REGISTRATION_SUCCESS",a="tailorman/Registration/REGISTRATION_ERROR",s="tailorman/Registration/SAVE_REGISTRATION_DETAILS"},
1"./app/containers/Registration/index.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function s(e){return{register:function(t){e(Object(j.c)(t)),e(Object(j.a)())}}}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Registration",function(){return M});var c=n("./node_modules/react/react.js"),l=n.n(c),u=n("./node_modules/react-redux/lib/index.js"),d=(n.n(u),n("./node_modules/react-helmet/lib/Helmet.js")),p=(n.n(d),n("./node_modules/react-dom/index.js")),f=(n.n(p),n("./node_modules/react-intl/lib/index.es.js"),n("./node_modules/reselect/es/index.js")),m=n("./app/containers/Registration/selectors.js"),h=(n("./app/containers/Registration/messages.js"),n("./node_modules/semantic-ui-react/dist/es/index.js")),g=n("./app/containers/Registration/CustomStyle.js"),y=n("./app/components/TMFormField/index.js"),v=n("./app/components/TMMessage/index.js"),b=n("./app/components/Button/index.js"),_=n("./app/containers/Registration/FooterContainer.js"),j=n("./app/containers/Registration/actions.js"),x=n("./node_modules/styled-components/dist/styled-components.es.js"),w=n("./app/containers/App/selectors.js"),S=n("./app/utils/country_phone_codes.js"),O=(n.n(S),function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var c=Array(a),l=0;l<a;l++)c[l]=arguments[l+3];n.children=c}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()),T=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),P=a(["\n @media (max-width : 1025px){\n width: auto;\n margin:auto 5%;\n }\n padding-top: ",";\n width: ",";\n margin-left: ",";\n"],["\n @media (max-width : 1025px){\n width: auto;\n margin:auto 5%;\n }\n padding-top: ",";\n width: ",";\n margin-left: ",";\n"]),R=a(["\n h4 {\n font-size: 14px !important;\n margin: 12px 0 1.2px 0 !important;\n }\n"],["\n h4 {\n font-size: 14px !important;\n margin: 12px 0 1.2px 0 !important;\n }\n"]),C=g.a,k=x.c.div(P,function(e){return e["top-pad"]?"2.5em":"1em"},function(e){return e.resize?"100%":"40%"},function(e){return e.resize?"0":"30%"}),E=Object(x.c)(h.j.Field)(R),N=O("div",{},void 0,"Tailorman will send a verification code to this e-mail.",O("br",{}),"Please add ",O(C.HighlightAnchorMailTo,{href:"mailto:[email protected]",target:"_top"},void 0," [email protected] "),"to your safe sender's list."),z=O("div",{},void 0,"The password has to be atleast 8 characters long, and must contain an uppercase letter, a numerical digit and, a special character."),A=O("div",{},void 0,"Please provide the country code along with the phone number.",O("br",{})," This phone number can also be used for login.",O("br",{})," For example: +91-987-654-3210"),V=O(C.HeaderDivStyle,{},void 0,"SIGN UP"),I=O(_.a,{id:"tm_registration_login",className:"tm_registration_login",LabelText:"Already have an account with Tailorman?",linkTo:"/login",ButtonText:"LOGIN"}),M=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.register=n.register.bind(n),n.setSelectedCountry=n.setSelectedCountry.bind(n),n.state={countryCode:"+91",emailTextError:"",Phonetexterror:"",name:!0,key:0},n}
1return i(t,e),T(t,[{key:"componentWillReceiveProps",value:function(e){this.props.error!=e.error&&e.error&&"success"==e.error.status&&(this.country.value="",this.phone.value="",this.name.value="",this.referral_code="",this.setState({key:this.state.key+1,countryCode:"+91"}))}},{key:"getEmailPopupText",value:function(){return N}},{key:"getPasswordPopupText",value:function(){return z}},{key:"getPhoneNumberPopupText",value:function(){return A}},{key:"setSelectedCountry",value:function(e,t){this.setState({countryCode:t.value})}},{key:"validateEmail",value:function(e){var t=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,n=t.test(e);return this.setState({emailTextError:!n}),n}},{key:"validatePhone",value:function(e,t){var n=/^\d{10}$/g,r=n.test(e),o=null==t;return this.setState({Phonetexterror:!r,isdCodeError:o}),r}},{key:"register",value:function(){var e=this.validateEmail(this.email.getValue()),t=this.validatePhone(this.phone.getValue(),this.state.countryCode),n=this.name.getValue(),r=this.state.countryCode;this.setState({name:n});var o={name:n,email:this.email.getValue(),phone:r+" "+this.phone.getValue(),address:[this.address1?this.address1.getValue():"",this.address2?this.address2.getValue():"",this.city?this.city.getValue():"",this.stateText?this.stateText.getValue():"",this.country?this.country.getValue():"",this.pincode?this.pincode.getValue():"",this.landmark?this.landmark.getValue():""].join(" "),referral_code:this.referral_code.getValue()};n&&e&&t&&r&&this.props.register(o),window.scrollTo(0,0)}},{key:"render",value:function(){var e=this,t=null,n=this.state,r=n.isdCodeError,o=n.emailTextError,i=n.Phonetexterror,a=n.name,s="";return a||(s="Name field can't be empty"),o&&(s=s+(a?"Please":",")+" enter a valid email address"),r&&(s=s+(!a||o?" ,":"Please")+" choose a country code"),i&&(s=s+(r||o?" and a":"Please enter a")+" valid phone number"),(s||this.props.error)&&(t=O(v.a,{type:this.props.error.status||"error",header:this.props.error.status||"error",message:s||this.props.error.message})),O(k,{"top-pad":this.props.tickerDetails.length>0,resize:this.props.resize},this.state.key,O(C.LoginContainerStyle,{textAlign:"center"},void 0,V,t,O(h.j,{},void 0,O(E,{},void 0,l.a.createElement(y.a,{required:!0,id:"tm_registration_name",className:"tm_registration_name",type:"text",name:"Name",ref:function(t){return e.name=t}})),O(E,{},void 0,l.a.createElement(y.a,{required:!0,id:"tm_registration_email",className:"tm_registration_email",type:"email",name:"Email",ref:function(t){return e.email=t},tooltip:!0,tooltip_content:"Tailorman will send a verification code to this email. Please add [email protected] to your safe sender list"})),O(E,{style:{display:"inline-block",float:"left",width:"40%","margin-top":"-6px"}},void 0,l.a.createElement(y.a,{required:!0,name:"ISD Code",type:"dropdown",options:S.phoneCodes,ref:function(t){return e.country=t},value:this.state.countryCode,onChange:this.setSelectedCountry})),O(E,{style:{display:"inline-block",width:"55%","margin-left":"5%","margin-top":"-6px"}},void 0,l.a.createElement(y.a,{required:!0,name:"Phone Number",id:"tm_registration_phone",className:"tm_registration_phone",type:"phone",ref:function(t){return e.phone=t},tooltip:!0,tooltip_content:"Enter Phone Number without Country Code."})),O(E,{style:{"margin-top":"-6px"}},void 0,l.a.createElement(y.a,{type:"text",id:"tm_registration_referral_code",className:"tm_registration_name_referral_code",name:"Referral Code",ref:function(t){return e.referral_code=t}}))),O(C.DivPaddingStyle,{},void 0,O(b.a,{id:"tm_registration_register",className:"tm_registration_register",onClick:this.register},void 0,"Sign Up"))),1==this.props.resize?"":I)}}]),t}(l.a.PureComponent),D=Object(f.b)({error:Object(m.a)(),loading:Object(m.b)(),tickerDetails:Object(w.t)()});t.default=Object(u.connect)(D,s)(M)},
1"./app/containers/Registration/messages.js":function(e,t,n){"use strict";var r=n("./node_modules/react-intl/lib/index.es.js");Object(r.d)({header:{id:"app.containers.Registration.header",defaultMessage:"This is Registration container !"}})},
1"./app/containers/Registration/selectors.js":function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return i});var r=n("./node_modules/reselect/es/index.js"),o=function(){return function(e){return e.get("registration")}},i=function(){return Object(r.a)(o(),function(e){return e.get("details")})},a=function(){return Object(r.a)(o(),function(e){return e.get("loading")})},s=function(){return Object(r.a)(o(),function(e){return e.get("error")})}}
vendor: 3 bytes, line 1
1});
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.