1import{_ as V}from"./main.js";import{aX as c,C as h,E as t,W as a,P as r,D as u,V as m,am as g,O as $,H as f,T as i,U as e}from"./vendors.js";import"./vendor-element.js";const k={name:"Duolingo",data(){return{countryValue:"United States",countryList:[],familypro_price:{},country_config:{},country_price:[],currency:"USD",currencySymbol:null,interval_type:null,share_type:null}},async created(){await this.init()},methods:{async getDuolingoData(){try{let s=(await this.$axios.get("/api/triple/price-list/Duolingo")).data;(s===null||s.code!==1e5)&&this.$message({type:"error",message:s.message});let l=s.data,_=l.country_list;this.countryList=_.sort(),this.familypro_price=l.familypro_price,this.country_config=l.country_config}catch(o){console.log("请æ±ChatGPTä¸åä¸é¡µé¢æ°æ®å¤±è´¥: ",o)}},async init(){await this.getDuolingoData(),this.handleCurrentChange(this.countryList[0])},handleCurrentChange(o){let s=this.country_config[o];this.currency=s.currency,this.currencySymbol=s.symbol,this.interval_type=s.interval_type,this.country_price=s.price_list,this.countryValue=o},spanMethod({row:o,column:s,rowIndex:l,columnIndex:_}){if(_===1)return l===0?[this.country_price.length,1]:[0,0]},shouldShowMerged(o){return o===0},jumpToIndex(){window.open(this.familypro_price.buy_now_link+"?utm_source=3to1","_blank")},updateLanguage(){try{let o=this.$cookies.get("sbox-l");if(!o||o===void 0){this.$i18n.locale="en";return}this.$i18n.locale=o}catch{this.$i18n.locale="en"}}}},x={class:"chatGPTContent"},S={class:"selectOption"},T={class:"textContent"},D={class:"countryValue"},B={class:"currencyValue"},L={class:"countryAndCurrency"},P={class:"officialPriceBlock"},N={class:"wrapStyle"},U={class:"familyPriceBlock"},G={class:"priceBlock"},H={class:"name familyNameStyle wrapStyle"},I={class:"price"},M={class:"priceLi"},j={class:"wrapStyle"},E={class:"personType"},O={class:"buyNowBtn"},z={class:"endText"},A={class:"endTextValue"},F={class:"countryValue"},R={class:"endTextValue"};function W(o,s,l,_,d,p){const b=c("el-option"),v=c("el-select"),y=c("el-table-column"),w=c("el-button"),C=c("el-table");return u(),h("div",x,[t("div",S,[a(v,{modelValue:d.countryValue,"onUpdate:modelValue":s[0]||(s[0]=n=>d.countryValue=n),placeholder:"Select",class:"selectBlock"},{default:r(()=>[(u(!0),h(m,null,g(d.countryList,n=>(u(),$(b,{key:n,label:this.$t("3-in-1.country."+n),value:n,onClick:X=>p.handleCurrentChange(n),class:f({"selected-option":d.countryValue===n})},null,8,["label","value","onClick","class"]))),128))]),_:1},8,["modelValue"])]),t("div",T,[i(e(this.$t("3-in-1.duolingo.select_desc_one"))+" ",1),t("span",D,e(this.$t("3-in-1.country."+this.countryValue)),1),i(" "+e(this.$t("3-in-1.duolingo.select_desc_two"))+" ",1),t("span",B,e(this.$t("3-in-1.currency."+this.currency)),1),s[1]||(s[1]=i(". ",-1))]),t("div",L,[a(C,{data:this.country_price,"span-method":p.spanMethod,"scrollbar-always-on":!1,border:"","highlight-current-row":!1},{default:r(()=>[a(y,{label:this.$t("3-in-1.duolingo.official_price"),align:"center",class:"tableHeader"},{default:r(n=>[t("div",P,[t("span",{class:f(["wrapStyle",{name:n.row.plan_name==="ChatGPT Plus"}])},e(n.row.plan_name)+": ",3),t("span",N,e(this.currencySymbol)+e(n.row.price)+" / "+e(this.$t("web.used_interval_count."+this.interval_type)),1)])]),_:1},8,["label"]),a(y,{label:this.$t("3-in-1.duolingo.price_in_familypro"),align:"center",class:"tableHeader"},{default:r(()=>[t("div",U,[t("div",G,[t("div",H,e(this.familypro_price.name)+":",1),t("div",I,[(u(!0),h(m,null,g(this.familypro_price.price_list,n=>(u(),h("div",M,[t("div",null,[t("span",j,e(this.familypro_price.symbol)+" "+e(n.price)+"/"+e(this.$t("web.used_interval_count."+n.interval_type)),1)]),t("div",E," ("+e(this.$t("web.share_type."+n.share_type))+")",1)]))),256))])]),t("div",O,[a(w,{class:"btn",onClick:p.jumpToIndex},{default:r(()=>[i(e(this.$t("3-in-1.duolingo.buy_now")),1)]),_:1},8,["onClick"])])])]),_:1},8,["label"])]),_:1},8,["data","span-method"])]),t("div",z,[t("p",A,[i(e(this.$t("3-in-1.duolingo.current_country_one"))+" ",1),t("span",F,e(this.$t("3-in-1.country."+this.countryValue)),1),i(" "+e(this.$t("3-in-1.duolingo.current_country_two")),1)]),t("p",R,e(this.$t("3-in-1.duolingo.other_desc")),1
1)])])}const Q=V(k,[["render",W],["__scopeId","data-v-c30b9743"]]);export{Q as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.