1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5613],{5613:function(e,a,t){t.r(a);var l=t(5893),n=t(8278),s=t(7294),c=t(1163);let d=e=>{let{locale:a,t}=(0,n.b)();return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("span",{className:"p-plan__breakfast__result__label__text",dangerouslySetInnerHTML:{__html:e["desc_"+a]}})})},r=e=>{let{locale:a,t}=(0,n.b)();return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("p",{dangerouslySetInnerHTML:{__html:e["detail_desc_"+a]}})})};a.default=function(e){let{planOptions:a,appliedPlanOptions:t,setAppliedPlanOptions:p}=e,{locale:u,t:h}=(0,n.b)(),i=(0,c.useRouter)();(0,s.useEffect)(()=>{},[]);let _=e=>{let a=e.currentTarget.getAttribute("data-slug");if(e.target.checked){if(e.currentTarget.getAttribute("data-plan-code-checked")){p([...t,a]);let l=i.asPath,n=l.split("/");n.pop(),n.push(e.currentTarget.getAttribute("data-plan-code-checked")),l=n.join("/"),i.push(l)}}else if(e.currentTarget.getAttribute("data-plan-code-unchecked")){t.indexOf(a)>=0&&(t.splice(t.indexOf(a)),p(t));let l=i.asPath,n=l.split("/");n.pop(),n.push(e.currentTarget.getAttribute("data-plan-code-unchecked")),l=n.join("/"),i.push(l)}},o=e=>t.includes(e.slug)?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("input",{className:"u-checkbox__input",name:"planOptions",type:"checkbox",id:e.slug,value:e.slug,defaultChecked:!0,disabled:!e.planCodeChecked&&!e.planCodeUnchecked,"data-plan-code-checked":e.planCodeChecked,"data-plan-code-unchecked":e.planCodeUnchecked,"data-slug":e.slug,onChange:e=>_(e)})}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("input",{className:"u-checkbox__input",name:"planOptions",type:"checkbox",id:e.slug,value:e.slug,defaultChecked:t.includes(e.slug),disabled:!e.planCodeChecked&&!e.planCodeUnchecked,"data-plan-code-checked":e.planCodeChecked,"data-plan-code-unchecked":e.planCodeUnchecked,"data-slug":e.slug,onChange:e=>_(e)})});return 0==a.length?(0,l.jsx)(l.Fragment,{}):Object.keys(a).map((e,t)=>{let n=a[e],s="detail_title_"+u;return n.planCodeChecked||n.planCodeUnchecked?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h2",{className:"u-heading__page",children:n[s]}),r(n),(0,l.jsxs)("div",{className:"p-plan__breakfast",children:[(0,l.jsx)("div",{className:"p-plan__breakfast__result",children:(0,l.jsxs)("p",{className:"p-plan__breakfast__result__label",children:[(0,l.jsxs)("span",{className:"p-plan__breakfast__result__label__text",children:[h.plan.text.optionTotal,"ï¼"]}),d(n)]})}),(0,l.jsx)("div",{className:"p-plan__breakfast__check",children:(0,l.jsxs)("div",{className:"u-checkbox",children:[o(n),(0,l.jsxs)("label",{className:"u-checkbox__label",htmlFor:n.slug,children:[h.plan.text.optionAddBefore,n[s],h.plan.text.optionAddAfter]})]})})]})]}):(0,l.jsx)(l.Fragment,{})})}}}]);
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.