PageSourceSearch

https://zanboor-shop.ir/static/_next/static/chunks/2yxmbmix9n4fm.js

js zanboor-shop.ir collected 2026-09-28 09:02:51 UTC 17,123 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="53ca1509-3fc5-f3f3-7d99-92dd1bca805c")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,834061,e=>{e.v(l=>Promise.all(["static/chunks/2qfv0m8x3lb-g.js","static/chunks/04zh8jcf-7f_5.js","static/chunks/2f94z4puru811.js","static/chunks/1ia3hab0j3ckf.js","static/chunks/3r_k5zfup4nyx.js","static/chunks/0ee94vfttboir.js","static/chunks/407fgbrkhv9qx.js","static/chunks/342gsadu2vm2s.js","static/chunks/0t9wgshtxhpa1.js","static/chunks/0tdjkgq9raddo.js","static/chunks/3soq2nfc9_z3i.js","static/chunks/1e0tib3jp4qo1.css","static/chunks/1qw31-miime-o.css","static/chunks/3u8f9f7fsim85.css"].map(l=>e.l(l))).then(()=>l(874795)))},737867,e=>{"use strict";var l=e.i(843476),a=e.i(130409);e.i(281191);var r=e.i(349381),t=e.i(375203),s=e.i(932687),i=e.i(21027);e.i(53170);var n=e.i(330032);e.i(59465);var o=e.i(875089);e.i(709488);var c=e.i(529977);e.i(904392);var d=e.i(816270),u=e.i(856360),m=e.i(60550),x=e.i(390301),h=e.i(52599),p=e.i(79778),f=e.i(116881),g=e.i(689718),v=e.i(299924),b=e.i(174176);e.i(556587);var j=e.i(677904),y=e.i(796582);e.i(624975);var N=e.i(126301),w=e.i(763818),k=e.i(907929),I=e.i(420744),q=e.i(770703),C=e.i(266027),z=e.i(423665),S=e.i(368356),D=e.i(794265);let T=e=>{var a,r,t;let{item:s,preload:i,index:n,options:o}=e,c=null==o?void 0:o.includes("relatedItemTitle"),d=null==o?void 0:o.includes("relatedItemCategory"),u=null==o?void 0:o.includes("relatedItemImage"),m=null==o?void 0:o.includes("relatedItemDate");return(0,l.jsxs)(S.default,{href:`/${s.slug}`,className:"flex flex-row gap-lg focus:outline-none",children:[u&&(u&&s.image?(0,l.jsx)(g.Image,{src:(0,v.resizeImage)(s.image,"small"),alt:s.title||"",className:"aspect-square max-w-[82px] shrink-0 self-stretch rounded-lg object-cover",cover:!0,loading:i&&n+1<6?"eager":"lazy"}):(0,l.jsx)($,{className:"aspect-square w-[82px] shrink-0 self-stretch rounded-lg"})),(0,l.jsxs)("div",{className:"flex min-w-0 flex-col justify-between gap-xs self-stretch py-xs tablet:py-sm",children:[c&&!!s.title&&(0,l.jsx)("div",{className:"line-clamp-2 break-words text-right text-sm font-medium text-[--text-primary]",children:s.title}),(0,l.jsxs)("div",{className:"flex flex-row items-center justify-between text-xs text-[--text-tertiary] tablet:gap-lg",children:[m&&!!s.created&&(0,l.jsx)("div",{className:"size-max shrink-0 number-farsi",children:new Date(s.created).toLocaleDateString("fa-IR",{year:"numeric",month:"long",day:"numeric"})}),d&&!!(null==(a=s.categories)?void 0:a.length)&&(0,l.jsx)("span",{className:"line-clamp-1 break-words",children:null==(t=s.categories)||null==(r=t[0])?void 0:r.title})]})]})]})},$=e=>{let{children:a,className:r,innerComponent:t}=e;return(0,l.jsxs)("div",{className:(0,j.cn)("flex h-full flex-col space-y-md",r),children:[a,(0,l.jsx)("div",{className:"flex grow flex-col items-center justify-center gap-md overflow-hidden rounded-xl border border-[--border-secondary] bg-[--bg-tertiary]",children:t||(0,l.jsx)(D.Image03Icon,{className:"size-3xl stroke-[--fg-quinary]"})})]})};var L=e.i(708528);let F=e=>{var a;let{options:r,post:t}=e,s=(0,L.getRelatedPostQueryParams)(t),i=(0,L.getExcludeQueryKey)(null==t?void 0:t.postID),n=(0,C.useQuery)({queryKey:(0,L.getRelatedPostsSidebarQueryKey)(s,i),queryFn:()=>z.posts.get({...s,excludeID:i,size:String(L.RELATED_POSTS_SIDEBAR_SIZE)}),select:e=>e.posts,enabled:!!t});
2return(0,l.jsx)(c.Container,{size:"xl",children:(0,l.jsxs)("div",{className:"flex flex-col gap-lg",children:[(0,l.jsx)("div",{className:"text-md font-medium text-[--text-secondary]",children:"مقالات مرتبط"}),null==(a=n.data)?void 0:a.map((e,a)=>(0,l.jsx)(T,{item:e,index:a,options:r},null==e?void 0:e.postID))]})})};var _=e.i(484016),R=e.i(338356),P=e.i(204441),E=e.i(535895),K=e.i(465404);let O=(0,q.default)(()=>e.A(834061),{loadableGenerated:{modules:[874795]}});e.s(["default",0,e=>{var q,C,z,S;let{widget:D,containerName:T,postQuery:$,ref:L,lastOfContainer:A,firstOfContainer:B,activeWidget:Q,themeColor:U}=e,{isMobile:M}=(0,N.useMediaQuery)("desktop"),{isScrollingDown:G,isScrollingUp:H}=(0,w.useIsScrolling)({tolerance:100}),V=(0,k.useSetElementHeightToCSSVariable)({variableName:"post-sidebar-height-layout2"}),W=$.data,{shareData:X,handleCopy:Z,tableOfContents:J,content:Y,handleTocClick:ee,activeId:el}=(0,a.usePost)(W),ea=Q==D.widgetID,{isEditMode:er}=(0,K.useIsEditMode)(),{options:et}=D,es=null==et?void 0:et.includes("contents"),ei=null==et?void 0:et.includes("table"),en=null==et?void 0:et.includes("tags"),eo=null==et?void 0:et.includes("title"),ec=null==et?void 0:et.includes("image"),ed=null==et?void 0:et.includes("author"),eu=null==et?void 0:et.includes("date"),em=null==et?void 0:et.includes("relatedItems"),ex=null==et?void 0:et.includes("whatsapp"),eh=null==et?void 0:et.includes("twitter"),ep=null==et?void 0:et.includes("linkedin"),ef=null==et?void 0:et.includes("telegram"),eg=null==et?void 0:et.includes("bale"),ev=null==et?void 0:et.includes("rubika"),eb=null==et?void 0:et.includes("copy"),ej=ex||eh||ep||ef||eg||ev||eb;return W||er?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(_.default,{containerName:T,lastOfContainer:A,firstOfContainer:B,themeColor:U,widget:D,asChild:!0,children:(0,l.jsx)(c.C
2ontainer,{inert:er,size:"xl",className:"px-xl",ref:L,children:(0,l.jsxs)("div",{className:"mb-xl space-y-xl",children:[(0,l.jsxs)("div",{className:"w-full space-y-xl",children:[eo&&(0,l.jsx)("h1",{className:"text-wrap break-words text-[2.25rem] font-bold text-[--text-primary]",children:null==W?void 0:W.title}),!!(null==W?void 0:W.description)&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(b.Contents,{as:"p",html:null==W?void 0:W.description})}),(0,l.jsxs)("div",{className:"rounded-xl border border-[--border-secondary] bg-[--bg-secondary]",children:[ec&&!!(null==W?void 0:W.image)&&(0,l.jsx)(g.Image,{src:(0,v.resizeImage)(null==W?void 0:W.image,"large"),alt:null==W?void 0:W.title,cover:!0,className:"aspect-[2/1] h-[179px] w-full self-stretch rounded-xl tablet:aspect-auto tablet:h-[480px]"}),(0,l.jsxs)("div",{className:"flex w-full min-w-0 flex-col justify-between p-lg tablet:flex-row tablet:items-center",children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-col items-start gap-md text-sm font-normal text-[--text-quaternary] number-farsi tablet:flex-row tablet:items-center tablet:gap-xl",children:[eu&&!!(null==W?void 0:W.created)&&(0,l.jsxs)("div",{className:"flex flex-row items-center gap-xs",children:[(0,l.jsx)(R.ClockIcon,{className:"size-2xl stroke-[--primary-700,var(--text-quaternary)] stroke-[1.5]"}),(0,l.jsxs)("span",{children:[new Date(null==W?void 0:W.created).toLocaleDateString("fa-IR",{weekday:"long"})," ",new Date(null==W?void 0:W.created).toLocaleDateString("fa-IR",{day:"numeric",month:"long",year:"numeric"})]}),(0,l.jsx)("span",{children:" - "}),(0,l.jsx)("span",{children:new Date(null==W?void 0:W.created).toLocaleTimeString("fa-IR",{hour:"2-digit",minute:"2-digit",hour12:!1})})]}),ed&&!!(null==W?void 0:W.user)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"hidden text-[--fg-quinary] first:hidden last:hidden tablet:block",children:"|"}),(0,l.jsxs)("div",{className:"flex flex-row items-center gap-xs",children:[(0,l.jsx)(E.User02Icon,{className:"size-2xl stroke-[--primary-700,var(--text-quaternary)] stroke-[1.5]"}),(0,l.jsxs)("span",{children:["نویسنده:"," ",null!=(q=null==W||null==(C=W.user)?void 0:C.nickname)?q:null==W||null==(z=W.user)?void 0:z.name]})]})]})]}),ej&&(0,l.jsxs)("div",{className:"mt-md flex min-w-0 items-center gap-md tablet:mt-0",children:[(0,l.jsx)("div",{className:"text-sm font-medium text-[--text-secondary]",children:"اشتراک گذاری"}),(0,l.jsxs)("div",{className:"flex flex-row flex-wrap gap-xs rounded-full p-xs tablet:gap-sm",children:[ex&&(0,l.jsx)("a",{href:`https://wa.me/?text=${X.text}%20${X.url}`,target:"_blank",className:"group focus:outline-none",rel:"noopener noreferrer",children:(0,l.jsx)(o.IconFrame,{size:"sm",color:"default",variant:"light",className:"icon-frame-theme-default group-focus:outline-none group-focus-visible:ring-4 group-focus-visible:ring-[--ring-brand]",shape:"circular",children:(0,l.jsx)(m.WhatsappIcon,{className:"fill-[--primary-300,var(--fg-quinary)] group-hover:fill-[--primary-500,var(--fg-secondary)]"})})}),eh&&(0,l.jsx)("a",{href:`https://twitter.com/intent/tweet?url=${X.url}&text=${X.text}`,target:"_blank",className:"group focus:outline-none",rel:"noopener noreferrer",children:(0,l.jsx)(o.IconFrame,{size:"sm",color:"default",variant:"light",className:"icon-frame-theme-default group-focus:outline-none group-focus-visible:ring-4 group-focus-visible:ring-[--ring-brand]",shape:"circular",children:(0,l.jsx)(u.XIcon,{className:"fill-[--primary-300,var(--fg-quinary)] group-hover:fill-[--primary-500,var(--fg-secondary)]"})})}),ep&&(0,l.jsx)("a",{href:`https://www.linkedin.com/sharing/share-offsite/?url=${X.url}&text=${X.text}`,target:"_blank",className:"group focus:outline-none",rel:"noopener noreferrer",children:(0,l.jsx)(o.IconFrame,{size:"sm",color:"default",variant:"light",className:"icon-frame-theme-default group-focus:outline-none group-focus-visible:ring-4 group-focus-visible:ring-[--ring-brand]",shape:"circular",children:(0,l.jsx)(x.LinkedinIcon,{className:"fill-[--primary-300,var(--fg-quinary)] group-hover:fill-[--primary-500,var(--fg-secondary)]"})})}),ef&&(0,l.jsx)("a",{href:`https://t.me/share/url?url=${X.url}&text=${X.text}`,target:"_blank",className:"group focus:outline-none",rel:"noopener noreferrer",children:(0,l.jsx)(o.IconFrame,{size:"sm",color:"default",variant:"light",className:"icon-frame-theme-default group-focus:outline-none group-focus-visible:ring-4 group-focus-visible:ring-[--ring-brand]",shape:"circular",children:(0,l.jsx)(h.TelegramIcon,{className:"fill-[--primary-300,var(--fg-quinary)] group-hover:fill-[--primary-500,var(--fg-secondary)]"})})}),eg&&(0,l.jsx)("a",{href:I.convert.usernameToSocialLink("bale",X.url),target:"_blank",className:"group focus:outline-none",rel:"noopener noreferrer",children:(0,l.jsx)(o.IconFrame,{size:"sm",color:"default",variant:"light",className:"icon-frame-theme-default group-focus:outline-none group-focus-visible:ring-4 group-focus-visible:ring-[--ring-brand]",shape:"circular",children:(0,l.jsx)(p.BaleIcon,{className:"fill-[--primary-300,var(--fg-quinary)] group-hover:fill-[--primary-500,var(--fg-secondary)]"})})}),ev&&(0,l.jsx)("a",{href:I.convert.usernameToSocialLink("rubika",X.url),target:"_blank",className:"group focus:outline-none",rel:"noopener noreferrer",children:(0,l.jsx)(o.IconFrame,{size:"sm",color:"default",variant:"light",className:"icon-frame-theme-default group-focus:outline-none group-focus-visible:ring-4 group-focus-visible:ring-[--ring-brand]",shape:"circular",children:(0,l.jsx)(f.RubikaIcon,{className:"fill-[--primary-300,var(--fg-quinary)] group-hover:fill-[--primary-500,var(--fg-secondary)]"})})}),eb&&(0,l.jsx)("button",{type:"button",onClick:Z,className:"group focus:outline-none",children:(0,l.jsx)(o.IconFrame,{size:"sm",color:"default",variant:"light",shape:"circular",className:"icon-frame-theme-default group-focus:outline-none group-focus-visible:ring-4 group-focus-visible:ring-[--ring-brand]",children:(0,l.jsx)(P.Link03Icon,{className:"stroke-[--primary-300,var(--fg-quinary)] group-hover:stroke-[--primary-500,var(--fg-secondary)]"})})})]})]})]})]})]}),(0,l.jsxs)("div",{className:"flex w-full min-w-0 flex-col tablet:flex-row tablet:items-start tablet:gap-xl",children:[(0,l.jsxs)("div",{className:"min-w-0 flex-1 space-y-xl overflow-x-clip",children:[ei&&!!J.length&&M&&(0,l.jsx)("div",{className:"h-fit",children:(0,l.jsxs)(r.Collapsible,{defaultOpen:!1,className:"rounded-xl border border-[--border-secondary] bg-[--bg-primary]",children:[(0,l.jsxs)(i.CollapsibleTrigger,{className:"group flex w-full cursor-pointer flex-col p-xl text-[--text-primary]",children:[(0,l.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,l.jsx)("div",{children:"فهرست محتوا"}),(0,l.jsx)(t.CollapsibleChevron,{})]}),(0,l.jsx)("div",{className:"m-xl mb-0 flex w-full flex-col items-start gap-xs space-y-md ps-lg group-data-[state=open]:hidden",children:J.length>0&&(0,l.jsxs)("span",{className:"line-clamp-1 text-sm font-normal text-[--text-tertiary]",children:[(0,l.jsx)("span",{className:"ml-sm",children:"•"}),J[0].text]})})]}),(0,l.jsx)(s.CollapsibleContent,{children:(0,l.jsx)("div",{className:"p-xl pt-0 text-sm font-normal text-[--text-quaternary] empty:hidden",children:J.length>0&&(0,l.jsx)("ul",{className:"space-y-md ps-lg",children:null==J?void 0:J.map(e=>{var a,r;return(0,l.jsxs)("li",{className:"space-y-xs",children:[(0,l.jsxs)(y.NavLink,{href:`#${e.id}`,"data-active":el===e.id,onClick:l=>ee(l,e.id),className:(0,j.cn)("-ms-px inline-flex items-center gap-sm py-md transition-colors duration-200 hover:text-[--text-secondary] data-[active=true]:text-[--primary-800,var(--text-brand-secondary)]"),children:[(0,l.jsx)("span",{children:"•"}),e.text]}),!!(null==(a=e.children)?void 0:a.length)&&(0,l.jsx)("ul",{className:"ms-xxs border-s border-[--border-secondary] ps-lg text-xs",children:null==(r=e.children)?void 0:r.map(e=>(0,l.jsx)("li",{children:(0,l.jsx)(y.NavLink,{href:`#${e.id}`,"data-active":el===e.id,onClick:l=>ee(l,e.id),className:(0,j.cn)("block py-xs text-[--text-quaternary] transition-colors duration-200 hover:text-[--text-secondary] data-[active=true]:text-[--primary-800,var(--text-brand-secondary)]"),children:e.text})},e.id))})]},e.id)})})})})]})}),es&&(0,l.jsx)(b.Contents,{html:Y,className:"!mt-xl tablet:!mt-2xl"})]}),(0,l.jsxs)("aside",{ref:V,className:(0,j.cn)("h-fit w-full pb-xl transition-all duration-200 tablet:sticky tablet:w-[280px] tablet:max-w-[300px] tablet:shrink-0",G&&"bottom-0 top-[min(calc(var(--header-height)+16px),calc(100dvh-var(--post-sidebar-height-layout2)-16px))]",H&&"bottom-[min(0px,calc(100dvh-var(--post-sidebar-height-layout2)))] top-[calc(var(--header-height)+16px)]"),children:[ei&&!!J.length&&!M&&(0,l.jsxs)("div",{className:"mb-xl h-fit overflow-hidden rounded-xl border border-[--border-secondary] bg-[--bg-primary] p-xl",children:[(0,l.jsx)("div",{className:"mb-md w-full text-md text-[--text-primary]",children:(0,l.jsx)("span",{children:"فهرست محتوا"})}),(0,l.jsx)("div",{className:"text-sm font-normal text-[--text-tertiary] empty:hidden",children:J.length>0&&(0,l.jsx)("ul",{className:"space-y-md",children:null==J?void 0:J.map(e=>{var a,r;return(0,l.jsxs)("li",{className:"space-y-xs",children:[(0,l.jsxs)(y.NavLink,{href:`#${e.id}`,"data-active":el===e.id,onClick:l=>ee(l,e.id),className:(0,j.cn)("-ms-px inline-flex items-center gap-x-md text-[--text-tertiary] transition-colors duration-200 hover:text-[--text-secondary] data-[active=true]:text-[--primary-800,var(--text-brand-secondary)]"),children:[(0,l.jsx)("span",{children:"•"}),(0,l.jsx)("span",{children:e.text})]}),!!(null==(a=e.children)?void 0:a.length)&&(0,l.jsx)("ul",{className:"ms-xxs border-s border-[--border-secondary] ps-lg text-xs",children:null==(r=e.children)?void 0:r.map(e=>(0,l.jsx)("li",{children:(0,l.jsx)(y.NavLink,{href:`#${e.id}`,"data-active":el===e.id,onClick:l=>ee(l,e.id),className:(0,j.cn)("block py-xs text-[--text-quaternary] transition-colors duration-200 hover:text-[--text-secondary] data-[active=true]:text-[--primary-800,var(--text-brand-secondary)]"),children:e.text})},e.id))})]},e.id)})})})]}),en&&!!(null==W?void 0:W.tags)&&(0,l.jsxs)("div",{className:"mt-xl w-full overflow-hidden rounded-xl tablet:mt-0 tablet:border tablet:border-[--border-secondary] tablet:bg-[--bg-primary] tablet:p-xl",children:[(0,l.jsx)("div",{className:"mb-lg text-md font-medium text-[--text-secondary]",children:"تگ‌ها"}),(0,l.jsx)("div",{className:"flex flex-row flex-wrap gap-xs",children:null==W||null==(S=W.tags)?void 0:S.map(e=>(0,l.jsx)("a",{href:`/${e.slug}`,className:"min-w-0",children:(0,l.jsx)(n.Badge,{color:"default",size:"md",shape:"rounded",variant:"light",className:"w-full min-w-0",children:(0,l.jsx)("span",{className:"truncate",children:e.title})})},e.tagID))})]}),(0,l.jsx)(d.Separator,{className:"my-xl tablet:hidden"}),em&&(0,l.jsx)("div",{className:"mt-xl w-full rounded-xl tablet:border tablet:border-[--border-secondary] tablet:bg-[--bg-primary] tablet:p-xl",children:(0,l.jsx)(F,{options:et,post:W})})]})]})]})})}),er&&ea&&(0,l.jsx)(O,{widget:D,layout:D.layout,items:[{title:"کل بخش",options:["image","author","date","table","tags"]},{title:"مقالات مرتبط",options:["relatedItemTitle","relatedItemCategory","relatedItemImage","relatedItemDate"]},{title:"شبکه‌های اجتماعی",options:["whatsapp","twitter","linkedin","telegram","bale","rubika","copy"]}],validKeys:["wholeTitle","social","title","postFilter","sort","count"]})]}):null}],737867)},300869,function(e){e.n(e.i(737867))}]);
3
4//# debugId=53ca1509-3fc5-f3f3-7d99-92dd1bca805c

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.