{"version":3,"file":"EditorialFAQ.mF5pxg3M.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/mJvAEQ6qxtyqWos4Z5b2/8l0UoQmMEdyZljI2FEWb/EditorialFAQ.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function EditorialFAQ(props){const{items,content,accentColor,textColor,style}=props;const resolvedItems=useMemo(()=>{if(!content||!content.trim())return items;try{const normalizedContent=content.trim().replace(/^FAQ:\\s*/i,\"\");const parsed=JSON.parse(normalizedContent);if(!Array.isArray(parsed))return items;const normalized=parsed.map(entry=>{if(!entry||typeof entry!==\"object\")return null;const question=typeof entry.question===\"string\"?entry.question:\"\";const answer=typeof entry.answer===\"string\"?entry.answer:\"\";if(!question&&!answer)return null;return{question,answer};}).filter(Boolean);return normalized.length>0?normalized:items;}catch(_error){return items;}},[content,items]);return /*#__PURE__*/_jsxs(\"section\",{className:\"hrb-faq__root__editorial\",style:{position:\"relative\",width:\"100%\",height:\"auto\",boxSizing:\"border-box\",...style},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .hrb-faq__root__editorial details {\n                    border-bottom: 1px solid #D7E5EA;\n                    padding: 24px 0;\n                }\n                .hrb-faq__root__editorial summary {\n                    list-style: none;\n                    cursor: pointer;\n                    display: flex;\n                    align-items: center;\n                    justify-content: space-between;\n                    gap: 16px;\n                    color: ${textColor};\n                    font-family: \"Noto Sans JP\", Inter, sans-serif;\n                    font-weight: 500;\n                    font-size: 17px;\n                    line-height: 1.5;\n                }\n                .hrb-faq__root__editorial summary::-webkit-details-marker {\n                    display: none;\n                }\n                .hrb-faq__root__editorial summary::marker {\n                    content: \"\";\n                }\n                .hrb-faq__root__editorial .hrb-faq__icon__editorial {\n                    width: 22px;\n                    height: 22px;\n                    min-width: 22px;\n                    border-radius: 999px;\n                    border: 1px solid ${accentColor};\n                    color: ${accentColor};\n                    display: inline-flex;\n                    align-items: center;\n                    justify-content: center;\n                    font-size: 16px;\n                    line-height: 1;\n                    font-weight: 500;\n                    font-family: Inter, sans-serif;\n                    flex: 0 0 auto;\n                }\n                .hrb-faq__root__editorial details[open] .hrb-faq__icon__editorial::before {\n                    content: \"−\";\n                }\n                .hrb-faq__root__editorial details:not([open]) .hrb-faq__icon__editorial::before {\n                    content: \"+\";\n                }\n                .hrb-faq__root__editorial .hrb-faq__answer__editorial {\n                    padding-top: 16px;\n                    max-width: 760px;\n                    color: ${textColor};\n                    font-family: \"Noto Sans JP\", Inter, sans-serif;\n                    font-size: 15px;\n                    line-height: 2;\n                    white-space: pre-line;\n                }\n                @media (max-width: 800px) {\n                    .hrb-faq__root__editorial summary {\n                        font-size: 15px;\n                    }\n                }\n            `}),resolvedItems.map((item,index)=>/*#__PURE__*/_jsxs(\"details\",{children:[/*#__PURE__*/_jsxs(\"summary\",{children:[/*#__PURE__*/_jsx(\"span\",{children:item.question}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,className:\"hrb-faq__icon__editorial\"})]}),/*#__PURE__*/_jsx(\"div\",{className:\"hrb-faq__answer__editorial\",children:item.answer})]},index))]});}addPropertyControls(EditorialFAQ,{content:{type:ControlType.String,title:\"Content\",defaultValue:\"\",displayTextArea:true},items:{type:ControlType.Array,title:\"Items\",defaultValue:[],control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"\"},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"\",displayTextArea:true}}}},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#2998C0\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#182638\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EditorialFAQ\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayo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