@scbt-ecom/ui 0.163.0 → 0.164.0

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 (123) hide show
  1. package/dist/lib/exports/utils.js +1 -1
  2. package/dist/lib/shared/dataLayers/index.js +1 -1
  3. package/dist/lib/shared/dataLayers/utils.js +2 -0
  4. package/dist/lib/shared/dataLayers/utils.js.map +1 -0
  5. package/dist/lib/shared/ui/phoneView/PhoneView.js +1 -1
  6. package/dist/lib/shared/ui/phoneView/PhoneView.js.map +1 -1
  7. package/dist/lib/shared/utils/extractTextFromHtml.js +2 -0
  8. package/dist/lib/shared/utils/extractTextFromHtml.js.map +1 -0
  9. package/dist/lib/shared/utils/index.js +1 -1
  10. package/dist/lib/widgets/banner/Banner.js.map +1 -1
  11. package/dist/lib/widgets/banner/ui/banners/BannerImageFull.js +1 -1
  12. package/dist/lib/widgets/banner/ui/banners/BannerImageFull.js.map +1 -1
  13. package/dist/lib/widgets/banner/ui/banners/BannerWithSeparateImg.js +1 -1
  14. package/dist/lib/widgets/banner/ui/banners/BannerWithSeparateImg.js.map +1 -1
  15. package/dist/lib/widgets/banner/ui/banners/ui/Buttons.js +1 -1
  16. package/dist/lib/widgets/banner/ui/banners/ui/Buttons.js.map +1 -1
  17. package/dist/lib/widgets/benefit/Benefit.js +1 -1
  18. package/dist/lib/widgets/benefit/Benefit.js.map +1 -1
  19. package/dist/lib/widgets/benefit/ui/BenefitItem.js +1 -1
  20. package/dist/lib/widgets/benefit/ui/BenefitItem.js.map +1 -1
  21. package/dist/lib/widgets/breadcrumbs/Breadcrumb.js +1 -1
  22. package/dist/lib/widgets/breadcrumbs/Breadcrumb.js.map +1 -1
  23. package/dist/lib/widgets/calculator/Calculator.js +1 -1
  24. package/dist/lib/widgets/calculator/Calculator.js.map +1 -1
  25. package/dist/lib/widgets/calculator/CalculatorView.js +1 -1
  26. package/dist/lib/widgets/calculator/CalculatorView.js.map +1 -1
  27. package/dist/lib/widgets/calculator/ui/CalculatorTabs.js +1 -1
  28. package/dist/lib/widgets/calculator/ui/CalculatorTabs.js.map +1 -1
  29. package/dist/lib/widgets/calculator/ui/calculatorInfo/CalculatorInfo.js +1 -1
  30. package/dist/lib/widgets/calculator/ui/calculatorInfo/CalculatorInfo.js.map +1 -1
  31. package/dist/lib/widgets/calculator/ui/calculatorInfo/ui/AssistHint.js +1 -1
  32. package/dist/lib/widgets/calculator/ui/calculatorInfo/ui/AssistHint.js.map +1 -1
  33. package/dist/lib/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoFooter.js +1 -1
  34. package/dist/lib/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoFooter.js.map +1 -1
  35. package/dist/lib/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.js +1 -1
  36. package/dist/lib/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.js.map +1 -1
  37. package/dist/lib/widgets/conditionBlock/ConditionBlock.js +1 -1
  38. package/dist/lib/widgets/conditionBlock/ConditionBlock.js.map +1 -1
  39. package/dist/lib/widgets/conditionBlock/ui/ConditionsWithCTA.js +1 -1
  40. package/dist/lib/widgets/conditionBlock/ui/ConditionsWithCTA.js.map +1 -1
  41. package/dist/lib/widgets/errorPage/ErrorPage.js +1 -1
  42. package/dist/lib/widgets/errorPage/ErrorPage.js.map +1 -1
  43. package/dist/lib/widgets/esia/Esia.js +1 -1
  44. package/dist/lib/widgets/esia/Esia.js.map +1 -1
  45. package/dist/lib/widgets/esia/ui/TextBlock.js +1 -1
  46. package/dist/lib/widgets/esia/ui/TextBlock.js.map +1 -1
  47. package/dist/lib/widgets/footer/ui/NavLinks.js +1 -1
  48. package/dist/lib/widgets/footer/ui/NavLinks.js.map +1 -1
  49. package/dist/lib/widgets/footer/ui/PhonesBlock.js +1 -1
  50. package/dist/lib/widgets/footer/ui/PhonesBlock.js.map +1 -1
  51. package/dist/lib/widgets/footer/ui/SiteMap.js +1 -1
  52. package/dist/lib/widgets/footer/ui/SiteMap.js.map +1 -1
  53. package/dist/lib/widgets/footer/ui/SocialLinks.js +1 -1
  54. package/dist/lib/widgets/footer/ui/SocialLinks.js.map +1 -1
  55. package/dist/lib/widgets/header/model/helpers.js +1 -1
  56. package/dist/lib/widgets/header/model/helpers.js.map +1 -1
  57. package/dist/lib/widgets/infoBlock/ui/LinksList.js +1 -1
  58. package/dist/lib/widgets/infoBlock/ui/LinksList.js.map +1 -1
  59. package/dist/lib/widgets/infoBlock/ui/RootContent.js +1 -1
  60. package/dist/lib/widgets/infoBlock/ui/RootContent.js.map +1 -1
  61. package/dist/lib/widgets/interLinking/InterLinking.js +1 -1
  62. package/dist/lib/widgets/interLinking/InterLinking.js.map +1 -1
  63. package/dist/lib/widgets/interLinking/ui/ColumnGroup.js +1 -1
  64. package/dist/lib/widgets/interLinking/ui/ColumnGroup.js.map +1 -1
  65. package/dist/lib/widgets/interLinking/ui/LinksList.js +1 -1
  66. package/dist/lib/widgets/interLinking/ui/LinksList.js.map +1 -1
  67. package/dist/lib/widgets/longBanner/LongBanner.js +1 -1
  68. package/dist/lib/widgets/longBanner/LongBanner.js.map +1 -1
  69. package/dist/lib/widgets/longBanner/ui/TextItem.js +1 -1
  70. package/dist/lib/widgets/longBanner/ui/TextItem.js.map +1 -1
  71. package/dist/lib/widgets/model/helpers.js +2 -2
  72. package/dist/lib/widgets/model/helpers.js.map +1 -1
  73. package/dist/lib/widgets/seoHeader/model/index.js +1 -1
  74. package/dist/lib/widgets/seoHeader/ui/desktop/CategoriesDesktop.js +1 -1
  75. package/dist/lib/widgets/seoHeader/ui/desktop/CategoriesDesktop.js.map +1 -1
  76. package/dist/lib/widgets/seoHeader/ui/desktop/CategoryTabs.js +1 -1
  77. package/dist/lib/widgets/seoHeader/ui/desktop/CategoryTabs.js.map +1 -1
  78. package/dist/lib/widgets/seoHeader/ui/desktop/rootTab/RootTab.js +1 -1
  79. package/dist/lib/widgets/seoHeader/ui/desktop/rootTab/RootTab.js.map +1 -1
  80. package/dist/lib/widgets/seoHeader/ui/desktop/tab/Tab.js +1 -1
  81. package/dist/lib/widgets/seoHeader/ui/desktop/tab/Tab.js.map +1 -1
  82. package/dist/lib/widgets/seoHeader/ui/desktop/tab/ui/content/TabContent.js +1 -1
  83. package/dist/lib/widgets/seoHeader/ui/desktop/tab/ui/content/TabContent.js.map +1 -1
  84. package/dist/lib/widgets/seoHeader/ui/mobile/menu/Menu.js +1 -1
  85. package/dist/lib/widgets/seoHeader/ui/mobile/menu/Menu.js.map +1 -1
  86. package/dist/lib/widgets/seoHeader/ui/mobile/menu/MenuItem.js +1 -1
  87. package/dist/lib/widgets/seoHeader/ui/mobile/menu/MenuItem.js.map +1 -1
  88. package/dist/lib/widgets/stepper/Stepper.js +1 -1
  89. package/dist/lib/widgets/stepper/Stepper.js.map +1 -1
  90. package/dist/lib/widgets/stepper/ui/StepperTabs.js +1 -1
  91. package/dist/lib/widgets/stepper/ui/StepperTabs.js.map +1 -1
  92. package/dist/lib/widgets/usefulInfo/ui/Tabs.js +1 -1
  93. package/dist/lib/widgets/usefulInfo/ui/Tabs.js.map +1 -1
  94. package/dist/lib/widgets/userFeedback/UserFeedback.js +1 -1
  95. package/dist/lib/widgets/userFeedback/UserFeedback.js.map +1 -1
  96. package/dist/lib/widgets/userFeedback/ui/SelectRating.js +1 -1
  97. package/dist/lib/widgets/userFeedback/ui/SelectRating.js.map +1 -1
  98. package/dist/stats.html +1 -1
  99. package/dist/types/lib/shared/dataLayers/index.d.ts +1 -0
  100. package/dist/types/lib/shared/dataLayers/utils.d.ts +33 -0
  101. package/dist/types/lib/shared/utils/extractTextFromHtml.d.ts +2 -0
  102. package/dist/types/lib/shared/utils/index.d.ts +1 -0
  103. package/dist/types/lib/widgets/banner/Banner.d.ts +1 -1
  104. package/dist/types/lib/widgets/banner/ui/banners/ui/Buttons.d.ts +2 -1
  105. package/dist/types/lib/widgets/benefit/ui/BenefitItem.d.ts +2 -1
  106. package/dist/types/lib/widgets/calculator/CalculatorView.d.ts +2 -1
  107. package/dist/types/lib/widgets/calculator/ui/CalculatorTabs.d.ts +2 -1
  108. package/dist/types/lib/widgets/calculator/ui/calculatorInfo/CalculatorInfo.d.ts +2 -1
  109. package/dist/types/lib/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoFooter.d.ts +2 -1
  110. package/dist/types/lib/widgets/conditionBlock/ConditionBlock.d.ts +2 -2
  111. package/dist/types/lib/widgets/conditionBlock/model/types.d.ts +1 -0
  112. package/dist/types/lib/widgets/esia/ui/TextBlock.d.ts +1 -2
  113. package/dist/types/lib/widgets/longBanner/LongBanner.d.ts +1 -2
  114. package/dist/types/lib/widgets/seoHeader/model/index.d.ts +0 -1
  115. package/dist/types/lib/widgets/stepper/Stepper.d.ts +2 -2
  116. package/dist/types/lib/widgets/stepper/ui/StepperTabs.d.ts +2 -1
  117. package/package.json +1 -1
  118. package/dist/lib/widgets/footer/model/dataLayers.js +0 -2
  119. package/dist/lib/widgets/footer/model/dataLayers.js.map +0 -1
  120. package/dist/lib/widgets/seoHeader/model/dataLayers.js +0 -2
  121. package/dist/lib/widgets/seoHeader/model/dataLayers.js.map +0 -1
  122. package/dist/types/lib/widgets/footer/model/dataLayers.d.ts +0 -1
  123. package/dist/types/lib/widgets/seoHeader/model/dataLayers.d.ts +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ConditionsWithCTA.js","sources":["../../../../../lib/widgets/conditionBlock/ui/ConditionsWithCTA.tsx"],"sourcesContent":["import { cn } from '$/shared/utils'\nimport { ButtonWithHandlers } from '$/widgets/buttonWithHandlers'\nimport { type ConditionWitchCTAType } from '$/widgets/conditionBlock/model/types'\n\nexport type ConditionsWithCTAClasses = {\n conditionWitchCTAContainer?: string\n descriptionFirstRate?: string\n firstRate?: string\n secondRate?: string\n descriptionSecondRate?: string\n mainDescription?: string\n button?: string\n}\n\nexport const ConditionsWithCTA = (props: ConditionWitchCTAType) => {\n const { classes, firstRate, descriptionFirstRate, secondRate, descriptionSecondRate, mainDescription, button } = props\n\n return (\n <div\n className={cn(\n 'relative flex flex-col overflow-hidden rounded-md bg-color-blue-grey-100 p-4 desktop:w-[386px] desktop:p-8',\n classes?.conditionWitchCTAContainer\n )}\n >\n <div className={cn('mb-3 flex flex-col gap-2')}>\n {firstRate && (\n <div\n dangerouslySetInnerHTML={{ __html: firstRate }}\n className={cn('mob-title-bold-l text-color-primary-default desktop:desk-title-bold-l', classes?.firstRate)}\n />\n )}\n <div\n dangerouslySetInnerHTML={{ __html: descriptionFirstRate ?? '' }}\n className={cn('desk-body-regular-l text-color-dark', classes?.descriptionFirstRate)}\n />\n </div>\n <div className={cn('mb-6 flex flex-col gap-2 desktop:mb-11')}>\n {secondRate && (\n <div\n dangerouslySetInnerHTML={{ __html: secondRate }}\n className={cn('mob-title-bold-l text-color-primary-default desktop:desk-title-bold-l', classes?.secondRate)}\n />\n )}\n <div\n dangerouslySetInnerHTML={{ __html: descriptionSecondRate ?? '' }}\n className={cn('desk-body-regular-l text-color-dark', classes?.descriptionSecondRate)}\n />\n </div>\n {mainDescription && (\n <div\n dangerouslySetInnerHTML={{ __html: mainDescription }}\n className={cn('mob-body-regular-l mb-6 text-color-tetriary desktop:desk-body-regular-l', classes?.mainDescription)}\n />\n )}\n {button && <ButtonWithHandlers intent='primary' className={cn('mt-auto w-full', classes?.button)} size='lg' {...button} />}\n </div>\n )\n}\n"],"names":["ConditionsWithCTA","props","classes","firstRate","descriptionFirstRate","secondRate","descriptionSecondRate","mainDescription","button","jsxs","cn","jsx","ButtonWithHandlers"],"mappings":"uLAcO,MAAMA,EAAqBC,GAAiC,CACjE,KAAM,CAAE,QAAAC,EAAS,UAAAC,EAAW,qBAAAC,EAAsB,WAAAC,EAAY,sBAAAC,EAAuB,gBAAAC,EAAiB,OAAAC,GAAWP,EAEjH,OACEQ,EAAC,MAAA,CACC,UAAWC,EACT,6GACAR,GAAS,0BAAA,EAGX,SAAA,CAAAO,EAAC,MAAA,CAAI,UAAWC,EAAG,0BAA0B,EAC1C,SAAA,CAAAP,GACCQ,EAAC,MAAA,CACC,wBAAyB,CAAE,OAAQR,CAAA,EACnC,UAAWO,EAAG,wEAAyER,GAAS,SAAS,CAAA,CAAA,EAG7GS,EAAC,MAAA,CACC,wBAAyB,CAAE,OAAQP,GAAwB,EAAA,EAC3D,UAAWM,EAAG,sCAAuCR,GAAS,oBAAoB,CAAA,CAAA,CACpF,EACF,EACAO,EAAC,MAAA,CAAI,UAAWC,EAAG,wCAAwC,EACxD,SAAA,CAAAL,GACCM,EAAC,MAAA,CACC,wBAAyB,CAAE,OAAQN,CAAA,EACnC,UAAWK,EAAG,wEAAyER,GAAS,UAAU,CAAA,CAAA,EAG9GS,EAAC,MAAA,CACC,wBAAyB,CAAE,OAAQL,GAAyB,EAAA,EAC5D,UAAWI,EAAG,sCAAuCR,GAAS,qBAAqB,CAAA,CAAA,CACrF,EACF,EACCK,GACCI,EAAC,MAAA,CACC,wBAAyB,CAAE,OAAQJ,CAAA,EACnC,UAAWG,EAAG,0EAA2ER,GAAS,eAAe,CAAA,CAAA,EAGpHM,GAAUG,EAACC,EAAA,CAAmB,OAAO,UAAU,UAAWF,EAAG,iBAAkBR,GAAS,MAAM,EAAG,KAAK,KAAM,GAAGM,CAAA,CAAQ,CAAA,CAAA,CAAA,CAG9H"}
