"use strict";exports.id=1972,exports.ids=[1972],exports.modules={91972:(e,t,r)=>{r.d(t,{Z:()=>Breadcrumb_Breadcrumb});var a=r(16689),d=r.n(a),n=r(2614),l=r(40727),i=r(36588);let m=(0,a.lazy)(()=>Promise.all([r.e(7169),r.e(4983)]).then(r.bind(r,47169))),s=(0,a.lazy)(()=>Promise.all([r.e(9570),r.e(1697)]).then(r.bind(r,99570))),c=(0,a.lazy)(()=>r.e(4219).then(r.bind(r,15741))),o=(0,a.lazy)(()=>Promise.all([r.e(4451),r.e(6621)]).then(r.bind(r,94451))),b=(0,a.forwardRef)(function({children:e,divider:t="",testId:r="fs-breadcrumb",breadcrumbList:b,isDesktop:u=!1,renderLink:p,homeLink:E,dropdownButtonIcon:f=d().createElement(n.Z,{name:"DotsThree"}),collapsedItemsIcon:v=d().createElement(n.Z,{"data-fs-dropdown-item-icon":!0,name:"ArrowElbowDownRight"}),...h},g){let k=u?b[0]:null,w=u?b.slice(1,-2):b.slice(0,-2),y=b.slice(-2),P=b.length>4,B=(0,a.useCallback)(e=>{let t=p?.(e),r=e.collapsed?{"data-fs-breadcrumb-dropdown-link":!0}:{"data-fs-breadcrumb-link":!0};return t?(0,a.cloneElement)(t,{...r,key:e.itemProps.position}):d().createElement(l.Z,{...r,href:e.itemProps.item,key:e.itemProps.position},e.itemProps.name)},[p]);return d().createElement(i.Z,{ref:g,"data-fs-breadcrumb-is-desktop":u,...h},E,!P&&b.map((e,t)=>b.length===t+1?d().createElement("span",{key:String(e.position)},e.name):B({itemProps:e,collapsed:!1})),P&&k&&B({itemProps:k,collapsed:!1}),P&&d().createElement(a.Suspense,null,d().createElement(m,null,d().createElement(s,{"aria-label":"View More","data-fs-breadcrumb-dropdown-button":!0,size:"small"},f),d().createElement(c,{"data-fs-breadcrumb-dropdown-menu":!0},w.map(e=>d().createElement(o,{"data-fs-breadcrumb-dropdown-item":!0,key:String(e.position),icon:v},B({itemProps:e,collapsed:!0})))))),P&&y.map((e,t)=>y.length===t+1?d().createElement("span",{key:String(e.position)},e.name):B({itemProps:e,collapsed:!1})))}),Breadcrumb_Breadcrumb=({breadcrumbList:e,...t})=>d().createElement(d().Fragment,null,d().createElement(b,{breadcrumbList:e,...t}),d().createElement(b,{breadcrumbList:e,isDesktop:!0,...t}))},36588:(e,t,r)=>{r.d(t,{Z:()=>i});var a=r(16689),d=r.n(a),n=r(94564);let Breadcrumb_Divider=({divider:e,testId:t})=>{let r={"data-fs-breadcrumb-divider":!0,"aria-hidden":!0,"data-testid":`${t}-divider`};return d().isValidElement(e)?d().cloneElement(e,r):d().createElement("span",{...r},e??"/")},Breadcrumb_ListItem=({children:e,isLastItem:t,divider:r,testId:a})=>{let n={"data-testid":`${a}-item`,"data-fs-breadcrumb-item":!t||"current","aria-current":t?"page":void 0};return d().isValidElement(e)?d().createElement("li",{"data-fs-breadcrumb-list-item":!0},d().cloneElement(e,n),t?null:d().createElement(Breadcrumb_Divider,{divider:r,testId:a})):d().createElement("li",{"data-fs-breadcrumb-list-item":!0},d().createElement("span",{...n},e,t?null:d().createElement(Breadcrumb_Divider,{divider:r,testId:a})))},l=(0,a.forwardRef)(function({children:e,divider:t="",testId:r="fs-breadcrumb",...a},l){return d().createElement("nav",{"aria-label":"Breadcrumb",role:"navigation",ref:l,"data-fs-breadcrumb":!0,"data-testid":r,...a},d().createElement(n.Z,{as:"ol","data-fs-breadcrumb-list":!0,"data-fs-content":"breadcrumb"},d().Children.toArray(e).map((e,a,n)=>{let l=a===n.length-1;return d().createElement(Breadcrumb_ListItem,{isLastItem:l,divider:t,key:`breadcrumb-${a}`,testId:r},e)})))}),i=l}};