1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[71859],{22054:(e,t,l)=>{l.r(t),l.d(t,{default:()=>h});var s=l(95155),a=l(12115),r=l(90346),d=l(60180),i=l(86588),n=l(80870),c=l(80283),o=l(91237);function h(){let e=(0,c.s0)(),t=(0,c.sr)(),l=e.selectedWidget,[h]=r.lV.useForm(),[p]=r.lV.useForm(),[x,m]=(0,a.useState)(null),[u,j]=(0,a.useState)(!1),f=(0,a.useMemo)(()=>(0,o.zG)(l?.defaultProps||void 0),[l]);if((0,a.useEffect)(()=>{l&&(h.resetFields(),h.setFieldsValue(f))},[h,f,l]),!l)return null;let g=e=>{let s=(0,o.zG)({...h.getFieldsValue(!0),...e});h.setFieldsValue(s),t.updateNode(l.id,{defaultProps:s})},b=async()=>{let e=await p.validateFields(),t=(0,o.pC)({...e,id:e.id,attachments:(e.attachmentPaths||[]).map(e=>String(e||"").trim()).filter(Boolean).map(e=>(0,o.jG)({title:e.split("/").filter(Boolean).pop()||"Ø³ÙØ¯",filePath:e}))}),l=[...f.items];null===x?l.push(t):l[x]=t,g({items:l}),j(!1),m(null),p.resetFields()};return(0,s.jsxs)(n.XR,{children:[(0,s.jsxs)(r.lV,{form:h,layout:"vertical",autoComplete:"off",onValuesChange:(e,t)=>
1g(t),children:[(0,s.jsxs)(n.So,{title:"ØªÙØ¸ÛÙ
ات Ú©ÙÛ",defaultOpen:!0,children:[(0,s.jsx)(n.xh,{label:"عÙÙØ§Ù ÙÛØ¬Øª",children:(0,s.jsx)(r.lV.Item,{name:"heading",noStyle:!0,children:(0,s.jsx)(r.pd,{})})}),(0,s.jsx)(n.xh,{label:"ØªÙØ¶ÛØ Ú©ÙØªØ§Ù",children:(0,s.jsx)(r.lV.Item,{name:"description",noStyle:!0,children:(0,s.jsx)(n.tt,{rows:3})})}),(0,s.jsx)(n.xh,{label:"ÙÛÙÚ© ØµÙØÙ Ø¯Ø§Ø®ÙÛ",children:(0,s.jsx)(r.lV.Item,{name:"pageLink",noStyle:!0,children:(0,s.jsx)(r.pd,{placeholder:"tenders",readOnly:!0})})}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-[10px] border border-[var(--pc-control-border)] bg-[var(--pc-control-bg)] px-3 py-2",children:[(0,s.jsx)("span",{className:"text-[10px] text-[var(--pc-panel-muted)]",children:"ÙÙ
Ø§ÛØ´ عÙÙØ§Ù ÙÛØ¬Øª"}),(0,s.jsx)(r.lV.Item,{name:"showHeading",valuePropName:"checked",noStyle:!0,children:(0,s.jsx)(r.dO,{})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-[10px] border border-[var(--pc-control-border)] bg-[var(--pc-control-bg)] px-3 py-2",children:[(0,s.jsx)("span",{className:"text-[10px] text-[var(--pc-panel-muted)]",children:"ÙÙ
Ø§ÛØ´ ØªÙØ¶ÛØ ÙÛØ¬Øª"}
1),(0,s.jsx)(r.lV.Item,{name:"showDescription",valuePropName:"checked",noStyle:!0,children:(0,s.jsx)(r.dO,{})})]})]}),(0,s.jsx)(n.So,{title:"Ø¢ÛØªÙ
âÙØ§Û Ù
Ø²Ø§ÛØ¯Ù Ù Ù
ÙØ§ÙصÙ",defaultOpen:!0,children:(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(r.$n,{type:"primary",icon:(0,s.jsx)(d.bW,{}),block:!0,onClick:()=>{m(null),p.resetFields(),p.setFieldsValue({attachmentPaths:[]}),j(!0)},children:"Ø§ÙØ²ÙØ¯Ù Ø¢ÛØªÙ
Ø¬Ø¯ÛØ¯"}),f.items.length?f.items.map((e,t)=>(0,s.jsxs)("div",{className:"rounded-[12px] border border-[var(--pc-control-border)] bg-[var(--pc-control-bg)] p-3",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>{m(t),p.setFieldsValue({...e,attachmentPaths:e.attachments.map(e=>e.filePath)}),j(!0)},className:"w-full text-right",children:[(0,s.jsx)("div",{className:"truncate text-[11px] font-bold text-[var(--pc-panel-text)]",children:e.title||`Ø¢ÛØªÙ
${t+1}`}),(0,s.jsxs)("div",{className:"mt-1 flex flex-wrap gap-1 text-[9px] text-[var(--pc-panel-muted)]",children:[e.callType?(0,s.jsx)("span",{className:"rounded-full bg-white/50 px-2 py-0.5",children:e.callType}):null,e.holdType?(0,s.jsx)("span",{className:"rounded-full bg-white/50 px-2 py-0.5",children:e.holdType}):null,e.suggestionDeadline?(0,s.jsx)("span",{className:"rounded-full bg-white/50 px-2 py-0.5",children:e.suggestionDeadline}):null]})]}),(0,s.jsx)("div",{className:"mt-2 flex justify-end",children:(0,s.jsx)(r.$n,{danger:!0,type:"text",size:"small",icon:(0,s.jsx)(d.SU,{}),onClick:()=>{g({items:f.items.filter((e,l)=>l!==t)})},children:"ØØ°Ù"})})]},e.id)):(0,s.jsx)("div",{className:"rounded-[12px] border border-dashed border-[var(--pc-control-border)] px-3 py-5 text-center text-[10px] text-[var(--pc-panel-muted)]",children:"ÙÙÙØ² Ø¢ÛØªÙ
Û Ø«Ø¨Øª ÙØ´Ø¯Ù است."})]})})]},l.id),(0,s.jsx)(r.aF,{title:null===x?"Ø§ÙØ²ÙØ¯Ù Ø¢ÛØªÙ
Ù
Ø²Ø§ÛØ¯Ù / Ù
ÙØ§ÙصÙ":"ÙÛØ±Ø§ÛØ´ Ø¢ÛØªÙ
Ù
Ø²Ø§ÛØ¯Ù / Ù
ÙØ§ÙصÙ",open:u,onCancel:()=>j(!1),onOk:b,okText:"Ø°Ø®ÛØ±Ù",cancelText:"Ø§ÙØµØ±Ø§Ù",width:760,destroyOnHidden:!1,className:"font-iran",children:(0,s.jsxs)(r.lV,{form:p,layout:"vertical",autoComplete:"off",children:[(0,s.jsx)(r.l
1V.Item,{name:"id",hidden:!0,children:(0,s.jsx)(r.pd,{})}),(0,s.jsx)(r.lV.Item,{name:"title",label:"عÙÙØ§Ù",rules:[{required:!0,message:"عÙÙØ§Ù Ø§ÙØ²Ø§Ù
Û Ø§Ø³Øª."}],children:(0,s.jsx)(r.pd,{})}),(0,s.jsx)(r.lV.Item,{name:"summary",label:"Ø®ÙØ§ØµÙ / ØªÙØ¶ÛØ",children:(0,s.jsx)(r.pd.TextArea,{rows:3})}),(0,s.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,s.jsx)(r.lV.Item,{name:"callType",label:"ÙÙØ¹ ÙØ±Ø§Ø®ÙاÙ",rules:[{required:!0,message:"ÙÙØ¹ ÙØ±Ø§Ø®Ùا٠را ÙØ§Ø±Ø¯ Ú©ÙÛØ¯."}],children:(0,s.jsx)(r.pd,{placeholder:"Ù
ÙØ§ÙØµÙ ÛØ§ Ù
Ø²Ø§ÛØ¯Ù"})}),(0,s.jsx)(r.lV.Item,{name:"holdType",label:"ÙÙØ¹ برگزارÛ",children:(0,s.jsx)(r.pd,{placeholder:"Ø¢ÙÙØ§ÛÙØ ØØ¶ÙØ±Û Ù..."})})]}),(0,s.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,s.jsx)(r.lV.Item,{name:"documentsDeadline",label:"Ù
ÙÙØª Ø¯Ø±ÛØ§Ùت Ø§Ø³ÙØ§Ø¯",children:(0,s.jsx)(r.pd,{placeholder:"Û°Û² اسÙÙØ¯ Û±Û´Û°Û´ | Û±Û´:ÛµÛ°"})}),(0,s.jsx)(r.lV.Item,{name:"suggestionDeadline",label:"Ù
ÙÙØª Ø§Ø±Ø³Ø§Ù Ù¾ÛØ´ÙÙØ§Ø¯",children:(0,s.jsx)(r.pd,{placeholder:"Û°Û² اسÙÙØ¯ Û±Û´Û°Û´ | Û±Û´:ÛµÛ°"})})]}),(0,s.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,s.jsx)(r.l
1V.Item,{name:"newspaperName",label:"ÙØ§Ù
Ø±ÙØ²ÙاÙ
Ù Ù
ÙØªØ´Ø±Ú©ÙÙØ¯Ù Ø¢Ú¯ÙÛ",children:(0,s.jsx)(r.pd,{})}),(0,s.jsx)(r.lV.Item,{name:"newspaperPublishedAt",label:"ØªØ§Ø±ÛØ® درج Ø¢Ú¯ÙÛ Ø¯Ø± Ø±ÙØ²ÙاÙ
Ù",children:(0,s.jsx)(r.pd,{placeholder:"Û±Û¸ بÙÙ
Ù Û±Û´Û°Û´ | Û°Û·:Û²Û°"})})]}),(0,s.jsx)(r.lV.Item,{name:"attachmentPaths",label:"Ø§Ø³ÙØ§Ø¯ Ù
ÙØ§Ùص٠/ Ù
Ø²Ø§ÛØ¯Ù",children:(0,s.jsx)(i.A,{multiselect:!0,filter:"all",showFilterSelector:!0})})]})})]})}},25366:(e,t,l)=>{l.d(t,{q:()=>i});var s=l(29753),a=l(28509),r=class extends s.${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,s=super.createResult(e,t),{isFetching:r,isRefetching:d,isError:i,isRefetchError:n}
1=s,c=l.fetchMeta?.fetchMore?.direction,o=i&&"forward"===c,h=r&&"forward"===c,p=i&&"backward"===c,x=r&&"backward"===c;return{...s,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,a.rB)(t,l.data),hasPreviousPage:(0,a.RQ)(t,l.data),isFetchNextPageError:o,isFetchingNextPage:h,isFetchPreviousPageError:p,isFetchingPreviousPage:x,isRefetchError:n&&!o&&!p,isRefetching:d&&!h&&!x}}},d=l(38764);function i(e,t){return(0,d.t)(e,r,t)}}}]);
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.