1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18849],{12931:(e,l,t)=>{t.d(l,{A:()=>c});var a=t(95155),n=t(90346),r=t(72635),s=t(22211),i=t(81951),o=t(12115);function c({value:e,onChange:l,compact:t,className:d,popupClassName:x}){let[m,h]=(0,o.useState)(e??""),[u,j]=(0,o.useState)(e??""),[b,p]=(0,o.useState)((e??"").trim()),v=(0,o.useRef)(null);(0,o.useEffect)(()=>{let l=e??"";h(l),j(l),p(l.trim())},[e]),(0,o.useEffect)(()=>(v.current&&clearTimeout(v.current),v.current=setTimeout(()=>p(m.trim()),300),()=>{v.current&&clearTimeout(v.current)}),[m]);let g=b||"home",{data:f,isLoading:y,isError:V}=s.f(g),S=(0,o.useMemo)(()=>(f?.icons??[]).map(e=>({value:e,label:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(r.In,{icon:e,className:"text-lg text-gray-700"}),(0,a.jsx)("span",{className:"truncate text-sm text-gray-800",children:e})]})})),[f]),I=u?.trim()&&u.trim()===m.trim(),C=(0,o.useCallback)(e=>{h(e),j(e),l?.(e)},[l]),P=(0,o.useCallback)(e=>{h(e),j(""),l?.(e)},[l]),k=(0,o.useMemo)(()=>y?(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 py-2",children:[(0,a.jsx)(n.tK,{size:"small"}),(0,a.jsx)("span",{className:"text-sm text-gray-500",children:"در ØØ§Ù جستجÙ..."})]}):V?(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,V,y]);return(0,a.jsx)(n.j9,{className:(0,i.cn)("w-full",t&&"pc-compact-icon-selector",d),popupClassName:x,dropdownStyle:t?{fontSize:10,padding:4}:void 0,size:t?"small":void 0,value:m,placeholder:"Ø¢ÛÚ©Ù٠را جستج٠کÙÛØ¯...",onChange:P,onSelect:C,options:S,filterOption:!1,notFoundContent:k,allowClear:!0,prefix:I?(0,a.jsx)(r.In,{icon:u,className:t?"text-[13px] text-gray-600":"text-lg text-gray-600"}):void 0})}},22211:(e,l,t)=>{t.d(l,{f:()=>i,z:()=>s});var a=t(21338),n=t(26708);let r="https://api.iconify.design";function s(e){return(0,n.I)({queryKey:["icon-collection",e],queryFn:async()=>(await a.A.get(`${r}/collection?prefix=${encodeURIComponent(e)}`)).data,enabled:e.trim().length>0,staleTime:18e5,retry:1})}function i(e){return(0,n.I)({queryKey:["icons",e],queryFn:async()=>(await a.A.get(`${r}/search?query=${encodeURIComponent(e)}`)).data,enabled:e.trim().length>0,staleTime:3e5,retry:1})}},25366:(e,l,t)=>{t.d(l,{q:()=>i});var a=t(29753),n=t(28509),r=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:r,isRefetching:s,isError:i,isRefetchError:o}=a,c=t.fetchMeta?.fetchMore?.direction,d=i&&"forward"===c,x=r&&"forward"===c,m=i&&"backward"===c,h=r&&"backward"===c;return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.rB)(l,t.data),hasPreviousPage:(0,n.RQ)(l,t.data),isFetchNextPageError:d,isFetchingNextPage:x,isFetchPreviousPageError:m,isFetchingPreviousPage:h,isRefetchError:o&&!d&&!m,isRefetching:s&&!x&&!h}}},s=t(38764);function i(e,l){return(0,s.t)(e,r,l)}},41936:(e,l,t)=>{t.r(l),t.d(l,{default:()=>V});var a=t(95155),n=t(12115),r=t(86588),s=t(81229),i=t(80870),o=t(12931),c=t(90346),d=t(80283),x=t(3591),m=t(16087);let h=[{value:"pill",label:"کپسÙÙÛ"},{value:"boxed",label:"کادرÛ"},{value:"underline",label:"خط Ø²ÛØ±"},{value:"minimal",label:"Ù
ÛÙÛÙ
اÙ"},{value:"segmented",label:"Ø¨Ø®Ø´âØ¨ÙØ¯ÛâØ´Ø¯Ù"},{value:"capsule",label:"ÙØ±ØµÛ ÙØ±Ù
"},{value:"line-top",label:"خط Ø¨Ø§ÙØ§"},{value:"framed",label:"ÙØ§Ø¨âدار"},{value:"soft",label:"ÙØ±Ù
Ù Ù
ØÙ"}],u=[{value:"stretch",label:"Ú©Ø´ÛØ¯Ù"},{value:"start",label:"ابتدا"},{value:"center",label:"ÙØ³Ø·"},{value:"end",label:"Ø§ÙØªÙا"}],j=[{value:"scroll",label:"اسکرÙ٠اÙÙÛ"},{value:"stack",label:"Ø²ÛØ± ÙÙ
"}
1],b=[{value:"font",label:"Ø¢ÛÚ©ÙÙ ÙÙÙØªÛ"},{value:"image",label:"تصÙÛØ± آپÙÙØ¯Û"}],p=[{value:400,label:"Ù
عÙ
ÙÙÛ 400"},{value:500,label:"Ù
ØªÙØ³Ø· 500"},{value:600,label:"ÙÛÙ
ÙâØ¶Ø®ÛÙ
600"},{value:700,label:"ضخÛÙ
700"}],v=[{label:"IranSans",value:"font-iran"},{label:"Yekan",value:"font-yekan"},{label:"Peyda",value:"font-peyda"}],g=[{label:"سازÙ
اÙ",value:"mdi:office-building-outline"},{label:"Ù
ÙØ·ÙÙ",value:"mdi:map-marker-multiple-outline"},{label:"Ù
Ø¯ÛØ±Ûت",value:"mdi:account-group-outline"},{label:"Ù¾ÛÙÙØ¯",value:"mdi:link-variant"},{label:"Ø§Ø·ÙØ§Ø¹ÛÙ",value:"mdi:bullhorn-outline"},{label:"رÙÛØ¯Ø§Ø¯",value:"mdi:calendar-star"}];function f({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 y({children:e,disabled:l,tone:t="default",onClick:n,title:r}){return(0,a.jsx)("button",{type:"button",disabled:l,title:r,onClick:n,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 V(){let e=(0,d.s0)(),l=(0,d.sr)(),t=e.selectedWidget,[V]=c.lV.useForm(),S=c.lV.useWatch([],V);if((0,n.useEffect)(()=>{if(!t)return;let e=(0,m.it)(t.defaultProps||m.A9);V.resetFields(),V.setFieldsValue(e)},[V,t]),!t)return null;let I=(0,m.it)({...t.defaultProps||{},...S||V.getFieldsValue(!0)}),C=(e,a)=>{let n=(0,m.it)(a);l.updateNode(t.id,{defaultProps:n,children:(0,m.W8)(t.children,n.items,t.id)})},P=()=>{queueMicrotask(()=>C(null,V.getFieldsValue(!0)))};return(0,a.jsx)(i.XR,{children:(0,a.jsxs)(c.lV,{form:V,layout:"vertical",size:"small",autoComplete:"off",onValuesChange:C,children:[(0,a.jsx)(i.So,{title:"تبâÙØ§",defaultOpen:!0,children:(0,a.jsx)(c.lV.List,{name:"items",children:(e,{add:l,remove:t,move:n})=>(0,a.jsxs)("div",{className:"space-y-1.5",children:[e.map((l,s)=>{var d,x;let h,u;return(0,a.jsx)(i.So,{title:`تب ${s+1} - ${String(I.items?.[s]?.title||"").trim()||"بدÙ٠عÙÙØ§Ù"}`,children:(d=l.name,x=e.length,u=(h=I.items?.[s]||(0,m.sJ)()).iconType||"font",(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)(c.lV.Item,{name:["items",d,"title"],noStyle:!0,children:(0,a.jsx)(i.zA,{placeholder:"Ù
Ø«ÙØ§ سازÙ
اÙâÙØ§",allowClear:!0})})}),(0,a.jsx)(i.xh,{label:"ÙÙØ¹ Ø¢ÛÚ©ÙÙ",children:(0,a.jsx)(c.lV.Item,{name:["items",d,"iconType"],noStyle:!0,children:(0,a.jsx)(i.Pl,{options:b})})}),"image"===u?(0,a.jsx)(i.xh,{label:"تصÙÛØ± تب",children:(0,a.jsx)(c.lV.Item,{name:["items",d,"image"],noStyle:!0,children:(0,a.jsx)("div",{className:"pc-tabs-file-selector text-[10px]",children:(0,a.jsx)(r.A,{multiselect:!1,filter:"image"})})})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.xh,{label:"Ø¢ÛÚ©ÙÙ Ø³ÙØ§Ø±Ø´Û",children:(0,a.jsx)(c.lV.Item,{name:["items",d,"icon"],noStyle:!0,children:(0,a.jsx)(o.A,{compact:!0,popupClassName:"pc-figma-select-dropdown"})})}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-1",children:g.map(e=>{let l=h.icon===e.value;return(0,a.jsx)("button",{type:"button",onClick:()=>{var l;return l=e.value,void(V.setFieldValue(["items",d,"icon"],l),P())},className:["min-h-6 rounded-[8px] border px-2 text-right font-yekan text-[9px] leading-4 transition",l?"border-emerald-500 bg-emerald-500/10 text-emerald-600":"border-[var(--pc-control-border)] bg-[var(--pc-control-bg)] text-[var(--pc-control-text)] hover:border-[var(--pc-control-hover-border)]"].join(" "),children:e.label},`${d}-${e.value}`)})})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1 pt-1",children:[(0,a.jsx)(y,{title:"Ø§ÙØªÙØ§Ù Ø¨Ù Ø¨Ø§ÙØ§",disabled:0===s,onClick:()=>{n(s,s-1),P()},children:"â"}),(0,a.jsx)(y,{title:"Ø§ÙØªÙا٠ب٠پاÛÛÙ",disabled:s>=x-1,onClick:()=>{n(s,s+1),P()},children:"â"}),(0,a.jsx)(y,{title:"ØØ°Ù تب",tone:"danger",disabled:x<=1,onClick:()=>{t(s),P()},children:"ØØ°Ù"})]})]}))},l.key)}),(0,a.jsx)(y,{tone:"success",onClick:()=>{l((0,m.sJ)()),P()},children:"+ Ø§ÙØ²Ùد٠تب"})]})})}),(0,a.jsx)(i.So,{title:"ÚÛØ¯Ù
اÙ",defaultOpen:!0,children:(0,a.jsxs)(i.Jg,{columns:1,children:[(0,a.jsx)(i.xh,{label:"Ù
د٠ÙÙ
Ø§ÛØ´",children:(0,a.jsx)(c.lV.Item,{name:"variant",noStyle:!0,children:(0,a.jsx)(i.Pl,{options:h})})}),(0,a.jsx)(i.xh,{label:"تراز",children:(0,a.jsx)(c.lV.Item,{name:"alignment",noStyle:!0,children:(0,a.jsx)(i.Pl,{options:u})})}),(0,a.jsx)(f,{label:"تÙ
اÙ
عرض باشد",children:(0,a.jsx)(c.lV.Item,{name:"fullWidth",valuePropName:"checked",noStyle:!0,children:(0,a.jsx)(i.xk,{})})}),(0,a.jsx)(i.xh,{label:"ØØ§Ùت Ù
ÙØ¨Ø§ÛÙ",children:(0,a.jsx)(c.lV.Item,{name:"mobileHeaderMode",noStyle:!0,children:(0,a.jsx)(i.Pl,{options:j})})}),(0,a.jsx)(i.xh,{label:"ÙØ§ØµÙ٠بÛ٠تبâÙØ§",children:(0,a.jsx)(c.lV.Item,{name:"gap",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:40})})}),(0,a.jsxs)(i.Jg,{columns:2,children:[(0,a.jsx)(i.xh,{label:"پدÛÙÚ¯ اÙÙÛ ÙÙØ§Ø±",children:(0,a.jsx)(c.lV.Item,{name:"tabBarPaddingX",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:48})})}),(0,a.jsx)(i.xh,{label:"پدÛÙÚ¯ عÙ
ÙØ¯Û ÙÙØ§Ø±",children:(0,a.jsx)(c.lV.Item,{name:"tabBarPaddingY",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:48})})})]}),(0,a.jsxs)(i.Jg,{columns:2,children:[(0,a.jsx)(i.xh,{label:"پدÛÙÚ¯ اÙÙÛ ØªØ¨",children:(0,a.jsx)(c.lV.Item,{name:"itemPaddingX",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:48})})}),(0,a.jsx)(i.xh,{label:"پدÛÙÚ¯ عÙ
ÙØ¯Û تب",children:(0,a.jsx)(c.lV.Item,{name:"itemPaddingY",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:48})})})]}),(0,a.jsx)(i.xh,{label:"ÙØ§ØµÙ٠آÛÚ©ÙÙ Ù Ù
تÙ",children:(0,a.jsx)(c.lV.Item,{name:"itemGap",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:24})})}),(0,a.jsx)(c.lV.Item,{name:"contentPadding",noStyle:!0,children:(0,a.jsx)(s.Ay,{label:"پدÛÙÚ¯ Ù
ØØªÙØ§Û ØªØ¨",placeholder:"24 0 0 0"})})]})}),(0,a.jsxs)(i.So,{title:"ÙÙØ§Ø± تبâÙØ§",children:[(0,a.jsx)(i.xh,{label:"رÙÚ¯ زÙ
ÛÙÙ ÙÙØ§Ø±",children:(0,a.jsx)(c.lV.Item,{name:"tabBarBackgroun
1dColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"رÙÚ¯ ØØ§Ø´ÛÙ ÙÙØ§Ø±",children:(0,a.jsx)(c.lV.Item,{name:"tabBarBorderColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"Ø®Ù
ÛØ¯Ú¯Û ÙÙØ§Ø±",children:(0,a.jsx)(c.lV.Item,{name:"tabBarBorderRadius",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:50})})})]}),(0,a.jsx)(i.So,{title:"Ø¸Ø§ÙØ± تبâÙØ§",children:(0,a.jsxs)(i.Jg,{columns:1,children:[(0,a.jsx)(i.xh,{label:"رÙÚ¯ Ù
ØªÙ ØºÛØ±ÙعاÙ",children:(0,a.jsx)(c.lV.Item,{name:"itemColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"رÙÚ¯ Ø¢ÛÚ©ÙÙ ØºÛØ±ÙعاÙ",children:(0,a.jsx)(c.lV.Item,{name:"itemIconColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"رÙÚ¯ Ù
ØªÙ ÙØ¹Ø§Ù",children:(0,a.jsx)(c.lV.Item,{name:"activeItemColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"رÙÚ¯ Ø¢ÛÚ©ÙÙ ÙØ¹Ø§Ù",children:(0,a.jsx)(c.lV.Item,{name:"activeItemIconColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"زÙ
ÛÙÙ ØºÛØ±ÙعاÙ",children:(0,a.jsx)(c.lV.Item,{name:"inactiveItemBackgroun
1dColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"زÙ
ÛÙÙ ÙØ¹Ø§Ù",children:(0,a.jsx)(c.lV.Item,{name:"activeItemBackgroundColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"ØØ§Ø´ÛÙ ØºÛØ±ÙعاÙ",children:(0,a.jsx)(c.lV.Item,{name:"inactiveItemBorderColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"ØØ§Ø´ÛÙ ÙØ¹Ø§Ù",children:(0,a.jsx)(c.lV.Item,{name:"activeItemBorderColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"Ø®Ù
ÛØ¯Ú¯Û ÙØ± تب",children:(0,a.jsx)(c.lV.Item,{name:"itemBorderRadius",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:40})})})]})}),(0,a.jsxs)(i.So,{title:"تاÛÙ¾ÙگراÙÛ",children:[(0,a.jsx)(i.xh,{label:"ÙÙÙØª تبâÙØ§",children:(0,a.jsx)(c.lV.Item,{name:"itemFontFamily",noStyle:!0,children:(0,a.jsx)(i.Pl,{options:v})})}),(0,a.jsxs)(i.Jg,{columns:2,children:[(0,a.jsx)(i.xh,{label:"Ø§ÙØ¯Ø§Ø²Ù ÙÙÙØª",children:(0,a.jsx)(c.lV.Item,{name:"itemFontSize",noStyle:!0,children:(0,a.jsx)(i.UX,{min:10,max:36})})}),(0,a.jsx)(i.xh,{label:"Ø§ÙØ¯Ø§Ø²Ù Ø¢ÛÚ©ÙÙ",children:(0,a.jsx)(c.lV.Item,{name:"iconSize",noStyle:!0,children:(0,a.jsx)(i.UX,{min:12,max:48})})})]}),(0,a.jsx)(i.xh,{label:"ضخاÙ
ت ÙÙÙØª",children:(0,a.jsx)(c.lV.Item,{name:"itemFontWeight",noStyle:!0,children:(0,a.jsx)(i.Pl,{options:p})})})]}),(0,a.jsxs)(i.So,{title:"Ù
ØØªÙØ§Û ØªØ¨",children:[(0,a.jsx)(i.xh,{label:"رÙÚ¯ زÙ
ÛÙÙ Ù
ØØªÙا",children:(0,a.jsx)(c.lV.Item,{name:"contentBackgroundColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"رÙÚ¯ ØØ§Ø´ÛÙ Ù
ØØªÙا",children:(0,a.jsx)(c.lV.Item,{name:"contentBorderColor",noStyle:!0,children:(0,a.jsx)(x.A,{allowCustomValue:!0})})}),(0,a.jsx)(i.xh,{label:"Ø®Ù
ÛØ¯Ú¯Û Ù
ØØªÙا",children:(0,a.jsx)(c.lV.Item,{name:"contentBorderRadius",noStyle:!0,children:(0,a.jsx)(i.UX,{min:0,max:40})})}),(0,a.jsx)(f,{label:"ساÛÙ ÙØ¹Ø§Ù باشد",children:(0,a.jsx)(c.lV.Item,{name:"contentShadow",valuePropName:"checked",noStyle:!0,children:(0,a.jsx)(i.xk,{})})})]})]},t.id)})}}}]);
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.