import{aw as g,b as P,a4 as y,o as N,j as a,ar as w,bi as I}from"./app-BgLa5dit.js";import{D}from"./C4BcftDO.chunk.js";import{c as d}from"./Zwjmkasg.chunk.js";import{C as T}from"./itQZri94.chunk.js";import{b as E,C as p}from"./OEx2ZWBS.chunk.js";import{C as O}from"./CiR1qo7K.chunk.js";import{A as R}from"./uachN0F4.chunk.js";import{a as S}from"./CmeGmsFm.chunk.js";import{C as k}from"./BO07ARJN.chunk.js";import"./CsH2Nu4a.chunk.js";import"./DJ0pq8J_.chunk.js";import"./CCcwLDvu.chunk.js";import"./DDfKZ_ng.chunk.js";import"./C9Rwpp7a.chunk.js";import"./Bs6fQ2wT.chunk.js";import"./BUT90D7O.chunk.js";import"./C1fMRwzQ.chunk.js";import"./DBvERro4.chunk.js";import"./u6fIQ8Ti.chunk.js";const z="_label_1xt92_1",F={label:z};function M(){var o,n,c,m;const e=g(),{hasPermissions:v}=P(),b=v(y.ExchangeTvProductManage),i=N(R.accessPolicies());if(!e.values.cftObject||!i.data)return a.jsx("div",{className:"me-3 d-flex align-items-center",children:a.jsx(w,{as:"div",animation:"border",role:"status",className:"svg-container"})});const t=i.data.find(s=>s.id===e.values.trialId),l=[{label:"Customer name",value:e.values.name,badge:e.values.accountId&&"salesforce"},{label:"Organization",value:(o=e.values.organisation)==null?void 0:o.name},{label:"Type",value:e.values.type,badge:e.values.accountId&&"salesforce"},{label:"Status",value:e.values.status?d[e.values.status]:d[1],badge:e.values.accountId&&"salesforce"},{label:"Country",value:e.values.country}],f=[{label:"Trial access policy",value:{value:e.values.trialId&&`${t==null?void 0:t.description}`}},{label:"Trial end date",value:{value:e.values.trialEndDate&&I.format(e.values.trialEndDate,"DD MMM YYYY")}},{label:"Post-pilot CFT",value:{value:((n=e.values.trialNextCftObject)==null?void 0:n.displayName)??"-"}}],x=e.values.country==="United States",C=e.values.region==="EU",h=E({cftData:(c=e.values.cftObject)==null?void 0:c.data,cftDisplayName:(m=e.values.cftObject)==null?void 0:m.displayName,enabledPresentations:e.values.enabledPresentations,enabledCurriculums:e.values.enabledCurriculums,enabledProducts:e.values.enabledProducts,enabledLibraries:e.values.enabledLibraries,isUs:x,isEu:C,controlExchangeTv:b});return a.jsxs("div",{className:"crm-studio-wizard-form",children:[a.jsx("h2",{className:"mb-3",children:"Review and confirm"}),a.jsx("p",{className:"mb-4",children:"You're about to create the following customer. Please check and confirm all details."}),a.jsx(D,{heading:"Customer details",children:a.jsx("div",{className:"p-3",children:l.map(({label:s,value:r,badge:u},j)=>a.jsxs("div",{className:`d-flex flex-nowrap align-items-center ${j===l.length-1?"":"mb-3"}`,children:[a.jsx("span",{className:`${F.label} d-inline-block fw-semibold me-3 flex-shrink-0`,children:s}),a.jsx("div",{className:"flex-grow-1",children:s==="Type"&&r?a.jsx(T,{customerType:r}):r??"-"}),u&&a.jsx(O,{type:u})]},s))})}),e.values.trialId&&a.jsx(p,{heading:"Pilot details",items:f}),a.jsx(p,{heading:"Product details",items:h})]})}function se(e){return a.jsx(k,{queryParams:e.queryParams,currentStepId:S.CONFIRMATION,children:a.jsx(M,{})})}export{se as CustomerWizardConfirmationView};
//# sourceMappingURL=CMQMV9Ig.chunk.js.map
