(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[46],{612:function(e,t,n){"use strict";var r=n(41),c=n.n(r),l=n(42),r=function(e){var u=e.getIn;return function(o,e){c()(o,"Form value must be specified");var i=e||function(e){return u(e,"form")};return function(r){for(var e=arguments.length,t=Array(1<e?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return c()(t.length,"No fields specified"),1===t.length?u(i(r),o+".values."+t[0]):t.reduce(function(e,t){var n=u(i(r),o+".values."+t);return void 0===n?e:l.a.setIn(e,t,n)},{})}}};t.a=r(l.a)},617:function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(76),u=n(8),c=n.n(u),u=n(1204),l=n(1205),a=n(1201),f=n(77),s=n(22),p=n(1238),b=n(190),n=n(612);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(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,function(e){e=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==d(e)?e:e+""}(r.key),r)}}function m(e,t,n){t=O(t);var r=e,t=v()?Reflect.construct(t,n||[],O(e).constructor):t.apply(e,n);if(t&&("object"==d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");e=r;if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var r=function(e){function t(e){if(this instanceof t)return m(this,t,[e]);throw new TypeError("Cannot call a class as a function")}var n,r=t;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&j(r,e),r=t,(e=[{key:"UNSAFE_componentWillMount",value:function(){this.UserProfileComponent=Object(b.b)("UserProfile")}},{key:"componentDidMount",value:function(){(0,this.props.fetchOrders)()}},{key:"render",value:function(){var e=this.props.profile.user,t=this.UserProfileComponent;return c()(e)?o.a.createElement(p.a,{to:"/"}):o.a.createElement(t,this.props)}}])&&y(r.prototype,e),n&&y(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(r.Component),h=Object(n.a)("EditProfile");t.default=Object(u.a)(Object(l.a)(Object(a.a)(Object(i.b)(function(e){var t=e.orders,n=e.profile,r=e.commercial_files,o=e.general,i=null==o||null==(i=o.general_info)||null==(i=i.features)||null==(i=i.activate_tajrobe)?void 0:i.enabled,u=null==o||null==(u=o.general_info)||null==(u=u.tajrobe)||null==(u=u.configurations)?void 0:u.enabled,r=r&&r.endpoint,e=h(e,"email");return{orders:t,profile:n,commercialFilesEndpoint:r,domain:null==o||null==(t=o.general_info)||null==(t=t.domain)?void 0:t.url,emailFieldValue:e,isTajrobeAllowed:i&&u}},function(t){return{fetchOrders:function(e){t(Object(f.a)(e))},invalidateOrders:function(){t(Object(f.b)())},updateUser:function(){t(Object(s.G)())},updatePhoneNumber:function(){t(Object(s.z)())},updatePhoneNumberVerification:function(){t(Object(s.D)())}}})(r)),"UserProfilePage"))}}]);