PageSourceSearch

https://stagingcanadabeef.netlify.app/static/js/925.0f6478b6.chunk.js

js stagingcanadabeef.netlify.app collected 2026-10-03 11:26:58 UTC 8,533 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkcanadabeef=self.webpackChunkcanadabeef||[]).push([[925],{4588:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(4942),i=n(1413),o=n(9871),s=n(1523),a=n(8870),c=n(3767),l=n(890),d=n(2492),u="TileCard_tile_card__ybysk",x=n(184),f=function(e){var t,n=e.title,f=e.subtitle,p=e.subtext,h=e.imageUrl,m=e.url,g=e.search,v=void 0===g?"":g,Z=e.sx,b=void 0===Z?{}:Z,j=e.topAction,k=void 0===j?null:j,_=e.bottomAction,y=void 0===_?null:_,w=(0,o.useLocation)();return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(a.Z,{sx:(0,i.Z)((t={position:"relative",height:"60vh",color:"#ffffff",border:"1px solid #000",background:"linear-gradient(to bottom, RGBA(0, 0, 0, 0.55), RGBA(0, 0, 0, 0) 57%, RGBA(0, 0, 0, 0.77)), url(".concat(h,") no-repeat center center"),backgroundSize:"cover"},(0,r.Z)(t,"position","relative"),(0,r.Z)(t,"boxShadow","-2px 10px 20px rgba(0,0,0,0.6) inset"),t),b),children:[(0,x.jsx)(s.rU,{to:{pathname:m,search:v,state:{from:"".concat(w.pathname).concat(w.search)}},style:{textDecoration:"none"},className:"w-100",children:(0,x.jsx)(c.Z,{direction:"column",justifyContent:"flex-start",className:u,sx:{height:"100%"},children:k})}),(0,x.jsxs)(a.Z,{sx:{position:"absolute",bottom:0,left:0,right:0,zIndex:9,mb:{xs:2,md:3,lg:3},mx:{xs:2,md:3,lg:3}},children:[(0,x.jsx)(l.Z,{sx:{color:"#fff",fontSize:"0.6rem",fontWeight:"bold",textTransform:"uppercase"},noWrap:!0,component:"div",children:f}),(0,x.jsx)(l.Z,{variant:"h2",sx:{my:0,color:"#ffffff",fontSize:"2rem",fontWeight:"500"},children:(0,x.jsx)(d.Z,{children:n})}),(0,x.jsx)(l.Z,{component:"div",sx:{my:0,color:"#ffffff"},children:(0,x.jsx)(d.Z,{truncatedAt:3,children:p})}),(0,x.jsx)(a.Z,{children:y})]})]})})}},4298:function(e,t,n){n.d(t,{Z:function(){return x}});var r=n(2791),i=n(2020),o=n(8582),s=n(8870),a=n(3767),c=n(890),l=n(8627),d=n(9373),u=n(184),x=function(e){var t=e.content,n=void 0===t?"":t,x=(0,r.useContext)(d.Z).retailer,f=(0,i.$)().t;return(0,u.jsx)(s.Z,{className:"tip_wrap",sx:{my:2},children:(0,u.jsxs)(a.Z,{className:"tip_tile",sx:{p:3,pb:5},children:[(0,u.jsxs)(a.Z,{direction:"row",alignItems:"center",justifyContent:"flex-start",children:[(0,u.jsx)(o.Z,{sx:{fontSize:"32px",color:x.brand_color}}),(0,u.jsx)(c.Z,{sx:{pl:1,fontSize:"16px",fontWeight:500,textTransform:"uppercase",color:"#262626"},children:f("tip")})]}),(0,u.jsx)(c.Z,{sx:{pt:2,fontSize:"18px",fontWeight:"300"},component:"div",children:(0,u.jsx)(l.Z,{content:n})})]})})}},925:function(e,t,n){n.r(t),n.d(t,{default:function(){return A}});var r=n(4165),i=n(5861),o=n(9439),s=n(2791),a=n(9871),c=n(6030),l=n(2020),d=n(8870),u=n(9164),x=n(890),f=n(1889),p=n(700),h=n(2492),m=n(9396),g=n(9373),v=n(6021),Z=n(6995),b=n(8591),j=n(3806),k=n(4406),_=n(4298),y=n(9878),w=n(4588),C=n(4069),S=n(3959),z=n(6121),N=n(9861),P=n(184),A=function(){var e,t,n,A,L=(0,s.useContext)(g.Z),M=(0,c.v9)((function(e){return e.language})),U=(0,l.$)().t;var W=function(){var e=(0,a.useLocation)().search;return s.useMemo((function(){return new URLSearchParams(e)}),[e])}().get("cooking_method"),q=(0,s.useState)({}),G=(0,o.Z)(q,2),R=G[0],T=G[1],B=(0,s.useState)([]),D=(0,o.Z)(B,2),F=D[0],I=D[1],V=(0,s.useState)([]),$=(0,o.Z)(V,2),E=$[0],H=$[1],O=(0,s.useState)(!0),J=(0,o.Z)(O,2),K=J[0],Q=J[1];(0,p.f)(L.retailer.id),(0,Z.F)(),(0,s.useEffect)((0,i.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T({}),L.retailer.id&&(X(),Y(),ee()),e.abrupt("return",(function(){}));case 3:case"end":return e.stop()}}),e)}))),[W]);var X=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var t,n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.scrollTo(0,0),W){e.next=3;break}return e.abrupt("return");case 3:return Q(!0),e.prev=4,e.next=7,m.Z.getCookingMethod(W);case 7:n=e.sent,(0,N.Z)({event:"pageContentLoaded",title:(null===(t=(0,v.i)(n,{key:"languages_code",code:M.code}))||void 0===t?void 0:t.Method)||U("cookingMethod")}),T(n),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),e.t0.map((function(e){return(0,j.Z)("error",e.message)}));case 15:return e.prev=15,Q(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[4,12,15,18]])})));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var t,n,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(W){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,t={filter:{cooking_methods:{cooking_method:{id:{_eq:W}}}}},e.next=6,m.Z.getListProducts(t);case 6:n=e.sent,i=(null===n||void 0===n?void 0:n.map((function(e){var t=(0,C.B)(e,L.retailer,M),n=(0,v.i)(t,{key:"languages_code",code:M.code}),r=(0,v.i)(e,{key:"languages_id",code:M.code}),i=(null===n||void 0===n?void 0:n.description)||(null===r||void 0===r?void 0:r.description),o=null===e||void 0===e?void 0:e.image;return{id:e.id,url:"/beef/".concat(e.slug||e.id),title:n.name||r.name,subtext:i,imageUrl:o?"".concat("https://staging.admin.cdnbeef.ca","/assets/").concat(o,"?key=tile-background-image-beef-wholesale"):null}})))||[],I(i),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),e.t0.map((function(e){return(0,j.Z)("error",e.message)}));case 14:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(){return e.apply(this,arguments)}}(),ee=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var t,n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(W){e.next=2;break}return e.abrupt("return");case 2:return"id,cooking,prep,total_time,ingredients_list,layout_translations.*,imagegallery.*,difficulty,yields,cooking_method.cooking_method_id.translations.*",e.prev=3,t={_and:[{_or:[{retailers:{retailer_id:{_eq:L.retailer.id}}},{retailer:{id:{_eq:L.retailer.id}}}]},{status:{_eq:"published"}},{cooking_method:{cooking_method_id:{_eq:W}}}]},e.next=7,m.Z.searchRecipes({filter:t},"id,cooking,prep,total_time,ingredients_list,layout_translations.*,imagegallery.*,difficulty,yields,cooking_method.cooking_method_id.translations.*");case 7:n=e.sent,H(n),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(3),console.log("error",e.t0),e.t0.map((function(e){return(0,j.Z)("error",e.message)}));case 15:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(){return e.apply(this,arguments)}}();return K?(0,P.jsx)(b.Z,{}):(0,P.jsxs)(d.Z,{className:"cooking-method-page",children:[(0,P.jsx)(u.Z,{maxWidth:!1,disableGutters:!0,sx:{p:0},children:(0,P.jsx)(d.Z,{children:(0,P.jsx)(k.Z,{item:{name:null===(e=(0,v.i)(R,{key:"languages_code",code:M.code}))||void 0===e?void 0:e.Method}})})}),(0,P.jsx)(u.Z,{disableGutters:!0,sx:{my:5},children:(0,P.jsx)("img",{src:"".concat("https://staging.admin.cdnbeef.ca","/assets/").concat(R.image,"?key=page-hero-image"),className:"brand-image"})}),(0,P.jsx)(u.Z,{className:"padding-on-mobile description",sx:{mt:5},children:(0,P.jsx)(x.Z,{component:"div",children:(0,P.jsx)(h.Z,{allowedTags:["img"],children:null===(t=(0,v.i)(R,{key:"languages_code",code:M.code}))||void 0===t?void 0:t.Description})})}),(null===(n=(0,v.i)(R,{key:"languages_code",code:M.code}))||void 0===n?void 0:n.tips)&&(0,P.jsx)(u.Z,{className:"padding-on-mobile description",sx:{mt:5},children:(0,P.jsx)(_.Z,{content:null===(A=(0,v.i)(R,{key:"languages_code",code:M.code}))||void 0===A?void 0:A.tips})}),(0,P.jsxs)(u.Z,{sx:{mt:5},children:[!(null===E||void 0===E||!E.length)&&(0,P.jsx)(y.Z,{title:U("recipes"),accordionDetail
1sProps:{sx:{px:0,mb:4}},children:(0,P.jsx)(f.ZP,{container:!0,spacing:{xs:0},sx:{pt:2},children:null===E||void 0===E?void 0:E.map((function(e){return(0,P.jsx)(f.ZP,{item:!0,xs:12,md:6,lg:6,children:(0,P.jsx)(S.ZP,{height:330,once:!0,children:(0,P.jsx)(z.Z,{recipe:e},e.id)})},e.id)}))})}),!(null===F||void 0===F||!F.length)&&(0,P.jsx)(y.Z,{title:U("beefCuts"),children:(0,P.jsx)(d.Z,{sx:{my:3},children:(0,P.jsx)(f.ZP,{container:!0,children:null===F||void 0===F?void 0:F.map((function(e){return(0,P.jsx)(f.ZP,{item:!0,xs:12,md:6,children:(0,P.jsx)(w.Z,{url:e.url,title:e.title,subtext:e.subtext,imageUrl:e.imageUrl},e.id)},e.id)}))})})})]})]})}},8582:function(e,t,n){var r=n(4836);t.Z=void 0;var i=r(n(5649)),o=n(184),s=(0,i.default)((0,o.jsx)("path",{d:"M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z"}),"LightbulbOutlined");t.Z=s}}]);
2//# sourceMappingURL=925.0f6478b6.chunk.js.map

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.