1
+ {"version":3,"file":"ConditionsWithCTA.js","sources":["../../../../../lib/widgets/conditionBlock/ui/ConditionsWithCTA.tsx"],"sourcesContent":["import { pushToDlButton } from '../../../shared/dataLayers'\nimport { cn } from '$/shared/utils'\nimport { ButtonWithHandlers } from '$/widgets/buttonWithHandlers'\nimport { type ConditionWitchCTAType } from '$/widgets/conditionBlock/model/types'\n\nexport type ConditionsWithCTAClasses = {\n conditionWitchCTAContainer?: string\n descriptionFirstRate?: string\n firstRate?: string\n secondRate?: string\n descriptionSecondRate?: string\n mainDescription?: string\n button?: string\n}\n\nexport const ConditionsWithCTA = (props: ConditionWitchCTAType) => {\n const { classes, firstRate, descriptionFirstRate, secondRate, descriptionSecondRate, mainDescription, button, headline } = props\n\n return (\n <div\n className={cn(\n 'relative flex flex-col overflow-hidden rounded-md bg-color-blue-grey-100 p-4 desktop:w-[386px] desktop:p-8',\n classes?.conditionWitchCTAContainer\n )}\n >\n <div className={cn('mb-3 flex flex-col gap-2')}>\n {firstRate && (\n <div\n dangerouslySetInnerHTML={{ __html: firstRate }}\n className={cn('mob-title-bold-l text-color-primary-default desktop:desk-title-bold-l', classes?.firstRate)}\n />\n )}\n <div\n dangerouslySetInnerHTML={{ __html: descriptionFirstRate ?? '' }}\n className={cn('desk-body-regular-l text-color-dark', classes?.descriptionFirstRate)}\n />\n </div>\n <div className={cn('mb-6 flex flex-col gap-2 desktop:mb-11')}>\n {secondRate && (\n <div\n dangerouslySetInnerHTML={{ __html: secondRate }}\n className={cn('mob-title-bold-l text-color-primary-default desktop:desk-title-bold-l', classes?.secondRate)}\n />\n )}\n <div\n dangerouslySetInnerHTML={{ __html: descriptionSecondRate ?? '' }}\n className={cn('desk-body-regular-l text-color-dark', classes?.descriptionSecondRate)}\n />\n </div>\n {mainDescription && (\n <div\n dangerouslySetInnerHTML={{ __html: mainDescription }}\n className={cn('mob-body-regular-l mb-6 text-color-tetriary desktop:desk-body-regular-l', classes?.mainDescription)}\n />\n )}\n {button && (\n <ButtonWithHandlers\n onPointerDown={() => pushToDlButton(button?.children as string, headline, 'conditionBlock')}\n intent='primary'\n className={cn('mt-auto w-full', classes?.button)}\n size='lg'\n {...button}\n />\n )}\n </div>\n )\n}\n"],"names":["ConditionsWithCTA","props","classes","firstRate","descriptionFirstRate","secondRate","descriptionSecondRate","mainDescription","button","headline","jsxs","cn","jsx","ButtonWithHandlers","pushToDlButton"],"mappings":"4PAeO,MAAMA,EAAqBC,GAAiC,CACjE,KAAM,CAAE,QAAAC,EAAS,UAAAC,EAAW,qBAAAC,EAAsB,WAAAC,EAAY,sBAAAC,EAAuB,gBAAAC,EAAiB,OAAAC,EAAQ,SAAAC,CAAA,EAAaR,EAE3H,OACES,EAAC,MAAA,CACC,UAAWC,EACT,6GACAT,GAAS,0BAAA,EAGX,SAAA,CAAAQ,EAAC,MAAA,CAAI,UAAWC,EAAG,0BAA0B,EAC1C,SAAA,CAAAR,GACCS,EAAC,MAAA,CACC,wBAAyB,CAAE,OAAQT,CAAA,EACnC,UAAWQ,EAAG,wEAAyET,GAAS,SAAS,CAAA,CAAA,EAG7GU,EAAC,MAAA,CACC,wBAAyB,CAAE,OAAQR,GAAwB,EAAA,EAC3D,UAAWO,EAAG,sCAAuCT,GAAS,oBAAoB,CAAA,CAAA,CACpF,EACF,EACAQ,EAAC,MAAA,CAAI,UAAWC,EAAG,wCAAwC,EACxD,SAAA,CAAAN,GACCO,EAAC,MAAA,CACC,wBAAyB,CAAE,OAAQP,CAAA,EACnC,UAAWM,EAAG,wEAAyET,GAAS,UAAU,CAAA,CAAA,EAG9GU,EAAC,MAAA,CACC,wBAAyB,CAAE,OAAQN,GAAyB,EAAA,EAC5D,UAAWK,EAAG,sCAAuCT,GAAS,qBAAqB,CAAA,CAAA,CACrF,EACF,EACCK,GACCK,EAAC,MAAA,CACC,wBAAyB,CAAE,OAAQL,CAAA,EACnC,UAAWI,EAAG,0EAA2ET,GAAS,eAAe,CAAA,CAAA,EAGpHM,GACCI,EAACC,EAAA,CACC,cAAe,IAAMC,EAAeN,GAAQ,SAAoBC,EAAU,gBAAgB,EAC1F,OAAO,UACP,UAAWE,EAAG,iBAAkBT,GAAS,MAAM,EAC/C,KAAK,KACJ,GAAGM,CAAA,CAAA,CACN,CAAA,CAAA,CAIR"}
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{TextContainer as m}from"./ui/TextContainer.js";import{TypeGuards as s}from"../../shared/utils/typeGuards.js";import{ResponsiveContainer as n}from"../../shared/ui/responsiveContainer/ResponsiveContainer.js";import{ButtonWithHandlers as x}from"../buttonWithHandlers/ButtonWithHandlers.js";import{CustomLink as h}from"../../shared/ui/customLink/CustomLink.js";const w=({errorText:r,title:a,subtitle:i,buttonProps:c,links:o,images:l,backgroundColor:p="#F4F8FE"})=>e("div",{style:{backgroundColor:p},className:"flex flex-col pb-10 pt-6 desktop:py-20",children:t(n,{className:"flex flex-col desktop:flex-row desktop:justify-between",children:[t("div",{className:"flex flex-col gap-6 desktop:gap-12",children:[t("div",{className:"flex flex-col gap-2 desktop:gap-10",children:[e(m,{errorText:r,subtitle:i,title:a}),s.isObject(l)&&e("div",{className:"flex h-[280px] w-[360px] self-center desktop:hidden",children:e("img",{className:"h-full object-contain",src:l.mobile,alt:l.alt})}),e(x,{className:"mobile:w-full",...c})]}),e("div",{className:"flex flex-row items-center justify-between gap-8 desktop:justify-start",children:s.isArrayFilled(o)&&o.map((d,f)=>e(h,{...d},f))})]}),s.isObject(l)&&e("div",{className:"h-[360px] w-[480px] mobile:hidden",children:e("img",{className:"object-cover",src:l.desktop,alt:l.alt})})]})});export{w as ErrorPage,w as default};
1
+ import{jsx as e,jsxs as l}from"react/jsx-runtime";import{TextContainer as f}from"./ui/TextContainer.js";import{TypeGuards as t}from"../../shared/utils/typeGuards.js";import{ResponsiveContainer as m}from"../../shared/ui/responsiveContainer/ResponsiveContainer.js";import{ButtonWithHandlers as x}from"../buttonWithHandlers/ButtonWithHandlers.js";import{pushToDlButton as h,pushToDlLink as u}from"../../shared/dataLayers/utils.js";import{CustomLink as N}from"../../shared/ui/customLink/CustomLink.js";const D=({errorText:c,title:s,subtitle:p,buttonProps:a,links:i,images:o,backgroundColor:d="#F4F8FE"})=>e("div",{style:{backgroundColor:d},className:"flex flex-col pb-10 pt-6 desktop:py-20",children:l(m,{className:"flex flex-col desktop:flex-row desktop:justify-between",children:[l("div",{className:"flex flex-col gap-6 desktop:gap-12",children:[l("div",{className:"flex flex-col gap-2 desktop:gap-10",children:[e(f,{errorText:c,subtitle:p,title:s}),t.isObject(o)&&e("div",{className:"flex h-[280px] w-[360px] self-center desktop:hidden",children:e("img",{className:"h-full object-contain",src:o.mobile,alt:o.alt})}),e(x,{onPointerDown:()=>h(a?.children,s,"errorPage"),className:"mobile:w-full",...a})]}),e("div",{className:"flex flex-row items-center justify-between gap-8 desktop:justify-start",children:t.isArrayFilled(i)&&i.map((r,n)=>e(N,{onPointerDown:()=>u(r?.children,r?.href,"errorPage"),...r},n))})]}),t.isObject(o)&&e("div",{className:"h-[360px] w-[480px] mobile:hidden",children:e("img",{className:"object-cover",src:o.desktop,alt:o.alt})})]})});export{D as ErrorPage,D as default};
2
2
  //# sourceMappingURL=ErrorPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorPage.js","sources":["../../../../lib/widgets/errorPage/ErrorPage.tsx"],"sourcesContent":["import { type BackgroundBannerColors } from '../../shared/constants'\nimport { ButtonWithHandlers, type ButtonWithHandlersProps } from '../buttonWithHandlers'\nimport { TextContainer, type TextContainerProps } from './ui/TextContainer'\nimport { type ImagesPrimitive } from '$/shared/types/shared-types'\nimport { CustomLink, type CustomLinkProps, ResponsiveContainer } from '$/shared/ui'\nimport { TypeGuards } from '$/shared/utils'\n\nexport interface ErrorPageProps extends TextContainerProps {\n buttonProps: ButtonWithHandlersProps\n links: CustomLinkProps[]\n images: ImagesPrimitive\n backgroundColor?: BackgroundBannerColors\n}\n\nexport const ErrorPage = ({\n errorText,\n title,\n subtitle,\n buttonProps,\n links,\n images,\n backgroundColor = '#F4F8FE'\n}: ErrorPageProps) => {\n return (\n <div style={{ backgroundColor }} className='flex flex-col pb-10 pt-6 desktop:py-20'>\n <ResponsiveContainer className='flex flex-col desktop:flex-row desktop:justify-between'>\n <div className='flex flex-col gap-6 desktop:gap-12'>\n <div className='flex flex-col gap-2 desktop:gap-10'>\n <TextContainer errorText={errorText} subtitle={subtitle} title={title} />\n\n {TypeGuards.isObject(images) && (\n <div className='flex h-[280px] w-[360px] self-center desktop:hidden'>\n <img className='h-full object-contain' src={images.mobile} alt={images.alt} />\n </div>\n )}\n\n <ButtonWithHandlers className='mobile:w-full' {...buttonProps} />\n </div>\n <div className='flex flex-row items-center justify-between gap-8 desktop:justify-start'>\n {TypeGuards.isArrayFilled(links) && links.map((link, index) => <CustomLink key={index} {...link} />)}\n </div>\n </div>\n {TypeGuards.isObject(images) && (\n <div className='h-[360px] w-[480px] mobile:hidden'>\n <img className='object-cover' src={images.desktop} alt={images.alt} />\n </div>\n )}\n </ResponsiveContainer>\n </div>\n )\n}\n\nexport default ErrorPage\n"],"names":["ErrorPage","errorText","title","subtitle","buttonProps","links","images","backgroundColor","jsx","jsxs","ResponsiveContainer","TextContainer","TypeGuards","ButtonWithHandlers","link","index","CustomLink"],"mappings":"8ZAcO,MAAMA,EAAY,CAAC,CACxB,UAAAC,EACA,MAAAC,EACA,SAAAC,EACA,YAAAC,EACA,MAAAC,EACA,OAAAC,EACA,gBAAAC,EAAkB,SACpB,IAEIC,EAAC,MAAA,CAAI,MAAO,CAAE,gBAAAD,CAAA,EAAmB,UAAU,yCACzC,SAAAE,EAACC,EAAA,CAAoB,UAAU,yDAC7B,SAAA,CAAAD,EAAC,MAAA,CAAI,UAAU,qCACb,SAAA,CAAAA,EAAC,MAAA,CAAI,UAAU,qCACb,SAAA,CAAAD,EAACG,EAAA,CAAc,UAAAV,EAAsB,SAAAE,EAAoB,MAAAD,CAAA,CAAc,EAEtEU,EAAW,SAASN,CAAM,GACzBE,EAAC,MAAA,CAAI,UAAU,sDACb,SAAAA,EAAC,MAAA,CAAI,UAAU,wBAAwB,IAAKF,EAAO,OAAQ,IAAKA,EAAO,IAAK,EAC9E,EAGFE,EAACK,EAAA,CAAmB,UAAU,gBAAiB,GAAGT,CAAA,CAAa,CAAA,EACjE,IACC,MAAA,CAAI,UAAU,yEACZ,SAAAQ,EAAW,cAAcP,CAAK,GAAKA,EAAM,IAAI,CAACS,EAAMC,IAAUP,EAACQ,EAAA,CAAwB,GAAGF,CAAA,EAAXC,CAAiB,CAAE,CAAA,CACrG,CAAA,EACF,EACCH,EAAW,SAASN,CAAM,GACzBE,EAAC,MAAA,CAAI,UAAU,oCACb,SAAAA,EAAC,MAAA,CAAI,UAAU,eAAe,IAAKF,EAAO,QAAS,IAAKA,EAAO,IAAK,CAAA,CACtE,CAAA,CAAA,CAEJ,CAAA,CACF"}
1
+ {"version":3,"file":"ErrorPage.js","sources":["../../../../lib/widgets/errorPage/ErrorPage.tsx"],"sourcesContent":["import { type BackgroundBannerColors } from '../../shared/constants'\nimport { pushToDlButton, pushToDlLink } from '../../shared/dataLayers'\nimport { ButtonWithHandlers, type ButtonWithHandlersProps } from '../buttonWithHandlers'\nimport { TextContainer, type TextContainerProps } from './ui/TextContainer'\nimport { type ImagesPrimitive } from '$/shared/types/shared-types'\nimport { CustomLink, type CustomLinkProps, ResponsiveContainer } from '$/shared/ui'\nimport { TypeGuards } from '$/shared/utils'\n\nexport interface ErrorPageProps extends TextContainerProps {\n buttonProps: ButtonWithHandlersProps\n links: CustomLinkProps[]\n images: ImagesPrimitive\n backgroundColor?: BackgroundBannerColors\n}\n\nexport const ErrorPage = ({\n errorText,\n title,\n subtitle,\n buttonProps,\n links,\n images,\n backgroundColor = '#F4F8FE'\n}: ErrorPageProps) => {\n return (\n <div style={{ backgroundColor }} className='flex flex-col pb-10 pt-6 desktop:py-20'>\n <ResponsiveContainer className='flex flex-col desktop:flex-row desktop:justify-between'>\n <div className='flex flex-col gap-6 desktop:gap-12'>\n <div className='flex flex-col gap-2 desktop:gap-10'>\n <TextContainer errorText={errorText} subtitle={subtitle} title={title} />\n\n {TypeGuards.isObject(images) && (\n <div className='flex h-[280px] w-[360px] self-center desktop:hidden'>\n <img className='h-full object-contain' src={images.mobile} alt={images.alt} />\n </div>\n )}\n\n <ButtonWithHandlers\n onPointerDown={() => pushToDlButton(buttonProps?.children as string, title, 'errorPage')}\n className='mobile:w-full'\n {...buttonProps}\n />\n </div>\n <div className='flex flex-row items-center justify-between gap-8 desktop:justify-start'>\n {TypeGuards.isArrayFilled(links) &&\n links.map((link, index) => (\n <CustomLink\n onPointerDown={() => pushToDlLink(link?.children as string, link?.href, 'errorPage')}\n key={index}\n {...link}\n />\n ))}\n </div>\n </div>\n {TypeGuards.isObject(images) && (\n <div className='h-[360px] w-[480px] mobile:hidden'>\n <img className='object-cover' src={images.desktop} alt={images.alt} />\n </div>\n )}\n </ResponsiveContainer>\n </div>\n )\n}\n\nexport default ErrorPage\n"],"names":["ErrorPage","errorText","title","subtitle","buttonProps","links","images","backgroundColor","jsx","jsxs","ResponsiveContainer","TextContainer","TypeGuards","ButtonWithHandlers","pushToDlButton","link","index","CustomLink","pushToDlLink"],"mappings":"kfAeO,MAAMA,EAAY,CAAC,CACxB,UAAAC,EACA,MAAAC,EACA,SAAAC,EACA,YAAAC,EACA,MAAAC,EACA,OAAAC,EACA,gBAAAC,EAAkB,SACpB,IAEIC,EAAC,MAAA,CAAI,MAAO,CAAE,gBAAAD,CAAA,EAAmB,UAAU,yCACzC,SAAAE,EAACC,EAAA,CAAoB,UAAU,yDAC7B,SAAA,CAAAD,EAAC,MAAA,CAAI,UAAU,qCACb,SAAA,CAAAA,EAAC,MAAA,CAAI,UAAU,qCACb,SAAA,CAAAD,EAACG,EAAA,CAAc,UAAAV,EAAsB,SAAAE,EAAoB,MAAAD,CAAA,CAAc,EAEtEU,EAAW,SAASN,CAAM,GACzBE,EAAC,MAAA,CAAI,UAAU,sDACb,SAAAA,EAAC,MAAA,CAAI,UAAU,wBAAwB,IAAKF,EAAO,OAAQ,IAAKA,EAAO,IAAK,EAC9E,EAGFE,EAACK,EAAA,CACC,cAAe,IAAMC,EAAeV,GAAa,SAAoBF,EAAO,WAAW,EACvF,UAAU,gBACT,GAAGE,CAAA,CAAA,CACN,EACF,EACAI,EAAC,MAAA,CAAI,UAAU,yEACZ,SAAAI,EAAW,cAAcP,CAAK,GAC7BA,EAAM,IAAI,CAACU,EAAMC,IACfR,EAACS,EAAA,CACC,cAAe,IAAMC,EAAaH,GAAM,SAAoBA,GAAM,KAAM,WAAW,EAElF,GAAGA,CAAA,EADCC,CAAA,CAGR,CAAA,CACL,CAAA,EACF,EACCJ,EAAW,SAASN,CAAM,GACzBE,EAAC,MAAA,CAAI,UAAU,oCACb,SAAAA,EAAC,MAAA,CAAI,UAAU,eAAe,IAAKF,EAAO,QAAS,IAAKA,EAAO,IAAK,CAAA,CACtE,CAAA,CAAA,CAEJ,CAAA,CACF"}
@@ -1,2 +1,2 @@
1
- import{jsx as o,jsxs as m}from"react/jsx-runtime";import{cn as r}from"../../shared/utils/cn.js";import{EsiaLogo as f}from"./ui/EsiaLogo.js";import{TextBlock as x}from"./ui/TextBlock.js";import{useDevice as d}from"../../shared/hooks/useDevice.js";import{Loader as g}from"../../shared/ui/loader/Loader.js";import{Icon as b}from"../../shared/ui/icon/Icon.js";import{Badge as y}from"../../shared/ui/badge/Badge.js";const E=({isLoading:i,disabled:p,classes:e,titles:l,description:c,badge:t,onClick:n,loaderProps:a,...u})=>{const{isMobile:s}=d();return o("button",{disabled:p,type:"button",className:r("relative flex h-[90px] w-full items-center justify-center rounded-sm p-2 desktop:max-w-[524px]","bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus",e?.root,{"cursor-auto opacity-60":p}),...u,onClick:n,children:o("div",{className:r("flex h-[74px] flex-1 rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3","bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",{"items-center":i},e?.wrapper),children:i?o(g,{position:"static",classes:{wrapper:"size-8 m-auto"},...a}):m("div",{className:r("flex flex-1 items-center justify-between gap-1",{"mobile: justify-center":!t&&s},e?.innerWrapper),children:[m("div",{className:r("flex items-center gap-1 desktop:gap-4",e?.textWrapper),children:[o(f,{className:r("size-7 desktop:size-8",e?.esiaLogo)}),o(x,{titles:l,description:c,isMobile:s,classes:e?.textBlock}),o(b,{name:"arrows/arrowRight",className:r("size-6 mobile:hidden",e?.arrowIcon)})]}),t&&o(y,{className:r("bg-color-positive",e?.badge),children:t})]})})})};export{E as Esia};
1
+ import{jsx as o,jsxs as a}from"react/jsx-runtime";import{cn as r}from"../../shared/utils/cn.js";import{EsiaLogo as u}from"./ui/EsiaLogo.js";import{TextBlock as d}from"./ui/TextBlock.js";import{Loader as f}from"../../shared/ui/loader/Loader.js";import{Icon as x}from"../../shared/ui/icon/Icon.js";import{Badge as g}from"../../shared/ui/badge/Badge.js";const j=({isLoading:t,disabled:i,classes:e,titles:l,description:m,badge:p,onClick:s,loaderProps:n,...c})=>o("button",{disabled:i,type:"button",className:r("relative flex h-[90px] w-full items-center justify-center rounded-sm p-2 desktop:max-w-[524px]","bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus",e?.root,{"cursor-auto opacity-60":i}),...c,onClick:s,children:o("div",{className:r("flex h-[74px] flex-1 rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3","bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",{"items-center":t},e?.wrapper),children:t?o(f,{position:"static",classes:{wrapper:"size-8 m-auto"},...n}):a("div",{className:r("flex flex-1 items-center justify-between gap-1",e?.innerWrapper),children:[a("div",{className:r("flex items-center gap-1 desktop:gap-4",e?.textWrapper),children:[o(u,{className:r("size-8 desktop:size-8",e?.esiaLogo)}),o(d,{titles:l,description:m,classes:e?.textBlock}),o(x,{name:"arrows/arrowRight",className:r("size-6 mobile:hidden",e?.arrowIcon)})]}),p&&o(g,{className:r("bg-color-positive",e?.badge),children:p})]})})});export{j as Esia};
2
2
  //# sourceMappingURL=Esia.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Esia.js","sources":["../../../../lib/widgets/esia/Esia.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\nimport type { FieldValues } from 'react-hook-form'\nimport { EsiaLogo, TextBlock, type TextBlockClasses, type TextBlockProps } from './ui'\nimport { useDevice } from '$/shared/hooks'\nimport { Badge, Icon, Loader, type LoaderProps } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\ntype EsiaClasses = {\n root?: string\n wrapper?: string\n innerWrapper?: string\n textWrapper?: string\n esiaLogo?: string\n arrowIcon?: string\n badge?: string\n textBlock?: TextBlockClasses\n}\n\nexport interface EsiaProps extends Pick<TextBlockProps, 'titles' | 'description'>, ComponentProps<'button'> {\n classes?: EsiaClasses\n badge?: string\n loaderProps?: LoaderProps\n isLoading?: boolean\n onClick: <T extends FieldValues>(values: T) => void\n mode: 'off' | 'esia'\n}\n\nexport const Esia = ({ isLoading, disabled, classes, titles, description, badge, onClick, loaderProps, ...props }: EsiaProps) => {\n const { isMobile } = useDevice()\n\n return (\n <button\n disabled={disabled}\n type='button'\n className={cn(\n 'relative flex h-[90px] w-full items-center justify-center rounded-sm p-2 desktop:max-w-[524px]',\n 'bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus',\n classes?.root,\n { 'cursor-auto opacity-60': disabled }\n )}\n {...props}\n onClick={onClick}\n >\n <div\n className={cn(\n 'flex h-[74px] flex-1 rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3',\n 'bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300',\n { 'items-center': isLoading },\n classes?.wrapper\n )}\n >\n {isLoading ? (\n <Loader position='static' classes={{ wrapper: 'size-8 m-auto' }} {...loaderProps} />\n ) : (\n <div\n className={cn(\n 'flex flex-1 items-center justify-between gap-1',\n { 'mobile: justify-center': !badge && isMobile },\n classes?.innerWrapper\n )}\n >\n <div className={cn('flex items-center gap-1 desktop:gap-4', classes?.textWrapper)}>\n <EsiaLogo className={cn('size-7 desktop:size-8', classes?.esiaLogo)} />\n <TextBlock titles={titles} description={description} isMobile={isMobile} classes={classes?.textBlock} />\n <Icon name='arrows/arrowRight' className={cn('size-6 mobile:hidden', classes?.arrowIcon)} />\n </div>\n {badge && <Badge className={cn('bg-color-positive', classes?.badge)}>{badge}</Badge>}\n </div>\n )}\n </div>\n </button>\n )\n}\n"],"names":["Esia","isLoading","disabled","classes","titles","description","badge","onClick","loaderProps","props","isMobile","useDevice","jsx","cn","Loader","jsxs","EsiaLogo","TextBlock","Icon","Badge"],"mappings":"2ZA2BO,MAAMA,EAAO,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,QAAAC,EAAS,OAAAC,EAAQ,YAAAC,EAAa,MAAAC,EAAO,QAAAC,EAAS,YAAAC,EAAa,GAAGC,KAAuB,CAC/H,KAAM,CAAE,SAAAC,CAAA,EAAaC,EAAA,EAErB,OACEC,EAAC,SAAA,CACC,SAAAV,EACA,KAAK,SACL,UAAWW,EACT,iGACA,+GACAV,GAAS,KACT,CAAE,yBAA0BD,CAAA,CAAS,EAEtC,GAAGO,EACJ,QAAAF,EAEA,SAAAK,EAAC,MAAA,CACC,UAAWC,EACT,wFACA,oFACA,CAAE,eAAgBZ,CAAA,EAClBE,GAAS,OAAA,EAGV,SAAAF,EACCW,EAACE,EAAA,CAAO,SAAS,SAAS,QAAS,CAAE,QAAS,eAAA,EAAoB,GAAGN,CAAA,CAAa,EAElFO,EAAC,MAAA,CACC,UAAWF,EACT,iDACA,CAAE,yBAA0B,CAACP,GAASI,CAAA,EACtCP,GAAS,YAAA,EAGX,SAAA,CAAAY,EAAC,OAAI,UAAWF,EAAG,wCAAyCV,GAAS,WAAW,EAC9E,SAAA,CAAAS,EAACI,GAAS,UAAWH,EAAG,wBAAyBV,GAAS,QAAQ,EAAG,IACpEc,EAAA,CAAU,OAAAb,EAAgB,YAAAC,EAA0B,SAAAK,EAAoB,QAASP,GAAS,UAAW,EACtGS,EAACM,GAAK,KAAK,oBAAoB,UAAWL,EAAG,uBAAwBV,GAAS,SAAS,CAAA,CAAG,CAAA,EAC5F,EACCG,KAAUa,EAAA,CAAM,UAAWN,EAAG,oBAAqBV,GAAS,KAAK,EAAI,SAAAG,CAAA,CAAM,CAAA,CAAA,CAAA,CAC9E,CAAA,CAEJ,CAAA,CAGN"}
