"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("./breadcrumbs-constants.cjs"),i=require("./breadcrumb-item.cjs"),s=require("../../common/utils/index.cjs"),m=require("../../localization/index.cjs"),e=require("vue"),b=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),_={compatConfig:{MODE:3},name:"DtBreadcrumbs",components:{DtBreadcrumbItem:i.default},props:{breadcrumbs:{type:Array,default:()=>[],validate(t){return t.every(({href:n,label:r})=>n!==void 0&&r!==void 0)}},inverted:{type:Boolean,default:!1},ariaLabel:{type:String,default:""}},data(){return{BREADCRUMBS_INVERTED_MODIFIER:d.BREADCRUMBS_INVERTED_MODIFIER,i18n:new m.DialtoneLocalization}},methods:{getBreadcrumbItemKey(t){return`breadcrumbs-item-${t}-${s.default.getUniqueString()}`}}},B=["aria-label"];function E(t,n,r,D,a,u){const l=e.resolveComponent("dt-breadcrumb-item");return e.openBlock(),e.createElementBlock("nav",{"aria-label":r.ariaLabel||a.i18n.$t("DIALTONE_BREADCRUMBS_ARIA_LABEL"),"data-qa":"dt-breadcrumbs",class:e.normalizeClass(["d-breadcrumbs",{[a.BREADCRUMBS_INVERTED_MODIFIER]:r.inverted}])},[e.createElementVNode("ol",null,[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.breadcrumbs,(o,c)=>(e.openBlock(),e.createBlock(l,e.mergeProps({key:u.getBreadcrumbItemKey(c),inverted:r.inverted},o),null,16,["inverted"]))),128))])])],10,B)}const f=b._(_,[["render",E]]);exports.default=f;
//# sourceMappingURL=breadcrumbs.cjs.map
