PageSourceSearch

https://www.barakasheabutter.com/_next/static/chunks/7121.d0728f572523ab04.js

js barakasheabutter.com collected 2026-09-25 18:44:20 UTC 6,802 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7121],{87121:function(e,t,r){r.r(t),r.d(t,{MarkdownText:function(){return T}});var n=r(52322),l=r(12524),a=r.n(l),c=r(19453),i=r(2784),o=r(86741),s=r(37539),u=r(64591),d=r(88848),h=r.n(d),v=r(51945),f=r(25237),m=r.n(f),p=r(30361),b=r.n(p),g=r(83441);let y=m()(()=>r.e(8573).then(r.bind(r,88573)),{loadableGenerated:{webpack:()=>[88573]}}),x=e=>{try{return JSON.parse(e),!0}catch(e){return!1}},E=e=>{let t="";return e.forEach(e=>{e.italic?t+="<i>".concat(e.value,"</i>"):e.bold?t+="<b>".concat(e.value,"</b>"):t+=e.value}),t},A=e=>{if(e.italic)return"<i>".concat(e.value,"</i>");if(e.bold)return"<b>".concat(e.value,"</b>");if("link"===e.type&&e.children){let t='\n            <a\n              href="'.concat(e.url,'"\n              target="').concat(e.target,'"\n            >\n              ').concat(E(e.children),"\n            </a>\n          ");return e.bold&&(t="<b>".concat(t,"</b>")),e.italic&&(t="<i>".concat(t,"</i>")),t}return e.value},w=(e,t)=>{let r=[];-1===e.indexOf("<h")&&r.push({heading:void 0,headingText:void 0,body:e});let n=t&&"all"!==t?t.split(">")[0]:"<h";return e.split(n).forEach((e,l)=>{if(0===l&&!e)return;if(0===l){r.push({heading:void 0,headingText:void 0,body:e});return}let a=t&&"all"!==t?n.charAt(n.length-1):e.charAt(0),c=e.split("</h".concat(a,">"))[0].split(">"),i="";c.forEach((e,t)=>{t>0&&(i+=e,e.includes("<")&&(i+=">"))}),r.push({heading:"<h".concat(a,">").concat(i,"</h").concat(a,">"),headingText:b().decode(i.replace(/<\/?[^>]+(>|$)/g,"")),body:e.split("</h".concat(a,">"))[1]})}),r},k=c.ZP.div.withConfig({componentId:"sc-c3e6a001-0"})(["",""],e=>e.customcss),T=e=>{var t,r,l;let c;let{className:d,content:f,customCSS:m,useHtmlObject:p,headerTarget:b,children:E,protectAnchors:T}=e,M=!!(0,s.M_)(),N=(0,g.Pi)(),j=(null!==(t=null==N?void 0:N.css)&&void 0!==t?t:"")+(null!=m?m:""),C=(0,i.useMemo)(()=>{let e=f;return(null==e?void 0:e.startsWith('"'))&&(null==e?void 0:e.endsWith('"'))&&(e=e.slice(1,-1)),e},[f]),L=(0,i.useRef)(null),B=x(C)?(r=JSON.parse(C),c="",null==r||null===(l=r.children)||void 0===l||l.forEach(e=>{switch(e.type){case"heading":let t="";e.children.forEach(e=>t+=A(e)),c+="<h".concat(e.level,">").concat(t,"</h").concat(e.level,">");break;case"list":c+="<".concat("unordered"===e.listType?"ul":"ol",">"),e.children.forEach(e=>{let t="";e.children.forEach(e=>{if("heading"===e.type&&e.children){let r="";e.children.forEach(e=>{r+=A(e)}),t+="<h".concat(e.level,">").concat(r,"</h").concat(e.level,">")}if("link"===e.type&&e.children){let r="";e.children.forEach(e=>{r+=A(e)}),r='<a href="'.concat(e.url,'" target="').concat(e.target,'">').concat(r,"</a>"),t+=r}"text"===e.type&&(t+=A(e))}),c+="<li>".concat(t,"</li>")}),c+="<".concat("unordered"===e.listType?"/ul":"/ol",">");break;case"paragraph":c+="<p>",e.children.forEach(e=>{c+=A(e)}),c+="</p>"}}),c):C,H=(0,i.useMemo)(()=>!p&&!!B&&/^\s*<(?:!doctype|html|body|main|div|section|article|p|h[1-6]|ul|ol|li|table|blockquote|pre|script|link)\b/i.test(B
1)&&!((null==B?void 0:B.includes("<"))&&(null==B?void 0:B.includes(">"))&&[/^\s{0,3}#{1,6}\s+/m,/^\s{0,3}[-*+]\s+/m,/^\s{0,3}\d+\.\s+/m,/^\s{0,3}>\s+/m,/```|~~~/,/\[[^\]]+\]\([^\)]+\)/,/^\s{0,3}[-*_]{3,}\s*$/m].some(e=>e.test(B))),[p,B]),_=(0,u.F)(),P=(0,i.useMemo)(()=>p&&B?w(B,b):{},[p,B]);return(0,i.useEffect)(()=>{L.current&&L.current.querySelectorAll("img").forEach(e=>{var t,r,n;if(!e.src||e.src===(null===(r=window)||void 0===r?void 0:null===(t=r.location)||void 0===t?void 0:t.href)&&M){let t=e.getAttribute("data-src");t&&(e.src=t);let r=e.getAttribute("data-srcset");r&&(e.srcset=r)}let l=null===(n=(0,o.ZP)(e.outerHTML))||void 0===n?void 0:n.props.src;(null==l?void 0:l.includes("cdn.shopify.com"))&&!(null==l?void 0:l.includes("https://"))&&(e.src="https://".concat(l.split("//")[1]))})},[L.current]),(0,i.useEffect)(()=>{var e;if(!T||!L.current)return;let t=new Map,r=!1,n=null,l=e=>{n&&clearTimeout(n),n=setTimeout(()=>{requestAnimationFrame(()=>{r||(r=!0,e(),r=!1)})},0)};t.clear(),((null===(e=L.current)||void 0===e?void 0:e.querySelectorAll("a"))||[]).forEach(e=>{let r=Array.from(e.attributes).map(e=>({name:e.name,value:e.value}));t.set(e,{attributes:r,innerHTML:e.innerHTML})});let a=new MutationObserver(e=>{if(r)return;let n=!1,a=new Set;e.forEach(e=>{if("attributes"===e.type&&"A"===e.target.nodeName){let r=e.target;t.has(r)&&(a.add(r),n=!0)}if("childList"===e.type){if("A"===e.target.nodeName){let r=e.target;t.has(r)&&(a.add(r),n=!0)}e.addedNodes.forEach(e=>{if(e.parentElement&&"A"===e.parentElement.nodeName){let r=e.parentElement;t.has(r)&&(a.add(r),n=!0)}})}}),n&&l(()=>{a.forEach(e=>{let r=t.get(e);r&&(Array.from(e.attributes).forEach(t=>{r.attributes.find(e=>e.name===t.name)||e.removeAttribute(t.name)}),r.attributes.forEach(t=>{e.getAttribute(t.name)!==t.value&&e.setAttribute(t.name,t.value)}),e.innerHTML!==r.innerHTML&&(e.innerHTML=r.innerHTML))})})});return a.observe(L.current,{attributes:!0,childList:!0,subtree:!0,attributeOldValue:!0}),()=>{a.disconnect(),n&&clearTimeout(n)}},[T,B]),(0,n.jsx)(k,{customcss:j,className:a()(d),children:(0,n.jsx)("div",{ref:L,children:p?P?(0,n.jsx)(s.FW,{name:"HTML Object",data:P,children:E}):null:H?(0,n.jsx)("div",{className:"markdown-section",children:(0,o.ZP)(B)}):(0,n.jsx)(y,{className:"markdown-section",urlTransform:e=>(null==_?void 0:_.blogSource)==="strapi"?e.startsWith("http")||e.startsWith("#")?e:"".concat(h()(void 0).BLINK_CMS_URL).concat(e):e,components:{h1:"h1",h2:"h2",h3:"h3",h4:"h4"},rehypePlugins:[v.Z],children:B})})})};t.default=T},64591:function(e,t,r){r.d(t,{Z:function(){return o},F:function(){return s}});var n=r(2784),l=r(52322),a=r(12524),c=r.n(a),i=e=>{let{text:t,isActive:r,setActive:n}=e;return(0,l.jsx)("div",{className:c()("flex cursor-pointer my-2 md:my-0 border-2 rounded-full border-black","bg-".concat(r?"black":"white"),"text-".concat(r?"white":"black")),onClick:()=>n(),role:"button",children:(0,l.jsxs)("div",{className:"px-2",children:[(0,l.jsx)("span",{children:t||""})," "]})})};(0,r(85655).QM)(e=>{var t;let{className:r}=e,n=s();return n?(0,l.jsxs)("div",{className:c()("flex justify-start md:justify-between md:w-1/3 flex-col md:flex-row",r),children:[(0,l.jsx)(i,{text:"All Posts",isActive:!n.activeBlogCategory,setActive:()=>{var e;return null===(e=n.setActiveBlogCategory)||void 0===e?void 0:e.call(n,"")}}),null===(t=n.blogCategories)||void 0===t?void 0:t.map((e,t)=>(0,l.jsx)(i,{text:e.title,isActive:n.activeBlogCategory===e.slug,setActive:()=>{var t;return null===(t=n.setActiveBlogCategory)||void 0===t?void 0:t.call(n,e.slug)}},t))]}):null},{name:"BlogCategoryButtons",props:{}});let o=(0,n.createContext)(null),s=()=>{let e=(0,n.useContext)(o);return void 0===e?(console.error("useBlogContext must be used within a Provider"),null):e}}}]);

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.