44462.395641c9ceea67ca.js 1.3 KB

12
  1. "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44462],{44462:function(n,e,t){t.r(e),t.d(e,{default:function(){return m}});var o,r=t(1997),u=t(57044),c=t(16946),a=t(51726),i=t(57611),l=t(33770),s=t.n(l),f=t(99968),d=t(9740),b=t(37572);!function(n){n.AuthOnboarding="auth-onboarding",n.CollectionsAnnouncement="collections-announcement"}(o||(o={}));var p=s()((function(){return t.e(18091).then(t.bind(t,18091))}),{loadableGenerated:{webpack:function(){return[18091]}}}),h=s()((function(){return t.e(88543).then(t.bind(t,88543))}),{loadableGenerated:{webpack:function(){return[88543]}}}),m=function(n){var e=n.announcement,t=(0,f.kY)().mutate,l=function(){var n=(0,r.Z)((function(n){return(0,a.__generator)(this,(function(e){switch(e.label){case 0:return t((0,b.bo)(),(function(n){return(0,c.Z)((0,u.Z)({},n),{announcement:null})}),{revalidate:!1}),[4,(0,d.b5)({announcementType:n})];case 1:return e.sent(),[2]}}))}));return function(e){return n.apply(this,arguments)}}();if(e.type===o.AuthOnboarding)return(0,i.jsx)(p,{onCompleted:function(){return l(o.AuthOnboarding)}});if(e.type===o.CollectionsAnnouncement)return(0,i.jsx)(h,{onCompleted:function(){return l(o.CollectionsAnnouncement)}});throw new Error("AnnouncementModalBodyResolver doesn't support this announcement type")}}}]);
  2. //# sourceMappingURL=44462.395641c9ceea67ca.js.map