import{aw as n,j as t,ao as r}from"./app-BgLa5dit.js";import{C as a,a as l}from"./DsVQ3BFu.chunk.js";import"./DJ0pq8J_.chunk.js";import"./CCcwLDvu.chunk.js";import"./DDfKZ_ng.chunk.js";import"./CmeGmsFm.chunk.js";import"./Zwjmkasg.chunk.js";import"./CsH2Nu4a.chunk.js";import"./Bs6fQ2wT.chunk.js";import"./BUT90D7O.chunk.js";import"./C9Rwpp7a.chunk.js";import"./C1fMRwzQ.chunk.js";import"./q-IBKcuF.chunk.js";import"./DUpYPoLs.chunk.js";import"./EZim8aq-.chunk.js";import"./BD9MrUJP.chunk.js";import"./s6cGcwlA.chunk.js";import"./4qGb1BIY.chunk.js";import"./DnXDEnAR.chunk.js";import"./DpUpv6rY.chunk.js";import"./CG7zbly5.chunk.js";import"./m4aqaK_l.chunk.js";import"./MEkA24R1.chunk.js";import"./C53kfXmd.chunk.js";const m=/^https:\/\/clickview(--newproduct\.sandbox)?\.lightning\.force\.com\/lightning\/r\/Account\/[A-Za-z0-9]{18}\/view$/;function p(){const{values:e,setFieldValue:c}=n(),i=e.salesforceAccountUrl,o=i.trim()!==""&&!m.test(i);return t.jsxs(r.Group,{className:"mb-3",children:[t.jsx(r.Label,{children:"Salesforce Account URL"}),t.jsx("div",{className:"d-flex align-items-center gap-2",children:t.jsx(r.Control,{type:"text",value:i,onChange:s=>c("salesforceAccountUrl",s.target.value),placeholder:"e.g. https://clickview.lightning.force.com/lightning/r/Account/0012800000s4cNeAAI/view",isInvalid:o})}),t.jsx(r.Control.Feedback,{type:"invalid",className:o?"d-block":"",children:"Please enter a valid Salesforce account URL (e.g. https://clickview.lightning.force.com/lightning/r/Account/…/view)"})]})}function P(e){return t.jsxs(a,{id:e.id,currentStepId:l.SALESFORCE,queryParams:e.queryParams,children:[t.jsx("h2",{className:"h3",children:"Select a Salesforce account"}),t.jsx("div",{className:"crm-studio-wizard-form mt-3",children:t.jsx(p,{})})]})}export{P as CustomerConvertingWizardSalesforceView};
//# sourceMappingURL=Cy3TcD28.chunk.js.map
