infinity-forge 9.2.6 → 9.2.8
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/infinity-forge.css +1 -1
- package/dist/react-quill.css +1 -1
- package/dist/system/context/container.d.ts +4 -1
- package/dist/system/context/container.js +4 -2
- package/dist/system/context/container.js.map +1 -1
- package/dist/system/context/third-party-integration-context/context.d.ts +6 -0
- package/dist/system/context/third-party-integration-context/context.js +13 -0
- package/dist/system/context/third-party-integration-context/context.js.map +1 -0
- package/dist/system/context/third-party-integration-context/index.d.ts +2 -0
- package/dist/system/context/third-party-integration-context/index.js +19 -0
- package/dist/system/context/third-party-integration-context/index.js.map +1 -0
- package/dist/system/context/third-party-integration-context/interfaces.d.ts +7 -0
- package/dist/system/context/third-party-integration-context/interfaces.js +3 -0
- package/dist/system/context/third-party-integration-context/interfaces.js.map +1 -0
- package/dist/test/index.d.ts +0 -2
- package/dist/test/index.js +1 -112
- package/dist/test/index.js.map +1 -1
- package/dist/ui/codie-dynamic/components/directory-filter/categories-carousel/carousel-config.d.ts +2 -0
- package/dist/ui/codie-dynamic/components/directory-filter/categories-carousel/carousel-config.js +46 -0
- package/dist/ui/codie-dynamic/components/directory-filter/categories-carousel/carousel-config.js.map +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/categories-carousel/index.d.ts +3 -0
- package/dist/ui/codie-dynamic/components/directory-filter/categories-carousel/index.js +114 -0
- package/dist/ui/codie-dynamic/components/directory-filter/categories-carousel/index.js.map +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/categories-carousel/styles.d.ts +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/categories-carousel/styles.js +14 -0
- package/dist/ui/codie-dynamic/components/directory-filter/categories-carousel/styles.js.map +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filter-simple/index.d.ts +13 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filter-simple/index.js +188 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filter-simple/index.js.map +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filter-simple/select-locale/index.d.ts +3 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filter-simple/select-locale/index.js +17 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filter-simple/select-locale/index.js.map +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filter-simple/styles.d.ts +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filter-simple/styles.js +14 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filter-simple/styles.js.map +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filters/index.d.ts +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filters/index.js +69 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filters/index.js.map +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filters/render-stars.d.ts +3 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filters/render-stars.js +12 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filters/render-stars.js.map +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filters/styles.d.ts +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filters/styles.js +14 -0
- package/dist/ui/codie-dynamic/components/directory-filter/filters/styles.js.map +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/hooks/index.d.ts +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/hooks/index.js +18 -0
- package/dist/ui/codie-dynamic/components/directory-filter/hooks/index.js.map +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/hooks/use-dynamic-filter.d.ts +16 -0
- package/dist/ui/codie-dynamic/components/directory-filter/hooks/use-dynamic-filter.js +80 -0
- package/dist/ui/codie-dynamic/components/directory-filter/hooks/use-dynamic-filter.js.map +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/index.d.ts +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/index.js +18 -0
- package/dist/ui/codie-dynamic/components/directory-filter/index.js.map +1 -0
- package/dist/ui/codie-dynamic/components/directory-filter/use-filter.d.ts +8 -0
- package/dist/ui/codie-dynamic/components/directory-filter/use-filter.js +14 -0
- package/dist/ui/codie-dynamic/components/directory-filter/use-filter.js.map +1 -0
- package/dist/ui/codie-dynamic/components/index.d.ts +1 -0
- package/dist/ui/codie-dynamic/components/index.js +18 -0
- package/dist/ui/codie-dynamic/components/index.js.map +1 -0
- package/dist/ui/codie-dynamic/index.d.ts +1 -0
- package/dist/ui/codie-dynamic/index.js +18 -0
- package/dist/ui/codie-dynamic/index.js.map +1 -0
- package/dist/ui/components/form/input-seo/index.js +1 -1
- package/dist/ui/components/form/input-seo/index.js.map +1 -1
- package/dist/ui/components/form/text-editor/quill.d.ts +2 -2
- package/dist/ui/components/form/text-editor/quill.js +18 -26
- package/dist/ui/components/form/text-editor/quill.js.map +1 -1
- package/dist/ui/components/form/text-editor/react-quill.css +63 -55
- package/dist/ui/components/index.d.ts +1 -0
- package/dist/ui/components/index.js +1 -0
- package/dist/ui/components/index.js.map +1 -1
- package/dist/ui/components/login-modal/index.d.ts +8 -0
- package/dist/ui/components/login-modal/index.js +115 -0
- package/dist/ui/components/login-modal/index.js.map +1 -0
- package/dist/ui/components/login-modal/styles.d.ts +1 -0
- package/dist/ui/components/login-modal/styles.js +14 -0
- package/dist/ui/components/login-modal/styles.js.map +1 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +1 -0
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/integrations/google/hooks/useGoogleLogin.d.ts +2 -2
- package/dist/ui/integrations/google/hooks/useGoogleLogin.js +1 -1
- package/dist/ui/integrations/google/hooks/useGoogleLogin.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
45
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
46
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
47
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
48
|
+
function step(op) {
|
|
49
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
50
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
51
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
52
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
53
|
+
switch (op[0]) {
|
|
54
|
+
case 0: case 1: t = op; break;
|
|
55
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
56
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
57
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
58
|
+
default:
|
|
59
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
60
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
61
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
62
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
63
|
+
if (t[2]) _.ops.pop();
|
|
64
|
+
_.trys.pop(); continue;
|
|
65
|
+
}
|
|
66
|
+
op = body.call(thisArg, _);
|
|
67
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
68
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
72
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
73
|
+
};
|
|
74
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75
|
+
exports.CategoriesCarousel = CategoriesCarousel;
|
|
76
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
77
|
+
var link_1 = __importDefault(require("next/link"));
|
|
78
|
+
var ui_1 = require("../../../../../ui/index.js");
|
|
79
|
+
var carousel_config_1 = require("./carousel-config.js");
|
|
80
|
+
var S = __importStar(require("./styles.js"));
|
|
81
|
+
function CategoriesCarousel(_a) {
|
|
82
|
+
var _this = this;
|
|
83
|
+
var EntityKey = _a.EntityKey;
|
|
84
|
+
var data = (0, ui_1.useQuery)({
|
|
85
|
+
queryKey: [EntityKey, "Categorias"],
|
|
86
|
+
queryFn: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
87
|
+
var response;
|
|
88
|
+
return __generator(this, function (_a) {
|
|
89
|
+
switch (_a.label) {
|
|
90
|
+
case 0: return [4 /*yield*/, (0, ui_1.api)({
|
|
91
|
+
url: '/admin/properties/Categoria/paginated',
|
|
92
|
+
method: 'get',
|
|
93
|
+
body: { params: { EntityKey: EntityKey } },
|
|
94
|
+
})];
|
|
95
|
+
case 1:
|
|
96
|
+
response = _a.sent();
|
|
97
|
+
return [2 /*return*/, response];
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}); },
|
|
101
|
+
}).data;
|
|
102
|
+
var _b = (0, ui_1.useCarousel)({
|
|
103
|
+
id: 'categories-carousel',
|
|
104
|
+
Component: Card,
|
|
105
|
+
items: (data === null || data === void 0 ? void 0 : data.items) || [],
|
|
106
|
+
config: carousel_config_1.carouselConfig,
|
|
107
|
+
}), Carousel = _b.Carousel, Next = _b.Next, Prev = _b.Prev;
|
|
108
|
+
function Card(props) {
|
|
109
|
+
var _a;
|
|
110
|
+
return ((0, jsx_runtime_1.jsxs)(link_1.default, { href: { pathname: '/busca', query: { subCategory: [props.id || ''] } }, className: 'card', children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', dangerouslySetInnerHTML: { __html: (_a = (0, ui_1.parseJSON)(props.jsonContent)) === null || _a === void 0 ? void 0 : _a.svg } }), (0, jsx_runtime_1.jsx)("p", { className: 'font-16-bold', children: props === null || props === void 0 ? void 0 : props.titulo })] }));
|
|
111
|
+
}
|
|
112
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'CategoriesCarousel', children: (0, jsx_runtime_1.jsx)(S.CategoriesCarousel, { children: (0, jsx_runtime_1.jsxs)(ui_1.Container, { children: [(0, jsx_runtime_1.jsx)(Prev, { children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconLeftChevron' }) }), (0, jsx_runtime_1.jsx)(Carousel, {}), (0, jsx_runtime_1.jsx)(Next, { children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconLeftChevron' }) })] }) }) }));
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/codie-dynamic/components/directory-filter/categories-carousel/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,gDA4CC;;AApDD,mDAA4B;AAE5B,2BAAoF;AAEpF,qDAAkD;AAElD,0CAA6B;AAE7B,SAAgB,kBAAkB,CAAC,EAAoC;IAAvE,iBA4CC;QA5CoC,SAAS,eAAA;IACpC,IAAA,IAAI,GAAK,IAAA,aAAQ,EAAC;QACxB,QAAQ,EAAE,CAAC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,iBAAiB,GAAG,GAAI,EAEnD,uBAAC,QAAQ,KAAG,EAEZ,uBAAC,IAAI,IAAC,QAAQ,EAAE,uBAAC,SAAI,IAAC,IAAI,EAAC,iBAAiB,GAAG,GAAI,IACzC,GACS,GACjB,CACT,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CategoriesCarousel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement>, never>> & string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.CategoriesCarousel = void 0;
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
exports.CategoriesCarousel = (0, styled_components_1.default)("section")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-top: -20px;\n\n .container {\n position: relative;\n }\n\n .swiper {\n padding: 5px;\n height: auto;\n }\n\n .prevcategories-carousel,\n .nextcategories-carousel {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n background-color: transparent;\n border: 0;\n padding: 0;\n\n svg {\n height: 24px;\n width: auto;\n stroke: ", ";\n }\n }\n\n .prevcategories-carousel {\n left: -10px;\n }\n\n .nextcategories-carousel {\n right: -10px;\n transform: translateY(-50%) rotate(180deg);\n }\n\n .card {\n height: 100%;\n padding: 10px;\n border-radius: 10px;\n background: ", ";\n box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.1);\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n\n .image {\n max-width: 40px;\n }\n\n p {\n text-align: center;\n line-height: 1.25;\n color: ", ";\n }\n }\n\n @media only screen and (max-width: 1500px) {\n .prevcategories-carousel {\n left: -3px;\n }\n\n .nextcategories-carousel {\n right: -3px;\n }\n }\n\n @media only screen and (max-width: 1024px) {\n .prevcategories-carousel,\n .nextcategories-carousel {\n svg {\n height: 20px;\n }\n }\n\n .prevcategories-carousel {\n left: 0px;\n }\n\n .nextcategories-carousel {\n right: 0px;\n }\n }\n"], ["\n margin-top: -20px;\n\n .container {\n position: relative;\n }\n\n .swiper {\n padding: 5px;\n height: auto;\n }\n\n .prevcategories-carousel,\n .nextcategories-carousel {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n background-color: transparent;\n border: 0;\n padding: 0;\n\n svg {\n height: 24px;\n width: auto;\n stroke: ", ";\n }\n }\n\n .prevcategories-carousel {\n left: -10px;\n }\n\n .nextcategories-carousel {\n right: -10px;\n transform: translateY(-50%) rotate(180deg);\n }\n\n .card {\n height: 100%;\n padding: 10px;\n border-radius: 10px;\n background: ", ";\n box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.1);\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n\n .image {\n max-width: 40px;\n }\n\n p {\n text-align: center;\n line-height: 1.25;\n color: ", ";\n }\n }\n\n @media only screen and (max-width: 1500px) {\n .prevcategories-carousel {\n left: -3px;\n }\n\n .nextcategories-carousel {\n right: -3px;\n }\n }\n\n @media only screen and (max-width: 1024px) {\n .prevcategories-carousel,\n .nextcategories-carousel {\n svg {\n height: 20px;\n }\n }\n\n .prevcategories-carousel {\n left: 0px;\n }\n\n .nextcategories-carousel {\n right: 0px;\n }\n }\n"])), function (p) { return p.theme.orange; }, function (p) { return p.theme.grey; }, function (p) { return p.theme.darkColor; });
|
|
13
|
+
var templateObject_1;
|
|
14
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/ui/codie-dynamic/components/directory-filter/categories-carousel/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAuC;AAE1B,QAAA,kBAAkB,GAAG,IAAA,2BAAM,EAAC,SAAS,CAAC,69CAAA,oZAwBnC,EAAqB,+QAiBnB,EAAmB,iRActB,EAAwB,geA8BtC,KA7De,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,CAAC,MAAM,EAAd,CAAc,EAiBnB,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,CAAC,IAAI,EAAZ,CAAY,EActB,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,CAAC,SAAS,EAAjB,CAAiB,EA8BrC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function FilterSimple({ filters, }: {
|
|
2
|
+
filters: {
|
|
3
|
+
category?: {
|
|
4
|
+
active: boolean;
|
|
5
|
+
};
|
|
6
|
+
sourceFilters?: {
|
|
7
|
+
activeFilters?: string[];
|
|
8
|
+
active: boolean;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function useLocales(): Required<import("../../../../../ui/index.js").QueryState<any>>;
|
|
13
|
+
export declare function useCategories(): Required<import("../../../../../ui/index.js").QueryState<any>>;
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
46
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
47
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
48
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
49
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
50
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
51
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
52
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
56
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
57
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
58
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
59
|
+
function step(op) {
|
|
60
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
61
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
62
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
63
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
64
|
+
switch (op[0]) {
|
|
65
|
+
case 0: case 1: t = op; break;
|
|
66
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
67
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
68
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
69
|
+
default:
|
|
70
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
71
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
72
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
73
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
74
|
+
if (t[2]) _.ops.pop();
|
|
75
|
+
_.trys.pop(); continue;
|
|
76
|
+
}
|
|
77
|
+
op = body.call(thisArg, _);
|
|
78
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
79
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
83
|
+
exports.FilterSimple = FilterSimple;
|
|
84
|
+
exports.useLocales = useLocales;
|
|
85
|
+
exports.useCategories = useCategories;
|
|
86
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
87
|
+
var react_1 = require("react");
|
|
88
|
+
var router_1 = require("next/router");
|
|
89
|
+
var ui_1 = require("../../../../../ui/index.js");
|
|
90
|
+
var hooks_1 = require("../hooks/index.js");
|
|
91
|
+
var select_locale_1 = require("./select-locale/index.js");
|
|
92
|
+
var S = __importStar(require("./styles.js"));
|
|
93
|
+
function FilterSimple(_a) {
|
|
94
|
+
var _this = this;
|
|
95
|
+
var _b, _c, _d, _e;
|
|
96
|
+
var filters = _a.filters;
|
|
97
|
+
var router = (0, router_1.useRouter)();
|
|
98
|
+
var locales = useLocales();
|
|
99
|
+
var categories = useCategories();
|
|
100
|
+
var _f = (0, hooks_1.useDynamicFilter)(), data = _f.data, sourceFilters = _f.sourceFilters, getSourceFiltersToURL = _f.getSourceFiltersToURL;
|
|
101
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Filter', children: (0, jsx_runtime_1.jsx)(S.Filter, { className: 'filter', children: (0, jsx_runtime_1.jsxs)(ui_1.FormHandler, { button: {
|
|
102
|
+
svg: 'LupaIcon',
|
|
103
|
+
}, onSucess: function (formData) { return __awaiter(_this, void 0, void 0, function () {
|
|
104
|
+
var query, sourceFiltersBase64;
|
|
105
|
+
return __generator(this, function (_a) {
|
|
106
|
+
ui_1.cookies.set('locale', {
|
|
107
|
+
value: { uf: formData.uf, localidade: formData.localidade },
|
|
108
|
+
});
|
|
109
|
+
query = formData;
|
|
110
|
+
if (filters.sourceFilters.active) {
|
|
111
|
+
sourceFiltersBase64 = getSourceFiltersToURL(formData.sourceFilters);
|
|
112
|
+
query.sourceFilters = sourceFiltersBase64;
|
|
113
|
+
}
|
|
114
|
+
router.push({ pathname: '/busca', query: query });
|
|
115
|
+
return [2 /*return*/];
|
|
116
|
+
});
|
|
117
|
+
}); }, cleanFieldsOnSubmit: false, initialData: __assign(__assign({}, router.query), { sourceFilters: sourceFilters }), modifyInitialData: function (initialData) {
|
|
118
|
+
var _a, _b, _c, _d;
|
|
119
|
+
var localeCookies = ui_1.cookies.get('locale');
|
|
120
|
+
return __assign(__assign({}, initialData), { uf: ((_a = router.query) === null || _a === void 0 ? void 0 : _a.uf) || ((_b = localeCookies === null || localeCookies === void 0 ? void 0 : localeCookies.value) === null || _b === void 0 ? void 0 : _b.uf), localidade: ((_c = router.query) === null || _c === void 0 ? void 0 : _c.localidade) || ((_d = localeCookies === null || localeCookies === void 0 ? void 0 : localeCookies.value) === null || _d === void 0 ? void 0 : _d.localidade) });
|
|
121
|
+
}, children: [(0, jsx_runtime_1.jsx)(ui_1.Select, { name: 'uf', label: 'Estado', placeholder: 'Escolha um estado', onlyOneValue: true, options: ((_b = locales === null || locales === void 0 ? void 0 : locales.data) === null || _b === void 0 ? void 0 : _b.map(function (item) { return ({
|
|
122
|
+
label: item.title,
|
|
123
|
+
value: item.title,
|
|
124
|
+
}); })) || [] }), (0, jsx_runtime_1.jsx)(select_locale_1.SelectLocale, { locales: locales === null || locales === void 0 ? void 0 : locales.data }), ((_c = filters === null || filters === void 0 ? void 0 : filters.category) === null || _c === void 0 ? void 0 : _c.active) && ((0, jsx_runtime_1.jsx)(ui_1.Select, { name: 'category', label: 'O que voc\u00EA quer fazer?', placeholder: 'Escolha uma categoria', onlyOneValue: true, options: ((_e = (_d = categories === null || categories === void 0 ? void 0 : categories.data) === null || _d === void 0 ? void 0 : _d.items) === null || _e === void 0 ? void 0 : _e.map(function (item) { return ({
|
|
125
|
+
label: item.titulo || '',
|
|
126
|
+
value: item.url || '',
|
|
127
|
+
}); })) || [] })), filters.sourceFilters.active &&
|
|
128
|
+
(data === null || data === void 0 ? void 0 : data.map(function (filter, index) {
|
|
129
|
+
var _a, _b, _c;
|
|
130
|
+
if (!((_b = (_a = filters === null || filters === void 0 ? void 0 : filters.sourceFilters) === null || _a === void 0 ? void 0 : _a.activeFilters) === null || _b === void 0 ? void 0 : _b.includes(filter === null || filter === void 0 ? void 0 : filter.entityKey))) {
|
|
131
|
+
return (0, jsx_runtime_1.jsx)(react_1.Fragment, {}, String(filter === null || filter === void 0 ? void 0 : filter.label) + (filter === null || filter === void 0 ? void 0 : filter.entityKey));
|
|
132
|
+
}
|
|
133
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { style: { display: 'none' }, children: (0, jsx_runtime_1.jsx)(ui_1.Input, { readOnly: true, name: "sourceFilters[".concat(index, "].source"), controlledInitialValue: {
|
|
134
|
+
value: filter === null || filter === void 0 ? void 0 : filter.entityRoute,
|
|
135
|
+
} }) }), (0, jsx_runtime_1.jsx)("div", { style: { display: 'none' }, children: (0, jsx_runtime_1.jsx)(ui_1.Input, { readOnly: true, name: "sourceFilters[".concat(index, "].keyValue"), controlledInitialValue: {
|
|
136
|
+
value: filter === null || filter === void 0 ? void 0 : filter.entityKey,
|
|
137
|
+
} }) }), (0, jsx_runtime_1.jsx)(ui_1.Select, { name: "sourceFilters[".concat(index, "].sourceUrls"), isMultiple: true, label: filter === null || filter === void 0 ? void 0 : filter.label, options: ((_c = filter === null || filter === void 0 ? void 0 : filter.items) === null || _c === void 0 ? void 0 : _c.map(function (item) { return ({
|
|
138
|
+
label: item.name || '',
|
|
139
|
+
value: item.url || '',
|
|
140
|
+
}); })) || [] })] }, String(filter === null || filter === void 0 ? void 0 : filter.label) + (filter === null || filter === void 0 ? void 0 : filter.entityKey)));
|
|
141
|
+
}))] }) }) }));
|
|
142
|
+
}
|
|
143
|
+
function useLocales() {
|
|
144
|
+
var _this = this;
|
|
145
|
+
return (0, ui_1.useQuery)({
|
|
146
|
+
queryKey: ['Locales'],
|
|
147
|
+
queryFn: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
148
|
+
var response;
|
|
149
|
+
return __generator(this, function (_a) {
|
|
150
|
+
switch (_a.label) {
|
|
151
|
+
case 0: return [4 /*yield*/, (0, ui_1.api)({
|
|
152
|
+
url: 'admin/directories/directory/locales',
|
|
153
|
+
method: 'get',
|
|
154
|
+
})];
|
|
155
|
+
case 1:
|
|
156
|
+
response = _a.sent();
|
|
157
|
+
return [2 /*return*/, response];
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
}); },
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
function useCategories() {
|
|
164
|
+
var _this = this;
|
|
165
|
+
return (0, ui_1.useQuery)({
|
|
166
|
+
queryKey: ['Categories'],
|
|
167
|
+
queryFn: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
168
|
+
var response;
|
|
169
|
+
return __generator(this, function (_a) {
|
|
170
|
+
switch (_a.label) {
|
|
171
|
+
case 0: return [4 /*yield*/, (0, ui_1.api)({
|
|
172
|
+
url: 'admin/properties/Categoria/paginated',
|
|
173
|
+
method: 'get',
|
|
174
|
+
body: {
|
|
175
|
+
EntityKey: 'Directory',
|
|
176
|
+
pageSize: 1000,
|
|
177
|
+
},
|
|
178
|
+
})];
|
|
179
|
+
case 1:
|
|
180
|
+
response = _a.sent();
|
|
181
|
+
return [2 /*return*/, response];
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
}); },
|
|
185
|
+
enableCache: true,
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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F,CAAC,EAAA;;wBAPI,QAAQ,GAAG,SAOf;wBAEF,sBAAO,QAAQ,EAAA;;;aAChB;QACD,WAAW,EAAE,IAAI;KAClB,CAAC,CAAA;AACJ,CAAC"}
|
package/dist/ui/codie-dynamic/components/directory-filter/filter-simple/select-locale/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SelectLocale = SelectLocale;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
var formik_1 = require("formik");
|
|
6
|
+
var ui_1 = require("../../../../../../ui/index.js");
|
|
7
|
+
function SelectLocale(_a) {
|
|
8
|
+
var _b, _c;
|
|
9
|
+
var locales = _a.locales;
|
|
10
|
+
var values = (0, formik_1.useFormikContext)().values;
|
|
11
|
+
var cititesFilter = (_c = (_b = locales === null || locales === void 0 ? void 0 : locales.find(function (item) { return item.title === (values === null || values === void 0 ? void 0 : values.uf); })) === null || _b === void 0 ? void 0 : _b.city) === null || _c === void 0 ? void 0 : _c.map(function (city) { return ({
|
|
12
|
+
label: city.title,
|
|
13
|
+
value: city.title,
|
|
14
|
+
}); });
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Select, { name: "localidade", label: "Cidade", placeholder: "Escolha uma cidade", disabled: !cititesFilter || cititesFilter.length === 0, options: cititesFilter || [], onlyOneValue: true }));
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
package/dist/ui/codie-dynamic/components/directory-filter/filter-simple/select-locale/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/ui/codie-dynamic/components/directory-filter/filter-simple/select-locale/index.tsx"],"names":[],"mappings":";;AAIA,oCAkBC;;AAtBD,iCAA0C;AAE1C,2BAA8B;AAE9B,SAAgB,YAAY,CAAC,EAAS;;QAAR,OAAO,aAAA;IAC3B,IAAA,MAAM,GAAK,IAAA,yBAAgB,GAAgB,OAArC,CAAsC;IAEpD,IAAM,aAAa,GAAqC,MAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CAAC,UAAC,IAAI,IAAK,OAAA,IAAI,CAAC,KAAK,MAAK,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,EAAE,CAAA,EAAzB,CAAyB,CAAC,0CAAE,IAAI,0CAAE,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,CAAC;QAC7H,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,KAAK,EAAE,IAAI,CAAC,KAAK;KAClB,CAAC,EAH4H,CAG5H,CAAC,CAAC;IAEN,OAAO,CACL,uBAAC,WAAM,IACL,IAAI,EAAC,YAAY,EACjB,KAAK,EAAC,QAAQ,EACd,WAAW,EAAC,oBAAoB,EAChC,QAAQ,EAAE,CAAC,aAAa,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EACtD,OAAO,EAAE,aAAa,IAAI,EAAE,EAC5B,YAAY,SACZ,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Filter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.Filter = void 0;
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
exports.Filter = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .fake-input {\n flex: 1;\n width: 100%;\n display: flex;\n flex-direction: column;\n }\n\n form {\n border-radius: 100px;\n background-color: #f2f2f2;\n\n > div {\n display: flex;\n\n > div:last-child {\n padding-right: 10px;\n }\n }\n\n .conntent_form_infinity_forge {\n display: flex;\n align-items: stretch;\n flex: 1;\n\n > div {\n width: 100%;\n display: flex;\n align-items: center;\n position: relative;\n padding: 14px 24px;\n\n &:not(:last-child) {\n padding-right: 10px !important;\n }\n\n &:not(:first-child) {\n padding-left: 10px !important;\n\n &::before {\n content: '';\n position: absolute;\n left: 0;\n top: 10px;\n bottom: 10px;\n width: 1px;\n background-color: ", ";\n }\n }\n }\n }\n\n label {\n font-size: 16px !important;\n line-height: 1.25 !important;\n font-weight: 700 !important;\n color: ", " !important;\n margin-bottom: 4px !important;\n }\n\n input {\n line-height: 1.25 !important;\n background: #f2f2f2;\n border: 0px;\n padding: 0px;\n height: 24px;\n font-size: 16px !important;\n }\n\n .input_control {\n margin-bottom: 0px;\n }\n\n .css-nalcay-control,\n .css-1hapfos,\n .css-1kw61rn {\n background: #f2f2f2;\n border: 0px;\n min-height: unset;\n\n input {\n height: unset;\n }\n }\n\n .css-b601u9 {\n display: none;\n }\n\n .css-1thsgv7-control {\n border: 0;\n box-shadow: none;\n border-color: unset !important;\n background: #f2f2f2;\n min-height: unset;\n }\n\n .css-5pixxi-singleValue,\n .css-10osm0y-placeholder,\n .css-rfwr9r {\n font-size: 16px;\n color: ", ";\n }\n\n .css-1hapfos {\n margin-top: -60px;\n }\n\n .css-1kw61rn {\n padding: 0;\n }\n\n .option-accessibility {\n display: flex;\n align-items: center;\n gap: 10px;\n position: relative;\n\n svg {\n min-width: 20px;\n }\n\n input,\n input:hover {\n margin-top: 1px;\n width: 18px;\n height: 18px;\n cursor: pointer;\n }\n\n input:checked::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border-radius: 1px;\n background-position: center;\n background-repeat: no-repeat;\n background-image: url('/images/home/icon-checkbox.png');\n }\n }\n\n .form-button {\n display: flex;\n align-items: center;\n\n .button-icon {\n gap: 0;\n }\n\n button {\n width: 48px;\n height: 48px;\n padding: 0;\n max-width: unset;\n min-height: unset;\n background-color: #f5ae05;\n }\n }\n }\n\n @media only screen and (max-width: 1600px) {\n form .conntent_form_infinity_forge {\n > div {\n padding: 12px 16px;\n }\n\n label,\n input {\n font-size: 1.55rem !important;\n }\n\n .css-1hapfos {\n margin-top: -55px;\n }\n\n .css-5pixxi-singleValue,\n .css-10osm0y-placeholder,\n .css-rfwr9r {\n font-size: 1.55rem;\n }\n }\n }\n\n @media only screen and (max-width: 1400px) {\n form {\n padding: 0;\n border-radius: 40px;\n\n .conntent_form_infinity_forge {\n > div {\n padding: 8px 10px;\n\n &:first-child {\n padding: 8px 10px 8px 18px !important;\n }\n }\n\n label,\n input {\n font-size: 1.5rem !important;\n }\n\n .css-1hapfos {\n margin-top: -60px;\n }\n\n .css-5pixxi-singleValue,\n .css-10osm0y-placeholder,\n .css-rfwr9r {\n font-size: 1.5rem;\n }\n }\n\n .form-button button {\n width: 40px;\n height: 40px;\n\n svg {\n width: 20px;\n }\n }\n }\n }\n\n @media only screen and (max-width: 1200px) {\n form {\n .conntent_form_infinity_forge {\n > div {\n padding: 8px 6px;\n\n &:first-child {\n padding: 8px 10px 8px 18px !important;\n }\n }\n\n label,\n input {\n font-size: 1.4rem !important;\n }\n\n .css-1hapfos {\n margin-top: -60px;\n }\n\n .css-5pixxi-singleValue,\n .css-10osm0y-placeholder,\n .css-rfwr9r {\n font-size: 1.4rem;\n }\n }\n\n .form-button button {\n width: 36px;\n height: 36px;\n\n svg {\n width: 16px;\n }\n }\n }\n }\n\n @media only screen and (max-width: 1024px) {\n form {\n border-radius: 20px;\n\n > div {\n margin: 0 auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n padding: 10px;\n max-width: 500px;\n }\n\n .conntent_form_infinity_forge {\n width: 100%;\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 0 10px;\n\n > div {\n width: 100%;\n max-width: 300px;\n padding: 8px 6px;\n border-radius: 20px;\n\n &:first-child {\n padding: 8px 6px !important;\n }\n\n &::before {\n display: none;\n }\n }\n\n .css-1hapfos {\n margin-top: -60px;\n }\n }\n\n .form-button {\n &,\n > div,\n button {\n margin: 0 auto;\n width: 100%;\n max-width: 300px;\n }\n }\n }\n }\n\n @media only screen and (max-width: 450px) {\n form .conntent_form_infinity_forge {\n display: flex;\n flex-direction: column;\n gap: 0;\n align-items: center;\n }\n }\n"], ["\n .fake-input {\n flex: 1;\n width: 100%;\n display: flex;\n flex-direction: column;\n }\n\n form {\n border-radius: 100px;\n background-color: #f2f2f2;\n\n > div {\n display: flex;\n\n > div:last-child {\n padding-right: 10px;\n }\n }\n\n .conntent_form_infinity_forge {\n display: flex;\n align-items: stretch;\n flex: 1;\n\n > div {\n width: 100%;\n display: flex;\n align-items: center;\n position: relative;\n padding: 14px 24px;\n\n &:not(:last-child) {\n padding-right: 10px !important;\n }\n\n &:not(:first-child) {\n padding-left: 10px !important;\n\n &::before {\n content: '';\n position: absolute;\n left: 0;\n top: 10px;\n bottom: 10px;\n width: 1px;\n background-color: ", ";\n }\n }\n }\n }\n\n label {\n font-size: 16px !important;\n line-height: 1.25 !important;\n font-weight: 700 !important;\n color: ", " !important;\n margin-bottom: 4px !important;\n }\n\n input {\n line-height: 1.25 !important;\n background: #f2f2f2;\n border: 0px;\n padding: 0px;\n height: 24px;\n font-size: 16px !important;\n }\n\n .input_control {\n margin-bottom: 0px;\n }\n\n .css-nalcay-control,\n .css-1hapfos,\n .css-1kw61rn {\n background: #f2f2f2;\n border: 0px;\n min-height: unset;\n\n input {\n height: unset;\n }\n }\n\n .css-b601u9 {\n display: none;\n }\n\n .css-1thsgv7-control {\n border: 0;\n box-shadow: none;\n border-color: unset !important;\n background: #f2f2f2;\n min-height: unset;\n }\n\n .css-5pixxi-singleValue,\n .css-10osm0y-placeholder,\n .css-rfwr9r {\n font-size: 16px;\n color: ", ";\n }\n\n .css-1hapfos {\n margin-top: -60px;\n }\n\n .css-1kw61rn {\n padding: 0;\n }\n\n .option-accessibility {\n display: flex;\n align-items: center;\n gap: 10px;\n position: relative;\n\n svg {\n min-width: 20px;\n }\n\n input,\n input:hover {\n margin-top: 1px;\n width: 18px;\n height: 18px;\n cursor: pointer;\n }\n\n input:checked::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border-radius: 1px;\n background-position: center;\n background-repeat: no-repeat;\n background-image: url('/images/home/icon-checkbox.png');\n }\n }\n\n .form-button {\n display: flex;\n align-items: center;\n\n .button-icon {\n gap: 0;\n }\n\n button {\n width: 48px;\n height: 48px;\n padding: 0;\n max-width: unset;\n min-height: unset;\n background-color: #f5ae05;\n }\n }\n }\n\n @media only screen and (max-width: 1600px) {\n form .conntent_form_infinity_forge {\n > div {\n padding: 12px 16px;\n }\n\n label,\n input {\n font-size: 1.55rem !important;\n }\n\n .css-1hapfos {\n margin-top: -55px;\n }\n\n .css-5pixxi-singleValue,\n .css-10osm0y-placeholder,\n .css-rfwr9r {\n font-size: 1.55rem;\n }\n }\n }\n\n @media only screen and (max-width: 1400px) {\n form {\n padding: 0;\n border-radius: 40px;\n\n .conntent_form_infinity_forge {\n > div {\n padding: 8px 10px;\n\n &:first-child {\n padding: 8px 10px 8px 18px !important;\n }\n }\n\n label,\n input {\n font-size: 1.5rem !important;\n }\n\n .css-1hapfos {\n margin-top: -60px;\n }\n\n .css-5pixxi-singleValue,\n .css-10osm0y-placeholder,\n .css-rfwr9r {\n font-size: 1.5rem;\n }\n }\n\n .form-button button {\n width: 40px;\n height: 40px;\n\n svg {\n width: 20px;\n }\n }\n }\n }\n\n @media only screen and (max-width: 1200px) {\n form {\n .conntent_form_infinity_forge {\n > div {\n padding: 8px 6px;\n\n &:first-child {\n padding: 8px 10px 8px 18px !important;\n }\n }\n\n label,\n input {\n font-size: 1.4rem !important;\n }\n\n .css-1hapfos {\n margin-top: -60px;\n }\n\n .css-5pixxi-singleValue,\n .css-10osm0y-placeholder,\n .css-rfwr9r {\n font-size: 1.4rem;\n }\n }\n\n .form-button button {\n width: 36px;\n height: 36px;\n\n svg {\n width: 16px;\n }\n }\n }\n }\n\n @media only screen and (max-width: 1024px) {\n form {\n border-radius: 20px;\n\n > div {\n margin: 0 auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n padding: 10px;\n max-width: 500px;\n }\n\n .conntent_form_infinity_forge {\n width: 100%;\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 0 10px;\n\n > div {\n width: 100%;\n max-width: 300px;\n padding: 8px 6px;\n border-radius: 20px;\n\n &:first-child {\n padding: 8px 6px !important;\n }\n\n &::before {\n display: none;\n }\n }\n\n .css-1hapfos {\n margin-top: -60px;\n }\n }\n\n .form-button {\n &,\n > div,\n button {\n margin: 0 auto;\n width: 100%;\n max-width: 300px;\n }\n }\n }\n }\n\n @media only screen and (max-width: 450px) {\n form .conntent_form_infinity_forge {\n display: flex;\n flex-direction: column;\n gap: 0;\n align-items: center;\n }\n }\n"])), function (p) { return p.theme.grey20; }, function (p) { return p.theme.darkColor; }, function (p) { return p.theme.darkColor; });
|
|
13
|
+
var templateObject_1;
|
|
14
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/ui/codie-dynamic/components/directory-filter/filter-simple/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,MAAM,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,sjMAAA,u5BA8CH,EAAqB,qLAUtC,EAAwB,20BA6CxB,EAAwB,slIAgOtC,KAvR+B,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,CAAC,MAAM,EAAd,CAAc,EAUtC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,CAAC,SAAS,EAAjB,CAAiB,EA6CxB,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,CAAC,SAAS,EAAjB,CAAiB,EAgOtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Filters(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Filters = Filters;
|
|
37
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
|
+
var ui_1 = require("../../../../../ui/index.js");
|
|
39
|
+
var hooks_1 = require("../hooks/index.js");
|
|
40
|
+
var S = __importStar(require("./styles.js"));
|
|
41
|
+
var router_1 = require("next/router");
|
|
42
|
+
function Filters() {
|
|
43
|
+
var _a = (0, hooks_1.useDynamicFilter)(), data = _a.data, sourceFilters = _a.sourceFilters, getSourceFiltersToURL = _a.getSourceFiltersToURL;
|
|
44
|
+
var router = (0, router_1.useRouter)();
|
|
45
|
+
return ((0, jsx_runtime_1.jsxs)(S.Filters, { children: [(0, jsx_runtime_1.jsx)("h3", { className: 'font-22-bold', children: "Filtrar" }), (0, jsx_runtime_1.jsx)(ui_1.FormHandler, { initialData: {
|
|
46
|
+
sourceFilters: sourceFilters,
|
|
47
|
+
}, disableEnterKeySubmitForm: true, cleanFieldsOnSubmit: false, onChangeForm: {
|
|
48
|
+
callbackResult: function (formData) {
|
|
49
|
+
var sourceFilters = getSourceFiltersToURL(formData === null || formData === void 0 ? void 0 : formData.sourceFilters);
|
|
50
|
+
(0, ui_1.updateRoute)({
|
|
51
|
+
router: router,
|
|
52
|
+
params: {
|
|
53
|
+
sourceFilters: sourceFilters,
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
}, children: data === null || data === void 0 ? void 0 : data.map(function (filter, index) {
|
|
58
|
+
var _a;
|
|
59
|
+
return ((0, jsx_runtime_1.jsxs)(ui_1.Accordion, { title: filter.label, openIcon: 'IconTopChevron', closeIcon: 'IconBottomChevron', forceOpen: true, children: [(0, jsx_runtime_1.jsx)("div", { style: { display: 'none' }, children: (0, jsx_runtime_1.jsx)(ui_1.Input, { readOnly: true, name: "sourceFilters[".concat(index, "].source"), controlledInitialValue: {
|
|
60
|
+
value: filter.entityRoute,
|
|
61
|
+
} }) }), (0, jsx_runtime_1.jsx)("div", { style: { display: 'none' }, children: (0, jsx_runtime_1.jsx)(ui_1.Input, { readOnly: true, name: "sourceFilters[".concat(index, "].keyValue"), controlledInitialValue: {
|
|
62
|
+
value: filter.entityKey,
|
|
63
|
+
} }) }), (0, jsx_runtime_1.jsx)(ui_1.InputCheckbox, { name: "sourceFilters[".concat(index, "].sourceUrls"), options: ((_a = filter.items) === null || _a === void 0 ? void 0 : _a.map(function (item) { return ({
|
|
64
|
+
label: item.name || '',
|
|
65
|
+
value: item.url || '',
|
|
66
|
+
}); })) || [] })] }, String(filter.label) + filter.entityKey));
|
|
67
|
+
}) })] }));
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/codie-dynamic/components/directory-filter/filters/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,0BAuEC;;AA7ED,2BAAgF;AAChF,kCAA2C;AAE3C,0CAA6B;AAC7B,sCAAuC;AAEvC,SAAgB,OAAO;IACf,IAAA,KAAiD,IAAA,wBAAgB,GAAE,EAAjE,IAAI,UAAA,EAAE,aAAa,mBAAA,EAAE,qBAAqB,2BAAuB,CAAA;IAEzE,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAE1B,OAAO,CACL,wBAAC,CAAC,CAAC,OAAO,eACR,+BAAI,SAAS,EAAC,cAAc,wBAAa,EAEzC,uBAAC,gBAAW,IACV,WAAW,EAAE;oBACX,aAAa,eAAA;iBACd,EACD,yBAAyB,QACzB,mBAAmB,EAAE,KAAK,EAC1B,YAAY,EAAE;oBACZ,cA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AC,SAAS,CAkClC,CACb,CAAA;gBACH,CAAC,CAAC,GACU,IACJ,CACb,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.renderStars = renderStars;
|
|
4
|
+
var styled_components_1 = require("styled-components");
|
|
5
|
+
function renderStars(_a) {
|
|
6
|
+
var filledStars = _a.filledStars;
|
|
7
|
+
var _b = (0, styled_components_1.useTheme)(), primaryColor = _b.primaryColor, grey20 = _b.grey20;
|
|
8
|
+
var filledStar = "<span class='font-20' style='color:" + "#F5AE05" + "'>★</span>";
|
|
9
|
+
var emptyStar = "<span class='font-20' style='color:" + grey20 + "'>★</span>";
|
|
10
|
+
return filledStar.repeat(filledStars) + emptyStar.repeat(5 - filledStars);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=render-stars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-stars.js","sourceRoot":"","sources":["../../../../../../src/ui/codie-dynamic/components/directory-filter/filters/render-stars.ts"],"names":[],"mappings":";;AAEA,kCASC;AAXD,uDAA6C;AAE7C,SAAgB,WAAW,CAAC,EAAwC;QAAtC,WAAW,iBAAA;IACjC,IAAA,KAA2B,IAAA,4BAAQ,GAAE,EAAnC,YAAY,kBAAA,EAAE,MAAM,YAAe,CAAC;IAE5C,IAAM,UAAU,GACd,qCAAqC,GAAG,SAAS,GAAG,YAAY,CAAC;IACnE,IAAM,SAAS,GACb,qCAAqC,GAAG,MAAM,GAAG,YAAY,CAAC;IAEhE,OAAO,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC;AAC5E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Filters: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.Filters = void 0;
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
exports.Filters = (0, styled_components_1.default)("div")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n max-width: 300px;\n\n h3 {\n color: ", ";\n line-height: 1.25;\n margin-bottom: 30px;\n }\n\n .conntent_form_infinity_forge {\n overflow: hidden;\n background-color: transparent;\n\n .input_control {\n margin: 0;\n\n .list-radios {\n gap: 25px;\n display: flex;\n flex-direction: column;\n\n label {\n display: flex;\n gap: 12.5px;\n align-items: center;\n\n height: fit-content;\n margin: 0;\n padding: 0;\n\n color: ", ";\n font-weight: 400;\n line-height: 1.25;\n font-size: 1.6rem;\n }\n\n input {\n width: 15px;\n height: 15px;\n }\n }\n }\n\n > div {\n margin: 0;\n background-color: transparent;\n padding: 20px 0 30px 0;\n box-shadow: unset;\n border-top: 2px solid ", ";\n\n > button {\n color: ", ";\n\n h2 {\n font-size: 1.8rem;\n line-height: 1.25;\n font-weight: 700;\n }\n\n svg {\n fill: ", ";\n width: 25px;\n height: auto;\n }\n }\n\n .content {\n &.show {\n margin-top: 20px;\n }\n\n .view-more {\n margin-top: 20px;\n border: 0;\n\n color: #f5ae05;\n line-height: 1.25;\n\n display: flex;\n gap: 3px;\n align-items: center;\n\n padding: 0;\n width: fit-content;\n height: fit-content;\n background-color: transparent;\n\n svg {\n fill: currentColor;\n width: 25px;\n height: auto;\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 1600px) {\n h3 {\n margin-bottom: 25px;\n }\n\n .conntent_form_infinity_forge {\n .input_control {\n .list-radios {\n gap: 20px;\n\n label {\n gap: 10.5px;\n font-size: 1.55rem;\n }\n }\n }\n\n > div {\n padding: 15px 0 25px 0;\n\n > button {\n h2 {\n font-size: 1.7rem;\n }\n\n svg {\n width: 22px;\n }\n }\n\n .content {\n &.show {\n margin-top: 15px;\n }\n\n .view-more {\n margin-top: 15px;\n\n svg {\n width: 22px;\n }\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 1400px) {\n h3 {\n margin-bottom: 20px;\n }\n\n .conntent_form_infinity_forge {\n .input_control {\n .list-radios {\n gap: 15px;\n\n label {\n gap: 8.5px;\n font-size: 1.5rem;\n }\n }\n }\n\n > div {\n padding-bottom: 20px;\n\n > button {\n h2 {\n font-size: 1.65rem;\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 1200px) {\n max-width: 200px;\n\n h3 {\n margin-bottom: 15px;\n }\n\n .conntent_form_infinity_forge {\n .input_control {\n .list-radios {\n gap: 10px;\n\n label {\n gap: 5.5px;\n font-size: 1.45rem;\n }\n }\n }\n\n > div {\n > button {\n h2 {\n font-size: 1.6rem;\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 1024px) {\n max-width: 170px;\n\n h3 {\n margin-bottom: 10px;\n }\n\n .conntent_form_infinity_forge {\n .input_control {\n .list-radios {\n gap: 8px;\n\n label {\n font-size: 1.35rem;\n }\n }\n }\n\n > div {\n padding: 10px 0;\n\n > button {\n h2 {\n font-size: 1.55rem;\n }\n }\n\n .content {\n &.show {\n margin-top: 10px;\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 768px) {\n .conntent_form_infinity_forge {\n .input_control {\n .list-radios {\n label {\n font-size: 1.35rem;\n }\n }\n }\n\n > div {\n > button {\n h2 {\n font-size: 1.5rem;\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 650px) {\n .conntent_form_infinity_forge {\n .input_control {\n .list-radios {\n label {\n font-size: 1.3rem;\n }\n }\n }\n\n > div {\n > button {\n h2 {\n font-size: 1.4rem;\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 500px) {\n .conntent_form_infinity_forge {\n .input_control {\n .list-radios {\n label {\n font-size: 1.2rem;\n }\n }\n }\n\n > div {\n > button {\n h2 {\n font-size: 1.2rem;\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 900px) {\n max-width: 100%;\n }\n"], ["\n width: 100%;\n max-width: 300px;\n\n h3 {\n color: ", ";\n line-height: 1.25;\n margin-bottom: 30px;\n }\n\n .conntent_form_infinity_forge {\n overflow: hidden;\n background-color: transparent;\n\n .input_control {\n margin: 0;\n\n .list-radios {\n gap: 25px;\n display: flex;\n flex-direction: column;\n\n label {\n display: flex;\n gap: 12.5px;\n align-items: center;\n\n height: fit-content;\n margin: 0;\n padding: 0;\n\n color: ", ";\n font-weight: 400;\n line-height: 1.25;\n font-size: 1.6rem;\n }\n\n input {\n width: 15px;\n height: 15px;\n }\n }\n }\n\n > div {\n margin: 0;\n background-color: transparent;\n padding: 20px 0 30px 0;\n box-shadow: unset;\n border-top: 2px solid ", ";\n\n > button {\n color: ", ";\n\n h2 {\n font-size: 1.8rem;\n line-height: 1.25;\n font-weight: 700;\n }\n\n svg {\n fill: ", ";\n width: 25px;\n height: auto;\n }\n }\n\n .content {\n &.show {\n margin-top: 20px;\n }\n\n .view-more {\n margin-top: 20px;\n border: 0;\n\n color: #f5ae05;\n line-height: 1.25;\n\n display: flex;\n gap: 3px;\n align-items: center;\n\n padding: 0;\n width: fit-content;\n height: fit-content;\n background-color: transparent;\n\n svg {\n fill: currentColor;\n width: 25px;\n height: auto;\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 1600px) {\n h3 {\n margin-bottom: 25px;\n }\n\n .conntent_form_infinity_forge {\n .input_control {\n .list-radios {\n gap: 20px;\n\n label {\n gap: 10.5px;\n font-size: 1.55rem;\n }\n }\n }\n\n > div {\n padding: 15px 0 25px 0;\n\n > button {\n h2 {\n font-size: 1.7rem;\n }\n\n svg {\n width: 22px;\n }\n }\n\n .content {\n &.show {\n margin-top: 15px;\n }\n\n .view-more {\n margin-top: 15px;\n\n svg {\n width: 22px;\n }\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 1400px) {\n h3 {\n margin-bottom: 20px;\n }\n\n .conntent_form_infinity_forge {\n .input_control {\n .list-radios {\n gap: 15px;\n\n label {\n gap: 8.5px;\n font-size: 1.5rem;\n }\n }\n }\n\n > div {\n padding-bottom: 20px;\n\n > button {\n h2 {\n font-size: 1.65rem;\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 1200px) {\n max-width: 200px;\n\n h3 {\n margin-bottom: 15px;\n }\n\n .conntent_form_infinity_forge {\n .input_control {\n .list-radios {\n gap: 10px;\n\n label {\n gap: 5.5px;\n font-size: 1.45rem;\n }\n }\n }\n\n > div {\n > button {\n h2 {\n font-size: 1.6rem;\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 1024px) {\n max-width: 170px;\n\n h3 {\n margin-bottom: 10px;\n }\n\n .conntent_form_infinity_forge {\n .input_control {\n .list-radios {\n gap: 8px;\n\n label {\n font-size: 1.35rem;\n }\n }\n }\n\n > div {\n padding: 10px 0;\n\n > button {\n h2 {\n font-size: 1.55rem;\n }\n }\n\n .content {\n &.show {\n margin-top: 10px;\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 768px) {\n .conntent_form_infinity_forge {\n .input_control {\n .list-radios {\n label {\n font-size: 1.35rem;\n }\n }\n }\n\n > div {\n > button {\n h2 {\n font-size: 1.5rem;\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 650px) {\n .conntent_form_infinity_forge {\n .input_control {\n .list-radios {\n label {\n font-size: 1.3rem;\n }\n }\n }\n\n > div {\n > button {\n h2 {\n font-size: 1.4rem;\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 500px) {\n .conntent_form_infinity_forge {\n .input_control {\n .list-radios {\n label {\n font-size: 1.2rem;\n }\n }\n }\n\n > div {\n > button {\n h2 {\n font-size: 1.2rem;\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 900px) {\n max-width: 100%;\n }\n"])), function (p) { return p.theme.grey100; }, function (p) { return p.theme.grey100; }, function (p) { return p.theme.grey40; }, function (p) { return p.theme.grey100; }, function (p) { return p.theme.grey60; });
|
|
13
|
+
var templateObject_1;
|
|
14
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/ui/codie-dynamic/components/directory-filter/filters/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAuC;AAE1B,QAAA,OAAO,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,+nKAAA,8DAKvB,EAAsB,kfA0BhB,EAAsB,oWAkBX,EAAqB,wCAGlC,EAAsB,0JASrB,EAAqB,49HAiPtC,KAzSY,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,CAAC,OAAO,EAAf,CAAe,EA0BhB,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,CAAC,OAAO,EAAf,CAAe,EAkBX,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,CAAC,MAAM,EAAd,CAAc,EAGlC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,CAAC,OAAO,EAAf,CAAe,EASrB,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,CAAC,MAAM,EAAd,CAAc,EAiPrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./use-dynamic-filter.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./use-dynamic-filter.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|