PageSourceSearch

http://behmalt.com/_next/static/chunks/14231.e31e34f5ceb70bc0.js

js behmalt.com collected 2026-10-02 23:53:20 UTC 8,097 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[14231],{12931:(e,l,a)=>{a.d(l,{A:()=>o});var n=a(95155),t=a(90346),s=a(72635),r=a(22211),c=a(81951),i=a(12115);function o({value:e,onChange:l,compact:a,className:d,popupClassName:x}){let[m,h]=(0,i.useState)(e??""),[j,u]=(0,i.useState)(e??""),[p,y]=(0,i.useState)((e??"").trim()),g=(0,i.useRef)(null);(0,i.useEffect)(()=>{let l=e??"";h(l),u(l),y(l.trim())},[e]),(0,i.useEffect)(()=>(g.current&&clearTimeout(g.current),g.current=setTimeout(()=>y(m.trim()),300),()=>{g.current&&clearTimeout(g.current)}),[m]);let b=p||"home",{data:I,isLoading:f,isError:S}=r.f(b),V=(0,i.useMemo)(()=>(I?.icons??[]).map(e=>({value:e,label:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(s.In,{icon:e,className:"text-lg text-gray-700"}),(0,n.jsx)("span",{className:"truncate text-sm text-gray-800",children:e})]})})),[I]),v=j?.trim()&&j.trim()===m.trim(),R=(0,i.useCallback)(e=>{h(e),u(e),l?.(e)},[l]),C=(0,i.useCallback)(e=>{h(e),u(""),l?.(e)},[l]),Z=(0,i.useMemo)(()=>f?(0,n.jsxs)("div",{className:"flex items-center justify-center gap-2 py-2",children:[(0,n.jsx)(t.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,f]);return(0,n.jsx)(t.j9,{className:(0,c.cn)("w-full",a&&"pc-compact-icon-selector",d),popupClassName:x,dropdownStyle:a?{fontSize:10,padding:4}:void 0,size:a?"small":void 0,value:m,placeholder:"آیکون را جستجو کنید...",onChange:C,onSelect:R,options:V,filterOption:!1,notFoundContent:Z,allowClear:!0,prefix:v?(0,n.jsx)(s.In,{icon:j,className:a?"text-[13px] text-gray-600":"text-lg text-gray-600"}):void 0})}},14231:(e,l,a)=>{a.r(l),a.d(l,{default:()=>h});var n=a(95155),t=a(12115),s=a(80870),r=a(12931),c=a(90346),i=a(80283),o=a(3591),d=a(83399),x=a(68464);let m=[{value:"inline",label:"خطی"},{value:"split",label:"دوتکه"},{value:"card",label:"کارتی"}];function h(){let e=(0,i.sr)(),l=(0,i.s0)().selectedWidget,[a]=c.lV.useForm();(0,t.useEffect)(()=>{l&&(a.resetFields(),a.setFieldsValue((0,x._)(l.defaultProps||x.q)))},[a,l]);let h=(0,t.useCallback)((a,n)=>{l&&e.updateNode(l.id,{defaultProps:(0,x._)(n)})},[e,l]);return l?(0,n.jsx)(s.XR,{children:(0,n.jsxs)(c.lV,{form:a,layout:"vertical",initialValues:(0,x._)(l.defaultProps||x.q),onValuesChange:h,children:[(0,n.jsx)(s.So,{title:"کلیات",defaultOpen:!0,children:(0,n.jsxs)("div",{className:"space-y-1 px-1 pb-2",children:[(0,n.jsx)(s.RZ,{label:"عنوان مهمان",children:(0,n.jsx)(c.lV.Item,{name:"guestLabel",noStyle:!0,children:(0,n.jsx)(s.zA,{placeholder:"حساب کاربری",allowClear:!0})})}),(0,n.jsx)(s.RZ,{label:"ظاهر",children:(0,n.jsx)(c.lV.Item,{name:"variant",noStyle:!0,children:(0,n.jsx)(s.Pl,{options:[...m]})})}),(0,n.jsx)(s.RZ,{label:"نمایش آیکن",children:(0,n.jsx)(c.lV.Item,{name:"showIcons",valuePropName:"checked",noStyle:!0,children:(0,n.jsx)(s.xk,{})})}),(0,n.jsx)(s.RZ,{label:"نمایش متن خوشامد",children:(0,n.jsx)(c.lV.Item,{name:"showWelcomeText",valuePropName:"checked",noStyle:!0,children:(0,n.jsx)(s.xk,{})})}),(0,n.jsx)(s.RZ,{label:"نمایش بخش کاربر لاگین‌شده",children:(0,n.jsx)(c.lV.Item,{name:"showLoggedInIdentity",valuePropName:"checked",noStyle:!0,children:(0,n.jsx)(s.xk,{})})}),(0,n.jsx)(s.RZ,{label:"حالت فشرده",children:(0,n.jsx)(c.lV.Item,{name:"compact",valuePropName:"checked",noStyle:!0,children:(0,n.jsx)(s.xk,{})})})]})}),(0,n.jsx)(s.So,{title:"متن‌ها",children:(0,n.jsxs)("div",{className:"space-y-1 px-1 pb-2",children:[(0,n.jsx)(s.RZ,{label:"متن ورود",children:(0,n.jsx)(c.lV.Item,{name:"loginText",noStyle:!0,children:(0,n.jsx)(s.zA,{placeholder:"ورود",allowClear:!0})})}),(0,n.jsx)(s.RZ,{label:"متن ثبت‌نام",children:(0,n.jsx)(c.lV.Item,{name:"registerText",noStyle:!0,children:(0,n.jsx)(s.zA,{placeholder:"ثبت‌نام",allowClear:!0})})}),(0,n.jsx)(s.RZ,{label:"متن پنل",children:(0,n.jsx)(c.lV.Item,{name:"userPanelText",noStyle:!0,children:(0,n.jsx)(s.zA,{placeholder:"پنل کاربر",allowClear:!0})})}),(0,n.jsx)(s.RZ,{label:"متن خروج",children:(0,n.jsx)(c.lV.Item,{name:"logoutText",noStyle:!0,children:(0,n.jsx)(s.zA,{placeholder:"خروج",allowClear:!0})})}),(0,n.jsx)(s.RZ,{label:"پیشوند خوشامد",children:(0,n.jsx)(c.lV.Item,{name:"welcomePrefix",noStyle:!0,children:(0,n.jsx)(s.zA,{placeholder:"سلام",allowClear:!0})})})]})}),(0,n.jsx)(s.So,{title:"لینک‌ها و آیکن",children:(0,n.jsxs)("div",{className:"space-y-1 px-1 pb-2",children:[(0,n.jsx)(s.RZ,{label:"لینک ورود",children:(0,n.jsx)(c.lV.Item,{name:"loginHref",noStyle:!0,children:(0,n.jsx)(d.A,{placeholder:"/auth/login"})})}),(0,n.jsx)(s.RZ,{label:"لینک ثبت‌نام",children:(0,n.jsx)(c.lV.Item,{name:"registerHref",noStyle:!0,children:(0,n.jsx)(d.A,{placeholder:"/auth/register"})})}),(0,n.jsx)(s.RZ,{label:"لینک پنل",children:(0,n.jsx)(c.lV.Item,{name:"panelHref",noStyle:!0,children:(0,n.jsx)(d.A,{placeholder:"/panel/home"})})}),(0,n.jsx)(s.RZ,{label:"آیکن مهمان",children:(0,n.jsx)(c.lV.Item,{name:"icon",noStyle:!0,children:(0,n.jsx)(r.A,{})})}),(0,n.jsx)(s.RZ,{label:"آیکن کاربر",children:(0,n.jsx)(c.lV.Item,{name:"loggedInIcon",noStyle:!0,children:(0,n.jsx)(r.A,{})})})]})}),(0,n.jsx)(s.So,{title:"ابعاد و رنگ",children:(0,n.jsxs)("div",{className:"space-y-1 px-1 pb-2",children:[(0,n.jsx)(s.RZ,{label:"گردی",children:(0,n.jsx)(c.lV.Item,{name:"borderRadius",noStyle:!0,children:(0,n.jsx)(s.UX,{min:8,max:36})})}),(0,n.jsx)(s.RZ,{label:"پدینگ افقی",children:(0,n.jsx)(c.lV.Item,{name:"paddingX",noStyle:!0,children:(0,n.jsx)(s.UX,{min:8,max:32})})}),(0,n.jsx)(s.RZ,{label:"پدینگ عمودی",children:(0,n.jsx)(c.lV.Item,{name:"paddingY",noStyle:!0,children:(0,n.jsx)(s.UX,{min:8,max:24})})}),(0,n.jsx)(s.RZ,{label:"پس‌زمینه",children:(0,n.jsx)(c.lV.Item,{name:"backgroundColor",n
1oStyle:!0,children:(0,n.jsx)(o.A,{allowCustomValue:!0})})}),(0,n.jsx)(s.RZ,{label:"رنگ متن",children:(0,n.jsx)(c.lV.Item,{name:"textColor",noStyle:!0,children:(0,n.jsx)(o.A,{allowCustomValue:!0})})}),(0,n.jsx)(s.RZ,{label:"رنگ تاکیدی",children:(0,n.jsx)(c.lV.Item,{name:"accentColor",noStyle:!0,children:(0,n.jsx)(o.A,{allowCustomValue:!0})})}),(0,n.jsx)(s.RZ,{label:"رنگ کادر",children:(0,n.jsx)(c.lV.Item,{name:"borderColor",noStyle:!0,children:(0,n.jsx)(o.A,{allowCustomValue:!0})})}),(0,n.jsx)(s.RZ,{label:"نمایش فریم",children:(0,n.jsx)(c.lV.Item,{name:"showBorder",valuePropName:"checked",noStyle:!0,children:(0,n.jsx)(s.xk,{})})}),(0,n.jsx)(s.RZ,{label:"سایه",children:(0,n.jsx)(c.lV.Item,{name:"shadow",valuePropName:"checked",noStyle:!0,children:(0,n.jsx)(s.xk,{})})})]})})]})}):null}},22211:(e,l,a)=>{a.d(l,{f:()=>c,z:()=>r});var n=a(21338),t=a(26708);let s="https://api.iconify.design";function r(e){return(0,t.I)({queryKey:["icon-collection",e],queryFn:async()=>(await n.A.get(`${s}/collection?prefix=${encodeURIComponent(e)}`)).data,enabled:e.trim().length>0,staleTime:18e5,retry:1})}function c(e){return(0,t.I)({queryKey:["icons",e],queryFn:async()=>(await n.A.get(`${s}/search?query=${encodeURIComponent(e)}`)).data,enabled:e.trim().length>0,staleTime:3e5,retry:1})}},83399:(e,l,a)=>{a.d(l,{A:()=>c});var n=a(95155),t=a(12115),s=a(80283),r=a(1789);function c({value:e,onChange:l,direction:a="ltr",placeholder:i="لینک",disabled:o=!1,languageId:d}){let x=(0,s.sr)(e=>e.pageProperties),m=(0,t.useMemo)(()=>d||x?.languageId||x?.language?.id||void 0,[d,x?.language?.id,x?.languageId]);return(0,n.jsx)(r.A,{value:e,onChange:e=>l?.(e),direction:a,placeholder:i,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.