{#if !optionsPanel.hasOwnProperty('hide_department_filter') || optionsPanel.hide_department_filter === false}
{$lhcList[optionsPanel['panelid']].length == 0 ? $t("widget_options.all_dep") : ($lhcList[optionsPanel['panelid']].length == 1 && !(optionsPanel.hasOwnProperty('no_names_department') && optionsPanel.no_names_department === true) ? $lhcList[optionsPanel['panelid'] + "Names"].join(", ") : '['+$lhcList[optionsPanel['panelid']].length+'] ' + $t("widget_options.departments"))}
{#if !optionsPanel.hasOwnProperty('hide_department_variations')}
{ee.emitEvent('svelteallDepartmentsChanged',[optionsPanel['panelid'],true])}} > {$t("widget_options.check_all")}
{ee.emitEvent('svelteallDepartmentsChanged',[optionsPanel['panelid'],true])}} > {$t("widget_options.only_online")}
{ee.emitEvent('svelteallDepartmentsChanged',[optionsPanel['panelid'],true])}} > {$t("widget_options.only_explicit_online")}
{ee.emitEvent('svelteallDepartmentsChanged',[optionsPanel['panelid'],true])}} > {$t("widget_options.hide_hidden")}
{/if} {#if optionsPanel.hasOwnProperty('hide_department') && optionsPanel.hide_department == true}
{ee.emitEvent('svelteallDepartmentsChanged',[optionsPanel['panelid'],true])}} >
home
{$t("widget_options.hide_dep")}
{/if} {#if optionsPanel.hasOwnProperty('hide_depgroup') && optionsPanel.hide_depgroup == true}
{ee.emitEvent('svelteallDepartmentsChanged',[optionsPanel['panelid'],true])}} >
{$t("widget_options.hide_dep_groups")}
{/if} {#if !optionsPanel.hasOwnProperty('hide_department_variations')}
{ee.emitEvent('svelteallDepartmentsChanged',[optionsPanel['panelid'],true])}} > {$t("widget_options.hide_disabled")}
{/if} {#if !optionsPanel.hasOwnProperty('disable_product') || optionsPanel.disable_product == false} {#each $lhcList.userProductNames as product (product.id)}
ee.emitEvent('svelteProductChanged',[optionsPanel['panelid'] + '_products'])}>
{product.name}
{/each} {#if $lhcList.userProductNames.length > 0}
{/if} {/if} {#each $lhcList.userDepartmentsGroups as department (department.id)}
{ee.emitEvent('svelteProductChanged',[optionsPanel['panelid'] + '_dpgroups'])}} value={department.id} type="checkbox" >
{department.name}
{/each} {#if $lhcList.userDepartmentsGroups.length > 0}
{/if}
{#each $lhcList.userDepartments as department (department.id)} {#if !(($lhcList[optionsPanel['panelid'] + '_only_explicit_online'] == true && department.oexp == false) || ($lhcList[optionsPanel['panelid']+'_hide_hidden'] == true && department.hidden == true) || ($lhcList[optionsPanel['panelid']+'_hide_disabled'] == true && department.disabled == true) || ($lhcList[optionsPanel['panelid']+'_only_online'] && department.ogen == false))}
{ee.emitEvent('svelteDepartmentChanged',[optionsPanel['panelid']])}} value={department.id} type="checkbox">
home
{department.name}
{/if} {/each}
{/if} {#if optionsPanel.hasOwnProperty('userid')}
{$t("widget_options.users")}
{#each $lhcList.userList as userItem (userItem.id)}
{ee.emitEvent('svelteProductChanged',[optionsPanel['userid']])}} value={userItem.id} type="checkbox" >
account_box
{userItem.name || userItem.name_official}
{/each} {#if $lhcList.userGroups.length > 0}
{/if} {#each $lhcList.userGroups as userGroup (userGroup.id)}
{ee.emitEvent('svelteProductChanged',[optionsPanel['panelid']+"_ugroups"])}} value={userGroup.id} type="checkbox">
people
{userGroup.name}
{/each}
{/if} {#if !optionsPanel.hasOwnProperty('hide_limits')}
{ee.emitEvent('svelteLimitChanged',[optionsPanel['limitid']])}} title={$t("widget_options.limit")}>
5
10
25
50
100
{/if}