1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8561],{2223:function(e,t,a){a.d(t,{z:function(){return i.z}});var i=a(9944)},72741:function(e,t,a){var i=a(11527),n=a(50959),l=a(79685);a(88414),t.Z=e=>{let{value:t="",className:a,placeholder:r="Enter phone number",disableDialCodePrefill:s=!1,required:d=!1,onFocus:o,onChange:c,onBlur:u,hasError:m=!1}=e,[p,h]=(0,n.useState)(t),[x,f]=(0,n.useState)(!1),g=a&&/\bw-\d|\bw-\[/.test(a),v=g?a:"w-full max-w-md ".concat(a||"");(0,n.useEffect)(()=>{h(t)},[t]);let y=(0,n.useCallback)(e=>{h(e),c&&c(e)},[c]),b=(0,n.useCallback)(()=>{f(!0),o&&o()},[o]),j=(0,n.useCallback)(()=>{f(!1)},[]);return(0,i.jsx)(l.sb,{style:{width:"100%",height:"42px",borderRadius:"8px",background:"#F9FAFB",border:m?"1px solid #EF4444":x?"1px solid #5AC35D":"1px solid #D1D5DB",boxShadow:x?m?"0 0 0 1px #EF4444":"0 0 0 1px #5AC35D":"none"},inputStyle:{borderTopRightRadius:"8px",borderBottomRightRadius:"8px",width:"100%",height:"42px",background:"transparent",border:"none",outline:"none",boxShadow:"none",fontSize:"0.875rem",color:"#111827",paddingLeft:"12px"},countrySelectorStyleProps:{buttonStyle:{borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",height:"42px",background:"transparent",border:"none",padding:"0 8px",borderRight:"1px solid #E5E7EB"},dropdownStyleProps:{style:{position:"absolute",borderRadius:"10px",borderBlockColor:"#E5E7EB"}}},defaultCountry:"in",value:p,onChange:y,disableDialCodePrefill:s,placeholder:r,required:d,onFocus:b,onBlur:j,className:"".concat(v," focus-within:ring-0")})}},41775:function(e,t,a){var i=a(11527),n=a(23255),l=a(50959),r=a(34639),s=a(8005),d=a(67808);t.Z=e=>{let{setShowModal:t,onError:a,setUserimage:o}=e,{user:c}=(0,r.S)(),[u,m]=(0,l.useState)(!1),{data:p}=(0,n.useSession)(),h=null==p?void 0:p.jwt,fileChangedHandler=async e=>{let t=e.target.files;if(t){let e=t[0];if(!(null==e?void 0:e.type.startsWith("image/"))){a("File type should be an image.");return}if(e.size>10485760){a("File size should not exceed 10 MB.");return}uploadHandler(e)}},uploadHandler=async e=>{try{var a,i;m(!0);let t=await new Promise((t,a)=>{let i=new FileReader;i.readAsDataURL(e),i.onload=()=>t(i.result),i.onerror=e=>a(e)}),n=await (0,s.U)("/api/upload",{method:"POST",body:JSON.stringify({base64:t,path:(null==p?void 0:null===(i=p.user)||void 0===i?void 0:null===(a=i.organization)||void 0===a?void 0:a.slug)||"document_uploads",fileName:e.name}),headers:{Authorization:"Bearer ".concat(h),"Content-Type":"application/json"}});if(!n.ok)throw Error("HTTP error! status: ".concat(n.status));let l=await n.json(),r=l[0].id,u=await (0,s.U)("/api/users/".concat(null==c?void 0:c.id),{method:"PUT",body:JSON.stringify({user_image:r.toString()}),headers:{Authorization:"Bearer ".concat(h),"Content-Type":"application/json"}});if(!u.ok)throw Error("Error updating Media. Status: ".concat(u.status));(0,d.K2)(null==c?void 0:c.id),null==o||o(l[0].url)}catch(e){alert("Error uploading file")}finally{t(!1),m(!1)}let n=document.getElementById("dropzone-file");n.value=""};return(0,i.jsxs)("div",{className:"flex w-full z-10",children:[(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)("div",{className:"flex items-center justify-center w-full",children:(0,i.jsxs)("label",{htmlFor:"dropzone-file",className:"flex flex-col items-center justify-center w-full h-64 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600",children:[(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center pt-5 pb-6",children:[(0,i.jsx)("svg",{"aria-hidden":"true",className:"w-10 h-10 mb-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})}),(0,i.jsx)("p",{className:"mb-2 text-sm text-gray-500 dark:text-gray-400",children:(0,i.jsx)("span",{className:"font-semibold",children:"Click to upload"})}),(0,i.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:"PNG, JPEG (MAX. 10MB)"})]}),(0,i.jsx)("input",{id:"dropzone-file",type:"file",accept:"image/*",className:"hidden",onChange:fileChangedHandler,disabled:u})]})})}),u&&(0,i.jsxs)("div",{role:"status",className:"absolute flex justify-center items-center bg-white dark:bg-gray-700 w-full h-full",children:[(0,i.jsxs)("svg",{"aria-hidden":"true",className:"w-8 h-8 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.
11071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,i.jsx)("span",{className:"sr-only",children:"Loading..."})]})]})}},62577:function(e,t,a){var i=a(11527),n=a(7415),l=a(84288),r=a(23255),s=a(97892),d=a(50959),o=a(70119),c=a(66027),u=a(34639),m=a(49725),p=a(54053),h=a(99008),x=a(8005),f=a(72741);t.Z=function(e){var t;let{setSubmitButtonTooltip:a,setIsProfileDirty:g}=e,{user:v,setUser:y}=(0,u.S)(),{data:b}=(0,r.useSession)(),{addToast:j}=(0,c.p)(),[k,w]=(0,d.useState)(""),[_,C]=(0,d.useState)(""),[N,S]=(0,d.useState)(""),[E,I]=(0,d.useState)(""),[U,z]=(0,d.useState)(""),[P,F]=(0,d.useState)(""),[A,B]=(0,d.useState)(""),[R,Z]=(0,d.useState)(""),[D,L]=(0,d.useState)({}),[M,T]=(0,d.useState)(""),[V,G]=(0,d.useState)(""),[J,O]=(0,d.useState)(""),[K,q]=(0,d.useState)([]),[H,W]=(0,d.useState)([]),[$,Q]=(0,d.useState)([]),[X,Y]=(0,d.useState)(!1),[ee,et]=(0,d.useState)(!1),[ea,ei]=(0,d.useState)(void 0),en=(0,d.useRef)(null),[el,er]=(0,d.useState)(!1),es=["places"],validateZipCode=(e,t)=>{if(!t)return!1;if(!e&&p.J.includes(t))return!0;if(!e)return!1;if(p.J.includes(t))return!0;let a=K.find(e=>e.name===t),i=null==a?void 0:a.id;if(!i)return console.warn("No ISO code found for country: ".concat(t)),!1;let n=s.validate(i.toUpperCase(),e);return!0===n};(0,d.useEffect)(()=>{let e=!0,loadGeocodingKey=async()=>{try{let t=await (0,h.s)();e&&ei(t)}catch(e){console.warn("Failed to fetch geocoding key for profile address:",e)}};return loadGeocodingKey(),()=>{e=!1}},[]),(0,d.useEffect)(()=>{if(null==v?void 0:v.id){var e;w((null==v?void 0:v.first_name)||""),C((null==v?void 0:v.last_name)||""),S((null==v?void 0:v.address)||""),I((null==v?void 0:v.email)||""),z(formatPhoneNumber(null==v?void 0:v.phone)||""),F((null==v?void 0:null===(e=v.organization)||void 0===e?void 0:e.name)||""),B((null==v?void 0:v.department)||""),Z((null==v?void 0:v.pin_code)||""),G((null==v?void 0:v.country)||""),T((null==v?void 0:v.state)||""),O((null==v?void 0:v.city)||""),et(!0)}},[null==v?void 0:v.id]),(0,d.useEffect)(()=>{let fetchData=async()=>{try{let e=[],t=[];m.data.forEach(a=>{t.push({id:a.iso2,name:a.name}),a.states.forEach(t=>{e.push({id:t.state_code,name:t.name,country:a.name})})});let a=Array.from(new Set(t.map(e=>e.id))).map(e=>t.find(t=>t.id===e)).filter(e=>void 0!==e);q(a),W(e)}catch(e){console.error("Error fetching countries and states:",e)}};fetchData()},[]),(0,d.useEffect)(()=>{let fetchCities=async()=>{if(V&&M)try{let e=await (0,x.U)("/api/country-state-city",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({country:V,state:M})});if(!e.ok)throw Error("Failed to fetch cities: ".concat(e.statusText));let t=await e.json();Q(t.data)}catch(e){console.error("Error fetching cities:",e)}};fetchCities()},[V,M]),H.filter(e=>e.country===V);let ed=o.Ry().shape({first_name:o.Z_().required("First name is required").matches(/^[A-Z][a-zA-Z]*(?:\s[A-Z][a-zA-Z]*)*$/,"First name should start with capital").min(3,"First name should be at least 3 characters").max(50,"First name should be at most 50 characters"),last_name:o.Z_().transform(e=>(null==e?void 0:e.trim())||null).nullable().test("last_name-validation","Last name should contain only alphabets",function(e){return!e||/^[a-zA-Z]+$/.test(e)}).test("last_name-length","Last name should be between 3 and 50 characters",function(e){return!e||e.length>=3&&e.length<=50})}),validateField=(e,t,a)=>{ed.validateAt(e,{[e]:t}).then(()=>{a("")}).catch(e=>{a(e.errors)})},formatPhoneNumber=e=>(null==e?void 0:e.length)===10?"+91".concat(e):e;return(0,d.useEffect)(()=>{var e,t,i,n;(null===(e=D.first_name)||void 0===e?void 0:e.isValid)===!1||(null===(t=D.zipcode)||void 0===t?void 0:t.isValid)===!1?a((null===(i=D.first_name)||void 0===i?void 0:i.message)||(null===(n=D.zipcode)||void 0===n?void 0:n.message)):a("")},[D.first_name,D.zipcode,a]),(0,d.useEffect)(()=>{if(!v||!ee)return;let e=k!==((null==v?void 0:v.first_name)||"")||_!==((null==v?void 0:v.last_name)||"")||N!==((null==v?void 0:v.address)||"")||E!==((null==v?void 0:v.email)||"")||U!==(formatPhoneNumber(null==v?void 0:v.phone)||"")||A!==((null==v?void 0:v.department)||"")||R!==((null==v?void 0:v.pin_code)||"")||V!==((null==v?void 0:v.country)||"")||M!==((null==v?void 0:v.state)||"")||J!==((null==v?void 0:v.city)||"");g(e)},[v,ee,k,_,N,E,U,A,R,V,M,J,g]),(0,i.jsxs)(i.Fragment,{children:[ea&&(0,i.jsx)(()=>{let{isLoaded:e}=(0,n.Ji)({id:"google-map-script",googleMapsApiKey:ea||"",libraries:es});return(0,d.useEffect)(()=>{e&&er(!0)},[e]),null},{}),(0,i.jsx)("form",{"data-profile-form":!0,children:(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-x-7 gap-y-5 py-1 2xl:gap-y-4 2xl
1:py-0",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:"block text-xs mb-2 font-medium text-gray-700 dark:text-white",children:(0,i.jsx)("span",{children:"First Name"})}),(0,i.jsx)(l.o,{id:"profile-first-name-input",name:"first_name",placeholder:"Enter First Name",value:k,onBlur:e=>{let t=e.target.value.trim();w(t),validateField("first_name",t,e=>L(t=>({...t,first_name:{isValid:!e,message:e}})))},onChange:e=>{let t=e.target.value;w(t),validateField("first_name",t,e=>L(t=>({...t,first_name:{isValid:!e,message:e}})))}}),D.first_name&&!D.first_name.isValid&&(0,i.jsx)("span",{className:"text-red-500 text-xs mt-1",children:D.first_name.message})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:"block text-xs mb-2 font-medium text-gray-700 dark:text-white",children:(0,i.jsx)("span",{children:"Last Name"})}),(0,i.jsx)(l.o,{id:"profile-last-name-input",name:"last_name",placeholder:"Enter Last Name",value:_,onBlur:e=>{let t=e.target.value.trim();C(t),validateField("last_name",t,e=>L(t=>({...t,last_name:{isValid:!1,message:e}})))},onChange:e=>{C(e.target.value),validateField("last_name",e.target.value,e=>L(t=>({...t,last_name:{isValid:!1,message:e}})))}}),D.last_name&&!D.last_name.isValid&&(0,i.jsx)("span",{className:"text-red-500 text-xs mt-1",children:D.last_name.message})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:"block text-xs mb-2 font-medium text-gray-700 dark:text-white",children:(0,i.jsx)("span",{children:"Organization"})}),(0,i.jsx)(l.o,{id:"profile-organization-input",value:P,placeholder:"Enter Organization",disabled:!0})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:"block text-xs mb-2 font-medium text-gray-700 dark:text-white",children:(0,i.jsx)("span",{children:"Email"})}),(0,i.jsx)(l.o,{id:"profile-email-input",name:"email",value:E,placeholder:"Enter Email",disabled:!0})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:"block text-xs mb-2 font-medium text-gray-700 dark:text-white",children:(0,i.jsx)("span",{children:"Phone Number"})}),(0,i.jsx)(f.Z,{value:U,placeholder:"Enter Phone Number",onChange:e=>{z(e),Y(e.length>=4&&e.length<=12)}}),(0,i.jsx)("input",{type:"hidden",name:"phone",value:U}),X&&(0,i.jsx)("p",{className:"text-red-500 mt-2 text-xs",children:"Phone number should be 10 digits"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:"block text-xs mb-2 font-medium text-gray-700 dark:text-white",children:(0,i.jsx)("span",{children:"Department"})}),(0,i.jsx)(l.o,{id:"profile-department-input",name:"department",placeholder:"Enter Department",value:A,onChange:e=>{B(e.target.value)}}),(0,i.jsx)("input",{type:"hidden",name:"country",value:V}),(0,i.jsx)("input",{type:"hidden",name:"state",value:M}),(0,i.jsx)("input",{type:"hidden",name:"city",value:J})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:"block text-xs mb-2 font-medium text-gray-700 dark:text-white",children:(0,i.jsx)("span",{children:"Address"})}),ea&&el?(0,i.jsx)(n.Zk,{onLoad:e=>{en.current=e},onPlacesChanged:()=>{var e;let[t]=null==en?void 0:null===(e=en.current)||void 0===e?void 0:e.getPlaces();if(!t)return;let a="",i="",n="",l="";for(let e of t.address_components)!a&&(e.types.includes("locality")?a=e.long_name:e.types.includes("postal_town")?a=e.long_name:e.types.includes("sublocality")?a=e.long_name:e.types.includes("sublocality_level_1")?a=e.long_name:e.types.includes("administrative_area_level_2")?a=e.long_name:e.types.includes("administrative_area_level_3")&&(a=e.long_name)),e.types.includes("administrative_area_level_1")&&(i=e.long_name),e.types.includes("country")&&(n=e.long_name),e.types.includes("postal_code")&&(l=e.long_name);if(!a&&t.formatted_address){let e=t.formatted_address.split(",").map(e=>e.trim());if(n&&i){let t=e.findIndex(e=>e!==n&&e!==i&&!e.match(/^\d+/)&&!e.match(/^[A-Z0-9]+$/));-1!==t&&(a=e[t])}}let r="";if(l&&n&&!p.J.includes(n)){let e=validateZipCode(l,n);e||(r="Invalid zip code for ".concat(n))}S(t.formatted_address||""),O(a||""),G(n||""),T(i||""),Z(l||""),L(e=>({...e,zipcode:{isValid:!r,message:r}}))}
1,children:(0,i.jsx)(l.o,{id:"profile-address-search-input",name:"address",placeholder:"Enter Address",value:N,onChange:e=>{let t=e.target.value;S(t),O(""),G(""),T(""),Z(""),L(e=>({...e,zipcode:{isValid:!0,message:""}}))}})}):(0,i.jsx)(l.o,{id:"profile-address-input-alt",name:"address",value:N,onChange:e=>{S(e.target.value)}})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:"block text-xs mb-2 font-medium text-gray-700 dark:text-white",children:(0,i.jsx)("span",{children:"Country"})}),(0,i.jsx)(l.o,{id:"profile-country-input",value:V,placeholder:"Enter Country",onChange:e=>{let t=e.target.value;G(t),T(""),O("")}})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:"block text-xs mb-2 font-medium text-gray-700 dark:text-white",children:(0,i.jsx)("span",{children:"State"})}),(0,i.jsx)(l.o,{id:"profile-state-input",value:M,placeholder:"Enter State",onChange:e=>{let t=e.target.value;T(t),O("")}})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:"block text-xs mb-2 font-medium text-gray-700 dark:text-white",children:(0,i.jsx)("span",{children:"City"})}),(0,i.jsx)(l.o,{id:"profile-city-input",value:J,placeholder:"Enter City",onChange:e=>{O(e.target.value)}})]}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("label",{className:"block text-xs mb-2 font-medium text-gray-700 dark:text-white",children:[(0,i.jsx)("span",{children:"Zip/Postal code"}),!p.J.includes(V)&&(0,i.jsx)("span",{className:"text-xs text-gray-500 ml-1"})]}),(0,i.jsx)(l.o,{id:"profile-zipcode-input",name:"pin_code",placeholder:"Enter Zip Code",value:R,onChange:e=>{let t=e.target.value;Z(t);let a=validateZipCode(t,V);L(e=>({...e,zipcode:{isValid:a,message:a?"":t?"Invalid zip code for ".concat(V):"Zip code is required"}}))},onKeyDown:e=>{("+"===e.key||"-"===e.key||"e"===e.key)&&e.preventDefault()},disabled:p.J.includes(V),helperText:p.J.includes(V)?"This country does not use postal codes":void 0,color:(null===(t=D.zipcode)||void 0===t?void 0:t.isValid)===!1?"failure":void 0}),D.zipcode&&!D.zipcode.isValid&&(0,i.jsx)("span",{className:"text-red-500 text-xs mt-1",children:D.zipcode.message})]})]})})]})}},75436:function(e,t,a){var i=a(11527),n=a(50959),l=a(41775);t.Z=e=>{let{setShowModal:t,setUserimage:a}=e,[r,s]=(0,n.useState)(null);return(0,i.jsx)("div",{children:(0,i.jsx)("div",{id:"large-modal",tabIndex:-1,className:"absolute w-full p-4 pt-48 overflow-x-hidden overflow-y-auto md:inset-0 h-[calc(100%-1rem)] flex items-start justify-center z-50 ",children:(0,i.jsx)("div",{className:"w-full max-w-4xl p-10 bg-white rounded-lg shadow dark:bg-gray-700",children:(0,i.jsxs)("div",{className:"relative ",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between p-5 border-b rounded-t dark:border-gray-600",children:[(0,i.jsx)("h3",{className:"text-xl font-medium text-gray-900 dark:text-white",children:"Choose an Image"}),(0,i.jsxs)("button",{type:"button",className:"text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white","data-modal-hide":"large-modal",onClick:()=>t(!1),children:[(0,i.jsx)("svg",{"aria-hidden":"true",className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),(0,i.jsx)("span",{className:"sr-only",children:"Close modal"})]})]}),(0,i.jsx)("div",{className:"flex w-full justify-evenly",children:(0,i.jsx)(l.Z,{setShowModal:t,componentId:"",onError:e=>{s(e)},setUserimage:a})}),r&&(0,i.jsx)("div",{className:"text-red-500 text-sm mt-3",children:r})]})})})})}},11099:function(e,t,a){var i=a(11527),n=a(2223),l=a(50959),r=a(3978),s=a(75436);t.Z=e=>{let{setUserimage:t}=e,[a,d]=(0,l.useState)(!1);return(0,i.jsxs)("div",{children:[(0,i.jsxs)(n.z,{color:"green-outline",className:"border w-24 h-8",onClick:()=>{d(!0)},children:[(0,i.jsx)(r.MO0,{className:"w-4 h-4 text-dew-green mr-2"}),(0,i.jsx)("span",{className:"text-xs",children:"Upload"})]}),(0,i.jsxs)("div",{className:"mt-2",children:[(0,i.jsx)("p",{className:"text-gray-500 text-[8px]",children:"Support format JPEG,"}),(0,i.jsx)("p",{className:"text-gray-500 text-[8px]",children:"PNG (10MB max)"})]}),a&&(0,i.jsx)(s.Z,{setShowModal:d,setUserimage:t})]})}},54053:function(e,t,a){a.d(t,{J:function(){return i}});let i=["Angola","Antarctica","Antigua and Barbuda","Aruba","Bahamas","Belize","Benin","Botswana","Burkina Faso","Burundi","Cameroon","Central African Republic","Chad","Comoros","Congo","Congo, Democratic Republic of the","Cook Islands","C\xf4te d'Ivoire","Djibouti","Dominica","Equatorial Guinea","Eritrea","Fiji","Gabon","Gambia","Ghana","Grenada","Guinea","Guinea-Bissau","Kiribati","North Korea","Lesotho","Liberia","Malawi","Mali","Mauritania","Mozambique","Myanmar","Nauru","Niger","Nigeria","Niue","Qatar","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","S
1amoa","S\xe3o Tom\xe9 and Pr\xedncipe","Seychelles","Sierra Leone","Solomon Islands","Somalia","South Sudan","Sudan","Swaziland","Togo","Tonga","Tuvalu","Uganda","United Arab Emirates","Vanuatu","Yemen","Zimbabwe"]},67808:function(e,t,a){a.d(t,{B_:function(){return trackCompanyInformationUpdated},HO:function(){return trackUserStatusUpdated},HR:function(){return trackRoleUsersRemoved},K2:function(){return trackProfileImageUpdated},Lf:function(){return trackPreferencesUpdated},Nm:function(){return trackRoleUsersAssigned},R4:function(){return trackCompanyIntensityDetailDeleted},Wg:function(){return trackUserCreated},hF:function(){return trackUserUpdated},v1:function(){return trackProfileUpdated},zq:function(){return trackPasswordChanged}});var i=a(23988);let isEntityId=e=>"string"==typeof e||"number"==typeof e,getAccountSettingsEntityId=e=>{var t,a,i,n,l;let r=[e,null==e?void 0:e.user,null==e?void 0:e.data,null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.user,null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.data,null==e?void 0:e.attributes];for(let e of r){let t=null!==(l=null!==(n=null!==(i=null==e?void 0:e.documentId)&&void 0!==i?i:null==e?void 0:e.id)&&void 0!==n?n:null==e?void 0:e.user_id)&&void 0!==l?l:null==e?void 0:e.userId;if(isEntityId(t))return t}},trackProfileUpdated=e=>{isEntityId(e)&&i.c.trackImmediately("Profile Updated",{user_id:e})},trackProfileImageUpdated=e=>{isEntityId(e)&&i.c.trackImmediately("Profile Image Updated",{user_id:e})},trackPasswordChanged=()=>{i.c.trackImmediately("Password Changed",{})},trackPreferencesUpdated=e=>{i.c.trackImmediately("Preferences Updated",{preference_scope:e})},trackCompanyInformationUpdated=(e,t)=>{isEntityId(e)&&Number.isFinite(t)&&i.c.trackImmediately("Company Information Updated",{organization_id:e,intensity_details_saved_count:t})},trackCompanyIntensityDetailDeleted=(e,t)=>{isEntityId(e)&&isEntityId(t)&&i.c.trackImmediately("Company Intensity Detail Deleted",{organization_id:e,intensity_detail_id:t})},trackUserCreated=(e,t)=>{let a=getAccountSettingsEntityId(e);isEntityId(a)&&Number.isFinite(t)&&i.c.trackImmediately("User Created",{user_id:a,role_assignment_count:t})},trackUserUpdated=e=>{isEntityId(e)&&i.c.trackImmediately("User Updated",{user_id:e})},trackUserStatusUpdated=(e,t)=>{isEntityId(e)&&i.c.trackImmediately("User Status Updated",{user_id:e,status:t})},trackRoleUsersAssigned=(e,t,a)=>{isEntityId(e)&&Number.isFinite(t)&&Number.isFinite(a)&&i.c.trackImmediately("Role Users Assigned",{role_id:e,assignment_count:t,facility_assignment_count:a})},trackRoleUsersRemoved=(e,t)=>{isEntityId(e)&&Number.isFinite(t)&&i.c.trackImmediately("Role Users Removed",{role_id:e,assignment_count:t})}}}]);
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.