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.