PageSourceSearch

http://behmalt.com/_next/static/chunks/84597.e906e08c907bd71b.js

js behmalt.com collected 2026-10-02 23:54:55 UTC 11,725 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[84597],{25366:(e,l,t)=>{t.d(l,{q:()=>n});var a=t(29753),r=t(28509),s=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:s,isRefetching:i,isError:n,isRefetchError:o}=a,c=t.fetchMeta?.fetchMore?.direction,d=n&&"forward"===c,x=s&&"forward"===c,h=n&&"backward"===c,m=s&&"backward"===c;return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,r.rB)(l,t.data),hasPreviousPage:(0,r.RQ)(l,t.data),isFetchNextPageError:d,isFetchingNextPage:x,isFetchPreviousPageError:h,isFetchingPreviousPage:m,isRefetchError:o&&!d&&!h,isRefetching:i&&!x&&!m}}},i=t(38764);function n(e,l){return(0,i.t)(e,s,l)}},46284:(e,l,t)=>{t.r(l),t.d(l,{default:()=>f});var a=t(95155),r=t(12115),s=t(86588),i=t(80870),n=t(90346),o=t(6576),c=t(80283),d=t(3591),x=t(83399),h=t(69187);let m=[{value:"grid",label:"عادی و کنار هم"},{value:"carousel",label:"کاروسل اسلایدی"}],u=[{value:"right",label:"راست‌چین"},{value:"center",label:"وسط‌چین"},{value:"left",label:"چپ‌چین"}],j=[{value:"cards",label:"کارت کلاسیک"},{value:"spotlight",label:"کارت برجسته"},{value:"minimal",label:"کارت مینیمال"}],b=[{value:"cover",label:"پوشش کامل"},{value:"contain",label:"نمایش کامل تصویر"},{value:"fill",label:"کشیده"},{value:"scale-down",label:"کوچک‌سازی هوشمند"}];function p({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 g({children:e,disabled:l,tone:t="default",onClick:r,title:s}){return(0,a.jsx)("button",{type:"button",disabled:l,title:s,onClick:r,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 f(){let e=(0,c.sr)(),l=(0,c.s0)().selectedWidget,[t]=n.lV.useForm(),f=n.lV.useWatch([],t);if((0,r.useEffect)(()=>{if(!l)return;let e=(0,h.a7)(l.defaultProps||h.d6);t.resetFields(),t.setFieldsValue(e)},[t,l]),!l)return null;let v=(t,a)=>{e.updateNode(l.id,{defaultProps:(0,h.a7)(a)})},y=(0,r.useCallback)(()=>{let e=t.getFieldValue("items");return Array.isArray(e)?e.map(e=>(0,h.S)(e)):[]},[t]),V=(0,r.useCallback)(a=>{let r=(0,h.a7)({...t.getFieldsValue(!0),items:a});t.setFieldValue("items",r.items),e.updateNode(l.id,{defaultProps:r})},[t,e,l.id]),S=(0,r.useCallback)(()=>{V([...y(),(0,h.S)({...h.LN,title:"",role:"",email:"",description:""})])},[y,V]),I=(0,r.useCallback)(e=>{V(y().filter((l,t)=>t!==e))},[y,V]),P=(0,r.useCallback)((e,l)=>{let t=y(),a=e+l;if(a<0||a>=t.length)return;let r=[...t],[s]=r.splice(e,1);r.splice(a,0,s),V(r)},[y,V]),k=(0,h.a7)({...l.defaultProps||{},...f||t.getFieldsValue(!0)});return(0,a.jsx)(i.XR,{children:(0,a.jsxs)(n.lV,{form:t,layout:"vertical",size:"small",autoComplete:"off",onValuesChange:v,children:[(0,a.jsx)(i.So,{title:"شخصیت‌ها",defaultOpen:!0,children:(0,a.jsx)(n.lV.List,{name:"items",children:e=>(0,a.jsxs)("div",{className:"space-y-1.5",children:[e.map((l,r)=>{var c,d,h;let m;return(0,a.jsx)(i.So,{title:`شخص ${r+1} - ${String(k.items?.[r]?.title||"").trim()||"بدون نام"}`,children:(c=l.name,d=r,h=e.length,(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)(n.lV.Item,{name:["items",c,"title"],noStyle:!0,children:(0,a.jsx)(i.zA,{placeholder:"مثلا الهام رضایی",allowClear:!0})})}),(0,a.jsx)(i.xh,{label:"سمت",children:(0,a.jsx)(n.lV.Item,{name:["items",c,"role"],noStyle:!0,children:(0,a.jsx)(i.zA,{placeholder:"مثلا مدیرعامل",allowClear:!0})})}),(0,a.jsx)(i.xh,{label:"ایمیل",children:(0,a.jsx)(n.lV.Item,{name:["items",c,"email"],noStyle:!0,children:(0,a.jsx)(i.zA,{dir:"ltr",placeholder:"[email protected]",allowClear:!0})})}),(0,a.jsx)(i.xh,{label:"لینک شخص",children:(0,a.jsx)(n.lV.Item,{name:["items",c,"href"],noStyle:!0,children:(0,a.jsx)(x.A,{placeholder:"# یا /about یا https://example.com"})})}),(0,a.jsx)(p,{label:"در تب جدید باز شود",children:(0,a.jsx)(n.lV.Item,{name:["items",c,"openInNewTab"],valuePropName:"checked",noStyle:!0,children:(0,a.jsx)(i.xk,{})})}),(0,a.jsx)(i.xh,{label:"تصویر شخص",children:(0,a.jsx)("div",{className:"pc-characters-file-selector text-[10px]",children:(0,a.jsx)(n.lV.Item,{name:["items",c,"image"],noStyle:!0,children:(0,a.jsx)(s.A,{multiselect:!1,filter:"image"})})})}),String(k.items?.[d]?.image||"").trim()?(0,a.jsxs)("div",{className:"overflow-hidden rounded-[10px] border border-[var(--pc-panel-border)] bg-[var(--pc-control-bg)]",children:[(0,a.jsx)("div",{className:"flex min-h-[124px] items-center justify-center bg-white p-3",children:(0,a.jsx)("img",{src:(m=String(k.items?.[d]?.image||"").trim())?(0,o.IB)(m):"",alt:k.items?.[d]?.title||"preview",className:"block h-28 w-full",style:{objectFit:k.items?.[d]?.imageFit||k.imageFit}})}),(0,a.jsx)("button",{type:"button",onClick:()=>{t.setFieldValue(["items",c,"image"],""),t.setFieldValue(["items",c,"imageFit"],void 0),v(null,t.getFieldsValue(!0))},className:"flex h-8 w-full items-center justify-center border-t border-[var(--pc-panel-border)] bg-[var(--pc-control-bg)] font-yekan text-[10px] text-red-500 transition hover:bg-red-500/10",children:"حذف تصویر"})]}):null,(0,a.jsx)(i.xh,{label:"حالت نمایش تصویر شخص",children:(0,a.jsx)(n.lV.Item,{name:["items",c,"imageFit"],noStyle:!0,children:(0,a.jsx)(i.Pl,{options:b})})}),(0,a.jsxs)("div",{className:"flex items-center gap-1 pt-1",children:[(0,a.jsx)(g,{title:"انتقال به بالا",disabled:0===d,onClick:()=>P(d,-1),children:"↑"}),(0,a.jsx)(g,{title:"انتقال به پایین",disabled:d>=h-1,onClick:()=>P(d,1),children:"↓"}),(0,a.jsx)(g,{title:"حذف شخص",tone:"danger",disabled:h<=1,onClick:()=>I(d),children:"حذف"})]})]}))},l.key)}),(0,a.jsx)(g,{tone:"success",onClick:S,children:"+ افزودن شخص"})]})})}),(0,a.jsxs)(i.So,{title:"چیدمان",defaultOpen:!0,children:[(0,a.jsx)(i.xh,{label:"سبک نمایش",children:(0,a.jsx)(n.lV.Item,{name:"variant",noStyle:!0,children:(0,a.jsx)(i.Pl,{options:j})})}),(0,a.jsx)(i.xh,{label:"تراز متن کارت‌ها",children:(0,a.jsx)(n.lV.Item,{name:"textAlign",noStyle:!0,children:(0,a.jsx)(i.Pl,{options:u})})}),(0,a.jsx)(i.xh,{label:"حالت نمایش تصویر",children:(0,a.jsx)(n.lV.Item,{name:"imageFit",noStyle:!0,children:(0,a.jsx)(i.Pl,{options:b})})}),(0,a.jsxs)(i.Jg,{columns:3,children:[(0,a.jsx)(i.xh,{label:"دسکتاپ",children:(0,a.jsx)(n.lV.Item,{name:"columnsDesktop",noStyle:!0,children:(0,a.jsx)(i.UX,{min:1,max:6})})}),(0,a.jsx)(i.xh,{label:"تبلت",children:(0,a.jsx)(n.lV.Item,{name:"columnsTablet",noStyle:!0,children:(0,a.jsx)(i.UX,{min:1,max:4})})}),(0,a.jsx)(i.xh,{label:"موبایل",children:(0,a.jsx)(n.lV.Item,{name:"columnsMobile",noStyle:!0,children:(0,a.jsx)(i.UX,{min:1,max:3})})})]}),(0,a.jsx)(i.xh,{label:"نمایش در دسکتاپ",children:(0,a.jsx)(n.lV.Item,{name:"desktopDisplayMode",noStyle:!0,children:(0,a.jsx)(i.Pl,{options:m})})}),(0,a.jsx)(i.xh,{label:"نمایش در تبلت",children:(0,a.jsx)(n.lV.Item,{name:"tabletDisplayMode",noStyle:!0,children:(0,a.jsx)(i.Pl,{options:m})})}),(0,a.jsx)(i.xh,{label:"نمایش در موبایل",children:(0,a.jsx)(n.lV.Item,{name:"mobileDisplayMode",noStyle:!0,children:(0,a.jsx)(i.Pl,{options:m})})}),(0,a.jsxs)(i.Jg,{columns:2,children:[(0,a.jsx)(i.xh,{label:"فاصله آیتم‌ها",children:(0,a.jsx)(n.lV.Item,{name:"gap",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:64})})}),(0,a.jsx)(i.xh,{label:"نسبت تصویر",children:(0,a.jsx)(n.lV.Item,{name:"imageAspectRatio",noStyle:!0,children:(0,a.jsx)(i.UX,{min:.6,max:2,step:.05})})})]}),(0,a.jsx)(p,{label:"نمایش سمت فعال باشد",children:(0,a.jsx)(n.lV.Item,{name:"showRole",valuePropName:"checked",noStyle:!0,children:(0,a.jsx)(i.xk,{})})}),(0,a.jsx)(p,{label:"نمایش ایمیل فعال باشد",children:(0,a.jsx)(n.lV.Item,{name:"showEmail",valuePropName:"checked",noStyle:!0,children:(0,a.jsx)(i.xk,{})})})]}),(0,a.jsxs)(i.So,{title:"کارت",children:[(0,a.jsx)(i.xh,{label:"رنگ پس‌زمینه کارت",children:(0,a.jsx)(n.lV.Item,{name:"cardBackgroun
1dColor",noStyle:!0,children:(0,a.jsx)(d.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"رنگ حاشیه کارت",children:(0,a.jsx)(n.lV.Item,{name:"cardBorderColor",noStyle:!0,children:(0,a.jsx)(d.A,{allowCustomValue:!0})})}),(0,a.jsxs)(i.Jg,{columns:2,children:[(0,a.jsx)(i.xh,{label:"گردی گوشه",children:(0,a.jsx)(n.lV.Item,{name:"cardBorderRadius",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:80})})}),(0,a.jsx)(i.xh,{label:"پدینگ افقی",children:(0,a.jsx)(n.lV.Item,{name:"cardPaddingX",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:64})})})]}),(0,a.jsx)(i.xh,{label:"پدینگ عمودی",children:(0,a.jsx)(n.lV.Item,{name:"cardPaddingY",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:64})})}),(0,a.jsx)(p,{label:"سایه فعال باشد",children:(0,a.jsx)(n.lV.Item,{name:"cardShadow",valuePropName:"checked",noStyle:!0,children:(0,a.jsx)(i.xk,{})})})]}),(0,a.jsxs)(i.So,{title:"تایپوگرافی و رنگ",children:[(0,a.jsx)(i.xh,{label:"رنگ نام",children:(0,a.jsx)(n.lV.Item,{name:"titleColor",noStyle:!0,children:(0,a.jsx)(d.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"رنگ سمت",children:(0,a.jsx)(n.lV.Item,{name:"roleColor",noStyle:!0,children:(0,a.jsx)(d.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"رنگ ایمیل",children:(0,a.jsx)(n.lV.Item,{name:"emailColor",noStyle:!0,children:(0,a.jsx)(d.A,{allowCustomValue:!0})})}),(0,a.jsxs)(i.Jg,{columns:3,children:[(0,a.jsx)(i.xh,{label:"نام",children:(0,a.jsx)(n.lV.Item,{name:"titleFontSize",noStyle:!0,children:(0,a.jsx)(i.UX,{min:12,max:42})})}),(0,a.jsx)(i.xh,{label:"سمت",children:(0,a.jsx)(n.lV.Item,{name:"roleFontSize",noStyle:!0,children:(0,a.jsx)(i.UX,{min:10,max:28})})}),(0,a.jsx)(i.xh,{label:"ایمیل",children:(0,a.jsx)(n.lV.Item,{name:"emailFontSize",noStyle:!0,children:(0,a.jsx)(i.UX,{min:10,max:24})})})]})]})]},l.id)})}},83399:(e,l,t)=>{t.d(l,{A:()=>n});var a=t(95155),r=t(12115),s=t(80283),i=t(1789);function n({value:e,onChange:l,direction:t="ltr",placeholder:o="لینک",disabled:c=!1,languageId:d}){let x=(0,s.sr)(e=>e.pageProperties),h=(0,r.useMemo)(()=>d||x?.languageId||x?.language?.id||void 0,[d,x?.language?.id,x?.languageId]);return(0,a.jsx)(i.A,{value:e,onChange:e=>l?.(e),direction:t,placeholder:o,disabled:c,languageId:h})}}}]);

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.