PageSourceSearch

https://www.officedepot.se/_next/static/chunks/528-3f422986666b8ea1.js

js officedepot.se collected 2026-09-26 08:43:19 UTC 13,007 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[528],{39260:(e,t,n)=>{n.d(t,{M:()=>l});var r=n(12115),o=n(6232);function l(e,t,n,l){let u=(0,o.Y)(n);(0,r.useEffect)(()=>{function n(e){u.current(e)}return(e=null!=e?e:window).addEventListener(t,n,l),()=>e.removeEventListener(t,n,l)},[e,t,l])}},40528:(e,t,n)=>{n.d(t,{lG:()=>$,Lj:()=>G,L3:()=>Z});var r=n(12115),o=n(84352),l=n(39260),u=n(12153),a=n(30797),i=n(70543),c=n(21231),s=n(4814),d=n(24006),f=n(48346),p=n(62298),m=n(97231),v=n(89925),g=n(47769),E=n(93008),h=n(91525),w=n(38725),F=n(27279),b=n(84554),y=n(82691),T=n(48014),C=n(13250),D=n(29479),L=n(69922),k=n(93510),M=n(23742),P=n(96917),S=n(37254),_=n(7856);function R(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var O=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(O||{});let I=Object.assign((0,b.FX)(function(e,t){let n=(0,r.useRef)(null),o=(0,g.P)(n,t),{initialFocus:i,initialFocusFallback:c,containers:s,features:d=15,...p}=e;(0,v.g)()||(d=0);let m=(0,f.g)(n);!function(e,t){let{ownerDocument:n}=t,o=!!(8&e),l=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,r.useRef)(P.b.slice());return(0,k.F)((e,n)=>{let[r]=e,[o]=n;!0===o&&!1===r&&(0,_._)(()=>{t.current.splice(0)}),!1===o&&!0===r&&(t.current=P.b.slice())},[e,P.b,t]),(0,a._)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(o);(0,k.F)(()=>{o||(null==n?void 0:n.activeElement)===(null==n?void 0:n.body)&&(0,S.pW)(l())},[o]),(0,D.X)(()=>{o&&(0,S.pW)(l())})}(d,{ownerDocument:m});let E=function(e,t){let{ownerDocument:n,container:o,initialFocus:l,initialFocusFallback:a}=t,i=(0,r.useRef)(null),c=(0,u.S)(!!(1&e),"focus-trap#initial-focus"),s=(0,C.a)();return(0,k.F)(()=>{if(0===e)return;if(!c){null!=a&&a.current&&(0,S.pW)(a.current);return}let t=o.current;t&&(0,_._)(()=>{if(!s.current)return;let r=null==n?void 0:n.activeElement;if(null!=l&&l.current){if((null==l?void 0:l.current)===r){i.current=r;return}}else if(t.contains(r)){i.current=r;return}if(null!=l&&l.current)(0,S.pW)(l.current);else{if(16&e){if((0,S.CU)(t,S.BD.First|S.BD.AutoFocus)!==S.Me.Error)return}else if((0,S.CU)(t,S.BD.First)!==S.Me.Error)return;if(null!=a&&a.current&&((0,S.pW)(a.current),(null==n?void 0:n.activeElement)===a.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}i.current=null==n?void 0:n.activeElement})},[a,c,e]),i}(d,{ownerDocument:m,container:n,initialFocus:i,initialFocusFallback:c});!function(e,t){let{ownerDocument:n,container:r,containers:o,previousActiveElement:u}=t,a=(0,C.a)(),i=!!(4&e);(0,l.M)(null==n?void 0:n.defaultView,"focus",e=>{if(!i||!a.current)return;let t=R(o);r.current instanceof HTMLElement&&t.add(r.current);let n=u.current;if(!n)return;let l=e.target;l&&l instanceof HTMLElement?B(t,l)?(u.current=l,(0,S.pW)(l)):(e.preventDefault(),e.stopPropagation(),(0,S.pW)(n)):(0,S.pW)(u.current)},!0)}(d,{ownerDocument:m,container:n,containers:s,previousActiveElement:E});let h=(0,L.u)(),w=(0,a._)(e=>{let t=n.current;t&&(0,F.Y)(h.current,{[L.O.Forwards]:()=>{(0,S.CU)(t,S.BD.First,{skipElements:[e.relatedTarget,c]})},[L.O.Backwards]:()=>{(0,S.CU)(t,S.BD.Last,{skipElements:[e.relatedTarget,c]})}})}),y=(0,u.S)(!!(2&d),"focus-trap#tab-lock"),O=(0,T.L)(),I=(0,r.useRef)(!1),H=(0,b.Ci)();return r.createElement(r.Fragment,null,y&&r.createElement(M.j,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:w,features:M.u.Focusable}),H({ourProps:{ref:o,onKeyDown(e){"Tab"==e.key&&(I.current=!0,O.requestAnimationFrame(()=>{I.current=!1}))},onBlur(e){if(!(4&d))return;let t=R(s);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(B(t,r)||(I.current?(0,S.CU)(n.current,(0,F.Y)(h.current,{[L.O.Forwards]:()=>S.BD.Next,[L.O.Backwards]:()=>S.BD.Previous})|S.BD.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,S.pW)(e.target)))}},theirProps:p,defaultTag:"div",name:"FocusTrap"}),y&&r.createElement(M.j,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:w,features:M.u.Focusable}))}),{features:O});function B(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var H=n(77962),A=n(4772),U=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(U||{}),x=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(x||{});let N={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},W=(0,r.createContext)(null);function Y(e){let t=(0,r.useContext)(W);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Dialog /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,Y),t}return t}function j(e,t){return(0,F.Y)(t.type,N,e,t)}W.displayName="DialogContext";let X=(0,b.FX)(function(e,t){let n=(0,r.useId)(),{id:F="headlessui-dialog-".concat(n),open:T,onClose:C,initialFocus:D,role:L="dialog",autoFocus:k=!0,__demoMode:M=!1,unmount:P=!1,...S}=e,_=(0,r.useRef)(!1);
1L="dialog"===L||"alertdialog"===L?L:(_.current||(_.current=!0,console.warn("Invalid role [".concat(L,"] passed to <Dialog />. Only `dialog` and and `alertdialog` are supported. Using `dialog` instead."))),"dialog");let R=(0,h.O_)();void 0===T&&null!==R&&(T=(R&h.Uw.Open)===h.Uw.Open);let B=(0,r.useRef)(null),A=(0,g.P)(B,t),U=(0,f.g)(B),x=+!T,[N,Y]=(0,r.useReducer)(j,{titleId:null,descriptionId:null,panelRef:(0,r.createRef)()}),X=(0,a._)(()=>C(!1)),K=(0,a._)(e=>Y({type:0,id:e})),G=!!(0,v.g)()&&0===x,[Z,$]=(0,H.k2)(),z=(0,p.xA)(),{resolveContainers:J}=(0,p.iq)({mainTreeNode:z,portals:Z,defaultContainers:[{get current(){var Q;return null!=(Q=N.panelRef.current)?Q:B.current}}]}),ee=null!==R&&(R&h.Uw.Closing)===h.Uw.Closing;(0,i.v)(!M&&!ee&&G,{allowed:(0,a._)(()=>{var e,t;return[null!=(t=null==(e=B.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:(0,a._)(()=>{var e;return[null!=(e=null==z?void 0:z.closest("body > *:not(#headlessui-portal-root)"))?e:null]})}),(0,d.j)(G,J,e=>{e.preventDefault(),X()}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"undefined"!=typeof document?document.defaultView:null,n=arguments.length>2?arguments[2]:void 0,r=(0,u.S)(e,"escape");(0,l.M)(t,"keydown",e=>{r&&(e.defaultPrevented||e.key===o.D.Escape&&n(e))})}(G,null==U?void 0:U.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),X()}),(0,m.K)(!M&&!ee&&G,U,J),(0,s.O)(G,B,X);let[et,en]=(0,y.rU)(),er=(0,r.useMemo)(()=>[{dialogState:x,close:X,setTitleId:K,unmount:P},N],[x,N,X,K,P]),eo=(0,r.useMemo)(()=>({open:0===x}),[x]),el={ref:A,id:F,role:L,tabIndex:-1,"aria-modal":M?void 0:0===x||void 0,"aria-labelledby":N.titleId,"aria-describedby":et,unmount:P},eu=!function(){var e;let[t]=(0,r.useState)(()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[n,o]=(0,r.useState)(null!=(e=null==t?void 0:t.matches)&&e);return(0,c.s)(()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){o(e.matches)}},[t]),n}(),ea=O.None;G&&!M&&(ea|=O.RestoreFocus,ea|=O.TabLock,k&&(ea|=O.AutoFocus),eu&&(ea|=O.InitialFocus));let ei=(0,b.Ci)();return r.createElement(h.$x,null,r.createElement(w.a,{force:!0},r.createElement(H.ZL,null,r.createElement(W.Provider,{value:er},r.createElement(H.Ee,{target:B},r.createElement(w.a,{force:!1},r.createElement(en,{slot:eo},r.createElement($,null,r.createElement(I,{initialFocus:D,initialFocusFallback:B,containers:J,features:ea},r.createElement(E.e,{value:X},ei({ourProps:el,theirProps:S,slot:eo,defaultTag:q,features:V,visible:0===x,name:"Dialog"})))))))))))}),q="div",V=b.Ac.RenderStrategy|b.Ac.Static,K=(0,b.FX)(function(e,t){let{transition:n=!1,open:o,...l}=e,u=(0,h.O_)(),a=e.hasOwnProperty("open")||null!==u,i=e.hasOwnProperty("onClose");if(!a&&!i)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!i)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!u&&"boolean"!=typeof e.open)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(e.open));if("function"!=typeof e.onClose)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(e.onClose));return(void 0!==o||n)&&!l.static?r.createElement(p.H5,null,r.createElement(A.e,{show:o,transition:n,unmount:l.unmount},r.createElement(X,{ref:t,...l}))):r.createElement(p.H5,null,r.createElement(X,{ref:t,open:o,...l}))}),G=(0,b.FX)(function(e,t){let n=(0,r.useId)(),{id:o="headlessui-dialog-panel-".concat(n),transition:l=!1,...u}=e,[{dialogState:i,unmount:c},s]=Y("Dialog.Panel"),d=(0,g.P)(t,s.panelRef),f=(0,r.useMemo)(()=>({open:0===i}),[i]),p=(0,a._)(e=>{e.stopPropagation()}),m=l?A._:r.Fragment,v=(0,b.Ci)();return r.createElement(m,{...l?{unmount:c}:{}},v({ourProps:{ref:d,id:o,onClick:p},theirProps:u,slot:f,defaultTag:"div",name:"Dialog.Panel"}))}),Z=((0,b.FX)(function(e,t){let{transition:n=!1,...o}=e,[{dialogState:l,unmount:u}]=Y("Dialog.Backdrop"),a=(0,r.useMemo)(()=>({open:0===l}),[l]),i=n?A._:r.Fragment,c=(0,b.Ci)();return r.createElement(i,{...n?{unmount:u}:{}},c({ourProps:{ref:t,"aria-hidden":!0},theirProps:o,slot:a,defaultTag:"div",name:"Dialog.Backdrop"}))}),(0,b.FX)(function(e,t){let n=(0,r.useId)(),{id:o="headlessui-dialog-title-".concat(n),...l}=e,[{dialogState:u,setTitleId:a}]=Y("Dialog.Title"),i=(0,g.P)(t);(0,r.useEffect)(()=>(a(o),()=>a(null)),[o,a]);let c=(0,r.useMemo)(()=>({open:0===u}),[u]);return(0,b.Ci)()({ourProps:{ref:i,id:o},theirProps:l,slot:c,defaultTag:"h2",name:"Dialog.Title"})})),$=Object.assign(K,{Panel:G,Title:Z,Description:y.VY})}
1,62298:(e,t,n)=>{n.d(t,{H5:()=>s,iq:()=>i,xA:()=>d});var r=n(12115),o=n(23742),l=n(21449),u=n(30797),a=n(48346);function i(){let{defaultContainers:e=[],portals:t,mainTreeNode:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,a.g)(n),o=(0,u._)(()=>{var o,l;let u=[];for(let t of e)null!==t&&(t instanceof HTMLElement?u.push(t):"current"in t&&t.current instanceof HTMLElement&&u.push(t.current));if(null!=t&&t.current)for(let e of t.current)u.push(e);for(let e of null!=(o=null==r?void 0:r.querySelectorAll("html > *, body > *"))?o:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(l=null==n?void 0:n.getRootNode())?void 0:l.host))||u.some(t=>e.contains(t))||u.push(e));return u});return{resolveContainers:o,contains:(0,u._)(e=>o().some(t=>t.contains(e)))}}let c=(0,r.createContext)(null);function s(e){let{children:t,node:n}=e,[u,a]=(0,r.useState)(null),i=d(null!=n?n:u);return r.createElement(c.Provider,{value:i},t,null===i&&r.createElement(o.j,{features:o.u.Hidden,ref:e=>{var t,n;if(e){for(let r of null!=(n=null==(t=(0,l.T)(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(r!==document.body&&r!==document.head&&r instanceof HTMLElement&&null!=r&&r.contains(e)){a(r);break}}}}))}function d(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null!=(e=(0,r.useContext)(c))?e:t}},69922:(e,t,n)=>{n.d(t,{O:()=>l,u:()=>u});var r=n(12115),o=n(28566),l=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(l||{});function u(){let e=(0,r.useRef)(0);return(0,o.M)(!0,"keydown",t=>{"Tab"===t.key&&(e.current=+!!t.shiftKey)},!0),e}},93008:(e,t,n)=>{n.d(t,{e:()=>l});var r=n(12115);let o=(0,r.createContext)(()=>{});function l(e){let{value:t,children:n}=e;return r.createElement(o.Provider,{value:t},n)}},93510:(e,t,n)=>{n.d(t,{F:()=>l});var r=n(12115),o=n(30797);function l(e,t){let n=(0,r.useRef)([]),l=(0,o._)(e);(0,r.useEffect)(()=>{let e=[...n.current];for(let[r,o]of t.entries())if(n.current[r]!==o){let r=l(t,e);return n.current=t,r}},[l,...t])}},96917:(e,t,n)=>{n.d(t,{b:()=>o});var r=n(37254);let o=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){if(!(e.target instanceof HTMLElement)||e.target===document.body||o[0]===e.target)return;let t=e.target;t=t.closest(r.Uo),o.unshift(null!=t?t:e.target),(o=o.filter(e=>null!=e&&e.isConnected)).splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})}}]);

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.