1
+ {"version":3,"file":"Esia.js","sources":["../../../../lib/widgets/esia/Esia.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\nimport type { FieldValues } from 'react-hook-form'\nimport { EsiaLogo, TextBlock, type TextBlockClasses, type TextBlockProps } from './ui'\nimport { Badge, Icon, Loader, type LoaderProps } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\ntype EsiaClasses = {\n root?: string\n wrapper?: string\n innerWrapper?: string\n textWrapper?: string\n esiaLogo?: string\n arrowIcon?: string\n badge?: string\n textBlock?: TextBlockClasses\n}\n\nexport interface EsiaProps extends Pick<TextBlockProps, 'titles' | 'description'>, ComponentProps<'button'> {\n classes?: EsiaClasses\n badge?: string\n loaderProps?: LoaderProps\n isLoading?: boolean\n onClick: <T extends FieldValues>(values: T) => void\n mode: 'off' | 'esia'\n}\n\nexport const Esia = ({ isLoading, disabled, classes, titles, description, badge, onClick, loaderProps, ...props }: EsiaProps) => {\n return (\n <button\n disabled={disabled}\n type='button'\n className={cn(\n 'relative flex h-[90px] w-full items-center justify-center rounded-sm p-2 desktop:max-w-[524px]',\n 'bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus',\n classes?.root,\n { 'cursor-auto opacity-60': disabled }\n )}\n {...props}\n onClick={onClick}\n >\n <div\n className={cn(\n 'flex h-[74px] flex-1 rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3',\n 'bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300',\n { 'items-center': isLoading },\n classes?.wrapper\n )}\n >\n {isLoading ? (\n <Loader position='static' classes={{ wrapper: 'size-8 m-auto' }} {...loaderProps} />\n ) : (\n <div className={cn('flex flex-1 items-center justify-between gap-1', classes?.innerWrapper)}>\n <div className={cn('flex items-center gap-1 desktop:gap-4', classes?.textWrapper)}>\n <EsiaLogo className={cn('size-8 desktop:size-8', classes?.esiaLogo)} />\n <TextBlock titles={titles} description={description} classes={classes?.textBlock} />\n <Icon name='arrows/arrowRight' className={cn('size-6 mobile:hidden', classes?.arrowIcon)} />\n </div>\n {badge && <Badge className={cn('bg-color-positive', classes?.badge)}>{badge}</Badge>}\n </div>\n )}\n </div>\n </button>\n )\n}\n"],"names":["Esia","isLoading","disabled","classes","titles","description","badge","onClick","loaderProps","props","jsx","cn","Loader","jsxs","EsiaLogo","TextBlock","Icon","Badge"],"mappings":"+VA0BO,MAAMA,EAAO,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,QAAAC,EAAS,OAAAC,EAAQ,YAAAC,EAAa,MAAAC,EAAO,QAAAC,EAAS,YAAAC,EAAa,GAAGC,KAEtGC,EAAC,SAAA,CACC,SAAAR,EACA,KAAK,SACL,UAAWS,EACT,iGACA,+GACAR,GAAS,KACT,CAAE,yBAA0BD,CAAA,CAAS,EAEtC,GAAGO,EACJ,QAAAF,EAEA,SAAAG,EAAC,MAAA,CACC,UAAWC,EACT,wFACA,oFACA,CAAE,eAAgBV,CAAA,EAClBE,GAAS,OAAA,EAGV,SAAAF,IACEW,EAAA,CAAO,SAAS,SAAS,QAAS,CAAE,QAAS,eAAA,EAAoB,GAAGJ,CAAA,CAAa,IAEjF,MAAA,CAAI,UAAWG,EAAG,iDAAkDR,GAAS,YAAY,EACxF,SAAA,CAAAU,EAAC,OAAI,UAAWF,EAAG,wCAAyCR,GAAS,WAAW,EAC9E,SAAA,CAAAO,EAACI,GAAS,UAAWH,EAAG,wBAAyBR,GAAS,QAAQ,EAAG,IACpEY,EAAA,CAAU,OAAAX,EAAgB,YAAAC,EAA0B,QAASF,GAAS,UAAW,EAClFO,EAACM,GAAK,KAAK,oBAAoB,UAAWL,EAAG,uBAAwBR,GAAS,SAAS,CAAA,CAAG,CAAA,EAC5F,EACCG,KAAUW,EAAA,CAAM,UAAWN,EAAG,oBAAqBR,GAAS,KAAK,EAAI,SAAAG,CAAA,CAAM,CAAA,CAAA,CAC9E,CAAA,CAAA,CAEJ,CAAA"}
@@ -1,2 +1,2 @@
1
- import{jsxs as i,jsx as l}from"react/jsx-runtime";import{cn as t}from"../../../shared/utils/cn.js";const x=({titles:o,description:r,isMobile:d,classes:e})=>i("div",{className:t("flex flex-col",e?.root),children:[l("div",{className:t("desk-body-medium-l text-left text-color-dark",e?.titles),children:d?o?.mobileTitle:o?.desktopTitle}),r&&l("p",{className:t("desk-body-regular-m text-left text-color-tetriary",e?.description,{}),children:r})]});export{x as TextBlock};
1
+ import{jsxs as r,jsx as d}from"react/jsx-runtime";import{cn as t}from"../../../shared/utils/cn.js";const c=({titles:l,description:o,classes:e})=>r("div",{className:t("flex flex-col",e?.root),children:[d("div",{className:t("desk-body-medium-l text-left text-color-dark mobile:hidden",e?.titles),children:l?.desktopTitle}),d("div",{className:t("desk-body-medium-l text-left text-color-dark desktop:hidden",e?.titles),children:l?.mobileTitle}),o&&d("p",{className:t("desk-body-regular-m text-left text-color-tetriary",e?.description),children:o})]});export{c as TextBlock};
2
2
  //# sourceMappingURL=TextBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextBlock.js","sources":["../../../../../lib/widgets/esia/ui/TextBlock.tsx"],"sourcesContent":["import { cn } from '$/shared/utils'\n\nexport type TextBlockClasses = {\n root?: string\n titles?: string\n description?: string\n}\n\nexport interface TextBlockProps {\n isMobile: boolean\n classes?: TextBlockClasses\n titles: {\n desktopTitle: string\n mobileTitle: string\n }\n description?: string\n}\n\nexport const TextBlock = ({ titles, description, isMobile, classes }: TextBlockProps) => {\n return (\n <div className={cn('flex flex-col', classes?.root)}>\n <div className={cn('desk-body-medium-l text-left text-color-dark', classes?.titles)}>\n {isMobile ? titles?.mobileTitle : titles?.desktopTitle}\n </div>\n\n {description && (\n <p className={cn('desk-body-regular-m text-left text-color-tetriary', classes?.description, {})}>{description}</p>\n )}\n </div>\n )\n}\n"],"names":["TextBlock","titles","description","isMobile","classes","cn","jsx"],"mappings":"mGAkBO,MAAMA,EAAY,CAAC,CAAE,OAAAC,EAAQ,YAAAC,EAAa,SAAAC,EAAU,QAAAC,OAEtD,MAAA,CAAI,UAAWC,EAAG,gBAAiBD,GAAS,IAAI,EAC/C,SAAA,CAAAE,EAAC,MAAA,CAAI,UAAWD,EAAG,+CAAgDD,GAAS,MAAM,EAC/E,SAAAD,EAAWF,GAAQ,YAAcA,GAAQ,YAAA,CAC5C,EAECC,GACCI,EAAC,IAAA,CAAE,UAAWD,EAAG,oDAAqDD,GAAS,YAAa,CAAA,CAAE,EAAI,SAAAF,CAAA,CAAY,CAAA,EAElH"}
1
+ {"version":3,"file":"TextBlock.js","sources":["../../../../../lib/widgets/esia/ui/TextBlock.tsx"],"sourcesContent":["import { cn } from '$/shared/utils'\n\nexport type TextBlockClasses = {\n root?: string\n titles?: string\n description?: string\n}\n\nexport interface TextBlockProps {\n classes?: TextBlockClasses\n titles: {\n desktopTitle: string\n mobileTitle: string\n }\n description?: string\n}\n\nexport const TextBlock = ({ titles, description, classes }: TextBlockProps) => {\n return (\n <div className={cn('flex flex-col', classes?.root)}>\n <div className={cn('desk-body-medium-l text-left text-color-dark mobile:hidden', classes?.titles)}>\n {titles?.desktopTitle}\n </div>\n\n <div className={cn('desk-body-medium-l text-left text-color-dark desktop:hidden', classes?.titles)}>\n {titles?.mobileTitle}\n </div>\n\n {description && (\n <p className={cn('desk-body-regular-m text-left text-color-tetriary', classes?.description)}>{description}</p>\n )}\n </div>\n )\n}\n"],"names":["TextBlock","titles","description","classes","cn","jsx"],"mappings":"mGAiBO,MAAMA,EAAY,CAAC,CAAE,OAAAC,EAAQ,YAAAC,EAAa,QAAAC,OAE5C,MAAA,CAAI,UAAWC,EAAG,gBAAiBD,GAAS,IAAI,EAC/C,SAAA,CAAAE,EAAC,MAAA,CAAI,UAAWD,EAAG,6DAA8DD,GAAS,MAAM,EAC7F,YAAQ,YAAA,CACX,EAEAE,EAAC,OAAI,UAAWD,EAAG,8DAA+DD,GAAS,MAAM,EAC9F,SAAAF,GAAQ,WAAA,CACX,EAECC,KACE,IAAA,CAAE,UAAWE,EAAG,oDAAqDD,GAAS,WAAW,EAAI,SAAAD,CAAA,CAAY,CAAA,EAE9G"}
@@ -1,2 +1,2 @@
1
- import{jsx as r,jsxs as c}from"react/jsx-runtime";import{pushToDlLinkFooter as l}from"../model/dataLayers.js";import{cn as n}from"../../../shared/utils/cn.js";import{CustomLink as k}from"../../../shared/ui/customLink/CustomLink.js";const x=({classes:o,details:t})=>r("div",{className:n("mt-6 grid grid-cols-1 gap-6 border-b border-blue-grey-500 pb-6 desktop:my-8 desktop:grid-cols-4 desktop:gap-10 desktop:pb-8",o?.navRoot),children:t?.map(({column:m})=>m?.map(({groupLabel:e,links:p})=>c("div",{className:n("flex flex-col gap-4",o?.navGroup),children:[r("div",{className:n("desk-body-medium-l text-color-white",o?.navLabel),children:e}),r("div",{className:n("flex flex-col gap-1",o?.navLinks),children:p?.map(({path:d,label:i,...a})=>r(k,{href:d,"aria-label":i,onPointerDown:()=>l(i,d),intent:"white",classes:{link:o?.navLink,icon:o?.navLinkIcon},...a,children:i},i))})]},e)))});export{x as NavLinks};
1
+ import{jsx as r,jsxs as c}from"react/jsx-runtime";import{cn as n}from"../../../shared/utils/cn.js";import{CustomLink as l}from"../../../shared/ui/customLink/CustomLink.js";import{pushToDlLink as k}from"../../../shared/dataLayers/utils.js";const x=({classes:o,details:t})=>r("div",{className:n("mt-6 grid grid-cols-1 gap-6 border-b border-blue-grey-500 pb-6 desktop:my-8 desktop:grid-cols-4 desktop:gap-10 desktop:pb-8",o?.navRoot),children:t?.map(({column:m})=>m?.map(({groupLabel:e,links:p})=>c("div",{className:n("flex flex-col gap-4",o?.navGroup),children:[r("div",{className:n("desk-body-medium-l text-color-white",o?.navLabel),children:e}),r("div",{className:n("flex flex-col gap-1",o?.navLinks),children:p?.map(({path:d,label:i,...a})=>r(l,{href:d,"aria-label":i,onPointerDown:()=>k(i,d,"footer"),intent:"white",classes:{link:o?.navLink,icon:o?.navLinkIcon},...a,children:i},i))})]},e)))});export{x as NavLinks};
2
2
  //# sourceMappingURL=NavLinks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavLinks.js","sources":["../../../../../lib/widgets/footer/ui/NavLinks.tsx"],"sourcesContent":["import { pushToDlLinkFooter } from '../model/dataLayers'\nimport { CustomLink } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\nimport { type Details } from '$/widgets/footer/model/types'\n\nexport type NavigationLinksClasses = {\n navRoot?: string\n navGroup?: string\n navLabel?: string\n navLinks?: string\n navLink?: string\n navLinkIcon?: string\n}\n\ninterface NavLinksProps {\n classes?: NavigationLinksClasses\n details: Details[]\n}\n\nexport const NavLinks = ({ classes, details }: NavLinksProps) => {\n return (\n <div\n className={cn(\n 'mt-6 grid grid-cols-1 gap-6 border-b border-blue-grey-500 pb-6 desktop:my-8 desktop:grid-cols-4 desktop:gap-10 desktop:pb-8',\n classes?.navRoot\n )}\n >\n {details?.map(({ column }) =>\n column?.map(({ groupLabel, links }) => (\n <div key={groupLabel} className={cn('flex flex-col gap-4', classes?.navGroup)}>\n <div className={cn('desk-body-medium-l text-color-white', classes?.navLabel)}>{groupLabel}</div>\n <div className={cn('flex flex-col gap-1', classes?.navLinks)}>\n {links?.map(({ path, label, ...rest }) => (\n <CustomLink\n key={label}\n href={path}\n aria-label={label}\n onPointerDown={() => pushToDlLinkFooter(label, path)}\n intent='white'\n classes={{\n link: classes?.navLink,\n icon: classes?.navLinkIcon\n }}\n {...rest}\n >\n {label}\n </CustomLink>\n ))}\n </div>\n </div>\n ))\n )}\n </div>\n )\n}\n"],"names":["NavLinks","classes","details","jsx","cn","column","groupLabel","links","path","label","rest","CustomLink","pushToDlLinkFooter"],"mappings":"wOAmBO,MAAMA,EAAW,CAAC,CAAE,QAAAC,EAAS,QAAAC,KAEhCC,EAAC,MAAA,CACC,UAAWC,EACT,8HACAH,GAAS,OAAA,EAGV,SAAAC,GAAS,IAAI,CAAC,CAAE,OAAAG,CAAA,IACfA,GAAQ,IAAI,CAAC,CAAE,WAAAC,EAAY,MAAAC,CAAA,MACxB,MAAA,CAAqB,UAAWH,EAAG,sBAAuBH,GAAS,QAAQ,EAC1E,SAAA,CAAAE,EAAC,OAAI,UAAWC,EAAG,sCAAuCH,GAAS,QAAQ,EAAI,SAAAK,EAAW,IACzF,MAAA,CAAI,UAAWF,EAAG,sBAAuBH,GAAS,QAAQ,EACxD,SAAAM,GAAO,IAAI,CAAC,CAAE,KAAAC,EAAM,MAAAC,EAAO,GAAGC,KAC7BP,EAACQ,EAAA,CAEC,KAAMH,EACN,aAAYC,EACZ,cAAe,IAAMG,EAAmBH,EAAOD,CAAI,EACnD,OAAO,QACP,QAAS,CACP,KAAMP,GAAS,QACf,KAAMA,GAAS,WAAA,EAEhB,GAAGS,EAEH,SAAAD,CAAA,EAXIA,CAAA,CAaR,CAAA,CACH,CAAA,CAAA,EAnBQH,CAoBV,CACD,CAAA,CACH,CAAA"}
