@eliseubatista99/react-scaffold-core 0.1.53 → 0.1.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -112,7 +112,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
112
112
|
box-sizing: border-box;
|
|
113
113
|
display: flex;
|
|
114
114
|
}
|
|
115
|
-
`,aa=({styles:e,content:t,settings:r,gap:a=15})=>{const[i,s]=U.useState(1),c=U.useRef(null),u=U.useRef(null);var l={dots:!1,speed:500,slidesToScroll:1,infinite:!1,variableWidth:!0,arrows:!1,rows:1,...r};const h=t.map((x,j)=>K.jsx(ia,{ref:j===0?u:void 0,styles:{paddingRight:`${a}px`,overflow:"visible",...x.styles},"data-testid":"carousel-slide-item",children:x.content})),g=()=>{if(l.slidesToShow){s(l.slidesToShow);return}const x=(c.current?.offsetWidth||a+1)-a,j=u.current?.offsetWidth||1;let M=Math.floor(x/j);M<1?M=1:M>t.length&&(M=t.length),console.debug("Slides to show > ",{container:x,slide:j,res:M}),s(M)};return U.useEffect(()=>{g()},[c,u]),K.jsx(na,{ref:c,styles:{...e},children:K.jsx(oi,{...l,slidesToShow:i,children:h})})},oa=({checked:e,onToggle:t,styles:r,checkedStyles:a,customCheckedRender:i,customUncheckedRender:s})=>{const c=e?{...r,...a}:{...r};return K.jsxs("div",{onClick:()=>t?.(!e),style:{width:"25px",height:"25px",borderRadius:"4px",border:"1px solid #969696ff",background:e?"#000000":"#ffffff",overflow:"hidden",objectFit:"contain",alignItems:"center",justifyContent:"center",display:"flex",...c},children:[e&&i,!e&&s]})},sa=e=>U.useEffect(e,[]),Jr=()=>{const[e,t]=U.useState({}),[r,a]=U.useState(!1);return U.useEffect(()=>{const i=u=>{t({x:u.clientX,y:u.clientY})},s=u=>{a(!0)},c=u=>{a(!1)};return window.addEventListener("pointermove",i),window.addEventListener("pointerdown",s),window.addEventListener("pointerup",c),()=>{window.removeEventListener("pointermove",i),window.removeEventListener("pointerdown",s),window.removeEventListener("pointerup",c)}},[]),{pointerPosition:e,isPointerDown:r}},Zr=({ref:e,onDrag:t,onDragStart:r,onDragEnd:a})=>{const i=U.useRef(!1),s=U.useRef(!1),{pointerPosition:c,isPointerDown:u}=Jr(),l=U.useRef({isDragging:!1}),h=U.useCallback(E=>{if(!e||!e.current||!l.current)return;const p={...l.current};return p.posY=E.y,p.posX=E.x,l.current.startPosX&&l.current.posX&&(p.distanceX=l.current.startPosX-l.current.posX),l.current.startPosY&&l.current.posY&&(p.distanceY=-(l.current.startPosY-l.current.posY)),p},[]),g=U.useCallback(E=>{E.preventDefault(),E.stopPropagation(),l.current.isDragging=!0,l.current.startPosY=E.clientY,l.current.startPosX=E.clientX;const p=h({x:E.clientX,y:E.clientY});p&&(l.current=p,r?.(p))},[h]),x=U.useCallback(E=>{l.current.isDragging=!1;const p=h(c);p&&(a?.(p),p.startPosX=void 0,p.startPosY=void 0,l.current=p)},[h,c]),j=U.useCallback(E=>{if(console.debug("useDrag > onPointerMove > Is Dragging >",l.current.isDragging),!l.current.isDragging)return;const p=h(c);console.debug("useDrag > onPointerMove > Drag Result >",p),p&&(t?.(p),l.current=p)},[h,c]),M=U.useCallback(async()=>{if(!i.current){for(;!e?.current;)await new Promise(E=>setTimeout(E,300));i.current=!0,e.current.onpointerdown=g,e.current.style.touchAction="none"}},[e?.current,g]);U.useEffect(()=>{M()},[M]),U.useEffect(()=>{j()},[c]),U.useEffect(()=>{u!==s.current&&(s.current=u,u||x())},[u,s.current])},la=()=>{const e=(u,l)=>{let h=0,g=`${u}`;for(const x in l){h===0&&(g=`${g}?`);const j=l[x];h>0&&(g=`${g}&`),g=`${g}${x}=${j}`,h++}return g},t=async(u,l,h,g)=>{const x=e(u,g);return await(await fetch(x,{method:l,headers:h})).json()};return{get:async(u,l)=>t(u,"GET",{},l),post:async(u,l)=>t(u,"POST",{"Content-Type":"application/json"},l),put:async(u,l)=>t(u,"PUT",{"Content-Type":"application/json"},l),patch:async(u,l)=>t(u,"PATCH",{"Content-Type":"application/json"},l),delete:async(u,l)=>t(u,"DELETE",{},l)}};var ut={exports:{}},ua=ut.exports,Cr;function ca(){return Cr||(Cr=1,function(e,t){(function(r,a){e.exports=a()})(ua,function(){var r=1e3,a=6e4,i=36e5,s="millisecond",c="second",u="minute",l="hour",h="day",g="week",x="month",j="quarter",M="year",E="date",p="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var O=["th","st","nd","rd"],_=R%100;return"["+R+(O[(_-20)%10]||O[_]||O[0])+"]"}},Y=function(R,O,_){var o=String(R);return!o||o.length>=O?R:""+Array(O+1-o.length).join(_)+R},V={s:Y,z:function(R){var O=-R.utcOffset(),_=Math.abs(O),o=Math.floor(_/60),H=_%60;return(O<=0?"+":"-")+Y(o,2,"0")+":"+Y(H,2,"0")},m:function R(O,_){if(O.date()<_.date())return-R(_,O);var o=12*(_.year()-O.year())+(_.month()-O.month()),H=O.clone().add(o,x),m=_-H<0,n=O.clone().add(o+(m?-1:1),x);return+(-(o+(_-H)/(m?H-n:n-H))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:x,y:M,w:g,d:h,D:E,h:l,m:u,s:c,ms:s,Q:j}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},v="en",b={};b[v]=F;var w="$isDayjsObject",P=function(R){return R instanceof A||!(!R||!R[w])},y=function R(O,_,o){var H;if(!O)return v;if(typeof O=="string"){var m=O.toLowerCase();b[m]&&(H=m),_&&(b[m]=_,H=m);var n=O.split("-");if(!H&&n.length>1)return R(n[0])}else{var f=O.name;b[f]=O,H=f}return!o&&H&&(v=H),H||!o&&v},d=function(R,O){if(P(R))return R.clone();var _=typeof O=="object"?O:{};return _.date=R,_.args=arguments,new A(_)},k=V;k.l=y,k.i=P,k.w=function(R,O){return d(R,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var A=function(){function R(_){this.$L=y(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[w]=!0}var O=R.prototype;return O.parse=function(_){this.$d=function(o){var H=o.date,m=o.utc;if(H===null)return new Date(NaN);if(k.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var n=H.match(I);if(n){var f=n[2]-1||0,S=(n[7]||"0").substring(0,3);return m?new Date(Date.UTC(n[1],f,n[3]||1,n[4]||0,n[5]||0,n[6]||0,S)):new Date(n[1],f,n[3]||1,n[4]||0,n[5]||0,n[6]||0,S)}}return new Date(H)}(_),this.init()},O.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},O.$utils=function(){return k},O.isValid=function(){return this.$d.toString()!==p},O.isSame=function(_,o){var H=d(_);return this.startOf(o)<=H&&H<=this.endOf(o)},O.isAfter=function(_,o){return d(_)<this.startOf(o)},O.isBefore=function(_,o){return this.endOf(o)<d(_)},O.$g=function(_,o,H){return k.u(_)?this[o]:this.set(H,_)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(_,o){var H=this,m=!!k.u(o)||o,n=k.p(_),f=function(G,X){var J=k.w(H.$u?Date.UTC(H.$y,X,G):new Date(H.$y,X,G),H);return m?J:J.endOf(h)},S=function(G,X){return k.w(H.toDate()[G].apply(H.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(X)),H)},$=this.$W,L=this.$M,z=this.$D,N="set"+(this.$u?"UTC":"");switch(n){case M:return m?f(1,0):f(31,11);case x:return m?f(1,L):f(0,L+1);case g:var W=this.$locale().weekStart||0,B=($<W?$+7:$)-W;return f(m?z-B:z+(6-B),L);case h:case E:return S(N+"Hours",0);case l:return S(N+"Minutes",1);case u:return S(N+"Seconds",2);case c:return S(N+"Milliseconds",3);default:return this.clone()}},O.endOf=function(_){return this.startOf(_,!1)},O.$set=function(_,o){var H,m=k.p(_),n="set"+(this.$u?"UTC":""),f=(H={},H[h]=n+"Date",H[E]=n+"Date",H[x]=n+"Month",H[M]=n+"FullYear",H[l]=n+"Hours",H[u]=n+"Minutes",H[c]=n+"Seconds",H[s]=n+"Milliseconds",H)[m],S=m===h?this.$D+(o-this.$W):o;if(m===x||m===M){var $=this.clone().set(E,1);$.$d[f](S),$.init(),this.$d=$.set(E,Math.min(this.$D,$.daysInMonth())).$d}else f&&this.$d[f](S);return this.init(),this},O.set=function(_,o){return this.clone().$set(_,o)},O.get=function(_){return this[k.p(_)]()},O.add=function(_,o){var H,m=this;_=Number(_);var n=k.p(o),f=function(L){var z=d(m);return k.w(z.date(z.date()+Math.round(L*_)),m)};if(n===x)return this.set(x,this.$M+_);if(n===M)return this.set(M,this.$y+_);if(n===h)return f(1);if(n===g)return f(7);var S=(H={},H[u]=a,H[l]=i,H[c]=r,H)[n]||1,$=this.$d.getTime()+_*S;return k.w($,this)},O.subtract=function(_,o){return this.add(-1*_,o)},O.format=function(_){var o=this,H=this.$locale();if(!this.isValid())return H.invalidDate||p;var m=_||"YYYY-MM-DDTHH:mm:ssZ",n=k.z(this),f=this.$H,S=this.$m,$=this.$M,L=H.weekdays,z=H.months,N=H.meridiem,W=function(X,J,te,Z){return X&&(X[J]||X(o,m))||te[J].slice(0,Z)},B=function(X){return k.s(f%12||12,X,"0")},G=N||function(X,J,te){var Z=X<12?"AM":"PM";return te?Z.toLowerCase():Z};return m.replace(C,function(X,J){return J||function(te){switch(te){case"YY":return String(o.$y).slice(-2);case"YYYY":return k.s(o.$y,4,"0");case"M":return $+1;case"MM":return k.s($+1,2,"0");case"MMM":return W(H.monthsShort,$,z,3);case"MMMM":return W(z,$);case"D":return o.$D;case"DD":return k.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return W(H.weekdaysMin,o.$W,L,2);case"ddd":return W(H.weekdaysShort,o.$W,L,3);case"dddd":return L[o.$W];case"H":return String(f);case"HH":return k.s(f,2,"0");case"h":return B(1);case"hh":return B(2);case"a":return G(f,S,!0);case"A":return G(f,S,!1);case"m":return String(S);case"mm":return k.s(S,2,"0");case"s":return String(o.$s);case"ss":return k.s(o.$s,2,"0");case"SSS":return k.s(o.$ms,3,"0");case"Z":return n}return null}(X)||n.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(_,o,H){var m,n=this,f=k.p(o),S=d(_),$=(S.utcOffset()-this.utcOffset())*a,L=this-S,z=function(){return k.m(n,S)};switch(f){case M:m=z()/12;break;case x:m=z();break;case j:m=z()/3;break;case g:m=(L-$)/6048e5;break;case h:m=(L-$)/864e5;break;case l:m=L/i;break;case u:m=L/a;break;case c:m=L/r;break;default:m=L}return H?m:k.a(m)},O.daysInMonth=function(){return this.endOf(x).$D},O.$locale=function(){return b[this.$L]},O.locale=function(_,o){if(!_)return this.$L;var H=this.clone(),m=y(_,o,!0);return m&&(H.$L=m),H},O.clone=function(){return k.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},R}(),T=A.prototype;return d.prototype=T,[["$ms",s],["$s",c],["$m",u],["$H",l],["$W",h],["$M",x],["$y",M],["$D",E]].forEach(function(R){T[R[1]]=function(O){return this.$g(O,R[0],R[1])}}),d.extend=function(R,O){return R.$i||(R(O,A,d),R.$i=!0),d},d.locale=y,d.isDayjs=P,d.unix=function(R){return d(1e3*R)},d.en=b[v],d.Ls=b,d.p={},d})}(ut)),ut.exports}var fa=ca();const ct=Ut(fa);var ft={exports:{}},da=ft.exports,Pr;function ha(){return Pr||(Pr=1,function(e,t){(function(r,a){e.exports=a()})(da,function(){var r="minute",a=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(s,c,u){var l=c.prototype;u.utc=function(p){var I={date:p,utc:!0,args:arguments};return new c(I)},l.utc=function(p){var I=u(this.toDate(),{locale:this.$L,utc:!0});return p?I.add(this.utcOffset(),r):I},l.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var h=l.parse;l.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),h.call(this,p)};var g=l.init;l.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else g.call(this)};var x=l.utcOffset;l.utcOffset=function(p,I){var C=this.$utils().u;if(C(p))return this.$u?0:C(this.$offset)?x.call(this):this.$offset;if(typeof p=="string"&&(p=function(v){v===void 0&&(v="");var b=v.match(a);if(!b)return null;var w=(""+b[0]).match(i)||["-",0,0],P=w[0],y=60*+w[1]+ +w[2];return y===0?0:P==="+"?y:-y}(p),p===null))return this;var F=Math.abs(p)<=16?60*p:p;if(F===0)return this.utc(I);var Y=this.clone();if(I)return Y.$offset=F,Y.$u=!1,Y;var V=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(Y=this.local().add(F+V,r)).$offset=F,Y.$x.$localOffset=V,Y};var j=l.format;l.format=function(p){var I=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return j.call(this,I)},l.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var M=l.toDate;l.toDate=function(p){return p==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():M.call(this)};var E=l.diff;l.diff=function(p,I,C){if(p&&this.$u===p.$u)return E.call(this,p,I,C);var F=this.local(),Y=u(p).local();return E.call(F,Y,I,C)}}})}(ft)),ft.exports}var pa=ha();const ma=Ut(pa);ct.extend(ma);class Qr{static waitForMilliseconds=t=>new Promise(r=>setTimeout(r,t));static waitForCondition=t=>new Promise(r=>{const a=()=>{t()?r():setTimeout(a,100)};a()});static waitForAsyncCondition=t=>new Promise(r=>{const a=async()=>{await t()?r():setTimeout(a,100)};a()});static differenceInMonths=(t,r)=>{let a=0;return a=(r.getFullYear()-t.getFullYear())*12,a-=t.getMonth(),a+=r.getMonth(),a};static isDateOneAfterDateTwo=(t,r)=>t.getFullYear()>=r.getFullYear()&&t.getMonth()>=r.getMonth()?t.getDay()>r.getDay():!1;static getDateInUTC=t=>{try{const r=ct.utc(t),a=r.date(),i=r.month(),s=r.year(),c=r.hour(),u=r.minute(),l=r.day();return{day:a,month:i,year:s,hour:c,minute:u,weekday:l}}catch{return}};static formatDateLocalTime=(t,r)=>t?ct.utc(t).local().format(r||"DD/MM/YYYYㆍHH:mm"):"";static formatDateUTC=(t,r)=>t?ct.utc(t).format(r||"DD/MM/YYYYㆍHH:mm"):""}const va=(e,t=0)=>{const r=U.useRef(0),[a,i]=U.useState(0),s=U.useRef(null),[c,u]=U.useState(!1),l=U.useCallback(()=>{u(x=>!x)},[]),h=U.useCallback(()=>r.current===0?!1:a>=r.current-t,[t,a]),g=U.useCallback(()=>e.current!==null&&e.current!==void 0,[e]);return U.useEffect(()=>{const x=()=>{if(!e.current)return;const M=e.current.scrollHeight-e.current.clientHeight;r.current=M,i(e.current.scrollTop)};return(async()=>{await Qr.waitForCondition(g),s.current=e.current,s.current?.addEventListener("scroll",x)})(),()=>{s.current?.removeEventListener("scroll",x)}},[e,r,i,a,g,c]),{isTouchingBottom:h(),refresh:l}},en={xs:0,sm:420,md:768,lg:991,xl:1200,xxl:1440},ga=e=>{const t={...en,...e?.breakpointConfiguration},[r,a]=U.useState(Er(t)),i=()=>{a(Er(t))};return U.useEffect(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[]),U.useMemo(()=>r,[r])},ya=(e,t)=>e<t.sm?"xs":e<t.md?"sm":e<t.lg?"md":e<t.xl?"lg":e<t.xxl?"xl":"xxl",ba=(e,t)=>e<=t.sm?"mobile":e<=t.md?"tablet":"desktop",Er=e=>{const t=window.innerWidth,r=window.innerHeight,a=ya(t,e),i=ba(t,e);return{currentWidth:t,currentHeight:r,currentBreakpoint:a,currentSize:i}},wa=e=>{const t=e.translations,r=e.language,a=(s,c)=>{if(!s)return;let u=s[r];if(u)return c&&Object.keys(c).forEach(l=>{const h=c[l];u=u.replaceAll(`{{${l}}}`,`${h}`)}),u};return{t:(s,c)=>{if(t[s]){const u=a(t[s],c);return u??s}return s},getTranslation:a}};var Ue={},Tr;function Sa(){if(Tr)return Ue;Tr=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.parse=c,Ue.serialize=h;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,s=(()=>{const j=function(){};return j.prototype=Object.create(null),j})();function c(j,M){const E=new s,p=j.length;if(p<2)return E;const I=M?.decode||g;let C=0;do{const F=j.indexOf("=",C);if(F===-1)break;const Y=j.indexOf(";",C),V=Y===-1?p:Y;if(F>V){C=j.lastIndexOf(";",F-1)+1;continue}const v=u(j,C,F),b=l(j,F,v),w=j.slice(v,b);if(E[w]===void 0){let P=u(j,F+1,V),y=l(j,V,P);const d=I(j.slice(P,y));E[w]=d}C=V+1}while(C<p);return E}function u(j,M,E){do{const p=j.charCodeAt(M);if(p!==32&&p!==9)return M}while(++M<E);return E}function l(j,M,E){for(;M>E;){const p=j.charCodeAt(--M);if(p!==32&&p!==9)return M+1}return E}function h(j,M,E){const p=E?.encode||encodeURIComponent;if(!e.test(j))throw new TypeError(`argument name is invalid: ${j}`);const I=p(M);if(!t.test(I))throw new TypeError(`argument val is invalid: ${M}`);let C=j+"="+I;if(!E)return C;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);C+="; Max-Age="+E.maxAge}if(E.domain){if(!r.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);C+="; Domain="+E.domain}if(E.path){if(!a.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);C+="; Path="+E.path}if(E.expires){if(!x(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);C+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(C+="; HttpOnly"),E.secure&&(C+="; Secure"),E.partitioned&&(C+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":C+="; Priority=Low";break;case"medium":C+="; Priority=Medium";break;case"high":C+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${E.priority}`)}if(E.sameSite)switch(typeof E.sameSite=="string"?E.sameSite.toLowerCase():E.sameSite){case!0:case"strict":C+="; SameSite=Strict";break;case"lax":C+="; SameSite=Lax";break;case"none":C+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return C}function g(j){if(j.indexOf("%")===-1)return j;try{return decodeURIComponent(j)}catch{return j}}function x(j){return i.call(j)==="[object Date]"}return Ue}Sa();/**
|
|
115
|
+
`,aa=({styles:e,content:t,settings:r,gap:a=15})=>{const[i,s]=U.useState(1),c=U.useRef(null),u=U.useRef(null);var l={dots:!1,speed:500,slidesToScroll:1,infinite:!1,variableWidth:!0,arrows:!1,rows:1,...r};const h=t.map((x,j)=>K.jsx(ia,{ref:j===0?u:void 0,styles:{paddingRight:`${a}px`,overflow:"visible",...x.styles},"data-testid":"carousel-slide-item",children:x.content})),g=()=>{if(l.slidesToShow){s(l.slidesToShow);return}const x=(c.current?.offsetWidth||a+1)-a,j=u.current?.offsetWidth||1;let M=Math.floor(x/j);M<1?M=1:M>t.length&&(M=t.length),console.debug("Slides to show > ",{container:x,slide:j,res:M}),s(M)};return U.useEffect(()=>{g()},[c,u]),K.jsx(na,{ref:c,styles:{...e},children:h.length>0&&K.jsx(oi,{...l,slidesToShow:i,children:h})})},oa=({checked:e,onToggle:t,styles:r,checkedStyles:a,customCheckedRender:i,customUncheckedRender:s})=>{const c=e?{...r,...a}:{...r};return K.jsxs("div",{onClick:()=>t?.(!e),style:{width:"25px",height:"25px",borderRadius:"4px",border:"1px solid #969696ff",background:e?"#000000":"#ffffff",overflow:"hidden",objectFit:"contain",alignItems:"center",justifyContent:"center",display:"flex",...c},children:[e&&i,!e&&s]})},sa=e=>U.useEffect(e,[]),Jr=()=>{const[e,t]=U.useState({}),[r,a]=U.useState(!1);return U.useEffect(()=>{const i=u=>{t({x:u.clientX,y:u.clientY})},s=u=>{a(!0)},c=u=>{a(!1)};return window.addEventListener("pointermove",i),window.addEventListener("pointerdown",s),window.addEventListener("pointerup",c),()=>{window.removeEventListener("pointermove",i),window.removeEventListener("pointerdown",s),window.removeEventListener("pointerup",c)}},[]),{pointerPosition:e,isPointerDown:r}},Zr=({ref:e,onDrag:t,onDragStart:r,onDragEnd:a})=>{const i=U.useRef(!1),s=U.useRef(!1),{pointerPosition:c,isPointerDown:u}=Jr(),l=U.useRef({isDragging:!1}),h=U.useCallback(E=>{if(!e||!e.current||!l.current)return;const p={...l.current};return p.posY=E.y,p.posX=E.x,l.current.startPosX&&l.current.posX&&(p.distanceX=l.current.startPosX-l.current.posX),l.current.startPosY&&l.current.posY&&(p.distanceY=-(l.current.startPosY-l.current.posY)),p},[]),g=U.useCallback(E=>{E.preventDefault(),E.stopPropagation(),l.current.isDragging=!0,l.current.startPosY=E.clientY,l.current.startPosX=E.clientX;const p=h({x:E.clientX,y:E.clientY});p&&(l.current=p,r?.(p))},[h]),x=U.useCallback(E=>{l.current.isDragging=!1;const p=h(c);p&&(a?.(p),p.startPosX=void 0,p.startPosY=void 0,l.current=p)},[h,c]),j=U.useCallback(E=>{if(console.debug("useDrag > onPointerMove > Is Dragging >",l.current.isDragging),!l.current.isDragging)return;const p=h(c);console.debug("useDrag > onPointerMove > Drag Result >",p),p&&(t?.(p),l.current=p)},[h,c]),M=U.useCallback(async()=>{if(!i.current){for(;!e?.current;)await new Promise(E=>setTimeout(E,300));i.current=!0,e.current.onpointerdown=g,e.current.style.touchAction="none"}},[e?.current,g]);U.useEffect(()=>{M()},[M]),U.useEffect(()=>{j()},[c]),U.useEffect(()=>{u!==s.current&&(s.current=u,u||x())},[u,s.current])},la=()=>{const e=(u,l)=>{let h=0,g=`${u}`;for(const x in l){h===0&&(g=`${g}?`);const j=l[x];h>0&&(g=`${g}&`),g=`${g}${x}=${j}`,h++}return g},t=async(u,l,h,g)=>{const x=e(u,g);return await(await fetch(x,{method:l,headers:h})).json()};return{get:async(u,l)=>t(u,"GET",{},l),post:async(u,l)=>t(u,"POST",{"Content-Type":"application/json"},l),put:async(u,l)=>t(u,"PUT",{"Content-Type":"application/json"},l),patch:async(u,l)=>t(u,"PATCH",{"Content-Type":"application/json"},l),delete:async(u,l)=>t(u,"DELETE",{},l)}};var ut={exports:{}},ua=ut.exports,Cr;function ca(){return Cr||(Cr=1,function(e,t){(function(r,a){e.exports=a()})(ua,function(){var r=1e3,a=6e4,i=36e5,s="millisecond",c="second",u="minute",l="hour",h="day",g="week",x="month",j="quarter",M="year",E="date",p="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var O=["th","st","nd","rd"],_=R%100;return"["+R+(O[(_-20)%10]||O[_]||O[0])+"]"}},Y=function(R,O,_){var o=String(R);return!o||o.length>=O?R:""+Array(O+1-o.length).join(_)+R},V={s:Y,z:function(R){var O=-R.utcOffset(),_=Math.abs(O),o=Math.floor(_/60),H=_%60;return(O<=0?"+":"-")+Y(o,2,"0")+":"+Y(H,2,"0")},m:function R(O,_){if(O.date()<_.date())return-R(_,O);var o=12*(_.year()-O.year())+(_.month()-O.month()),H=O.clone().add(o,x),m=_-H<0,n=O.clone().add(o+(m?-1:1),x);return+(-(o+(_-H)/(m?H-n:n-H))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:x,y:M,w:g,d:h,D:E,h:l,m:u,s:c,ms:s,Q:j}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},v="en",b={};b[v]=F;var w="$isDayjsObject",P=function(R){return R instanceof A||!(!R||!R[w])},y=function R(O,_,o){var H;if(!O)return v;if(typeof O=="string"){var m=O.toLowerCase();b[m]&&(H=m),_&&(b[m]=_,H=m);var n=O.split("-");if(!H&&n.length>1)return R(n[0])}else{var f=O.name;b[f]=O,H=f}return!o&&H&&(v=H),H||!o&&v},d=function(R,O){if(P(R))return R.clone();var _=typeof O=="object"?O:{};return _.date=R,_.args=arguments,new A(_)},k=V;k.l=y,k.i=P,k.w=function(R,O){return d(R,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var A=function(){function R(_){this.$L=y(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[w]=!0}var O=R.prototype;return O.parse=function(_){this.$d=function(o){var H=o.date,m=o.utc;if(H===null)return new Date(NaN);if(k.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var n=H.match(I);if(n){var f=n[2]-1||0,S=(n[7]||"0").substring(0,3);return m?new Date(Date.UTC(n[1],f,n[3]||1,n[4]||0,n[5]||0,n[6]||0,S)):new Date(n[1],f,n[3]||1,n[4]||0,n[5]||0,n[6]||0,S)}}return new Date(H)}(_),this.init()},O.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},O.$utils=function(){return k},O.isValid=function(){return this.$d.toString()!==p},O.isSame=function(_,o){var H=d(_);return this.startOf(o)<=H&&H<=this.endOf(o)},O.isAfter=function(_,o){return d(_)<this.startOf(o)},O.isBefore=function(_,o){return this.endOf(o)<d(_)},O.$g=function(_,o,H){return k.u(_)?this[o]:this.set(H,_)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(_,o){var H=this,m=!!k.u(o)||o,n=k.p(_),f=function(G,X){var J=k.w(H.$u?Date.UTC(H.$y,X,G):new Date(H.$y,X,G),H);return m?J:J.endOf(h)},S=function(G,X){return k.w(H.toDate()[G].apply(H.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(X)),H)},$=this.$W,L=this.$M,z=this.$D,N="set"+(this.$u?"UTC":"");switch(n){case M:return m?f(1,0):f(31,11);case x:return m?f(1,L):f(0,L+1);case g:var W=this.$locale().weekStart||0,B=($<W?$+7:$)-W;return f(m?z-B:z+(6-B),L);case h:case E:return S(N+"Hours",0);case l:return S(N+"Minutes",1);case u:return S(N+"Seconds",2);case c:return S(N+"Milliseconds",3);default:return this.clone()}},O.endOf=function(_){return this.startOf(_,!1)},O.$set=function(_,o){var H,m=k.p(_),n="set"+(this.$u?"UTC":""),f=(H={},H[h]=n+"Date",H[E]=n+"Date",H[x]=n+"Month",H[M]=n+"FullYear",H[l]=n+"Hours",H[u]=n+"Minutes",H[c]=n+"Seconds",H[s]=n+"Milliseconds",H)[m],S=m===h?this.$D+(o-this.$W):o;if(m===x||m===M){var $=this.clone().set(E,1);$.$d[f](S),$.init(),this.$d=$.set(E,Math.min(this.$D,$.daysInMonth())).$d}else f&&this.$d[f](S);return this.init(),this},O.set=function(_,o){return this.clone().$set(_,o)},O.get=function(_){return this[k.p(_)]()},O.add=function(_,o){var H,m=this;_=Number(_);var n=k.p(o),f=function(L){var z=d(m);return k.w(z.date(z.date()+Math.round(L*_)),m)};if(n===x)return this.set(x,this.$M+_);if(n===M)return this.set(M,this.$y+_);if(n===h)return f(1);if(n===g)return f(7);var S=(H={},H[u]=a,H[l]=i,H[c]=r,H)[n]||1,$=this.$d.getTime()+_*S;return k.w($,this)},O.subtract=function(_,o){return this.add(-1*_,o)},O.format=function(_){var o=this,H=this.$locale();if(!this.isValid())return H.invalidDate||p;var m=_||"YYYY-MM-DDTHH:mm:ssZ",n=k.z(this),f=this.$H,S=this.$m,$=this.$M,L=H.weekdays,z=H.months,N=H.meridiem,W=function(X,J,te,Z){return X&&(X[J]||X(o,m))||te[J].slice(0,Z)},B=function(X){return k.s(f%12||12,X,"0")},G=N||function(X,J,te){var Z=X<12?"AM":"PM";return te?Z.toLowerCase():Z};return m.replace(C,function(X,J){return J||function(te){switch(te){case"YY":return String(o.$y).slice(-2);case"YYYY":return k.s(o.$y,4,"0");case"M":return $+1;case"MM":return k.s($+1,2,"0");case"MMM":return W(H.monthsShort,$,z,3);case"MMMM":return W(z,$);case"D":return o.$D;case"DD":return k.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return W(H.weekdaysMin,o.$W,L,2);case"ddd":return W(H.weekdaysShort,o.$W,L,3);case"dddd":return L[o.$W];case"H":return String(f);case"HH":return k.s(f,2,"0");case"h":return B(1);case"hh":return B(2);case"a":return G(f,S,!0);case"A":return G(f,S,!1);case"m":return String(S);case"mm":return k.s(S,2,"0");case"s":return String(o.$s);case"ss":return k.s(o.$s,2,"0");case"SSS":return k.s(o.$ms,3,"0");case"Z":return n}return null}(X)||n.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(_,o,H){var m,n=this,f=k.p(o),S=d(_),$=(S.utcOffset()-this.utcOffset())*a,L=this-S,z=function(){return k.m(n,S)};switch(f){case M:m=z()/12;break;case x:m=z();break;case j:m=z()/3;break;case g:m=(L-$)/6048e5;break;case h:m=(L-$)/864e5;break;case l:m=L/i;break;case u:m=L/a;break;case c:m=L/r;break;default:m=L}return H?m:k.a(m)},O.daysInMonth=function(){return this.endOf(x).$D},O.$locale=function(){return b[this.$L]},O.locale=function(_,o){if(!_)return this.$L;var H=this.clone(),m=y(_,o,!0);return m&&(H.$L=m),H},O.clone=function(){return k.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},R}(),T=A.prototype;return d.prototype=T,[["$ms",s],["$s",c],["$m",u],["$H",l],["$W",h],["$M",x],["$y",M],["$D",E]].forEach(function(R){T[R[1]]=function(O){return this.$g(O,R[0],R[1])}}),d.extend=function(R,O){return R.$i||(R(O,A,d),R.$i=!0),d},d.locale=y,d.isDayjs=P,d.unix=function(R){return d(1e3*R)},d.en=b[v],d.Ls=b,d.p={},d})}(ut)),ut.exports}var fa=ca();const ct=Ut(fa);var ft={exports:{}},da=ft.exports,Pr;function ha(){return Pr||(Pr=1,function(e,t){(function(r,a){e.exports=a()})(da,function(){var r="minute",a=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(s,c,u){var l=c.prototype;u.utc=function(p){var I={date:p,utc:!0,args:arguments};return new c(I)},l.utc=function(p){var I=u(this.toDate(),{locale:this.$L,utc:!0});return p?I.add(this.utcOffset(),r):I},l.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var h=l.parse;l.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),h.call(this,p)};var g=l.init;l.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else g.call(this)};var x=l.utcOffset;l.utcOffset=function(p,I){var C=this.$utils().u;if(C(p))return this.$u?0:C(this.$offset)?x.call(this):this.$offset;if(typeof p=="string"&&(p=function(v){v===void 0&&(v="");var b=v.match(a);if(!b)return null;var w=(""+b[0]).match(i)||["-",0,0],P=w[0],y=60*+w[1]+ +w[2];return y===0?0:P==="+"?y:-y}(p),p===null))return this;var F=Math.abs(p)<=16?60*p:p;if(F===0)return this.utc(I);var Y=this.clone();if(I)return Y.$offset=F,Y.$u=!1,Y;var V=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(Y=this.local().add(F+V,r)).$offset=F,Y.$x.$localOffset=V,Y};var j=l.format;l.format=function(p){var I=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return j.call(this,I)},l.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var M=l.toDate;l.toDate=function(p){return p==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():M.call(this)};var E=l.diff;l.diff=function(p,I,C){if(p&&this.$u===p.$u)return E.call(this,p,I,C);var F=this.local(),Y=u(p).local();return E.call(F,Y,I,C)}}})}(ft)),ft.exports}var pa=ha();const ma=Ut(pa);ct.extend(ma);class Qr{static waitForMilliseconds=t=>new Promise(r=>setTimeout(r,t));static waitForCondition=t=>new Promise(r=>{const a=()=>{t()?r():setTimeout(a,100)};a()});static waitForAsyncCondition=t=>new Promise(r=>{const a=async()=>{await t()?r():setTimeout(a,100)};a()});static differenceInMonths=(t,r)=>{let a=0;return a=(r.getFullYear()-t.getFullYear())*12,a-=t.getMonth(),a+=r.getMonth(),a};static isDateOneAfterDateTwo=(t,r)=>t.getFullYear()>=r.getFullYear()&&t.getMonth()>=r.getMonth()?t.getDay()>r.getDay():!1;static getDateInUTC=t=>{try{const r=ct.utc(t),a=r.date(),i=r.month(),s=r.year(),c=r.hour(),u=r.minute(),l=r.day();return{day:a,month:i,year:s,hour:c,minute:u,weekday:l}}catch{return}};static formatDateLocalTime=(t,r)=>t?ct.utc(t).local().format(r||"DD/MM/YYYYㆍHH:mm"):"";static formatDateUTC=(t,r)=>t?ct.utc(t).format(r||"DD/MM/YYYYㆍHH:mm"):""}const va=(e,t=0)=>{const r=U.useRef(0),[a,i]=U.useState(0),s=U.useRef(null),[c,u]=U.useState(!1),l=U.useCallback(()=>{u(x=>!x)},[]),h=U.useCallback(()=>r.current===0?!1:a>=r.current-t,[t,a]),g=U.useCallback(()=>e.current!==null&&e.current!==void 0,[e]);return U.useEffect(()=>{const x=()=>{if(!e.current)return;const M=e.current.scrollHeight-e.current.clientHeight;r.current=M,i(e.current.scrollTop)};return(async()=>{await Qr.waitForCondition(g),s.current=e.current,s.current?.addEventListener("scroll",x)})(),()=>{s.current?.removeEventListener("scroll",x)}},[e,r,i,a,g,c]),{isTouchingBottom:h(),refresh:l}},en={xs:0,sm:420,md:768,lg:991,xl:1200,xxl:1440},ga=e=>{const t={...en,...e?.breakpointConfiguration},[r,a]=U.useState(Er(t)),i=()=>{a(Er(t))};return U.useEffect(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[]),U.useMemo(()=>r,[r])},ya=(e,t)=>e<t.sm?"xs":e<t.md?"sm":e<t.lg?"md":e<t.xl?"lg":e<t.xxl?"xl":"xxl",ba=(e,t)=>e<=t.sm?"mobile":e<=t.md?"tablet":"desktop",Er=e=>{const t=window.innerWidth,r=window.innerHeight,a=ya(t,e),i=ba(t,e);return{currentWidth:t,currentHeight:r,currentBreakpoint:a,currentSize:i}},wa=e=>{const t=e.translations,r=e.language,a=(s,c)=>{if(!s)return;let u=s[r];if(u)return c&&Object.keys(c).forEach(l=>{const h=c[l];u=u.replaceAll(`{{${l}}}`,`${h}`)}),u};return{t:(s,c)=>{if(t[s]){const u=a(t[s],c);return u??s}return s},getTranslation:a}};var Ue={},Tr;function Sa(){if(Tr)return Ue;Tr=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.parse=c,Ue.serialize=h;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,s=(()=>{const j=function(){};return j.prototype=Object.create(null),j})();function c(j,M){const E=new s,p=j.length;if(p<2)return E;const I=M?.decode||g;let C=0;do{const F=j.indexOf("=",C);if(F===-1)break;const Y=j.indexOf(";",C),V=Y===-1?p:Y;if(F>V){C=j.lastIndexOf(";",F-1)+1;continue}const v=u(j,C,F),b=l(j,F,v),w=j.slice(v,b);if(E[w]===void 0){let P=u(j,F+1,V),y=l(j,V,P);const d=I(j.slice(P,y));E[w]=d}C=V+1}while(C<p);return E}function u(j,M,E){do{const p=j.charCodeAt(M);if(p!==32&&p!==9)return M}while(++M<E);return E}function l(j,M,E){for(;M>E;){const p=j.charCodeAt(--M);if(p!==32&&p!==9)return M+1}return E}function h(j,M,E){const p=E?.encode||encodeURIComponent;if(!e.test(j))throw new TypeError(`argument name is invalid: ${j}`);const I=p(M);if(!t.test(I))throw new TypeError(`argument val is invalid: ${M}`);let C=j+"="+I;if(!E)return C;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);C+="; Max-Age="+E.maxAge}if(E.domain){if(!r.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);C+="; Domain="+E.domain}if(E.path){if(!a.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);C+="; Path="+E.path}if(E.expires){if(!x(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);C+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(C+="; HttpOnly"),E.secure&&(C+="; Secure"),E.partitioned&&(C+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":C+="; Priority=Low";break;case"medium":C+="; Priority=Medium";break;case"high":C+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${E.priority}`)}if(E.sameSite)switch(typeof E.sameSite=="string"?E.sameSite.toLowerCase():E.sameSite){case!0:case"strict":C+="; SameSite=Strict";break;case"lax":C+="; SameSite=Lax";break;case"none":C+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return C}function g(j){if(j.indexOf("%")===-1)return j;try{return decodeURIComponent(j)}catch{return j}}function x(j){return i.call(j)==="[object Date]"}return Ue}Sa();/**
|
|
116
116
|
* react-router v7.6.3
|
|
117
117
|
*
|
|
118
118
|
* Copyright (c) Remix Software Inc.
|
package/dist/index.es.js
CHANGED
|
@@ -3874,7 +3874,7 @@ const na = Le.div`
|
|
|
3874
3874
|
};
|
|
3875
3875
|
return q.useEffect(() => {
|
|
3876
3876
|
g();
|
|
3877
|
-
}, [c, u]), /* @__PURE__ */ K.jsx(na, { ref: c, styles: { ...e }, children: /* @__PURE__ */ K.jsx(oi, { ...l, slidesToShow: i, children: h }) });
|
|
3877
|
+
}, [c, u]), /* @__PURE__ */ K.jsx(na, { ref: c, styles: { ...e }, children: h.length > 0 && /* @__PURE__ */ K.jsx(oi, { ...l, slidesToShow: i, children: h }) });
|
|
3878
3878
|
}, es = ({
|
|
3879
3879
|
checked: e,
|
|
3880
3880
|
onToggle: t,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eliseubatista99/react-scaffold-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A library which provides basic components, hooks, helpers and providers to easily build a React application and avoid repeating the usual code.",
|
|
6
6
|
"main": "dist/index.cjs.js",
|