1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,6870,e=>{"use strict";let t=(0,e.i(41200).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CircleCheck",0,t],6870)},81654,e=>{"use strict";function t(){return window.Capacitor}e.s(["isNativeApp",0,function(){return t()?.isNativePlatform?.()===!0},"nativePlatform",0,function(){let e=t()?.getPlatform?.();return"ios"===e||"android"===e?e:null},"nativePlugin",0,function(e){return t()?.Plugins?.[e]??null}])},75069,(e,t,r)=>{"use strict";function i({widthInt:e,heightInt:t,blurWidth:r,blurHeight:a,blurDataURL:n,objectFit:s}){let l=r?40*r:e,o=a?40*a:t,d=l&&o?`viewBox='0 0 ${l} ${o}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${d}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${d?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${n}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return i}})},52652,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={VALID_LOADERS:function(){return n},imageConfigDefault:function(){return s}};for(var a in i)Object.defineProperty(r,a,{enumerable:!0,get:i[a]});let n=["default","imgix","cloudinary","akamai","custom"],s={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},72420,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return d}}),e.r(19609);let i=e.r(96691),a=e.r(75069),n=e.r(52652),s=["-moz-initial","fill","none","scale-down",void 0];function l(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function d({src:e,sizes:t,unoptimized:r=!1,priority:c=!1,preload:u=!1,loading:f,className:p,quality:m,width:x,height:g,fill:h=!1,style:b,overrideSrc:v,onLoad:y,onLoadingComplete:j,placeholder:w="empty",blurDataURL:k,fetchPriority:S,decoding:N="async",layout:C,objectFit:_,objectPosition:P,lazyBoundary:E,lazyRoot:R,...O},M){var A;let z,I,$,{imgConf:L,showAltText:U,blurComplete:T,defaultLoader:D}=M,F=L||n.imageConfigDefault;if("allSizes"in F)z=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t),r=F.qualities?.sort((e,t)=>e-t);z={...F,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===D)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let q=O.loader||D;delete O.loader,delete O.srcSet;let W="__next_img_default"in q;if(W){if("custom"===z.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. 2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=q;q=t=>{let{config:r,...i}=t;return e(i)}}if(C){"fill"===C&&(h=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];e&&(b={...b,...e});let r={responsive:"100vw",fill:"100vw"}[C];r&&!t&&(t=r)}let G="",B=o(x),V=o(g);if((A=e)&&"object"==typeof A&&(l(A)||void 0!==A.src)){let t=l(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}
2`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(I=t.blurWidth,$=t.blurHeight,k=k||t.blurDataURL,G=t.src,!h)if(B||V){if(B&&!V){let e=B/t.width;V=Math.round(t.height*e)}else if(!B&&V){let e=V/t.height;B=Math.round(t.width*e)}}else B=t.width,V=t.height}let H=!c&&!u&&("lazy"===f||void 0===f);(!(e="string"==typeof e?e:G)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,H=!1),z.unoptimized&&(r=!0),W&&!z.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let X=o(m),Z=Object.assign(h?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:_,objectPosition:P}:{},U?{}:{color:"transparent"},b),J=T||"empty"===w?null:"blur"===w?`url("data:image/svg+xml;charset=utf-8,${(0,a.getImageBlurSvg)({widthInt:B,heightInt:V,blurWidth:I,blurHeight:$,blurDataURL:k||"",objectFit:Z.objectFit})}")`:`url("${w}")`,Y=s.includes(Z.objectFit)?"fill"===Z.objectFit?"100% 100%":"cover":Z.objectFit,K=J?{backgroundSize:Y,backgroundPosition:Z.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:J}:{},Q=function({config:e,src:t,unoptimized:r,width:a,quality:n,sizes:s,loader:l}){if(r){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,i.getDeploymentId)();if(e){let r=t.indexOf("?");if(-1!==r){let i=new URLSearchParams(t.slice(r+1));i.get("dpl")||(i.append("dpl",e),t=t.slice(0,r)+"?"+i.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:o,kind:d}=function({deviceSizes:e,allSizes:t},r,i){if(i){let r=/(^|\s)(1?\d?\d)vw/g,a=[];for(let e;e=r.exec(i);)a.push(parseInt(e[2]));if(a.length){let r=.01*Math.min(...a);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,a,s),c=o.length-1;return{sizes:s||"w"!==d?s:"100vw",srcSet:o.map((r,i)=>`${l({config:e,src:t,quality:n,width:r})} ${"w"===d?r:i+1}${d}`).join(", "),src:l({config:e,src:t,quality:n,width:o[c]})}}({config:z,src:e,unoptimized:r,width:B,quality:X,sizes:t,loader:q}),ee=H?"lazy":f;return{props:{...O,loading:ee,fetchPriority:S,width:B,height:V,decoding:N,className:p,style:{...Z,...K},sizes:Q.sizes,srcSet:Q.srcSet,src:v||Q.src},meta:{unoptimized:r,preload:u||c,placeholder:w,fill:h}}}},16648,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return l}});let i=e.r(30878),a="u"<typeof window,n=a?()=>{}:i.useLayoutEffect,s=a?()=>{}:i.useEffect;function l(e){let{headManager:t,reduceComponentsToState:r}=e;function l(){if(t&&t.mountedInstances){let e=i.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return a&&(t?.mountedInstances?.add(e.children),l()),n(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),n(()=>(t&&(t._pendingUpdate=l),()=>{t&&(t._pendingUpdate=l)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},13484,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={default:function(){return x},defaultHead:function(){return u}};for(var a in i)Object.defineProperty(r,a,{enumerable:!0,get:i[a]});let n=e.r(63212),s=e.r(79510),l=e.r(14294),o=s._(e.r(30878)),d=n._(e.r(16648)),c=e.r(56890);function u(){return[(0,l.jsx)("meta",{charSet:"utf-8"},"charset"),(0,l.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(19609);let p=["name","httpEquiv","charSet","itemProp"];function m(e){let t,r,i,a;return e.reduce(f,[]).reverse().concat(u().reverse()).filter((t=new Set,r=new Set,i=new Set,a={},e=>{let n=!0,s=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){s=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?n=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?n=!1:r.add(e.type);break;case"meta":for(let t=0,r=p.length;t<r;t++){let r=p[t];if(e.props.hasOwnProperty(r))if("charSet"===r)i.has(r)?n=!1:i.add(r);else{let t=e.props[r],i=a[r]||new Set;("name"!==r||!s)&&i.has(t)?n=!1:(i.add(t),a[r]=i)}}}return n})).reverse().map((e,t)=>{let r=e.key||t;return o.default.cloneElement(e,{key:r})})}let x=function({children:e}){let t=(0,o.useContext)(c.HeadManagerContext);return(0,l.jsx)(d.default,{reduceComponentsToState:m,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
2dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},61273,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return n}});let i=e.r(63212)._(e.r(30878)),a=e.r(52652),n=i.default.createContext(a.imageConfigDefault)},89832,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return i}});let i=e.r(63212)._(e.r(30878)).default.createContext(null)},85952,(e,t,r)=>{"use strict";function i(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,t.qualities[0]):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return i}})},51393,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let i=e.r(85952),a=e.r(96691);function n({config:e,src:t,width:r,quality:s}){let l=(0,a.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")){let e=t.indexOf("?");if(-1!==e){let r=new URLSearchParams(t.slice(e+1)),i=r.get("dpl");if(i){l=i,r.delete("dpl");let a=r.toString();t=t.slice(0,e)+(a?"?"+a:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns. 3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let o=(0,i.findClosestQuality)(s,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${o}${t.startsWith("/")&&l?`&dpl=${l}`:""}`}n.__next_img_default=!0;let s=n},69537,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return y}});let i=e.r(63212),a=e.r(79510),n=e.r(14294),s=a._(e.r(30878)),l=i._(e.r(73340)),o=i._(e.r(13484)),d=e.r(72420),c=e.r(52652),u=e.r(61273);e.r(19609);let f=e.r(89832),p=i._(e.r(51393)),m=e.r(15232),x={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,i,a,n,s){let l=e?.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&a(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let i=!1,a=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>i,isPropagationStopped:()=>a,persist:()=>{},preventDefault:()=>{i=!0,t.preventDefault()},stopPropagation:()=>{a=!0,t.stopPropagation()}})}i?.current&&i.current(e)}}))}function h(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let b=(0,s.forwardRef)(({src:e,srcSet:t,sizes:r,height:i,width:a,decoding:l,className:o,style:d,fetchPriority:c,placeholder:u,loading:f,unoptimized:p,fill:x,onLoadRef:b,onLoadingCompleteRef:v,setBlurComplete:y,setShowAltText:j,sizesInput:w,onLoad:k,onError:S,...N},C)=>{let _=(0,s.useCallback)(e=>{e&&(S&&(e.src=e.src),e.complete&&g(e,u,b,v,y,p,w))},[e,u,b,v,y,S,p,w]),P=(0,m.useMergedRef)(C,_);return(0,n.jsx)("img",{...N,...h(c),loading:f,width:a,height:i,decoding:l,"data-nimg":x?"fill":"1",className:o,style:d,sizes:r,srcSet:t,src:e,ref:P,onLoad:e=>{g(e.currentTarget,u,b,v,y,p,w)},onError:e=>{j(!0),"empty"!==u&&y(!0),S&&S(e)}})});function v({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...h(t.fetchPriority)};return e&&l.default.preload?(l.default.preload(t.src,r),null):(0,n.jsx)(o.default,{children:(0,n.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let y=(0,s.forwardRef)((e,t)=>{let r=(0,s.useContext)(f.RouterContext),i=(0,s.useContext)(u.ImageConfigContext),a=(0,s.useMemo)(()=>{let e=x||i||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>
3e-t),r=e.deviceSizes.sort((e,t)=>e-t),a=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:a,localPatterns:"u"<typeof window?i?.localPatterns:e.localPatterns}},[i]),{onLoad:l,onLoadingComplete:o}=e,m=(0,s.useRef)(l);(0,s.useEffect)(()=>{m.current=l},[l]);let g=(0,s.useRef)(o);(0,s.useEffect)(()=>{g.current=o},[o]);let[h,y]=(0,s.useState)(!1),[j,w]=(0,s.useState)(!1),{props:k,meta:S}=(0,d.getImgProps)(e,{defaultLoader:p.default,imgConf:a,blurComplete:h,showAltText:j});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b,{...k,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:y,setShowAltText:w,sizesInput:e.sizes,ref:t}),S.preload?(0,n.jsx)(v,{isAppRouter:!r,imgAttributes:k}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},41628,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={default:function(){return c},getImageProps:function(){return d}};for(var a in i)Object.defineProperty(r,a,{enumerable:!0,get:i[a]});let n=e.r(63212),s=e.r(72420),l=e.r(69537),o=n._(e.r(51393));function d(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=l.Image},92623,(e,t,r)=>{t.exports=e.r(41628)},271,96781,e=>{"use strict";var t=e.i(41200);let r=(0,t.default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,r],271);let i=(0,t.default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);e.s(["EyeOff",0,i],96781)},97177,e=>{"use strict";var t=e.i(14294),r=e.i(30878),i=e.i(271),a=e.i(96781);e.s(["PasswordInput",0,function({className:e,wrapperClassName:n,...s}){let[l,o]=(0,r.useState)(!1);return(0,t.jsxs)("span",{className:`relative block ${n??""}`,children:[(0,t.jsx)("input",{...s,type:l?"text":"password",className:`${e??""} pr-12`}),(0,t.jsx)("button",{type:"button",onClick:()=>o(e=>!e),"aria-label":l?"ãã¹ã¯ã¼ããé ã":"ãã¹ã¯ã¼ãã表示","aria-pressed":l,className:"absolute right-1.5 top-1/2 flex h-9 w-9 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full text-ink-soft transition-colors duration-200 hover:bg-cream hover:text-ink focus:outline-none focus-visible:ring-2 focus-visible:ring-terracotta",children:l?(0,t.jsx)(a.EyeOff,{size:18,strokeWidth:1.8,"aria-hidden":"true"}):(0,t.jsx)(i.Eye,{size:18,strokeWidth:1.8,"aria-hidden":"true"})})]})}])},40110,e=>{"use strict";var t=e.i(14294),r=e.i(30878),i=e.i(51112);let a=(0,i.createServerReference)("60d20e47d2a0ebdda6bad37da626c84f89d3581efe",i.callServer,void 0,i.findSourceMapURL,"login"),n=(0,i.createServerReference)("60d3d285b01a3b406e9b09104265f668775cdee856",i.callServer,void 0,i.findSourceMapURL,"signup"),s=(0,i.createServerReference)("002aba02b7dc68c1ad087f7a43cb834da92139e173",i.callServer,void 0,i.findSourceMapURL,"signInWithGoogle"),l=(0,i.createServerReference)("602cd5c7eb0ce651c8c0cb617dbae311198ffc3c6b",i.callServer,void 0,i.findSourceMapURL,"requestPasswordReset"),o=(0,i.createServerReference)("60ab9e10200804a8e5e7a4812ca74d9f9e12e2deea",i.callServer,void 0,i.findSourceMapURL,"verifyPasswordResetCode"),d="w-full rounded-xl border border-line bg-white px-4 py-3 text-base text-ink placeholder:text-ink-soft/50 transition-colors duration-200 focus:outline-none focus-visible:border-terracotta focus-visible:ring-2 focus-visible:ring-terracotta focus-visible:ring-offset-1",c="flex w-full cursor-pointer items-center justify-center whitespace-nowrap rounded-xl bg-terracotta-dark px-4 py-3 text-sm font-semibold text-white shadow-sm transition-colors duration-200 hover:bg-terracotta-darker focus:outline-none focus-visible:ring-2 focus-visible:ring-terracotta focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-70";function u({idPrefix:e="reset"}){let[i,a]=(0,r.useState)(""),[n,s]=(0,r.useState)(!1),[f,p]=(0,r.useState)(""),[m,x]=(0,r.useState)(void 0),[g,h]=(0,r.useTransition)(),[b,v,y]=(0,r.useActionState)(o,void 0);function j(e){h(async()=>{let t=await l(void 0,e),r=t?.fieldErrors?.email?.[0]??t?.error;r?x(r):(x(void 0),t?.notice&&(p(""),s(!0)))})}if(!n)return(0,t.jsxs)("form",{action:j,className:"space-y-2.5",noValidate:!0,children:[(0,t.jsx)("label",{htmlFor:`${e}-email`,className:"sr-only",children:"ç»é²ã¡ã¼ã«ã¢ãã¬ã¹"}),(0,t.jsx)("input",{id:`${e}-email`,name:"email",type:"email",autoComplete:"email",required:!0,value:i,onChange:e=>a(e.target.value),placeholder:"ç»é²ã¡ã¼ã«ã¢ãã¬ã¹","aria-invalid":!!m,"aria-describedby":m?`${e}-email-error`:void 0,className:d}),(0,t.jsx)("button",{type:"submit",disabled:g,className:c,children:g?"éä¿¡ä¸â¦":"確èªã³ã¼ããéã"}),m&&(0,t.jsx)("p",{id:`${e}-email-error`,role:"alert",className:"text-xs text-danger-dark",children:m})]});let w=b?.fieldErrors?.code?.[0];return(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("p",{role:"status",className:"rounded-lg bg-teal/10 px-3 py-2 text-sm leading-relaxed text-teal",children:[(0,t.jsx)("span",{className:"font-semibold break-all",children:i})," ","å®ã«ç¢ºèªã³ã¼ãããéããã¾ãããã¡ã¼ã«ã«è¨è¼ã®ã³ã¼ããå
¥åãã¦ãã ããã確èªã§ããã¨ãã°ã¤ã³ããç¶ãã¦æ°ãããã¹ã¯ã¼ããè¨å®ã§ãã¾ãã"]}),(0,t.jsxs)("form",{action:v,className:"space-y-3",noValidate:!0,children:[(0,t.jsx)("input",{type:"hidden",name:"email",value:i}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:`${e}-code`,className:"mb-1.5 block text-sm font-semibold text-teal",children:"確èªã³ã¼ã"}),(0,t.jsx)("input",{id:`${e}-code`,name:"code",type:"text",inputMode:"numeric",autoComplete:"one-time-code",pattern:"[0-9]*",maxLength:10,required:!0,value:f,onChange:e=>p(e.target.value),placeholder:"ã¡ã¼ã«ã«è¨è¼ã®ã³ã¼ã","aria-invalid":!!w,className:`${d} tracking-[0.3em]`}),w&&(0,t.jsx)("p",{role:"alert",className:"mt-1.5 text-xs text-danger-dark",children:w})]}),b?.error&&(0,t.jsx)("p",{role:"alert",className:"rounded-lg bg-danger-soft px-3 py-2 text-sm text-danger-dark",children:b.error}),(0,t.jsx)("button",{type:"submit",disabled:y,className:c,children:y?"確èªä¸â¦":"ã³ã¼ãã確èªãã"})]}),(0,t.jsxs)("form",{action:j,children:[(0,t.jsx)("input",{type:"hidden",name:"email",value:i}),(0,t.jsx)("button",{type:"submit",disabled:g,className:"w-full cursor-pointer text-center text-xs font-semibold text-terracotta-dark hover:underline disabled:cursor-not-allowed disabled:opacity-70",children:g?"åéä¸â¦":"ã³ã¼ããåéãã"})]}),m&&(0,t.jsx)("p",{role:"alert",className:"text-center text-xs text-danger-dark",children:m}),(0,t.jsx)("button",{type:"button",onClick:()=>{s(!1),p("")},className:"w-full cursor-pointer text-center text-xs text-ink-soft hover:underline",children:"å¥ã®ã¡ã¼ã«ã¢ãã¬ã¹ã使ã"}),(0,t.jsxs)("div",{className:"border-t border-line pt-3 text-xs leading-relaxed text-ink-soft",children:[(0,t.jsx)("p",{className:"font-semibold text-ink",children:"ã³ã¼ããå±ããªãã¨ãã¯"}),(0,t.jsxs)("ul",{className:"mt-1.5 list-disc space-y-1 pl-5",children:[(0,t.jsx)("li",{children:"è¿·æã¡ã¼ã«ï¼ã¹ãã ï¼ãã©ã«ããã確èªãã ãã"}),(0,t.jsx)("li",{children:"å°ãå¾
ã£ã¦ãããã³ã¼ããåéããããã試ããã ãã"}),(0,t.jsx)("li",{children:"Yahoo!ã¡ã¼ã«ããã£ãªã¢ã¡ã¼ã«ã§ã¯ãå±ãã®ãé
ãããå±ããªããã¨ãããã¾ã"})]}),(0,t.jsx)("p",{className:"mt-2",children:"ããã§ãå±ããªãå ´åã¯ãè¿·æã¡ã¼ã«ãã©ã«ããã確èªã®ããããã°ããæéãããã¦ããããä¸åº¦ã試ããã ãããå¥ã®ã¡ã¼ã«ã¢ãã¬ã¹ã§ãã試ãããã ãã¾ãã"})]})]})}var f=e.i(6870);let p=(0,i.createServerReference)("608a3c26c4ac83be431fa80e2f5e953800cf466c31",i.callServer,void 0,i.findSourceMapURL,"confirmSignupWithCode"),m=(0,i.createServerReference)("60125c1d22ebe1a0858cbd366d67d91aed220be640",i.callServer,void 0,i.findSourceMapURL,"resendSignupCode");var x=e.i(97177);let g="w-full rounded-xl border border-line bg-white px-4 py-3 text-base text-ink placeholder:text-ink-soft/50 transition-colors duration-200 focus:outline-none focus-visible:border-terracotta focus-visible:ring-2 focus-visible:ring-terracotta focus-visible:ring-offset-1",h="mt-2 flex w-full cursor-pointer items-center justify-center whitespace-nowrap rounded-xl bg-terracotta-dark px-4 py-3 text-sm font-semibold text-white shadow-sm transition-colors duration-200 hover:bg-terracotta-darker focus:outline-none focus-visible:ring-2 focus-visible:ring-terracotta focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-70";function b({onSwitchToLogin:e,initialInviteCode:i=""}){let[a,s]=(0,r.useState)(""),[l,o]=(0,r.useState)(""),[d,c]=(0,r.useState)(""),[u,v]=(0,r.useState)(i),y=8===i.length,[j,w]=(0,r.useState)(!1),[k,S]=(0,r.useState)(void 0),[N,C]=(0,r.useState)(void 0),[_,P]=(0,r.useTransition)(),[E,R,O]=(0,r.useActionState)(p,void 0);if(!j){let e=k?.fieldErrors?.email?.[0],r=k?.fieldErrors?.password?.[0];return(0,t.jsxs)("form",{action:function(e){P(async()=>{let t=await n(void 0,e);t?.error||t?.fieldErrors?S(t):t?.step==="verify"&&(S(void 0),c(""),C(void 0),w(!0))})},className:"space-y-4",noValidate:!0,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"signup-email",className:"mb-1.5 block text-sm font-semibold text-teal",children:"ã¡ã¼ã«ã¢ãã¬ã¹"}),(0,t.jsx)("input",{id:"signup-email",name:"email",type:"email",autoComplete:"email",required:!0,value:a,onChange:e=>s(e.target.value),placeholder:"[email protected]","aria-invalid":!!e,className:g}),e&&(0,t.jsx)("p",{role:"alert",className:"mt-1.5 text-xs text-danger-dark",children:e})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"signup-password",className:"mb-1.5 block text-sm font-semibold text-teal",children:"ãã¹ã¯ã¼ã"}),(0,t.jsx)(x.PasswordInput,{id:"signup-password",name:"password",autoComplete:"new-password",required:!0,value:l,onCh
3ange:e=>o(e.target.value),placeholder:"8æå以ä¸","aria-invalid":!!r,className:g}),r&&(0,t.jsx)("p",{role:"alert",className:"mt-1.5 text-xs text-danger-dark",children:r})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"signup-invite-code",className:"mb-1.5 block text-sm font-semibold text-teal",children:["æå¾
ã³ã¼ã",(0,t.jsx)("span",{className:"ml-1 font-normal text-ink-soft",children:"ï¼ä»»æï¼"})]}),(0,t.jsx)("input",{id:"signup-invite-code",name:"invite_code",type:"text",inputMode:"text",autoCapitalize:"characters",autoComplete:"off",maxLength:8,value:u,onChange:e=>v(e.target.value.toUpperCase().replace(/[^A-HJ-NP-Z2-9]/g,"").slice(0,8)),placeholder:"ãæã¡ã®æ¹ã®ã¿å
¥åï¼8æ¡ï¼",className:`${g} tracking-[0.2em] uppercase placeholder:tracking-normal placeholder:normal-case`}),y&&u===i&&(0,t.jsxs)("p",{role:"status",className:"mt-1.5 flex items-center gap-1.5 text-xs font-medium text-teal",children:[(0,t.jsx)(f.CircleCheck,{size:15,strokeWidth:1.8,"aria-hidden":"true",className:"shrink-0"}),"æå¾
ã³ã¼ããé©ç¨ããã¦ãã¾ãã"]})]}),k?.error&&(0,t.jsx)("p",{role:"alert",className:"rounded-lg bg-danger-soft px-3 py-2 text-sm text-danger-dark",children:k.error}),(0,t.jsx)("button",{type:"submit",disabled:_,className:h,children:_?"å¦çä¸â¦":"ã¢ã«ã¦ã³ãã使"})]})}let M=E?.fieldErrors?.code?.[0];return(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("p",{role:"status",className:"rounded-lg bg-teal/10 px-3 py-2 text-sm leading-relaxed text-teal",children:[(0,t.jsx)("span",{className:"font-semibold break-all",children:a})," ","å®ã«ç¢ºèªã³ã¼ãããéããã¾ãããã¡ã¼ã«ã«è¨è¼ã®æ°åã³ã¼ããå
¥åãã¦ç»é²ãå®äºãã¦ãã ããã"]}),(0,t.jsxs)("form",{action:R,className:"space-y-3",noValidate:!0,children:[(0,t.jsx)("input",{type:"hidden",name:"email",value:a}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"signup-code",className:"mb-1.5 block text-sm font-semibold text-teal",children:"確èªã³ã¼ã"}),(0,t.jsx)("input",{id:"signup-code",name:"code",type:"text",inputMode:"numeric",autoComplete:"one-time-code",pattern:"[0-9]*",maxLength:10,required:!0,value:d,onChange:e=>c(e.target.value),placeholder:"ã¡ã¼ã«ã«è¨è¼ã®ã³ã¼ã","aria-invalid":!!M,className:`${g} tracking-[0.3em]`}),M&&(0,t.jsx)("p",{role:"alert",className:"mt-1.5 text-xs text-danger-dark",children:M})]}),E?.error&&(0,t.jsx)("p",{role:"alert",className:"rounded-lg bg-danger-soft px-3 py-2 text-sm text-danger-dark",children:E.error}),(0,t.jsx)("button",{type:"submit",disabled:O,className:h,children:O?"ç»é²ä¸â¦":"ç»é²ãå®äºãã"})]}),(0,t.jsxs)("form",{action:function(e){P(async()=>{let t=await m(void 0,e);C(t?.error??t?.notice)})},children:[(0,t.jsx)("input",{type:"hidden",name:"email",value:a}),(0,t.jsx)("button",{type:"submit",disabled:_,className:"w-full cursor-pointer text-center text-xs font-semibold text-terracotta-dark hover:underline disabled:cursor-not-allowed disabled:opacity-70",children:_?"åéä¸â¦":"ã³ã¼ããåéãã"})]}),N&&(0,t.jsx)("p",{role:"status",className:"text-center text-xs text-ink-soft",children:N}),(0,t.jsx)("button",{type:"button",onClick:()=>{w(!1),c(""),C(void 0)},className:"w-full cursor-pointer text-center text-xs text-ink-soft hover:underline",children:"å¥ã®ã¡ã¼ã«ã¢ãã¬ã¹ã使ã"}),(0,t.jsxs)("div",{className:"border-t border-line pt-3 text-xs leading-relaxed text-ink-soft",children:[(0,t.jsx)("p",{className:"font-semibold text-ink",children:"ã³ã¼ããå±ããªãã¨ãã¯"}),(0,t.jsxs)("ul",{className:"mt-1.5 list-disc space-y-1 pl-5",children:[(0,t.jsx)("li",{children:"è¿·æã¡ã¼ã«ï¼ã¹ãã ï¼ãã©ã«ããã確èªãã ãã"}),(0,t.jsx)("li",{children:"å°ãå¾
ã£ã¦ãããã³ã¼ããåéããããã試ããã ãã"}),(0,t.jsxs)("li",{children:["ãã®ã¡ã¼ã«ã¢ãã¬ã¹ãæ¢ã«ãç»é²æ¸ã¿ã®å ´åãã³ã¼ãã¯å±ãã¾ããããã®éã¯",(0,t.jsx)("button",{type:"button",onClick:e,className:"cursor-pointer font-semibold text-terracotta-dark hover:underline",children:"ãã°ã¤ã³"}),"ãããé²ã¿ãã ããï¼ãã¹ã¯ã¼ãã䏿ãªãããã¹ã¯ã¼ãããå¿ãã®æ¹ãï¼ã"]})]}),(0,t.jsx)("p",{className:"mt-2",children:"ããã§ãå±ããªãå ´åã¯ãè¿·æã¡ã¼ã«ãã©ã«ããã確èªã®ããããã°ããæéãããã¦ããããä¸åº¦ã試ããã ãããå¥ã®ã¡ã¼ã«ã¢ãã¬ã¹ã§ãã試ãããã ãã¾ãã"})]})]})}var v=e.i(81654),y=e.i(92258);let j="213013850865-mk3aff7r65mi1vnag6ui4cu04egfcvrc.apps.googleusercontent.com";async function w(e){let t=new TextEncoder().encode(e);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("")}let k=null;async function S(){let e=(0,v.nativePlugin)("SocialLogin");if(!e)return{ok:!1,error:"not_available"};try{let t;await (!k&&(k=e.initialize({google:{webClientId:j,iOSClientId:"213013850865-4deur2d3k90puuab7dq4r5lc3h3oeep5.apps.googleusercontent.com",iOSServerClientId:j,mode:"online"}}
3).catch(e=>{throw k=null,e})),k);let r=(t=new Uint8Array(32),crypto.getRandomValues(t),Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")),i=await w(r),{result:a}=await e.login({provider:"google",options:{nonce:i,forcePrompt:!0}}),n=a?.idToken;if(!n)return{ok:!1,error:"no_id_token"};let s=(0,y.createClient)(),{error:l}=await s.auth.signInWithIdToken({provider:"google",token:n,nonce:r});if(l)return{ok:!1,error:l.message};return{ok:!0}}catch(e){if(e?.code==="USER_CANCELLED")return{ok:!1,cancelled:!0};return{ok:!1,error:String(e?.message??e)}}}async function N(e){let t=new TextEncoder().encode(e);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("")}let C=null;async function _(){let e=(0,v.nativePlugin)("SocialLogin");if(!e)return{ok:!1,error:"not_available"};try{let t;await (!C&&(C=e.initialize({apple:{clientId:"me.gourmate.app"}}).catch(e=>{throw C=null,e})),C);let r=(t=new Uint8Array(32),crypto.getRandomValues(t),Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")),i=await N(r),{result:a}=await e.login({provider:"apple",options:{nonce:i,scopes:["email","name"]}}),n=a?.idToken;if(!n)return{ok:!1,error:"no_id_token"};let s=(0,y.createClient)(),{error:l}=await s.auth.signInWithIdToken({provider:"apple",token:n,nonce:r});if(l)return{ok:!1,error:l.message};return{ok:!0}}catch(e){if(e?.code==="USER_CANCELLED")return{ok:!1,cancelled:!0};return{ok:!1,error:String(e?.message??e)}}}let P=()=>()=>{},E=()=>(0,v.isNativeApp)(),R=()=>!1,O=()=>(0,v.nativePlatform)(),M=()=>null,A="flex w-full cursor-pointer items-center justify-center gap-3 whitespace-nowrap rounded-xl border border-line bg-white px-4 py-3 text-sm font-semibold text-ink shadow-sm transition-colors duration-200 hover:bg-cream focus:outline-none focus-visible:ring-2 focus-visible:ring-terracotta focus-visible:ring-offset-2";function z({mode:e,setMode:i}){let[s,l,o]=(0,r.useActionState)("login"===e?a:n,void 0);return(0,t.jsxs)("form",{action:l,className:"space-y-4",noValidate:!0,children:[(0,t.jsx)($,{id:"email",label:"ã¡ã¼ã«ã¢ãã¬ã¹",type:"email",autoComplete:"email",placeholder:"[email protected]",defaultValue:s?.values?.email,errors:s?.fieldErrors?.email}),(0,t.jsx)($,{id:"password",label:"ãã¹ã¯ã¼ã",type:"password",autoComplete:"login"===e?"current-password":"new-password",placeholder:"8æå以ä¸",errors:s?.fieldErrors?.password}),"login"===e&&(0,t.jsx)("div",{className:"text-right",children:(0,t.jsx)("button",{type:"button",onClick:()=>i("reset"),className:"cursor-pointer text-xs font-semibold text-terracotta-dark hover:underline",children:"ãã¹ã¯ã¼ãããå¿ãã®æ¹"})}),s?.error&&(0,t.jsx)("p",{role:"alert",className:"rounded-lg bg-danger-soft px-3 py-2 text-sm text-danger-dark",children:s.error}),s?.notice&&(0,t.jsx)("p",{role:"status",className:"rounded-lg bg-teal/10 px-3 py-2 text-sm leading-relaxed text-teal whitespace-pre-line",children:s.notice}),(0,t.jsx)("button",{type:"submit",disabled:o,className:"mt-2 flex w-full cursor-pointer items-center justify-center whitespace-nowrap rounded-xl bg-terracotta-dark px-4 py-3 text-sm font-semibold text-white shadow-sm transition-colors duration-200 hover:bg-terracotta-darker focus:outline-none focus-visible:ring-2 focus-visible:ring-terracotta focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-70",children:o?"å¦çä¸â¦":"login"===e?"ãã°ã¤ã³":"ã¢ã«ã¦ã³ãã使"})]})}function I(){return(0,t.jsxs)("div",{className:"mb-6 rounded-xl bg-terracotta-soft/50 p-4",children:[(0,t.jsx)("p",{className:"text-sm font-bold text-terracotta-dark",children:"以åãããå©ç¨ã®æ¹ã¸"}),(0,t.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-ink-soft",children:"ãªãã¥ã¼ã¢ã«ã«ä¼´ãã以åã®ãã¹ã¯ã¼ãã¯ãå©ç¨ããã ãã¾ãããã確èªã³ã¼ããéããããæ°ãããã¹ã¯ã¼ããè¨å®ãã¦ãã ããã"}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(u,{idPrefix:"banner"})}),(0,t.jsx)("p",{className:"mt-2.5 text-xs leading-relaxed text-ink-soft",children:"Googleã§ãç»é²ã®æ¹ã¯ããGoogleã§ãã°ã¤ã³ããããã®ã¾ã¾å
¥ãã¾ãã"})]})}function $({id:e,label:r,type:i,autoComplete:a,placeholder:n,defaultValue:s,errors:l}){let o=!!l?.length,d={id:e,name:e,autoComplete:a,placeholder:n,defaultValue:s,required:!0,"aria-invalid":o,"aria-describedby":o?`${e}-error`:void 0,className:`w-full rounded-xl border bg-white px-4 py-3 text-base text-ink placeholder:text-ink-soft/50 transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 ${o?"border-danger focus-visible:ring-danger":"border-line focus-visible:border-terracotta focus-visible:ring-terracotta"}`};return(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:e,className:"mb-1.5 block text-sm font-semibold text-teal",children:r}),"password"===i?(0,t.jsx)(x.PasswordInput,{...d}):(0,t.jsx)("input",{...d,type:i}),o&&(0,t.jsx)("ul",{id:`${e}-error`,className:"mt-1.5 space-y-0.5",children:l.map(e=>(0,t.jsx)("li",{className:"text-xs text-danger-dark",children:e},e))})]})}function L({mode:e}){let i=(0,r.useSyncExternalStore)(P,E,R),[a,n]=(0,r.useState)(!1),[l,o]=(0,r.useState)(null),d=(0,t.jsxs)("div",{className:"my-6 flex items-center gap-4",children:[(0,t.jsx)("span",{className:"h-px flex-1 bg-line"}),(0,t.jsx)("span",{className:"text-xs font-medium text-ink-soft",children:"ã¾ãã¯"}),(0,t.jsx)("span",{className:"h-px flex-1 bg-line"})]});if(i&&(!j||!(0,v.nativePlugin)("SocialLogin")))return null;if(i){let r=async()=>
3{if(a)return;o(null),n(!0);let e=await S();e.ok?window.location.assign("/"):(e.cancelled||o("Googleã§ã®ãã°ã¤ã³ã«å¤±æãã¾ãããæéãããã¦å度ã試ããã ããã"+(e.error?`ï¼è©³ç´°: ${e.error}ï¼`:"")),n(!1))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:r,disabled:a,className:`${A} disabled:cursor-not-allowed disabled:opacity-70`,children:[(0,t.jsx)(U,{}),"Googleã§","login"===e?"ãã°ã¤ã³":"ç»é²"]}),l&&(0,t.jsx)("p",{role:"alert",className:"mt-3 rounded-lg bg-danger-soft px-3 py-2 text-sm text-danger-dark",children:l}),(0,t.jsx)(T,{mode:e}),d]})}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("form",{action:s,children:(0,t.jsxs)("button",{type:"submit",className:A,children:[(0,t.jsx)(U,{}),"Googleã§","login"===e?"ãã°ã¤ã³":"ç»é²"]})}),d]})}function U(){return(0,t.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18","aria-hidden":"true",children:[(0,t.jsx)("path",{fill:"#4285F4",d:"M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844a4.14 4.14 0 0 1-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615Z"}),(0,t.jsx)("path",{fill:"#34A853",d:"M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 0 0 9 18Z"}),(0,t.jsx)("path",{fill:"#FBBC05",d:"M3.964 10.71A5.41 5.41 0 0 1 3.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 0 0 0 9c0 1.452.348 2.827.957 4.042l3.007-2.332Z"}),(0,t.jsx)("path",{fill:"#EA4335",d:"M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 0 0 .957 4.958L3.964 7.29C4.672 5.163 6.656 3.58 9 3.58Z"})]})}function T({mode:e}){let i=(0,r.useSyncExternalStore)(P,O,M),[a,n]=(0,r.useState)(!1),[s,l]=(0,r.useState)(null);if("ios"!==i||!(0,v.nativePlugin)("SocialLogin"))return null;let o=async()=>{if(a)return;l(null),n(!0);let e=await _();e.ok?window.location.assign("/"):(e.cancelled||l("Appleã§ã®ãã°ã¤ã³ã«å¤±æãã¾ãããæéãããã¦å度ã試ããã ããã"),n(!1))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:o,disabled:a,className:"flex w-full cursor-pointer items-center justify-center gap-3 whitespace-nowrap rounded-xl bg-black px-4 py-3 text-sm font-semibold text-white shadow-sm transition-colors duration-200 hover:bg-neutral-800 focus:outline-none focus-visible:ring-2 focus-visible:ring-terracotta focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-70 mt-3",children:[(0,t.jsx)(D,{}),"Appleã§","login"===e?"ãµã¤ã³ã¤ã³":"ãµã¤ã³ã¢ãã"]}),s&&(0,t.jsx)("p",{role:"alert",className:"mt-3 rounded-lg bg-danger-soft px-3 py-2 text-sm text-danger-dark",children:s})]})}function D(){return(0,t.jsx)("svg",{width:"16",height:"18",viewBox:"0 0 384 512",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})})}e.s(["AuthForm",0,function({initialMode:e="login",initialInviteCode:i=""}={}){let[a,n]=(0,r.useState)(e);return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("h2",{className:"text-xl font-bold text-teal",children:"login"===a?"ãããããªãã":"signup"===a?"Gourmateãå§ãã":"ãã¹ã¯ã¼ããåè¨å®"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-ink-soft",children:"login"===a?"ãã°ã¤ã³ãã¦ãæ°ã«ãªãåéã«å¿åãã¾ãããã":"signup"===a?"30ç§ã§ç»é²å®äºã»åºæ¬ç¡æãæ°ã«ãªãåéã«å¿åãã¦é£äºä¼ã«åå ã§ãã¾ãã":"ãç»é²ã®ã¡ã¼ã«ã¢ãã¬ã¹ã«ç¢ºèªã³ã¼ãããéããã¾ãã"})]}),"reset"!==a&&(0,t.jsx)("div",{role:"tablist","aria-label":"ãã°ã¤ã³ã¾ãã¯æ°è¦ç»é²",className:"mb-7 grid grid-cols-2 gap-1 rounded-full bg-terracotta-soft/60 p-1",children:["login","signup"].map(e=>{let r=a===e;return(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":r,onClick:()=>
3n(e),className:`cursor-pointer rounded-full px-4 py-2.5 text-sm font-semibold transition-colors duration-200 ${r?"bg-white text-teal shadow-sm":"text-teal/70 hover:text-teal"}`,children:"login"===e?"ãã°ã¤ã³":"æ°è¦ç»é²"},e)})}),"login"===a&&(0,t.jsx)(I,{}),"reset"!==a&&(0,t.jsx)(L,{mode:a}),"reset"===a?(0,t.jsx)(u,{idPrefix:"reset-page"}):"signup"===a?(0,t.jsx)(b,{onSwitchToLogin:()=>n("login"),initialInviteCode:i}):(0,t.jsx)(z,{mode:a,setMode:n},a),"reset"===a?(0,t.jsx)("p",{className:"mt-6 text-center text-sm",children:(0,t.jsx)("button",{type:"button",onClick:()=>n("login"),className:"cursor-pointer font-semibold text-terracotta-dark hover:underline",children:"ãã°ã¤ã³ã«æ»ã"})}):(0,t.jsxs)("p",{className:"mt-6 text-center text-xs leading-relaxed text-ink-soft",children:["ç¶è¡ããã¨",(0,t.jsx)("a",{className:"text-terracotta-dark hover:underline",href:"/terms",children:"å©ç¨è¦ç´"}),"ã¨",(0,t.jsx)("a",{className:"text-terracotta-dark hover:underline",href:"/privacy",children:"ãã©ã¤ãã·ã¼ããªã·ã¼"}),"ã«åæãããã®ã¨ã¿ãªããã¾ãã"]})]})}],40110)}]);
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.