PageSourceSearch

https://ugokimap-saas.vercel.app/_next/static/chunks/app/(saas-she…?dpl=dpl_dikuHpxpqS6PL8Gxe1FpXpK26NUG

js ugokimap-saas.vercel.app collected 2026-10-03 07:55:37 UTC 19,293 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a60e6f64-27ad-4d56-9879-41b38e693717",e._sentryDebugIdIdentifier="sentry-dbid-a60e6f64-27ad-4d56-9879-41b38e693717")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3578],{77858:function(e,t,r){Promise.resolve().then(r.bind(r,47357)),Promise.resolve().then(r.bind(r,3791)),Promise.resolve().then(r.bind(r,63073)),Promise.resolve().then(r.bind(r,12339))},47357:function(e,t,r){"use strict";r.d(t,{GtmGuide:function(){return o}});var s=r(57437),n=r(2265),a=r(76865),i=r(4554);let d=[{n:1,file:"01-create-account",alt:"GTM ダッシュボード「アカウント作成」ボタン"},{n:2,file:"02-container-setup",alt:"コンテナ設定 (ウェブ) 画面"},{n:3,file:"03-install-code",alt:"GTM コードスニペット表示"},{n:4,file:"04-new-tag-custom-html",alt:"新規タグ → カスタム HTML 選択"},{n:5,file:"05-paste-snippet",alt:"UGOKI MAP tracking.js snippet 貼付"},{n:6,file:"06-trigger-all-pages",alt:"トリガー: All Pages 選択"},{n:7,file:"07-preview-debug",alt:"プレビュー / デバッグモード起動"},{n:8,file:"08-publish",alt:"公開 (Submit) ボタン + バージョン名入力"},{n:9,file:"09-verify-tag-fired",alt:"プレビューモードで Tag Fired 確認"}];function o(){let[e,t]=(0,n.useState)(!1),r=(0,n.useRef)(null);return(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"rounded-md border border-border bg-background",children:[(0,s.jsx)("div",{className:"aspect-video w-full overflow-hidden rounded-t-md bg-foreground
1/95",children:e?(0,s.jsx)(l,{}):(0,s.jsxs)("video",{ref:r,controls:!0,preload:"metadata",poster:"/onboarding/gtm/install-poster.jpg",className:"h-full w-full",onError:()=>t(!0),"aria-label":"GTM への UGOKI MAP tracking.js 設置ガイド (約 90 秒)",children:[(0,s.jsx)("source",{src:"/onboarding/gtm/install.mp4",type:"video/mp4"}),(0,s.jsx)("track",{kind:"captions",src:"/onboarding/gtm/install.srt",srcLang:"ja",label:"日本語字幕",default:!0}),"お使いのブラウザは video 要素に対応していません。"]})}),(0,s.jsx)("p",{className:"px-4 py-3 text-xs text-text-2",children:"動画は約 90 秒、音声なしの日本語字幕付きです。動画が再生できない場合は、下のスクリーンショットを参照してください。"})]}),(0,s.jsx)("ol",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",role:"list",children:d.map(e=>(0,s.jsxs)("li",{className:"overflow-hidden rounded-md border border-border bg-background",children:[(0,s.jsxs)("div",{className:"relative aspect-[3/2] w-full bg-muted",children:[(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcSet:"/onboarding/gtm/".concat(e.file,".webp"),type:"image/webp"}),(0,s.jsx)("img",{src:"/onboarding/gtm/".concat(e.file,".png"),alt:e.alt,loading:"lazy",className:"absolute inset-0 h-full w-full object-cover",onError:e=>{e.currentTarget.style.display="none";let t=e.currentTarget.nextElementSibling;t&&(t.style.display="flex")}})]}),(0,s.jsxs)("div",{className:"absolute inset-0 hidden items-center justify-center text-xs text-text-3","aria-hidden":!0,children:["Step ",e.n," (Operator 撮影待ち)"]})]}),(0,s.jsxs)("div",{className:"px-3 py-2",children:[(0,s.jsxs)("p",{className:"text-[11px] font-mono uppercase tracking-[0.06em] text-text-3",children:["Step ",e.n]}),(0,s.jsx)("p",{className:"text-xs text-foreground",children:e.alt})]})]},e.n))}),(0,s.jsx)("p",{className:"text-[11px] text-text-3",children:"画面は Operator 撮影分 (2026-05-19 〜 21 撮影予定) に置き換わります。GTM の UI は予告なく変更されるため、ズレが大きい場合は再撮影します。"})]})}function l(){return(0,s.jsxs)("div",{className:"flex h-full w-full flex-col items-center justify-center gap-2 bg-foreground
1/90 px-4 text-center text-background",children:[(0,s.jsx)(a.Z,{className:"h-6 w-6","aria-hidden":!0}),(0,s.jsx)("p",{className:"text-sm font-semibold",children:"動画ファイルが見つかりません"}),(0,s.jsxs)("p",{className:"max-w-md text-xs opacity-80",children:["Operator 撮影 (2026-05-19 〜 21) 完了後に ",(0,s.jsx)("code",{className:"font-mono",children:"install.mp4"})," が repo に同梱されます。 スクリーンショット 9 枚で代替手順を確認できます。"]}),(0,s.jsxs)("p",{className:"font-mono text-[10px] opacity-60",children:[(0,s.jsx)(i.Z,{className:"inline h-3 w-3","aria-hidden":!0})," public/onboarding/gtm/install.mp4"]})]})}},3791:function(e,t,r){"use strict";r.d(t,{SiteClassifierStep:function(){return b}});var s=r(57437),n=r(2265),a=r(29501),i=r(13590),d=r(91351),o=r(51817),l=r(96362),c=r(83578),u=r(62869),x=r(95186),f=r(26815),m=r(54794);let p=d.Ry({site_url:d.Z_().url("URL の形式が正しくありません")});function b(e){let{siteId:t}=e,[r,d]=(0,n.useState)("idle"),[c,m]=(0,n.use
1State)(null),{register:b,handleSubmit:v,formState:h}=(0,a.cI)({resolver:(0,i.F)(p),defaultValues:{site_url:""}});async function j(e){d("running"),m(null);try{await new Promise(e=>window.setTimeout(e,1500)),m({primary_industry:function(e){try{let t=new URL(e).hostname.toLowerCase();if(t.includes("shop")||t.includes("store"))return"EC / D2C";if(t.includes("blog")||t.includes("media"))return"メディア / オウンドメディア";if(t.includes("hotel")||t.includes("travel"))return"旅行・宿泊";return"EC / D2C"}catch(e){return"判別不能 (Sprint 3 で改善)"}}(e.site_url),business_model_tags:["EC","D2C","コスメ・ビューティ"],confidence:.48}),d("done")}catch(e){d("error")}}return(0,s.jsxs)("form",{onSubmit:v(j),className:"space-y-4",noValidate:!0,"aria-busy":"running"===r,children:[(0,s.jsxs)("div",{className:"space-y-1.5",children:[(0,s.jsx)(f._,{htmlFor:"site_url",children:"サイト URL"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(x.I,{id:"site_url",type:"url",autoComplete:"url",placeholder:"https://www.your-site.com","aria-invalid":!!h.errors.site_url,"aria-describedby":h.errors.site_url?"site-url-error":void 0,disabled:"running"===r,...b("site_url")}),(0,s.jsx)(u.z,{type:"submit",disabled:"running"===r,className:"gap-2",children:"running"===r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{className:"h-4 w-4 animate-spin","aria-hidden":!0}),"分析中…"]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Z,{className:"h-4 w-4","aria-hidden":!0}),"業種を自動診断"]})})]}),h.errors.site_url?(0,s.jsx)("p",{id:"site-url-error",role:"alert",className:"text-xs text-destructive",children:h.errors.site_url.message}):null,(0,s.jsxs)("p",{className:"text-[11px] text-text-3",children:["ML がサイトを解析し、業種候補を ",(0,s.jsx)("strong",{children:"5-8 秒"})," 程度で返します。"]})]}),"running"===r?(0,s.jsxs)("div",{role:"status","aria-live":"polite",className:"rounded-md border border-border bg-muted/50 px-4 py-6 text-center text-xs text-text-2",children:[(0,s.jsx)(o.Z,{className:"mx-auto h-5 w-5 animate-spin text-primary","aria-hidden":!0}),(0,s.jsx)("p",{className:"mt-2",children:"貴サイトを分析中です…(平均 5 秒)"})]}):null,"done"===r&&c?(0,s.jsx)(g,{result:c,siteId:t}):null,"error"===r?(0,s.jsx)("div",{role:"alert",className:"rounded-md border border-destructive/30 bg-destructive/10 p-3 text-xs text-destructive",children:"分析中にエラーが発生しました。時間をおいて再度お試しください。"}):null]})}function g(e){let{result:t,siteId:r}=e,n=t.confidence<.6;return(0,s.jsxs)("div",{className:"rounded-md border border-border bg-background p-4 text-sm","data-site-id":r,children:[(0,s.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,s.jsx)("p",{className:"font-mono text-[11px] uppercase tracking-[0.08em] text-text-3",children:"診断結果"}),(0,s.jsx)(m.w,{evidence:{level:"inferred",confidence:t.confidence,references:[]},compact:!0})]}),(0,s.jsxs)("dl",{className:"grid grid-cols-1 gap-y-3 sm:grid-cols-[160px_1fr]",children:[(0,s.jsx)("dt",{className:"text-xs text-text-3",children:"主要業種"}),(0,s.jsx)("dd",{className:"text-sm font-semibold",children:t.primary_industry}),(0,s.jsx)("dt",{className:"text-xs text-text-3",children:"ビジネスモデルタグ"}),(0,s.jsx)("dd",{className:"flex flex-wrap gap-1.5",children:t.business_model_tags.map(e=>(0,s.jsx)("span",{className:"rounded-full border border-border bg-muted px-2 py-0.5 text-[11px] text-foreground",children:e},e))})]}),n?(0,s.jsxs)("div",{role:"alert",className:"mt-4 flex items-start gap-2 rounded-md border border-destructive/30 bg-destructive/5 p-3 text-xs text-destructive",children:[(0,s.jsx)(c.Z,{className:"mt-0.5 h-4 w-4 flex-shrink-0","aria-hidden":!0}),(0,s.jsxs)("p",{children:["分類自信度が低めです (confidence ",Math.round(100*t.confidence),"%)。",(0,s.jsx)("br",{}),"設定 → 業種設定から正しい業種を選び直すと、KPI の比較対象が最適化されます。"]})]}):null,(0,s.jsx)("p",{className:"mt-4 text-[11px] text-text-3",children:"Sprint 3 で業種編集 UI (Step 2) を有効化し、Operator が初期 100 サイトの分類を確認します。"})]})}},63073:function(e,t,r){"use strict";r.d(t,{TrackingSnippet:function(){return u}});var s=r(57437),n=r(2265),a=r(83578),i=r(30401),d=r(78867),o=r(91351),l=r(62869);let c=o.Z_().min(1).max(128).regex(/^[A-Za-z0-9_-]+$/,"識別子は英数字 / `_` / `-` のみ使用できます");function u(e){let{siteId:t,tenantId:r,installToken:o,origin:u}
1=e,[x,f]=(0,n.useState)(!1),m=(0,n.useMemo)(()=>{var e,s,n;let a=c.safeParse(t),i=c.safeParse(r),d=c.safeParse(o);return a.success?i.success?d.success?{ok:!0}:{ok:!1,field:"install_token",message:null===(n=d.error.issues[0])||void 0===n?void 0:n.message}:{ok:!1,field:"tenant_id",message:null===(s=i.error.issues[0])||void 0===s?void 0:s.message}:{ok:!1,field:"site_id",message:null===(e=a.error.issues[0])||void 0===e?void 0:e.message}},[t,r,o]),p=m.ok?function(e){let{origin:t,siteId:r,tenantId:s,installToken:n}=e;return'<!-- UGOKI MAP tracking.js -->\n<script src="'.concat(t,'/v2/tracking.js"\n        data-site-id="').concat(r,'"\n        data-tenant-id="').concat(s,'"\n        data-install-token="').concat(n,'"\n        defer></script>')}({siteId:t,tenantId:r,installToken:o,origin:u}):null;async function b(){if(p)try{var e;if(null===(e=navigator.clipboard)||void 0===e?void 0:e.writeText)await navigator.clipboard.writeText(p);else{let e=document.createElement("textarea");e.value=p,e.style.position="fixed",e.style.top="-1000px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}f(!0),window.setTimeout(()=>f(!1),2e3)}catch(e){}}return m.ok&&p?(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("pre",{className:"overflow-x-auto rounded-md border border-border bg-foreground
1/95 p-4 pr-14 font-mono text-xs leading-relaxed text-background","aria-label":"UGOKI MAP tracking.js snippet",children:(0,s.jsx)("code",{children:p})}),(0,s.jsx)(l.z,{type:"button",variant:"secondary",size:"sm",className:"absolute right-3 top-3 gap-1.5",onClick:b,"aria-label":x?"コピーしました":"コードをコピー",children:x?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Z,{className:"h-3.5 w-3.5","aria-hidden":!0})," コピー済"]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Z,{className:"h-3.5 w-3.5","aria-hidden":!0})," コピー"]})}),(0,s.jsx)("p",{role:"status","aria-live":"polite",className:"mt-2 min-h-[1rem] text-xs text-text-3",children:x?"クリップボードにコピーしました。":"\xa0"})]}):(0,s.jsxs)("div",{role:"alert",className:"flex items-start gap-2 rounded-md border border-destructive/30 bg-destructive/10 p-4 text-xs text-destructive",children:[(0,s.jsx)(a.Z,{className:"mt-0.5 h-4 w-4 flex-shrink-0","aria-hidden":!0}),(0,s.jsxs)("p",{children:[m.ok?"snippet":m.field," の形式が安全でないためコードを表示できません",!m.ok&&m.message?" (".concat(m.message,")"):"","。 サポートにご連絡ください。"]})]})}},54794:function(e,t,r){"use strict";r.d(t,{w:function(){return f}});var s=r(57437),n=r(84286),a=r(42488),i=r(70525),d=r(82023),o=r(69317),l=r(35974),c=r(94508);let u={proven:"proven_exact",observed:"observed_exact",inferred:"inferred",planned:"planned"},x={proven_exact:{label:"Proven",variant:"success",extraClass:"border-emerald-500/40 bg-emerald-500/15 text-emerald-700 dark:text-emerald-300",Icon:n.Z,description:"確定 — Raw events で exact 検証済 (proven_exact)"},observed_exact:{label:"Observed",variant:"default",extraClass:"border-sky-500/40 bg-sky-500/15 text-sky-700 dark:text-sky-300",Icon:a.Z,description:"観測 — 集計テーブルから exact 取得 (observed_exact)"},observed_approx:{label:"Observed≈",variant:"warning",extraClass:"border-amber-500/40 bg-amber-500/15 text-amber-800 dark:text-amber-300",Icon:i.Z,description:"近似 — HyperLogLog / TDigest 近似 (observed_approx、誤差 〜2%)"},inferred:{label:"Inferred",variant:"warning",extraClass:"border-orange-500/40 bg-orange-500/15 text-orange-800 dark:text-orange-300",Icon:d.Z,description:"推定 — LLM / ML の推論 (inferred、実測未確定)"},planned:{label:"Planned",variant:"outline",extraClass:"border-border bg-muted/60 text-text-2",Icon:o.Z,description:"計画 — 予測 / 仮説 (planned、ロードマップ上)"}};function f(e){var t;let{evidence:r,levelV2:n,ci:a,errorPct:i,compact:d,className:o}=e,f=null!=n?n:"proven"===(t=r.level)||"observed"===t||"inferred"===t||"planned"===t?u[t]:t,m=x[f],p=m.Icon,b=Math.round(100*r.confidence),g=[m.description];r.confidence>0&&g.push("confidence ".concat(b,"%")),a&&g.push("CI 95%: [".concat(a.low.toFixed(2),", ").concat(a.high.toFixed(2),"]")),"number"==typeof i&&g.push("\xb1".concat(i.toFixed(1),"%"));let v=g.join(" \xb7 "),h="proven_exact"===f?"proven":"observed_exact"===f||"observed_approx"===f?"observed":f;return(0,s.jsxs)(l.C,{variant:m.variant,className:(0,c.cn)("gap-1.5 border",m.extraClass,o),title:v,"data-evidence-level":f,"data-evidence-level-v1":h,"aria-label":"Evidence ".concat(m.label," — ").concat(m.description),children:[(0,s.jsx)(p,{className:"h-3 w-3","aria-hidden":!0}),(0,s.jsx)("span",{children:m.label}),!d&&r.confidence>0?(0,s.jsxs)("span",{className:"font-mono text-[10px] opacity-70",children:[b,"%"]}):null,d||"number"!=typeof i?null:(0,s.jsxs)("span",{className:"font-mono text-[10px] opacity-70",children:["\xb1",i.toFixed(1),"%"]})]})}},35974:function(e,t,r){"use strict";r.d(t,{C:function(){return d}});var s=r(57437);r(2265);var n=r(90535),a=r(94508);let i=(0,n.j)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-success/15 text-success",warning:"border-transparent bg-warning/15 text-warning"}},defaultVariants:{variant:"default"}});function d(e){let{className:t,variant:r,...n}=e;return(0,s.jsx)("div",{className:(0,a.cn)(i({variant:r}),t),...n})}},62869:function(e,t,r){"use strict";r.d(t,{z:function(){return l}});var s=r(57437),n=r(2265),a=r(37053),i=r(90535),d=r(94508);let o=(0,i.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",gradient:"bg-brand-gradient text-white shadow-md hover:brightness-110"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-6 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),l=n.forwardRef((e,t)=>
1{let{className:r,variant:n,size:i,asChild:l=!1,...c}=e,u=l?a.g7:"button";return(0,s.jsx)(u,{className:(0,d.cn)(o({variant:n,size:i}),r),ref:t,...c})});l.displayName="Button"},95186:function(e,t,r){"use strict";r.d(t,{I:function(){return i}});var s=r(57437),n=r(2265),a=r(94508);let i=n.forwardRef((e,t)=>{let{className:r,type:n,...i}=e;return(0,s.jsx)("input",{type:n,className:(0,a.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...i})});i.displayName="Input"},26815:function(e,t,r){"use strict";r.d(t,{_:function(){return l}});var s=r(57437),n=r(2265),a=r(370),i=r(90535),d=r(94508);let o=(0,i.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(a.f,{ref:t,className:(0,d.cn)(o(),r),...n})});l.displayName=a.f.displayName},12339:function(e,t,r){"use strict";r.d(t,{Tabs:function(){return d},TabsContent:function(){return c},TabsList:function(){return o},TabsTrigger:function(){return l}});var s=r(57437),n=r(2265),a=r(42727),i=r(94508);let d=a.fC,o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(a.aV,{ref:t,className:(0,i.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",r),...n})});o.displayName=a.aV.displayName;let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(a.xz,{ref:t,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",r),...n})});l.displayName=a.xz.displayName;let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(a.VY,{ref:t,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",r),...n})});c.displayName=a.VY.displayName},94508:function(e,t,r){"use strict";r.d(t,{cn:function(){return a}});var s=r(61994),n=r(53335);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.m6)((0,s.W)(t))}}},function(e){e.O(0,[8014,1351,5001,635,2971,5652,1744],function(){return e(e.s=77858)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.