PageSourceSearch

https://profesea.id/_next/static/chunks/pages/admin/leads-manageme…DropdownLeadsManagement-8523e8c11a30282b.js

js profesea.id collected 2026-09-24 13:52:18 UTC 1,894 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5298],{80811:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/leads-management/StatusDropdownLeadsManagement",function(){return n(28172)}])},28172:function(e,t,n){"use strict";n.r(t);var a=n(85893),o=n(18360),s=n(18972),u=n(67294),c=n(29204),l=n(86501),d=n(11280);let r=e=>{let{currentStatus:t,leadId:n,onStatusUpdated:r}=e,[i,p]=(0,u.useState)(t),[f,g]=(0,u.useState)(!1),h=async e=>{var a,o,s,u;if(!f){g(!0);try{let t=await d.e.put("/dashboard/user-leads/".concat(n,"/set-status"),{status:e});if(200!==t.status)throw null!==(a=t.data.message)&&void 0!==a?a:"Failed to update status!";p(e),l.Am.success("Status updated successfully!"),r&&r()}catch(n){let e="Failed to update status!";n instanceof c.d7&&(e=null!==(u=null==n?void 0:null===(o=n.response)||void 0===o?void 0:null===(s=o.data)||void 0===s?void 0:s.message)&&void 0!==u?u:e),"string"==typeof n&&(e=n),l.Am.error("Opps ".concat(e)),p(t)}finally{g(!1)}}},v=(e=>{switch(e){case"uncontacted":return{bg:"#D8F0FF",color:"#404040"};case"contacted":return{bg:"#F9DFCB",color:"#404040"};case"closed":return{bg:"#6EEEA1",color:"#404040"};default:return{bg:"#F5F5F5",color:"#404040"}}})(i);return(0,a.jsxs)(o.Z,{size:"small",value:i,onChange:e=>h(e.target.value),disabled:f,MenuProps:{PaperProps:{sx:{zIndex:9999}}},sx:{backgroundColor:v.bg,color:v.color,fontWeight:600,fontSize:12,width:"100%",opacity:f?.6:1,"& .MuiOutlinedInput-notchedOutline":{border:"none"},"&:hover":{backgroundColor:v.bg},"& .MuiSelect-select":{padding:"6px 12px"}},children:[(0,a.jsx)(s.Z,{value:"uncontacted",sx:{fontSize:12},children:"Uncontacted"}),(0,a.jsx)(s.Z,{value:"contacted",sx:{fontSize:12},children:"Contacted"}),(0,a.jsx)(s.Z,{value:"closed",sx:{fontSize:12},children:"Closed"})]})};t.default=r}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=80811)}),_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.