1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[65515],{65515:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});var n=r(95155),a=r(60180);function l({value:e=[],onChange:t,options:r=[],loading:o=!1,disabled:s=!1,placeholder:c="Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯",compact:p=!1}){let i=Array.isArray(e)?e:[],x=(e,t)=>String(e?.id||e?.slug||e?.title||`category-${t??0}`);return(0,n.jsxs)("div",{className:p?"space-y-1.5 font-yekan":"space-y-3",children:[i.length>0?(0,n.jsx)("div",{className:["flex flex-wrap",p?"gap-1 rounded-[8px] border border-[var(--pc-control-border)] bg-[var(--pc-control-bg)] p-1.5":"gap-2 rounded-lg bg-gray-50 p-3"].join(" "),children:i.map((e,r)=>(0,n.jsxs)("span",{className:["flex items-center gap-1 rounded-full bg-[#008060] text-white",p?"px-2 py-0.5 text-[9px]":"px-3 py-1 text-sm"].join(" "),children:[e.title,s?null:(0,n.jsx)("button",{type:"button",onClick:r=>{let n;r.preventDefault(),r.stopPropagation(),n=x(e),t?.(i.filter(e=>x(e)!==n))},className:["flex cursor-pointer items-center justify-center rounded-full transition-colors hover:bg-white/20",p?"h-4 w-4 text-[8px]":"h-5 w-5"].join(" "),"aria-label":`ØØ°Ù ${e.title}`,children:(0,n.jsx)(a.r$,{})})]},x(e,r)))}):null,(0,n.jsx)("div",{className:["overflow-y-auto border",p?"max-h-[148px] rounded-[8px] p-1":"max-h-[200px] rounded-lg p-3",p?s?"border-[var(--pc-control-border)] bg-[var(--pc-control-bg)] opacity-60":"border-[var(--pc-control-border)] bg-[var(--pc-control-bg)]":s?"bg-gray-100 opacity-60":"bg-white"].join(" "),children:o?(0,n.jsx)("div",{className:p?"py-3 text-center text-[10px] text-[var(--pc-panel-muted)]":"py-4 text-center text-gray-400",children:"در ØØ§Ù بارگذارÛ..."}):0===r.length?(0,n.jsx)("div",{className:p?"py-3 text-center text-[10px] text-[var(--pc-panel-muted)]":"py-4 text-center text-gray-400",children:c}):(0,n.jsx)("div",{className:p?"space-y-0.5":"space-y-1",children:r.map((e,r)=>{let a=i.some(t=>x(t)===x(e));return(0,n.jsxs)("button",{type:"button",disabled:s,onClick:r=>{let n;r.preventDefault(),r.stopPropagation(),!s&&(n=x(e),i.some(e=>x(e)===n)||t?.([...i,e]))},className:["flex w-full items-center justify-between border-0 bg-transparent text-right transition-colors duration-200",p?"rounded-[7px] px-2 py-1 text-[10px]":"rounded-md p-2",a?"bg-[#008060]/10 text-[#008060]":p?"text-[var(--pc-control-text)] hover:bg-[var(--pc-control-hover-bg,rgba(148,163,184,0.12))]":"text-gray-700 hover:bg-gray-100",s?"cursor-not-allowed opacity-60":"cursor-pointer"].join(" "),children:[(0,n.jsx)("span",{className:"min-w-0 truncate",children:e.title}),a?(0,n.jsx)("span",{className:["flex items-center justify-center rounded-full bg-[#008060] text-white",p?"h-4 w-4 text-[8px]":"h-5 w-5 text-xs"].join(" "),children:"â"}):null]},x(e,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.