1
+ {"version":3,"file":"NavLinks.js","sources":["../../../../../lib/widgets/footer/ui/NavLinks.tsx"],"sourcesContent":["import { pushToDlLink } from '../../../shared/dataLayers'\nimport { CustomLink } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\nimport { type Details } from '$/widgets/footer/model/types'\n\nexport type NavigationLinksClasses = {\n navRoot?: string\n navGroup?: string\n navLabel?: string\n navLinks?: string\n navLink?: string\n navLinkIcon?: string\n}\n\ninterface NavLinksProps {\n classes?: NavigationLinksClasses\n details: Details[]\n}\n\nexport const NavLinks = ({ classes, details }: NavLinksProps) => {\n return (\n <div\n className={cn(\n 'mt-6 grid grid-cols-1 gap-6 border-b border-blue-grey-500 pb-6 desktop:my-8 desktop:grid-cols-4 desktop:gap-10 desktop:pb-8',\n classes?.navRoot\n )}\n >\n {details?.map(({ column }) =>\n column?.map(({ groupLabel, links }) => (\n <div key={groupLabel} className={cn('flex flex-col gap-4', classes?.navGroup)}>\n <div className={cn('desk-body-medium-l text-color-white', classes?.navLabel)}>{groupLabel}</div>\n <div className={cn('flex flex-col gap-1', classes?.navLinks)}>\n {links?.map(({ path, label, ...rest }) => (\n <CustomLink\n key={label}\n href={path}\n aria-label={label}\n onPointerDown={() => pushToDlLink(label, path, 'footer')}\n intent='white'\n classes={{\n link: classes?.navLink,\n icon: classes?.navLinkIcon\n }}\n {...rest}\n >\n {label}\n </CustomLink>\n ))}\n </div>\n </div>\n ))\n )}\n </div>\n )\n}\n"],"names":["NavLinks","classes","details","jsx","cn","column","groupLabel","links","path","label","rest","CustomLink","pushToDlLink"],"mappings":"+OAmBO,MAAMA,EAAW,CAAC,CAAE,QAAAC,EAAS,QAAAC,KAEhCC,EAAC,MAAA,CACC,UAAWC,EACT,8HACAH,GAAS,OAAA,EAGV,SAAAC,GAAS,IAAI,CAAC,CAAE,OAAAG,CAAA,IACfA,GAAQ,IAAI,CAAC,CAAE,WAAAC,EAAY,MAAAC,CAAA,MACxB,MAAA,CAAqB,UAAWH,EAAG,sBAAuBH,GAAS,QAAQ,EAC1E,SAAA,CAAAE,EAAC,OAAI,UAAWC,EAAG,sCAAuCH,GAAS,QAAQ,EAAI,SAAAK,EAAW,IACzF,MAAA,CAAI,UAAWF,EAAG,sBAAuBH,GAAS,QAAQ,EACxD,SAAAM,GAAO,IAAI,CAAC,CAAE,KAAAC,EAAM,MAAAC,EAAO,GAAGC,KAC7BP,EAACQ,EAAA,CAEC,KAAMH,EACN,aAAYC,EACZ,cAAe,IAAMG,EAAaH,EAAOD,EAAM,QAAQ,EACvD,OAAO,QACP,QAAS,CACP,KAAMP,GAAS,QACf,KAAMA,GAAS,WAAA,EAEhB,GAAGS,EAEH,SAAAD,CAAA,EAXIA,CAAA,CAaR,CAAA,CACH,CAAA,CAAA,EAnBQH,CAoBV,CACD,CAAA,CACH,CAAA"}
@@ -1,2 +1,2 @@
1
- import{jsx as r}from"react/jsx-runtime";import{cn as e}from"../../../shared/utils/cn.js";import{PhoneView as i}from"../../../shared/ui/phoneView/PhoneView.js";const h=({phones:n,classes:o})=>r("div",{className:e("flex flex-col gap-4 desktop:items-end",o?.phonesRoot),children:n?.map(({phone:t,text:p})=>r(i,{phone:t,text:p,classes:{root:e(o?.phoneWrapper),text:e("text-color-footer",o?.phoneText),link:e("text-color-white mobile:m-0",o?.phoneLink)}},t))});export{h as PhonesBlock};
1
+ import{jsx as r}from"react/jsx-runtime";import{cn as e}from"../../../shared/utils/cn.js";import{PhoneView as m}from"../../../shared/ui/phoneView/PhoneView.js";import{pushToDlLink as p}from"../../../shared/dataLayers/utils.js";const h=({phones:i,classes:o})=>r("div",{className:e("flex flex-col gap-4 desktop:items-end",o?.phonesRoot),children:i?.map(({phone:t,text:n})=>r(m,{onPointerDown:()=>p(t,`tel:${t}`,"footer"),phone:t,text:n,classes:{root:e(o?.phoneWrapper),text:e("text-color-footer",o?.phoneText),link:e("text-color-white mobile:m-0",o?.phoneLink)}},t))});export{h as PhonesBlock};
2
2
  //# sourceMappingURL=PhonesBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PhonesBlock.js","sources":["../../../../../lib/widgets/footer/ui/PhonesBlock.tsx"],"sourcesContent":["import { PhoneView } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\nimport { type FooterPhones } from '$/widgets/footer/model/types'\n\nexport type PhoneBlockClasses = {\n phonesRoot?: string\n phoneWrapper?: string\n phoneText?: string\n phoneLink?: string\n}\n\ninterface PhonesBlockProps {\n phones: FooterPhones[]\n classes?: PhoneBlockClasses\n}\n\nexport const PhonesBlock = ({ phones, classes }: PhonesBlockProps) => {\n return (\n <div className={cn('flex flex-col gap-4 desktop:items-end', classes?.phonesRoot)}>\n {phones?.map(({ phone, text }) => (\n <PhoneView\n key={phone}\n phone={phone}\n text={text}\n classes={{\n root: cn(classes?.phoneWrapper),\n text: cn('text-color-footer', classes?.phoneText),\n link: cn('text-color-white mobile:m-0', classes?.phoneLink)\n }}\n />\n ))}\n </div>\n )\n}\n"],"names":["PhonesBlock","phones","classes","jsx","cn","phone","text","PhoneView"],"mappings":"+JAgBO,MAAMA,EAAc,CAAC,CAAE,OAAAC,EAAQ,QAAAC,KAElCC,EAAC,MAAA,CAAI,UAAWC,EAAG,wCAAyCF,GAAS,UAAU,EAC5E,SAAAD,GAAQ,IAAI,CAAC,CAAE,MAAAI,EAAO,KAAAC,KACrBH,EAACI,EAAA,CAEC,MAAAF,EACA,KAAAC,EACA,QAAS,CACP,KAAMF,EAAGF,GAAS,YAAY,EAC9B,KAAME,EAAG,oBAAqBF,GAAS,SAAS,EAChD,KAAME,EAAG,8BAA+BF,GAAS,SAAS,CAAA,CAC5D,EAPKG,CAAA,CASR,EACH"}
1
+ {"version":3,"file":"PhonesBlock.js","sources":["../../../../../lib/widgets/footer/ui/PhonesBlock.tsx"],"sourcesContent":["import { pushToDlLink } from '../../../shared/dataLayers'\nimport { PhoneView } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\nimport { type FooterPhones } from '$/widgets/footer/model/types'\n\nexport type PhoneBlockClasses = {\n phonesRoot?: string\n phoneWrapper?: string\n phoneText?: string\n phoneLink?: string\n}\n\ninterface PhonesBlockProps {\n phones: FooterPhones[]\n classes?: PhoneBlockClasses\n}\n\nexport const PhonesBlock = ({ phones, classes }: PhonesBlockProps) => {\n return (\n <div className={cn('flex flex-col gap-4 desktop:items-end', classes?.phonesRoot)}>\n {phones?.map(({ phone, text }) => (\n <PhoneView\n onPointerDown={() => pushToDlLink(phone, `tel:${phone}`, 'footer')}\n key={phone}\n phone={phone}\n text={text}\n classes={{\n root: cn(classes?.phoneWrapper),\n text: cn('text-color-footer', classes?.phoneText),\n link: cn('text-color-white mobile:m-0', classes?.phoneLink)\n }}\n />\n ))}\n </div>\n )\n}\n"],"names":["PhonesBlock","phones","classes","jsx","cn","phone","text","PhoneView","pushToDlLink"],"mappings":"kOAiBO,MAAMA,EAAc,CAAC,CAAE,OAAAC,EAAQ,QAAAC,KAElCC,EAAC,MAAA,CAAI,UAAWC,EAAG,wCAAyCF,GAAS,UAAU,EAC5E,SAAAD,GAAQ,IAAI,CAAC,CAAE,MAAAI,EAAO,KAAAC,KACrBH,EAACI,EAAA,CACC,cAAe,IAAMC,EAAaH,EAAO,OAAOA,CAAK,GAAI,QAAQ,EAEjE,MAAAA,EACA,KAAAC,EACA,QAAS,CACP,KAAMF,EAAGF,GAAS,YAAY,EAC9B,KAAME,EAAG,oBAAqBF,GAAS,SAAS,EAChD,KAAME,EAAG,8BAA+BF,GAAS,SAAS,CAAA,CAC5D,EAPKG,CAAA,CASR,EACH"}
@@ -1,2 +1,2 @@
1
- import{jsx as r}from"react/jsx-runtime";import{pushToDlLinkFooter as t}from"../model/dataLayers.js";import{cn as i}from"../../../shared/utils/cn.js";import{CustomLink as e}from"../../../shared/ui/customLink/CustomLink.js";const s=({classes:o})=>r(e,{intent:"white",href:"https://sovcombank.ru/site-map",target:"_blank",onPointerDown:()=>t("Карта сайта",""),"aria-label":"site-map",rel:"noreferrer",classes:{link:i("mobile:mt-6",o?.siteMapLink),icon:o?.siteMapLinkIcon},children:"Карта сайта"});export{s as SiteMap};
1
+ import{jsx as r}from"react/jsx-runtime";import{cn as t}from"../../../shared/utils/cn.js";import{CustomLink as i}from"../../../shared/ui/customLink/CustomLink.js";import{pushToDlLink as e}from"../../../shared/dataLayers/utils.js";const s=({classes:o})=>r(i,{intent:"white",href:"https://sovcombank.ru/site-map",target:"_blank",onPointerDown:()=>e("Карта сайта","","footer"),"aria-label":"site-map",rel:"noreferrer",classes:{link:t("mobile:mt-6",o?.siteMapLink),icon:o?.siteMapLinkIcon},children:"Карта сайта"});export{s as SiteMap};
2
2
  //# sourceMappingURL=SiteMap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SiteMap.js","sources":["../../../../../lib/widgets/footer/ui/SiteMap.tsx"],"sourcesContent":["import { pushToDlLinkFooter } from '../model/dataLayers'\nimport { CustomLink } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\nexport type SiteMapClasses = {\n siteMapLink?: string\n siteMapLinkIcon?: string\n}\n\nexport interface SiteMapProps {\n classes?: SiteMapClasses\n}\n\nexport const SiteMap = ({ classes }: SiteMapProps) => {\n return (\n <CustomLink\n intent='white'\n href='https://sovcombank.ru/site-map'\n target='_blank'\n onPointerDown={() => pushToDlLinkFooter('Карта сайта', '')}\n aria-label='site-map'\n rel='noreferrer'\n classes={{\n link: cn('mobile:mt-6', classes?.siteMapLink),\n icon: classes?.siteMapLinkIcon\n }}\n >\n Карта сайта\n </CustomLink>\n )\n}\n"],"names":["SiteMap","classes","jsx","CustomLink","pushToDlLinkFooter","cn"],"mappings":"8NAaO,MAAMA,EAAU,CAAC,CAAE,QAAAC,KAEtBC,EAACC,EAAA,CACC,OAAO,QACP,KAAK,iCACL,OAAO,SACP,cAAe,IAAMC,EAAmB,cAAe,EAAE,EACzD,aAAW,WACX,IAAI,aACJ,QAAS,CACP,KAAMC,EAAG,cAAeJ,GAAS,WAAW,EAC5C,KAAMA,GAAS,eAAA,EAElB,SAAA,aAAA,CAAA"}
1
+ {"version":3,"file":"SiteMap.js","sources":["../../../../../lib/widgets/footer/ui/SiteMap.tsx"],"sourcesContent":["import { pushToDlLink } from '../../../shared/dataLayers'\nimport { CustomLink } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\nexport type SiteMapClasses = {\n siteMapLink?: string\n siteMapLinkIcon?: string\n}\n\nexport interface SiteMapProps {\n classes?: SiteMapClasses\n}\n\nexport const SiteMap = ({ classes }: SiteMapProps) => {\n return (\n <CustomLink\n intent='white'\n href='https://sovcombank.ru/site-map'\n target='_blank'\n onPointerDown={() => pushToDlLink('Карта сайта', '', 'footer')}\n aria-label='site-map'\n rel='noreferrer'\n classes={{\n link: cn('mobile:mt-6', classes?.siteMapLink),\n icon: classes?.siteMapLinkIcon\n }}\n >\n Карта сайта\n </CustomLink>\n )\n}\n"],"names":["SiteMap","classes","jsx","CustomLink","pushToDlLink","cn"],"mappings":"qOAaO,MAAMA,EAAU,CAAC,CAAE,QAAAC,KAEtBC,EAACC,EAAA,CACC,OAAO,QACP,KAAK,iCACL,OAAO,SACP,cAAe,IAAMC,EAAa,cAAe,GAAI,QAAQ,EAC7D,aAAW,WACX,IAAI,aACJ,QAAS,CACP,KAAMC,EAAG,cAAeJ,GAAS,WAAW,EAC5C,KAAMA,GAAS,eAAA,EAElB,SAAA,aAAA,CAAA"}
@@ -1,2 +1,2 @@
1
- import{jsx as i}from"react/jsx-runtime";import{pushToDlLinkFooter as a}from"../model/dataLayers.js";import{cn as l}from"../../../shared/utils/cn.js";import{Icon as c}from"../../../shared/ui/icon/Icon.js";const u=({socialsLinks:r,classes:o})=>i("div",{className:l("mt-4 flex items-center gap-2 desktop:mt-6",o?.socialRoot),children:r?.map(({iconName:e,href:t,...n})=>i("a",{className:l("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2",o?.socialLink),href:t,"aria-label":e.replace("social/",""),onPointerDown:()=>a(e,t),...n,children:i(c,{name:e,className:l("h-full w-full text-icon-white",o?.socialIcon)})},t))});export{u as SocialLinks};
1
+ import{jsx as i}from"react/jsx-runtime";import{cn as l}from"../../../shared/utils/cn.js";import{pushToDlLink as a}from"../../../shared/dataLayers/utils.js";import{Icon as c}from"../../../shared/ui/icon/Icon.js";const u=({socialsLinks:r,classes:o})=>i("div",{className:l("mt-4 flex items-center gap-2 desktop:mt-6",o?.socialRoot),children:r?.map(({iconName:e,href:t,...n})=>i("a",{className:l("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2",o?.socialLink),href:t,"aria-label":e.replace("social/",""),onPointerDown:()=>a(e,t,"footer"),...n,children:i(c,{name:e,className:l("h-full w-full text-icon-white",o?.socialIcon)})},t))});export{u as SocialLinks};
2
2
  //# sourceMappingURL=SocialLinks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SocialLinks.js","sources":["../../../../../lib/widgets/footer/ui/SocialLinks.tsx"],"sourcesContent":["import { pushToDlLinkFooter } from '../model/dataLayers'\nimport { Icon } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\nimport { type FooterSocialLinks } from '$/widgets/footer/model/types'\n\nexport type SocialLinksClasses = {\n socialRoot?: string\n socialLink?: string\n socialIcon?: string\n}\n\ninterface ISocialLinksProps {\n socialsLinks: FooterSocialLinks[]\n classes?: SocialLinksClasses\n}\n\nexport const SocialLinks = ({ socialsLinks, classes }: ISocialLinksProps) => {\n return (\n <div className={cn('mt-4 flex items-center gap-2 desktop:mt-6', classes?.socialRoot)}>\n {socialsLinks?.map(({ iconName, href, ...rest }) => (\n <a\n className={cn('flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2', classes?.socialLink)}\n href={href}\n key={href}\n aria-label={iconName.replace('social/', '')}\n onPointerDown={() => pushToDlLinkFooter(iconName, href)}\n {...rest}\n >\n <Icon name={iconName} className={cn('h-full w-full text-icon-white', classes?.socialIcon)} />\n </a>\n ))}\n </div>\n )\n}\n"],"names":["SocialLinks","socialsLinks","classes","cn","iconName","href","rest","jsx","pushToDlLinkFooter","Icon"],"mappings":"4MAgBO,MAAMA,EAAc,CAAC,CAAE,aAAAC,EAAc,QAAAC,OAEvC,MAAA,CAAI,UAAWC,EAAG,4CAA6CD,GAAS,UAAU,EAChF,SAAAD,GAAc,IAAI,CAAC,CAAE,SAAAG,EAAU,KAAAC,EAAM,GAAGC,KACvCC,EAAC,IAAA,CACC,UAAWJ,EAAG,wEAAyED,GAAS,UAAU,EAC1G,KAAAG,EAEA,aAAYD,EAAS,QAAQ,UAAW,EAAE,EAC1C,cAAe,IAAMI,EAAmBJ,EAAUC,CAAI,EACrD,GAAGC,EAEJ,SAAAC,EAACE,GAAK,KAAML,EAAU,UAAWD,EAAG,gCAAiCD,GAAS,UAAU,CAAA,CAAG,CAAA,EALtFG,CAAA,CAOR,EACH"}
