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AC,GAAc7D,GACzB8D,OAAA,CACA,CACA9O,KAAA,YACAuO,aAAA,aACAjF,KAAA,OACAyF,KAAA,IAAAX,GACA9B,aAAA,MAEA,CACAtM,KAAA,WACAsJ,KAAA,OACAgD,aAAA,CACA,CACAsB,MAAA,oBACAI,QAAA,KAGAgB,UAAA,CACA,CACAhP,KAAA,QACAiP,UAAA,EACA3F,KAAA,WACAgD,aAAA,oBACA4C,YAAA,2FAEA,CACAlP,KAAA,kBACAuO,aAAA,kBACAjF,KAAA,UACAgD,cAAA,GAEA,CACAtM,KAAA,UACAsJ,KAAA,WACA6F,YAAA,EACA7C,aAAA,wBClIA,SAAA8C,EAAAC,GACA,qEAA+CA,GAC/C,CACA,SAAAC,EAAAC,EAAAvP,EAAAwP,EAAA,WAEA,OAAAJ,EAAA,GAAgCG,KAAQvP,MADxCwP,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","sources":["webpack://@logos/commerceweb-frontend/javascript/node_modules/@radix-ui/react-collection/dist/index.mjs","webpack://@logos/commerceweb-frontend/javascript/node_modules/@radix-ui/react-direction/dist/index.mjs","webpack://@logos/commerceweb-frontend/javascript/node_modules/lucide-react/dist/esm/icons/chevrons-down-up.mjs","webpack://@logos/commerceweb-frontend/./node_modules/@faithlife/commerce-components/dist/chunk-JC5UPXQI.js","webpack://@logos/commerceweb-frontend/./node_modules/@faithlife/commerce-components/dist/chunk-QJ7P73DS.js"],"sourcesContent":["\"use client\";\nvar __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\n// src/collection-legacy.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createCollection(name) {\n  const PROVIDER_NAME = name + \"CollectionProvider\";\n  const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n  const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n    PROVIDER_NAME,\n    { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n  );\n  const CollectionProvider = /* @__PURE__ */ __name((props) => {\n    const { scope, children } = props;\n    const ref = React.useRef(null);\n    const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n    return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n  }, \"CollectionProvider\");\n  CollectionProvider.displayName = PROVIDER_NAME;\n  const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n  const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);\n  const CollectionSlot = React.forwardRef(\n    (props, forwardedRef) => {\n      const { scope, children } = props;\n      const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n      const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n      return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });\n    }\n  );\n  CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n  const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n  const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n  const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);\n  const CollectionItemSlot = React.forwardRef(\n    (props, forwardedRef) => {\n      const { scope, children, ...itemData } = props;\n      const ref = React.useRef(null);\n      const composedRefs = useComposedRefs(forwardedRef, ref);\n      const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n      React.useEffect(() => {\n        context.itemMap.set(ref, { ref, ...itemData });\n        return () => void context.itemMap.delete(ref);\n      });\n      return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n    }\n  );\n  CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n  function useCollection(scope) {\n    const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n    const getItems = React.useCallback(() => {\n      const collectionNode = context.collectionRef.current;\n      if (!collectionNode) return [];\n      const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n      const items = Array.from(context.itemMap.values());\n      const orderedItems = items.sort(\n        (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n      );\n      return orderedItems;\n    }, [context.collectionRef, context.itemMap]);\n    return getItems;\n  }\n  __name(useCollection, \"useCollection\");\n  return [\n    { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n    useCollection,\n    createCollectionScope\n  ];\n}\n__name(createCollection, \"createCollection\");\n\n// src/collection.tsx\nimport * as React2 from \"react\";\nimport { createContextScope as createContextScope2 } from \"@radix-ui/react-context\";\nimport { useComposedRefs as useComposedRefs2 } from \"@radix-ui/react-compose-refs\";\nimport { createSlot as createSlot2 } from \"@radix-ui/react-slot\";\n\n// src/ordered-dictionary.ts\nvar __instanciated = /* @__PURE__ */ new WeakMap();\nvar OrderedDict = class _OrderedDict extends Map {\n  static {\n    __name(this, \"OrderedDict\");\n  }\n  #keys;\n  constructor(entries) {\n    super(entries);\n    this.#keys = [...super.keys()];\n    __instanciated.set(this, true);\n  }\n  set(key, value) {\n    if (__instanciated.get(this)) {\n      if (this.has(key)) {\n        this.#keys[this.#keys.indexOf(key)] = key;\n      } else {\n        this.#keys.push(key);\n      }\n    }\n    super.set(key, value);\n    return this;\n  }\n  insert(index, key, value) {\n    const has = this.has(key);\n    const length = this.#keys.length;\n    const relativeIndex = toSafeInteger(index);\n    let actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;\n    const safeIndex = actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;\n    if (safeIndex === this.size || has && safeIndex === this.size - 1 || safeIndex === -1) {\n      this.set(key, value);\n      return this;\n    }\n    const size = this.size + (has ? 0 : 1);\n    if (relativeIndex < 0) {\n      actualIndex++;\n    }\n    const keys = [...this.#keys];\n    let nextValue;\n    let shouldSkip = false;\n    for (let i = actualIndex; i < size; i++) {\n      if (actualIndex === i) {\n        let nextKey = keys[i];\n        if (keys[i] === key) {\n          nextKey = keys[i + 1];\n        }\n        if (has) {\n          this.delete(key);\n        }\n        nextValue = this.get(nextKey);\n        this.set(key, value);\n      } else {\n        if (!shouldSkip && keys[i - 1] === key) {\n          shouldSkip = true;\n        }\n        const currentKey = keys[shouldSkip ? i : i - 1];\n        const currentValue = nextValue;\n        nextValue = this.get(currentKey);\n        this.delete(currentKey);\n        this.set(currentKey, currentValue);\n      }\n    }\n    return this;\n  }\n  with(index, key, value) {\n    const copy = new _OrderedDict(this);\n    copy.insert(index, key, value);\n    return copy;\n  }\n  before(key) {\n    const index = this.#keys.indexOf(key) - 1;\n    if (index < 0) {\n      return void 0;\n    }\n    return this.entryAt(index);\n  }\n  /**\n   * Sets a new key-value pair at the position before the given key.\n   */\n  setBefore(key, newKey, value) {\n    const index = this.#keys.indexOf(key);\n    if (index === -1) {\n      return this;\n    }\n    return this.insert(index, newKey, value);\n  }\n  after(key) {\n    let index = this.#keys.indexOf(key);\n    index = index === -1 || index === this.size - 1 ? -1 : index + 1;\n    if (index === -1) {\n      return void 0;\n    }\n    return this.entryAt(index);\n  }\n  /**\n   * Sets a new key-value pair at the position after the given key.\n   */\n  setAfter(key, newKey, value) {\n    const index = this.#keys.indexOf(key);\n    if (index === -1) {\n      return this;\n    }\n    return this.insert(index + 1, newKey, value);\n  }\n  first() {\n    return this.entryAt(0);\n  }\n  last() {\n    return this.entryAt(-1);\n  }\n  clear() {\n    this.#keys = [];\n    return super.clear();\n  }\n  delete(key) {\n    const deleted = super.delete(key);\n    if (deleted) {\n      this.#keys.splice(this.#keys.indexOf(key), 1);\n    }\n    return deleted;\n  }\n  deleteAt(index) {\n    const key = this.keyAt(index);\n    if (key !== void 0) {\n      return this.delete(key);\n    }\n    return false;\n  }\n  at(index) {\n    const key = at(this.#keys, index);\n    if (key !== void 0) {\n      return this.get(key);\n    }\n  }\n  entryAt(index) {\n    const key = at(this.#keys, index);\n    if (key !== void 0) {\n      return [key, this.get(key)];\n    }\n  }\n  indexOf(key) {\n    return this.#keys.indexOf(key);\n  }\n  keyAt(index) {\n    return at(this.#keys, index);\n  }\n  from(key, offset) {\n    const index = this.indexOf(key);\n    if (index === -1) {\n      return void 0;\n    }\n    let dest = index + offset;\n    if (dest < 0) dest = 0;\n    if (dest >= this.size) dest = this.size - 1;\n    return this.at(dest);\n  }\n  keyFrom(key, offset) {\n    const index = this.indexOf(key);\n    if (index === -1) {\n      return void 0;\n    }\n    let dest = index + offset;\n    if (dest < 0) dest = 0;\n    if (dest >= this.size) dest = this.size - 1;\n    return this.keyAt(dest);\n  }\n  find(predicate, thisArg) {\n    let index = 0;\n    for (const entry of this) {\n      if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n        return entry;\n      }\n      index++;\n    }\n    return void 0;\n  }\n  findIndex(predicate, thisArg) {\n    let index = 0;\n    for (const entry of this) {\n      if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n        return index;\n      }\n      index++;\n    }\n    return -1;\n  }\n  filter(predicate, thisArg) {\n    const entries = [];\n    let index = 0;\n    for (const entry of this) {\n      if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n        entries.push(entry);\n      }\n      index++;\n    }\n    return new _OrderedDict(entries);\n  }\n  map(callbackfn, thisArg) {\n    const entries = [];\n    let index = 0;\n    for (const entry of this) {\n      entries.push([entry[0], Reflect.apply(callbackfn, thisArg, [entry, index, this])]);\n      index++;\n    }\n    return new _OrderedDict(entries);\n  }\n  reduce(...args) {\n    const [callbackfn, initialValue] = args;\n    let index = 0;\n    let accumulator = initialValue ?? this.at(0);\n    for (const entry of this) {\n      if (index === 0 && args.length === 1) {\n        accumulator = entry;\n      } else {\n        accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);\n      }\n      index++;\n    }\n    return accumulator;\n  }\n  reduceRight(...args) {\n    const [callbackfn, initialValue] = args;\n    let accumulator = initialValue ?? this.at(-1);\n    for (let index = this.size - 1; index >= 0; index--) {\n      const entry = this.at(index);\n      if (index === this.size - 1 && args.length === 1) {\n        accumulator = entry;\n      } else {\n        accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);\n      }\n    }\n    return accumulator;\n  }\n  toSorted(compareFn) {\n    const entries = [...this.entries()].sort(compareFn);\n    return new _OrderedDict(entries);\n  }\n  toReversed() {\n    const reversed = new _OrderedDict();\n    for (let index = this.size - 1; index >= 0; index--) {\n      const key = this.keyAt(index);\n      const element = this.get(key);\n      reversed.set(key, element);\n    }\n    return reversed;\n  }\n  toSpliced(...args) {\n    const entries = [...this.entries()];\n    entries.splice(...args);\n    return new _OrderedDict(entries);\n  }\n  slice(start, end) {\n    const result = new _OrderedDict();\n    let stop = this.size - 1;\n    if (start === void 0) {\n      return result;\n    }\n    if (start < 0) {\n      start = start + this.size;\n    }\n    if (end !== void 0 && end > 0) {\n      stop = end - 1;\n    }\n    for (let index = start; index <= stop; index++) {\n      const key = this.keyAt(index);\n      const element = this.get(key);\n      result.set(key, element);\n    }\n    return result;\n  }\n  every(predicate, thisArg) {\n    let index = 0;\n    for (const entry of this) {\n      if (!Reflect.apply(predicate, thisArg, [entry, index, this])) {\n        return false;\n      }\n      index++;\n    }\n    return true;\n  }\n  some(predicate, thisArg) {\n    let index = 0;\n    for (const entry of this) {\n      if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n        return true;\n      }\n      index++;\n    }\n    return false;\n  }\n};\nfunction at(array, index) {\n  if (\"at\" in Array.prototype) {\n    return Array.prototype.at.call(array, index);\n  }\n  const actualIndex = toSafeIndex(array, index);\n  return actualIndex === -1 ? void 0 : array[actualIndex];\n}\n__name(at, \"at\");\nfunction toSafeIndex(array, index) {\n  const length = array.length;\n  const relativeIndex = toSafeInteger(index);\n  const actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;\n  return actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;\n}\n__name(toSafeIndex, \"toSafeIndex\");\nfunction toSafeInteger(number) {\n  return number !== number || number === 0 ? 0 : Math.trunc(number);\n}\n__name(toSafeInteger, \"toSafeInteger\");\n\n// src/collection.tsx\nimport { jsx as jsx2 } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createCollection2(name) {\n  const PROVIDER_NAME = name + \"CollectionProvider\";\n  const [createCollectionContext, createCollectionScope] = createContextScope2(PROVIDER_NAME);\n  const [CollectionContextProvider, useCollectionContext] = createCollectionContext(\n    PROVIDER_NAME,\n    {\n      collectionElement: null,\n      collectionRef: { current: null },\n      collectionRefObject: { current: null },\n      itemMap: new OrderedDict(),\n      setItemMap: /* @__PURE__ */ __name(() => void 0, \"setItemMap\")\n    }\n  );\n  const CollectionProvider = /* @__PURE__ */ __name(({ state, ...props }) => {\n    return state ? /* @__PURE__ */ jsx2(CollectionProviderImpl, { ...props, state }) : /* @__PURE__ */ jsx2(CollectionInit, { ...props });\n  }, \"CollectionProvider\");\n  CollectionProvider.displayName = PROVIDER_NAME;\n  const CollectionInit = /* @__PURE__ */ __name((props) => {\n    const state = useInitCollection();\n    return /* @__PURE__ */ jsx2(CollectionProviderImpl, { ...props, state });\n  }, \"CollectionInit\");\n  CollectionInit.displayName = PROVIDER_NAME + \"Init\";\n  const CollectionProviderImpl = /* @__PURE__ */ __name((props) => {\n    const { scope, children, state } = props;\n    const ref = React2.useRef(null);\n    const [collectionElement, setCollectionElement] = React2.useState(\n      null\n    );\n    const composeRefs = useComposedRefs2(ref, setCollectionElement);\n    const [itemMap, setItemMap] = state;\n    React2.useEffect(() => {\n      if (!collectionElement) return;\n      const observer = getChildListObserver(() => {\n      });\n      observer.observe(collectionElement, {\n        childList: true,\n        subtree: true\n      });\n      return () => {\n        observer.disconnect();\n      };\n    }, [collectionElement]);\n    return /* @__PURE__ */ jsx2(\n      CollectionContextProvider,\n      {\n        scope,\n        itemMap,\n        setItemMap,\n        collectionRef: composeRefs,\n        collectionRefObject: ref,\n        collectionElement,\n        children\n      }\n    );\n  }, \"CollectionProviderImpl\");\n  CollectionProviderImpl.displayName = PROVIDER_NAME + \"Impl\";\n  const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n  const CollectionSlotImpl = createSlot2(COLLECTION_SLOT_NAME);\n  const CollectionSlot = React2.forwardRef(\n    (props, forwardedRef) => {\n      const { scope, children } = props;\n      const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n      const composedRefs = useComposedRefs2(forwardedRef, context.collectionRef);\n      return /* @__PURE__ */ jsx2(CollectionSlotImpl, { ref: composedRefs, children });\n    }\n  );\n  CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n  const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n  const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n  const CollectionItemSlotImpl = createSlot2(ITEM_SLOT_NAME);\n  const CollectionItemSlot = React2.forwardRef(\n    (props, forwardedRef) => {\n      const { scope, children, ...itemData } = props;\n      const ref = React2.useRef(null);\n      const [element, setElement] = React2.useState(null);\n      const composedRefs = useComposedRefs2(forwardedRef, ref, setElement);\n      const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n      const { setItemMap } = context;\n      const itemDataRef = React2.useRef(itemData);\n      if (!shallowEqual(itemDataRef.current, itemData)) {\n        itemDataRef.current = itemData;\n      }\n      const memoizedItemData = itemDataRef.current;\n      React2.useEffect(() => {\n        const itemData2 = memoizedItemData;\n        setItemMap((map) => {\n          if (!element) {\n            return map;\n          }\n          if (!map.has(element)) {\n            map.set(element, { ...itemData2, element });\n            return map.toSorted(sortByDocumentPosition);\n          }\n          return map.set(element, { ...itemData2, element }).toSorted(sortByDocumentPosition);\n        });\n        return () => {\n          setItemMap((map) => {\n            if (!element || !map.has(element)) {\n              return map;\n            }\n            map.delete(element);\n            return new OrderedDict(map);\n          });\n        };\n      }, [element, memoizedItemData, setItemMap]);\n      return /* @__PURE__ */ jsx2(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n    }\n  );\n  CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n  function useInitCollection() {\n    return React2.useState(new OrderedDict());\n  }\n  __name(useInitCollection, \"useInitCollection\");\n  function useCollection(scope) {\n    const { itemMap } = useCollectionContext(name + \"CollectionConsumer\", scope);\n    return itemMap;\n  }\n  __name(useCollection, \"useCollection\");\n  const functions = {\n    createCollectionScope,\n    useCollection,\n    useInitCollection\n  };\n  return [\n    { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n    functions\n  ];\n}\n__name(createCollection2, \"createCollection\");\nfunction shallowEqual(a, b) {\n  if (a === b) return true;\n  if (typeof a !== \"object\" || typeof b !== \"object\") return false;\n  if (a == null || b == null) return false;\n  const keysA = Object.keys(a);\n  const keysB = Object.keys(b);\n  if (keysA.length !== keysB.length) return false;\n  for (const key of keysA) {\n    if (!Object.prototype.hasOwnProperty.call(b, key)) return false;\n    if (a[key] !== b[key]) return false;\n  }\n  return true;\n}\n__name(shallowEqual, \"shallowEqual\");\nfunction isElementPreceding(a, b) {\n  return !!(b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING);\n}\n__name(isElementPreceding, \"isElementPreceding\");\nfunction sortByDocumentPosition(a, b) {\n  return !a[1].element || !b[1].element ? 0 : isElementPreceding(a[1].element, b[1].element) ? -1 : 1;\n}\n__name(sortByDocumentPosition, \"sortByDocumentPosition\");\nfunction getChildListObserver(callback) {\n  const observer = new MutationObserver((mutationsList) => {\n    for (const mutation of mutationsList) {\n      if (mutation.type === \"childList\") {\n        callback();\n        return;\n      }\n    }\n  });\n  return observer;\n}\n__name(getChildListObserver, \"getChildListObserver\");\nexport {\n  createCollection,\n  createCollection2 as unstable_createCollection\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\nvar __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\n// src/direction.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DirectionContext = React.createContext(void 0);\nvar DirectionProvider = /* @__PURE__ */ __name((props) => {\n  const { dir, children } = props;\n  return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });\n}, \"DirectionProvider\");\nfunction useDirection(localDir) {\n  const globalDir = React.useContext(DirectionContext);\n  return localDir || globalDir || \"ltr\";\n}\n__name(useDirection, \"useDirection\");\nvar Provider = DirectionProvider;\nexport {\n  DirectionProvider,\n  Provider,\n  useDirection\n};\n//# sourceMappingURL=index.mjs.map\n","/**\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: \"m7 20 5-5 5 5\", key: \"13a0gw\" }],\n  [\"path\", { d: \"m7 4 5 5 5-5\", key: \"1kwcof\" }]\n];\nconst ChevronsDownUp = createLucideIcon(\"chevrons-down-up\", __iconNode);\n\nexport { __iconNode, ChevronsDownUp as default };\n//# sourceMappingURL=chevrons-down-up.mjs.map\n","import {\n  lucideIconUri\n} from \"./chunk-BEFWWR2C.js\";\nimport {\n  getStorybookDocsUrlForMolecule\n} from \"./chunk-QJ7P73DS.js\";\nimport {\n  Typography\n} from \"./chunk-P4MY4MXU.js\";\nimport {\n  Accordion,\n  AccordionContent,\n  AccordionItem,\n  AccordionTrigger\n} from \"./chunk-HCBSD6PF.js\";\nimport {\n  sanitize\n} from \"./chunk-NZVMNINS.js\";\n\n// src/components/accordion/register.tsx\nimport { Builder as Builder2 } from \"@builder.io/react\";\nimport { ChevronsDownUp } from \"lucide-react\";\n\n// src/components/accordion/builder-accordion.tsx\nimport React2 from \"react\";\nimport { Builder, BuilderBlocks } from \"@builder.io/react\";\n\n// src/components/accordion/rich-text-title.tsx\nimport React from \"react\";\nfunction renderRichTextTitle(html) {\n  const sanitizedHtml = sanitize(html, {\n    allowed: [\"strong\", \"em\", \"u\", \"s\", \"span\", \"br\"],\n    strip: [\"p\", \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"ul\", \"ol\", \"li\"]\n  });\n  return /* @__PURE__ */ React.createElement(\"span\", { dangerouslySetInnerHTML: { __html: sanitizedHtml } });\n}\n\n// src/components/accordion/builder-accordion.tsx\nvar titleFontConfig = {\n  h4: { variant: \"headingH4\" },\n  h5: { variant: \"headingH5\" },\n  body: { variant: \"bodyLarge\" },\n  ui1: { variant: \"ui1\" },\n  ui2: { variant: \"ui2\" },\n  ui3: { variant: \"ui3\" },\n  ui4: { variant: \"ui4\" }\n};\nfunction BuilderAccordion({\n  sections = [],\n  titleFont,\n  builderBlock,\n  className,\n  \"data-testid\": testId\n}) {\n  const isEditing = Builder.isEditing;\n  const { variant } = titleFontConfig[titleFont ?? \"h4\"];\n  const allOpenValue = isEditing ? sections.map((_, i) => `item-${i}`) : void 0;\n  const defaultValue = sections.flatMap(\n    (section, index) => section.isOpenByDefault ? [`item-${index}`] : []\n  );\n  return /* @__PURE__ */ React2.createElement(\n    Accordion,\n    {\n      defaultValue,\n      value: allOpenValue,\n      className,\n      \"data-testid\": testId\n    },\n    sections.map((section, index) => /* @__PURE__ */ React2.createElement(AccordionItem, { key: `item-${index}`, value: `item-${index}` }, /* @__PURE__ */ React2.createElement(AccordionTrigger, null, /* @__PURE__ */ React2.createElement(Typography, { variant, tag: \"span\", className: \"text-foreground\" }, renderRichTextTitle(section.title))), /* @__PURE__ */ React2.createElement(AccordionContent, null, /* @__PURE__ */ React2.createElement(\n      BuilderBlocks,\n      {\n        blocks: section.content,\n        dataPath: `component.options.sections.${index}.content`,\n        parentElementId: builderBlock?.id\n      }\n    ))))\n  );\n}\n\n// src/components/accordion/accordion-options.ts\nvar accordionTitleFontOptions = [\n  { label: \"Heading 4\", value: \"h4\" },\n  { label: \"Heading 5\", value: \"h5\" },\n  { label: \"Body\", value: \"body\" },\n  { label: \"UI 1\", value: \"ui1\" },\n  { label: \"UI 2\", value: \"ui2\" },\n  { label: \"UI 3\", value: \"ui3\" },\n  { label: \"UI 4\", value: \"ui4\" }\n];\n\n// src/components/accordion/register.tsx\nvar registerComponent = () => {\n  Builder2.registerComponent(BuilderAccordion, {\n    name: \"Accordion\",\n    friendlyName: \"Accordion\",\n    docsLink: getStorybookDocsUrlForMolecule(\"accordion\"),\n    image: lucideIconUri(ChevronsDownUp),\n    inputs: [\n      {\n        name: \"titleFont\",\n        friendlyName: \"Title Font\",\n        type: \"enum\",\n        enum: [...accordionTitleFontOptions],\n        defaultValue: \"h4\"\n      },\n      {\n        name: \"sections\",\n        type: \"list\",\n        defaultValue: [\n          {\n            title: \"Accordion Section\",\n            content: []\n          }\n        ],\n        subFields: [\n          {\n            name: \"title\",\n            required: true,\n            type: \"richText\",\n            defaultValue: \"Accordion Section\",\n            description: \"Supports inline formatting only. Links and block formatting render as plain title text.\"\n          },\n          {\n            name: \"isOpenByDefault\",\n            friendlyName: \"Open by Default\",\n            type: \"boolean\",\n            defaultValue: false\n          },\n          {\n            name: \"content\",\n            type: \"uiBlocks\",\n            hideFromUI: true,\n            defaultValue: []\n          }\n        ]\n      }\n    ]\n  });\n};\n\nexport {\n  registerComponent\n};\n//# sourceMappingURL=chunk-JC5UPXQI.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"],"names":["__defProp","Object","defineProperty","__name","target","value","configurable","createCollection","name","PROVIDER_NAME","createCollectionContext","createCollectionScope","_radix_ui_react_context__WEBPACK_IMPORTED_MODULE_1__","A","CollectionProviderImpl","useCollectionContext","collectionRef","current","itemMap","Map","CollectionProvider","props","scope","children","ref","react__WEBPACK_IMPORTED_MODULE_0__","useRef","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__","jsx","displayName","COLLECTION_SLOT_NAME","CollectionSlotImpl","_radix_ui_react_slot__WEBPACK_IMPORTED_MODULE_3__","TL","CollectionSlot","forwardRef","forwardedRef","context","composedRefs","_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_2__","s","ITEM_SLOT_NAME","ITEM_DATA_ATTR","CollectionItemSlotImpl","CollectionItemSlot","itemData","useEffect","set","delete","useCollection","useCallback","collectionNode","orderedNodes","Array","from","querySelectorAll","values","sort","a","b","indexOf","Provider","Slot","ItemSlot","__instanciated","WeakMap","OrderedDict","_OrderedDict","this","keys","constructor","entries","super","key","get","has","push","insert","index","length","relativeIndex","toSafeInteger","actualIndex","safeIndex","size","nextValue","shouldSkip","i","nextKey","currentKey","currentValue","copy","before","entryAt","setBefore","newKey","after","setAfter","first","last","clear","deleted","splice","deleteAt","keyAt","at","offset","dest","keyFrom","find","predicate","thisArg","entry","Reflect","apply","findIndex","filter","map","callbackfn","reduce","args","initialValue","accumulator","reduceRight","toSorted","compareFn","toReversed","reversed","element","toSpliced","slice","start","end","result","stop","every","some","array","prototype","call","toSafeIndex","number","Math","trunc","shallowEqual","keysA","keysB","hasOwnProperty","isElementPreceding","compareDocumentPosition","Node","DOCUMENT_POSITION_PRECEDING","sortByDocumentPosition","getChildListObserver","callback","MutationObserver","mutationsList","mutation","type","CollectionContextProvider","collectionElement","collectionRefObject","setItemMap","state","CollectionInit","useInitCollection","setCollectionElement","useState","composeRefs","observer","observe","childList","subtree","disconnect","setElement","itemDataRef","memoizedItemData","itemData2","DirectionContext","createContext","useDirection","localDir","globalDir","useContext","ChevronsDownUp","d","titleFontConfig","h4","variant","h5","body","ui1","ui2","ui3","ui4","BuilderAccordion","sections","titleFont","builderBlock","className","testId","isEditing","builder_react_es5","M$","allOpenValue","_","defaultValue","flatMap","section","isOpenByDefault","react","createElement","chunk_HCBSD6PF","nD","As","$m","chunk_P4MY4MXU","o","tag","html","sanitizedHtml","chunk_NZVMNINS","aj","allowed","strip","dangerouslySetInnerHTML","__html","renderRichTextTitle","title","ub","y$","blocks","content","dataPath","parentElementId","id","accordionTitleFontOptions","label","registerComponent","friendlyName","docsLink","chunk_QJ7P73DS","Im","image","chunk_BEFWWR2C","c","inputs","enum","subFields","required","description","hideFromUI","getStorybookDocsUrl","storyId","getStorybookDocsUrlForTier","tier","story","toLowerCase","replace","getStorybookDocsUrlForComponent","component","getStorybookDocsUrlForOrganism","organism","getStorybookDocsUrlForMolecule","molecule","getStorybookDocsUrlForAtom","atom"],"sourceRoot":""}