1import{j as e,r as h}from"./components-5FRlAwVN.js";import{p as x}from"./Header-CLeW4wUd.js";import{f as r}from"./constants-BFwIr2YJ.js";import{s as _}from"./FormBuilder-iq3ihBX7.js";const $=o=>{var i,t,l,d;const{slider:s,arrowIcon:c=o.arrowType==="chevron"?e.jsx(k,{}):e.jsx(N,{}),renderPageNum:m}=o,[g,v]=h.useState({totalSlide:0,selectedSlide:0}),[j,b]=h.useState(!0),{totalSlide:p,selectedSlide:u}=g,w=s==null?void 0:s.id;_(()=>{if(s){const a=()=>{v({totalSlide:s.totalSlide,selectedSlide:s.selectedSlide})},n=()=>{b(s.enable)};return s.on("slideChange",a),s.on("activeChange",n),a(),n(),()=>{s.off("slideChange",a),s.off("activeChange",n)}}},[w]);const f=s&&!s.config.loop&&s.isStart,S=s&&!s.config.loop&&s.isEnd;return e.jsx("div",{className:r("com-pagination-number",(i=o.classes)==null?void 0:i.root),children:j&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:r("com-pagination-number__arrow",{"com-pagination-number__arrow--disable":f},(t=o.classes)==null?void 0:t.arrow),onClick:()=>{var a;(a=o.slider)==null||a.slidePrev()},children:[c,e.jsx("span",{style:{opacity:0,position:"absolute"},children:"Â "})]}),e.jsx("div",{className:r("com-pagination-number__number",(l=o.classes)==null?void 0:l.number),children:m?m(u,p):e.jsxs(e.Fragment,{children:[e.jsx("b",{children:x(`${u+1}`,2,"0")})," ",`/${x(""+p,2,"0")}`]})}),e.jsxs("div",{className:r("com-pagination-number__arrow",{"com-pagination-number__arrow--disable":S},(d=o.classes)==null?void 0:d.arrow,"com-pagination-number--next"),onClick:()=>{var a;(a=o.slider)==null||a.slideNext()},children:[c,e.jsx("span",{style:{opacity:0,position:"absolute"},children:"Â "})]})]})})},N=()=>e.jsx("svg",{width:"48",height:"40",viewBox:"0 0 48 40",children:e.jsx("path",{d:"M37.379,12.552a2,2,0,0,0-2.758,2.9L49.963,30H10a2,2,0,0,0,0,4H49.9L34.621,48.552a2,2,0,1,0,2.758,2.9l17.449-16.62a4,4,0,0,0-.035-5.69Z",transform:"translate(56 52) rotate(180)",opacity:"0.45"})}),k=()=>e.jsx("div",{className:"com-pagination-number__arrow-round",children:e.jsx("svg",{width:"8",height:"11",viewBox:"0 0 8 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M6.526 10.0591L1 5.72192L6.526 1.38477",stroke:"black",strokeWidth:"1.40964",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.45"})})});export{$ as D};
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.