@anker-in/headless-ui 1.3.84-alpha.1794205997922 → 1.3.85

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 (75) hide show
  1. package/CONTRIBUTING.md +0 -57
  2. package/dist/cjs/biz-components/ActivitySchedule/index.js +1 -1
  3. package/dist/cjs/biz-components/BrandEquity/BrandEquity.d.ts +0 -2
  4. package/dist/cjs/biz-components/BrandEquity/BrandEquity.js +1 -1
  5. package/dist/cjs/biz-components/BrandEquity/types.d.ts +0 -2
  6. package/dist/cjs/biz-components/BrandEquity/types.js +1 -1
  7. package/dist/cjs/biz-components/Chat/button.js +1 -1
  8. package/dist/cjs/biz-components/ImageWithText/ImageWithText.js +1 -1
  9. package/dist/cjs/biz-components/ImageWithText/types.d.ts +2 -8
  10. package/dist/cjs/biz-components/ImageWithText/types.js +1 -1
  11. package/dist/cjs/biz-components/Ksp/index.d.ts +0 -2
  12. package/dist/cjs/biz-components/Ksp/index.js +1 -1
  13. package/dist/cjs/biz-components/MarqueeReview/index.js +1 -1
  14. package/dist/cjs/biz-components/MediaPlayerBase/index.js +1 -1
  15. package/dist/cjs/biz-components/MediaSceneSwitcher/MediaSceneSwitcher.js +2 -2
  16. package/dist/cjs/biz-components/ProductCompare/index.d.ts +1 -1
  17. package/dist/cjs/biz-components/ProductCompare/index.js +1 -1
  18. package/dist/cjs/biz-components/ProductHero/ProductHero.js +1 -1
  19. package/dist/cjs/biz-components/ProductHero/types.d.ts +0 -2
  20. package/dist/cjs/biz-components/ProductHero/types.js +1 -1
  21. package/dist/cjs/biz-components/ProductNav/ProductNav.js +1 -1
  22. package/dist/cjs/biz-components/SecondaryBanner/index.js +1 -1
  23. package/dist/cjs/biz-components/Specs/dropdown.js +2 -1
  24. package/dist/cjs/biz-components/Specs/index.js +1 -1
  25. package/dist/cjs/biz-components/ThreeDCarousel/ThreeDCarousel.js +1 -1
  26. package/dist/cjs/components/link.js +1 -1
  27. package/dist/cjs/hooks/useDraggableScroll.js +1 -1
  28. package/dist/cjs/hooks/useExposure.d.ts +1 -1
  29. package/dist/cjs/hooks/useExposure.js +1 -1
  30. package/dist/cjs/hooks/useViewItemList.d.ts +1 -1
  31. package/dist/cjs/index.d.ts +0 -2
  32. package/dist/cjs/index.js +1 -1
  33. package/dist/cjs/shared/Styles.d.ts +0 -2
  34. package/dist/cjs/shared/Styles.js +1 -1
  35. package/dist/esm/biz-components/ActivitySchedule/index.js +1 -1
  36. package/dist/esm/biz-components/BrandEquity/BrandEquity.d.ts +0 -2
  37. package/dist/esm/biz-components/BrandEquity/BrandEquity.js +1 -1
  38. package/dist/esm/biz-components/BrandEquity/types.d.ts +0 -2
  39. package/dist/esm/biz-components/Chat/button.js +1 -1
  40. package/dist/esm/biz-components/ImageWithText/ImageWithText.js +1 -1
  41. package/dist/esm/biz-components/ImageWithText/types.d.ts +2 -8
  42. package/dist/esm/biz-components/Ksp/index.d.ts +0 -2
  43. package/dist/esm/biz-components/Ksp/index.js +1 -1
  44. package/dist/esm/biz-components/MarqueeReview/index.js +1 -1
  45. package/dist/esm/biz-components/MediaPlayerBase/index.js +1 -1
  46. package/dist/esm/biz-components/MediaSceneSwitcher/MediaSceneSwitcher.js +2 -2
  47. package/dist/esm/biz-components/ProductCompare/index.d.ts +1 -1
  48. package/dist/esm/biz-components/ProductCompare/index.js +1 -1
  49. package/dist/esm/biz-components/ProductHero/ProductHero.js +1 -1
  50. package/dist/esm/biz-components/ProductHero/types.d.ts +0 -2
  51. package/dist/esm/biz-components/ProductNav/ProductNav.js +1 -1
  52. package/dist/esm/biz-components/SecondaryBanner/index.js +1 -1
  53. package/dist/esm/biz-components/Specs/dropdown.js +2 -1
  54. package/dist/esm/biz-components/Specs/index.js +1 -1
  55. package/dist/esm/biz-components/ThreeDCarousel/ThreeDCarousel.js +1 -1
  56. package/dist/esm/components/link.js +1 -1
  57. package/dist/esm/hooks/useDraggableScroll.js +1 -1
  58. package/dist/esm/hooks/useExposure.d.ts +1 -1
  59. package/dist/esm/hooks/useExposure.js +1 -1
  60. package/dist/esm/hooks/useViewItemList.d.ts +1 -1
  61. package/dist/esm/index.d.ts +0 -2
  62. package/dist/esm/index.js +1 -1
  63. package/dist/esm/shared/Styles.d.ts +0 -2
  64. package/dist/esm/shared/Styles.js +1 -1
  65. package/package.json +2 -5
  66. package/style.css +130 -247
  67. package/tailwind.config.js +0 -5
  68. package/dist/cjs/shared/ContainerGridContext.d.ts +0 -20
  69. package/dist/cjs/shared/ContainerGridContext.js +0 -1
  70. package/dist/cjs/shared/mediaGridSpec.d.ts +0 -87
  71. package/dist/cjs/shared/mediaGridSpec.js +0 -1
  72. package/dist/esm/shared/ContainerGridContext.d.ts +0 -20
  73. package/dist/esm/shared/ContainerGridContext.js +0 -1
  74. package/dist/esm/shared/mediaGridSpec.d.ts +0 -87
  75. package/dist/esm/shared/mediaGridSpec.js +0 -1
package/CONTRIBUTING.md CHANGED
@@ -221,63 +221,6 @@ alert('Example of disabled line for no-alert')
221
221
 
222
222
  ❗ 在ui/目录下的代码导入的时候,要带上.js后缀,比如 import { cn } from '../helpers/index.js' 否则在使用的时候会出现 ERR_UNSUPPORTED_DIR_IMPORT 问题
223
223
 
224
- # 媒体字段断点命名(ADR 0010,增量强制)
225
-
226
- 业务组件中「断点族媒体字段」(承载图片/视频/海报引用、按断点区分尺寸的字段)必须遵守与 Tailwind 断点对齐的 canonical 5 端命名:
227
-
228
- | 断点 | canonical 字段名(image 族) | video / poster 族同理 |
229
- | ---- | ---- | ---- |
230
- | mobile 基线(<768px) | `image`(无前缀 = 移动优先基线) | `video` / `poster` |
231
- | tablet(≥768px) | `tabletImage` | `tabletVideo` / `tabletPoster` |
232
- | laptop(≥1025px) | `laptopImage` | `laptopVideo` / `laptopPoster` |
233
- | desktop(≥1440px) | `desktopImage` | `desktopVideo` / `desktopPoster` |
234
- | lg-desktop(≥1920px) | `lgDesktopImage` | `lgDesktopVideo` / `lgDesktopPoster` |
235
-
236
- ```tsx
237
- // ✅ 合规
238
- export interface MyCompItem {
239
- image: Media
240
- tabletImage?: Media
241
- laptopImage?: Media
242
- desktopImage?: Media
243
- lgDesktopImage?: Media
244
- }
245
-
246
- // ❌ 违规(pad/mob/pc 前缀、后缀式、嵌套裸断点键均不合规)
247
- export interface MyCompItem {
248
- pcImage: Media
249
- padImage?: Media
250
- mobImage?: Media
251
- imgPad?: Media
252
- backgroundImage?: { mobile?: Media; tablet?: Media }
253
- }
254
- ```
255
-
256
- **豁免**:语义媒体(`icon` / `avatar` / `logo` 等单尺寸小图)无断点概念,不需要断点前缀,保持原样即合规。
257
-
258
- ## lint 闸门与 ratchet 快照(grandfather)
259
-
260
- 命名检查由 `scripts/check-material-naming.mjs` 实现,已接入 `pnpm lint`(`pnpm --filter @anker-in/headless-ui run lint`),CI / pre-commit 均经此入口拦截:
261
-
262
- - **新组件 / 新增媒体字段**不合规 → lint 红,报错信息含 canonical 写法与 `material-meta.json` 的 `fieldMap` 逃生舱指引(字段名已写进生产 PageConfig、无法改名时,用 fieldMap 显式声明字段→断点映射,这是合法终态而非临时豁免)。
263
- - **存量不合规字段**(`imgPad` / `imageMob` / `padImage` / 嵌套 `backgroundImage.{mobile...}` 等)记录在 `scripts/material-naming-snapshot.json`,被 grandfather 不报错——不做 big-bang 迁移,存量字段名已固化在 CMS 数据里,改名 = 数据迁移。
264
- - 快照**只减不增**:字段从源码消失后重新生成快照即自动收紧;快照中不存在的字段永远报错。
265
-
266
- 单独运行:
267
-
268
- ```shell
269
- pnpm --filter @anker-in/headless-ui run lint:material-naming # 检查
270
- pnpm --filter @anker-in/headless-ui run lint:material-naming:update # 重新生成快照
271
- ```
272
-
273
- ## 随 touch 迁移(touch-to-migrate)
274
-
275
- eslint 无法感知「本次 PR 是否改动了某字段」,因此存量字段的合规化提示由 PR review 承担:
276
-
277
- - 你的 PR 若**触及**某组件的媒体字段(新增、修改、挪动),请顺手将该字段合规化(改名 + 组件内 fallback 兼容旧名),或在该组件的 `material-meta.json` 中显式声明 `fieldMap`。
278
- - 字段合规化后运行 `lint:material-naming:update` 收紧快照,被迁移的字段从快照中移除,之后任何人再引入该旧名都会 lint 红。
279
- - 判定逻辑(哪个字段是媒体、哪个名字合规)全仓单点在 `src/material/breakpoints.ts`(`isMediaField` / `isCanonicalMediaFieldName`),本检查脚本直接复用,勿在别处复制第二份词表。
280
-
281
224
  # Tesing
