1"use strict";(globalThis.webpackChunkrosepoultry=globalThis.webpackChunkrosepoultry||[]).push([[571],{7085:(e,t,s)=>{s(4067);var o=s(3451);const i=class{constructor(e,t,s,o,i,n){this.content=e,this.toggles=t,this.contentActiveClass=s,this.toggleActiveClass=o,this.onToggleClick=this.onToggleClick.bind(this),this.onOpen=i?i.bind(this):this.onOpen.bind(this),this.onClose=n?n.bind(this):this.onClose.bind(this),this.isActive=e.classList.contains(s),this.toggles.forEach((e=>{e.addEventListener("click",this.onToggleClick)})),this.updateUI()}updateUI(){this.content.setAttribute("aria-hidden",!this.isActive),this.contentActiveClass&&(this.isActive?this.content.classList.add(this.contentActiveClass):this.content.classList.remove(this.contentActiveClass)),this.toggles.forEach((e=>{e.setAttribute("aria-expanded",this.isActive),this.toggleActiveClass&&(this.isActive?e.classList.add(this.toggleActiveClass):e.classList.remove(this.toggleActiveClass))}))}open(){this.isActive||(this.isActive=!0,this.updateUI(),this.onOpen())}close(){this.isActive&&(this.isActive=!1,this.updateUI(),this.onClose())}onToggleClick(e){this.isActive=!this.isActive,this.recentOpenTrigger=this.isActive?e.target:this.recentOpenTrigger,this.updateUI(),this.isActive?this.onOpen():this.onClose()}onOpen(){}onClose(){}},n={};class l{constructor(e){this.el=e,this.summary=e.querySelector(".js-accordion-summary"),this.content=e.querySelector(".js-accordion-details"),this.animation=null,this.isClosing=!1,this.isOpening=!1,this.summary.addEventListener("click",(e=>this.onClick(e)))}onClick(e){e.preventDefault(),this.el.style.overflow="hidden",this.isClosing||!this.el.open?this.open():(this.isOpening||this.el.open)&&this.close()}close(){this.isClosing=!0;const e=`${this.el.offsetHeight}px`,t=`${this.summary.offsetHeight}px`;this.animation&&this.animation.cancel(),this.animation=this.el.animate({height:[e,t]},{duration:300,easing:"linear"}),this.animation.onfinish=()=>this.onAnimationFinish(!1),this.animation.oncancel=()=>this.isClosing=!1}open(){this.el.style.height=`${this.el.offsetHeight}px`,this.el.open=!0,window.requestAnimationFrame((()=>this.expand()))}expand(){this.isOpening=!0;const e=`${this.el.offsetHeight}px`,t=`${this.summary.offsetHeight+this.content.offsetHeight}px`;this.animation&&this.animation.cancel(),this.animation=this.el.animate({height:[e,t]},{duration:300,easing:"linear"}),this.animation.onfinish=()=>this.onAnimationFinish(!0),this.animation.oncancel=()=>this.isOpening=!1}onAnimationFinish(e){this.el.open=e,this.animation=null,this.isClosing=!1,this.isOpening=!1,this.el.style.height=this.el.style.overflow=""}}var a=s(1651),c=s.n(a);document.addEventListener("DOMContentLoaded",(async()=>{const e=new(c());let t=!1;document.getElementById("prevent-sleep")&&document.getElementById("toggleSleep").addEventListener("click",(function(){t?(e.disable(),t=!1):(e.enable(),t=!0)}),!1)}));let r=null,d=0;function h(e,t,s){window.clearTimeout(r),r=window.setTimeout((()=>{const o=d!==e.offsetWidth;d=e.offsetWidth,o&&(s.close(),e.offsetHeight<e.scrollHeight?t.removeAttribute("hidden"):t.setAttribute("hidden","hidden"))}),"200")}class u{constructor(e){this.element=e,this.fields=e.querySelectorAll(".js-form-field"),this.addListeners()}addListeners(){this.element.addEventListener("submit",this.onSubmit),this.fields.forEach((e=>{["invalid","valid","blur"].forEach((t=>{e.addEventListener(t,this.onValidate.bind(this))}))}))}onValidate(e){e.currentTarget.classList.add("is-dirty")}}const m=()=>{const e=document.getElementById("newsletter-subscription-form");e&&(e.reportValidity()?(e.querySelector("button").disabled=!0,e.submit()):console.error("Form validation failed."))};var b;(()=>{const e=".js-megamenu",t=".js-megamenu-toggle",s=".js-megamenu-expandable",n=".js-megamenu-expandable-toggle",l=".js-search",a=".js-search-toggle",c="megamenu--active",r="megamenu__list-2--active",d="megamenu__button-1--active",h="header-search--active",u=document.querySelector(e),m=document.querySelectorAll(t);if(!u)return;new i(u,m,c,null,(function(){o.A.disableScroll(),this.content.querySelector(`button${t}`).focus()}),(function(){o.A.enableScroll(),this.recentOpenTrigger.focus()}
1)),u.querySelectorAll(s).forEach((e=>{const t=u.querySelectorAll(`[aria-controls="${e.id}"]${n}`);new i(e,t,r,d)}));const b=document.querySelector(l),g=document.querySelectorAll(a);if(!b)return;const p=new i(b,g,h,null,(function(){o.A.disableScroll();const e=this.content.querySelector(`button${a}`);e&&e.focus()}),(function(){o.A.enableScroll(),this.recentOpenTrigger.focus()}));document.addEventListener("close-header-search",(()=>{p.close()}))})(),n[b="https://www.youtube.com/iframe_api"]&&n[b].loaded?Promise.resolve():(n[b]={loaded:!1,promise:new Promise(((e,t)=>{const s=document.createElement("script");s.onload=()=>{n[b].loaded=!0,e()},s.onerror=()=>{t()},s.src=b,document.body.append(s)}))},n[b].promise),window.onYouTubeIframeAPIReady=function(){document.querySelectorAll(".js-background-video").forEach((e=>{if(!e.dataset.video)return void console.warn("The video url is not specified.");const t=(e=>{const t=e.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return!(!t||11!==t[7].length)&&t[7]})(e.dataset.video);if(!t)return void console.warn("The video url is not correct.");let s;const o=()=>{s&&clearTimeout(s)};new YT.Player(e,{width:"1920",height:"1080",videoId:t,playerVars:{controls:0,mute:1,modestbranding:1,iv_load_policy:3},events:{onReady:e=>{e.target.playVideo()},onStateChange:e=>{switch(e.data){case YT.PlayerState.UNSTARTED:break;case YT.PlayerState.ENDED:e.target.seekTo(0),e.target.playVideo();break;case YT.PlayerState.PLAYING:o(),s=(e=>{const t=1e3*(e.getDuration()-e.getCurrentTime())-500;s=setTimeout((()=>{e.seekTo(0)}),t)})(e.target);break;case YT.PlayerState.PAUSED:case YT.PlayerState.BUFFERING:o();case YT.PlayerState.CUED:}},onError:e=>{switch(e.data){case 2:console.error("The request contains an invalid parameter value.");break;case 5:console.error("The requested content cannot be played in an HTML5 player.");break;case 100:console.error("The video requested was not found.");break;case 101:case 150:console.error("The owner of the requested video does not allow it to be played in embedded players.");break;default:console.error("Undefined Youtube player error")}}}})}))},document.querySelectorAll(".js-side-nav").forEach((e=>{e.querySelectorAll("[aria-controls]").forEach((t=>{const s=e.querySelector(`#${t.getAttribute("aria-controls")}`);new i(s,[t],"side-nav__dropdown--active","side-nav__button--active")}))})),document.querySelectorAll(".js-accordion-item").forEach((e=>{new l(e)})),document.querySelectorAll(".js-expandable").forEach((e=>{const t=document.querySelectorAll(`[aria-controls="${e.id}"]`),s=new i(e,t,"expanded","active");t&&t.length>0&&t.forEach((t=>{"true"===e.dataset.ellipsis&&(new ResizeObserver((()=>h(e,t,s))).observe(e),h(e,t))}))})),document.querySelectorAll(".js-form").forEach((e=>{new u(e)})),function(){const e=document.querySelector(".print-button");e&&e.addEventListener("click",(function(){window.print()}))}(),window.matchMedia("print").addEventListener("change",(e=>{if(e.matches){const e=document.body.querySelectorAll("details:not([open])");for(const t of e)t.setAttribute("open",""),t.dataset.wasclosed="";const t=document.body.querySelectorAll(".js-expandable");for(const e of t)e.setAttribute("aria-hidden","false"),e.classList.add("expanded"),e.dataset.wasclosed=""}else{const e=document.body.querySelectorAll("details[data-wasclosed]");for(const t of e)t.removeAttribute("open"),delete t.dataset.wasclosed;const t=document.body.querySelectorAll(".js-expandable");for(const e of t)e.setAttribute("aria-hidden","true"),e.classList.remove("expanded"),delete e.dataset.wasclosed}})),s.g.onSubmitNewsletterSubscription=m;const g=[{selector:"vue-social",callback:()=>Promise.all([s.e(502),s.e(139)]).then(s.bind(s,8575))},{selector:"vue-recipe-rating",callback:()=>Promise.all([s.e(502),s.e(663)]).then(s.bind(s,5859))},{selector:"vue-global-search",callback:()=>Promise.all([s.e(502),s.e(523),s.e(811)]).then(s.bind(s,2496))},{selector:"vue-filter-search",callback:()=>Promise.all([s.e(502),s.e(523),s.e(896)]).then(s.bind(s,9072))},{selector:"vue-quick-search",callback:()=>Promise.all([s.e(502),s.e(235)]).then(s.bind(s,5230))},{selector:"#portion-calculator",callback:()=>Promise.all([s.e(502),s.e(351)]).then(s.bind(s,9960))},{selector:"#meat-school-app",callback:()=>Promise.all([s.e(502),s.e(227)]).then(s.bind(s,3649))},{selector:"vue-protein-intake-calculator",callback:()=>Promise.all([s.e(502),s.e(395)]).then(s.bind(s,6587))},{selector:"vue-header-search",callback:()=>Promise.all([s.e(502),s.e(129)]).then(s.bind(s,9143))},{selector:"vue-modal-slotted-social",callback:()=>Promise.all([s.e(502),s.e(988)]).then(s.bind(s,36))},{selector:"vue-liftup",callback:()=>Promise.all([s.e(502),s.e(618)]).then(s.bind(s,7686))},{selector:"vue-media-banner",callback:()=>Promise.all([s.e(502),s.e(515)]).then(s.bind(s,294))},{selector:"vue-shorts-gallery",callback:()=>Promise.all([s.e(502),s.e(951)]).then(s.bind(s,2682))},{selector:"vue-content-container",callback:()=>Promise.all([s.e(502),s.e(10)]).then(s.bind(s,7990))},{selector:"vue-product-image-carousel",callback:()=>Promise.all([s.e(502),s.e(976)]).then(s.bind(s,1968))},{selector:"vue-product-select-table",callback:()=>Promise.all([s.e(502),s.e(124)]).then(s.bind(s,8241))},{selector:"vue-product-wholesalers",callback:()=>Promise.all([s.e(502),s.e(229)]).then(s.bind(s,3229))},{selector:"vue-select-search",callback:()=>Promise.all([s.e(502),s.e(894)]).then(s.bind(s,3772))}];document.addEventListener("DOMContentLoaded",(function(){g.forEach((({selector:e,callback:t})=>{const s=function(e,t=document){return Array.from(t.querySelectorAll(e))}(e);s.length&&t().then((({default:e})=>
1{s.forEach((t=>{e(t)}))}))}))}),!1)},3451:(e,t,s)=>{s.d(t,{A:()=>o});const o=new class{constructor(){this.stateClass={scrolled:"body--scrolled",scrollDisabled:"body--no-scroll"},this.prevScrollTop=0,this.onPageScroll=this.onPageScroll.bind(this),this.disableScroll=this.disableScroll.bind(this),this.disableScroll=this.disableScroll.bind(this),window.addEventListener("scroll",this.onPageScroll)}disableScroll(){this.prevScrollTop=window.scrollY,document.body.classList.add(this.stateClass.scrollDisabled),document.body.style.top=`-${this.prevScrollTop}px`}enableScroll(){document.body.classList.remove(this.stateClass.scrollDisabled),window.scrollTo(0,this.prevScrollTop),document.body.style.top=null}onPageScroll(){if(document.body.classList.contains(this.stateClass.scrollDisabled))return;const e=window.scrollY;!e||document.body.classList.contains(this.stateClass.scrolled)?!e&&document.body.classList.contains(this.stateClass.scrolled)&&document.body.classList.remove(this.stateClass.scrolled):document.body.classList.add(this.stateClass.scrolled)}}}},e=>{e.O(0,[502],(()=>e(e.s=7085))),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.