1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[45860],{12931:(e,l,n)=>{n.d(l,{A:()=>x});var a=n(95155),t=n(90346),s=n(72635),r=n(22211),i=n(81951),o=n(12115);function x({value:e,onChange:l,compact:n,className:c,popupClassName:d}){let[m,h]=(0,o.useState)(e??""),[u,j]=(0,o.useState)(e??""),[b,p]=(0,o.useState)((e??"").trim()),y=(0,o.useRef)(null);(0,o.useEffect)(()=>{let l=e??"";h(l),j(l),p(l.trim())},[e]),(0,o.useEffect)(()=>(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>p(m.trim()),300),()=>{y.current&&clearTimeout(y.current)}),[m]);let v=b||"home",{data:S,isLoading:g,isError:I}=r.f(v),f=(0,o.useMemo)(()=>(S?.icons??[]).map(e=>({value:e,label:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(s.In,{icon:e,className:"text-lg text-gray-700"}),(0,a.jsx)("span",{className:"truncate text-sm text-gray-800",children:e})]})})),[S]),V=u?.trim()&&u.trim()===m.trim(),A=(0,o.useCallback)(e=>{h(e),j(e),l?.(e)},[l]),N=(0,o.useCallback)(e=>{h(e),j(""),l?.(e)},[l]),C=(0,o.useMemo)(()=>g?(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 py-2",children:[(0,a.jsx)(t.tK,{size:"small"}),(0,a.jsx)("span",{className:"text-sm text-gray-500",children:"در ØØ§Ù جستجÙ..."})]}):I?(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,I,g]);return(0,a.jsx)(t.j9,{className:(0,i.cn)("w-full",n&&"pc-compact-icon-selector",c),popupClassName:d,dropdownStyle:n?{fontSize:10,padding:4}:void 0,size:n?"small":void 0,value:m,placeholder:"Ø¢ÛÚ©Ù٠را جستج٠کÙÛØ¯...",onChange:N,onSelect:A,options:f,filterOption:!1,notFoundContent:C,allowClear:!0,prefix:V?(0,a.jsx)(s.In,{icon:u,className:n?"text-[13px] text-gray-600":"text-lg text-gray-600"}):void 0})}},22211:(e,l,n)=>{n.d(l,{f:()=>i,z:()=>r});var a=n(21338),t=n(26708);let s="https://api.iconify.design";function r(e){return(0,t.I)({queryKey:["icon-collection",e],queryFn:async()=>(await a.A.get(`${s}/collection?prefix=${encodeURIComponent(e)}`)).data,enabled:e.trim().length>0,staleTime:18e5,retry:1})}function i(e){return(0,t.I)({queryKey:["icons",e],queryFn:async()=>(await a.A.get(`${s}/search?query=${encodeURIComponent(e)}`)).data,enabled:e.trim().length>0,staleTime:3e5,retry:1})}},45860:(e,l,n)=>{n.r(l),n.d(l,{default:()=>N});var a=n(95155),t=n(12115),s=n(81229),r=n(80870),i=n(12931),o=n(90346),x=n(80283),c=n(3591),d=n(83399),m=n(48392);let h=[{value:m.VQ.TEXT,label:"Ù
تÙÛ"},{value:m.VQ.LINK,label:"ÙÛÙÚ©"},{value:m.VQ.OUTLINED,label:"Ø¯ÙØ±Ø®Ø·"},{value:m.VQ.FILL,label:"پر شدÙ"},{value:m.VQ.ROUNDED,label:"گرد"}],u=[{value:m.RV.START,label:"ابتدا"},{value:m.RV.CENTER,label:"ÙØ³Ø·"},{value:m.RV.END,label:"Ø§ÙØªÙا"}],j=[{value:m.iw.SELF,label:"ÙÙ
ÛÙ ØµÙØÙ"},{value:m.iw.BLANK,label:"تب Ø¬Ø¯ÛØ¯"},{value:m.iw.PARENT,label:"ÙØ±ÛÙ
ÙØ§Ùد"},{value:m.iw.TOP,label:"Ø¨Ø§ÙØ§ØªØ±ÛÙ ÙØ±ÛÙ
"}],b=[{value:m.cf.SOLID,label:"ÛکپارÚÙ"},{value:m.cf.DASHED,label:"خط ÚÛÙ"},{value:m.cf.DOTTED,label:"ÙÙØ·Ù ÚÛÙ"}],p=[{value:m.eE.NORMAL,label:"Ù
عÙ
ÙÙÛ"},{value:m.eE.MEDIUM,label:"Ù
ØªÙØ³Ø·"},{value:m.eE.SEMIBOLD,label:"ÙÛÙ
٠ضخÛÙ
"},{value:m.eE.BOLD,label:"ضخÛÙ
"}],y=[{label:"IranSans",value:"font-iran"},{label:"Yekan",value:"font-yekan"},{label:"Peyda",value:"font-peyda"}],v=[{value:"none",label:"بدÙ٠اÙÛÙ
ÛØ´Ù"},{value:"pulse",label:"تپش"},{value:"shake",label:"ÙØ±Ø²Ø´"},{value:"bounce",label:"پرش"}],S=[{label:"Ú©ÙÚÚ©",value:m.mQ.SMALL},{label:"Ù
ØªÙØ³Ø·",value:m.mQ.MIDDLE},{label:"بزرگ",value:m.mQ.LARGE}],g=[{label:"Ø®ÙØ¯Ú©Ø§Ø±",value:m.zm.AUTO},{label:"Ø§Ø¨ØªØ¯Ø§Û Ù
تÙ",value:m.zm.START},{label:"Ø§ÙØªÙØ§Û Ù
تÙ",value:m.zm.END}],I=[{value:"noopener",label:"noopener"},{value:"noreferrer",label:"noreferrer"},{value:"nofollow",label:"nofollow"},{value:"sponsored",label:"sponsored"}],f=[{value:"button",label:"دکÙ
Ù"},{value:"submit",label:"Ø§Ø±Ø³Ø§Ù ÙØ±Ù
"},{value:"reset",label:"Ø¨Ø§Ø²ÙØ´Ø§ÙÛ ÙØ±Ù
"}];
1function V(e,l){let n=Number(e||0),a=Number(l||0);return n||a?n===a?`${n}px`:`${n}px ${a}px`:""}function A(e,l){let n={...l,...e||{}};return{...n,padding:n.padding??V(n.paddingY,n.paddingX),margin:n.margin??V(n.marginY,n.marginX)}}function N(){let e=(0,x.sr)(),l=(0,x.s0)(),n=l.selectedWidget,[V]=o.lV.useForm(),[N,C]=(0,t.useState)(!1),T=(0,m.Rc)(l.theme||void 0),E=(0,t.useCallback)(()=>{if(!n)return;let e=n.defaultProps||{};V.setFieldsValue(A(e,T)),C(!0)},[n,V,T]);(0,t.useEffect)(()=>{E()},[E]);let w=(0,t.useCallback)((l,a)=>{if(!n||!N)return;let t=void 0!==l.buttonType?A({...a,...m.ff[a.buttonType]||{},buttonType:a.buttonType},T):a;void 0!==l.buttonType&&V.setFieldsValue(t),e.updateNode(n.id,{defaultProps:t})},[n,e,N,T,V]);return n?(0,a.jsx)(r.XR,{children:(0,a.jsxs)(o.lV,{form:V,layout:"vertical",size:"middle",autoComplete:"off",onValuesChange:w,children:[(0,a.jsxs)(r.So,{title:"Ù
ت٠٠ساختار",defaultOpen:!0,children:[(0,a.jsxs)(r.Jg,{columns:1,children:[(0,a.jsx)(r.xh,{label:"ÙÙØ¹ دکÙ
Ù",children:(0,a.jsx)(o.lV.Item,{name:"buttonType",rules:[{required:!0,message:"ÙÙØ¹ دکÙ
٠را Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯."}],noStyle:!0,children:(0,a.jsx)(r.Pl,{options:[...h],placeholder:"Ø§ÙØªØ®Ø§Ø¨ ÙÙØ¹"})})}),(0,a.jsx)(r.xh,{label:"Ø§ÙØ¯Ø§Ø²Ù",children:(0,a.jsx)(o.lV.Item,{name:"size",noStyle:!0,children:(0,a.jsx)(r.Pl,{options:[...S]})})}),(0,a.jsx)(r.xh,{label:"Ù
ت٠دکÙ
Ù",children:(0,a.jsx)(o.lV.Item,{name:"text",rules:[{required:!0,message:"Ù
ت٠دکÙ
٠را ÙØ§Ø±Ø¯ Ú©ÙÛØ¯."}],noStyle:!0,children:(0,a.jsx)(r.zA,{placeholder:"Ù
Ø«ÙØ§Ù Ù
Ø´Ø§ÙØ¯Ù Ø¬Ø²Ø¦ÛØ§Øª",allowClear:!0})})})]}),(0,a.jsx)(r.RZ,{label:"عرض کاÙ
Ù",children:(0,a.jsx)(o.lV.Item,{name:"fullWidth",valuePropName:"checked",noStyle:!0,children:(0,a.jsx)(r.xk,{})})}),(0,a.jsx)(r.xh,{label:"ÙÙØ¹ HTML",children:(0,a.jsx)(o.lV.Item,{name:"htmlType",noStyle:!0,children:(0,a.jsx)(r.Pl,{options:[...f]})})})]}),(0,a.jsx)(r.So,{title:"تاÛÙ¾ÙگراÙÛ",children:(0,a.jsxs)(r.Jg,{columns:1,children:[(0,a.jsx)(r.xh,{label:"ÙÙÙØª",children:(0,a.jsx)(o.lV.Item,{name:"fontFamily",noStyle:!0,children:(0,a.jsx)(r.Pl,{options:[...y]})})}),(0,a.jsx)(r.xh,{label:"ÙØ²Ù ÙÙÙØª",children:(0,a.jsx)(o.lV.Item,{name:"fontWeight",noStyle:!0,children:(0,a.jsx)(r.Pl,{options:[...p]})})}),(0,a.jsx)(r.xh,{label:"Ø§ÙØ¯Ø§Ø²Ù ÙÙÙØª",children:(0,a.jsx)(o.lV.Item,{name:"fontSize",noStyle:!0,children:(0,a.jsx)(r.UX,{min:10,max:72})})}),(0,a.jsx)(r.xh,{label:"تراز Ù
ØØªÙا",children:(0,a.jsx)(o.lV.Item,{name:"textAlign",noStyle:!0,children:(0,a.jsx)(r.Pl,{options:[...u]})})})]})}),(0,a.jsx)(r.So,{title:"رÙÚ¯âÙØ§",children:(0,a.jsxs)(r.Jg,{columns:1,children:[(0,a.jsx)(r.xh,{label:"Ù¾Ø³âØ²Ù
ÛÙÙ",children:(0,a.jsx)(o.lV.Item,{name:"backgroundColor",noStyle:!0,children:(0,a.jsx)(c.A,{})})}),(0,a.jsx)(r.xh,{label:"Ù
تÙ",children:(0,a.jsx)(o.lV.Item,{name:"textColor",noStyle:!0,children:(0,a.jsx)(c.A,{})})}),(0,a.jsx)(r.xh,{label:"کادر",children:(0,a.jsx)(o.lV.Item,{name:"borderColor",noStyle:!0,children:(0,a.jsx)(c.A,{})})}),(0,a.jsx)(r.xh,{label:"ساÛÙ",children:(0,a.jsx)(o.lV.Item,{name:"shadowColor",noStyle:!0,children:(0,a.jsx)(c.A,{})})})]})}),(0,a.jsxs)(r.So,{title:"ÙØ§ØµÙ٠٠کادر",children:[(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(o.lV.Item,{name:"padding",noStyle:!0,children:(0,a.jsx)(s.Ay,{label:"پدÛÙÚ¯",placeholder:"0"})}),(0,a.jsx)(o.lV.Item,{name:"margin",noStyle:!0,children:(0,a.jsx)(s.Ay,{label:"Ù
ارجÛÙ",placeholder:"0"})}),(0,a.jsx)(o.lV.Item,{name:"borderRadius",noStyle:!0,children:(0,a.jsx)(s.Ay,{label:"Ú¯Ø±Ø¯Û Ú¯ÙØ´Ù",mode:"corners",placeholder:"0",numericOutputWhenUniform:!0})})]}),(0,a.jsxs)(r.Jg,{columns:1,children:[(0,a.jsx)(r.xh,{label:"عرض کادر",children:(0,a.jsx)(o.lV.Item,{name:"borderWidth",noStyle:!0,children:(0,a.jsx)(r.UX,{min:0,max:20})})}),(0,a.jsx)(r.xh,{label:"ÙÙØ¹ کادر",children:(0,a.jsx)(o.lV.Item,{name:"borderStyle",noStyle:!0,children:(0,a.jsx)(r.Pl,{options:[...b]})})}),(0,a.jsx)(r.xh,{label:"ساÛÙ",children:(0,a.jsx)(o.lV.Item,{name:"shadow",noStyle:!0,children:(0,a.jsx)(r.zA,{dir:"ltr",placeholder:"0 2px 8px rgba(0,0,0,0.15)",allowClear:!0})})})]})]}),(0,a.jsxs)(r.So,{title:"Ø¢ÛÚ©Ù",children:[(0,a.jsx)(r.xh,{label:"Ø¢ÛÚ©Ù",children:(0,a.jsx)(o.lV.Item,{name:"icon",noStyle:!0,children:(0,a.jsx)(i.A,{compact:!0,popupClassName:"pc-figma-select-dropdown"})})}),(0,a.jsxs)(r.Jg,{columns:1,children:[(0,a.jsx)(r.xh,{label:"Ø§ÙØ¯Ø§Ø²Ù",children:(0,a.jsx)(o.lV.Item,{name:"iconSize",noStyle:!0,children:(0,a.jsx)(r.UX,{min:12,max:48})})}),(0,a.jsx)(r.xh,{label:"رÙÚ¯",children:(0,a.jsx)(o.lV.Item,{name:"iconColor",n
1oStyle:!0,children:(0,a.jsx)(c.A,{})})}),(0,a.jsx)(r.xh,{label:"جاÛگاÙ",children:(0,a.jsx)(o.lV.Item,{name:"positionType",noStyle:!0,children:(0,a.jsx)(r.Pl,{options:[...g]})})})]})]}),(0,a.jsxs)(r.So,{title:"ÙÛÙÚ©",children:[(0,a.jsx)(r.xh,{label:"آدرس ÙÛÙÚ©",children:(0,a.jsx)(o.lV.Item,{name:"href",noStyle:!0,children:(0,a.jsx)(d.A,{placeholder:"/about-us ÛØ§ https://example.com"})})}),(0,a.jsxs)(r.Jg,{columns:1,children:[(0,a.jsx)(r.xh,{label:"باز شدÙ",children:(0,a.jsx)(o.lV.Item,{name:"target",noStyle:!0,children:(0,a.jsx)(r.Pl,{options:[...j]})})}),(0,a.jsx)(r.xh,{label:"Rel",children:(0,a.jsx)(o.lV.Item,{name:"rel",noStyle:!0,children:(0,a.jsx)(r.Pl,{mode:"multiple",options:[...I],allowClear:!0})})})]}),(0,a.jsx)(r.RZ,{label:"Ø²ÛØ±Ø®Ø·",children:(0,a.jsx)(o.lV.Item,{name:"enableUnderline",valuePropName:"checked",noStyle:!0,children:(0,a.jsx)(r.xk,{})})})]}),(0,a.jsxs)(r.So,{title:"ÙØ§Ùر ٠اÙÛÙ
ÛØ´Ù",children:[(0,a.jsxs)(r.Jg,{columns:1,children:[(0,a.jsx)(r.xh,{label:"Ù¾Ø³âØ²Ù
ÛÙÙ ÙØ§Ùر",children:(0,a.jsx)(o.lV.Item,{name:"hoverBackgroundColor",noStyle:!0,children:(0,a.jsx)(c.A,{})})}),(0,a.jsx)(r.xh,{label:"Ù
ØªÙ ÙØ§Ùر",children:(0,a.jsx)(o.lV.Item,{name:"hoverTextColor",noStyle:!0,children:(0,a.jsx)(c.A,{})})}),(0,a.jsx)(r.xh,{label:"کادر ÙØ§Ùر",children:(0,a.jsx)(o.lV.Item,{name:"hoverBorderColor",noStyle:!0,children:(0,a.jsx)(c.A,{})})}),(0,a.jsx)(r.xh,{label:"Ù
ÙÛØ§Ø³ ÙØ§Ùر",children:(0,a.jsx)(o.lV.Item,{name:"hoverScale",noStyle:!0,children:(0,a.jsx)(r.UX,{min:.8,max:1.2,step:.05})})})]}),(0,a.jsx)(r.xh,{label:"ساÛÙ ÙØ§Ùر",children:(0,a.jsx)(o.lV.Item,{name:"hoverShadow",noStyle:!0,children:(0,a.jsx)(r.zA,{dir:"ltr",placeholder:"0 4px 12px rgba(0,0,0,0.2)",allowClear:!0})})}),(0,a.jsxs)(r.Jg,{columns:1,children:[(0,a.jsx)(r.xh,{label:"ÙÙØ¹ اÙÛÙ
ÛØ´Ù",children:(0,a.jsx)(o.lV.Item,{name:"animationType",noStyle:!0,children:(0,a.jsx)(r.Pl,{options:[...v]})})}),(0,a.jsx)(r.xh,{label:"Ù
دت اÙÛÙ
ÛØ´Ù",children:(0,a.jsx)(o.lV.Item,{name:"animationDuration",noStyle:!0,children:(0,a.jsx)(r.UX,{min:100,max:2e3,step:100})})})]})]}),(0,a.jsxs)(r.So,{title:"ÙØ¶Ø¹Ûت ٠دسترسÛ",children:[(0,a.jsx)(r.RZ,{label:"ØºÛØ±ÙعاÙ",children:(0,a.jsx)(o.lV.Item,{name:"disabled",valuePropName:"checked",noStyle:!0,children:(0,a.jsx)(r.xk,{})})}),(0,a.jsx)(r.RZ,{label:"در ØØ§Ù بارگذارÛ",children:(0,a.jsx)(o.lV.Item,{name:"loading",valuePropName:"checked",noStyle:!0,children:(0,a.jsx)(r.xk,{})})}),(0,a.jsx)(r.xh,{label:"Ø¨Ø±ÚØ³Ø¨ دسترسÛ",children:(0,a.jsx)(o.lV.Item,{name:"ariaLabel",noStyle:!0,children:(0,a.jsx)(r.zA,{placeholder:"ØªÙØ¶ÛØ Ø¨Ø±Ø§Û ØµÙØÙâØ®ÙØ§ÙâÙØ§",allowClear:!0})})}),(0,a.jsxs)(r.Jg,{columns:1,children:[(0,a.jsx)(r.xh,{label:"عÙÙØ§Ù راÙÙÙ
ا",children:(0,a.jsx)(o.lV.Item,{name:"title",noStyle:!0,children:(0,a.jsx)(r.zA,{placeholder:"Ù
ت٠ÙÙگاÙ
ÙØ±Ø§Ø± Ú¯Ø±ÙØªÙ ÙØ´Ø§Ùگر",allowClear:!0})})}),(0,a.jsx)(r.xh,{label:"ØªØ±ØªÛØ¨ تب",children:(0,a.jsx)(o.lV.Item,{name:"tabIndex",noStyle:!0,children:(0,a.jsx)(r.UX,{min:-1,max:9999})})})]})]})]})}):(0,a.jsx)(r.XR,{children:(0,a.jsx)("div",{className:"p-3 text-center font-yekan text-[10px] text-[var(--pc-panel-subtle)]",children:"ÛÚ© دکÙ
٠را Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯"})})}},83399:(e,l,n)=>{n.d(l,{A:()=>i});var a=n(95155),t=n(12115),s=n(80283),r=n(1789);function i({value:e,onChange:l,direction:n="ltr",placeholder:o="ÙÛÙÚ©",disabled:x=!1,languageId:c}){let d=(0,s.sr)(e=>e.pageProperties),m=(0,t.useMemo)(()=>c||d?.languageId||d?.language?.id||void 0,[c,d?.language?.id,d?.languageId]);return(0,a.jsx)(r.A,{value:e,onChange:e=>l?.(e),direction:n,placeholder:o,disabled:x,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.