@edutalk/promo-tool 0.0.0-stage → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,345 @@
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("vue")):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.EdutalkPromoTool={},e.Vue))})(this,function(e,t){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var n={"IELTS Mentor|Module A|Online":{sessions:`5 buổi`,classSize:`10-12 học viên`},"IELTS Mentor|Module B|Online":{sessions:`5 buổi`,classSize:`10-12 học viên`},"IELTS Mentor|BS|Offline":{sessions:`20 buổi`,classSize:`≥ 20 học viên`},"IELTS Mentor|BS|Online":{sessions:`20 buổi`,classSize:`6-8 học viên`},"IELTS Mentor|PRE|Offline":{sessions:`26 buổi`,classSize:`≥ 18 học viên`},"IELTS Mentor|PRE|Online":{sessions:`26 buổi`,classSize:`6-8 học viên`},"IELTS Mentor|IE4.5|Offline":{sessions:`26 buổi`,classSize:`≥ 18 học viên`},"IELTS Mentor|IE4.5|Online":{sessions:`26 buổi`,classSize:`6-8 học viên`},"IELTS Mentor|IE6.5(M1)|Offline":{sessions:`36 buổi`,classSize:`≥ 18 học viên`},"IELTS Mentor|IE6.5(M1)|Online":{sessions:`36 buổi`,classSize:`6-8 học viên`},"IELTS Mentor|IE6.5(M2)|Offline":{sessions:`38 buổi`,classSize:`≥ 18 học viên`},"IELTS Mentor|IE6.5(M2)|Online":{sessions:`38 buổi`,classSize:`6-8 học viên`},"IELTS Mentor|IE7.0|Online":{sessions:`32 buổi`,classSize:`6-8 học viên`},"IELTS Mentor|BT5.5|Online":{sessions:`6 buổi`,classSize:`18-20 học viên`},"IELTS Mentor|Ready|Offline":{sessions:`16 buổi`,classSize:`18-20 học viên`},"IELTS Mentor|Ready|Online":{sessions:`16 buổi`,classSize:`20 - 22 học viên`}},r={brands:[{label:`IELTS Mentor`,brandName:`IELTS Mentor`,bg:`#FFD602`,bg2:`#FFFFFF`,ink:`#000000`,accent:`#01518E`,neutral:`#E1DEE5`,slate:`#44525E`,gradient:``,onMain:``,font:`Be Vietnam Pro`,motif:``,logoUrl:``,logoLight:``,footer:`Áp dụng cho toàn bộ khách hàng
2
+ Áp dụng toàn bộ hệ thống IELTS MENTOR`},{label:`CLASSUP 1-8`,brandName:`ClassUp`,bg:`#FF8B06`,bg2:`#FFFFFF`,ink:`#111960`,accent:`#111960`,neutral:`#EEEFF7`,slate:`#5C6190`,gradient:`#FFCE1C,#FB732F`,onMain:`#FFFFFF`,font:`Nunito`,motif:`wave`,logoUrl:`classup/ngang-am-ban`,logoLight:`classup/ngang-mau`,footer:`Áp dụng cho toàn bộ khách hàng
3
+ Áp dụng toàn bộ hệ thống ClassUp`},{label:`CLASSUP 1-1`,brandName:`ClassUp`,bg:`#FF8B06`,bg2:`#FFFFFF`,ink:`#111960`,accent:`#111960`,neutral:`#EEEFF7`,slate:`#5C6190`,gradient:`#FFCE1C,#FB732F`,onMain:`#FFFFFF`,font:`Nunito`,motif:`wave`,logoUrl:`classup/ngang-am-ban`,logoLight:`classup/ngang-mau`,footer:`Áp dụng cho toàn bộ khách hàng
4
+ Áp dụng toàn bộ hệ thống ClassUp`}],services:[{label:`IELTS Mentor`,name:`Workshop về phương pháp học`,duration:`1 buổi`,mode:`Online`,price:3e5},{label:`IELTS Mentor`,name:`Cố vấn học tập`,duration:`1 buổi`,mode:`Online/Offline`,price:4e5},{label:`IELTS Mentor`,name:`Gia sư học tập theo năng lực cá nhân hóa`,duration:`1 buổi`,mode:`Online`,price:2e5},{label:`IELTS Mentor`,name:`Thi lại (khi không đạt đủ điều kiện học tập)`,duration:`1 buổi`,mode:`Online/Offline`,price:1e5},{label:`IELTS Mentor`,name:`Chương trình duy trì năng lực sau khóa học`,duration:`1 buổi`,mode:`Online`,price:3e5},{label:`IELTS Mentor`,name:`Thi thử online`,duration:`1 buổi`,mode:`Online`,price:1e5},{label:`IELTS Mentor`,name:`Thi thử offline`,duration:`1 buổi`,mode:`Offline`,price:3e5}],giftSets:[{label:`IELTS Mentor`,value:175e4,items:`1 Đèn thông minh chữ G N69
5
+ 1 Loa bluetooth mini
6
+ 1 Áo mưa IELTS MENTOR`},{label:`IELTS Mentor`,value:197e4,items:`1 Đồng hồ thông minh AMOLED HK85
7
+ 1 Tai nghe không dây ZTC Air A501
8
+ 1 Gấu bông IELTS MENTOR`},{label:`IELTS Mentor`,value:253e4,items:`1 Đèn thông minh chữ G N69
9
+ 1 Tai nghe không dây ZTC Air A501
10
+ 1 Pin Dự Phòng USAMS 10000mAh`},{label:`IELTS Mentor`,value:326e4,items:`1 Đèn thông minh chữ G N69
11
+ 1 Đồng hồ thông minh AMOLED HK85
12
+ 1 Tai nghe không dây ZTC Air A501`},{label:`IELTS Mentor`,value:538e4,items:`1 Máy tính bảng IvyPad Smart 5
13
+ 1 Tai nghe không dây ZTC Air A501`},{label:`IELTS Mentor`,value:618e4,items:`1 Máy tính bảng IvyPad Smart 5
14
+ 1 Đèn thông minh chữ G N69
15
+ 1 Bình nước IELTS MENTOR`},{label:`IELTS Mentor`,value:677e4,items:`1 Máy tính bảng IvyPad Smart 5
16
+ 1 Đèn thông minh chữ G N69
17
+ 1 Tai nghe không dây ZTC Air A501`}],programRules:[{label:`IELTS Mentor`,program:`Định kỳ đặc biệt`,rules:`Chương trình không áp dụng đồng thời với các chương trình khuyến mại khác trong tháng.
18
+ Chương trình chỉ áp dụng với lộ trình IELTS (không áp dụng với lộ trình Mentor English Mastery).
19
+ Quà tặng khóa học đặc biệt áp dụng cho các khóa học đặc biệt theo danh sách có trong lộ trình khóa học khách hàng đăng ký.
20
+ Số lượng voucher giảm học phí được áp dụng tương ứng với số khóa học đặc biệt có trong lộ trình mà khách hàng đăng ký.
21
+ Voucher giảm học phí được trừ trực tiếp vào học phí khi đăng ký học. Áp dụng đồng thời với các mức giảm giá.`}],docTexts:{cashbackLabel:`Đăng ký trong 48h`,warrantyDuration:`Theo lộ trình khoá học đăng ký`,warrantyForm:`Theo dịch vụ bảo hành`,routeNote:`Bảng giá được tính dựa trên thông tin CTKM với các khoá học Offline (nếu có). Trường hợp khách hàng lựa chọn các khoá học theo hình thức Online hoặc các combo khác, TVV vui lòng tự tính giá theo CTKM hiện hành.`,citimeNote:`Với combo có các khóa Module A, Module B, BT5.5 khi xác định thời hạn trả góp không tính 3 khoá đó, chỉ xác định với các khoá còn lại đối chiếu với bảng trên. (Khoá BT5.5 có kèm khóa Ready đối chiếu thời gian với bảng trên)`}},i={Full:{promoLabel:`Hoàn thành toàn bộ trong tháng`,docLabel:`Đăng ký Full học phí`,docShort:`Đóng Full`,giftCondition:``},"Giai đoạn":{promoLabel:`Chia giai đoạn`,docLabel:`Đăng ký trả theo giai đoạn`,docShort:`Trả giai đoạn
22
+ (Đóng 40% học phí lần đầu)`,giftCondition:`Hoàn thành tối thiểu 40% học phí trong tháng`},Sacombank:{promoLabel:`Trả góp ngân hàng`,docLabel:`Đăng ký trả góp qua ngân hàng`,docShort:`Trả góp ngân hàng`,giftCondition:``},Citime:{promoLabel:`Trả góp Citime`,docLabel:`Đăng ký trả góp qua Citime`,docShort:`Trả góp Citime`,giftCondition:``}},a=[{bg:`#4B2A9B`,bg2:`#6A45C9`},{bg:`#4B2A9B`,bg2:`#FBFAFF`},{bg:`#FBDE44`,bg2:`#FFFBE8`},{bg:`#FFD21F`,bg2:`#FFE45C`},{bg:`#F0C030`,bg2:`#FFFCF2`}],o=e=>String(e??``).trim().toLowerCase(),s=(e,t)=>o(e)===o(t),c=e=>Math.round(Number(e)||0),l=`OK`;function u(e,t){return e.settings.programs.find(e=>s(e.name,t))}function d(e,t){return e.settings.paymentMethods.find(e=>s(e.name,t))}function f(e,t){return d(e,t)?.terms??[0]}function p(e,t){let n=f(e,t);return n.length===1&&Number(n[0])===0}function m(e,t){return e.settings.courseCodes.slice().sort((e,t)=>e.order-t.order).filter(n=>e.courses.some(e=>s(e.label,t)&&s(e.code,n.code))).map(n=>({...n,name:e.courses.find(e=>s(e.label,t)&&s(e.code,n.code))?.name??n.code,modes:e.courses.filter(e=>s(e.label,t)&&s(e.code,n.code)).map(e=>e.mode)}))}function h(e,t){return e.settings.courseCodes.slice().sort((e,t)=>e.order-t.order).filter(e=>t.some(t=>s(t.code,e.code))).map(e=>e.short).join(`_`)}function g(e,t){return e.settings.lktGroups?.find(e=>s(e.name,t))}function _(e,t,n){return e.lkt.filter(e=>s(e.label,t)&&s(e.group,n))}function v(e,t){return(e.settings.lktGroups??[]).filter(n=>e.lkt.some(e=>s(e.label,t)&&s(e.group,n.name)))}function y(e){let t=e.settings;Array.isArray(t.lktGroups)&&t.lktGroups.length||(t.lktGroups=[{name:`LKT Toàn hệ thống`,baseProgram:`Định kỳ đặc biệt`}]),e.lkt.forEach(e=>{e.group||=t.lktGroups[0].name}),e.courses.forEach(e=>{let t=n[`${e.label}|${e.code}|${e.mode}`];e.sessions??=t?.sessions??``,e.classSize??=t?.classSize??``});for(let[e,n]of Object.entries(r))t[e]??(t[e]=JSON.parse(JSON.stringify(n)));for(let[e,n]of Object.entries(r.docTexts))t.docTexts[e]??(t.docTexts[e]=n);for(let e of t.brands){let t=r.brands.find(t=>t.label===e.label),n=a.some(t=>String(t.bg).toLowerCase()===String(e.bg).toLowerCase()&&String(t.bg2).toLowerCase()===String(e.bg2).toLowerCase());if(t&&n){let{label:n,logoUrl:r,footer:i,...a}=t;Object.assign(e,a)}for(let n of[`gradient`,`onMain`,`font`,`motif`,`neutral`,`slate`])e[n]??(e[n]=t?.[n]??``);e.logoLight??(e.logoLight=t?.logoLight??``,e.logoUrl||=t?.logoUrl??``)}return t.paymentMethods.forEach(e=>{let t=i[e.name]??{promoLabel:e.name,docLabel:e.name,docShort:e.name,giftCondition:``};for(let n of[`promoLabel`,`docLabel`,`docShort`,`giftCondition`])e[n]??(e[n]=t[n])}),e}function b(e,{label:t,program:n,method:r,keyTerm:i,count:a,lktGroup:o,lktFormat:c}){switch(u(e,n)?.type){case`DINH_KY`:{let n=e.periodic.filter(e=>s(e.label,t)&&e.from<=a&&e.to>=a);return{pct:n.reduce((e,t)=>e+t.pct,0),cashback:n.reduce((e,t)=>e+t.cashback,0),found:n.length>0}}case`DAC_BIET`:{let n=e.special.find(e=>s(e.label,t)&&s(e.method,r)&&Number(e.term)===i);return{pct:n?.pct??0,cashback:0,found:!!n}}case`LKT`:{let n=g(e,o),l=n&&c?e.lkt.find(e=>s(e.label,t)&&s(e.group,n.name)&&s(e.format,c)):null,d=u(e,n?.baseProgram),f=d&&d.type!==`LKT`?b(e,{label:t,program:d.name,method:r,keyTerm:i,count:a}):{pct:0,found:!1};return{pct:f.found&&l?f.pct-l.cut:0,cashback:0,found:f.found&&!!l,lkt:{group:n?.name??``,baseProgram:d?.name??``,baseType:d?.type??``,basePct:f.pct,baseFound:f.found,cut:l?l.cut:null}}}case`MO_RONG`:{let a=e.extended.find(e=>s(e.label,t)&&s(e.program,n)&&s(e.method,r)&&Number(e.term)===i);return{pct:a?.pct??0,cashback:0,found:!!a}}default:return{pct:0,cashback:0,found:!1}}}function x(e,{label:t,program:n,method:r,count:i}){let a=d(e,r)?.giftGroup??r,o=e.gifts.filter(e=>s(e.label,t)&&s(e.program,n)&&s(e.method,a));if(!o.length)return null;let c=Math.max(...e.gifts.filter(e=>s(e.label,t)&&s(e.program,n)).map(e=>e.milestone)),l=o.find(e=>Number(e.milestone)===Math.min(i,c));return l?{content:l.content,value:l.value}:null}function S(e,t){let{label:n,program:r,method:i,warranty:a,lktGroup:o,lktFormat:l}=t,f=Number(t.term)||0,m=(t.items??[]).filter(e=>e&&e.code),_=u(e,r),v=d(e,i),y=p(e,i),S=y?0:f,w=_?.type===`LKT`?g(e,o)?.baseProgram:r,T=u(e,w)?.type===`MO_RONG`,E=m.map(t=>{let r=e.courses.find(e=>s(e.label,n)&&s(e.code,t.code)&&s(e.mode,t.mode)),i=r?.voucher??0;if(T){let r=e.programVouchers.find(e=>s(e.label,n)&&s(e.program,w)&&s(e.code,t.code)&&s(e.mode,t.mode));r&&(i=r.voucher)}let a=e.settings.courseCodes.find(e=>s(e.code,t.code));return{code:t.code,mode:t.mode,name:r?.name??t.code,price:r?.price??0,voucher:i,found:!!r,warranty:a?.warranty!==!1}}),D=E.length,O=E.reduce((e,t)=>e+t.price,0),k=E.reduce((e,t)=>e+t.voucher,0),A=E.filter(e=>e.warranty).reduce((e,t)=>e+t.price,0),j=h(e,m),M=j?e.citimeRoutes.find(e=>s(e.label,n)&&s(e.code,j)):null,ee=M?M.status:j?`KHÔNG CÓ`:``,te=M?.maxTerm??null,N=b(e,{label:n,program:r,method:i,keyTerm:S,count:D,lktGroup:o,lktFormat:l}),ne=O*N.pct,P=O-ne-N.cashback-k,F=e.warranty.find(e=>s(e.name,a))?.rate??0,re=A*F,I={lines:E,count:D,gross:c(O),voucherTotal:c(k),pct:N.pct,cashback:c(N.cashback),discountAmt:c(ne),afterPromo:c(P),warrantyRate:F,warrantyBase:c(A),warrantyFee:c(re),final:c(P+re),gift:x(e,{label:n,program:r,method:i,count:D}),lkt:N.lkt??null,combo:{code:j,routeName:M?.name??``,group:M?.group??``,citimeStatus:ee,citimeMax:te}};return I.status=C(e,{input:t,term:f,prog:_,pm:v,fixedTerm:y,count:D,lines:E,combo:j,citimeStatus:ee,citimeMax:te,d:N,result:I}),I.ok=I.status===`OK`,I}function C(e,t){let{input:n,term:r,prog:i,pm:a,fixedTerm:o,count:c,lines:l,combo:u,citimeStatus:d,citimeMax:f,d:p,result:m}=t,h=String(a?.name??n.method??``).toUpperCase(),g=e.settings.labels.find(e=>s(e.name,n.label));if(!n.label)return`CHƯA CHỌN NHÃN`;if(!n.program)return`CHƯA CHỌN CHƯƠNG TRÌNH`;if(!n.method)return`CHƯA CHỌN HÌNH THỨC THANH TOÁN`;if(c===0)return`CHƯA CHỌN KHÓA HỌC`;let _=l.find(e=>!e.found);if(_)return`KHÔNG CÓ KHÓA ${_.code} - ${_.mode||`?`}`;if(i?.type===`LKT`){if(!n.lktGroup)return`CHƯA CHỌN NHÓM LIÊN KẾT TRƯỜNG`;if(!n.lktFormat)return`CHƯA CHỌN FORMAT LIÊN KẾT TRƯỜNG`;if(p.lkt?.cut==null)return`KHÔNG TÌM THẤY CHÍNH SÁCH LKT`}if(i?.type===`MO_RONG`&&!p.found)return`KHÔNG ÁP DỤNG CHƯƠNG TRÌNH`;if(i?.type===`LKT`&&p.lkt?.baseType===`MO_RONG`&&!p.lkt.baseFound)return`KHÔNG ÁP DỤNG HTTT CHO NHÓM LKT`;if(c===1&&a&&!a.allowSingle)return`KHÓA LẺ CHỈ ÁP DỤNG ĐÓNG FULL`;if(o&&r!==0)return`${h} PHẢI CÓ KỲ HẠN = 0`;if(g?.blockedMethods?.some(e=>s(e,n.method)))return`${String(n.label).toUpperCase()} KHÔNG ÁP DỤNG HTTT NÀY`;if(c>=2&&!u)return`KHÔNG TÌM THẤY LỘ TRÌNH`;if(a&&!a.citime&&!o&&!a.terms.map(Number).includes(r))return`KỲ HẠN ${h} KHÔNG HỢP LỆ`;if(a?.citime){if(!s(d,`Áp dụng`))return`KHÔNG ÁP DỤNG ${h}`;if(!a.terms.map(Number).includes(r))return`KỲ HẠN ${h} KHÔNG HỢP LỆ`;if(f!=null&&r>f)return`VƯỢT KỲ HẠN ${h} TỐI ĐA`}return p.found?m.afterPromo<0?`LỖI GIÁ`:`OK`:`KHÔNG ÁP DỤNG CHƯƠNG TRÌNH`}function w(e,{label:t,program:n,method:r,term:i,warranty:a,lktGroup:o,lktFormat:c,output:l}){return e.routes.filter(e=>s(e.label,t)&&(!l||s(e.output,l))).map(s=>({route:s,quote:S(e,{label:t,program:n,method:r,term:i,warranty:a,lktGroup:o,lktFormat:c,items:s.items})}))}function T(e){let t=[],n=(e,n,r)=>{let i=new Map;e.forEach((e,a)=>{let o=n(e);i.has(o)?t.push({table:r,row:a,message:`Trùng khóa với dòng ${i.get(o)+1}: ${o}`}):i.set(o,a)})};n(e.courses,e=>o(`${e.label}|${e.code}|${e.mode}`),`courses`),n(e.programVouchers,e=>o(`${e.label}|${e.program}|${e.code}|${e.mode}`),`programVouchers`),n(e.special,e=>o(`${e.label}|${e.method}|${e.term}`),`special`),n(e.extended,e=>o(`${e.label}|${e.program}|${e.method}|${e.term}`),`extended`),n(e.lkt,e=>o(`${e.label}|${e.group}|${e.format}`),`lkt`),e.lkt.forEach((n,r)=>{g(e,n.group)||t.push({table:`lkt`,row:r,message:`Nhóm "${n.group}" chưa khai báo ở mục Nhóm LKT`})}),n(e.citimeRoutes,e=>o(`${e.label}|${e.code}`),`citimeRoutes`),n(e.gifts,e=>o(`${e.label}|${e.program}|${e.milestone}|${e.method}`),`gifts`),e.courses.forEach((e,n)=>{e.price>0||t.push({table:`courses`,row:n,message:`Giá gốc phải > 0`}),e.voucher<0&&t.push({table:`courses`,row:n,message:`Voucher không được âm`})});for(let n of[`periodic`,`special`,`extended`])e[n].forEach((e,r)=>{(e.pct<0||e.pct>=1)&&t.push({table:n,row:r,message:`% giảm phải trong khoảng 0–100%`})});return t}var E={calc:`<rect x="4" y="2" width="16" height="20" rx="2"/><path d="M8 6h8M16 14v4M8 10h.01M12 10h.01M16 10h.01M8 14h.01M12 14h.01M8 18h.01M12 18h.01"/>`,table:`<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M3 15h18M9 3v18"/>`,db:`<ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5v14a9 3 0 0 0 18 0V5"/><path d="M3 12a9 3 0 0 0 18 0"/>`,tag:`<path d="M12.6 2.6A2 2 0 0 0 11.2 2H4a2 2 0 0 0-2 2v7.2a2 2 0 0 0 .6 1.4l8.7 8.7a2.4 2.4 0 0 0 3.4 0l6.6-6.6a2.4 2.4 0 0 0 0-3.4z"/><circle cx="7.5" cy="7.5" r="1"/>`,percent:`<path d="M19 5 5 19"/><circle cx="6.5" cy="6.5" r="2.5"/><circle cx="17.5" cy="17.5" r="2.5"/>`,shield:`<path d="M20 13c0 5-3.5 7.5-7.7 9a1 1 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1.2 1.2 0 0 1 1.6 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z"/>`,gift:`<rect x="3" y="8" width="18" height="4" rx="1"/><path d="M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5C11 3 12 8 12 8s1-5 4.5-5a2.5 2.5 0 0 1 0 5"/>`,route:`<circle cx="6" cy="19" r="3"/><path d="M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"/><circle cx="18" cy="5" r="3"/>`,card:`<rect width="20" height="14" x="2" y="5" rx="2"/><path d="M2 10h20"/>`,school:`<path d="M22 10v6M2 10l10-5 10 5-10 5z"/><path d="M6 12v5c3 3 9 3 12 0v-5"/>`,settings:`<circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z"/>`,plus:`<path d="M5 12h14M12 5v14"/>`,trash:`<path d="M3 6h18M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/>`,copy:`<rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2"/>`,check:`<path d="M20 6 9 17l-5-5"/>`,checkCircle:`<circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/>`,xCircle:`<circle cx="12" cy="12" r="10"/><path d="m15 9-6 6M9 9l6 6"/>`,alert:`<path d="m21.7 18-8-14a2 2 0 0 0-3.5 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.7-3"/><path d="M12 9v4M12 17h.01"/>`,search:`<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>`,download:`<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3"/>`,upload:`<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12"/>`,refresh:`<path d="M3 12a9 9 0 0 1 15.7-6L21 8M21 3v5h-5M21 12a9 9 0 0 1-15.7 6L3 16M8 16H3v5"/>`,eye:`<path d="M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12"/><circle cx="12" cy="12" r="3"/>`,filter:`<path d="M22 3H2l8 9.5V19l4 2v-8.5z"/>`,wallet:`<path d="M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"/>`,calendar:`<rect width="18" height="18" x="3" y="4" rx="2"/><path d="M16 2v4M8 2v4M3 10h18"/>`,layers:`<path d="m12 2 10 5-10 5L2 7z"/><path d="m2 17 10 5 10-5M2 12l10 5 10-5"/>`,book:`<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2zM22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"/>`,save:`<path d="M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"/><path d="M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7M7 3v4a1 1 0 0 0 1 1h7"/>`,sparkle:`<path d="M12 3l1.9 5.8L20 10l-6.1 1.2L12 17l-1.9-5.8L4 10l6.1-1.2z"/>`,user:`<circle cx="12" cy="8" r="4"/><path d="M4 21a8 8 0 0 1 16 0"/>`,sheet:`<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z"/><path d="M14 2v5h5M8 13h8M8 17h8M8 9h2"/>`},D=(e,t=18)=>`<svg width="${t}" height="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${E[e]??``}</svg>`,O={"classup/ngang-am-ban":{name:`ClassUp · ngang · âm bản (chữ trắng, biểu tượng cam)`,file:`classup/ngang-am-ban.png`},"classup/ngang-mau":{name:`ClassUp · ngang · màu (chữ xanh, biểu tượng cam)`,file:`classup/ngang-mau.png`},"classup/ngang-trang":{name:`ClassUp · ngang · trắng`,file:`classup/ngang-trang.png`},"classup/doc-am-ban":{name:`ClassUp · dọc · âm bản`,file:`classup/doc-am-ban.png`},"classup/doc-mau":{name:`ClassUp · dọc · màu`,file:`classup/doc-mau.png`},"classup/doc-trang":{name:`ClassUp · dọc · trắng`,file:`classup/doc-trang.png`},"classup/ecoach-am-ban":{name:`ClassUp Powered by ECoach · âm bản`,file:`classup/ecoach-am-ban.webp`},"classup/ecoach-mau":{name:`ClassUp Powered by ECoach · màu`,file:`classup/ecoach-mau.webp`},"classup/ecoach-trang":{name:`ClassUp Powered by ECoach · trắng`,file:`classup/ecoach-trang.webp`},"classup/bieu-tuong-cam":{name:`ClassUp · biểu tượng cam`,file:`classup/bieu-tuong-cam.png`},"classup/bieu-tuong-xanh":{name:`ClassUp · biểu tượng xanh`,file:`classup/bieu-tuong-xanh.png`},"classup/bieu-tuong-trang":{name:`ClassUp · biểu tượng trắng`,file:`classup/bieu-tuong-trang.png`},"classup/bieu-tuong-den":{name:`ClassUp · biểu tượng đen`,file:`classup/bieu-tuong-den.png`},"classup/bieu-tuong-xam":{name:`ClassUp · biểu tượng xám`,file:`classup/bieu-tuong-xam.png`}};function k(e){let t=String(e??``).trim(),n=O[t];return n?new URL(Object.assign({})[`../assets/brand/${n.file}`],{}.url).href:t}var A=e=>[...new Set(e.filter(e=>e!==``&&e!=null))],j=[`Online`,`Offline`];function M(e){let t=e.settings,n=t.labels.map(e=>e.name),r=t.programs.map(e=>e.name),i=t.programs.filter(e=>e.type===`MO_RONG`).map(e=>e.name),a=t.paymentMethods.map(e=>e.name),o=A(t.paymentMethods.map(e=>e.giftGroup)),s=t.courseCodes.map(e=>e.code),c=(t.lktGroups??[]).map(e=>e.name),l=t.programs.filter(e=>e.type!==`LKT`).map(e=>e.name);return[{id:`courses`,group:`Danh mục`,icon:`book`,sheet:`01_DM_KHOA_HOC`,title:`Khóa học & giá gốc`,path:[`courses`],desc:`Giá gốc và voucher đặc biệt của từng khóa theo nhãn + hình thức học. Mỗi bộ Nhãn + Mã khóa + Hình thức chỉ 1 dòng.`,byLabel:!0,columns:[{key:`label`,label:`Nhãn`,type:`select`,options:n},{key:`code`,label:`Mã khóa`,type:`select`,options:s},{key:`name`,label:`Tên khóa`,type:`text`,wide:!0},{key:`mode`,label:`Hình thức`,type:`select`,options:j},{key:`price`,label:`Giá gốc`,type:`money`},{key:`voucher`,label:`Voucher đặc biệt`,type:`money`},{key:`sessions`,label:`Thời lượng (PDF)`,type:`text`},{key:`classSize`,label:`Sĩ số (PDF)`,type:`text`}],blank:e=>({label:e,code:s[0],name:``,mode:`Online`,price:0,voucher:0,sessions:``,classSize:``})},{id:`warranty`,group:`Danh mục`,icon:`shield`,sheet:`02_DM_BAO_HANH`,title:`Gói bảo hành`,path:[`warranty`],desc:`Phí bảo hành = Giá tính bảo hành × Tỷ lệ. Giá tính bảo hành không gồm các khóa bỏ tick "Tính BH" ở mục Mã khóa.`,columns:[{key:`name`,label:`Gói bảo hành`,type:`text`},{key:`rate`,label:`Tỷ lệ (%)`,type:`pct`}],blank:()=>({name:``,rate:0})},{id:`routes`,group:`Danh mục`,icon:`route`,sheet:`08_LO_TRINH`,title:`Lộ trình gợi ý`,path:[`routes`],desc:`Dùng cho Bảng giá lộ trình và nút "Chọn theo lộ trình". Cột Khóa học ghi dạng: IE6.5(M1)/Offline + BT5.5/Online`,byLabel:!0,columns:[{key:`label`,label:`Nhãn`,type:`select`,options:n},{key:`output`,label:`Đầu ra`,type:`text`},{key:`code`,label:`Mã lộ trình`,type:`text`},{key:`name`,label:`Tên lộ trình`,type:`text`,wide:!0},{key:`items`,label:`Khóa học / Hình thức`,type:`items`,wide:!0}],blank:e=>({label:e,output:``,code:``,name:``,items:[]})},{id:`periodic`,group:`Chương trình KM`,icon:`percent`,sheet:`03_CTKM_DINH_KY`,title:`CTKM định kỳ`,path:[`periodic`],desc:`Chương trình "Định kỳ": % giảm và hoàn tiền theo số khóa đăng ký (từ – đến).`,byLabel:!0,columns:[{key:`label`,label:`Nhãn`,type:`select`,options:n},{key:`from`,label:`Số khóa từ`,type:`int`},{key:`to`,label:`Số khóa đến`,type:`int`},{key:`pct`,label:`% giảm`,type:`pct`},{key:`cashback`,label:`Hoàn tiền`,type:`money`}],blank:e=>({label:e,from:1,to:1,pct:0,cashback:0})},{id:`special`,group:`Chương trình KM`,icon:`card`,sheet:`04_CTKM_DAC_BIET`,title:`CTKM đặc biệt`,path:[`special`],desc:`Chương trình "Định kỳ đặc biệt" (và nền cho Liên kết trường): % giảm theo hình thức thanh toán + kỳ hạn. Full/Giai đoạn để kỳ hạn = 0.`,byLabel:!0,columns:[{key:`label`,label:`Nhãn`,type:`select`,options:n},{key:`method`,label:`Hình thức TT`,type:`select`,options:a},{key:`term`,label:`Kỳ hạn`,type:`int`},{key:`pct`,label:`% giảm`,type:`pct`},{key:`applyType`,label:`Loại áp dụng`,type:`select`,options:[`TOAN_BO`,`COMBO`,`LO_TRINH_CU_THE`]},{key:`minCourses`,label:`Số khóa tối thiểu`,type:`int`},{key:`note`,label:`Ghi chú`,type:`text`}],blank:e=>({label:e,method:a[0],term:0,pct:0,applyType:`COMBO`,minCourses:2,note:``})},{id:`lkt`,group:`Chương trình KM`,icon:`school`,sheet:`04B_CTKM_LKT`,title:`Format liên kết trường`,path:[`lkt`],desc:`Chương trình "Liên kết trường": % giảm = % của chương trình nền (theo Nhóm LKT) − Mức cắt. Nhãn không có dòng cho nhóm → sale thấy "KHÔNG TÌM THẤY CHÍNH SÁCH LKT".`,byLabel:!0,columns:[{key:`label`,label:`Nhãn`,type:`select`,options:n},{key:`group`,label:`Nhóm LKT`,type:`select`,options:c},{key:`format`,label:`Format LKT`,type:`text`},{key:`cut`,label:`Mức cắt (%)`,type:`pct`}],blank:e=>({label:e,group:c[0]??``,format:``,cut:0})},{id:`extended`,group:`Chương trình KM`,icon:`sparkle`,sheet:`04C_CTKM_MO_RONG`,title:`CTKM mở rộng`,path:[`extended`],desc:`Các chương trình loại "Mở rộng" (Thấp điểm, Văn phòng mới, Vũ Đài Trí Tuệ...). Không có dòng khớp → sale thấy "KHÔNG ÁP DỤNG CHƯƠNG TRÌNH".`,byLabel:!0,columns:[{key:`label`,label:`Nhãn`,type:`select`,options:n},{key:`program`,label:`Chương trình`,type:`select`,options:i},{key:`method`,label:`Hình thức TT`,type:`select`,options:a},{key:`term`,label:`Kỳ hạn`,type:`int`},{key:`pct`,label:`% giảm`,type:`pct`},{key:`applyType`,label:`Loại áp dụng`,type:`select`,options:[`TOAN_BO`,`COMBO`,`LO_TRINH_CU_THE`]},{key:`minCourses`,label:`Số khóa tối thiểu`,type:`int`},{key:`note`,label:`Ghi chú`,type:`text`}],blank:e=>({label:e,program:i[0]??``,method:a[0],term:0,pct:0,applyType:`COMBO`,minCourses:2,note:``})},{id:`programVouchers`,group:`Chương trình KM`,icon:`tag`,sheet:`01B_VOUCHER_CTKM`,title:`Voucher theo CTKM`,path:[`programVouchers`],desc:`Voucher riêng của chương trình mở rộng, thay cho voucher đặc biệt ở danh mục khóa học. Không có dòng → dùng voucher danh mục.`,byLabel:!0,columns:[{key:`label`,label:`Nhãn`,type:`select`,options:n},{key:`program`,label:`Chương trình`,type:`select`,options:i},{key:`code`,label:`Mã khóa`,type:`select`,options:s},{key:`mode`,label:`Hình thức`,type:`select`,options:j},{key:`voucher`,label:`Voucher`,type:`money`}],blank:e=>({label:e,program:i[0]??``,code:s[0],mode:`Online`,voucher:0})},{id:`gifts`,group:`Chương trình KM`,icon:`gift`,sheet:`07_QUA_TANG`,title:`Quà tặng`,path:[`gifts`],desc:`Quà theo số khóa (mốc). Đăng ký nhiều khóa hơn mốc cao nhất → lấy quà của mốc cao nhất. Cột "Nhóm HTTT" khớp với "Nhóm quà" của hình thức thanh toán.`,byLabel:!0,columns:[{key:`label`,label:`Nhãn`,type:`select`,options:n},{key:`program`,label:`Chương trình`,type:`select`,options:r},{key:`milestone`,label:`Mốc khóa`,type:`int`},{key:`method`,label:`Nhóm HTTT`,type:`select`,options:o},{key:`content`,label:`Nội dung quà`,type:`text`,wide:!0},{key:`value`,label:`Giá trị`,type:`money`}],blank:e=>({label:e,program:r[0],milestone:1,method:o[0],content:``,value:0})},{id:`citimeRoutes`,group:`Chương trình KM`,icon:`wallet`,sheet:`05_CITIME_LO_TRINH`,title:`Lộ trình Citime`,path:[`citimeRoutes`],desc:`Combo nào được trả góp Citime và kỳ hạn tối đa. Mã lộ trình = mã rút gọn các khóa nối bằng "_" theo thứ tự chuẩn (VD BS_PRE_IE45).`,byLabel:!0,columns:[{key:`label`,label:`Nhãn`,type:`select`,options:n},{key:`group`,label:`Nhóm lộ trình`,type:`text`},{key:`count`,label:`Số khóa`,type:`int`},{key:`code`,label:`Mã lộ trình`,type:`text`},{key:`name`,label:`Tên lộ trình`,type:`text`,wide:!0},{key:`status`,label:`Trạng thái`,type:`select`,options:[`Áp dụng`,`Không áp dụng`]},{key:`maxTerm`,label:`Kỳ hạn tối đa`,type:`int`}],blank:e=>({label:e,group:``,count:2,code:``,name:``,status:`Áp dụng`,maxTerm:0})},{id:`programs`,group:`Cấu hình`,icon:`layers`,title:`Danh sách chương trình`,path:[`settings`,`programs`],desc:`Loại quyết định cách tính: DINH_KY (theo số khóa), DAC_BIET (theo HTTT + kỳ hạn), LKT (đặc biệt − mức cắt), MO_RONG (bảng CTKM mở rộng + voucher riêng).`,columns:[{key:`name`,label:`Tên chương trình`,type:`text`,wide:!0},{key:`type`,label:`Loại`,type:`select`,options:[`DINH_KY`,`DAC_BIET`,`LKT`,`MO_RONG`]}],blank:()=>({name:``,type:`MO_RONG`})},{id:`lktGroups`,group:`Cấu hình`,icon:`school`,title:`Nhóm LKT`,path:[`settings`,`lktGroups`],desc:`Mỗi nhóm LKT lấy % giảm và voucher từ 1 chương trình nền, VD "LKT Thấp điểm" → Thấp điểm, "LKT Toàn hệ thống" → Định kỳ đặc biệt.`,columns:[{key:`name`,label:`Nhóm LKT`,type:`text`,wide:!0},{key:`baseProgram`,label:`Chương trình nền`,type:`select`,options:l}],blank:()=>({name:``,baseProgram:l[0]??``})},{id:`paymentMethods`,group:`Cấu hình`,icon:`card`,title:`Hình thức thanh toán`,path:[`settings`,`paymentMethods`],desc:`Kỳ hạn hợp lệ ghi cách nhau dấu phẩy (0 = không kỳ hạn). "Citime" = kiểm tra lộ trình Citime + kỳ hạn tối đa. "Cho khóa lẻ" = được đăng ký 1 khóa.`,columns:[{key:`name`,label:`Tên`,type:`text`},{key:`terms`,label:`Kỳ hạn hợp lệ`,type:`numlist`},{key:`giftGroup`,label:`Nhóm quà`,type:`text`},{key:`citime`,label:`Citime`,type:`bool`},{key:`allowSingle`,label:`Cho khóa lẻ`,type:`bool`},{key:`promoLabel`,label:`Tên trên bảng ưu đãi (PDF)`,type:`text`},{key:`docLabel`,label:`Cột bảng quà (PDF)`,type:`text`},{key:`docShort`,label:`Cột bảng lộ trình (PDF)`,type:`multiline`},{key:`giftCondition`,label:`Điều kiện nhận quà (PDF)`,type:`text`,wide:!0}],blank:()=>({name:``,terms:[0],giftGroup:``,citime:!1,allowSingle:!1,promoLabel:``,docLabel:``,docShort:``,giftCondition:``})},{id:`labels`,group:`Cấu hình`,icon:`tag`,title:`Nhãn & giới hạn`,path:[`settings`,`labels`],desc:`HTTT bị chặn ghi cách nhau dấu phẩy, VD CLASSUP 1-1 không áp dụng Sacombank, Citime.`,columns:[{key:`name`,label:`Nhãn`,type:`text`},{key:`blockedMethods`,label:`HTTT không áp dụng`,type:`strlist`,wide:!0}],blank:()=>({name:``,blockedMethods:[]})},{id:`courseCodes`,group:`Cấu hình`,icon:`sheet`,title:`Mã khóa & bảo hành`,path:[`settings`,`courseCodes`],desc:`Thứ tự + mã rút gọn dùng để ghép mã lộ trình Citime. Bỏ tick "Tính BH" với khóa không tính vào giá bảo hành (Module A, Module B, BT5.5).`,columns:[{key:`order`,label:`Thứ tự`,type:`int`},{key:`code`,label:`Mã khóa`,type:`text`},{key:`short`,label:`Mã rút gọn`,type:`text`},{key:`warranty`,label:`Tính BH`,type:`bool`}],blank:()=>({order:99,code:``,short:``,warranty:!0})},{id:`brands`,group:`Ấn phẩm PDF`,icon:`sparkle`,title:`Nhận diện nhãn`,path:[`settings`,`brands`],desc:`Ấn phẩm PDF theo phong cách catalogue của nhãn: màu chủ đạo (sọc, thẻ, cột giá), màu nền giấy, màu tối (bìa, tiêu đề bảng), màu phụ (nhãn mục, gạch dưới tiêu đề, lưu ý), xám nhạt (thẻ, dòng xen kẽ), xám đậm (chữ phụ), logo (link ảnh, để trống thì in tên nhãn) và dòng chân trang.`,columns:[{key:`label`,label:`Nhãn`,type:`select`,options:n},{key:`brandName`,label:`Tên hiển thị`,type:`text`},{key:`bg`,label:`Màu chủ đạo`,type:`color`},{key:`bg2`,label:`Nền giấy`,type:`color`},{key:`ink`,label:`Màu tối`,type:`color`},{key:`accent`,label:`Màu phụ (xanh)`,type:`color`},{key:`neutral`,label:`Xám nhạt`,type:`color`},{key:`slate`,label:`Xám đậm (chữ phụ)`,type:`color`},{key:`gradient`,label:`Gradient (màu đầu,màu cuối)`,type:`text`},{key:`onMain`,label:`Chữ trên màu chủ đạo`,type:`color`},{key:`font`,label:`Font (Google Font)`,type:`text`},{key:`motif`,label:`Họa tiết`,type:`select`,options:[``,`wave`]},{key:`logoUrl`,label:`Logo trên nền tối (bìa)`,type:`combo`,options:Object.keys(O),wide:!0},{key:`logoLight`,label:`Logo trên nền sáng (chân trang)`,type:`combo`,options:Object.keys(O),wide:!0},{key:`footer`,label:`Chân trang`,type:`multiline`,wide:!0}],blank:e=>({label:e,brandName:String(e).toUpperCase(),bg:`#FFD602`,bg2:`#FFFFFF`,ink:`#000000`,accent:`#01518E`,neutral:`#E1DEE5`,slate:`#44525E`,logoUrl:``,logoLight:``,footer:``})},{id:`programRules`,group:`Ấn phẩm PDF`,icon:`sheet`,title:`Quy định chương trình`,path:[`settings`,`programRules`],desc:`Khối "Quy định tham gia chương trình" in dưới bảng ưu đãi. Mỗi dòng là một quy định. Cập nhật theo từng tháng.`,byLabel:!0,columns:[{key:`label`,label:`Nhãn`,type:`select`,options:n},{key:`program`,label:`Chương trình`,type:`select`,options:r},{key:`rules`,label:`Quy định (mỗi dòng 1 ý)`,type:`multiline`,wide:!0}],blank:e=>({label:e,program:r[0],rules:``})},{id:`giftSets`,group:`Ấn phẩm PDF`,icon:`gift`,title:`Bộ quà tặng`,path:[`settings`,`giftSets`],desc:`Bảng "Bộ quà tặng giá trị dành cho học viên". Giá trị nên khớp với cột Giá trị ở bảng Quà tặng. Mỗi món một dòng.`,byLabel:!0,columns:[{key:`label`,label:`Nhãn`,type:`select`,options:n},{key:`value`,label:`Giá trị bộ quà`,type:`money`},{key:`items`,label:`Quà tặng bao gồm`,type:`multiline`,wide:!0}],blank:e=>({label:e,value:0,items:``})},{id:`services`,group:`Ấn phẩm PDF`,icon:`school`,title:`Dịch vụ học tập`,path:[`settings`,`services`],desc:`Bảng "Dịch vụ học tập" ở trang giá khóa học.`,byLabel:!0,columns:[{key:`label`,label:`Nhãn`,type:`select`,options:n},{key:`name`,label:`Sản phẩm`,type:`text`,wide:!0},{key:`duration`,label:`Thời lượng`,type:`text`},{key:`mode`,label:`Hình thức`,type:`text`},{key:`price`,label:`Giá gốc`,type:`money`}],blank:e=>({label:e,name:``,duration:`1 buổi`,mode:`Online`,price:0})}]}function ee(e,t){switch(e.type){case`money`:return t===``||t==null?``:Number(t).toLocaleString(`vi-VN`);case`pct`:return t===``||t==null?``:String(+(Number(t)*100).toFixed(4));case`numlist`:case`strlist`:return(t??[]).join(`, `);case`items`:return(t??[]).map(e=>`${e.code}/${e.mode}`).join(` + `);default:return t??``}}function te(e,t){let n=String(t??``).trim();switch(e.type){case`money`:{let e=Number(n.replace(/[^\d-]/g,``));return Number.isFinite(e)?e:0}case`pct`:{let e=Number(n.replace(`,`,`.`).replace(`%`,``));return Number.isFinite(e)?+(e/100).toFixed(6):0}case`int`:{let e=Number(n.replace(`,`,`.`));return Number.isFinite(e)?e:0}case`numlist`:return n.split(/[,;\s]+/).filter(Boolean).map(Number).filter(Number.isFinite);case`strlist`:return n.split(`,`).map(e=>e.trim()).filter(Boolean);case`items`:return n.split(`+`).map(e=>e.trim()).filter(Boolean).map(e=>{let t=e.lastIndexOf(`/`);return t>0?{code:e.slice(0,t).trim(),mode:e.slice(t+1).trim()}:{code:e,mode:`Online`}});default:return n}}var N=`https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js`;function ne(){return window.XLSX?Promise.resolve(window.XLSX):new Promise((e,t)=>{let n=document.createElement(`script`);n.src=N,n.onload=()=>e(window.XLSX),n.onerror=()=>t(Error(`Không tải được thư viện đọc Excel`)),document.head.appendChild(n)})}var P=(e,t=0)=>e===``||e==null||Number.isNaN(Number(e))?t:Number(e),F=e=>e==null?``:String(e).trim();async function re(e,t){let n=await ne(),r=n.read(await e.arrayBuffer(),{type:`array`}),i=(e,t)=>{let i=r.Sheets[e];if(!i)throw Error(`File thiếu sheet "${e}"`);return n.utils.sheet_to_json(i,{header:1,defval:``}).slice(1).map(e=>Array.from({length:t},(t,n)=>e[n]??``)).filter(e=>F(e[0])!==``)},a=JSON.parse(JSON.stringify(t)),o=new Map((t.courses??[]).map(e=>[`${e.label}|${e.code}|${e.mode}`.toLowerCase(),e]));a.courses=i(`01_DM_KHOA_HOC`,6).map(e=>{let t=o.get(`${F(e[0])}|${F(e[1])}|${F(e[3])}`.toLowerCase());return{label:F(e[0]),code:F(e[1]),name:F(e[2]),mode:F(e[3]),price:P(e[4]),voucher:P(e[5]),sessions:t?.sessions??``,classSize:t?.classSize??``}}),a.programVouchers=i(`01B_VOUCHER_CTKM`,5).map(e=>({label:F(e[0]),program:F(e[1]),code:F(e[2]),mode:F(e[3]),voucher:P(e[4])})),a.warranty=i(`02_DM_BAO_HANH`,2).map(e=>({name:F(e[0]),rate:P(e[1])})),a.periodic=i(`03_CTKM_DINH_KY`,5).map(e=>({label:F(e[0]),from:P(e[1]),to:P(e[2]),pct:P(e[3]),cashback:P(e[4])})),a.special=i(`04_CTKM_DAC_BIET`,7).map(e=>({label:F(e[0]),method:F(e[1]),term:P(e[2]),pct:P(e[3]),applyType:F(e[4]),minCourses:P(e[5],1),note:F(e[6])})),a.lkt=(n.utils.sheet_to_json(r.Sheets[`04B_CTKM_LKT`]??{},{header:1})[0]??[]).some(e=>/nhóm/i.test(F(e)))?i(`04B_CTKM_LKT`,4).map(e=>({label:F(e[0]),group:F(e[1]),format:F(e[2]),cut:P(e[3])})):i(`04B_CTKM_LKT`,3).map(e=>({label:F(e[0]),group:`LKT Toàn hệ thống`,format:F(e[1]),cut:P(e[2])}));let s=a.settings.lktGroups??=[];for(let e of new Set(a.lkt.map(e=>e.group))){if(s.some(t=>t.name.toLowerCase()===e.toLowerCase()))continue;let t=e.replace(/^LKT\s+/i,``).toLowerCase(),n=a.settings.programs.find(e=>e.type!==`LKT`&&e.name.toLowerCase()===t);s.push({name:e,baseProgram:n?.name??`Định kỳ đặc biệt`})}a.extended=i(`04C_CTKM_MO_RONG`,8).map(e=>({label:F(e[0]),program:F(e[1]),method:F(e[2]),term:P(e[3]),pct:P(e[4]),applyType:F(e[5]),minCourses:P(e[6],1),note:F(e[7])})),a.citimeRoutes=i(`05_CITIME_LO_TRINH`,7).map(e=>({label:F(e[0]),group:F(e[1]),count:P(e[2]),code:F(e[3]),name:F(e[4]),status:F(e[5]),maxTerm:P(e[6])})),a.gifts=i(`07_QUA_TANG`,6).map(e=>({label:F(e[0]),program:F(e[1]),milestone:P(e[2]),method:F(e[3]),content:F(e[4]),value:P(e[5])})),a.routes=i(`08_LO_TRINH`,20).map(e=>{let t=[];for(let n=4;n<20;n+=2)F(e[n])&&t.push({code:F(e[n]),mode:F(e[n+1])});return{label:F(e[0]),output:F(e[1]),code:F(e[2]),name:F(e[3]),items:t}});let c=r.Sheets[`06_DM_KY_HAN_CITIME`]?i(`06_DM_KY_HAN_CITIME`,1).map(e=>P(e[0])):null;return c?.length&&a.settings.paymentMethods.filter(e=>e.citime).forEach(e=>e.terms=c),a}var I=(e,t)=>String(e??``).trim().toLowerCase()===String(t??``).trim().toLowerCase(),L=e=>String(e??``).replace(/[&<>"']/g,e=>({"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`})[e]),R=e=>Math.round(Number(e)||0).toLocaleString(`vi-VN`),z=e=>`${+(Number(e||0)*100).toFixed(2)}%`,ie=e=>L(e).replace(/\n/g,`<br>`),ae=e=>String(e).padStart(2,`0`),oe=[{id:`cover`,title:`Trang bìa + điểm nổi bật`},{id:`courses`,title:`Bảng giá khóa học`},{id:`promo`,title:`Chương trình khuyến mại & voucher`},{id:`gifts`,title:`Quà tặng theo hình thức thanh toán`},{id:`giftSets`,title:`Bộ quà tặng`},{id:`services`,title:`Gói bảo hành & dịch vụ học tập`},{id:`routes`,title:`Bảng giá lộ trình gợi ý (theo đầu ra)`},{id:`citime`,title:`Phụ lục thời hạn trả góp Citime`}];function se(e,t){let n=t||String(e?.settings?.validFrom??``).slice(0,7),[r,i]=String(n??``).split(`-`);return r&&i?`${Number(i)}/${r}`:``}var B=e=>{if(!e||!/^\d{4}-\d{2}$/.test(e))return[``,``];let[t,n]=e.split(`-`).map(Number);return[`${e}-01`,`${e}-${String(new Date(t,n,0).getDate()).padStart(2,`0`)}`]},V=e=>{let[t,n,r]=String(e??``).split(`-`);return t?`${Number(r)}/${Number(n)}/${t}`:``};function ce(e,t,n){return`CHƯƠNG TRÌNH KHUYẾN MÃI ${String(t).toUpperCase()} - THÁNG ${se(e,n)}`}function le(e,t){return e.settings.brands?.find(e=>I(e.label,t))??{label:t,brandName:String(t),bg:`#F0C030`,bg2:`#FFFCF2`,ink:`#161513`,accent:`#C8102E`,logoUrl:``,footer:``}}function ue(e,t){return[...new Set(e.routes.filter(e=>I(e.label,t)).map(e=>e.output).filter(Boolean))]}var H=(e,t)=>e===1?`Khóa lẻ`:`Combo ${e} khóa${t&&e>=t?` trở lên`:``}`;function U({head:e,rows:t,merge:n=[],cls:r=``}){let i=e.at(-1).reduce((e,t)=>e+(t.colspan??1),0)+(e.length>1?e[0].filter(e=>e.rowspan>1).length:0),a=t.map(e=>e.group==null?e.map(e=>typeof e==`object`&&e?{...e}:{html:String(e??``)}):e);for(let e of n){let t=-1;for(let n=0;n<=a.length;n++){let r=a[n],i=r&&r.group==null?r[e].key??r[e].html:null,o=t>=0?a[t][e].key??a[t][e].html:null;t>=0&&i!=null&&i===o?(a[t][e].rowspan=(a[t][e].rowspan??1)+1,r[e].skip=!0):t=i==null?-1:n}}return`<table class="t ${r}"><thead>${e.map(e=>`<tr>${e.map(e=>`<th${e.colspan?` colspan="${e.colspan}"`:``}${e.rowspan?` rowspan="${e.rowspan}"`:``}${e.cls?` class="${e.cls}"`:``}>${e.html}</th>`).join(``)}</tr>`).join(``)}</thead><tbody>${a.map(e=>e.group==null?`<tr>${e.filter(e=>!e.skip).map(e=>`<td${e.rowspan>1?` rowspan="${e.rowspan}"`:``}${e.cls?` class="${e.cls}"`:``}>${e.html}</td>`).join(``)}</tr>`:`<tr class="grp"><td colspan="${i}">${L(e.group)}</td></tr>`).join(``)}</tbody></table>`}var W=(...e)=>e.map(e=>typeof e==`string`?{html:e}:e);function G(e,t){let n=u(e,t.program),r=n?.type===`DINH_KY`,i=e.settings.paymentMethods,a=(i.find(e=>e.allowSingle)??i[0]).name;return{label:t.label,program:t.program,month:t.month,prog:n,periodic:r,lktGroup:t.lktGroup,lktFormat:t.lktFormat,single:a,q(n,r={}){return S(e,{label:t.label,program:t.program,lktGroup:t.lktGroup,lktFormat:t.lktFormat,method:a,term:0,warranty:``,items:n,...r})}}}function de(e,t){let n=u(e,t.program);if(!n||n.type===`DINH_KY`)return[];let r=n.type===`LKT`?u(e,g(e,t.lktGroup)?.baseProgram):n,i=n.type===`LKT`?_(e,t.label,t.lktGroup).find(e=>I(e.format,t.lktFormat))?.cut??0:0,a=e.settings.labels.find(e=>I(e.name,t.label))?.blockedMethods??[],o=q(e,t.label,r),s=[];for(let t of e.settings.paymentMethods){if(a.some(e=>I(e,t.name)))continue;let e=o.filter(e=>I(e.method,t.name)).sort((e,t)=>e.term-t.term);for(let n of e){let e=s.at(-1);e&&e.method===t.name&&Math.abs(e.basePct-n.pct)<1e-9?e.terms.push(Number(n.term)):s.push({method:t.name,terms:[Number(n.term)],basePct:n.pct,pm:t})}}return s.map(e=>{let t=e.terms.filter(Boolean),n=e.pm.allowSingle?`Đóng Full`:t.length?`Trả góp ${e.method}`:e.pm.promoLabel||e.method;return{id:`${e.method}|${e.terms.join(`-`)}`,method:e.method,term:Math.min(...e.terms),pct:e.basePct-i,title:`${n}${t.length?` ${t.join(` & `)} tháng`:``}`}})}function fe(e,t){let n=de(e,t),r=[];for(let t of[...new Set(n.map(e=>e.method))]){let i=n.filter(e=>e.method===t),a=d(e,t);a?.allowSingle?r.push(...i):i.some(e=>e.term>0)&&r.push(...i.slice(a?.citime?-2:-1))}return r.map(e=>e.id)}function pe(e,t,n,r){let i=d(e,n),a=e.gifts.filter(e=>I(e.label,t.label)&&I(e.program,t.program)&&I(e.method,i?.giftGroup??n)),o=Math.max(0,...e.gifts.filter(e=>I(e.label,t.label)&&I(e.program,t.program)).map(e=>e.milestone));return a.find(e=>Number(e.milestone)===Math.min(r,o))??null}function K(e,t){let n=e.settings.labels.find(e=>I(e.name,t.label))?.blockedMethods??[],r=e.settings.paymentMethods.filter(e=>!n.some(t=>I(t,e.name)));return[...r.filter(e=>!e.giftCondition),...r.filter(e=>e.giftCondition)]}function q(e,t,n){return n?(n.type===`DAC_BIET`?e.special:n.type===`MO_RONG`?e.extended.filter(e=>I(e.program,n.name)):[]).filter(e=>I(e.label,t)):[]}function me(e,t){let n=[],r=t.prog?.type,i=0;if(r===`DINH_KY`)i=Math.max(0,...e.periodic.filter(e=>I(e.label,t.label)).map(e=>e.pct));else if(r===`LKT`){let n=u(e,g(e,t.lktGroup)?.baseProgram),r=_(e,t.label,t.lktGroup).map(e=>e.cut);r.length&&(i=Math.max(0,...q(e,t.label,n).map(e=>e.pct))-Math.min(...r))}else i=Math.max(0,...q(e,t.label,t.prog).map(e=>e.pct));if(i>0&&n.push({big:z(i),text:`mức giảm học phí cao nhất`}),r===`DINH_KY`){let r=Math.max(0,...e.periodic.filter(e=>I(e.label,t.label)).map(e=>e.cashback));r&&n.push({big:R(r),text:`đồng hoàn tiền — ${String(e.settings.docTexts?.cashbackLabel??``).toLowerCase()}`})}let a=Math.max(0,...e.gifts.filter(e=>I(e.label,t.label)&&I(e.program,t.program)).map(e=>e.value));a&&n.push({big:R(a),text:`đồng — bộ quà tặng giá trị nhất`});let o=0;for(let n of m(e,t.label))for(let e of n.modes)o=Math.max(o,t.q([{code:n.code,mode:e}]).lines[0]?.voucher??0);return o&&n.length<3&&n.push({big:R(o),text:`đồng voucher khóa học đặc biệt`}),n.slice(0,3)}function J(e,t,n,r){let i=e.settings,a=t?.month||String(i.validFrom??``).slice(0,7),o=String(i.validFrom??``).slice(0,7),s=!!(a&&o&&a!==o),[c,l]=s?B(a):[i.validFrom,i.validTo],u=s?c:i.validFrom,d=s?l:i.validTo,f=i.campaignName||``;s&&f&&(f=f.replace(/tháng\s*\d+(\/\d+)?/gi,`tháng ${se(e,a)}`));let p=me(e,t),m=de(e,t).length;return{cls:`cover`,html:`<div class="cv-l">
23
+ <div class="kick">Chương trình khuyến mãi · Tháng ${se(e,a)}</div>
24
+ <div class="cv-main">
25
+ ${n.logoUrl?`<img class="cv-logo" src="${L(k(n.logoUrl))}" alt="${L(n.brandName)}">`:`<div class="cv-brand">${L(n.brandName)}</div>`}
26
+ <div class="cv-title">${L(r)}</div>
27
+ <div class="cv-date">Áp dụng từ ${V(u)} đến ${V(d)}</div>
28
+ </div>
29
+ </div>
30
+ <div class="cv-r">
31
+ ${f?`<div class="cv-theme">${L(f)}</div>`:``}
32
+ <div class="cv-prog">${L(t.program)}</div>
33
+ <div class="cv-scope">${t.periodic?`Áp dụng cho toàn bộ hình thức thanh toán`:m?`${m} mức ưu đãi theo tiến độ thanh toán`:``}</div>
34
+ <div class="cv-hl">${p.map(e=>`<div><b>${L(e.big)}</b><span>${L(e.text)}</span></div>`).join(``)}</div>
35
+ </div>`}}function he(e,t){let n=m(e,t.label);if(!n.length)return null;let r=n.map(n=>{let r=e.courses.find(e=>I(e.label,t.label)&&I(e.code,n.code)&&I(e.mode,`Offline`)),i=e.courses.find(e=>I(e.label,t.label)&&I(e.code,n.code)&&I(e.mode,`Online`)),a=r??i,o=t.q([{code:n.code,mode:a.mode}]);return[{html:`<b>${L(n.name)}</b>`,cls:`left`},L(n.code),L(a.sessions||i?.sessions||``),L(r?.classSize||`—`),L(i?.classSize||`—`),R(a.price),o.lines[0]?.voucher?`-${R(o.lines[0].voucher)}`:`—`,{html:o.ok?R(o.afterPromo):`Không áp dụng`,cls:`hot`}]});return{kick:`Bảng giá`,h:`Học phí từng khóa học`,sub:`${t.program} · giá đăng ký 1 khóa, đóng full học phí, tính theo lớp Offline nếu có`,html:U({head:[W({html:`Khóa học`,cls:`left`},`Mã khóa`,`Thời lượng`,`Sĩ số Offline`,`Sĩ số Online`,`Giá gốc`,`Voucher`,{html:`Giá sau khuyến mại`,cls:`hot`})],rows:r,merge:[3,4]})}}function ge(e){return e.applyType===`TOAN_BO`?`Toàn bộ các khóa học`:e.applyType===`LO_TRINH_CU_THE`?`Theo từng combo có bảng thông tin kèm theo (phụ lục Citime)`:`Combo từ ${Number(e.minCourses)||2} khoá trở lên`}function _e(e,t,n){let r=[];for(let n of m(e,t.label))for(let e of n.modes){let i=t.q([{code:n.code,mode:e}]).lines[0]?.voucher??0;i>0&&r.push([{html:`${L(n.name)}${n.modes.length>1?` <span class="muted">${L(e)}</span>`:``}`,cls:`left`},{html:`${R(i)}đ`,cls:`hot`}])}if(!r.length)return``;let i=e=>U({head:[W({html:`Khóa học`,cls:`left`},{html:`Voucher giảm thêm`,cls:`hot`})],rows:e,cls:`t-tight`}),a=Math.ceil(r.length/2);return`<div class="sec">Quà tặng khóa học đặc biệt</div>${n?`<div class="cols2">${i(r.slice(0,a))}${i(r.slice(a))}</div>`:i(r)}`}function ve(e,t){let n=(e.settings.programRules??[]).find(e=>I(e.label,t.label)&&I(e.program,t.program)),r=String(n?.rules??``).split(`
36
+ `).map(e=>e.trim()).filter(Boolean);return r.length?`<div class="rules"><div class="rules-h">Quy định tham gia chương trình</div><ol>${r.map(e=>`<li>${L(e)}</li>`).join(``)}</ol></div>`:``}function ye(e,t){let n=t.prog?.type;if(n===`DINH_KY`){let n=e.periodic.filter(e=>I(e.label,t.label)).sort((e,t)=>e.from-t.from),r=``;if(n.length){let t=Math.max(...n.map(e=>e.from)),i=[];for(let e=1;e<=t;e++){let r=n.find(t=>t.from<=e&&t.to>=e),a=e===t?`k`:e>t/2?`y`:``;i.push(`<div class="card ${a}"><div class="no">${ae(e)}</div><div class="nm">${H(e,r?.to>=99?e:null)}</div>
37
+ <div class="big">${r?z(r.pct):`—`}</div><div class="sm">${r?.cashback?`Hoàn tiền ${R(r.cashback)}đ`:`Giảm trực tiếp học phí`}</div></div>`)}r=`<div class="cards" style="grid-template-columns:repeat(${t},1fr)">${i.join(``)}</div>`,n.some(e=>e.cashback)&&(r+=`<p class="note">Hoàn tiền: ${L(e.settings.docTexts?.cashbackLabel??``)}.</p>`)}let i=_e(e,t,!0),a=ve(e,t);return!r&&!i?null:{kick:`Chương trình khuyến mại`,h:`Ưu đãi Định kỳ theo số khóa đăng ký`,sub:`Áp dụng cho toàn bộ hình thức thanh toán`,html:r+i+a}}let r=``,i=``;if(n===`LKT`){let n=g(e,t.lktGroup),a=u(e,n?.baseProgram),o=_(e,t.label,t.lktGroup),s=q(e,t.label,a);n&&o.length&&s.length&&(r=U({head:[W(`Hình thức thanh toán`,`Tiến độ`,`% ${L(a.name)}`,...o.map(e=>({html:`${L(e.format)}<br><small>cắt ${z(e.cut)}</small>`,cls:`hot`})))],rows:s.map(t=>[L(d(e,t.method)?.promoLabel||t.method),Number(t.term)?`${t.term} tháng`:`—`,z(t.pct),...o.map(e=>({html:z(t.pct-e.cut),cls:`hot`}))]),merge:[0],cls:`t-tight`}),i=`${L(n.name)}: % giảm = % chương trình ${L(a.name)} trừ mức cắt của format liên kết trường.`)}else{let n=e.settings.labels.find(e=>I(e.name,t.label))?.blockedMethods??[],i=e.settings.paymentMethods.map(e=>e.name),a=q(e,t.label,t.prog).filter(e=>!n.some(t=>I(t,e.method))).sort((e,t)=>i.indexOf(e.method)-i.indexOf(t.method)||e.term-t.term);a.length&&(r=U({head:[W(`STT`,`Hình thức thanh toán`,`Tiến độ`,{html:`Mức ưu đãi`,cls:`hot`},`Khóa học áp dụng`)],rows:a.map((t,n)=>[String(n+1),L(d(e,t.method)?.promoLabel||t.method),{html:Number(t.term)?`${t.term} tháng`:`—`,cls:`nw`},{html:z(t.pct),cls:`hot`},L(ge(t))]),merge:[1,3,4],cls:`t-promo`}))}let a=_e(e,t,!1);return!r&&!a?null:{kick:`Chương trình khuyến mại`,h:`Ưu đãi ${t.program} theo tiến độ thanh toán`,sub:`Áp dụng cho toàn bộ khách hàng`,html:`<div class="cols2 top" style="grid-template-columns:1.35fr 1fr"><div><div class="sec">Mức ưu đãi</div>${r}${i?`<p class="note">${i}</p>`:``}</div><div>${a}</div></div>${ve(e,t)}`}}function be(e,t){let n=e.gifts.filter(e=>I(e.label,t.label)&&I(e.program,t.program));if(!n.length)return null;let r=Math.max(...n.map(e=>e.milestone)),i=K(e,t),a=[{html:`Khóa học`,rowspan:2,cls:`left`}],o=[];i.forEach(e=>{e.giftCondition?(a.push({html:L(e.docLabel),colspan:2}),o.push({html:`Quà tặng`},{html:`Điều kiện`})):a.push({html:L(e.docLabel),rowspan:2})});let s=[];for(let n=1;n<=r;n++){let a=[{html:`<b>${H(n,r)}</b>`,cls:`left`}];for(let r of i){let i=pe(e,t,r.name,n);a.push(n===1&&!r.allowSingle?{html:`Không áp dụng`,cls:`muted`}:i?L(i.content):{html:`—`,cls:`muted`}),r.giftCondition&&a.push(i?L(r.giftCondition):{html:`—`,cls:`muted`})}s.push(a)}return{kick:`Quà tặng`,h:`Quà tặng theo hình thức thanh toán`,sub:`${t.program} · quà theo số khóa đăng ký`,html:U({head:o.length?[a,o]:[a],rows:s,merge:s[0].map((e,t)=>t).slice(1),cls:`t-tall`})}}function xe(e,t){let n=new Set(e.gifts.filter(e=>I(e.label,t.label)&&I(e.program,t.program)).map(e=>Number(e.value))),r=(e.settings.giftSets??[]).filter(e=>I(e.label,t.label)&&(!n.size||n.has(Number(e.value))));return!r.length||!n.size?null:(r.sort((e,t)=>e.value-t.value),{kick:`Quà tặng`,h:`Bộ quà tặng giá trị dành cho học viên`,sub:`Nội dung từng bộ quà trong bảng quà tặng theo hình thức thanh toán`,html:`<div class="cards sets" style="grid-template-columns:repeat(${r.length>6?4:3},1fr)">${r.map((e,t)=>`<div class="card ${t===r.length-1?`k`:t%3==1?`y`:``}"><div class="no">Bộ quà ${ae(t+1)}</div>
38
+ <div class="big sm2">${R(e.value)}đ</div><ul>${String(e.items).split(`
39
+ `).filter(Boolean).map(e=>`<li>${L(e)}</li>`).join(``)}</ul></div>`).join(``)}</div>`})}function Se(e,t){let n=e.settings.docTexts??{},r=e.warranty.filter(e=>e.rate>0),i=(e.settings.services??[]).filter(e=>I(e.label,t.label));if(!r.length&&!i.length)return null;let a=m(e,t.label).filter(e=>e.warranty===!1).map(e=>e.name);return{kick:`Dịch vụ cộng thêm`,h:`Gói bảo hành & dịch vụ học tập`,sub:`Bán kèm lộ trình khi khách có nhu cầu`,html:`<div class="cols2 top"><div>${r.length?`<div class="sec">Gói bảo hành</div>
40
+ <div class="cards" style="grid-template-columns:repeat(${r.length},1fr)">${r.map((e,t)=>`<div class="card ${t===r.length-1?`k`:t?`y`:``}"><div class="no">Bảo hành</div><div class="nm">${L(e.name)}</div>
41
+ <div class="big">${z(e.rate)}</div><div class="sm">giá gốc khóa học / combo</div></div>`).join(``)}</div>
42
+ <p class="note">Thời lượng: ${L(n.warrantyDuration)} · Hình thức: ${L(n.warrantyForm)}.${a.length?`<br>Không tính phí bảo hành với các khóa ${L(a.join(`, `))}.`:``}</p>`:``}</div><div>${i.length?`<div class="sec">Dịch vụ học tập</div>${U({head:[W({html:`Sản phẩm`,cls:`left`},`Thời lượng`,`Hình thức`,{html:`Giá gốc`,cls:`hot`})],rows:i.map(e=>[{html:L(e.name),cls:`left`},L(e.duration),L(e.mode),{html:R(e.price),cls:`hot`}])})}`:``}</div></div>`}}function Ce(e,t,n,r){let i=e.routes.filter(e=>I(e.label,t.label)&&I(e.output,n));if(!i.length)return[];let a=e.warranty.filter(e=>e.rate>0),o=e.warranty.find(e=>!(e.rate>0)),s=[...new Set(i.map(e=>e.items.length))].sort((e,t)=>e-t),c=e.settings.docTexts?.routeNote?`<p class="note">* ${L(e.settings.docTexts.routeNote)}</p>`:``,l=(e,t)=>({kick:`Lộ trình gợi ý · Đầu ra ${n}`,h:`Bảng giá lộ trình đầu ra IELTS ${n}`,sub:e,html:t+c});if(t.periodic){let n=K(e,t).filter(e=>!e.citime),r=n.some(n=>i.some(r=>pe(e,t,n.name,r.items.length))),o=[W({html:`Lộ trình`,cls:`left`},`Giá gốc`,{html:`Giá sau ưu đãi`,cls:`hot`},...a.map(e=>`+ BH ${L(e.name)}<br><small>${z(e.rate)}</small>`),...r?n.map(e=>`Quà ${ie(e.docShort.replace(/^Đóng |^Trả /,e=>e.toLowerCase()))}`):[])],c=[];for(let o of s){c.push({group:H(o)});for(let s of i.filter(e=>e.items.length===o)){let i=t.q(s.items);c.push([{html:L(s.name),cls:`left`},R(i.gross),i.ok?{html:R(i.afterPromo),cls:`hot`}:{html:`Không áp dụng`,cls:`muted`},...a.map(e=>i.ok?R(t.q(s.items,{warranty:e.name}).final):`—`),...r?n.map(n=>{let r=pe(e,t,n.name,o);return r?{html:L(r.content),key:`${o}|${n.name}|${r.content}`,cls:`gift`}:{html:`—`,key:`${o}|${n.name}|-`,cls:`muted`}}):[]])}}return[l(`${t.program} · áp dụng cho toàn bộ hình thức thanh toán`,U({head:o,rows:c,merge:r?n.map((e,t)=>3+a.length+t):[],cls:`t-routes`}))]}let u=de(e,t),d=r?.length?u.filter(e=>r.includes(e.id)):u.filter(n=>fe(e,t).includes(n.id)),f=[];for(let e=0;e<d.length;e+=2){let n=d.slice(e,e+2),r=[[{html:`Lộ trình`,rowspan:2,cls:`left`},{html:`Giá gốc`,rowspan:2},...n.map(e=>({html:`${L(e.title)} · Giảm ${z(e.pct)}`,colspan:1+a.length,cls:`hot`}))],n.flatMap(()=>[{html:`BH ${L(o?.name??`tiêu chuẩn`)}`,cls:`hot`},...a.map(e=>({html:`+ BH ${L(e.name)}<br><small>${z(e.rate)}</small>`}))])],c=[];for(let e of s){c.push({group:H(e)});for(let r of i.filter(t=>t.items.length===e)){let e=[{html:L(r.name),cls:`left`},R(t.q(r.items).gross)];for(let i of n){let n=t.q(r.items,{method:i.method,term:i.term});n.ok?e.push({html:R(n.afterPromo),cls:`hot`},...a.map(e=>R(t.q(r.items,{method:i.method,term:i.term,warranty:e.name}).final))):e.push(...Array(1+a.length).fill(0).map(()=>({html:`x`,cls:`muted`})))}c.push(e)}}f.push(l(`${t.program} · ${n.map(e=>e.title).join(` và `)} · "x" = lộ trình không áp dụng hình thức này`,U({head:r,rows:c,cls:`t-routes`})))}return f}function we(e,t){let n=e.settings.paymentMethods.find(e=>e.citime),r=e.settings.labels.find(e=>I(e.name,t.label))?.blockedMethods??[];if(!n||r.some(e=>I(e,n.name)))return null;let i=new Set(e.settings.courseCodes.filter(e=>/^M[AB]$/.test(e.short)).map(e=>e.short)),a=e.citimeRoutes.filter(e=>I(e.label,t.label)&&I(e.status,`Áp dụng`)&&!String(e.code).split(`_`).some(e=>i.has(e)));if(!a.length)return null;let o=[...new Set(a.map(e=>e.group))],s=o.map(e=>{let t=[],n=a.filter(t=>t.group===e);for(let e of[...new Set(n.map(e=>e.count))].sort((e,t)=>e-t))t.push({group:H(e)}),n.filter(t=>t.count===e).forEach(e=>t.push([{html:L(e.name),cls:`left`},{html:`${e.maxTerm} tháng`,cls:`hot`}]));return`<div><div class="sec">${L(e)}</div>${U({head:[W({html:`Lộ trình`,cls:`left`},{html:`Kỳ hạn tối đa`,cls:`hot`})],rows:t,cls:`t-tight`})}</div>`});return{kick:`Phụ lục`,h:`Thời hạn trả góp Citime tối đa theo lộ trình`,sub:`Kỳ hạn Citime: ${n.terms.join(` / `)} tháng`,html:`<div class="cols2 top" style="grid-template-columns:repeat(${Math.min(o.length,3)},1fr)">${s.join(``)}</div>${e.settings.docTexts?.citimeNote?`<p class="note warn">Lưu ý: ${L(e.settings.docTexts.citimeNote)}</p>`:``}`}}function Te(e,t={}){let n=G(e,t),r=le(e,t.label),i=new Set(t.sections??oe.map(e=>e.id)),a=t.title||ce(e,t.label,t.month),o=[],s=(e,t)=>i.has(e)&&t&&o.push(t);if(s(`cover`,J(e,n,r,a)),s(`courses`,he(e,n)),s(`promo`,ye(e,n)),s(`gifts`,be(e,n)),s(`giftSets`,xe(e,n)),s(`services`,Se(e,n)),i.has(`routes`))for(let r of t.outputs?.length?t.outputs:ue(e,t.label))for(let i of Ce(e,n,r,t.scenarios))s(`routes`,i);return s(`citime`,we(e,n)),{html:je({data:e,brand:r,title:a,pages:o,ctx:n}),pages:o.length,title:a}}var Ee=e=>String(e||`#000`).replace(`#`,``).padEnd(6,`0`),De=e=>[0,2,4].map(t=>parseInt(Ee(e).slice(t,t+2),16)),Oe=e=>{let[t,n,r]=De(e).map(e=>e/255);return .2126*t+.7152*n+.0722*r},ke=(e,t,n)=>`#${De(e).map((e,r)=>Math.round(e+(De(t)[r]-e)*n).toString(16).padStart(2,`0`)).join(``)}`,Ae=e=>`<svg class="${e}" viewBox="0 0 400 220" preserveAspectRatio="none" aria-hidden="true">
43
+ <path d="M10 170 C 70 60, 130 60, 170 120 S 260 200, 300 110 S 370 20, 395 40" fill="none" stroke="currentColor" stroke-width="26" stroke-linecap="round"/></svg>`;function je({data:e,brand:t,title:n,pages:r,ctx:i}){let a=e.settings,o=i?.month||String(a.validFrom??``).slice(0,7),s=String(a.validFrom??``).slice(0,7),c=!!(o&&s&&o!==s),[l,u]=c?B(o):[a.validFrom,a.validTo],d=c?l:a.validFrom,f=c?u:a.validTo,p=t.bg||`#F0C030`,m=t.bg2&&Oe(t.bg2)>.9?t.bg2:`#FFFCF2`,h=t.ink||`#161513`,g=t.onMain||(Oe(p)>.55?h:`#FFFFFF`),_=String(t.gradient||``).split(`,`).map(e=>e.trim()).filter(Boolean),v=_.length>=2?`linear-gradient(165deg, ${[..._].reverse().join(`, `)})`:p,y=String(t.font||`Be Vietnam Pro`).trim(),b=`https://fonts.googleapis.com/css2?family=${encodeURIComponent(y).replace(/%20/g,`+`)}:wght@400;500;600;700;800;900&display=swap`,x=t.accent&&Oe(t.accent)<.35?t.accent:Oe(p)>.55?ke(p,`#000000`,.5):p,S=t.neutral||ke(m,`#8a7f5c`,.1),C=t.slate||`#8a8577`,w=t.motif===`wave`,T=`${L(t.brandName)} · Chương trình khuyến mãi ${se(e,o)} · ${V(d)} – ${V(f)}`,E=r.map((e,n)=>e.cls===`cover`?`<section class="page cover">${e.html}${w?Ae(`wave wave-cover`):``}</section>`:`<section class="page">${w?Ae(`wave wave-page`):``}<div class="inner">
44
+ <div class="kick">${ae(n)} · ${L(e.kick)}</div>
45
+ <h2>${L(e.h)}</h2>${e.sub?`<div class="sub">${L(e.sub)}</div>`:``}
46
+ <main>${e.html}</main></div>
47
+ <footer>${t.logoLight?`<img src="${L(k(t.logoLight))}" alt="">`:``}<span>${T}</span><span>${String(t.footer||``).split(`
48
+ `).map(L).join(` · `)}</span><b>${n+1}</b></footer></section>`).join(``);return`<!doctype html><html lang="vi"><head><meta charset="utf-8"><title>${L(n)}</title>
49
+ <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
50
+ <link href="${L(b)}" rel="stylesheet">
51
+ <style>
52
+ @page { size: A4 landscape; margin: 0; }
53
+ :root { --main-fill: ${v}; --main: ${p}; --paper: ${m}; --ink: ${h}; --on-main: ${g}; --kick: ${x}; --accent: ${t.accent||`#C8102E`};
54
+ --card: ${S}; --beige: ${ke(S,`#FFFFFF`,.55)}; --line: ${ke(S,`#000000`,.12)}; --tint: ${ke(p,`#FFFFFF`,.75)};
55
+ --main2: ${ke(p,`#FFFFFF`,.3)}; --muted: ${C}; }
56
+ * { box-sizing: border-box; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
57
+ html, body { margin: 0; }
58
+ body { font-family: '${L(y)}', 'Be Vietnam Pro', system-ui, sans-serif; color: var(--ink); background: #77746c; }
59
+ .page { width: 297mm; height: 210mm; margin: 0 auto 14px; position: relative; overflow: hidden; background: var(--paper);
60
+ break-after: page; page-break-after: always; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
61
+ .page:last-child { break-after: auto; page-break-after: auto; }
62
+ .page:not(.cover)::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5mm; background: var(--main-fill); }
63
+ .inner { padding: 13mm 16mm 16mm 22mm; height: 100%; display: flex; flex-direction: column; }
64
+ h2::after { content: ''; display: block; width: 46px; height: 4px; background: var(--kick); margin-top: 6px; border-radius: 2px; }
65
+ .kick { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--kick); }
66
+ h2 { font-size: 30px; font-weight: 800; letter-spacing: -.015em; margin: 4px 0 2px; line-height: 1.15; }
67
+ .sub { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
68
+ main { flex: 1; }
69
+ .sec { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--kick); margin: 16px 0 7px; }
70
+ main > .sec:first-child, .cols2 > div > .sec:first-child { margin-top: 2px; }
71
+ .note { font-size: 11px; color: var(--muted); margin: 9px 0 0; line-height: 1.5; }
72
+ .note.warn { color: var(--accent); }
73
+ .muted { color: var(--muted); }
74
+ .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
75
+ .cols2.top { align-items: start; gap: 22px; }
76
+
77
+ /* Bảng: tiêu đề nền tối, dòng xen kẽ, cột nhấn màu nhãn */
78
+ .t { width: 100%; border-collapse: collapse; font-size: 11.5px; line-height: 1.35; background: #fff; }
79
+ .t th { background: var(--ink); color: #fff; font-weight: 700; padding: 7px 9px; text-align: center; border: 1px solid var(--ink); }
80
+ .t th.hot { color: var(--main); }
81
+ .t th small { font-weight: 500; opacity: .8; }
82
+ .t td { padding: 6px 9px; border: 1px solid var(--line); text-align: center; vertical-align: middle; }
83
+ .t tbody tr:nth-child(even) td { background: var(--beige); }
84
+ .t .left { text-align: left; }
85
+ .t td.hot { background: var(--tint) !important; font-weight: 800; }
86
+ .t td.gift { font-size: 10.5px; }
87
+ .t tr.grp td { background: var(--ink) !important; color: var(--main); font-weight: 800; text-align: left; font-size: 10.5px;
88
+ letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; }
89
+ .t-routes { font-size: 10.5px; }
90
+ .t-routes td, .t-routes th { padding: 4px 7px; }
91
+ .t-tight td { padding: 4px 8px; }
92
+ .t-tall td { padding: 11px 9px; }
93
+ .t-promo td { padding: 5px 8px; }
94
+ .t td.nw, .t-promo th { white-space: nowrap; }
95
+ .rules { margin-top: 14px; background: var(--ink); color: #fff; padding: 12px 16px 12px; border-left: 6px solid var(--main); }
96
+ .rules-h { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--main); }
97
+ .rules ol { margin: 6px 0 0; padding-left: 18px; font-size: 11.5px; line-height: 1.55; columns: 2; column-gap: 28px; }
98
+ .rules li { break-inside: avoid; }
99
+
100
+ /* Thẻ: be viền trên tối · màu nhãn · tối */
101
+ .cards { display: grid; gap: 10px; }
102
+ .card { background: var(--card); border-top: 4px solid var(--ink); padding: 12px 13px 13px; min-height: 120px; display: flex; flex-direction: column; }
103
+ .card.y { background: var(--main); border-top-color: var(--main); color: var(--on-main); }
104
+ .card.k { background: var(--ink); border-top-color: var(--ink); color: #fff; }
105
+ .card .no { font-size: 11px; font-weight: 800; color: var(--kick); letter-spacing: .04em; }
106
+ .card.y .no { color: var(--on-main); opacity: .65; }
107
+ .card.k .no, .card.k .nm { color: var(--main); }
108
+ .card .nm { font-size: 15px; font-weight: 800; margin-top: 4px; }
109
+ .card .big { font-size: 38px; font-weight: 900; letter-spacing: -.02em; margin-top: auto; line-height: 1.05; }
110
+ .card .big.sm2 { font-size: 24px; margin-top: 6px; }
111
+ .card .sm { font-size: 11.5px; margin-top: 4px; opacity: .9; font-weight: 600; }
112
+ .card ul { margin: 8px 0 0; padding-left: 16px; font-size: 11.5px; line-height: 1.55; }
113
+ .sets .card { min-height: 0; }
114
+
115
+ /* Bìa: mảng tối + mảng màu nhãn */
116
+ .cover { display: grid; grid-template-columns: 68% 32%; }
117
+ .cv-l { background: var(--ink); color: var(--paper); padding: 20mm 18mm 18mm 20mm; display: flex; flex-direction: column; }
118
+ .cv-l .kick { color: var(--main); font-size: 13px; letter-spacing: .2em; }
119
+ .cv-logo { height: 20mm; max-width: 150mm; object-fit: contain; object-position: left; display: block; }
120
+ .cv-main { margin-top: auto; }
121
+ .cv-brand { font-size: 64px; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
122
+ .cv-title { font-size: 19px; font-weight: 700; margin-top: 16px; color: var(--main); text-transform: uppercase; line-height: 1.3; }
123
+ .cv-date { font-size: 15px; margin-top: 8px; opacity: .8; }
124
+ .cv-r { background: var(--main-fill); color: var(--on-main); padding: 20mm 14mm 18mm; display: flex; flex-direction: column; }
125
+ .cv-theme { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; opacity: .75; }
126
+ .cv-prog { font-size: 34px; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
127
+ .cv-scope { font-size: 12.5px; font-weight: 600; margin-top: 8px; opacity: .8; }
128
+ .cv-hl { margin-top: auto; display: grid; gap: 14px; }
129
+ .cv-hl div { border-top: 3px solid ${Oe(g)>.6?`var(--main)`:`var(--ink)`}; padding: 8px 10px 9px;
130
+ background: ${Oe(g)>.6?`var(--ink)`:`rgba(255,255,255,.55)`}; }
131
+ .wave { position: absolute; pointer-events: none; color: var(--main); }
132
+ .wave-cover { width: 118mm; height: 58mm; left: 96mm; top: 62mm; opacity: .95; }
133
+ .wave-page { width: 72mm; height: 36mm; right: -16mm; top: -12mm; opacity: .9; }
134
+ .cover { position: relative; }
135
+ .inner { position: relative; z-index: 1; }
136
+ .cv-hl b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
137
+ .cv-hl span { font-size: 12px; font-weight: 600; }
138
+
139
+ footer { position: absolute; left: 22mm; right: 16mm; bottom: 7mm; display: flex; gap: 18px; font-size: 10px; color: var(--muted); }
140
+ footer { align-items: center; }
141
+ footer img { height: 4.2mm; margin: -1mm 0; }
142
+ footer span:nth-last-of-type(1) { flex: 1; text-align: right; }
143
+ footer b { color: var(--ink); }
144
+ @media print { body { background: none; } .page { margin: 0; box-shadow: none; } }
145
+ </style>
146
+ <script>
147
+ // Trang nhiều dòng hơn khổ giấy (VD admin thêm lộ trình) → tự co nội dung cho vừa 1 trang thay vì tràn sang trang mới
148
+ function fitPages() {
149
+ document.querySelectorAll('.page .inner').forEach(function (inner) {
150
+ inner.style.transform = ''; inner.style.width = ''; inner.style.height = '';
151
+ var r = inner.clientHeight / inner.scrollHeight;
152
+ if (r < 1) {
153
+ inner.style.transformOrigin = '0 0'; inner.style.transform = 'scale(' + r + ')';
154
+ inner.style.width = (100 / r) + '%'; inner.style.height = (100 / r) + '%';
155
+ inner.dataset.fit = r.toFixed(3);
156
+ }
157
+ });
158
+ }
159
+ window.addEventListener('load', function () { (document.fonts ? document.fonts.ready : Promise.resolve()).then(fitPages); });
160
+ <\/script></head><body>${E}</body></html>`}var Me=e=>JSON.parse(JSON.stringify(e)),Ne=/^\d{4}-\d{2}$/,Pe=e=>[...new Set(e)].filter(e=>Ne.test(e)).sort().reverse(),Fe=e=>String(e?.settings?.validFrom??``).slice(0,7);function Ie(e){let t=e=>`edutalk-promo-tool:month:${e}`,n=`edutalk-promo-tool:months`,r=e=>{try{let t=localStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}},i=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch{}},a=()=>Pe(r(n)??[]);if(!a().length){let a=r(`edutalk-promo-tool:data`)??Me(e),o=Fe(a);Ne.test(o)&&(i(t(o),a),i(n,[o]))}return{kind:`local`,async listMonths(){return a()},async load(e){return r(t(e))},async save(e,r){i(t(e),r),i(n,Pe([...a(),e]))},async seed(){return Me(e)}}}function Le(e,t){return{kind:`supabase`,async listMonths(){let{data:t,error:n}=await e.from(`promo_config`).select(`key`);if(n)throw n;return Pe((t??[]).map(e=>e.key))},async load(t){let{data:n,error:r}=await e.from(`promo_config`).select(`data`).eq(`key`,t).maybeSingle();if(r)throw r;return n?.data??null},async save(t,n){let{error:r}=await e.from(`promo_config`).upsert({key:t,data:n});if(r)throw r},async seed(){return Me(t)}}}function Re(e,t,{headers:n={}}={}){let r=async(t,r={})=>fetch(`${e}${t}`,{credentials:`include`,...r,headers:{...n,...r.headers}});return{kind:`rest`,async listMonths(){let e=await r(``);if(!e.ok)throw Error(`Tải danh sách tháng lỗi ${e.status}`);return Pe(await e.json())},async load(e){let t=await r(`/${e}`);if(t.status===404)return null;if(!t.ok)throw Error(`Tải dữ liệu lỗi ${t.status}`);return t.json()},async save(e,t){let n=await r(`/${e}`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok)throw Error(`Lưu dữ liệu lỗi ${n.status}`)},async seed(){return Me(t)}}}var ze={version:1,settings:{campaignName:`Mừng ngày Nhà giáo Việt Nam`,validFrom:`2026-11-01`,validTo:`2026-11-30`,labels:[{name:`IELTS Mentor`,blockedMethods:[]},{name:`CLASSUP 1-8`,blockedMethods:[]},{name:`CLASSUP 1-1`,blockedMethods:[`Sacombank`,`Citime`]}],programs:[{name:`Định kỳ`,type:`DINH_KY`},{name:`Định kỳ đặc biệt`,type:`DAC_BIET`},{name:`Liên kết trường`,type:`LKT`},{name:`Thấp điểm`,type:`MO_RONG`},{name:`Văn phòng mới`,type:`MO_RONG`},{name:`Vũ Đài Trí Tuệ`,type:`MO_RONG`}],paymentMethods:[{name:`Full`,terms:[0],giftGroup:`Full`,citime:!1,allowSingle:!0},{name:`Giai đoạn`,terms:[0],giftGroup:`Giai đoạn`,citime:!1,allowSingle:!1},{name:`Sacombank`,terms:[6,9,12],giftGroup:`Ngân hàng`,citime:!1,allowSingle:!1},{name:`Citime`,terms:[5,6,8,9,12,15],giftGroup:`Citime`,citime:!0,allowSingle:!1}],lktGroups:[{name:`LKT Toàn hệ thống`,baseProgram:`Định kỳ đặc biệt`},{name:`LKT Thấp điểm`,baseProgram:`Thấp điểm`},{name:`LKT Văn phòng mới`,baseProgram:`Văn phòng mới`},{name:`LKT Vũ Đài Trí Tuệ`,baseProgram:`Vũ Đài Trí Tuệ`}],courseCodes:[{code:`Module A`,short:`MA`,order:1,warranty:!1},{code:`Module B`,short:`MB`,order:2,warranty:!1},{code:`BS`,short:`BS`,order:3,warranty:!0},{code:`PRE`,short:`PRE`,order:4,warranty:!0},{code:`IE4.5`,short:`IE45`,order:5,warranty:!0},{code:`IE6.5(M1)`,short:`M1`,order:6,warranty:!0},{code:`IE6.5(M2)`,short:`M2`,order:7,warranty:!0},{code:`IE7.0`,short:`IE70`,order:8,warranty:!0},{code:`BT5.5`,short:`BT55`,order:9,warranty:!1},{code:`Ready`,short:`READY`,order:10,warranty:!0}],note:`Các khoá Module A, Module B, BT5.5, IE7.0 chỉ có hình thức Online. Các khoá còn lại có cả 2 hình thức Offline/Online.`},courses:[{label:`CLASSUP 1-8`,code:`Module A`,name:`Module A - Grammar`,mode:`Online`,price:24e5,voucher:5e5},{label:`CLASSUP 1-8`,code:`Module B`,name:`Module B - Pronunciation`,mode:`Online`,price:24e5,voucher:5e5},{label:`CLASSUP 1-8`,code:`BS`,name:`Basic`,mode:`Online`,price:34e5,voucher:0},{label:`CLASSUP 1-8`,code:`PRE`,name:`Pre IELTS`,mode:`Online`,price:5e6,voucher:0},{label:`CLASSUP 1-8`,code:`IE4.5`,name:`IELTS 3.5-4.5`,mode:`Online`,price:64e5,voucher:0},{label:`CLASSUP 1-8`,code:`IE6.5(M1)`,name:`IELTS 4.5-6.5 M1`,mode:`Online`,price:135e5,voucher:0},{label:`CLASSUP 1-8`,code:`IE6.5(M2)`,name:`IELTS 4.5-6.5 M2`,mode:`Online`,price:12e6,voucher:0},{label:`CLASSUP 1-8`,code:`BT5.5`,name:`Bổ trợ IELTS 5.5`,mode:`Online`,price:35e5,voucher:7e5},{label:`CLASSUP 1-8`,code:`Ready`,name:`IELTS Ready`,mode:`Online`,price:13e6,voucher:47e5},{label:`CLASSUP 1-1`,code:`Module A`,name:`Module A - Grammar`,mode:`Online`,price:24e5,voucher:5e5},{label:`CLASSUP 1-1`,code:`Module B`,name:`Module B - Pronunciation`,mode:`Online`,price:24e5,voucher:5e5},{label:`CLASSUP 1-1`,code:`BS`,name:`Basic`,mode:`Online`,price:85e5,voucher:0},{label:`CLASSUP 1-1`,code:`PRE`,name:`Pre IELTS`,mode:`Online`,price:135e5,voucher:0},{label:`CLASSUP 1-1`,code:`IE4.5`,name:`IELTS 3.5-4.5`,mode:`Online`,price:148e5,voucher:0},{label:`CLASSUP 1-1`,code:`IE6.5(M1)`,name:`IELTS 4.5-6.5 M1`,mode:`Online`,price:31e6,voucher:0},{label:`CLASSUP 1-1`,code:`IE6.5(M2)`,name:`IELTS 4.5-6.5 M2`,mode:`Online`,price:33e6,voucher:0},{label:`CLASSUP 1-1`,code:`BT5.5`,name:`Bổ trợ IELTS 5.5`,mode:`Online`,price:35e5,voucher:7e5},{label:`CLASSUP 1-1`,code:`Ready`,name:`IELTS Ready`,mode:`Online`,price:13e6,voucher:47e5},{label:`IELTS Mentor`,code:`Module A`,name:`Module A - Grammar`,mode:`Online`,price:24e5,voucher:5e5},{label:`IELTS Mentor`,code:`Module B`,name:`Module B - Pronunciation`,mode:`Online`,price:24e5,voucher:5e5},{label:`IELTS Mentor`,code:`BS`,name:`Basic`,mode:`Offline`,price:67e5,voucher:0},{label:`IELTS Mentor`,code:`BS`,name:`Basic`,mode:`Online`,price:67e5,voucher:7e5},{label:`IELTS Mentor`,code:`PRE`,name:`Pre IELTS`,mode:`Offline`,price:98e5,voucher:0},{label:`IELTS Mentor`,code:`PRE`,name:`Pre IELTS`,mode:`Online`,price:98e5,voucher:13e5},{label:`IELTS Mentor`,code:`IE4.5`,name:`IELTS 3.5 - 4.5`,mode:`Offline`,price:115e5,voucher:0},{label:`IELTS Mentor`,code:`IE4.5`,name:`IELTS 3.5 - 4.5`,mode:`Online`,price:115e5,voucher:18e5},{label:`IELTS Mentor`,code:`IE6.5(M1)`,name:`IELTS 4.5-6.5 (Module 1)`,mode:`Offline`,price:165e5,voucher:0},{label:`IELTS Mentor`,code:`IE6.5(M1)`,name:`IELTS 4.5-6.5 (Module 1)`,mode:`Online`,price:165e5,voucher:23e5},{label:`IELTS Mentor`,code:`IE6.5(M2)`,name:`IELTS 4.5-6.5 (Module 2)`,mode:`Offline`,price:165e5,voucher:0},{label:`IELTS Mentor`,code:`IE6.5(M2)`,name:`IELTS 4.5-6.5 (Module 2)`,mode:`Online`,price:165e5,voucher:3e6},{label:`IELTS Mentor`,code:`IE7.0`,name:`IELTS 6.5 - 7.0+`,mode:`Online`,price:245e5,voucher:0},{label:`IELTS Mentor`,code:`BT5.5`,name:`Bổ trợ IELTS 5.5`,mode:`Online`,price:35e5,voucher:7e5},{label:`IELTS Mentor`,code:`Ready`,name:`IELTS Ready`,mode:`Offline`,price:15e6,voucher:4e6},{label:`IELTS Mentor`,code:`Ready`,name:`IELTS Ready`,mode:`Online`,price:15e6,voucher:6e6}],programVouchers:[{label:`IELTS Mentor`,program:`Thấp điểm`,code:`Module A`,mode:`Online`,voucher:6e5},{label:`IELTS Mentor`,program:`Thấp điểm`,code:`Module B`,mode:`Online`,voucher:6e5},{label:`IELTS Mentor`,program:`Thấp điểm`,code:`BS`,mode:`Offline`,voucher:0},{label:`IELTS Mentor`,program:`Thấp điểm`,code:`BS`,mode:`Online`,voucher:45e4},{label:`IELTS Mentor`,program:`Thấp điểm`,code:`PRE`,mode:`Offline`,voucher:0},{label:`IELTS Mentor`,program:`Thấp điểm`,code:`PRE`,mode:`Online`,voucher:6e5},{label:`IELTS Mentor`,program:`Thấp điểm`,code:`IE4.5`,mode:`Offline`,voucher:0},{label:`IELTS Mentor`,program:`Thấp điểm`,code:`IE4.5`,mode:`Online`,voucher:1e6},{label:`IELTS Mentor`,program:`Thấp điểm`,code:`IE6.5(M1)`,mode:`Offline`,voucher:0},{label:`IELTS Mentor`,program:`Thấp điểm`,code:`IE6.5(M1)`,mode:`Online`,voucher:9e5},{label:`IELTS Mentor`,program:`Thấp điểm`,code:`IE6.5(M2)`,mode:`Offline`,voucher:0},{label:`IELTS Mentor`,program:`Thấp điểm`,code:`IE6.5(M2)`,mode:`Online`,voucher:2e6},{label:`IELTS Mentor`,program:`Thấp điểm`,code:`IE7.0`,mode:`Online`,voucher:7e5},{label:`IELTS Mentor`,program:`Thấp điểm`,code:`BT5.5`,mode:`Online`,voucher:8e5},{label:`IELTS Mentor`,program:`Thấp điểm`,code:`Ready`,mode:`Offline`,voucher:32e5},{label:`IELTS Mentor`,program:`Thấp điểm`,code:`Ready`,mode:`Online`,voucher:48e5},{label:`IELTS Mentor`,program:`Văn phòng mới`,code:`Module A`,mode:`Online`,voucher:6e5},{label:`IELTS Mentor`,program:`Văn phòng mới`,code:`Module B`,mode:`Online`,voucher:6e5},{label:`IELTS Mentor`,program:`Văn phòng mới`,code:`BS`,mode:`Offline`,voucher:0},{label:`IELTS Mentor`,program:`Văn phòng mới`,code:`BS`,mode:`Online`,voucher:7e5},{label:`IELTS Mentor`,program:`Văn phòng mới`,code:`PRE`,mode:`Offline`,voucher:0},{label:`IELTS Mentor`,program:`Văn phòng mới`,code:`PRE`,mode:`Online`,voucher:9e5},{label:`IELTS Mentor`,program:`Văn phòng mới`,code:`IE4.5`,mode:`Offline`,voucher:0},{label:`IELTS Mentor`,program:`Văn phòng mới`,code:`IE4.5`,mode:`Online`,voucher:15e5},{label:`IELTS Mentor`,program:`Văn phòng mới`,code:`IE6.5(M1)`,mode:`Offline`,voucher:0},{label:`IELTS Mentor`,program:`Văn phòng mới`,code:`IE6.5(M1)`,mode:`Online`,voucher:16e5},{label:`IELTS Mentor`,program:`Văn phòng mới`,code:`IE6.5(M2)`,mode:`Offline`,voucher:0},{label:`IELTS Mentor`,program:`Văn phòng mới`,code:`IE6.5(M2)`,mode:`Online`,voucher:27e5},{label:`IELTS Mentor`,program:`Văn phòng mới`,code:`IE7.0`,mode:`Online`,voucher:7e5},{label:`IELTS Mentor`,program:`Văn phòng mới`,code:`BT5.5`,mode:`Online`,voucher:8e5},{label:`IELTS Mentor`,program:`Văn phòng mới`,code:`Ready`,mode:`Offline`,voucher:35e5},{label:`IELTS Mentor`,program:`Văn phòng mới`,code:`Ready`,mode:`Online`,voucher:55e5},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,code:`Module A`,mode:`Online`,voucher:5e5},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,code:`Module B`,mode:`Online`,voucher:5e5},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,code:`BS`,mode:`Online`,voucher:0},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,code:`PRE`,mode:`Online`,voucher:0},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,code:`IE4.5`,mode:`Online`,voucher:0},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,code:`IE6.5(M1)`,mode:`Online`,voucher:0},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,code:`IE6.5(M2)`,mode:`Online`,voucher:0},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,code:`BT5.5`,mode:`Online`,voucher:7e5},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,code:`Ready`,mode:`Online`,voucher:47e5},{label:`CLASSUP 1-1`,program:`Vũ đài trí tuệ`,code:`Module A`,mode:`Online`,voucher:5e5},{label:`CLASSUP 1-1`,program:`Vũ đài trí tuệ`,code:`Module B`,mode:`Online`,voucher:5e5},{label:`CLASSUP 1-1`,program:`Vũ đài trí tuệ`,code:`BS`,mode:`Online`,voucher:0},{label:`CLASSUP 1-1`,program:`Vũ đài trí tuệ`,code:`PRE`,mode:`Online`,voucher:0},{label:`CLASSUP 1-1`,program:`Vũ đài trí tuệ`,code:`IE4.5`,mode:`Online`,voucher:0},{label:`CLASSUP 1-1`,program:`Vũ đài trí tuệ`,code:`IE6.5(M1)`,mode:`Online`,voucher:0},{label:`CLASSUP 1-1`,program:`Vũ đài trí tuệ`,code:`IE6.5(M2)`,mode:`Online`,voucher:0},{label:`CLASSUP 1-1`,program:`Vũ đài trí tuệ`,code:`BT5.5`,mode:`Online`,voucher:7e5},{label:`CLASSUP 1-1`,program:`Vũ đài trí tuệ`,code:`Ready`,mode:`Online`,voucher:47e5},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,code:`Module A`,mode:`Online`,voucher:5e5},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,code:`Module B`,mode:`Online`,voucher:5e5},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,code:`BS`,mode:`Offline`,voucher:0},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,code:`BS`,mode:`Online`,voucher:7e5},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,code:`PRE`,mode:`Offline`,voucher:0},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,code:`PRE`,mode:`Online`,voucher:13e5},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,code:`IE4.5`,mode:`Offline`,voucher:0},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,code:`IE4.5`,mode:`Online`,voucher:18e5},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,code:`IE6.5(M1)`,mode:`Offline`,voucher:0},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,code:`IE6.5(M1)`,mode:`Online`,voucher:23e5},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,code:`IE6.5(M2)`,mode:`Offline`,voucher:0},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,code:`IE6.5(M2)`,mode:`Online`,voucher:3e6},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,code:`IE7.0`,mode:`Online`,voucher:0},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,code:`BT5.5`,mode:`Online`,voucher:7e5},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,code:`Ready`,mode:`Offline`,voucher:4e6},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,code:`Ready`,mode:`Online`,voucher:6e6}],warranty:[{name:`Tiêu chuẩn`,rate:0},{name:`Bạc`,rate:.03},{name:`Vàng`,rate:.05},{name:`Kim Cương`,rate:.08}],periodic:[{label:`IELTS Mentor`,from:1,to:1,pct:.15,cashback:0},{label:`IELTS Mentor`,from:2,to:2,pct:.24,cashback:8e5},{label:`IELTS Mentor`,from:3,to:3,pct:.26,cashback:15e5},{label:`IELTS Mentor`,from:4,to:4,pct:.26,cashback:2e6},{label:`IELTS Mentor`,from:5,to:5,pct:.28,cashback:25e5},{label:`IELTS Mentor`,from:6,to:99,pct:.3,cashback:25e5},{label:`CLASSUP 1-8`,from:1,to:1,pct:.15,cashback:0},{label:`CLASSUP 1-8`,from:2,to:2,pct:.24,cashback:4e5},{label:`CLASSUP 1-8`,from:3,to:3,pct:.26,cashback:8e5},{label:`CLASSUP 1-8`,from:4,to:4,pct:.28,cashback:8e5},{label:`CLASSUP 1-8`,from:5,to:5,pct:.3,cashback:1e6},{label:`CLASSUP 1-8`,from:6,to:99,pct:.3,cashback:14e5},{label:`CLASSUP 1-1`,from:1,to:1,pct:.18,cashback:0},{label:`CLASSUP 1-1`,from:2,to:2,pct:.21,cashback:5e5},{label:`CLASSUP 1-1`,from:3,to:3,pct:.23,cashback:8e5},{label:`CLASSUP 1-1`,from:4,to:4,pct:.23,cashback:15e5},{label:`CLASSUP 1-1`,from:5,to:5,pct:.25,cashback:2e6},{label:`CLASSUP 1-1`,from:6,to:99,pct:.25,cashback:25e5}],special:[{label:`IELTS Mentor`,method:`Full`,term:0,pct:.4,applyType:`TOAN_BO`,minCourses:1,note:`Khóa lẻ và combo`},{label:`IELTS Mentor`,method:`Giai đoạn`,term:0,pct:.38,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`IELTS Mentor`,method:`Sacombank`,term:6,pct:.37,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`IELTS Mentor`,method:`Sacombank`,term:9,pct:.36,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`IELTS Mentor`,method:`Sacombank`,term:12,pct:.36,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`IELTS Mentor`,method:`Citime`,term:5,pct:.36,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,method:`Citime`,term:6,pct:.35,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,method:`Citime`,term:8,pct:.34,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,method:`Citime`,term:9,pct:.34,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,method:`Citime`,term:12,pct:.33,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,method:`Citime`,term:15,pct:.33,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`CLASSUP 1-8`,method:`Full`,term:0,pct:.4,applyType:`TOAN_BO`,minCourses:1,note:`Khóa lẻ và combo`},{label:`CLASSUP 1-8`,method:`Giai đoạn`,term:0,pct:.38,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`CLASSUP 1-8`,method:`Sacombank`,term:6,pct:.37,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`CLASSUP 1-8`,method:`Sacombank`,term:9,pct:.36,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`CLASSUP 1-8`,method:`Sacombank`,term:12,pct:.36,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`CLASSUP 1-8`,method:`Citime`,term:5,pct:.36,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`CLASSUP 1-8`,method:`Citime`,term:6,pct:.35,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`CLASSUP 1-8`,method:`Citime`,term:8,pct:.34,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`CLASSUP 1-8`,method:`Citime`,term:9,pct:.34,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`CLASSUP 1-8`,method:`Citime`,term:12,pct:.33,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`CLASSUP 1-8`,method:`Citime`,term:15,pct:.33,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`CLASSUP 1-1`,method:`Full`,term:0,pct:.3,applyType:`TOAN_BO`,minCourses:1,note:`Khóa lẻ và combo`},{label:`CLASSUP 1-1`,method:`Giai đoạn`,term:0,pct:.27,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`}],lkt:[{label:`IELTS Mentor`,group:`LKT Toàn hệ thống`,format:`Format 1`,cut:.06},{label:`IELTS Mentor`,group:`LKT Toàn hệ thống`,format:`Format 2`,cut:.05},{label:`IELTS Mentor`,group:`LKT Toàn hệ thống`,format:`Format 3`,cut:.04},{label:`IELTS Mentor`,group:`LKT Toàn hệ thống`,format:`Format 4`,cut:.03},{label:`IELTS Mentor`,group:`LKT Toàn hệ thống`,format:`Format 5`,cut:.03},{label:`IELTS Mentor`,group:`LKT Toàn hệ thống`,format:`Format 6`,cut:0},{label:`IELTS Mentor`,group:`LKT Toàn hệ thống`,format:`Format 7`,cut:.06},{label:`CLASSUP 1-8`,group:`LKT Toàn hệ thống`,format:`Format 1`,cut:.06},{label:`CLASSUP 1-8`,group:`LKT Toàn hệ thống`,format:`Format 2`,cut:.05},{label:`CLASSUP 1-8`,group:`LKT Toàn hệ thống`,format:`Format 3`,cut:.04},{label:`CLASSUP 1-8`,group:`LKT Toàn hệ thống`,format:`Format 4`,cut:.03},{label:`CLASSUP 1-8`,group:`LKT Toàn hệ thống`,format:`Format 5`,cut:.03},{label:`CLASSUP 1-8`,group:`LKT Toàn hệ thống`,format:`Format 6`,cut:0},{label:`CLASSUP 1-8`,group:`LKT Toàn hệ thống`,format:`Format 7`,cut:.06},{label:`CLASSUP 1-1`,group:`LKT Toàn hệ thống`,format:`Format 1`,cut:.06},{label:`CLASSUP 1-1`,group:`LKT Toàn hệ thống`,format:`Format 2`,cut:.05},{label:`CLASSUP 1-1`,group:`LKT Toàn hệ thống`,format:`Format 3`,cut:.04},{label:`CLASSUP 1-1`,group:`LKT Toàn hệ thống`,format:`Format 4`,cut:.03},{label:`CLASSUP 1-1`,group:`LKT Toàn hệ thống`,format:`Format 5`,cut:.03},{label:`CLASSUP 1-1`,group:`LKT Toàn hệ thống`,format:`Format 6`,cut:0},{label:`CLASSUP 1-1`,group:`LKT Toàn hệ thống`,format:`Format 7`,cut:.06},{label:`IELTS Mentor`,group:`LKT Thấp điểm`,format:`Format 1`,cut:.06},{label:`IELTS Mentor`,group:`LKT Thấp điểm`,format:`Format 2`,cut:.05},{label:`IELTS Mentor`,group:`LKT Thấp điểm`,format:`Format 3`,cut:.04},{label:`IELTS Mentor`,group:`LKT Thấp điểm`,format:`Format 4`,cut:.03},{label:`IELTS Mentor`,group:`LKT Thấp điểm`,format:`Format 5`,cut:.03},{label:`IELTS Mentor`,group:`LKT Thấp điểm`,format:`Format 6`,cut:0},{label:`IELTS Mentor`,group:`LKT Thấp điểm`,format:`Format 7`,cut:.06},{label:`IELTS Mentor`,group:`LKT Văn phòng mới`,format:`Format 1`,cut:.06},{label:`IELTS Mentor`,group:`LKT Văn phòng mới`,format:`Format 2`,cut:.05},{label:`IELTS Mentor`,group:`LKT Văn phòng mới`,format:`Format 3`,cut:.04},{label:`IELTS Mentor`,group:`LKT Văn phòng mới`,format:`Format 4`,cut:.03},{label:`IELTS Mentor`,group:`LKT Văn phòng mới`,format:`Format 5`,cut:.03},{label:`IELTS Mentor`,group:`LKT Văn phòng mới`,format:`Format 6`,cut:0},{label:`IELTS Mentor`,group:`LKT Văn phòng mới`,format:`Format 7`,cut:.06},{label:`IELTS Mentor`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 1`,cut:.06},{label:`IELTS Mentor`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 2`,cut:.05},{label:`IELTS Mentor`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 3`,cut:.04},{label:`IELTS Mentor`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 4`,cut:.03},{label:`IELTS Mentor`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 5`,cut:.03},{label:`IELTS Mentor`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 6`,cut:0},{label:`IELTS Mentor`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 7`,cut:.06},{label:`CLASSUP 1-8`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 1`,cut:.06},{label:`CLASSUP 1-8`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 2`,cut:.05},{label:`CLASSUP 1-8`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 3`,cut:.04},{label:`CLASSUP 1-8`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 4`,cut:.03},{label:`CLASSUP 1-8`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 5`,cut:.03},{label:`CLASSUP 1-8`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 6`,cut:0},{label:`CLASSUP 1-8`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 7`,cut:.06},{label:`CLASSUP 1-1`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 1`,cut:.06},{label:`CLASSUP 1-1`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 2`,cut:.05},{label:`CLASSUP 1-1`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 3`,cut:.04},{label:`CLASSUP 1-1`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 4`,cut:.03},{label:`CLASSUP 1-1`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 5`,cut:.03},{label:`CLASSUP 1-1`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 6`,cut:0},{label:`CLASSUP 1-1`,group:`LKT Vũ Đài Trí Tuệ`,format:`Format 7`,cut:.06}],extended:[{label:`IELTS Mentor`,program:`Thấp điểm`,method:`Full`,term:0,pct:.48,applyType:`TOAN_BO`,minCourses:1,note:`Khóa lẻ và combo`},{label:`IELTS Mentor`,program:`Thấp điểm`,method:`Giai đoạn`,term:0,pct:.46,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`IELTS Mentor`,program:`Thấp điểm`,method:`Sacombank`,term:6,pct:.45,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`IELTS Mentor`,program:`Thấp điểm`,method:`Sacombank`,term:9,pct:.44,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`IELTS Mentor`,program:`Thấp điểm`,method:`Sacombank`,term:12,pct:.44,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`IELTS Mentor`,program:`Thấp điểm`,method:`Citime`,term:5,pct:.44,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Thấp điểm`,method:`Citime`,term:6,pct:.43,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Thấp điểm`,method:`Citime`,term:8,pct:.42,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Thấp điểm`,method:`Citime`,term:9,pct:.42,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Thấp điểm`,method:`Citime`,term:12,pct:.41,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Thấp điểm`,method:`Citime`,term:15,pct:.41,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Văn phòng mới`,method:`Full`,term:0,pct:.44,applyType:`TOAN_BO`,minCourses:1,note:`Khóa lẻ và combo`},{label:`IELTS Mentor`,program:`Văn phòng mới`,method:`Giai đoạn`,term:0,pct:.42,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`IELTS Mentor`,program:`Văn phòng mới`,method:`Sacombank`,term:6,pct:.41,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`IELTS Mentor`,program:`Văn phòng mới`,method:`Sacombank`,term:9,pct:.4,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`IELTS Mentor`,program:`Văn phòng mới`,method:`Sacombank`,term:12,pct:.4,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`IELTS Mentor`,program:`Văn phòng mới`,method:`Citime`,term:5,pct:.4,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Văn phòng mới`,method:`Citime`,term:6,pct:.39,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Văn phòng mới`,method:`Citime`,term:8,pct:.38,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Văn phòng mới`,method:`Citime`,term:9,pct:.38,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Văn phòng mới`,method:`Citime`,term:12,pct:.37,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Văn phòng mới`,method:`Citime`,term:15,pct:.37,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,method:`Full`,term:0,pct:.45,applyType:`TOAN_BO`,minCourses:1,note:`Khóa lẻ và combo`},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,method:`Giai đoạn`,term:0,pct:.43,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,method:`Sacombank`,term:6,pct:.42,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,method:`Sacombank`,term:9,pct:.41,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,method:`Sacombank`,term:12,pct:.41,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,method:`Citime`,term:5,pct:.41,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,method:`Citime`,term:6,pct:.4,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,method:`Citime`,term:8,pct:.39,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,method:`Citime`,term:9,pct:.39,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,method:`Citime`,term:12,pct:.38,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`IELTS Mentor`,program:`Vũ đài trí tuệ`,method:`Citime`,term:15,pct:.38,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,method:`Full`,term:0,pct:.45,applyType:`TOAN_BO`,minCourses:1,note:`Khóa lẻ và combo`},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,method:`Giai đoạn`,term:0,pct:.43,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,method:`Sacombank`,term:6,pct:.42,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,method:`Sacombank`,term:9,pct:.41,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,method:`Sacombank`,term:12,pct:.41,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,method:`Citime`,term:5,pct:.41,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,method:`Citime`,term:6,pct:.4,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,method:`Citime`,term:8,pct:.39,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,method:`Citime`,term:9,pct:.39,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,method:`Citime`,term:12,pct:.38,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`CLASSUP 1-8`,program:`Vũ đài trí tuệ`,method:`Citime`,term:15,pct:.38,applyType:`LO_TRINH_CU_THE`,minCourses:2,note:`Theo Sheet 05`},{label:`CLASSUP 1-1`,program:`Vũ đài trí tuệ`,method:`Full`,term:0,pct:.35,applyType:`TOAN_BO`,minCourses:1,note:`Khóa lẻ và combo`},{label:`CLASSUP 1-1`,program:`Vũ đài trí tuệ`,method:`Giai đoạn`,term:0,pct:.33,applyType:`COMBO`,minCourses:2,note:`Combo từ 2 khóa`}],citimeRoutes:[{label:`IELTS Mentor`,group:`Chuẩn`,count:2,code:`BS_PRE`,name:`BS + PRE`,status:`Áp dụng`,maxTerm:5},{label:`IELTS Mentor`,group:`Chuẩn`,count:2,code:`PRE_IE45`,name:`PRE + IE4.5`,status:`Áp dụng`,maxTerm:5},{label:`IELTS Mentor`,group:`Chuẩn`,count:2,code:`IE45_M1`,name:`IE4.5 + IE6.5(M1)`,status:`Áp dụng`,maxTerm:8},{label:`IELTS Mentor`,group:`Chuẩn`,count:2,code:`M1_M2`,name:`IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:8},{label:`IELTS Mentor`,group:`Chuẩn`,count:2,code:`M2_IE70`,name:`IE6.5(M2) + IE7.0`,status:`Áp dụng`,maxTerm:8},{label:`IELTS Mentor`,group:`Chuẩn`,count:3,code:`BS_PRE_IE45`,name:`BS + PRE + IE4.5`,status:`Áp dụng`,maxTerm:6},{label:`IELTS Mentor`,group:`Chuẩn`,count:3,code:`PRE_IE45_M1`,name:`PRE + IE4.5 + IE6.5(M1)`,status:`Áp dụng`,maxTerm:9},{label:`IELTS Mentor`,group:`Chuẩn`,count:3,code:`IE45_M1_M2`,name:`IE4.5 + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:9},{label:`IELTS Mentor`,group:`Chuẩn`,count:3,code:`M1_M2_IE70`,name:`IE6.5(M1) + IE6.5(M2) + IE7.0`,status:`Áp dụng`,maxTerm:9},{label:`IELTS Mentor`,group:`Chuẩn`,count:4,code:`BS_PRE_IE45_M1`,name:`BS + PRE + IE4.5 + IE6.5(M1)`,status:`Áp dụng`,maxTerm:12},{label:`IELTS Mentor`,group:`Chuẩn`,count:4,code:`PRE_IE45_M1_M2`,name:`PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Chuẩn`,count:4,code:`IE45_M1_M2_IE70`,name:`IE4.5 + IE6.5(M1) + IE6.5(M2) + IE7.0`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Chuẩn`,count:5,code:`BS_PRE_IE45_M1_M2`,name:`BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Chuẩn`,count:5,code:`PRE_IE45_M1_M2_IE70`,name:`PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + IE7.0`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Chuẩn`,count:6,code:`BS_PRE_IE45_M1_M2_IE70`,name:`BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + IE7.0`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp luyện thi`,count:2,code:`M2_READY`,name:`IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:5},{label:`IELTS Mentor`,group:`Kết hợp luyện thi`,count:3,code:`M1_BT55_READY`,name:`IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:6},{label:`IELTS Mentor`,group:`Kết hợp luyện thi`,count:3,code:`M1_M2_READY`,name:`IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:9},{label:`IELTS Mentor`,group:`Kết hợp luyện thi`,count:4,code:`IE45_M1_BT55_READY`,name:`IE4.5 + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:9},{label:`IELTS Mentor`,group:`Kết hợp luyện thi`,count:4,code:`IE45_M1_M2_READY`,name:`IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:12},{label:`IELTS Mentor`,group:`Kết hợp luyện thi`,count:5,code:`PRE_IE45_M1_BT55_READY`,name:`PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:12},{label:`IELTS Mentor`,group:`Kết hợp luyện thi`,count:5,code:`PRE_IE45_M1_M2_READY`,name:`PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp luyện thi`,count:6,code:`BS_PRE_IE45_M1_M2_READY`,name:`BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp luyện thi`,count:6,code:`BS_PRE_IE45_M1_BT55_READY`,name:`BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:2,code:`MA_BS`,name:`Module A + BS`,status:`Không áp dụng`,maxTerm:0},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:2,code:`MB_BS`,name:`Module B + BS`,status:`Không áp dụng`,maxTerm:0},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:2,code:`MB_PRE`,name:`Module B + PRE`,status:`Không áp dụng`,maxTerm:0},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:2,code:`MB_IE45`,name:`Module B + IE4.5`,status:`Không áp dụng`,maxTerm:0},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:2,code:`MB_M1`,name:`Module B + IE6.5(M1)`,status:`Không áp dụng`,maxTerm:0},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:2,code:`MB_M2`,name:`Module B + IE6.5(M2)`,status:`Không áp dụng`,maxTerm:0},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:2,code:`MB_IE70`,name:`Module B + IE7.0`,status:`Không áp dụng`,maxTerm:0},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:3,code:`MA_MB_BS`,name:`Module A + Module B + BS`,status:`Không áp dụng`,maxTerm:0},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:3,code:`MA_BS_PRE`,name:`Module A + BS + PRE`,status:`Áp dụng`,maxTerm:5},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:3,code:`MB_BS_PRE`,name:`Module B + BS + PRE`,status:`Áp dụng`,maxTerm:5},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:3,code:`MB_PRE_IE45`,name:`Module B + PRE + IE4.5`,status:`Áp dụng`,maxTerm:5},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:3,code:`MB_IE45_M1`,name:`Module B + IE4.5 + IE6.5(M1)`,status:`Áp dụng`,maxTerm:8},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:3,code:`MB_M1_M2`,name:`Module B + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:8},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:3,code:`MB_M2_IE70`,name:`Module B + IE6.5(M2) + IE7.0`,status:`Áp dụng`,maxTerm:8},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:4,code:`MA_MB_BS_PRE`,name:`Module A + Module B + BS + PRE`,status:`Áp dụng`,maxTerm:5},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:4,code:`MA_BS_PRE_IE45`,name:`Module A + BS + PRE + IE4.5`,status:`Áp dụng`,maxTerm:6},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:4,code:`MB_BS_PRE_IE45`,name:`Module B + BS + PRE + IE4.5`,status:`Áp dụng`,maxTerm:6},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:4,code:`MB_PRE_IE45_M1`,name:`Module B + PRE + IE4.5 + IE6.5(M1)`,status:`Áp dụng`,maxTerm:9},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:4,code:`MB_IE45_M1_M2`,name:`Module B + IE4.5 + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:9},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:4,code:`MB_M1_M2_IE70`,name:`Module B + IE6.5(M1) + IE6.5(M2) + IE7.0`,status:`Áp dụng`,maxTerm:9},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:5,code:`MA_MB_BS_PRE_IE45`,name:`Module A + Module B + BS + PRE + IE4.5`,status:`Áp dụng`,maxTerm:6},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:5,code:`MA_BS_PRE_IE45_M1`,name:`Module A + BS + PRE + IE4.5 + IE6.5(M1)`,status:`Áp dụng`,maxTerm:12},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:5,code:`MB_BS_PRE_IE45_M1`,name:`Module B + BS + PRE + IE4.5 + IE6.5(M1)`,status:`Áp dụng`,maxTerm:12},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:5,code:`MB_PRE_IE45_M1_M2`,name:`Module B + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:5,code:`MB_IE45_M1_M2_IE70`,name:`Module B + IE4.5 + IE6.5(M1) + IE6.5(M2) + IE7.0`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:6,code:`MA_MB_BS_PRE_IE45_M1`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1)`,status:`Áp dụng`,maxTerm:12},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:6,code:`MA_BS_PRE_IE45_M1_M2`,name:`Module A + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:6,code:`MB_BS_PRE_IE45_M1_M2`,name:`Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:6,code:`MB_PRE_IE45_M1_M2_IE70`,name:`Module B + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + IE7.0`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:7,code:`MA_MB_BS_PRE_IE45_M1_M2`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:7,code:`MB_BS_PRE_IE45_M1_M2_IE70`,name:`Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + IE7.0`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng`,count:8,code:`MA_MB_BS_PRE_IE45_M1_M2_IE70`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + IE7.0`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:3,code:`MB_M2_READY`,name:`Module B + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:5},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:4,code:`MB_M1_BT55_READY`,name:`Module B + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:6},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:4,code:`MB_M1_M2_READY`,name:`Module B + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:9},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:5,code:`MB_IE45_M1_BT55_READY`,name:`Module B + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:9},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:5,code:`MB_IE45_M1_M2_READY`,name:`Module B + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:12},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:6,code:`MB_PRE_IE45_M1_BT55_READY`,name:`Module B + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:12},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:6,code:`MB_PRE_IE45_M1_M2_READY`,name:`Module B + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:7,code:`MA_BS_PRE_IE45_M1_BT55_READY`,name:`Module A + BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:7,code:`MB_BS_PRE_IE45_M1_BT55_READY`,name:`Module B + BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:7,code:`MA_BS_PRE_IE45_M1_M2_READY`,name:`Module A + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:7,code:`MB_BS_PRE_IE45_M1_M2_READY`,name:`Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:8,code:`MA_MB_BS_PRE_IE45_M1_M2_READY`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:15},{label:`IELTS Mentor`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:8,code:`MA_MB_BS_PRE_IE45_M1_BT55_READY`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:15},{label:`CLASSUP 1-8`,group:`Chuẩn`,count:2,code:`BS_PRE`,name:`BS + PRE`,status:`Áp dụng`,maxTerm:5},{label:`CLASSUP 1-8`,group:`Chuẩn`,count:2,code:`PRE_IE45`,name:`PRE + IE4.5`,status:`Áp dụng`,maxTerm:5},{label:`CLASSUP 1-8`,group:`Chuẩn`,count:2,code:`IE45_M1`,name:`IE4.5 + IE6.5(M1)`,status:`Áp dụng`,maxTerm:8},{label:`CLASSUP 1-8`,group:`Chuẩn`,count:2,code:`M1_M2`,name:`IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:8},{label:`CLASSUP 1-8`,group:`Chuẩn`,count:3,code:`BS_PRE_IE45`,name:`BS + PRE + IE4.5`,status:`Áp dụng`,maxTerm:6},{label:`CLASSUP 1-8`,group:`Chuẩn`,count:3,code:`PRE_IE45_M1`,name:`PRE + IE4.5 + IE6.5(M1)`,status:`Áp dụng`,maxTerm:9},{label:`CLASSUP 1-8`,group:`Chuẩn`,count:3,code:`IE45_M1_M2`,name:`IE4.5 + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:9},{label:`CLASSUP 1-8`,group:`Chuẩn`,count:4,code:`BS_PRE_IE45_M1`,name:`BS + PRE + IE4.5 + IE6.5(M1)`,status:`Áp dụng`,maxTerm:12},{label:`CLASSUP 1-8`,group:`Chuẩn`,count:4,code:`PRE_IE45_M1_M2`,name:`PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:15},{label:`CLASSUP 1-8`,group:`Chuẩn`,count:5,code:`BS_PRE_IE45_M1_M2`,name:`BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:15},{label:`CLASSUP 1-8`,group:`Kết hợp luyện thi`,count:2,code:`M2_READY`,name:`IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:5},{label:`CLASSUP 1-8`,group:`Kết hợp luyện thi`,count:3,code:`M1_BT55_READY`,name:`IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:6},{label:`CLASSUP 1-8`,group:`Kết hợp luyện thi`,count:3,code:`M1_M2_READY`,name:`IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:9},{label:`CLASSUP 1-8`,group:`Kết hợp luyện thi`,count:4,code:`IE45_M1_BT55_READY`,name:`IE4.5 + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:9},{label:`CLASSUP 1-8`,group:`Kết hợp luyện thi`,count:4,code:`IE45_M1_M2_READY`,name:`IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:12},{label:`CLASSUP 1-8`,group:`Kết hợp luyện thi`,count:5,code:`PRE_IE45_M1_BT55_READY`,name:`PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:12},{label:`CLASSUP 1-8`,group:`Kết hợp luyện thi`,count:5,code:`PRE_IE45_M1_M2_READY`,name:`PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:15},{label:`CLASSUP 1-8`,group:`Kết hợp luyện thi`,count:6,code:`BS_PRE_IE45_M1_M2_READY`,name:`BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:15},{label:`CLASSUP 1-8`,group:`Kết hợp luyện thi`,count:6,code:`BS_PRE_IE45_M1_BT55_READY`,name:`BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:15},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:2,code:`MA_BS`,name:`Module A + BS`,status:`Không áp dụng`,maxTerm:0},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:2,code:`MB_BS`,name:`Module B + BS`,status:`Không áp dụng`,maxTerm:0},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:2,code:`MB_PRE`,name:`Module B + PRE`,status:`Không áp dụng`,maxTerm:0},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:2,code:`MB_IE45`,name:`Module B + IE4.5`,status:`Không áp dụng`,maxTerm:0},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:2,code:`MB_M1`,name:`Module B + IE6.5(M1)`,status:`Không áp dụng`,maxTerm:0},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:2,code:`MB_M2`,name:`Module B + IE6.5(M2)`,status:`Không áp dụng`,maxTerm:0},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:3,code:`MA_MB_BS`,name:`Module A + Module B + BS`,status:`Không áp dụng`,maxTerm:0},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:3,code:`MA_BS_PRE`,name:`Module A + BS + PRE`,status:`Áp dụng`,maxTerm:5},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:3,code:`MB_BS_PRE`,name:`Module B + BS + PRE`,status:`Áp dụng`,maxTerm:5},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:3,code:`MB_PRE_IE45`,name:`Module B + PRE + IE4.5`,status:`Áp dụng`,maxTerm:5},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:3,code:`MB_IE45_M1`,name:`Module B + IE4.5 + IE6.5(M1)`,status:`Áp dụng`,maxTerm:8},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:3,code:`MB_M1_M2`,name:`Module B + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:8},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:4,code:`MA_MB_BS_PRE`,name:`Module A + Module B + BS + PRE`,status:`Áp dụng`,maxTerm:5},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:4,code:`MA_BS_PRE_IE45`,name:`Module A + BS + PRE + IE4.5`,status:`Áp dụng`,maxTerm:6},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:4,code:`MB_BS_PRE_IE45`,name:`Module B + BS + PRE + IE4.5`,status:`Áp dụng`,maxTerm:6},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:4,code:`MB_PRE_IE45_M1`,name:`Module B + PRE + IE4.5 + IE6.5(M1)`,status:`Áp dụng`,maxTerm:9},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:4,code:`MB_IE45_M1_M2`,name:`Module B + IE4.5 + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:9},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:5,code:`MA_MB_BS_PRE_IE45`,name:`Module A + Module B + BS + PRE + IE4.5`,status:`Áp dụng`,maxTerm:6},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:5,code:`MA_BS_PRE_IE45_M1`,name:`Module A + BS + PRE + IE4.5 + IE6.5(M1)`,status:`Áp dụng`,maxTerm:12},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:5,code:`MB_BS_PRE_IE45_M1`,name:`Module B + BS + PRE + IE4.5 + IE6.5(M1)`,status:`Áp dụng`,maxTerm:12},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:5,code:`MB_PRE_IE45_M1_M2`,name:`Module B + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:15},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:6,code:`MA_MB_BS_PRE_IE45_M1`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1)`,status:`Áp dụng`,maxTerm:12},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:6,code:`MA_BS_PRE_IE45_M1_M2`,name:`Module A + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:15},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:6,code:`MB_BS_PRE_IE45_M1_M2`,name:`Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:15},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng`,count:7,code:`MA_MB_BS_PRE_IE45_M1_M2`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,status:`Áp dụng`,maxTerm:15},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:3,code:`MB_M2_READY`,name:`Module B + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:5},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:4,code:`MB_M1_BT55_READY`,name:`Module B + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:6},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:4,code:`MB_M1_M2_READY`,name:`Module B + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:9},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:5,code:`MB_IE45_M1_BT55_READY`,name:`Module B + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:9},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:5,code:`MB_IE45_M1_M2_READY`,name:`Module B + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:12},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:6,code:`MB_PRE_IE45_M1_BT55_READY`,name:`Module B + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:12},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:6,code:`MB_PRE_IE45_M1_M2_READY`,name:`Module B + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:15},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:7,code:`MA_BS_PRE_IE45_M1_BT55_READY`,name:`Module A + BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:15},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:7,code:`MB_BS_PRE_IE45_M1_BT55_READY`,name:`Module B + BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:15},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:7,code:`MA_BS_PRE_IE45_M1_M2_READY`,name:`Module A + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:15},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:7,code:`MB_BS_PRE_IE45_M1_M2_READY`,name:`Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:15},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:8,code:`MA_MB_BS_PRE_IE45_M1_M2_READY`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,status:`Áp dụng`,maxTerm:15},{label:`CLASSUP 1-8`,group:`Kết hợp bổ trợ nền tảng - luyện thi`,count:8,code:`MA_MB_BS_PRE_IE45_M1_BT55_READY`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,status:`Áp dụng`,maxTerm:15}],gifts:[{label:`IELTS Mentor`,program:`Định kỳ`,milestone:1,method:`Full`,content:`Bộ quà tặng trị giá 1.970.000đ`,value:197e4},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:2,method:`Full`,content:`Bộ quà tặng trị giá 2.530.000đ`,value:253e4},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:3,method:`Full`,content:`Bộ quà tặng trị giá 3.260.000đ`,value:326e4},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:4,method:`Full`,content:`Bộ quà tặng trị giá 5.380.000đ`,value:538e4},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:5,method:`Full`,content:`Bộ quà tặng trị giá 6.180.000đ`,value:618e4},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:6,method:`Full`,content:`Bộ quà tặng trị giá 6.770.000đ`,value:677e4},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:2,method:`Ngân hàng`,content:`Bộ quà tặng trị giá 1.750.000đ`,value:175e4},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:3,method:`Ngân hàng`,content:`Bộ quà tặng trị giá 1.750.000đ`,value:175e4},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:4,method:`Ngân hàng`,content:`Bộ quà tặng trị giá 3.260.000đ`,value:326e4},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:5,method:`Ngân hàng`,content:`Bộ quà tặng trị giá 3.260.000đ`,value:326e4},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:6,method:`Ngân hàng`,content:`Bộ quà tặng trị giá 3.260.000đ`,value:326e4},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:2,method:`Citime`,content:`100% phí lãi suất trả góp`,value:0},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:3,method:`Citime`,content:`100% phí lãi suất trả góp`,value:0},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:4,method:`Citime`,content:`100% phí lãi suất trả góp`,value:0},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:5,method:`Citime`,content:`100% phí lãi suất trả góp`,value:0},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:6,method:`Citime`,content:`100% phí lãi suất trả góp`,value:0},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:3,method:`Giai đoạn`,content:`Voucher giảm học phí 500.000đ`,value:5e5},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:4,method:`Giai đoạn`,content:`Voucher giảm học phí 800.000đ`,value:8e5},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:5,method:`Giai đoạn`,content:`Voucher giảm học phí 1.000.000đ`,value:1e6},{label:`IELTS Mentor`,program:`Định kỳ`,milestone:6,method:`Giai đoạn`,content:`Voucher giảm học phí 1.500.000đ`,value:15e5},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:1,method:`Full`,content:`Bộ quà tặng trị giá 1.140.000đ`,value:114e4},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:2,method:`Full`,content:`Bộ quà tặng trị giá 1.650.000đ`,value:165e4},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:3,method:`Full`,content:`Bộ quà tặng trị giá 2.000.000đ`,value:2e6},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:4,method:`Full`,content:`Bộ quà tặng trị giá 3.260.000đ`,value:326e4},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:5,method:`Full`,content:`Bộ quà tặng trị giá 4.850.000đ`,value:485e4},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:6,method:`Full`,content:`Bộ quà tặng trị giá 5.200.000đ`,value:52e5},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:2,method:`Ngân hàng`,content:`Bộ quà tặng trị giá 1.140.000đ`,value:114e4},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:3,method:`Ngân hàng`,content:`Bộ quà tặng trị giá 1.140.000đ`,value:114e4},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:4,method:`Ngân hàng`,content:`Bộ quà tặng trị giá 2.470.000đ`,value:247e4},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:5,method:`Ngân hàng`,content:`Bộ quà tặng trị giá 2.470.000đ`,value:247e4},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:6,method:`Ngân hàng`,content:`Bộ quà tặng trị giá 3.260.000đ`,value:326e4},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:2,method:`Citime`,content:`100% phí lãi suất trả góp`,value:0},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:3,method:`Citime`,content:`100% phí lãi suất trả góp`,value:0},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:4,method:`Citime`,content:`100% phí lãi suất trả góp`,value:0},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:5,method:`Citime`,content:`100% phí lãi suất trả góp`,value:0},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:6,method:`Citime`,content:`100% phí lãi suất trả góp`,value:0},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:3,method:`Giai đoạn`,content:`Voucher giảm học phí 500.000đ`,value:5e5},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:4,method:`Giai đoạn`,content:`Voucher giảm học phí 800.000đ`,value:8e5},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:5,method:`Giai đoạn`,content:`Voucher giảm học phí 1.000.000đ`,value:1e6},{label:`CLASSUP 1-8`,program:`Định kỳ`,milestone:6,method:`Giai đoạn`,content:`Voucher giảm học phí 1.500.000đ`,value:15e5},{label:`CLASSUP 1-1`,program:`Định kỳ`,milestone:1,method:`Full`,content:`Bộ quà tặng trị giá 1.650.000đ`,value:165e4},{label:`CLASSUP 1-1`,program:`Định kỳ`,milestone:2,method:`Full`,content:`Bộ quà tặng trị giá 2.000.000đ`,value:2e6},{label:`CLASSUP 1-1`,program:`Định kỳ`,milestone:3,method:`Full`,content:`Bộ quà tặng trị giá 2.470.000đ`,value:247e4},{label:`CLASSUP 1-1`,program:`Định kỳ`,milestone:4,method:`Full`,content:`Bộ quà tặng trị giá 3.260.000đ`,value:326e4},{label:`CLASSUP 1-1`,program:`Định kỳ`,milestone:5,method:`Full`,content:`Bộ quà tặng trị giá 4.850.000đ`,value:485e4},{label:`CLASSUP 1-1`,program:`Định kỳ`,milestone:6,method:`Full`,content:`Bộ quà tặng trị giá 5.200.000đ`,value:52e5}],routes:[{label:`IELTS Mentor`,output:`5.5+`,code:`M1_BT55_READY`,name:`IE6.5(M1) + BT5.5 + Ready`,items:[{code:`IE6.5(M1)`,mode:`Offline`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`5.5+`,code:`IE45_M1_BT55_READY`,name:`IE4.5 + IE6.5(M1) + BT5.5 + Ready`,items:[{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`5.5+`,code:`PRE_IE45_M1_BT55_READY`,name:`PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,items:[{code:`PRE`,mode:`Offline`},{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`5.5+`,code:`BS_PRE_IE45_M1_BT55_READY`,name:`BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,items:[{code:`BS`,mode:`Offline`},{code:`PRE`,mode:`Offline`},{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`5.5+`,code:`MA_BS_PRE_IE45_M1_BT55_READY`,name:`Module A + BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,items:[{code:`Module A`,mode:`Online`},{code:`BS`,mode:`Offline`},{code:`PRE`,mode:`Offline`},{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`5.5+`,code:`MA_MB_BS_PRE_IE45_M1_BT55_READY`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,items:[{code:`Module A`,mode:`Online`},{code:`Module B`,mode:`Online`},{code:`BS`,mode:`Offline`},{code:`PRE`,mode:`Offline`},{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`6.5+`,code:`M1_M2`,name:`IE6.5(M1) + IE6.5(M2)`,items:[{code:`IE6.5(M1)`,mode:`Offline`},{code:`IE6.5(M2)`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`6.5+`,code:`M2_READY`,name:`IE6.5(M2) + Ready`,items:[{code:`IE6.5(M2)`,mode:`Offline`},{code:`Ready`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`6.5+`,code:`IE45_M1_M2`,name:`IE4.5 + IE6.5(M1) + IE6.5(M2)`,items:[{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`IE6.5(M2)`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`6.5+`,code:`M1_M2_READY`,name:`IE6.5(M1) + IE6.5(M2) + Ready`,items:[{code:`IE6.5(M1)`,mode:`Offline`},{code:`IE6.5(M2)`,mode:`Offline`},{code:`Ready`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`6.5+`,code:`PRE_IE45_M1_M2`,name:`PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,items:[{code:`PRE`,mode:`Offline`},{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`IE6.5(M2)`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`6.5+`,code:`IE45_M1_M2_READY`,name:`IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,items:[{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`IE6.5(M2)`,mode:`Offline`},{code:`Ready`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`6.5+`,code:`BS_PRE_IE45_M1_M2`,name:`BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,items:[{code:`BS`,mode:`Offline`},{code:`PRE`,mode:`Offline`},{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`IE6.5(M2)`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`6.5+`,code:`PRE_IE45_M1_M2_READY`,name:`PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,items:[{code:`PRE`,mode:`Offline`},{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`IE6.5(M2)`,mode:`Offline`},{code:`Ready`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`6.5+`,code:`BS_PRE_IE45_M1_M2_READY`,name:`BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,items:[{code:`BS`,mode:`Offline`},{code:`PRE`,mode:`Offline`},{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`IE6.5(M2)`,mode:`Offline`},{code:`Ready`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`6.5+`,code:`MA_MB_BS_PRE_IE45_M1_M2`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,items:[{code:`Module A`,mode:`Online`},{code:`Module B`,mode:`Online`},{code:`BS`,mode:`Offline`},{code:`PRE`,mode:`Offline`},{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`IE6.5(M2)`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`6.5+`,code:`MA_MB_BS_PRE_IE45_M1_M2_READY`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,items:[{code:`Module A`,mode:`Online`},{code:`Module B`,mode:`Online`},{code:`BS`,mode:`Offline`},{code:`PRE`,mode:`Offline`},{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`IE6.5(M2)`,mode:`Offline`},{code:`Ready`,mode:`Offline`}]},{label:`IELTS Mentor`,output:`7.0+`,code:`M2_IE70`,name:`IE6.5(M2) + IE7.0`,items:[{code:`IE6.5(M2)`,mode:`Offline`},{code:`IE7.0`,mode:`Online`}]},{label:`IELTS Mentor`,output:`7.0+`,code:`M1_M2_IE70`,name:`IE6.5(M1) + IE6.5(M2) + IE7.0`,items:[{code:`IE6.5(M1)`,mode:`Offline`},{code:`IE6.5(M2)`,mode:`Offline`},{code:`IE7.0`,mode:`Online`}]},{label:`IELTS Mentor`,output:`7.0+`,code:`IE45_M1_M2_IE70`,name:`IE4.5 + IE6.5(M1) + IE6.5(M2) + IE7.0`,items:[{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`IE6.5(M2)`,mode:`Offline`},{code:`IE7.0`,mode:`Online`}]},{label:`IELTS Mentor`,output:`7.0+`,code:`PRE_IE45_M1_M2_IE70`,name:`PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + IE7.0`,items:[{code:`PRE`,mode:`Offline`},{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`IE6.5(M2)`,mode:`Offline`},{code:`IE7.0`,mode:`Online`}]},{label:`IELTS Mentor`,output:`7.0+`,code:`BS_PRE_IE45_M1_M2_IE70`,name:`BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + IE7.0`,items:[{code:`BS`,mode:`Offline`},{code:`PRE`,mode:`Offline`},{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`IE6.5(M2)`,mode:`Offline`},{code:`IE7.0`,mode:`Online`}]},{label:`IELTS Mentor`,output:`7.0+`,code:`MA_MB_BS_PRE_IE45_M1_M2_IE70`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + IE7.0`,items:[{code:`Module A`,mode:`Online`},{code:`Module B`,mode:`Online`},{code:`BS`,mode:`Offline`},{code:`PRE`,mode:`Offline`},{code:`IE4.5`,mode:`Offline`},{code:`IE6.5(M1)`,mode:`Offline`},{code:`IE6.5(M2)`,mode:`Offline`},{code:`IE7.0`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`5.5+`,code:`M1_BT55_READY`,name:`IE6.5(M1) + BT5.5 + Ready`,items:[{code:`IE6.5(M1)`,mode:`Online`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`5.5+`,code:`IE45_M1_BT55_READY`,name:`IE4.5 + IE6.5(M1) + BT5.5 + Ready`,items:[{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`5.5+`,code:`PRE_IE45_M1_BT55_READY`,name:`PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,items:[{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`5.5+`,code:`BS_PRE_IE45_M1_BT55_READY`,name:`BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,items:[{code:`BS`,mode:`Online`},{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`5.5+`,code:`MA_BS_PRE_IE45_M1_BT55_READY`,name:`Module A + BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,items:[{code:`Module A`,mode:`Online`},{code:`BS`,mode:`Online`},{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`5.5+`,code:`MA_MB_BS_PRE_IE45_M1_BT55_READY`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,items:[{code:`Module A`,mode:`Online`},{code:`Module B`,mode:`Online`},{code:`BS`,mode:`Online`},{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`6.5+`,code:`M1_M2`,name:`IE6.5(M1) + IE6.5(M2)`,items:[{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`6.5+`,code:`M2_READY`,name:`IE6.5(M2) + Ready`,items:[{code:`IE6.5(M2)`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`6.5+`,code:`IE45_M1_M2`,name:`IE4.5 + IE6.5(M1) + IE6.5(M2)`,items:[{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`6.5+`,code:`M1_M2_READY`,name:`IE6.5(M1) + IE6.5(M2) + Ready`,items:[{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`6.5+`,code:`PRE_IE45_M1_M2`,name:`PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,items:[{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`6.5+`,code:`IE45_M1_M2_READY`,name:`IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,items:[{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`6.5+`,code:`BS_PRE_IE45_M1_M2`,name:`BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,items:[{code:`BS`,mode:`Online`},{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`6.5+`,code:`PRE_IE45_M1_M2_READY`,name:`PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,items:[{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`6.5+`,code:`BS_PRE_IE45_M1_M2_READY`,name:`BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,items:[{code:`BS`,mode:`Online`},{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`6.5+`,code:`MA_MB_BS_PRE_IE45_M1_M2`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,items:[{code:`Module A`,mode:`Online`},{code:`Module B`,mode:`Online`},{code:`BS`,mode:`Online`},{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`}]},{label:`CLASSUP 1-8`,output:`6.5+`,code:`MA_MB_BS_PRE_IE45_M1_M2_READY`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,items:[{code:`Module A`,mode:`Online`},{code:`Module B`,mode:`Online`},{code:`BS`,mode:`Online`},{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`5.5+`,code:`M1_BT55_READY`,name:`IE6.5(M1) + BT5.5 + Ready`,items:[{code:`IE6.5(M1)`,mode:`Online`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`5.5+`,code:`IE45_M1_BT55_READY`,name:`IE4.5 + IE6.5(M1) + BT5.5 + Ready`,items:[{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`5.5+`,code:`PRE_IE45_M1_BT55_READY`,name:`PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,items:[{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`5.5+`,code:`BS_PRE_IE45_M1_BT55_READY`,name:`BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,items:[{code:`BS`,mode:`Online`},{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`5.5+`,code:`MA_BS_PRE_IE45_M1_BT55_READY`,name:`Module A + BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,items:[{code:`Module A`,mode:`Online`},{code:`BS`,mode:`Online`},{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`5.5+`,code:`MA_MB_BS_PRE_IE45_M1_BT55_READY`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + BT5.5 + Ready`,items:[{code:`Module A`,mode:`Online`},{code:`Module B`,mode:`Online`},{code:`BS`,mode:`Online`},{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`BT5.5`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`6.5+`,code:`M1_M2`,name:`IE6.5(M1) + IE6.5(M2)`,items:[{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`6.5+`,code:`M2_READY`,name:`IE6.5(M2) + Ready`,items:[{code:`IE6.5(M2)`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`6.5+`,code:`IE45_M1_M2`,name:`IE4.5 + IE6.5(M1) + IE6.5(M2)`,items:[{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`6.5+`,code:`M1_M2_READY`,name:`IE6.5(M1) + IE6.5(M2) + Ready`,items:[{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`6.5+`,code:`PRE_IE45_M1_M2`,name:`PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,items:[{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`6.5+`,code:`IE45_M1_M2_READY`,name:`IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,items:[{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`6.5+`,code:`BS_PRE_IE45_M1_M2`,name:`BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,items:[{code:`BS`,mode:`Online`},{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`6.5+`,code:`PRE_IE45_M1_M2_READY`,name:`PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,items:[{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`6.5+`,code:`BS_PRE_IE45_M1_M2_READY`,name:`BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,items:[{code:`BS`,mode:`Online`},{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`},{code:`Ready`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`6.5+`,code:`MA_MB_BS_PRE_IE45_M1_M2`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2)`,items:[{code:`Module A`,mode:`Online`},{code:`Module B`,mode:`Online`},{code:`BS`,mode:`Online`},{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`}]},{label:`CLASSUP 1-1`,output:`6.5+`,code:`MA_MB_BS_PRE_IE45_M1_M2_READY`,name:`Module A + Module B + BS + PRE + IE4.5 + IE6.5(M1) + IE6.5(M2) + Ready`,items:[{code:`Module A`,mode:`Online`},{code:`Module B`,mode:`Online`},{code:`BS`,mode:`Online`},{code:`PRE`,mode:`Online`},{code:`IE4.5`,mode:`Online`},{code:`IE6.5(M1)`,mode:`Online`},{code:`IE6.5(M2)`,mode:`Online`},{code:`Ready`,mode:`Online`}]}]},Be=e=>JSON.parse(JSON.stringify(e)),Y=e=>String(e??``).replace(/[&<>"']/g,e=>({"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`})[e]),X=e=>`${Math.round(Number(e)||0).toLocaleString(`vi-VN`)}đ`,Z=e=>`${+(Number(e||0)*100).toFixed(2)}%`,Ve=e=>e?e.split(`-`).reverse().join(`/`):``,Q=(e,t)=>String(e??``).trim().toLowerCase()===String(t??``).trim().toLowerCase(),He=()=>{let e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}`},$=e=>{let[t,n]=String(e).split(`-`);return`Tháng ${Number(n)}/${t}`},Ue=e=>{let[t,n]=e.split(`-`).map(Number);return[`${e}-01`,`${e}-${String(new Date(t,n,0).getDate()).padStart(2,`0`)}`]};function We(e){if(!e)throw Error(`Cần truyền lớp lưu trữ dữ liệu (store)`);return{...e,async listMonths(){if(typeof e.listMonths==`function`){let t=await e.listMonths();if(Array.isArray(t)&&t.length)return t}return[He()]},async load(t){if(typeof e.load==`function`){let n=await e.load(t);if(n!=null)return n;if(e.load.length===0)return await e.load()}return null},async save(t,n){if(typeof e.save==`function`)return e.save.length===1?await e.save(n):await e.save(t,n)},async seed(){return typeof e.seed==`function`?await e.seed():typeof e.reset==`function`?await e.reset():Be(ze)}}}async function Ge(e,t={}){if(!e)throw Error(`Cần truyền phần tử DOM để gắn công cụ`);let n=We(t.store),{allowRoleSwitch:r=!1,user:i=null,preview:a=!1}=t,o=!!a,s=e=>o?!0:confirm(e),c=new Map;async function l(e){if(!c.has(e)){let t=await n.load(e);c.set(e,t?y(t):null)}return c.get(e)}let h={role:t.role===`admin`?`admin`:`sale`,view:`calc`,months:await n.listMonths(),month:He(),data:null,calc:null,table:null,pdf:null,admin:{tab:`courses`,label:``,q:``,draft:null,dirty:!1,issues:[],month:``,newMonth:``,copyFrom:``}};h.data=await l(h.month),h.admin.month=h.months.includes(h.month)?h.month:h.months[0]??h.month,await l(h.admin.month);let g=()=>{h.calc=E(h.data),h.table={...E(h.data),output:``}};g(),h.pdf={...E(h.data),month:h.month,title:``,sections:oe.map(e=>e.id),outputs:[],scenarios:[]},e.classList.add(`pt-root`),e.innerHTML=``;let b=document.createElement(`div`),x=document.createElement(`div`);x.className=`pt-body`,e.append(b,x);function C(){let e=[[`calc`,`calc`,`Tính giá`],[`table`,`table`,`Bảng giá lộ trình`],[`pdf`,`download`,`Xuất PDF`],...h.role===`admin`?[[`admin`,`db`,`Quản trị dữ liệu gốc`]]:[]];h.view===`admin`&&h.role!==`admin`&&(h.view=`calc`),b.className=`pt-band`,b.innerHTML=e.map(([e,t,n])=>`<button class="pt-tab ${h.view===e?`is-active`:``}" data-act="view" data-v="${e}">${D(t)}${n}</button>`).join(``)+`<span class="pt-band-spacer"></span>`+(r?`<div class="pt-role" title="Chỉ có ở bản demo — trên portal vai trò lấy từ tài khoản đăng nhập">
161
+ <button class="${h.role===`sale`?`is-active`:``}" data-act="role" data-v="sale">Sale / TVV</button>
162
+ <button class="${h.role===`admin`?`is-active`:``}" data-act="role" data-v="admin">Admin</button></div>`:``),x.innerHTML=`<div class="pt-container">${h.view===`pdf`?z():h.view===`admin`?U():h.data?h.view===`calc`?P():L():ne()}</div>`,h.view===`admin`&&K(),h.view===`pdf`&&ae()}function E(e){return e?{label:e.settings.labels[0]?.name??``,program:e.settings.programs[0]?.name??``,method:e.settings.paymentMethods[0]?.name??``,term:0,warranty:e.warranty[0]?.name??``,lktGroup:``,lktFormat:``,selected:{}}:{label:``,program:``,method:``,term:0,warranty:``,lktGroup:``,lktFormat:``,selected:{}}}let O=e=>({...e,items:h.data.settings.courseCodes.slice().sort((e,t)=>e.order-t.order).filter(t=>e.selected[t.code]).map(t=>({code:t.code,mode:e.selected[t.code]}))});function k({ic:e,title:t,sub:n,actions:r=``,stats:i=``}){return`<div class="pt-page-head">
163
+ <div class="pt-title-row">
164
+ <div class="pt-title-icon">${D(e,20)}</div>
165
+ <div><h2 class="pt-title">${t}</h2><p class="pt-sub">${n}</p></div>
166
+ <div class="pt-title-actions">${r}</div>
167
+ </div>
168
+ ${i?`<div class="pt-stats">${i}</div>`:``}
169
+ </div>`}let A=(e,t,n,r,i=!1)=>`<div class="pt-stat pt-stat--${e}"><div style="min-width:0"><div class="pt-stat-label">${t}</div>
170
+ <div class="pt-stat-value ${i?`is-small`:``}">${n}</div></div><div class="pt-stat-icon">${D(r)}</div></div>`,j=(e,t,n,{disabled:r=()=>!1,hint:i=()=>``,fmt:a=e=>e}={})=>`<div class="pt-chips">${t.map(t=>{let o=r(t),s=i(t);return`<button class="pt-chip ${Q(t,n)?`is-active`:``}" data-act="calc" data-f="${e}" data-v="${Y(t)}" ${o?`disabled`:``}
171
+ ${o&&typeof o==`string`?`title="${Y(o)}"`:``}>${Y(a(t))}${s?` <small>${Y(s)}</small>`:``}</button>`}).join(``)}</div>`;function N(){return`<select class="pt-select" style="height:36px;width:150px" data-act="view-month" title="Tháng chương trình">${[...new Set([He(),...h.months])].sort().reverse().map(e=>`<option value="${e}" ${e===h.month?`selected`:``}>${$(e)}${h.months.includes(e)?``:` (trống)`}</option>`).join(``)}</select>`}function ne(){return k({ic:`calendar`,title:`Chương trình khuyến mại ${$(h.month).toLowerCase()}`,sub:`Chưa có dữ liệu`,actions:N()})+`<div class="pt-section"><div class="pt-empty" style="padding:56px 24px">
172
+ <div style="font-size:16px;font-weight:600;color:var(--pt-ink);margin-bottom:6px">Chưa có chương trình khuyến mại ${$(h.month).toLowerCase()}</div>
173
+ Admin chưa cập nhật chương trình cho tháng này. Bạn có thể chọn xem lại các tháng trước ở ô chọn tháng phía trên.
174
+ ${h.role===`admin`?`<div style="margin-top:16px"><button class="pt-btn pt-btn--primary" data-act="goto-create" data-v="${h.month}">${D(`plus`,16)}Tạo chương trình ${$(h.month).toLowerCase()}</button></div>`:``}
175
+ </div></div>`}function P(){let e=h.data,t=h.calc,n=S(e,O(t)),r=e.settings,i=u(e,t.program),a=r.labels.find(e=>Q(e.name,t.label)),o=f(e,t.method),s=p(e,t.method),c=d(e,t.method),l=n.discountAmt+n.cashback+n.voucherTotal,g=m(e,t.label),y=e.routes.filter(e=>Q(e.label,t.label)),b=A(`grey`,`Tổng giá gốc`,X(n.gross),`tag`)+A(`white`,`Tổng ưu đãi ${n.pct?`(${Z(n.pct)})`:``}`,l?`-${X(l)}`:`0đ`,`percent`)+A(n.ok?`green`:`purple`,`Học phí cuối cùng`,n.count?X(n.final):`—`,`wallet`)+A(n.ok?`green`:`red`,`Trạng thái`,n.ok?`Hợp lệ`:Y(n.status),n.ok?`checkCircle`:`alert`,!n.ok),x=`<div class="pt-form">
176
+ <div class="pt-form-row"><div class="pt-label">Nhãn</div>${j(`label`,r.labels.map(e=>e.name),t.label)}</div>
177
+ <div class="pt-form-row"><div class="pt-label">Chương trình</div>${j(`program`,r.programs.map(e=>e.name),t.program)}</div>
178
+ ${i?.type===`LKT`?`<div class="pt-form-row"><div class="pt-label">Nhóm LKT<small>${n.lkt?.baseProgram?`Theo chương trình ${Y(n.lkt.baseProgram)}`:``}</small></div>${v(e,t.label).length?j(`lktGroup`,v(e,t.label).map(e=>e.name),t.lktGroup):`<span class="pt-section-sub">Nhãn này chưa có chính sách liên kết trường</span>`}</div>
179
+ ${t.lktGroup?`<div class="pt-form-row"><div class="pt-label">Format LKT</div>${j(`lktFormat`,_(e,t.label,t.lktGroup).map(e=>e.format),t.lktFormat,{hint:n=>{let r=_(e,t.label,t.lktGroup).find(e=>Q(e.format,n))?.cut;return r?`-${Z(r)}`:``}})}</div>`:``}`:``}
180
+ <div class="pt-form-row"><div class="pt-label">Hình thức thanh toán</div>${j(`method`,r.paymentMethods.map(e=>e.name),t.method,{disabled:e=>a?.blockedMethods?.some(t=>Q(t,e))?`${t.label} không áp dụng ${e}`:!1})}</div>
181
+ <div class="pt-form-row"><div class="pt-label">Kỳ hạn<small>${c?.citime&&n.combo.citimeMax?`Tối đa ${n.combo.citimeMax} tháng`:``}</small></div>${s?`<div class="pt-chips"><span class="pt-chip is-active">Không kỳ hạn</span></div>`:j(`term`,o.map(String),String(t.term),{fmt:e=>`${e} tháng`,disabled:e=>c?.citime&&n.combo.citimeMax!=null&&Number(e)>n.combo.citimeMax?`Vượt kỳ hạn Citime tối đa của lộ trình`:!1})}</div>
182
+ <div class="pt-form-row"><div class="pt-label">Gói bảo hành</div>${j(`warranty`,e.warranty.map(e=>e.name),t.warranty,{hint:t=>{let n=e.warranty.find(e=>Q(e.name,t))?.rate;return n?`+${Z(n)}`:``}})}</div>
183
+ </div>`,C=g.map(n=>{let r=!!t.selected[n.code],i=t.selected[n.code]??n.modes[0],a=S(e,{...t,items:[{code:n.code,mode:i}]}).lines[0];return`<div class="pt-course ${r?`is-on`:``}" data-act="toggle" data-code="${Y(n.code)}" role="checkbox" aria-checked="${r}" tabindex="0">
184
+ <div class="pt-course-top"><span class="pt-check">${r?D(`check`,14):``}</span>
185
+ <div style="min-width:0"><div class="pt-course-name">${Y(n.name)}</div><div class="pt-course-code">${Y(n.code)}</div></div></div>
186
+ ${n.modes.length>1?`<div class="pt-seg">${n.modes.map(e=>`<button class="${Q(e,i)?`is-active`:``}" data-act="mode" data-code="${Y(n.code)}" data-v="${Y(e)}">${Y(e)}</button>`).join(``)}</div>`:`<span class="pt-seg-single">${Y(n.modes[0])}</span>`}
187
+ <div class="pt-course-price"><span>Giá gốc <b>${X(a?.price)}</b></span>${a?.voucher?`<span>VC -${X(a.voucher)}</span>`:``}</div>
188
+ </div>`}).join(``),w=n.lines.map(e=>`<tr><td>${Y(e.name)} <span style="color:var(--pt-faint)">· ${Y(e.mode)}</span></td><td>${X(e.price)}</td></tr>`).join(``),T=`<div class="pt-section pt-result">
189
+ <div class="pt-section-head"><div class="pt-section-icon">${D(`calc`,16)}</div>
190
+ <div><div class="pt-section-title">Kết quả báo giá</div><div class="pt-section-sub">${n.count} khóa · ${Y(t.program)} · ${Y(t.method)}${t.term?` ${t.term} tháng`:``}</div></div></div>
191
+ <div class="pt-section-body">
192
+ <div class="pt-status ${n.ok?`is-ok`:`is-bad`}">${D(n.ok?`checkCircle`:`alert`,16)}${n.ok?`Báo giá hợp lệ`:Y(n.status)}</div>
193
+ ${w?`<table class="pt-lines">${w}</table>`:``}
194
+ <ul class="pt-rows">
195
+ <li><span>Tổng giá gốc</span><b>${X(n.gross)}</b></li>
196
+ <li class="is-minus"><span>Ưu đãi ${Z(n.pct)}${n.lkt?.cut!=null&&n.lkt.baseFound?`<br><small style="color:var(--pt-faint)">${Y(n.lkt.baseProgram)} ${Z(n.lkt.basePct)} − cắt ${Y(t.lktFormat)} ${Z(n.lkt.cut)}</small>`:``}</span><b>-${X(n.discountAmt)}</b></li>
197
+ ${n.cashback?`<li class="is-minus"><span>Hoàn tiền (Định kỳ)</span><b>-${X(n.cashback)}</b></li>`:``}
198
+ <li class="is-minus"><span>Voucher đặc biệt</span><b>-${X(n.voucherTotal)}</b></li>
199
+ <li><span>Giá sau khuyến mại</span><b>${X(n.afterPromo)}</b></li>
200
+ <li class="is-plus"><span>Bảo hành ${Y(t.warranty)} (${Z(n.warrantyRate)} × ${X(n.warrantyBase)})</span><b>+${X(n.warrantyFee)}</b></li>
201
+ </ul>
202
+ <div class="pt-final ${n.ok?``:`is-dim`}"><small>HỌC PHÍ CUỐI CÙNG</small><div>${n.count?X(n.final):`—`}</div></div>
203
+ ${n.gift?`<div class="pt-gift">${D(`gift`,18)}<div><b>Quà tặng:</b> ${Y(n.gift.content)}</div></div>`:``}
204
+ ${n.combo.code?`<div class="pt-combo">Mã lộ trình: <b>${Y(n.combo.code)}</b>${n.combo.routeName?` · ${Y(n.combo.group)}`:``}<br>
205
+ Citime: <b>${Y(n.combo.citimeStatus)}</b>${n.combo.citimeMax?` · tối đa ${n.combo.citimeMax} tháng`:``}</div>`:``}
206
+ <div style="display:flex;gap:8px;margin-top:14px">
207
+ <button class="pt-btn pt-btn--primary" style="flex:1;justify-content:center" data-act="copy" ${n.count?``:`disabled`}>${D(`copy`,16)}Sao chép báo giá</button>
208
+ <button class="pt-btn pt-btn--ghost" data-act="reset-calc" title="Làm mới">${D(`refresh`,16)}</button>
209
+ </div>
210
+ </div></div>`;return k({ic:`calc`,title:`Tính giá khuyến mại`,actions:N(),sub:`${Y(r.campaignName)} · Áp dụng ${Ve(r.validFrom)} – ${Ve(r.validTo)}`,stats:b})+`<div class="pt-grid pt-grid-calc" style="margin-top:14px">
211
+ <div>
212
+ <div class="pt-section" style="margin-top:0">
213
+ <div class="pt-section-head"><div class="pt-section-icon">${D(`filter`,16)}</div>
214
+ <div><div class="pt-section-title">Thông tin chung</div><div class="pt-section-sub">Bấm chọn — kết quả tự cập nhật</div></div></div>
215
+ <div class="pt-section-body">${x}</div>
216
+ </div>
217
+ <div class="pt-section">
218
+ <div class="pt-section-head"><div class="pt-section-icon">${D(`book`,16)}</div>
219
+ <div><div class="pt-section-title">Khóa học đăng ký</div><div class="pt-section-sub">Tích chọn khóa và hình thức học · ${Y(r.note??``)}</div></div>
220
+ <div class="pt-section-actions">
221
+ <select class="pt-select" style="height:34px;max-width:260px" data-act="pick-route">
222
+ <option value="">Chọn nhanh theo lộ trình…</option>
223
+ ${y.map(e=>`<option value="${Y(e.code)}">${Y(e.output?`[${e.output}] `:``)}${Y(e.name)}</option>`).join(``)}
224
+ </select>
225
+ <button class="pt-btn pt-btn--link" data-act="clear-courses">Bỏ chọn</button>
226
+ </div></div>
227
+ <div class="pt-section-body"><div class="pt-courses">${C||`<div class="pt-empty">Nhãn này chưa có khóa học</div>`}</div></div>
228
+ </div>
229
+ </div>
230
+ ${T}
231
+ </div>`}function F(e,t,n,r=h.data){if(t===`term`&&(n=Number(n)),e[t]=n,t===`label`){let t=m(r,n);for(let n of Object.keys(e.selected)){let r=t.find(e=>Q(e.code,n));r?r.modes.some(t=>Q(t,e.selected[n]))||(e.selected[n]=r.modes[0]):delete e.selected[n]}let i=r.settings.labels.find(e=>Q(e.name,n))?.blockedMethods??[];i.some(t=>Q(t,e.method))&&(e.method=r.settings.paymentMethods.find(e=>!i.some(t=>Q(t,e.name)))?.name??``)}if(t===`method`||t===`label`){let t=f(r,e.method).map(Number);t.includes(Number(e.term))||(e.term=t[0]??0)}if([`label`,`program`,`lktGroup`].includes(t)&&u(r,e.program)?.type===`LKT`){let t=v(r,e.label);t.some(t=>Q(t.name,e.lktGroup))||(e.lktGroup=t[0]?.name??``);let n=_(r,e.label,e.lktGroup);n.some(t=>Q(t.format,e.lktFormat))||(e.lktFormat=n[0]?.format??``)}}function I(){let e=h.calc,t=S(h.data,O(e)),n=[`BÁO GIÁ HỌC PHÍ – ${e.label.toUpperCase()}`,`Chương trình: ${e.program}${u(h.data,e.program)?.type===`LKT`?` (${[e.lktGroup,e.lktFormat].filter(Boolean).join(` – `)})`:``}`,`Thanh toán: ${e.method}${e.term?` – ${e.term} tháng`:``}`,`Khóa học:`,...t.lines.map(e=>` • ${e.name} (${e.mode}): ${X(e.price)}`),`Tổng giá gốc: ${X(t.gross)}`,`Ưu đãi ${Z(t.pct)}: -${X(t.discountAmt)}`,...t.cashback?[`Hoàn tiền: -${X(t.cashback)}`]:[],...t.voucherTotal?[`Voucher: -${X(t.voucherTotal)}`]:[],...t.warrantyFee?[`Bảo hành ${e.warranty}: +${X(t.warrantyFee)}`]:[],`HỌC PHÍ CUỐI CÙNG: ${X(t.final)}`,...t.gift?[`Quà tặng: ${t.gift.content}`]:[],`(${h.data.settings.campaignName}, áp dụng đến ${Ve(h.data.settings.validTo)})`];return t.ok||n.unshift(`⚠ CHƯA HỢP LỆ: ${t.status}`),n.join(`
232
+ `)}function L(){let e=h.data,t=h.table,n=[...new Set(e.routes.filter(e=>Q(e.label,t.label)).map(e=>e.output).filter(Boolean))],r=w(e,t),i=r.filter(e=>e.quote.ok),a=i.length?i.reduce((e,t)=>e+t.quote.pct,0)/i.length:0,o=u(e,t.program),s=(e,t,n,r=e=>e,i=null)=>`<select class="pt-select" data-act="tbl" data-f="${e}">${i==null?``:`<option value="">${i}</option>`}${t.map(e=>`<option value="${Y(e)}" ${Q(e,n)?`selected`:``}>${Y(r(e))}</option>`).join(``)}</select>`,c=`<div class="pt-section">
233
+ <div class="pt-section-head no-line"><div class="pt-section-icon">${D(`filter`,16)}</div>
234
+ <div><div class="pt-section-title">Bộ lọc thông minh</div><div class="pt-section-sub">Bảng giá tự tính lại từ dữ liệu gốc khi đổi bộ lọc</div></div>
235
+ <div class="pt-section-actions"><button class="pt-btn pt-btn--link" data-act="tbl-reset">${D(`filter`,14)}Xóa bộ lọc</button></div></div>
236
+ <div class="pt-section-body"><div class="pt-grid pt-grid-3">
237
+ <div class="pt-field"><label>Nhãn</label>${s(`label`,e.settings.labels.map(e=>e.name),t.label)}</div>
238
+ <div class="pt-field"><label>Đầu ra</label>${s(`output`,n,t.output,e=>e,`Tất cả đầu ra`)}</div>
239
+ <div class="pt-field"><label>Chương trình</label>${s(`program`,e.settings.programs.map(e=>e.name),t.program)}</div>
240
+ ${o?.type===`LKT`?`<div class="pt-field"><label>Nhóm LKT</label>${s(`lktGroup`,v(e,t.label).map(e=>e.name),t.lktGroup,e=>e,`Chọn nhóm`)}</div>
241
+ <div class="pt-field"><label>Format LKT</label>${s(`lktFormat`,_(e,t.label,t.lktGroup).map(e=>e.format),t.lktFormat,e=>e,`Chọn format`)}</div>`:``}
242
+ <div class="pt-field"><label>Hình thức thanh toán</label>${s(`method`,e.settings.paymentMethods.map(e=>e.name),t.method)}</div>
243
+ <div class="pt-field"><label>Kỳ hạn</label>${s(`term`,f(e,t.method).map(String),String(t.term),e=>Number(e)?`${e} tháng`:`Không kỳ hạn`)}</div>
244
+ <div class="pt-field"><label>Gói bảo hành</label>${s(`warranty`,e.warranty.map(e=>e.name),t.warranty)}</div>
245
+ </div></div></div>`,l=r.map(({route:e,quote:t})=>`<tr>
246
+ <td><div style="font-weight:500">${Y(e.name)}</div><div class="muted">${Y(e.code)}</div></td>
247
+ <td>${e.output?`<span class="pt-pill pt-pill--purple">${Y(e.output)}</span>`:``}</td>
248
+ <td class="num">${t.count}</td>
249
+ <td class="num">${X(t.gross)}</td>
250
+ <td class="num">${t.ok?`<span class="pt-pill pt-pill--orange">-${Z(t.pct)}</span>`:`—`}</td>
251
+ <td class="num">${t.ok?X(t.afterPromo):`—`}</td>
252
+ <td class="num"><b>${t.ok?X(t.final):`—`}</b></td>
253
+ <td class="muted">${t.ok&&t.gift?Y(t.gift.content):``}</td>
254
+ <td>${t.ok?`<span class="pt-pill pt-pill--green"><span class="pt-dot"></span>Hợp lệ</span>`:`<span class="pt-pill pt-pill--red"><span class="pt-dot"></span>${Y(t.status)}</span>`}</td>
255
+ <td><button class="pt-icon-btn" title="Mở trong công cụ tính giá" data-act="open-route" data-code="${Y(e.code)}">${D(`eye`,16)}</button></td>
256
+ </tr>`).join(``);return k({ic:`table`,title:`Bảng giá lộ trình gợi ý`,actions:N(),sub:`Học phí đã gồm ưu đãi theo bộ lọc · ${Y(e.settings.campaignName)}`,stats:A(`grey`,`Tổng lộ trình`,r.length,`route`)+A(`white`,`Mức giảm trung bình`,i.length?Z(a):`—`,`percent`)+A(`green`,`Hợp lệ`,i.length,`checkCircle`)+A(`red`,`Không áp dụng`,r.length-i.length,`xCircle`)})+c+`<div class="pt-section">
257
+ <div class="pt-section-head"><div><div class="pt-section-title">Danh sách lộ trình</div>
258
+ <div class="pt-section-sub">Tổng <b style="color:var(--pt-purple)">${r.length}</b> lộ trình · Bấm biểu tượng mắt để xem chi tiết & sao chép báo giá</div></div></div>
259
+ <div class="pt-table-wrap"><table class="pt-table">
260
+ <thead><tr><th>Lộ trình</th><th>Đầu ra</th><th class="num">Số khóa</th><th class="num">Giá gốc</th><th class="num">Ưu đãi</th>
261
+ <th class="num">Giá sau KM</th><th class="num">Học phí cuối</th><th>Quà tặng</th><th>Trạng thái</th><th>Thao tác</th></tr></thead>
262
+ <tbody>${l||`<tr><td colspan="10" class="pt-empty">Không có lộ trình phù hợp</td></tr>`}</tbody>
263
+ </table></div>
264
+ </div>`}let R=null;function z(){let e=h.pdf,t=c.get(e.month)??null,[n,r]=e.month.split(`-`),i=[...new Set([...h.months.map(e=>e.slice(0,4)),n,String(new Date().getFullYear()+1)])].sort(),a=`<div class="pt-grid" style="grid-template-columns:1fr 1fr;gap:8px">
265
+ <select class="pt-select" data-act="pdf-month" data-part="m">${Array.from({length:12},(e,t)=>String(t+1).padStart(2,`0`)).map(e=>`<option value="${e}" ${e===r?`selected`:``}>Tháng ${Number(e)}${h.months.includes(`${n}-${e}`)?``:` · trống`}</option>`).join(``)}</select>
266
+ <select class="pt-select" data-act="pdf-month" data-part="y">${i.map(e=>`<option ${e===n?`selected`:``}>${e}</option>`).join(``)}</select></div>`;R=t?Te(t,e):null;let s=t?u(t,e.program):null,l=(e,t,n,r=e=>e)=>`<select class="pt-select" data-act="pdf" data-f="${e}">${t.map(e=>`<option value="${Y(e)}" ${Q(e,n)?`selected`:``}>${Y(r(e))}</option>`).join(``)}</select>`,d=(e,t,n,r)=>`<label style="display:flex;gap:8px;align-items:center;cursor:pointer;font-size:13px">
267
+ <input type="checkbox" data-act="${e}" value="${Y(t)}" ${n?`checked`:``} style="width:16px;height:16px;accent-color:var(--pt-purple)">${r}</label>`,f=t?ue(t,e.label):[],p=t&&s?.type!==`DINH_KY`?de(t,e):[],m=e.scenarios.length?e.scenarios:t?fe(t,e):[],g=`<div class="pt-section" style="margin-top:0">
268
+ <div class="pt-section-head"><div class="pt-section-icon">${D(`settings`,16)}</div>
269
+ <div><div class="pt-section-title">Tùy chọn ấn phẩm</div><div class="pt-section-sub">Khổ A4 ngang · số liệu lấy từ dữ liệu gốc của tháng đã chọn</div></div></div>
270
+ <div class="pt-section-body"><div class="pt-form" style="gap:12px">
271
+ <div class="pt-field"><label>Thời gian (tháng + năm)</label>${a}</div>
272
+ ${t?`<div class="pt-field"><label>Nhãn</label>${l(`label`,t.settings.labels.map(e=>e.name),e.label)}</div>
273
+ <div class="pt-field"><label>Chương trình khuyến mại</label>${l(`program`,t.settings.programs.map(e=>e.name),e.program)}</div>
274
+ ${s?.type===`LKT`?`<div class="pt-field"><label>Nhóm LKT</label>${l(`lktGroup`,v(t,e.label).map(e=>e.name),e.lktGroup)}</div>
275
+ <div class="pt-field"><label>Format LKT (cho bảng giá)</label>${l(`lktFormat`,_(t,e.label,e.lktGroup).map(e=>e.format),e.lktFormat)}</div>`:``}
276
+ <div class="pt-field"><label>Tên chương trình (tiêu đề)</label>
277
+ <input class="pt-input" data-act="pdf-title" value="${Y(e.title)}" placeholder="${Y(ce(t,e.label,e.month))}"></div>
278
+ <div class="pt-field"><label>Nội dung xuất</label><div style="display:grid;gap:7px">${oe.map(t=>d(`pdf-sec`,t.id,e.sections.includes(t.id),Y(t.title))).join(``)}</div></div>
279
+ ${e.sections.includes(`routes`)&&f.length>1?`<div class="pt-field"><label>Đầu ra trong bảng giá lộ trình</label><div class="pt-chips">${f.map(t=>d(`pdf-out`,t,!e.outputs.length||e.outputs.includes(t),Y(t))).join(``)}</div></div>`:``}
280
+ ${e.sections.includes(`routes`)&&p.length?`<div class="pt-field"><label>Kịch bản thanh toán trong bảng giá lộ trình <small>(2 kịch bản / trang)</small></label><div style="display:grid;gap:7px">${p.map(e=>d(`pdf-scen`,e.id,m.includes(e.id),`${Y(e.title)} · <b>${+(e.pct*100).toFixed(2)}%</b>`)).join(``)}</div></div>`:``}`:``}
281
+ </div></div></div>`,y=t?R.pages?`<iframe id="pt-pdf-frame" title="Xem trước ấn phẩm" style="width:100%;height:78vh;border:0;border-radius:0 0 14px 14px;background:#8a8a8a;display:block"></iframe>`:`<div class="pt-empty">Chưa chọn nội dung nào hoặc chương trình chưa có dữ liệu</div>`:`<div class="pt-empty" style="padding:56px 24px"><div style="font-size:16px;font-weight:600;color:var(--pt-ink);margin-bottom:6px">${$(e.month)} chưa có chương trình khuyến mại</div>
282
+ Admin chưa tạo / cập nhật chương trình cho tháng này nên chưa có ấn phẩm để xuất.</div>`,b=o?`<span class="pt-pill pt-pill--purple" style="padding:8px 14px">${D(`eye`,14)}Bản xem thử: chỉ xem trước ấn phẩm, xuất PDF trên portal</span>`:`<button class="pt-btn pt-btn--primary" data-act="pdf-print" ${R?.pages?``:`disabled`}>${D(`download`,16)}Xuất PDF</button>`;return`<div class="pt-grid" style="grid-template-columns:320px minmax(0,1fr);align-items:start" id="pt-pdf-grid">
283
+ ${g}
284
+ <div class="pt-section" style="margin-top:0">
285
+ <div class="pt-section-head">
286
+ <div class="pt-section-icon">${D(`eye`,16)}</div>
287
+ <div>
288
+ <div class="pt-section-title">Xem trước</div>
289
+ <div class="pt-section-sub">${R?`${R.pages} trang A4 ngang · ${Y(R.title)}`:$(e.month)}</div>
290
+ </div>
291
+ <div class="pt-section-actions">${b}</div>
292
+ </div>
293
+ ${y}
294
+ </div>
295
+ </div>`}async function ie(e){let t=await l(e),n=t&&t.settings.labels.some(e=>Q(e.name,h.pdf.label))&&t.settings.programs.some(e=>Q(e.name,h.pdf.program));h.pdf={...n?h.pdf:{...h.pdf,...E(t)},month:e,outputs:[],scenarios:[]}}function ae(){let e=x.querySelector(`#pt-pdf-frame`);e&&R&&(e.addEventListener(`load`,()=>{let t=e.contentDocument,n=Math.min(1,(e.clientWidth-28)/1123),r=t.createElement(`style`);r.textContent=`@media screen { body { zoom: ${n}; padding: 14px 0; } }`,t.head.appendChild(r)},{once:!0}),e.srcdoc=R.html)}async function se(){let e=x.querySelector(`#pt-pdf-frame`);if(e?.contentWindow){try{await e.contentDocument.fonts?.ready}catch{}e.contentWindow.focus(),e.contentWindow.print()}}let B=()=>h.admin.draft??=Be(c.get(h.admin.month));function V(){let e=h.admin,t=[...new Set([...h.months,...e.draft?[e.month]:[]])].sort().reverse(),n=h.months[0],r=(()=>{let[e,t]=(n??He()).split(`-`).map(Number);return n?`${t===12?e+1:e}-${String(t===12?1:t+1).padStart(2,`0`)}`:He()})();return`<div class="pt-section" style="margin-top:14px"><div class="pt-section-head" style="flex-wrap:wrap">
296
+ <div class="pt-section-icon">${D(`calendar`,16)}</div>
297
+ <div><div class="pt-section-title">Chương trình theo tháng</div><div class="pt-section-sub">Mỗi tháng lưu riêng — tháng cũ giữ nguyên làm lưu trữ, tháng chưa tạo thì sale thấy trống</div></div>
298
+ <div class="pt-section-actions">
299
+ <label class="pt-label" style="margin-right:2px">Đang sửa</label>
300
+ <select class="pt-select" style="height:36px;width:190px" data-act="admin-month">${t.length?t.map(t=>`<option value="${t}" ${t===e.month?`selected`:``}>${$(t)}${h.months.includes(t)?``:` (chưa lưu)`}</option>`).join(``):`<option>Chưa có tháng nào</option>`}</select>
301
+ <span style="width:1px;height:26px;background:var(--pt-line);margin:0 4px"></span>
302
+ <input class="pt-input" type="month" style="height:36px;width:160px" value="${Y(e.newMonth||r)}" data-act="new-month" title="Tháng cần tạo">
303
+ <select class="pt-select" style="height:36px;width:220px" data-act="copy-from" title="Dữ liệu ban đầu">
304
+ ${h.months.map(t=>`<option value="${t}" ${t===(e.copyFrom||n)?`selected`:``}>Sao chép từ ${$(t).toLowerCase()}</option>`).join(``)}
305
+ <option value="seed" ${e.copyFrom===`seed`||!n?`selected`:``}>Từ dữ liệu Excel gốc</option></select>
306
+ <button class="pt-btn pt-btn--primary pt-btn--sm" data-act="create-month">${D(`plus`,15)}Tạo tháng mới</button>
307
+ </div></div></div>`}async function le(){let e=h.admin,t=(x.querySelector(`[data-act="new-month"]`)?.value||e.newMonth||``).slice(0,7);if(!/^\d{4}-\d{2}$/.test(t))return J(`Chọn tháng cần tạo`);if(h.months.includes(t)){e.month=t,e.draft=null,J(`${$(t)} đã có — chuyển sang sửa tháng này`);return}if(e.dirty&&!s(`Đang có thay đổi chưa lưu. Bỏ thay đổi để tạo tháng mới?`))return;let r=e.copyFrom||h.months[0]||`seed`,i=y(r===`seed`?await n.seed():Be(await l(r)));[i.settings.validFrom,i.settings.validTo]=Ue(t),i.settings.campaignName=``,e.month=t,e.draft=i,e.dirty=!0,e.issues=[],J(`Đã tạo ${$(t).toLowerCase()} (chưa lưu) — cập nhật giá, CTKM rồi bấm Lưu & áp dụng`)}let H=e=>e.path.reduce((e,t)=>e[t],B());function U(){let e=h.admin;if(!c.get(e.month)&&!e.draft)return k({ic:`db`,title:`Quản trị dữ liệu gốc`,sub:`Chưa có chương trình nào — tạo tháng đầu tiên để bắt đầu.`})+V()+`<div class="pt-section"><div class="pt-empty" style="padding:48px 24px">${$(e.month)} chưa có chương trình. Chọn tháng và nguồn dữ liệu ở trên rồi bấm <b>Tạo tháng mới</b>.</div></div>`;let t=B(),n=M(t),r=n.find(t=>t.id===e.tab),i=[...new Set(n.map(e=>e.group))].map(t=>`<div class="pt-menu-group">${t}</div>`+n.filter(e=>e.group===t).map(t=>`<button class="${t.id===e.tab?`is-active`:``}" data-act="admin-tab" data-v="${t.id}">
308
+ <span class="pt-menu-ic">${D(t.icon,15)}</span>${t.title}<span class="pt-count">${H(t).length}</span></button>`).join(``)).join(``)+`<div class="pt-menu-group">Chung</div>
309
+ <button class="${e.tab===`general`?`is-active`:``}" data-act="admin-tab" data-v="general"><span class="pt-menu-ic">${D(`settings`,15)}</span>Thông tin chương trình</button>`,a=t.periodic.length+t.special.length+t.extended.length+t.lkt.length,s=T(t).length,l=A(`grey`,`Khóa học`,t.courses.length,`book`)+A(`white`,`Dòng CTKM`,a,`percent`)+A(`green`,`Lộ trình gợi ý`,t.routes.length,`route`)+A(s?`red`:`green`,`Cảnh báo dữ liệu`,s,s?`alert`:`checkCircle`),u=e.tab===`general`?pe(t):`<div class="pt-section" style="margin-top:0">
310
+ <div class="pt-section-head"><div class="pt-section-icon">${D(r.icon,16)}</div>
311
+ <div><div class="pt-section-title">${r.title}</div><div class="pt-section-sub">${r.sheet?`Thay cho sheet ${r.sheet}`:`Cấu hình chung`}</div></div>
312
+ <div class="pt-section-actions">
313
+ ${r.byLabel?`<select class="pt-select" style="height:36px;width:170px" data-act="admin-label"><option value="">Tất cả nhãn</option>${t.settings.labels.map(t=>`<option ${Q(t.name,e.label)?`selected`:``}>${Y(t.name)}</option>`).join(``)}</select>`:``}
314
+ <input class="pt-input" style="height:36px;width:180px" placeholder="Tìm…" value="${Y(e.q)}" data-act="admin-q">
315
+ <button class="pt-btn pt-btn--primary" data-act="row-add">${D(`plus`,16)}Thêm mới</button>
316
+ </div></div>
317
+ <p class="pt-help" style="margin-top:14px">${Y(r.desc)}</p>
318
+ <div id="pt-issues"></div>
319
+ <div class="pt-table-wrap" id="pt-admin-table"></div>
320
+ </div>`;return k({ic:`db`,title:`Quản trị dữ liệu gốc`,sub:`Đang sửa chương trình ${$(e.month).toLowerCase()} (${Ve(t.settings.validFrom)} – ${Ve(t.settings.validTo)}). Sale chỉ xem kết quả tính theo dữ liệu này.`,actions:`
321
+ <label class="pt-btn pt-btn--ghost pt-btn--sm" style="cursor:pointer">${D(`sheet`,15)}Nhập từ Excel<input type="file" accept=".xlsx" hidden data-act="import-xlsx"></label>
322
+ <label class="pt-btn pt-btn--ghost pt-btn--sm" style="cursor:pointer">${D(`upload`,15)}Nhập JSON<input type="file" accept=".json" hidden data-act="import-json"></label>
323
+ ${o?``:`<button class="pt-btn pt-btn--ghost pt-btn--sm" data-act="export-json">${D(`download`,15)}Xuất JSON</button>`}`,stats:l})+V()+`<div class="pt-admin"><nav class="pt-menu">${i}</nav><div>${u}</div></div>
324
+ <div class="pt-savebar" id="pt-savebar" ${e.dirty?``:`hidden`}>${W()}</div>`}let W=()=>`${D(`alert`,18)}<span>Có thay đổi chưa lưu cho ${$(h.admin.month).toLowerCase()} — sale vẫn đang dùng dữ liệu cũ.</span>
325
+ <span class="pt-band-spacer"></span>
326
+ <button class="pt-btn pt-btn--ghost pt-btn--sm" data-act="discard">Hủy thay đổi</button>
327
+ <button class="pt-btn pt-btn--primary pt-btn--sm" data-act="save" style="background:#fff;color:var(--pt-purple)">${D(`save`,15)}Lưu & áp dụng</button>`;function G(){h.admin.dirty=!0;let e=x.querySelector(`#pt-savebar`);e&&(e.hidden=!1)}function pe(e){let t=e.settings,n=(e,n,r=`text`)=>`<div class="pt-field"><label>${n}</label><input class="pt-input" type="${r}" value="${Y(t[e])}" data-act="setting" data-k="${e}"></div>`;return`<div class="pt-section" style="margin-top:0">
328
+ <div class="pt-section-head"><div class="pt-section-icon">${D(`settings`,16)}</div>
329
+ <div><div class="pt-section-title">Thông tin chương trình</div><div class="pt-section-sub">Hiển thị trên trang Tính giá và trong báo giá sao chép</div></div></div>
330
+ <div class="pt-section-body"><div class="pt-grid pt-grid-3">
331
+ ${n(`campaignName`,`Tên đợt khuyến mại`)}${n(`validFrom`,`Áp dụng từ ngày`,`date`)}${n(`validTo`,`Đến ngày`,`date`)}
332
+ </div><div class="pt-field" style="margin-top:14px"><label>Lưu ý hiển thị cho sale</label>
333
+ <input class="pt-input" value="${Y(t.note)}" data-act="setting" data-k="note"></div>
334
+ <div class="pt-section-title" style="margin-top:22px">Câu chữ trên ấn phẩm PDF</div>
335
+ ${[[`cashbackLabel`,`Tiêu đề cột hoàn tiền (CTKM định kỳ)`],[`warrantyDuration`,`Thời lượng gói bảo hành`],[`warrantyForm`,`Hình thức gói bảo hành`],[`routeNote`,`Lưu ý dưới bảng giá lộ trình`],[`citimeNote`,`Lưu ý phụ lục Citime`]].map(([e,n])=>`<div class="pt-field" style="margin-top:12px"><label>${n}</label>
336
+ <textarea class="pt-input" rows="2" style="height:auto;padding:8px 12px;resize:vertical" data-act="doc-text" data-k="${e}">${Y(t.docTexts?.[e])}</textarea></div>`).join(``)}
337
+ <div style="display:flex;gap:8px;margin-top:20px;flex-wrap:wrap">
338
+ <button class="pt-btn pt-btn--ghost pt-btn--sm" data-act="reset-seed">${D(`refresh`,15)}Khôi phục dữ liệu gốc từ file Excel ban đầu</button>
339
+ </div></div></div>`}function K(){let e=x.querySelector(`#pt-admin-table`);if(!e)return;let t=h.admin,n=M(B()).find(e=>e.id===t.tab),r=H(n),i=t.q.trim().toLowerCase(),a=t.issues.filter(e=>e.table===n.id),o=new Set(a.map(e=>e.row)),s=r.map((e,t)=>({r:e,i:t})).filter(({r:e})=>!n.byLabel||!t.label||Q(e.label,t.label)).filter(({r:e})=>!i||n.columns.some(t=>String(ee(t,e[t.key])).toLowerCase().includes(i))),c=(e,t,n)=>{let r=t[e.key],i=`data-edit="${n}" data-k="${e.key}"`;if(e.type===`bool`)return`<input type="checkbox" ${r?`checked`:``} ${i} style="width:18px;height:18px;accent-color:var(--pt-purple)">`;if(e.type===`select`)return`<select class="pt-select" ${i}>${(e.options.includes(r)||r===``?e.options:[r,...e.options]).map(e=>`<option ${e===r?`selected`:``}>${Y(e)}</option>`).join(``)}</select>`;if(e.type===`combo`)return`<input class="pt-input w-wide" list="pt-dl-${e.key}" value="${Y(r)}" ${i} placeholder="Chọn logo có sẵn hoặc dán link ảnh">
340
+ <datalist id="pt-dl-${e.key}">${e.options.map(e=>`<option value="${Y(e)}"></option>`).join(``)}</datalist>`;if(e.type===`color`)return`<input type="color" value="${Y(r||`#000000`)}" ${i} style="width:44px;height:30px;border:0;background:none;cursor:pointer">`;if(e.type===`multiline`)return`<textarea class="pt-input w-wide" rows="${Math.max(2,Math.min(4,String(r??``).split(`
341
+ `).length))}" ${i}
342
+ style="height:auto;padding:6px 8px;resize:vertical;line-height:1.4">${Y(r)}</textarea>`;let a=[`money`,`pct`,`int`].includes(e.type);return`<input class="pt-input ${a?`num`:``} ${e.wide?`w-wide`:``}" ${a?`inputmode="decimal"`:``} value="${Y(ee(e,r))}" ${i}>`};x.querySelector(`#pt-issues`).innerHTML=a.length?`<ul class="pt-issues">${a.map(e=>`<li>Dòng ${e.row+1}: ${Y(e.message)}</li>`).join(``)}</ul>`:``,e.innerHTML=`<table class="pt-table pt-table--edit">
343
+ <thead><tr><th class="pt-rowno">#</th>${n.columns.map(e=>`<th class="${[`money`,`pct`,`int`].includes(e.type)?`num`:``}">${e.label}</th>`).join(``)}<th></th></tr></thead>
344
+ <tbody>${s.map(({r:e,i:t})=>`<tr class="${o.has(t)?`has-issue`:``}"><td class="pt-rowno">${t+1}</td>${n.columns.map(n=>`<td>${c(n,e,t)}</td>`).join(``)}
345
+ <td><button class="pt-icon-btn is-danger" title="Xóa dòng" data-act="row-del" data-i="${t}">${D(`trash`,15)}</button></td></tr>`).join(``)||`<tr><td colspan="${n.columns.length+2}" class="pt-empty">Chưa có dữ liệu</td></tr>`}</tbody></table>`}async function q(){let e=B(),t=T(e);if(h.admin.issues=t,t.length&&!s(`Có ${t.length} cảnh báo dữ liệu (trùng khóa, giá ≤ 0...). Vẫn lưu?`)){let e=t[0];h.admin.tab=e.table,C()}else try{e.updatedAt=new Date().toISOString(),i&&(e.updatedBy=i.email??i.name??``);let t=h.admin.month;await n.save(t,e),c.set(t,y(Be(e))),h.months=[...new Set([...h.months,t])].sort().reverse(),t===h.month&&(h.data=c.get(t),g()),h.admin.draft=null,h.admin.dirty=!1,h.admin.issues=[],J(`Đã lưu ${$(t).toLowerCase()}${t===h.month?` — sale thấy giá mới ngay`:``}`),C()}catch(e){J(`Lưu thất bại: ${e.message}`)}}let me;function J(t){let n=document.querySelector(`.pt-root .pt-toast`);n||(n=document.createElement(`div`),n.className=`pt-toast`,e.appendChild(n)),n.textContent=t,clearTimeout(me),me=setTimeout(()=>n.remove(),2600)}async function he(e){try{await navigator.clipboard.writeText(e)}catch{let t=Object.assign(document.createElement(`textarea`),{value:e});document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}}function ge(e,t){let n=Object.assign(document.createElement(`a`),{href:URL.createObjectURL(new Blob([t],{type:`application/json`})),download:e});n.click(),setTimeout(()=>URL.revokeObjectURL(n.href),1e3)}e.addEventListener(`click`,async t=>{let r=t.target.closest(`[data-act]`);if(!r||!e.contains(r)||r.disabled)return;let i=r.dataset.act,a=h.admin;switch(i){case`pdf-print`:await se();return;case`view`:h.view=r.dataset.v;break;case`role`:h.role=r.dataset.v;break;case`calc`:F(h.calc,r.dataset.f,r.dataset.v);break;case`toggle`:{let e=r.dataset.code;h.calc.selected[e]?delete h.calc.selected[e]:h.calc.selected[e]=m(h.data,h.calc.label).find(t=>Q(t.code,e))?.modes[0];break}case`mode`:t.stopPropagation(),h.calc.selected[r.dataset.code]=r.dataset.v;break;case`clear-courses`:h.calc.selected={};break;case`reset-calc`:h.calc=E(h.data);break;case`copy`:await he(I()),J(`Đã sao chép báo giá — dán vào Zalo/Messenger để gửi khách`);return;case`tbl-reset`:h.table={...E(h.data),output:``};break;case`open-route`:{let e=h.table,t=h.data.routes.find(t=>Q(t.label,e.label)&&Q(t.code,r.dataset.code));h.calc={...e,selected:Object.fromEntries(t.items.map(e=>[e.code,e.mode]))},delete h.calc.output,h.view=`calc`;break}case`admin-tab`:a.tab=r.dataset.v,a.q=``;break;case`row-add`:{let e=M(B()).find(e=>e.id===a.tab);H(e).push(e.blank(a.label||B().settings.labels[0]?.name||``)),a.q=``,G(),K();let t=x.querySelector(`#pt-admin-table tbody tr:last-child`);t?.scrollIntoView({block:`center`,behavior:`smooth`}),t?.querySelector(`input,select`)?.focus();return}case`row-del`:{let e=M(B()).find(e=>e.id===a.tab);H(e).splice(Number(r.dataset.i),1),a.issues=[],G(),K();return}case`save`:await q();return;case`discard`:a.draft=null,a.dirty=!1,a.issues=[],h.months.includes(a.month)||(a.month=h.months[0]??h.month);break;case`create-month`:await le();break;case`goto-create`:h.view=`admin`,a.newMonth=r.dataset.v,h.months.length||(a.month=r.dataset.v);break;case`export-json`:ge(`du-lieu-khuyen-mai-${a.month}.json`,JSON.stringify(B(),null,1));return;case`reset-seed`:if(!s(`Thay dữ liệu ${$(a.month).toLowerCase()} bằng bản gốc nhập từ file Excel ban đầu? (chưa lưu cho tới khi bấm Lưu)`))return;a.draft=y(await n.seed()),[a.draft.settings.validFrom,a.draft.settings.validTo]=Ue(a.month),G(),a.dirty=!0;break;default:return}C()}),e.addEventListener(`keydown`,e=>{let t=e.target.closest(`[data-act="toggle"]`);t&&(e.key===` `||e.key===`Enter`)&&e.target===t&&(e.preventDefault(),t.click())}),e.addEventListener(`change`,async e=>{let t=e.target,n=h.admin;if(t.dataset.edit!=null){let e=M(B()).find(e=>e.id===n.tab),r=e.columns.find(e=>e.key===t.dataset.k);H(e)[Number(t.dataset.edit)][r.key]=r.type===`bool`?t.checked:te(r,t.value),r.type!==`bool`&&r.type!==`select`&&(t.value=ee(r,H(e)[Number(t.dataset.edit)][r.key])),G()}else{switch(t.dataset.act){case`setting`:B().settings[t.dataset.k]=t.value,G();return;case`doc-text`:(B().settings.docTexts??={})[t.dataset.k]=t.value,G();return;case`pdf`:F(h.pdf,t.dataset.f,t.value,c.get(h.pdf.month)),t.dataset.f===`label`&&(h.pdf.outputs=[]),h.pdf.scenarios=[];break;case`pdf-month`:{let[e,n]=h.pdf.month.split(`-`);await ie(t.dataset.part===`y`?`${t.value}-${n}`:`${e}-${t.value}`);break}case`pdf-scen`:{let e=c.get(h.pdf.month),n=de(e,h.pdf).map(e=>e.id),r=new Set(h.pdf.scenarios.length?h.pdf.scenarios:fe(e,h.pdf));t.checked?r.add(t.value):r.delete(t.value),h.pdf.scenarios=n.filter(e=>r.has(e)),h.pdf.scenarios.length||(h.pdf.scenarios=[n[0]]);break}case`view-month`:h.month=t.value,h.data=await l(h.month),g();break;case`admin-month`:if(h.admin.dirty&&!s(`Đang có thay đổi chưa lưu. Bỏ thay đổi để chuyển tháng?`)){t.value=h.admin.month;return}h.admin.month=t.value,h.admin.draft=null,h.admin.dirty=!1,h.admin.issues=[],await l(t.value);break;case`new-month`:h.admin.newMonth=t.value;return;case`copy-from`:h.admin.copyFrom=t.value;return;case`pdf-title`:h.pdf.title=t.value.trim();break;case`pdf-sec`:case`pdf-out`:{let e=t.dataset.act===`pdf-sec`?`sections`:`outputs`,n=e===`sections`?oe.map(e=>e.id):ue(c.get(h.pdf.month),h.pdf.label),r=new Set(h.pdf[e].length||e===`sections`?h.pdf[e]:n);t.checked?r.add(t.value):r.delete(t.value),h.pdf[e]=n.filter(e=>r.has(e));break}case`tbl`:F(h.table,t.dataset.f,t.value),t.dataset.f===`label`&&(h.table.output=``);break;case`pick-route`:{let e=h.data.routes.find(e=>Q(e.label,h.calc.label)&&Q(e.code,t.value));e&&(h.calc.selected=Object.fromEntries(e.items.map(e=>[e.code,e.mode])));break}case`admin-label`:n.label=t.value,K();return;case`import-json`:case`import-xlsx`:{let e=t.files?.[0];if(!e)return;try{let r=t.dataset.act===`import-json`?JSON.parse(await e.text()):await re(e,B());if(!r?.settings||!Array.isArray(r.courses))throw Error(`File không đúng cấu trúc`);Fe(r)!==n.month&&([r.settings.validFrom,r.settings.validTo]=Ue(n.month)),n.draft=y(r),n.issues=T(r),G(),n.dirty=!0,J(`Đã nạp ${e.name} — kiểm tra rồi bấm Lưu & áp dụng`)}catch(e){J(`Không nhập được: ${e.message}`)}break}default:return}C()}}),e.addEventListener(`input`,e=>{e.target.dataset.act===`admin-q`&&(h.admin.q=e.target.value,K())});let _e=e=>{h.admin.dirty&&e.preventDefault()};return window.addEventListener(`beforeunload`,_e),C(),{setRole(e){h.role=e,C()},async reload(){c.clear(),h.months=await n.listMonths(),h.data=await l(h.month),await l(h.admin.month),await l(h.pdf.month),g(),C()},destroy(){window.removeEventListener(`beforeunload`,_e),e.innerHTML=``},unmount(){this.destroy()}}}var Ke=(0,t.defineComponent)({__name:`PromoTool`,props:{role:{default:`sale`},store:{},user:{default:null},allowRoleSwitch:{type:Boolean,default:!1}},emits:[`ready`],setup(e,{expose:n,emit:r}){let i=e,a=r,o=(0,t.ref)(null),s=null;return(0,t.onMounted)(async()=>{o.value&&(s=await Ge(o.value,{role:i.role,store:i.store,user:i.user,allowRoleSwitch:i.allowRoleSwitch}),a(`ready`,s))}),(0,t.onBeforeUnmount)(()=>{s&&typeof s.destroy==`function`&&s.destroy()}),(0,t.watch)(()=>i.role,e=>{s&&e&&s.setRole(e)}),n({getInstance:()=>s,setRole:e=>s?.setRole(e),reload:()=>s?.reload()}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`containerRef`,ref:o,class:`pt-vue-container`},null,512))}});e.PromoTool=Ke,e.STATUS_OK=l,e.coursesForLabel=m,e.default={install(e){e.component(`PromoTool`,Ke)}},e.findMethod=d,e.findProgram=u,e.isFixedTerm=p,e.lktFormatsFor=_,e.lktGroupsFor=v,e.localStore=Ie,e.mountPromoTool=Ge,e.normalizeData=y,e.quote=S,e.restStore=Re,e.routeTable=w,e.seed=ze,e.supabaseStore=Le,e.termsFor=f,e.validateData=T});