282
225
 
283
226
  unit test 使用 [jest](https://jestjs.io/) 和 [@test-library/react](https://testing-library.com/)。
@@ -1 +1 @@
1
- "use strict";"use client";var B=Object.create;var h=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty;var H=(e,t)=>{for(var a in t)h(e,a,{get:t[a],enumerable:!0})},k=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of R(t))!D.call(e,c)&&c!==a&&h(e,c,{get:()=>t[c],enumerable:!(r=E(t,c))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?B(j(e)):{},k(t||!e||!e.__esModule?h(a,"default",{value:e,enumerable:!0}):a,e)),$=e=>k(h({},"__esModule",{value:!0}),e);var U={};H(U,{default:()=>F});module.exports=$(U);var i=require("react/jsx-runtime"),p=M(require("react")),d=require("../../helpers/index.js"),o=require("../../components/index.js"),y=require("class-variance-authority"),f=require("swiper/react"),A=require("../../shared/Styles.js"),N=require("../../hooks/useExposure.js"),P=require("../../hooks/useTracking.js"),C=require("../../shared/trackUrlRef.js"),m=require("../../shared/track.js");const g="image",w="activity_schedule",q=(0,y.cva)("rounded-card laptop:px-6 laptop:py-4 relative flex min-w-0 flex-col justify-between gap-2 overflow-hidden px-4 py-3",{variants:{state:{"active-light":"bg-gradient-to-r from-[#3555aa] to-[#6988e3]","active-dark":"bg-gradient-to-r from-[#3555aa] to-[#6988e3]","inactive-light":"bg-[#EAEAEC]","inactive-dark":"bg-[#1E2024]"},size:{small:"laptop:h-[160px] h-[120px]",large:"laptop:h-[240px] h-[200px]"}},defaultVariants:{state:"inactive-light",size:"small"}}),x=(0,y.cva)("font-bold leading-[1.2]",{variants:{state:{"active-light":"text-white","active-dark":"text-white","inactive-light":"text-[#080A0F]","inactive-dark":"text-white"}},defaultVariants:{state:"inactive-light"}}),b=p.memo(({item:e,theme:t="light",className:a,size:r,position:c})=>{const n=e.isActive||!1,{buildRef:u}=(0,P.useTracking)(),s=`${n?"active":"inactive"}-${t}`;return(0,i.jsx)("div",{className:(0,d.cn)(q({state:s,size:r}),a),"data-ui-component-id":"ActivityScheduleCard",children:(0,i.jsxs)(o.Link,{asChild:!e?.link,href:e?.link?(0,C.trackUrlRef)(e.link,u(g,w)):void 0,className:"size-full no-underline hover:text-current",...(0,m.buildClickTrackingProps)({interactive:!!e?.link,componentType:g,componentName:w,title:e.title,description:e.subtitle,position:c}),children:[(n?e.activeIcon:e.inactiveIcon)&&(0,i.jsx)("div",{className:"laptop:w-[160px] aspect-1 absolute right-0 top-0 z-10 w-[120px]",children:(0,i.jsx)(o.Picture,{source:n?e.activeIcon.url:e.inactiveIcon.url,alt:n?e.activeIcon.alt:e.inactiveIcon.alt,className:"aspect-square"})}),(0,i.jsxs)("div",{className:"relative z-20 flex h-full flex-col justify-between",children:[(0,i.jsx)(o.Heading,{as:"h3",size:3,html:e.title,className:(0,d.cn)(x({state:s}))}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)("div",{className:"flex flex-col justify-end overflow-hidden",children:(0,i.jsx)(o.Heading,{as:"h4",size:2,html:e.subtitle,className:(0,d.cn)(" line-clamp-2",x({state:s}))})}),r==="large"&&e.description&&(0,i.jsx)(o.Text,{html:e.description,className:(0,d.cn)("lg-desktop:text-[18px] desktop:text-[16px] line-clamp-3 text-[14px] leading-[1.4]",x({state:s}))})]})]})]})})});b.displayName="ActivityScheduleCard";const S=p.forwardRef(({classNames:e={},data:t,...a},r)=>{const c=t.theme||"light",n=t.size||"small",u=p.useRef(null);p.useImperativeHandle(r,()=>u.current),(0,N.useExposure)(u,{componentType:g,componentName:w,componentTitle:t.scheduleList?.map(l=>(0,m.toPlainTrackingText)(l.title)).join(" | "),componentDescription:t.scheduleList?.map(l=>(0,m.toPlainTrackingText)(l.subtitle)).join(" | ")});const s=p.useMemo(()=>t?.scheduleList?.length||2,[t?.scheduleList]),I=p.useMemo(()=>{const l=z=>{switch(z){case"mobile":return{slidesPerView:1.17,spaceBetween:12};case"tablet":return s===2?{slidesPerView:2,spaceBetween:12}:{slidesPerView:2.4,spaceBetween:12};case"laptop":return s===2?{}:s===4?{slidesPerView:3.2,spaceBetween:16}:{slidesPerView:s,spaceBetween:16};case"desktop":return s===2?{slidesPerView:2,spaceBetween:16}:{slidesPerView:s,spaceBetween:16}}},v=l("mobile"),L=l("tablet"),T=l("laptop"),V=l("desktop");return{0:v,768:L,1024:T,1440:V}},[s]);return(0,i.jsx)("div",{ref:u,className:(0,d.cn)(e?.root),"data-ui-component-id":"ActivitySchedule",...a,children:(0,i.jsx)(f.Swiper,{breakpoints:I,className:"w-full !overflow-visible",children:t?.scheduleList?.map((l,v)=>(0,i.jsx)(f.SwiperSlide,{children:(0,i.jsx)(b,{item:l,theme:c,size:n,className:e?.card,position:v+1})},"activityScheduleCardItem"+v))??null})})});S.displayName="ActivitySchedule";var F=(0,A.withLayout)(S);
1
+ "use strict";"use client";var B=Object.create;var h=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty;var H=(e,t)=>{for(var a in t)h(e,a,{get:t[a],enumerable:!0})},k=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of R(t))!D.call(e,o)&&o!==a&&h(e,o,{get:()=>t[o],enumerable:!(r=E(t,o))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?B(j(e)):{},k(t||!e||!e.__esModule?h(a,"default",{value:e,enumerable:!0}):a,e)),$=e=>k(h({},"__esModule",{value:!0}),e);var U={};H(U,{default:()=>F});module.exports=$(U);var i=require("react/jsx-runtime"),p=M(require("react")),d=require("../../helpers/index.js"),l=require("../../components/index.js"),y=require("class-variance-authority"),f=require("swiper/react"),A=require("../../shared/Styles.js"),N=require("../../hooks/useExposure.js"),C=require("../../hooks/useTracking.js"),P=require("../../shared/trackUrlRef.js"),m=require("../../shared/track.js");const g="image",w="activity_schedule",q=(0,y.cva)("rounded-card laptop:px-6 laptop:py-4 relative flex min-w-0 flex-col justify-between gap-2 overflow-hidden px-4 py-3",{variants:{state:{"active-light":"bg-gradient-to-r from-[#3555aa] to-[#6988e3]","active-dark":"bg-gradient-to-r from-[#3555aa] to-[#6988e3]","inactive-light":"bg-[#EAEAEC]","inactive-dark":"bg-[#1E2024]"},size:{small:"laptop:h-[160px] h-[120px]",large:"laptop:h-[240px] h-[200px]"}},defaultVariants:{state:"inactive-light",size:"small"}}),x=(0,y.cva)("font-bold leading-[1.2]",{variants:{state:{"active-light":"text-white","active-dark":"text-white","inactive-light":"text-[#080A0F]","inactive-dark":"text-white"}},defaultVariants:{state:"inactive-light"}}),b=p.memo(({item:e,theme:t="light",className:a,size:r,position:o})=>{const n=e.isActive||!1,{buildRef:u}=(0,C.useTracking)(),s=`${n?"active":"inactive"}-${t}`;return(0,i.jsx)("div",{className:(0,d.cn)(q({state:s,size:r}),a),"data-ui-component-id":"ActivityScheduleCard",children:(0,i.jsxs)(l.Link,{asChild:!e?.link,href:e?.link?(0,P.trackUrlRef)(e.link,u(g,w)):void 0,className:"size-full no-underline hover:text-current",...(0,m.buildClickTrackingProps)({interactive:!!e?.link,componentType:g,componentName:w,title:e.title,description:e.subtitle,position:o}),children:[(n?e.activeIcon:e.inactiveIcon)&&(0,i.jsx)("div",{className:"laptop:w-[160px] aspect-1 absolute right-0 top-0 z-10 w-[120px]",children:(0,i.jsx)(l.Picture,{source:n?e.activeIcon.url:e.inactiveIcon.url,alt:n?e.activeIcon.alt:e.inactiveIcon.alt,className:"aspect-square"})}),(0,i.jsxs)("div",{className:"relative z-20 flex h-full flex-col justify-between",children:[(0,i.jsx)(l.Heading,{as:"h3",size:3,html:e.title,className:(0,d.cn)(x({state:s}))}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)("div",{className:"flex flex-col justify-end overflow-hidden",children:(0,i.jsx)(l.Heading,{as:"h4",size:2,html:e.subtitle,className:(0,d.cn)(" line-clamp-2",x({state:s}))})}),r==="large"&&e.description&&(0,i.jsx)(l.Text,{html:e.description,className:(0,d.cn)("lg-desktop:text-[18px] desktop:text-[16px] line-clamp-3 text-[14px] leading-[1.4]",x({state:s}))})]})]})]})})});b.displayName="ActivityScheduleCard";const S=p.forwardRef(({classNames:e={},data:t,...a},r)=>{const o=t.theme||"light",n=t.size||"large",u=p.useRef(null);p.useImperativeHandle(r,()=>u.current),(0,N.useExposure)(u,{componentType:g,componentName:w,componentTitle:t.scheduleList?.map(c=>(0,m.toPlainTrackingText)(c.title)).join(" | "),componentDescription:t.scheduleList?.map(c=>(0,m.toPlainTrackingText)(c.subtitle)).join(" | ")});const s=p.useMemo(()=>t?.scheduleList?.length||2,[t?.scheduleList]),I=p.useMemo(()=>{const c=z=>{switch(z){case"mobile":return{slidesPerView:1.17,spaceBetween:12};case"tablet":return s===2?{slidesPerView:2,spaceBetween:12}:{slidesPerView:2.4,spaceBetween:12};case"laptop":return s===2?{}:s===4?{slidesPerView:3.2,spaceBetween:16}:{slidesPerView:s,spaceBetween:16};case"desktop":return s===2?{slidesPerView:2,spaceBetween:16}:{slidesPerView:s,spaceBetween:16}}},v=c("mobile"),L=c("tablet"),T=c("laptop"),V=c("desktop");return{0:v,768:L,1024:T,1440:V}},[s]);return(0,i.jsx)(l.Container,{ref:u,className:(0,d.cn)(e?.root),childClassName:"overflow-hidden","data-ui-component-id":"ActivitySchedule",...a,children:(0,i.jsx)(f.Swiper,{breakpoints:I,className:"w-full !overflow-visible",children:t.scheduleList.map((c,v)=>(0,i.jsx)(f.SwiperSlide,{children:(0,i.jsx)(b,{item:c,theme:o,size:n,className:e?.card,position:v+1})},"activityScheduleCardItem"+v))})})});S.displayName="ActivitySchedule";var F=(0,A.withLayout)(S);
@@ -1,6 +1,4 @@
1
1
  import type { BrandEquityProps } from './types.js';
