1import{r as O,j as a}from"./react-BGHvZxdX.js";import{ej as v,ek as R}from"./workbench-shared-DT5eicUP.js";import{J as P}from"./Job51IndustryGroupMark-Bb7B8MLb.js";import{O as f,k as T,W as A,D as B}from"./WorkbenchApp-CJyShsB2.js";import{r as E}from"./occupationCoverImages-D1_shnnv.js";const c=t=>`https://images.unsplash.com/${t}?auto=format&fit=crop&w=240&h=240&q=75`;function z(t,e){let o=0;for(let s=0;s<t.length;s+=1)o=o*31+t.charCodeAt(s)>>>0;return e[o%e.length]}const h=[c("photo-1506784983877-45594efa4cbe"),c("photo-1586281380349-632531db7ed4"),c("photo-1499750310107-5fef28a66643")],k=[c("photo-1542831371-29b0f74f9713"),c("photo-1515879218367-8466d910aaa4"),c("photo-1551033406-611cf9a28f67"),c("photo-1516116216624-53e697fedbea"),c("photo-1555949963-ff9fe0c870eb"),c("photo-1593720213428-28a5b9e94613"),c("photo-1633356122544-f134324a6cee"),c("photo-1571171637578-41bc2dd41cd2"),c("photo-1526374965328-7f61d4dc18c5")],g=[c("photo-1558655146-d09347e92766"),c("photo-1642790106117-e829e14a795f"),c("photo-1550751827-4bd374c3f58b"),c("photo-1639322537504-6427a16b0a28")],C=[...h,...k,...g],I=[{keys:["æ¼æ","转å","å¢é¿","è¿è¥","æ¸
å","ææ¡£","è§æ ¼","PRD","éæ±"],pool:h},{keys:["产å","设计","è§è§","åå","çå¾","UI","UX"],pool:g},{keys:["AI","大模å","Prompt","æºè½","ç®æ³","æ°æ®","å·¡æ£","è¿ç»´","å åº","æµæ°´çº¿","å®å
¨"],pool:g},{keys:["软件","å·¥ç¨","å¼å","代ç ","æ¶æ","NET","C#","Java","å端","å端","模å","交ä»"],pool:k},{keys:["é¢è¯","é¢","ä½åé","课件","ç¼è¾","åå¸"],pool:h}];function U(t){const e=[t.name,t.category,t.jobLabel,...t.tags??[]].filter(Boolean).join(" "),o=`${t.id}|${e}`,s=I.find(r=>r.keys.some(l=>e.includes(l)));if(s){let r=0;for(let l=0;l<o.length;l+=1)r=r*31+o.charCodeAt(l)>>>0;return z(o,r%2===0?s.pool:C)}return z(o,C)}function j(t){const e=t.relatedJobs[0];if(e?.jobRoleId&&e.jobRoleLabel)return{jobRoleId:e.jobRoleId,jobRoleLabel:e.jobRoleLabel};const o=t.jobFamilies[0]?.trim();return o?{jobRoleId:`family:${o}`,jobRoleLabel:o}:{jobRoleId:`category:${t.category}`,jobRoleLabel:t.category||"å
¶ä»"}}function y(t){const{jobRoleId:e}=j(t);if(/^web3-/i.test(e))return A;const o=E(e);return o?f.find(s=>s.codes.includes(o))?.id??null:null}function S(t){const e={all:t.length};for(const o of f)e[o.id]=0;for(const o of t){const s=y(o);s&&e[s]!=null?e[s]+=1:e.uncategorized=(e.uncategorized??0)+1}return e}function $(t,e){return e==="all"?t:t.filter(o=>y(o)===e)}function D(t){return t==="all"?"å
¨é¨åç±»":T(t)?.name??t}const G=O.memo(function({bundle:e,onSelect:o,onPrefetch:s}){const r=j(e),l=(e.tags??[]).slice(0,3),d=e.summary?.trim()||e.overview?.definition?.trim()||"ç¹å»è¿å
¥åè¾ï¼æ¥ç人æºå¯¹ç
§å·¥ä½æµä¸ç 夿æã",_=U({id:e.id,name:e.name,category:e.category,tags:e.tags,jobLabel:r.jobRoleLabel}),p=(e.name.slice(0,1)||"?").toUpperCase();return a.jsxs("button",{type:"button",className:"occupation-plaza__card",onClick:o,onMouseEnter:s,onFocus:s,children:[a.jsxs("span",{className:"occupation-plaza__card-thumb","aria-hidden":!0,children:[a.jsx("img",{className:"occupation-plaza__card-thumb-img",src:_,alt:"",loading:"lazy",decoding:"async",referrerPolicy:"no-referrer",onError:i=>{const u=i.currentTarget;u.style.display="none";const m=u.nextElementSibling;m instanceof HTMLElement&&(m.hidden=!1)}}),a.jsx("span",{className:"occupation-plaza__card-thumb-fallback",hidden:!0,children:p})]}),a.jsxs("span",{className:"occupation-plaza__card-body",children:[a.jsxs("span",{className:"occupation-plaza__card-top",children:[a.jsx("h4",{className:"occupation-plaza__card-title",children:e.name}),l.length>0?a.jsx("span",{className:"occupation-plaza__card-tags",children:l.map(i=>a.jsx("i",{className:"occupation-plaza__tag",children:i},i))}):e.category?a.jsx("span",{className:"occupation-plaza__card-tags",children:a.jsx("i",{className:"occupation-plaza__tag",children:e.category})}):null]}),a.jsx("p",{className:"occupation-plaza__card-desc",children:d}),a.jsxs("span",{className:"occupation-plaza__card-foot",children:[a.jsx("span",{className:"occupation-plaza__card-meta",children:r.jobRoleLabel}),a.jsx("span",{className:"occupation-plaza__card-cta",children:"å¦ä¹ æè½ â"})]})]})]})});function F({groupId:t,onGroupChange:e,query:o,items:s,total:r,libraryTotal:l,groupCounts:d,onSelect:_,onPrefetch:p,filterSlot:i,metaHint:u,footerSlot:m}){const[x,b]=O.useState(!1);return a.jsxs("div",{className:["occupation-plaza-shell","task-bundle-plaza-s
1hell",x?"is-catalog-collapsed":""].filter(Boolean).join(" "),children:[a.jsx("div",{className:"industry-category-catalog-wrap",children:x?a.jsx("button",{type:"button",className:"industry-category-catalog__toggle industry-category-catalog__toggle--expand",onClick:()=>b(!1),title:"å±å¼ç®å½","aria-label":"å±å¼ç®å½","aria-expanded":!1,children:a.jsx(v,{})}):a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"industry-category-catalog__head",children:a.jsx("button",{type:"button",className:"industry-category-catalog__toggle",onClick:()=>b(!0),title:"æå ç®å½","aria-label":"æå ç®å½","aria-expanded":!0,children:a.jsx(R,{})})}),a.jsx("nav",{className:"industry-category-catalog occupation-plaza-catalog","aria-label":"å²ä½åç±»ç®å½",children:a.jsxs("ul",{className:"industry-category-catalog__list",children:[a.jsx("li",{children:a.jsxs("button",{type:"button",className:`industry-category-catalog__item${t==="all"?" is-active":""}`,"aria-current":t==="all"?"true":void 0,onClick:()=>e("all"),children:[a.jsx("span",{className:"industry-category-catalog__mark industry-category-catalog__mark--all","aria-hidden":!0,children:"å
¨"}),a.jsxs("span",{className:"industry-category-catalog__text",children:[a.jsx("span",{className:"industry-category-catalog__label",children:"å
¨é¨åç±»"}),a.jsx("span",{className:"industry-category-catalog__count",children:d.all??l})]})]})}),f.map(n=>{const N=t===n.id,L=d[n.id]??0;return a.jsx("li",{children:a.jsxs("button",{type:"button",className:`industry-category-catalog__item${N?" is-active":""}`,"aria-current":N?"true":void 0,onClick:()=>e(n.id),children:[a.jsx(P,{groupId:n.markId,size:28}),a.jsxs("span",{className:"industry-category-catalog__text",children:[a.jsx("span",{className:"industry-category-catalog__label",children:n.name}),a.jsx("span",{className:"industry-category-catalog__count",children:L})]})]})},n.id)})]})})]})}),a.jsxs("div",{className:"occupation-plaza-main",children:[a.jsx("div",{className:"occupation-plaza-filter-host",children:i}),a.jsxs("div",{className:"occupation-plaza-list-stack",children:[a.jsxs("div",{className:"occupation-plaza-filter-meta",children:[a.jsx("span",{children:u||(t!=="all"?`${D(t)} · ${r} 个æè½`:`å
¨åº ${l} 个æè½`)}),o.trim()?a.jsxs("span",{children:["å
³é®è¯ã",o.trim(),"ã"]}):null]}),s.length===0?a.jsx("p",{className:"occupation-plaza__empty",children:"该åç±»ä¸ææ åè¾ï¼è¯è¯æ¢ä¸ªå²ä½åç±»æå
³é®è¯ã"}):a.jsx("div",{className:"occupation-plaza__grid",children:s.map(n=>a.jsx(G,{bundle:n,onSelect:()=>_(n),onPrefetch:p?()=>p(n):void 0},n.id))}),m]})]})]})}const K=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_TASK_BUNDLE_CATALOG_GROUP_ID:B,countBundlesByCatalogGroup:S,default:F,filterBundlesByCatalogGroup:$,resolveBundleCatalogGroupId:y,resolveBundlePrimaryJob:j},Symbol.toStringTag,{value:"Module"}));export{F as T,K as a,S as c,$ as f,U as g,j as r};
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.