1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3419],{3184:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return S}});var o=t(50029),s=t(59499),i=t(87794),l=t.n(i),c=t(67294),a=t(11163),r=t.n(a),d=t(62050),m=t(87629),v=t(46020),u=t.n(v),f=t(71508),p=t(91659),h=t(76046),g=t(64023),x=t(97837),w=t(81800),j=t(73681),N=t(95303),b=t(48509),k=t(85893),y=h.styled.button.withConfig({displayName:"EventInfoPage__ButtonCopy",componentId:"sc-1vlnxo2-0"})(["height:36px;border:2px solid ",";background-color:",";border-radius:6px;margin-top:7.5px;"],N.$_.primary,N.$_.white),I=function(e){var n,t=e.eventsID,s=e.organizerID,i=e.sideNav,a=void 0===i?[]:i,d=e.account,v=window.location.origin?window.location.origin:"",h=(0,b.CP)(),N=h.eventInfo,I=(h.setEventInfo,(0,b.wm)().roleConfig),D=(0,c.useState)(!1),_=D[0],C=D[1],E=window.location.href?window.location.href:"",S=N.name,O=N.eventCode,P=N.cover,z=N.eventDateTimeStart,U=N.eventDateTimeEnd,T=(N.eventType,N.virtualWebUrl),L=N.venue,R=N.registerFormConfigID,Z=N.registerDefaultLanguage,F=N.startOnlineDate,B=N.endOnlineDate,Q=N.linkRegister,V=function(){var e=(0,o.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=document.getElementById(n),e.next=3,u()(t,{allowTaint:!0,useCORS:!0}).then((function(e){var t=e.toDataURL("image/jpg"),o=document.createElement("a");"string"===typeof o.download&&(o.href=t,o.download="".concat(n),document.body.appendChild(o),o.click(),document.body.removeChild(o))}));case 3:e.sent;case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),G=function(){var e=(0,o.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==Q&&void 0!==Q&&Q.shortUrl){e.next=2;break}return e.abrupt("return");case 2:window.localStorage.setItem("full_link_".concat(t,"_").concat(null===d||void 0===d?void 0:d.accountID),!0),x.F.showSuccessToast("General link Success"),C(!0);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){!function(){var e=window.localStorage.getItem("full_link_".concat(t,"_").concat(null===d||void 0===d?void 0:d.accountID))||null;C(Boolean(e))}()}),[E]),(0,k.jsx)(m.Z,{className:"my-3",sideNav:a,backToPath:"/organizers/".concat(s,"/events/").concat(t,"?page=info"),isShowSubNavMenuEvent:!0,isShowSideNav:!0,showPublicEvent:!0,showBtnPreview:!0,children:(0,k.jsx)("div",{className:"container-fluid",children:(0,k.jsx)("div",{className:"event-container px-3 py-4 mt-4 overflow-x-hidden",children:(0,k.jsxs)("div",{className:"row",children:[(0,k.jsxs)("div",{className:"col-12 d-flex align-items-center justify-content-between",children:[(0,k.jsx)("p",{className:"fs-28 fw-bold text_blue m-0",children:"Event Info"}),null!==I&&void 0!==I&&null!==(n=I.eventSettingGrant)&&void 0!==n&&n.eventInfo?(0,k.jsx)(p.ZP,{"data-tooltip-id":"tooltip","data-tooltip-content":"Edit Event Info",outlined:!0,heightSize:"s",className:"btn w-max p-0",onClick:function(){return r().push("/organizers/[organizerID]/events/[eventsID]?page=info","/organizers/".concat(s,"/events/").concat(t,"?page=info"))},children:(0,k.jsx)("img",{src:"/assets/icons/edit-event.svg"})}):null]}),(0,k.jsx)("div",{className:"col-12 col-md-3 mt-4 fw-bold",children:"Event Name"}),(0,k.jsx)("div",{className:"col-12 col-md-9 mt-4 text-truncate",children:S}),(0,k.jsx)("div",{className:"col-12 col-md-3 mt-4 fw-bold",children:"Event Code"}),(0,k.jsx)("div",{className:"col-12 col-md-9 mt-4",children:O}),(0,k.jsx)("div",{className:"col-12 col-sm-3 mt-4 fw-bold",children:"Event Banner"}),(0,k.jsx)("div",{className:"col-12 col-sm-9 my-4",children:(0,k.jsx)("img",{className:"event-banner-preview",src:(0,w.tY)(P.fileUrl)})}),(0,k.jsx)("div",{className:"col-12 col-md-3 mt-4 fw-bold",children:"Event Date & Time"}),(0,k.jsx)("div",{className:"col-12 col-md-9 mt-4",children:(0,k.jsxs)("div",{className:"row",children:[(0,k.jsxs)("div",{className:"col-6 col-md-5 ",children:["Start at ",(0,j.Vw)(z)," "]}),(0,k.jsxs)("div",{className:"col-6 col-md-5 ",children:["End at ",(0,j.Vw)(U)," "]})]})}),(0,k.jsx)("div",{className:"col-12 col-md-3 mt-4 fw-bold",children:"Online Registration Date & Time"}),(0,k.jsx)("div",{className:"col-12 col-md-9 mt-4",children:(0,k.jsxs)("div",{className:"row",children:[(0,k.jsxs)("div",{className:"col-6 col-md-5",children:["Start at ",(0,j.Vw)(F)||(0,k.jsx)("span",{className:"ml-3",children:"-"})," "]}),(0,k.jsxs)("div",{className:"col-6 col-md-5",children:["End at ",(0,j.Vw)(B)||
1(0,k.jsx)("span",{className:"ml-3",children:"-"})," "]})]})}),(0,k.jsx)("div",{className:"col-12 col-md-3 mt-4 fw-bold",children:"Venue"}),(0,k.jsx)("div",{className:"col-12 col-md-9 mt-4 text-truncate",children:L||"-"}),(0,k.jsx)("div",{className:"col-12 col-md-3 mt-4 fw-bold",children:"Website"}),(0,k.jsx)("div",{className:"col-12 col-md-6 mt-4 d-flex",children:(0,k.jsx)("div",{className:"text-truncate",children:T||"-"})}),(0,k.jsx)("div",{className:"col-0 col-md-3 mt-4"}),(0,k.jsx)("div",{className:"col-12 col-md-3 mt-0 mt-md-4 fw-bold d-flex align-items-center",children:"Website Registration"}),(0,k.jsxs)("div",{className:"col-12 col-md-6 mt-4 d-flex align-items-center",children:[(0,k.jsx)("div",{className:"text-truncate",children:(null===Q||void 0===Q?void 0:Q.shortUrl)||""}),null!==Q&&void 0!==Q&&Q.shortUrl?(0,k.jsxs)("div",{className:"d-flex align-items-center ml-3",children:[(0,k.jsx)("img",{"data-tooltip-id":"tooltip","data-tooltip-content":"Copy Link",className:"p-0 cursor-pointer",src:"/assets/icons/new-nav_link.svg",onClick:function(){null!==Q&&void 0!==Q&&Q.shortUrl&&((0,g.vQ)(null===Q||void 0===Q?void 0:Q.shortUrl),x.F.showSuccessToast("Copy Link Success"))}}),(0,k.jsx)("img",{"data-tooltip-id":"tooltip","data-tooltip-content":"Preview",className:"p-0 cursor-pointer",src:"/assets/icons/new-nav_preview.svg",onClick:function(){var e=document.createElement("a"),n="".concat(v,"/").concat(O,"/preview?registerFormConfigID=").concat(R,"&languageID=").concat(Z,"&isPreview=true");e.target="_blank",e.href=n,e.click()}}),_?null:(0,k.jsx)("img",{"data-tooltip-id":"tooltip","data-tooltip-content":"General link",className:"ml-2 cursor-pointer",width:24,height:24,src:"/assets/icons/icon-park-outline_link-in.svg",onClick:G})]}):null]}),(0,k.jsx)("div",{className:"col-0 col-md-3 mt-4"}),_?(0,k.jsxs)(c.Fragment,{children:[(0,k.jsx)("div",{className:"col-12 col-md-3 mt-0 mt-md-4 fw-bold d-flex align-items-center",children:"Website Registration Link"}),(0,k.jsxs)("div",{className:"col-12 col-md-6 mt-4 d-flex align-items-center",children:[(0,k.jsx)("div",{className:"text-truncate",children:null===Q||void 0===Q?void 0:Q.fullUrl}),(0,k.jsx)("div",{className:"d-flex align-items-center",children:(0,k.jsx)("img",{"data-tooltip-id":"tooltip","data-tooltip-content":"Copy Link",className:"p-0 cursor-pointer",src:"/assets/icons/new-nav_link.svg",onClick:function(){null!==Q&&void 0!==Q&&Q.fullUrl&&((0,g.vQ)(null===Q||void 0===Q?void 0:Q.fullUrl),x.F.showSuccessToast("Copy Link Success"))}})})]}),(0,k.jsx)("div",{className:"col-0 col-md-3 mt-4"})]}):null,(0,k.jsx)("div",{className:"col-12 col-md-3 mt-3 fw-bold",children:"QR Code"}),(0,k.jsxs)("div",{className:"col-12 col-md-9 mt-3",children:[(0,k.jsx)("div",{className:"ml-1",children:null!==Q&&void 0!==Q&&Q.shortUrl?(0,k.jsx)(f.ZP,{id:"qr-preview",value:(null===Q||void 0===Q?void 0:Q.shortUrl)||"",size:200,level:"H",includeMargin:!1,className:"p-2"}):null}),(0,k.jsxs)("div",{className:"d-flex gap-2",children:[(0,k.jsx)(y,{"data-tooltip-id":"tooltip","data-tooltip-content":"Copy Link QR Code",onClick:function(){null!==Q&&void 0!==Q&&Q.shortUrl&&((0,g.vQ)(null===Q||void 0===Q?void 0:Q.shortUrl),x.F.showSuccessToast("Copy Link Success"))},children:(0,k.jsx)("img",{className:"mx-1",src:" /assets/icons/copy-ico-primary.svg"})}),(0,k.jsx)(p.ZP,{type:"button",outlined:!0,className:"mt-2 w-154 ml-1",heightSize:"s",onClick:function(){V("qr-preview")},children:"Download"})]})]})]})})})})},D=t(95160);function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E=function(e){var n=e.organizerID,t=e.eventsID;return(0,k.jsx)(I,C(C({},e),{},{sideNav:(0,D.Nm)({organizerID:n,eventsID:t}),MANAGE_LINKS:{edit:{href:"/organizers/[organizerID]/events/[eventsID]/manage/event-setting/event-info",as:"/organizers/".concat(n,"/events/").concat(t,"/manage/event-setting/event-info")}}}))};E.getInitialProps=function(){var e=(0,o.Z)(l().mark((function e(n){var t,o,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query,o={organizerID:t.organizerID,eventID:t.eventsID},e.next=4,d.Z.getInfoEvent(o,n);case 4:return s=e.sent,e.abrupt("return",C(C({},t),{},{eventInfo:"create-event"!==t.eventsID?s.data.result:{}}));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var S=(0,a.withRouter)(E)},1642:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/organizers/[organizerID]/events/[eventsID]/manage/event-setting",function(){return t(3184)}])}},function(e){e.O(0,[5443,8209,7573,4390,814,6255,7629,9774,2888,179],(function(){return n=1642,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.