PageSourceSearch

http://behmalt.com/_next/static/chunks/54585.873d90671acbc46b.js

js behmalt.com collected 2026-10-02 23:54:23 UTC 13,565 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54585],{25366:(e,t,l)=>{l.d(t,{q:()=>o});var r=l(29753),i=l(28509),n=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:n,isRefetching:s,isError:o,isRefetchError:a}=r,d=l.fetchMeta?.fetchMore?.direction,c=o&&"forward"===d,x=n&&"forward"===d,h=o&&"backward"===d,u=n&&"backward"===d;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,i.rB)(t,l.data),hasPreviousPage:(0,i.RQ)(t,l.data),isFetchNextPageError:c,isFetchingNextPage:x,isFetchPreviousPageError:h,isFetchingPreviousPage:u,isRefetchError:a&&!c&&!h,isRefetching:s&&!x&&!u}}},s=l(38764);function o(e,t){return(0,s.t)(e,n,t)}},55135:(e,t,l)=>{l.d(t,{Z:()=>r,c:()=>i});let r={slug:"fa",formId:void 0,breadcrumbTitle:void 0,headerDescription:void 0,submitText:void 0,confirmInformationText:void 0,successText:void 0,logoSrc:"",logoWidth:80,logoHeight:80,cardBorderRadius:30,submitBorderRadius:16,titleFontFamily:"font-iran",descriptionFontFamily:"font-yekan",labelFontFamily:"font-iran",inputFontFamily:"font-yekan",helpTextFontFamily:"font-yekan",submitFontFamily:"font-iran",successFontFamily:"font-yekan",titleFontSize:28,descriptionFontSize:14,labelFontSize:14,inputFontSize:14,helpTextFontSize:12,submitFontSize:14,successFontSize:12,sectionBackgroundColor:"",cardBackgroundColor:"",panelBorderColor:"",titleColor:"",descriptionColor:"",labelColor:"",inputTextColor:"",inputBackgroundColor:"",inputBorderColor:"",helpTextColor:"",successTextColor:"",submitTextColor:"",submitBackgroundColor:""};function i(e){return{...r,...e||{},slug:String(e?.slug||r.slug||"fa").trim()||"fa",submitText:String(e?.submitText??r.submitText??"").trim()||void 0,confirmInformationText:String(e?.confirmInformationText??r.confirmInformationText??"").trim()||void 0,successText:String(e?.successText??r.successText??"").trim()||void 0,logoSrc:String(e?.logoSrc??r.logoSrc??"").trim(),logoWidth:Number(e?.logoWidth??r.logoWidth??80),logoHeight:Number(e?.logoHeight??r.logoHeight??80),cardBorderRadius:Number(e?.cardBorderRadius??r.cardBorderRadius??30),submitBorderRadius:Number(e?.submitBorderRadius??r.submitBorderRadius??16),titleFontSize:Number(e?.titleFontSize??r.titleFontSize??28),descriptionFontSize:Number(e?.descriptionFontSize??r.descriptionFontSize??14),labelFontSize:Number(e?.labelFontSize??r.labelFontSize??14),inputFontSize:Number(e?.inputFontSize??r.inputFontSize??14),helpTextFontSize:Number(e?.helpTextFontSize??r.helpTextFontSize??12),submitFontSize:Number(e?.submitFontSize??r.submitFontSize??14),successFontSize:Number(e?.successFontSize??r.successFontSize??12)}}},55506:(e,t,l)=>{l.d(t,{A:()=>o});var r=l(95155),i=l(86588),n=l(60180),s=l(6576);function o({value:e,onChange:t,emptyText:l="هنوز تصویری انتخاب نشده است.",previewClassName:a="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)(i.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,s.IB)(e):"",alt:"preview",className:a}),(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)(n.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})]})}},66680:(e,t,l)=>{l.r(t),l.d(t,{default:()=>f});var r=l(95155),i=l(12115),n=l(90346),s=l(22356),o=l(80283),a=l(15446),d=l(80870),c=l(89379),x=l(3591),h=l(55506),u=l(55135);let m=[{label:"IranSans",value:"font-iran"},{label:"Yekan",value:"font-yekan"},{label:"Peyda",value:"font-peyda"}];function j(e){return String(e?.id||e?.Id||e?._id||"")}function b(e){if(!e)return[];if(Array.isArray(e))return e;if("object"!=typeof e)return[];if(Array.isArray(e.datas))return e.datas;if(Array.isArray(e.data))return e.data;if(Array.isArray(e.items))return e.items;let t=e.data;if(t&&"object"==typeof t){if(Array.isArray(t.datas))return t.datas;if(Array.isArray(t.data))return t.data;if(Array.isArray(t.items))return t.items}return[]}function f(){let e=(0,o.sr)(),t=(0,o.s0)().selectedWidget,[l]=n.lV.useForm(),f=n.lV.useWatch([],l),[S,g]=(0,i.useState)([]),[y,p]=(0,i.useState)([]),[F,I]=(0,i.useState)(!1),V=(0,i.useMemo)(()=>{let l=(0,u.c)(t?.defaultProps||{});return l.slug||(l.slug=e.pageProperties?.language?.slug||"fa"),l},[e.pageProperties?.language?.slug,t]);(0,i.useEffect)(()=>{t&&(l.resetFields(),l.setFieldsValue(V))},[l,V,t]),(0,i.useEffect)(()=>{let e=!0;return(async()=>{try{let t=await s.FH.get("/home/GetLanguagesAll");if(!e)return;g(Array.isArray(t.data)?t.data:[])}catch{if(!e)return;g([])}})(),()=>{e=!1}},[]);let A=n.lV.useWatch("slug",l);if((0,i.useEffect)(()=>{let e=!0;return(async()=>
1{if(!A)return p([]);I(!0);try{let t=await s.FH.get(`/form/GetAllBySlug/${A}`),r=b(t.data);if(!r.length){let e,t=await s.FH.get("/form/GetAll"),l=b(t.data),i=(e=S.find(e=>String(e.slug||e.code||"")===String(A)),e?.id?String(e.id):void 0);r=i?l.filter(e=>String(e?.languageId||e?.LanguageId||"")===i):l}if(!e)return;p(Array.isArray(r)?r:[]);let i=l.getFieldValue("formId");i&&(r.some(e=>j(e)===String(i))||l.setFieldValue("formId",void 0))}catch{if(!e)return;p([])}finally{e&&I(!1)}})(),()=>{e=!1}},[l,S,A]),!t)return null;let z=(l,r)=>{e.updateNode(t.id,{defaultProps:(0,u.c)(r)})},C=y.map(e=>({value:j(e),label:String(e?.title||e?.Title||e?.name||"—")})).filter(e=>e.value),v=(0,u.c)({...u.Z,...t.defaultProps||{},...f||l.getFieldsValue(!0)});return(0,r.jsx)(d.XR,{children:(0,r.jsxs)(n.lV,{form:l,layout:"vertical",size:"small",autoComplete:"off",onValuesChange:z,children:[(0,r.jsxs)(d.So,{title:"اتصال فرم",defaultOpen:!0,children:[(0,r.jsx)(d.xh,{label:"زبان فرم‌ها",children:(0,r.jsx)(n.lV.Item,{name:"slug",noStyle:!0,children:(0,r.jsx)(a.A,{returnType:"slug"})})}),(0,r.jsx)(d.xh,{label:"انتخاب فرم",children:(0,r.jsx)(n.lV.Item,{name:"formId",noStyle:!0,rules:[{required:!0}],children:(0,r.jsx)(c.A,{placeholder:F?"در حال بارگذاری...":"یک فرم انتخاب کنید",loading:F,options:C,showSearch:!0,optionFilterProp:"label",notFoundContent:"فرمی یافت نشد"})})})]}),(0,r.jsxs)(d.So,{title:"متن‌ها",children:[(0,r.jsx)(d.xh,{label:"عنوان صفحه",children:(0,r.jsx)(n.lV.Item,{name:"breadcrumbTitle",noStyle:!0,children:(0,r.jsx)(d.zA,{placeholder:"مثلاً فرم همکاری",allowClear:!0})})}),(0,r.jsx)(d.xh,{label:"توضیحات هدر",children:(0,r.jsx)(n.lV.Item,{name:"headerDescription",noStyle:!0,children:(0,r.jsx)(d.zA,{placeholder:"توضیح کوتاه بالای فرم",allowClear:!0})})}),(0,r.jsx)(d.xh,{label:"متن دکمه ارسال",children:(0,r.jsx)(n.lV.Item,{name:"submitText",noStyle:!0,children:(0,r.jsx)(d.zA,{placeholder:"مثلاً ارسال فرم",allowClear:!0})})}),(0,r.jsx)(d.xh,{label:"متن تایید صحت اطلاعات",children:(0,r.jsx)(n.lV.Item,{name:"confirmInformationText",noStyle:!0,children:(0,r.jsx)(d.zA,{placeholder:"مثلاً صحت اطلاعات را تایید می‌کنم.",allowClear:!0})})}),(0,r.jsx)(d.xh,{label:"متن پیام پایانی",children:(0,r.jsx)(n.lV.Item,{name:"successText",noStyle:!0,children:(0,r.jsx)(d.zA,{placeholder:"مثلاً پس از بررسی با شما تماس می‌گیریم",allowClear:!0})})})]}),(0,r.jsxs)(d.So,{title:"لوگو",children:[(0,r.jsx)(d.xh,{label:"تصویر لوگو",children:(0,r.jsx)(h.A,{value:v.logoSrc,onChange:e=>{l.setFieldValue("logoSrc",e),z(null,{...l.getFieldsValue(!0),logoSrc:e})},emptyText:"هنوز لوگویی انتخاب نشده است.",previewClassName:"h-28 w-full object-contain bg-transparent p-3"})}),(0,r.jsx)(d.xh,{label:"عرض لوگو",children:(0,r.jsx)(n.lV.Item,{name:"logoWidth",noStyle:!0,children:(0,r.jsx)(d.UX,{min:20,max:320})})}),(0,r.jsx)(d.xh,{label:"ارتفاع لوگو",children:(0,r.jsx)(n.lV.Item,{name:"logoHeight",noStyle:!0,children:(0,r.jsx)(d.UX,{min:20,max:320})})})]}),(0,r.jsxs)(d.So,{title:"تایپوگرافی",children:[(0,r.jsx)(d.xh,{label:"فونت عنوان",children:(0,r.jsx)(n.lV.Item,{name:"titleFontFamily",noStyle:!0,children:(0,r.jsx)(d.Pl,{options:m})})}),(0,r.jsx)(d.xh,{label:"اندازه عنوان",children:(0,r.jsx)(n.lV.Item,{name:"titleFontSize",noStyle:!0,children:(0,r.jsx)(d.UX,{min:12,max:56})})}),(0,r.jsx)(d.xh,{label:"فونت توضیحات",children:(0,r.jsx)(n.lV.Item,{name:"descriptionFontFamily",noStyle:!0,children:(0,r.jsx)(d.Pl,{options:m})})}),(0,r.jsx)(d.xh,{label:"اندازه توضیحات",children:(0,r.jsx)(n.lV.Item,{name:"descriptionFontSize",noStyle:!0,children:(0,r.jsx)(d.UX,{min:10,max:32})})}),(0,r.jsx)(d.xh,{label:"فونت برچسب فیلدها",children:(0,r.jsx)(n.lV.Item,{name:"labelFontFamily",noStyle:!0,children:(0,r.jsx)(d.Pl,{options:m})})}),(0,r.jsx)(d.xh,{label:"اندازه برچسب فیلدها",children:(0,r.jsx)(n.lV.Item,{name:"labelFontSize",noStyle:!0,children:(0,r.jsx)(d.UX,{min:10,max:24})})}),(0,r.jsx)(d.xh,{label:"فونت متن داخل فیلدها",children:(0,r.jsx)(n.lV.Item,{name:"inputFontFamily",noStyle:!0,children:(0,r.jsx)(d.Pl,{options:m})})}),(0,r.jsx)(d.xh,{label:"اندازه متن داخل فیلدها",children:(0,r.jsx)(n.lV.Item,{name:"inputFontSize",noStyle:!0,children:(0,r.jsx)(d.UX,{min:10,max:24})})}),(0,r.jsx)(d.xh,{label:"فونت متن راهنما",children:(0,r.jsx)(n.lV.Item,{name:"helpTextFontFamily",noStyle:!0,children:(0,r.jsx)(d.Pl,{options:m})})}),(0,r.jsx)(d.xh,{label:"اندازه متن راهنما",children:(0,r.jsx)(n.lV.Item,{name:"helpTextFontSize",noStyle:!0,children:(0,r.jsx)(d.UX,{min:9,max:20})})}),(0,r.jsx)(d.xh,{label:"فونت دکمه ارسال",children:(0,r.jsx)(n.lV.Item,{name:"submitFontFamily",noStyle:!0,children:(0,r.jsx)(d.Pl,{options:m})})}),(0,r.jsx)(d.xh,{label:"اندازه فونت دکمه",children:(0,r.jsx)(n.lV.Item,{name:"submitFontSize",noStyle:!0,children:(0,r.jsx)(d.UX,{min:10,max:28})})}),(0,r.jsx)(d.xh,{label:"فونت پیام پایانی",children:(0,r.jsx)(n.lV.Item,{name:"successFontFamily",noStyle:!0,children:(0,r.jsx)(d.Pl,{options:m})})}),(0,r.jsx)(d.xh,{label:"اندازه پیام پایانی",children:(0,r.jsx)(n.lV.Item,{name:"successFontSize",noStyle:!0,children:(0,r.jsx)(d.UX,{min:9,max:24})})})]}),(0,r.jsxs)(d.So,{title:"رنگ‌ها",children:[(0,r.jsx)(d.xh,{label:"پس‌زمینه بخش",children:(0,r.jsx)(n.lV.Item,{name:"sectionBackgroun
1dColor",noStyle:!0,children:(0,r.jsx)(x.A,{})})}),(0,r.jsx)(d.xh,{label:"پس‌زمینه کارت فرم",children:(0,r.jsx)(n.lV.Item,{name:"cardBackgroundColor",noStyle:!0,children:(0,r.jsx)(x.A,{})})}),(0,r.jsx)(d.xh,{label:"رنگ کادر فرم",children:(0,r.jsx)(n.lV.Item,{name:"panelBorderColor",noStyle:!0,children:(0,r.jsx)(x.A,{})})}),(0,r.jsx)(d.xh,{label:"رنگ عنوان",children:(0,r.jsx)(n.lV.Item,{name:"titleColor",noStyle:!0,children:(0,r.jsx)(x.A,{})})}),(0,r.jsx)(d.xh,{label:"رنگ توضیحات",children:(0,r.jsx)(n.lV.Item,{name:"descriptionColor",noStyle:!0,children:(0,r.jsx)(x.A,{})})}),(0,r.jsx)(d.xh,{label:"رنگ برچسب فیلدها",children:(0,r.jsx)(n.lV.Item,{name:"labelColor",noStyle:!0,children:(0,r.jsx)(x.A,{})})}),(0,r.jsx)(d.xh,{label:"رنگ متن فیلدها",children:(0,r.jsx)(n.lV.Item,{name:"inputTextColor",noStyle:!0,children:(0,r.jsx)(x.A,{})})}),(0,r.jsx)(d.xh,{label:"پس‌زمینه فیلدها",children:(0,r.jsx)(n.lV.Item,{name:"inputBackgroundColor",noStyle:!0,children:(0,r.jsx)(x.A,{})})}),(0,r.jsx)(d.xh,{label:"رنگ کادر فیلدها",children:(0,r.jsx)(n.lV.Item,{name:"inputBorderColor",noStyle:!0,children:(0,r.jsx)(x.A,{})})}),(0,r.jsx)(d.xh,{label:"رنگ متن راهنما",children:(0,r.jsx)(n.lV.Item,{name:"helpTextColor",noStyle:!0,children:(0,r.jsx)(x.A,{})})}),(0,r.jsx)(d.xh,{label:"رنگ پیام پایانی",children:(0,r.jsx)(n.lV.Item,{name:"successTextColor",noStyle:!0,children:(0,r.jsx)(x.A,{})})}),(0,r.jsx)(d.xh,{label:"رنگ متن دکمه",children:(0,r.jsx)(n.lV.Item,{name:"submitTextColor",noStyle:!0,children:(0,r.jsx)(x.A,{})})}),(0,r.jsx)(d.xh,{label:"پس‌زمینه دکمه",children:(0,r.jsx)(n.lV.Item,{name:"submitBackgroundColor",noStyle:!0,children:(0,r.jsx)(x.A,{})})})]}),(0,r.jsxs)(d.So,{title:"ابعاد و فرم",children:[(0,r.jsx)(d.xh,{label:"گردی کارت فرم",children:(0,r.jsx)(n.lV.Item,{name:"cardBorderRadius",noStyle:!0,children:(0,r.jsx)(d.UX,{min:0,max:64})})}),(0,r.jsx)(d.xh,{label:"گردی دکمه ارسال",children:(0,r.jsx)(n.lV.Item,{name:"submitBorderRadius",noStyle:!0,children:(0,r.jsx)(d.UX,{min:0,max:48})})})]})]})})}}}]);

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.