PageSourceSearch

http://behmalt.com/_next/static/chunks/66814-5ee313ba3d432e6f.js

js behmalt.com collected 2026-10-02 23:52:07 UTC 17,881 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[66814],{9910:(e,t,r)=>{function a(e){return null==e?"-":String(e).replace(/\d/g,e=>"۰۱۲۳۴۵۶۷۸۹"[Number(e)]||e).replace(/[٠-٩]/g,e=>"٠١٢٣٤٥٦٧٨٩".includes(e)?"۰۱۲۳۴۵۶۷۸۹"["٠١٢٣٤٥٦٧٨٩".indexOf(e)]:e)}function l(e){return null==e?"":String(e).replace(/[۰-۹]/g,e=>String("۰۱۲۳۴۵۶۷۸۹".indexOf(e))).replace(/[٠-٩]/g,e=>String("٠١٢٣٤٥٦٧٨٩".indexOf(e)))}function n(e){if(null==e||""===e)return"-";let t="number"==typeof e?e:Number(String(e).replace(/[,،\s]/g,""));return Number.isNaN(t)?a(e):t.toLocaleString("fa-IR")}function s(e,t){if(!e)return"-";let r=e instanceof Date?e:new Date(e);return Number.isNaN(r.getTime())?a(String(e)):new Intl.DateTimeFormat("fa-IR",t).format(r)}r.d(t,{AC:()=>n,NZ:()=>s,Wn:()=>a,ai:()=>l})},15112:(e,t,r)=>{r.d(t,{default:()=>d,e:()=>o});var a=r(95155),l=r(12115),n=r(37075),s=r(9910);let i=(0,l.createContext)(null);function o(){return(0,l.useContext)(i)}function d({children:e,className:t,style:r,darkStyle:o,dir:m,defaultMode:c="light",persistInBrowser:u=!1,storageKey:b,cookieKey:p,themeClassName:h,darkThemeClassName:f="default-theme-dark",normalizeLtrDigits:g=!1}){let x=(0,l.useRef)(null),[y,v]=(0,l.useState)((0,n.j8)(c)),[w,N]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(!g||"ltr"!==m||"u"<typeof document)return;let e=x.current;if(!e)return;let t=new Set(["SCRIPT","STYLE","NOSCRIPT","TEXTAREA","INPUT","SELECT","OPTION"]),r=0,a=new Map,l=()=>{r||(r=window.requestAnimationFrame(()=>{r=0,n()}))},n=()=>{let r=new Set,n=[e],i=new Set,o=[];for(;n.length>0;){let e=n.shift();if(!e||i.has(e))continue;i.add(e);let s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT),d=s.nextNode();for(;d;){if(d.nodeType===Node.TEXT_NODE){let e=d,r=e.parentElement;!r||t.has(r.tagName)||r.closest('[data-ltr-digit-normalizer="off"]')||r.closest('[data-ltr-number="true"]')||o.push(e)}else if(d.nodeType===Node.ELEMENT_NODE){let e=d.shadowRoot;if(e&&!r.has(e)&&(r.add(e),n.push(e),!a.has(e))){let t=new MutationObserver(l);t.observe(e,{childList:!0,subtree:!0,characterData:!0}),a.set(e,t)}}d=s.nextNode()}}o.forEach(e=>{if(!e.isConnected)return;let t=e.nodeValue||"",r=(0,s.ai)(t);if(!/[0-9]/.test(r)){r!==t&&(e.nodeValue=r);return}let a=r.split(/([0-9]+)/g),l=document.createDocumentFragment();a.forEach(e=>{if(!e)return;if(!/^[0-9]+$/.test(e))return void l.appendChild(document.createTextNode(e));let t=document.createElement("span");t.dataset.ltrNumber="true",t.dir="ltr",t.textContent=e,t.style.setProperty("font-family",'"Segoe UI", Arial, sans-serif',"important"),t.style.setProperty("font-feature-settings",'"locl" 0, "lnum" 1, "tnum" 1',"important"),t.style.setProperty("font-variant-numeric","lining-nums tabular-nums","important"),t.style.setProperty("unicode-bidi","isolate","important"),l.appendChild(t)}),e.replaceWith(l)}),a.forEach((e,t)=>{r.has(t)||(e.disconnect(),a.delete(t))})},i=new MutationObserver(l);return i.observe(e,{childList:!0,subtree:!0,characterData:!0}),n(),()=>{i.disconnect(),a.forEach(e=>e.disconnect()),a.clear(),r&&window.cancelAnimationFrame(r)}},[m,g]),(0,l.useEffect)(()=>{u||v((0,n.j8)(c))},[c,u]),(0,l.useEffect)(()=>{if(!u||!b)return void N(!0);let e=window.localStorage.getItem(b);("light"===e||"dark"===e)&&v(e),N(!0)},[u,b]),(0,l.useEffect)(()=>{u&&b&&w&&(window.localStorage.setItem(b,y),p&&"u">typeof document&&(document.cookie=`${p}=${y}; path=/; max-age=31536000; samesite=lax`))},[u,b,p,y,w]);let k=(0,l.useCallback)(e=>{v((0,n.j8)(e))},[]),F=(0,l.useCallback)(()=>{v(e=>"dark"===e?"light":"dark")},[]),j=(0,l.useMemo)(()=>({mode:y,setMode:k,toggleMode:F}),[y,k,F]),S={...r||{},..."dark"===y&&o||{},...g&&"ltr"===m?{fontVariantNumeric:"lining-nums tabular-nums",fontFeatureSettings:'"lnum" 1, "tnum" 1, "locl" 0'}:{},colorScheme:y};return(0,a.jsx)(i.Provider,{value:j,children:(0,a.jsx)("div",{ref:x,dir:m,lang:"ltr"===m?"en":"fa",style:S,"data-page-theme-scope":"true","data-page-theme-mode":y,className:`${t||""} ${h||""} page-theme-scope ${"dark"===y?`dark page-theme-dark ${f}`:"light page-theme-light"}`,children:e})})}},20880:(e,t,r)=>{r.d(t,{u:()=>a});function a(e){let t=(e||"fa").toLowerCase().replace("_","-"),r=t.startsWith("en")||t.startsWith("ru");return{isLtr:r,headlineFont:r?"var(--font-primary, 'Segoe UI', Arial, sans-serif)":"var(--font-secondary, 'font-yekan', Tahoma, sans-serif)",bodyFont:r?"var(--font-secondary, 'Segoe UI', Arial, sans-serif)":"var(--font-primary, 'font-iran', Vazir, IRANSans, sans-serif)"}}},27678:(e,t,r)=>{r.r(t),r.d(t,{default:()=>u});var a=r(95155),l=r(12115),n=r(98500),s=r.n(n),i=r(73321),o=r(75914),d=r(54067),m=r(72645),c=r(20880);
1function u({reason:e=null,detail:t=null}){let[r,n]=(0,l.useState)(!1),[b,p]=(0,l.useState)(""),{t:h}=(0,d.K)(),f=(0,o.s6)("light"),g=(0,i.useParams)(),x=(0,i.useSearchParams)(),y=g?.locale,v=Array.isArray(y)?y[0]:y||"fa",w=(0,c.u)(v),N="dark"===f,k=x?.get("admindebug")==="1",F=(0,m.up)(),j=(0,m.Lx)(F.apiBaseUrl||"/api2",F),S=`${j}/home/getLanguages`,E=window.location.origin,C=`${window.location.pathname}${window.location.search}${window.location.hash}`,T=(0,l.useMemo)(()=>[{label:"Reason",value:e||"unknown"},{label:"Current origin",value:E},{label:"Current path",value:C},{label:"Resolved API base",value:j},{label:"Test endpoint",value:S},{label:"runtime.apiBaseUrl",value:F.apiBaseUrl||"(empty)"},{label:"runtime.apiRootUrl",value:F.apiRootUrl||"(empty)"},{label:"runtime.apiInternalBaseUrl",value:F.apiInternalBaseUrl||"(empty)"},{label:"runtime.serverLoopbackOrigin",value:F.serverLoopbackOrigin||"(empty)"},{label:"Error detail",value:t||"No extra detail was provided."}],[E,C,t,S,e,j,F.apiBaseUrl,F.apiInternalBaseUrl,F.apiRootUrl,F.serverLoopbackOrigin]),M=/^(localhost|127\.0\.0\.1)$/i.test(window.location.hostname)&&j.startsWith("/");async function L(){try{n(!0),p("");let e=await fetch(S,{method:"GET",cache:"no-store"}),t=await e.text();p(t||"No response body was returned.")}catch(e){p(e instanceof Error?e.message:"The request failed before a response was returned.")}finally{n(!1)}}return(0,l.useEffect)(()=>{k&&console.error("[DabaCMS Public Error Debug]",{reason:e||"unknown",currentOrigin:E,currentPath:C,resolvedApiBaseUrl:j,languagesEndpoint:S,runtimeConfig:F,detail:t||null})},[E,C,t,k,S,e,j,F]),(0,a.jsx)("section",{className:`locale-public-page-shell flex min-h-screen w-full items-center justify-center px-4 py-10 transition-colors duration-300 md:py-16 ${N?"bg-[#020617] text-slate-100":"bg-transparent text-slate-900"}`,children:(0,a.jsxs)("div",{className:`w-full max-w-3xl rounded-2xl border p-6 shadow-sm transition-colors duration-300 ${N?"border-amber-900/60 bg-amber-950/40 text-amber-100":"border-amber-200 bg-amber-50/70 text-amber-900"}`,children:[(0,a.jsx)("h1",{className:"text-xl font-bold md:text-2xl",style:{fontFamily:w.headlineFont},children:h("pages","TemplateLoadErrorTitle")}),(0,a.jsx)("p",{className:"mt-3 text-sm leading-7 md:text-base",style:{fontFamily:w.bodyFont},children:h("pages","TemplateLoadErrorDescription")}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-7",style:{fontFamily:w.bodyFont},children:h("pages","missing"===e?"TemplateMissingMessage":"network"===e?"TemplateNetworkMessage":"server"===e?"TemplateServerMessage":"invalid"===e?"TemplateInvalidMessage":"TemplateUnknownMessage")}),t&&k?(0,a.jsxs)("div",{className:`mt-3 rounded-xl border px-4 py-3 text-xs leading-6 ${N?"border-rose-900/60 bg-slate-950/50 text-rose-100":"border-rose-200 bg-white/80 text-rose-900"}`,style:{fontFamily:w.bodyFont},children:[(0,a.jsx)("div",{className:"font-bold",children:"Server error detail"}),(0,a.jsx)("div",{className:"mt-1 break-words",dir:"ltr",children:t})]}):null,k?(0,a.jsxs)("div",{className:`mt-3 rounded-xl border px-4 py-3 text-xs leading-6 ${N?"border-slate-700 bg-slate-950/60 text-slate-100":"border-slate-200 bg-white/90 text-slate-800"}`,style:{fontFamily:w.bodyFont},children:[(0,a.jsx)("div",{className:"font-bold",children:"Diagnostic details"}),(0,a.jsx)("div",{className:"mt-2 space-y-1.5",dir:"ltr",children:T.map(e=>(0,a.jsxs)("div",{className:"break-words",children:[(0,a.jsxs)("span",{className:"font-semibold",children:[e.label,":"]})," ",e.value]},e.label))}),M?(0,a.jsxs)("div",{className:"mt-3 rounded-lg border border-amber-300/60 bg-amber-50/60 px-3 py-2 text-[11px] leading-6 text-amber-900 dark:border-amber-500/40 dark:bg-amber-500/10 dark:text-amber-100",children:["When the site is opened from a local Node port like"," ",(0,a.jsx)("span",{className:"font-semibold",children:"http://localhost:1111"})," and"," ",(0,a.jsx)("span",{className:"font-semibold",children:"apiBaseUrl"})," is relative like"," ",(0,a.jsx)("span",{className:"font-semibold",children:"/api2"}),", the browser will call that same origin. If that origin does not expose"," ",(0,a.jsx)("span",{className:"font-semibold",children:"/api2/api/..."}),", preview and public pages will fail. In that case either open the site through IIS/domain origin or set"," ",(0,a.jsx)("span",{className:"font-semibold",children:"apiRootUrl"})," to an absolute reachable API address."]}):null]}):null,(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,a.jsx)(s(),{href:`/${v}`,className:`inline-flex rounded-xl border px-4 py-2 text-sm font-semibold transition ${N?"border-sky-400/60 bg-sky-4
100 text-slate-950 hover:border-sky-300 hover:bg-sky-300":"border-amber-300 hover:bg-amber-100"}`,style:{fontFamily:w.bodyFont},children:h("pages","BackToHome")}),k?(0,a.jsx)("button",{type:"button",onClick:L,disabled:r,className:`inline-flex rounded-xl border px-4 py-2 text-sm font-semibold transition disabled:cursor-not-allowed disabled:opacity-70 ${N?"border-amber-300/40 bg-amber-200/10 text-amber-100 hover:bg-amber-200/20":"border-sky-300 bg-sky-50 text-sky-900 hover:bg-sky-100"}`,style:{fontFamily:w.bodyFont},children:r?"در حال دریافت...":"دریافت زبان‌ها"}):null]}),k?(0,a.jsx)("p",{className:`mt-4 break-words rounded-xl border px-4 py-3 text-sm leading-7 ${N?"border-amber-900/60 bg-slate-950/40 text-amber-50":"border-amber-200/80 bg-white/70 text-slate-800"}`,style:{fontFamily:w.bodyFont},children:b||"API response will be shown here."}):null]})]})})}},54067:(e,t,r)=>{r.d(t,{K:()=>s});var a=r(73321),l=r(12115),n=r(37153);function s(){let e=(0,a.useParams)(),t=e?.locale||"en",r=(0,l.useMemo)(()=>(0,n.HM)(t),[t]),s=(0,l.useMemo)(()=>(0,n.TW)(t),[t]),i=(0,l.useMemo)(()=>(e,r)=>(0,n.ch)(t,e,r),[t]);return{t:r,locale:t,dictionary:s,getValue:i}}},62507:(e,t,r)=>{r.d(t,{default:()=>s});var a=r(95155),l=r(8454),n=r(6576);function s({template:e,items:t,title:r,dir:i}){var o;let d=((o="rtl"===i?e.breadcrumbImageRtl:e.breadcrumbImageLtr)?(0,n.IB)(o):"")||"/assets/img/breadcrumb/01.jpg",m=e.theme===l.J.BEHMALT?"#053262":"#FFFFFF",c=e.theme===l.J.BEHMALT?"#FFFFFF":"#F8FAFC",u=e.theme===l.J.BEHMALT?"#4fe50d":"#FCD846",b=e.breadcrumbTitleColor||m,p=e.breadcrumbPathColor||c,h=e.breadcrumbCurrentColor||u,f=Math.max(0,Math.min(100,Number(e.breadcrumbOverlayOpacity??20)))/100,g=e.breadcrumbMobileTitleColor?.trim()||b,x=e.breadcrumbMobilePathColor?.trim()||p,y=e.breadcrumbMobileCurrentColor?.trim()||h,v=e.breadcrumbMobileBackgroundColor?.trim()||"#020617",w=(e,r)=>(0,a.jsx)("ol",{className:"m-0 flex flex-wrap items-center gap-y-2 p-0",children:t.map((l,n)=>{let s=n===t.length-1;return(0,a.jsxs)("li",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"inline-flex px-1.5 sm:px-2.5 transition-colors duration-200 [&_a]:!text-inherit [&_a]:transition-colors [&_a:hover]:!text-inherit [&_a:hover]:opacity-90",style:{color:s?r:e},children:"title"in l?l.title:null}),s?null:(0,a.jsx)("span",{className:"mx-2 opacity-80",style:{color:e},"aria-hidden":"true",children:"/"})]},`${String(n)}-${String("key"in l?l.key??n:n)}`)})});return(0,a.jsxs)("div",{className:"w-full",dir:i,children:[(0,a.jsxs)("div",{className:"relative min-h-[160px] overflow-hidden bg-cover bg-center bg-no-repeat sm:min-h-[190px] md:min-h-[210px]",children:[(0,a.jsx)("img",{src:d,loading:"lazy",className:"absolute inset-0 z-0 h-full w-full object-cover",alt:""}),(0,a.jsx)("div",{className:"absolute inset-0 z-[1] bg-black/35"}),(0,a.jsx)("div",{className:"hidden md:absolute md:inset-0 md:z-10 md:flex md:items-center md:px-10 md:py-8",children:(0,a.jsxs)("div",{className:"w-full max-w-3xl rounded-[24px] px-6 py-5 backdrop-blur-sm lg:px-8",style:{backgroundColor:`rgba(0, 0, 0, ${f})`},children:[(0,a.jsx)("h2",{className:"mb-3 leading-tight",style:{fontFamily:e.secondaryFont,fontSize:"clamp(22px, 4.5vw, 34px)",color:b},children:r}),(0,a.jsx)("nav",{"aria-label":"breadcrumb",style:{fontFamily:e.primaryFont,fontSize:"clamp(12px, 3vw, 14px)"},children:w(p,h)})]})})]}),(0,a.jsxs)("div",{className:"border-t border-white/10 px-4 py-4 shadow-[0_14px_32px_rgba(15,23,42,0.2)] md:hidden",style:{backgroundColor:v},children:[(0,a.jsx)("h2",{className:"mb-2 leading-tight",style:{fontFamily:e.secondaryFont,fontSize:"clamp(20px, 6vw, 28px)",color:g},children:r}),(0,a.jsx)("nav",{"aria-label":"breadcrumb",style:{fontFamily:e.primaryFont,fontSize:"13px"},children:w(x,y)})]})]})}},71349:(e,t,r)=>{r.d(t,{default:()=>s});var a=r(95155),l=r(8454),n=r(6576);function s({template:e,items:t,title:r,dir:i}){var o;let d=((o="rtl"===i?e.breadcrumbImageRtl:e.breadcrumbImageLtr)?(0,n.IB)(o):"")||"/assets/img/breadcrumb/01.jpg",m=e.theme===l.J.BEHMALT?"#053262":"#FFFFFF",c=e.theme===l.J.BEHMALT?"#FFFFFF":"#F8FAFC",u=e.theme===l.J.BEHMALT?"#4fe50d":"#FCD846",b=e.breadcrumbTitleColor||m,p=e.breadcrumbPathColor||c,h=e.breadcrumbCurrentColor||u,f=Math.max(0,Math.min(100,Number(e.breadcrumbOverlayOpacity??20)))/100,g=e.breadcrumbMobileTitleColor?.trim()||b,x=e.breadcrumbMobilePathColor?.trim()||p,y=e.breadcrumbMobileCurrentColor?.trim()||h,v=e.breadcrumbMobileBackgroun
1dColor?.trim()||"#053262",w=(e,r)=>(0,a.jsx)("ol",{className:"m-0 flex flex-wrap items-center gap-y-2 p-0",children:t.map((l,n)=>{let s=n===t.length-1;return(0,a.jsxs)("li",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"inline-flex px-1.5 sm:px-2.5 transition-colors duration-200 [&_a]:!text-inherit [&_a]:transition-colors [&_a:hover]:!text-inherit [&_a:hover]:opacity-90",style:{color:s?r:e},children:"title"in l?l.title:null}),s?null:(0,a.jsx)("span",{className:"mx-2 opacity-80",style:{color:e},"aria-hidden":"true",children:"/"})]},`${String(n)}-${String("key"in l?l.key??n:n)}`)})});return(0,a.jsxs)("div",{className:"w-full",dir:i,children:[(0,a.jsxs)("div",{className:"relative min-h-[160px] overflow-hidden bg-cover bg-center bg-no-repeat sm:min-h-[190px] md:min-h-[200px]",children:[(0,a.jsx)("img",{src:d,loading:"lazy",className:"absolute inset-0 z-0 h-full w-full object-cover",alt:""}),(0,a.jsx)("div",{className:"hidden md:absolute md:inset-0 md:z-10 md:flex md:items-center md:px-14 md:py-8 lg:px-20",children:(0,a.jsxs)("div",{className:"w-full max-w-3xl rounded-[26px] border border-white/20 px-6 py-5 backdrop-blur-sm lg:px-8",style:{backgroundColor:`rgba(0, 0, 0, ${f})`},children:[(0,a.jsx)("h2",{className:"leading-tight",style:{fontFamily:e.primaryFont,color:b,fontSize:"clamp(20px, 5vw, 25px)"},children:r}),(0,a.jsx)("nav",{"aria-label":"breadcrumb",className:"mt-2",style:{fontFamily:e.secondaryFont,fontSize:"clamp(12px, 3vw, 14px)"},children:w(p,h)})]})})]}),(0,a.jsxs)("div",{className:"border-t-4 border-[#4fe50d] px-4 py-4 shadow-[0_16px_36px_rgba(5,50,98,0.28)] md:hidden",style:{backgroundColor:v},children:[(0,a.jsx)("h2",{className:"leading-tight",style:{fontFamily:e.primaryFont,color:g,fontSize:"clamp(20px, 6vw, 26px)"},children:r}),(0,a.jsx)("nav",{"aria-label":"breadcrumb",className:"mt-2",style:{fontFamily:e.secondaryFont,fontSize:"13px"},children:w(x,y)})]})]})}},75914:(e,t,r)=>{r.d(t,{Wr:()=>d,Ye:()=>u,gH:()=>o,k3:()=>c,s6:()=>b,zw:()=>m});var a=r(12115),l=r(15112),n=r(37075);let s="hrcms:public-theme-mode-change";function i(){return"u"<typeof document?[]:Array.from(document.querySelectorAll('[data-page-theme-scope="true"]'))}function o(){if("u"<typeof document)return"light";let e=i()[0]?.getAttribute("data-page-theme-mode");if("light"===e||"dark"===e)return e;for(let e of[document.documentElement,document.body]){let t=e?.getAttribute("data-page-theme-mode")||e?.getAttribute("data-theme-mode");if("light"===t||"dark"===t)return t;if(e?.classList.contains("page-theme-dark")||e?.classList.contains("dark"))return"dark";if(e?.classList.contains("page-theme-light")||e?.classList.contains("light"))return"light"}let t=c(!0);return t||"light"}function d(e){if("u"<typeof document)return;let t="dark"===e,r=e=>{e&&(e.classList.toggle("dark",t),e.classList.toggle("light",!t),e.classList.toggle("page-theme-dark",t),e.classList.toggle("page-theme-light",!t),e.setAttribute("data-theme-mode",t?"dark":"light"),e.setAttribute("data-page-theme-mode",t?"dark":"light"),e.style.colorScheme=t?"dark":"light")};i().forEach(e=>{r(e)}),r(document.documentElement),r(document.body)}function m(e,t){t&&(window.localStorage.setItem(n.a5,e),"u">typeof document&&(document.cookie=`${n.lt}=${e}; path=/; max-age=31536000; samesite=lax`))}function c(e){if(!e)return null;let t=window.localStorage.getItem(n.a5);if("light"===t||"dark"===t)return t;if("u"<typeof document)return null;let r=document.cookie.split(";").map(e=>e.trim()).find(e=>e.startsWith(`${n.lt}=`)),a=r?.slice(n.lt.length+1);return"light"===a||"dark"===a?a:null}function u(e){window.dispatchEvent(new CustomEvent(s,{detail:{mode:e}}))}function b(e="light"){let t=(0,l.e)(),[r,i]=(0,a.useState)(e);return(0,a.useEffect)(()=>{t||i((0,n.j8)(c(!0)??o()))},[t]),(0,a.useEffect)(()=>{if(t)return;let e=e=>{let t=e.detail;i((0,n.j8)(t?.mode??o()))};return window.addEventListener(s,e),()=>window.removeEventListener(s,e)},[t]),(0,n.j8)(t?.mode??r)}}}]);

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.