1
+ {"version":3,"file":"SocialLinks.js","sources":["../../../../../lib/widgets/footer/ui/SocialLinks.tsx"],"sourcesContent":["import { pushToDlLink } from '../../../shared/dataLayers'\nimport { Icon } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\nimport { type FooterSocialLinks } from '$/widgets/footer/model/types'\n\nexport type SocialLinksClasses = {\n socialRoot?: string\n socialLink?: string\n socialIcon?: string\n}\n\ninterface ISocialLinksProps {\n socialsLinks: FooterSocialLinks[]\n classes?: SocialLinksClasses\n}\n\nexport const SocialLinks = ({ socialsLinks, classes }: ISocialLinksProps) => {\n return (\n <div className={cn('mt-4 flex items-center gap-2 desktop:mt-6', classes?.socialRoot)}>\n {socialsLinks?.map(({ iconName, href, ...rest }) => (\n <a\n className={cn('flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2', classes?.socialLink)}\n href={href}\n key={href}\n aria-label={iconName.replace('social/', '')}\n onPointerDown={() => pushToDlLink(iconName, href, 'footer')}\n {...rest}\n >\n <Icon name={iconName} className={cn('h-full w-full text-icon-white', classes?.socialIcon)} />\n </a>\n ))}\n </div>\n )\n}\n"],"names":["SocialLinks","socialsLinks","classes","cn","iconName","href","rest","jsx","pushToDlLink","Icon"],"mappings":"mNAgBO,MAAMA,EAAc,CAAC,CAAE,aAAAC,EAAc,QAAAC,OAEvC,MAAA,CAAI,UAAWC,EAAG,4CAA6CD,GAAS,UAAU,EAChF,SAAAD,GAAc,IAAI,CAAC,CAAE,SAAAG,EAAU,KAAAC,EAAM,GAAGC,KACvCC,EAAC,IAAA,CACC,UAAWJ,EAAG,wEAAyED,GAAS,UAAU,EAC1G,KAAAG,EAEA,aAAYD,EAAS,QAAQ,UAAW,EAAE,EAC1C,cAAe,IAAMI,EAAaJ,EAAUC,EAAM,QAAQ,EACzD,GAAGC,EAEJ,SAAAC,EAACE,GAAK,KAAML,EAAU,UAAWD,EAAG,gCAAiCD,GAAS,UAAU,CAAA,CAAG,CAAA,EALtFG,CAAA,CAOR,EACH"}
@@ -1,2 +1,2 @@
1
- import{jsx as r}from"react/jsx-runtime";import{PhoneView as n}from"../../../shared/ui/phoneView/PhoneView.js";import{ButtonWithHandlers as o}from"../../buttonWithHandlers/ButtonWithHandlers.js";const m=({variant:e,details:t})=>{switch(e){case"withButton":return r(o,{...t});case"withPhone":return r(n,{classes:{root:"items-end"},...t,phone:t.phone});default:return null}};export{m as renderContentVariant};
1
+ import{jsx as n}from"react/jsx-runtime";import{PhoneView as e}from"../../../shared/ui/phoneView/PhoneView.js";import{pushToDlLink as t,pushToDlButton as h}from"../../../shared/dataLayers/utils.js";import{ButtonWithHandlers as p}from"../../buttonWithHandlers/ButtonWithHandlers.js";const s=({variant:r,details:o})=>{switch(r){case"withButton":return n(p,{onPointerDown:()=>h(typeof o?.children=="string"?o?.children:"","","header"),...o});case"withPhone":return n(e,{onPointerDown:()=>t(o?.phone,o?.phone,"header"),classes:{root:"items-end"},...o,phone:o?.phone});default:return null}};export{s as renderContentVariant};
2
2
  //# sourceMappingURL=helpers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sources":["../../../../../lib/widgets/header/model/helpers.tsx"],"sourcesContent":["import { ButtonWithHandlers } from '../../buttonWithHandlers'\nimport type { HeaderProps, HeaderVariantType } from './types'\nimport { PhoneView } from '$/shared/ui'\n\nexport const renderContentVariant = <Type extends HeaderVariantType>({ variant, details }: HeaderProps<Type>) => {\n switch (variant) {\n case 'withButton':\n return <ButtonWithHandlers {...details} />\n case 'withPhone':\n return <PhoneView classes={{ root: 'items-end' }} {...details} phone={details.phone} />\n default:\n return null\n }\n}\n"],"names":["renderContentVariant","variant","details","jsx","ButtonWithHandlers","PhoneView"],"mappings":"kMAIO,MAAMA,EAAuB,CAAiC,CAAE,QAAAC,EAAS,QAAAC,KAAiC,CAC/G,OAAQD,EAAA,CACN,IAAK,aACH,OAAOE,EAACC,EAAA,CAAoB,GAAGF,CAAA,CAAS,EAC1C,IAAK,YACH,OAAOC,EAACE,EAAA,CAAU,QAAS,CAAE,KAAM,WAAA,EAAgB,GAAGH,EAAS,MAAOA,EAAQ,KAAA,CAAO,EACvF,QACE,OAAO,IAAA,CAEb"}
1
+ {"version":3,"file":"helpers.js","sources":["../../../../../lib/widgets/header/model/helpers.tsx"],"sourcesContent":["import { pushToDlButton, pushToDlLink } from '../../../shared/dataLayers'\nimport { ButtonWithHandlers } from '../../buttonWithHandlers'\nimport type { HeaderProps, HeaderVariantType } from './types'\nimport { PhoneView } from '$/shared/ui'\n\nexport const renderContentVariant = <Type extends HeaderVariantType>({ variant, details }: HeaderProps<Type>) => {\n switch (variant) {\n case 'withButton':\n return (\n <ButtonWithHandlers\n onPointerDown={() => pushToDlButton(typeof details?.children === 'string' ? details?.children : '', '', 'header')}\n {...details}\n />\n )\n case 'withPhone':\n return (\n <PhoneView\n onPointerDown={() => pushToDlLink(details?.phone, details?.phone, 'header')}\n classes={{ root: 'items-end' }}\n {...details}\n phone={details?.phone}\n />\n )\n default:\n return null\n }\n}\n"],"names":["renderContentVariant","variant","details","jsx","ButtonWithHandlers","pushToDlButton","PhoneView","pushToDlLink"],"mappings":"yRAKO,MAAMA,EAAuB,CAAiC,CAAE,QAAAC,EAAS,QAAAC,KAAiC,CAC/G,OAAQD,EAAA,CACN,IAAK,aACH,OACEE,EAACC,EAAA,CACC,cAAe,IAAMC,EAAe,OAAOH,GAAS,UAAa,SAAWA,GAAS,SAAW,GAAI,GAAI,QAAQ,EAC/G,GAAGA,CAAA,CAAA,EAGV,IAAK,YACH,OACEC,EAACG,EAAA,CACC,cAAe,IAAMC,EAAaL,GAAS,MAAOA,GAAS,MAAO,QAAQ,EAC1E,QAAS,CAAE,KAAM,WAAA,EAChB,GAAGA,EACJ,MAAOA,GAAS,KAAA,CAAA,EAGtB,QACE,OAAO,IAAA,CAEb"}
@@ -1,2 +1,2 @@
1
- import{jsx as e}from"react/jsx-runtime";import{cn as s}from"../../../shared/utils/cn.js";import{CustomLink as o}from"../../../shared/ui/customLink/CustomLink.js";const c=({linksList:i,classes:t})=>e("div",{className:s("mt-4 flex flex-wrap items-center gap-4 desktop:mt-12 desktop:gap-8",t?.list),children:i?.map((m,r)=>e(o,{withUnderline:!0,size:"md",classes:t?.customLink,...m},r))});export{c as LinksList};
1
+ import{jsx as r}from"react/jsx-runtime";import{cn as m}from"../../../shared/utils/cn.js";import{CustomLink as n}from"../../../shared/ui/customLink/CustomLink.js";import{pushToDlLink as s}from"../../../shared/dataLayers/utils.js";const l=({linksList:e,classes:t})=>r("div",{className:m("mt-4 flex flex-wrap items-center gap-4 desktop:mt-12 desktop:gap-8",t?.list),children:e?.map((o,i)=>r(n,{onPointerDown:()=>s(o?.children,o?.href,"infoBlock"),withUnderline:!0,size:"md",classes:t?.customLink,...o},i))});export{l as LinksList};
2
2
  //# sourceMappingURL=LinksList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinksList.js","sources":["../../../../../lib/widgets/infoBlock/ui/LinksList.tsx"],"sourcesContent":["import { CustomLink, type CustomLinkProps } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\nexport type LinksListClasses = {\n list?: string\n customLink?: CustomLinkProps['classes']\n}\n\nexport interface LinksListProps {\n linksList?: CustomLinkProps[]\n classes?: LinksListClasses\n}\n\nexport const LinksList = ({ linksList, classes }: LinksListProps) => {\n return (\n <div className={cn('mt-4 flex flex-wrap items-center gap-4 desktop:mt-12 desktop:gap-8', classes?.list)}>\n {linksList?.map((link, index) => (\n <CustomLink key={index} withUnderline size='md' classes={classes?.customLink} {...link} />\n ))}\n </div>\n )\n}\n"],"names":["LinksList","linksList","classes","jsx","cn","link","index","CustomLink"],"mappings":"kKAaO,MAAMA,EAAY,CAAC,CAAE,UAAAC,EAAW,QAAAC,KAEnCC,EAAC,MAAA,CAAI,UAAWC,EAAG,qEAAsEF,GAAS,IAAI,EACnG,SAAAD,GAAW,IAAI,CAACI,EAAMC,MACpBC,EAAA,CAAuB,cAAa,GAAC,KAAK,KAAK,QAASL,GAAS,WAAa,GAAGG,CAAA,EAAjEC,CAAuE,CACzF,CAAA,CACH"}
1
+ {"version":3,"file":"LinksList.js","sources":["../../../../../lib/widgets/infoBlock/ui/LinksList.tsx"],"sourcesContent":["import { pushToDlLink } from '../../../shared/dataLayers'\nimport { CustomLink, type CustomLinkProps } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\nexport type LinksListClasses = {\n list?: string\n customLink?: CustomLinkProps['classes']\n}\n\nexport interface LinksListProps {\n linksList?: CustomLinkProps[]\n classes?: LinksListClasses\n}\n\nexport const LinksList = ({ linksList, classes }: LinksListProps) => {\n return (\n <div className={cn('mt-4 flex flex-wrap items-center gap-4 desktop:mt-12 desktop:gap-8', classes?.list)}>\n {linksList?.map((link, index) => (\n <CustomLink\n onPointerDown={() => pushToDlLink(link?.children as string, link?.href, 'infoBlock')}\n key={index}\n withUnderline\n size='md'\n classes={classes?.customLink}\n {...link}\n />\n ))}\n </div>\n )\n}\n"],"names":["LinksList","linksList","classes","jsx","cn","link","index","CustomLink","pushToDlLink"],"mappings":"qOAcO,MAAMA,EAAY,CAAC,CAAE,UAAAC,EAAW,QAAAC,KAEnCC,EAAC,MAAA,CAAI,UAAWC,EAAG,qEAAsEF,GAAS,IAAI,EACnG,SAAAD,GAAW,IAAI,CAACI,EAAMC,IACrBH,EAACI,EAAA,CACC,cAAe,IAAMC,EAAaH,GAAM,SAAoBA,GAAM,KAAM,WAAW,EAEnF,cAAa,GACb,KAAK,KACL,QAASH,GAAS,WACjB,GAAGG,CAAA,EAJCC,CAAA,CAMR,EACH"}
@@ -1,2 +1,2 @@
1
- import{jsxs as a,jsx as l}from"react/jsx-runtime";import{LinksList as h}from"./LinksList.js";import{cn as t}from"../../../shared/utils/cn.js";import{Heading as s}from"../../../shared/ui/heading/Heading.js";import{ButtonWithHandlers as x}from"../../buttonWithHandlers/ButtonWithHandlers.js";const w=({heading:n,buttonsGroup:o,description:r,images:m,linksList:i,classes:e})=>{const d=o&&o?.length>0,c=i&&i?.length>0;return a("div",{className:t("flex flex-col",e?.wrapper),children:[a("div",{className:t("flex flex-col gap-4 mobile:mb-2",e?.textBlock),children:[l(s,{as:"h2",className:t(e?.heading),children:n}),r&&l("p",{dangerouslySetInnerHTML:{__html:r},className:t("desk-body-regular-l text-color-dark",e?.description)})]}),l("div",{className:t("h-full w-full desktop:hidden",e?.imageMobileWrapper),children:l("img",{src:m?.mobile,alt:m?.alt,className:t("h-full w-full object-contain",e?.imageMobile)})}),d&&l("div",{className:t("mt-2 flex items-center gap-3 mobile:flex-col desktop:mt-8 desktop:gap-8",e?.buttonsGroup),children:o?.map((p,f)=>l(x,{className:"w-full desktop:w-[216px]",...p},f))}),c&&l(h,{linksList:i,classes:e?.linksList})]})};export{w as RootContent};
1
+ import{jsxs as c,jsx as l}from"react/jsx-runtime";import{LinksList as h}from"./LinksList.js";import{cn as o}from"../../../shared/utils/cn.js";import{Heading as s}from"../../../shared/ui/heading/Heading.js";import{ButtonWithHandlers as x}from"../../buttonWithHandlers/ButtonWithHandlers.js";import{pushToDlButton as g}from"../../../shared/dataLayers/utils.js";const v=({heading:i,buttonsGroup:t,description:m,images:n,linksList:r,classes:e})=>{const d=t&&t?.length>0,p=r&&r?.length>0;return c("div",{className:o("flex flex-col",e?.wrapper),children:[c("div",{className:o("flex flex-col gap-4 mobile:mb-2",e?.textBlock),children:[l(s,{as:"h2",className:o(e?.heading),children:i}),m&&l("p",{dangerouslySetInnerHTML:{__html:m},className:o("desk-body-regular-l text-color-dark",e?.description)})]}),l("div",{className:o("h-full w-full desktop:hidden",e?.imageMobileWrapper),children:l("img",{src:n?.mobile,alt:n?.alt,className:o("h-full w-full object-contain",e?.imageMobile)})}),d&&l("div",{className:o("mt-2 flex items-center gap-3 mobile:flex-col desktop:mt-8 desktop:gap-8",e?.buttonsGroup),children:t?.map((a,f)=>l(x,{onPointerDown:()=>g(a?.children,i,"infoBlock"),className:"w-full desktop:w-[216px]",...a},f))}),p&&l(h,{linksList:r,classes:e?.linksList})]})};export{v as RootContent};
2
2
  //# sourceMappingURL=RootContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RootContent.js","sources":["../../../../../lib/widgets/infoBlock/ui/RootContent.tsx"],"sourcesContent":["import { type ImagesPrimitive } from '../../../shared/types/shared-types'\nimport { ButtonWithHandlers, type ButtonWithHandlersProps } from '../../buttonWithHandlers'\nimport { LinksList, type LinksListClasses, type LinksListProps } from './LinksList'\nimport { Heading } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\nexport type RootContentClasses = {\n wrapper?: string\n textBlock?: string\n heading?: string\n description?: string\n imageMobileWrapper?: string\n imageMobile?: string\n buttonsGroup?: string\n linksList?: LinksListClasses\n}\n\nexport interface RootContentProps extends Omit<LinksListProps, 'classes'> {\n heading: string\n description?: string\n buttonsGroup?: ButtonWithHandlersProps[]\n images: ImagesPrimitive\n classes?: RootContentClasses\n}\n\nexport const RootContent = ({ heading, buttonsGroup, description, images, linksList, classes }: RootContentProps) => {\n const withButtons = buttonsGroup && buttonsGroup?.length > 0\n const withLinks = linksList && linksList?.length > 0\n\n return (\n <div className={cn('flex flex-col', classes?.wrapper)}>\n <div className={cn('flex flex-col gap-4 mobile:mb-2', classes?.textBlock)}>\n <Heading as='h2' className={cn(classes?.heading)}>\n {heading}\n </Heading>\n {description && (\n <p\n dangerouslySetInnerHTML={{ __html: description }}\n className={cn('desk-body-regular-l text-color-dark', classes?.description)}\n />\n )}\n </div>\n\n <div className={cn('h-full w-full desktop:hidden', classes?.imageMobileWrapper)}>\n <img src={images?.mobile} alt={images?.alt} className={cn('h-full w-full object-contain', classes?.imageMobile)} />\n </div>\n\n {withButtons && (\n <div className={cn('mt-2 flex items-center gap-3 mobile:flex-col desktop:mt-8 desktop:gap-8', classes?.buttonsGroup)}>\n {buttonsGroup?.map((button, index) => (\n <ButtonWithHandlers key={index} className='w-full desktop:w-[216px]' {...button} />\n ))}\n </div>\n )}\n\n {withLinks && <LinksList linksList={linksList} classes={classes?.linksList} />}\n </div>\n )\n}\n"],"names":["RootContent","heading","buttonsGroup","description","images","linksList","classes","withButtons","withLinks","cn","jsxs","jsx","Heading","button","index","ButtonWithHandlers","LinksList"],"mappings":"kSAyBO,MAAMA,EAAc,CAAC,CAAE,QAAAC,EAAS,aAAAC,EAAc,YAAAC,EAAa,OAAAC,EAAQ,UAAAC,EAAW,QAAAC,KAAgC,CACnH,MAAMC,EAAcL,GAAgBA,GAAc,OAAS,EACrDM,EAAYH,GAAaA,GAAW,OAAS,EAEnD,SACG,MAAA,CAAI,UAAWI,EAAG,gBAAiBH,GAAS,OAAO,EAClD,SAAA,CAAAI,EAAC,OAAI,UAAWD,EAAG,kCAAmCH,GAAS,SAAS,EACtE,SAAA,CAAAK,EAACC,EAAA,CAAQ,GAAG,KAAK,UAAWH,EAAGH,GAAS,OAAO,EAC5C,SAAAL,CAAA,CACH,EACCE,GACCQ,EAAC,IAAA,CACC,wBAAyB,CAAE,OAAQR,CAAA,EACnC,UAAWM,EAAG,sCAAuCH,GAAS,WAAW,CAAA,CAAA,CAC3E,EAEJ,EAEAK,EAAC,OAAI,UAAWF,EAAG,+BAAgCH,GAAS,kBAAkB,EAC5E,SAAAK,EAAC,MAAA,CAAI,IAAKP,GAAQ,OAAQ,IAAKA,GAAQ,IAAK,UAAWK,EAAG,+BAAgCH,GAAS,WAAW,CAAA,CAAG,CAAA,CACnH,EAECC,KACE,MAAA,CAAI,UAAWE,EAAG,0EAA2EH,GAAS,YAAY,EAChH,SAAAJ,GAAc,IAAI,CAACW,EAAQC,MACzBC,EAAA,CAA+B,UAAU,2BAA4B,GAAGF,CAAA,EAAhDC,CAAwD,CAClF,CAAA,CACH,EAGDN,GAAaG,EAACK,EAAA,CAAU,UAAAX,EAAsB,QAASC,GAAS,SAAA,CAAW,CAAA,EAC9E,CAEJ"}
