import{aw as x,b as T,a4 as f,j as t}from"./app-BgLa5dit.js";import{b as v}from"./C1fMRwzQ.chunk.js";import{u as j,C as r}from"./C5-i-ZL0.chunk.js";import{C as w}from"./YSGwxiQJ.chunk.js";import{a as I}from"./CmeGmsFm.chunk.js";import{C as y}from"./BO07ARJN.chunk.js";import"./C4BcftDO.chunk.js";import"./Zwjmkasg.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"./DBvERro4.chunk.js";import"./uachN0F4.chunk.js";import"./u6fIQ8Ti.chunk.js";function z(){const o=x(),a=o.values.cftObject,{hasPermissions:n}=T(),m=n(f.ExchangeTvProductManage),{onTogglePresentation:d,onToggleCurriculum:u,onToggleProduct:l,onToggleFeature:p}=j(a),g=o.values.country==="United States",{orderedPresentations:C,orderedCurriculumPresentations:c,orderedProducts:S,orderedFeatures:h,hasTwig:P,hasTigTag:b}=v(a,m);return t.jsxs("div",{className:"crm-studio-wizard-form",children:[t.jsx(w,{}),t.jsx("h2",{className:"mb-3",children:"Customisations"}),t.jsx(r,{heading:"Presentations",items:C.map(e=>{var s;return{id:e.id,name:e.name,value:!!((s=o.values.enabledPresentations)!=null&&s.some(i=>i.toString()===e.id.toString()))}}),onChange:d}),t.jsx(r,{heading:g?"Standards":"Curriculums",items:c.map(e=>{var s;return{id:e.id,name:e.name,value:!!((s=o.values.enabledCurriculums)!=null&&s.some(i=>i.toString()===e.id.toString()))}}),onChange:u}),t.jsx(r,{heading:"Products",items:S.map(e=>{var s;return{id:e.id,name:e.name,disabled:e.disabled,disabledTooltip:e.disabled&&e.disabledTooltip,value:!!((s=o.values.enabledProducts)!=null&&s.some(i=>i.toString()===e.id.toString()))}}),onChange:l}),(P||b)&&t.jsx(r,{heading:"Features",items:h.map(e=>{var s;return{id:e.id,name:e.name,value:!!((s=o.values.enabledLibraries)!=null&&s.some(i=>i.toString()===e.id.toString()))}}),onChange:p})]})}function J(o){return t.jsx(y,{queryParams:o.queryParams,currentStepId:I.CUSTOMER_CUSTOMISATIONS,children:t.jsx(z,{})})}export{J as CustomerWizardCustomisationsView};
//# sourceMappingURL=C5SRmbJ8.chunk.js.map
