"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),o=require("../../organisms/TextSection/TextSection.js"),n=require("../../organisms/ConditionSection/ConditionSection.js"),t=require("../../organisms/ScopeSection/ScopeSection.js"),a=require("../../organisms/ConfigSection/ConfigSection.js");exports.TrafficManagerTemplate=function(r){var s=r.state,l=r.handlers,d=r.uiState,p=[e.__assign({key:"orderSeparation",label:"Order"},s.configData.orderSeparation),e.__assign({key:"advertiserSeparation",label:"Advertiser"},s.configData.advertiserSeparation)],c=[{key:"inventoryCode",label:"Inventory code",enabled:s.configData.inventoryCode},{key:"breakCode",label:"Break Code",enabled:s.configData.breakCode}];return i.jsxs("div",e.__assign({className:"traffic-manager-template"},{children:[i.jsx(o.TextSection,e.__assign({id:"why-this-learning",title:"Why this learning",rows:4,placeholder:"Enter a short, descriptive title for the rule",required:!0,value:s.whyThisLearning,onChange:l.setWhyThisLearning},d)),i.jsx(n.ConditionSection,e.__assign({},d,{id:"when-to-apply",title:"When to apply",required:!0,conditions:s.whenToApplyConditions,onAdd:l.addWhenToApply,onRemove:l.removeWhenToApply,onEdit:l.editWhenToApply,errorMessage:d.validationErrors["when-to-apply"],conflictView:s.conflict_view})),i.jsx(n.ConditionSection,e.__assign({},d,{id:"when-not-to-apply",title:"When NOT to apply",required:!1,conditions:s.whenNotToApplyConditions,onAdd:l.addWhenNotToApply,onRemove:l.removeWhenNotToApply,onEdit:l.editWhenNotToApply,errorMessage:d.validationErrors["when-not-to-apply"],conflictView:s.conflict_view})),i.jsx(t.ScopeSection,e.__assign({id:"scope",required:!0,scopeData:s.scopeData,onScopeChange:l.onScopeChange,stationOptions:[{label:"WFUN",value:"WFUN"},{label:"KYKY",value:"KYKY"},{label:"KRBQ",value:"KRBQ"}],tierOptions:["Tier 1","Tier 2"],stationLabel:"Station",tierLabel:"Which tiers should this rule apply to?"},d)),i.jsx(a.ConfigSection,e.__assign({id:"config",title:"Configuration",required:!0,separationItems:p,toggles:c,onConfigChange:l.onConfigChange},d))]}))};
//# sourceMappingURL=TrafficManagerTemplate.js.map
