PageSourceSearch

https://www.lornajane.com.au/cdn/shop/t/149/assets/embla-carousel.…?v=30065192702061571091790811318

js lornajane.com.au collected 2026-10-02 07:03:50 UTC 1,865 bytes, 1 lines download raw bytes

1import{u as l}from"./jsxRuntime.module.BdCR_W1i.min.js";import{A as w,d as o,q as h,y as z}from"./hooks.module.DPQCO04a.min.js";import{E as I}from"./embla-carousel.esm.CMPFBS9o.min.js";import{I as N}from"./icon.DsspsfcM.min.js";import"./preact.module.BHYxSqn9.min.js";const p=({onClick:i,disabled:t,className:n,children:r,ariaLabel:c})=>l("button",{type:"button",onClick:i,disabled:t,className:`icon-primary disabled:cursor-not-allowed disabled:text-disabled ${n??""}`,"aria-label":c,children:r});function j({children:i,options:t={},className:n="",showArrows:r=!0,arrowClassName:c="",prevButtonClassName:x="",nextButtonClassName:g="",containerClassName:$="",onInit:b,onSelect:u,ctaText:d="",ctaUrl:f=""}){const m=w(null),[s,C]=o(void 0),[E,P]=o(!0),[S,y]=o(!0),[v,B]=o(!1),D=h(()=>s?.scrollPrev(),[s]),k=h(()=>s?.scrollNext(),[s]);return z(()=>{if(!m.current)return;const e=I(m.current,t);C(e),b?.(e);const a=()=>{P(!e.canScrollPrev()),y(!e.canScrollNext()),B(e.scrollSnapList().length>1),u?.(e)};return a(),e.on("select",a),e.on("reInit",a),()=>{e.off("select",a),e.off("reInit",a),e.destroy()}},[t,b,u]),l("div",{className:`relative ${n}`,children:[l("div",{className:"overflow-hidden",ref:m,children:l("div",{className:`embla__container flex ${$}`,children:i})}),!!d?.length&&!!f?.length&&l("div",{className:`absolute -top-11 hidden md:block${r&&v?" right-20":" right-0"}`,children:l("a",{href:f,"aria-label":d,class:"button-outline-default w-fit flex cursor-pointer button-small",children:d})}),r&&v&&l("div",{className:`absolute z-2 flex items-center gap-6 ${c}`,children:[l(p,{onClick:D,disabled:E,className:x,ariaLabel:"Prev",children:l(N,{name:"chevron-left",className:"size-4",viewBox:"0 0 24 24"})}),l(p,{onClick:k,disabled:S,className:g,ariaLabel:"Next",children:l(N,{name:"chevron-right",className:"size-4",viewBox:"0 0 24 24"})})]})]})}export{j as E};

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.