{"version":3,"file":"URL.B8PriK-3.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/A9LL8tjKVSCCkuJCGkUG/Xx5cmP70r3Ibet4SA6yw/URL.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function RedirectByFullPath(){return{onTap(){const currentParams=new URLSearchParams(window.location.search);const fbclid=currentParams.get(\"fbclid\");const gclid=currentParams.get(\"gclid\");const gbraid=currentParams.get(\"gbraid\");// オーガニック（パラメータなし）→ 今まで通り\nif(!fbclid&&!gclid&&!gbraid){const currentUrl=window.location.href;const encoded=encodeURIComponent(currentUrl);const path=window.location.pathname.replace(/^\\/+/,\"\");window.location.href=`https://redirect.rakusumu.jp/${path}?referer=${encoded}`;return;}// fbclid → lp=VfE6ye / gclid or gbraid → lp=rgT1bs で出し分け\nconst lp=fbclid?\"VfE6ye\":\"rgT1bs\";const liffParams=new URLSearchParams({follow:\"@702ficiu\",lp:lp,liff_id:\"2000515070-gr8Ne6Kv\"});if(fbclid)liffParams.set(\"fbclid\",fbclid);if(gclid)liffParams.set(\"gclid\",gclid);if(gbraid)liffParams.set(\"gbraid\",gbraid);const utmKeys=[\"utm_source\",\"utm_service\",\"utm_medium\",\"utm_campaign\",\"utm_term\",\"utm_content\"];utmKeys.forEach(key=>{const val=currentParams.get(key);if(val)liffParams.set(key,val);});const liffUrl=`https://liff.line.me/2000515070-gr8Ne6Kv/landing?${liffParams.toString()}`;const isMobile=/iPhone|Android|iPad/i.test(navigator.userAgent);if(isMobile){window.location.href=liffUrl;}else{const qrUrl=`https://api.qrserver.com/v1/create-qr-code/?size=250x250&data=${encodeURIComponent(liffUrl)}`;const overlay=document.createElement(\"div\");overlay.style.cssText=`\n                    position: fixed;\n                    top: 0; left: 0;\n                    width: 100%; height: 100%;\n                    background: rgba(0,0,0,0.7);\n                    display: flex;\n                    align-items: center;\n                    justify-content: center;\n                    z-index: 9999;\n                    cursor: pointer;\n                `;overlay.innerHTML=`\n                    <div style=\"background:white; border-radius:16px; padding:32px; text-align:center;\">\n                        <p style=\"margin-bottom:8px; font-size:16px; font-weight:bold;\">スマートフォンでご覧ください</p>\n                        <p style=\"margin-bottom:16px; font-size:13px; color:#888;\">LINEアプリのQRリーダーで読み取ってください</p>\n                        <img src=\"${qrUrl}\" width=\"250\" height=\"250\" />\n                        <p style=\"margin-top:4px; font-size:11px; color:#aaa;\">LINEを開く → 右上の＋ → QRコード</p>\n                        <p style=\"margin-top:16px; font-size:13px; color:#888;\">タップして閉じる</p>\n                    </div>\n                `;overlay.addEventListener(\"click\",()=>document.body.removeChild(overlay));document.body.appendChild(overlay);}}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withRedirectByFullPath(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...RedirectByFullPath(props)});};}withRedirectByFullPath.displayName=\"RedirectByFullPath\";\nexport const __FramerMetadata__ = {\"exports\":{\"withRedirectByFullPath\":{\"type\":\"reactHoc\",\"name\":\"withRedirectByFullPath\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RedirectByFullPath\":{\"type\":\"override\",\"name\":\"RedirectByFullPath\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./URL.map"],"mappings":"wLAA2C,SAAgB,GAAoB,CAAC,MAAM,CAAC,OAAO,CAAC,IAAM,EAAc,IAAI,gBAAgB,EAAO,SAAS,MAAM,EAAQ,EAAO,EAAc,IAAI,QAAQ,EAAQ,EAAM,EAAc,IAAI,OAAO,EAAQ,EAAO,EAAc,IAAI,QAAQ,EACtR,GAAG,CAAC,GAAQ,CAAC,GAAO,CAAC,EAAO,CAAC,IAAM,EAAW,EAAO,SAAS,KAAW,EAAQ,mBAAmB,CAAU,EAAQ,EAAK,EAAO,SAAS,SAAS,QAAQ,OAAO,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