PageSourceSearch

https://chat.snaq.me/dist/9306-efdda0263d4a2b382529-a.js

js snaq.me collected 2026-10-03 19:15:56 UTC 16,723 bytes, 198 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d9574bb2-7851-41a2-ada3-1012e56839ff",e._sentryDebugIdIdentifier="sentry-dbid-d9574bb2-7851-41a2-ada3-1012e56839ff")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"60d84b83bceae3278d462684404efbbfa8a0de3d"};(self.webpackChunksnaq_me_front=self.webpackChunksnaq_me_front||[]).push([[9306],{450:(e,t,n)=>{n.d(t,{E:()=>a});var r=n(6540),l=n(46);const a=e=>r.createElement(r.Suspense,{fallback:r.createElement(r.Fragment,null)},r.createElement(i,Object.assign({},e))),i=({useProps:e,pending:t,error:n,success:a})=>{var i,o;const d=e();return"redirect"===d.status?r.createElement(l.C5,{to:d.to,replace:d.replace}):"error"===d.status?null!==(i=null==n?void 0:n(d.error))&&void 0!==i?i:null:"pending"===d.status?null!==(o=null==t?void 0:t())&&void 0!==o?o:null:a(d.props)}},1277:(e,t,n)=>{n.d(t,{F:()=>c});var r=n(6540),l=n(5999),a=n(4964),i=n(836),o=n(5084),d=n(7837),s=n(2330);const c=({suspendKey:e,content:t,className:n})=>{var l;const a={suspendKey:e,content:t},[i,d]=(0,r.useState)(u(null!==(l=null==a?void 0:a.suspendKey)&&void 0!==l?l:""));return r.createElement(o.N,null,a&&!i&&r.createElement(m,{exit:{opacity:0},className:n},a.content,a.suspendKey&&r.createElement(f,{onClick:()=>{var e;d(!0),p(null!==(e=a.suspendKey)&&void 0!==e?e:"")}},r.createElement(g,null))))},u=e=>"1"===(0,i._W)(e),p=e=>(0,i.KY)(e,"1"),m=(0,l.Ay)(d.P.div)`
2  font-family: ${e=>`${e.theme.fontTitle}, ${e.theme.fontPrimary}`};
3  font-size: 12px;
4  letter-spacing: 0.05em;
5  line-height: 2em;
6  font-weight: bolder;
7  padding: 8px 16px;
8  background: #ecc838;
9  border-radius: ${e=>e.theme.borderRadiusBox};
10  position: relative;
11
12  ${e=>(0,s.M)(e.theme.size.viewport5)`
13    font-size: 14px;
14  `}
15`,f=l.Ay.button`
16  appearance: none;
17  border: none;
18  outline: none;
19  padding: 0;
20  background: #fff;
21  width: 28px;
22  height: 28px;
23  border-radius: 100px;
24  cursor: pointer;
25  position: absolute;
26  top: -10px;
27  right: -10px;
28  display: flex;
29  align-items: center;
30  justify-content: center;
31  box-shadow: 0 0 10px 5px #00000010;
32`,g=(0,l.Ay)(a.A)`
33  width: 20px;
34  height: 20px;
35`},3610:(e,t,n)=>{n.d(t,{A:()=>d,y:()=>o});var r=n(3670),l=n(6807),a=n(6540),i=n(5999);const o=({size:e=40,color:t})=>a.createElement(c,{$size:e},[...new Array(12)].map(((e,n)=>a.createElement(p,{key:n,count:n,color:t}))));function d(){return a.createElement(s,{initial:{opacity:0}
35,animate:{opacity:1},transition:{delay:.5}},a.createElement(o,{color:l.Tj.textDisabled.onLight}))}const s=(0,i.Ay)(r.m)`
36  display: flex;
37  align-items: center;
38  justify-content: center;
39`,c=i.Ay.div`
40  position: relative;
41  width: ${e=>e.$size}px;
42  height: ${e=>e.$size}px;
43`,u=i.i7`
44  0%, 39%, 100% {
45    opacity: 0;
46  }
47  40% {
48    opacity: 1;
49  }
50`,p=i.Ay.div`
51  width: 100%;
52  height: 100%;
53  position: absolute;
54  left: 0;
55  top: 0;
56  transform: rotate(${e=>30*e.count}deg);
57
58  &:before {
59    content: '';
60    display: block;
61    background-color: ${e=>e.color||"#333"};
62    border-radius: 50%;
63    margin: 0 auto;
64    width: 15%;
65    height: 15%;
66    animation: ${u} 1.2s infinite ease-in-out both;
67    animation-delay: ${e=>.1*e.count-1.2}s;
68  }
69`},5610:(e,t,n)=>{n.d(t,{u:()=>l});var r=n(6540);function l({loadMore:e,hasMore:t,loader:n,children:l,className:i}){const[o,d]=(0,r.useState)(!1),s=(0,r.useRef)(null),c=(0,r.useRef)(null),u=(0,r.useCallback)((n=>{const[r]=n;r.isIntersecting&&t&&!o&&(d(!0),e().finally((()=>d(!1))))}),[t,e,o]);return(0,r.useEffect)((()=>(s.current&&s.current.disconnect(),s.current=new IntersectionObserver(u,{root:null,rootMargin:"0px",threshold:0}),c.current&&s.current.observe(c.current),()=>{s.current&&s.current.disconnect()})),[u]),r.createElement("div",{className:i},l,t&&r.createElement("div",{ref:c,className:"w-full"},o&&n),r.createElement(a,null))}const a=n(5999).Ay.div`
70  width: 100%;
71  height: 54px;
72`},6745:(e,t,n)=>{n.d(t,{Fr:()=>l,nI:()=>r});const r=()=>{const e=navigator.userAgent.toLowerCase();return/line/.test(e)?"line":/iphone|ipad|ipod/.test(e)?"ios":/android/.test(e)&&!window.MSStream?"android":"unknown"},l=()=>"unknown"!==r()},9306:(e,t,n)=>{n.r(t),n.d(t,{Component:()=>ue});var r=n(6540),l=n(450),a=n(3610),i=n(3670),o=n(1277),d=n(9321),s=n(4448),c=n(46),u=n(5999),p=n(4832);function m(){var e;const t=(0,p.gf)("GET /tran/ng_confirm",{});return t.isFetched&&!!(null===(e=t.data)||void 0===e?void 0:e.error)?r.createElement(f,{content:r.createElement(g,{to:s.A.path.settingsPayment},"クレジットカード決済に失敗しています。カード情報を更新してください。",r.createElement(y,null,"更新はこちら",r.createElement(b,null)))}):null}const f=(0,u.Ay)(o.F)`
73  margin-top: 16px;
74`,g=(0,u.Ay)(c.N_)`
75  display: flex;
76  flex-direction: column;
77  color: #fff !important;
78  font-weight: bolder;
79  text-decoration: none !important;
80`,y=u.Ay.div`
81  display: flex;
82  font-size: 1em;
83  color: #fff;
84  align-self: flex-end;
85  align-items: center;
86  text-decoration: underline;
87`,b=(0,u.Ay)(d.A)`
88  stroke: #fff;
89  width: 12px;
90  height: auto;
91  margin-left: 2px;
92`;var h=n(7837),v=n(4353),x=n.n(v),E=n(5848),k=n(777),A=n(7013),w=n(6807);function _({tranId:e,brandName:t}){const[n,l]=(0,r.useState)(!1),i=(0,r.useCallback)((async()=>{l(!0);const n=window.open(void 0,"_blank");if(!n)return void l(!1);const r=N(n),a=await(0,p.px)("GET /pay/qualified_invoice",{params:{brand_name:t,tran_id:e}}).map((e=>({url:e.invoice_url})));if(l(!1),a.isErr())return k.o.error(a.error.message),r(),void n.close();n.closed||(n.location.href=a.value.url),r()}),[e,t]);return r.createElement($,{size:"sm",onClick:i,disabled:n},n?r.createElement(a.y,{size:12}):"取得する")}const $=(0,u.Ay)(A.$)`
93  display: flex;
94  width: 80px;
95  border-radius: ${w.LR.corner.sm};
96`,N=e=>{P(e.document);const t=e.document.createElement("div");return e.document.body.appendChild(t),t.innerHTML=(0,E.qV)(r.createElement(D,null)),()=>{t.parentNode&&t.parentNode.removeChild(t)}};function D(){return r.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%"}},r.createElement("div",{style:T}))}const T={width:"40px",height:"40px",margin:"auto",border:"3px solid rgba(0, 0, 0, 0.1)",borderTopColor:"#333",borderRadius:"50%",animation:"spin 1s linear infinite"},P=e=>{const t=e.createElement("style");t.appendChild(e.createTextNode("\n  @keyframes spin {\n    0% { transform: rotate(0deg); }\n    100% { transform: rotate(360deg); }\n  }\n")),e.head.appendChild(t)},S=e=>x()(e).format("YYYY年M月D日");function I({orderHistory:e}){const t=(0,r.useMemo)((()=>{var t,n,l;
96return[{labelBackground:null!==(t=e.imagePath)&&void 0!==t?t:void 0,content:r.createElement("div",null,e.itemName,e.storeUrl?r.createElement(G,{href:e.storeUrl},"再購入する"):e.storeBoxUrl?r.createElement(G,{href:s.A.path.boxSettings},"BOXを追加・変更する"):null)},{label:"決済日",content:e.payDate&&S(e.payDate)},{label:"決済方法",content:e.isPaymentTypeAtone?r.createElement(U,{to:"https://atone.be/",target:"_blank",rel:"noopener noreferrer"},e.paymentType):e.paymentType},{label:"発送日",content:e.deliveryDate&&!e.isDigitalGift&&e.isShowDeliveryDate&&S(e.deliveryDate)},{label:"お届け先",content:!e.isDigitalGift&&e.isShowAddress&&r.createElement(r.Fragment,null,r.createElement("div",null,e.prefectureName,e.address1,e.address2),r.createElement("div",null,e.addresseeName))},{label:"配送方法",content:e.isDigitalGift?"受け取り用 URL をコピーし、LINE や SNS などでお相手の方にお送りください。":e.deliveryNote},{label:"配送状況",content:!e.isDigitalGift&&e.isShowDeliveryDate&&r.createElement(r.Fragment,null,r.createElement("div",null,e.isAfterShipping?"発送済み":"発送準備中"),e.isAfterShipping&&e.trackingNumber&&e.trackingUrl&&r.createElement(R,{href:e.trackingUrl,target:"_blank",rel:"noreferrer noopener"},e.trackingNumber))},{label:"商品タイプ",content:e.typeLabel},{label:r.createElement(r.Fragment,null,"eGift",r.createElement("br",null),"受け取り用URL"),content:e.isDigitalGift&&(null!==(n=e.digitalGiftUrls.length)&&void 0!==n?n:0)>0?r.createElement("div",null,null===(l=e.digitalGiftUrls)||void 0===l?void 0:l.map(((e,t)=>r.createElement(L,{href:e,key:t,target:"_blank",rel:"noopener noreferrer"},e)))):void 0},{label:"数量",content:e.count>1?e.count:void 0},{label:"お支払い金額",content:!!e.price&&r.createElement(r.Fragment,null,r.createElement("div",null,e.price.toLocaleString("ja-JP"),"円"),!!e.point&&r.createElement("div",null,"(通常金額:",(e.price+e.point).toLocaleString("ja-JP"),"円, ポイント・クーポン利用:",e.point.toLocaleString("ja-JP"),"円分 )"))},...e.isAvailableInvoice&&e.brandName?[{label:"請求書",content:r.createElement(_,{tranId:e.tranId,brandName:e.brandName})}]:[]]}),[e]);return r.createElement(C,{initial:{opacity:0,translateY:10},whileInView:{opacity:1,translateY:0},viewport:{once:!0}},r.createElement(F,null,t.map((({labelBackground:e,label:t,content:n},l)=>r.createElement(r.Fragment,{key:l},n&&r.createElement(z,null,r.createElement(j,{$background:e},t),r.createElement(B,null,n)))))))}const C=(0,u.Ay)(h.P.div)`
97  margin-top: 24px;
98  overflow: auto;
99`,F=u.Ay.div`
100  background: #fff;
101  border-radius: ${e=>e.theme.borderRadiusBox};
102  border: ${e=>e.theme.borderTable};
103  overflow: hidden;
104`,z=u.Ay.div`
105  border-bottom: ${e=>e.theme.borderTable};
106  display: flex;
107
108  :last-of-type {
109    border: none;
110  }
111`,j=u.Ay.div`
112  width: 100px;
113  border-right: ${e=>e.theme.borderTable};
114  flex-shrink: 0;
115  display: flex;
116  align-items: center;
117  padding: 16px 8px;
118
119  ${e=>e.$background?u.AH`
120          background: url(${e.$background});
121          background-size: cover;
122          background-position: center;
123          min-height: 90px;
124        `:u.AH`
125          background: #fefafa;
126        `}
127`,B=u.Ay.div`
128  flex-grow: 1;
129  padding: 16px 8px;
130  display: flex;
131  flex-direction: column;
132  justify-content: center;
133  overflow-wrap: break-word;
134  word-break: break-word;
135`,G=u.Ay.a`
136  margin-top: 4px;
137  font-size: 12px;
138  display: block;
139  font-weight: bolder;
140  color: #fff !important;
141  text-decoration: none !important;
142  background: ${e=>e.theme.primary};
143  width: fit-content;
144  padding: 8px 24px;
145  letter-spacing: 0.1em;
146  border-radius: ${e=>e.theme.borderRadiusCommon};
147`,R=u.Ay.a`
148  font-size: 12px;
149  margin-top: 4px;
150  text-decoration: underline;
151`,L=u.Ay.a`
152  font-size: 12px;
153  margin-top: 4px;
154  text-decoration: underline;
155
156  :first-of-type {
157    margin-top: 0;
158  }
159`,U=(0,u.Ay)(c.N_)`
160  text-decoration: underline;
161`;var M=n(5610);function q({orderHistories:e,fetchNextPage:t,hasNextPage:n,currentFilter:l,setFilter:a}){return r.createElement(Y,null,r.createElement(m,null),r.createElement(H,null,r.createElement(K,null,"注文履歴"),r.createElement(O,null,r.createElement(J,{$isActive:"all"===l,onClick:()=>a("all")},"全て"),r.createElement(J,{$isActive:"not-shipped"===l,onClick:()=>a("not-shipped")},"未発送"),r.createElement(J,{$isActive:"shipped"===l,onClick:()=>a("shipped")}
161,"発送済み"))),r.createElement(M.u,{loadMore:t,hasMore:n},e.map(((e,t)=>r.createElement(I,{key:`${l}-${t}`,orderHistory:e})))),e.length<=0&&r.createElement(V,null,"all"===l?"注文履歴はありませんでした":"not-shipped"===l?"未発送の注文履歴はありませんでした":"発送済みの注文履歴はありませんでした"))}const Y=(0,u.Ay)(i.m)`
162  padding-bottom: 48px;
163  overflow: auto;
164`,H=u.Ay.div`
165  display: flex;
166  align-items: center;
167  margin: 32px 0 16px;
168`,K=u.Ay.h1`
169  margin: 0 16px 0 0;
170  padding: 0;
171`,O=u.Ay.div`
172  border: 1px solid #cb6d4f;
173  overflow: hidden;
174  border-radius: ${e=>e.theme.borderRadiusCommon};
175`,J=u.Ay.button`
176  box-shadow: none;
177  appearance: none;
178  color: ${e=>e.$isActive?"#fff":"#CB6D4F"};
179  background: ${e=>e.$isActive?"#CB6D4F":"#fff"};
180  border: none;
181  padding: 4px 10px;
182  font-size: 12px;
183  outline: none !important;
184  -webkit-tap-highlight-color: transparent;
185  transition: background 0.5s ease, color 0.5s ease;
186
187  :nth-child(2) {
188    border-left: 1px solid #cb6d4f;
189    border-right: 1px solid #cb6d4f;
190  }
191`,V=u.Ay.div`
192  background: #fff;
193  padding: 16px;
194  border-radius: ${e=>e.theme.borderRadiusBox};
195  text-align: center;
196  font-size: 13px;
197  margin-top: 24px;
198`;var X=n(6475);const W=[{id:"1",type:"paygent",label:"クレジットカード"},{id:"2",type:"atone",label:"atone払い"},{id:"3",type:"others",label:"その他"},{id:"4",type:"amazonPay",label:"Amazon Pay"}],Q=e=>{var t;return null===(t=W.find((t=>t.type===e))||W.find((e=>"others"==e.type)))||void 0===t?void 0:t.id},Z=e=>{var t;return null===(t=W.find((t=>t.id==`${e}`))||W.find((e=>"3"==e.id)))||void 0===t?void 0:t.label};var ee=n(7415),te=n(7849),ne=n(6745);const re=()=>{const e=(0,X.q)({queryKey:["GET /pay/histories"],queryFn:({pageParam:e})=>(0,p.px)("GET /pay/histories",{params:e}).map((e=>e.map(le))).match((e=>e),(()=>[])),staleTime:0,gcTime:0,getNextPageParam:(e,t,n)=>e.length>0?{p:n.p+1}:void 0,initialPageParam:{p:1}}),[t,n]=(0,r.useState)("all"),l=(0,r.useMemo)((()=>{var n,r,l;return(null!==(l=null===(r=null===(n=e.data)||void 0===n?void 0:n.pages)||void 0===r?void 0:r.flat())&&void 0!==l?l:[]).filter((({deliveryDate:e,isAfterShipping:n})=>"all"===t||null!==e&&("not-shipped"===t&&!n||"shipped"===t&&n)))}),[e,t]);return e.isFetched?{status:"success",props:{orderHistories:l,fetchNextPage:e.fetchNextPage,hasNextPage:!(e.isFetching||!e.hasNextPage),currentFilter:t,setFilter:n}}:{status:"pending"}},le=e=>{var t,n,r,l,a,i,o,d,c,u,p,m,f,g,y,b,h,v,E,k,A,w,_,$;const N=null!==(t=ie[e.buy_type])&&void 0!==t?t:null,D=ae({itemName:null!==(n=e.item_name)&&void 0!==n?n:null,buyType:N}),T=e.deli_date||null,P=T?x()(T).hour(17):null,S=!!P&&x()().isAfter(P),I=e.track_type&&null!==(r=oe[e.track_type])&&void 0!==r?r:null,C=null!==(l=e.tracking_num)&&void 0!==l?l:null,F=x()(e.pay_date).isAfter("2023-10-01T00:00:00+09:00"),z=null!==T&&x()(T).add(1,"day").isBefore(x()()),j=null!==(a=e.is_digital_gift)&&void 0!==a&&a&&(null!==(o=null===(i=e.digital_gift_urls)||void 0===i?void 0:i.length)&&void 0!==o?o:0)>0;return{price:null!==(d=e.amount)&&void 0!==d?d:null,point:null!==(c=e.point)&&void 0!==c?c:null,tranId:e.tran_id,buyType:N,count:null!==(u=e.cnt)&&void 0!==u?u:0,deliveryDate:T,imagePath:e.images?(0,te.V)(e.images):null,itemName:null!==(p=e.item_name)&&void 0!==p?p:null,payDate:null!==(m=e.pay_date)&&void 0!==m?m:null,paymentType:null===(null!==(f=e.payment_type)&&void 0!==f?f:null)?null:null!==(g=Z(e.payment_type))&&void 0!==g?g:null,isPaymentTypeAtone:e.payment_type.toString()==Q("atone"),trackType:I,trackingNumber:C,trackingUrl:se(I,C),typeLabel:null!==(y=e.type)&&void 0!==y?y:null,isShowDeliveryDate:null!==(b=e.is_deli_display)&&void 0!==b&&b,deliveryNote:null!==(h=e.delivery_type)&&void 0!==h?h:null,isShowAddress:null!==(v=e.is_address_display)&&void 0!==v&&v,prefectureId:null!==(E=e.prefecture_id)&&void 0!==E?E:null,prefectureName:e.prefecture_id?(0,ee.NR)(e.prefecture_id):null,address1:null!==(k=e.address)&&void 0!==k?k:null,address2:null!==(A=e.company)&&void 0!==A?A:null,addresseeName:null!==(w=e.gift_name)&&void 0!==w?w:null,
198storeUrl:e.shop_name?`${s.A.path.storeDetails}?name=${e.shop_name}`:null,storeBoxUrl:D?`${s.A.path.storeDetails}?c=${D}`:null,isDigitalGift:null!==(_=e.is_digital_gift)&&void 0!==_&&_,digitalGiftUrls:null!==($=e.digital_gift_urls)&&void 0!==$?$:[],isAfterShipping:S,brandName:ce(N),isAvailableInvoice:F&&(z||j)}},ae=({itemName:e,buyType:t})=>{var n;return"regular"!==t&&"refill"!==t||!e?null:null!==(n=de[e])&&void 0!==n?n:null},ie={0:"refill",1:"regular",2:"others",5:"limited",6:"gift"},oe={0:"jp",1:"yamato"},de={スナックミー詰め合わせ:s.A.regularBoxItemId,グラノーラBOX:s.A.granolaBoxItemId,オツマミーBOX:s.A.otumameBoxItemId},se=(e,t)=>{if(!e||!t)return null;switch(e){case"jp":return(0,ne.Fr)()?`https://trackings.post.japanpost.jp/services/srv/search/?requestNo1=${t}`:`https://trackings.post.japanpost.jp/services/srv/search/direct?reqCodeNo1=${t}`;case"yamato":return`https://member.kms.kuronekoyamato.co.jp/parcel/detail?pno=${t}`;default:return null}},ce=e=>{switch(e){case"refill":case"regular":return"snaqme";case"limited":return"store";default:return null}};function ue(){return r.createElement(l.E,{useProps:re,success:e=>r.createElement(q,Object.assign({},e)),pending:()=>r.createElement(a.A,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.