{"version":3,"file":"UtmPersonalization.Cf2qdzIX.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx","useRef","useState","useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/Et7rbG5qQOFNshfXWbEU/ozFKs7J6bYO2DK145xaL/CountUpOnView.js","https:/framerusercontent.com/modules/GtAxcSfz8Tf8YW53IU1U/vQGLmo5jlemvy6Of502A/UtmPersonalization.js"],"sourcesContent":["\"use client\";import{jsx as _jsx}from\"react/jsx-runtime\";import{animate,useInView}from\"framer-motion\";import{useState,useRef,useLayoutEffect,useEffect}from\"react\";/* ==================================================================\n   CountUpOnView - InView時の数値カウントアップアニメーション\n   ==================================================================\n\n   テキストレイヤーの数値を自動検出し、ビューポートに入った際に\n   0から目標値へアニメーションでカウントアップするCode Override\n\n   v1.1.0: 遅延時間バリエーション追加\n   ================================================================== *//* ==================================================================\n   エクスポート関数（遅延時間バリエーション）\n   ================================================================== *//**\n * CountUpOnView - 即座に開始（遅延なし）\n *\n * @example\n * テキストレイヤー: \"5,000\"\n * Override: CountUpOnView\n * → InView検出後、すぐにカウントアップ開始\n */export const CountUpOnView=()=>{const delayTime=0;const ref=useRef(null);const[target,setTarget]=useState(null);const[value,setValue]=useState(null);const inView=useInView(ref,{once:true,amount:.8});useLayoutEffect(()=>{if(target!==null)return;if(!ref.current)return;const raw=ref.current.textContent??\"0\";const num=Number(raw.replace(/[^\\d.-]/g,\"\"))||0;setTarget(num);setValue(0);},[target]);useEffect(()=>{if(!inView)return;if(target===null)return;const controls=animate(0,target,{duration:.8,delay:delayTime,ease:\"easeOut\",onUpdate:latest=>setValue(Math.round(latest))});return()=>controls.stop();},[inView,target]);return{ref,text:value===null?undefined:value.toLocaleString()};};/**\n * CountUpOnViewDelayShort - 短い遅延（0.2秒）\n *\n * @example\n * テキストレイヤー: \"5,000\"\n * Override: CountUpOnViewDelayShort\n * → InView検出後、0.2秒待ってからカウントアップ開始\n */export const CountUpOnViewDelayShort=()=>{const delayTime=.2;const ref=useRef(null);const[target,setTarget]=useState(null);const[value,setValue]=useState(null);const inView=useInView(ref,{once:true,amount:.8});useLayoutEffect(()=>{if(target!==null)return;if(!ref.current)return;const raw=ref.current.textContent??\"0\";const num=Number(raw.replace(/[^\\d.-]/g,\"\"))||0;setTarget(num);setValue(0);},[target]);useEffect(()=>{if(!inView)return;if(target===null)return;const controls=animate(0,target,{duration:.8,delay:delayTime,ease:\"easeOut\",onUpdate:latest=>setValue(Math.round(latest))});return()=>controls.stop();},[inView,target]);return{ref,text:value===null?undefined:value.toLocaleString()};};/**\n * CountUpOnViewDelayMedium - 中程度の遅延（0.4秒）\n *\n * @example\n * テキストレイヤー: \"5,000\"\n * Override: CountUpOnViewDelayMedium\n * → InView検出後、0.4秒待ってからカウントアップ開始\n */export const CountUpOnViewDelayMedium=()=>{const delayTime=.4;const ref=useRef(null);const[target,setTarget]=useState(null);const[value,setValue]=useState(null);const inView=useInView(ref,{once:true,amount:.8});useLayoutEffect(()=>{if(target!==null)return;if(!ref.current)return;const raw=ref.current.textContent??\"0\";const num=Number(raw.replace(/[^\\d.-]/g,\"\"))||0;setTarget(num);setValue(0);},[target]);useEffect(()=>{if(!inView)return;if(target===null)return;const controls=animate(0,target,{duration:.8,delay:delayTime,ease:\"easeOut\",onUpdate:latest=>setValue(Math.round(latest))});return()=>controls.stop();},[inView,target]);return{ref,text:value===null?undefined:value.toLocaleString()};};/**\n * CountUpOnViewDelayLong - 長い遅延（0.8秒）\n *\n * @example\n * テキストレイヤー: \"5,000\"\n * Override: CountUpOnViewDelayLong\n * → InView検出後、0.8秒待ってからカウントアップ開始\n */export const CountUpOnViewDelayLong=()=>{const delayTime=.8;const ref=useRef(null);const[target,setTarget]=useState(null);const[value,setValue]=useState(null);const inView=useInView(ref,{once:true,amount:.8});useLayoutEffect(()=>{if(target!==null)return;if(!ref.current)return;const raw=ref.current.textContent??\"0\";const num=Number(raw.replace(/[^\\d.-]/g,\"\"))||0;setTarget(num);setValue(0);},[target]);useEffect(()=>{if(!inView)return;if(target===null)return;const controls=animate(0,target,{duration:.8,delay:delayTime,ease:\"easeOut\",onUpdate:latest=>setValue(Math.round(latest))});return()=>controls.stop();},[inView,target]);return{ref,text:value===null?undefined:value.toLocaleString()};};import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withCountUpOnView(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...CountUpOnView(props)});};}withCountUpOnView.displayName=\"CountUpOnView\";export function withCountUpOnViewDelayShort(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...CountUpOnViewDelayShort(props)});};}withCountUpOnViewDelayShort.displayName=\"CountUpOnViewDelayShort\";export function withCountUpOnViewDelayMedium(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...CountUpOnViewDelayMedium(props)});};}withCountUpOnViewDelayMedium.displayName=\"CountUpOnViewDelayMedium\";export function withCountUpOnViewDelayLong(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...CountUpOnViewDelayLong(props)});};}withCountUpOnViewDelayLong.displayName=\"CountUpOnViewDelayLong\";\nexport const __FramerMetadata__ = {\"exports\":{\"withCountUpOnViewDelayLong\":{\"type\":\"reactHoc\",\"name\":\"withCountUpOnViewDelayLong\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CountUpOnViewDelayMedium\":{\"type\":\"override\",\"name\":\"CountUpOnViewDelayMedium\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CountUpOnViewDelayShort\":{\"type\":\"override\",\"name\":\"CountUpOnViewDelayShort\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CountUpOnView\":{\"type\":\"override\",\"name\":\"CountUpOnView\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCountUpOnViewDelayShort\":{\"type\":\"reactHoc\",\"name\":\"withCountUpOnViewDelayShort\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCountUpOnView\":{\"type\":\"reactHoc\",\"name\":\"withCountUpOnView\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CountUpOnViewDelayLong\":{\"type\":\"override\",\"name\":\"CountUpOnViewDelayLong\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCountUpOnViewDelayMedium\":{\"type\":\"reactHoc\",\"name\":\"withCountUpOnViewDelayMedium\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CountUpOnView.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{useLayoutEffect,useState}from\"react\";/**\n * UTMパーソナライゼーション Code Override\n * Version: 1.8.0\n *\n * URLパラメータ（content または utm_term）に基づいてテキストコンテンツを動的にパーソナライズします。\n * キーワード数ベースの部分一致マッチングを使用し、より具体的なキーワードを優先します。\n *\n * パラメータ優先順位:\n * 1. content（最優先）- サイト内リンク用\n * 2. utm_term（フォールバック）- Google広告用\n *\n * v1.6.0: DeprecatedRichText対応（useLayoutEffect + DOM直接操作）\n * v1.6.1: GUIスタイル維持対応（innerHTML使用）+ GUIデフォルトテキストへのフォールバック\n * v1.6.2: textNode.nodeValue使用でインラインスタイル完全維持（innerHTML → nodeValue）\n * v1.6.3: TreeWalker再帰探索でRichTextContainer対応（ネストされた構造に対応）\n * v1.6.4: 初期表示ちらつき完全防止（opacity制御）→ 失敗\n * v1.7.0: React.cloneElement + モジュールキャッシュ + visibility:hidden → 初期表示ちらつき完全防止成功\n * v1.7.1: メモリ最適化（42%削減）\n * v1.8.0: contentパラメータ優先対応（サイト内リンク用途）\n */// ============================================\n// デバッグ設定\n// ============================================\nconst VERSION=\"1.8.0\";/**\n * デバッグモード判定\n * URLパラメータに ?debug=utm が含まれている場合にtrueを返す\n */function isDebugMode(){if(typeof window===\"undefined\")return false;try{const params=new URLSearchParams(window.location.search);return params.get(\"debug\")===\"utm\";}catch{return false;}}// ============================================\n// コンテンツマップ\n// ============================================\nconst CONTENT_MAP={// === サンプル: 東京×デイサービス ===\n\"東京 デイサービス\":{headline:\"東京版\",longText:\"人間関係に疲れた私が「デイサービス」に転職して笑顔を取り戻せたワケ\",phrase1:\"東京版\",phrase2:\"介護の仕事探し\",phrase3:\"デイサービスへの転職\",phrase4:\"人間関係に疲れた私が\",phrase5:\"「デイサービス」に転職して\",phrase6:\"笑顔を取り戻せたワケ\",phrase7:\"＃休みが取れず\",phrase8:\"＃夜勤ばかりで疲れてた\",phrase9:\"＃今は夕方に帰れる毎日\",phrase10:\"＃笑顔で働ける職場\",phrase11:\"サンプル11\",phrase12:\"サンプル12\",phrase13:\"サンプル13\",phrase14:\"サンプル14\",phrase15:\"サンプル15\"}};// ============================================\n// キーワードメタデータ（事前計算）\n// ============================================\n/**\n * キーワード数を事前計算してキャッシュ（メモリ最適化版）\n * モジュールロード時に1回だけ実行される\n *\n * v1.7.1: contentオブジェクト参照を削除してメモリ使用量を削減\n */const KEYWORD_METADATA=Object.keys(CONTENT_MAP).map(keyword=>({keyword,keywordCount:keyword.split(\" \").filter(k=>k.length>0).length}));// ============================================\n// コアロジック\n// ============================================\n/**\n * UTMパラメータからコンテンツを取得\n * キーワード数ベースの部分一致マッチングを使用\n * マッチしない場合は空オブジェクトを返す（GUIテキストがフォールバック）\n *\n * v1.7.1: CONTENT_MAPから直接取得する方式に変更（メモリ最適化）\n */function getContent(utmTerm){if(!utmTerm)return{};let bestMatchKeyword=null;let maxKeywordCount=0;// 事前計算済みメタデータを使用（split不要）\nfor(const item of KEYWORD_METADATA){if(utmTerm.includes(item.keyword)){if(item.keywordCount>maxKeywordCount){bestMatchKeyword=item.keyword;maxKeywordCount=item.keywordCount;}}}// マッチしたキーワードのcontentをCONTENT_MAPから取得\nreturn bestMatchKeyword?CONTENT_MAP[bestMatchKeyword]:{};}/**\n * モジュールロード時に1回だけコンテンツを取得してキャッシュ\n * これにより初回レンダリング時にちらつきなし\n */let CACHED_CONTENT={};if(typeof window!==\"undefined\"){const debug=isDebugMode();try{// URLパラメータ読み取り（モジュールロード時に1回のみ）\nconst params=new URLSearchParams(window.location.search);const contentParam=params.get(\"content\");const utmTerm=params.get(\"utm_term\");// パラメータがある場合のみ初期化\nif(contentParam||utmTerm){if(debug)console.log(\"[UTM] Initializing content cache at module load\");// content優先、なければutm_term（フォールバック）\nconst targetKeyword=contentParam||utmTerm;if(debug){console.log(\"[UTM] Full URL:\",window.location.href);console.log(\"[UTM] Search params:\",window.location.search);console.log(\"[UTM] URL param (content):\",contentParam);console.log(\"[UTM] URL param (utm_term):\",utmTerm);console.log(\"[UTM] Selected keyword:\",targetKeyword);}// マッチング実行（モジュールロード時に1回のみ）\nCACHED_CONTENT=getContent(targetKeyword);if(debug){console.log(\"[UTM] Cached content:\",CACHED_CONTENT);}}}catch(error){console.error(\"[UTM Personalization Error]\",error);CACHED_CONTENT={};}}/**\n * キャッシュされたコンテンツを取得\n * モジュールロード時に既に計算済みなので即座に返る（< 1ms）\n */function getContentSync(){return CACHED_CONTENT;}// ============================================\n// ヘルパー関数（DateOverride方式）\n// ============================================\n/**\n * children内のテキストを再帰的に置換\n * DateOverrideと同じ方式を採用\n *\n * - 文字列: 直接置換\n * - React要素: React.cloneElementで再帰処理\n * - 配列: mapで各要素を再帰処理\n */function processChildren(children,newText){// 文字列の場合: 直接置換\nif(typeof children===\"string\"){return newText;}// React要素の場合: cloneElementで再帰処理\nif(/*#__PURE__*/React.isValidElement(children)){const element=children;return /*#__PURE__*/React.cloneElement(element,{...element.props,children:processChildren(element.props.children,newText)});}// 配列の場合: mapで各要素を再帰処理\nif(Array.isArray(children)){return children.map(child=>processChildren(child,newText));}// その他: そのまま返す\nreturn children;}// ============================================\n// Override関数（DateOverride方式）\n// ============================================\n/**\n * headline専用Override\n */export function withUtmHeadline(Component){return props=>{const debug=isDebugMode();const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{// useLayoutEffectはブラウザ描画前に実行される\nsetIsVisible(true);},[]);if(debug){console.log(\"[UTM] withUtmHeadline rendering:\",{contentHeadline:content.headline,hasChildren:!!props.children,isVisible});}// content.headlineが存在する場合のみ書き換え\n// 存在しない場合はGUIのデフォルトテキスト（props.children）を維持\nconst newChildren=content.headline?processChildren(props.children,content.headline):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}/**\n * longText専用Override\n */export function withUtmLongText(Component){return props=>{const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{setIsVisible(true);},[]);const newChildren=content.longText?processChildren(props.children,content.longText):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}/**\n * phrase1専用Override\n */export function withUtmPhrase1(Component){return props=>{const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{setIsVisible(true);},[]);const newChildren=content.phrase1?processChildren(props.children,content.phrase1):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}/**\n * phrase2専用Override\n */export function withUtmPhrase2(Component){return props=>{const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{setIsVisible(true);},[]);const newChildren=content.phrase2?processChildren(props.children,content.phrase2):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}/**\n * phrase3専用Override\n */export function withUtmPhrase3(Component){return props=>{const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{setIsVisible(true);},[]);const newChildren=content.phrase3?processChildren(props.children,content.phrase3):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}/**\n * phrase4専用Override\n */export function withUtmPhrase4(Component){return props=>{const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{setIsVisible(true);},[]);const newChildren=content.phrase4?processChildren(props.children,content.phrase4):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}/**\n * phrase5専用Override\n */export function withUtmPhrase5(Component){return props=>{const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{setIsVisible(true);},[]);const newChildren=content.phrase5?processChildren(props.children,content.phrase5):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}/**\n * phrase6専用Override\n */export function withUtmPhrase6(Component){return props=>{const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{setIsVisible(true);},[]);const newChildren=content.phrase6?processChildren(props.children,content.phrase6):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}/**\n * phrase7専用Override\n */export function withUtmPhrase7(Component){return props=>{const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{setIsVisible(true);},[]);const newChildren=content.phrase7?processChildren(props.children,content.phrase7):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}/**\n * phrase8専用Override\n */export function withUtmPhrase8(Component){return props=>{const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{setIsVisible(true);},[]);const newChildren=content.phrase8?processChildren(props.children,content.phrase8):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}/**\n * phrase9専用Override\n */export function withUtmPhrase9(Component){return props=>{const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{setIsVisible(true);},[]);const newChildren=content.phrase9?processChildren(props.children,content.phrase9):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}/**\n * phrase10専用Override\n */export function withUtmPhrase10(Component){return props=>{const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{setIsVisible(true);},[]);const newChildren=content.phrase10?processChildren(props.children,content.phrase10):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}/**\n * phrase11専用Override\n */export function withUtmPhrase11(Component){return props=>{const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{setIsVisible(true);},[]);const newChildren=content.phrase11?processChildren(props.children,content.phrase11):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}/**\n * phrase12専用Override\n */export function withUtmPhrase12(Component){return props=>{const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{setIsVisible(true);},[]);const newChildren=content.phrase12?processChildren(props.children,content.phrase12):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}/**\n * phrase13専用Override\n */export function withUtmPhrase13(Component){return props=>{const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{setIsVisible(true);},[]);const newChildren=content.phrase13?processChildren(props.children,content.phrase13):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}/**\n * phrase14専用Override\n */export function withUtmPhrase14(Component){return props=>{const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{setIsVisible(true);},[]);const newChildren=content.phrase14?processChildren(props.children,content.phrase14):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}/**\n * phrase15専用Override\n */export function withUtmPhrase15(Component){return props=>{const content=getContentSync();const[isVisible,setIsVisible]=useState(false);useLayoutEffect(()=>{setIsVisible(true);},[]);const newChildren=content.phrase15?processChildren(props.children,content.phrase15):props.children;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .${props.className} {\n                        visibility: ${isVisible?\"visible\":\"hidden\"} !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,children:newChildren})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withUtmPhrase1\":{\"type\":\"reactHoc\",\"name\":\"withUtmPhrase1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUtmPhrase14\":{\"type\":\"reactHoc\",\"name\":\"withUtmPhrase14\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUtmLongText\":{\"type\":\"reactHoc\",\"name\":\"withUtmLongText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUtmPhrase10\":{\"type\":\"reactHoc\",\"name\":\"withUtmPhrase10\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUtmPhrase8\":{\"type\":\"reactHoc\",\"name\":\"withUtmPhrase8\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUtmPhrase2\":{\"type\":\"reactHoc\",\"name\":\"withUtmPhrase2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUtmPhrase6\":{\"type\":\"reactHoc\",\"name\":\"withUtmPhrase6\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUtmPhrase11\":{\"type\":\"reactHoc\",\"name\":\"withUtmPhrase11\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUtmHeadline\":{\"type\":\"reactHoc\",\"name\":\"withUtmHeadline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUtmPhrase15\":{\"type\":\"reactHoc\",\"name\":\"withUtmPhrase15\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUtmPhrase9\":{\"type\":\"reactHoc\",\"name\":\"withUtmPhrase9\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUtmPhrase7\":{\"type\":\"reactHoc\",\"name\":\"withUtmPhrase7\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUtmPhrase4\":{\"type\":\"reactHoc\",\"name\":\"withUtmPhrase4\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUtmPhrase5\":{\"type\":\"reactHoc\",\"name\":\"withUtmPhrase5\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUtmPhrase3\":{\"type\":\"reactHoc\",\"name\":\"withUtmPhrase3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUtmPhrase12\":{\"type\":\"reactHoc\",\"name\":\"withUtmPhrase12\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUtmPhrase13\":{\"type\":\"reactHoc\",\"name\":\"withUtmPhrase13\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UtmPersonalization.map"],"mappings":"iSAsC40B,SAAgB,EAAkB,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAc,EAAM,CAAC,CAAC,EAAkD,SAAgB,EAA4B,EAAE,CAAC,MAAO,KAAQ,EAA+BD,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAwB,EAAM,CAAC,CAAC,EAAsE,SAAgB,EAA6B,EAAE,CAAC,MAAO,KAAQ,EAA+BD,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAA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