1import{S as c}from"./swiper-core.js";import{e as f,w as g}from"./ScrollTrigger.js";const i={BUTTON_NEXT:".swiper-button-next",BUTTON_PREV:".swiper-button-prev",CONTAINER:".swiper",NEXT_BUTTON:".swiper-next-button",PAGINATION:".swiper-pagination",PREV_BUTTON:".swiper-prev-button",SCROLLBAR:".swiper-scrollbar",SLIDE:".swiper-slide",WRAPPER:".swiper-wrapper"};function S(e,r){const t=e.querySelector(i.CONTAINER);if(!t)return f("[Allbirds utils] - initSwiper - .swiper element not found",{containerClasses:e?.className,containerExists:!!e,containerTag:e?.tagName}),null;const n=N(e,r);return new c(t,n)}function N(e,r){const t={...r};if(r.modules&&r.modules.length>0){const n=r.navigation||{},l=n.nextEl?o(e,n.nextEl):e.querySelector(i.NEXT_BUTTON),s=n.prevEl?o(e,n.prevEl):e.querySelector(i.PREV_BUTTON);(l||s||"navigation"in r)&&((!l||!s)&&g("[Allbirds utils] - createSwiperConfig - Navigation buttons not found",{containerClasses:e?.className,nextButton:!!l,prevButton:!!s}),t.navigation={...n,nextEl:l,prevEl:s});const a=r.pagination||{},p=a.el?o(e,a.el):e.querySelector(i.PAGINATION);(p||"pagination"in r)&&(t.pagination={...a,el:p});const u=r.scrollbar||{},E=u.el?o(e,u.el):e.querySelector(i.SCROLLBAR);(E||"scrollbar"in r)&&(t.scrollbar={...u,el:E})}return t}function o(e,r){return typeof r=="string"?e.querySelector(r):r}export{i as S,S as i};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.