text: (this["webpackJsonpgoit-react-hw-04-movies"]=this["webpackJsonpgoit-react-hw-04-movies"]||[]).push([[7],{101:function(t,e,a){t.exports={content:"Cast_content__1qN8A",image:"Cast_image__24fuX",list:"Cast_list__3-YgD",profile:"Cast_profile__1W1Tw"}},107:function(t,e,a){"use strict";a.r(e),a.d(e,"default",(function(){return f}));var c=a(55),n=a.n(c),r=a(56),s=a(54),i=a(0),o=a(53),u=a(101),p=a.n(u),l=a(1),f=function(t){var e=t.id,a=Object(i.useState)(),c=Object(s.a)(a,2),u=(c[0],c[1]),f=Object(i.useState)(),h=Object(s.a)(f,2),j=h[0],b=h[1];Object(i.useEffect)((function(){(function(){var t=Object(r.a)(n.a.mark((function t(){var a,c;return n.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(o.a)(e);case 3:a=t.sent,c=a.data,b(c.cast),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),u(t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}})()()}),[]);return Object(l.jsx)("ul",{className:p.a.list,children:j&&j.map((function(t){var e=t.name,a=t.character,c=t.id,n=t.profile_path;return Object(l.jsxs)("li",{className:p.a.profile,children:[Object(l.jsx)("img",{src:"".concat("https://image.tmdb.org/t/p/w200/").concat(n),alt:"",className:p.a.image}),Object(l.jsx)("h4",{children:e}),Object(l.jsxs)("p",{children:["Character: ",a]})]},c)}))})}}}]);
  //# sourceMappingURL=7.3dd7d01f.chunk.js.map