"use strict";var DesignSystem;(globalThis.webpackChunkDesignSystem=globalThis.webpackChunkDesignSystem||[]).push([[861],{1031:(e,i,t)=>{var d=t(7142),a=t(2485),n=t.n(a),s=t(4987),r=t(5901);const l=(e,i)=>{const t=`h${i}`||"h3";if(e)return(0,r.Y)(t,{className:"ds-c-review__heading",children:e})},c=e=>{const i=n()("ds-c-review",e.className);return(0,r.FD)("div",{className:i,children:[(0,r.FD)("div",{className:"ds-c-review__content",children:[l(e.heading,e.headingLevel),(0,r.Y)("div",{className:"ds-c-review__body",children:e.children})]}),e.editContent,!e.editContent&&e.editHref&&(0,r.Y)("a",{onClick:i=>{e.onEditClick&&e.onEditClick(i,e.editHref)},href:e.editHref,"aria-label":e.editAriaLabel,children:e.editText??(0,s.t)("review.editText")})]})};c.defaultProps={headingLevel:"3"};const h=c,v=e=>{let{children:i,...t}=e;return(0,r.Y)(h,{...t,children:i})};(0,d.E)("ds-review",(()=>v),{attributes:["class-name","edit-aria-label","edit-href","edit-text","heading","heading-level"],shadow:!0})},5901:(e,i,t)=>{t.d(i,{FD:()=>d.FD,FK:()=>d.FK,Y:()=>d.Y}),t(7402);var d=t(201)}},e=>{var i=e(e.s=1031);DesignSystem=i}]);
//# sourceMappingURL=ds-review.js.map