(globalThis.webpackChunkverso=globalThis.webpackChunkverso||[]).push([[8550],{32764:(e,r,t)=>{"use strict";t.d(r,{A:()=>y});var n=t(5556),o=t.n(n),a=t(96540),i=t(34854),s=t(53499);const c="https://view.ceros.com",l=({children:e})=>a.createElement("div",{suppressHydrationWarning:!0},e);l.propTypes={children:o().node};const d=()=>{if(!window.CerosSDK)return;const e=document.querySelectorAll("iframe.ceros-experience"),r=(0,i.Nf)();e.forEach(e=>{const t=e?.parentNode,n=t?.getAttribute("id");n&&window.CerosSDK.findExperience(n).done(e=>{"function"==typeof e.setUserConsentForAnalytics&&e.setUserConsentForAnalytics(r)}).fail(e=>{})})},m=async e=>{if(!e.origin?.startsWith(c))return;let r=e.data;try{"string"==typeof r&&(r=JSON.parse(r))}catch(e){return}const t=r?.event||r?.type||r?.message;"ceros-embedded-viewport:ready"!==t&&"ready"!==t||(await new Promise(e=>{if(window.CerosSDK)return e();const r=document.createElement("script");r.src="https://sdk.ceros.com/embedded-player-sdk-v5.min.js",r.async=!0,r.onload=e,r.onerror=()=>{e()},document.head.appendChild(r)}),d())},u=e=>{if(e.origin===c)try{const r="string"==typeof e.data?JSON.parse(e.data):e.data;"ceros-embedded-viewport:goto-url"===r?.event&&r?.url&&window.open(r.url,r.urlOpenInNewWindow?"_blank":"_self")}catch(e){}},g=({url:e})=>{const[r,t]=(0,a.useState)(null);return(0,a.useEffect)(()=>{const r=`https://view.ceros.com/oembed?url=${encodeURIComponent(e)}&format=json`;fetch(r).then(e=>{if(!e.ok)throw new Error(e.statusText);return e.json()}).then(t).catch(e=>{})},[e]),(0,a.useEffect)(()=>{window.Kendra?.TRACK_COMPONENT?.broadcast?.(s.G.RENDER,{name:"Ceros"}),window.addEventListener("message",m,!0),window.addEventListener("message",u,!0);const e=()=>d();if(window.addEventListener("FidesUpdated",e),!window.__CEROS_SCROLL_PROXY_LOADED__){window.__CEROS_SCROLL_PROXY_LOADED__=!0;const e=document.createElement("script");e.src="https://view.ceros.com/scroll-proxy.min.js",e.async=!0,e.setAttribute("data-ceros-origin-domains","view.ceros.com"),document.head.appendChild(e)}return()=>{window.removeEventListener("message",m,!0),window.removeEventListener("message",u,!0),window.removeEventListener("FidesUpdated",e)}},[]),a.createElement(l,null,r?.html&&a.createElement("div",{dangerouslySetInnerHTML:{__html:r.html}}))};g.propTypes={url:o().string.isRequired};const y=g},36382:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var n=t(38267),o=t(26865),a=t(76955);const i=(0,n.Ay)(a.vm).withConfig({displayName:"SidebarHeading"}).attrs(({"aria-level":e="2",role:r="heading",typeIdentity:t="typography.definitions.discovery.subhed-section-tertiary"})=>({"aria-level":e,role:r,typeIdentity:t}))` margin: 0; border-width: ${({theme:e})=>(0,o.Pp)(e,"dividerWidth")} 0; border-style: solid; border-color: ${({theme:e})=>(0,o.HK)(e,"colors.consumption.body.standard.display-texture")}; padding: ${(0,o.Kq)(2)} 0; `;i.displayName="SidebarHeading";const s=i},60711:(e,r,t)=>{"use strict";t.d(r,{$u:()=>d,O_:()=>v,Oe:()=>p,Pb:()=>g,SW:()=>m,WE:()=>u,_u:()=>h,kD:()=>w,nz:()=>c,u2:()=>y});var n=t(22914),o=t(4046),a=t(56892),i=t(53788);const{oidcCookies:s}=i.A,c=(e,r,t="")=>{const n=(0,a.getCookie)(s.access)||t,i=new o.l4(e),{query:c,variables:l}=r,d={"Access-Control-Request-Method":"POST","Access-Control-Request-Headers":"Content-Type","Content-Type":"application/json","User-Agent":"verso-client",Authorization:`Bearer ${n}`};return i.request(c,l,d)},l=async({entityId:e,after:r=null,commentingUrl:t,logger:o=console,commentsOrderBy:a="CREATED_AT_ASC",repliesOrderBy:i="CREATED_AT_DESC",reviewLimit:s,accessToken:l,replyLimit:d=1,tag:m,tags:u,excludeTag:g,excludeTags:y})=>{const p=s||15,w={operationName:"Comments",query:n.Hw,variables:{commentLimit:p,replyLimit:d,after:r,storyId:e,commentsOrderBy:a,repliesOrderBy:i,showPrimaryComments:!0,tag:m,tags:u,excludeTag:g,excludeTags:y}};try{const r=await c(t,w,l),{pageInfo:{hasNextPage:n=!1,endCursor:o=null}={},nodes:a=[]}=r?.coralcomments??{},i=a?.map(r=>{const{author:t,isAnonymous:n,body:o,createdAt:a,id:i,meta:s,rating:c,revision:l,viewerActionPresence:d,actionCounts:m,replies:u,reviewTags:g,tags:y,siteUsername:p,story:w,images:h}=r,{location:v,reviewerInfo:C,willPrepareAgain:f}=(e=>{if(!e)return{willPrepareAgain:!0,location:"No location",reviewerInfo:"ANONYMOUS"};try{const r=JSON.parse(e),{location:t,displayName:n,willPrepareAgain:o}=r;return{willPrepareAgain:o,location:t,reviewerInfo:n}}catch(e){return{willPrepareAgain:"",location:"",reviewerInfo:""}}})(s),E=l?.id||null,A=g?.map(e=>e.code)||[],T=y?.map(e=>e.code)||[],k=m?.reaction?.total??0,{orgRole:b}=t??{};return{isAnonymous:n,location:v,recipeId:e,reviewText:o,reviewerInfo:C,willPrepareAgain:f,createdAt:a,updatedAt:a,rating:c,role:b,_id:i,revisionId:E,viewerActionPresence:d?.reaction??!1,reactionCount:k,replies:u?.nodes,replyPageInfo:u?.pageInfo,siteUsername:p?.[0]?.name,coralBadges:p?.[0]?.badges,reviewerCreatedAt:p?.[0]?.createdAt,reviewerLocation:p?.[0]?.location,tags:A,commentTags:T,storyURL:w?.url,images:h}});return{recipeId:e,reviews:i,reviewsCount:i.length,page:{hasNextPage:n,endCursor:o}}}catch(r){return o.warn(`Error making GQL request in getComments: ${r.message}`),{recipeId:e,reviews:[],reviewsCount:0,page:{hasNextPage:!1,endCursor:""}}}},d=async e=>l({...e,commentsOrderBy:"FEATURED_AT_DESC_REACTION_DESC",tags:["FEATURED","QA"]}),m=async e=>l({...e,excludeTags:["FEATURED","QA"]}),u=async({commentId:e,after:r,commentingUrl:t,logger:o,accessToken:a,replyLimit:i=10,repliesOrderBy:s="CREATED_AT_DESC"})=>{const l={operationName:"CommentById",query:n.II,variables:{replyLimit:i,after:r,orderBy:s,commentId:e}};try{const r=await c(t,l,a),{pageInfo:{hasNextPage:n=!1,endCursor:o=null}={},nodes:i=[]}=r?.coralcomment?.replies??{};return{commentId:e,replies:i,page:{hasNextPage:n,endCursor:o}}}catch(r){return o.warn(`Error making GQL request in getRepliesByCommentId: ${r.message}`),{commentId:e,replies:[],page:{hasNextPage:!1,endCursor:""}}}},g=async(e,r,t)=>{const o={operationName:"Story",query:n.Vl,variables:{id:e}};let a=null,i=null;try{const e=await c(r,o),{totalPrimaryCommentsCount:t=null,commentTagLabel:n=null}=e?.story||{};a=t,i=n}catch(e){t.warn(`Error making GQL request in storyCommentsCount: ${e.message}`)}return{commentsCount:a,commentTagLabel:i}},y=async({id:e,title:r,url:t,commentingUrl:o,logger:a})=>{const i={operationName:"updateStory",query:n.fn,variables:{inp:{clientMutationId:"0",id:e,story:{metadata:{title:r},url:t}}}};try{return void await c(o,i)}catch(e){a.warn(`Error making GQL request in updateOrAddStory: ${e.message}`)}},p=async(e,r)=>{const t={operationName:"createReply",query:n.fC,variables:{input:r}};let o;try{o=await c(e,t)}catch(e){throw new Error(e)}return o},w=async(e,r,t,o)=>{const a={operationName:"addReview",query:n.Z7,variables:{input:e,coralUserID:r}};let i=null;try{i=await c(t,a)}catch(e){throw o.warn(`Error making GQL request in addReview: ${e.message}`),new Error(e)}return i},h=async({id:e,title:r,organizationId:t,commentingUrl:o,console:a})=>{if(!o)return;const{story:i}=await(async(e,r,t)=>{const o={operationName:"Story",query:n.aI,variables:{id:e}};let a;try{a=await c(r,o)}catch(e){t.warn(`Error making GQL request in storyExists: ${e.message}`)}return a})(e,o,a),s=window.location.origin+window.location.pathname;if(!i)try{return void await(async({id:e,organizationId:r,title:t,url:o,commentingUrl:a,logger:i})=>{const s={clientMutationId:"0",story:{id:e,siteID:r,url:o,metadata:{title:t}}},l={operationName:"createStory",query:n.LD,variables:{inp:s}};try{return await c(a,l)||(i.warn("No response from GraphQL service."),!1)}catch(e){return i.warn(`Error in createStory: ${e.message}`),!1}})({id:e,organizationId:t,title:r,url:s,commentingUrl:o,logger:a})}catch(r){a.warn(` could not create story for ${e}: ${r}`)}if(!i.url)try{return void await y({id:e,title:r,url:s,commentingUrl:o,logger:a})}catch(r){a.warn(` could not update story for ${e}: ${r}`)}},v=async(e,r,t)=>{const o={operationName:"userStoryRating",query:n.yV,variables:{storyID:e}};try{return await c(r,o)}catch(e){return t.warn(`Error making GQL request in getUserStoryRating: ${e.message}`),null}}},60881:(e,r,t)=>{"use strict";t.d(r,{s:()=>c});var n=t(38267),o=t(5556),a=t.n(o),i=t(26865),s=t(18730);const c=(0,n.Ay)(s.v).withConfig({displayName:"BaseLink"})` color: ${({theme:e,colorToken:r})=>(0,i.HK)(e,r)}; transition-property: color, background, text-shadow; transition-duration: 5s; transition-timing-function: ease-in-out; ${({theme:e,typeToken:r})=>(0,i.Gg)(e,r)} ${({theme:e,colorStaticLinkToken:r,colorSecondaryLinkToken:t,linkStyle:n})=>(0,i.pe)(e,r,t,n)} ${({hasUnderline:e})=>(e=>e?"":"\n cursor: pointer;\n text-decoration: none;\n\n &:active,\n &:link,\n &:visited {\n text-decoration: none;\n }\n\n &:hover,\n &:focus {\n text-decoration: underline;\n }\n ")(e)} `;c.defaultProps={as:"a",colorToken:"colors.interactive.base.light",hasUnderline:!0,linkStyle:"default"},c.propTypes={as:a().string,colorSecondaryLinkToken:a().string,colorStaticLinkToken:a().string,colorToken:a().string,hasUnderline:a().bool,linkStyle:a().oneOf(["global","default","navigation"]),target:a().string,typeToken:a().string}},72115:(e,r,t)=>{var n=t(79920)("isEqual",t(2404));n.placeholder=t(2874),e.exports=n},79244:(e,r,t)=>{"use strict";t.d(r,{A:()=>n});const n=t(21735).A}}]);