1
+ {"version":3,"file":"RootContent.js","sources":["../../../../../lib/widgets/infoBlock/ui/RootContent.tsx"],"sourcesContent":["import { pushToDlButton } from '../../../shared/dataLayers'\nimport { type ImagesPrimitive } from '../../../shared/types/shared-types'\nimport { ButtonWithHandlers, type ButtonWithHandlersProps } from '../../buttonWithHandlers'\nimport { LinksList, type LinksListClasses, type LinksListProps } from './LinksList'\nimport { Heading } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\nexport type RootContentClasses = {\n wrapper?: string\n textBlock?: string\n heading?: string\n description?: string\n imageMobileWrapper?: string\n imageMobile?: string\n buttonsGroup?: string\n linksList?: LinksListClasses\n}\n\nexport interface RootContentProps extends Omit<LinksListProps, 'classes'> {\n heading: string\n description?: string\n buttonsGroup?: ButtonWithHandlersProps[]\n images: ImagesPrimitive\n classes?: RootContentClasses\n}\n\nexport const RootContent = ({ heading, buttonsGroup, description, images, linksList, classes }: RootContentProps) => {\n const withButtons = buttonsGroup && buttonsGroup?.length > 0\n const withLinks = linksList && linksList?.length > 0\n\n return (\n <div className={cn('flex flex-col', classes?.wrapper)}>\n <div className={cn('flex flex-col gap-4 mobile:mb-2', classes?.textBlock)}>\n <Heading as='h2' className={cn(classes?.heading)}>\n {heading}\n </Heading>\n {description && (\n <p\n dangerouslySetInnerHTML={{ __html: description }}\n className={cn('desk-body-regular-l text-color-dark', classes?.description)}\n />\n )}\n </div>\n\n <div className={cn('h-full w-full desktop:hidden', classes?.imageMobileWrapper)}>\n <img src={images?.mobile} alt={images?.alt} className={cn('h-full w-full object-contain', classes?.imageMobile)} />\n </div>\n\n {withButtons && (\n <div className={cn('mt-2 flex items-center gap-3 mobile:flex-col desktop:mt-8 desktop:gap-8', classes?.buttonsGroup)}>\n {buttonsGroup?.map((button, index) => (\n <ButtonWithHandlers\n onPointerDown={() => pushToDlButton(button?.children as string, heading, 'infoBlock')}\n key={index}\n className='w-full desktop:w-[216px]'\n {...button}\n />\n ))}\n </div>\n )}\n\n {withLinks && <LinksList linksList={linksList} classes={classes?.linksList} />}\n </div>\n )\n}\n"],"names":["RootContent","heading","buttonsGroup","description","images","linksList","classes","withButtons","withLinks","cn","jsxs","jsx","Heading","button","index","ButtonWithHandlers","pushToDlButton","LinksList"],"mappings":"uWA0BO,MAAMA,EAAc,CAAC,CAAE,QAAAC,EAAS,aAAAC,EAAc,YAAAC,EAAa,OAAAC,EAAQ,UAAAC,EAAW,QAAAC,KAAgC,CACnH,MAAMC,EAAcL,GAAgBA,GAAc,OAAS,EACrDM,EAAYH,GAAaA,GAAW,OAAS,EAEnD,SACG,MAAA,CAAI,UAAWI,EAAG,gBAAiBH,GAAS,OAAO,EAClD,SAAA,CAAAI,EAAC,OAAI,UAAWD,EAAG,kCAAmCH,GAAS,SAAS,EACtE,SAAA,CAAAK,EAACC,EAAA,CAAQ,GAAG,KAAK,UAAWH,EAAGH,GAAS,OAAO,EAC5C,SAAAL,CAAA,CACH,EACCE,GACCQ,EAAC,IAAA,CACC,wBAAyB,CAAE,OAAQR,CAAA,EACnC,UAAWM,EAAG,sCAAuCH,GAAS,WAAW,CAAA,CAAA,CAC3E,EAEJ,EAEAK,EAAC,OAAI,UAAWF,EAAG,+BAAgCH,GAAS,kBAAkB,EAC5E,SAAAK,EAAC,MAAA,CAAI,IAAKP,GAAQ,OAAQ,IAAKA,GAAQ,IAAK,UAAWK,EAAG,+BAAgCH,GAAS,WAAW,CAAA,CAAG,CAAA,CACnH,EAECC,GACCI,EAAC,MAAA,CAAI,UAAWF,EAAG,0EAA2EH,GAAS,YAAY,EAChH,SAAAJ,GAAc,IAAI,CAACW,EAAQC,IAC1BH,EAACI,EAAA,CACC,cAAe,IAAMC,EAAeH,GAAQ,SAAoBZ,EAAS,WAAW,EAEpF,UAAU,2BACT,GAAGY,CAAA,EAFCC,CAAA,CAIR,EACH,EAGDN,GAAaG,EAACM,EAAA,CAAU,UAAAZ,EAAsB,QAASC,GAAS,SAAA,CAAW,CAAA,EAC9E,CAEJ"}
@@ -1,2 +1,2 @@
1
- import{jsx as e}from"react/jsx-runtime";import{cva as d}from"class-variance-authority";import{cn as r}from"../../shared/utils/cn.js";import{Column as g}from"./ui/Column.js";import{ResponsiveContainer as p}from"../../shared/ui/responsiveContainer/ResponsiveContainer.js";import{Accordion as f}from"../../shared/ui/accordion/Accordion.js";import{Heading as u}from"../../shared/ui/heading/Heading.js";const h=d("grid gap-4 grid-cols-1",{variants:{variant:{twoCols:"desktop:grid-cols-2",threeCols:"desktop:grid-cols-3",fourCols:"desktop:grid-cols-4"}},defaultVariants:{variant:"fourCols"}}),N=({variant:l,details:n,headline:a,mobileAccordionProps:o,rootAccordionProps:i,classes:t,defaultOpen:s})=>e("section",{id:"interLinking","data-test-id":"interLinking",className:r("min-w-full desktop:min-w-[1140px]",t?.root),children:e(p,{children:e(f,{defaultOpen:s,label:e(u,{as:"h4",className:r("text-left",t?.headline),children:a}),...i,classes:{...i?.classes,header:{trigger:r("bg-color-blue-grey-100",i?.classes?.header?.trigger)},content:r("max-w-full bg-color-blue-grey-100 relative",i?.classes?.content)},children:e("div",{className:r(h({variant:l}),t?.columnsWrapper),children:n?.map((m,c)=>e(g,{...m,...o,classes:t?.column},c))})})})});export{N as InterLinking,N as default};
1
+ import{jsx as r}from"react/jsx-runtime";import{cva as d}from"class-variance-authority";import{cn as e}from"../../shared/utils/cn.js";import{Column as g}from"./ui/Column.js";import{ResponsiveContainer as p}from"../../shared/ui/responsiveContainer/ResponsiveContainer.js";import{Accordion as f}from"../../shared/ui/accordion/Accordion.js";import{pushToDlAccordion as u}from"../../shared/dataLayers/utils.js";import{Heading as h}from"../../shared/ui/heading/Heading.js";const k=d("grid gap-4 grid-cols-1",{variants:{variant:{twoCols:"desktop:grid-cols-2",threeCols:"desktop:grid-cols-3",fourCols:"desktop:grid-cols-4"}},defaultVariants:{variant:"fourCols"}}),D=({variant:n,details:l,headline:t,mobileAccordionProps:s,rootAccordionProps:i,classes:o,defaultOpen:a})=>r("section",{id:"interLinking","data-test-id":"interLinking",className:e("min-w-full desktop:min-w-[1140px]",o?.root),children:r(p,{children:r(f,{onPointerDown:()=>u(t,t,"interLinking"),defaultOpen:a,label:r(h,{as:"h4",className:e("text-left",o?.headline),children:t}),...i,classes:{...i?.classes,header:{trigger:e("bg-color-blue-grey-100",i?.classes?.header?.trigger)},content:e("max-w-full bg-color-blue-grey-100 relative",i?.classes?.content)},children:r("div",{className:e(k({variant:n}),o?.columnsWrapper),children:l?.map((m,c)=>r(g,{...m,...s,classes:o?.column},c))})})})});export{D as InterLinking,D as default};
2
2
  //# sourceMappingURL=InterLinking.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InterLinking.js","sources":["../../../../lib/widgets/interLinking/InterLinking.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority'\nimport type { InterLinkingRoot } from './model/types'\nimport { Column, type ColumnClasses } from './ui'\nimport { Accordion, type AccordionProps, Heading, ResponsiveContainer } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\nconst columnsWrapper = cva('grid gap-4 grid-cols-1', {\n variants: {\n variant: {\n twoCols: 'desktop:grid-cols-2',\n threeCols: 'desktop:grid-cols-3',\n fourCols: 'desktop:grid-cols-4'\n }\n },\n defaultVariants: {\n variant: 'fourCols'\n }\n})\n\nexport type InterLinkingClasses = {\n root?: string\n headline?: string\n columnsWrapper?: string\n column?: ColumnClasses\n}\n\nexport interface InterLinkingProps extends InterLinkingRoot {\n mobileAccordionProps?: Partial<AccordionProps>\n rootAccordionProps?: Partial<AccordionProps>\n classes?: InterLinkingClasses\n defaultOpen?: boolean\n}\n\nexport const InterLinking = ({\n variant,\n details,\n headline,\n mobileAccordionProps,\n rootAccordionProps,\n classes,\n defaultOpen\n}: InterLinkingProps) => {\n return (\n <section id='interLinking' data-test-id='interLinking' className={cn('min-w-full desktop:min-w-[1140px]', classes?.root)}>\n <ResponsiveContainer>\n <Accordion\n defaultOpen={defaultOpen}\n label={\n <Heading as='h4' className={cn('text-left', classes?.headline)}>\n {headline}\n </Heading>\n }\n {...rootAccordionProps}\n classes={{\n ...rootAccordionProps?.classes,\n header: {\n trigger: cn('bg-color-blue-grey-100', rootAccordionProps?.classes?.header?.trigger)\n },\n content: cn('max-w-full bg-color-blue-grey-100 relative', rootAccordionProps?.classes?.content)\n }}\n >\n <div className={cn(columnsWrapper({ variant: variant }), classes?.columnsWrapper)}>\n {details?.map((column, index) => (\n <Column key={index} {...column} {...mobileAccordionProps} classes={classes?.column} />\n ))}\n </div>\n </Accordion>\n </ResponsiveContainer>\n </section>\n )\n}\n\nexport default InterLinking\n"],"names":["columnsWrapper","cva","InterLinking","variant","details","headline","mobileAccordionProps","rootAccordionProps","classes","defaultOpen","jsx","cn","ResponsiveContainer","Accordion","Heading","column","index","Column"],"mappings":"8YAMA,MAAMA,EAAiBC,EAAI,yBAA0B,CACnD,SAAU,CACR,QAAS,CACP,QAAS,sBACT,UAAW,sBACX,SAAU,qBAAA,CACZ,EAEF,gBAAiB,CACf,QAAS,UAAA,CAEb,CAAC,EAgBYC,EAAe,CAAC,CAC3B,QAAAC,EACA,QAAAC,EACA,SAAAC,EACA,qBAAAC,EACA,mBAAAC,EACA,QAAAC,EACA,YAAAC,CACF,IAEIC,EAAC,UAAA,CAAQ,GAAG,eAAe,eAAa,eAAe,UAAWC,EAAG,oCAAqCH,GAAS,IAAI,EACrH,WAACI,EAAA,CACC,SAAAF,EAACG,EAAA,CACC,YAAAJ,EACA,MACEC,EAACI,EAAA,CAAQ,GAAG,KAAK,UAAWH,EAAG,YAAaH,GAAS,QAAQ,EAC1D,SAAAH,CAAA,CACH,EAED,GAAGE,EACJ,QAAS,CACP,GAAGA,GAAoB,QACvB,OAAQ,CACN,QAASI,EAAG,yBAA0BJ,GAAoB,SAAS,QAAQ,OAAO,CAAA,EAEpF,QAASI,EAAG,6CAA8CJ,GAAoB,SAAS,OAAO,CAAA,EAGhG,SAAAG,EAAC,MAAA,CAAI,UAAWC,EAAGX,EAAe,CAAE,QAAAG,CAAA,CAAkB,EAAGK,GAAS,cAAc,EAC7E,SAAAJ,GAAS,IAAI,CAACW,EAAQC,IACrBN,EAACO,EAAA,CAAoB,GAAGF,EAAS,GAAGT,EAAsB,QAASE,GAAS,MAAA,EAA/DQ,CAAuE,CACrF,CAAA,CACH,CAAA,CAAA,EAEJ,CAAA,CACF"}
1
+ {"version":3,"file":"InterLinking.js","sources":["../../../../lib/widgets/interLinking/InterLinking.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority'\nimport { pushToDlAccordion } from '../../shared/dataLayers'\nimport type { InterLinkingRoot } from './model/types'\nimport { Column, type ColumnClasses } from './ui'\nimport { Accordion, type AccordionProps, Heading, ResponsiveContainer } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\nconst columnsWrapper = cva('grid gap-4 grid-cols-1', {\n variants: {\n variant: {\n twoCols: 'desktop:grid-cols-2',\n threeCols: 'desktop:grid-cols-3',\n fourCols: 'desktop:grid-cols-4'\n }\n },\n defaultVariants: {\n variant: 'fourCols'\n }\n})\n\nexport type InterLinkingClasses = {\n root?: string\n headline?: string\n columnsWrapper?: string\n column?: ColumnClasses\n}\n\nexport interface InterLinkingProps extends InterLinkingRoot {\n mobileAccordionProps?: Partial<AccordionProps>\n rootAccordionProps?: Partial<AccordionProps>\n classes?: InterLinkingClasses\n defaultOpen?: boolean\n}\n\nexport const InterLinking = ({\n variant,\n details,\n headline,\n mobileAccordionProps,\n rootAccordionProps,\n classes,\n defaultOpen\n}: InterLinkingProps) => {\n return (\n <section id='interLinking' data-test-id='interLinking' className={cn('min-w-full desktop:min-w-[1140px]', classes?.root)}>\n <ResponsiveContainer>\n <Accordion\n onPointerDown={() => pushToDlAccordion(headline, headline, 'interLinking')}\n defaultOpen={defaultOpen}\n label={\n <Heading as='h4' className={cn('text-left', classes?.headline)}>\n {headline}\n </Heading>\n }\n {...rootAccordionProps}\n classes={{\n ...rootAccordionProps?.classes,\n header: {\n trigger: cn('bg-color-blue-grey-100', rootAccordionProps?.classes?.header?.trigger)\n },\n content: cn('max-w-full bg-color-blue-grey-100 relative', rootAccordionProps?.classes?.content)\n }}\n >\n <div className={cn(columnsWrapper({ variant: variant }), classes?.columnsWrapper)}>\n {details?.map((column, index) => (\n <Column key={index} {...column} {...mobileAccordionProps} classes={classes?.column} />\n ))}\n </div>\n </Accordion>\n </ResponsiveContainer>\n </section>\n )\n}\n\nexport default InterLinking\n"],"names":["columnsWrapper","cva","InterLinking","variant","details","headline","mobileAccordionProps","rootAccordionProps","classes","defaultOpen","jsx","cn","ResponsiveContainer","Accordion","pushToDlAccordion","Heading","column","index","Column"],"mappings":"mdAOA,MAAMA,EAAiBC,EAAI,yBAA0B,CACnD,SAAU,CACR,QAAS,CACP,QAAS,sBACT,UAAW,sBACX,SAAU,qBAAA,CACZ,EAEF,gBAAiB,CACf,QAAS,UAAA,CAEb,CAAC,EAgBYC,EAAe,CAAC,CAC3B,QAAAC,EACA,QAAAC,EACA,SAAAC,EACA,qBAAAC,EACA,mBAAAC,EACA,QAAAC,EACA,YAAAC,CACF,IAEIC,EAAC,UAAA,CAAQ,GAAG,eAAe,eAAa,eAAe,UAAWC,EAAG,oCAAqCH,GAAS,IAAI,EACrH,WAACI,EAAA,CACC,SAAAF,EAACG,EAAA,CACC,cAAe,IAAMC,EAAkBT,EAAUA,EAAU,cAAc,EACzE,YAAAI,EACA,MACEC,EAACK,EAAA,CAAQ,GAAG,KAAK,UAAWJ,EAAG,YAAaH,GAAS,QAAQ,EAC1D,SAAAH,CAAA,CACH,EAED,GAAGE,EACJ,QAAS,CACP,GAAGA,GAAoB,QACvB,OAAQ,CACN,QAASI,EAAG,yBAA0BJ,GAAoB,SAAS,QAAQ,OAAO,CAAA,EAEpF,QAASI,EAAG,6CAA8CJ,GAAoB,SAAS,OAAO,CAAA,EAGhG,SAAAG,EAAC,MAAA,CAAI,UAAWC,EAAGX,EAAe,CAAE,QAAAG,CAAA,CAAkB,EAAGK,GAAS,cAAc,EAC7E,SAAAJ,GAAS,IAAI,CAACY,EAAQC,IACrBP,EAACQ,EAAA,CAAoB,GAAGF,EAAS,GAAGV,EAAsB,QAASE,GAAS,MAAA,EAA/DS,CAAuE,CACrF,CAAA,CACH,CAAA,CAAA,EAEJ,CAAA,CACF"}
@@ -1,2 +1,2 @@
1
- import{jsxs as i,jsx as e,Fragment as l}from"react/jsx-runtime";import{LinksList as m}from"./LinksList.js";import{cn as r}from"../../../shared/utils/cn.js";import{useDevice as c}from"../../../shared/hooks/useDevice.js";import{Accordion as d}from"../../../shared/ui/accordion/Accordion.js";import{Icon as p}from"../../../shared/ui/icon/Icon.js";const b=({groupLabel:s,links:n,mobileAccordionProps:t,classes:o})=>{const{isMobile:a}=c();return i("div",{className:r("flex flex-col gap-2",o?.columnGroup),children:[!a&&i(l,{children:[e("h5",{className:r("mob-body-medium-l text-color-dark desktop:desk-body-medium-l",o?.columnGroupHeading),children:s}),e(m,{links:n,classes:o?.linksList},"desktop")]}),a&&e(d,{defaultOpen:!0,label:s,icon:e(p,{name:"arrows/arrowRight",className:r("rotate-90 transition-transform group-data-[state=open]:-rotate-90")}),...t,classes:{...t?.classes,header:{trigger:r("p-0 bg-color-blue-grey-100",t?.classes?.header?.trigger)},contentInner:r("py-2 px-4",t?.classes?.contentInner)},children:e(m,{links:n,classes:o?.linksList},"mobile")})]})};export{b as ColumnGroup};
1
+ import{jsxs as m,jsx as e,Fragment as l}from"react/jsx-runtime";import{LinksList as a}from"./LinksList.js";import{cn as r}from"../../../shared/utils/cn.js";import{pushToDlAccordion as c}from"../../../shared/dataLayers/utils.js";import{useDevice as d}from"../../../shared/hooks/useDevice.js";import{Accordion as p}from"../../../shared/ui/accordion/Accordion.js";import{Icon as u}from"../../../shared/ui/icon/Icon.js";const D=({groupLabel:o,links:s,mobileAccordionProps:t,classes:n})=>{const{isMobile:i}=d();return m("div",{className:r("flex flex-col gap-2",n?.columnGroup),children:[!i&&m(l,{children:[e("h5",{className:r("mob-body-medium-l text-color-dark desktop:desk-body-medium-l",n?.columnGroupHeading),children:o}),e(a,{links:s,classes:n?.linksList},"desktop")]}),i&&e(p,{onPointerDown:()=>c(o,o,"interLinking"),defaultOpen:!0,label:o,icon:e(u,{name:"arrows/arrowRight",className:r("rotate-90 transition-transform group-data-[state=open]:-rotate-90")}),...t,classes:{...t?.classes,header:{trigger:r("p-0 bg-color-blue-grey-100",t?.classes?.header?.trigger)},contentInner:r("py-2 px-4",t?.classes?.contentInner)},children:e(a,{links:s,classes:n?.linksList},"mobile")})]})};export{D as ColumnGroup};
2
2
  //# sourceMappingURL=ColumnGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnGroup.js","sources":["../../../../../lib/widgets/interLinking/ui/ColumnGroup.tsx"],"sourcesContent":["import type { Group } from '../model/types'\nimport { LinksList, type LinksListClasses } from './LinksList'\nimport { useDevice } from '$/shared/hooks'\nimport { Accordion, type AccordionProps, Icon } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\nexport type ColumnGroupClasses = {\n columnGroup?: string\n columnGroupHeading?: string\n linksList?: LinksListClasses\n}\n\nexport interface ColumnGroupProps extends Group {\n mobileAccordionProps?: AccordionProps\n classes?: ColumnGroupClasses\n}\n\nexport const ColumnGroup = ({ groupLabel, links, mobileAccordionProps, classes }: ColumnGroupProps) => {\n const { isMobile } = useDevice()\n\n return (\n <div className={cn('flex flex-col gap-2', classes?.columnGroup)}>\n {!isMobile && (\n <>\n <h5 className={cn('mob-body-medium-l text-color-dark desktop:desk-body-medium-l', classes?.columnGroupHeading)}>\n {groupLabel}\n </h5>\n <LinksList key='desktop' links={links} classes={classes?.linksList} />\n </>\n )}\n\n {isMobile && (\n <Accordion\n defaultOpen\n label={groupLabel}\n icon={\n <Icon name='arrows/arrowRight' className={cn('rotate-90 transition-transform group-data-[state=open]:-rotate-90')} />\n }\n {...mobileAccordionProps}\n classes={{\n ...mobileAccordionProps?.classes,\n header: {\n trigger: cn('p-0 bg-color-blue-grey-100', mobileAccordionProps?.classes?.header?.trigger)\n },\n contentInner: cn('py-2 px-4', mobileAccordionProps?.classes?.contentInner)\n }}\n >\n <LinksList key='mobile' links={links} classes={classes?.linksList} />\n </Accordion>\n )}\n </div>\n )\n}\n"],"names":["ColumnGroup","groupLabel","links","mobileAccordionProps","classes","isMobile","useDevice","cn","jsxs","Fragment","jsx","LinksList","Accordion","Icon"],"mappings":"wVAiBO,MAAMA,EAAc,CAAC,CAAE,WAAAC,EAAY,MAAAC,EAAO,qBAAAC,EAAsB,QAAAC,KAAgC,CACrG,KAAM,CAAE,SAAAC,CAAA,EAAaC,EAAA,EAErB,SACG,MAAA,CAAI,UAAWC,EAAG,sBAAuBH,GAAS,WAAW,EAC3D,SAAA,CAAA,CAACC,GACAG,EAAAC,EAAA,CACE,SAAA,CAAAC,EAAC,MAAG,UAAWH,EAAG,+DAAgEH,GAAS,kBAAkB,EAC1G,SAAAH,EACH,IACCU,EAAA,CAAwB,MAAAT,EAAc,QAASE,GAAS,WAA1C,SAAqD,CAAA,EACtE,EAGDC,GACCK,EAACE,EAAA,CACC,YAAW,GACX,MAAOX,EACP,OACGY,EAAA,CAAK,KAAK,oBAAoB,UAAWN,EAAG,mEAAmE,EAAG,EAEpH,GAAGJ,EACJ,QAAS,CACP,GAAGA,GAAsB,QACzB,OAAQ,CACN,QAASI,EAAG,6BAA8BJ,GAAsB,SAAS,QAAQ,OAAO,CAAA,EAE1F,aAAcI,EAAG,YAAaJ,GAAsB,SAAS,YAAY,CAAA,EAG3E,WAACQ,EAAA,CAAuB,MAAAT,EAAc,QAASE,GAAS,WAAzC,QAAoD,CAAA,CAAA,CACrE,EAEJ,CAEJ"}
