PageSourceSearch

https://portbris.com.au/o/frontend-js-clay-web/__liferay__/exports/@clayui$pagination-bar.js

js portbris.com.au collected 2026-10-02 04:43:20 UTC 5,613 bytes, 2 lines download raw bytes

1import{}from"../../../frontend-js-react-web/__liferay__/exports/classnames.js";import z from"../../../frontend-js-react-web/__liferay__/exports/classnames.js";var s=z;import{Children as te,Component as re,Fragment as oe,Profiler as ae,PureComponent as ie,StrictMode as ne,Suspense as se,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED as le,cloneElement as me,createContext as pe,createElement as ue,createFactory as fe,createRef as ge,forwardRef as ce,isValidElement as de,lazy as Pe,memo as _e,startTransition as be,unstable_act as Ie,useCallback as Ce,useContext as ye,useDebugValue as xe,useDeferredValue as Ee,useEffect as y,useId as he,useImperativeHandle as De,useInsertionEffect as Be,useLayoutEffect as ve,useMemo as Le,useReducer as Ne,useRef as Ae,useState as Te,useSyncExternalStore as Se,useTransition as Re,version as we}from"../../../frontend-js-react-web/__liferay__/exports/react.js";import K from"../../../frontend-js-react-web/__liferay__/exports/react.js";var e=K;import{Align as ke,DropDown as He,ClayDropDownWithItems as x,ClayDropDownWithDrilldown as Ve}from"../../../frontend-js-clay-web/__liferay__/exports/@clayui$drop-down.js";import Oe from"../../../frontend-js-clay-web/__liferay__/exports/@clayui$drop-down.js";function f({className:r,messages:t="Items Per Page",trigger:o,...a}){return e.createElement(x,{className:s(r,"pagination-items-per-page"),trigger:e.cloneElement(o,{"aria-label":t}),...a})}function g({children:r,className:t,...o}){return e.createElement("div",{...o,className:s(t,"pagination-results")},r)}var E=e.forwardRef(({children:r,className:t,size:o,...a},m)=>e.createElement("div",{className:s("pagination-bar",t,{[`pagination-${o}`]:o}),...a,ref:m},r));E.displayName="ClayPaginationBar";var l=Object.assign(E,{DropDown:f,Results:g});import{ClayButtonWithIcon as ot}from"../../../frontend-js-clay-web/__liferay__/exports/@clayui$button.js";import X from"../../../frontend-js-clay-web/__liferay__/exports/@clayui$button.js";var h=X;import{Body as nt,Button as st,ButtonWithIcon as lt,Cell as mt,FocusTrap as pt,Head as ut,Heading as ft,Icon as gt,IconSelector as ct,LanguagePicker as dt,Modal as Pt,ModalContext as _t,Nav as bt,Option as D,OverlayMask as It,Picker as B,Provider as Ct,Row as yt,SidePanel as xt,SidePanelWithDrilldown as Et,Table as ht,Text as Dt,TextHighlight as Bt,TreeView as vt,VerticalBar as Lt,VerticalNav as Nt,__EXPERIMENTAL_MENU as At,__NOT_PUBLIC_COLLECTION as Tt,__NOT_PUBLIC_LIVE_ANNOUNCER as St,useModal as Rt,useProvider as wt}from"../../../frontend-js-clay-web/__liferay__/exports/@clayui$core.js";import{ClayIconSpriteContext as Wt}from"../../../frontend-js-clay-web/__liferay__/exports/@clayui$icon.js";import Y from"../../../frontend-js-clay-web/__liferay__/exports/@clayui$icon.js";var v=Y;import{Ellipsis as jt,Item as zt,Pagination as Kt,ClayPaginationWithBasicItems as L}from"../../../frontend-js-clay-web/__liferay__/exports/@clayui$pagination.js";import Ht from"../../../frontend-js-clay-web/__liferay__/exports/@clayui$pagination.js";import{FocusScope as $t,Keys as qt,LinkOrButton as Gt,MouseSafeArea as Jt,Overlay as Qt,PanelResizer as Zt,ClayPortal as er,delegate as tr,doAlign as rr,getEllipsisItems as or,getLocatorValue as ar,observeRect as ir,isMac as nr,isIPhone as sr,isIPad as lr,isIOS as mr,isAppleDevice as pr,setElementFullHeight as ur,stack as fr,sub as c,throttle as gr,useControlledState as N,useDebounce as cr,useFocusManagement as dr,FOCUSABLE_ELEMENTS as Pr,useHover as _r,useId as A,useInteractionFocus as br,useFocusVisible as Ir,useIsFirstRender as Cr,useIsMobileDevice as yr,useMousePosition as xr,useNavigation as Er,isTypeahead as hr,getFocusableList as Dr,useOverlayPosition as Br,usePrevious as vr}from"../../../frontend-js-clay-web/__liferay__/exports/@clayui$shared.js";var $=[{label:10},{label:20},{label:30},{label:50}],T={itemsPerPagePickerAriaLabel:"Items Per Page",paginationResults:"Showing {0} to {1} of {2}",perPageItems:"{0} items",selectPerPageItems:"{0} items"},S=e.forwardRef(({activeDelta:r,labels:t,spritemap:o,...a},m)=>e.createElement(h,{...a,className:"dropdown-toggle",displayType:"unstyled",ref:m},c(t.perPageItems,[r]),e.createElement(v,{spritemap:o,symbol:"caret-double-l"})));S.displayName="Trigger";function R({active:r,activeDelta:t,activePage:o,alignmentPosition:a,defaultActive:m=1,deltas:P=$,disabledPages:M,disableEllipsis:O=!1,ellipsisBuffer:F,ellipsisProps:W,hrefConstructor:k,labels:i=T,onActiveChange:H,onDeltaChange:_,onPageChange:V,showDeltasDropDown:U=!0,spritemap:b,totalItems:n,...j}){n===0&&(n=1);let[p,I]=N({defaultName:"defaultActive",defaultValue:m,handleName:"onActiveChange",name:"value",onCh
1ange:H??V,value:typeof r>"u"?o:r});i={...T,...i},t||(t=P[0].label);let d=Math.ceil(n/t);y(()=>{p>d&&I(1)},[d]);let C=A();return e.createElement(l,{...j},U&&e.createElement("div",{className:"dropdown pagination-items-per-page"},e.createElement(B,{activeDelta:t,"aria-describedby":C,"aria-label":i.itemsPerPagePickerAriaLabel,as:S,items:P,labels:i,onSelectionChange:u=>{_&&_(Number(u))},selectedKey:String(t),spritemap:b},u=>e.createElement(D,{href:u.href,key:u.label},c(i.selectPerPageItems,[String(u.label)])))),e.createElement(l.Results,{id:C},c(i.paginationResults,[(p-1)*t+1,p*t<n?p*t:n,n])),e.createElement(L,{active:p,alignmentPosition:a,disableEllipsis:O,disabledPages:M,ellipsisBuffer:F,ellipsisProps:W,hrefConstructor:k,onActiveChange:I,spritemap:b,totalPages:d}))}var w=l;var zr=w;export{R as ClayPaginationBarWithBasicItems,f as DropDown,l as PaginationBar,g as Results,zr as default};
2//# sourceMappingURL=@clayui$pagination-bar.(R2KF7ZFQ).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.