1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[421],{2532:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/solid",function(){return r(2954)}])},2954:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d,meta:()=>o});var n=r(4848),l=r(8453),s=r(1086),i=r(8877);let o={title:"Swiper SolidJS Components"},c=function(e){let{children:t}=e,r={h1:s.A.h1,h2:s.A.h2,h3:s.A.h3,h4:s.A.h4};return(0,n.jsx)(l.x,{components:r,children:(0,n.jsx)(i.p,{meta:o,children:t})})};function a(e){return(0,n.jsxs)(n.Fragment,{children:["\n",(0,n.jsxs)("div",{className:"important-note space-y-4 ",children:[(0,n.jsxs)("div",{children:["Swiper Solid components have been removed in v9. Use ",(0,n.jsx)("a",{href:"/element",children:"Swiper Element"})," instead"]}),(0,n.jsxs)("div",{children:["If you are looking for v8 docs, they are here ",(0,n.jsx)("a",{href:"https://v8.swiperjs.com",target:"_blank",children:"v8.swiperjs.com"})]})]})]})}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,n.jsx)(c,{...e,children:(0,n.jsx)(a,{...e})})}},8453:(e,t,r)=>{"use strict";r.d(t,{R:()=>i,x:()=>o});var n=r(6540);let l={},s=n.createContext(l);function i(e){let t=n.useContext(s);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:i(e.components),n.createElement(s.Provider,{value:t},e.children)}},1086:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(4848),l=r(4164);function s(e){let{level:t,id:r,link:s=!0,children:i,number:o,className:c="",style:a={},...d}=e;return(0,n.jsxs)("h".concat(t),{className:(0,l.A)("group flex whitespace-pre-wrap",c),id:r,style:{...a},...d,children:[s&&(0,n.jsx)("a",{href:"#".concat(r),className:"after:hash absolute opacity-0 group-hover:opacity-100",style:{marginLeft:"-1em",paddingRight:"0.5em",color:"#a1a1aa",textDecoration:"none"},"aria-label":"Anchor"}),(0,n.jsx)("span",{children:i})]})}s.h1=e=>(0,n.jsx)(s,{level:1,...e}),s.h2=e=>(0,n.jsx)(s,{level:2,...e}),s.h3=e=>(0,n.jsx)(s,{level:3,...e}),s.h4=e=>(0,n.jsx)(s,{level:4,...e})},8877:(e,t,r)=>{"use strict";r.d(t,{p:()=>w});var n=r(4848),l=r(6540),s=r(6715),i=r(1106),o=r(3368),c=r(4164);let a=e=>{let[t,r]=(0,l.useState)(e),n=(0,l.useRef)([]),s=(0,l.useRef)(0),i=()=>{let e=document.querySelectorAll(".prose h2[id], .prose h3[id]");for(let t=0;t<e.length;t+=1){let r=e[t];n.current.push({el:r,id:r.id})}},o=()=>{let e=window.scrollY;s.current=window.innerHeight,n.current.forEach(t=>{let r=t.el.getBoundingClientRect();t.offset=e+r.top})},c=()=>{let e=n.current[0],t=window.scrollY,l=n.current.filter(e=>{let{offset:r}=e;return r>=t})[0];n.current.forEach(r=>{t+s.current/2>r.offset&&(e=r)}),n.current.indexOf(l)<n.current.indexOf(e)&&(e=l),e&&e.id&&r(e.id)},a=()=>{c()},d=()=>{o(),c()},h=()=>{window.addEventListener("scroll",a),window.addEventListener("resize",d)},u=()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",d)};return(0,l.useEffect)(()=>(i(),o(),c(),h(),()=>u()),[]),t};function d(e){let{tableOfContents:t,onClick:r}=e,s=a(t[0].slug);return(0,n.jsx)("ul",{className:"table-of-contents overflow-x-hidden shrink-0",onClick:r,children:t.map(e=>{let t=s===e.slug,r=e.children.findIndex(e=>{let{slug:t}=e;return t===s})>-1;return(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)("li",{className:"my-1",children:(0,n.jsx)("a",{href:"#".concat(e.slug),className:(0,c.A)("block rounded-full py-1.5 !text-on-surface-darker !no-underline",{"hover:!text-on-surface-dark":!t,"!text-primary":r,"!text-primary":t}),children:e.title})}),e.children.map(e=>{let t=s===e.slug;return(0,n.jsx)("li",{className:"ml-2",children:(0,n.jsx)("a",{href:"#".concat(e.slug),className:(0,c.A)("block rounded-full px-3 py-1 !text-on-surface-darker !no-underline",{"hover:!text-on-surface-dark":!t,"!text-primary":t}),children:e.title})},e.slug)})]},e.slug)})})}var h=r(6033);let u=[...r(1061),...h],x=e=>e.startsWith("http")?e:"/images/sponsors/".concat(e);function p(){return window.__NO_SPONSORS__?null:(0,n.jsxs)("div",{className:"mb-4","data-sponsors":"",children:[(0,n.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,n.jsx)("span",{children:"Sponsors"}),(0,n.jsx)("a",{href:"https://sponsors.nolimits4web.com",target:"_blank",className:"text-xs text-primary no-underline",children:"Become a sponsor"})]}),(0,n.jsx)("div",{className:"flex flex-wrap gap-1",children:u.filter(e=>{let{plan:t,active:r}=e;return"Sponsor"!==t&&r}).map((e,t)=>{let{link:r,title:l,image:s}=e;return(0,n.jsx)("a",{className:"flex items-center justify-center hover:opacity-80 bg-white",href:r,title:l+t,rel:"sponsored",target:"_blank",children:s&&(0,n.jsx)("img",{className:"h-7 w-7 object-contain lg:h-8 lg:w-8",alt:l,loading:"lazy",src:x(s)})},l)})})]})}let m=l.useLayoutEffect;var f=r(8578),g=r(1325),j=r(2888);function w(e){let{children:t,meta:r={},pageTitle:c="",beforePageTitle:a="",afterPageTitle:h=""}=e,u=(0,s.useRouter)(),x=(0,l.useRef)(null),[w,v]=(0,l.useState)([]),[b,N]=(0,l.useState)(!1);return m(()=>{let e;let t=[];return x.current.querySelectorAll("h2, h3").forEach(r=>{let n=r.getAttribute("id"),l=r.textContent.trim();e="h3"===r.nodeName.toLowerCase();let s={slug:n,title:l,children:[]};if(e){let e=Math.max(t.length-1,0);t[e]||(t[e]={children:[]}),t[e].children.push(s)}else t.push(s)}),v(t),()=>{}},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j.s,{withSidebar:!0}),(0,n.jsxs)("div",{id:r.containerId,className:"mx-auto flex w-full justify-between px-4 sm:px-6 md:px-8 relative",children:[r&&(0,n.jsxs)(o,{children:[(0,n.jsx)("title",{children:r.title}
1,"title"),(0,n.jsx)("meta",{property:"og:title",content:r.title}),(0,n.jsx)("meta",{name:"twitter:title",content:r.title}),r.description&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{name:"description",content:r.description},"description"),(0,n.jsx)("meta",{property:"og:description",content:r.description},"og:description"),(0,n.jsx)("meta",{name:"twitter:description",content:r.description},"twitter:description")]})]}),(0,n.jsx)(f.$,{className:"!fixed bottom-4 right-4 z-40 lg:hidden bg-surface-1 border border-outline backdrop-blur-lg w-16 h-16",onClick:()=>N(!0),children:(0,n.jsx)("svg",{className:"h-6 w-6",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24",fill:"currentColor",children:(0,n.jsx)("path",{d:"M120-240v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z"})})}),(0,n.jsx)("div",{className:"fixed right-0 top-0 z-50 h-full w-full bg-black/40 lg:z-40 lg:!hidden ".concat(b?"block":"hidden"),onClick:()=>N(!1)}),(0,n.jsx)("div",{className:"fixed left-2 top-2 bottom-2 z-50 mr-10 h-[calc(100vh-16px)] w-64 flex-none text-sm lg:relative lg:z-40 lg:left-0 lg:-top-34 lg:!block lg:h-auto lg:rounded-none ".concat(b?"block":"hidden"),children:(0,n.jsxs)("div",{className:"h-full overflow-y-auto overscroll-contain p-4 lg:sticky lg:top-4 bg-surface-1 border rounded-3xl border-outline backdrop-blur-2xl flex flex-col lg:h-[calc(100vh-32px)]",children:[(0,n.jsx)(p,{}),w.length>0&&(0,n.jsx)(d,{onClick:e=>{e.target&&e.target.closest("a")&&N(!1)},tableOfContents:w})]})}),(0,n.jsxs)("div",{className:"dark:prose-dark prose mx-auto min-w-0 max-w-none flex-auto pb-8 pt-10 2xl:max-w-[940px]",ref:x,children:[a,(c||r.title)&&(0,n.jsx)("h1",{children:c||r.title}),h,t,(0,n.jsx)("div",{className:"mt-4 border-t border-outline pt-4 text-right text-sm",children:(0,n.jsx)(i,{href:"https://github.com/nolimits4web/swiper-website/edit/master/src/pages".concat(u.pathname,".mdx"),children:"Edit this page on GitHub"})})]}),(0,n.jsx)("div",{className:"hidden h-px w-[calc(256px+40px)] shrink-0 2xl:block"})]}),(0,n.jsx)(g.A,{})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[950,636,593,792],()=>t(2532)),_N_E=e.O()}]);
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.