\n \n \n `))).join(""))}async function tabChannelByGroup(e,t,n,a){try{if(getOk){let e=(await axios.get(`${apiStb}getChannelByGroup/${t}`,{timeout:7e3})).data;e.forEach((e=>{e.icon=e.stb_icon&&e.stb_icon.startsWith("/")?urlStb+e.stb_icon:e.stb_icon})),renderChannelList(e,t,a)}else{let n="",o=(await axios.post(`${apiLayananUrl}api/getChannelIdAktifByNoHp`,{no_hp:n},{timeout:7e3})).data.data.map((e=>e.channel_id)),i=new Set(o),l=(await axios.get(`/api/getChannelByGroup/${e}/${t}`,{timeout:7e3})).data;l.forEach((e=>{e.aktif=i.has(e.channel_id)})),renderChannelList(l,t,a)}if(getOk){let e=await channelHide();for(const t of e)$(`#ch-${t.channel_id}`).hide()}var o=localStorage.getItem("channel-custom-"+a);let n=JSON.parse(o),i=[];for(const e of i)2!==n?.[e]&&$(`#ch-${e}`).hide();for(const e in n){const t=n[e],a=$(`#ch-${e}`);1===t&&a.hide()}}catch(e){Swal.fire("",e.message?e.message:e,"error")}}function tabChannelByCustomApi(){$("#tabCategory").html(""),$("#jessibucaPlay").addClass("sembunyi"),$("#myVideo").removeClass("sembunyi");let e=apiStb+"vod/getGroups";apiCustom&&(e=`${apiCustom}vod/getVodGroups`);let t={};apiCustom&&(t={custom_id:custom_id}),$.ajax({url:e,method:"POST",data:t,success:function(e){const t=e?.map((e=>{const t=e.group_name.replaceAll(" ","-");return`\n