PageSourceSearch

https://www.tansu-gen.jp/cdn/shopifycloud/checkout-web/assets/c1/29034f35.BY8rOPhQ.js

js tansu-gen.jp collected 2026-10-01 10:42:14 UTC 2,516 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["74775c2e.Bf4SABWQ.js","89a70c1b.CWGS3pYg.js"])))=>i.map(i=>d[i]);
2import{_ as e}from"./app.bDJ3v-8C.js";import{N as r,A as t,h as o,q as n,T as a,r as u,f as s}from"./2c1ab0fe.D_oO1jU7.js";import{aT as c,O as m,P as l,ey as i,mn as p,eS as d,k9 as f,mo as h}from"./4c290a1e.D9lE9kmU.js";import{hW as b}from"./164ad2e3.DgUUtBtV.js";let g=null,N=null;function C(s,c="",m,l){const[i,p]=r((({formatter:e,regionCode:r,phoneNumber:t},o)=>{switch(o.type){case"reset":return o.state;case"formatter":{const{PhoneNumberFormatter:e}=o;return y(t,r,new e(r),m)}case"phone":return y(o.phoneNumber,r,e)}}),{phoneNumber:c,regionCode:s,loading:!0},(({regionCode:e,phoneNumber:r})=>P(r,e,l,m)));let{phoneNumber:d,regionCode:f,formatter:h}=i;const b=i.loading,C=t(c),j=t(s);if(C.current!==c||j.current!==s){const e=j.current!==s,r=/^\+\d/.test(c),t=!e&&r;C.current=c,j.current=s;const o=P(c,t?f??s:s,i.formatter);d=o.phoneNumber,f=o.regionCode,h=o.formatter,p({type:"reset",state:o})}o((()=>{let r=!0;return async function(){if(h)return;const t=await(N||(N=(async()=>{const{default:r}=await u((()=>e((()=>import("./74775c2e.Bf4SABWQ.js")),__vite__mapDeps([0,1]))));return g=r,g})(),N));r&&p({type:"formatter",PhoneNumberFormatter:t})}(),()=>{r=!1}}),[h]);const v=n((e=>{h&&!/^\+\d/.test(e)&&h.updateRegionCode(s),p({type:"phone",phoneNumber:e})}),[h,s]),w=n((e=>{null!=h&&(h.updateRegionCode(e),p({type:"phone",phoneNumber:`+${h.countryCode}${h.getNationalNumber(d)}`}))}),[h,d]),_=a((()=>null==h?"+1":`+${h.getCountryCodeFromRegionCode(f??j.current)}`),[h,f]);return{loading:b,formattedNumber:d,formattedNumberValueObject:i.phoneNumberValueObject,regionCode:f,prefix:_,setPhoneNumber:v,selectCountry:w}}function y(e,r,t,o){if(null==t)return{phoneNumber:e,phoneNumberValueObject:{value:e},regionCode:r,loading:!0};const n=t.format(e||(o?`+${t.countryCode}`:""));return{formatter:t,phoneNumber:n,phoneNumberValueObject:{value:n},regionCode:t?.regionCode,loading:!1}}function P(e,r,t,o){let n;return t?(t.updateRegionCode(r),n=t):n=g?new g(r):void 0,y(e,r,n,o)}function j(){const{checkoutProtocolPresentedSignal:e}=c(),{checkout:r,router:t}=m(),{allViolations:o}=l(),n=i();return s((()=>{const a=t.currentUrl.value,u="false"===a.searchParams.get(p),s=a.searchParams.get(d),c=r.latestReceipt.value,m=!!c&&b(c),l=o.value,i=l?.some((e=>f.has(e.code)));return Boolean(s&&s!==h.PromptAllowed&&!u||a.searchParams.get("storefront_wallet")||i||n&&!e.value||m)}))}export{j as a,C as u};

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.