1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f4817803-b23e-49a5-a13b-915e0ce57dca",e._sentryDebugIdIdentifier="sentry-dbid-f4817803-b23e-49a5-a13b-915e0ce57dca")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8132],{14161:(e,r,t)=>{t.d(r,{A:()=>y});var n=t(2860),a=t(33737),i=t(33799),l=t(2051),o=t(84660),d=t(98986),c=t(55729),s=t(15553),u=t(47126),m=t(99670);let b=e=>{let{count:r,price:t,className:a}=e,{t:i}=(0,d.Bd)("cart");return(0,n.FD)("div",{className:(0,o.Q)("flex items-end",a),children:[(0,n.Y)(s.E,{variant:"body_s_500",children:i("cart.total_price_summary",{count:r})}),(0,n.Y)(s.E,{variant:"heading_m_500",children:t})]})};var h=t(51002);let p=e=>{let{discountAmount:r,discountName:t}=e;return(0,n.FD)("div",{className:"text-content-brand flex w-full items-center justify-between gap-3 text-left text-sm",children:[(0,n.Y)(s.E,{variant:"body_m_400",color:"inherit",className:"flex-shrink-0",children:t}),(0,n.Y)("hr",{className:"border-content-brand w-full border-x-0 border-b-0 border-t border-dotted"}),(0,n.FD)(s.E,{variant:"body_m_400",color:"inherit",className:"inline-flex gap-1",children:["- ",(0,n.Y)("span",{children:(0,h.u)(r)})]})]})},f=e=>{let{productDiscount:r,couponInfo:t,aiTutorAddonInfo:a,collectionOfferInfo:i}=e,{t:l}=(0,d.Bd)(),{status:o,discount:c}=t||{},{discount:s}=a||{},{discount:u}=i||{};return(0,n.FD)(n.FK,{children:[r?(0,n.Y)(p,{discountName:l("crowdin:cart.product.discount"),discountAmount:r}):null,Number(s)>0?(0,n.Y)(p,{discountName:l("crowdin:cart.ai-tutor-addon.discount"),discountAmount:Number(s)}):null,"valid"===o?(0,n.Y)(p,{discountName:l("crowdin:cart.coupon.discount"),discountAmount:Number(c)}):null,Number(u)>0?(0,n.Y)(p,{discountName:l("crowdin:cart.collection-offer.discount"),discountAmount:Number(u)}):null]})},y=e=>{let{isCollapsible:r,listSubtotal:t,totalSavings:h,estimatedBnplFee:p,totalPrice:y,productCount:N,productDiscount:_,couponInfo:g,aiTutorAddonInfo:w,collectionOfferInfo:Y,summaryClassName:v,savingsColor:x}=e,{t:A}=(0,d.Bd)(),k=(0,c.useMemo)(()=>(0,n.FD)("div",{"aria-label":"checkout-summary-details",className:(0,o.Q)("flex flex-col items-center justify-center",r?"":"flex flex-col gap-300"),children:[Number.isInteger(t)?(0,n.FD)("div",{className:"flex w-full items-center justify-between gap-300 text-left",children:[(0,n.Y)(s.E,{variant:"body_m_400",className:"shrink-0",children:A("common:cart.price_in_total")}),(0,n.Y)("hr",{className:"w-full border-x-0 border-b-0 border-t border-dotted"}),(0,n.Y)(s.E,{variant:"body_m_400",children:(0,m.u)(t)})]}):null,Number.isInteger(_)||g||w||Y?(0,n.Y)(f,{productDiscount:_,couponInfo:g,aiTutorAddonInfo:w,collectionOfferInfo:Y}):null,Number.isInteger(p)&&p>0?(0,n.FD)("div",{className:"flex w-full items-center justify-between gap-300 text-left",children:[(0,n.Y)(s.E,{variant:"body_m_400",className:"shrink-0",children:A("crowdin:cart.bnpl.fee")}),(0,n.Y)("hr",{className:"w-full border-x-0 border-b-0 border-t border-dotted"}),(0,n.Y)(s.E,{variant:"body_m_400",children:(0,m.u)(p)})]}):null,!r&&Number.isInteger(y)?(0,n.FD)("div",{className:"flex w-full items-center justify-between",children:[(0,n.Y)(s.E,{variant:"body_m_400",className:"shrink-0",children:A("crowdin:common.checkout-amount")}),(0,n.Y)(s.E,{variant:"heading_m_500",className:"text-heading-s",children:(0,m.u)(y)})]}):null]}),[A,r,y,h,t,_,g,w,Y,p]);return r?(0,n.Y)("div",{"aria-label":"checkout-summary-accordion",className:"flex flex-col",children:(0,n.FD)(a.A,{className:"border-none shadow-none",disableGutters:!0,children:[(0,n.Y)(i.A,{s
1x:{".MuiAccordionSummary-content":{margin:0,paddingRight:"8px"}},className:"m-0 flex min-h-[24px] w-full p-0",expandIcon:(0,n.Y)(u.I,{type:"keyboard_arrow_down"}),children:(0,n.FD)("div",{className:(0,o.Q)("mobileUp:items-end flex w-full flex-col items-start",v),children:[Number.isInteger(N)&&Number.isInteger(y)?(0,n.Y)(b,{count:N,price:(0,m.u)(y)||"",className:"flex-row"}):null,Number.isInteger(h)?(0,n.FD)(s.E,{variant:"body_s_500",color:x??"peach-500",children:[A("coupon:discount_amount_for_this_order")," ",(0,m.u)(h)]}):null]})}),(0,n.Y)(l.A,{className:"p-0",children:k})]})}):k}},18132:(e,r,t)=>{t.r(r),t.d(r,{default:()=>_});var n=t(2860),a=t(81278),i=t(53031),l=t(99670),o=t(75075),d=t(14161),c=t(84990),s=t(54573),u=t(62108),m=t(41090),b=t(15570),h=t(86528);let p=()=>(0,n.Y)("hr",{className:"border-border-subtle m-0 border-0 border-t"}),f=e=>{let{label:r,value:t}=e;return(0,n.FD)("div",{className:"flex items-center justify-between gap-100",children:[(0,n.Y)("span",{className:"body_s_400 text-content-primary",children:r}),(0,n.Y)("div",{className:"text-right",children:"string"==typeof t?(0,n.Y)("span",{className:"body_s_400",children:t}):t})]})},y=e=>{let{t:r,paymentMethod:t,bankCode:a,code:i,amount:l,expiresAt:o,orderSerialNumber:d}=e;return(0,n.FD)("div",{className:"flex flex-col gap-300 rounded-500 border border-solid border-border-subtle p-400",children:["VACC"===t&&a?(0,n.FD)(n.FK,{children:[(0,n.Y)(f,{label:r("crowdin:thank-you-page.payment-info.bank-code"),value:a}),(0,n.Y)(p,{})]}):null,("CVS"===t||"VACC"===t)&&i?(0,n.FD)(n.FK,{children:[(0,n.Y)(f,{label:"CVS"===t?r("crowdin:thank-you-page.payment-info.payment-code"):r("crowdin:thank-you-page.payment-info.account"),value:(0,n.Y)(m.$n,{variant:"ghost",color:"primary",size:"sm",onClick:()=>{(0,b.F)({text:i,onSuccess:()=>{h.oR.success({message:r("crowdin:thank-you-page.alert-account-copied")})}})},endIcon:(0,n.Y)(u.A,{size:16}),children:i})}),(0,n.Y)(p,{})]}):null,"BNPL"===t&&d?(0,n.FD)(n.FK,{children:[(0,n.Y)(f,{label:r("crowdin:thank-you-page.payment-info.order-number"),value:`#${d}`}),(0,n.Y)(p,{})]}):null,(0,n.Y)(f,{label:r("crowdin:thank-you-page.payment-info.amount-due"),value:l}),o&&"BNPL"!==t?(0,n.FD)(n.FK,{children:[(0,n.Y)(p,{}),(0,n.Y)(f,{label:r("crowdin:thank-you-page.payment-info.payment-deadline"),value:o})]}):null]})},N=[{name:"7-ELEVEN",imgUrl:"https://public.wordup.com.tw/7-11_logo.png",linkUrl:"https://www.newebpay.com/info/site_description/seven_ibon_teach"},{name:"FamilyMart",imgUrl:"https://public.wordup.com.tw/family_mart_logo.png",linkUrl:"https://www.newebpay.com/info/site_description/family_teach"},{name:"OK mart",imgUrl:"https://public.wordup.com.tw/ok-mart_logo.png",linkUrl:"https://www.newebpay.com/info/site_description/okmart_teach"},{name:"èç¾å¯",imgUrl:"https://public.wordup.com.tw/hi-life_logo.png",linkUrl:"https://www.newebpay.com/info/site_description/hilife_teach"}],_=e=>{let{order:r,bankCode:t,code:u,expiresAt:m,locale:b,t:h}=e,p=(0,a.useRouter)(),f=(0,c.nn)(p.query),_=r.data.attributes,g=r.data.lineItems.data,w=r.data.trades.data[0].attributes.paymentMethod,Y=(()=>{switch(w){case o.J.NEWEBPAY_CVS:return"CVS";case o.J.NEWEBPAY_VACC:return"VACC";case o.J.CHAILEASE_BNPL:return"BNPL";default:return""}})(),{amount:v,listSubtotal:x,estimatedBnplFee:A,totalSavings:k,baseDiscount:E,aiTutorAddonDiscount:D,collectionOfferDiscount:F,couponCode:I,couponDiscount:C}=_,T=w===o.J.NEWEBPAY_CVS;return(0,n.FD)("div",{className:"flex flex-col",children:[f?null:(0,n.FD)("section",{className:"flex flex-col gap-300 border-b border-solid border-border-subtle py-500",children:[(0,n.Y)("p",{className:"body_s_400 m-0",dangerouslySetInnerHTML:{__html:h([`crowdin:thank-you-page.un-completed-order.description-${w}`,"crowdin:thank-you-page.un-completed-order.description"])}}),Y?(0,n.Y)(y,{t:h,paymentMethod:Y,bankCode:t,code:u,amount:(0,l.u)(+_.amount)||"",expiresAt:m,orderSerialNumber:r.data.attributes.serialNumber}):null]}),T&&!f?(0,n.FD)("section",{className:"border-b border-solid border-border-subtle py-500",children:[(0,n.Y)("h3",{className:"heading_m_500 m-0 mb-400",children:h("crowdin:thank-you-page.cvs-tutorial.title")}),(0,n.Y)("div",{className:"rounded-500 border border-solid border-border-subtle",children:N.map((e,r)=>(0,n.FD)("a",{href:e.linkUrl,target:"_blank",rel:"noreferrer noopener",className:`no-text-decoration flex items-center justify-between px-400 py-300 ${r<N.length-1?"border-b border-solid border-border-subtle":""}`,children:[(0,n.Y)("img",{src:e.imgUrl,alt:e.name,className:"h-[28px] object-contain"}),(0,n.FD)("span",{className:"body_s_400 text-content-secondary",children:[h("crowdin:thank-you-page.cvs-tutorial.steps")," â"]})]},e.name))})]}):null,(0,n.FD)("section",{className:"py-500",children:[(0,n.Y)("h3",{className:"heading_m_500 m-0 mb-400",children:h("crowdin:common.order-details")}),(0,n.Y)("div",{className:"mb-400 flex flex-col gap-300",children:g.map(e=>(0,n.FD)("div",{className:"flex items-center gap-300",children:[e.attributes.thumbnail?(0,n.Y)(i._,{src:e.attributes.thumbnail,className:"h-[56px] w-[75px] shrink-0 rounded-300 object-cover",height:"56",width:"75",alt:"product"}):null,(0,n.Y)("span",{className:"body_s_500",children:e.attributes.name})]},e.id))}),(0,n.Y)("div",{className:"rounded-500 bg-gradient-to-r from-[#f3f3f4] to-[#fbfbfc] p-400",children:(0,n.Y)(d.A,{totalPrice:Number(v),listSubtotal:Number(x),estimatedBnplFee:Number(A),totalSavings:Number(k),productDiscount:Number(E),productC
1ount:g.length,aiTutorAddonInfo:{discount:D},collectionOfferInfo:{discount:F},couponInfo:I&&Number(C)>0?{status:"valid",discount:C}:void 0})})]}),(0,n.FD)("section",{className:"border-t border-solid border-border-subtle py-500",children:[(0,n.Y)("h3",{className:"heading_m_500 m-0 mb-200",children:h("crowdin:thank-you-page.need-help.title")}),(0,n.FD)("p",{className:"body_m_400 m-0",children:[h("crowdin:thank-you-page.need-help.description-prefix"),(0,n.Y)("a",{href:"https://wordup.com.tw/faq",target:"_blank",rel:"noreferrer noopener",className:"text-content-brand",children:h("crowdin:thank-you-page.need-help.faq-link-text")}),h("crowdin:thank-you-page.need-help.description-suffix")]})]}),(0,n.Y)("section",{className:"pt-300",children:(0,n.Y)(s.A,{variant:f?"failure":"default"})})]})}},29007:(e,r,t)=>{t.d(r,{A:()=>i,W:()=>l});var n=t(97043);let a="ReactNativeWebView is not available",i=e=>{try{var r;if(!(null==(r=window)?void 0:r.ReactNativeWebView))throw Error(a);let t=JSON.stringify(e);window.ReactNativeWebView.postMessage(t)}catch(r){if((null==r?void 0:r.message)===a)return void n.Ay.notify({err:r,context:{key:a,value:e}});n.Ay.notify({err:r,context:{key:"Error serializing value",value:e}})}},l={CLOSE:"CLOSE",TO_APP_MATERIALS:"TO_APP_MATERIALS",TO_APP_MATERIAL:"TO_APP_MATERIAL",RECOMMENDATION_FILTERS:"recommendation_filters",OPEN_TRIAL:"OPEN_TRIAL"}},51002:(e,r,t)=>{t.d(r,{u:()=>n});let n=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t={currency:"TWD",...r};return"TWD"===t.currency&&void 0===t.digit&&(t.digit=0),"NT"+new Intl.NumberFormat("zh-TW",{currency:t.currency,maximumFractionDigits:t.digit??0,minimumFractionDigits:t.digit??0,style:"currency"}).format(e)}},54573:(e,r,t)=>{t.d(r,{A:()=>f});var n=t(2860),a=t(82203),i=t.n(a),l=t(98986),o=t(38510),d=t(2450),c=t(61817),s=t(41090),u=t(49511),m=t(41642),b=t(5415),h=t(29007),p=t(63537);let f=e=>{let{variant:r="default"}=e,{t}=(0,l.Bd)(),a=(0,b.BR)("pageKey"),f="failure"===r;return(0,n.FD)("div",{className:"flex items-center justify-center gap-300",children:[(0,n.Y)(i(),{className:"flex-1 no-underline",href:m.H.HOME(a),children:(0,n.Y)(s.$n,{variant:"outlined",color:"primary",fullWidth:!0,startIcon:(0,n.Y)(o.A,{size:18}),children:t("crowdin:thank-you-page.bottom-section.to-homepage")})}),(0,n.Y)(i(),{className:"flex-1 no-underline",href:f?m.H.HOME(a):(0,p.sk)(""),onClick:e=>{!f&&(0,u.Al)()&&(e.preventDefault(),(0,h.A)({type:h.W.TO_APP_MATERIALS}))},children:(0,n.Y)(s.$n,{fullWidth:!0,startIcon:f?(0,n.Y)(d.A,{size:18}):(0,n.Y)(c.A,{size:18}),children:t(f?"crowdin:thank-you-page.bottom-section.repurchase":"crowdin:thank-you-page.bottom-section.start-learning")})})]})}}}]);
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.