iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://retty.me/_nuxt/makeMatomeHead-Bg_Vp_HQ.js
import{al as w}from"./client-BmVmnFEC.js";import{l as M,i as D,f as N}from"./date-BYBoZiPG.js";import{m as A}from"./makeGtmScript-B8HLg2s0.js";function T(e,t,i,n){return n={...n,timeZone:t,originalDate:e},M(D(e,t,{timeZone:n.timeZone}),i,n)}function J(e){return{articleOutline:w(()=>{let i=0;return e.restaurantGroups.map((n,o)=>({id:`group-${o}`,text:n.title,restaurants:n.restaurants.map(r=>(i+=1,{id:`anchor-${r.id}`,index:i,text:r.name}))}))})}}function x(e){return e<100?0:e<500?100:e<1e3?500:1e3}function I(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":N(t)}const p=e=>T(e,"Asia/Tokyo","yyyy-MM-dd"),F=e=>({"@context":"https://schema.org","@type":"Article","@id":`https://retty.me/matome/${e.id}/`,image:e.eyecatchImageUrl,headline:e.title,description:e.description,datePublished:p(e.datePublished),dateModified:p(e.dateModified)}),O=(...e)=>{const t=[...e].filter(i=>i!==null);return t.length===0?null:{innerHTML:JSON.stringify(t),type:"application/ld+json"}},U=(e,t)=>{const i=O(F(e)),n=i!==null?[i]:[],{description:o,id:r,eyecatchImageUrl:d}=e,a=`${e.title} - Retty`,c=`https://retty.me/matome/${r}/`;return{__dangerouslyDisableSanitizers:["script"],title:a,link:[{hid:"canonical",rel:"canonical",href:c}],script:[...A(t),...n],meta:[{hid:"description",name:"description",content:o},{hid:"twitter:title",name:"twitter:title",content:a},{hid:"twitter:description",name:"twitter:description",content:o},{hid:"twitter:url",name:"twitter:url",content:c},{hid:"twitter:image",name:"twitter:image",content:d},{hid:"twitter:card",name:"twitter:card",content:"summary_large_image"},{hid:"twitter:site",name:"twitter:site",content:"@Retty_jp"},{hid:"og:type",property:"og:type",content:"article"},{hid:"og:title",property:"og:title",content:a},{hid:"og:description",property:"og:description",content:o},{hid:"og:url",property:"og:url",content:c},{hid:"og:image",property:"og:image",content:d}]}};var m={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"matomeArticleToMakeArticle"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MatomeArticle"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"eyecatchImageUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"datePublished"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dateModified"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"matomeArticleToMakeJSONLD"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MatomeArticle"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"matomeArticleToMakeArticle"},directives:[]}]}}],loc:{start:0,end:223}};m.loc.source={body:`fragment matomeArticleToMakeArticle on MatomeArticle { id title eyecatchImageUrl description datePublished dateModified } fragment matomeArticleToMakeJSONLD on MatomeArticle { ...matomeArticleToMakeArticle } `,name:"GraphQL request",locationOffset:{line:1,column:1}};function s(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(n){s(n,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(n){s(n,t)}),e.definitions&&e.definitions.forEach(function(n){s(n,t)})}var v={};(function(){m.definitions.forEach(function(t){if(t.name){var i=new Set;s(t,i),v[t.name.value]=i}})})();function h(e,t){for(var i=0;i0;){var d=r;r=new Set,d.forEach(function(a){if(!o.has(a)){o.add(a);var c=v[a]||new Set;c.forEach(function(f){r.add(f)})}})}return o.forEach(function(a){var c=h(e,a);c&&i.definitions.push(c)}),i}S(m,"matomeArticleToMakeArticle");S(m,"matomeArticleToMakeJSONLD");var l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"matomeArticleToMakeMatomeHead"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MatomeArticle"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"matomeArticleToMakeJSONLD"},directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"eyecatchImageUrl"},arguments:[],directives:[]}]}}],loc:{start:0,end:200}};l.loc.source={body:`#import "@/lib/head/matome/structuredData/makeJSONLD.graphql" fragment matomeArticleToMakeMatomeHead on MatomeArticle { ...matomeArticleToMakeJSONLD id title description eyecatchImageUrl } `,name:"GraphQL request",locationOffset:{line:1,column:1}};var g={};function E(e){return e.filter(function(t){if(t.kind!=="FragmentDefinition")return!0;var i=t.name.value;return g[i]?!1:(g[i]=!0,!0)})}l.definitions=l.definitions.concat(E(m.definitions));function u(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(n){u(n,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(n){u(n,t)}),e.definitions&&e.definitions.forEach(function(n){u(n,t)})}var k={};(function(){l.definitions.forEach(function(t){if(t.name){var i=new Set;u(t,i),k[t.name.value]=i}})})();function y(e,t){for(var i=0;i0;){var d=r;r=new Set,d.forEach(function(a){if(!o.has(a)){o.add(a);var c=k[a]||new Set;c.forEach(function(f){r.add(f)})}})}return o.forEach(function(a){var c=y(e,a);c&&i.definitions.push(c)}),i}R(l,"matomeArticleToMakeMatomeHead");export{I as c,l as d,x as g,U as m,J as u};