2
- import 'swiper/css';
3
- import 'swiper/css/pagination';
4
2
  declare const _default: import("react").ForwardRefExoticComponent<Omit<BrandEquityProps & import("react").RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../index.js").ContainerProps & import("react").RefAttributes<unknown>> & {
5
3
  readonly $$typeof: symbol;
6
4
  };
@@ -1 +1 @@
1
- "use strict";"use client";var j=Object.create;var u=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty;var D=(e,r)=>{for(var i in r)u(e,i,{get:r[i],enumerable:!0})},h=(e,r,i,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of z(r))!H.call(e,o)&&o!==i&&u(e,o,{get:()=>r[o],enumerable:!(a=L(r,o))||a.enumerable});return e};var k=(e,r,i)=>(i=e!=null?j(A(e)):{},h(r||!e||!e.__esModule?u(i,"default",{value:e,enumerable:!0}):i,e)),R=e=>h(u({},"__esModule",{value:!0}),e);var _={};D(_,{default:()=>F});module.exports=R(_);var t=require("react/jsx-runtime"),s=require("react"),l=require("../../helpers/utils.js"),x=k(require("../../components/picture.js")),E=require("../../shared/Styles.js"),q=require("react-responsive"),S=require("../../hooks/useExposure.js"),f=require("swiper/react"),n=require("swiper/modules"),J=require("swiper/css"),K=require("swiper/css/pagination"),I=k(require("../Title/index.js"));const Q="copy",$="store_benefits",C=(e,r)=>{const i=[];for(let a=0;a<e.length;a+=r)i.push(e.slice(a,a+r));return i},N=(0,s.forwardRef)(({data:{items:e=[],itemShape:r,title:i,theme:a},className:o},m)=>{const[c,M]=(0,s.useState)(!1),g=(0,q.useMediaQuery)({query:"(max-width: 767px)"}),[B,T]=(0,s.useState)(null),y=(0,s.useRef)(null);(0,s.useImperativeHandle)(m,()=>y.current),(0,S.useExposure)(y,{componentType:Q,componentName:$}),(0,s.useEffect)(()=>{M(g)},[g]);const P=c?C(e,3):e;return(0,t.jsxs)("div",{ref:y,className:(0,l.cn)("brand-equity-wrapper w-full",{"aiui-dark":a==="dark"},o),children:[i&&(0,t.jsx)(I.default,{data:{title:i}}),c?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f.Swiper,{className:(0,l.cn)(o),modules:[n.FreeMode,n.Mousewheel,n.Pagination],freeMode:!0,mousewheel:{forceToAxis:!0},pagination:{clickable:!0,el:B},breakpoints:{0:{spaceBetween:12}},children:P?.map((p,d)=>(0,t.jsx)(f.SwiperSlide,{className:"!flex flex-col gap-3",children:Array.isArray(p)&&p?.map((v,b)=>(0,t.jsx)(w,{data:v,itemShape:r,index:b,theme:v.theme??a},b))},"SwiperSlide"+d))}),(0,t.jsx)("div",{ref:T,className:"brand-equity-pagination !static mt-[20px] flex justify-center"})]}):(0,t.jsx)("div",{className:(0,l.cn)("grid grid-cols-1 gap-3","tablet:grid-cols-2","laptop:gap-4 laptop:grid-cols-10"),children:e.map((p,d)=>(0,t.jsx)(w,{data:p,itemShape:r,index:d,theme:p.theme??a},d))})]})}),w=({data:e,itemShape:r,index:i,theme:a})=>{const o=a==="dark"&&e.iconImage?e.iconImage:e.icon;return(0,t.jsxs)("div",{className:(0,l.cn)("brand-equity-item",`brand-equity-item-${i+1}`,e.containerName?`brand-equity-item--${e.containerName}`:void 0,"bg-container-secondary-1 box-border flex w-full flex-col p-4","desktop:p-6 justify-between","laptop:col-span-3 lg-desktop:p-8","laptop:h-[192px] lg-desktop:h-[240px] h-[160px]",{"laptop:col-span-4":[0,5,6,11].includes(i),"bg-container-primary":a==="dark"},"rounded-box",e.className),children:[(0,t.jsxs)("div",{className:"lg-desktop:h-[36px] flex h-[32px] items-center justify-between gap-3",children:[(0,t.jsx)("h3",{className:"lg-desktop:text-[18px] desktop:text-[16px] text-info-primary text-[14px] font-bold leading-[1.2] tracking-[-0.02em]",children:e.title}),e.type==="avatar"?(0,t.jsx)("div",{className:"flex shrink-0 -space-x-2",children:e?.avatarList?.map((m,c)=>(0,t.jsx)("div",{className:(0,l.cn)("border-container-primary size-[32px] overflow-hidden rounded-full border-2","relative inline-block shrink-0","lg-desktop:size-[36px]"),children:(0,t.jsx)(x.default,{source:m.avatar?.url,alt:m.avatar?.alt,className:"size-full object-cover"})},c))}):(0,t.jsx)("div",{className:"lg-desktop:size-[36px] size-[32px] shrink-0",children:(0,t.jsx)(x.default,{className:"size-full object-cover",source:o?.url,alt:o?.alt,imgClassName:"w-full h-full object-cover"})})]}),(0,t.jsx)("p",{className:"lg-desktop:text-[24px] text-info-primary line-clamp-3 text-[20px] font-bold leading-[1.2] tracking-[-0.04em]",children:e.description})]})};N.displayName="BrandEquity";var F=(0,E.withLayout)(N);
1
+ "use strict";"use client";var j=Object.create;var d=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var z=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty;var H=(e,r)=>{for(var i in r)d(e,i,{get:r[i],enumerable:!0})},h=(e,r,i,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of L(r))!A.call(e,o)&&o!==i&&d(e,o,{get:()=>r[o],enumerable:!(a=P(r,o))||a.enumerable});return e};var k=(e,r,i)=>(i=e!=null?j(z(e)):{},h(r||!e||!e.__esModule?d(i,"default",{value:e,enumerable:!0}):i,e)),D=e=>h(d({},"__esModule",{value:!0}),e);var F={};H(F,{default:()=>C});module.exports=D(F);var t=require("react/jsx-runtime"),s=require("react"),l=require("../../helpers/utils.js"),y=k(require("../../components/picture.js")),q=require("../../shared/Styles.js"),E=require("react-responsive"),S=require("../../hooks/useExposure.js"),c=require("swiper/react"),p=require("swiper/modules"),M=k(require("../Title/index.js"));const R="copy",Q="store_benefits",$=(e,r)=>{const i=[];for(let a=0;a<e.length;a+=r)i.push(e.slice(a,a+r));return i},N=(0,s.forwardRef)(({data:{items:e=[],itemShape:r,title:i,theme:a},className:o},u)=>{const[x,B]=(0,s.useState)(!1),v=(0,E.useMediaQuery)({query:"(max-width: 768px)"}),b=(0,s.useRef)(null),f=(0,s.useRef)(null);(0,s.useImperativeHandle)(u,()=>f.current),(0,S.useExposure)(f,{componentType:R,componentName:Q}),(0,s.useEffect)(()=>{B(v)},[v]);const T=x?$(e,3):e;return(0,t.jsxs)("div",{ref:f,className:(0,l.cn)("brand-equity-wrapper w-full",{"aiui-dark":a==="dark"},o),children:[i&&(0,t.jsx)(M.default,{data:{title:i}}),x?(0,t.jsxs)(c.Swiper,{className:(0,l.cn)(o),modules:[p.FreeMode,p.Mousewheel,p.Pagination],freeMode:!0,mousewheel:{forceToAxis:!0},pagination:{clickable:!0,el:b.current},breakpoints:{0:{spaceBetween:12}},children:[T?.map((n,m)=>(0,t.jsx)(c.SwiperSlide,{className:"!flex flex-col gap-3",children:Array.isArray(n)&&n?.map((I,g)=>(0,t.jsx)(w,{data:I,itemShape:r,index:g,theme:a},g))},"SwiperSlide"+m)),(0,t.jsx)("div",{ref:b,className:"mt-3 flex justify-center"})]}):(0,t.jsx)("div",{className:(0,l.cn)("grid grid-cols-1 gap-3","tablet:grid-cols-2","laptop:gap-4 laptop:grid-cols-10"),children:e.map((n,m)=>(0,t.jsx)(w,{data:n,itemShape:r,index:m,theme:a},m))})]})}),w=({data:e,itemShape:r,index:i,theme:a})=>(0,t.jsxs)("div",{className:(0,l.cn)("brand-equity-item",`brand-equity-item-${i+1}`,e.containerName?`brand-equity-item--${e.containerName}`:void 0,"bg-container-secondary-1 box-border flex w-full flex-col p-4","desktop:p-6 justify-between","laptop:col-span-3 lg-desktop:p-8","laptop:h-[192px] lg-desktop:h-[240px] h-[160px]",{"laptop:col-span-4":[0,5,6,11].includes(i),"bg-container-primary":a==="dark"},"rounded-box",e.className),children:[(0,t.jsxs)("div",{className:"lg-desktop:h-[36px] flex h-[30px] items-center justify-between gap-3",children:[(0,t.jsx)("h3",{className:"lg-desktop:text-[18px] desktop:text-[16px] text-info-primary text-[14px] font-bold leading-[1.2] tracking-[-0.02em]",children:e.title}),e.type==="avatar"?(0,t.jsx)("div",{className:"flex shrink-0 -space-x-2",children:e?.avatarList?.map((o,u)=>(0,t.jsx)("div",{className:(0,l.cn)("border-container-primary size-[30px] overflow-hidden rounded-full border-2","relative inline-block shrink-0","lg-desktop:size-[36px]"),children:(0,t.jsx)(y.default,{source:o.avatar?.url,alt:o.avatar?.alt,className:"size-full object-cover"})},u))}):(0,t.jsx)("div",{className:"lg-desktop:size-[36px] size-[30px] shrink-0",children:(0,t.jsx)(y.default,{className:"size-full object-cover",source:e.icon?.url,alt:e.icon?.alt,imgClassName:"w-full h-full object-cover"})})]}),(0,t.jsx)("p",{className:"lg-desktop:text-[24px] text-info-primary line-clamp-3 text-[20px] font-bold leading-[1.2] tracking-[-0.04em]",children:e.description})]});N.displayName="BrandEquity";var C=(0,q.withLayout)(N);
@@ -1,8 +1,6 @@
1
1
  import type { ComponentCommonProps, Img } from '../../types/props.js';