1
+ {"version":3,"file":"ColumnGroup.js","sources":["../../../../../lib/widgets/interLinking/ui/ColumnGroup.tsx"],"sourcesContent":["import { pushToDlAccordion } from '../../../shared/dataLayers'\nimport type { Group } from '../model/types'\nimport { LinksList, type LinksListClasses } from './LinksList'\nimport { useDevice } from '$/shared/hooks'\nimport { Accordion, type AccordionProps, Icon } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\nexport type ColumnGroupClasses = {\n columnGroup?: string\n columnGroupHeading?: string\n linksList?: LinksListClasses\n}\n\nexport interface ColumnGroupProps extends Group {\n mobileAccordionProps?: AccordionProps\n classes?: ColumnGroupClasses\n}\n\nexport const ColumnGroup = ({ groupLabel, links, mobileAccordionProps, classes }: ColumnGroupProps) => {\n const { isMobile } = useDevice()\n\n return (\n <div className={cn('flex flex-col gap-2', classes?.columnGroup)}>\n {!isMobile && (\n <>\n <h5 className={cn('mob-body-medium-l text-color-dark desktop:desk-body-medium-l', classes?.columnGroupHeading)}>\n {groupLabel}\n </h5>\n <LinksList key='desktop' links={links} classes={classes?.linksList} />\n </>\n )}\n\n {isMobile && (\n <Accordion\n onPointerDown={() => pushToDlAccordion(groupLabel, groupLabel, 'interLinking')}\n defaultOpen\n label={groupLabel}\n icon={\n <Icon name='arrows/arrowRight' className={cn('rotate-90 transition-transform group-data-[state=open]:-rotate-90')} />\n }\n {...mobileAccordionProps}\n classes={{\n ...mobileAccordionProps?.classes,\n header: {\n trigger: cn('p-0 bg-color-blue-grey-100', mobileAccordionProps?.classes?.header?.trigger)\n },\n contentInner: cn('py-2 px-4', mobileAccordionProps?.classes?.contentInner)\n }}\n >\n <LinksList key='mobile' links={links} classes={classes?.linksList} />\n </Accordion>\n )}\n </div>\n )\n}\n"],"names":["ColumnGroup","groupLabel","links","mobileAccordionProps","classes","isMobile","useDevice","cn","jsxs","Fragment","jsx","LinksList","Accordion","pushToDlAccordion","Icon"],"mappings":"gaAkBO,MAAMA,EAAc,CAAC,CAAE,WAAAC,EAAY,MAAAC,EAAO,qBAAAC,EAAsB,QAAAC,KAAgC,CACrG,KAAM,CAAE,SAAAC,CAAA,EAAaC,EAAA,EAErB,SACG,MAAA,CAAI,UAAWC,EAAG,sBAAuBH,GAAS,WAAW,EAC3D,SAAA,CAAA,CAACC,GACAG,EAAAC,EAAA,CACE,SAAA,CAAAC,EAAC,MAAG,UAAWH,EAAG,+DAAgEH,GAAS,kBAAkB,EAC1G,SAAAH,EACH,IACCU,EAAA,CAAwB,MAAAT,EAAc,QAASE,GAAS,WAA1C,SAAqD,CAAA,EACtE,EAGDC,GACCK,EAACE,EAAA,CACC,cAAe,IAAMC,EAAkBZ,EAAYA,EAAY,cAAc,EAC7E,YAAW,GACX,MAAOA,EACP,OACGa,EAAA,CAAK,KAAK,oBAAoB,UAAWP,EAAG,mEAAmE,EAAG,EAEpH,GAAGJ,EACJ,QAAS,CACP,GAAGA,GAAsB,QACzB,OAAQ,CACN,QAASI,EAAG,6BAA8BJ,GAAsB,SAAS,QAAQ,OAAO,CAAA,EAE1F,aAAcI,EAAG,YAAaJ,GAAsB,SAAS,YAAY,CAAA,EAG3E,WAACQ,EAAA,CAAuB,MAAAT,EAAc,QAASE,GAAS,WAAzC,QAAoD,CAAA,CAAA,CACrE,EAEJ,CAEJ"}
@@ -1,2 +1,2 @@
1
- import{jsx as o}from"react/jsx-runtime";import{cn as r}from"../../../shared/utils/cn.js";import{CustomLink as m}from"../../../shared/ui/customLink/CustomLink.js";const f=({links:e,classes:n})=>o("nav",{className:r("flex flex-col gap-1",n?.linksWrapper),children:e?.map(({path:i,label:t,...l})=>o(m,{classes:{link:r(n?.linkText),icon:r(n?.linkIcon)},intent:"dark",href:i,...l,children:t},i))});export{f as LinksList};
1
+ import{jsx as t}from"react/jsx-runtime";import{cn as r}from"../../../shared/utils/cn.js";import{CustomLink as k}from"../../../shared/ui/customLink/CustomLink.js";import{pushToDlLink as l}from"../../../shared/dataLayers/utils.js";const x=({links:e,classes:n})=>t("nav",{className:r("flex flex-col gap-1",n?.linksWrapper),children:e?.map(({path:i,label:o,...m})=>t(k,{onPointerDown:()=>l(o,i,"interLinking"),classes:{link:r(n?.linkText),icon:r(n?.linkIcon)},intent:"dark",href:i,...m,children:o},i))});export{x as LinksList};
2
2
  //# sourceMappingURL=LinksList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinksList.js","sources":["../../../../../lib/widgets/interLinking/ui/LinksList.tsx"],"sourcesContent":["import type { Link } from '../model/types'\nimport { CustomLink } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\nexport type LinksListClasses = {\n linksWrapper?: string\n linkText?: string\n linkIcon?: string\n}\n\nexport interface LinksListProps {\n links: Link[]\n classes?: LinksListClasses\n}\n\nexport const LinksList = ({ links, classes }: LinksListProps) => {\n return (\n <nav className={cn('flex flex-col gap-1', classes?.linksWrapper)}>\n {links?.map(({ path, label, ...rest }) => (\n <CustomLink\n classes={{\n link: cn(classes?.linkText),\n icon: cn(classes?.linkIcon)\n }}\n intent='dark'\n key={path}\n href={path}\n {...rest}\n >\n {label}\n </CustomLink>\n ))}\n </nav>\n )\n}\n"],"names":["LinksList","links","classes","cn","path","label","rest","jsx","CustomLink"],"mappings":"kKAeO,MAAMA,EAAY,CAAC,CAAE,MAAAC,EAAO,QAAAC,OAE9B,MAAA,CAAI,UAAWC,EAAG,sBAAuBD,GAAS,YAAY,EAC5D,SAAAD,GAAO,IAAI,CAAC,CAAE,KAAAG,EAAM,MAAAC,EAAO,GAAGC,KAC7BC,EAACC,EAAA,CACC,QAAS,CACP,KAAML,EAAGD,GAAS,QAAQ,EAC1B,KAAMC,EAAGD,GAAS,QAAQ,CAAA,EAE5B,OAAO,OAEP,KAAME,EACL,GAAGE,EAEH,SAAAD,CAAA,EAJID,CAAA,CAMR,EACH"}
1
+ {"version":3,"file":"LinksList.js","sources":["../../../../../lib/widgets/interLinking/ui/LinksList.tsx"],"sourcesContent":["import { pushToDlLink } from '../../../shared/dataLayers'\nimport type { Link } from '../model/types'\nimport { CustomLink } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\nexport type LinksListClasses = {\n linksWrapper?: string\n linkText?: string\n linkIcon?: string\n}\n\nexport interface LinksListProps {\n links: Link[]\n classes?: LinksListClasses\n}\n\nexport const LinksList = ({ links, classes }: LinksListProps) => {\n return (\n <nav className={cn('flex flex-col gap-1', classes?.linksWrapper)}>\n {links?.map(({ path, label, ...rest }) => (\n <CustomLink\n onPointerDown={() => pushToDlLink(label, path, 'interLinking')}\n classes={{\n link: cn(classes?.linkText),\n icon: cn(classes?.linkIcon)\n }}\n intent='dark'\n key={path}\n href={path}\n {...rest}\n >\n {label}\n </CustomLink>\n ))}\n </nav>\n )\n}\n"],"names":["LinksList","links","classes","cn","path","label","rest","jsx","CustomLink","pushToDlLink"],"mappings":"qOAgBO,MAAMA,EAAY,CAAC,CAAE,MAAAC,EAAO,QAAAC,OAE9B,MAAA,CAAI,UAAWC,EAAG,sBAAuBD,GAAS,YAAY,EAC5D,SAAAD,GAAO,IAAI,CAAC,CAAE,KAAAG,EAAM,MAAAC,EAAO,GAAGC,KAC7BC,EAACC,EAAA,CACC,cAAe,IAAMC,EAAaJ,EAAOD,EAAM,cAAc,EAC7D,QAAS,CACP,KAAMD,EAAGD,GAAS,QAAQ,EAC1B,KAAMC,EAAGD,GAAS,QAAQ,CAAA,EAE5B,OAAO,OAEP,KAAME,EACL,GAAGE,EAEH,SAAAD,CAAA,EAJID,CAAA,CAMR,EACH"}
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as l}from"react/jsx-runtime";import{containerImgConfig as m}from"./model/cva.js";import{cn as r}from"../../shared/utils/cn.js";import{Title as i}from"./ui/Title.js";import{TextList as k}from"./ui/TextList.js";import{ResponsiveContainer as u}from"../../shared/ui/responsiveContainer/ResponsiveContainer.js";import{ButtonWithHandlers as h}from"../buttonWithHandlers/ButtonWithHandlers.js";const v=({headline:s,buttonConfig:n,intent:t="twoItems",details:p,images:d,backgroundColor:c,classes:o})=>{const a=t==="fourItems",f=t==="twoItems";return e("section",{id:"longBanner","data-test-id":"longBanner",className:r(o?.root),children:l(u,{className:r(o?.container),children:[f&&e(i,{intent:t,headline:s}),l("div",{className:r("bg-banner-skyblue-100 px-6 pb-8 pt-6 desktop:flex desktop:flex-row-reverse desktop:justify-between desktop:px-0 desktop:py-0 desktop:pl-12",o?.contentContainer),style:{backgroundColor:c??"#f4f8fe"},children:[a&&e(i,{intent:t,headline:s,desktopHidden:!0}),e("div",{className:r("mobile:hidden",m({intent:t,withButton:n?.enabled}),o?.imgContainer),children:e("img",{className:"h-full object-contain",src:d?.desktop,alt:d?.alt})}),e("div",{className:r("desktop:hidden",m({intent:t,withButton:n?.enabled}),o?.imgContainer),children:e("img",{className:"h-full object-contain",src:d?.mobile,alt:d?.alt})}),l("div",{className:r("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10",o?.textWithBtnContainer),children:[a&&e(i,{intent:t,headline:s,mobileHidden:!0}),e(k,{details:p,intent:t,withButton:n?.enabled??!1}),n?.enabled&&n&&e(h,{className:r("w-full px-4 desktop:w-max",o?.button),size:"lg",intent:"secondary",...n.buttonContent})]})]})]})})};export{v as LongBanner,v as default};
1
+ import{jsx as e,jsxs as d}from"react/jsx-runtime";import{containerImgConfig as m}from"./model/cva.js";import{cn as n}from"../../shared/utils/cn.js";import{Title as i}from"./ui/Title.js";import{TextList as k}from"./ui/TextList.js";import{ResponsiveContainer as u}from"../../shared/ui/responsiveContainer/ResponsiveContainer.js";import{ButtonWithHandlers as h}from"../buttonWithHandlers/ButtonWithHandlers.js";import{pushToDlButton as x}from"../../shared/dataLayers/utils.js";const g=({headline:l,buttonConfig:o,intent:t="twoItems",details:p,images:s,backgroundColor:c,classes:r})=>{const a=t==="fourItems",f=t==="twoItems";return e("section",{id:"longBanner","data-test-id":"longBanner",className:n(r?.root),children:d(u,{className:n(r?.container),children:[f&&e(i,{intent:t,headline:l}),d("div",{className:n("bg-banner-skyblue-100 px-6 pb-8 pt-6 desktop:flex desktop:flex-row-reverse desktop:justify-between desktop:px-0 desktop:py-0 desktop:pl-12",r?.contentContainer),style:{backgroundColor:c??"#f4f8fe"},children:[a&&e(i,{intent:t,headline:l,desktopHidden:!0}),e("div",{className:n("mobile:hidden",m({intent:t,withButton:o?.enabled}),r?.imgContainer),children:e("img",{className:"h-full object-contain",src:s?.desktop,alt:s?.alt})}),e("div",{className:n("desktop:hidden",m({intent:t,withButton:o?.enabled}),r?.imgContainer),children:e("img",{className:"h-full object-contain",src:s?.mobile,alt:s?.alt})}),d("div",{className:n("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10",r?.textWithBtnContainer),children:[a&&e(i,{intent:t,headline:l,mobileHidden:!0}),e(k,{details:p,intent:t,withButton:o?.enabled??!1}),o?.enabled&&o&&e(h,{onPointerDown:()=>x(o?.buttonContent?.children,l,"longBanner"),className:n("w-full px-4 desktop:w-max",r?.button),size:"lg",intent:"secondary",...o.buttonContent})]})]})]})})};export{g as LongBanner,g as default};
2
2
  //# sourceMappingURL=LongBanner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LongBanner.js","sources":["../../../../lib/widgets/longBanner/LongBanner.tsx"],"sourcesContent":["import { type ReactElement } from 'react'\nimport { type ImagesPrimitive } from '../../shared/types/shared-types'\nimport { ButtonWithHandlers } from '../buttonWithHandlers'\nimport { containerImgConfig } from './model/cva'\nimport { type ButtonConfig, type Details, type LongBannerClasses, type LongBannerConfig } from './model/types'\nimport { TextList, Title } from './ui'\nimport { ResponsiveContainer } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\nexport interface LongBannerProps<Enabled extends boolean> extends LongBannerConfig {\n headline: string | ReactElement\n details: Details<Enabled>[]\n intent?: 'twoItems' | 'fourItems'\n buttonConfig?: ButtonConfig\n images: ImagesPrimitive\n backgroundColor?: string\n classes?: LongBannerClasses\n}\n\nexport const LongBanner = <Enabled extends boolean>({\n headline,\n buttonConfig,\n intent = 'twoItems',\n details,\n images,\n backgroundColor,\n classes\n}: LongBannerProps<Enabled>) => {\n const isFourItems = intent === 'fourItems'\n const isTwoItems = intent === 'twoItems'\n\n return (\n <section id='longBanner' data-test-id='longBanner' className={cn(classes?.root)}>\n <ResponsiveContainer className={cn(classes?.container)}>\n {isTwoItems && <Title intent={intent} headline={headline} />}\n\n <div\n className={cn(\n 'bg-banner-skyblue-100 px-6 pb-8 pt-6 desktop:flex desktop:flex-row-reverse desktop:justify-between desktop:px-0 desktop:py-0 desktop:pl-12',\n classes?.contentContainer\n )}\n style={{ backgroundColor: backgroundColor ?? '#f4f8fe' }}\n >\n {isFourItems && <Title intent={intent} headline={headline} desktopHidden={true} />}\n <div\n className={cn(\n 'mobile:hidden',\n containerImgConfig({ intent, withButton: buttonConfig?.enabled }),\n classes?.imgContainer\n )}\n >\n <img className='h-full object-contain' src={images?.desktop} alt={images?.alt} />\n </div>\n <div\n className={cn(\n 'desktop:hidden',\n containerImgConfig({ intent, withButton: buttonConfig?.enabled }),\n classes?.imgContainer\n )}\n >\n <img className='h-full object-contain' src={images?.mobile} alt={images?.alt} />\n </div>\n <div\n className={cn('desktop:flex desktop:flex-col desktop:justify-center desktop:py-10', classes?.textWithBtnContainer)}\n >\n {isFourItems && <Title intent={intent} headline={headline} mobileHidden={true} />}\n <TextList details={details} intent={intent} withButton={buttonConfig?.enabled ?? false} />\n {buttonConfig?.enabled && buttonConfig && (\n <ButtonWithHandlers\n className={cn('w-full px-4 desktop:w-max', classes?.button)}\n size='lg'\n intent='secondary'\n {...buttonConfig.buttonContent}\n />\n )}\n </div>\n </div>\n </ResponsiveContainer>\n </section>\n )\n}\n\nexport default LongBanner\n"],"names":["LongBanner","headline","buttonConfig","intent","details","images","backgroundColor","classes","isFourItems","isTwoItems","cn","jsxs","ResponsiveContainer","jsx","Title","containerImgConfig","TextList","ButtonWithHandlers"],"mappings":"wZAmBO,MAAMA,EAAa,CAA0B,CAClD,SAAAC,EACA,aAAAC,EACA,OAAAC,EAAS,WACT,QAAAC,EACA,OAAAC,EACA,gBAAAC,EACA,QAAAC,CACF,IAAgC,CAC9B,MAAMC,EAAcL,IAAW,YACzBM,EAAaN,IAAW,WAE9B,SACG,UAAA,CAAQ,GAAG,aAAa,eAAa,aAAa,UAAWO,EAAGH,GAAS,IAAI,EAC5E,SAAAI,EAACC,EAAA,CAAoB,UAAWF,EAAGH,GAAS,SAAS,EAClD,SAAA,CAAAE,GAAcI,EAACC,EAAA,CAAM,OAAAX,EAAgB,SAAAF,CAAA,CAAoB,EAE1DU,EAAC,MAAA,CACC,UAAWD,EACT,6IACAH,GAAS,gBAAA,EAEX,MAAO,CAAE,gBAAiBD,GAAmB,SAAA,EAE5C,SAAA,CAAAE,GAAeK,EAACC,EAAA,CAAM,OAAAX,EAAgB,SAAAF,EAAoB,cAAe,GAAM,EAChFY,EAAC,MAAA,CACC,UAAWH,EACT,gBACAK,EAAmB,CAAE,OAAAZ,EAAQ,WAAYD,GAAc,QAAS,EAChEK,GAAS,YAAA,EAGX,SAAAM,EAAC,OAAI,UAAU,wBAAwB,IAAKR,GAAQ,QAAS,IAAKA,GAAQ,GAAA,CAAK,CAAA,CAAA,EAEjFQ,EAAC,MAAA,CACC,UAAWH,EACT,iBACAK,EAAmB,CAAE,OAAAZ,EAAQ,WAAYD,GAAc,QAAS,EAChEK,GAAS,YAAA,EAGX,SAAAM,EAAC,OAAI,UAAU,wBAAwB,IAAKR,GAAQ,OAAQ,IAAKA,GAAQ,GAAA,CAAK,CAAA,CAAA,EAEhFM,EAAC,MAAA,CACC,UAAWD,EAAG,qEAAsEH,GAAS,oBAAoB,EAEhH,SAAA,CAAAC,GAAeK,EAACC,EAAA,CAAM,OAAAX,EAAgB,SAAAF,EAAoB,aAAc,GAAM,IAC9Ee,EAAA,CAAS,QAAAZ,EAAkB,OAAAD,EAAgB,WAAYD,GAAc,SAAW,GAAO,EACvFA,GAAc,SAAWA,GACxBW,EAACI,EAAA,CACC,UAAWP,EAAG,4BAA6BH,GAAS,MAAM,EAC1D,KAAK,KACL,OAAO,YACN,GAAGL,EAAa,aAAA,CAAA,CACnB,CAAA,CAAA,CAEJ,CAAA,CAAA,CACF,CAAA,CACF,CAAA,CACF,CAEJ"}
