"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(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,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:"16084932447058ba595dc36c9df398bf06785ba8"},(0,o.h)("nav",{key:"32fe4729827e5617ab5e55c80569d8843cadc8dd",part:"base",class:"breadcrumb","aria-label":this.label},(0,o.h)("slot",{key:"f64d73849d4f36c46aed04523c582d909d470396",onSlotchange:function(){return e.handleSlotChange()}})),(0,o.h)("div",{key:"16e8e8872d77279867b413a819b56ac512396dc2",part:"separator",hidden:!0,"aria-hidden":"true"},(0,o.h)("slot",{key:"c5177a9f145a59bc6a3b1be458d3d483055e6795",name:"separator"},(0,o.h)("sc-icon",{key:"13b07f75e354841efd0a7203023cce564799402e",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}"}}]);