1"use strict";(globalThis.webpackChunkverso=globalThis.webpackChunkverso||[]).push([[7680],{32764(e,t,r){r.d(t,{A:()=>p});var n=r(5556),o=r.n(n),a=r(96540),i=r(34854),s=r(53499);const c="https://assets.ceros.site/js/flex-client.js",l="https://view.ceros.com",d=({children:e})=>a.createElement("div",{suppressHydrationWarning:!0},e);d.propTypes={children:o().node};const m=()=>{if(!window.CerosSDK)return;const e=document.querySelectorAll("iframe.ceros-experience"),t=(0,i.Nf)();e.forEach(e=>{const r=e?.parentNode,n=r?.getAttribute("id");n&&window.CerosSDK.findExperience(n).done(e=>{"function"==typeof e.setUserConsentForAnalytics&&e.setUserConsentForAnalytics(t)}).fail(e=>{})})},u=async e=>{if(!e.origin?.startsWith(l))return;let t=e.data;try{"string"==typeof t&&(t=JSON.parse(t))}catch(e){return}const r=t?.event||t?.type||t?.message;"ceros-embedded-viewport:ready"!==r&&"ready"!==r||(await new Promise(e=>{if(window.CerosSDK)return e();const t=document.createElement("script");t.src="https://sdk.ceros.com/embedded-player-sdk-v5.min.js",t.async=!0,t.onload=e,t.onerror=()=>{e()},document.head.appendChild(t)}),m())},y=e=>{if(e.origin===l)try{const t="string"==typeof e.data?JSON.parse(e.data):e.data;"ceros-embedded-viewport:goto-url"===t?.event&&t?.url&&window.open(t.url,t.urlOpenInNewWindow?"_blank":"_self")}catch(e){}},g=({cerosType:e,height:t,manifestUrl:r,renderMode:n,url:o})=>{const[i,l]=(0,a.useState)(null),g="flex"===e||Boolean(r);if((0,a.useEffect)(()=>{if(g)return;const e=`https://view.ceros.com/oembed?url=${encodeURIComponent(o)}&format=json`;fetch(e).then(e=>{if(!e.ok)throw new Error(e.statusText);return e.json()}).then(l).catch(e=>{})},[g,o]),(0,a.useEffect)(()=>{g&&r&&(window.Kendra?.TRACK_COMPONENT?.broadcast?.(s.G.RENDER,{name:"Ceros"}),(()=>{if(window.__CEROS_FLEX_CLIENT_LOADED__||document.querySelector(`script[src="${c}"]`))return void(window.__CEROS_FLEX_CLIENT_LOADED__=!0);window.__CEROS_FLEX_CLIENT_LOADED__=!0;const e=document.createElement("script");e.src=c,e.async=!0,document.head.appendChild(e)})())},[g,r]),(0,a.useEffect)(()=>{if(g)return;window.Kendra?.TRACK_COMPONENT?.broadcast?.(s.G.RENDER,{name:"Ceros"}),window.addEventListener("message",u,!0),window.addEventListener("message",y,!0);const e=()=>m();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",u,!0),window.removeEventListener("message",y,!0),window.removeEventListener("FidesUpdated",e)}},[g]),g){const e=t?{height:t}:void 0,o="inline"===n||null==n;return a.createElement(d,null,r&&a.createElement("div",{"data-flex-inline":o?"":void 0,"data-flex-manifest-url":r,style:e}))}return a.createElement(d,null,i?.html&&a.createElement("div",{dangerouslySetInnerHTML:{__html:i.html}}))};g.propTypes={cerosType:o().string,height:o().oneOfType([o().number,o().string]),manifestUrl:o().string,renderMode:o().string,url:o().string};const p=g},36382(e,t,r){r.d(t,{A:()=>s});var n=r(38267),o=r(26865),a=r(18608);const i=(0,n.Ay)(a.vm).withConfig({displayName:"SidebarHeading"}).attrs(({"aria-level":e="2",role:t="heading",typeIdentity:r="typography.definitions.discovery.subhed-section-tertiary"})=>({"aria-level":e,role:t,typeIdentity:r}))` 2 margin: 0; 3 border-width: ${({theme:e})=>(0,o.Pp)(e,"dividerWidth")} 0; 4 border-style: solid; 5 border-color: ${({theme:e})=>(0,o.HK)(e,"colors.consumption.body.standard.display-texture")}; 6 padding: ${(0,o.Kq)(2)} 0; 7`;i.displayName="SidebarHeading";const s=i},79244(e,t,r){r.d(t,{A:()=>n});const n=r(21735).A},60711(e,t,r){r.d(t,{$u:()=>d,Jn:()=>m,M3:()=>C,O_:()=>v,Oe:()=>w,Pb:()=>g,SW:()=>u,WE:()=>y,_u:()=>E,kD:()=>h,nz:()=>c,u2:()=>p});var n=r(22914),o=r(4046),a=r(56892),i=(r(86456),r(53788));const{oidcCookies:s}=i.A,c=(e,t,r="")=>{const n=(0,a.getCookie)(s.access)||r,i=new o.l4(e),{query:c,variables:l}=t,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:t=null,commentingUrl:r,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:y,excludeTags:g,includeViewerOwnership:p=!1})=>{const w=s||15,h={operationName:"Comments",query:n.Hw,variables:{commentLimit:w,replyLimit:d,after:t,storyId:e,commentsOrderBy:a,repliesOrderBy:i,showPrimaryComments:!0,tag:m,tags:u,excludeTag:y,excludeTags:g,includeViewerOwnership:p}};try{const t=await c(r,h,l),{pageInfo:{hasNextPage:n=!1,endCursor:o=null}={},nodes:a=[]}=t?.coralcomments??{},i=a?.map(t=>{const{author:r,editing:n,isAnonymous:o,body:a,createdAt:i,id:s,meta:c,rating:l,revision:d,viewerActionPresence:m,actionCounts:u,replies:y,reviewTags:g,tags:p,siteUsername:w,story:h,images:E}=t,{location:v,reviewerInfo:C,willPrepareAgain:A}=(e=>{if(!e)return{willPrepareAgain:!0,location:"No location",reviewerInfo:"ANONYMOUS"};try{const t=JSON.parse(e),{location:r,displayName:n,willPrepareAgain:o}=t;return{willPrepareAgain:o,location:r,reviewerInfo:n}}catch(e){return{willPrepareAgain:"",location:"",reviewerInfo:""}}})(c),T=d?.id||null,_=g?.map(e=>e.code)||[],f=p?.map(e=>e.code)||[],I=u?.reaction?.total??0,{orgRole:L}=r??{};return{isAnonymous:o,location:v,recipeId:e,reviewText:a,reviewerInfo:C,willPrepareAgain:A,createdAt:i,updatedAt:i,rating:l,...n?.editableUntil&&{isReviewOwnedByViewer:!0},role:L,_id:s,revisionId:T,viewerActionPresence:m?.reaction??!1,reactionCount:I,replies:y?.nodes,replyPageInfo:y?.pageInfo,siteUsername:w?.[0]?.name,coralBadges:w?.[0]?.badges,reviewerCreatedAt:w?.[0]?.createdAt,reviewerLocation:w?.[0]?.location,tags:_,commentTags:f,storyURL:h?.url,images:E}});return{recipeId:e,reviews:i,reviewsCount:i.length,page:{hasNextPage:n,endCursor:o}}}catch(t){return o.warn(`Error making GQL request in getComments: ${t.message}`),{recipeId:e,reviews:[],reviewsCount:0,page:{hasNextPage:!1,endCursor:""}}}},d=async e=>l({...e,commentsOrderBy:"FEATURED_AT_DESC_REACTION_DESC",tags:["FEATURED"]}),m=async e=>l({...e,commentsOrderBy:"FEATURED_AT_DESC_REACTION_DESC",excludeTags:["FEATURED"]}),u=async e=>l({...e,excludeTags:["FEATURED","QA"]}),y=async({commentId:e,after:t,commentingUrl:r,logger:o,accessToken:a,replyLimit:i=10,repliesOrderBy:s="CREATED_AT_DESC"})=>{const l={operationName:"CommentById",query:n.II,variables:{replyLimit:i,after:t,orderBy:s,commentId:e}};try{const t=await c(r,l,a),{pageInfo:{hasNextPage:n=!1,endCursor:o=null}={},nodes:i=[]}=t?.coralcomment?.replies??{};return{commentId:e,replies:i,page:{hasNextPage:n,endCursor:o}}}catch(t){return o.warn(`Error making GQL request in getRepliesByCommentId: ${t.message}`),{commentId:e,replies:[],page:{hasNextPage:!1,endCursor:""}}}},g=async(e,t,r,i=5e3)=>{const c={operationName:"Story",query:n.Vl,variables:{id:e}};let l=null,d=null;const m="function"==typeof AbortController?new AbortController:null,u=m&&i>0?setTimeout(()=>m.abort(),i):null;try{const e=new o.l4(t,{signal:m?.signal}),{query:r,variables:n}
7=c,i=await e.request(r,n,{"Access-Control-Request-Method":"POST","Access-Control-Request-Headers":"Content-Type","Content-Type":"application/json","User-Agent":"verso-client",Authorization:`Bearer ${(0,a.getCookie)(s.access)||""}`}),{totalPrimaryCommentsCount:u=null,commentTagLabel:y=null}=i?.story||{};l=u,d=y}catch(e){r.warn(`Error making GQL request in storyCommentsCount: ${e.message}`)}finally{clearTimeout(u)}return{commentsCount:l,commentTagLabel:d}},p=async({id:e,title:t,documentType:r,url:o,commentingUrl:a,logger:i})=>{const s={operationName:"updateStory",query:n.fn,variables:{inp:{clientMutationId:"0",id:e,story:{metadata:{title:t,...r?{contentType:r}:{}},url:o}}}};try{return void await c(a,s)}catch(e){i.warn(`Error making GQL request in updateOrAddStory: ${e.message}`)}},w=async(e,t)=>{const r={operationName:"createReply",query:n.fC,variables:{input:t}};let o;try{o=await c(e,r)}catch(e){throw new Error(e)}return o},h=async(e,t,r,o)=>{const a={operationName:"addReview",query:n.Z7,variables:{input:e,coralUserID:t}};let i=null;try{i=await c(r,a)}catch(e){throw o.warn(`Error making GQL request in addReview: ${e.message}`),new Error(e)}return i},E=async({id:e,title:t,documentType:r,organizationId:o,commentingUrl:a,console:i})=>{if(!a)return;const{story:s}=await(async(e,t,r)=>{const o={operationName:"Story",query:n.aI,variables:{id:e}};let a;try{a=await c(t,o)}catch(e){r.warn(`Error making GQL request in storyExists: ${e.message}`)}return a})(e,a,i),l=window.location.origin+window.location.pathname;if(!s)try{return void await(async({id:e,organizationId:t,title:r,documentType:o,url:a,commentingUrl:i,logger:s})=>{const l={clientMutationId:"0",story:{id:e,siteID:t,url:a,metadata:{title:r,...o?{contentType:o}:{}}}},d={operationName:"createStory",query:n.LD,variables:{inp:l}};try{return await c(i,d)||(s.warn("No response from GraphQL service."),!1)}catch(e){return s.warn(`Error in createStory: ${e.message}`),!1}})({id:e,organizationId:o,title:t,documentType:r,url:l,commentingUrl:a,logger:i})}catch(t){i.warn(` could not create story for ${e}: ${t}`)}if(!s.url)try{return void await p({id:e,title:t,documentType:r,url:l,commentingUrl:a,logger:i})}catch(t){i.warn(` could not update story for ${e}: ${t}`)}},v=async(e,t,r)=>{const o={operationName:"userStoryRating",query:n.yV,variables:{storyID:e}};try{return await c(t,o)}catch(e){return r.warn(`Error making GQL request in getUserStoryRating: ${e.message}`),null}},C=async({storyID:e,userID:t,siteID:r,commentingUrl:o,contentType:a,logger:i=console})=>{const s={operationName:"coralreviews",query:n.KF,variables:{storyID:e,userID:t,siteID:r}};try{const e=await c(o,s),t=e?.coralreviews??[];if(0===t.length)return{hasRating:!1,hasComment:!1,activityType:null};const r=t.some(e=>null!=e?.rating?.rating),n=t.some(e=>{const t=e?.comment?.body;return Boolean(t)&&"__RATING_ONLY_COMMENT_PLACEHOLDER__"!==t});let i=null;return"article"===a?n&&(i="comment"):(r||n)&&(i="review"),{hasRating:r,hasComment:n,activityType:i}}catch(e){return i.warn(`Error making GQL request in getUserStoryActivity: ${e.message}`),{hasRating:!1,hasComment:!1,activityType:null}}}}}]);
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.