1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5013],{33831:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[databaseType]/patient-population-multinational/[id]",function(){return a(64774)}])},64774:function(e,t,a){"use strict";a.r(t),a.d(t,{PatientPopulationMultinationalDetailPage:function(){return p}});var s=a(85893),n=a(36963),i=a(3403),l=a(33587),o=a(41463),u=a(71404),r=a(54709),d=a(11163),c=a(67294);function p(){let e=(0,c.useRef)(null),[t,a]=(0,c.useState)(),[u,r]=(0,c.useState)(!1),[p,m]=(0,c.useState)({}),[x,v]=(0,c.useState)(!1),{query:f,isReady:w}=(0,d.useRouter)(),{id:y}=f,h=async e=>{var a,s,i,l,o;try{r(!0),await (0,n.iq)(Number(y),{...e}),m({key:Number(null!==(a=p.key)&&void 0!==a?a:0)+1,status:"success",message:"Patient population multinational updated successfully!"}),window.scrollTo({top:0}),window.opener&&window.opener.postMessage({action:"updateDataBlank",id:Number(null==t?void 0:t.id),updatedData:{...t,...e}},"*"),setTimeout(()=>{window.close()},500)}catch(u){m({key:Number(null!==(o=p.
1key)&&void 0!==o?o:0)+1,status:"error",message:(null===(s=u.response)||void 0===s?void 0:s.status)===409?null===(i=u.response)||void 0===i?void 0:null===(l=i.data)||void 0===l?void 0:l.message:"An error occurred"})}finally{r(!1)}},N=async()=>{try{r(!0);let e=await (0,n.bG)(Number(y));a({...e.data.data})}catch(s){var t;m({key:Number(null!==(t=p.key)&&void 0!==t?t:0)+1,status:"error",message:"Failed to get patient population multinational detail"})}finally{r(!1)}},b=()=>{var t,a;null===(t=e.current)||void 0===t||null===(a=t.emitData)||void 0===a||a.call(t)};return(0,c.useEffect)(()=>{w&&N()},[f,w]),(0,s.jsxs)("div",{className:"px-5",children:[u&&(0,s.jsx)(l.Z,{}),(0,s.jsx)(i.Z,{className:"!px-[20px]",fullScreen:!0,message:p.message,status:p.status},p.key),(0,s.jsx)("div",{className:"text-[27px] font-[300] mt-5",children:"Editing patient population multinational"}),(0,s.jsx)("div",{className:"w-full bg-[#E7E7E7] h-[1px] mb-5"}),(0,s.jsx)(o.Z,{onSubmit:h,ref:e,patientPopulationMultinationalDetail:t,setCheckTyped:v}),(0,s.jsx)("div",{className:"bg-[#E7E7E7] h-[2px] my-4 mx-5"}),(0,s.jsxs)("div",{className:"flex items-center gap-[10px] pb-5 px-5",children:[(0,s.jsx)("button",{className:"btn-primary hover:opacity-[0.9]",disabled:!x,onClick:b,children:"Save"}),(0,s.jsx)("button",{className:"text-primary-1 text-[14px] rounded-[4px] hover:opacity-[0.9]",onClick:()=>{window.close()},children:"Close"})]})]})}let m=(0,u.Z)(p);m.getLayout=function(e){return(0,s.jsx)(r.Z,{isShowHeaderNavBar:!1,isShowHeaderSearch:!1,isShowHeaderAddFeature:!1,children:e})},t.default=m}},function(e){e.O(0,[3662,5445,6556,7403,1664,9199,5675,3860,65,3480,443,9358,9774,2888,179],function(){return e(e.s=33831)}),_N_E=e.O()}]);
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.