text: (self.webpackChunkbipul_raman=self.webpackChunkbipul_raman||[]).push([[524],{7866:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var r=n(7294),i=n(920),o=n(8063),c=n(453),a=n(9455),u=n(9157),s=n(5935),p=n(1587),l=n(169),h=(0,i.Z)((function(){return{root:{margin:20,padding:20,height:"80vh"},rootNoLive:{margin:20,padding:20},sectionTitle:{paddingBottom:10},videoContainer:{margin:20,padding:20,position:"relative",paddingBottom:"53%",height:"0"},video:{position:"absolute",top:0,left:0,width:"95%",height:"95%"},img:{maxWidth:"560px",width:"100%"}}}));function f(){var e=h(),t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){(0,u.Jc)().then((function(e){if(void 0!==e){var t=e.find((function(e){return"YTLiveUrlKey"===e.rowKey})).value;i(t)}}))}),[]),r.createElement(a.Z,null,n?r.createElement("div",{className:e.videoContainer},r.createElement("iframe",{title:"LiveStream",src:"https://www.youtube-nocookie.com/embed/"+n,frameborder:"0",allowfullscreen:!0,className:e.video})):r.createElement(o.Z,{elevation:3,className:e.rootNoLive},r.createElement(c.Z,{variant:"h6",className:e.sectionTitle},"Bipul is not Livestreaming right now."),r.createElement("br",null),r.createElement("br",null),r.createElement("img",{src:s.rU.NotLive,className:e.img,alt:"Bipul is not Livestreaming."})),r.createElement(l.Z,{Title:p.FB.Title,Description:p.FB.Description}))}},9157:function(e,t,n){"use strict";n.d(t,{uH:function(){return f},qi:function(){return w},RY:function(){return m},jU:function(){return l},Jc:function(){return b}});var r=n(2137),i=n(7757),o=n.n(i),c="https://bipulappapi.azurewebsites.net/api/BlogNew",a="https://bipulappapi.azurewebsites.net/api/BlogDelete",u="https://bipulapppublicapi.azurewebsites.net/api/Blog",s="https://bipulapppublicapi.azurewebsites.net/api/Blogs",p="https://bipulapppublicapi.azurewebsites.net/api/SiteConfig";function l(e,t){return h.apply(this,arguments)}function h(){return(h=(0,r.Z)(o().mark((function e(t,n){var r,i,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new Headers,i="Bearer "+t,r.append("Authorization",i),r.append("Access-Control-Allow-Origin","*"),r.append("Access-Control-Allow-Headers","Origin, X-Requested-With, Content-Type, Accept"),a={method:"POST",headers:r,body:n},e.abrupt("return",fetch(c,a).then((function(e){return e.json()})).catch((function(e){return console.log(e)})));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e,t){return d.apply(this,arguments)}function d(){return(d=(0,r.Z)(o().mark((function e(t,n){var r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={method:"DELETE",headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Headers":"Origin, X-Requested-With, Content-Type, Accept",Authorization:"Bearer "+t}},e.abrupt("return",fetch(a+"/"+n,r).then((function(e){return e.json()})).catch((function(e){return console.log(e)})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return g.apply(this,arguments)}function g(){return(g=(0,r.Z)(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"GET",headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Headers":"Origin, X-Requested-With, Content-Type, Accept","Content-Type":"application/json"}},e.abrupt("return",fetch(u+"/"+t,n).then((function(e){return e.json()})).catch((function(e){return console.log(e)})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e){return v.apply(this,arguments)}function v(){return(v=(0,r.Z)(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"GET",headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Headers":"Origin, X-Requested-With, Content-Type, Accept","Content-Type":"application/json"}},e.abrupt("return",fetch(s+"/"+t,n).then((function(e){return e.json()})).catch((function(e){return console.log(e)})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(){return A.apply(this,arguments)}function A(){return(A=(0,r.Z)(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={method:"GET",headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Headers":"Origin, X-Requested-With, Content-Type, Accept"}},e.abrupt("return",fetch(p,t).then((function(e){return e.json()})).catch((function(e){return console.log(e)})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}}]);
  //# sourceMappingURL=component---src-pages-live-js-45e7ace0a2ecf0966677.js.map