"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:"6d12ffd546c2a2fdda863b2a3831e98111cb9514"},(0,o.h)("nav",{key:"41810cb4dbbd20e59858dcbffa661ed95d6ac255",part:"base",class:"breadcrumb","aria-label":this.label},(0,o.h)("slot",{key:"c7d95a28bb5b449212a476198decc1e841426d29",onSlotchange:function(){return e.handleSlotChange()}})),(0,o.h)("div",{key:"eefe1e7e3b0df145d34bec7291c0afb68dc2af0f",part:"separator",hidden:!0,"aria-hidden":"true"},(0,o.h)("slot",{key:"67b05db1cd38814a2919e13f18616fbaa4642809",name:"separator"},(0,o.h)("sc-icon",{key:"88a9ef9ae220f348fe2b14b11eaa3e490b14b30a",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}"}}]);