1import{u as c}from"./index.2026.10.012.js";import{d as b}from"./debounce.2026.10.01.js";import{i as f}from"./selectolddesign.2026.10.01.js";import{m as g,a as y,r as v,c as r,o as d,e as S,p as m,b as t,t as n,f as _,w as h,n as w,l as k,F as C,i as I,L as x,x as B}from"../app.2026.10.01.js";import T from"./tabledynamic.2026.10.01.js";import{_ as D}from"./_plugin-vue_export-helper.2026.10.01.js";import"./apiurl.2026.10.01.js";import"./utils.2026.10.01.js";import"./index.2026.10.01.js";import"./fetch.2026.10.01.js";import"./_commonjshelpers.2026.10.01.js";import"./constants.2026.10.01.js";import"./contextmenu.2026.10.01.js";import"./clickoutside.2026.10.01.js";import"./statuslabel.2026.10.01.js";import"./statusicon.2026.10.01.js";import"./focustrap.2026.10.01.js";import"./layout.2026.10.01.js";import"./footer.2026.10.01.js";import"./mobilenavigation.2026.10.01.js";import"./linkicon.2026.10.01.js";import"./searchinput.2026.10.01.js";import"./cross-black.2026.10.01.js";import"./logo-orange.2026.10.01.js";import"./logoutbutton.2026.10.01.js";import"./linkicondown.2026.10.01.js";import"./validation.2026.10.01.js";import"./alert.2026.10.01.js";import"./cookies.2026.10.01.js";import"./phonenumber.2026.10.01.js";import"./tooltip.2026.10.01.js";import"./light.2026.10.01.js";import"./getscrollbarwidth.2026.10.01.js";import"./modal.2026.10.012.js";import"./circle-exclamation-mark.2026.10.01.js";import"./spinner.2026.10.01.js";import"./componenthead.2026.10.01.js";import"./invoicestatustranslations.2026.10.01.js";const O={name:"EllevioWebPowerOutageNotificationsTable",components:{EllevioWebTableDynamic:T},props:{translations:{type:Object,default:()=>{}}},data:function(){return{searchQuery:"",debouncedSearchQuery:"",searchSelect:this.translations.search.selectOptions?.length>0?this.translations.search.selectOptions[0].value:"",additionalMobileButtons:[{text:"Redigera",eventName:"editNotificationItems",function:this.editSelectedItems,columnIndex:0}],loading:!1,currentTableParams:"",clearCheckedItems:!1}},computed:{...y(c,["getActiveCustomerId"]),concatenatedFilters:function(){return`&filter=${this.searchSelect}`}},methods:{...g(c,["modalOpen"]),handleTableLoadingEvent(e){this.loading=e},handleTableDynamicParams(e){this.currentTableParams=e},editSelectedItems(e){this.modalOpen({type:"edit-notification-items",heading:this.translations.modal.heading,itemCountInformation:e.length>1?`${e.length} ${this.translations.modal.deliverySites}`:"",selectedItems:JSON.parse(JSON.stringify(e)),cancelButton:this.translations.modal.cancelButton,confirmButton:this.translations.modal.confirmButton,confirmationDispatch:"postPowerOutageNotificationsBatch",confirmationDispatchParams:this.currentTableParams,translations:this.translations.modal,clearCheckedItems:()=>{this.clearCheckedItems=!this.clearCheckedItems}})}},watch:{searchQuery:b(function(e){e!==this.debouncedSearchQuery&&(this.debouncedSearchQuery=e)},500),getActiveCustomerId:async function(e){e&&(this.searchQuery="",this.debouncedSearchQuery="")}},async mounted(){this.$nextTick(async function(){f(document.querySelector("#ellevio-web-power-outage-notifications-table-type"))})}},N={class:"flex relative flex-col mb-6 sm:mb-8 sm:flex-row"},Q={class:"pb-4 w-full sm:pb-0 sm:w-144 sm:pr-8"},E={class:"pb-2 text-lg leading-none font-futuraEfDemiBold"},M=["disabled","placeholder"],P={class:"power-outage-notifications-type"},L={class:"pb-2 text-lg leading-none font-futuraEfDemiBold"},F=["disabled"],V=["value"],q={key:0,class:"hidden pb-8 md:flex"},A=["onClick"],H={class:"pb-4 text-2xl md:hidden font-futuraEfDemiBold"};function J(e,i,o,R,U,l){const u=v("ellevio-web-table-dynamic");return d(),r("div",null,[S(u,{type:"power-outage-notifications",translations:o.translations.table,"table-headings":o.translations.table.tableHeadings,"load-more-description":o.translations.table.loadMoreDescription,"left-column-index":[2,3],"search-query":e.debouncedSearchQuery,"search-select":l.concatenatedFilters,"additional-mobile-buttons":e.additionalMobileButtons,"remove-links-if-mobile":!0,"has-selection-reset":!1,"clear-checked-items":e.clearCheckedItems,onLoading:i[2]||(i[2]=a=>l.handleTableLoadingEvent(a)),onTableDynamicParams:i[3]||(i[3]=a=>l.handleTableDynamicParams(a))},{above:m(a=>[t("div",N,[t("div",Q,[t("label",null,[t("div",E,n(o.translations.search.heading),
11),h(t("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>e.searchQuery=s),type:"search",class:w(["w-full textbox",e.loading?"textbox-loading":""]),disabled:a.disabled,placeholder:o.translations.search.placeholder},null,10,M),[[k,e.searchQuery]])])]),t("div",P,[t("div",L,n(o.translations.search.selectHeading),1),h(t("select",{id:"ellevio-web-power-outage-notifications-table-type","onUpdate:modelValue":i[1]||(i[1]=s=>e.searchSelect=s),name:"sort",class:"select-element",disabled:e.loading||a.disabled},[(d(!0),r(C,null,I(o.translations.search.selectOptions,(s,p)=>(d(),r("option",{key:`type-${p}`,value:s.value},n(s.label),9,V))),128))],8,F),[[x,e.searchSelect]])])]),a.itemsChecked.length>0?(d(),r("div",q,[t("button",{class:"button-std",onClick:B(s=>l.editSelectedItems(a.itemsChecked),["prevent"])},"Redigera ("+n(a.itemsChecked.length)+")",9,A)])):_("",!0)]),inside:m(()=>[t("div",H,n(o.translations.table.subHeading),1)]),_:1},8,["translations","table-headings","load-more-description","search-query","search-select","additional-mobile-buttons","clear-checked-items"])])}const De=D(O,[["render",J]]);export{De as default}; 2//# sourceMappingURL=poweroutagenotificationstable.2026.10.01.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.