PageSourceSearch

https://ai.bixjet.com/static/js/2626.2e3e715f.chunk.js

js bixjet.com collected 2026-09-24 13:25:15 UTC 20,899 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkbixjet_ai=globalThis.webpackChunkbixjet_ai||[]).push([[2626],{27781(e,r,o){o.d(r,{F6:()=>t,U9:()=>s,br:()=>n,xI:()=>l});const i=e=>{try{return JSON.parse(localStorage.getItem(e)||"null")}catch{return null}},t=()=>i("userid"),n=()=>i("location_Id"),s=()=>i("business_Id"),l=()=>({userId:t(),locationId:n(),businessId:s()})},36669(e,r,o){o.d(r,{A:()=>a});o(9950);var i=o(10226),t=o(83274),n=o(25333),s=o(99600),l=o(44414);function a(e){let{label:r="Back",onClick:o,variant:a="default",sx:d}=e;return"text"===a?(0,l.jsx)(i.A,{onClick:o,startIcon:(0,l.jsx)(s.A,{sx:{fontSize:"16px !important"}}),sx:{textTransform:"none",fontWeight:600,fontSize:13,color:"text.secondary",px:0,mb:1.5,minWidth:0,"&:hover":{bgcolor:"transparent",color:"text.primary"},...d},children:r}):(0,l.jsx)(t.A,{title:r,children:(0,l.jsx)(n.A,{onClick:o,size:"small",sx:{border:"1px solid",borderColor:"divider",borderRadius:2,width:36,height:36,"&:hover":{bgcolor:"action.hover"},...d},children:(0,l.jsx)(s.A,{sx:{fontSize:18}})})})}},92899(e,r,o){o.r(r),o.d(r,{default:()=>pe});var i=o(9950),t=o(10300),n=o(82053),s=o(16491),l=o(74745),a=o(8145),d=o(20544),c=o(25277),x=o(25979),p=o(70006),u=o(23266),h=o(83274),m=o(93230),f=o(10226),b=o(46639),g=o(60899),y=o(74616),j=o(46986),A=o(45546),v=o(2046),S=o(82917),z=o(25333),C=o(48089),w=o(37324),k=o(63464),I=o(40033),R=o(28170),W=o(79739),D=o(18726),F=o(99532),T=o(26592),L=o(92098),q=o(75433),M=o(30149),E=o(19223),N=o(80504),O=o(11448),$=o(28429),P=o(81282),B=o(27781),H=o(62534),Y=o(57236),_=o(36669),J=o(44414);const G={1:"Textbox",2:"Multiline",3:"Single checkbox",4:"Multiple checkbox",5:"Dropdown",6:"Radio",7:"Date picker",8:"Number",9:"Phone number",12:"Divider",13:"Label",15:"Section"},U=e=>{const r=null===e||void 0===e?void 0:e.fieldtype;return"string"===typeof r&&Number.isNaN(Number(r))?r:G[Number(r)]||"Textbox"},V=new Set(["Section","Divider","Label"]),Q=e=>{const r=((null===e||void 0===e?void 0:e.dbfieldname)||"").toLowerCase(),o=((null===e||void 0===e?void 0:e.name)||"").toLowerCase();return"firstname"===r||"first name"===o||"main name"===o},X="#0F172A",Z="#64748B",K="#94A3B8",ee="#E2E8F0",re="#5B5FEF",oe="#EF4444",ie="#F8FAFF",te="'Plus Jakarta Sans',sans-serif",ne={"& .MuiOutlinedInput-root":{height:46,borderRadius:"12px",bgcolor:ie,fontSize:14,fontFamily:te,"& fieldset":{borderColor:ee,borderWidth:"1.5px"}},"& .MuiOutlinedInput-input":{padding:"0 14px",height:46,boxSizing:"border-box",fontSize:14,color:Z,WebkitTextFillColor:Z},"& .MuiOutlinedInput-input::placeholder":{color:K,opacity:1}},se={"& .MuiOutlinedInput-root":{minHeight:46,borderRadius:"12px",bgcolor:ie,fontSize:14,fontFamily:te,padding:"10px 14px","& fieldset":{borderColor:ee,borderWidth:"1.5px"}},"& textarea":{color:Z,WebkitTextFillColor:Z,fontSize:14,fontFamily:te}},le={height:46,borderRadius:"12px",bgcolor:ie,fontSize:14,fontFamily:te,color:K,"& fieldset":{borderColor:ee,borderWidth:"1.5px"},"& .MuiSvgIcon-root":{color:Z},"& .MuiSelect-select":{display:"flex",alignItems:"center",height:46,py:0,boxSizing:"border-box"}},ae={"& .MuiOutlinedInput-root":{minHeight:46,borderRadius:"12px",bgcolor:ie,fontFamily:te,padding:"4px 10px","& fieldset":{borderColor:ee,borderWidth:"1.5px"}}};function de(e){let{name:r,required:o}=e;return(0,J.jsxs)(n.A,{component:"label",sx:{display:"block",mb:.7,fontSize:13,fontWeight:700,color:X,fontFamily:te,letterSpacing:-.1},children:[r,o&&(0,J.jsx)(s.A,{component:"span",sx:{color:oe,ml:.4},children:"*"})]})}function ce(e){let{elem:r}=e;const o=U(r),i=(null===r||void 0===r?void 0:r.name)||"",t=!(null===r||void 0===r||!r.isrequired),h=((null===r||void 0===r?void 0:r.dbfieldname)||"").toLowerCase();return"Section"===o?(0,J.jsxs)(s.A,{sx:{display:"flex",alignItems:"center",gap:1,py:1},children:[(0,J.jsx)(n.A,{sx:{fontSize:11,fontWeight:800,textTransform:"uppercase",letterSpacing:.6,color:Z,fontFamily:te},children:null===r||void 0===r?void 0:r.name}),(0,J.jsx)(s.A,{sx:{flex:1,height:1,bgcolor:ee}})]}):"Divider"===o?(0,J.jsx)(l.A,{sx:{my:.5,borderColor:ee}}):"Label"===o?(0,J.jsx)(n.A,{sx:{fontSize:13,fontWeight:700,fontFamily:te,color:X},children:null===r||void 0===r?void 0:r.name}):"Multiline"===o?(0,J.jsxs)(s.A,{children:[(0,J.jsx)(de,{name:i,required:t}),(0,J.jsx)(a.A,{fullWidth:!0,size:"small",disabled:!0,multiline:!0,minRows:2,placeholder:"Long text\u2026",sx:se})]}):"Dropdown"===o?"tags"===h||"source"===h?(0,J.jsxs)(s.A,{children:[(0,J.jsx)(de,{name:i,required:t}),(0,J.jsx)(d.A,{multiple:!0,disabled:!0,options:[],value:["Sample","Tag"],renderTags:e=>e.map(e=>(0,J.jsx)(c.A,{label:e,size:"small",sx:{height:24,fontSize:12,borderRadius:"8px",fontFamily:te,bgcolor:"background.paper",borderColor:"#C7D2FE",color:re,mr:.5}},e)),renderInput:e=>(0,J.jsx)(a.A,{...e,size:"small",placeholder:"Type and press Enter to add",sx:ae})})]}):(0,J.jsxs)(s.A,{children:[(0,J.jsx)(de,{name:i,required:t}),(0,J.jsx)(x.A,{fullWidth:!0,size:"small",disabled:!0,children:(0,J.jsx)(p.A,{displayEmpty:!0,value:"",sx:le,children:(0,J.jsx)(u.A,{value:"",children:(0,J.jsx)("em",{style:{fontStyle:"normal",color:K},children:"Select an option"})})})})]}):"Date picker"===o?(0,J.jsxs)(s.A,{children:[(0,J.jsx)(de,{name:i,required:t}),(0,J.jsx)(a.A,{fullWidth:!0,size:"small",type:"date",disabled:!0,InputLabelProps:{shrink:!0},sx:ne})]}):"Number"===o?(0,J.jsxs)(s.A,{children:[(0,J.jsx)(de,{name:i,required:t}),(0,J.jsx)(a.A,{fullWidth:!0,size:"small",type:"number",disabled:!0,placeholder:"0",sx:ne})]}):"Phone number"===o?(0,J.jsxs)(s.A,{sx:{pointerEvents:"none",opacity:.92},children:[(0,J.jsx)(de,{name:i,required:t}),(0,J.jsx)(O.A,{value:"",defaultCountry:"us",disabled:!0})]}):"Single checkbox"===o||"Multiple checkbox"===o||"Radio"===o?(0,J.jsxs)(s.A,{children:[(0,J.jsx)(de,{name:`${i} (${o})`,required:t}),(0,J.jsx)(a.A,{fullWidth:!0,size:"small",disabled:!0,placeholder:`${o} options will appear here`,sx:ne})]}):(0,J.jsxs)(s.A,{children:[(0,J.jsx)(de,{name:i,required:t}),(0,J.jsx)(a.A,{fullWidth:!0,size:"small",disabled:!0,placeholder:`Enter ${i.toLowerCase()}`,sx:ne})]})}const xe=e=>{const r=U(e);
1if(["Multiline","Section","Divider","Label","Multiple checkbox","Radio"].includes(r))return 12;return"workflowid"===((null===e||void 0===e?void 0:e.dbfieldname)||"").toLowerCase()?12:6};function pe(){const e=(0,t.wA)(),r=(0,$.Zp)(),{userId:o,locationId:l,businessId:d}=(0,B.xI)(),{contactFormSchema:x,contactFormId:p,formLoading:u}=(0,t.d4)(e=>e.contacts),[O,G]=(0,i.useState)([]),[X,Z]=(0,i.useState)([]),[K,ee]=(0,i.useState)(!1),[re,oe]=(0,i.useState)(""),[ie,te]=(0,i.useState)(""),[ne,se]=(0,i.useState)(!1),[le,ae]=(0,i.useState)(!1),[de,pe]=(0,i.useState)("discard"),[ue,he]=(0,i.useState)(null);(0,i.useEffect)(()=>{l&&e((0,P.cb)({locationid:l,formtype:1}))},[e,l]),(0,i.useEffect)(()=>{Array.isArray(x)&&x.length>0?G(x):Y.YI&&G(Y.YI)},[x]),(0,i.useEffect)(()=>{d&&(ee(!0),e((0,P.TQ)({businessid:d,objecttype:["contact","organization","deals"]})).then(e=>{ee(!1),e.error||Z(e.payload||[])}))},[e,d]);const me=(0,i.useMemo)(()=>{const e=(X||[]).filter(e=>"contact"===e.objecttype);if(!re)return e;const r=re.toLowerCase();return e.filter(e=>(e.propertyname||"").toLowerCase().includes(r))},[X,re]),fe=(0,i.useMemo)(()=>{const e=(X||[]).filter(e=>"organization"===e.objecttype);if(!ie)return e;const r=ie.toLowerCase();return e.filter(e=>(e.propertyname||"").toLowerCase().includes(r))},[X,ie]),be=e=>O.some(r=>(null===r||void 0===r?void 0:r.dbfieldname)&&r.dbfieldname===(null===e||void 0===e?void 0:e.dbfieldname)),ge=e=>{if(be(e))return;const r={fieldtype:e.fieldtype,name:e.propertyname||e.name,dbfieldname:e.dbfieldname,objecttype:e.objecttype,isrequired:!!e.isrequired||Q(e),options:e.options,propertyid:e.propertyid};G(e=>[...e,r])},ye=e=>()=>he({from:"lib",payload:e}),je=e=>()=>he({from:"canvas",idx:e}),Ae=e=>e.preventDefault(),ve=e=>r=>{r.preventDefault(),ue&&("lib"===ue.from?ge(ue.payload):"canvas"===ue.from&&"number"===typeof e&&((e,r)=>{e!==r&&G(o=>{const i=[...o],[t]=i.splice(e,1);return i.splice(r,0,t),i})})(ue.idx,e),he(null))};return(0,J.jsxs)(s.A,{sx:{pb:4},children:[(0,J.jsxs)(s.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2.5,flexWrap:"wrap",gap:1.5},children:[(0,J.jsxs)(s.A,{sx:{display:"flex",alignItems:"center",gap:1.25},children:[(0,J.jsx)(h.A,{title:"Back",children:(0,J.jsx)(_.A,{label:"Back",onClick:onBack})}),(0,J.jsxs)(s.A,{children:[(0,J.jsx)(n.A,{sx:{fontSize:17,fontWeight:600,lineHeight:1.2},children:"Edit Contact Form"}),(0,J.jsx)(n.A,{sx:{fontSize:12,color:"text.secondary"},children:"Drag fields from the left or click + to add. Toggle the switch to mark a field required."})]})]}),(0,J.jsxs)(m.A,{direction:"row",spacing:1,children:[(0,J.jsx)(f.A,{size:"small",variant:"contained",startIcon:ne?(0,J.jsx)(b.A,{size:14,color:"inherit"}):(0,J.jsx)(L.A,{sx:{fontSize:16}}),disabled:ne,onClick:async()=>{if(0!==O.length){se(!0);try{const i=p?await e((0,P.YR)({customformid:p,fields:JSON.stringify(O),updatedby:o})):await e((0,P.m_)({fields:JSON.stringify(O),formtype:1,locationid:l,businessid:d,createdby:o}));if(null!==i&&void 0!==i&&i.error)throw new Error((null===i||void 0===i?void 0:i.payload)||"Save failed");(0,H.D)("Contact Form Updated Successfully","success"),e((0,P.cb)({locationid:l,formtype:1})),r("/contacts")}catch(i){(0,H.D)((null===i||void 0===i?void 0:i.message)||"Failed to save form","error")}finally{se(!1)}}else(0,H.D)("Form must have at least one field","warning")},sx:{borderRadius:2,textTransform:"none",fontSize:12.5,minWidth:130},children:ne?"Saving\u2026":"Save Changes"}),(0,J.jsx)(f.A,{size:"small",variant:"contained",color:"secondary",startIcon:(0,J.jsx)(M.A,{sx:{fontSize:16}}),onClick:()=>{pe("discard"),ae(!0)},sx:{borderRadius:2,textTransform:"none",fontSize:12.5,bgcolor:"#ec4899","&:hover":{bgcolor:"#db2777"}},children:"Discard Changes"}),(0,J.jsx)(f.A,{size:"small",variant:"contained",startIcon:(0,J.jsx)(q.A,{sx:{fontSize:16}}),onClick:()=>{pe("default"),ae(!0)},sx:{borderRadius:2,textTransform:"none",fontSize:12.5},children:"Default Form"})]})]}),(0,J.jsxs)(g.Ay,{container:!0,spacing:2,children:[(0,J.jsx)(g.Ay,{item:!0,xs:12,md:4,children:(0,J.jsxs)(s.A,{sx:{position:{md:"sticky"},top:{md:16}},children:[(0,J.jsx)(n.A,{sx:{fontSize:13,fontWeight:600,color:"text.primary",mb:1.25,ml:.5},children:"Input Fields"}),(0,J.jsxs)(y.A,{defaultExpanded:!0,disableGutters:!0,elevation:0,sx:{border:"1px solid",borderColor:"divider",borderRadius:"10px !important",mb:1.5,"&:before":{display:"none"}},children:[(0,J.jsxs)(j.A,{expandIcon:(0,J.jsx)(D.A,{sx:{fontSize:20}}),sx:{minHeight:48,"& .MuiAccordionSummary-content":{my:1,alignItems:"center",gap:1}},children:[(0,J.jsx)(n.A,{sx:{fontSize:14,fontWeight:600},children:"Contact"}),(0,J.jsx)(c.A,{size:"small",label:me.length,sx:{ml:"auto",mr:1,fontSize:10.5,height:20,bgcolor:"primary.main",color:"primary.contrastText"}})]}),(0,J.jsxs)(A.A,{sx:{display:"block",pt:0,px:1.25,pb:1.25},children:[(0,J.jsx)(a.A,{fullWidth:!0,size:"small",placeholder:"Search\u2026",value:re,onChange:e=>oe(e.target.value),InputProps:{startAdornment:(0,J.jsx)(v.A,{position:"start",children:(0,J.jsx)(E.A,{sx:{fontSize:16}})}),sx:{fontSize:12.5,borderRadius:1.5,bgcolor:"background.paper"}},sx:{mb:1}}),K?(0,J.jsx)(m.A,{spacing:.5,children:Array.from({length:5}).map((e,r)=>(0,J.jsx)(S.A,{variant:"rounded",height:36},r))}):0===me.length?(0,J.jsx)(n.A,{sx:{p:1,fontSize:12,color:"text.secondary",textAlign:"center"},children:"No properties"}):(0,J.jsx)(m.A,{spacing:.5,children:me.map(e=>{const r=be(e);return(0,J.jsxs)(s.A,{draggable:!r,onDragStart:ye(e),sx:{display:"flex",alignItems:"center",gap:.75,px:1,py:.75,borderRadius:1.5,border:"1px solid",borderColor:"divider",opacity:r?.45:1,cursor:r?"default":"grab","&:active":{cursor:r?"default":"grabbing"},"&:hover":{bgcolor:r?"transparent":"action.hover",borderColor:r?"divi
1der":"primary.light"},transition:"background 0.12s, border-color 0.12s"},children:[(0,J.jsx)(N.A,{sx:{fontSize:16,color:"text.disabled"}}),(0,J.jsx)(n.A,{sx:{fontSize:12.5,flex:1,fontWeight:r?400:500},noWrap:!0,children:e.propertyname}),(0,J.jsx)(z.A,{size:"small",disabled:r,onClick:()=>ge(e),sx:{p:.5,color:r?"action.disabled":"primary.main","&:hover":{bgcolor:"primary.main",color:"primary.contrastText"}},children:(0,J.jsx)(F.A,{sx:{fontSize:16}})})]},e.propertyid)})})]})]}),(0,J.jsxs)(y.A,{disableGutters:!0,elevation:0,sx:{border:"1px solid",borderColor:"divider",borderRadius:"10px !important","&:before":{display:"none"}},children:[(0,J.jsxs)(j.A,{expandIcon:(0,J.jsx)(D.A,{sx:{fontSize:20}}),sx:{minHeight:48,"& .MuiAccordionSummary-content":{my:1,alignItems:"center",gap:1}},children:[(0,J.jsx)(n.A,{sx:{fontSize:14,fontWeight:600},children:"Organization"}),(0,J.jsx)(c.A,{size:"small",label:fe.length,sx:{ml:"auto",mr:1,fontSize:10.5,height:20,bgcolor:"secondary.main",color:"secondary.contrastText"}})]}),(0,J.jsxs)(A.A,{sx:{display:"block",pt:0,px:1.25,pb:1.25},children:[(0,J.jsx)(a.A,{fullWidth:!0,size:"small",placeholder:"Search\u2026",value:ie,onChange:e=>te(e.target.value),InputProps:{startAdornment:(0,J.jsx)(v.A,{position:"start",children:(0,J.jsx)(E.A,{sx:{fontSize:16}})}),sx:{fontSize:12.5,borderRadius:1.5,bgcolor:"background.paper"}},sx:{mb:1}}),K?(0,J.jsx)(m.A,{spacing:.5,children:Array.from({length:4}).map((e,r)=>(0,J.jsx)(S.A,{variant:"rounded",height:36},r))}):0===fe.length?(0,J.jsx)(n.A,{sx:{p:1,fontSize:12,color:"text.secondary",textAlign:"center"},children:"No properties"}):(0,J.jsx)(m.A,{spacing:.5,children:fe.map(e=>{const r=be(e);return(0,J.jsxs)(s.A,{draggable:!r,onDragStart:ye(e),sx:{display:"flex",alignItems:"center",gap:.75,px:1,py:.75,borderRadius:1.5,border:"1px solid",borderColor:"divider",opacity:r?.45:1,cursor:r?"default":"grab","&:active":{cursor:r?"default":"grabbing"},"&:hover":{bgcolor:r?"transparent":"action.hover",borderColor:r?"divider":"primary.light"},transition:"background 0.12s, border-color 0.12s"},children:[(0,J.jsx)(N.A,{sx:{fontSize:16,color:"text.disabled"}}),(0,J.jsx)(n.A,{sx:{fontSize:12.5,flex:1,fontWeight:r?400:500},noWrap:!0,children:e.propertyname}),(0,J.jsx)(z.A,{size:"small",disabled:r,onClick:()=>ge(e),sx:{p:.5,color:r?"action.disabled":"primary.main","&:hover":{bgcolor:"primary.main",color:"primary.contrastText"}},children:(0,J.jsx)(F.A,{sx:{fontSize:16}})})]},e.propertyid)})})]})]})]})}),(0,J.jsx)(g.Ay,{item:!0,xs:12,md:8,children:(0,J.jsx)(C.A,{onDragOver:Ae,onDrop:e=>{e.preventDefault(),"lib"===(null===ue||void 0===ue?void 0:ue.from)&&ge(ue.payload),he(null)},sx:{borderRadius:3,border:"2px dashed",borderColor:"lib"===(null===ue||void 0===ue?void 0:ue.from)?"primary.main":"divider",bgcolor:"background.paper",minHeight:600,p:3,transition:"border-color 0.15s"},children:u&&0===O.length?(0,J.jsx)(m.A,{spacing:1.5,children:Array.from({length:4}).map((e,r)=>(0,J.jsx)(S.A,{variant:"rounded",height:48,sx:{borderRadius:1.5}},r))}):0===O.length?(0,J.jsxs)(s.A,{sx:{py:12,textAlign:"center",color:"text.disabled",display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[(0,J.jsx)(N.A,{sx:{fontSize:40}}),(0,J.jsx)(n.A,{sx:{fontSize:14,fontWeight:500},children:"Drag your properties here from the left"}),(0,J.jsx)(n.A,{sx:{fontSize:12},children:"or click the + button on any property"})]}):(0,J.jsx)(g.Ay,{container:!0,spacing:2,children:O.map((e,r)=>{const o=Q(e),i=U(e),t=!V.has(i);return(0,J.jsx)(g.Ay,{item:!0,xs:12,sm:xe(e),onDragOver:Ae,onDrop:ve(r),children:(0,J.jsxs)(s.A,{draggable:!0,onDragStart:je(r),sx:{display:"flex",alignItems:"flex-start",gap:1.25,position:"relative"},children:[(0,J.jsx)(s.A,{sx:{flex:1,minWidth:0},children:(0,J.jsx)(ce,{elem:e})}),t&&(0,J.jsx)(h.A,{title:o?"This field is always required":"Make field required",children:(0,J.jsx)("span",{children:(0,J.jsx)(w.A,{size:"small",checked:!(null===e||void 0===e||!e.isrequired),disabled:o,onChange:e=>((e,r)=>{G(o=>o.map((o,i)=>i===e?{...o,isrequired:r}:o))})(r,e.target.checked),sx:{mt:3}})})}),(0,J.jsx)(h.A,{title:o?"Required field \u2014 cannot remove":"Remove field",children:(0,J.jsx)("span",{children:(0,J.jsx)(z.A,{size:"small",disabled:o,color:"error",onClick:()=>(e=>{const r=O[e];Q(r)?(0,H.D)("This is a required field and cannot be removed","warning"):G(r=>r.filter((r,o)=>o!==e))})(r),sx:{mt:3},children:(0,J.jsx)(T.A,{sx:{fontSize:18}})})})})]})},`canvas-${r}`)})})})})]}),(0,J.jsxs)(k.A,{open:le,onClose:()=>ae(!1),maxWidth:"xs",fullWidth:!0,PaperProps:{sx:{borderRadius:3}},children:[(0,J.jsx)(I.A,{sx:{fontSize:15,fontWeight:600},children:"default"===de?"Reset to default form?":"Discard changes?"}),(0,J.jsx)(R.A,{children:(0,J.jsx)(n.A,{sx:{fontSize:13,color:"text.secondary"},children:"default"===de?"Do you want to continue with this action? This will reset the form to its original state.":"Do you want to discard all the changes?"})}),(0,J.jsxs)(W.A,{sx:{px:3,pb:2},children:[(0,J.jsx)(f.A,{size:"small",variant:"outlined",color:"secondary",onClick:()=>ae(!1),sx:{borderRadius:2,textTransform:"none",fontSize:12.5},children:"No"}),(0,J.jsx)(f.A,{size:"small",variant:"contained",color:"primary",onClick:async()=>
1{if(ae(!1),"discard"!==de){se(!0);try{if(p){const r=await e((0,P.hV)({customformid:p}));if(null!==r&&void 0!==r&&r.error)throw new Error((null===r||void 0===r?void 0:r.payload)||"Reset failed")}G(Y.YI||[]),(0,H.D)("Contact Form Reset Successfully","success"),e((0,P.cb)({locationid:l,formtype:1}))}catch(o){(0,H.D)((null===o||void 0===o?void 0:o.message)||"Failed to reset form","error")}finally{se(!1)}}else r("/contacts")},sx:{borderRadius:2,textTransform:"none",fontSize:12.5},children:"Yes"})]})]})]})}},11448(e,r,o){o.d(r,{A:()=>c});o(9950);var i=o(80097),t=o(16491),n=o(82053),s=o(50310),l=o.n(s),a=(o(30776),o(44414));const d=(0,a.jsx)(i.A,{styles:{".modern-phone-input .country-list":{margin:"4px 0 0 0 !important",padding:"4px 0 !important",maxHeight:"260px !important",overflowY:"auto !important",overflowX:"hidden !important"},".modern-phone-input .country-list .country":{display:"flex !important",alignItems:"center !important",gap:"10px !important",padding:"8px 12px !important",position:"relative"},".modern-phone-input .country-list .country .flag":{position:"static !important",margin:"0 !important",flex:"0 0 auto"},".modern-phone-input .country-list .country .country-name":{marginRight:"0 !important",flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"14px",color:"rgba(15,23,42,0.87)"},".modern-phone-input .country-list .country .dial-code":{flex:"0 0 auto",color:"rgba(15,23,42,0.55)",fontSize:"14px"},".modern-phone-input .country-list .country:hover,        .modern-phone-input .country-list .country.highlight":{backgroundColor:"rgba(15,23,42,0.04) !important"},".modern-phone-input .selected-flag":{width:"100% !important",padding:"0 0 0 14px !important",borderRadius:"12px 0 0 12px !important"},".modern-phone-input .selected-flag .arrow":{left:"28px"}}});function c(e){let{value:r,onChange:o,defaultCountry:i="us",label:s="Phone",error:c,helperText:x,disabled:p=!1,required:u=!1,height:h}=e;const m=(()=>{if(!i)return"us";const e=String(i).toLowerCase().replace(/^\+/,"");return/^\d+$/.test(e)?"91"===e?"in":"1"===e?"us":"44"===e?"gb":"61"===e?"au":"49"===e?"de":"971"===e?"ae":"us":e})(),f=c?"#d32f2f":"rgba(15,23,42,0.23)";return(0,a.jsxs)(t.A,{sx:{width:"100%"},children:[d,(0,a.jsx)(l(),{country:m,value:r||"",disabled:p,specialLabel:"",placeholder:"Enter phone number",containerClass:"modern-phone-input",onChange:(e,r)=>{null===o||void 0===o||o(e,{dialCode:(null===r||void 0===r?void 0:r.dialCode)||"",countryCode:(null===r||void 0===r?void 0:r.countryCode)||"",country:r,formattedValue:null!==r&&void 0!==r&&r.format?e:`+${e}`})},inputProps:{name:"phonenumber",autoComplete:"off","data-form-type":"other",required:u},containerStyle:{width:"100%"},inputStyle:{width:"100%",height:`${h||45}px`,fontSize:"15px",borderRadius:"12px",border:`1px solid ${f}`,paddingLeft:"63px",backgroundColor:"background.paper",color:"rgba(15,23,42,0.87)",lineHeight:"normal"},buttonStyle:{width:"55px",height:`${h||45}px`,border:`1px solid ${f}`,borderRight:"none",borderTopLeftRadius:"12px",borderBottomLeftRadius:"12px",borderTopRightRadius:0,borderBottomRightRadius:0,backgroundColor:"background.paper"},dropdownStyle:{width:"270px",borderRadius:"12px",marginTop:"4px",boxShadow:"0 8px 24px rgba(15,23,42,0.12)",fontSize:"15px"}}),(x||c&&"string"===typeof c)&&(0,a.jsx)(n.A,{sx:{color:c?"error.main":"text.secondary",fontSize:11,mt:.5,ml:.5},children:x||("string"===typeof c?c:"")})]})}},88780(e,r,o){o.d(r,{A:()=>n});o(9950);var i=o(65471),t=o(44414);const n=(0,i.A)((0,t.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},29481(e,r,o){o.d(r,{A:()=>t});var i=o(9950);const t=e=>{const r=i.useRef({});return i.useEffect(()=>{r.current=e}),r.current}},30776(){}}]);

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.