PageSourceSearch

https://docs.hazbase.com/assets/UseCases-DL2MIDV6.js

js hazbase.com collected 2026-10-05 06:32:38 UTC 4,105 bytes, 1 lines download raw bytes

1import{b as g,r as m,j as e,S as j,L as o,A as i}from"./index-BAAzACLV.js";import{u as r}from"./useCases-C053nK4C.js";import{F as y}from"./FilterChips-BBmbbU4D.js";import{t as v}from"./analytics-CT75YJmR.js";function C(){const{i18n:d}=g(),c=d.language.startsWith("en")?1:0,a=(s,t)=>c===0?s:t,[h,u]=m.useState(""),[n,p]=m.useState("all"),l=r.cases.filter(s=>(n==="all"||n===s.category)&&[...s.title,...s.summary,...s.audience,...s.scenario,...r.categories.find(t=>t.id===s.category).title,...s.contracts.map(t=>t.id),...s.aliases].join(" ").toLowerCase().includes(h.trim().toLowerCase())),x=[{value:"all",label:a("すべて","All"),count:r.cases.length},...r.categories.map(s=>({value:s.id,label:s.title[c],count:r.cases.filter(t=>t.category===s.id).length}))];return e.jsxs("article",{className:"dev-page usecase-index",children:[e.jsx("div",{className:"dev-eyebrow",children:"USE CASES"}),e.jsx("h1",{children:a("ユースケース","Use cases")}),e.jsx("p",{className:"dev-lead",children:a("設備の権利管理、利用券、地域活動への支援。事業やサービスに合わせた構成例から、トークンの役割と実装方法を確認できます。","Explore equipment rights, access passes and community support through example architectures, with token roles and implementation paths for each use case.")}),e.jsxs("div",{className:"usecase-filters",role:"search","aria-label":a("ユースケースを探す","Find a use case"),children:[e.jsxs("label",{className:"usecase-search",children:[e.jsx(j,{size:18,"aria-hidden":"true"}),e.jsx("input",{type:"search",value:h,onChange:s=>u(s.target.value),"aria-label":a("用途・事業・キーワードで検索","Search by purpose, business or keyword"),placeholder:a("例:ロボット、利用券、地域活動","e.g. robotics, access passes, community")})]}),e.jsx(y,{options:x,value:n,onChange:p,className:"usecase-facets"}),e.jsx("p",{className:"usecase-count",role:"status","aria-live":"polite",children:a(`${l.length} / ${r.cases.length} 件を表示`,`${l.length} of ${r.cases.length} use cases`)})]}),l.length?e.jsx("div",{className:"dev-grid usecase-catalog",children:l.map(s=>e.jsxs(o,{className:"dev-card usecase-card",to:`/use-cases/${s.id}/deep-dive`,onClick:()=>v("use-cases",s.id,"deep_dive_route",d.language),children:[e.jsx("span",{className:"usecase-category",children:r.categories.find(t=>t.id===s.category).title[c]}),e.jsx("h2",{children:s.title[c]}),e.jsx("p",{children:s.summary[c]}),e.jsxs("span",{className:"dev-link",children:[a("構成と使い方を見る","Explore the use case"),e.jsx(i,{size:15,"aria-hidden":"true"})]})]},s.id))}):e.jsxs("div",{className:"usecase-empty",children:[e.jsx("h2",{children:a("一致するユースケースがありません","No matching use cases")}),e.jsx("p",{children:a("キーワードを変えるか、分類の絞り込みを解除すると他の構成例を確認できます。","Try another keyword or reset the category filter to explore other examples.")}),e.jsxs("button",{className:"dev-link",type:"button",onClick:()=>{u(""),p("all")},children:[a("絞り込みを解除","Reset filters"),e.jsx(i,{size:15})]})]}),e.jsxs("section",{className:"usecase-next",children:[e.jsx("h2",{children:a("構成から実装へ","From use case to implementation")}),e.jsx("p",{children:a("各詳細ページから、データモデル・処理手順・SDKコードを掲載した実装パターンへ進めます。用途が決まっている場合は、実装パターンの一覧から必要な機能を選べます。","Each detail page links to implementation patterns with data models, processing steps and SDK code. If your use case is already defined, choose the required capability from the pattern index.")}),e.jsxs("div",{className:"dev-actions",children:[e.jsxs(o,{className:"dev-link",to:"/patterns",children:[a("用途別の実装パターン","Implementation patterns"),e.jsx(i,{size:15})]}),e.jsxs(o,{className:"dev-link",to:"/start/day0",children:[a("サンプルから始める","Start with a sample"),e.jsx(i,{size:15})]})]})]})]})}export{C as default};

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.