index of
/
home
/
thefkyzp
/
hulmvisaadvisor.com
/
wp-content
/
plugins
/
surecart
/
dist
/
File: /home/thefkyzp/hulmvisaadvisor.com/wp-content/plugins/surecart/dist/7146.js
"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[7146],{7146:function(e,r,t){t.r(r),t.d(r,{sc_breadcrumbs:function(){return s}});var a=t(9062),n=t(5671),o=t(3144),l=t(8860),s=function(){function e(r){(0,n.Z)(this,e),(0,l.r)(this,r),this.label="Breadcrumb"}return(0,o.Z)(e,[{key:"getSeparator",value:function(){var e=this.el.shadowRoot.querySelector("slot[name=separator]").assignedElements({flatten:!0})[0].cloneNode(!0);return[e].concat((0,a.Z)(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,l.h)(l.F,null,(0,l.h)("nav",{part:"base",class:"breadcrumb","aria-label":this.label},(0,l.h)("slot",{onSlotchange:function(){return e.handleSlotChange()}})),(0,l.h)("div",{part:"separator",hidden:!0,"aria-hidden":"true"},(0,l.h)("slot",{name:"separator"},(0,l.h)("sc-icon",{name:"chevron-right"}))))}},{key:"el",get:function(){return(0,l.a)(this)}}]),e}();s.style=":host{display:block}.breadcrumb{display:flex;align-items:center;flex-wrap:wrap}"}}]);