@anker-in/headless-ui 1.3.81 → 1.3.82-alpha.1793181577978

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.
Files changed (121) hide show
  1. package/CONTRIBUTING.md +57 -0
  2. package/README.md +6 -0
  3. package/dist/cjs/biz-components/ActivitySchedule/index.js +1 -1
  4. package/dist/cjs/biz-components/BrandEquity/BrandEquity.d.ts +2 -0
  5. package/dist/cjs/biz-components/BrandEquity/BrandEquity.js +1 -1
  6. package/dist/cjs/biz-components/BrandEquity/types.d.ts +2 -0
  7. package/dist/cjs/biz-components/BrandEquity/types.js +1 -1
  8. package/dist/cjs/biz-components/FooterNavigation/index.js +1 -1
  9. package/dist/cjs/biz-components/GraphicOverlay/GraphicOverlay.js +1 -1
  10. package/dist/cjs/biz-components/HeroBanner/HeroBanner.js +1 -1
  11. package/dist/cjs/biz-components/HeroBanner/HeroBannerCarousel.js +1 -1
  12. package/dist/cjs/biz-components/ImageWithText/ImageWithText.js +1 -1
  13. package/dist/cjs/biz-components/ImageWithText/types.d.ts +8 -2
  14. package/dist/cjs/biz-components/ImageWithText/types.js +1 -1
  15. package/dist/cjs/biz-components/Ksp/index.d.ts +2 -0
  16. package/dist/cjs/biz-components/Ksp/index.js +1 -1
  17. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGridBox.js +1 -1
  18. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ProductActions/index.js +1 -1
  19. package/dist/cjs/biz-components/Listing/hooks/useStickyFlip.d.ts +20 -0
  20. package/dist/cjs/biz-components/Listing/hooks/useStickyFlip.js +1 -0
  21. package/dist/cjs/biz-components/MarqueeReview/index.js +1 -1
  22. package/dist/cjs/biz-components/MediaPlayerBase/index.js +1 -1
  23. package/dist/cjs/biz-components/MediaSceneSwitcher/MediaSceneSwitcher.js +2 -2
  24. package/dist/cjs/biz-components/MiniCart/CircleProgress.d.ts +22 -1
  25. package/dist/cjs/biz-components/MiniCart/CircleProgress.js +2 -1
  26. package/dist/cjs/biz-components/MiniCart/MiniCartDialog.d.ts +4 -2
  27. package/dist/cjs/biz-components/MiniCart/MiniCartDialog.js +1 -1
  28. package/dist/cjs/biz-components/MiniCart/index.d.ts +45 -0
  29. package/dist/cjs/biz-components/MiniCart/index.js +1 -1
  30. package/dist/cjs/biz-components/ProductCompare/index.d.ts +1 -1
  31. package/dist/cjs/biz-components/ProductCompare/index.js +1 -1
  32. package/dist/cjs/biz-components/ProductHero/ProductHero.js +1 -1
  33. package/dist/cjs/biz-components/ProductHero/types.d.ts +2 -0
  34. package/dist/cjs/biz-components/ProductHero/types.js +1 -1
  35. package/dist/cjs/biz-components/ProductNav/ProductNav.js +1 -1
  36. package/dist/cjs/biz-components/PromotionalBar/index.js +1 -1
  37. package/dist/cjs/biz-components/SearchPage/index.js +1 -1
  38. package/dist/cjs/biz-components/SecondaryBanner/index.d.ts +10 -0
  39. package/dist/cjs/biz-components/SecondaryBanner/index.js +1 -1
  40. package/dist/cjs/biz-components/Specs/dropdown.js +1 -2
  41. package/dist/cjs/biz-components/Specs/index.js +1 -1
  42. package/dist/cjs/biz-components/ThreeDCarousel/ThreeDCarousel.js +1 -1
  43. package/dist/cjs/biz-components/index.d.ts +2 -2
  44. package/dist/cjs/biz-components/index.js +1 -1
  45. package/dist/cjs/components/container.js +1 -1
  46. package/dist/cjs/components/link.js +1 -1
  47. package/dist/cjs/helpers/ScrollLoadVideo.d.ts +9 -1
  48. package/dist/cjs/helpers/ScrollLoadVideo.js +1 -1
  49. package/dist/cjs/helpers/utils.js +1 -1
  50. package/dist/cjs/hooks/useDraggableScroll.js +1 -1
  51. package/dist/cjs/hooks/useExposure.d.ts +1 -1
  52. package/dist/cjs/hooks/useExposure.js +1 -1
  53. package/dist/cjs/hooks/useViewItemList.d.ts +1 -1
  54. package/dist/cjs/index.d.ts +2 -2
  55. package/dist/cjs/index.js +1 -1
  56. package/dist/cjs/shared/ContainerGridContext.d.ts +20 -0
  57. package/dist/cjs/shared/ContainerGridContext.js +1 -0
  58. package/dist/cjs/shared/Styles.d.ts +2 -0
  59. package/dist/cjs/shared/Styles.js +1 -1
  60. package/dist/cjs/shared/mediaGridSpec.d.ts +87 -0
  61. package/dist/cjs/shared/mediaGridSpec.js +1 -0
  62. package/dist/esm/biz-components/ActivitySchedule/index.js +1 -1
  63. package/dist/esm/biz-components/BrandEquity/BrandEquity.d.ts +2 -0
  64. package/dist/esm/biz-components/BrandEquity/BrandEquity.js +1 -1
  65. package/dist/esm/biz-components/BrandEquity/types.d.ts +2 -0
  66. package/dist/esm/biz-components/FooterNavigation/index.js +1 -1
  67. package/dist/esm/biz-components/GraphicOverlay/GraphicOverlay.js +1 -1
  68. package/dist/esm/biz-components/HeroBanner/HeroBanner.js +1 -1
  69. package/dist/esm/biz-components/HeroBanner/HeroBannerCarousel.js +1 -1
  70. package/dist/esm/biz-components/ImageWithText/ImageWithText.js +1 -1
  71. package/dist/esm/biz-components/ImageWithText/types.d.ts +8 -2
  72. package/dist/esm/biz-components/Ksp/index.d.ts +2 -0
  73. package/dist/esm/biz-components/Ksp/index.js +1 -1
  74. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGridBox.js +1 -1
  75. package/dist/esm/biz-components/Listing/components/PurchaseBar/ProductActions/index.js +1 -1
  76. package/dist/esm/biz-components/Listing/hooks/useStickyFlip.d.ts +20 -0
  77. package/dist/esm/biz-components/Listing/hooks/useStickyFlip.js +1 -0
  78. package/dist/esm/biz-components/MarqueeReview/index.js +1 -1
  79. package/dist/esm/biz-components/MediaPlayerBase/index.js +1 -1
  80. package/dist/esm/biz-components/MediaSceneSwitcher/MediaSceneSwitcher.js +2 -2
  81. package/dist/esm/biz-components/MiniCart/CircleProgress.d.ts +22 -1
  82. package/dist/esm/biz-components/MiniCart/CircleProgress.js +2 -1
  83. package/dist/esm/biz-components/MiniCart/MiniCartDialog.d.ts +4 -2
  84. package/dist/esm/biz-components/MiniCart/MiniCartDialog.js +1 -1
  85. package/dist/esm/biz-components/MiniCart/index.d.ts +45 -0
  86. package/dist/esm/biz-components/MiniCart/index.js +1 -1
  87. package/dist/esm/biz-components/ProductCompare/index.d.ts +1 -1
  88. package/dist/esm/biz-components/ProductCompare/index.js +1 -1
  89. package/dist/esm/biz-components/ProductHero/ProductHero.js +1 -1
  90. package/dist/esm/biz-components/ProductHero/types.d.ts +2 -0
  91. package/dist/esm/biz-components/ProductNav/ProductNav.js +1 -1
  92. package/dist/esm/biz-components/PromotionalBar/index.js +1 -1
  93. package/dist/esm/biz-components/SearchPage/index.js +1 -1
  94. package/dist/esm/biz-components/SecondaryBanner/index.d.ts +10 -0
  95. package/dist/esm/biz-components/SecondaryBanner/index.js +1 -1
  96. package/dist/esm/biz-components/Specs/dropdown.js +1 -2
  97. package/dist/esm/biz-components/Specs/index.js +1 -1
  98. package/dist/esm/biz-components/ThreeDCarousel/ThreeDCarousel.js +1 -1
  99. package/dist/esm/biz-components/index.d.ts +2 -2
  100. package/dist/esm/biz-components/index.js +1 -1
  101. package/dist/esm/components/container.js +1 -1
  102. package/dist/esm/components/link.js +1 -1
  103. package/dist/esm/helpers/ScrollLoadVideo.d.ts +9 -1
  104. package/dist/esm/helpers/ScrollLoadVideo.js +1 -1
  105. package/dist/esm/helpers/utils.js +1 -1
  106. package/dist/esm/hooks/useDraggableScroll.js +1 -1
  107. package/dist/esm/hooks/useExposure.d.ts +1 -1
  108. package/dist/esm/hooks/useExposure.js +1 -1
  109. package/dist/esm/hooks/useViewItemList.d.ts +1 -1
  110. package/dist/esm/index.d.ts +2 -2
  111. package/dist/esm/index.js +1 -1
  112. package/dist/esm/shared/ContainerGridContext.d.ts +20 -0
  113. package/dist/esm/shared/ContainerGridContext.js +1 -0
  114. package/dist/esm/shared/Styles.d.ts +2 -0
  115. package/dist/esm/shared/Styles.js +1 -1
  116. package/dist/esm/shared/mediaGridSpec.d.ts +87 -0
  117. package/dist/esm/shared/mediaGridSpec.js +1 -0
  118. package/dist/tokens/base.css +48 -0
  119. package/package.json +5 -2
  120. package/style.css +284 -144
  121. package/tailwind.config.js +8 -0
