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BAC5Cc,iBAAA,EACAZ,SACAa,oBAAA,mBC3FA,SAAAC,EAAAC,GACA,qEAA+CA,GAC/C,CACA,SAAAC,EAAAC,EAAA1B,EAAA2B,EAAA,WAEA,OAAAJ,EAAA,GAAgCG,KAAQ1B,MADxC2B,EAAAC,cAAAC,QAAA,cAEA,CACA,SAAAC,EAAAC,EAAAJ,EAAA,WACA,OAAAF,EAAA,aAAAM,EAAAJ,EACA,CACA,SAAAK,EAAAC,EAAAN,EAAA,WACA,OAAAF,EAAA,YAAAQ,EAAAN,EACA,CACA,SAAAO,EAAAC,EAAAR,EAAA,WACA,OAAAF,EAAA,YAAAU,EAAAR,EACA,CACA,SAAAS,EAAAC,EAAAV,EAAA,WACA,OAAAF,EAAA,QAAAY,EAAAV,EACA,sGClBAW,EAAA,EAA8B3G,cAAA3B,MAAwB,EAAAuI,EAAAhI,eAAa,IAAAP,EAAA2B,GACnE6G,GAA2B,EAAAD,EAAAE,eAAa,MACxC,SAAAC,IACA,OAAS,EAAAH,EAAAI,YAAUH,IAAAF,CACnB","sources":["webpack://@logos/commerceweb-frontend/javascript/node_modules/lucide-react/dist/esm/icons/gallery-horizontal.mjs","webpack://@logos/commerceweb-frontend/./node_modules/@faithlife/commerce-components/dist/chunk-2EVSTQRI.js","webpack://@logos/commerceweb-frontend/javascript/node_modules/lucide-react/dist/esm/icons/rectangle-horizontal.mjs","webpack://@logos/commerceweb-frontend/./node_modules/@faithlife/commerce-components/dist/chunk-5SJ7P6ZL.js","webpack://@logos/commerceweb-frontend/./node_modules/@faithlife/commerce-components/dist/chunk-QJ7P73DS.js","webpack://@logos/commerceweb-frontend/./node_modules/@faithlife/commerce-components/dist/chunk-WWXV5LU4.js"],"sourcesContent":["/**\n * @license lucide-react v1.27.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n  [\"path\", { d: \"M2 3v18\", key: \"pzttux\" }],\n  [\"rect\", { width: \"12\", height: \"18\", x: \"6\", y: \"3\", rx: \"2\", key: \"btr8bg\" }],\n  [\"path\", { d: \"M22 3v18\", key: \"6jf3v\" }]\n];\nconst GalleryHorizontal = createLucideIcon(\"gallery-horizontal\", __iconNode);\n\nexport { __iconNode, GalleryHorizontal as default };\n//# sourceMappingURL=gallery-horizontal.mjs.map\n","import {\n  NextPreviousButton\n} from \"./chunk-LTUXGIZZ.js\";\nimport {\n  AmberImage\n} from \"./chunk-AF677QN7.js\";\nimport {\n  useLinkComponent\n} from \"./chunk-WWXV5LU4.js\";\nimport {\n  Typography\n} from \"./chunk-P4MY4MXU.js\";\nimport {\n  cn\n} from \"./chunk-NZVMNINS.js\";\n\n// src/components/carousel-shop-category/shop-category-slide.tsx\nimport React from \"react\";\nfunction ShopCategorySlide({\n  variant = \"image\",\n  categoryName,\n  displayText,\n  link,\n  onClick,\n  imageUrl,\n  imageHeight,\n  imageWidth,\n  className,\n  ...rest\n}) {\n  void imageHeight;\n  void imageWidth;\n  const LinkComponent = useLinkComponent();\n  const label = displayText || categoryName;\n  const categoryImageProps = {\n    height: 240,\n    sizes: { mobile: 240 },\n    targetAspectRatio: [1, 1],\n    width: 240\n  };\n  const cardInner = variant === \"highlight\" ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(\"div\", { className: \"bg-action-primary p-sp12 lg:p-sp16 text- relative flex h-60 w-60 items-start justify-start rounded-xs\" }, /* @__PURE__ */ React.createElement(\n    Typography,\n    {\n      tag: \"h4\",\n      variant: \"headingH4\",\n      className: \"block text-left break-normal whitespace-pre-line text-white\"\n    },\n    label\n  )), /* @__PURE__ */ React.createElement(Typography, { tag: \"span\", variant: \"ui1\", className: \"text-left\" }, label)) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(\"div\", { className: \"bg-surface-placeholder relative h-60 w-60 overflow-hidden rounded-xs\" }, imageUrl && /* @__PURE__ */ React.createElement(\n    AmberImage,\n    {\n      ...categoryImageProps,\n      alt: \"\",\n      src: imageUrl,\n      className: \"h-full w-full object-cover\"\n    }\n  )), /* @__PURE__ */ React.createElement(Typography, { tag: \"span\", variant: \"ui1\", className: \"text-left\" }, label));\n  const interactiveClassName = \"tw-preflight group flex w-60 cursor-pointer flex-col items-start gap-sp8 transition-opacity duration-short hover:opacity-80 focus-visible:opacity-80 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foreground active:opacity-70 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 motion-reduce:transition-none\";\n  const Tag = link ? LinkComponent : \"button\";\n  const tagProps = link ? { href: link } : { type: \"button\", onClick };\n  return /* @__PURE__ */ React.createElement(Tag, { ...tagProps, className: cn(interactiveClassName, className), \"aria-label\": label, ...rest }, cardInner);\n}\n\n// src/components/carousel-shop-category/component.tsx\nimport React2, { useRef, useState } from \"react\";\nimport { Swiper, SwiperSlide } from \"swiper/react\";\nimport { Navigation, Scrollbar } from \"swiper/modules\";\nimport { semanticColorValue } from \"@faithlife/commerce-theme/semantic\";\nimport \"./swiper-YYWPXRV2.css\";\nfunction CarouselShopCategory({\n  categories = [],\n  children,\n  showArrows = true,\n  loop = false,\n  className,\n  \"data-testid\": testId\n}) {\n  const prevButtonRef = useRef(null);\n  const nextButtonRef = useRef(null);\n  const [isAtBeginning, setIsAtBeginning] = useState(true);\n  const [isLocked, setIsLocked] = useState(false);\n  const childSlides = React2.Children.toArray(children);\n  const hasChildSlides = childSlides.length > 0;\n  const swiperStyle = {\n    \"--swiper-scrollbar-top\": \"auto\",\n    \"--swiper-scrollbar-bottom\": \"0px\",\n    \"--swiper-scrollbar-size\": \"2px\",\n    \"--swiper-scrollbar-bg-color\": semanticColorValue(\"surface-accent\"),\n    \"--swiper-scrollbar-drag-bg-color\": semanticColorValue(\"surface-inverse\")\n  };\n  return /* @__PURE__ */ React2.createElement(\"div\", { className: cn(\"tw-preflight min-w-0\", className), \"data-testid\": testId }, /* @__PURE__ */ React2.createElement(\"div\", { className: \"group relative flex items-center justify-center\" }, /* @__PURE__ */ React2.createElement(\"div\", { className: \"w-full overflow-hidden\" }, /* @__PURE__ */ React2.createElement(\n    Swiper,\n    {\n      centeredSlides: false,\n      className: \"pb-sp24 items-stretch overflow-visible\",\n      loop,\n      modules: [Scrollbar, ...showArrows ? [Navigation] : []],\n      navigation: showArrows ? {\n        prevEl: prevButtonRef.current,\n        nextEl: nextButtonRef.current\n      } : false,\n      onBeforeInit: (swiper) => {\n        if (!showArrows || !swiper.params.navigation || swiper.params.navigation === true) {\n          return;\n        }\n        swiper.params.navigation.prevEl = prevButtonRef.current;\n        swiper.params.navigation.nextEl = nextButtonRef.current;\n      },\n      onSlideChange: (swiper) => {\n        setIsAtBeginning(swiper.isBeginning);\n      },\n      onSwiper: (swiper) => {\n        setIsAtBeginning(swiper.isBeginning);\n        setIsLocked(swiper.isLocked);\n      },\n      onLock: () => setIsLocked(true),\n      onUnlock: () => setIsLocked(false),\n      scrollbar: { draggable: true },\n      slidesPerView: \"auto\",\n      spaceBetween: 12,\n      breakpoints: { 1024: { spaceBetween: 16 } },\n      style: swiperStyle\n    },\n    hasChildSlides ? childSlides.map((child, index) => /* @__PURE__ */ React2.createElement(SwiperSlide, { className: \"h-auto w-fit\", key: `category-child-${index}` }, child)) : categories.map((category) => /* @__PURE__ */ React2.createElement(SwiperSlide, { className: \"h-auto w-fit\", key: `category-${category.categoryId}` }, /* @__PURE__ */ React2.createElement(\n      ShopCategorySlide,\n      {\n        variant: \"image\",\n        categoryName: category.categoryName,\n        displayText: category.displayText,\n        imageHeight: category.imageHeight,\n        imageUrl: category.imageUrl,\n        imageWidth: category.imageWidth,\n        link: category.link,\n        onClick: category.onClick\n      }\n    )))\n  )), showArrows && !isLocked && /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(\n    \"div\",\n    {\n      className: cn(\n        \"duration-short absolute top-1/2 -left-6 z-10 hidden -translate-y-1/2 transition-opacity motion-reduce:transition-none lg:block\",\n        isAtBeginning ? \"lg:pointer-events-none lg:opacity-0\" : \"lg:pointer-events-none lg:opacity-0 lg:group-focus-within:pointer-events-auto lg:group-focus-within:opacity-100 lg:group-hover:pointer-events-auto lg:group-hover:opacity-100\"\n      )\n    },\n    /* @__PURE__ */ React2.createElement(\n      NextPreviousButton,\n      {\n        ref: prevButtonRef,\n        action: \"previous\",\n        className: \"[&.swiper-button-disabled]:opacity-50\",\n        scale: \"md\",\n        variant: \"secondary\"\n      }\n    )\n  ), /* @__PURE__ */ React2.createElement(\"div\", { className: \"duration-short absolute top-1/2 -right-6 z-10 hidden -translate-y-1/2 transition-opacity motion-reduce:transition-none lg:pointer-events-none lg:block lg:opacity-0 lg:group-focus-within:pointer-events-auto lg:group-focus-within:opacity-100 lg:group-hover:pointer-events-auto lg:group-hover:opacity-100\" }, /* @__PURE__ */ React2.createElement(\n    NextPreviousButton,\n    {\n      ref: nextButtonRef,\n      action: \"next\",\n      className: \"[&.swiper-button-disabled]:opacity-50\",\n      scale: \"md\",\n      variant: \"secondary\"\n    }\n  )))));\n}\n\n// src/components/carousel-shop-category/carousel-shop-category-registration-wrapper.tsx\nimport { BuilderBlocks } from \"@builder.io/react\";\nimport React3 from \"react\";\nfunction CarouselShopCategoryRegistrationWrapper({\n  builderBlock,\n  builderState,\n  children,\n  ...props\n}) {\n  void builderState;\n  const hasReactChildren = React3.Children.count(children) > 0;\n  return /* @__PURE__ */ React3.createElement(CarouselShopCategory, { ...props }, builderBlock && !hasReactChildren ? /* @__PURE__ */ React3.createElement(\n    BuilderBlocks,\n    {\n      blocks: builderBlock.children,\n      child: true,\n      dataPath: \"this.children\",\n      parentElementId: builderBlock.id\n    }\n  ) : children);\n}\n\nexport {\n  ShopCategorySlide,\n  CarouselShopCategory,\n  CarouselShopCategoryRegistrationWrapper\n};\n//# sourceMappingURL=chunk-2EVSTQRI.js.map","/**\n * @license lucide-react v1.27.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n  [\"rect\", { width: \"20\", height: \"12\", x: \"2\", y: \"6\", rx: \"2\", key: \"9lu3g6\" }]\n];\nconst RectangleHorizontal = createLucideIcon(\"rectangle-horizontal\", __iconNode);\n\nexport { __iconNode, RectangleHorizontal as default };\n//# sourceMappingURL=rectangle-horizontal.mjs.map\n","import {\n  CarouselShopCategoryRegistrationWrapper,\n  ShopCategorySlide\n} from \"./chunk-2EVSTQRI.js\";\nimport {\n  lucideIconUri\n} from \"./chunk-BEFWWR2C.js\";\nimport {\n  getStorybookDocsUrlForMolecule\n} from \"./chunk-QJ7P73DS.js\";\nimport {\n  withBuilderAttributes\n} from \"./chunk-NZVMNINS.js\";\n\n// src/components/carousel-shop-category/register.tsx\nimport { Builder, withChildren } from \"@builder.io/react\";\nimport { GalleryHorizontal, RectangleHorizontal } from \"lucide-react\";\nvar registerComponent = () => {\n  Builder.registerComponent(withBuilderAttributes(ShopCategorySlide), {\n    name: \"ShopCategorySlide\",\n    friendlyName: \"Shop by Category Slide\",\n    image: lucideIconUri(RectangleHorizontal),\n    docsLink: getStorybookDocsUrlForMolecule(\"carousel-shop-category\"),\n    noWrap: true,\n    inputs: [\n      {\n        name: \"variant\",\n        friendlyName: \"Variant\",\n        type: \"string\",\n        enum: [\n          { label: \"Image\", value: \"image\" },\n          { label: \"Highlight\", value: \"highlight\" }\n        ],\n        defaultValue: \"image\",\n        helperText: 'Image shows a photo with a label below. Highlight shows a colored background with text \\u2014 use this for the \"Shop all\" card.'\n      },\n      {\n        name: \"categoryName\",\n        friendlyName: \"Category Name\",\n        type: \"string\",\n        required: true\n      },\n      {\n        name: \"displayText\",\n        friendlyName: \"Display Text\",\n        type: \"string\",\n        helperText: \"Optional. Overrides Category Name in the label.\"\n      },\n      {\n        name: \"link\",\n        type: \"url\",\n        required: true,\n        bubble: true\n      },\n      {\n        name: \"imageUrl\",\n        friendlyName: \"Category Image\",\n        type: \"string\",\n        showIf: (options) => options.get(\"variant\") !== \"highlight\"\n      }\n    ]\n  });\n  const inputs = [\n    {\n      name: \"showArrows\",\n      friendlyName: \"Show Navigation Arrows\",\n      type: \"boolean\",\n      defaultValue: true,\n      helperText: \"Show or hide the previous/next navigation arrows\"\n    },\n    {\n      name: \"loop\",\n      friendlyName: \"Loop Carousel\",\n      type: \"boolean\",\n      defaultValue: false,\n      helperText: \"Enable infinite looping of the carousel\"\n    }\n  ];\n  Builder.registerComponent(withChildren(CarouselShopCategoryRegistrationWrapper), {\n    name: \"CarouselShopCategory\",\n    friendlyName: \"Carousel Shop Category\",\n    image: lucideIconUri(GalleryHorizontal),\n    docsLink: getStorybookDocsUrlForMolecule(\"carousel-shop-category\"),\n    canHaveChildren: true,\n    inputs\n  });\n  Builder.registerComponent(withChildren(CarouselShopCategoryRegistrationWrapper), {\n    name: \"ShopCategorySwiper\",\n    friendlyName: \"Category Swiper\",\n    image: lucideIconUri(GalleryHorizontal),\n    docsLink: getStorybookDocsUrlForMolecule(\"carousel-shop-category\"),\n    canHaveChildren: true,\n    inputs,\n    hideFromInsertMenu: true\n  });\n};\n\nexport {\n  registerComponent\n};\n//# sourceMappingURL=chunk-5SJ7P6ZL.js.map","// src/config/storybook.ts\nvar STORYBOOK_BASE_URL = \"https://storybook.commercecomponents.logos.com\";\nfunction getStorybookDocsUrl(storyId) {\n  return `${STORYBOOK_BASE_URL}/?path=/story/${storyId}`;\n}\nfunction getStorybookDocsUrlForTier(tier, name, story = \"default\") {\n  const storySlug = story.toLowerCase().replace(/\\s+/g, \"-\");\n  return getStorybookDocsUrl(`${tier}-${name}--${storySlug}`);\n}\nfunction getStorybookDocsUrlForComponent(component, story = \"default\") {\n  return getStorybookDocsUrlForTier(\"components\", component, story);\n}\nfunction getStorybookDocsUrlForOrganism(organism, story = \"default\") {\n  return getStorybookDocsUrlForTier(\"organisms\", organism, story);\n}\nfunction getStorybookDocsUrlForMolecule(molecule, story = \"default\") {\n  return getStorybookDocsUrlForTier(\"molecules\", molecule, story);\n}\nfunction getStorybookDocsUrlForAtom(atom, story = \"default\") {\n  return getStorybookDocsUrlForTier(\"atoms\", atom, story);\n}\n\nexport {\n  getStorybookDocsUrl,\n  getStorybookDocsUrlForComponent,\n  getStorybookDocsUrlForOrganism,\n  getStorybookDocsUrlForMolecule,\n  getStorybookDocsUrlForAtom\n};\n//# sourceMappingURL=chunk-QJ7P73DS.js.map","// src/context/link/context.ts\nimport { createContext, createElement, useContext } from \"react\";\nvar defaultLinkComponent = ({ children, ...rest }) => createElement(\"a\", rest, children);\nvar LinkComponentContext = createContext(null);\nfunction useLinkComponent() {\n  return useContext(LinkComponentContext) ?? defaultLinkComponent;\n}\n\n// src/context/link/provider.tsx\nimport React from \"react\";\nfunction LinkComponentProvider({ LinkComponent, children }) {\n  return /* @__PURE__ */ React.createElement(LinkComponentContext.Provider, { value: LinkComponent ?? null }, children);\n}\n\nexport {\n  defaultLinkComponent,\n  LinkComponentContext,\n  useLinkComponent,\n  LinkComponentProvider\n};\n//# sourceMappingURL=chunk-WWXV5LU4.js.map"],"names":["GalleryHorizontal","A","d","key","width","height","x","y","rx","ShopCategorySlide","variant","categoryName","displayText","link","onClick","imageUrl","imageHeight","imageWidth","className","rest","LinkComponent","chunk_WWXV5LU4","d5","label","cardInner","react","createElement","Fragment","chunk_P4MY4MXU","o","tag","chunk_AF677QN7","d_","sizes","mobile","targetAspectRatio","alt","src","Tag","tagProps","href","type","chunk_NZVMNINS","cn","CarouselShopCategory","categories","children","showArrows","loop","testId","prevButtonRef","useRef","nextButtonRef","isAtBeginning","setIsAtBeginning","useState","isLocked","setIsLocked","childSlides","Children","toArray","hasChildSlides","length","swiperStyle","semantic","rz","swiper_react","RC","centeredSlides","modules","scrollbar","navigation","prevEl","current","nextEl","onBeforeInit","swiper","params","onSlideChange","isBeginning","onSwiper","onLock","onUnlock","draggable","slidesPerView","spaceBetween","breakpoints","style","map","child","index","qr","category","categoryId","chunk_LTUXGIZZ","H","ref","action","scale","CarouselShopCategoryRegistrationWrapper","builderBlock","builderState","props","hasReactChildren","count","builder_react_es5","y$","blocks","dataPath","parentElementId","id","RectangleHorizontal","registerComponent","M$","$l","name","friendlyName","image","chunk_BEFWWR2C","c","docsLink","chunk_QJ7P73DS","Im","noWrap","inputs","enum","value","defaultValue","helperText","required","bubble","showIf","options","get","OF","gallery_horizontal","canHaveChildren","hideFromInsertMenu","getStorybookDocsUrl","storyId","getStorybookDocsUrlForTier","tier","story","toLowerCase","replace","getStorybookDocsUrlForComponent","component","getStorybookDocsUrlForOrganism","organism","getStorybookDocsUrlForMolecule","molecule","getStorybookDocsUrlForAtom","atom","defaultLinkComponent","react__WEBPACK_IMPORTED_MODULE_0__","LinkComponentContext","createContext","useLinkComponent","useContext"],"sourceRoot":""}