2
2
  export interface BrandEquityItemProps {
3
3
  icon?: Img;
4
- /** 暗色主题专用图标:item 或全局 theme 为 dark 时优先于 icon 渲染(semantic-media 命名遵循 ADR 0010) */
5
- iconImage?: Img;
6
4
  type?: 'icon' | 'avatar';
7
5
  title: string;
8
6
  description: string;
@@ -1 +1 @@
1
- "use strict";var i=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var p=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of s(t))!m.call(e,r)&&r!==n&&i(e,r,{get:()=>t[r],enumerable:!(a=o(t,r))||a.enumerable});return e};var g=e=>p(i({},"__esModule",{value:!0}),e);var c={};module.exports=g(c);
1
+ "use strict";var i=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var p=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of s(t))!m.call(e,r)&&r!==n&&i(e,r,{get:()=>t[r],enumerable:!(a=o(t,r))||a.enumerable});return e};var g=e=>p(i({},"__esModule",{value:!0}),e);var d={};module.exports=g(d);
@@ -1 +1 @@
1
- "use strict";var p=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var r=(t,o)=>{for(var i in o)p(t,i,{get:o[i],enumerable:!0})},m=(t,o,i,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of a(o))!u.call(t,n)&&n!==i&&p(t,n,{get:()=>o[n],enumerable:!(e=l(o,n))||e.enumerable});return t};var B=t=>m(p({},"__esModule",{value:!0}),t);var f={};r(f,{default:()=>d});module.exports=B(f);var c=require("react/jsx-runtime"),K=require("react"),s=require("@copilotkit/react-ui");const I=({setOpen:t})=>{const o=(0,s.useChatContext)();return(0,c.jsxs)("button",{onClick:()=>t(),className:"copilotKitButton ","aria-label":"Open Chat",children:[(0,c.jsx)("div",{className:"copilotKitButtonIcon copilotKitButtonIconOpen",children:o.icons.openIcon}),(0,c.jsx)("div",{className:"copilotKitButtonIcon copilotKitButtonIconClose",children:o.icons.closeIcon})]})};var d=I;
1
+ "use strict";var p=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var r=(t,o)=>{for(var i in o)p(t,i,{get:o[i],enumerable:!0})},B=(t,o,i,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of u(o))!a.call(t,n)&&n!==i&&p(t,n,{get:()=>o[n],enumerable:!(s=l(o,n))||s.enumerable});return t};var m=t=>B(p({},"__esModule",{value:!0}),t);var C={};r(C,{default:()=>d});module.exports=m(C);var c=require("react/jsx-runtime"),e=require("@copilotkit/react-ui");const I=({setOpen:t})=>{const o=(0,e.useChatContext)();return(0,c.jsxs)("button",{onClick:()=>t(),className:"copilotKitButton ","aria-label":"Open Chat",children:[(0,c.jsx)("div",{className:"copilotKitButtonIcon copilotKitButtonIconOpen",children:o.icons.openIcon}),(0,c.jsx)("div",{className:"copilotKitButtonIcon copilotKitButtonIconClose",children:o.icons.closeIcon})]})};var d=I;
@@ -1 +1 @@
1
- "use strict";"use client";var ze=Object.create;var E=Object.defineProperty;var De=Object.getOwnPropertyDescriptor;var Re=Object.getOwnPropertyNames;var He=Object.getPrototypeOf,je=Object.prototype.hasOwnProperty;var Ae=(d,p)=>{for(var v in p)E(d,v,{get:p[v],enumerable:!0})},se=(d,p,v,w)=>{if(p&&typeof p=="object"||typeof p=="function")for(let x of Re(p))!je.call(d,x)&&x!==v&&E(d,x,{get:()=>p[x],enumerable:!(w=De(p,x))||w.enumerable});return d};var We=(d,p,v)=>(v=d!=null?ze(He(d)):{},se(p||!d||!d.__esModule?E(v,"default",{value:d,enumerable:!0}):v,d)),$e=d=>se(E({},"__esModule",{value:!0}),d);var Ge={};Ae(Ge,{default:()=>Fe});module.exports=$e(Ge);var e=require("react/jsx-runtime"),a=We(require("react")),s=require("../../components/index.js"),o=require("../../helpers/utils.js"),me=require("../../shared/Styles.js"),z=require("../../shared/mediaGridSpec.js"),de=require("../../shared/ContainerGridContext.js"),ce=require("../../hooks/useExposure.js"),pe=require("../../hooks/useIntersectionObserver.js"),xe=require("../AiuiProvider/index.js"),ue=require("../../hooks/useTracking.js"),he=require("../../shared/trackUrlRef.js"),fe=require("../../shared/track.js"),N=require("framer-motion");const H="image",j="image_with_text",Be={1:"grid-cols-1",2:"grid-cols-2"},qe={1:"tablet:grid-cols-1",2:"tablet:grid-cols-2",3:"tablet:grid-cols-3",4:"tablet:grid-cols-4"},Oe={1:"laptop:grid-cols-1",2:"laptop:grid-cols-2"},re=(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,e.jsx)("path",{d:"M6.91009 4.41058C7.23553 4.08514 7.76304 4.08514 8.08848 4.41058L13.0885 9.41058C13.4139 9.73602 13.4139 10.2635 13.0885 10.589L8.08848 15.589C7.76304 15.9144 7.23553 15.9144 6.91009 15.589C6.58466 15.2635 6.58466 14.736 6.91009 14.4106L11.3209 9.99977L6.91009 5.58897C6.58466 5.26353 6.58466 4.73602 6.91009 4.41058Z",fill:"currentColor"})}),ne=a.default.forwardRef(({data:d,className:p},v)=>{const{title:w,subtitle:x,desc:_,descIcon:D,image:T,padImage:A,mobileImage:W,theme:ge="dark",items:I=[],layout:ve="left",mediaType:be="image",datalist:c=[],video:$,padVideo:B,mobVideo:q,button:b,textAlign:r="left",titleTag:we,caption:L}=d,i=ve,{locale:_e="us"}=(0,xe.useAiuiContext)(),{buildRef:ke}=(0,ue.useTracking)(),R=(0,a.useRef)(null),M=(0,a.useRef)(null),P=(0,a.useRef)(null),C=(0,a.useRef)(null),O=(0,a.useRef)(null),[u,ye]=(0,a.useState)(0),F=(0,a.useRef)([]),[G,Ne]=(0,a.useState)({left:0,width:0}),[k,U]=(0,a.useState)(""),[Z,J]=(0,a.useState)(""),[K,Q]=(0,a.useState)(""),n=c.length>0,S=be==="video",X=(0,de.useContainerGrid)(),Y=i==="bottom"?"bottom":"left-right",y=!n&&X?(0,z.resolveMediaGridSpec)(X.gridColumns,Y):void 0,Te=y?{...(0,z.mediaGridSpecToCssVars)(y),"--mw-l":`${y.laptop.w}px`,"--mw-d":`${y.desktop.w}px`,"--mw-x":`${y.lgDesktop.w}px`}:void 0,Ie=Be[Math.min(I.length,2)],Se=qe[Math.min(I.length,4)],Le=Oe[Math.min(I.length,2)];(0,ce.useExposure)(R,{componentType:H,componentName:j,componentTitle:w,componentDescription:x}),(0,a.useImperativeHandle)(v,()=>R.current),(0,a.useEffect)(()=>{if(c.length>0){const t=F.current[u];if(t){const{offsetLeft:m,offsetWidth:l}=t;Ne({left:m,width:l})}}},[u,c.length]);const[ee,Me]=(0,a.useState)(!1);(0,pe.useIntersectionObserverDelay)(O,{once:!0,threshold:.01,callback:()=>{Me(!0)}}),(0,a.useEffect)(()=>{if(!ee||!S)return;let t="",m="",l="";if(n&&c[u]){const f=c[u];t=f.video?.url||"",m=f.padVideo?.url||t,l=f.mobVideo?.url||t}else t=$?.url||"",m=B?.url||t,l=q?.url||t;t&&U(t),m&&J(m),l&&Q(l),setTimeout(()=>{[M.current?.querySelector("video"),P.current?.querySelector("video"),C.current?.querySelector("video")].forEach(g=>{g&&(g.load(),g.play().catch(()=>{}))})},200)},[ee,S,n,u,c,$?.url,B?.url,q?.url]);const Pe=(t,m)=>{if(ye(t),m.target.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}),S&&n&&c[t]){const l=c[t];l.video?.url&&U(l.video.url),l.padVideo?.url&&J(l.padVideo.url),l.mobVideo?.url&&Q(l.mobVideo.url),setTimeout(()=>{[M.current?.querySelector("video"),P.current?.querySelector("video"),C.current?.querySelector("video")].forEach(g=>{g&&(g.load(),g.play().catch(()=>{}))})},300)}},te=(0,o.getLocalizedPath)(b?.link||"",_e),ie=b?.link?(0,he.trackUrlRef)(te,ke(H,j)):te,ae=(0,fe.buildClickTrackingProps)({interactive:!!b?.link,componentType:H,componentName:j,title:w,description:x,buttonName:b?.text}),Ce=()=>!V||!b?.text||i==="bottom"?null:(0,e.jsx)("div",{className:(0,o.cn)("image-with-text__button-wrapper mt-[24px]",{"flex justify-center":r==="center","flex justify-start":r==="left"}),children:(0,e.jsx)(s.Link,{href:ie,...ae,className:"image-with-text__button lg-desktop:text-[16px] whitespace-nowrap text-[14px] no-underline",suffixIcon:re,children:b.text})}),h=I.length>0,V=!!b,oe=()=>{if(n&&c[u]){const t=c[u];return`${t.image?.url} ,${t.imgPad?.url||t.image?.url} 1440, ${t.imageMob?.url||t.image?.url} 767`}return T?`${T?.url},${A?.url||T?.url} 1024, ${W?.url||T?.url} 768`:""},le=()=>{if(n){const f=c[u],g=f.image?.url,Ve=f.imgPad?.url||g,Ee=f.imageMob?.url||g;return(0,e.jsx)(N.AnimatePresence,{mode:"wait",children:(0,e.jsx)(N.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"image-with-text__video-motion absolute left-0 top-0 w-full",children:(0,e.jsxs)("div",{className:"image-with-text__video-wrapper rounded-box overflow-hidden",children:[(0,e.jsx)("div",{ref:M,className:"image-with-text__desktop-video-container",children:(0,e.jsx)("video",{playsInline:!0,autoPlay:!0,muted:!0,poster:g,src:k,loop:!0,className:"image-with-text__video image-with-text__video--desktop lg-desktop:block hidden size-full object-cover"})}),(0,e.jsx)("div",{ref:P,className:"image-with-text__tablet-video-container",children:(0,e.jsx)("video",{playsInline:!0,autoPlay:!0,muted:!0,poster:Ve,src:Z||k,loop:!0,className:"image-with-text__video image-with-text__video--tablet tablet:block lg-desktop:hidden hidden"})}),(0,e.jsx)("div",{ref:C,className:"image-with-text__mobile-video-container",children:(0,e.jsx)("video",{playsInline:!0,autoPlay:!0,muted:!0,poster:Ee,src:K||k,loop:!0,className:"image-with-text__video image-with-text__video--mobile tablet:hidden block"})})]})},f.video?.url||f.image?.url)})}const t=T?.url,m=A?.url||t,l=W?.url||t;return(0,e.jsxs)("div",{className:"image-with-text__video-wrapper rounded-box laptop:rounded-box overflow-hidden",children:[(0,e.jsx)("div",{ref:M,className:"image-with-text__desktop-video-container",children:(0,e.jsx)("video",{playsInline:!0,autoPlay:!0,muted:!0,poster:t,src:k,loop:!0,className:"image-with-text__video image-with-text__video--desktop lg-desktop:block hidden size-full object-cover"})}),(0,e.jsx)("div",{ref:P,className:"image-with-text__tablet-video-container",children:(0,e.jsx)("video",{playsInline:!0,autoPlay:!0,muted:!0,poster:m,src:Z||k,loop:!0,className:"image-with-text__video image-with-text__video--tablet tablet:block lg-desktop:hidden hidden"})}),(0,e.jsx)("div",{ref:C,className:"image-with-text__mobile-video-container",children:(0,e.jsx)("video",{playsInline:!0,autoPlay:!0,muted:!0,poster:l,src:K||k,loop:!0,className:"image-with-text__video image-with-text__video--mobile tablet:hidden block"})})]})};return(0,e.jsxs)("section",{ref:R,"data-ui-component-id":"ImageWithText",className:(0,o.cn)("image-with-text text-info-primary",{flex:!n,"gap-[24px]":!n&&i==="bottom","gap-[24px] laptop:gap-[48px] lg-desktop:gap-[64px]":!n&&i!=="bottom","flex-col":!n&&i==="bottom","items-center":i==="left"||i==="right","flex-col laptop:flex-row":!n&&(i==="left"||i==="right"),"flex l:gap-[24px] xl:flex-col min-md:justify-between min-l:gap-[20px]":n,"aiui-dark":ge==="dark"},p),children:[n&&(w||_||c.length>0)&&(0,e.jsxs)("div",{className:(0,o.cn)("image-with-text__tab-content min-md:gap-[24px] laptop:basis-[36%] inline-flex flex-col justify-center",{"text-left":r==="left","text-center":r==="center"}),children:[(0,e.jsxs)("div",{className:"image-with-text__header",children:[(0,e.jsx)(s.Heading,{as:"h3",size:4,html:w,className:"image-with-text__title"}),(0,e.jsx)(s.Text,{as:"p",size:1,html:_,className:"image-with-text__description tablet:text-[14px] laptop:text-[14px] desktop:text-[16px] lg-desktop:text-[18px] mt-[4px] text-[14px]"})]}),(0,e.jsx)("div",{className:(0,o.cn)("image-with-text__tabs-wrapper md:scrollbar-hidden relative md:overflow-hidden md:overflow-x-scroll",{"flex justify-center":r==="center"}),children:(0,e.jsxs)("div",{className:"image-with-text__tabs rounded-btn relative inline-flex bg-[#1D1D1F] px-[4px] md:my-[24px]",children:[(0,e.jsx)("div",{className:"image-with-text__slider rounded-btn absolute inset-y-0 bg-white transition-all duration-300 ease-in-out",style:{left:G.left,width:G.width}}),c.map((t,m)=>(0,e.jsx)("div",{ref:l=>{F.current[m]=l},onClick:l=>Pe(m,l),className:(0,o.cn)("image-with-text__tab rounded-btn min-xxl:px-[28px] min-xxl:py-[15px] relative z-10 cursor-pointer px-[20px] py-[10px] text-center text-[12px] font-medium transition-colors duration-300 md:px-[20px] md:py-[10px]",u===m?"image-with-text__tab--active text-black":"text-white"),children:(0,e.jsx)(s.Heading,{as:we??"h3",size:1,html:t?.title,className:"image-with-text__tab-title text-balance-normal !whitespace-nowrap md:text-[14px]"})},m))]})})]}),!n&&(w||x||_)&&(0,e.jsxs)("div",{className:(0,o.cn)("image-with-text__content flex w-full flex-col",{"justify-center":!V,"justify-between":V,"items-start":r==="left"&&h,"items-center":r==="center"&&h,"text-left":r==="left","text-center":r==="center","laptop:order-1":i==="left"}),children:[(0,e.jsxs)("div",{className:(0,o.cn)("image-with-text__main-content",{"flex flex-col":V}),children:[(0,e.jsxs)("div",{className:(0,o.cn)("image-with-text__header",{"laptop:flex laptop:items-end laptop:justify-between laptop:gap-16":i==="bottom"&&b?.text}),children:[(0,e.jsxs)("div",{className:"image-with-text__title-wrapper flex min-w-0 flex-1 flex-col",children:[(0,e.jsx)(s.Heading,{as:"h2",size:4,html:w,className:(0,o.cn)("image-with-text__title",{"text-left":h&&r==="left","text-center":h&&r==="center"})}),x&&(0,e.jsx)(s.Text,{as:"p",size:h?4:3,html:x,className:(0,o.cn)("image-with-text__subtitle tablet:mt-[8px] lg-desktop:text-[16px] mt-[4px] text-[14px]",{"text-left":h&&r==="left","text-center":h&&r==="center"})})]}),i==="bottom"&&b?.text&&(0,e.jsx)(s.Link,{href:ie,...ae,className:"laptop:flex lg-desktop:text-[16px] hidden whitespace-nowrap text-[14px] no-underline",suffixIcon:re,children:b.text})]}),!h&&(_||D)&&(0,e.jsxs)("div",{className:"image-with-text__description flex flex-row gap-[8px]",children:[D&&(0,e.jsx)("img",{src:D,alt:"icon",className:"image-with-text__description-icon desktop:size-[48px] size-[36px]"}),_&&(0,e.jsx)(s.Heading,{as:"h4",size:5,html:_,className:"image-with-text__description-text min-md:text-[40px] min-l:text-[40px] min-xl:text-[56px] min-xxl:text-[64px] text-[#3AD1FF] md:text-[40px]"})]}),h&&(0,e.jsx)("div",{className:(0,o.cn)("image-with-text__items laptop:mt-[32px] desktop:mt-[24px] mt-[16px] grid w-full gap-6",Ie,Se,{"!mt-6":i==="bottom",[Le]:i==="left"||i==="right"}),children:I.map((t,m)=>(0,e.jsxs)("div",{className:(0,o.cn)("image-with-text__item",{"text-center":r==="center"}),children:[(0,e.jsxs)("div",{className:(0,o.cn)("image-with-text__item-header flex flex-row items-center gap-[8px]",{"justify-center":r==="center","justify-start":r==="left"}),children:[t.icon?.url&&(0,e.jsx)(s.Picture,{source:t.icon.url,alt:t.icon?.alt,className:"image-with-text__item-icon desktop:h-[32px] lg-desktop:h-[40px] h-[24px]",imgClassName:"h-full !w-full"}),(0,e.jsx)(s.Heading,{size:4,as:"h6",className:"image-with-text__item-text bg-gradient-to-r from-[#3ad1ff] to-[#008cd6] bg-clip-text text-transparent",children:t.text})]}),(0,e.jsx)(s.Text,{size:4,as:"p",html:t.desc,className:"image-with-text__item-desc laptop:mt-[16px] lg-desktop:text-[16px] mt-[16px] line-clamp-2 text-[14px]"})]},m))}),L&&(i==="left"||i==="right")&&(0,e.jsx)(s.Text,{as:"p",size:1,weight:"medium",html:L,className:(0,o.cn)("image-with-text__caption tablet:block text-info-secondary mt-[24px] hidden",{"text-center":r==="center"})})]}),Ce()]}),(0,e.jsx)("div",{ref:O,style:Te,className:(0,o.cn)("image-with-text__media-wrapper",y?Y==="bottom"?"tablet:h-[360px] laptop:h-auto laptop:aspect-[var(--ar-l)] desktop:aspect-[var(--ar-d)] lg-desktop:aspect-[var(--ar-x)] h-[var(--mh-m)] w-full shrink-0":"tablet:h-[360px] laptop:h-auto laptop:w-[var(--mw-l)] laptop:aspect-[var(--ar-l)] desktop:w-[var(--mw-d)] desktop:aspect-[var(--ar-d)] lg-desktop:w-[var(--mw-x)] lg-desktop:aspect-[var(--ar-x)] h-[var(--mh-m)] w-full shrink-0":{"laptop:w-[60%] w-full shrink-0":i==="left"||i==="right","aspect-[716/720] max-h-[560px] max-w-[824px] tablet:aspect-[704/360] laptop:aspect-[824/560] shrink-0":h&&i!=="bottom","laptop:basis-[63%] desktop:basis-[57%]":h&&i==="left","relative w-full shrink md:aspect-[358/360] min-xxl:aspect-[824/560] min-xxl:max-w-[824px] tablet:aspect-[704/360] laptop:aspect-[744/336] laptop:basis-[64%] desktop:aspect-[648/448]":n,"!max-w-none !max-h-none aspect-auto":i==="bottom"}),children:n?S?le():(0,e.jsx)(N.AnimatePresence,{mode:"wait",children:(0,e.jsx)(N.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"image-with-text__image-motion absolute left-0 top-0 w-full",children:(0,e.jsx)(s.Picture,{source:oe(),alt:c[u].image?.alt,className:"image-with-text__image rounded-box min-xxl:aspect-[824/560] min-xxl:max-w-[824px] tablet:aspect-[704/360] laptop:aspect-[744/336] desktop:aspect-[648/448] md:aspect-[358/360]"})},c[u].image?.url)}):S?le():(0,e.jsx)(s.Picture,{source:oe(),className:(0,o.cn)("image-with-text__image rounded-box laptop:rounded-box size-full"),imgClassName:"h-full object-cover"})}),L&&!n&&(0,e.jsx)(s.Text,{as:"p",size:1,weight:"medium",html:L,className:(0,o.cn)("image-with-text__caption text-info-secondary mt-[-16px] w-full",{"tablet:hidden":i==="left"||i==="right","text-center":r==="center"})})]})});ne.displayName="ImageWithText";var Fe=(0,me.withLayout)(ne);
1
+ "use strict";"use client";var Ne=Object.create;var S=Object.defineProperty;var Te=Object.getOwnPropertyDescriptor;var Ie=Object.getOwnPropertyNames;var Le=Object.getPrototypeOf,Pe=Object.prototype.hasOwnProperty;var Ve=(n,c)=>{for(var v in c)S(n,v,{get:c[v],enumerable:!0})},te=(n,c,v,w)=>{if(c&&typeof c=="object"||typeof c=="function")for(let u of Ie(c))!Pe.call(n,u)&&u!==v&&S(n,u,{get:()=>c[u],enumerable:!(w=Te(c,u))||w.enumerable});return n};var Se=(n,c,v)=>(v=n!=null?Ne(Le(n)):{},te(c||!n||!n.__esModule?S(v,"default",{value:n,enumerable:!0}):v,n)),Me=n=>te(S({},"__esModule",{value:!0}),n);var ze={};Ve(ze,{default:()=>De});module.exports=Me(ze);var e=require("react/jsx-runtime"),o=Se(require("react")),r=require("../../components/index.js"),l=require("../../helpers/utils.js"),ae=require("../../shared/Styles.js"),le=require("../../hooks/useExposure.js"),se=require("../../hooks/useIntersectionObserver.js"),re=require("../AiuiProvider/index.js"),ne=require("../../hooks/useTracking.js"),me=require("../../shared/trackUrlRef.js"),de=require("../../shared/track.js"),y=require("framer-motion");const z="image",H="image_with_text",ie=(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,e.jsx)("path",{d:"M6.91009 4.41058C7.23553 4.08514 7.76304 4.08514 8.08848 4.41058L13.0885 9.41058C13.4139 9.73602 13.4139 10.2635 13.0885 10.589L8.08848 15.589C7.76304 15.9144 7.23553 15.9144 6.91009 15.589C6.58466 15.2635 6.58466 14.736 6.91009 14.4106L11.3209 9.99977L6.91009 5.58897C6.58466 5.26353 6.58466 4.73602 6.91009 4.41058Z",fill:"currentColor"})}),oe=o.default.forwardRef(({data:n,className:c},v)=>{const{title:w,subtitle:u,desc:_,descIcon:M,image:N,padImage:E,mobileImage:R,theme:ce="dark",items:j=[],layout:pe="left",mediaType:xe="image",datalist:d=[],video:C,padVideo:W,mobVideo:A,button:b,textAlign:m="left",titleTag:ue}=n,i=pe,{locale:fe="us"}=(0,re.useAiuiContext)(),{buildRef:ge}=(0,ne.useTracking)(),D=(0,o.useRef)(null),I=(0,o.useRef)(null),L=(0,o.useRef)(null),P=(0,o.useRef)(null),q=(0,o.useRef)(null),[f,he]=(0,o.useState)(0),B=(0,o.useRef)([]),[$,ve]=(0,o.useState)({left:0,width:0}),[k,F]=(0,o.useState)(""),[O,U]=(0,o.useState)(""),[Z,G]=(0,o.useState)(""),p=d.length>0,T=xe==="video";(0,le.useExposure)(D,{componentType:z,componentName:H,componentTitle:w,componentDescription:u}),(0,o.useImperativeHandle)(v,()=>D.current),(0,o.useEffect)(()=>{if(d.length>0){const t=B.current[f];if(t){const{offsetLeft:s,offsetWidth:a}=t;ve({left:s,width:a})}}},[f,d.length]);const[J,be]=(0,o.useState)(!1);(0,se.useIntersectionObserverDelay)(q,{once:!0,threshold:.01,callback:()=>{be(!0)}}),(0,o.useEffect)(()=>{if(!J||!T)return;let t="",s="",a="";if(p&&d[f]){const g=d[f];t=g.video?.url||"",s=g.padVideo?.url||t,a=g.mobVideo?.url||t}else t=C?.url||"",s=W?.url||t,a=A?.url||t;t&&F(t),s&&U(s),a&&G(a),setTimeout(()=>{[I.current?.querySelector("video"),L.current?.querySelector("video"),P.current?.querySelector("video")].forEach(h=>{h&&(h.load(),h.play().catch(()=>{}))})},200)},[J,T,p,f,d,C?.url,W?.url,A?.url]);const we=(t,s)=>{if(he(t),s.target.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}),T&&p&&d[t]){const a=d[t];a.video?.url&&F(a.video.url),a.padVideo?.url&&U(a.padVideo.url),a.mobVideo?.url&&G(a.mobVideo.url),setTimeout(()=>{[I.current?.querySelector("video"),L.current?.querySelector("video"),P.current?.querySelector("video")].forEach(h=>{h&&(h.load(),h.play().catch(()=>{}))})},300)}},K=(0,l.getLocalizedPath)(b?.link||"",fe),Q=b?.link?(0,me.trackUrlRef)(K,ge(z,H)):K,X=(0,de.buildClickTrackingProps)({interactive:!!b?.link,componentType:z,componentName:H,title:w,description:u,buttonName:b?.text}),_e=()=>!V||!b?.text||i==="top"||i==="bottom"?null:(0,e.jsx)("div",{className:(0,l.cn)("image-with-text__button-wrapper laptop:mt-[32px] mt-[24px]",{"flex justify-center":m==="center","flex justify-start":m==="left"}),children:(0,e.jsx)(r.Link,{href:Q,...X,className:"image-with-text__button whitespace-nowrap no-underline",suffixIcon:ie,children:b.text})}),x=j.length>0,V=!!b,Y=()=>{if(p&&d[f]){const t=d[f];return`${t.image?.url} ,${t.imgPad?.url||t.image?.url} 1440, ${t.imageMob?.url||t.image?.url} 767`}return N?`${N?.url},${E?.url||N?.url} 1024, ${R?.url||N?.url} 768`:""},ee=()=>{if(p){const g=d[f],h=g.image?.url,ke=g.imgPad?.url||h,ye=g.imageMob?.url||h;return(0,e.jsx)(y.AnimatePresence,{mode:"wait",children:(0,e.jsx)(y.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"image-with-text__video-motion absolute left-0 top-0 w-full",children:(0,e.jsxs)("div",{className:"image-with-text__video-wrapper rounded-box overflow-hidden",children:[(0,e.jsx)("div",{ref:I,className:"image-with-text__desktop-video-container",children:(0,e.jsx)("video",{playsInline:!0,autoPlay:!0,muted:!0,poster:h,src:k,loop:!0,className:"image-with-text__video image-with-text__video--desktop lg-desktop:block hidden size-full object-cover"})}),(0,e.jsx)("div",{ref:L,className:"image-with-text__tablet-video-container",children:(0,e.jsx)("video",{playsInline:!0,autoPlay:!0,muted:!0,poster:ke,src:O||k,loop:!0,className:"image-with-text__video image-with-text__video--tablet tablet:block lg-desktop:hidden hidden"})}),(0,e.jsx)("div",{ref:P,className:"image-with-text__mobile-video-container",children:(0,e.jsx)("video",{playsInline:!0,autoPlay:!0,muted:!0,poster:ye,src:Z||k,loop:!0,className:"image-with-text__video image-with-text__video--mobile tablet:hidden block"})})]})},g.video?.url||g.image?.url)})}const t=N?.url,s=E?.url||t,a=R?.url||t;return(0,e.jsxs)("div",{className:"image-with-text__video-wrapper rounded-box laptop:rounded-box overflow-hidden",children:[(0,e.jsx)("div",{ref:I,className:"image-with-text__desktop-video-container",children:(0,e.jsx)("video",{playsInline:!0,autoPlay:!0,muted:!0,poster:t,src:k,loop:!0,className:"image-with-text__video image-with-text__video--desktop lg-desktop:block hidden size-full object-cover"})}),(0,e.jsx)("div",{ref:L,className:"image-with-text__tablet-video-container",children:(0,e.jsx)("video",{playsInline:!0,autoPlay:!0,muted:!0,poster:s,src:O||k,loop:!0,className:"image-with-text__video image-with-text__video--tablet tablet:block lg-desktop:hidden hidden"})}),(0,e.jsx)("div",{ref:P,className:"image-with-text__mobile-video-container",children:(0,e.jsx)("video",{playsInline:!0,autoPlay:!0,muted:!0,poster:a,src:Z||k,loop:!0,className:"image-with-text__video image-with-text__video--mobile tablet:hidden block"})})]})};return(0,e.jsxs)("section",{ref:D,"data-ui-component-id":"ImageWithText",className:(0,l.cn)("image-with-text text-info-primary",{"flex gap-[24px] laptop:gap-[48px] lg-desktop:gap-[64px]":!p,"flex-col":!p&&(i==="top"||i==="bottom"),"items-center":i==="left"||i==="right","flex-col laptop:flex-row":!p&&(i==="left"||i==="right"),"flex l:gap-[24px] xl:flex-col min-md:justify-between min-l:gap-[20px]":p,"aiui-dark":ce==="dark"},c),children:[p&&(w||_||d.length>0)&&(0,e.jsxs)("div",{className:(0,l.cn)("image-with-text__tab-content min-md:gap-[24px] laptop:basis-[36%] inline-flex flex-col justify-center",{"text-left":m==="left","text-center":m==="center"}),children:[(0,e.jsxs)("div",{className:"image-with-text__header",children:[(0,e.jsx)(r.Heading,{as:"h3",size:4,html:w,className:"image-with-text__title"}),(0,e.jsx)(r.Text,{as:"p",size:1,html:_,className:"image-with-text__description tablet:text-[14px] laptop:text-[14px] desktop:text-[16px] lg-desktop:text-[18px] mt-[4px] text-[14px]"})]}),(0,e.jsx)("div",{className:(0,l.cn)("image-with-text__tabs-wrapper md:scrollbar-hidden relative md:overflow-hidden md:overflow-x-scroll",{"flex justify-center":m==="center"}),children:(0,e.jsxs)("div",{className:"image-with-text__tabs rounded-btn relative inline-flex bg-[#1D1D1F] px-[4px] md:my-[24px]",children:[(0,e.jsx)("div",{className:"image-with-text__slider rounded-btn absolute inset-y-0 bg-white transition-all duration-300 ease-in-out",style:{left:$.left,width:$.width}}),d.map((t,s)=>(0,e.jsx)("div",{ref:a=>{B.current[s]=a},onClick:a=>we(s,a),className:(0,l.cn)("image-with-text__tab rounded-btn min-xxl:px-[28px] min-xxl:py-[15px] relative z-10 cursor-pointer px-[20px] py-[10px] text-center text-[12px] font-medium transition-colors duration-300 md:px-[20px] md:py-[10px]",f===s?"image-with-text__tab--active text-black":"text-white"),children:(0,e.jsx)(r.Heading,{as:ue??"h3",size:1,html:t?.title,className:"image-with-text__tab-title text-balance-normal !whitespace-nowrap md:text-[14px]"})},s))]})})]}),!p&&(w||u||_)&&(0,e.jsxs)("div",{className:(0,l.cn)("image-with-text__content flex w-full flex-col",{"justify-center":!V,"justify-between":V,"items-start":m==="left"&&x,"items-center":m==="center"&&x,"text-left":m==="left","text-center":m==="center","laptop:order-1":i==="left"}),children:[(0,e.jsxs)("div",{className:(0,l.cn)("image-with-text__main-content",{"flex flex-col":V}),children:[(0,e.jsxs)("div",{className:(0,l.cn)("image-with-text__header",{"laptop:flex laptop:items-end laptop:justify-between laptop:gap-16":(i==="top"||i==="bottom")&&b?.text}),children:[(0,e.jsxs)("div",{className:"image-with-text__title-wrapper flex min-w-0 flex-1 flex-col",children:[(0,e.jsx)(r.Heading,{as:"h2",size:4,html:w,className:(0,l.cn)("image-with-text__title",{"text-left":x&&m==="left","text-center":x&&m==="center"})}),u&&(0,e.jsx)(r.Text,{as:"p",size:x?4:3,html:u,className:(0,l.cn)("image-with-text__subtitle tablet:text-[14px] laptop:text-[14px] desktop:text-[16px] lg-desktop:text-[18px] mt-[4px] text-[14px]",{"laptop:mt-[16px]":!x,"min-xxl:mt-[8px] laptop:text-[16px] lg-desktop:text-[18px]":x,"text-left":x&&m==="left","text-center":x&&m==="center"})})]}),(i==="top"||i==="bottom")&&b?.text&&(0,e.jsx)(r.Link,{href:Q,...X,className:"laptop:flex hidden whitespace-nowrap no-underline",suffixIcon:ie,children:b.text})]}),!x&&(_||M)&&(0,e.jsxs)("div",{className:"image-with-text__description flex flex-row gap-[8px]",children:[M&&(0,e.jsx)("img",{src:M,alt:"icon",className:"image-with-text__description-icon desktop:size-[48px] size-[36px]"}),_&&(0,e.jsx)(r.Heading,{as:"h4",size:5,html:_,className:"image-with-text__description-text min-md:text-[40px] min-l:text-[40px] min-xl:text-[56px] min-xxl:text-[64px] text-[#3AD1FF] md:text-[40px]"})]}),x&&(0,e.jsx)("div",{className:(0,l.cn)("image-with-text__items laptop:mt-[32px] desktop:mt-[48px] mt-[24px] grid w-full gap-6",{"!mt-6":i==="top"||i==="bottom","grid-cols-2 tablet:grid-cols-4":i==="top"||i==="bottom","grid-cols-2 tablet:grid-cols-4 laptop:grid-cols-2":i==="left"||i==="right"}),children:j.map((t,s)=>(0,e.jsxs)("div",{className:(0,l.cn)("image-with-text__item",{"text-center":m==="center"}),children:[(0,e.jsxs)("div",{className:(0,l.cn)("image-with-text__item-header flex flex-row items-center gap-[8px]",{"justify-center":m==="center","justify-start":m==="left"}),children:[t.icon?.url&&(0,e.jsx)(r.Picture,{source:t.icon.url,alt:t.icon?.alt,className:"image-with-text__item-icon min-md:text-[40px] min-l:text-[40px] min-xl:text-[56px] min-xxl:text-[64px] desktop:h-[44px] lg-desktop:h-[52px] h-[28px] translate-y-[-12%] md:text-[40px]",imgClassName:"h-full !w-full"}),(0,e.jsx)(r.Heading,{size:4,as:"h6",className:"image-with-text__item-text bg-gradient-to-r from-[#3ad1ff] to-[#008cd6] bg-clip-text text-transparent",children:t.text})]}),(0,e.jsx)(r.Text,{size:4,as:"p",html:t.desc,className:"image-with-text__item-desc tablet:text-[14px] laptop:text-[14px] desktop:text-[16px] lg-desktop:text-[18px] mt-[-2px] text-[14px]"})]},s))})]}),_e()]}),(0,e.jsx)("div",{ref:q,className:(0,l.cn)("image-with-text__media-wrapper",{"laptop:w-[60%] w-full shrink-0":i==="left"||i==="right","aspect-[716/720] max-h-[560px] max-w-[824px] tablet:aspect-[704/360] laptop:aspect-[824/560] shrink-0":x,"laptop:basis-[63%] desktop:basis-[57%]":x&&i==="left","relative w-full shrink md:aspect-[358/360] min-xxl:aspect-[824/560] min-xxl:max-w-[824px] tablet:aspect-[704/360] laptop:aspect-[744/336] laptop:basis-[64%] desktop:aspect-[648/448]":p,"!max-w-none !max-h-none aspect-auto":i==="top"||i==="bottom"}),children:p?T?ee():(0,e.jsx)(y.AnimatePresence,{mode:"wait",children:(0,e.jsx)(y.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"image-with-text__image-motion absolute left-0 top-0 w-full",children:(0,e.jsx)(r.Picture,{source:Y(),alt:d[f].image?.alt,className:"image-with-text__image rounded-box min-xxl:aspect-[824/560] min-xxl:max-w-[824px] tablet:aspect-[704/360] laptop:aspect-[744/336] desktop:aspect-[648/448] md:aspect-[358/360]"})},d[f].image?.url)}):T?ee():(0,e.jsx)(r.Picture,{source:Y(),className:(0,l.cn)("image-with-text__image rounded-box laptop:rounded-box")})})]})});oe.displayName="ImageWithText";var De=(0,ae.withLayout)(oe);
@@ -45,7 +45,7 @@ export interface ImageWithTextTabItem {
45
45
  title: string;
46
46
  }
