PageSourceSearch

https://travesim.com/assets/footer-cart-Bn930lUv.js

js travesim.com collected 2026-10-04 20:45:13 UTC 16,759 bytes, 1 lines download raw bytes

1import{G as N,b as x,u as $,ar as U,r as g,ai as T,Q as w,j as e,aj as H,h as D,a0 as Y,f as P,k as X,T as Z}from"./index-Dkk9Srv5.js";import{D as k,a as I,b as S,c as B,d as L}from"./dialog-BZPN-rgr.js";import{P as O,a as J,b as K}from"./popover-DgHGq_Hq.js";import{f as j}from"./price-format-DngM1aqr.js";import{u as W}from"./useQuery-DbNZy248.js";import{u as q}from"./cta-scope-tMYnnnD6.js";import{C as ee}from"./cta-registry-B62sPM8z.js";function be(a){return N({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m9 19 8-7-8-7z"},child:[]}]})(a)}function ae(a){return N({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M21.822 7.431A1 1 0 0 0 21 7H7.333L6.179 4.23A1.994 1.994 0 0 0 4.333 3H2v2h2.333l4.744 11.385A1 1 0 0 0 10 17h8c.417 0 .79-.259.937-.648l3-8a1 1 0 0 0-.115-.921z"},child:[]},{tag:"circle",attr:{cx:"10.5",cy:"19.5",r:"1.5"},child:[]},{tag:"circle",attr:{cx:"17.5",cy:"19.5",r:"1.5"},child:[]}]})(a)}const E={ja:"1日あたり{data}GB使用後、{speed}Mbpsに速度制限されます。",en:"Lower speed rate of {speed} Mbps after {data} GB usage per day.",th:"ความเร็วลดลงเหลือ {speed} Mbps หลังใช้งาน {data} GB ต่อวัน",vi:"Tốc độ giảm xuống {speed} Mbps sau khi sử dụng {data} GB mỗi ngày."},te={ja:"1日{data}GBまで最高速度、その後速度制限されます。24時間ごとにリセット。",en:"Full speed up to {data} GB/day, then slower speeds. Resets every 24 hours.",th:"ความเร็วเต็มสูงสุด {data} GB/วัน จากนั้นความเร็วลดลง รีเซ็ตทุก 24 ชั่วโมง",vi:"Tốc độ đầy đủ đến {data} GB/ngày, sau đó tốc độ chậm hơn. Đặt lại sau mỗi 24 giờ."},se=(a,t)=>{if(!a)return;const l=a.match(/^Lower speed rate of (\d+) Mbps after (\d+) GB usage per day\.?$/);if(l&&l[1]&&l[2]){const s=l[1],c=l[2];return E[t].replace("{speed}",s).replace("{data}",c)}const n=a.match(/^Speed reduced to (\d+)Mbps after (\d+)GB of daily usage\.?$/);if(n&&n[1]&&n[2]){const s=n[1],c=n[2];return E[t].replace("{speed}",s).replace("{data}",c)}const u=a.match(/^Full speed up to ([\d.]+) GB\/day, then slower speeds\. Resets every 24 hours\.?$/);if(u&&u[1]){const s=u[1];return te[t].replace("{data}",s)}return a},Ce=({children:a,...t})=>{const l=x(r=>r.cartCurrencyCode),n=$(r=>r.language),u=U(l,n),s=D(n),{data:c}=W(Y()),h=g.useMemo(()=>T((c==null?void 0:c.data)||[],t.slug,n)||"Loading...",[c,t.slug,n]),v=!t.country_code,p=g.useMemo(()=>{var r;return(r=t.coverages)==null?void 0:r.map(d=>({countryName:w((c==null?void 0:c.data)||[],d.code,n)||"Loading...",networks:d.networks.map(m=>({name:m.name,types:m.types.join("、 ")}))}))},[c,t.coverages,n]),f=g.useMemo(()=>{var r;return(r=t.countries)==null?void 0:r.map(d=>({countryName:w((c==null?void 0:c.data)||[],d.country_code,n)||"Loading..."}))},[c,t.countries,n]),y="topups"in t?g.useMemo(()=>{var r;return(r=t.topups)==null?void 0:r.map(d=>({...d,countryName:T((c==null?void 0:c.data)||[],d.slug,n)||"Loading..."}))},[c,t.topups,n]):void 0;return e.jsxs(k,{children:[e.jsx(I,{asChild:!0,children:a}),e.jsxs(S,{className:"max-w-300! max-h-[90vh] overflow-y-auto",onClick:r=>r.stopPropagation(),children:[e.jsx(B,{className:"relative border-b pb-4",children:e.jsx(L,{className:"text-2xl font-bold pr-8",children:s("%sプラン").replace("%s",h)})}),e.jsxs("div",{className:"space-y-6 py-4",children:[t.price&&e.jsxs("div",{className:"grid grid-cols-[2fr_3fr] md:grid-cols-[180px_1fr] gap-3 items-start",children:[e.jsx("span",{className:"text-sm text-gray-700 font-medium text-right",children:s("価格:")}),e.jsxs("span",{className:"text-sm text-gray-900",children:[j(t.price,l,n)," ",u]})]}),e.jsxs("div",{className:"grid grid-cols-[2fr_3fr] md:grid-cols-[180px_1fr] gap-3 items-start",children:[e.jsx("span",{className:"text-sm text-gray-700 font-medium text-right",children:s("提供内容:")}),e.jsx("span",{className:"text-sm text-gray-900",children:s("データ専用(音声・SMSはご利用いただけません)")})]}),e.jsxs("div",{className:"grid grid-cols-[2fr_3fr] md:grid-cols-[180px_1fr] gap-3 items-start",children:[e.jsx("span",{className:"text-sm text-gray-700 font-medium text-right",children:s("eSIM有効期限:")}),e.jsx("div",{className:"text-sm text-gray-900",children:e.jsxs("div",{children:[typeof t.day=="str
1ing"?t.day:`${t.day}${s("日間")}`,s("(TRAVeSIMのインストール後、最初に通信エリア内にてインターネット接続した時点から有効期限が開始されます。)"),v&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx("strong",{role:"alert",children:s("周遊タイプのSIMカードを周遊対象国内でインストールした場合、未開通の状態でも有効期限が開始する場合がございます")})]}),e.jsx("br",{}),s("詳細はご購入後にマイページでご確認いただけます。")]})})]}),e.jsxs("div",{className:"grid grid-cols-[2fr_3fr] md:grid-cols-[180px_1fr] gap-3 items-start",children:[e.jsx("span",{className:"text-sm text-gray-700 font-medium text-right",children:s("アクティベート期限:")}),e.jsx("div",{className:"text-sm text-gray-900",children:e.jsxs("div",{children:[s("90日以内(TRAVeSIM購入後、90日以内にアクティベート(開通)を済ませてください。)"),e.jsx("br",{}),s("※通常、QRコードのインストールまでは通信エリア外でも行えますが、アクティベートは通信エリア内のみ可能となります。")]})})]}),("topup"in t||"topups"in t)&&e.jsxs("div",{className:"grid grid-cols-[2fr_3fr] md:grid-cols-[180px_1fr] gap-3 items-start",children:[e.jsx("span",{className:"text-sm text-gray-700 font-medium text-right",children:s("追加チャージ:")}),e.jsx("span",{className:"text-sm text-gray-900",children:"topup"in t?e.jsx(e.Fragment,{children:t.topup}):y&&y.length>0?e.jsxs(e.Fragment,{children:[s("可能(追加チャージの金額は"),e.jsxs(k,{children:[e.jsx(I,{asChild:!0,children:e.jsx("button",{className:"text-blue-600 hover:text-blue-800 underline",children:s("こちら")})}),e.jsxs(S,{className:"max-w-2xl max-h-[90vh] flex flex-col",children:[e.jsx(B,{children:e.jsx(L,{children:s("追加チャージ")})}),e.jsx("div",{className:"space-y-4 py-4 overflow-y-auto",children:y.map((r,d)=>e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"text-sm",children:r.countryName}),e.jsx("div",{className:"text-sm",children:H(r,n)})]}),e.jsx("div",{className:"text-right",children:e.jsxs("div",{className:"font-bold text-gray-900",children:[j(r.price,l,n)," ",u]})})]},d))})]})]}),s("からご確認ください)")]}):e.jsx(e.Fragment,{children:s("不可")})})]}),t.fair_usage_policy&&e.jsxs("div",{className:"grid grid-cols-[2fr_3fr] md:grid-cols-[180px_1fr] gap-3 items-start",children:[e.jsx("span",{className:"text-sm text-gray-700 font-medium text-right",children:s("公正利用ポリシー:")}),e.jsx("div",{className:"text-sm text-gray-900",children:e.jsx("div",{children:se(t.fair_usage_policy,n)})})]}),e.jsxs("div",{className:"grid grid-cols-[2fr_3fr] md:grid-cols-[180px_1fr] gap-3 items-start",children:[e.jsx("span",{className:"text-sm text-gray-700 font-medium text-right",children:s("カバレッジ(対象国):")}),e.jsx("span",{className:"text-sm text-gray-900",children:f&&f.map(r=>r.countryName).join("、")})]}),e.jsxs("div",{className:"grid grid-cols-[2fr_3fr] md:grid-cols-[180px_1fr] gap-3 items-start",children:[e.jsx("span",{className:"text-sm text-gray-700 font-medium text-right",children:s("ネットワーク:")}),e.jsx("span",{className:"text-sm text-gray-900",children:v?e.jsx("div",{className:"flex flex-wrap gap-2",children:p&&p.length>0&&p.map((r,d)=>e.jsxs(O,{children:[e.jsx(J,{asChild:!0,children:e.jsx("button",{className:"px-3 py-1 bg-blue-50 hover:bg-blue-100 text-blue-700 rounded-full text-sm font-medium transition-colors",children:r.countryName})}),e.jsx(K,{className:"w-80",children:e.jsxs("div",{className:"space-y-3",children:[e.jsx("h4",{className:"font-semibold text-base",children:r.countryName}),r.networks.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs text-gray-500 font-medium",children:s("対応ネットワーク")}),e.jsx("ul",{className:"space-y-1.5",children:r.networks.map((m,o)=>e.jsx("li",{className:"text-sm",children:e.jsxs("div",{className:"font-medium text-gray-900",children:[m.name,m.types&&` (${m.types})`]})},o))})]})]})})]},d))}):e.jsx("div",{className:"flex flex-wrap gap-2",children:p&&p.length>0&&p.map((r,d)=>e.jsx("div",{children:r.networks.length>0&&r.networks.map(m=>`${m.name} (${m.types})`).join("、 ")},d))})})]})]})]})]})},_e=a=>e.jsx("div",{className:P("flex justify-center items-center",a.blockClassName||"py-12"),children:e.jsx("div",{className:P("animate-spin rounded-full border-b-2 border-primary",a.className||"size-12")})}),Me=({partnerCode:a,language:t})=>t==="vi"?e.jsx(e.Fragment,{}):e.jsxs("div",{className:"space-y-4 my-4",children:[e.jsx("div",{children:e.jsx("a",{href:`https://app.travesim.com/thailand/${t==="ja"?"jp":t==="th"?"th":"en"}/nihonsim`,target:"_blank",rel:"noopener noreferrer",children:e.jsx("img",{src:`/images/banners/${t}/NihonSIM_Banner.png`,alt:"NihonSIM_Banner",className:"w-full h-auto rounded-xl"})})}),a==="th"&&e.jsx("div",{children:e.jsx("a",{href:`https://app.travesim.com/thailand/${t==="ja"?"jp":t==="th"?"th":"en"}/nihonsim_plus`,target:"_blank",rel:"noopener noreferrer",children:e.jsx("img",{src:`/images/banners/${t}/NihonSIMPlus_Banner.png`,alt:"NihonSIM+_Banner",className:"w-full h-auto rounded-xl"})})})]}),re=(a,t)=>a?"unlimited":String(t),ie=a=>a.specialPrice||a.tariffPrice||a.basePrice,Ae=(a,t)=>({productId:a.id,country:t.country,dataCapacity:re(a.is_unlimited,a.amount),validityDays:a.day,price:ie(a),currency:t.currencyCode}),ne=a=>({productId:a.package.travesimPackageId,country:a.country.slug,dataCapacity:a.package.isUnlimited?"unlimited":`${a.package.dataAmount}${a.package.dataAmountUnit}`,validityDays:a.package.days,price:a.package.price,currency:a.package.currencyCode}),ce="jp",le=new Date("2026-07-29T23:59:59+09:00").getTime();function de(a,t=Date.now()){return a===ce&&t<=le}const oe=["china","hong-kong","macau","malaysia","taiwan","united-states-of-america-(inc.-hawaii)","vietnam","thailand","south-korea","europe","asia","australia","guam"];function Te(a,t){return!a||!de(t)?!1:oe.includes(a)}
1function me(a){return N({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z"},child:[]},{tag:"path",attr:{d:"M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z"},child:[]}]})(a)}function xe(a){return N({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Minus"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M15,11.5h0a.5.5,0,0,1,0,1H9a.5.5,0,0,1,0-1Z"},child:[]},{tag:"path",attr:{d:"M12,21.934A9.933,9.933,0,1,1,21.932,12,9.945,9.945,0,0,1,12,21.934ZM12,3.068A8.933,8.933,0,1,0,20.932,12,8.944,8.944,0,0,0,12,3.068Z"},child:[]}]}]}]})(a)}function ue(a){return N({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Plus"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M15,12.5H12.5V15a.5.5,0,0,1-1,0V12.5H9a.5.5,0,0,1,0-1h2.5V9a.5.5,0,0,1,1,0v2.5H15A.5.5,0,0,1,15,12.5Z"},child:[]},{tag:"path",attr:{d:"M12,21.932A9.934,9.934,0,1,1,21.932,12,9.944,9.944,0,0,1,12,21.932ZM12,3.065A8.934,8.934,0,1,0,20.932,12,8.944,8.944,0,0,0,12,3.065Z"},child:[]}]}]}]})(a)}function we({lastPageSlug:a}){const t=X(),l=$(i=>i.language),n=D(l),{productAttrs:u}=q(),[s,c]=g.useState(!1),h=x(i=>i.items),v=x(i=>i.getTotalPrice),p=x(i=>i.updateQuantity),f=x(i=>i.clearCart),y=x(i=>i.setLastPageSlug),r=v(),d=x(i=>i.getFinalPrice()),m=x(i=>i.cartCurrencyCode),o=h[0],b=x(i=>i.getCountryName),C=x(i=>i.getPackageDisplayLabel),_=x(i=>i.hasTopup)();g.useEffect(()=>{_&&f()},[_,f]);const F=g.useMemo(()=>b(),[b,o,l]),V=g.useMemo(()=>C(),[C,o,l]);if(g.useEffect(()=>{Z({finalPrice:d,currencyCode:m??"USD"})},[d,m]),g.useEffect(()=>{if(h.length>0){const i=setTimeout(()=>{c(!0)},100);return()=>clearTimeout(i)}else c(!1)},[h.length]),h.length===0)return null;const M=u(ee.cartCheckout,ne(o)),A=()=>{y(a);const R=window.location.pathname.split("/")[1]||"default";t({to:"/$partnerCode/payment",params:{partnerCode:R}})},Q=i=>{i.stopPropagation(),f()};return e.jsx("div",{className:`fixed bottom-17 md:bottom-0 left-0 right-0 z-50 bg-primary-200/95 border-t-2 border-primary-950 text-primary-950 transition-all duration-500 ease-in-out transform ${s?"opacity-100 translate-y-0":"opacity-0 translate-y-full"}`,children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 py-2 lg:py-4",children:e.jsxs("div",{className:"relative mx-auto my-auto items-center justify-center gap-1 font-bold md:flex md:gap-8 lg:grid lg:w-11/12 lg:grid-cols-6 lg:gap-4",children:[e.jsxs("div",{className:"ml-4 text-left lg:col-span-2",children:[e.jsx("div",{className:"text-sm font-medium lg:text-base",children:F}),e.jsxs("div",{className:"flex flex-row items-baseline",children:[e.jsx("div",{className:"relative text-base lg:text-2xl",children:V}),e.jsxs("div",{className:"ml-4 flex text-xl lg:ml-6 lg:text-3xl",children:[o.package.currencySymbol," ",j(o.package.price,o.package.currencyCode,l)]}),e.jsx("button",{type:"button",onClick:Q,className:"absolute top-0 right-2 my-auto mt-1 ml-4 md:relative md:right-0",children:e.jsx(me,{className:"size-7 md:size-6 lg:size-8"})})]})]}),e.jsx("div",{className:"mx-auto hidden lg:block",children:e.jsx(z,{quantity:o.quantity,onQuantityChange:i=>p(o.packageId,i)})}),e.jsxs("div",{className:"flex text-left lg:ml-4 lg:flex-col",children:[e.jsx("div",{className:"mr-4 flex items-center lg:hidden",children:e.jsx(z,{quantity:o.quantity,onQuantityChange:i=>p(o.packageId,i)})}),e.jsxs("div",{className:"flex items-end gap-2 lg:flex-col lg:pt-0",children:[e.jsx("div",{className:"flex flex-col items-end lg:hidden",children:e.jsxs("div",{className:"flex items-baseline gap-1",children:[e.jsx("span",{className:"text-xs",children:n("合計")}),e.jsxs("span",{className:"text-3xl md:pt-3",children:[o.package.currencySymbol," ",j(r,o.package.currencyCode,l)]})]})}),e.jsxs("div",{className:"hidden lg:block",children:[e.jsx("div",{className:"flex w-full items-baseline justify-between",children:e.jsx("span",{className:"text-lg",children:n("合計")})}),e.jsxs("div",{className:"text-4xl",children:[o.package.currencySymbol," ",j(r,o.package.currencyCode,l)]})]}),e.jsx("div",{className:"ml-4 md:pt-2 lg:hidden",children:e.jsx(G,{onClick:A,t:n,ctaAttrs:M})})]})]}),e.jsx("div",{className:"hidden lg:col-span-2 lg:block",children:e.jsx(G,{onClick:A,t:n,ctaAttrs:M})})]})})})}function G({onClick:a,t,ctaAttrs:l}){return e.jsxs("button",{type:"button",onClick:a,className:"relative mx-auto flex w-fit cursor-pointer items-center justify-center rounded-full border-yellow-700 border-b-2 bg-secondary-400 px-4 py-1 md:min-w-36 md:border-b-4 md:px-12",...l,children:[e.jsx("div",{className:"hidden py-3 text-lg md:block md:text-2xl",children:t("購入へ進む")}),e.jsx(ae,{className:"my-auto size-6 md:my-1 lg:ml-2"})]})}function z({quantity:a,onQuantityChange:t}){const n=()=>{a<10&&t(a+1)},u=()=>{a>1&&t(a-1)},s=c=>{const h=Number(c.target.value);h>=1&&h<=10&&t(h)};return e.jsx("div",{className:"flex flex-col items-center justify-center md:flex-row",children:e.jsxs("div",{className:"flex justify-between gap-x-1 lg:gap-x-2",children:[e.jsx("button",{type:"button",onClick:u,disabled:a<=1,className:`transition-opacity duration-200 ${a<=1?"opacity-30 curs
1or-not-allowed":"opacity-100 cursor-pointer hover:opacity-80"}`,children:e.jsx(xe,{className:"size-7 lg:size-10"})}),e.jsx("input",{type:"number",value:a,onChange:s,className:"size-10 rounded text-center text-3xl leading-9 [appearance:textfield] md:size-16 md:text-4xl [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",min:"1",max:10,pattern:"[0-9]*"}),e.jsx("button",{type:"button",onClick:n,disabled:a>=10,className:`transition-opacity duration-200 ${a>=10?"opacity-30 cursor-not-allowed":"opacity-100 cursor-pointer hover:opacity-80"}`,children:e.jsx(ue,{className:"size-7 lg:size-10"})})]})})}export{ae as B,we as F,Me as J,Ce as P,_e as S,be as a,se as g,Te as i,Ae as t};

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.