@redneckz/wildless-cms-uni-blocks 0.2.114 → 0.2.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Header/Header.mobile.js +1 -1
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Placeholder/Placeholder.mobile.d.ts +6 -0
- package/dist/components/Placeholder/Placeholder.mobile.js +15 -0
- package/dist/components/Placeholder/Placeholder.mobile.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Header/Header.mobile.js +1 -1
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Placeholder/Placeholder.mobile.d.ts +6 -0
- package/lib/components/Placeholder/Placeholder.mobile.js +13 -0
- package/lib/components/Placeholder/Placeholder.mobile.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +3 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Header/Header.js +1 -1
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +2 -2
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +1 -1
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +2 -2
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/src/components/Header/Header.tsx +1 -1
- package/mobile/src/components/Placeholder/Placeholder.tsx +10 -5
- package/package.json +1 -1
- package/src/components/Header/Header.mobile.tsx +1 -1
- package/src/components/Placeholder/Placeholder.mobile.tsx +35 -0
|
@@ -22,7 +22,7 @@ exports.Header = (0, uni_jsx_1.JSX)(({ className = '', defaultLocation, bgColor
|
|
|
22
22
|
const activeSubItem = (0, findActiveSubItem_1.findActiveSubItem)(router)(subItems);
|
|
23
23
|
const [burgerMenuShow, setBurgerMenuShow] = context.useState(false);
|
|
24
24
|
const toggleBurgerMenu = () => setBurgerMenuShow(!burgerMenuShow);
|
|
25
|
-
return ((0, jsx_runtime_1.jsxs)("header", { className: `${bgColor} ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "container px-4 py-0", children: [(0, jsx_runtime_1.jsx)(HeaderTop_1.HeaderTop, { onClick: toggleBurgerMenu, bgColor: bgColor }), (0, jsx_runtime_1.jsx)("nav", { className: "flex items-center m-0 p-0 overflow-
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)("header", { className: `${bgColor} ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "container px-4 py-0", children: [(0, jsx_runtime_1.jsx)(HeaderTop_1.HeaderTop, { onClick: toggleBurgerMenu, bgColor: bgColor }), (0, jsx_runtime_1.jsx)("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]", children: (0, jsx_runtime_1.jsx)("div", { className: "flex", children: subItems?.map((_, i) => renderSubItem({
|
|
26
26
|
...(0, useLink_1.useLink)({ router, handlerDecorator }, _),
|
|
27
27
|
active: _ === activeSubItem,
|
|
28
28
|
bgColor,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.mobile.js","sourceRoot":"","sources":["../../../src/components/Header/Header.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAC9C,gFAA6E;AAC7E,4EAAyE;AACzE,wEAAqE;AACrE,kEAA+D;AAE/D,mEAAgE;AAEhE,qEAAkE;AAClE,sDAAmD;AACnD,iDAA8C;AAE9C,2CAAwC;AAI3B,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,eAAe,EAAE,OAAO,GAAG,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,EAAE;IAC9F,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MA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,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,gBAAgB,EACzB,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,YAEhC,uBAAC,qBAAS,IACR,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,IAAA,qCAAiB,EAAC,QAAQ,CAAC,EAC3C,SAAS,EAAC,oBAAoB,GAC9B,GACW,CAChB,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,IAAkB,EAAE,CAAS,EAAE,EAAE,CAAC,CACvD,uBAAC,uBAAU,IAAiB,SAAS,EAAC,gCAAgC,KAAK,IAAI,IAA9D,MAAM,CAAC,CAAC,CAAC,CAAyD,CACpF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { PlaceholderContent } from './PlaceholderContent';
|
|
3
|
+
export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<PlaceholderProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.Placeholder = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const Tile_1 = require("../Tile/Tile");
|
|
6
|
+
const GOLDEN_RATIO = 1.618;
|
|
7
|
+
exports.Placeholder = (0, uni_jsx_1.JSX)(({ className = '', context, title }) => {
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)(Tile_1.Tile, { className: `pr-0 min-h-0 ${className}`, context: context, title: title, description: "\u0411\u043B\u043E\u043A \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u043A\u0435...", children: (0, jsx_runtime_1.jsx)("figure", { className: "m-0", children: renderShimmer() }) }));
|
|
9
|
+
});
|
|
10
|
+
const renderShimmer = (size = 3) => goldenSequence(100, size)
|
|
11
|
+
.map((_) => Math.floor(_))
|
|
12
|
+
.map(renderShimmerItem);
|
|
13
|
+
const renderShimmerItem = (width = 100, index) => ((0, jsx_runtime_1.jsx)("div", { style: { width: `${width}%` }, className: "h-4 mt-2 bg-secondary-light" }, String(index)));
|
|
14
|
+
const goldenSequence = (first, size) => [first].concat(size > 0 ? goldenSequence(first / GOLDEN_RATIO, size - 1) : []);
|
|
15
|
+
//# sourceMappingURL=Placeholder.mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Placeholder.mobile.js","sourceRoot":"","sources":["../../../src/components/Placeholder/Placeholder.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uCAAoC;AAOpC,MAAM,YAAY,GAAG,KAAK,CAAC;AAEd,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;IACtF,OAAO,CACL,uBAAC,WAAI,IACH,SAAS,EAAE,gBAAgB,SAAS,EAAE,EACtC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAC,iGAAsB,YAElC,mCAAQ,SAAS,EAAC,KAAK,YAAE,aAAa,EAAE,GAAU,GAC7C,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,CAAC,IAAI,GAAG,CAAC,EAAE,EAAE,CACjC,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC;KACtB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACzB,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAE5B,MAAM,iBAAiB,GAAG,CAAC,KAAK,GAAG,GAAG,EAAE,KAAa,EAAE,EAAE,CAAC,CACxD,gCAAyB,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,EAAE,EAAE,SAAS,EAAC,6BAA6B,IAArF,MAAM,CAAC,KAAK,CAAC,CAA2E,CACnG,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,IAAY,EAAY,EAAE,CAC/D,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,GAAG,YAAY,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
|
package/lib/common.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import "../fonts/ubuntu/ubuntu.css";[data-theme=pc]{--color-primary-main:66,171,68;--color-primary-hover:36,131,65;--color-primary-active:36,95,52;--color-secondary-hover:216,242,217;--color-secondary-active:197,226,198;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=bc]{--color-primary-main:131,184,62;--color-primary-hover:92,146,29;--color-primary-active:60,94,16;--color-secondary-hover:232,244,217;--color-secondary-active:216,227,202;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=eo]{--color-primary-main:221,182,61;--color-primary-hover:187,151,39;--color-primary-active:126,99,12;--color-secondary-hover:241,236,221;--color-secondary-active:229,222,199;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=eo2]{--color-primary-main:255,204,0;--color-primary-hover:187,151,39;--color-primary-active:126,99,12;--color-secondary-hover:241,236,221;--color-secondary-active:229,222,199;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=eo3]{--color-primary-main:225,186,30;--color-primary-hover:187,151,39;--color-primary-active:126,99,12;--color-secondary-hover:241,236,221;--color-secondary-active:229,222,199;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=eo4]{--color-primary-main:233,191,23;--color-primary-hover:187,151,39;--color-primary-active:126,99,12;--color-secondary-hover:241,236,221;--color-secondary-active:229,222,199;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}.container{margin-left:auto;margin-right:auto;width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.inset-x-0{left:0;right:0}.top-1{top:.25rem}.right-1{right:.25rem}.top-7{top:1.75rem}.right-7{right:1.75rem}.top-0{top:0}.right-0{right:0}.bottom-0{bottom:0}.top-4{top:1rem}.right-4{right:1rem}.left-0{left:0}.top-1\/2{top:50%}.left-8{left:2rem}.left-1{left:.25rem}.-bottom-3{bottom:-.75rem}.top-8{top:2rem}.z-10{z-index:10}.col-span-12{grid-column:span 12/span 12}.col-span-8{grid-column:span 8/span 8}.col-span-4{grid-column:span 4/span 4}.col-span-6{grid-column:span 6/span 6}.m-auto{margin:auto}.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.mx-7{margin-left:1.75rem;margin-right:1.75rem}.my-4{margin-bottom:1rem;margin-top:1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.mb-2{margin-bottom:.5rem}.mb-5{margin-bottom:1.25rem}.mb-2\.5{margin-bottom:.625rem}.mb-4{margin-bottom:1rem}.mt-3{margin-top:.75rem}.mt-\[18px\]{margin-top:18px}.mt-auto{margin-top:auto}.ml-7{margin-left:1.75rem}.mt-4{margin-top:1rem}.mt-9{margin-top:2.25rem}.mt-1\.5{margin-top:.375rem}.mt-1{margin-top:.25rem}.mt-5{margin-top:1.25rem}.mt-2\.5{margin-top:.625rem}.mt-2{margin-top:.5rem}.mb-9{margin-bottom:2.25rem}.mb-\[18px\]{margin-bottom:18px}.mr-6{margin-right:1.5rem}.mr-\[42px\]{margin-right:42px}.mt-\[23px\]{margin-top:23px}.mb-7{margin-bottom:1.75rem}.mb-3{margin-bottom:.75rem}.mr-3{margin-right:.75rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mb-8{margin-bottom:2rem}.mb-6{margin-bottom:1.5rem}.mt-6{margin-top:1.5rem}.mr-8{margin-right:2rem}.ml-auto{margin-left:auto}.mr-5{margin-right:1.25rem}.mr-7{margin-right:1.75rem}.mt-0{margin-top:0}.mb-\[26px\]{margin-bottom:26px}.mr-2\.5{margin-right:.625rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.mt-\[19px\]{margin-top:19px}.mb-3\.5{margin-bottom:.875rem}.mr-1\.5{margin-right:.375rem}.mr-1{margin-right:.25rem}.mb-1{margin-bottom:.25rem}.mb-0\.5{margin-bottom:.125rem}.mb-0{margin-bottom:0}.ml-\[34px\]{margin-left:34px}.ml-\[24px\]{margin-left:24px}.ml-3{margin-left:.75rem}.mr-\[14px\]{margin-right:14px}.mr-auto{margin-right:auto}.ml-px{margin-left:1px}.mt-0\.5{margin-top:.125rem}.ml-0\.5{margin-left:.125rem}.ml-0{margin-left:0}.ml-2\.5{margin-left:.625rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-full{height:100%}.h-\[20px\]{height:20px}.h-12{height:3rem}.h-\[70px\]{height:70px}.h-\[63px\]{height:63px}.h-8{height:2rem}.h-fit{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.h-10{height:2.5rem}.h-\[38px\]{height:38px}.h-\[50px\]{height:50px}.h-\[1px\]{height:1px}.h-\[24px\]{height:24px}.h-\[90px\]{height:90px}.h-\[48px\]{height:48px}.h-4{height:1rem}.h-\[25px\]{height:25px}.h-\[3px\]{height:3px}.h-0\.5{height:.125rem}.h-0{height:0}.h-\[100px\]{height:100px}.h-2{height:.5rem}.h-\[6px\]{height:6px}.h-5{height:1.25rem}.h-\[2px\]{height:2px}.max-h-0{max-height:0}.max-h-6{max-height:1.5rem}.max-h-12{max-height:3rem}.min-h-\[70px\]{min-height:70px}.min-h-\[63px\]{min-height:63px}.min-h-\[32px\]{min-height:32px}.min-h-\[90px\]{min-height:90px}.min-h-\[420px\]{min-height:420px}.min-h-\[50px\]{min-height:50px}.min-h-8{min-height:2rem}.min-h-\[100px\]{min-height:100px}.min-h-\[300px\]{min-height:300px}.min-h-\[320px\]{min-height:320px}.min-h-\[360px\]{min-height:360px}.min-h-2{min-height:.5rem}.min-h-\[6px\]{min-height:6px}.min-h-12{min-height:3rem}.w-\[20px\]{width:20px}.w-full{width:100%}.w-\[70px\]{width:70px}.w-\[84px\]{width:84px}.w-80{width:20rem}.w-\[63px\]{width:63px}.w-\[200px\]{width:200px}.w-8{width:2rem}.w-max{width:-webkit-max-content;width:-moz-max-content;width:max-content}.w-\[75px\]{width:75px}.w-\[280px\]{width:280px}.w-\[38px\]{width:38px}.w-\[364px\]{width:364px}.w-\[260px\]{width:260px}.w-\[24px\]{width:24px}.w-\[125px\]{width:125px}.w-\[50px\]{width:50px}.w-\[33px\]{width:33px}.w-\[90px\]{width:90px}.w-\[48px\]{width:48px}.w-\[25px\]{width:25px}.w-\[2px\]{width:2px}.w-\[100px\]{width:100px}.w-\[276px\]{width:276px}.w-12{width:3rem}.w-\[354px\]{width:354px}.w-4{width:1rem}.w-2{width:.5rem}.w-\[6px\]{width:6px}.w-\[36px\]{width:36px}.w-5{width:1.25rem}.w-\[1280px\]{width:1280px}.w-10{width:2.5rem}.w-auto{width:auto}.min-w-\[70px\]{min-width:70px}.min-w-\[63px\]{min-width:63px}.min-w-\[364px\]{min-width:364px}.min-w-\[260px\]{min-width:260px}.min-w-\[32px\]{min-width:32px}.min-w-\[90px\]{min-width:90px}.min-w-\[600px\]{min-width:600px}.min-w-\[50px\]{min-width:50px}.min-w-\[100px\]{min-width:100px}.min-w-2{min-width:.5rem}.min-w-\[6px\]{min-width:6px}.max-w-\[170px\]{max-width:170px}.max-w-\[600px\]{max-width:600px}.max-w-\[47rem\]{max-width:47rem}.max-w-\[580px\]{max-width:580px}.max-w-\[292px\]{max-width:292px}.max-w-\[308px\]{max-width:308px}.max-w-\[490px\]{max-width:490px}.max-w-\[149px\]{max-width:149px}.flex-none{flex:none}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-\[calc\(50\%-20px\)\]{flex-basis:calc(50% - 20px)}.basis-0{flex-basis:0px}.basis-full{flex-basis:100%}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes progress{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes progress{0%{transform:translateX(-100%)}to{transform:translateX(0)}}.animate-slide{-webkit-animation:progress linear;animation:progress linear}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3\.5{gap:.875rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.gap-4{gap:1rem}.gap-1{gap:.25rem}.gap-\[54px\]{gap:54px}.gap-11{gap:2.75rem}.gap-\[14px\]{gap:14px}.gap-2{gap:.5rem}.gap-6{gap:1.5rem}.gap-\[6px\]{gap:6px}.gap-8{gap:2rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.gap-y-\[26px\]{row-gap:26px}.gap-x-\[101px\]{-moz-column-gap:101px;column-gap:101px}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-x-scroll{overflow-x:scroll}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-3xl{border-radius:1.5rem}.rounded-\[40px\]{border-radius:40px}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-b-md{border-bottom-left-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-tl-lg{border-top-left-radius:.5rem}.border{border-width:1px}.border-0{border-width:0}.border-\[3px\]{border-width:3px}.border-2{border-width:2px}.border-y-0{border-bottom-width:0;border-top-width:0}.border-x-0{border-left-width:0;border-right-width:0}.border-y{border-top-width:1px}.border-b,.border-y{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-t-0{border-top-width:0}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-main-divider{--tw-border-opacity:1;border-color:rgba(235,237,240,var(--tw-border-opacity))}.border-main-stroke{--tw-border-opacity:1;border-color:rgba(201,202,204,var(--tw-border-opacity))}.border-primary-main{--tw-border-opacity:1;border-color:rgba(var(--color-primary-main),var(--tw-border-opacity))}.border-main{--tw-border-opacity:1;border-color:rgba(240,244,240,var(--tw-border-opacity))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-y-main-divider{--tw-border-opacity:1;border-bottom-color:rgba(235,237,240,var(--tw-border-opacity));border-top-color:rgba(235,237,240,var(--tw-border-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-secondary-text{--tw-bg-opacity:1;background-color:rgba(125,126,127,var(--tw-bg-opacity))}.bg-main{--tw-bg-opacity:1;background-color:rgba(240,244,240,var(--tw-bg-opacity))}.bg-secondary-light{--tw-bg-opacity:1;background-color:rgba(245,247,249,var(--tw-bg-opacity))}.bg-primary-main{--tw-bg-opacity:1;background-color:rgba(var(--color-primary-main),var(--tw-bg-opacity))}.bg-main-divider{--tw-bg-opacity:1;background-color:rgba(235,237,240,var(--tw-bg-opacity))}.bg-inherit{background-color:inherit}.bg-white\/30{background-color:hsla(0,0%,100%,.3)}.bg-primary-main\/10{background-color:rgba(var(--color-primary-main),.1)}.bg-secondary-dark{--tw-bg-opacity:1;background-color:rgba(226,228,229,var(--tw-bg-opacity))}.bg-opacity-to-white{background-image:linear-gradient(270deg,#fff 34.89%,hsla(0,0%,100%,0) 92.52%);}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-main-gradient-start{--tw-gradient-from:rgba(var(--color-gradient-from),1);--tw-gradient-to:rgba(var(--color-gradient-from),0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white{--tw-gradient-from:#fff;--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-main-gradient-end{--tw-gradient-to:rgba(var(--color-gradient-to),1)}.to-transparent{--tw-gradient-to:transparent}.p-0{padding:0}.p-\[50px\]{padding:50px}.p-4{padding:1rem}.\!p-0{padding:0!important}.p-12{padding:3rem}.p-10{padding:2.5rem}.p-\[49px\]{padding:49px}.p-9{padding:2.25rem}.p-7{padding:1.75rem}.p-2{padding:.5rem}.p-14{padding:3.5rem}.p-\[12px\]{padding:12px}.p-\[10px\]{padding:10px}.p-\[26px\]{padding:26px}.px-9{padding-left:2.25rem;padding-right:2.25rem}.py-\[9px\]{padding-bottom:9px;padding-top:9px}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-\[14px\]{padding-bottom:14px;padding-top:14px}.px-0{padding-left:0;padding-right:0}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-\[50px\]{padding-bottom:50px;padding-top:50px}.py-\[11px\]{padding-bottom:11px;padding-top:11px}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-7{padding-bottom:1.75rem;padding-top:1.75rem}.py-\[26px\]{padding-bottom:26px;padding-top:26px}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-0{padding-bottom:0;padding-top:0}.px-20{padding-left:5rem;padding-right:5rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.px-\[88px\]{padding-left:88px;padding-right:88px}.py-\[18px\]{padding-bottom:18px;padding-top:18px}.py-4{padding-bottom:1rem;padding-top:1rem}.py-3\.5{padding-bottom:.875rem;padding-top:.875rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pl-4{padding-left:1rem}.pl-12{padding-left:3rem}.pr-\[6\%\]{padding-right:6%}.pr-2\.5{padding-right:.625rem}.pr-2{padding-right:.5rem}.pb-5{padding-bottom:1.25rem}.pb-2{padding-bottom:.5rem}.pl-\[50px\]{padding-left:50px}.pr-\[50px\]{padding-right:50px}.pt-7{padding-top:1.75rem}.pb-\[46px\]{padding-bottom:46px}.pt-6{padding-top:1.5rem}.pr-\[56px\]{padding-right:56px}.pl-11{padding-left:2.75rem}.pt-4{padding-top:1rem}.pt-0{padding-top:0}.pb-0{padding-bottom:0}.pb-4{padding-bottom:1rem}.pr-1{padding-right:.25rem}.pl-0\.5{padding-left:.125rem}.pl-0{padding-left:0}.pb-8{padding-bottom:2rem}.pt-\[3px\]{padding-top:3px}.pb-6{padding-bottom:1.5rem}.pt-\[30px\]{padding-top:30px}.pb-7{padding-bottom:1.75rem}.pt-5{padding-top:1.25rem}.pb-\[5px\]{padding-bottom:5px}.pt-\[5px\]{padding-top:5px}.pr-4{padding-right:1rem}.pl-3{padding-left:.75rem}.pt-10{padding-top:2.5rem}.pb-\[50px\]{padding-bottom:50px}.pr-\[7\.5rem\]{padding-right:7.5rem}.pl-2\.5{padding-left:.625rem}.pt-2\.5{padding-top:.625rem}.pb-1\.5{padding-bottom:.375rem}.pr-\[6\.25rem\]{padding-right:6.25rem}.pl-2{padding-left:.5rem}.pt-2{padding-top:.5rem}.pb-1{padding-bottom:.25rem}.pb-\[2px\]{padding-bottom:2px}.pt-1{padding-top:.25rem}.pl-10{padding-left:2.5rem}.pb-3{padding-bottom:.75rem}.pt-1\.5{padding-top:.375rem}.pl-1{padding-left:.25rem}.pt-0\.5{padding-top:.125rem}.pr-3{padding-right:.75rem}.pr-28{padding-right:7rem}.pr-9{padding-right:2.25rem}.pr-\[4\.75rem\]{padding-right:4.75rem}.pr-\[9\.4rem\]{padding-right:9.4rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-sans{font-family:Ubuntu,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-sm{font-size:.875rem;line-height:1.375rem}.text-base{font-size:1rem;line-height:1.5rem}.text-m-md{font-size:.9375rem;line-height:1.5rem}.text-m-title-xs{font-size:1.0625rem;line-height:1.375rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1.125rem}.text-lg{font-size:2.188rem;line-height:3rem}.text-2xs{font-size:.625rem;line-height:.625rem}.text-m-base{font-size:1rem;line-height:1.5rem}.text-m-sm{font-size:.875rem;line-height:1.375rem}.text-m-title{font-size:1.375rem;line-height:1.8125rem}.text-title-sm{font-size:1.75rem;line-height:2.5rem}.text-m-2xs{font-size:.75rem;line-height:1.125rem}.text-button,.text-m-button{font-size:.875rem;line-height:1.25rem}.text-m-title-md{font-size:1.25rem;line-height:1.625rem}.text-title-lg{font-size:2.5rem;line-height:3rem}.text-title{font-size:2rem;line-height:2.5rem}.text-title-xs{font-size:1.5rem;line-height:1.875rem}.text-title-2xs{font-size:1.25rem;line-height:1.625rem}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-\[14px\]{line-height:14px}.text-secondary-text{--tw-text-opacity:1;color:rgba(125,126,127,var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-primary-text{--tw-text-opacity:1;color:rgba(28,28,28,var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-primary-main{--tw-text-opacity:1;color:rgba(var(--color-primary-main),var(--tw-text-opacity))}.text-secondary-light{--tw-text-opacity:1;color:rgba(245,247,249,var(--tw-text-opacity))}.text-white\/80{color:hsla(0,0%,100%,.8)}.no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}.opacity-80{opacity:.8}.opacity-60{opacity:.6}.opacity-30{opacity:.3}.opacity-0{opacity:0}.shadow-\[0_8px_32px_0px_\#00000014\]{--tw-shadow:0 8px 32px 0px #00000014;--tw-shadow-colored:0 8px 32px 0px var(--tw-shadow-color)}.shadow-\[0_4px_25px_rgba\(0\2c 0\2c 0\2c 0\.07\)\],.shadow-\[0_8px_32px_0px_\#00000014\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_4px_25px_rgba\(0\2c 0\2c 0\2c 0\.07\)\]{--tw-shadow:0 4px 25px rgba(0,0,0,.07);--tw-shadow-colored:0 4px 25px var(--tw-shadow-color)}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-1000{transition-duration:1s}.rotate-180{transform:rotate(180deg)}.-translate-x-full{transform:translateX(-100%)}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.horizontal-list{-webkit-overflow-scrolling:touch;display:flex;overflow-x:scroll;overscroll-behavior:contain;scroll-snap-type:x mandatory;touch-action:pan-x}.horizontal-list-item{flex-shrink:0;scroll-snap-align:start;scroll-snap-stop:always;width:100%}input[type=range].slider{-webkit-appearance:none;background:transparent;background-image:linear-gradient(#42ab44,#42ab44);background-repeat:no-repeat;border-radius:5px;height:4px}input[type=range].slider::-webkit-slider-thumb{-webkit-appearance:none;background:#fff;border:3px solid #42ab44;border-radius:50%;box-shadow:none;cursor:pointer;height:18px;width:18px}input[type=range].slider::-moz-range-thumb{background:#fff;border:3px solid #42ab44;border-radius:50%;box-shadow:none;cursor:pointer;height:12px;width:12px}input[type=range].slider::-ms-thumb{background:#fff;border:3px solid #42ab44;border-radius:50%;box-shadow:none;cursor:pointer;height:18px;width:18px}.first\:mt-0:first-child{margin-top:0}.first\:rounded-tl-md:first-child{border-top-left-radius:.375rem}.first\:rounded-bl-md:first-child{border-bottom-left-radius:.375rem}.first\:pt-7:first-child{padding-top:1.75rem}.first\:pl-0:first-child{padding-left:0}.first\:pt-5:first-child{padding-top:1.25rem}.last\:mb-0:last-child{margin-bottom:0}.last\:mr-0:last-child{margin-right:0}.last\:rounded-tr-md:last-child{border-top-right-radius:.375rem}.last\:rounded-br-md:last-child{border-bottom-right-radius:.375rem}.last\:border-b-0:last-child{border-bottom-width:0}.last\:pb-7:last-child{padding-bottom:1.75rem}.last\:pb-5:last-child{padding-bottom:1.25rem}.visited\:text-secondary-text:visited{color:rgba(125,126,127,var(--tw-text-opacity))}.checked\:border-primary-main:checked{--tw-border-opacity:1;border-color:rgba(var(--color-primary-main),var(--tw-border-opacity))}.checked\:bg-primary-main:checked{--tw-bg-opacity:1;background-color:rgba(var(--color-primary-main),var(--tw-bg-opacity))}.hover\:border-primary-main:hover{--tw-border-opacity:1;border-color:rgba(var(--color-primary-main),var(--tw-border-opacity))}.hover\:bg-secondary-hover:hover{--tw-bg-opacity:1;background-color:rgba(var(--color-secondary-hover),var(--tw-bg-opacity))}.hover\:bg-primary-hover:hover{--tw-bg-opacity:1;background-color:rgba(var(--color-primary-hover),var(--tw-bg-opacity))}.hover\:fill-primary-main:hover{fill:rgba(var(--color-primary-main),1)}.hover\:text-primary-main:hover{--tw-text-opacity:1;color:rgba(var(--color-primary-main),var(--tw-text-opacity))}.hover\:text-primary-text:hover{--tw-text-opacity:1;color:rgba(28,28,28,var(--tw-text-opacity))}.hover\:text-secondary-hover:hover{--tw-text-opacity:1;color:rgba(var(--color-secondary-hover),var(--tw-text-opacity))}.focus\:border-primary-text:focus{--tw-border-opacity:1;border-color:rgba(28,28,28,var(--tw-border-opacity))}.active\:bg-secondary-active:active{--tw-bg-opacity:1;background-color:rgba(var(--color-secondary-active),var(--tw-bg-opacity))}.active\:bg-primary-active:active{--tw-bg-opacity:1;background-color:rgba(var(--color-primary-active),var(--tw-bg-opacity))}.group:last-child .group-last\:last\:pb-0:last-child{padding-bottom:0}.group:hover .group-hover\:text-primary-main{--tw-text-opacity:1;color:rgba(var(--color-primary-main),var(--tw-text-opacity))}.group:hover .group-hover\:text-primary-text{--tw-text-opacity:1;color:rgba(28,28,28,var(--tw-text-opacity))}.peer:checked~.peer-checked\:block{display:block}.peer:focus~.peer-focus\:visible{visibility:visible}@media (min-width:1280px) and (max-width:1535px){.xl\:w-\[220px\]{width:220px}.xl\:gap-8{gap:2rem}.xl\:gap-5{gap:1.25rem}}
|
|
1
|
+
@import "../fonts/ubuntu/ubuntu.css";[data-theme=pc]{--color-primary-main:66,171,68;--color-primary-hover:36,131,65;--color-primary-active:36,95,52;--color-secondary-hover:216,242,217;--color-secondary-active:197,226,198;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=bc]{--color-primary-main:131,184,62;--color-primary-hover:92,146,29;--color-primary-active:60,94,16;--color-secondary-hover:232,244,217;--color-secondary-active:216,227,202;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=eo]{--color-primary-main:221,182,61;--color-primary-hover:187,151,39;--color-primary-active:126,99,12;--color-secondary-hover:241,236,221;--color-secondary-active:229,222,199;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=eo2]{--color-primary-main:255,204,0;--color-primary-hover:187,151,39;--color-primary-active:126,99,12;--color-secondary-hover:241,236,221;--color-secondary-active:229,222,199;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=eo3]{--color-primary-main:225,186,30;--color-primary-hover:187,151,39;--color-primary-active:126,99,12;--color-secondary-hover:241,236,221;--color-secondary-active:229,222,199;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}[data-theme=eo4]{--color-primary-main:233,191,23;--color-primary-hover:187,151,39;--color-primary-active:126,99,12;--color-secondary-hover:241,236,221;--color-secondary-active:229,222,199;--color-gradient-from:141,189,76;--color-gradient-to:69,172,69}.container{margin-left:auto;margin-right:auto;width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.inset-x-0{left:0;right:0}.top-1{top:.25rem}.right-1{right:.25rem}.top-7{top:1.75rem}.right-7{right:1.75rem}.top-0{top:0}.right-0{right:0}.bottom-0{bottom:0}.top-4{top:1rem}.right-4{right:1rem}.left-0{left:0}.top-1\/2{top:50%}.left-8{left:2rem}.left-1{left:.25rem}.-bottom-3{bottom:-.75rem}.top-8{top:2rem}.z-10{z-index:10}.col-span-12{grid-column:span 12/span 12}.col-span-8{grid-column:span 8/span 8}.col-span-4{grid-column:span 4/span 4}.col-span-6{grid-column:span 6/span 6}.m-auto{margin:auto}.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.mx-7{margin-left:1.75rem;margin-right:1.75rem}.my-4{margin-bottom:1rem;margin-top:1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.mb-2{margin-bottom:.5rem}.mb-5{margin-bottom:1.25rem}.mb-2\.5{margin-bottom:.625rem}.mb-4{margin-bottom:1rem}.mt-3{margin-top:.75rem}.mt-\[18px\]{margin-top:18px}.mt-auto{margin-top:auto}.ml-7{margin-left:1.75rem}.mt-4{margin-top:1rem}.mt-9{margin-top:2.25rem}.mt-1\.5{margin-top:.375rem}.mt-1{margin-top:.25rem}.mt-5{margin-top:1.25rem}.mt-2\.5{margin-top:.625rem}.mt-2{margin-top:.5rem}.mb-9{margin-bottom:2.25rem}.mb-\[18px\]{margin-bottom:18px}.mr-6{margin-right:1.5rem}.mr-\[42px\]{margin-right:42px}.mt-\[23px\]{margin-top:23px}.mb-7{margin-bottom:1.75rem}.mb-3{margin-bottom:.75rem}.mr-3{margin-right:.75rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mb-8{margin-bottom:2rem}.mb-6{margin-bottom:1.5rem}.mt-6{margin-top:1.5rem}.mr-8{margin-right:2rem}.ml-auto{margin-left:auto}.mr-5{margin-right:1.25rem}.mr-7{margin-right:1.75rem}.mt-0{margin-top:0}.mb-\[26px\]{margin-bottom:26px}.mr-2\.5{margin-right:.625rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.mt-\[19px\]{margin-top:19px}.mb-3\.5{margin-bottom:.875rem}.mr-1\.5{margin-right:.375rem}.mr-1{margin-right:.25rem}.mb-1{margin-bottom:.25rem}.mb-0\.5{margin-bottom:.125rem}.mb-0{margin-bottom:0}.ml-\[34px\]{margin-left:34px}.ml-\[24px\]{margin-left:24px}.ml-3{margin-left:.75rem}.mr-\[14px\]{margin-right:14px}.mr-auto{margin-right:auto}.ml-px{margin-left:1px}.mt-0\.5{margin-top:.125rem}.ml-0\.5{margin-left:.125rem}.ml-0{margin-left:0}.ml-2\.5{margin-left:.625rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-full{height:100%}.h-\[20px\]{height:20px}.h-12{height:3rem}.h-\[70px\]{height:70px}.h-\[63px\]{height:63px}.h-8{height:2rem}.h-fit{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.h-10{height:2.5rem}.h-\[38px\]{height:38px}.h-\[50px\]{height:50px}.h-\[1px\]{height:1px}.h-\[24px\]{height:24px}.h-\[90px\]{height:90px}.h-\[48px\]{height:48px}.h-4{height:1rem}.h-\[25px\]{height:25px}.h-\[3px\]{height:3px}.h-0\.5{height:.125rem}.h-0{height:0}.h-\[100px\]{height:100px}.h-2{height:.5rem}.h-\[6px\]{height:6px}.h-5{height:1.25rem}.h-\[2px\]{height:2px}.max-h-0{max-height:0}.max-h-6{max-height:1.5rem}.max-h-12{max-height:3rem}.min-h-\[70px\]{min-height:70px}.min-h-\[63px\]{min-height:63px}.min-h-\[32px\]{min-height:32px}.min-h-\[90px\]{min-height:90px}.min-h-0{min-height:0}.min-h-\[420px\]{min-height:420px}.min-h-\[50px\]{min-height:50px}.min-h-8{min-height:2rem}.min-h-\[100px\]{min-height:100px}.min-h-\[300px\]{min-height:300px}.min-h-\[320px\]{min-height:320px}.min-h-\[360px\]{min-height:360px}.min-h-2{min-height:.5rem}.min-h-\[6px\]{min-height:6px}.min-h-12{min-height:3rem}.w-\[20px\]{width:20px}.w-full{width:100%}.w-\[70px\]{width:70px}.w-\[84px\]{width:84px}.w-80{width:20rem}.w-\[63px\]{width:63px}.w-\[200px\]{width:200px}.w-8{width:2rem}.w-max{width:-webkit-max-content;width:-moz-max-content;width:max-content}.w-\[75px\]{width:75px}.w-\[280px\]{width:280px}.w-\[38px\]{width:38px}.w-\[364px\]{width:364px}.w-\[260px\]{width:260px}.w-\[24px\]{width:24px}.w-\[125px\]{width:125px}.w-\[50px\]{width:50px}.w-\[33px\]{width:33px}.w-\[90px\]{width:90px}.w-\[48px\]{width:48px}.w-\[25px\]{width:25px}.w-\[2px\]{width:2px}.w-\[100px\]{width:100px}.w-\[276px\]{width:276px}.w-12{width:3rem}.w-\[354px\]{width:354px}.w-4{width:1rem}.w-2{width:.5rem}.w-\[6px\]{width:6px}.w-\[36px\]{width:36px}.w-5{width:1.25rem}.w-\[1280px\]{width:1280px}.w-10{width:2.5rem}.w-auto{width:auto}.min-w-\[70px\]{min-width:70px}.min-w-\[63px\]{min-width:63px}.min-w-\[364px\]{min-width:364px}.min-w-\[260px\]{min-width:260px}.min-w-\[32px\]{min-width:32px}.min-w-\[90px\]{min-width:90px}.min-w-\[600px\]{min-width:600px}.min-w-\[50px\]{min-width:50px}.min-w-\[100px\]{min-width:100px}.min-w-2{min-width:.5rem}.min-w-\[6px\]{min-width:6px}.max-w-\[170px\]{max-width:170px}.max-w-\[600px\]{max-width:600px}.max-w-\[47rem\]{max-width:47rem}.max-w-\[580px\]{max-width:580px}.max-w-\[292px\]{max-width:292px}.max-w-\[308px\]{max-width:308px}.max-w-\[490px\]{max-width:490px}.max-w-\[149px\]{max-width:149px}.flex-none{flex:none}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-\[calc\(50\%-20px\)\]{flex-basis:calc(50% - 20px)}.basis-0{flex-basis:0px}.basis-full{flex-basis:100%}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes progress{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes progress{0%{transform:translateX(-100%)}to{transform:translateX(0)}}.animate-slide{-webkit-animation:progress linear;animation:progress linear}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3\.5{gap:.875rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.gap-4{gap:1rem}.gap-1{gap:.25rem}.gap-\[54px\]{gap:54px}.gap-11{gap:2.75rem}.gap-\[14px\]{gap:14px}.gap-2{gap:.5rem}.gap-6{gap:1.5rem}.gap-\[6px\]{gap:6px}.gap-8{gap:2rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.gap-y-\[26px\]{row-gap:26px}.gap-x-\[101px\]{-moz-column-gap:101px;column-gap:101px}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.overflow-y-hidden{overflow-y:hidden}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-3xl{border-radius:1.5rem}.rounded-\[40px\]{border-radius:40px}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-b-md{border-bottom-left-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-tl-lg{border-top-left-radius:.5rem}.border{border-width:1px}.border-0{border-width:0}.border-\[3px\]{border-width:3px}.border-2{border-width:2px}.border-y-0{border-bottom-width:0;border-top-width:0}.border-x-0{border-left-width:0;border-right-width:0}.border-y{border-top-width:1px}.border-b,.border-y{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-t-0{border-top-width:0}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-main-divider{--tw-border-opacity:1;border-color:rgba(235,237,240,var(--tw-border-opacity))}.border-main-stroke{--tw-border-opacity:1;border-color:rgba(201,202,204,var(--tw-border-opacity))}.border-primary-main{--tw-border-opacity:1;border-color:rgba(var(--color-primary-main),var(--tw-border-opacity))}.border-main{--tw-border-opacity:1;border-color:rgba(240,244,240,var(--tw-border-opacity))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-y-main-divider{--tw-border-opacity:1;border-bottom-color:rgba(235,237,240,var(--tw-border-opacity));border-top-color:rgba(235,237,240,var(--tw-border-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-secondary-text{--tw-bg-opacity:1;background-color:rgba(125,126,127,var(--tw-bg-opacity))}.bg-main{--tw-bg-opacity:1;background-color:rgba(240,244,240,var(--tw-bg-opacity))}.bg-secondary-light{--tw-bg-opacity:1;background-color:rgba(245,247,249,var(--tw-bg-opacity))}.bg-primary-main{--tw-bg-opacity:1;background-color:rgba(var(--color-primary-main),var(--tw-bg-opacity))}.bg-main-divider{--tw-bg-opacity:1;background-color:rgba(235,237,240,var(--tw-bg-opacity))}.bg-inherit{background-color:inherit}.bg-white\/30{background-color:hsla(0,0%,100%,.3)}.bg-primary-main\/10{background-color:rgba(var(--color-primary-main),.1)}.bg-secondary-dark{--tw-bg-opacity:1;background-color:rgba(226,228,229,var(--tw-bg-opacity))}.bg-opacity-to-white{background-image:linear-gradient(270deg,#fff 34.89%,hsla(0,0%,100%,0) 92.52%);}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-main-gradient-start{--tw-gradient-from:rgba(var(--color-gradient-from),1);--tw-gradient-to:rgba(var(--color-gradient-from),0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white{--tw-gradient-from:#fff;--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-main-gradient-end{--tw-gradient-to:rgba(var(--color-gradient-to),1)}.to-transparent{--tw-gradient-to:transparent}.p-0{padding:0}.p-\[50px\]{padding:50px}.p-4{padding:1rem}.\!p-0{padding:0!important}.p-12{padding:3rem}.p-10{padding:2.5rem}.p-\[49px\]{padding:49px}.p-9{padding:2.25rem}.p-7{padding:1.75rem}.p-2{padding:.5rem}.p-14{padding:3.5rem}.p-\[12px\]{padding:12px}.p-\[10px\]{padding:10px}.p-\[26px\]{padding:26px}.px-9{padding-left:2.25rem;padding-right:2.25rem}.py-\[9px\]{padding-bottom:9px;padding-top:9px}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-\[14px\]{padding-bottom:14px;padding-top:14px}.px-0{padding-left:0;padding-right:0}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-\[50px\]{padding-bottom:50px;padding-top:50px}.py-\[11px\]{padding-bottom:11px;padding-top:11px}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-7{padding-bottom:1.75rem;padding-top:1.75rem}.py-\[26px\]{padding-bottom:26px;padding-top:26px}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-0{padding-bottom:0;padding-top:0}.px-20{padding-left:5rem;padding-right:5rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.px-\[88px\]{padding-left:88px;padding-right:88px}.py-\[18px\]{padding-bottom:18px;padding-top:18px}.py-4{padding-bottom:1rem;padding-top:1rem}.py-3\.5{padding-bottom:.875rem;padding-top:.875rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pl-4{padding-left:1rem}.pl-12{padding-left:3rem}.pr-\[6\%\]{padding-right:6%}.pr-2\.5{padding-right:.625rem}.pr-2{padding-right:.5rem}.pb-5{padding-bottom:1.25rem}.pb-2{padding-bottom:.5rem}.pl-\[50px\]{padding-left:50px}.pr-\[50px\]{padding-right:50px}.pt-7{padding-top:1.75rem}.pb-\[46px\]{padding-bottom:46px}.pt-6{padding-top:1.5rem}.pr-\[56px\]{padding-right:56px}.pl-11{padding-left:2.75rem}.pt-4{padding-top:1rem}.pt-0{padding-top:0}.pb-0{padding-bottom:0}.pb-4{padding-bottom:1rem}.pr-1{padding-right:.25rem}.pl-0\.5{padding-left:.125rem}.pl-0{padding-left:0}.pb-8{padding-bottom:2rem}.pt-\[3px\]{padding-top:3px}.pb-6{padding-bottom:1.5rem}.pt-\[30px\]{padding-top:30px}.pb-7{padding-bottom:1.75rem}.pt-5{padding-top:1.25rem}.pb-\[5px\]{padding-bottom:5px}.pt-\[5px\]{padding-top:5px}.pr-4{padding-right:1rem}.pl-3{padding-left:.75rem}.pr-0{padding-right:0}.pt-10{padding-top:2.5rem}.pb-\[50px\]{padding-bottom:50px}.pr-\[7\.5rem\]{padding-right:7.5rem}.pl-2\.5{padding-left:.625rem}.pt-2\.5{padding-top:.625rem}.pb-1\.5{padding-bottom:.375rem}.pr-\[6\.25rem\]{padding-right:6.25rem}.pl-2{padding-left:.5rem}.pt-2{padding-top:.5rem}.pb-1{padding-bottom:.25rem}.pb-\[2px\]{padding-bottom:2px}.pt-1{padding-top:.25rem}.pl-10{padding-left:2.5rem}.pb-3{padding-bottom:.75rem}.pt-1\.5{padding-top:.375rem}.pl-1{padding-left:.25rem}.pt-0\.5{padding-top:.125rem}.pr-3{padding-right:.75rem}.pr-28{padding-right:7rem}.pr-9{padding-right:2.25rem}.pr-\[4\.75rem\]{padding-right:4.75rem}.pr-\[9\.4rem\]{padding-right:9.4rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-sans{font-family:Ubuntu,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-sm{font-size:.875rem;line-height:1.375rem}.text-base{font-size:1rem;line-height:1.5rem}.text-m-md{font-size:.9375rem;line-height:1.5rem}.text-m-title-xs{font-size:1.0625rem;line-height:1.375rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1.125rem}.text-lg{font-size:2.188rem;line-height:3rem}.text-2xs{font-size:.625rem;line-height:.625rem}.text-m-base{font-size:1rem;line-height:1.5rem}.text-m-sm{font-size:.875rem;line-height:1.375rem}.text-m-title{font-size:1.375rem;line-height:1.8125rem}.text-title-sm{font-size:1.75rem;line-height:2.5rem}.text-m-2xs{font-size:.75rem;line-height:1.125rem}.text-button,.text-m-button{font-size:.875rem;line-height:1.25rem}.text-m-title-md{font-size:1.25rem;line-height:1.625rem}.text-title-lg{font-size:2.5rem;line-height:3rem}.text-title{font-size:2rem;line-height:2.5rem}.text-title-xs{font-size:1.5rem;line-height:1.875rem}.text-title-2xs{font-size:1.25rem;line-height:1.625rem}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-\[14px\]{line-height:14px}.text-secondary-text{--tw-text-opacity:1;color:rgba(125,126,127,var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-primary-text{--tw-text-opacity:1;color:rgba(28,28,28,var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-primary-main{--tw-text-opacity:1;color:rgba(var(--color-primary-main),var(--tw-text-opacity))}.text-secondary-light{--tw-text-opacity:1;color:rgba(245,247,249,var(--tw-text-opacity))}.text-white\/80{color:hsla(0,0%,100%,.8)}.no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}.opacity-80{opacity:.8}.opacity-60{opacity:.6}.opacity-30{opacity:.3}.opacity-0{opacity:0}.shadow-\[0_8px_32px_0px_\#00000014\]{--tw-shadow:0 8px 32px 0px #00000014;--tw-shadow-colored:0 8px 32px 0px var(--tw-shadow-color)}.shadow-\[0_4px_25px_rgba\(0\2c 0\2c 0\2c 0\.07\)\],.shadow-\[0_8px_32px_0px_\#00000014\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_4px_25px_rgba\(0\2c 0\2c 0\2c 0\.07\)\]{--tw-shadow:0 4px 25px rgba(0,0,0,.07);--tw-shadow-colored:0 4px 25px var(--tw-shadow-color)}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-1000{transition-duration:1s}.rotate-180{transform:rotate(180deg)}.-translate-x-full{transform:translateX(-100%)}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.horizontal-list{-webkit-overflow-scrolling:touch;display:flex;overflow-x:scroll;overscroll-behavior:contain;scroll-snap-type:x mandatory;touch-action:pan-x}.horizontal-list-item{flex-shrink:0;scroll-snap-align:start;scroll-snap-stop:always;width:100%}input[type=range].slider{-webkit-appearance:none;background:transparent;background-image:linear-gradient(#42ab44,#42ab44);background-repeat:no-repeat;border-radius:5px;height:4px}input[type=range].slider::-webkit-slider-thumb{-webkit-appearance:none;background:#fff;border:3px solid #42ab44;border-radius:50%;box-shadow:none;cursor:pointer;height:18px;width:18px}input[type=range].slider::-moz-range-thumb{background:#fff;border:3px solid #42ab44;border-radius:50%;box-shadow:none;cursor:pointer;height:12px;width:12px}input[type=range].slider::-ms-thumb{background:#fff;border:3px solid #42ab44;border-radius:50%;box-shadow:none;cursor:pointer;height:18px;width:18px}.first\:mt-0:first-child{margin-top:0}.first\:rounded-tl-md:first-child{border-top-left-radius:.375rem}.first\:rounded-bl-md:first-child{border-bottom-left-radius:.375rem}.first\:pt-7:first-child{padding-top:1.75rem}.first\:pl-0:first-child{padding-left:0}.first\:pt-5:first-child{padding-top:1.25rem}.last\:mb-0:last-child{margin-bottom:0}.last\:mr-0:last-child{margin-right:0}.last\:rounded-tr-md:last-child{border-top-right-radius:.375rem}.last\:rounded-br-md:last-child{border-bottom-right-radius:.375rem}.last\:border-b-0:last-child{border-bottom-width:0}.last\:pb-7:last-child{padding-bottom:1.75rem}.last\:pb-5:last-child{padding-bottom:1.25rem}.visited\:text-secondary-text:visited{color:rgba(125,126,127,var(--tw-text-opacity))}.checked\:border-primary-main:checked{--tw-border-opacity:1;border-color:rgba(var(--color-primary-main),var(--tw-border-opacity))}.checked\:bg-primary-main:checked{--tw-bg-opacity:1;background-color:rgba(var(--color-primary-main),var(--tw-bg-opacity))}.hover\:border-primary-main:hover{--tw-border-opacity:1;border-color:rgba(var(--color-primary-main),var(--tw-border-opacity))}.hover\:bg-secondary-hover:hover{--tw-bg-opacity:1;background-color:rgba(var(--color-secondary-hover),var(--tw-bg-opacity))}.hover\:bg-primary-hover:hover{--tw-bg-opacity:1;background-color:rgba(var(--color-primary-hover),var(--tw-bg-opacity))}.hover\:fill-primary-main:hover{fill:rgba(var(--color-primary-main),1)}.hover\:text-primary-main:hover{--tw-text-opacity:1;color:rgba(var(--color-primary-main),var(--tw-text-opacity))}.hover\:text-primary-text:hover{--tw-text-opacity:1;color:rgba(28,28,28,var(--tw-text-opacity))}.hover\:text-secondary-hover:hover{--tw-text-opacity:1;color:rgba(var(--color-secondary-hover),var(--tw-text-opacity))}.focus\:border-primary-text:focus{--tw-border-opacity:1;border-color:rgba(28,28,28,var(--tw-border-opacity))}.active\:bg-secondary-active:active{--tw-bg-opacity:1;background-color:rgba(var(--color-secondary-active),var(--tw-bg-opacity))}.active\:bg-primary-active:active{--tw-bg-opacity:1;background-color:rgba(var(--color-primary-active),var(--tw-bg-opacity))}.group:last-child .group-last\:last\:pb-0:last-child{padding-bottom:0}.group:hover .group-hover\:text-primary-main{--tw-text-opacity:1;color:rgba(var(--color-primary-main),var(--tw-text-opacity))}.group:hover .group-hover\:text-primary-text{--tw-text-opacity:1;color:rgba(28,28,28,var(--tw-text-opacity))}.peer:checked~.peer-checked\:block{display:block}.peer:focus~.peer-focus\:visible{visibility:visible}@media (min-width:1280px) and (max-width:1535px){.xl\:w-\[220px\]{width:220px}.xl\:gap-8{gap:2rem}.xl\:gap-5{gap:1.25rem}}
|
|
@@ -20,7 +20,7 @@ export const Header = JSX(({ className = '', defaultLocation, bgColor = 'bg-whit
|
|
|
20
20
|
const activeSubItem = findActiveSubItem(router)(subItems);
|
|
21
21
|
const [burgerMenuShow, setBurgerMenuShow] = context.useState(false);
|
|
22
22
|
const toggleBurgerMenu = () => setBurgerMenuShow(!burgerMenuShow);
|
|
23
|
-
return (_jsxs("header", { className: `${bgColor} ${className}`, children: [_jsxs("div", { className: "container px-4 py-0", children: [_jsx(HeaderTop, { onClick: toggleBurgerMenu, bgColor: bgColor }), _jsx("nav", { className: "flex items-center m-0 p-0 overflow-
|
|
23
|
+
return (_jsxs("header", { className: `${bgColor} ${className}`, children: [_jsxs("div", { className: "container px-4 py-0", children: [_jsx(HeaderTop, { onClick: toggleBurgerMenu, bgColor: bgColor }), _jsx("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]", children: _jsx("div", { className: "flex", children: subItems?.map((_, i) => renderSubItem({
|
|
24
24
|
...useLink({ router, handlerDecorator }, _),
|
|
25
25
|
active: _ === activeSubItem,
|
|
26
26
|
bgColor,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.mobile.js","sourceRoot":"","sources":["../../../src/components/Header/Header.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,M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C;IAEpE,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,iBAAiB,CAAC,CAAC,cAAc,CAAC,CAAC;IAElE,OAAO,CACL,kBAAQ,SAAS,EAAE,GAAG,OAAO,IAAI,SAAS,EAAE,aAC1C,eAAK,SAAS,EAAC,qBAAqB,aAClC,KAAC,SAAS,IAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAI,EAC1D,cAAK,SAAS,EAAC,6DAA6D,YAC1E,cAAK,SAAS,EAAC,MAAM,YAClB,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACtB,aAAa,CACX;gCACE,GAAG,OAAO,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC;gCAC3C,MAAM,EAAE,CAAC,KAAK,aAAa;gCAC3B,OAAO;6BACR,EACD,CAAC,CACF,CACF,GACG,GACF,IACF,EACL,cAAc,CAAC,CAAC,CAAC,CAChB,KAAC,YAAY,IACX,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,gBAAgB,EACzB,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,YAEhC,KAAC,SAAS,IACR,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,iBAAiB,CAAC,QAAQ,CAAC,EAC3C,SAAS,EAAC,oBAAoB,GAC9B,GACW,CAChB,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,IAAkB,EAAE,CAAS,EAAE,EAAE,CAAC,CACvD,KAAC,UAAU,IAAiB,SAAS,EAAC,gCAAgC,KAAK,IAAI,IAA9D,MAAM,CAAC,CAAC,CAAC,CAAyD,CACpF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { PlaceholderContent } from './PlaceholderContent';
|
|
3
|
+
export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<PlaceholderProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { Tile } from '../Tile/Tile.js';
|
|
4
|
+
const GOLDEN_RATIO = 1.618;
|
|
5
|
+
export const Placeholder = JSX(({ className = '', context, title }) => {
|
|
6
|
+
return (_jsx(Tile, { className: `pr-0 min-h-0 ${className}`, context: context, title: title, description: "\u0411\u043B\u043E\u043A \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u043A\u0435...", children: _jsx("figure", { className: "m-0", children: renderShimmer() }) }));
|
|
7
|
+
});
|
|
8
|
+
const renderShimmer = (size = 3) => goldenSequence(100, size)
|
|
9
|
+
.map((_) => Math.floor(_))
|
|
10
|
+
.map(renderShimmerItem);
|
|
11
|
+
const renderShimmerItem = (width = 100, index) => (_jsx("div", { style: { width: `${width}%` }, className: "h-4 mt-2 bg-secondary-light" }, String(index)));
|
|
12
|
+
const goldenSequence = (first, size) => [first].concat(size > 0 ? goldenSequence(first / GOLDEN_RATIO, size - 1) : []);
|
|
13
|
+
//# sourceMappingURL=Placeholder.mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Placeholder.mobile.js","sourceRoot":"","sources":["../../../src/components/Placeholder/Placeholder.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAOpC,MAAM,YAAY,GAAG,KAAK,CAAC;AAE3B,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;IACtF,OAAO,CACL,KAAC,IAAI,IACH,SAAS,EAAE,gBAAgB,SAAS,EAAE,EACtC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAC,iGAAsB,YAElC,iBAAQ,SAAS,EAAC,KAAK,YAAE,aAAa,EAAE,GAAU,GAC7C,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,CAAC,IAAI,GAAG,CAAC,EAAE,EAAE,CACjC,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC;KACtB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACzB,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAE5B,MAAM,iBAAiB,GAAG,CAAC,KAAK,GAAG,GAAG,EAAE,KAAa,EAAE,EAAE,CAAC,CACxD,cAAyB,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,EAAE,EAAE,SAAS,EAAC,6BAA6B,IAArF,MAAM,CAAC,KAAK,CAAC,CAA2E,CACnG,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,IAAY,EAAY,EAAE,CAC/D,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,GAAG,YAAY,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -785,7 +785,7 @@
|
|
|
785
785
|
const activeSubItem = findActiveSubItem(router)(subItems);
|
|
786
786
|
const [burgerMenuShow, setBurgerMenuShow] = context.useState(false);
|
|
787
787
|
const toggleBurgerMenu = () => setBurgerMenuShow(!burgerMenuShow);
|
|
788
|
-
return (jsxs("header", { className: `${bgColor} ${className}`, children: [jsxs("div", { className: "container px-4 py-0", children: [jsx(HeaderTop, { onClick: toggleBurgerMenu, bgColor: bgColor }), jsx("nav", { className: "flex items-center m-0 p-0 overflow-
|
|
788
|
+
return (jsxs("header", { className: `${bgColor} ${className}`, children: [jsxs("div", { className: "container px-4 py-0", children: [jsx(HeaderTop, { onClick: toggleBurgerMenu, bgColor: bgColor }), jsx("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]", children: jsx("div", { className: "flex", children: subItems?.map((_, i) => renderSubItem({
|
|
789
789
|
...useLink({ router, handlerDecorator }, _),
|
|
790
790
|
active: _ === activeSubItem,
|
|
791
791
|
bgColor,
|
|
@@ -794,8 +794,8 @@
|
|
|
794
794
|
const renderSubItem = (item, i) => (jsx(HeaderItem, { className: "mr-8 whitespace-nowrap text-sm", ...item }, String(i)));
|
|
795
795
|
|
|
796
796
|
const GOLDEN_RATIO = 1.618;
|
|
797
|
-
const Placeholder = JSX(({ className, context, title }) => {
|
|
798
|
-
return (jsx(Tile, { className: className
|
|
797
|
+
const Placeholder = JSX(({ className = '', context, title }) => {
|
|
798
|
+
return (jsx(Tile, { className: `pr-0 min-h-0 ${className}`, context: context, title: title, description: "\u0411\u043B\u043E\u043A \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u043A\u0435...", children: jsx("figure", { className: "m-0", children: renderShimmer() }) }));
|
|
799
799
|
});
|
|
800
800
|
const renderShimmer = (size = 3) => goldenSequence(100, size)
|
|
801
801
|
.map((_) => Math.floor(_))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...i}={})=>{const l=Object.assign({},i,r?{innerHTML:r.__html}:{});return e(t,l,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),i=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...i}=t||{},l=n?.slots?.default,a=r||l&&l();return e(Object.assign(i,a&&{children:a}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const l="likesToken";const a=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},s=i((({className:e="",name:t,alt:i=`Icon ${t}`,title:l=i,asSVG:s,...c})=>{const o=`${a.CDN||""}icons/${t}.svg`;return s?r("svg",{className:e,...c,"aria-hidden":"true",children:[l?n("title",{children:l}):null,i?n("desc",{children:i}):null,n("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]}):n("img",{className:e,src:o,alt:i,title:l,...c,"aria-hidden":"true"})})),c=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12},o={XL:"text-m-title",L:"text-m-title",M:"text-m-title-md",S:"text-m-title-xs","2XS":"text-m-title-xs","3XS":"text-m-title-xs"},m=i((({size:e="L",className:t,children:r,...i})=>n("XL"===e||"L"===e?"h1":"h2",{className:d(o[e],t),...i,children:r}))),d=(...e)=>e.filter(Boolean).join(" "),h=e=>e?.includes("//"),u=e=>(e||"").replace(/\/?\?.*/,""),x=e=>{if(!e||!h(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var p=Object.freeze({__proto__:null,isURL:h,withoutQuery:u,getOrigin:x});const f="/mobile",b=(e,t)=>{if(!e)return e;const n=x(t?.href);return n?e.replace(n,"")||"/":e},g=e=>e;function N({router:e,handlerDecorator:t=g},n){const r=((e,t)=>{if(!e)return e;const n=b(e,t)||"",r=t?.pathname.startsWith(f);return r&&!h(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,ariaLabel:n.text,onClick:t((t=>{const i=r&&!h(r),l=!n.target||"_self"===n.target;i&&l&&(t.preventDefault(),e.push(r))}),n)}}const v=i((({className:e="",image:{size:t,...i}})=>{const l={width:t?.width?`${t?.width}px`:"100%",height:t?.height?`${t?.height}px`:"100%"};return r("picture",{className:e,children:[i.sources?.length?i.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:y(t)},`${r}_${e}`))):null,n("img",{src:i.src,className:`m-auto ${i.className||""}`,alt:i.alt||i.title,title:i.title,style:l,...t})]})}));function y(e){return e?`image/${String(e)}`:void 0}const w={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active"},k={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text"},$="w-full text-center font-sans select-none",S=i((({className:e,text:t,aboveText:r,appendLeft:i,href:l,target:a,onClick:s,children:c,disabled:o,rounded:m,version:d="none",ariaLabel:h,...u})=>{const x=c??n(C,{text:t,aboveText:r,appendLeft:i,rounded:m});return o?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${$} ${k[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,children:x}):n("a",{className:`${$} inline-block cursor-pointer no-underline ${w[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,href:l,target:a,onClick:s,"aria-label":h,role:l?"link":"button",...u,children:x})})),C=i((({text:e,aboveText:t,appendLeft:i,rounded:l})=>{const a=!e&&!t&&Boolean(i);return r("div",{className:`flex items-center justify-center ${a?"h-12 w-12":"px-9 gap-2 "+(t?"py-2":"py-3.5")} ${l?"rounded-full":""}`,children:[i||null,a?null:r("div",{children:[n("div",{className:"text-m-2xs text-left",children:t}),n("div",{className:"text-m-button font-medium text-left",children:e})]})]})})),_="first:mt-0 mt-3";const j={primary:"text-primary-text",secondary:"text-secondary-text"},D={primary:"bg-primary-main",secondary:"bg-secondary-text"},T=i((({className:e="",isDotted:t=!0,text:i,children:l,version:a="primary",white:s})=>r("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t&&n("div",{className:I(a,s)}),n("span",{className:s?"text-white":j[a],children:i||l})]}))),I=(e,t)=>`rounded-full inline-block mr-3 ${t?"bg-white":D[e]} ${"primary"===e?"w-2 h-2 min-w-2 min-h-2 mt-2":"w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5"}`;function L(e=[],t){return n("section",{className:"mt-3",role:"list",children:e.map(((e,r)=>n(T,{className:"mt-1.5 first:mt-0",text:e,version:t},String(r))))})}const R=i((({context:e,description:t,children:i,buttons:l,image:a,items:c,version:o="primary"})=>{const m=e.useRouter(),{handlerDecorator:d}=e;return r("div",{children:[t&&n("div",{className:"font-normal text-base mt-3",children:t}),i,c?.length&&L(c,o),l?.length&&n("div",{className:"mt-[18px]",children:l.map(((e,t)=>function({icon:e,...t},r){if(t?.text)return n(S,e?{className:_,appendLeft:n(s,{name:e,width:"24",height:"24"}),...t}:{className:_,...t},String(r))}(N({router:m,handlerDecorator:d},e),t)))}),a?.src&&n(v,{className:"mt-auto ml-7",image:a})]})}));function O(e=""){const t=c(e);return t<=4?"S":t<=8?"M":"L"}const A={left:"items-start",center:"items-center",right:"items-end"},M=i((({className:e,context:t,title:i,titleSize:l,description:a,children:s,buttons:c,image:o,items:d,version:h="primary",align:u="left"})=>r("div",{className:`font-sans flex flex-col grow h-full ${A[u]}`,children:[i&&n(m,{size:l||O(e),className:"font-medium m-0 whitespace-pre-wrap max-w-[600px] "+("primary"===h?"text-primary-text":""),children:i}),n(R,{context:t,buttons:c,image:o,children:s,description:a,items:d})]}))),B={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},V=i((e=>{const{children:t,className:r="",version:i="primary",role:l}=e;return n("section",{className:`font-sans p-9 box-border ${r||""} ${B[i]} ${P(r)} ${H(r)} `,role:l,children:n(M,{...e,children:t})})}));function P(e=""){const t=c(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}function H(e=""){const t=c(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Z="https://www.cbr-xml-daily.ru/daily_json.js",z=["USD","EUR"],E={USD:"DollarIcon",EUR:"EuroIcon"},F=[{text:"Все показатели",href:"https://cbr.ru/currency_base/daily/",version:"secondary"}],G=i((({className:e,context:t,title:i})=>{const{data:l}=t.useAsyncData(Z,J);return n(V,{className:e,context:t,title:i||"Курсы обмена валют",buttons:F,children:r("table",{children:[n("thead",{children:r("tr",{children:[n(U,{children:"Валюта"}),n(U,{className:"pl-11",children:"Курс"})]})}),n("tbody",{children:z.map((e=>{const t=(l?.Valute||{})[e]?.Value;return r("tr",{children:[n(W,{className:"pt-4",children:r("div",{className:"flex items-center",children:[n(s,{name:E[e],width:"24",height:"24"}),n("span",{className:"ml-2",children:e})]})}),n(W,{className:"pt-4 pl-11",children:K(t)})]},e)}))})]})})})),U=i((({className:e="",children:t})=>n("th",{className:`text-left font-normal text-sm text-secondary-text ${e}`,children:t}))),W=i((({className:e="",children:t})=>n("td",{className:`text-left font-normal text-base text-primary-text ${e}`,children:t})));async function J(){const e=await fetch(Z);return await e.json()}const X=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),K=e=>e?X.format(e):"",Q=i((({bgColor:e="transparent",className:t="",title:i,description:l,image:a})=>r("section",{className:`px-4 py-6 ${e} ${t}`,children:[i&&n(m,{size:"L",className:"text-primary-text mt-0 font-medium",children:i}),l&&n("p",{className:"font-normal text-m-md "+(i?"mt-2.5":""),children:l}),a?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(v,{image:a})})]}))),Y={left:"text-left",center:"text-center",right:"text-right"},q={double:"mb-8",single:"mb-[26px]"},ee={double:"gap-x-5 gap-y-[26px] flex-wrap",single:"gap-3.5 flex-col"},te=i((({className:e="",title:t,align:i,documents:l,icon:a,columnsMode:c="single"})=>{const o=ee[c];return r("section",{className:`font-sans p-[50px] bg-white ${e}`,children:[t&&n(m,{className:`font-medium mt-0 ${q[c]} ${Y[i??"center"]}`,children:t}),n("div",{className:`flex ${o}`,role:"list",children:l?.length?l.map((({text:e,fileSize:t,...i},l)=>r("a",{className:"group flex text-sm align-middle h-fit\n text-primary-text no-underline hover:text-primary-main\n "+("double"===c?"basis-[calc(50%-20px)]":""),role:"listitem",...i,children:[a&&n(s,{className:"mr-2.5 h-fit",name:a,width:"24px",height:"24px"}),r("span",{className:"self-center",children:[e,n("span",{className:"text-secondary-text group-hover:text-primary-main",children:i?.href&&re(ne(i.href),t)})]})]},String(l)))):null})]})})),ne=e=>{if(!e)return"";const t=e.split(".").pop();return!t||t.includes("/")?"":t},re=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),ie=i((({className:e,title:t,image:i,benefits:l})=>r("section",{className:`relative font-sans text-primary-text bg-white p-14 ${e}`,children:[n(m,{className:"font-medium m-0 text-center",children:t}),r("div",{className:"flex justify-center mt-9",children:[i?.src&&n(v,{className:"mr-6",image:i}),l?.length?n("div",{className:"flex flex-col",children:l.map(le)}):null]})]})));function le(e,t){return r("div",{className:"flex flex-row mb-8",children:[e.icon&&n(s,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48"}),r("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&n("div",{className:"font-medium text-primary-text text-xl m-0",children:e.label}),e.description&&n("div",{className:"font-normal text-sm text-secondary-text",children:e.description})]})]},String(t))}const ae={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},se=i((({title:e,description:t,blockVersion:i="primary",iconVersion:l,image:a,className:s="",items:c})=>{const o=ae[i];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${s}`,children:["small"===l?oe(o.icon):null,"big"===l?me(a):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${o.title}`,children:e}):null,t?n("div",{className:`text-sm ${o.description}`,children:t}):null,c?.length?ce(c):null]})]})}));function ce(e=[],t){return n("section",{className:"mt-1",role:"list",children:e.map(((e,r)=>n(T,{text:e,version:t},String(r))))})}function oe(e){return n("div",{className:"mb-3",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function me(e){return e?.src?n(v,{className:"pb-3 mr-auto",image:e}):null}const de={Headline:Q,LinkDocs:te,TextBlock:se,PictureText:ie},he=i((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 ",children:e?.length?e.map(ue(t)):null}))),ue=e=>(t,r)=>{const i=t?.accordionBlockType;if(!i||!(i in de))return null;return n("div",{className:"mb-5 last:mb-0 py-2.5",children:n(de[i],{context:e,...t,className:"!p-0"})},`block_${r}`)},xe=i((({label:e,blocks:t,bordered:i,context:l})=>{const{hasContent:a,icon:c,handleToggle:o}=(({context:e,blocks:t})=>{const[n,r]=e.useState(!1),i=t?.length;return{isActive:n,hasContent:i,icon:n?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!i)return;r(!n);const t=(({target:e})=>"BUTTON"===e.tagName?e.nextSibling:e.parentNode.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:l,blocks:t});return r("li",{className:(i?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0 py-[14px]")+" border-solid border-main-divider",children:[r("button",{className:"border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n "+(a?"group cursor-pointer":""),onClick:o,children:[n("span",{className:"text-m-title-xs pr-2.5 font-medium "+(a?"group-hover:text-primary-main":""),children:e}),a?n(s,{name:c,width:"24",height:"24"}):null]}),a?n(he,{blocks:t,context:l}):null]})})),pe=i((({title:e,description:t,accordionItems:i,context:l,className:a="",bordered:s})=>r("section",{className:`py-6 font-sans bg-white text-primary-text ${s?"px-4":""} ${a}`,children:[e?n(m,{className:"m-0 mb-2 font-medium text-center",size:"M",children:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,i?.length?n("ul",{className:"list-none m-0 p-0",children:i.map(((e,t)=>n(xe,{...e,context:l,bordered:s},`AccordionItem${t}`)))}):null]}))),fe=i((({className:e,viewBox:t,fill:r="none",width:i,height:l,paths:a,...s})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:i,height:l,children:a.map((({d:e,fill:t,...r},i)=>n("path",{d:e,fill:t||"currentColor",...s,...r},i)))}))),be=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],ge={"bg-white":"text-primary-main",transparent:"text-white"},Ne={"bg-white":"text-black",transparent:"text-white"},ve=i((({className:e="",href:t,children:i,targetBlank:l,bgColor:a="bg-white",hideTitle:s})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:l?"_blank":"_self",children:[n(fe,{className:`${ge[a]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:be.map((e=>({d:e})))}),!s&&n("span",{className:`${Ne[a]} text-sm font-medium ml-2.5`,children:i||"Россельхозбанк"})]}))),ye=i((({className:e,title:t="Мобильное приложение",description:i,href:l="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:l?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(ve,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:l,target:"_blank",className:"flex flex-col justify-center pl-3",children:[n("div",{className:"text-sm font-medium",children:t}),n("div",{className:"text-xs text-secondary-text",children:i})]})]}):null}))),we=i((({className:e,items:t,hasButton:i,context:l})=>{const a=l.useRouter(),{handlerDecorator:s}=l;return r("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(ke):null,i?n(S,{version:"primary",className:"my-4",...N({router:a,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),ke=(e,t)=>{const{type:i,text:l,description:a}=e;return r("div",{className:"mb-4",children:[n("div",{children:$e(i,l)}),n("div",{className:"font-sans text-sm text-secondary-text",children:a})]},String(t))},$e=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${Se(t)}`,children:t});case"email":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},Se=e=>e.replaceAll(/\D/g,""),Ce=i((({title:e,links:t,className:i="",context:l})=>{const a=l.useRouter(),{handlerDecorator:s}=l;return r("div",{className:i,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-5 py-5",children:t.map(((e,t)=>n(_e,{index:t,...N({router:a,handlerDecorator:s},e)},String(t))))}):null]})})),_e=i((({className:e="",index:t,text:r,href:i,target:l,onClick:a})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:i,target:l,onClick:a,children:r||`Документ ${t}`}))),je=[{origins:["t.me","telegram.org"],icon:"TelegramIcon",label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:"VKIcon",label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:"OkIcon",label:"Одноклассники",width:"12px",height:"20px"}],De=i((({href:e})=>{const{icon:t,width:r,height:i}=je.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?n("a",{className:"flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:fill-primary-main",href:e,target:"_blank",rel:"noopener noreferrer",children:s&&n(s,{name:t,width:r,height:i,asSVG:!0,className:"block"})}):null})),Te=i((({className:e,media:t,context:r})=>{const i=r.useRouter(),{handlerDecorator:l}=r;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(De,{...N({router:i,handlerDecorator:l},e)},String(t))))})})),Ie=i((({className:e,links:t,context:i})=>{const l=i.useRouter(),{handlerDecorator:a}=i;return r("div",{className:`${e||""}`,children:[n("div",{className:"pt-5 pb-[5px]",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>n(Le,{index:t,...N({router:l,handlerDecorator:a},e)},String(t))))}):null]})})),Le=i((({className:e,index:t,text:r,href:i,target:l,onClick:a})=>n("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:i,target:l,onClick:a,children:r||`Документ ${t}`}))),Re=i((({className:e,context:t})=>{const{term:i,setTerm:l}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(s,{name:"LoupeIcon",width:"24",height:"24"})}),!i&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer font-sans font-normal text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:i,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input"}),n(S,{version:"primary",text:"Найти",className:"w-auto invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e.preventDefault(),console.log("click")},children:n("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),Oe=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkDocs",documents:e.items||[]}]}))),Ae=i((({className:e="",documents:t,relatedEnterprises:i,contacts:l,socialMedia:a,topItems:s,context:c,horizontalNavigationTitle:o,subMenu:m})=>{const d={context:c,accordionItems:Oe(s)};return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(we,{className:"overflow-hidden",items:l,context:c,hasButton:!0}),n(pe,{className:"p-0 pt-0 pb-0 mb-4",...d}),n("div",{children:m?.map(Me)}),n(ye,{context:c,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Re,{context:c,className:"grow"}),n(Te,{className:"pb-4",media:a,context:c}),n(Ce,{title:o,links:i,context:c}),n(Ie,{links:t,context:c})]})})),Me=(e,t)=>{const{icon:i,href:l,text:a}=e;return r(S,{href:l,className:"flex text-sm mb-4",children:[i?n(s,{className:"pr-1",name:i,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:a})]},`footer-${t}`)},Be=(e,t,n=((e,t)=>t.startsWith(e)))=>n(u(e),(e=>(e||"").replace(f,""))(u(h(e)?t.href:t.pathname))),Ve=e=>t=>Be(t.href,e),Pe=e=>t=>e?.href===t?.href,He=(e,t)=>{return(r=e,i=t,(r||[]).map((e=>i?.find(Pe(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Pe(e))))));var n,r,i};async function Ze(){const e=await fetch(ze());return await e.json()}function ze(){return`/wcms-resources/${a.SITEMAP||"sitemap"}.json`}const Ee="absolute left-0 -bottom-3 w-full h-[2px]",Fe=i((({className:e,text:t,href:i,target:l,active:a,onClick:s,children:c,bgColor:o="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:i,target:l,onClick:s,children:[n("span",{className:Ge(o,a),children:t||c}),a?n("div",{className:Ue(o,a)}):null]}))),Ge=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans font-normal text-sm`},Ue=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Ee}`:Ee,We=i((({context:e,burgerSubMenu:t,onClick:i,defaultLocation:l="",children:a})=>{const[c,o]=e.useGeolocation(l);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4",children:[n("button",{className:"absolute top-4 right-4",onClick:i,children:n(s,{name:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r(S,{onClick:o,className:"flex items-center text-sm text-secondary-text mb-4",children:[n(s,{name:"GeolocationIcon",width:"24",height:"24",className:"box-border mr-2",asSVG:!0}),c]}),a,n("div",{className:"mb-7",children:t?.map(Je)}),n(Re,{context:e,className:"grow"})]})})),Je=(e,t)=>{const{icon:i,href:l,text:a}=e;return r(S,{href:l,className:"flex text-sm mb-4",children:[i?n(s,{className:"pr-1",name:i,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:a})]},`headerSubMenu-${t}`)},Xe=i((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pr-4",onClick:e,children:n(s,{name:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",width:"24",height:"24",asSVG:!0})}),n(ve,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm",children:"Войти"})]}))),Ke=i((({className:e="",defaultLocation:t,bgColor:i="bg-white",context:l,topItems:a,burgerSubMenu:s})=>{const c=l.useRouter(),o=function(e){const{data:t}=e(ze(),Ze);return t||{}}(l.useAsyncData),{handlerDecorator:m}=l,d=He(o.topItems,a).find((e=>t=>t.items?.some(Ve(e))||Be(t.href,e))(c)),h=d?.items,u=(e=>(t=[])=>{const n=t?.filter(Ve(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(c)(h),[x,p]=l.useState(!1),f=()=>p(!x);return r("header",{className:`${i} ${e}`,children:[r("div",{className:"container px-4 py-0",children:[n(Xe,{onClick:f,bgColor:i}),n("nav",{className:"flex items-center m-0 p-0 overflow-x-scroll overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex",children:h?.map(((e,t)=>Qe({...N({router:c,handlerDecorator:m},e),active:e===u,bgColor:i},t)))})})]}),x?n(We,{context:l,onClick:f,burgerSubMenu:s,defaultLocation:t,children:n(pe,{context:l,accordionItems:Oe(a),className:"p-0 pt-0 pb-0 mb-4"})}):null]})})),Qe=(e,t)=>n(Fe,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t)),Ye=i((({className:e,context:t,title:r})=>n(V,{className:e,context:t,title:r,description:"Блок в разработке...",children:n("figure",{className:"m-0 min-w-[600px]",children:qe()})}))),qe=(e=3)=>tt(100,e).map((e=>Math.floor(e))).map(et),et=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),tt=(e,t)=>[e].concat(t>0?tt(e/1.618,t-1):[]),nt={primary:"text-primary-text",secondary:"text-white"},rt={primary:"text-secondary-text",secondary:"text-white"};const it=i((({className:e,context:t,title:i,titleSize:l,description:a,benefits:c,buttons:o,image:m,items:d,version:h="primary"})=>r("div",{className:`${e||""}`,children:[n("div",{children:n(M,{context:t,title:i,titleSize:l||"XL",description:a,items:d,buttons:o,children:c?.length?n("div",{className:"mt-[19px]",children:c.map(((e,t)=>function(e,t,i){return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon&&n(s,{className:"w-[25px] h-[25px] rounded-full box-border",name:e.icon,width:"24",height:"24"}),n("h4",{className:`font-medium text-m-base m-0 ${nt[i]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${rt[i]}`,children:e.description})]},String(t))}(e,t,h)))}):null})}),m?.src&&n("div",{className:"mt-5",children:n(v,{image:{className:"block",...m}})})]}))),lt=i((e=>{const{className:t}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${t||""}`,children:n(it,{...e})})})),at=i((({block:e,titleSize:t,context:r})=>n("section",{className:"flex grow-0 shrink-0 basis-full px-4 py-6",role:"listitem",children:n("div",{className:"flex grow",children:n(it,{context:r,titleSize:t,...e})})}))),st=i((({className:e,context:t,duration:i=0,slides:l=[]})=>{const a=l.map((e=>e.productBlock)),[s,c]=t.useState(0);return r("section",{className:`font-sans bg-white overflow-hidden w-100 ${e||""}`,children:[n("div",{className:"flex duration-1000",style:{transform:`translateX(-${s}00%)`},role:"list",children:a.map(((e,r)=>n(at,{block:e,context:t},String(r))))}),n("div",{className:"flex px-4 py-6",children:l.map(((e,t)=>function({i:e,activeSlideIndex:t,onClick:r,duration:i}){return n("button",{type:"button",onClick:r,className:"relative overflow-hidden border-0 bg-inherit cursor-pointer pl-0 mr-1.5 pt-4 pb-5 last:mr-0 grow basis-0",children:n("div",{className:"absolute bottom-0 left-0 w-full h-[3px] "+(e===t?"animate-slide bg-primary-main":"bg-main-divider"),style:{animationDuration:`${i}s`,animationFillMode:"forwards"}})},String(e))}({i:t,activeSlideIndex:s,onClick:()=>c(t),duration:i})))})]})}));const ct=i((({className:e,title:t,description:i,steps:l,size:a="normal"})=>r("section",{className:`box-border font-sans text-primary-text bg-white px-4 py-6 flex flex-col ${e||""}`,children:[t&&n(m,{size:"M",className:"font-medium m-0 text-center",children:t}),i&&n("p",{className:`text-m-md text-center ${t&&"mt-2"}`,children:i}),l?.length?n("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:n("div",{className:"flex flex-col justify-between gap-x-[101px]",children:l.map(((e,t)=>ot({step:e,size:a,i:t,length:l.length})))})}):null]}))),ot=e=>{const{step:t,size:i,i:l,length:a}=e,s=a-1===l,c="normal"===i?"ml-[34px]":"ml-[24px]";return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{children:[mt(t,i,l),!s&&n("div",{className:`min-h-8 h-full w-[2px] bg-secondary-light ${c}`})]}),r("div",{className:"flex flex-col justify-center relative",children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:"font-normal text-sm text-secondary-text text-left "+(t.label?"mt-1":""),children:t.description})]})]},String(l))},String(l))},mt=(e,t,r)=>{const i="normal"===t?"38":"27";return n("div",{className:`${"normal"===t?"h-[70px] w-[70px] min-w-[70px] min-h-[70px]":"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"} bg-secondary-light rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium text-secondary-text self-center ${"normal"===t?"text-m-title":"text-m-title-xs"}`,children:e.icon&&n(s,{name:e.icon,width:i,height:i})||r+1})})},dt={ExchangeRateTile:G,Footer:Ae,Header:Ke,Headline:Q,Placeholder:Ye,ProductBlock:lt,ProductGallery:st,TextBlock:se,StepsBlock:ct},ht=i((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:ut()}))),ut=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),n("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},xt=i((({className:e,context:t})=>{const i=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,children:[n(ht,{onClick:i.like,ariaLabel:"Поставить отметку «лайк»"}),n(ht,{onClick:i.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:i.likeCount})]})})),pt=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),ft=i((({className:e,context:t,blocksRegistry:i,data:{style:l,blocks:a,slots:s={},likeControl:c,colorPalette:o="pc"},blockDecorator:m=pt})=>{const{header:d}=s;return r("section",{className:`relative ${gt(l)} ${e||""}`,"data-theme":o,children:[d?.blocks?.length?n("div",{className:`${gt(d?.style)}`,children:d.blocks.map(((e,n)=>bt({block:e,blockDecorator:m,blocksRegistry:i,context:t},n)))}):null,a?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:a.map(((e,n)=>bt({block:e,blockDecorator:m,blocksRegistry:i,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(xt,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function bt({block:e,blockDecorator:t,blocksRegistry:r,context:i},l){const{type:a}=e;a in r||console.warn(`No block with "${a}" is registered`);const s=r[a]||Ye;return t({blockClassName:gt(e.style),block:e,render:e=>{const{version:c,content:o,blocks:m}=e.block;return n(s,{className:e.blockClassName,version:c,context:i,...o,children:m?.length?m.map(((e,n)=>bt({block:e,blockDecorator:t,blocksRegistry:r,context:i},n))):null},`${a}-${l}`)}},`block-${l}`)}function gt(e){return e?e.join(" "):""}const Nt=i((({HeadComponent:e,data:t,children:i})=>{const{title:l,description:a,keywords:s,robots:c,og:o}=t;return r(e,{children:[n("title",{children:l}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),a&&n("meta",{name:"description",content:a}),s&&n("meta",{name:"keywords",content:s.join(",")}),c&&n("meta",{name:"robots",content:c.join(",")}),o?Object.entries(o).map((([e,t])=>n("meta",{name:`og:${e}`,content:t},e))):null,i]})}));function vt(e){return e?.filter((({mobile:e})=>!e?.hidden)).map(yt)}function yt(e){const{mobile:t}=e;return t?{...e,style:t.style?.length?t.style:e.style}:e}e.Blocks=dt,e.ContentPage=ft,e.ContentPageHead=Nt,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.Header=Ke,e.Icon=s,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(l)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(l,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:i}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i},body:JSON.stringify({node_ids:r})}),{likes:l}=await n.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:i,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:a}=await n.json();return a||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:i,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:a}=await n.json();return a||0}catch(e){return console.error(e),0}}}},e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.projectSettings=a,e.setup=t,e.toMobilePage=function(e){const{blocks:t,slots:n}=e;return{...e,blocks:vt(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:vt(n[t].blocks)}})),{})}},e.url=p,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...i}={})=>{const l=Object.assign({},i,r?{innerHTML:r.__html}:{});return e(t,l,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),i=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...i}=t||{},l=n?.slots?.default,a=r||l&&l();return e(Object.assign(i,a&&{children:a}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const l="likesToken";const a=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},s=i((({className:e="",name:t,alt:i=`Icon ${t}`,title:l=i,asSVG:s,...c})=>{const o=`${a.CDN||""}icons/${t}.svg`;return s?r("svg",{className:e,...c,"aria-hidden":"true",children:[l?n("title",{children:l}):null,i?n("desc",{children:i}):null,n("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]}):n("img",{className:e,src:o,alt:i,title:l,...c,"aria-hidden":"true"})})),c=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12},o={XL:"text-m-title",L:"text-m-title",M:"text-m-title-md",S:"text-m-title-xs","2XS":"text-m-title-xs","3XS":"text-m-title-xs"},m=i((({size:e="L",className:t,children:r,...i})=>n("XL"===e||"L"===e?"h1":"h2",{className:d(o[e],t),...i,children:r}))),d=(...e)=>e.filter(Boolean).join(" "),h=e=>e?.includes("//"),u=e=>(e||"").replace(/\/?\?.*/,""),x=e=>{if(!e||!h(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var p=Object.freeze({__proto__:null,isURL:h,withoutQuery:u,getOrigin:x});const f="/mobile",b=(e,t)=>{if(!e)return e;const n=x(t?.href);return n?e.replace(n,"")||"/":e},g=e=>e;function N({router:e,handlerDecorator:t=g},n){const r=((e,t)=>{if(!e)return e;const n=b(e,t)||"",r=t?.pathname.startsWith(f);return r&&!h(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,ariaLabel:n.text,onClick:t((t=>{const i=r&&!h(r),l=!n.target||"_self"===n.target;i&&l&&(t.preventDefault(),e.push(r))}),n)}}const v=i((({className:e="",image:{size:t,...i}})=>{const l={width:t?.width?`${t?.width}px`:"100%",height:t?.height?`${t?.height}px`:"100%"};return r("picture",{className:e,children:[i.sources?.length?i.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:y(t)},`${r}_${e}`))):null,n("img",{src:i.src,className:`m-auto ${i.className||""}`,alt:i.alt||i.title,title:i.title,style:l,...t})]})}));function y(e){return e?`image/${String(e)}`:void 0}const w={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active"},k={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text"},$="w-full text-center font-sans select-none",S=i((({className:e,text:t,aboveText:r,appendLeft:i,href:l,target:a,onClick:s,children:c,disabled:o,rounded:m,version:d="none",ariaLabel:h,...u})=>{const x=c??n(C,{text:t,aboveText:r,appendLeft:i,rounded:m});return o?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${$} ${k[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,children:x}):n("a",{className:`${$} inline-block cursor-pointer no-underline ${w[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,href:l,target:a,onClick:s,"aria-label":h,role:l?"link":"button",...u,children:x})})),C=i((({text:e,aboveText:t,appendLeft:i,rounded:l})=>{const a=!e&&!t&&Boolean(i);return r("div",{className:`flex items-center justify-center ${a?"h-12 w-12":"px-9 gap-2 "+(t?"py-2":"py-3.5")} ${l?"rounded-full":""}`,children:[i||null,a?null:r("div",{children:[n("div",{className:"text-m-2xs text-left",children:t}),n("div",{className:"text-m-button font-medium text-left",children:e})]})]})})),_="first:mt-0 mt-3";const j={primary:"text-primary-text",secondary:"text-secondary-text"},D={primary:"bg-primary-main",secondary:"bg-secondary-text"},T=i((({className:e="",isDotted:t=!0,text:i,children:l,version:a="primary",white:s})=>r("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t&&n("div",{className:I(a,s)}),n("span",{className:s?"text-white":j[a],children:i||l})]}))),I=(e,t)=>`rounded-full inline-block mr-3 ${t?"bg-white":D[e]} ${"primary"===e?"w-2 h-2 min-w-2 min-h-2 mt-2":"w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5"}`;function L(e=[],t){return n("section",{className:"mt-3",role:"list",children:e.map(((e,r)=>n(T,{className:"mt-1.5 first:mt-0",text:e,version:t},String(r))))})}const R=i((({context:e,description:t,children:i,buttons:l,image:a,items:c,version:o="primary"})=>{const m=e.useRouter(),{handlerDecorator:d}=e;return r("div",{children:[t&&n("div",{className:"font-normal text-base mt-3",children:t}),i,c?.length&&L(c,o),l?.length&&n("div",{className:"mt-[18px]",children:l.map(((e,t)=>function({icon:e,...t},r){if(t?.text)return n(S,e?{className:_,appendLeft:n(s,{name:e,width:"24",height:"24"}),...t}:{className:_,...t},String(r))}(N({router:m,handlerDecorator:d},e),t)))}),a?.src&&n(v,{className:"mt-auto ml-7",image:a})]})}));function O(e=""){const t=c(e);return t<=4?"S":t<=8?"M":"L"}const A={left:"items-start",center:"items-center",right:"items-end"},M=i((({className:e,context:t,title:i,titleSize:l,description:a,children:s,buttons:c,image:o,items:d,version:h="primary",align:u="left"})=>r("div",{className:`font-sans flex flex-col grow h-full ${A[u]}`,children:[i&&n(m,{size:l||O(e),className:"font-medium m-0 whitespace-pre-wrap max-w-[600px] "+("primary"===h?"text-primary-text":""),children:i}),n(R,{context:t,buttons:c,image:o,children:s,description:a,items:d})]}))),B={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},V=i((e=>{const{children:t,className:r="",version:i="primary",role:l}=e;return n("section",{className:`font-sans p-9 box-border ${r||""} ${B[i]} ${P(r)} ${H(r)} `,role:l,children:n(M,{...e,children:t})})}));function P(e=""){const t=c(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}function H(e=""){const t=c(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Z="https://www.cbr-xml-daily.ru/daily_json.js",z=["USD","EUR"],E={USD:"DollarIcon",EUR:"EuroIcon"},F=[{text:"Все показатели",href:"https://cbr.ru/currency_base/daily/",version:"secondary"}],G=i((({className:e,context:t,title:i})=>{const{data:l}=t.useAsyncData(Z,J);return n(V,{className:e,context:t,title:i||"Курсы обмена валют",buttons:F,children:r("table",{children:[n("thead",{children:r("tr",{children:[n(U,{children:"Валюта"}),n(U,{className:"pl-11",children:"Курс"})]})}),n("tbody",{children:z.map((e=>{const t=(l?.Valute||{})[e]?.Value;return r("tr",{children:[n(W,{className:"pt-4",children:r("div",{className:"flex items-center",children:[n(s,{name:E[e],width:"24",height:"24"}),n("span",{className:"ml-2",children:e})]})}),n(W,{className:"pt-4 pl-11",children:K(t)})]},e)}))})]})})})),U=i((({className:e="",children:t})=>n("th",{className:`text-left font-normal text-sm text-secondary-text ${e}`,children:t}))),W=i((({className:e="",children:t})=>n("td",{className:`text-left font-normal text-base text-primary-text ${e}`,children:t})));async function J(){const e=await fetch(Z);return await e.json()}const X=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),K=e=>e?X.format(e):"",Q=i((({bgColor:e="transparent",className:t="",title:i,description:l,image:a})=>r("section",{className:`px-4 py-6 ${e} ${t}`,children:[i&&n(m,{size:"L",className:"text-primary-text mt-0 font-medium",children:i}),l&&n("p",{className:"font-normal text-m-md "+(i?"mt-2.5":""),children:l}),a?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(v,{image:a})})]}))),Y={left:"text-left",center:"text-center",right:"text-right"},q={double:"mb-8",single:"mb-[26px]"},ee={double:"gap-x-5 gap-y-[26px] flex-wrap",single:"gap-3.5 flex-col"},te=i((({className:e="",title:t,align:i,documents:l,icon:a,columnsMode:c="single"})=>{const o=ee[c];return r("section",{className:`font-sans p-[50px] bg-white ${e}`,children:[t&&n(m,{className:`font-medium mt-0 ${q[c]} ${Y[i??"center"]}`,children:t}),n("div",{className:`flex ${o}`,role:"list",children:l?.length?l.map((({text:e,fileSize:t,...i},l)=>r("a",{className:"group flex text-sm align-middle h-fit\n text-primary-text no-underline hover:text-primary-main\n "+("double"===c?"basis-[calc(50%-20px)]":""),role:"listitem",...i,children:[a&&n(s,{className:"mr-2.5 h-fit",name:a,width:"24px",height:"24px"}),r("span",{className:"self-center",children:[e,n("span",{className:"text-secondary-text group-hover:text-primary-main",children:i?.href&&re(ne(i.href),t)})]})]},String(l)))):null})]})})),ne=e=>{if(!e)return"";const t=e.split(".").pop();return!t||t.includes("/")?"":t},re=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),ie=i((({className:e,title:t,image:i,benefits:l})=>r("section",{className:`relative font-sans text-primary-text bg-white p-14 ${e}`,children:[n(m,{className:"font-medium m-0 text-center",children:t}),r("div",{className:"flex justify-center mt-9",children:[i?.src&&n(v,{className:"mr-6",image:i}),l?.length?n("div",{className:"flex flex-col",children:l.map(le)}):null]})]})));function le(e,t){return r("div",{className:"flex flex-row mb-8",children:[e.icon&&n(s,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48"}),r("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&n("div",{className:"font-medium text-primary-text text-xl m-0",children:e.label}),e.description&&n("div",{className:"font-normal text-sm text-secondary-text",children:e.description})]})]},String(t))}const ae={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},se=i((({title:e,description:t,blockVersion:i="primary",iconVersion:l,image:a,className:s="",items:c})=>{const o=ae[i];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${s}`,children:["small"===l?oe(o.icon):null,"big"===l?me(a):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${o.title}`,children:e}):null,t?n("div",{className:`text-sm ${o.description}`,children:t}):null,c?.length?ce(c):null]})]})}));function ce(e=[],t){return n("section",{className:"mt-1",role:"list",children:e.map(((e,r)=>n(T,{text:e,version:t},String(r))))})}function oe(e){return n("div",{className:"mb-3",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function me(e){return e?.src?n(v,{className:"pb-3 mr-auto",image:e}):null}const de={Headline:Q,LinkDocs:te,TextBlock:se,PictureText:ie},he=i((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 ",children:e?.length?e.map(ue(t)):null}))),ue=e=>(t,r)=>{const i=t?.accordionBlockType;if(!i||!(i in de))return null;return n("div",{className:"mb-5 last:mb-0 py-2.5",children:n(de[i],{context:e,...t,className:"!p-0"})},`block_${r}`)},xe=i((({label:e,blocks:t,bordered:i,context:l})=>{const{hasContent:a,icon:c,handleToggle:o}=(({context:e,blocks:t})=>{const[n,r]=e.useState(!1),i=t?.length;return{isActive:n,hasContent:i,icon:n?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!i)return;r(!n);const t=(({target:e})=>"BUTTON"===e.tagName?e.nextSibling:e.parentNode.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:l,blocks:t});return r("li",{className:(i?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0 py-[14px]")+" border-solid border-main-divider",children:[r("button",{className:"border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n "+(a?"group cursor-pointer":""),onClick:o,children:[n("span",{className:"text-m-title-xs pr-2.5 font-medium "+(a?"group-hover:text-primary-main":""),children:e}),a?n(s,{name:c,width:"24",height:"24"}):null]}),a?n(he,{blocks:t,context:l}):null]})})),pe=i((({title:e,description:t,accordionItems:i,context:l,className:a="",bordered:s})=>r("section",{className:`py-6 font-sans bg-white text-primary-text ${s?"px-4":""} ${a}`,children:[e?n(m,{className:"m-0 mb-2 font-medium text-center",size:"M",children:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,i?.length?n("ul",{className:"list-none m-0 p-0",children:i.map(((e,t)=>n(xe,{...e,context:l,bordered:s},`AccordionItem${t}`)))}):null]}))),fe=i((({className:e,viewBox:t,fill:r="none",width:i,height:l,paths:a,...s})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:i,height:l,children:a.map((({d:e,fill:t,...r},i)=>n("path",{d:e,fill:t||"currentColor",...s,...r},i)))}))),be=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],ge={"bg-white":"text-primary-main",transparent:"text-white"},Ne={"bg-white":"text-black",transparent:"text-white"},ve=i((({className:e="",href:t,children:i,targetBlank:l,bgColor:a="bg-white",hideTitle:s})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:l?"_blank":"_self",children:[n(fe,{className:`${ge[a]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:be.map((e=>({d:e})))}),!s&&n("span",{className:`${Ne[a]} text-sm font-medium ml-2.5`,children:i||"Россельхозбанк"})]}))),ye=i((({className:e,title:t="Мобильное приложение",description:i,href:l="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:l?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(ve,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:l,target:"_blank",className:"flex flex-col justify-center pl-3",children:[n("div",{className:"text-sm font-medium",children:t}),n("div",{className:"text-xs text-secondary-text",children:i})]})]}):null}))),we=i((({className:e,items:t,hasButton:i,context:l})=>{const a=l.useRouter(),{handlerDecorator:s}=l;return r("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(ke):null,i?n(S,{version:"primary",className:"my-4",...N({router:a,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),ke=(e,t)=>{const{type:i,text:l,description:a}=e;return r("div",{className:"mb-4",children:[n("div",{children:$e(i,l)}),n("div",{className:"font-sans text-sm text-secondary-text",children:a})]},String(t))},$e=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${Se(t)}`,children:t});case"email":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},Se=e=>e.replaceAll(/\D/g,""),Ce=i((({title:e,links:t,className:i="",context:l})=>{const a=l.useRouter(),{handlerDecorator:s}=l;return r("div",{className:i,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-5 py-5",children:t.map(((e,t)=>n(_e,{index:t,...N({router:a,handlerDecorator:s},e)},String(t))))}):null]})})),_e=i((({className:e="",index:t,text:r,href:i,target:l,onClick:a})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:i,target:l,onClick:a,children:r||`Документ ${t}`}))),je=[{origins:["t.me","telegram.org"],icon:"TelegramIcon",label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:"VKIcon",label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:"OkIcon",label:"Одноклассники",width:"12px",height:"20px"}],De=i((({href:e})=>{const{icon:t,width:r,height:i}=je.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?n("a",{className:"flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:fill-primary-main",href:e,target:"_blank",rel:"noopener noreferrer",children:s&&n(s,{name:t,width:r,height:i,asSVG:!0,className:"block"})}):null})),Te=i((({className:e,media:t,context:r})=>{const i=r.useRouter(),{handlerDecorator:l}=r;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(De,{...N({router:i,handlerDecorator:l},e)},String(t))))})})),Ie=i((({className:e,links:t,context:i})=>{const l=i.useRouter(),{handlerDecorator:a}=i;return r("div",{className:`${e||""}`,children:[n("div",{className:"pt-5 pb-[5px]",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>n(Le,{index:t,...N({router:l,handlerDecorator:a},e)},String(t))))}):null]})})),Le=i((({className:e,index:t,text:r,href:i,target:l,onClick:a})=>n("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:i,target:l,onClick:a,children:r||`Документ ${t}`}))),Re=i((({className:e,context:t})=>{const{term:i,setTerm:l}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(s,{name:"LoupeIcon",width:"24",height:"24"})}),!i&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer font-sans font-normal text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:i,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input"}),n(S,{version:"primary",text:"Найти",className:"w-auto invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e.preventDefault(),console.log("click")},children:n("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),Oe=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkDocs",documents:e.items||[]}]}))),Ae=i((({className:e="",documents:t,relatedEnterprises:i,contacts:l,socialMedia:a,topItems:s,context:c,horizontalNavigationTitle:o,subMenu:m})=>{const d={context:c,accordionItems:Oe(s)};return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(we,{className:"overflow-hidden",items:l,context:c,hasButton:!0}),n(pe,{className:"p-0 pt-0 pb-0 mb-4",...d}),n("div",{children:m?.map(Me)}),n(ye,{context:c,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Re,{context:c,className:"grow"}),n(Te,{className:"pb-4",media:a,context:c}),n(Ce,{title:o,links:i,context:c}),n(Ie,{links:t,context:c})]})})),Me=(e,t)=>{const{icon:i,href:l,text:a}=e;return r(S,{href:l,className:"flex text-sm mb-4",children:[i?n(s,{className:"pr-1",name:i,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:a})]},`footer-${t}`)},Be=(e,t,n=((e,t)=>t.startsWith(e)))=>n(u(e),(e=>(e||"").replace(f,""))(u(h(e)?t.href:t.pathname))),Ve=e=>t=>Be(t.href,e),Pe=e=>t=>e?.href===t?.href,He=(e,t)=>{return(r=e,i=t,(r||[]).map((e=>i?.find(Pe(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Pe(e))))));var n,r,i};async function Ze(){const e=await fetch(ze());return await e.json()}function ze(){return`/wcms-resources/${a.SITEMAP||"sitemap"}.json`}const Ee="absolute left-0 -bottom-3 w-full h-[2px]",Fe=i((({className:e,text:t,href:i,target:l,active:a,onClick:s,children:c,bgColor:o="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:i,target:l,onClick:s,children:[n("span",{className:Ge(o,a),children:t||c}),a?n("div",{className:Ue(o,a)}):null]}))),Ge=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans font-normal text-sm`},Ue=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Ee}`:Ee,We=i((({context:e,burgerSubMenu:t,onClick:i,defaultLocation:l="",children:a})=>{const[c,o]=e.useGeolocation(l);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4",children:[n("button",{className:"absolute top-4 right-4",onClick:i,children:n(s,{name:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r(S,{onClick:o,className:"flex items-center text-sm text-secondary-text mb-4",children:[n(s,{name:"GeolocationIcon",width:"24",height:"24",className:"box-border mr-2",asSVG:!0}),c]}),a,n("div",{className:"mb-7",children:t?.map(Je)}),n(Re,{context:e,className:"grow"})]})})),Je=(e,t)=>{const{icon:i,href:l,text:a}=e;return r(S,{href:l,className:"flex text-sm mb-4",children:[i?n(s,{className:"pr-1",name:i,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:a})]},`headerSubMenu-${t}`)},Xe=i((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pr-4",onClick:e,children:n(s,{name:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",width:"24",height:"24",asSVG:!0})}),n(ve,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm",children:"Войти"})]}))),Ke=i((({className:e="",defaultLocation:t,bgColor:i="bg-white",context:l,topItems:a,burgerSubMenu:s})=>{const c=l.useRouter(),o=function(e){const{data:t}=e(ze(),Ze);return t||{}}(l.useAsyncData),{handlerDecorator:m}=l,d=He(o.topItems,a).find((e=>t=>t.items?.some(Ve(e))||Be(t.href,e))(c)),h=d?.items,u=(e=>(t=[])=>{const n=t?.filter(Ve(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(c)(h),[x,p]=l.useState(!1),f=()=>p(!x);return r("header",{className:`${i} ${e}`,children:[r("div",{className:"container px-4 py-0",children:[n(Xe,{onClick:f,bgColor:i}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex",children:h?.map(((e,t)=>Qe({...N({router:c,handlerDecorator:m},e),active:e===u,bgColor:i},t)))})})]}),x?n(We,{context:l,onClick:f,burgerSubMenu:s,defaultLocation:t,children:n(pe,{context:l,accordionItems:Oe(a),className:"p-0 pt-0 pb-0 mb-4"})}):null]})})),Qe=(e,t)=>n(Fe,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t)),Ye=i((({className:e="",context:t,title:r})=>n(V,{className:`pr-0 min-h-0 ${e}`,context:t,title:r,description:"Блок в разработке...",children:n("figure",{className:"m-0",children:qe()})}))),qe=(e=3)=>tt(100,e).map((e=>Math.floor(e))).map(et),et=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),tt=(e,t)=>[e].concat(t>0?tt(e/1.618,t-1):[]),nt={primary:"text-primary-text",secondary:"text-white"},rt={primary:"text-secondary-text",secondary:"text-white"};const it=i((({className:e,context:t,title:i,titleSize:l,description:a,benefits:c,buttons:o,image:m,items:d,version:h="primary"})=>r("div",{className:`${e||""}`,children:[n("div",{children:n(M,{context:t,title:i,titleSize:l||"XL",description:a,items:d,buttons:o,children:c?.length?n("div",{className:"mt-[19px]",children:c.map(((e,t)=>function(e,t,i){return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon&&n(s,{className:"w-[25px] h-[25px] rounded-full box-border",name:e.icon,width:"24",height:"24"}),n("h4",{className:`font-medium text-m-base m-0 ${nt[i]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${rt[i]}`,children:e.description})]},String(t))}(e,t,h)))}):null})}),m?.src&&n("div",{className:"mt-5",children:n(v,{image:{className:"block",...m}})})]}))),lt=i((e=>{const{className:t}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${t||""}`,children:n(it,{...e})})})),at=i((({block:e,titleSize:t,context:r})=>n("section",{className:"flex grow-0 shrink-0 basis-full px-4 py-6",role:"listitem",children:n("div",{className:"flex grow",children:n(it,{context:r,titleSize:t,...e})})}))),st=i((({className:e,context:t,duration:i=0,slides:l=[]})=>{const a=l.map((e=>e.productBlock)),[s,c]=t.useState(0);return r("section",{className:`font-sans bg-white overflow-hidden w-100 ${e||""}`,children:[n("div",{className:"flex duration-1000",style:{transform:`translateX(-${s}00%)`},role:"list",children:a.map(((e,r)=>n(at,{block:e,context:t},String(r))))}),n("div",{className:"flex px-4 py-6",children:l.map(((e,t)=>function({i:e,activeSlideIndex:t,onClick:r,duration:i}){return n("button",{type:"button",onClick:r,className:"relative overflow-hidden border-0 bg-inherit cursor-pointer pl-0 mr-1.5 pt-4 pb-5 last:mr-0 grow basis-0",children:n("div",{className:"absolute bottom-0 left-0 w-full h-[3px] "+(e===t?"animate-slide bg-primary-main":"bg-main-divider"),style:{animationDuration:`${i}s`,animationFillMode:"forwards"}})},String(e))}({i:t,activeSlideIndex:s,onClick:()=>c(t),duration:i})))})]})}));const ct=i((({className:e,title:t,description:i,steps:l,size:a="normal"})=>r("section",{className:`box-border font-sans text-primary-text bg-white px-4 py-6 flex flex-col ${e||""}`,children:[t&&n(m,{size:"M",className:"font-medium m-0 text-center",children:t}),i&&n("p",{className:`text-m-md text-center ${t&&"mt-2"}`,children:i}),l?.length?n("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:n("div",{className:"flex flex-col justify-between gap-x-[101px]",children:l.map(((e,t)=>ot({step:e,size:a,i:t,length:l.length})))})}):null]}))),ot=e=>{const{step:t,size:i,i:l,length:a}=e,s=a-1===l,c="normal"===i?"ml-[34px]":"ml-[24px]";return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{children:[mt(t,i,l),!s&&n("div",{className:`min-h-8 h-full w-[2px] bg-secondary-light ${c}`})]}),r("div",{className:"flex flex-col justify-center relative",children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:"font-normal text-sm text-secondary-text text-left "+(t.label?"mt-1":""),children:t.description})]})]},String(l))},String(l))},mt=(e,t,r)=>{const i="normal"===t?"38":"27";return n("div",{className:`${"normal"===t?"h-[70px] w-[70px] min-w-[70px] min-h-[70px]":"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"} bg-secondary-light rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium text-secondary-text self-center ${"normal"===t?"text-m-title":"text-m-title-xs"}`,children:e.icon&&n(s,{name:e.icon,width:i,height:i})||r+1})})},dt={ExchangeRateTile:G,Footer:Ae,Header:Ke,Headline:Q,Placeholder:Ye,ProductBlock:lt,ProductGallery:st,TextBlock:se,StepsBlock:ct},ht=i((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:ut()}))),ut=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),n("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},xt=i((({className:e,context:t})=>{const i=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,children:[n(ht,{onClick:i.like,ariaLabel:"Поставить отметку «лайк»"}),n(ht,{onClick:i.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:i.likeCount})]})})),pt=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),ft=i((({className:e,context:t,blocksRegistry:i,data:{style:l,blocks:a,slots:s={},likeControl:c,colorPalette:o="pc"},blockDecorator:m=pt})=>{const{header:d}=s;return r("section",{className:`relative ${gt(l)} ${e||""}`,"data-theme":o,children:[d?.blocks?.length?n("div",{className:`${gt(d?.style)}`,children:d.blocks.map(((e,n)=>bt({block:e,blockDecorator:m,blocksRegistry:i,context:t},n)))}):null,a?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:a.map(((e,n)=>bt({block:e,blockDecorator:m,blocksRegistry:i,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(xt,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function bt({block:e,blockDecorator:t,blocksRegistry:r,context:i},l){const{type:a}=e;a in r||console.warn(`No block with "${a}" is registered`);const s=r[a]||Ye;return t({blockClassName:gt(e.style),block:e,render:e=>{const{version:c,content:o,blocks:m}=e.block;return n(s,{className:e.blockClassName,version:c,context:i,...o,children:m?.length?m.map(((e,n)=>bt({block:e,blockDecorator:t,blocksRegistry:r,context:i},n))):null},`${a}-${l}`)}},`block-${l}`)}function gt(e){return e?e.join(" "):""}const Nt=i((({HeadComponent:e,data:t,children:i})=>{const{title:l,description:a,keywords:s,robots:c,og:o}=t;return r(e,{children:[n("title",{children:l}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),a&&n("meta",{name:"description",content:a}),s&&n("meta",{name:"keywords",content:s.join(",")}),c&&n("meta",{name:"robots",content:c.join(",")}),o?Object.entries(o).map((([e,t])=>n("meta",{name:`og:${e}`,content:t},e))):null,i]})}));function vt(e){return e?.filter((({mobile:e})=>!e?.hidden)).map(yt)}function yt(e){const{mobile:t}=e;return t?{...e,style:t.style?.length?t.style:e.style}:e}e.Blocks=dt,e.ContentPage=ft,e.ContentPageHead=Nt,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.Header=Ke,e.Icon=s,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(l)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(l,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:i}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i},body:JSON.stringify({node_ids:r})}),{likes:l}=await n.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:i,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:a}=await n.json();return a||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:i,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:a}=await n.json();return a||0}catch(e){return console.error(e),0}}}},e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.projectSettings=a,e.setup=t,e.toMobilePage=function(e){const{blocks:t,slots:n}=e;return{...e,blocks:vt(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:vt(n[t].blocks)}})),{})}},e.url=p,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -22,7 +22,7 @@ exports.Header = (0, uni_jsx_1.JSX)(({ className = '', defaultLocation, bgColor
|
|
|
22
22
|
const activeSubItem = (0, findActiveSubItem_1.findActiveSubItem)(router)(subItems);
|
|
23
23
|
const [burgerMenuShow, setBurgerMenuShow] = context.useState(false);
|
|
24
24
|
const toggleBurgerMenu = () => setBurgerMenuShow(!burgerMenuShow);
|
|
25
|
-
return ((0, jsx_runtime_1.jsxs)("header", { className: `${bgColor} ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "container px-4 py-0", children: [(0, jsx_runtime_1.jsx)(HeaderTop_1.HeaderTop, { onClick: toggleBurgerMenu, bgColor: bgColor }), (0, jsx_runtime_1.jsx)("nav", { className: "flex items-center m-0 p-0 overflow-
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)("header", { className: `${bgColor} ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "container px-4 py-0", children: [(0, jsx_runtime_1.jsx)(HeaderTop_1.HeaderTop, { onClick: toggleBurgerMenu, bgColor: bgColor }), (0, jsx_runtime_1.jsx)("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]", children: (0, jsx_runtime_1.jsx)("div", { className: "flex", children: subItems?.map((_, i) => renderSubItem({
|
|
26
26
|
...(0, useLink_1.useLink)({ router, handlerDecorator }, _),
|
|
27
27
|
active: _ === activeSubItem,
|
|
28
28
|
bgColor,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/components/Header/Header.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAC9C,gFAA6E;AAC7E,4EAAyE;AACzE,wEAAqE;AACrE,kEAA+D;AAE/D,mEAAgE;AAEhE,qEAAkE;AAClE,sDAAmD;AACnD,iDAA8C;AAE9C,2CAAwC;AAI3B,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,eAAe,EAAE,OAAO,GAAG,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,EAAE;IAC9F,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACjD,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,MAAM,WAAW,GAAG,IAAA,6BAAa,EAAC,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC9D,MAAM,aAAa,GAAG,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AAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,IAAkB,EAAE,CAAS,EAAE,EAAE,CAAC,CACvD,uBAAC,uBAAU,IAAiB,SAAS,EAAC,gCAAgC,KAAK,IAAI,IAA9D,MAAM,CAAC,CAAC,CAAC,CAAyD,CACpF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PlaceholderContent } from '../../components/Placeholder/PlaceholderContent';
|
|
2
1
|
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { PlaceholderContent } from './PlaceholderContent';
|
|
3
3
|
export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
@@ -4,8 +4,8 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Tile_1 = require("../Tile/Tile");
|
|
6
6
|
const GOLDEN_RATIO = 1.618;
|
|
7
|
-
exports.Placeholder = (0, uni_jsx_1.JSX)(({ className, context, title }) => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)(Tile_1.Tile, { className: className
|
|
7
|
+
exports.Placeholder = (0, uni_jsx_1.JSX)(({ className = '', context, title }) => {
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)(Tile_1.Tile, { className: `pr-0 min-h-0 ${className}`, context: context, title: title, description: "\u0411\u043B\u043E\u043A \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u043A\u0435...", children: (0, jsx_runtime_1.jsx)("figure", { className: "m-0", children: renderShimmer() }) }));
|
|
9
9
|
});
|
|
10
10
|
const renderShimmer = (size = 3) => goldenSequence(100, size)
|
|
11
11
|
.map((_) => Math.floor(_))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../../../src/components/Placeholder/Placeholder.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uCAAoC;AAOpC,MAAM,YAAY,GAAG,KAAK,CAAC;AAEd,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../../../src/components/Placeholder/Placeholder.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uCAAoC;AAOpC,MAAM,YAAY,GAAG,KAAK,CAAC;AAEd,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;IACtF,OAAO,CACL,uBAAC,WAAI,IACH,SAAS,EAAE,gBAAgB,SAAS,EAAE,EACtC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAC,iGAAsB,YAElC,mCAAQ,SAAS,EAAC,KAAK,YAAE,aAAa,EAAE,GAAU,GAC7C,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,CAAC,IAAI,GAAG,CAAC,EAAE,EAAE,CACjC,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC;KACtB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACzB,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAE5B,MAAM,iBAAiB,GAAG,CAAC,KAAK,GAAG,GAAG,EAAE,KAAa,EAAE,EAAE,CAAC,CACxD,gCAAyB,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,EAAE,EAAE,SAAS,EAAC,6BAA6B,IAArF,MAAM,CAAC,KAAK,CAAC,CAA2E,CACnG,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,IAAY,EAAY,EAAE,CAC/D,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,GAAG,YAAY,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -20,7 +20,7 @@ export const Header = JSX(({ className = '', defaultLocation, bgColor = 'bg-whit
|
|
|
20
20
|
const activeSubItem = findActiveSubItem(router)(subItems);
|
|
21
21
|
const [burgerMenuShow, setBurgerMenuShow] = context.useState(false);
|
|
22
22
|
const toggleBurgerMenu = () => setBurgerMenuShow(!burgerMenuShow);
|
|
23
|
-
return (_jsxs("header", { className: `${bgColor} ${className}`, children: [_jsxs("div", { className: "container px-4 py-0", children: [_jsx(HeaderTop, { onClick: toggleBurgerMenu, bgColor: bgColor }), _jsx("nav", { className: "flex items-center m-0 p-0 overflow-
|
|
23
|
+
return (_jsxs("header", { className: `${bgColor} ${className}`, children: [_jsxs("div", { className: "container px-4 py-0", children: [_jsx(HeaderTop, { onClick: toggleBurgerMenu, bgColor: bgColor }), _jsx("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]", children: _jsx("div", { className: "flex", children: subItems?.map((_, i) => renderSubItem({
|
|
24
24
|
...useLink({ router, handlerDecorator }, _),
|
|
25
25
|
active: _ === activeSubItem,
|
|
26
26
|
bgColor,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/components/Header/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,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AAC,gCAAgC,KAAK,IAAI,IAA9D,MAAM,CAAC,CAAC,CAAC,CAAyD,CACpF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PlaceholderContent } from '../../components/Placeholder/PlaceholderContent';
|
|
2
1
|
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { PlaceholderContent } from './PlaceholderContent';
|
|
3
3
|
export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { Tile } from '../Tile/Tile.js';
|
|
4
4
|
const GOLDEN_RATIO = 1.618;
|
|
5
|
-
export const Placeholder = JSX(({ className, context, title }) => {
|
|
6
|
-
return (_jsx(Tile, { className: className
|
|
5
|
+
export const Placeholder = JSX(({ className = '', context, title }) => {
|
|
6
|
+
return (_jsx(Tile, { className: `pr-0 min-h-0 ${className}`, context: context, title: title, description: "\u0411\u043B\u043E\u043A \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u043A\u0435...", children: _jsx("figure", { className: "m-0", children: renderShimmer() }) }));
|
|
7
7
|
});
|
|
8
8
|
const renderShimmer = (size = 3) => goldenSequence(100, size)
|
|
9
9
|
.map((_) => Math.floor(_))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../../../src/components/Placeholder/Placeholder.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAOpC,MAAM,YAAY,GAAG,KAAK,CAAC;AAE3B,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EA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GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -34,7 +34,7 @@ export const Header = JSX<HeaderProps>(
|
|
|
34
34
|
<header className={`${bgColor} ${className}`}>
|
|
35
35
|
<div className="container px-4 py-0">
|
|
36
36
|
<HeaderTop onClick={toggleBurgerMenu} bgColor={bgColor} />
|
|
37
|
-
<nav className="flex items-center m-0 p-0 overflow-
|
|
37
|
+
<nav className="flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]">
|
|
38
38
|
<div className="flex">
|
|
39
39
|
{subItems?.map((_, i) =>
|
|
40
40
|
renderSubItem(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { PlaceholderContent } from '../../components/Placeholder/PlaceholderContent';
|
|
3
|
-
import { Tile } from '../Tile/Tile';
|
|
4
2
|
import type { UniBlockProps } from '../../types';
|
|
3
|
+
import { Tile } from '../Tile/Tile';
|
|
4
|
+
import type { PlaceholderContent } from './PlaceholderContent';
|
|
5
5
|
|
|
6
6
|
export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
|
|
7
7
|
className?: string;
|
|
@@ -9,10 +9,15 @@ export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
|
|
|
9
9
|
|
|
10
10
|
const GOLDEN_RATIO = 1.618;
|
|
11
11
|
|
|
12
|
-
export const Placeholder = JSX<PlaceholderProps>(({ className, context, title }) => {
|
|
12
|
+
export const Placeholder = JSX<PlaceholderProps>(({ className = '', context, title }) => {
|
|
13
13
|
return (
|
|
14
|
-
<Tile
|
|
15
|
-
|
|
14
|
+
<Tile
|
|
15
|
+
className={`pr-0 min-h-0 ${className}`}
|
|
16
|
+
context={context}
|
|
17
|
+
title={title}
|
|
18
|
+
description="Блок в разработке..."
|
|
19
|
+
>
|
|
20
|
+
<figure className="m-0">{renderShimmer()}</figure>
|
|
16
21
|
</Tile>
|
|
17
22
|
);
|
|
18
23
|
});
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@ export const Header = JSX<HeaderProps>(
|
|
|
34
34
|
<header className={`${bgColor} ${className}`}>
|
|
35
35
|
<div className="container px-4 py-0">
|
|
36
36
|
<HeaderTop onClick={toggleBurgerMenu} bgColor={bgColor} />
|
|
37
|
-
<nav className="flex items-center m-0 p-0 overflow-
|
|
37
|
+
<nav className="flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]">
|
|
38
38
|
<div className="flex">
|
|
39
39
|
{subItems?.map((_, i) =>
|
|
40
40
|
renderSubItem(
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { UniBlockProps } from '../../types';
|
|
3
|
+
import { Tile } from '../Tile/Tile';
|
|
4
|
+
import type { PlaceholderContent } from './PlaceholderContent';
|
|
5
|
+
|
|
6
|
+
export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const GOLDEN_RATIO = 1.618;
|
|
11
|
+
|
|
12
|
+
export const Placeholder = JSX<PlaceholderProps>(({ className = '', context, title }) => {
|
|
13
|
+
return (
|
|
14
|
+
<Tile
|
|
15
|
+
className={`pr-0 min-h-0 ${className}`}
|
|
16
|
+
context={context}
|
|
17
|
+
title={title}
|
|
18
|
+
description="Блок в разработке..."
|
|
19
|
+
>
|
|
20
|
+
<figure className="m-0">{renderShimmer()}</figure>
|
|
21
|
+
</Tile>
|
|
22
|
+
);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const renderShimmer = (size = 3) =>
|
|
26
|
+
goldenSequence(100, size)
|
|
27
|
+
.map((_) => Math.floor(_))
|
|
28
|
+
.map(renderShimmerItem);
|
|
29
|
+
|
|
30
|
+
const renderShimmerItem = (width = 100, index: number) => (
|
|
31
|
+
<div key={String(index)} style={{ width: `${width}%` }} className="h-4 mt-2 bg-secondary-light" />
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
const goldenSequence = (first: number, size: number): number[] =>
|
|
35
|
+
[first].concat(size > 0 ? goldenSequence(first / GOLDEN_RATIO, size - 1) : []);
|