1"use strict";(self.webpackChunkbuddymarket_app=self.webpackChunkbuddymarket_app||[]).push([[7456],{57456:(e,l,t)=>{t.r(l),t.d(l,{default:()=>h});var a=t(9950),r=t(28429),s=t(67818),n=t(48730),o=t(5687),i=t(68327),c=t(56224),d=t(67977);const m={list:()=>d.A.get("cookingTimeRanges").json()};var u=t(44414);const h=()=>{const e=(0,r.Zp)(),{t:l}=(0,s.Bd)(),[t,d]=(0,a.useState)([]),[h,f]=(0,a.useState)([]),[p,b]=(0,a.useState)(""),[x,g]=(0,a.useState)("");return(0,a.useEffect)((()=>{window.scrollTo(0,0),async function(){for(var e=[],l=0;l<10;l++)e.push({value:l,label:l});d(e)}(),async function(){try{const l=await m.list();var e=[];l.data.forEach((l=>{e.push({value:l.id,label:l.name})})),f(e)}catch(l){console.error(l)}}();const e=JSON.parse(localStorage.getItem("register_data"));var l,t;null!=e&&(b(null!==(l=e.daily_meals)&&void 0!==l?l:""),g(null!==(t=e.cooking_time_range_id)&&void 0!==t?t:""))}),[]),(0,u.jsx)("div",{className:"min-h-screen bg-cover bg-center bg-no-repeat",children:(0,u.jsx)("div",{className:"min-h-screen bg-secondary-bg bg-opacity-60 p-6",children:(0,u.jsx)("form",{children:(0,u.jsxs)("div",{className:"bg-red flex flex-col items-center gap-3",children:[(0,u.jsx)(n.A,{to:"/profileForm10",replace:!0,children:(0,u.jsxs)("div",{className:"text-sm",children:[(0,u.jsx)("span",{children:l("profile.forms.common.step",{n:7})})," ",(0,u.jsx)("span",{className:"text-primary",children:l("profile.forms.common.of",{total:7})})]})}),(0,u.jsx)("h2",{className:"w-full text-xl font-semibold text-white",children:l("profile.forms.f12.q1")}),(0,u.jsx)(c.A,{placeholder:l("profile.forms.common.selectPlaceholder"),placeholderValue:"",onChange:e=>{b(e.target.value)},value:p,name:"daily_meals",options:t},"daily_meals"),(0,u.jsx)("div",{className:"my-3"}),(0,u.jsx)("h2",{className:"w-full text-xl font-semibold text-white",children:l("profile.forms.f12.q2")}),(0,u.jsx)(c.A,{placeholder:l("profile.forms.common.selectPlaceholder"),placeholderValue:"",onChange:e=>{g(e.target.value)},value:x,name:"cooking_time_range_id",options:h},"cooking_time_range_id"),(0,u.jsx)(o.A,{children:(0,u.jsx)(i.A,{type:"button",onClick:t=>{if(""!==p&&""!==x){var a=JSON.parse(localStorage.getItem("register_data"));a.daily_meals=parseInt(document.querySelector('[name="daily_meals"]').value),a.cooking_time_range_id=parseInt(document.querySelector('[name="cooking_time_range_id"]').value),localStorage.setItem("register_data",JSON.stringify(a)),e("/signUpConfirm")}else alert(l("profile.forms.common.alertAnswerRequired"))},children:l("profile.forms.common.next")})})]})})})})}},56224:(e,l,t)=>{t.d(l,{A:()=>n});t(9950);var a=t(39324),r=t(74959),s=t(44414);const n=e=>{let{name:l,value:t,label:n="",placeholder:o,placeholderValue:i="",onChange:c=null,disabled:d=!1,options:m=[]}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{children:[null!=n?(0,s.jsx)("label",{className:"mb-2 block px-1 text-sm font-semibold text-gray-700",htmlFor:l,children:n}):"",(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsxs)("select",{disabled:d,name:l,id:l,onChange:c,value:t,className:"h-14 w-full appearance-none rounded-2xl border-2 border-gray-200 bg-white px-5 pr-12 text-gray-900 transition-colors focus:border-bm-accent focus:outline-none disabled:cursor-not-allowed disabled:bg-gray-100",children:[o?(0,s.jsx)("option",{value:i,children:o}):"",m.map((e=>{const{value:l,label:t}=e;return(0,s.jsx)("option",{type:"button",value:l,children:t},l)}))]}),(0,s.jsx)("div",{className:"pointer-events-none absolute right-4 top-1/2 -translate-y-1/2",children:(0,s.jsx)(r.g,{className:"pointer-events-none text-gray-600",icon:a.Jt$})})]})]})})}},5687:(e,l,t)=>{t.d(l,{A:()=>r});t(9950);var a=t(44414);const r=e=>{let{children:l,to:t=""}=e;return(0,a.jsx)("div",{className:"bottom-flex w-full items-center justify-between border-gray-200",children:(0,a.jsx)("div",{className:"grow",children:l})})}},68327:(e,l,t)=>{t.d(l,{A:()=>i});var a=t(89379),r=t(53986),s=t(72004),n=(t(9950),t(44414));const o=["size","children","className"],i=e=>{let{size:l="md",children:t,className:i}=e,c=(0,r.A)(e,o);const d="bg-bm-accent hover:bg-orange-600 text-white font-bold shadow-lg shadow-orange-200 transition-all "+("md"===l?"w-full p-4 rounded-2xl text-lg":"py-3 px-6 rounded-2xl");return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("button",(0,a.A)((0,a.A)({className:(0,s.A)(d,{"cursor-not-allowed opacity-70":c.disabled},i),disabled:c.disabled,type:c.type},c),{},{children:t}))})}},48730:(e,l,t)=>{t.d(l,{A:()=>i});var a=t(39324),r=t(74959),s=(t(9950),t(28429)),n=t(67818),o=t(44414);const i=e=>{let{children:l,to:t="",replace:i=!1,onClick:c=null,withoutButton:d=!1,backLabel:m=null}=e;const u=(0,s.Zp)(),{t:h}=(0,n.Bd)();return(0,o.jsxs)("div",{className:"mb-2 flex h-12 w-full items-center justify-start text-lg",children:[!d&&(0,o.jsx)("button",{type:"button",onClick:()=>{c?c():u(t,{replace:i})}
1,"aria-label":null!==m&&void 0!==m?m:h("a11y.back"),className:"absolute flex h-10 w-10 flex-col items-center justify-center rounded-full border-2 border-bm-border bg-bm-surface transition-colors hover:border-bm-accent",children:(0,o.jsx)(r.g,{icon:a.Wzs,className:"text-bm-text"})}),(0,o.jsx)("div",{className:"grow text-center",children:(0,o.jsx)("div",{className:"font-bold text-bm-text",children:l})})]})}},72004:(e,l,t)=>{function a(e){var l,t,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(l=0;l<s;l++)e[l]&&(t=a(e[l]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function r(){for(var e,l,t=0,r="",s=arguments.length;t<s;t++)(e=arguments[t])&&(l=a(e))&&(r&&(r+=" "),r+=l);return r}t.d(l,{$:()=>r,A:()=>s});const s=r}}]);
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.