"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[5254],{65254:function(e,r,a){a.r(r),a.d(r,{sc_breadcrumbs:function(){return s}});var t=a(89394),n=a(23029),c=a(92901),o=a(27364),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:"d06e34fd092616580595553ad370322bcc0a2af8"},(0,o.h)("nav",{key:"c8b85c6dd6ba1a2cf4e220ead2b4287e5595e3ae",part:"base",class:"breadcrumb","aria-label":this.label},(0,o.h)("slot",{key:"d29471f6a52e24fcc980f24a783eed6bd74bbdbe",onSlotchange:function(){return e.handleSlotChange()}})),(0,o.h)("div",{key:"2d92d9a2715dffa22c85591b95f482c8f870bfdd",part:"separator",hidden:!0,"aria-hidden":"true"},(0,o.h)("slot",{key:"2e7f25418cc36d5199826d1263bf6fa430cb1ac0",name:"separator"},(0,o.h)("sc-icon",{key:"f73ddbf8ab67935bef34933f5ddaf4eb4b612291",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}"}}]);