PageSourceSearch

https://behmalt.com/_next/static/chunks/18849.3e80351766a7736f.js

js behmalt.com collected 2026-09-25 10:25:45 UTC 14,589 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18849],{12931:(e,l,t)=>{t.d(l,{A:()=>c});var a=t(95155),n=t(90346),r=t(72635),s=t(22211),i=t(81951),o=t(12115);function c({value:e,onChange:l,compact:t,className:d,popupClassName:x}){let[m,h]=(0,o.useState)(e??""),[u,j]=(0,o.useState)(e??""),[b,p]=(0,o.useState)((e??"").trim()),v=(0,o.useRef)(null);(0,o.useEffect)(()=>{let l=e??"";h(l),j(l),p(l.trim())},[e]),(0,o.useEffect)(()=>(v.current&&clearTimeout(v.current),v.current=setTimeout(()=>p(m.trim()),300),()=>{v.current&&clearTimeout(v.current)}),[m]);let g=b||"home",{data:f,isLoading:y,isError:V}=s.f(g),S=(0,o.useMemo)(()=>(f?.icons??[]).map(e=>({value:e,label:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(r.In,{icon:e,className:"text-lg text-gray-700"}),(0,a.jsx)("span",{className:"truncate text-sm text-gray-800",children:e})]})})),[f]),I=u?.trim()&&u.trim()===m.trim(),C=(0,o.useCallback)(e=>{h(e),j(e),l?.(e)},[l]),P=(0,o.useCallback)(e=>{h(e),j(""),l?.(e)},[l]),k=(0,o.useMemo)(()=>y?(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 py-2",children:[(0,a.jsx)(n.tK,{size:"small"}),(0,a.jsx)("span",{className:"text-sm text-gray-500",children:"در حال جستجو..."})]}):V?(0,a.jsx)("div",{className:"py-2 text-center text-sm text-red-500",children:"خطا در دریافت داده‌ها"}):b?(0,a.jsxs)("div",{className:"py-2 text-center text-sm text-gray-500",children:['آیکونی با عنوان "',b,'" یافت نشد']}):(0,a.jsx)("div",{className:"py-2 text-center text-sm text-gray-500",children:"نام آیکون را وارد کنید"}),[b,V,y]);return(0,a.jsx)(n.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:P,onSelect:C,options:S,filterOption:!1,notFoundContent:k,allowClear:!0,prefix:I?(0,a.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 a=t(21338),n=t(26708);let r="https://api.iconify.design";function s(e){return(0,n.I)({queryKey:["icon-collection",e],queryFn:async()=>(await a.A.get(`${r}/collection?prefix=${encodeURIComponent(e)}`)).data,enabled:e.trim().length>0,staleTime:18e5,retry:1})}function i(e){return(0,n.I)({queryKey:["icons",e],queryFn:async()=>(await a.A.get(`${r}/search?query=${encodeURIComponent(e)}`)).data,enabled:e.trim().length>0,staleTime:3e5,retry:1})}},25366:(e,l,t)=>{t.d(l,{q:()=>i});var a=t(29753),n=t(28509),r=class extends a.${constructor(e,l){super(e,l)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,l){let{state:t}=e,a=super.createResult(e,l),{isFetching:r,isRefetching:s,isError:i,isRefetchError:o}=a,c=t.fetchMeta?.fetchMore?.direction,d=i&&"forward"===c,x=r&&"forward"===c,m=i&&"backward"===c,h=r&&"backward"===c;return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.rB)(l,t.data),hasPreviousPage:(0,n.RQ)(l,t.data),isFetchNextPageError:d,isFetchingNextPage:x,isFetchPreviousPageError:m,isFetchingPreviousPage:h,isRefetchError:o&&!d&&!m,isRefetching:s&&!x&&!h}}},s=t(38764);function i(e,l){return(0,s.t)(e,r,l)}},41936:(e,l,t)=>{t.r(l),t.d(l,{default:()=>V});var a=t(95155),n=t(12115),r=t(86588),s=t(81229),i=t(80870),o=t(12931),c=t(90346),d=t(80283),x=t(3591),m=t(16087);let h=[{value:"pill",label:"کپسولی"},{value:"boxed",label:"کادری"},{value:"underline",label:"خط زیر"},{value:"minimal",label:"مینیمال"},{value:"segmented",label:"بخش‌بندی‌شده"},{value:"capsule",label:"قرصی نرم"},{value:"line-top",label:"خط بالا"},{value:"framed",label:"قاب‌دار"},{value:"soft",label:"نرم و محو"}],u=[{value:"stretch",label:"کشیده"},{value:"start",label:"ابتدا"},{value:"center",label:"وسط"},{value:"end",label:"انتها"}],j=[{value:"scroll",label:"اسکرول افقی"},{value:"stack",label:"زیر هم"}
1],b=[{value:"font",label:"آیکون فونتی"},{value:"image",label:"تصویر آپلودی"}],p=[{value:400,label:"معمولی 400"},{value:500,label:"متوسط 500"},{value:600,label:"نیمه‌ضخیم 600"},{value:700,label:"ضخیم 700"}],v=[{label:"IranSans",value:"font-iran"},{label:"Yekan",value:"font-yekan"},{label:"Peyda",value:"font-peyda"}],g=[{label:"سازمان",value:"mdi:office-building-outline"},{label:"منطقه",value:"mdi:map-marker-multiple-outline"},{label:"مدیریت",value:"mdi:account-group-outline"},{label:"پیوند",value:"mdi:link-variant"},{label:"اطلاعیه",value:"mdi:bullhorn-outline"},{label:"رویداد",value:"mdi:calendar-star"}];function f({label:e,children:l}){return(0,a.jsxs)("div",{className:"flex min-h-7 items-center justify-between gap-2 rounded-[8px] border border-[var(--pc-control-border)] bg-[var(--pc-control-bg)] px-2",children:[(0,a.jsx)("span",{className:"truncate font-yekan text-[9px] font-medium text-[var(--pc-panel-muted)]",children:e}),l]})}function y({children:e,disabled:l,tone:t="default",onClick:n,title:r}){return(0,a.jsx)("button",{type:"button",disabled:l,title:r,onClick:n,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":"success"===t?"text-emerald-600 hover:border-emerald-500 hover:bg-emerald-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 V(){let e=(0,d.s0)(),l=(0,d.sr)(),t=e.selectedWidget,[V]=c.lV.useForm(),S=c.lV.useWatch([],V);if((0,n.useEffect)(()=>{if(!t)return;let e=(0,m.it)(t.defaultProps||m.A9);V.resetFields(),V.setFieldsValue(e)},[V,t]),!t)return null;let I=(0,m.it)({...t.defaultProps||{},...S||V.getFieldsValue(!0)}),C=(e,a)=>{let n=(0,m.it)(a);l.updateNode(t.id,{defaultProps:n,children:(0,m.W8)(t.children,n.items,t.id)})},P=()=>{queueMicrotask(()=>C(null,V.getFieldsValue(!0)))};return(0,a.jsx)(i.XR,{children:(0,a.jsxs)(c.lV,{form:V,layout:"vertical",size:"small",autoComplete:"off",onValuesChange:C,children:[(0,a.jsx)(i.So,{title:"تب‌ها",defaultOpen:!0,children:(0,a.jsx)(c.lV.List,{name:"items",children:(e,{add:l,remove:t,move:n})=>(0,a.jsxs)("div",{className:"space-y-1.5",children:[e.map((l,s)=>{var d,x;let h,u;return(0,a.jsx)(i.So,{title:`تب ${s+1} - ${String(I.items?.[s]?.title||"").trim()||"بدون عنوان"}`,children:(d=l.name,x=e.length,u=(h=I.items?.[s]||(0,m.sJ)()).iconType||"font",(0,a.jsxs)("div",{className:"space-y-1.5 border-t border-[var(--pc-panel-border)] pt-1.5",children:[(0,a.jsx)(i.xh,{label:"عنوان تب",children:(0,a.jsx)(c.lV.Item,{name:["items",d,"title"],noStyle:!0,children:(0,a.jsx)(i.zA,{placeholder:"مثلا سازمان‌ها",allowClear:!0})})}),(0,a.jsx)(i.xh,{label:"نوع آیکون",children:(0,a.jsx)(c.lV.Item,{name:["items",d,"iconType"],noStyle:!0,children:(0,a.jsx)(i.Pl,{options:b})})}),"image"===u?(0,a.jsx)(i.xh,{label:"تصویر تب",children:(0,a.jsx)(c.lV.Item,{name:["items",d,"image"],noStyle:!0,children:(0,a.jsx)("div",{className:"pc-tabs-file-selector text-[10px]",children:(0,a.jsx)(r.A,{multiselect:!1,filter:"image"})})})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.xh,{label:"آیکون سفارشی",children:(0,a.jsx)(c.lV.Item,{name:["items",d,"icon"],noStyle:!0,children:(0,a.jsx)(o.A,{compact:!0,popupClassName:"pc-figma-select-dropdown"})})}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-1",children:g.map(e=>{let l=h.icon===e.value;return(0,a.jsx)("button",{type:"button",onClick:()=>{var l;return l=e.value,void(V.setFieldValue(["items",d,"icon"],l),P())},className:["min-h-6 rounded-[8px] border px-2 text-right font-yekan text-[9px] leading-4 transition",l?"border-emerald-500 bg-emerald-500/10 text-emerald-600":"border-[var(--pc-control-border)] bg-[var(--pc-control-bg)] text-[var(--pc-control-text)] hover:border-[var(--pc-control-hover-border)]"].join(" "),children:e.label},`${d}-${e.value}`)})})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1 pt-1",children:[(0,a.jsx)(y,{title:"انتقال به بالا",disabled:0===s,onClick:()=>{n(s,s-1),P()},children:"↑"}),(0,a.jsx)(y,{title:"انتقال به پایین",disabled:s>=x-1,onClick:()=>{n(s,s+1),P()},children:"↓"}),(0,a.jsx)(y,{title:"حذف تب",tone:"danger",disabled:x<=1,onClick:()=>{t(s),P()},children:"حذف"})]})]}))},l.key)}),(0,a.jsx)(y,{tone:"success",onClick:()=>{l((0,m.sJ)()),P()},children:"+ افزودن تب"})]})})}),(0,a.jsx)(i.So,{title:"چیدمان",defaultOpen:!0,children:(0,a.jsxs)(i.Jg,{columns:1,children:[(0,a.jsx)(i.xh,{label:"مدل نمایش",children:(0,a.jsx)(c.lV.Item,{name:"variant",noStyle:!0,children:(0,a.jsx)(i.Pl,{options:h})})}),(0,a.jsx)(i.xh,{label:"تراز",children:(0,a.jsx)(c.lV.Item,{name:"alignment",noStyle:!0,children:(0,a.jsx)(i.Pl,{options:u})})}),(0,a.jsx)(f,{label:"تمام عرض باشد",children:(0,a.jsx)(c.lV.Item,{name:"fullWidth",valuePropName:"checked",noStyle:!0,children:(0,a.jsx)(i.xk,{})})}),(0,a.jsx)(i.xh,{label:"حالت موبایل",children:(0,a.jsx)(c.lV.Item,{name:"mobileHeaderMode",noStyle:!0,children:(0,a.jsx)(i.Pl,{options:j})})}),(0,a.jsx)(i.xh,{label:"فاصله بین تب‌ها",children:(0,a.jsx)(c.lV.Item,{name:"gap",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:40})})}),(0,a.jsxs)(i.Jg,{columns:2,children:[(0,a.jsx)(i.xh,{label:"پدینگ افقی نوار",children:(0,a.jsx)(c.lV.Item,{name:"tabBarPaddingX",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:48})})}),(0,a.jsx)(i.xh,{label:"پدینگ عمودی نوار",children:(0,a.jsx)(c.lV.Item,{name:"tabBarPaddingY",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:48})})})]}),(0,a.jsxs)(i.Jg,{columns:2,children:[(0,a.jsx)(i.xh,{label:"پدینگ افقی تب",children:(0,a.jsx)(c.lV.Item,{name:"itemPaddingX",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:48})})}),(0,a.jsx)(i.xh,{label:"پدینگ عمودی تب",children:(0,a.jsx)(c.lV.Item,{name:"itemPaddingY",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:48})})})]}),(0,a.jsx)(i.xh,{label:"فاصله آیکون و متن",children:(0,a.jsx)(c.lV.Item,{name:"itemGap",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:24})})}),(0,a.jsx)(c.lV.Item,{name:"contentPadding",noStyle:!0,children:(0,a.jsx)(s.Ay,{label:"پدینگ محتوای تب",placeholder:"24 0 0 0"})})]})}),(0,a.jsxs)(i.So,{title:"نوار تب‌ها",children:[(0,a.jsx)(i.xh,{label:"رنگ زمینه نوار",children:(0,a.jsx)(c.lV.Item,{name:"tabBarBackgroun
1dColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"رنگ حاشیه نوار",children:(0,a.jsx)(c.lV.Item,{name:"tabBarBorderColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"خمیدگی نوار",children:(0,a.jsx)(c.lV.Item,{name:"tabBarBorderRadius",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:50})})})]}),(0,a.jsx)(i.So,{title:"ظاهر تب‌ها",children:(0,a.jsxs)(i.Jg,{columns:1,children:[(0,a.jsx)(i.xh,{label:"رنگ متن غیرفعال",children:(0,a.jsx)(c.lV.Item,{name:"itemColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"رنگ آیکون غیرفعال",children:(0,a.jsx)(c.lV.Item,{name:"itemIconColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"رنگ متن فعال",children:(0,a.jsx)(c.lV.Item,{name:"activeItemColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"رنگ آیکون فعال",children:(0,a.jsx)(c.lV.Item,{name:"activeItemIconColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"زمینه غیرفعال",children:(0,a.jsx)(c.lV.Item,{name:"inactiveItemBackgroun
1dColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"زمینه فعال",children:(0,a.jsx)(c.lV.Item,{name:"activeItemBackgroundColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"حاشیه غیرفعال",children:(0,a.jsx)(c.lV.Item,{name:"inactiveItemBorderColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"حاشیه فعال",children:(0,a.jsx)(c.lV.Item,{name:"activeItemBorderColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"خمیدگی هر تب",children:(0,a.jsx)(c.lV.Item,{name:"itemBorderRadius",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:40})})})]})}),(0,a.jsxs)(i.So,{title:"تایپوگرافی",children:[(0,a.jsx)(i.xh,{label:"فونت تب‌ها",children:(0,a.jsx)(c.lV.Item,{name:"itemFontFamily",noStyle:!0,children:(0,a.jsx)(i.Pl,{options:v})})}),(0,a.jsxs)(i.Jg,{columns:2,children:[(0,a.jsx)(i.xh,{label:"اندازه فونت",children:(0,a.jsx)(c.lV.Item,{name:"itemFontSize",noStyle:!0,children:(0,a.jsx)(i.UX,{min:10,max:36})})}),(0,a.jsx)(i.xh,{label:"اندازه آیکون",children:(0,a.jsx)(c.lV.Item,{name:"iconSize",noStyle:!0,children:(0,a.jsx)(i.UX,{min:12,max:48})})})]}),(0,a.jsx)(i.xh,{label:"ضخامت فونت",children:(0,a.jsx)(c.lV.Item,{name:"itemFontWeight",noStyle:!0,children:(0,a.jsx)(i.Pl,{options:p})})})]}),(0,a.jsxs)(i.So,{title:"محتوای تب",children:[(0,a.jsx)(i.xh,{label:"رنگ زمینه محتوا",children:(0,a.jsx)(c.lV.Item,{name:"contentBackgroundColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"رنگ حاشیه محتوا",children:(0,a.jsx)(c.lV.Item,{name:"contentBorderColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"خمیدگی محتوا",children:(0,a.jsx)(c.lV.Item,{name:"contentBorderRadius",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:40})})}),(0,a.jsx)(f,{label:"سایه فعال باشد",children:(0,a.jsx)(c.lV.Item,{name:"contentShadow",valuePropName:"checked",noStyle:!0,children:(0,a.jsx)(i.xk,{})})})]})]},t.id)})}}}]);

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.