1
+ {"version":3,"file":"LongBanner.js","sources":["../../../../lib/widgets/longBanner/LongBanner.tsx"],"sourcesContent":["import { pushToDlButton } from '../../shared/dataLayers'\nimport { type ImagesPrimitive } from '../../shared/types/shared-types'\nimport { ButtonWithHandlers } from '../buttonWithHandlers'\nimport { containerImgConfig } from './model/cva'\nimport { type ButtonConfig, type Details, type LongBannerClasses, type LongBannerConfig } from './model/types'\nimport { TextList, Title } from './ui'\nimport { ResponsiveContainer } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\nexport interface LongBannerProps<Enabled extends boolean> extends LongBannerConfig {\n headline: string\n details: Details<Enabled>[]\n intent?: 'twoItems' | 'fourItems'\n buttonConfig?: ButtonConfig\n images: ImagesPrimitive\n backgroundColor?: string\n classes?: LongBannerClasses\n}\n\nexport const LongBanner = <Enabled extends boolean>({\n headline,\n buttonConfig,\n intent = 'twoItems',\n details,\n images,\n backgroundColor,\n classes\n}: LongBannerProps<Enabled>) => {\n const isFourItems = intent === 'fourItems'\n const isTwoItems = intent === 'twoItems'\n\n return (\n <section id='longBanner' data-test-id='longBanner' className={cn(classes?.root)}>\n <ResponsiveContainer className={cn(classes?.container)}>\n {isTwoItems && <Title intent={intent} headline={headline} />}\n\n <div\n className={cn(\n 'bg-banner-skyblue-100 px-6 pb-8 pt-6 desktop:flex desktop:flex-row-reverse desktop:justify-between desktop:px-0 desktop:py-0 desktop:pl-12',\n classes?.contentContainer\n )}\n style={{ backgroundColor: backgroundColor ?? '#f4f8fe' }}\n >\n {isFourItems && <Title intent={intent} headline={headline} desktopHidden={true} />}\n <div\n className={cn(\n 'mobile:hidden',\n containerImgConfig({ intent, withButton: buttonConfig?.enabled }),\n classes?.imgContainer\n )}\n >\n <img className='h-full object-contain' src={images?.desktop} alt={images?.alt} />\n </div>\n <div\n className={cn(\n 'desktop:hidden',\n containerImgConfig({ intent, withButton: buttonConfig?.enabled }),\n classes?.imgContainer\n )}\n >\n <img className='h-full object-contain' src={images?.mobile} alt={images?.alt} />\n </div>\n <div\n className={cn('desktop:flex desktop:flex-col desktop:justify-center desktop:py-10', classes?.textWithBtnContainer)}\n >\n {isFourItems && <Title intent={intent} headline={headline} mobileHidden={true} />}\n <TextList details={details} intent={intent} withButton={buttonConfig?.enabled ?? false} />\n {buttonConfig?.enabled && buttonConfig && (\n <ButtonWithHandlers\n onPointerDown={() => pushToDlButton(buttonConfig?.buttonContent?.children as string, headline, 'longBanner')}\n className={cn('w-full px-4 desktop:w-max', classes?.button)}\n size='lg'\n intent='secondary'\n {...buttonConfig.buttonContent}\n />\n )}\n </div>\n </div>\n </ResponsiveContainer>\n </section>\n )\n}\n\nexport default LongBanner\n"],"names":["LongBanner","headline","buttonConfig","intent","details","images","backgroundColor","classes","isFourItems","isTwoItems","cn","jsxs","ResponsiveContainer","jsx","Title","containerImgConfig","TextList","ButtonWithHandlers","pushToDlButton"],"mappings":"0dAmBO,MAAMA,EAAa,CAA0B,CAClD,SAAAC,EACA,aAAAC,EACA,OAAAC,EAAS,WACT,QAAAC,EACA,OAAAC,EACA,gBAAAC,EACA,QAAAC,CACF,IAAgC,CAC9B,MAAMC,EAAcL,IAAW,YACzBM,EAAaN,IAAW,WAE9B,SACG,UAAA,CAAQ,GAAG,aAAa,eAAa,aAAa,UAAWO,EAAGH,GAAS,IAAI,EAC5E,SAAAI,EAACC,EAAA,CAAoB,UAAWF,EAAGH,GAAS,SAAS,EAClD,SAAA,CAAAE,GAAcI,EAACC,EAAA,CAAM,OAAAX,EAAgB,SAAAF,CAAA,CAAoB,EAE1DU,EAAC,MAAA,CACC,UAAWD,EACT,6IACAH,GAAS,gBAAA,EAEX,MAAO,CAAE,gBAAiBD,GAAmB,SAAA,EAE5C,SAAA,CAAAE,GAAeK,EAACC,EAAA,CAAM,OAAAX,EAAgB,SAAAF,EAAoB,cAAe,GAAM,EAChFY,EAAC,MAAA,CACC,UAAWH,EACT,gBACAK,EAAmB,CAAE,OAAAZ,EAAQ,WAAYD,GAAc,QAAS,EAChEK,GAAS,YAAA,EAGX,SAAAM,EAAC,OAAI,UAAU,wBAAwB,IAAKR,GAAQ,QAAS,IAAKA,GAAQ,GAAA,CAAK,CAAA,CAAA,EAEjFQ,EAAC,MAAA,CACC,UAAWH,EACT,iBACAK,EAAmB,CAAE,OAAAZ,EAAQ,WAAYD,GAAc,QAAS,EAChEK,GAAS,YAAA,EAGX,SAAAM,EAAC,OAAI,UAAU,wBAAwB,IAAKR,GAAQ,OAAQ,IAAKA,GAAQ,GAAA,CAAK,CAAA,CAAA,EAEhFM,EAAC,MAAA,CACC,UAAWD,EAAG,qEAAsEH,GAAS,oBAAoB,EAEhH,SAAA,CAAAC,GAAeK,EAACC,EAAA,CAAM,OAAAX,EAAgB,SAAAF,EAAoB,aAAc,GAAM,IAC9Ee,EAAA,CAAS,QAAAZ,EAAkB,OAAAD,EAAgB,WAAYD,GAAc,SAAW,GAAO,EACvFA,GAAc,SAAWA,GACxBW,EAACI,EAAA,CACC,cAAe,IAAMC,EAAehB,GAAc,eAAe,SAAoBD,EAAU,YAAY,EAC3G,UAAWS,EAAG,4BAA6BH,GAAS,MAAM,EAC1D,KAAK,KACL,OAAO,YACN,GAAGL,EAAa,aAAA,CAAA,CACnB,CAAA,CAAA,CAEJ,CAAA,CAAA,CACF,CAAA,CACF,CAAA,CACF,CAEJ"}
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{itemConfig as n}from"../model/cva.js";import{cn as r}from"../../../shared/utils/cn.js";import{Popover as a}from"../../../shared/ui/popover/Popover.js";import{Icon as c}from"../../../shared/ui/icon/Icon.js";const h=({data:l,intent:m})=>{const{title:i,description:s,popover:o={enabled:!1}}=l;return e("li",{className:r(n({intent:m})),children:t("div",{className:"desktop:max-w-[264px]",children:[t("div",{className:r("mb-2 flex items-center gap-2"),children:[e("h4",{className:r("mob-title-bold-m text-color-dark"),children:i}),o.enabled&&e(a,{triggerElement:e(c,{className:r("size-5 text-icon-blue-grey-600"),name:"info/helpCircle"}),children:o.text})]}),e("div",{className:r("mob-body-regular-l text-color-secondary"),dangerouslySetInnerHTML:{__html:s}})]})})};export{h as TextItem};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{itemConfig as s}from"../model/cva.js";import{cn as o}from"../../../shared/utils/cn.js";import{pushToDlTooltip as a}from"../../../shared/dataLayers/utils.js";import{Popover as c}from"../../../shared/ui/popover/Popover.js";import{Icon as d}from"../../../shared/ui/icon/Icon.js";const N=({data:l,intent:i})=>{const{title:m,description:n,popover:r={enabled:!1}}=l;return e("li",{className:o(s({intent:i})),children:t("div",{className:"desktop:max-w-[264px]",children:[t("div",{className:o("mb-2 flex items-center gap-2"),children:[e("h4",{className:o("mob-title-bold-m text-color-dark"),children:m}),r.enabled&&e(c,{onPointerDown:()=>a(r.text,"longBanner"),triggerElement:e(d,{className:o("size-5 text-icon-blue-grey-600"),name:"info/helpCircle"}),children:r.text})]}),e("div",{className:o("mob-body-regular-l text-color-secondary"),dangerouslySetInnerHTML:{__html:n}})]})})};export{N as TextItem};
2
2
  //# sourceMappingURL=TextItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextItem.js","sources":["../../../../../lib/widgets/longBanner/ui/TextItem.tsx"],"sourcesContent":["import { itemConfig } from '../model/cva'\nimport { type TextItemProps } from '../model/types'\nimport { Icon, Popover } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\nexport const TextItem = <Enabled extends boolean>({ data, intent }: TextItemProps<Enabled>) => {\n const {\n title,\n description,\n popover = {\n enabled: false\n }\n } = data\n return (\n <li className={cn(itemConfig({ intent }))}>\n <div className='desktop:max-w-[264px]'>\n <div className={cn('mb-2 flex items-center gap-2')}>\n <h4 className={cn('mob-title-bold-m text-color-dark')}>{title}</h4>\n {popover.enabled && (\n <Popover triggerElement={<Icon className={cn('size-5 text-icon-blue-grey-600')} name='info/helpCircle' />}>\n {popover.text}\n </Popover>\n )}\n </div>\n\n <div className={cn('mob-body-regular-l text-color-secondary')} dangerouslySetInnerHTML={{ __html: description }} />\n </div>\n </li>\n )\n}\n"],"names":["TextItem","data","intent","title","description","popover","jsx","cn","itemConfig","jsxs","Popover","Icon"],"mappings":"uQAKO,MAAMA,EAAW,CAA0B,CAAE,KAAAC,EAAM,OAAAC,KAAqC,CAC7F,KAAM,CACJ,MAAAC,EACA,YAAAC,EACA,QAAAC,EAAU,CACR,QAAS,EAAA,CACX,EACEJ,EACJ,OACEK,EAAC,KAAA,CAAG,UAAWC,EAAGC,EAAW,CAAE,OAAAN,CAAA,CAAQ,CAAC,EACtC,SAAAO,EAAC,MAAA,CAAI,UAAU,wBACb,SAAA,CAAAA,EAAC,MAAA,CAAI,UAAWF,EAAG,8BAA8B,EAC/C,SAAA,CAAAD,EAAC,KAAA,CAAG,UAAWC,EAAG,kCAAkC,EAAI,SAAAJ,EAAM,EAC7DE,EAAQ,SACPC,EAACI,EAAA,CAAQ,eAAgBJ,EAACK,EAAA,CAAK,UAAWJ,EAAG,gCAAgC,EAAG,KAAK,iBAAA,CAAkB,EACpG,WAAQ,IAAA,CACX,CAAA,EAEJ,EAEAD,EAAC,MAAA,CAAI,UAAWC,EAAG,yCAAyC,EAAG,wBAAyB,CAAE,OAAQH,EAAY,CAAG,CAAA,CAAA,CACnH,CAAA,CACF,CAEJ"}
1
+ {"version":3,"file":"TextItem.js","sources":["../../../../../lib/widgets/longBanner/ui/TextItem.tsx"],"sourcesContent":["import { pushToDlTooltip } from '../../../shared/dataLayers'\nimport { itemConfig } from '../model/cva'\nimport { type TextItemProps } from '../model/types'\nimport { Icon, Popover } from '$/shared/ui'\nimport { cn } from '$/shared/utils'\n\nexport const TextItem = <Enabled extends boolean>({ data, intent }: TextItemProps<Enabled>) => {\n const {\n title,\n description,\n popover = {\n enabled: false\n }\n } = data\n return (\n <li className={cn(itemConfig({ intent }))}>\n <div className='desktop:max-w-[264px]'>\n <div className={cn('mb-2 flex items-center gap-2')}>\n <h4 className={cn('mob-title-bold-m text-color-dark')}>{title}</h4>\n {popover.enabled && (\n <Popover\n onPointerDown={() => pushToDlTooltip(popover.text, 'longBanner')}\n triggerElement={<Icon className={cn('size-5 text-icon-blue-grey-600')} name='info/helpCircle' />}\n >\n {popover.text}\n </Popover>\n )}\n </div>\n\n <div className={cn('mob-body-regular-l text-color-secondary')} dangerouslySetInnerHTML={{ __html: description }} />\n </div>\n </li>\n )\n}\n"],"names":["TextItem","data","intent","title","description","popover","jsx","cn","itemConfig","jsxs","Popover","pushToDlTooltip","Icon"],"mappings":"6UAMO,MAAMA,EAAW,CAA0B,CAAE,KAAAC,EAAM,OAAAC,KAAqC,CAC7F,KAAM,CACJ,MAAAC,EACA,YAAAC,EACA,QAAAC,EAAU,CACR,QAAS,EAAA,CACX,EACEJ,EACJ,OACEK,EAAC,KAAA,CAAG,UAAWC,EAAGC,EAAW,CAAE,OAAAN,CAAA,CAAQ,CAAC,EACtC,SAAAO,EAAC,MAAA,CAAI,UAAU,wBACb,SAAA,CAAAA,EAAC,MAAA,CAAI,UAAWF,EAAG,8BAA8B,EAC/C,SAAA,CAAAD,EAAC,KAAA,CAAG,UAAWC,EAAG,kCAAkC,EAAI,SAAAJ,EAAM,EAC7DE,EAAQ,SACPC,EAACI,EAAA,CACC,cAAe,IAAMC,EAAgBN,EAAQ,KAAM,YAAY,EAC/D,iBAAiBO,EAAA,CAAK,UAAWL,EAAG,gCAAgC,EAAG,KAAK,kBAAkB,EAE7F,SAAAF,EAAQ,IAAA,CAAA,CACX,EAEJ,EAEAC,EAAC,MAAA,CAAI,UAAWC,EAAG,yCAAyC,EAAG,wBAAyB,CAAE,OAAQH,EAAY,CAAG,CAAA,CAAA,CACnH,CAAA,CACF,CAEJ"}