"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[5254],{5254:function(e,a,r){r.r(a),r.d(a,{sc_breadcrumbs:function(){return s}});var t=r(9394),n=r(3029),c=r(2901),o=r(1346),s=function(){return(0,c.A)((function e(a){(0,n.A)(this,e),(0,o.r)(this,a),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,a=this.el.shadowRoot.querySelector(".breadcrumb slot").assignedElements().filter((function(e){return"CE-BREADCRUMB"===e.nodeName}));a.forEach((function(r,t){null===r.querySelector('[slot="separator"]')&&r.append(e.getSeparator()),t===a.length-1?r.setAttribute("aria-current","page"):r.removeAttribute("aria-current")}))}},{key:"render",value:function(){var e=this;return(0,o.h)(o.F,{key:"2c3f669d33e1cd9d81584741f854714b527d748a"},(0,o.h)("nav",{key:"70bf38c356ae9a9727e199abb069135ead181604",part:"base",class:"breadcrumb","aria-label":this.label},(0,o.h)("slot",{key:"59ce0523c1c3afc196acf714f683d0f75ce9ca4f",onSlotchange:function(){return e.handleSlotChange()}})),(0,o.h)("div",{key:"2211bd7d39b79ca41ddeb74a6882231a8974c9ac",part:"separator",hidden:!0,"aria-hidden":"true"},(0,o.h)("slot",{key:"58f17b11abbc7bdda157877bbcd24cf7585588ee",name:"separator"},(0,o.h)("sc-icon",{key:"dd97d312976ccafa8c95305326abd4f13bcdd9a8",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}"}}]);