PageSourceSearch

http://behmalt.com/_next/static/chunks/33319.9189e8c4c94de105.js

js behmalt.com collected 2026-10-02 23:53:52 UTC 9,605 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[33319],{12931:(e,l,t)=>{t.d(l,{A:()=>o});var n=t(95155),a=t(90346),r=t(72635),s=t(22211),i=t(81951),c=t(12115);function o({value:e,onChange:l,compact:t,className:d,popupClassName:x}){let[m,h]=(0,c.useState)(e??""),[u,j]=(0,c.useState)(e??""),[p,b]=(0,c.useState)((e??"").trim()),y=(0,c.useRef)(null);(0,c.useEffect)(()=>{let l=e??"";h(l),j(l),b(l.trim())},[e]),(0,c.useEffect)(()=>(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>b(m.trim()),300),()=>{y.current&&clearTimeout(y.current)}),[m]);let v=p||"home",{data:f,isLoading:g,isError:S}=s.f(v),I=(0,c.useMemo)(()=>(f?.icons??[]).map(e=>({value:e,label:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(r.In,{icon:e,className:"text-lg text-gray-700"}),(0,n.jsx)("span",{className:"truncate text-sm text-gray-800",children:e})]})})),[f]),N=u?.trim()&&u.trim()===m.trim(),V=(0,c.useCallback)(e=>{h(e),j(e),l?.(e)},[l]),k=(0,c.useCallback)(e=>{h(e),j(""),l?.(e)},[l]),C=(0,c.useMemo)(()=>g?(0,n.jsxs)("div",{className:"flex items-center justify-center gap-2 py-2",children:[(0,n.jsx)(a.tK,{size:"small"}),(0,n.jsx)("span",{className:"text-sm text-gray-500",children:"در حال جستجو..."})]}):S?(0,n.jsx)("div",{className:"py-2 text-center text-sm text-red-500",children:"خطا در دریافت داده‌ها"}):p?(0,n.jsxs)("div",{className:"py-2 text-center text-sm text-gray-500",children:['آیکونی با عنوان "',p,'" یافت نشد']}):(0,n.jsx)("div",{className:"py-2 text-center text-sm text-gray-500",children:"نام آیکون را وارد کنید"}),[p,S,g]);return(0,n.jsx)(a.j9,{className:(0,i.cn)("w-full",t&&"pc-compact-icon-selector",d),popupClassName:x,dropdownStyle:t?{fontSize:10,padding:4}:void 0,size:t?"small":void 0,value:m,placeholder:"آیکون را جستجو کنید...",onChange:k,onSelect:V,options:I,filterOption:!1,notFoundContent:C,allowClear:!0,prefix:N?(0,n.jsx)(r.In,{icon:u,className:t?"text-[13px] text-gray-600":"text-lg text-gray-600"}):void 0})}},22211:(e,l,t)=>{t.d(l,{f:()=>i,z:()=>s});var n=t(21338),a=t(26708);let r="https://api.iconify.design";function s(e){return(0,a.I)({queryKey:["icon-collection",e],queryFn:async()=>(await n.A.get(`${r}/collection?prefix=${encodeURIComponent(e)}`)).data,enabled:e.trim().length>0,staleTime:18e5,retry:1})}function i(e){return(0,a.I)({queryKey:["icons",e],queryFn:async()=>(await n.A.get(`${r}/search?query=${encodeURIComponent(e)}`)).data,enabled:e.trim().length>0,staleTime:3e5,retry:1})}},33319:(e,l,t)=>{t.r(l),t.d(l,{default:()=>p});var n=t(95155),a=t(12115),r=t(80870),s=t(12931),i=t(60180),c=t(90346),o=t(80283),d=t(3591),x=t(83399),m=t(35840);let h=[{value:"glass",label:"شیشه‌ای"},{value:"soft",label:"ملایم"},{value:"solid",label:"یکدست"}],u=[{value:"prefix",label:"شروع مسیر"},{value:"exact",label:"دقیق"}];function j({children:e,disabled:l,tone:t="default",onClick:a,title:r}){return(0,n.jsx)("button",{type:"button",disabled:l,title:r,onClick:a,className:["inline-flex h-6 min-w-6 items-center justify-center rounded-[8px] border border-[var(--pc-control-border)] bg-[var(--pc-control-bg)] px-1.5 font-yekan text-[10px] transition","danger"===t?"text-red-500 hover:border-red-400 hover:bg-red-500/10":"text-[var(--pc-control-text)] hover:border-[var(--pc-control-hover-border)] hover:bg-[var(--pc-control-hover-bg,rgba(148,163,184,0.12))]",l?"cursor-not-allowed opacity-35":""].join(" "),children:e})}function p(){let e=(0,o.sr)(),l=(0,o.s0)().selectedWidget,[t]=c.lV.useForm(),p=c.lV.useWatch("items",t)||[];(0,a.useEffect)(()=>{l&&(t.resetFields(),t.setFieldsValue((0,m.WH)(l.defaultProps||m.BK)))},[t,l]);let b=(0,a.useCallback)((t,n)=>{l&&e.updateNode(l.id,{defaultProps:(0,m.WH)(n)})},[e,l]);return l?(0,n.jsx)(r.XR,{children:(0,n.jsxs)(c.lV,{form:t,layout:"vertical",initialValues:(0,m.WH)(l.defaultProps||m.BK),onValuesChange:b,children:[(0,n.jsx)(r.So,{title:"کلیات",defaultOpen:!0,children:(0,n.jsxs)("div",{className:"space-y-1 px-1 pb-2",children:[(0,n.jsx)(r.R
1Z,{label:"عنوان داخلی",children:(0,n.jsx)(c.lV.Item,{name:"label",noStyle:!0,children:(0,n.jsx)(r.zA,{placeholder:"ناوبری موبایل",allowClear:!0})})}),(0,n.jsx)(r.RZ,{label:"نمایش عنوان",children:(0,n.jsx)(c.lV.Item,{name:"showLabels",valuePropName:"checked",noStyle:!0,children:(0,n.jsx)(r.xk,{})})}),(0,n.jsx)(r.RZ,{label:"نشانگر فعال",children:(0,n.jsx)(c.lV.Item,{name:"showTopIndicator",valuePropName:"checked",noStyle:!0,children:(0,n.jsx)(r.xk,{})})}),(0,n.jsx)(r.RZ,{label:"سبک",children:(0,n.jsx)(c.lV.Item,{name:"surfaceStyle",noStyle:!0,children:(0,n.jsx)(r.Pl,{options:[...h]})})})]})}),(0,n.jsx)(r.So,{title:"ظاهر",children:(0,n.jsxs)("div",{className:"space-y-1 px-1 pb-2",children:[(0,n.jsx)(r.RZ,{label:"پس‌زمینه",children:(0,n.jsx)(c.lV.Item,{name:"backgroundColor",noStyle:!0,children:(0,n.jsx)(d.A,{allowCustomValue:!0})})}),(0,n.jsx)(r.RZ,{label:"رنگ فعال",children:(0,n.jsx)(c.lV.Item,{name:"activeColor",noStyle:!0,children:(0,n.jsx)(d.A,{allowCustomValue:!0})})}
1),(0,n.jsx)(r.RZ,{label:"رنگ متن",children:(0,n.jsx)(c.lV.Item,{name:"textColor",noStyle:!0,children:(0,n.jsx)(d.A,{allowCustomValue:!0})})}),(0,n.jsx)(r.RZ,{label:"رنگ کم‌رنگ",children:(0,n.jsx)(c.lV.Item,{name:"mutedColor",noStyle:!0,children:(0,n.jsx)(d.A,{allowCustomValue:!0})})}),(0,n.jsx)(r.RZ,{label:"سایه",children:(0,n.jsx)(c.lV.Item,{name:"shadow",valuePropName:"checked",noStyle:!0,children:(0,n.jsx)(r.xk,{})})}),(0,n.jsx)(r.RZ,{label:"بلور",children:(0,n.jsx)(c.lV.Item,{name:"enableBackdropBlur",valuePropName:"checked",noStyle:!0,children:(0,n.jsx)(r.xk,{})})})]})}),(0,n.jsx)(r.So,{title:"ابعاد",children:(0,n.jsxs)("div",{className:"space-y-1 px-1 pb-2",children:[(0,n.jsx)(r.RZ,{label:"اندازه آیکن",children:(0,n.jsx)(c.lV.Item,{name:"iconSize",noStyle:!0,children:(0,n.jsx)(r.UX,{min:16,max:40})})}),(0,n.jsx)(r.RZ,{label:"گردی",children:(0,n.jsx)(c.lV.Item,{name:"borderRadius",noStyle:!0,children:(0,n.jsx)(r.UX,{min:14,max:40})})}),(0,n.jsx)(r.RZ,{label:"فاصله افقی",children:(0,n.jsx)(c.lV.Item,{name:"sideOffset",noStyle:!0,children:(0,n.jsx)(r.UX,{min:8,max:32})})}
1),(0,n.jsx)(r.RZ,{label:"فاصله پایین",children:(0,n.jsx)(c.lV.Item,{name:"bottomOffset",noStyle:!0,children:(0,n.jsx)(r.UX,{min:0,max:40})})}),(0,n.jsx)(r.RZ,{label:"پدینگ افقی",children:(0,n.jsx)(c.lV.Item,{name:"paddingX",noStyle:!0,children:(0,n.jsx)(r.UX,{min:8,max:24})})}),(0,n.jsx)(r.RZ,{label:"پدینگ عمودی",children:(0,n.jsx)(c.lV.Item,{name:"paddingY",noStyle:!0,children:(0,n.jsx)(r.UX,{min:6,max:20})})}),(0,n.jsx)(r.RZ,{label:"فاصله آیتم‌ها",children:(0,n.jsx)(c.lV.Item,{name:"itemGap",noStyle:!0,children:(0,n.jsx)(r.UX,{min:0,max:20})})})]})}),(0,n.jsx)(r.So,{title:"آیتم‌ها",defaultOpen:!0,children:(0,n.jsx)(c.lV.List,{name:"items",children:(e,{add:l,remove:t,move:a})=>(0,n.jsxs)("div",{className:"space-y-2 px-1 pb-2",children:[e.map((l,o)=>{let d=p[o];return(0,n.jsxs)("div",{className:"rounded-[12px] border border-[var(--pc-panel-border)] bg-[var(--pc-control-bg)] p-2",children:[(0,n.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-2",children:[(0,n.jsx)("span",{className:"truncate font-yekan text-[10px] font-semibold text-[var(--pc-panel-text)]",children:String(d?.title||"").trim()||`آیتم ${Number(o||0)+1}`}),(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(j,{title:"بالا",disabled:0===o,onClick:()=>a(o,o-1),children:"↑"}),(0,n.jsx)(j,{title:"پایین",disabled:o===e.length-1,onClick:()=>a(o,o+1),children:"↓"}),(0,n.jsx)(j,{title:"حذف",tone:"danger",onClick:()=>t(l.name),children:(0,n.jsx)(i.SU,{})})]})]}),(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsx)(r.xh,{label:"عنوان",children:(0,n.jsx)(c.lV.Item,{name:[l.name,"title"],noStyle:!0,children:(0,n.jsx)(r.zA,{placeholder:"خانه",allowClear:!0})})}),(0,n.jsx)(r.xh,{label:"لینک",children:(0,n.jsx)(c.lV.Item,{name:[l.name,"href"],noStyle:!0,children:(0,n.jsx)(x.A,{placeholder:"/products یا https://..."})})}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:[(0,n.jsx)(r.xh,{label:"آیکن",children:(0,n.jsx)(c.lV.Item,{name:[l.name,"icon"],noStyle:!0,children:(0,n.jsx)(s.A,{})})}),(0,n.jsx)(r.xh,{label:"تطبیق مسیر",children:(0,n.jsx)(c.lV.Item,{name:[l.name,"matchMode"],noStyle:!0,children:(0,n.jsx)(r.Pl,{options:[...u]})})})]}
1),(0,n.jsx)(r.RZ,{label:"تب جدید",children:(0,n.jsx)(c.lV.Item,{name:[l.name,"openInNewTab"],valuePropName:"checked",noStyle:!0,children:(0,n.jsx)(r.xk,{})})})]})]},l.key)}),(0,n.jsx)("button",{type:"button",onClick:()=>l((0,m.jq)({title:"آیتم جدید",href:"",icon:"mdi:circle-outline",openInNewTab:!1,matchMode:"prefix"})),className:"inline-flex h-8 items-center justify-center rounded-[10px] border border-dashed border-[var(--pc-control-border)] px-3 font-yekan text-[10px] text-[var(--pc-panel-text)] transition hover:border-[var(--pc-control-hover-border)]",children:"افزودن آیتم"})]})})})]})}):null}},83399:(e,l,t)=>{t.d(l,{A:()=>i});var n=t(95155),a=t(12115),r=t(80283),s=t(1789);function i({value:e,onChange:l,direction:t="ltr",placeholder:c="لینک",disabled:o=!1,languageId:d}){let x=(0,r.sr)(e=>e.pageProperties),m=(0,a.useMemo)(()=>d||x?.languageId||x?.language?.id||void 0,[d,x?.language?.id,x?.languageId]);return(0,n.jsx)(s.A,{value:e,onChange:e=>l?.(e),direction:t,placeholder:c,disabled:o,languageId:m})}}}]);

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.