1import{c as ae,eb as Q,j as t,s as Se,cn as Te,F as O,I as J,bA as se,ec as Ze,Z as Ge,_ as fe,q as Z,ed as Xe,dR as Ye,ab as ne,aI as et,A as ee,R as tt,U as it,ee as rt,u as je,z as we,a3 as Ee,J as be,L as ke,T as te,i as Ce,a as Pe,b as Ie,d as De,e as Re,f as ze,g as Ae,o as Ue,ef as ot,k as me}from"./pages_error.BK-QdiaG.js";import"../chunks/chunk-BZ84Ab-u.js";/* empty css */import{r as y}from"../chunks/chunk-PexWVnoU.js";import"../chunks/chunk-CWSVRjG-.js";import"../chunks/chunk-DbnwkZiq.js";import"../chunks/chunk-D1XrgRzY.js";import"../chunks/chunk-B2PZHPPE.js";import"../chunks/chunk-ChQ5Q2mX.js";import"../chunks/chunk-KRQ74POg.js";import"../chunks/chunk-B9qXv2he.js";import"../chunks/chunk-DBa2jeSN.js";import"../chunks/chunk-MhrTa6-W.js";import"../chunks/chunk-CFtOmlV4.js";import"../chunks/chunk-Brdlnzoh.js";import"../chunks/chunk-Dxn89Uj8.js";import"../chunks/chunk-DqurnAD2.js";/* empty css */import"../chunks/chunk-BXT85hxQ.js";import"../chunks/chunk-DmOsmcZz.js";import"../chunks/chunk-C5Opjp6V.js";import{u as st,q as he,i as Le,r as ge}from"./pages_admin_email_lists_new.Bnpe0R1K.js";import{I as nt}from"./pages_articles.CU7dT9jh.js";import"../chunks/chunk-CZ_NOH_l.js";import"../chunks/chunk-DblWt05U.js";import"../chunks/chunk-C3nTzXHt.js";import"../chunks/chunk-Dz2CJtHQ.js";import"../chunks/chunk-B8aF1JEa.js";import"../chunks/chunk-DdXA9MqN.js";import"../chunks/chunk-DDDYV6Dq.js";import{s as m}from"../chunks/chunk-Dhe_MPKi.js";import{C as _e}from"../chunks/chunk-BYaovhT7.js";import"../chunks/chunk-CBY8q5id.js";import"../chunks/chunk-BgeFUvRR.js";import"../chunks/chunk-DpdfX9RK.js";import"../chunks/chunk-C9nb56KM.js";import"../chunks/chunk-D_YR4gRH.js";import"../chunks/chunk-BXZHqkHr.js";import"../chunks/chunk-Cdlilpmq.js";import"../chunks/chunk-Dh5mecHx.js";import"../chunks/chunk-DXLlZ4oT.js";/* empty css */import"../chunks/chunk-6wcGRgWG.js";import"../chunks/chunk-Chi83IvS.js";import"../chunks/chunk-Bcj7RVZ0.js";import"../chunks/chunk-DM5RLDk3.js";/* empty css */import"../chunks/chunk-CXdBphyK.js";import"../chunks/chunk-DP8xP4I5.js";import"../chunks/chunk-DiEV4Yg0.js";import"../chunks/chunk-D-SSYYyy.js";import"../chunks/chunk-CZ8IY56A.js";import"../chunks/chunk-DDOvA8Rv.js";import"../chunks/chunk-BPkDDV0x.js";import"../chunks/chunk-CRwY10_g.js";import"../chunks/chunk-CDLxjMOJ.js";import"../chunks/chunk-CMSSAnED.js";import"../chunks/chunk-CDA0Qs17.js";import"../chunks/chunk-DNomQAlg.js";import"../chunks/chunk-LELjh_Qq.js";import"../chunks/chunk-B1R4Xcam.js";import"../chunks/chunk-DDtpfXBH.js";/* empty css *//* empty css */import"../chunks/chunk-CtItBpjk.js";import"../chunks/chunk-Cpx6_yhk.js";import"../chunks/chunk-BAdkgJAS.js";import"../chunks/chunk-B3SogCMG.js";import"../chunks/chunk-D1e-pxCv.js";import"../chunks/chunk-D09YuDgq.js";import"../chunks/chunk-SklrvCDW.js";import"../chunks/chunk-BRtHw9ch.js";import"../chunks/chunk-B4ZUrmHo.js";import"../chunks/chunk-yrLdG6L9.js";import"../chunks/chunk-DwOtMrAX.js";import"../chunks/chunk-DaJHB14Y.js";import"../chunks/chunk-Bm1dhIe7.js";import"../chunks/chunk-DO4fep6s.js";import"../chunks/chunk-BEg0ITAM.js";import"../chunks/chunk-DW6-YGiX.js";/* empty css */import"../chunks/chunk-BPSdXVVV.js";import"../chunks/chunk-tNUnV8qs.js";import"../chunks/chunk-CqPAcvx5.js";import"../chunks/chunk-C64XtdYm.js";import"../chunks/chunk-BWqAnDVb.js";import"../chunks/chunk-Z0H_KT2P.js";import"../chunks/chunk-qXb-VbZW.js";import"../chunks/chunk-uh0tYKGn.js";import"../chunks/chunk-5yoxkVU5.js";import"../chunks/chunk-BA7IN2PN.js";import"../chunks/chunk-DGNH95cz.js";import"../chunks/chunk-_UdhDqtf.js";import"../chunks/chunk-Bz-6ayk1.js";import"../chunks/chunk-CbcP9LKT.js";import"../chunks/chunk-B0d0t2i7.js";import"../chunks/chunk-DToT-5Y6.js";import"../chunks/chunk-RgVqTFmD.js";import"../chunks/chunk-BGEfHTWC.js";import"../chunks/chunk-B35xYNVI.js";import"../chunks/chunk-BHTy8RuC.js";import"../chunks/chunk-DdYmCtx4.js";import"../chunks/chunk-BerLXsqB.js";import"../chunks/chunk-DYsHcjQ2.js";import"../chunks/chunk-D4AY_GQZ.js";import"../chunks/chunk-BFwBUO3z.js";import"../chunks/chunk-BWDEE3Bc.js";import"./pages_admin_email_lists_-emailListId.CGF0IfmW.js";import"../chunks/chunk-CVczDDT7.js";import"../chunks/chunk-CFUQatQu.js";import"../chunks/chunk-DLUg49AS.js";import"../chunks/chunk-B8X4zEAv.js";import"../chunks/chunk-CML8JNst.js";import"../chunks/chunk-DYBnXbmQ.js";import"../chunks/chunk-C9SjSo-a.js";import"../chunks/chunk-B5dHsOwM.js";import"../chunks/chunk-WL5fliC4.js";try{let r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new r.Error().stack;u&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[u]="058c07b5-5f73-46e2-9100-8b14766c5257",r._sentryDebugIdIdentifier="sentry-dbid-058c07b5-5f73-46e2-9100-8b14766c5257")}catch{}/** 2 * @license lucide-react v0.483.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const at=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],lt=ae("ChevronsUpDown",at);/** 7 * @license lucide-react v0.483.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const dt=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]],pt=ae("ListFilter",dt);/** 12 * @license lucide-react v0.483.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const ct=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],ut=ae("SlidersHorizontal",ct),ft=({column:r,data:u,index:h,showColumn:f,rowActionContext:d,editableEnabled:j,isEditingRow:v,isSavingRow:k,draft:w,errors:C,setDraftValue:x,onSaveRow:L,onCancelRow:A})=>
16{if(r.columnChoices){if(Object.keys(f).length===0)return null;const T=f[r.dataIndex];r=r.columnChoices[T]}const S=Q(u,r.dataIndex),{render:W=T=>T,dataIndex:g,centered:_=!0}=r,E=j&&v&&r.editable,b=w?.[g]??S,p=b==null?"":String(b),N=C?.[g],B=t.jsx(Se,{value:p,disabled:k,"aria-invalid":!!N,onChange:T=>x(g,T.target.value),onKeyDown:T=>{if(T.key==="Escape"){T.preventDefault(),A();return}T.key==="Enter"&&(T.preventDefault(),L())}}),P={row:u,column:r,value:b,draft:w??{},setValue:T=>x(g,T),error:N,isSaving:k,onSaveRow:L,onCancelRow:A};return t.jsx("td",{style:{maxWidth:r.maxWidth,wordWrap:r.maxWidth?"break-word":"inherit",padding:r.padding,textAlign:_?"center":"inherit"},className:m.td,children:E?t.jsx("div",{className:m.editableCellContent,children:r.editRender?.(P)??B}):W(S,u,d)},`${g}-${h}-${u.id}`)},mt=({column:r,index:u,sort:h,filters:f,isShown:d,showColumn:j,setSort:v,setFilters:k,setIsShown:w,setShowColumn:C})=>{const x=y.useRef(null),L=(n,a)=>{const $=h.dataIndex===n&&h.direction==="asc"?"desc":"asc";v({direction:$,dataIndex:n,sorter:a})},A=(n,a)=>k($=>{const z=$[n],I={...$};return z===void 0?(I[n]=[a],I):r.filterOptions?.multiSelect?(I[n]=z.includes(a)?z.filter(re=>re!==a):[...z,a],I):z[0]===a?{...f,[n]:void 0}:{...f,[n]:[a]}}),S=n=>w({[n]:!d[n]}),W=(n,a)=>{C({[a]:n})};let g=r;const _=r.columnChoices,E=r.dataIndex;if(r.columnChoices){const n=j?j[E]:0;g={...r,...r.columnChoices[n]}}const{dataIndex:b,filterIndex:p=b,title:N,sorter:B,filter:P,filterOptions:T,search:q,filterMessage:ie}=g;y.useEffect(()=>{q&&d[p]&&x.current?.focus({preventScroll:!0})},[q,d,p]);const G=h.dataIndex===b?h.direction==="asc"?t.jsx(Te,{}):t.jsx(_e,{}):t.jsx(lt,{}),V=!!f[p]&&String(f[p])||d[p];return t.jsx("th",{style:{maxWidth:r.maxWidth},children:t.jsxs(O,{alignItems:"center",justifyContent:"center",gap:"var(--spacing-sm)",children:[B&&t.jsx(J,{iconNode:G,size:16,onPress:()=>L(b,B),className:m.icon}),N,q&&t.jsx(se,{show:d[p],toggle:()=>S(p),triggerComponent:t.jsx(J,{iconNode:t.jsx(Ze,{}),size:16,className:V?m.iconActive:m.icon}),contentClassName:m.overlay,rootClose:!0,children:t.jsx(Se,{inputRef:x,removeBorder:!0,placeholder:ie,value:f[p],onChange:n=>A(p,n.target.value),onKeyDown:({keyCode:n})=>{n===13&&S(p)}})}),P&&t.jsxs(se,{show:d[p],toggle:()=>S(p),triggerComponent:t.jsx(J,{iconNode:t.jsx(pt,{}),size:16,className:V?m.iconActive:m.icon}),contentClassName:m.checkbox,rootClose:!0,children:[P.map(({label:n,value:a})=>T?.multiSelect?t.jsx("div",{onClick:()=>A(p,a),children:t.jsx(Ge,{label:n,checked:f[p]?.includes(a)})},n):t.jsx("div",{children:t.jsx(fe,{id:p+a,name:p,label:n,checked:f[p]?.includes(a),onClick:()=>A(p,a)})},n)),t.jsx(Z,{flat:!0,onPress:()=>{k(n=>{const a={...n};return delete a[p],a}),S(p)},children:"Nullstill"})]}),_&&t.jsx(se,{show:d[p],toggle:()=>S(p),triggerComponent:t.jsx(J,{iconNode:t.jsx(ut,{}),size:16,className:V?m.iconActive:m.icon}),contentClassName:m.overlay,rootClose:!0,children:j&&_.map(({title:n},a)=>t.jsx("div",{children:t.jsx(fe,{id:E+a,name:E,value:a,label:n?.toString(),checked:j[E]===a,onChange:()=>null,onClick:()=>{W(a,E)}})},n?.toString()))})]})},`${b}-${u}`)},ht=({visible:r=!0})=>r,xe=r=>!!(r&&Object.values(r).some(Boolean)),ye=r=>{const u={};return Object.entries(r).forEach(([h,f])=>u[h]=f?.length?f?.filter(d=>d!=="").join(","):void 0),u},ve=r=>{if(!r)return{};const u={};return Object.entries(r).forEach(([h,f])=>u[h]=f?.split(",")),u},Ne=({columns:r,data:u,rowKey:h="id",hasMore:f,loading:d,className:j,onChange:v,onLoad:k,collapseAfter:w,filters:C,editable:x,editingRowId:L,onEditingRowChange:A})=>{const[S,W]=y.useState({}),[g,_]=y.useState(ve(C)),E=y.useRef(C);y.useEffect(()=>{Xe(C,E.current)||(E.current=C,_(ve(C)))},[C]),y.useEffect(()=>{Ye(()=>{if(v){const e=ye(g);E.current=e,v(e,S)}},170)()},[g,S]);const[b,p]=y.useState({}),[N,B]=y.useState({}),[P,T]=y.useState(!1),[q,ie]=y.useState(null),[G,V]=y.useState({}),[n,a]=y.useState({}),[$,z]=y.useState(null);y.useEffect(()=>{const e={};r.forEach(i=>{i.columnChoices&&(e[i.dataIndex]=0)}),B(e)},[r]);const I=r.filter(ht),re=y.useMemo(()=>I.filter(e=>!!(e.editable&&e.dataIndex)),[I]),F=!!(x?.enabled&&(x.mode??"row")==="row"),le=x?.actionColumnWidth??150,oe={width:le,minWidth:le},D=L??q,U=e=>Q(e,h)??e.id,K=e=>String(e),X=e=>{L===void 0&&ie(e),A?.(e)},Y=e=>x?.getInitialDraft?x.getInitialDraft(e):re.reduce((i,o)=>(i[o.dataIndex]=Q(e,o.dataIndex),i),{}),de=e=>{const i=U(e),o=K(i);return G[o]??Y(e)},pe=e=>{const i=K(e);V(o=>{if(!(i in o))return o;const l={...o};return delete l[i],l}),a(o=>
16{if(!(i in o))return o;const l={...o};return delete l[i],l})},ce=e=>(x?.isRowEditable?.(e)??!0)&&F,ue=(e,i)=>{if(!x?.validateDraft)return null;const o=x.validateDraft(i,e);return xe(o)?o:null},Be=(e,i)=>{const o=Y(e);return[...new Set([...Object.keys(o),...Object.keys(i)])].some(s=>o[s]!==i[s])},Ve=(e,i,o)=>{const l=U(e),s=K(l);V(c=>({...c,[s]:{...c[s]??Y(e),[i]:o}})),a(c=>c[s]?.[i]?{...c,[s]:{...c[s],[i]:void 0}}:c)},Me=e=>{if(!ce(e))return;const i=U(e),o=K(i);D!==null&&D!==i||(V(s=>({...s,[o]:s[o]??Y(e)})),a(s=>{if(!(o in s))return s;const c={...s};return delete c[o],c}),X(i))},Oe=e=>{const i=U(e);pe(i),D===i&&X(null),x?.onCancelRow?.(e)},$e=async e=>{if(!x?.onSaveRow||!F)return;const i=U(e);if(D!==i)return;const o=K(i),l=de(e),s=ue(e,l);if(s){a(c=>({...c,[o]:s}));return}z(i);try{await x.onSaveRow(e,l),pe(i),D===i&&X(null)}catch{}finally{z(c=>c===i?null:c)}};y.useEffect(()=>{if(D===null)return;u.some(i=>String(U(i))===String(D))||(X(null),z(null))},[u,D]);const Fe=y.useMemo(()=>{let e=S.sorter;const{direction:i,dataIndex:o}=S;o&&typeof e=="boolean"&&(e=(s,c)=>s[o]>c[o]?1:-1);const l=[...u].sort((s,c)=>e!==void 0&&typeof e!="boolean"?e(s,c):0);return i==="desc"&&l.reverse(),l},[S,u]),Ke=e=>Object.values(g).every(et)?!0:Object.keys(g).every(i=>{const{inlineFiltering:o=!0,filterMapping:l=R=>R,dataIndex:s,filterIndex:c}=r.find(R=>R.filterIndex===i||R.dataIndex===i)||{inlineFiltering:!1};if(!o||g[i]===void 0)return!0;const M=c||s||i;return typeof g[i]=="boolean"?g[i]===Q(e,M):g[i]?.some(R=>String(l(Q(e,M)??"")).toLowerCase().includes(R.toLowerCase()))}),We=()=>{k&&!d&&k(ye(g),S)},qe=e=>{const i=U(e),o=de(e),l=ue(e,o),s=D===i,c=$===i,M=ce(e),R=D!==null&&!s,Je=s&&M&&!c&&Be(e,o)&&!xe(l);return{row:e,isEditing:s,isSaving:c,canSave:Je,isLocked:R,isEditable:M,startEdit:()=>Me(e),cancelEdit:()=>Oe(e),saveEdit:()=>$e(e)}},He=e=>e.isEditing?t.jsxs(O,{justifyContent:"center",alignItems:"center",gap:"var(--spacing-sm)",children:[t.jsx(Z,{size:"small",onPress:()=>void e.saveEdit(),disabled:!e.canSave,children:"Lagre"}),t.jsx(Z,{size:"small",flat:!0,onPress:e.cancelEdit,disabled:e.isSaving,children:"Avbryt"})]}):t.jsx(Z,{size:"small",flat:!0,onPress:e.startEdit,disabled:e.isLocked||!e.isEditable,children:"Rediger"}),H=Fe.filter(Ke),Qe=w&&!P?H.slice(0,w):H;return t.jsxs(O,{column:!0,alignItems:"center",gap:"var(--spacing-md)",className:ne(m.wrapper,j),children:[t.jsxs("div",{className:m.tableContainer,children:[t.jsxs("table",{children:[t.jsx("thead",{children:t.jsxs("tr",{children:[I.map((e,i)=>t.jsx(mt,{column:e,index:i,sort:S,filters:g,isShown:b,showColumn:N,setSort:W,setFilters:_,setIsShown:p,setShowColumn:B},e.dataIndex+e.title)),F&&t.jsx("th",{className:m.actionHeader,style:oe,"aria-label":"Handlinger"})]})}),t.jsxs(nt,{element:"tbody",hasMore:f&&!d&&(!w||P),loadMore:We,threshold:50,children:[Qe.map(e=>{const i=U(e),o=K(i),l=qe(e);return t.jsxs("tr",{children:[I.map((s,c)=>t.jsx(ft,{column:s,data:e,index:c,showColumn:N,rowActionContext:l,editableEnabled:F,isEditingRow:l.isEditing,isSavingRow:l.isSaving,draft:G[o],errors:n[o],setDraftValue:(M,R)=>Ve(e,M,R),onSaveRow:()=>l.saveEdit(),onCancelRow:l.cancelEdit},s.title+s.dataIndex)),F&&t.jsx("td",{className:ne(m.td,m.actionCell),style:oe,children:(x?.renderRowActions??He)(l)})]},i)}),d&&Array.from({length:10}).map((e,i)=>t.jsxs("tr",{children:[Array.from({length:I.length}).map((o,l)=>t.jsx("td",{className:m.loader},l)),F&&t.jsx("td",{className:ne(m.loader,m.actionCell),style:oe})]},i))]})]}),w&&H.length>w&&!P&&t.jsx("div",{className:m.fadeOverlay})]}),w&&H.length>w&&t.jsxs(Z,{flat:!0,onPress:()=>T(e=>!e),children:[t.jsx(J,{iconNode:P?t.jsx(_e,{}):t.jsx(Te,{}),size:19}),P?"Vis mindre":`Vis alle ${H.length} rader`]})]})},gt={name:"",email:"",requireInternalAddress:""},xt=()=>{const{query:r,setQuery:u}=st(gt),{pagination:h}=ee(v=>tt({endpoint:"/email-lists/",entity:it.EmailLists,query:r})(v)),f=ee(v=>rt(v,{pagination:h}
16)),d=je();we("fetchEmailLists",()=>d(he({query:r})),[r]);const j=[{title:"Navn",dataIndex:"name",search:!0,inlineFiltering:!1,render:(v,k)=>t.jsx("a",{href:`/admin/email/lists/${k.id}`,children:v})},{title:"E-post",dataIndex:"email",search:!0,inlineFiltering:!1,render:v=>t.jsx("span",{children:`${v}@abakus.no`})},{title:"Kun for brukere med @abakus e-post",dataIndex:"requireInternalAddress",filter:[{value:"true",label:"Kun for @abakus.no"},{value:"false",label:"Alle typer adresser"}],inlineFiltering:!1,render:v=>v?t.jsx(te,{tag:"Kun for @abakus.no",color:"cyan"}):t.jsx(te,{tag:"Alle typer adresser",color:"yellow"})}];return t.jsxs(Ee,{children:[t.jsx(be,{severity:"info",children:"Lister brukes for permanente lister som skal mottas av definerte brukere eller grupper. Lister kan ikke slettes, men mottakere kan endres. Delen av adressen som kommer før @abakus.no er unik og kan ikke brukes andre steder pÃ¥ abakus.no. Lister er Ã¥pne og alle kan sende e-post til disse. Ãnsker brukere Ã¥ sende e-post fra en @abakus.no-adresse mÃ¥ de fÃ¥ opprettet en personlig adresse under Brukere."}),t.jsxs(O,{column:!0,gap:"var(--spacing-sm)",children:[t.jsxs(O,{alignItems:"center",justifyContent:"space-between",children:[t.jsx("h3",{children:"Aktive e-postlister"}),t.jsx(ke,{href:"/admin/email/lists/new",children:"Ny e-postliste"})]}),t.jsx(Ne,{columns:j,onLoad:()=>{d(he({next:!0,query:r}))},filters:r,onChange:u,hasMore:h.hasMore,loading:h.fetching,data:f})]})]})},yt=Object.freeze(Object.defineProperty({__proto__:null,default:xt},Symbol.toStringTag,{value:"Module"})),vt={isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/__internal/integration/onRenderClient",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:Ue}},onPageTransitionStart:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+onPageTransitionStart.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:Ae}},onPageTransitionEnd:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+onPageTransitionEnd.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:ze}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/admin/email/lists/+Page.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:yt}},hydrationCanBeAborted:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/config",fileExportPathToShowToUser:["default","hydrationCanBeAborted"]},valueSerialized:{type:"js-serialized",value:!0}},Layout:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/pages/admin/email/+Layout.tsx",fileExportPathToShowToUser:[]},{filePathToShowToUser:"/pages/+Layout.tsx",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:Le},{type:"plus-file",exportValues:Re}]},lang:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+config.ts",fileExportPathToShowToUser:["default","lang"]},valueSerialized:{type:"js-serialized",value:"no"}},onBeforeRenderClient:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/pages/+onBeforeRenderClient.ts",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:De}]},onAfterRenderClient:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/pages/+onAfterRenderClient.ts",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:Ie}]},Wrapper:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/pages/+Wrapper.tsx",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:Pe}]},Loading:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/__internal/integration/Loading",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:Ce}}},Rr=Object.freeze(Object.defineProperty({__proto__:null,configValuesSerialized:vt},Symbol.toStringTag,{value:"Module"})),St=()=>{const r=ee(ot),u=ee(d=>d.restrictedMails.fetching),h=je();we("fetchRestrictedMails",()=>h(ge({next:!1})),[]);const f=[{title:"ID",dataIndex:"id",render:(d,j)=>t.jsx("a",{href:`/admin/email/restricted/${j.id}`,children:d})},{title:"Fra",search:!0,dataIndex:"fromAddress"},{title:"Laget",dataIndex:"createdAt",render:d=>t.jsx("span",{children:me(d).format("lll")})},{title:"Status",dataIndex:"used",render:d=>
16d?t.jsx(te,{tag:me(d).format("lll"),color:"gray"}):t.jsx(te,{tag:"Ubrukt",color:"yellow"})}];return t.jsxs(Ee,{children:[t.jsxs(be,{severity:"info",children:[t.jsx("p",{children:"Begrenset e-post benyttes når det ønskes å sende en målrettet e-post til en kombinasjon av grupper, brukere, møter, arrangementer eller definerte adresser. En begrenset e-post kan kun benyttes en gang, og må komme fra en forhåndsdefinert adresse. For ytterligere sikkerhet må en fil legges som vedlegg for verifisering av avsender. Denne filen vil bli validert og fjernet før e-posten sendes til mottakere. Begrenset e-post kan sendes med skjult avsender, og mottakere vil da ikke kunne svare på e-posten."}),t.jsxs("ol",{style:{listStylePosition:"inside"},children:[t.jsx("li",{children:"Opprett en begrenset e-post"}),t.jsx("li",{children:"Last ned e-post token"}),t.jsx("li",{children:"Opprett en e-post med oppgitt avsender"}),t.jsxs("li",{children:["Mottaker settes til ",t.jsx("b",{children:"[email protected]"})]}),t.jsx("li",{children:"Legg inn e-post token som vedlegg"}),t.jsx("li",{children:"Send e-posten"})]})]}),t.jsxs(O,{column:!0,gap:"var(--spacing-sm)",children:[t.jsxs(O,{alignItems:"center",justifyContent:"space-between",children:[t.jsx("h3",{children:"Dine begrensede e-poster"}),t.jsx(ke,{href:"/admin/email/restricted/new",children:"Opprett en begrenset e-post"})]}),t.jsx(Ne,{columns:f,onLoad:()=>h(ge({next:!0})),hasMore:!1,loading:u,data:r})]})]})},Tt=Object.freeze(Object.defineProperty({__proto__:null,default:St},Symbol.toStringTag,{value:"Module"})),zr={isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/__internal/integration/onRenderClient",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:Ue}},onPageTransitionStart:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+onPageTransitionStart.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:Ae}},onPageTransitionEnd:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+onPageTransitionEnd.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:ze}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/admin/email/restricted/+Page.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:Tt}},hydrationCanBeAborted:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/config",fileExportPathToShowToUser:["default","hydrationCanBeAborted"]},valueSerialized:{type:"js-serialized",value:!0}},Layout:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/pages/admin/email/+Layout.tsx",fileExportPathToShowToUser:[]},{filePathToShowToUser:"/pages/+Layout.tsx",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:Le},{type:"plus-file",exportValues:Re}]},lang:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+config.ts",fileExportPathToShowToUser:["default","lang"]},valueSerialized:{type:"js-serialized",value:"no"}},onBeforeRenderClient:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/pages/+onBeforeRenderClient.ts",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:De}]},onAfterRenderClient:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/pages/+onAfterRenderClient.ts",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:Ie}]},Wrapper:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/pages/+Wrapper.tsx",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:Pe}]},Loading:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/__internal/integration/Loading",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:Ce}}};export{Ne as T,zr as c,Rr as l}; 17//# sourceMappingURL=pages_admin_email_lists.DxsLhVmt.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.