@@ -1 +1 @@
1
- "use strict";"use client";var N=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var q=Object.prototype.hasOwnProperty;var H=(a,t)=>{for(var p in t)N(a,p,{get:t[p],enumerable:!0})},V=(a,t,p,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of $(t))!q.call(a,e)&&e!==p&&N(a,e,{get:()=>t[e],enumerable:!(n=_(t,e))||n.enumerable});return a};var F=a=>V(N({},"__esModule",{value:!0}),a);var B={};H(B,{default:()=>S});module.exports=F(B);var s=require("react/jsx-runtime"),C=require("react-responsive"),k=require("../../components/index.js"),c=require("../../helpers/utils.js"),z=require("../../shared/Styles.js");const G=({title:a,desc:t,mobImage:p,mobVideo:n,tabletImage:e,tabletVideo:f,laptopImage:d,laptopVideo:r,desktopImage:o,desktopVideo:w,image:l,video:b,className:x,theme:I,classNames:h})=>{const T=(0,C.useMediaQuery)({query:"(max-width: 767px)"}),K=(0,C.useMediaQuery)({query:"(min-width: 768px) and (max-width: 1024px)"}),v=(0,C.useMediaQuery)({query:"(min-width: 1025px) and (max-width: 1439px)"}),j=()=>T?n||f||r||w||b:K?f||r||w||b:v?r||w||b:w||b,D=()=>T?p||e||d||o||l:K?e||d||o||l:v?d||o||l:o||l,P=j(),L=D(),O=()=>{const g=[],y=l?.url||o?.url,i=o?.url||l?.url,u=d?.url||i,m=e?.url||u,M=p?.url||m;return y&&g.push(y),i&&i!==y&&g.push(`${i} 1920`),u&&u!==i&&g.push(`${u} 1440`),m&&m!==u&&g.push(`${m} 1025`),M&&M!==m&&g.push(`${M} 768`),g.length>0?g.join(", "):void 0},R=!!P?.url,A=!!(p?.url||e?.url||d?.url||o?.url||l?.url);return(0,s.jsxs)("div",{className:(0,c.cn)("ksp-card rounded-box text-info-primary relative overflow-hidden",{"aiui-dark":I==="dark"},x,h?.card),children:[R?(0,s.jsx)("video",{playsInline:!0,autoPlay:!0,muted:!0,loop:!0,src:P?.url,poster:L?.url,className:(0,c.cn)("ksp-card-video absolute bottom-0 w-full object-cover",h?.cardVideo)}):A&&(0,s.jsx)(k.Picture,{source:O(),alt:L?.alt||"",className:(0,c.cn)("ksp-card-image size-full",h?.cardImage),imgClassName:(0,c.cn)("size-full object-cover object-bottom",h?.cardImageImg)}),(0,s.jsxs)("div",{className:(0,c.cn)("ksp-card-content desktop:p-6 lg-desktop:p-8 p-4",h?.cardContent),children:[(0,s.jsx)(k.Heading,{size:3,html:a,className:(0,c.cn)("ksp-card-title tablet:block hidden w-full",h?.cardTitle)}),(0,s.jsx)(k.Heading,{size:2,html:a,className:(0,c.cn)("ksp-card-title tablet:hidden tablet:w-[340px] xs-tablet:text-[16px] block w-full",h?.cardTitle)}),(0,s.jsx)(k.Text,{size:2,html:t,className:(0,c.cn)("ksp-card-desc text-info-primary tablet:block tablet:text-[14px] laptop:text-[14px] desktop:text-[16px] lg-desktop:text-[18px] mt-[4px] text-[14px]",h?.cardDesc)})]})]})},U={4:{0:"col-span-2 laptop:col-span-6 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[440] laptop:aspect-h-[240] desktop:aspect-w-[648] desktop:aspect-h-[256] lg-desktop:aspect-w-[824] lg-desktop:aspect-h-[320]",1:"col-span-1 laptop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",2:"col-span-1 laptop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",3:"col-span-2 laptop:col-span-6 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[440] laptop:aspect-h-[240] desktop:aspect-w-[648] desktop:aspect-h-[256] lg-desktop:aspect-w-[824] lg-desktop:aspect-h-[320]"},5:{0:"col-span-2 laptop:col-span-6 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[440] laptop:aspect-h-[240] desktop:aspect-w-[648] desktop:aspect-h-[256] lg-desktop:aspect-w-[824] lg-desktop:aspect-h-[320]",1:"col-span-2 tablet:col-span-1 laptop:col-span-4 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",2:"col-span-1 laptop:col-span-3 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",3:"col-span-1 laptop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",4:"col-span-2 tablet:col-span-1 laptop:col-span-3 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]"},6:{0:"col-span-2 tablet:col-span-1 laptop:col-span-4 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",1:"col-span-1 laptop:col-span-3 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",2:"col-span-1 laptop:col-span-3 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",3:"col-span-2 tablet:col-span-1 laptop:col-span-3 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",4:"col-span-1 laptop:col-span-3 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",5:"col-span-1 laptop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]"},7:{0:"col-span-2 laptop:col-span-6 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[440] laptop:aspect-h-[240] desktop:aspect-w-[648] desktop:aspect-h-[256] lg-desktop:aspect-w-[824] lg-desktop:aspect-h-[320]",1:"col-span-1 laptop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",2:"col-span-1 laptop:col-span-3 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",3:"col-span-2 tablet:col-span-1 laptop:col-span-4 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",4:"col-span-1 laptop:col-span-3 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",5:"col-span-1 laptop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",6:"col-span-2 laptop:col-span-6 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[440] laptop:aspect-h-[240] desktop:aspect-w-[648] desktop:aspect-h-[256] lg-desktop:aspect-w-[824] lg-desktop:aspect-h-[320]"},8:{0:"col-span-2 laptop:col-span-6 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[440] laptop:aspect-h-[240] desktop:aspect-w-[648] desktop:aspect-h-[256] lg-desktop:aspect-w-[824] lg-desktop:aspect-h-[320]",1:"col-span-1 laptop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",2:"col-span-1 laptop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",3:"col-span-1 laptop:col-span-3 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",4:"col-span-1 laptop:col-span-3 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",5:"col-span-2 tablet:col-span-1 laptop:col-span-3 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",6:"col-span-1 laptop:col-span-3 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",7:"col-span-1 laptop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]"},9:{0:"col-span-2 laptop:col-span-4 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",1:"col-span-1 laptop:col-span-3 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",2:"col-span-1 laptop:col-span-3 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",3:"col-span-1 tablet:col-span-2 laptop:col-span-3 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",4:"col-span-1 laptop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",5:"col-span-2 tablet:col-span-1 laptop:col-span-3 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",6:"col-span-1 laptop:col-span-3 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",7:"col-span-1 laptop:col-span-3 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",8:"col-span-2 laptop:col-span-4 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]"}},Y={4:{0:"col-span-2 tablet:col-span-2 laptop:col-span-7 desktop:col-span-7 lg-desktop:col-span-7 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",1:"col-span-1 tablet:col-span-1 laptop:col-span-5 desktop:col-span-5 lg-desktop:col-span-5 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",2:"col-span-1 tablet:col-span-1 laptop:col-span-5 desktop:col-span-5 lg-desktop:col-span-5 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",3:"col-span-2 tablet:col-span-2 laptop:col-span-7 desktop:col-span-7 lg-desktop:col-span-7 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]"},5:{0:"col-span-2 tablet:col-span-2 laptop:col-span-7 desktop:col-span-7 lg-desktop:col-span-7 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",1:"col-span-1 tablet:col-span-1 laptop:col-span-5 desktop:col-span-5 lg-desktop:col-span-5 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",2:"col-span-1 tablet:col-span-1 laptop:col-span-4 desktop:col-span-4 lg-desktop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",3:"col-span-1 tablet:col-span-1 laptop:col-span-4 desktop:col-span-4 lg-desktop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[226] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",4:"col-span-1 tablet:col-span-1 laptop:col-span-4 desktop:col-span-4 lg-desktop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]"},6:{0:"col-span-2 tablet:col-span-1 laptop:col-span-7 desktop:col-span-7 lg-desktop:col-span-7 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",1:"col-span-1 tablet:col-span-1 laptop:col-span-5 desktop:col-span-5 lg-desktop:col-span-5 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[226] tablet:aspect-h-[240] laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",2:"col-span-1 tablet:col-span-1 laptop:col-span-5 desktop:col-span-5 lg-desktop:col-span-5 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",3:"col-span-2 tablet:col-span-1 laptop:col-span-7 desktop:col-span-7 lg-desktop:col-span-7 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",4:"col-span-1 tablet:col-span-1 laptop:col-span-7 desktop:col-span-7 lg-desktop:col-span-7 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[226] tablet:aspect-h-[240] laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",5:"col-span-1 tablet:col-span-1 laptop:col-span-5 desktop:col-span-5 lg-desktop:col-span-5 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]"},7:{0:"col-span-2 tablet:col-span-2 laptop:col-span-7 desktop:col-span-7 lg-desktop:col-span-7 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",1:"col-span-1 tablet:col-span-1 laptop:col-span-5 desktop:col-span-5 lg-desktop:col-span-5 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",2:"col-span-1 tablet:col-span-1 laptop:col-span-4 desktop:col-span-4 lg-desktop:col-span-5 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",3:"col-span-2 tablet:col-span-1 laptop:col-span-4 desktop:col-span-4 lg-desktop:col-span-7 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[226] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",4:"col-span-1 tablet:col-span-1 laptop:col-span-4 desktop:col-span-4 lg-desktop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",5:"col-span-1 tablet:col-span-1 laptop:col-span-7 desktop:col-span-7 lg-desktop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",6:"col-span-2 tablet:col-span-2 laptop:col-span-5 desktop:col-span-5 lg-desktop:col-span-4 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]"},8:{0:"col-span-2 tablet:col-span-2 laptop:col-span-7 desktop:col-span-7 lg-desktop:col-span-7 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",1:"col-span-2 tablet:col-span-1 laptop:col-span-5 desktop:col-span-5 lg-desktop:col-span-5 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",2:"col-span-1 tablet:col-span-1 laptop:col-span-4 desktop:col-span-4 lg-desktop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",3:"col-span-1 tablet:col-span-1 laptop:col-span-4 desktop:col-span-4 lg-desktop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[226] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",4:"col-span-1 tablet:col-span-1 laptop:col-span-4 desktop:col-span-4 lg-desktop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",5:"col-span-1 tablet:col-span-1 laptop:col-span-4 desktop:col-span-4 lg-desktop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",6:"col-span-1 tablet:col-span-1 laptop:col-span-4 desktop:col-span-4 lg-desktop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[226] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",7:"col-span-1 tablet:col-span-1 laptop:col-span-4 desktop:col-span-4 lg-desktop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]"},9:{0:"col-span-2 tablet:col-span-2 laptop:col-span-7 desktop:col-span-7 lg-desktop:col-span-7 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",1:"col-span-1 tablet:col-span-1 laptop:col-span-5 desktop:col-span-5 lg-desktop:col-span-5 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",2:"col-span-1 tablet:col-span-1 laptop:col-span-5 desktop:col-span-5 lg-desktop:col-span-5 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",3:"col-span-2 tablet:col-span-2 laptop:col-span-7 desktop:col-span-7 lg-desktop:col-span-7 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",4:"col-span-1 tablet:col-span-1 laptop:col-span-4 desktop:col-span-4 lg-desktop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",5:"col-span-1 tablet:col-span-1 laptop:col-span-4 desktop:col-span-4 lg-desktop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[226] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",6:"col-span-1 tablet:col-span-1 laptop:col-span-4 desktop:col-span-4 lg-desktop:col-span-4 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",7:"col-span-1 tablet:col-span-2 laptop:col-span-7 desktop:col-span-7 lg-desktop:col-span-7 aspect-w-[173] aspect-h-[240] tablet:aspect-w-[465] tablet:aspect-h-[240] laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",8:"col-span-2 tablet:col-span-1 laptop:col-span-5 desktop:col-span-5 lg-desktop:col-span-5 aspect-w-[358] aspect-h-[240] tablet:aspect-w-[227] tablet:aspect-h-[240] laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]"}},E=(a,t,p)=>(p===12?Y:U)[t]?.[a]||"";function Q({data:a,className:t,classNames:p,...n}){const{title:e,titleTag:f,items:d,theme:r="light",gridColumns:o}=a,w=o?Number(o):10,l=w===12;return(0,s.jsxs)("section",{...n,"data-ui-component-id":"ksp",className:(0,c.cn)("ksp-container text-info-primary laptop:scroll-mt-[46px] flex scroll-mt-[108px] flex-col justify-center",{"aiui-dark":r==="dark"},t,p?.root),children:[(0,s.jsx)(k.Heading,{as:f??"h2",size:4,html:e,className:(0,c.cn)("ksp-title laptop:text-center text-left",p?.title)}),(0,s.jsx)("div",{className:(0,c.cn)("ksp-layout tablet:grid-cols-3 laptop:gap-4 mt-[24px] grid grid-cols-2 gap-3",l?"laptop:grid-cols-12":"laptop:grid-cols-10",p?.layout),children:d.map((b,x)=>(0,s.jsx)(G,{...b,className:E(x,d.length,w),classNames:p},x))})]})}var S=(0,z.withLayout)(Q);
1
+ "use strict";"use client";var T=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var q=Object.prototype.hasOwnProperty;var H=(s,p)=>{for(var t in p)T(s,t,{get:p[t],enumerable:!0})},V=(s,p,t,w)=>{if(p&&typeof p=="object"||typeof p=="function")for(let e of $(p))!q.call(s,e)&&e!==t&&T(s,e,{get:()=>p[e],enumerable:!(w=_(p,e))||w.enumerable});return s};var F=s=>V(T({},"__esModule",{value:!0}),s);var B={};H(B,{default:()=>S});module.exports=F(B);var a=require("react/jsx-runtime"),C=require("react-responsive"),h=require("../../components/index.js"),c=require("../../helpers/utils.js"),z=require("../../shared/Styles.js");const G=({title:s,desc:p,mobImage:t,mobVideo:w,tabletImage:e,tabletVideo:x,laptopImage:d,laptopVideo:i,desktopImage:o,desktopVideo:n,image:l,video:r,className:b,theme:I,classNames:k})=>{const N=(0,C.useMediaQuery)({query:"(max-width: 767px)"}),K=(0,C.useMediaQuery)({query:"(min-width: 768px) and (max-width: 1024px)"}),v=(0,C.useMediaQuery)({query:"(min-width: 1025px) and (max-width: 1439px)"}),j=()=>N?w||x||i||n||r:K?x||i||n||r:v?i||n||r:n||r,D=()=>N?t||e||d||o||l:K?e||d||o||l:v?d||o||l:o||l,P=j(),L=D(),O=()=>{const g=[],y=l?.url||o?.url,u=o?.url||l?.url,m=d?.url||u,f=e?.url||m,M=t?.url||f;return y&&g.push(y),u&&u!==y&&g.push(`${u} 1920`),m&&m!==u&&g.push(`${m} 1440`),f&&f!==m&&g.push(`${f} 1025`),M&&M!==f&&g.push(`${M} 768`),g.length>0?g.join(", "):void 0},R=!!P?.url,A=!!(t?.url||e?.url||d?.url||o?.url||l?.url);return(0,a.jsxs)("div",{className:(0,c.cn)("ksp-card rounded-box text-info-primary relative overflow-hidden",{"aiui-dark":I==="dark"},b,k?.card),children:[R?(0,a.jsx)("video",{playsInline:!0,autoPlay:!0,muted:!0,loop:!0,src:P?.url,poster:L?.url,className:(0,c.cn)("ksp-card-video absolute bottom-0 w-full object-cover",k?.cardVideo)}):A&&(0,a.jsx)(h.Picture,{source:O(),alt:L?.alt||"",className:(0,c.cn)("ksp-card-image size-full",k?.cardImage),imgClassName:(0,c.cn)("size-full object-cover object-bottom",k?.cardImageImg)}),(0,a.jsxs)("div",{className:(0,c.cn)("ksp-card-content desktop:p-6 lg-desktop:p-8 p-4",k?.cardContent),children:[(0,a.jsx)(h.Heading,{size:3,html:s,className:(0,c.cn)("ksp-card-title tablet:block hidden w-full",k?.cardTitle)}),(0,a.jsx)(h.Heading,{size:2,html:s,className:(0,c.cn)("ksp-card-title tablet:hidden tablet:w-[340px] xs-tablet:text-[16px] block w-full",k?.cardTitle)}),(0,a.jsx)(h.Text,{size:2,html:p,className:(0,c.cn)("ksp-card-desc text-info-primary tablet:block tablet:text-[14px] laptop:text-[14px] desktop:text-[16px] lg-desktop:text-[18px] mt-[4px] text-[14px]",k?.cardDesc)})]})]})},U={4:{0:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-6 laptop:aspect-w-[440] laptop:aspect-h-[240] desktop:aspect-w-[648] desktop:aspect-h-[256] lg-desktop:aspect-w-[824] lg-desktop:aspect-h-[320]",1:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",2:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",3:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-6 laptop:aspect-w-[440] laptop:aspect-h-[240] desktop:aspect-w-[648] desktop:aspect-h-[256] lg-desktop:aspect-w-[824] lg-desktop:aspect-h-[320]"},5:{0:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-6 laptop:aspect-w-[440] laptop:aspect-h-[240] desktop:aspect-w-[648] desktop:aspect-h-[256] lg-desktop:aspect-w-[824] lg-desktop:aspect-h-[320]",1:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",2:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",3:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",4:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]"},6:{0:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",1:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",2:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",3:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",4:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",5:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]"},7:{0:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-6 laptop:aspect-w-[440] laptop:aspect-h-[240] desktop:aspect-w-[648] desktop:aspect-h-[256] lg-desktop:aspect-w-[824] lg-desktop:aspect-h-[320]",1:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",2:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",3:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",4:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",5:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",6:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-6 laptop:aspect-w-[440] laptop:aspect-h-[240] desktop:aspect-w-[648] desktop:aspect-h-[256] lg-desktop:aspect-w-[824] lg-desktop:aspect-h-[320]"},8:{0:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-6 laptop:aspect-w-[440] laptop:aspect-h-[240] desktop:aspect-w-[648] desktop:aspect-h-[256] lg-desktop:aspect-w-[824] lg-desktop:aspect-h-[320]",1:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",2:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",3:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",4:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",5:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",6:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",7:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]"},9:{0:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",1:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",2:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",3:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",4:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",5:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",6:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",7:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-3 laptop:aspect-w-[212] laptop:aspect-h-[240] desktop:aspect-w-[316] desktop:aspect-h-[256] lg-desktop:aspect-w-[404] lg-desktop:aspect-h-[320]",8:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]"}},Y={4:{0:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-7 lg-desktop:col-span-7 laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",1:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-5 lg-desktop:col-span-5 laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",2:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-5 lg-desktop:col-span-5 laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",3:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-7 lg-desktop:col-span-7 laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]"},5:{0:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-7 lg-desktop:col-span-7 laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",1:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-5 lg-desktop:col-span-5 laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",2:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 lg-desktop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",3:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 lg-desktop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",4:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 lg-desktop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]"},6:{0:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-7 lg-desktop:col-span-7 laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",1:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-5 lg-desktop:col-span-5 laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",2:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-5 lg-desktop:col-span-5 laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",3:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-7 lg-desktop:col-span-7 laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",4:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-7 lg-desktop:col-span-7 laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",5:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-5 lg-desktop:col-span-5 laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]"},7:{0:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-7 lg-desktop:col-span-7 laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",1:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-5 lg-desktop:col-span-5 laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",2:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 lg-desktop:col-span-5 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",3:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 lg-desktop:col-span-7 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",4:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 lg-desktop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",5:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-7 lg-desktop:col-span-4 laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",6:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-5 lg-desktop:col-span-4 laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]"},8:{0:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-7 lg-desktop:col-span-7 laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",1:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-5 lg-desktop:col-span-5 laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",2:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 lg-desktop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",3:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 lg-desktop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",4:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 lg-desktop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",5:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 lg-desktop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",6:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 lg-desktop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",7:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 lg-desktop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]"},9:{0:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-7 lg-desktop:col-span-7 laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",1:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-5 lg-desktop:col-span-5 laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",2:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-5 lg-desktop:col-span-5 laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]",3:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-7 lg-desktop:col-span-7 laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",4:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 lg-desktop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",5:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 lg-desktop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",6:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-4 lg-desktop:col-span-4 laptop:aspect-w-[288] laptop:aspect-h-[240] desktop:aspect-w-[426] desktop:aspect-h-[256] lg-desktop:aspect-w-[544] lg-desktop:aspect-h-[320]",7:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-7 lg-desktop:col-span-7 laptop:aspect-w-[516] laptop:aspect-h-[240] desktop:aspect-w-[758] desktop:aspect-h-[256] lg-desktop:aspect-w-[964] lg-desktop:aspect-h-[320]",8:"col-span-1 aspect-w-[358] aspect-h-[200] laptop:col-span-5 lg-desktop:col-span-5 laptop:aspect-w-[364] laptop:aspect-h-[240] desktop:aspect-w-[538] desktop:aspect-h-[256] lg-desktop:aspect-w-[684] lg-desktop:aspect-h-[320]"}},E=(s,p,t)=>(t===12?Y:U)[p]?.[s]||"";function Q({data:s,className:p,classNames:t,...w}){const{title:e,titleTag:x,items:d,theme:i="light",gridColumns:o}=s,n=o?Number(o):10,l=n===12;return(0,a.jsxs)("section",{...w,"data-ui-component-id":"ksp",className:(0,c.cn)("ksp-container text-info-primary laptop:scroll-mt-[46px] flex scroll-mt-[108px] flex-col justify-center",{"aiui-dark":i==="dark"},p,t?.root),children:[(0,a.jsx)(h.Heading,{as:x??"h2",size:4,html:e,className:(0,c.cn)("ksp-title laptop:text-center text-left",t?.title)}),(0,a.jsx)("div",{className:(0,c.cn)("ksp-layout tablet:grid-cols-2 laptop:gap-4 mt-[24px] grid grid-cols-1 gap-3",l?"laptop:grid-cols-12":"laptop:grid-cols-10",t?.layout),children:d.map((r,b)=>(0,a.jsx)(G,{...r,className:E(b,d.length,n),classNames:t},b))})]})}var S=(0,z.withLayout)(Q);
@@ -1 +1 @@
1
- "use strict";var c=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var r=Object.prototype.hasOwnProperty;var s=(t,p)=>{for(var a in p)c(t,a,{get:p[a],enumerable:!0})},x=(t,p,a,e)=>{if(p&&typeof p=="object"||typeof p=="function")for(let d of m(p))!r.call(t,d)&&d!==a&&c(t,d,{get:()=>p[d],enumerable:!(e=i(p,d))||e.enumerable});return t};var g=t=>x(c({},"__esModule",{value:!0}),t);var R={};s(R,{default:()=>N});module.exports=g(R);var o=require("react/jsx-runtime"),l=require("../../../../components/index.js");const G=({BoxLeftGallery:t,BoxRightDetail:p,BoxBottomSummary:a})=>(0,o.jsxs)("div",{id:"ipc-product-card",className:"laptop-md:pt-6 laptop-md:px-16 lg-desktop:px-[calc(50%-832px)]",children:[(0,o.jsxs)(l.Grid,{className:"ipc-box-grid laptop-md:gap-x-4 lg-desktop:gap-6 gap-8 laptop:gap-y-8 laptop-md:gap-y-8",children:[(0,o.jsx)(l.GridItem,{className:"ipc-box-left-grid-item laptop:px-0 laptop-md:col-start-1 laptop-md:col-span-8 laptop-md:sticky laptop-md:top-[124px] col-span-12 h-fit",children:t}),(0,o.jsx)(l.GridItem,{className:"ipc-box-right-grid-item laptop-md:col-start-9 laptop-md:col-span-4 col-span-12",children:p})]}),a]});var N=G;
1
+ "use strict";"use client";var d=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var g=(p,t)=>{for(var a in t)d(p,a,{get:t[a],enumerable:!0})},n=(p,t,a,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of s(t))!f.call(p,o)&&o!==a&&d(p,o,{get:()=>t[o],enumerable:!(l=r(t,o))||l.enumerable});return p};var x=p=>n(d({},"__esModule",{value:!0}),p);var G={};g(G,{default:()=>u});module.exports=x(G);var e=require("react/jsx-runtime"),m=require("react"),i=require("../../../../components/index.js"),c=require("../../hooks/useStickyFlip.js");const R=({BoxLeftGallery:p,BoxRightDetail:t,BoxBottomSummary:a})=>{const l=(0,m.useRef)(null),o=(0,m.useRef)(null);return(0,c.useStickyFlip)(l,o),(0,e.jsxs)("div",{id:"ipc-product-card",className:"laptop-md:pt-6 laptop-md:px-grid",children:[(0,e.jsxs)(i.Grid,{className:"ipc-box-grid laptop-md:gap-x-4 lg-desktop:gap-6 gap-8 laptop:gap-y-8 laptop-md:gap-y-8",children:[(0,e.jsx)(i.GridItem,{ref:l,className:"ipc-box-left-grid-item laptop:px-0 laptop-md:col-start-1 laptop-md:col-span-8 laptop-md:sticky laptop-md:top-[124px] col-span-12 h-fit",children:p}),(0,e.jsx)(i.GridItem,{ref:o,className:"ipc-box-right-grid-item laptop-md:col-start-9 laptop-md:col-span-4 col-span-12",children:t})]}),a]})};var u=R;
@@ -1 +1 @@
1
- "use strict";var q=Object.create;var p=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var W=Object.getPrototypeOf,$=Object.prototype.hasOwnProperty;var G=(t,o)=>{for(var e in o)p(t,e,{get:o[e],enumerable:!0})},S=(t,o,e,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of U(o))!$.call(t,i)&&i!==e&&p(t,i,{get:()=>o[i],enumerable:!(n=z(o,i))||n.enumerable});return t};var H=(t,o,e)=>(e=t!=null?q(W(t)):{},S(o||!t||!t.__esModule?p(e,"default",{value:t,enumerable:!0}):e,t)),I=t=>S(p({},"__esModule",{value:!0}),t);var Q={};G(Q,{default:()=>K});module.exports=I(Q);var a=require("react/jsx-runtime"),l=require("../../../../../components/index.js"),P=require("../../../../AiuiProvider/index.js"),T=require("../../../BizProductProvider.js"),f=require("react"),c=require("../../../utils/index.js"),g=require("../../../utils/textFormat.js"),k=require("../../../hooks/useBenefits.js"),A=H(require("../../CartActionButtons/index.js"));const J=({totalSavingsSlot:t,renderComparePrice:o}={})=>{const{copyWriting:e,locale:n="us",trackingData:i,currencyCode:d}=(0,P.useAiuiContext)(),{variant:r,finalPrice:M,totalSavings:m,isLogin:x,comparePrice:C,onAddToCart:D,onBuyNow:B,savingDetail:b,addToCartLoading:F,buyNowLoading:R,notifyMeMode:L,onNotifyMeClick:E,discount:V,memberFunctionResult:y}=(0,T.useBizProductContext)(),O=(0,k.useBenefits)({variant:r}),{commonCoupon:s,memberDiscount:u}=O,_=i?.showComparePrice??!0,j=(0,f.useMemo)(()=>(0,g.replaceTemplate)(e?.totalSavings||"",{amount:(0,c.formatPrice)({amount:m,currencyCode:r.price.currencyCode,locale:d==="CAD"?"us":n||"us"})}),[e?.totalSavings,m,r.price.currencyCode,n]),v=(0,f.useMemo)(()=>{if(!e?.unlockedSaving)return;const N=s?.enable?Number(s?.config?.fixed_value||0):0,h=u?.enable?u.config?.amount??0:0,w=Math.round((y?.withoutCouponMaxMemberTotalSave?Math.max(h,N):h+N)*100)/100;if(!(w<=0))return(0,g.replaceTemplate)(e.unlockedSaving,{amount:(0,c.formatPrice)({amount:w,currencyCode:r.price.currencyCode,locale:d==="CAD"?"us":n||"us"})})},[e?.unlockedSaving,s?.enable,s?.config?.fixed_value,u?.enable,u?.config?.amount,y,r.price.currencyCode,n]);return(0,a.jsxs)(l.Container,{childClassName:"tablet:flex tablet:justify-end tablet:gap-8 laptop-md:px-0 desktop:px-0 tablet:items-center tablet:gap-4",className:"laptop-md:border-none laptop-md:py-0 border-t border-[#E4E5E6] bg-white py-3",children:[r.availableForSale?(0,a.jsxs)("div",{className:"laptop-md:items-end flex flex-col justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(l.Text,{className:"tablet:text-2xl laptop-md:text-xl lg-desktop:text-2xl text-xl font-bold !leading-[1.2]",html:(0,c.formatPrice)({amount:parseFloat(M.toFixed(2)),currencyCode:r.price.currencyCode,locale:d==="CAD"?"us":n||"us"})}),o?o({comparePrice:C}):_&&(m>0||b?.member>0&&x)&&(0,a.jsx)(l.Text,{className:"tablet:text-2xl laptop-md:text-xl lg-desktop:text-2xl text-xl font-bold !leading-[1.2] text-[#4A4C56] line-through",html:(0,c.formatPrice)({amount:C,currencyCode:r.price.currencyCode,locale:d==="CAD"?"us":n||"us"})}),b?.member>0&&x&&(0,a.jsx)(l.Text,{className:"bg-brand-0 rounded px-1 py-[2px] text-sm font-bold text-white",html:e?.memberPrice||"Member Price"})]}),t||(m>0||b?.member>0&&x?(0,a.jsx)(l.Text,{className:"text-brand-0 tablet:text-end laptop-md:text-xl lg-desktop:text-2xl whitespace-nowrap text-[18px] font-bold !leading-[1.2]",html:`${j}`}):v?(0,a.jsx)(l.Text,{className:"text-info-quaternary tablet:text-end laptop-md:text-xl lg-desktop:text-2xl whitespace-nowrap text-[18px] font-bold !leading-[1.2]",html:v}):null)]}):(0,a.jsx)(l.Text,{className:"text-[20px] font-bold text-[#999999]",html:e?.soldOut??"Sold Out"}),(0,a.jsx)("div",{className:"tablet:mt-0 mt-2 flex items-center gap-2",children:(0,a.jsx)(A.default,{mode:L,availableForSale:r.availableForSale,addToCartText:e?.addToCart??"Add to Cart",buyNowText:e?.buyNow??"Buy Now",addToCartLoading:F,buyNowLoading:R,onAddToCart:D,onBuyNow:B,onNotifyMeClick:E,notifyMeText:e?.notifyMe,notifyMeClassName:"w-full"})})]})};var K=J;
1
+ "use strict";var q=Object.create;var u=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var W=Object.getPrototypeOf,$=Object.prototype.hasOwnProperty;var G=(t,o)=>{for(var e in o)u(t,e,{get:o[e],enumerable:!0})},S=(t,o,e,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of U(o))!$.call(t,c)&&c!==e&&u(t,c,{get:()=>o[c],enumerable:!(r=z(o,c))||r.enumerable});return t};var H=(t,o,e)=>(e=t!=null?q(W(t)):{},S(o||!t||!t.__esModule?u(e,"default",{value:t,enumerable:!0}):e,t)),I=t=>S(u({},"__esModule",{value:!0}),t);var Q={};G(Q,{default:()=>K});module.exports=I(Q);var a=require("react/jsx-runtime"),l=require("../../../../../components/index.js"),P=require("../../../../AiuiProvider/index.js"),k=require("../../../BizProductProvider.js"),f=require("react"),i=require("../../../utils/index.js"),g=require("../../../utils/textFormat.js"),T=require("../../../hooks/useBenefits.js"),A=H(require("../../CartActionButtons/index.js"));const J=({totalSavingsSlot:t,renderComparePrice:o}={})=>{const{copyWriting:e,locale:r="us",trackingData:c,currencyCode:d}=(0,P.useAiuiContext)(),{variant:n,finalPrice:M,totalSavings:s,isLogin:x,comparePrice:C,onAddToCart:D,onBuyNow:B,savingDetail:b,addToCartLoading:F,buyNowLoading:R,notifyMeMode:L,onNotifyMeClick:E,discount:V,memberFunctionResult:y}=(0,k.useBizProductContext)(),O=(0,T.useBenefits)({variant:n}),{commonCoupon:p,memberDiscount:m}=O,_=c?.showComparePrice??!0,j=(0,f.useMemo)(()=>(0,g.replaceTemplate)(e?.totalSavings||"",{amount:(0,i.formatPrice)({amount:s,currencyCode:n.price.currencyCode,locale:d==="CAD"?"us":r||"us"})}),[e?.totalSavings,s,n.price.currencyCode,r]),v=(0,f.useMemo)(()=>{if(!e?.unlockedSaving)return;const h=p?.enable?Number(p?.config?.fixed_value||0):0,N=m?.enable?m.config?.amount??0:0,w=Math.round((y?.withoutCouponMaxMemberTotalSave?Math.max(N,h):N+h)*100)/100;if(!(w<=0))return(0,g.replaceTemplate)(e.unlockedSaving,{amount:(0,i.formatPrice)({amount:w,currencyCode:n.price.currencyCode,locale:d==="CAD"?"us":r||"us"})})},[e?.unlockedSaving,p?.enable,p?.config?.fixed_value,m?.enable,m?.config?.amount,y,n.price.currencyCode,r]);return(0,a.jsxs)(l.Container,{childClassName:"tablet:flex tablet:justify-end tablet:gap-8 laptop-md:px-0 desktop:px-0 lg-desktop:px-grid tablet:items-center tablet:gap-4",className:"laptop-md:border-none laptop-md:py-0 border-t border-[#E4E5E6] bg-white py-3",children:[n.availableForSale?(0,a.jsxs)("div",{className:"ipc-purchase-bar-price laptop-md:items-end flex flex-col justify-between",children:[(0,a.jsxs)("div",{className:"ipc-purchase-bar-price-row flex items-center gap-1",children:[(0,a.jsx)(l.Text,{className:"ipc-purchase-bar-final-price tablet:text-2xl laptop-md:text-xl lg-desktop:text-2xl text-xl font-bold !leading-[1.2]",html:(0,i.formatPrice)({amount:parseFloat(M.toFixed(2)),currencyCode:n.price.currencyCode,locale:d==="CAD"?"us":r||"us"})}),o?o({comparePrice:C}):_&&(s>0||b?.member>0&&x)&&(0,a.jsx)(l.Text,{className:"ipc-purchase-bar-compare-price tablet:text-2xl laptop-md:text-xl lg-desktop:text-2xl text-xl font-bold !leading-[1.2] text-[#4A4C56] line-through",html:(0,i.formatPrice)({amount:C,currencyCode:n.price.currencyCode,locale:d==="CAD"?"us":r||"us"})}),b?.member>0&&x&&(0,a.jsx)(l.Text,{className:"ipc-purchase-bar-member-badge bg-brand-0 rounded px-1 py-[2px] text-sm font-bold text-white",html:e?.memberPrice||"Member Price"})]}),t||(s>0||b?.member>0&&x?(0,a.jsx)(l.Text,{className:"ipc-purchase-bar-total-savings text-brand-0 tablet:text-end laptop-md:text-xl lg-desktop:text-2xl whitespace-nowrap text-[18px] font-bold !leading-[1.2]",html:`${j}`}):v?(0,a.jsx)(l.Text,{className:"ipc-purchase-bar-unlocked-saving text-info-quaternary tablet:text-end laptop-md:text-xl lg-desktop:text-2xl whitespace-nowrap text-[18px] font-bold !leading-[1.2]",html:v}):null)]}):(0,a.jsx)(l.Text,{className:"text-[20px] font-bold text-[#999999]",html:e?.soldOut??"Sold Out"}),(0,a.jsx)("div",{className:"tablet:mt-0 mt-2 flex items-center gap-2",children:(0,a.jsx)(A.default,{mode:L,availableForSale:n.availableForSale,addToCartText:e?.addToCart??"Add to Cart",buyNowText:e?.buyNow??"Buy Now",addToCartLoading:F,buyNowLoading:R,onAddToCart:D,onBuyNow:B,onNotifyMeClick:E,notifyMeText:e?.notifyMe,notifyMeClassName:"w-full"})})]})};var K=J;
@@ -0,0 +1,20 @@
1
+ import { type RefObject } from 'react';
2
+ export declare const FLIP_DURATION = 250;
3
+ export declare const FLIP_EASING = "cubic-bezier(0.2, 0, 0, 1)";
4
+ export declare const FLIP_DESKTOP_QUERY = "(min-width: 1280px)";
5
+ export declare function parseTranslateY(transform: string | null | undefined): number;
6
+ /** 旧视觉位置与新布局位置的差值,小于 MIN_DELTA 视为没有位移 */
7
+ export declare function computeFlipDelta(prevVisualTop: number, nextLayoutTop: number): number;
8
+ /**
9
+ * sticky 元素被容器底部顶住时,观察元素高度变化会让它瞬间跳位。
10
+ * 这里在布局变化后、绘制前,用 FLIP 把这次跳动变成平滑过渡,不改变滚动位置。
11
+ *
12
+ * - 仅在 `query` 命中且未开启 prefers-reduced-motion 时生效
13
+ * - resize 期间不播放动画,避免拖动窗口时拖尾
14
+ * - 动画中再次触发会从当前视觉位置重新起动画
15
+ */
16
+ export declare function useStickyFlip(targetRef: RefObject<HTMLElement | null>, observedRef: RefObject<HTMLElement | null>, options?: {
17
+ query?: string;
18
+ duration?: number;
19
+ easing?: string;
20
+ }): void;
@@ -0,0 +1 @@
1
+ "use strict";var f=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var Y=Object.getOwnPropertyNames;var q=Object.prototype.hasOwnProperty;var N=(e,t)=>{for(var n in t)f(e,n,{get:t[n],enumerable:!0})},P=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Y(t))!q.call(e,r)&&r!==n&&f(e,r,{get:()=>t[r],enumerable:!(s=C(t,r))||s.enumerable});return e};var U=e=>P(f({},"__esModule",{value:!0}),e);var H={};N(H,{FLIP_DESKTOP_QUERY:()=>z,FLIP_DURATION:()=>M,FLIP_EASING:()=>O,computeFlipDelta:()=>I,parseTranslateY:()=>_,useStickyFlip:()=>k});module.exports=U(H);var h=require("react");const M=250,O="cubic-bezier(0.2, 0, 0, 1)",z="(min-width: 1280px)",j="(prefers-reduced-motion: reduce)",B=.5,$=150;function _(e){if(!e||e==="none")return 0;const t=e.match(/^matrix3d\((.+)\)$/);if(t)return parseFloat(t[1].split(",")[13])||0;const n=e.match(/^matrix\((.+)\)$/);return n&&parseFloat(n[1].split(",")[5])||0}function I(e,t){const n=e-t;return Math.abs(n)<B?0:n}function k(e,t,n={}){const{query:s=z,duration:r=M,easing:T=O}=n;(0,h.useEffect)(()=>{const o=e.current,E=t.current;if(!o||!E||typeof ResizeObserver>"u")return;const S=window.matchMedia(s),F=window.matchMedia(j),D=()=>S.matches&&!F.matches&&typeof o.animate=="function";let i=null,u=!1,d,b=!1;const w=()=>i?_(getComputedStyle(o).transform):0;let m=o.getBoundingClientRect().top;const c=()=>{m=o.getBoundingClientRect().top-w()},a=()=>{const p=i;i=null,p?.cancel()},A=()=>{if(!b){b=!0,c();return}if(u||!D()){a(),c();return}const p=m+w();a();const v=o.getBoundingClientRect().top;m=v;const y=I(p,v);if(!y)return;const l=o.animate([{transform:`translateY(${y}px)`},{transform:"translateY(0)"}],{duration:r,easing:T}),L=()=>{i===l&&(i=null)};l.onfinish=L,l.oncancel=L,i=l},g=()=>c(),x=()=>{u=!0,a(),c(),clearTimeout(d),d=setTimeout(()=>{u=!1,c()},$)},R=new ResizeObserver(A);return R.observe(E),window.addEventListener("scroll",g,{passive:!0}),window.addEventListener("resize",x),()=>{R.disconnect(),window.removeEventListener("scroll",g),window.removeEventListener("resize",x),clearTimeout(d),a()}},[e,t,s,r,T])}
@@ -1 +1 @@
1
- "use strict";var c=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var L=Object.prototype.hasOwnProperty;var k=(t,a)=>{for(var s in a)c(t,s,{get:a[s],enumerable:!0})},b=(t,a,s,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let p of C(a))!L.call(t,p)&&p!==s&&c(t,p,{get:()=>a[p],enumerable:!(i=u(a,p))||i.enumerable});return t};var y=t=>b(c({},"__esModule",{value:!0}),t);var z={};k(z,{default:()=>q});module.exports=y(z);var e=require("react/jsx-runtime"),F=require("react"),l=require("../../components/index.js"),m=require("../../helpers/utils.js"),h=require("../../shared/Styles.js");const x=9,N=3,M=(t,a)=>Array.from({length:Math.ceil(t.length/a)},(s,i)=>t.slice(i*a,(i+1)*a)),T=()=>(0,e.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)("path",{d:"M7.32745 1.36274C7.60256 0.805304 8.39744 0.805305 8.67255 1.36274L10.1766 4.41035C10.2859 4.63171 10.4971 4.78514 10.7413 4.82063L14.1046 5.30934C14.7197 5.39873 14.9654 6.15471 14.5202 6.58861L12.0866 8.96084C11.9098 9.13315 11.8292 9.3814 11.8709 9.62469L12.4454 12.9743C12.5505 13.587 11.9074 14.0542 11.3572 13.765L8.349 12.1835C8.13051 12.0686 7.86949 12.0686 7.65099 12.1835L4.64282 13.765C4.0926 14.0542 3.44953 13.587 3.55461 12.9743L4.12912 9.62469C4.17085 9.3814 4.09019 9.13315 3.91342 8.96084L1.47976 6.58861C1.03462 6.15471 1.28025 5.39873 1.89542 5.30934L5.25866 4.82063C5.50294 4.78514 5.71412 4.63171 5.82336 4.41035L7.32745 1.36274Z",fill:"#F77234"})}),R=()=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"13",viewBox:"0 0 14 13",fill:"none",children:(0,e.jsx)("path",{d:"M6.07501 0.418036C6.35012 -0.139398 7.145 -0.139397 7.42011 0.418037L8.9242 3.46565C9.03344 3.68701 9.24462 3.84043 9.4889 3.87593L12.8521 4.36464C13.4673 4.45403 13.7129 5.21 13.2678 5.64391L10.8341 8.01614C10.6574 8.18844 10.5767 8.43669 10.6184 8.67999L11.1929 12.0296C11.298 12.6423 10.655 13.1095 10.1047 12.8203L7.09656 11.2388C6.87807 11.1239 6.61705 11.1239 6.39855 11.2388L3.39038 12.8203C2.84016 13.1095 2.19709 12.6423 2.30217 12.0296L2.87668 8.67999C2.91841 8.43669 2.83775 8.18844 2.66098 8.01614L0.227318 5.64391C-0.21782 5.21 0.0278133 4.45403 0.642979 4.36464L4.00622 3.87593C4.2505 3.84043 4.46167 3.68701 4.57092 3.46565L6.07501 0.418036Z",fill:"#75787F"})}),A=({item:t})=>(0,e.jsxs)("div",{className:"rounded-box bg-container-primary text-info-primary min-l:p-[24px] laptop:h-[240px] desktop:h-[240px] lg-desktop:h-[240px] flex h-[240px] grow flex-col justify-between p-[16px]",children:[(0,e.jsxs)("div",{className:"flex justify-between",children:[(0,e.jsxs)("div",{className:"flex flex-col",children:[(0,e.jsx)(l.Text,{size:4,html:t.name,className:"laptop:block hidden"}),(0,e.jsx)(l.Text,{size:2,html:t.name,className:"laptop:hidden block"}),(0,e.jsxs)("div",{className:"mt-2 flex gap-1",children:[new Array(t.rating||5).fill(0).map((a,s)=>(0,e.jsx)(T,{},s)),new Array(5-(t.rating||5)).fill(0).map((a,s)=>(0,e.jsx)("span",{children:R()},s))]})]}),(0,e.jsxs)(l.Avatar,{size:"small",className:" laptop:size-[48px] size-[40px]",children:[(0,e.jsx)(l.AvatarImage,{src:t.avatar?.url,alt:t.avatar?.alt||""}),(0,e.jsx)(l.AvatarFallback,{children:(t.name??"").slice(0,2).toUpperCase()})]})]}),(0,e.jsx)("div",{children:(0,e.jsx)(l.Heading,{as:"h6",size:2,html:`${t.comment}`,className:"line-clamp-5 min-h-[120px] text-wrap"})})]});function I({data:t,className:a,...s}){const{title:i,subtitle:p,items:r=[],theme:d="light",titleTag:f}=t,v=M(r.length<x?[...r,...r.slice(x-r.length)]:r,N).slice(0,3).map(n=>[...n,...n]);return(0,e.jsxs)("section",{...s,className:(0,m.cn)("text-info-primary flex flex-col items-center justify-center py-3",a,{"aiui-dark":d==="dark"}),children:[(0,e.jsx)(l.Heading,{as:f??"h2",size:4,html:i,className:"laptop:text-center w-full text-left"}),(0,e.jsx)(l.Text,{size:2,html:p,className:"tablet:mt-[16px] tablet:text-[14px] laptop:text-center laptop:text-[14px] desktop:mt-[8px] desktop:text-[16px] lg-desktop:text-[18px] mt-[4px] w-full text-left text-[14px]"}),(0,e.jsx)("div",{className:(0,m.cn)("mask-fade-vertical laptop:h-[384px] desktop:h-[512px] lg-desktop:h-[640px] mt-[24px] flex h-[480px] gap-4 overflow-hidden"),children:v.map((n,o)=>(0,e.jsx)("div",{className:(0,m.cn)("animate-marquee-scroll relative flex h-fit flex-1 flex-col gap-4",{"top-10":o===0||o===2,"hidden desktop:flex":o===1,"hidden tablet:flex":o===2}),children:n.map((g,w)=>(0,e.jsx)(A,{item:g},w))},o))})]})}var q=(0,h.withLayout)(I);
1
+ "use strict";var c=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var L=(t,a)=>{for(var s in a)c(t,s,{get:a[s],enumerable:!0})},b=(t,a,s,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let p of k(a))!C.call(t,p)&&p!==s&&c(t,p,{get:()=>a[p],enumerable:!(i=u(a,p))||i.enumerable});return t};var y=t=>b(c({},"__esModule",{value:!0}),t);var z={};L(z,{default:()=>q});module.exports=y(z);var e=require("react/jsx-runtime"),F=require("react"),l=require("../../components/index.js"),m=require("../../helpers/utils.js"),h=require("../../shared/Styles.js");const x=9,N=3,M=(t,a)=>Array.from({length:Math.ceil(t.length/a)},(s,i)=>t.slice(i*a,(i+1)*a)),T=()=>(0,e.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)("path",{d:"M7.32745 1.36274C7.60256 0.805304 8.39744 0.805305 8.67255 1.36274L10.1766 4.41035C10.2859 4.63171 10.4971 4.78514 10.7413 4.82063L14.1046 5.30934C14.7197 5.39873 14.9654 6.15471 14.5202 6.58861L12.0866 8.96084C11.9098 9.13315 11.8292 9.3814 11.8709 9.62469L12.4454 12.9743C12.5505 13.587 11.9074 14.0542 11.3572 13.765L8.349 12.1835C8.13051 12.0686 7.86949 12.0686 7.65099 12.1835L4.64282 13.765C4.0926 14.0542 3.44953 13.587 3.55461 12.9743L4.12912 9.62469C4.17085 9.3814 4.09019 9.13315 3.91342 8.96084L1.47976 6.58861C1.03462 6.15471 1.28025 5.39873 1.89542 5.30934L5.25866 4.82063C5.50294 4.78514 5.71412 4.63171 5.82336 4.41035L7.32745 1.36274Z",fill:"#F77234"})}),R=()=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"13",viewBox:"0 0 14 13",fill:"none",children:(0,e.jsx)("path",{d:"M6.07501 0.418036C6.35012 -0.139398 7.145 -0.139397 7.42011 0.418037L8.9242 3.46565C9.03344 3.68701 9.24462 3.84043 9.4889 3.87593L12.8521 4.36464C13.4673 4.45403 13.7129 5.21 13.2678 5.64391L10.8341 8.01614C10.6574 8.18844 10.5767 8.43669 10.6184 8.67999L11.1929 12.0296C11.298 12.6423 10.655 13.1095 10.1047 12.8203L7.09656 11.2388C6.87807 11.1239 6.61705 11.1239 6.39855 11.2388L3.39038 12.8203C2.84016 13.1095 2.19709 12.6423 2.30217 12.0296L2.87668 8.67999C2.91841 8.43669 2.83775 8.18844 2.66098 8.01614L0.227318 5.64391C-0.21782 5.21 0.0278133 4.45403 0.642979 4.36464L4.00622 3.87593C4.2505 3.84043 4.46167 3.68701 4.57092 3.46565L6.07501 0.418036Z",fill:"#75787F"})}),A=({item:t})=>(0,e.jsxs)("div",{className:"rounded-box bg-container-primary text-info-primary laptop:p-[24px] laptop:h-[192px] desktop:h-[192px] lg-desktop:h-[240px] flex h-[176px] grow flex-col justify-between p-[16px]",children:[(0,e.jsxs)("div",{className:"flex justify-between",children:[(0,e.jsxs)("div",{className:"flex flex-col",children:[(0,e.jsx)(l.Text,{size:4,html:t.name,className:"desktop:block hidden"}),(0,e.jsx)(l.Text,{size:2,html:t.name,className:"desktop:hidden block"}),(0,e.jsxs)("div",{className:"mt-2 flex gap-1",children:[new Array(t.rating||5).fill(0).map((a,s)=>(0,e.jsx)(T,{},s)),new Array(5-(t.rating||5)).fill(0).map((a,s)=>(0,e.jsx)("span",{children:R()},s))]})]}),(0,e.jsxs)(l.Avatar,{size:"small",className:" desktop:size-[48px] size-[40px]",children:[(0,e.jsx)(l.AvatarImage,{src:t.avatar?.url,alt:t.avatar?.alt||""}),(0,e.jsx)(l.AvatarFallback,{children:(t.name??"").slice(0,2).toUpperCase()})]})]}),(0,e.jsx)("div",{children:(0,e.jsx)(l.Heading,{as:"h6",size:2,html:`${t.comment}`,className:"line-clamp-3 text-wrap"})})]});function I({data:t,className:a,...s}){const{title:i,subtitle:p,items:r=[],theme:d="light",titleTag:f}=t,v=M(r.length<x?[...r,...r.slice(x-r.length)]:r,N).slice(0,3).map(n=>[...n,...n]);return(0,e.jsxs)("section",{...s,className:(0,m.cn)("text-info-primary flex flex-col items-center justify-center py-3",a,{"aiui-dark":d==="dark"}),children:[(0,e.jsx)(l.Heading,{as:f??"h2",size:4,html:i,className:"laptop:text-center w-full text-left"}),(0,e.jsx)(l.Text,{size:2,html:p,className:"tablet:mt-[16px] tablet:text-[14px] laptop:text-center laptop:text-[14px] desktop:mt-[8px] desktop:text-[16px] lg-desktop:text-[18px] mt-[4px] w-full text-left text-[14px]"}),(0,e.jsx)("div",{className:(0,m.cn)("mask-fade-vertical laptop:h-[384px] desktop:h-[512px] lg-desktop:h-[640px] mt-[24px] flex h-[480px] gap-4 overflow-hidden"),children:v.map((n,o)=>(0,e.jsx)("div",{className:(0,m.cn)("animate-marquee-scroll relative flex h-fit flex-1 flex-col gap-4",{"desktop:top-10":o===0,"top-10":o===2,"hidden desktop:flex":o===1,"hidden tablet:flex":o===2}),children:n.map((g,w)=>(0,e.jsx)(A,{item:g},w))},o))})]})}var q=(0,h.withLayout)(I);
@@ -1 +1 @@
1
- "use strict";"use client";var ze=Object.create;var R=Object.defineProperty;var Me=Object.getOwnPropertyDescriptor;var Le=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Ie=Object.prototype.hasOwnProperty;var Ee=(l,a)=>{for(var s in a)R(l,s,{get:a[s],enumerable:!0})},ae=(l,a,s,d)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of Le(a))!Ie.call(l,n)&&n!==s&&R(l,n,{get:()=>a[n],enumerable:!(d=Me(a,n))||d.enumerable});return l};var oe=(l,a,s)=>(s=l!=null?ze(Re(l)):{},ae(a||!l||!l.__esModule?R(s,"default",{value:l,enumerable:!0}):s,l)),Pe=l=>ae(R({},"__esModule",{value:!0}),l);var Be={};Ee(Be,{default:()=>$e});module.exports=Pe(Be);var e=require("react/jsx-runtime"),t=require("react"),ie=require("lodash"),r=require("../../helpers/utils.js"),ce=require("../../shared/Styles.js"),F=oe(require("../../components/button.js")),w=require("../../components/index.js"),pe=require("../VideoModal/index.js"),q=require("@payloadcms/richtext-lexical/html"),de=require("react-intersection-observer"),ue=require("../../hooks/useExposure.js"),h=oe(require("../../helpers/ScrollLoadVideo.js")),f=require("gsap"),U=require("gsap/dist/SplitText"),I=require("gsap/dist/ScrollTrigger");const Se="media_player_base",_e="video";f.gsap.registerPlugin(I.ScrollTrigger,U.SplitText);const re=({defaultConverters:l})=>({...l,text:a=>{const{node:s}=a;return s.$&&s.$.color?`<span class="lexical-${s.$.color}">${s.text}</span>`:s.text}}),ne=(0,t.forwardRef)(({className:l="",id:a,onBtnClick:s,data:{title:d,videoTitle:n,btnText:k,youtubeId:Y,video:N,mobileVideo:O,theme:E,img:H,shape:Ce,titleAnimation:T="fade-in",variant:me,headline:G,paragraphs:P,metrics:S,...fe},..._},ge)=>{const{sticky:p}=fe,[J,K]=(0,t.useState)(!1),[Q,xe]=(0,t.useState)(0),[ve,ye]=(0,t.useState)(0),[z,be]=(0,t.useState)(0),[W,$]=(0,t.useState)(!1),g=(0,t.useRef)(null),X=(0,t.useRef)(null),c=(0,t.useRef)(null),M=(0,t.useRef)(null),Z=(0,t.useRef)(null),L=(0,t.useRef)(null),v=(0,t.useRef)(null),B=(0,t.useRef)(null),C=(0,t.useRef)(null),{ref:A,inView:u}=(0,de.useInView)();(0,t.useImperativeHandle)(ge,()=>c.current);const y=typeof d=="string"?d:d&&(0,q.convertLexicalToHTML)({data:d,converters:re}),ee=typeof n=="string"?n:n&&(0,q.convertLexicalToHTML)({data:n,converters:re});(0,t.useEffect)(()=>{u?(g.current?.play(),K(!0)):(g.current?.pause(),K(!1))},[u]);const V=(0,ie.debounce)(()=>{if(c.current){const o=c.current.getBoundingClientRect(),i=window.innerHeight,b=window.scrollY||window.pageYOffset,m=o.bottom+b,x=document.documentElement.scrollHeight-m;xe(x>i?i:x)}if(c.current){const o=c.current.clientHeight,i=window.innerHeight;ye(o+i)}},600);(0,t.useEffect)(()=>(V(),window.addEventListener("resize",V),()=>{window.removeEventListener("resize",V)}),[]),(0,t.useEffect)(()=>{function o(){if(!M.current||T!=="fade-in")return;const b=M.current?.clientHeight||80;L.current=new U.SplitText(M.current,{type:"words",wordsClass:"word"});const m=L.current.words;f.gsap.set(m,{opacity:0}),v.current&&f.gsap.set(v.current,{opacity:0}),B.current=I.ScrollTrigger.create({trigger:c.current,start:"top center-=10%",end:`top+=${b*1.5+80}px center-=10%`,scrub:!0,onUpdate:te=>{const x=te.progress,le=m.length,we=1/le,se=.5;m.forEach((ke,Ne)=>{const He=Ne/le*(1-se),Te=we*(1+se);let D=(x-He)/Te;D=Math.max(0,Math.min(D,1)),f.gsap.set(ke,{opacity:D})}),f.gsap.set(X.current,{opacity:x}),v.current&&f.gsap.set(v.current,{opacity:x>=.6?1:0})}})}function i(){C.current=I.ScrollTrigger.create({trigger:c.current,start:"bottom bottom",end:"bottom top",scrub:!0,onUpdate:b=>{const m=b.progress;be(m)}})}return u&&(o(),i()),()=>{L.current&&L.current.revert(),B.current&&B.current.kill(),C.current&&C.current.kill()}},[T,u]),(0,ue.useExposure)(Z,{componentType:_e,componentName:Se,componentTitle:y});const he=(0,t.useMemo)(()=>u&&z>0&&z<.9?3:u?2:1,[z,u]);if(me==="text-layout")return(0,e.jsxs)("div",{..._,ref:c,className:(0,r.cn)("relative flex w-full items-center overflow-hidden","aspect-w-[390] aspect-h-[660] tablet:aspect-w-[768] tablet:aspect-h-[660]","laptop:aspect-w-[1024] laptop:aspect-h-[520] desktop:aspect-w-[1440] desktop:aspect-h-[700]","lg-desktop:aspect-w-[1920] lg-desktop:aspect-h-[930]",{"aiui-dark":E==="dark"},l),children:[(0,e.jsx)("div",{ref:A,className:"pointer-events-none absolute inset-0"}),(0,e.jsxs)("div",{className:"absolute inset-0 z-0",children:[(0,e.jsx)(h.default,{videoRef:g,poster:H?.url||"",src:N?.url,className:"tablet:block hidden size-full",videoClassName:"size-full object-cover",muted:!0,loop:!0,playsInline:!0,autoplay:!0,"webkit-playsinline":!0,"x5-playsinline":!0}),(0,e.jsx)(h.default,{videoRef:g,poster:H?.url||"",src:O?.url||N?.url,className:"tablet:hidden block size-full",videoClassName:"size-full object-cover",muted:!0,loop:!0,playsInline:!0,autoplay:!0,"webkit-playsinline":!0,"x5-playsinline":!0}),(0,e.jsx)("div",{className:"absolute inset-0 bg-black/30"})]}),(0,e.jsxs)("div",{className:(0,r.cn)("relative z-10 mx-auto flex w-full max-w-[1920px] flex-col","gap-6 px-4 py-10","tablet:gap-8 tablet:px-8","laptop:flex-row laptop:gap-12 laptop:px-16","desktop:gap-16 desktop:px-20","lg-desktop:px-24"),children:[(0,e.jsx)("div",{className:"laptop:w-1/2 w-full shrink-0",children:G&&(0,e.jsx)(w.Heading,{as:"h2",size:5,className:"text-info-primary",children:G})}),(0,e.jsxs)("div",{className:(0,r.cn)("laptop:w-1/2 flex w-full flex-col justify-start","tablet:gap-8 laptop:gap-10 desktop:gap-12 gap-6"),children:[P&&P.length>0&&(0,e.jsx)("div",{className:"tablet:gap-4 flex flex-col gap-3",children:P.map((o,i)=>(0,e.jsx)(w.Text,{as:"p",size:3,className:"text-info-primary lg-desktop:text-[18px] opacity-90",children:typeof o=="string"?o:o.text},i))}),S&&S.length>0&&(0,e.jsx)("div",{className:(0,r.cn)("tablet:grid-cols-3 grid grid-cols-2","tablet:gap-6 desktop:gap-8 gap-4"),children:S.map((o,i)=>(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)("span",{className:"text-info-primary desktop:text-[40px] lg-desktop:text-[48px] text-balance text-[32px] font-bold leading-[100%] tracking-[-0.04em]",children:o.value}),(0,e.jsx)(w.Text,{as:"span",size:2,className:"text-info-primary opacity-80",children:o.label})]},i))})]})]})]});const j="lg-desktop:aspect-w-[1920] lg-desktop:aspect-h-[930] desktop:aspect-w-[1024] desktop:aspect-h-[520] laptop:aspect-w-[1024] laptop:aspect-h-[520] tablet:aspect-w-[768] tablet:aspect-h-[660] aspect-w-[390] aspect-h-[660]";return(0,e.jsxs)(e.Fragment,{children:[p&&(0,e.jsx)("div",{..._,ref:c,className:(0,r.cn)("pointer-events-none relative z-10",j,{"aiui-dark":E==="dark"},l),children:(0,e.jsx)("div",{ref:A,children:!T&&(0,e.jsxs)("div",{className:"media-content absolute left-1/2 top-1/2 z-20 w-full -translate-x-1/2 -translate-y-1/2 px-4 text-center",children:[y&&!J&&(0,e.jsx)("div",{className:"lg-desktop:text-[64px] text-info-primary text-center text-[40px] font-bold leading-none lg:text-5xl",dangerouslySetInnerHTML:{__html:y}}),ee&&J&&(0,e.jsx)("div",{className:"lg-desktop:text-[64px] text-info-primary text-center text-[40px] font-bold leading-none lg:text-5xl",dangerouslySetInnerHTML:{__html:ee}}),k&&(0,e.jsx)(F.default,{variant:"link",className:(0,r.cn)("member-equity-button-secondary text-info-primary"),onClick:()=>{$(!0),s&&s?.()},children:k})]})})}),(0,e.jsxs)("div",{...p?{}:_,style:p?{marginBottom:`-${Q}px`,marginTop:`-${ve}px`,zIndex:he}:{zIndex:5},className:(0,r.cn)("relative",l),children:[(0,e.jsx)("div",{className:"sticky top-0 ",children:(0,e.jsxs)("div",{id:a,className:(0,r.cn)("relative overflow-hidden",p?"h-screen w-full":j,{"aiui-dark":E==="dark"}),children:[T==="fade-in"&&(0,e.jsxs)("div",{className:(0,r.cn)("absolute z-30 flex w-full flex-col items-center justify-center gap-4 px-4 text-center",p?"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2":"left-0 top-0"),children:[y&&(0,e.jsx)("div",{ref:M,className:"media-player-base-title lg-desktop:text-[64px] text-info-primary text-[40px] font-bold leading-none lg:text-5xl",dangerouslySetInnerHTML:{__html:y}}),k&&(0,e.jsx)(F.default,{ref:v,variant:"link",className:(0,r.cn)("media-player-base-button member-equity-button-secondary text-info-primary"),onClick:()=>{$(!0),s&&s?.()},children:k})]}),(0,e.jsxs)("div",{className:"media-cover left-0 top-0 h-screen w-screen overflow-hidden",style:{height:`${102-z*100}vh`},children:[(0,e.jsx)(h.default,{videoRef:g,poster:H?.url||"",src:N?.url,className:"tablet:block hidden size-full",videoClassName:"object-cover",muted:!0,loop:!0,playsInline:!0,autoplay:!0,"webkit-playsinline":!0,"x5-playsinline":!0}),(0,e.jsx)(h.default,{videoRef:g,poster:H?.url||"",src:O?.url||N?.url,className:"tablet:hidden block size-full",videoClassName:"object-cover",muted:!0,loop:!0,playsInline:!0,autoplay:!0,"webkit-playsinline":!0,"x5-playsinline":!0}),(0,e.jsx)("div",{ref:X,className:"absolute left-0 top-0 z-10 size-full opacity-0",style:{background:"rgba(0, 0, 0, 0.2)"}})]})]})}),p&&(0,e.jsx)("div",{className:(0,r.cn)(p&&"pointer-events-none relative box-content block",j),style:p?{height:`${Q}px`}:{},ref:Z})]}),W&&Y&&(0,e.jsx)(pe.VideoModal,{visible:W,youTubeId:Y,onCloseModal:()=>$(!1)})]})});ne.displayName="MediaPlayerBase";var $e=(0,ce.withLayout)(ne);
1
+ "use strict";"use client";var ze=Object.create;var R=Object.defineProperty;var Me=Object.getOwnPropertyDescriptor;var Le=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Ie=Object.prototype.hasOwnProperty;var Ee=(s,o)=>{for(var l in o)R(s,l,{get:o[l],enumerable:!0})},oe=(s,o,l,d)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of Le(o))!Ie.call(s,n)&&n!==l&&R(s,n,{get:()=>o[n],enumerable:!(d=Me(o,n))||d.enumerable});return s};var ae=(s,o,l)=>(l=s!=null?ze(Re(s)):{},oe(o||!s||!s.__esModule?R(l,"default",{value:s,enumerable:!0}):l,s)),Pe=s=>oe(R({},"__esModule",{value:!0}),s);var Be={};Ee(Be,{default:()=>$e});module.exports=Pe(Be);var e=require("react/jsx-runtime"),t=require("react"),ie=require("lodash"),r=require("../../helpers/utils.js"),ce=require("../../shared/Styles.js"),F=ae(require("../../components/button.js")),k=require("../../components/index.js"),pe=require("../VideoModal/index.js"),q=require("@payloadcms/richtext-lexical/html"),de=require("react-intersection-observer"),ue=require("../../hooks/useExposure.js"),h=ae(require("../../helpers/ScrollLoadVideo.js")),f=require("gsap"),U=require("gsap/dist/SplitText"),I=require("gsap/dist/ScrollTrigger");const _e="media_player_base",Se="video";f.gsap.registerPlugin(I.ScrollTrigger,U.SplitText);const re=({defaultConverters:s})=>({...s,text:o=>{const{node:l}=o;return l.$&&l.$.color?`<span class="lexical-${l.$.color}">${l.text}</span>`:l.text}}),ne=(0,t.forwardRef)(({className:s="",id:o,onBtnClick:l,data:{title:d,videoTitle:n,btnText:w,youtubeId:Y,video:N,mobileVideo:O,theme:E,img:H,shape:Ce,titleAnimation:T="fade-in",variant:me,headline:G,paragraphs:P,metrics:_,...fe},...S},ge)=>{const{sticky:p}=fe,[J,K]=(0,t.useState)(!1),[Q,xe]=(0,t.useState)(0),[ve,ye]=(0,t.useState)(0),[z,be]=(0,t.useState)(0),[W,$]=(0,t.useState)(!1),g=(0,t.useRef)(null),X=(0,t.useRef)(null),c=(0,t.useRef)(null),M=(0,t.useRef)(null),Z=(0,t.useRef)(null),L=(0,t.useRef)(null),v=(0,t.useRef)(null),B=(0,t.useRef)(null),C=(0,t.useRef)(null),{ref:A,inView:u}=(0,de.useInView)();(0,t.useImperativeHandle)(ge,()=>c.current);const y=typeof d=="string"?d:d&&(0,q.convertLexicalToHTML)({data:d,converters:re}),ee=typeof n=="string"?n:n&&(0,q.convertLexicalToHTML)({data:n,converters:re});(0,t.useEffect)(()=>{u?(g.current?.play(),K(!0)):(g.current?.pause(),K(!1))},[u]);const V=(0,ie.debounce)(()=>{if(c.current){const a=c.current.getBoundingClientRect(),i=window.innerHeight,b=window.scrollY||window.pageYOffset,m=a.bottom+b,x=document.documentElement.scrollHeight-m;xe(x>i?i:x)}if(c.current){const a=c.current.clientHeight,i=window.innerHeight;ye(a+i)}},600);(0,t.useEffect)(()=>(V(),window.addEventListener("resize",V),()=>{window.removeEventListener("resize",V)}),[]),(0,t.useEffect)(()=>{function a(){if(!M.current||T!=="fade-in")return;const b=M.current?.clientHeight||80;L.current=new U.SplitText(M.current,{type:"words",wordsClass:"word"});const m=L.current.words;f.gsap.set(m,{opacity:0}),v.current&&f.gsap.set(v.current,{opacity:0}),B.current=I.ScrollTrigger.create({trigger:c.current,start:"top center-=10%",end:`top+=${b*1.5+80}px center-=10%`,scrub:!0,onUpdate:te=>{const x=te.progress,se=m.length,ke=1/se,le=.5;m.forEach((we,Ne)=>{const He=Ne/se*(1-le),Te=ke*(1+le);let D=(x-He)/Te;D=Math.max(0,Math.min(D,1)),f.gsap.set(we,{opacity:D})}),f.gsap.set(X.current,{opacity:x}),v.current&&f.gsap.set(v.current,{opacity:x>=.6?1:0})}})}function i(){C.current=I.ScrollTrigger.create({trigger:c.current,start:"bottom bottom",end:"bottom top",scrub:!0,onUpdate:b=>{const m=b.progress;be(m)}})}return u&&(a(),i()),()=>{L.current&&L.current.revert(),B.current&&B.current.kill(),C.current&&C.current.kill()}},[T,u]),(0,ue.useExposure)(Z,{componentType:Se,componentName:_e,componentTitle:y});const he=(0,t.useMemo)(()=>u&&z>0&&z<.9?3:u?2:1,[z,u]);if(me==="text-layout")return(0,e.jsxs)("div",{...S,ref:c,className:(0,r.cn)("relative flex w-full items-center overflow-hidden","aspect-w-[390] aspect-h-[660] tablet:aspect-w-[768] tablet:aspect-h-[660]","laptop:aspect-w-[1024] laptop:aspect-h-[520] desktop:aspect-w-[1440] desktop:aspect-h-[700]","lg-desktop:aspect-w-[1920] lg-desktop:aspect-h-[930]",{"aiui-dark":E==="dark"},s),children:[(0,e.jsx)("div",{ref:A,className:"pointer-events-none absolute inset-0"}),(0,e.jsxs)("div",{className:"absolute inset-0 z-0",children:[(0,e.jsx)(h.default,{videoRef:g,poster:H?.url||"",src:N?.url,className:"tablet:block hidden size-full",videoClassName:"size-full object-cover",muted:!0,loop:!0,playsInline:!0,autoplay:!0,"webkit-playsinline":!0,"x5-playsinline":!0}),(0,e.jsx)(h.default,{videoRef:g,poster:H?.url||"",src:O?.url||N?.url,className:"tablet:hidden block size-full",videoClassName:"size-full object-cover",muted:!0,loop:!0,playsInline:!0,autoplay:!0,"webkit-playsinline":!0,"x5-playsinline":!0}),(0,e.jsx)("div",{className:"absolute inset-0 bg-black/30"})]}),(0,e.jsxs)("div",{className:(0,r.cn)("relative z-10 mx-auto flex w-full max-w-[1920px] flex-col","gap-6 p-4","tablet:gap-8 tablet:px-8","laptop:grid laptop:grid-cols-[837fr_960fr] laptop:gap-12 laptop:px-16","desktop:gap-16 desktop:px-20 desktop:py-8","lg-desktop:py-12"),children:[(0,e.jsx)("div",{className:"w-full",children:G&&(0,e.jsx)(k.Heading,{as:"h2",size:4,className:"text-info-primary",children:G})}),(0,e.jsxs)("div",{className:(0,r.cn)("flex w-full flex-col justify-start","desktop:gap-8 lg-desktop:gap-12 gap-4"),children:[P&&P.length>0&&(0,e.jsx)("div",{className:"tablet:gap-4 flex flex-col gap-3",children:P.map((a,i)=>(0,e.jsx)(k.Text,{as:"p",size:2,className:"text-info-primary desktop:text-[16px] lg-desktop:text-[18px] opacity-90",children:typeof a=="string"?a:a.text},i))}),_&&_.length>0&&(0,e.jsx)("div",{className:(0,r.cn)("tablet:grid-cols-3 grid grid-cols-2","desktop:gap-8 lg-desktop:gap-12 gap-4"),children:_.map((a,i)=>(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)("span",{className:"text-info-primary desktop:text-[56px] lg-desktop:text-[64px] text-balance text-[40px] font-bold leading-[100%] tracking-[-0.04em]",children:a.value}),(0,e.jsx)(k.Text,{as:"span",size:2,className:"text-info-primary desktop:text-[16px] lg-desktop:text-[18px] opacity-80",children:a.label})]},i))})]})]})]});const j="lg-desktop:aspect-w-[1920] lg-desktop:aspect-h-[930] desktop:aspect-w-[1024] desktop:aspect-h-[520] laptop:aspect-w-[1024] laptop:aspect-h-[520] tablet:aspect-w-[768] tablet:aspect-h-[660] aspect-w-[390] aspect-h-[660]";return(0,e.jsxs)(e.Fragment,{children:[p&&(0,e.jsx)("div",{...S,ref:c,className:(0,r.cn)("pointer-events-none relative z-10",j,{"aiui-dark":E==="dark"},s),children:(0,e.jsx)("div",{ref:A,children:!T&&(0,e.jsxs)("div",{className:"media-content absolute left-1/2 top-1/2 z-20 w-full -translate-x-1/2 -translate-y-1/2 px-4 text-center",children:[y&&!J&&(0,e.jsx)("div",{className:"lg-desktop:text-[64px] text-info-primary text-center text-[40px] font-bold leading-none lg:text-5xl",dangerouslySetInnerHTML:{__html:y}}),ee&&J&&(0,e.jsx)("div",{className:"lg-desktop:text-[64px] text-info-primary text-center text-[40px] font-bold leading-none lg:text-5xl",dangerouslySetInnerHTML:{__html:ee}}),w&&(0,e.jsx)(F.default,{variant:"link",className:(0,r.cn)("member-equity-button-secondary text-info-primary"),onClick:()=>{$(!0),l&&l?.()},children:w})]})})}),(0,e.jsxs)("div",{...p?{}:S,style:p?{marginBottom:`-${Q}px`,marginTop:`-${ve}px`,zIndex:he}:{zIndex:5},className:(0,r.cn)("relative",s),children:[(0,e.jsx)("div",{className:"sticky top-0 ",children:(0,e.jsxs)("div",{id:o,className:(0,r.cn)("relative overflow-hidden",p?"h-screen w-full":j,{"aiui-dark":E==="dark"}),children:[T==="fade-in"&&(0,e.jsxs)("div",{className:(0,r.cn)("absolute z-30 flex w-full flex-col items-center justify-center gap-4 px-4 text-center",p?"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2":"left-0 top-0"),children:[y&&(0,e.jsx)("div",{ref:M,className:"media-player-base-title lg-desktop:text-[64px] text-info-primary text-[40px] font-bold leading-none lg:text-5xl",dangerouslySetInnerHTML:{__html:y}}),w&&(0,e.jsx)(F.default,{ref:v,variant:"link",className:(0,r.cn)("media-player-base-button member-equity-button-secondary text-info-primary"),onClick:()=>{$(!0),l&&l?.()},children:w})]}),(0,e.jsxs)("div",{className:"media-cover left-0 top-0 h-screen w-screen overflow-hidden",style:{height:`${102-z*100}vh`},children:[(0,e.jsx)(h.default,{videoRef:g,poster:H?.url||"",src:N?.url,className:"tablet:block hidden size-full",videoClassName:"object-cover",muted:!0,loop:!0,playsInline:!0,autoplay:!0,"webkit-playsinline":!0,"x5-playsinline":!0}),(0,e.jsx)(h.default,{videoRef:g,poster:H?.url||"",src:O?.url||N?.url,className:"tablet:hidden block size-full",videoClassName:"object-cover",muted:!0,loop:!0,playsInline:!0,autoplay:!0,"webkit-playsinline":!0,"x5-playsinline":!0}),(0,e.jsx)("div",{ref:X,className:"absolute left-0 top-0 z-10 size-full opacity-0",style:{background:"rgba(0, 0, 0, 0.2)"}})]})]})}),p&&(0,e.jsx)("div",{className:(0,r.cn)(p&&"pointer-events-none relative box-content block",j),style:p?{height:`${Q}px`}:{},ref:Z})]}),W&&Y&&(0,e.jsx)(pe.VideoModal,{visible:W,youTubeId:Y,onCloseModal:()=>$(!1)})]})});ne.displayName="MediaPlayerBase";var $e=(0,ce.withLayout)(ne);
@@ -1,4 +1,4 @@
1
- "use strict";"use client";var T=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var V=Object.getOwnPropertyNames;var _=Object.prototype.hasOwnProperty;var q=(t,i)=>{for(var n in i)T(t,n,{get:i[n],enumerable:!0})},O=(t,i,n,d)=>{if(i&&typeof i=="object"||typeof i=="function")for(let l of V(i))!_.call(t,l)&&l!==n&&T(t,l,{get:()=>i[l],enumerable:!(d=j(i,l))||d.enumerable});return t};var $=t=>O(T({},"__esModule",{value:!0}),t);var Y={};q(Y,{default:()=>Q});module.exports=$(Y);var e=require("react/jsx-runtime"),a=require("react"),E=require("react-responsive"),u=require("../../helpers/utils.js"),P=require("../../shared/Styles.js"),s=require("../../components/index.js"),k=require("../../hooks/useExposure.js"),y=require("swiper/react"),R=require("swiper/modules"),ee=require("swiper/css");const U="media",M="media_scene_switcher",N=3e3,G=({data:t,configuration:i,theme:n})=>{const d=(0,a.useRef)(null),l=i?.isActive||!1;return(0,k.useExposure)(d,{componentType:U,componentName:M,componentTitle:t?.title,position:(i?.index??0)+1}),(0,e.jsxs)("div",{ref:d,className:(0,u.cn)("media-scene-switcher-item rounded-box cursor-pointer overflow-hidden transition-colors","relative text-[#6D6D6F]",l?"opacity-100":"opacity-60",{"bg-[#1D1D1F] text-white":l,"bg-[#EAEAEC] text-[#1D1D1F]":l&&n==="light"}),onClick:()=>i?.onItemClick?.(i?.index??0),children:[(0,e.jsxs)("div",{className:"media-scene-switcher-item-content laptop:gap-[32px] laptop:p-[12px] desktop:gap-[48px] desktop:p-[24px] flex items-center justify-between gap-[24px]",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"media-scene-switcher-item-title flex-1",children:(0,e.jsx)(s.Heading,{as:"h6",size:2,html:t?.title})}),t?.description&&l&&(0,e.jsx)(s.Text,{size:2,className:"media-scene-switcher-item-description tablet:text-base desktop:text-lg mt-1 text-sm font-bold",html:t.description})]}),(0,e.jsx)("div",{className:(0,u.cn)("media-scene-switcher-item-badge rounded-btn border-[1.6px] px-[18px] py-[7px]",n==="dark"?"border-[#B5B7BB]":"border-[#4A4C56]",{"!border-[#F5F6F7]":n==="dark"&&l}),children:(0,e.jsx)(s.Heading,{as:"h6",size:2,html:t?.tag})})]}),(0,e.jsx)("div",{className:(0,u.cn)("media-scene-switcher-progress absolute bottom-0 left-0 h-[2px] w-full",{"media-scene-switcher-progress-active":l}),style:{transform:"translate3d(-100%, 0, 0)",background:"linear-gradient(90deg, #3ad1ff 0%, #008cd6 100%)",animation:l?`progress-bar ${N}ms ease-out`:"none"}})]})},K=({data:t,configuration:i,theme:n})=>{const d=(0,a.useRef)(null),l=i?.isActive||!1,c=(0,E.useMediaQuery)({query:"(max-width: 768px)"});(0,k.useExposure)(d,{componentType:U,componentName:M,componentTitle:t?.title,position:(i?.index??0)+1});const v=c&&t?.mobVideoUrl?.url?t.mobVideoUrl.url:t?.videoUrl?.url,r=c&&t?.mobImageUrl?.url?t.mobImageUrl.url:t?.imageUrl?.url,h=r||t?.videoUrl?.thumbnailURL||"";return(0,e.jsxs)("div",{ref:d,className:(0,u.cn)("media-scene-switcher-mobile-item rounded-box flex max-w-full flex-col overflow-hidden",{"aiui-dark":n==="dark"}),children:[(0,e.jsx)("div",{className:"media-scene-switcher-mobile-media aspect-w-[296] aspect-h-[256] relative w-full shrink-0 overflow-hidden",children:v?(0,e.jsx)("video",{src:v,playsInline:!0,autoPlay:!0,loop:!0,muted:!0,poster:h,className:"size-full object-cover"}):r?(0,e.jsx)(s.Picture,{className:"size-full",imgClassName:"size-full object-cover",source:r,alt:t?.title||""}):null}),(0,e.jsxs)("div",{className:(0,u.cn)("media-scene-switcher-mobile-bottom bg-container-primary text-info-primary flex flex-1 items-start justify-between gap-[8px] p-[16px]"),children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"media-scene-switcher-mobile-title line-clamp-3",children:(0,e.jsx)(s.Heading,{as:"h6",size:2,html:t?.title})}),t?.description&&(0,e.jsx)(s.Text,{size:2,className:"media-scene-switcher-item-description tablet:text-base desktop:text-lg mt-1 line-clamp-2 text-sm font-bold",html:t.description})]}),(0,e.jsx)("div",{className:(0,u.cn)("media-scene-switcher-mobile-badge rounded-btn shrink-0 border-[1.6px] px-[12px] py-[5px]",n==="dark"?"border-[#B5B7BB]":"border-[#4A4C56]",{"!border-[#F5F6F7]":n==="dark"&&l}),children:(0,e.jsx)(s.Heading,{as:"h6",size:1,html:t?.tag})})]}),(0,e.jsx)("div",{className:(0,u.cn)("media-scene-switcher-progress h-[2px] w-full",{"media-scene-switcher-progress-active":l}),style:{transform:"translate3d(-100%, 0, 0)",background:"linear-gradient(90deg, #3ad1ff 0%, #008cd6 100%)",animation:l?`progress-bar ${N}ms ease-out`:"none"}})]})},A=(0,a.forwardRef)(({sectionData:t,id:i,className:n="",tabId:d},l)=>{const{title:c,subtitle:v,items:r=[],theme:h="light",layout:x,titleIcon:f}=t,[g,b]=(0,a.useState)(0),[m,B]=(0,a.useState)(0),D=(0,a.useRef)(null),w=(0,a.useRef)(0),z=(0,E.useMediaQuery)({query:"(max-width: 1023px)"});(0,a.useImperativeHandle)(l,()=>D.current),(0,a.useEffect)(()=>{if(!(z||r.length===0))return w.current=window.setInterval(()=>{b(o=>(o+1)%r.length)},N),()=>{w.current&&window.clearInterval(w.current)}},[z,r.length]);const F=o=>{b(o),w.current&&window.clearInterval(w.current),w.current=window.setInterval(()=>{b(p=>(p+1)%r.length)},N)},S=r[g],J=S?.videoUrl?.url,X=S?.imageUrl?.url||S?.videoUrl?.thumbnailURL||"";return(0,e.jsxs)("section",{id:i,ref:D,className:(0,u.cn)("media-scene-switcher text-info-primary w-full",{"aiui-dark":h==="dark"},n),children:[(0,e.jsxs)("div",{className:"media-scene-switcher-desktop laptop:gap-[24px] lg-desktop:gap-[40px] laptop:flex hidden w-full items-stretch gap-[20px] overflow-hidden",children:[(0,e.jsx)("div",{className:(0,u.cn)("media-scene-switcher-preview rounded-box laptop:flex-1 relative aspect-[824/640] max-w-[824px] shrink-0 overflow-hidden",{"order-1":x==="right"}),children:r.map((o,p)=>{const C=o?.videoUrl?.url,I=o?.imageUrl?.url,H=I||o?.videoUrl?.thumbnailURL||"";return(0,e.jsx)("div",{className:(0,u.cn)("media-scene-switcher-media rounded-box absolute inset-0 hidden size-full overflow-hidden",{"inline-block":p===g}),children:C?(0,e.jsx)("video",{src:C,playsInline:!0,autoPlay:!0,loop:!0,muted:!0,poster:H,className:"size-full object-cover"}):I?(0,e.jsx)(s.Picture,{className:"size-full",imgClassName:"size-full object-cover",source:I,alt:o?.title||""}):null},o.id||p)})}),(0,e.jsxs)("div",{className:"media-scene-switcher-sidebar laptop:flex-1 flex shrink-0 flex-col justify-between",children:[(0,e.jsxs)("div",{className:"media-scene-switcher-header flex flex-col",children:[(0,e.jsxs)("div",{className:"desktop:gap-2 flex items-center gap-1",children:[c&&(0,e.jsx)(s.Heading,{as:"h3",html:c,size:4,className:"media-scene-switcher-title text-info-primary tablet:!text-[40px] desktop:!text-[56px] lg-desktop:!text-[64px] text-[40px] leading-none text-[#00BEFA]"}),f&&(0,e.jsx)(s.Picture,{source:f.url,alt:f.alt||"title icon",className:"desktop:h-8 lg-desktop:h-10 h-6",imgClassName:"!w-auto h-full"})]}),v&&(0,e.jsx)(s.Text,{as:"span",size:4,html:v,className:"media-scene-switcher-subtitle tablet:text-[14px] laptop:text-[14px] desktop:text-[16px] lg-desktop:text-[18px] relative -top-2 mt-3 text-[14px]"})]}),(0,e.jsx)("div",{className:"media-scene-switcher-list flex flex-col gap-[16px]",children:r.map((o,p)=>(0,e.jsx)(G,{data:o,configuration:{index:p,isActive:p===g,onItemClick:F},theme:h},o.id||p))})]})]}),(0,e.jsxs)("div",{className:"media-scene-switcher-mobile laptop:hidden flex flex-col overflow-visible",children:[(0,e.jsxs)("div",{className:"media-scene-switcher-mobile-header",children:[(0,e.jsxs)("div",{className:"desktop:gap-2 flex items-center gap-1",children:[c&&(0,e.jsx)(s.Heading,{as:"h2",html:c,size:2,className:"media-scene-switcher-title tablet:!text-[40px] desktop:!text-[56px] lg-desktop:!text-[64px] text-[40px] leading-tight text-[#00BEFA]"}),f&&(0,e.jsx)(s.Picture,{source:f.url,alt:f.alt||"title icon",className:"desktop:h-8 lg-desktop:h-10 h-6",imgClassName:"!w-auto h-full"})]}),v&&(0,e.jsx)(s.Text,{as:"span",size:4,html:v,className:"media-scene-switcher-subtitle text-[14px]"})]}),(0,e.jsx)("div",{className:"media-scene-switcher-mobile-swiper mt-[24px] overflow-visible",children:(0,e.jsx)(y.Swiper,{onSlideChange:o=>B(o.realIndex),initialSlide:0,modules:[R.Autoplay],loop:r.length>1,autoplay:r.length>1?{delay:N,disableOnInteraction:!1}:!1,spaceBetween:12,breakpoints:{0:{slidesPerView:1},374:{slidesPerView:1.2},768:{slidesPerView:2.3}},watchSlidesProgress:!0,className:"w-full !overflow-visible",children:r.map((o,p)=>(0,e.jsx)(y.SwiperSlide,{className:"!h-auto max-w-full",children:(0,e.jsx)(K,{data:o,configuration:{index:p,isActive:p===m},theme:h})},o.id||p))},d)})]})]})});A.displayName="SceneSection";const L=(0,a.forwardRef)(({className:t="",data:i,id:n},d)=>{const l=i?.isShowTab??!1,c=i?.tabs,v=i?.tabAlign??"left",[r,h]=(0,a.useState)(c?.[0]?.id??""),x=(0,a.useRef)(null);(0,a.useImperativeHandle)(d,()=>x.current);const g=c?.find(m=>m.id===r)??i;(0,k.useExposure)(x,{componentType:U,componentName:M,componentTitle:g?.title});const b=`
1
+ "use strict";"use client";var T=Object.defineProperty;var H=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var V=Object.prototype.hasOwnProperty;var _=(t,i)=>{for(var a in i)T(t,a,{get:i[a],enumerable:!0})},q=(t,i,a,d)=>{if(i&&typeof i=="object"||typeof i=="function")for(let s of j(i))!V.call(t,s)&&s!==a&&T(t,s,{get:()=>i[s],enumerable:!(d=H(i,s))||d.enumerable});return t};var O=t=>q(T({},"__esModule",{value:!0}),t);var Q={};_(Q,{default:()=>K});module.exports=O(Q);var e=require("react/jsx-runtime"),r=require("react"),M=require("react-responsive"),x=require("../../helpers/utils.js"),L=require("../../shared/Styles.js"),l=require("../../components/index.js"),k=require("../../hooks/useExposure.js"),y=require("swiper/react"),B=require("swiper/modules"),J=require("swiper/css");const I="media",A="media_scene_switcher",g=3e3,$=({data:t,configuration:i,theme:a})=>{const d=(0,r.useRef)(null),s=i?.isActive||!1;return(0,k.useExposure)(d,{componentType:I,componentName:A,componentTitle:t?.title,position:(i?.index??0)+1}),(0,e.jsxs)("div",{ref:d,className:(0,x.cn)("media-scene-switcher-item rounded-box flex cursor-pointer flex-col overflow-hidden transition-colors","relative text-[#4A4C56]",s?"opacity-100":"opacity-60",{"bg-[#1E2024] text-white":s&&a==="dark","bg-[#EAEAEC] text-[#080A0F]":s&&a==="light"}),onClick:()=>i?.onItemClick?.(i?.index??0),children:[(0,e.jsxs)("div",{className:"media-scene-switcher-item-content laptop:p-[12px] desktop:p-[24px] flex flex-1 items-center justify-between gap-[24px]",children:[(0,e.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[4px]",children:[(0,e.jsx)(l.Heading,{as:"h6",size:2,className:"text-inherit",html:t?.title}),s&&t?.description&&(0,e.jsx)(l.Text,{size:2,className:"media-scene-switcher-item-description laptop:text-[14px] desktop:text-[16px] lg-desktop:text-[18px] line-clamp-2 font-bold leading-[1.4]",html:t.description})]}),(0,e.jsx)("div",{className:(0,x.cn)("media-scene-switcher-item-badge border-[1.6px] text-center","laptop:min-w-[36px] desktop:min-w-[42px] laptop:rounded-[16px] desktop:rounded-[14px] laptop:px-[6px] desktop:px-[8px] laptop:pt-[3px] laptop:pb-[4px] desktop:pt-[5px] desktop:pb-[4px]","laptop:text-[14px] desktop:text-[16px] font-bold leading-[1.2]",a==="dark"?"border-[#B5B7BB]":"border-[#4A4C56]",{"!border-[#F5F6F7]":a==="dark"&&s}),children:t?.tag})]}),(0,e.jsx)("div",{className:(0,x.cn)("media-scene-switcher-progress absolute bottom-0 left-0 h-[2px] w-full",{"media-scene-switcher-progress-active":s}),style:{transform:"translate3d(-100%, 0, 0)",background:"#00BEFA",animation:s?`progress-bar ${g}ms ease-out`:"none"}})]})},G=({data:t,configuration:i,theme:a})=>{const d=(0,r.useRef)(null),s=i?.isActive||!1,c=(0,M.useMediaQuery)({query:"(max-width: 768px)"});(0,k.useExposure)(d,{componentType:I,componentName:A,componentTitle:t?.title,position:(i?.index??0)+1});const f=c&&t?.mobVideoUrl?.url?t.mobVideoUrl.url:t?.videoUrl?.url,n=c&&t?.mobImageUrl?.url?t.mobImageUrl.url:t?.imageUrl?.url,u=n||t?.videoUrl?.thumbnailURL||"";return(0,e.jsxs)("div",{ref:d,className:(0,x.cn)("media-scene-switcher-mobile-item rounded-box flex h-full max-w-full flex-col overflow-hidden",{"aiui-dark":a==="dark","bg-[#EAEAEC]":s&&a==="light","bg-[#1E2024]":s&&a==="dark"}),children:[(0,e.jsx)("div",{className:"media-scene-switcher-mobile-media relative h-[258px] w-full shrink-0 overflow-hidden",children:f?(0,e.jsx)("video",{src:f,playsInline:!0,autoPlay:!0,loop:!0,muted:!0,poster:u,className:"size-full object-cover"}):n?(0,e.jsx)(l.Picture,{className:"size-full",imgClassName:"size-full object-cover",source:n,alt:t?.title||""}):null}),(0,e.jsxs)("div",{className:(0,x.cn)("media-scene-switcher-mobile-bottom text-info-primary flex flex-1 items-start justify-between gap-[8px] p-[16px]",!s&&"bg-container-primary"),children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"media-scene-switcher-mobile-title line-clamp-3",children:(0,e.jsx)(l.Heading,{as:"h6",size:2,className:"text-inherit",html:t?.title})}),t?.description&&(0,e.jsx)(l.Text,{size:2,className:"media-scene-switcher-item-description mt-[4px] line-clamp-2 text-[14px] font-bold leading-[1.4]",html:t.description})]}),(0,e.jsx)("div",{className:(0,x.cn)("media-scene-switcher-mobile-badge min-w-[36px] shrink-0 border-[1.6px] text-center","rounded-[16px] px-[6px] pb-[4px] pt-[3px] text-[14px] font-bold leading-[1.2]",a==="dark"?"border-[#B5B7BB]":"border-[#4A4C56]",{"!border-[#F5F6F7]":a==="dark"&&s}),children:t?.tag})]}),(0,e.jsx)("div",{className:(0,x.cn)("media-scene-switcher-progress h-[2px] w-full",{"media-scene-switcher-progress-active":s}),style:{transform:"translate3d(-100%, 0, 0)",background:"#00BEFA",animation:s?`progress-bar ${g}ms ease-out`:"none"}})]})},E=(0,r.forwardRef)(({sectionData:t,id:i,className:a="",tabId:d},s)=>{const{title:c,subtitle:f,items:n=[],theme:u="light",layout:h,titleIcon:v}=t,[N,b]=(0,r.useState)(0),[m,D]=(0,r.useState)(0),C=(0,r.useRef)(null),w=(0,r.useRef)(0),U=(0,M.useMediaQuery)({query:"(max-width: 1023px)"});(0,r.useImperativeHandle)(s,()=>C.current),(0,r.useEffect)(()=>{if(!(U||n.length===0))return w.current=window.setInterval(()=>{b(o=>(o+1)%n.length)},g),()=>{w.current&&window.clearInterval(w.current)}},[U,n.length]);const F=o=>{b(o),w.current&&window.clearInterval(w.current),w.current=window.setInterval(()=>{b(p=>(p+1)%n.length)},g)};return(0,e.jsxs)("section",{id:i,ref:C,className:(0,x.cn)("media-scene-switcher text-info-primary w-full",{"aiui-dark":u==="dark"},a),children:[(0,e.jsxs)("div",{className:"media-scene-switcher-desktop laptop:gap-[40px] laptop:flex hidden w-full items-stretch overflow-hidden",children:[(0,e.jsx)("div",{className:(0,x.cn)("media-scene-switcher-preview rounded-box laptop:h-[560px] relative min-w-0 shrink-0 overflow-hidden","laptop:w-[824px] laptop:flex-none",{"order-1":h==="right"}),children:n.map((o,p)=>{const z=o?.videoUrl?.url,S=o?.imageUrl?.url,R=S||o?.videoUrl?.thumbnailURL||"";return(0,e.jsx)("div",{className:(0,x.cn)("media-scene-switcher-media rounded-box absolute inset-0 hidden size-full overflow-hidden",{"inline-block":p===N}),children:z?(0,e.jsx)("video",{src:z,playsInline:!0,autoPlay:!0,loop:!0,muted:!0,poster:R,className:"size-full object-cover"}):S?(0,e.jsx)(l.Picture,{className:"size-full",imgClassName:"size-full object-cover",source:S,alt:o?.title||""}):null},o.id||p)})}),(0,e.jsxs)("div",{className:"media-scene-switcher-sidebar laptop:flex-1 flex min-w-0 shrink-0 flex-col justify-between",children:[(0,e.jsx)("div",{className:"media-scene-switcher-header flex flex-col gap-[16px]",children:(0,e.jsxs)("div",{className:"flex flex-col gap-[4px]",children:[(0,e.jsxs)("div",{className:"flex items-center gap-[8px]",children:[v&&(0,e.jsx)(l.Picture,{source:v.url,alt:v.alt||"title icon",className:"laptop:size-[40px] h-6 shrink-0",imgClassName:"!size-full !object-contain"}),c&&(0,e.jsx)(l.Heading,{as:"h3",html:c,size:4,className:"media-scene-switcher-title text-info-primary text-[#00BEFA]"})]}),f&&(0,e.jsx)(l.Text,{as:"span",html:f,className:"media-scene-switcher-subtitle laptop:text-[18px] text-[14px] font-bold leading-[1.4] text-[#080A0F]"})]})}),(0,e.jsx)("div",{className:"media-scene-switcher-list laptop:gap-[24px] flex flex-col",children:n.map((o,p)=>(0,e.jsx)($,{data:o,configuration:{index:p,isActive:p===N,onItemClick:F},theme:u},o.id||p))})]})]}),(0,e.jsxs)("div",{className:"media-scene-switcher-mobile laptop:hidden flex flex-col overflow-visible",children:[(0,e.jsx)("div",{className:"media-scene-switcher-mobile-header flex flex-col gap-[8px]",children:(0,e.jsxs)("div",{className:"flex flex-col gap-[4px]",children:[(0,e.jsxs)("div",{className:"flex items-center gap-[4px]",children:[v&&(0,e.jsx)(l.Picture,{source:v.url,alt:v.alt||"title icon",className:"size-[24px] shrink-0",imgClassName:"!size-full !object-contain"}),c&&(0,e.jsx)(l.Heading,{as:"h2",html:c,size:4,className:"media-scene-switcher-title text-[#00BEFA]"})]}),f&&(0,e.jsx)(l.Text,{as:"span",html:f,className:"media-scene-switcher-subtitle text-[14px] font-bold leading-[1.4] text-[#080A0F]"})]})}),(0,e.jsx)("div",{className:"media-scene-switcher-mobile-swiper mt-[24px] overflow-visible",children:(0,e.jsx)(y.Swiper,{onSlideChange:o=>D(o.realIndex),initialSlide:0,modules:[B.Autoplay],loop:n.length>1,autoplay:n.length>1?{delay:g,disableOnInteraction:!1}:!1,spaceBetween:12,breakpoints:{0:{slidesPerView:1},374:{slidesPerView:1.2},768:{slidesPerView:2.3}},watchSlidesProgress:!0,className:"w-full !overflow-visible",children:n.map((o,p)=>(0,e.jsx)(y.SwiperSlide,{className:"!h-auto max-w-full",children:(0,e.jsx)(G,{data:o,configuration:{index:p,isActive:p===m},theme:u})},o.id||p))},d)})]})]})});E.displayName="SceneSection";const P=(0,r.forwardRef)(({className:t="",data:i,id:a},d)=>{const s=i?.isShowTab??!1,c=i?.tabs,f=i?.tabAlign??"left",[n,u]=(0,r.useState)(c?.[0]?.id??""),h=(0,r.useRef)(null);(0,r.useImperativeHandle)(d,()=>h.current);const N=c?.find(m=>m.id===n)??i;(0,k.useExposure)(h,{componentType:I,componentName:A,componentTitle:N?.title});const b=`
2
2
  @keyframes progress-bar {
3
3
  from {
4
4
  transform: translate3d(-100%, 0, 0);
@@ -7,4 +7,4 @@
7
7
  transform: translate3d(0, 0, 0);
8
8
  }
9
9
  }
10
- `;return!l||!c||c.length===0?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("style",{children:b}),(0,e.jsx)(A,{ref:x,sectionData:i,id:n,className:t})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("style",{children:b}),(0,e.jsx)("div",{ref:x,children:(0,e.jsxs)(s.Tabs,{value:r,onValueChange:h,align:v,children:[(0,e.jsx)("div",{className:"media-scene-switcher-tabs mb-6",children:(0,e.jsx)(s.TabsList,{children:c.map(m=>(0,e.jsx)(s.TabsTrigger,{value:m.id,children:m.label},m.id))})}),c.map(m=>(0,e.jsx)(s.TabsContent,{value:m.id,children:(0,e.jsx)(A,{sectionData:m,className:t,tabId:m.id})},m.id))]})})]})});L.displayName="MediaSceneSwitcher";var Q=(0,P.withLayout)(L,{style:"overflow: hidden;"});
10
+ `;return!s||!c||c.length===0?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("style",{children:b}),(0,e.jsx)(E,{ref:h,sectionData:i,id:a,className:t})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("style",{children:b}),(0,e.jsx)("div",{ref:h,children:(0,e.jsxs)(l.Tabs,{value:n,onValueChange:u,align:f,children:[(0,e.jsx)("div",{className:"media-scene-switcher-tabs mb-6",children:(0,e.jsx)(l.TabsList,{children:c.map(m=>(0,e.jsx)(l.TabsTrigger,{value:m.id,children:m.label},m.id))})}),c.map(m=>(0,e.jsx)(l.TabsContent,{value:m.id,children:(0,e.jsx)(E,{sectionData:m,className:t,tabId:m.id})},m.id))]})})]})});P.displayName="MediaSceneSwitcher";var K=(0,L.withLayout)(P,{style:"overflow: hidden;"});
@@ -1,4 +1,5 @@
1
1
  import type { Img } from '../../types/props.js';
