PageSourceSearch

http://behmalt.com/_next/static/chunks/82964.0607659579c75eda.js

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

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82964],{101:(e,r,t)=>{t.d(r,{Do:()=>p,H6:()=>u,I1:()=>i,NM:()=>b,at:()=>c,nE:()=>d,x9:()=>f,yy:()=>s});var o=t(26708),l=t(48934),a=t(22356),n=t(11917);function s(e,r){return(0,o.I)({queryKey:["public-product","getById",e],enabled:!!e,queryFn:async()=>(0,n.hY)(e),initialData:r??void 0})}function i(e){let r=(e.slug||"").trim();return(0,o.I)({queryKey:["public-posts",r,e.category||"",e.page??1,e.pageSize??9,e.isPhotoReport??null],enabled:!!r,queryFn:async()=>(0,n.dc)({slug:r,category:e.category,page:e.page,pageSize:e.pageSize,isPhotoReport:e.isPhotoReport})})}function d(e,r){let t=(r||"").trim();return(0,o.I)({queryKey:["public-form","getById",e,t],enabled:!!e&&!!t,queryFn:async()=>(0,n.oL)(e,t)})}function c(){return(0,l.n)({mutationFn:async e=>(await a.FH.post("/Home/SubmitForm",e)).data})}function u(e,r){let t=(r||"").trim();return(0,o.I)({queryKey:["public-flipbook","getById",e,t],enabled:!!e&&!!t,queryFn:async()=>(0,n.gX)(e,t)})}function p(e,r){let t=(r||"").trim();return(0,o.I)({queryKey:["public-survey","getById",e,t],enabled:!!e&&!!t,queryFn:async()=>(0,n.oD)(e,t)})}function f(){return(0,l.n)({mutationFn:async e=>await (0,n.yN)(e)})}function b(e,r,t){let l=(r||"").trim();return(0,o.I)({queryKey:["public-survey","reportById",e,l,t||""],enabled:!!e&&!!l,queryFn:async()=>(0,n.yL)(e,l)})}},82964:(e,r,t)=>{t.r(r),t.d(r,{default:()=>k});var o=t(95155),l=t(12115),a=t(37153),n=t(65725),s=t(77721),i=t(80283),d=t(75914),c=t(55811),u=t(101),p=t(91293),f=t(6576);let b="/vendor/real3d-flipbook/",m=`${b}css/flipbook.min.css`,g=`${b}js/flipbook.min.js`;function h(e,r="2d"){let t=String(e||"").trim().toLowerCase();return"webgl"===t||"3d"===t||"2d"===t||"swipe"===t||"scroll"===t?t:r}function y({title:e,pages:r,pdfUrl:t,height:a=620,viewMode:n="webgl",viewModeMobile:s="swipe",rightToLeft:i=!1,singlePageMode:d=!1,singlePageModeIfMobile:c=!0,pageDrag:u=!0,doubleClickZoom:x=!0,thumbnailsOnStart:w=!1,autoplayOnStart:k=!1,autoplayLoop:v=!0,autoplayInterval:j=3e3,startPage:N=0,controls:F}){let S=(0,l.useRef)(null),B=(0,l.useRef)(null),[P,C]=(0,l.useState)(!1),[M,I]=(0,l.useState)(null),L=(0,l.useMemo)(()=>{var e;return e=t||"",(0,f.IB)(e)},[t]),$=!!L,E=(0,l.useMemo)(()=>r.map((e,r)=>{var t;let o=(t=e?.src,(0,f.IB)(t));return o?{src:o,thumb:o,title:e?.title||`Page ${r+1}`,caption:e?.description||""}:null}).filter(Boolean),[r]),T=(0,l.useMemo)(()=>E.some(e=>(function(e){if(!e)return!1;try{return new URL(e,window.location.origin).origin!==window.location.origin}catch{return!1}})(e.src)),[E]),D=(0,l.useMemo)(()=>{var e;let r;return e=h(n,"webgl"),[r=h(e,T?"2d":"webgl"),...(T?["2d","swipe","scroll"]:["webgl","3d","2d","swipe","scroll"]).filter(e=>e!==r)]},[T,n]),q=(0,l.useMemo)(()=>h(s,"swipe"),[T,s]),z=(0,l.useMemo)(()=>({height:`${Math.max(320,Number(a||620))}px`,"--scale-factor":1}),[a]);return(0,l.useEffect)(()=>{let r=!1;return async function(){if(S.current&&(E.length||$)){if(C(!1),I(null),B.current?.dispose)try{B.current.dispose()}catch{}B.current=null,S.current.innerHTML="";try{if(await new Promise((e,r)=>{if("u"<typeof document||document.querySelector(`link[data-flipbook-style="${m}"]`))return void e();let t=document.createElement("link");t.rel="stylesheet",t.href=m,t.dataset.flipbookStyle=m,t.onload=()=>e(),t.onerror=()=>r(Error(`Failed to load stylesheet: ${m}`)),document.head.appendChild(t)}),await new Promise((e,r)=>{if("u"<typeof document)return void e();let t=document.querySelector(`script[data-flipbook-script="${g}"]`);if(t)return"true"===t.dataset.loaded?void e():(t.addEventListener("load",()=>e(),{once:!0}),void t.addEventListener("error",()=>r(Error(`Failed to load script: ${g}`)),{once:!0}));let o=document.createElement("script");o.src=g,o.async=!0,o.dataset.flipbookScript=g,o.onload=()=>{o.dataset.loaded="true",e()},o.onerror=()=>r(Error(`Failed to load script: ${g}`)),document.body.appendChild(o)}),r||!S.current)return;if("function"!=typeof window.FlipBook)throw Error("FlipBook runtime is unavailable.");let t=(0,p.ui)(F),o=t.showSearch&&$,l={name:e||"FlipBook",pages:E,pdfUrl:L||null,rightToLeft:i,singlePageMode:d,singlePageModeIfMobile:c,pageDragDisabled:!u,doubleClickZoomDisabled:!x,thumbnailsOnStart:w,autoplayOnStart:k,autoplayLoop:v,autoplayInterval:j,startPage:N,viewModeMobile:q,assets:{preloader:`${b}assets/images/preloader.jpg`,spinner:`${b}assets/images/spinner.gif`,flipMp3:`${b}assets/mp3/turnPage.mp3`},pdfjsworkerSrc:`${b}js/libs/pdf.worker.min.js`,flipbookSrc:`${b}js/flipbook.min.js`,cMapUrl:`${b}assets/cmaps/`,currentPage:{enabled:t.showPageNumber},btnPrev:{enabled:t.showToolbarNavigation},btnNext:{enabled:t.showToolbarNavigation},sideNavigationButtons:t.showSideNavigation,btnZoomIn:{enabled:t.showZoom},btnZoomOut:{enabled:t.showZoom},btnThumbs:{enabled:t.showThumbnails},btnToc:{enabled:t.showTableOfContents},btnAutoplay:{enabled:t.showAutoplay},btnBookmark:{enabled:t.showBookmarks},btnShare:{enabled:t.showShare},btnSound:{enabled:t.showSound},btnTools:{enabled:t.showSound},btnSingle:{enabled:t.showSinglePage},btnExpand:{enabled:t.showFullscreen},btnSearch:{enabled:o},search:{enabled:o},btnDownloadPdf:{enabled:!1},btnDownloadPages:{enabled:!1},btnPrint:{enabled:!1},deeplinkingEnabled:!1,thumbSize:140,preloaderText:"Loading book...",strings:{thumbnails:"Pages",tableOfContent:"Contents",search:"Search",share:"Share",print:"Print",download:"Download",bookmarks:"Bookmarks",pressEscToClose:"Press ESC to close"}},a=null;for(let e of D){if(r||!S.current)return;S.current.innerHTML="";
1try{B.current=new window.FlipBook(S.current,{...l,viewMode:e}),C(!0),I(null);return}catch(e){a=e}}throw a instanceof Error?a:Error("FlipBook failed to initialize.")}catch(e){if(r)return;C(!1),I(e?.message||"Unable to load the flipbook.")}}}(),()=>{if(r=!0,B.current?.dispose)try{B.current.dispose()}catch{}B.current=null}},[j,v,k,F,D,x,q,E,L,$,u,i,d,c,N,w,e]),(0,o.jsxs)("div",{className:"relative overflow-hidden rounded-[28px] border border-slate-200 bg-white shadow-sm",style:{"--scale-factor":1},children:[P||M?null:(0,o.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-white/90 text-sm text-slate-500",children:"Loading 3D book..."}),M?(0,o.jsx)("div",{className:"absolute inset-0 z-20 flex items-center justify-center bg-white p-6 text-center text-sm text-rose-600",children:M}):null,(0,o.jsx)("div",{ref:S,style:z,className:"w-full"})]})}var x=t(76368);function w(e,r="var(--font-primary, sans-serif)"){return e?e.startsWith("font-")?(0,s.az)(e):e:r}function k({node:e,dir:r="rtl",language:t,page:s,template:p,theme:b,isDark:m=!1,editable:g=!1}){var h;let v=(0,d.s6)("light"),j=(0,c.Y)(e.defaultProps||{}),N=t??s?.language??null,F="rtl"===r||"ltr"===r?r:N?.direction===n.h.LTR?"ltr":"rtl",S=(j.slug||N?.slug||"fa").trim(),B="fa"===S.toLowerCase().split(/[-_]/)[0],P=(0,l.useMemo)(()=>(0,a.HM)(S),[S]),C=(0,u.H6)(j.flipBookId,S),M=C.data,I=m||"dark"===v,L=b===i.Jb.BEHMALT,$=(0,l.useMemo)(()=>{var e;return Array.isArray(e=M?.pages)?e:[]},[M?.pages]),E="string"==typeof M?.pdfFilePath?M.pdfFilePath:"",T="pdf"==(M?.sourceType==="pdf"?"pdf":"pages")&&!!E,D=Number(j.height||620),q=!1!==j.showTitle,z=!1!==j.showDescription,H=j.sectionBackgroundColor||(I?x.K.surfaceAlt:"transparent"),K=j.cardBackgroundColor||(I?x.K.surface:"#ffffff"),R=j.panelBorderColor||(I?x.K.border:"rgba(15, 23, 42, 0.1)"),O=j.titleColor||(I?x.K.heading:p?.primaryColor||"#053262"),Z=j.descriptionColor||(I?x.K.text:"#475569"),A=j.metaColor||(I?x.K.muted:"#64748b"),U=Number(j.cardBorderRadius||28),_=w(j.titleFontFamily,"var(--font-primary, sans-serif)"),Y=w(j.descriptionFontFamily,"var(--font-secondary, sans-serif)"),J=w(j.metaFontFamily,"var(--font-secondary, sans-serif)"),W=Number(j.titleFontSize||28),X=Number(j.descriptionFontSize||14),G=Number(j.metaFontSize||12),Q={backgroundColor:H},V={border:`1px solid ${R}`,backgroundColor:K,borderRadius:`${U}px`},ee={color:O,fontFamily:_,fontSize:`${W}px`,lineHeight:1.35},er={color:Z,fontFamily:Y,fontSize:`${X}px`,lineHeight:1.95},et={color:A,fontFamily:J,fontSize:`${G}px`,lineHeight:1.8},eo=e=>(0,o.jsx)("div",{className:"rounded-3xl border border-dashed p-6",style:{borderColor:R,backgroundColor:K,color:A},children:(0,o.jsx)("span",{style:et,children:e})});if(!j.flipBookId)return eo(P("pages","NoFlipBookSelected"));if(C.isLoading){let e;return e=P("pages","LoadingFlipBook"),(0,o.jsxs)("div",{className:"flex min-h-[220px] flex-col items-center justify-center gap-4 roun
1ded-3xl border p-8 text-center shadow-sm",style:{borderColor:R,backgroundColor:K,color:A},children:[(0,o.jsx)("span",{className:"inline-flex h-12 w-12 animate-spin rounded-full border-4 border-transparent",style:{borderTopColor:O,borderRightColor:I?"rgba(148,163,184,0.24)":"rgba(15,23,42,0.12)",borderBottomColor:I?"rgba(148,163,184,0.24)":"rgba(15,23,42,0.12)"},"aria-hidden":"true"}),(0,o.jsx)("span",{className:"font-semibold",style:et,children:e}),(0,o.jsx)("span",{className:"max-w-sm text-xs leading-6",style:{...et,opacity:.72},children:B?"چند لحظه صبر کنید تا صفحات کتاب آماده نمایش شوند.":"Please wait while the book pages are prepared."})]})}if(!M)return eo(P("pages","FlipBookNotFound"));if(!$.length&&!T)return eo(P("pages","FlipBookHasNoPages"));let el=$[0]?.src?(h=$[0].src,(0,f.IB)(h)):"",ea=M?.title||P("pages","FlipBook"),en=M?.description||"",es=T?B?"مبتنی بر PDF":"PDF based":`${$.length} ${P("pages","FlipBookPages")}`,ei=String(M?.viewMode||"webgl").toUpperCase(),ed=M?.rightToLeft?"RTL":"LTR";if(g)return(0,o.jsx)("section",{className:"w-full",dir:F,style:Q,children:(0,o.jsx)("div",{className:"overflow-hidden shadow-sm",style:V,children:(0,o.jsxs)("div",{className:"grid gap-0 lg:grid-cols-[300px_minmax(0,1fr)]",children:[(0,o.jsx)("div",{className:"bg-slate-100/80 dark:bg-slate-900/60",children:el?(0,o.jsx)("img",{src:el,alt:ea,className:"h-full min-h-[280px] w-full object-cover"}):T?(0,o.jsxs)("div",{className:"flex min-h-[280px] flex-col items-center justify-center gap-3 p-6 text-center",style:et,children:[(0,o.jsx)("i",{className:"fas fa-file-pdf text-4xl",style:{color:O}}),(0,o.jsx)("span",{children:B?"صفحه‌ها از فایل PDF ساخته می‌شوند.":"Pages are generated from the PDF file."})]}):(0,o.jsx)("div",{className:"flex min-h-[280px] items-center justify-center p-6 text-center",style:et,children:P("pages","FlipBookPreview")})}),(0,o.jsxs)("div",{className:"flex flex-col justify-center gap-4 p-6 md:p-8",children:[(0,o.jsx)("div",{style:et,className:"uppercase tracking-[0.24em]",children:P("pages","FlipBook")}),q?(0,o.jsx)("h3",{className:"font-bold",style:ee,children:ea}):null,z&&en?(0,o.jsx)("p",{style:er,children:en}):null,(0,o.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,o.jsx)("span",{className:"rounded-full px-3 py-1",style:{...et,backgroundColor:I?"rgba(15,23,42,0.56)":"#f1f5f9"},children:es}),(0,o.jsx)("span",{className:"rounded-full px-3 py-1",style:{...et,backgroundColor:I?"rgba(15,23,42,0.56)":"#f1f5f9"},children:ei}),(0,o.jsx)("span",{className:"rounded-full px-3 py-1",style:{...et,backgroundColor:I?"rgba(15,23,42,0.56)":"#f1f5f9"},children:ed})]})]})]})})});let ec=q||z&&en?(0,o.jsxs)("div",{className:"mb-5 px-1",children:[q?(0,o.jsx)("h2",{className:"font-bold",style:ee,children:ea}):null,z&&en?(0,o.jsx)("p",{className:"mt-3",style:er,children:en}):null]}):null,eu=(0,o.jsx)("div",{className:"overflow-hidden shadow-sm",style:V,children:(0,o.jsx)(y,{bookId:M?.id||j.flipBookId,title:M?.title,pages:$,pdfUrl:E,height:D,viewMode:M?.viewMode||"webgl",viewModeMobile:M?.viewModeMobile||"swipe",rightToLeft:M?.rightToLeft??!1,singlePageMode:M?.singlePageMode??!1,singlePageModeIfMobile:M?.singlePageModeIfMobile??!0,pageDrag:M?.pageDrag??!0,doubleClickZoom:M?.doubleClickZoom??!0,thumbnailsOnStart:M?.thumbnailsOnStart??!1,autoplayOnStart:M?.autoplayOnStart??!1,autoplayLoop:M?.autoplayLoop??!0,autoplayInterval:M?.autoplayInterval??3e3,startPage:M?.startPage??0,controls:M?.controls})});return L?(0,o.jsx)("main",{className:"w-full",dir:F,style:Q,children:(0,o.jsx)("div",{className:"py-10",children:(0,o.jsxs)("div",{className:"container mx-auto max-w-6xl px-4",children:[ec,eu]})})}):(0,o.jsx)("section",{className:"w-full px-4 py-10",dir:F,style:Q,children:(0,o.jsxs)("div",{className:"mx-auto max-w-6xl",children:[ec,eu]})})}}}]);

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.