import{aw as d,j as e,bE as c}from"./app-BgLa5dit.js";import{w as p,C as g,a as x}from"./GYlSv6lg.chunk.js";import{b,c as r}from"./BddP3S5c.chunk.js";import{g as h}from"./CMrPv4Jl.chunk.js";import"./DJ0pq8J_.chunk.js";import"./Bs6fQ2wT.chunk.js";import"./BUT90D7O.chunk.js";import"./DyuQzTEw.chunk.js";import"./DDfKZ_ng.chunk.js";import"./DkDkjje4.chunk.js";import"./C1m0yEk1.chunk.js";import"./BgshPevy.chunk.js";function u(){const{values:s,setFieldValue:a}=d(),l=h(s.originType),o=b(s.originType);return e.jsxs("div",{className:`d-flex flex-column gap-3 ${p.formContent}`,children:[e.jsxs("p",{className:"mb-0",children:["Destinations below are preset for the origin ",e.jsx("strong",{children:l}),"."]}),e.jsxs("div",{className:"border rounded-3 overflow-hidden",children:[e.jsx("div",{className:"bg-light px-3 py-2 border-bottom fw-semibold",children:"Destination"}),r.map((t,m)=>{const i=o==null?void 0:o[t.presetKey],n=!!s[t.field];return e.jsxs("div",{className:`d-flex align-items-center justify-content-between px-3 py-3 ${m<r.length-1?"border-bottom":""}`,children:[e.jsxs("div",{className:"d-flex align-items-center gap-2",children:[e.jsx("img",{src:t.logo,alt:t.label,width:24,height:24}),e.jsx("span",{children:t.label})]}),e.jsx(c,{on:n,disabled:!(i!=null&&i.toggleable),showStateWhenDisabled:!0,tooltipText:i==null?void 0:i.tooltipText,onClick:()=>a(t.field,!n)})]},t.presetKey)})]})]})}function L(s){return e.jsx(g,{currentStepId:x.DESTINATION,queryParams:s.queryParams,title:"Select destination",children:e.jsx(u,{})})}export{L as ContactImportDestinationsView};
//# sourceMappingURL=CQGZ5XVR.chunk.js.map
