PageSourceSearch

https://bts-official.jp/assets/Pagination-p2Lbs7xu.js

js bts-official.jp collected 2026-09-24 19:47:13 UTC 3,811 bytes, 1 lines download raw bytes

1import{j as e,r as D,f as N}from"./chunk-EPOLDU6W-DQHo1dvM.js";import{B as i,c}from"./animations-Ctapxetk.js";import{f as m,a as S}from"./alignment-KUP1b83a.js";function L(d){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",fill:"current",...d,children:[e.jsx("mask",{id:"mask0_26_882",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"40",height:"40",children:e.jsx("rect",{width:"40",height:"40",fill:"#D9D9D9"})}),e.jsx("g",{mask:"url(#mask0_26_882)",children:e.jsx("path",{d:"M12.9027 36.6112L10.3611 34.0417L24.4583 19.9445L10.3611 5.84725L12.9027 3.27783L29.5694 19.9445L12.9027 36.6112Z",fill:"current"})})]})}const _={SLIDE_LEFT:{type:"overlay",styles:i.SLIDE_LEFT},SLIDE_RIGHT:{type:"overlay",styles:i.SLIDE_RIGHT},SLIDE_UP:{type:"overlay",styles:i.SLIDE_UP},SLIDE_DOWN:{type:"overlay",styles:i.SLIDE_DOWN},CENTER:{type:"overlay",styles:i.CENTER},FADE_SLOW:{type:"container",styles:i.FADE_SLOW},DEFAULT:{type:"container",styles:i.DEFAULT}},j="DEFAULT",b="duration-0",E={LAYOUT:"md:px-3 px-2 md:py-3 py-2 md:w-14 w-10 font-id_34 md:text-lg text-base md:font-bold font-bold md:leading-none leading-none tracking-wider md:rounded-none rounded-none",DESIGN:"",BASIC:{DEFAULT:"border-transparent text-main bg-transparent opacity-50 border-0",HOVER_BG:"hover:bg-transparent active:bg-transparent",HOVER_ETC:"hover:opacity-100 active:opacity-100 hover:border-transparent active:border-transparent hover:border-0 active:border-0",TEXT_HOVER:"group-hover:text-main group-active:text-main",OVERLAY_BG:"bg-transparent"},SELECTED:{DEFAULT:"border-transparent text-main bg-transparent opacity-100 border-0",HOVER_BG:"hover:bg-transparent active:bg-transparent",HOVER_ETC:"hover:opacity-100 active:opacity-100 hover:border-transparent active:border-transparent hover:border-0 active:border-0",TEXT_HOVER:"group-hover:text-main group-active:text-main",OVERLAY_BG:"bg-transparent"}};function v(d){const{onClickEvent:o,isDisable:t,children:n}=d,{currentAnim:x,isOverlayType:l}=D.useMemo(()=>{const g=_[j]||_.DEFAULT;return{currentAnim:g,isOverlayType:g.type==="overlay"}},[]),a=t?E.SELECTED:E.BASIC,u=c("group relative overflow-hidden flex justify-center items-center cursor-pointer",E.LAYOUT,a.DEFAULT,{[a.HOVER_BG]:!l,[a.HOVER_ETC]:!0,"cursor-default":t},l?"":x.styles,E.DESIGN),y=c("relative z-20 transition-colors block",b,a.TEXT_HOVER),f=c("absolute top-0 left-0 w-full h-full z-10 transition-transform ease-out",b,a.OVERLAY_BG,l?x.styles:"hidden");return n?e.jsxs("button",{type:"button",onClick:t?void 0:o,className:u,"aria-disabled":t,children:[e.jsx("span",{className:y,children:n}),l&&e.jsx("div",{className:f})]}):e.jsx("div",{className:c(E.LAYOUT,"invisible opacity-0"),"aria-hidden":"true"})}function C(d){const{recipe:o,currentPage:t,maxPage:n}=d,[x,l]=N();if(n<2)return e.jsx(e.Fragment,{});const a=r=>{l(T=>{const h=new URLSearchParams(T);return r!=1?h.set("page",r.toString()):h.delete("page"),h.sort(),h})},u=t>1,y=t<n;if(t>n||t<1)return e.jsx(e.Fragment,{});const f=()=>{u&&a(t-1)},g=()=>{y&&a(t+1)},A=r=>{a(r)};let s=t-3,p=t+3;s<1&&(p+=Math.abs(s)+1,s=1),p>n&&(s>1&&(s-=p-n,s<1&&(s=1)),p=n);const O=Array.from({length:p-s+1},(r,T)=>s+T);return e.jsx("div",{className:c("flex w-full",m(o.componentPaddingTop),m(o.componentPaddingBottom),S(m(o.contentsAlignment),"justify"),m(o.componentBgColor)),children:e.jsxs("div",{className:c("flex items-center w-full justify-center text-lg font-semibold leading-normal tracking-wide",m(o.pageGapX)),children:[u?e.jsx(v,{onClickEvent:f,children:e.jsx(L,{className:"h-6 w-6 rotate-180 fill-current"},"prev")}):e.jsx(v,{}),O.map(r=>e.jsx(v,{onClickEvent:()=>A(r),isDisable:t==r,children:r},r)),y?e.jsx(v,{onClickEvent:g,children:e.jsx(L,{className:"h-6 w-6 fill-current"},"prev")}):e.jsx(v,{})]})})}export{C as P};

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.