{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/dANAt7kXqLIpCAdLj2t5/TGskKsH2qIi24gzEo4Be/Analytics.js", "ssg:https://asset.29cm.co.kr/contents/framer/apis/raffle/RaffleApiService.types.js", "ssg:https://asset.29cm.co.kr/contents/framer/apis/raffle/RaffleApiService.js", "ssg:https://asset.29cm.co.kr/contents/framer/hooks/fetchers/useLazyFetchRaffleGroup.js", "ssg:https://asset.29cm.co.kr/contents/framer/hooks/fetchers/useLazyFetchRaffleDisplayInformation.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/systems/RaffleButton/hooks/useFetchRaffleData.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/systems/RaffleButton/RaffleButton.types.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/systems/RaffleButton/hooks/useRaffleStatus.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/bottom-sheets/TwoButtonBottomSheetContent/TwoButtonBottomSheetContent.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/AgreementCheckList/AgreementCheckList.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/AgreementCheckList/AgreementCheckList.hooks.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/bottom-sheets/AgreementsBottomSheet/AgreementsBottomSheet.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/bottom-sheets/AgreementsBottomSheet/AgreementsBottomSheet.hooks.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/dialogs/TwoButtonDialogContent/TwoButtonDialogContent.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/dialogs/AgreementsDialog/AgreementsDialog.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/dialogs/AgreementsDialog/AgreementsDialog.hooks.js", "ssg:https://asset.29cm.co.kr/contents/framer/hooks/useAgreementsModal.js", "ssg:https://asset.29cm.co.kr/contents/framer/hooks/useSubscribeIdentityVerification.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/bottom-sheets/IdentityVerificationBottomSheet/IdentityVerificationBottomSheet.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/bottom-sheets/IdentityVerificationBottomSheet/IdentityVerificationBottomSheet.hooks.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/dialogs/IdentityVerificationDialog/IdentityVerificationDialog.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/dialogs/IdentityVerificationDialog/IdentityVerificationDialog.hooks.js", "ssg:https://asset.29cm.co.kr/contents/framer/utils/openPopup.js", "ssg:https://asset.29cm.co.kr/contents/framer/utils/openIdentifyVerificationPopup.js", "ssg:https://asset.29cm.co.kr/contents/framer/hooks/useIdentityVerificationModal.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/systems/RaffleButton/hooks/useTrackRaffleEvent.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/systems/RaffleButton/hooks/useCreateRaffleAction.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/dialogs/AppQRCodeDialog/AppQRCodeDialog.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/@shared/dialogs/AppQRCodeDialog/AppQRCodeDialog.hooks.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/systems/RaffleButton/hooks/useRaffleActions.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/systems/RaffleButton/RaffleButton.utils.js", "ssg:https://asset.29cm.co.kr/contents/framer/libs/property-controls/button.js", "ssg:https://asset.29cm.co.kr/contents/framer/components/systems/RaffleButton/RaffleButton.js", "ssg:https://framerusercontent.com/modules/OcBddWDWXlGS4T3Q4Wnl/2foFwHDTq9SF2tB5eSAx/RaffleButton.js", "ssg:https://asset.29cm.co.kr/contents/framer/utils/getResponsiveWidth.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import{useRef,useEffect}from\"react\";import{useInView}from\"framer-motion\";import{useTrackClickComponent,useTrackViewComponent}from\"https://asset.29cm.co.kr/contents/framer/components/canvas/ComponentEventTracker/ComponentEventTracker.hooks.event.js\";const getComponent=(props,Component)=>Component[\"displayName\"]||props[\"name\"]||props[\"data-framer-name\"];// prettier-ignore\nconst mergeRefs=(...refs)=>{return value=>{refs.forEach(ref=>{if(typeof ref===\"function\"){ref(value);}else if(ref!=null){ref.current=value;}});};};export function withViewEventTracker(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const component=getComponent(props,Component);const containerRef=useRef(null);const isInView=useInView(containerRef);const{trackViewComponent}=useTrackViewComponent();useEffect(()=>{if(!isInView){return;}trackViewComponent(component);},[isInView]);return /*#__PURE__*/_jsx(Component,{...props,ref:mergeRefs(ref,containerRef)});});}export function withClickEventTracker(Component){return props=>{const component=getComponent(props,Component);const{trackClickComponent}=useTrackClickComponent();const handleClick=e=>{if(e.isTriggered){return;}e.isTriggered=true;trackClickComponent(component);};return /*#__PURE__*/_jsx(Component,{...props,onTap:handleClick});};}export function withViewClickEventTracker(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const component=getComponent(props,Component);const containerRef=useRef(null);const isInView=useInView(containerRef);const{trackViewComponent}=useTrackViewComponent();const{trackClickComponent}=useTrackClickComponent();useEffect(()=>{if(!isInView){return;}trackViewComponent(component);},[isInView]);const handleClick=e=>{if(e.isTriggered){return;}e.isTriggered=true;trackClickComponent(component);};return /*#__PURE__*/_jsx(Component,{ref:mergeRefs(ref,containerRef),...props,onTap:handleClick});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withViewClickEventTracker\":{\"type\":\"reactHoc\",\"name\":\"withViewClickEventTracker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withClickEventTracker\":{\"type\":\"reactHoc\",\"name\":\"withClickEventTracker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withViewEventTracker\":{\"type\":\"reactHoc\",\"name\":\"withViewEventTracker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Analytics.map", "var RaffleAgreementType = /* @__PURE__ */ ((RaffleAgreementType2) => {\n  RaffleAgreementType2[\"PrivacyAgreement\"] = \"PRIVACY_AGREEMENT\";\n  RaffleAgreementType2[\"AdvertisingAgreement\"] = \"ADVERTISING_AGREEMENT\";\n  RaffleAgreementType2[\"PersonalInformation\"] = \"PERSONAL_INFORMATION_AGREEMENT\";\n  return RaffleAgreementType2;\n})(RaffleAgreementType || {});\nvar RaffleAgreementRequirement = /* @__PURE__ */ ((RaffleAgreementRequirement2) => {\n  RaffleAgreementRequirement2[\"Required\"] = \"REQUIRED\";\n  RaffleAgreementRequirement2[\"Optional\"] = \"OPTIONAL\";\n  return RaffleAgreementRequirement2;\n})(RaffleAgreementRequirement || {});\nexport {\n  RaffleAgreementRequirement,\n  RaffleAgreementType\n};\n", "import { APIService } from \"../APIService.js\";\nimport { RaffleAgreementType } from \"./RaffleApiService.types.js\";\nimport { env } from \"../../config/index.js\";\nimport { GENERAL_ERROR } from \"../../constants/error.js\";\nconst reservedErrorMessages = [\"RAFFLE_CERTIFICATION_FAILED\"];\nconst throwFailError = (response) => {\n  const isFailError = response.result === \"FAIL\" || response.data === null;\n  const isReservedErrorMessage = response.errorCode !== null && reservedErrorMessages.includes(response.errorCode);\n  if (isFailError && isReservedErrorMessage) {\n    throw new Error(response.message ?? GENERAL_ERROR);\n  }\n  if (isFailError) {\n    throw new Error(GENERAL_ERROR);\n  }\n};\nclass RaffleApiService extends APIService {\n  constructor() {\n    super();\n    this.setBaseUrl(env.api.content);\n    this.setMiddleware(throwFailError);\n  }\n  async getRaffleGroup(raffleGroupId) {\n    return this.get(`/api/v4/framers/proxy/content-api/api/v5/raffle-groups/${raffleGroupId}`);\n  }\n  async getRaffleDisplayInformation(raffleGroupId, raffleId) {\n    return this.get(`/api/v4/framers/proxy/content-api/api/v5/raffle-groups/${raffleGroupId}/raffles/${raffleId}/display-information`, void 0, {\n      credentials: \"include\"\n    });\n  }\n  async getRaffleNotificationApplicable(raffleGroupId, raffleId) {\n    return this.get(`/api/v4/framers/proxy/content-api/api/v5/raffle-groups/${raffleGroupId}/raffles/${raffleId}/notification-applicable`, void 0, {\n      credentials: \"include\"\n    });\n  }\n  async getRaffleApplicable(raffleGroupId, raffleId) {\n    return this.get(`/api/v4/framers/proxy/content-api/api/v5/raffle-groups/${raffleGroupId}/raffles/${raffleId}/raffle-applicable`, void 0, {\n      credentials: \"include\"\n    });\n  }\n  async postRaffleGroupAgreementsAgree({\n    raffleGroupId,\n    raffleId,\n    agreementTypes\n  }) {\n    const agreements = agreementTypes.filter((agreementType) => this.isDefinedRaffleAgreementType(agreementType));\n    return this.post(`/api/v4/framers/proxy/content-api/api/v5/raffle-groups/${raffleGroupId}/raffles/${raffleId}/agreements/agree`, {\n      agreements\n    }, {\n      credentials: \"include\"\n    });\n  }\n  isDefinedRaffleAgreementType(value) {\n    return [RaffleAgreementType.AdvertisingAgreement, RaffleAgreementType.PrivacyAgreement, RaffleAgreementType.PersonalInformation].includes(value);\n  }\n  async postRaffleApply(raffleGroupId, raffleId) {\n    return this.post(`/api/v4/framers/proxy/content-api/api/v5/raffle-groups/${raffleGroupId}/raffles/${raffleId}/raffle-apply`, void 0, {\n      credentials: \"include\"\n    });\n  }\n}\nconst raffleApi = new RaffleApiService();\nexport {\n  raffleApi\n};\n", "import { raffleApi } from \"../../apis/raffle/RaffleApiService.js\";\nimport { useLazySWR } from \"../swr/useLazySWR.js\";\nconst raffleGroupFetcherKey = \"raffle-group\";\nconst useLazyFetchRaffleGroup = (raffleGroupId) => {\n  const enabled = Boolean(raffleGroupId);\n  const {\n    data,\n    isLoading,\n    fetch\n  } = useLazySWR(enabled ? [raffleGroupFetcherKey, raffleGroupId] : null, () => raffleApi.getRaffleGroup(raffleGroupId));\n  const isPending = isLoading || !enabled;\n  return {\n    raffleGroup: data == null ? void 0 : data.data,\n    isPending,\n    fetch\n  };\n};\nexport {\n  useLazyFetchRaffleGroup\n};\n", "import { raffleApi } from \"../../apis/raffle/RaffleApiService.js\";\nimport { useLazySWR } from \"../swr/useLazySWR.js\";\nconst raffleDisplayInformationFetcherKey = \"raffle-display-information\";\nconst useLazyFetchRaffleDisplayInformation = (raffleGroupId, raffleId) => {\n  const enabled = Boolean(raffleGroupId) && Boolean(raffleId);\n  const {\n    data,\n    isLoading,\n    fetch,\n    mutate\n  } = useLazySWR(enabled ? [raffleDisplayInformationFetcherKey, raffleGroupId, raffleId] : null, () => raffleApi.getRaffleDisplayInformation(raffleGroupId, raffleId));\n  const isPending = isLoading || !enabled;\n  return {\n    displayInformation: data == null ? void 0 : data.data,\n    isPending,\n    fetch,\n    mutate\n  };\n};\nexport {\n  useLazyFetchRaffleDisplayInformation\n};\n", "import { useLazyFetchRaffleGroup } from \"../../../../hooks/fetchers/useLazyFetchRaffleGroup.js\";\nimport { useLazyFetchRaffleDisplayInformation } from \"../../../../hooks/fetchers/useLazyFetchRaffleDisplayInformation.js\";\nimport { useEffect } from \"react\";\nconst useFetchRaffleData = ({\n  raffleGroupId,\n  raffleId,\n  enabled,\n  shouldFetchDisplayInformation\n}) => {\n  const {\n    raffleGroup,\n    fetch: fetchRaffleGroup,\n    isPending: isRaffleGroupPending\n  } = useLazyFetchRaffleGroup(raffleGroupId);\n  const {\n    displayInformation,\n    fetch: fetchRaffleDisplayInformation,\n    isPending: isRaffleDisplayInformationPending,\n    mutate: revalidateDisplayInformation\n  } = useLazyFetchRaffleDisplayInformation(raffleGroupId, raffleId);\n  useEffect(() => {\n    if (enabled) {\n      fetchRaffleGroup();\n      if (shouldFetchDisplayInformation) {\n        fetchRaffleDisplayInformation();\n      }\n    }\n  }, [enabled, shouldFetchDisplayInformation]);\n  const isPending = isRaffleGroupPending || shouldFetchDisplayInformation && isRaffleDisplayInformationPending;\n  return {\n    raffleGroup,\n    displayInformation,\n    isPending,\n    revalidateDisplayInformation\n  };\n};\nexport {\n  useFetchRaffleData\n};\n", "var RaffleStatus = /* @__PURE__ */ ((RaffleStatus2) => {\n  RaffleStatus2[RaffleStatus2[\"Pending\"] = 0] = \"Pending\";\n  RaffleStatus2[RaffleStatus2[\"InProgress\"] = 1] = \"InProgress\";\n  RaffleStatus2[RaffleStatus2[\"Finished\"] = 2] = \"Finished\";\n  RaffleStatus2[RaffleStatus2[\"Unknown\"] = 3] = \"Unknown\";\n  return RaffleStatus2;\n})(RaffleStatus || {});\nexport {\n  RaffleStatus\n};\n", "import { useState, useEffect, useMemo } from \"react\";\nimport { RaffleStatus } from \"../RaffleButton.types.js\";\nimport { differenceInMilliseconds } from \"../../../../node_modules/date-fns/differenceInMilliseconds.js\";\nimport { createKRTimeZoneDate } from \"../../../../utils/createUTCDate.js\";\nimport useInterval from \"../../../../node_modules/react-use/esm/useInterval.js\";\nimport { parseISO } from \"../../../../node_modules/date-fns/parseISO.js\";\nconst MS_IN_SECOND = 1e3;\nconst getRaffleStatus = (remaining, duration) => {\n  switch (true) {\n    case remaining < MS_IN_SECOND:\n      return RaffleStatus.Finished;\n    case remaining - duration < MS_IN_SECOND:\n      return RaffleStatus.InProgress;\n    default:\n      return RaffleStatus.Pending;\n  }\n};\nconst getRaffleInterval = (status) => {\n  switch (status) {\n    case RaffleStatus.Finished:\n      return null;\n    case RaffleStatus.Unknown:\n      return MS_IN_SECOND / 2;\n    default:\n      return MS_IN_SECOND;\n  }\n};\nconst useRaffleStatus = (raffle) => {\n  const [status, setStatus] = useState(RaffleStatus.Unknown);\n  useEffect(() => {\n    setStatus(RaffleStatus.Unknown);\n  }, [raffle]);\n  const duration = useMemo(() => raffle ? differenceInMilliseconds(parseISO(raffle.applyEndedAt), parseISO(raffle.applyStartedAt)) : 0, [raffle]);\n  const intervalCallback = () => {\n    if (!raffle) {\n      return;\n    }\n    const incoming = differenceInMilliseconds(parseISO(raffle.applyEndedAt), createKRTimeZoneDate());\n    const nextStatus = getRaffleStatus(incoming, duration);\n    setStatus(nextStatus);\n  };\n  useInterval(intervalCallback, getRaffleInterval(status));\n  return status;\n};\nexport {\n  useRaffleStatus\n};\n", "import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { Button as Default } from \"../../Button/Button.js\";\nimport { TextButton as Default$1 } from \"../../TextButton/TextButton.js\";\nimport { typography } from \"../../../../styles/typography.js\";\nconst TwoButtonBottomSheetContent = ({\n  title,\n  description,\n  primaryButtonText,\n  secondaryButtonText,\n  primaryButtonDisabled = false,\n  secondaryButtonDisabled = false,\n  content,\n  onPrimaryButtonClick,\n  onSecondaryButtonClick\n}) => {\n  const containerStyle = {\n    ...baseContainerStyle,\n    ...{\n      gap: content !== void 0 ? 12 : 20\n    }\n  };\n  return /* @__PURE__ */ jsxs(\"div\", { style: containerStyle, children: [\n    /* @__PURE__ */ jsxs(\"div\", { style: textWrapperStyle, children: [\n      title && /* @__PURE__ */ jsx(\"h1\", { style: titleStyle, children: title }),\n      description && /* @__PURE__ */ jsx(\"p\", { style: descriptionStyle, children: description })\n    ] }),\n    content,\n    /* @__PURE__ */ jsxs(\"div\", { style: buttonWrapperStyle, children: [\n      primaryButtonText && /* @__PURE__ */ jsx(Default, { type: \"button\", variant: \"primary\", size: \"large\", onClick: onPrimaryButtonClick, disabled: primaryButtonDisabled, children: primaryButtonText }),\n      secondaryButtonText && /* @__PURE__ */ jsx(Default$1, { type: \"button\", variant: \"secondary\", size: \"small\", onClick: onSecondaryButtonClick, disabled: secondaryButtonDisabled, children: secondaryButtonText })\n    ] })\n  ] });\n};\nconst baseContainerStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  padding: \"0px 20px 34px\"\n};\nconst textWrapperStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  gap: 12\n};\nconst titleStyle = {\n  /* title-l-bold */\n  ...typography(24, 700, 1.36),\n  whiteSpace: \"pre-wrap\"\n};\nconst descriptionStyle = {\n  /* text-xxl */\n  ...typography(15, 400, 1.5),\n  whiteSpace: \"pre-wrap\"\n};\nconst buttonWrapperStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  gap: 10\n};\nexport {\n  TwoButtonBottomSheetContent\n};\n", "import { jsxs, Fragment, jsx } from \"react/jsx-runtime\";\nimport { Checkbox } from \"../checkbox/Checkbox.js\";\nimport { createIsomorphicLink } from \"../../../utils/createIsomorphicLink.js\";\nimport { TextButton as Default } from \"../TextButton/TextButton.js\";\nimport \"react\";\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 \"../../../config/index.js\";\nimport \"../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../node_modules/js-cookie/dist/js.cookie.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 \"../providers/ThemeProvider/ThemeProvider.js\";\nimport \"../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 { useIsMobileDevice } from \"../../../hooks/useIsMobileDevice.js\";\nimport \"../../../utils/redirectLogin.js\";\nimport \"../../../utils/event-properties/source.js\";\nimport { typography } from \"../../../styles/typography.js\";\nconst AgreementCheckList = ({\n  agreements,\n  displayAgreeAllCheckBox\n}) => {\n  const isMobile = useIsMobileDevice();\n  const isAllAgreementsChecked = agreements.every((agreement) => agreement.checked);\n  const handleAgreeAllChange = (checked) => {\n    agreements.forEach((agreement) => {\n      var _a;\n      (_a = agreement.onChange) == null ? void 0 : _a.call(agreement, checked);\n    });\n  };\n  const agreeAllSectionStyle = {\n    ...{\n      \"--check-list-agree-all-padding-bottom\": isMobile ? \"9px\" : \"6px\"\n    },\n    ...baseAgreeAllSectionStyle\n  };\n  const agreeAllLabelStyle = {\n    ...isMobile ? typography(16, 400, 1) : typography(18, 500, 1.36)\n  };\n  const listStyle = {\n    ...{\n      \"--check-list-padding-top\": isMobile ? \"5px\" : \"0\",\n      \"--check-list-padding-bottom\": isMobile ? \"9px\" : \"0\"\n    },\n    ...baseListStyle\n  };\n  return /* @__PURE__ */ jsxs(Fragment, { children: [\n    displayAgreeAllCheckBox ? /* @__PURE__ */ jsx(\"div\", { style: agreeAllSectionStyle, children: /* @__PURE__ */ jsx(Checkbox, { checked: isAllAgreementsChecked, onChange: handleAgreeAllChange, size: isMobile ? \"small\" : \"medium\", children: /* @__PURE__ */ jsx(\"span\", { style: agreeAllLabelStyle, children: \"\uC804\uCCB4 \uB3D9\uC758\uD558\uAE30\" }) }) }) : null,\n    /* @__PURE__ */ jsx(\"ul\", { style: listStyle, children: agreements.map((agreement) => {\n      return /* @__PURE__ */ jsxs(\"li\", { style: rowStyle, children: [\n        /* @__PURE__ */ jsx(Checkbox, { checked: agreement.checked, onChange: agreement.onChange, size: isMobile ? \"small\" : \"medium\", children: agreement.label }),\n        agreement.detailLink && /* @__PURE__ */ jsx(\"a\", { href: createIsomorphicLink(agreement.detailLink), target: \"_blank\", rel: \"noreferrer\", style: detailLinkStyle, children: /* @__PURE__ */ jsx(Default, { type: \"button\", size: isMobile ? \"xSmall\" : \"small\", variant: \"secondary\", isUnderlined: true, children: \"\uC790\uC138\uD788\" }) })\n      ] }, agreement.type);\n    }) })\n  ] });\n};\nconst baseAgreeAllSectionStyle = {\n  display: \"flex\",\n  justifyContent: \"flex-start\",\n  alignItems: \"center\",\n  paddingBottom: \"var(--check-list-agree-all-padding-bottom)\",\n  borderBottom: \"1px solid #5d5d5d29\",\n  width: \"100%\"\n};\nconst baseListStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  paddingTop: \"var(--check-list-padding-top)\",\n  paddingBottom: \"var(--check-list-padding-bottom)\",\n  width: \"100%\"\n};\nconst rowStyle = {\n  display: \"flex\",\n  justifyContent: \"space-between\",\n  alignItems: \"center\",\n  alignSelf: \"stretch\",\n  gap: 6\n};\nconst detailLinkStyle = {\n  minWidth: \"max-content\"\n};\nexport {\n  AgreementCheckList\n};\n", "import { useState } from \"react\";\nconst useAgreementCheckListControl = (agreements) => {\n  const [agreementsState, setAgreementsState] = useState({});\n  const reshapedAgreements = agreements.map((agreement) => ({\n    ...agreement,\n    checked: agreementsState[agreement.type] || false,\n    onChange: (checked) => {\n      setAgreementsState((prev) => ({\n        ...prev,\n        [agreement.type]: checked\n      }));\n    }\n  }));\n  const isAllRequiredAgreementsChecked = reshapedAgreements.filter((agreement) => agreement.isRequired).every((agreement) => agreement.checked);\n  return {\n    agreementsState,\n    agreements: reshapedAgreements,\n    isAllRequiredAgreementsChecked\n  };\n};\nexport {\n  useAgreementCheckListControl\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { TwoButtonBottomSheetContent } from \"../TwoButtonBottomSheetContent/TwoButtonBottomSheetContent.js\";\nimport { AgreementCheckList } from \"../../AgreementCheckList/AgreementCheckList.js\";\nimport { useAgreementCheckListControl } from \"../../AgreementCheckList/AgreementCheckList.hooks.js\";\nimport { useEffect } from \"react\";\nconst AgreementsBottomSheet = ({\n  agreements = [],\n  displayAgreeAllCheckBox,\n  onAgree,\n  onView,\n  ...bottomSheetContentParams\n}) => {\n  useEffect(() => {\n    onView == null ? void 0 : onView();\n  }, []);\n  const {\n    agreements: agreementList,\n    isAllRequiredAgreementsChecked,\n    agreementsState\n  } = useAgreementCheckListControl(agreements);\n  const handlePrimaryButtonClick = () => {\n    onAgree == null ? void 0 : onAgree(agreementsState);\n  };\n  return /* @__PURE__ */ jsx(TwoButtonBottomSheetContent, { ...bottomSheetContentParams, onPrimaryButtonClick: handlePrimaryButtonClick, primaryButtonDisabled: !isAllRequiredAgreementsChecked, content: /* @__PURE__ */ jsx(AgreementCheckList, { agreements: agreementList, displayAgreeAllCheckBox }) });\n};\nexport {\n  AgreementsBottomSheet\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { useBottomSheet } from \"../../../../hooks/useBottomSheet.js\";\nimport { AgreementsBottomSheet } from \"./AgreementsBottomSheet.js\";\nconst useAgreementsBottomSheet = () => {\n  const bottomSheet = useBottomSheet();\n  const show = (props) => {\n    bottomSheet.show({\n      content: /* @__PURE__ */ jsx(AgreementsBottomSheet, { ...props }),\n      detent: \"content-height\"\n    });\n  };\n  return {\n    show,\n    hide: bottomSheet.hide\n  };\n};\nexport {\n  useAgreementsBottomSheet\n};\n", "import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { Button as Default } from \"../../Button/Button.js\";\nimport { Icon } from \"../../Icon/Icon.js\";\nimport { typography } from \"../../../../styles/typography.js\";\nconst TwoButtonDialogContent = ({\n  title,\n  description,\n  primaryButtonText = \"\uD655\uC778\",\n  secondaryButtonText,\n  primaryButtonDisabled = false,\n  secondaryButtonDisabled = false,\n  content,\n  onPrimaryButtonClick,\n  onSecondaryButtonClick,\n  onClose\n}) => {\n  return /* @__PURE__ */ jsxs(\"div\", { style: containerStyle, children: [\n    /* @__PURE__ */ jsx(\"button\", { type: \"button\", style: closeButtonStyle, onClick: onClose, children: /* @__PURE__ */ jsx(Icon, { type: \"close\", size: 22 }) }),\n    /* @__PURE__ */ jsxs(\"div\", { style: textWrapperStyle, children: [\n      title && /* @__PURE__ */ jsx(\"h1\", { style: titleStyle, children: title }),\n      description && /* @__PURE__ */ jsx(\"p\", { style: descriptionStyle, children: description })\n    ] }),\n    content,\n    /* @__PURE__ */ jsxs(\"div\", { style: buttonWrapperStyle, children: [\n      secondaryButtonText && /* @__PURE__ */ jsx(Default, { type: \"button\", variant: \"secondary\", size: \"medium\", disabled: secondaryButtonDisabled, onClick: onSecondaryButtonClick, children: secondaryButtonText }),\n      primaryButtonText && /* @__PURE__ */ jsx(Default, { type: \"button\", variant: \"primary\", size: \"medium\", disabled: primaryButtonDisabled, onClick: onPrimaryButtonClick, children: primaryButtonText })\n    ] })\n  ] });\n};\nconst containerStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  gap: 16,\n  minWidth: 420\n};\nconst textWrapperStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  gap: 8\n};\nconst titleStyle = {\n  /* title-l-bold */\n  ...typography(24, 700, 1.36),\n  textAlign: \"start\",\n  whiteSpace: \"pre-wrap\"\n};\nconst descriptionStyle = {\n  /* text-xxl */\n  ...typography(16, 400, 1.4),\n  textAlign: \"start\",\n  whiteSpace: \"pre-wrap\"\n};\nconst buttonWrapperStyle = {\n  display: \"flex\",\n  justifyContent: \"flex-end\",\n  gap: 8\n};\nconst closeButtonStyle = {\n  position: \"absolute\",\n  top: 12,\n  right: 12,\n  display: \"flex\",\n  justifyContent: \"center\",\n  alignItems: \"center\",\n  padding: 11,\n  /* button reset CSS */\n  background: \"inherit\",\n  border: \"none\",\n  boxShadow: \"none\",\n  borderRadius: 0,\n  overflow: \"visible\",\n  cursor: \"pointer\"\n};\nexport {\n  TwoButtonDialogContent\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { TwoButtonDialogContent } from \"../TwoButtonDialogContent/TwoButtonDialogContent.js\";\nimport { AgreementCheckList } from \"../../AgreementCheckList/AgreementCheckList.js\";\nimport { useAgreementCheckListControl } from \"../../AgreementCheckList/AgreementCheckList.hooks.js\";\nimport { useEffect } from \"react\";\nconst AgreementsDialog = ({\n  agreements = [],\n  onAgree,\n  onView,\n  displayAgreeAllCheckBox,\n  ...dialogContentParams\n}) => {\n  useEffect(() => {\n    onView == null ? void 0 : onView();\n  }, []);\n  const {\n    agreements: agreementList,\n    isAllRequiredAgreementsChecked,\n    agreementsState\n  } = useAgreementCheckListControl(agreements);\n  const handlePrimaryButtonClick = () => {\n    onAgree == null ? void 0 : onAgree(agreementsState);\n  };\n  return /* @__PURE__ */ jsx(TwoButtonDialogContent, { ...dialogContentParams, onPrimaryButtonClick: handlePrimaryButtonClick, primaryButtonDisabled: !isAllRequiredAgreementsChecked, content: /* @__PURE__ */ jsx(AgreementCheckList, { agreements: agreementList, displayAgreeAllCheckBox }) });\n};\nexport {\n  AgreementsDialog\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { useDialog } from \"../../../../hooks/useDialog.js\";\nimport { AgreementsDialog } from \"./AgreementsDialog.js\";\nconst DIALOG_ID = \"agreements-dialog-id\";\nconst useAgreementsDialog = () => {\n  const dialog = useDialog();\n  const show = (params) => {\n    dialog.show({\n      id: DIALOG_ID,\n      hideButtons: true,\n      content: /* @__PURE__ */ jsx(AgreementsDialog, { ...params }),\n      needInAppLayer: false\n    });\n  };\n  const hide = () => {\n    dialog.hide(DIALOG_ID, false);\n  };\n  return {\n    show,\n    hide\n  };\n};\nexport {\n  useAgreementsDialog\n};\n", "import { useAgreementsBottomSheet } from \"../components/@shared/bottom-sheets/AgreementsBottomSheet/AgreementsBottomSheet.hooks.js\";\nimport { useAgreementsDialog } from \"../components/@shared/dialogs/AgreementsDialog/AgreementsDialog.hooks.js\";\nimport { useIsMobileDevice } from \"./useIsMobileDevice.js\";\nconst useAgreementsModal = () => {\n  const {\n    show: showAgreementsBottomSheet,\n    hide: hideAgreementsBottomSheet\n  } = useAgreementsBottomSheet();\n  const {\n    show: showAgreementsDialog,\n    hide: hideAgreementsDialog\n  } = useAgreementsDialog();\n  const isMobileDevice = useIsMobileDevice();\n  const show = (params) => {\n    const handleAgree = async (state) => {\n      var _a, _b;\n      try {\n        await ((_a = params.onSuccess) == null ? void 0 : _a.call(params, state));\n      } catch (error) {\n        (_b = params.onError) == null ? void 0 : _b.call(params, error);\n      }\n    };\n    const commonProps = {\n      title: params.title,\n      description: params.description,\n      primaryButtonText: params.primaryButtonText,\n      secondaryButtonText: \"\uB2E4\uC74C\uC5D0 \uD558\uAE30\",\n      onView: params.onView,\n      onAgree: handleAgree,\n      agreements: params.agreements,\n      displayAgreeAllCheckBox: params.displayAgreeAllCheckBox\n    };\n    if (isMobileDevice) {\n      showAgreementsBottomSheet({\n        ...commonProps,\n        onSecondaryButtonClick: hideAgreementsBottomSheet\n      });\n      return;\n    }\n    showAgreementsDialog({\n      ...commonProps,\n      onSecondaryButtonClick: hideAgreementsDialog,\n      onClose: hideAgreementsDialog\n    });\n  };\n  const hide = () => {\n    if (isMobileDevice) {\n      hideAgreementsBottomSheet();\n      return;\n    }\n    hideAgreementsDialog();\n  };\n  return {\n    show,\n    hide\n  };\n};\nexport {\n  useAgreementsModal\n};\n", "import \"./stores/content/content.store.js\";\nimport { isServer } from \"../utils/context.js\";\nimport \"../utils/event-properties/source.js\";\nimport \"framer\";\nimport { useEffect } from \"react\";\nimport { useDialog } from \"./useDialog.js\";\nimport { env } from \"../config/index.js\";\nconst useSubscribeIdentityVerification = ({\n  onSuccess,\n  onFail\n}) => {\n  const dialog = useDialog();\n  const callback = async (identityVerificationToken) => {\n    if (!identityVerificationToken) {\n      dialog.show({\n        content: \"\uBCF8\uC778\uC778\uC99D key\uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4\",\n        id: \"identity-verification-error\"\n      });\n      onFail == null ? void 0 : onFail();\n      return;\n    }\n    await onSuccess(identityVerificationToken);\n  };\n  useReceiveMessageInApp(callback);\n  useReceiveMessageInWeb(callback);\n};\nconst IDENTITY_VERIFICATION_IN_APP_KEY = \"identityVerificationComplete\";\nconst IDENTITY_VERIFICATION_IN_WEB_KEY = \"identity-verification\";\nconst useReceiveMessageInApp = (callback) => {\n  useEffect(() => {\n    assignIdentityVerificationCallback(callback);\n    return () => {\n      clearIdentityVerificationCallback();\n    };\n  }, []);\n};\nconst useReceiveMessageInWeb = (callback) => {\n  const handleCallback = (e) => {\n    if (e.data.type !== IDENTITY_VERIFICATION_IN_WEB_KEY) {\n      return;\n    }\n    if (env.workspace.auth !== e.origin) {\n      return;\n    }\n    callback(e.data.payload);\n  };\n  useEffect(() => {\n    window.addEventListener(\"message\", handleCallback, false);\n    return () => {\n      window.removeEventListener(\"message\", handleCallback, false);\n    };\n  }, []);\n};\nconst assignIdentityVerificationCallback = (callback) => {\n  if (isServer()) {\n    return;\n  }\n  window[IDENTITY_VERIFICATION_IN_APP_KEY] = callback;\n};\nconst clearIdentityVerificationCallback = () => {\n  if (isServer()) {\n    return;\n  }\n  delete window[IDENTITY_VERIFICATION_IN_APP_KEY];\n};\nexport {\n  useSubscribeIdentityVerification\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { useSubscribeIdentityVerification } from \"../../../../hooks/useSubscribeIdentityVerification.js\";\nimport { TwoButtonBottomSheetContent } from \"../TwoButtonBottomSheetContent/TwoButtonBottomSheetContent.js\";\nimport { useAnalytics } from \"../../../../hooks/analytics/useAnalytics.js\";\nimport \"../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../config/index.js\";\nimport { useEffect } from \"react\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.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 \"../../providers/ThemeProvider/ThemeProvider.js\";\nimport \"../../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 \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport \"framer\";\nconst IdentityVerificationBottomSheet = ({\n  onVerified,\n  onFail,\n  ...bottomSheetContentParams\n}) => {\n  const {\n    trackAmplitude\n  } = useAnalytics();\n  useEffect(() => {\n    trackAmplitude(\"view_bottomsheet\", {\n      bottomsheet_type: \"connecting_information\"\n    });\n  }, []);\n  const handleSuccess = (token) => {\n    trackAmplitude(\"connecting_information_success\");\n    onVerified(token);\n  };\n  useSubscribeIdentityVerification({\n    onSuccess: handleSuccess,\n    onFail\n  });\n  return /* @__PURE__ */ jsx(TwoButtonBottomSheetContent, { ...bottomSheetContentParams });\n};\nexport {\n  IdentityVerificationBottomSheet\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { useBottomSheet } from \"../../../../hooks/useBottomSheet.js\";\nimport { IdentityVerificationBottomSheet } from \"./IdentityVerificationBottomSheet.js\";\nconst useIdentityVerificationBottomSheet = () => {\n  const bottomSheet = useBottomSheet();\n  const show = (props) => {\n    bottomSheet.show({\n      content: /* @__PURE__ */ jsx(IdentityVerificationBottomSheet, { ...props }),\n      detent: \"content-height\"\n    });\n  };\n  return {\n    show,\n    hide: bottomSheet.hide\n  };\n};\nexport {\n  useIdentityVerificationBottomSheet\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { useSubscribeIdentityVerification } from \"../../../../hooks/useSubscribeIdentityVerification.js\";\nimport { TwoButtonDialogContent } from \"../TwoButtonDialogContent/TwoButtonDialogContent.js\";\nconst IdentityVerificationDialog = ({\n  onVerified,\n  onFail,\n  ...dialogContentParams\n}) => {\n  useSubscribeIdentityVerification({\n    onSuccess: onVerified,\n    onFail\n  });\n  return /* @__PURE__ */ jsx(TwoButtonDialogContent, { ...dialogContentParams });\n};\nexport {\n  IdentityVerificationDialog\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { useDialog } from \"../../../../hooks/useDialog.js\";\nimport { IdentityVerificationDialog } from \"./IdentityVerificationDialog.js\";\nconst DIALOG_ID = \"identity-verification-dialog-id\";\nconst useIdentityVerificationDialog = () => {\n  const dialog = useDialog();\n  const show = (params) => {\n    dialog.show({\n      id: DIALOG_ID,\n      hideButtons: true,\n      content: /* @__PURE__ */ jsx(IdentityVerificationDialog, { ...params }),\n      needInAppLayer: false\n    });\n  };\n  const hide = () => {\n    dialog.hide(DIALOG_ID, false);\n  };\n  return {\n    show,\n    hide\n  };\n};\nexport {\n  useIdentityVerificationDialog\n};\n", "import { isWebview } from \"./device.js\";\nimport { sendAppSchemeMessage } from \"./sendAppSchemeMessage.js\";\nconst POPUP_OPTIONS = \"width=500, height=550, top=100, left=100, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=yes, location=no, scrollbar=no\";\nconst openPopup = (url, popupName) => {\n  var _a;\n  if (isWebview()) {\n    sendAppSchemeMessage(\"weblink_popup\", `url=${encodeURIComponent(url)}`);\n    return;\n  }\n  (_a = window.open(url, popupName, POPUP_OPTIONS)) == null ? void 0 : _a.focus();\n};\nexport {\n  openPopup\n};\n", "import { env } from \"../config/index.js\";\nimport { openPopup } from \"./openPopup.js\";\nconst openIdentityVerificationPopup = () => {\n  const identityVerificationFormUrl = `${env.workspace.auth}/identity-verification/form`;\n  openPopup(identityVerificationFormUrl, \"identity-verification-form\");\n};\nexport {\n  openIdentityVerificationPopup\n};\n", "import { useIdentityVerificationBottomSheet } from \"../components/@shared/bottom-sheets/IdentityVerificationBottomSheet/IdentityVerificationBottomSheet.hooks.js\";\nimport { useIdentityVerificationDialog } from \"../components/@shared/dialogs/IdentityVerificationDialog/IdentityVerificationDialog.hooks.js\";\nimport { useIsMobileDevice } from \"./useIsMobileDevice.js\";\nimport \"../config/index.js\";\nimport { userApi } from \"../apis/user/UserApiService.js\";\nimport { openIdentityVerificationPopup } from \"../utils/openIdentifyVerificationPopup.js\";\nimport { postMessage } from \"../utils/postMessage.js\";\nimport { useCurrentUser } from \"./useCurrentUser.js\";\nimport { useTrackClickComponentEvent } from \"./events/useTrackClickComponentEvent.js\";\nconst useIdentityVerificationModal = () => {\n  const {\n    show: showIdentityVerificationBottomSheet,\n    hide: hideIdentityVerificationBottomSheet\n  } = useIdentityVerificationBottomSheet();\n  const {\n    show: showIdentityVerificationDialog,\n    hide: hideIdentityVerificationDialog\n  } = useIdentityVerificationDialog();\n  const isMobileDevice = useIsMobileDevice();\n  const {\n    name\n  } = useCurrentUser();\n  const {\n    trackClickComponentEvent\n  } = useTrackClickComponentEvent();\n  const show = ({\n    onSuccess,\n    onFail\n  }) => {\n    const handleVerified = createIdentityVerificationSuccessHandler({\n      onSuccess,\n      onFail,\n      name\n    });\n    const commonParams = {\n      title: \"\uBCF8\uC778\uC778\uC99D\uC744 \uC9C4\uD589\uD574 \uC8FC\uC138\uC694\",\n      description: \"\uC815\uD655\uD55C \uC54C\uB9BC\uC744 \uC704\uD574 \uBCF8\uC778 \uBA85\uC758\uC758 \uC5F0\uB77D\uCC98\uAC00 \uD544\uC694\uD574\uC694.\\n\uC778\uC99D\uC740 \uCC98\uC74C \uD55C \uBC88\uB9CC \uBC1B\uACE0 \uC788\uC5B4\uC694.\",\n      primaryButtonText: \"\uBCF8\uC778\uC778\uC99D \uD558\uAE30\",\n      secondaryButtonText: \"\uB2E4\uC74C\uC5D0 \uD558\uAE30\",\n      onPrimaryButtonClick: openIdentityVerificationPopup,\n      onVerified: handleVerified,\n      onFail\n    };\n    if (isMobileDevice) {\n      showIdentityVerificationBottomSheet({\n        ...commonParams,\n        onPrimaryButtonClick: () => {\n          trackClickComponentEvent(\"confirm-identity-verification\");\n          openIdentityVerificationPopup();\n        },\n        onSecondaryButtonClick: () => {\n          trackClickComponentEvent(\"cancel-identity-verification\");\n          hide();\n        }\n      });\n      return;\n    }\n    showIdentityVerificationDialog({\n      ...commonParams,\n      onPrimaryButtonClick: openIdentityVerificationPopup,\n      onSecondaryButtonClick: hideIdentityVerificationDialog,\n      onClose: hideIdentityVerificationDialog\n    });\n  };\n  const hide = () => {\n    if (isMobileDevice) {\n      hideIdentityVerificationBottomSheet();\n      return;\n    }\n    hideIdentityVerificationDialog();\n  };\n  return {\n    show,\n    hide\n  };\n};\nconst createIdentityVerificationSuccessHandler = (params) => async (identityVerificationToken) => {\n  var _a, _b;\n  try {\n    const {\n      data,\n      result,\n      errorCode,\n      message\n    } = await userApi.postIdentifyInfo({\n      identityVerificationToken,\n      type: \"UNKNOWN_CI_VERIFICATION\"\n    });\n    if (result === \"SUCCESS\") {\n      setAppUserInfo(data);\n      (_a = params.onSuccess) == null ? void 0 : _a.call(params);\n      return;\n    }\n    if (errorCode === \"AGE_RESTRICTION\") {\n      throw new Error(\"\uAC1C\uC778\uC815\uBCF4 \uBCF4\uD638\uB97C \uC704\uD574 \uB9CC 14\uC138 \uBBF8\uB9CC \uC544\uB3D9\uC740 \uC11C\uBE44\uC2A4 \uC774\uC6A9\uC774 \uBD88\uAC00\uB2A5\uD569\uB2C8\uB2E4\");\n    }\n    if (errorCode === \"INVALID_USER_PERSONAL_AUTH_INFO\") {\n      throw new Error(`\uAC00\uC785 \uBA85\uC758(${params.name})\uC640 \uB3D9\uC77C\uD55C \uBA85\uC758\uB85C \uBCF8\uC778 \uC778\uC99D\uC744 \uD558\uC154\uC57C \uD569\uB2C8\uB2E4.\n\uB3D9\uC77C \uBA85\uC758\uC784\uC5D0\uB3C4 \uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uB2E4\uBA74, customer@29cm.co.kr \uB610\uB294 1660-2929\uC73C\uB85C \uBB38\uC758\uD574 \uC8FC\uC138\uC694.`);\n    }\n    throw Error(message ?? \"\uC0AC\uC6A9\uC790 \uC815\uBCF4 \uC5C5\uB370\uC774\uD2B8 \uC911 \uC54C \uC218 \uC5C6\uB294 \uC5D0\uB7EC\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.\");\n  } catch (error) {\n    (_b = params.onFail) == null ? void 0 : _b.call(params, error);\n  }\n};\nconst setAppUserInfo = (data) => {\n  postMessage(\"amplitudeBypassUserProperty\", {\n    key: \"has_ci\",\n    value: \"true\"\n  });\n  postMessage(\"setUserGender\", {\n    gender: data.gender\n  });\n  postMessage(\"setUserBirthDate\", {\n    birthDate: data.birthDate\n  });\n};\nexport {\n  useIdentityVerificationModal\n};\n", "import { useAnalytics } from \"../../../../hooks/analytics/useAnalytics.js\";\nimport \"../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../config/index.js\";\nimport \"react\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.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/jsx-runtime\";\nimport \"react-dom\";\nimport \"../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport { isTabView } from \"../../../../utils/custom-tab/isTabView.js\";\nimport { useIsMobileDevice } from \"../../../../hooks/useIsMobileDevice.js\";\nimport \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport \"framer\";\nimport { useTrackSnowplowEvent } from \"../../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nconst useTrackRaffleActionEvent = () => {\n  const {\n    trackAmplitude\n  } = useAnalytics();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const isMobile = useIsMobileDevice();\n  const createAmplitudeAgreeParams = () => ({\n    ui_type: \"full_page\",\n    source: \"raffle\",\n    curr_screen: isTabView() ? \"home_main\" : \"content\"\n  });\n  const trackViewAdInfoAgree = () => {\n    const eventName = \"view_ad_info_agree\";\n    trackSnowplowEvent(eventName, {\n      button_type: isMobile ? \"bottomsheet\" : \"dialog\"\n    });\n    trackAmplitude(eventName, createAmplitudeAgreeParams());\n  };\n  const trackClickAdInfoAgree = () => {\n    const eventName = \"click_ad_info_agree\";\n    trackSnowplowEvent(eventName, {\n      button_type: isMobile ? \"bottomsheet\" : \"dialog\"\n    });\n    trackAmplitude(eventName, createAmplitudeAgreeParams());\n  };\n  const trackViewRaffleInfoAgree = () => {\n    trackAmplitude(\"view_raffle_info_agree\", createAmplitudeAgreeParams());\n  };\n  const trackClickRaffleInfoAgree = () => {\n    trackAmplitude(\"click_raffle_info_agree\", createAmplitudeAgreeParams());\n  };\n  const trackClickCompeteButton = (raffleId) => {\n    trackAmplitude(\"click_button\", {\n      button_type: \"raffle\",\n      button_type_detail: raffleId\n    });\n  };\n  const trackClickRaffleButton = ({\n    buttonName,\n    componentId,\n    raffleId\n  }) => {\n    trackSnowplowEvent(\"click_button\", {\n      // TODO(\uD55C\uC9C0\uC6D0): section_name, position, layout_position \uD504\uB85C\uD37C\uD2F0\uC5D0 \uD560\uB2F9\uD55C \uC57D\uC18D\uB41C \uC784\uC758 \uAC12 \uC218\uC815\n      // NOTE:(\uAE40\uD64D\uB3D9) componentName\uC774 \uBE48 \uBB38\uC790\uC5F4\uC778 \uACBD\uC6B0 bad event\uAC00 \uBC1C\uC0DD\uD558\uC5EC \uC57D\uC18D\uB41C \uAC12\uC778 unknown_section\uC744 section_name, section_title \uAC12\uC73C\uB85C \uC801\uC7AC\uD569\uB2C8\uB2E4.\n      section_name: componentId || \"unknown_section\",\n      section_title: componentId || \"unknown_section\",\n      position: -1,\n      layout_position: -1,\n      button_id: `raffle_${raffleId}`,\n      button_name: buttonName\n    });\n  };\n  return {\n    trackViewAdInfoAgree,\n    trackClickAdInfoAgree,\n    trackViewRaffleInfoAgree,\n    trackClickRaffleInfoAgree,\n    trackClickCompeteButton,\n    trackClickRaffleButton\n  };\n};\nexport {\n  useTrackRaffleActionEvent\n};\n", "import { raffleApi } from \"../../../../apis/raffle/RaffleApiService.js\";\nimport { RaffleAgreementType, RaffleAgreementRequirement } from \"../../../../apis/raffle/RaffleApiService.types.js\";\nimport { isWebview } from \"../../../../utils/device.js\";\nimport \"react\";\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 \"../../../../config/index.js\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"framer\";\nimport \"../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport useSWRMutation from \"../../../../node_modules/swr/mutation/dist/index.js\";\nimport { GENERAL_ERROR } from \"../../../../constants/error.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 { useDialog } from \"../../../../hooks/useDialog.js\";\nimport \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport { subscriptionApi } from \"../../../../apis/subscription/SubscriptionApiService.js\";\nimport { useAgreementsModal } from \"../../../../hooks/useAgreementsModal.js\";\nimport { useRequestUserAgreementBottomSheet } from \"../../../../hooks/useRequestUserAgreementBottomSheet.js\";\nimport { useIdentityVerificationModal } from \"../../../../hooks/useIdentityVerificationModal.js\";\nimport { entries } from \"../../../../utils/entries.js\";\nimport { useTrackRaffleActionEvent } from \"./useTrackRaffleEvent.js\";\nimport { useTrackViewComponentEvent } from \"../../../../hooks/events/useTrackViewComponentEvent.js\";\nconst useCreateRaffleAction = ({\n  raffleGroupId,\n  raffleId,\n  actionType,\n  ...rest\n}) => {\n  const dialog = useDialog();\n  const {\n    show: showIdentityVerificationModal,\n    hide: hideIdentityVerificationModal\n  } = useIdentityVerificationModal();\n  const {\n    show: showAgreementsModal,\n    hide: hideAgreementsModal\n  } = useAgreementsModal();\n  const {\n    requestUserAgreementBottomSheet\n  } = useRequestUserAgreementBottomSheet();\n  const {\n    trackViewComponentEvent\n  } = useTrackViewComponentEvent();\n  const withRaffleAction = (callback) => async (...args) => {\n    const handleCallback = () => {\n      callback(...args);\n    };\n    try {\n      if (actionType === \"notification\") {\n        const {\n          data\n        } = await raffleApi.getRaffleNotificationApplicable(raffleGroupId, raffleId);\n        handleNotification(data, handleCallback);\n      } else if (actionType === \"application\") {\n        const {\n          data\n        } = await raffleApi.getRaffleApplicable(raffleGroupId, raffleId);\n        handleApplication(data, handleCallback);\n      }\n    } catch (error) {\n      handleError(error);\n    }\n  };\n  const handleNotification = async (data, onSubscribe) => {\n    const subscribe = async () => {\n      try {\n        if (rest.eventKey) {\n          await subscriptionApi.subscribe([rest.eventKey]);\n        }\n        onSubscribe();\n      } catch (error) {\n        handleError(error);\n      }\n    };\n    const isAllAgreed = await checkAgreementsAndShowModal({\n      title: \"\uC774\uBCA4\uD2B8 \uC54C\uB9BC\uC744 \uBC1B\uC73C\uB824\uBA74 \uB3D9\uC758\uD574\uC8FC\uC138\uC694\",\n      description: \"\uC774\uBCA4\uD2B8\uC5D0 \uB300\uD55C \uC54C\uB9BC\uC744 \uBC1B\uC73C\uB824\uBA74 \uB9C8\uCF00\uD305 \uBAA9\uC801\uC758 \uAC1C\uC778\uC815\uBCF4 \uC218\uC9D1 \uBC0F \uC774\uC6A9 \uB3D9\uC758\uAC00 \uD544\uC694\uD574\uC694.\",\n      primaryButtonText: \"\uB3D9\uC758 \uD6C4 \uC54C\uB9BC\uBC1B\uAE30\",\n      agreementInformation: data.agreementInformation,\n      onSuccess: () => {\n        subscribe();\n      }\n    });\n    if (isAllAgreed) {\n      subscribe();\n    }\n  };\n  const {\n    trigger: raffleApply,\n    isMutating: isRaffleApplyMutating\n  } = useSWRMutation(\"raffle-apply\", (_, {\n    arg\n  }) => raffleApi.postRaffleApply(arg.raffleGroupId, arg.raffleId));\n  const handleApplication = async (data, onApply) => {\n    const apply = async () => {\n      if (isRaffleApplyMutating) {\n        return;\n      }\n      try {\n        await raffleApply({\n          raffleGroupId,\n          raffleId\n        });\n        onApply();\n      } catch (error) {\n        handleError(error);\n      }\n    };\n    const createSubscriptionAgreementsParams = () => {\n      var _a;\n      const hasRequiredAgreements = (_a = data.agreementInformation) == null ? void 0 : _a.some((agreement) => !agreement.isAgreed && agreement.agreementRequirement === RaffleAgreementRequirement.Required);\n      return {\n        title: data.popupTitle,\n        description: data.popupDescription,\n        primaryButtonText: hasRequiredAgreements ? \"\uB3D9\uC758 \uD6C4 \uC751\uBAA8\uD558\uAE30\" : \"\uC751\uBAA8\uD558\uAE30\",\n        agreementInformation: data.agreementInformation,\n        onSuccess: () => {\n          apply();\n        }\n      };\n    };\n    if (data.hasCi === false) {\n      showIdentityVerificationModal({\n        onSuccess: async () => {\n          hideIdentityVerificationModal();\n          const isAllAgreed2 = await checkAgreementsAndShowModal(createSubscriptionAgreementsParams());\n          if (isAllAgreed2) {\n            apply();\n          }\n        },\n        onFail: handleError\n      });\n      return;\n    }\n    const isAllAgreed = await checkAgreementsAndShowModal(createSubscriptionAgreementsParams());\n    if (isAllAgreed) {\n      apply();\n    }\n  };\n  const checkAgreementsAndShowModal = async ({\n    title,\n    description,\n    primaryButtonText,\n    agreementInformation,\n    onSuccess\n  }) => {\n    const isAllAgreed = agreementInformation.every((agreement) => agreement.isAgreed);\n    if (!isAllAgreed) {\n      handleAgreementsModal({\n        title,\n        description,\n        primaryButtonText,\n        agreements: reshapeRaffleAgreements(agreementInformation),\n        onSuccess\n      });\n      return false;\n    }\n    return true;\n  };\n  const RAFFLE_AGREEMENT_TYPE_LIST = [RaffleAgreementType.AdvertisingAgreement, RaffleAgreementType.PersonalInformation, RaffleAgreementType.PrivacyAgreement];\n  const {\n    trigger: raffleAgree,\n    isMutating: isRaffleAgreeMutating\n  } = useSWRMutation(\"raffle-apply\", (_, {\n    arg\n  }) => raffleApi.postRaffleGroupAgreementsAgree({\n    raffleGroupId: arg.raffleGroupId,\n    raffleId: arg.raffleId,\n    agreementTypes: arg.agreementTypes\n  }));\n  const {\n    trackViewAdInfoAgree,\n    trackClickAdInfoAgree,\n    trackViewRaffleInfoAgree,\n    trackClickRaffleInfoAgree\n  } = useTrackRaffleActionEvent();\n  const handleAgreementsModal = ({\n    agreements = [],\n    onSuccess,\n    ...params\n  }) => {\n    const displayAgreeAllCheckBox = agreements.length === RAFFLE_AGREEMENT_TYPE_LIST.length;\n    const isPersonalInformationAgreementOnly = agreements.length === 1 && agreements[0].type === RaffleAgreementType.PersonalInformation;\n    const trackViewAgree = isPersonalInformationAgreementOnly ? trackViewRaffleInfoAgree : trackViewAdInfoAgree;\n    const trackClickAgree = isPersonalInformationAgreementOnly ? trackClickRaffleInfoAgree : trackClickAdInfoAgree;\n    showAgreementsModal({\n      ...params,\n      agreements,\n      displayAgreeAllCheckBox,\n      onSuccess: async (state) => {\n        trackClickAgree();\n        const agreedAgreementTypes = getAgreedAgreementTypes(state);\n        if (agreedAgreementTypes.length > 0) {\n          if (isRaffleAgreeMutating) {\n            return;\n          }\n          await raffleAgree({\n            raffleGroupId,\n            raffleId,\n            agreementTypes: agreedAgreementTypes\n          });\n        }\n        hideAgreementsModal();\n        handleOSNotification(onSuccess);\n      },\n      onError: handleError,\n      onView: trackViewAgree\n    });\n  };\n  const handleOSNotification = (callback) => {\n    if (isWebview()) {\n      requestUserAgreementBottomSheet({\n        type: \"CONTENT_DETAIL_PAGE\",\n        onConfirm: callback,\n        onCancel: callback\n      });\n      return;\n    }\n    callback == null ? void 0 : callback();\n  };\n  const handleError = (error) => {\n    let errorMessage = GENERAL_ERROR;\n    if (error instanceof Error) {\n      errorMessage = error.message;\n    }\n    trackViewComponentEvent(\"raffle-alert-dialog\", {\n      message: errorMessage\n    });\n    dialog.show({\n      content: errorMessage\n    });\n  };\n  return withRaffleAction;\n};\nconst reshapeRaffleAgreements = (agreements) => agreements.filter((agreement) => !agreement.isAgreed).map((agreement) => ({\n  type: agreement.agreementType,\n  label: agreement.label,\n  isRequired: agreement.agreementRequirement === RaffleAgreementRequirement.Required,\n  detailLink: agreement.linkUrl\n}));\nconst getAgreedAgreementTypes = (state) => {\n  return entries(state).reduce((acc, [key, value]) => {\n    if (value) {\n      acc.push(key);\n    }\n    return acc;\n  }, []);\n};\nexport {\n  useCreateRaffleAction\n};\n", "import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { QRCodeSVG } from \"../../../../node_modules/qrcode.react/lib/esm/index.js\";\nimport { useIsMobileDevice } from \"../../../../hooks/useIsMobileDevice.js\";\nimport { TwoButtonDialogContent } from \"../TwoButtonDialogContent/TwoButtonDialogContent.js\";\nimport { typography } from \"../../../../styles/typography.js\";\nconst AppQRCodeDialog = ({\n  title,\n  description,\n  oneLink,\n  onConfirm,\n  onClose\n}) => {\n  const isMobile = useIsMobileDevice();\n  if (isMobile) {\n    return /* @__PURE__ */ jsxs(\"div\", { style: containerStyle, children: [\n      /* @__PURE__ */ jsx(\"h1\", { style: mobileTitleStyle, children: title }),\n      /* @__PURE__ */ jsx(\"p\", { style: mobileDescriptionStyle, children: description })\n    ] });\n  }\n  return /* @__PURE__ */ jsx(TwoButtonDialogContent, { title, description, content: /* @__PURE__ */ jsxs(\"div\", { style: appQRCodeContainerStyle, children: [\n    /* @__PURE__ */ jsx(\"div\", { style: appQRCodeWrapperStyle, children: /* @__PURE__ */ jsx(QRCodeSVG, { value: oneLink, size: 150, bgColor: \"#ffffff\", fgColor: \"#000000\", includeMargin: false }) }),\n    /* @__PURE__ */ jsxs(\"p\", { style: descriptionStyle, children: [\n      \"\uC571 \uC124\uCE58\uD558\uBA74 \uB354 \uC815\uD655\uD55C \uC18C\uC2DD\uC744 \uBC1B\uC744 \uC218 \uC788\uC5B4\uC694.\",\n      /* @__PURE__ */ jsx(\"br\", {}),\n      \"\uCE74\uBA54\uB77C \uC571\uC744 \uC5F4\uC5B4 QR \uCF54\uB4DC\uB97C \uBE44\uCDB0\uBCF4\uC138\uC694.\"\n    ] })\n  ] }), primaryButtonText: \"\uD655\uC778\", onPrimaryButtonClick: onConfirm, onClose });\n};\nconst containerStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  alignItems: \"center\",\n  gap: 8\n};\nconst mobileTitleStyle = {\n  /* title-s-bold */\n  ...typography(20, 700, 1.36)\n};\nconst mobileDescriptionStyle = {\n  /* text-xl */\n  ...typography(15, 400, 1.5),\n  wordBreak: \"keep-all\"\n};\nconst descriptionStyle = {\n  /* text-l-medium */\n  ...typography(14, 500, 1.4)\n};\nconst appQRCodeContainerStyle = {\n  display: \"flex\",\n  flexDirection: \"column\",\n  justifyContent: \"center\",\n  alignItems: \"center\",\n  gap: 12,\n  paddingTop: 36,\n  paddingBottom: 16,\n  minWidth: 420,\n  borderRadius: 8,\n  backgroundColor: \"#000000\",\n  color: \"#ffffff\"\n};\nconst appQRCodeWrapperStyle = {\n  padding: 4,\n  borderRadius: 8,\n  backgroundColor: \"#ffffff\"\n};\nexport {\n  AppQRCodeDialog\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { useCreateOneLink } from \"../../../../hooks/useCreateOneLink.js\";\nimport { useDialog } from \"../../../../hooks/useDialog.js\";\nimport { useIsMobileDevice } from \"../../../../hooks/useIsMobileDevice.js\";\nimport { getCurrentHref } from \"../../../../utils/getCurrentHref.js\";\nimport { AppQRCodeDialog } from \"./AppQRCodeDialog.js\";\nconst DIALOG_ID = \"app-qr-code-dialog-id\";\nconst useAppQRCodeDialog = ({\n  webviewNavOptions,\n  href\n} = {}) => {\n  const dialog = useDialog();\n  const isMobile = useIsMobileDevice();\n  const {\n    oneLink\n  } = useCreateOneLink(href ?? getCurrentHref({\n    removeQueryParams: true\n  }), webviewNavOptions);\n  const show = ({\n    title,\n    description,\n    onConfirm\n  }) => {\n    const handleConfirm = () => {\n      onConfirm == null ? void 0 : onConfirm();\n      hide();\n    };\n    dialog.show({\n      id: DIALOG_ID,\n      content: /* @__PURE__ */ jsx(AppQRCodeDialog, { title, description, oneLink, onConfirm: handleConfirm, onClose: hide }),\n      primaryButtonText: \"\uD655\uC778\",\n      onPrimaryButtonClick: onConfirm,\n      hideButtons: !isMobile\n    });\n  };\n  const hide = () => {\n    dialog.hide(DIALOG_ID, true);\n  };\n  return {\n    show,\n    hide\n  };\n};\nexport {\n  useAppQRCodeDialog\n};\n", "import { RaffleStatus } from \"../RaffleButton.types.js\";\nimport \"react\";\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 \"../../../../config/index.js\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.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 \"../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport \"../../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react/jsx-runtime\";\nimport \"react-dom\";\nimport \"../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport { useWithLogin } from \"../../../../hooks/useWithLogin.js\";\nimport { useCreateRaffleAction } from \"./useCreateRaffleAction.js\";\nimport { useAppQRCodeDialog } from \"../../../@shared/dialogs/AppQRCodeDialog/AppQRCodeDialog.hooks.js\";\nimport { useTrackRaffleActionEvent } from \"./useTrackRaffleEvent.js\";\nconst useRaffleActions = ({\n  raffleGroupId,\n  raffleId,\n  raffle,\n  status,\n  onSuccess\n}) => {\n  const withLogin = useWithLogin();\n  const withRaffleNotification = useCreateRaffleAction({\n    raffleGroupId,\n    raffleId,\n    actionType: \"notification\",\n    eventKey: (raffle == null ? void 0 : raffle.notificationKey) ?? void 0\n  });\n  const withRaffleApplication = useCreateRaffleAction({\n    raffleGroupId,\n    raffleId,\n    actionType: \"application\"\n  });\n  const {\n    show: showAppQRCodeDialog\n  } = useAppQRCodeDialog();\n  const {\n    trackClickCompeteButton,\n    trackClickRaffleButton\n  } = useTrackRaffleActionEvent();\n  const handleDialogConfirm = () => {\n    trackClickCompeteButton(raffleId);\n  };\n  const isPendingStatus = status === RaffleStatus.Pending;\n  const handleSuccess = () => {\n    onSuccess();\n    showAppQRCodeDialog({\n      title: getAppQRCodeDialogTitle(status),\n      description: getAppQRCodeDialogDescription(status),\n      onConfirm: handleDialogConfirm\n    });\n  };\n  const raffleHandler = isPendingStatus ? withRaffleNotification : withRaffleApplication;\n  const handleClick = ({\n    componentId,\n    buttonText\n  }) => () => {\n    if (status === RaffleStatus.Unknown || status === RaffleStatus.Finished) {\n      return;\n    }\n    trackClickRaffleButton({\n      buttonName: buttonText,\n      componentId,\n      raffleId\n    });\n    withLogin(raffleHandler(handleSuccess))();\n  };\n  return {\n    handleClick\n  };\n};\nconst getAppQRCodeDialogTitle = (status) => {\n  switch (status) {\n    case RaffleStatus.Pending:\n      return \"\uC774\uBCA4\uD2B8\uAC00 \uC2DC\uC791\uB418\uBA74 \uC54C\uB824\uB4DC\uB9B4\uAC8C\uC694\";\n    default:\n      return \"\uC774\uBCA4\uD2B8 \uCC38\uC5EC\uAC00 \uC644\uB8CC \uB418\uC5C8\uC5B4\uC694\";\n  }\n};\nconst getAppQRCodeDialogDescription = (status) => {\n  switch (status) {\n    case RaffleStatus.Pending:\n      return \"\uD68C\uC6D0\uC815\uBCF4\uC5D0 \uC785\uB825\uB41C \uC815\uBCF4\uB85C \uC548\uB0B4\uB4DC\uB824\uC694.\";\n    default:\n      return \"\uB2F9\uCCA8 \uC2DC \uD68C\uC6D0 \uC815\uBCF4\uC5D0 \uC785\uB825\uB41C \uC5F0\uB77D\uCC98\uB85C \uC548\uB0B4\uB4DC\uB824\uC694.\";\n  }\n};\nexport {\n  useRaffleActions\n};\n", "import { RaffleStatus } from \"./RaffleButton.types.js\";\nconst getCurrentRaffle = (raffles, raffleId) => raffles.find((raffle) => `${raffle.raffleId}` === raffleId);\nconst reshapeRaffleButtonProps = ({\n  props,\n  raffle,\n  status,\n  displayInformation\n}) => {\n  const buttonText = getRaffleButtonText({\n    raffle,\n    status,\n    displayInformation\n  });\n  const disabled = isRaffleButtonDisabled({\n    raffle,\n    status,\n    displayInformation\n  });\n  const iconProps = getRaffleButtonIconProps({\n    raffle,\n    status,\n    disabled\n  });\n  if (!disabled) {\n    return {\n      buttonText,\n      disabled,\n      ...props,\n      ...iconProps\n    };\n  }\n  return {\n    buttonText,\n    disabled,\n    ...props,\n    ...iconProps,\n    variant: \"disabled\"\n  };\n};\nconst fallbackRaffleButtonText = \"\u00A0\";\nconst getRaffleButtonText = ({\n  status,\n  raffle,\n  displayInformation\n}) => {\n  if (!raffle) {\n    return fallbackRaffleButtonText;\n  }\n  switch (true) {\n    case (status === RaffleStatus.Pending && (displayInformation == null ? void 0 : displayInformation.isNotificationApplied)):\n      return \"\uC0AC\uC804 \uC54C\uB9BC \uC2E0\uCCAD \uC644\uB8CC\";\n    case (status === RaffleStatus.InProgress && (displayInformation == null ? void 0 : displayInformation.isRaffleApplied)):\n      return \"\uC774\uBCA4\uD2B8 \uCC38\uC5EC \uC644\uB8CC\";\n    default:\n      return getRaffleButtonTextByStatus(raffle, status);\n  }\n};\nconst getRaffleButtonTextByStatus = (raffle, status) => {\n  switch (status) {\n    case RaffleStatus.Pending:\n      return raffle.pendingButtonText;\n    case RaffleStatus.InProgress:\n      return raffle.inProgressButtonText;\n    case RaffleStatus.Finished:\n      return raffle.finishedButtonText;\n    default:\n      return fallbackRaffleButtonText;\n  }\n};\nconst isRaffleButtonDisabled = ({\n  status,\n  raffle,\n  displayInformation\n}) => {\n  switch (true) {\n    case status === RaffleStatus.Finished:\n    case (status === RaffleStatus.Pending && (raffle == null ? void 0 : raffle.isNotificationAvailable) === false):\n    case (status === RaffleStatus.Pending && (displayInformation == null ? void 0 : displayInformation.isNotificationApplied) === true):\n    case (status === RaffleStatus.InProgress && (displayInformation == null ? void 0 : displayInformation.isRaffleApplied) === true):\n      return true;\n    default:\n      return false;\n  }\n};\nconst getRaffleButtonIconProps = ({\n  status,\n  raffle,\n  disabled\n}) => {\n  switch (true) {\n    case (status === RaffleStatus.Pending && (raffle == null ? void 0 : raffle.isNotificationAvailable) === false):\n      return {\n        prefixIcon: \"lock\"\n      };\n    case (status === RaffleStatus.Pending && !disabled):\n      return {\n        prefixIcon: \"bell\"\n      };\n    default:\n      return {};\n  }\n};\nexport {\n  getCurrentRaffle,\n  getRaffleButtonText,\n  isRaffleButtonDisabled,\n  reshapeRaffleButtonProps\n};\n", "import { ControlType } from \"framer\";\nimport { ButtonVariant, ButtonSize, ButtonTheme } from \"../../components/@shared/Button/Button.types.js\";\nconst BUTTON_VARIANT_CONTROLS = {\n  variant: {\n    type: ControlType.Enum,\n    title: \"\uBCC0\uD615\",\n    options: [ButtonVariant.PRIMARY, ButtonVariant.SECONDARY, ButtonVariant.TERTIARY, ButtonVariant.CUSTOM, ButtonVariant.DISABLED],\n    optionTitles: [\"primary\", \"secondary\", \"tertiary\", \"custom\", \"disabled\"]\n  },\n  backgroundColor: {\n    hidden: ({\n      variant\n    }) => variant !== ButtonVariant.CUSTOM,\n    type: ControlType.Color,\n    title: \"\uBC30\uACBD \uC0C9\uC0C1\",\n    optional: true\n  },\n  color: {\n    hidden: ({\n      variant\n    }) => variant !== ButtonVariant.CUSTOM,\n    type: ControlType.Color,\n    title: \"\uD14D\uC2A4\uD2B8 \uC0C9\uC0C1\",\n    optional: true\n  }\n};\nconst BUTTON_SIZE_CONTROLS = {\n  size: {\n    type: ControlType.Enum,\n    title: \"\uD06C\uAE30\",\n    options: [ButtonSize.LARGE, ButtonSize.MEDIUM, ButtonSize.SMALL, ButtonSize.X_SMALL],\n    optionTitles: [\"large\", \"medium\", \"small\", \"xSmall\"],\n    defaultValue: ButtonSize.MEDIUM\n  }\n};\nconst BUTTON_FILL_CONTROLS = {\n  fill: {\n    type: ControlType.Boolean,\n    title: \"\uBC18\uC751\uD615 \uB108\uBE44\",\n    defaultValue: false\n  }\n};\nconst BUTTON_THEME_CONTROLS = {\n  theme: {\n    type: ControlType.Enum,\n    title: \"\uD14C\uB9C8\",\n    options: [ButtonTheme.LIGHT, ButtonTheme.DARK],\n    optionTitles: [\"light\", \"dark\"],\n    defaultValue: ButtonTheme.LIGHT,\n    displaySegmentedControl: true\n  }\n};\nexport {\n  BUTTON_FILL_CONTROLS,\n  BUTTON_SIZE_CONTROLS,\n  BUTTON_THEME_CONTROLS,\n  BUTTON_VARIANT_CONTROLS\n};\n", "import { jsx } from \"react/jsx-runtime\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport { useMemo } 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 \"../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../config/index.js\";\nimport \"../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../node_modules/js-cookie/dist/js.cookie.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 \"../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport { isContentOrigin } from \"../../../utils/location.js\";\nimport \"../../../utils/redirectLogin.js\";\nimport \"../../../utils/event-properties/source.js\";\nimport { SWRErrorBoundary } from \"../../@shared/SWRErrorBoundary/SWRErrorBoundary.js\";\nimport { Button as Default } from \"../../@shared/Button/Button.js\";\nimport \"../curations/IntersectionProvider/IntersectionProvider.js\";\nimport { useIntersectionContext } from \"../curations/IntersectionProvider/IntersectionProvider.hooks.js\";\nimport { useFetchRaffleData } from \"./hooks/useFetchRaffleData.js\";\nimport { useRaffleStatus } from \"./hooks/useRaffleStatus.js\";\nimport { useRaffleActions } from \"./hooks/useRaffleActions.js\";\nimport { getCurrentRaffle, reshapeRaffleButtonProps } from \"./RaffleButton.utils.js\";\nimport { RaffleStatus } from \"./RaffleButton.types.js\";\nimport { BUTTON_VARIANT_CONTROLS, BUTTON_THEME_CONTROLS, BUTTON_SIZE_CONTROLS, BUTTON_FILL_CONTROLS } from \"../../../libs/property-controls/button.js\";\nimport { SectionLayout } from \"../curations/SectionLayout/SectionLayout.js\";\nimport { useComponentId } from \"../curations/EventTrackingProvider/EventTrackingProvider.hooks.js\";\nimport \"../curations/EventTrackingProvider/EventTrackingProvider.js\";\nimport { COMPONENT_ID_PROPS } from \"../../../libs/property-controls/component-id.js\";\nimport { EventTrigger } from \"../../@shared/EventTrigger/index.js\";\nimport { useTrackSnowplowEvent } from \"../../../hooks/snowplow/useTrackSnowplowEvent.js\";\nconst RaffleButtonInner = ({\n  raffleGroupId,\n  raffleId,\n  button\n}) => {\n  const {\n    isInView\n  } = useIntersectionContext();\n  const {\n    logged\n  } = useCurrentUser();\n  const trackSnowplowEvent = useTrackSnowplowEvent();\n  const {\n    raffleGroup,\n    displayInformation,\n    isPending,\n    revalidateDisplayInformation\n  } = useFetchRaffleData({\n    raffleGroupId,\n    raffleId,\n    enabled: isInView,\n    shouldFetchDisplayInformation: logged && isContentOrigin()\n  });\n  const currentRaffle = useMemo(() => getCurrentRaffle((raffleGroup == null ? void 0 : raffleGroup.raffleList) ?? [], raffleId), [raffleGroup, raffleId]);\n  const status = useRaffleStatus(currentRaffle);\n  const {\n    buttonText,\n    disabled,\n    ...buttonProps\n  } = reshapeRaffleButtonProps({\n    status,\n    props: button,\n    raffle: currentRaffle,\n    displayInformation\n  });\n  const componentId = useComponentId();\n  const handleImpression = () => {\n    trackSnowplowEvent(\"impression_content\", {\n      section_name: componentId || \"unknown_section\",\n      section_title: componentId || \"unknown_section\",\n      position: -1,\n      layout_position: -1,\n      layout_id: `raffle_${raffleId}`\n    });\n  };\n  const {\n    handleClick\n  } = useRaffleActions({\n    raffleGroupId,\n    raffleId,\n    raffle: currentRaffle,\n    status,\n    onSuccess: () => {\n      revalidateDisplayInformation();\n    }\n  });\n  return /* @__PURE__ */ jsx(EventTrigger.Root, { types: [\"impression\"], onImpression: handleImpression, children: /* @__PURE__ */ jsx(EventTrigger.Target, { onClick: handleClick({\n    componentId,\n    buttonText\n  }), children: /* @__PURE__ */ jsx(Default, { ...buttonProps, pending: isPending || status === RaffleStatus.Unknown, disabled, children: buttonText }) }) });\n};\nconst RedoButton = ({\n  button,\n  onClick\n}) => {\n  return /* @__PURE__ */ jsx(Default, { ...button, onClick, prefixIcon: \"redo\", children: \"\uC0C8\uB85C\uACE0\uCE68\" });\n};\nconst RaffleButton = ({\n  componentId,\n  ...props\n}) => {\n  return /* @__PURE__ */ jsx(SectionLayout, { componentId, intersectionOptions: {\n    margin: \"700px 200px\"\n  }, children: /* @__PURE__ */ jsx(SWRErrorBoundary, { fallback: (retry) => /* @__PURE__ */ jsx(RedoButton, { button: props.button, onClick: retry }), children: /* @__PURE__ */ jsx(RaffleButtonInner, { ...props }) }) });\n};\naddPropertyControls(RaffleButton, {\n  raffleGroupId: {\n    type: ControlType.String,\n    title: \"\uB798\uD50C \uADF8\uB8F9 ID\",\n    placeholder: \"\uB798\uD50C \uADF8\uB8F9 ID\"\n  },\n  raffleId: {\n    type: ControlType.String,\n    title: \"\uB798\uD50C ID\",\n    placeholder: \"\uB798\uD50C ID\"\n  },\n  ...COMPONENT_ID_PROPS,\n  button: {\n    type: ControlType.Object,\n    title: \"\uBC84\uD2BC \uC635\uC158\",\n    controls: {\n      ...BUTTON_VARIANT_CONTROLS,\n      ...BUTTON_THEME_CONTROLS,\n      ...BUTTON_SIZE_CONTROLS,\n      ...BUTTON_FILL_CONTROLS\n    }\n  }\n});\nexport {\n  RaffleButton\n};\n", "/** local */// import { RaffleButton } from \"https://localhost:4173/components/systems/RaffleButton/RaffleButton.js\"\n/** dev */// import { RaffleButton } from \"https://asset.29cm.co.kr/contents/framer/dev/components/systems/RaffleButton/RaffleButton.js\"\n/** production */import{RaffleButton}from\"https://asset.29cm.co.kr/contents/framer/components/systems/RaffleButton/RaffleButton.js\";/**\n * @framerDisableUnlink\n */export default RaffleButton;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RaffleButton\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RaffleButton.map", "const getResponsiveWidth = (gap, column = 1, inset = 0) => {\n  return `calc((100% - ${gap * (column - 1) + inset}px) / ${column})`;\n};\nexport {\n  getResponsiveWidth\n};\n"],
  "mappings": "89BAAkU,IAAMA,GAAa,CAACC,EAAMC,IAAYA,EAAU,aAAgBD,EAAM,MAASA,EAAM,kBAAkB,EACnaE,GAAU,IAAIC,IAAeC,GAAO,CAACD,EAAK,QAAQE,GAAK,CAAI,OAAOA,GAAM,WAAYA,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5E,OAAQ,aACV,EAAG,SAA0BK,EAAIS,GAAkB,CAAE,SAAWC,GAA0BV,EAAII,GAAY,CAAE,OAAQG,EAAM,OAAQ,QAASG,CAAM,CAAC,EAAG,SAA0BV,EAAI9B,GAAmB,CAAE,GAAGqC,CAAM,CAAC,CAAE,CAAC,CAAE,CAAC,EAE1NI,GAAoBL,GAAc,CAChC,cAAe,CACb,KAAMM,EAAY,OAClB,MAAO,+BACP,YAAa,8BACf,EACA,SAAU,CACR,KAAMA,EAAY,OAClB,MAAO,kBACP,YAAa,iBACf,EACA,GAAGC,GACH,OAAQ,CACN,KAAMD,EAAY,OAClB,MAAO,4BACP,SAAU,CACR,GAAGE,GACH,GAAGC,GACH,GAAGC,GACH,GAAGC,EACL,CACF,CACF,CAAC,ECvIE,IAAOC,GAAQC,GCJlB,IAAMC,GAAqB,CAACC,EAAKC,EAAS,EAAGC,EAAQ,IAC5C,gBAAgBF,GAAOC,EAAS,GAAKC,CAAK,SAASD,CAAM",
  "names": ["getComponent", "props", "Component", "mergeRefs", "refs", "value", "ref", "withViewEventTracker", "Y", "component", "containerRef", "pe", "isInView", "useInView", "trackViewComponent", "useTrackViewComponent", "ue", "p", "withViewClickEventTracker", "Component", "Y", "props", "ref", "component", "getComponent", "containerRef", "pe", "isInView", "useInView", "trackViewComponent", "useTrackViewComponent", "trackClickComponent", "useTrackClickComponent", "ue", "handleClick", "e", "p", "mergeRefs", "RaffleAgreementType", "RaffleAgreementType2", "RaffleAgreementRequirement", "RaffleAgreementRequirement2", "reservedErrorMessages", "throwFailError", "response", "isFailError", "isReservedErrorMessage", "GENERAL_ERROR", "RaffleApiService", "APIService", "env", "raffleGroupId", "raffleId", "agreementTypes", "agreements", "agreementType", "value", "RaffleAgreementType", "raffleApi", "raffleGroupFetcherKey", "useLazyFetchRaffleGroup", "raffleGroupId", "enabled", "data", "isLoading", "fetch", "useLazySWR", "raffleApi", "isPending", "raffleDisplayInformationFetcherKey", "useLazyFetchRaffleDisplayInformation", "raffleGroupId", "raffleId", "enabled", "data", "isLoading", "fetch", "mutate", "useLazySWR", "raffleApi", "isPending", "useFetchRaffleData", "raffleGroupId", "raffleId", "enabled", "shouldFetchDisplayInformation", "raffleGroup", "fetchRaffleGroup", "isRaffleGroupPending", "useLazyFetchRaffleGroup", "displayInformation", "fetchRaffleDisplayInformation", "isRaffleDisplayInformationPending", "revalidateDisplayInformation", "useLazyFetchRaffleDisplayInformation", "ue", "RaffleStatus", "RaffleStatus2", "MS_IN_SECOND", "getRaffleStatus", "remaining", "duration", "RaffleStatus", "getRaffleInterval", "status", "useRaffleStatus", "raffle", "setStatus", "ye", "ue", "se", "differenceInMilliseconds", "parseISO", "useInterval", "incoming", "createKRTimeZoneDate", "nextStatus", "TwoButtonBottomSheetContent", "title", "description", "primaryButtonText", "secondaryButtonText", "primaryButtonDisabled", "secondaryButtonDisabled", "content", "onPrimaryButtonClick", "onSecondaryButtonClick", "containerStyle", "baseContainerStyle", "u", "textWrapperStyle", "p", "titleStyle", "descriptionStyle", "buttonWrapperStyle", "Default", "typography", "AgreementCheckList", "agreements", "displayAgreeAllCheckBox", "isMobile", "useIsMobileDevice", "isAllAgreementsChecked", "agreement", "handleAgreeAllChange", "checked", "_a", "agreeAllSectionStyle", "baseAgreeAllSectionStyle", "agreeAllLabelStyle", "typography", "listStyle", "baseListStyle", "u", "l", "p", "Checkbox", "rowStyle", "createIsomorphicLink", "detailLinkStyle", "Default", "useAgreementCheckListControl", "agreements", "agreementsState", "setAgreementsState", "ye", "reshapedAgreements", "agreement", "checked", "prev", "isAllRequiredAgreementsChecked", "AgreementsBottomSheet", "agreements", "displayAgreeAllCheckBox", "onAgree", "onView", "bottomSheetContentParams", "ue", "agreementList", "isAllRequiredAgreementsChecked", "agreementsState", "useAgreementCheckListControl", "p", "TwoButtonBottomSheetContent", "AgreementCheckList", "useAgreementsBottomSheet", "bottomSheet", "useBottomSheet", "props", "p", "AgreementsBottomSheet", "TwoButtonDialogContent", "title", "description", "primaryButtonText", "secondaryButtonText", "primaryButtonDisabled", "secondaryButtonDisabled", "content", "onPrimaryButtonClick", "onSecondaryButtonClick", "onClose", "u", "containerStyle", "p", "closeButtonStyle", "Icon", "textWrapperStyle", "titleStyle", "descriptionStyle", "buttonWrapperStyle", "Default", "typography", "AgreementsDialog", "agreements", "onAgree", "onView", "displayAgreeAllCheckBox", "dialogContentParams", "ue", "agreementList", "isAllRequiredAgreementsChecked", "agreementsState", "useAgreementCheckListControl", "p", "TwoButtonDialogContent", "AgreementCheckList", "DIALOG_ID", "useAgreementsDialog", "dialog", "useDialog", "params", "p", "AgreementsDialog", "useAgreementsModal", "showAgreementsBottomSheet", "hideAgreementsBottomSheet", "useAgreementsBottomSheet", "showAgreementsDialog", "hideAgreementsDialog", "useAgreementsDialog", "isMobileDevice", "useIsMobileDevice", "params", "handleAgree", "state", "_a", "_b", "error", "commonProps", "useSubscribeIdentityVerification", "onSuccess", "onFail", "dialog", "useDialog", "callback", "identityVerificationToken", "useReceiveMessageInApp", "useReceiveMessageInWeb", "IDENTITY_VERIFICATION_IN_APP_KEY", "IDENTITY_VERIFICATION_IN_WEB_KEY", "ue", "assignIdentityVerificationCallback", "clearIdentityVerificationCallback", "handleCallback", "e", "env", "window", "isServer", "IdentityVerificationBottomSheet", "onVerified", "onFail", "bottomSheetContentParams", "trackAmplitude", "useAnalytics", "ue", "useSubscribeIdentityVerification", "token", "p", "TwoButtonBottomSheetContent", "useIdentityVerificationBottomSheet", "bottomSheet", "useBottomSheet", "props", "p", "IdentityVerificationBottomSheet", "IdentityVerificationDialog", "onVerified", "onFail", "dialogContentParams", "useSubscribeIdentityVerification", "p", "TwoButtonDialogContent", "DIALOG_ID", "useIdentityVerificationDialog", "dialog", "useDialog", "params", "p", "IdentityVerificationDialog", "POPUP_OPTIONS", "openPopup", "url", "popupName", "_a", "isWebview", "sendAppSchemeMessage", "window", "openIdentityVerificationPopup", "identityVerificationFormUrl", "env", "openPopup", "useIdentityVerificationModal", "showIdentityVerificationBottomSheet", "hideIdentityVerificationBottomSheet", "useIdentityVerificationBottomSheet", "showIdentityVerificationDialog", "hideIdentityVerificationDialog", "useIdentityVerificationDialog", "isMobileDevice", "useIsMobileDevice", "name", "useCurrentUser", "trackClickComponentEvent", "useTrackClickComponentEvent", "show", "onSuccess", "onFail", "handleVerified", "createIdentityVerificationSuccessHandler", "commonParams", "openIdentityVerificationPopup", "hide", "params", "identityVerificationToken", "_a", "_b", "data", "result", "errorCode", "message", "userApi", "setAppUserInfo", "error", "postMessage", "useTrackRaffleActionEvent", "trackAmplitude", "useAnalytics", "trackSnowplowEvent", "useTrackSnowplowEvent", "isMobile", "useIsMobileDevice", "createAmplitudeAgreeParams", "isTabView", "eventName", "raffleId", "buttonName", "componentId", "useCreateRaffleAction", "raffleGroupId", "raffleId", "actionType", "rest", "dialog", "useDialog", "showIdentityVerificationModal", "hideIdentityVerificationModal", "useIdentityVerificationModal", "showAgreementsModal", "hideAgreementsModal", "useAgreementsModal", "requestUserAgreementBottomSheet", "useRequestUserAgreementBottomSheet", "trackViewComponentEvent", "useTrackViewComponentEvent", "withRaffleAction", "callback", "args", "handleCallback", "data", "raffleApi", "handleNotification", "handleApplication", "error", "handleError", "onSubscribe", "subscribe", "subscriptionApi", "checkAgreementsAndShowModal", "raffleApply", "isRaffleApplyMutating", "useSWRMutation", "_", "arg", "onApply", "apply", "createSubscriptionAgreementsParams", "_a", "hasRequiredAgreements", "agreement", "RaffleAgreementRequirement", "title", "description", "primaryButtonText", "agreementInformation", "onSuccess", "handleAgreementsModal", "reshapeRaffleAgreements", "RAFFLE_AGREEMENT_TYPE_LIST", "RaffleAgreementType", "raffleAgree", "isRaffleAgreeMutating", "trackViewAdInfoAgree", "trackClickAdInfoAgree", "trackViewRaffleInfoAgree", "trackClickRaffleInfoAgree", "useTrackRaffleActionEvent", "agreements", "params", "displayAgreeAllCheckBox", "isPersonalInformationAgreementOnly", "trackViewAgree", "trackClickAgree", "state", "agreedAgreementTypes", "getAgreedAgreementTypes", "handleOSNotification", "isWebview", "errorMessage", "GENERAL_ERROR", "entries", "acc", "key", "value", "AppQRCodeDialog", "title", "description", "oneLink", "onConfirm", "onClose", "useIsMobileDevice", "u", "containerStyle", "p", "mobileTitleStyle", "mobileDescriptionStyle", "TwoButtonDialogContent", "appQRCodeContainerStyle", "appQRCodeWrapperStyle", "QRCodeSVG", "descriptionStyle", "typography", "DIALOG_ID", "useAppQRCodeDialog", "webviewNavOptions", "href", "dialog", "useDialog", "isMobile", "useIsMobileDevice", "oneLink", "useCreateOneLink", "getCurrentHref", "show", "title", "description", "onConfirm", "handleConfirm", "hide", "p", "AppQRCodeDialog", "useRaffleActions", "raffleGroupId", "raffleId", "raffle", "status", "onSuccess", "withLogin", "useWithLogin", "withRaffleNotification", "useCreateRaffleAction", "withRaffleApplication", "showAppQRCodeDialog", "useAppQRCodeDialog", "trackClickCompeteButton", "trackClickRaffleButton", "useTrackRaffleActionEvent", "handleDialogConfirm", "isPendingStatus", "RaffleStatus", "handleSuccess", "getAppQRCodeDialogTitle", "getAppQRCodeDialogDescription", "raffleHandler", "componentId", "buttonText", "getCurrentRaffle", "raffles", "raffleId", "raffle", "reshapeRaffleButtonProps", "props", "status", "displayInformation", "buttonText", "getRaffleButtonText", "disabled", "isRaffleButtonDisabled", "iconProps", "getRaffleButtonIconProps", "fallbackRaffleButtonText", "RaffleStatus", "getRaffleButtonTextByStatus", "BUTTON_VARIANT_CONTROLS", "ControlType", "ButtonVariant", "variant", "BUTTON_SIZE_CONTROLS", "ButtonSize", "BUTTON_FILL_CONTROLS", "BUTTON_THEME_CONTROLS", "ButtonTheme", "RaffleButtonInner", "raffleGroupId", "raffleId", "button", "isInView", "useIntersectionContext", "logged", "useCurrentUser", "trackSnowplowEvent", "useTrackSnowplowEvent", "raffleGroup", "displayInformation", "isPending", "revalidateDisplayInformation", "useFetchRaffleData", "isContentOrigin", "currentRaffle", "se", "getCurrentRaffle", "status", "useRaffleStatus", "buttonText", "disabled", "buttonProps", "reshapeRaffleButtonProps", "componentId", "useComponentId", "handleImpression", "handleClick", "useRaffleActions", "p", "EventTrigger", "Default", "RaffleStatus", "RedoButton", "onClick", "RaffleButton", "props", "SectionLayout", "SWRErrorBoundary", "retry", "addPropertyControls", "ControlType", "COMPONENT_ID_PROPS", "BUTTON_VARIANT_CONTROLS", "BUTTON_THEME_CONTROLS", "BUTTON_SIZE_CONTROLS", "BUTTON_FILL_CONTROLS", "RaffleButton_default", "RaffleButton", "getResponsiveWidth", "gap", "column", "inset"]
}
