PageSourceSearch

https://gebootcamp.com/static/js/6712.771bc9ce.chunk.js

js gebootcamp.com collected 2026-10-02 07:03:08 UTC 16,251 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkgeb_frontend=self.webpackChunkgeb_frontend||[]).push([[6712],{5722:function(e,n,t){t.d(n,{Z:function(){return l}});var i=t(4165),r=t(5861),a=(t(390),t(9263)),o=t(5477),s=t(2559),l=function(e){var n=e.trigger,t=e.popUpTitle,l=e.handelSubmit,c=e.isBtnLoading;return(0,s.jsx)(a.Z,{trigger:n,modal:!0,children:function(e){return(0,s.jsx)("div",{className:"warning_popup",children:(0,s.jsxs)("div",{className:"wpu_div",children:[(0,s.jsx)(o.Z,{variant:"h4",sx:{margin:"2rem 0rem 5rem 0"},children:t}),(0,s.jsxs)("div",{style:{display:"flex",justifyContent:"center",marginBottom:"2rem"},children:[(0,s.jsx)("div",{className:"wpu_btn wpu_yes_btn",onClick:l,children:c?"Loading...":"Yes"}),(0,s.jsx)("div",{className:"wpu_btn wpu_close_btn",onClick:(0,r.Z)((0,i.Z)().mark((function n(){return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e();case 1:case"end":return n.stop()}}),n)}))),children:"Close"})]})]})})}})}},3035:function(e,n,t){var i=t(4165),r=t(5861),a=t(3576),o=t(1595);function s(){return(s=(0,r.Z)((0,i.Z)().mark((function e(n){var t,r,s,l,c,d,u,m,p,v,g,h,x,_,f;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.btnLoading,r=n.setBtnLoading,s=n.name,l=n.companyLink,c=n.role,d=n.id,u=n.file,m=n.isActionCreate,t){e.next=41;break}if(r(!0),e.prev=3,p="",!u){e.next=20;break}if(v="".concat(o.Z.BACKEND_BASE_URL,"/homePage/updateOrganizer/").concat(d),m&&(v="".concat(o.Z.CREATE_HOME_ORGANIZER_CARD)),(g=new FormData).append("file",u),!m){e.next=18;break}return e.next=13,(0,a.e$)({endpoint:v,formData:g});case 13:h=e.sent,console.log("res = ",h),p=h.data.imageLink,e.next=20;break;case 18:return e.next=20,(0,a.B6)({endpoint:v,formData:g});case 20:if(x="".concat(o.Z.BACKEND_BASE_URL,"/homePage/updateOrganizer/").concat(d),!m){e.next=28;break}return x="".concat(o.Z.CREATE_HOME_ORGANIZER_CARD),console.log("name = ",s,l,c),e.next=26,(0,a.e$)({endpoint:x,jsonBody:JSON.stringify({name:s,companyLink:l,role:"Co-organizer",imageLink:p})});case 26:e.next=30;break;case 28:return e.next=30,(0,a.B6)({endpoint:x,jsonBody:JSON.stringify({name:s,companyLink:l,role:c})});case 30:return console.log("first"),r(!1),e.abrupt("return",!0);case 35:return e.prev=35,e.t0=e.catch(3),console.log("error = ",e.t0),r(!1),null!==e.t0&&void 0!==e.t0&&e.t0.response?404===(null===(_=e.t0.response)||void 0===_?void 0:_.status)||401===(null===(f=e.t0.response)||void 0===f?void 0:f.status)?console.log("Server Error !!! Try Logging in again."):console.log("Login credit Expired.\nPlease Login Again!!!"):console.log("No server response."),e.abrupt("return",!1);case 41:case"end":return e.stop()}}),e,null,[[3,35]])})))).apply(this,arguments)}n.Z=function(e){return s.apply(this,arguments)}},6712:function(e,n,t){t.r(n),t.d(n,{default:function(){return A}});var i=t(4165),r=t(5861),a=t(9439),o=t(390),s=t(2559),l=function(e){var n=e.imgUrl,t=e.title;return(0,s.jsxs)("div",{className:"sectionThirteen_card",children:[(0,s.jsx)("div",{className:"sectionThirteen_card_top",children:(0,s.jsx)("img",{src:n,className:"sectionThirteen_card_top_image",alt:""})}),(0,s.jsx)("div",{className:"sectionThirteen_card_bottom",children:(0,s.jsx)("span",{className:"sectionThirteen_card_bottom_title",children:t})})]})},c=t(5384),d=(t(5141),t(3615)),u=t(9134),m=t(1595),p=t(4481),v=function(e){var n=e.data,t=e.editable,a=void 0!==t&&t;var o=function(){var e=(0,r.Z)((0,i.Z)().mark((function e(n){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.Z.delete("".concat(m.Z.BACKEND_BASE_URL,"/homePage/deleteMedia/").concat(n));case 2:e.sent&&window.location.reload();case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,s.jsx)("div",{className:"carousel_div",children:(0,s.jsx)(c.default,{responsive:{superLargeDesktop:{breakpoint:{max:4e3,min:1500},items:4},desktop:{breakpoint:{max:1500,min:993},items:4},tablet:{breakpoint:{max:993,min:464},items:3},mobile:{breakpoint:{max:664,min:0},items:1}},infinite:!0,autoPlay:!0,autoPlaySpeed:7e3,keyBoardControl:!0,containerClass:"carousel-container",removeArrowOnDeviceType:["tablet","mobile"],className:"carousel",children:n?null===n||void 0===n?void 0:n.map((function(e,n){var t,i,r=(0,p.Z)({inputURL:null!==(t=null===e||void 0===e?void 0:e.imageLink)&&void 0!==t?t:""});return(0,s.jsxs)("div",{id:"item.index",children:[a&&(0,s.jsx)(d.Z,{className:"carousel_image_item_delete",onClick:function(){o(null===e||void 0===e?void 0:e._id)}}),null!==e&&void 0!==e&&e.companyLink?(0,s.jsx)("a",{href:null!==(i=null===e||void 0===e?void 0:e.companyLink)&&void 0!==i?i:"#",target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("img",{src:r,alt:"",className:"carousel_image_item"})}):(0,s.jsx)("img",{src:r,alt:"",className:"carousel_image_item"})]},n)})):[{id:1,imageLink:"https://gebootcamp.com/assets/img/media/dailystar.png"},{id:2,imageLink:"https://gebootcamp.com/assets/img/media/setopati.png"},{id:3,imageLink:"https://gebootcamp.com/assets/img/media/barakhari.png"},{id:4,imageLink:"https://gebootcamp.com/assets/img/media/dailystar.png"},{id:5,imageLink:"https://gebootcamp.com/assets/img/media/setopati.png"},{id:6,imageLink:"https://gebootcamp.com/assets/img/media/barakhari.png"}].map((function(e,n){return(0,s.jsx)("div",{id:e.id,children:(0,s.jsx)("img",{src:e.imageLink,alt:"",className:"carousel_image_item"})},n)}))})})},g=t(1750),h=t(3576);function x(){return(x=(0,r.Z)((0,i.Z)().mark((function e(n){var t,r,a,o,s,l,c;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.setOrganizer,r=n.dispatch,e.prev=1,e.next=4,(0,h.uL)({endpoint:m.Z.GET_ORGANIZER});case 4:return a=e.sent,o=a.data,r(t(o)),e.abrupt("return");case 10:return e.prev=10,e.t0=e.catch(1),console.log("error = ",e.t0),null!==e.t0&&void 0!==e.t0&&e.t0.response?404===(null===(s=e.t0.response)||void 0===s?void 0:s.status)?console.log("Page Not Found"):400===(null===(l=e.t0.response)||void 0===l?void 0:l.status)||401===(null===(c=e.t0.response)||void 0===c?void 0:c.status)?console.log("User Credit Expired!!!\nPlease Login Again."):console.log("Internal Server Error."):console.log("No server response."),e.abrupt("return");case 15:case"end":return e.stop()}}),e,null,[[1,10]])})))).apply(this,arguments)}var _=function(e){return x.apply(this,arguments)},f=t(1473);function b(){return(b=(0,r.Z)((0,i.Z)().mark((function e(n){var t,r,a,o,s,l,c;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.setMedia,r=n.dispatch,e.prev=1,e.next=4,(0,h.uL)({endpoint:m.Z.GET_MEDIA});case 4:return a=e.sent,o=a.data,r(t(o)),e.abrupt("return");case 10:return e.prev=10,e.t0=e.catch(1),console.log("error = ",e.t0),null!==e.t0&&void 0!==e.t0&&e.t0.response?404===(null===(s=e.t0.response)||void 0===s?void 0:s.status)?console.log("Page Not Found"):400===(null===(l=e.t0.response)||void 0===l?void 0:l.status)||401===(null===(c=e.t0.response)||void 0===c?void 0:c.status)?console.log("User Credit Expired!!!\nPlease Login Again."):console.log("Internal Server Error."):console.log("No Server Response."),e.abrupt("return");case 15:case"end":return e.stop()}}),e,null,[[1,10]])})))).apply(this,arguments)}var j=function(e){return b.apply(this,arguments)},k=t(6825),N=t(3035),L=t(9263);function Z(){return(Z=(0,r.Z)((0,i.Z)().mark((function e(n){var t,r,a,o,s,l,c;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.btnLoading,r=n.setBtnLoading,a=n.companyLink,o=n.file,t){e.next=19;break}return r(!0),e.prev=3,(s=new FormData).append("file",o),s.append("companyLink",null!==a&&void 0!==a?a:"#"),e.next=9,(0,h.e$)({endpoint:m.Z.ADD_MEDIA,formData:s});case 9:return r(!1),e.abrupt("return",!0);case 13:return e.prev=13,e.t0=e.catch(3),console.log("error = ",e.t0),r(!1),null!==e.t0&&void 0!==e.t0&&e.t0.response?404===(null===(l=e.t0.response)||void 0===l?void 0:l.status)||401===(null===(c=e.t0.response)||void 0===c?void 0:c.status)?console.log("Server Error !!! Try Logging in again."):console.log("Login credit Expired.\nPlease Login Again!!!"):console.log("No server response."),e.abrupt("return",!1);case 19:case"end":return e.stop()}}),e,null,[[3,13]])})))).apply(this,arguments)}var y=function(e){return Z.apply(this,arguments)},C=t(5722);function w(){return(w=(0,r.Z)((0,i.Z)().mark((function e(n){var t,r,a,o,s;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.setBtnLoading,r=n.btnLoading,a=n.id,r){e.next=16;break}return t(!0),e.prev=3,e.next=6,(0,h.Sp)({endpoint:"".concat(m.Z.DELETE_HOME_ORGANIZER,"/").concat(a)});case 6:return t(!1),e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(3),console.log("error = ",e.t0),t(!1),null!==e.t0&&void 0!==e.t0&&e.t0.response?404===(null===(o=e.t0.response)||void 0===o?void 0:o.status)||401===(null===(s=e.t0.response)||void 0===s?void 0:s.status)?console.log("Server Error !!! Try Logging in again."):console.log("Login credit Expired.\nPlease Login Again!!!"):console.log("No server response."),e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e,null,[[3,10]])})))).apply(this,arguments)}var E=function(e){return w.apply(this,arguments)},A=function(e){var n=e.editable,t=void 0!==n&&n,c=(0,o.useState)(!1),u=(0,a.Z)(c,2),m=u[0],h=u[1],x=(0,g.I0)(),b=(0,g.v9)((function(e){return e.sectionThirteen})),Z=(0,g.v9)((function(e){return e.sectionThirteenTwo}));(0,o.useEffect)((function(){_({setOrganizer:f.C,dispatch:x}),j({setMedia:k.b,dispatch:x})}),[]);var w=function(){var e=(0,r.Z)((0,i.Z)().mark((function e(n){var t;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.id,e.next=3,E({btnLoading:m,setBtnLoading:h,id:t});case 3:e.sent&&window.location.reload();case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),A=function(e){var n=e.nameItem,t=e.link,l=e.roleItem,c=e.id,d=e.isActionCreate,u=e.title,m=(0,o.useState)(""),p=(0,a.Z)(m,2),v=p[0],g=p[1],h=(0,o.useState)(""),x=(0,a.Z)(h,2),_=x[0],f=x[1],b=(0,o.useState)(""),j=(0,a.Z)(b,2),k=j[0],Z=j[1],y=(0,o.useState)(null),C=(0,a.Z)(y,2),w=C[0],E=C[1],A=(0,o.useState)(!1),T=(0,a.Z)(A,2),S=T[0],B=T[1];function R(){window.location.reload()}(0,o.useEffect)((function(){g(n),f(t),Z(l)}),[]);var D=function(){var e=(0,r.Z)((0,i.Z)().mark((function e(n){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),!d){e.next=8;break}return e.next=4,(0,N.Z)({isActionCreate:d,name:v,role:k,companyLink:_,file:w,id:c,btnLoading:S,setBtnLoading:B});case 4:e.sent&&R(),e.next=12;break;case 8:return e.next=10,(0,N.Z)({name:v,role:k,companyLink:_,file:w,id:c,btnLoading:S,setBtnLoading:B});case 10:e.sent&&R();case 12:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,s.jsx)(L.Z,{trigger:(0,s.jsx)("div",{className:"edit_btn ",children:null!==u&&void 0!==u?u:"Edit"}),modal:!0,children:function(e){return(0,s.jsx)("div",{className:"ehp_edit_popup",children:(0,s.jsxs)("div",{className:"edit_model",children:[(0,s.jsx)("div",{className:"edit_model_top",children:(0,s.jsx)("h1",{className:"edit_model_top_header",children:null!==u&&void 0!==u?u:"Edit Organizer Card"})}),(0,s.jsxs)("div",{className:"edit_model_main",children:[(0,s.jsxs)("div",{className:"edit_model_items",children:[(0,s.jsx)("label",{htmlFor:"name",className:"edit_model_items_label",children:"Name:"}
1),(0,s.jsx)("input",{type:"text ",id:"name",value:v,onChange:function(e){g(e.target.value)}})]}),(0,s.jsxs)("div",{className:"edit_model_items",children:[(0,s.jsx)("label",{htmlFor:"companyLink",className:"edit_model_items_label",children:"Company Link:"}),(0,s.jsx)("input",{type:"text",id:"companyLink",value:_,onChange:function(e){f(e.target.value)}})]}),!d&&(0,s.jsxs)("div",{className:"edit_model_items",children:[(0,s.jsx)("label",{htmlFor:"role",className:"edit_model_items_label",children:"Role:"}),(0,s.jsx)("input",{type:"text",id:"role",value:k,onChange:function(e){Z(e.target.value)}})]}),(0,s.jsxs)("div",{className:"edit_model_items",children:[(0,s.jsxs)("label",{htmlFor:"image",className:"edit_model_items_label",children:["Image File: ",(0,s.jsx)("span",{style:{color:"red"},children:d&&"Required"})]}),(0,s.jsx)("input",{type:"file",id:"image",name:"file",accept:".png, .jpg, .jpeg, .svg",onChange:function(e){E(e.target.files[0])}})]}),(0,s.jsxs)("div",{className:"edit_model_button",children:[(0,s.jsx)("button",{onClick:D,children:S?"Loading...":"submit"}),(0,s.jsx)("button",{className:"edit_model_button_close",onClick:function(){e()},children:"Close"})]})]})]})})}})},T=function(){var e=(0,o.useState)(1),n=(0,a.Z)(e,2),t=n[0],l=(n[1],(0,o.useState)("")),c=(0,a.Z)(l,2),d=c[0],u=c[1],m=(0,o.useState)(null),p=(0,a.Z)(m,2),v=p[0],g=p[1],h=(0,o.useState)(!1),x=(0,a.Z)(h,2),_=x[0],f=x[1];var b=function(){var e=(0,r.Z)((0,i.Z)().mark((function e(n){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),e.next=3,y({companyLink:d,file:v,btnLoading:_,setBtnLoading:f});case 3:e.sent&&window.location.reload();case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,s.jsx)(L.Z,{trigger:(0,s.jsx)("div",{className:"add_media",style:{transform:"scale(".concat(t,")"),transition:"transform 0.3s ease"},children:"Add Media"}),modal:!0,children:function(e){return(0,s.jsx)("div",{className:"ehp_edit_popup",children:(0,s.jsxs)("div",{className:"edit_model",children:[(0,s.jsx)("div",{className:"edit_model_top",children:(0,s.jsx)("h1",{className:"edit_model_top_header",children:"Add Media"})}),(0,s.jsxs)("div",{className:"edit_model_main",children:[(0,s.jsxs)("div",{className:"edit_model_items",children:[(0,s.jsx)("label",{htmlFor:"companyLink",className:"edit_model_items_label",children:"Comapany Link"}),(0,s.jsx)("input",{type:"text ",id:"companyLink",value:d,onChange:function(e){u(e.target.value)}})]}),(0,s.jsxs)("div",{className:"edit_model_items",children:[(0,s.jsx)("label",{htmlFor:"image",className:"edit_model_items_label",children:"Image File:"}),(0,s.jsx)("input",{type:"file",id:"image",name:"file",accept:".png, .jpg, .jpeg, .svg",onChange:function(e){g(e.target.files[0])}})]}),(0,s.jsxs)("div",{className:"edit_model_button",children:[(0,s.jsx)("button",{onClick:b,children:_?"Loading...":"submit"}),(0,s.jsx)("button",{className:"edit_model_button_close",onClick:function(){e()},children:"Close"})]})]})]})})}})};return(0,s.jsxs)("div",{className:"sectionThirteen",children:[(0,s.jsx)("div",{className:"sectionThirteen_top",children:null===b||void 0===b?void 0:b.organizer.map((function(e,n){var i,r;return(0,s.jsxs)("div",{className:"sectionThriteen_top_item",children:[(0,s.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[t&&(0,s.jsx)(A,{nameItem:null===e||void 0===e?void 0:e.name,roleItem:null===e||void 0===e?void 0:e.role,link:null===e||void 0===e?void 0:e.companyLink,id:null===e||void 0===e?void 0:e._id}),t&&"Co-organizer"===(null===e||void 0===e?void 0:e.role)?(0,s.jsx)("div",{style:{cursor:"pointer"},children:(0,s.jsx)(C.Z,{trigger:(0,s.jsx)(d.Z,{}),handelSubmit:function(){var n;w({id:null!==(n=null===e||void 0===e?void 0:e._id)&&void 0!==n?n:""})},isBtnLoading:m,popUpTitle:"Are you Sure You Want to delete?"})}):""]}),(0,s.jsx)(l,{imgUrl:(0,p.Z)({inputURL:null!==(i=null===e||void 0===e?void 0:e.imageLink)&&void 0!==i?i:""}),title:null!==(r=null===e||void 0===e?void 0:e.role)&&void 0!==r?r:"Co-organizer"})]},n)}))}),(0,s.jsx)("div",{style:{margin:"3rem 0"},children:t&&(0,s.jsx)(A,{title:"Add New Co-organizer",isActionCreate:!0,nameItem:"",roleItem:"",link:"",id:""})}),(0,s.jsxs)("div",{className:"sectionThirteen_bottom",children:[(0,s.jsxs)("div",{className:"sectionThirteen_bottom_top",children:[(0,s.jsx)("span",{className:"sectionThirteen_bottom_top_header",children:"Media coverages of Global"}),(0,s.jsxs)("span",{className:"sectionThirteen_bottom_top_header",children:["Entrepreneurship ",(0,s.jsx)("span",{className:"p_color",children:"Bootcamp"})]})]}),(0,s.jsxs)("div",{className:"sectionThirteen_bottom_body",children:[t&&(0,s.jsx)(T,{}),(0,s.jsx)(v,{data:null===Z||void 0===Z?void 0:Z.media,editable:t})]})]})]})}}}]);
2//# sourceMappingURL=6712.771bc9ce.chunk.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.