관리-도구
편집 파일: Settings.0254ae9c.js
import{d as A}from"./index.20192476.js";import{u as v,f as S}from"./TableOfContentsStore.62cf580e.js";import{u as h,p as f}from"./postTitle.d67eb903.js";import{g as N,h as w}from"./helpers.f95d5840.js";import{_ as x}from"./_plugin-vue_export-helper.249dac1d.js";import{o as R,c as E,a as b}from"./runtime-dom.esm-bundler.6789c400.js";const U=A("SeoPreviewStore",{getters:{richResults(){var a;const o=h(),n=v();let e=(a=S(n.headings,4)||[])==null?void 0:a.map(s=>(s==null?void 0:s.content)||"");return(!Array.isArray(e)||!e.length)&&(e=[]),{anchorLinks:e.filter(s=>!!s),reviewSnippet:this.extractReviewSnippet(o.output),faq:this.extractFaq(o.output)}}},actions:{extractReviewSnippet(o){var a,s,C;let n={};const e=["Movie","Product","SoftwareApplication","Car","ProductReview"];for(const y of e){const t=f(y,o);if(t){const _=(t==null?void 0:t.aggregateRating)||null,i=(t==null?void 0:t.offers)||null,c=N(Array.isArray(i)?w(i,"price"):[]);let u=[];if(t!=null&&t.review)if(Array.isArray(t==null?void 0:t.review))u=t.review.map(r=>{var g,m;const l=Array.isArray((g=r==null?void 0:r.positiveNotes)==null?void 0:g.itemListElement)?r.positiveNotes.itemListElement.map(p=>p.name):[],L=Array.isArray((m=r==null?void 0:r.negativeNotes)==null?void 0:m.itemListElement)?r.negativeNotes.itemListElement.map(p=>p.name):[];return l.concat(L)}).flat();else{const r=Array.isArray((a=t.review.positiveNotes)==null?void 0:a.itemListElement)?t.review.positiveNotes.itemListElement.map(L=>L.name):[],l=Array.isArray((s=t.review.negativeNotes)==null?void 0:s.itemListElement)?t.review.negativeNotes.itemListElement.map(L=>L.name):[];u=r.concat(l)}c.sort((r,l)=>r-l),n={..._&&{bestRating:t.aggregateRating.bestRating??null,ratingValue:t.aggregateRating.ratingValue??null,reviewCount:t.aggregateRating.reviewCount??null,ratingCount:t.aggregateRating.ratingCount??null},...i&&{priceCurrency:((C=i[0])==null?void 0:C.priceCurrency)??i.priceCurrency??null,price:c[0]??i.price??null,priceFrom:c[0]??null,priceTo:c[c.length-1]??null},prosConsNotes:u};break}}return n},extractFaq(o){const n=f("FAQPage",o);return n!=null&&n.mainEntity?Object.values(n.mainEntity).map(e=>{var a;return{question:e==null?void 0:e.name,answer:(a=e==null?void 0:e.acceptedAnswer)==null?void 0:a.text}}):{}}}}),d={},k={viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-settings"},P=b("path",{d:"M12.0016 7.49992C12.0016 7.72659 11.9816 7.93992 11.9549 8.15325L13.3616 9.25325C13.4883 9.35325 13.5216 9.53325 13.4416 9.67992L12.1083 11.9866C12.0483 12.0933 11.9349 12.1533 11.8216 12.1533C11.7816 12.1533 11.7416 12.1466 11.7016 12.1333L10.0416 11.4666C9.69494 11.7266 9.3216 11.9533 8.91494 12.1199L8.6616 13.8866C8.6416 14.0466 8.5016 14.1666 8.33494 14.1666H5.66827C5.5016 14.1666 5.3616 14.0466 5.3416 13.8866L5.08827 12.1199C4.6816 11.9533 4.30827 11.7333 3.9616 11.4666L2.3016 12.1333C2.26827 12.1466 2.22827 12.1533 2.18827 12.1533C2.06827 12.1533 1.95494 12.0933 1.89494 11.9866L0.561602 9.67992C0.481602 9.53325 0.514935 9.35325 0.641602 9.25325L2.04827 8.15325C2.0216 7.93992 2.0016 7.71992 2.0016 7.49992C2.0016 7.27992 2.0216 7.05992 2.04827 6.84659L0.641602 5.74659C0.514935 5.64659 0.474935 5.46659 0.561602 5.31992L1.89494 3.01325C1.95494 2.90659 2.06827 2.84659 2.1816 2.84659C2.2216 2.84659 2.2616 2.85325 2.3016 2.86659L3.9616 3.53325C4.30827 3.27325 4.6816 3.04659 5.08827 2.87992L5.3416 1.11325C5.3616 0.953252 5.5016 0.833252 5.66827 0.833252H8.33494C8.5016 0.833252 8.6416 0.953252 8.6616 1.11325L8.91494 2.87992C9.3216 3.04659 9.69494 3.26659 10.0416 3.53325L11.7016 2.86659C11.7349 2.85325 11.7749 2.84659 11.8149 2.84659C11.9349 2.84659 12.0483 2.90659 12.1083 3.01325L13.4416 5.31992C13.5216 5.46659 13.4883 5.64659 13.3616 5.74659L11.9549 6.84659C11.9816 7.05992 12.0016 7.27325 12.0016 7.49992ZM10.6683 7.49992C10.6683 7.35992 10.6616 7.21992 10.635 7.01325L10.5416 6.25992L11.135 5.79325L11.8483 5.22659L11.3816 4.41992L10.535 4.75992L9.82831 5.04659L9.22164 4.57992C8.95497 4.37992 8.68831 4.22659 8.40164 4.10659L7.69497 3.81992L7.58831 3.06659L7.46164 2.16659H6.53497L6.40164 3.06659L6.29497 3.81992L5.58831 4.10659C5.31497 4.21992 5.04164 4.37992 4.75497 4.59325L4.15497 5.04659L3.46164 4.76659L2.61497 4.42659L2.14831 5.23325L2.86831 5.79325L3.46164 6.25992L3.36831 7.01325C3.34831 7.21325 3.33497 7.36658 3.33497 7.49992C3.33497 7.63325 3.34831 7.78658 3.36831 7.99325L3.46164 8.74658L2.86831 9.21325L2.14831 9.77325L2.61497 10.5799L3.46164 10.2399L4.16831 9.95325L4.77497 10.4199C5.04164 10.6199 5.30831 10.7733 5.59497 10.8933L6.30164 11.1799L6.40831 11.9333L6.53497 12.8333H7.46831L7.60164 11.9333L7.70831 11.1799L8.41497 10.8933C8.68831 10.7799 8.96164 10.6199 9.24831 10.4066L9.84831 9.95325L10.5416 10.2333L11.3883 10.5733L11.855 9.76658L11.135 9.20658L10.5416 8.73992L10.635 7.98658C10.655 7.78658 10.6683 7.63992 10.6683 7.49992ZM7.00155 4.83325C5.52821 4.83325 4.33488 6.02659 4.33488 7.49992C4.33488 8.97325 5.52821 10.1666 7.00155 10.1666C8.47488 10.1666 9.66821 8.97325 9.66821 7.49992C9.66821 6.02659 8.47488 4.83325 7.00155 4.83325ZM5.66821 7.49992C5.66821 8.23325 6.26821 8.83325 7.00155 8.83325C7.73488 8.83325 8.33488 8.23325 8.33488 7.49992C8.33488 6.76658 7.73488 6.16658 7.00155 6.16658C6.26821 6.16658 5.66821 6.76658 5.66821 7.49992Z",fill:"currentColor"},null,-1),q=[P];function B(o,n){return R(),E("svg",k,q)}const j=x(d,[["render",B]]);export{j as S,U as u};