47
47
  export type MediaType = 'image' | 'video';
48
- export type LayoutPosition = 'left' | 'right' | 'bottom';
48
+ export type LayoutPosition = 'left' | 'right' | 'top' | 'bottom';
49
49
  export type TextAlign = 'left' | 'center';
50
50
  /** 列数枚举类型 */
51
51
  export declare enum Cols {
@@ -68,7 +68,7 @@ export interface ImageWithTextProps {
68
68
  descIcon?: string;
69
69
  /** 主题,默认 dark */
70
70
  theme?: Theme;
71
- /** 布局位置,默认 left。支持左右布局(left/right)和上下布局(bottom,图下文上) */
71
+ /** 布局位置,默认 left。支持上下左右布局(left/right/top/bottom) */
72
72
  layout?: LayoutPosition;
73
73
  /** 媒体类型,默认 image。所有模式都支持 image 和 video */
74
74
  mediaType?: MediaType;
@@ -104,12 +104,6 @@ export interface ImageWithTextProps {
104
104
  datalist?: ImageWithTextTabItem[];
105
105
  /** 按钮配置 */
106
106
  button?: ButtonConfig;
107
- /**
108
- * 媒体说明文字(12px,可选,缺省不渲染)
109
- * - bottom 布局:全断点位于图片下方,上方间距 8px
110
- * - left/right 布局:≥768px 位于功能列表(图标组)下方(上方间距 24px),<768px 位于图片下方(上方间距 8px)
111
- */
112
- caption?: string;
113
107
  };
114
108
  /** 自定义类名 */
115
109
  className?: string;
@@ -1 +1 @@
1
- "use strict";var o=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var p=(i,t)=>{for(var a in t)o(i,a,{get:t[a],enumerable:!0})},s=(i,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of g(t))!m.call(i,e)&&e!==a&&o(i,e,{get:()=>t[e],enumerable:!(r=n(t,e))||r.enumerable});return i};var x=i=>s(o({},"__esModule",{value:!0}),i);var M={};p(M,{Cols:()=>d});module.exports=x(M);var d=(e=>(e.One="1",e.Two="2",e.Three="3",e.Four="4",e))(d||{});
1
+ "use strict";var o=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var p=(i,t)=>{for(var a in t)o(i,a,{get:t[a],enumerable:!0})},s=(i,t,a,d)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of m(t))!g.call(i,e)&&e!==a&&o(i,e,{get:()=>t[e],enumerable:!(d=n(t,e))||d.enumerable});return i};var x=i=>s(o({},"__esModule",{value:!0}),i);var M={};p(M,{Cols:()=>r});module.exports=x(M);var r=(e=>(e.One="1",e.Two="2",e.Three="3",e.Four="4",e))(r||{});
@@ -7,8 +7,6 @@ export interface KspCardItem {
7
7
  title?: string;
8
8
  /** 描述 */
9
9
  desc?: string;
10
- /** 主题(逐项独立设置,跟随该卡片物料背景色系;不影响组件顶层 theme),默认 light */
11
- theme?: Theme;
12
10
  /** 移动端图片 */
13
11
  mobImage?: Media;
14
12
  /** 移动端视频 */
@@ -1 +1 @@
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
+ "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 +1 @@
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
+ "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 +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=(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
+ "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,4 +1,4 @@
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=`
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=`
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!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;"});
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;"});
@@ -16,7 +16,7 @@ export type TitleType = 'selling-point' | 'primary' | 'secondary';
16
16
  /** 文本对齐方式 */
17
17
  export type TextAlign = 'left' | 'center';
18
18
  /** 图片宽度比例(2张图片时) */
19
- export type TwoImageRatio = '2:3' | '4:6' | '1:1';
19
+ export type TwoImageRatio = '2:3' | '1:1';
20
20
  /** 图片宽度比例(3张图片时) */
21
21
  export type ThreeImageRatio = '1:1:1';
22
22
  export interface ProductCompareProps extends React.HTMLAttributes<HTMLElement> {