2
+ export type CircleProgressSemanticName = 'root' | 'ring' | 'inner' | 'image' | 'centerText' | 'centerTextMain' | 'centerTextSub' | 'badge' | 'label';
2
3
  export interface CircleProgressProps {
3
4
  /** 总阶段数 (1-4) */
4
5
  totalSteps?: 1 | 2 | 3 | 4;
@@ -22,8 +23,28 @@ export interface CircleProgressProps {
22
23
  laptopSize?: number;
23
24
  /** 段之间的间隙(像素),默认 3 */
24
25
  gap?: number;
26
+ /**
27
+ * 圆环中间显示的文字(如满减档位优惠 "-£10" / "10% OFF")
28
+ * 与 image 互斥使用:传入 image 时不渲染 centerText
29
+ * 含换行符时按第一行(主文案,大字)和其余行(副文案,小字)分两行展示,如 "£10\nOFF"
30
+ * 字号随断点变化:移动端 12px、tablet 起 16px、desktop 起 18px(副文案比主文案小一档)
31
+ * 可选,默认不渲染(非破坏性:不传时与旧版行为一致)
32
+ */
33
+ centerText?: string;
34
+ /**
35
+ * 中间图片置灰(未达当前档时赠品图变灰)
36
+ * 可选,默认 false
37
+ */
38
+ dimmed?: boolean;
39
+ /**
40
+ * 中间图片上的售罄角标文案(如 "Sold Out")
41
+ * 可选,默认不渲染
42
+ */
43
+ dimmedBadge?: string;
25
44
  /** 自定义类名 */
26
45
  className?: string;
46
+ /** 各部分的自定义样式类名,用于覆盖默认样式 */
47
+ classNames?: Partial<Record<CircleProgressSemanticName, string>>;
27
48
  }
28
49
  /**
29
50
  * 分段式圆形进度条组件
@@ -32,7 +53,7 @@ export interface CircleProgressProps {
32
53
  * 移动端默认 64px,laptop 以上默认 80px
33
54
  */
34
55
  declare const CircleProgress: {
35
- ({ totalSteps, currentStep, image, label, progressColor, labelColor, trackColor, backgroundColor, size, laptopSize, gap, className, }: CircleProgressProps): import("react/jsx-runtime").JSX.Element;
56
+ ({ totalSteps, currentStep, image, label, progressColor, labelColor, trackColor, backgroundColor, size, laptopSize, gap, centerText, dimmed, dimmedBadge, className, classNames, }: CircleProgressProps): import("react/jsx-runtime").JSX.Element;
36
57
  displayName: string;
37
58
  };
38
59
  export default CircleProgress;
@@ -1 +1,2 @@
1
- "use strict";"use client";var Y=Object.create;var x=Object.defineProperty;var B=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var L=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var q=(e,t)=>{for(var s in t)x(e,s,{get:t[s],enumerable:!0})},P=(e,t,s,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of F(t))!T.call(e,a)&&a!==s&&x(e,a,{get:()=>t[a],enumerable:!(o=B(t,a))||o.enumerable});return e};var H=(e,t,s)=>(s=e!=null?Y(L(e)):{},P(t||!e||!e.__esModule?x(s,"default",{value:e,enumerable:!0}):s,e)),J=e=>P(x({},"__esModule",{value:!0}),e);var U={};q(U,{default:()=>Q});module.exports=J(U);var r=require("react/jsx-runtime"),K=H(require("react")),y=require("../../components/index.js"),v=require("../../helpers/index.js");const M=({totalSteps:e=4,currentStep:t=0,image:s,label:o,progressColor:a="var(--brand-color-0)",labelColor:z="var(--marketing-color-1)",trackColor:j="#DADCE0",backgroundColor:A="#EAEAEC",size:m=64,laptopSize:u=96,gap:$=3,className:w})=>{const d=Math.max(m,u),C=6,l=(d-C)/2,c=d/2,E=K.useMemo(()=>{const b=($+C)/l*(180/Math.PI),G=(360-b*e)/e,f=n=>n*Math.PI/180,I=(n,i)=>{const p=n-90,h=i-90,R=c+l*Math.cos(f(p)),D=c+l*Math.sin(f(p)),O=c+l*Math.cos(f(h)),W=c+l*Math.sin(f(h)),X=i-n>180?1:0;return`M ${R} ${D} A ${l} ${l} 0 ${X} 1 ${O} ${W}`},k=[];let N=e===2?-45:0;for(let n=0;n<e;n++){const i=N+b/2,p=i+G,h=n<t;k.push({path:I(i,p),isCompleted:h,index:n}),N=p+b/2}return k},[e,t,$,l,c]);return(0,r.jsxs)("div",{className:(0,v.cn)("relative inline-flex shrink-0 flex-col items-center","laptop:w-[--circle-laptop-size] w-[--circle-size]","laptop:h-[--circle-laptop-height] h-[--circle-height]",w),style:{"--circle-size":`${m}px`,"--circle-laptop-size":`${u}px`,"--circle-height":`${o?m+8:m}px`,"--circle-laptop-height":`${o?u+8:u}px`},children:[(0,r.jsxs)("div",{className:"laptop:size-[--circle-laptop-size] relative size-[--circle-size]",children:[(0,r.jsxs)("svg",{viewBox:`0 0 ${d} ${d}`,className:(0,v.cn)("absolute inset-0 size-full",o?"translate-y-[-8px]":""),children:[(0,r.jsx)("circle",{cx:c,cy:c,r:l,fill:A,stroke:"none"}),E.map(g=>(0,r.jsx)("path",{d:g.path,fill:"none",stroke:g.isCompleted?a:j,strokeWidth:C,strokeLinecap:"round",style:{transition:"stroke 0.3s ease-in-out"}},g.index))]}),(0,r.jsx)("div",{className:(0,v.cn)("absolute inset-[10px] flex items-center justify-center",o?"translate-y-[-8px]":""),children:(0,r.jsx)("div",{className:"flex size-full items-center justify-center overflow-hidden rounded-full",style:{backgroundColor:A},children:s?.url&&(0,r.jsx)(y.Picture,{className:"size-full",imgClassName:"object-contain",source:s.url,alt:s.alt||""})})})]}),o&&(0,r.jsx)("div",{className:"absolute bottom-0 left-1/2 flex -translate-x-1/2 items-center justify-center rounded-full px-2 py-0.5",style:{backgroundColor:z},children:(0,r.jsx)(y.Text,{className:"text-xs font-medium text-white",html:o})})]})};M.displayName="CircleProgress";var Q=M;
1
+ "use strict";"use client";var _=Object.create;var w=Object.defineProperty;var ee=Object.getOwnPropertyDescriptor;var te=Object.getOwnPropertyNames;var re=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var se=(e,r)=>{for(var n in r)w(e,n,{get:r[n],enumerable:!0})},F=(e,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let m of te(r))!ne.call(e,m)&&m!==n&&w(e,m,{get:()=>r[m],enumerable:!(o=ee(r,m))||o.enumerable});return e};var G=(e,r,n)=>(n=e!=null?_(re(e)):{},F(r||!e||!e.__esModule?w(n,"default",{value:e,enumerable:!0}):n,e)),ie=e=>F(w({},"__esModule",{value:!0}),e);var ae={};se(ae,{default:()=>oe});module.exports=ie(ae);var t=require("react/jsx-runtime"),z=G(require("react")),D=G(require("fitty")),d=require("../../components/index.js"),s=require("../../helpers/index.js");const H=({totalSteps:e=4,currentStep:r=0,image:n,label:o,progressColor:m="var(--brand-color-0)",labelColor:O="var(--marketing-color-1)",trackColor:W="#DADCE0",backgroundColor:$="#EAEAEC",size:b=64,laptopSize:y=96,gap:N=3,centerText:S,dimmed:X=!1,dimmedBadge:P,className:Y,classNames:a})=>{const v=Math.max(b,y),k=6,c=(v-k)/2,u=v/2,q=z.useMemo(()=>{const f=(N+k)/c*(180/Math.PI),i=(360-f*e)/e,C=l=>l*Math.PI/180,J=(l,x)=>{const h=l-90,M=x-90,K=u+c*Math.cos(C(h)),Q=u+c*Math.sin(C(h)),U=u+c*Math.cos(C(M)),V=u+c*Math.sin(C(M)),Z=x-l>180?1:0;return`M ${K} ${Q} A ${c} ${c} 0 ${Z} 1 ${U} ${V}`},L=[];let I=e===2?-45:0;for(let l=0;l<e;l++){const x=I+f/2,h=x+i,M=l<r;L.push({path:J(x,h),isCompleted:M,index:l}),I=h+f/2}return L},[e,r,N,c,u]),[T,...B]=(S||"").split(`
2
+ `),g=B.join(" "),j=z.useRef(null),R=z.useRef(null);return z.useEffect(()=>{const p=[j.current,R.current].filter(i=>!!i);if(!p.length)return;let f=[];const A=()=>{f=p.map(i=>(0,D.default)(i,{minSize:6,maxSize:parseFloat(getComputedStyle(i).fontSize),multiLine:!1}))},E=()=>{f.forEach(i=>i.unsubscribe()),A()};return A(),window.addEventListener("resize",E),()=>{window.removeEventListener("resize",E),f.forEach(i=>i.unsubscribe())}},[T,g]),(0,t.jsxs)("div",{className:(0,s.cn)("relative inline-flex shrink-0 flex-col items-center","laptop:w-[--circle-laptop-size] w-[--circle-size]","laptop:h-[--circle-laptop-height] h-[--circle-height]",Y,a?.root),style:{"--circle-size":`${b}px`,"--circle-laptop-size":`${y}px`,"--circle-height":`${o?b+8:b}px`,"--circle-laptop-height":`${o?y+8:y}px`},children:[(0,t.jsxs)("div",{className:(0,s.cn)("laptop:size-[--circle-laptop-size] relative size-[--circle-size]",a?.ring),children:[(0,t.jsxs)("svg",{viewBox:`0 0 ${v} ${v}`,className:(0,s.cn)("absolute inset-0 size-full",o?"translate-y-[-8px]":""),children:[(0,t.jsx)("circle",{cx:u,cy:u,r:c,fill:$,stroke:"none"}),q.map(p=>(0,t.jsx)("path",{d:p.path,className:(0,s.cn)("mini-cart-progress-segment",p.isCompleted&&"mini-cart-progress-segment-completed"),fill:"none",stroke:p.isCompleted?m:W,strokeWidth:k,strokeLinecap:"round",style:{transition:"stroke 0.3s ease-in-out"}},p.index))]}),(0,t.jsx)("div",{className:(0,s.cn)("absolute inset-[10px] flex items-center justify-center",o?"translate-y-[-8px]":"",a?.inner),children:(0,t.jsxs)("div",{className:(0,s.cn)("flex size-full items-center justify-center overflow-hidden rounded-full",P&&"relative"),style:{backgroundColor:$},children:[n?.url&&(0,t.jsx)(d.Picture,{className:(0,s.cn)("size-full",X&&"opacity-40 grayscale",a?.image),imgClassName:"h-full object-contain",source:n.url,alt:n.alt||""}),!n?.url&&S&&(0,t.jsxs)("div",{className:(0,s.cn)("text-info-primary flex w-4/5 flex-col items-center justify-center text-center",g?"gap-0.5":"",a?.centerText),children:[(0,t.jsx)(d.Text,{ref:j,className:(0,s.cn)("desktop:text-[18px] whitespace-nowrap text-[12px] font-semibold leading-none",g&&"font-bold",a?.centerTextMain),html:T}),g&&(0,t.jsx)(d.Text,{ref:R,className:(0,s.cn)("desktop:text-[14px] whitespace-nowrap text-[10px] font-semibold uppercase leading-none",a?.centerTextSub),html:g})]}),P&&(0,t.jsx)("span",{className:(0,s.cn)("absolute inset-x-0 bottom-0 flex items-center justify-center bg-[rgba(118,120,128,0.9)] px-1 py-px",a?.badge),children:(0,t.jsx)(d.Text,{size:1,className:"text-center text-white",html:P})})]})})]}),o&&(0,t.jsx)("div",{className:(0,s.cn)("absolute bottom-0 left-1/2 flex -translate-x-1/2 items-center justify-center rounded-full px-2 py-0.5",a?.label),style:{backgroundColor:O},children:(0,t.jsx)(d.Text,{className:"text-xs font-medium text-white",html:o})})]})};H.displayName="CircleProgress";var oe=H;
@@ -1,4 +1,4 @@
1
- import type { CartLineItem, Cart } from './index.js';
1
+ import type { CartLineItem, Cart, MiniCartLabelStyles } from './index.js';
2
2
  /**
3
3
  * 购物车数据类型 - 复用 MiniCart 的类型定义
4
4
  */
