PageSourceSearch

http://behmalt.com/_next/static/chunks/71859.d28ed9b0073ec858.js

js behmalt.com collected 2026-10-02 23:54:41 UTC 7,300 bytes, 1 lines download raw bytes

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.