This is a custom description for the empty state.
@@ -38,7 +38,7 @@ var X=Object.defineProperty,Y=Object.defineProperties;var Z=Object.getOwnPropert args: { description: '' } -}`},(G=(M=l.parameters)==null?void 0:M.docs)==null?void 0:G.source)})});var q,O,U;g.parameters=r(e({},g.parameters),{docs:r(e({},(q=g.parameters)==null?void 0:q.docs),{source:e({originalSource:`{ +}`},(G=(M=l.parameters)==null?void 0:M.docs)==null?void 0:G.source)})});var O,U,q;g.parameters=r(e({},g.parameters),{docs:r(e({},(O=g.parameters)==null?void 0:O.docs),{source:e({originalSource:`{ args: { description: 'No data available', imageStyle: { @@ -46,7 +46,7 @@ var X=Object.defineProperty,Y=Object.defineProperties;var Z=Object.getOwnPropert boxShadow: '0 0 10px rgba(0, 0, 0, 0.2)' } } -}`},(U=(O=g.parameters)==null?void 0:O.docs)==null?void 0:U.source)})});var B,H,J;h.parameters=r(e({},h.parameters),{docs:r(e({},(B=h.parameters)==null?void 0:B.docs),{source:e({originalSource:`{ +}`},(q=(U=g.parameters)==null?void 0:U.docs)==null?void 0:q.source)})});var B,H,J;h.parameters=r(e({},h.parameters),{docs:r(e({},(B=h.parameters)==null?void 0:B.docs),{source:e({originalSource:`{ args: { description: null, image: null @@ -98,4 +98,4 @@ var X=Object.defineProperty,Y=Object.defineProperties;var Z=Object.getOwnPropert > ; } -}`},(V=(Q=u.parameters)==null?void 0:Q.docs)==null?void 0:V.source)})});const Pe=["Primary","CustomDescription","CustomImageStyle","NoImage","AltImage","CustomDescriptionAndImage","NoDescription","CustomImageAndStyle","NoImageAndNoDescription","ExampleGlobalEmpty"];export{d as AltImage,i as CustomDescription,p as CustomDescriptionAndImage,g as CustomImageAndStyle,c as CustomImageStyle,u as ExampleGlobalEmpty,l as NoDescription,m as NoImage,h as NoImageAndNoDescription,o as Primary,Pe as __namedExportsOrder,ze as default}; +}`},(V=(Q=u.parameters)==null?void 0:Q.docs)==null?void 0:V.source)})});const ke=["Primary","CustomDescription","CustomImageStyle","NoImage","AltImage","CustomDescriptionAndImage","NoDescription","CustomImageAndStyle","NoImageAndNoDescription","ExampleGlobalEmpty"];export{d as AltImage,i as CustomDescription,p as CustomDescriptionAndImage,g as CustomImageAndStyle,c as CustomImageStyle,u as ExampleGlobalEmpty,l as NoDescription,m as NoImage,h as NoImageAndNoDescription,o as Primary,ke as __namedExportsOrder,ze as default}; diff --git a/pr-preview/pr-459/assets/ExampleStory-DvwdaA9H.js b/pr-preview/pr-459/assets/ExampleStory-B-ilaOpY.js similarity index 84% rename from pr-preview/pr-459/assets/ExampleStory-DvwdaA9H.js rename to pr-preview/pr-459/assets/ExampleStory-B-ilaOpY.js index 0b992be97..f08ae70a2 100644 --- a/pr-preview/pr-459/assets/ExampleStory-DvwdaA9H.js +++ b/pr-preview/pr-459/assets/ExampleStory-B-ilaOpY.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-BcCOBRXo.js";import{b as r,h as i}from"./GlobalNavigation-CPQMp-rl.js";import"./ConfigProvider-BRwLXval.js";import"./_baseClone-BjCwUuX-.js";function a(t){return e.jsx(e.Fragment,{children:e.jsxs(r,{direction:"vertical",style:{maxWidth:"800px"},children:[t.title,e.jsx("hr",{}),e.jsx("br",{}),t.children,t.description&&e.jsxs(e.Fragment,{children:[e.jsx(i,{orientation:"center"}),t.description]})]})})}a.__docgenInfo={description:"",methods:[],displayName:"ExampleStory",props:{children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},title:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},description:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};export{a as E}; +import{j as e}from"./jsx-runtime-BcCOBRXo.js";import{b as r,k as i}from"./GlobalNavigation-DT_tPK9g.js";import"./ConfigProvider-BRwLXval.js";import"./_baseClone-BjCwUuX-.js";function a(t){return e.jsx(e.Fragment,{children:e.jsxs(r,{direction:"vertical",style:{maxWidth:"800px"},children:[t.title,e.jsx("hr",{}),e.jsx("br",{}),t.children,t.description&&e.jsxs(e.Fragment,{children:[e.jsx(i,{orientation:"center"}),t.description]})]})})}a.__docgenInfo={description:"",methods:[],displayName:"ExampleStory",props:{children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},title:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},description:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};export{a as E}; diff --git a/pr-preview/pr-459/assets/Filters-I6MwuyR_.js b/pr-preview/pr-459/assets/Filters-Bh-EZPAv.js similarity index 92% rename from pr-preview/pr-459/assets/Filters-I6MwuyR_.js rename to pr-preview/pr-459/assets/Filters-Bh-EZPAv.js index 61026ec21..589915a71 100644 --- a/pr-preview/pr-459/assets/Filters-I6MwuyR_.js +++ b/pr-preview/pr-459/assets/Filters-Bh-EZPAv.js @@ -1,4 +1,4 @@ -var c=Object.defineProperty,m=Object.defineProperties;var h=Object.getOwnPropertyDescriptors;var o=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var s=(r,e,i)=>e in r?c(r,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[e]=i,n=(r,e)=>{for(var i in e||(e={}))f.call(e,i)&&s(r,i,e[i]);if(o)for(var i of o(e))u.call(e,i)&&s(r,i,e[i]);return r},l=(r,e)=>m(r,h(e));import{j as t}from"./jsx-runtime-BcCOBRXo.js";import{useMDXComponents as d}from"./index-BI4Okn8T.js";import{M as x,d as a}from"./index-ZtHH_h5v.js";import{F as j,W as g,a as y}from"./Filters.stories-BDb-f9a5.js";import"./index-CNk6hRaE.js";import"./iframe-CoIBAWfU.js";import"../sb-preview/runtime.js";import"./index-D-4E_f9W.js";import"./extends-CF3RwP-h.js";import"./index-DYADbu9O.js";import"./isNativeReflectConstruct-CYew8PZR.js";import"./_baseClone-BjCwUuX-.js";import"./_getPrototype-CAOE_2rY.js";import"./index-eS13M_ii.js";import"./index-DrFu-skq.js";import"./index-Cn2ehl89.js";import"./GlobalNavigation-CPQMp-rl.js";import"./ConfigProvider-BRwLXval.js";import"./LightTheme-BtoaoHMG.js";import"./index-z2stgOKB.js";import"./useToken-5RYkiW09.js";import"./Serializer-OW4gUFyn.js";import"./row-DegztUsn.js";import"./dayjs.min-KGLNs1IR.js";import"./customParseFormat-oYt9ov06.js";import"./DatePicker.stories-DU0W2SK0.js";import"./SelectWithRangePicker-Ce7dTWwR.js";function p(r){const e=n(n({a:"a",em:"em",h1:"h1",h4:"h4",li:"li",p:"p",strong:"strong",ul:"ul"},d()),r.components);return t.jsxs(t.Fragment,{children:[t.jsx(x,{of:j}),` +var c=Object.defineProperty,m=Object.defineProperties;var h=Object.getOwnPropertyDescriptors;var o=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var s=(r,e,i)=>e in r?c(r,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[e]=i,n=(r,e)=>{for(var i in e||(e={}))f.call(e,i)&&s(r,i,e[i]);if(o)for(var i of o(e))u.call(e,i)&&s(r,i,e[i]);return r},l=(r,e)=>m(r,h(e));import{j as t}from"./jsx-runtime-BcCOBRXo.js";import{useMDXComponents as d}from"./index-BI4Okn8T.js";import{M as x,d as a}from"./index-Bf2yN5NY.js";import{F as j,W as g,a as y}from"./Filters.stories-Bp0TTpkD.js";import"./index-CNk6hRaE.js";import"./iframe-DsjYyBKh.js";import"../sb-preview/runtime.js";import"./index-D-4E_f9W.js";import"./extends-CF3RwP-h.js";import"./index-DYADbu9O.js";import"./isNativeReflectConstruct-CYew8PZR.js";import"./_baseClone-BjCwUuX-.js";import"./_getPrototype-CAOE_2rY.js";import"./index-eS13M_ii.js";import"./index-DrFu-skq.js";import"./index-Cn2ehl89.js";import"./GlobalNavigation-DT_tPK9g.js";import"./ConfigProvider-BRwLXval.js";import"./LightTheme-BtoaoHMG.js";import"./index-z2stgOKB.js";import"./useToken-5RYkiW09.js";import"./Serializer-OW4gUFyn.js";import"./row-DegztUsn.js";import"./dayjs.min-KGLNs1IR.js";import"./customParseFormat-oYt9ov06.js";import"./DatePicker.stories-BGsdcwIW.js";import"./SelectWithRangePicker-CdqsmbpZ.js";function p(r){const e=n(n({a:"a",em:"em",h1:"h1",h4:"h4",li:"li",p:"p",strong:"strong",ul:"ul"},d()),r.components);return t.jsxs(t.Fragment,{children:[t.jsx(x,{of:j}),` `,t.jsx(e.h1,{id:"filters",children:"Filters"}),` `,t.jsx("br",{}),` `,t.jsx(e.p,{children:t.jsxs(e.em,{children:["Note: This section covers filters specifically for tables. For query-related filters, please refer to the ",t.jsx(e.a,{href:"#coming",children:"Analytics Filters - Coming Soon"}),"."]})}),` diff --git a/pr-preview/pr-459/assets/Filters.stories-BDb-f9a5.js b/pr-preview/pr-459/assets/Filters.stories-Bp0TTpkD.js similarity index 97% rename from pr-preview/pr-459/assets/Filters.stories-BDb-f9a5.js rename to pr-preview/pr-459/assets/Filters.stories-Bp0TTpkD.js index f09668a36..73bacb2b2 100644 --- a/pr-preview/pr-459/assets/Filters.stories-BDb-f9a5.js +++ b/pr-preview/pr-459/assets/Filters.stories-Bp0TTpkD.js @@ -1,4 +1,4 @@ -var D=Object.defineProperty,T=Object.defineProperties;var k=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var x=(e,n,r)=>n in e?D(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,o=(e,n)=>{for(var r in n||(n={}))C.call(n,r)&&x(e,r,n[r]);if(h)for(var r of h(n))F.call(n,r)&&x(e,r,n[r]);return e},s=(e,n)=>T(e,k(n));import{j as t}from"./jsx-runtime-BcCOBRXo.js";import{f as a}from"./index-Cn2ehl89.js";import{T as u,b as p,F as d,c as b,I as m,d as i,e as P,C as E,f as O,B,g as M}from"./GlobalNavigation-CPQMp-rl.js";import"./ConfigProvider-BRwLXval.js";import"./_baseClone-BjCwUuX-.js";import{D as W}from"./DatePicker.stories-DU0W2SK0.js";import{S as N}from"./SelectWithRangePicker-Ce7dTWwR.js";const L={production:"blue",development:"purple",unknown:"default"},_={production:"Prod",development:"Dev",unknown:"Unknown"},z=e=>L[e],R=e=>_[e],U={draft:"cyan",error:"red",ready:"green"},A={draft:"Draft",error:"Error",ready:"Ready"},H=e=>U[e],J=e=>A[e],v=[{title:"Name",dataIndex:"name",key:"name",render:e=>{const n=window.location.pathname.split("/");n.pop();const r=`${n.join("/")}/${e}`;return t.jsx(i.Link,{href:r,children:e})}},{title:()=>t.jsx(P,{title:t.jsxs(t.Fragment,{children:[t.jsx(i.Text,{style:{color:"white"},children:"Help lorem ipsum. "}),t.jsx(i.Link,{href:"/",style:{color:"white",textDecoration:"underline"},children:"Learn More"})]}),children:t.jsxs(d,{align:"center",gap:2,children:[t.jsx(i.Text,{children:"ID"}),t.jsx(m,{name:"help",size:"sm"})]})}),dataIndex:"id",key:"id"},{title:"Timestamp (UTC)",dataIndex:"timestamp",key:"timestamp",render:e=>new Date(e/(1e3*1e3)).toLocaleString(void 0,{month:"short",day:"2-digit",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",timeZone:"UTC",hour12:!1})},{title:"mPID",dataIndex:"mpId",key:"mpId",render:e=>t.jsx(i.Text,{copyable:{icon:t.jsx(E,{"aria-label":"Copy mPID"})},children:e})},{title:"Output",dataIndex:"output",key:"output"},{title:"Environment",key:"environment",dataIndex:"environment",render:e=>t.jsx(O,{color:z(e),children:R(e)})},{title:"Status",dataIndex:"status",key:"status",render:e=>t.jsx(B,{color:H(e),text:J(e)})},{title:"Actions",dataIndex:"actions",key:"actions",render:()=>t.jsx(M,{suffixIcon:t.jsx(m,{name:"moreActions"}),variant:"borderless",dropdownStyle:{width:"200px"},options:[{label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"}]})}];function $(){return{id:`JNBSK-${a.number.int({min:1e3,max:9999}).toString()}`,key:a.string.uuid(),name:a.helpers.arrayElement(["NBCU","Remarkable Foods","Lulo Bank","Shift","Marks and Spencer","Zaxby's"]),timestamp:a.date.recent().valueOf()*1e3*1e3,mpId:a.number.int({max:9999999999}).toString(),output:a.helpers.arrayElement(["Braze","mP Analytics","Cortex","Applytics","Google Analytics"]),environment:a.helpers.arrayElement(["unknown","development","production"]),status:a.helpers.arrayElement(["draft","error","ready"])}}const I=a.helpers.multiple($,{count:3}),Y={title:"UX Patterns/Table/Filters",component:u,args:{}},l={name:"Basic",render:()=>t.jsxs(p,{direction:"vertical",style:{width:"100%"},children:[t.jsx(p,{direction:"vertical",style:{width:"100%"},children:t.jsxs(d,{align:"center",justify:"space-between",children:[t.jsx(d,{gap:10,children:t.jsx(W,{})}),t.jsx(b,{allowClear:!0,prefix:t.jsx(m,{size:"sm",color:"brand",name:"search"}),placeholder:"Search",style:{width:"240px"}})]})}),t.jsx(u,{columns:v,dataSource:I,scroll:{x:"max-content"}})]})},Z=[{value:"last12hours",label:"Last 12 hours"},{value:"last7days",label:"Last 7 days"},{value:"last14days",label:"Last 14 days"}],c={name:"Complex",render:()=>t.jsxs(p,{direction:"vertical",style:{width:"100%"},children:[t.jsx(p,{direction:"vertical",style:{width:"100%"},children:t.jsxs(d,{align:"center",justify:"space-between",children:[t.jsx(d,{gap:10,children:t.jsx(N,{value:"last14days",placeholder:"Choose Time",options:Z,formatOptions:{dateStyle:"short",timeStyle:"short",hour12:!1},dropdownStyle:{minWidth:400},rangePickerProps:{showTime:!0,showHour:!0,showMinute:!0,showSecond:!1,disabledDate:e=>e.isBefore(new Date(Date.now()-12096e5))}})}),t.jsx(b,{allowClear:!0,prefix:t.jsx(m,{size:"sm",color:"brand",name:"search"}),placeholder:"Search",style:{width:"240px"}})]})}),t.jsx(u,{columns:v,dataSource:I,scroll:{x:"max-content"}})]})};var y,S,w;l.parameters=s(o({},l.parameters),{docs:s(o({},(y=l.parameters)==null?void 0:y.docs),{source:o({originalSource:`{ +var D=Object.defineProperty,T=Object.defineProperties;var k=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var x=(e,n,r)=>n in e?D(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,o=(e,n)=>{for(var r in n||(n={}))C.call(n,r)&&x(e,r,n[r]);if(h)for(var r of h(n))F.call(n,r)&&x(e,r,n[r]);return e},s=(e,n)=>T(e,k(n));import{j as t}from"./jsx-runtime-BcCOBRXo.js";import{f as a}from"./index-Cn2ehl89.js";import{T as u,b as p,F as d,c as b,I as m,d as i,e as P,C as E,f as O,B,g as M}from"./GlobalNavigation-DT_tPK9g.js";import"./ConfigProvider-BRwLXval.js";import"./_baseClone-BjCwUuX-.js";import{D as W}from"./DatePicker.stories-BGsdcwIW.js";import{S as N}from"./SelectWithRangePicker-CdqsmbpZ.js";const L={production:"blue",development:"purple",unknown:"default"},_={production:"Prod",development:"Dev",unknown:"Unknown"},z=e=>L[e],R=e=>_[e],U={draft:"cyan",error:"red",ready:"green"},A={draft:"Draft",error:"Error",ready:"Ready"},H=e=>U[e],J=e=>A[e],v=[{title:"Name",dataIndex:"name",key:"name",render:e=>{const n=window.location.pathname.split("/");n.pop();const r=`${n.join("/")}/${e}`;return t.jsx(i.Link,{href:r,children:e})}},{title:()=>t.jsx(P,{title:t.jsxs(t.Fragment,{children:[t.jsx(i.Text,{style:{color:"white"},children:"Help lorem ipsum. "}),t.jsx(i.Link,{href:"/",style:{color:"white",textDecoration:"underline"},children:"Learn More"})]}),children:t.jsxs(d,{align:"center",gap:2,children:[t.jsx(i.Text,{children:"ID"}),t.jsx(m,{name:"help",size:"sm"})]})}),dataIndex:"id",key:"id"},{title:"Timestamp (UTC)",dataIndex:"timestamp",key:"timestamp",render:e=>new Date(e/(1e3*1e3)).toLocaleString(void 0,{month:"short",day:"2-digit",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",timeZone:"UTC",hour12:!1})},{title:"mPID",dataIndex:"mpId",key:"mpId",render:e=>t.jsx(i.Text,{copyable:{icon:t.jsx(E,{"aria-label":"Copy mPID"})},children:e})},{title:"Output",dataIndex:"output",key:"output"},{title:"Environment",key:"environment",dataIndex:"environment",render:e=>t.jsx(O,{color:z(e),children:R(e)})},{title:"Status",dataIndex:"status",key:"status",render:e=>t.jsx(B,{color:H(e),text:J(e)})},{title:"Actions",dataIndex:"actions",key:"actions",render:()=>t.jsx(M,{suffixIcon:t.jsx(m,{name:"moreActions"}),variant:"borderless",dropdownStyle:{width:"200px"},options:[{label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"}]})}];function $(){return{id:`JNBSK-${a.number.int({min:1e3,max:9999}).toString()}`,key:a.string.uuid(),name:a.helpers.arrayElement(["NBCU","Remarkable Foods","Lulo Bank","Shift","Marks and Spencer","Zaxby's"]),timestamp:a.date.recent().valueOf()*1e3*1e3,mpId:a.number.int({max:9999999999}).toString(),output:a.helpers.arrayElement(["Braze","mP Analytics","Cortex","Applytics","Google Analytics"]),environment:a.helpers.arrayElement(["unknown","development","production"]),status:a.helpers.arrayElement(["draft","error","ready"])}}const I=a.helpers.multiple($,{count:3}),Y={title:"UX Patterns/Table/Filters",component:u,args:{}},l={name:"Basic",render:()=>t.jsxs(p,{direction:"vertical",style:{width:"100%"},children:[t.jsx(p,{direction:"vertical",style:{width:"100%"},children:t.jsxs(d,{align:"center",justify:"space-between",children:[t.jsx(d,{gap:10,children:t.jsx(W,{})}),t.jsx(b,{allowClear:!0,prefix:t.jsx(m,{size:"sm",color:"brand",name:"search"}),placeholder:"Search",style:{width:"240px"}})]})}),t.jsx(u,{columns:v,dataSource:I,scroll:{x:"max-content"}})]})},Z=[{value:"last12hours",label:"Last 12 hours"},{value:"last7days",label:"Last 7 days"},{value:"last14days",label:"Last 14 days"}],c={name:"Complex",render:()=>t.jsxs(p,{direction:"vertical",style:{width:"100%"},children:[t.jsx(p,{direction:"vertical",style:{width:"100%"},children:t.jsxs(d,{align:"center",justify:"space-between",children:[t.jsx(d,{gap:10,children:t.jsx(N,{value:"last14days",placeholder:"Choose Time",options:Z,formatOptions:{dateStyle:"short",timeStyle:"short",hour12:!1},dropdownStyle:{minWidth:400},rangePickerProps:{showTime:!0,showHour:!0,showMinute:!0,showSecond:!1,disabledDate:e=>e.isBefore(new Date(Date.now()-12096e5))}})}),t.jsx(b,{allowClear:!0,prefix:t.jsx(m,{size:"sm",color:"brand",name:"search"}),placeholder:"Search",style:{width:"240px"}})]})}),t.jsx(u,{columns:v,dataSource:I,scroll:{x:"max-content"}})]})};var y,S,w;l.parameters=s(o({},l.parameters),{docs:s(o({},(y=l.parameters)==null?void 0:y.docs),{source:o({originalSource:`{ name: 'Basic', render: () =>e?s?(m=Date.now(),i||(d=setTimeout(u?$:x,e))):x():i!==!0&&(d=setTimeout(u?$:x,u===void 0?e-S:e))}return h.cancel=v,h}function vC(e,t,r){var n=r||{},o=n.atBegin,i=o===void 0?!1:o;return hT(e,t,{debounceMode:i!==!1})}var Cf={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(t){return z.createElement("ul",{style:{display:"block"}},t)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(t){return z.createElement("button",null,t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};function bf(e,t,r){return Math.max(t,Math.min(e,r))}var Va=function(t){var r=["onTouchStart","onTouchMove","onWheel"];r.includes(t._reactName)||t.preventDefault()},js=function(t){for(var r=[],n=pC(t),o=hC(t),i=n;i e?s?(m=Date.now(),i||(d=setTimeout(u?$:x,e))):x():i!==!0&&(d=setTimeout(u?$:x,u===void 0?e-S:e))}return h.cancel=v,h}function v3(e,t,r){var n=r||{},o=n.atBegin,i=o===void 0?!1:o;return hT(e,t,{debounceMode:i!==!1})}var Cf={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(t){return z.createElement("ul",{style:{display:"block"}},t)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(t){return z.createElement("button",null,t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};function bf(e,t,r){return Math.max(t,Math.min(e,r))}var Va=function(t){var r=["onTouchStart","onTouchMove","onWheel"];r.includes(t._reactName)||t.preventDefault()},js=function(t){for(var r=[],n=p3(t),o=h3(t),i=n;i l?"true":"false","aria-posinset":l+1,"aria-setsize":s,tabIndex:r?-1:0},z.createElement("div",{className:"".concat(n,"-first")},b),z.createElement("div",{className:"".concat(n,"-second")},b)));return i&&(y=i(y,e)),y}const BK=z.forwardRef(zK);function AK(){var e=a.useRef({});function t(n){return e.current[n]}function r(n){return function(o){e.current[n]=o}}return[t,r]}function FK(e){var t=e.pageXOffset,r="scrollLeft";if(typeof t!="number"){var n=e.document;t=n.documentElement[r],typeof t!="number"&&(t=n.body[r])}return t}function VK(e){var t,r,n=e.ownerDocument,o=n.body,i=n&&n.documentElement,l=e.getBoundingClientRect();return t=l.left,r=l.top,t-=i.clientLeft||o.clientLeft||0,r-=i.clientTop||o.clientTop||0,{left:t,top:r}}function WK(e){var t=VK(e),r=e.ownerDocument,n=r.defaultView||r.parentWindow;return t.left+=FK(n),t.left}var KK=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function qK(e,t){var r=e.prefixCls,n=r===void 0?"rc-rate":r,o=e.className,i=e.defaultValue,l=e.value,s=e.count,c=s===void 0?5:s,u=e.allowHalf,d=u===void 0?!1:u,f=e.allowClear,m=f===void 0?!0:f,g=e.keyboard,v=g===void 0?!0:g,h=e.character,p=h===void 0?"★":h,C=e.characterRender,b=e.disabled,y=e.direction,S=y===void 0?"ltr":y,x=e.tabIndex,$=x===void 0?0:x,w=e.autoFocus,I=e.onHoverChange,E=e.onChange,O=e.onFocus,N=e.onBlur,P=e.onKeyDown,R=e.onMouseLeave,M=ut(e,KK),D=AK(),L=ie(D,2),T=L[0],_=L[1],j=z.useRef(null),H=function(){if(!b){var xe;(xe=j.current)===null||xe===void 0||xe.focus()}};z.useImperativeHandle(t,function(){return{focus:H,blur:function(){if(!b){var xe;(xe=j.current)===null||xe===void 0||xe.blur()}}}});var k=Ot(i||0,{value:l}),V=ie(k,2),F=V[0],q=V[1],W=Ot(null),J=ie(W,2),X=J[0],Z=J[1],ee=function(xe,Me){var Ee=S==="rtl",Te=xe+1;if(d){var Re=T(xe),Pe=WK(Re),me=Re.clientWidth;(Ee&&Me-Pe>me/2||!Ee&&Me-Pet.currentSlide?t.targetSlide>t.currentSlide+MT(t)?"left":"right":t.targetSlidet.currentSlide?t.targetSlide>t.currentSlide+MT(t)?"left":"right":t.targetSlide