"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[5254],{5254:function(e,r,t){t.r(r),t.d(r,{sc_breadcrumbs:function(){return s}});var a=t(9394),n=t(3029),c=t(2901),o=t(7364),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,a.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(t,a){null===t.querySelector('[slot="separator"]')&&t.append(e.getSeparator()),a===r.length-1?t.setAttribute("aria-current","page"):t.removeAttribute("aria-current")}))}},{key:"render",value:function(){var e=this;return(0,o.h)(o.F,{key:"f3a773ae3dec02fd61ae08b2f8db4ea6019b860e"},(0,o.h)("nav",{key:"c7dda1a4eb6ccc9367ff3e11379fbf78170b4ed6",part:"base",class:"breadcrumb","aria-label":this.label},(0,o.h)("slot",{key:"e776e91b492658ba252f94df00f8693da587c84c",onSlotchange:function(){return e.handleSlotChange()}})),(0,o.h)("div",{key:"7621cc453369d38647299e30eb2a9f5f3fdc5d8c",part:"separator",hidden:!0,"aria-hidden":"true"},(0,o.h)("slot",{key:"2cc02d684909e8a9d443bf1003131dd827841227",name:"separator"},(0,o.h)("sc-icon",{key:"25cc937dac95fedb4d8d7374226eec6c1847c036",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}"}}]);