{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/vYMMUyLXqsRJx5H9sDIH/JskYEfidZz0k2hmRNCHm/ReviewExpandCard.js", "ssg:https://framerusercontent.com/modules/n7HnYW2S53Z1aQz9ho57/Z4DGbLV7EFNe9KZqRxcA/ReviewFlipCard.js"],
  "sourcesContent": ["import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport styled, { css } from \"styled-components\";\nimport { useState } from \"react\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport { UpArrowIcon, DownArrowIcon } from \"https://tutor.qanda.ai/resources/qanda-design-system-wide/0.5.19/v2/index.esm.js\"; /**\n                                                                                                                               * @framerSupportedLayoutWidth 312\n                                                                                                                               * @framerSupportedLayoutHeight auto\n                                                                                                                               */\nexport default function ReviewExpandCard(props) {\n  var ref;\n  const [expanded, setExpanded] = useState(false);\n  const handleToggle = () => {\n    setExpanded(expanded => !expanded);\n  };\n  return /*#__PURE__*/_jsxs(Wrapper, {\n    onClick: handleToggle,\n    children: [/*#__PURE__*/_jsx(Image, {\n      src: (ref = props.image) === null || ref === void 0 ? void 0 : ref.src\n    }), /*#__PURE__*/_jsxs(Content, {\n      children: [/*#__PURE__*/_jsx(Tag, {\n        children: props.tag\n      }), /*#__PURE__*/_jsx(Summary, {\n        children: props.summary\n      }), /*#__PURE__*/_jsx(Meta, {\n        children: props.meta\n      }), /*#__PURE__*/_jsx(Detail, {\n        $expanded: expanded,\n        children: props.detail\n      })]\n    }), /*#__PURE__*/_jsx(Button, {\n      children: expanded ? /*#__PURE__*/_jsxs(_Fragment, {\n        children: [/*#__PURE__*/_jsx(\"span\", {\n          children: \"\uC811\uAE30\"\n        }), /*#__PURE__*/_jsx(UpArrowIcon, {\n          size: \"sm\"\n        })]\n      }) : /*#__PURE__*/_jsxs(_Fragment, {\n        children: [/*#__PURE__*/_jsx(\"span\", {\n          children: \"\uB354\uBCF4\uAE30\"\n        }), /*#__PURE__*/_jsx(DownArrowIcon, {\n          size: \"sm\"\n        })]\n      })\n    })]\n  });\n}\n;\naddPropertyControls(ReviewExpandCard, {\n  image: {\n    title: \"Image\",\n    type: ControlType.ResponsiveImage\n  },\n  tag: {\n    title: \"Tag\",\n    type: ControlType.String,\n    defaultValue: \"\uD0DC\uADF8\"\n  },\n  summary: {\n    title: \"Summary\",\n    type: ControlType.String,\n    displayTextArea: true,\n    defaultValue: \"\uD6C4\uAE30 \uC694\uC57D\"\n  },\n  meta: {\n    title: \"Meta\",\n    type: ControlType.String,\n    defaultValue: \"\uD559\uC0DD \uC815\uBCF4\"\n  },\n  detail: {\n    title: \"Detail\",\n    type: ControlType.String,\n    displayTextArea: true,\n    defaultValue: \"\uD6C4\uAE30 \uC0C1\uC138\"\n  }\n});\nconst Wrapper = styled.div`\n    width: 312px;\n\n    background-color: #ffffff;\n    border-radius: 16px;\n    overflow: hidden;\n\n    cursor: pointer;\n`;\nconst Image = styled.div`\n    width: 100%;\n    height: 160px;\n\n    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%), url('${({\n  src\n}) => src}'), lightgray 50%;\n    background-size: cover;\n`;\nconst Content = styled.div`\n    padding: 24px;\n\n    > :not(:first-child) {\n        margin-top: 16px;\n    }\n`;\nconst Tag = styled.span`\n    display: inline-block;\n    padding: 8px 16px;\n\n    border-radius: 8px;\n    background-color: #f55200;\n\n    font-family: Pretendard;\n    font-size: 14px;\n    line-height: 22px;\n    font-weight: 600;\n    color: #ffffff;\n`;\nconst Summary = styled.p`\n    margin: 0;\n\n    font-family: Pretendard;\n    font-size: 20px;\n    line-height: 32px;\n    font-weight: 700;\n    color: #1f1f1f;\n    white-space: pre-line;\n`;\nconst Meta = styled.p`\n    margin: 0;\n\n    font-family: Pretendard;\n    font-size: 15px;\n    line-height: 24px;\n    font-weight: 500;\n    color: #525252;\n`;\nconst Detail = styled.p`\n     margin: 0;\n    \n    font-family: Pretendard;\n    font-size: 17px;\n    line-height: 28px;\n    font-weight: 500;\n    color: #292929;\n    white-space: pre-line;\n\n    ${({\n  $expanded\n}) => !$expanded && css`\n            display: -webkit-box;\n            -webkit-box-orient: vertical;\n            -webkit-line-clamp: 5;\n            overflow: hidden;\n        `}\n`;\nconst Button = styled.button`\n    background: none;\n    outline: none;\n    border: none;\n\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    width: 100%;\n    padding: 16px 10px;\n    border-top: 1px solid #ebebeb;\n\n    font-family: Pretendard;\n    font-size: 14px;\n    line-height: 22px;\n    font-weight: 600;\n    color: #808080;\n\n    cursor: pointer;\n\n    > :not(:first-child) {\n        margin-left: 4px;\n    }\n`;\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"ReviewExpandCard\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerSupportedLayoutHeight\": \"auto\",\n        \"framerContractVersion\": \"1\",\n        \"framerSupportedLayoutWidth\": \"312\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./ReviewExpandCard.map", "import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport styled from \"styled-components\";\nimport { useState } from \"react\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport { ForwardMiniIcon, CloseIcon } from \"https://tutor.qanda.ai/resources/qanda-design-system-wide/0.5.19/v2/index.esm.js\"; /**\n                                                                                                                               * @framerSupportedLayoutWidth 312\n                                                                                                                               * @framerSupportedLayoutHeight 312\n                                                                                                                               */\nexport default function ReviewFlipCard(props) {\n  var ref, ref1;\n  const [flipped, setFlipped] = useState(false);\n  const handleFlip = () => {\n    setFlipped(flipped => !flipped);\n  };\n  const getRichText = text => {\n    return text.split(\"*\").map((part, index) => index % 2 === 0 ? part : /*#__PURE__*/_jsx(\"span\", {\n      children: part\n    }, index));\n  };\n  return /*#__PURE__*/_jsx(Wrapper, {\n    onClick: handleFlip,\n    children: /*#__PURE__*/_jsxs(Flipper, {\n      $flipped: flipped,\n      children: [/*#__PURE__*/_jsxs(Face, {\n        children: [/*#__PURE__*/_jsx(Image, {\n          src: (ref = props.image) === null || ref === void 0 ? void 0 : ref.src\n        }), /*#__PURE__*/_jsx(LightLayer, {}), /*#__PURE__*/_jsx(Summary, {\n          children: getRichText(props.summary)\n        }), /*#__PURE__*/_jsxs(Toggle, {\n          children: [\"\uC790\uC138\uD788 \uBCF4\uAE30\", /*#__PURE__*/_jsx(ForwardMiniIcon, {})]\n        })]\n      }), /*#__PURE__*/_jsxs(Face, {\n        $flipped: true,\n        children: [/*#__PURE__*/_jsx(Image, {\n          src: (ref1 = props.image) === null || ref1 === void 0 ? void 0 : ref1.src,\n          $flipped: true\n        }), /*#__PURE__*/_jsx(DarkLayer, {}), /*#__PURE__*/_jsx(Detail, {\n          children: getRichText(props.detail)\n        }), /*#__PURE__*/_jsxs(Toggle, {\n          children: [\"\uB2EB\uAE30\", /*#__PURE__*/_jsx(CloseIcon, {})]\n        })]\n      })]\n    })\n  });\n}\n;\naddPropertyControls(ReviewFlipCard, {\n  summary: {\n    title: \"Summary\",\n    description: \"*\uB85C \uAC10\uC2F8 \uD14D\uC2A4\uD2B8\uB97C \uAC15\uC870\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.\",\n    type: ControlType.String,\n    displayTextArea: true,\n    defaultValue: \"\uD6C4\uAE30 \uC694\uC57D *\uAC15\uC870*\"\n  },\n  detail: {\n    title: \"Detail\",\n    description: \"*\uB85C \uAC10\uC2F8 \uD14D\uC2A4\uD2B8\uB97C \uAC15\uC870\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.\",\n    type: ControlType.String,\n    displayTextArea: true,\n    defaultValue: \"\uD6C4\uAE30 \uC0C1\uC138 *\uAC15\uC870*\"\n  },\n  image: {\n    title: \"Image\",\n    type: ControlType.ResponsiveImage\n  }\n});\nconst Wrapper = styled.div`\n    width: 312px;\n    height: 312px;\n\n    perspective: 1000px;\n\n    cursor: pointer;\n`;\nconst Flipper = styled.div`\n    position: relative;\n    width: 100%;\n    height: 100%;\n\n    transform-style: preserve-3d;\n    transform: rotateY(${({\n  $flipped\n}) => $flipped ? -180 : 0}deg);\n    transition: .5s;\n`;\nconst Face = styled.div`\n    position: absolute; \n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n\n    padding: 24px;\n    border-radius: 16px;\n    overflow: hidden;\n\n    backface-visibility: hidden;\n    transform: rotateY(${({\n  $flipped\n}) => $flipped ? 180 : 0}deg);\n`;\nconst Image = styled.img`\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n\n    object-fit: cover;\n    transform: rotateY(${({\n  $flipped\n}) => $flipped ? 180 : 0}deg);\n\n    z-index: -1;\n`;\nconst LightLayer = styled.div`\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n\n    background: linear-gradient(135deg, rgba(255, 85, 0, 0.10) 1.84%, rgba(255, 85, 0, 0.00) 100%), linear-gradient(180deg, rgba(10, 10, 10, 0.00) 0%, #0A0A0A 75.52%);\n\n    z-index: -1;\n    -webkit-transform:translate3d(0,0,0);\n`;\nconst DarkLayer = styled.div`\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n\n    background: linear-gradient(135deg, rgba(255, 85, 0, 0.10) 0%, rgba(255, 85, 0, 0.00) 100%), rgba(10, 10, 10, 0.85);\n\n    z-index: -1;\n    -webkit-transform:translate3d(0,0,0);\n`;\nconst Summary = styled.p`\n    position: absolute;\n    left: 24px;\n    right: 24px;\n    bottom: 48px;\n    margin: 0;\n\n    font-family: Pretendard;\n    font-size: 20px;\n    line-height: 28px;\n    font-weight: 800;\n    color: #ffffff;\n    text-shadow: 0px 0px 32px rgba(0, 0, 0, 0.80);\n    white-space: pre-line;\n    word-break: keep-all;\n\n    > span {\n        color: #f55200;\n    }\n`;\nconst Detail = styled.p`\n    margin: 0;\n\n    font-family: Pretendard;\n    font-size: 17px;\n    line-height: 28px;\n    font-weight: 500;\n    color: #ffffff;\n    text-shadow: 0px 0px 32px rgba(0, 0, 0, 0.80);\n    white-space: pre-line;\n    word-break: keep-all;\n\n    > span {\n        color: #f55200;\n    }\n`;\nconst Toggle = styled.div`\n    position: absolute;\n    right: 16px;\n    bottom: 16px;\n\n    display: flex;\n    align-items: center;\n\n    font-family: Pretendard;\n    font-size: 14px;\n    line-height: 22px;\n    font-weight: 600;\n    color: #b2b2b2;\n    text-shadow: 0px 0px 32px rgba(0, 0, 0, 0.80);\n`;\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"ReviewFlipCard\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerSupportedLayoutHeight\": \"312\",\n        \"framerContractVersion\": \"1\",\n        \"framerSupportedLayoutWidth\": \"312\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./ReviewFlipCard.map"],
  "mappings": "0LAQe,SAARA,EAAkCC,EAAO,CAC9C,IAAIC,EACJ,GAAM,CAACC,EAAUC,CAAW,EAAIC,EAAS,EAAK,EAI9C,OAAoBC,EAAMC,EAAS,CACjC,QAJmB,IAAM,CACzBH,EAAYD,GAAY,CAACA,CAAQ,CACnC,EAGE,SAAU,CAAcK,EAAKC,EAAO,CAClC,KAAMP,EAAMD,EAAM,SAAW,MAAQC,IAAQ,OAAS,OAASA,EAAI,GACrE,CAAC,EAAgBI,EAAMI,EAAS,CAC9B,SAAU,CAAcF,EAAKG,EAAK,CAChC,SAAUV,EAAM,GAClB,CAAC,EAAgBO,EAAKI,EAAS,CAC7B,SAAUX,EAAM,OAClB,CAAC,EAAgBO,EAAKK,EAAM,CAC1B,SAAUZ,EAAM,IAClB,CAAC,EAAgBO,EAAKM,EAAQ,CAC5B,UAAWX,EACX,SAAUF,EAAM,MAClB,CAAC,CAAC,CACJ,CAAC,EAAgBO,EAAKO,EAAQ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AA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBhBP,EAASO,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
  "names": ["ReviewExpandCard", "props", "ref", "expanded", "setExpanded", "ye", "u", "Wrapper", "p", "Image", "Content", "Tag", "Summary", "Meta", "Detail", "Button", "l", "ul", "pl", "addPropertyControls", "ControlType", "He", "src", "$expanded", "Ce", "ReviewFlipCard", "props", "ref", "ref1", "flipped", "setFlipped", "ye", "handleFlip", "getRichText", "text", "part", "index", "p", "Wrapper", "u", "Flipper", "Face", "Image", "LightLayer", "Summary", "Toggle", "fl", "DarkLayer", "Detail", "ll", "addPropertyControls", "ControlType", "He", "$flipped"]
}
