1"use strict";(self.webpackChunk_biboglobal_eikaiwa_core_front=self.webpackChunk_biboglobal_eikaiwa_core_front||[]).push([[688],{5688:(e,o,n)=>{n.r(o),n.d(o,{default:()=>L});var a=n(9060),c=n(7941),i=n(6440),t=n(5424),s=n.n(t);const r={host:"transcode-v2.app.engoo.com",protocol:"https:",shards:0,startIndex:0},d="LiveLessons",m="LiveLessonsNative",l="Trial",u="Corporate",p="Paid",f="None",b="ExpiringSoon",g="Expired",h="active",w={display:"flex",justifyContent:"center"},v={marginBottom:"10px !important"},k={margin:"20px 10px"},x=(e,o)=>"1"===e&&o,y=(e,o,n,a)=>{const c=((e,o,n)=>o?"1"===e||"7"===o||x(o,n)?u:["1","100","164","165","166","167","168"].includes(o)?l:p:f)(e,n,a),i=((e,o,n)=>{const a=o&&o.toLowerCase();switch(e){case l:return a===h?b:g;case p:return"continue"===a||a===h?"Recurring":"withdrawing"===a?b:g;case u:return a!==h||n?g:"Current";default:return f}})(c,o,x(n,a));return{type:c,state:i}},_=[{domain:"eikaiwa.dmm.com",id:"5a4657f2-e151-4c48-9cce-000000000005"},{domain:"engoo.com.tw",id:"5a4657f2-e151-4c48-9cce-00000000000a"},{domain:"engoo.co.th",id:"5a4657f2-e151-4c48-9cce-00000000000b"},{domain:"engoo.com.tr",id:"5a4657f2-e151-4c48-9cce-00000000000c"},{domain:"tr.engoo.com",id:"5a4657f2-e151-4c48-9cce-00000000000c"},{domain:"engoo.com.vn",id:"5a4657f2-e151-4c48-9cce-00000000000d"},{domain:"engoo.com.br",id:"5a4657f2-e151-4c48-9cce-000000000001"},{domain:"engoo.id",id:"5a4657f2-e151-4c48-9cce-000000000003"},{domain:"engoo.it",id:"5a4657f2-e151-4c48-9cce-000000000004"},{domain:"engoo.co.kr",id:"5a4657f2-e151-4c48-9cce-000000000006"},{domain:"engoo.mx",id:"5a4657f2-e151-4c48-9cce-000000000007"},{domain:"engoo.ru",id:"5a4657f2-e151-4c48-9cce-000000000008"},{domain:"engoo.es",id:"5a4657f2-e151-4c48-9cce-000000000009"},{domain:"engoo.jp",id:"cc234eaf-cd5d-4394-b94d-b8aabf3d5575"},{domain:"engoo.cn.com",id:"56f29f36-0699-4f29-a62b-5a5813abe65d"},{domain:"engoo.com",id:"5a4657f2-e151-4c48-9cce-000000000002"}];var C=n(2496);const P=()=>{var e;const o=window.location.hostname;return null===(e=_.find((e=>o.includes(e.domain))))||void 0===e?void 0:e.id},j=(e,o)=>{const n=[];if(Object.keys(e).length>0){const{member_type:a,status:c,lesson_plan_id:i}=e,{state:t,type:s}=y(a,c,i,o),r=(e=>{const o=parseInt(e,10);switch(!0){case o>7&&o<11:case o>18&&o<28:case 29===o:case o>31&&o<71:case o>71&&o<84:case o>84&&o<88:case o>91&&o<94:case o>94&&o<97:case o>120&&o<141:case o>142&&o<159:case 161===o:case o>166&o<169:case o>169&o<172:return m;default:return d}})(i);r===m&&n.push({product:d,state:t,type:s}),n.push({product:r,state:t,type:s})}return n},L=e=>{let{position:o,memberData:n,wasCorpUser:d,targetMarket:m,bannerLocale:l}=e;const u=new i.cp(r),p=(0,a.useMemo)((()=>new c.default({api:"https://api.eikaiwa.dmm.com/api"})),[]),{bannerPosition:f,styleClass:b}=(e=>{let o,n;return"content"===e?(o=t.BannerPosition.Content,n=w):"sidebar"===e?(o=t.BannerPosition.Sidebar,n=v):"mobile"===e&&(o=t.BannerPosition.Mobile,n=k),{bannerPosition:o,styleClass:n}})(o),g=(0,a.useMemo)((()=>j(n,d)),[n,d]);return(0,a.useEffect)((()=>{p.choose({subscriptions:g,...m,brandId:P()})}),[p,g,m]),(0,C.jsx)("div",{style:b,children:(0,C.jsx)(t.BannerProvider,{bannerService:p,locale:l,transcoderService:u,children:(0,C.jsx)(s(),{bannerPosition:f})})})}}}]); 2//# sourceMappingURL=688.abef56c3.chunk.js.map
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.