PageSourceSearch

https://www.yamatomichi.com/_next/static/chunks/8817-d8a589ded613b506.js

js yamatomichi.com collected 2026-09-24 09:23:54 UTC 12,721 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8817],{626:(e,n,a)=>{"use strict";a.d(n,{A:()=>_});var t=a(37876),r=a(27888);a(30346),a(9572),a(18058);var l=a(29904),o=a(75556),i=a.n(o),c=a(15039),s=a.n(c);function _(e){let{contents:n,perPage:a,isPC:o}=e,c=s()(i().Slider,{[i().__pc]:o,[i().__sp]:!o});return(0,t.jsx)("div",{className:c,children:(0,t.jsxs)(r.RC,{slidesPerView:a,spaceBetween:15,pagination:{el:".".concat(i().SwiperPagination),clickable:!0},navigation:{nextEl:".".concat(i().SwiperNextButton),prevEl:".".concat(i().SwiperPrevButton)},modules:[l.dK,l.Vx],className:i().SwiperContainer,children:[n.map((e,n)=>e?(0,t.jsx)(r.qr,{className:i().SwiperSlide,children:(0,t.jsx)("div",{className:i().Inner,children:e})},"singleSlide-".concat(n)):null),(0,t.jsxs)("div",{className:i().SwiperNavigation,children:[(0,t.jsx)("button",{className:"".concat(i().SwiperPrevButton," ").concat(i().SwiperButton),children:(0,t.jsx)("img",{src:"/images/sectionField/imageBlockSlider/arrowLeft.svg",width:34,height:34,alt:""})}),(0,t.jsx)("button",{className:"".concat(i().SwiperNextButton," ").concat(i().SwiperButton),children:(0,t.jsx)("img",{src:"/images/sectionField/imageBlockSlider/arrowRight.svg",width:34,height:34,alt:""})})]})]})})}},8173:(e,n,a)=>{"use strict";a.d(n,{A:()=>o,r:()=>i});var t=a(37876),r=a(67375),l=a.n(r);function o(e){let{text:n,onClick:a,disabled:r,isInline:o,className:i}=e;return(0,t.jsx)("button",{className:"".concat(l().BlueButtonStyle," ").concat(r?l().__disabled:""," ").concat(o?l().__inline:""),onClick:a,disabled:r,children:n})}function i(e){let{text:n,href:a,isInline:r,className:o}=e;return(0,t.jsx)("a",{className:"".concat(l().BlueButtonStyle," ").concat(r?l().__inline:""),href:a,children:n})}},25083:(e,n,a)=>{"use strict";a.d(n,{j:()=>r});var t=a(63150);let r="\ntitle\nuri\ndate\nfeaturedImage {\n   node {\n   	".concat(t.w,"\n   }\n}\nmainImage {\n		subTitle\n   mainImage {\n   	mediaItemUrl\n   }\n   mainImageSmp {\n   	mediaItemUrl\n   }\n   mainSlides {\n   	mediaItemUrl\n   }\n   mainSlidesSp {\n   	mediaItemUrl\n   }\n}\njournalsCategories {\n   nodes {\n   	parentId\n   	slug\n   	name\n   	catNameEn{\n      	catNameEn\n			}\n   }\n}\nogpInfo {\n   journalAuthor\n   journalBackColor\n   journalBackFontcolor\n}\n")},40491:(e,n,a)=>{"use strict";a.d(n,{N4:()=>p,$i:()=>g,Ur:()=>b});var t=a(37876),r=a(42459),l=a.n(r),o=a(25083),i=a(85336);async function c(e){if(0===e.length)return{};let n="\nquery EmbedJournals{\n".concat(e.map((e,n)=>{let a=e.replace(/\//g,"_");return"".concat(a,': contentNode(id: "').concat(e,'", idType: URI) {\n        ... on AabJournalsField {\n            ').concat(o.j,"\n        }\n        }")}).join("\n"),"\n}\n"),a=await (0,i.c)({query:n});if(!a)return{};let t={};for(let n of e){let e="https://www.yamatomichi.com".concat(n),r=a[n.replace(/\//g,"_")];r&&(t[e]=r)}return t}var s=a(48245),_=a(15039),u=a.n(_);a(626);var m=a(14232),d=a(8173);function p(e){let{field:n,isInNote:a}=e,[r,o]=(0,m.useState)(!1),[i,_]=(0,m.useState)(null);if(!(null==n?void 0:n.embedurl))return null;let d=(0,m.useMemo)(()=>{var e;return null==(e=n.embedurl.match(/\/(?:en\/)?journals\/[^\/]+/g))?void 0:e[0]},[n.embedurl]);if(!d)return null;let p=(0,m.useCallback)(async e=>Object.values(await c([e]))[0],[]);(0,m.useEffect)(()=>{p(d).then(e=>{_(e),o(!0)})},[d,p]);let g=u()(l().EmbedJournal1,{[l().__note]:a});return b(i),(0,t.jsx)("div",{className:g,children:r&&i&&(0,t.jsx)("div",{className:l().__wrapper,children:(0,t.jsx)(s.iM,{article:i,spSmall:!0})})})}function g(e){let{field:n,isInNote:a,isInReadMore:r}=e;if(!(null==n?void 0:n.embedJournals)||0===n.embedJournals.map(e=>e.embedUrl).length)return null;let l=(0,m.useMemo)(()=>n.embedJournals.map(e=>e.embedUrl).filter(Boolean).map(e=>e.match(/\/(?:en\/)?journals\/[^\/]+/g)).filter(Boolean).map(e=>e[0]),[n.embedJournals]);return(0,t.jsx)(h,{uris:l,isInNote:a,isFullWidth:n.embedIsFullWidth,isInReadMore:r})}function h(e){let{uris:n,embedJournalsDataArr:a,isInNote:r,isFullWidth:o,isInReadMore:i}=e,[_,p]=(0,m.useState)(!1),[g,h]=(0,m.useState)([]),[b,f]=(0,m.useState)(6);if(!n&&!a||n&&0===n.length||a&&0===a.length)return null;let x=(0,m.useCallback)(async e=>Object.values(await c(e)).map((e,n)=>e.journalsCategories?(0,t.jsx)(s.iM,{article:e,spSmall:!0},n):(0,t.jsx)(t.Fragment,{})),[]);(0,m.useEffect)(()=>{(null==n?void 0:n.length)>0&&x(n).then(e=>{h(e),p(!0)})},[n,x]);let j=g.length,C=u()(l().EmbedJournal3,{[l().__note]:r,[l().__inReadMore]:i,[l().__fullWidth]:o,[l().__1col]:1===j,[l().__2col]:2===j});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:C,children:_&&g.slice(0,b).map((e,n)=>(0,t.jsx)("div",{className:l().__wrapper,children:e},n))}),g.length>b&&(0,t.jsx)("div",{className:l().ButtonWrapper,children:(0,t.jsx)(d.A,{text:"続きを読む",onClick:()=>f(b+6),disabled:!1})})]})}function b(e){var n,a,t,r,l,o;if(!e)return null;let i=null==(a=e.mainImage)||null==(n=a.mainImage)?void 0:n.mediaItemUrl;if(i&&_(i))return i;let c=null==(r=e.mainImage)||null==(t=r.mainSlides)?void 0:t.find(e=>{let n=e.mediaItemUrl;return!!n&&_(n)});if(c)return c.mediaItemUrl;let s=null==(o=e.featuredImage)||null==(l=o.node)?void 0:l.mediaItemUrl;if(s&&_(s))return s;function _(e){return null!=e.match(/\.(jpeg|jpg|gif|png|svg)$/)}}},42459:e=>{e.exports={__pc:"embedJournals___pc__gMy0h",__sp:"embedJournals___sp___DnOr",__commonMarginBottom:"embedJournals___commonMarginBottom__DXktu",CheckboxLabelWrapper:"embedJournals_CheckboxLabelWrapper__93Tda",Checkbox:"embedJournals_Checkbox__V4Jxj",EmbedJournal1:"embedJournals_EmbedJournal1__WdgYm",__note:"embedJournals___note__qBcuD",__wrapper:"embedJournals___wrapper__G_42_",EmbedJournal2:"embedJournals_EmbedJournal2__1CUwA",__fullWidth:"embedJournals___fullWidth__0clUu",EmbedJournal3:"embedJournals_EmbedJournal3__J6yOd",__inReadMore:"embedJournals___inReadMore__rrjSG",__1col:"embedJournals___1col__ixmhd",__2col:"embedJournals___2col__mzrVs",ButtonWrapper:"embedJournals_ButtonWrapper__nI_hT"}},48245:(e,n,a)=>{"use strict";a.d(n,{iM:()=>_,t$:()=>u});var t=a(37876),r=a(95815),l=a.n(r),o=a(40491),i=a(92303),c=a(85278);function s(e){let{imageUrl:n,title:a,creditInfo:r,categories:o,uri:s,bgColor:_,textColor:u,dateString:m,spSmall:d=!1}=e,[p]=(0,c.fp)(i.A);if(_||(_="#ddd"),u||(u="#000000"),r=null==r?void 0:r.replace(/\n/g,"<br>"),m){let e=new Date(m);m="".concat(e.getFullYear(),"/").concat(e.getMonth()+1,"/").concat(e.getDate())}let g={backgroundColor:_,color:u},h=d?"".concat(l().CommonArticle," ").concat(l().__spSmall):l().CommonArticle;return(0,t.jsxs)("div",{className:h,style:g,children:[(0,t.jsx)("a",{href:s,className:l().__image,children:(0,t.jsx)("img",{src:n,alt:""})}),(0,t.jsxs)("div",{className:l().__info,children:[(0,t.jsx)("a",{href:s,className:l().__title,style:g,dangerouslySetInnerHTML:{__html:a}}),(0,t.jsx)(function(e){let{dateString:n}=e;return(0,t.jsx)("div",{className:l().__date,children:n})},{dateString:m}),(0,t.jsx)("div",{className:l().__others,children:(0,t.jsx)(function(e){let{categories:n}=e;return(0,t.jsx)("ul",{className:l().__categories,children:n.map((e,n)=>{var a,r;let l=p&&null!=(r=null==(a=e.catNameEn)?void 0:a.catNameEn)?r:e.name;return(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:p?"/en/journals_cat/".concat(e.slug):"/journals_cat/".concat(e.slug),children:l})},n)})})},{categories:o})})]})]})}function _(e){let{article:n,spSmall:a=!1}=e,[r]=(0,c.fp)(i.A),l=(0,o.Ur)(n),_=n.journalsCategories.nodes.filter(e=>null===e.parentId),u=!1,m=null;
1n.journalsCategories.nodes.forEach(e=>{null!==e.parentId&&(u=!0,m=e)});let d="";if(m){var p,g;d=r?null!=(g=null==(p=m.catNameEn)?void 0:p.catNameEn)?g:"":m.name}let h=n.mainImage.subTitle,b=n.title+(h?":".concat(h):"");b=b.replace(/<("[^"]*"|'[^']*'|[^'">])*>/g,"");let f={imageUrl:l,title:u?"".concat(d?"".concat(d," "):"").concat(b):"".concat(b),creditInfo:n.ogpInfo.journalAuthor,categories:_,uri:n.uri,bgColor:n.ogpInfo.journalBackColor,textColor:n.ogpInfo.journalBackFontcolor,dateString:n.date,spSmall:a};return(0,t.jsx)(s,{...f})}function u(e){let{article:n}=e,[a]=(0,c.fp)(i.A),r=(0,o.Ur)(n),s=n.ogpInfo.journalBackFontcolor||"#000000",_=n.ogpInfo.journalBackColor||"#ddd",u=n.ogpInfo.journalAuthor;u=null==u?void 0:u.replace(/\n/g,"<br>");let m=n.date,d=new Date(m);m="".concat(d.getFullYear(),"/").concat(d.getMonth()+1,"/").concat(d.getDate());let p=n.journalsCategories.nodes.filter(e=>null===e.parentId),g=!1,h=null;n.journalsCategories.nodes.forEach(e=>{null!==e.parentId&&(g=!0,h=e)});let b="";if(h){var f,x;b=a?null!=(x=null==(f=h.catNameEn)?void 0:f.catNameEn)?x:"":h.name}let j=n.mainImage.subTitle,C=n.title+(j?":".concat(j):"");C=C.replace(/<("[^"]*"|'[^']*'|[^'">])*>/g,"");let w=g?"".concat(b?"".concat(b," "):"").concat(C):"".concat(C),v=(0,t.jsx)("ul",{className:l().__categories,children:p.map((e,n)=>{var r,l;let o=a&&null!=(l=null==(r=e.catNameEn)?void 0:r.catNameEn)?l:e.name;return(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:a?"/en/journals_cat/".concat(e.slug):"/journals_cat/".concat(e.slug),children:o})},n)})});return(0,t.jsxs)("div",{onClick:()=>{location.href=n.uri},className:l().FirstArticle,children:[(0,t.jsx)("div",{className:l().image,children:(0,t.jsx)("img",{src:r,alt:""})}),(0,t.jsx)("div",{className:l().info,style:{backgroundColor:_,color:s},children:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:l().firstTitle,dangerouslySetInnerHTML:{__html:w}}),(0,t.jsx)("div",{className:l().firstDate,children:m}),(0,t.jsx)("div",{children:v})]})})]})}},63150:(e,n,a)=>{"use strict";a.d(n,{w:()=>t});let t="\nmediaItemUrl\nmediaDetails{\n    width\n    height\n}\n"},67375:e=>{e.exports={__pc:"blueButton___pc__aEYLs",__sp:"blueButton___sp__2Ufb0",__commonMarginBottom:"blueButton___commonMarginBottom__8_xUO",CheckboxLabelWrapper:"blueButton_CheckboxLabelWrapper__YsCko",Checkbox:"blueButton_Checkbox__bt2RL",BlueButtonStyle:"blueButton_BlueButtonStyle__B116a",__disabled:"blueButton___disabled__m3tw_",__inline:"blueButton___inline__VOx7x"}},75556:e=>{e.exports={__pc:"slider___pc__iPeh2",__sp:"slider___sp__eUwrG",__commonMarginBottom:"slider___commonMarginBottom__UzYZw",CheckboxLabelWrapper:"slider_CheckboxLabelWrapper__Cgb7F",Checkbox:"slider_Checkbox__cN_O2",Slider:"slider_Slider__GwL00",Inner:"slider_Inner__pdWKD",SwiperContainer:"slider_SwiperContainer__mAW_E",SwiperSlide:"slider_SwiperSlide__MaPoA",SwiperNavigation:"slider_SwiperNavigation__0F1Lq",SwiperButton:"slider_SwiperButton__KKy60",SwiperNextButton:"slider_SwiperNextButton__Jfabb",SwiperPrevButton:"slider_SwiperPrevButton__ZSncv",SwiperPagination:"slider_SwiperPagination__NIGia"}},85336:(e,n,a)=>{"use strict";a.d(n,{y:()=>c,c:()=>s});var t=a(86940),r=a.n(t),l=a(29370),o=a.n(l);let i=(0,a(74969).C0)().restCommon;async function c(e){let{query:n="",login:a=!1,inEnglish:t=!1,variables:l={}}=e,c=JSON.stringify({query:n=n.replace(/\n/g," ").replace(/\s+/g," ").trim(),login:a,inEnglish:t,variables:l}),s=encodeURIComponent(r().gzipSync(c).toString("base64")),_="".concat(i,"?data=").concat(s,"&cache=").concat(a?"no":""),u=await o()(_);if(u.headers.get("x-cache"),/stg-wp/.test(i)){let e=JSON.parse((await u.text()).replace(/https:\\\/\\\/stg\.yamatomichi\.com\\\/wp-content\\\/uploads\\\//g,"https://w3-offload-yamatomichi-upload.s3.ap-northeast-1.amazonaws.com/wp-content/uploads/").replace(/https:\\\/\\\/stg-wp\.yamatomichi\.com\\\/wp-content\\\/uploads\\\//g,"https://w3-offload-yamatomichi-upload.s3.ap-northeast-1.amazonaws.com/wp-content/uploads/"));if(e.graphQL.errors)throw Error("Failed to fetch API");return e}{let e=await u.json();if(e.graphQL.errors)throw Error("Failed to fetch API rc");return e}}async function s(e){let{query:n="",login:a=!1,inEnglish:t=!1}=e,r=await o()("/api/wp/getCommonRequest?query="+encodeURIComponent(n)+"&inEnglish="+t);return await r.json()}},95815:e=>{e.exports={__pc:"commonJournalsCard___pc__uB96C",__sp:"commonJournalsCard___sp__sdxAL",__commonMarginBottom:"commonJournalsCard___commonMarginBottom__gsGnW",CheckboxLabelWrapper:"commonJournalsCard_CheckboxLabelWrapper__lhN_R",Checkbox:"commonJournalsCard_Checkbox__VzQTr",CommonArticle:"commonJournalsCard_CommonArticle__4Gkk3",__image:"commonJournalsCard___image__kt40q",__title:"commonJournalsCard___title__SdRsi",__spSmall:"commonJournalsCard___spSmall__HAYkN",__creditInfo:"commonJournalsCard___creditInfo__aOeKA",__date:"commonJournalsCard___date__IFmKw",__categories:"commonJournalsCard___categories__s2Tm_",FirstArticle:"commonJournalsCard_FirstArticle__BemZy",image:"commonJournalsCard_image__C_KPH",info:"commonJournalsCard_info__9GAlu",firstTitle:"commonJournalsCard_firstTitle__8k0A9",firstDate:"commonJournalsCard_firstDate__l2g_3",firstAuthor:"commonJournalsCard_firstAuthor__LE6ZH"}}}]);

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.