@edutalk/promo-tool 0.0.0-stage → 1.0.0

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,133 @@
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=e=>String(e??``).trim().toLowerCase(),r=(e,t)=>n(e)===n(t),i=e=>Math.round(Number(e)||0),a=`OK`;function o(e,t){return e.settings.programs.find(e=>r(e.name,t))}function s(e,t){return e.settings.paymentMethods.find(e=>r(e.name,t))}function c(e,t){return s(e,t)?.terms??[0]}function l(e,t){let n=c(e,t);return n.length===1&&Number(n[0])===0}function u(e,t){return e.settings.courseCodes.slice().sort((e,t)=>e.order-t.order).filter(n=>e.courses.some(e=>r(e.label,t)&&r(e.code,n.code))).map(n=>({...n,name:e.courses.find(e=>r(e.label,t)&&r(e.code,n.code))?.name??n.code,modes:e.courses.filter(e=>r(e.label,t)&&r(e.code,n.code)).map(e=>e.mode)}))}function d(e,t){return e.settings.courseCodes.slice().sort((e,t)=>e.order-t.order).filter(e=>t.some(t=>r(t.code,e.code))).map(e=>e.short).join(`_`)}function f(e,t){return e.settings.lktGroups?.find(e=>r(e.name,t))}function p(e,t,n){return e.lkt.filter(e=>r(e.label,t)&&r(e.group,n))}function m(e,t){return(e.settings.lktGroups??[]).filter(n=>e.lkt.some(e=>r(e.label,t)&&r(e.group,n.name)))}function h(e){let t=e.settings;return 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}function g(e,{label:t,program:n,method:i,keyTerm:a,count:s,lktGroup:c,lktFormat:l}){switch(o(e,n)?.type){case`DINH_KY`:{let n=e.periodic.filter(e=>r(e.label,t)&&e.from<=s&&e.to>=s);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=>r(e.label,t)&&r(e.method,i)&&Number(e.term)===a);return{pct:n?.pct??0,cashback:0,found:!!n}}case`LKT`:{let n=f(e,c),u=n&&l?e.lkt.find(e=>r(e.label,t)&&r(e.group,n.name)&&r(e.format,l)):null,d=o(e,n?.baseProgram),p=d&&d.type!==`LKT`?g(e,{label:t,program:d.name,method:i,keyTerm:a,count:s}):{pct:0,found:!1};return{pct:p.found&&u?p.pct-u.cut:0,cashback:0,found:p.found&&!!u,lkt:{group:n?.name??``,baseProgram:d?.name??``,baseType:d?.type??``,basePct:p.pct,baseFound:p.found,cut:u?u.cut:null}}}case`MO_RONG`:{let o=e.extended.find(e=>r(e.label,t)&&r(e.program,n)&&r(e.method,i)&&Number(e.term)===a);return{pct:o?.pct??0,cashback:0,found:!!o}}default:return{pct:0,cashback:0,found:!1}}}function _(e,{label:t,program:n,method:i,count:a}){let o=s(e,i)?.giftGroup??i,c=e.gifts.filter(e=>r(e.label,t)&&r(e.program,n)&&r(e.method,o));if(!c.length)return null;let l=Math.max(...e.gifts.filter(e=>r(e.label,t)&&r(e.program,n)).map(e=>e.milestone)),u=c.find(e=>Number(e.milestone)===Math.min(a,l));return u?{content:u.content,value:u.value}:null}function v(e,t){let{label:n,program:a,method:c,warranty:u,lktGroup:p,lktFormat:m}=t,h=Number(t.term)||0,v=(t.items??[]).filter(e=>e&&e.code),b=o(e,a),x=s(e,c),S=l(e,c),C=S?0:h,w=b?.type===`LKT`?f(e,p)?.baseProgram:a,T=o(e,w)?.type===`MO_RONG`,E=v.map(t=>{let i=e.courses.find(e=>r(e.label,n)&&r(e.code,t.code)&&r(e.mode,t.mode)),a=i?.voucher??0;if(T){let i=e.programVouchers.find(e=>r(e.label,n)&&r(e.program,w)&&r(e.code,t.code)&&r(e.mode,t.mode));i&&(a=i.voucher)}let o=e.settings.courseCodes.find(e=>r(e.code,t.code));return{code:t.code,mode:t.mode,name:i?.name??t.code,price:i?.price??0,voucher:a,found:!!i,warranty:o?.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=d(e,v),M=j?e.citimeRoutes.find(e=>r(e.label,n)&&r(e.code,j)):null,N=M?M.status:j?`KHÔNG CÓ`:``,P=M?.maxTerm??null,F=g(e,{label:n,program:a,method:c,keyTerm:C,count:D,lktGroup:p,lktFormat:m}),I=O*F.pct,L=O-I-F.cashback-k,R=e.warranty.find(e=>r(e.name,u))?.rate??0,z=A*R,B={lines:E,count:D,gross:i(O),voucherTotal:i(k),pct:F.pct,cashback:i(F.cashback),discountAmt:i(I),afterPromo:i(L),warrantyRate:R,warrantyBase:i(A),warrantyFee:i(z),final:i(L+z),gift:_(e,{label:n,program:a,method:c,count:D}),lkt:F.lkt??null,combo:{code:j,routeName:M?.name??``,group:M?.group??``,citimeStatus:N,citimeMax:P}};return B.status=y(e,{input:t,term:h,prog:b,pm:x,fixedTerm:S,count:D,lines:E,combo:j,citimeStatus:N,citimeMax:P,d:F,result:B}),B.ok=B.status===`OK`,B}function y(e,t){let{input:n,term:i,prog:a,pm:o,fixedTerm:s,count:c,lines:l,combo:u,citimeStatus:d,citimeMax:f,d:p,result:m}=t,h=String(o?.name??n.method??``).toUpperCase(),g=e.settings.labels.find(e=>r(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(a?.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(a?.type===`MO_RONG`&&!p.found)return`KHÔNG ÁP DỤNG CHƯƠNG TRÌNH`;if(a?.type===`LKT`&&p.lkt?.baseType===`MO_RONG`&&!p.lkt.baseFound)return`KHÔNG ÁP DỤNG HTTT CHO NHÓM LKT`;if(c===1&&o&&!o.allowSingle)return`KHÓA LẺ CHỈ ÁP DỤNG ĐÓNG FULL`;if(s&&i!==0)return`${h} PHẢI CÓ KỲ HẠN = 0`;if(g?.blockedMethods?.some(e=>r(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(o&&!o.citime&&!s&&!o.terms.map(Number).includes(i))return`KỲ HẠN ${h} KHÔNG HỢP LỆ`;if(o?.citime){if(!r(d,`Áp dụng`))return`KHÔNG ÁP DỤNG ${h}`;if(!o.terms.map(Number).includes(i))return`KỲ HẠN ${h} KHÔNG HỢP LỆ`;if(f!=null&&i>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 b(e,{label:t,program:n,method:i,term:a,warranty:o,lktGroup:s,lktFormat:c,output:l}){return e.routes.filter(e=>r(e.label,t)&&(!l||r(e.output,l))).map(r=>({route:r,quote:v(e,{label:t,program:n,method:i,term:a,warranty:o,lktGroup:s,lktFormat:c,items:r.items})}))}function x(e){let t=[],r=(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)})};r(e.courses,e=>n(`${e.label}|${e.code}|${e.mode}`),`courses`),r(e.programVouchers,e=>n(`${e.label}|${e.program}|${e.code}|${e.mode}`),`programVouchers`),r(e.special,e=>n(`${e.label}|${e.method}|${e.term}`),`special`),r(e.extended,e=>n(`${e.label}|${e.program}|${e.method}|${e.term}`),`extended`),r(e.lkt,e=>n(`${e.label}|${e.group}|${e.format}`),`lkt`),e.lkt.forEach((n,r)=>{f(e,n.group)||t.push({table:`lkt`,row:r,message:`Nhóm "${n.group}" chưa khai báo ở mục Nhóm LKT`})}),r(e.citimeRoutes,e=>n(`${e.label}|${e.code}`),`citimeRoutes`),r(e.gifts,e=>n(`${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 S={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"/>`},C=(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">${S[e]??``}</svg>`,w=e=>[...new Set(e.filter(e=>e!==``&&e!=null))],T=[`Online`,`Offline`];function E(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=w(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:T},{key:`price`,label:`Giá gốc`,type:`money`},{key:`voucher`,label:`Voucher đặc biệt`,type:`money`}],blank:e=>({label:e,code:s[0],name:``,mode:`Online`,price:0,voucher:0})},{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:T},{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`}],blank:()=>({name:``,terms:[0],giftGroup:``,citime:!1,allowSingle:!1})},{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})}]}function D(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 O(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 k=`https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js`;function A(){return window.XLSX?Promise.resolve(window.XLSX):new Promise((e,t)=>{let n=document.createElement(`script`);n.src=k,n.onload=()=>e(window.XLSX),n.onerror=()=>t(Error(`Không tải được thư viện đọc Excel`)),document.head.appendChild(n)})}var j=(e,t=0)=>e===``||e==null||Number.isNaN(Number(e))?t:Number(e),M=e=>e==null?``:String(e).trim();async function N(e,t){let n=await A(),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=>M(e[0])!==``)},a=JSON.parse(JSON.stringify(t));a.courses=i(`01_DM_KHOA_HOC`,6).map(e=>({label:M(e[0]),code:M(e[1]),name:M(e[2]),mode:M(e[3]),price:j(e[4]),voucher:j(e[5])})),a.programVouchers=i(`01B_VOUCHER_CTKM`,5).map(e=>({label:M(e[0]),program:M(e[1]),code:M(e[2]),mode:M(e[3]),voucher:j(e[4])})),a.warranty=i(`02_DM_BAO_HANH`,2).map(e=>({name:M(e[0]),rate:j(e[1])})),a.periodic=i(`03_CTKM_DINH_KY`,5).map(e=>({label:M(e[0]),from:j(e[1]),to:j(e[2]),pct:j(e[3]),cashback:j(e[4])})),a.special=i(`04_CTKM_DAC_BIET`,7).map(e=>({label:M(e[0]),method:M(e[1]),term:j(e[2]),pct:j(e[3]),applyType:M(e[4]),minCourses:j(e[5],1),note:M(e[6])})),a.lkt=(n.utils.sheet_to_json(r.Sheets[`04B_CTKM_LKT`]??{},{header:1})[0]??[]).some(e=>/nhóm/i.test(M(e)))?i(`04B_CTKM_LKT`,4).map(e=>({label:M(e[0]),group:M(e[1]),format:M(e[2]),cut:j(e[3])})):i(`04B_CTKM_LKT`,3).map(e=>({label:M(e[0]),group:`LKT Toàn hệ thống`,format:M(e[1]),cut:j(e[2])}));let o=a.settings.lktGroups??=[];for(let e of new Set(a.lkt.map(e=>e.group))){if(o.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);o.push({name:e,baseProgram:n?.name??`Định kỳ đặc biệt`})}a.extended=i(`04C_CTKM_MO_RONG`,8).map(e=>({label:M(e[0]),program:M(e[1]),method:M(e[2]),term:j(e[3]),pct:j(e[4]),applyType:M(e[5]),minCourses:j(e[6],1),note:M(e[7])})),a.citimeRoutes=i(`05_CITIME_LO_TRINH`,7).map(e=>({label:M(e[0]),group:M(e[1]),count:j(e[2]),code:M(e[3]),name:M(e[4]),status:M(e[5]),maxTerm:j(e[6])})),a.gifts=i(`07_QUA_TANG`,6).map(e=>({label:M(e[0]),program:M(e[1]),milestone:j(e[2]),method:M(e[3]),content:M(e[4]),value:j(e[5])})),a.routes=i(`08_LO_TRINH`,20).map(e=>{let t=[];for(let n=4;n<20;n+=2)M(e[n])&&t.push({code:M(e[n]),mode:M(e[n+1])});return{label:M(e[0]),output:M(e[1]),code:M(e[2]),name:M(e[3]),items:t}});let s=r.Sheets[`06_DM_KY_HAN_CITIME`]?i(`06_DM_KY_HAN_CITIME`,1).map(e=>j(e[0])):null;return s?.length&&a.settings.paymentMethods.filter(e=>e.citime).forEach(e=>e.terms=s),a}var P=e=>JSON.parse(JSON.stringify(e)),F=e=>String(e??``).replace(/[&<>"']/g,e=>({"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`})[e]),I=e=>`${Math.round(Number(e)||0).toLocaleString(`vi-VN`)}đ`,L=e=>`${+(Number(e||0)*100).toFixed(2)}%`,R=e=>e?e.split(`-`).reverse().join(`/`):``,z=(e,t)=>String(e??``).trim().toLowerCase()===String(t??``).trim().toLowerCase();async function B(e,t={}){let{store:n,allowRoleSwitch:r=!1,user:i=null}=t,a={role:t.role===`admin`?`admin`:`sale`,view:`calc`,data:h(await n.load()),calc:null,table:null,admin:{tab:`courses`,label:``,q:``,draft:null,dirty:!1,issues:[]}};a.calc=_(a.data),a.table={..._(a.data),output:``},e.classList.add(`pt-root`),e.innerHTML=``;let d=document.createElement(`div`),f=document.createElement(`div`);f.className=`pt-body`,e.append(d,f);function g(){let e=[[`calc`,`calc`,`Tính giá`],[`table`,`table`,`Bảng giá lộ trình`],...a.role===`admin`?[[`admin`,`db`,`Quản trị dữ liệu gốc`]]:[]];a.view===`admin`&&a.role!==`admin`&&(a.view=`calc`),d.className=`pt-band`,d.innerHTML=e.map(([e,t,n])=>`<button class="pt-tab ${a.view===e?`is-active`:``}" data-act="view" data-v="${e}">${C(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">
2
+ <button class="${a.role===`sale`?`is-active`:``}" data-act="role" data-v="sale">Sale / TVV</button>
3
+ <button class="${a.role===`admin`?`is-active`:``}" data-act="role" data-v="admin">Admin</button></div>`:``),f.innerHTML=`<div class="pt-container">${a.view===`calc`?k():a.view===`table`?M():H()}</div>`,a.view===`admin`&&K()}function _(e){return{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:{}}}let y=e=>({...e,items:a.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 S({ic:e,title:t,sub:n,actions:r=``,stats:i=``}){return`<div class="pt-page-head">
4
+ <div class="pt-title-row">
5
+ <div class="pt-title-icon">${C(e,20)}</div>
6
+ <div><h2 class="pt-title">${t}</h2><p class="pt-sub">${n}</p></div>
7
+ <div class="pt-title-actions">${r}</div>
8
+ </div>
9
+ ${i?`<div class="pt-stats">${i}</div>`:``}
10
+ </div>`}let w=(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>
11
+ <div class="pt-stat-value ${i?`is-small`:``}">${n}</div></div><div class="pt-stat-icon">${C(r)}</div></div>`,T=(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 ${z(t,n)?`is-active`:``}" data-act="calc" data-f="${e}" data-v="${F(t)}" ${o?`disabled`:``}
12
+ ${o&&typeof o==`string`?`title="${F(o)}"`:``}>${F(a(t))}${s?` <small>${F(s)}</small>`:``}</button>`}).join(``)}</div>`;function k(){let e=a.data,t=a.calc,n=v(e,y(t)),r=e.settings,i=o(e,t.program),d=r.labels.find(e=>z(e.name,t.label)),f=c(e,t.method),h=l(e,t.method),g=s(e,t.method),_=n.discountAmt+n.cashback+n.voucherTotal,b=u(e,t.label),x=e.routes.filter(e=>z(e.label,t.label)),E=w(`grey`,`Tổng giá gốc`,I(n.gross),`tag`)+w(`white`,`Tổng ưu đãi ${n.pct?`(${L(n.pct)})`:``}`,_?`-${I(_)}`:`0đ`,`percent`)+w(n.ok?`green`:`purple`,`Học phí cuối cùng`,n.count?I(n.final):`—`,`wallet`)+w(n.ok?`green`:`red`,`Trạng thái`,n.ok?`Hợp lệ`:F(n.status),n.ok?`checkCircle`:`alert`,!n.ok),D=`<div class="pt-form">
13
+ <div class="pt-form-row"><div class="pt-label">Nhãn</div>${T(`label`,r.labels.map(e=>e.name),t.label)}</div>
14
+ <div class="pt-form-row"><div class="pt-label">Chương trình</div>${T(`program`,r.programs.map(e=>e.name),t.program)}</div>
15
+ ${i?.type===`LKT`?`<div class="pt-form-row"><div class="pt-label">Nhóm LKT<small>${n.lkt?.baseProgram?`Theo chương trình ${F(n.lkt.baseProgram)}`:``}</small></div>${m(e,t.label).length?T(`lktGroup`,m(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>
16
+ ${t.lktGroup?`<div class="pt-form-row"><div class="pt-label">Format LKT</div>${T(`lktFormat`,p(e,t.label,t.lktGroup).map(e=>e.format),t.lktFormat,{hint:n=>{let r=p(e,t.label,t.lktGroup).find(e=>z(e.format,n))?.cut;return r?`-${L(r)}`:``}})}</div>`:``}`:``}
17
+ <div class="pt-form-row"><div class="pt-label">Hình thức thanh toán</div>${T(`method`,r.paymentMethods.map(e=>e.name),t.method,{disabled:e=>d?.blockedMethods?.some(t=>z(t,e))?`${t.label} không áp dụng ${e}`:!1})}</div>
18
+ <div class="pt-form-row"><div class="pt-label">Kỳ hạn<small>${g?.citime&&n.combo.citimeMax?`Tối đa ${n.combo.citimeMax} tháng`:``}</small></div>${h?`<div class="pt-chips"><span class="pt-chip is-active">Không kỳ hạn</span></div>`:T(`term`,f.map(String),String(t.term),{fmt:e=>`${e} tháng`,disabled:e=>g?.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>
19
+ <div class="pt-form-row"><div class="pt-label">Gói bảo hành</div>${T(`warranty`,e.warranty.map(e=>e.name),t.warranty,{hint:t=>{let n=e.warranty.find(e=>z(e.name,t))?.rate;return n?`+${L(n)}`:``}})}</div>
20
+ </div>`,O=b.map(n=>{let r=!!t.selected[n.code],i=t.selected[n.code]??n.modes[0],a=v(e,{...t,items:[{code:n.code,mode:i}]}).lines[0];return`<div class="pt-course ${r?`is-on`:``}" data-act="toggle" data-code="${F(n.code)}" role="checkbox" aria-checked="${r}" tabindex="0">
21
+ <div class="pt-course-top"><span class="pt-check">${r?C(`check`,14):``}</span>
22
+ <div style="min-width:0"><div class="pt-course-name">${F(n.name)}</div><div class="pt-course-code">${F(n.code)}</div></div></div>
23
+ ${n.modes.length>1?`<div class="pt-seg">${n.modes.map(e=>`<button class="${z(e,i)?`is-active`:``}" data-act="mode" data-code="${F(n.code)}" data-v="${F(e)}">${F(e)}</button>`).join(``)}</div>`:`<span class="pt-seg-single">${F(n.modes[0])}</span>`}
24
+ <div class="pt-course-price"><span>Giá gốc <b>${I(a?.price)}</b></span>${a?.voucher?`<span>VC -${I(a.voucher)}</span>`:``}</div>
25
+ </div>`}).join(``),k=n.lines.map(e=>`<tr><td>${F(e.name)} <span style="color:var(--pt-faint)">· ${F(e.mode)}</span></td><td>${I(e.price)}</td></tr>`).join(``),A=`<div class="pt-section pt-result">
26
+ <div class="pt-section-head"><div class="pt-section-icon">${C(`calc`,16)}</div>
27
+ <div><div class="pt-section-title">Kết quả báo giá</div><div class="pt-section-sub">${n.count} khóa · ${F(t.program)} · ${F(t.method)}${t.term?` ${t.term} tháng`:``}</div></div></div>
28
+ <div class="pt-section-body">
29
+ <div class="pt-status ${n.ok?`is-ok`:`is-bad`}">${C(n.ok?`checkCircle`:`alert`,16)}${n.ok?`Báo giá hợp lệ`:F(n.status)}</div>
30
+ ${k?`<table class="pt-lines">${k}</table>`:``}
31
+ <ul class="pt-rows">
32
+ <li><span>Tổng giá gốc</span><b>${I(n.gross)}</b></li>
33
+ <li class="is-minus"><span>Ưu đãi ${L(n.pct)}${n.lkt?.cut!=null&&n.lkt.baseFound?`<br><small style="color:var(--pt-faint)">${F(n.lkt.baseProgram)} ${L(n.lkt.basePct)} − cắt ${F(t.lktFormat)} ${L(n.lkt.cut)}</small>`:``}</span><b>-${I(n.discountAmt)}</b></li>
34
+ ${n.cashback?`<li class="is-minus"><span>Hoàn tiền (Định kỳ)</span><b>-${I(n.cashback)}</b></li>`:``}
35
+ <li class="is-minus"><span>Voucher đặc biệt</span><b>-${I(n.voucherTotal)}</b></li>
36
+ <li><span>Giá sau khuyến mại</span><b>${I(n.afterPromo)}</b></li>
37
+ <li class="is-plus"><span>Bảo hành ${F(t.warranty)} (${L(n.warrantyRate)} × ${I(n.warrantyBase)})</span><b>+${I(n.warrantyFee)}</b></li>
38
+ </ul>
39
+ <div class="pt-final ${n.ok?``:`is-dim`}"><small>HỌC PHÍ CUỐI CÙNG</small><div>${n.count?I(n.final):`—`}</div></div>
40
+ ${n.gift?`<div class="pt-gift">${C(`gift`,18)}<div><b>Quà tặng:</b> ${F(n.gift.content)}</div></div>`:``}
41
+ ${n.combo.code?`<div class="pt-combo">Mã lộ trình: <b>${F(n.combo.code)}</b>${n.combo.routeName?` · ${F(n.combo.group)}`:``}<br>
42
+ Citime: <b>${F(n.combo.citimeStatus)}</b>${n.combo.citimeMax?` · tối đa ${n.combo.citimeMax} tháng`:``}</div>`:``}
43
+ <div style="display:flex;gap:8px;margin-top:14px">
44
+ <button class="pt-btn pt-btn--primary" style="flex:1;justify-content:center" data-act="copy" ${n.count?``:`disabled`}>${C(`copy`,16)}Sao chép báo giá</button>
45
+ <button class="pt-btn pt-btn--ghost" data-act="reset-calc" title="Làm mới">${C(`refresh`,16)}</button>
46
+ </div>
47
+ </div></div>`;return S({ic:`calc`,title:`Tính giá khuyến mại`,sub:`${F(r.campaignName)} · Áp dụng ${R(r.validFrom)} – ${R(r.validTo)}`,stats:E})+`<div class="pt-grid pt-grid-calc" style="margin-top:14px">
48
+ <div>
49
+ <div class="pt-section" style="margin-top:0">
50
+ <div class="pt-section-head"><div class="pt-section-icon">${C(`filter`,16)}</div>
51
+ <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>
52
+ <div class="pt-section-body">${D}</div>
53
+ </div>
54
+ <div class="pt-section">
55
+ <div class="pt-section-head"><div class="pt-section-icon">${C(`book`,16)}</div>
56
+ <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 · ${F(r.note??``)}</div></div>
57
+ <div class="pt-section-actions">
58
+ <select class="pt-select" style="height:34px;max-width:260px" data-act="pick-route">
59
+ <option value="">Chọn nhanh theo lộ trình…</option>
60
+ ${x.map(e=>`<option value="${F(e.code)}">${F(e.output?`[${e.output}] `:``)}${F(e.name)}</option>`).join(``)}
61
+ </select>
62
+ <button class="pt-btn pt-btn--link" data-act="clear-courses">Bỏ chọn</button>
63
+ </div></div>
64
+ <div class="pt-section-body"><div class="pt-courses">${O||`<div class="pt-empty">Nhãn này chưa có khóa học</div>`}</div></div>
65
+ </div>
66
+ </div>
67
+ ${A}
68
+ </div>`}function A(e,t,n){let r=a.data;if(t===`term`&&(n=Number(n)),e[t]=n,t===`label`){let t=u(r,n);for(let n of Object.keys(e.selected)){let r=t.find(e=>z(e.code,n));r?r.modes.some(t=>z(t,e.selected[n]))||(e.selected[n]=r.modes[0]):delete e.selected[n]}let i=r.settings.labels.find(e=>z(e.name,n))?.blockedMethods??[];i.some(t=>z(t,e.method))&&(e.method=r.settings.paymentMethods.find(e=>!i.some(t=>z(t,e.name)))?.name??``)}if(t===`method`||t===`label`){let t=c(r,e.method).map(Number);t.includes(Number(e.term))||(e.term=t[0]??0)}if([`label`,`program`,`lktGroup`].includes(t)&&o(r,e.program)?.type===`LKT`){let t=m(r,e.label);t.some(t=>z(t.name,e.lktGroup))||(e.lktGroup=t[0]?.name??``);let n=p(r,e.label,e.lktGroup);n.some(t=>z(t.format,e.lktFormat))||(e.lktFormat=n[0]?.format??``)}}function j(){let e=a.calc,t=v(a.data,y(e)),n=[`BÁO GIÁ HỌC PHÍ – ${e.label.toUpperCase()}`,`Chương trình: ${e.program}${o(a.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}): ${I(e.price)}`),`Tổng giá gốc: ${I(t.gross)}`,`Ưu đãi ${L(t.pct)}: -${I(t.discountAmt)}`,...t.cashback?[`Hoàn tiền: -${I(t.cashback)}`]:[],...t.voucherTotal?[`Voucher: -${I(t.voucherTotal)}`]:[],...t.warrantyFee?[`Bảo hành ${e.warranty}: +${I(t.warrantyFee)}`]:[],`HỌC PHÍ CUỐI CÙNG: ${I(t.final)}`,...t.gift?[`Quà tặng: ${t.gift.content}`]:[],`(${a.data.settings.campaignName}, áp dụng đến ${R(a.data.settings.validTo)})`];return t.ok||n.unshift(`⚠ CHƯA HỢP LỆ: ${t.status}`),n.join(`
69
+ `)}function M(){let e=a.data,t=a.table,n=[...new Set(e.routes.filter(e=>z(e.label,t.label)).map(e=>e.output).filter(Boolean))],r=b(e,t),i=r.filter(e=>e.quote.ok),s=i.length?i.reduce((e,t)=>e+t.quote.pct,0)/i.length:0,l=o(e,t.program),u=(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="${F(e)}" ${z(e,n)?`selected`:``}>${F(r(e))}</option>`).join(``)}</select>`,d=`<div class="pt-section">
70
+ <div class="pt-section-head no-line"><div class="pt-section-icon">${C(`filter`,16)}</div>
71
+ <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>
72
+ <div class="pt-section-actions"><button class="pt-btn pt-btn--link" data-act="tbl-reset">${C(`filter`,14)}Xóa bộ lọc</button></div></div>
73
+ <div class="pt-section-body"><div class="pt-grid pt-grid-3">
74
+ <div class="pt-field"><label>Nhãn</label>${u(`label`,e.settings.labels.map(e=>e.name),t.label)}</div>
75
+ <div class="pt-field"><label>Đầu ra</label>${u(`output`,n,t.output,e=>e,`Tất cả đầu ra`)}</div>
76
+ <div class="pt-field"><label>Chương trình</label>${u(`program`,e.settings.programs.map(e=>e.name),t.program)}</div>
77
+ ${l?.type===`LKT`?`<div class="pt-field"><label>Nhóm LKT</label>${u(`lktGroup`,m(e,t.label).map(e=>e.name),t.lktGroup,e=>e,`Chọn nhóm`)}</div>
78
+ <div class="pt-field"><label>Format LKT</label>${u(`lktFormat`,p(e,t.label,t.lktGroup).map(e=>e.format),t.lktFormat,e=>e,`Chọn format`)}</div>`:``}
79
+ <div class="pt-field"><label>Hình thức thanh toán</label>${u(`method`,e.settings.paymentMethods.map(e=>e.name),t.method)}</div>
80
+ <div class="pt-field"><label>Kỳ hạn</label>${u(`term`,c(e,t.method).map(String),String(t.term),e=>Number(e)?`${e} tháng`:`Không kỳ hạn`)}</div>
81
+ <div class="pt-field"><label>Gói bảo hành</label>${u(`warranty`,e.warranty.map(e=>e.name),t.warranty)}</div>
82
+ </div></div></div>`,f=r.map(({route:e,quote:t})=>`<tr>
83
+ <td><div style="font-weight:500">${F(e.name)}</div><div class="muted">${F(e.code)}</div></td>
84
+ <td>${e.output?`<span class="pt-pill pt-pill--purple">${F(e.output)}</span>`:``}</td>
85
+ <td class="num">${t.count}</td>
86
+ <td class="num">${I(t.gross)}</td>
87
+ <td class="num">${t.ok?`<span class="pt-pill pt-pill--orange">-${L(t.pct)}</span>`:`—`}</td>
88
+ <td class="num">${t.ok?I(t.afterPromo):`—`}</td>
89
+ <td class="num"><b>${t.ok?I(t.final):`—`}</b></td>
90
+ <td class="muted">${t.ok&&t.gift?F(t.gift.content):``}</td>
91
+ <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>${F(t.status)}</span>`}</td>
92
+ <td><button class="pt-icon-btn" title="Mở trong công cụ tính giá" data-act="open-route" data-code="${F(e.code)}">${C(`eye`,16)}</button></td>
93
+ </tr>`).join(``);return S({ic:`table`,title:`Bảng giá lộ trình gợi ý`,sub:`Học phí đã gồm ưu đãi theo bộ lọc · ${F(e.settings.campaignName)}`,stats:w(`grey`,`Tổng lộ trình`,r.length,`route`)+w(`white`,`Mức giảm trung bình`,i.length?L(s):`—`,`percent`)+w(`green`,`Hợp lệ`,i.length,`checkCircle`)+w(`red`,`Không áp dụng`,r.length-i.length,`xCircle`)})+d+`<div class="pt-section">
94
+ <div class="pt-section-head"><div><div class="pt-section-title">Danh sách lộ trình</div>
95
+ <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>
96
+ <div class="pt-table-wrap"><table class="pt-table">
97
+ <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>
98
+ <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>
99
+ <tbody>${f||`<tr><td colspan="10" class="pt-empty">Không có lộ trình phù hợp</td></tr>`}</tbody>
100
+ </table></div>
101
+ </div>`}let B=()=>a.admin.draft??=P(a.data),V=e=>e.path.reduce((e,t)=>e[t],B());function H(){let e=B(),t=a.admin,n=E(e),r=n.find(e=>e.id===t.tab),i=[...new Set(n.map(e=>e.group))].map(e=>`<div class="pt-menu-group">${e}</div>`+n.filter(t=>t.group===e).map(e=>`<button class="${e.id===t.tab?`is-active`:``}" data-act="admin-tab" data-v="${e.id}">
102
+ <span class="pt-menu-ic">${C(e.icon,15)}</span>${e.title}<span class="pt-count">${V(e).length}</span></button>`).join(``)).join(``)+`<div class="pt-menu-group">Chung</div>
103
+ <button class="${t.tab===`general`?`is-active`:``}" data-act="admin-tab" data-v="general"><span class="pt-menu-ic">${C(`settings`,15)}</span>Thông tin chương trình</button>`,o=e.periodic.length+e.special.length+e.extended.length+e.lkt.length,s=x(e).length,c=w(`grey`,`Khóa học`,e.courses.length,`book`)+w(`white`,`Dòng CTKM`,o,`percent`)+w(`green`,`Lộ trình gợi ý`,e.routes.length,`route`)+w(s?`red`:`green`,`Cảnh báo dữ liệu`,s,s?`alert`:`checkCircle`),l=t.tab===`general`?G(e):`<div class="pt-section" style="margin-top:0">
104
+ <div class="pt-section-head"><div class="pt-section-icon">${C(r.icon,16)}</div>
105
+ <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>
106
+ <div class="pt-section-actions">
107
+ ${r.byLabel?`<select class="pt-select" style="height:36px;width:170px" data-act="admin-label"><option value="">Tất cả nhãn</option>${e.settings.labels.map(e=>`<option ${z(e.name,t.label)?`selected`:``}>${F(e.name)}</option>`).join(``)}</select>`:``}
108
+ <input class="pt-input" style="height:36px;width:180px" placeholder="Tìm…" value="${F(t.q)}" data-act="admin-q">
109
+ <button class="pt-btn pt-btn--primary" data-act="row-add">${C(`plus`,16)}Thêm mới</button>
110
+ </div></div>
111
+ <p class="pt-help" style="margin-top:14px">${F(r.desc)}</p>
112
+ <div id="pt-issues"></div>
113
+ <div class="pt-table-wrap" id="pt-admin-table"></div>
114
+ </div>`;return S({ic:`db`,title:`Quản trị dữ liệu gốc`,sub:`Nhập giá gốc, CTKM, quà tặng… Sale chỉ xem kết quả tính theo dữ liệu này.`,actions:`
115
+ <label class="pt-btn pt-btn--ghost pt-btn--sm" style="cursor:pointer">${C(`sheet`,15)}Nhập từ Excel<input type="file" accept=".xlsx" hidden data-act="import-xlsx"></label>
116
+ <label class="pt-btn pt-btn--ghost pt-btn--sm" style="cursor:pointer">${C(`upload`,15)}Nhập JSON<input type="file" accept=".json" hidden data-act="import-json"></label>
117
+ <button class="pt-btn pt-btn--ghost pt-btn--sm" data-act="export-json">${C(`download`,15)}Xuất JSON</button>`,stats:c})+`<div class="pt-admin"><nav class="pt-menu">${i}</nav><div>${l}</div></div>
118
+ <div class="pt-savebar" id="pt-savebar" ${t.dirty?``:`hidden`}>${U()}</div>`}let U=()=>`${C(`alert`,18)}<span>Có thay đổi chưa lưu — sale vẫn đang dùng dữ liệu cũ.</span>
119
+ <span class="pt-band-spacer"></span>
120
+ <button class="pt-btn pt-btn--ghost pt-btn--sm" data-act="discard">Hủy thay đổi</button>
121
+ <button class="pt-btn pt-btn--primary pt-btn--sm" data-act="save" style="background:#fff;color:var(--pt-purple)">${C(`save`,15)}Lưu & áp dụng</button>`;function W(){a.admin.dirty=!0;let e=f.querySelector(`#pt-savebar`);e&&(e.hidden=!1)}function G(e){let t=e.settings,n=(e,n,r=`text`)=>`<div class="pt-field"><label>${n}</label><input class="pt-input" type="${r}" value="${F(t[e])}" data-act="setting" data-k="${e}"></div>`;return`<div class="pt-section" style="margin-top:0">
122
+ <div class="pt-section-head"><div class="pt-section-icon">${C(`settings`,16)}</div>
123
+ <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>
124
+ <div class="pt-section-body"><div class="pt-grid pt-grid-3">
125
+ ${n(`campaignName`,`Tên đợt khuyến mại`)}${n(`validFrom`,`Áp dụng từ ngày`,`date`)}${n(`validTo`,`Đến ngày`,`date`)}
126
+ </div><div class="pt-field" style="margin-top:14px"><label>Lưu ý hiển thị cho sale</label>
127
+ <input class="pt-input" value="${F(t.note)}" data-act="setting" data-k="note"></div>
128
+ <div style="display:flex;gap:8px;margin-top:20px;flex-wrap:wrap">
129
+ <button class="pt-btn pt-btn--ghost pt-btn--sm" data-act="reset-seed">${C(`refresh`,15)}Khôi phục dữ liệu gốc từ file Excel ban đầu</button>
130
+ </div></div></div>`}function K(){let e=f.querySelector(`#pt-admin-table`);if(!e)return;let t=a.admin,n=E(B()).find(e=>e.id===t.tab),r=V(n),i=t.q.trim().toLowerCase(),o=t.issues.filter(e=>e.table===n.id),s=new Set(o.map(e=>e.row)),c=r.map((e,t)=>({r:e,i:t})).filter(({r:e})=>!n.byLabel||!t.label||z(e.label,t.label)).filter(({r:e})=>!i||n.columns.some(t=>String(D(t,e[t.key])).toLowerCase().includes(i))),l=(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`:``}>${F(e)}</option>`).join(``)}</select>`;let a=[`money`,`pct`,`int`].includes(e.type);return`<input class="pt-input ${a?`num`:``} ${e.wide?`w-wide`:``}" ${a?`inputmode="decimal"`:``} value="${F(D(e,r))}" ${i}>`};f.querySelector(`#pt-issues`).innerHTML=o.length?`<ul class="pt-issues">${o.map(e=>`<li>Dòng ${e.row+1}: ${F(e.message)}</li>`).join(``)}</ul>`:``,e.innerHTML=`<table class="pt-table pt-table--edit">
131
+ <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>
132
+ <tbody>${c.map(({r:e,i:t})=>`<tr class="${s.has(t)?`has-issue`:``}"><td class="pt-rowno">${t+1}</td>${n.columns.map(n=>`<td>${l(n,e,t)}</td>`).join(``)}
133
+ <td><button class="pt-icon-btn is-danger" title="Xóa dòng" data-act="row-del" data-i="${t}">${C(`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=x(e);if(a.admin.issues=t,t.length&&!confirm(`Có ${t.length} cảnh báo dữ liệu (trùng khóa, giá ≤ 0...). Vẫn lưu?`)){let e=t[0];a.admin.tab=e.table,g()}else try{e.updatedAt=new Date().toISOString(),i&&(e.updatedBy=i.email??i.name??``),await n.save(e),a.data=h(P(e)),a.admin.draft=null,a.admin.dirty=!1,a.admin.issues=[],Y(`Đã lưu — sale sẽ thấy giá mới ngay`),g()}catch(e){Y(`Lưu thất bại: ${e.message}`)}}let J;function Y(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(J),J=setTimeout(()=>n.remove(),2600)}async function X(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 Z(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,o=a.admin;switch(i){case`view`:a.view=r.dataset.v;break;case`role`:a.role=r.dataset.v;break;case`calc`:A(a.calc,r.dataset.f,r.dataset.v);break;case`toggle`:{let e=r.dataset.code;a.calc.selected[e]?delete a.calc.selected[e]:a.calc.selected[e]=u(a.data,a.calc.label).find(t=>z(t.code,e))?.modes[0];break}case`mode`:t.stopPropagation(),a.calc.selected[r.dataset.code]=r.dataset.v;break;case`clear-courses`:a.calc.selected={};break;case`reset-calc`:a.calc=_(a.data);break;case`copy`:await X(j()),Y(`Đã sao chép báo giá — dán vào Zalo/Messenger để gửi khách`);return;case`tbl-reset`:a.table={..._(a.data),output:``};break;case`open-route`:{let e=a.table,t=a.data.routes.find(t=>z(t.label,e.label)&&z(t.code,r.dataset.code));a.calc={...e,selected:Object.fromEntries(t.items.map(e=>[e.code,e.mode]))},delete a.calc.output,a.view=`calc`;break}case`admin-tab`:o.tab=r.dataset.v,o.q=``;break;case`row-add`:{let e=E(B()).find(e=>e.id===o.tab);V(e).push(e.blank(o.label||B().settings.labels[0]?.name||``)),o.q=``,W(),K();let t=f.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=E(B()).find(e=>e.id===o.tab);V(e).splice(Number(r.dataset.i),1),o.issues=[],W(),K();return}case`save`:await q();return;case`discard`:o.draft=null,o.dirty=!1,o.issues=[];break;case`export-json`:Z(`du-lieu-khuyen-mai-${new Date().toISOString().slice(0,10)}.json`,JSON.stringify(B(),null,1));return;case`reset-seed`:if(!confirm(`Thay toàn bộ dữ liệu 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;o.draft=await n.reset(),W(),o.dirty=!0;break;default:return}g()}),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=a.admin;if(t.dataset.edit!=null){let e=E(B()).find(e=>e.id===n.tab),r=e.columns.find(e=>e.key===t.dataset.k);V(e)[Number(t.dataset.edit)][r.key]=r.type===`bool`?t.checked:O(r,t.value),r.type!==`bool`&&r.type!==`select`&&(t.value=D(r,V(e)[Number(t.dataset.edit)][r.key])),W()}else{switch(t.dataset.act){case`setting`:B().settings[t.dataset.k]=t.value,W();return;case`tbl`:A(a.table,t.dataset.f,t.value),t.dataset.f===`label`&&(a.table.output=``);break;case`pick-route`:{let e=a.data.routes.find(e=>z(e.label,a.calc.label)&&z(e.code,t.value));e&&(a.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 N(e,B());if(!r?.settings||!Array.isArray(r.courses))throw Error(`File không đúng cấu trúc`);n.draft=h(r),n.issues=x(r),W(),n.dirty=!0,Y(`Đã nạp ${e.name} — kiểm tra rồi bấm Lưu & áp dụng`)}catch(e){Y(`Không nhập được: ${e.message}`)}break}default:return}g()}}),e.addEventListener(`input`,e=>{e.target.dataset.act===`admin-q`&&(a.admin.q=e.target.value,K())});let Q=e=>{a.admin.dirty&&e.preventDefault()};return window.addEventListener(`beforeunload`,Q),g(),{setRole(e){a.role=e,g()},async reload(){a.data=h(await n.load()),g()},destroy(){window.removeEventListener(`beforeunload`,Q),e.innerHTML=``},unmount(){this.destroy()}}}var V=(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 B(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))}}),H=e=>JSON.parse(JSON.stringify(e)),U=`edutalk-promo-tool:data`;function W(e){return{kind:`local`,async load(){try{let e=localStorage.getItem(U);if(e)return JSON.parse(e)}catch{}return H(e)},async save(e){try{localStorage.setItem(U,JSON.stringify(e))}catch{}},async reset(){try{localStorage.removeItem(U)}catch{}return H(e)}}}function G(e,t,{key:n=`current`}={}){return{kind:`supabase`,async load(){let{data:r,error:i}=await e.from(`promo_config`).select(`data`).eq(`key`,n).maybeSingle();if(i)throw i;return r?.data??H(t)},async save(t){let{error:r}=await e.from(`promo_config`).upsert({key:n,data:t});if(r)throw r},async reset(){return H(t)}}}function K(e,t,{headers:n={}}={}){return{kind:`rest`,async load(){let r=await fetch(e,{headers:n,credentials:`include`});if(r.status===404)return H(t);if(!r.ok)throw Error(`Tải dữ liệu lỗi ${r.status}`);return r.json()},async save(t){let r=await fetch(e,{method:`PUT`,headers:{"Content-Type":`application/json`,...n},credentials:`include`,body:JSON.stringify(t)});if(!r.ok)throw Error(`Lưu dữ liệu lỗi ${r.status}`)},async reset(){return H(t)}}}e.PromoTool=V,e.STATUS_OK=a,e.coursesForLabel=u,e.default={install(e){e.component(`PromoTool`,V)}},e.findMethod=s,e.findProgram=o,e.isFixedTerm=l,e.lktFormatsFor=p,e.lktGroupsFor=m,e.localStore=W,e.mountPromoTool=B,e.normalizeData=h,e.quote=v,e.restStore=K,e.routeTable=b,e.seed={version:1,settings:{campaignName:`Chương trình khuyến mại tháng 10/2026`,validFrom:`2026-10-01`,validTo:`2026-10-31`,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`}]}]},e.supabaseStore=G,e.termsFor=c,e.validateData=x});
package/dist/style.css ADDED
@@ -0,0 +1,2 @@
1
+ .pt-root{--pt-purple:#4b2a9b;--pt-purple-600:#3d2185;--pt-purple-50:#f1edfb;--pt-purple-100:#e4dcf7;--pt-ink:#1f2333;--pt-muted:#6b7084;--pt-faint:#9aa0b4;--pt-line:#ebecf2;--pt-bg:#f4f5f9;--pt-card:#fff;--pt-grey-card:#e9eaf1;--pt-grey-line:#d6d8e3;--pt-green:#1f9d55;--pt-green-bg:#eafaf0;--pt-green-line:#bfe9cf;--pt-red:#e5484d;--pt-red-bg:#fdeeee;--pt-red-line:#f6caca;--pt-orange:#c2570c;--pt-orange-bg:#fff3e3;--pt-blue:#2f80ed;--pt-radius:14px;color:var(--pt-ink);-webkit-font-smoothing:antialiased;font-family:inherit;font-size:14px;line-height:1.45}.pt-root *,.pt-root :before,.pt-root :after{box-sizing:border-box}.pt-root :where(button,input,select){font:inherit;color:inherit}.pt-root :where(svg){flex:none}.pt-band{background:var(--pt-card);border:1px solid var(--pt-line);border-radius:var(--pt-radius);align-items:center;gap:8px;margin-bottom:14px;padding:8px 12px;display:flex;overflow-x:auto;box-shadow:0 1px 3px #0000000a,0 1px 2px #00000005}@media (width>=1024px){.pt-band{padding-right:75px}}.pt-tab{color:var(--pt-muted);cursor:pointer;white-space:nowrap;opacity:1;background:0 0;border:1px solid #0000;border-radius:10px;align-items:center;gap:8px;padding:8px 18px;font-size:13.5px;font-weight:600;transition:all .15s ease-in-out;display:inline-flex}.pt-tab:hover{background:var(--pt-bg);color:var(--pt-ink)}.pt-tab.is-active{background:var(--pt-purple-50);color:var(--pt-purple);border-color:var(--pt-purple-100);font-weight:700;box-shadow:0 1px 2px #4b2a9b14}.pt-tab.is-active svg{color:var(--pt-purple)}.pt-band-spacer{flex:1}.pt-role{white-space:nowrap;background:var(--pt-bg);border:1px solid var(--pt-line);border-radius:999px;flex:none;align-self:center;gap:2px;margin-bottom:0;padding:3px;display:inline-flex}.pt-role button{color:var(--pt-muted);cursor:pointer;background:0 0;border:0;border-radius:999px;padding:5px 14px;font-size:12px;font-weight:600;transition:all .15s ease-in-out}.pt-role button:hover:not(.is-active){color:var(--pt-ink)}.pt-role button.is-active{color:var(--pt-purple);background:#fff;font-weight:700;box-shadow:0 1px 3px #00000014}.pt-body{background:0 0}.pt-container{background:0 0;border-radius:0;min-height:auto;padding:0 0 24px}.pt-page-head{background:var(--pt-card);border:1px solid var(--pt-line);border-radius:var(--pt-radius);padding:22px 22px 18px;position:relative;overflow:hidden}.pt-page-head:after{content:"";background:#eceaf6;border-radius:50%;width:200px;height:200px;position:absolute;top:-60px;right:-40px}.pt-title-row{z-index:1;align-items:flex-start;gap:14px;display:flex;position:relative}.pt-title-icon{width:44px;height:44px;color:var(--pt-purple);background:#eef0f6;border-radius:12px;place-items:center;display:grid}.pt-title{letter-spacing:-.01em;margin:2px 0 4px;font-size:20px;font-weight:700}.pt-sub{color:var(--pt-muted);margin:0}.pt-title-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-left:auto;display:flex}.pt-stats{z-index:1;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px;display:grid;position:relative}.pt-stat{border:1px solid var(--pt-line);background:var(--pt-card);border-radius:12px;justify-content:space-between;align-items:center;gap:8px;min-width:0;padding:12px 14px;display:flex}.pt-stat-label{color:var(--pt-muted);font-size:12px}.pt-stat-value{white-space:nowrap;text-overflow:ellipsis;margin-top:2px;font-size:20px;font-weight:700;overflow:hidden}.pt-stat-icon{width:34px;height:34px;color:var(--pt-muted);background:#f1f2f7;border-radius:10px;place-items:center;display:grid}.pt-stat--grey{background:var(--pt-grey-card);border-color:var(--pt-grey-line)}.pt-stat--grey .pt-stat-icon{color:var(--pt-purple);background:#d9dbe7}.pt-stat--green{background:var(--pt-green-bg);border-color:var(--pt-green-line)}.pt-stat--green .pt-stat-icon{color:var(--pt-green);background:#d3f3df}.pt-stat--red{background:var(--pt-red-bg);border-color:var(--pt-red-line)}.pt-stat--red .pt-stat-icon{color:var(--pt-red);background:#fbd9da}.pt-stat--purple{background:var(--pt-purple-50);border-color:var(--pt-purple-100)}.pt-stat--purple .pt-stat-icon{background:var(--pt-purple-100);color:var(--pt-purple)}.pt-stat-value.is-small{white-space:normal;font-size:14px;line-height:1.3}.pt-section{background:var(--pt-card);border:1px solid var(--pt-line);border-radius:var(--pt-radius);margin-top:14px}.pt-section-head{border-bottom:1px solid var(--pt-line);align-items:center;gap:12px;padding:16px 20px;display:flex}.pt-section-head.no-line{border-bottom:0;padding-bottom:6px}.pt-section-icon{width:30px;height:30px;color:var(--pt-purple);background:#eef0f6;border-radius:8px;place-items:center;display:grid}.pt-section-title{font-size:15px;font-weight:600}.pt-section-sub{color:var(--pt-muted);font-size:12px}.pt-section-actions{flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto;display:flex}.pt-section-body{padding:16px 20px 20px}.pt-grid{gap:14px;display:grid}.pt-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.pt-grid-calc{grid-template-columns:minmax(0,1fr) 380px;align-items:start;gap:14px}.pt-field{flex-direction:column;gap:6px;min-width:0;display:flex}.pt-field>label,.pt-label{color:var(--pt-muted);font-size:12px}.pt-input,.pt-select{background:#fff;border:1px solid #dfe1ea;border-radius:10px;outline:none;width:100%;height:40px;padding:0 12px}.pt-select{appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7084' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;padding-right:34px}.pt-input:focus,.pt-select:focus{border-color:var(--pt-purple);box-shadow:0 0 0 3px var(--pt-purple-100)}.pt-chips{flex-wrap:wrap;gap:8px;display:flex}.pt-chip{cursor:pointer;background:#fff;border:1px solid #dfe1ea;border-radius:999px;align-items:center;gap:6px;padding:7px 14px;font-size:13px;display:inline-flex}.pt-chip:hover{border-color:var(--pt-purple)}.pt-chip.is-active{background:var(--pt-purple);border-color:var(--pt-purple);color:#fff;font-weight:500}.pt-chip:disabled{opacity:.45;cursor:not-allowed}.pt-chip small{opacity:.75;font-size:11px}.pt-courses{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;display:grid}.pt-course{border:1px solid var(--pt-line);cursor:pointer;background:#fff;border-radius:12px;flex-direction:column;gap:8px;padding:12px;transition:border-color .15s,box-shadow .15s;display:flex}.pt-course:hover{border-color:#c9bdf0}.pt-course.is-on{border-color:var(--pt-purple);box-shadow:0 0 0 3px var(--pt-purple-100)}.pt-course-top{align-items:flex-start;gap:10px;display:flex}.pt-check{color:#fff;border:1.5px solid #c7cad6;border-radius:6px;place-items:center;width:20px;height:20px;margin-top:1px;display:grid}.pt-course.is-on .pt-check{background:var(--pt-purple);border-color:var(--pt-purple)}.pt-course-name{font-size:13.5px;font-weight:600}.pt-course-code{color:var(--pt-faint);font-size:11.5px}.pt-course-price{color:var(--pt-muted);justify-content:space-between;gap:6px;font-size:13px;display:flex}.pt-course-price b{color:var(--pt-ink)}.pt-seg{background:#f1f2f7;border-radius:8px;align-self:flex-start;padding:2px;display:inline-flex}.pt-seg button{cursor:pointer;color:var(--pt-muted);background:0 0;border:0;border-radius:6px;padding:4px 10px;font-size:12px}.pt-seg button.is-active{color:var(--pt-purple);background:#fff;font-weight:600;box-shadow:0 1px 2px #1414321f}.pt-seg-single{color:var(--pt-muted);background:#f1f2f7;border-radius:6px;align-self:flex-start;padding:3px 9px;font-size:12px}.pt-result{position:sticky;top:12px}.pt-status{border-radius:10px;align-items:center;gap:8px;padding:10px 12px;font-size:13px;font-weight:600;display:flex}.pt-status.is-ok{background:var(--pt-green-bg);color:var(--pt-green)}.pt-status.is-bad{background:var(--pt-red-bg);color:var(--pt-red)}.pt-rows{margin:12px 0 0;padding:0;list-style:none}.pt-rows li{border-bottom:1px dashed var(--pt-line);justify-content:space-between;gap:10px;padding:8px 0;display:flex}.pt-rows li span:first-child{color:var(--pt-muted)}.pt-rows li b{font-variant-numeric:tabular-nums}.pt-rows .is-minus b{color:var(--pt-red)}.pt-rows .is-plus b{color:var(--pt-blue)}.pt-final{color:#fff;background:linear-gradient(135deg,#4b2a9b,#6a45c9);border-radius:12px;margin-top:14px;padding:14px 16px}.pt-final small{opacity:.85;font-size:12px}.pt-final div{letter-spacing:-.01em;font-variant-numeric:tabular-nums;font-size:26px;font-weight:800}.pt-final.is-dim{background:#b9b4cc}.pt-gift{background:var(--pt-orange-bg);color:var(--pt-orange);border-radius:10px;gap:10px;margin-top:12px;padding:10px 12px;font-size:13px;display:flex}.pt-combo{color:var(--pt-muted);background:#f7f7fb;border-radius:10px;margin-top:12px;padding:10px 12px;font-size:12.5px}.pt-combo b{color:var(--pt-ink)}.pt-lines{border-collapse:collapse;width:100%;margin-top:10px;font-size:12.5px}.pt-lines td{border-bottom:1px solid var(--pt-line);padding:6px 0}.pt-lines td:last-child{text-align:right;font-variant-numeric:tabular-nums}.pt-table-wrap{overflow-x:auto}.pt-table{border-collapse:collapse;width:100%}.pt-table th{text-align:left;color:var(--pt-ink);border-bottom:1px solid var(--pt-line);white-space:nowrap;z-index:1;background:#fff;padding:12px 16px;font-size:13px;font-weight:500;position:sticky;top:0}.pt-table td{border-bottom:1px solid var(--pt-line);vertical-align:middle;padding:12px 16px}.pt-table tbody tr:hover{background:#fafafe}.pt-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.pt-table .muted{color:var(--pt-muted);font-size:12px}.pt-table--edit td{padding:6px 8px}.pt-table--edit th{padding:10px 8px}.pt-table--edit .pt-input,.pt-table--edit .pt-select{background-color:#0000;border-color:#0000;border-radius:8px;min-width:90px;height:34px;padding:0 8px}.pt-table--edit .pt-select{background-position:right 8px center;padding-right:28px}.pt-table--edit .pt-input:hover,.pt-table--edit .pt-select:hover{background-color:#fff;border-color:#dfe1ea}.pt-table--edit .pt-input:focus,.pt-table--edit .pt-select:focus{border-color:var(--pt-purple);background-color:#fff}.pt-table--edit .pt-input.num{text-align:right}.pt-table--edit tr.has-issue td{background:#fff7f7}.pt-table--edit .w-wide{min-width:260px}.pt-rowno{color:var(--pt-faint);text-align:center;width:36px;font-size:12px}.pt-pill{white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:3px 10px;font-size:12px;font-weight:500;display:inline-flex}.pt-pill--green{background:var(--pt-green-bg);color:var(--pt-green)}.pt-pill--red{background:var(--pt-red-bg);color:var(--pt-red)}.pt-pill--orange{background:var(--pt-orange-bg);color:var(--pt-orange)}.pt-pill--purple{background:var(--pt-purple-50);color:var(--pt-purple)}.pt-pill--grey{color:var(--pt-muted);background:#f0f1f5}.pt-dot{background:currentColor;border-radius:50%;width:6px;height:6px}.pt-btn{cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:10px;align-items:center;gap:8px;height:40px;padding:0 16px;font-weight:600;display:inline-flex}.pt-btn--primary{background:var(--pt-purple);color:#fff}.pt-btn--primary:hover{background:var(--pt-purple-600)}.pt-btn--blue{background:var(--pt-blue);color:#fff;height:32px;font-size:12.5px}.pt-btn--ghost{color:var(--pt-ink);background:#fff;border-color:#dfe1ea;font-weight:500}.pt-btn--ghost:hover{border-color:var(--pt-purple);color:var(--pt-purple)}.pt-btn--link{color:var(--pt-muted);background:0 0;height:32px;padding:0 8px;font-weight:500}.pt-btn--link:hover{color:var(--pt-purple)}.pt-btn--sm{height:32px;padding:0 12px;font-size:12.5px}.pt-btn:disabled{opacity:.5;cursor:not-allowed}.pt-icon-btn{border:1px solid var(--pt-line);cursor:pointer;width:34px;height:34px;color:var(--pt-muted);background:#fff;border-radius:50%;place-items:center;display:inline-grid}.pt-icon-btn:hover{color:var(--pt-purple);border-color:var(--pt-purple-100)}.pt-icon-btn.is-danger:hover{color:var(--pt-red);border-color:var(--pt-red-line)}.pt-admin{grid-template-columns:250px minmax(0,1fr);align-items:start;gap:14px;margin-top:14px;display:grid}.pt-menu{background:var(--pt-purple);border-radius:var(--pt-radius);padding:10px;position:sticky;top:12px}.pt-menu-group{color:#ffffff8c;letter-spacing:.08em;text-transform:uppercase;padding:10px 10px 4px;font-size:11px}.pt-menu button{color:#fff;cursor:pointer;text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;width:100%;padding:9px 10px;font-size:13.5px;display:flex}.pt-menu button:hover{background:#ffffff1a}.pt-menu button.is-active{background:#ffffff2e;font-weight:600}.pt-menu .pt-menu-ic{background:#ffffff24;border-radius:8px;place-items:center;width:28px;height:28px;display:grid}.pt-menu .pt-count{opacity:.7;margin-left:auto;font-size:11px}.pt-savebar{z-index:5;color:#fff;background:#1f1646;border-radius:12px;align-items:center;gap:12px;margin-top:14px;padding:12px 16px;display:flex;position:sticky;bottom:12px;box-shadow:0 10px 30px #140a3c40}.pt-savebar .pt-btn--ghost{color:#fff;background:0 0;border-color:#ffffff4d}.pt-issues{background:var(--pt-red-bg);color:var(--pt-red);border-bottom:1px solid var(--pt-red-line);margin:0;padding:12px 20px;font-size:12.5px}.pt-issues li{margin-left:16px}.pt-help{color:var(--pt-muted);background:#f7f7fb;border-radius:10px;margin:0 20px 14px;padding:10px 14px;font-size:12.5px}.pt-help b{color:var(--pt-ink)}.pt-empty{text-align:center;color:var(--pt-muted);padding:40px}.pt-toast{color:#fff;z-index:1000;background:#1f1646;border-radius:10px;padding:10px 18px;font-size:13px;position:fixed;bottom:28px;left:50%;transform:translate(-50%);box-shadow:0 10px 30px #140a3c4d}@media (width<=1100px){.pt-grid-calc{grid-template-columns:minmax(0,1fr)}.pt-result{position:static}.pt-admin{grid-template-columns:minmax(0,1fr)}.pt-menu{flex-wrap:wrap;gap:4px;display:flex;position:static}.pt-menu-group{display:none}.pt-menu button{width:auto}}@media (width<=760px){.pt-band{margin-bottom:10px;padding:6px 8px}.pt-tab{gap:6px;padding:6px 12px;font-size:12.5px}.pt-container{padding:0 0 20px}.pt-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.pt-grid-3{grid-template-columns:minmax(0,1fr)}.pt-title-row{flex-wrap:wrap}.pt-title-actions{justify-content:flex-start;margin-left:0}.pt-section-head{flex-wrap:wrap}}.pt-form{gap:14px;display:grid}.pt-form-row{grid-template-columns:150px minmax(0,1fr);align-items:center;gap:12px;display:grid}.pt-form-row>.pt-label{color:var(--pt-ink);font-size:13px;font-weight:500}.pt-form-row>.pt-label small{color:var(--pt-faint);font-size:11.5px;font-weight:400;display:block}@media (width<=760px){.pt-form-row{grid-template-columns:minmax(0,1fr);gap:6px}}.pt-savebar[hidden]{display:none}.pt-table--edit .pt-select{min-width:140px}
2
+ /*$vite$:1*/
@@ -0,0 +1,88 @@
1
+ export type UserRole = 'admin' | 'sale';
2
+ export interface PromoStore {
3
+ kind: string;
4
+ load(): Promise<any>;
5
+ save(doc: any): Promise<void>;
6
+ reset(): Promise<any>;
7
+ }
8
+ export interface PromoToolOptions {
9
+ role?: UserRole;
10
+ store: PromoStore;
11
+ user?: any;
12
+ allowRoleSwitch?: boolean;
13
+ }
14
+ export interface PromoToolInstance {
15
+ setRole(role: UserRole): void;
16
+ reload(): Promise<void>;
17
+ destroy?(): void;
18
+ unmount?(): void;
19
+ }
20
+ export interface CourseSelection {
21
+ code: string;
22
+ mode?: string;
23
+ price?: number;
24
+ [key: string]: any;
25
+ }
26
+ export interface QuoteInput {
27
+ label: string;
28
+ program: string;
29
+ method: string;
30
+ term?: number | string;
31
+ warranty?: string;
32
+ lktGroup?: string;
33
+ lktFormat?: string;
34
+ items: CourseSelection[];
35
+ }
36
+ export interface QuoteLine {
37
+ code: string;
38
+ name: string;
39
+ mode: string;
40
+ price: number;
41
+ voucher: number;
42
+ warrantyRate: number;
43
+ warrantyPrice: number;
44
+ calcWarranty: boolean;
45
+ found: boolean;
46
+ }
47
+ export interface QuoteResult {
48
+ ok: boolean;
49
+ status: string;
50
+ label: string;
51
+ program: string;
52
+ method: string;
53
+ term: number;
54
+ warranty: string;
55
+ items: CourseSelection[];
56
+ count: number;
57
+ originPrice: number;
58
+ promoPct: number;
59
+ promoDiscount: number;
60
+ cashback: number;
61
+ voucherTotal: number;
62
+ afterPromo: number;
63
+ warrantyTotal: number;
64
+ finalPrice: number;
65
+ gift: {
66
+ content: string;
67
+ value?: number;
68
+ } | null;
69
+ comboCode: string;
70
+ comboName?: string;
71
+ lines: QuoteLine[];
72
+ [key: string]: any;
73
+ }
74
+ export interface RouteItem {
75
+ label: string;
76
+ code: string;
77
+ name: string;
78
+ output?: string;
79
+ items: {
80
+ code: string;
81
+ mode: string;
82
+ }[];
83
+ [key: string]: any;
84
+ }
85
+ export interface RouteTableResult {
86
+ route: RouteItem;
87
+ quote: QuoteResult;
88
+ }
@@ -0,0 +1,22 @@
1
+ import { PromoStore, UserRole, PromoToolInstance } from '../types/index.js';
2
+ interface Props {
3
+ role?: UserRole;
4
+ store: PromoStore;
5
+ user?: any;
6
+ allowRoleSwitch?: boolean;
7
+ }
8
+ declare const __VLS_export: import('vue').DefineComponent<Props, {
9
+ getInstance: () => PromoToolInstance;
10
+ setRole: (role: UserRole) => void;
11
+ reload: () => Promise<void>;
12
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
13
+ ready: (instance: PromoToolInstance) => any;
14
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
15
+ onReady?: (instance: PromoToolInstance) => any;
16
+ }>, {
17
+ role: UserRole;
18
+ user: any;
19
+ allowRoleSwitch: boolean;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,62 @@
1
1
  {
2
2
  "name": "@edutalk/promo-tool",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "Công cụ tính giá khuyến mại và bảng giá lộ trình Edutalk",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "type": "module",
9
+ "main": "./dist/index.umd.cjs",
10
+ "module": "./dist/index.js",
11
+ "types": "./dist/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js",
16
+ "require": "./dist/index.umd.cjs"
17
+ },
18
+ "./style.css": "./dist/style.css",
19
+ "./styles.css": "./dist/style.css"
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "README.md",
24
+ "supabase"
25
+ ],
26
+ "scripts": {
27
+ "dev": "vite",
28
+ "serve": "node scripts/serve.mjs",
29
+ "build": "vite build",
30
+ "build:sync": "npm run build && node scripts/sync_to_noibo.mjs",
31
+ "test": "node tests/engine.test.mjs",
32
+ "db:seed": "node scripts/migrate_seed_supabase.mjs",
33
+ "prepublishOnly": "npm run test && npm run build"
34
+ },
35
+ "peerDependencies": {
36
+ "vue": "^3.0.0"
37
+ },
38
+ "peerDependenciesMeta": {
39
+ "vue": {
40
+ "optional": true
41
+ }
42
+ },
43
+ "devDependencies": {
44
+ "@vitejs/plugin-vue": "^6.0.10",
45
+ "@vue/language-core": "^3.3.14",
46
+ "typescript": "^6.0.3",
47
+ "vite": "^8.3.5",
48
+ "vite-plugin-dts": "^5.1.2",
49
+ "vue": "^3.5.44"
50
+ },
51
+ "keywords": [
52
+ "edutalk",
53
+ "pricing",
54
+ "promo",
55
+ "calculator",
56
+ "vue",
57
+ "vue3",
58
+ "ctkm"
59
+ ],
60
+ "author": "ODESTINY",
61
+ "license": "MIT"
62
+ }