@@ -29,6 +29,8 @@ export interface MiniCartDialogProps {
29
29
  copy?: MiniCartDialogCopy;
30
30
  /** 各部分的自定义样式类名 */
31
31
  classNames?: Partial<Record<MiniCartDialogSemanticName, string>>;
32
+ /** 商品行标签(赠品 / 不参与活动)颜色,与 MiniCart 的 labelStyles 同一结构;不传用默认色 */
33
+ labelStyles?: MiniCartLabelStyles;
32
34
  /**
33
35
  * 增加商品数量回调
34
36
  * @param lineItemId 商品行ID
@@ -54,7 +56,7 @@ export interface MiniCartDialogProps {
54
56
  * @description 用于展示购物车商品列表,支持调整商品数量
55
57
  */
56
58
  declare const MiniCartDialog: {
57
- ({ open, onOpenChange, cart, copy, classNames, onIncreaseQuantity, onDecreaseQuantity, onQuantityChange, }: MiniCartDialogProps): import("react/jsx-runtime").JSX.Element;
59
+ ({ open, onOpenChange, cart, copy, classNames, labelStyles, onIncreaseQuantity, onDecreaseQuantity, onQuantityChange, }: MiniCartDialogProps): import("react/jsx-runtime").JSX.Element;
58
60
  displayName: string;
59
61
  };
60
62
  export default MiniCartDialog;
@@ -1 +1 @@
1
- "use strict";"use client";var h=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var N=(a,e)=>{for(var l in e)h(a,l,{get:e[l],enumerable:!0})},z=(a,e,l,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of D(e))!I.call(a,o)&&o!==l&&h(a,o,{get:()=>e[o],enumerable:!(p=w(e,o))||p.enumerable});return a};var P=a=>z(h({},"__esModule",{value:!0}),a);var L={};N(L,{MiniCartDialog:()=>f,default:()=>M});module.exports=P(L);var t=require("react/jsx-runtime"),i=require("../../helpers/index.js"),n=require("../../components/index.js");const T=({className:a})=>(0,t.jsx)("svg",{className:a,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M2 6H10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),k=({className:a})=>(0,t.jsx)("svg",{className:a,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M6 2V10M2 6H10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),q=({item:a,classNames:e,onIncrease:l,onDecrease:p})=>{const{merchandise:o,quantity:u,cost:y}=a,{image:c,title:b}=o,{totalAmount:d,subtotalAmount:m}=y,x=b||o.sku||"Product",g=d?.formattedPrice||"",v=m&&d&&parseFloat(m.amount)>parseFloat(d.amount);return(0,t.jsxs)("div",{className:(0,i.cn)("bg-container-primary rounded-box flex items-center gap-2 px-2 py-4","laptop:bg-container-primary laptop:gap-4 laptop:p-4",e?.item),children:[(0,t.jsx)("div",{className:(0,i.cn)("rounded-box relative size-16 shrink-0 overflow-hidden","laptop:size-20",e?.itemImage),children:c?.url&&(0,t.jsx)("img",{src:c.url,alt:c.altText||x,className:"size-full object-cover"})}),(0,t.jsxs)("div",{className:(0,i.cn)("laptop:gap-4 flex flex-1 flex-col gap-2",e?.itemInfo),children:[(0,t.jsx)(n.Text,{as:"p",size:3,className:(0,i.cn)("text-info-primary laptop:text-[16px] line-clamp-2 text-[14px]",e?.itemTitle),children:x}),(0,t.jsxs)("div",{className:"laptop:flex-row laptop:items-center laptop:justify-between flex flex-col items-start gap-1",children:[(0,t.jsxs)("div",{className:(0,i.cn)("flex items-center gap-1",e?.itemPrice),children:[g&&(0,t.jsx)(n.Text,{size:4,className:(0,i.cn)("text-info-primary laptop:text-[18px] text-[16px]",e?.itemCurrentPrice),children:g}),v&&m?.formattedPrice&&(0,t.jsx)(n.Text,{size:4,className:(0,i.cn)("text-info-tertiary laptop:text-[18px] text-[16px] line-through",e?.itemOriginalPrice),children:m.formattedPrice})]}),(0,t.jsxs)("div",{className:(0,i.cn)("flex items-center",e?.quantityControl),children:[(0,t.jsx)("button",{type:"button",onClick:p,disabled:u<=0,className:(0,i.cn)("border-lines flex size-8 items-center justify-center border","laptop:size-10","text-info-primary hover:bg-container-secondary-0 transition-colors","disabled:cursor-not-allowed disabled:opacity-50",e?.quantityButton),"aria-label":"Decrease quantity",children:(0,t.jsx)(T,{className:"laptop:size-3 size-[10.67px]"})}),(0,t.jsx)("div",{className:(0,i.cn)("border-lines text-info-primary flex size-8 items-center justify-center border-y text-center text-sm font-semibold","laptop:size-10 laptop:text-base",e?.quantityValue),children:u}),(0,t.jsx)("button",{type:"button",onClick:l,className:(0,i.cn)("border-lines flex size-8 items-center justify-center border","laptop:size-10","text-info-primary hover:bg-container-secondary-0 transition-colors",e?.quantityButton),"aria-label":"Increase quantity",children:(0,t.jsx)(k,{className:"laptop:size-3 size-[10.67px]"})})]})]})]})]})},f=({open:a,onOpenChange:e,cart:l,copy:p,classNames:o={},onIncreaseQuantity:u,onDecreaseQuantity:y,onQuantityChange:c})=>{const b=p?.title||"Selected ({count})",d=p?.emptyText||"Your cart is empty",m=l?.lineItems?.reduce((r,s)=>r+(s?.quantity||0),0)||0,x=l?.lineItems||[],g=x.length===0,v=(r,s)=>{u?.(r,s),c?.(r,s+1)},C=(r,s)=>{s>0&&(y?.(r,s),c?.(r,s-1))};return(0,t.jsx)(n.Dialog,{open:a,onOpenChange:e,children:(0,t.jsxs)(n.DialogContent,{className:(0,i.cn)("bg-container-secondary-0 fixed left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 flex-col gap-0 overflow-hidden p-0","rounded-box max-h-[80vh] w-[calc(100%-64px)] min-w-[326px]","laptop:w-full laptop:max-w-[560px] laptop:rounded-box",o?.root),children:[(0,t.jsx)(n.DialogHeader,{className:(0,i.cn)("bg-container-secondary-0 flex flex-row items-start justify-between gap-4 px-4 pb-2 pt-4",o?.header),children:(0,t.jsx)(n.DialogTitle,{asChild:!0,children:(0,t.jsx)(n.Heading,{as:"h3",size:2,className:(0,i.cn)("text-info-primary font-bold",o?.title),children:b.replace("{count}",m.toString())})})}),(0,t.jsx)("div",{className:(0,i.cn)("bg-container-secondary-0 h- flex flex-col gap-2 overflow-y-auto px-4 py-2",o?.content),children:g?(0,t.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,t.jsx)(n.Text,{size:2,className:"text-info-tertiary",children:d})}):(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col gap-2",o?.itemList),children:x.map(r=>(0,t.jsx)(q,{item:r,classNames:o,onIncrease:()=>v(r.id,r.quantity),onDecrease:()=>C(r.id,r.quantity)},r.id))})}),(0,t.jsx)("div",{className:"bg-container-secondary-0 h-8 w-full"})]})})};f.displayName="MiniCartDialog";var M=f;
1
+ "use strict";"use client";var M=Object.create;var v=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty;var j=(i,t)=>{for(var l in t)v(i,l,{get:t[l],enumerable:!0})},I=(i,t,l,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of k(t))!S.call(i,r)&&r!==l&&v(i,r,{get:()=>t[r],enumerable:!(c=T(t,r))||c.enumerable});return i};var H=(i,t,l)=>(l=i!=null?M(q(i)):{},I(t||!i||!i.__esModule?v(l,"default",{value:i,enumerable:!0}):l,i)),B=i=>I(v({},"__esModule",{value:!0}),i);var A={};j(A,{MiniCartDialog:()=>C,default:()=>E});module.exports=B(A);var e=require("react/jsx-runtime"),h=require("react"),N=H(require("fitty")),a=require("../../helpers/index.js"),o=require("../../components/index.js"),z=require("./index.js");const O=({className:i})=>(0,e.jsx)("svg",{className:i,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)("path",{d:"M2 6H10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),R=({className:i})=>(0,e.jsx)("svg",{className:i,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)("path",{d:"M6 2V10M2 6H10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),V=({item:i,classNames:t,labelStyles:l,onIncrease:c,onDecrease:r})=>{const{merchandise:y,quantity:m,cost:w,readonly:g,productLabel:d,labelVariant:D}=i,{image:x,title:b}=y,{totalAmount:u,subtotalAmount:p}=w,f=(0,h.useRef)(null);(0,h.useEffect)(()=>{if(!f.current)return;const P=(0,N.default)(f.current,{minSize:8,maxSize:12,multiLine:!1});return()=>P.unsubscribe()},[d]);const n=b||y.sku||"Product",s=u?.formattedPrice||"",L=p&&u&&parseFloat(p.amount)>parseFloat(u.amount);return(0,e.jsxs)("div",{className:(0,a.cn)("bg-container-primary rounded-box flex items-center gap-2 px-2 py-4","laptop:bg-container-primary laptop:gap-4 laptop:p-4",t?.item),children:[(0,e.jsxs)("div",{className:(0,a.cn)("rounded-box relative size-16 shrink-0 overflow-hidden","laptop:size-20",t?.itemImage),children:[x?.url&&(0,e.jsx)("img",{src:x.url,alt:x.altText||n,className:"size-full object-cover"}),d&&(0,e.jsx)("div",{className:"absolute inset-x-0 bottom-0 flex items-center justify-center overflow-hidden py-px text-center backdrop-blur-sm",style:(0,z.resolveCartLineLabelStyle)(D,l),children:(0,e.jsx)(o.Text,{ref:f,size:1,className:"text-white",html:d})})]}),(0,e.jsxs)("div",{className:(0,a.cn)("laptop:gap-4 flex flex-1 flex-col gap-2",t?.itemInfo),children:[(0,e.jsx)(o.Text,{as:"p",size:3,className:(0,a.cn)("text-info-primary laptop:text-[16px] line-clamp-2 text-[14px]",t?.itemTitle),children:n}),(0,e.jsxs)("div",{className:"laptop:flex-row laptop:items-center laptop:justify-between flex flex-col items-start gap-1",children:[(0,e.jsxs)("div",{className:(0,a.cn)("flex items-center gap-1",t?.itemPrice),children:[s&&(0,e.jsx)(o.Text,{size:4,className:(0,a.cn)("text-info-primary laptop:text-[18px] text-[16px]",t?.itemCurrentPrice),children:s}),L&&p?.formattedPrice&&(0,e.jsx)(o.Text,{size:4,className:(0,a.cn)("text-info-tertiary laptop:text-[18px] text-[16px] line-through",t?.itemOriginalPrice),children:p.formattedPrice})]}),g?(0,e.jsx)("div",{className:(0,a.cn)("flex items-center",t?.quantityControl),children:(0,e.jsxs)("span",{className:"text-info-primary text-sm font-semibold",children:["x",m]})}):(0,e.jsxs)("div",{className:(0,a.cn)("flex items-center",t?.quantityControl),children:[(0,e.jsx)("button",{type:"button",onClick:r,disabled:m<=0,className:(0,a.cn)("border-lines flex size-8 items-center justify-center border","laptop:size-10","text-info-primary hover:bg-container-secondary-0 transition-colors","disabled:cursor-not-allowed disabled:opacity-50",t?.quantityButton),"aria-label":"Decrease quantity",children:(0,e.jsx)(O,{className:"laptop:size-3 size-[10.67px]"})}),(0,e.jsx)("div",{className:(0,a.cn)("border-lines text-info-primary flex size-8 items-center justify-center border-y text-center text-sm font-semibold","laptop:size-10 laptop:text-base",t?.quantityValue),children:m}),(0,e.jsx)("button",{type:"button",onClick:c,className:(0,a.cn)("border-lines flex size-8 items-center justify-center border","laptop:size-10","text-info-primary hover:bg-container-secondary-0 transition-colors",t?.quantityButton),"aria-label":"Increase quantity",children:(0,e.jsx)(R,{className:"laptop:size-3 size-[10.67px]"})})]})]})]})]})},C=({open:i,onOpenChange:t,cart:l,copy:c,classNames:r={},labelStyles:y,onIncreaseQuantity:m,onDecreaseQuantity:w,onQuantityChange:g})=>{const d=c?.title||"Selected ({count})",D=c?.emptyText||"Your cart is empty",x=l?.lineItems?.reduce((n,s)=>n+(s?.quantity||0),0)||0,b=l?.lineItems||[],u=b.length===0,p=(n,s)=>{m?.(n,s),g?.(n,s+1)},f=(n,s)=>{s>0&&(w?.(n,s),g?.(n,s-1))};return(0,e.jsx)(o.Dialog,{open:i,onOpenChange:t,children:(0,e.jsxs)(o.DialogContent,{className:(0,a.cn)("bg-container-secondary-0 fixed left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 flex-col gap-0 overflow-hidden p-0","rounded-box max-h-[80vh] w-[calc(100%-64px)] min-w-[326px]","laptop:w-full laptop:max-w-[560px] laptop:rounded-box",r?.root),children:[(0,e.jsx)(o.DialogHeader,{className:(0,a.cn)("bg-container-secondary-0 flex flex-row items-start justify-between gap-4 px-4 pb-2 pt-4",r?.header),children:(0,e.jsx)(o.DialogTitle,{asChild:!0,children:(0,e.jsx)(o.Heading,{as:"h3",size:2,className:(0,a.cn)("text-info-primary font-bold",r?.title),children:d.replace("{count}",x.toString())})})}),(0,e.jsx)("div",{className:(0,a.cn)("bg-container-secondary-0 h- flex flex-col gap-2 overflow-y-auto px-4 py-2",r?.content),children:u?(0,e.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,e.jsx)(o.Text,{size:2,className:"text-info-tertiary",children:D})}):(0,e.jsx)("div",{className:(0,a.cn)("flex flex-col gap-2",r?.itemList),children:b.map(n=>(0,e.jsx)(V,{item:n,classNames:r,labelStyles:y,onIncrease:()=>p(n.id,n.quantity),onDecrease:()=>f(n.id,n.quantity)},n.id))})}),(0,e.jsx)("div",{className:"bg-container-secondary-0 h-8 w-full"})]})})};C.displayName="MiniCartDialog";var E=C;
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { Img } from '../../types/props.js';
3
+ import type { CircleProgressSemanticName } from './CircleProgress.js';
3
4
  export type MiniCartSemanticName = 'root' | 'content' | 'cartInfo' | 'cartTitle' | 'cartDescription' | 'priceSection' | 'totalPrice' | 'originalPrice' | 'saveAmount' | 'actionButton' | 'itemsGrid' | 'itemGridContainer' | 'gridItem' | 'gridItemOverlay' | 'expandButton' | 'circleProgress' | 'mobileViewMoreButton';
4
5
  /**
5
6
  * 圆形进度条配置
@@ -23,7 +24,34 @@ export interface CircleProgressConfig {
23
24
  size?: number;
24
25
  /** laptop 以上组件尺寸,默认 80 */
25
26
  laptopSize?: number;
27
+ /** 圆环中间显示的文字(如满减档位优惠),传入 image 时不渲染;字号随断点 12 / 16 / 18px */
28
+ centerText?: string;
29
+ /** 中间图片置灰(未达当前档时赠品图变灰),默认 false */
30
+ dimmed?: boolean;
31
+ /** 中间图片上的售罄角标文案(如 "Sold Out") */
32
+ dimmedBadge?: string;
33
+ /** 未完成阶段的颜色 */
34
+ trackColor?: string;
35
+ /** 圆环各部分的自定义样式类名(root / ring / inner / image / centerText / centerTextMain / centerTextSub / badge / label) */
36
+ classNames?: Partial<Record<CircleProgressSemanticName, string>>;
26
37
  }
38
+ /**
39
+ * 商品行标签变体(满赠/满减场景)
40
+ * 不传时沿用旧版橙色内联背景(非破坏性)
41
+ */
42
+ export type CartLineLabelVariant = 'gift' | 'notEligible';
43
+ /**
44
+ * 商品格子标签颜色配置(直接覆盖内联背景色)
45
+ * 不传时保持旧版颜色
46
+ */
47
+ export interface MiniCartLabelStyles {
48
+ /** 赠品(Free)标签背景色,默认 rgba(251, 148, 63, 0.6) */
49
+ giftLabelColor?: string;
50
+ /** 不参与活动商品(Not Eligible)标签背景色,默认 rgba(118, 120, 128, 0.6) */
51
+ notEligibleLabelColor?: string;
52
+ }
53
+ /** 商品行标签背景样式:MiniCart 缩略图与 MiniCartDialog 共用,保证两处赠品/不参与标识颜色一致 */
54
+ export declare const resolveCartLineLabelStyle: (variant: CartLineLabelVariant | undefined, labelStyles?: MiniCartLabelStyles) => React.CSSProperties;
27
55
  /**
28
56
  * 文案配置
29
57
  */
@@ -48,6 +76,13 @@ export interface MiniCartData {
48
76
  locale?: string;
49
77
  /** 是否显示手机端查看更多按钮,默认 true */
50
78
  showMobileViewMore?: boolean;
79
+ /**
80
+ * 数量角标显示上限:quantity 超过该值显示 "{max}+"(如 99+)
81
+ * 不传时显示完整数字(旧行为)
82
+ */
83
+ maxQuantityDisplay?: number;
84
+ /** 标签颜色配置,通过 CSS 变量注入;不传保持旧版颜色 */
85
+ labelStyles?: MiniCartLabelStyles;
51
86
  }
52
87
  /**
53
88
  * 购物车商品项类型
@@ -57,6 +92,16 @@ export type CartLineItem = {
57
92
  quantity: number;
58
93
  /** 商品标签,如 "Free"、"Gift" 等,显示在商品图片底部 */
59
94
  productLabel?: string;
95
+ /**
96
+ * 标签变体:'gift' 赠品(橙色)、'notEligible' 不参与活动商品(灰色)
97
+ * 不传时沿用旧版橙色背景
98
+ */
99
+ labelVariant?: CartLineLabelVariant;
100
+ /**
101
+ * 只读行:MiniCartDialog 中隐藏数量增减控件(如满赠赠品行数量由后端计算)
102
+ * 默认可调
103
+ */
104
+ readonly?: boolean;
60
105
  cost: {
61
106
  totalAmount: {
62
107
  amount: string;