PageSourceSearch

https://www.dalarnasauktionsbyra.se/_next/static/chunks/5163-d7ffa3e61e548757.js

js dalarnasauktionsbyra.se collected 2026-09-27 07:46:10 UTC 9,597 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5163],{40098:function(e){var n=Math.ceil,t=Math.max;e.exports=function(e,a,i,r){for(var o=-1,l=t(n((a-e)/(i||1)),0),s=Array(l);l--;)s[r?l:++o]=e,e+=i;return s}},47445:function(e,n,t){var a=t(40098),i=t(16612),r=t(18601);e.exports=function(e){return function(n,t,o){return o&&"number"!=typeof o&&i(n,t,o)&&(t=o=void 0),n=r(n),void 0===t?(t=n,n=0):t=r(t),o=void 0===o?n<t?1:-1:r(o),a(n,t,o,e)}}},96026:function(e,n,t){var a=t(47445)();e.exports=a},45163:function(e,n,t){"use strict";t.d(n,{Z:function(){return components_Pagination}});var a,i,r,o,l=t(71383),s=t(27812),c=t(96026),d=t.n(c),p=t(57557),u=t.n(p),g=t(28583),h=t.n(g),x=t(67294),f=t(19395),m=t(11163),v=t(41664),y=t.n(v),b=t(74691),P=t.n(b),j=t(14293),w=t.n(j),k=t(65344),S=t(70917),z=t(94698),Z=t(31841),M=t(451),I=t(85893),$=x.createContext(null);function usePaginationContext(){var e=(0,x.useContext)($);return(0,M.Z)(e,"Need to wrap the component with a PaginationContext.Provider"),e}function Provider(e){var n=e.currentPage,t=e.pageSize,a=e.children;return(0,I.jsx)($.Provider,{value:{pageSize:t,currentPage:n},children:a})}var _=t(69742),C=(0,k.Z)(_.Z,{target:"e1riy8ch8"}
1)({name:"dtrej",styles:"min-width:200px;text-transform:uppercase;@media (max-width: 640px){min-width:140px;}.skeleton-ui-select__control{border-color:transparent;background-color:transparent;border-radius:0;}"});function PaginationItem(e){var n=e.offset,t=void 0===n?0:n,a=e.children,i=e.disabled,r=e.page,o=usePaginationContext(),l=o.pageSize,s=o.currentPage,c=(0,m.useRouter)(),d=c.pathname,p=c.query;return i?(0,I.jsx)(B,{$disabled:!0,$displayMobile:t<=1,$displayTablet:t<=3,children:(0,I.jsx)("span",{children:null!=a?a:r})}):(0,I.jsx)(B,{$active:r===s,$displayMobile:t<=1,$displayTablet:t<=3,children:(0,I.jsx)(y(),{href:{pathname:d,query:!w()(r)&&r>1?h()({},p,{skip:String((r-1)*l)}):u()(p,["skip"])},legacyBehavior:!0,children:(0,I.jsx)("a",{children:null!=a?a:r})})})}function PaginationNextIcon(){return(0,I.jsx)("svg",{viewBox:"-12 -12 24 24",width:24,height:24,children:(0,I.jsx)("path",{d:"M-2 -5 L3 0 L-2 5",strokeWidth:1.5,fill:"none",stroke:"currentColor",strokeLinecap:"round"})})}function PaginationPrevIcon(){return(0,I.jsx)("svg",{viewBox:"-12 -12 24 24",width:24,height:24,children:(0,I.jsx)("path",{d:"M2 -5 L-3 0 L2 5",strokeWidth:1.5,fill:"none",stroke:"currentColor",strokeLinecap:"round"})})}var N={name:"6zycc5",styles:"cursor:pointer;&:hover{background-color:var(--color-background-highlight);}"},q={name:"rrf5uk",styles:"color:var(--font-color-gray)"},E={name:"1y9zo2l",styles:"a,span{background-color:var(--color-background-highlight);font-weight:600;}"},L={name:"4zleql",styles:"display:block"},B=(0,k.Z)("li",{target:"e1riy8ch7"})("display:block;svg{display:block;}a,span{text-decoration:none;padding:4px;font-size:16px;line-height:24px;min-width:1.5rem;display:block;text-align:center;color:var(--font-color);}",function(e){var n=e.$displayMobile,t=e.$displayTablet;return n?L:t?(0,S.iv)("display:none;",(0,Z._)("md"),"{display:block;}",""):(0,S.iv)("display:none;",(0,Z._)("lg"),"{display:block;}","")}," ",function(e){var n=e.$active,t=e.$disabled;return n?E:(0,S.iv)("a,span{",t?q:N,";}","")},";"),T={name:"1szfgi1",styles:">:last-child{grid-column:3;justify-self:end;}"},D={name:"eivff4",styles:"display:none"},R={name:"11c0lol",styles:"order:2;align-self:center"},F=(0,k.Z)("nav",{target:"e1riy8ch6"})("display:flex;flex-direction:row;align-items:center;font-size:1rem;line-height:1.5rem;ul{display:flex;flex-direction:row;gap:0;list-style:none;padding:0;margin:0;}",(0,z.down)("md"),"{justify-content:center;}",(0,z.up)("md"),"{justify-content:space-between;align-items:center;ul{gap:4px;}}",function(e){var n=e.$mobileNav,t=e.$mobilePageSize;return n&&(0,S.iv)((0,Z.P)("md"),"{flex-direction:column;align-items:stretch;gap:12px;ul{display:none;}[data-cy='pageSizeSelect']{",t?R:D,";}}","")},function(e){var n=e.$withRightSlot,t=e.$centered;return(n||t)&&(0,S.iv)("@media (min-width: 1010px){display:grid;grid-template-columns:1fr auto 1fr;align-items:center;>[data-cy='pageSizeSelect']{grid-column:1;justify-self:start;}>ul{grid-column:2;justify-self:center;}",n&&T,";}","")},";"),A=(0,k.Z)("div",{target:"e1riy8ch5"})("display:flex;flex-direction:column;gap:8px;width:100%;",(0,Z._)("md"),"{display:none;}"),H=(0,k.Z)("div",{target:"e1riy8ch4"})({name:"1ou2f5o",styles:"display:flex;align-items:stretch;justify-content:center;gap:4px"}),W=(0,k.Z)("span",{target:"e1riy8ch3"})({name:"111cthh",styles:"position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0"}),G="\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  box-sizing: border-box;\n  /* 44px is the Apple HIG minimum; WCAG 2.2 SC 2.5.8 asks 24. Seven targets at\n     44 plus gaps come to ~332px, which fits a 359px nav — the old strip did not\n     because it grew with the page count. */\n  min-width: 44px;\n  min-height: 44px;\n  padding: 0 6px;\n  border: 1px solid #e6e6e6;\n  border-radius: 8px;\n  background: #fff;\n  font-size: 15px;\n  font-family: inherit;\n  line-height: 1;\n  text-decoration: none;\n  touch-action: manipulation;\n",J=(0,k.Z)("a",{target:"e1riy8ch2"})(G," color:var(--font-color);"),O=(0,k.Z)("span",{target:"e1riy8ch1"})(G," background:var(--color-primary);border-color:var(--color-primary);color:#fff;font-weight:600;"),K=(0,k.Z)("a",{target:"e1riy8ch0"})(G," width:auto;min-width:34px;padding:0 4px;border-color:transparent;background:transparent;color:var(--font-color-gray, #6b6b6b);font-size:17px;user-select:none;&:hover{color:var(--color-primary);}&:focus-visible{color:var(--color-primary);outline:2px solid var(--color-primary);outline-offset:-2px;}"),Q=t(93967),U=t.n(Q),V=t(82495),X=t(3893),Y=t(17977),ee=t.n(Y),en=[ee()],et=(0,X.Z)(function(e){var n=e.styles,t=e.selectProps;return(0,I.jsx)("span",{className:U()(n.icon,t.menuIsOpen&&n.selected),children:V.s2})},{defaultStyle:ee(),styles:en});function PageSizeSelect(e){var n,t,i=e.resetToZero,r=usePaginationContext().pageSize,o=(0,m.useRouter)(),s=i?0:null!==(n=null===(t=o.query
1)||void 0===t?void 0:t.skip)&&void 0!==n?n:0;return r?(0,I.jsx)("div",{"data-cy":"pageSizeSelect",children:(0,I.jsx)(C,{components:{DropdownIndicator:et},options:d()(24,100,24).map(function(e){return{top:e}}),valueKey:"top",formatOptionLabel:function(e,n){var t=e.top;return"value"===n.context?(0,f.t)(a||(a=(0,l.Z)([""," per page"])),t):t},value:{top:r},onChange:function(e){o.push({pathname:o.pathname,query:h()({},o.query,{top:e.top,skip:s})})}})}):null}var components_Pagination=function(e){var n,t=e.pagination,a=e.resetToZero,c=e.rightSlot,p=e.centered,g=e.mobileNav,x=void 0!==g&&g,v=e.mobilePageSize,b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.total,t=e.page,a=e.pageSize,i=e.pages,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:11,o=Math.max(1,void 0===a?24:a),l=w()(i)?Math.max(1,Math.ceil((void 0===n?0:n)/Math.max(1,o))):Math.max(1,i),s=P()(void 0===t?0:t,1,l),c=Math.floor(r/2),d=Math.max(1,P()(s,c,l-c)-c),p=Math.min(l,d+(r-1)),u=s!==l,g=1!==s,h=Math.min(l,s+1),x=Math.max(1,s-1);return{extraEnd:p!==l,extraStart:1!==d,hasNext:u,hasPrev:g,nextPage:h,page:s,pageCount:l,pageEnd:p,pageSize:o,pageStart:d,prevPage:x}}(t),j=b.extraEnd,k=b.extraStart,S=b.hasNext,z=b.hasPrev,Z=b.nextPage,M=b.page,$=b.pageCount,_=b.pageEnd,C=b.pageSize,N=b.pageStart,q=b.prevPage,E=(0,m.useRouter)(),L=E.pathname,B=E.query,hrefForPage=function(e){return{pathname:L,query:e>1?h()({},B,{skip:String((e-1)*C)}):u()(B,["skip"])}},T=null!==(n=null==t?void 0:t.total)&&void 0!==n?n:0,D=0===T?0:(M-1)*C+1,R=Math.min(M*C,T),gap=function(e,n){return{from:e,to:n}};return(0,I.jsx)(Provider,{pageSize:C,currentPage:M,children:(0,I.jsxs)(F,{$withRightSlot:!!c,$centered:void 0!==p&&p,$mobileNav:x,$mobilePageSize:void 0!==v&&v,children:[(0,I.jsx)(PageSizeSelect,{resetToZero:void 0!==a&&a}),(0,I.jsxs)("ul",{"data-cy":"paginationButtons",children:[(0,I.jsx)(PaginationItem,{disabled:!z,page:q,children:(0,I.jsx)(PaginationPrevIcon,{})}),$>1?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(PaginationItem,{page:1}),k?(0,I.jsx)(PaginationItem,{disabled:!0,children:"..."}):null,d()(k?N+2:N+1,j?_-1:_).map(function(e){return(0,I.jsx)(PaginationItem,{offset:Math.abs(M-e),page:e},e)}),j?(0,I.jsx)(PaginationItem,{disabled:!0,children:"..."}):null,(0,I.jsx)(PaginationItem,{page:$})]}):(0,I.jsx)(PaginationItem,{page:1}),(0,I.jsx)(PaginationItem,{disabled:!S,page:Z,children:(0,I.jsx)(PaginationNextIcon,{})})]}),x?(0,I.jsxs)(A,{children:[(0,I.jsx)(W,{"aria-live":"polite",children:(0,f.t)(r||(r=(0,l.Z)(["","–"," of ",""])),D,R,T)}),(0,I.jsx)(H,{children:($<=7?d()(1,$+1):M<=4?[].concat((0,s.Z)(d()(1,6)),[gap(6,$-1),$]):M>=$-3?[1,gap(2,$-5)].concat((0,s.Z)(d()($-5+1,$+1))):[1,gap(2,M-2),M-1,M,M+1,gap(M+2,$-1),$]).map(function(e){if("number"==typeof e)return e===M?(0,I.jsx)(O,{"aria-current":"page",children:e},e):(0,I.jsx)(y(),{passHref:!0,href:hrefForPage(e),legacyBehavior:!0,children:(0,I.jsx)(J,{"aria-label":(0,f.t)(i||(i=(0,l.Z)(["Page ",""])),e),children:e})},e);var n=Math.floor((e.from+e.to)/2),t=e.to<M;return(0,I.jsx)(y(),{passHref:!0,href:hrefForPage(n),legacyBehavior:!0,children:(0,I.jsx)(K,{"aria-label":(0,f.t)(o||(o=(0,l.Z)(["Jump to page ",""])),n),children:(0,I.jsx)("span",{"aria-hidden":"true",children:t?"‹‹":"››"})})},"gap-".concat(e.from))})})]}):null,c]})})}},17977:function(e){e.exports={icon:"DropDownIndicator_icon__ZhJqq",selected:"DropDownIndicator_selected__EC02f"}}}]);

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.