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OAAA,yGCAAD,EAAAC,OAAA,oGCAAD,EAAAC,OAAA,oGCAAD,EAAAC,OAAA,kGCAAD,EAAAC,OAAA,iGCAAD,EAAAC,OAAA,qGCAAD,EAAAC,OAAA,uGCAAD,EAAAC,OAAA,oFCAAD,EAAAC,OAAA,wFCAAD,EAAAC,OAAA,0FCAAD,EAAAC,OAAA,8FCAAD,EAAAC,OAAA,4FCAAD,EAAAC,OAAA","sources":["webpack://_N_E/./node_modules/date-fns/esm/subDays/index.js","webpack://_N_E/./node_modules/date-fns/esm/subMonths/index.js","webpack://_N_E/./node_modules/date-fns/esm/sub/index.js","webpack://_N_E/","webpack://_N_E/./src/components/fragments/apollo/loader/skeleton/Skeleton.tsx","webpack://_N_E/./src/components/fragments/card/base-card/BaseCard.tsx","webpack://_N_E/./src/components/fragments/card/base-card/index.ts","webpack://_N_E/./src/components/essentials/menu/context.tsx","webpack://_N_E/./src/components/essentials/menu/Menu.tsx","webpack://_N_E/./src/components/essentials/menu/MenuButton.tsx","webpack://_N_E/./src/components/essentials/menu/MenuList.tsx","webpack://_N_E/./src/components/essentials/menu/MenuItemOption.tsx","webpack://_N_E/./src/components/essentials/menu/MenuOptionGroup.tsx","webpack://_N_E/./src/components/essentials/menu/index.ts","webpack://_N_E/./src/components/fragments/contract/contract-menu/module.ts","webpack://_N_E/./src/components/fragments/card/owner-card/OwnerCard.tsx","webpack://_N_E/./src/components/fragments/contract/contract-menu/const.ts","webpack://_N_E/./src/components/fragments/contract/contract-menu/ContractMenu.tsx","webpack://_N_E/./src/components/fragments/contract/contract-menu/index.ts","webpack://_N_E/./src/components/fragments/plan/plan-card-container/__gql__/plan-card-container-fragment.gen.ts","webpack://_N_E/./src/configs/uuids/family-customer-status/familyCustomerStatus.ts","webpack://_N_E/./src/configs/uuids/payment-type/paymentType.ts","webpack://_N_E/./src/gql/generated/graphql.gen.ts","webpack://_N_E/./src/modules/utils/firebase.ts","webpack://_N_E/./src/modules/utils/local-storage.ts","webpack://_N_E/./node_modules/uuid/dist/esm-browser/native.js","webpack://_N_E/./node_modules/uuid/dist/esm-browser/rng.js","webpack://_N_E/./node_modules/uuid/dist/esm-browser/stringify.js","webpack://_N_E/./node_modules/uuid/dist/esm-browser/v4.js","webpack://_N_E/./node_modules/@aws-sdk/client-pinpoint/dist-es/models/models_0.js","webpack://_N_E/./src/modules/utils/amazon-pinpoint.ts","webpack://_N_E/./src/modules/utils/payment-type.ts","webpack://_N_E/./src/modules/utils/shipments.ts","webpack://_N_E/./src/pages/_index/__modules__/array.ts","webpack://_N_E/./src/pages/_index/__components__/statuses/switch-statuses/planning/Planning.tsx","webpack://_N_E/./src/pages/_index/__components__/statuses/switch-statuses/planning/index.ts","webpack://_N_E/./src/pages/_index/__modules__/store.ts","webpack://_N_E/./src/pages/_index/__components__/statuses/switch-statuses/return-inventory/ReturnInventory.tsx","webpack://_N_E/./src/pages/_index/__components__/statuses/switch-statuses/return-inventory/index.ts","webpack://_N_E/./src/pages/_index/__components__/statuses/switch-statuses/applied/Applied.tsx","webpack://_N_E/./src/pages/_index/__components__/statuses/switch-statuses/applied/index.ts","webpack://_N_E/./node_modules/date-fns/esm/compareDesc/index.js","webpack://_N_E/./src/pages/_index/__components__/statuses/module.ts","webpack://_N_E/./src/pages/_index/__components__/statuses/switch-statuses/preview/Preview.tsx","webpack://_N_E/./src/pages/_index/__components__/statuses/ReturnStatuses.tsx","webpack://_N_E/./src/pages/_index/__components__/statuses/index.ts","webpack://_N_E/./src/pages/_index/__components__/plan-history/PlanHistoryButton.tsx","webpack://_N_E/./src/pages/_index/__modules__/plan-history.ts","webpack://_N_E/./src/pages/_index/__components__/contract-to-content/module.ts","webpack://_N_E/./src/pages/_index/__components__/statuses/switch-statuses/quit-application-submitted/QuitApplicationSubmitted.tsx","webpack://_N_E/./src/pages/_index/__components__/statuses/switch-statuses/quit-application-submitted/index.ts","webpack://_N_E/./src/pages/_index/__gql__/get-quit-application.gen.ts","webpack://_N_E/./src/pages/_index/__components__/contract-to-content/ContractToContent.tsx","webpack://_N_E/./src/pages/_index/__components__/contract-to-content/index.ts","webpack://_N_E/./src/pages/_index/__gql__/get-shipments.gen.ts","webpack://_N_E/./src/pages/_index/__modules__/hooks/useGetIndexPagesShipmentsQueryAtom.tsx","webpack://_N_E/./src/pages/_index/__gql__/get-family-customer.gen.ts","webpack://_N_E/./src/pages/_index/__modules__/hooks/useGetIndexPagesFamilyCustomerQueryAtom.tsx","webpack://_N_E/./src/pages/_index/__gql__/get-me.gen.ts","webpack://_N_E/./src/pages/_index/__modules__/hooks/useGetIndexPagesMeQueryAtom.tsx","webpack://_N_E/./src/pages/_index/__modules__/hooks/index.ts","webpack://_N_E/./src/pages/_index/__gql__/get-plans.gen.ts","webpack://_N_E/./src/pages/_index/__modules__/hooks/useGetPlanPagesIndexQueryAtom.tsx","webpack://_N_E/./src/pages/_index/__components__/banners/const.ts","webpack://_N_E/./src/pages/_index/__components__/banners/__components__/banner/Banner.tsx","webpack://_N_E/./src/pages/_index/__components__/banners/Banners.tsx","webpack://_N_E/./src/components/essentials/button/notice-button/NoticeButton.tsx","webpack://_N_E/./src/pages/_index/__components__/external-link-button/ExternalLinkButton.tsx","webpack://_N_E/./src/modules/utils/channel-talk.ts","webpack://_N_E/./src/pages/index.page.tsx","webpack://_N_E/./src/pages/purchase/[shipmentId]/__gql__/get-is-purchased-shipment-toys.gen.ts","webpack://_N_E/./assets/images/banner_icon_book.svg","webpack://_N_E/./assets/images/banner_icon_change_skip.svg","webpack://_N_E/./assets/images/banner_icon_early_change.svg","webpack://_N_E/./assets/images/banner_icon_recruit.svg","webpack://_N_E/./assets/images/banner_icon_shindan.svg","webpack://_N_E/./assets/images/banner_icon_shokai.svg","webpack://_N_E/./assets/images/banner_icon_store.svg","webpack://_N_E/./assets/images/banner_icon_toybaton.svg","webpack://_N_E/./assets/images/banner_icon_toysmarket.svg","webpack://_N_E/./assets/images/box.svg","webpack://_N_E/./assets/images/cracker.svg","webpack://_N_E/./assets/images/toy-train.svg","webpack://_N_E/./assets/images/toybox-closed.svg","webpack://_N_E/./assets/images/toybox-open.svg","webpack://_N_E/./assets/images/video.svg","webpack://_N_E/<anon>"],"sourcesContent":["import addDays from \"../addDays/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\n/**\n * @name subDays\n * @category Day Helpers\n * @summary Subtract the specified number of days from the given date.\n *\n * @description\n * Subtract the specified number of days from the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the days subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract 10 days from 1 September 2014:\n * const result = subDays(new Date(2014, 8, 1), 10)\n * //=> Fri Aug 22 2014 00:00:00\n */\nexport default function subDays(dirtyDate, dirtyAmount) {\n  requiredArgs(2, arguments);\n  var amount = toInteger(dirtyAmount);\n  return addDays(dirtyDate, -amount);\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport addMonths from \"../addMonths/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name subMonths\n * @category Month Helpers\n * @summary Subtract the specified number of months from the given date.\n *\n * @description\n * Subtract the specified number of months from the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of months to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the months subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract 5 months from 1 February 2015:\n * const result = subMonths(new Date(2015, 1, 1), 5)\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport default function subMonths(dirtyDate, dirtyAmount) {\n  requiredArgs(2, arguments);\n  var amount = toInteger(dirtyAmount);\n  return addMonths(dirtyDate, -amount);\n}","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport subDays from \"../subDays/index.js\";\nimport subMonths from \"../subMonths/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\n/**\n * @name sub\n * @category Common Helpers\n * @summary Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date.\n *\n * @description\n * Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be subtracted\n *\n * | Key     | Description                        |\n * |---------|------------------------------------|\n * | years   | Amount of years to be subtracted   |\n * | months  | Amount of months to be subtracted  |\n * | weeks   | Amount of weeks to be subtracted   |\n * | days    | Amount of days to be subtracted    |\n * | hours   | Amount of hours to be subtracted   |\n * | minutes | Amount of minutes to be subtracted |\n * | seconds | Amount of seconds to be subtracted |\n *\n * All values default to 0\n *\n * @returns {Date} the new date with the seconds subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract the following duration from 15 June 2017 15:29:20\n * const result = sub(new Date(2017, 5, 15, 15, 29, 20), {\n *   years: 2,\n *   months: 9,\n *   weeks: 1,\n *   days: 7,\n *   hours: 5,\n *   minutes: 9,\n *   seconds: 30\n * })\n * //=> Mon Sep 1 2014 10:19:50\n */\nexport default function sub(date, duration) {\n  requiredArgs(2, arguments);\n  if (!duration || _typeof(duration) !== 'object') return new Date(NaN);\n  var years = duration.years ? toInteger(duration.years) : 0;\n  var months = duration.months ? toInteger(duration.months) : 0;\n  var weeks = duration.weeks ? toInteger(duration.weeks) : 0;\n  var days = duration.days ? toInteger(duration.days) : 0;\n  var hours = duration.hours ? toInteger(duration.hours) : 0;\n  var minutes = duration.minutes ? toInteger(duration.minutes) : 0;\n  var seconds = duration.seconds ? toInteger(duration.seconds) : 0;\n\n  // Subtract years and months\n  var dateWithoutMonths = subMonths(date, months + years * 12);\n\n  // Subtract weeks and days\n  var dateWithoutDays = subDays(dateWithoutMonths, days + weeks * 7);\n\n  // Subtract hours, minutes and seconds\n  var minutestoSub = minutes + hours * 60;\n  var secondstoSub = seconds + minutestoSub * 60;\n  var mstoSub = secondstoSub * 1000;\n  var finalDate = new Date(dateWithoutDays.getTime() - mstoSub);\n  return finalDate;\n}","\n    (window.__NEXT_P = window.__NEXT_P || []).push([\n      \"/\",\n      function () {\n        return require(\"private-next-pages/index.page.tsx\");\n      }\n    ]);\n    if(module.hot) {\n      module.hot.dispose(function () {\n        window.__NEXT_P.push([\"/\"])\n      });\n    }\n  ","import { type FC } from \"react\";\nimport { Skeleton as ChakraSkeleton, type SkeletonProps as ChakraSkeleteonProps } from \"@chakra-ui/react\";\nimport { skeletonTestId } from \"./const\";\n\nexport type SkeletonProps = ChakraSkeleteonProps;\nexport const Skeleton: FC<SkeletonProps> = (props) => {\n  return <ChakraSkeleton data-testid={skeletonTestId} fadeDuration={0.2} speed={0.6} {...props} />;\n};\n","import { type BoxProps } from \"@chakra-ui/react\";\nimport { Box } from \"@/components/essentials/box\";\nimport { type ReactNode, type FC } from \"react\";\n\nexport interface BaseCardProps extends BoxProps {\n  children: ReactNode;\n}\n\nexport const BaseCard: FC<BaseCardProps> = ({ children, ...rest }) => {\n  return (\n    <Box p=\"1.5rem\" borderRadius=\"0.5rem\" bgColor=\"mono.light.100\" {...rest}>\n      {children}\n    </Box>\n  );\n};\n","export * from \"./BaseCard\";\n","import { createContext } from \"react\";\nimport type { MenuVariantContext } from \"./type\";\n\nexport const MenuContext = createContext<MenuVariantContext>({\n  isOpen: false,\n});\n","import { type ReactNode, type FC, useState } from \"react\";\nimport { Menu as ChakraMenu, type MenuProps as ChakraMenuProps } from \"@chakra-ui/react\";\nimport { MenuContext } from \"./context\";\nimport { menuTestId } from \"./const\";\n\nexport interface MenuProps extends Omit<ChakraMenuProps, \"size\"> {\n  readonly children: ReactNode;\n}\n\nexport const Menu: FC<MenuProps> = ({ children, ...rest }) => {\n  const [isOpen, setIsOpen] = useState(false);\n  return (\n    <ChakraMenu\n      data-testid={menuTestId}\n      onOpen={() => {\n        setIsOpen(true);\n      }}\n      onClose={() => {\n        setIsOpen(false);\n      }}\n      {...rest}\n    >\n      <MenuContext.Provider\n        value={{\n          isOpen,\n        }}\n      >\n        {children}\n      </MenuContext.Provider>\n    </ChakraMenu>\n  );\n};\n","import { MenuButton as ChakraMenuButton, type MenuButtonProps as ChakraMenuButtonProps, Flex } from \"@chakra-ui/react\";\nimport { Box } from \"@/components/essentials/box\";\nimport { useContext, type FC } from \"react\";\nimport { MenuContext } from \"./context\";\nimport { Icon } from \"@/components/essentials/icon\";\nimport { menuButtonLabelTestId, menuButtonTestId } from \"./const\";\nimport { Typography } from \"@/components/essentials/typography\";\nimport { type AliasColors } from \"@/styles/themes/colors/alias\";\nimport { type ColorPalettes } from \"@/styles/themes/colors/palettes\";\n\nexport type MenuButtonProps = Omit<ChakraMenuButtonProps, \"color\"> & {\n  label?: boolean;\n  color?: AliasColors | ColorPalettes;\n};\n\nexport const MenuButton: FC<MenuButtonProps> = ({\n  children,\n  placeholder: _placeholder,\n  color = \"gray.main\",\n  label = false,\n  ...rest\n}) => {\n  const { isOpen } = useContext(MenuContext);\n\n  return (\n    <ChakraMenuButton data-testid={menuButtonTestId} p=\"1rem\" bgColor=\"light.main\" as={Box} {...rest}>\n      <Flex justifyContent=\"space-between\" alignItems=\"center\" w=\"100%\">\n        {children}\n        <Flex justifyContent=\"space-between\" alignItems=\"center\">\n          {label && (\n            <Typography\n              color={color}\n              variant=\"display7\"\n              mr=\"1\"\n              data-testid={menuButtonLabelTestId}\n              display={[\"none\", \"inline\"]}\n            >\n              陦ィ遉コ蛻�崛\n            </Typography>\n          )}\n          <Icon ml=\"auto\" color={color} as={isOpen ? \"angleUp\" : \"angleDown\"} />\n        </Flex>\n      </Flex>\n    </ChakraMenuButton>\n  );\n};\n","import { MenuList as ChakraMenuList } from \"@chakra-ui/react\";\nimport { type ComponentProps, type ReactNode, type FC } from \"react\";\nimport { menuListTestId } from \"./const\";\n\nexport type MenuListProps = ComponentProps<typeof ChakraMenuList> & { readonly children: ReactNode };\n\nexport const MenuList: FC<MenuListProps> = ({ children, ...rest }) => {\n  return (\n    <ChakraMenuList\n      data-testid={menuListTestId}\n      maxH={{\n        base: \"15rem\",\n        sm: \"15rem\",\n        md: \"20rem\",\n        lg: \"25rem\",\n        xl: \"30rem\",\n        \"2xl\": \"35rem\",\n      }}\n      minW={{\n        base: \"15rem\",\n        lg: \"20rem\",\n      }}\n      p=\"0rem\"\n      borderWidth=\"0rem\"\n      overflow=\"auto\"\n      backgroundColor=\"light.main\"\n      boxShadow=\"shadow.main\"\n      {...rest}\n    >\n      {children}\n    </ChakraMenuList>\n  );\n};\n","import { forwardRef } from \"@chakra-ui/system\";\nimport {\n  MenuItemOption as ChakraMenuItemOption,\n  type MenuItemOptionProps as ChakraMenuItemOptionProps,\n  Icon,\n} from \"@chakra-ui/react\";\nimport { FaCheck } from \"react-icons/fa\";\nimport { css } from \"@emotion/react\";\nimport { menuItemOptionTestId } from \"./const\";\n\nexport const MenuItemOption = forwardRef<ChakraMenuItemOptionProps, \"button\">(({ children, ...props }, ref) => {\n  const Component = (\n    <ChakraMenuItemOption\n      data-testid={menuItemOptionTestId}\n      flexDir=\"row-reverse\"\n      justifyContent=\"space-between\"\n      alignItems=\"center\"\n      borderColor=\"light.main\"\n      icon={<Icon as={FaCheck} color=\"primary.main\" />}\n      css={css`\n        .css-usinoq {\n          margin-inline-end: 0;\n        }\n      `}\n      _focus={{}}\n      _hover={{ boxShadow: \"shadow.main\", ...props._hover }}\n      ref={ref}\n      {...props}\n    >\n      {children}\n    </ChakraMenuItemOption>\n  );\n  return Component;\n});\nMenuItemOption.id = \"MenuItemOption\";\n","import {\n  MenuOptionGroup as ChakraMenuOptionGroup,\n  type MenuOptionGroupProps as ChakraMenuOptionGroupProps,\n} from \"@chakra-ui/react\";\nimport { type FC } from \"react\";\nimport { menuOptionGroupTestId } from \"./const\";\n\nexport type MenuOptionGroupProps = ChakraMenuOptionGroupProps;\n\nexport const MenuOptionGroup: FC<MenuOptionGroupProps> = ({ children, ...rest }) => {\n  return (\n    <ChakraMenuOptionGroup data-testid={menuOptionGroupTestId} {...rest}>\n      {children}\n    </ChakraMenuOptionGroup>\n  );\n};\n","export * from \"./Menu\";\nexport * from \"./MenuButton\";\nexport * from \"./MenuList\";\nexport * from \"./MenuItemOption\";\nexport * from \"./MenuOptionGroup\";\n","import { type ContractMenuItem } from \"./ContractMenu\";\n\nexport const contractMenuItemFromId = (\n  id: string,\n  list: ContractMenuItem[] | undefined | null,\n): ContractMenuItem | undefined => list?.find((item) => item.uuid === id);\n","import { Typography } from \"@/components/essentials/typography\";\nimport { type PartiallyPartial } from \"@/modules/utils/types\";\nimport { HStack } from \"@chakra-ui/react\";\nimport { type FC } from \"react\";\nimport { BaseCard, type BaseCardProps } from \"@/components/fragments/card/base-card\";\nimport { Tag } from \"@/components/essentials/tag\";\nimport {\n  ownerCardChildrenAgeTestId,\n  ownerCardContractedAtTestId,\n  ownerCardTagTestId,\n  ownerCardTestId,\n  ownerCardTitleTestId,\n} from \"./const\";\nimport { formatAsiaTokyoDateToString } from \"@/modules/utils/date\";\nimport { buildChildAge } from \"@/modules/utils/age\";\nimport { parse } from \"date-fns\";\n\nexport interface OwnerCardProps extends PartiallyPartial<BaseCardProps, \"children\"> {\n  readonly isActive?: boolean;\n  readonly contractName?: string;\n  readonly contractedAt?: string | null | undefined;\n  readonly familyChildrenBirthdays?: string[] | undefined;\n}\n\nexport const OwnerCard: FC<OwnerCardProps> = (props) => {\n  const { isActive, contractName, contractedAt, familyChildrenBirthdays, ...rest } = props;\n  return (\n    <BaseCard data-testid={ownerCardTestId} {...rest}>\n      <HStack spacing=\"1rem\">\n        {isActive ? (\n          <Tag\n            colorScheme=\"primary\"\n            variant=\"solid\"\n            borderRadius=\"1rem\"\n            p=\"0.5rem\"\n            minW={14}\n            data-testid={ownerCardTagTestId}\n          >\n            螂醍エ�クュ\n          </Tag>\n        ) : (\n          <Tag\n            colorScheme=\"gray\"\n            variant=\"solid\"\n            borderRadius=\"1rem\"\n            p=\"0.5rem\"\n            minW={14}\n            data-testid={ownerCardTagTestId}\n          >\n            蛛懈ュ「荳ュ\n          </Tag>\n        )}\n        <Typography variant=\"display6\" data-testid={ownerCardTitleTestId}>\n          {contractName ?? \"-\"}\n\n          {contractedAt && (\n            <Typography variant=\"text4\" data-testid={ownerCardContractedAtTestId}>\n              螂醍エ�律�嘴formatAsiaTokyoDateToString(contractedAt, \"yyyy/MM/dd\")}\n            </Typography>\n          )}\n          {familyChildrenBirthdays && familyChildrenBirthdays.length > 0 && (\n            <Typography variant=\"text4\" data-testid={ownerCardChildrenAgeTestId}>\n              蟷エ鮨「�喀n              {familyChildrenBirthdays\n                .map((birthday) => {\n                  const ageText = buildChildAge(parse(birthday, \"yyyy-MM-dd HH:mm:ss\", new Date()), new Date());\n                  // biome-ignore lint/style/useBlockStatements :[AUTOMATICALLY-INSERTED] Block statements are preferred in this position.\n                  if (ageText === \"荳肴�\") return undefined;\n                  return ageText;\n                })\n                .join(\", \")}\n            </Typography>\n          )}\n        </Typography>\n      </HStack>\n    </BaseCard>\n  );\n};\n","import { type ContractMenuItem } from \"./ContractMenu\";\n\nexport const emptyContractMenuItem: ContractMenuItem = {\n  uuid: \"\",\n  isActive: false,\n  subscriptionInfo: {\n    name: \"\",\n  },\n};\n\nexport const ownerCardSingleTestId = \"components/fragments/contract/contract-menu/ContractMenu/OwnerCard-single\";\n\nexport const menuTestId = \"components/fragments/contract/contract-menu/ContractMenu/Menu\";\n\nexport const menuButtonTestId = \"components/fragments/contract/contract-menu/ContractMenu/MenuButton\";\n\nexport const menuListTestId = \"components/fragments/contract/contract-menu/ContractMenu/MenuList\";\n\nexport const menuItemOptionTestId = \"components/fragments/contract/contract-menu/ContractMenu/MenuItemOption\";\n\nexport const ownerCardTestId = \"components/fragments/contract/contract-menu/ContractMenu/OwnerCard\";\n","import {\n  MenuButton,\n  Menu,\n  MenuOptionGroup,\n  MenuItemOption,\n  MenuList,\n  type MenuProps,\n} from \"@/components/essentials/menu\";\nimport { type FC, useState } from \"react\";\nimport { contractMenuItemFromId } from \"./module\";\nimport { OwnerCard } from \"@/components/fragments/card/owner-card/OwnerCard\";\nimport {\n  emptyContractMenuItem,\n  menuButtonTestId,\n  menuItemOptionTestId,\n  menuListTestId,\n  menuTestId,\n  ownerCardSingleTestId,\n  ownerCardTestId,\n} from \"./const\";\n\nexport interface SubscriptionInfo {\n  readonly name: string;\n}\nexport interface FamilyChildren {\n  readonly birthday?: string | null | undefined;\n}\nexport interface ContractMenuItem {\n  readonly uuid: string;\n  readonly isActive?: boolean | null | undefined;\n  readonly subscriptionInfo?: SubscriptionInfo | null | undefined;\n  readonly contractedAt?: string | null | undefined;\n  readonly familyChildren?: Array<FamilyChildren | null> | null | undefined;\n}\nexport interface ContractMenuProps extends Omit<MenuProps, \"children\"> {\n  readonly contractPlans: ContractMenuItem[] | null | undefined;\n  readonly onChange?: (id: string) => void;\n  readonly initialValue?: ContractMenuItem | null | undefined;\n}\n\nexport const ContractMenu: FC<ContractMenuProps> = ({ contractPlans, onChange, initialValue, ...rest }) => {\n  const [selected, setSelected] = useState<ContractMenuItem>(initialValue || emptyContractMenuItem);\n  if (contractPlans?.length === 1) {\n    return (\n      <OwnerCard\n        data-testid={ownerCardSingleTestId}\n        py=\"1rem\"\n        px=\"1.5rem\"\n        isActive={initialValue?.isActive ?? false}\n        contractName={initialValue?.subscriptionInfo?.name ?? \"\"}\n        contractedAt={initialValue?.contractedAt}\n        familyChildrenBirthdays={initialValue?.familyChildren\n          ?.filter((familyChild) => familyChild?.birthday)\n          .map((familyChild) => familyChild?.birthday ?? \"\")}\n      />\n    );\n    // biome-ignore lint/style/useBlockStatements :[AUTOMATICALLY-INSERTED] Block statements are preferred in this position.\n  } else\n    return (\n      <Menu data-testid={menuTestId} matchWidth {...rest}>\n        <MenuButton data-testid={menuButtonTestId} py=\"1rem\" px=\"1.5rem\" color=\"primary.main\" label>\n          <OwnerCard\n            p={0}\n            isActive={selected.isActive ?? false}\n            contractName={selected.subscriptionInfo?.name ?? \"\"}\n            contractedAt={selected.contractedAt}\n            familyChildrenBirthdays={selected.familyChildren\n              ?.filter((familyChild) => familyChild?.birthday)\n              .map((familyChild) => familyChild?.birthday ?? \"\")}\n          />\n        </MenuButton>\n        <MenuList p=\"0rem\" background=\"light.main\" width=\"100%\" data-testid={menuListTestId}>\n          <MenuOptionGroup background=\"light.main\" value={selected.uuid}>\n            {Array.isArray(contractPlans) &&\n              contractPlans.map((plan, key) => (\n                <MenuItemOption\n                  data-testid={`${menuItemOptionTestId}-${key}`}\n                  _active={{ bgColor: \"background.main\" }}\n                  onClick={() => {\n                    const menuItem = contractMenuItemFromId(plan.uuid, contractPlans);\n                    setSelected({\n                      uuid: menuItem?.uuid ?? \"\",\n                      isActive: plan.isActive,\n                      subscriptionInfo: plan.subscriptionInfo,\n                      contractedAt: plan.contractedAt,\n                      familyChildren: plan.familyChildren,\n                    });\n                    // biome-ignore lint/style/useBlockStatements :[AUTOMATICALLY-INSERTED] Block statements are preferred in this position.\n                    if (onChange !== undefined) onChange(plan.uuid);\n                  }}\n                  py=\"1rem\"\n                  px=\"1.5rem\"\n                  value={plan.uuid}\n                  key={key}\n                >\n                  <OwnerCard\n                    p={0}\n                    data-testid={`${ownerCardTestId}-${key}`}\n                    bg=\"transparent\"\n                    isActive={plan.isActive ?? false}\n                    contractName={plan.subscriptionInfo?.name ?? \"\"}\n                    contractedAt={plan.contractedAt}\n                    familyChildrenBirthdays={plan.familyChildren\n                      ?.filter((familyChild) => familyChild?.birthday)\n                      .map((familyChild) => familyChild?.birthday ?? \"\")}\n                  />\n                </MenuItemOption>\n              ))}\n          </MenuOptionGroup>\n        </MenuList>\n      </Menu>\n    );\n};\n","export * from \"./ContractMenu\";\n","// @ts-nocheck\nimport * as Types from '../../../../../gql/generated/graphql.gen';\n\nimport { gql } from '@apollo/client';\nexport type PlanCardContainerFragmentFieldsFragment = { __typename?: 'Shipment', uuid: string, shippedAt?: string | null, shipmentType?: { __typename?: 'ShipmentType', uuid: string } | null, shipmentStatus?: { __typename?: 'ShipmentStatus', uuid: string } | null, shipmentToys: Array<{ __typename?: 'ShipmentToy', uuid: string, toy: { __typename?: 'Toy', toyImages: Array<{ __typename?: 'ToyImage', path: string, thumbnailImage: { __typename?: 'ThumbnailImage', pathFixed256: string } }> } }>, additionalShipments: Array<{ __typename?: 'Shipment', uuid: string, shippedAt?: string | null, shipmentStatus?: { __typename?: 'ShipmentStatus', uuid: string } | null, shipmentToys: Array<{ __typename?: 'ShipmentToy', uuid: string, toy: { __typename?: 'Toy', toyImages: Array<{ __typename?: 'ToyImage', path: string, thumbnailImage: { __typename?: 'ThumbnailImage', pathFixed256: string } }> } }> }> };\n\nexport const PlanCardContainerFragmentFieldsFragmentDoc = gql`\n    fragment PlanCardContainerFragmentFields on Shipment {\n  uuid\n  shippedAt\n  shipmentType {\n    uuid\n  }\n  shipmentStatus {\n    uuid\n  }\n  shipmentToys {\n    uuid\n    toy {\n      toyImages {\n        path\n        thumbnailImage {\n          pathFixed256\n        }\n      }\n    }\n  }\n  additionalShipments {\n    uuid\n    shippedAt\n    shipmentStatus {\n      uuid\n    }\n    shipmentToys {\n      uuid\n      toy {\n        toyImages {\n          path\n          thumbnailImage {\n            pathFixed256\n          }\n        }\n      }\n    }\n  }\n}\n    `;","/** 騾€莨夂筏隲倶クュ */\nexport const FAMILY_CUSTOMER_STATUS_QUIT_APPLICATION_SUBMITTED = \"7f5741b7-71d6-451b-8446-0cd53473a360\";\n","export const PAYMENT_TYPE_ROBOTPAYMENT = \"8f7bf6ad-3f92-4219-8479-c897be724532\";\nexport const PAYMENT_TYPE_STRIPE = \"9bbf6286-492e-42b1-a5b2-57e7e11fe026\";\n","// @ts-nocheck\nexport type Maybe<T> = T | null;\nexport type InputMaybe<T> = Maybe<T>;\nexport type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\nexport type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };\nexport type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };\nexport type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n  ID: { input: string; output: string; }\n  String: { input: string; output: string; }\n  Boolean: { input: boolean; output: boolean; }\n  Int: { input: number; output: number; }\n  Float: { input: number; output: number; }\n  /** A date string with format `Y-m-d`, e.g. `2011-05-23`. */\n  Date: { input: any; output: any; }\n  /** A datetime string with format `Y-m-d H:i:s`, e.g. `2018-05-23 13:43:32`. */\n  DateTime: { input: any; output: any; }\n  /** uuid format. */\n  UUID: { input: any; output: any; }\n};\n\nexport type AccountRole = {\n  __typename?: 'AccountRole';\n  id: Scalars['Int']['output'];\n  name: Scalars['String']['output'];\n};\n\nexport type Address = {\n  address1: Scalars['String']['input'];\n  address2: Scalars['String']['input'];\n  buildingName?: InputMaybe<Scalars['String']['input']>;\n  firstName: Scalars['String']['input'];\n  lastName: Scalars['String']['input'];\n  mail: Scalars['String']['input'];\n  phoneNumber: Scalars['String']['input'];\n  postalCode: Scalars['String']['input'];\n  prefectureCode: Scalars['Int']['input'];\n};\n\nexport type Child = {\n  birthDate: Scalars['String']['input'];\n  sexCode: Scalars['Int']['input'];\n};\n\nexport type ContractedPlan = {\n  __typename?: 'ContractedPlan';\n  madrasContractedPlanUuid: Scalars['ID']['output'];\n  roles: Array<AccountRole>;\n};\n\nexport type CouponStatus = {\n  __typename?: 'CouponStatus';\n  name: Scalars['String']['output'];\n  uuid: Scalars['String']['output'];\n};\n\nexport type CreateCustomerInput = {\n  child: Child;\n  customerAddress: Address;\n  desiredDeliveryMethodTimeUuid?: InputMaybe<Scalars['String']['input']>;\n  priceUuid: Scalars['String']['input'];\n  promotionCode?: InputMaybe<Scalars['String']['input']>;\n  shippingAddress: Address;\n  specialNote?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type CreateCustomerSlotInput = {\n  paymentServiceProvider: Scalars['String']['input'];\n};\n\nexport type CreateCustomerSlotResponse = {\n  __typename?: 'CreateCustomerSlotResponse';\n  clientSecret: Scalars['String']['output'];\n  id: Scalars['String']['output'];\n};\n\nexport type CreateFamilyCustomerAddressInput = {\n  address1: Scalars['String']['input'];\n  address2: Scalars['String']['input'];\n  buildingName?: InputMaybe<Scalars['String']['input']>;\n  deliveryMethodTime?: InputMaybe<FamilyCustomerAddressDeliveryMethodTimeInput>;\n  firstName: Scalars['String']['input'];\n  lastName: Scalars['String']['input'];\n  pref: Scalars['String']['input'];\n  tel: Scalars['String']['input'];\n  zipCode: Scalars['String']['input'];\n};\n\nexport type Customer = {\n  __typename?: 'Customer';\n  madrasCustomerUuid: Scalars['ID']['output'];\n};\n\nexport type DeliveryMethodTime = {\n  __typename?: 'DeliveryMethodTime';\n  name: Scalars['String']['output'];\n  uuid: Scalars['ID']['output'];\n};\n\nexport type Deposit = {\n  __typename?: 'Deposit';\n  cardInfoUpdateUrl?: Maybe<Scalars['String']['output']>;\n};\n\nexport type ExchangePreShippingInput = {\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=2063%3A23008 */\n  shipmentToys: Array<ExchangePreShippingShipmentToyInput>;\n};\n\nexport type ExchangePreShippingShipmentToyInput = {\n  /**\n   * Madras: shipment_toys.uuid, Figma: (none)\n   * memo: toys.uuid 縺ォ縺吶k縺玖ソキ縺」縺溘′縲《hipment_toys.uuid 縺ョ縺サ縺�′邏蝉サ倥¢諠��ア縺悟、壹¥莉雁セ後�莉墓ァ伜、画峩縺ォ蠑キ縺�→閠�∴縺歃n   */\n  shipmentToyUuid: Scalars['ID']['input'];\n  /** Madras: (縺セ縺�縺ェ縺�), Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=2063%3A23008 */\n  status: ShipmentToyCustomerPreShippingStatus;\n  toyMakerName: Scalars['String']['input'];\n  toyName: Scalars['String']['input'];\n};\n\nexport type FamilyAccount = {\n  __typename?: 'FamilyAccount';\n  contractedPlans: Array<ContractedPlan>;\n  /** 鬘ァ螳「縺ィ縺励※縺ョ諠��ア */\n  customer: Customer;\n  /** 螂醍エ�€�ィゥ髯舌r謖√▲縺ヲ縺�k縺九←縺�° */\n  isContractor: Scalars['Boolean']['output'];\n  /** 莠梧ョオ髫手ェ崎ィシ險ュ螳壹′譛牙柑縺九←縺�° */\n  isMfaActive: Scalars['Boolean']['output'];\n  /** 驟埼€∝�讓ゥ髯舌r謖√▲縺ヲ縺�k縺九←縺�° */\n  isReceiver: Scalars['Boolean']['output'];\n  mail: Scalars['String']['output'];\n  /** 邏蝉サ倥>縺ヲ縺�k縲後♀繧ゅ■繧�イキ蜿悶け繝シ繝昴Φ縲阪�荳€隕ァ */\n  toyCoupons: Array<ToyCoupon>;\n  uuid: Scalars['ID']['output'];\n};\n\nexport type FamilyChild = {\n  __typename?: 'FamilyChild';\n  birthday?: Maybe<Scalars['String']['output']>;\n  uuid: Scalars['ID']['output'];\n};\n\nexport type FamilyCustomer = {\n  __typename?: 'FamilyCustomer';\n  familyChildren?: Maybe<Array<Maybe<FamilyChild>>>;\n  familyCustomerAddresses?: Maybe<Array<FamilyCustomerAddress>>;\n  familyCustomerContractedPlans?: Maybe<Array<FamilyCustomerContractedPlan>>;\n  familyCustomerStatus?: Maybe<FamilyCustomerStatus>;\n  familyCustomerType?: Maybe<FamilyCustomerType>;\n  firstName?: Maybe<Scalars['String']['output']>;\n  firstNameOfPronunciation?: Maybe<Scalars['String']['output']>;\n  hasAnsweredSurvey?: Maybe<Scalars['Boolean']['output']>;\n  id?: Maybe<Scalars['Int']['output']>;\n  lastName?: Maybe<Scalars['String']['output']>;\n  lastNameOfPronunciation?: Maybe<Scalars['String']['output']>;\n  mail?: Maybe<Scalars['String']['output']>;\n  primaryFamilyCustomerAddress?: Maybe<FamilyCustomerAddress>;\n  primaryFamilyCustomerBillingAddress?: Maybe<FamilyCustomerBillingAddress>;\n  tel?: Maybe<Scalars['String']['output']>;\n  uuid: Scalars['ID']['output'];\n};\n\nexport type FamilyCustomerAddress = {\n  __typename?: 'FamilyCustomerAddress';\n  address1?: Maybe<Scalars['String']['output']>;\n  address2?: Maybe<Scalars['String']['output']>;\n  buildingName?: Maybe<Scalars['String']['output']>;\n  createdAt?: Maybe<Scalars['String']['output']>;\n  deliveryMethodTime?: Maybe<DeliveryMethodTime>;\n  familyCustomer?: Maybe<FamilyCustomer>;\n  familyHouseType?: Maybe<FamilyHouseType>;\n  firstName?: Maybe<Scalars['String']['output']>;\n  firstNameOfPronunciation?: Maybe<Scalars['String']['output']>;\n  isPrimary?: Maybe<Scalars['Boolean']['output']>;\n  lastName?: Maybe<Scalars['String']['output']>;\n  lastNameOfPronunciation?: Maybe<Scalars['String']['output']>;\n  mail?: Maybe<Scalars['String']['output']>;\n  pref?: Maybe<Scalars['String']['output']>;\n  tel?: Maybe<Scalars['String']['output']>;\n  uuid: Scalars['ID']['output'];\n  zipCode?: Maybe<Scalars['String']['output']>;\n};\n\nexport type FamilyCustomerAddressDeliveryMethodTimeInput = {\n  uuid: Scalars['ID']['input'];\n};\n\nexport type FamilyCustomerAddressFamilyCustomerInput = {\n  uuid: Scalars['ID']['input'];\n};\n\nexport type FamilyCustomerBillingAddress = {\n  __typename?: 'FamilyCustomerBillingAddress';\n  address1?: Maybe<Scalars['String']['output']>;\n  address2?: Maybe<Scalars['String']['output']>;\n  buildingName?: Maybe<Scalars['String']['output']>;\n  familyCustomer?: Maybe<FamilyCustomer>;\n  firstName?: Maybe<Scalars['String']['output']>;\n  firstNameOfPronunciation?: Maybe<Scalars['String']['output']>;\n  isPrimary?: Maybe<Scalars['Boolean']['output']>;\n  lastName?: Maybe<Scalars['String']['output']>;\n  lastNameOfPronunciation?: Maybe<Scalars['String']['output']>;\n  pref?: Maybe<Scalars['String']['output']>;\n  tel?: Maybe<Scalars['String']['output']>;\n  uuid: Scalars['ID']['output'];\n  zipCode?: Maybe<Scalars['String']['output']>;\n};\n\nexport type FamilyCustomerContractedPlan = {\n  __typename?: 'FamilyCustomerContractedPlan';\n  contractedAt?: Maybe<Scalars['String']['output']>;\n  familyChildren?: Maybe<Array<Maybe<FamilyChild>>>;\n  familyCustomer?: Maybe<FamilyCustomer>;\n  familyCustomerBillingAddress?: Maybe<FamilyCustomerBillingAddress>;\n  isActive?: Maybe<Scalars['Boolean']['output']>;\n  paymentType?: Maybe<PaymentType>;\n  /** 繧オ繝悶せ繧ッ繝ェ繝励す繝ァ繝ウ縲ゆコ育エ�ェ槭→陲ォ繧九�縺ァ驕ゥ蠖薙↓ info 縺ィ莉倥¢縺ヲ縺�k */\n  subscriptionInfo?: Maybe<SubscriptionInfo>;\n  uuid: Scalars['ID']['output'];\n};\n\nexport type FamilyCustomerStatus = {\n  __typename?: 'FamilyCustomerStatus';\n  name?: Maybe<Scalars['String']['output']>;\n  uuid: Scalars['ID']['output'];\n};\n\nexport type FamilyCustomerType = {\n  __typename?: 'FamilyCustomerType';\n  name?: Maybe<Scalars['String']['output']>;\n  uuid: Scalars['ID']['output'];\n};\n\nexport type FamilyHouseType = {\n  __typename?: 'FamilyHouseType';\n  name: Scalars['String']['output'];\n  uuid: Scalars['ID']['output'];\n};\n\nexport type GenerateMfaActivateKeyResult = {\n  __typename?: 'GenerateMfaActivateKeyResult';\n  otpauthUri: Scalars['String']['output'];\n  secretKey: Scalars['String']['output'];\n};\n\nexport enum GraduateServiceCompanies {\n  /** \"繝峨Λ繧ュ繝�ぜ */\n  Dorakid = 'DORAKID',\n  /** \"繝�ぅ繧コ繝九�闍ア莨夊ゥア */\n  Dwe = 'DWE',\n  /** \"繧ウ繝翫Α繧ケ繝昴�繝�け繝ゥ繝� */\n  Konamisports = 'KONAMISPORTS',\n  /** \"繝溘く繝上え繧ケ */\n  Mikihouse = 'MIKIHOUSE',\n  /** 繧ケ繝槭う繝ォ繧シ繝� */\n  Smilezemi = 'SMILEZEMI',\n  /** 螟ゥ逾� */\n  Tao = 'TAO',\n  /** 繝ッ繝ウ繝€繝シ繝懊ャ繧ッ繧ケ */\n  Wonderbox = 'WONDERBOX'\n}\n\nexport type GraduateServiceCompaniesComments = {\n  /** 繧ケ繝槭う繝ォ繧シ繝� 驕ク謚槭@縺溷ッセ雎。蟄ヲ蟷エ諠��ア縺ョ繧ォ繝ウ繝槫玄蛻�j縺ョ譁�ュ怜� */\n  smilezemi?: InputMaybe<Scalars['String']['input']>;\n};\n\n/** 繝倥Ν繧ケ繝√ぉ繝�けAPI縺ョ繝ャ繧ケ繝昴Φ繧ケ */\nexport type Health = {\n  __typename?: 'Health';\n  /** Git縺ョ繧ウ繝溘ャ繝医ワ繝�す繝・�亥叙蠕励〒縺阪↑縺��エ蜷医�null�� */\n  hash?: Maybe<Scalars['String']['output']>;\n};\n\nexport type IndividualToy = {\n  __typename?: 'IndividualToy';\n  uuid: Scalars['ID']['output'];\n};\n\nexport type LeadChild = {\n  birthday?: InputMaybe<Scalars['Date']['input']>;\n};\n\nexport type LeadInput = {\n  child?: InputMaybe<LeadChild>;\n  leadSource: LeadSource;\n  mail: Scalars['String']['input'];\n  promotionCode?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport enum LeadSource {\n  /** 繧ュ繝」繝ウ繝壹�繝ウ繧ウ繝シ繝峨↑縺励�騾壼クク逕ウ縺苓セシ縺ソ */\n  Basic = 'BASIC',\n  /** 繧ュ繝」繝ウ繝壹�繝ウ繧ウ繝シ繝峨≠繧翫�逕ウ縺苓セシ縺ソ */\n  Campaign = 'CAMPAIGN',\n  /** 繝√Ε繝阪Ν繝医�繧ッ */\n  ChannelTalk = 'CHANNEL_TALK',\n  /** 縺翫b縺。繧�ィコ譁ュ */\n  ToyDiagnose = 'TOY_DIAGNOSE',\n  /** Zoho Survey */\n  ZohoSurvey = 'ZOHO_SURVEY'\n}\n\nexport type LivingEnvironment = {\n  uuid: Scalars['String']['input'];\n  value: Scalars['Boolean']['input'];\n};\n\nexport type LivingEnvironmentInput = {\n  uuid: Scalars['String']['input'];\n  value: Scalars['Boolean']['input'];\n};\n\nexport type Mutation = {\n  __typename?: 'Mutation';\n  /** 莠梧ョオ髫手ェ崎ィシ險ュ螳壹r譛牙柑蛹悶@繝ェ繧ォ繝舌Μ繝シ繧ウ繝シ繝峨r蜿門セ励☆繧九€ゅヱ繧ケ繝ッ繝シ繝画、懆ィシ API 螳溯。悟セ後�荳€螳壽凾髢灘�繧貞燕謠舌→縺吶k */\n  activateMfa: Array<Scalars['String']['output']>;\n  /** 繝。繝シ繝ォ繧「繝峨Ξ繧ケ螟画峩逕ィ縺ョ繝。繝シ繝ォ繧帝€∽ソ。縺吶k */\n  applyChangeMail: Scalars['Boolean']['output'];\n  /** 莠梧ョオ髫手ェ崎ィシ繧定。後≧縲ゅし繧、繝ウ繧、繝ウ API 螳溯。悟セ後�荳€螳壽凾髢灘�繧貞燕謠舌→縺吶k */\n  authorizeMfaCode: Scalars['Boolean']['output'];\n  /** 繝ェ繧ォ繝舌Μ繝シ繧ウ繝シ繝峨〒縺ョ隱崎ィシ繧定。後≧縲ゆスソ逕ィ縺励◆繝ェ繧ォ繝舌Μ繝シ繧ウ繝シ繝峨�遐エ譽�&繧後k縲ゅし繧、繝ウ繧、繝ウ API 螳溯。悟セ後�荳€螳壽凾髢灘�繧貞燕謠舌→縺吶k */\n  authorizeRecoveryCode: Scalars['Boolean']['output'];\n  /** 逕ウ霎シ縺ソ螳御コ� */\n  completePlanApplication: Scalars['Boolean']['output'];\n  /** 鬘ァ螳「諠��ア繧定ィュ螳壹☆繧� */\n  createCustomer: Scalars['Boolean']['output'];\n  /** 鬘ァ螳「繧剃ス懈�縺吶k(鬘ァ螳「諠��ア縺ッ蜈・蜉帙@縺ェ縺�) */\n  createCustomerSlot: CreateCustomerSlotResponse;\n  /** 縺雁ア雁�諠��ア繧呈眠隕丈ス懈�縺励€∬ヲ丞ョ壹�縺雁ア雁�菴乗園縺ォ險ュ螳壹☆繧� */\n  createFamilyCustomerAddress: Scalars['Boolean']['output'];\n  createLead: Scalars['Boolean']['output'];\n  /** 莠梧ョオ髫手ェ崎ィシ險ュ螳壹r辟。蜉ケ蛹悶☆繧九€よ里蟄倥�繝ェ繧ォ繝舌Μ繝シ繧ウ繝シ繝峨�遐エ譽�&繧後k縲ゅヱ繧ケ繝ッ繝シ繝画、懆ィシ API 螳溯。悟セ後�荳€螳壽凾髢灘�繧貞燕謠舌→縺吶k */\n  deactivateMfa: Scalars['Boolean']['output'];\n  /** 縺雁ア雁�諠��ア繧貞炎髯、縺吶k */\n  deleteFamilyCustomerAddress: Scalars['Boolean']['output'];\n  /** 繝。繝シ繝ォ繧「繝峨Ξ繧ケ繧貞、画峩縺吶k */\n  doChangeMail: Scalars['Boolean']['output'];\n  /** 繝代せ繝ッ繝シ繝峨r螟画峩縺吶k縲ゅヱ繧ケ繝ッ繝シ繝画、懆ィシ API 螳溯。悟セ後�荳€螳壽凾髢灘�繧貞燕謠舌→縺吶k */\n  doRenewPassword: Scalars['Boolean']['output'];\n  /** 繝代せ繝ッ繝シ繝峨r繝ェ繧サ繝�ヨ縺吶k */\n  doResetPassword: Scalars['Boolean']['output'];\n  /** 莠、謠帷筏隲九r陦後>縲√く繝」繝�す繝・縺ョ荳€譎ゆソ晏ュ伜�螳ケ繧よ峩譁ー縺吶k縲よュ」蟶ク邨ゆコ�セ後€√く繝」繝�す繝・縺ョ荳€譎ゆソ晏ュ伜�螳ケ縺ッ隲也炊蜑企勁縺吶k */\n  exchangeInventory: Scalars['Boolean']['output'];\n  /** 逋コ騾∝燕莠、謠帷筏隲九r縺吶k */\n  exchangePreShipping: Scalars['Boolean']['output'];\n  /** 莠梧ョオ髫手ェ崎ィシ險ュ螳壹�縺溘a縺ョ繧「繧ッ繝�ぅ繝吶�繝医く繝シ繧貞叙蠕励☆繧九€ゅヱ繧ケ繝ッ繝シ繝画、懆ィシ API 螳溯。悟セ後�荳€螳壽凾髢灘�繧貞燕謠舌→縺吶k */\n  generateMfaActivateKey: GenerateMfaActivateKeyResult;\n  /** 豎コ貂医�繝ゥ繝�ヨ繝輔か繝シ繝�縺ョ繧ォ繧ケ繧ソ繝槭�URL繧堤匱陦後☆繧� */\n  generatePaymentCustomerPortalSession: Scalars['String']['output'];\n  /** 謇区戟縺。縺翫b縺。繧�い繝ウ繧ア繝シ繝医�蝗樒ュ斐r險ュ螳壹☆繧� */\n  postQuestionnaire: Scalars['Boolean']['output'];\n  /** 謇区戟縺。縺翫b縺。繧�い繝ウ繧ア繝シ繝医�蝗樒ュ斐r險ュ螳壹☆繧九€ゅし繧、繝ウ繧、繝ウ縺悟ソ�ヲ� */\n  postQuestionnaireWithSignIn: Scalars['Boolean']['output'];\n  /** 騾€莨夂筏隲九r陦後≧ */\n  postQuitApplication: Scalars['Boolean']['output'];\n  /** 驟埼€∵ク医�縺翫b縺。繧�r雋キ縺�叙繧� */\n  purchaseShipmentToys: Scalars['Boolean']['output'];\n  /** 莠梧ョオ髫手ェ崎ィシ逕ィ縺ョ繝ェ繧ォ繝舌Μ繝シ繧ウ繝シ繝峨r蜀咲函謌舌@蜿門セ励☆繧九€よ里蟄倥�繝ェ繧ォ繝舌Μ繝シ繧ウ繝シ繝峨�遐エ譽�&繧後k縲ゅヱ繧ケ繝ッ繝シ繝画、懆ィシ API 螳溯。悟セ後�荳€螳壽凾髢灘�繧貞燕謠舌→縺吶k */\n  regenerateRecoveryCode: Array<Scalars['String']['output']>;\n  /** 譁ー隕冗匳骭イ縺吶k */\n  registerFamilyAccount: Scalars['Boolean']['output'];\n  /** 譁ー隕冗匳骭イ逕ィ縺ョ繝。繝シ繝ォ繧帝€∽ソ。縺吶k */\n  requestRegistrationMail: Scalars['Boolean']['output'];\n  /** 繝代せ繝ッ繝シ繝牙�險ュ螳夂畑縺ョ繝。繝シ繝ォ繧帝€∽ソ。縺吶k */\n  resetPassword: Scalars['Boolean']['output'];\n  /** 騾€莨夐。ァ螳「蜷代¢縺ョ雉�侭騾∽サ� */\n  sendGraduates: Scalars['Boolean']['output'];\n  /** 莠梧ョオ髫手ェ崎ィシ縺瑚ィュ螳壹&繧後※縺�↑縺��エ蜷医�繧オ繧、繝ウ繧、繝ウ縺吶k縲ゆコ梧ョオ髫手ェ崎ィシ縺瑚ィュ螳壹&繧後※縺�k蝣エ蜷医�縲後ヱ繧ケ繝ッ繝シ繝芽ェ崎ィシ縺ッ貂医€阪�迥カ諷九↓縺吶k縺ョ縺ソ縺ァ縲∽コ梧ョオ髫手ェ崎ィシ繧定。後≧縺ィ繧オ繧、繝ウ繧、繝ウ縺ァ縺阪k */\n  signIn: SignInResult;\n  /** 繧オ繧、繝ウ繧「繧ヲ繝医☆繧� */\n  signOut: Scalars['Boolean']['output'];\n  /** 莠、謠帷筏隲九ヵ繧ゥ繝シ繝�縺ョ蜈・蜉帛�螳ケ繧偵く繝」繝�す繝・縺ォ荳€譎ゆソ晏ュ倥☆繧� */\n  storeExchangeInventory: Scalars['Boolean']['output'];\n  /** 隲区アょ�諠��ア繧呈峩譁ー縺励€∬ヲ丞ョ壹�隲区アょ�諠��ア縺ォ險ュ螳壹☆繧� */\n  updateCustomerBillingInfo: Scalars['Boolean']['output'];\n  /** 縺雁ア雁�諠��ア繧呈峩譁ー縺励€∬ヲ丞ョ壹�縺雁ア雁�菴乗園縺ォ險ュ螳壹☆繧� */\n  updateFamilyCustomerAddress: Scalars['Boolean']['output'];\n  /** 譌「螳壹�菴乗園繧定ィュ螳壹☆繧� */\n  updatePrimaryAddress: Scalars['Boolean']['output'];\n  /** 繝代せ繝ッ繝シ繝峨�讀懆ィシ繧定。後>縲∽ク€螳壽凾髢謎ク€驛ィ API (繝代せ繝ッ繝シ繝牙、画峩縺ェ縺ゥ)縺ョ螳溯。後r險ア螳ケ縺吶k */\n  verifyPassword: Scalars['Boolean']['output'];\n};\n\n\nexport type MutationActivateMfaArgs = {\n  mfaCode: Scalars['String']['input'];\n};\n\n\nexport type MutationApplyChangeMailArgs = {\n  newMail: Scalars['String']['input'];\n};\n\n\nexport type MutationAuthorizeMfaCodeArgs = {\n  mfaCode: Scalars['String']['input'];\n};\n\n\nexport type MutationAuthorizeRecoveryCodeArgs = {\n  recoveryCode: Scalars['String']['input'];\n};\n\n\nexport type MutationCompletePlanApplicationArgs = {\n  customerId: Scalars['String']['input'];\n};\n\n\nexport type MutationCreateCustomerArgs = {\n  customerId: Scalars['String']['input'];\n  input: CreateCustomerInput;\n};\n\n\nexport type MutationCreateCustomerSlotArgs = {\n  input: CreateCustomerSlotInput;\n};\n\n\nexport type MutationCreateFamilyCustomerAddressArgs = {\n  input: CreateFamilyCustomerAddressInput;\n};\n\n\nexport type MutationCreateLeadArgs = {\n  input?: InputMaybe<LeadInput>;\n};\n\n\nexport type MutationDeleteFamilyCustomerAddressArgs = {\n  uuid: Scalars['ID']['input'];\n};\n\n\nexport type MutationDoChangeMailArgs = {\n  token: Scalars['String']['input'];\n};\n\n\nexport type MutationDoRenewPasswordArgs = {\n  newPassword: Scalars['String']['input'];\n};\n\n\nexport type MutationDoResetPasswordArgs = {\n  newPassword: Scalars['String']['input'];\n  token: Scalars['String']['input'];\n};\n\n\nexport type MutationExchangeInventoryArgs = {\n  input: ReturnInventoryInput;\n  shipmentUuid: Scalars['ID']['input'];\n};\n\n\nexport type MutationExchangePreShippingArgs = {\n  input: ExchangePreShippingInput;\n  shipmentUuid: Scalars['ID']['input'];\n};\n\n\nexport type MutationGeneratePaymentCustomerPortalSessionArgs = {\n  familyCustomerContractedPlanUuid: Scalars['ID']['input'];\n};\n\n\nexport type MutationPostQuestionnaireArgs = {\n  customerId: Scalars['String']['input'];\n  input: PostQuestionnaireInput;\n};\n\n\nexport type MutationPostQuestionnaireWithSignInArgs = {\n  input: PostQuestionnaireWithSignInInput;\n};\n\n\nexport type MutationPurchaseShipmentToysArgs = {\n  input: PurchaseShipmentToysInput;\n};\n\n\nexport type MutationRegisterFamilyAccountArgs = {\n  password: Scalars['String']['input'];\n  token: Scalars['String']['input'];\n};\n\n\nexport type MutationRequestRegistrationMailArgs = {\n  mail: Scalars['String']['input'];\n};\n\n\nexport type MutationResetPasswordArgs = {\n  mail: Scalars['String']['input'];\n};\n\n\nexport type MutationSendGraduatesArgs = {\n  comments?: InputMaybe<GraduateServiceCompaniesComments>;\n  referralType?: InputMaybe<ReferralType>;\n  requestedDocs: Array<InputMaybe<GraduateServiceCompanies>>;\n};\n\n\nexport type MutationSignInArgs = {\n  id: Scalars['String']['input'];\n  password: Scalars['String']['input'];\n  token: Scalars['String']['input'];\n};\n\n\nexport type MutationStoreExchangeInventoryArgs = {\n  input: ReturnInventoryTemporaryInput;\n  shipmentUuid: Scalars['ID']['input'];\n};\n\n\nexport type MutationUpdateCustomerBillingInfoArgs = {\n  input: UpdateCustomerBillingInfoInput;\n};\n\n\nexport type MutationUpdateFamilyCustomerAddressArgs = {\n  input: UpdateFamilyCustomerAddressInput;\n  uuid: Scalars['ID']['input'];\n};\n\n\nexport type MutationUpdatePrimaryAddressArgs = {\n  familyCustomerAddressUuid: Scalars['ID']['input'];\n};\n\n\nexport type MutationVerifyPasswordArgs = {\n  password: Scalars['String']['input'];\n};\n\nexport enum OptionServiceType {\n  /** 迚ケ諤・萓ソ */\n  ExpressDelivery = 'EXPRESS_DELIVERY',\n  /** 迚ケ諤・萓ソ(辟。譁咏沿) */\n  FreeExpressDelivery = 'FREE_EXPRESS_DELIVERY',\n  /** 縺翫b縺。繧�メ繧ァ繝ウ繧ク(辟。譁咏沿) */\n  FreeToyChange = 'FREE_TOY_CHANGE',\n  /** 縺翫b縺。繧�1轤ケ霑ス蜉� */\n  OneAdditionalToy = 'ONE_ADDITIONAL_TOY',\n  /** 縺翫b縺。繧�メ繧ァ繝ウ繧ク */\n  ToyChange = 'TOY_CHANGE',\n  /** 豌エ驕翫�縺翫b縺。繧� */\n  WaterPlayToy = 'WATER_PLAY_TOY'\n}\n\nexport type PaymentType = {\n  __typename?: 'PaymentType';\n  uuid: Scalars['String']['output'];\n};\n\nexport type PlanPrice = {\n  __typename?: 'PlanPrice';\n  couponErrorReason?: Maybe<Scalars['String']['output']>;\n  discountedPrice?: Maybe<Scalars['Int']['output']>;\n  id: Scalars['String']['output'];\n  name: Scalars['String']['output'];\n  price: Scalars['Int']['output'];\n  subscriptionCoupon?: Maybe<SubscriptionCoupon>;\n};\n\nexport type PostQuestionnaireInput = {\n  applicationChannel?: InputMaybe<Scalars['String']['input']>;\n  childInterest?: InputMaybe<Scalars['String']['input']>;\n  livingEnvironments?: InputMaybe<Array<LivingEnvironmentInput>>;\n  otherToys?: InputMaybe<Scalars['String']['input']>;\n  toys?: InputMaybe<Array<Scalars['String']['input']>>;\n};\n\nexport type PostQuestionnaireWithSignInInput = {\n  applicationChannel: Scalars['String']['input'];\n  childInterest?: InputMaybe<Scalars['String']['input']>;\n  livingEnvironments?: InputMaybe<Array<PostQuestionnaireWithSignInLivingEnvironment>>;\n  otherToys?: InputMaybe<Scalars['String']['input']>;\n  toys?: InputMaybe<Array<Scalars['String']['input']>>;\n};\n\nexport type PostQuestionnaireWithSignInLivingEnvironment = {\n  uuid: Scalars['String']['input'];\n  value: Scalars['Boolean']['input'];\n};\n\nexport type PurchaseShipmentToysInput = {\n  familyCustomerCouponUuids?: InputMaybe<Array<Scalars['String']['input']>>;\n  shipmentToyUuids: Array<Scalars['String']['input']>;\n  shipmentUuid: Scalars['String']['input'];\n};\n\nexport type Query = {\n  __typename?: 'Query';\n  /** 驟埼#謖�ョ壽凾髢灘クッ縺ョ荳€隕ァ繧貞叙蠕励☆繧� */\n  deliveryMethodTimes: Array<DeliveryMethodTime>;\n  /** 蜈・驥代↓髢「縺励※縺ョ諠��ア繧定ソ斐☆ */\n  deposit: Deposit;\n  /** Madras 縺ォ縺ゅk鬘ァ螳「諠��ア繧定ソ斐☆ */\n  familyCustomer: FamilyCustomer;\n  /** 雉�侭騾∽サ伜庄閭ス縺ェ蛟狗、セ繧貞叙蠕励☆繧� */\n  graduateServiceCompanies: Array<Maybe<GraduateServiceCompanies>>;\n  health: Health;\n  /** 雋キ蜿門�逅�ク医∩縺ァ縺ゅk縺� */\n  isPurchasedShipmentToys: Scalars['Boolean']['output'];\n  /** Ortega 縺ォ縺ゅk鬘ァ螳「諠��ア繧定ソ斐☆ */\n  me: FamilyAccount;\n  /** 縺翫b縺。繧��繝励Λ繝ウ諠��ア繧貞叙蠕励☆繧� */\n  planPrice?: Maybe<PlanPrice>;\n  /** 鬘ァ螳「縺ョ繧「繝ウ繧ア繝シ繝亥屓遲皮憾豕√r蜿門セ励☆繧� */\n  questionnaire: QuestionnaireResponse;\n  /** 騾€莨夂筏隲矩未騾」縺ョ諠��ア繧貞叙蠕励☆繧� */\n  quitApplication: QuitApplication;\n  /** 繧ュ繝」繝�す繝・縺ォ荳€譎ゆソ晏ュ倥&繧後※縺�k莠、謠帷筏隲九ヵ繧ゥ繝シ繝�縺ョ蜈・蜉帛�螳ケ繧貞叙蠕励☆繧九€ょ叙蠕励〒縺阪↑縺九▲縺溷�エ蜷医� null 繧定ソ斐☆ */\n  restoreExchangeInventory?: Maybe<ReturnInventoryTemporary>;\n  /** 逋コ騾√r蜿門セ励☆繧� */\n  shipment?: Maybe<Shipment>;\n  /** 謖�ョ壹&繧後◆螂醍エ�↓邏舌▼縺冗匱騾√r縲∫匱騾∵律譎ゅ�髯埼��↓蜈ィ莉カ霑斐☆縲りソス蜉�逋コ騾√�隕ェ Shipment 縺ョ additionalShipments 縺ォ莉倅ク弱&繧後k�� */\n  shipments: Array<Shipments>;\n  /** 縲梧眠隕冗匳骭イ逕ィ繝医�繧ッ繝ウ縲阪�譛牙柑諤ァ繧呈、懆ィシ縺吶k */\n  verifyRegisterAccountToken: Scalars['Boolean']['output'];\n  /** 縲後ヱ繧ケ繝ッ繝シ繝峨Μ繧サ繝�ヨ逕ィ繝医�繧ッ繝ウ縲阪�譛牙柑諤ァ繧呈、懆ィシ縺吶k */\n  verifyResetPasswordToken: Scalars['Boolean']['output'];\n};\n\n\nexport type QueryIsPurchasedShipmentToysArgs = {\n  shipmentUuid: Scalars['ID']['input'];\n};\n\n\nexport type QueryPlanPriceArgs = {\n  id: Scalars['UUID']['input'];\n  promotionCode?: InputMaybe<Scalars['String']['input']>;\n};\n\n\nexport type QueryQuestionnaireArgs = {\n  customerId: Scalars['String']['input'];\n};\n\n\nexport type QueryRestoreExchangeInventoryArgs = {\n  shipmentUuid: Scalars['ID']['input'];\n};\n\n\nexport type QueryShipmentArgs = {\n  uuid: Scalars['ID']['input'];\n};\n\n\nexport type QueryShipmentsArgs = {\n  familyCustomerContractedPlanUuids?: InputMaybe<Array<Scalars['ID']['input']>>;\n  filter?: InputMaybe<ShipmentFilterInput>;\n  first?: InputMaybe<Scalars['Int']['input']>;\n};\n\n\nexport type QueryVerifyRegisterAccountTokenArgs = {\n  token: Scalars['String']['input'];\n};\n\n\nexport type QueryVerifyResetPasswordTokenArgs = {\n  token: Scalars['String']['input'];\n};\n\nexport type QuestionnaireResponse = {\n  __typename?: 'QuestionnaireResponse';\n  ageOfChild?: Maybe<Scalars['Int']['output']>;\n  status: Scalars['String']['output'];\n};\n\nexport type QuitApplication = {\n  __typename?: 'QuitApplication';\n  /** 騾€莨夂筏隲句庄閭ス縺ァ縺ゅk縺九←縺�°縺ョ繧ケ繝��繧ソ繧ケ */\n  applicableStatus: QuitApplicationApplicableStatus;\n  /** 騾€莨夂筏隲矩未騾」縺ョ螂醍エ�ュ蝣ア繧貞叙蠕励☆繧� */\n  familyCustomerContractedPlan: QuitApplicationFamilyCustomerContractedPlan;\n};\n\nexport enum QuitApplicationApplicableStatus {\n  /** 繧、繝ャ繧ョ繝・繝ゥ繝シ */\n  Irregular = 'IRREGULAR',\n  /** 雋ゥ菫�ク榊庄 */\n  NotEligibleForPromotion = 'NOT_ELIGIBLE_FOR_PROMOTION',\n  /** 繝ャ繧ョ繝・繝ゥ繝シ */\n  Regular = 'REGULAR'\n}\n\nexport type QuitApplicationFamilyCustomerContractedPlan = {\n  __typename?: 'QuitApplicationFamilyCustomerContractedPlan';\n  contractedAt: Scalars['DateTime']['output'];\n  name: Scalars['String']['output'];\n  nextBillingAt?: Maybe<Scalars['DateTime']['output']>;\n  returnExpiresDate?: Maybe<Scalars['Date']['output']>;\n  uuid: Scalars['String']['output'];\n};\n\nexport enum ReferralType {\n  /** \"莠、謠帷筏隲矩€∝ョ「 */\n  ExchangeToys = 'EXCHANGE_TOYS',\n  /** \"蜊呈・ュ逕滄€∝ョ「 */\n  Graduate = 'GRADUATE'\n}\n\nexport type ReturnInventoryInput = {\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?type=design&node-id=5516-17223&mode=design&t=VyQNd7WBQTitGSBL-4 */\n  optionServices?: InputMaybe<Array<ReturnInventoryOptionServiceInput>>;\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16786 */\n  questionnaire: ReturnInventoryQuestionnaireInput;\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16770 */\n  requests: ReturnInventoryRequestInput;\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16628 */\n  returnShipments: Array<ReturnShipmentInput>;\n};\n\nexport type ReturnInventoryOptionServiceInput = {\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?type=design&node-id=5516-16787&mode=design&t=8zJPh42sdIkficQW-4 */\n  comment?: InputMaybe<Scalars['String']['input']>;\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?type=design&node-id=5516-17223&mode=design&t=8zJPh42sdIkficQW-4 */\n  optionServiceType: OptionServiceType;\n};\n\nexport type ReturnInventoryOptionServiceTemporary = {\n  __typename?: 'ReturnInventoryOptionServiceTemporary';\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?type=design&node-id=5516-16787&mode=design&t=8zJPh42sdIkficQW-4 */\n  comment?: Maybe<Scalars['String']['output']>;\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?type=design&node-id=5516-17223&mode=design&t=8zJPh42sdIkficQW-4 */\n  optionServiceType?: Maybe<OptionServiceType>;\n};\n\nexport type ReturnInventoryOptionServiceTemporaryInput = {\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?type=design&node-id=5516-16787&mode=design&t=8zJPh42sdIkficQW-4 */\n  comment?: InputMaybe<Scalars['String']['input']>;\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?type=design&node-id=5516-17223&mode=design&t=8zJPh42sdIkficQW-4 */\n  optionServiceType?: InputMaybe<OptionServiceType>;\n};\n\nexport type ReturnInventoryQuestionnaireInput = {\n  /** Madras: shipment_evaluations.scores cleaner, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16848 */\n  cleanliness: Scalars['Int']['input'];\n  /** Madras: shipment_evaluations.plan, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16836 */\n  planSatisfaction: Scalars['Int']['input'];\n  /** Madras: shipment_evaluations.promoter, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16807 */\n  recommendation: Scalars['Int']['input'];\n};\n\nexport type ReturnInventoryQuestionnaireTemporary = {\n  __typename?: 'ReturnInventoryQuestionnaireTemporary';\n  /** Madras: shipment_evaluations.scores cleaner, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16848 */\n  cleanliness?: Maybe<Scalars['Int']['output']>;\n  /** Madras: shipment_evaluations.plan, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16836 */\n  planSatisfaction?: Maybe<Scalars['Int']['output']>;\n  /** Madras: shipment_evaluations.promoter, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16807 */\n  recommendation?: Maybe<Scalars['Int']['output']>;\n};\n\nexport type ReturnInventoryQuestionnaireTemporaryInput = {\n  /** Madras: shipment_evaluations.scores cleaner, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16848 */\n  cleanliness?: InputMaybe<Scalars['Int']['input']>;\n  /** Madras: shipment_evaluations.plan, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16836 */\n  planSatisfaction?: InputMaybe<Scalars['Int']['input']>;\n  /** Madras: shipment_evaluations.promoter, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16807 */\n  recommendation?: InputMaybe<Scalars['Int']['input']>;\n};\n\nexport type ReturnInventoryRequestInput = {\n  /** Madras: shipments.comment_of_received, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16783 */\n  opinionsAndRequests?: InputMaybe<Scalars['String']['input']>;\n  /** Madras: shipments.child_interesting_of_received, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16778 */\n  requests?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type ReturnInventoryRequestTemporary = {\n  __typename?: 'ReturnInventoryRequestTemporary';\n  /** Madras: shipments.comment_of_received, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16783 */\n  opinionsAndRequests?: Maybe<Scalars['String']['output']>;\n  /** Madras: shipments.child_interesting_of_received, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16778 */\n  requests?: Maybe<Scalars['String']['output']>;\n};\n\nexport type ReturnInventoryRequestTemporaryInput = {\n  /** Madras: shipments.comment_of_received, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16783 */\n  opinionsAndRequests?: InputMaybe<Scalars['String']['input']>;\n  /** Madras: shipments.child_interesting_of_received, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16778 */\n  requests?: InputMaybe<Scalars['String']['input']>;\n};\n\nexport type ReturnInventoryTemporary = {\n  __typename?: 'ReturnInventoryTemporary';\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?type=design&node-id=5516-17223&mode=design&t=VyQNd7WBQTitGSBL-4 */\n  optionServices?: Maybe<Array<ReturnInventoryOptionServiceTemporary>>;\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16786 */\n  questionnaire: ReturnInventoryQuestionnaireTemporary;\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16770 */\n  requests: ReturnInventoryRequestTemporary;\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16628 */\n  returnShipments: Array<ReturnShipmentTemporary>;\n};\n\nexport type ReturnInventoryTemporaryInput = {\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?type=design&node-id=5516-17223&mode=design&t=VyQNd7WBQTitGSBL-4 */\n  optionServices?: InputMaybe<Array<ReturnInventoryOptionServiceTemporaryInput>>;\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16786 */\n  questionnaire: ReturnInventoryQuestionnaireTemporaryInput;\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16770 */\n  requests: ReturnInventoryRequestTemporaryInput;\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16628 */\n  returnShipments: Array<InputMaybe<ReturnShipmentTemporaryInput>>;\n};\n\nexport type ReturnShipmentInput = {\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16633 */\n  returnToys: Array<ReturnToyInput>;\n  /** Madras: shipments.uuid, Figma: (none) */\n  shipmentUuid: Scalars['ID']['input'];\n};\n\nexport type ReturnShipmentTemporary = {\n  __typename?: 'ReturnShipmentTemporary';\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16633 */\n  returnToys: Array<ReturnToyTemporary>;\n  /** Madras: shipments.uuid, Figma: (none) */\n  shipmentUuid: Scalars['ID']['output'];\n};\n\nexport type ReturnShipmentTemporaryInput = {\n  /** Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16633 */\n  returnToys: Array<InputMaybe<ReturnToyTemporaryInput>>;\n  /** Madras: shipments.uuid, Figma: (none) */\n  shipmentUuid: Scalars['ID']['input'];\n};\n\nexport type ReturnToyInput = {\n  /** Madras: shipment_toys.survey, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16682 */\n  comment?: InputMaybe<Scalars['String']['input']>;\n  /** Madras: shipment_toys.evaluation, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16678 */\n  evaluation: Scalars['Int']['input'];\n  /** Madras: shipment_toys.shipment_toy_status_id, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16667 */\n  receiveStatus: ShipmentToyCustomerReceiveStatus;\n  /** Madras: shipment_toys.uuid, Figma: (none) */\n  shipmentToyUuid: Scalars['ID']['input'];\n};\n\nexport type ReturnToyTemporary = {\n  __typename?: 'ReturnToyTemporary';\n  /** Madras: shipment_toys.survey, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16682 */\n  comment?: Maybe<Scalars['String']['output']>;\n  /** Madras: shipment_toys.evaluation, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16678 */\n  evaluation?: Maybe<Scalars['Int']['output']>;\n  /** Madras: shipment_toys.shipment_toy_status_id, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16667 */\n  receiveStatus?: Maybe<ShipmentToyCustomerReceiveStatus>;\n  /** Madras: shipment_toys.uuid, figma: (none)  */\n  shipmentToyUuid: Scalars['ID']['output'];\n};\n\nexport type ReturnToyTemporaryInput = {\n  /** Madras: shipment_toys.survey, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16682 */\n  comment?: InputMaybe<Scalars['String']['input']>;\n  /** Madras: shipment_toys.evaluation, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16678 */\n  evaluation?: InputMaybe<Scalars['Int']['input']>;\n  /** Madras: shipment_toys.shipment_toy_status_id, Figma: https://www.figma.com/file/GqGMRYe7i3et3ESdCoAlkr/mypage?node-id=1327%3A16667 */\n  receiveStatus?: InputMaybe<ShipmentToyCustomerReceiveStatus>;\n  /** Madras: shipment_toys.uuid, figma: (none)  */\n  shipmentToyUuid: Scalars['ID']['input'];\n};\n\n/** Input for the `messages` argument of `@rulesForArray`. */\nexport type RulesForArrayMessage = {\n  /** Message to display if the rule fails, e.g. `\"Must be a valid email\"`. */\n  message: Scalars['String']['input'];\n  /** Name of the rule, e.g. `\"email\"`. */\n  rule: Scalars['String']['input'];\n};\n\n/** Input for the `messages` argument of `@rules`. */\nexport type RulesMessage = {\n  /** Message to display if the rule fails, e.g. `\"Must be a valid email\"`. */\n  message: Scalars['String']['input'];\n  /** Name of the rule, e.g. `\"email\"`. */\n  rule: Scalars['String']['input'];\n};\n\nexport type Shipment = {\n  __typename?: 'Shipment';\n  /** 縺薙�逋コ騾√↓髢「騾」莉倥¢繧峨l縺溯ソス蜉�逋コ騾� */\n  additionalShipments: Array<Shipment>;\n  applyReturnAt?: Maybe<Scalars['String']['output']>;\n  canReturnInventory: Scalars['Boolean']['output'];\n  commentOfReceived?: Maybe<Scalars['String']['output']>;\n  createdAt?: Maybe<Scalars['String']['output']>;\n  deliveryMethodTime?: Maybe<DeliveryMethodTime>;\n  expiresAt?: Maybe<Scalars['String']['output']>;\n  familyCustomerAddress?: Maybe<FamilyCustomerAddress>;\n  familyCustomerContractedPlan?: Maybe<FamilyCustomerContractedPlan>;\n  id: Scalars['ID']['output'];\n  isShipped?: Maybe<Scalars['Boolean']['output']>;\n  nextAvailableReturnInventoryDate?: Maybe<Scalars['String']['output']>;\n  nextAvailableShippingDate?: Maybe<Scalars['String']['output']>;\n  /** 菫晁ュキ閠��譁ケ縺ク 縺ォ陦ィ遉コ縺吶k譁�ィ€繧丹rtega縺ァ逕滓�縺吶k TODO: #764 蟆�擂逧�↓縺ッMadras縺九i譁�ィ€繧帝€√▲縺ヲ繧ゅi縺Мadrass縺ィ譁�ィ€繧貞酔譛溘@縺溘> */\n  noteOfPlanSheet: Array<Scalars['String']['output']>;\n  parentShipment?: Maybe<Shipment>;\n  planComment?: Maybe<Scalars['String']['output']>;\n  planTitle?: Maybe<Scalars['String']['output']>;\n  plannerMessage?: Maybe<Scalars['String']['output']>;\n  relatedShipments: Array<Shipment>;\n  /** 霑泌唆逕ウ隲九ヵ繧ゥ繝シ繝�縺ョURL繧定ソ斐@縺セ縺吶€ゑシ郁ソ泌唆逕ウ隲九′蜿ッ閭ス縺ァ縺ェ縺��エ蜷医↓繧ょ€、縺瑚ソ斐j縺セ縺呻シ� */\n  returnApplicationFormUrl: Scalars['String']['output'];\n  returnedAt?: Maybe<Scalars['String']['output']>;\n  shipmentStatus?: Maybe<ShipmentStatus>;\n  shipmentToys: Array<ShipmentToy>;\n  shipmentType?: Maybe<ShipmentType>;\n  shippedAt?: Maybe<Scalars['String']['output']>;\n  specifiedDeliveryDate?: Maybe<Scalars['String']['output']>;\n  /** 逋コ騾∝燕莠、謠帷筏隲�(繝√Λ隕九○)縺ョ譛牙柑譛滄剞譌・譎ゅ€ゅ€碁。ァ螳「遒コ隱堺クュ縲阪↓縺ェ繧句燕(=繝√Λ隕九○髢句ァ句燕)縺ッ null 繧定ソ斐☆ */\n  toyExchangePreShippingExpirationDate?: Maybe<Scalars['String']['output']>;\n  uuid: Scalars['ID']['output'];\n};\n\nexport type ShipmentFilterInput = {\n  /** 逋コ騾∵律譎�(shippedAt)縺ョ蜈・蜉帶怏辟。 */\n  isShippedAtFilled?: InputMaybe<Scalars['Boolean']['input']>;\n  /** 逋コ騾∫憾諷�(ShipmentStatus) 縺ョ UUID 縺ョ繝ェ繧ケ繝� */\n  statusUuids?: InputMaybe<Array<Scalars['ID']['input']>>;\n  /** 逋コ騾∫ィョ鬘�(ShipmentType) 縺ョ UUID 縺ョ繝ェ繧ケ繝� */\n  typeUuids?: InputMaybe<Array<Scalars['ID']['input']>>;\n};\n\nexport type ShipmentStatus = {\n  __typename?: 'ShipmentStatus';\n  name: Scalars['String']['output'];\n  uuid: Scalars['ID']['output'];\n};\n\nexport type ShipmentToy = {\n  __typename?: 'ShipmentToy';\n  individualToy?: Maybe<IndividualToy>;\n  shipmentToyCustomerReceiveStatus?: Maybe<ShipmentToyCustomerReceiveStatus>;\n  shipmentToyStatus?: Maybe<ShipmentToyStatus>;\n  toy: Toy;\n  uuid: Scalars['ID']['output'];\n};\n\nexport enum ShipmentToyCustomerPreShippingStatus {\n  /** 縺吶〒縺ォ謖√▲縺ヲ縺�k */\n  AlreadyHave = 'ALREADY_HAVE',\n  /** \"縺薙�縺セ縺セ縺ァ繧医> */\n  GoodAsItIs = 'GOOD_AS_IT_IS'\n}\n\nexport enum ShipmentToyCustomerReceiveStatus {\n  /** 邯咏カ� */\n  Continuation = 'CONTINUATION',\n  /** \"雉シ蜈・ */\n  Purchase = 'PURCHASE',\n  /** 霑泌唆 */\n  Return = 'RETURN'\n}\n\nexport type ShipmentToyStatus = {\n  __typename?: 'ShipmentToyStatus';\n  name: Scalars['String']['output'];\n  uuid: Scalars['ID']['output'];\n};\n\nexport type ShipmentType = {\n  __typename?: 'ShipmentType';\n  name: Scalars['String']['output'];\n  uuid: Scalars['ID']['output'];\n};\n\nexport type Shipments = {\n  __typename?: 'Shipments';\n  familyCustomerContractedPlanUuid: Scalars['ID']['output'];\n  shipments: Array<Shipment>;\n};\n\nexport enum SignInResult {\n  /** 繧オ繧、繝ウ繧、繝ウ螟ア謨� 窶サ迴セ譎らせ縺ァ縺ッ繧オ繧、繝ウ繧、繝ウ螟ア謨玲凾縺ッ errors 縺ァ諠��ア繧定ソ斐@縺ヲ縺�k縺溘a菴ソ繧上l縺ェ縺� */\n  Fail = 'FAIL',\n  /** 繝代せ繝ッ繝シ繝芽ェ崎ィシ縺ッ謌仙粥縺励◆縺御コ梧ョオ髫手ェ崎ィシ縺悟ソ�ヲ� */\n  RequireMfa = 'REQUIRE_MFA',\n  /** 繧オ繧、繝ウ繧、繝ウ謌仙粥 */\n  Success = 'SUCCESS'\n}\n\nexport type SubscriptionCoupon = {\n  __typename?: 'SubscriptionCoupon';\n  discountAmount: Scalars['Int']['output'];\n  duration: Scalars['String']['output'];\n  durationInMonths?: Maybe<Scalars['Int']['output']>;\n  name: Scalars['String']['output'];\n};\n\nexport type SubscriptionInfo = {\n  __typename?: 'SubscriptionInfo';\n  description: Scalars['String']['output'];\n  name: Scalars['String']['output'];\n  price: Scalars['Int']['output'];\n  uuid: Scalars['ID']['output'];\n};\n\n/** 繧オ繝�繝阪う繝ォ逕サ蜒上�URL縺ッ繝ォ繝シ繝ォ縺ォ蠕薙▲縺ヲOB縺ァ逕滓�縺吶k�亥ー�擂逧�↓縺ッ繧オ繝�繝阪う繝ォ逕滓�縺吶kMB縺九iURL繧偵b繧峨>縺溘>�� */\nexport type ThumbnailImage = {\n  __typename?: 'ThumbnailImage';\n  pathFixed128: Scalars['String']['output'];\n  pathFixed256: Scalars['String']['output'];\n  pathFixed512: Scalars['String']['output'];\n  pathFixed1280: Scalars['String']['output'];\n};\n\nexport type Toy = {\n  __typename?: 'Toy';\n  /** 繧サ繝�ヨ蜀�ョケ */\n  accessories?: Maybe<Scalars['String']['output']>;\n  /** 縺翫b縺。繧�ェャ譏取枚 */\n  commentOfPlanSheet?: Maybe<Scalars['String']['output']>;\n  name: Scalars['String']['output'];\n  nameOfPlanSheet?: Maybe<Scalars['String']['output']>;\n  /** 縺皮蕗諢丈コ矩�� Madras縺九i蜿嶺ソ。縺励◆noteOfPlanSheet縺ォ縲√ヰ繝�ユ繝ェ繝シ縺ォ髢「縺吶k逡呎э莠矩��r蜉�縺医※front縺ォ騾√k TODO: #764 蟆�擂逧�↓縺ッMadras縺九i譁�ィ€繧帝€√▲縺ヲ繧ゅi縺Мadrass縺ィ譁�ィ€繧貞酔譛溘@縺溘> */\n  noteOfPlanSheet: Array<Scalars['String']['output']>;\n  secondHandsPrice?: Maybe<Scalars['Int']['output']>;\n  toyImages: Array<ToyImage>;\n  toyMaker?: Maybe<ToyMaker>;\n  toyMakerNameOfPlanSheet?: Maybe<Scalars['String']['output']>;\n  uuid: Scalars['ID']['output'];\n};\n\nexport type ToyCoupon = {\n  __typename?: 'ToyCoupon';\n  couponNumber: Scalars['String']['output'];\n  couponStatus: CouponStatus;\n  expiresAt?: Maybe<Scalars['String']['output']>;\n  isCombinable: Scalars['Boolean']['output'];\n  issuedAt: Scalars['String']['output'];\n  price: Scalars['Int']['output'];\n  usedAt?: Maybe<Scalars['String']['output']>;\n  uuid: Scalars['String']['output'];\n};\n\nexport type ToyImage = {\n  __typename?: 'ToyImage';\n  path: Scalars['String']['output'];\n  thumbnailImage: ThumbnailImage;\n  uuid: Scalars['ID']['output'];\n};\n\nexport type ToyMaker = {\n  __typename?: 'ToyMaker';\n  comment?: Maybe<Scalars['String']['output']>;\n  createdAt: Scalars['String']['output'];\n  name: Scalars['String']['output'];\n  nameOfPronunciation?: Maybe<Scalars['String']['output']>;\n  updatedAt: Scalars['String']['output'];\n  url?: Maybe<Scalars['String']['output']>;\n  uuid: Scalars['ID']['output'];\n};\n\nexport type UpdateCustomerBillingInfoInput = {\n  address1: Scalars['String']['input'];\n  address2: Scalars['String']['input'];\n  buildingName: Scalars['String']['input'];\n  firstName: Scalars['String']['input'];\n  lastName: Scalars['String']['input'];\n  pref: Scalars['String']['input'];\n  tel: Scalars['String']['input'];\n  zipCode: Scalars['String']['input'];\n};\n\nexport type UpdateFamilyCustomerAddressInput = {\n  address1: Scalars['String']['input'];\n  address2: Scalars['String']['input'];\n  buildingName: Scalars['String']['input'];\n  deliveryMethodTime?: InputMaybe<FamilyCustomerAddressDeliveryMethodTimeInput>;\n  firstName: Scalars['String']['input'];\n  lastName: Scalars['String']['input'];\n  pref: Scalars['String']['input'];\n  tel: Scalars['String']['input'];\n  zipCode: Scalars['String']['input'];\n};\n\n\n      export interface PossibleTypesResultData {\n        possibleTypes: {\n          [key: string]: string[]\n        }\n      }\n      const result: PossibleTypesResultData = {\n  \"possibleTypes\": {}\n};\n      export default result;\n    ","import { type Messaging, getMessaging, getToken, isSupported } from \"firebase/messaging\";\n\nexport const getFCMToken = async (): Promise<string | undefined> => {\n  const isSupport = await isSupported();\n  if (!isSupport) {\n    return;\n  }\n\n  const registration = await navigator.serviceWorker.getRegistration();\n  if (!registration?.active) {\n    return;\n  }\n\n  let messaging: Messaging;\n  try {\n    messaging = getMessaging();\n  } catch (e: unknown) {\n    return;\n  }\n\n  return await getToken(messaging, { vapidKey: process.env.FCM_VAPID_KEY, serviceWorkerRegistration: registration });\n};\n","interface LocalStorageInterface<T> {\n  readonly key: string;\n  readonly data: T;\n  readonly timestamp: number;\n  readonly expires?: number;\n}\n\nexport const setItem = <T>(input: LocalStorageInterface<T>): void => {\n  localStorage.setItem(input.key, JSON.stringify(input));\n};\n\nexport const getItem = <T>(key: string): T | undefined => {\n  const getItemJson = localStorage.getItem(key);\n  if (!getItemJson) {\n    return undefined;\n  }\n  const localStorageInterface = JSON.parse(getItemJson) as LocalStorageInterface<T>;\n  if (localStorageInterface.expires && Date.now() > localStorageInterface.expires) {\n    // 譛牙柑譛滄剞縺悟�繧後※縺�l縺ー蜑企勁縺吶k\n    localStorage.removeItem(key);\n    return undefined;\n  }\n\n  return localStorageInterface.data;\n};\n","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n  randomUUID\n};","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n  // lazy load so that environments that need to polyfill have a chance to do so\n  if (!getRandomValues) {\n    // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n    getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n    if (!getRandomValues) {\n      throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n    }\n  }\n\n  return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n  byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n  // Note: Be careful editing this code!  It's been tuned for performance\n  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n  return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n}\n\nfunction stringify(arr, offset = 0) {\n  const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID.  If this throws, it's likely due to one\n  // of the following:\n  // - One or more input array values don't map to a hex octet (leading to\n  // \"undefined\" in the uuid)\n  // - Invalid input values for the RFC `version` or `variant` fields\n\n  if (!validate(uuid)) {\n    throw TypeError('Stringified UUID is invalid');\n  }\n\n  return uuid;\n}\n\nexport default stringify;","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n  if (native.randomUUID && !buf && !options) {\n    return native.randomUUID();\n  }\n\n  options = options || {};\n  const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n  rnds[6] = rnds[6] & 0x0f | 0x40;\n  rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n  if (buf) {\n    offset = offset || 0;\n\n    for (let i = 0; i < 16; ++i) {\n      buf[offset + i] = rnds[i];\n    }\n\n    return buf;\n  }\n\n  return unsafeStringify(rnds);\n}\n\nexport default v4;","import { PinpointServiceException as __BaseException } from \"./PinpointServiceException\";\nexport const __EndpointTypesElement = {\n    ADM: \"ADM\",\n    APNS: \"APNS\",\n    APNS_SANDBOX: \"APNS_SANDBOX\",\n    APNS_VOIP: \"APNS_VOIP\",\n    APNS_VOIP_SANDBOX: \"APNS_VOIP_SANDBOX\",\n    BAIDU: \"BAIDU\",\n    CUSTOM: \"CUSTOM\",\n    EMAIL: \"EMAIL\",\n    GCM: \"GCM\",\n    IN_APP: \"IN_APP\",\n    PUSH: \"PUSH\",\n    SMS: \"SMS\",\n    VOICE: \"VOICE\",\n};\nexport const __TimezoneEstimationMethodsElement = {\n    PHONE_NUMBER: \"PHONE_NUMBER\",\n    POSTAL_CODE: \"POSTAL_CODE\",\n};\nexport const Action = {\n    DEEP_LINK: \"DEEP_LINK\",\n    OPEN_APP: \"OPEN_APP\",\n    URL: \"URL\",\n};\nexport const AttributeType = {\n    AFTER: \"AFTER\",\n    BEFORE: \"BEFORE\",\n    BETWEEN: \"BETWEEN\",\n    CONTAINS: \"CONTAINS\",\n    EXCLUSIVE: \"EXCLUSIVE\",\n    INCLUSIVE: \"INCLUSIVE\",\n    ON: \"ON\",\n};\nexport const DimensionType = {\n    EXCLUSIVE: \"EXCLUSIVE\",\n    INCLUSIVE: \"INCLUSIVE\",\n};\nexport const Duration = {\n    DAY_14: \"DAY_14\",\n    DAY_30: \"DAY_30\",\n    DAY_7: \"DAY_7\",\n    HR_24: \"HR_24\",\n};\nexport const RecencyType = {\n    ACTIVE: \"ACTIVE\",\n    INACTIVE: \"INACTIVE\",\n};\nexport const Operator = {\n    ALL: \"ALL\",\n    ANY: \"ANY\",\n};\nexport const MessageType = {\n    PROMOTIONAL: \"PROMOTIONAL\",\n    TRANSACTIONAL: \"TRANSACTIONAL\",\n};\nexport const ChannelType = {\n    ADM: \"ADM\",\n    APNS: \"APNS\",\n    APNS_SANDBOX: \"APNS_SANDBOX\",\n    APNS_VOIP: \"APNS_VOIP\",\n    APNS_VOIP_SANDBOX: \"APNS_VOIP_SANDBOX\",\n    BAIDU: \"BAIDU\",\n    CUSTOM: \"CUSTOM\",\n    EMAIL: \"EMAIL\",\n    GCM: \"GCM\",\n    IN_APP: \"IN_APP\",\n    PUSH: \"PUSH\",\n    SMS: \"SMS\",\n    VOICE: \"VOICE\",\n};\nexport const Alignment = {\n    CENTER: \"CENTER\",\n    LEFT: \"LEFT\",\n    RIGHT: \"RIGHT\",\n};\nexport const Mode = {\n    DELIVERY: \"DELIVERY\",\n    FILTER: \"FILTER\",\n};\nexport class BadRequestException extends __BaseException {\n    constructor(opts) {\n        super({\n            name: \"BadRequestException\",\n            $fault: \"client\",\n            ...opts,\n        });\n        this.name = \"BadRequestException\";\n        this.$fault = \"client\";\n        Object.setPrototypeOf(this, BadRequestException.prototype);\n        this.Message = opts.Message;\n        this.RequestID = opts.RequestID;\n    }\n}\nexport const ButtonAction = {\n    CLOSE: \"CLOSE\",\n    DEEP_LINK: \"DEEP_LINK\",\n    LINK: \"LINK\",\n};\nexport const FilterType = {\n    ENDPOINT: \"ENDPOINT\",\n    SYSTEM: \"SYSTEM\",\n};\nexport const Layout = {\n    BOTTOM_BANNER: \"BOTTOM_BANNER\",\n    CAROUSEL: \"CAROUSEL\",\n    MIDDLE_BANNER: \"MIDDLE_BANNER\",\n    MOBILE_FEED: \"MOBILE_FEED\",\n    OVERLAYS: \"OVERLAYS\",\n    TOP_BANNER: \"TOP_BANNER\",\n};\nexport const Frequency = {\n    DAILY: \"DAILY\",\n    EVENT: \"EVENT\",\n    HOURLY: \"HOURLY\",\n    IN_APP_EVENT: \"IN_APP_EVENT\",\n    MONTHLY: \"MONTHLY\",\n    ONCE: \"ONCE\",\n    WEEKLY: \"WEEKLY\",\n};\nexport const CampaignStatus = {\n    COMPLETED: \"COMPLETED\",\n    DELETED: \"DELETED\",\n    EXECUTING: \"EXECUTING\",\n    INVALID: \"INVALID\",\n    PAUSED: \"PAUSED\",\n    PENDING_NEXT_RUN: \"PENDING_NEXT_RUN\",\n    SCHEDULED: \"SCHEDULED\",\n};\nexport class ConflictException extends __BaseException {\n    constructor(opts) {\n        super({\n            name: \"ConflictException\",\n            $fault: \"client\",\n            ...opts,\n        });\n        this.name = \"ConflictException\";\n        this.$fault = \"client\";\n        Object.setPrototypeOf(this, ConflictException.prototype);\n        this.Message = opts.Message;\n        this.RequestID = opts.RequestID;\n    }\n}\nexport class ForbiddenException extends __BaseException {\n    constructor(opts) {\n        super({\n            name: \"ForbiddenException\",\n            $fault: \"client\",\n            ...opts,\n        });\n        this.name = \"ForbiddenException\";\n        this.$fault = \"client\";\n        Object.setPrototypeOf(this, ForbiddenException.prototype);\n        this.Message = opts.Message;\n        this.RequestID = opts.RequestID;\n    }\n}\nexport class InternalServerErrorException extends __BaseException {\n    constructor(opts) {\n        super({\n            name: \"InternalServerErrorException\",\n            $fault: \"server\",\n            ...opts,\n        });\n        this.name = \"InternalServerErrorException\";\n        this.$fault = \"server\";\n        Object.setPrototypeOf(this, InternalServerErrorException.prototype);\n        this.Message = opts.Message;\n        this.RequestID = opts.RequestID;\n    }\n}\nexport class MethodNotAllowedException extends __BaseException {\n    constructor(opts) {\n        super({\n            name: \"MethodNotAllowedException\",\n            $fault: \"client\",\n            ...opts,\n        });\n        this.name = \"MethodNotAllowedException\";\n        this.$fault = \"client\";\n        Object.setPrototypeOf(this, MethodNotAllowedException.prototype);\n        this.Message = opts.Message;\n        this.RequestID = opts.RequestID;\n    }\n}\nexport class NotFoundException extends __BaseException {\n    constructor(opts) {\n        super({\n            name: \"NotFoundException\",\n            $fault: \"client\",\n            ...opts,\n        });\n        this.name = \"NotFoundException\";\n        this.$fault = \"client\";\n        Object.setPrototypeOf(this, NotFoundException.prototype);\n        this.Message = opts.Message;\n        this.RequestID = opts.RequestID;\n    }\n}\nexport class PayloadTooLargeException extends __BaseException {\n    constructor(opts) {\n        super({\n            name: \"PayloadTooLargeException\",\n            $fault: \"client\",\n            ...opts,\n        });\n        this.name = \"PayloadTooLargeException\";\n        this.$fault = \"client\";\n        Object.setPrototypeOf(this, PayloadTooLargeException.prototype);\n        this.Message = opts.Message;\n        this.RequestID = opts.RequestID;\n    }\n}\nexport class TooManyRequestsException extends __BaseException {\n    constructor(opts) {\n        super({\n            name: \"TooManyRequestsException\",\n            $fault: \"client\",\n            ...opts,\n        });\n        this.name = \"TooManyRequestsException\";\n        this.$fault = \"client\";\n        Object.setPrototypeOf(this, TooManyRequestsException.prototype);\n        this.Message = opts.Message;\n        this.RequestID = opts.RequestID;\n    }\n}\nexport const JobStatus = {\n    COMPLETED: \"COMPLETED\",\n    COMPLETING: \"COMPLETING\",\n    CREATED: \"CREATED\",\n    FAILED: \"FAILED\",\n    FAILING: \"FAILING\",\n    INITIALIZING: \"INITIALIZING\",\n    PENDING_JOB: \"PENDING_JOB\",\n    PREPARING_FOR_INITIALIZATION: \"PREPARING_FOR_INITIALIZATION\",\n    PROCESSING: \"PROCESSING\",\n};\nexport const Format = {\n    CSV: \"CSV\",\n    JSON: \"JSON\",\n};\nexport const DayOfWeek = {\n    FRIDAY: \"FRIDAY\",\n    MONDAY: \"MONDAY\",\n    SATURDAY: \"SATURDAY\",\n    SUNDAY: \"SUNDAY\",\n    THURSDAY: \"THURSDAY\",\n    TUESDAY: \"TUESDAY\",\n    WEDNESDAY: \"WEDNESDAY\",\n};\nexport const State = {\n    ACTIVE: \"ACTIVE\",\n    CANCELLED: \"CANCELLED\",\n    CLOSED: \"CLOSED\",\n    COMPLETED: \"COMPLETED\",\n    DRAFT: \"DRAFT\",\n    PAUSED: \"PAUSED\",\n};\nexport const SourceType = {\n    ALL: \"ALL\",\n    ANY: \"ANY\",\n    NONE: \"NONE\",\n};\nexport const Type = {\n    ALL: \"ALL\",\n    ANY: \"ANY\",\n    NONE: \"NONE\",\n};\nexport const Include = {\n    ALL: \"ALL\",\n    ANY: \"ANY\",\n    NONE: \"NONE\",\n};\nexport const SegmentType = {\n    DIMENSIONAL: \"DIMENSIONAL\",\n    IMPORT: \"IMPORT\",\n};\nexport const DeliveryStatus = {\n    DUPLICATE: \"DUPLICATE\",\n    OPT_OUT: \"OPT_OUT\",\n    PERMANENT_FAILURE: \"PERMANENT_FAILURE\",\n    SUCCESSFUL: \"SUCCESSFUL\",\n    TEMPORARY_FAILURE: \"TEMPORARY_FAILURE\",\n    THROTTLED: \"THROTTLED\",\n    UNKNOWN_FAILURE: \"UNKNOWN_FAILURE\",\n};\nexport const TemplateType = {\n    EMAIL: \"EMAIL\",\n    INAPP: \"INAPP\",\n    PUSH: \"PUSH\",\n    SMS: \"SMS\",\n    VOICE: \"VOICE\",\n};\n","import { getFCMToken } from \"@/modules/utils/firebase\";\nimport { Analytics } from \"@aws-amplify/analytics\";\nimport { setItem, getItem } from \"./local-storage\";\nimport { v4 as uuidv4 } from \"uuid\";\nimport { ChannelType } from \"@aws-sdk/client-pinpoint\";\nimport { datadogLogs } from \"@datadog/browser-logs\";\n\nexport interface User {\n  readonly id: string;\n  readonly userAttributes?: UserAttributes;\n}\nexport interface UserAttributes {\n  readonly mail?: string;\n  readonly membershipType: MembershipType;\n}\ntype MembershipType = \"LEAD\" | \"CUSTOMER\";\n\nconst cachePrefix = `aws-cacheAWSPinpoint_${process.env.AA_AWS_MOBILE_ANALYTICS_APP_ID ?? \"\"}`;\n\nexport const mobiletargetingUpdateEndpoint = async (user: Partial<User>): Promise<void> => {\n  try {\n    const currentToken = await getFCMToken();\n    if (!currentToken) {\n      return;\n    }\n    const cacheKey = `${cachePrefix}_${ChannelType.GCM.valueOf()}`;\n    // biome-ignore lint/complexity/noVoid :[AUTOMATICALLY-INSERTED] The use of void is not allowed.\n    void updateEndpoint(cacheKey, currentToken, user, ChannelType.GCM);\n    // biome-ignore lint/suspicious/noEmptyBlockStatements :[AUTOMATICALLY-INSERTED] Unexpected empty block.\n  } catch (e: unknown) {}\n};\n\nexport const mailTargetingUpdateEndpoint = async (mail: string, user: Partial<User>): Promise<void> => {\n  try {\n    const cacheKey = `${cachePrefix}_${ChannelType.EMAIL.valueOf()}`;\n    // biome-ignore lint/complexity/noVoid :[AUTOMATICALLY-INSERTED] The use of void is not allowed.\n    void updateEndpoint(cacheKey, mail, user, ChannelType.EMAIL);\n    // biome-ignore lint/suspicious/noEmptyBlockStatements :[AUTOMATICALLY-INSERTED] Unexpected empty block.\n  } catch (e: unknown) {}\n};\n\nconst updateEndpoint = async (\n  cacheKey: string,\n  address: string,\n  user: Partial<User>,\n  channelType: ChannelType,\n): Promise<void> => {\n  const endpointId = getItem(cacheKey) as string;\n  if (endpointId) {\n    Analytics.configure({\n      Analytics: {\n        AWSPinpoint: {\n          endpointId,\n        },\n      },\n    });\n  } else {\n    const amazonPinpointUuid = uuidv4();\n    setItem({\n      key: cacheKey,\n      data: amazonPinpointUuid,\n      timestamp: Date.now(),\n    });\n    Analytics.configure({\n      Analytics: {\n        AWSPinpoint: {\n          endpointId: amazonPinpointUuid,\n        },\n      },\n    });\n  }\n  let userAttributes;\n  if (user.userAttributes !== undefined) {\n    userAttributes = objectToArray(user.userAttributes);\n  }\n\n  try {\n    await Analytics.updateEndpoint({\n      address,\n      channelType: channelType.valueOf(),\n      optOut: \"NONE\",\n      userId: user.id,\n      userAttributes,\n    });\n  } catch (e: unknown) {\n    datadogLogs.logger.warn(\"Amazon Pinpoint update endpoint api is failure.\", e as object);\n  }\n};\nconst objectToArray = (obj: UserAttributes): Record<string, UserAttributes[]> =>\n  Object.entries(obj).reduce<Record<string, UserAttributes[]>>((acc, [key, value]) => {\n    acc[key] = Array.isArray(value) ? value : [value];\n    return acc;\n  }, {});\n","import { PAYMENT_TYPE_STRIPE } from \"@/configs/uuids/payment-type/paymentType\";\nimport { type FamilyCustomerContractedPlan } from \"@/gql/generated/graphql.gen\";\n\nexport type PaymentType = \"stripe\" | \"other\";\n\nexport type partialContractedPlanForCheckPaymentType = Pick<FamilyCustomerContractedPlan, \"uuid\" | \"paymentType\">;\n\nexport const getPaymentTypeFromContractedPlansAndContractId = (\n  contractedPlans: partialContractedPlanForCheckPaymentType[] | null | undefined,\n  contractId: string,\n): PaymentType => {\n  const paymentTypeUuid = contractedPlans?.find((plan) => plan.uuid === contractId)?.paymentType?.uuid;\n\n  switch (paymentTypeUuid) {\n    case PAYMENT_TYPE_STRIPE:\n      return \"stripe\";\n    default:\n      return \"other\";\n  }\n};\n","import {\n  SHIPMENT_STATUS_NOT_STARTED,\n  SHIPMENT_STATUS_IN_PROGRESS_PLAN,\n  SHIPMENT_STATUS_COMPLETE_PLAN,\n  SHIPMENT_STATUS_WAITING_FOR_REVIEW,\n  SHIPMENT_STATUS_RESERVED,\n  SHIPMENT_STATUS_CUSTOMER_CONFIRM_REQUESTED,\n  SHIPMENT_STATUS_CUSTOMER_CONFIRMING,\n} from \"@/configs/uuids/shipments/statuses\";\n\n// 縺翫b縺。繧�コ門y荳ュ縺九←縺�°\nexport const isPreparing = (shipmentStatusUuid: string): boolean => {\n  return (\n    // 譛ェ逹€謇� or 繝励Λ繝ウ荳ュ or 繝ャ繝薙Η繝シ蠕�■ or 繝励Λ繝ウ貂医∩ or 鬘ァ螳「遒コ隱堺セ晞�シ or 鬘ァ螳「遒コ隱堺クュ or 逋コ騾∽ソ晉蕗\n    shipmentStatusUuid === SHIPMENT_STATUS_NOT_STARTED ||\n    shipmentStatusUuid === SHIPMENT_STATUS_IN_PROGRESS_PLAN ||\n    shipmentStatusUuid === SHIPMENT_STATUS_COMPLETE_PLAN ||\n    shipmentStatusUuid === SHIPMENT_STATUS_WAITING_FOR_REVIEW ||\n    shipmentStatusUuid === SHIPMENT_STATUS_CUSTOMER_CONFIRM_REQUESTED ||\n    shipmentStatusUuid === SHIPMENT_STATUS_CUSTOMER_CONFIRMING ||\n    shipmentStatusUuid === SHIPMENT_STATUS_RESERVED\n  );\n};\n","import { type GetIndexPagesFamilyCustomerQuery } from \"@/pages/_index/__gql__/get-family-customer.gen\";\nimport { type GetIndexPagesShipmentsQuery } from \"@/pages/_index/__gql__/get-shipments.gen\";\n\nexport const extractContractedPlanUuids = (\n  contractedPlans: GetIndexPagesFamilyCustomerQuery[\"familyCustomer\"][\"familyCustomerContractedPlans\"],\n  option?: { first?: boolean },\n): string[] | undefined => {\n  const uuids = contractedPlans?.map(({ uuid }) => uuid);\n\n  if (option?.first) {\n    if (uuids?.[0] === undefined) {\n      return undefined;\n    }\n    return [uuids[0]];\n  }\n  return uuids;\n};\n\nexport const findShipmentsFromContractedPlanUuids = (\n  selectedContractedPlanUuid: string | undefined,\n  shipments: GetIndexPagesShipmentsQuery[\"shipments\"] | undefined,\n): GetIndexPagesShipmentsQuery[\"shipments\"][0][\"shipments\"] | undefined => {\n  if (selectedContractedPlanUuid === undefined && shipments === undefined) {\n    return undefined;\n    // biome-ignore lint/style/useBlockStatements :[AUTOMATICALLY-INSERTED] Block statements are preferred in this position.\n  } else\n    return shipments?.find(\n      ({ familyCustomerContractedPlanUuid }) => familyCustomerContractedPlanUuid === selectedContractedPlanUuid,\n    )?.shipments;\n};\n","import { Typography } from \"@/components/essentials/typography\";\nimport { Flex } from \"@chakra-ui/react\";\nimport { Box } from \"@/components/essentials/box\";\nimport { type FC } from \"react\";\nimport Image from \"next/image\";\nimport toyboxOpen from \"~/assets/images/toybox-open.svg\";\nimport { planningImageTestId, planningTestId, planningTypographyTestId } from \"./const\";\n\nexport const Planning: FC = () => {\n  return (\n    <Flex\n      data-testid={planningTestId}\n      flexDir=\"column\"\n      gridRowGap={2}\n      w=\"100%\"\n      justifyContent=\"center\"\n      alignItems=\"center\"\n    >\n      <Box>\n        <Image data-testid={planningImageTestId} src={toyboxOpen} alt=\"toybox\" width={110} height={110} />\n      </Box>\n      <Box data-testid={planningTypographyTestId} textAlign=\"center\">\n        <Typography variant=\"text4\" color=\"gray.main\" mb=\"0.3125rem\">\n          縺翫b縺。繧��蛻ー逹€縺セ縺ァ蟆代€�♀蠕�■荳九&縺Ыn        </Typography>\n        <Typography variant=\"display1\">縺翫b縺。繧��貅門y繧偵@縺ヲ縺�∪縺�</Typography>\n      </Box>\n    </Flex>\n  );\n};\n","export { Planning } from \"./Planning\";\n","import { type GetIndexPagesFamilyCustomerQuery } from \"@/pages/_index/__gql__/get-family-customer.gen\";\nimport { type GetIndexPagesShipmentsQuery } from \"@/pages/_index/__gql__/get-shipments.gen\";\nimport { type GetIndexPagesMeQuery } from \"@/pages/_index/__gql__/get-me.gen\";\nimport { type GetPlansPagesIndexQuery } from \"@/pages/_index/__gql__/get-plans.gen\";\nimport { createWithEqualityFn } from \"zustand/traditional\";\n\nexport interface FamilyCustomerQueryState {\n  readonly familyCustomersQuery: GetIndexPagesFamilyCustomerQuery | undefined;\n  readonly set: (newValue: GetIndexPagesFamilyCustomerQuery | undefined) => void;\n}\nexport const useFamilyCustomerQueryStore = createWithEqualityFn<FamilyCustomerQueryState>()(\n  (set) => ({\n    familyCustomersQuery: undefined,\n    set: (newValue: GetIndexPagesFamilyCustomerQuery | undefined) => {\n      set({ familyCustomersQuery: newValue });\n    },\n  }),\n  Object.is,\n);\n\nexport interface ShipmentsQueryState {\n  readonly shipmentsQuery: GetIndexPagesShipmentsQuery | undefined;\n  readonly set: (newValue: GetIndexPagesShipmentsQuery | undefined) => void;\n}\nexport const useShipmentsQueryStore = createWithEqualityFn<ShipmentsQueryState>()(\n  (set) => ({\n    shipmentsQuery: undefined,\n    set: (newValue: GetIndexPagesShipmentsQuery | undefined) => {\n      set({ shipmentsQuery: newValue });\n    },\n  }),\n  Object.is,\n);\n\nexport interface MeQueryState {\n  readonly meQuery: GetIndexPagesMeQuery | undefined;\n  readonly set: (newValue: GetIndexPagesMeQuery | undefined) => void;\n}\nexport const useMeQueryStore = createWithEqualityFn<MeQueryState>()(\n  (set) => ({\n    meQuery: undefined,\n    set: (newValue: GetIndexPagesMeQuery | undefined) => {\n      set({ meQuery: newValue });\n    },\n  }),\n  Object.is,\n);\n\nexport interface PlansQueryState {\n  readonly plansQuery: GetPlansPagesIndexQuery | undefined;\n  readonly set: (newValue: GetPlansPagesIndexQuery | undefined) => void;\n}\nexport const usePlansQueryStore = createWithEqualityFn<PlansQueryState>()(\n  (set) => ({\n    plansQuery: undefined,\n    set: (newValue: GetPlansPagesIndexQuery | undefined) => {\n      set({ plansQuery: newValue });\n    },\n  }),\n  Object.is,\n);\n\nexport interface SelectedContractIdState {\n  readonly selectedContractId: string | undefined;\n  readonly set: (newValue: string | undefined) => void;\n}\nexport const selectedContractStore = createWithEqualityFn<SelectedContractIdState>()(\n  (set) => ({\n    selectedContractId: undefined,\n    set: (newValue: string | undefined) => {\n      set({ selectedContractId: newValue });\n    },\n  }),\n  Object.is,\n);\n","import { useMemo, type FC } from \"react\";\nimport Link from \"next/link\";\nimport { type ShipmentStatus } from \"@/pages/_index/__components__/statuses/types\";\nimport { Typography } from \"@/components/essentials/typography\";\nimport { Button } from \"@/components/essentials/button\";\nimport { type ReturnStatusProps } from \"@/pages/_index/__components__/statuses/ReturnStatuses\";\nimport { Center, Flex, Image } from \"@chakra-ui/react\";\nimport { Box } from \"@/components/essentials/box\";\nimport toyboxClosed from \"~/assets/images/toybox-closed.svg\";\nimport toyboxOpen from \"~/assets/images/toybox-open.svg\";\nimport { formatAsiaTokyoDateToString } from \"@/modules/utils/date\";\nimport { pagesPath } from \"@/pathpida/generated/$path\";\nimport {\n  type MeQueryState,\n  useMeQueryStore,\n  useFamilyCustomerQueryStore,\n  type FamilyCustomerQueryState,\n  selectedContractStore,\n  type SelectedContractIdState,\n} from \"@/pages/_index/__modules__/store\";\nimport {\n  returnInventoryButtonTestId,\n  returnInventoryCanReturnInventoryTestId,\n  returnInventoryImageTestId,\n  returnInventoryNotReturnInventoryTestId,\n  returnInventoryTestId,\n} from \"./const\";\nimport { useGetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery } from \"@/pages/purchase/[shipmentId]/__gql__/get-is-purchased-shipment-toys.gen\";\nimport { type PaymentType, getPaymentTypeFromContractedPlansAndContractId } from \"@/modules/utils/payment-type\";\n\ninterface ReturnInvenotoryProps {\n  readonly status: Extract<ShipmentStatus, \"notReturnInventory\" | \"canReturnInventory\">;\n  readonly latestShipment: NonNullable<ReturnStatusProps[\"data\"]>[0] | undefined;\n}\n\nexport const ReturnInventory: FC<ReturnInvenotoryProps> = ({ status, latestShipment }) => {\n  const resultIsPurchasedShipmentToys = useGetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery({\n    skip: !latestShipment,\n    variables: { shipmentId: latestShipment?.uuid ?? \"\" },\n  });\n\n  const meAtomState = useMeQueryStore((state: MeQueryState) => state.meQuery);\n  const familyCustomerStore = useFamilyCustomerQueryStore(\n    (state: FamilyCustomerQueryState) => state.familyCustomersQuery,\n  );\n  const selectedContractId = selectedContractStore((state: SelectedContractIdState) => state.selectedContractId);\n\n  const paymentType: PaymentType | undefined = useMemo(() => {\n    // biome-ignore lint/style/useBlockStatements :[AUTOMATICALLY-INSERTED] Block statements are preferred in this position.\n    if (!familyCustomerStore || !selectedContractId) return;\n\n    return getPaymentTypeFromContractedPlansAndContractId(\n      familyCustomerStore.familyCustomer.familyCustomerContractedPlans,\n      selectedContractId,\n    );\n  }, [familyCustomerStore, selectedContractId]);\n\n  return (\n    <Flex\n      data-testid={returnInventoryTestId}\n      flexDir=\"column\"\n      gridRowGap={4}\n      w=\"100%\"\n      justifyContent=\"center\"\n      alignItems=\"center\"\n    >\n      <Box>\n        <Image\n          data-testid={returnInventoryImageTestId}\n          src={status === \"notReturnInventory\" ? toyboxClosed : toyboxOpen}\n          alt=\"toybox\"\n          width={110}\n          height={110}\n        />\n      </Box>\n      {status === \"notReturnInventory\" && (\n        <Box data-testid={returnInventoryNotReturnInventoryTestId} textAlign=\"center\">\n          <Typography variant=\"text4\" color=\"gray.main\" mb=\"0.3125rem\">\n            谺。蝗槭�莠、謠帷筏隲句庄閭ス譌・\n          </Typography>\n          <Typography variant=\"display1\">\n            {formatAsiaTokyoDateToString(latestShipment?.nextAvailableReturnInventoryDate, \"yyyy蟷エMM譛�dd譌・\")}\n          </Typography>\n        </Box>\n      )}\n      {status === \"canReturnInventory\" && (\n        <Box data-testid={returnInventoryCanReturnInventoryTestId} textAlign=\"center\">\n          <Typography variant=\"display1\">縺翫b縺。繧�コ、謠帙�逕ウ隲九′縺ァ縺阪∪縺�</Typography>\n        </Box>\n      )}\n      <Center h=\"3rem\">\n        {meAtomState?.me.isReceiver && status === \"canReturnInventory\" && (\n          <Button\n            as={Link}\n            href={\n              resultIsPurchasedShipmentToys.data?.isPurchasedShipmentToys ||\n              !meAtomState.me.isContractor ||\n              paymentType !== \"stripe\"\n                ? pagesPath.exchange._shipmentId(latestShipment?.uuid ?? \"\").$url()\n                : pagesPath.purchase._shipmentId(latestShipment?.uuid ?? \"\").$url()\n            }\n            data-testid={returnInventoryButtonTestId}\n            variant=\"solid\"\n          >\n            莠、謠帷筏隲九☆繧欺n          </Button>\n        )}\n        {meAtomState?.me.isReceiver && status === \"notReturnInventory\" && (\n          <Button data-testid={returnInventoryButtonTestId} disabled variant=\"solid\">\n            莠、謠帷筏隲九☆繧欺n          </Button>\n        )}\n      </Center>\n    </Flex>\n  );\n};\n","export { ReturnInventory } from \"./ReturnInventory\";\n","import { Typography } from \"@/components/essentials/typography\";\nimport { Flex } from \"@chakra-ui/react\";\nimport { Box } from \"@/components/essentials/box\";\nimport { useMemo, type FC } from \"react\";\nimport Image from \"next/image\";\nimport toyboxClosed from \"~/assets/images/toybox-closed.svg\";\nimport { type ShipmentStatus } from \"@/pages/_index/__components__/statuses/types\";\nimport { type MeQueryState, useMeQueryStore } from \"@/pages/_index/__modules__/store\";\nimport { appliedImageTestId, appliedTestId } from \"./const\";\n\ninterface AppliedProps {\n  readonly status: Extract<ShipmentStatus, \"applied\" | \"returned\">;\n}\n\nexport const Applied: FC<AppliedProps> = ({ status }) => {\n  const meAtomState = useMeQueryStore((state: MeQueryState) => state.meQuery);\n  const isVisibleConfirmMessages = useMemo<boolean>(() => {\n    if (status === \"returned\" || meAtomState?.me.isReceiver !== true) {\n      return false;\n    }\n\n    return true;\n  }, [meAtomState, status]);\n\n  return (\n    <Flex\n      data-testid={appliedTestId}\n      flexDir=\"column\"\n      gridRowGap={4}\n      w=\"100%\"\n      justifyContent=\"center\"\n      alignItems=\"center\"\n    >\n      <Box>\n        <Image data-testid={appliedImageTestId} src={toyboxClosed} alt=\"toybox\" width={110} height={110} />\n      </Box>\n      <Typography variant=\"display1\">莠、謠帷筏隲九r蜿励¢莉倥¢縺セ縺励◆</Typography>\n      {isVisibleConfirmMessages ? (\n        <Typography variant=\"text4\" color=\"gray.main\" mb=\"0.3125rem\">\n          逕ウ隲句�螳ケ繧定ィ倩シ峨@縺溘Γ繝シ繝ォ繧偵♀騾√j縺励∪縺励◆\n          <br />\n          逕ウ隲句�螳ケ縺ォ縺、縺阪∪縺励※縺ッ繝。繝シ繝ォ繧偵#遒コ隱阪¥縺�縺輔>\n        </Typography>\n      ) : null}\n    </Flex>\n  );\n};\n","export { Applied } from \"./Applied\";\n","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name compareDesc\n * @category Common Helpers\n * @summary Compare the two dates reverse chronologically and return -1, 0 or 1.\n *\n * @description\n * Compare the two dates and return -1 if the first date is after the second,\n * 1 if the first date is before the second or 0 if dates are equal.\n *\n * @param {Date|Number} dateLeft - the first date to compare\n * @param {Date|Number} dateRight - the second date to compare\n * @returns {Number} the result of the comparison\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Compare 11 February 1987 and 10 July 1989 reverse chronologically:\n * const result = compareDesc(new Date(1987, 1, 11), new Date(1989, 6, 10))\n * //=> 1\n *\n * @example\n * // Sort the array of dates in reverse chronological order:\n * const result = [\n *   new Date(1995, 6, 2),\n *   new Date(1987, 1, 11),\n *   new Date(1989, 6, 10)\n * ].sort(compareDesc)\n * //=> [\n * //   Sun Jul 02 1995 00:00:00,\n * //   Mon Jul 10 1989 00:00:00,\n * //   Wed Feb 11 1987 00:00:00\n * // ]\n */\nexport default function compareDesc(dirtyDateLeft, dirtyDateRight) {\n  requiredArgs(2, arguments);\n  var dateLeft = toDate(dirtyDateLeft);\n  var dateRight = toDate(dirtyDateRight);\n  var diff = dateLeft.getTime() - dateRight.getTime();\n  if (diff > 0) {\n    return -1;\n  } else if (diff < 0) {\n    return 1;\n    // Return 0 if diff is 0; return NaN if diff is NaN\n  } else {\n    return diff;\n  }\n}","import {\n  SHIPMENT_STATUS_COMPLETE_PLAN,\n  SHIPMENT_STATUS_COMPLETE_RETURN_CONFIRMING,\n  SHIPMENT_STATUS_COMPLETE_RETURN_REQUESTED,\n  SHIPMENT_STATUS_COMPLETE_SHIPMENT,\n  SHIPMENT_STATUS_IN_PROGRESS_PLAN,\n  SHIPMENT_STATUS_NOT_STARTED,\n  SHIPMENT_STATUS_RESERVED,\n  SHIPMENT_STATUS_RETURN_CONFIRMING,\n  SHIPMENT_STATUS_WAITING_FOR_REVIEW,\n  SHIPMENT_STATUS_RETURN_REQUESTED,\n  SHIPMENT_STATUS_CUSTOMER_CONFIRM_REQUESTED,\n  SHIPMENT_STATUS_CUSTOMER_CONFIRMING,\n} from \"@/configs/uuids/shipments/statuses\";\nimport type { ReturnStatusProps } from \"./ReturnStatuses\";\nimport { type ShipmentStatus } from \"./types\";\nimport { datadogLogs } from \"@datadog/browser-logs\";\nimport { compareDesc, parse } from \"date-fns\";\n\nexport const switchStatus = (\n  shipments: ReturnStatusProps[\"data\"] | undefined,\n  me: ReturnStatusProps[\"me\"] | undefined,\n):\n  | {\n      status: ShipmentStatus;\n      latestShipment: NonNullable<ReturnStatusProps[\"data\"]>[0] | undefined;\n    }\n  | undefined => {\n  const newestShipment = getNewestShipment(shipments);\n\n  if (\n    newestShipment !== undefined &&\n    // 繝√Λ隕九○譛滄俣: 鬘ァ螳「遒コ隱堺クュ && 驟埼€∝�\n    canPreview(newestShipment, me)\n  ) {\n    return { status: \"canPreview\", latestShipment: newestShipment };\n  }\n\n  const latestShipment = shipments?.[0];\n  if (latestShipment === undefined) {\n    return undefined;\n  }\n\n  const shipmentStatusUuid = latestShipment.shipmentStatus?.uuid;\n  if (\n    // 縺翫b縺。繧�コ門y荳ュ: 譛ェ逹€謇� or 繝励Λ繝ウ荳ュ or 繝ャ繝薙Η繝シ蠕�■ or 繝励Λ繝ウ貂医∩ or 鬘ァ螳「遒コ隱堺セ晞�シ or 逋コ騾∽ソ晉蕗\n    shipmentStatusUuid === SHIPMENT_STATUS_NOT_STARTED ||\n    shipmentStatusUuid === SHIPMENT_STATUS_IN_PROGRESS_PLAN ||\n    shipmentStatusUuid === SHIPMENT_STATUS_COMPLETE_PLAN ||\n    shipmentStatusUuid === SHIPMENT_STATUS_WAITING_FOR_REVIEW ||\n    shipmentStatusUuid === SHIPMENT_STATUS_CUSTOMER_CONFIRM_REQUESTED ||\n    shipmentStatusUuid === SHIPMENT_STATUS_RESERVED ||\n    (shipmentStatusUuid === SHIPMENT_STATUS_CUSTOMER_CONFIRMING && !me?.isReceiver)\n  ) {\n    return { status: \"planning\", latestShipment };\n  } else if (\n    // 縺翫b縺。繧�コ、謠帑ク榊庄譛滄俣: 逋コ騾∵ク医∩ && 縺翫b縺。繧�コ、謠帑ク榊庄\n    shipmentStatusUuid === SHIPMENT_STATUS_COMPLETE_SHIPMENT &&\n    !latestShipment.canReturnInventory\n  ) {\n    return { status: \"notReturnInventory\", latestShipment };\n  } else if (\n    // 縺翫b縺。繧�コ、謠帛庄閭ス譛滄俣: 逋コ騾∵ク� && 縺翫b縺。繧�コ、謠帛庄閭ス\n    shipmentStatusUuid === SHIPMENT_STATUS_COMPLETE_SHIPMENT &&\n    latestShipment.canReturnInventory\n  ) {\n    return { status: \"canReturnInventory\", latestShipment };\n  } else if (\n    // 縺翫b縺。繧��莠、謠帷筏隲句女莉俶ク医∩: 譛€譁ー蜿キ縺ョ逋コ騾√せ繝��繧ソ繧ケ�夊ソ泌唆逕ウ隲倶クュ縲∬ソ泌唆逕ウ隲区ク�\n    shipmentStatusUuid === SHIPMENT_STATUS_COMPLETE_RETURN_REQUESTED ||\n    shipmentStatusUuid === SHIPMENT_STATUS_RETURN_REQUESTED\n  ) {\n    return { status: \"applied\", latestShipment };\n  } else if (\n    // 縺翫b縺。繧��莠、謠帷筏隲句女莉俶ク医∩: 譛€譁ー蜿キ縺ョ逋コ騾√せ繝��繧ソ繧ケ�夊ソ泌唆遒コ隱堺クュ縲∬ソ泌唆遒コ隱肴ク�\n    shipmentStatusUuid === SHIPMENT_STATUS_RETURN_CONFIRMING ||\n    shipmentStatusUuid === SHIPMENT_STATUS_COMPLETE_RETURN_CONFIRMING\n  ) {\n    return { status: \"returned\", latestShipment };\n  } else {\n    datadogLogs.logger.error(\"unreachable code: unexpected shipmentStatus\", {\n      shipmentStatusUuid,\n      canReturnInventory: latestShipment.canReturnInventory,\n      applyReturnAt: latestShipment.applyReturnAt,\n    });\n\n    return undefined;\n  }\n};\n\nconst getNewestShipment = (\n  shipments: ReturnStatusProps[\"data\"] | undefined,\n): NonNullable<ReturnStatusProps[\"data\"]>[0] | undefined => {\n  return shipments?.slice()?.sort((a, b) => {\n    return compareDesc(\n      parse(a.createdAt ?? \"\", \"yyyy-MM-dd HH:mm:ss\", new Date()),\n      parse(b.createdAt ?? \"\", \"yyyy-MM-dd HH:mm:ss\", new Date()),\n    );\n  })[0];\n};\n\nconst canPreview = (\n  shipment: NonNullable<ReturnStatusProps[\"data\"]>[0],\n  me: ReturnStatusProps[\"me\"] | undefined,\n): boolean => {\n  return shipment.shipmentStatus?.uuid === SHIPMENT_STATUS_CUSTOMER_CONFIRMING && me?.isReceiver === true;\n};\n","import { Typography } from \"@/components/essentials/typography\";\nimport { Box } from \"@/components/essentials/box\";\nimport { type FC } from \"react\";\nimport { Center, Flex, Image } from \"@chakra-ui/react\";\nimport { previewImageTestId, previewTestId, previewTypographyTestId } from \"./const\";\nimport Planner from \"~/assets/images/planner.svg\";\nimport Link from \"next/link\";\nimport { Button } from \"@/components/essentials/button\";\nimport { pagesPath } from \"@/pathpida/generated/$path\";\nimport { type ReturnStatusProps } from \"@/pages/_index/__components__/statuses/ReturnStatuses\";\n\ninterface PreviewProps {\n  readonly latestShipment: NonNullable<ReturnStatusProps[\"data\"]>[0] | undefined;\n}\n\nexport const Preview: FC<PreviewProps> = ({ latestShipment }) => {\n  return (\n    <Flex\n      data-testid={previewTestId}\n      flexDir=\"column\"\n      gridRowGap={2}\n      w=\"100%\"\n      justifyContent=\"center\"\n      alignItems=\"center\"\n    >\n      <Box>\n        <Image\n          src={Planner}\n          alt=\"繝励Λ繝ウ繝翫�\"\n          bgColor=\"mono.light.100\"\n          border=\"1px\"\n          borderColor=\"border.main\"\n          p=\"1\"\n          borderRadius=\"50%\"\n          mb=\"2\"\n          data-testid={previewImageTestId}\n        />\n      </Box>\n      <Box data-testid={previewTypographyTestId} textAlign=\"center\">\n        <Typography variant=\"display1\" mb=\"2\">\n          縺翫b縺。繧��繝ゥ繝ウ繧偵#遒コ隱阪¥縺�縺輔>\n        </Typography>\n        <Typography variant=\"text4\" color=\"mono.dark.54\" mb=\"0.3125rem\">\n          縺頑焔謖√■縺ョ縺翫b縺。繧�↓鬘樔シシ縺励◆縺翫b縺。繧�′蜷ォ縺セ繧後k蝣エ蜷医€∬ゥイ蠖薙♀繧ゅ■繧��螟画峩繧堤筏隲九☆繧九%縺ィ縺後〒縺阪∪縺吶€�\n        </Typography>\n      </Box>\n      <Center h=\"3rem\">\n        <Button\n          as={Link}\n          href={pagesPath.plans.detail._shipmentId(latestShipment?.uuid ?? \"\").$url()}\n          data-testid=\"returnInventoryButtonTestId\"\n          variant=\"solid\"\n        >\n          繝励Λ繝ウ縺ョ遒コ隱阪€∫筏隲九�縺薙■繧噂n        </Button>\n      </Center>\n    </Flex>\n  );\n};\n","import { type FC, useMemo } from \"react\";\nimport { Planning } from \"./switch-statuses/planning\";\nimport { ReturnInventory } from \"./switch-statuses/return-inventory\";\nimport { Applied } from \"./switch-statuses/applied\";\nimport { switchStatus } from \"./module\";\nimport { type GetIndexPagesShipmentsQuery } from \"@/pages/_index/__gql__/get-shipments.gen\";\nimport { type GetIndexPagesMeQuery } from \"@/pages/_index/__gql__/get-me.gen\";\nimport { Preview } from \"./switch-statuses/preview/Preview\";\n\nexport interface ReturnStatusProps {\n  readonly data: GetIndexPagesShipmentsQuery[\"shipments\"][0][\"shipments\"] | undefined;\n  readonly me: GetIndexPagesMeQuery[\"me\"] | undefined;\n}\n\nexport const ReturnStatutes: FC<ReturnStatusProps> = ({ data, me }) => {\n  const resultLatestShipments = useMemo(() => switchStatus(data, me), [data, me]);\n\n  switch (resultLatestShipments?.status) {\n    case \"planning\":\n      return <Planning />;\n    case \"canPreview\":\n      return <Preview latestShipment={resultLatestShipments.latestShipment} />;\n    case \"notReturnInventory\":\n    case \"canReturnInventory\":\n      return (\n        <ReturnInventory status={resultLatestShipments.status} latestShipment={resultLatestShipments.latestShipment} />\n      );\n    case \"applied\":\n    case \"returned\":\n      return <Applied status={resultLatestShipments.status} />;\n    default:\n      return <Planning />;\n  }\n};\n","export { ReturnStatutes } from \"./ReturnStatuses\";\nexport type { ReturnStatusProps } from \"./ReturnStatuses\";\n","import { Icon } from \"@/components/essentials/icon\";\nimport { Typography } from \"@/components/essentials/typography\";\nimport { HStack, Spacer } from \"@chakra-ui/react\";\nimport Image from \"next/image\";\nimport Link from \"next/link\";\nimport { type FC } from \"react\";\nimport box from \"~/assets/images/box.svg\";\nimport { planHistoryButtonTestId } from \"./const\";\nimport { pagesPath } from \"@/pathpida/generated/$path\";\n\nexport interface PlanHistoryButtonProps {\n  readonly contractedUuid: string;\n}\n\nexport const PlanHistoryButton: FC<PlanHistoryButtonProps> = (props) => {\n  return (\n    <HStack\n      as={Link}\n      href={{ pathname: pagesPath.plans.history.$url().pathname, query: { \"contract-id\": props.contractedUuid } }}\n      p=\"1.25rem\"\n      bgColor=\"mono.light.100\"\n      borderRadius=\"0.5rem\"\n      data-testid={planHistoryButtonTestId}\n    >\n      <Image src={box} alt=\"box-icon\" width={40} height={40} />\n      <Typography variant=\"display6\">縺翫b縺。繧��螻・豁エ縺ッ縺薙■繧�</Typography>\n      <Spacer />\n      <Icon as=\"angleRight\" />\n    </HStack>\n  );\n};\n","import { type GetPlansPagesIndexQuery } from \"@/pages/_index/__gql__/get-plans.gen\";\nimport { getViewableShipmentPlans, type Shipment } from \"@/components/fragments/plan\";\nimport { type ShipmentPlan } from \"@/components/fragments/plan/type\";\nimport { pagesPath } from \"@/pathpida/generated/$path\";\n\nexport const getViewableShipmentPlansByContractedPlan = (\n  selectedContractedPlanUuid: string | undefined,\n  shipments: GetPlansPagesIndexQuery[\"shipments\"] | undefined,\n): ShipmentPlan[] | undefined => {\n  return getViewableShipmentPlans(getShipments(selectedContractedPlanUuid, shipments), {\n    getPlanDetailHref: (shipmentId) => pagesPath.plans.detail._shipmentId(shipmentId).$url(),\n  });\n};\n\nconst getShipments = (\n  selectedContractedPlanUuid: string | undefined,\n  shipments: GetPlansPagesIndexQuery[\"shipments\"] | undefined,\n): Shipment[] | undefined => {\n  if (selectedContractedPlanUuid === undefined && shipments === undefined) {\n    return undefined;\n  }\n\n  return shipments?.find(\n    ({ familyCustomerContractedPlanUuid }) => familyCustomerContractedPlanUuid === selectedContractedPlanUuid,\n  )?.shipments;\n};\n","import { isBefore, parse } from \"date-fns\";\nimport { type GetIndexPagesFamilyCustomerQuery } from \"@/pages/_index/__gql__/get-family-customer.gen\";\n\n// 螂醍エ�′謠蝉セ帑クュ > 螂醍エ�′蛛懈ュ「荳ュ > 螂醍エ�律譎ゅ′蜿、縺�′荳� 縺ォ荳ヲ縺ケ繧欺nexport const sortFamilyCustomerContractedPlan = (\n  familyCustomerContractedPlans: GetIndexPagesFamilyCustomerQuery[\"familyCustomer\"][\"familyCustomerContractedPlans\"],\n): GetIndexPagesFamilyCustomerQuery[\"familyCustomer\"][\"familyCustomerContractedPlans\"] => {\n  return familyCustomerContractedPlans?.slice().sort((a, b) => {\n    // isActive 縺� true 縺ョ繧ゅ�繧貞�縺ォ荳ヲ縺ケ繧欺n    if (a.isActive !== b.isActive) {\n      return a.isActive ? -1 : 1;\n    }\n\n    // isActive 縺悟酔縺伜�エ蜷医�縲…reatedAt 縺ョ譏���↓荳ヲ縺ケ繧欺n    // biome-ignore lint/style/useBlockStatements :[AUTOMATICALLY-INSERTED] Block statements are preferred in this position.\n    if (a.contractedAt === undefined || a.contractedAt === null) return 1;\n    // biome-ignore lint/style/useBlockStatements :[AUTOMATICALLY-INSERTED] Block statements are preferred in this position.\n    if (b.contractedAt === undefined || b.contractedAt === null) return -1;\n    return isBefore(\n      parse(a.contractedAt, \"yyyy-MM-dd HH:mm:ss\", new Date()),\n      parse(b.contractedAt, \"yyyy-MM-dd HH:mm:ss\", new Date()),\n    )\n      ? -1\n      : 1;\n  });\n};\n","import { Typography } from \"@/components/essentials/typography\";\nimport { Box } from \"@/components/essentials/box\";\nimport { type FC } from \"react\";\nimport { Center, Flex } from \"@chakra-ui/react\";\nimport {\n  quitApplicationSubmittedButtonTestId,\n  quitApplicationSubmittedTestId,\n  quitApplicationSubmittedTypographyTestId,\n} from \"./const\";\nimport Link from \"next/link\";\nimport { Button } from \"@/components/essentials/button\";\nimport { toysubQuitApplicationCancelUrl } from \"@/configs/externalUrls\";\nimport { format, sub } from \"date-fns\";\n\ninterface QuitApplicationSubmittedProps {\n  readonly nextBillingAt: Date | undefined;\n}\n\nexport const QuitApplicationSubmitted: FC<QuitApplicationSubmittedProps> = ({ nextBillingAt }) => {\n  return (\n    <Center>\n      <Flex\n        data-testid={quitApplicationSubmittedTestId}\n        flexDir=\"column\"\n        gridRowGap={2}\n        w=\"100%\"\n        p={2}\n        justifyContent=\"center\"\n        alignItems=\"center\"\n        bgColor=\"background.alto.20\"\n        borderRadius=\"8px\"\n      >\n        <Box data-testid={quitApplicationSubmittedTypographyTestId} textAlign=\"center\">\n          <Typography variant=\"display3\" mt=\"2\" mb=\"3\">\n            騾€莨壼�逅�r騾イ繧√※縺�∪縺兔n          </Typography>\n          <Typography variant=\"text4\" color=\"mono.dark.54\" mb=\"0.5rem\">\n            {nextBillingAt ? (\n              <strong>谺。蝗櫁ェイ驥大渕貅匁律縺ョ蜑肴律縺ョ{format(sub(nextBillingAt, { days: 1 }), \"M譛�d譌・\")}�亥ソ�捩�峨∪縺ァ縺ォ縲�</strong>\n            ) : (\n              \"縺翫b縺。繧�ソ泌唆譛滄剞譌・縺セ縺ァ縺ォ縲―"\n            )}\n            縺翫b縺。繧�r縺碑ソ泌唆縺上□縺輔>縲�\n          </Typography>\n          <Typography variant=\"text4\" color=\"mono.dark.54\" mb=\"0.5rem\">\n            縺翫b縺。繧��霑泌唆繧堤「コ隱肴ャ。隨ャ縲√♀謇狗カ壹″繧帝€イ繧√&縺帙※縺�◆縺�縺阪∪縺吶€�\n          </Typography>\n          <Typography variant=\"text4\" color=\"mono.dark.54\" mb=\"0.5rem\">\n            騾€莨夂筏隲九r繧ュ繝」繝ウ繧サ繝ォ縺吶k蝣エ蜷医�縺雁撫縺�粋繧上○縺上□縺輔>縲�\n          </Typography>\n        </Box>\n        <Center h=\"3rem\">\n          <Button\n            as={Link}\n            href={toysubQuitApplicationCancelUrl}\n            data-testid={quitApplicationSubmittedButtonTestId}\n            variant=\"solid\"\n          >\n            騾€莨夂筏隲九r繧ュ繝」繝ウ繧サ繝ォ縺吶k\n          </Button>\n        </Center>\n      </Flex>\n    </Center>\n  );\n};\n","export { QuitApplicationSubmitted } from \"./QuitApplicationSubmitted\";\n","// @ts-nocheck\nimport * as Types from '../../../gql/generated/graphql.gen';\n\nimport { gql } from '@apollo/client';\nimport * as Apollo from '@apollo/client';\nconst defaultOptions = {} as const;\nexport type GetQuitApplicationPagesIndexQueryVariables = Types.Exact<{ [key: string]: never; }>;\n\n\nexport type GetQuitApplicationPagesIndexQuery = { __typename?: 'Query', quitApplication: { __typename?: 'QuitApplication', applicableStatus: Types.QuitApplicationApplicableStatus, familyCustomerContractedPlan: { __typename?: 'QuitApplicationFamilyCustomerContractedPlan', nextBillingAt?: any | null } } };\n\n\nexport const GetQuitApplicationPagesIndexDocument = gql`\n    query getQuitApplicationPagesIndex {\n  quitApplication {\n    applicableStatus\n    familyCustomerContractedPlan {\n      nextBillingAt\n    }\n  }\n}\n    `;\n\n/**\n * __useGetQuitApplicationPagesIndexQuery__\n *\n * To run a query within a React component, call `useGetQuitApplicationPagesIndexQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetQuitApplicationPagesIndexQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetQuitApplicationPagesIndexQuery({\n *   variables: {\n *   },\n * });\n */\nexport function useGetQuitApplicationPagesIndexQuery(baseOptions?: Apollo.QueryHookOptions<GetQuitApplicationPagesIndexQuery, GetQuitApplicationPagesIndexQueryVariables>) {\n        const options = {...defaultOptions, ...baseOptions}\n        return Apollo.useQuery<GetQuitApplicationPagesIndexQuery, GetQuitApplicationPagesIndexQueryVariables>(GetQuitApplicationPagesIndexDocument, options);\n      }\nexport function useGetQuitApplicationPagesIndexLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetQuitApplicationPagesIndexQuery, GetQuitApplicationPagesIndexQueryVariables>) {\n          const options = {...defaultOptions, ...baseOptions}\n          return Apollo.useLazyQuery<GetQuitApplicationPagesIndexQuery, GetQuitApplicationPagesIndexQueryVariables>(GetQuitApplicationPagesIndexDocument, options);\n        }\nexport function useGetQuitApplicationPagesIndexSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<GetQuitApplicationPagesIndexQuery, GetQuitApplicationPagesIndexQueryVariables>) {\n          const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n          return Apollo.useSuspenseQuery<GetQuitApplicationPagesIndexQuery, GetQuitApplicationPagesIndexQueryVariables>(GetQuitApplicationPagesIndexDocument, options);\n        }\nexport type GetQuitApplicationPagesIndexQueryHookResult = ReturnType<typeof useGetQuitApplicationPagesIndexQuery>;\nexport type GetQuitApplicationPagesIndexLazyQueryHookResult = ReturnType<typeof useGetQuitApplicationPagesIndexLazyQuery>;\nexport type GetQuitApplicationPagesIndexSuspenseQueryHookResult = ReturnType<typeof useGetQuitApplicationPagesIndexSuspenseQuery>;\nexport type GetQuitApplicationPagesIndexQueryResult = Apollo.QueryResult<GetQuitApplicationPagesIndexQuery, GetQuitApplicationPagesIndexQueryVariables>;","import { BaseCard } from \"@/components/fragments/card/base-card\";\nimport { ContractMenu } from \"@/components/fragments/contract/contract-menu\";\nimport { findShipmentsFromContractedPlanUuids } from \"@/pages/_index/__modules__/array\";\nimport { Box, Stack } from \"@chakra-ui/react\";\nimport { type FC, useEffect, useMemo } from \"react\";\nimport { ReturnStatutes } from \"@/pages/_index/__components__/statuses\";\nimport {\n  type FamilyCustomerQueryState,\n  type MeQueryState,\n  type PlansQueryState,\n  type SelectedContractIdState,\n  selectedContractStore,\n  type ShipmentsQueryState,\n  useFamilyCustomerQueryStore,\n  useMeQueryStore,\n  usePlansQueryStore,\n  useShipmentsQueryStore,\n} from \"@/pages/_index/__modules__/store\";\nimport { Skeleton } from \"@/components/fragments/apollo/loader/skeleton\";\nimport {\n  BaseCardTestId,\n  LabelContractsCountTestId,\n  PlanStackTestId,\n  SkeletonMenuTestId,\n  SkeletonPlanCardTestId,\n  SkeletonReturnStatutesTestId,\n} from \"./const\";\nimport { PlanCardContainer, PlanEmptyBox } from \"@/components/fragments/plan\";\nimport { PlanHistoryButton } from \"@/pages/_index/__components__/plan-history/PlanHistoryButton\";\nimport { getViewableShipmentPlansByContractedPlan } from \"@/pages/_index/__modules__/plan-history\";\nimport { Typography } from \"@/components/essentials/typography\";\nimport { sortFamilyCustomerContractedPlan } from \"./module\";\nimport { type GetIndexPagesFamilyCustomerQuery } from \"@/pages/_index/__gql__/get-family-customer.gen\";\nimport { FAMILY_CUSTOMER_STATUS_QUIT_APPLICATION_SUBMITTED } from \"@/configs/uuids/family-customer-status/familyCustomerStatus\";\nimport { QuitApplicationSubmitted } from \"@/pages/_index/__components__/statuses/switch-statuses/quit-application-submitted\";\nimport { useGetQuitApplicationPagesIndexQuery } from \"@/pages/_index/__gql__/get-quit-application.gen\";\nimport { parse } from \"date-fns\";\nimport { QuitApplicationApplicableStatus } from \"@/gql/generated/graphql.gen\";\n\ninterface ContractToToContentProps {\n  readonly loadings: {\n    contracts: boolean;\n    shipments: boolean;\n    planHistory: boolean;\n    me: boolean;\n  };\n  onChangeSelectedContractId: (contractId: string) => void;\n}\nexport const ContractToContent: FC<ContractToToContentProps> = ({ loadings, onChangeSelectedContractId }) => {\n  const familyCustomerStore = useFamilyCustomerQueryStore(\n    (state: FamilyCustomerQueryState) => state.familyCustomersQuery,\n  );\n  const shipmentsStore = useShipmentsQueryStore((state: ShipmentsQueryState) => state.shipmentsQuery);\n  const planHistoryStore = usePlansQueryStore((state: PlansQueryState) => state.plansQuery);\n  const meStore = useMeQueryStore((state: MeQueryState) => state.meQuery);\n  const selectedContractId = selectedContractStore((state: SelectedContractIdState) => state.selectedContractId);\n  const setSelectedContractId = selectedContractStore((state: SelectedContractIdState) => state.set);\n  // 螂醍エ�′謠蝉セ帑クュ > 螂醍エ�′蛛懈ュ「荳ュ > 螂醍エ�律譎ゅ′蜿、縺�′荳浬n  const sortedFamilyCustomerContractedPlan:\n    | GetIndexPagesFamilyCustomerQuery[\"familyCustomer\"][\"familyCustomerContractedPlans\"]\n    | undefined = useMemo(() => {\n    if (!familyCustomerStore?.familyCustomer.familyCustomerContractedPlans) {\n      return;\n    }\n\n    return sortFamilyCustomerContractedPlan(familyCustomerStore.familyCustomer.familyCustomerContractedPlans);\n  }, [familyCustomerStore]);\n\n  const isQuitApplicationSubmitted = useMemo(\n    () =>\n      familyCustomerStore?.familyCustomer.familyCustomerStatus?.uuid ===\n      FAMILY_CUSTOMER_STATUS_QUIT_APPLICATION_SUBMITTED,\n    [familyCustomerStore?.familyCustomer.familyCustomerStatus?.uuid],\n  );\n\n  const resultQuitApplicationQuery = useGetQuitApplicationPagesIndexQuery({\n    skip: !familyCustomerStore || !isQuitApplicationSubmitted,\n  });\n\n  useEffect(() => {\n    setSelectedContractId(sortedFamilyCustomerContractedPlan?.[0]?.uuid ?? undefined);\n  }, [sortedFamilyCustomerContractedPlan, setSelectedContractId]);\n\n  useEffect(() => {\n    if (selectedContractId) {\n      onChangeSelectedContractId(selectedContractId);\n    }\n  }, [onChangeSelectedContractId, selectedContractId]);\n\n  const latestPlan = useMemo(\n    () => getViewableShipmentPlansByContractedPlan(selectedContractId, planHistoryStore?.shipments)?.[0],\n    [selectedContractId, planHistoryStore?.shipments],\n  );\n\n  return (\n    <Stack spacing=\"1.5rem\">\n      {loadings.contracts || familyCustomerStore === undefined ? (\n        <Skeleton data-testid={SkeletonMenuTestId} py=\"3rem\" />\n      ) : (\n        <div>\n          {familyCustomerStore.familyCustomer.familyCustomerContractedPlans &&\n            familyCustomerStore.familyCustomer.familyCustomerContractedPlans.length >= 2 && (\n              <Box textAlign=\"right\">\n                <Typography color=\"gray.dark\" variant=\"display6\" mb={2} data-testid={LabelContractsCountTestId}>\n                  迴セ蝨ィ縺ョ縺泌・醍エ�焚: {familyCustomerStore.familyCustomer.familyCustomerContractedPlans.length}莉カ\n                </Typography>\n              </Box>\n            )}\n          <ContractMenu\n            contractPlans={sortedFamilyCustomerContractedPlan}\n            initialValue={sortedFamilyCustomerContractedPlan?.[0]}\n            onChange={(contractedId) => {\n              setSelectedContractId(contractedId);\n            }}\n          />\n        </div>\n      )}\n      {loadings.shipments ||\n      loadings.me ||\n      loadings.planHistory ||\n      shipmentsStore === undefined ||\n      meStore === undefined ? (\n        <Skeleton data-testid={SkeletonReturnStatutesTestId} py=\"8rem\" />\n      ) : isQuitApplicationSubmitted ? (\n        <Box p=\"1rem\" borderRadius=\"0.5rem\" bgColor=\"mono.light.100\" data-testid={BaseCardTestId}>\n          <QuitApplicationSubmitted\n            nextBillingAt={\n              resultQuitApplicationQuery.data?.quitApplication.applicableStatus ===\n                QuitApplicationApplicableStatus.Regular &&\n              resultQuitApplicationQuery.data.quitApplication.familyCustomerContractedPlan.nextBillingAt\n                ? parse(\n                    resultQuitApplicationQuery.data.quitApplication.familyCustomerContractedPlan.nextBillingAt,\n                    \"yyyy-MM-dd HH:mm:ss\",\n                    new Date(),\n                  )\n                : undefined\n            }\n          />\n        </Box>\n      ) : (\n        <BaseCard data-testid={BaseCardTestId}>\n          <ReturnStatutes\n            data={findShipmentsFromContractedPlanUuids(selectedContractId, shipmentsStore.shipments)}\n            me={meStore.me}\n          />\n        </BaseCard>\n      )}\n      {loadings.planHistory || planHistoryStore === undefined ? (\n        <Skeleton data-testid={SkeletonPlanCardTestId} py=\"8rem\" />\n      ) : latestPlan === undefined ? (\n        <Box bgColor=\"mono.light.100\" p=\"1rem\" borderRadius=\"0.5rem\">\n          <PlanEmptyBox />\n        </Box>\n      ) : (\n        <Stack spacing=\"1.5rem\" data-testid={PlanStackTestId}>\n          <PlanCardContainer shipmentPlan={latestPlan} />\n          <PlanHistoryButton contractedUuid={selectedContractId ?? \"\"} />\n        </Stack>\n      )}\n    </Stack>\n  );\n};\n","export { ContractToContent } from \"./ContractToContent\";\n","// @ts-nocheck\nimport * as Types from '../../../gql/generated/graphql.gen';\n\nimport { gql } from '@apollo/client';\nimport * as Apollo from '@apollo/client';\nconst defaultOptions = {} as const;\nexport type GetIndexPagesShipmentsQueryVariables = Types.Exact<{\n  familyCustomerContractedPlanUuids: Array<Types.Scalars['ID']['input']> | Types.Scalars['ID']['input'];\n  isReceiver: Types.Scalars['Boolean']['input'];\n}>;\n\n\nexport type GetIndexPagesShipmentsQuery = { __typename?: 'Query', shipments: Array<{ __typename?: 'Shipments', familyCustomerContractedPlanUuid: string, shipments: Array<{ __typename?: 'Shipment', uuid: string, nextAvailableReturnInventoryDate?: string | null, canReturnInventory: boolean, returnApplicationFormUrl?: string, applyReturnAt?: string | null, isShipped?: boolean | null, createdAt?: string | null, shipmentStatus?: { __typename?: 'ShipmentStatus', uuid: string, name: string } | null }> }> };\n\n\nexport const GetIndexPagesShipmentsDocument = gql`\n    query getIndexPagesShipments($familyCustomerContractedPlanUuids: [ID!]!, $isReceiver: Boolean!) {\n  shipments(\n    familyCustomerContractedPlanUuids: $familyCustomerContractedPlanUuids\n    filter: {typeUuids: [\"5fa257cd-6939-4fee-b634-022f7c87e544\", \"0cbef109-8a48-4422-a48f-45be0b79c34d\"]}\n  ) {\n    familyCustomerContractedPlanUuid\n    shipments {\n      uuid\n      nextAvailableReturnInventoryDate\n      canReturnInventory\n      returnApplicationFormUrl @include(if: $isReceiver)\n      applyReturnAt\n      isShipped\n      createdAt\n      shipmentStatus {\n        uuid\n        name\n      }\n    }\n  }\n}\n    `;\n\n/**\n * __useGetIndexPagesShipmentsQuery__\n *\n * To run a query within a React component, call `useGetIndexPagesShipmentsQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetIndexPagesShipmentsQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetIndexPagesShipmentsQuery({\n *   variables: {\n *      familyCustomerContractedPlanUuids: // value for 'familyCustomerContractedPlanUuids'\n *      isReceiver: // value for 'isReceiver'\n *   },\n * });\n */\nexport function useGetIndexPagesShipmentsQuery(baseOptions: Apollo.QueryHookOptions<GetIndexPagesShipmentsQuery, GetIndexPagesShipmentsQueryVariables> & ({ variables: GetIndexPagesShipmentsQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n        const options = {...defaultOptions, ...baseOptions}\n        return Apollo.useQuery<GetIndexPagesShipmentsQuery, GetIndexPagesShipmentsQueryVariables>(GetIndexPagesShipmentsDocument, options);\n      }\nexport function useGetIndexPagesShipmentsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetIndexPagesShipmentsQuery, GetIndexPagesShipmentsQueryVariables>) {\n          const options = {...defaultOptions, ...baseOptions}\n          return Apollo.useLazyQuery<GetIndexPagesShipmentsQuery, GetIndexPagesShipmentsQueryVariables>(GetIndexPagesShipmentsDocument, options);\n        }\nexport function useGetIndexPagesShipmentsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<GetIndexPagesShipmentsQuery, GetIndexPagesShipmentsQueryVariables>) {\n          const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n          return Apollo.useSuspenseQuery<GetIndexPagesShipmentsQuery, GetIndexPagesShipmentsQueryVariables>(GetIndexPagesShipmentsDocument, options);\n        }\nexport type GetIndexPagesShipmentsQueryHookResult = ReturnType<typeof useGetIndexPagesShipmentsQuery>;\nexport type GetIndexPagesShipmentsLazyQueryHookResult = ReturnType<typeof useGetIndexPagesShipmentsLazyQuery>;\nexport type GetIndexPagesShipmentsSuspenseQueryHookResult = ReturnType<typeof useGetIndexPagesShipmentsSuspenseQuery>;\nexport type GetIndexPagesShipmentsQueryResult = Apollo.QueryResult<GetIndexPagesShipmentsQuery, GetIndexPagesShipmentsQueryVariables>;","import { useGetIndexPagesShipmentsQuery } from \"@/pages/_index/__gql__/get-shipments.gen\";\nimport { useEffect } from \"react\";\nimport { type ShipmentsQueryState, useShipmentsQueryStore } from \"@/pages/_index/__modules__/store\";\n\nexport const useGetIndexPagesShipmentsQueryAtom = (\n  options: Parameters<typeof useGetIndexPagesShipmentsQuery>[0],\n): ReturnType<typeof useGetIndexPagesShipmentsQuery> => {\n  const result = useGetIndexPagesShipmentsQuery(options);\n  const setShipmentsAtom = useShipmentsQueryStore((state: ShipmentsQueryState) => state.set);\n\n  useEffect(() => {\n    if (result.data !== undefined) {\n      setShipmentsAtom(result.data);\n    }\n  }, [result.data, setShipmentsAtom]);\n  return result;\n};\n","// @ts-nocheck\nimport * as Types from '../../../gql/generated/graphql.gen';\n\nimport { gql } from '@apollo/client';\nimport * as Apollo from '@apollo/client';\nconst defaultOptions = {} as const;\nexport type GetIndexPagesFamilyCustomerQueryVariables = Types.Exact<{ [key: string]: never; }>;\n\n\nexport type GetIndexPagesFamilyCustomerQuery = { __typename?: 'Query', familyCustomer: { __typename?: 'FamilyCustomer', id?: number | null, uuid: string, hasAnsweredSurvey?: boolean | null, familyCustomerStatus?: { __typename?: 'FamilyCustomerStatus', uuid: string, name?: string | null } | null, familyCustomerContractedPlans?: Array<{ __typename?: 'FamilyCustomerContractedPlan', uuid: string, isActive?: boolean | null, contractedAt?: string | null, subscriptionInfo?: { __typename?: 'SubscriptionInfo', name: string } | null, familyChildren?: Array<{ __typename?: 'FamilyChild', birthday?: string | null } | null> | null, paymentType?: { __typename?: 'PaymentType', uuid: string } | null }> | null } };\n\n\nexport const GetIndexPagesFamilyCustomerDocument = gql`\n    query getIndexPagesFamilyCustomer {\n  familyCustomer {\n    id\n    uuid\n    hasAnsweredSurvey\n    familyCustomerStatus {\n      uuid\n      name\n    }\n    familyCustomerContractedPlans {\n      uuid\n      isActive\n      contractedAt\n      subscriptionInfo {\n        name\n      }\n      familyChildren {\n        birthday\n      }\n      paymentType {\n        uuid\n      }\n    }\n  }\n}\n    `;\n\n/**\n * __useGetIndexPagesFamilyCustomerQuery__\n *\n * To run a query within a React component, call `useGetIndexPagesFamilyCustomerQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetIndexPagesFamilyCustomerQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetIndexPagesFamilyCustomerQuery({\n *   variables: {\n *   },\n * });\n */\nexport function useGetIndexPagesFamilyCustomerQuery(baseOptions?: Apollo.QueryHookOptions<GetIndexPagesFamilyCustomerQuery, GetIndexPagesFamilyCustomerQueryVariables>) {\n        const options = {...defaultOptions, ...baseOptions}\n        return Apollo.useQuery<GetIndexPagesFamilyCustomerQuery, GetIndexPagesFamilyCustomerQueryVariables>(GetIndexPagesFamilyCustomerDocument, options);\n      }\nexport function useGetIndexPagesFamilyCustomerLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetIndexPagesFamilyCustomerQuery, GetIndexPagesFamilyCustomerQueryVariables>) {\n          const options = {...defaultOptions, ...baseOptions}\n          return Apollo.useLazyQuery<GetIndexPagesFamilyCustomerQuery, GetIndexPagesFamilyCustomerQueryVariables>(GetIndexPagesFamilyCustomerDocument, options);\n        }\nexport function useGetIndexPagesFamilyCustomerSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<GetIndexPagesFamilyCustomerQuery, GetIndexPagesFamilyCustomerQueryVariables>) {\n          const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n          return Apollo.useSuspenseQuery<GetIndexPagesFamilyCustomerQuery, GetIndexPagesFamilyCustomerQueryVariables>(GetIndexPagesFamilyCustomerDocument, options);\n        }\nexport type GetIndexPagesFamilyCustomerQueryHookResult = ReturnType<typeof useGetIndexPagesFamilyCustomerQuery>;\nexport type GetIndexPagesFamilyCustomerLazyQueryHookResult = ReturnType<typeof useGetIndexPagesFamilyCustomerLazyQuery>;\nexport type GetIndexPagesFamilyCustomerSuspenseQueryHookResult = ReturnType<typeof useGetIndexPagesFamilyCustomerSuspenseQuery>;\nexport type GetIndexPagesFamilyCustomerQueryResult = Apollo.QueryResult<GetIndexPagesFamilyCustomerQuery, GetIndexPagesFamilyCustomerQueryVariables>;","import { useGetIndexPagesFamilyCustomerQuery } from \"@/pages/_index/__gql__/get-family-customer.gen\";\nimport { useEffect } from \"react\";\nimport { type FamilyCustomerQueryState, useFamilyCustomerQueryStore } from \"@/pages/_index/__modules__/store\";\n\nexport const useGetIndexPagesFamilyCustomerQueryAtom = (\n  options?: Parameters<typeof useGetIndexPagesFamilyCustomerQuery>[0],\n): ReturnType<typeof useGetIndexPagesFamilyCustomerQuery> => {\n  const result = useGetIndexPagesFamilyCustomerQuery(options);\n  const setFamilyCustomerAtomState = useFamilyCustomerQueryStore((state: FamilyCustomerQueryState) => state.set);\n  useEffect(() => {\n    if (result.data !== undefined) {\n      setFamilyCustomerAtomState(result.data);\n    }\n  }, [result.data, setFamilyCustomerAtomState]);\n  return result;\n};\n","// @ts-nocheck\nimport * as Types from '../../../gql/generated/graphql.gen';\n\nimport { gql } from '@apollo/client';\nimport * as Apollo from '@apollo/client';\nconst defaultOptions = {} as const;\nexport type GetIndexPagesMeQueryVariables = Types.Exact<{ [key: string]: never; }>;\n\n\nexport type GetIndexPagesMeQuery = { __typename?: 'Query', me: { __typename?: 'FamilyAccount', uuid: string, mail: string, isReceiver: boolean, isContractor: boolean } };\n\n\nexport const GetIndexPagesMeDocument = gql`\n    query getIndexPagesMe {\n  me {\n    uuid\n    mail\n    isReceiver\n    isContractor\n  }\n}\n    `;\n\n/**\n * __useGetIndexPagesMeQuery__\n *\n * To run a query within a React component, call `useGetIndexPagesMeQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetIndexPagesMeQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetIndexPagesMeQuery({\n *   variables: {\n *   },\n * });\n */\nexport function useGetIndexPagesMeQuery(baseOptions?: Apollo.QueryHookOptions<GetIndexPagesMeQuery, GetIndexPagesMeQueryVariables>) {\n        const options = {...defaultOptions, ...baseOptions}\n        return Apollo.useQuery<GetIndexPagesMeQuery, GetIndexPagesMeQueryVariables>(GetIndexPagesMeDocument, options);\n      }\nexport function useGetIndexPagesMeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetIndexPagesMeQuery, GetIndexPagesMeQueryVariables>) {\n          const options = {...defaultOptions, ...baseOptions}\n          return Apollo.useLazyQuery<GetIndexPagesMeQuery, GetIndexPagesMeQueryVariables>(GetIndexPagesMeDocument, options);\n        }\nexport function useGetIndexPagesMeSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<GetIndexPagesMeQuery, GetIndexPagesMeQueryVariables>) {\n          const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n          return Apollo.useSuspenseQuery<GetIndexPagesMeQuery, GetIndexPagesMeQueryVariables>(GetIndexPagesMeDocument, options);\n        }\nexport type GetIndexPagesMeQueryHookResult = ReturnType<typeof useGetIndexPagesMeQuery>;\nexport type GetIndexPagesMeLazyQueryHookResult = ReturnType<typeof useGetIndexPagesMeLazyQuery>;\nexport type GetIndexPagesMeSuspenseQueryHookResult = ReturnType<typeof useGetIndexPagesMeSuspenseQuery>;\nexport type GetIndexPagesMeQueryResult = Apollo.QueryResult<GetIndexPagesMeQuery, GetIndexPagesMeQueryVariables>;","import { useGetIndexPagesMeQuery } from \"@/pages/_index/__gql__/get-me.gen\";\nimport { useEffect } from \"react\";\nimport { type MeQueryState, useMeQueryStore } from \"@/pages/_index/__modules__/store\";\n\nexport const useGetIndexPagesMeQueryAtom = (\n  options?: Parameters<typeof useGetIndexPagesMeQuery>[0],\n): ReturnType<typeof useGetIndexPagesMeQuery> => {\n  const result = useGetIndexPagesMeQuery(options);\n  const setFamilyCustomerAtomState = useMeQueryStore((state: MeQueryState) => state.set);\n  useEffect(() => {\n    if (result.data !== undefined) {\n      setFamilyCustomerAtomState(result.data);\n    }\n  }, [result.data, setFamilyCustomerAtomState]);\n  return result;\n};\n","export { useGetIndexPagesShipmentsQueryAtom } from \"./useGetIndexPagesShipmentsQueryAtom\";\nexport { useGetIndexPagesFamilyCustomerQueryAtom } from \"./useGetIndexPagesFamilyCustomerQueryAtom\";\nexport { useGetIndexPagesMeQueryAtom } from \"./useGetIndexPagesMeQueryAtom\";\n","// @ts-nocheck\nimport * as Types from '../../../gql/generated/graphql.gen';\n\nimport { gql } from '@apollo/client';\nimport { PlanCardContainerFragmentFieldsFragmentDoc } from '../../../components/fragments/plan/plan-card-container/__gql__/plan-card-container-fragment.gen';\nimport * as Apollo from '@apollo/client';\nconst defaultOptions = {} as const;\nexport type GetPlansPagesIndexQueryVariables = Types.Exact<{\n  familyCustomerContractedPlanUuids: Array<Types.Scalars['ID']['input']> | Types.Scalars['ID']['input'];\n}>;\n\n\nexport type GetPlansPagesIndexQuery = { __typename?: 'Query', shipments: Array<{ __typename?: 'Shipments', familyCustomerContractedPlanUuid: string, shipments: Array<{ __typename?: 'Shipment', uuid: string, shippedAt?: string | null, shipmentType?: { __typename?: 'ShipmentType', uuid: string } | null, shipmentStatus?: { __typename?: 'ShipmentStatus', uuid: string } | null, shipmentToys: Array<{ __typename?: 'ShipmentToy', uuid: string, toy: { __typename?: 'Toy', toyImages: Array<{ __typename?: 'ToyImage', path: string, thumbnailImage: { __typename?: 'ThumbnailImage', pathFixed256: string } }> } }>, additionalShipments: Array<{ __typename?: 'Shipment', uuid: string, shippedAt?: string | null, shipmentStatus?: { __typename?: 'ShipmentStatus', uuid: string } | null, shipmentToys: Array<{ __typename?: 'ShipmentToy', uuid: string, toy: { __typename?: 'Toy', toyImages: Array<{ __typename?: 'ToyImage', path: string, thumbnailImage: { __typename?: 'ThumbnailImage', pathFixed256: string } }> } }> }> }> }> };\n\n\nexport const GetPlansPagesIndexDocument = gql`\n    query getPlansPagesIndex($familyCustomerContractedPlanUuids: [ID!]!) {\n  shipments(\n    familyCustomerContractedPlanUuids: $familyCustomerContractedPlanUuids\n    filter: {typeUuids: [\"5fa257cd-6939-4fee-b634-022f7c87e544\", \"0cbef109-8a48-4422-a48f-45be0b79c34d\"], statusUuids: [\"9c27f1b0-a3a1-4243-8915-cc33d927decf\", \"a51ec23d-6d50-499c-8bf1-99917bf66c46\", \"4c4f34fe-3afb-43bd-ab97-843fdc2a554e\", \"3621d1b0-9bd5-4af8-876c-541f98546c1a\", \"2751d77d-a6f7-464a-ab71-acf3469d73e3\"], isShippedAtFilled: true}\n    first: 1\n  ) {\n    familyCustomerContractedPlanUuid\n    shipments {\n      ...PlanCardContainerFragmentFields\n    }\n  }\n}\n    ${PlanCardContainerFragmentFieldsFragmentDoc}`;\n\n/**\n * __useGetPlansPagesIndexQuery__\n *\n * To run a query within a React component, call `useGetPlansPagesIndexQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetPlansPagesIndexQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetPlansPagesIndexQuery({\n *   variables: {\n *      familyCustomerContractedPlanUuids: // value for 'familyCustomerContractedPlanUuids'\n *   },\n * });\n */\nexport function useGetPlansPagesIndexQuery(baseOptions: Apollo.QueryHookOptions<GetPlansPagesIndexQuery, GetPlansPagesIndexQueryVariables> & ({ variables: GetPlansPagesIndexQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n        const options = {...defaultOptions, ...baseOptions}\n        return Apollo.useQuery<GetPlansPagesIndexQuery, GetPlansPagesIndexQueryVariables>(GetPlansPagesIndexDocument, options);\n      }\nexport function useGetPlansPagesIndexLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetPlansPagesIndexQuery, GetPlansPagesIndexQueryVariables>) {\n          const options = {...defaultOptions, ...baseOptions}\n          return Apollo.useLazyQuery<GetPlansPagesIndexQuery, GetPlansPagesIndexQueryVariables>(GetPlansPagesIndexDocument, options);\n        }\nexport function useGetPlansPagesIndexSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<GetPlansPagesIndexQuery, GetPlansPagesIndexQueryVariables>) {\n          const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n          return Apollo.useSuspenseQuery<GetPlansPagesIndexQuery, GetPlansPagesIndexQueryVariables>(GetPlansPagesIndexDocument, options);\n        }\nexport type GetPlansPagesIndexQueryHookResult = ReturnType<typeof useGetPlansPagesIndexQuery>;\nexport type GetPlansPagesIndexLazyQueryHookResult = ReturnType<typeof useGetPlansPagesIndexLazyQuery>;\nexport type GetPlansPagesIndexSuspenseQueryHookResult = ReturnType<typeof useGetPlansPagesIndexSuspenseQuery>;\nexport type GetPlansPagesIndexQueryResult = Apollo.QueryResult<GetPlansPagesIndexQuery, GetPlansPagesIndexQueryVariables>;","import { useEffect } from \"react\";\nimport { type PlansQueryState, usePlansQueryStore } from \"@/pages/_index/__modules__/store\";\nimport { useGetPlansPagesIndexQuery } from \"@/pages/_index/__gql__/get-plans.gen\";\n\nexport const useGetPlansPagesIndexQueryAtom = (\n  options: Parameters<typeof useGetPlansPagesIndexQuery>[0],\n): ReturnType<typeof useGetPlansPagesIndexQuery> => {\n  const result = useGetPlansPagesIndexQuery(options);\n  const setPlansAtom = usePlansQueryStore((state: PlansQueryState) => state.set);\n\n  useEffect(() => {\n    if (result.data !== undefined) {\n      setPlansAtom(result.data);\n    }\n  }, [result.data, setPlansAtom]);\n  return result;\n};\n","export const skeletonToyBatonTestId = \"pages/index/banners/Skeleton-ToyBaton\";\nexport const bannerToyBatonTestId = \"pages/index/banners/Banner-ToyBaton\";\nexport const bannerLineTestId = \"pages/index/banners/Banner-Line\";\nexport const bannerInviteTestId = \"pages/index/banners/Banner-Invite\";\nexport const bannerToysubStoreTestId = \"pages/index/banners/Banner-ToysubStore\";\nexport const mamabBigCampaignTestId = \"pages/index/banners/Banner-mamabBigCampaign\";\nexport const calldoctorCampaignTestId = \"pages/indesx/banners/Banner-calldoctorCampaign\";\n","import { Box } from \"@/components/essentials/box\";\nimport { Icon } from \"@/components/essentials/icon\";\nimport { Typography } from \"@/components/essentials/typography\";\nimport { type AliasColors } from \"@/styles/themes/colors/alias\";\nimport { type ColorPalettes } from \"@/styles/themes/colors/palettes\";\nimport { Center, HStack, Spacer } from \"@chakra-ui/react\";\nimport Image from \"next/image\";\nimport Link from \"next/link\";\nimport { type FC } from \"react\";\n\nexport interface BannerProps {\n  readonly icon: string;\n  readonly title: string;\n  readonly description: string;\n  readonly descriptionColor: AliasColors | ColorPalettes | undefined;\n  readonly href: string;\n  readonly showBorder?: boolean;\n  readonly testid?: string;\n}\n\nexport const Banner: FC<BannerProps> = ({ icon, title, description, descriptionColor, href, showBorder, testid }) => {\n  return (\n    <HStack\n      as={Link}\n      href={href}\n      p=\"1rem\"\n      bgColor=\"mono.light.100\"\n      borderRadius=\"0.5rem\"\n      target=\"_blank\"\n      rel=\"noopener norefferer\"\n      data-testid={testid}\n    >\n      <Center\n        width=\"70px\"\n        height=\"70px\"\n        borderColor=\"#aeaeae\"\n        borderWidth={showBorder ? 0.1 : 0}\n        borderRadius={showBorder ? \"8px\" : 0}\n        overflow={showBorder ? \"hidden\" : \"visible\"}\n      >\n        <Image src={icon} alt=\"box-icon\" width={70} height={70} />\n      </Center>\n      <Box ml=\"0.75rem\">\n        <Typography variant=\"text4-bold\" color={descriptionColor}>\n          {description}\n        </Typography>\n        <Typography variant=\"display6\" mt=\"2px\">\n          {title}\n        </Typography>\n      </Box>\n      <Spacer />\n      <Icon as=\"angleRight\" />\n    </HStack>\n  );\n};\n","import { type FC } from \"react\";\nimport { Stack } from \"@chakra-ui/react\";\nimport {\n  toranaRecruitUrl,\n  toranaToyHandbookUrl,\n  toranaToyShindanUrl,\n  toyBatonApplyUrl,\n  toysubGifteeUrl,\n  toysubInviteUrl,\n  toysubStoreUrl,\n  toysMarketUrl,\n  toysubEarlyChangeFormUrl,\n  toysubChangeSkipFormUrl,\n} from \"@/configs/externalUrls\";\nimport { type useGetIndexPagesFamilyCustomerQuery } from \"@/pages/_index/__gql__/get-family-customer.gen\";\nimport { Skeleton } from \"@/components/fragments/apollo/loader/skeleton\";\nimport { isDefined } from \"@/modules/utils/predicate\";\nimport { bannerToyBatonTestId, skeletonToyBatonTestId } from \"./const\";\nimport { Banner } from \"./__components__/banner/Banner\";\nimport banner_icon_shindan from \"~/assets/images/banner_icon_shindan.svg\";\nimport banner_icon_shokai from \"~/assets/images/banner_icon_shokai.svg\";\nimport banner_icon_toybaton from \"~/assets/images/banner_icon_toybaton.svg\";\nimport banner_icon_store from \"~/assets/images/banner_icon_store.svg\";\nimport banner_icon_book from \"~/assets/images/banner_icon_book.svg\";\nimport banner_icon_recruit from \"~/assets/images/banner_icon_recruit.svg\";\nimport banner_icon_toysmarket from \"~/assets/images/banner_icon_toysmarket.svg\";\nimport banner_icon_change_skip from \"~/assets/images/banner_icon_change_skip.svg\";\nimport banner_icon_early_cnahge from \"~/assets/images/banner_icon_early_change.svg\";\n\ninterface BannerProps {\n  readonly resultFamilyCustomerQuery: Pick<ReturnType<typeof useGetIndexPagesFamilyCustomerQuery>, \"loading\" | \"data\">;\n}\n\nexport const Banners: FC<BannerProps> = ({ resultFamilyCustomerQuery: { loading, data } }) => {\n  return (\n    <Stack spacing=\"1rem\" mt=\"1.5rem\">\n      <Banner\n        icon=\"/images/banner_icon_gift.png\"\n        title=\"繝�ず繧ソ繝ォ繧ョ繝輔ヨ蛻ク\"\n        description=\"繝医う繧オ繝厄シ√r繧ョ繝輔ヨ縺ァ雍医m縺�\"\n        descriptionColor=\"theme.red.50\"\n        href={toysubGifteeUrl}\n        showBorder\n      />\n      <Banner\n        icon={banner_icon_shindan}\n        title=\"縺翫b縺。繧��繝ゥ繝ウ險コ譁ュ\"\n        description=\"螻翫¥縺翫b縺。繧�r繧キ繝溘Η繝ャ繝シ繧キ繝ァ繝ウ\"\n        descriptionColor=\"theme.blue.main\"\n        href={toranaToyShindanUrl}\n      />\n      <Banner\n        icon={banner_icon_shokai}\n        title=\"縺雁暑縺�縺。邏ケ莉九�繝ュ繧ー繝ゥ繝�\"\n        description=\"1,500蜀��縺ョ繧ョ繝輔ヨ蛻ク繝励Ξ繧シ繝ウ繝�\"\n        descriptionColor=\"theme.orange.40\"\n        href={toysubInviteUrl}\n      />\n      {loading || !isDefined(data?.familyCustomer.uuid) ? (\n        <Skeleton data-testid={skeletonToyBatonTestId} py=\"8rem\" />\n      ) : (\n        <Banner\n          icon={banner_icon_toybaton}\n          title=\"荳崎ヲ√♀繧ゅ■繧��雋キ蜿悶j\"\n          description=\"蟒�」�&繧後k縺翫b縺。繧�r貂帙i縺昴≧\"\n          descriptionColor=\"theme.green.50\"\n          href={`${toyBatonApplyUrl}?uuid=${data?.familyCustomer.uuid ?? \"\"}`}\n          testid={bannerToyBatonTestId}\n        />\n      )}\n      <Banner\n        icon={banner_icon_store}\n        title=\"Toysub! store\"\n        description=\"縺翫b縺。繧�d邨オ譛ャ縺ョ雋ゥ螢イ\"\n        descriptionColor=\"theme.red.50\"\n        href={toysubStoreUrl}\n      />\n      <Banner\n        icon={banner_icon_toysmarket}\n        title=\"繝医う繧コ繝槭�繧ア繝�ヨ\"\n        description=\"繝ェ繝ヲ繝シ繧ケ縺翫b縺。繧�r縺雁セ励↑萓。譬シ縺ァ雉シ蜈・縺励h縺�シ―"\n        descriptionColor=\"theme.blue.main\"\n        href={toysMarketUrl}\n        showBorder\n      />\n      <Banner\n        icon={banner_icon_change_skip}\n        title=\"莠、謠帙せ繧ュ繝��繧ェ繝励す繝ァ繝ウ\"\n        description=\"莠、謠帷筏隲九�蟒カ髟キ縺ァ縺翫b縺。繧�イキ蜿悶け繝シ繝昴Φ縺後b繧峨∴繧具シ―"\n        descriptionColor=\"theme.orange.40\"\n        href={toysubChangeSkipFormUrl}\n        showBorder\n      />\n      <Banner\n        icon={banner_icon_early_cnahge}\n        title=\"譌ゥ譛滉コ、謠帙が繝励す繝ァ繝ウ\"\n        description=\"逋コ騾∝セ�1繝オ譛亥セ後°繧牙・ス縺阪↑繧ソ繧、繝溘Φ繧ー縺ァ莠、謠帙〒縺阪k\"\n        descriptionColor=\"theme.green.50\"\n        href={toysubEarlyChangeFormUrl}\n        showBorder\n      />\n      <Banner\n        icon={banner_icon_book}\n        title=\"遏・閧イ繝上Φ繝峨ヶ繝�け縺ョ繝€繧ヲ繝ウ繝ュ繝シ繝噂"\n        description=\"譛磯ス「縺斐→縺ョ逋コ驕斐→驕翫�縺後o縺九k\"\n        descriptionColor=\"theme.red.50\"\n        href={toranaToyHandbookUrl}\n      />\n      <Banner\n        icon={banner_icon_recruit}\n        title=\"繝医Λ繝シ繝頑治逕ィ諠��ア\"\n        description=\"繝医う繧オ繝厄シ√〒蜒阪>縺ヲ縺ソ縺セ縺帙s縺具シ歃"\n        descriptionColor=\"theme.blue.main\"\n        href={toranaRecruitUrl}\n        showBorder\n      />\n    </Stack>\n  );\n};\n","import { HStack, type StackProps, Icon } from \"@chakra-ui/react\";\nimport { type FC } from \"react\";\nimport { Typography } from \"@/components/essentials/typography\";\nimport {\n  noticeButtonTestId,\n  noticeButtonIconTestId,\n  noticeButtonArrwoIconTestId,\n  noticeButtonTypographyTestId,\n} from \"./const\";\nimport { FaAngleRight, FaExclamationCircle } from \"react-icons/fa\";\nimport Link, { type LinkProps } from \"next/link\";\n\nconst variant = {\n  bgColor: \"light.main\",\n  borderColor: `error.main`,\n  borderWidth: \"1px\",\n  borderRadius: \"0.5rem\",\n};\n\nconst color = \"error.main\";\n\nexport interface NoticeButtonProps extends StackProps {\n  readonly href: LinkProps[\"href\"];\n}\n\nexport const NoticeButton: FC<NoticeButtonProps> = ({ href, children, ...props }) => {\n  return (\n    <HStack as={Link} href={href} p=\"1rem\" {...variant} data-testid={noticeButtonTestId} {...props}>\n      <Icon as={FaExclamationCircle} size={32} color={color} data-testid={noticeButtonIconTestId} />\n      <Typography variant=\"display6\" color={color} data-testid={noticeButtonTypographyTestId} flexGrow={1}>\n        {children}\n      </Typography>\n      <Icon as={FaAngleRight} size={32} color={color} data-testid={noticeButtonArrwoIconTestId} />\n    </HStack>\n  );\n};\n","import { Icon } from \"@/components/essentials/icon\";\nimport { Typography } from \"@/components/essentials/typography\";\nimport { Center, HStack, Spacer } from \"@chakra-ui/react\";\nimport Image from \"next/image\";\nimport Link from \"next/link\";\nimport { type FC } from \"react\";\nimport { externalLinkButtonTestId } from \"./const\";\n\nexport interface ExternalLinkButtonProps {\n  readonly icon: string;\n  readonly linkText: string;\n  readonly href: string;\n}\n\nexport const ExternalLinkButton: FC<ExternalLinkButtonProps> = ({ icon, linkText, href }) => {\n  return (\n    <HStack\n      as={Link}\n      href={href}\n      p=\"1.25rem\"\n      bgColor=\"mono.light.100\"\n      borderRadius=\"0.5rem\"\n      data-testid={externalLinkButtonTestId}\n      target=\"_blank\"\n      rel=\"noopener norefferer\"\n    >\n      <Center width=\"40px\" height=\"40px\">\n        <Image src={icon} alt=\"box-icon\" width={40} height={40} />\n      </Center>\n      <Typography variant=\"display6\">{linkText}</Typography>\n      <Spacer />\n      <Icon as=\"angleRight\" />\n    </HStack>\n  );\n};\n","/**\n * ref: https://developers.channel.io/docs/web-quickstart\n * use the SDK through the JavaScript Class for SPA.\n */\ndeclare global {\n  interface Window {\n    ChannelIO?: IChannelIO;\n    ChannelIOInitialized?: boolean;\n  }\n}\n\ninterface IChannelIO {\n  // biome-ignore lint/suspicious/noExplicitAny :[AUTOMATICALLY-INSERTED] Unexpected any. Specify a different type.\n  c?: (...args: any) => void;\n  // biome-ignore lint/suspicious/noExplicitAny :[AUTOMATICALLY-INSERTED] Unexpected any. Specify a different type.\n  // biome-ignore lint/style/useConsistentArrayType :[AUTOMATICALLY-INSERTED] Use shorthand T[] syntax instead of Array<T> syntax.\n  q?: Array<[methodName: string, ...args: any[]]>;\n  // biome-ignore lint/suspicious/noExplicitAny :[AUTOMATICALLY-INSERTED] Unexpected any. Specify a different type.\n  (...args: any): void;\n}\n\ninterface BootOption {\n  appearance?: string;\n  customLauncherSelector?: string;\n  hideChannelButtonOnBoot?: boolean;\n  hidePopup?: boolean;\n  language?: string;\n  memberHash?: string;\n  memberId?: string;\n  mobileMessengerMode?: string;\n  pluginKey: string;\n  profile?: Profile;\n  trackDefaultEvent?: boolean;\n  trackUtmSource?: boolean;\n  unsubscribe?: boolean;\n  unsubscribeEmail?: boolean;\n  unsubscribeTexting?: boolean;\n  zIndex?: number;\n}\n\ntype Callback = (error: Error | null, user: CallbackUser | null) => void;\n\ninterface CallbackUser {\n  alert: number;\n  avatarUrl: string;\n  id: string;\n  language: string;\n  memberId: string;\n  name?: string;\n  profile?: Profile | null;\n  tags?: string[] | null;\n  unsubscribeEmail: boolean;\n  unsubscribeTexting: boolean;\n}\n\ninterface UpdateUserInfo {\n  language?: string;\n  profile?: Profile | null;\n  profileOnce?: Profile;\n  tags?: string[] | null;\n  unsubscribeEmail?: boolean;\n  unsubscribeTexting?: boolean;\n}\n\ntype Profile = Record<string, string | number | boolean | null>;\n\ninterface FollowUpProfile {\n  name?: string | null;\n  mobileNumber?: string | null;\n  email?: string | null;\n}\n\ntype EventProperty = Record<string, string | number | boolean | null>;\n\ntype Appearance = \"light\" | \"dark\" | \"system\" | null;\n\nclass ChannelService {\n  private static instance: ChannelService | undefined;\n\n  private constructor() {\n    this.loadScript();\n  }\n\n  public static getInstance(): ChannelService {\n    if (!ChannelService.instance) {\n      ChannelService.instance = new ChannelService();\n    }\n\n    return ChannelService.instance;\n  }\n\n  loadScript(): void {\n    (function (): void {\n      const w = window;\n      if (w.ChannelIO) {\n        w.console.error(\"ChannelIO script included twice.\");\n        return;\n      }\n      const ch = function (): void {\n        ch.c(arguments);\n      };\n      // biome-ignore lint/suspicious/noExplicitAny :[AUTOMATICALLY-INSERTED] Unexpected any. Specify a different type.\n      ch.q = [] as any[];\n      // biome-ignore lint/suspicious/noExplicitAny :[AUTOMATICALLY-INSERTED] Unexpected any. Specify a different type.\n      ch.c = function (args: any) {\n        ch.q.push(args);\n      };\n      w.ChannelIO = ch;\n\n      function l(): void {\n        if (w.ChannelIOInitialized) {\n          return;\n        }\n        w.ChannelIOInitialized = true;\n        const s = document.createElement(\"script\");\n        s.type = \"text/javascript\";\n        s.async = true;\n        s.src = \"https://cdn.channel.io/plugin/ch-plugin-web.js\";\n        const x = document.getElementsByTagName(\"script\")[0] as HTMLScriptElement;\n        if (x.parentNode) {\n          x.parentNode.insertBefore(s, x);\n        }\n      }\n\n      if (document.readyState === \"complete\") {\n        l();\n      } else {\n        w.addEventListener(\"DOMContentLoaded\", l);\n        w.addEventListener(\"load\", l);\n      }\n    })();\n  }\n\n  boot(option: BootOption, callback?: Callback): void {\n    window.ChannelIO?.(\"boot\", option, callback);\n  }\n\n  shutdown(): void {\n    window.ChannelIO?.(\"shutdown\");\n  }\n\n  showMessenger(): void {\n    window.ChannelIO?.(\"showMessenger\");\n  }\n\n  hideMessenger(): void {\n    window.ChannelIO?.(\"hideMessenger\");\n  }\n\n  openChat(chatId?: string | number, message?: string): void {\n    window.ChannelIO?.(\"openChat\", chatId, message);\n  }\n\n  track(eventName: string, eventProperty?: EventProperty): void {\n    window.ChannelIO?.(\"track\", eventName, eventProperty);\n  }\n\n  onShowMessenger(callback: () => void): void {\n    window.ChannelIO?.(\"onShowMessenger\", callback);\n  }\n\n  onHideMessenger(callback: () => void): void {\n    window.ChannelIO?.(\"onHideMessenger\", callback);\n  }\n\n  onBadgeChanged(callback: (alert: number) => void): void {\n    window.ChannelIO?.(\"onBadgeChanged\", callback);\n  }\n\n  onChatCreated(callback: () => void): void {\n    window.ChannelIO?.(\"onChatCreated\", callback);\n  }\n\n  onFollowUpChanged(callback: (profile: FollowUpProfile) => void): void {\n    window.ChannelIO?.(\"onFollowUpChanged\", callback);\n  }\n\n  onUrlClicked(callback: (url: string) => void): void {\n    window.ChannelIO?.(\"onUrlClicked\", callback);\n  }\n\n  clearCallbacks(): void {\n    window.ChannelIO?.(\"clearCallbacks\");\n  }\n\n  updateUser(userInfo: UpdateUserInfo, callback?: Callback): void {\n    window.ChannelIO?.(\"updateUser\", userInfo, callback);\n  }\n\n  addTags(tags: string[], callback?: Callback): void {\n    window.ChannelIO?.(\"addTags\", tags, callback);\n  }\n\n  removeTags(tags: string[], callback?: Callback): void {\n    window.ChannelIO?.(\"removeTags\", tags, callback);\n  }\n\n  setPage(page: string): void {\n    window.ChannelIO?.(\"setPage\", page);\n  }\n\n  resetPage(): void {\n    window.ChannelIO?.(\"resetPage\");\n  }\n\n  showChannelButton(): void {\n    window.ChannelIO?.(\"showChannelButton\");\n  }\n\n  hideChannelButton(): void {\n    window.ChannelIO?.(\"hideChannelButton\");\n  }\n\n  setAppearance(appearance: Appearance): void {\n    window.ChannelIO?.(\"setAppearance\", appearance);\n  }\n}\n\nexport const bootChannelTalk = (memberId: string, email: string): void => {\n  if (typeof process.env.CHANNEL_TALK_PLUGIN_KEY !== \"string\") {\n    throw new Error(\"env type is invalid. CHANNEL_TALK_PLUGIN_KEY must ne string\");\n  }\n  const channelService = ChannelService.getInstance();\n\n  channelService.boot({\n    pluginKey: process.env.CHANNEL_TALK_PLUGIN_KEY,\n    memberId,\n    profile: {\n      email,\n    },\n  });\n};\n","import { AuthedLayout } from \"@/layouts\";\nimport type { NextPage } from \"next\";\nimport { extractContractedPlanUuids } from \"./_index/__modules__/array\";\nimport { ContractToContent } from \"./_index/__components__/contract-to-content\";\nimport {\n  useGetIndexPagesFamilyCustomerQueryAtom,\n  useGetIndexPagesShipmentsQueryAtom,\n  useGetIndexPagesMeQueryAtom,\n} from \"./_index/__modules__/hooks\";\nimport { NextSeo } from \"next-seo\";\nimport { AuthedLayoutTestId } from \"./const\";\nimport { isQueryCompleted } from \"@/modules/utils/apollo-wrapper\";\nimport { useApolloError } from \"@/hooks/useApolloError\";\nimport { useGetPlansPagesIndexQueryAtom } from \"./_index/__modules__/hooks/useGetPlanPagesIndexQueryAtom\";\nimport { Banners } from \"./_index/__components__/banners/Banners\";\nimport { NoticeButton } from \"@/components/essentials/button/notice-button/NoticeButton\";\nimport { pagesPath } from \"@/pathpida/generated/$path\";\nimport { isNonNullable } from \"@/modules/utils/predicate\";\nimport { useMemo, useEffect } from \"react\";\nimport { isPreparing } from \"@/modules/utils/shipments\";\nimport { ExternalLinkButton } from \"./_index/__components__/external-link-button/ExternalLinkButton\";\nimport { Box } from \"@/components/essentials/box\";\nimport { mobiletargetingUpdateEndpoint, mailTargetingUpdateEndpoint } from \"@/modules/utils/amazon-pinpoint\";\nimport { bootChannelTalk } from \"@/modules/utils/channel-talk\";\nimport { type GetIndexPagesMeQuery } from \"@/pages/_index/__gql__/get-me.gen\";\nimport { type GetIndexPagesFamilyCustomerQuery } from \"@/pages/_index/__gql__/get-family-customer.gen\";\nimport cracker from \"~/assets/images/cracker.svg\";\nimport train from \"~/assets/images/toy-train.svg\";\nimport video from \"~/assets/images/video.svg\";\nimport { toranaPlanExampleUrl, toysubCampaignInfoUrl, toysubVideoUrl } from \"@/configs/externalUrls\";\nimport { datadogLogs } from \"@datadog/browser-logs\";\n\nconst Index: NextPage = () => {\n  const resultFamilyCustomerQuery = useGetIndexPagesFamilyCustomerQueryAtom();\n  const resultMeQuery = useGetIndexPagesMeQueryAtom();\n\n  useEffect(() => {\n    if (isQueryCompleted([resultFamilyCustomerQuery, resultMeQuery])) {\n      datadogLogs.setUser({\n        family_customer_uuid: resultFamilyCustomerQuery.data?.familyCustomer.uuid,\n        family_account_uuid: resultMeQuery.data?.me.uuid,\n        is_contractor: resultMeQuery.data?.me.isContractor,\n        is_receiver: resultMeQuery.data?.me.isReceiver,\n      });\n    }\n  }, [resultFamilyCustomerQuery, resultMeQuery]);\n\n  const resultShipmentsQuery = useGetIndexPagesShipmentsQueryAtom({\n    skip: !resultFamilyCustomerQuery.data?.familyCustomer.familyCustomerContractedPlans || resultMeQuery.loading,\n    variables: {\n      familyCustomerContractedPlanUuids:\n        extractContractedPlanUuids(resultFamilyCustomerQuery.data?.familyCustomer.familyCustomerContractedPlans) ?? [],\n      isReceiver: resultMeQuery.data?.me.isReceiver === true,\n    },\n  });\n\n  const resultPlansQuery = useGetPlansPagesIndexQueryAtom({\n    skip: !resultFamilyCustomerQuery.data?.familyCustomer.familyCustomerContractedPlans || resultMeQuery.loading,\n    variables: {\n      familyCustomerContractedPlanUuids:\n        extractContractedPlanUuids(resultFamilyCustomerQuery.data?.familyCustomer.familyCustomerContractedPlans, {\n          first: true,\n        }) ?? [],\n    },\n  });\n\n  const displayEnqueteRemind: boolean = useMemo(() => {\n    return (\n      isQueryCompleted([resultFamilyCustomerQuery, resultMeQuery, resultShipmentsQuery]) &&\n      isNonNullable(resultMeQuery.data) &&\n      resultMeQuery.data.me.isReceiver &&\n      isNonNullable(resultFamilyCustomerQuery.data) &&\n      !resultFamilyCustomerQuery.data.familyCustomer.hasAnsweredSurvey &&\n      isNonNullable(resultShipmentsQuery.data) &&\n      // 蛻晏屓逋コ騾∝燕縺ョ蝣エ蜷医�縺ソ陦ィ遉コ(逋コ騾∵ク医∩縺ョ逋コ騾√′縺ゅk蝣エ蜷医�陦ィ遉コ縺励↑縺�)\n      !resultShipmentsQuery.data.shipments.some((contract) =>\n        contract.shipments.some(\n          (shipment) => isNonNullable(shipment.shipmentStatus) && !isPreparing(shipment.shipmentStatus.uuid),\n        ),\n      )\n    );\n  }, [resultFamilyCustomerQuery, resultMeQuery, resultShipmentsQuery]);\n\n  useApolloError(\n    resultFamilyCustomerQuery.error || resultShipmentsQuery.error || resultMeQuery.error || resultPlansQuery.error,\n  );\n\n  const execUpdatePinpoint = async (data: GetIndexPagesMeQuery | undefined): Promise<void> => {\n    if (!data) {\n      return;\n    }\n    // biome-ignore lint/complexity/noVoid :[AUTOMATICALLY-INSERTED] The use of void is not allowed.\n    void mobiletargetingUpdateEndpoint({\n      id: data.me.uuid,\n      userAttributes: {\n        mail: data.me.mail,\n        membershipType: \"CUSTOMER\",\n      },\n    });\n    // biome-ignore lint/complexity/noVoid :[AUTOMATICALLY-INSERTED] The use of void is not allowed.\n    void mailTargetingUpdateEndpoint(data.me.mail, {\n      id: data.me.uuid,\n      userAttributes: {\n        mail: data.me.mail,\n        membershipType: \"CUSTOMER\",\n      },\n    });\n  };\n\n  const bootCustomChannelTalk = async (\n    meData: GetIndexPagesMeQuery | undefined,\n    familyCustomerData: GetIndexPagesFamilyCustomerQuery | undefined,\n  ): Promise<void> => {\n    if (!meData || !familyCustomerData || !familyCustomerData.familyCustomer.id) {\n      return;\n    }\n    bootChannelTalk(familyCustomerData.familyCustomer.id.toString(), meData.me.mail);\n  };\n\n  // biome-ignore lint/correctness/useExhaustiveDependencies :[AUTOMATICALLY-INSERTED] This hook does not specify all of its dependencies: bootCustomChannelTalk\n  useEffect(() => {\n    // biome-ignore lint/complexity/noVoid :[AUTOMATICALLY-INSERTED] The use of void is not allowed.\n    void execUpdatePinpoint(resultMeQuery.data);\n    // biome-ignore lint/complexity/noVoid :[AUTOMATICALLY-INSERTED] The use of void is not allowed.\n    void bootCustomChannelTalk(resultMeQuery.data, resultFamilyCustomerQuery.data);\n  }, [resultMeQuery, resultFamilyCustomerQuery]);\n\n  return (\n    <>\n      <NextSeo title=\"繝帙�繝�\" description=\"Toysub! 繝槭う繝壹�繧ク縺ク繧医≧縺薙◎�―" />\n      <AuthedLayout data-testid={AuthedLayoutTestId} footer py=\"1.5rem\" px=\"1rem\">\n        {displayEnqueteRemind && (\n          <NoticeButton href={pagesPath.questionnaire.$url()} mb=\"1.5rem\">\n            縺頑焔謖√■縺ョ縺翫b縺。繧�r謨吶∴縺ヲ縺上□縺輔>\n          </NoticeButton>\n        )}\n        <ContractToContent\n          loadings={{\n            contracts: !isQueryCompleted([resultFamilyCustomerQuery]),\n            shipments: !isQueryCompleted([resultFamilyCustomerQuery, resultShipmentsQuery]),\n            planHistory: !isQueryCompleted([resultFamilyCustomerQuery, resultPlansQuery]),\n            me: !isQueryCompleted([resultMeQuery]),\n          }}\n          onChangeSelectedContractId={(contractId) => {\n            // biome-ignore lint/complexity/noVoid :[AUTOMATICALLY-INSERTED] The use of void is not allowed.\n            void resultPlansQuery.refetch({ familyCustomerContractedPlanUuids: [contractId] });\n          }}\n        />\n\n        <Box mt=\"1.5rem\">\n          <ExternalLinkButton icon={train} linkText=\"蟷エ鮨「蛻・縺翫☆縺吶a縺翫b縺。繧�ク€萓欺" href={toranaPlanExampleUrl} />\n        </Box>\n\n        <Box mt=\"1.5rem\">\n          <ExternalLinkButton icon={cracker} linkText=\"莨壼藤髯仙ョ壹♀蠕玲ュ蝣ア縺ッ縺薙■繧噂" href={toysubCampaignInfoUrl} />\n        </Box>\n\n        <Box mt=\"1.5rem\">\n          <ExternalLinkButton icon={video} linkText=\"譛磯ス「蛻・驕翫�譁ケ蜍慕判\" href={toysubVideoUrl} />\n        </Box>\n        <Banners resultFamilyCustomerQuery={resultFamilyCustomerQuery} />\n      </AuthedLayout>\n    </>\n  );\n};\n\nexport default Index;\n","// @ts-nocheck\nimport * as Types from '../../../../gql/generated/graphql.gen';\n\nimport { gql } from '@apollo/client';\nimport * as Apollo from '@apollo/client';\nconst defaultOptions = {} as const;\nexport type GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQueryVariables = Types.Exact<{\n  shipmentId: Types.Scalars['ID']['input'];\n}>;\n\n\nexport type GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery = { __typename?: 'Query', isPurchasedShipmentToys: boolean };\n\n\nexport const GetIsPurchasedShipmentToysPagesPurchaseShipmentIdDocument = gql`\n    query GetIsPurchasedShipmentToysPagesPurchaseShipmentId($shipmentId: ID!) {\n  isPurchasedShipmentToys(shipmentUuid: $shipmentId)\n}\n    `;\n\n/**\n * __useGetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery__\n *\n * To run a query within a React component, call `useGetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery({\n *   variables: {\n *      shipmentId: // value for 'shipmentId'\n *   },\n * });\n */\nexport function useGetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery(baseOptions: Apollo.QueryHookOptions<GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery, GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQueryVariables> & ({ variables: GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n        const options = {...defaultOptions, ...baseOptions}\n        return Apollo.useQuery<GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery, GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQueryVariables>(GetIsPurchasedShipmentToysPagesPurchaseShipmentIdDocument, options);\n      }\nexport function useGetIsPurchasedShipmentToysPagesPurchaseShipmentIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery, GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQueryVariables>) {\n          const options = {...defaultOptions, ...baseOptions}\n          return Apollo.useLazyQuery<GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery, GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQueryVariables>(GetIsPurchasedShipmentToysPagesPurchaseShipmentIdDocument, options);\n        }\nexport function useGetIsPurchasedShipmentToysPagesPurchaseShipmentIdSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery, GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQueryVariables>) {\n          const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n          return Apollo.useSuspenseQuery<GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery, GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQueryVariables>(GetIsPurchasedShipmentToysPagesPurchaseShipmentIdDocument, options);\n        }\nexport type GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQueryHookResult = ReturnType<typeof useGetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery>;\nexport type GetIsPurchasedShipmentToysPagesPurchaseShipmentIdLazyQueryHookResult = ReturnType<typeof useGetIsPurchasedShipmentToysPagesPurchaseShipmentIdLazyQuery>;\nexport type GetIsPurchasedShipmentToysPagesPurchaseShipmentIdSuspenseQueryHookResult = ReturnType<typeof useGetIsPurchasedShipmentToysPagesPurchaseShipmentIdSuspenseQuery>;\nexport type GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQueryResult = Apollo.QueryResult<GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery, GetIsPurchasedShipmentToysPagesPurchaseShipmentIdQueryVariables>;","module.exports = \"/_next/static/images/banner_icon_book-deac7c31dae58286a8439cd8c3555927.svg\";","module.exports = \"/_next/static/images/banner_icon_change_skip-04b8e3d92aaa5fb8bd196be347162719.svg\";","module.exports = \"/_next/static/images/banner_icon_early_change-79fccac0ea712306839a859190f929d7.svg\";","module.exports = \"/_next/static/images/banner_icon_recruit-eaff294efc9e7ad07c8c2c0877470183.svg\";","module.exports = \"/_next/static/images/banner_icon_shindan-72c52d786407c305b098b25fc5cb1911.svg\";","module.exports = \"/_next/static/images/banner_icon_shokai-ecdbfc856598e09ab234fb33b0b0eda5.svg\";","module.exports = \"/_next/static/images/banner_icon_store-1131879512e78fbcafaf29c25af27d59.svg\";","module.exports = \"/_next/static/images/banner_icon_toybaton-5f69daf6c991600db6dbc89741a7e071.svg\";","module.exports = \"/_next/static/images/banner_icon_toysmarket-16a09ab634a4735e22250e243d9fa4c1.svg\";","module.exports = \"/_next/static/images/box-524fd05240dfbae61a4af5beadfe55a5.svg\";","module.exports = \"/_next/static/images/cracker-0842cd166adb7e527aed6a50cab474b8.svg\";","module.exports = \"/_next/static/images/toy-train-9c16c9dea480ac338158b498dcd42ce2.svg\";","module.exports = \"/_next/static/images/toybox-closed-d24a3796676fff7c5674ceda898c9c83.svg\";","module.exports = \"/_next/static/images/toybox-open-fac4c8d5c61d3435be8d442d78421556.svg\";","module.exports = \"/_next/static/images/video-a5fa334a7310991459eb9f79c81a482b.svg\";"],"names":["sub","date","duration","requiredArgs","Z","arguments","esm_typeof","Date","NaN","years","toInteger","months","weeks","days","hours","minutes","seconds","dateWithoutDays","subDays","dirtyDate","dirtyAmount","amount","addDays","subMonths","addMonths","getTime","secondstoSub","minutestoSub","window","__NEXT_P","push","__webpack_require__","Skeleton","_emotion_react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","tZ","ChakraSkeleton","fadeDuration","speed","props","BaseCard","children","rest","param","emotion_react_jsx_runtime_browser_esm","Box","p","borderRadius","bgColor","MenuContext","createContext","isOpen","Menu","setIsOpen","useState","ChakraMenu","onOpen","onClose","value","MenuButton","placeholder","_placeholder","color","label","useContext","ChakraMenuButton","as","BX","Flex","justifyContent","alignItems","w","Typography","variant","mr","display","Icon","ml","MenuList","ChakraMenuList","maxH","base","sm","md","lg","xl","minW","borderWidth","overflow","backgroundColor","boxShadow","MenuItemOption","forwardRef","ref","Component","ChakraMenuItemOption","flexDir","borderColor","icon","FaCheck","css","_focus","_hover","id","MenuOptionGroup","ChakraMenuOptionGroup","contractMenuItemFromId","list","find","item","uuid","OwnerCard","isActive","contractName","contractedAt","familyChildrenBirthdays","HStack","spacing","Tag","colorScheme","formatAsiaTokyoDateToString","length","map","ageText","buildChildAge","parse","birthday","undefined","join","emptyContractMenuItem","subscriptionInfo","name","ContractMenu","selected","familyChild","plan","initialValue","contractPlans","onChange","setSelected","py","px","familyChildren","filter","matchWidth","background","width","Array","isArray","key","_active","onClick","menuItem","bg","PlanCardContainerFragmentFieldsFragmentDoc","gql","FAMILY_CUSTOMER_STATUS_QUIT_APPLICATION_SUBMITTED","PAYMENT_TYPE_STRIPE","GraduateServiceCompanies","LeadSource","OptionServiceType","QuitApplicationApplicableStatus","ReferralType","ShipmentToyCustomerPreShippingStatus","ShipmentToyCustomerReceiveStatus","SignInResult","Dorakid","Dwe","Konamisports","Mikihouse","Smilezemi","Tao","Wonderbox","Basic","Campaign","ChannelTalk","ToyDiagnose","ZohoSurvey","ExpressDelivery","FreeExpressDelivery","FreeToyChange","OneAdditionalToy","ToyChange","WaterPlayToy","Irregular","NotEligibleForPromotion","Regular","ExchangeToys","Graduate","AlreadyHave","GoodAsItIs","Continuation","Purchase","Return","Fail","RequireMfa","Success","getRandomValues","getFCMToken","messaging","isSupport","isSupported","registration","navigator","serviceWorker","getRegistration","active","getMessaging","e","getToken","vapidKey","process","serviceWorkerRegistration","setItem","localStorage","input","JSON","stringify","getItem","getItemJson","localStorageInterface","expires","now","removeItem","data","randomUUID","crypto","bind","esm_browser_native","rnds8","Uint8Array","rng","byteToHex","i","toString","slice","esm_browser_v4","options","buf","offset","rnds","random","unsafeStringify","arr","ChannelType","ADM","APNS","APNS_SANDBOX","APNS_VOIP","APNS_VOIP_SANDBOX","BAIDU","CUSTOM","EMAIL","GCM","IN_APP","PUSH","SMS","VOICE","cachePrefix","concat","mobiletargetingUpdateEndpoint","user","currentToken","cacheKey","updateEndpoint","mailTargetingUpdateEndpoint","mail","address","channelType","userAttributes","endpointId","Analytics","AWSPinpoint","amazonPinpointUuid","uuidv4","timestamp","objectToArray","valueOf","optOut","userId","datadogLogs","Object","entries","obj","reduce","acc","getPaymentTypeFromContractedPlansAndContractId","contractedPlans","contractId","paymentTypeUuid","paymentType","isPreparing","shipmentStatusUuid","SHIPMENT_STATUS_NOT_STARTED","SHIPMENT_STATUS_IN_PROGRESS_PLAN","SHIPMENT_STATUS_COMPLETE_PLAN","SHIPMENT_STATUS_WAITING_FOR_REVIEW","SHIPMENT_STATUS_CUSTOMER_CONFIRM_REQUESTED","SHIPMENT_STATUS_CUSTOMER_CONFIRMING","SHIPMENT_STATUS_RESERVED","extractContractedPlanUuids","option","uuids","first","findShipmentsFromContractedPlanUuids","selectedContractedPlanUuid","shipments","familyCustomerContractedPlanUuid","Planning","gridRowGap","Image","src","toyboxOpen","alt","height","textAlign","mb","useFamilyCustomerQueryStore","createWithEqualityFn","familyCustomersQuery","set","newValue","is","useShipmentsQueryStore","shipmentsQuery","useMeQueryStore","meQuery","usePlansQueryStore","plansQuery","selectedContractStore","selectedContractId","ReturnInventory","resultIsPurchasedShipmentToys","latestShipment","status","useGetIsPurchasedShipmentToysPagesPurchaseShipmentIdQuery","skip","variables","shipmentId","meAtomState","state","familyCustomerStore","useMemo","familyCustomer","familyCustomerContractedPlans","toyboxClosed","nextAvailableReturnInventoryDate","Center","h","me","isReceiver","Button","Link","href","isPurchasedShipmentToys","isContractor","pagesPath","$url","disabled","Applied","isVisibleConfirmMessages","br","switchStatus","newestShipment","getNewestShipment","canPreview","shipmentStatus","SHIPMENT_STATUS_COMPLETE_SHIPMENT","canReturnInventory","SHIPMENT_STATUS_COMPLETE_RETURN_REQUESTED","SHIPMENT_STATUS_RETURN_REQUESTED","SHIPMENT_STATUS_RETURN_CONFIRMING","SHIPMENT_STATUS_COMPLETE_RETURN_CONFIRMING","applyReturnAt","sort","a","b","compareDesc","dirtyDateLeft","dirtyDateRight","dateLeft","toDate","dateRight","diff","createdAt","shipment","Preview","Planner","border","ReturnStatutes","resultLatestShipments","PlanHistoryButton","pathname","query","contractedUuid","box","Spacer","getViewableShipmentPlansByContractedPlan","getViewableShipmentPlans","getShipments","getPlanDetailHref","sortFamilyCustomerContractedPlan","isBefore","QuitApplicationSubmitted","nextBillingAt","mt","strong","format","toysubQuitApplicationCancelUrl","defaultOptions","GetQuitApplicationPagesIndexDocument","ContractToContent","resultQuitApplicationQuery","loadings","onChangeSelectedContractId","shipmentsStore","planHistoryStore","meStore","setSelectedContractId","sortedFamilyCustomerContractedPlan","isQuitApplicationSubmitted","familyCustomerStatus","useGetQuitApplicationPagesIndexQuery","baseOptions","Apollo","useEffect","latestPlan","Stack","contracts","div","contractedId","planHistory","quitApplication","applicableStatus","familyCustomerContractedPlan","PlanEmptyBox","PlanCardContainer","shipmentPlan","GetIndexPagesShipmentsDocument","useGetIndexPagesShipmentsQueryAtom","result","useGetIndexPagesShipmentsQuery","setShipmentsAtom","GetIndexPagesFamilyCustomerDocument","useGetIndexPagesFamilyCustomerQueryAtom","useGetIndexPagesFamilyCustomerQuery","setFamilyCustomerAtomState","GetIndexPagesMeDocument","useGetIndexPagesMeQueryAtom","useGetIndexPagesMeQuery","GetPlansPagesIndexDocument","useGetPlansPagesIndexQueryAtom","useGetPlansPagesIndexQuery","setPlansAtom","Banner","title","description","descriptionColor","showBorder","testid","target","rel","Banners","resultFamilyCustomerQuery","loading","toysubGifteeUrl","banner_icon_shindan","toranaToyShindanUrl","banner_icon_shokai","toysubInviteUrl","isDefined","banner_icon_toybaton","toyBatonApplyUrl","banner_icon_store","toysubStoreUrl","banner_icon_toysmarket","toysMarketUrl","banner_icon_change_skip","toysubChangeSkipFormUrl","banner_icon_early_cnahge","toysubEarlyChangeFormUrl","banner_icon_book","toranaToyHandbookUrl","banner_icon_recruit","toranaRecruitUrl","NoticeButton","FaExclamationCircle","size","flexGrow","FaAngleRight","ExternalLinkButton","linkText","ChannelService","getInstance","instance","loadScript","ChannelIO","console","error","ch","c","l","ChannelIOInitialized","s","document","createElement","type","async","x","getElementsByTagName","parentNode","insertBefore","q","args","readyState","addEventListener","boot","callback","shutdown","showMessenger","hideMessenger","openChat","chatId","message","track","eventName","eventProperty","onShowMessenger","onHideMessenger","onBadgeChanged","onChatCreated","onFollowUpChanged","onUrlClicked","clearCallbacks","updateUser","userInfo","addTags","tags","removeTags","setPage","page","resetPage","showChannelButton","hideChannelButton","setAppearance","appearance","constructor","_define_property","_","bootChannelTalk","memberId","email","channelService","pluginKey","profile","Index","resultMeQuery","isQueryCompleted","family_customer_uuid","family_account_uuid","is_contractor","is_receiver","resultShipmentsQuery","familyCustomerContractedPlanUuids","resultPlansQuery","displayEnqueteRemind","isNonNullable","hasAnsweredSurvey","some","contract","useApolloError","execUpdatePinpoint","membershipType","bootCustomChannelTalk","meData","familyCustomerData","HY","NextSeo","AuthedLayout","footer","refetch","train","toranaPlanExampleUrl","cracker","toysubCampaignInfoUrl","video","toysubVideoUrl","index_page","GetIsPurchasedShipmentToysPagesPurchaseShipmentIdDocument","module","exports"],"sourceRoot":""}