(self.webpackChunk_studyhub_co_react_comments_django_client=self.webpackChunk_studyhub_co_react_comments_django_client||[]).push([[727],{75010:(t,e,r)=>{"use strict";r.r(e),r.d(e,{loadTopics:()=>o,topicsListLoaded:()=>c,topicsListLoadingError:()=>a,loadTopic:()=>i,topicLoaded:()=>s,topicLoadingError:()=>u});var n=r(96312);function o(t){return{type:n.pO,nextHref:t}}function c(t){return{type:n.HF,topicsList:t}}function a(t){return{type:n.vm,error:t}}function i(t){return{type:n.gI,slug:t}}function s(t){return{type:n.VJ,topic:t}}function u(t){return{type:n.Hm,error:t}}},96312:(t,e,r)=>{"use strict";r.d(e,{pO:()=>n,HF:()=>o,vm:()=>c,gI:()=>a,VJ:()=>i,Hm:()=>s});var n="reactCommentsDjango/Topics/LOAD_TOPICS",o="reactCommentsDjango/Topics/LOAD_TOPICS_SUCCESS",c="reactCommentsDjango/Topics/LOAD_TOPICS_ERROR",a="reactCommentsDjango/Topics/LOAD_TOPIC",i="reactCommentsDjango/Topics/LOAD_TOPIC_SUCCESS",s="reactCommentsDjango/Topics/LOAD_TOPIC_ERROR"},41867:(t,e,r)=>{"use strict";r.d(e,{E:()=>c,Z:()=>a});var n=r(18172),o=r(96312),c={topicsList:!1,topic:!1};const a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,e=arguments.length>1?arguments[1]:void 0;return(0,n.ZP)(t,(function(t){switch(e.type){case o.pO:t.loading=!0,t.error=!1,t.topicsList=!1;break;case o.HF:t.topicsList=e.topicsList,t.loading=!1;break;case o.vm:t.error=e.error,t.loading=!1;break;case o.gI:t.loading=!0,t.error=!1,t.topic=!1;break;case o.VJ:t.topic=e.topic,t.loading=!1;break;case o.Hm:t.error=e.error,t.loading=!1}}))}},60207:(t,e,r)=>{"use strict";r.d(e,{ZP:()=>f});var n=r(73375),o=r(96312),c=r(75010),a=r(83109),i=r(77775);var s=function(t){var e;return e=t||"".concat(a.vU,"topics/"),(0,i.Z)(e,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}})},u=function(t){var e="".concat(a.vU,"topics/").concat(t,"/");return(0,i.Z)(e,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}})},p=regeneratorRuntime.mark(g),d=regeneratorRuntime.mark(l),m=regeneratorRuntime.mark(f);function g(t){var e,r;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e=t.nextHref,o.prev=1,o.next=4,(0,n.call)(s,e);case 4:return r=o.sent,o.next=7,(0,n.put)((0,c.topicsListLoaded)(r));case 7:o.next=13;break;case 9:return o.prev=9,o.t0=o.catch(1),o.next=13,(0,n.put)((0,c.topicsListLoadingError)(o.t0));case 13:case"end":return o.stop()}}),p,null,[[1,9]])}function l(t){var e,r;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e=t.slug,o.prev=1,o.next=4,(0,n.call)(u,e);case 4:return r=o.sent,o.next=7,(0,n.put)((0,c.topicLoaded)(r));case 7:o.next=13;break;case 9:return o.prev=9,o.t0=o.catch(1),o.next=13,(0,n.put)((0,c.topicLoadingError)(o.t0));case 13:case"end":return o.stop()}}),d,null,[[1,9]])}function f(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,n.all)([(0,n.takeLatest)(o.pO,g),(0,n.takeLatest)(o.gI,l)]);case 2:case"end":return t.stop()}}),m)}},4828:(t,e,r)=>{"use strict";r.d(e,{fN:()=>a,h4:()=>i});var n=r(22222),o=r(41867),c=function(t){return t.topics||o.E},a=function(){return(0,n.P1)(c,(function(t){return t.topicsList}))},i=function(){return(0,n.P1)(c,(function(t){return t.topic}))}}}]);