1"use strict";(("undefined"!=typeof self?self:this).__LOADABLE_LOADED_CHUNKS__=("undefined"!=typeof self?self:this).__LOADABLE_LOADED_CHUNKS__||[]).push([[1990],{99998:function(e,t,r){r.r(t),r.d(t,{default:function(){return m}});var n=r(12291),o=r(14890),u=r(23115),i=r(73262),a=(r(18178),r(96928),r(34769),r(61229),r(34115),r(634),r(58188),r(20796),r(15735),r(28673),r(6886),r(2784)),c=r(45697),s=r.n(c),p=r(30001),f=r(47741),l=r(77690),h=r(7799),_=r(75007);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},d(e)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=P(e);if(t){var o=P(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}function S(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(u,e);var t,r,n,o=E(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=o.call(this,e)).load=t.load.bind(y(t)),t.triedToLoadPublisherInfo=!1,t.maxRetries=10,t.state={retries:0},t}return t=u,(r=[{key:"componentDidMount",value:function(){this.load()}},{key:"componentDidUpdate",value:function(){this.load()}},{key:"load",value:function(){var e=this.props,t=e.profileLoaded,r=e.profileIsLoading,n=e.fetchFullProfile,o=e.fetchPublisherInfo,u=e.publisherRemoteStoreState,i=e.uid;if(this.state.retries>=this.maxRetries)(0,h.Z)().location=_.Z.LOGOUT_URL;else if(t||r||(n(i),this.setState({retries:this.state.retries+1})),u===p.UN.INITIAL){if(this.triedToLoadPublisherInfo){var a=(new Date).getTime();f.Z.captureException(new Error("PUBLISHER INFO LOADED TOO MUCH"),{uid:i,publisherRemoteStoreState:u,at:a}),l.ZP.warn("PUBLISHER INFO LOADED TOO MUCH: uid: ".concat(i,", publisherRemoteStoreState: ").concat(u,", at: ").concat(a))}o(i),this.triedToLoadPublisherInfo=!0}}},{key:"render",value:function(){return null}}])&&v(t.prototype,r),n&&v(t,n),u}(a.Component);L.propTypes={uid:s().number.isRequired,profileIsLoading:s().bool.isRequired,profileLoaded:s().bool.isRequired,fetchFullProfile:s().func.isRequired,publisherRemoteStoreState:s().oneOf(Object.keys(p.UN)),fetchPublisherInfo:s().func.isRequired};var I=L,m=(0,n.$j)((function(e){var t=e.auth.uid,r=e.profile,n=r.isLoading,o=r.profileLoaded;return{uid:t,profileIsLoading:n,publisherRemoteStoreState:e.publisher.remoteStoreState,profileLoaded:o}}),(function(e){return(0,o.DE)({fetchFullProfile:u.df,fetchPublisherInfo:i._p},e)}))(I)},73262:function(e,t,r){r.d(t,{_p:function(){return s},ck:function(){return p},tL:function(){return f},Xf:function(){return l},fG:function(){return _},mh:function(){return d}});r(35666),r(34769),r(18178),r(26936),r(58188),r(73439);var n=r(93981),o=r(68460),u=r(12933),i=r(35616);function a(e,t,r,n,o,u,i){try{var a=e[u](i),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var u=e.apply(t,r);function i(e){a(u,n,o,i,c,"next",e)}function c(e){a(u,n,o,i,c,"throw",e)}i(void 0)}))}}var s=function(e){return function(){var t=c(regeneratorRuntime.mark((function t(r){var o,i,a,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,o={uid:e},r({type:u.$v.GET_PUBLISHER_INFO_PENDING}),t.next=5,n.Z.get("/v1/publisher_by_uid",{params:o});case 5:i=t.sent,a=i.data,c=Object.keys(a.publisher).length>0?a.publisher:null,r({type:u.$v.GET_PUBLISHER_INFO_SUCCESS,publisher:c}),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(0),r({type:u.$v.GET_PUBLISHER_INFO_FAILED});case 14:case"end":return t.stop()}}),t,null,[[0,11]])})));return function(e){return t.apply(this,arguments)}}()},p=function(e){return function(){var t=c(regeneratorRuntime.mark((function t(r){var o,i,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,o={account_id:e},r({type:u.$v.GET_PUBLISHER_PIPES_PENDING}),t.next=5,n.Z.get("/v1/pipes",{params:o});case 5:i=t.sent,a=i.data,r({type:u.$v.GET_PUBLISHER_PIPES_SUCCESS,pipes:a.pipes||[]}),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),r({type:u.$v.GET_PUBLISHER_PIPES_FAILED});case 13:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(e){return t.apply(this,arguments)}}()},f=function(e){return function(){var t=c(regeneratorRuntime.mark((function t(r){var o,i,a,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r({type:u.$v.UPDATE_PUBLISHER_STATUS_PENDING}),o=new Date,i="".concat(o.getFullYear(),"-").concat(o.getMonth()+1,"-").concat(o.getDate()," ").concat(o.getHours(),":").concat(o.getMinutes(),":").concat(o.getSeconds()),t.next=6,n.Z.put("/v1/publisher_pending/".concat(e),{data:{onboarding_status:"pending",onboard_date:i}});case 6:a=t.sent,c=a.data,r({type:u.$v.UPDATE_PUBLISHER_STATUS_SUCCESS,publisher:c.publisher}),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(0),r({type:u.$v.UPDATE_PUBLISHER_STATUS_FAILED});case 14:case"end":return t.stop()}}),t,null,[[0,11]])})));return function(e){return t.apply(this,arguments)}}()},l=function(e){return function(){var t=c(regeneratorRuntime.mark((function t(r){var o,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r({type:u.$v.UPDATE_PUBLISHER_PAYWALL}),t.next=4,n.Z.put("/v1/publisher_indicated_paywall/".concat(e));case 4:o=t.sent,i=o.data,r({type:u.$v.UPDATE_PUBLISHER_PAYWALL_SUCCESS,publisher:i.publisher}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),r({type:u.$v.UPDATE_PUBLISHER_PAYWALL_FAILED});case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(e){return t.apply(this,arguments)}}()},h=function(e,t){return function(){var r=c(regeneratorRuntime.mark((function r(i,a,c){var s,p,f,l;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s=c.t,r.prev=1,i({type:u.$v.CREATE_PUBLISHER_PENDING}),p={account_id:e,data:{username:t,onboarding_status:"incomplete"}},r.next=6,n.Z.post("/v1/publisher_create",p);case 6:return f=r.sent,l=f.data&&f.data.publisher,i({type:u.$v.CREATE_PUBLISHER_SUCCESS,publisher:l}),r.abrupt("return",l);case 12:r.prev=12,r.t0=r.catch(1),i({type:u.$v.CREATE_PUBLISHER_FAILED}),i((0,o.toastShowErrorAction)(s("fallback_error_message")));case 16:case"end":return r.stop()}}),r,null,[[1,12]])})));return function(e,t,n){return r.apply(this,arguments)}}()},_=function(e){return function(){var t=c(regeneratorRuntime.mark((function t(r,i,a){var c,s,p,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=a.t,t.prev=1,r({type:u.$v.CANCEL_PUBLISHER_APPLICATION_PENDING}),s={uid:e},t.next=6,n.Z.get("/v1/publisher_optout",{params:s});case 6:p=t.sent,f=p.data,r({type:u.$v.CANCEL_PUBLISHER_APPLICATION_SUCCESS,publisher:f.publisher}),r((0,o.toastShowInfoAction)(c("cancel_publisher_application_success"))),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(1),r({type:u.$v.CANCEL_PUBLISHER_APPLICATION_FAILED}),r((0,o.toastShowErrorAction)(c("fallback_error_message")));case 16:case"end":return t.stop()}}),t,null,[[1,12]])})));return function(e,r,n){return t.apply(this,arguments)}}()},d=function(){return function(){var e=c(regeneratorRuntime.mark((function e(t,r){var n,o,u,a,c,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r(),o=n.publisher.publisherInfo,u=n.auth.uid,null==o||!o.name){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,t(s(u));case 5:if(a=r(),null==(c=a.publisher.publisherInfo)||!c.name){e.next=8;break}return e.abrupt("return");case 8:return p=(0,i.ar)(r()),e.next=11,t(h(u,p.screenname));case 11:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()}}}]); 2//# sourceMappingURL=app-containers-load-full-profile.5a87771aaa4243a49777.bundle.js.map
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.