PageSourceSearch

https://saharfood.co/_next/static/chunks/pages/brand/[slug]-a5f70ec233a44d9a.js

js saharfood.co collected 2026-10-07 18:05:10 UTC 12,115 bytes, 13 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4627],{4352:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/brand/[slug]",function(){return n(917)}])},133:function(e,t,n){"use strict";var i=n(5893),r=n(5675),l=n.n(r),a=n(7294);let s=e=>{try{return new URL(e)}catch(e){return null}},o=e=>{let{fill:t,className:n="",showLoader:r=!0,src:o,...c}=e,[d,u]=(0,a.useState)(!1),p=(0,a.useMemo)(()=>{if(!o)return"";if("string"!=typeof o)return o;let e="https://api.saharfoodco.ir";if(o.startsWith("/uploads/"))return e+o;let t=s(e),n=s(o);return t&&n?(n.host=t.host,n.href):o},[o]);return(0,i.jsxs)(i.Fragment,{children:[r&&!d&&(0,i.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,i.jsx)("div",{className:"animate-spin border-solid border-8 border-gray-300 rounded-full border-t-red-600 size-10"})}),(0,i.jsx)(l(),{fill:t,src:p,className:"transition-opacity ".concat(n," ").concat(t?"object-cover":""," ").concat(d?"opacity-100":"opacity-0"),placeholder:"blur",blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mN8/5+pPwAFfAJ4j8M+8wAAAABJRU5ErkJggg==",onLoad:()=>{u(!0)},...c},"string"==typeof o?o:JSON.stringify(o))]})};t.Z=o},3701:function(e,t,n){"use strict";n.d(t,{$:function(){return h}});var i=n(5893),r=n(7294),l=n(3546),a=n(9234),s=n(133),o=n(5865),c=n.n(o);let d=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")},u=(e,t)=>(null==e?void 0:e.type)==="element"&&e.tagName===t,p=e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.every(e=>u(e,"img")||(null==e?void 0:e.type)==="text"&&""===e.value.trim())},m=(e,t)=>{let n="number"==typeof e?e:"string"==typeof e?parseInt(e.replace("px",""),10):NaN;return Number.isFinite(n)&&n>0?n:t},x=e=>r.Children.map(e,e=>r.isValidElement(e)&&u(e.props.node,"img")?r.cloneElement(e,{renderInline:!0}):e),g={figure:e=>{var t,n,r,l;let{children:a,className:s,node:o,style:p,...m}=e,x=null===(t=o.children)||void 0===t?void 0:t.find(e=>u(e,"img"));if(x){let e=(null===(n=x.properties)||void 0===n?void 0:n.alt)||"",t=e.toLowerCase().includes("{caption:"),g=null===(r=e.match(/{caption: (.*?)}/))||void 0===r?void 0:r[1],h=null===(l=o.children)||void 0===l?void 0:l.some(e=>u(e,"figcaption"));return(0,i.jsxs)("figure",{...m,className:d("postImgWrapper text-center relative",s),style:p,children:[a,t&&!h&&(0,i.jsx)("figcaption",{className:d(c().caption,"caption"),"aria-label":g,children:g})]})}return(0,i.jsx)("figure",{...m,className:s,style:p,children:a})},p:e=>{var t,n,r;let{children:l,className:a,node:s,style:o,...m}=e,g=null===(t=s.children)||void 0===t?void 0:t.find(e=>u(e,"img"));if(g&&p(s)){let e=(null===(n=g.properties)||void 0===n?void 0:n.alt)||"",t=e.toLowerCase().includes("{caption:"),s=null===(r=e.match(/{caption: (.*?)}/))||void 0===r?void 0:r[1];return(0,i.jsxs)("div",{...m,className:d("postImgWrapper text-center relative",a),style:o,children:[l,t&&(0,i.jsx)("span",{className:d(c().caption,"caption"),"aria-label":s,children:s})]})}return(0,i.jsx)("p",{...m,className:a,style:o,children:x(l)})},img:e=>{var t,n,r,l,a;let{alt:o,className:c,height:u,node:p,renderInline:x=!1,sizes:g,src:h,style:f,width:v,...j}=e,y=o||(null===(t=p.properties)||void 0===t?void 0:t.alt)||"",A=y.replace(/ *\{[^}]*\} */g,""),b=y.match(/x([^}]+)}/),N=m(null!=v?v:null===(n=p.properties)||void 0===n?void 0:n.width,768),w=m(null!==(a=null!=u?u:null==b?void 0:b[1])&&void 0!==a?a:null===(r=p.properties)||void 0===r?void 0:r.height,432),k=y.toLowerCase().includes("{priority}");return delete j.node,(0,i.jsx)(s.Z,{...j,src:h||p.properties.src,sizes:g||(null===(l=p.properties)||void 0===l?void 0:l.sizes)||"",width:N,height:w,className:d("postImg rounded-[1.25rem]",c),alt:A,priority:k,showLoader:!x&&!c,style:{...f,height:"auto",maxWidth:"100%"}})},a:e=>{let{children:t,className:n,...r}=e;return delete r.node,(0,i.jsx)("a",{...r,className:d(c().link,n),children:t})},table:e=>{let{children:t,className:n,style:r,...l}=e;return delete l.node,(0,i.jsx)("div",{className:c().tableWrapper,children:(0,i.jsx)("table",{...l,className:n,style:r,children:t})})}},h=e=>{let{text:t,additionalClassNames:n=""}=e;
1return(0,i.jsx)("div",{className:d(c().content,n),children:(0,i.jsx)(l.D,{components:g,rehypePlugins:[a.Z],children:t})})}},917:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return B},default:function(){return C}});var i=n(5893),r={src:"/_next/static/media/brand-bg.1ccc9e22.png",height:334,width:1920,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAABCAYAAADjAO9DAAAAKElEQVR4nGO8yaDwlpWB7Q8DA+MfJgam3yD6J8Ov38wMzL+ZGJj/AACqsArY6T/e4gAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:1};function l(e){let{brandName:t}=e;return(0,i.jsx)("div",{className:"h-96 lg:h-80 flex items-center bg-cover",style:{backgroundImage:"url(".concat(r.src,")")},children:(0,i.jsx)("h1",{className:"text-white font-bold text-3xl lg:text-[2rem] px-[1.125rem] lg:max-w-[60%] mx-auto w-full",children:t})})}var a=n(3701),s=n(7294),o=n(990);/*!
2 * @gsap/react 2.1.1
3 * https://gsap.com
4 *
5 * Copyright 2008-2024, GreenSock. All rights reserved.
6 * Subject to the terms at https://gsap.com/standard-license or for
7 * Club GSAP members, the agreement issued with that membership.
8 * @author: Jack Doyle, [email protected]
9*/let c="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,d=e=>e&&!Array.isArray(e)&&"object"==typeof e,u=[],p={},m=o.ZP,x=(e,t=u)=>{let n=p;d(e)?(n=e,e=null,t="dependencies"in n?n.dependencies:u):d(t)&&(t="dependencies"in(n=t)?n.dependencies:u),e&&"function"!=typeof e&&console.warn("First parameter must be a function or config object");let{scope:i,revertOnUpdate:r}=n,l=(0,s.useRef)(!1),a=(0,s.useRef)(m.context(()=>{},i)),o=(0,s.useRef)(e=>a.current.add(null,e)),x=t&&t.length&&!r;return c(()=>{if(e&&a.current.add(e,i),!x||!l.current)return()=>a.current.revert()},t),x&&c(()=>(l.current=!0,()=>a.current.revert()),u),{context:a.current,contextSafe:o.current}};x.register=e=>{m=e},x.headless=!0;var g=n(3967),h=n.n(g),f=n(3750);function v(e){let{heading:t,description:n}=e,[r,l]=(0,s.useState)(!1),c=(0,s.useRef)(null);o.ZP.registerPlugin(x);let{contextSafe:d}=x({scope:c}),u=d(()=>{o.ZP.to(".accordion-description",{height:r?0:"auto",ease:"power2.inOut"}),l(e=>!e)});return(0,i.jsxs)("div",{ref:c,onClick:u,className:h()("rounded-3xl border py-2 px-4 border-solid cursor-pointer transition mb-4 mt-8 lg:mt-10 lg:mb-6 overflow-hidden",r?"border-[#4A9F29] bg-[#F9FFF6]":"border-[#BCBCBC]"),children:[(0,i.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,i.jsx)("h2",{className:"font-medium text-lg lg:text-xl lg:leading-8 mb-0",children:t}),(0,i.jsx)(f.IAR,{className:h()("w-6 h-6 transition-all",r?"text-[#4A9F29] [scale:-1]":"text-[#BCBCBC]")})]}),(0,i.jsx)("div",{className:"accordion-description h-0",children:(0,i.jsxs)("div",{className:"pt-4",children:[(0,i.jsx)(a.$,{text:n}),(0,i.jsx)("div",{className:"pt-px"})]})})]})}var j=n(5675),y=n.n(j);function A(e){let{image:t}=e;return(0,i.jsx)("div",{className:"py-8 lg:py-10",children:(0,i.jsx)(y(),{src:t.src,alt:t.alt,width:1600,height:900,className:"object-contain object-center w-full h-auto"})})}function b(e){let{heading:t,description:n}=e;return(0,i.jsxs)("div",{className:"pt-12 pb-8 lg:pt-16 lg:pb-12",children:[(0,i.jsxs)("h2",{className:"font-medium text-2xl leading-relaxed mb-4 relative",children:[(0,i.jsx)("div",{className:"absolute w-5 h-1 bg-[#E0E0E0] left-full ml-4 top-1/2 -translate-y-1/2 rounded hidden lg:block"}),(0,i.jsx)("span",{children:t})]}),(0,i.jsx)(a.$,{text:n})]})}function N(e){let{src:t}=e;return(0,i.jsx)("div",{className:"py-8 lg:py-10",children:(0,i.jsx)("video",{src:t,controls:!0,className:"w-full h-auto"})})}function w(e){var t;return{src:"".concat("https://api.saharfoodco.ir").concat(e.data.attributes.url),alt:null!==(t=e.data.attributes.alternativeText)&&void 0!==t?t:e.data.attributes.name}}function k(e){let{components:t}=e;return(0,i.jsx)("div",{className:"mx-auto px-[1.125rem] lg:max-w-[60%] mb-28 min-h-screen",children:t.map((e,t)=>{switch(e.__component){case"dynamic.dynamic-paragraph":return(0,i.jsx)(b,{heading:e.heading,description:e.description},t);case"dynamic.dynamic-accordion":return(0,i.jsx)(v,{heading:e.heading,description:e.description},t);case"dynamic.dynamic-image":return(0,i.jsx)(A,{image:w(e.image)},t);case"dynamic.dynamic-video":return(0,i.jsx)(N,{src:w(e.video).src},t);default:return null}})})}var _=n(4685),E=n(3623);let z=e=>{var t,n,r,a;let{brands:s,socials:o,brand:c}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(E.Z,{title:null===(t=c.attributes)||void 0===t?void 0:null===(n=t.seo)||void 0===n?void 0:n.metaTitle,de
9scription:null===(r=c.attributes)||void 0===r?void 0:null===(a=r.seo)||void 0===a?void 0:a.metaDescription}),(0,i.jsx)(_.Z,{isInnerPage:!0,footerSocials:o,menuBrands:s,children:(0,i.jsx)("div",{className:"brand-page",children:(0,i.jsxs)("div",{className:"content",children:[(0,i.jsx)(l,{brandName:c.attributes.title}),(0,i.jsx)(k,{components:c.attributes.sections})]})})})]})};var B=!0,C=z},3623:function(e,t,n){"use strict";var i=n(5893),r=n(9008),l=n.n(r),a=n(1163),s=n(7294);let o=e=>{let{title:t,description:n,ogImage:r,ogUrl:o}=e,{asPath:c,locale:d}=(0,a.useRouter)(),u=(0,s.useMemo)(()=>{let e=c.split(/[?#]/)[0];return"".concat("https://saharfoodco.ir").concat("fa"!==d?"/".concat(d):"").concat(e)},[d,c]);return(0,i.jsxs)(l(),{children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("meta",{name:"description",content:n}),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),r&&(0,i.jsx)("meta",{property:"og:image",content:r}),o&&(0,i.jsx)("meta",{property:"og:url",content:o}),(0,i.jsx)("link",{rel:"canonical",href:u}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"57x57",href:"/img/icon/apple-icon-57x57.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"60x60",href:"/img/icon/apple-icon-60x60.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"72x72",href:"/img/icon/apple-icon-72x72.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"76x76",href:"/img/icon/apple-icon-76x76.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"114x114",href:"/img/icon/apple-icon-114x114.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"120x120",href:"/img/icon/apple-icon-120x120.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"144x144",href:"/img/icon/apple-icon-144x144.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"152x152",href:"/img/icon/apple-icon-152x152.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/img/icon/apple-icon-180x180.png"}),(0,i.jsx)("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"/img/icon/android-icon-192x192.png"}),(0,i.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/icon/favicon-32x32.png"}),(0,i.jsx)("link",{rel:"icon",type:"image/png",sizes:"96x96",href:"/img/icon/favicon-96x96.png"}),(0,i.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/img/icon/favicon-16x16.png"})]})};t.Z=o},5865:function(e){e.exports={content:"markdown_content__qChBp",caption:"markdown_caption__oBwF3",link:"markdown_link__pyjdX",tableWrapper:"markdown_tableWrapper__eyG8m"}},3967:function(e,t){var n;/*!
10	Copyright (c) 2018 Jed Watson.
11	Licensed under the MIT License (MIT), see
12	http://jedwatson.github.io/classnames
13*/!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)i.call(e,n)&&e[n]&&(t=l(t,n));return t}(n)))}return e}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0!==(n=(function(){return r}).apply(t,[]))&&(e.exports=n)}()}},function(e){e.O(0,[5445,296,9866,8802,2013,3996,7099,5675,6001,4685,9774,2888,179],function(){return e(e.s=4352)}),_N_E=e.O()}]);

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.