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