1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7639],{942:(e,a,l)=>{"use strict";l.d(a,{A:()=>n});var t,r=l(5729);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var l=arguments[a];for(var t in l)Object.prototype.hasOwnProperty.call(l,t)&&(e[t]=l[t])}return e}).apply(this,arguments)}let n=function(e){return r.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),t||(t=r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.67,d:"M2.4 2.4v3.5h.407m10.75 1.4a5.601 5.601 0 0 0-10.75-1.4m0 0H5.9m7.7 7.7v-3.5h-.407m0 0a5.602 5.602 0 0 1-10.75-1.4m10.75 1.4H10.1"})))}},1884:(e,a,l)=>{"use strict";l.d(a,{Fs:()=>n,Lm:()=>r,wR:()=>i});var t=l(5212);let r=e=>s(e),s=e=>({id:e?.id??null,slug:e?.data?.slug??null,name:e?.data?.name??null,labelColor:e?.data?.labelColor??null,brandPageUrl:e?.data?.brandPageUrl??null,listingImage:e?.data?.listingImage??null,listingImageAltText:e?.data?.listingImageAltText??null,listingLogo:e?.data?.listingLogo??null,listingBackgroun
1dVideo:e?.data?.listingBackgroundVideo??null,features:e?.data?.features??null,listingVideo:e?.data?.listingVideo??null,shortDescription:e?.data?.shortDescription??null,retailersTicker:e?.data?.retailersTicker??null}),n=async(e=null)=>e?(await t.Ay.getAll("brands",{userAttributes:{locale:e},options:{locale:e},limit:100,locale:e})).map(e=>s(e)):(await t.Ay.getAll("brands",{limit:100,options:{noTargeting:!0}})).map(e=>s(e)),i=async e=>s(await t.Ay.get("brands",{options:{noTargeting:!0},query:{id:e}}).toPromise())},3556:(e,a,l)=>{var t=0/0,r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,i=/^0o[0-7]+$/i,o=parseInt,u="object"==typeof l.g&&l.g&&l.g.Object===Object&&l.g,d="object"==typeof self&&self&&self.Object===Object&&self,c=u||d||Function("return this")(),m=Object.prototype.toString,p=Math.max,g=Math.min,h=function(){return c.Date.now()};function f(e){var a=typeof e;return!!e&&("object"==a||"function"==a)}function b(e){if("number"==typeof e)return e;if("symbol"==typeof(a=e)||a&&"object"==typeof a&&"[object Symbol]"==m.call(a))return t;if(f(e)){var a,l="function"==typeof e.valueOf?e.valueOf():e;e=f(l)?l+"":l}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var u=n.test(e);return u||i.test(e)?o(e.slice(2),u?2:8):s.test(e)?t:+e}e.exports=function(e,a,l){var t,r,s,n,i,o,u=0,d=!1,c=!1,m=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(a){var l=t,s=r;return t=r=void 0,u=a,n=e.apply(s,l)}function x(e){var l=e-o,t=e-u;return void 0===o||l>=a||l<0||c&&t>=s}function y(){var e,l,t,r=h();if(x(r))return j(r);i=setTimeout(y,(e=r-o,l=r-u,t=a-e,c?g(t,s-l):t))}function j(e){return(i=void 0,m&&t)?v(e):(t=r=void 0,n)}function N(){var e,l=h(),s=x(l);if(t=arguments,r=this,o=l,s){if(void 0===i)return u=e=o,i=setTimeout(y,a),d?v(e):n;if(c)return i=setTimeout(y,a),v(o)}return void 0===i&&(i=setTimeout(y,a)),n}return a=b(a)||0,f(l)&&(d=!!l.leading,s=(c="maxWait"in l)?p(b(l.maxWait)||0,a):s,m="trailing"in l?!!l.trailing:m),N.cancel=function(){void 0!==i&&clearTimeout(i),u=0,t=o=r=i=void 0},N.flush=function(){return void 0===i?n:j(h())},N}},3606:(e,a,l)=>{"use strict";l.d(a,{a:()=>i});var t=l(6029),r=l(2988),s=l.n(r),n=l(7435);let i=({className:e,content:a})=>{let l,r;return a?(0,t.jsx)("div",{className:s()(e,"s-wysiwyg text-wrap"),dangerouslySetInnerHTML:{__html:(l=a.matchAll(/style="(?<props>[^"]*)"/gm),r=(0,n.W)(a),Array.from(l).forEach(e=>{if(e.groups?.props){let l=e.groups.props?.match(/font-size:\s[0-9]+[a-z]*;/);l&&l.length&&l[0]&&(r=a.replaceAll(l[0],""))}}),r)}}):(0,t.jsx)(t.Fragment,{})}},4442:(e,a,l)=>{"use strict";l.d(a,{Z:()=>r,x:()=>s});var t=l(5212);let r=async()=>(await t.Ay.getAll("ingredients",{options:{noTargeting:!0}})).map(e=>({id:e.id??null,name:e.name??null,image:e.data?.image??null,imageAltText:e.data?.imageAltText??null,shortDescription:e.data?.shortDescription??null,longDescription:e.data?.longDescription??null,shortDescriptionNaturesFresh:e.data?.shortDescriptionNaturesFresh??null,longDescriptionNaturesFresh:e.data?.shortDescriptionNaturesFresh??null})),s=async e=>{let a=await t.Ay.getAll("products",{includeRefs:!0,fields:"data.protein",userAttributes:{locale:e},options:{locale:e,includeRefs:!0},limit:100,locale:e}),l=await t.Ay.getAll("products",{includeRefs:!0,userAttributes:{locale:e},options:{locale:e,offset:100,includeRefs:!0},limit:100,locale:e});return a.concat(l).reduce((e,a)=>(a.data?.protein&&Array.isArray(a.data?.protein)&&a.data?.protein?.length&&a.data.protein.forEach(a=>{a.ingredient&&a.ingredient?.id&&!e.includes(a.ingredient.value?.data?.name)&&e.push(a.ingredient.value?.data?.name)}),e),[]).sort()}},7370:(e,a,l)=>{"use strict";l.r(a),l.d(a,{default:()=>B});var t,r,s=l(6029),n=l(5729),i=l(2988),o=l.n(i),u=l(1871),d=l.n(u),c=l(1909),m=l(1278),p=l(1353),g=((t={})[t.SingleChoise=0]="SingleChoise",t[t.MultipleChoise=1]="MultipleChoise",t);let h=(0,n.forwardRef)(({className:e,type:a,topics:l,selectFirst:t,onChange:r},i)=>{let[u,d]=(0,n.useState)([]),c=()=>{d([l[0]]),r instanceof Function&&r([l[0]])};return(0,n.useImperativeHandle)(i,()=>({clear(){d([])},first(){c()}}),[]),(0,n.useEffect)(()=>{t&&l.length&&c()},[]),(0,s.jsx)("div",{className:o()("s-hide-scrollbar w-[calc(100%+48px)] -mx-6 px-6 md:px-0 md:mx-0 md:w-full flex md:flex-wrap gap-2 overflow-x-auto snap-x",e),children:l.map((e,l)=>(0,s.jsx)(p.gZ,{className:"snap-center",type:p.M$.Button,style:u.includes(e)?p.Dh.Solid:p.Dh.Outline,color:p.v8.Gray,onClick:()=>{let l;return l=[],void(d(l=0===a?[e]:u.includes(e)?u.filter(a=>a!==e):[...u,e]),r instanceof Function&&r(l))},children:e},l))})}),f=({hidden:e,children:a})=>(0,s.jsx)("div",{className:o()("flex flex-wrap gap-x-8 gap-y-3 mt-3 first:mt-0",{hidden:e}),children:a});var b=l(332),v=l(3801),x=l(2540);let y=(0,n.forwardRef)(({hidden:e,disabled:a,name:l,label:t,placeholder:r,options:i,register:u,setValue:d,onChange:c,validation:m,error:p,errorMessage:g},h)=>
1{let[f,b]=(0,n.useState)(!1),[y,j]=(0,n.useState)(""),[N,w]=(0,n.useState)(0),C=(0,n.useRef)(null),S=(0,n.useRef)(null),A=(0,n.useRef)(null),L=(0,n.useMemo)(()=>f&&""!==y?(i??[]).filter(e=>-1!==e.label.toLowerCase().indexOf(y.toLowerCase())):i??[],[i,y,f]),M=(0,n.useCallback)(e=>{A.current&&e.target instanceof Element&&!A.current.contains(e.target)&&b(!1)},[]);return(0,n.useImperativeHandle)(h,()=>({clearValue(){j(""),d(l,"",{shouldValidate:!0})},forceValue(e,a){let t=(i??[]).find(a=>a.value===e||a.label===e)?.label??"";!t&&a.length&&(t=a?.find(a=>a.value===e||a.label===e)?.label??""),j(t||e),d(l,e,{shouldValidate:!0})}}),[]),(0,n.useEffect)(()=>{if(S.current){let e=S.current.scrollHeight+36;w(e>300?300:e)}},[f,y]),(0,n.useEffect)(()=>(document.addEventListener("mouseup",M),()=>{document.removeEventListener("mouseup",M)}),[]),(0,s.jsxs)("div",{ref:A,className:o()("flex flex-col basis-0 grow relative min-w-[150px]",{"opacity-50 pointer-events-none":a,hidden:e}),children:[(0,s.jsx)("div",{className:"text-p-sm font-semibold text-neutral-700",children:`${t}${m?.required?"*":""}`}),(0,s.jsxs)("div",{className:o()("border rounded-[6px] mt-2 overflow-hidden relative",{"border-neutral-300":!p,"border-error-300 shadow-error":p,"cursor-pointer":!f}),onClick:()=>{!f&&window.innerWidth>640&&(j(""),C.current&&C.current.focus(),b(!0))},children:[(0,s.jsxs)("select",{className:"absolute top-0 left-0 w-full h-full opacity-0 sm:pointer-events-none z-20",...u(l,{...m??{},onChange:e=>{c instanceof Function&&c(e.target.value);let a=(i??[]).find(a=>a.value===e.target.value);a&&j(a.label)}}),children:[(0,s.jsx)("option",{value:""}),i&&!!i.length&&i.map((e,a)=>(0,s.jsx)("option",{value:e.value,children:e.label},a))]}),(0,s.jsx)("input",{ref:C,className:o()("w-[calc(100%-24px)] py-[9.5px] px-3 text-neutral-700 text-p-sm font-medium disabled:bg-transparent outline-none",{"cursor-pointer":!f}),placeholder:r,value:y,onChange:e=>j(e.target.value)}),(0,s.jsx)(v.i,{className:o()("absolute top-1/2 right-[10px] w-[20px] h-[20px] -translate-y-1/2 stroke-current text-neutral-700 transition-transform duration-200 ease-out",{"rotate-180":f}),svg:x.A})]}),i&&!!i.length&&(0,s.jsx)("div",{className:o()("absolute bottom-0 left-0 w-full bg-neutral-100 rounded-b-[10px] translate-y-full z-50 py-[18px] px-[22px] overflow-y-auto",{"opacity-0 pointer-events-none":!f,"opacity-100":f}),style:{height:N},children:(0,s.jsx)("div",{ref:S,className:"w-full flex flex-col",children:L.map((e,a)=>(0,s.jsx)("button",{className:"w-full text-left text-p-sm py-1.5 text-neutral-700 font-medium",onClick:()=>{var a;return a=e.value,void(j((i??[]).find(e=>e.value===a)?.label??""),d(l,a,{shouldValidate:!0}),c instanceof Function&&c(a),b(!1))},type:"button",children:e.label},a))})}),p&&g&&(0,s.jsx)("p",{className:"text-p-sm text-error-500 font-medium mt-2",children:g})]})});var j=l(3606);let N=[{label:"Alabama",value:"AL"},{label:"Alaska",value:"AK"},{label:"Arizona",value:"AZ"},{label:"Arkansas",value:"AR"},{label:"California",value:"CA"},{label:"Colorado",value:"CO"},{label:"Connecticut",value:"CT"},{label:"Delaware",value:"DE"},{label:"District of Columbia",value:"DC"},{label:"Florida",value:"FL"},{label:"Georgia",value:"GA"},{label:"Guam",value:"GU"},{label:"Hawaii",value:"HI"},{label:"Idaho",value:"ID"},{label:"Illinois",value:"IL"},{label:"Indiana",value:"IN"},{label:"Iowa",value:"IA"},{label:"Kansas",value:"KS"},{label:"Kentucky",value:"KY"},{label:"Louisiana",value:"LA"},{label:"Maine",value:"ME"},{label:"Maryland",value:"MD"},{label:"Massachusetts",value:"MA"},{label:"Michigan",value:"MI"},{label:"Minnesota",value:"MN"},{label:"Mississippi",value:"MS"},{label:"Missouri",value:"MO"},{label:"Montana",value:"MT"},{label:"Nebraska",value:"NE"},{label:"Nevada",value:"NV"},{label:"New Hampshire",value:"NH"},{label:"New Jersey",value:"NJ"},{label:"New Mexico",value:"NM"},{label:"New York",value:"NY"},{label:"North Carolina",value:"NC"},{label:"North Dakota",value:"ND"},{label:"Ohio",value:"OH"},{label:"Oklahoma",value:"OK"},{label:"Oregon",value:"OR"},{label:"Pennsylvania",value:"PA"},{label:"Puerto Rico",value:"PR"},{label:"Rhode Island",value:"RI"},{label:"South Carolina",value:"SC"},{label:"South Dakota",value:"SD"},{label:"Tennessee",value:"TN"},{label:"Texas",value:"TX"},{label:"Utah",value:"UT"},{label:"Vermont",value:"VT"},{label:"Virgin Islands",value:"VI"},{label:"Virginia",value:"VA"},{label:"Washington",value:"WA"},{label:"West Virginia",value:"WV"},{label:"Wisconsin",value:"WI"},{label:"Wyoming",value:"WY"}];var w=l(4179),C=l(1884),S=l(9954);let A={"en-us":{state:"State"},"en-gb":{state:"County"},"en-ca":{state:"Province"}};var L=l(942);function M(){return(M=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var l=arguments[a];for(var t in l)Object.prototype.hasOwnProperty.call(l,t)&&(e[t]=l[t])}return e}).apply(this,arguments)}let k=function(e){return n.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",viewBox:"0 0 24 24"},e),r||(r=n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 16v1a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-1m-4-8-4-4m0 0L8 8m4-4v12"})))};var z=l(7594),V=l(3097),O=l(9462),T=l(9148);function D(e,a){return String(e).padStart(a,"0")}var P=l(3556),R=l.n(P),E=l(3562);let B=({cmsProducts:e,cmsBrands:a,heading:l,copy:t,buttons:r,formTopics:i,formHeading:u,formHeadingAlt:x,formSuccessMessage:M,formErrorMessage:P,careersCopy:B,marketingCopy:I})=>
1{let[F,H]=(0,n.useState)(null),[G,$]=(0,n.useState)([]),[W,_]=(0,n.useState)("input"),[U,q]=(0,n.useState)([]),[Z,K]=(0,n.useState)([]),[Y,J]=(0,n.useState)(),[X,Q]=(0,n.useState)([]),[ee,ea]=(0,n.useState)(null),{register:el,trigger:et,handleSubmit:er,formState:{errors:es},clearErrors:en,setValue:ei,reset:eo,getValues:eu}=(0,c.mN)(),ed=(0,n.useRef)(null),ec=(0,n.useRef)(null),em=(0,n.useRef)(null),ep=(0,n.useRef)(null),eg=(0,n.useRef)(null),eh=(0,n.useRef)(null);(0,T.A)();let ef=(0,m.useRouter)(),{t:eb}=function(){let{locale:e}=(0,m.useRouter)();return{t:a=>A[e??"en-us"][a]}}(),ev=["feeding and ingredients","other","veterinary support"],ex=["problem or concern","other","veterinary support"],ey=(0,n.useMemo)(()=>(a??G).map(e=>({id:e.id,name:e.name??""})),[a,G]),ej=er(async e=>{let l;_("pending");let t=U[0]??"";if(ev.includes(t))l={turnstileToken:F,topic:t,firstName:e.firstName,lastName:e.lastName,addressLine1:e.addressLine1,addressLine2:e.addressLine2,city:e.city,state:e.state,country:ef.locale??"en-us",zipCode:e.zipCode,email:e.email,message:e.message};else if("write a testimonial"===t){let r=(a??G).find(a=>a.id===e.brand),s=Z.find(a=>a.id===e.product);l={turnstileToken:F,topic:t,firstName:e.firstName,lastName:e.lastName,addressLine1:e.addressLine1,addressLine2:e.addressLine2,city:e.city,state:e.state,country:ef.locale??"en-us",zipCode:e.zipCode,email:e.email,message:e.message,brand:r?.name??"",product:s?.name??"",productSize:e.productSize,upcCode:e.upcCode}}else if("problem or concern"===t){let r=(a??G).find(a=>a.id===e.brand),s=Z.find(a=>a.id===e.product);l={turnstileToken:F,topic:t,firstName:e.firstName,lastName:e.lastName,addressLine1:e.addressLine1,addressLine2:e.addressLine2,city:e.city,state:e.state,country:ef.locale??"en-us",zipCode:e.zipCode,email:e.email,phone:e.phone,message:e.message,brand:r?.name??"",product:s?.name??"",productSize:e.productSize,upcCode:e.upcCode,sellByDate:e.sellByDate,sellByHour:e.sellByHour,sellByMinute:e.sellByMinute,sellByPlantCode:e.sellByPlantCode}}else if("where to buy"===t){let r=(a??G).find(a=>a.id===e.brand),s=Z.find(a=>a.id===e.product);l={turnstileToken:F,topic:t,firstName:e.firstName,lastName:e.lastName,zipCode:e.zipCode,country:ef.locale??"en-us",email:e.email,message:e.message,brand:r?.name??"",product:s?.name??"",productSize:e.productSize,upcCode:e.upcCode}}let r=new FormData;["feeding and ingredients","problem or concern","write a testimonial"].includes(t)&&ee&&(l.image=ee),Object.keys(l).forEach(e=>{r.append(e,l[e])}),200===(await fetch("/api/submit-contact-form",{method:"POST",body:r})).status?((0,V.I)("contact_form_submit",l?.zipCode,t),(0,O.vV)("Contact Form Submitted",{topic:t,message:l?.message??""}),(0,O.mx)({email:e.email,first_name:e.firstName,address_line_1:e.addressLine1,address_line_2:e.addressLine2,city:e.city,state:e.state,zipcode:e.zipCode},{source:"contact"}),_("success"),eg.current&&eg.current.clear(),ea(null)):_("error"),eh.current&&window.scrollTo({top:eh.current.getBoundingClientRect().top+document.documentElement.scrollTop-100,behavior:"smooth"})}),eN=async e=>{let a=await (0,S.Oz)(e,ef.locale??"en-us","a76a687a958a42edad1e92edf5287120"===e),l=eu("petType");return l?a.filter(e=>e.petType===l):a},ew=async e=>{K(await eN(e)),em.current&&em.current.clearValue(),ep.current&&ep.current.clearValue(),ei("upcCode","")},eC=async a=>{let l=e.find(e=>e.sizesAndUPCs?.findIndex(e=>e.upc===a)!==-1);if(l){let e=ey.find(e=>e.id===l?.brand?.id),t=await eN(l?.brand?.id??"");K(t),J(l),Q(l.sizes);let r=l?.sizesAndUPCs?.find(e=>e.upc===a)?.size;ed.current?.forceValue(l.petType??""),ec.current?.forceValue(e?.id??""),ep.current?.forceValue(r??"",l.sizes.map(e=>({label:e,value:e}))),em.current?.forceValue(l.id??"",t.map(e=>({label:l.name??"",value:l.id??""})))}},eS=()=>{ed.current?.clearValue(),ec.current?.clearValue(),em.current?.clearValue(),ep.current?.clearValue(),Q([]),J(void 0),K([])},eA=(0,n.useMemo)(()=>R()(async e=>{eS();let a=e.target.value.replace(/-|\s+/gi,""),l=ef.locale??"en-us";if(0===a.length)return eS();["en-us","en-ca"].includes(l)?12===a.length&&await eC(a):13===a.length&&await eC(a),ei("upcCode",a,{shouldValidate:!0})},500),[]),eL=(0,n.useCallback)(async()=>{a||$(await (0,C.Fs)(ef.locale??"en-us"))},[]),eM=async e=>{et("image");let a=e.target.files&&e.target.files[0];a&&a.type.includes("image")?ea(a):ea(null),e.target.value=""},ek=(0,n.useMemo)(()=>ee?URL.createObjectURL(ee):void 0,[ee]);(0,n.useEffect)(()=>{eL()},[]),(0,n.useEffect)(()=>{eh.current&&ef.asPath.includes("#contact")&&window.scrollTo({top:eh.current.getBoundingClientRect().top+document.documentElement.scrollTop-100,behavior:"smooth"})},[ef.asPath]),(0,n.useEffect)(()=>{en()},[U]);
1let ez=i?.length?i?.map(e=>e.topic):["feeding and ingredients","write a testimonial","problem or concern","where to buy","careers","veterinary support","reach marketing team","other"];return(0,s.jsx)("section",{id:"contact",className:"scroll-mt-[100px]",children:(0,s.jsxs)("div",{className:"o-container o-container--xl flex flex-col lg:flex-row",children:[(0,s.jsx)("div",{className:"shrink-0 lg:pr-[136px]",children:(0,s.jsxs)("div",{className:"w-full lg:w-[280px]",children:[l&&(0,s.jsx)("h2",{className:"font-gopher text-h-4xl text-neutral-700",children:l}),t&&(0,s.jsx)("p",{className:"text-p-base text-neutral-700 mt-4",dangerouslySetInnerHTML:{__html:(0,w.H)(t)}}),r&&!!r.length&&(0,s.jsx)("div",{className:"flex flex-wrap gap-3 mt-8",children:r.map((e,a)=>{let l=p.Dh.Solid;return"Outline"===e.style&&(l=p.Dh.Outline),(0,s.jsx)(p.gZ,{href:e.url,type:p.M$.Auto,style:l,eventAction:"c-contact",eventLabel:e.label??"",children:e.label},a)})})]})}),(0,s.jsxs)("div",{ref:eh,className:"grow mt-8 lg:mt-0",children:["success"===W&&(0,s.jsx)("div",{className:"text-p-base font-medium text-neutral-700 mb-6",children:M}),"error"===W&&(0,s.jsxs)("div",{className:"text-p-base font-medium text-error-500 flex flex-col items-start mb-6",children:[(0,s.jsx)("div",{children:P}),(0,s.jsxs)(p.gZ,{className:"mt-3",type:p.M$.Button,style:p.Dh.Outline,color:p.v8.Gray,noPadding:!0,onClick:()=>{eo(),_("input"),eg.current&&eg.current.first()},children:[(0,s.jsx)("span",{children:"try again"}),(0,s.jsx)(v.i,{className:"stroke-current w-4 h-4 ml-1.5",svg:L.A})]})]}),u&&(0,s.jsx)("h3",{className:"text-p-lg font-semibold text-neutral-700",children:["success","error"].includes(W)?x:u}),(0,s.jsx)(h,{ref:eg,className:"mt-6",type:g.SingleChoise,selectFirst:!0,topics:ez,onChange:e=>{q(e),["success","error"].includes(W)&&(_("input"),eo())}}),(0,s.jsxs)("form",{className:o()("w-full flex flex-col",{hidden:U.includes("careers")||U.includes("reach marketing team")||["success"].includes(W)}),onSubmit:ej,noValidate:!0,children:[(0,s.jsxs)("div",{className:"mt-8",children:[(0,s.jsxs)(f,{children:[(0,s.jsx)(b.o,{name:"firstName",label:"First Name",placeholder:"First Name",error:!!es.firstName,errorMessage:"Sorry, try that again.",register:el,validation:{required:!0}}),(0,s.jsx)(b.o,{name:"lastName",label:"Last Name",placeholder:"Last Name",error:!!es.lastName,errorMessage:"Sorry, try that again.",register:el,validation:{required:!0}})]}),(0,s.jsxs)(f,{children:[(0,s.jsx)(b.o,{name:"addressLine1",label:"Address Line 1",placeholder:"Address Line 1",error:!!es.addressLine1,errorMessage:"Sorry, try that again.",register:el,validation:{required:U.some(e=>ex.includes(e))},hidden:U.includes("where to buy")}),(0,s.jsx)(b.o,{name:"addressLine2",label:"Address Line 2",placeholder:"Address Line 2",error:!!es.addressLine2,errorMessage:"Sorry, try that again.",register:el,hidden:U.includes("where to buy")})]}),(0,s.jsxs)(f,{children:[(0,s.jsx)(b.o,{name:"city",label:"City",placeholder:"City",error:!!es.city,errorMessage:"Sorry, try that again.",register:el,validation:{required:U.some(e=>ex.includes(e))},hidden:U.includes("where to buy")}),"en-us"===ef.locale&&(0,s.jsx)(y,{name:"state",label:eb("state"),placeholder:eb("state"),error:!!es.state,errorMessage:"Sorry, try that again.",register:el,setValue:ei,options:N,validation:{required:U.some(e=>ex.includes(e))},hidden:U.includes("where to buy")}),"en-us"!==ef.locale&&(0,s.jsx)(b.o,{name:"state",label:eb("state"),placeholder:eb("state"),error:!!es.state,errorMessage:"Sorry, try that again.",register:el,validation:{required:U.some(e=>ex.includes(e))},hidden:U.includes("where to buy")})]}),(0,s.jsxs)(f,{children:[(0,s.jsx)(b.o,{name:"zipCode",label:"Zip Code",placeholder:"Zip Code",error:!!es.zipCode,errorMessage:"Sorry, try that again.",register:el,validation:{required:U.includes("problem or concern")||U.includes("other")||U.includes("veterinary support")||U.includes("where to buy")}}),(0,s.jsx)(b.o,{name:"email",label:"Email",type:"email",placeholder:"Ex: [email protected]",error:!!es.email,errorMessage:"Sorry, try that again.",register:el,validation:{required:!0,pattern:/^[\w-.]+@([\w-]+\.)+[\w-]{2,8}$/g}})]}),(0,s.jsx)(f,{children:(0,s.jsx)(b.o,{name:"phone",label:"Phone",type:"text",placeholder:"Phone",error:!!es.phone,errorMessage:"Sorry, try that again.",register:el,hidden:!U.includes("problem or concern")})}),(0,s.jsx)(f,{hidden:U.some(e=>ev.includes(e)),children:(0,s.jsxs)("div",{className:"flex flex-col basis-0 grow relative",children:[(0,s.jsx)("div",{className:"text-p-sm font-semibold text-neutral-700",children:"12 or 13 digit UPC code"}),(0,s.jsx)("input",{className:"border border-neutral-300 rounded-[6px] py-[9.5px] px-3 text-neutral-700 text-p-sm font-medium outline-none mt-2",...el("upcCode",{onChange:eA}),placeholder:"Select brand, product and size to reveal",type:"text"})]})}),(0,s.jsx)(f,{hidden:U.some(e=>ev.includes(e)),children:(0,s.jsx)("div",{className:"flex flex-col basis-0 grow relative",children:(0,s.jsx)(y,{ref:ed,name:"petType",label:"Pet Type",placeholder:"Pet t
1ype",error:!!es.petType,errorMessage:"Select a pet type.",register:el,setValue:ei,options:[{label:"Dog",value:"dog"},{label:"Cat",value:"cat"}],onChange:e=>{ew(eu("brand"))}})})}),(0,s.jsxs)(f,{hidden:U.some(e=>ev.includes(e)),children:[(0,s.jsx)(y,{ref:ec,name:"brand",label:"Brand",placeholder:"Brand",error:!!es.brand,errorMessage:"Select a brand.",register:el,setValue:ei,options:ey.map(e=>({label:e.name??"",value:e.id??""})),onChange:ew}),(0,s.jsx)(y,{ref:em,name:"product",label:"Product",placeholder:"Product",error:!!es.product,errorMessage:"Select a product.",register:el,setValue:ei,disabled:0===Z.length,options:Z.map(e=>({label:e.name??"",value:e.id??""})),onChange:e=>{let a=Z.find(a=>a.id===e);a&&(J(a),Q(a.sizes)),ep.current&&ep.current.clearValue(),ei("upcCode","")}})]}),(0,s.jsx)(f,{hidden:U.some(e=>ev.includes(e)),children:(0,s.jsx)(y,{ref:ep,name:"productSize",label:"Product Size",placeholder:"Product Size",error:!!es.productSize,errorMessage:"Select product size.",register:el,setValue:ei,disabled:0===X.length,options:X.map(e=>({label:e,value:e})),onChange:e=>{Y&&ei("upcCode",Y.sizesAndUPCs?.find(a=>a.size===e)?.upc??"")}})}),(0,s.jsxs)("div",{className:o()("mt-3 first:mt-0 text-p-base text-neutral-700 font-medium",{hidden:!U.includes("problem or concern")}),children:[(0,s.jsxs)("div",{className:"mt-3 mb-8 text-center flex flex-col items-center",children:[(0,s.jsx)("div",{children:"Use the dropdown menus below to fill in the SELL BY code. Here is an example of what it looks like on the package:"}),(0,s.jsx)("img",{className:"mt-6",src:"/img/sell-by.jpg",alt:"Sell by code image"})]}),(0,s.jsxs)(f,{children:[(0,s.jsx)(b.o,{name:"sellByDate",label:"Date",register:el,type:"date"}),(0,s.jsx)(y,{name:"sellByHour",label:"Hour",placeholder:"Hour",register:el,setValue:ei,options:Array.from(Array(24)).map((e,a)=>{let l=D(a+1,2);return{label:`${l}`,value:`${l}`}})}),(0,s.jsx)(y,{name:"sellByMinute",label:"Minute",placeholder:"Minute",register:el,setValue:ei,options:Array.from(Array(60)).map((e,a)=>{let l=D(a,2);return{label:`${l}`,value:`${l}`}})}),(0,s.jsx)(y,{name:"sellByPlantCode",label:"Plant Code",placeholder:"Plant Code",register:el,setValue:ei,options:[{label:"G1",value:"G1"},{label:"G11",value:"G11"},{label:"G12",value:"G12"},{label:"L1",value:"L1"},{label:"L2",value:"L2"},{label:"L3",value:"L3"},{label:"L4",value:"L4"},{label:"L5",value:"L5"},{label:"L6",value:"L6"},{label:"N1",value:"N1"},{label:"R1",value:"R1"},{label:"S1",value:"S1"},{label:"S2",value:"S2"},{label:"S3",value:"S3"},{label:"S4",value:"S4"},{label:"S5",value:"S5"},{label:"S6",value:"S6"},{label:"S9",value:"S9"}]})]})]}),(0,s.jsx)(f,{children:(0,s.jsx)(b.o,{name:"message",label:"Message",placeholder:"Message",register:el,multiline:!0,error:!!es.message,errorMessage:"Sorry, try that again.",validation:{required:!0}})}),(0,s.jsx)(f,{hidden:!U.includes("write a testimonial")&&!U.includes("problem or concern")&&!U.includes("feeding and ingredients"),children:(0,s.jsxs)("div",{className:"flex flex-col basis-0 grow relative",children:[(0,s.jsx)("div",{className:"text-p-sm font-semibold text-neutral-700 mb-3",children:"Attach an image"}),(0,s.jsx)("div",{className:"flex items-center justify-center w-full",children:(0,s.jsxs)("label",{htmlFor:"dropzone-file",className:"flex flex-col items-center justify-center w-full h-64 border-2 border-neutral-300 border-dashed rounded-lg cursor-pointer bg-gray-50",children:[!ee&&(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center pt-4 pb-5",children:[(0,s.jsx)(v.i,{className:"w-6 h-6 mb-4 stroke-current",svg:k}),(0,s.jsx)("p",{className:"mb-2 text-p-sm text-neutral-700",children:(0,s.jsx)("span",{className:"font-semibold",children:"Click to select image to upload"})}),(0,s.jsx)("p",{className:"text-p-xs text-neutral-700",children:"(PNG / JPG / MAX. 10MB)"})]}),!!ee&&(0,s.jsx)("div",{className:"relative",children:(0,s.jsx)("img",{src:ek,alt:"your image",className:"w-full max-h-60"})}),(0,s.jsx)("input",{id:"dropzone-file",accept:"image/*;capture=camera",className:"hidden",type:"file",...el("image",{onChange:eM,validate:e=>{let a=e[0]?.name?.split(".")?.pop()?.toLowerCase();return e[0]&&!["jpeg","jpg","png"].includes(a)?"Invalid file format. Only image files are allowed.":!(e[0]?.size>1024e4)||"Invalid image size. Please use a smaller image."}})})]})}),(0,s.jsx)("div",{className:"flex mt-2",children:!!ee&&(0,s.jsxs)(p.gZ,{onClick:()=>{ea(null),et("image")},size:p.$r.Sm,type:p.M$.Button,color:p.v8.DarkGreen,style:p.Dh.Outline,children:[(0,s.jsx)(v.i,{className:"w-3 h-3 stroke-current",svg:z.A})," Remove image"]})}),!!es.image&&(0,s.jsx)("p",{className:o()("text-p-sm text-error-500 font-medium my-2",{"absolute -bottom-2 left-0 translate-y-full":es.image}),children:"Only image files are allowed. File size should be lower than 10MB!"})]})})]}),(0,s.jsxs)("div",{className:"mt-6",children:[(0,s.jsxs)(p.gZ,{type:p.M$.Submit,color:"success"===W?p.v8.BrightGreen:p.v8.DarkGreen,disabled:["pending","success"].includes(W)||!!es.length,children:["pending"===W&&"sendingâ¦",!["pending","success"].includes(W)&&"send message"]}),(0,s.jsx)(E.o,{})]}),(0,s.jsx)(d(),{sitekey:"0x4AAAAAAAHU4tOe9Y3oZcsF",onVerify:e=>{H(e)}})]}),U.includes("careers")&&"input"===W&&(0,s.jsx)("div",{className:"mt-8 lg:px-8",children:(0,s.jsx)(j.a,{className:"text-p-base text-neutral-700",content:B})}),U.includes("reach marketing team")&&"input"===W&&(0,s.jsx)("div",{className:"mt-8 lg:px-8",children:(0,s.jsx)(j.a,{className:"text-p-base text-neutral-700",content:I})})]})]})})}},7594:(e,a,l)=>{"use strict";l.d(a,{A:()=>n});var t,r=l(5729);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var l=arguments[a];for(var t in l)Object.prototype.hasOwnProperty.call(l,t)&&(e[t]=l[t])}return e}).apply(this,arguments)}let n=function(e){return r.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 21"},e),t||(t=r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.67,d:"m5 15.5 10-10m-10 0 10 10"}
1)))}}}]);
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.