1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63947],{6766:(e,t,l)=>{l.r(t),l.d(t,{default:()=>b});var r=l(95155),s=l(12115),a=l(80870),n=l(60180),i=l(90346),o=l(80283),d=l(3591),c=l(55506),x=l(25453);let h=[{label:"IranSans",value:"font-iran"},{label:"Yekan",value:"font-yekan"},{label:"Peyda",value:"font-peyda"}],u=[{label:"شبکÙâØ§Û",value:"grid"},{label:"اÙÙÛ",value:"horizontal"},{label:"عÙ
ÙØ¯Û",value:"vertical"}];function m({children:e,disabled:t,tone:l="default",onClick:s,title:a}){return(0,r.jsx)("button",{type:"button",disabled:t,title:a,onClick:s,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"===l?"text-red-500 hover:border-red-400 hover:bg-red-500/10":"success"===l?"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))]",t?"cursor-not-allowed opacity-35":""].join(" "),children:e})}function p({label:e,children:t}){return(0,r.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,r.jsx)("span",{className:"truncate font-yekan text-[9px] font-medium text-[var(--pc-panel-muted)]",children:e}),t]})}function b(){let e=(0,o.sr)(),t=(0,o.s0)().selectedWidget,[l]=i.lV.useForm(),b=i.lV.useWatch([],l);if((0,s.useEffect)(()=>{t&&(l.resetFields(),l.setFieldsValue((0,x.T5)(t.defaultProps||{})))},[l,t]),!t)return null;let j=(l,r)=>{e.updateNode(t.id,{defaultProps:(0,x.T5)(r)})},f=(0,s.useCallback)(()=>{let e=l.getFieldValue("items");return Array.isArray(e)?e.map(e=>(0,x.JD)(e)):[]},[l]),g=(0,s.useCallback)(r=>{let s=(0,x.T5)({...l.getFieldsValue(!0),items:r});l.setFieldValue("items",s.items),e.updateNode(t.id,{defaultProps:s})},[l,e,t.id]),v=(0,x.T5)({...t.defaultProps||{},...b||l.getFieldsValue(!0)});return(0,r.jsx)(a.XR,{children:(0,r.jsxs)(i.lV,{form:l,layout:"vertical",size:"small",autoComplete:"off",onValuesChange:j,children:[(0,r.jsx)(a.So,{title:"Ø§ÙØªØ®Ø§Ø±Ø§Øª",defaultOpen:!0,children:(0,r.jsx)(i.lV.List,{name:"items",children:(e,{move:t})=>(0,r.jsxs)("div",{className:"space-y-1",children:[e.map((s,o)=>{var d;let h,u;return(0,r.jsx)(a.So,{title:(d=v.items?.[o],String(d?.title||"").trim()||`Ø§ÙØªØ®Ø§Ø± ${Number(o||0)+1}`),children:(h=s.name,u=e.length,(0,r.jsxs)("div",{className:"space-y-1.5 border-t border-[var(--pc-panel-border)] pt-1.5",children:[(0,r.jsx)(a.xh,{label:"تصÙÛØ± ÛØ§ Ù
Ø¯Ø§Ù Ø§ÙØªØ®Ø§Ø±",children:(0,r.jsx)(c.A,{value:v.items?.[o]?.image||"",onChange:e=>{let t=[...f()];t[o]=(0,x.JD)({...t[o]||{},image:e}),g(t)},emptyText:"اگر تصÙÛØ±Û Ø§ÙØªØ®Ø§Ø¨ ÙÚ©ÙÛØ¯Ø Ù
Ø¯Ø§Ù Ù¾ÛØ´âÙØ±Ø¶ ÙÙ
Ø§ÛØ´ داد٠Ù
ÛâØ´ÙØ¯.",previewClassName:"h-40 w-full object-contain"})}),(0,r.jsx)(a.xh,{label:"عÙÙØ§Ù Ø§ÙØªØ®Ø§Ø±",children:(0,r.jsx)(i.lV.Item,{name:["items",h,"title"],noStyle:!0,children:(0,r.jsx)(a.zA,{placeholder:"Ù
Ø«ÙØ§Ù برترÛÙ Ø¨Ø±ÙØ¯ ساÙ",allowClear:!0})})}),(0,r.jsx)(a.xh,{label:"ØªÙØ¶ÛØØ§Øª",children:(0,r.jsx)(i.lV.Item,{name:["items",h,"description"],noStyle:!0,children:(0,r.jsx)(a.tt,{rows:5,autoSize:{minRows:5,maxRows:12},placeholder:"در ØµÙØ±Øª ÙÛØ§Ø² ØªÙØ¶ÛØ Ú©ÙØªØ§Ù اÛÙ Ø§ÙØªØ®Ø§Ø± را بÙÙÛØ³Ûد..."})})}),(0,r.jsxs)("div",{className:"flex items-center gap-1 pt-1",children:[(0,r.jsx)(m,{title:"Ø§ÙØªÙØ§Ù Ø¨Ù Ø¨Ø§ÙØ§",disabled:0===o,onClick:()=>{t(o,o-1),queueMicrotask(()=>j(null,l.getFieldsValue(!0)))},children:"â"}),(0,r.jsx)(m,{title:"Ø§ÙØªÙا٠ب٠پاÛÛÙ",disabled:o>=u-1,onClick:()=>{t(o,o+1),queueMicrotask(()=>j(null,l.getFieldsValue(!0)))},children:"â"}),(0,r.jsx)(m,{title:"ØØ°Ù Ø§ÙØªØ®Ø§Ø±",tone:"danger",disabled:u<=1,onClick:()=>{g(f().filter((e,t)=>t!==o))},children:(0,r.jsx)(n.SU,{})})]})]}))},s.key)}),(0,r.jsx)(m,{tone:"success",onClick:()=>g([...f(),(0,x.JD)({image:"",title:"",description:""})]),title:"Ø§ÙØ²ÙØ¯Ù Ø§ÙØªØ®Ø§Ø±",children:(0,r.jsx)(n.JZ,{})})]})})}),(0,r.jsxs)(a.So,{title:"ÚÛØ¯Ù
اÙ",defaultOpen:!0,children:[(0,r.jsx)(a.xh,{label:"Ù
د٠ÙÙ
Ø§ÛØ´",children:(0,r.jsx)(i.lV.Item,{name:"layoutMode",noStyle:!0,children:(0,r.jsx)(a.Pl,{options:u})})}),(0,r.jsx)(a.xh,{label:"ÙØ§ØµÙ٠بÛ٠کارتâÙØ§",children:(0,r.jsx)(i.lV.Item,{name:"gap",noStyle:!0,children:(0,r.jsx)(a.UX,{min:0,max:64})})}),(0,r.jsxs)(a.Jg,{columns:3,children:[(0,r.jsx)(a.xh,{label:"Ù
ÙØ¨Ø§ÛÙ",children:(0,r.jsx)(i.lV.Item,{name:"columnsMobile",noStyle:!0,children:(0,r.jsx)(a.UX,{min:1,max:3})})}),(0,r.jsx)(a.xh,{label:"ØªØ¨ÙØª",children:(0,r.jsx)(i.lV.Item,{name:"columnsTablet",noStyle:!0,children:(0,r.jsx)(a.UX,{min:1,max:4})})}),(0,r.jsx)(a.xh,{label:"دسکتاپ",children:(0,r.jsx)(i.lV.Item,{name:"columnsDesktop",noStyle:!0,children:(0,r.jsx)(a.UX,{min:1,max:6})})})]}),(0,r.jsx)(p,{label:"تÙ
اÙ
عرض ØµÙØÙ Ø±Ø§ Ø¨Ú¯ÛØ±Ø¯",children:(0,r.jsx)(i.lV.Item,{name:"fullWidth",valuePropName:"checked",noStyle:!0,children:(0,r.jsx)(a.xk,{})})})]}),(0,r.jsxs)(a.So,{title:"تاÛÙ¾ÙگراÙÛ",defaultOpen:!0,children:[(0,r.jsx)(a.xh,{label:"ÙÙÙØª عÙÙØ§Ù",children:(0,r.jsx)(i.lV.Item,{name:"titleFontFamily",noStyle:!0,children:(0,r.jsx)(a.Pl,{options:h})})}),(0,r.jsx)(a.xh,{label:"ÙÙÙØª ØªÙØ¶ÛØØ§Øª",children:(0,r.jsx)(i.lV.Item,{name:"descriptionFontFamily",noStyle:!0,children:(0,r.jsx)(a.Pl,{options:h})})}),(0,r.jsxs)(a.Jg,{columns:2,children:[(0,r.jsx)(a.xh,{label:"Ø§ÙØ¯Ø§Ø²Ù عÙÙØ§Ù",children:(0,r.jsx)(i.lV.Item,{name:"titleFontSize",noStyle:!0,children:(0,r.jsx)(a.UX,{min:12,max:48})})}),(0,r.jsx)(a.xh,{label:"Ø§ÙØ¯Ø§Ø²Ù ØªÙØ¶ÛØØ§Øª",children:(0,r.jsx)(i.lV.Item,{name:"descriptionFontSize",noStyle:!0,children:(0,r.jsx)(a.UX,{min:10,max:32})})})]})]}),(0,r.jsxs)(a.So,{title:"رÙÚ¯âÙØ§",children:[(0,r.jsx)(a.xh,{label:"رÙÚ¯ عÙÙØ§Ù",children:(0,r.jsx)(i.lV.Item,{name:"titleColor",noStyle:!0,children:(0,r.jsx)(d.A,{allowCustomValue:!0})})}),(0,r.jsx)(a.xh,{label:"رÙÚ¯ ØªÙØ¶ÛØØ§Øª",children:(0,r.jsx)(i.lV.Item,{name:"descriptionColor",n
1oStyle:!0,children:(0,r.jsx)(d.A,{allowCustomValue:!0})})})]}),v.items?.length===0?(0,r.jsx)("div",{className:"border-t border-[var(--pc-panel-border)] px-1 py-2 font-yekan text-[10px] text-[var(--pc-panel-subtle)]",children:"ÙÙÙØ² Ø¢ÛØªÙ
Û Ø¨Ø±Ø§Û ØªØ§ÙØ§Ø± Ø§ÙØªØ®Ø§Ø±Ø§Øª ثبت ÙØ´Ø¯Ù است."}):null]})})}},25366:(e,t,l)=>{l.d(t,{q:()=>i});var r=l(29753),s=l(28509),a=class extends r.${constructor(e,t){super(e,t)}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,t){let{state:l}=e,r=super.createResult(e,t),{isFetching:a,isRefetching:n,isError:i,isRefetchError:o}=r,d=l.fetchMeta?.fetchMore?.direction,c=i&&"forward"===d,x=a&&"forward"===d,h=i&&"backward"===d,u=a&&"backward"===d;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,s.rB)(t,l.data),hasPreviousPage:(0,s.RQ)(t,l.data),isFetchNextPageError:c,isFetchingNextPage:x,isFetchPreviousPageError:h,isFetchingPreviousPage:u,isRefetchError:o&&!c&&!h,isRefetching:n&&!x&&!u}}},n=l(38764);function i(e,t){return(0,n.t)(e,a,t)}},55506:(e,t,l)=>{l.d(t,{A:()=>i});var r=l(95155),s=l(86588),a=l(60180),n=l(6576);function i({value:e,onChange:t,emptyText:l="ÙÙÙØ² تصÙÛØ±Û Ø§ÙØªØ®Ø§Ø¨ ÙØ´Ø¯Ù است.",previewClassName:o="h-44 w-full object-cover",fileFilter:d="image",allowedExtensions:c,accept:x,restrictionMessage:h}){return(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)(s.A,{multiselect:!1,filter:d,value:e||"",onChange:e=>t?.(String(e||"")),allowedExtensions:c,accept:x,restrictionMessage:h}),e?(0,r.jsxs)("div",{className:"group relative overflow-hidden rounded-2xl border border-slate-200 bg-slate-50 shadow-sm",children:[(0,r.jsx)("img",{src:e?(0,n.IB)(e):"",alt:"preview",className:o}),(0,r.jsx)("button",{type:"button",onClick:()=>t?.(""),className:"absolute left-3 top-3 z-20 flex h-10 w-10 items-center justify-center rounded-full bg-red-500 text-white shadow-lg transition hover:bg-red-600","aria-label":"ØØ°Ù تصÙÛØ±",children:(0,r.jsx)(a.SU,{})})]}):(0,r.jsx)("div",{className:"rounded-2xl border border-dashed border-slate-300 px-3 py-4 text-center text-xs text-slate-400",children:l})]})}}}]);
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.