{"version":3,"file":"CaseDetailList.DuIXUtFL.mjs","names":["React.useId","React.useMemo","_Fragment"],"sources":["https:/framerusercontent.com/modules/tU9nzJQSwrkQUxSsnxGr/YdyNVvAKwBcNik9ZX06H/CaseDetailList.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function CaseDetailList(props){const{content=\"<p>項目サンプル</p><p>2つ目の項目</p>\",variant=\"bullet\",style}=props;const normalizedVariant=String(variant).toLowerCase();const isCheckVariant=normalizedVariant===\"check\";const scopeClassName=`case-detail-list-${React.useId().replace(/[:]/g,\"\")}`;const renderedContent=React.useMemo(()=>{if(typeof content===\"string\"){return /*#__PURE__*/_jsx(\"div\",{dangerouslySetInnerHTML:{__html:content}});}if(/*#__PURE__*/React.isValidElement(content)||Array.isArray(content)){return /*#__PURE__*/_jsx(_Fragment,{children:content});}if(typeof content===\"object\"&&content){const maybeHtml=content.html;const maybeInnerHtml=content.__html;if(typeof maybeHtml===\"string\"){return /*#__PURE__*/_jsx(\"div\",{dangerouslySetInnerHTML:{__html:maybeHtml}});}if(typeof maybeInnerHtml===\"string\"){return /*#__PURE__*/_jsx(\"div\",{dangerouslySetInnerHTML:{__html:maybeInnerHtml}});}const maybeChildren=content.children;if(/*#__PURE__*/React.isValidElement(maybeChildren)||Array.isArray(maybeChildren)){return /*#__PURE__*/_jsx(_Fragment,{children:maybeChildren});}}return null;},[content]);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",background:\"transparent\",boxSizing:\"border-box\",...style},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .${scopeClassName} {\n                    font-family: \"Noto Sans JP\", sans-serif;\n                    color: #262626;\n                    font-size: 16px;\n                    line-height: 1.8;\n                    background: transparent;\n                }\n                .${scopeClassName} p,\n                .${scopeClassName} li {\n                    position: relative;\n                    margin: 0 0 10px 0;\n                    padding-left: ${isCheckVariant?\"30px\":\"12px\"};\n                    list-style: none;\n                }\n                .${scopeClassName} p:last-child,\n                .${scopeClassName} li:last-child {\n                    margin-bottom: 0;\n                }\n                .${scopeClassName} ul,\n                .${scopeClassName} ol {\n                    margin: 0;\n                    padding: 0;\n                    list-style: none;\n                }\n                .${scopeClassName} p::before,\n                .${scopeClassName} li::before {\n                    content: ${isCheckVariant?'\"\"':'\"・\"'};\n                    position: absolute;\n                    left: 0;\n                    top: ${isCheckVariant?\"0.22em\":\"0\"};\n                    width: ${isCheckVariant?\"20px\":\"12px\"};\n                    height: ${isCheckVariant?\"20px\":\"auto\"};\n                    border-radius: ${isCheckVariant?\"999px\":\"0\"};\n                    background: ${isCheckVariant?\"#1761E6\":\"transparent\"};\n                    color: #6B7078;\n                    font-size: 1em;\n                    line-height: 1.8;\n                    text-align: left;\n                    box-sizing: border-box;\n                }\n                ${isCheckVariant?`\n                .${scopeClassName} p::after,\n                .${scopeClassName} li::after {\n                    content: \"\";\n                    position: absolute;\n                    left: 7px;\n                    top: calc(0.22em + 4px);\n                    width: 5px;\n                    height: 9px;\n                    border-right: 2px solid #FFFFFF;\n                    border-bottom: 2px solid #FFFFFF;\n                    transform: rotate(45deg);\n                    box-sizing: border-box;\n                }`:\"\"}\n            `}),/*#__PURE__*/_jsx(\"div\",{className:scopeClassName,children:renderedContent})]});}addPropertyControls(CaseDetailList,{content:{type:ControlType.RichText||ControlType.String,title:\"Content\",defaultValue:\"<p>項目サンプル</p><p>2つ目の項目</p>\"},variant:{type:ControlType.Enum,title:\"Variant\",options:[\"Bullet\",\"Check\"],optionTitles:[\"Bullet\",\"Check\"],defaultValue:\"Bullet\",displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CaseDetailList\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"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