PageSourceSearch

https://www.yamatomichi.com/_next/static/chunks/9957-2c9371f8eed95071.js

js yamatomichi.com collected 2026-10-01 11:32:48 UTC 8,285 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9957],{963:(e,t,r)=>{"use strict";r.d(t,{u:()=>c});var o=r(37876),s=r(63805),a=r.n(s);function c(e){let t,{genderString:r}=e;switch(r){case"men":t=(0,o.jsx)("span",{className:"".concat(a().__gender," ").concat(a().__men),children:"MEN"});break;case"women":t=(0,o.jsx)("span",{className:"".concat(a().__gender," ").concat(a().__women),children:"WOMEN"});break;case"unisex":t=(0,o.jsx)("span",{className:"".concat(a().__gender," ").concat(a().__unisex),children:"UNISEX"});break;default:t=(0,o.jsx)(o.Fragment,{})}return t}},10245:(e,t,r)=>{"use strict";r.d(t,{x:()=>c});var o=r(38248);let s=["JP","TW","HK"];function a(e){return s.includes(e)?e:"JP"}let c=async()=>{let e=60*Number("1")*60,t=(0,o.getCookie)("country");if(t){let r=a(t);return(0,o.setCookie)("country",r,{maxAge:e}),r}try{{let t=await fetch("https://www.yamatomichi.com/api/geoLocation"),r=await t.json();if(r.country){let t=a(r.country);return(0,o.setCookie)("country",t,{maxAge:e}),t}}let t=a("");return(0,o.setCookie)("country",t,{maxAge:e}),t}catch(r){let t=a("");return(0,o.setCookie)("country",t,{maxAge:e}),t}}},26708:e=>{e.exports={__pc:"productsPostCard___pc__GHL_4",__sp:"productsPostCard___sp__kHR9O",__commonMarginBottom:"productsPostCard___commonMarginBottom__nEeKw",CheckboxLabelWrapper:"productsPostCard_CheckboxLabelWrapper__dcize",Checkbox:"productsPostCard_Checkbox__3mo29",ProductsPostCard:"productsPostCard_ProductsPostCard__5UYG8",__image:"productsPostCard___image__r0WNw",__infoWrapper:"productsPostCard___infoWrapper__OPnDh",__name:"productsPostCard___name__op8k4",priceAndWeight:"productsPostCard_priceAndWeight__PTeU_",__price:"productsPostCard___price__UFVTE",__loading:"productsPostCard___loading__cwPIT",__weight:"productsPostCard___weight__5hUeV",__gender:"productsPostCard___gender__6B3LJ",__men:"productsPostCard___men__Zd3_q",__unisex:"productsPostCard___unisex__QwaiO",__women:"productsPostCard___women__xs6H1",Button:"productsPostCard_Button__EMeeY",__soldOut:"productsPostCard___soldOut__OJX6V",__preorder:"productsPostCard___preorder__grMUI",__stock:"productsPostCard___stock__jjp_z",Buttons:"productsPostCard_Buttons__Dg6mr",__button:"productsPostCard___button__xLhf7",colorChips:"productsPostCard_colorChips__HDF06",colorChipsSpacer:"productsPostCard_colorChipsSpacer__nyj9C",Labels:"productsPostCard_Labels__Ejmgj"}},39045:e=>{e.exports={__pc:"productsPostCards___pc__0k0nY",__sp:"productsPostCards___sp__Yqv_H",__commonMarginBottom:"productsPostCards___commonMarginBottom__gGxaJ",CheckboxLabelWrapper:"productsPostCards_CheckboxLabelWrapper__yGThA",Checkbox:"productsPostCards_Checkbox__jCOk6",ProductsPostCards:"productsPostCards_ProductsPostCards__6W_YX"}},63805:e=>{e.exports={__pc:"productsGender___pc__UAujB",__sp:"productsGender___sp__oQf15",__commonMarginBottom:"productsGender___commonMarginBottom__D8_TV",CheckboxLabelWrapper:"productsGender_CheckboxLabelWrapper__4e7tr",Checkbox:"productsGender_Checkbox__uyuZ8",__gender:"productsGender___gender__NLY9i",__men:"productsGender___men__LeZMo",__women:"productsGender___women__g1Eea",__unisex:"productsGender___unisex__3tRa_"}},89957:(e,t,r)=>{"use strict";r.d(t,{y:()=>y});var o=r(37876),s=r(39045),a=r.n(s),c=r(26708),n=r.n(c),_=r(54587),d=r.n(_),i=r(48230),u=r.n(i),p=r(15039),l=r.n(p),m=r(85278),h=r(92303),g=r(963);let x=e=>{let t,r,s,{item:a,countryCode:c}=e,[_]=(0,m.fp)(h.A);if(!a.productsInfo)return(0,o.jsx)(o.Fragment,{});let i=a.productsInfo;switch(t=a.featuredImage.node?(0,o.jsx)("div",{className:n().__image,children:(0,o.jsx)(d(),{width:a.featuredImage.node.mediaDetails.width,height:a.featuredImage.node.mediaDetails.height,src:a.featuredImage.node.mediaItemUrl,alt:""})}):(0,o.jsx)("div",{className:n().__image}),i.gender){case"men":"".concat(n().__gender," ").concat(n().__men);break;case"women":"".concat(n().__gender," ").concat(n().__women);break;case"unisex":"".concat(n().__gender," ").concat(n().__unisex);break;default:o.Fragment}i.indexWeight?r=(0,o.jsx)("span",{className:n().__weight,children:i.indexWeight}):i.subTitle&&(r=(0,o.jsx)("span",{className:n().__weight,children:i.subTitle}));let p=(e=>{let t,{productsInfo:r}=e,o=r.hasStock,s=r.salesStart;if(null!==s){let[e,r]=s.split(" "),[o,a,c]=e.split("-"),[n,_,d]=r.split(":"),i=new Date(o,a-1,c,n,_,d).getTime();t=new Date().getTime()-i>0}else t=!0;let a="none";return"enable"!==r.buyDisplay||t&&(a=o?"buy":"stock"===r.soldOut?"stock":"soldOut"),a})({productsInfo:i}),x="enable"===i.preorderDisplay?(0,o.jsx)("span",{className:"".concat(n().Button," ").concat(n().__preorder),children:"PREORDER"}):(0,o.jsx)(o.Fragment,{});switch(p){case"soldOut":s=(0,o.jsx)("span",{className:"".concat(n().Button," ").concat(n().__soldOut),children:"SOLD OUT"});break;case"stock":s=(0,o.jsx)("span",{className:"".concat(n().Button," ").concat(n().__stock),children:_?"RESTOCK ALERT":"再入荷連絡"});break;default:s=(0,o.jsx)(o.Fragment,{})}let C=[];i.colorchips&&i.colorchips.length>0&&i.colorchips.map((e,t)=>{if(e.colorchipsImg){var r;C.push((0,o.jsx)("li",{children:(0,o.jsx)("img",{src:null==(r=e.colorchipsImg)?void 0:r.mediaItemUrl,alt:"",width:16,height:16})},"ColorChip-".concat(t)))}});let P=C.length>
10?(0,o.jsx)("ul",{className:n().colorChips,children:C}):(0,o.jsx)("div",{className:n().colorChipsSpacer}),f="";if("JP"===c){let e=Math.trunc(i.price),t=i.maxPrice;f=t?"\xa5 ".concat(e.toLocaleString(),"~").concat(Math.trunc(t).toLocaleString()," ").concat(""):"\xa5 ".concat(e.toLocaleString()," ").concat("")}else{let e=Math.round(i.priceTw/1.1),t=i.maxPriceTw;f=t?"TW$ ".concat(e.toLocaleString(),"~").concat(Math.round(t/1.1).toLocaleString()):"TW$ ".concat(e.toLocaleString())}let b=l()(n().__price,{[n().__loading]:!c||!i.price});return(0,o.jsxs)("li",{className:n().ProductsPostCard,children:[(0,o.jsxs)(u(),{prefetch:!1,href:a.uri,children:[t,(0,o.jsxs)("div",{className:n().__infoWrapper,children:[P,(0,o.jsx)("span",{className:n().__name,dangerouslySetInnerHTML:{__html:a.title}}),(0,o.jsxs)("span",{className:n().priceAndWeight,children:[(0,o.jsx)("span",{className:b,children:f}),r]})]})]}),(0,o.jsxs)("div",{className:n().Labels,children:[(0,o.jsx)(g.u,{genderString:i.gender}),s,x]})]})};var C=r(14232);let P=(0,r(74969).getShopifyBaseConfig)(),f=P.storefront.url;async function b(e){let{query:t,variables:r}=e,o=P.storefront.token,s=await fetch(f,{headers:{"Content-Type":"application/json","X-Shopify-Storefront-Access-Token":o},method:"POST",body:JSON.stringify({query:t,variables:r})}),a=await s.json();if(a.errors)throw Error("Failed to fetch API");return a.data}async function k(e){let{ids:t,country:r}=e,o="";t.forEach((e,r)=>{o+="id:".concat(e),r!==t.length-1&&(o+=" OR ")});let s="\nquery ProductsPrices @inContext(country: ".concat(r,') {\n  products(first: 250, query: "').concat(o,'") {\n    nodes {\ntotalInventory\n        id\n        priceRange {\n          minVariantPrice {\n            amount\n            currencyCode\n          }\n        }\n        maxJp: metafield(namespace: "custom", key: "_maxprice_yen") {\n          value\n        }\n        maxTw: metafield(namespace: "custom", key: "_maxprice_td") {\n          value\n        }\n      }\n    }\n  \n}\n  ');return await b({query:s,variables:{}})}var w=r(10245);let y=e=>{let{nodes:t,withoutButton:r,countryCode:s,inIndex:c=!0}=e,[n,_]=(0,C.useState)(""),[d,i]=(0,C.useState)(t);if((0,C.useEffect)(()=>{s?_(s):u()},[]),t&&0!==t.length)return(0,o.jsx)("ul",{className:a().ProductsPostCards,children:d.map((e,t)=>{if((!c||"disable"!==e.productsInfo.indexDisplay)&&!e.productsInfo.yoyakuFlag)return(0,o.jsx)(x,{item:e,countryCode:n},"ProductPostCards-".concat(t))})});async function u(){var e;let r=await (0,w.x)();_(r);let o=new Set(t.map(e=>e.productsInfo.productsId));o.delete(null);let s=Array.from(o),a=await k({ids:s,country:r});(null==a||null==(e=a.products)?void 0:e.nodes.length)&&i(t.map(e=>{let t=e.productsInfo.productsId,o=a.products.nodes.find(e=>e.id==="gid://shopify/Product/".concat(t));return o&&(e.productsInfo.hasStock=o.totalInventory>0,"JP"===r?(e.productsInfo.price=Number(o.priceRange.minVariantPrice.amount),e.productsInfo.maxPrice=Number(o.maxJp)):(e.productsInfo.priceTw=Number(o.priceRange.minVariantPrice.amount),e.productsInfo.maxPriceTw=Number(o.maxTw))),e}))}}}}]);

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.