import{__assign as e}from"tslib";import{jsxs as o,jsx as i}from"react/jsx-runtime";import{TextSection as n}from"../../organisms/TextSection/TextSection.js";import{ConditionSection as t}from"../../organisms/ConditionSection/ConditionSection.js";import{ScopeSection as r}from"../../organisms/ScopeSection/ScopeSection.js";import{ConfigSection as a}from"../../organisms/ConfigSection/ConfigSection.js";var l=function(l){var p=l.state,s=l.handlers,d=l.uiState,c=[e({key:"orderSeparation",label:"Order"},p.configData.orderSeparation),e({key:"advertiserSeparation",label:"Advertiser"},p.configData.advertiserSeparation)],h=[{key:"inventoryCode",label:"Inventory code",enabled:p.configData.inventoryCode},{key:"breakCode",label:"Break Code",enabled:p.configData.breakCode}];return o("div",e({className:"traffic-manager-template"},{children:[i(n,e({id:"why-this-learning",title:"Why this learning",rows:4,placeholder:"Enter a short, descriptive title for the rule",required:!0,value:p.whyThisLearning,onChange:s.setWhyThisLearning},d)),i(t,e({},d,{id:"when-to-apply",title:"When to apply",required:!0,conditions:p.whenToApplyConditions,onAdd:s.addWhenToApply,onRemove:s.removeWhenToApply,onEdit:s.editWhenToApply,errorMessage:d.validationErrors["when-to-apply"],conflictView:p.conflict_view})),i(t,e({},d,{id:"when-not-to-apply",title:"When NOT to apply",required:!1,conditions:p.whenNotToApplyConditions,onAdd:s.addWhenNotToApply,onRemove:s.removeWhenNotToApply,onEdit:s.editWhenNotToApply,errorMessage:d.validationErrors["when-not-to-apply"],conflictView:p.conflict_view})),i(r,e({id:"scope",required:!0,scopeData:p.scopeData,onScopeChange:s.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(a,e({id:"config",title:"Configuration",required:!0,separationItems:c,toggles:h,onConfigChange:s.onConfigChange},d))]}))};export{l as TrafficManagerTemplate};
//# sourceMappingURL=TrafficManagerTemplate.js.map
