{"version":3,"file":"OptionListModule.DXDpwRwZ.mjs","names":["createContext","useContext","forwardRef","d","u","n","p","c$1","c","forwardRef","p","useMemo","y","useState","useRef","useMemo","useCallback","useMemo"],"sources":["https:/asset.29cm.co.kr/contents/framer/components/modules/OptionListModule/OptionListModule.type.js","https:/asset.29cm.co.kr/contents/framer/node_modules/@29cm/ruler-ui/dist/components/OptionList/OptionContext.js","https:/asset.29cm.co.kr/contents/framer/node_modules/@29cm/ruler-ui/dist/components/OptionList/OptionItem.js","https:/asset.29cm.co.kr/contents/framer/node_modules/@29cm/ruler-ui/dist/components/OptionList/OptionList.style.js","https:/asset.29cm.co.kr/contents/framer/node_modules/@29cm/ruler-ui/dist/components/OptionList/OptionList.js","https:/asset.29cm.co.kr/contents/framer/components/modules/OptionListModule/OptionListModule.utils.js","https:/asset.29cm.co.kr/contents/framer/components/modules/OptionListModule/OptionListElement/OptionListElement.js","https:/asset.29cm.co.kr/contents/framer/components/modules/OptionListModule/LinkedOptionListModule/LinkedOptionListModule.utils.js","https:/asset.29cm.co.kr/contents/framer/components/modules/OptionListModule/LinkedOptionListModule/LinkedOptionListModule.js","https:/asset.29cm.co.kr/contents/framer/components/modules/OptionListModule/OptionListModule.js","https:/framerusercontent.com/modules/DAousdaYacknlbQH8FpL/HtqlMnSLTUMKapy2L8F4/OptionListModule.js"],"sourcesContent":["var OptionListModuleInputType = /* @__PURE__ */ ((OptionListModuleInputType2) => {\n  OptionListModuleInputType2[OptionListModuleInputType2[\"Linked\"] = 0] = \"Linked\";\n  return OptionListModuleInputType2;\n})(OptionListModuleInputType || {});\nexport {\n  OptionListModuleInputType\n};\n","import { createContext, useContext } from \"react\";\nconst n = createContext(null), c = () => useContext(n);\nexport {\n  n as OptionListContext,\n  c as useOptionListContext\n};\n","import { j as m } from \"../../node_modules/.pnpm/react@18.3.0/node_modules/react/jsx-runtime.js\";\nimport { tv as g, cn as a } from \"../../packages/configs/tailwind-variants/index.js\";\nimport { forwardRef } from \"react\";\nimport { useOptionListContext as c$1 } from \"./OptionContext.js\";\nimport { Icon as v } from \"../Icon/Icon.js\";\nconst y = g({\n  base: \"flex w-full items-center justify-between rounded-2 px-6 py-10 hover:bg-silent-hover focus-visible:outline-interactive active:bg-silent-pressed\",\n  slots: {\n    label: \"w-full text-left text-primary\",\n    description: \"w-full truncate text-left text-tertiary\",\n    icon: \"flex-none text-primary\"\n  },\n  variants: {\n    disabled: {\n      true: {\n        base: \"cursor-not-allowed\",\n        label: \"text-disabled\",\n        description: \"text-disabled\",\n        icon: \"text-disabled\"\n      }\n    },\n    size: {\n      small: {\n        label: \"text-l-medium\",\n        description: \"text-s\"\n      },\n      medium: {\n        label: \"text-xxl-medium\",\n        description: \"text-s\"\n      }\n    }\n  },\n  defaultVariants: {\n    size: \"medium\"\n  }\n}), O = forwardRef(\n  ({ label: m$1, description: l, disabled: o, className: d, isSelected: x, size: u = \"medium\", prefixIcon: n, onClick: p, postfix: a$1, ...f }, b) => {\n    const s = c$1(), i = s != null && s.size ? s.size : u, t = y({\n      size: i,\n      disabled: o\n    }), j = x && !a$1;\n    return /* @__PURE__ */ m.jsxs(\"li\", { ref: b, className: a(t.base(), d), ...f, children: [\n      /* @__PURE__ */ m.jsxs(\"button\", { type: \"button\", onClick: p, disabled: o, className: \"w-full flex-1\", children: [\n        n && /* @__PURE__ */ m.jsx(\n          v,\n          {\n            size: c[i],\n            icon: n,\n            className: t.icon({ className: \"mr-8\" })\n          }\n        ),\n        /* @__PURE__ */ m.jsxs(\"div\", { className: \"flex grow flex-col\", children: [\n          /* @__PURE__ */ m.jsx(\"span\", { className: t.label(), children: m$1 }),\n          l && /* @__PURE__ */ m.jsx(\"span\", { className: t.description(), children: l })\n        ] })\n      ] }),\n      a$1,\n      j && /* @__PURE__ */ m.jsx(v, { size: c[i], icon: \"CheckBoldFillIcon\", className: t.icon() })\n    ] });\n  }\n), c = {\n  small: \"medium\",\n  medium: \"xLarge\"\n};\nexport {\n  O as OptionItem,\n  y as optionStyle\n};\n","import { tv as g } from \"../../packages/configs/tailwind-variants/index.js\";\nconst e = g({\n  base: \"flex w-full flex-col\",\n  variants: {\n    hasPadding: {\n      true: \"p-4\",\n      false: \"p-14\"\n    }\n  },\n  defaultVariants: {\n    hasPadding: true\n  }\n});\nexport {\n  e as optionList\n};\n","import { j as m } from \"../../node_modules/.pnpm/react@18.3.0/node_modules/react/jsx-runtime.js\";\nimport { forwardRef, useMemo } from \"react\";\nimport { OptionListContext as n } from \"./OptionContext.js\";\nimport { optionList as e } from \"./OptionList.style.js\";\nconst d = forwardRef(\n  ({ children: r, className: s, hasPadding: i, size: t = \"small\", ...e$1 }, n$1) => {\n    const m$1 = e({ hasPadding: i, className: s }), p = useMemo(() => ({ size: t }), [t]);\n    return /* @__PURE__ */ m.jsx(n.Provider, { value: p, children: /* @__PURE__ */ m.jsx(\"ul\", { ref: n$1, className: m$1, ...e$1, children: r }) });\n  }\n);\nexport {\n  d as OptionList\n};\n","import { toBackgroundColor } from \"../../../libs/property-controls/coupon.js\";\nimport { Theme } from \"../../../styles/theme.js\";\nconst themeDefaultDropdownBackground = {\n  [Theme.LIGHT]: \"#FFFFFF\",\n  [Theme.DARK]: \"#000000\"\n};\nconst linearGradientToCss = (linearGradient) => {\n  const {\n    stops,\n    degree\n  } = linearGradient;\n  const gradient = [...stops].sort((x, y) => x.offsetPercent - y.offsetPercent).map((stop) => `${stop.color} ${stop.offsetPercent}%`).join(\", \");\n  return `linear-gradient(${degree}deg, ${gradient})`;\n};\nconst resolveDropdownBackgroundCss = (backgroundColor, theme) => {\n  const resolved = backgroundColor ? toBackgroundColor(backgroundColor) : void 0;\n  if (resolved === void 0) {\n    return themeDefaultDropdownBackground[theme];\n  }\n  if (typeof resolved === \"string\") {\n    return resolved;\n  }\n  return linearGradientToCss(resolved);\n};\nexport {\n  resolveDropdownBackgroundCss\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { useState, useRef, useMemo, useCallback, useEffect } from \"react\";\nimport { OptionItem as O } from \"../../../../node_modules/@29cm/ruler-ui/dist/components/OptionList/OptionItem.js\";\nimport { OptionList as d } from \"../../../../node_modules/@29cm/ruler-ui/dist/components/OptionList/OptionList.js\";\nimport { resolveDropdownBackgroundCss } from \"../OptionListModule.utils.js\";\nimport { useQueryStore } from \"../../query-store/query.store.js\";\nimport { Icon } from \"../../../@shared/Icon/Icon.js\";\nimport { typography } from \"../../../../styles/typography.js\";\nimport { Theme } from \"../../../../styles/theme.js\";\nimport { getPadding } from \"../../../../utils/spacing.js\";\nimport { useTrackClickButtonEvent } from \"../../hooks.js\";\nimport { useSegment } from \"../../../@shared/providers/SegmentProvider/SegmentProvider.js\";\nimport \"../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../config/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../apis/user/UserApiService.js\";\nimport \"../../../../apis/preuser/PreuserApiService.js\";\nimport \"framer\";\nimport \"../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../hooks/stores/toast/toast.store.js\";\nimport { useTheme } from \"../../../../hooks/useTheme.js\";\nimport \"../../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../../systems/Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport { useOutsideClick } from \"../../../../hooks/useOutsideClick.js\";\nimport \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nconst resolveThemeValue = (value) => value.toLowerCase() === \"dark\" ? Theme.DARK : Theme.LIGHT;\nconst OptionListElement = ({\n  loading = false,\n  inputs: _inputs,\n  output,\n  value,\n  ageOptions,\n  genderOptions,\n  layout\n}) => {\n  const [openDropdown, setOpenDropdown] = useState(null);\n  const containerRef = useRef(null);\n  const theme = resolveThemeValue(useTheme());\n  const dispatchSetQuery = useQueryStore((state) => state.dispatchSetQuery);\n  const inputs = useMemo(() => attachAdditionalQuery(_inputs, output), [_inputs, output]);\n  const activeFilter = inputs[0];\n  const filterQuery = activeFilter == null ? void 0 : activeFilter.query;\n  const selectedGenderValue = (filterQuery == null ? void 0 : filterQuery.gender) || \"\";\n  const selectedAgeValue = (filterQuery == null ? void 0 : filterQuery.age) || \"\";\n  const trackClickButtonEvent = useTrackClickButtonEvent(activeFilter == null ? void 0 : activeFilter.query);\n  const {\n    isVisible\n  } = useSegment();\n  const genderOptionItems = useMemo(() => {\n    const items = [];\n    if (genderOptions.hasAll) {\n      items.push({\n        key: \"all\",\n        label: \"성별 전체\",\n        value: \"all\"\n      });\n    }\n    if (genderOptions.hasMale) {\n      items.push({\n        key: \"male\",\n        label: \"남성\",\n        value: \"M\"\n      });\n    }\n    if (genderOptions.hasFemale) {\n      items.push({\n        key: \"female\",\n        label: \"여성\",\n        value: \"F\"\n      });\n    }\n    return items;\n  }, [genderOptions.hasAll, genderOptions.hasMale, genderOptions.hasFemale]);\n  const toggleDropdown = (type) => {\n    setOpenDropdown(openDropdown === type ? null : type);\n  };\n  const closeDropdown = useCallback(() => {\n    setOpenDropdown(null);\n  }, []);\n  useOutsideClick(containerRef, closeDropdown);\n  useEffect(() => {\n    window == null ? void 0 : window.dispatchEvent(new CustomEvent(\"layout-done\"));\n    if (!(activeFilter == null ? void 0 : activeFilter.query)) {\n      return;\n    }\n    if (!output) {\n      return;\n    }\n    dispatchSetQuery(output, activeFilter.query);\n  }, [output, activeFilter]);\n  const getGenderLabel = (genderValue) => {\n    const foundItem = genderOptionItems.find((item) => item.value === genderValue);\n    return foundItem ? foundItem.label : \"성별 선택\";\n  };\n  const getAgeLabel = (ageValue) => {\n    const ageOption = ageOptions.values.find((option) => option.value === ageValue);\n    return ageOption ? ageOption.label : \"연령 선택\";\n  };\n  const handleGenderSelect = (selectedValue, position) => {\n    setOpenDropdown(null);\n    if (activeFilter == null ? void 0 : activeFilter.query) {\n      const updatedQuery = {\n        ...activeFilter.query,\n        gender: selectedValue\n      };\n      dispatchSetQuery(value, updatedQuery);\n      if (activeFilter.query.gender !== selectedValue && selectedValue !== \"\") {\n        trackClickButtonEvent({\n          type: \"gender_filter\",\n          name: getGenderLabel(selectedValue),\n          layoutPosition: position\n        });\n      }\n    }\n  };\n  const handleAgeSelect = (selectedValue, position) => {\n    setOpenDropdown(null);\n    if (activeFilter == null ? void 0 : activeFilter.query) {\n      const updatedQuery = {\n        ...activeFilter.query,\n        age: selectedValue\n      };\n      dispatchSetQuery(value, updatedQuery);\n      if (activeFilter.query.age !== selectedValue && selectedValue !== \"\") {\n        trackClickButtonEvent({\n          type: \"age_filter\",\n          name: getAgeLabel(selectedValue),\n          layoutPosition: position\n        });\n      }\n    }\n  };\n  const padding = getPadding(layout);\n  const dropdownBackground = resolveDropdownBackgroundCss(layout.backgroundColor, theme);\n  if (loading || !isVisible) {\n    window == null ? void 0 : window.dispatchEvent(new CustomEvent(\"layout-done\"));\n    return null;\n  }\n  return /* @__PURE__ */ jsxs(\"div\", { ref: containerRef, \"data-theme\": theme, style: {\n    ...containerStyle,\n    paddingTop: padding.top,\n    paddingBottom: padding.bottom,\n    paddingLeft: padding.left,\n    paddingRight: padding.right\n  }, children: [\n    theme === Theme.DARK ? /* @__PURE__ */ jsx(OptionListDarkPanelStyles, {}) : null,\n    genderOptions.show && genderOptionItems.length > 0 && /* @__PURE__ */ jsxs(\"div\", { style: dropdownContainerStyle, children: [\n      /* @__PURE__ */ jsxs(\"div\", { style: {\n        ...dropdownTriggerBaseStyle,\n        ...dropdownTriggerStyleByTheme[theme]\n      }, onClick: () => toggleDropdown(\"gender\"), children: [\n        /* @__PURE__ */ jsx(\"span\", { children: getGenderLabel(selectedGenderValue) }),\n        /* @__PURE__ */ jsx(Icon, { type: \"chevronDown\", size: 16, weight: \"bold\", color: iconColorByTheme[theme] })\n      ] }),\n      openDropdown === \"gender\" && /* @__PURE__ */ jsx(\"div\", { \"data-option-list-theme\": theme, style: {\n        ...dropdownContentBaseStyle,\n        background: dropdownBackground\n      }, children: /* @__PURE__ */ jsx(d, { size: \"small\", children: genderOptionItems.map((genderOption, index) => /* @__PURE__ */ jsx(O, { size: \"small\", label: genderOption.label, isSelected: selectedGenderValue === genderOption.value, onClick: () => handleGenderSelect(genderOption.value, index + 1) }, genderOption.key)) }) })\n    ] }),\n    ageOptions.show && ageOptions.values.length > 0 && /* @__PURE__ */ jsxs(\"div\", { style: dropdownContainerStyle, children: [\n      /* @__PURE__ */ jsxs(\"div\", { style: {\n        ...dropdownTriggerBaseStyle,\n        ...dropdownTriggerStyleByTheme[theme]\n      }, onClick: () => toggleDropdown(\"age\"), children: [\n        /* @__PURE__ */ jsx(\"span\", { children: getAgeLabel(selectedAgeValue) }),\n        /* @__PURE__ */ jsx(Icon, { type: \"chevronDown\", size: 16, weight: \"bold\", color: iconColorByTheme[theme] })\n      ] }),\n      openDropdown === \"age\" && /* @__PURE__ */ jsx(\"div\", { \"data-option-list-theme\": theme, style: {\n        ...dropdownContentBaseStyle,\n        background: dropdownBackground\n      }, children: /* @__PURE__ */ jsx(d, { size: \"small\", children: ageOptions.values.map((ageOption, index) => /* @__PURE__ */ jsx(O, { size: \"small\", label: ageOption.label, isSelected: selectedAgeValue === ageOption.value, onClick: () => handleAgeSelect(ageOption.value, index + 1) }, ageOption.value)) }) })\n    ] })\n  ] });\n};\nconst attachAdditionalQuery = (values, output) => {\n  return values.map((value, index) => ({\n    ...value,\n    query: value.query ? {\n      ...value.query,\n      keys: [...value.query.keys ?? [], `option-${index}`],\n      isRoot: value.query.rootOutput === void 0,\n      rootOutput: value.query.rootOutput || output\n    } : void 0\n  }));\n};\nconst containerStyle = {\n  display: \"flex\",\n  gap: \"12px\",\n  alignItems: \"center\"\n};\nconst dropdownContainerStyle = {\n  position: \"relative\",\n  width: \"fit-content\"\n};\nconst dropdownTriggerBaseStyle = {\n  display: \"flex\",\n  alignItems: \"center\",\n  justifyContent: \"space-between\",\n  width: \"100%\",\n  cursor: \"pointer\",\n  textAlign: \"left\",\n  ...typography(\"14px\", 500, \"19.60px\"),\n  wordWrap: \"break-word\",\n  gap: \"4px\"\n};\nconst dropdownTriggerStyleByTheme = {\n  [Theme.LIGHT]: {\n    backgroundColor: \"transparent\",\n    color: \"#000000\"\n  },\n  [Theme.DARK]: {\n    backgroundColor: \"transparent\",\n    color: \"#FFFFFF\"\n  }\n};\nconst dropdownContentBaseStyle = {\n  position: \"absolute\",\n  top: \"100%\",\n  left: 0,\n  width: \"100%\",\n  minWidth: \"max-content\",\n  borderRadius: \"4px\",\n  zIndex: 1e3,\n  overflowY: \"auto\",\n  marginTop: \"4px\"\n};\nconst iconColorByTheme = {\n  [Theme.LIGHT]: \"#000000\",\n  [Theme.DARK]: \"#FFFFFF\"\n};\nconst OptionListDarkPanelStyles = () => /* @__PURE__ */ jsx(\"style\", { children: `\n      [data-option-list-theme=\"dark\"] .text-primary,\n      [data-option-list-theme=\"dark\"] .text-secondary {\n        --tw-text-opacity: 1;\n        color: rgb(255 255 255 / var(--tw-text-opacity, 1)) !important;\n      }\n    ` });\nexport {\n  OptionListElement\n};\n","import { QueryType } from \"../../types.js\";\nimport { differenceInYears } from \"../../../../node_modules/date-fns/differenceInYears.js\";\nconst ageRange = (birthDate) => {\n  if (!birthDate) {\n    return \"30\";\n  }\n  const actualAge = differenceInYears(/* @__PURE__ */ new Date(), new Date(birthDate));\n  if (actualAge < 20) {\n    return \"10\";\n  }\n  if (actualAge >= 60) {\n    return \"60\";\n  }\n  const ageGroup = Math.floor(actualAge / 10) * 10;\n  return ageGroup.toString();\n};\nconst getGenderValue = (query, genderOptions, user) => {\n  if (!genderOptions.show) {\n    return \"\";\n  }\n  const currentGender = query.gender;\n  if (currentGender) {\n    return currentGender;\n  }\n  if ((user == null ? void 0 : user.logged) && (user == null ? void 0 : user.gender)) {\n    if (user.gender === \"M\" && genderOptions.hasMale) {\n      return \"M\";\n    }\n    if (user.gender === \"F\" && genderOptions.hasFemale) {\n      return \"F\";\n    }\n    if (genderOptions.hasAll) {\n      return \"\";\n    }\n  }\n  if (!(user == null ? void 0 : user.logged) && genderOptions.hasFemale) {\n    return \"F\";\n  }\n  if (genderOptions.hasFemale) {\n    return \"F\";\n  }\n  if (genderOptions.hasAll) {\n    return \"\";\n  }\n  if (genderOptions.hasMale) {\n    return \"M\";\n  }\n  return \"\";\n};\nconst getAgeValue = (query, ageOptions, user) => {\n  var _a;\n  if (!ageOptions.show || ageOptions.values.length === 0) {\n    return \"\";\n  }\n  const currentAge = query.age;\n  if (currentAge) {\n    const existingOption = ageOptions.values.find((option) => option.value === currentAge);\n    if (existingOption) {\n      return currentAge;\n    }\n  }\n  if ((user == null ? void 0 : user.logged) && (user == null ? void 0 : user.age)) {\n    const userAge = user.age;\n    const userAgeOption = ageOptions.values.find((option) => option.value === userAge || option.value.includes(userAge) || option.label.includes(`${userAge}대`));\n    if (userAgeOption) {\n      return userAgeOption.value;\n    }\n  }\n  const thirtyOption = ageOptions.values.find((option) => option.label.includes(\"30\") || option.value.includes(\"30\") || option.label.includes(\"30대\"));\n  if (thirtyOption) {\n    return thirtyOption.value;\n  }\n  return ((_a = ageOptions.values[0]) == null ? void 0 : _a.value) || \"\";\n};\nconst generateLabel = (genderValue, ageValue) => {\n  if (genderValue && ageValue) {\n    return \"성별,연령\";\n  }\n  if (genderValue) {\n    return \"성별\";\n  }\n  if (ageValue) {\n    return \"연령\";\n  }\n  return \"\";\n};\nconst getOptions = (query, ageOptions, genderOptions, user) => {\n  const baseQuery = query || {\n    type: QueryType.CustomCategory,\n    categoryIds: [{\n      largeCategoryId: \"\",\n      middleCategoryId: \"\"\n    }]\n  };\n  const genderValue = getGenderValue(baseQuery, genderOptions, user);\n  const ageValue = getAgeValue(baseQuery, ageOptions, user);\n  const combinedQuery = {\n    ...baseQuery,\n    ...genderValue && genderValue !== \"\" && {\n      gender: genderValue\n    },\n    ...ageValue && {\n      age: ageValue\n    }\n  };\n  const label = generateLabel(genderValue, ageValue);\n  return [{\n    label,\n    value: \"\",\n    query: combinedQuery\n  }];\n};\nexport {\n  ageRange,\n  getOptions\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { useQueryStore } from \"../../query-store/query.store.js\";\nimport { OptionListElement } from \"../OptionListElement/OptionListElement.js\";\nimport { useMemo, useEffect } from \"react\";\nimport \"../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport { useCurrentUser } from \"../../../../hooks/useCurrentUser.js\";\nimport \"framer\";\nimport \"../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../config/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../apis/user/UserApiService.js\";\nimport \"../../../../apis/preuser/PreuserApiService.js\";\nimport \"../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../hooks/stores/toast/toast.store.js\";\nimport \"../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport \"../../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../../systems/Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport { shallow as shallow$1 } from \"../../../../node_modules/zustand/esm/shallow.js\";\nimport \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport { getOptions } from \"./LinkedOptionListModule.utils.js\";\nconst LinkedOptionListModule = ({\n  value,\n  input,\n  output,\n  layout\n}) => {\n  const user = useCurrentUser();\n  const {\n    ageOptions,\n    genderOptions\n  } = input;\n  const [query, dispatchSetQuery] = useQueryStore((state) => [state.queries[value], state.dispatchSetQuery], shallow$1);\n  const optionUser = useMemo(() => {\n    const baseUser = {\n      gender: user.gender,\n      logged: user.logged\n    };\n    if (!user.logged) {\n      return baseUser;\n    }\n    return {\n      ...baseUser,\n      age: \"30\"\n    };\n  }, [user]);\n  const values = useMemo(() => getOptions(query, ageOptions, genderOptions, optionUser), [query, ageOptions, genderOptions, optionUser]);\n  useEffect(() => {\n    if (values.length > 0 || !query) {\n      return;\n    }\n    dispatchSetQuery(output, query);\n  }, [query, values.length]);\n  return /* @__PURE__ */ jsx(OptionListElement, { inputs: values, output, value, ageOptions, genderOptions, layout });\n};\nexport {\n  LinkedOptionListModule\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { SectionLayout } from \"../../systems/curations/SectionLayout/SectionLayout.js\";\nimport { OptionListModuleInputType } from \"./OptionListModule.type.js\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport { BREAKPOINT_CONTROLS } from \"../../../libs/property-controls/breakpoint.js\";\nimport { THEME_CONTROLS } from \"../../../libs/property-controls/theme.js\";\nimport { COMPONENT_ID_PROPS } from \"../../../libs/property-controls/component-id.js\";\nimport { LinkedOptionListModule } from \"./LinkedOptionListModule/LinkedOptionListModule.js\";\nimport { SEGMENT_CONTROLS } from \"../../../libs/property-controls/segment.js\";\nimport { COUPON_CONTROLS } from \"../../../libs/property-controls/coupon.js\";\nconst OptionListModule = ({\n  componentId,\n  breakpoint,\n  theme,\n  ...rest\n}) => {\n  return /* @__PURE__ */ jsx(SectionLayout, { theme, breakpoint, componentId, children: /* @__PURE__ */ jsx(OptionListModuleInner, { ...rest }) });\n};\nconst OptionListModuleInner = ({\n  input,\n  output,\n  layout\n}) => {\n  switch (input.type) {\n    case OptionListModuleInputType.Linked:\n      return /* @__PURE__ */ jsx(LinkedOptionListModule, { value: input.value, input, output, layout });\n    default:\n      return null;\n  }\n};\naddPropertyControls(OptionListModule, {\n  ...BREAKPOINT_CONTROLS,\n  ...THEME_CONTROLS,\n  ...SEGMENT_CONTROLS,\n  componentId: {\n    ...COMPONENT_ID_PROPS.componentId\n  },\n  input: {\n    type: ControlType.Object,\n    title: \"입력 값\",\n    controls: {\n      type: {\n        type: ControlType.Enum,\n        title: \"유형\",\n        options: [OptionListModuleInputType.Linked],\n        optionTitles: [\"연결\"],\n        defaultValue: OptionListModuleInputType.Linked\n      },\n      value: {\n        hidden: ({\n          type\n        }) => type !== OptionListModuleInputType.Linked,\n        type: ControlType.String,\n        title: \"출력 값\",\n        defaultValue: \"\"\n      },\n      genderOptions: {\n        hidden: ({\n          type\n        }) => type !== OptionListModuleInputType.Linked,\n        type: ControlType.Object,\n        title: \"성별 옵션\",\n        controls: {\n          show: {\n            type: ControlType.Boolean,\n            title: \"표시 여부\",\n            defaultValue: true\n          },\n          hasAll: {\n            type: ControlType.Boolean,\n            title: \"전체 선택 가능 여부\",\n            defaultValue: true\n          },\n          hasMale: {\n            type: ControlType.Boolean,\n            title: \"남성 선택 가능 여부\",\n            defaultValue: true\n          },\n          hasFemale: {\n            type: ControlType.Boolean,\n            title: \"여성 선택 가능 여부\",\n            defaultValue: true\n          }\n        }\n      },\n      ageOptions: {\n        hidden: ({\n          type\n        }) => type !== OptionListModuleInputType.Linked,\n        type: ControlType.Object,\n        title: \"나이 옵션\",\n        controls: {\n          show: {\n            type: ControlType.Boolean,\n            title: \"표시 여부\",\n            defaultValue: false\n          },\n          values: {\n            type: ControlType.Array,\n            title: \"나이 목록\",\n            control: {\n              type: ControlType.Object,\n              title: \"나이\",\n              controls: {\n                label: {\n                  type: ControlType.String,\n                  title: \"옵션명\",\n                  defaultValue: \"30대\"\n                },\n                value: {\n                  type: ControlType.String,\n                  title: \"나이대\",\n                  defaultValue: \"30\",\n                  description: \"값은 상수값을 넣어주세요. ex) 10,20,30\"\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  },\n  output: {\n    type: ControlType.String,\n    title: \"출력 값\",\n    defaultValue: \"\"\n  },\n  layout: {\n    title: \"레이아웃\",\n    type: ControlType.Object,\n    controls: {\n      padding: {\n        type: ControlType.FusedNumber,\n        title: \"패딩\",\n        defaultValue: 0,\n        toggleKey: \"isMixed\",\n        toggleTitles: [\"All\", \"Individual\"],\n        valueKeys: [\"paddingTop\", \"paddingRight\", \"paddingBottom\", \"paddingLeft\"],\n        valueLabels: [\"T\", \"R\", \"B\", \"L\"],\n        min: 0\n      },\n      backgroundColor: {\n        ...COUPON_CONTROLS.backgroundColor,\n        title: \"드롭다운 배경색\"\n      }\n    }\n  }\n});\nexport {\n  OptionListModule\n};\n","import{OptionListModule}from\"https://asset.29cm.co.kr/contents/framer/components/modules/OptionListModule/OptionListModule.js\";OptionListModule.displayName=\"[조립형]OptionList\";export default OptionListModule;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"OptionListModule\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OptionListModule.map"],"x_google_ignoreList":[1,2,3,4],"mappings":"w/BAAI,GAA8C,IAChD,EAA2B,EAA2B,OAAY,GAAK,SAChE,IACN,GAA6B,EAAE,CAAC,uBCHe,CAC5C,EAAIA,EAAc,KAAK,CAAE,OAAUC,EAAW,EAAE,0BCD2C,KACZ,IAClD,KAC8B,IACrB,CACtC,GAAI,GAAE,CACV,KAAM,iJACN,MAAO,CACL,MAAO,gCACP,YAAa,0CACb,KAAM,yBACP,CACD,SAAU,CACR,SAAU,CACR,KAAM,CACJ,KAAM,qBACN,MAAO,gBACP,YAAa,gBACb,KAAM,gBACP,CACF,CACD,KAAM,CACJ,MAAO,CACL,MAAO,gBACP,YAAa,SACd,CACD,OAAQ,CACN,MAAO,kBACP,YAAa,SACd,CACF,CACF,CACD,gBAAiB,CACf,KAAM,SACP,CACF,CAAC,CAAE,EAAIC,GACL,CAAE,MAAO,EAAK,YAAa,EAAG,SAAU,EAAG,UAAWC,EAAG,WAAY,EAAG,KAAMC,EAAI,SAAU,WAAYC,EAAG,QAASC,EAAG,QAAS,EAAK,GAAG,GAAK,IAAM,CAClJ,IAAM,EAAIC,IAAK,CAAE,EAAI,GAAK,MAAQ,EAAE,KAAO,EAAE,KAAOH,EAAG,EAAI,GAAE,CAC3D,KAAM,EACN,SAAU,EACX,CAAC,CAAE,EAAI,GAAK,CAAC,EACd,OAAuB,EAAE,KAAK,KAAM,CAAE,IAAK,EAAG,UAAW,GAAE,EAAE,MAAM,CAAED,EAAE,CAAE,GAAG,EAAG,SAAU,CACvE,EAAE,KAAK,SAAU,CAAE,KAAM,SAAU,QAASG,EAAG,SAAU,EAAG,UAAW,gBAAiB,SAAU,CAChHD,GAAqB,EAAE,IACrB,EACA,CACE,KAAMG,EAAE,GACR,KAAMH,EACN,UAAW,EAAE,KAAK,CAAE,UAAW,OAAQ,CAAC,CACzC,CACF,CACe,EAAE,KAAK,MAAO,CAAE,UAA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