"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[5254],{5254:function(e,r,a){a.r(r),a.d(r,{sc_breadcrumbs:function(){return s}});var t=a(9394),n=a(3029),c=a(2901),o=a(1346),s=function(){return(0,c.A)((function e(r){(0,n.A)(this,e),(0,o.r)(this,r),this.label="Breadcrumb"}),[{key:"getSeparator",value:function(){var e=this.el.shadowRoot.querySelector("slot[name=separator]").assignedElements({flatten:!0})[0].cloneNode(!0);return[e].concat((0,t.A)(e.querySelectorAll("[id]"))).forEach((function(e){return e.removeAttribute("id")})),e.slot="separator",e}},{key:"handleSlotChange",value:function(){var e=this,r=this.el.shadowRoot.querySelector(".breadcrumb slot").assignedElements().filter((function(e){return"CE-BREADCRUMB"===e.nodeName}));r.forEach((function(a,t){null===a.querySelector('[slot="separator"]')&&a.append(e.getSeparator()),t===r.length-1?a.setAttribute("aria-current","page"):a.removeAttribute("aria-current")}))}},{key:"render",value:function(){var e=this;return(0,o.h)(o.F,{key:"f33708c21b9951084724cd207b13a3ef14f70420"},(0,o.h)("nav",{key:"ef776f07eec4d5a2e754a7895c6e43308d02b7b7",part:"base",class:"breadcrumb","aria-label":this.label},(0,o.h)("slot",{key:"8c4efc22225ef46e2c423bae78d9396067ef08bb",onSlotchange:function(){return e.handleSlotChange()}})),(0,o.h)("div",{key:"109e7ec38dc3d0a598f473d5422ab4dfb5d134b2",part:"separator",hidden:!0,"aria-hidden":"true"},(0,o.h)("slot",{key:"a663890c8aa67f710a9818c3d12c0db54348f7ff",name:"separator"},(0,o.h)("sc-icon",{key:"dbb8393d11f1a9f3fe5585e7caf3380e9fb5f2aa",name:"chevron-right"}))))}},{key:"el",get:function(){return(0,o.a)(this)}}])}();s.style=":host{display:block}.breadcrumb{display:flex;align-items:center;flex-wrap:wrap}"}}]);