@randstad-uca/design-system 1.0.117 → 1.0.119

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/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../node_modules/tslib/tslib.es6.js","../node_modules/@lit/reactive-element/decorators/custom-element.js","../node_modules/@lit/reactive-element/css-tag.js","../node_modules/@lit/reactive-element/reactive-element.js","../node_modules/@lit/reactive-element/decorators/property.js","../node_modules/@lit/reactive-element/decorators/state.js","../node_modules/@lit/reactive-element/decorators/query.js","../node_modules/@lit/reactive-element/decorators/base.js","../src/helpers/BaseControl.ts","../src/styles/fontStyles.ts","../src/components/Accordion.ts","../src/components/AccordionList.ts","../src/components/Button.ts","../src/components/CarouselCards.ts","../src/components/Checkbox.ts","../src/styles/tooltip.ts","../src/styles/focus.ts","../src/styles/mix.ts","../src/styles/error.ts","../src/styles/scrollbar.ts","../src/components/Form.ts","../src/components/FormGroup.ts","../src/components/icons.ts","../src/components/Icon.ts","../src/components/SocialMediaInput.ts","../src/components/Notice.ts","../src/components/Modal.ts","../src/components/Popup.ts","../src/components/ProgressCircle.ts","../src/components/Radio.ts","../src/components/Select.ts","../src/styles/globalStyles.ts","../src/components/Snackbar.ts","../src/components/Stepper.ts","../src/components/Tabs.ts","../src/helpers/BaseUpload.ts","../src/utils/file-format.ts","../src/styles/progress-bar-upload.ts","../src/components/Upload.ts","../node_modules/date-fns/constants.js","../node_modules/date-fns/constructFrom.js","../node_modules/date-fns/toDate.js","../node_modules/date-fns/addMonths.js","../node_modules/date-fns/_lib/defaultOptions.js","../node_modules/date-fns/startOfWeek.js","../node_modules/date-fns/startOfISOWeek.js","../node_modules/date-fns/getISOWeekYear.js","../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js","../node_modules/date-fns/_lib/normalizeDates.js","../node_modules/date-fns/startOfDay.js","../node_modules/date-fns/addYears.js","../node_modules/date-fns/isValid.js","../node_modules/date-fns/isDate.js","../node_modules/date-fns/startOfMonth.js","../node_modules/date-fns/locale/en-US/_lib/formatDistance.js","../node_modules/date-fns/locale/_lib/buildFormatLongFn.js","../node_modules/date-fns/locale/en-US/_lib/formatLong.js","../node_modules/date-fns/locale/en-US/_lib/formatRelative.js","../node_modules/date-fns/locale/_lib/buildLocalizeFn.js","../node_modules/date-fns/locale/_lib/buildMatchFn.js","../node_modules/date-fns/locale/_lib/buildMatchPatternFn.js","../node_modules/date-fns/locale/en-US.js","../node_modules/date-fns/locale/en-US/_lib/localize.js","../node_modules/date-fns/locale/en-US/_lib/match.js","../node_modules/date-fns/getDayOfYear.js","../node_modules/date-fns/differenceInCalendarDays.js","../node_modules/date-fns/startOfYear.js","../node_modules/date-fns/getISOWeek.js","../node_modules/date-fns/startOfISOWeekYear.js","../node_modules/date-fns/getWeekYear.js","../node_modules/date-fns/getWeek.js","../node_modules/date-fns/startOfWeekYear.js","../node_modules/date-fns/_lib/addLeadingZeros.js","../node_modules/date-fns/_lib/format/lightFormatters.js","../node_modules/date-fns/_lib/format/formatters.js","../node_modules/date-fns/_lib/format/longFormatters.js","../node_modules/date-fns/_lib/protectedTokens.js","../node_modules/date-fns/format.js","../node_modules/date-fns/getDate.js","../node_modules/date-fns/getDaysInMonth.js","../node_modules/date-fns/isAfter.js","../node_modules/date-fns/isBefore.js","../node_modules/date-fns/isSameMonth.js","../node_modules/date-fns/isSameYear.js","../node_modules/date-fns/isToday.js","../node_modules/date-fns/isSameDay.js","../node_modules/date-fns/constructNow.js","../node_modules/date-fns/setDate.js","../src/components/CalendarOverlay.ts","../node_modules/date-fns/setYear.js","../node_modules/date-fns/setMonth.js","../node_modules/date-fns/getDay.js","../src/components/DatePicker.ts","../node_modules/date-fns/subYears.js","../src/components/File.ts","../src/components/Carousel.ts","../src/components/Bubble.ts","../src/components/MfaModal.ts","../src/components/Navbar.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n 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);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)};export{t as customElement};\n//# sourceMappingURL=custom-element.js.map\n","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1]),t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as s}from\"./css-tag.js\";export{CSSResult,css,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{is:i,defineProperty:e,getOwnPropertyDescriptor:h,getOwnPropertyNames:r,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:\"\",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),b={attribute:!0,type:String,converter:u,reflect:!1,useDefault:!1,hasChanged:f};Symbol.metadata??=Symbol(\"metadata\"),a.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e(this.prototype,t,h)}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d(\"elementProperties\")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d(\"finalized\")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d(\"properties\"))){const t=this.properties,s=[...r(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(t(s))}else void 0!==s&&i.push(t(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:\"string\"==typeof i?i:\"string\"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=h.fromAttribute(s,t.type)??this._$Ej?.get(e)??null,this._$Em=null}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),!0!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),!0===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];!0!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:\"open\"},y[d(\"elementProperties\")]=new Map,y[d(\"finalized\")]=new Map,p?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push(\"2.1.0\");export{y as ReactiveElement,s as adoptStyles,u as defaultConverter,t as getCompatibleStyle,f as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","import{defaultConverter as t,notEqual as e}from\"../reactive-element.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o={attribute:!0,type:String,converter:t,reflect:!1,hasChanged:e},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),\"setter\"===n&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),\"accessor\"===n){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if(\"setter\"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error(\"Unsupported decorator location: \"+n)};function n(t){return(e,o)=>\"object\"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}export{n as property,r as standardProperty};\n//# sourceMappingURL=property.js.map\n","import{property as t}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function r(r){return t({...r,state:!0,attribute:!1})}export{r as state};\n//# sourceMappingURL=state.js.map\n","import{desc as t}from\"./base.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function e(e,r){return(n,s,i)=>{const o=t=>t.renderRoot?.querySelector(e)??null;if(r){const{get:e,set:r}=\"object\"==typeof s?n:i??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return t(n,s,{get(){let t=e.call(this);return void 0===t&&(t=o(this),(null!==t||this.hasUpdated)&&r.call(this,t)),t}})}return t(n,s,{get(){return o(this)}})}}export{e as query};\n//# sourceMappingURL=query.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst e=(e,t,c)=>(c.configurable=!0,c.enumerable=!0,Reflect.decorate&&\"object\"!=typeof t&&Object.defineProperty(e,t,c),c);export{e as desc};\n//# sourceMappingURL=base.js.map\n","import { html, LitElement, nothing } from \"lit\";\nimport { customElement, property, state } from \"lit/decorators.js\";\n\n@customElement(\"base-control\")\nexport class BaseControl extends LitElement { \n @property({ type: String }) label = '';\n @property({ type: String }) placeholder = '';\n @property({ type: String }) labelColor = '';\n\n @property() value: any = '';\n\n @property({ type: Boolean }) required = false;\n @property({ type: Boolean }) optional = false;\n @property({ type: Boolean }) disabled = false;\n \n @property({ type: Boolean, reflect: true }) error = false;\n @property({ type: String }) errorMessage: string | null = null;\n\n @property({ type: String }) helper: string | null = null;\n @property({ type: String }) helperAlign: 'left' | 'center' | 'right' | 'justify' = 'left';\n\n @property({ type: String }) help?: string; // Icono con tooltip (no es un enlace)\n @property({ type: Boolean }) helpClickable = false; // Si es true, el tooltip se muestra al hacer click en lugar de hover\n @property({ type: String }) helpLink?: string; // Icono que es un enlace\n @property({ type: String }) helpLinkTooltipMessage?: string; // Mensaje para el tooltip del enlace\n\n @state() private _tooltipOpen = false;\n private _lastClickTime = 0;\n\n private _boundCloseTooltip = this._closeTooltip.bind(this);\n\n private _handleTooltipClick(e: Event) {\n e.stopPropagation();\n e.preventDefault();\n this._lastClickTime = Date.now();\n this._tooltipOpen = !this._tooltipOpen;\n }\n\n private _closeTooltip() {\n if (!this.helpClickable || !this._tooltipOpen) return;\n \n if (Date.now() - this._lastClickTime > 50) {\n this._tooltipOpen = false;\n }\n }\n\n protected updated(changedProperties: Map<string | number | symbol, unknown>) {\n super.updated(changedProperties);\n \n // Si la propiedad helpClickable cambió (o se inicializó)\n if (changedProperties.has('helpClickable')) {\n if (this.helpClickable) {\n document.addEventListener('click', this._boundCloseTooltip);\n } else {\n document.removeEventListener('click', this._boundCloseTooltip);\n }\n }\n }\n\n public connectedCallback() {\n super.connectedCallback();\n }\n\n public disconnectedCallback() {\n super.disconnectedCallback();\n document.removeEventListener('click', this._boundCloseTooltip);\n }\n\n public renderLabelContainer() {\n return html `\n ${ this.label ? \n html`\n <div class=\"label-container\">\n ${ this.renderLabel() }\n \n ${ this.renderHelp() }\n </div>\n ` : ''\n }\n `;\n }\n \n public renderLabel() {\n return html `\n <label class=\"form-label\">\n ${ this.label }\n ${ this.required\n ? html`\n <span class=\"required\">*</span>`\n : this.optional\n ? html` <span class=\"optional\">opcional</span> `\n : nothing\n }\n </label>\n `;\n }\n\n public renderHelp() {\n return html`\n ${ this.help\n ? html`\n <div \n class=\"tooltip-wrapper ${ this.helpClickable ? 'clickable' : '' }\"\n @click=${ this.helpClickable ? this._handleTooltipClick : nothing }\n >\n <randstad-icon \n name=\"info\" \n size=\"20px\"\n ></randstad-icon>\n\n <div class=\"tooltip ${ this.helpClickable && this._tooltipOpen ? 'active' : '' }\">${ this.help }</div>\n </div>\n `\n : this.helpLink\n ? html`\n <a class=\"tooltip-wrapper\" href=\"${ this.helpLink }\">\n <randstad-icon name=\"ayuda\" size=\"20px\"></randstad-icon>\n \n ${ this.helpLinkTooltipMessage\n ? html`<div class=\"tooltip\">${ this.helpLinkTooltipMessage }</div>`\n : nothing\n }\n </a>\n `\n : nothing\n }\n `;\n }\n\n public renderError() {\n return html`\n ${ this.error ? \n html `\n <div class=\"error-message\">\n ${ this.errorMessage ? this.errorMessage : html`<slot name=\"error-extended\"></slot>` }\n </div>\n `\n : nothing\n }\n `;\n }\n\n public renderHelper() {\n const helperInlineStyles = `text-align: ${ this.helperAlign ?? 'left' };`;\n\n return html`\n ${ this.helper\n ? html`\n <p \n class=\"helper-description\"\n style=${ helperInlineStyles }\n >\n ${ this.helper }\n </p>\n `\n : nothing\n }\n `;\n }\n}","import { css, CSSResult } from 'lit';\r\n\r\nexport const bodyXS: CSSResult = css`\r\n font-family: 'Graphik', sans-serif;\r\n font-weight: 400;\r\n font-size: 12px;\r\n line-height: 15px;\r\n letter-spacing: 0%;\r\n`;\r\n\r\nexport const bodyS: CSSResult = css`\r\n font-family: 'Graphik', sans-serif;\r\n font-weight: 400;\r\n font-size: 14px;\r\n line-height: 25px;\r\n letter-spacing: 0%;\r\n`;\r\n\r\nexport const bodyM: CSSResult = css`\r\n font-family: 'Graphik', sans-serif;\r\n font-weight: 400;\r\n font-size: 16px;\r\n line-height: 25px;\r\n letter-spacing: 0%;\r\n`;\r\n\r\nexport const bodyL: CSSResult = css`\r\n font-family: 'Graphik', sans-serif;\r\n font-weight: 400;\r\n font-size: 18px;\r\n line-height: 30px;\r\n letter-spacing: 0%;\r\n`;\r\n\r\nexport const titleXXS: CSSResult = css`\r\n font-family: 'Graphik', sans-serif;\r\n font-weight: 400;\r\n font-size: 18px;\r\n line-height: 30px;\r\n letter-spacing: 0%;\r\n vertical-align: middle;\r\n`;\r\n\r\nexport const titleXS: CSSResult = css`\r\n font-family: 'Graphik', sans-serif;\r\n font-weight: 400;\r\n font-size: 20px;\r\n line-height: 30px;\r\n letter-spacing: -1%;\r\n vertical-align: middle;\r\n`;\r\n\r\nexport const titleS: CSSResult = css`\r\n font-family: 'Graphik', sans-serif;\r\n font-weight: 400;\r\n font-size: 26px;\r\n line-height: 30px;\r\n letter-spacing: -1%;\r\n vertical-align: middle;\r\n`;\r\n","import { LitElement, html, css, TemplateResult } from 'lit';\r\nimport { customElement, property, state } from 'lit/decorators.js';\r\nimport { bodyM } from '../styles/fontStyles';\r\n\r\nconst DESKTOP_MEDIA_QUERY = '(min-width: 501px)';\r\n\r\n@customElement('accordion-panel')\r\nexport class AccordionPanel extends LitElement {\r\n @property({ type: String }) title = '';\r\n\r\n @state() private isOpen = false;\r\n @state() private isDesktop = window.matchMedia(DESKTOP_MEDIA_QUERY).matches;\r\n\r\n private mediaQueryList!: MediaQueryList;\r\n\r\n static styles = css`\r\n :host {\r\n display: flex;\r\n flex-direction: column;\r\n font-family: 'Graphik', sans-serif; \r\n }\r\n\r\n .header {\r\n position: relative;\r\n display: flex;\r\n justify-content: space-between;\r\n gap: 16px;\r\n flex-direction: row;\r\n align-items: center;\r\n cursor: pointer;\r\n min-height: 25px;\r\n padding-bottom: 16px;\r\n }\r\n\r\n .title {\r\n ${ bodyM }\r\n color: var( --secondary-color );\r\n }\r\n\r\n .icon-wrapper {\r\n position: absolute;\r\n top: -7px;\r\n right: 0;\r\n width: 40px;\r\n height: 40px;\r\n border-radius: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n transition: background-color .5s ease-in-out;\r\n }\r\n\r\n .icon {\r\n transition: transform .5s ease-in-out;\r\n }\r\n\r\n .content {\r\n overflow: hidden;\r\n height: 0;\r\n max-height: 0;\r\n opacity: 0;\r\n }\r\n\r\n .content.open {\r\n max-height: 1000px;\r\n padding-bottom: 16px;\r\n height: auto;\r\n opacity: 1;\r\n }\r\n\r\n .content, .content.open {\r\n transition: height .5s ease-in-out, opacity .5s ease-in-out, padding-bottom .3s ease-in-out;\r\n }\r\n\r\n :host::after {\r\n content: '';\r\n display: block;\r\n height: 1px;\r\n background-color: var( --secondary-color-20 );\r\n width: 100%;\r\n }\r\n\r\n @media (min-width: 501px) and (hover: hover) and (pointer: fine) {\r\n .header:hover .icon-wrapper {\r\n background-color: var(--primary-color-10);\r\n }\r\n }\r\n\r\n @media (max-width: 650px) {\r\n .title {\r\n max-width: 90%;\r\n }\r\n }\r\n \r\n @media (max-width: 501px) {\r\n .title {\r\n max-width: 90%;\r\n }\r\n }\r\n `;\r\n\r\n public connectedCallback(): void {\r\n super.connectedCallback();\r\n this.mediaQueryList = window.matchMedia(DESKTOP_MEDIA_QUERY);\r\n this.mediaQueryList.addEventListener('change', this.handleMediaQueryChange);\r\n }\r\n\r\n public disconnectedCallback(): void {\r\n super.disconnectedCallback();\r\n this.mediaQueryList.removeEventListener('change', this.handleMediaQueryChange);\r\n }\r\n\r\n private handleMediaQueryChange = (event: MediaQueryListEvent) => {\r\n this.isDesktop = event.matches;\r\n };\r\n\r\n private toggle() {\r\n this.isOpen = !this.isOpen;\r\n }\r\n\r\n public render() {\r\n const iconTemplate: TemplateResult = html`\r\n <randstad-icon\r\n name=\"${ this.isOpen ? 'arrow_up' : 'arrow_down' }\"\r\n size=\"24\"\r\n .color=${ 'var( --primary-color )' }\r\n >\r\n </randstad-icon>\r\n `;\r\n\r\n return html`\r\n <div class=\"header\" @click=${ this.toggle }>\r\n <div class=\"title\">${ this.title }</div>\r\n <div class=\"icon\">\r\n ${ this.isDesktop\r\n ? html`<div class=\"icon-wrapper\">${ iconTemplate }</div>`\r\n : iconTemplate\r\n }\r\n </div>\r\n </div>\r\n\r\n <div class=\"content ${ this.isOpen ? 'open' : '' }\">\r\n <slot></slot>\r\n </div>\r\n `;\r\n }\r\n}","import { LitElement, css, html } from 'lit';\r\nimport { customElement } from 'lit/decorators.js';\r\n\r\n@customElement('accordion-list')\r\nexport class AccordionList extends LitElement {\r\n static styles = css`\r\n :host {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 16px;\r\n }\r\n `;\r\n\r\n public render() {\r\n return html`<slot></slot>`;\r\n }\r\n}","import { LitElement, html, css } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\nimport { bodyM, bodyL } from '../styles/fontStyles';\r\nimport { classMap } from 'lit/directives/class-map.js';\r\n\r\nimport '../styles/buttons.css';\r\n\r\n@customElement('randstad-button')\r\nexport class RandstadButton extends LitElement {\r\n @property({ type: String }) type: 'button' | 'submit' | 'reset' = 'button';\r\n @property({ type: String }) variant: 'button-primary' | 'button-secondary' | 'button-tertiary' | 'button-round' | 'button-card' | 'button-icon' | 'button-danger'= 'button-primary';\r\n \r\n @property({ type: String }) size: 'sm' | 'md' | 'lg' = 'md';\r\n @property({ type: String }) label = '';\r\n\r\n @property({ type: Boolean }) loader = false;\r\n\r\n @property({ type: String, attribute: 'icon-src' }) iconSrc?: string;\r\n @property({ type: String }) iconPosition: 'left' | 'right' = 'left';\r\n @property({ type: String }) iconName: string | null = null;\r\n\r\n @property({ type: Boolean, reflect: true }) disabled: boolean = false;\r\n \r\n @property({ type: String }) idevent = '';\r\n\r\n static styles = css`\r\n :host {\r\n display: inline-block;\r\n --content-padding: 16px;\r\n }\r\n\r\n .button {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 4px;\r\n cursor: pointer;\r\n font-weight: 400;\r\n padding: 0;\r\n border: none;\r\n transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;\r\n gap: 4px;\r\n width: 100%;\r\n position: relative;\r\n box-sizing: border-box; \r\n }\r\n\r\n .content-container {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n gap: 4px;\r\n width: 100%;\r\n padding: var( --content-padding );\r\n height: 100%;\r\n }\r\n\r\n .content-container .label-text {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n height: 100%;\r\n }\r\n\r\n .button-lg {\r\n ${bodyL}\r\n min-height: 62px;\r\n }\r\n\r\n .button-md {\r\n ${bodyM}\r\n min-height: 57px;\r\n }\r\n\r\n .button-sm {\r\n width: 62px;\r\n height: 62px;\r\n min-width: 62px;\r\n min-height: 62px;\r\n padding: 0;\r\n }\r\n\r\n /* Primary */\r\n .button-primary {\r\n background-color: var(--primary-color);\r\n color: var(--white);\r\n }\r\n\r\n .button-primary:not([disabled]):hover {\r\n background-color: var(--primary-button-hover);\r\n }\r\n\r\n .button-primary:not([disabled]):active {\r\n background-color: var(--primary-button-active);\r\n }\r\n\r\n .button-primary:not([disabled]):focus-visible {\r\n outline: 2px solid var(--primary-button-focus);\r\n outline-offset: 2px;\r\n }\r\n \r\n .button-danger:not([disabled]):focus-visible {\r\n outline: 2px solid var(--primary-button-focus);\r\n outline-offset: 2px;\r\n }\r\n\r\n .button-primary[disabled] {\r\n color: var(--secondary-color-60);\r\n background-color: var(--secondary-color-20);\r\n cursor: default;\r\n }\r\n\r\n /* Secondary */\r\n .button-secondary {\r\n background: none;\r\n color: var(--primary-color);\r\n border: 1px solid var(--primary-color);\r\n }\r\n\r\n .button-secondary:not([disabled]):hover {\r\n color: var(--primary-button-hover);\r\n border-color: var(--primary-button-hover);\r\n }\r\n\r\n .button-secondary:not([disabled]):active {\r\n color: var(--secondary-color-80);\r\n border-color: var(--secondary-color-80);\r\n }\r\n\r\n .button-secondary:not([disabled]):focus-visible {\r\n outline: 2px solid var(--primary-color);\r\n outline-offset: 2px;\r\n }\r\n\r\n .button-secondary[disabled] {\r\n color: var(--secondary-color-60);\r\n border-color: var(--secondary-color-60);\r\n cursor: default;\r\n }\r\n\r\n /* DANGER */\r\n .button-danger {\r\n background-color: var(--danger-button, #E00F0F);\r\n color: var(--white);\r\n }\r\n\r\n .button-danger:not([disabled]):hover {\r\n background-color: var(--danger-button-hover, #C90D0D);\r\n }\r\n\r\n .button-danger:not([disabled]):active {\r\n background-color: var(--danger-button-active, #B30C0C);\r\n }\r\n\r\n .button-danger[disabled] {\r\n background-color: #CFD1D9;\r\n color: var(--secondary-color-60);\r\n cursor: default;\r\n }\r\n\r\n /* Tertiary */\r\n .button-tertiary {\r\n background: none;\r\n border: none;\r\n color: var(--primary-color);\r\n }\r\n\r\n .button-tertiary:not([disabled]):hover {\r\n background: var(--primary-color-5);\r\n }\r\n\r\n .button-tertiary:not([disabled]):active {\r\n background-color: var(--primary-color-10);\r\n }\r\n\r\n .button-tertiary:not([disabled]):focus-visible {\r\n outline: 2px solid var(--primary-color);\r\n outline-offset: 2px;\r\n }\r\n\r\n .button-tertiary[disabled] {\r\n color: var(--secondary-color-60);\r\n cursor: default;\r\n }\r\n\r\n /* Round */\r\n .button-round {\r\n width: 48px;\r\n height: 48px;\r\n border-radius: 50%;\r\n background-color: var(--white);\r\n box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);\r\n padding: 0;\r\n }\r\n\r\n .button-round:not([disabled]):hover {\r\n background-color: var(--randstad-blue-10);\r\n }\r\n\r\n .button-round:not([disabled]):active {\r\n background-color: var(--randstad-blue-40);\r\n }\r\n\r\n .button-round:not([disabled]):focus-visible {\r\n outline: 2px solid var(--primary-color);\r\n outline-offset: 2px;\r\n }\r\n\r\n .button-round[disabled] {\r\n background-color: var(--secondary-color-20);\r\n cursor: default;\r\n }\r\n \r\n .button-icon-img {\r\n width: 24px;\r\n height: 24px;\r\n object-fit: contain;\r\n }\r\n\r\n .button-round img.button-icon {\r\n width: 24px;\r\n height: 24px;\r\n }\r\n\r\n /* Button Icon */\r\n .button-icon {\r\n background: none;\r\n border: none;\r\n color: var(--primary-color);\r\n padding: 4px;\r\n }\r\n\r\n .button-icon:not([disabled]):hover {\r\n background: var(--primary-color-5);\r\n }\r\n\r\n .button-icon:not([disabled]):active {\r\n background-color: var(--primary-color-10);\r\n }\r\n\r\n .button-icon:not([disabled]):focus-visible {\r\n outline: 2px solid var(--primary-color);\r\n outline-offset: 2px;\r\n }\r\n\r\n .button-icon[disabled] {\r\n color: var(--secondary-color-60);\r\n cursor: default;\r\n }\r\n \r\n /* Loader */\r\n .loader, .label-text, .button-icon {\r\n line-height: 1; \r\n }\r\n \r\n .loader {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n gap: 8px;\r\n }\r\n\r\n .dot {\r\n border-radius: 50%;\r\n display: inline-block;\r\n animation: growAndFade 2.4s infinite ease-in-out;\r\n }\r\n\r\n .button-md .dot {\r\n width: 6px;\r\n height: 6px;\r\n }\r\n\r\n .button-lg .dot {\r\n width: 8px;\r\n height: 8px;\r\n }\r\n\r\n .dot:nth-child(1) { animation-delay: 0s; }\r\n .dot:nth-child(2) { animation-delay: 0.8s; }\r\n .dot:nth-child(3) { animation-delay: 1.6s; }\r\n\r\n @keyframes growAndFade {\r\n 0% { transform: scale(1); }\r\n 16.67% { transform: scale(1.5); }\r\n 33.33% { transform: scale(1.5); }\r\n 50% { transform: scale(1); }\r\n 100% { transform: scale(1); }\r\n }\r\n\r\n .button-primary.loader .dot,\r\n .button-secondary.loader .dot {\r\n background-color: var(--white);\r\n }\r\n\r\n .button-secondary.loader {\r\n background-color: var(--primary-color);\r\n border: none;\r\n color: var(--white);\r\n }\r\n\r\n /* Estilos de sobrescritura para el estado de carga */\r\n .button-primary.loader[disabled] {\r\n background-color: var(--primary-color) !important;\r\n color: var(--white) !important;\r\n }\r\n\r\n .button-secondary.loader[disabled] {\r\n background-color: var(--primary-color) !important;\r\n border-color: var(--primary-color) !important;\r\n color: var(--white) !important;\r\n }\r\n\r\n .button-tertiary.loader[disabled] {\r\n color: var(--primary-color) !important;\r\n background-color: transparent !important;\r\n }\r\n\r\n .button-round.loader[disabled] {\r\n background-color: var(--white) !important;\r\n }\r\n\r\n .button-icon.loader[disabled] {\r\n color: var(--primary-color) !important;\r\n background-color: transparent !important;\r\n }\r\n /* */ \r\n\r\n .button-card {\r\n font-family: 'Graphik';\r\n background-color: var(--primary-color);\r\n color: var(--white);\r\n border-radius: 4px;\r\n padding: 4px 16px;\r\n font-weight: 400;\r\n font-size: 12px;\r\n line-height: 15px;\r\n letter-spacing: 0%;\r\n text-align: center;\r\n vertical-align: middle;\r\n\r\n }\r\n\r\n .button-card:not([disabled]):hover {\r\n background-color: #175197;\r\n }\r\n\r\n .button-card:not([disabled]):active {\r\n background-color: #124077;\r\n }\r\n\r\n .button-card:not([disabled]):focus-visible {\r\n outline: 2px solid var(--primary-color);\r\n outline-offset: 2px;\r\n }\r\n\r\n .button-card[disabled] {\r\n background-color: #CFD1D9;\r\n color: #6F758D;\r\n cursor: default;\r\n }\r\n `;\r\n\r\n private handleClick(event: Event) {\r\n if (this.disabled) return;\r\n\r\n if (this.type === 'submit') {\r\n const form = this.closest('form');\r\n if (form) form.requestSubmit();\r\n } else if( this.type === 'reset'){\r\n const form = this.closest('form');\r\n if (form) form.reset();\r\n } else if(this.idevent){\r\n const result = this.dispatchEvent(new CustomEvent('randstad-button-click',{detail:this.idevent,composed:true, bubbles: true, cancelable: false}))\r\n }\r\n }\r\n\r\n public render() {\r\n const classes = {\r\n button: true,\r\n [this.variant]: true,\r\n loader: this.loader,\r\n [`button-${this.size}`]: ['button-primary', 'button-secondary', 'button-tertiary', 'button-danger'].includes(this.variant) || this.size === 'sm'\r\n };\r\n \r\n const dotColor = this.variant === 'button-tertiary' ? 'var(--primary-color)' : 'white';\r\n\r\n const iconTemplate = html`\r\n ${this.iconSrc \r\n ? html`<img src=${this.iconSrc} alt=\"icon\" class=\"button-icon-img\" part=\"button-icon\"/>` \r\n : ''}\r\n ${this.iconName \r\n ? html`<randstad-icon name=${this.iconName} size=\"24px\"></randstad-icon>` \r\n : ''}\r\n `;\r\n \r\n return html`\r\n <button\r\n part=\"button\"\r\n type=${this.type}\r\n class=${classMap(classes)}\r\n ?disabled=${this.disabled || this.loader}\r\n ?aria-busy=${this.loader}\r\n @click=${this.handleClick}\r\n >\r\n <div class=\"content-container\">\r\n ${this.loader\r\n ? html`\r\n <div class=\"loader\">\r\n <span class=\"dot\" style=\"background-color: ${dotColor};\"></span>\r\n <span class=\"dot\" style=\"background-color: ${dotColor};\"></span>\r\n <span class=\"dot\" style=\"background-color: ${dotColor};\"></span>\r\n </div>`\r\n : html`\r\n ${this.iconPosition === 'left' ? iconTemplate : ''}\r\n \r\n ${this.label ? html`<span class=\"label-text\" part=\"label\">${this.label}</span>` : html`<slot></slot>`}\r\n \r\n ${this.iconPosition === 'right' ? iconTemplate : ''}\r\n `\r\n }\r\n </div>\r\n </button>\r\n `;\r\n }\r\n}","import { LitElement, html, css } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\nimport { bodyS, bodyL } from '../styles/fontStyles';\r\n\r\n@customElement('carousel-card')\r\nexport class CarouselCard extends LitElement {\r\n @property({ type: String }) img = '';\r\n @property({ type: String }) name = '';\r\n @property({ type: String }) title = '';\r\n @property({ type: String }) description = '';\r\n @property({ type: String }) buttonLabel = '';\r\n @property({ type: String }) cardId = '';\r\n\r\n @property({ type: Object }) onClick: any;\r\n\r\n  @property({ type: String }) width: string = ''; \r\n  @property({ type: String }) height: string = ''; \r\n\r\n static styles = css`\r\n :host {\r\n display: inline-block;\r\n font-family: \"Graphik\", sans-serif;\r\n user-drag: none; /* Añade esta línea para deshabilitar el arrastre */\r\n -webkit-user-drag: none; /* Para navegadores Webkit */\r\n }\r\n\r\n .image-container {\r\n position: relative;\r\n border-radius: 8px;\r\n overflow: hidden;\r\n background-size: cover;\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n display: flex;\r\n align-items: flex-end;\r\n }\r\n\r\n .overlay-gradient,\r\n .overlay-hover {\r\n position: absolute;\r\n inset: 0;\r\n border-radius: 8px;\r\n transition: opacity 1s ease;\r\n z-index: 0;\r\n pointer-events: none;\r\n }\r\n\r\n .overlay-gradient {\r\n background: linear-gradient(180deg, rgba(15, 25, 65, 0) 0%, rgba(15, 25, 65, 0.279522) 48.01%, rgba(15, 25, 65, 0.6) 80.13%, rgba(15, 25, 65, 0.6) 100%);\r\n opacity: 1;\r\n }\r\n\r\n .overlay-hover {\r\n background: #0F1941CC;\r\n opacity: 0;\r\n }\r\n\r\n .image-container:hover .overlay-hover {\r\n opacity: 1;\r\n }\r\n\r\n .content-container {\r\n position: relative;\r\n z-index: 1;\r\n color: #FFFFFF;\r\n padding: 24px;\r\n box-sizing: border-box;\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n padding: 24px;\r\n }\r\n\r\n .image-container:hover .content-container {\r\n gap: 24px;\r\n }\r\n\r\n .title-wrapper {\r\n margin-bottom: 0; /* reset, por si acaso */\r\n }\r\n\r\n .title {\r\n ${ bodyL }\r\n margin: 0;\r\n }\r\n\r\n .details {\r\n max-height: 0;\r\n overflow: hidden;\r\n opacity: 0;\r\n transform: translateY(40px);\r\n transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;\r\n transition-duration: .5s;\r\n }\r\n\r\n .image-container:hover .details {\r\n max-height: 240px;\r\n opacity: 1;\r\n transform: translateY(0);\r\n overflow: visible;\r\n transition-duration: .8s;\r\n }\r\n\r\n .description {\r\n ${ bodyS }\r\n margin: 0;\r\n }\r\n\r\n ::part(button) {\r\n color: white;\r\n border: 1px solid white;\r\n background: transparent;\r\n text-align: left;\r\n margin-top: 24px;\r\n }\r\n\r\n ::part(button):hover {\r\n background-color: rgba( 255, 255, 255, 0.1 );\r\n }\r\n\r\n ::part(button):active {\r\n background-color: rgba( 255, 255, 255, 0.2 );\r\n } \r\n `;\r\n\r\n private handleButtonClick( event: CustomEvent ) {\r\n event.stopPropagation();\r\n\r\n if ( this.onClick ) \r\n this.onClick( event );\r\n \r\n else\r\n this.dispatchEvent( new CustomEvent( 'card-button-click', {\r\n detail: event.detail,\r\n bubbles: true,\r\n composed: true\r\n }));\r\n }\r\n\r\n // Agregamos el listener en el connectedCallback\r\n public connectedCallback() {\r\n super.connectedCallback();\r\n this.addEventListener( 'randstad-button-click', this.handleButtonClick as EventListener );\r\n }\r\n\r\n // Y lo removemos en el disconnectedCallback\r\n public disconnectedCallback() {\r\n super.disconnectedCallback();\r\n this.removeEventListener( 'randstad-button-click', this.handleButtonClick as EventListener );\r\n }\r\n\r\n public render() {\r\n const backgroundImageStyle: string = ` background-image: url( ${ this.img } ); `;\r\n \r\n const cardWidthStyle: string = this.width ? `width: ${ this.width };` : '';\r\n    const sizeStyle: string = `${ cardWidthStyle } height: ${ this.height ?? '390px' };`;\r\n\r\n    const combinedStyle: string = `${ sizeStyle } ${ backgroundImageStyle }`;\r\n\r\n return html`\r\n <div class=\"image-container\" style=\"${ combinedStyle };\">\r\n <div class=\"overlay-gradient\"></div>\r\n\r\n <div class=\"overlay-hover\"></div>\r\n\r\n <div class=\"content-container\">\r\n <div class=\"title-wrapper\">\r\n <h3 class=\"title\">${ this.name }</h3>\r\n </div>\r\n\r\n <div class=\"details\">\r\n <p class=\"description\">${ this.description }</p>\r\n\r\n ${ this.cardId ?\r\n html`\r\n <randstad-button\r\n variant=\"button-tertiary\"\r\n .label=${ this.buttonLabel }\r\n idevent=${ this.cardId }\r\n @randstad-button-click=${ this.handleButtonClick }\r\n >\r\n </randstad-button>`\r\n\r\n : html`\r\n <randstad-button\r\n variant=\"button-tertiary\"\r\n .label=${ this.buttonLabel }\r\n @randstad-button-click=${ this.handleButtonClick }\r\n >\r\n </randstad-button>\r\n `\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n `;\r\n }\r\n}","import { LitElement, html, css } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\nimport { bodyS } from '../styles/fontStyles';\r\n\r\n@customElement('randstad-checkbox')\r\nexport class Checkbox extends LitElement {\r\n @property({ type: Boolean, reflect: true }) checked = false;\r\n @property({ type: Boolean }) error = false;\r\n @property({ type: Boolean }) disabled = false;\r\n @property({ type: String }) checkedColor = 'var(--primary-color)';\r\n @property({ type: String }) checkedBgColor = 'transparent';\r\n\r\n static styles = css`\r\n :host {\r\n display: block;\r\n max-width: 100%;\r\n }\r\n\r\n label {\r\n ${bodyS}\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n color: var(--secondary-color);\r\n }\r\n\r\n input[type=\"checkbox\"] {\r\n min-width: 24px;\r\n min-height: 24px;\r\n cursor: pointer;\r\n border-radius: 4px;\r\n border: 1px solid var(--secondary-color-20);\r\n appearance: none;\r\n position: relative;\r\n background-color: var(--_initial-bg, transparent);\r\n transition: background-color 0.2s ease;\r\n }\r\n\r\n input[type=\"checkbox\"]:checked {\r\n background-color: var(--_checked-bg, var(--primary-color));\r\n border: 1px solid var(--_checked-bg, var(--primary-color));\r\n }\r\n\r\n input[type=\"checkbox\"]:checked::after {\r\n content: '';\r\n position: absolute;\r\n left: 8px;\r\n top: 4px;\r\n width: 5px;\r\n height: 11px;\r\n border: solid white;\r\n border-width: 0 1px 1px 0;\r\n transform: rotate(45deg);\r\n }\r\n\r\n input[type=\"checkbox\"]:checked:disabled::after {\r\n border-color: var(--secondary-color-40);\r\n }\r\n\r\n label.error input[type=\"checkbox\"]:checked:disabled::after {\r\n border-color: white;\r\n }\r\n\r\n .terms-text {\r\n display: inline;\r\n }\r\n\r\n .terms-text ::slotted(a) {\r\n color: var(--primary-color);\r\n text-decoration: none;\r\n cursor: pointer;\r\n }\r\n\r\n input[type=\"checkbox\"].error,\r\n label.error input[type=\"checkbox\"]:not(:disabled) {\r\n border-color: var(--ui-negative);\r\n }\r\n\r\n /* Hover sin error (solo si no está deshabilitado) */\r\n input[type=\"checkbox\"]:hover:not(:disabled):not(.error) {\r\n box-shadow: 0 0 0 4px var(--secondary-color-10);\r\n }\r\n\r\n /* Hover con error (solo si no está deshabilitado) */\r\n label.error input[type=\"checkbox\"]:hover:not(:disabled) {\r\n box-shadow: 0px 0px 0px 4px #E00F0F1A;\r\n }\r\n\r\n /* ✅ Focus sin error */\r\n input[type=\"checkbox\"]:focus-visible:not(:disabled):not(.error),\r\n label:not(.error) input[type=\"checkbox\"]:focus-visible:not(:disabled) {\r\n outline: none;\r\n box-shadow: 0 0 0 4px var(--secondary-color-10);\r\n }\r\n\r\n /* ❌ Focus con error */\r\n label.error input[type=\"checkbox\"]:focus-visible:not(:disabled) {\r\n outline: none;\r\n box-shadow: 0 0 0 4px #E00F0F1A;\r\n }\r\n\r\n input[type=\"checkbox\"].error:checked,\r\n label.error input[type=\"checkbox\"]:checked {\r\n background-color: var(--ui-negative);\r\n border-color: var(--ui-negative);\r\n }\r\n\r\n input[type=\"checkbox\"]:disabled {\r\n background-color: var(--secondary-color-10)!important;\r\n border-color: var(--secondary-color-20);\r\n color: #9FA3B3;\r\n cursor: default;\r\n }\r\n\r\n label.disabled {\r\n color: #9FA3B3;\r\n }\r\n\r\n input[type=\"checkbox\"]:focus-visible:not(:disabled):not(.error),\r\n label:not(.error) input[type=\"checkbox\"]:focus-visible:not(:disabled) {\r\n outline: none;\r\n box-shadow: 0 0 0 2px rgb( 0, 215, 255 ), 0 0 0 4px var( --secondary-color-10 );\r\n }\r\n `;\r\n\r\n private toggleCheck( event: Event ) {\r\n this.checked = ( event.target as HTMLInputElement ).checked;\r\n\r\n this.dispatchEvent( new Event( 'input', { bubbles: true, composed: true } ) );\r\n this.dispatchEvent( new Event( 'change', { bubbles: true, composed: true } ) );\r\n this.dispatchEvent( new Event( 'click', { bubbles: true, composed: true } ) );\r\n }\r\n\r\n private handleKeyDown( event: KeyboardEvent ) {\r\n if ( this.disabled ) return;\r\n const { key } = event;\r\n\r\n // Intercepta Enter y Space para activar el checkbox\r\n if ( key === 'Enter' || key === ' ' ) {\r\n event.preventDefault();\r\n this.checked = !this.checked;\r\n\r\n this.dispatchEvent( new Event( 'input', { bubbles: true, composed: true } ) );\r\n this.dispatchEvent( new Event( 'change', { bubbles: true, composed: true } ) );\r\n this.dispatchEvent( new Event( 'click', { bubbles: true, composed: true } ) );\r\n }\r\n }\r\n\r\n public render() {\r\n const inlineStyles = `\r\n --_checked-bg: ${this.checkedColor}; \r\n --_initial-bg: ${this.checkedBgColor};\r\n `;\r\n return html`\r\n <label class=\"${ this.error ? 'error' : '' } ${ this.disabled ? 'disabled' : '' }\" style=\"${inlineStyles}\">\r\n <input\r\n type=\"checkbox\"\r\n role=\"checkbox\"\r\n aria-checked=${ this.checked ? 'true' : 'false' }\r\n .checked=${ this.checked }\r\n ?disabled=${ this.disabled }\r\n @change=${ this.toggleCheck }\r\n @keydown=${ this.handleKeyDown }\r\n @focus=${ () => this.setAttribute( 'focused', '' ) }\r\n @blur=${ () => this.removeAttribute( 'focused' ) }\r\n />\r\n <span class=\"terms-text\">\r\n <slot></slot>\r\n </span>\r\n </label>\r\n `;\r\n }\r\n}","import { css, CSSResult } from 'lit';\n\nexport const tooltipStyles: CSSResult = css`\n .label-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n }\n \n .tooltip-wrapper {\n position: relative;\n display: inline-flex;\n align-items: center;\n }\n\n .tooltip {\n position: absolute;\n top: 160%;\n right: 0;\n \n background-color: var( --tooltip-background, #0F1941 );\n color: var(--tooltip-color, #fff);\n\n padding: 8px 12px;\n border-radius: 4px;\n font-size: 14px;\n line-height: 20px;\n\n width: 250px;\n max-width: 250px;\n \n z-index: 10;\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;\n }\n\n .tooltip::after {\n content: '';\n position: absolute;\n top: -6px;\n right: 4px;\n \n width: 0;\n height: 0;\n border-style: solid;\n border-width: 0 6px 6px 6px; \n border-color: transparent transparent var( --tooltip-background, #0F1941 ) transparent; \n }\n\n .tooltip-wrapper:hover .tooltip {\n visibility: visible;\n opacity: 1;\n }\n\n .tooltip-wrapper.clickable {\n cursor: pointer;\n }\n\n .tooltip-wrapper.clickable:hover .tooltip {\n visibility: hidden;\n opacity: 0;\n }\n\n .tooltip-wrapper.clickable .tooltip.active {\n visibility: visible;\n opacity: 1;\n }\n`;","import { css, CSSResult } from \"lit\";\n\nexport const focusStyles: CSSResult = css `\n .button:focus-visible, button:focus-visible {\n outline: 2px solid rgb( 0, 215, 255 );\n outline-offset: 1px;\n border-radius: 4px;\n z-index: 100;\n }\n`;","\nimport { css, CSSResult } from \"lit\";\nimport { bodyL, bodyM, bodyXS } from \"./fontStyles\";\nimport { focusStyles } from \"./focus\";\n\nexport const mixStyles: CSSResult = css `\n ${ focusStyles } \n \n :host {\n display: block;\n font-family: \"Graphik\", sans-serif;\n color: var( --secondary-randstad-dark-blue, #0f1941 );\n width: 100%;\n }\n\n .form-label {\n ${ bodyM }\n display: flex;\n align-items: baseline;\n flex-direction: row;\n gap: 4px;\n color: var( --label-color, var( --secondary-color-80 ) );\n }\n\n .input-container {\n position: relative;\n width: 100%;\n max-width: 100%;\n }\n\n input::placeholder {\n ${ bodyL }\n color: var( --secondary-color-40 );\n }\n\n .helper-description {\n ${ bodyM }\n color: var( --secondary-color-40 );\n margin: 0;\n }\n\n .required {\n color: var( --ui-negative );\n }\n\n .optional {\n color: var( --secondary-color-60 );\n ${ bodyXS }\n }\n\n randstad-icon {\n color: var( --primary-color );\n }\n`;","import { css, CSSResult } from \"lit\";\nimport { bodyM } from \"./fontStyles\";\n\nexport const errorStyles: CSSResult = css `\n :host([error]) .input-wrapper, .form.error .form-input {\n border: 1px solid var( --ui-negative, red ) !important;\n }\n\n :host([error]) .input-wrapper:hover, .form.error:hover .form-input:hover {\n box-shadow: 0px 0px 0px 4px #e00f0f1a !important;\n }\n\n :host([error]) .input-wrapper.active, .form.error.active .form-input.active {\n border: 1px solid var( --ui-negative, red ) !important;\n box-shadow: none !important;\n }\n\n .error-message {\n ${ bodyM }\n color: var(--ui-negative, #E00F0F);\n margin-top: 4px;\n }\n`;","import { css } from 'lit';\n\nexport const scrollbarStyles = css`\n ::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n\n ::-webkit-scrollbar-track {\n background: #E8E8E8;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: #7A7A7A;\n border-radius: 100px;\n }\n\n ::-webkit-scrollbar-button {\n display: none;\n }\n`;","import { html, css, nothing, TemplateResult } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\nimport { bodyM, bodyL } from '../styles/fontStyles';\r\nimport { tooltipStyles } from \"../styles/tooltip\";\r\nimport { BaseControl } from '../helpers/BaseControl';\r\nimport { mixStyles } from '../styles/mix';\r\nimport { errorStyles } from '../styles/error';\r\nimport { scrollbarStyles } from '../styles/scrollbar';\r\n\r\nconst REGEX_NO_EMOJIS = /[\\p{Extended_Pictographic}\\u{FE0F}\\u{1F3FB}-\\u{1F3FF}\\u{1F9B0}-\\u{1F9B3}\\u{200D}]/gu;\r\n\r\n@customElement('randstad-form')\r\nexport class RandstadForm extends BaseControl {\r\n //Evento post input en tiempo real durante la escritura, para validación pattern only text, only numeric, alphanumeric o custom regex.\r\n @property({ type: String }) keydown: 'number' | 'text' | 'alfanumeric' | undefined = undefined;\r\n\r\n //Expresión regex personalizada para limitar caracteres permitidos en el input.\r\n //Se aplica solo cuando keydown no es 'number', 'text' o 'alfanumeric'.\r\n @property({ type: String }) keydownRegex?: string;\r\n\r\n @property({ type: String }) size: 'sm' | 'md' | 'lg' = 'md';\r\n @property({ type: String }) icon: 'left' | 'right' | null = null;\r\n\r\n @property({ type: Boolean }) typing: boolean = false;\r\n @property({ type: String }) type: 'text' | 'password' | 'textarea' = 'text';\r\n\r\n @property({ type: String }) linkText?: string;\r\n @property({ type: String }) linkRoute?: string;\r\n\r\n @property({ type: Boolean, reflect: true }) isPasswordVisible = false;\r\n @property({ type: Boolean }) cleanButton: boolean = false;\r\n @property({ type: Number }) maxLength?: number;\r\n\r\n @property({ type: String }) heightTextArea?: string;\r\n @property({ type: String }) maxHeightTextArea?: string;\r\n\r\n static styles = [\r\n scrollbarStyles,\r\n css`\r\n ${mixStyles}\r\n ${errorStyles}\r\n ${tooltipStyles}\r\n\r\n .form {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n width: 100%;\r\n }\r\n\r\n .form-input {\r\n ${bodyL}\r\n padding: 16px;\r\n border: 1px solid var(--secondary-color-10);\r\n border-radius: 4px;\r\n outline: none;\r\n transition: border-color 0.3s ease, box-shadow 0.3s ease;\r\n width: 100%;\r\n color: var(--secondary-color);\r\n }\r\n \r\n .form-input:-webkit-autofill,\r\n .form-input:-webkit-autofill:hover,\r\n .form-input:-webkit-autofill:focus,\r\n .form-input:-webkit-autofill:active {\r\n -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;\r\n -webkit-text-fill-color: var(--secondary-color);\r\n transition: background-color 5000s ease-in-out 0s;\r\n }\r\n\r\n /* Hover normal (sin error ni foco) */\r\n .form:not(.error):not(:focus-within) .form-input:hover {\r\n box-shadow: 0px 0px 0px 4px var(--form-hover-shadow);\r\n }\r\n\r\n /* Hover con error (sin foco) */\r\n .form.error:not(:focus-within) .form-input:hover {\r\n box-shadow: 0px 0px 0px 4px var(--ui-negative-pink-shadow);\r\n }\r\n\r\n .form-input:focus {\r\n border: 2px solid var(--primary-color)\r\n }\r\n\r\n .form.disabled .form-input, \r\n .form.disabled .toggle-password randstad-icon,\r\n .form.disabled .clean-button randstad-icon {\r\n background-color: var( --secondary-color-10 );\r\n color: #9FA3B3;\r\n cursor: default;\r\n }\r\n \r\n .form.disabled .toggle-password,\r\n .form.disabled .clean-button {\r\n cursor: default;\r\n }\r\n\r\n .input-with-button {\r\n display: flex;\r\n align-items: center;\r\n width: 100%;\r\n position: relative;\r\n }\r\n\r\n .input-with-button input {\r\n width: 100%;\r\n }\r\n\r\n .input-with-button input[type=\"password\"]{\r\n padding-right: 40px;\r\n }\r\n\r\n .input-with-button button {\r\n position: absolute;\r\n right: 10px;\r\n top: 50%;\r\n transform: translateY(-50%);\r\n background: transparent;\r\n border: none;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n width: 40px;\r\n height: 40px;\r\n }\r\n\r\n .toggle-password randstad-icon {\r\n width: 100%;\r\n height: 100%;\r\n max-width: 32px;\r\n max-height: 32px;\r\n }\r\n\r\n textarea {\r\n ${bodyL}\r\n resize: none;\r\n }\r\n\r\n textarea.form-input {\r\n min-height: 30px;\r\n width: 100%;\r\n }\r\n\r\n .form.disabled textarea.form-input {\r\n background-color: var(--secondary-color-10);\r\n color: #9FA3B3;\r\n cursor: default;\r\n }\r\n \r\n .link-text {\r\n ${bodyM}\r\n color: var(--primary-color);\r\n cursor: pointer;\r\n text-align: end;\r\n text-decoration: none;\r\n vertical-align: middle;\r\n display: inline;\r\n padding: 0;\r\n margin: 0;\r\n line-height: normal;\r\n }\r\n\r\n .link-text:hover {\r\n color: var(--secondary-color);\r\n text-decoration: underline;\r\n }\r\n\r\n .clean-button {\r\n position: absolute;\r\n right: 10px;\r\n top: 50%;\r\n transform: translateY(-50%);\r\n background: transparent;\r\n border: none;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n width: 40px;\r\n height: 40px;\r\n }\r\n\r\n .clean-button randstad-icon {\r\n width: 24px;\r\n height: 24px;\r\n color: var( --primary-color );\r\n }\r\n `\r\n ];\r\n\r\n private togglePassword(event: Event) {\r\n this.isPasswordVisible = !this.isPasswordVisible;\r\n\r\n const input: HTMLInputElement | null | undefined = (event.currentTarget as HTMLElement).parentElement?.querySelector('input');\r\n if (input) input.type = this.isPasswordVisible ? 'text' : 'password';\r\n\r\n this.requestUpdate();\r\n }\r\n\r\n private handleInput(event: Event) {\r\n this.handleInputCustom(event);\r\n\r\n const target: HTMLInputElement | HTMLTextAreaElement = event.target as HTMLInputElement | HTMLTextAreaElement;\r\n const newValue: string = target.value;\r\n\r\n if (this.maxLength !== undefined && this.type !== 'textarea') this.value = newValue.slice(0, this.maxLength);\r\n else this.value = newValue;\r\n\r\n this.dispatchEvent(new CustomEvent('valueChanged', { detail: this.value }));\r\n this.dispatchEvent(new Event('input', { bubbles: true }));\r\n\r\n this.requestUpdate();\r\n }\r\n\r\n private handleClear() {\r\n this.value = '';\r\n\r\n this.dispatchEvent(new CustomEvent('valueChanged', { detail: this.value }));\r\n this.dispatchEvent(new Event('input', { bubbles: true }));\r\n\r\n this.requestUpdate();\r\n }\r\n\r\n private handleLinkClick(event: Event) {\r\n event.preventDefault();\r\n if (!this.linkRoute) return;\r\n\r\n this.dispatchEvent(\r\n new CustomEvent('linkClicked', {\r\n detail: this.linkRoute,\r\n bubbles: true,\r\n composed: true,\r\n })\r\n );\r\n }\r\n\r\n private _updateValueWithCursor(inputElement: HTMLInputElement, newValue: string, event: Event) {\r\n const currentValue = inputElement.value;\r\n \r\n if (currentValue !== newValue) {\r\n event.preventDefault();\r\n \r\n // Guardamos la posición actual del cursor\r\n const start = inputElement.selectionStart;\r\n const end = inputElement.selectionEnd;\r\n\r\n // Actualizamos el valor en el input\r\n inputElement.value = newValue;\r\n\r\n // Restauramos el cursor compensando la diferencia de longitud\r\n if (start !== null && end !== null) {\r\n const diff = currentValue.length - newValue.length;\r\n const newStart = Math.max(0, start - diff);\r\n const newEnd = Math.max(0, end - diff);\r\n inputElement.setSelectionRange(newStart, newEnd);\r\n }\r\n }\r\n }\r\n\r\n public handleInputCustom(event: Event) {\r\n const inputElement: HTMLInputElement = event.target as HTMLInputElement;\r\n\r\n // lógica condicional para aplicar el filtro de Emojis\r\n let shouldFilterEmojis = false;\r\n\r\n if (this.keydown === 'number' || this.keydown === 'text' || this.keydown === 'alfanumeric') {\r\n shouldFilterEmojis = true;\r\n } else if (this.keydownRegex) {\r\n try {\r\n // Evaluamos si el regex permite emojis.\r\n const allowsEmoji = new RegExp(this.keydownRegex).test('😀');\r\n shouldFilterEmojis = !allowsEmoji;\r\n } catch (e) {\r\n shouldFilterEmojis = true; \r\n }\r\n }\r\n\r\n if (shouldFilterEmojis) {\r\n const valueWithoutEmojis = inputElement.value.replace(REGEX_NO_EMOJIS, '');\r\n this._updateValueWithCursor(inputElement, valueWithoutEmojis, event);\r\n }\r\n \r\n if (this.keydown === 'number') this.onlyNumeric(event);\r\n else if (this.keydown === 'text') this.onlyText(event);\r\n else if (this.keydown === 'alfanumeric') this.onlyAlphanumeric(event);\r\n else if (this.keydownRegex) this.onlyRegex(event);\r\n }\r\n\r\n public onlyNumeric(event: Event) {\r\n const inputElement: HTMLInputElement = event.target as HTMLInputElement;\r\n\r\n // Solo permite dígitos (0-9)\r\n const sanitizedValue: string = inputElement.value.replace(/[^0-9]/g, '');\r\n\r\n // Actualiza el valor del input con el valor limpio\r\n this._updateValueWithCursor(inputElement, sanitizedValue, event);\r\n }\r\n\r\n public onlyText(event: Event) {\r\n const inputElement: HTMLInputElement = event.target as HTMLInputElement;\r\n const sanitizedValue: string = inputElement.value.replace(/[^a-zA-Z\\sáéíóúüñÁÉÍÓÚÑÜ]/g, '');\r\n const trimmedValue: string = sanitizedValue.trimStart();\r\n\r\n this._updateValueWithCursor(inputElement, trimmedValue, event);\r\n }\r\n\r\n public onlyAlphanumeric(event: Event) {\r\n const inputElement: HTMLInputElement = event.target as HTMLInputElement;\r\n const sanitizedValue: string = inputElement.value.replace(/[^a-zA-Z0-9]/g, '');\r\n const trimmedValue: string = sanitizedValue.trimStart();\r\n \r\n this._updateValueWithCursor(inputElement, trimmedValue, event);\r\n }\r\n\r\n public onlyRegex(event: Event) {\r\n if (!this.keydownRegex) return;\r\n const inputElement: HTMLInputElement = event.target as HTMLInputElement;\r\n const currentValue: string = inputElement.value;\r\n\r\n // 1. Extraer bloques de corchetes (ej: [a-z], [^0-9]). \r\n // Si no hay corchetes, envolvemos el string recibido.\r\n let groups = this.keydownRegex.match(/\\[\\^?[^\\]]+\\]/g);\r\n if (!groups) {\r\n groups = [`[${this.keydownRegex}]`];\r\n }\r\n\r\n let sanitizedValue = '';\r\n const isComposite = groups.length >= 2;\r\n const firstGroup = new RegExp(groups[0]);\r\n const secondGroup = isComposite ? new RegExp(groups[1]) : firstGroup;\r\n\r\n // 2. Procesar carácter por carácter según su posición\r\n const chars = currentValue.split('');\r\n for (let i = 0; i < chars.length; i++) {\r\n const char = chars[i];\r\n if (i === 0) {\r\n if (firstGroup.test(char)) sanitizedValue += char;\r\n } else {\r\n if (secondGroup.test(char)) sanitizedValue += char;\r\n }\r\n }\r\n\r\n // 3. Aplicar trim inicial y actualizar el DOM\r\n const trimmedValue: string = sanitizedValue.trimStart();\r\n this._updateValueWithCursor(inputElement, trimmedValue, event);\r\n }\r\n \r\n private handleInputKeyDown(event: KeyboardEvent) {\r\n // 1. Maneja la lógica de Enter para enviar el formulario\r\n this.handleKeyDown(event);\r\n\r\n // 2. Maneja el movimiento con flechas (accesibilidad)\r\n this.handleInputArrowKey(event);\r\n }\r\n\r\n /**\r\n * Calcula si el botón de limpieza (X) debe estar visible\r\n */\r\n private get _isCleanButtonVisible(): boolean {\r\n return (\r\n this.cleanButton &&\r\n !!this.value &&\r\n this.type !== 'password' &&\r\n this.type !== 'textarea'\r\n );\r\n }\r\n\r\n private handleKeyDown(event: KeyboardEvent) {\r\n if (event.key !== 'Enter') return;\r\n\r\n const submitEvent = new Event('submit', {\r\n bubbles: true,\r\n composed: true,\r\n cancelable: true,\r\n });\r\n\r\n const form: HTMLFormElement | null = this.closest('form');\r\n if (form) form.dispatchEvent(submitEvent);\r\n }\r\n\r\n\r\n private get _inputMode(): string {\r\n if (this.type === 'password') return 'text';\r\n if (this.keydown === 'number') return 'numeric';\r\n return 'text';\r\n }\r\n\r\n private handleInputArrowKey(event: KeyboardEvent) {\r\n if (event.key !== 'ArrowRight') return;\r\n const inputElement: HTMLInputElement | null = event.target as HTMLInputElement;\r\n\r\n const isActionVisible: boolean = this.type === 'password' || this._isCleanButtonVisible;\r\n if (!isActionVisible) return;\r\n\r\n // Verificamos si el cursor está al final del texto\r\n if (inputElement.selectionStart === inputElement.value.length) {\r\n event.preventDefault();\r\n\r\n // Buscamos el botón adyacente (toggle-password o clean-button)\r\n const button: HTMLButtonElement | null = this.shadowRoot?.querySelector('.toggle-password, .clean-button') as HTMLButtonElement;\r\n button?.focus();\r\n }\r\n }\r\n\r\n // Nuevo método para manejar la flecha Izquierda en el botón\r\n private handleButtonArrowKey(event: KeyboardEvent) {\r\n if (event.key !== 'ArrowLeft') return;\r\n event.preventDefault();\r\n\r\n // Buscamos el input\r\n const inputElement: HTMLInputElement | null = this.shadowRoot?.querySelector('.form-input') as HTMLInputElement;\r\n if (!inputElement) return;\r\n\r\n inputElement.focus();\r\n\r\n // Movemos el cursor al final del texto\r\n inputElement.selectionStart = inputElement.selectionEnd = inputElement.value.length;\r\n\r\n }\r\n\r\n public render() {\r\n const textareaInlineStyles: string = this.type === 'textarea'\r\n ? ` height: ${this.heightTextArea ?? '30px'}; max-height: ${this.maxHeightTextArea ?? '30px'}; overflow-y: auto; `\r\n : ''\r\n ;\r\n\r\n const formStyles: string = this.labelColor ? `--label-color: ${this.labelColor};` : '';\r\n\r\n const iconTemplate: TemplateResult = html`\r\n <randstad-icon\r\n name=\"${this.isPasswordVisible ? 'eye_crossed' : 'eye'}\"\r\n size=\"24px\"\r\n >\r\n </randstad-icon>\r\n `;\r\n\r\n return html`\r\n <div\r\n class=\"form ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}\"\r\n style=\"${formStyles}\"\r\n >\r\n ${this.renderLabelContainer()}\r\n\r\n <div class=\"form-container\">\r\n ${this.icon === 'left'\r\n ? html`<span class=\"icon left\"></span>`\r\n : nothing\r\n }\r\n\r\n <div class=\"input-with-button\">\r\n ${this.type === 'textarea'\r\n ? html`\r\n <textarea\r\n class=\"form-input\"\r\n placeholder=${this.placeholder || ''}\r\n .value=${this.value}\r\n ?disabled=${this.disabled}\r\n @input=${this.handleInput}\r\n @keydown=${this.handleKeyDown}\r\n maxlength=${this.maxLength ?? nothing}\r\n style=\"${textareaInlineStyles}\"\r\n >\r\n </textarea>\r\n `\r\n : html`\r\n <input\r\n class=\"form-input\"\r\n type=${this.type === 'password' && !this.isPasswordVisible ? 'password' : 'text'}\r\n placeholder=${this.placeholder || ''}\r\n .value=${this.value}\r\n ?disabled=${this.disabled}\r\n @input=${this.handleInput}\r\n maxlength=${this.maxLength ?? nothing}\r\n @keydown=${this.handleInputKeyDown}\r\n inputmode=${this._inputMode}\r\n />\r\n\r\n ${this.type === 'password'\r\n ? html`\r\n <button\r\n type=\"button\"\r\n class=\"toggle-password\"\r\n @click=${this.togglePassword}\r\n ?disabled=${this.disabled}\r\n @keydown=${this.handleButtonArrowKey}\r\n aria-label=\"${this.isPasswordVisible ? 'Hide password' : 'Show password'}\"\r\n >\r\n ${iconTemplate}\r\n </button>`\r\n : nothing\r\n }\r\n\r\n ${this._isCleanButtonVisible\r\n ? html`\r\n <button\r\n type=\"button\"\r\n class=\"clean-button\"\r\n @click=${this.handleClear}\r\n ?disabled=${this.disabled}\r\n @keydown=${this.handleButtonArrowKey}\r\n aria-label=\"Clear input\"\r\n >\r\n <randstad-icon \r\n name=\"close\" \r\n size=\"24px\"\r\n >\r\n </randstad-icon>\r\n </button>`\r\n : nothing\r\n }\r\n `}\r\n </div>\r\n\r\n ${this.icon === 'right'\r\n ? html`<span class=\"icon right\"></span>`\r\n : nothing\r\n }\r\n\r\n ${this.renderError()}\r\n </div>\r\n\r\n\r\n ${this.linkText && this.linkRoute\r\n ? html`\r\n <div style=\"text-align: end;\">\r\n <a class=\"link-text\" @click=${this.handleLinkClick}>\r\n ${this.linkText}\r\n </a>\r\n </div>`\r\n : nothing\r\n }\r\n\r\n ${this.renderHelper()} \r\n </div>\r\n `;\r\n }\r\n}","import { html, css } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\nimport { BaseControl } from '../helpers/BaseControl';\r\nimport { mixStyles } from '../styles/mix';\r\nimport { errorStyles } from '../styles/error';\r\nimport { tooltipStyles } from '../styles/tooltip';\r\n\r\n@customElement('randstad-form-group')\r\nexport class FormGroup extends BaseControl {\r\n // Coloca las field en formato grilla, según el valor suminstrado\r\n @property({ type: String }) rows: string = '';\r\n\r\n static styles = css`\r\n ${ mixStyles }\r\n ${ errorStyles }\r\n ${ tooltipStyles }\r\n \r\n :host {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n }\r\n\r\n .group-container {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n width: 100%;\r\n }\r\n\r\n .fields {\r\n gap: 8px;\r\n }\r\n `;\r\n\r\n public render() {\r\n const fieldsInlineStyles: string = this.rows ? `display: grid; grid-template-columns: ${this.rows};` : 'display: flex; flex-direction: column;';\r\n\r\n return html`\r\n <div class=\"group-container\">\r\n ${ this.renderLabelContainer() }\r\n\r\n <div class=\"input-container\">\r\n <div class=\"fields\" style=\"${ fieldsInlineStyles };\">\r\n <slot></slot>\r\n </div>\r\n\r\n ${ this.renderError() }\r\n </div>\r\n\r\n ${ this.renderHelper() }\r\n </div>\r\n `;\r\n }\r\n}","export interface IconMap {\n [key: string]: string;\n}\n\nexport const ICONS: IconMap = {\n \"arrow_back\": `<svg width=\"24\" height=\"25\" viewBox=\"0 0 24 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_3095_5899)\">\n<path d=\"M21.475 12.2H3.725L8.575 7.35C8.775 7.15 8.775 6.85 8.575 6.65C8.375 6.45 8.075 6.45 7.875 6.65L2.15 12.35C1.95 12.55 1.95 12.85 2.15 13.05L7.8 18.7C7.9 18.8 8.025 18.85 8.15 18.85C8.275 18.85 8.4 18.8 8.5 18.7C8.7 18.5 8.7 18.2 8.5 18L3.725 13.2H21.5C21.775 13.2 22 12.975 22 12.7C22 12.425 21.75 12.2 21.475 12.2Z\" fill=\"#2175D9\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_3095_5899\">\n<rect width=\"24\" height=\"24\" fill=\"white\" transform=\"translate(0 0.5)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"arrow_down\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M20 8.5C20 8.8 19.9 9 19.7 9.2L12.7 16.2C12.3 16.6 11.7 16.6 11.3 16.2L4.3 9.2C3.9 8.8 3.9 8.2 4.3 7.8C4.7 7.4 5.3 7.4 5.7 7.8L12 14.1L18.3 7.8C18.7 7.4 19.3 7.4 19.7 7.8C19.9 8 20 8.2 20 8.5Z\" fill=\"currentColor\"/>\n</svg>`,\n \"arrow_drop_down\": `<svg width=\"18\" height=\"19\" viewBox=\"0 0 18 19\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M9 11.75L5.25 8H12.75L9 11.75Z\" fill=\"#2175D9\"/>\n</svg>`,\n \"arrow_drop_up\": `<svg width=\"18\" height=\"19\" viewBox=\"0 0 18 19\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M9 8L5.25 11.75H12.75L9 8Z\" fill=\"#2175D9\"/>\n</svg>`,\n \"arrow_left\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M15 20C14.744 20 14.488 19.902 14.293 19.707L7.293 12.707C6.902 12.316 6.902 11.684 7.293 11.293L14.293 4.29301C14.684 3.90201 15.316 3.90201 15.707 4.29301C16.098 4.68401 16.098 5.31601 15.707 5.70701L9.414 12L15.707 18.293C16.098 18.684 16.098 19.316 15.707 19.707C15.512 19.902 15.256 20 15 20Z\" fill=\"#2175D9\"/>\n</svg>`,\n \"arrow_next\": `<svg width=\"28\" height=\"17\" viewBox=\"0 0 28 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M18.645 0.692567C18.3776 0.959902 18.3776 1.3609 18.645 1.62824L25.061 8.04428L1.33502 8.04428C0.967439 8.04428 0.666687 8.34503 0.666687 8.71262C0.666687 9.0802 0.967439 9.38095 1.33502 9.38095L25.0944 9.38095L18.5781 15.8638C18.3108 16.1312 18.3108 16.5322 18.5781 16.7995C18.8455 17.0668 19.2465 17.0668 19.5138 16.7995L27.1329 9.18045C27.2665 9.04678 27.3334 8.8797 27.3334 8.71262C27.3334 8.54553 27.2665 8.37845 27.1329 8.24478L19.5806 0.692567C19.3467 0.425232 18.9123 0.425232 18.645 0.692567Z\" fill=\"white\"/>\n</svg>`,\n \"arrow_prev\": `<svg width=\"28\" height=\"17\" viewBox=\"0 0 28 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M26.6334 7.6H2.96669L9.43335 1.13333C9.70002 0.866666 9.70002 0.466667 9.43335 0.2C9.16669 -0.0666667 8.76669 -0.0666667 8.50002 0.2L0.866687 7.8C0.60002 8.06667 0.60002 8.46667 0.866687 8.73333L8.40002 16.2667C8.53335 16.4 8.70002 16.4667 8.86669 16.4667C9.03335 16.4667 9.20002 16.4 9.33335 16.2667C9.60002 16 9.60002 15.6 9.33335 15.3333L2.96669 8.93333H26.6667C27.0334 8.93333 27.3334 8.63333 27.3334 8.26667C27.3334 7.9 27 7.6 26.6334 7.6Z\" fill=\"white\"/>\n</svg>`,\n \"arrow_right\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M9.00001 4C9.25601 4 9.51201 4.098 9.70701 4.293L16.707 11.293C17.098 11.684 17.098 12.316 16.707 12.707L9.70701 19.707C9.31601 20.098 8.68401 20.098 8.29301 19.707C7.90201 19.316 7.90201 18.684 8.29301 18.293L14.586 12L8.29301 5.707C7.90201 5.316 7.90201 4.684 8.29301 4.293C8.48801 4.098 8.74401 4 9.00001 4Z\" fill=\"#2175D9\"/>\n</svg>`,\n \"arrow_up\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M4 15.0002C4 14.7442 4.098 14.4883 4.293 14.2933L11.293 7.29325C11.684 6.90225 12.316 6.90225 12.707 7.29325L19.707 14.2933C20.098 14.6842 20.098 15.3162 19.707 15.7072C19.316 16.0982 18.684 16.0982 18.293 15.7072L12 9.41425L5.707 15.7072C5.316 16.0982 4.684 16.0982 4.293 15.7072C4.098 15.5122 4 15.2562 4 15.0002Z\" fill=\"currentColor\"/>\n</svg>`,\n \"ayuda\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2313_3705)\">\n<path d=\"M12.4496 6.01244C10.3196 6.01244 8.56549 7.74151 8.56549 9.89658C8.56549 10.1722 8.79102 10.3978 9.06667 10.3978C9.34232 10.3978 9.56785 10.1722 9.56785 9.89658C9.56785 8.31787 10.8459 7.0148 12.4496 7.0148C14.0534 7.0148 15.3314 8.29281 15.3314 9.89658C15.3314 11.5004 14.0534 12.7784 12.4496 12.7784C12.174 12.7784 11.9485 13.0039 11.9485 13.2796V14.6578C11.9485 14.9334 12.174 15.159 12.4496 15.159C12.7253 15.159 12.9508 14.9334 12.9508 14.6578V13.7557C14.8553 13.5051 16.3338 11.8762 16.3338 9.92164C16.3338 7.76657 14.5797 6.01244 12.4496 6.01244Z\" />\n<path d=\"M12.4245 16.2113C11.9985 16.2113 11.6477 16.5622 11.6477 16.9882C11.6477 17.4142 11.9985 17.765 12.4245 17.765C12.8505 17.765 13.2014 17.4142 13.2014 16.9882C13.2014 16.5622 12.8505 16.2113 12.4245 16.2113Z\" />\n<path d=\"M13.6775 2.07808C11.1214 1.75231 8.59048 2.45396 6.58576 4.03268C4.58104 5.63646 3.32809 7.91683 3.05244 10.4728C2.75173 13.3546 3.75409 16.1362 5.80893 18.1409V20.722C5.80893 21.1731 6.05952 21.5991 6.4354 21.8246C6.63588 21.9499 6.86141 22 7.08694 22C7.31247 22 7.51294 21.9499 7.71342 21.8246L9.94367 20.5466C10.4448 20.6719 10.946 20.7721 11.4723 20.8222C14.1035 21.0979 16.7096 20.2709 18.6893 18.5419C20.694 16.7877 21.8216 14.357 21.8968 11.7007C22.0472 6.91447 18.4387 2.6795 13.6775 2.07808ZM20.8945 11.6757C20.8193 14.0563 19.7919 16.2364 18.0127 17.7901C16.2585 19.3187 13.903 20.0705 11.5976 19.8449C11.0713 19.7948 10.5451 19.6946 10.0439 19.5442C9.91861 19.4941 9.76825 19.5192 9.66802 19.5943L7.23729 20.9726C7.112 21.0478 7.01176 20.9976 6.96164 20.9726C6.91153 20.9475 6.81129 20.8723 6.81129 20.722V18.0156C6.83635 17.8402 6.78623 17.6648 6.66094 17.5646C4.73139 15.7603 3.77915 13.2043 4.0548 10.5731C4.28033 8.29271 5.40799 6.23788 7.21223 4.80951C9.01648 3.38115 11.2718 2.75467 13.5522 3.05538C17.7871 3.60668 21.0198 7.39059 20.8945 11.6757Z\" />\n</g>\n<defs>\n<clipPath id=\"clip0_2313_3705\">\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"calendar\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2335_4813)\">\n<path d=\"M19.975 3.125H16.975V2.5C16.975 2.225 16.75 2 16.475 2C16.2 2 15.975 2.225 15.975 2.5V3.125H7.975V2.5C7.975 2.225 7.75 2 7.475 2C7.2 2 6.975 2.225 6.975 2.5V3.125H4.025C2.925 3.125 2 4.025 2 5.15V19.925C2 21.025 2.9 21.95 4.025 21.95H19.975C21.075 21.95 22 21.05 22 19.925V5.125C22 4.025 21.1 3.125 19.975 3.125ZM4.025 4.15H6.95V4.8C6.95 5.075 7.175 5.3 7.45 5.3C7.725 5.3 7.95 5.075 7.95 4.8V4.15H15.925V4.8C15.925 5.075 16.15 5.3 16.425 5.3C16.7 5.3 16.925 5.075 16.925 4.8V4.15H19.95C20.5 4.15 20.95 4.6 20.95 5.15V7.95H3.025V5.125C3.025 4.575 3.475 4.15 4.025 4.15ZM19.975 20.9H4.025C3.475 20.9 3.025 20.45 3.025 19.9V8.975H20.975V19.9C20.975 20.45 20.525 20.9 19.975 20.9Z\" />\n<path d=\"M7.45001 12.575C7.86423 12.575 8.20001 12.2392 8.20001 11.825C8.20001 11.4108 7.86423 11.075 7.45001 11.075C7.0358 11.075 6.70001 11.4108 6.70001 11.825C6.70001 12.2392 7.0358 12.575 7.45001 12.575Z\" />\n<path d=\"M10.4499 12.575C10.8641 12.575 11.1999 12.2392 11.1999 11.825C11.1999 11.4108 10.8641 11.075 10.4499 11.075C10.0357 11.075 9.69989 11.4108 9.69989 11.825C9.69989 12.2392 10.0357 12.575 10.4499 12.575Z\" />\n<path d=\"M13.4501 12.575C13.8643 12.575 14.2001 12.2392 14.2001 11.825C14.2001 11.4108 13.8643 11.075 13.4501 11.075C13.0359 11.075 12.7001 11.4108 12.7001 11.825C12.7001 12.2392 13.0359 12.575 13.4501 12.575Z\" />\n<path d=\"M16.45 12.575C16.8642 12.575 17.2 12.2392 17.2 11.825C17.2 11.4108 16.8642 11.075 16.45 11.075C16.0357 11.075 15.7 11.4108 15.7 11.825C15.7 12.2392 16.0357 12.575 16.45 12.575Z\" />\n<path d=\"M7.45001 15.5749C7.86423 15.5749 8.20001 15.2391 8.20001 14.8249C8.20001 14.4107 7.86423 14.0749 7.45001 14.0749C7.0358 14.0749 6.70001 14.4107 6.70001 14.8249C6.70001 15.2391 7.0358 15.5749 7.45001 15.5749Z\" />\n<path d=\"M10.4499 15.5749C10.8641 15.5749 11.1999 15.2391 11.1999 14.8249C11.1999 14.4107 10.8641 14.0749 10.4499 14.0749C10.0357 14.0749 9.69989 14.4107 9.69989 14.8249C9.69989 15.2391 10.0357 15.5749 10.4499 15.5749Z\" />\n<path d=\"M13.4501 15.5749C13.8643 15.5749 14.2001 15.2391 14.2001 14.8249C14.2001 14.4107 13.8643 14.0749 13.4501 14.0749C13.0359 14.0749 12.7001 14.4107 12.7001 14.8249C12.7001 15.2391 13.0359 15.5749 13.4501 15.5749Z\" />\n<path d=\"M16.45 15.5749C16.8642 15.5749 17.2 15.2391 17.2 14.8249C17.2 14.4107 16.8642 14.0749 16.45 14.0749C16.0357 14.0749 15.7 14.4107 15.7 14.8249C15.7 15.2391 16.0357 15.5749 16.45 15.5749Z\" />\n<path d=\"M7.45001 18.5751C7.86423 18.5751 8.20001 18.2393 8.20001 17.8251C8.20001 17.4109 7.86423 17.0751 7.45001 17.0751C7.0358 17.0751 6.70001 17.4109 6.70001 17.8251C6.70001 18.2393 7.0358 18.5751 7.45001 18.5751Z\" />\n<path d=\"M10.4499 18.5751C10.8641 18.5751 11.1999 18.2393 11.1999 17.8251C11.1999 17.4109 10.8641 17.0751 10.4499 17.0751C10.0357 17.0751 9.69989 17.4109 9.69989 17.8251C9.69989 18.2393 10.0357 18.5751 10.4499 18.5751Z\" />\n</g>\n<defs>\n<clipPath id=\"clip0_2335_4813\">\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"check\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\r\n<g clip-path=\"url(#clip0_2335_4801)\">\r\n<path d=\"M21.8098 4.11505C21.6095 3.93974 21.2839 3.96478 21.1086 4.19018L9.21268 18.4152L2.8515 11.9538C2.65114 11.7535 2.35062 11.7535 2.15026 11.9538C1.94991 12.1542 1.94991 12.4547 2.15026 12.6551L8.88711 19.5171C8.98728 19.6173 9.1125 19.6674 9.23772 19.6674H9.26277C9.41303 19.6674 9.53825 19.5923 9.63843 19.4921L21.885 4.81628C22.0603 4.59088 22.0352 4.29035 21.8098 4.11505Z\"/>\r\n</g>\r\n<defs>\r\n<clipPath id=\"clip0_2335_4801\">\r\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\r\n</clipPath>\r\n</defs>\r\n</svg>`,\n \"check_circle\": `<svg width=\"56\" height=\"56\" viewBox=\"0 0 56 56\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect width=\"56\" height=\"56\" rx=\"28\" fill=\"#257156\" fill-opacity=\"0.2\"/>\n<path d=\"M43.6957 15.6502C43.3752 15.3697 42.8542 15.4097 42.5737 15.7704L23.5403 38.5304L13.3624 28.1922C13.0418 27.8717 12.561 27.8717 12.2404 28.1922C11.9199 28.5128 11.9199 28.9936 12.2404 29.3142L23.0194 40.2935C23.1797 40.4538 23.38 40.5339 23.5804 40.5339H23.6204C23.8608 40.5339 24.0612 40.4137 24.2215 40.2534L43.8159 16.7721C44.0964 16.4115 44.0563 15.9307 43.6957 15.6502Z\" fill=\"#257156\"/>\n</svg>`,\n \"close\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2335_4789)\">\n<path d=\"M12.7018 12L21.8496 2.85213C22.0501 2.65163 22.0501 2.35088 21.8496 2.15038C21.6491 1.94987 21.3484 1.94987 21.1479 2.15038L12 11.2982L2.85213 2.15038C2.65163 1.94987 2.35088 1.94987 2.15038 2.15038C1.94987 2.35088 1.94987 2.65163 2.15038 2.85213L11.2982 12L2.15038 21.1479C1.94987 21.3484 1.94987 21.6491 2.15038 21.8496C2.25063 21.9499 2.37594 22 2.50125 22C2.62657 22 2.75188 21.9499 2.85213 21.8496L12 12.7018L21.1479 21.8496C21.2481 21.9499 21.3734 22 21.4987 22C21.6241 22 21.7494 21.9499 21.8496 21.8496C22.0501 21.6491 22.0501 21.3484 21.8496 21.1479L12.7018 12Z\" fill=\"currentColor\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2335_4789\">\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"courses_circle\": `<svg width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect y=\"0.47998\" width=\"32\" height=\"32\" rx=\"16\" fill=\"#333333\" fill-opacity=\"0.2\"/>\n<g clip-path=\"url(#clip0_2850_2408)\">\n<path d=\"M12.2 11.8047H19.2C19.475 11.8047 19.7 11.5797 19.7 11.3047C19.7 11.0297 19.475 10.8047 19.2 10.8047H12.2C11.925 10.8047 11.7 11.0297 11.7 11.3047C11.7 11.5797 11.925 11.8047 12.2 11.8047Z\" fill=\"#333333\"/>\n<path d=\"M12.2 14.8052H19.2C19.475 14.8052 19.7 14.5802 19.7 14.3052C19.7 14.0302 19.475 13.8052 19.2 13.8052H12.2C11.925 13.8052 11.7 14.0302 11.7 14.3052C11.7 14.5802 11.925 14.8052 12.2 14.8052Z\" fill=\"#333333\"/>\n<path d=\"M21.425 6.47998H10C8.9 6.47998 8 7.32998 8 8.37998V23.38C8 24.43 8.9 25.28 10 25.28H13.7C13.975 25.28 14.2 25.055 14.2 24.78C14.2 24.505 13.975 24.28 13.7 24.28H10C9.45 24.28 9 23.88 9 23.38V8.37998C9 7.87998 9.45 7.47998 10 7.47998H21.45C22 7.47998 22.45 7.87998 22.45 8.37998V23.38C22.45 23.88 22 24.28 21.45 24.28C21.175 24.28 20.95 24.505 20.95 24.78C20.95 25.055 21.175 25.28 21.45 25.28C22.55 25.28 23.45 24.43 23.45 23.38V8.37998C23.45 7.32998 22.55 6.47998 21.425 6.47998Z\" fill=\"#333333\"/>\n<path d=\"M17.55 16.8052C16.2 16.8052 15.125 17.9052 15.125 19.2302C15.125 19.8302 15.35 20.3802 15.725 20.8052V25.9302C15.725 26.1302 15.85 26.3052 16.025 26.3802C16.2 26.4552 16.425 26.4052 16.575 26.2802L17.525 25.3302L18.525 26.3302C18.625 26.4302 18.75 26.4802 18.875 26.4802C18.95 26.4802 19 26.4802 19.075 26.4302C19.25 26.3552 19.375 26.1802 19.375 25.9802V20.8052C19.75 20.3802 19.975 19.8302 19.975 19.2302C19.975 17.8802 18.9 16.8052 17.55 16.8052ZM17.55 17.8052C18.35 17.8052 18.975 18.4552 18.975 19.2302C18.975 20.0052 18.325 20.6552 17.55 20.6552C16.75 20.6552 16.125 20.0052 16.125 19.2302C16.125 18.4552 16.775 17.8052 17.55 17.8052ZM17.875 24.2802C17.675 24.0802 17.375 24.0802 17.175 24.2802L16.725 24.7302V21.5052C16.975 21.6052 17.275 21.6552 17.575 21.6552C17.875 21.6552 18.15 21.6052 18.425 21.5052V24.7802L17.875 24.2802Z\" fill=\"#333333\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2850_2408\">\n<rect width=\"24\" height=\"24\" fill=\"white\" transform=\"translate(4 4.47998)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"cv_circle\": `<svg width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect y=\"0.47998\" width=\"32\" height=\"32\" rx=\"16\" fill=\"#333333\" fill-opacity=\"0.2\"/>\n<g clip-path=\"url(#clip0_2850_330)\">\n<path d=\"M12.1853 16.0538C12.461 16.0538 12.6866 15.8283 12.6866 15.5526V14.3997C12.6866 13.7731 13.2129 13.2468 13.8395 13.2468C14.466 13.2468 14.9924 13.7731 14.9924 14.3997V15.5526C14.9924 15.8283 15.2179 16.0538 15.4936 16.0538C15.7693 16.0538 15.9949 15.8283 15.9949 15.5526V14.3997C15.9949 13.5476 15.4936 12.8208 14.7919 12.4699C15.3182 12.1441 15.669 11.5676 15.669 10.916C15.669 9.91349 14.842 9.08643 13.8395 9.08643C12.837 9.08643 12.0099 9.91349 12.0099 10.916C12.0099 11.5676 12.3608 12.1441 12.8871 12.4699C12.1853 12.8208 11.6841 13.5476 11.6841 14.3997V15.5526C11.6841 15.8283 11.9096 16.0538 12.1853 16.0538ZM13.8395 10.0639C14.2906 10.0639 14.6665 10.4398 14.6665 10.8909C14.6665 11.3421 14.2906 11.718 13.8395 11.718C13.3883 11.718 13.0124 11.3421 13.0124 10.8909C13.0124 10.4398 13.3883 10.0639 13.8395 10.0639Z\" fill=\"#333333\"/>\n<path d=\"M21.4336 6.47998H10.0301C8.90226 6.47998 8 7.4073 8 8.53512V24.4499C8 25.5777 8.92732 26.48 10.0301 26.48H21.4336C22.5614 26.48 23.4637 25.5527 23.4637 24.4499V8.53512C23.4637 7.4073 22.5614 6.47998 21.4336 6.47998ZM22.4612 24.4499C22.4612 25.0263 21.985 25.4775 21.4336 25.4775H10.0301C9.45363 25.4775 9.00251 25.0013 9.00251 24.4499V8.53512C9.00251 7.95868 9.4787 7.48249 10.0301 7.48249H21.4336C22.01 7.48249 22.4612 7.95868 22.4612 8.53512V24.4499Z\" fill=\"#333333\"/>\n<path d=\"M19.2029 21.1665H12.1853C11.9096 21.1665 11.6841 21.3921 11.6841 21.6678C11.6841 21.9434 11.9096 22.169 12.1853 22.169H19.2029C19.4786 22.169 19.7041 21.9434 19.7041 21.6678C19.7041 21.3921 19.4786 21.1665 19.2029 21.1665Z\" fill=\"#333333\"/>\n<path d=\"M19.2029 18.1592H12.1853C11.9096 18.1592 11.6841 18.3847 11.6841 18.6604C11.6841 18.9361 11.9096 19.1617 12.1853 19.1617H19.2029C19.4786 19.1617 19.7041 18.9361 19.7041 18.6604C19.7041 18.3847 19.4786 18.1592 19.2029 18.1592Z\" fill=\"#333333\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2850_330\">\n<rect width=\"24\" height=\"24\" fill=\"white\" transform=\"translate(4 4.47998)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"disability_circle\": `<svg width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect y=\"0.47998\" width=\"32\" height=\"32\" rx=\"16\" fill=\"#333333\" fill-opacity=\"0.2\"/>\n <g clip-path=\"url(#clip0_2850_3043)\">\n <path d=\"M8.11401 14.6519C8.11401 14.6519 15.98 19.4159 23.846 14.6519\" stroke=\"#333333\" stroke-width=\"0.657894\" stroke-miterlimit=\"10\" fill=\"#D6D6D6\"/>\n <path d=\"M20.792 24.0118L16 16.8838\" stroke=\"#333333\" stroke-width=\"0.657894\" stroke-miterlimit=\"10\"/>\n <path d=\"M11.2041 24.0118L16.0001 16.8838\" stroke=\"#333333\" stroke-width=\"0.657894\" stroke-miterlimit=\"10\"/>\n <path d=\"M15.9999 14.4642C17.2691 14.4642 18.2979 13.4353 18.2979 12.1662C18.2979 10.897 17.2691 9.86816 15.9999 9.86816C14.7308 9.86816 13.7019 10.897 13.7019 12.1662C13.7019 13.4353 14.7308 14.4642 15.9999 14.4642Z\" stroke=\"#333333\" fill=\"#D6D6D6\" stroke-width=\"0.657894\" stroke-miterlimit=\"10\"/>\n <path d=\"M24.6439 14.988C25.2106 14.988 25.6699 14.5287 25.6699 13.962C25.6699 13.3954 25.2106 12.936 24.6439 12.936C24.0773 12.936 23.6179 13.3954 23.6179 13.962C23.6179 14.5287 24.0773 14.988 24.6439 14.988Z\" stroke=\"#333333\" fill=\"#D6D6D6\" stroke-width=\"0.657894\" stroke-miterlimit=\"10\"/>\n <path d=\"M7.35193 14.988C7.91857 14.988 8.37793 14.5287 8.37793 13.962C8.37793 13.3954 7.91857 12.936 7.35193 12.936C6.78528 12.936 6.32593 13.3954 6.32593 13.962C6.32593 14.5287 6.78528 14.988 7.35193 14.988Z\" stroke=\"#333333\" fill=\"#D6D6D6\" stroke-width=\"0.657894\" stroke-miterlimit=\"10\"/>\n <path d=\"M20.7919 25.0383C21.3585 25.0383 21.8179 24.579 21.8179 24.0123C21.8179 23.4457 21.3585 22.9863 20.7919 22.9863C20.2252 22.9863 19.7659 23.4457 19.7659 24.0123C19.7659 24.579 20.2252 25.0383 20.7919 25.0383Z\" fill=\"#D6D6D6\" stroke=\"#333333\" stroke-width=\"0.657894\" stroke-miterlimit=\"10\"/>\n <path d=\"M11.204 25.0383C11.7706 25.0383 12.23 24.579 12.23 24.0123C12.23 23.4457 11.7706 22.9863 11.204 22.9863C10.6373 22.9863 10.178 23.4457 10.178 24.0123C10.178 24.579 10.6373 25.0383 11.204 25.0383Z\" fill=\"#D6D6D6\" stroke=\"#333333\" stroke-width=\"0.657894\" stroke-miterlimit=\"10\"/>\n <path d=\"M22.1521 22.528C22.3161 22.678 22.4541 22.854 22.5621 23.05C24.3081 21.31 25.2861 18.944 25.2801 16.478C25.2801 16.276 25.2721 16.076 25.2601 15.876C25.0621 15.94 24.8541 15.972 24.6441 15.972C24.6321 15.972 24.6181 15.972 24.6061 15.972C24.6161 16.14 24.6221 16.308 24.6221 16.478C24.6261 18.742 23.7401 20.916 22.1521 22.528Z\" fill=\"#333333\"/>\n <path d=\"M15.972 25.1279C14.998 25.1299 14.032 24.9659 13.112 24.6459C13.042 24.8579 12.936 25.0559 12.802 25.2339C14.864 25.9739 17.122 25.9699 19.182 25.2199C19.048 25.0419 18.946 24.8419 18.878 24.6299C17.944 24.9599 16.962 25.1279 15.972 25.1279Z\" fill=\"#333333\"/>\n <path d=\"M7.34002 15.9738C7.11802 15.9718 6.89802 15.9338 6.68802 15.8618C6.67402 16.0658 6.66802 16.2718 6.66802 16.4798C6.66002 18.9498 7.64202 21.3178 9.39202 23.0598C9.40002 23.0678 9.40802 23.0758 9.41602 23.0838C9.52002 22.8858 9.65402 22.7058 9.81602 22.5538C8.21602 20.9398 7.32002 18.7538 7.32602 16.4798C7.32602 16.3098 7.33002 16.1418 7.34002 15.9738Z\" fill=\"#333333\"/>\n <path d=\"M22.5521 9.89982C18.9181 6.26582 13.0261 6.26582 9.39206 9.89982C8.76806 10.5218 8.23606 11.2298 7.81006 12.0038C8.02606 12.0538 8.23206 12.1398 8.42006 12.2578C8.81006 11.5638 9.29406 10.9278 9.85606 10.3658C13.2341 6.98782 18.7081 6.98782 22.0861 10.3658C22.6561 10.9338 23.1441 11.5798 23.5361 12.2818C23.7201 12.1598 23.9241 12.0698 24.1401 12.0138C23.7141 11.2378 23.1801 10.5258 22.5521 9.89982Z\" fill=\"#333333\"/>\n </g>\n <defs>\n <clipPath id=\"clip0_2850_3043\">\n <rect width=\"20\" height=\"20\" fill=\"white\" transform=\"translate(6 6.47998)\"/>\n </clipPath>\n </defs>\n</svg>`,\n \"education_circle\": `<svg width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect y=\"0.47998\" width=\"32\" height=\"32\" rx=\"16\" fill=\"#333333\" fill-opacity=\"0.2\"/>\n<g clip-path=\"url(#clip0_2850_2002)\">\n<path d=\"M24.1043 10.48H7.92015C6.84786 10.48 6 11.3528 6 12.4001V12.45C6 13.5223 6.8728 14.3702 7.92015 14.3702H9.66574V17.986C9.66574 18.9835 10.4887 19.8064 11.4861 19.8064H20.1143C21.1118 19.8064 21.9347 18.9835 21.9347 17.986V14.3951H22.7826V20.3052C21.9347 20.5296 21.2864 21.3026 21.2864 22.2253C21.2864 22.4996 21.5108 22.7241 21.7851 22.7241C22.0594 22.7241 22.2839 22.4996 22.2839 22.2253C22.2839 21.8513 22.4834 21.5271 22.7826 21.3775V22.2253C22.7826 22.4996 23.007 22.7241 23.2813 22.7241C23.5557 22.7241 23.7801 22.4996 23.7801 22.2253V21.3775C24.0793 21.552 24.2788 21.8762 24.2788 22.2253C24.2788 22.4996 24.5033 22.7241 24.7776 22.7241C25.0519 22.7241 25.2763 22.4996 25.2763 22.2253C25.2763 21.3026 24.6279 20.5296 23.7801 20.3052V14.3951H24.0793C25.1516 14.3951 25.9995 13.5223 25.9995 12.4749V12.4251C26.0244 11.3528 25.1516 10.48 24.1043 10.48ZM20.9622 18.011C20.9622 18.4598 20.5881 18.8339 20.1393 18.8339H11.4861C11.0373 18.8339 10.6632 18.4598 10.6632 18.011V14.3951H20.9622V18.011ZM7.92015 13.3976C7.39647 13.3976 6.99748 12.9737 6.99748 12.4749V12.4251C6.99748 11.9014 7.42141 11.5024 7.92015 11.5024H22.8075V13.3976H7.92015ZM25.0269 12.45C25.0269 12.9737 24.603 13.3727 24.1043 13.3727H23.805V11.4775H24.1043C24.6279 11.4775 25.0269 11.9014 25.0269 12.4001V12.45Z\" fill=\"#333333\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2850_2002\">\n<rect width=\"24\" height=\"24\" fill=\"white\" transform=\"translate(4 4.47998)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"email\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2335_4843)\">\n<path d=\"M19.975 5H4.025C2.925 5 2 5.9 2 7.025V16.75C2 17.85 2.9 18.775 4.025 18.775H19.975C21.075 18.775 22 17.875 22 16.75V7C22 5.9 21.1 5 19.975 5ZM20.975 16.725C20.975 17.275 20.525 17.725 19.975 17.725H4.025C3.475 17.725 3.025 17.275 3.025 16.725V7C3.025 6.45 3.475 6 4.025 6H19.975C20.525 6 20.975 6.45 20.975 7V16.725Z\"/>\n<path d=\"M14.6001 11.7498L17.6251 9.17477C17.8501 8.99977 17.8751 8.67477 17.6751 8.44977C17.5001 8.22477 17.1751 8.19977 16.9501 8.39977L12.0001 12.6498L7.0501 8.39977C6.8251 8.22477 6.5001 8.24977 6.3251 8.44977C6.1501 8.67477 6.1751 8.99977 6.3751 9.17477L9.4001 11.7748L6.3751 14.4748C6.1751 14.6748 6.1501 14.9998 6.3251 15.1998C6.4251 15.3248 6.5751 15.3748 6.7001 15.3748C6.8251 15.3748 6.9501 15.3248 7.0501 15.2498L10.1751 12.4248L11.6751 13.6998C11.6751 13.6998 11.6751 13.6998 11.7001 13.6998L11.7251 13.7248C11.7501 13.7498 11.7751 13.7498 11.7751 13.7498C11.7751 13.7498 11.8001 13.7498 11.8001 13.7748C11.8251 13.7748 11.8501 13.7998 11.8751 13.7998H11.9001C11.9251 13.7998 11.9751 13.7998 12.0001 13.7998C12.0251 13.7998 12.0751 13.7998 12.1001 13.7998H12.1251C12.1501 13.7998 12.1751 13.7748 12.2001 13.7748C12.2001 13.7748 12.2251 13.7748 12.2251 13.7498C12.2501 13.7498 12.2751 13.7248 12.2751 13.7248L12.3001 13.6998C12.3001 13.6998 12.3001 13.6998 12.3251 13.6998L13.8251 12.4248L16.9501 15.2248C17.0501 15.3248 17.1751 15.3498 17.3001 15.3498C17.4501 15.3498 17.5751 15.2998 17.6751 15.1748C17.8751 14.9748 17.8501 14.6498 17.6251 14.4498L14.6001 11.7498Z\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2335_4843\">\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"experience_circle\": `<svg width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect y=\"0.47998\" width=\"32\" height=\"32\" rx=\"16\" fill=\"#333333\" fill-opacity=\"0.2\"/>\n<g clip-path=\"url(#clip0_2850_565)\">\n<path d=\"M26 15.98V13.53C26 12.43 25.1 11.505 23.975 11.505H19.475C19.225 9.80498 17.75 8.47998 16 8.47998C14.25 8.47998 12.775 9.77998 12.525 11.505H8.025C6.925 11.505 6 12.405 6 13.53V23.08C6 24.18 6.9 25.105 8.025 25.105H23.975C25.075 25.105 26 24.205 26 23.08V16.03C26 16.03 26 16.005 26 15.98ZM16 9.50498C17.2 9.50498 18.2 10.355 18.45 11.505H13.55C13.8 10.38 14.8 9.50498 16 9.50498ZM8.025 12.53H23.975C24.525 12.53 24.975 12.98 24.975 13.53V15.705C22.4 17.18 19.5 17.98 16.525 18.055V17.155C16.525 16.88 16.3 16.655 16.025 16.655C15.75 16.655 15.525 16.88 15.525 17.155V18.055C12.55 17.955 9.625 17.105 7.075 15.58V13.53C7.025 12.98 7.475 12.53 8.025 12.53ZM23.975 24.055H8.025C7.475 24.055 7.025 23.605 7.025 23.055V16.755C9.625 18.18 12.525 18.98 15.475 19.08V19.655C15.475 19.93 15.7 20.155 15.975 20.155C16.25 20.155 16.475 19.93 16.475 19.655V19.08C19.475 19.005 22.375 18.255 24.975 16.88V23.055C24.975 23.605 24.525 24.055 23.975 24.055Z\" fill=\"#333333\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2850_565\">\n<rect width=\"24\" height=\"24\" fill=\"white\" transform=\"translate(4 4.47998)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"eye\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2335_4808)\">\n<path d=\"M21.4 10.5C19.65 8.825 16.125 6 12 6C7.875 6 4.325 8.825 2.6 10.5C2.2 10.875 2 11.4 2 11.95C2 12.5 2.225 13 2.6 13.4C4.35 15.075 7.875 17.9 12 17.9C16.125 17.9 19.675 15.075 21.4 13.4C21.8 13.025 22 12.5 22 11.95C22 11.4 21.8 10.9 21.4 10.5ZM12 16.375C9.55 16.375 7.575 14.4 7.575 11.95C7.575 9.5 9.55 7.525 12 7.525C14.45 7.525 16.425 9.5 16.425 11.95C16.425 14.4 14.425 16.375 12 16.375ZM2.975 11.95C2.975 11.675 3.075 11.425 3.275 11.225C4.4 10.125 6.325 8.525 8.675 7.65C7.4 8.65 6.575 10.2 6.575 11.95C6.575 13.7 7.4 15.25 8.675 16.25C6.35 15.375 4.425 13.775 3.275 12.675C3.1 12.475 2.975 12.225 2.975 11.95ZM20.7 12.675C19.575 13.775 17.65 15.375 15.3 16.25C16.575 15.25 17.4 13.7 17.4 11.95C17.4 10.2 16.575 8.65 15.3 7.65C17.625 8.525 19.55 10.125 20.7 11.225C20.9 11.425 21 11.675 21 11.95C21 12.225 20.9 12.475 20.7 12.675Z\"/>\n<path d=\"M12 10.425C11.15 10.425 10.475 11.1 10.475 11.95C10.475 12.8 11.15 13.475 12 13.475C12.85 13.475 13.525 12.8 13.525 11.95C13.5 11.1 12.825 10.425 12 10.425Z\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2335_4808\">\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"eye_crossed\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2335_4805)\">\n<path d=\"M21.4007 10.569C20.0774 9.29562 17.7054 7.34805 14.834 6.49911L16.382 2.72883C16.4569 2.55405 16.432 2.35429 16.3321 2.20448C16.2322 2.05467 16.0325 1.97976 15.8577 2.00473C15.6829 2.0297 15.5331 2.15454 15.4582 2.32933L13.8352 6.22446C13.236 6.09961 12.6117 6.04968 11.9875 6.04968C7.86767 6.04968 4.3221 8.87115 2.59925 10.5441C2.19975 10.9186 2 11.4429 2 11.9922C2 12.5416 2.22472 13.0409 2.59925 13.4404C3.9226 14.7138 6.29463 16.6614 9.16604 17.5104L7.61798 21.2806C7.56804 21.4055 7.56804 21.5303 7.61798 21.6552C7.66792 21.78 7.76779 21.8799 7.89263 21.9298C7.94257 21.9548 8.01748 21.9548 8.09238 21.9548C8.29214 21.9548 8.46692 21.8299 8.54182 21.6552L10.1648 17.76C10.764 17.8849 11.3883 17.9348 12.0125 17.9348C16.1323 17.9348 19.6779 15.1133 21.4007 13.4404C21.8002 13.0659 22 12.5416 22 12.0172C22 11.4929 21.8002 10.9436 21.4007 10.569ZM10.789 16.2619L11.9376 13.5153C12.5868 13.5403 13.186 13.1658 13.4107 12.5915C13.6604 11.9922 13.5106 11.3181 13.0112 10.8936L14.1348 8.14705C16.1074 9.24568 16.9313 11.6177 16.0824 13.7151C15.2335 15.7625 12.9613 16.8861 10.789 16.2619ZM3.29838 12.7413C3.1236 12.5416 2.99875 12.2919 2.99875 12.0172C2.99875 11.7426 3.09863 11.4929 3.29838 11.2931C4.92135 9.72009 8.2422 7.0734 11.9875 7.0734C12.4619 7.0734 12.9613 7.12333 13.4357 7.19824L13.4107 7.24818L9.66542 16.3618L9.56554 16.5615C6.84395 15.8125 4.57179 13.9648 3.29838 12.7413ZM20.7016 12.7413C19.578 13.8399 17.6554 15.4379 15.3333 16.3118C16.6567 15.2881 17.4307 13.7151 17.4307 12.0172C17.4307 10.3193 16.6567 8.7463 15.3333 7.72258C17.6554 8.59649 19.578 10.1945 20.7266 11.2931C20.9263 11.4929 21.0262 11.7426 21.0262 12.0172C21.0262 12.2919 20.9014 12.5416 20.7016 12.7413Z\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2335_4805\">\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"home\": `<svg width=\"26\" height=\"25\" viewBox=\"0 0 26 25\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2670_151)\">\n<path d=\"M21.6796 9.22381L14.539 3.01029C13.7874 2.35887 12.6599 2.35887 11.9083 3.01029L4.69261 9.22381C4.24163 9.59962 3.99109 10.1508 3.99109 10.7521V20.5484C3.99109 21.6508 4.89305 22.5528 5.99545 22.5528H10.5554H15.8168H20.3767C21.4791 22.5528 22.3811 21.6508 22.3811 20.5484V10.7521C22.356 10.1759 22.1055 9.62468 21.6796 9.22381ZM11.0565 21.5506V17.3415C11.0565 16.7903 11.5074 16.3393 12.0586 16.3393H14.3135C14.8647 16.3393 15.3157 16.7903 15.3157 17.3415V21.5757H11.0565V21.5506ZM21.3539 20.5484C21.3539 21.0996 20.9029 21.5506 20.3517 21.5506H16.3179V17.3415C16.3179 16.2391 15.4159 15.3371 14.3135 15.3371H12.0586C10.9562 15.3371 10.0543 16.2391 10.0543 17.3415V21.5757H5.99545C5.44425 21.5757 4.99327 21.1247 4.99327 20.5735V10.7521C4.99327 10.4515 5.11854 10.1759 5.34403 10.0005L12.5597 3.78698C12.7351 3.63665 12.9857 3.53644 13.2111 3.53644C13.4366 3.53644 13.6872 3.6116 13.8626 3.78698L21.0031 10.0005C21.2286 10.2009 21.3539 10.4765 21.3539 10.7521V20.5484Z\" fill=\"currentColor\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2670_151\">\n<rect width=\"24.0373\" height=\"24.0373\" fill=\"currentColor\" transform=\"translate(0.986328 0.518555)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"image\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M20 2H4C2.9 2 2 2.9 2 4V20C2 21.1 2.9 22 4 22H20C21.1 22 22 21.1 22 20V4C22 2.9 21.1 2 20 2ZM21 20C21 20.55 20.55 21 20 21H4C3.45 21 3 20.55 3 20V4C3 3.45 3.45 3 4 3H20C20.55 3 21 3.45 21 4V20Z\" fill=\"#2175D9\"/>\n<path d=\"M17.725 8.475C17.625 8.325 17.475 8.25 17.3 8.25C17.125 8.25 16.975 8.325 16.875 8.475L11.9 15.75L8.60001 12.875C8.40001 12.7 8.12501 12.7 7.92501 12.9L4.42501 16.2C4.22501 16.4 4.22501 16.7 4.40001 16.9C4.50001 17 4.62501 17.05 4.77501 17.05C4.90001 17.05 5.02501 17 5.12501 16.925L8.30001 13.925L11.7 16.875C11.8 16.975 11.95 17 12.1 17C12.25 16.975 12.375 16.9 12.45 16.775L17.35 9.65L19.075 12.25C19.225 12.475 19.55 12.55 19.775 12.4C20 12.25 20.075 11.925 19.925 11.7L17.725 8.475Z\" fill=\"#2175D9\"/>\n<path d=\"M8.27502 10.9C9.92502 10.9 11.275 9.54999 11.275 7.89999C11.275 6.24999 9.92502 4.89999 8.27502 4.89999C6.62502 4.89999 5.27502 6.24999 5.27502 7.89999C5.27502 9.54999 6.60002 10.9 8.27502 10.9ZM8.27502 5.89999C9.37502 5.89999 10.275 6.79999 10.275 7.89999C10.275 8.99999 9.37502 9.89999 8.27502 9.89999C7.17502 9.89999 6.27502 8.99999 6.27502 7.89999C6.27502 6.79999 7.15002 5.89999 8.27502 5.89999Z\" fill=\"#2175D9\"/>\n</svg>`,\n \"info\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2313_3707)\">\n<path d=\"M12.0249 9.59985C12.4391 9.59985 12.7749 9.26407 12.7749 8.84985C12.7749 8.43564 12.4391 8.09985 12.0249 8.09985C11.6107 8.09985 11.2749 8.43564 11.2749 8.84985C11.2749 9.26407 11.6107 9.59985 12.0249 9.59985Z\"/>\n<path d=\"M12.0248 15.8999C11.7498 15.8999 11.5248 15.6749 11.5248 15.3999V11.0999C11.5248 10.8249 11.7498 10.5999 12.0248 10.5999C12.2998 10.5999 12.5248 10.8249 12.5248 11.0999V15.3999C12.5248 15.6749 12.2998 15.8999 12.0248 15.8999Z\"/>\n<path d=\"M12 2C6.475 2 2 6.5 2 12C2 17.5 6.475 22 12 22C17.525 22 22 17.525 22 12C22 6.475 17.525 2 12 2ZM12 21C7.025 21 3 16.975 3 12C3 7.025 7.025 3 12 3C16.975 3 21 7.025 21 12C21 16.975 16.975 21 12 21Z\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2313_3707\">\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"info_circle\": `<svg width=\"56\" height=\"56\" viewBox=\"0 0 56 56\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect width=\"56\" height=\"56\" rx=\"28\" fill=\"#E9A204\" fill-opacity=\"0.2\"/>\n<path d=\"M28.0413 24.16C28.7041 24.16 29.2413 23.6228 29.2413 22.96C29.2413 22.2973 28.7041 21.76 28.0413 21.76C27.3786 21.76 26.8413 22.2973 26.8413 22.96C26.8413 23.6228 27.3786 24.16 28.0413 24.16Z\" fill=\"#E9A204\"/>\n<path d=\"M28.0412 34.24C27.6012 34.24 27.2412 33.88 27.2412 33.44V26.56C27.2412 26.12 27.6012 25.76 28.0412 25.76C28.4812 25.76 28.8412 26.12 28.8412 26.56V33.44C28.8412 33.88 28.4812 34.24 28.0412 34.24Z\" fill=\"#E9A204\"/>\n<path d=\"M28 12C19.16 12 12 19.2 12 28C12 36.8 19.16 44 28 44C36.84 44 44 36.84 44 28C44 19.16 36.84 12 28 12ZM28 42.4C20.04 42.4 13.6 35.96 13.6 28C13.6 20.04 20.04 13.6 28 13.6C35.96 13.6 42.4 20.04 42.4 28C42.4 35.96 35.96 42.4 28 42.4Z\" fill=\"#E9A204\"/>\n</svg>`,\n \"languages_circle\": `<svg width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect y=\"0.47998\" width=\"32\" height=\"32\" rx=\"16\" fill=\"#333333\" fill-opacity=\"0.2\"/>\n<g clip-path=\"url(#clip0_2850_2317)\">\n<path d=\"M25.9691 13.427C25.8191 11.9275 25.0943 10.6029 23.9197 9.67815C22.745 8.75342 21.2705 8.32855 19.7959 8.52849C17.0217 8.87839 14.9223 11.3526 14.9973 14.1268C14.9973 14.3268 15.0223 14.5267 15.0473 14.7266H7.37459C6.62481 14.7266 6 15.3515 6 16.1012V21.5996C6 22.3494 6.62481 22.9742 7.37459 22.9742H9.79887V23.7989C9.79887 24.3238 10.2237 24.7237 10.7236 24.7237C10.8985 24.7237 11.0485 24.6737 11.1985 24.5987L13.7977 23.0242C13.8477 22.9992 13.9226 22.9742 13.9976 22.9742H16.6218C17.3716 22.9742 17.9964 22.3494 17.9964 21.5996V18.8754C18.9212 19.3503 19.9958 19.5502 21.0455 19.4502C21.3204 19.4252 21.5954 19.3753 21.8453 19.3003L23.0199 19.9751C23.1699 20.0501 23.3198 20.1 23.4948 20.1C23.6697 20.1 23.8197 20.0501 23.9697 19.9751C24.2696 19.8001 24.4445 19.5002 24.4445 19.1753V17.8257C25.5692 16.6511 26.144 15.0515 25.9691 13.427ZM16.9967 21.5996C16.9967 21.7995 16.8218 21.9745 16.6218 21.9745H13.9976C13.7477 21.9745 13.4978 22.0495 13.2728 22.1744L10.7736 23.699V22.4993C10.7736 22.2244 10.5486 21.9995 10.2737 21.9995H7.37459C7.17465 21.9995 6.9997 21.8245 6.9997 21.6246V16.1012C6.9997 15.9013 7.17465 15.7263 7.37459 15.7263H16.6218C16.8218 15.7263 16.9967 15.9013 16.9967 16.1012V21.5996ZM23.5948 17.2509C23.4698 17.3509 23.4198 17.5258 23.4448 17.6758V19.0754L22.1702 18.3506C22.0952 18.3006 22.0202 18.2756 21.9203 18.2756C21.8703 18.2756 21.8203 18.2756 21.7703 18.3006C21.4954 18.3756 21.2205 18.4255 20.9456 18.4505C19.8959 18.5505 18.8462 18.2756 17.9964 17.7008V16.1012C17.9964 15.3515 17.3716 14.7266 16.6218 14.7266H16.047C16.022 14.5267 15.997 14.3268 15.997 14.1018C15.922 11.8275 17.6465 9.80311 19.9209 9.5032C21.1455 9.35325 22.3451 9.67815 23.2949 10.4529C24.2446 11.2027 24.8444 12.3024 24.9694 13.527C25.1193 14.9266 24.6195 16.2762 23.5948 17.2509Z\" fill=\"#333333\"/>\n<path d=\"M15.1223 18.3254H8.87412C8.5992 18.3254 8.37427 18.1005 8.37427 17.8255C8.37427 17.5506 8.5992 17.3257 8.87412 17.3257H15.1223C15.3972 17.3257 15.6221 17.5506 15.6221 17.8255C15.6221 18.1254 15.3972 18.3254 15.1223 18.3254Z\" fill=\"#333333\"/>\n<path d=\"M15.1223 20.3249H8.87412C8.5992 20.3249 8.37427 20.1 8.37427 19.825C8.37427 19.5501 8.5992 19.3252 8.87412 19.3252H15.1223C15.3972 19.3252 15.6221 19.5501 15.6221 19.825C15.6221 20.125 15.3972 20.3249 15.1223 20.3249Z\" fill=\"#333333\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2850_2317\">\n<rect width=\"24\" height=\"24\" fill=\"white\" transform=\"translate(4 4.47998)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"pencil\": `<svg width=\"24\" height=\"25\" viewBox=\"0 0 24 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_3071_1843)\">\n<path d=\"M21.1792 3.34301C20.0866 2.20072 18.249 2.20072 17.1315 3.29334L3.02678 17.0256C2.95228 17.1001 2.90262 17.1746 2.87778 17.2739L2.00865 21.3464C1.98382 21.4954 2.00865 21.6693 2.13281 21.7934C2.23214 21.8927 2.35631 21.9424 2.5053 21.9424C2.53013 21.9424 2.55496 21.9424 2.5798 21.9424L6.77646 21.2719C6.87579 21.2471 6.97511 21.1974 7.04961 21.1478L21.1295 7.39067C21.6758 6.84436 21.9738 6.14906 21.9987 5.37926C22.0235 4.60945 21.7007 3.88932 21.1792 3.34301ZM20.4342 6.69537L6.45364 20.3283L3.12611 20.8498L3.82141 17.6464L17.802 4.01348C18.547 3.29334 19.7389 3.31817 20.4591 4.03831C20.8067 4.38596 21.0054 4.85778 20.9805 5.37926C20.9805 5.8759 20.7819 6.34772 20.4342 6.69537Z\" fill=\"#2175D9\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_3071_1843\">\n<rect width=\"24\" height=\"24\" fill=\"white\" transform=\"translate(0 0.47998)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"personal_circle\": `<svg width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect y=\"0.47998\" width=\"32\" height=\"32\" rx=\"16\" fill=\"#333333\" fill-opacity=\"0.2\"/>\n<g clip-path=\"url(#clip0_2850_2271)\">\n<path d=\"M17.0999 16.1798C18.0249 15.7548 18.6499 14.8298 18.6499 13.7548C18.6499 12.2798 17.4499 11.0798 15.9749 11.0798C14.4999 11.0798 13.2999 12.2798 13.2999 13.7548C13.2999 14.8298 13.9499 15.7548 14.8499 16.1798C13.6249 16.6298 12.7749 17.8048 12.7749 19.1798V21.3798C12.7749 21.6548 12.9999 21.8798 13.2749 21.8798C13.5499 21.8798 13.7749 21.6548 13.7749 21.3798V19.1798C13.7749 17.9798 14.7499 16.9798 15.9749 16.9798C17.1749 16.9798 18.1749 17.9548 18.1749 19.1798V21.3798C18.1749 21.6548 18.3999 21.8798 18.6749 21.8798C18.9499 21.8798 19.1749 21.6548 19.1749 21.3798V19.1798C19.1999 17.8048 18.3249 16.6298 17.0999 16.1798ZM14.3249 13.7548C14.3249 12.8298 15.0749 12.0798 15.9999 12.0798C16.9249 12.0798 17.6749 12.8298 17.6749 13.7548C17.6749 14.6798 16.9249 15.4298 15.9999 15.4298C15.0749 15.4298 14.3249 14.6798 14.3249 13.7548Z\" fill=\"#333333\"/>\n<path d=\"M16 6.47998C10.475 6.47998 6 10.955 6 16.48C6 22.005 10.475 26.48 16 26.48C21.525 26.48 26 22.005 26 16.48C26 10.955 21.525 6.47998 16 6.47998ZM16 25.48C11.025 25.48 7 21.455 7 16.48C7 11.505 11.025 7.47998 16 7.47998C20.975 7.47998 25 11.505 25 16.48C25 21.455 20.975 25.48 16 25.48Z\" fill=\"#333333\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2850_2271\">\n<rect width=\"24\" height=\"24\" fill=\"white\" transform=\"translate(4 4.47998)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"postulation\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M17.7249 3.55H16.7499V3.25C16.7499 2.55 16.1999 2 15.4999 2H8.4999C7.7999 2 7.2499 2.55 7.2499 3.25V3.525H6.2749C5.1749 3.525 4.2749 4.425 4.2749 5.525V20C4.2749 21.1 5.1749 22 6.2749 22H17.7249C18.8249 22 19.7249 21.1 19.7249 20V5.525C19.7249 4.425 18.8249 3.55 17.7249 3.55ZM8.2499 4.55V3.55V3.25C8.2499 3.1 8.3499 3 8.4999 3H15.4999C15.6499 3 15.7499 3.1 15.7499 3.25V3.525V4.525V5.25C15.7499 5.4 15.6499 5.5 15.4999 5.5H8.4999C8.3499 5.5 8.2499 5.4 8.2499 5.25V4.55ZM18.7249 20C18.7249 20.55 18.2749 21 17.7249 21H6.2749C5.7249 21 5.2749 20.55 5.2749 20V5.525C5.2749 4.975 5.7249 4.525 6.2749 4.525H7.2499V5.25C7.2499 5.95 7.7999 6.5 8.4999 6.5H15.4999C16.1999 6.5 16.7499 5.95 16.7499 5.25V4.525H17.7249C18.2749 4.525 18.7249 4.975 18.7249 5.525V20Z\" fill=\"#404767\"/>\n<path d=\"M15.625 9.17498L11.475 13.775L9.85 12.15C9.65 11.95 9.35 11.95 9.15 12.15C8.95 12.35 8.95 12.65 9.15 12.85L11.15 14.85C11.25 14.95 11.375 15 11.5 15C11.5 15 11.5 15 11.525 15C11.65 15 11.8 14.925 11.875 14.825L16.375 9.82498C16.55 9.62498 16.55 9.29998 16.35 9.12498C16.125 8.94998 15.825 8.94998 15.625 9.17498Z\" fill=\"#404767\"/>\n</svg>`,\n \"search\": `<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_9569_18053)\">\n<path d=\"M29.128 28.2426L23.9698 23.0843C25.946 20.9071 27.1518 18.0265 27.1518 14.8444C27.1518 8.11188 21.6586 2.61865 14.926 2.61865C8.19347 2.61865 2.66675 8.11188 2.66675 14.8444C2.66675 21.577 8.15998 27.0702 14.926 27.0702C18.0411 27.0702 20.8547 25.8979 23.0319 23.9887L28.2237 29.1804C28.3577 29.3144 28.5251 29.3814 28.6926 29.3814C28.8601 29.3814 29.0276 29.3144 29.1615 29.1804C29.396 28.9125 29.396 28.5105 29.128 28.2426ZM14.926 25.7304C8.93037 25.7304 4.04006 20.8401 4.04006 14.8444C4.04006 8.84878 8.89688 3.95846 14.926 3.95846C20.9217 3.95846 25.812 8.84878 25.812 14.8444C25.812 20.8401 20.9217 25.7304 14.926 25.7304Z\" fill=\"white\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_9569_18053\">\n<rect width=\"32\" height=\"32\" fill=\"white\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"settings\": `<svg width=\"25\" height=\"25\" viewBox=\"0 0 25 25\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2670_175)\">\n<path d=\"M21.1417 10.5342H20.1401C19.9398 9.80803 19.6644 9.10694 19.2888 8.48097L20.0149 7.75485C20.2403 7.5295 20.3905 7.20399 20.3905 6.87849C20.3905 6.55298 20.2653 6.22748 20.0149 6.00213L18.9633 4.9505C18.4625 4.44972 17.6863 4.47476 17.1855 4.9505L16.4594 5.67662C15.8084 5.276 15.1073 4.97554 14.3812 4.77522V3.77367C14.3812 3.07258 13.8303 2.52173 13.1293 2.52173H11.6269C10.9258 2.52173 10.375 3.07258 10.375 3.77367V4.77522C9.64885 4.97554 8.94777 5.25096 8.29676 5.62655L7.59567 4.92546C7.37032 4.70011 7.04481 4.54988 6.71931 4.54988C6.3938 4.54988 6.0683 4.67507 5.84295 4.92546L4.79132 5.97709C4.56597 6.20244 4.41573 6.52794 4.41573 6.85345C4.41573 7.17895 4.54093 7.50446 4.79132 7.72981L5.4924 8.4309C5.11682 9.08191 4.81636 9.75795 4.61604 10.5091H3.61449C2.9134 10.5091 2.36255 11.06 2.36255 11.7611V13.2634C2.36255 13.9645 2.9134 14.5153 3.61449 14.5153H4.59101C4.79132 15.2665 5.06674 15.9676 5.46737 16.5936L4.79132 17.2696C4.31558 17.7453 4.31558 18.5466 4.79132 19.0474L5.84295 20.099C6.0683 20.3243 6.3938 20.4746 6.71931 20.4746C7.04481 20.4746 7.37032 20.3494 7.59567 20.099L8.27172 19.4229C8.92273 19.7985 9.62381 20.099 10.3499 20.2993V21.3009C10.3499 22.0019 10.9008 22.5528 11.6019 22.5528H13.1042C13.8053 22.5528 14.3562 22.0019 14.3562 21.3009V20.3243C15.1073 20.124 15.7834 19.8236 16.4344 19.448L17.1355 20.1491C17.3859 20.3995 17.7114 20.5247 18.0118 20.5247C18.3373 20.5247 18.6628 20.3995 18.8882 20.1491L19.9398 19.0974C20.4406 18.6217 20.4406 17.8205 19.9398 17.3197L19.2387 16.6186C19.6143 15.9676 19.9148 15.2915 20.0901 14.5404H21.0916C21.7927 14.5404 22.3435 13.9895 22.3435 13.2884V11.7861C22.3936 11.085 21.8428 10.5342 21.1417 10.5342ZM21.3921 13.2884C21.3921 13.4387 21.2919 13.5388 21.1417 13.5388H20.3154H19.3138C19.2638 13.8894 19.1887 14.2149 19.0885 14.5404C18.9383 15.0161 18.763 15.4668 18.5376 15.8925C18.3874 16.1929 18.1871 16.4934 17.9868 16.7438L18.6879 17.4449L19.2638 18.0208C19.3389 18.0959 19.3389 18.171 19.3389 18.196C19.3389 18.2461 19.3389 18.3212 19.2638 18.3713L18.2121 19.4229C18.137 19.4981 18.0619 19.4981 18.0369 19.4981C17.9868 19.4981 17.9117 19.4981 17.8616 19.4229L17.2857 18.8471L16.5846 18.146C16.3092 18.3463 16.0338 18.5466 15.7333 18.6968C15.3076 18.9222 14.8569 19.1225 14.3812 19.2727C14.0557 19.3729 13.7302 19.448 13.3796 19.4981V20.4996V21.3009C13.3796 21.4511 13.2795 21.5513 13.1293 21.5513H11.6269C11.4767 21.5513 11.3765 21.4511 11.3765 21.3009V20.5247V19.5231C11.026 19.473 10.7005 19.3979 10.375 19.2978C9.89924 19.1475 9.44854 18.9723 9.02288 18.7469C8.72241 18.5716 8.42195 18.3964 8.17156 18.196L7.47047 18.8971L6.91962 19.448C6.8445 19.5231 6.76939 19.5231 6.74435 19.5231C6.69427 19.5231 6.61915 19.5231 6.56907 19.448L5.51744 18.3964C5.41729 18.2962 5.41729 18.146 5.51744 18.0458L6.0683 17.495L6.76939 16.7939C6.56907 16.5184 6.36876 16.243 6.21853 15.9425C5.99318 15.5169 5.79287 15.0662 5.66768 14.5905C5.56752 14.2649 5.4924 13.9394 5.44233 13.5889H4.44077H3.61449C3.46426 13.5889 3.3641 13.4887 3.3641 13.3385V11.8362C3.3641 11.6859 3.46426 11.5858 3.61449 11.5858H4.3907H5.39225C5.44233 11.2352 5.51744 10.9097 5.6176 10.5842C5.76783 10.1085 5.9431 9.6578 6.19349 9.23214C6.36876 8.93167 6.54404 8.65625 6.74435 8.38082L6.04326 7.67973L5.46737 7.10384C5.39225 7.02872 5.39225 6.9536 5.39225 6.92856C5.39225 6.87849 5.39225 6.80337 5.46737 6.75329L6.519 5.70166C6.59411 5.62655 6.66923 5.62655 6.69427 5.62655C6.74435 5.62655 6.81946 5.62655 6.86954 5.70166L7.44543 6.27756L8.14652 6.97864C8.42195 6.77833 8.69738 6.60306 8.99784 6.42779C9.4235 6.20244 9.8742 6.00213 10.3499 5.87693C10.6754 5.77678 11.001 5.70166 11.3515 5.65158V4.65003V3.77367C11.3515 3.62344 11.4516 3.52328 11.6019 3.52328H13.1042C13.2544 3.52328 13.3546 3.62344 13.3546 3.77367V4.59995V5.60151C13.7051 5.65158 14.0307 5.7267 14.3562 5.82686C14.8319 5.97709 15.2826 6.15236 15.6832 6.37771C15.9837 6.55298 16.2591 6.72825 16.5345 6.92856L17.2356 6.22748L17.8115 5.65158C17.9117 5.55143 18.0619 5.55143 18.1621 5.65158L19.2137 6.70322C19.2888 6.77833 19.2888 6.85345 19.2888 6.87849C19.2888 6.92857 19.2888 7.00368 19.2137 7.05376L18.6378 7.62965L17.9367 8.33074C18.137 8.60617 18.3373 8.88159 18.4876 9.18206C18.7129 9.60772 18.9132 10.0584 19.0384 10.5091C19.1386 10.8346 19.2137 11.1601 19.2638 11.5107H20.2653H21.1417C21.2919 11.5107 21.3921 11.6108 21.3921 11.7611V13.2884Z\" fill=\"currentColor\"/>\n<path d=\"M12.3781 8.03027C9.89924 8.03027 7.87109 10.0584 7.87109 12.5373C7.87109 15.0161 9.89924 17.0443 12.3781 17.0443C14.8569 17.0443 16.8851 15.0161 16.8851 12.5373C16.8851 10.0584 14.8569 8.03027 12.3781 8.03027ZM12.3781 16.0427C10.4501 16.0427 8.87265 14.4653 8.87265 12.5373C8.87265 10.6093 10.4501 9.03183 12.3781 9.03183C14.3061 9.03183 15.8835 10.6093 15.8835 12.5373C15.8835 14.4653 14.3061 16.0427 12.3781 16.0427Z\" fill=\"currentColor\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2670_175\">\n<rect width=\"24.0373\" height=\"24.0373\" fill=\"currentColor\" transform=\"translate(0.359375 0.518555)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"thumbs_up\": `<svg width=\"25\" height=\"25\" viewBox=\"0 0 25 25\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2670_160)\">\n<path d=\"M2.61542 11.5669C2.33965 11.5669 2.11401 11.7925 2.11401 12.0683V21.6952C2.11401 21.971 2.33965 22.1967 2.61542 22.1967C2.89119 22.1967 3.11682 21.971 3.11682 21.6952V12.0683C3.11682 11.7925 2.89119 11.5669 2.61542 11.5669Z\" fill=\"currentColor\"/>\n<path d=\"M22.1453 17.8596C22.1453 17.2328 21.8696 16.6562 21.4183 16.2801C21.8696 15.9041 22.1453 15.3275 22.1453 14.7007C22.1453 13.8233 21.6189 13.0712 20.8417 12.7703C21.0924 12.4193 21.2177 12.0182 21.2177 11.5669C21.2177 10.9903 20.9921 10.4388 20.6161 10.0627C20.24 9.68668 19.7135 9.48612 19.1369 9.48612C19.1369 9.48612 19.1369 9.48612 19.1118 9.48612C19.0617 9.48612 17.4321 9.48612 16.1034 9.48612H15.4265L16.6299 6.75347V6.7284C16.8555 6.12672 16.8305 5.47489 16.5547 4.89828C16.2789 4.32166 15.8026 3.8704 15.226 3.66984C13.9975 3.21858 12.6437 3.84533 12.1674 5.0487L10.0114 9.76189C10.0114 9.78696 9.9863 9.78696 9.9863 9.81203C9.71052 10.4889 9.08377 11.6171 7.95561 11.6171H6.12549C5.0224 11.6171 4.11987 12.5196 4.11987 13.6227V20.2412C4.11987 20.7677 4.32043 21.2942 4.69649 21.6702C5.07254 22.0463 5.57394 22.2468 6.12549 22.2468L18.2344 22.2218C19.7637 22.2218 20.3653 21.595 20.6161 21.0685C20.8166 20.6674 20.8166 20.2412 20.7414 19.8652C21.5687 19.5393 22.1453 18.7621 22.1453 17.8596ZM20.0896 18.9626C19.9141 18.9626 19.7386 19.088 19.6383 19.2384C19.538 19.4139 19.5631 19.6395 19.6885 19.79C19.7386 19.8652 19.8639 20.2914 19.7135 20.6173C19.4879 21.0685 18.7859 21.1688 18.2595 21.1688L6.15056 21.1939C5.87479 21.1939 5.62408 21.0936 5.44859 20.8931C5.24803 20.6925 5.14775 20.4418 5.14775 20.1911V13.5726C5.14775 13.021 5.59901 12.5698 6.15056 12.5698H7.98068C9.23419 12.5698 10.2871 11.6923 10.939 10.163L13.095 5.42475C13.095 5.42475 13.095 5.39968 13.1201 5.39968C13.3708 4.69772 14.173 4.32166 14.875 4.59744C15.5769 4.84814 15.953 5.65038 15.7023 6.35235L14.1981 9.78696C14.1229 9.93738 14.1479 10.1129 14.2482 10.2633C14.3485 10.4137 14.4989 10.4889 14.6744 10.4889H16.1034C17.4572 10.4889 19.0868 10.4889 19.1118 10.4889C19.4127 10.4889 19.6885 10.5892 19.889 10.7898C20.0896 10.9903 20.2149 11.2661 20.2149 11.592C20.2149 11.9931 19.9893 12.3692 19.6132 12.5698C19.538 12.5948 19.4628 12.645 19.3876 12.645C19.1369 12.7202 18.9865 12.9458 19.0116 13.1965C19.0366 13.4472 19.2623 13.6227 19.513 13.6227H20.0394C20.0645 13.6227 20.0645 13.6227 20.0896 13.6227C20.6662 13.6478 21.1175 14.1241 21.1175 14.7007C21.1175 15.3024 20.6411 15.7787 20.0645 15.7787C19.7887 15.7787 19.5882 16.0044 19.5882 16.2801C19.5882 16.5559 19.8138 16.7815 20.0645 16.7815C20.6662 16.8066 21.1175 17.2829 21.1175 17.8596C21.1425 18.4612 20.6662 18.9376 20.0896 18.9626Z\" fill=\"currentColor\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2670_160\">\n<rect width=\"24.0373\" height=\"24.0373\" fill=\"currentColor\" transform=\"translate(0.11084 0.518555)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"tick\": `<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M8.81719 12.9834C8.65052 12.9834 8.49219 12.9167 8.37552 12.8L6.01719 10.4417C5.77552 10.2 5.77552 9.80002 6.01719 9.55835C6.25885 9.31669 6.65885 9.31669 6.90052 9.55835L8.81719 11.475L13.1005 7.19169C13.3422 6.95002 13.7422 6.95002 13.9839 7.19169C14.2255 7.43335 14.2255 7.83335 13.9839 8.07502L9.25885 12.8C9.14219 12.9167 8.98385 12.9834 8.81719 12.9834Z\" fill=\"currentColor\"/>\n</svg>`,\n \"trash\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2335_4819)\">\n<path d=\"M20.375 5.1H15.85C15.6 3.35 14.15 2 12.4 2C10.65 2 9.175 3.35 8.925 5.1H4.5C4.225 5.1 4 5.325 4 5.6C4 5.875 4.225 6.1 4.5 6.1H5.5V19.95C5.5 21.075 6.425 22 7.525 22H17.3C18.425 22 19.325 21.075 19.325 19.95V6.1H20.325C20.6 6.1 20.825 5.875 20.825 5.6C20.825 5.325 20.65 5.1 20.375 5.1ZM12.4 3C13.6 3 14.625 3.9 14.85 5.1H9.95C10.175 3.9 11.175 3 12.4 3ZM18.375 19.95C18.375 20.525 17.9 21 17.35 21H7.55C6.975 21 6.525 20.525 6.525 19.95V6.1H18.375V19.95Z\" fill=\"#2175D9\"/>\n<path d=\"M12.4001 18C12.6751 18 12.9001 17.775 12.9001 17.5V9.62495C12.9001 9.34995 12.6751 9.12495 12.4001 9.12495C12.1251 9.12495 11.9001 9.34995 11.9001 9.62495V17.5C11.9001 17.775 12.1251 18 12.4001 18Z\" fill=\"#2175D9\"/>\n<path d=\"M15.3999 18C15.6749 18 15.8999 17.775 15.8999 17.5V9.62495C15.8999 9.34995 15.6749 9.12495 15.3999 9.12495C15.1249 9.12495 14.8999 9.34995 14.8999 9.62495V17.5C14.8999 17.775 15.1249 18 15.3999 18Z\" fill=\"#2175D9\"/>\n<path d=\"M9.39983 18C9.67483 18 9.89983 17.775 9.89983 17.5V9.62495C9.89983 9.34995 9.67483 9.12495 9.39983 9.12495C9.12483 9.12495 8.89983 9.34995 8.89983 9.62495V17.5C8.89983 17.775 9.12483 18 9.39983 18Z\" fill=\"#2175D9\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2335_4819\">\n<rect width=\"24\" height=\"24\" fill=\"white\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"trash_circle\": `<svg width=\"56\" height=\"56\" viewBox=\"0 0 56 56\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect width=\"56\" height=\"56\" rx=\"28\" fill=\"#E00F0F\" fill-opacity=\"0.2\"/>\n<path d=\"M40.7391 16.96H33.4991C33.0991 14.16 30.7791 12 27.9791 12C25.1791 12 22.8191 14.16 22.4191 16.96H15.3391C14.8991 16.96 14.5391 17.32 14.5391 17.76C14.5391 18.2 14.8991 18.56 15.3391 18.56H16.9391V40.72C16.9391 42.52 18.4191 44 20.1791 44H35.8191C37.6191 44 39.0591 42.52 39.0591 40.72V18.56H40.6591C41.0991 18.56 41.4591 18.2 41.4591 17.76C41.4591 17.32 41.1791 16.96 40.7391 16.96ZM27.9791 13.6C29.8991 13.6 31.5391 15.04 31.8991 16.96H24.0591C24.4191 15.04 26.0191 13.6 27.9791 13.6ZM37.5391 40.72C37.5391 41.64 36.7791 42.4 35.8991 42.4H20.2191C19.2991 42.4 18.5791 41.64 18.5791 40.72V18.56H37.5391V40.72Z\" fill=\"#E00F0F\"/>\n<path d=\"M27.9797 37.6C28.4197 37.6 28.7797 37.24 28.7797 36.8V24.2C28.7797 23.76 28.4197 23.4 27.9797 23.4C27.5397 23.4 27.1797 23.76 27.1797 24.2V36.8C27.1797 37.24 27.5397 37.6 27.9797 37.6Z\" fill=\"#E00F0F\"/>\n<path d=\"M32.7805 37.6C33.2205 37.6 33.5805 37.24 33.5805 36.8V24.2C33.5805 23.76 33.2205 23.4 32.7805 23.4C32.3405 23.4 31.9805 23.76 31.9805 24.2V36.8C31.9805 37.24 32.3405 37.6 32.7805 37.6Z\" fill=\"#E00F0F\"/>\n<path d=\"M23.1789 37.6C23.6189 37.6 23.9789 37.24 23.9789 36.8V24.2C23.9789 23.76 23.6189 23.4 23.1789 23.4C22.7389 23.4 22.3789 23.76 22.3789 24.2V36.8C22.3789 37.24 22.7389 37.6 23.1789 37.6Z\" fill=\"#E00F0F\"/>\n</svg>`,\n \"user\": `<svg width=\"25\" height=\"25\" viewBox=\"0 0 25 25\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2670_168)\">\n<path d=\"M13.5308 11.3354C15.3336 10.7345 16.6356 9.03183 16.6356 7.05376C16.6606 4.54987 14.6325 2.52173 12.1286 2.52173C9.62472 2.52173 7.59657 4.54987 7.59657 7.05376C7.59657 9.05687 8.89859 10.7345 10.7014 11.3354C9.42441 11.6108 8.27262 12.2118 7.32114 13.1382C5.96905 14.4402 5.24292 16.1929 5.24292 18.0709V20.5497C5.24292 21.6514 6.14432 22.5528 7.24603 22.5528H17.0112C18.1129 22.5528 19.0143 21.6514 19.0143 20.5497V18.2211C19.0143 14.8659 16.6356 12.0115 13.5308 11.3354ZM8.59813 7.05376C8.59813 5.10073 10.1756 3.52328 12.1286 3.52328C14.0816 3.52328 15.6591 5.10073 15.6591 7.05376C15.6591 9.00679 14.0816 10.5592 12.1286 10.5592C10.1756 10.5592 8.59813 8.98175 8.59813 7.05376ZM18.0127 20.5497C18.0127 21.1006 17.562 21.5513 17.0112 21.5513H7.24603C6.69517 21.5513 6.24447 21.1006 6.24447 20.5497V18.0709C6.24447 16.4684 6.87044 14.966 8.02223 13.8643C9.12394 12.7877 10.5762 12.1867 12.1286 12.1867C12.1787 12.1867 12.2288 12.1867 12.2788 12.1867C15.4337 12.2618 18.0127 14.966 18.0127 18.196V20.5497Z\" fill=\"currentColor\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2670_168\">\n<rect width=\"24.0373\" height=\"24.0373\" fill=\"currentColor\" transform=\"translate(0.235107 0.518555)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"warning\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2269_3652)\">\n<path d=\"M21.731 18.3973L13.8574 4.1498C13.5074 3.44992 12.8076 3 12.0077 3C11.2078 3 10.508 3.42493 10.158 4.1498L2.25941 18.3973C1.90947 19.0472 1.90947 19.822 2.28441 20.4719C2.65934 21.1218 3.33422 21.4967 4.08409 21.4967H19.9063C20.6562 21.4967 21.3311 21.1218 21.706 20.4719C22.0809 19.822 22.1059 19.0472 21.731 18.3973ZM20.8561 19.972C20.6562 20.297 20.3062 20.4969 19.9063 20.4969H4.10908C3.70915 20.4969 3.35922 20.297 3.15925 19.972C2.95929 19.6471 2.95929 19.2221 3.13426 18.8972L11.0079 4.62471V4.59972C11.2078 4.22478 11.5578 3.99982 11.9827 3.99982C12.4076 3.99982 12.7576 4.22478 12.9575 4.62471L20.8311 18.8972C21.0561 19.2221 21.0561 19.6221 20.8561 19.972Z\"/>\n<path d=\"M11.9077 15.2728C12.1827 15.2728 12.4077 15.0479 12.4077 14.7729V8.49903C12.4077 8.22408 12.1827 7.99911 11.9077 7.99911C11.6328 7.99911 11.4078 8.22408 11.4078 8.49903V14.7729C11.4078 15.0479 11.6328 15.2728 11.9077 15.2728Z\"/>\n<path d=\"M11.9078 17.9724C12.3219 17.9724 12.6577 17.6367 12.6577 17.2225C12.6577 16.8084 12.3219 16.4727 11.9078 16.4727C11.4937 16.4727 11.1579 16.8084 11.1579 17.2225C11.1579 17.6367 11.4937 17.9724 11.9078 17.9724Z\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2269_3652\">\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\n</clipPath>\n</defs>\n</svg>`,\n};\n","import { LitElement, html, css, TemplateResult } from 'lit';\r\nimport { property, state } from 'lit/decorators.js';\r\nimport { ICONS } from './icons';\r\n\r\nexport class IconComponent extends LitElement {\r\n @property({ type: String }) name = '';\r\n @property({ type: String }) size = '24px';\r\n @property({ type: String }) color = '';\r\n\r\n @state() private svgTemplate: TemplateResult | null = null;\r\n\r\n static styles = css`\r\n :host {\r\n display: inline-flex;\r\n width: var( --icon-size, 24px );\r\n height: var( --icon-size, 24px );\r\n align-items: center;\r\n justify-content: center;\r\n }\r\n\r\n svg {\r\n width: var( --icon-size, 24px );\r\n height: var( --icon-size, 24px );\r\n fill: var( --icon-color, currentColor );\r\n }\r\n\r\n .custom-icon {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n `;\r\n\r\n // El método 'updated' es el lugar correcto para realizar efectos secundarios\r\n public updated( changedProps: Map<string, unknown> ) {\r\n super.updated( changedProps );\r\n\r\n if ( changedProps.has( 'size' ) ) this.style.setProperty( '--icon-size', this.size );\r\n if ( changedProps.has( 'color' ) ) this.style.setProperty( '--icon-color', this.color );\r\n \r\n if ( changedProps.has( 'name' ) && this.name ) this.loadIcon();\r\n }\r\n\r\n async loadIcon() {\r\n try {\r\n let svgText: string = ICONS[ this.name ];\r\n if ( !svgText ) throw new Error( 'Icon not found' );\r\n\r\n // Ajusta el SVG para que herede el color\r\n svgText = svgText.replace(/fill=\"[^\"]*\"/g, '');\r\n svgText = svgText.replace(/fill='[^']*'/g, '');\r\n\r\n const parser: DOMParser = new DOMParser();\r\n const svgDoc: Document = parser.parseFromString( svgText, 'image/svg+xml' );\r\n const svgElement: HTMLElement = svgDoc.documentElement;\r\n \r\n // Convierte el elemento SVG a una plantilla de Lit-HTML\r\n this.svgTemplate = html` ${ svgElement } `;\r\n } catch ( error ) {\r\n console.error( `❌ Error cargando icono ${ this.name }:`, error );\r\n this.innerHTML = ' <span>⚠️</span> ';\r\n }\r\n }\r\n\r\n public render() {\r\n if ( !this.svgTemplate ) return html``;\r\n\r\n return html`\r\n <div class=\"custom-icon\" style=\"color: ${ this.color };\">\r\n ${ this.svgTemplate }\r\n </div>\r\n `;\r\n }\r\n}\r\n\r\ncustomElements.define('randstad-icon', IconComponent);","import { html, css, nothing, TemplateResult } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { bodyL, bodyM } from '../styles/fontStyles';\nimport { tooltipStyles } from \"../styles/tooltip\";\nimport { BaseControl } from '../helpers/BaseControl';\nimport { mixStyles } from '../styles/mix';\nimport { errorStyles } from '../styles/error';\nimport { scrollbarStyles } from '../styles/scrollbar';\n\nconst REGEX_NO_EMOJIS = /[\\p{Extended_Pictographic}\\u{FE0F}\\u{1F3FB}-\\u{1F3FF}\\u{1F9B0}-\\u{1F9B3}\\u{200D}]/gu;\n/**\n * LinkedIn input component with fixed prefix and editable username\n * \n * Features:\n * - Fixed prefix \"linkedin.com/in/\" (non-editable)\n * - Editable input for username\n * - Character restrictions: only letters, numbers, and hyphens\n * - Minimum 3 characters validation\n * - Maximum 100 characters validation\n * - Auto-extract username from full LinkedIn URL on paste\n * - Validates pasted content for invalid formats\n * - Angular Reactive Forms Support via ControlValueAccessor\n */\n@customElement('randstad-social-input')\nexport class RandstadSocialMediaInput extends BaseControl {\n /** Tipo de plataforma: linkedin, facebook o google */\n @property({ type: String }) platform: 'linkedin' | 'facebook' | 'google' = 'linkedin';\n\n @property({ type: String }) size: 'sm' | 'md' | 'lg' = 'md';\n\n @property({ type: Number }) maxLength: number = 100;\n\n @property({ type: Boolean, reflect: true }) isPasswordVisible = false;\n\n /** \n * Patrón de expresiones regulares personalizado para la desinfección de caracteres. \n * Si no se proporciona, utiliza el valor predeterminado: /[^a-zA-Z0-9-]/g \n * Ejemplo: /[^a-zA-Z0-9-_]/g para permitir guiones bajos */\n @property({ type: String }) customSanitizeRegex: string | undefined = undefined;\n\n /** \n * Patrón de expresiones regulares personalizado para validación de URL por plataforma.\n * Si no se proporciona, utiliza valores por defecto:\n * - linkedin: /^(https?:\\/\\/)?(www\\.)?linkedin\\.com\\/in\\/([a-zA-Z0-9-]+)\\/?.*$/i\n * - facebook: /^(https?:\\/\\/)?(www\\.)?facebook\\.com\\/([azA-Z0-9.]+)\\/?.*$/i\n */\n @property({ type: String }) customUrlValidationRegex: string | undefined = undefined;\n\n @property({ type: String, hasChanged: () => false }) value: string = '';\n\n @state() private _inputValue: string = '';\n\n @state() private _showFormatError: boolean = false;\n\n // ControlValueAccessor callbacks\n private _onChangeFn: (value: any) => void = () => { };\n private _onTouchedFn: () => void = () => { };\n\n static styles = [\n scrollbarStyles,\n css`\n ${mixStyles}\n ${errorStyles}\n ${tooltipStyles}\n\n .linkedin-input-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n }\n\n .input-wrapper {\n display: flex;\n align-items: center;\n width: 100%;\n padding:16px;\n box-sizing: border-box;\n border: 1px solid var(--secondary-color-10);\n border-radius: 4px;\n background-color: white;\n transition: border-color 0.3s ease, box-shadow 0.3s ease;\n overflow: hidden;\n }\n\n .input-wrapper:focus-within {\n border: 2px solid var(--primary-color);\n background-color: #ffffff;\n }\n\n /* Hover normal (sin error ni foco) */\n .linkedin-input-container:not(.error):not(:focus-within) .input-wrapper:hover {\n box-shadow: 0px 0px 0px 4px var(--form-hover-shadow);\n }\n\n /* Hover con error (sin foco) */\n .linkedin-input-container.error:not(:focus-within) .input-wrapper:hover {\n box-shadow: 0px 0px 0px 4px var(--ui-negative-pink-shadow);\n }\n\n .input-wrapper.error {\n border-color: var(--ui-negative);\n bo\n }\n\n .input-wrapper.disabled {\n background-color: var(--secondary-color-10);\n cursor: default;\n }\n\n .input-wrapper.disabled .fixed-prefix,\n .input-wrapper.disabled .user-input {\n color: #9FA3B3;\n cursor: default;\n }\n\n .fixed-prefix {\n ${bodyL}\n color: var(--secondary-color);\n white-space: nowrap;\n user-select: none;\n background-color: transparent;\n border: none;\n }\n\n .divider {\n width: 1px;\n height: 24px;\n background-color: var(--secondary-color-10);\n margin: 0 6px;\n flex-shrink: 0;\n }\n\n .user-input {\n ${bodyL}\n flex: 1;\n border: none;\n outline: none;\n background-color: transparent;\n color: var(--secondary-color);\n width: 100%;\n min-width: 0;\n }\n\n .user-input::placeholder {\n color: #9FA3B3;\n }\n\n .user-input:disabled {\n cursor: default;\n }\n\n .clean-button {\n position: relative;\n background: transparent;\n border: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n margin-right: 8px;\n flex-shrink: 0;\n }\n\n .clean-button randstad-icon {\n width: 24px;\n height: 24px;\n color: var(--primary-color);\n }\n\n .clean-button:disabled {\n cursor: default;\n }\n\n .clean-button:disabled randstad-icon {\n color: #9FA3B3;\n }\n\n /* Error state styles */\n .linkedin-input-container.error .input-wrapper {\n border-color: var(--ui-negative);\n }\n\n .linkedin-input-container.error .input-wrapper:focus-within {\n border-width: 1px;\n }\n `\n ];\n\n /**\n * Prefijo fijo según la plataforma\n */\n private get _fixedPrefix(): string {\n switch (this.platform) {\n case 'facebook':\n return 'facebook.com/';\n case 'google':\n return '@gmail.com';\n case 'linkedin':\n default:\n return 'linkedin.com/in/';\n }\n }\n\n /**\n * Comprueba si se debe mostrar el sufijo después de la entrada (para Google)\n */\n private get _isSuffix(): boolean {\n return this.platform === 'google';\n }\n\n /**\n * Comprueba si se debe mostrar el prefijo para (linkedin o facebook)\n */\n private get _isPrefix(): boolean {\n return this.platform === 'linkedin' || this.platform === 'facebook';\n }\n\n /**\n * Placeholder text\n */\n private get _placeholder(): string {\n return this.placeholder || 'tu-usuario';\n }\n\n /**\n * Sanitization Regex (default)\n */\n private get _sanitizeRegex(): RegExp {\n if (this.customSanitizeRegex) {\n try {\n return new RegExp(this.customSanitizeRegex, 'g');\n } catch {\n return /[^a-zA-Z0-9-]/g;\n }\n }\n return /[^a-zA-Z0-9-]/g;\n }\n\n private get _sentPrefixLength(): number {\n switch (this.platform) {\n case 'facebook': return 25; // https://www.facebook.com/\n case 'google': return 10; // @gmail.com\n case 'linkedin':\n default: return 28; // https://www.linkedin.com/in/\n }\n }\n\n /** Getter para calcular el máximo permitido de forma consistente */\n private get _maxCharsAllowed(): number {\n const totalMax = Number(this.maxLength) || 100;\n const platformPrefix = this.platform === 'facebook' ? 25\n : this.platform === 'google' ? 10\n : 25;\n return totalMax - platformPrefix;\n }\n\n /** Handle both input and paste - ensures value never exceeds max */\n private _handleInputOrPaste(event: Event): void {\n const target = event.target as HTMLInputElement;\n const originalValue = target.value;\n const start = target.selectionStart || 0;\n\n const textBeforeCursor = originalValue.slice(0, start);\n const cleanTextBeforeCursor = textBeforeCursor.replace(REGEX_NO_EMOJIS, '');\n const newPosition = cleanTextBeforeCursor.length;\n\n let value = originalValue.replace(REGEX_NO_EMOJIS, '');\n if (value.startsWith(' ')) value = value.trimStart();\n\n const urlRegex = this._urlValidationRegex;\n if (urlRegex) {\n const match = value.match(urlRegex);\n if (match) {\n value = this.platform === 'google' ? match[1] : match[3];\n value = value.replace(this._sanitizeRegex, '');\n }\n }\n\n const maxChars = this._maxCharsAllowed;\n if (value.length > maxChars) {\n value = value.slice(0, maxChars);\n }\n\n target.value = value;\n this._inputValue = value;\n\n this._sanitizeRegex.lastIndex = 0;\n this._showFormatError = this._sanitizeRegex.test(value);\n\n const isActuallyValid = !this._showFormatError && value.length >= 3;\n const finalValue = isActuallyValid ? this._getFullValue(value) : value;\n this.value = finalValue;\n\n const safePosition = Math.min(newPosition, value.length);\n target.setSelectionRange(safePosition, safePosition);\n\n this._onChangeFn(finalValue);\n this.dispatchEvent(new CustomEvent('valueChanged', { detail: finalValue }));\n }\n\n /**\n * Regex URL para la plataforma actual\n */\n private get _urlValidationRegex(): RegExp | null {\n if (this.customUrlValidationRegex) {\n try { return new RegExp(this.customUrlValidationRegex, 'i'); } catch { return null; }\n }\n\n switch (this.platform) {\n case 'linkedin':\n return /^(https?:\\/\\/)?(www\\.)?linkedin\\.com\\/in\\/([a-zA-Z0-9-]+)\\/?.*$/i;\n case 'facebook':\n return /^(https?:\\/\\/)?(www\\.)?facebook\\.com\\/([a-zA-Z0-9-]+)\\/?.*$/i;\n case 'google':\n // Captura el nombre de usuario antes del @gmail.com\n return /^([a-zA-Z0-9-._]+)@gmail\\.com$/i;\n default:\n return null;\n }\n }\n\n /**\n * Validation error\n */\n private get _hasMinLengthError(): boolean {\n return this._inputValue.length > 0 && this._inputValue.length < 3;\n }\n\n /**\n * Get the error message to display\n */\n private get _errorMessageToDisplay(): string | null {\n if (this._hasMinLengthError) {\n return 'debés ingresar como mínimo 3 caracteres';\n }\n if (this._showFormatError) {\n switch (this.platform) {\n case 'facebook':\n return 'la URL de facebook no es válida';\n case 'google':\n return 'la URL de tu cuenta de Google no es válida';\n case 'linkedin':\n default:\n return 'la URL de linkedIn no es válida';\n }\n }\n return this.errorMessage;\n }\n\n /**\n * Check if there's any error state\n */\n private get _hasError(): boolean {\n return this.error || this._hasMinLengthError || this._showFormatError;\n }\n\n private _handleKeyDown(event: KeyboardEvent): void {\n const key = event.key;\n const input = event.target as HTMLInputElement;\n\n // Permitir teclas de control (Backspace, Delete, ArrowKeys, Tab, etc.)\n if (key.length > 1) return;\n\n if (REGEX_NO_EMOJIS.test(key)) {\n REGEX_NO_EMOJIS.lastIndex = 0;\n event.preventDefault();\n return;\n }\n\n if (input.value.length === 0 && key === ' ') {\n event.preventDefault();\n return;\n }\n\n // Regex para validar que sea alfanumérico (solo letras y números, guion)\n const isAlphanumeric = /^[a-zA-Z0-9-]$/.test(key);\n const totalMax = Number(this.maxLength) || 100;\n const maxCharsAllowed = totalMax - this._sentPrefixLength;\n // Si el input está vacío y la tecla no es alfanumérica, bloqueamos la acción\n if (input.value.length === 0 && !isAlphanumeric) {\n event.preventDefault();\n return;\n }\n\n if (!isAlphanumeric && !isAlphanumeric) {\n event.preventDefault();\n return;\n }\n\n if (input.value.length >= this._maxCharsAllowed && input.selectionStart === input.selectionEnd) {\n event.preventDefault();\n }\n }\n\n /**\n * Construye el valor final completo basado en la plataforma actual\n */\n private _getFullValue(username: string): string {\n if (!username) return '';\n\n switch (this.platform) {\n case 'facebook':\n return `https://www.facebook.com/${username}`;\n case 'google':\n return `${username}@gmail.com`;\n case 'linkedin':\n default:\n return `https://www.linkedin.com/in/${username}`;\n }\n }\n\n /**\n * Extrae el usuario de una URL completa según la plataforma\n */\n private _extractUsernameFromValue(fullValue: string): string {\n if (!fullValue) return '';\n\n const urlRegex = this._urlValidationRegex;\n if (urlRegex) {\n const match = fullValue.match(urlRegex);\n if (match) {\n return this.platform === 'google' ? match[1] : match[3];\n }\n }\n\n return fullValue;\n }\n\n /**\n * Sincroniza el valor externo (value) con el valor interno (_inputValue)\n */\n protected updated(changedProperties: Map<string, unknown>): void {\n super.updated?.(changedProperties);\n\n if (changedProperties.has('value') && this.value) {\n const extractedUsername = this._extractUsernameFromValue(this.value);\n if (extractedUsername !== this._inputValue) {\n this._inputValue = extractedUsername;\n\n // Dispatch after update completes to avoid update cycle issues\n this.updateComplete.then(() => {\n const fullValue = this._getFullValue(extractedUsername);\n this.dispatchEvent(new CustomEvent('valueChanged', { detail: fullValue }));\n });\n }\n }\n }\n\n /**\n * Render the component\n */\n public render() {\n const formStyles: string = this.labelColor ? `--label-color: ${this.labelColor};` : '';\n const totalMax = Number(this.maxLength) || 100;\n const allowedChars = totalMax - this._sentPrefixLength;\n return html`\n <div\n class=\"linkedin-input-container ${this._hasError ? 'error' : ''} ${this.disabled ? 'disabled' : ''}\"\n style=\"${formStyles}\"\n >\n ${this.renderLabelContainer()}\n\n <div class=\"input-wrapper ${this._hasError ? 'error' : ''} ${this.disabled ? 'disabled' : ''}\">\n ${this._isPrefix\n ? html`\n <span class=\"fixed-prefix\">${this._fixedPrefix}</span>\n <div class=\"divider\"></div>\n `\n : nothing\n }\n \n <input\n class=\"user-input\"\n type=\"text\"\n placeholder=${this._placeholder}\n .value=${this._inputValue}\n ?disabled=${this.disabled}\n @keydown=${this._handleKeyDown}\n @input=${this._handleInputOrPaste}\n inputmode=${this.platform === 'google' ? 'email' : 'url'}\n maxlength=${allowedChars > 0 ? allowedChars : nothing}\n />\n\n ${this._isSuffix\n ? html`\n <div class=\"divider\"></div>\n <span class=\"fixed-prefix\">${this._fixedPrefix}</span>\n `\n : nothing\n }\n </div> \n\n ${this.renderHelper()} \n\n ${this._hasError\n ? html`\n <div class=\"error-message\">\n ${this._errorMessageToDisplay}\n </div>\n `\n : nothing\n }\n </div>\n `;\n }\n\n /**\n * Override renderHelper to use custom helper text\n */\n public renderHelper() {\n const helperText = this.helper || 'pegá la URL completa o sólo tu usuario';\n const helperInlineStyles = `text-align: ${this.helperAlign ?? 'left'};`;\n\n return html`\n ${helperText\n ? html`\n <p \n class=\"helper-description\"\n style=${helperInlineStyles}\n >\n ${helperText}\n </p>\n `\n : nothing\n }\n `;\n }\n /**\n * Angular: Escribe el valor en el componente\n */\n public writeValue(value: unknown): void {\n if (value && typeof value === 'string') {\n const extractedUsername = this._extractUsernameFromValue(value);\n if (extractedUsername !== this._inputValue) {\n this._inputValue = extractedUsername;\n this.value = value;\n this.requestUpdate();\n }\n } else if (!value) {\n this._inputValue = '';\n this.value = '';\n this.requestUpdate();\n }\n }\n\n /**\n * Angular: Registra el callback para cambios\n */\n public registerOnChange(fn: (value: any) => void): void {\n this._onChangeFn = fn;\n }\n\n /**\n * Angular: Registra el callback para blur (touched)\n */\n public registerOnTouched(fn: () => void): void {\n this._onTouchedFn = fn;\n }\n\n /**\n * Angular: Configura el estado disabled del componente\n */\n public setDisabledState(isDisabled: boolean): void {\n this.disabled = isDisabled;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'randstad-social-input': RandstadSocialMediaInput;\n }\n}","import { LitElement, html, css } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\nimport { bodyM } from '../styles/fontStyles';\r\n\r\n@customElement('randstad-notice')\r\nexport class RandstadNotice extends LitElement {\r\n @property({ type: String }) type: string = 'informative';\r\n @property({ type: String }) icon: string = 'info';\r\n @property({ type: String }) message: string = 'Este es un mensaje.';\r\n @property({ type: Boolean }) open: boolean = false;\r\n\r\n static styles = css`\r\n :host {\r\n display: block;\r\n font-family: 'Graphik', sans-serif;\r\n }\r\n\r\n .container {\r\n ${bodyM}\r\n display: flex;\r\n align-items: flex-start;\r\n gap: 8px;\r\n border-radius: 8px;\r\n padding: 16px;\r\n color: var(--secondary-color);\r\n }\r\n\r\n .icon {\r\n font-size: 34px;\r\n flex-shrink: 0;\r\n }\r\n\r\n .hidden {\r\n display: none;\r\n }\r\n\r\n .success {\r\n border: 1px solid var(--ui-positive);\r\n background: var(--ui-positive-5);\r\n --icon-color: var(--ui-positive);\r\n }\r\n\r\n .error {\r\n border: 1px solid var(--ui-negative);\r\n background: var(--ui-negative-5);\r\n --icon-color: var(--ui-negative);\r\n }\r\n\r\n .warning {\r\n border: 1px solid var(--ui-warning);\r\n background: var(--ui-warning-10);\r\n --icon-color: var(--ui-warning);\r\n }\r\n \r\n .informative {\r\n border: 1px solid var(--ui-informative);\r\n background: var(--ui-informative-10);\r\n --icon-color: var(--ui-informative);\r\n }\r\n `;\r\n\r\n public render() {\r\n return html`\r\n <div class=\"container ${ this.open ? '' : 'hidden' } ${ this.type }\">\r\n <randstad-icon\r\n name=\"${ this.icon }\"\r\n >\r\n </randstad-icon>\r\n\r\n <span class=\"message\">${ this.message }</span>\r\n </div>\r\n `;\r\n }\r\n}","import { LitElement, html, css, nothing } from 'lit';\r\nimport { customElement, property, state } from 'lit/decorators.js';\r\nimport { titleS, bodyM } from '../styles/fontStyles';\r\nimport { scrollbarStyles } from '../styles/scrollbar';\r\nimport { focusStyles } from '../styles/focus';\r\n\r\nimport '../components/Notice';\r\nimport '../components/Button';\r\n\r\n@customElement('custom-modal')\r\nexport class CustomModal extends LitElement {\r\n @property({ type: Boolean, reflect: true }) open = false;\r\n\r\n @property({ type: String }) title = 'Título del modal';\r\n @property({ type: String }) subtitle?: string;\r\n\r\n @property({ type: Boolean }) showNotice = false;\r\n @property({ type: String }) noticeType: 'success' | 'error' | 'warning' | 'informative' = 'informative';\r\n @property({ type: String }) noticeMessage = '';\r\n @property({ type: String }) noticeIcon = 'info';\r\n\r\n @property({ type: Boolean }) showPrimaryButton = false;\r\n @property({ type: String }) primaryButtonLabel = 'Aceptar';\r\n\r\n @property({ type: Boolean }) showSecondaryButton = false;\r\n @property({ type: String }) secondaryButtonLabel = 'Cancelar';\r\n\r\n @property({ type: Boolean }) isFooterCustom = false;\r\n @property({ type: Boolean }) isPrimaryLoader = false;\r\n @property({ type: Boolean }) isPrimaryDisabled = false;\r\n\r\n @property({ type: String }) modalWidth = '500px';\r\n @property({ type: String }) modalHeight = '80dvh';\r\n @property({ type: String }) maxHeight = '90dvh';\r\n\r\n @property({ type: Boolean }) hideFooter = false;\r\n\r\n @property({ type: String }) paddingModalBody?: string;\r\n\r\n @state() private scrollable = false;\r\n @state() private hasDropdownOpen = false;\r\n @state() private hasCalendarOpen = false;\r\n\r\n static styles = [ \r\n scrollbarStyles,\r\n css`\r\n ${ focusStyles }\r\n \r\n :host {\r\n font-family: 'Graphik', sans-serif;\r\n display: none;\r\n --modal-body-padding: 24px;\r\n }\r\n\r\n :host([open]) {\r\n display: block;\r\n z-index: 9999;\r\n }\r\n\r\n .overlay {\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n z-index: 9999;\r\n display: flex;\r\n background: rgba(15, 25, 65, 0.4);\r\n justify-content: center;\r\n align-items: center;\r\n }\r\n\r\n .modal {\r\n width: 100%;\r\n height: var(--modal-height);\r\n max-height: var(--modal-max-height);\r\n background: var(--brand-off-white);\r\n max-width: var(--modal-width);\r\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\r\n display: flex;\r\n flex-direction: column;\r\n border-radius: 8px;\r\n overflow: hidden;\r\n }\r\n\r\n .modal-body {\r\n overflow-y: auto;\r\n flex: 1;\r\n }\r\n\r\n .modal-footer {\r\n justify-content: flex-end;\r\n }\r\n\r\n .modal-footer.one-button randstad-button {\r\n width: 100%;\r\n }\r\n\r\n .modal-footer.two-buttons randstad-button {\r\n width: 50%;\r\n }\r\n\r\n /* Estilos para dispositivos pequeños (<= 940px) */\r\n @media (max-width: 940px) {\r\n .modal {\r\n /* Se estira para ocupar casi toda la pantalla */\r\n width: 100% !important; \r\n height: 100% !important;\r\n max-width: none !important;\r\n max-height: none !important;\r\n margin: 0 !important;\r\n border-radius: 0 !important;\r\n }\r\n\r\n .modal-header,\r\n .modal-body,\r\n .modal-footer {\r\n padding: 0; \r\n }\r\n }\r\n\r\n /* Estilos comunes a ambos tamaños de pantalla */\r\n .modal-header {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n justify-content: space-between;\r\n align-items: center;\r\n padding: 16px;\r\n border-bottom: 1px solid var(--secondary-color-20);\r\n }\r\n\r\n .modal-header-content {\r\n display: flex;\r\n gap: 32px;\r\n width: 100%;\r\n justify-content: space-between;\r\n align-items: center;\r\n }\r\n\r\n .titles-container {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n flex-grow: 1;\r\n }\r\n\r\n .modal-title {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n ${ titleS }\r\n font-style: regular;\r\n font-size: 24px;\r\n line-height: 32px;\r\n letter-spacing: -1px;\r\n margin: 0;\r\n color: var(--secondary-color);\r\n }\r\n\r\n .modal-subtitle {\r\n ${ bodyM }\r\n margin: 0;\r\n color: var(--secondary-color-60);\r\n }\r\n\r\n .modal-header randstad-notice {\r\n width: 100%;\r\n }\r\n\r\n .modal-close {\r\n background: none;\r\n border: none;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding: 0;\r\n width: 40px;\r\n height: 40px;\r\n border-radius: 50%;\r\n transition: background-color 0.2s ease;\r\n }\r\n\r\n .modal-close:hover {\r\n background-color: var(--primary-color-10);\r\n }\r\n\r\n .modal-body {\r\n display: flex;\r\n flex-direction: column;\r\n padding: var(--modal-body-padding, 24px);\r\n gap: 16px;\r\n }\r\n\r\n slot[name=\"content\"].has-dropdown-open {\r\n display: block;\r\n padding-bottom: 40px;\r\n }\r\n\r\n slot[name=\"content\"].has-calendar-open {\r\n display: block;\r\n /* Solo aplica el padding del calendario, no suma el del dropdown */\r\n padding-bottom: 160px;\r\n }\r\n\r\n /* Si ambos están abiertos, prioridad al calendario (160px) */\r\n slot[name=\"content\"].has-dropdown-open.has-calendar-open {\r\n padding-bottom: 160px;\r\n }\r\n\r\n .modal-footer {\r\n display: flex;\r\n padding: 24px;\r\n gap: 16px;\r\n border-top: 1px solid var(--secondary-color-20);\r\n }\r\n\r\n @media ( max-width: 940px ) {\r\n .modal-close:hover {\r\n background-color: transparent;\r\n }\r\n }\r\n `\r\n ];\r\n\r\n private closeModal() {\r\n this.dispatchEvent(new CustomEvent('modal-close'));\r\n }\r\n\r\n public connectedCallback() {\r\n super.connectedCallback();\r\n this.setScrollableMode();\r\n window.addEventListener('resize', this.setScrollableMode);\r\n this.addEventListener('dropdown-toggle', this.handleDropdownOpen as EventListener);\r\n this.addEventListener('calendar-toggle', this.handleDropdownOpen as EventListener);\r\n this.addEventListener('dropdown-toggle-calendar', this.handleCalendarOpen as EventListener);\r\n }\r\n\r\n public disconnectedCallback() {\r\n super.disconnectedCallback();\r\n window.removeEventListener('resize', this.setScrollableMode);\r\n this.removeEventListener('dropdown-toggle', this.handleDropdownOpen as EventListener);\r\n this.removeEventListener('calendar-toggle', this.handleDropdownOpen as EventListener);\r\n this.removeEventListener('dropdown-toggle-calendar', this.handleCalendarOpen as EventListener);\r\n }\r\n\r\n private handleDropdownOpen = (e: Event) => {\r\n const detail = (e as CustomEvent).detail;\r\n if (detail && typeof detail.open === 'boolean') {\r\n this.hasDropdownOpen = detail.open;\r\n } else {\r\n this.hasDropdownOpen = true;\r\n }\r\n };\r\n\r\n private handleCalendarOpen = (e: Event) => {\r\n const detail = (e as CustomEvent).detail;\r\n if (detail && typeof detail.open === 'boolean') {\r\n this.hasCalendarOpen = detail.open;\r\n } else {\r\n this.hasCalendarOpen = true;\r\n }\r\n };\r\n\r\n private setScrollableMode = () => {\r\n this.scrollable = window.innerWidth > 940;\r\n };\r\n\r\n private getFooterClass(): string {\r\n if ( this.isFooterCustom && !this.showPrimaryButton && !this.showSecondaryButton )\r\n return 'footer-custom';\r\n \r\n if ( this.showPrimaryButton && this.showSecondaryButton )\r\n return 'two-buttons';\r\n\r\n return 'one-button';\r\n }\r\n\r\n public render() {\r\n return html`\r\n <div class=\"overlay\" role=\"dialog\" aria-modal=\"true\">\r\n <div class=\"modal\" style=\"--modal-width: ${ this.modalWidth }; --modal-height: ${ this.modalHeight }; --modal-max-height: ${ this.maxHeight };\">\r\n <div class=\"modal-header\">\r\n <div class=\"modal-header-content\">\r\n <div class=\"titles-container\">\r\n <div class=\"modal-title\">${ this.title }\r\n <button class=\"modal-close\" @click=${ this.closeModal } aria-label=\"Cerrar modal\">\r\n <randstad-icon\r\n name=\"close\"\r\n size=\"24\"\r\n .color=${ 'var( --primary-color )' }\r\n >\r\n </randstad-icon>\r\n </button>\r\n </div>\r\n \r\n ${ this.subtitle\r\n ? html`<div class=\"modal-subtitle\">${ this.subtitle }</div>`\r\n : nothing\r\n }\r\n </div> \r\n </div>\r\n\r\n ${this.showNotice\r\n ? html`\r\n <randstad-notice\r\n .open=${true}\r\n .type=${this.noticeType}\r\n .icon=${this.noticeIcon}\r\n .message=${this.noticeMessage}\r\n >\r\n </randstad-notice>\r\n `\r\n : nothing\r\n }\r\n </div>\r\n\r\n <div class=\"modal-body ${this.scrollable ? 'scrollable' : ''}\">\r\n <slot name=\"content\" class=\"${this.hasDropdownOpen ? 'has-dropdown-open' : ''} ${this.hasCalendarOpen ? 'has-calendar-open' : ''}\"></slot>\r\n </div>\r\n \r\n ${!this.hideFooter\r\n ? html`\r\n <div class=\"modal-footer ${ this.getFooterClass() }\">\r\n ${ this.isFooterCustom && !this.showPrimaryButton && !this.showSecondaryButton\r\n ? html` <slot name=\"footer-custom\"></slot> `\r\n : nothing\r\n }\r\n\r\n ${ this.showSecondaryButton\r\n ? html`\r\n <randstad-button\r\n variant=\"button-secondary\"\r\n size=\"md\"\r\n @click=${() => this.dispatchEvent(new CustomEvent('secondary-click'))}\r\n label=${this.secondaryButtonLabel}\r\n >\r\n </randstad-button>\r\n `\r\n : nothing\r\n }\r\n ${ this.showPrimaryButton\r\n ? html`\r\n <randstad-button\r\n variant=\"button-primary\"\r\n size=\"md\"\r\n @click=${() => this.dispatchEvent(new CustomEvent('primary-click'))}\r\n label=${this.primaryButtonLabel}\r\n .loader=${this.isPrimaryLoader}\r\n .disabled=${this.isPrimaryDisabled}\r\n >\r\n </randstad-button>\r\n `\r\n : nothing\r\n }\r\n </div>\r\n `\r\n : nothing\r\n }\r\n </div>\r\n </div>\r\n `;\r\n }\r\n}","import { LitElement, html, css, nothing } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\nimport { titleXS, bodyM, titleXXS } from '../styles/fontStyles';\r\nimport '../components/Button';\r\nimport '../components/Icon';\r\n\r\ninterface PopupAction {\r\n icon: string;\r\n iconColor: string;\r\n label: string;\r\n value: string;\r\n}\r\n\r\n@customElement('custom-popup')\r\nexport class CustomPopup extends LitElement {\r\n @property({ type: Boolean, reflect: true }) open = false;\r\n @property({ type: String }) type: 'default' | 'stacked' | 'other' = 'default';\r\n @property({ type: String }) icon = 'warning';\r\n @property({ type: String }) iconColor = 'var(--primary-color)'\r\n\r\n @property({ type: String }) title = '';\r\n @property({ type: String }) description = '';\r\n @property({ type: String }) width = '400px';\r\n @property({ type: String }) height = '';\r\n\r\n @property({ type: String }) buttonText = 'Aceptar';\r\n @property({ type: String }) confirmText = 'Sí';\r\n @property({ type: String }) cancelText = 'No';\r\n\r\n @property({ type: Boolean }) closeOnOutsideClick = false;\r\n\r\n @property({ type: Array }) stackedActions: PopupAction[] = [];\r\n\r\n\r\n static styles = css`\r\n :host {\r\n display: none;\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n background: rgba(0, 0, 0, 0.5);\r\n justify-content: center;\r\n align-items: center;\r\n font-family: \"Graphik\", sans-serif;\r\n }\r\n\r\n :host([open]) {\r\n display: flex;\r\n }\r\n\r\n @media (max-width:500px){\r\n .popup {\r\n width: 100%;\r\n margin: 0px 25px;\r\n }\r\n }\r\n @media (min-width:501px){\r\n .popup {\r\n width: var(--popup-width, 358px);\r\n min-height: var(--popup-height, auto);\r\n }\r\n }\r\n\r\n .popup {\r\n background: var(--white);\r\n padding: 24px;\r\n border-radius: 16px;\r\n text-align: center;\r\n animation: fadeIn 0.2s ease-in-out;\r\n display: flex;\r\n flex-direction: column;\r\n gap: 24px;\r\n align-items: center;\r\n box-sizing: border-box;\r\n width: var(--popup-width, 358px);\r\n height: var(--popup-height, auto);\r\n }\r\n\r\n @keyframes fadeIn {\r\n from { opacity: 0; transform: scale(0.9); }\r\n to { opacity: 1; transform: scale(1); }\r\n }\r\n\r\n .popup-content {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 24px;\r\n width: 100%;\r\n }\r\n\r\n .titles-container {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n align-items: center;\r\n }\r\n\r\n .popup-title {\r\n ${titleXS}\r\n margin: 0;\r\n color: var(--secondary-color-80);\r\n }\r\n\r\n .popup-description {\r\n ${bodyM}\r\n margin: 0;\r\n color: var(--secondary-color-60);\r\n }\r\n\r\n .buttons-container {\r\n margin-top: 12px;\r\n display: flex;\r\n gap: 10px;\r\n }\r\n\r\n .buttons-container ::slotted(randstad-button),\r\n .buttons-container randstad-button {\r\n flex: 1 1 50%;\r\n }\r\n\r\n :host([type=\"stacked\"]) .buttons-container {\r\n flex-direction: column;\r\n gap: 12px;\r\n }\r\n\r\n .popup-actions {\r\n display: flex;\r\n flex-direction: column;\r\n width: 100%;\r\n }\r\n\r\n .action-item {\r\n ${titleXXS};\r\n display: flex;\r\n align-items: center;\r\n gap: 16px;\r\n cursor: pointer;\r\n color: var(--secondary-color);\r\n padding: 16px;\r\n border-radius: 8px;\r\n transition: background 0.2s;\r\n }\r\n\r\n .action-item:hover {\r\n background: var(--secondary-color-10, #f0f4ff);\r\n }\r\n\r\n .icon-circle {\r\n width: 32px;\r\n height: 32px;\r\n background: rgb(from var(--icon-color) r g b / 0.2);\r\n border-radius: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n }\r\n\r\n `;\r\n\r\n firstUpdated() {\r\n if (this.open) {\r\n const button = this.renderRoot.querySelector('randstad-button');\r\n if (button) (button as HTMLElement).focus();\r\n }\r\n this.addEventListener('click', this._onBackgroundClick);\r\n }\r\n\r\n private _onBackgroundClick = (event: MouseEvent) => {\r\n if (!this.closeOnOutsideClick) return;\r\n\r\n const path = event.composedPath();\r\n const popupContainer = this.renderRoot.querySelector('.popup');\r\n\r\n if (popupContainer && !path.includes(popupContainer)) {\r\n this.dispatchEvent(new CustomEvent('popup-close', { detail: null }));\r\n this.open = false;\r\n }\r\n };\r\n\r\n disconnectedCallback(): void {\r\n super.disconnectedCallback();\r\n this.removeEventListener('click', this._onBackgroundClick);\r\n }\r\n\r\n closePopup(response: boolean | string) {\r\n this.dispatchEvent(new CustomEvent('popup-close', { detail: response }));\r\n this.open = false;\r\n }\r\n\r\n render() {\r\n const popupStyle = this.width || this.height\r\n ? `--popup-width: ${this.width || '400px'}; --popup-height: ${this.height || 'auto'};`\r\n : '';\r\n\r\n return html`\r\n <div\r\n class=\"popup\"\r\n role=\"dialog\"\r\n aria-modal=\"true\"\r\n style=\"${popupStyle}\"\r\n ${this.type !== 'default' ? html`aria-labelledby=\"popup-title\"` : nothing}\r\n aria-describedby=\"popup-description\"\r\n >\r\n ${this.type !== 'stacked' && this.icon\r\n ? html`<randstad-icon name=${this.icon} size=\"56px\" color=${this.iconColor} />`\r\n : nothing}\r\n\r\n <div class=\"popup-content\">\r\n ${this.type === 'default'\r\n ? html`\r\n ${ this.title ? html`<h2 id=\"popup-title\" class=\"popup-title\">${this.title}</h2>` : nothing }\r\n\r\n ${ this.description\r\n ? html`<p id=\"popup-description\" class=\"popup-description\">${this.description}</p>`\r\n : nothing\r\n }\r\n\r\n <div class=\"buttons-container\">\r\n <randstad-button\r\n variant=\"button-primary\"\r\n size=\"md\"\r\n @click=${() => this.closePopup(true)}\r\n label=${this.buttonText}\r\n ></randstad-button>\r\n </div>\r\n `\r\n : this.type === 'stacked'\r\n ? html`\r\n <div class=\"popup-actions\">\r\n ${this.stackedActions.map(\r\n action => html`\r\n <div\r\n class=\"action-item\"\r\n @click=${() => this.closePopup(action.value)}\r\n >\r\n <div class=\"icon-circle\" style=\"--icon-color:${action.iconColor}\">\r\n <randstad-icon\r\n name=${action.icon}\r\n size=\"24px\"\r\n color=${action.iconColor}\r\n >\r\n </randstad-icon>\r\n </div>\r\n <span>${action.label}</span>\r\n </div>\r\n `\r\n )}\r\n </div>\r\n `\r\n : html`\r\n <div class=\"titles-container\">\r\n <h2 id=\"popup-title\" class=\"popup-title\">${this.title}</h2>\r\n\r\n ${ this.description\r\n ? html`<p id=\"popup-description\" class=\"popup-description\">${this.description}</p>`\r\n : nothing\r\n }\r\n </div>\r\n\r\n <div class=\"buttons-container\">\r\n <randstad-button\r\n variant=\"button-secondary\"\r\n size=\"md\"\r\n @click=${() => this.closePopup(false)}\r\n label=${this.cancelText}\r\n >\r\n </randstad-button>\r\n\r\n <randstad-button\r\n variant=\"button-primary\"\r\n size=\"md\"\r\n @click=${() => this.closePopup(true)}\r\n label=${this.confirmText}\r\n >\r\n </randstad-button>\r\n </div>\r\n `\r\n }\r\n </div>\r\n </div>\r\n `;\r\n }\r\n\r\n}\r\n","import { LitElement, html, css } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\nimport { bodyXS } from '../styles/fontStyles';\r\n\r\n@customElement('progress-circle')\r\nexport class ProgressCircle extends LitElement {\r\n @property({ type: Number }) value = 0;\r\n @property({ type: Number }) max = 5;\r\n\r\n static styles = css`\r\n :host {\r\n display: inline-block;\r\n width: 64px;\r\n height: 64px;\r\n }\r\n\r\n svg {\r\n width: 64px;\r\n height: 64px;\r\n }\r\n\r\n .circle-text {\r\n ${bodyXS};\r\n text-align: center;\r\n vertical-align: middle;\r\n fill: var(--secondary-color-40);\r\n text-anchor: middle;\r\n dominant-baseline: middle;\r\n }\r\n\r\n circle.bg {\r\n stroke: var(--primary-light-blue-20);\r\n }\r\n\r\n circle.fg {\r\n stroke: var(--primary-light-blue);\r\n stroke-linecap: round;\r\n }\r\n `;\r\n\r\n render() {\r\n const strokeWidth = 6;\r\n const radius = 28; // 64/2 - strokeWidth\r\n const circumference = 2 * Math.PI * radius;\r\n\r\n const safeMax = Math.max(this.max, 1);\r\n const progress = Math.min(this.value / safeMax, 1);\r\n const offset = circumference * (1 - progress);\r\n\r\n return html`\r\n <svg\r\n viewBox=\"0 0 64 64\"\r\n role=\"img\"\r\n aria-label=\"Progreso: ${this.value} de ${this.max}\"\r\n >\r\n <!-- Fondo -->\r\n <circle\r\n class=\"bg\"\r\n cx=\"32\"\r\n cy=\"32\"\r\n r=\"${radius}\"\r\n stroke-width=\"${strokeWidth}\"\r\n fill=\"none\"\r\n />\r\n <!-- Progreso -->\r\n <circle\r\n class=\"fg\"\r\n cx=\"32\"\r\n cy=\"32\"\r\n r=\"${radius}\"\r\n stroke-width=\"${strokeWidth}\"\r\n fill=\"none\"\r\n stroke-dasharray=\"${circumference}\"\r\n stroke-dashoffset=\"${offset}\"\r\n transform=\"rotate(-90 32 32)\"\r\n />\r\n <!-- Texto -->\r\n <text x=\"32\" y=\"34\" class=\"circle-text\">\r\n ${this.value} de ${this.max}\r\n </text>\r\n </svg>\r\n `;\r\n }\r\n}\r\n","import { html, css, LitElement } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\n\r\n@customElement('custom-radio')\r\nexport class CustomRadio extends LitElement {\r\n @property({ type: String }) name = '';\r\n @property({ type: Boolean }) checked = false;\r\n @property({ type: Boolean }) disabled = false;\r\n @property({ type: Boolean }) error = false;\r\n\r\n @property({ type: String }) label = ''; \r\n @property({ type: String }) value = ''; \r\n\r\n static styles = css`\r\n :host {\r\n font-family: \"Graphik\", sans-serif;\r\n\r\n --focus-color: var( --primary-color, #2175D9 );\r\n --error-focus-color: var( --ui-negative, #E00F0F );\r\n --disabled-focus-color: var( --secondary-color-20, #CFD1D9 );\r\n --disabled-checked-dot-color: var( --secondary-color-40, #9FA3B3 ); \r\n }\r\n\r\n /* Base styles */\r\n .radio-container {\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n cursor: pointer;\r\n outline: none; \r\n }\r\n \r\n .radio-circle {\r\n width: 24px;\r\n height: 24px;\r\n border-radius: 50%;\r\n box-sizing: border-box;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n transition: all 0.2s ease-in-out, box-shadow 0.15s ease-in-out; \r\n }\r\n\r\n .radio-dot {\r\n width: 10px;\r\n height: 10px;\r\n border-radius: 50%;\r\n background-color: transparent;\r\n transition: background-color 0.2s ease-in-out;\r\n }\r\n\r\n .radio-circle {\r\n background-color: var( --white, #FFFFFF );\r\n border: 1px solid rgba(207, 209, 217, 1);\r\n }\r\n /* */\r\n\r\n /* Checked styles */\r\n .radio-container.checked .radio-circle {\r\n background-color: var( --primary-color, #2175D9 );\r\n border: 1px solid var( --primary-color, #2175D9 );\r\n }\r\n\r\n .radio-container.checked .radio-dot {\r\n background-color: var( --white, #FFFFFF );\r\n }\r\n /* */\r\n \r\n /* Hover/Focus General */\r\n .radio-container:not(.disabled):hover:not(:focus-visible) .radio-circle { \r\n box-shadow: 0 0 0 4px var( --secondary-color-10, #E7E8EC );\r\n }\r\n\r\n .radio-container:focus-visible .radio-circle {\r\n box-shadow: 0 0 0 2px var( --white, #FFFFFF ), 0 0 0 5px var( --focus-color );\r\n border: 1px solid var( --primary-color, #2175D9 );\r\n }\r\n \r\n .radio-container:not(.checked):focus-visible .radio-circle {\r\n border: 1px solid rgba( 207, 209, 217, 1 );\r\n }\r\n /* */\r\n\r\n /* Disabled styles */\r\n .radio-container.disabled {\r\n cursor: default;\r\n color: #9FA3B3;\r\n }\r\n \r\n .radio-container.disabled .radio-circle {\r\n border: 1px solid var( --secondary-color-20, #CFD1D9 );\r\n background-color: var( --secondary-color-20, #CFD1D9 );\r\n box-shadow: none;\r\n }\r\n \r\n .radio-container.disabled:focus-visible .radio-circle {\r\n box-shadow: none;\r\n border: 1px solid var( --secondary-color-20, #CFD1D9 );\r\n }\r\n \r\n .radio-container.checked.disabled .radio-dot {\r\n background-color: #9FA3B3;\r\n }\r\n /* */\r\n\r\n /* Error styles */\r\n .radio-container.error:not(.checked) .radio-circle {\r\n background-color: var( --white, #FFFFFF );\r\n border: 1px solid var( --ui-negative, #E00F0F );\r\n }\r\n\r\n .radio-container.checked.error .radio-circle {\r\n background-color: var( --ui-negative, #E00F0F );\r\n border: 1px solid var( --ui-negative, #E00F0F );\r\n }\r\n\r\n .radio-container.checked.error .radio-dot {\r\n background-color: var( --white, #FFFFFF );\r\n }\r\n \r\n .radio-container.error:focus-visible .radio-circle {\r\n box-shadow: 0 0 0 2px var( --white, #FFFFFF ), 0 0 0 5px var( --error-focus-color ); \r\n }\r\n\r\n .radio-container.error.disabled:not(.checked) .radio-circle {\r\n background-color: var( --secondary-color-20, #CFD1D9 );\r\n border: 1px solid var( --secondary-color-20, #CFD1D9 );\r\n box-shadow: 0 0 0 2px var( --white, #FFFFFF ), 0 0 0 5px var( --disabled-focus-color );\r\n }\r\n \r\n .radio-container.checked.error.disabled .radio-circle {\r\n background-color: var( --secondary-color-20, #CFD1D9 );\r\n border: 1px solid var( --secondary-color-20, #CFD1D9 );\r\n box-shadow: 0 0 0 2px var( --white, #FFFFFF ), 0 0 0 5px var( --disabled-focus-color );\r\n }\r\n \r\n .radio-container.checked.error.disabled .radio-dot {\r\n background-color: var( --white, #FFFFFF );\r\n }\r\n \r\n .radio-container.disabled:focus-visible .radio-circle {\r\n box-shadow: none; \r\n }\r\n /* */ \r\n `;\r\n\r\n private handleSelect() {\r\n if ( this.disabled || this.checked ) return;\r\n this.checked = true; \r\n\r\n this.dispatchEvent( new CustomEvent( 'change', { \r\n detail: { value: this.value },\r\n bubbles: true, \r\n composed: true \r\n } ) );\r\n \r\n this.dispatchEvent( new CustomEvent( 'input', { \r\n detail: { value: this.value },\r\n bubbles: true, \r\n composed: true \r\n } ) );\r\n }\r\n \r\n private handleKeyDown( event: KeyboardEvent ) {\r\n if ( this.disabled ) return;\r\n const { key } = event;\r\n\r\n if ( key === 'Enter' || key === ' ' ) {\r\n event.preventDefault();\r\n this.handleSelect();\r\n }\r\n }\r\n\r\n private handleClick() {\r\n this.handleSelect();\r\n }\r\n\r\n public render() {\r\n const containerClasses = [\r\n 'radio-container',\r\n this.checked ? 'checked' : '',\r\n this.error ? 'error' : '',\r\n this.disabled ? 'disabled' : '',\r\n ].join(' ');\r\n\r\n const fallbackText: string = this.error\r\n ? ` Error ${ this.checked ? 'On' : 'Off' } `\r\n : ` ${ this.checked ? 'On' : 'Off' } `;\r\n\r\n const labelContent: string = this.label || fallbackText;\r\n\r\n return html`\r\n <label \r\n class=${ containerClasses }\r\n @click=${ this.handleClick } \r\n tabindex=${ this.disabled ? '-1' : '0' }\r\n @keydown=${ this.handleKeyDown }\r\n >\r\n <span class=\"radio-circle\">\r\n <span class=\"radio-dot\"></span>\r\n </span>\r\n\r\n <span> ${ labelContent } </span>\r\n </label>\r\n `;\r\n }\r\n}","import { html, css, nothing, TemplateResult } from 'lit';\nimport { customElement, property, query, state } from 'lit/decorators.js';\nimport { BaseControl } from '../helpers/BaseControl';\nimport { bodyL } from '../styles/fontStyles';\nimport { tooltipStyles } from \"../styles/tooltip\";\nimport { mixStyles } from '../styles/mix';\nimport { errorStyles } from '../styles/error';\nimport { scrollbarStyles } from '../styles/scrollbar';\n\ntype SelectOption = string | {\n label: string;\n value: string | object;\n disabled?: boolean;\n icon?: string;\n};\n\ntype FetchFn = (term: string, opts: { signal: AbortSignal }) => Promise<SelectOption[]>;\n\nconst REGEX_NO_EMOJIS = /[\\p{Extended_Pictographic}\\u{FE0F}\\u{1F3FB}-\\u{1F3FF}\\u{1F9B0}-\\u{1F9B3}\\u{200D}]/gu;\n\n@customElement('filterable-select')\nexport class FilterableSelect extends BaseControl {\n @property({ type: Object }) value: string | object = '';\n @property({ type: String, attribute: 'default-value' }) defaultValue = '';\n\n @property({ type: Array }) options: SelectOption[] = [];\n @property({ type: Boolean }) filterable: boolean | undefined;\n\n private get _effectiveFilterable(): boolean {\n const attr = this.getAttribute('filterable');\n if (attr !== null) return attr !== 'false';\n if (this.filterable !== undefined) return this.filterable;\n return this.options.length > 5;\n }\n \n @property({ type: Number }) maxLength?: number;\n\n @property({ type: String }) keydownRegex?: string;\n\n @property({ type: String }) textLabelFilterNotResult: string = '';\n @property({ type: String }) textLabelMobileSearch: string = '';\n\n @property({ type: Boolean }) isRenderClearButton = false;\n @property({ type: Boolean }) sortable = true;\n\n @property({ type: Function }) fetcher?: FetchFn;\n @property({ type: Number }) minSearch: number = 3;\n @property({ type: String }) textLabelLoading: string = 'Cargando...';\n @property({ type: Number, attribute: 'debounce-ms' }) debounceMs: number = 300;\n\n @state() private isMobile: boolean = false;\n @state() private highlightedIndex = -1;\n @state() private _isCleared: boolean = false;\n\n private static _scrollLockCount = 0;\n private static _scrollLockStylesheet: CSSStyleSheet | null = null;\n\n @state() filteredOptions: SelectOption[] = [];\n @state() filterValue = '';\n @state() isOpen = false;\n @state() mobileFilterValue = '';\n\n @state() private showNoResults: boolean = false;\n @state() private _isLoading: boolean = false;\n @property({ type: Boolean, attribute: 'last-element' }) lastElement = false\n private _prevIsMobile: boolean = false;\n private _lastFetchTerm: string | null = null;\n private _fetchedOptions: SelectOption[] = [];\n\n @query('.mobile-modal .filter-input')\n public mobileInputRef!: HTMLInputElement;\n\n @query('.filter-input')\n private _desktopInput!: HTMLInputElement;\n\n @query('.filter-fake')\n private _desktopFake!: HTMLElement;\n\n @query('.icon-button')\n private _iconButton!: HTMLButtonElement;\n\n @query('.options-list')\n private _optionsList!: HTMLUListElement;\n\n private debounceTimeout: number | null = null;\n private _abortController: AbortController | null = null;\n private _boundHandleClickOutside = this.handleClickOutside.bind(this);\n\n static styles = [\n scrollbarStyles,\n css`\n ${mixStyles}\n ${errorStyles}\n ${tooltipStyles}\n\n /* --- Own Error Styles --- */\n :host([error]) .input-container:not(.open) .input-wrapper:hover {\n box-shadow: 0px 0px 0px 4px #E00F0F1A !important;\n }\n\n :host([error]) .input-container.open:not(.mobile) .input-wrapper {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border: 1px solid var(--ui-negative, red) !important;\n border-bottom: 1px solid transparent !important;\n }\n\n :host([error]) .input-container:not(.mobile) .options-list {\n border: 1px solid var(--ui-negative, red) !important;\n border-top: none !important;\n border-radius: 0 0 4px 4px;\n }\n\n /* Estilos para el estado disabled */\n .input-wrapper.disabled .filter-input, .input-wrapper.disabled .filter-fake {\n background-color: var(--secondary-color-10);\n color: #9FA3B3;\n cursor: default;\n }\n\n .input-wrapper.disabled .icon-button,\n .input-wrapper.disabled .icon-button randstad-icon,\n .input-wrapper.disabled .icon-button .close-icon {\n color: #9FA3B3;\n cursor: default;\n --icon-color: var(--secondary-color-40, #9FA3B3) !important;\n }\n\n /* Y si tienes un icono seleccionado que también debe cambiar de color */\n .input-wrapper.disabled .icon-selected svg {\n fill: #9FA3B3;\n }\n\n .input-wrapper .icon-button .close-icon {\n color: var(--primary-color);\n }\n\n .select-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n }\n\n .input-container.focused:not(.open):not(.mobile) .input-wrapper {\n border: 1px solid var(--primary-color);\n border-radius: 4px;\n box-shadow: none;\n z-index: 11;\n }\n\n .input-container.focused:not(.open):not(.mobile) .input-wrapper:hover {\n box-shadow: none;\n }\n\n :host(:not([error])) .input-container.open:not(.mobile) {\n border-radius: 4px;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n :host(:not([error])) .input-container.open:not(.mobile) .input-wrapper {\n border: 1px solid var(--primary-color);\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom: 1px solid transparent;\n box-shadow: none;\n z-index: 11;\n }\n\n :host(:not([error])) .input-wrapper:hover {\n box-shadow: 0px 0px 0px 4px #0F19411A;\n }\n\n :host .input-container.open:not(.mobile)::after {\n content: '';\n position: absolute;\n top: calc(100% - 1px);\n left: 20px;\n right: 20px;\n height: 1px;\n background-color: var(--gray-20);\n z-index: 10;\n }\n\n .input-wrapper {\n border: 1px solid var(--secondary-color-10);\n border-radius: 4px;\n overflow: hidden;\n display: flex;\n align-items: center;\n width: 100%;\n transition: box-shadow 0.2s ease-in-out;\n background-color: white;\n }\n\n .mobile-modal .filter-input {\n border-bottom: 1px solid var(--gray-20);\n }\n\n .filter-input {\n ${bodyL};\n padding: 16px;\n padding-right: 40px;\n border: none;\n outline: none;\n width: 100%;\n box-sizing: border-box;\n background: white;\n cursor: pointer;\n color: var(--secondary-color);\n flex-grow: 1;\n }\n\n .filter-input,\n .filter-fake,\n .input-wrapper,\n .mobile-modal {\n -webkit-tap-highlight-color: transparent !important;\n caret-color: var( --primary-color ) !important;\n }\n\n .filter-input::placeholder {\n ${bodyL};\n color: var( --filter-text-color, var( --secondary-color-40 ) ); \n }\n \n .filter-input:-webkit-autofill,\n .filter-input:-webkit-autofill:hover,\n .filter-input:-webkit-autofill:focus,\n .filter-input:-webkit-autofill:active {\n -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;\n -webkit-text-fill-color: var(--secondary-color);\n transition: background-color 5000s ease-in-out 0s;\n }\n\n .icon-button {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n background: transparent;\n border: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n transition: background-color 0.2s ease;\n padding: 0;\n }\n\n .input-wrapper:not(.disabled) .icon-button:hover {\n background-color: var(--primary-color-10);\n }\n\n randstad-icon {\n width: 24px;\n height: 24px;\n color: var(--primary-color);\n }\n\n .options-list {\n width: 100%;\n position: absolute;\n top: 99%;\n left: 0;\n right: 0;\n max-height: 200px;\n overflow-y: auto;\n border: 1px solid var(--primary-color);\n border-top: none;\n border-radius: 0 0 4px 4px;\n background: white;\n list-style: none;\n margin: 0;\n padding: 0;\n z-index: 10;\n }\n\n .options-list li {\n ${bodyL};\n padding: 8px 16px 8px 16px;\n color: var(--secondary-color-80);\n display: flex;\n align-items: center;\n }\n\n .options-list li:not(.state-item) {\n cursor: pointer;\n }\n\n .options-list li.highlighted {\n background-color: var(--primary-color-10);\n }\n\n .options-list li:not(.state-item):hover,\n .options-list li.highlighted:not(.state-item):hover {\n background-color: #D3E3F7; \n }\n\n .mobile-modal {\n position: fixed;\n top: 20dvh;\n width:100%;\n bottom: 0;\n background-color: white;\n z-index: 1000;\n border-radius: 12px 12px 0 0;\n box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);\n display: flex;\n flex-direction: column;\n padding: 0px;\n animation: slideUp 0.5s ease-out;\n min-height: 80dvh;\n overflow-y: auto;\n }\n\n .mobile-modal .options-list {\n position: static;\n max-height: none;\n border: none;\n box-shadow: none;\n }\n\n .mobile-modal .modal-input-container {\n position: relative;\n }\n\n .mobile-modal .modal-input-container input::placeholder {\n ${bodyL}\n color: rgba( 159, 163, 179, 1 );\n }\n\n .mobile-modal .modal-close-button {\n position: absolute;\n top: 50%;\n right: 12px;\n transform: translateY(-50%);\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .mobile-modal .no-results-icon {\n position: absolute;\n top: 50%;\n right: 48px;\n transform: translateY( -50% );\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 4px; \n }\n\n .mobile-modal .modal-close-button randstad-icon, .mobile-modal randstad-icon.no-results-icon {\n width: 24px;\n height: 24px;\n }\n\n .mobile-modal .modal-close-button randstad-icon {\n color: var( --primary-color );\n }\n\n .mobile-modal randstad-icon.no-results-icon {\n color: var( --ui-negative );\n }\n\n .no-results-icon {\n position: absolute;\n right: 44px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 4px;\n color: var(--ui-negative);\n }\n\n .mobile-backdrop {\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.4);\n z-index: 999;\n display: flex;\n align-items: flex-end;\n }\n\n .filter-fake {\n ${bodyL};\n padding: 15px;\n padding-right: 40px;\n width: 100%;\n background: white;\n box-sizing: border-box;\n cursor: pointer;\n color: var( --filter-text-color, var( --secondary-color-80 ) ); \n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: flex;\n align-items: center;\n }\n\n .filter-fake span {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n @keyframes slideUp {\n from {\n transform: translateY(100%);\n }\n to {\n transform: translateY(0);\n }\n }\n\n /* Estilos por defecto del icon para mobile */\n .icon-selected {\n width: 24px;\n height: auto;\n margin-left: 4px;\n padding-right: 12px; \n border-right: 1px solid var(--secondary-color-20);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n /*\n * Media query para aplicar estilos de escritorio (a partir de 941px)\n */\n @media (min-width: 941px) {\n .icon-selected {\n /* Estilos de escritorio para el icono, se anulan los de mobile */\n margin-left: 16px;\n padding-right: 18px;\n }\n }\n\n .icon-selected svg,\n .icon-list svg {\n display: block;\n width: 100%;\n height: auto;\n }\n\n .icon-list {\n width: 24px;\n height: auto;\n margin-right: 8px;\n flex-shrink: 0;\n }\n\n .options-list li.state-item {\n ${bodyL}\n cursor: default !important;\n background-color: white !important;\n pointer-events: none;\n color: rgba( 64, 71, 103, 1 );\n text-align: center;\n border-bottom: none !important;\n }\n\n .mobile-modal .options-list li.state-item.mobile-item {\n text-align: center;\n }\n\n @media ( max-width: 940px ) {\n .icon-button:hover {\n background-color: transparent;\n }\n }\n `\n ];\n\n /**\n * Función auxiliar para aplicar/limpiar los estilos de bloqueo.\n */\n private static _ensureScrollLockStyles(): void {\n if (FilterableSelect._scrollLockStylesheet) return;\n FilterableSelect._scrollLockStylesheet = new CSSStyleSheet();\n FilterableSelect._scrollLockStylesheet.replaceSync(`\n .scroll-locked { overflow: hidden !important; }\n `);\n try {\n document.adoptedStyleSheets = [...document.adoptedStyleSheets, FilterableSelect._scrollLockStylesheet];\n } catch {\n const style = document.createElement('style');\n style.textContent = '.scroll-locked { overflow: hidden !important; }';\n document.head.appendChild(style);\n }\n }\n\n private toggleDynamicScrollLock(block: boolean): void {\n const html = document.documentElement;\n\n if (block) {\n FilterableSelect._ensureScrollLockStyles();\n FilterableSelect._scrollLockCount++;\n if (FilterableSelect._scrollLockCount === 1) {\n html.classList.add('scroll-locked');\n const hasScrollBar = html.scrollHeight > html.clientHeight;\n if (hasScrollBar) {\n const scrollBarWidth = window.innerWidth - html.clientWidth;\n html.style.paddingRight = `${scrollBarWidth}px`;\n }\n }\n } else {\n FilterableSelect._scrollLockCount = Math.max(0, FilterableSelect._scrollLockCount - 1);\n if (FilterableSelect._scrollLockCount === 0) {\n html.classList.remove('scroll-locked');\n html.style.paddingRight = '';\n }\n }\n }\n\n // Función para obtener la etiqueta de comparación (label o string completo)\n private getOptionLabel = (option: SelectOption): string => {\n if (typeof option === 'string') return option;\n return option.label;\n };\n\n /**\n * Normaliza un texto eliminando acentos y convertiendo a minúsculas.\n * Ejemplo: \"Abogacía\" → \"abogacia\"\n */\n private normalizeText(text: string): string {\n if (!text) return '';\n return text\n .toLowerCase()\n .normalize('NFD')\n .replace(/[\\u0300-\\u036f]/g, '');\n }\n\n private sortOptions(a: SelectOption, b: SelectOption, searchTerm: string | undefined): number {\n\n // Función para obtener el 'value' como string (o vacío si es objeto no string)\n const getOptionValueAsString = (option: SelectOption): string => {\n if (typeof option === 'string') return option;\n\n // Si es objeto, y el 'value' es string, lo usamos.\n if (typeof option.value === 'string') return option.value;\n\n // Si el 'value' es object (ej. el valor real).\n return '';\n };\n\n const labelA = this.getOptionLabel(a);\n const labelB = this.getOptionLabel(b);\n\n const stringA = this.normalizeText(labelA);\n const stringB = this.normalizeText(labelB);\n\n // Prioridad por coincidencia de inicio con el término de búsqueda\n if (searchTerm && searchTerm.length > 0) {\n const normalizedSearchTerm = this.normalizeText(searchTerm);\n\n const aStartsWith = stringA.startsWith(normalizedSearchTerm);\n const bStartsWith = stringB.startsWith(normalizedSearchTerm);\n\n // Si A comienza y B no, A va primero.\n if (aStartsWith && !bStartsWith) return -1;\n // Si B comienza y A no, B va primero.\n if (!aStartsWith && bStartsWith) return 1;\n }\n\n // Caso Numero País: \"+54\" debe ir primero.\n const valueStringA = getOptionValueAsString(a);\n const valueStringB = getOptionValueAsString(b);\n\n if (valueStringA === '+54') return -1; // 'a' va antes de 'b'\n if (valueStringB === '+54') return 1; // 'b' va antes de 'a'\n\n // Si ambos son '+54', el orden es 0 (iguales).\n if (valueStringA === '+54' && valueStringB === '+54') return 0;\n\n // Intento de Extracción y Comparación Numérica (para \"5 km\", \"10 km\", etc.)\n const numMatchA = labelA.match(/^\\d+(\\.\\d+)?/);\n const numMatchB = labelB.match(/^\\d+(\\.\\d+)?/);\n\n const numA = numMatchA ? Number(numMatchA[0]) : NaN;\n const numB = numMatchB ? Number(numMatchB[0]) : NaN;\n\n if (!isNaN(numA) && !isNaN(numB)) {\n return numA - numB;\n }\n\n return labelA.localeCompare(labelB, 'es', { usage: 'sort', sensitivity: 'accent' });\n }\n\n private _computeFilteredOptions(searchTerm: string): SelectOption[] {\n if (!this._effectiveFilterable || !searchTerm || searchTerm.length === 0) {\n const result = this.sortable\n ? [...this.options].sort((a, b) => this.sortOptions(a, b, undefined))\n : [...this.options];\n this.highlightedIndex = -1;\n this.showNoResults = false;\n return result;\n }\n\n const normalizedSearchTerm = this.normalizeText(searchTerm);\n let filteredList = this.options.filter(opt => {\n const label = this.getOptionLabel(opt);\n return this.normalizeText(label).includes(normalizedSearchTerm);\n });\n if (this.sortable) {\n filteredList = filteredList.sort((a, b) => this.sortOptions(a, b, searchTerm));\n }\n this.highlightedIndex = filteredList.length > 0 ? 0 : -1;\n this.showNoResults = filteredList.length === 0;\n return filteredList;\n }\n\n private handleOptionHover(index: number): void {\n if (this.highlightedIndex !== index) {\n this.highlightedIndex = index;\n }\n }\n\n public update(changedProperties: Map<string, any>) {\n if (!this.fetcher) {\n const shouldRunValueLogic: boolean | string = (\n changedProperties.has('defaultValue') ||\n changedProperties.has('options') ||\n (changedProperties.has('value') && this.value)\n ) && !this._isCleared;\n\n if (shouldRunValueLogic) {\n // Usamos this.value primero. Si this.value se limpió a '', no usamos targetValue.\n const targetValue: string | object = this.value || this.defaultValue;\n\n const match: SelectOption | undefined = this.options.find(opt =>\n typeof opt === 'string' ? opt === targetValue : (opt as { value: any }).value === targetValue\n );\n\n if (match) {\n // Solo sincronizamos filterValue con el label si encontramos un match VÁLIDO.\n this.filterValue = typeof match === 'string' ? match : (match as { label: string }).label;\n this.value = typeof match === 'string' ? match : (match as { value: any }).value;\n } else {\n // Si no hay match (ej: el valor ya no existe), lo limpiamos todo.\n // Pero solo si no estamos editando (isOpen = true), para evitar pisotear filterValue del usuario.\n if (!this.isOpen && !this.filterValue) this.filterValue = '';\n else if (!this.isOpen && this.value === '') this.filterValue = '';\n\n this.value = '';\n }\n }\n\n if (this._isCleared && this.value === '') this._isCleared = false;\n }\n\n super.update(changedProperties);\n }\n\n // Método de ciclo de vida de Lit ejecutado antes de la renderización. Úselo para cálculos \n // que pueden actualizar las propiedades reactivas para que no activen otra actualización \n // *después* de la renderización (lo que activaría una advertencia).\n protected willUpdate(changedProperties: Map<string | number | symbol, unknown>): void {\n if (changedProperties.has('keydownRegex')) {\n if (this.keydownRegex) {\n const groups = this.keydownRegex.match(/\\[\\^?[^\\]]+\\]/g);\n const firstGroup = groups?.[0] ?? `[${this.keydownRegex}]`;\n this._firstCharRegex = new RegExp(firstGroup);\n } else {\n this._firstCharRegex = null;\n }\n }\n\n if (this.fetcher) return;\n // Si el usuario cambió el texto del filtro, vuelva a calcular antes de renderizar para que no lo hagamos\n // programar una segunda actualización desde `updated`.\n if (changedProperties.has('filterValue') || changedProperties.has('options')) {\n this.filteredOptions = this._computeFilteredOptions(this.filterValue);\n }\n }\n\n protected updated(changedProperties: Map<string | number | symbol, unknown>): void {\n super.updated(changedProperties as Map<string | number | symbol, unknown>);\n\n if (changedProperties.has('isOpen') && this.isMobile) {\n this.toggleDynamicScrollLock(this.isOpen);\n }\n\n if (this._prevIsMobile && !this.isMobile) {\n this.toggleDynamicScrollLock(false);\n }\n\n this._prevIsMobile = this.isMobile;\n\n const wasClosed: boolean = changedProperties.get('isOpen') === false;\n\n if (this.isMobile && this.isOpen && changedProperties.has('isOpen') && wasClosed) {\n // Usamos updateComplete para esperar a que Lit haya *terminado* de insertar el DOM.\n this.updateComplete.then(() => {\n const mobileInput: HTMLInputElement | undefined = this.mobileInputRef;\n if (!mobileInput) return;\n\n window.setTimeout(() => {\n mobileInput.focus();\n mobileInput.setSelectionRange(mobileInput.value.length, mobileInput.value.length);\n }, 0);\n });\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.updateResponsiveMode();\n window.addEventListener('resize', this.updateResponsiveModeBound);\n document.addEventListener('click', this._boundHandleClickOutside);\n window.addEventListener('overlay-opened', this.handleGlobalOverlayOpen);\n }\n\n disconnectedCallback() {\n window.removeEventListener('resize', this.updateResponsiveModeBound);\n document.removeEventListener('click', this._boundHandleClickOutside);\n window.removeEventListener('overlay-opened', this.handleGlobalOverlayOpen);\n if (this.debounceTimeout) {\n clearTimeout(this.debounceTimeout);\n this.debounceTimeout = null;\n }\n if (this._abortController) {\n this._abortController.abort();\n this._abortController = null;\n }\n if (this.isMobile && this.isOpen) {\n this.toggleDynamicScrollLock(false);\n }\n super.disconnectedCallback();\n }\n\n private handleGlobalOverlayOpen = (e: Event) => {\n const customEvent = e as CustomEvent;\n\n if (customEvent.detail !== this && this.isOpen) {\n this.isOpen = false;\n\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: false },\n bubbles: true,\n composed: true\n }));\n }\n }\n };\n\n private notifyOverlayOpened() {\n window.dispatchEvent(new CustomEvent('overlay-opened', { detail: this }));\n }\n\n private updateResponsiveModeBound = this.updateResponsiveMode.bind(this);\n\n private updateResponsiveMode() {\n this.isMobile = window.innerWidth <= 940;\n }\n\n public handleInputClick(event: Event) {\n if (this.disabled) return;\n\n // En modo async, el clic en escritorio NO abre la lista (el usuario debe tipear para buscar).\n // En mobile, el clic SÍ debe abrir el modal para que el usuario pueda escribir y buscar.\n if (this.fetcher && !this.isMobile) return;\n\n if (!this.isOpen) {\n this.notifyOverlayOpened();\n if (this.fetcher && this.isMobile) {\n this.filteredOptions = [];\n this.showNoResults = false;\n this._isLoading = false;\n\n // Si ya había un valor seleccionado, preservarlo en el input del modal\n // y disparar búsqueda automática si cumple con minSearch (replicando comportamiento desktop).\n if (this.value && this.filterValue) {\n this.mobileFilterValue = this.filterValue;\n if (this.mobileFilterValue.length >= this.minSearch) {\n this._fetchAsyncResults(this.mobileFilterValue);\n }\n } else {\n this.mobileFilterValue = '';\n }\n } else {\n this.filteredOptions = this._computeFilteredOptions('');\n this.showNoResults = false;\n }\n\n // En mobile sync, solo limpiar si no hay valor seleccionado\n if (this.isMobile && !this.fetcher) this.mobileFilterValue = '';\n }\n this.isOpen = !this.isOpen;\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: this.isOpen },\n bubbles: true,\n composed: true\n }));\n }\n\n this.requestUpdate();\n }\n\n public handleInput(event: Event) {\n if (!this._effectiveFilterable) return;\n // Un usuario está escribiendo, por lo tanto, no se ha borrado el campo intencionalmente\n this._isCleared = false;\n\n const target = event.target as HTMLInputElement;\n const value = this._sanitizeInputValue(target.value, target);\n this.filterValue = value;\n\n if (this.fetcher) {\n if (value.length >= this.minSearch) {\n this.isOpen = true;\n this.notifyOverlayOpened();\n this._fetchAsyncResults(value);\n } else {\n this.isOpen = false;\n this.filteredOptions = [];\n this._isLoading = false;\n this.showNoResults = false;\n this._lastFetchTerm = null;\n this._fetchedOptions = [];\n if (this.debounceTimeout) {\n clearTimeout(this.debounceTimeout);\n this.debounceTimeout = null;\n }\n if (this._abortController) {\n this._abortController.abort();\n this._abortController = null;\n }\n }\n\n this.requestUpdate();\n } else {\n this.notifyOverlayOpened();\n this.isOpen = true;\n\n if (value === '') {\n // Si el input está completamente vacío, reseteamos el valor seleccionado\n this._emitEmptySelection();\n this.filteredOptions = this._computeFilteredOptions('');\n this.showNoResults = false;\n }\n\n if (this.debounceTimeout) clearTimeout(this.debounceTimeout);\n\n this.debounceTimeout = window.setTimeout(() => {\n if (this.filterValue.length > 2) {\n this.dispatchEvent(new CustomEvent('filter-location', {\n detail: { value: this.filterValue },\n bubbles: true,\n composed: true\n }));\n }\n }, 300);\n\n this.requestUpdate();\n }\n }\n\n public handleMobileInput(event: Event) {\n this._isCleared = false;\n\n const target = event.target as HTMLInputElement;\n const value = this._sanitizeInputValue(target.value, target);\n this.mobileFilterValue = value;\n\n if (this.fetcher) {\n if (value.length >= this.minSearch) {\n this._fetchAsyncResults(value);\n } else {\n this.filteredOptions = [];\n this._isLoading = false;\n this.showNoResults = false;\n this._lastFetchTerm = null;\n this._fetchedOptions = [];\n if (this.debounceTimeout) {\n clearTimeout(this.debounceTimeout);\n this.debounceTimeout = null;\n }\n if (this._abortController) {\n this._abortController.abort();\n this._abortController = null;\n }\n }\n\n this.requestUpdate();\n } else {\n if (value === '') {\n this._emitEmptySelection();\n this.filteredOptions = this._computeFilteredOptions('');\n this.showNoResults = false;\n } else {\n this.filteredOptions = this._computeFilteredOptions(value);\n }\n\n this.requestUpdate();\n\n if (this.debounceTimeout) clearTimeout(this.debounceTimeout);\n\n this.debounceTimeout = window.setTimeout(() => {\n if (value.length > 2) {\n this.dispatchEvent(new CustomEvent('filter-location', {\n detail: { value },\n bubbles: true,\n composed: true\n }));\n } else if (value.length === 0) {\n this.filteredOptions = this._computeFilteredOptions('');\n }\n }, 300);\n }\n }\n\n public handleSelect(option: SelectOption) {\n // Cuando se selecciona una opción, el campo ya no está \"borrado\"\n this._isCleared = false;\n this.highlightedIndex = -1;\n\n const value = typeof option === 'string' ? option : option.value;\n\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value },\n bubbles: true,\n composed: true\n }));\n\n this.filterValue = typeof option === 'string' ? option : option.label;\n this.value = value;\n this.isOpen = false;\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: false },\n bubbles: true,\n composed: true\n }));\n }\n\n this.mobileFilterValue = this.filterValue;\n // En modo async, preservamos los resultados del fetch (filteredOptions contiene datos reales).\n // En modo sync, restauramos las opciones ordenadas originales.\n if (!this.fetcher) {\n this.filteredOptions = this._computeFilteredOptions('');\n }\n this.showNoResults = false;\n this._lastFetchTerm = null;\n this._fetchedOptions = [];\n\n this.requestUpdate();\n }\n\n public handleIconClick() {\n if (this.disabled) return;\n this.highlightedIndex = -1;\n\n const isShowCleanButton: boolean = this.isRenderClearButton;\n\n const hasStringValue: boolean = typeof this.value === 'string' && this.value !== '';\n const hasObjectValue: boolean = typeof this.value === 'object' && this.value !== null && Object.keys(this.value).length > 0;\n const hasValue: boolean = hasStringValue || hasObjectValue;\n\n if (isShowCleanButton && hasValue) {\n this._emitEmptySelection();\n this.filterValue = '';\n\n this.filteredOptions = this._computeFilteredOptions('');\n this._lastFetchTerm = null;\n this._fetchedOptions = [];\n\n this.isOpen = false;\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: false },\n bubbles: true,\n composed: true\n }));\n }\n } else {\n this.notifyOverlayOpened();\n this.isOpen = !this.isOpen;\n\n if (this.isOpen) {\n this.mobileFilterValue = '';\n this.showNoResults = false;\n this.filteredOptions = this._computeFilteredOptions('');\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: true },\n bubbles: true,\n composed: true\n }));\n }\n this.updateComplete.then(() => {\n if (this.isMobile) return;\n\n this._desktopInput?.focus();\n });\n } else {\n this.mobileFilterValue = '';\n this.filteredOptions = this._computeFilteredOptions('');\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: false },\n bubbles: true,\n composed: true\n }));\n }\n }\n }\n\n this.requestUpdate();\n }\n\n public handleClickOutside(event: Event) {\n const target: EventTarget | null = event.target;\n if (!(target instanceof Node)) return;\n\n if (!this.contains(target) && this.isOpen) {\n\n this.isOpen = false;\n\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: false },\n bubbles: true,\n composed: true\n }));\n }\n this.requestUpdate();\n }\n\n // Solo limpiar el estado mobile cuando el clic fue FUERA del componente.\n // Si el clic fue dentro (ej: filter-fake, opciones), preservar el estado.\n if (this.isMobile && !this.contains(target)) {\n this.mobileFilterValue = '';\n this.filteredOptions = this._computeFilteredOptions('');\n }\n }\n /**\n * Previene que el primer carácter ingresado sea un espacio o carácter especial.\n */\n private preventInvalidStart(event: KeyboardEvent): boolean {\n const target = event.target as HTMLInputElement;\n if (target && target.tagName === 'INPUT' && target.selectionStart === 0 && event.key.length === 1) {\n const isAlphanumeric = this.keydownRegex\n ? this._firstCharRegex?.test(event.key) ?? true\n : /[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]/.test(event.key);\n if (!isAlphanumeric) {\n event.preventDefault();\n return true;\n }\n }\n return false;\n }\n\n /**\n * Aplica una expresión regex personalizada para limitar caracteres permitidos en el input.\n * Replica la lógica de Form.ts: extrae grupos de corchetes y valida carácter por carácter.\n * Si hay 2+ grupos, el primero valida el primer carácter y el segundo el resto.\n * Si hay 1 grupo, se aplica a todos los caracteres.\n */\n private onlyRegex(value: string): string {\n if (!this.keydownRegex) return value;\n\n // 1. Extraer bloques de corchetes (ej: [a-z], [^0-9]).\n // Si no hay corchetes, envolvemos el string recibido.\n let groups = this.keydownRegex.match(/\\[\\^?[^\\]]+\\]/g);\n if (!groups) {\n groups = [`[${this.keydownRegex}]`];\n }\n\n let sanitizedValue = '';\n const isComposite = groups.length >= 2;\n const firstGroup = new RegExp(groups[0]);\n const secondGroup = isComposite ? new RegExp(groups[1]) : firstGroup;\n\n // 2. Procesar carácter por carácter según su posición\n const chars = value.split('');\n for (let i = 0; i < chars.length; i++) {\n const char = chars[i];\n if (i === 0) {\n if (firstGroup.test(char)) sanitizedValue += char;\n } else {\n if (secondGroup.test(char)) sanitizedValue += char;\n }\n }\n\n // 3. Aplicar trim inicial\n return sanitizedValue.trimStart();\n }\n\n /**\n * Previene que el texto pegado comience con un espacio o carácter especial si el cursor está al inicio.\n */\n public handlePaste(event: ClipboardEvent): void {\n const target = event.target as HTMLInputElement;\n if (target && target.tagName === 'INPUT' && target.selectionStart === 0) {\n const selectionStart = target.selectionStart;\n const selectionEnd = target.selectionEnd;\n if (selectionStart === null || selectionEnd === null) return;\n\n event.preventDefault();\n const pasteData = event.clipboardData?.getData('text') || '';\n const sanitizedData = this._sanitize(pasteData, true);\n if (sanitizedData) {\n target.setRangeText(sanitizedData, selectionStart, selectionEnd, 'end');\n target.dispatchEvent(new Event('input', { bubbles: true, composed: true }));\n }\n }\n }\n\n /**\n * Maneja los eventos de teclado cuando el foco está en el input o el filter-fake (combobox).\n */\n public handleKeyDown(event: KeyboardEvent) {\n if (this.preventInvalidStart(event)) return;\n\n const { key } = event;\n const inputElement = this._desktopInput;\n\n if (key === 'Backspace' && this._effectiveFilterable) {\n const currentValue: string = inputElement?.value || '';\n const isSelection: boolean = inputElement && inputElement.selectionStart !== inputElement.selectionEnd;\n\n const willBeEmpty: boolean = currentValue.length === 1 && !isSelection;\n const isAlreadyEmpty: boolean = currentValue.length === 0;\n\n if (this.fetcher) {\n const projectedLength = isAlreadyEmpty ? 0 : currentValue.length - (isSelection ? (inputElement.selectionEnd! - inputElement.selectionStart!) : 1);\n\n if (projectedLength < this.minSearch) {\n this.isOpen = false;\n this.filteredOptions = [];\n this._isLoading = false;\n this.showNoResults = false;\n this._lastFetchTerm = null;\n this._fetchedOptions = [];\n if (this.debounceTimeout) {\n clearTimeout(this.debounceTimeout);\n this.debounceTimeout = null;\n }\n if (this._abortController) {\n this._abortController.abort();\n this._abortController = null;\n }\n this.requestUpdate();\n }\n } else if (willBeEmpty || isAlreadyEmpty) {\n this._emitEmptySelection();\n this.filterValue = '';\n this.filteredOptions = this._computeFilteredOptions('');\n this.isOpen = true;\n\n this.requestUpdate();\n }\n }\n\n // Obtener las opciones filtradas que no estén deshabilitadas\n const enabledOptions: SelectOption[] = this.filteredOptions.filter(option =>\n !(typeof option === 'object' && option.disabled)\n );\n\n // 1. Abrir la lista con Enter/Space cuando está cerrado.\n if (!this.isOpen && (key === 'Enter' || key === ' ')) {\n event.preventDefault();\n this.notifyOverlayOpened();\n this.isOpen = true;\n\n // Inicializa el índice resaltado a la primera opción no deshabilitada\n const firstEnabledIndex: number = this.filteredOptions.findIndex(opt =>\n !(typeof opt === 'object' && opt.disabled)\n );\n\n this.highlightedIndex = firstEnabledIndex !== -1 ? firstEnabledIndex : -1;\n this.requestUpdate();\n\n return;\n }\n\n // 2. Navegación y Acciones cuando la lista está ABIERTA\n if (this.isOpen) {\n if (key === 'ArrowDown') {\n event.preventDefault();\n\n let nextIndex: number = this.highlightedIndex + 1;\n\n // Encontrar el siguiente índice de opción habilitada\n while (nextIndex < this.filteredOptions.length) {\n const option: SelectOption = this.filteredOptions[nextIndex];\n\n if (!(typeof option === 'object' && option.disabled)) {\n this.highlightedIndex = nextIndex;\n break;\n }\n\n nextIndex++;\n }\n\n // Si no se encontró, se queda en la última opción habilitada\n if (nextIndex >= this.filteredOptions.length) {\n if (enabledOptions.length > 0) {\n const lastEnabledOption = enabledOptions[enabledOptions.length - 1];\n this.highlightedIndex = this.filteredOptions.indexOf(lastEnabledOption);\n } else {\n this.highlightedIndex = -1;\n }\n }\n\n this.requestUpdate();\n this.updateComplete.then(() => this.scrollHighlightedIntoView());\n } else if (key === 'ArrowUp') {\n event.preventDefault();\n\n let prevIndex: number = this.highlightedIndex - 1;\n\n // Encontrar el índice de opción habilitada anterior\n while (prevIndex >= 0) {\n const option: SelectOption = this.filteredOptions[prevIndex];\n\n if (!(typeof option === 'object' && option.disabled)) {\n this.highlightedIndex = prevIndex;\n break;\n }\n\n prevIndex--;\n }\n\n // Si se va por encima de la primera, se resetea el resaltado\n if (prevIndex < 0) this.highlightedIndex = -1;\n\n this.requestUpdate();\n this.updateComplete.then(() => this.scrollHighlightedIntoView());\n } else if (key === 'Enter' || !this._effectiveFilterable && key === ' ') {\n\n // Solo prevenimos el comportamiento por defecto (insertar un espacio)\n // si estamos activamente navegando (highlightedIndex >= 0).\n // Si el índice es -1 (el usuario está escribiendo), no hacemos nada,\n // permitiendo que el espacio se escriba y filtre la lista.\n if (this.highlightedIndex >= 0) event.preventDefault();\n\n const option: SelectOption = this.filteredOptions[this.highlightedIndex];\n\n // Si hay una opción resaltada Y no está deshabilitada, SELECCIONAMOS.\n if (this.highlightedIndex >= 0 && option && !(typeof option === 'object' && option.disabled)) {\n this.handleSelect(option);\n\n // El foco vuelve al input/fake\n if (this._desktopInput) this._desktopInput.focus();\n else this._desktopFake?.focus();\n\n this.highlightedIndex = -1;\n return; // Salimos después de seleccionar\n }\n\n // Si presionamos ' ' o 'Enter' y no hay nada resaltado, no hacemos nada más.\n } else if (key === 'Escape') {\n event.preventDefault();\n\n this.isOpen = false;\n this.highlightedIndex = -1;\n\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: false },\n bubbles: true,\n composed: true\n }));\n }\n\n // Al cerrar, el foco debe volver al input\n if (this._desktopInput) this._desktopInput.focus();\n else this._desktopFake?.focus();\n } else if (key === 'Tab') {\n this.isOpen = false;\n this.highlightedIndex = -1;\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: false },\n bubbles: true,\n composed: true\n }));\n }\n this.requestUpdate();\n } else if (!this.isMobile && this._effectiveFilterable && key.length === 1) {\n this.highlightedIndex = -1;\n }\n\n if (key === 'ArrowLeft' || key === 'ArrowRight') {\n // En modo filtrable, permitimos que el cursor se mueva en el input.\n // En modo no filtrable, ya se mueve el foco al botón (ver punto 3).\n if (this._effectiveFilterable) return;\n }\n }\n\n if (key === 'ArrowRight') {\n // Chequeamos si el cursor está al final del input (solo si es filtrable).\n const isAtEnd: boolean = !inputElement || inputElement.selectionStart === inputElement.value.length;\n\n // Si es filtrable Y el cursor está al final O si NO es filtrable, movemos.\n if (!this._effectiveFilterable || isAtEnd) {\n event.preventDefault();\n\n const iconButton: HTMLButtonElement | null = this._iconButton;\n iconButton?.focus();\n }\n\n return;\n }\n }\n\n /**\n * Maneja los eventos de teclado cuando el foco está en el botón de toggle/clear.\n * Su única responsabilidad es:\n * 1. Abrir/cerrar la lista con Enter/Space.\n * 2. Transferir el foco al input/fake para que 'handleKeyDown' tome el control de las flechas.\n * 3. Cerrar la lista al presionar Tab.\n */\n public handleButtonKeyDown(event: KeyboardEvent) {\n const { key } = event;\n\n const inputElement = this._desktopInput;\n const fakeElement = this._desktopFake;\n const focusTarget: HTMLInputElement = inputElement || fakeElement;\n\n if (key === 'ArrowLeft') {\n event.preventDefault();\n focusTarget?.focus();\n\n // Si es un input, colocamos el cursor al final\n if (focusTarget instanceof HTMLInputElement)\n focusTarget.selectionStart = focusTarget.selectionEnd = focusTarget.value.length;\n\n return;\n }\n\n if (key === 'Enter' || key === ' ') {\n event.preventDefault();\n\n if (this._effectiveFilterable && this.filterValue) {\n this.handleIconClick();\n focusTarget?.focus();\n } else {\n this.isOpen = !this.isOpen;\n\n if (this.isOpen) {\n this.highlightedIndex = -1;\n focusTarget?.focus();\n }\n }\n\n this.requestUpdate();\n return;\n }\n\n // Si la lista está abierta y se presiona Tab en el botón, se cierra y se permite \n // que el foco salga del componente.\n if (key === 'Tab' && this.isOpen) {\n this.isOpen = false;\n this.highlightedIndex = -1;\n this.requestUpdate();\n }\n }\n\n /**\n * Limpia el valor visible del input (filterValue) si no hay un valor de opción válido seleccionado (this.value).\n * Se llama al perder el foco.\n */\n public handleBlur() {\n window.setTimeout(() => {\n this.validateAndCleanOnBlur();\n this.requestUpdate();\n }, 200);\n }\n\n private scrollHighlightedIntoView() {\n // Solo aplica para la vista de escritorio, ya que el modal de móvil\n // se encarga de su propio scroll (si no se han hecho ajustes allí).\n if (this.isMobile || this.highlightedIndex < 0) return;\n\n // Buscamos la lista de opciones en el shadow DOM\n const optionsList = this._optionsList;\n if (!optionsList) return;\n\n // Buscamos el elemento de la opción resaltada\n const highlightedElement: HTMLLIElement | null = optionsList.querySelector(`li.highlighted`) as HTMLLIElement;\n\n // Usamos el método nativo scrollIntoView para enfocar el elemento\n // 'nearest' asegura que solo se haga scroll si el elemento no está visible.\n if (highlightedElement)\n highlightedElement.scrollIntoView({ block: 'nearest' });\n\n }\n\n private _emitEmptySelection(): void {\n this.value = '';\n this._isCleared = true;\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value: '' },\n bubbles: true,\n composed: true\n }));\n }\n\n private _fetchAsyncResults(value: string): void {\n if (\n this._lastFetchTerm !== null &&\n this._fetchedOptions.length > 0 &&\n this.normalizeText(value).startsWith(this.normalizeText(this._lastFetchTerm))\n ) {\n const normalizedSearch = this.normalizeText(value);\n this.filteredOptions = this._fetchedOptions.filter(opt => {\n const label = this.getOptionLabel(opt);\n return this.normalizeText(label).includes(normalizedSearch);\n });\n this.showNoResults = this.filteredOptions.length === 0;\n this.highlightedIndex = this.filteredOptions.length > 0 ? 0 : -1;\n this._isLoading = false;\n this.requestUpdate();\n return;\n }\n\n if (this._abortController) this._abortController.abort();\n if (this.debounceTimeout) clearTimeout(this.debounceTimeout);\n\n this._isLoading = true;\n this.showNoResults = false;\n this.filteredOptions = [];\n this.requestUpdate();\n\n const executeFetch = () => {\n this._abortController = new AbortController();\n\n this.fetcher!(value, { signal: this._abortController.signal }).then((result) => {\n if (this._abortController?.signal.aborted) return;\n this._fetchedOptions = result;\n this._lastFetchTerm = value;\n this.filteredOptions = result;\n this.showNoResults = result.length === 0;\n this.highlightedIndex = result.length > 0 ? 0 : -1;\n this._isLoading = false;\n this.requestUpdate();\n }).catch(() => {\n if (this._abortController?.signal.aborted) return;\n this.filteredOptions = [];\n this.showNoResults = true;\n this._isLoading = false;\n this.requestUpdate();\n });\n };\n\n if (this.debounceMs > 0) {\n this.debounceTimeout = window.setTimeout(executeFetch, this.debounceMs);\n } else {\n executeFetch();\n }\n }\n\n private _sanitize(text: string, sanitizeFirstChar: boolean): string {\n let result = text.replace(REGEX_NO_EMOJIS, '');\n if (this.maxLength) result = result.slice(0, this.maxLength);\n if (result.startsWith(' ')) result = result.trimStart();\n if (this.keydownRegex) result = this.onlyRegex(result);\n\n if (sanitizeFirstChar && result.length > 0) {\n const firstChar = result[0];\n const isValidStart = this.keydownRegex\n ? (this._firstCharRegex?.test(firstChar) ?? true)\n : /[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]/.test(firstChar);\n if (!isValidStart) {\n if (this.keydownRegex && this._firstCharRegex) {\n result = result.replace(new RegExp(`^[^${this._firstCharRegex.source.replace(/^\\[/, '').replace(/\\]$/, '')}]+`), '');\n } else {\n result = result.replace(/^[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]+/, '');\n }\n }\n }\n\n return result;\n }\n\n private _firstCharRegex: RegExp | null = null;\n\n private _sanitizeInputValue(raw: string, target: HTMLInputElement): string {\n const start = target.selectionStart || 0;\n const textBeforeCursor = raw.slice(0, start);\n const newPosition = textBeforeCursor.replace(REGEX_NO_EMOJIS, '').length;\n\n const value = this._sanitize(raw, false);\n\n target.value = value;\n target.setSelectionRange(newPosition, newPosition);\n return value;\n }\n\n private renderOptionIcon(icon?: string) {\n if (!icon || typeof icon !== 'string') return nothing;\n\n const safe = icon\n .replace(/<script\\b[^<]*(?:(?!<\\/script>)<[^<]*)*<\\/script>/gi, '')\n .replace(/\\bon\\w+\\s*=/gi, '')\n .replace(/javascript:/gi, '');\n return html`<span class=\"icon-list\" .innerHTML=\"${safe}\"></span>`;\n }\n\n private _renderOptionItem(option: SelectOption, index: number) {\n const label = typeof option === 'string' ? option : (option as { label: string }).label;\n const isDisabled = typeof option === 'object' && (option as { disabled?: boolean }).disabled;\n const icon = typeof option === 'object' ? (option as { icon?: string }).icon : undefined;\n\n return html`\n <li\n id=\"option-${index}\"\n class=\"${isDisabled ? 'disabled' : ''} ${index === this.highlightedIndex ? 'highlighted' : ''}\"\n role=\"option\"\n aria-selected=\"${index === this.highlightedIndex}\"\n @click=\"${() => {\n if (!isDisabled) this.handleSelect(option);\n }}\"\n @mouseenter=\"${() => this.handleOptionHover(index)}\"\n >\n ${this.renderOptionIcon(icon)}\n ${label}\n </li>\n `;\n }\n\n private validateAndCleanOnBlur(): void {\n if (!this._effectiveFilterable) return;\n const typedText = this.normalizeText((this.filterValue || '').trim());\n\n if (!typedText) {\n if (this.value !== '') {\n this._emitEmptySelection();\n }\n this.filterValue = '';\n this.filteredOptions = this._computeFilteredOptions('');\n this.showNoResults = false;\n return;\n }\n\n // valido lo escrito si coincide EXACTAMENTE con el label\n // En modo async, las opciones disponibles están en filteredOptions (resultados del fetch),\n // ya que this.options suele estar vacío o no contiene los datos asíncronos.\n const sourceOptions = this.fetcher ? this.filteredOptions : this.options;\n const validMatch = sourceOptions.find(opt => {\n const label = typeof opt === 'string' ? opt : (opt as { label: string }).label;\n return this.normalizeText(String(label)) === typedText;\n });\n\n if (!validMatch) {\n // si no hay coincidencia lipio y fuerzo al reset\n this._emitEmptySelection();\n\n this.filterValue = '';\n this.filteredOptions = this._computeFilteredOptions('');\n this.showNoResults = false;\n } else {\n // si coincide exactamente, aseguramos que el valor de esa opción se haya seteado\n const matchValue = typeof validMatch === 'string' ? validMatch : (validMatch as { value: any }).value;\n const matchLabel = typeof validMatch === 'string' ? validMatch : (validMatch as { label: string }).label;\n\n if (this.value !== matchValue) {\n this.value = matchValue;\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value: matchValue },\n bubbles: true,\n composed: true\n }));\n }\n\n this.filterValue = matchLabel;\n this.showNoResults = false;\n }\n }\n\n public render() {\n const isMobile: boolean = this.isMobile;\n\n const currentTextColor: string = this.value\n ? 'var( --secondary-color )'\n : 'var( --secondary-color-40 )'\n ;\n\n const inputStyles: string = ` --filter-text-color: ${currentTextColor}; `;\n\n const iconTemplate: TemplateResult = html`\n <randstad-icon\n name=\"${this.isOpen && this.filteredOptions.length > 0 ? 'arrow_up' : 'arrow_down'}\"\n size=\"24px\"\n .color=${'var( --primary-color )'}\n >\n </randstad-icon>\n `;\n\n const isShowCleanButton: boolean = this.isRenderClearButton === true ? true : false;\n const shouldBeOpen: boolean = this.isOpen && (this.filteredOptions.length > 0 || this.filterValue.length > 0);\n\n // Validaciones para determinar si se necesita el valor por defecto\n const validationTextLabelFilterNotResult: boolean = !this.textLabelFilterNotResult || typeof this.textLabelFilterNotResult !== 'string';\n const validationTextLabelMobileSearch: boolean = !this.textLabelMobileSearch || typeof this.textLabelMobileSearch !== 'string';\n const validationtPlaceholder: boolean = !this.placeholder || typeof this.placeholder !== 'string';\n\n // Variables locales que contienen el valor final (propiedad o default)\n const hasTextLabelFilterNotResult: string = validationTextLabelFilterNotResult ? 'No se encontraron resultados' : this.textLabelFilterNotResult;\n const hasTextLabelMobileSearch: string = validationTextLabelMobileSearch ? 'buscá una opción' : this.textLabelMobileSearch;\n const hasPlaceholder: string = validationtPlaceholder ? 'seleccioná una opción' : this.placeholder;\n\n return html`\n <div class=\"select-container\" style=\"${this.labelColor ? ` --label-color: ${this.labelColor};` : ''} ${inputStyles}\"> \n ${this.renderLabelContainer()}\n \n <div class=\"list-container\">\n <div class=\"input-container ${this.isOpen ? 'focused' : ''} ${shouldBeOpen ? 'open' : ''} ${isMobile ? 'mobile' : ''}\">\n <div class=\"input-wrapper ${this.disabled ? 'disabled' : ''}\">\n ${isMobile ?\n html`\n <div\n class=\"filter-fake\"\n @click=\"${this.handleInputClick}\"\n @keydown=\"${this.handleKeyDown}\"\n @blur=\"${this.handleBlur}\"\n tabindex=\"0\"\n role=\"combobox\"\n autocomplete=\"new-password\"\n aria-expanded=\"${this.isOpen}\"\n aria-controls=\"options-list\"\n aria-haspopup=\"listbox\"\n aria-activedescendant=\"${this.isOpen && this.highlightedIndex !== -1 ? `option-${this.highlightedIndex}` : nothing}\"\n >\n <span>${this.filterValue || hasPlaceholder}</span>\n </div>\n `\n : html`\n <input\n class=\"filter-input\"\n .value=\"${this.filterValue || ''}\"\n @click=\"${this.handleInputClick}\"\n @keydown=\"${this.handleKeyDown}\"\n @input=${this.handleInput}\n @paste=\"${this.handlePaste}\"\n @blur=\"${this.handleBlur}\" \n placeholder=\"${this.filterValue ? '' : hasPlaceholder}\"\n ?disabled=\"${this.disabled}\"\n ?readonly=\"${!this._effectiveFilterable}\"\n maxlength=\"${this.maxLength ?? ''}\"\n tabindex=\"0\"\n role=\"combobox\"\n inputmode=\"search\"\n autocomplete=\"new-password\" \n aria-expanded=\"${this.isOpen}\"\n aria-controls=\"options-list\"\n aria-haspopup=\"listbox\"\n aria-busy=\"${this._isLoading}\"\n aria-activedescendant=\"${this.isOpen && this.highlightedIndex !== -1 ? `option-${this.highlightedIndex}` : nothing}\"\n />\n `\n }\n\n ${!isMobile && this.showNoResults ? html`<randstad-icon name=\"warning\" size=\"24px\" class=\"no-results-icon\"></randstad-icon>` : nothing}\n\n <button\n class=\"icon-button\"\n @click=\"${this.handleIconClick}\"\n @keydown=\"${this.handleButtonKeyDown}\" \n ?disabled=\"${this.disabled}\"\n tabindex=\"0\"\n aria-label=\"${this.value && this.value !== '' ? 'Clear selection' : 'Toggle options'}\"\n >\n ${(isShowCleanButton && this.value && this.value !== '')\n ? html`<randstad-icon name=\"close\" size=\"24px\"></randstad-icon>`\n : iconTemplate\n }\n </button>\n\n ${!isMobile && this.isOpen\n ? html`\n ${this._isLoading\n ? html`\n <ul id=\"options-list\" class=\"options-list\" role=\"listbox\" aria-live=\"polite\">\n <li class=\"state-item\" role=\"status\">\n ${this.textLabelLoading}\n </li>\n </ul>\n `\n : this.filteredOptions.length > 0\n ? html`\n <ul id=\"options-list\" class=\"options-list\" role=\"listbox\" aria-live=\"polite\">\n ${this.filteredOptions.map((option, index) => this._renderOptionItem(option, index))}\n </ul>\n `\n : this.showNoResults\n ? html`\n <ul id=\"options-list\" class=\"options-list\" role=\"listbox\" aria-live=\"polite\">\n <li class=\"state-item\">\n ${hasTextLabelFilterNotResult}\n </li>\n </ul>\n `\n : nothing\n }\n `\n : nothing\n }\n </div>\n </div>\n\n ${this.renderError()}\n </div>\n\n ${this.renderHelper()}\n\n ${isMobile && this.isOpen\n ? html`\n <div class=\"mobile-backdrop\" @click=\"${() => { this.isOpen = false; }}\">\n <div class=\"mobile-modal\" @click=\"${(e: Event) => e.stopPropagation()}\">\n <div class=\"modal-input-container\">\n ${this._effectiveFilterable\n ? html`\n <input\n class=\"filter-input\"\n .value=\"${this.mobileFilterValue || ''}\"\n @input=${(e: Event) => this.handleMobileInput(e)}\n @keydown=\"${this.preventInvalidStart}\"\n @paste=\"${this.handlePaste}\"\n placeholder=\"${hasTextLabelMobileSearch}\"\n inputmode=\"search\"\n maxlength=\"${this.maxLength ?? ''}\"\n role=\"combobox\"\n aria-expanded=\"${this.isOpen}\"\n aria-controls=\"mobile-options-list\"\n aria-haspopup=\"listbox\"\n />\n\n ${!this._isLoading && this.showNoResults\n ? html`<randstad-icon name=\"warning\" size=\"24px\" class=\"no-results-icon\"></randstad-icon>`\n : nothing\n }\n `\n : nothing\n }\n\n <button class=\"modal-close-button\" @click=\"${() => { this.isOpen = false; this.mobileFilterValue = ''; this.filteredOptions = this._computeFilteredOptions(''); this._lastFetchTerm = null; this._fetchedOptions = []; if (this.debounceTimeout) { clearTimeout(this.debounceTimeout); this.debounceTimeout = null; } if (this._abortController) { this._abortController.abort(); this._abortController = null; } this._isLoading = false; }}\">\n <randstad-icon name=\"close\" size=\"24px\"></randstad-icon>\n </button>\n </div>\n \n ${this._isLoading\n ? html`\n <ul id=\"mobile-options-list\" class=\"options-list\" role=\"listbox\" aria-live=\"polite\">\n <li class=\"state-item\" role=\"status\">\n ${this.textLabelLoading}\n </li>\n </ul>\n `\n : this.filteredOptions.length > 0\n ? html`\n <ul id=\"mobile-options-list\" class=\"options-list\" role=\"listbox\" aria-live=\"polite\">\n ${this.filteredOptions.map((option, index) => this._renderOptionItem(option, index))}\n </ul>\n `\n : this.showNoResults\n ? html`\n <ul id=\"mobile-options-list\" class=\"options-list\" role=\"listbox\" aria-live=\"polite\">\n <li class=\"state-item mobile-item\">\n ${hasTextLabelFilterNotResult}\n </li>\n </ul>\n `\n : nothing\n }\n </div>\n </div>\n `\n : nothing\n }\n `;\n }\n}","const globalStyles: CSSStyleSheet = new CSSStyleSheet();\r\n\r\nglobalStyles.replaceSync(`\r\n @font-face {\r\n font-family: 'Graphik';\r\n src: url('/src/assets/font/Graphik-Regular.woff2') format('woff2'),\r\n url('/src/assets/font/Graphik-Regular.woff') format('woff'),\r\n url('/src/assets/font/Graphik-Regular.eot') format('embedded-opentype');\r\n font-weight: normal;\r\n font-style: normal;\r\n }\r\n\r\n .body-s {\r\n font-weight: 400;\r\n font-size: 14px;\r\n line-height: 100%;\r\n letter-spacing: 0%;\r\n color: green;\r\n }\r\n\r\n .body-l {\r\n font-family: Graphik;\r\n font-size: 18px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 30px;\r\n }\r\n`);\r\n\r\nexport default globalStyles;","import { LitElement, html, css } from 'lit';\r\nimport globalStyles from '../styles/globalStyles';\r\nimport { bodyS } from '../styles/fontStyles';\r\n\r\ntype SnackbarType = 'informative' | 'success' | 'warning' | 'error';\r\ntype SnackbarPosition =\r\n | 'top-left' | 'top-center' | 'top-right'\r\n | 'bottom-left' | 'bottom-center' | 'bottom-right';\r\n\r\nclass RandstadSnackbar extends LitElement {\r\n type: SnackbarType = 'informative';\r\n icon: string = 'info';\r\n message: string = 'Este es un mensaje.';\r\n open: boolean = false;\r\n position: SnackbarPosition = 'bottom-center';\r\n private isMobile = false;\r\n private _navbarObserver: MutationObserver | null = null;\r\n\r\n static styles = [\r\n globalStyles,\r\n css`\r\n :host {\r\n display: flex;\r\n position: fixed;\r\n align-items: center;\r\n max-width: 100dvw;\r\n height: auto;\r\n z-index: 9997;\r\n }\r\n\r\n :host([position=\"top-left\"]) {\r\n top: 16px;\r\n left: 16px;\r\n right: auto;\r\n transform: none;\r\n justify-content: flex-start;\r\n }\r\n\r\n :host([position=\"top-center\"]) {\r\n top: 16px;\r\n left: 50%;\r\n transform: translateX(-50%);\r\n justify-content: center;\r\n }\r\n\r\n :host([position=\"top-right\"]) {\r\n top: 16px;\r\n right: 16px;\r\n left: auto;\r\n transform: none;\r\n justify-content: flex-end;\r\n }\r\n\r\n :host([position=\"bottom-left\"]) {\r\n bottom: 16px;\r\n left: 16px;\r\n right: auto;\r\n transform: none;\r\n justify-content: flex-start;\r\n }\r\n\r\n :host([position=\"bottom-center\"]) {\r\n bottom: 16px;\r\n left: 50%;\r\n transform: translateX(-50%);\r\n justify-content: center;\r\n }\r\n\r\n :host([position=\"bottom-right\"]) {\r\n bottom: 16px;\r\n right: 16px;\r\n left: auto;\r\n transform: none;\r\n justify-content: flex-end;\r\n }\r\n\r\n :host(.mobile) {\r\n bottom: 16px !important;\r\n top: auto !important;\r\n left: 50% !important;\r\n transform: translateX(-50%) !important;\r\n justify-content: center !important;\r\n width: 100%;\r\n }\r\n\r\n :host(.mobile) .container {\r\n width: 90dvw !important;\r\n }\r\n\r\n :host(.navbar-visible)[position=\"bottom-left\"],\r\n :host(.navbar-visible)[position=\"bottom-center\"],\r\n :host(.navbar-visible)[position=\"bottom-right\"] {\r\n bottom: calc(100px);\r\n }\r\n\r\n :host(.navbar-visible.mobile) {\r\n bottom: calc(100px) !important;\r\n }\r\n\r\n .container {\r\n ${bodyS};\r\n display: flex;\r\n align-items: center;\r\n box-sizing: border-box;\r\n min-height: 48px;\r\n width: 401px;\r\n border-radius: 4px;\r\n padding: 8px;\r\n gap: 8px;\r\n white-space: nowrap;\r\n color: var(--white);\r\n }\r\n\r\n .message {\r\n display: block;\r\n display: -webkit-box;\r\n -webkit-box-orient: vertical;\r\n -webkit-line-clamp: 2;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: pre-wrap;\r\n max-height: calc(2 * 25px);\r\n line-height: 25px;\r\n word-break: break-word;\r\n max-width: 100%;\r\n }\r\n\r\n .container {\r\n color: var(--white);\r\n }\r\n randstad-icon {\r\n color: var(--white);\r\n }\r\n randstad-icon svg {\r\n fill: var(--white);\r\n }\r\n\r\n .icon {\r\n font-size: 18px;\r\n }\r\n .hidden {\r\n display: none;\r\n }\r\n .success {\r\n background-color: var(--ui-positive);\r\n }\r\n .error {\r\n background-color: var(--ui-negative);\r\n }\r\n .warning {\r\n background-color: var(--ui-warning);\r\n }\r\n .informative {\r\n background-color: var(--ui-informative);\r\n }\r\n `\r\n ];\r\n\r\n static get properties() {\r\n return {\r\n type: { type: String },\r\n icon: { type: String },\r\n message: { type: String },\r\n open: { type: Boolean },\r\n position: { type: String, reflect: true },\r\n };\r\n }\r\n\r\n constructor() {\r\n super();\r\n this.updateResponsiveStyles = this.updateResponsiveStyles.bind(this);\r\n }\r\n\r\n public connectedCallback() {\r\n super.connectedCallback();\r\n window.addEventListener('resize', this.updateResponsiveStyles);\r\n this.updateResponsiveStyles();\r\n this.observeNavbar();\r\n }\r\n\r\n public disconnectedCallback() {\r\n window.removeEventListener('resize', this.updateResponsiveStyles);\r\n if (this._navbarObserver) {\r\n this._navbarObserver.disconnect();\r\n this._navbarObserver = null;\r\n }\r\n super.disconnectedCallback();\r\n }\r\n\r\n public updateResponsiveStyles() {\r\n this.isMobile = window.innerWidth <= 940;\r\n this.classList.toggle('mobile', this.isMobile);\r\n this.updateNavbarPosition();\r\n }\r\n\r\n protected updated(changedProperties: Map<string, unknown>): void {\r\n if (changedProperties.has('position')) {\r\n this.updateNavbarPosition();\r\n }\r\n }\r\n\r\n private isNavbarVisible(): boolean {\r\n const navbar = document.querySelector('randstad-navbar');\r\n if (!navbar) return false;\r\n if (navbar.hasAttribute('hidden')) return false;\r\n if (window.innerWidth > 940 && !navbar.hasAttribute('desktop')) return false;\r\n return true;\r\n }\r\n\r\n private updateNavbarPosition(): void {\r\n const visible = this.isNavbarVisible();\r\n const isBottom = this.position.startsWith('bottom');\r\n const shouldOffset = visible && (isBottom || this.isMobile);\r\n this.classList.toggle('navbar-visible', shouldOffset);\r\n }\r\n\r\n private observeNavbar(): void {\r\n if (this._navbarObserver) return;\r\n const navbar = document.querySelector('randstad-navbar');\r\n if (!navbar) return;\r\n this._navbarObserver = new MutationObserver(() => this.updateNavbarPosition());\r\n this._navbarObserver.observe(navbar, {\r\n attributes: true,\r\n attributeFilter: ['hidden', 'desktop'],\r\n });\r\n }\r\n\r\n public render() {\r\n const ariaRole: \"alert\" | \"status\" = this.type === 'error' || this.type === 'warning' ? 'alert' : 'status';\r\n \r\n return html`\r\n <div\r\n class=\"container ${this.open ? '' : 'hidden'} ${this.type}\"\r\n role=\"${ariaRole}\"\r\n aria-live=\"polite\"\r\n >\r\n <randstad-icon name=${this.icon} size=\"24px\" color=\"white\"></randstad-icon>\r\n <span class=\"message\">${this.message}</span>\r\n </div>\r\n `;\r\n }\r\n}\r\n\r\ncustomElements.define('randstad-snackbar', RandstadSnackbar);","import { LitElement, html, css } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\n\r\n@customElement('custom-stepper')\r\nexport class CustomStepper extends LitElement {\r\n @property({ type: Number }) totalSteps = 4;\r\n @property({ type: Number }) currentStep = 0;\r\n\r\n static styles = css`\r\n .stepper {\r\n display: flex;\r\n gap: 20px;\r\n align-items: center;\r\n }\r\n\r\n .step {\r\n width: 20px;\r\n height: 20px;\r\n border-radius: 50%;\r\n background-color: var(--white);\r\n border: 1px solid var(--secondary-color-20);\r\n position: relative;\r\n box-sizing: content-box;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n font-size: 12px;\r\n color: var(--secondary-color-20);\r\n }\r\n\r\n .step .inner-circle {\r\n width: 4px;\r\n height: 4px;\r\n border-radius: 50%;\r\n background-color: var(--white);\r\n position: absolute;\r\n top: 50%;\r\n left: 50%;\r\n transform: translate(-50%, -50%);\r\n image-rendering: -webkit-optimize-contrast;\r\n image-rendering: crisp-edges;\r\n backface-visibility: hidden;\r\n transform-style: preserve-3d;\r\n }\r\n\r\n .step.completed {\r\n background-color: var(--primary-color);\r\n border: 1px solid var(--primary-color);\r\n }\r\n\r\n .step.completed randstad-icon {\r\n color: white;\r\n }\r\n\r\n .step.active {\r\n background-color: var(--white);\r\n border: 1px solid var(--primary-color);\r\n }\r\n\r\n .step.active .inner-circle {\r\n background-color: var(--primary-color);\r\n }\r\n\r\n .step.active .pulse-circle {\r\n width: 12px;\r\n height: 12px;\r\n border-radius: 50%;\r\n background-color: var(--primary-color);\r\n opacity: 0.25;\r\n position: absolute;\r\n top: 50%;\r\n left: 50%;\r\n transform: translate(-50%, -50%) scale(0.6);\r\n animation: pulse 2000ms ease-in-out infinite;\r\n image-rendering: -webkit-optimize-contrast;\r\n image-rendering: crisp-edges;\r\n backface-visibility: hidden;\r\n }\r\n\r\n @keyframes pulse {\r\n 0% {\r\n transform: translate(-50%, -50%) scale(0.6);\r\n }\r\n 80%, 100% {\r\n transform: translate(-50%, -50%) scale(1.2);\r\n }\r\n }\r\n\r\n .step,\r\n .inner-circle,\r\n .pulse-circle {\r\n will-change: transform;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n }\r\n `;\r\n\r\n render() {\r\n return html`\r\n <div class=\"stepper\">\r\n ${Array.from({ length: this.totalSteps }, (_, index) => html`\r\n <div\r\n class=\"step ${index < this.currentStep ? 'completed' : index === this.currentStep ? 'active' : ''}\"\r\n >\r\n ${index < this.currentStep\r\n ? html`<randstad-icon name=\"tick\" size=\"16px\"></randstad-icon>`\r\n : index === this.currentStep\r\n ? html`\r\n <span class=\"pulse-circle\"></span>\r\n <span class=\"inner-circle\"></span>\r\n `\r\n : html`<span class=\"inner-circle\"></span>`}\r\n </div>\r\n `)}\r\n </div>\r\n `;\r\n }\r\n}\r\n","import { LitElement, html, css } from 'lit';\r\nimport { customElement, property, state } from 'lit/decorators.js';\r\nimport { bodyM, titleXXS } from '../styles/fontStyles';\r\n\r\ninterface TabItem {\r\n label: string;\r\n icon: string;\r\n value: string;\r\n}\r\n\r\n@customElement('tabs-bar')\r\nexport class TabsBar extends LitElement {\r\n @property({ type: Array }) tabs: TabItem[] = [];\r\n @property({ type: String }) selected: string = '';\r\n @state() private internalSelected: string = '';\r\n @state() private showPrev = false;\r\n @state() private showNext = false;\r\n\r\n private readonly SCROLL_OFFSET = 56;\r\n\r\n\r\n static styles = css`\r\n :host {\r\n display: block;\r\n border-bottom: 1px solid #E7E8EC;\r\n font-family: \"Graphik\", sans-serif;\r\n }\r\n\r\n .tab-wrapper {\r\n display: flex;\r\n justify-content: flex-start;\r\n }\r\n\r\n .tab {\r\n ${titleXXS};\r\n display: flex;\r\n gap: 8px;\r\n flex-direction: row;\r\n padding: 24px;\r\n align-items: center;\r\n text-align: center;\r\n color: #6F758D;\r\n cursor: pointer;\r\n text-decoration: none;\r\n position: relative;\r\n flex: 0 0 auto;\r\n min-width: 0;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n transition: background-color 0.2s ease-in-out;\r\n }\r\n\r\n .tab:hover {\r\n background-color: #E7E8EC;\r\n }\r\n\r\n .tab.active {\r\n color: #2175D9;\r\n }\r\n\r\n .tab.active::after {\r\n height: 2px;\r\n background-color: #2175D9;\r\n content: '';\r\n position: absolute;\r\n bottom: 0;\r\n left: 0;\r\n width: 100%;\r\n pointer-events: none;\r\n }\r\n\r\n .tab.active randstad-icon {\r\n filter: brightness(0) saturate(100%) invert(28%) sepia(87%) saturate(3514%) hue-rotate(202deg) brightness(92%) contrast(101%);\r\n }\r\n\r\n\r\n .scroll-container {\r\n position: relative;\r\n display: flex;\r\n align-items: center;\r\n overflow: hidden;\r\n }\r\n\r\n .tab-wrapper {\r\n display: flex;\r\n justify-content: flex-start;\r\n gap: 0px;\r\n overflow-x: auto;\r\n scroll-behavior: smooth;\r\n scrollbar-width: none; /* Firefox */\r\n -ms-overflow-style: none; /* IE 10+ */\r\n flex: 1;\r\n }\r\n\r\n .tab-wrapper::-webkit-scrollbar {\r\n display: none;\r\n }\r\n\r\n .scroll-button {\r\n border: none;\r\n font-size: 24px;\r\n cursor: pointer;\r\n z-index: 1;\r\n width: 56px;\r\n height: 100%;\r\n display: flex;\r\n align-items: center;\r\n color: #2175D9;\r\n padding: 0px;\r\n }\r\n\r\n .scroll-button.prev {\r\n justify-content: flex-start;\r\n position: absolute;\r\n left: 0;\r\n background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 50%, rgba(255, 255, 255, 0) 100%);\r\n }\r\n\r\n .scroll-button.next {\r\n justify-content: flex-end;\r\n position: absolute;\r\n right: 0;\r\n background: linear-gradient(270deg, #FFFFFF 0%, #FFFFFF 50%, rgba(255, 255, 255, 0) 100%);\r\n }\r\n\r\n @media (max-width: 940px) {\r\n .tab {\r\n ${bodyM};\r\n padding: 16px;\r\n }\r\n }\r\n `;\r\n\r\n firstUpdated() {\r\n this.handleScroll();\r\n }\r\n\r\n // synchronize `internalSelected` as soon as `selected` changes, before\r\n // rendering. Doing this in `updated()` caused a property update after the\r\n // render completed and triggered the warning.\r\n protected willUpdate(changed: Map<string, any>) {\r\n if (changed.has('selected')) {\r\n this.internalSelected = this.selected;\r\n }\r\n }\r\n\r\n private selectTab(value: string) {\r\n this.internalSelected = value;\r\n const selectedTab = this.tabs.find(tab => tab.value === value);\r\n if (selectedTab) {\r\n this.dispatchEvent(new CustomEvent('tab-change', {\r\n detail: selectedTab,\r\n bubbles: true,\r\n composed: true,\r\n }));\r\n }\r\n }\r\n\r\n private scrollTabsLeft() {\r\n const wrapper = this.renderRoot.querySelector('.tab-wrapper');\r\n if (!wrapper) return;\r\n\r\n const scrollLeft = wrapper.scrollLeft;\r\n const tabs = Array.from(wrapper.querySelectorAll('.tab')) as HTMLElement[];\r\n\r\n for (let i = tabs.length - 1; i >= 0; i--) {\r\n const el = tabs[i];\r\n const tabLeft = el.offsetLeft;\r\n\r\n // Esta es la nueva condición clave 👇\r\n if (tabLeft < scrollLeft + this.SCROLL_OFFSET - 1) {\r\n const scrollTarget = tabLeft - this.SCROLL_OFFSET;\r\n wrapper.scrollTo({ left: scrollTarget, behavior: 'smooth' });\r\n break;\r\n }\r\n }\r\n\r\n setTimeout(() => this.handleScroll(), 300);\r\n }\r\n\r\n private scrollTabsRight() {\r\n const wrapper = this.renderRoot.querySelector('.tab-wrapper');\r\n if (!wrapper) return;\r\n\r\n const wrapperLeft = wrapper.scrollLeft;\r\n const tabs = Array.from(wrapper.querySelectorAll('.tab')) as HTMLElement[];\r\n\r\n for (const el of tabs) {\r\n if (el.offsetLeft > wrapperLeft + this.SCROLL_OFFSET) {\r\n const scrollTarget = el.offsetLeft - this.SCROLL_OFFSET;\r\n wrapper.scrollTo({ left: scrollTarget, behavior: 'smooth' });\r\n break;\r\n }\r\n }\r\n\r\n setTimeout(() => this.handleScroll(), 300);\r\n }\r\n\r\n private handleScroll = () => {\r\n const wrapper = this.renderRoot.querySelector('.tab-wrapper');\r\n if (!wrapper) return;\r\n\r\n const { scrollLeft, scrollWidth, clientWidth } = wrapper;\r\n\r\n this.showPrev = scrollLeft > 0;\r\n this.showNext = scrollLeft + clientWidth < scrollWidth - 1;\r\n };\r\n\r\n render() {\r\n return html`\r\n <div class=\"scroll-container\">\r\n ${this.showPrev ? html`\r\n <button class=\"scroll-button prev\" @click=${this.scrollTabsLeft}>\r\n <randstad-icon name=\"arrow_left\" size=\"36px\"></randstad-icon>\r\n </button>\r\n ` : null}\r\n\r\n <div class=\"tab-wrapper\" @scroll=${this.handleScroll}>\r\n ${this.tabs.map(tab => html`\r\n <div class=\"tab ${this.internalSelected === tab.value ? 'active' : ''}\"\r\n @click=${() => this.selectTab(tab.value)}>\r\n <randstad-icon name=${tab.icon} size=\"24px\"></randstad-icon>\r\n <span>${tab.label}</span>\r\n </div>\r\n `)}\r\n </div>\r\n\r\n ${this.showNext ? html`\r\n <button class=\"scroll-button next\" @click=${this.scrollTabsRight}>\r\n <randstad-icon name=\"arrow_right\" size=\"36px\"></randstad-icon>\r\n </button>\r\n ` : null}\r\n </div>\r\n `;\r\n }\r\n}\r\n","import { customElement, property, query, state } from \"lit/decorators.js\";\nimport { BaseControl } from \"./BaseControl\";\nimport { html, TemplateResult } from \"lit\";\n\nexport interface FileHandlerConfig {\n baseMaxFiles: number;\n maxFileSize: number;\n acceptedFileTypes: string[];\n errorMessageType: string;\n errorMessageSize: string;\n typeError: 'image' | 'file';\n}\n\n@customElement(\"base-upload\")\nexport class BaseUpload extends BaseControl { \n @property({ type: Array }) files: File[] = []; \n @property({ type: Number }) simulatedDelay = 0;\n\n @property({ type: Boolean }) showAlertInError = false;\n @property({ type: String }) typeTextFile = '';\n \n @state() protected loading = false;\n @state() protected progress = 0;\n\n @state() protected errorTextMessage: string | null = null;\n\n @query( 'input[ type=\"file\" ]' ) protected fileInput!: HTMLInputElement;\n\n public isMultiple: boolean = false; \n\n private readonly TEXT_SNACKBAR_ERROR_TYPE: () => string = \n () => `El formato del archivo no es válido`; \n\n private readonly TEXT_SNACKBAR_ERROR_SIZE: ( maxSize: string ) => string = \n ( maxSize ) => `El archivo es muy grande. Máximo ${ maxSize }`;\n\n private readonly TEXT_SNACKBAR_ERROR_DELETE: ( typeFile: string ) => string = \n ( typeFile ) => `Tu ${ this.typeTextFile ? this.typeTextFile : typeFile === 'file' ? 'archivo' : 'imagen' } fue ${ typeFile === 'file' ? 'eliminado' : 'eliminada' }`;\n\n /**\n * Muestra el componente de randstad-snackbar globalmente.\n * Asume que el componente existe en el DOM principal.\n \n @param message El mensaje de error a mostrar.\n @param duration El tiempo en milisegundos que el snackbar debe permanecer abierto.\n */\n protected showSnackbar( message: string, duration: number = 5000, type: 'success' | 'error' ): void {\n // Buscamos el componente randstad-snackbar en el DOM global.\n // Usamos 'any' porque el tipo RandstadSnackbar no está importado aquí.\n const snackbar = document.querySelector( 'randstad-snackbar' ) as any; \n \n if ( snackbar ) {\n // Limpiamos cualquier temporizador anterior de inmediato para detener el cierre automático del mensaje viejo.\n clearTimeout((snackbar as any).timer);\n if (snackbar.open) {\n snackbar.open = false;\n }\n // Configuramos el contenido y el tipo para un error\n setTimeout(() => {\n snackbar.type = type;\n snackbar.icon = type === 'error' ? 'warning' : 'check';\n snackbar.message = message;\n snackbar.open = true; // Abrimos el snackbar\n\n // Iniciamos el temporizador exclusivo para este nuevo mensaje.\n (snackbar as any).timer = setTimeout(() => snackbar.open = false, duration);\n }, 150);\n } else {\n console.warn( 'randstad-snackbar component not found in the DOM. Cannot show alert.');\n }\n }\n\n /**\n Convierte el tamaño máximo de archivo de bytes a megabytes (MB) para mostrar en la interfaz de usuario.\n \n @param maxFileSize El tamaño máximo de archivo en bytes.\n\n @returns El tamaño máximo del archivo en megabytes.\n */\n protected baseGetTextMaxFileSize( maxFileSize: number ): string {\n const ONE_MB: number = 1048576; \n const ONE_KB: number = 1024;\n\n if ( maxFileSize >= ONE_MB ) {\n const sizeMB: number = maxFileSize / ONE_MB;\n const sizeMBString: string = parseFloat( sizeMB.toPrecision( 3 ) ).toString();\n\n return `${ sizeMBString } MB`; \n }\n\n const sizeKB: number = Math.round( maxFileSize / ONE_KB );\n return `${ sizeKB } KB`;\n }\n\n /**\n * Convierte una lista de tipos MIME en un string de nombres de archivos legibles.\n * Por ejemplo, 'application/pdf' se convierte en 'PDF'.\n \n @param acceptedFileTypes Un array de strings con los tipos MIME aceptados.\n @param typeMapping Un objeto que mapea los tipos MIME a nombres legibles.\n\n @returns Un string con los nombres de archivo aceptados, separados por comas y 'y'.\n */\n protected getReadableFileTypes( acceptedFileTypes: string[], typeMapping: { [key: string]: string } ): string {\n // Convertimos los tipos MIME a nombres legibles\n const readableTypes: string[] = acceptedFileTypes.map( type => typeMapping[ type ] || type );\n\n // Si solo hay un tipo, lo retornamos directamente\n if ( readableTypes.length <= 1 ) return readableTypes.join( '' );\n\n // Obtenemos el último elemento\n const lastType: string | undefined = readableTypes.pop();\n\n // Unimos el resto con comas y agregamos el último con ' y '\n return `${ readableTypes.join(', ') } y ${ lastType }`;\n }\n\n /**\n * Valida una lista de archivos contra el tamaño máximo y los tipos de archivo aceptados.\n \n @param filesToValidate Un array de objetos File a validar.\n @param maxFileSize El tamaño máximo permitido para un archivo en bytes.\n @param acceptedFileTypes Un array de strings con los tipos MIME aceptados.\n @param errorMessageType El mensaje de error a mostrar si el tipo de archivo no es válido.\n @param errorMessageSize El mensaje de error a mostrar si el tamaño del archivo excede el límite.\n @param typeError El tipo de error que se está manejando ('image' o 'file').\n \n @returns true si todos los archivos son válidos, de lo contrario, false.\n */\n protected validateFiles( filesToValidate: File[], maxFileSize: number, acceptedFileTypes: string[], errorMessageType: string, errorMessageSize: string, typeError: 'image' | 'file' ): boolean {\n // Determinamos si hay una restricción de tamaño.\n const hasSizeLimit: boolean = maxFileSize > 0; \n \n // Determinamos si hay una restricción de tipo.\n const hasTypeLimit: boolean = acceptedFileTypes.length > 0;\n \n for ( const file of filesToValidate ) {\n // Extracts the file extension from the file name and normalizes it to lowercase (e.g. 'JPG' → '.jpg')\n const fileExtension: string = '.' + file.name.split( '.' ).pop()?.toLowerCase();\n // Checks if the file's MIME type (e.g. 'image/jpeg') is in the accepted types list\n const isTypeValid: boolean = acceptedFileTypes.includes( file.type );\n // Checks if the file extension matches one of the accepted MIME types\n const isExtensionValid: boolean = acceptedFileTypes.some( type => {\n // Extracts the subtype from the MIME string (e.g. 'jpeg' from 'image/jpeg')\n const ext = type.split( '/' )[ 1 ];\n // Special case: 'image/jpeg' covers both .jpg and .jpeg, but NOT .jpe or other aliases\n if ( ext === 'jpeg' ) return fileExtension === '.jpeg' || fileExtension === '.jpg';\n // For all other types, the extension must match exactly (e.g. '.png' === '.png')\n return fileExtension === `.${ ext }`;\n });\n\n // Rejects the file if either the MIME type or the extension doesn't pass validation\n if ( hasTypeLimit && ( !isTypeValid || !isExtensionValid ) ) {\n this.setError( typeError, errorMessageType, this.TEXT_SNACKBAR_ERROR_TYPE() );\n return false;\n }\n\n if ( hasSizeLimit && file.size > maxFileSize ) {\n this.setError( typeError, errorMessageSize, this.TEXT_SNACKBAR_ERROR_SIZE( this.baseGetTextMaxFileSize( maxFileSize ) ) );\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * Maneja los archivos seleccionados por el usuario.\n * Realiza validaciones de cantidad y tipo, y actualiza la lista de archivos.\n \n @param files La lista de archivos de un input de tipo file.\n @param config Un objeto de configuración que contiene los parámetros de validación (`baseMaxFiles`, `maxFileSize`, etc.) y mensajes de error.\n */\n protected async baseHandleFiles( files: FileList | null, config: FileHandlerConfig ) {\n const { baseMaxFiles, maxFileSize, acceptedFileTypes, errorMessageType, errorMessageSize, typeError } = config;\n\n this.setError( typeError, null, null );\n if ( !files || this.disabled || this.loading ) return;\n\n const currentFiles: File[] = Array.isArray( this.files ) ? this.files : [];\n \n // Aseguramos que el valor de maxFiles sea un número válido.\n const maxFiles: number = Number.isFinite( baseMaxFiles ) && baseMaxFiles > 0 ? baseMaxFiles : 1;\n const remainingSlots: number = maxFiles - currentFiles.length;\n \n if ( remainingSlots <= 0 ) {\n const baseErrorTextMessage: string = `Alcanzaste el número máximo de archivos`;\n this.setError( typeError, baseErrorTextMessage, baseErrorTextMessage );\n\n return;\n }\n\n const selected: File[] = Array.from( files ).slice( 0, remainingSlots );\n if ( selected.length === 0 ) return;\n\n if ( !this.validateFiles( selected, maxFileSize, acceptedFileTypes, errorMessageType, errorMessageSize, typeError ) ) return;\n\n const delay: number = this.simulatedDelay ?? 0;\n\n if ( delay <= 0 ) {\n this.files = [ ...currentFiles, ...selected ];\n this.dispatchEvent( new CustomEvent( 'files-changed', { detail: this.files } ) );\n \n return;\n }\n\n this.loading = true;\n this.progress = 0;\n\n await this.updateComplete;\n\n const startTime: number = Date.now();\n const interval = setInterval( () => {\n const elapsedTime: number = Date.now() - startTime;\n const newProgress: number = Math.min( Math.round( ( elapsedTime / delay ) * 100 ), 100 );\n\n this.progress = newProgress;\n\n if ( this.progress >= 100 ) {\n clearInterval( interval );\n\n this.files = [ ...currentFiles, ...selected ];\n this.loading = false;\n this.progress = 0;\n\n this.dispatchEvent( new CustomEvent( 'files-changed', { detail: this.files } ) );\n }\n }, 10);\n\n if ( this.fileInput ) this.fileInput.value = ''; \n }\n\n /**\n * Maneja los archivos seleccionados por el usuario, aplicando validaciones de cantidad y tipo, y gestionando el proceso de carga simulado.\n \n @param files La lista de archivos (`FileList`) seleccionados de un `input` de tipo `file`.\n @param config Un objeto de configuración que contiene los parámetros de validación (`baseMaxFiles`, `maxFileSize`, etc.) y mensajes de error.\n */\n protected baseOnFileInputChange( event: Event, config: FileHandlerConfig ) {\n const target: HTMLInputElement = event.target as HTMLInputElement;\n \n this.baseHandleFiles( target.files, config );\n if ( this.fileInput ) this.fileInput.value = '';\n }\n\n /**\n * Elimina un archivo de la lista de archivos seleccionados.\n \n @param index El índice del archivo a eliminar.\n @param typeError El tipo de error que se está manejando ('image' o 'file').\n */\n protected removeFile( index: number, typeError: 'image' | 'file' ) {\n this.files = this.files.filter( ( _, i ) => i !== index );\n this.dispatchEvent( new CustomEvent( 'files-changed', { detail: this.files } ) );\n\n if ( this.files.length === 0 ) this.setError( typeError, null, null );\n if ( this.showAlertInError ) this.showSnackbar( this.TEXT_SNACKBAR_ERROR_DELETE( typeError ), 5000, 'success' );\n }\n\n /**\n Establece el estado de error y el mensaje de error correspondiente para el componente.\n \n @param typeError Indica el tipo de componente de carga de archivos ('image' o 'file').\n @param message El mensaje de error a mostrar. Si es `null`, el estado de error se desactiva.\n */\n private setError( typeError: 'image' | 'file' = 'file', message: string | null, snackbarMessage: string | null ) {\n if( typeError === 'file' ){\n this.error = message ? true : false;\n this.errorMessage = message;\n } \n\n if( typeError === 'image' ) this.errorTextMessage = message;\n\n if ( this.showAlertInError && snackbarMessage ) this.showSnackbar( snackbarMessage, 5000, 'error' );\n }\n\n public renderLoadingContainer( htmlSlotContent: TemplateResult ) {\n return html `\n ${ this.loading\n ? html`\n <div class=\"progress-bar-container\">\n <div class=\"progress-bar\" role=\"progressbar\" aria-label=\"Subiendo archivo…\">\n <div class=\"progress-bar-fill\" style=\"width: ${ this.progress }%;\"></div>\n </div>\n </div>\n `\n : html`\n ${ htmlSlotContent }\n `\n }\n `;\n }\n}","export const IMAGE_TYPE_MAPPING: { [key: string]: string } = {\n 'image/jpg': '.jpg',\n 'image/jpeg': '.jpeg',\n 'image/png': '.png'\n};\n\nexport const FILE_TYPE_MAPPING: { [key: string]: string } = {\n 'application/pdf': '.pdf',\n 'application/msword': '.doc',\n 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': '.docx',\n\n ...IMAGE_TYPE_MAPPING,\n\n 'text/plain': '.txt',\n\n // Agregar más tipos si se necesitaran\n};","import { css, CSSResult } from 'lit';\n \nexport const progressBarUploadStyles: CSSResult = css`\n .progress-bar-container {\n min-height: 23px;\n display: flex;\n align-items: center;\n }\n\n .progress-bar {\n min-width: 80px;\n height: 8px;\n background-color: var( --secondary-color-20 );\n border-radius: 999px;\n overflow: hidden;\n }\n\n .progress-bar-fill {\n height: 100%;\n background-color: var( --primary-color );\n transition: width 0.1s ease;\n }\n`;","import { html, css, TemplateResult, nothing } from 'lit';\r\nimport { customElement, property, state } from 'lit/decorators.js';\r\nimport { BaseUpload, FileHandlerConfig } from '../helpers/BaseUpload';\r\nimport { bodyS, bodyXS } from '../styles/fontStyles'; \r\nimport { IMAGE_TYPE_MAPPING } from '../utils/file-format';\r\nimport { progressBarUploadStyles } from '../styles/progress-bar-upload';\r\nimport { mixStyles } from '../styles/mix';\r\n\r\n@customElement('upload-image')\r\nexport class UploadImage extends BaseUpload {\r\n @property({ type: Array }) acceptedFileTypes: string[] = []; \r\n @property({ type: Number }) maxFiles = 3;\r\n @property({ type: Number }) maxFileSize = 0;\r\n\r\n @property({ type: Boolean }) isShowInfoSize = true;\r\n @property({ type: Boolean }) isChangeStyleError = false;\r\n\r\n @state() private isDragging = false;\r\n @state() private imageUrls: string[] = [];\r\n\r\n @state() private isMaxFilesReached: boolean = false;\r\n\r\n static styles = css`\r\n ${ mixStyles }\r\n ${ progressBarUploadStyles }\r\n\r\n :host {\r\n font-family: 'Graphik', sans-serif;\r\n }\r\n\r\n .image-container {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n }\r\n\r\n .upload-component-wrapper {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n }\r\n\r\n .container {\r\n display: flex;\r\n gap: 16px;\r\n flex-direction: column;\r\n border: 1px solid var( --secondary-color-10 );\r\n border-radius: 4px;\r\n padding: 16px;\r\n align-items: center;\r\n background-color: var( --white );\r\n transition: border 0.2s ease, outline 0.2s ease;\r\n }\r\n\r\n .container.dragging {\r\n border: 1px dashed var( --secondary-color-40 );\r\n }\r\n\r\n .icon {\r\n width: 40px;\r\n height: 40px\r\n }\r\n\r\n .text-container {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n gap: 8px;\r\n }\r\n\r\n .text-main {\r\n ${ bodyS };\r\n text-align: center;\r\n vertical-align: middle;\r\n color: var( --secondary-color-80 );\r\n }\r\n\r\n .text-secondary {\r\n ${ bodyXS };\r\n text-align: center;\r\n vertical-align: middle;\r\n color: var( --secondary-color-60 );\r\n }\r\n\r\n .text-tertiary {\r\n ${ bodyXS };\r\n text-align: center;\r\n vertical-align: middle;\r\n color: var( --secondary-color-40 );\r\n }\r\n\r\n .button {\r\n ${ bodyXS };\r\n background-color: var( --primary-color );\r\n border: none;\r\n padding: 4px 16px;\r\n cursor: pointer;\r\n border-radius: 4px;\r\n color: var(--white);\r\n text-align: center;\r\n vertical-align: middle;\r\n }\r\n\r\n :host([disabled]) .button, .container[disabled] .button {\r\n background-color: var( --secondary-color-20 );\r\n color: var( --secondary-color-80 );\r\n cursor: default;\r\n }\r\n\r\n input[type=\"file\"] {\r\n display: none;\r\n }\r\n \r\n .image-gallery {\r\n display: flex;\r\n flex-wrap: wrap;\r\n gap: 16px;\r\n width: 100%;\r\n }\r\n\r\n .image-item {\r\n position: relative; \r\n width: 100px;\r\n height: 99px;\r\n border: 1px solid transparent;\r\n border-radius: 4px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n background: transparent;\r\n }\r\n\r\n .image-item img {\r\n width: 100%;\r\n height: 100%;\r\n object-fit: contain;\r\n opacity: 0.85;\r\n }\r\n\r\n /* Solución definitiva para el posicionamiento y el padding del botón. */\r\n .image-item randstad-button {\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n z-index: 10;\r\n --content-padding: 8px;\r\n }\r\n\r\n .text-main.error {\r\n color: var(--ui-negative, #E00F0F);\r\n }\r\n `;\r\n\r\n private getFileConfig(): FileHandlerConfig {\r\n const baseMessageError: string = 'tu archivo no es válido';\r\n const hasSizeLimit: boolean = this.maxFileSize > 0;\r\n const hasTypeLimit: boolean = this.acceptedFileTypes.length > 0;\r\n\r\n return {\r\n baseMaxFiles: this.maxFiles,\r\n maxFileSize: this.maxFileSize,\r\n acceptedFileTypes: this.acceptedFileTypes,\r\n errorMessageType: hasTypeLimit ? baseMessageError : '',\r\n errorMessageSize: hasSizeLimit ? baseMessageError : '',\r\n typeError: 'image'\r\n };\r\n }\r\n\r\n private getTextAcceptedFileTypes(): string {\r\n return this.getReadableFileTypes( this.acceptedFileTypes, IMAGE_TYPE_MAPPING );\r\n }\r\n\r\n private getTextMaxFileSize(): string {\r\n return this.baseGetTextMaxFileSize( this.maxFileSize );\r\n }\r\n \r\n public updated( changedProperties: Map<string | number | symbol, unknown> ): void {\r\n if ( changedProperties.has( 'files' ) && this.files ) {\r\n this.imageUrls.forEach( url => URL.revokeObjectURL( url ) );\r\n this.imageUrls = this.files.map( file => URL.createObjectURL( file ) );\r\n }\r\n }\r\n \r\n public disconnectedCallback() {\r\n super.disconnectedCallback();\r\n this.imageUrls.forEach( url => URL.revokeObjectURL( url ) );\r\n }\r\n\r\n private async handleFiles( files: FileList | null ) {\r\n await this.baseHandleFiles( files, this.getFileConfig() );\r\n }\r\n\r\n private onFileInputChange( event: Event ) {\r\n this.baseOnFileInputChange( event, this.getFileConfig() );\r\n }\r\n\r\n private onDrop( event: DragEvent ) {\r\n event.preventDefault();\r\n if ( this.disabled ) return;\r\n\r\n this.isDragging = false;\r\n this.handleFiles( event.dataTransfer?.files || null );\r\n }\r\n\r\n private onDragOver( event: DragEvent ) {\r\n event.preventDefault();\r\n\r\n if ( this.disabled ) return;\r\n this.isDragging = true;\r\n }\r\n\r\n private onDragLeave( event: DragEvent ) {\r\n event.preventDefault();\r\n\r\n if ( this.disabled ) return;\r\n this.isDragging = false;\r\n }\r\n\r\n public willUpdate( changedProperties: Map<string | number | symbol, unknown> ) {\r\n if ( !changedProperties.has( 'files' ) ) return;\r\n this.isMaxFilesReached = ( this.files || [] ).length >= 3;\r\n\r\n if ( changedProperties.has( 'maxFiles' ) || changedProperties.size === 0 ) \r\n this.isMultiple = this.maxFiles > 1; \r\n }\r\n\r\n private handleButtonKeydown( event: KeyboardEvent, isDisabled: boolean ): void {\r\n if ( isDisabled ) return;\r\n\r\n if ( event.key === 'Enter' || event.key === ' ' ) {\r\n event.preventDefault(); \r\n \r\n const inputElement: HTMLInputElement = (event.currentTarget as HTMLElement | null)?.querySelector( 'input[type=\"file\"]' ) as HTMLInputElement;\r\n if ( inputElement && !inputElement.disabled ) inputElement.click(); \r\n }\r\n }\r\n\r\n public render() {\r\n const isUploadDisabled: boolean = this.disabled || this.isMaxFilesReached;\r\n const isRemoveButtonDisabled: boolean = this.disabled;\r\n\r\n // Comprobaciones de límite para la UI\r\n const hasSizeLimit: boolean = this.maxFileSize > 0;\r\n const hasTypeLimit: boolean = this.acceptedFileTypes.length > 0;\r\n const hasSizeLimitText: boolean = this.isShowInfoSize === false ? false : true;\r\n\r\n // Generar textos condicionales para la UI\r\n const sizeText: string = hasSizeLimit && hasSizeLimitText ? ` / max. ${ this.getTextMaxFileSize() }` : '';\r\n const typeText: string = hasTypeLimit ? this.getTextAcceptedFileTypes() : '';\r\n\r\n // Determinar el ícono y el texto en base al estado de error\r\n const errorText: boolean = this.isChangeStyleError === true ? true : false;\r\n const hasError: boolean = !!this.errorTextMessage; \r\n const applyErrorStyle: boolean = hasError && errorText;\r\n\r\n const mainText: string = applyErrorStyle && this.errorTextMessage ? this.errorTextMessage : `subí hasta ${ this.maxFiles } imágenes`;\r\n const iconSrc: string = applyErrorStyle ? 'assets/img/image-upload-error.svg' : ( isUploadDisabled \r\n ? 'assets/img/image-upload-disabled.svg' \r\n : 'assets/img/image-upload-circle.svg' \r\n );\r\n\r\n const containerClass: string = `container ${ this.isDragging ? 'dragging' : '' } ${ applyErrorStyle ? 'error' : '' }`;\r\n\r\n const inputBaseTemplate: TemplateResult = html`\r\n <label class=\"button\"\r\n tabindex=\"0\" \r\n @keydown=${ ( event: KeyboardEvent ) => this.handleButtonKeydown( event, isUploadDisabled ) }\r\n \r\n >\r\n agregar archivo\r\n\r\n <input\r\n type=\"file\"\r\n accept=${ this.acceptedFileTypes.join(',') }\r\n ?multiple=${ this.isMultiple }\r\n @change=\"${ this.onFileInputChange }\"\r\n ?disabled=\"${ isUploadDisabled }\"\r\n />\r\n </label>\r\n `;\r\n \r\n return html`\r\n <div class=\"image-container\" style=\"${ this.labelColor ? ` --label-color: ${ this.labelColor }` : ''}\">\r\n ${ this.label \r\n ? html` ${ this.renderLabelContainer() } `\r\n : nothing\r\n }\r\n \r\n <div class=\"upload-component-wrapper\">\r\n ${ this.imageUrls.length > 0\r\n ? html`\r\n <div class=\"image-gallery\">\r\n ${ this.imageUrls.map( ( url, index ) => \r\n html`\r\n <div class=\"image-item\">\r\n <img src=\"${ url }\" loading=\"lazy\" alt=\"Uploaded image\" />\r\n\r\n <randstad-button\r\n .variant=${ 'button-icon' }\r\n .iconName=${ 'trash' }\r\n @click=${ () => this.removeFile( index, 'image' ) }\r\n ?disabled=${ isRemoveButtonDisabled }\r\n >\r\n </randstad-button>\r\n </div>\r\n `\r\n )}\r\n </div>\r\n `\r\n : ''\r\n }\r\n\r\n <div\r\n class=\"${ containerClass }\"\r\n ?disabled=\"${ isUploadDisabled }\"\r\n @drop=\"${ this.onDrop }\"\r\n @dragover=\"${ this.onDragOver }\"\r\n @dragleave=\"${ this.onDragLeave }\"\r\n >\r\n <img\r\n class=\"icon\"\r\n src=${ iconSrc }\r\n alt=\"Subir imagen\"\r\n />\r\n\r\n <div class=\"text-container\">\r\n <div class=\"text-main ${ applyErrorStyle ? 'error' : '' }\">${ mainText }</div>\r\n\r\n <div class=\"text-secondary\">\r\n Podés agregar un archivo o arrastrar y soltar acá\r\n </div>\r\n\r\n <div class=\"text-tertiary\">${ typeText }${ sizeText }</div>\r\n </div>\r\n\r\n ${ this.renderLoadingContainer( inputBaseTemplate ) }\r\n </div>\r\n </div>\r\n </div>\r\n `;\r\n }\r\n}","/**\n * @module constants\n * @summary Useful constants\n * @description\n * Collection of useful date constants.\n *\n * The constants could be imported from `date-fns/constants`:\n *\n * ```ts\n * import { maxTime, minTime } from \"./constants/date-fns/constants\";\n *\n * function isAllowedTime(time) {\n * return time <= maxTime && time >= minTime;\n * }\n * ```\n */\n\n/**\n * @constant\n * @name daysInWeek\n * @summary Days in 1 week.\n */\nexport const daysInWeek = 7;\n\n/**\n * @constant\n * @name daysInYear\n * @summary Days in 1 year.\n *\n * @description\n * How many days in a year.\n *\n * One years equals 365.2425 days according to the formula:\n *\n * > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400.\n * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days\n */\nexport const daysInYear = 365.2425;\n\n/**\n * @constant\n * @name maxTime\n * @summary Maximum allowed time.\n *\n * @example\n * import { maxTime } from \"./constants/date-fns/constants\";\n *\n * const isValid = 8640000000000001 <= maxTime;\n * //=> false\n *\n * new Date(8640000000000001);\n * //=> Invalid Date\n */\nexport const maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;\n\n/**\n * @constant\n * @name minTime\n * @summary Minimum allowed time.\n *\n * @example\n * import { minTime } from \"./constants/date-fns/constants\";\n *\n * const isValid = -8640000000000001 >= minTime;\n * //=> false\n *\n * new Date(-8640000000000001)\n * //=> Invalid Date\n */\nexport const minTime = -maxTime;\n\n/**\n * @constant\n * @name millisecondsInWeek\n * @summary Milliseconds in 1 week.\n */\nexport const millisecondsInWeek = 604800000;\n\n/**\n * @constant\n * @name millisecondsInDay\n * @summary Milliseconds in 1 day.\n */\nexport const millisecondsInDay = 86400000;\n\n/**\n * @constant\n * @name millisecondsInMinute\n * @summary Milliseconds in 1 minute\n */\nexport const millisecondsInMinute = 60000;\n\n/**\n * @constant\n * @name millisecondsInHour\n * @summary Milliseconds in 1 hour\n */\nexport const millisecondsInHour = 3600000;\n\n/**\n * @constant\n * @name millisecondsInSecond\n * @summary Milliseconds in 1 second\n */\nexport const millisecondsInSecond = 1000;\n\n/**\n * @constant\n * @name minutesInYear\n * @summary Minutes in 1 year.\n */\nexport const minutesInYear = 525600;\n\n/**\n * @constant\n * @name minutesInMonth\n * @summary Minutes in 1 month.\n */\nexport const minutesInMonth = 43200;\n\n/**\n * @constant\n * @name minutesInDay\n * @summary Minutes in 1 day.\n */\nexport const minutesInDay = 1440;\n\n/**\n * @constant\n * @name minutesInHour\n * @summary Minutes in 1 hour.\n */\nexport const minutesInHour = 60;\n\n/**\n * @constant\n * @name monthsInQuarter\n * @summary Months in 1 quarter.\n */\nexport const monthsInQuarter = 3;\n\n/**\n * @constant\n * @name monthsInYear\n * @summary Months in 1 year.\n */\nexport const monthsInYear = 12;\n\n/**\n * @constant\n * @name quartersInYear\n * @summary Quarters in 1 year\n */\nexport const quartersInYear = 4;\n\n/**\n * @constant\n * @name secondsInHour\n * @summary Seconds in 1 hour.\n */\nexport const secondsInHour = 3600;\n\n/**\n * @constant\n * @name secondsInMinute\n * @summary Seconds in 1 minute.\n */\nexport const secondsInMinute = 60;\n\n/**\n * @constant\n * @name secondsInDay\n * @summary Seconds in 1 day.\n */\nexport const secondsInDay = secondsInHour * 24;\n\n/**\n * @constant\n * @name secondsInWeek\n * @summary Seconds in 1 week.\n */\nexport const secondsInWeek = secondsInDay * 7;\n\n/**\n * @constant\n * @name secondsInYear\n * @summary Seconds in 1 year.\n */\nexport const secondsInYear = secondsInDay * daysInYear;\n\n/**\n * @constant\n * @name secondsInMonth\n * @summary Seconds in 1 month\n */\nexport const secondsInMonth = secondsInYear / 12;\n\n/**\n * @constant\n * @name secondsInQuarter\n * @summary Seconds in 1 quarter.\n */\nexport const secondsInQuarter = secondsInMonth * 3;\n\n/**\n * @constant\n * @name constructFromSymbol\n * @summary Symbol enabling Date extensions to inherit properties from the reference date.\n *\n * The symbol is used to enable the `constructFrom` function to construct a date\n * using a reference date and a value. It allows to transfer extra properties\n * from the reference date to the new date. It's useful for extensions like\n * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as\n * a constructor argument.\n */\nexport const constructFromSymbol = Symbol.for(\"constructDateFrom\");\n","import { constructFromSymbol } from \"./constants.js\";\n\n/**\n * @name constructFrom\n * @category Generic Helpers\n * @summary Constructs a date using the reference date and the value\n *\n * @description\n * The function constructs a new date using the constructor from the reference\n * date and the given value. It helps to build generic functions that accept\n * date extensions.\n *\n * It defaults to `Date` if the passed reference date is a number or a string.\n *\n * Starting from v3.7.0, it allows to construct a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The reference date to take constructor from\n * @param value - The value to create the date\n *\n * @returns Date initialized using the given date and value\n *\n * @example\n * import { constructFrom } from \"./constructFrom/date-fns\";\n *\n * // A function that clones a date preserving the original type\n * function cloneDate<DateType extends Date>(date: DateType): DateType {\n * return constructFrom(\n * date, // Use constructor from the given date\n * date.getTime() // Use the date value to create a new date\n * );\n * }\n */\nexport function constructFrom(date, value) {\n if (typeof date === \"function\") return date(value);\n\n if (date && typeof date === \"object\" && constructFromSymbol in date)\n return date[constructFromSymbol](value);\n\n if (date instanceof Date) return new date.constructor(value);\n\n return new Date(value);\n}\n\n// Fallback for modularized imports:\nexport default constructFrom;\n","import { constructFrom } from \"./constructFrom.js\";\n\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * Starting from v3.7.0, it clones a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param argument - The value to convert\n *\n * @returns The parsed date in the local time zone\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport function toDate(argument, context) {\n // [TODO] Get rid of `toDate` or `constructFrom`?\n return constructFrom(context || argument, argument);\n}\n\n// Fallback for modularized imports:\nexport default toDate;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addMonths} function options.\n */\n\n/**\n * @name addMonths\n * @category Month Helpers\n * @summary Add the specified number of months to the given date.\n *\n * @description\n * Add the specified number of months to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of months to be added.\n * @param options - The options object\n *\n * @returns The new date with the months added\n *\n * @example\n * // Add 5 months to 1 September 2014:\n * const result = addMonths(new Date(2014, 8, 1), 5)\n * //=> Sun Feb 01 2015 00:00:00\n *\n * // Add one month to 30 January 2023:\n * const result = addMonths(new Date(2023, 0, 30), 1)\n * //=> Tue Feb 28 2023 00:00:00\n */\nexport function addMonths(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n if (!amount) {\n // If 0 months, no-op to avoid changing times in the hour before end of DST\n return _date;\n }\n const dayOfMonth = _date.getDate();\n\n // The JS Date object supports date math by accepting out-of-bounds values for\n // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and\n // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we\n // want except that dates will wrap around the end of a month, meaning that\n // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So\n // we'll default to the end of the desired month by adding 1 to the desired\n // month and using a date of 0 to back up one day to the end of the desired\n // month.\n const endOfDesiredMonth = constructFrom(options?.in || date, _date.getTime());\n endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);\n const daysInMonth = endOfDesiredMonth.getDate();\n if (dayOfMonth >= daysInMonth) {\n // If we're already at the end of the month, then this is the correct date\n // and we're done.\n return endOfDesiredMonth;\n } else {\n // Otherwise, we now know that setting the original day-of-month value won't\n // cause an overflow, so set the desired day-of-month. Note that we can't\n // just set the date of `endOfDesiredMonth` because that object may have had\n // its time changed in the unusual case where where a DST transition was on\n // the last day of the month and its local time was in the hour skipped or\n // repeated next to a DST transition. So we use `date` instead which is\n // guaranteed to still have the original time.\n _date.setFullYear(\n endOfDesiredMonth.getFullYear(),\n endOfDesiredMonth.getMonth(),\n dayOfMonth,\n );\n return _date;\n }\n}\n\n// Fallback for modularized imports:\nexport default addMonths;\n","let defaultOptions = {};\n\nexport function getDefaultOptions() {\n return defaultOptions;\n}\n\nexport function setDefaultOptions(newOptions) {\n defaultOptions = newOptions;\n}\n","import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfWeek} function options.\n */\n\n/**\n * @name startOfWeek\n * @category Week Helpers\n * @summary Return the start of a week for the given date.\n *\n * @description\n * Return the start of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week\n *\n * @example\n * // The start of a week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date, options?.in);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n\n _date.setDate(_date.getDate() - diff);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeek;\n","import { startOfWeek } from \"./startOfWeek.js\";\n\n/**\n * The {@link startOfISOWeek} function options.\n */\n\n/**\n * @name startOfISOWeek\n * @category ISO Week Helpers\n * @summary Return the start of an ISO week for the given date.\n *\n * @description\n * Return the start of an ISO week for the given date.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of an ISO week\n *\n * @example\n * // The start of an ISO week for 2 September 2014 11:55:00:\n * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfISOWeek(date, options) {\n return startOfWeek(date, { ...options, weekStartsOn: 1 });\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeek;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISOWeekYear} function options.\n */\n\n/**\n * @name getISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Get the ISO week-numbering year of the given date.\n *\n * @description\n * Get the ISO week-numbering year of the given date,\n * which always starts 3 days before the year's first Thursday.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n *\n * @returns The ISO week-numbering year\n *\n * @example\n * // Which ISO-week numbering year is 2 January 2005?\n * const result = getISOWeekYear(new Date(2005, 0, 2))\n * //=> 2004\n */\nexport function getISOWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);\n fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);\n\n const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);\n fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);\n fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);\n\n if (_date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (_date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getISOWeekYear;\n","import { toDate } from \"../toDate.js\";\n\n/**\n * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.\n * They usually appear for dates that denote time before the timezones were introduced\n * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891\n * and GMT+01:00:00 after that date)\n *\n * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,\n * which would lead to incorrect calculations.\n *\n * This function returns the timezone offset in milliseconds that takes seconds in account.\n */\nexport function getTimezoneOffsetInMilliseconds(date) {\n const _date = toDate(date);\n const utcDate = new Date(\n Date.UTC(\n _date.getFullYear(),\n _date.getMonth(),\n _date.getDate(),\n _date.getHours(),\n _date.getMinutes(),\n _date.getSeconds(),\n _date.getMilliseconds(),\n ),\n );\n utcDate.setUTCFullYear(_date.getFullYear());\n return +date - +utcDate;\n}\n","import { constructFrom } from \"../constructFrom.js\";\n\nexport function normalizeDates(context, ...dates) {\n const normalize = constructFrom.bind(\n null,\n context || dates.find((date) => typeof date === \"object\"),\n );\n return dates.map(normalize);\n}\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfDay} function options.\n */\n\n/**\n * @name startOfDay\n * @category Day Helpers\n * @summary Return the start of a day for the given date.\n *\n * @description\n * Return the start of a day for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - The options\n *\n * @returns The start of a day\n *\n * @example\n * // The start of a day for 2 September 2014 11:55:00:\n * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 00:00:00\n */\nexport function startOfDay(date, options) {\n const _date = toDate(date, options?.in);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfDay;\n","import { addMonths } from \"./addMonths.js\";\n\n/**\n * The {@link addYears} function options.\n */\n\n/**\n * @name addYears\n * @category Year Helpers\n * @summary Add the specified number of years to the given date.\n *\n * @description\n * Add the specified number of years to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type.\n *\n * @param date - The date to be changed\n * @param amount - The amount of years to be added.\n * @param options - The options\n *\n * @returns The new date with the years added\n *\n * @example\n * // Add 5 years to 1 September 2014:\n * const result = addYears(new Date(2014, 8, 1), 5)\n * //=> Sun Sep 01 2019 00:00:00\n */\nexport function addYears(date, amount, options) {\n return addMonths(date, amount * 12, options);\n}\n\n// Fallback for modularized imports:\nexport default addYears;\n","import { isDate } from \"./isDate.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * @name isValid\n * @category Common Helpers\n * @summary Is the given date valid?\n *\n * @description\n * Returns false if argument is Invalid Date and true otherwise.\n * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)\n * Invalid Date is a Date, whose time value is NaN.\n *\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @param date - The date to check\n *\n * @returns The date is valid\n *\n * @example\n * // For the valid date:\n * const result = isValid(new Date(2014, 1, 31))\n * //=> true\n *\n * @example\n * // For the value, convertible into a date:\n * const result = isValid(1393804800000)\n * //=> true\n *\n * @example\n * // For the invalid date:\n * const result = isValid(new Date(''))\n * //=> false\n */\nexport function isValid(date) {\n return !((!isDate(date) && typeof date !== \"number\") || isNaN(+toDate(date)));\n}\n\n// Fallback for modularized imports:\nexport default isValid;\n","/**\n * @name isDate\n * @category Common Helpers\n * @summary Is the given value a date?\n *\n * @description\n * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.\n *\n * @param value - The value to check\n *\n * @returns True if the given value is a date\n *\n * @example\n * // For a valid date:\n * const result = isDate(new Date())\n * //=> true\n *\n * @example\n * // For an invalid date:\n * const result = isDate(new Date(NaN))\n * //=> true\n *\n * @example\n * // For some value:\n * const result = isDate('2014-02-31')\n * //=> false\n *\n * @example\n * // For an object:\n * const result = isDate({})\n * //=> false\n */\nexport function isDate(value) {\n return (\n value instanceof Date ||\n (typeof value === \"object\" &&\n Object.prototype.toString.call(value) === \"[object Date]\")\n );\n}\n\n// Fallback for modularized imports:\nexport default isDate;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfMonth} function options.\n */\n\n/**\n * @name startOfMonth\n * @category Month Helpers\n * @summary Return the start of a month for the given date.\n *\n * @description\n * Return the start of a month for the given date. The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments.\n * Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed,\n * or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a month\n *\n * @example\n * // The start of a month for 2 September 2014 11:55:00:\n * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n _date.setDate(1);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfMonth;\n","const formatDistanceLocale = {\n lessThanXSeconds: {\n one: \"less than a second\",\n other: \"less than {{count}} seconds\",\n },\n\n xSeconds: {\n one: \"1 second\",\n other: \"{{count}} seconds\",\n },\n\n halfAMinute: \"half a minute\",\n\n lessThanXMinutes: {\n one: \"less than a minute\",\n other: \"less than {{count}} minutes\",\n },\n\n xMinutes: {\n one: \"1 minute\",\n other: \"{{count}} minutes\",\n },\n\n aboutXHours: {\n one: \"about 1 hour\",\n other: \"about {{count}} hours\",\n },\n\n xHours: {\n one: \"1 hour\",\n other: \"{{count}} hours\",\n },\n\n xDays: {\n one: \"1 day\",\n other: \"{{count}} days\",\n },\n\n aboutXWeeks: {\n one: \"about 1 week\",\n other: \"about {{count}} weeks\",\n },\n\n xWeeks: {\n one: \"1 week\",\n other: \"{{count}} weeks\",\n },\n\n aboutXMonths: {\n one: \"about 1 month\",\n other: \"about {{count}} months\",\n },\n\n xMonths: {\n one: \"1 month\",\n other: \"{{count}} months\",\n },\n\n aboutXYears: {\n one: \"about 1 year\",\n other: \"about {{count}} years\",\n },\n\n xYears: {\n one: \"1 year\",\n other: \"{{count}} years\",\n },\n\n overXYears: {\n one: \"over 1 year\",\n other: \"over {{count}} years\",\n },\n\n almostXYears: {\n one: \"almost 1 year\",\n other: \"almost {{count}} years\",\n },\n};\n\nexport const formatDistance = (token, count, options) => {\n let result;\n\n const tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === \"string\") {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace(\"{{count}}\", count.toString());\n }\n\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return \"in \" + result;\n } else {\n return result + \" ago\";\n }\n }\n\n return result;\n};\n","export function buildFormatLongFn(args) {\n return (options = {}) => {\n // TODO: Remove String()\n const width = options.width ? String(options.width) : args.defaultWidth;\n const format = args.formats[width] || args.formats[args.defaultWidth];\n return format;\n };\n}\n","import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.js\";\n\nconst dateFormats = {\n full: \"EEEE, MMMM do, y\",\n long: \"MMMM do, y\",\n medium: \"MMM d, y\",\n short: \"MM/dd/yyyy\",\n};\n\nconst timeFormats = {\n full: \"h:mm:ss a zzzz\",\n long: \"h:mm:ss a z\",\n medium: \"h:mm:ss a\",\n short: \"h:mm a\",\n};\n\nconst dateTimeFormats = {\n full: \"{{date}} 'at' {{time}}\",\n long: \"{{date}} 'at' {{time}}\",\n medium: \"{{date}}, {{time}}\",\n short: \"{{date}}, {{time}}\",\n};\n\nexport const formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: \"full\",\n }),\n\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: \"full\",\n }),\n\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: \"full\",\n }),\n};\n","const formatRelativeLocale = {\n lastWeek: \"'last' eeee 'at' p\",\n yesterday: \"'yesterday at' p\",\n today: \"'today at' p\",\n tomorrow: \"'tomorrow at' p\",\n nextWeek: \"eeee 'at' p\",\n other: \"P\",\n};\n\nexport const formatRelative = (token, _date, _baseDate, _options) =>\n formatRelativeLocale[token];\n","/**\n * The localize function argument callback which allows to convert raw value to\n * the actual type.\n *\n * @param value - The value to convert\n *\n * @returns The converted value\n */\n\n/**\n * The map of localized values for each width.\n */\n\n/**\n * The index type of the locale unit value. It types conversion of units of\n * values that don't start at 0 (i.e. quarters).\n */\n\n/**\n * Converts the unit value to the tuple of values.\n */\n\n/**\n * The tuple of localized era values. The first element represents BC,\n * the second element represents AD.\n */\n\n/**\n * The tuple of localized quarter values. The first element represents Q1.\n */\n\n/**\n * The tuple of localized day values. The first element represents Sunday.\n */\n\n/**\n * The tuple of localized month values. The first element represents January.\n */\n\nexport function buildLocalizeFn(args) {\n return (value, options) => {\n const context = options?.context ? String(options.context) : \"standalone\";\n\n let valuesArray;\n if (context === \"formatting\" && args.formattingValues) {\n const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n const width = options?.width ? String(options.width) : defaultWidth;\n\n valuesArray =\n args.formattingValues[width] || args.formattingValues[defaultWidth];\n } else {\n const defaultWidth = args.defaultWidth;\n const width = options?.width ? String(options.width) : args.defaultWidth;\n\n valuesArray = args.values[width] || args.values[defaultWidth];\n }\n const index = args.argumentCallback ? args.argumentCallback(value) : value;\n\n // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!\n return valuesArray[index];\n };\n}\n","export function buildMatchFn(args) {\n return (string, options = {}) => {\n const width = options.width;\n\n const matchPattern =\n (width && args.matchPatterns[width]) ||\n args.matchPatterns[args.defaultMatchWidth];\n const matchResult = string.match(matchPattern);\n\n if (!matchResult) {\n return null;\n }\n const matchedString = matchResult[0];\n\n const parsePatterns =\n (width && args.parsePatterns[width]) ||\n args.parsePatterns[args.defaultParseWidth];\n\n const key = Array.isArray(parsePatterns)\n ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))\n : // [TODO] -- I challenge you to fix the type\n findKey(parsePatterns, (pattern) => pattern.test(matchedString));\n\n let value;\n\n value = args.valueCallback ? args.valueCallback(key) : key;\n value = options.valueCallback\n ? // [TODO] -- I challenge you to fix the type\n options.valueCallback(value)\n : value;\n\n const rest = string.slice(matchedString.length);\n\n return { value, rest };\n };\n}\n\nfunction findKey(object, predicate) {\n for (const key in object) {\n if (\n Object.prototype.hasOwnProperty.call(object, key) &&\n predicate(object[key])\n ) {\n return key;\n }\n }\n return undefined;\n}\n\nfunction findIndex(array, predicate) {\n for (let key = 0; key < array.length; key++) {\n if (predicate(array[key])) {\n return key;\n }\n }\n return undefined;\n}\n","export function buildMatchPatternFn(args) {\n return (string, options = {}) => {\n const matchResult = string.match(args.matchPattern);\n if (!matchResult) return null;\n const matchedString = matchResult[0];\n\n const parseResult = string.match(args.parsePattern);\n if (!parseResult) return null;\n let value = args.valueCallback\n ? args.valueCallback(parseResult[0])\n : parseResult[0];\n\n // [TODO] I challenge you to fix the type\n value = options.valueCallback ? options.valueCallback(value) : value;\n\n const rest = string.slice(matchedString.length);\n\n return { value, rest };\n };\n}\n","import { formatDistance } from \"./en-US/_lib/formatDistance.js\";\nimport { formatLong } from \"./en-US/_lib/formatLong.js\";\nimport { formatRelative } from \"./en-US/_lib/formatRelative.js\";\nimport { localize } from \"./en-US/_lib/localize.js\";\nimport { match } from \"./en-US/_lib/match.js\";\n\n/**\n * @category Locales\n * @summary English locale (United States).\n * @language English\n * @iso-639-2 eng\n * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)\n * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)\n */\nexport const enUS = {\n code: \"en-US\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 0 /* Sunday */,\n firstWeekContainsDate: 1,\n },\n};\n\n// Fallback for modularized imports:\nexport default enUS;\n","import { buildLocalizeFn } from \"../../_lib/buildLocalizeFn.js\";\n\nconst eraValues = {\n narrow: [\"B\", \"A\"],\n abbreviated: [\"BC\", \"AD\"],\n wide: [\"Before Christ\", \"Anno Domini\"],\n};\n\nconst quarterValues = {\n narrow: [\"1\", \"2\", \"3\", \"4\"],\n abbreviated: [\"Q1\", \"Q2\", \"Q3\", \"Q4\"],\n wide: [\"1st quarter\", \"2nd quarter\", \"3rd quarter\", \"4th quarter\"],\n};\n\n// Note: in English, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nconst monthValues = {\n narrow: [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"],\n abbreviated: [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n ],\n\n wide: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n};\n\nconst dayValues = {\n narrow: [\"S\", \"M\", \"T\", \"W\", \"T\", \"F\", \"S\"],\n short: [\"Su\", \"Mo\", \"Tu\", \"We\", \"Th\", \"Fr\", \"Sa\"],\n abbreviated: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n wide: [\n \"Sunday\",\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n ],\n};\n\nconst dayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mi\",\n noon: \"n\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n};\n\nconst formattingDayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mi\",\n noon: \"n\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n};\n\nconst ordinalNumber = (dirtyNumber, _options) => {\n const number = Number(dirtyNumber);\n\n // If ordinal numbers depend on context, for example,\n // if they are different for different grammatical genders,\n // use `options.unit`.\n //\n // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',\n // 'day', 'hour', 'minute', 'second'.\n\n const rem100 = number % 100;\n if (rem100 > 20 || rem100 < 10) {\n switch (rem100 % 10) {\n case 1:\n return number + \"st\";\n case 2:\n return number + \"nd\";\n case 3:\n return number + \"rd\";\n }\n }\n return number + \"th\";\n};\n\nexport const localize = {\n ordinalNumber,\n\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: \"wide\",\n }),\n\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: \"wide\",\n argumentCallback: (quarter) => quarter - 1,\n }),\n\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: \"wide\",\n }),\n\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: \"wide\",\n }),\n\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: \"wide\",\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: \"wide\",\n }),\n};\n","import { buildMatchFn } from \"../../_lib/buildMatchFn.js\";\nimport { buildMatchPatternFn } from \"../../_lib/buildMatchPatternFn.js\";\n\nconst matchOrdinalNumberPattern = /^(\\d+)(th|st|nd|rd)?/i;\nconst parseOrdinalNumberPattern = /\\d+/i;\n\nconst matchEraPatterns = {\n narrow: /^(b|a)/i,\n abbreviated: /^(b\\.?\\s?c\\.?|b\\.?\\s?c\\.?\\s?e\\.?|a\\.?\\s?d\\.?|c\\.?\\s?e\\.?)/i,\n wide: /^(before christ|before common era|anno domini|common era)/i,\n};\nconst parseEraPatterns = {\n any: [/^b/i, /^(a|c)/i],\n};\n\nconst matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^q[1234]/i,\n wide: /^[1234](th|st|nd|rd)? quarter/i,\n};\nconst parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i],\n};\n\nconst matchMonthPatterns = {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\n wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,\n};\nconst parseMonthPatterns = {\n narrow: [\n /^j/i,\n /^f/i,\n /^m/i,\n /^a/i,\n /^m/i,\n /^j/i,\n /^j/i,\n /^a/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n\n any: [\n /^ja/i,\n /^f/i,\n /^mar/i,\n /^ap/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^au/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n};\n\nconst matchDayPatterns = {\n narrow: /^[smtwf]/i,\n short: /^(su|mo|tu|we|th|fr|sa)/i,\n abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,\n};\nconst parseDayPatterns = {\n narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],\n any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],\n};\n\nconst matchDayPeriodPatterns = {\n narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,\n any: /^([ap]\\.?\\s?m\\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,\n};\nconst parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mi/i,\n noon: /^no/i,\n morning: /morning/i,\n afternoon: /afternoon/i,\n evening: /evening/i,\n night: /night/i,\n },\n};\n\nexport const match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: (value) => parseInt(value, 10),\n }),\n\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseEraPatterns,\n defaultParseWidth: \"any\",\n }),\n\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: \"any\",\n valueCallback: (index) => index + 1,\n }),\n\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: \"any\",\n }),\n\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseDayPatterns,\n defaultParseWidth: \"any\",\n }),\n\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: \"any\",\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: \"any\",\n }),\n};\n","import { differenceInCalendarDays } from \"./differenceInCalendarDays.js\";\nimport { startOfYear } from \"./startOfYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDayOfYear} function options.\n */\n\n/**\n * @name getDayOfYear\n * @category Day Helpers\n * @summary Get the day of the year of the given date.\n *\n * @description\n * Get the day of the year of the given date.\n *\n * @param date - The given date\n * @param options - The options\n *\n * @returns The day of year\n *\n * @example\n * // Which day of the year is 2 July 2014?\n * const result = getDayOfYear(new Date(2014, 6, 2))\n * //=> 183\n */\nexport function getDayOfYear(date, options) {\n const _date = toDate(date, options?.in);\n const diff = differenceInCalendarDays(_date, startOfYear(_date));\n const dayOfYear = diff + 1;\n return dayOfYear;\n}\n\n// Fallback for modularized imports:\nexport default getDayOfYear;\n","import { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.js\";\nimport { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { millisecondsInDay } from \"./constants.js\";\nimport { startOfDay } from \"./startOfDay.js\";\n\n/**\n * The {@link differenceInCalendarDays} function options.\n */\n\n/**\n * @name differenceInCalendarDays\n * @category Day Helpers\n * @summary Get the number of calendar days between the given dates.\n *\n * @description\n * Get the number of calendar days between the given dates. This means that the times are removed\n * from the dates and then the difference in days is calculated.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - The options object\n *\n * @returns The number of calendar days\n *\n * @example\n * // How many calendar days are between\n * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?\n * const result = differenceInCalendarDays(\n * new Date(2012, 6, 2, 0, 0),\n * new Date(2011, 6, 2, 23, 0)\n * )\n * //=> 366\n * // How many calendar days are between\n * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?\n * const result = differenceInCalendarDays(\n * new Date(2011, 6, 3, 0, 1),\n * new Date(2011, 6, 2, 23, 59)\n * )\n * //=> 1\n */\nexport function differenceInCalendarDays(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n\n const laterStartOfDay = startOfDay(laterDate_);\n const earlierStartOfDay = startOfDay(earlierDate_);\n\n const laterTimestamp =\n +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay);\n const earlierTimestamp =\n +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay);\n\n // Round the number of days to the nearest integer because the number of\n // milliseconds in a day is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarDays;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfYear} function options.\n */\n\n/**\n * @name startOfYear\n * @category Year Helpers\n * @summary Return the start of a year for the given date.\n *\n * @description\n * Return the start of a year for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - The options\n *\n * @returns The start of a year\n *\n * @example\n * // The start of a year for 2 September 2014 11:55:00:\n * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))\n * //=> Wed Jan 01 2014 00:00:00\n */\nexport function startOfYear(date, options) {\n const date_ = toDate(date, options?.in);\n date_.setFullYear(date_.getFullYear(), 0, 1);\n date_.setHours(0, 0, 0, 0);\n return date_;\n}\n\n// Fallback for modularized imports:\nexport default startOfYear;\n","import { millisecondsInWeek } from \"./constants.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\nimport { startOfISOWeekYear } from \"./startOfISOWeekYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISOWeek} function options.\n */\n\n/**\n * @name getISOWeek\n * @category ISO Week Helpers\n * @summary Get the ISO week of the given date.\n *\n * @description\n * Get the ISO week of the given date.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n * @param options - The options\n *\n * @returns The ISO week\n *\n * @example\n * // Which week of the ISO-week numbering year is 2 January 2005?\n * const result = getISOWeek(new Date(2005, 0, 2))\n * //=> 53\n */\nexport function getISOWeek(date, options) {\n const _date = toDate(date, options?.in);\n const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);\n\n // Round the number of weeks to the nearest integer because the number of\n // milliseconds in a week is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getISOWeek;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { getISOWeekYear } from \"./getISOWeekYear.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\n\n/**\n * The {@link startOfISOWeekYear} function options.\n */\n\n/**\n * @name startOfISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Return the start of an ISO week-numbering year for the given date.\n *\n * @description\n * Return the start of an ISO week-numbering year,\n * which always starts 3 days before the year's first Thursday.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of an ISO week-numbering year\n *\n * @example\n * // The start of an ISO week-numbering year for 2 July 2005:\n * const result = startOfISOWeekYear(new Date(2005, 6, 2))\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfISOWeekYear(date, options) {\n const year = getISOWeekYear(date, options);\n const fourthOfJanuary = constructFrom(options?.in || date, 0);\n fourthOfJanuary.setFullYear(year, 0, 4);\n fourthOfJanuary.setHours(0, 0, 0, 0);\n return startOfISOWeek(fourthOfJanuary);\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeekYear;\n","import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeekYear} function options.\n */\n\n/**\n * @name getWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Get the local week-numbering year of the given date.\n *\n * @description\n * Get the local week-numbering year of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options.\n *\n * @returns The local week-numbering year\n *\n * @example\n * // Which week numbering year is 26 December 2004 with the default settings?\n * const result = getWeekYear(new Date(2004, 11, 26))\n * //=> 2005\n *\n * @example\n * // Which week numbering year is 26 December 2004 if week starts on Saturday?\n * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })\n * //=> 2004\n *\n * @example\n * // Which week numbering year is 26 December 2004 if the first week contains 4 January?\n * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })\n * //=> 2004\n */\nexport function getWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const firstWeekOfNextYear = constructFrom(options?.in || date, 0);\n firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);\n firstWeekOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);\n\n const firstWeekOfThisYear = constructFrom(options?.in || date, 0);\n firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);\n firstWeekOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);\n\n if (+_date >= +startOfNextYear) {\n return year + 1;\n } else if (+_date >= +startOfThisYear) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getWeekYear;\n","import { millisecondsInWeek } from \"./constants.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { startOfWeekYear } from \"./startOfWeekYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeek} function options.\n */\n\n/**\n * @name getWeek\n * @category Week Helpers\n * @summary Get the local week index of the given date.\n *\n * @description\n * Get the local week index of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The week\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005 with default options?\n * const result = getWeek(new Date(2005, 0, 2))\n * //=> 2\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005,\n * // if Monday is the first day of the week,\n * // and the first week of the year always contains 4 January?\n * const result = getWeek(new Date(2005, 0, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> 53\n */\nexport function getWeek(date, options) {\n const _date = toDate(date, options?.in);\n const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);\n\n // Round the number of weeks to the nearest integer because the number of\n // milliseconds in a week is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getWeek;\n","import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { getWeekYear } from \"./getWeekYear.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\n\n/**\n * The {@link startOfWeekYear} function options.\n */\n\n/**\n * @name startOfWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Return the start of a local week-numbering year for the given date.\n *\n * @description\n * Return the start of a local week-numbering year.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week-numbering year\n *\n * @example\n * // The start of an a week-numbering year for 2 July 2005 with default settings:\n * const result = startOfWeekYear(new Date(2005, 6, 2))\n * //=> Sun Dec 26 2004 00:00:00\n *\n * @example\n * // The start of a week-numbering year for 2 July 2005\n * // if Monday is the first day of week\n * // and 4 January is always in the first week of the year:\n * const result = startOfWeekYear(new Date(2005, 6, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfWeekYear(date, options) {\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const year = getWeekYear(date, options);\n const firstWeek = constructFrom(options?.in || date, 0);\n firstWeek.setFullYear(year, 0, firstWeekContainsDate);\n firstWeek.setHours(0, 0, 0, 0);\n const _date = startOfWeek(firstWeek, options);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeekYear;\n","export function addLeadingZeros(number, targetLength) {\n const sign = number < 0 ? \"-\" : \"\";\n const output = Math.abs(number).toString().padStart(targetLength, \"0\");\n return sign + output;\n}\n","import { addLeadingZeros } from \"../addLeadingZeros.js\";\n\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | |\n * | d | Day of month | D | |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | m | Minute | M | Month |\n * | s | Second | S | Fraction of second |\n * | y | Year (abs) | Y | |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n */\n\nexport const lightFormatters = {\n // Year\n y(date, token) {\n // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens\n // | Year | y | yy | yyy | yyyy | yyyyy |\n // |----------|-------|----|-------|-------|-------|\n // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |\n // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |\n // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |\n // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |\n // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\n\n const signedYear = date.getFullYear();\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const year = signedYear > 0 ? signedYear : 1 - signedYear;\n return addLeadingZeros(token === \"yy\" ? year % 100 : year, token.length);\n },\n\n // Month\n M(date, token) {\n const month = date.getMonth();\n return token === \"M\" ? String(month + 1) : addLeadingZeros(month + 1, 2);\n },\n\n // Day of the month\n d(date, token) {\n return addLeadingZeros(date.getDate(), token.length);\n },\n\n // AM or PM\n a(date, token) {\n const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? \"pm\" : \"am\";\n\n switch (token) {\n case \"a\":\n case \"aa\":\n return dayPeriodEnumValue.toUpperCase();\n case \"aaa\":\n return dayPeriodEnumValue;\n case \"aaaaa\":\n return dayPeriodEnumValue[0];\n case \"aaaa\":\n default:\n return dayPeriodEnumValue === \"am\" ? \"a.m.\" : \"p.m.\";\n }\n },\n\n // Hour [1-12]\n h(date, token) {\n return addLeadingZeros(date.getHours() % 12 || 12, token.length);\n },\n\n // Hour [0-23]\n H(date, token) {\n return addLeadingZeros(date.getHours(), token.length);\n },\n\n // Minute\n m(date, token) {\n return addLeadingZeros(date.getMinutes(), token.length);\n },\n\n // Second\n s(date, token) {\n return addLeadingZeros(date.getSeconds(), token.length);\n },\n\n // Fraction of second\n S(date, token) {\n const numberOfDigits = token.length;\n const milliseconds = date.getMilliseconds();\n const fractionalSeconds = Math.trunc(\n milliseconds * Math.pow(10, numberOfDigits - 3),\n );\n return addLeadingZeros(fractionalSeconds, token.length);\n },\n};\n","import { getDayOfYear } from \"../../getDayOfYear.js\";\nimport { getISOWeek } from \"../../getISOWeek.js\";\nimport { getISOWeekYear } from \"../../getISOWeekYear.js\";\nimport { getWeek } from \"../../getWeek.js\";\nimport { getWeekYear } from \"../../getWeekYear.js\";\n\nimport { addLeadingZeros } from \"../addLeadingZeros.js\";\nimport { lightFormatters } from \"./lightFormatters.js\";\n\nconst dayPeriodEnum = {\n am: \"am\",\n pm: \"pm\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n};\n\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | Milliseconds in day |\n * | b | AM, PM, noon, midnight | B | Flexible day period |\n * | c | Stand-alone local day of week | C* | Localized hour w/ day period |\n * | d | Day of month | D | Day of year |\n * | e | Local day of week | E | Day of week |\n * | f | | F* | Day of week in month |\n * | g* | Modified Julian day | G | Era |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | i! | ISO day of week | I! | ISO week of year |\n * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |\n * | k | Hour [1-24] | K | Hour [0-11] |\n * | l* | (deprecated) | L | Stand-alone month |\n * | m | Minute | M | Month |\n * | n | | N | |\n * | o! | Ordinal number modifier | O | Timezone (GMT) |\n * | p! | Long localized time | P! | Long localized date |\n * | q | Stand-alone quarter | Q | Quarter |\n * | r* | Related Gregorian year | R! | ISO week-numbering year |\n * | s | Second | S | Fraction of second |\n * | t! | Seconds timestamp | T! | Milliseconds timestamp |\n * | u | Extended year | U* | Cyclic year |\n * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |\n * | w | Local week of year | W* | Week of month |\n * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |\n * | y | Year (abs) | Y | Local week-numbering year |\n * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n *\n * Letters marked by ! are non-standard, but implemented by date-fns:\n * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)\n * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\n * i.e. 7 for Sunday, 1 for Monday, etc.\n * - `I` is ISO week of year, as opposed to `w` which is local week of year.\n * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\n * `R` is supposed to be used in conjunction with `I` and `i`\n * for universal ISO week-numbering date, whereas\n * `Y` is supposed to be used in conjunction with `w` and `e`\n * for week-numbering date specific to the locale.\n * - `P` is long localized date format\n * - `p` is long localized time format\n */\n\nexport const formatters = {\n // Era\n G: function (date, token, localize) {\n const era = date.getFullYear() > 0 ? 1 : 0;\n switch (token) {\n // AD, BC\n case \"G\":\n case \"GG\":\n case \"GGG\":\n return localize.era(era, { width: \"abbreviated\" });\n // A, B\n case \"GGGGG\":\n return localize.era(era, { width: \"narrow\" });\n // Anno Domini, Before Christ\n case \"GGGG\":\n default:\n return localize.era(era, { width: \"wide\" });\n }\n },\n\n // Year\n y: function (date, token, localize) {\n // Ordinal number\n if (token === \"yo\") {\n const signedYear = date.getFullYear();\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const year = signedYear > 0 ? signedYear : 1 - signedYear;\n return localize.ordinalNumber(year, { unit: \"year\" });\n }\n\n return lightFormatters.y(date, token);\n },\n\n // Local week-numbering year\n Y: function (date, token, localize, options) {\n const signedWeekYear = getWeekYear(date, options);\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;\n\n // Two digit year\n if (token === \"YY\") {\n const twoDigitYear = weekYear % 100;\n return addLeadingZeros(twoDigitYear, 2);\n }\n\n // Ordinal number\n if (token === \"Yo\") {\n return localize.ordinalNumber(weekYear, { unit: \"year\" });\n }\n\n // Padding\n return addLeadingZeros(weekYear, token.length);\n },\n\n // ISO week-numbering year\n R: function (date, token) {\n const isoWeekYear = getISOWeekYear(date);\n\n // Padding\n return addLeadingZeros(isoWeekYear, token.length);\n },\n\n // Extended year. This is a single number designating the year of this calendar system.\n // The main difference between `y` and `u` localizers are B.C. years:\n // | Year | `y` | `u` |\n // |------|-----|-----|\n // | AC 1 | 1 | 1 |\n // | BC 1 | 1 | 0 |\n // | BC 2 | 2 | -1 |\n // Also `yy` always returns the last two digits of a year,\n // while `uu` pads single digit years to 2 characters and returns other years unchanged.\n u: function (date, token) {\n const year = date.getFullYear();\n return addLeadingZeros(year, token.length);\n },\n\n // Quarter\n Q: function (date, token, localize) {\n const quarter = Math.ceil((date.getMonth() + 1) / 3);\n switch (token) {\n // 1, 2, 3, 4\n case \"Q\":\n return String(quarter);\n // 01, 02, 03, 04\n case \"QQ\":\n return addLeadingZeros(quarter, 2);\n // 1st, 2nd, 3rd, 4th\n case \"Qo\":\n return localize.ordinalNumber(quarter, { unit: \"quarter\" });\n // Q1, Q2, Q3, Q4\n case \"QQQ\":\n return localize.quarter(quarter, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case \"QQQQQ\":\n return localize.quarter(quarter, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // 1st quarter, 2nd quarter, ...\n case \"QQQQ\":\n default:\n return localize.quarter(quarter, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Stand-alone quarter\n q: function (date, token, localize) {\n const quarter = Math.ceil((date.getMonth() + 1) / 3);\n switch (token) {\n // 1, 2, 3, 4\n case \"q\":\n return String(quarter);\n // 01, 02, 03, 04\n case \"qq\":\n return addLeadingZeros(quarter, 2);\n // 1st, 2nd, 3rd, 4th\n case \"qo\":\n return localize.ordinalNumber(quarter, { unit: \"quarter\" });\n // Q1, Q2, Q3, Q4\n case \"qqq\":\n return localize.quarter(quarter, {\n width: \"abbreviated\",\n context: \"standalone\",\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case \"qqqqq\":\n return localize.quarter(quarter, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // 1st quarter, 2nd quarter, ...\n case \"qqqq\":\n default:\n return localize.quarter(quarter, {\n width: \"wide\",\n context: \"standalone\",\n });\n }\n },\n\n // Month\n M: function (date, token, localize) {\n const month = date.getMonth();\n switch (token) {\n case \"M\":\n case \"MM\":\n return lightFormatters.M(date, token);\n // 1st, 2nd, ..., 12th\n case \"Mo\":\n return localize.ordinalNumber(month + 1, { unit: \"month\" });\n // Jan, Feb, ..., Dec\n case \"MMM\":\n return localize.month(month, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // J, F, ..., D\n case \"MMMMM\":\n return localize.month(month, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // January, February, ..., December\n case \"MMMM\":\n default:\n return localize.month(month, { width: \"wide\", context: \"formatting\" });\n }\n },\n\n // Stand-alone month\n L: function (date, token, localize) {\n const month = date.getMonth();\n switch (token) {\n // 1, 2, ..., 12\n case \"L\":\n return String(month + 1);\n // 01, 02, ..., 12\n case \"LL\":\n return addLeadingZeros(month + 1, 2);\n // 1st, 2nd, ..., 12th\n case \"Lo\":\n return localize.ordinalNumber(month + 1, { unit: \"month\" });\n // Jan, Feb, ..., Dec\n case \"LLL\":\n return localize.month(month, {\n width: \"abbreviated\",\n context: \"standalone\",\n });\n // J, F, ..., D\n case \"LLLLL\":\n return localize.month(month, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // January, February, ..., December\n case \"LLLL\":\n default:\n return localize.month(month, { width: \"wide\", context: \"standalone\" });\n }\n },\n\n // Local week of year\n w: function (date, token, localize, options) {\n const week = getWeek(date, options);\n\n if (token === \"wo\") {\n return localize.ordinalNumber(week, { unit: \"week\" });\n }\n\n return addLeadingZeros(week, token.length);\n },\n\n // ISO week of year\n I: function (date, token, localize) {\n const isoWeek = getISOWeek(date);\n\n if (token === \"Io\") {\n return localize.ordinalNumber(isoWeek, { unit: \"week\" });\n }\n\n return addLeadingZeros(isoWeek, token.length);\n },\n\n // Day of the month\n d: function (date, token, localize) {\n if (token === \"do\") {\n return localize.ordinalNumber(date.getDate(), { unit: \"date\" });\n }\n\n return lightFormatters.d(date, token);\n },\n\n // Day of year\n D: function (date, token, localize) {\n const dayOfYear = getDayOfYear(date);\n\n if (token === \"Do\") {\n return localize.ordinalNumber(dayOfYear, { unit: \"dayOfYear\" });\n }\n\n return addLeadingZeros(dayOfYear, token.length);\n },\n\n // Day of week\n E: function (date, token, localize) {\n const dayOfWeek = date.getDay();\n switch (token) {\n // Tue\n case \"E\":\n case \"EE\":\n case \"EEE\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // T\n case \"EEEEE\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"EEEEEE\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"formatting\",\n });\n // Tuesday\n case \"EEEE\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Local day of week\n e: function (date, token, localize, options) {\n const dayOfWeek = date.getDay();\n const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n switch (token) {\n // Numerical value (Nth day of week with current locale or weekStartsOn)\n case \"e\":\n return String(localDayOfWeek);\n // Padded numerical value\n case \"ee\":\n return addLeadingZeros(localDayOfWeek, 2);\n // 1st, 2nd, ..., 7th\n case \"eo\":\n return localize.ordinalNumber(localDayOfWeek, { unit: \"day\" });\n case \"eee\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // T\n case \"eeeee\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"eeeeee\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"formatting\",\n });\n // Tuesday\n case \"eeee\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Stand-alone local day of week\n c: function (date, token, localize, options) {\n const dayOfWeek = date.getDay();\n const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n switch (token) {\n // Numerical value (same as in `e`)\n case \"c\":\n return String(localDayOfWeek);\n // Padded numerical value\n case \"cc\":\n return addLeadingZeros(localDayOfWeek, token.length);\n // 1st, 2nd, ..., 7th\n case \"co\":\n return localize.ordinalNumber(localDayOfWeek, { unit: \"day\" });\n case \"ccc\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"standalone\",\n });\n // T\n case \"ccccc\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // Tu\n case \"cccccc\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"standalone\",\n });\n // Tuesday\n case \"cccc\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"standalone\",\n });\n }\n },\n\n // ISO day of week\n i: function (date, token, localize) {\n const dayOfWeek = date.getDay();\n const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;\n switch (token) {\n // 2\n case \"i\":\n return String(isoDayOfWeek);\n // 02\n case \"ii\":\n return addLeadingZeros(isoDayOfWeek, token.length);\n // 2nd\n case \"io\":\n return localize.ordinalNumber(isoDayOfWeek, { unit: \"day\" });\n // Tue\n case \"iii\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // T\n case \"iiiii\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"iiiiii\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"formatting\",\n });\n // Tuesday\n case \"iiii\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // AM or PM\n a: function (date, token, localize) {\n const hours = date.getHours();\n const dayPeriodEnumValue = hours / 12 >= 1 ? \"pm\" : \"am\";\n\n switch (token) {\n case \"a\":\n case \"aa\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n case \"aaa\":\n return localize\n .dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n })\n .toLowerCase();\n case \"aaaaa\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"aaaa\":\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // AM, PM, midnight, noon\n b: function (date, token, localize) {\n const hours = date.getHours();\n let dayPeriodEnumValue;\n if (hours === 12) {\n dayPeriodEnumValue = dayPeriodEnum.noon;\n } else if (hours === 0) {\n dayPeriodEnumValue = dayPeriodEnum.midnight;\n } else {\n dayPeriodEnumValue = hours / 12 >= 1 ? \"pm\" : \"am\";\n }\n\n switch (token) {\n case \"b\":\n case \"bb\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n case \"bbb\":\n return localize\n .dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n })\n .toLowerCase();\n case \"bbbbb\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"bbbb\":\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // in the morning, in the afternoon, in the evening, at night\n B: function (date, token, localize) {\n const hours = date.getHours();\n let dayPeriodEnumValue;\n if (hours >= 17) {\n dayPeriodEnumValue = dayPeriodEnum.evening;\n } else if (hours >= 12) {\n dayPeriodEnumValue = dayPeriodEnum.afternoon;\n } else if (hours >= 4) {\n dayPeriodEnumValue = dayPeriodEnum.morning;\n } else {\n dayPeriodEnumValue = dayPeriodEnum.night;\n }\n\n switch (token) {\n case \"B\":\n case \"BB\":\n case \"BBB\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n case \"BBBBB\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"BBBB\":\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Hour [1-12]\n h: function (date, token, localize) {\n if (token === \"ho\") {\n let hours = date.getHours() % 12;\n if (hours === 0) hours = 12;\n return localize.ordinalNumber(hours, { unit: \"hour\" });\n }\n\n return lightFormatters.h(date, token);\n },\n\n // Hour [0-23]\n H: function (date, token, localize) {\n if (token === \"Ho\") {\n return localize.ordinalNumber(date.getHours(), { unit: \"hour\" });\n }\n\n return lightFormatters.H(date, token);\n },\n\n // Hour [0-11]\n K: function (date, token, localize) {\n const hours = date.getHours() % 12;\n\n if (token === \"Ko\") {\n return localize.ordinalNumber(hours, { unit: \"hour\" });\n }\n\n return addLeadingZeros(hours, token.length);\n },\n\n // Hour [1-24]\n k: function (date, token, localize) {\n let hours = date.getHours();\n if (hours === 0) hours = 24;\n\n if (token === \"ko\") {\n return localize.ordinalNumber(hours, { unit: \"hour\" });\n }\n\n return addLeadingZeros(hours, token.length);\n },\n\n // Minute\n m: function (date, token, localize) {\n if (token === \"mo\") {\n return localize.ordinalNumber(date.getMinutes(), { unit: \"minute\" });\n }\n\n return lightFormatters.m(date, token);\n },\n\n // Second\n s: function (date, token, localize) {\n if (token === \"so\") {\n return localize.ordinalNumber(date.getSeconds(), { unit: \"second\" });\n }\n\n return lightFormatters.s(date, token);\n },\n\n // Fraction of second\n S: function (date, token) {\n return lightFormatters.S(date, token);\n },\n\n // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)\n X: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n if (timezoneOffset === 0) {\n return \"Z\";\n }\n\n switch (token) {\n // Hours and optional minutes\n case \"X\":\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n // Hours, minutes and optional seconds without `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XX`\n case \"XXXX\":\n case \"XX\": // Hours and minutes without `:` delimiter\n return formatTimezone(timezoneOffset);\n\n // Hours, minutes and optional seconds with `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XXX`\n case \"XXXXX\":\n case \"XXX\": // Hours and minutes with `:` delimiter\n default:\n return formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)\n x: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n switch (token) {\n // Hours and optional minutes\n case \"x\":\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n // Hours, minutes and optional seconds without `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xx`\n case \"xxxx\":\n case \"xx\": // Hours and minutes without `:` delimiter\n return formatTimezone(timezoneOffset);\n\n // Hours, minutes and optional seconds with `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xxx`\n case \"xxxxx\":\n case \"xxx\": // Hours and minutes with `:` delimiter\n default:\n return formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Timezone (GMT)\n O: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n switch (token) {\n // Short\n case \"O\":\n case \"OO\":\n case \"OOO\":\n return \"GMT\" + formatTimezoneShort(timezoneOffset, \":\");\n // Long\n case \"OOOO\":\n default:\n return \"GMT\" + formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Timezone (specific non-location)\n z: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n switch (token) {\n // Short\n case \"z\":\n case \"zz\":\n case \"zzz\":\n return \"GMT\" + formatTimezoneShort(timezoneOffset, \":\");\n // Long\n case \"zzzz\":\n default:\n return \"GMT\" + formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Seconds timestamp\n t: function (date, token, _localize) {\n const timestamp = Math.trunc(+date / 1000);\n return addLeadingZeros(timestamp, token.length);\n },\n\n // Milliseconds timestamp\n T: function (date, token, _localize) {\n return addLeadingZeros(+date, token.length);\n },\n};\n\nfunction formatTimezoneShort(offset, delimiter = \"\") {\n const sign = offset > 0 ? \"-\" : \"+\";\n const absOffset = Math.abs(offset);\n const hours = Math.trunc(absOffset / 60);\n const minutes = absOffset % 60;\n if (minutes === 0) {\n return sign + String(hours);\n }\n return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);\n}\n\nfunction formatTimezoneWithOptionalMinutes(offset, delimiter) {\n if (offset % 60 === 0) {\n const sign = offset > 0 ? \"-\" : \"+\";\n return sign + addLeadingZeros(Math.abs(offset) / 60, 2);\n }\n return formatTimezone(offset, delimiter);\n}\n\nfunction formatTimezone(offset, delimiter = \"\") {\n const sign = offset > 0 ? \"-\" : \"+\";\n const absOffset = Math.abs(offset);\n const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2);\n const minutes = addLeadingZeros(absOffset % 60, 2);\n return sign + hours + delimiter + minutes;\n}\n","const dateLongFormatter = (pattern, formatLong) => {\n switch (pattern) {\n case \"P\":\n return formatLong.date({ width: \"short\" });\n case \"PP\":\n return formatLong.date({ width: \"medium\" });\n case \"PPP\":\n return formatLong.date({ width: \"long\" });\n case \"PPPP\":\n default:\n return formatLong.date({ width: \"full\" });\n }\n};\n\nconst timeLongFormatter = (pattern, formatLong) => {\n switch (pattern) {\n case \"p\":\n return formatLong.time({ width: \"short\" });\n case \"pp\":\n return formatLong.time({ width: \"medium\" });\n case \"ppp\":\n return formatLong.time({ width: \"long\" });\n case \"pppp\":\n default:\n return formatLong.time({ width: \"full\" });\n }\n};\n\nconst dateTimeLongFormatter = (pattern, formatLong) => {\n const matchResult = pattern.match(/(P+)(p+)?/) || [];\n const datePattern = matchResult[1];\n const timePattern = matchResult[2];\n\n if (!timePattern) {\n return dateLongFormatter(pattern, formatLong);\n }\n\n let dateTimeFormat;\n\n switch (datePattern) {\n case \"P\":\n dateTimeFormat = formatLong.dateTime({ width: \"short\" });\n break;\n case \"PP\":\n dateTimeFormat = formatLong.dateTime({ width: \"medium\" });\n break;\n case \"PPP\":\n dateTimeFormat = formatLong.dateTime({ width: \"long\" });\n break;\n case \"PPPP\":\n default:\n dateTimeFormat = formatLong.dateTime({ width: \"full\" });\n break;\n }\n\n return dateTimeFormat\n .replace(\"{{date}}\", dateLongFormatter(datePattern, formatLong))\n .replace(\"{{time}}\", timeLongFormatter(timePattern, formatLong));\n};\n\nexport const longFormatters = {\n p: timeLongFormatter,\n P: dateTimeLongFormatter,\n};\n","const dayOfYearTokenRE = /^D+$/;\nconst weekYearTokenRE = /^Y+$/;\n\nconst throwTokens = [\"D\", \"DD\", \"YY\", \"YYYY\"];\n\nexport function isProtectedDayOfYearToken(token) {\n return dayOfYearTokenRE.test(token);\n}\n\nexport function isProtectedWeekYearToken(token) {\n return weekYearTokenRE.test(token);\n}\n\nexport function warnOrThrowProtectedError(token, format, input) {\n const _message = message(token, format, input);\n console.warn(_message);\n if (throwTokens.includes(token)) throw new RangeError(_message);\n}\n\nfunction message(token, format, input) {\n const subject = token[0] === \"Y\" ? \"years\" : \"days of the month\";\n return `Use \\`${token.toLowerCase()}\\` instead of \\`${token}\\` (in \\`${format}\\`) for formatting ${subject} to the input \\`${input}\\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;\n}\n","import { defaultLocale } from \"./_lib/defaultLocale.js\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { formatters } from \"./_lib/format/formatters.js\";\nimport { longFormatters } from \"./_lib/format/longFormatters.js\";\nimport {\n isProtectedDayOfYearToken,\n isProtectedWeekYearToken,\n warnOrThrowProtectedError,\n} from \"./_lib/protectedTokens.js\";\nimport { isValid } from \"./isValid.js\";\nimport { toDate } from \"./toDate.js\";\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\nexport { formatters, longFormatters };\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\nexport { format as formatDate };\n\n/**\n * The {@link format} function options.\n */\n\n/**\n * @name format\n * @alias formatDate\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 9 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 9 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Sun | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | a..aa | AM, PM | |\n * | | aaa | am, pm | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |\n * | | bbb | am, pm, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |\n * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 04/29/1453 | 7 |\n * | | PP | Apr 29, 1453 | 7 |\n * | | PPP | April 29th, 1453 | 7 |\n * | | PPPP | Friday, April 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |\n * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | April 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)\n * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n * so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @param date - The original date\n * @param format - The string of tokens\n * @param options - An object with options\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `localize` property\n * @throws `options.locale` must contain `formatLong` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\nexport function format(date, formatStr, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const originalDate = toDate(date, options?.in);\n\n if (!isValid(originalDate)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n let parts = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter === \"p\" || firstCharacter === \"P\") {\n const longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp)\n .map((substring) => {\n // Replace two single quote characters with one single quote character\n if (substring === \"''\") {\n return { isToken: false, value: \"'\" };\n }\n\n const firstCharacter = substring[0];\n if (firstCharacter === \"'\") {\n return { isToken: false, value: cleanEscapedString(substring) };\n }\n\n if (formatters[firstCharacter]) {\n return { isToken: true, value: substring };\n }\n\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n return { isToken: false, value: substring };\n });\n\n // invoke localize preprocessor (only for french locales at the moment)\n if (locale.localize.preprocessor) {\n parts = locale.localize.preprocessor(originalDate, parts);\n }\n\n const formatterOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n return parts\n .map((part) => {\n if (!part.isToken) return part.value;\n\n const token = part.value;\n\n if (\n (!options?.useAdditionalWeekYearTokens &&\n isProtectedWeekYearToken(token)) ||\n (!options?.useAdditionalDayOfYearTokens &&\n isProtectedDayOfYearToken(token))\n ) {\n warnOrThrowProtectedError(token, formatStr, String(date));\n }\n\n const formatter = formatters[token[0]];\n return formatter(originalDate, token, locale.localize, formatterOptions);\n })\n .join(\"\");\n}\n\nfunction cleanEscapedString(input) {\n const matched = input.match(escapedStringRegExp);\n\n if (!matched) {\n return input;\n }\n\n return matched[1].replace(doubleQuoteRegExp, \"'\");\n}\n\n// Fallback for modularized imports:\nexport default format;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDate} function options.\n */\n\n/**\n * @name getDate\n * @category Day Helpers\n * @summary Get the day of the month of the given date.\n *\n * @description\n * Get the day of the month of the given date.\n *\n * @param date - The given date\n * @param options - An object with options.\n *\n * @returns The day of month\n *\n * @example\n * // Which day of the month is 29 February 2012?\n * const result = getDate(new Date(2012, 1, 29))\n * //=> 29\n */\nexport function getDate(date, options) {\n return toDate(date, options?.in).getDate();\n}\n\n// Fallback for modularized imports:\nexport default getDate;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDaysInMonth} function options.\n */\n\n/**\n * @name getDaysInMonth\n * @category Month Helpers\n * @summary Get the number of days in a month of the given date.\n *\n * @description\n * Get the number of days in a month of the given date, considering the context if provided.\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The number of days in a month\n *\n * @example\n * // How many days are in February 2000?\n * const result = getDaysInMonth(new Date(2000, 1))\n * //=> 29\n */\nexport function getDaysInMonth(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n const monthIndex = _date.getMonth();\n const lastDayOfMonth = constructFrom(_date, 0);\n lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);\n lastDayOfMonth.setHours(0, 0, 0, 0);\n return lastDayOfMonth.getDate();\n}\n\n// Fallback for modularized imports:\nexport default getDaysInMonth;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * @name isAfter\n * @category Common Helpers\n * @summary Is the first date after the second one?\n *\n * @description\n * Is the first date after the second one?\n *\n * @param date - The date that should be after the other one to return true\n * @param dateToCompare - The date to compare with\n *\n * @returns The first date is after the second date\n *\n * @example\n * // Is 10 July 1989 after 11 February 1987?\n * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> true\n */\nexport function isAfter(date, dateToCompare) {\n return +toDate(date) > +toDate(dateToCompare);\n}\n\n// Fallback for modularized imports:\nexport default isAfter;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * @name isBefore\n * @category Common Helpers\n * @summary Is the first date before the second one?\n *\n * @description\n * Is the first date before the second one?\n *\n * @param date - The date that should be before the other one to return true\n * @param dateToCompare - The date to compare with\n *\n * @returns The first date is before the second date\n *\n * @example\n * // Is 10 July 1989 before 11 February 1987?\n * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> false\n */\nexport function isBefore(date, dateToCompare) {\n return +toDate(date) < +toDate(dateToCompare);\n}\n\n// Fallback for modularized imports:\nexport default isBefore;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link isSameMonth} function options.\n */\n\n/**\n * @name isSameMonth\n * @category Month Helpers\n * @summary Are the given dates in the same month (and year)?\n *\n * @description\n * Are the given dates in the same month (and year)?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same month (and year)\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n *\n * @example\n * // Are 2 September 2014 and 25 September 2015 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))\n * //=> false\n */\nexport function isSameMonth(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return (\n laterDate_.getFullYear() === earlierDate_.getFullYear() &&\n laterDate_.getMonth() === earlierDate_.getMonth()\n );\n}\n\n// Fallback for modularized imports:\nexport default isSameMonth;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link isSameYear} function options.\n */\n\n/**\n * @name isSameYear\n * @category Year Helpers\n * @summary Are the given dates in the same year?\n *\n * @description\n * Are the given dates in the same year?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same year\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same year?\n * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n */\nexport function isSameYear(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return laterDate_.getFullYear() === earlierDate_.getFullYear();\n}\n\n// Fallback for modularized imports:\nexport default isSameYear;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { constructNow } from \"./constructNow.js\";\nimport { isSameDay } from \"./isSameDay.js\";\n\n/**\n * The {@link isToday} function options.\n */\n\n/**\n * @name isToday\n * @category Day Helpers\n * @summary Is the given date today?\n * @pure false\n *\n * @description\n * Is the given date today?\n *\n * @param date - The date to check\n * @param options - An object with options\n *\n * @returns The date is today\n *\n * @example\n * // If today is 6 October 2014, is 6 October 14:00:00 today?\n * const result = isToday(new Date(2014, 9, 6, 14, 0))\n * //=> true\n */\nexport function isToday(date, options) {\n return isSameDay(\n constructFrom(options?.in || date, date),\n constructNow(options?.in || date),\n );\n}\n\n// Fallback for modularized imports:\nexport default isToday;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { startOfDay } from \"./startOfDay.js\";\n\n/**\n * The {@link isSameDay} function options.\n */\n\n/**\n * @name isSameDay\n * @category Day Helpers\n * @summary Are the given dates in the same day (and year and month)?\n *\n * @description\n * Are the given dates in the same day (and year and month)?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same day (and year and month)\n *\n * @example\n * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))\n * //=> true\n *\n * @example\n * // Are 4 September and 4 October in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))\n * //=> false\n *\n * @example\n * // Are 4 September, 2014 and 4 September, 2015 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))\n * //=> false\n */\nexport function isSameDay(laterDate, earlierDate, options) {\n const [dateLeft_, dateRight_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return +startOfDay(dateLeft_) === +startOfDay(dateRight_);\n}\n\n// Fallback for modularized imports:\nexport default isSameDay;\n","import { constructFrom } from \"./constructFrom.js\";\n\n/**\n * @name constructNow\n * @category Generic Helpers\n * @summary Constructs a new current date using the passed value constructor.\n * @pure false\n *\n * @description\n * The function constructs a new current date using the constructor from\n * the reference date. It helps to build generic functions that accept date\n * extensions and use the current date.\n *\n * It defaults to `Date` if the passed reference date is a number or a string.\n *\n * @param date - The reference date to take constructor from\n *\n * @returns Current date initialized using the given date constructor\n *\n * @example\n * import { constructNow, isSameDay } from 'date-fns'\n *\n * function isToday<DateType extends Date>(\n * date: DateArg<DateType>,\n * ): boolean {\n * // If we were to use `new Date()` directly, the function would behave\n * // differently in different timezones and return false for the same date.\n * return isSameDay(date, constructNow(date));\n * }\n */\nexport function constructNow(date) {\n return constructFrom(date, Date.now());\n}\n\n// Fallback for modularized imports:\nexport default constructNow;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setDate} function options.\n */\n\n/**\n * @name setDate\n * @category Day Helpers\n * @summary Set the day of the month to the given date.\n *\n * @description\n * Set the day of the month to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param dayOfMonth - The day of the month of the new date\n * @param options - The options\n *\n * @returns The new date with the day of the month set\n *\n * @example\n * // Set the 30th day of the month to 1 September 2014:\n * const result = setDate(new Date(2014, 8, 1), 30)\n * //=> Tue Sep 30 2014 00:00:00\n */\nexport function setDate(date, dayOfMonth, options) {\n const _date = toDate(date, options?.in);\n _date.setDate(dayOfMonth);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setDate;\n","import { LitElement, html, css, nothing, PropertyValues } from \"lit\";\nimport { customElement, property, query, state } from \"lit/decorators.js\";\nimport { bodyL, bodyM, bodyS } from '../styles/fontStyles';\nimport { scrollbarStyles } from \"../styles/scrollbar\";\nimport { focusStyles } from \"../styles/focus\";\n\nimport * as dateFns from \"date-fns\";\n\n@customElement(\"calendar-overlay\")\nexport class CalendarOverlay extends LitElement {\n /**\n * La fecha actualmente seleccionada por el usuario.\n * Se utiliza para marcar visualmente el día seleccionado en el calendario.\n */\n @property({ type: Object }) selectedDate: Date | null = null;\n\n /**\n * La fecha que define el mes y año que se muestra actualmente en la vista del calendario.\n * Cambia al navegar entre meses o años.\n */\n @property({ type: Object }) viewDate: Date = new Date();\n\n @property({ type: Boolean }) isMobile = false;\n\n @property({ type: Number }) calendarWidth: number = 0;\n\n @property({ type: Object }) minDate: Date | null = null;\n @property({ type: Object }) maxDate: Date | null = null;\n @property({ type: String }) type: 'date' | 'month' = 'date';\n\n /**\n * Indica si este es el último elemento focusable del formulario/modal.\n * Se utiliza para aplicar espaciado adicional cuando el calendario está abierto.\n */\n @property({ type: Boolean }) lastElement = false;\n\n /**\n * El estado de la vista actual del calendario, que puede ser 'días', 'meses' o 'años'.\n * Determina qué cuadrícula se renderiza en el overlay.\n */\n @state() private currentView: 'days' | 'months' | 'years' = 'days';\n\n @query('.day.selected, .day.today:not(.selected)') private initialFocusElement!: HTMLButtonElement; \n\n static styles = [ \n scrollbarStyles,\n css`\n ${ focusStyles }\n\n /* Estilos generales del contenedor del calendario (escritorio) */\n .calendar-container {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 10;\n border: 1px solid var( --secondary-color-10, #e7e8ec );\n background: var( --white, #fff );\n border-radius: 4px;\n margin-top: 8px;\n padding: 16px;\n box-shadow: 0px 4px 8px rgba( 0, 0, 0, 0.1 );\n font-family: Graphik;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n min-width: 360px;\n }\n \n /* El header no tiene margin-bottom */\n .header {\n margin-bottom: 0;\n }\n \n /* El separador no tiene margin-top para no dejar espacio con el header */\n .weekdays-separator {\n width: 100%;\n height: 1px;\n background-color: var( --secondary-color-10, #e7e8ec );\n margin-top: 0;\n margin-bottom: 16px; \n }\n\n /* Estilos del encabezado de navegación (botones y título) */\n .header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n /* Estilos generales para los botones de navegación */\n .nav-button {\n background: none;\n border: none;\n cursor: pointer;\n padding: 8px;\n color: var( --primary-color, #2175d9 );\n border-radius: 50%;\n transition: background-color 0.2s;\n gap: 8px;\n }\n\n .nav-button:hover {\n background-color: var( --randstad-blue-10, #e8f1fb );\n }\n\n .header-left,\n .header-right {\n display: flex;\n align-items: center;\n gap: 4px;\n }\n\n .month-year-button {\n ${bodyS}\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n background: none;\n border: none;\n cursor: pointer;\n transition: background-color 0.2s;\n color: var( --randstad-blue-80, #3c4257 );\n border-radius: 16px;\n width: auto;\n height: 41px;\n padding: 8px;\n }\n\n .month-year-button:hover {\n background-color: var( --randstad-blue-10, #e8f1fb );\n }\n\n .month-year-button randstad-icon {\n color: var( --primary-color, #2175d9 );\n }\n\n /* Contenedor de los nombres de los días de la semana */\n .weekdays {\n display: grid;\n place-items: center; \n grid-template-columns: repeat(7, 1fr);\n text-align: center;\n color: var( --secondary-dark-blue-60, #6c7387 );\n opacity: 1;\n margin-bottom: 8px; /* Gap de 8px entre nombres y días */\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n margin-top: 0;\n }\n\n /* Cuadrícula para los días del mes */\n .days-grid {\n display: grid;\n place-items: center;\n grid-template-columns: repeat(7, 1fr);\n gap: 8px;\n }\n\n /* Estilos para cada botón de día */\n .day {\n ${bodyM}\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n cursor: pointer;\n background-color: transparent;\n border: none;\n color: var( --secondary-color-80, #3c4257 );\n padding: 0;\n position: relative;\n }\n\n .day:hover {\n background-color: var( --randstad-blue-10, #e8f1fb );\n }\n\n /* Estilos para el día, mes y año de hoy */\n .day.today {\n color: var( --primary-color, #2175d9 );\n font-weight: 500;\n }\n\n .day.today::after {\n content: '';\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n width: 100%;\n height: 2px;\n background-color: var( --primary-color, #2175d9 );\n border-radius: 2px;\n }\n\n /* Estilos para el día seleccionado */\n .day.selected {\n background-color: var( --primary-color, #2175d9 );\n color: var(--secondary-white, #fff);\n font-weight: 500;\n }\n\n /* Estilos para el día seleccionado cuando se muestra en un mes o año diferente */\n .day.secondary-selected {\n background-color: var( --secondary-color-10, #e7e8ec );\n color: var( --secondary-dark-blue-80, #3c4257 );\n font-weight: 500;\n border: 1px solid var( --secondary-color-10, #e7e8ec );\n }\n\n /* Grillas para selección de año y mes */\n .year-grid,\n .month-grid {\n display: grid;\n grid-template-columns: repeat( 3, 1fr );\n gap: 8px;\n }\n\n /* Botones de año y mes en la grilla */\n .year-button,\n .month-button {\n ${bodyM}\n background: var(--secondary-white, #fff);\n border: 1px solid transparent;\n color: var( --secondary-dark-blue-80, #3c4257 );\n cursor: pointer;\n transition: background-color 0.2s, border-color 0.2s;\n border-radius: 9999px;\n padding: 4px 16px;\n text-align: center;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 38px;\n }\n\n .year-button:hover,\n .month-button:hover {\n background-color: var( --randstad-blue-10, #e8f1fb );\n }\n\n /* Estilos para el año o mes seleccionado */\n .year-button.selected,\n .month-button.selected {\n background-color: var( --primary-color, #2175d9 );\n color: var(--secondary-white, #fff);\n border: 1px solid var( --primary-color, #2175d9 );\n }\n\n /* Estilos para el mes seleccionado en otro año (estilo secundario) */\n .month-button.secondary-selected {\n background-color: var( --secondary-color-10, #e7e8ec );\n color: var( --secondary-dark-blue-80, #3c4257 );\n font-weight: 500;\n border: 1px solid var( --secondary-color-10, #e7e8ec );\n }\n\n /* Estilos para el año y mes current */\n .year-button.current,\n .month-button.current {\n position: relative;\n }\n\n .year-button.current::after,\n .month-button.current::after {\n content: '';\n position: absolute;\n bottom: 0;\n width: 100%;\n height: 2px;\n border-radius: 2px;\n background-color: var( --primary-color, #2175d9 );\n }\n\n /* Estilos para el botón de navegación deshabilitado */\n .nav-button[disabled] {\n color: var( --secondary-dark-blue-30, #b1b5c4 );\n pointer-events: none;\n }\n\n .nav-button[disabled]:hover {\n background-color: transparent;\n }\n\n /* Estilos para el botón de día deshabilitado */\n .day[disabled] {\n color: var( --secondary-dark-blue-30, #b1b5c4 );\n pointer-events: none;\n background-color: transparent;\n }\n \n .day[disabled]:hover {\n background-color: transparent;\n }\n\n /* Estilos para los botones de año y mes deshabilitados */\n .year-button[disabled],\n .month-button[disabled] {\n color: var( --secondary-dark-blue-30, #b1b5c4 );\n pointer-events: none;\n background-color: transparent;\n }\n \n .year-button[disabled]:hover,\n .month-button[disabled]:hover {\n background-color: transparent;\n }\n\n /* --- Estilos para móvil --- */\n .mobile-backdrop {\n position: fixed;\n inset: 0;\n background-color: rgba( 0, 0, 0, 0.4 );\n z-index: 999;\n font-family: Graphik;\n }\n\n .mobile-modal {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: white;\n z-index: 1000;\n border-radius: 12px 12px 0 0;\n box-shadow: 0 -4px 10px rgba( 0, 0, 0, 0.15 );\n display: flex;\n flex-direction: column;\n padding: 24px 16px;\n animation: slideUp 0.5s ease-out;\n max-height: 80dvh;\n overflow-y: auto;\n font-family: Graphik;\n }\n\n @keyframes slideUp {\n from {\n transform: translateY( 100% );\n }\n to {\n transform: translateY( 0 );\n }\n }\n \n .mobile-modal .header {\n margin-bottom: 0;\n position: sticky;\n top: 0;\n background: white;\n z-index: 10;\n }\n \n .mobile-modal .weekdays-separator {\n margin: 0;\n }\n\n .mobile-modal .weekdays {\n place-items: center;\n margin-top: 16px;\n margin-bottom: 8px;\n }\n \n .mobile-modal .days-grid {\n gap: 8px;\n grid-template-columns: repeat( 7, 1fr );\n place-items: center;\n }\n \n .mobile-modal .month-grid,\n .mobile-modal .year-grid {\n gap: 16px;\n margin-top: 16px;\n }\n\n .mobile-modal .day {\n ${ bodyL }\n font-weight: 500;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px; \n height: 40px;\n border-radius: 50%;\n cursor: pointer;\n background-color: transparent;\n border: none;\n color: var( --secondary-dark-blue-80, #3c4257 );\n position: relative;\n }\n\n .mobile-modal .day.selected {\n background-color: var( --primary-color, #2175d9 );\n color: var( --white, #fff );\n font-weight: 500;\n border-radius: 50%;\n }\n\n .mobile-modal .day.today {\n color: var( --primary-color, #2175d9 );\n font-weight: 500;\n }\n\n .mobile-modal .day.today::after {\n content: '';\n position: absolute;\n bottom: 0;\n width: 40px; \n left: 50%;\n transform: translateX( -50% ); \n height: 2px;\n background-color: var( --primary-color, #2175d9 );\n border-radius: 2px;\n }\n\n .mobile-modal .year-grid,\n .mobile-modal .month-grid {\n grid-template-columns: repeat( 3, 1fr );\n gap: 8px;\n }\n\n .mobile-modal .year-button,\n .mobile-modal .month-button {\n width: 100%;\n height: 48px;\n border-radius: 9999px;\n flex: 1 1 33.3333%;\n padding: 0;\n }\n\n .mobile-modal .day.secondary-selected,\n .mobile-modal .month-button.secondary-selected {\n background-color: var( --secondary-color-10, #e7e8ec );\n color: var( --secondary-dark-blue-80, #3c4257 );\n font-weight: 500;\n border: 1px solid var( --secondary-color-10, #e7e8ec ) ;\n }\n\n /* Estilos para elementos deshabilitados dentro del modal de móviles. */\n .mobile-modal .day[disabled],\n .mobile-modal .month-button[disabled],\n .mobile-modal .year-button[disabled] {\n color: var( --secondary-dark-blue-30, #b1b5c4 );\n pointer-events: none;\n background-color: transparent;\n }\n\n .mobile-modal .nav-button[disabled] {\n color: var( --secondary-dark-blue-30, #b1b5c4 );\n pointer-events: none;\n background-color: transparent;\n }\n\n /* Evitamos que el estilo 'today' o 'current' se aplique si el elemento está deshabilitado */\n .mobile-modal .day.today[disabled]::after,\n .mobile-modal .nav-button[disabled] randstad-icon {\n color: var( --secondary-dark-blue-30, #b1b5c4 );\n }\n /* */\n\n /* Focus Buttons */\n .day:focus-visible {\n border-radius: 50%; \n }\n \n .month-year-button:focus-visible {\n border-radius: 16px;\n }\n \n .year-button:focus-visible,\n .month-button:focus-visible {\n border-radius: 9999px; \n }\n /* */ \n `\n ];\n\n /**\n * Ciclo de vida: se llama después de la primera actualización del componente.\n \n * Agrega un 'keydown' listener al shadowRoot para capturar todas las pulsaciones\n * de teclado dentro del calendario (días, meses, navegación) y centralizar la\n * lógica de accesibilidad (ARIA) en 'handleCalendarKeydown'.\n */\n private _boundHandleCalendarKeydown: (e: KeyboardEvent) => void;\n private _boundHandleFocusout: (event: FocusEvent) => void;\n\n constructor() {\n super();\n this._boundHandleCalendarKeydown = this.handleCalendarKeydown.bind(this);\n this._boundHandleFocusout = (event: FocusEvent) => {\n const relatedTarget = event.relatedTarget as HTMLElement;\n if (relatedTarget && !this.contains(relatedTarget)) {\n this.dispatchEvent(new CustomEvent('close', { bubbles: true, composed: true }));\n }\n };\n }\n\n public firstUpdated() {\n this.shadowRoot?.addEventListener(\n 'keydown',\n this._boundHandleCalendarKeydown as EventListener\n );\n this.addEventListener('focusout', this._boundHandleFocusout);\n }\n\n public connectedCallback() {\n super.connectedCallback();\n\n document.addEventListener( 'click', this.handleOutsideClick );\n this.addEventListener( 'focus-input', this.handleFocusInput as EventListener );\n }\n\n public disconnectedCallback() {\n super.disconnectedCallback();\n document.removeEventListener( 'click', this.handleOutsideClick );\n this.shadowRoot?.removeEventListener('keydown', this._boundHandleCalendarKeydown as EventListener);\n this.removeEventListener('focusout', this._boundHandleFocusout);\n }\n\n private handleFocusInput() {\n const input: HTMLInputElement | null = this.shadowRoot?.querySelector( '.date-input' ) as HTMLInputElement;\n input?.focus();\n }\n\n /**\n * Cierra el overlay del calendario si el clic se produce fuera de sus límites.\n * Se utiliza un `event listener` en el documento para detectar clics en cualquier lugar de la página.\n \n * @param event - Objeto de evento del clic.\n */\n private handleOutsideClick = ( event: MouseEvent ) => {\n const root = this.getRootNode() as ShadowRoot | null;\n const inputElement = root?.host;\n\n if ( inputElement && !event.composedPath().includes( this ) && !event.composedPath().includes(inputElement))\n this.dispatchEvent( new CustomEvent( 'close', { bubbles: true, composed: true } ) );\n };\n\n /**\n * Alterna la vista del calendario entre 'days' y 'years' al hacer clic en el encabezado.\n * Si la vista actual es 'days', cambia a 'years'; si no, vuelve a 'days'.\n */\n private handleHeaderClick() {\n if (this.type === 'month') {\n this.currentView = this.currentView === 'months' ? 'years' : 'months';\n } else {\n if (this.currentView === 'days') this.currentView = 'years';\n else this.currentView = 'days';\n }\n }\n\n /**\n * Método auxiliar para actualizar la vista y disparar el evento\n */\n private _updateView(\n newDate: Date,\n newView: 'days' | 'months' | 'years' | null = null\n ) {\n this.viewDate = newDate;\n if ( newView ) this.currentView = newView;\n\n this.dispatchEvent( new CustomEvent( 'view-date-change', { detail: { date: this.viewDate } } ) );\n }\n\n /**\n * Maneja la navegación entre periodos en el calendario según la vista actual.\n * Si la vista es de días, navega por meses; si es de meses, navega por años;\n * si es de años, navega por bloques de 21 años.\n * Actualiza la vista con la nueva fecha calculada.\n \n * @param direction -1 para retroceder, 1 para avanzar.\n */\n private handleNavClick( direction: number ) {\n let newDate: Date = this.viewDate;\n\n if ( this.currentView === 'days' ) newDate = dateFns.addMonths( this.viewDate, direction );\n else if ( this.currentView === 'months' ) newDate = dateFns.addYears( this.viewDate, direction );\n else newDate = dateFns.addYears( this.viewDate, direction * 21 );\n\n this._updateView( newDate );\n }\n\n /**\n * Maneja la selección de un año en la vista de años.\n * Al seleccionar un año, actualiza la fecha de vista y cambia a la vista de meses.\n \n * @param year - El año seleccionado (número de 4 dígitos).\n */\n private handleYearSelect( year: number ) {\n const newDate = dateFns.setYear( this.viewDate, year );\n this._updateView(newDate, 'months');\n\n // La promesa 'updateComplete' asegura que el foco se mueva solo después de que \n // la vista de meses se haya renderizado en el DOM, evitando la pérdida de foco.\n this.updateComplete.then( () => {\n const monthYearButton: HTMLInputElement | null = this.shadowRoot?.querySelector( '.month-year-button' ) as HTMLInputElement;\n monthYearButton?.focus();\n });\n }\n\n /**\n * Maneja la selección de un mes en la vista de meses.\n * Al seleccionar un mes, actualiza la fecha de vista y cambia a la vista de días.\n\n * @param monthIndex - El índice del mes seleccionado (0-11, donde 0 es Enero).\n */\n private handleMonthSelect ( monthIndex: number ) {\n const newDate: Date = dateFns.setMonth( this.viewDate, monthIndex );\n if (this.type === 'month') {\n this.selectedDate = newDate;\n this.dispatchEvent(\n new CustomEvent('date-selected', {\n detail: { date: newDate },\n bubbles: true,\n composed: true\n })\n );\n } else {\n this._updateView( newDate, 'days' );\n\n this.updateComplete.then( () => {\n // Si hay un día seleccionado, enfócalo. Si no, enfoca el botón de mes/año.\n const focusTarget: HTMLElement | null = this.initialFocusElement || this.shadowRoot?.querySelector( '.month-year-button' );\n focusTarget?.focus();\n });\n }\n }\n\n /**\n * Maneja el clic en un día del calendario.\n * Emite un evento `date-selected` al componente padre con la fecha y su valor formateado.\n\n * @param day - El objeto Date del día seleccionado.\n */\n private handleDayClick( day: Date ) {\n this.selectedDate = day; // Actualizar la fecha seleccionada\n\n this.dispatchEvent(\n new CustomEvent( 'date-selected', {\n detail: { date: day },\n bubbles: true,\n composed: true\n })\n );\n }\n\n private getFullMonthNames(): string[] {\n return [\n 'Enero',\n 'Febrero',\n 'Marzo',\n 'Abril',\n 'Mayo',\n 'Junio',\n 'Julio',\n 'Agosto',\n 'Septiembre',\n 'Octubre',\n 'Noviembre',\n 'Diciembre'\n ];\n }\n\n private getShortMonthNames(): string[] {\n return this.getFullMonthNames().map( ( month ) => month.substring( 0, 3 ) );\n }\n\n private getShortWeekdays(): string[] {\n return [ 'lu', 'ma', 'mi', 'ju', 'vi', 'sa', 'do' ];\n }\n\n /**\n * Enfoca el elemento inicial del calendario (típicamente el botón de Mes/Año).\n \n * Se llama desde el DatePickerComponent cuando el calendario se abre\n * mediante teclado (tecla ArrowDown o Enter). El 'updateComplete' asegura\n * que el foco se aplica después de que el overlay esté completamente renderizado.\n */\n public focusCalendar() {\n this.updateComplete.then( () => {\n const elementToFocus: HTMLButtonElement | null = this.shadowRoot?.querySelector( '.month-year-button' ) as HTMLButtonElement;\n \n if ( elementToFocus ) elementToFocus.focus();\n else this.initialFocusElement?.focus();\n });\n }\n\n public focusFirstElement() {\n this.updateComplete.then( () => {\n if ( this.currentView !== 'days' ) {\n this.currentView = 'days';\n }\n \n this.updateComplete.then( () => {\n const firstButton: HTMLButtonElement | null = this.shadowRoot?.querySelector( 'button:not([disabled])' ) as HTMLButtonElement;\n firstButton?.focus();\n });\n });\n }\n\n public focusYearsView() {\n this.updateComplete.then( () => {\n this.currentView = 'years';\n \n const firstYearButton: HTMLButtonElement | null = this.shadowRoot?.querySelector( '.year-button:not([disabled])' ) as HTMLButtonElement;\n \n if ( firstYearButton ) firstYearButton.focus();\n });\n }\n\n /**\n * Enfoca la vista de meses.\n */\n public focusMonthsView() {\n this.updateComplete.then( () => {\n if ( this.currentView !== 'months' ) {\n this.currentView = 'months';\n }\n \n const firstMonthButton: HTMLButtonElement | null = this.shadowRoot?.querySelector( '.month-button:not([disabled])' ) as HTMLButtonElement;\n \n if ( firstMonthButton ) firstMonthButton.focus();\n });\n }\n\n /**\n * Enfoca la vista de días.\n */\n public focusDaysView() {\n this.updateComplete.then( () => {\n if ( this.currentView !== 'days' ) {\n this.currentView = 'days';\n }\n \n const firstDayButton: HTMLButtonElement | null = this.shadowRoot?.querySelector( '.day:not([disabled])' ) as HTMLButtonElement;\n \n if ( firstDayButton ) firstDayButton.focus();\n });\n }\n\n /**\n * Encuentra el botón de día en el calendario que está `offset` días\n * de la fecha del día enfocado actualmente.\n */\n private _findAndFocusDayButton( offset: number ) {\n const activeElement: HTMLButtonElement | null = this.shadowRoot?.activeElement as HTMLButtonElement;\n\n // Solo navegamos si el elemento enfocado es un botón de día\n if ( !activeElement || !activeElement.classList.contains( 'day' ) ) return;\n\n // Encuentra todos los botones de día navegables (que no estén deshabilitados)\n const dayButtons: HTMLButtonElement[] = Array.from( this.shadowRoot!.querySelectorAll( '.day:not([disabled])' ) );\n const currentIndex: number = dayButtons.findIndex( btn => btn === activeElement );\n\n if ( currentIndex === -1 ) return; // El día enfocado está deshabilitado o no se encuentra\n let newIndex: number = currentIndex + offset;\n\n // Asegura que el nuevo índice esté dentro de los límites\n if ( newIndex < 0 ) newIndex = 0;\n if ( newIndex >= dayButtons.length ) newIndex = dayButtons.length - 1;\n\n const newFocusElement: HTMLButtonElement | undefined = dayButtons[ newIndex ] as HTMLButtonElement;\n if ( newFocusElement ) newFocusElement.focus();\n }\n\n /**\n * Enfoca el primer o último día de la semana actual.\n */\n private _focusDayOfWeekEdge( direction: 'start' | 'end' ) {\n const activeElement = this.shadowRoot?.activeElement as HTMLButtonElement;\n\n if ( !activeElement || !activeElement.classList.contains( 'day' ) ) return;\n\n const dayButtons: HTMLButtonElement[] = Array.from( this.shadowRoot!.querySelectorAll( '.day:not([disabled])' ) ) as HTMLButtonElement[];\n const currentIndex: number = dayButtons.findIndex( btn => btn === activeElement );\n\n if ( currentIndex === -1 ) return;\n\n // Calcula la posición dentro de la cuadrícula (0 para Lunes, 6 para Domingo)\n // El índice 0 de dayButtons corresponde al primer día del mes, que puede ser cualquier día de la semana.\n \n // Necesitamos el índice de este día dentro del DOM de todos los días renderizados (incluyendo los 'leadingDays' nulos)\n const allDays: HTMLElement[] = Array.from( this.shadowRoot!.querySelectorAll('.days-grid > *') ); // Incluye divs vacíos y botones\n const dayDOMIndex: number = allDays.findIndex( el => el === activeElement );\n\n if ( dayDOMIndex === -1 ) return;\n\n // Calcula el índice del día de la semana (0 a 6, donde 0 es Lunes)\n const dayOfWeek: number = dayDOMIndex % 7;\n\n let newFocusElement: HTMLButtonElement | null = null;\n\n if ( direction === 'start' ) {\n const startOfWeekDOMIndex: number = dayDOMIndex - dayOfWeek;\n newFocusElement = this.shadowRoot?.querySelector(`.days-grid > :nth-child(${startOfWeekDOMIndex + 1}) .day:not([disabled]), .days-grid > :nth-child(${startOfWeekDOMIndex + 1}).day:not([disabled])`) as HTMLButtonElement;\n \n // Si el primer día de la semana es un div vacío o deshabilitado, busca el siguiente habilitado.\n let checkIndex: number = startOfWeekDOMIndex;\n\n while ( !newFocusElement && checkIndex <= dayDOMIndex ) {\n checkIndex++;\n newFocusElement = this.shadowRoot?.querySelector( `.days-grid > :nth-child(${ checkIndex + 1 }) .day:not([disabled]), .days-grid > :nth-child(${ checkIndex + 1 }).day:not([disabled])` ) as HTMLButtonElement;\n }\n\n } else {\n const endOfWeekDOMIndex: number = dayDOMIndex + ( 6 - dayOfWeek );\n newFocusElement = this.shadowRoot?.querySelector( `.days-grid > :nth-child(${ endOfWeekDOMIndex + 1 }) .day:not([disabled]), .days-grid > :nth-child(${ endOfWeekDOMIndex + 1 }).day:not([disabled])` ) as HTMLButtonElement;\n \n // Si el último día de la semana es un div vacío o deshabilitado, busca el anterior habilitado.\n let checkIndex: number = endOfWeekDOMIndex;\n\n while ( !newFocusElement && checkIndex >= dayDOMIndex ) {\n checkIndex--;\n newFocusElement = this.shadowRoot?.querySelector( `.days-grid > :nth-child(${checkIndex + 1}) .day:not([disabled]), .days-grid > :nth-child(${checkIndex + 1}).day:not([disabled])`) as HTMLButtonElement;\n }\n }\n\n newFocusElement?.focus();\n }\n\n /**\n * Centraliza el manejo de todos los eventos de teclado (keydown) dentro del CalendarOverlay.\n \n * Implementa la navegación completa del teclado (flechas, Enter/Space, Escape) para\n * todas las vistas y elementos enfocables (botones de encabezado, días, meses, años),\n * asegurando la conformidad con ARIA.\n \n * La lógica se divide en secciones basadas en el elemento que tiene el foco activo:\n * 1. Escape (Cerrar).\n * 2. Encabezado (Botones de Mes/Año y Navegación Anterior/Siguiente).\n * 3. Cuadrícula de Días.\n * 4. Cuadrículas de Meses/Años.\n \n * @param event - El objeto KeyboardEvent.\n */\n private handleCalendarKeydown( event: KeyboardEvent ) {\n const { key } = event;\n const activeElement: HTMLElement = this.shadowRoot?.activeElement as HTMLElement;\n\n if ( key === 'Escape' ) {\n event.preventDefault();\n this.dispatchEvent( new CustomEvent( \"close\" ) );\n\n return;\n }\n\n if ( key === 'Tab' ) {\n const focusableElements = Array.from( \n this.shadowRoot!.querySelectorAll( 'button:not([disabled])' ) \n ) as HTMLElement[];\n\n const isFocusInside = focusableElements.includes(activeElement);\n \n if (!isFocusInside) {\n return; \n }\n\n if ( focusableElements.length > 0 ) {\n const firstElement = focusableElements[0];\n const lastElement = focusableElements[ focusableElements.length - 1 ];\n\n if ( event.shiftKey && activeElement === firstElement ) {\n event.preventDefault();\n this.dispatchEvent( new CustomEvent( \"close\", { bubbles: true, composed: true } ) );\n this.dispatchEvent( new CustomEvent( \"focus-input\", { bubbles: true, composed: true } ) );\n return;\n }\n\n if ( !event.shiftKey && activeElement === lastElement ) {\n this.dispatchEvent( new CustomEvent( \"close\", { bubbles: true, composed: true } ) );\n }\n }\n return; \n }\n \n if ( activeElement && ( activeElement.classList.contains('month-year-button') || activeElement.classList.contains( 'nav-button' ) ) ) {\n event.preventDefault();\n\n const monthYearButton: HTMLElement = this.shadowRoot?.querySelector( '.month-year-button' ) as HTMLButtonElement;\n const prevButton: HTMLElement = this.shadowRoot?.querySelector( '.header-right button:first-child' ) as HTMLButtonElement;\n const nextButton: HTMLElement = this.shadowRoot?.querySelector( '.header-right button:last-child' ) as HTMLButtonElement;\n\n if ( key === 'Enter' || key === ' ' ) {\n if ( activeElement === monthYearButton ) this.handleHeaderClick(); \n else if ( activeElement === prevButton ) this.handleNavClick( -1 ); \n else if ( activeElement === nextButton ) this.handleNavClick( 1 ); \n \n this.updateComplete.then( () => activeElement.focus() ); \n\n return;\n }\n\n switch ( key ) {\n case 'ArrowUp':\n event.preventDefault();\n this.dispatchEvent( new CustomEvent(\"focus-input\", { bubbles: true, composed: true }));\n return;\n\n case 'ArrowRight':\n if ( activeElement === monthYearButton ) nextButton?.focus();\n else if ( activeElement === prevButton ) nextButton?.focus();\n break;\n\n case 'ArrowLeft':\n if ( activeElement === nextButton ) prevButton?.focus();\n else if ( activeElement === prevButton ) monthYearButton?.focus();\n break;\n\n case 'ArrowDown':\n // Mover al primer elemento navegable de la vista actual\n if ( this.currentView === 'days' ) {\n // Si estamos en la vista de días, busca el día seleccionado/hoy/primer día.\n const initialDayFocus = this.initialFocusElement || this.shadowRoot?.querySelector('.day:not([disabled])') as HTMLButtonElement;\n initialDayFocus?.focus();\n } else if ( this.currentView === 'months' || this.currentView === 'years' ) {\n // Si estamos en meses/años, mueve al primer mes/año en la cuadrícula.\n const firstGridItem = this.shadowRoot?.querySelector(`.${this.currentView === 'months' ? 'month' : 'year'}-grid button:not([disabled])`) as HTMLButtonElement;\n firstGridItem?.focus();\n }\n \n break;\n }\n\n return;\n }\n \n if ( activeElement && activeElement.classList.contains( 'day' ) && this.currentView === 'days' ) {\n event.preventDefault(); \n\n const dayButtons: HTMLButtonElement[] = Array.from( this.shadowRoot!.querySelectorAll( '.day:not([disabled])' ) ) as HTMLButtonElement[];\n const currentIndex: number = dayButtons.findIndex( btn => btn === activeElement );\n const monthYearButton: HTMLButtonElement = this.shadowRoot?.querySelector( '.month-year-button' ) as HTMLButtonElement;\n\n switch ( key ) {\n case 'ArrowLeft': \n this._findAndFocusDayButton( -1 ); \n break;\n\n case 'ArrowRight': \n this._findAndFocusDayButton( 1 ); \n break;\n\n case 'ArrowDown': \n this._findAndFocusDayButton( 7 ); \n break;\n\n case 'ArrowUp':\n const newIndexUp: number = currentIndex - 7;\n\n if ( newIndexUp < 0 ) monthYearButton?.focus();\n else this._findAndFocusDayButton(-7); \n\n break;\n\n case 'Home': \n this._focusDayOfWeekEdge( 'start' ); \n break;\n\n case 'End': \n this._focusDayOfWeekEdge( 'end' ); \n break;\n\n case 'Enter': \n activeElement.click(); \n break;\n }\n\n return;\n }\n\n if ( activeElement && ( activeElement.classList.contains( 'month-button' ) || activeElement.classList.contains('year-button') ) ) {\n event.preventDefault();\n\n const isMonthView: boolean = this.currentView === 'months';\n const buttonSelector: string = isMonthView ? '.month-button:not([disabled])' : '.year-button:not([disabled])';\n const gridItems: HTMLButtonElement[] = Array.from( this.shadowRoot!.querySelectorAll( buttonSelector ) ) as HTMLButtonElement[];\n const currentIndex: number = gridItems.findIndex( btn => btn === activeElement );\n const monthYearButton: HTMLButtonElement = this.shadowRoot?.querySelector( '.month-year-button' ) as HTMLButtonElement;\n\n if ( currentIndex === -1 ) return;\n let newIndex: number = currentIndex;\n \n // La cuadrícula es 3xN\n switch ( key ) {\n case 'ArrowDown': \n newIndex += 3;\n if ( newIndex >= gridItems.length ) newIndex = gridItems.length - 1; \n break;\n\n case 'ArrowUp': \n newIndex -= 3; \n\n if ( newIndex < 0 ) {\n monthYearButton?.focus();\n return;\n }\n\n break;\n\n case 'ArrowLeft': \n newIndex -= 1; \n if ( newIndex < 0 ) newIndex = 0;\n break;\n\n case 'ArrowRight': \n newIndex += 1;\n if ( newIndex >= gridItems.length ) newIndex = gridItems.length - 1;\n break;\n\n case 'Enter':\n activeElement.click(); \n break;\n }\n\n if ( newIndex !== currentIndex ) gridItems[ newIndex ]?.focus();\n return;\n }\n \n // Si es una flecha o Enter, previene el comportamiento de scroll de la página\n if ( key.startsWith( 'Arrow') || key === 'Enter' ) event.preventDefault();\n }\n\n /**\n * Renderiza el encabezado del calendario, mostrando el mes y el año actuales.\n * Incluye botones de navegación y un botón para cambiar la vista (a meses/años).\n */\n private renderHeader() {\n const monthNames: string[] = this.getFullMonthNames();\n\n let headerText: string = '';\n let disablePrev: boolean = false; \n let disableNext: boolean = false;\n\n if ( this.currentView === 'years' ) {\n const startYear: number = this.viewDate.getFullYear() - ( this.viewDate.getFullYear() % 21 );\n const endYear: number = startYear + 20;\n headerText = `${startYear} - ${endYear}`;\n\n const minYear: number = this.minDate ? this.minDate.getFullYear() : -Infinity;\n const maxYear: number = this.maxDate ? this.maxDate.getFullYear() : Infinity; \n \n disablePrev = startYear <= minYear; \n disableNext = endYear >= maxYear;\n } else if ( this.currentView === 'months' ) {\n headerText = `${ this.viewDate.getFullYear() }`;\n\n const viewYear: number = this.viewDate.getFullYear();\n const minYear: number = this.minDate ? this.minDate.getFullYear() : -Infinity;\n const maxYear: number = this.maxDate ? this.maxDate.getFullYear() : Infinity;\n\n disablePrev = viewYear <= minYear;\n disableNext = viewYear >= maxYear;\n } else {\n const monthName: string = monthNames[ this.viewDate.getMonth() ];\n headerText = ` ${monthName} ${ this.viewDate.getFullYear() } `;\n\n if ( this.minDate ) disablePrev = dateFns.isSameMonth( dateFns.startOfMonth( this.viewDate ), dateFns.startOfMonth( this.minDate ) ) || dateFns.isBefore( this.viewDate, this.minDate );\n if ( this.maxDate ) disableNext = dateFns.isSameMonth( dateFns.startOfMonth( this.viewDate ), dateFns.startOfMonth( this.maxDate ) ) || dateFns.isAfter( this.viewDate, this.maxDate );\n }\n\n return html`\n <div class=\"header\">\n <div class=\"header-left\">\n <button class=\"month-year-button\" @click=${this.handleHeaderClick}>\n <span>${headerText}</span>\n <randstad-icon name=\"${this.currentView === 'days' ? 'arrow_drop_down' : 'arrow_drop_up'}\" class=\"select-icon\"></randstad-icon>\n </button>\n </div>\n <div class=\"header-right\">\n <button class=\"nav-button\" @click=${() => this.handleNavClick(-1)} ?disabled=${disablePrev}>\n <randstad-icon name=\"arrow_left\"></randstad-icon>\n </button>\n <button class=\"nav-button\" @click=${() => this.handleNavClick(1)} ?disabled=${disableNext}>\n <randstad-icon name=\"arrow_right\"></randstad-icon>\n </button>\n </div>\n </div>\n `;\n }\n\n /**\n * Renderiza la vista de selección de años en el calendario.\n * Genera una cuadrícula de botones, cada uno representando un año dentro de un rango de 21 años.\n * El año actualmente seleccionado se resalta visualmente.\n * Al hacer clic en un botón de año, se invoca el método de manejo de selección de año.\n \n * @returns {TemplateResult} Plantilla HTML para la vista de años.\n */\n private renderYearsView() {\n const startYear: number = this.viewDate.getFullYear() - ( this.viewDate.getFullYear() % 21 );\n const years: number[] = Array.from( { length: 21 }, (_, i) => startYear + i );\n const selectedYear: number | null = this.selectedDate ? this.selectedDate.getFullYear() : null;\n const currentYear: number = new Date().getFullYear();\n\n const minYear: number = this.minDate ? this.minDate.getFullYear() : -Infinity;\n const maxYear: number = this.maxDate ? this.maxDate.getFullYear() : Infinity;\n\n return html`\n <div class=\"year-grid\"> \n ${ years.map( ( y ) => {\n const isDisabled: boolean = y < minYear || y > maxYear;\n const buttonClass: string = ` year-button ${ y === selectedYear ? 'selected' : y === currentYear ? 'current' : '' } `;\n \n return html`\n <button \n class=\"${ buttonClass }\" \n @click=${ () => this.handleYearSelect( y ) }\n ?disabled=${ isDisabled } \n >\n ${ y }\n </button>\n `;\n })}\n </div>\n `;\n }\n\n /**\n * Renderiza la vista de selección de meses en el calendario.\n * Genera una cuadrícula de botones, cada uno representando un mes abreviado.\n * El mes actualmente seleccionado se resalta visualmente.\n * Al hacer clic en un botón de mes, se invoca el método de manejo de selección de mes.\n \n * @returns {TemplateResult} Plantilla HTML para la vista de meses.\n */\n private renderMonthsView() {\n const monthNames: string[] = this.getShortMonthNames();\n const selectedMonth: number | undefined = this.selectedDate?.getMonth();\n const currentMonth: number = new Date().getMonth();\n\n const viewYear: number = this.viewDate.getFullYear();\n\n return html`\n <div class=\"month-grid\">\n ${ monthNames.map(\n ( month, index ) => {\n const isCurrentMonth: boolean = index === currentMonth;\n const isSelected: boolean | null = index === selectedMonth && this.selectedDate && dateFns.isSameYear( this.viewDate, this.selectedDate );\n const isSecondarySelected: boolean | null = index === selectedMonth && this.selectedDate && !dateFns.isSameYear( this.viewDate, this.selectedDate );\n\n let isDisabled: boolean = false;\n\n if ( this.minDate && viewYear === this.minDate.getFullYear() )\n isDisabled = index < this.minDate.getMonth();\n \n if ( this.maxDate && viewYear === this.maxDate.getFullYear() ) \n isDisabled = isDisabled || index > this.maxDate.getMonth();\n\n const buttonClass: string = `month-button ${isSelected ? 'selected' : isSecondarySelected ? 'secondary-selected' : isCurrentMonth ? 'current' : ''}`;\n\n return html`\n <button\n class=\"${ buttonClass }\"\n ?disabled=${ isDisabled }\n @click=${ () => this.handleMonthSelect( index ) }\n >\n ${ month }\n </button>\n `;\n }\n )}\n </div>\n `;\n  }\n\n /**\n * Renderiza la cuadrícula de días para el mes actual.\n * Incluye los días de la semana, los días del mes y marca el día actual y el seleccionado.\n */\n private renderDayView() {\n const daysInMonth: number = dateFns.getDaysInMonth( this.viewDate );\n const startOfMonth: Date = dateFns.startOfMonth( this.viewDate );\n const dayOfWeek: number = dateFns.getDay( startOfMonth );\n\n const leadingDays = Array.from( { length: dayOfWeek === 0 ? 6 : dayOfWeek - 1 },\n () => null\n );\n\n const days = Array.from( { length: daysInMonth },\n (_, i) => dateFns.setDate( startOfMonth, i + 1 )\n );\n\n const weekdays: string[] = this.getShortWeekdays();\n\n return html`\n <div class=\"weekdays\">\n ${ weekdays.map( ( day ) => html`<div>${ day }</div>`) }\n </div>\n\n <div class=\"days-grid\">\n ${ leadingDays.map( () => html`<div></div>` ) }\n ${ days.map( ( day ) => {\n const normalizedDay: Date = dateFns.startOfDay( day );\n const normalizedSelectedDate: Date | null = this.selectedDate\n ? dateFns.startOfDay( this.selectedDate )\n : null;\n\n const isDisabled: boolean | null = ( this.minDate && dateFns.isBefore( normalizedDay, dateFns.startOfDay( this.minDate ) ) ) ||\n ( this.maxDate && dateFns.isAfter( normalizedDay, dateFns.startOfDay( this.maxDate ) ) );\n\n const isTodayDay: boolean = dateFns.isToday( normalizedDay );\n\n // Si el día coincide con el día seleccionado\n const isSameDay: boolean | null = normalizedSelectedDate &&\n dateFns.getDate( normalizedDay ) ===\n dateFns.getDate( normalizedSelectedDate );\n\n // Está seleccionado si es el mismo día y estamos en el mismo mes y año\n const isSelected: boolean | null = isSameDay && normalizedSelectedDate &&\n dateFns.isSameMonth( normalizedDay, normalizedSelectedDate ) &&\n dateFns.isSameYear( normalizedDay, normalizedSelectedDate );\n\n // Es secundario si es el mismo día pero estamos en diferente mes o año\n const isSecondarySelected: boolean | null = isSameDay && !isSelected;\n\n const buttonClass: string = `day ${ isTodayDay ? 'today' : '' } ${\n isSelected\n ? 'selected'\n : isSecondarySelected\n ? 'secondary-selected'\n : ''\n }`;\n\n return html`\n <button\n class=\"${ buttonClass }\"\n ?disabled=${ isDisabled }\n @click=${ () => this.handleDayClick( day ) }\n >\n ${ dateFns.format( day, 'd' ) }\n </button>\n `;\n })}\n </div>\n `;\n }\n /**\n * Gestiona cambios de estado antes de la actualización.\n * Si el tipo es 'month', asegura que la vista nunca sea 'days'.\n */\n protected willUpdate(changedProperties: Map<string | number | symbol, unknown>) {\n if (this.type === 'month' && this.currentView === 'days') {\n this.currentView = 'months';\n }\n }\n\n /**\n * Renderiza el overlay del calendario según la vista actual (días, meses o años).\n * Incluye el encabezado y la cuadrícula correspondiente.\n \n * @returns {TemplateResult} Plantilla HTML del overlay del calendario.\n */\n public render() {\n let content;\n\n if ( this.currentView === 'days' ) content = this.renderDayView();\n else if ( this.currentView === 'months' ) content = this.renderMonthsView();\n else content = this.renderYearsView();\n\n const showSeparator = this.currentView === 'days';\n const mainContent = html` \n ${ this.renderHeader() } \n ${ showSeparator ? html`<div class=\"weekdays-separator\"></div>` : nothing } \n ${ content } \n `;\n\n if ( this.isMobile ) {\n return html`\n <div class=\"mobile-backdrop\" @click=${ () => this.dispatchEvent( new CustomEvent( 'close' ) ) }>\n <div class=\"mobile-modal\" @click=${ ( event: Event ) => event.stopPropagation() }>\n ${ mainContent }\n </div>\n </div>\n `;\n }\n\n return html`\n <div class=\"calendar-container\" style=\"width: ${ this.calendarWidth }px;\">\n ${ mainContent }\n </div>\n `;\n }\n}","import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setYear} function options.\n */\n\n/**\n * @name setYear\n * @category Year Helpers\n * @summary Set the year to the given date.\n *\n * @description\n * Set the year to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param year - The year of the new date\n * @param options - An object with options.\n *\n * @returns The new date with the year set\n *\n * @example\n * // Set year 2013 to 1 September 2014:\n * const result = setYear(new Date(2014, 8, 1), 2013)\n * //=> Sun Sep 01 2013 00:00:00\n */\nexport function setYear(date, year, options) {\n const date_ = toDate(date, options?.in);\n\n // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date\n if (isNaN(+date_)) return constructFrom(options?.in || date, NaN);\n\n date_.setFullYear(year);\n return date_;\n}\n\n// Fallback for modularized imports:\nexport default setYear;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { getDaysInMonth } from \"./getDaysInMonth.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setMonth} function options.\n */\n\n/**\n * @name setMonth\n * @category Month Helpers\n * @summary Set the month to the given date.\n *\n * @description\n * Set the month to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param month - The month index to set (0-11)\n * @param options - The options\n *\n * @returns The new date with the month set\n *\n * @example\n * // Set February to 1 September 2014:\n * const result = setMonth(new Date(2014, 8, 1), 1)\n * //=> Sat Feb 01 2014 00:00:00\n */\nexport function setMonth(date, month, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n const day = _date.getDate();\n\n const midMonth = constructFrom(options?.in || date, 0);\n midMonth.setFullYear(year, month, 15);\n midMonth.setHours(0, 0, 0, 0);\n const daysInMonth = getDaysInMonth(midMonth);\n\n // Set the earlier date, allows to wrap Jan 31 to Feb 28\n _date.setMonth(month, Math.min(day, daysInMonth));\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setMonth;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDay} function options.\n */\n\n/**\n * @name getDay\n * @category Weekday Helpers\n * @summary Get the day of the week of the given date.\n *\n * @description\n * Get the day of the week of the given date.\n *\n * @param date - The given date\n * @param options - The options\n *\n * @returns The day of week, 0 represents Sunday\n *\n * @example\n * // Which day of the week is 29 February 2012?\n * const result = getDay(new Date(2012, 1, 29))\n * //=> 3\n */\nexport function getDay(date, options) {\n return toDate(date, options?.in).getDay();\n}\n\n// Fallback for modularized imports:\nexport default getDay;\n","import { html, css, nothing } from \"lit\";\nimport { customElement, property, query, state } from \"lit/decorators.js\";\nimport { format, isAfter, isBefore, isValid, subYears, setDate } from \"date-fns\";\nimport { classMap, ClassMapDirective } from 'lit/directives/class-map.js';\nimport { DirectiveResult } from \"lit-html/directive\";\nimport { BaseControl } from \"../helpers/BaseControl\";\nimport { bodyL } from '../styles/fontStyles';\nimport { mixStyles } from \"../styles/mix\";\nimport { errorStyles } from \"../styles/error\";\nimport { tooltipStyles } from \"../styles/tooltip\";\n\nimport \"./CalendarOverlay.ts\";\n\n@customElement(\"datepicker-component\")\nexport class DatePickerComponent extends BaseControl {\n @property({ type: String }) width?: string;\n @property({ type: Boolean }) isRenderClearButton = true;\n @property({ type: Boolean }) readonly = false;\n\n @property({ type: String }) minDate?: string;\n @property({ type: String }) maxDate?: string;\n @property({ type: String }) type: 'date' | 'month' = 'date';\n\n // Validador de edad +18\n @property({ type: Boolean }) eighteenOrOlder = false;\n\n // Definición del maxLength del input\n @property({ type: Number }) maxLength: number = 10;\n\n @state() private isOpen = false;\n @state() private selectedDate: Date | null = null;\n @state() private viewDate: Date = new Date();\n @state() private isMobile = false;\n @state() private calendarWidth: number = 0;\n\n @state() private inputValue: string | null = null;\n\n @query(\".input-container\") private inputContainer!: HTMLDivElement;\n @property({ type: Boolean, attribute: 'last-element' }) lastElement = false\n\n static styles = css`\n ${mixStyles}\n ${errorStyles}\n ${tooltipStyles}\n\n /* Si se proporciona una propiedad width (ej. width=\"600px\"), se usa ese valor. */\n :host {\n display: block; \n --datepicker-min-width: 100%; \n --datepicker-max-width: 100%; \n max-width: var( --datepicker-max-width );\n }\n\n .datepicker-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n max-width: var( --datepicker-max-width );\n transition: margin-bottom 0.2s ease-in-out;\n }\n\n /* Estilos para evitar el desbordamiento en móviles */\n calendar-overlay {\n max-width: 100dvw;\n box-sizing: border-box;\n }\n\n /* Estilos para el estado disabled */\n .input-wrapper.disabled, .input-wrapper.disabled .date-input {\n background-color: var( --secondary-color-10 ) ;\n color: #9FA3B3;\n cursor: default;\n }\n\n .input-wrapper.disabled .icon-button,\n .input-wrapper.disabled .icon-button randstad-icon {\n color: #9FA3B3;\n cursor: default;\n }\n\n /* Estilos para el estado readonly */\n .input-wrapper.readonly .date-input {\n cursor: pointer;\n }\n\n .input-wrapper.readonly .calendar-button {\n cursor: pointer;\n color: #2175d9;\n }\n\n /* Estilos del campo de entrada y sus estados */\n .input-wrapper {\n display: flex;\n align-items: center;\n border: 1px solid var( --md-sys-color-outline, #e0e0e0 );\n border-radius: 4px;\n padding: 0 16px;\n transition: border-color 0.2s;\n background: white;\n box-sizing: border-box;\n min-width: var( --datepicker-min-width ); \n max-width: var( --datepicker-max-width ); \n }\n\n .input-wrapper:hover {\n box-shadow: 0px 0px 0px 4px #0f19411a;\n }\n\n .input-wrapper.active:hover {\n box-shadow: 0px 0px 0px 4px #0f19411a;\n }\n\n .input-wrapper.active {\n border: 1px solid var( --primary-color );\n box-shadow: none;\n }\n\n .date-input {\n ${bodyL}\n flex-grow: 1;\n border: none;\n outline: none;\n padding: 16px 0;\n cursor: text;\n background: white;\n color: var(--secondary-color, #49454f);\n min-width: 0;\n }\n \n .date-input :-webkit-autofill,\n .date-input :-webkit-autofill:hover,\n .date-input :-webkit-autofill:focus,\n .date-input :-webkit-autofill:active {\n -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;\n -webkit-text-fill-color: var(--secondary-color);\n transition: background-color 5000s ease-in-out 0s;\n }\n\n .icon-button {\n background: none;\n border: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n transition: background-color 0.2s ease;\n }\n \n .input-wrapper:not(.disabled) .icon-button:hover {\n background-color: var(--primary-color-10);\n }\n\n .clear-button {\n margin-right: 18px;\n color: #49454f;\n opacity: 0.6;\n }\n\n .clear-button randstad-icon {\n width: 18px;\n height: 18px;\n }\n\n .calendar-button {\n color: #2175d9;\n }\n\n .calendar-button randstad-icon {\n font-size: 18px;\n }\n\n @media ( max-width: 940px ) {\n .icon-button:hover {\n background-color: transparent;\n }\n }\n `;\n\n private setMessageErrorFormatInvalid(): string {\n const formatStr = this.type === 'month' ? 'MM-yyyy' : 'dd-MM-yyyy';\n return `formato de fecha inválido, se esperaba '${formatStr}'`;\n }\n\n private get _currentFormat(): string {\n return this.type === 'month' ? 'MM-yyyy' : 'dd-MM-yyyy';\n }\n\n /**\n * Devuelve el foco al input principal del DatePicker.\n * Se utiliza cuando el usuario sale del CalendarOverlay (ej. tecla ArrowUp).\n */\n private handleFocusInput() {\n (this.shadowRoot?.querySelector('.date-input') as HTMLInputElement)?.focus();\n }\n\n /**\n * Ciclo de vida: se ejecuta al conectar el componente al DOM.\n * Inicializa el modo responsivo y listeners globales.\n */\n public connectedCallback() {\n super.connectedCallback();\n this.updateResponsiveMode();\n\n window.addEventListener('resize', this.updateResponsiveModeBound);\n document.addEventListener('click', this.handleClickOutside);\n\n this.addEventListener('focus-input', this.handleFocusInput as EventListener);\n window.addEventListener('overlay-opened', this.handleGlobalOverlayOpen);\n }\n\n /**\n * Ciclo de vida: se ejecuta al desconectar el componente del DOM.\n * Limpia listeners globales.\n */\n public disconnectedCallback() {\n window.removeEventListener('resize', this.updateResponsiveModeBound);\n document.removeEventListener('click', this.handleClickOutside);\n\n this.removeEventListener('focus-input', this.handleFocusInput as EventListener);\n window.removeEventListener('overlay-opened', this.handleGlobalOverlayOpen);\n super.disconnectedCallback();\n }\n\n\n private handleGlobalOverlayOpen = (e: Event) => {\n const customEvent = e as CustomEvent;\n\n if (customEvent.detail !== this && this.isOpen) {\n this.isOpen = false;\n this._emitDropdownToggle(false);\n }\n };\n\n private notifyOverlayOpened() {\n window.dispatchEvent(new CustomEvent('overlay-opened', { detail: this }));\n }\n\n\n /**\n * Ciclo de vida: se llama después de que la primera actualización del componente ha terminado.\n * Es ideal para obtener el ancho del DOM por primera vez.\n */\n public firstUpdated() {\n this.setInitialWidth();\n }\n\n private setInitialWidth() {\n if (!this.inputContainer) return;\n const newWidth = this.inputContainer.getBoundingClientRect().width;\n if (this.calendarWidth !== newWidth) {\n this.calendarWidth = newWidth;\n }\n }\n\n /**\n * Referencia enlazada para el listener de resize.\n */\n private updateResponsiveModeBound = this.updateResponsiveMode.bind(this);\n\n /**\n * Actualiza el estado isMobile según el ancho de la ventana.\n */\n private updateResponsiveMode() {\n this.isMobile = window.innerWidth <= 940;\n // Se llama a setInitialWidth() para recalcular el ancho si la vista cambia\n this.setInitialWidth();\n }\n\n /**\n * Maneja el evento de entrada del usuario en el input.\n * Valida el formato de la fecha y actualiza el estado del componente.\n \n * @param event - Objeto de evento de entrada.\n */\n public handleInput(event: Event) {\n this.onlyNumericAndDash(event);\n const input: HTMLInputElement = event.target as HTMLInputElement;\n\n const trimmedValue: string = input.value.substring(0, this.maxLength);\n if (input.value !== trimmedValue) input.value = trimmedValue;\n\n this.inputValue = input.value;\n this._parseAndValidateDate(input.value, true);\n }\n\n /**\n * Cierra el calendario si el clic se realiza fuera del componente.\n * Se ejecuta en el `document` para detectar clics en cualquier lugar de la página.\n \n * @param e - Objeto de evento del clic.\n */\n private handleClickOutside = (event: Event) => {\n const path: EventTarget[] = event.composedPath();\n\n if (!path.includes(this)) {\n if (this.isOpen) {\n this._emitToggle(false);\n this._emitDropdownToggle(false);\n }\n this.isOpen = false;\n }\n };\n\n /**\n * Abre o cierra el calendario al hacer clic en el botón de calendario.\n \n * @param e - Objeto de evento del clic.\n */\n public handleCalendarButtonClick(event: Event) {\n if (this.disabled) return;\n event.stopPropagation();\n\n if (this.isOpen) {\n this.isOpen = false;\n this._emitToggle(false);\n this._emitDropdownToggle(false);\n\n const input: HTMLInputElement | null = this.shadowRoot?.querySelector('.date-input') as HTMLInputElement;\n input?.focus();\n\n return;\n }\n\n this.notifyOverlayOpened();\n this.isOpen = true;\n this._emitToggle(true);\n this._emitDropdownToggle(true);\n\n if (this.selectedDate) this.viewDate = this.selectedDate;\n else this.viewDate = new Date();\n\n this.updateComplete.then(() => {\n const input: HTMLInputElement | null = this.shadowRoot?.querySelector('.date-input') as HTMLInputElement;\n input?.focus();\n });\n }\n\n /**\n * Borra la fecha seleccionada y cierra el calendario.\n */\n public handleClearDate() {\n this.inputValue = null;\n this.selectedDate = null;\n this.error = false;\n this.errorMessage = null;\n\n this.closeOverlay(null);\n }\n\n /**\n * Maneja la selección de fecha desde el calendario.\n */\n private handleDateSelect(event: CustomEvent) {\n let selected: Date | null = event.detail.date;\n if (!selected) return;\n\n if (this.type === 'month') {\n selected = setDate(selected, 1);\n }\n\n const isValidDate: boolean = this._validateDate(selected);\n\n if (isValidDate) {\n this.selectedDate = selected;\n this.viewDate = selected;\n\n const formattedDate = format(selected, this._currentFormat);\n this.inputValue = formattedDate.replace(/-/g, '/');\n\n this.closeOverlay(formattedDate);\n } else {\n const formattedDate = format(selected, this._currentFormat);\n this.inputValue = formattedDate.replace(/-/g, '/');\n\n this.selectedDate = null;\n this.closeOverlay(null);\n }\n }\n\n private _emitToggle(opened: boolean) {\n this.dispatchEvent(new CustomEvent('calendar-toggle', {\n detail: { open: opened },\n bubbles: true,\n composed: true\n }));\n }\n\n /**\n * Verifica si este componente es el último elemento focusable dentro de su contenedor (modal/form).\n * Returns true si es el último o único elemento focusable.\n */\n private _isLastFocusableInModal(): boolean {\n const parent = this.parentElement;\n if (!parent) return false;\n\n // Obtener todos los elementos focusables en el padre\n const focusableSelectors = [\n 'button:not([disabled])',\n 'input:not([disabled])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n 'a[href]',\n '[tabindex]:not([tabindex=\"-1\"])',\n 'randstad-button:not([disabled])',\n 'datepicker-component:not([disabled])',\n 'randstad-select:not([disabled])'\n ].join(', ');\n\n const focusableElements = parent.querySelectorAll(focusableSelectors);\n const focusableArray = Array.from(focusableElements);\n\n // Encontrar el índice de este componente\n const myIndex = focusableArray.indexOf(this);\n\n // Si no está en la lista, no es focusable\n if (myIndex === -1) return false;\n\n // Verificar si es el último elemento focusable\n return myIndex === focusableArray.length - 1;\n }\n\n /**\n * Emite el evento dropdown-toggle-calendar para notificar al modal padre.\n * Solo se dispara si el DatePicker es el último elemento focusable del formulario/modal.\n */\n private _emitDropdownToggle(open: boolean) {\n if (open) {\n if (this.isOpen && this.lastElement) {\n this.updateComplete.then(() => {\n this.dispatchEvent(new CustomEvent('dropdown-toggle-calendar', {\n detail: { open: true },\n bubbles: true,\n composed: true\n }));\n });\n }\n } else {\n this.updateComplete.then(() => {\n this.dispatchEvent(new CustomEvent('dropdown-toggle-calendar', {\n detail: { open: false },\n bubbles: true,\n composed: true\n }));\n });\n }\n }\n\n /**\n * Ciclo de vida: se llama antes de cada actualización.\n * Se utiliza para preparar el estado antes del renderizado.\n * NO modifica propiedades reactivas aquí para evitar loops de renderizado.\n */\n protected willUpdate(changedProperties: Map<string, any>) {\n if (changedProperties.has(\"width\")) {\n this.style.setProperty('width', this.width || '100%');\n }\n\n if (changedProperties.has(\"value\")) {\n const oldValue = changedProperties.get(\"value\");\n if (this.value !== oldValue) {\n this._syncValue(this.value);\n }\n }\n\n if (changedProperties.has(\"type\")) {\n if (this.type === 'month') {\n this.maxLength = 7;\n } else {\n this.maxLength = 10;\n }\n }\n }\n\n /**\n * Ciclo de vida: se llama después de cada actualización del componente.\n * Se usa para operaciones que requieren el DOM ya renderizado.\n * Solo recalcula el ancho si es necesario y evita loops de actualización.\n */\n public updated(changedProperties: Map<string, any>) {\n // Recalcular ancho solo cuando el calendario se abre o cambia el valor\n // Usamos una bandera para evitar múltiples llamadas en el mismo ciclo\n if (changedProperties.has(\"isOpen\") || changedProperties.has(\"value\")) {\n if (this.isOpen) {\n this.updateComplete.then(() => {\n this.setInitialWidth();\n });\n }\n }\n\n super.updated(changedProperties);\n }\n\n /**\n * Maneja el cambio de la fecha de vista en el calendario.\n \n * @param e - Objeto de evento con la nueva fecha de vista.\n */\n private handleViewDateChange(event: CustomEvent) {\n this.viewDate = event.detail.date;\n }\n\n /**\n * Cierra el calendario y actualiza el valor del componente.\n * Emite un evento 'date-selected' con el valor de la fecha seleccionada.\n \n * @param valueSet - La fecha en formato de cadena (ej: 'dd-MM-yyyy') a establecer.\n */\n private closeOverlay(valueSet: string | null) {\n this.value = valueSet;\n\n // Ensure the visible input shows slashes instead of dashes (visual only).\n // Keep the internal `value` using the original dashed format.\n this.inputValue = valueSet ? valueSet.replace(/-/g, '/') : null;\n\n this.dispatchEvent(new CustomEvent('date-selected', { detail: { value: valueSet } }));\n this.isOpen = false;\n this._emitToggle(false);\n this._emitDropdownToggle(false);\n\n const input: HTMLInputElement | null = this.shadowRoot?.querySelector('.date-input') as HTMLInputElement;\n input?.focus();\n }\n\n /**\n * Analiza la propiedad 'value' externa y actualiza el estado interno del componente.\n * Se ejecuta cuando una propiedad cambia desde fuera (p. ej., Storybook, componente padre).\n * No emite eventos ni interactúa con el DOM para evitar bucles de renderizado.\n\n * @param value La cadena de fecha pasada desde una propiedad externa.\n */\n private _syncValue(value: string | null) {\n if (value === '' || value === null) {\n if (this.selectedDate !== null || this.inputValue !== null) {\n this.selectedDate = null;\n this.inputValue = null;\n this.errorMessage = null;\n this.error = false;\n }\n\n return;\n }\n\n let parsedDate: Date | null = this._parseDate(value);\n\n if (parsedDate && this._validateDate(parsedDate)) {\n if (this.type === 'month') {\n parsedDate = setDate(parsedDate, 1);\n }\n\n this.selectedDate = parsedDate;\n this.viewDate = parsedDate;\n\n this.error = false;\n this.errorMessage = null;\n\n this.inputValue = format(parsedDate, this._currentFormat).replace(/-/g, '/');\n } else {\n this.selectedDate = parsedDate;\n }\n }\n\n /**\n * Valida una fecha basándose en las reglas del componente.\n * Esto incluye la validación de edad y el rango de fechas.\n \n * @param date - El objeto Date a validar.\n * @returns `true` si la fecha es válida, `false` de lo contrario.\n */\n private _validateDate(date: Date | null): boolean {\n if (!date) return false;\n\n // Resetear el estado de error antes de validar \n this.error = false;\n this.errorMessage = null;\n\n // Lógica de validación de edad\n if (this.eighteenOrOlder) {\n const eighteenYearsAgo: Date = subYears(new Date(), 18);\n\n if (isAfter(date, eighteenYearsAgo)) {\n this.error = true;\n this.errorMessage = 'tenés que ser mayor de 18 años';\n\n return false;\n }\n }\n\n // Lógica de validación de rango\n let isValidRange: boolean = this._isWithinBounds(date);\n\n if (!isValidRange) {\n const range: { minDate: Date | null; maxDate: Date | null; } | null = this._getValidDateRange();\n\n this.error = true;\n return false;\n }\n\n return true;\n }\n\n /**\n * Valida la entrada del usuario en el campo de texto.\n\n * Este método se llama con cada pulsación de tecla o cambio en el input.\n * Se encarga de validar el formato, verificar si la fecha está dentro de los límites\n * y de actualizar el estado de error y el valor del input.\n \n * @param value La cadena de fecha que el usuario ha introducido.\n * @param fromInput Indica si la llamada proviene directamente de la interacción del usuario.\n */\n private _parseAndValidateDate(value: string | null, fromInput: boolean) {\n if (this.disabled) return;\n\n if (value === '' || value === null) {\n this.selectedDate = null;\n this.error = false;\n this.errorMessage = null;\n\n if (fromInput) this.closeOverlay(null);\n return;\n }\n\n const parsedDate: Date | null = this._parseDate(value);\n\n if (parsedDate) {\n const isValidDate = this._validateDate(parsedDate);\n\n if (isValidDate) {\n this.selectedDate = parsedDate;\n this.viewDate = parsedDate;\n this.error = false;\n this.errorMessage = null;\n\n if (fromInput) this.closeOverlay(format(parsedDate, this._currentFormat));\n } else {\n // El error y el mensaje ya han sido seteados por _validateDate\n this.error = true;\n this.selectedDate = null;\n\n if (fromInput) this.closeOverlay(null);\n }\n } else {\n this.error = true;\n this.errorMessage = this.setMessageErrorFormatInvalid();\n this.selectedDate = null;\n\n if (fromInput) this.closeOverlay(null);\n }\n }\n\n /**\n * Intenta analizar una cadena de fecha en múltiples formatos.\n * Este método es la fuente de la verdad para el análisis de fechas. \n * Soporta los formatos 'dd-MM-yyyy' y 'yyyy-MM-dd', retornando un objeto Date.\n \n * @param dateString La cadena de fecha a analizar.\n * @returns Un objeto Date si es válido, de lo contrario, null.\n */\n private _parseDate(dateString: string): Date | null {\n // Intenta parsear como 'dd-MM-yyyy'\n const parts = dateString.split('-').map(Number);\n\n if (this.type === 'month' && parts.length === 2) {\n const [month, year] = parts;\n if (month >= 1 && month <= 12 && year > 1000) {\n const tempDate = new Date(year, month - 1, 1, 12);\n if (isValid(tempDate)) return tempDate;\n }\n return null;\n }\n\n if (parts.length === 3) {\n const [day, month, year] = parts;\n\n if (day && month && year && month >= 1 && month <= 12 && year > 1000) {\n const tempDate = new Date(year, month - 1, day, 12);\n if (isValid(tempDate) && format(tempDate, 'dd-MM-yyyy') === dateString) return tempDate;\n }\n }\n\n // Si no es un formato válido, intenta parsear como 'yyyy-MM-dd'\n const partsYYYYMMDD = dateString.split('-').map(Number);\n\n if (partsYYYYMMDD.length === 3) {\n const [year, month, day] = partsYYYYMMDD;\n\n if (year && month && day && month >= 1 && month <= 12 && year > 1000) {\n const tempDate = new Date(year, month - 1, day, 12);\n if (isValid(tempDate) && format(tempDate, 'yyyy-MM-dd') === dateString) return tempDate;\n }\n }\n\n return null;\n }\n\n /**\n * Analiza una cadena de fecha con formato 'yyyy-MM-dd'.\n * Este método auxiliar ayuda a procesar la propiedad minDate y maxDate.\n \n * @param dateString La cadena de fecha en formato 'yyyy-MM-dd'.\n\n * @returns Un objeto Date si es válido, de lo contrario, null.\n */\n private _parseDateString(dateString: string | undefined): Date | null {\n if (!dateString) return null;\n const parts: number[] = dateString.split('-').map(Number);\n\n if (parts.length === 3 && !isNaN(parts[0]) && !isNaN(parts[1]) && !isNaN(parts[2])) {\n // Creamos la fecha al mediodía (12:00) para evitar cualquier cambio de día causado por la zona horaria.\n const date: Date = new Date(parts[0], parts[1] - 1, parts[2], 12);\n return date;\n }\n\n return null;\n }\n\n /**\n * Retorna el rango de fechas válido del componente.\n * Analiza las propiedades 'minDate' y 'maxDate' para determinar el rango permitido.\n \n * @returns Un objeto con las fechas mínima y máxima, o null si no se define un rango.\n */\n private _getValidDateRange(): { minDate: Date | null, maxDate: Date | null } | null {\n const minDateObj: Date | null = this._parseDateString(this.minDate);\n const maxDateObj: Date | null = this._parseDateString(this.maxDate);\n\n if (!minDateObj && !maxDateObj) return { minDate: null, maxDate: null };\n if (minDateObj && maxDateObj && isAfter(minDateObj, maxDateObj)) return null;\n\n return { minDate: minDateObj, maxDate: maxDateObj };\n }\n\n /**\n * Verifica si una fecha dada está dentro del rango permitido.\n \n * @param date La fecha a verificar.\n\n * @returns Verdadero si la fecha está dentro de los límites, de lo contrario, falso.\n */\n private _isWithinBounds(date: Date): boolean {\n const range: { minDate: Date | null, maxDate: Date | null } | null = this._getValidDateRange();\n\n // Si el rango es nulo (es inválido) o si no hay límites definidos, la fecha del usuario es válida\n if (!range) return true;\n\n // Comprobamos si la fecha está antes del mínimo\n if (range.minDate && isBefore(date, range.minDate)) return false;\n\n // Comprobamos si la fecha está después del máximo\n if (range.maxDate && isAfter(date, range.maxDate)) return false;\n\n return true;\n }\n\n /**\n * Maneja eventos de teclado en el input principal.\n\n @param event El objeto KeyboardEvent.\n */\n public handleKeyDown(event: KeyboardEvent) {\n if (this.disabled) return;\n\n const { key } = event;\n const input: HTMLInputElement | null = this.shadowRoot?.querySelector('.date-input') as HTMLInputElement;\n\n if (key === 'Enter' || key === ' ') {\n event.preventDefault();\n\n if (this.isOpen) {\n this.closeOverlay(this.value);\n this._emitDropdownToggle(false);\n } else {\n this.notifyOverlayOpened();\n this.isOpen = true;\n this._emitToggle(true);\n this._emitDropdownToggle(true);\n\n if (this.selectedDate) this.viewDate = this.selectedDate;\n else this.viewDate = new Date();\n }\n } else if (key === 'Escape') {\n if (!this.isOpen) return;\n\n event.preventDefault();\n this.closeOverlay(this.value);\n this._emitDropdownToggle(false);\n } else if (key === 'ArrowDown') {\n event.preventDefault();\n\n if (!this.isOpen) {\n this.notifyOverlayOpened();\n this.isOpen = true;\n this._emitToggle(true);\n this._emitDropdownToggle(true);\n\n if (this.selectedDate) this.viewDate = this.selectedDate;\n else this.viewDate = new Date();\n }\n\n // Una vez que esté abierto (o después de abrirlo), movemos el foco al calendario.\n this.updateComplete.then(() => {\n const calendarOverlay: any = this.shadowRoot?.querySelector('calendar-overlay');\n\n if (calendarOverlay && typeof calendarOverlay.focusCalendar === 'function')\n calendarOverlay.focusCalendar();\n });\n }\n\n const clearButton: HTMLButtonElement | null = this.shadowRoot?.querySelector('.clear-button') as HTMLButtonElement;\n const calendarButton: HTMLButtonElement | null = this.shadowRoot?.querySelector('.calendar-button') as HTMLButtonElement;\n\n if (key === 'ArrowRight') {\n event.preventDefault();\n\n // Del Input, pasa al Clear Button (si existe) o al Calendar Button\n if (this.shadowRoot?.activeElement === input) {\n if (clearButton) clearButton.focus();\n else calendarButton?.focus();\n }\n }\n }\n\n /**\n * Maneja los eventos de teclado en el botón de borrar (Close/Clear).\n */\n public handleClearButtonKeydown(event: KeyboardEvent) {\n if (this.disabled) return;\n\n const { key } = event;\n\n const input: HTMLInputElement | null = this.shadowRoot?.querySelector('.date-input') as HTMLInputElement;\n const calendarButton: HTMLButtonElement | null = this.shadowRoot?.querySelector('.calendar-button') as HTMLButtonElement;\n\n if (key === 'ArrowLeft') {\n event.preventDefault();\n input?.focus();\n } else if (key === 'ArrowRight') {\n event.preventDefault();\n calendarButton?.focus();\n }\n }\n\n /**\n * Maneja los eventos de teclado en el botón del calendario.\n */\n public handleCalendarButtonKeydown(event: KeyboardEvent) {\n if (this.disabled) return;\n\n const { key } = event;\n const input: HTMLInputElement | null = this.shadowRoot?.querySelector('.date-input') as HTMLInputElement;\n const clearButton: HTMLButtonElement | null = this.shadowRoot?.querySelector('.clear-button') as HTMLButtonElement;\n\n if (key === 'Tab') {\n if (!event.shiftKey && !this.isOpen) {\n event.preventDefault();\n this.notifyOverlayOpened();\n this.isOpen = true;\n this._emitToggle(true);\n this._emitDropdownToggle(true);\n\n if (this.selectedDate) this.viewDate = this.selectedDate;\n else this.viewDate = new Date();\n\n this.updateComplete.then(() => {\n const calendarOverlay: any = this.shadowRoot?.querySelector('calendar-overlay');\n if (calendarOverlay && typeof calendarOverlay.focusFirstElement === 'function') {\n calendarOverlay.focusFirstElement();\n }\n });\n return;\n }\n if (this.isOpen) {\n event.preventDefault();\n this.closeOverlay(this.value);\n return;\n }\n }\n\n if (key === 'ArrowLeft') {\n event.preventDefault();\n\n if (clearButton) clearButton.focus();\n else input?.focus();\n } else {\n if (key === 'Enter' || key === ' ') event.preventDefault();\n this.handleCalendarButtonClick(event);\n }\n }\n\n /**\n * Restringe la entrada del input a solo dígitos (0-9) y el guion (-).\n */\n public onlyNumericAndDash(event: Event) {\n const inputElement: HTMLInputElement = event.target as HTMLInputElement;\n const currentValue: string = inputElement.value;\n\n // Solo permite dígitos (0-9) y el guion (-)\n const sanitizedValue: string = currentValue.replace(/[^0-9-]/g, '');\n\n // Actualiza el valor del input con el valor limpio\n inputElement.value = sanitizedValue;\n }\n\n /**\n * Renderiza el componente DatePicker, incluyendo el input, botones y el overlay del calendario.\n */\n public render() {\n const inputWrapperClasses: DirectiveResult<typeof ClassMapDirective> = classMap({\n 'input-wrapper': true,\n 'active': this.isOpen,\n 'error': this.error,\n 'disabled': this.disabled,\n 'readonly': this.readonly\n });\n\n const range: { minDate: Date | null, maxDate: Date | null } | null = this._getValidDateRange();\n\n return html`\n <div class=\"datepicker-container\" style=\"${this.labelColor ? ` --label-color: ${this.labelColor}` : ''}\">\n ${this.renderLabelContainer()}\n\n <div class=\"input-container\">\n <div class=\"${inputWrapperClasses}\">\n <input\n type=\"text\"\n class=\"date-input\"\n .value=\"${this.inputValue ?? ''}\"\n placeholder=\"${this.placeholder}\"\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n maxlength=\"${this.maxLength}\"\n inputmode=\"numeric\"\n @input=${this.readonly ? null : this.handleInput}\n @keydown=${this.readonly ? null : this.handleKeyDown}\n @click=${this.readonly ? this.handleCalendarButtonClick : null}\n />\n\n ${this.isRenderClearButton && this.selectedDate && !this.disabled\n ? html`\n <button\n class=\"icon-button clear-button\"\n tabindex=\"0\"\n @click=${this.handleClearDate}\n @keydown=${this.handleClearButtonKeydown}\n >\n <randstad-icon name=\"close\"></randstad-icon>\n </button>\n `\n : nothing\n }\n\n <button\n class=\"icon-button calendar-button\"\n tabindex=\"0\"\n @click=${this.handleCalendarButtonClick}\n @keydown=${this.handleCalendarButtonKeydown}\n >\n <randstad-icon name=\"calendar\"></randstad-icon>\n </button>\n </div>\n\n ${this.isOpen\n ? html`\n <calendar-overlay\n .type=${this.type}\n .isMobile=${this.isMobile}\n .selectedDate=${this.selectedDate}\n .viewDate=${this.viewDate}\n .calendarWidth=${this.calendarWidth}\n .minDate=${range?.minDate}\n .maxDate=${range?.maxDate}\n .lastElement=${this.lastElement}\n @close=${() => (this.isOpen = false)}\n @view-date-change=${this.handleViewDateChange}\n @date-selected=${this.handleDateSelect}\n >\n </calendar-overlay>\n `\n : nothing\n }\n \n ${this.renderError()}\n </div>\n\n ${this.renderHelper()}\n </div>\n `;\n }\n}","import { addYears } from \"./addYears.js\";\n\n/**\n * The {@link subYears} function options.\n */\n\n/**\n * @name subYears\n * @category Year Helpers\n * @summary Subtract the specified number of years from the given date.\n *\n * @description\n * Subtract the specified number of years from the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of years to be subtracted.\n * @param options - An object with options\n *\n * @returns The new date with the years subtracted\n *\n * @example\n * // Subtract 5 years from 1 September 2014:\n * const result = subYears(new Date(2014, 8, 1), 5)\n * //=> Tue Sep 01 2009 00:00:00\n */\nexport function subYears(date, amount, options) {\n return addYears(date, -amount, options);\n}\n\n// Fallback for modularized imports:\nexport default subYears;\n","import { html, css, nothing, TemplateResult } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { BaseUpload, FileHandlerConfig } from '../helpers/BaseUpload';\nimport { bodyM } from '../styles/fontStyles';\nimport { tooltipStyles } from \"../styles/tooltip\";\nimport { mixStyles } from '../styles/mix';\nimport { errorStyles } from '../styles/error';\nimport { progressBarUploadStyles } from '../styles/progress-bar-upload';\nimport { FILE_TYPE_MAPPING } from '../utils/file-format';\n\nimport '../components/Button';\nimport '../components/Icon';\nimport '../components/Popup';\n\n@customElement('upload-file')\nexport class UploadFile extends BaseUpload {\n @property({ type: String }) width?: string;\n\n @property({ type: Number }) maxFiles = 1;\n @property({ type: Array }) acceptedFileTypes: string[] = [];\n @property({ type: Number }) maxFileSize = 0;\n\n @property({ type: String }) buttonText = 'Agregar archivo';\n @property({ type: Boolean }) showDeleteConfirmation = false;\n @property({ type: Boolean }) showInternalError = true;\n\n @state() private isRemovePopupOpen: boolean = false;\n @state() private fileIndexToRemove: number = -1;\n @state() private fileNameToRemove: string = '';\n\n static styles = css`\n ${ mixStyles }\n ${ errorStyles }\n ${ tooltipStyles }\n ${ progressBarUploadStyles }\n\n :host([width]) {\n width: var( --upload-file-width );\n }\n\n /* Contenedor principal para organizar los elementos */\n .file-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n input[ type=\"file\" ] {\n display: none;\n }\n\n .file-list-container {\n width: 100%;\n display: flex;\n justify-content: flex-end;\n }\n\n .file-list {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: 8px;\n }\n\n .file-item {\n display: flex;\n align-items: center;\n gap: 8px;\n color: var( --secondary-color-80, #404767 );\n max-width: 100%;\n }\n\n .file-name {\n ${ bodyM };\n text-align: right;\n color: var( --secondary-color-40 );\n vertical-align: middle;\n leading-trim: NONE;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 250px;\n }\n\n .remove-file-button {\n --primary-color: var( --ui-negative, #E00F0F );\n }\n\n .progress-bar {\n width: 100%;\n }\n\n randstad-button::part( button ):focus-visible {\n outline: 2px solid rgb( 0, 215, 255 ) !important;\n outline-offset: 1px;\n }\n `;\n\n private getFileConfig(): FileHandlerConfig {\n const hasTypeLimit: boolean = this.acceptedFileTypes.length > 0;\n const hasSizeLimit: boolean = this.maxFileSize > 0;\n\n return {\n baseMaxFiles: this.maxFiles,\n maxFileSize: this.maxFileSize,\n acceptedFileTypes: this.acceptedFileTypes,\n errorMessageType: (hasTypeLimit && this.showInternalError)\n ? `formato de archivo no válido, se aceptan: ${ this.getTextAcceptedFileTypes() }`\n : '',\n errorMessageSize: (hasSizeLimit && this.showInternalError)\n ? `el archivo es demasiado grande, el máximo es de ${ this.getTextMaxFileSize() }`\n : '',\n typeError: 'file'\n };\n }\n\n private getTextAcceptedFileTypes(): string {\n return this.getReadableFileTypes( this.acceptedFileTypes, FILE_TYPE_MAPPING );\n }\n\n private getTextMaxFileSize(): string {\n return this.baseGetTextMaxFileSize( this.maxFileSize );\n }\n\n public updated( changedProperties: Map<string, any> ) {\n super.updated( changedProperties );\n this.applyWidth();\n }\n\n private applyWidth() {\n if ( this.width ) this.style.setProperty( '--upload-file-width', this.width );\n }\n\n private onFileInputChange( event: Event ) {\n this.baseOnFileInputChange( event, this.getFileConfig() );\n }\n\n public willUpdate( changedProperties: Map<string | number | symbol, unknown> ) {\n if ( changedProperties.has( 'maxFiles' ) || changedProperties.size === 0 )\n this.isMultiple = this.maxFiles > 1;\n }\n\n private handleRemoveFile( index: number, fileName: string ) {\n if ( !this.showDeleteConfirmation ) {\n this.removeFile( index, 'file' );\n return;\n }\n\n this.confirmRemoveFile ( index, fileName );\n }\n\n private confirmRemoveFile( index: number, fileName: string ) {\n this.fileIndexToRemove = index;\n this.fileNameToRemove = fileName;\n this.isRemovePopupOpen = true;\n }\n\n private handlePopupClose( event: CustomEvent ) {\n const shouldRemove = event.detail;\n\n if ( shouldRemove === false ) {\n this.removeFile( this.fileIndexToRemove, 'file' );\n }\n\n this.isRemovePopupOpen = false;\n this.fileIndexToRemove = -1;\n this.fileNameToRemove = '';\n }\n\n public render() {\n const isMaxFilesReached: boolean = this.files.length >= this.maxFiles;\n const buttonDisabled: boolean = this.disabled || isMaxFilesReached;\n\n const buttonBaseTemplate: TemplateResult = html`\n <randstad-button\n .label=${ this.buttonText }\n .variant=${ 'button-primary' }\n ?disabled=${ buttonDisabled }\n @click=${ () => this.fileInput?.click() }\n >\n </randstad-button>\n `;\n\n return html`\n <div class=\"file-container\" style=\"${ this.labelColor ? `--label-color: ${ this.labelColor };` : '' }\">\n ${ this.renderLabelContainer() }\n\n ${ this.renderLoadingContainer( buttonBaseTemplate ) }\n\n <input\n type=\"file\"\n accept=${ this.acceptedFileTypes.join(',') }\n ?multiple=${ this.isMultiple }\n ?disabled=${ buttonDisabled }\n @change=\"${ this.onFileInputChange }\"\n />\n\n ${ this.renderError() }\n\n ${ this.renderHelper() }\n\n ${ this.files.length > 0\n ? html`\n <div class=\"file-list-container\">\n <div class=\"file-list\">\n ${ this.files.map( ( file, index ) =>\n html`\n <div class=\"file-item\">\n <span class=\"file-name\">${ file.name }</span>\n\n <randstad-button\n class=\"remove-file-button\"\n .variant=${'button-icon'}\n .iconName=${'trash'}\n @click=${ () => this.handleRemoveFile( index, file.name ) }\n ?disabled=${ this.disabled }\n >\n </randstad-button>\n </div>\n `\n )}\n </div>\n </div>\n `\n : nothing\n }\n\n ${ this.isRemovePopupOpen\n ? html`\n <custom-popup\n .open=${ this.isRemovePopupOpen }\n .type=${ 'other' }\n .icon=${ 'trash_circle' }\n .title=${ `¿querés eliminar este ${ this.typeTextFile || 'archivo' }?` }\n .description=${ undefined }\n .confirmText=${ 'cancelar' }\n .cancelText=${ 'sí, eliminar' }\n @popup-close=${ this.handlePopupClose }\n >\n </custom-popup>\n `\n : nothing\n }\n </div>\n `;\n }\n}\n","import { LitElement, html, css } from 'lit';\nimport { customElement, property, query, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport \"./CarouselCards\";\n\n@customElement('carousel-component')\nexport class Carousel extends LitElement {\n @property({ type: Array }) cards: any[] = [];\n @property({ type: String }) cardWidth: string = ''; \n @property({ type: String }) cardHeight: string = '';\n\n @property({ type: Number }) navWidth: number = 112; \n @property({ type: Boolean }) showNavButtons: boolean = true; \n @property({ type: Boolean }) isDynamicWidth: boolean = true; \n @property({ type: Boolean }) isInfiniteScrollPartial: boolean = true;\n\n @property({ type: Number }) autoPlayDelayMs: number = 0; \n\n @state() private showPrevButton = false;\n @state() private showNextButton = true;\n \n @query( '.carousel-wrapper' ) private slider!: HTMLElement;\n @query( 'slot' ) private slotElement!: HTMLSlotElement;\n\n protected isDraggingWithButtons: boolean = false; \n \n private isDownWithButtons: boolean = false;\n private startXWithButtons: number = 0;\n private scrollLeftPositionWithButtons: number = 0;\n private isScrollingByButton: boolean = false; \n\n private isDownDrag: boolean = false;\n private prevXDrag: number = 0;\n\n protected isDraggingDrag: boolean = false; \n protected scrollLeftDrag: number = 0;\n \n private observer: MutationObserver | null = null;\n private scrollTimeout: number | null = null; \n \n private autoPlayTimer: number | null = null;\n\n private handleResize: () => void = () => {}; \n\n private readonly DESKTOP_GAP: number = 40; // Gap para > 940px\n private readonly TABLET_GAP: number = 24; // Gap para >= 501 & <= 940px\n private readonly MOBILE_GAP: number = 24; // Gap para <= 500px\n \n constructor() {\n super();\n\n // Bindings para Lógica de Botones\n this.handleMouseDownWithButtons = this.handleMouseDownWithButtons.bind( this );\n this.handleMouseLeaveWithButtons = this.handleMouseLeaveWithButtons.bind( this );\n this.handleMouseUpWithButtons = this.handleMouseUpWithButtons.bind( this );\n this.handleMouseMoveWithButtons = this.handleMouseMoveWithButtons.bind( this );\n this.handleScrollWithButtons = this.handleScrollWithButtons.bind( this );\n \n // Bindings para Lógica de Arrastre\n this.handleMouseDownDrag = this.handleMouseDownDrag.bind( this );\n this.handleMouseLeaveDrag = this.handleMouseLeaveDrag.bind( this );\n this.handleMouseUpDrag = this.handleMouseUpDrag.bind( this );\n this.handleMouseMoveDrag = this.handleMouseMoveDrag.bind( this );\n\n this.handleResize = this.resizeHandler.bind( this );\n }\n\n static styles = css`\n :host {\n display: block;\n width: 100%;\n overflow: hidden;\n user-select: none;\n position: relative;\n\n --nav-width: 112px; \n --carousel-cards-gap: 24px;\n }\n\n .carousel-wrapper {\n display: flex;\n gap: var( --carousel-cards-gap );\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n scroll-snap-type: x mandatory;\n\n scroll-padding-left: 25px; \n padding-right: 0; \n padding-left: 0;\n }\n\n .carousel-wrapper.not-ininite-scroll-partial {\n scroll-padding-left: var( --nav-width );\n padding-right: 0; \n }\n \n .carousel-wrapper::-webkit-scrollbar { \n display: none; \n }\n\n .carousel-card-item { \n flex-shrink: 0; \n scroll-snap-align: start;\n }\n\n .nav-button {\n width: var( --nav-width ); \n display: flex; \n align-items: center; \n justify-content: center; \n position: absolute; \n top: 0;\n height: 100%;\n border: none; \n background-color: rgba( 15, 25, 65, 0.7 ); \n cursor: pointer;\n z-index: 10; \n transition: opacity 0.3s ease, background-color 0.3s ease;\n }\n\n .nav-button:hover, .nav-button:active  { \n background-color: rgba( 15, 25, 65, 0.7 ); \n }\n \n .nav-button.prev { \n left: 0; \n }\n \n .nav-button.next { \n right: 0; \n }\n \n .nav-button.hidden { \n opacity: 0; \n pointer-events: none; \n }\n \n .nav-button-inner {\n width: 48px; \n height: 48px; \n border-radius: 50%; \n display: flex; \n justify-content: center;\n align-items: center; \n background-color: transparent; \n transition: background-color 0.3s ease;\n }\n \n .nav-button:hover .nav-button-inner { \n background-color: rgba( 0, 215, 255, 1 ); \n }\n \n .nav-button:hover .nav-button-inner:active, .nav-button:active .nav-button-inner { \n background-color: rgba( 0, 194, 230, 1 ); \n }\n \n .nav-button-inner randstad-icon { \n width: 32px; \n height: 32px; \n --icon-color: white; \n transition: --icon-color 0.3s ease;\n }\n\n .nav-button:hover .nav-button-inner randstad-icon { \n --icon-color: rgba( 15, 25, 65, 1 ); \n }\n \n .nav-button:hover .nav-button-inner:active randstad-icon { \n --icon-color: rgba( 15, 25, 65, 1 ); \n }\n \n .carousel-wrapper.drag-mode {\n scroll-snap-type: none; \n\n padding-right: 25px !important; \n padding-left: 25px !important;\n }\n\n .carousel-wrapper.drag-mode.not-ininite-scroll-partial {\n scroll-snap-type: none; \n scroll-padding-left: 0 !important; \n }\n \n .carousel-wrapper.drag-mode:hover {\n cursor: grab;\n }\n\n .carousel-wrapper.drag-mode.active {\n cursor: grabbing;\n }\n\n .dynamic-width-mode, .static-width-mode {\n padding-right: 15%;\n scroll-padding-left: var( --nav-width );\n }\n \n .dynamic-width-mode .carousel-card-item {\n width: 85%;\n }\n\n @media ( min-width: 941px ) {\n .carousel-wrapper { \n gap: var( --carousel-cards-gap );\n scroll-padding-left: 100px;\n scroll-padding-right: 100px;\n }\n\n .carousel-wrapper.not-ininite-scroll-partial {\n gap: var( --carousel-cards-gap );\n scroll-padding-left: 0;\n scroll-padding-right: 0;\n }\n\n .static-width-mode.carousel-wrapper, .dynamic-width-mode.carousel-wrapper { \n gap: var( --carousel-cards-gap ); \n padding-right: 100px !important; \n padding-left: 100px !important; \n }\n\n .static-width-mode.carousel-wrapper.not-ininite-scroll-partial,.dynamic-width-mode.carousel-wrapper.not-ininite-scroll-partial { \n gap: var( --carousel-cards-gap ); \n padding-right: 0 !important;\n padding-left: 0 !important;\n }\n\n .carousel-wrapper.drag-mode {\n padding-left: 100px !important; \n padding-right: 100px !important; \n }\n\n .carousel-wrapper.drag-mode.not-ininite-scroll-partial {\n padding-right: 0 !important; \n padding-left: 0 !important; \n }\n \n .dynamic-width-mode .carousel-card-item {\n width: calc( ( 100% - ( 2 * var( --carousel-cards-gap ) ) + 100px ) / 3 );  \n }\n\n .dynamic-width-mode.not-ininite-scroll-partial .carousel-card-item {\n width: calc( ( 100% - ( 2 * var( --carousel-cards-gap ) ) ) / 3 );  \n }\n }\n\n @media ( min-width: 501px ) and ( max-width: 940px ) {\n .nav-button { \n /* Se ocultan en modo tablet. Se mantiene lógica por un posible futuro fix. */\n display: none; \n }\n \n .carousel-wrapper {\n gap: var( --carousel-cards-gap );\n scroll-padding-left: 50px !important; \n padding-right: var( --nav-width ) !important;\n }\n\n .carousel-wrapper.not-ininite-scroll-partial {\n scroll-padding-left: 0 !important; \n }\n\n .carousel-wrapper.drag-mode {\n padding-left: 50px !important; \n padding-right: var( --carousel-cards-gap ) !important; \n }\n\n .carousel-wrapper.drag-mode.not-ininite-scroll-partial {\n padding-right: 0 !important; \n padding-left: 0 !important; \n }\n\n .static-width-mode.carousel-wrapper, .dynamic-width-mode.carousel-wrapper { \n gap: var( --carousel-cards-gap );\n padding-left: 50px !important; \n padding-right: var( --carousel-cards-gap ) !important;\n }\n\n .static-width-mode.carousel-wrapper.not-ininite-scroll-partial, .dynamic-width-mode.carousel-wrapper.not-ininite-scroll-partial { \n gap: var( --carousel-cards-gap );\n padding-left: 0 !important; \n padding-right: 0 !important;\n }\n \n .static-width-mode:not(.drag-mode).carousel-wrapper, .dynamic-width-mode:not(.drag-mode).carousel-wrapper, .static-width-mode:not(.drag-mode).carousel-wrapper.not-ininite-scroll-partial, .dynamic-width-mode:not(.drag-mode).carousel-wrapper.not-ininite-scroll-partial {\n gap: var( --carousel-cards-gap );\n }\n \n .dynamic-width-mode .carousel-card-item { \n width: calc( 100% - var( --nav-width ) - var( --carousel-cards-gap ) - 50px ); /* Ancho ajustado para nav-mode */\n }\n \n .dynamic-width-mode.not-ininite-scroll-partial .carousel-card-item {\n width: calc( 100% - var( --nav-width ) - var( --carousel-cards-gap ) - 50px * 2 ); /* Ancho ajustado para nav-mode */ \n } \n\n .dynamic-width-mode.drag-mode .carousel-card-item {\n width: 85%;\n }\n }\n \n @media ( max-width: 500px ) {\n .nav-button { \n display: none; \n }\n\n .carousel-wrapper {\n scroll-padding-left: 25px !important;\n padding-right: 15%;\n }\n\n .carousel-wrapper.not-ininite-scroll-partial {\n scroll-padding-left: 0 !important;\n }\n\n .static-width-mode.carousel-wrapper, .dynamic-width-mode.carousel-wrapper {\n gap: var( --carousel-cards-gap );\n padding-left: 25px !important; \n padding-right: var( --carousel-cards-gap ) !important;\n }\n\n .static-width-mode.carousel-wrapper.not-ininite-scroll-partial, .dynamic-width-mode.carousel-wrapper.not-ininite-scroll-partial {\n gap: var( --carousel-cards-gap );\n padding-left: 0 !important; \n padding-right: 0 !important;\n }\n \n .dynamic-width-mode .carousel-card-item {\n width: 85%;\n }\n\n .static-width-mode.drag-mode.carousel-wrapper, .dynamic-width-mode.drag-mode.carousel-wrapper {\n padding-left: 25px !important;\n padding-right: var( --carousel-cards-gap ) !important; \n }\n\n .static-width-mode.drag-mode.carousel-wrapper.not-ininite-scroll-partial, .dynamic-width-mode.drag-mode.carousel-wrapper.not-ininite-scroll-partial {\n padding-right: 0 !important; \n padding-left: 0 !important;\n }\n\n .static-width-mode:not(.drag-mode).carousel-wrapper.not-ininite-scroll-partial, .dynamic-width-mode:not(.drag-mode).carousel-wrapper.not-ininite-scroll-partial {\n gap: var( --carousel-cards-gap );\n padding-right: 0 !important; \n }\n }\n `;\n\n /*\n * Obtiene el valor del gap basado en el viewport.\n */\n private getCarouselGap(): number {\n let gapValue: number;\n const width: number = window.innerWidth;\n\n if ( width >= 941 ) gapValue = this.DESKTOP_GAP;\n else if ( width >= 501 ) gapValue = this.TABLET_GAP;\n else gapValue = this.MOBILE_GAP;\n\n return gapValue;\n }\n\n /*\n * Determina el valor del gap basado en el viewport y lo aplica a la variable CSS.\n */\n private setCarouselGap() {\n // Aplica el valor a la variable CSS del :host\n this.style.setProperty( '--carousel-cards-gap', `${ this.getCarouselGap() }px` );\n }\n\n private getNavWidth(): number {\n const navWidth: number = this.navWidth ?? 112;\n return navWidth;\n }\n\n /*\n * Calcula el padding horizontal que debe compensarse en los cálculos de scroll.\n * Esto asegura que el \"inicio\" visible del carrusel esté correctamente identificado.\n */\n private getInitialPadding(): number {\n if ( !this.slider || this.showNavButtons === false ) return 0;\n\n const computedStyle: CSSStyleDeclaration = window.getComputedStyle( this.slider );\n \n // Cuando no estamos en modo DynamicWidth, scroll-padding-left es el valor de la media query (e.g. 25px, 50px, 100px).\n // Cuando estamos en DynamicWidth, scroll-padding-left es --nav-width o el valor de la media query.\n const scrollPaddingLeft: string = computedStyle.getPropertyValue( 'scroll-padding-left' );\n \n // Retorna el valor en pixeles del scroll-padding-left para compensación.\n return parseFloat( scrollPaddingLeft ) || 0;\n }\n\n protected updated( changedProperties: Map<string | number | symbol, any> ) {\n super.updated( changedProperties );\n\n if ( changedProperties.has( 'navWidth' ) ) \n this.style.setProperty( '--nav-width', `${ this.getNavWidth() }px` );\n }\n\n public firstUpdated() {\n if ( !this.slider ) return; \n\n this.setCarouselGap();\n this.initAutoPlayConfig();\n \n if ( this.cardWidth || this.isDynamicWidth === false ) \n this.isDynamicWidth = false;\n \n else if ( !this.hasAttribute( 'isdynamicwidth' ) || this.isDynamicWidth === undefined )\n this.isDynamicWidth = true;\n \n this.initNavModeConfig();\n\n this.slider.addEventListener( 'dragstart', ( e ) => e.preventDefault() );\n if ( this.cards.length === 0 && this.slotElement ) this.loadMutationObserver();\n }\n\n private initAutoPlayConfig() {\n if ( this.autoPlayDelayMs > 0 ) {\n this.isDynamicWidth = true;\n this.showNavButtons = false;\n }\n\n if ( this.autoPlayDelayMs > 0 && this.slider ) {\n // 1. Detener al entrar con el ratón\n this.slider.addEventListener( 'mouseenter', this.handleMouseEnter.bind( this ) ); \n \n // 2. Reanudar al salir con el ratón (si quieres que se reanude)\n this.slider.addEventListener( 'mouseleave', this.handleMouseLeaveDrag.bind( this ) );\n \n // 3. Detener al tocar (para móviles/tablets)\n this.slider.addEventListener( 'touchstart', this.handleMouseEnter.bind( this ) ); \n \n // 4. Reanudar al soltar el toque\n this.slider.addEventListener( 'touchend', this.handleMouseLeaveDrag.bind( this ) ); \n }\n }\n\n private initNavModeConfig() {\n const isNavMode: boolean = this.showNavButtons !== false;\n\n if ( isNavMode ) {\n // Asignar handlers para modo Botones/Scroll-snap\n this.slider.addEventListener( 'mousedown', this.handleMouseDownWithButtons );\n this.slider.addEventListener( 'mouseleave', this.handleMouseLeaveWithButtons );\n this.slider.addEventListener( 'mouseup', this.handleMouseUpWithButtons );\n this.slider.addEventListener( 'mousemove', this.handleMouseMoveWithButtons );\n this.slider.addEventListener( 'scroll', this.handleScrollWithButtons );\n \n window.requestAnimationFrame( () => this.handleScrollWithButtons() );\n\n this.slider.addEventListener( 'mouseenter', this.handleMouseEnter.bind( this ) ); \n } else {\n // Asignar handlers para modo Arrastre Puro (drag-mode)\n\n this.slider.classList.add( 'drag-mode' ); \n\n this.slider.addEventListener( 'mousedown', this.handleMouseDownDrag );\n this.slider.addEventListener( 'mouseleave', this.handleMouseLeaveDrag );\n this.slider.addEventListener( 'mouseup', this.handleMouseUpDrag );\n this.slider.addEventListener( 'mousemove', this.handleMouseMoveDrag );\n\n this.slider.addEventListener( 'mouseenter', this.handleMouseEnter.bind( this ) ); \n }\n }\n\n public connectedCallback() {\n super.connectedCallback();\n window.addEventListener( 'resize', this.handleResize );\n\n if( this.autoPlayDelayMs > 0 )\n setTimeout( () => this.startAutoPlay() , 100 );\n }\n \n public disconnectedCallback() {\n super.disconnectedCallback();\n if( !this.slider ) return;\n \n this.slider.removeEventListener( 'mousedown', this.handleMouseDownWithButtons );\n this.slider.removeEventListener( 'mouseleave', this.handleMouseLeaveWithButtons );\n this.slider.removeEventListener( 'mouseup', this.handleMouseUpWithButtons );\n this.slider.removeEventListener( 'mousemove', this.handleMouseMoveWithButtons );\n this.slider.removeEventListener( 'scroll', this.handleScrollWithButtons ); \n \n this.slider.removeEventListener( 'mousedown', this.handleMouseDownDrag );\n this.slider.removeEventListener( 'mouseleave', this.handleMouseLeaveDrag );\n this.slider.removeEventListener( 'mouseup', this.handleMouseUpDrag );\n this.slider.removeEventListener( 'mousemove', this.handleMouseMoveDrag );\n \n if ( this.scrollTimeout !== null ) window.clearTimeout( this.scrollTimeout );\n if ( this.observer ) this.observer.disconnect();\n\n this.stopAutoPlay();\n }\n\n /*\n * Handler que se ejecuta al redimensionar la ventana.\n * Llama a requestUpdate() para re-evaluar getCardDimensionValue en renderContent().\n */\n private resizeHandler() {\n // Forzamos una actualización para que se re-evalúen las propiedades\n // cardWidthValue y cardHeightValue en renderContent().\n this.requestUpdate(); \n this.setCarouselGap();\n }\n\n private loadMutationObserver() {\n this.observer = new MutationObserver( ( mutations, observer ) => {\n const addedNodes: boolean = mutations.some( m => m.addedNodes.length > 0 );\n if ( !addedNodes ) return;\n \n setTimeout( () => {\n this.handleScrollWithButtons();\n if ( this.slider.scrollWidth > this.slider.clientWidth ) observer.disconnect();\n }, 50); \n });\n\n this.observer.observe( this, { childList: true, subtree: true } ); \n }\n\n private handleMouseEnter() {\n this.stopAutoPlay();\n }\n\n private startAutoPlay() {\n if ( this.autoPlayDelayMs <= 0 || !this.slider || this.autoPlayTimer !== null ) return; \n\n window.setTimeout( () => {\n if ( this.autoPlayTimer !== null ) return;\n this.autoPlayTimer = window.setInterval( () => this.scrollToNext( new Event( 'autoplay' ) ), this.autoPlayDelayMs );\n }, 100 );\n }\n\n private stopAutoPlay() {\n if ( this.autoPlayTimer !== null ) {\n window.clearInterval( this.autoPlayTimer );\n this.autoPlayTimer = null;\n }\n }\n\n private handleMouseDownDrag( event: MouseEvent ) { \n if ( !this.slider || event.button !== 0 ) return;\n\n if ( this.autoPlayDelayMs > 0 ) this.stopAutoPlay();\n\n this.isDownDrag = true;\n this.isDraggingDrag = false;\n\n this.slider.classList.add( 'active' );\n this.slider.style.scrollBehavior = 'auto';\n\n this.prevXDrag = event.pageX; \n this.scrollLeftDrag = this.slider.scrollLeft;\n }\n\n private handleMouseLeaveDrag() { \n if ( !this.slider ) return;\n\n this.isDownDrag = false;\n this.isDraggingDrag = false;\n\n this.slider.classList.remove( 'active' );\n\n if ( this.autoPlayDelayMs > 0 ) {\n // Usamos un pequeño retraso para evitar reiniciar el timer inmediatamente\n // si el usuario sale y vuelve a entrar muy rápido.\n window.setTimeout( () => {\n this.startAutoPlay();\n }, 500); \n }\n }\n\n private handleMouseUpDrag() { \n if ( !this.slider ) return;\n\n this.isDownDrag = false;\n this.isDraggingDrag = false;\n\n this.slider.classList.remove( 'active' );\n }\n\n private handleMouseMoveDrag( event: MouseEvent ) { \n event.preventDefault();\n\n if ( !this.isDownDrag || !this.slider ) return;\n\n this.isDraggingDrag = true;\n \n const dx: number = event.pageX - this.prevXDrag; \n this.slider.scrollLeft -= dx * 1.5; \n\n this.prevXDrag = event.pageX; \n }\n\n private shouldPreventDragWithButtons(): boolean {\n if ( !this.slider ) return false;\n\n const maxScrollLeft: number = this.slider.scrollWidth - this.slider.clientWidth;\n const tolerance: number = 1;\n\n return maxScrollLeft > tolerance;\n }\n\n private handleMouseDownWithButtons( event: MouseEvent ) {\n if ( !this.slider || event.button !== 0 ) return;\n if ( this.shouldPreventDragWithButtons() ) return; \n\n this.isDownWithButtons = true;\n this.isDraggingWithButtons = false;\n\n this.slider.classList.add( 'active' );\n this.slider.style.scrollBehavior = 'auto'; \n\n this.startXWithButtons = event.pageX;\n this.scrollLeftPositionWithButtons = this.slider.scrollLeft;\n }\n\n private handleMouseMoveWithButtons( event: MouseEvent ) {\n event.preventDefault();\n\n if ( !this.isDownWithButtons || !this.slider ) return;\n if ( this.shouldPreventDragWithButtons() ) return;\n\n this.isDraggingWithButtons = true;\n \n const walk: number = ( event.pageX - this.startXWithButtons ) * 1.5;\n this.slider.scrollLeft = this.scrollLeftPositionWithButtons - walk;\n }\n\n private handleMouseUpWithButtons() {\n if ( !this.slider ) return;\n\n this.isDownWithButtons = false;\n this.isDraggingWithButtons = false;\n\n this.slider.classList.remove( 'active' );\n }\n\n private handleMouseLeaveWithButtons() {\n if ( !this.isDownWithButtons ) return;\n\n this.isDownWithButtons = false;\n this.isDraggingWithButtons = false;\n\n this.slider.classList.remove( 'active' );\n\n if ( this.autoPlayDelayMs > 0 ) this.startAutoPlay();\n }\n\n private handleScrollWithButtons() {\n if ( !this.slider ) return;\n\n if ( this.isScrollingByButton ) {\n // El scroll snap se reactivará al final del método scrollToNext/Prev.\n const maxScrollLeft: number = this.slider.scrollWidth - this.slider.clientWidth;\n const currentScroll: number = this.slider.scrollLeft;\n const TOLERANCE: number = 10; \n\n if ( maxScrollLeft <= TOLERANCE ) {\n this.showPrevButton = false;\n this.showNextButton = false;\n\n return;\n }\n\n this.showPrevButton = currentScroll > TOLERANCE;\n this.showNextButton = currentScroll < ( maxScrollLeft - TOLERANCE );\n \n return;\n }\n\n // Lógica de Timeout (solo para scroll manual)\n if ( this.scrollTimeout !== null ) window.clearTimeout( this.scrollTimeout );\n\n this.scrollTimeout = window.setTimeout( () => {\n // Dejamos el scrollSnapType en none para evitar saltos\n this.slider.style.scrollSnapType = 'none'; \n this.scrollTimeout = null;\n }, 100 );\n\n // Lógica de botones (actualiza en cualquier scroll)\n const maxScrollLeft: number = this.slider.scrollWidth - this.slider.clientWidth;\n const currentScroll: number = this.slider.scrollLeft;\n \n const TOLERANCE: number = 10; \n\n if ( maxScrollLeft <= TOLERANCE ) {\n this.showPrevButton = false;\n this.showNextButton = false;\n\n return;\n }\n\n this.showPrevButton = currentScroll > TOLERANCE;\n this.showNextButton = currentScroll < ( maxScrollLeft - TOLERANCE );\n }\n\n private getNavButtonWidth(): number {\n if ( this.showNavButtons === false ) return 0;\n if ( !this.isDynamicWidth ) return this.getNavWidth();\n \n // Lógica para el modo dinámico: Ocultar botones o cambiar scroll-padding\n const isMobile: boolean = window.matchMedia( \"( max-width: 500px )\" ).matches;\n \n // En modo dinámico, los nav buttons están ocultos en móvil no necesita padding extra.\n if ( isMobile ) return 0;\n\n return this.getNavWidth(); \n }\n\n protected getScrollAmount(): number {\n let firstItem: Element | null = null;\n\n if ( this.cards.length > 0 ) {\n firstItem = this.slider.querySelector( '.carousel-card-item' );\n } else if ( this.slotElement ) {\n const assignedNodes: Element[] = this.slotElement.assignedElements( { flatten: true } );\n firstItem = assignedNodes.find( node => node.classList.contains( 'carousel-card-item' )) || null;\n }\n\n if ( !firstItem || firstItem.getBoundingClientRect().width === 0 ) {\n const fixedWidth: number = parseFloat( this.cardWidth.replace( 'px', '' ) ) || 280; \n const computedStyle: CSSStyleDeclaration = window.getComputedStyle( this.slider );\n const gapString: string = computedStyle.getPropertyValue( 'gap' ) || computedStyle.getPropertyValue( 'column-gap' );\n const gap: number = parseFloat( gapString ) || 0;\n\n return fixedWidth + gap;\n }\n \n const cardWidth: number = firstItem.getBoundingClientRect().width;\n const computedStyle: CSSStyleDeclaration = window.getComputedStyle( this.slider );\n const gapString: string = computedStyle.getPropertyValue( 'gap' ) || computedStyle.getPropertyValue( 'column-gap' );\n const gap: number = parseFloat( gapString ) || 0;\n\n return cardWidth + gap;\n }\n\n private getCarouselItems(): Element[] {\n if ( this.cards.length > 0 ) {\n if ( this.slider ) return Array.from( this.slider.querySelectorAll( '.carousel-card-item' ) );\n return [];\n } else if ( this.slotElement ) {\n return this.slotElement.assignedElements( { flatten: true } );\n }\n\n return [];\n }\n\n private getCardsToCenterCount(): number {\n if ( !this.isDynamicWidth ) return 1; \n\n // Desktop: Queremos centrar 2 tarjetas (visibles 3, cortadas a los lados)\n if ( window.matchMedia( \"( min-width: 941px )\" ).matches ) return 2; \n \n // Tablet/Móvil: Centra 1 card\n return 1;\n }\n\n private calculateTargetIndex( currentScrollLeft: number, isNext: boolean, children: Element[] ): number {\n const cardsToCenter: number = this.getCardsToCenterCount();\n if ( children.length === 0 || cardsToCenter === 0 ) return -1;\n\n const TOLERANCE: number = 5; // Tolerancia para la comparación de scroll\n let viewStart: number;\n viewStart = currentScrollLeft + TOLERANCE; \n \n let currentFirstVisibleIndex: number = 0;\n\n for ( let i = 0; i < children.length; i++ ) {\n const card: HTMLElement = children[ i ] as HTMLElement;\n // Buscamos la primera tarjeta cuyo inicio (offsetLeft) exceda la posición de scroll\n if ( card.offsetLeft >= viewStart ) {\n currentFirstVisibleIndex = i;\n break;\n }\n }\n \n if ( this.isInfiniteScrollPartial ) {\n const initialPadding: number = this.getInitialPadding();\n \n if ( currentFirstVisibleIndex === 0 && currentScrollLeft > initialPadding ) \n currentFirstVisibleIndex = children.length - cardsToCenter;\n }\n\n // Si el scroll está en 0 o muy cerca, y es 'Prev', el objetivo es 0.\n if ( !isNext && currentScrollLeft < TOLERANCE ) return 0; \n \n\n let targetIndex: number;\n\n const step: number = 1; \n const maxStartIndex: number = children.length - cardsToCenter; \n const isDesktopMode: boolean = cardsToCenter === 2;\n\n if ( isNext ) {\n const computedSpaces: number = !this.isInfiniteScrollPartial ? this.getNavButtonWidth() : this.getInitialPadding();\n const START_TOLERANCE: number = computedSpaces;\n const isInitialPosition: boolean = currentScrollLeft < START_TOLERANCE + TOLERANCE;\n\n if ( isInitialPosition ) {\n // Primer movimiento: salta al punto de inicio de la segunda o tercera tarjeta.\n if ( isDesktopMode ) targetIndex = 2; // Desktop\n else targetIndex = 1; // Tablet/Móvil\n } else {\n // Movimientos subsiguientes: avanza un paso.\n targetIndex = currentFirstVisibleIndex + step;\n }\n\n targetIndex = Math.min( targetIndex, maxStartIndex );\n } else { \n if ( isDesktopMode ) {\n // Desktop: si ya estás cerca del inicio (<= 2), vuelve a 0.\n if ( currentFirstVisibleIndex <= 2 ) targetIndex = 0; \n else targetIndex = currentFirstVisibleIndex - 1;\n } else {\n // Tablet/Móvil: retrocede un paso.\n targetIndex = currentFirstVisibleIndex - step;\n }\n \n targetIndex = Math.max( 0, targetIndex );\n }\n\n return targetIndex;\n }\n\n private getScrollLeftToCenter( targetIndex: number, children: Element[] ): number {\n const cardsToCenter: number = this.getCardsToCenterCount();\n if ( targetIndex < 0 || targetIndex >= children.length || cardsToCenter === 0 ) return this.slider.scrollLeft;\n \n const firstCard: HTMLElement = children[ targetIndex ] as HTMLElement;\n const cardRect: DOMRect = firstCard.getBoundingClientRect();\n const cardWidth = cardRect.width;\n \n if ( cardWidth === 0 ) return this.slider.scrollLeft; \n \n const computedStyle: CSSStyleDeclaration = window.getComputedStyle( this.slider );\n const gapString: string = computedStyle.getPropertyValue( 'gap' ) || computedStyle.getPropertyValue( 'column-gap' );\n const gap: number = parseFloat( gapString ) || 0;\n \n // Si cardsToCenter es 3, hay 2 gaps: (W*3) + (G*2)\n const groupWidth: number = cardWidth * cardsToCenter + gap * ( cardsToCenter - 1 ); \n \n const cardGroupOffsetLeft: number = firstCard.offsetLeft;\n const centerOfViewport: number = this.slider.clientWidth / 2;\n \n // Posición absoluta del centro del grupo de tarjetas\n const centerOfGroup: number = cardGroupOffsetLeft + groupWidth / 2;\n \n // El scrollLeft necesario para que el centro del grupo coincida con el centro del viewport\n let targetScrollLeft: number = centerOfGroup - centerOfViewport;\n \n // El `offsetLeft` de la tarjeta ya tiene en cuenta el `scroll-padding-left` (el ancho del botón).\n // Si la tarjeta está al inicio (index 0), necesitamos asegurar que no haya scroll negativo.\n \n // Ajuste de límites (esencial para evitar overshoot)\n targetScrollLeft = Math.max( 0, targetScrollLeft );\n\n const maxScrollLeft: number = this.slider.scrollWidth - this.slider.clientWidth;\n targetScrollLeft = Math.min( targetScrollLeft, maxScrollLeft );\n \n return targetScrollLeft;\n }\n\n private scrollToPrev( event: Event ) {\n const isAutoPlayEvent: boolean = event.type === 'autoplay';\n\n if ( !isAutoPlayEvent ) {\n event.preventDefault();\n event.stopPropagation();\n }\n \n if ( !this.slider ) return;\n\n const children: Element[] = this.getCarouselItems();\n if ( children.length === 0 ) return;\n\n let targetScrollLeft: number;\n \n if ( this.isDynamicWidth && window.matchMedia( \"( min-width: 501px )\" ).matches ) {\n const currentScrollLeft: number = this.slider.scrollLeft;\n \n const targetIndex: number = this.calculateTargetIndex( currentScrollLeft, false, children );\n targetScrollLeft = this.getScrollLeftToCenter( targetIndex, children );\n } else {\n // Lógica de snap-to-start (por defecto, no dinámico o móvil)\n const currentScrollLeft: number = this.slider.scrollLeft;\n targetScrollLeft = 0; \n\n const initialPadding: number = this.getInitialPadding();\n const navButtonWidth: number = this.getNavButtonWidth();\n const computedSpaces: number = !this.isInfiniteScrollPartial ? navButtonWidth : initialPadding;\n \n // Buscar la tarjeta anterior\n for ( let i = children.length - 1; i >= 0; i-- ) {\n const card: HTMLElement = children[ i ] as HTMLElement;\n\n if ( Math.round( card.offsetLeft - computedSpaces ) < Math.round( currentScrollLeft ) - 1 ) {\n targetScrollLeft = card.offsetLeft - computedSpaces; \n break; \n }\n }\n }\n \n this.slider.style.scrollSnapType = 'none'; \n this.isScrollingByButton = true;\n \n this.slider.scrollTo( { left: targetScrollLeft, behavior: 'smooth' } ); \n \n window.setTimeout( () => {\n this.isScrollingByButton = false;\n this.handleScrollWithButtons(); \n }, 350 ); \n }\n\n private scrollToNext( event: Event ) {\n const isAutoPlayEvent: boolean = event.type === 'autoplay';\n\n if ( !isAutoPlayEvent ) {\n event.preventDefault();\n event.stopPropagation();\n }\n \n if ( !this.slider ) return;\n \n const children = this.getCarouselItems();\n if ( children.length === 0 ) return;\n\n let targetScrollLeft: number;\n\n if ( this.isDynamicWidth && window.matchMedia( \"( min-width: 501px )\" ).matches ) {\n const currentScrollLeft: number = this.slider.scrollLeft;\n \n const targetIndex: number = this.calculateTargetIndex( currentScrollLeft, true, children );\n targetScrollLeft = this.getScrollLeftToCenter( targetIndex, children );\n } else {\n // Lógica de snap-to-start (por defecto, no dinámico o móvil)\n const currentScrollLeft: number = this.slider.scrollLeft;\n targetScrollLeft = -1;\n\n const initialPadding: number = this.getInitialPadding();\n const navButtonWidth: number = this.getNavButtonWidth();\n const computedSpaces: number = !this.isInfiniteScrollPartial ? navButtonWidth : initialPadding;\n \n for ( let i = 0; i < children.length; i++ ) {\n const card: HTMLElement = children[ i ] as HTMLElement;\n \n if ( Math.round( card.offsetLeft - computedSpaces ) > Math.round( currentScrollLeft ) + 1 ) {\n targetScrollLeft = card.offsetLeft - computedSpaces;\n break; \n }\n }\n\n if ( targetScrollLeft === -1 ) {\n const maxScrollLeft = this.slider.scrollWidth - this.slider.clientWidth;\n targetScrollLeft = maxScrollLeft;\n }\n }\n\n const maxScrollLeft: number = this.slider.scrollWidth - this.slider.clientWidth;\n const currentScrollLeft: number = this.slider.scrollLeft;\n \n if ( isAutoPlayEvent && Math.round( currentScrollLeft ) >= Math.round( maxScrollLeft ) ) {\n\n // 1. Salto instantáneo a 0 (inicio)\n this.slider.style.scrollBehavior = 'auto'; \n this.slider.scrollTo( { left: 0, behavior: 'auto' } ); \n \n // 2. Restaurar comportamiento 'smooth' y salir\n this.slider.style.scrollBehavior = 'smooth';\n \n // No ejecutamos el scroll final con 'smooth', solo restauramos\n // el comportamiento para el siguiente ciclo de autoplay.\n return; \n }\n \n this.slider.style.scrollSnapType = 'none'; \n this.isScrollingByButton = true;\n \n this.slider.scrollTo( { left: targetScrollLeft, behavior: 'smooth' } );\n\n window.setTimeout( () => {\n this.isScrollingByButton = false;\n this.handleScrollWithButtons(); \n }, 350 ); \n }\n\n /*\n * Obtiene el valor final de la dimensión de la tarjeta, limitándolo al tamaño del viewport\n * y compensando el espacio de los botones de navegación si es 'width'.\n \n @param dimension Indica si se está calculando 'width' o 'height'.\n @param value El valor de la propiedad ( cardWidth o cardHeight ).\n\n @returns El valor original, o el valor limitado en 'px' si excede el viewport.\n */\n protected getCardCustomDimensionValue( dimension: 'width' | 'height', value: string ): string | undefined {\n if ( dimension === 'width' && this.isDynamicWidth ) return undefined;\n\n if ( dimension === 'width' ) {\n let computedWidthLimit: number = window.innerWidth;\n \n // 1. Compensación de Botones\n const navButtonsWidth: number = this.getNavButtonWidth() * 2; \n computedWidthLimit -= navButtonsWidth;\n\n // 2. Compensación de Gap\n let gapToSubtract: number = this.getCarouselGap();\n computedWidthLimit -= gapToSubtract; \n \n // Caso de ancho estático (isDynamicWidth === false) sin cardWidth definido.\n // Devolvemos el ancho máximo compensado como valor por defecto.\n if ( !value ) return `${ computedWidthLimit }px`;\n\n const valueInPxMatch: RegExpMatchArray | null = value.match( /^(\\d+)px$/ );\n \n // Valor NO es 'px' (ej. '100vw', '85%'). \n // Forzamos el uso del ancho máximo compensado en píxeles.\n if ( !valueInPxMatch ) return `${ computedWidthLimit }px`;\n \n // El valor ES en 'px'.\n const dimensionPx: number = parseFloat( valueInPxMatch[ 1 ] );\n \n // Si la dimensión de la tarjeta (en PX) excede el máximo disponible, la limitamos.\n if ( dimensionPx > computedWidthLimit ) return `${ computedWidthLimit }px`;\n \n // Si no excede, devuelve el valor original.\n return value;\n } else {\n // En este caso, no hay compensación de botones/gap.\n const maxDimension: number = window.innerHeight;\n \n // La altura no tiene un valor por defecto forzado.\n if ( !value ) return undefined; \n\n // Valor relativo o no-px, se deja pasar.\n const valueInPxMatch: RegExpMatchArray | null = value.match( /^(\\d+)px$/ );\n if ( !valueInPxMatch ) return value;\n\n const dimensionPx: number = parseFloat( valueInPxMatch[ 1 ] );\n \n // Si la dimensión de la tarjeta excede el máximo disponible, la limitamos.\n if ( dimensionPx > maxDimension ) return `${ maxDimension }px`;\n \n return value;\n }\n }\n\n private renderNavButtons() {\n if ( this.showNavButtons === false ) return html``;\n \n const prevClasses = {\n 'nav-button': true, \n 'prev': true, \n 'hidden': !this.showPrevButton\n };\n\n const nextClasses = {\n 'nav-button': true, \n 'next': true, \n 'hidden': !this.showNextButton\n };\n\n return html`\n <div class=\"nav-buttons-container\">\n <button \n class=${ classMap( prevClasses ) } \n @click=${ this.scrollToPrev }\n >\n <div class=\"nav-button-inner\">\n <randstad-icon name=\"arrow_prev\" size=\"32px\"></randstad-icon>\n </div>\n </button>\n \n <button \n class=${ classMap( nextClasses ) } \n @click=${ this.scrollToNext }\n >\n <div class=\"nav-button-inner\">\n <randstad-icon name=\"arrow_next\" size=\"32px\"></randstad-icon>\n </div>\n </button>\n </div>\n `;\n }\n\n private renderContent() {\n // Usamos el nuevo método para validar y compensar el ancho.\n const cardWidthValue: string | undefined = this.getCardCustomDimensionValue( 'width', this.cardWidth );\n \n // Usamos el nuevo método para validar el alto.\n const cardHeightValue: string | undefined = this.getCardCustomDimensionValue( 'height', this.cardHeight );\n\n if ( this.cards && this.cards.length > 0 ) {\n return this.cards.map( card => \n html`\n <div class=\"carousel-card-item\">\n <carousel-card\n .img=${ card.img } \n .name=${ card.name } \n .title=${ card.title }\n .description=${ card.description } \n .buttonLabel=${ card.buttonLabel }\n .cardId=${ card.cardId } \n .width=${ cardWidthValue } \n .height=${ cardHeightValue }\n .onClick=${ card.onClick }\n >\n </carousel-card>\n </div>\n `\n );\n } else {\n return html`<slot></slot>`;\n }\n }\n\n public render() {\n const isNavMode: boolean = this.showNavButtons !== false;\n const isIninitePartialMode: boolean = this.isInfiniteScrollPartial === false ? true : false; \n\n const wrapperClasses = {\n 'carousel-wrapper': true,\n 'drag-mode': !isNavMode, \n 'dynamic-width-mode': this.isDynamicWidth,\n 'static-width-mode': !this.isDynamicWidth,\n 'not-ininite-scroll-partial': isIninitePartialMode\n };\n\n return html`\n <div class=\"carousel-container\">\n <div class=${ classMap( wrapperClasses ) }>\n ${ this.renderContent() }\n </div>\n\n ${ this.renderNavButtons() }\n </div>\n `;\n }\n}","import { LitElement, html, css } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport './Icon';\n\nimport '../styles/buttons.css';\n\n@customElement('randstad-bubble')\nexport class RandstadBubble extends LitElement {\n @property({ type: String }) message = '';\n @property({ type: Number }) duration?: number;\n @property({ type: String }) position: 'top' | 'bottom' = 'top';\n @property({ type: String }) variant: 'bubble' | 'circle' = 'bubble';\n @property({ type: Boolean }) visible = true;\n @property({ type: String }) icon?: string;\n\n @property({ type: String }) arrowAlign = '15px';\n\n // Propiedades de personalización\n @property({ type: String }) backgroundColor?: string;\n @property({ type: String }) textColor?: string;\n @property({ type: String }) fontFamily?: string;\n\n // Propiedades de dimensión\n @property({ type: String }) width?: string;\n @property({ type: String }) height?: string;\n\n // Propiedades de posicionamiento absoluto\n @property({ type: String }) top?: string;\n @property({ type: String }) left?: string;\n\n @state() private isAnimating = false;\n private hideTimeout?: number;\n\n static styles = css`\n :host {\n display: inline-block;\n position: relative;\n --arrow-left: 15px;\n }\n\n .bubble {\n position: absolute;\n display: inline-flex;\n align-items: center;\n gap: 10px;\n box-sizing: border-box;\n z-index: 10;\n \n --bubble-bg: var(--bubble-background, #0F1941);\n --bubble-color: var(--bubble-text-color, #ffffff);\n --bubble-font: var(--bubble-font-family, 'Graphik', sans-serif);\n --bubble-arrow-size: 8px;\n \n background-color: var(--bubble-bg);\n color: var(--bubble-color);\n font-family: var(--bubble-font);\n \n width: var(--bubble-custom-width, auto);\n height: var(--bubble-custom-height, auto);\n \n font-weight: 400;\n font-size: 12px;\n line-height: 100%;\n padding: 12px 16px;\n border-radius: 6px;\n \n opacity: 0;\n visibility: hidden;\n transform: translateY(5px);\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n }\n\n .bubble.position-bottom {\n bottom: calc(100%);\n top: auto !important; \n }\n\n /* Estado cuando no debe existir en el layout */\n .bubble.hidden {\n display: none;\n }\n\n .bubble.visible {\n opacity: 1;\n visibility: visible;\n transform: translateY(0);\n }\n\n .bubble::after {\n content: '';\n position: absolute;\n width: 0;\n height: 0;\n border-style: solid;\n }\n\n /* Flecha arriba (el globo está abajo) */\n .bubble.position-top::after {\n top: calc(var(--bubble-arrow-size) * -1);\n left: var(--arrow-left);\n border-width: 0 var(--bubble-arrow-size) var(--bubble-arrow-size) var(--bubble-arrow-size);\n border-color: transparent transparent var(--bubble-bg) transparent;\n }\n\n /* Flecha abajo (el globo está arriba) */\n .bubble.position-bottom::after {\n bottom: calc(var(--bubble-arrow-size) * -1);\n left: var(--arrow-left);\n border-width: var(--bubble-arrow-size) var(--bubble-arrow-size) 0 var(--bubble-arrow-size);\n border-color: var(--bubble-bg) transparent transparent transparent;\n }\n\n .bubble.circle {\n border-radius: 50%;\n padding: 0;\n justify-content: center;\n min-width: 32px;\n min-height: 32px;\n }\n\n .bubble.circle::after { display: none; }\n\n .bubble-icon ::slotted(*) {\n width: 18px;\n height: 18px;\n display: block;\n }\n\n .bubble-message {\n max-width: 250px;\n word-wrap: break-word;\n }\n `;\n\n /**\n * Se ejecuta cuando el componente se desconecta del DOM.\n * Limpiamos el timer para evitar fugas de memoria y errores.\n */\n public disconnectedCallback(): void {\n super.disconnectedCallback();\n this.clearDurationTimer();\n }\n\n public updated(changedProperties: Map<string, unknown>): void {\n super.updated(changedProperties);\n if (changedProperties.has('visible')) {\n if (this.visible) {\n this.startDurationTimer();\n } else {\n this.clearDurationTimer();\n }\n }\n }\n\n private startDurationTimer(): void {\n this.clearDurationTimer();\n if (this.duration && this.duration > 0) {\n this.hideTimeout = window.setTimeout(() => this.hide(), this.duration);\n }\n }\n\n private clearDurationTimer(): void {\n if (this.hideTimeout) {\n window.clearTimeout(this.hideTimeout);\n this.hideTimeout = undefined;\n }\n }\n\n public show(): void { this.visible = true; }\n public hide(): void { this.visible = false; }\n\n public render() {\n const classes = {\n bubble: true,\n visible: this.visible,\n hidden: !this.visible,\n [`position-${this.position}`]: true,\n [this.variant]: true\n };\n\n const styles = [\n this.position !== 'bottom' && this.top ? `top: ${this.top}` : '',\n this.left ? `left: ${this.left}` : '',\n `--arrow-left: ${this.arrowAlign}`,\n this.width ? `--bubble-custom-width: ${this.width}` : '',\n this.height ? `--bubble-custom-height: ${this.height}` : '',\n this.backgroundColor ? `--bubble-background: ${this.backgroundColor}` : '',\n this.textColor ? `--bubble-text-color: ${this.textColor}` : '',\n this.fontFamily ? `--bubble-font-family: ${this.fontFamily}` : '',\n ].filter(Boolean).join('; ');\n\n return html`\n <div class=${classMap(classes)} style=${styles}>\n ${this.icon || this.variant === 'circle' ? html`\n <span class=\"bubble-icon\">\n ${this.icon\n ? html`<randstad-icon name=\"${this.icon}\" size=\"18px\"></randstad-icon>`\n : html`<slot name=\"icon\"></slot>`\n }\n </span>\n ` : ''}\n \n ${this.variant === 'bubble' ? html`\n <span class=\"bubble-message\">${this.message}</span>\n <slot></slot>\n ` : ''}\n </div>\n `;\n }\n}","import { LitElement, html, css, nothing } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { bodyM } from '../styles/fontStyles';\nimport { focusStyles } from '../styles/focus';\n\nimport '../components/Modal';\nimport '../components/Button';\nimport '../components/Notice';\nimport '../components/Form';\nimport '../components/FormGroup';\n\nconst PIN_LENGTH = 6;\n\ntype MfaInputMode = 'numeric' | 'text';\n\n@customElement('randstad-mfa-modal')\nexport class MfaModal extends LitElement {\n @property({ type: Boolean, reflect: true }) open = false;\n\n @property({ type: String }) title = 'verificación de seguridad';\n @property({ type: String }) email = '[correo electrónico]';\n @property({ type: Boolean, reflect: true }) loading = false;\n @property({ type: String }) inputMode: MfaInputMode = 'numeric';\n @property({ type: Boolean }) showError = false;\n\n @property({ type: Boolean }) showSuccessNotice = false;\n @property({ type: String }) successMessage = '';\n @property({ type: String }) helperMessage = '';\n\n @property({ type: Number }) resendCooldown = 60;\n\n @state() private _resendDisabled = false;\n @state() private _resendRemaining = 0;\n @state() private _pinValues: string[] = Array(PIN_LENGTH).fill('');\n\n @property({ type: String }) modalWidth = '450px';\n @property({ type: String }) modalHeight = 'auto';\n @property({ type: String }) maxHeight = '90dvh';\n\n\n private _resendTimer?: number;\n\n static styles = [\n focusStyles,\n css`\n :host {\n font-family: 'Graphik', sans-serif;\n }\n\n .mfa-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n }\n \n .content-wrapper {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .mfa-instruction {\n ${bodyM}\n color: var(--secondary-color);\n margin: 0;\n }\n\n .pin-group {\n display: flex;\n gap: 8px;\n }\n\n .pin-input {\n width: 60.33px;\n height: 62px;\n text-align: center;\n font-size: 18px;\n line-height: 30px;\n font-family: 'Graphik', sans-serif;\n font-weight: 400;\n border: 1px solid var(--secondary-color-20);\n border-radius: 4px;\n outline: none;\n transition: border-color 0.2s, box-shadow 0.2s;\n color: var(--secondary-color);\n box-sizing: border-box;\n caret-color: var(--primary-color);\n }\n\n .pin-input:focus {\n border-color: var(--primary-color);\n box-shadow: 0px 0px 0px 4px var(--primary-color-20);\n }\n\n .pin-input.error {\n border-color: var(--ui-negative);\n }\n\n .pin-input.error:focus {\n box-shadow: 0px 0px 0px 4px var(--ui-negative-pink-shadow);\n }\n\n .resend-line {\n ${bodyM}\n color: var(--secondary-color-60);\n margin: 8px 0 0;\n text-align: center;\n }\n\n .resend-link {\n color: var(--primary-color);\n cursor: pointer;\n text-decoration: none;\n background: none;\n border: none;\n font-family: 'Graphik', sans-serif;\n font-size: inherit;\n padding: 0;\n line-height: inherit;\n }\n\n .resend-link:hover {\n text-decoration: underline;\n }\n\n .resend-link:disabled,\n .resend-link.disabled {\n color: var(--secondary-color-60);\n cursor: default;\n pointer-events: none;\n opacity: 0.6;\n }\n\n .confirm-button {\n margin-top: 8px;\n }\n\n @media (max-width: 940px) {\n .pin-group {\n gap: 8px;\n width: 100%;\n }\n\n .pin-input {\n flex: 1;\n min-width: 0;\n height: 62px;\n font-size: 18px;\n }\n }\n\n :host {\n --modal-body-padding: 24px;\n }\n\n @media (min-width: 501px) and (max-width: 940px) {\n :host {\n --modal-body-padding: 50px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .pin-input {\n transition: none;\n }\n }\n `\n ];\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this._clearResendTimer();\n }\n\n updated(changedProps: Map<string | number | symbol, unknown>) {\n if (changedProps.has('open') && this.open) {\n requestAnimationFrame(() => this._focusInput(0));\n }\n if (changedProps.has('loading') || changedProps.has('open')) {\n requestAnimationFrame(() => this._syncCloseButtonDisabled());\n }\n }\n\n public reset() {\n this._pinValues = Array(PIN_LENGTH).fill('');\n this.showError = false;\n this.showSuccessNotice = false;\n this._resendDisabled = false;\n this._clearResendTimer();\n this.requestUpdate();\n }\n\n public focusFirstInput() {\n this._focusInput(0);\n }\n\n private _clearResendTimer() {\n if (this._resendTimer !== undefined) {\n clearInterval(this._resendTimer);\n this._resendTimer = undefined;\n }\n }\n\n private get _resolvedInputMode(): string {\n return this.inputMode === 'numeric' ? 'numeric' : 'text';\n }\n\n private _sanitizeValue(value: string): string {\n return this.inputMode === 'numeric'\n ? value.replace(/[^0-9]/g, '')\n : value.replace(/[^a-zA-Z0-9]/g, '');\n }\n\n private _getCloseButton(): HTMLElement | null {\n const modal = this.renderRoot.querySelector('custom-modal');\n return modal?.shadowRoot?.querySelector('.modal-close') as HTMLElement | null;\n }\n\n private _syncCloseButtonDisabled(): void {\n const btn = this._getCloseButton();\n if (!btn) return;\n\n const icon = btn.querySelector('randstad-icon') as HTMLElement | null;\n\n if (this.loading) {\n btn.setAttribute('disabled', '');\n btn.setAttribute('aria-disabled', 'true');\n btn.style.cursor = 'default';\n btn.style.pointerEvents = 'none';\n if (icon) {\n icon.style.filter = 'grayscale(1)';\n icon.style.opacity = '0.5';\n }\n } else {\n btn.removeAttribute('disabled');\n btn.removeAttribute('aria-disabled');\n btn.style.cursor = '';\n btn.style.pointerEvents = '';\n if (icon) {\n icon.style.filter = '';\n icon.style.opacity = '';\n }\n }\n }\n\n private _clearForwardFromIndex(startIndex: number): void {\n for (let i = startIndex + 1; i < PIN_LENGTH; i++) {\n if (this._pinValues[i]) {\n this._pinValues[i] = '';\n this.requestUpdate();\n this._focusInput(i);\n return;\n }\n }\n }\n\n private _getPinInputs(): NodeListOf<HTMLInputElement> {\n return this.renderRoot.querySelectorAll('.pin-input');\n }\n\n private _focusInput(index: number) {\n const inputs = this._getPinInputs();\n const input = inputs?.[index];\n if (input) {\n input.focus();\n input.select();\n }\n }\n\n private get _isComplete(): boolean {\n return this._pinValues.every(v => v !== '');\n }\n\n private _onPinInput(e: Event, index: number) {\n const input = e.target as HTMLInputElement;\n let val = this._sanitizeValue(input.value || '');\n\n if (!val) {\n this._pinValues[index] = '';\n return;\n }\n\n if (val.length > 1) {\n const chars = val.split('');\n for (let i = index; i < PIN_LENGTH && chars.length > 0; i++) {\n this._pinValues[i] = chars.shift()!;\n }\n const next = Math.min(PIN_LENGTH - 1, index + val.length);\n setTimeout(() => this._focusInput(next));\n this.requestUpdate();\n return;\n }\n\n this._pinValues[index] = val;\n this.requestUpdate();\n if (index < PIN_LENGTH - 1) {\n this._focusInput(index + 1);\n }\n }\n\n private _onPinKeyDown(e: KeyboardEvent, index: number) {\n if (e.key === 'Enter' && this._isComplete) {\n this._onConfirm();\n return;\n }\n\n if (e.key === 'Backspace') {\n if (this._pinValues[index]) {\n this._pinValues[index] = '';\n this.requestUpdate();\n e.preventDefault();\n } else if (index > 0) {\n this._pinValues[index - 1] = '';\n this.requestUpdate();\n this._focusInput(index - 1);\n e.preventDefault();\n } else {\n this._clearForwardFromIndex(0);\n e.preventDefault();\n }\n return;\n }\n\n if (e.key === 'Delete') {\n if (this._pinValues[index]) {\n this._pinValues[index] = '';\n this.requestUpdate();\n } else {\n this._clearForwardFromIndex(index);\n }\n e.preventDefault();\n return;\n }\n\n if (\n e.key.length === 1 &&\n !e.ctrlKey &&\n !e.metaKey &&\n e.key !== 'v'\n ) {\n const blocked = this.inputMode === 'numeric'\n ? /\\D/.test(e.key)\n : /[^a-zA-Z0-9]/.test(e.key);\n if (blocked) e.preventDefault();\n }\n }\n\n private _onPinPaste(e: ClipboardEvent) {\n const pasted = (e.clipboardData ?? (window as unknown as { clipboardData?: DataTransfer }).clipboardData)?.getData('text') || '';\n const digits = this._sanitizeValue(pasted).slice(0, PIN_LENGTH).split('');\n if (digits.length === 0) return;\n\n for (let i = 0; i < PIN_LENGTH; i++) {\n this._pinValues[i] = digits[i] || '';\n }\n e.preventDefault();\n this.requestUpdate();\n\n const firstEmpty = this._pinValues.findIndex(v => !v);\n setTimeout(() => this._focusInput(firstEmpty >= 0 ? firstEmpty : PIN_LENGTH - 1));\n }\n\n private _onClose() {\n if (this.loading) return;\n this.dispatchEvent(new CustomEvent('mfa-close'));\n }\n\n private _onConfirm() {\n if (!this._isComplete || this.loading) return;\n this.dispatchEvent(new CustomEvent('mfa-confirm', { detail: { code: this._pinValues.join('') } }));\n }\n\n private _onResend() {\n if (this._resendDisabled) return;\n this.dispatchEvent(new CustomEvent('resend-code'));\n this._startResendCountdown();\n }\n\n private _startResendCountdown() {\n this._clearResendTimer();\n this._resendDisabled = true;\n this._resendRemaining = this.resendCooldown;\n this._resendTimer = window.setInterval(() => {\n this._resendRemaining -= 1;\n if (this._resendRemaining <= 0) {\n this._resendDisabled = false;\n this._clearResendTimer();\n }\n this.requestUpdate();\n }, 1000);\n }\n\n private _renderPinInputs() {\n return Array.from({ length: PIN_LENGTH }, (_, i) => html`\n <input\n class=\"pin-input ${this.showError ? 'error' : ''}\"\n type=\"text\"\n inputmode=${this._resolvedInputMode}\n pattern=${this.inputMode === 'numeric' ? '\\\\d*' : '[a-zA-Z0-9]*'}\n maxlength=\"1\"\n autocomplete=\"one-time-code\"\n .value=${this._pinValues[i]}\n @input=${(e: Event) => this._onPinInput(e, i)}\n @keydown=${(e: KeyboardEvent) => this._onPinKeyDown(e, i)}\n aria-label=\"Dígito ${i + 1} del código\"\n aria-invalid=${this.showError ? 'true' : 'false'}\n >\n `);\n }\n\n private _renderResendSection() {\n return html`\n <p class=\"resend-line\">\n ¿no lo recibiste?&nbsp;\n ${this._resendDisabled\n ? html`<span role=\"status\" aria-live=\"polite\">reenviar en (${this._resendRemaining}s)</span>`\n : html`<button\n class=\"resend-link\"\n @click=${this._onResend}\n >reenviar ahora</button>`\n }\n </p>\n `;\n }\n\n render() {\n return html`\n <custom-modal\n .open=${this.open}\n title=${this.title}\n .hideFooter=${true}\n modalWidth= ${ this.modalWidth };\n modalHeight=${ this.modalHeight };\n maxHeight= ${ this.maxHeight };\n @modal-close=${this._onClose}\n >\n <div slot=\"content\" class=\"mfa-content\" role=\"status\" aria-live=\"polite\" aria-describedby=\"mfa-notice-message\">\n <div class=\"content-wrapper\">\n <randstad-notice\n id=\"mfa-notice-message\"\n .open=${true}\n .type=${this.showSuccessNotice ? 'success' : 'informative'}\n .icon=${this.showSuccessNotice ? 'check' : 'info'}\n .message=${this.showSuccessNotice ? this.successMessage : this.helperMessage}\n ></randstad-notice>\n\n <randstad-form-group\n label=\"ingresá el código que recibiste\"\n .error=${this.showError}\n errorMessage=\"el código ingresado es incorrecto\"\n >\n <div class=\"pin-group\" @paste=${this._onPinPaste}>\n ${this._renderPinInputs()}\n </div>\n </randstad-form-group>\n </div>\n <randstad-button\n class=\"confirm-button\"\n variant=\"button-primary\"\n size=\"md\"\n label=\"actualizar\"\n .loader=${this.loading}\n .disabled=${!this._isComplete || this.loading}\n @click=${this._onConfirm}\n ></randstad-button>\n\n ${this._renderResendSection()}\n </div>\n </custom-modal>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'randstad-mfa-modal': MfaModal;\n }\n}","import { LitElement, html, css, nothing, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\nexport interface NavItem {\n readonly icon: string;\n readonly label: string;\n readonly href?: string;\n}\n\n@customElement('randstad-navbar')\nexport class RandstadNavbar extends LitElement {\n @property({ type: Array }) items: NavItem[];\n\n @property({ type: String }) centerIcon = 'search';\n\n @property({ type: String }) centerLabel = '';\n\n @property({ type: Boolean, reflect: true }) hidden = false;\n\n @property({ type: Boolean, reflect: true }) desktop = false;\n\n @property({ type: Number }) selectedIndex = -1;\n\n private _rafId: number | null = null;\n\n constructor() {\n super();\n this.items = [\n { icon: 'home', label: 'Home' },\n { icon: 'postulation', label: 'Applications' },\n { icon: 'user', label: 'Users' },\n { icon: 'settings', label: 'Settings' },\n ];\n }\n\n private handleScroll = (): void => {\n const scrollBottom = window.innerHeight + window.scrollY;\n const docHeight = document.documentElement.scrollHeight;\n this.hidden = scrollBottom >= docHeight - 50;\n };\n\n private handleScrollThrottled = (): void => {\n if (this._rafId != null) return;\n this._rafId = requestAnimationFrame((): void => {\n this._rafId = null;\n this.handleScroll();\n });\n };\n\n connectedCallback(): void {\n super.connectedCallback();\n window.addEventListener('scroll', this.handleScrollThrottled, { passive: true });\n this.handleScroll();\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n window.removeEventListener('scroll', this.handleScrollThrottled);\n if (this._rafId != null) {\n cancelAnimationFrame(this._rafId);\n this._rafId = null;\n }\n }\n\n private handleItemClick(index: number, item: NavItem): void {\n this.selectedIndex = index;\n this.dispatchEvent(\n new CustomEvent('nav-item-click', {\n detail: { index, item },\n bubbles: true,\n composed: true,\n })\n );\n }\n\n private handleCenterClick(): void {\n this.dispatchEvent(\n new CustomEvent('center-click', {\n bubbles: true,\n composed: true,\n })\n );\n }\n\n static styles = css`\n :host {\n display: none;\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 9998;\n font-family: 'Graphik', sans-serif;\n transition: transform 0.3s ease, opacity 0.3s ease;\n }\n\n :host([hidden]) {\n transform: translateY(100%);\n opacity: 0;\n }\n\n @media (max-width: 940px) {\n :host {\n display: block;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host {\n transition: none;\n }\n }\n\n @media (min-width: 941px) {\n :host([desktop]) {\n display: block;\n }\n }\n\n .navbar {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 71px;\n background: var(--white, #ffffff);\n border-radius: 16px 16px 0 0;\n box-shadow: 0px -1px 16px 1px rgba(15, 25, 65, 0.15),\n 0px -1px 16px 0px rgba(15, 25, 65, 0.3);\n padding: 0 16px;\n }\n\n .side-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n min-width: 34px;\n height: 51px;\n text-decoration: none;\n cursor: pointer;\n gap: 8px;\n flex: 1;\n }\n\n .side-item .item-icon {\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .side-item .item-icon randstad-icon {\n --icon-color: var(--secondary-color-80, #404767);\n }\n\n .side-item.active .item-icon randstad-icon {\n --icon-color: var(--primary-color, #2175d9);\n }\n\n .side-item .item-label {\n font-family: 'Graphik', sans-serif;\n font-weight: 400;\n font-size: 10px;\n line-height: 12px;\n letter-spacing: 0%;\n color: var(--secondary-color-80, #404767);\n text-align: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n }\n\n .side-item.active .item-label {\n color: var(--primary-color, #2175d9);\n }\n\n .center-button {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 2px;\n cursor: pointer;\n background: none;\n border: none;\n padding: 0;\n margin: 0 12px;\n flex-shrink: 0;\n }\n\n .center-circle {\n width: 60px;\n height: 60px;\n border-radius: 100px;\n background: var(--primary-color, #2175d9);\n border: 4px solid rgba(211, 227, 247, 1);\n display: flex;\n align-items: center;\n justify-content: center;\n transform: translateY(-12px);\n }\n\n .center-circle randstad-icon {\n --icon-color: var(--white, #ffffff);\n }\n\n .center-label {\n font-family: 'Graphik', sans-serif;\n font-weight: 400;\n font-size: 10px;\n line-height: 12px;\n letter-spacing: 0%;\n color: var(--secondary-color, #0f1941);\n text-align: center;\n }\n\n @media (max-width: 940px) {\n .center-button {\n margin: 0;\n }\n .side-item {\n min-width: unset;\n }\n }\n }\n `;\n\n render(): TemplateResult {\n const leftItems = this.items.slice(0, 2);\n const rightItems = this.items.slice(2, 4);\n\n const renderItem = (item: NavItem, index: number): TemplateResult => {\n const active = index === this.selectedIndex;\n const classes = classMap({\n 'side-item': true,\n active,\n });\n\n return html`\n <a\n class=${classes}\n href=${item.href || '#'}\n @click=${(e: Event): void => {\n if (!item.href) e.preventDefault();\n this.handleItemClick(index, item);\n }}\n aria-label=${item.label}\n aria-current=${active ? 'page' : nothing}\n >\n <span class=\"item-icon\">\n <randstad-icon name=${item.icon} size=\"24\" aria-hidden=\"true\"></randstad-icon>\n </span>\n <span class=\"item-label\">${item.label}</span>\n </a>\n `;\n };\n\n return html`\n <nav class=\"navbar\" role=\"navigation\" aria-label=\"Navegación principal\">\n ${leftItems.map((item, i) => renderItem(item, i))}\n\n <button class=\"center-button\" @click=${this.handleCenterClick} aria-label=\"Abrir menú\">\n <span class=\"center-circle\">\n <randstad-icon name=${this.centerIcon} size=\"28\" aria-hidden=\"true\"></randstad-icon>\n </span>\n ${this.centerLabel\n ? html`<span class=\"center-label\">${this.centerLabel}</span>`\n : nothing}\n </button>\n\n ${rightItems.map((item, i) => renderItem(item, i + 2))}\n </nav>\n `;\n }\n}\n"],"names":["__decorate","decorators","target","key","desc","d","c","arguments","length","r","Object","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__metadata","metadataKey","metadataValue","metadata","SuppressedError","t","e","o","addInitializer","customElements","define","globalThis","ShadowRoot","ShadyCSS","nativeShadow","Document","prototype","CSSStyleSheet","s","Symbol","WeakMap","n$2","constructor","this","_$cssResult$","Error","cssText","styleSheet","get","replaceSync","set","toString","S","adoptedStyleSheets","map","document","createElement","n","litNonce","setAttribute","textContent","appendChild","cssRules","is","h","getOwnPropertyNames","getOwnPropertySymbols","getPrototypeOf","a","trustedTypes","l","emptyScript","p","reactiveElementPolyfillSupport","u","toAttribute","Boolean","Array","JSON","stringify","fromAttribute","Number","parse","f","b","attribute","type","String","converter","reflect","useDefault","hasChanged","litPropertyMetadata","y","HTMLElement","_$Ei","push","observedAttributes","finalize","_$Eh","keys","createProperty","state","hasOwnProperty","create","wrapped","elementProperties","noAccessor","getPropertyDescriptor","call","requestUpdate","configurable","enumerable","getPropertyOptions","Map","finalized","properties","_$Eu","elementStyles","finalizeStyles","styles","isArray","Set","flat","reverse","unshift","toLowerCase","super","_$Ep","isUpdatePending","hasUpdated","_$Em","_$Ev","_$ES","Promise","enableUpdating","_$AL","_$E_","forEach","addController","_$EO","add","renderRoot","isConnected","hostConnected","removeController","delete","size","createRenderRoot","shadowRoot","attachShadow","shadowRootOptions","connectedCallback","disconnectedCallback","hostDisconnected","attributeChangedCallback","_$AK","_$ET","removeAttribute","_$Ej","hasAttribute","C","_$EP","has","_$Eq","reject","scheduleUpdate","performUpdate","shouldUpdate","willUpdate","hostUpdate","update","_$EM","_$AE","hostUpdated","firstUpdated","updated","updateComplete","getUpdateComplete","mode","ReactiveElement","reactiveElementVersions","kind","name","init","querySelector","BaseControl","LitElement","label","placeholder","labelColor","value","required","optional","disabled","error","errorMessage","helper","helperAlign","helpClickable","_tooltipOpen","_lastClickTime","_boundCloseTooltip","_closeTooltip","bind","_handleTooltipClick","stopPropagation","preventDefault","Date","now","changedProperties","addEventListener","removeEventListener","renderLabelContainer","html","renderLabel","renderHelp","nothing","help","helpLink","helpLinkTooltipMessage","renderError","renderHelper","helperInlineStyles","property","customElement","bodyXS","css","bodyS","bodyM","bodyL","titleXXS","titleXS","titleS","DESKTOP_MEDIA_QUERY","AccordionPanel","title","isOpen","isDesktop","window","matchMedia","matches","handleMediaQueryChange","event","mediaQueryList","toggle","render","iconTemplate","AccordionList","RandstadButton","variant","loader","iconPosition","iconName","idevent","handleClick","form","closest","requestSubmit","reset","dispatchEvent","CustomEvent","detail","composed","bubbles","cancelable","classes","button","includes","dotColor","iconSrc","classMap","CarouselCard","img","description","buttonLabel","cardId","width","height","handleButtonClick","onClick","backgroundImageStyle","sizeStyle","Checkbox","checked","checkedColor","checkedBgColor","toggleCheck","Event","handleKeyDown","inlineStyles","tooltipStyles","focusStyles","mixStyles","errorStyles","scrollbarStyles","REGEX_NO_EMOJIS","RandstadForm","keydown","undefined","icon","typing","isPasswordVisible","cleanButton","togglePassword","input","currentTarget","parentElement","handleInput","handleInputCustom","newValue","maxLength","slice","handleClear","handleLinkClick","linkRoute","_updateValueWithCursor","inputElement","currentValue","start","selectionStart","end","selectionEnd","diff","newStart","Math","max","newEnd","setSelectionRange","shouldFilterEmojis","keydownRegex","RegExp","test","valueWithoutEmojis","replace","onlyNumeric","onlyText","onlyAlphanumeric","onlyRegex","sanitizedValue","trimmedValue","trimStart","groups","match","isComposite","firstGroup","secondGroup","chars","split","char","handleInputKeyDown","handleInputArrowKey","_isCleanButtonVisible","submitEvent","_inputMode","focus","handleButtonArrowKey","textareaInlineStyles","heightTextArea","maxHeightTextArea","formStyles","linkText","FormGroup","rows","fieldsInlineStyles","ICONS","arrow_back","arrow_down","arrow_drop_down","arrow_drop_up","arrow_left","arrow_next","arrow_prev","arrow_right","arrow_up","ayuda","calendar","check","check_circle","close","courses_circle","cv_circle","disability_circle","education_circle","email","experience_circle","eye","eye_crossed","home","image","info","info_circle","languages_circle","pencil","personal_circle","postulation","search","settings","thumbs_up","tick","trash","trash_circle","user","warning","IconComponent","color","svgTemplate","changedProps","style","setProperty","loadIcon","svgText","parser","DOMParser","svgElement","parseFromString","documentElement","console","innerHTML","RandstadSocialMediaInput","platform","customSanitizeRegex","customUrlValidationRegex","_inputValue","_showFormatError","_onChangeFn","_onTouchedFn","_fixedPrefix","_isSuffix","_isPrefix","_placeholder","_sanitizeRegex","_sentPrefixLength","_maxCharsAllowed","_handleInputOrPaste","originalValue","newPosition","startsWith","urlRegex","_urlValidationRegex","maxChars","lastIndex","finalValue","_getFullValue","safePosition","min","_hasMinLengthError","_errorMessageToDisplay","_hasError","_handleKeyDown","isAlphanumeric","username","_extractUsernameFromValue","fullValue","extractedUsername","then","allowedChars","helperText","writeValue","registerOnChange","fn","registerOnTouched","setDisabledState","isDisabled","RandstadNotice","message","open","CustomModal","showNotice","noticeType","noticeMessage","noticeIcon","showPrimaryButton","primaryButtonLabel","showSecondaryButton","secondaryButtonLabel","isFooterCustom","isPrimaryLoader","isPrimaryDisabled","modalWidth","modalHeight","maxHeight","hideFooter","scrollable","hasDropdownOpen","hasCalendarOpen","handleDropdownOpen","handleCalendarOpen","setScrollableMode","innerWidth","closeModal","getFooterClass","subtitle","CustomPopup","iconColor","buttonText","confirmText","cancelText","closeOnOutsideClick","stackedActions","_onBackgroundClick","path","composedPath","popupContainer","closePopup","response","popupStyle","action","ProgressCircle","circumference","PI","safeMax","offset","CustomRadio","handleSelect","containerClasses","join","fallbackText","labelContent","FilterableSelect","defaultValue","options","textLabelFilterNotResult","textLabelMobileSearch","isRenderClearButton","sortable","minSearch","textLabelLoading","debounceMs","isMobile","highlightedIndex","_isCleared","filteredOptions","filterValue","mobileFilterValue","showNoResults","_isLoading","lastElement","_prevIsMobile","_lastFetchTerm","_fetchedOptions","debounceTimeout","_abortController","_boundHandleClickOutside","handleClickOutside","getOptionLabel","option","handleGlobalOverlayOpen","updateResponsiveModeBound","updateResponsiveMode","_firstCharRegex","_effectiveFilterable","attr","getAttribute","filterable","_scrollLockCount","_scrollLockStylesheet","_ensureScrollLockStyles","FilterableSelect_1","head","toggleDynamicScrollLock","block","classList","scrollHeight","clientHeight","scrollBarWidth","clientWidth","paddingRight","remove","normalizeText","text","normalize","sortOptions","searchTerm","getOptionValueAsString","labelA","labelB","stringA","stringB","normalizedSearchTerm","aStartsWith","bStartsWith","valueStringA","valueStringB","numMatchA","numMatchB","numA","NaN","numB","isNaN","localeCompare","usage","sensitivity","_computeFilteredOptions","result","sort","filteredList","filter","opt","handleOptionHover","index","fetcher","targetValue","find","wasClosed","mobileInput","mobileInputRef","setTimeout","clearTimeout","abort","notifyOverlayOpened","handleInputClick","_fetchAsyncResults","_sanitizeInputValue","_emitEmptySelection","handleMobileInput","handleIconClick","isShowCleanButton","hasStringValue","hasObjectValue","_desktopInput","Node","contains","preventInvalidStart","tagName","handlePaste","pasteData","clipboardData","getData","sanitizedData","_sanitize","setRangeText","isSelection","willBeEmpty","isAlreadyEmpty","enabledOptions","firstEnabledIndex","findIndex","nextIndex","lastEnabledOption","indexOf","scrollHighlightedIntoView","prevIndex","_desktopFake","isAtEnd","iconButton","_iconButton","handleButtonKeyDown","fakeElement","focusTarget","HTMLInputElement","handleBlur","validateAndCleanOnBlur","optionsList","_optionsList","highlightedElement","scrollIntoView","normalizedSearch","executeFetch","AbortController","signal","aborted","catch","sanitizeFirstChar","firstChar","source","raw","renderOptionIcon","safe","_renderOptionItem","typedText","trim","validMatch","matchValue","matchLabel","inputStyles","shouldBeOpen","validationTextLabelFilterNotResult","validationTextLabelMobileSearch","validationtPlaceholder","hasTextLabelFilterNotResult","hasTextLabelMobileSearch","hasPlaceholder","Function","query","HTMLButtonElement","HTMLUListElement","globalStyles","RandstadSnackbar","position","_navbarObserver","updateResponsiveStyles","observeNavbar","disconnect","updateNavbarPosition","isNavbarVisible","navbar","visible","isBottom","shouldOffset","MutationObserver","observe","attributes","attributeFilter","ariaRole","CustomStepper","totalSteps","currentStep","from","_","TabsBar","tabs","selected","internalSelected","showPrev","showNext","SCROLL_OFFSET","handleScroll","wrapper","scrollLeft","scrollWidth","changed","selectTab","selectedTab","tab","scrollTabsLeft","querySelectorAll","tabLeft","offsetLeft","scrollTarget","scrollTo","left","behavior","scrollTabsRight","wrapperLeft","el","BaseUpload","files","simulatedDelay","showAlertInError","typeTextFile","loading","progress","errorTextMessage","isMultiple","TEXT_SNACKBAR_ERROR_TYPE","TEXT_SNACKBAR_ERROR_SIZE","maxSize","TEXT_SNACKBAR_ERROR_DELETE","typeFile","showSnackbar","duration","snackbar","timer","warn","baseGetTextMaxFileSize","maxFileSize","ONE_MB","parseFloat","toPrecision","round","getReadableFileTypes","acceptedFileTypes","typeMapping","readableTypes","lastType","pop","validateFiles","filesToValidate","errorMessageType","errorMessageSize","typeError","hasSizeLimit","hasTypeLimit","file","fileExtension","isTypeValid","isExtensionValid","some","ext","setError","baseHandleFiles","config","baseMaxFiles","currentFiles","remainingSlots","isFinite","baseErrorTextMessage","delay","startTime","interval","setInterval","elapsedTime","newProgress","clearInterval","fileInput","baseOnFileInputChange","removeFile","snackbarMessage","renderLoadingContainer","htmlSlotContent","IMAGE_TYPE_MAPPING","FILE_TYPE_MAPPING","progressBarUploadStyles","UploadImage","maxFiles","isShowInfoSize","isChangeStyleError","isDragging","imageUrls","isMaxFilesReached","getFileConfig","baseMessageError","getTextAcceptedFileTypes","getTextMaxFileSize","url","URL","revokeObjectURL","createObjectURL","handleFiles","onFileInputChange","onDrop","dataTransfer","onDragOver","onDragLeave","handleButtonKeydown","click","isUploadDisabled","isRemoveButtonDisabled","hasSizeLimitText","sizeText","typeText","errorText","applyErrorStyle","mainText","containerClass","inputBaseTemplate","millisecondsInWeek","constructFromSymbol","for","constructFrom","date","toDate","argument","context","addMonths","amount","_date","in","dayOfMonth","getDate","endOfDesiredMonth","getTime","setMonth","getMonth","setFullYear","getFullYear","defaultOptions","getDefaultOptions","startOfWeek","weekStartsOn","locale","day","getDay","setDate","setHours","startOfISOWeek","getISOWeekYear","year","fourthOfJanuaryOfNextYear","startOfNextYear","fourthOfJanuaryOfThisYear","startOfThisYear","getTimezoneOffsetInMilliseconds","utcDate","UTC","getHours","getMinutes","getSeconds","getMilliseconds","setUTCFullYear","normalizeDates","dates","startOfDay","addYears","isValid","startOfMonth","formatDistanceLocale","lessThanXSeconds","one","other","xSeconds","halfAMinute","lessThanXMinutes","xMinutes","aboutXHours","xHours","xDays","aboutXWeeks","xWeeks","aboutXMonths","xMonths","aboutXYears","xYears","overXYears","almostXYears","buildFormatLongFn","args","defaultWidth","formats","formatLong","full","long","medium","short","time","dateTime","formatRelativeLocale","lastWeek","yesterday","today","tomorrow","nextWeek","buildLocalizeFn","valuesArray","formattingValues","defaultFormattingWidth","values","argumentCallback","buildMatchFn","string","matchPattern","matchPatterns","defaultMatchWidth","matchResult","matchedString","parsePatterns","defaultParseWidth","array","predicate","pattern","object","findKey","valueCallback","rest","enUS","code","formatDistance","token","count","tokenValue","addSuffix","comparison","formatRelative","_baseDate","_options","localize","ordinalNumber","dirtyNumber","number","rem100","era","narrow","abbreviated","wide","quarter","month","dayPeriod","am","pm","midnight","noon","morning","afternoon","evening","night","parsePattern","parseInt","parseResult","any","firstWeekContainsDate","getDayOfYear","laterDate","earlierDate","laterDate_","earlierDate_","laterStartOfDay","earlierStartOfDay","laterTimestamp","earlierTimestamp","differenceInCalendarDays","date_","startOfYear","getISOWeek","fourthOfJanuary","startOfISOWeekYear","getWeekYear","firstWeekOfNextYear","firstWeekOfThisYear","getWeek","firstWeek","startOfWeekYear","addLeadingZeros","targetLength","abs","padStart","lightFormatters","signedYear","M","dayPeriodEnumValue","toUpperCase","H","m","numberOfDigits","milliseconds","trunc","pow","dayPeriodEnum","formatters","G","unit","Y","signedWeekYear","weekYear","R","Q","ceil","q","L","w","week","I","isoWeek","D","dayOfYear","E","dayOfWeek","localDayOfWeek","isoDayOfWeek","hours","B","K","k","X","_localize","timezoneOffset","getTimezoneOffset","formatTimezoneWithOptionalMinutes","formatTimezone","x","O","formatTimezoneShort","z","T","delimiter","sign","absOffset","minutes","dateLongFormatter","timeLongFormatter","longFormatters","P","datePattern","timePattern","dateTimeFormat","dayOfYearTokenRE","weekYearTokenRE","throwTokens","formattingTokensRegExp","longFormattingTokensRegExp","escapedStringRegExp","doubleQuoteRegExp","unescapedLatinCharacterRegExp","format","formatStr","defaultLocale","originalDate","RangeError","parts","substring","firstCharacter","longFormatter","isToken","cleanEscapedString","preprocessor","formatterOptions","part","_message","subject","warnOrThrowProtectedError","formatter","matched","getDaysInMonth","monthIndex","lastDayOfMonth","isAfter","dateToCompare","isBefore","isSameMonth","isSameYear","isToday","dateLeft_","dateRight_","isSameDay","constructNow","CalendarOverlay","selectedDate","viewDate","calendarWidth","minDate","maxDate","currentView","handleOutsideClick","root","getRootNode","host","_boundHandleCalendarKeydown","handleCalendarKeydown","_boundHandleFocusout","relatedTarget","handleFocusInput","handleHeaderClick","_updateView","newDate","newView","handleNavClick","direction","dateFns.addMonths","dateFns.addYears","handleYearSelect","dateFns.setYear","monthYearButton","handleMonthSelect","midMonth","daysInMonth","dateFns.setMonth","initialFocusElement","handleDayClick","getFullMonthNames","getShortMonthNames","getShortWeekdays","focusCalendar","elementToFocus","focusFirstElement","firstButton","focusYearsView","firstYearButton","focusMonthsView","firstMonthButton","focusDaysView","firstDayButton","_findAndFocusDayButton","activeElement","dayButtons","currentIndex","btn","newIndex","newFocusElement","_focusDayOfWeekEdge","dayDOMIndex","startOfWeekDOMIndex","checkIndex","endOfWeekDOMIndex","prevButton","nextButton","initialDayFocus","firstGridItem","buttonSelector","gridItems","focusableElements","firstElement","shiftKey","renderHeader","monthNames","headerText","disablePrev","disableNext","startYear","endYear","Infinity","viewYear","dateFns.isSameMonth","dateFns.startOfMonth","dateFns.isBefore","dateFns.isAfter","renderYearsView","years","selectedYear","currentYear","minYear","maxYear","renderMonthsView","selectedMonth","currentMonth","isCurrentMonth","isSelected","dateFns.isSameYear","isSecondarySelected","renderDayView","dateFns.getDaysInMonth","leadingDays","days","dateFns.setDate","weekdays","normalizedDay","dateFns.startOfDay","normalizedSelectedDate","isTodayDay","dateFns.isToday","dateFns.getDate","dateFns.format","content","showSeparator","mainContent","DatePickerComponent","readonly","eighteenOrOlder","inputValue","_emitDropdownToggle","_emitToggle","setMessageErrorFormatInvalid","_currentFormat","setInitialWidth","inputContainer","newWidth","getBoundingClientRect","onlyNumericAndDash","_parseAndValidateDate","handleCalendarButtonClick","handleClearDate","closeOverlay","handleDateSelect","_validateDate","formattedDate","opened","_isLastFocusableInModal","parent","focusableSelectors","focusableArray","myIndex","oldValue","_syncValue","handleViewDateChange","valueSet","parsedDate","_parseDate","eighteenYearsAgo","subYears","_isWithinBounds","_getValidDateRange","fromInput","dateString","tempDate","partsYYYYMMDD","_parseDateString","minDateObj","maxDateObj","range","calendarOverlay","clearButton","calendarButton","handleClearButtonKeydown","handleCalendarButtonKeydown","inputWrapperClasses","active","HTMLDivElement","UploadFile","showDeleteConfirmation","showInternalError","isRemovePopupOpen","fileIndexToRemove","fileNameToRemove","applyWidth","handleRemoveFile","fileName","confirmRemoveFile","handlePopupClose","buttonDisabled","buttonBaseTemplate","Carousel","cards","cardWidth","cardHeight","navWidth","showNavButtons","isDynamicWidth","isInfiniteScrollPartial","autoPlayDelayMs","showPrevButton","showNextButton","isDraggingWithButtons","isDownWithButtons","startXWithButtons","scrollLeftPositionWithButtons","isScrollingByButton","isDownDrag","prevXDrag","isDraggingDrag","scrollLeftDrag","observer","scrollTimeout","autoPlayTimer","handleResize","DESKTOP_GAP","TABLET_GAP","MOBILE_GAP","handleMouseDownWithButtons","handleMouseLeaveWithButtons","handleMouseUpWithButtons","handleMouseMoveWithButtons","handleScrollWithButtons","handleMouseDownDrag","handleMouseLeaveDrag","handleMouseUpDrag","handleMouseMoveDrag","resizeHandler","getCarouselGap","gapValue","setCarouselGap","getNavWidth","getInitialPadding","slider","scrollPaddingLeft","getComputedStyle","getPropertyValue","initAutoPlayConfig","initNavModeConfig","slotElement","loadMutationObserver","handleMouseEnter","requestAnimationFrame","startAutoPlay","stopAutoPlay","mutations","addedNodes","childList","subtree","scrollToNext","scrollBehavior","pageX","dx","shouldPreventDragWithButtons","walk","maxScrollLeft","currentScroll","TOLERANCE","scrollSnapType","getNavButtonWidth","getScrollAmount","firstItem","assignedElements","flatten","node","fixedWidth","computedStyle","gapString","getCarouselItems","getCardsToCenterCount","calculateTargetIndex","currentScrollLeft","isNext","children","cardsToCenter","viewStart","targetIndex","currentFirstVisibleIndex","initialPadding","maxStartIndex","isDesktopMode","getScrollLeftToCenter","firstCard","groupWidth","targetScrollLeft","scrollToPrev","navButtonWidth","computedSpaces","card","isAutoPlayEvent","getCardCustomDimensionValue","dimension","computedWidthLimit","valueInPxMatch","maxDimension","innerHeight","renderNavButtons","prevClasses","prev","hidden","nextClasses","next","renderContent","cardWidthValue","cardHeightValue","isNavMode","isIninitePartialMode","wrapperClasses","HTMLSlotElement","RandstadBubble","arrowAlign","isAnimating","clearDurationTimer","startDurationTimer","hideTimeout","hide","show","bubble","top","backgroundColor","textColor","fontFamily","MfaModal","inputMode","showError","showSuccessNotice","successMessage","helperMessage","resendCooldown","_resendDisabled","_resendRemaining","_pinValues","fill","_clearResendTimer","_focusInput","_syncCloseButtonDisabled","focusFirstInput","_resendTimer","_resolvedInputMode","_sanitizeValue","_getCloseButton","modal","cursor","pointerEvents","opacity","_clearForwardFromIndex","startIndex","_getPinInputs","inputs","select","_isComplete","every","v","_onPinInput","val","shift","PIN_LENGTH","_onPinKeyDown","_onConfirm","ctrlKey","metaKey","_onPinPaste","pasted","digits","firstEmpty","_onClose","_onResend","_startResendCountdown","_renderPinInputs","_renderResendSection","RandstadNavbar","centerIcon","centerLabel","desktop","selectedIndex","_rafId","scrollBottom","scrollY","docHeight","handleScrollThrottled","items","passive","cancelAnimationFrame","handleItemClick","item","handleCenterClick","leftItems","rightItems","renderItem","href"],"mappings":"wHAsDO,SAASA,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2HC,EAAvHC,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIJ,EAAkB,OAATE,EAAgBA,EAAOM,OAAOC,yBAAyBT,EAAQC,GAAOC,EACrH,GAAuB,iBAAZQ,SAAoD,mBAArBA,QAAQC,SAAyBJ,EAAIG,QAAQC,SAASZ,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIU,EAAIb,EAAWO,OAAS,EAAGM,GAAK,EAAGA,KAAST,EAAIJ,EAAWa,MAAIL,GAAKH,EAAI,EAAID,EAAEI,GAAKH,EAAI,EAAID,EAAEH,EAAQC,EAAKM,GAAKJ,EAAEH,EAAQC,KAASM,GAChJ,OAAOH,EAAI,GAAKG,GAAKC,OAAOK,eAAeb,EAAQC,EAA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AGzD,GAxQ2Bd,EAAA,CAA1B4N,EAAS,CAAE1I,KAAMT,gCAA0Bq2C,GAAA94C,UAAA,aAAA,GAEhBhC,EAAA,CAA3B4N,EAAS,CAAE1I,KAAMC,kCAAgC21C,GAAA94C,UAAA,kBAAA,GAEtBhC,EAAA,CAA3B4N,EAAS,CAAE1I,KAAMC,kCAA2B21C,GAAA94C,UAAA,mBAAA,GAEDhC,EAAA,CAA3C4N,EAAS,CAAE1I,KAAMV,QAASa,SAAS,6BAAuBy1C,GAAA94C,UAAA,cAAA,GAEfhC,EAAA,CAA3C4N,EAAS,CAAE1I,KAAMV,QAASa,SAAS,6BAAwBy1C,GAAA94C,UAAA,eAAA,GAEhChC,EAAA,CAA3B4N,EAAS,CAAE1I,KAAML,kCAA6Bi2C,GAAA94C,UAAA,qBAAA,GAXpC84C,GAAc96C,EAAA,CAD1B6N,EAAc,8CACFitC","x_google_ignoreList":[0,1,2,3,4,5,6,7,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,89,90,91,93]}
1
+ {"version":3,"file":"index.js","sources":["../node_modules/tslib/tslib.es6.js","../node_modules/@lit/reactive-element/decorators/custom-element.js","../node_modules/@lit/reactive-element/css-tag.js","../node_modules/@lit/reactive-element/reactive-element.js","../node_modules/@lit/reactive-element/decorators/property.js","../node_modules/@lit/reactive-element/decorators/state.js","../node_modules/@lit/reactive-element/decorators/query.js","../node_modules/@lit/reactive-element/decorators/base.js","../src/helpers/BaseControl.ts","../src/styles/fontStyles.ts","../src/components/Accordion.ts","../src/components/AccordionList.ts","../src/components/Button.ts","../src/components/CarouselCards.ts","../src/components/Checkbox.ts","../src/styles/tooltip.ts","../src/styles/focus.ts","../src/styles/mix.ts","../src/styles/error.ts","../src/styles/scrollbar.ts","../src/components/Form.ts","../src/components/FormGroup.ts","../src/components/icons.ts","../src/components/Icon.ts","../src/components/SocialMediaInput.ts","../src/components/Notice.ts","../src/components/Modal.ts","../src/components/Popup.ts","../src/components/ProgressCircle.ts","../src/components/Radio.ts","../src/components/Select.ts","../src/styles/globalStyles.ts","../src/components/Snackbar.ts","../src/components/Stepper.ts","../src/components/Tabs.ts","../src/helpers/BaseUpload.ts","../src/utils/file-format.ts","../src/styles/progress-bar-upload.ts","../src/components/Upload.ts","../node_modules/date-fns/constants.js","../node_modules/date-fns/constructFrom.js","../node_modules/date-fns/toDate.js","../node_modules/date-fns/addMonths.js","../node_modules/date-fns/_lib/defaultOptions.js","../node_modules/date-fns/startOfWeek.js","../node_modules/date-fns/startOfISOWeek.js","../node_modules/date-fns/getISOWeekYear.js","../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js","../node_modules/date-fns/_lib/normalizeDates.js","../node_modules/date-fns/startOfDay.js","../node_modules/date-fns/addYears.js","../node_modules/date-fns/isValid.js","../node_modules/date-fns/isDate.js","../node_modules/date-fns/startOfMonth.js","../node_modules/date-fns/locale/en-US/_lib/formatDistance.js","../node_modules/date-fns/locale/_lib/buildFormatLongFn.js","../node_modules/date-fns/locale/en-US/_lib/formatLong.js","../node_modules/date-fns/locale/en-US/_lib/formatRelative.js","../node_modules/date-fns/locale/_lib/buildLocalizeFn.js","../node_modules/date-fns/locale/_lib/buildMatchFn.js","../node_modules/date-fns/locale/_lib/buildMatchPatternFn.js","../node_modules/date-fns/locale/en-US.js","../node_modules/date-fns/locale/en-US/_lib/localize.js","../node_modules/date-fns/locale/en-US/_lib/match.js","../node_modules/date-fns/getDayOfYear.js","../node_modules/date-fns/differenceInCalendarDays.js","../node_modules/date-fns/startOfYear.js","../node_modules/date-fns/getISOWeek.js","../node_modules/date-fns/startOfISOWeekYear.js","../node_modules/date-fns/getWeekYear.js","../node_modules/date-fns/getWeek.js","../node_modules/date-fns/startOfWeekYear.js","../node_modules/date-fns/_lib/addLeadingZeros.js","../node_modules/date-fns/_lib/format/lightFormatters.js","../node_modules/date-fns/_lib/format/formatters.js","../node_modules/date-fns/_lib/format/longFormatters.js","../node_modules/date-fns/_lib/protectedTokens.js","../node_modules/date-fns/format.js","../node_modules/date-fns/getDate.js","../node_modules/date-fns/getDaysInMonth.js","../node_modules/date-fns/isAfter.js","../node_modules/date-fns/isBefore.js","../node_modules/date-fns/isSameMonth.js","../node_modules/date-fns/isSameYear.js","../node_modules/date-fns/isToday.js","../node_modules/date-fns/isSameDay.js","../node_modules/date-fns/constructNow.js","../node_modules/date-fns/setDate.js","../src/components/CalendarOverlay.ts","../node_modules/date-fns/setYear.js","../node_modules/date-fns/setMonth.js","../node_modules/date-fns/getDay.js","../src/components/DatePicker.ts","../node_modules/date-fns/subYears.js","../src/components/File.ts","../src/components/Carousel.ts","../src/components/Bubble.ts","../src/components/MfaModal.ts","../src/components/Navbar.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n 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);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)};export{t as customElement};\n//# sourceMappingURL=custom-element.js.map\n","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1]),t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as s}from\"./css-tag.js\";export{CSSResult,css,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{is:i,defineProperty:e,getOwnPropertyDescriptor:h,getOwnPropertyNames:r,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:\"\",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),b={attribute:!0,type:String,converter:u,reflect:!1,useDefault:!1,hasChanged:f};Symbol.metadata??=Symbol(\"metadata\"),a.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e(this.prototype,t,h)}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d(\"elementProperties\")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d(\"finalized\")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d(\"properties\"))){const t=this.properties,s=[...r(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(t(s))}else void 0!==s&&i.push(t(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:\"string\"==typeof i?i:\"string\"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=h.fromAttribute(s,t.type)??this._$Ej?.get(e)??null,this._$Em=null}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),!0!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),!0===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];!0!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:\"open\"},y[d(\"elementProperties\")]=new Map,y[d(\"finalized\")]=new Map,p?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push(\"2.1.0\");export{y as ReactiveElement,s as adoptStyles,u as defaultConverter,t as getCompatibleStyle,f as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","import{defaultConverter as t,notEqual as e}from\"../reactive-element.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o={attribute:!0,type:String,converter:t,reflect:!1,hasChanged:e},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),\"setter\"===n&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),\"accessor\"===n){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if(\"setter\"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error(\"Unsupported decorator location: \"+n)};function n(t){return(e,o)=>\"object\"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}export{n as property,r as standardProperty};\n//# sourceMappingURL=property.js.map\n","import{property as t}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function r(r){return t({...r,state:!0,attribute:!1})}export{r as state};\n//# sourceMappingURL=state.js.map\n","import{desc as t}from\"./base.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function e(e,r){return(n,s,i)=>{const o=t=>t.renderRoot?.querySelector(e)??null;if(r){const{get:e,set:r}=\"object\"==typeof s?n:i??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return t(n,s,{get(){let t=e.call(this);return void 0===t&&(t=o(this),(null!==t||this.hasUpdated)&&r.call(this,t)),t}})}return t(n,s,{get(){return o(this)}})}}export{e as query};\n//# sourceMappingURL=query.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst e=(e,t,c)=>(c.configurable=!0,c.enumerable=!0,Reflect.decorate&&\"object\"!=typeof t&&Object.defineProperty(e,t,c),c);export{e as desc};\n//# sourceMappingURL=base.js.map\n","import { html, LitElement, nothing } from \"lit\";\nimport { customElement, property, state } from \"lit/decorators.js\";\n\n@customElement(\"base-control\")\nexport class BaseControl extends LitElement { \n @property({ type: String }) label = '';\n @property({ type: String }) placeholder = '';\n @property({ type: String }) labelColor = '';\n\n @property() value: any = '';\n\n @property({ type: Boolean }) required = false;\n @property({ type: Boolean }) optional = false;\n @property({ type: Boolean }) disabled = false;\n \n @property({ type: Boolean, reflect: true }) error = false;\n @property({ type: String }) errorMessage: string | null = null;\n\n @property({ type: String }) helper: string | null = null;\n @property({ type: String }) helperAlign: 'left' | 'center' | 'right' | 'justify' = 'left';\n\n @property({ type: String }) help?: string; // Icono con tooltip (no es un enlace)\n @property({ type: Boolean }) helpClickable = false; // Si es true, el tooltip se muestra al hacer click en lugar de hover\n @property({ type: String }) helpLink?: string; // Icono que es un enlace\n @property({ type: String }) helpLinkTooltipMessage?: string; // Mensaje para el tooltip del enlace\n\n @state() private _tooltipOpen = false;\n private _lastClickTime = 0;\n\n private _boundCloseTooltip = this._closeTooltip.bind(this);\n\n private _handleTooltipClick(e: Event) {\n e.stopPropagation();\n e.preventDefault();\n this._lastClickTime = Date.now();\n this._tooltipOpen = !this._tooltipOpen;\n }\n\n private _closeTooltip() {\n if (!this.helpClickable || !this._tooltipOpen) return;\n \n if (Date.now() - this._lastClickTime > 50) {\n this._tooltipOpen = false;\n }\n }\n\n protected updated(changedProperties: Map<string | number | symbol, unknown>) {\n super.updated(changedProperties);\n \n // Si la propiedad helpClickable cambió (o se inicializó)\n if (changedProperties.has('helpClickable')) {\n if (this.helpClickable) {\n document.addEventListener('click', this._boundCloseTooltip);\n } else {\n document.removeEventListener('click', this._boundCloseTooltip);\n }\n }\n }\n\n public connectedCallback() {\n super.connectedCallback();\n }\n\n public disconnectedCallback() {\n super.disconnectedCallback();\n document.removeEventListener('click', this._boundCloseTooltip);\n }\n\n public renderLabelContainer() {\n return html `\n ${ this.label ? \n html`\n <div class=\"label-container\">\n ${ this.renderLabel() }\n \n ${ this.renderHelp() }\n </div>\n ` : ''\n }\n `;\n }\n \n public renderLabel() {\n return html `\n <label class=\"form-label\">\n ${ this.label }\n ${ this.required\n ? html`\n <span class=\"required\">*</span>`\n : this.optional\n ? html` <span class=\"optional\">opcional</span> `\n : nothing\n }\n </label>\n `;\n }\n\n public renderHelp() {\n return html`\n ${ this.help\n ? html`\n <div \n class=\"tooltip-wrapper ${ this.helpClickable ? 'clickable' : '' }\"\n @click=${ this.helpClickable ? this._handleTooltipClick : nothing }\n >\n <randstad-icon \n name=\"info\" \n size=\"20px\"\n ></randstad-icon>\n\n <div class=\"tooltip ${ this.helpClickable && this._tooltipOpen ? 'active' : '' }\">${ this.help }</div>\n </div>\n `\n : this.helpLink\n ? html`\n <a class=\"tooltip-wrapper\" href=\"${ this.helpLink }\">\n <randstad-icon name=\"ayuda\" size=\"20px\"></randstad-icon>\n \n ${ this.helpLinkTooltipMessage\n ? html`<div class=\"tooltip\">${ this.helpLinkTooltipMessage }</div>`\n : nothing\n }\n </a>\n `\n : nothing\n }\n `;\n }\n\n public renderError() {\n return html`\n ${ this.error ? \n html `\n <div class=\"error-message\">\n ${ this.errorMessage ? this.errorMessage : html`<slot name=\"error-extended\"></slot>` }\n </div>\n `\n : nothing\n }\n `;\n }\n\n public renderHelper() {\n const helperInlineStyles = `text-align: ${ this.helperAlign ?? 'left' };`;\n\n return html`\n ${ this.helper\n ? html`\n <p \n class=\"helper-description\"\n style=${ helperInlineStyles }\n >\n ${ this.helper }\n </p>\n `\n : nothing\n }\n `;\n }\n}","import { css, CSSResult } from 'lit';\r\n\r\nexport const bodyXS: CSSResult = css`\r\n font-family: 'Graphik', sans-serif;\r\n font-weight: 400;\r\n font-size: 12px;\r\n line-height: 15px;\r\n letter-spacing: 0%;\r\n`;\r\n\r\nexport const bodyS: CSSResult = css`\r\n font-family: 'Graphik', sans-serif;\r\n font-weight: 400;\r\n font-size: 14px;\r\n line-height: 25px;\r\n letter-spacing: 0%;\r\n`;\r\n\r\nexport const bodyM: CSSResult = css`\r\n font-family: 'Graphik', sans-serif;\r\n font-weight: 400;\r\n font-size: 16px;\r\n line-height: 25px;\r\n letter-spacing: 0%;\r\n`;\r\n\r\nexport const bodyL: CSSResult = css`\r\n font-family: 'Graphik', sans-serif;\r\n font-weight: 400;\r\n font-size: 18px;\r\n line-height: 30px;\r\n letter-spacing: 0%;\r\n`;\r\n\r\nexport const titleXXS: CSSResult = css`\r\n font-family: 'Graphik', sans-serif;\r\n font-weight: 400;\r\n font-size: 18px;\r\n line-height: 30px;\r\n letter-spacing: 0%;\r\n vertical-align: middle;\r\n`;\r\n\r\nexport const titleXS: CSSResult = css`\r\n font-family: 'Graphik', sans-serif;\r\n font-weight: 400;\r\n font-size: 20px;\r\n line-height: 30px;\r\n letter-spacing: -1%;\r\n vertical-align: middle;\r\n`;\r\n\r\nexport const titleS: CSSResult = css`\r\n font-family: 'Graphik', sans-serif;\r\n font-weight: 400;\r\n font-size: 26px;\r\n line-height: 30px;\r\n letter-spacing: -1%;\r\n vertical-align: middle;\r\n`;\r\n","import { LitElement, html, css, TemplateResult } from 'lit';\r\nimport { customElement, property, state } from 'lit/decorators.js';\r\nimport { bodyM } from '../styles/fontStyles';\r\n\r\nconst DESKTOP_MEDIA_QUERY = '(min-width: 501px)';\r\n\r\n@customElement('accordion-panel')\r\nexport class AccordionPanel extends LitElement {\r\n @property({ type: String }) title = '';\r\n\r\n @state() private isOpen = false;\r\n @state() private isDesktop = window.matchMedia(DESKTOP_MEDIA_QUERY).matches;\r\n\r\n private mediaQueryList!: MediaQueryList;\r\n\r\n static styles = css`\r\n :host {\r\n display: flex;\r\n flex-direction: column;\r\n font-family: 'Graphik', sans-serif; \r\n }\r\n\r\n .header {\r\n position: relative;\r\n display: flex;\r\n justify-content: space-between;\r\n gap: 16px;\r\n flex-direction: row;\r\n align-items: center;\r\n cursor: pointer;\r\n min-height: 25px;\r\n padding-bottom: 16px;\r\n }\r\n\r\n .title {\r\n ${ bodyM }\r\n color: var( --secondary-color );\r\n }\r\n\r\n .icon-wrapper {\r\n position: absolute;\r\n top: -7px;\r\n right: 0;\r\n width: 40px;\r\n height: 40px;\r\n border-radius: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n transition: background-color .5s ease-in-out;\r\n }\r\n\r\n .icon {\r\n transition: transform .5s ease-in-out;\r\n }\r\n\r\n .content {\r\n overflow: hidden;\r\n height: 0;\r\n max-height: 0;\r\n opacity: 0;\r\n }\r\n\r\n .content.open {\r\n max-height: 1000px;\r\n padding-bottom: 16px;\r\n height: auto;\r\n opacity: 1;\r\n }\r\n\r\n .content, .content.open {\r\n transition: height .5s ease-in-out, opacity .5s ease-in-out, padding-bottom .3s ease-in-out;\r\n }\r\n\r\n :host::after {\r\n content: '';\r\n display: block;\r\n height: 1px;\r\n background-color: var( --secondary-color-20 );\r\n width: 100%;\r\n }\r\n\r\n @media (min-width: 501px) and (hover: hover) and (pointer: fine) {\r\n .header:hover .icon-wrapper {\r\n background-color: var(--primary-color-10);\r\n }\r\n }\r\n\r\n @media (max-width: 650px) {\r\n .title {\r\n max-width: 90%;\r\n }\r\n }\r\n \r\n @media (max-width: 501px) {\r\n .title {\r\n max-width: 90%;\r\n }\r\n }\r\n `;\r\n\r\n public connectedCallback(): void {\r\n super.connectedCallback();\r\n this.mediaQueryList = window.matchMedia(DESKTOP_MEDIA_QUERY);\r\n this.mediaQueryList.addEventListener('change', this.handleMediaQueryChange);\r\n }\r\n\r\n public disconnectedCallback(): void {\r\n super.disconnectedCallback();\r\n this.mediaQueryList.removeEventListener('change', this.handleMediaQueryChange);\r\n }\r\n\r\n private handleMediaQueryChange = (event: MediaQueryListEvent) => {\r\n this.isDesktop = event.matches;\r\n };\r\n\r\n private toggle() {\r\n this.isOpen = !this.isOpen;\r\n }\r\n\r\n public render() {\r\n const iconTemplate: TemplateResult = html`\r\n <randstad-icon\r\n name=\"${ this.isOpen ? 'arrow_up' : 'arrow_down' }\"\r\n size=\"24\"\r\n .color=${ 'var( --primary-color )' }\r\n >\r\n </randstad-icon>\r\n `;\r\n\r\n return html`\r\n <div class=\"header\" @click=${ this.toggle }>\r\n <div class=\"title\">${ this.title }</div>\r\n <div class=\"icon\">\r\n ${ this.isDesktop\r\n ? html`<div class=\"icon-wrapper\">${ iconTemplate }</div>`\r\n : iconTemplate\r\n }\r\n </div>\r\n </div>\r\n\r\n <div class=\"content ${ this.isOpen ? 'open' : '' }\">\r\n <slot></slot>\r\n </div>\r\n `;\r\n }\r\n}","import { LitElement, css, html } from 'lit';\r\nimport { customElement } from 'lit/decorators.js';\r\n\r\n@customElement('accordion-list')\r\nexport class AccordionList extends LitElement {\r\n static styles = css`\r\n :host {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 16px;\r\n }\r\n `;\r\n\r\n public render() {\r\n return html`<slot></slot>`;\r\n }\r\n}","import { LitElement, html, css } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\nimport { bodyM, bodyL } from '../styles/fontStyles';\r\nimport { classMap } from 'lit/directives/class-map.js';\r\n\r\nimport '../styles/buttons.css';\r\n\r\n@customElement('randstad-button')\r\nexport class RandstadButton extends LitElement {\r\n @property({ type: String }) type: 'button' | 'submit' | 'reset' = 'button';\r\n @property({ type: String }) variant: 'button-primary' | 'button-secondary' | 'button-tertiary' | 'button-round' | 'button-card' | 'button-icon' | 'button-danger'= 'button-primary';\r\n \r\n @property({ type: String }) size: 'sm' | 'md' | 'lg' = 'md';\r\n @property({ type: String }) label = '';\r\n\r\n @property({ type: Boolean }) loader = false;\r\n\r\n @property({ type: String, attribute: 'icon-src' }) iconSrc?: string;\r\n @property({ type: String }) iconPosition: 'left' | 'right' = 'left';\r\n @property({ type: String }) iconName: string | null = null;\r\n\r\n @property({ type: Boolean, reflect: true }) disabled: boolean = false;\r\n \r\n @property({ type: String }) idevent = '';\r\n\r\n static styles = css`\r\n :host {\r\n display: inline-block;\r\n --content-padding: 16px;\r\n }\r\n\r\n .button {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 4px;\r\n cursor: pointer;\r\n font-weight: 400;\r\n padding: 0;\r\n border: none;\r\n transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;\r\n gap: 4px;\r\n width: 100%;\r\n position: relative;\r\n box-sizing: border-box; \r\n }\r\n\r\n .content-container {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n gap: 4px;\r\n width: 100%;\r\n padding: var( --content-padding );\r\n height: 100%;\r\n }\r\n\r\n .content-container .label-text {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n height: 100%;\r\n }\r\n\r\n .button-lg {\r\n ${bodyL}\r\n min-height: 62px;\r\n }\r\n\r\n .button-md {\r\n ${bodyM}\r\n min-height: 57px;\r\n }\r\n\r\n .button-sm {\r\n width: 62px;\r\n height: 62px;\r\n min-width: 62px;\r\n min-height: 62px;\r\n padding: 0;\r\n }\r\n\r\n /* Primary */\r\n .button-primary {\r\n background-color: var(--primary-color);\r\n color: var(--white);\r\n }\r\n\r\n .button-primary:not([disabled]):hover {\r\n background-color: var(--primary-button-hover);\r\n }\r\n\r\n .button-primary:not([disabled]):active {\r\n background-color: var(--primary-button-active);\r\n }\r\n\r\n .button-primary:not([disabled]):focus-visible {\r\n outline: 2px solid var(--primary-button-focus);\r\n outline-offset: 2px;\r\n }\r\n \r\n .button-danger:not([disabled]):focus-visible {\r\n outline: 2px solid var(--primary-button-focus);\r\n outline-offset: 2px;\r\n }\r\n\r\n .button-primary[disabled] {\r\n color: var(--secondary-color-60);\r\n background-color: var(--secondary-color-20);\r\n cursor: default;\r\n }\r\n\r\n /* Secondary */\r\n .button-secondary {\r\n background: none;\r\n color: var(--primary-color);\r\n border: 1px solid var(--primary-color);\r\n }\r\n\r\n .button-secondary:not([disabled]):hover {\r\n color: var(--primary-button-hover);\r\n border-color: var(--primary-button-hover);\r\n }\r\n\r\n .button-secondary:not([disabled]):active {\r\n color: var(--secondary-color-80);\r\n border-color: var(--secondary-color-80);\r\n }\r\n\r\n .button-secondary:not([disabled]):focus-visible {\r\n outline: 2px solid var(--primary-color);\r\n outline-offset: 2px;\r\n }\r\n\r\n .button-secondary[disabled] {\r\n color: var(--secondary-color-60);\r\n border-color: var(--secondary-color-60);\r\n cursor: default;\r\n }\r\n\r\n /* DANGER */\r\n .button-danger {\r\n background-color: var(--danger-button, #E00F0F);\r\n color: var(--white);\r\n }\r\n\r\n .button-danger:not([disabled]):hover {\r\n background-color: var(--danger-button-hover, #C90D0D);\r\n }\r\n\r\n .button-danger:not([disabled]):active {\r\n background-color: var(--danger-button-active, #B30C0C);\r\n }\r\n\r\n .button-danger[disabled] {\r\n background-color: #CFD1D9;\r\n color: var(--secondary-color-60);\r\n cursor: default;\r\n }\r\n\r\n /* Tertiary */\r\n .button-tertiary {\r\n background: none;\r\n border: none;\r\n color: var(--primary-color);\r\n }\r\n\r\n .button-tertiary:not([disabled]):hover {\r\n background: var(--primary-color-5);\r\n }\r\n\r\n .button-tertiary:not([disabled]):active {\r\n background-color: var(--primary-color-10);\r\n }\r\n\r\n .button-tertiary:not([disabled]):focus-visible {\r\n outline: 2px solid var(--primary-color);\r\n outline-offset: 2px;\r\n }\r\n\r\n .button-tertiary[disabled] {\r\n color: var(--secondary-color-60);\r\n cursor: default;\r\n }\r\n\r\n /* Round */\r\n .button-round {\r\n width: 48px;\r\n height: 48px;\r\n border-radius: 50%;\r\n background-color: var(--white);\r\n box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);\r\n padding: 0;\r\n }\r\n\r\n .button-round:not([disabled]):hover {\r\n background-color: var(--randstad-blue-10);\r\n }\r\n\r\n .button-round:not([disabled]):active {\r\n background-color: var(--randstad-blue-40);\r\n }\r\n\r\n .button-round:not([disabled]):focus-visible {\r\n outline: 2px solid var(--primary-color);\r\n outline-offset: 2px;\r\n }\r\n\r\n .button-round[disabled] {\r\n background-color: var(--secondary-color-20);\r\n cursor: default;\r\n }\r\n \r\n .button-icon-img {\r\n width: 24px;\r\n height: 24px;\r\n object-fit: contain;\r\n }\r\n\r\n .button-round img.button-icon {\r\n width: 24px;\r\n height: 24px;\r\n }\r\n\r\n /* Button Icon */\r\n .button-icon {\r\n background: none;\r\n border: none;\r\n color: var(--primary-color);\r\n padding: 4px;\r\n }\r\n\r\n .button-icon:not([disabled]):hover {\r\n background: var(--primary-color-5);\r\n }\r\n\r\n .button-icon:not([disabled]):active {\r\n background-color: var(--primary-color-10);\r\n }\r\n\r\n .button-icon:not([disabled]):focus-visible {\r\n outline: 2px solid var(--primary-color);\r\n outline-offset: 2px;\r\n }\r\n\r\n .button-icon[disabled] {\r\n color: var(--secondary-color-60);\r\n cursor: default;\r\n }\r\n \r\n /* Loader */\r\n .loader, .label-text, .button-icon {\r\n line-height: 1; \r\n }\r\n \r\n .loader {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n gap: 8px;\r\n }\r\n\r\n .dot {\r\n border-radius: 50%;\r\n display: inline-block;\r\n animation: growAndFade 2.4s infinite ease-in-out;\r\n }\r\n\r\n .button-md .dot {\r\n width: 6px;\r\n height: 6px;\r\n }\r\n\r\n .button-lg .dot {\r\n width: 8px;\r\n height: 8px;\r\n }\r\n\r\n .dot:nth-child(1) { animation-delay: 0s; }\r\n .dot:nth-child(2) { animation-delay: 0.8s; }\r\n .dot:nth-child(3) { animation-delay: 1.6s; }\r\n\r\n @keyframes growAndFade {\r\n 0% { transform: scale(1); }\r\n 16.67% { transform: scale(1.5); }\r\n 33.33% { transform: scale(1.5); }\r\n 50% { transform: scale(1); }\r\n 100% { transform: scale(1); }\r\n }\r\n\r\n .button-primary.loader .dot,\r\n .button-secondary.loader .dot {\r\n background-color: var(--white);\r\n }\r\n\r\n .button-secondary.loader {\r\n background-color: var(--primary-color);\r\n border: none;\r\n color: var(--white);\r\n }\r\n\r\n /* Estilos de sobrescritura para el estado de carga */\r\n .button-primary.loader[disabled] {\r\n background-color: var(--primary-color) !important;\r\n color: var(--white) !important;\r\n }\r\n\r\n .button-secondary.loader[disabled] {\r\n background-color: var(--primary-color) !important;\r\n border-color: var(--primary-color) !important;\r\n color: var(--white) !important;\r\n }\r\n\r\n .button-tertiary.loader[disabled] {\r\n color: var(--primary-color) !important;\r\n background-color: transparent !important;\r\n }\r\n\r\n .button-round.loader[disabled] {\r\n background-color: var(--white) !important;\r\n }\r\n\r\n .button-icon.loader[disabled] {\r\n color: var(--primary-color) !important;\r\n background-color: transparent !important;\r\n }\r\n /* */ \r\n\r\n .button-card {\r\n font-family: 'Graphik';\r\n background-color: var(--primary-color);\r\n color: var(--white);\r\n border-radius: 4px;\r\n padding: 4px 16px;\r\n font-weight: 400;\r\n font-size: 12px;\r\n line-height: 15px;\r\n letter-spacing: 0%;\r\n text-align: center;\r\n vertical-align: middle;\r\n\r\n }\r\n\r\n .button-card:not([disabled]):hover {\r\n background-color: #175197;\r\n }\r\n\r\n .button-card:not([disabled]):active {\r\n background-color: #124077;\r\n }\r\n\r\n .button-card:not([disabled]):focus-visible {\r\n outline: 2px solid var(--primary-color);\r\n outline-offset: 2px;\r\n }\r\n\r\n .button-card[disabled] {\r\n background-color: #CFD1D9;\r\n color: #6F758D;\r\n cursor: default;\r\n }\r\n `;\r\n\r\n private handleClick(event: Event) {\r\n if (this.disabled) return;\r\n\r\n if (this.type === 'submit') {\r\n const form = this.closest('form');\r\n if (form) form.requestSubmit();\r\n } else if( this.type === 'reset'){\r\n const form = this.closest('form');\r\n if (form) form.reset();\r\n } else if(this.idevent){\r\n const result = this.dispatchEvent(new CustomEvent('randstad-button-click',{detail:this.idevent,composed:true, bubbles: true, cancelable: false}))\r\n }\r\n }\r\n\r\n public render() {\r\n const classes = {\r\n button: true,\r\n [this.variant]: true,\r\n loader: this.loader,\r\n [`button-${this.size}`]: ['button-primary', 'button-secondary', 'button-tertiary', 'button-danger'].includes(this.variant) || this.size === 'sm'\r\n };\r\n \r\n const dotColor = this.variant === 'button-tertiary' ? 'var(--primary-color)' : 'white';\r\n\r\n const iconTemplate = html`\r\n ${this.iconSrc \r\n ? html`<img src=${this.iconSrc} alt=\"icon\" class=\"button-icon-img\" part=\"button-icon\"/>` \r\n : ''}\r\n ${this.iconName \r\n ? html`<randstad-icon name=${this.iconName} size=\"24px\"></randstad-icon>` \r\n : ''}\r\n `;\r\n \r\n return html`\r\n <button\r\n part=\"button\"\r\n type=${this.type}\r\n class=${classMap(classes)}\r\n ?disabled=${this.disabled || this.loader}\r\n ?aria-busy=${this.loader}\r\n @click=${this.handleClick}\r\n >\r\n <div class=\"content-container\">\r\n ${this.loader\r\n ? html`\r\n <div class=\"loader\">\r\n <span class=\"dot\" style=\"background-color: ${dotColor};\"></span>\r\n <span class=\"dot\" style=\"background-color: ${dotColor};\"></span>\r\n <span class=\"dot\" style=\"background-color: ${dotColor};\"></span>\r\n </div>`\r\n : html`\r\n ${this.iconPosition === 'left' ? iconTemplate : ''}\r\n \r\n ${this.label ? html`<span class=\"label-text\" part=\"label\">${this.label}</span>` : html`<slot></slot>`}\r\n \r\n ${this.iconPosition === 'right' ? iconTemplate : ''}\r\n `\r\n }\r\n </div>\r\n </button>\r\n `;\r\n }\r\n}","import { LitElement, html, css } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\nimport { bodyS, bodyL } from '../styles/fontStyles';\r\n\r\n@customElement('carousel-card')\r\nexport class CarouselCard extends LitElement {\r\n @property({ type: String }) img = '';\r\n @property({ type: String }) name = '';\r\n @property({ type: String }) title = '';\r\n @property({ type: String }) description = '';\r\n @property({ type: String }) buttonLabel = '';\r\n @property({ type: String }) cardId = '';\r\n\r\n @property({ type: Object }) onClick: any;\r\n\r\n  @property({ type: String }) width: string = ''; \r\n  @property({ type: String }) height: string = ''; \r\n\r\n static styles = css`\r\n :host {\r\n display: inline-block;\r\n font-family: \"Graphik\", sans-serif;\r\n user-drag: none; /* Añade esta línea para deshabilitar el arrastre */\r\n -webkit-user-drag: none; /* Para navegadores Webkit */\r\n }\r\n\r\n .image-container {\r\n position: relative;\r\n border-radius: 8px;\r\n overflow: hidden;\r\n background-size: cover;\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n display: flex;\r\n align-items: flex-end;\r\n }\r\n\r\n .overlay-gradient,\r\n .overlay-hover {\r\n position: absolute;\r\n inset: 0;\r\n border-radius: 8px;\r\n transition: opacity 1s ease;\r\n z-index: 0;\r\n pointer-events: none;\r\n }\r\n\r\n .overlay-gradient {\r\n background: linear-gradient(180deg, rgba(15, 25, 65, 0) 0%, rgba(15, 25, 65, 0.279522) 48.01%, rgba(15, 25, 65, 0.6) 80.13%, rgba(15, 25, 65, 0.6) 100%);\r\n opacity: 1;\r\n }\r\n\r\n .overlay-hover {\r\n background: #0F1941CC;\r\n opacity: 0;\r\n }\r\n\r\n .image-container:hover .overlay-hover {\r\n opacity: 1;\r\n }\r\n\r\n .content-container {\r\n position: relative;\r\n z-index: 1;\r\n color: #FFFFFF;\r\n padding: 24px;\r\n box-sizing: border-box;\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n padding: 24px;\r\n }\r\n\r\n .image-container:hover .content-container {\r\n gap: 24px;\r\n }\r\n\r\n .title-wrapper {\r\n margin-bottom: 0; /* reset, por si acaso */\r\n }\r\n\r\n .title {\r\n ${ bodyL }\r\n margin: 0;\r\n }\r\n\r\n .details {\r\n max-height: 0;\r\n overflow: hidden;\r\n opacity: 0;\r\n transform: translateY(40px);\r\n transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;\r\n transition-duration: .5s;\r\n }\r\n\r\n .image-container:hover .details {\r\n max-height: 240px;\r\n opacity: 1;\r\n transform: translateY(0);\r\n overflow: visible;\r\n transition-duration: .8s;\r\n }\r\n\r\n .description {\r\n ${ bodyS }\r\n margin: 0;\r\n }\r\n\r\n ::part(button) {\r\n color: white;\r\n border: 1px solid white;\r\n background: transparent;\r\n text-align: left;\r\n margin-top: 24px;\r\n }\r\n\r\n ::part(button):hover {\r\n background-color: rgba( 255, 255, 255, 0.1 );\r\n }\r\n\r\n ::part(button):active {\r\n background-color: rgba( 255, 255, 255, 0.2 );\r\n } \r\n `;\r\n\r\n private handleButtonClick( event: CustomEvent ) {\r\n event.stopPropagation();\r\n\r\n if ( this.onClick ) \r\n this.onClick( event );\r\n \r\n else\r\n this.dispatchEvent( new CustomEvent( 'card-button-click', {\r\n detail: event.detail,\r\n bubbles: true,\r\n composed: true\r\n }));\r\n }\r\n\r\n // Agregamos el listener en el connectedCallback\r\n public connectedCallback() {\r\n super.connectedCallback();\r\n this.addEventListener( 'randstad-button-click', this.handleButtonClick as EventListener );\r\n }\r\n\r\n // Y lo removemos en el disconnectedCallback\r\n public disconnectedCallback() {\r\n super.disconnectedCallback();\r\n this.removeEventListener( 'randstad-button-click', this.handleButtonClick as EventListener );\r\n }\r\n\r\n public render() {\r\n const backgroundImageStyle: string = ` background-image: url( ${ this.img } ); `;\r\n \r\n const cardWidthStyle: string = this.width ? `width: ${ this.width };` : '';\r\n    const sizeStyle: string = `${ cardWidthStyle } height: ${ this.height ?? '390px' };`;\r\n\r\n    const combinedStyle: string = `${ sizeStyle } ${ backgroundImageStyle }`;\r\n\r\n return html`\r\n <div class=\"image-container\" style=\"${ combinedStyle };\">\r\n <div class=\"overlay-gradient\"></div>\r\n\r\n <div class=\"overlay-hover\"></div>\r\n\r\n <div class=\"content-container\">\r\n <div class=\"title-wrapper\">\r\n <h3 class=\"title\">${ this.name }</h3>\r\n </div>\r\n\r\n <div class=\"details\">\r\n <p class=\"description\">${ this.description }</p>\r\n\r\n ${ this.cardId ?\r\n html`\r\n <randstad-button\r\n variant=\"button-tertiary\"\r\n .label=${ this.buttonLabel }\r\n idevent=${ this.cardId }\r\n @randstad-button-click=${ this.handleButtonClick }\r\n >\r\n </randstad-button>`\r\n\r\n : html`\r\n <randstad-button\r\n variant=\"button-tertiary\"\r\n .label=${ this.buttonLabel }\r\n @randstad-button-click=${ this.handleButtonClick }\r\n >\r\n </randstad-button>\r\n `\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n `;\r\n }\r\n}","import { LitElement, html, css } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\nimport { bodyS } from '../styles/fontStyles';\r\n\r\n@customElement('randstad-checkbox')\r\nexport class Checkbox extends LitElement {\r\n @property({ type: Boolean, reflect: true }) checked = false;\r\n @property({ type: Boolean }) error = false;\r\n @property({ type: Boolean }) disabled = false;\r\n @property({ type: String }) checkedColor = 'var(--primary-color)';\r\n @property({ type: String }) checkedBgColor = 'transparent';\r\n\r\n static styles = css`\r\n :host {\r\n display: block;\r\n max-width: 100%;\r\n }\r\n\r\n label {\r\n ${bodyS}\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n color: var(--secondary-color);\r\n }\r\n\r\n input[type=\"checkbox\"] {\r\n min-width: 24px;\r\n min-height: 24px;\r\n cursor: pointer;\r\n border-radius: 4px;\r\n border: 1px solid var(--secondary-color-20);\r\n appearance: none;\r\n position: relative;\r\n background-color: var(--_initial-bg, transparent);\r\n transition: background-color 0.2s ease;\r\n }\r\n\r\n input[type=\"checkbox\"]:checked {\r\n background-color: var(--_checked-bg, var(--primary-color));\r\n border: 1px solid var(--_checked-bg, var(--primary-color));\r\n }\r\n\r\n input[type=\"checkbox\"]:checked::after {\r\n content: '';\r\n position: absolute;\r\n left: 8px;\r\n top: 4px;\r\n width: 5px;\r\n height: 11px;\r\n border: solid white;\r\n border-width: 0 1px 1px 0;\r\n transform: rotate(45deg);\r\n }\r\n\r\n input[type=\"checkbox\"]:checked:disabled::after {\r\n border-color: var(--secondary-color-40);\r\n }\r\n\r\n label.error input[type=\"checkbox\"]:checked:disabled::after {\r\n border-color: white;\r\n }\r\n\r\n .terms-text {\r\n display: inline;\r\n }\r\n\r\n .terms-text ::slotted(a) {\r\n color: var(--primary-color);\r\n text-decoration: none;\r\n cursor: pointer;\r\n }\r\n\r\n input[type=\"checkbox\"].error,\r\n label.error input[type=\"checkbox\"]:not(:disabled) {\r\n border-color: var(--ui-negative);\r\n }\r\n\r\n /* Hover sin error (solo si no está deshabilitado) */\r\n input[type=\"checkbox\"]:hover:not(:disabled):not(.error) {\r\n box-shadow: 0 0 0 4px var(--secondary-color-10);\r\n }\r\n\r\n /* Hover con error (solo si no está deshabilitado) */\r\n label.error input[type=\"checkbox\"]:hover:not(:disabled) {\r\n box-shadow: 0px 0px 0px 4px #E00F0F1A;\r\n }\r\n\r\n /* ✅ Focus sin error */\r\n input[type=\"checkbox\"]:focus-visible:not(:disabled):not(.error),\r\n label:not(.error) input[type=\"checkbox\"]:focus-visible:not(:disabled) {\r\n outline: none;\r\n box-shadow: 0 0 0 4px var(--secondary-color-10);\r\n }\r\n\r\n /* ❌ Focus con error */\r\n label.error input[type=\"checkbox\"]:focus-visible:not(:disabled) {\r\n outline: none;\r\n box-shadow: 0 0 0 4px #E00F0F1A;\r\n }\r\n\r\n input[type=\"checkbox\"].error:checked,\r\n label.error input[type=\"checkbox\"]:checked {\r\n background-color: var(--ui-negative);\r\n border-color: var(--ui-negative);\r\n }\r\n\r\n input[type=\"checkbox\"]:disabled {\r\n background-color: var(--secondary-color-10)!important;\r\n border-color: var(--secondary-color-20);\r\n color: #9FA3B3;\r\n cursor: default;\r\n }\r\n\r\n label.disabled {\r\n color: #9FA3B3;\r\n }\r\n\r\n input[type=\"checkbox\"]:focus-visible:not(:disabled):not(.error),\r\n label:not(.error) input[type=\"checkbox\"]:focus-visible:not(:disabled) {\r\n outline: none;\r\n box-shadow: 0 0 0 2px rgb( 0, 215, 255 ), 0 0 0 4px var( --secondary-color-10 );\r\n }\r\n `;\r\n\r\n private toggleCheck( event: Event ) {\r\n this.checked = ( event.target as HTMLInputElement ).checked;\r\n\r\n this.dispatchEvent( new Event( 'input', { bubbles: true, composed: true } ) );\r\n this.dispatchEvent( new Event( 'change', { bubbles: true, composed: true } ) );\r\n this.dispatchEvent( new Event( 'click', { bubbles: true, composed: true } ) );\r\n }\r\n\r\n private handleKeyDown( event: KeyboardEvent ) {\r\n if ( this.disabled ) return;\r\n const { key } = event;\r\n\r\n // Intercepta Enter y Space para activar el checkbox\r\n if ( key === 'Enter' || key === ' ' ) {\r\n event.preventDefault();\r\n this.checked = !this.checked;\r\n\r\n this.dispatchEvent( new Event( 'input', { bubbles: true, composed: true } ) );\r\n this.dispatchEvent( new Event( 'change', { bubbles: true, composed: true } ) );\r\n this.dispatchEvent( new Event( 'click', { bubbles: true, composed: true } ) );\r\n }\r\n }\r\n\r\n public render() {\r\n const inlineStyles = `\r\n --_checked-bg: ${this.checkedColor}; \r\n --_initial-bg: ${this.checkedBgColor};\r\n `;\r\n return html`\r\n <label class=\"${ this.error ? 'error' : '' } ${ this.disabled ? 'disabled' : '' }\" style=\"${inlineStyles}\">\r\n <input\r\n type=\"checkbox\"\r\n role=\"checkbox\"\r\n aria-checked=${ this.checked ? 'true' : 'false' }\r\n .checked=${ this.checked }\r\n ?disabled=${ this.disabled }\r\n @change=${ this.toggleCheck }\r\n @keydown=${ this.handleKeyDown }\r\n @focus=${ () => this.setAttribute( 'focused', '' ) }\r\n @blur=${ () => this.removeAttribute( 'focused' ) }\r\n />\r\n <span class=\"terms-text\">\r\n <slot></slot>\r\n </span>\r\n </label>\r\n `;\r\n }\r\n}","import { css, CSSResult } from 'lit';\n\nexport const tooltipStyles: CSSResult = css`\n .label-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n }\n \n .tooltip-wrapper {\n position: relative;\n display: inline-flex;\n align-items: center;\n }\n\n .tooltip {\n position: absolute;\n top: 160%;\n right: 0;\n \n background-color: var( --tooltip-background, #0F1941 );\n color: var(--tooltip-color, #fff);\n\n padding: 8px 12px;\n border-radius: 4px;\n font-size: 14px;\n line-height: 20px;\n\n width: 250px;\n max-width: 250px;\n \n z-index: 10;\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;\n }\n\n .tooltip::after {\n content: '';\n position: absolute;\n top: -6px;\n right: 4px;\n \n width: 0;\n height: 0;\n border-style: solid;\n border-width: 0 6px 6px 6px; \n border-color: transparent transparent var( --tooltip-background, #0F1941 ) transparent; \n }\n\n .tooltip-wrapper:hover .tooltip {\n visibility: visible;\n opacity: 1;\n }\n\n .tooltip-wrapper.clickable {\n cursor: pointer;\n }\n\n .tooltip-wrapper.clickable:hover .tooltip {\n visibility: hidden;\n opacity: 0;\n }\n\n .tooltip-wrapper.clickable .tooltip.active {\n visibility: visible;\n opacity: 1;\n }\n`;","import { css, CSSResult } from \"lit\";\n\nexport const focusStyles: CSSResult = css `\n .button:focus-visible, button:focus-visible {\n outline: 2px solid rgb( 0, 215, 255 );\n outline-offset: 1px;\n border-radius: 4px;\n z-index: 100;\n }\n`;","\nimport { css, CSSResult } from \"lit\";\nimport { bodyL, bodyM, bodyXS } from \"./fontStyles\";\nimport { focusStyles } from \"./focus\";\n\nexport const mixStyles: CSSResult = css `\n ${ focusStyles } \n \n :host {\n display: block;\n font-family: \"Graphik\", sans-serif;\n color: var( --secondary-randstad-dark-blue, #0f1941 );\n width: 100%;\n }\n\n .form-label {\n ${ bodyM }\n display: flex;\n align-items: baseline;\n flex-direction: row;\n gap: 4px;\n color: var( --label-color, var( --secondary-color-80 ) );\n }\n\n .input-container {\n position: relative;\n width: 100%;\n max-width: 100%;\n }\n\n input::placeholder {\n ${ bodyL }\n color: var( --secondary-color-40 );\n }\n\n .helper-description {\n ${ bodyM }\n color: var( --secondary-color-40 );\n margin: 0;\n }\n\n .required {\n color: var( --ui-negative );\n }\n\n .optional {\n color: var( --secondary-color-60 );\n ${ bodyXS }\n }\n\n randstad-icon {\n color: var( --primary-color );\n }\n`;","import { css, CSSResult } from \"lit\";\nimport { bodyM } from \"./fontStyles\";\n\nexport const errorStyles: CSSResult = css `\n :host([error]) .input-wrapper, .form.error .form-input {\n border: 1px solid var( --ui-negative, red ) !important;\n }\n\n :host([error]) .input-wrapper:hover, .form.error:hover .form-input:hover {\n box-shadow: 0px 0px 0px 4px #e00f0f1a !important;\n }\n\n :host([error]) .input-wrapper.active, .form.error.active .form-input.active {\n border: 1px solid var( --ui-negative, red ) !important;\n box-shadow: none !important;\n }\n\n .error-message {\n ${ bodyM }\n color: var(--ui-negative, #E00F0F);\n margin-top: 4px;\n }\n`;","import { css } from 'lit';\n\nexport const scrollbarStyles = css`\n ::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n\n ::-webkit-scrollbar-track {\n background: #E8E8E8;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: #7A7A7A;\n border-radius: 100px;\n }\n\n ::-webkit-scrollbar-button {\n display: none;\n }\n`;","import { html, css, nothing, TemplateResult } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\nimport { bodyM, bodyL } from '../styles/fontStyles';\r\nimport { tooltipStyles } from \"../styles/tooltip\";\r\nimport { BaseControl } from '../helpers/BaseControl';\r\nimport { mixStyles } from '../styles/mix';\r\nimport { errorStyles } from '../styles/error';\r\nimport { scrollbarStyles } from '../styles/scrollbar';\r\n\r\nconst REGEX_NO_EMOJIS = /[\\p{Extended_Pictographic}\\u{FE0F}\\u{1F3FB}-\\u{1F3FF}\\u{1F9B0}-\\u{1F9B3}\\u{200D}]/gu;\r\n\r\n@customElement('randstad-form')\r\nexport class RandstadForm extends BaseControl {\r\n //Evento post input en tiempo real durante la escritura, para validación pattern only text, only numeric, alphanumeric o custom regex.\r\n @property({ type: String }) keydown: 'number' | 'text' | 'alfanumeric' | undefined = undefined;\r\n\r\n //Expresión regex personalizada para limitar caracteres permitidos en el input.\r\n //Se aplica solo cuando keydown no es 'number', 'text' o 'alfanumeric'.\r\n @property({ type: String }) keydownRegex?: string;\r\n\r\n @property({ type: String }) size: 'sm' | 'md' | 'lg' = 'md';\r\n @property({ type: String }) icon: 'left' | 'right' | null = null;\r\n\r\n @property({ type: Boolean }) typing: boolean = false;\r\n @property({ type: String }) type: 'text' | 'password' | 'textarea' = 'text';\r\n\r\n @property({ type: String }) linkText?: string;\r\n @property({ type: String }) linkRoute?: string;\r\n\r\n @property({ type: Boolean, reflect: true }) isPasswordVisible = false;\r\n @property({ type: Boolean }) cleanButton: boolean = false;\r\n @property({ type: Number }) maxLength?: number;\r\n\r\n @property({ type: String }) heightTextArea?: string;\r\n @property({ type: String }) maxHeightTextArea?: string;\r\n\r\n static styles = [\r\n scrollbarStyles,\r\n css`\r\n ${mixStyles}\r\n ${errorStyles}\r\n ${tooltipStyles}\r\n\r\n .form {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n width: 100%;\r\n }\r\n\r\n .form-input {\r\n ${bodyL}\r\n padding: 16px;\r\n border: 1px solid var(--secondary-color-10);\r\n border-radius: 4px;\r\n outline: none;\r\n transition: border-color 0.3s ease, box-shadow 0.3s ease;\r\n width: 100%;\r\n color: var(--secondary-color);\r\n }\r\n \r\n .form-input:-webkit-autofill,\r\n .form-input:-webkit-autofill:hover,\r\n .form-input:-webkit-autofill:focus,\r\n .form-input:-webkit-autofill:active {\r\n -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;\r\n -webkit-text-fill-color: var(--secondary-color);\r\n transition: background-color 5000s ease-in-out 0s;\r\n }\r\n\r\n /* Hover normal (sin error ni foco) */\r\n .form:not(.error):not(:focus-within) .form-input:hover {\r\n box-shadow: 0px 0px 0px 4px var(--form-hover-shadow);\r\n }\r\n\r\n /* Hover con error (sin foco) */\r\n .form.error:not(:focus-within) .form-input:hover {\r\n box-shadow: 0px 0px 0px 4px var(--ui-negative-pink-shadow);\r\n }\r\n\r\n .form-input:focus {\r\n border: 2px solid var(--primary-color)\r\n }\r\n\r\n .form.disabled .form-input, \r\n .form.disabled .toggle-password randstad-icon,\r\n .form.disabled .clean-button randstad-icon {\r\n background-color: var( --secondary-color-10 );\r\n color: #9FA3B3;\r\n cursor: default;\r\n }\r\n \r\n .form.disabled .toggle-password,\r\n .form.disabled .clean-button {\r\n cursor: default;\r\n }\r\n\r\n .input-with-button {\r\n display: flex;\r\n align-items: center;\r\n width: 100%;\r\n position: relative;\r\n }\r\n\r\n .input-with-button input {\r\n width: 100%;\r\n }\r\n\r\n .input-with-button input[type=\"password\"]{\r\n padding-right: 40px;\r\n }\r\n\r\n .input-with-button button {\r\n position: absolute;\r\n right: 10px;\r\n top: 50%;\r\n transform: translateY(-50%);\r\n background: transparent;\r\n border: none;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n width: 40px;\r\n height: 40px;\r\n }\r\n\r\n .toggle-password randstad-icon {\r\n width: 100%;\r\n height: 100%;\r\n max-width: 32px;\r\n max-height: 32px;\r\n }\r\n\r\n textarea {\r\n ${bodyL}\r\n resize: none;\r\n }\r\n\r\n textarea.form-input {\r\n min-height: 30px;\r\n width: 100%;\r\n }\r\n\r\n .form.disabled textarea.form-input {\r\n background-color: var(--secondary-color-10);\r\n color: #9FA3B3;\r\n cursor: default;\r\n }\r\n \r\n .link-text {\r\n ${bodyM}\r\n color: var(--primary-color);\r\n cursor: pointer;\r\n text-align: end;\r\n text-decoration: none;\r\n vertical-align: middle;\r\n display: inline;\r\n padding: 0;\r\n margin: 0;\r\n line-height: normal;\r\n }\r\n\r\n .link-text:hover {\r\n color: var(--secondary-color);\r\n text-decoration: underline;\r\n }\r\n\r\n .clean-button {\r\n position: absolute;\r\n right: 10px;\r\n top: 50%;\r\n transform: translateY(-50%);\r\n background: transparent;\r\n border: none;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n width: 40px;\r\n height: 40px;\r\n }\r\n\r\n .clean-button randstad-icon {\r\n width: 24px;\r\n height: 24px;\r\n color: var( --primary-color );\r\n }\r\n `\r\n ];\r\n\r\n private togglePassword(event: Event) {\r\n this.isPasswordVisible = !this.isPasswordVisible;\r\n\r\n const input: HTMLInputElement | null | undefined = (event.currentTarget as HTMLElement).parentElement?.querySelector('input');\r\n if (input) input.type = this.isPasswordVisible ? 'text' : 'password';\r\n\r\n this.requestUpdate();\r\n }\r\n\r\n private handleInput(event: Event) {\r\n this.handleInputCustom(event);\r\n\r\n const target: HTMLInputElement | HTMLTextAreaElement = event.target as HTMLInputElement | HTMLTextAreaElement;\r\n const newValue: string = target.value;\r\n\r\n if (this.maxLength !== undefined && this.type !== 'textarea') this.value = newValue.slice(0, this.maxLength);\r\n else this.value = newValue;\r\n\r\n this.dispatchEvent(new CustomEvent('valueChanged', { detail: this.value }));\r\n this.dispatchEvent(new Event('input', { bubbles: true }));\r\n\r\n this.requestUpdate();\r\n }\r\n\r\n private handleClear() {\r\n this.value = '';\r\n\r\n this.dispatchEvent(new CustomEvent('valueChanged', { detail: this.value }));\r\n this.dispatchEvent(new Event('input', { bubbles: true }));\r\n\r\n this.requestUpdate();\r\n }\r\n\r\n private handleLinkClick(event: Event) {\r\n event.preventDefault();\r\n if (!this.linkRoute) return;\r\n\r\n this.dispatchEvent(\r\n new CustomEvent('linkClicked', {\r\n detail: this.linkRoute,\r\n bubbles: true,\r\n composed: true,\r\n })\r\n );\r\n }\r\n\r\n private _updateValueWithCursor(inputElement: HTMLInputElement, newValue: string, event: Event) {\r\n const currentValue = inputElement.value;\r\n \r\n if (currentValue !== newValue) {\r\n event.preventDefault();\r\n \r\n // Guardamos la posición actual del cursor\r\n const start = inputElement.selectionStart;\r\n const end = inputElement.selectionEnd;\r\n\r\n // Actualizamos el valor en el input\r\n inputElement.value = newValue;\r\n\r\n // Restauramos el cursor compensando la diferencia de longitud\r\n if (start !== null && end !== null) {\r\n const diff = currentValue.length - newValue.length;\r\n const newStart = Math.max(0, start - diff);\r\n const newEnd = Math.max(0, end - diff);\r\n inputElement.setSelectionRange(newStart, newEnd);\r\n }\r\n }\r\n }\r\n\r\n public handleInputCustom(event: Event) {\r\n const inputElement: HTMLInputElement = event.target as HTMLInputElement;\r\n\r\n // lógica condicional para aplicar el filtro de Emojis\r\n let shouldFilterEmojis = false;\r\n\r\n if (this.keydown === 'number' || this.keydown === 'text' || this.keydown === 'alfanumeric') {\r\n shouldFilterEmojis = true;\r\n } else if (this.keydownRegex) {\r\n try {\r\n // Evaluamos si el regex permite emojis.\r\n const allowsEmoji = new RegExp(this.keydownRegex).test('😀');\r\n shouldFilterEmojis = !allowsEmoji;\r\n } catch (e) {\r\n shouldFilterEmojis = true; \r\n }\r\n }\r\n\r\n if (shouldFilterEmojis) {\r\n const valueWithoutEmojis = inputElement.value.replace(REGEX_NO_EMOJIS, '');\r\n this._updateValueWithCursor(inputElement, valueWithoutEmojis, event);\r\n }\r\n \r\n if (this.keydown === 'number') this.onlyNumeric(event);\r\n else if (this.keydown === 'text') this.onlyText(event);\r\n else if (this.keydown === 'alfanumeric') this.onlyAlphanumeric(event);\r\n else if (this.keydownRegex) this.onlyRegex(event);\r\n }\r\n\r\n public onlyNumeric(event: Event) {\r\n const inputElement: HTMLInputElement = event.target as HTMLInputElement;\r\n\r\n // Solo permite dígitos (0-9)\r\n const sanitizedValue: string = inputElement.value.replace(/[^0-9]/g, '');\r\n\r\n // Actualiza el valor del input con el valor limpio\r\n this._updateValueWithCursor(inputElement, sanitizedValue, event);\r\n }\r\n\r\n public onlyText(event: Event) {\r\n const inputElement: HTMLInputElement = event.target as HTMLInputElement;\r\n const sanitizedValue: string = inputElement.value.replace(/[^a-zA-Z\\sáéíóúüñÁÉÍÓÚÑÜ]/g, '');\r\n const trimmedValue: string = sanitizedValue.trimStart();\r\n\r\n this._updateValueWithCursor(inputElement, trimmedValue, event);\r\n }\r\n\r\n public onlyAlphanumeric(event: Event) {\r\n const inputElement: HTMLInputElement = event.target as HTMLInputElement;\r\n const sanitizedValue: string = inputElement.value.replace(/[^a-zA-Z0-9]/g, '');\r\n const trimmedValue: string = sanitizedValue.trimStart();\r\n \r\n this._updateValueWithCursor(inputElement, trimmedValue, event);\r\n }\r\n\r\n public onlyRegex(event: Event) {\r\n if (!this.keydownRegex) return;\r\n const inputElement: HTMLInputElement = event.target as HTMLInputElement;\r\n const currentValue: string = inputElement.value;\r\n\r\n // 1. Extraer bloques de corchetes (ej: [a-z], [^0-9]). \r\n // Si no hay corchetes, envolvemos el string recibido.\r\n let groups = this.keydownRegex.match(/\\[\\^?[^\\]]+\\]/g);\r\n if (!groups) {\r\n groups = [`[${this.keydownRegex}]`];\r\n }\r\n\r\n let sanitizedValue = '';\r\n const isComposite = groups.length >= 2;\r\n const firstGroup = new RegExp(groups[0]);\r\n const secondGroup = isComposite ? new RegExp(groups[1]) : firstGroup;\r\n\r\n // 2. Procesar carácter por carácter según su posición\r\n const chars = currentValue.split('');\r\n for (let i = 0; i < chars.length; i++) {\r\n const char = chars[i];\r\n if (i === 0) {\r\n if (firstGroup.test(char)) sanitizedValue += char;\r\n } else {\r\n if (secondGroup.test(char)) sanitizedValue += char;\r\n }\r\n }\r\n\r\n // 3. Aplicar trim inicial y actualizar el DOM\r\n const trimmedValue: string = sanitizedValue.trimStart();\r\n this._updateValueWithCursor(inputElement, trimmedValue, event);\r\n }\r\n \r\n private handleInputKeyDown(event: KeyboardEvent) {\r\n // 1. Maneja la lógica de Enter para enviar el formulario\r\n this.handleKeyDown(event);\r\n\r\n // 2. Maneja el movimiento con flechas (accesibilidad)\r\n this.handleInputArrowKey(event);\r\n }\r\n\r\n /**\r\n * Calcula si el botón de limpieza (X) debe estar visible\r\n */\r\n private get _isCleanButtonVisible(): boolean {\r\n return (\r\n this.cleanButton &&\r\n !!this.value &&\r\n this.type !== 'password' &&\r\n this.type !== 'textarea'\r\n );\r\n }\r\n\r\n private handleKeyDown(event: KeyboardEvent) {\r\n if (event.key !== 'Enter') return;\r\n\r\n const submitEvent = new Event('submit', {\r\n bubbles: true,\r\n composed: true,\r\n cancelable: true,\r\n });\r\n\r\n const form: HTMLFormElement | null = this.closest('form');\r\n if (form) form.dispatchEvent(submitEvent);\r\n }\r\n\r\n\r\n private get _inputMode(): string {\r\n if (this.type === 'password') return 'text';\r\n if (this.keydown === 'number') return 'numeric';\r\n return 'text';\r\n }\r\n\r\n private handleInputArrowKey(event: KeyboardEvent) {\r\n if (event.key !== 'ArrowRight') return;\r\n const inputElement: HTMLInputElement | null = event.target as HTMLInputElement;\r\n\r\n const isActionVisible: boolean = this.type === 'password' || this._isCleanButtonVisible;\r\n if (!isActionVisible) return;\r\n\r\n // Verificamos si el cursor está al final del texto\r\n if (inputElement.selectionStart === inputElement.value.length) {\r\n event.preventDefault();\r\n\r\n // Buscamos el botón adyacente (toggle-password o clean-button)\r\n const button: HTMLButtonElement | null = this.shadowRoot?.querySelector('.toggle-password, .clean-button') as HTMLButtonElement;\r\n button?.focus();\r\n }\r\n }\r\n\r\n // Nuevo método para manejar la flecha Izquierda en el botón\r\n private handleButtonArrowKey(event: KeyboardEvent) {\r\n if (event.key !== 'ArrowLeft') return;\r\n event.preventDefault();\r\n\r\n // Buscamos el input\r\n const inputElement: HTMLInputElement | null = this.shadowRoot?.querySelector('.form-input') as HTMLInputElement;\r\n if (!inputElement) return;\r\n\r\n inputElement.focus();\r\n\r\n // Movemos el cursor al final del texto\r\n inputElement.selectionStart = inputElement.selectionEnd = inputElement.value.length;\r\n\r\n }\r\n\r\n public render() {\r\n const textareaInlineStyles: string = this.type === 'textarea'\r\n ? ` height: ${this.heightTextArea ?? '30px'}; max-height: ${this.maxHeightTextArea ?? '30px'}; overflow-y: auto; `\r\n : ''\r\n ;\r\n\r\n const formStyles: string = this.labelColor ? `--label-color: ${this.labelColor};` : '';\r\n\r\n const iconTemplate: TemplateResult = html`\r\n <randstad-icon\r\n name=\"${this.isPasswordVisible ? 'eye_crossed' : 'eye'}\"\r\n size=\"24px\"\r\n >\r\n </randstad-icon>\r\n `;\r\n\r\n return html`\r\n <div\r\n class=\"form ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}\"\r\n style=\"${formStyles}\"\r\n >\r\n ${this.renderLabelContainer()}\r\n\r\n <div class=\"form-container\">\r\n ${this.icon === 'left'\r\n ? html`<span class=\"icon left\"></span>`\r\n : nothing\r\n }\r\n\r\n <div class=\"input-with-button\">\r\n ${this.type === 'textarea'\r\n ? html`\r\n <textarea\r\n class=\"form-input\"\r\n placeholder=${this.placeholder || ''}\r\n .value=${this.value}\r\n ?disabled=${this.disabled}\r\n @input=${this.handleInput}\r\n @keydown=${this.handleKeyDown}\r\n maxlength=${this.maxLength ?? nothing}\r\n style=\"${textareaInlineStyles}\"\r\n >\r\n </textarea>\r\n `\r\n : html`\r\n <input\r\n class=\"form-input\"\r\n type=${this.type === 'password' && !this.isPasswordVisible ? 'password' : 'text'}\r\n placeholder=${this.placeholder || ''}\r\n .value=${this.value}\r\n ?disabled=${this.disabled}\r\n @input=${this.handleInput}\r\n maxlength=${this.maxLength ?? nothing}\r\n @keydown=${this.handleInputKeyDown}\r\n inputmode=${this._inputMode}\r\n />\r\n\r\n ${this.type === 'password'\r\n ? html`\r\n <button\r\n type=\"button\"\r\n class=\"toggle-password\"\r\n @click=${this.togglePassword}\r\n ?disabled=${this.disabled}\r\n @keydown=${this.handleButtonArrowKey}\r\n aria-label=\"${this.isPasswordVisible ? 'Hide password' : 'Show password'}\"\r\n >\r\n ${iconTemplate}\r\n </button>`\r\n : nothing\r\n }\r\n\r\n ${this._isCleanButtonVisible\r\n ? html`\r\n <button\r\n type=\"button\"\r\n class=\"clean-button\"\r\n @click=${this.handleClear}\r\n ?disabled=${this.disabled}\r\n @keydown=${this.handleButtonArrowKey}\r\n aria-label=\"Clear input\"\r\n >\r\n <randstad-icon \r\n name=\"close\" \r\n size=\"24px\"\r\n >\r\n </randstad-icon>\r\n </button>`\r\n : nothing\r\n }\r\n `}\r\n </div>\r\n\r\n ${this.icon === 'right'\r\n ? html`<span class=\"icon right\"></span>`\r\n : nothing\r\n }\r\n\r\n ${this.renderError()}\r\n </div>\r\n\r\n\r\n ${this.linkText && this.linkRoute\r\n ? html`\r\n <div style=\"text-align: end;\">\r\n <a class=\"link-text\" @click=${this.handleLinkClick}>\r\n ${this.linkText}\r\n </a>\r\n </div>`\r\n : nothing\r\n }\r\n\r\n ${this.renderHelper()} \r\n </div>\r\n `;\r\n }\r\n}","import { html, css } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\nimport { BaseControl } from '../helpers/BaseControl';\r\nimport { mixStyles } from '../styles/mix';\r\nimport { errorStyles } from '../styles/error';\r\nimport { tooltipStyles } from '../styles/tooltip';\r\n\r\n@customElement('randstad-form-group')\r\nexport class FormGroup extends BaseControl {\r\n // Coloca las field en formato grilla, según el valor suminstrado\r\n @property({ type: String }) rows: string = '';\r\n\r\n static styles = css`\r\n ${ mixStyles }\r\n ${ errorStyles }\r\n ${ tooltipStyles }\r\n \r\n :host {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n }\r\n\r\n .group-container {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n width: 100%;\r\n }\r\n\r\n .fields {\r\n gap: 8px;\r\n }\r\n `;\r\n\r\n public render() {\r\n const fieldsInlineStyles: string = this.rows ? `display: grid; grid-template-columns: ${this.rows};` : 'display: flex; flex-direction: column;';\r\n\r\n return html`\r\n <div class=\"group-container\">\r\n ${ this.renderLabelContainer() }\r\n\r\n <div class=\"input-container\">\r\n <div class=\"fields\" style=\"${ fieldsInlineStyles };\">\r\n <slot></slot>\r\n </div>\r\n\r\n ${ this.renderError() }\r\n </div>\r\n\r\n ${ this.renderHelper() }\r\n </div>\r\n `;\r\n }\r\n}","export interface IconMap {\n [key: string]: string;\n}\n\nexport const ICONS: IconMap = {\n \"arrow_back\": `<svg width=\"24\" height=\"25\" viewBox=\"0 0 24 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_3095_5899)\">\n<path d=\"M21.475 12.2H3.725L8.575 7.35C8.775 7.15 8.775 6.85 8.575 6.65C8.375 6.45 8.075 6.45 7.875 6.65L2.15 12.35C1.95 12.55 1.95 12.85 2.15 13.05L7.8 18.7C7.9 18.8 8.025 18.85 8.15 18.85C8.275 18.85 8.4 18.8 8.5 18.7C8.7 18.5 8.7 18.2 8.5 18L3.725 13.2H21.5C21.775 13.2 22 12.975 22 12.7C22 12.425 21.75 12.2 21.475 12.2Z\" fill=\"#2175D9\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_3095_5899\">\n<rect width=\"24\" height=\"24\" fill=\"white\" transform=\"translate(0 0.5)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"arrow_down\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M20 8.5C20 8.8 19.9 9 19.7 9.2L12.7 16.2C12.3 16.6 11.7 16.6 11.3 16.2L4.3 9.2C3.9 8.8 3.9 8.2 4.3 7.8C4.7 7.4 5.3 7.4 5.7 7.8L12 14.1L18.3 7.8C18.7 7.4 19.3 7.4 19.7 7.8C19.9 8 20 8.2 20 8.5Z\" fill=\"currentColor\"/>\n</svg>`,\n \"arrow_drop_down\": `<svg width=\"18\" height=\"19\" viewBox=\"0 0 18 19\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M9 11.75L5.25 8H12.75L9 11.75Z\" fill=\"#2175D9\"/>\n</svg>`,\n \"arrow_drop_up\": `<svg width=\"18\" height=\"19\" viewBox=\"0 0 18 19\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M9 8L5.25 11.75H12.75L9 8Z\" fill=\"#2175D9\"/>\n</svg>`,\n \"arrow_left\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M15 20C14.744 20 14.488 19.902 14.293 19.707L7.293 12.707C6.902 12.316 6.902 11.684 7.293 11.293L14.293 4.29301C14.684 3.90201 15.316 3.90201 15.707 4.29301C16.098 4.68401 16.098 5.31601 15.707 5.70701L9.414 12L15.707 18.293C16.098 18.684 16.098 19.316 15.707 19.707C15.512 19.902 15.256 20 15 20Z\" fill=\"#2175D9\"/>\n</svg>`,\n \"arrow_next\": `<svg width=\"28\" height=\"17\" viewBox=\"0 0 28 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M18.645 0.692567C18.3776 0.959902 18.3776 1.3609 18.645 1.62824L25.061 8.04428L1.33502 8.04428C0.967439 8.04428 0.666687 8.34503 0.666687 8.71262C0.666687 9.0802 0.967439 9.38095 1.33502 9.38095L25.0944 9.38095L18.5781 15.8638C18.3108 16.1312 18.3108 16.5322 18.5781 16.7995C18.8455 17.0668 19.2465 17.0668 19.5138 16.7995L27.1329 9.18045C27.2665 9.04678 27.3334 8.8797 27.3334 8.71262C27.3334 8.54553 27.2665 8.37845 27.1329 8.24478L19.5806 0.692567C19.3467 0.425232 18.9123 0.425232 18.645 0.692567Z\" fill=\"white\"/>\n</svg>`,\n \"arrow_prev\": `<svg width=\"28\" height=\"17\" viewBox=\"0 0 28 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M26.6334 7.6H2.96669L9.43335 1.13333C9.70002 0.866666 9.70002 0.466667 9.43335 0.2C9.16669 -0.0666667 8.76669 -0.0666667 8.50002 0.2L0.866687 7.8C0.60002 8.06667 0.60002 8.46667 0.866687 8.73333L8.40002 16.2667C8.53335 16.4 8.70002 16.4667 8.86669 16.4667C9.03335 16.4667 9.20002 16.4 9.33335 16.2667C9.60002 16 9.60002 15.6 9.33335 15.3333L2.96669 8.93333H26.6667C27.0334 8.93333 27.3334 8.63333 27.3334 8.26667C27.3334 7.9 27 7.6 26.6334 7.6Z\" fill=\"white\"/>\n</svg>`,\n \"arrow_right\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M9.00001 4C9.25601 4 9.51201 4.098 9.70701 4.293L16.707 11.293C17.098 11.684 17.098 12.316 16.707 12.707L9.70701 19.707C9.31601 20.098 8.68401 20.098 8.29301 19.707C7.90201 19.316 7.90201 18.684 8.29301 18.293L14.586 12L8.29301 5.707C7.90201 5.316 7.90201 4.684 8.29301 4.293C8.48801 4.098 8.74401 4 9.00001 4Z\" fill=\"#2175D9\"/>\n</svg>`,\n \"arrow_up\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M4 15.0002C4 14.7442 4.098 14.4883 4.293 14.2933L11.293 7.29325C11.684 6.90225 12.316 6.90225 12.707 7.29325L19.707 14.2933C20.098 14.6842 20.098 15.3162 19.707 15.7072C19.316 16.0982 18.684 16.0982 18.293 15.7072L12 9.41425L5.707 15.7072C5.316 16.0982 4.684 16.0982 4.293 15.7072C4.098 15.5122 4 15.2562 4 15.0002Z\" fill=\"currentColor\"/>\n</svg>`,\n \"ayuda\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2313_3705)\">\n<path d=\"M12.4496 6.01244C10.3196 6.01244 8.56549 7.74151 8.56549 9.89658C8.56549 10.1722 8.79102 10.3978 9.06667 10.3978C9.34232 10.3978 9.56785 10.1722 9.56785 9.89658C9.56785 8.31787 10.8459 7.0148 12.4496 7.0148C14.0534 7.0148 15.3314 8.29281 15.3314 9.89658C15.3314 11.5004 14.0534 12.7784 12.4496 12.7784C12.174 12.7784 11.9485 13.0039 11.9485 13.2796V14.6578C11.9485 14.9334 12.174 15.159 12.4496 15.159C12.7253 15.159 12.9508 14.9334 12.9508 14.6578V13.7557C14.8553 13.5051 16.3338 11.8762 16.3338 9.92164C16.3338 7.76657 14.5797 6.01244 12.4496 6.01244Z\" />\n<path d=\"M12.4245 16.2113C11.9985 16.2113 11.6477 16.5622 11.6477 16.9882C11.6477 17.4142 11.9985 17.765 12.4245 17.765C12.8505 17.765 13.2014 17.4142 13.2014 16.9882C13.2014 16.5622 12.8505 16.2113 12.4245 16.2113Z\" />\n<path d=\"M13.6775 2.07808C11.1214 1.75231 8.59048 2.45396 6.58576 4.03268C4.58104 5.63646 3.32809 7.91683 3.05244 10.4728C2.75173 13.3546 3.75409 16.1362 5.80893 18.1409V20.722C5.80893 21.1731 6.05952 21.5991 6.4354 21.8246C6.63588 21.9499 6.86141 22 7.08694 22C7.31247 22 7.51294 21.9499 7.71342 21.8246L9.94367 20.5466C10.4448 20.6719 10.946 20.7721 11.4723 20.8222C14.1035 21.0979 16.7096 20.2709 18.6893 18.5419C20.694 16.7877 21.8216 14.357 21.8968 11.7007C22.0472 6.91447 18.4387 2.6795 13.6775 2.07808ZM20.8945 11.6757C20.8193 14.0563 19.7919 16.2364 18.0127 17.7901C16.2585 19.3187 13.903 20.0705 11.5976 19.8449C11.0713 19.7948 10.5451 19.6946 10.0439 19.5442C9.91861 19.4941 9.76825 19.5192 9.66802 19.5943L7.23729 20.9726C7.112 21.0478 7.01176 20.9976 6.96164 20.9726C6.91153 20.9475 6.81129 20.8723 6.81129 20.722V18.0156C6.83635 17.8402 6.78623 17.6648 6.66094 17.5646C4.73139 15.7603 3.77915 13.2043 4.0548 10.5731C4.28033 8.29271 5.40799 6.23788 7.21223 4.80951C9.01648 3.38115 11.2718 2.75467 13.5522 3.05538C17.7871 3.60668 21.0198 7.39059 20.8945 11.6757Z\" />\n</g>\n<defs>\n<clipPath id=\"clip0_2313_3705\">\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"calendar\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2335_4813)\">\n<path d=\"M19.975 3.125H16.975V2.5C16.975 2.225 16.75 2 16.475 2C16.2 2 15.975 2.225 15.975 2.5V3.125H7.975V2.5C7.975 2.225 7.75 2 7.475 2C7.2 2 6.975 2.225 6.975 2.5V3.125H4.025C2.925 3.125 2 4.025 2 5.15V19.925C2 21.025 2.9 21.95 4.025 21.95H19.975C21.075 21.95 22 21.05 22 19.925V5.125C22 4.025 21.1 3.125 19.975 3.125ZM4.025 4.15H6.95V4.8C6.95 5.075 7.175 5.3 7.45 5.3C7.725 5.3 7.95 5.075 7.95 4.8V4.15H15.925V4.8C15.925 5.075 16.15 5.3 16.425 5.3C16.7 5.3 16.925 5.075 16.925 4.8V4.15H19.95C20.5 4.15 20.95 4.6 20.95 5.15V7.95H3.025V5.125C3.025 4.575 3.475 4.15 4.025 4.15ZM19.975 20.9H4.025C3.475 20.9 3.025 20.45 3.025 19.9V8.975H20.975V19.9C20.975 20.45 20.525 20.9 19.975 20.9Z\" />\n<path d=\"M7.45001 12.575C7.86423 12.575 8.20001 12.2392 8.20001 11.825C8.20001 11.4108 7.86423 11.075 7.45001 11.075C7.0358 11.075 6.70001 11.4108 6.70001 11.825C6.70001 12.2392 7.0358 12.575 7.45001 12.575Z\" />\n<path d=\"M10.4499 12.575C10.8641 12.575 11.1999 12.2392 11.1999 11.825C11.1999 11.4108 10.8641 11.075 10.4499 11.075C10.0357 11.075 9.69989 11.4108 9.69989 11.825C9.69989 12.2392 10.0357 12.575 10.4499 12.575Z\" />\n<path d=\"M13.4501 12.575C13.8643 12.575 14.2001 12.2392 14.2001 11.825C14.2001 11.4108 13.8643 11.075 13.4501 11.075C13.0359 11.075 12.7001 11.4108 12.7001 11.825C12.7001 12.2392 13.0359 12.575 13.4501 12.575Z\" />\n<path d=\"M16.45 12.575C16.8642 12.575 17.2 12.2392 17.2 11.825C17.2 11.4108 16.8642 11.075 16.45 11.075C16.0357 11.075 15.7 11.4108 15.7 11.825C15.7 12.2392 16.0357 12.575 16.45 12.575Z\" />\n<path d=\"M7.45001 15.5749C7.86423 15.5749 8.20001 15.2391 8.20001 14.8249C8.20001 14.4107 7.86423 14.0749 7.45001 14.0749C7.0358 14.0749 6.70001 14.4107 6.70001 14.8249C6.70001 15.2391 7.0358 15.5749 7.45001 15.5749Z\" />\n<path d=\"M10.4499 15.5749C10.8641 15.5749 11.1999 15.2391 11.1999 14.8249C11.1999 14.4107 10.8641 14.0749 10.4499 14.0749C10.0357 14.0749 9.69989 14.4107 9.69989 14.8249C9.69989 15.2391 10.0357 15.5749 10.4499 15.5749Z\" />\n<path d=\"M13.4501 15.5749C13.8643 15.5749 14.2001 15.2391 14.2001 14.8249C14.2001 14.4107 13.8643 14.0749 13.4501 14.0749C13.0359 14.0749 12.7001 14.4107 12.7001 14.8249C12.7001 15.2391 13.0359 15.5749 13.4501 15.5749Z\" />\n<path d=\"M16.45 15.5749C16.8642 15.5749 17.2 15.2391 17.2 14.8249C17.2 14.4107 16.8642 14.0749 16.45 14.0749C16.0357 14.0749 15.7 14.4107 15.7 14.8249C15.7 15.2391 16.0357 15.5749 16.45 15.5749Z\" />\n<path d=\"M7.45001 18.5751C7.86423 18.5751 8.20001 18.2393 8.20001 17.8251C8.20001 17.4109 7.86423 17.0751 7.45001 17.0751C7.0358 17.0751 6.70001 17.4109 6.70001 17.8251C6.70001 18.2393 7.0358 18.5751 7.45001 18.5751Z\" />\n<path d=\"M10.4499 18.5751C10.8641 18.5751 11.1999 18.2393 11.1999 17.8251C11.1999 17.4109 10.8641 17.0751 10.4499 17.0751C10.0357 17.0751 9.69989 17.4109 9.69989 17.8251C9.69989 18.2393 10.0357 18.5751 10.4499 18.5751Z\" />\n</g>\n<defs>\n<clipPath id=\"clip0_2335_4813\">\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"check\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\r\n<g clip-path=\"url(#clip0_2335_4801)\">\r\n<path d=\"M21.8098 4.11505C21.6095 3.93974 21.2839 3.96478 21.1086 4.19018L9.21268 18.4152L2.8515 11.9538C2.65114 11.7535 2.35062 11.7535 2.15026 11.9538C1.94991 12.1542 1.94991 12.4547 2.15026 12.6551L8.88711 19.5171C8.98728 19.6173 9.1125 19.6674 9.23772 19.6674H9.26277C9.41303 19.6674 9.53825 19.5923 9.63843 19.4921L21.885 4.81628C22.0603 4.59088 22.0352 4.29035 21.8098 4.11505Z\"/>\r\n</g>\r\n<defs>\r\n<clipPath id=\"clip0_2335_4801\">\r\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\r\n</clipPath>\r\n</defs>\r\n</svg>`,\n \"check_circle\": `<svg width=\"56\" height=\"56\" viewBox=\"0 0 56 56\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect width=\"56\" height=\"56\" rx=\"28\" fill=\"#257156\" fill-opacity=\"0.2\"/>\n<path d=\"M43.6957 15.6502C43.3752 15.3697 42.8542 15.4097 42.5737 15.7704L23.5403 38.5304L13.3624 28.1922C13.0418 27.8717 12.561 27.8717 12.2404 28.1922C11.9199 28.5128 11.9199 28.9936 12.2404 29.3142L23.0194 40.2935C23.1797 40.4538 23.38 40.5339 23.5804 40.5339H23.6204C23.8608 40.5339 24.0612 40.4137 24.2215 40.2534L43.8159 16.7721C44.0964 16.4115 44.0563 15.9307 43.6957 15.6502Z\" fill=\"#257156\"/>\n</svg>`,\n \"close\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2335_4789)\">\n<path d=\"M12.7018 12L21.8496 2.85213C22.0501 2.65163 22.0501 2.35088 21.8496 2.15038C21.6491 1.94987 21.3484 1.94987 21.1479 2.15038L12 11.2982L2.85213 2.15038C2.65163 1.94987 2.35088 1.94987 2.15038 2.15038C1.94987 2.35088 1.94987 2.65163 2.15038 2.85213L11.2982 12L2.15038 21.1479C1.94987 21.3484 1.94987 21.6491 2.15038 21.8496C2.25063 21.9499 2.37594 22 2.50125 22C2.62657 22 2.75188 21.9499 2.85213 21.8496L12 12.7018L21.1479 21.8496C21.2481 21.9499 21.3734 22 21.4987 22C21.6241 22 21.7494 21.9499 21.8496 21.8496C22.0501 21.6491 22.0501 21.3484 21.8496 21.1479L12.7018 12Z\" fill=\"currentColor\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2335_4789\">\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"courses_circle\": `<svg width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect y=\"0.47998\" width=\"32\" height=\"32\" rx=\"16\" fill=\"#333333\" fill-opacity=\"0.2\"/>\n<g clip-path=\"url(#clip0_2850_2408)\">\n<path d=\"M12.2 11.8047H19.2C19.475 11.8047 19.7 11.5797 19.7 11.3047C19.7 11.0297 19.475 10.8047 19.2 10.8047H12.2C11.925 10.8047 11.7 11.0297 11.7 11.3047C11.7 11.5797 11.925 11.8047 12.2 11.8047Z\" fill=\"#333333\"/>\n<path d=\"M12.2 14.8052H19.2C19.475 14.8052 19.7 14.5802 19.7 14.3052C19.7 14.0302 19.475 13.8052 19.2 13.8052H12.2C11.925 13.8052 11.7 14.0302 11.7 14.3052C11.7 14.5802 11.925 14.8052 12.2 14.8052Z\" fill=\"#333333\"/>\n<path d=\"M21.425 6.47998H10C8.9 6.47998 8 7.32998 8 8.37998V23.38C8 24.43 8.9 25.28 10 25.28H13.7C13.975 25.28 14.2 25.055 14.2 24.78C14.2 24.505 13.975 24.28 13.7 24.28H10C9.45 24.28 9 23.88 9 23.38V8.37998C9 7.87998 9.45 7.47998 10 7.47998H21.45C22 7.47998 22.45 7.87998 22.45 8.37998V23.38C22.45 23.88 22 24.28 21.45 24.28C21.175 24.28 20.95 24.505 20.95 24.78C20.95 25.055 21.175 25.28 21.45 25.28C22.55 25.28 23.45 24.43 23.45 23.38V8.37998C23.45 7.32998 22.55 6.47998 21.425 6.47998Z\" fill=\"#333333\"/>\n<path d=\"M17.55 16.8052C16.2 16.8052 15.125 17.9052 15.125 19.2302C15.125 19.8302 15.35 20.3802 15.725 20.8052V25.9302C15.725 26.1302 15.85 26.3052 16.025 26.3802C16.2 26.4552 16.425 26.4052 16.575 26.2802L17.525 25.3302L18.525 26.3302C18.625 26.4302 18.75 26.4802 18.875 26.4802C18.95 26.4802 19 26.4802 19.075 26.4302C19.25 26.3552 19.375 26.1802 19.375 25.9802V20.8052C19.75 20.3802 19.975 19.8302 19.975 19.2302C19.975 17.8802 18.9 16.8052 17.55 16.8052ZM17.55 17.8052C18.35 17.8052 18.975 18.4552 18.975 19.2302C18.975 20.0052 18.325 20.6552 17.55 20.6552C16.75 20.6552 16.125 20.0052 16.125 19.2302C16.125 18.4552 16.775 17.8052 17.55 17.8052ZM17.875 24.2802C17.675 24.0802 17.375 24.0802 17.175 24.2802L16.725 24.7302V21.5052C16.975 21.6052 17.275 21.6552 17.575 21.6552C17.875 21.6552 18.15 21.6052 18.425 21.5052V24.7802L17.875 24.2802Z\" fill=\"#333333\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2850_2408\">\n<rect width=\"24\" height=\"24\" fill=\"white\" transform=\"translate(4 4.47998)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"cv_circle\": `<svg width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect y=\"0.47998\" width=\"32\" height=\"32\" rx=\"16\" fill=\"#333333\" fill-opacity=\"0.2\"/>\n<g clip-path=\"url(#clip0_2850_330)\">\n<path d=\"M12.1853 16.0538C12.461 16.0538 12.6866 15.8283 12.6866 15.5526V14.3997C12.6866 13.7731 13.2129 13.2468 13.8395 13.2468C14.466 13.2468 14.9924 13.7731 14.9924 14.3997V15.5526C14.9924 15.8283 15.2179 16.0538 15.4936 16.0538C15.7693 16.0538 15.9949 15.8283 15.9949 15.5526V14.3997C15.9949 13.5476 15.4936 12.8208 14.7919 12.4699C15.3182 12.1441 15.669 11.5676 15.669 10.916C15.669 9.91349 14.842 9.08643 13.8395 9.08643C12.837 9.08643 12.0099 9.91349 12.0099 10.916C12.0099 11.5676 12.3608 12.1441 12.8871 12.4699C12.1853 12.8208 11.6841 13.5476 11.6841 14.3997V15.5526C11.6841 15.8283 11.9096 16.0538 12.1853 16.0538ZM13.8395 10.0639C14.2906 10.0639 14.6665 10.4398 14.6665 10.8909C14.6665 11.3421 14.2906 11.718 13.8395 11.718C13.3883 11.718 13.0124 11.3421 13.0124 10.8909C13.0124 10.4398 13.3883 10.0639 13.8395 10.0639Z\" fill=\"#333333\"/>\n<path d=\"M21.4336 6.47998H10.0301C8.90226 6.47998 8 7.4073 8 8.53512V24.4499C8 25.5777 8.92732 26.48 10.0301 26.48H21.4336C22.5614 26.48 23.4637 25.5527 23.4637 24.4499V8.53512C23.4637 7.4073 22.5614 6.47998 21.4336 6.47998ZM22.4612 24.4499C22.4612 25.0263 21.985 25.4775 21.4336 25.4775H10.0301C9.45363 25.4775 9.00251 25.0013 9.00251 24.4499V8.53512C9.00251 7.95868 9.4787 7.48249 10.0301 7.48249H21.4336C22.01 7.48249 22.4612 7.95868 22.4612 8.53512V24.4499Z\" fill=\"#333333\"/>\n<path d=\"M19.2029 21.1665H12.1853C11.9096 21.1665 11.6841 21.3921 11.6841 21.6678C11.6841 21.9434 11.9096 22.169 12.1853 22.169H19.2029C19.4786 22.169 19.7041 21.9434 19.7041 21.6678C19.7041 21.3921 19.4786 21.1665 19.2029 21.1665Z\" fill=\"#333333\"/>\n<path d=\"M19.2029 18.1592H12.1853C11.9096 18.1592 11.6841 18.3847 11.6841 18.6604C11.6841 18.9361 11.9096 19.1617 12.1853 19.1617H19.2029C19.4786 19.1617 19.7041 18.9361 19.7041 18.6604C19.7041 18.3847 19.4786 18.1592 19.2029 18.1592Z\" fill=\"#333333\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2850_330\">\n<rect width=\"24\" height=\"24\" fill=\"white\" transform=\"translate(4 4.47998)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"disability_circle\": `<svg width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect y=\"0.47998\" width=\"32\" height=\"32\" rx=\"16\" fill=\"#333333\" fill-opacity=\"0.2\"/>\n <g clip-path=\"url(#clip0_2850_3043)\">\n <path d=\"M8.11401 14.6519C8.11401 14.6519 15.98 19.4159 23.846 14.6519\" stroke=\"#333333\" stroke-width=\"0.657894\" stroke-miterlimit=\"10\" fill=\"#D6D6D6\"/>\n <path d=\"M20.792 24.0118L16 16.8838\" stroke=\"#333333\" stroke-width=\"0.657894\" stroke-miterlimit=\"10\"/>\n <path d=\"M11.2041 24.0118L16.0001 16.8838\" stroke=\"#333333\" stroke-width=\"0.657894\" stroke-miterlimit=\"10\"/>\n <path d=\"M15.9999 14.4642C17.2691 14.4642 18.2979 13.4353 18.2979 12.1662C18.2979 10.897 17.2691 9.86816 15.9999 9.86816C14.7308 9.86816 13.7019 10.897 13.7019 12.1662C13.7019 13.4353 14.7308 14.4642 15.9999 14.4642Z\" stroke=\"#333333\" fill=\"#D6D6D6\" stroke-width=\"0.657894\" stroke-miterlimit=\"10\"/>\n <path d=\"M24.6439 14.988C25.2106 14.988 25.6699 14.5287 25.6699 13.962C25.6699 13.3954 25.2106 12.936 24.6439 12.936C24.0773 12.936 23.6179 13.3954 23.6179 13.962C23.6179 14.5287 24.0773 14.988 24.6439 14.988Z\" stroke=\"#333333\" fill=\"#D6D6D6\" stroke-width=\"0.657894\" stroke-miterlimit=\"10\"/>\n <path d=\"M7.35193 14.988C7.91857 14.988 8.37793 14.5287 8.37793 13.962C8.37793 13.3954 7.91857 12.936 7.35193 12.936C6.78528 12.936 6.32593 13.3954 6.32593 13.962C6.32593 14.5287 6.78528 14.988 7.35193 14.988Z\" stroke=\"#333333\" fill=\"#D6D6D6\" stroke-width=\"0.657894\" stroke-miterlimit=\"10\"/>\n <path d=\"M20.7919 25.0383C21.3585 25.0383 21.8179 24.579 21.8179 24.0123C21.8179 23.4457 21.3585 22.9863 20.7919 22.9863C20.2252 22.9863 19.7659 23.4457 19.7659 24.0123C19.7659 24.579 20.2252 25.0383 20.7919 25.0383Z\" fill=\"#D6D6D6\" stroke=\"#333333\" stroke-width=\"0.657894\" stroke-miterlimit=\"10\"/>\n <path d=\"M11.204 25.0383C11.7706 25.0383 12.23 24.579 12.23 24.0123C12.23 23.4457 11.7706 22.9863 11.204 22.9863C10.6373 22.9863 10.178 23.4457 10.178 24.0123C10.178 24.579 10.6373 25.0383 11.204 25.0383Z\" fill=\"#D6D6D6\" stroke=\"#333333\" stroke-width=\"0.657894\" stroke-miterlimit=\"10\"/>\n <path d=\"M22.1521 22.528C22.3161 22.678 22.4541 22.854 22.5621 23.05C24.3081 21.31 25.2861 18.944 25.2801 16.478C25.2801 16.276 25.2721 16.076 25.2601 15.876C25.0621 15.94 24.8541 15.972 24.6441 15.972C24.6321 15.972 24.6181 15.972 24.6061 15.972C24.6161 16.14 24.6221 16.308 24.6221 16.478C24.6261 18.742 23.7401 20.916 22.1521 22.528Z\" fill=\"#333333\"/>\n <path d=\"M15.972 25.1279C14.998 25.1299 14.032 24.9659 13.112 24.6459C13.042 24.8579 12.936 25.0559 12.802 25.2339C14.864 25.9739 17.122 25.9699 19.182 25.2199C19.048 25.0419 18.946 24.8419 18.878 24.6299C17.944 24.9599 16.962 25.1279 15.972 25.1279Z\" fill=\"#333333\"/>\n <path d=\"M7.34002 15.9738C7.11802 15.9718 6.89802 15.9338 6.68802 15.8618C6.67402 16.0658 6.66802 16.2718 6.66802 16.4798C6.66002 18.9498 7.64202 21.3178 9.39202 23.0598C9.40002 23.0678 9.40802 23.0758 9.41602 23.0838C9.52002 22.8858 9.65402 22.7058 9.81602 22.5538C8.21602 20.9398 7.32002 18.7538 7.32602 16.4798C7.32602 16.3098 7.33002 16.1418 7.34002 15.9738Z\" fill=\"#333333\"/>\n <path d=\"M22.5521 9.89982C18.9181 6.26582 13.0261 6.26582 9.39206 9.89982C8.76806 10.5218 8.23606 11.2298 7.81006 12.0038C8.02606 12.0538 8.23206 12.1398 8.42006 12.2578C8.81006 11.5638 9.29406 10.9278 9.85606 10.3658C13.2341 6.98782 18.7081 6.98782 22.0861 10.3658C22.6561 10.9338 23.1441 11.5798 23.5361 12.2818C23.7201 12.1598 23.9241 12.0698 24.1401 12.0138C23.7141 11.2378 23.1801 10.5258 22.5521 9.89982Z\" fill=\"#333333\"/>\n </g>\n <defs>\n <clipPath id=\"clip0_2850_3043\">\n <rect width=\"20\" height=\"20\" fill=\"white\" transform=\"translate(6 6.47998)\"/>\n </clipPath>\n </defs>\n</svg>`,\n \"education_circle\": `<svg width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect y=\"0.47998\" width=\"32\" height=\"32\" rx=\"16\" fill=\"#333333\" fill-opacity=\"0.2\"/>\n<g clip-path=\"url(#clip0_2850_2002)\">\n<path d=\"M24.1043 10.48H7.92015C6.84786 10.48 6 11.3528 6 12.4001V12.45C6 13.5223 6.8728 14.3702 7.92015 14.3702H9.66574V17.986C9.66574 18.9835 10.4887 19.8064 11.4861 19.8064H20.1143C21.1118 19.8064 21.9347 18.9835 21.9347 17.986V14.3951H22.7826V20.3052C21.9347 20.5296 21.2864 21.3026 21.2864 22.2253C21.2864 22.4996 21.5108 22.7241 21.7851 22.7241C22.0594 22.7241 22.2839 22.4996 22.2839 22.2253C22.2839 21.8513 22.4834 21.5271 22.7826 21.3775V22.2253C22.7826 22.4996 23.007 22.7241 23.2813 22.7241C23.5557 22.7241 23.7801 22.4996 23.7801 22.2253V21.3775C24.0793 21.552 24.2788 21.8762 24.2788 22.2253C24.2788 22.4996 24.5033 22.7241 24.7776 22.7241C25.0519 22.7241 25.2763 22.4996 25.2763 22.2253C25.2763 21.3026 24.6279 20.5296 23.7801 20.3052V14.3951H24.0793C25.1516 14.3951 25.9995 13.5223 25.9995 12.4749V12.4251C26.0244 11.3528 25.1516 10.48 24.1043 10.48ZM20.9622 18.011C20.9622 18.4598 20.5881 18.8339 20.1393 18.8339H11.4861C11.0373 18.8339 10.6632 18.4598 10.6632 18.011V14.3951H20.9622V18.011ZM7.92015 13.3976C7.39647 13.3976 6.99748 12.9737 6.99748 12.4749V12.4251C6.99748 11.9014 7.42141 11.5024 7.92015 11.5024H22.8075V13.3976H7.92015ZM25.0269 12.45C25.0269 12.9737 24.603 13.3727 24.1043 13.3727H23.805V11.4775H24.1043C24.6279 11.4775 25.0269 11.9014 25.0269 12.4001V12.45Z\" fill=\"#333333\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2850_2002\">\n<rect width=\"24\" height=\"24\" fill=\"white\" transform=\"translate(4 4.47998)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"email\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2335_4843)\">\n<path d=\"M19.975 5H4.025C2.925 5 2 5.9 2 7.025V16.75C2 17.85 2.9 18.775 4.025 18.775H19.975C21.075 18.775 22 17.875 22 16.75V7C22 5.9 21.1 5 19.975 5ZM20.975 16.725C20.975 17.275 20.525 17.725 19.975 17.725H4.025C3.475 17.725 3.025 17.275 3.025 16.725V7C3.025 6.45 3.475 6 4.025 6H19.975C20.525 6 20.975 6.45 20.975 7V16.725Z\"/>\n<path d=\"M14.6001 11.7498L17.6251 9.17477C17.8501 8.99977 17.8751 8.67477 17.6751 8.44977C17.5001 8.22477 17.1751 8.19977 16.9501 8.39977L12.0001 12.6498L7.0501 8.39977C6.8251 8.22477 6.5001 8.24977 6.3251 8.44977C6.1501 8.67477 6.1751 8.99977 6.3751 9.17477L9.4001 11.7748L6.3751 14.4748C6.1751 14.6748 6.1501 14.9998 6.3251 15.1998C6.4251 15.3248 6.5751 15.3748 6.7001 15.3748C6.8251 15.3748 6.9501 15.3248 7.0501 15.2498L10.1751 12.4248L11.6751 13.6998C11.6751 13.6998 11.6751 13.6998 11.7001 13.6998L11.7251 13.7248C11.7501 13.7498 11.7751 13.7498 11.7751 13.7498C11.7751 13.7498 11.8001 13.7498 11.8001 13.7748C11.8251 13.7748 11.8501 13.7998 11.8751 13.7998H11.9001C11.9251 13.7998 11.9751 13.7998 12.0001 13.7998C12.0251 13.7998 12.0751 13.7998 12.1001 13.7998H12.1251C12.1501 13.7998 12.1751 13.7748 12.2001 13.7748C12.2001 13.7748 12.2251 13.7748 12.2251 13.7498C12.2501 13.7498 12.2751 13.7248 12.2751 13.7248L12.3001 13.6998C12.3001 13.6998 12.3001 13.6998 12.3251 13.6998L13.8251 12.4248L16.9501 15.2248C17.0501 15.3248 17.1751 15.3498 17.3001 15.3498C17.4501 15.3498 17.5751 15.2998 17.6751 15.1748C17.8751 14.9748 17.8501 14.6498 17.6251 14.4498L14.6001 11.7498Z\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2335_4843\">\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"experience_circle\": `<svg width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect y=\"0.47998\" width=\"32\" height=\"32\" rx=\"16\" fill=\"#333333\" fill-opacity=\"0.2\"/>\n<g clip-path=\"url(#clip0_2850_565)\">\n<path d=\"M26 15.98V13.53C26 12.43 25.1 11.505 23.975 11.505H19.475C19.225 9.80498 17.75 8.47998 16 8.47998C14.25 8.47998 12.775 9.77998 12.525 11.505H8.025C6.925 11.505 6 12.405 6 13.53V23.08C6 24.18 6.9 25.105 8.025 25.105H23.975C25.075 25.105 26 24.205 26 23.08V16.03C26 16.03 26 16.005 26 15.98ZM16 9.50498C17.2 9.50498 18.2 10.355 18.45 11.505H13.55C13.8 10.38 14.8 9.50498 16 9.50498ZM8.025 12.53H23.975C24.525 12.53 24.975 12.98 24.975 13.53V15.705C22.4 17.18 19.5 17.98 16.525 18.055V17.155C16.525 16.88 16.3 16.655 16.025 16.655C15.75 16.655 15.525 16.88 15.525 17.155V18.055C12.55 17.955 9.625 17.105 7.075 15.58V13.53C7.025 12.98 7.475 12.53 8.025 12.53ZM23.975 24.055H8.025C7.475 24.055 7.025 23.605 7.025 23.055V16.755C9.625 18.18 12.525 18.98 15.475 19.08V19.655C15.475 19.93 15.7 20.155 15.975 20.155C16.25 20.155 16.475 19.93 16.475 19.655V19.08C19.475 19.005 22.375 18.255 24.975 16.88V23.055C24.975 23.605 24.525 24.055 23.975 24.055Z\" fill=\"#333333\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2850_565\">\n<rect width=\"24\" height=\"24\" fill=\"white\" transform=\"translate(4 4.47998)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"eye\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2335_4808)\">\n<path d=\"M21.4 10.5C19.65 8.825 16.125 6 12 6C7.875 6 4.325 8.825 2.6 10.5C2.2 10.875 2 11.4 2 11.95C2 12.5 2.225 13 2.6 13.4C4.35 15.075 7.875 17.9 12 17.9C16.125 17.9 19.675 15.075 21.4 13.4C21.8 13.025 22 12.5 22 11.95C22 11.4 21.8 10.9 21.4 10.5ZM12 16.375C9.55 16.375 7.575 14.4 7.575 11.95C7.575 9.5 9.55 7.525 12 7.525C14.45 7.525 16.425 9.5 16.425 11.95C16.425 14.4 14.425 16.375 12 16.375ZM2.975 11.95C2.975 11.675 3.075 11.425 3.275 11.225C4.4 10.125 6.325 8.525 8.675 7.65C7.4 8.65 6.575 10.2 6.575 11.95C6.575 13.7 7.4 15.25 8.675 16.25C6.35 15.375 4.425 13.775 3.275 12.675C3.1 12.475 2.975 12.225 2.975 11.95ZM20.7 12.675C19.575 13.775 17.65 15.375 15.3 16.25C16.575 15.25 17.4 13.7 17.4 11.95C17.4 10.2 16.575 8.65 15.3 7.65C17.625 8.525 19.55 10.125 20.7 11.225C20.9 11.425 21 11.675 21 11.95C21 12.225 20.9 12.475 20.7 12.675Z\"/>\n<path d=\"M12 10.425C11.15 10.425 10.475 11.1 10.475 11.95C10.475 12.8 11.15 13.475 12 13.475C12.85 13.475 13.525 12.8 13.525 11.95C13.5 11.1 12.825 10.425 12 10.425Z\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2335_4808\">\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"eye_crossed\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2335_4805)\">\n<path d=\"M21.4007 10.569C20.0774 9.29562 17.7054 7.34805 14.834 6.49911L16.382 2.72883C16.4569 2.55405 16.432 2.35429 16.3321 2.20448C16.2322 2.05467 16.0325 1.97976 15.8577 2.00473C15.6829 2.0297 15.5331 2.15454 15.4582 2.32933L13.8352 6.22446C13.236 6.09961 12.6117 6.04968 11.9875 6.04968C7.86767 6.04968 4.3221 8.87115 2.59925 10.5441C2.19975 10.9186 2 11.4429 2 11.9922C2 12.5416 2.22472 13.0409 2.59925 13.4404C3.9226 14.7138 6.29463 16.6614 9.16604 17.5104L7.61798 21.2806C7.56804 21.4055 7.56804 21.5303 7.61798 21.6552C7.66792 21.78 7.76779 21.8799 7.89263 21.9298C7.94257 21.9548 8.01748 21.9548 8.09238 21.9548C8.29214 21.9548 8.46692 21.8299 8.54182 21.6552L10.1648 17.76C10.764 17.8849 11.3883 17.9348 12.0125 17.9348C16.1323 17.9348 19.6779 15.1133 21.4007 13.4404C21.8002 13.0659 22 12.5416 22 12.0172C22 11.4929 21.8002 10.9436 21.4007 10.569ZM10.789 16.2619L11.9376 13.5153C12.5868 13.5403 13.186 13.1658 13.4107 12.5915C13.6604 11.9922 13.5106 11.3181 13.0112 10.8936L14.1348 8.14705C16.1074 9.24568 16.9313 11.6177 16.0824 13.7151C15.2335 15.7625 12.9613 16.8861 10.789 16.2619ZM3.29838 12.7413C3.1236 12.5416 2.99875 12.2919 2.99875 12.0172C2.99875 11.7426 3.09863 11.4929 3.29838 11.2931C4.92135 9.72009 8.2422 7.0734 11.9875 7.0734C12.4619 7.0734 12.9613 7.12333 13.4357 7.19824L13.4107 7.24818L9.66542 16.3618L9.56554 16.5615C6.84395 15.8125 4.57179 13.9648 3.29838 12.7413ZM20.7016 12.7413C19.578 13.8399 17.6554 15.4379 15.3333 16.3118C16.6567 15.2881 17.4307 13.7151 17.4307 12.0172C17.4307 10.3193 16.6567 8.7463 15.3333 7.72258C17.6554 8.59649 19.578 10.1945 20.7266 11.2931C20.9263 11.4929 21.0262 11.7426 21.0262 12.0172C21.0262 12.2919 20.9014 12.5416 20.7016 12.7413Z\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2335_4805\">\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"home\": `<svg width=\"26\" height=\"25\" viewBox=\"0 0 26 25\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2670_151)\">\n<path d=\"M21.6796 9.22381L14.539 3.01029C13.7874 2.35887 12.6599 2.35887 11.9083 3.01029L4.69261 9.22381C4.24163 9.59962 3.99109 10.1508 3.99109 10.7521V20.5484C3.99109 21.6508 4.89305 22.5528 5.99545 22.5528H10.5554H15.8168H20.3767C21.4791 22.5528 22.3811 21.6508 22.3811 20.5484V10.7521C22.356 10.1759 22.1055 9.62468 21.6796 9.22381ZM11.0565 21.5506V17.3415C11.0565 16.7903 11.5074 16.3393 12.0586 16.3393H14.3135C14.8647 16.3393 15.3157 16.7903 15.3157 17.3415V21.5757H11.0565V21.5506ZM21.3539 20.5484C21.3539 21.0996 20.9029 21.5506 20.3517 21.5506H16.3179V17.3415C16.3179 16.2391 15.4159 15.3371 14.3135 15.3371H12.0586C10.9562 15.3371 10.0543 16.2391 10.0543 17.3415V21.5757H5.99545C5.44425 21.5757 4.99327 21.1247 4.99327 20.5735V10.7521C4.99327 10.4515 5.11854 10.1759 5.34403 10.0005L12.5597 3.78698C12.7351 3.63665 12.9857 3.53644 13.2111 3.53644C13.4366 3.53644 13.6872 3.6116 13.8626 3.78698L21.0031 10.0005C21.2286 10.2009 21.3539 10.4765 21.3539 10.7521V20.5484Z\" fill=\"currentColor\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2670_151\">\n<rect width=\"24.0373\" height=\"24.0373\" fill=\"currentColor\" transform=\"translate(0.986328 0.518555)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"image\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M20 2H4C2.9 2 2 2.9 2 4V20C2 21.1 2.9 22 4 22H20C21.1 22 22 21.1 22 20V4C22 2.9 21.1 2 20 2ZM21 20C21 20.55 20.55 21 20 21H4C3.45 21 3 20.55 3 20V4C3 3.45 3.45 3 4 3H20C20.55 3 21 3.45 21 4V20Z\" fill=\"#2175D9\"/>\n<path d=\"M17.725 8.475C17.625 8.325 17.475 8.25 17.3 8.25C17.125 8.25 16.975 8.325 16.875 8.475L11.9 15.75L8.60001 12.875C8.40001 12.7 8.12501 12.7 7.92501 12.9L4.42501 16.2C4.22501 16.4 4.22501 16.7 4.40001 16.9C4.50001 17 4.62501 17.05 4.77501 17.05C4.90001 17.05 5.02501 17 5.12501 16.925L8.30001 13.925L11.7 16.875C11.8 16.975 11.95 17 12.1 17C12.25 16.975 12.375 16.9 12.45 16.775L17.35 9.65L19.075 12.25C19.225 12.475 19.55 12.55 19.775 12.4C20 12.25 20.075 11.925 19.925 11.7L17.725 8.475Z\" fill=\"#2175D9\"/>\n<path d=\"M8.27502 10.9C9.92502 10.9 11.275 9.54999 11.275 7.89999C11.275 6.24999 9.92502 4.89999 8.27502 4.89999C6.62502 4.89999 5.27502 6.24999 5.27502 7.89999C5.27502 9.54999 6.60002 10.9 8.27502 10.9ZM8.27502 5.89999C9.37502 5.89999 10.275 6.79999 10.275 7.89999C10.275 8.99999 9.37502 9.89999 8.27502 9.89999C7.17502 9.89999 6.27502 8.99999 6.27502 7.89999C6.27502 6.79999 7.15002 5.89999 8.27502 5.89999Z\" fill=\"#2175D9\"/>\n</svg>`,\n \"info\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2313_3707)\">\n<path d=\"M12.0249 9.59985C12.4391 9.59985 12.7749 9.26407 12.7749 8.84985C12.7749 8.43564 12.4391 8.09985 12.0249 8.09985C11.6107 8.09985 11.2749 8.43564 11.2749 8.84985C11.2749 9.26407 11.6107 9.59985 12.0249 9.59985Z\"/>\n<path d=\"M12.0248 15.8999C11.7498 15.8999 11.5248 15.6749 11.5248 15.3999V11.0999C11.5248 10.8249 11.7498 10.5999 12.0248 10.5999C12.2998 10.5999 12.5248 10.8249 12.5248 11.0999V15.3999C12.5248 15.6749 12.2998 15.8999 12.0248 15.8999Z\"/>\n<path d=\"M12 2C6.475 2 2 6.5 2 12C2 17.5 6.475 22 12 22C17.525 22 22 17.525 22 12C22 6.475 17.525 2 12 2ZM12 21C7.025 21 3 16.975 3 12C3 7.025 7.025 3 12 3C16.975 3 21 7.025 21 12C21 16.975 16.975 21 12 21Z\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2313_3707\">\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"info_circle\": `<svg width=\"56\" height=\"56\" viewBox=\"0 0 56 56\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect width=\"56\" height=\"56\" rx=\"28\" fill=\"#E9A204\" fill-opacity=\"0.2\"/>\n<path d=\"M28.0413 24.16C28.7041 24.16 29.2413 23.6228 29.2413 22.96C29.2413 22.2973 28.7041 21.76 28.0413 21.76C27.3786 21.76 26.8413 22.2973 26.8413 22.96C26.8413 23.6228 27.3786 24.16 28.0413 24.16Z\" fill=\"#E9A204\"/>\n<path d=\"M28.0412 34.24C27.6012 34.24 27.2412 33.88 27.2412 33.44V26.56C27.2412 26.12 27.6012 25.76 28.0412 25.76C28.4812 25.76 28.8412 26.12 28.8412 26.56V33.44C28.8412 33.88 28.4812 34.24 28.0412 34.24Z\" fill=\"#E9A204\"/>\n<path d=\"M28 12C19.16 12 12 19.2 12 28C12 36.8 19.16 44 28 44C36.84 44 44 36.84 44 28C44 19.16 36.84 12 28 12ZM28 42.4C20.04 42.4 13.6 35.96 13.6 28C13.6 20.04 20.04 13.6 28 13.6C35.96 13.6 42.4 20.04 42.4 28C42.4 35.96 35.96 42.4 28 42.4Z\" fill=\"#E9A204\"/>\n</svg>`,\n \"languages_circle\": `<svg width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect y=\"0.47998\" width=\"32\" height=\"32\" rx=\"16\" fill=\"#333333\" fill-opacity=\"0.2\"/>\n<g clip-path=\"url(#clip0_2850_2317)\">\n<path d=\"M25.9691 13.427C25.8191 11.9275 25.0943 10.6029 23.9197 9.67815C22.745 8.75342 21.2705 8.32855 19.7959 8.52849C17.0217 8.87839 14.9223 11.3526 14.9973 14.1268C14.9973 14.3268 15.0223 14.5267 15.0473 14.7266H7.37459C6.62481 14.7266 6 15.3515 6 16.1012V21.5996C6 22.3494 6.62481 22.9742 7.37459 22.9742H9.79887V23.7989C9.79887 24.3238 10.2237 24.7237 10.7236 24.7237C10.8985 24.7237 11.0485 24.6737 11.1985 24.5987L13.7977 23.0242C13.8477 22.9992 13.9226 22.9742 13.9976 22.9742H16.6218C17.3716 22.9742 17.9964 22.3494 17.9964 21.5996V18.8754C18.9212 19.3503 19.9958 19.5502 21.0455 19.4502C21.3204 19.4252 21.5954 19.3753 21.8453 19.3003L23.0199 19.9751C23.1699 20.0501 23.3198 20.1 23.4948 20.1C23.6697 20.1 23.8197 20.0501 23.9697 19.9751C24.2696 19.8001 24.4445 19.5002 24.4445 19.1753V17.8257C25.5692 16.6511 26.144 15.0515 25.9691 13.427ZM16.9967 21.5996C16.9967 21.7995 16.8218 21.9745 16.6218 21.9745H13.9976C13.7477 21.9745 13.4978 22.0495 13.2728 22.1744L10.7736 23.699V22.4993C10.7736 22.2244 10.5486 21.9995 10.2737 21.9995H7.37459C7.17465 21.9995 6.9997 21.8245 6.9997 21.6246V16.1012C6.9997 15.9013 7.17465 15.7263 7.37459 15.7263H16.6218C16.8218 15.7263 16.9967 15.9013 16.9967 16.1012V21.5996ZM23.5948 17.2509C23.4698 17.3509 23.4198 17.5258 23.4448 17.6758V19.0754L22.1702 18.3506C22.0952 18.3006 22.0202 18.2756 21.9203 18.2756C21.8703 18.2756 21.8203 18.2756 21.7703 18.3006C21.4954 18.3756 21.2205 18.4255 20.9456 18.4505C19.8959 18.5505 18.8462 18.2756 17.9964 17.7008V16.1012C17.9964 15.3515 17.3716 14.7266 16.6218 14.7266H16.047C16.022 14.5267 15.997 14.3268 15.997 14.1018C15.922 11.8275 17.6465 9.80311 19.9209 9.5032C21.1455 9.35325 22.3451 9.67815 23.2949 10.4529C24.2446 11.2027 24.8444 12.3024 24.9694 13.527C25.1193 14.9266 24.6195 16.2762 23.5948 17.2509Z\" fill=\"#333333\"/>\n<path d=\"M15.1223 18.3254H8.87412C8.5992 18.3254 8.37427 18.1005 8.37427 17.8255C8.37427 17.5506 8.5992 17.3257 8.87412 17.3257H15.1223C15.3972 17.3257 15.6221 17.5506 15.6221 17.8255C15.6221 18.1254 15.3972 18.3254 15.1223 18.3254Z\" fill=\"#333333\"/>\n<path d=\"M15.1223 20.3249H8.87412C8.5992 20.3249 8.37427 20.1 8.37427 19.825C8.37427 19.5501 8.5992 19.3252 8.87412 19.3252H15.1223C15.3972 19.3252 15.6221 19.5501 15.6221 19.825C15.6221 20.125 15.3972 20.3249 15.1223 20.3249Z\" fill=\"#333333\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2850_2317\">\n<rect width=\"24\" height=\"24\" fill=\"white\" transform=\"translate(4 4.47998)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"pencil\": `<svg width=\"24\" height=\"25\" viewBox=\"0 0 24 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_3071_1843)\">\n<path d=\"M21.1792 3.34301C20.0866 2.20072 18.249 2.20072 17.1315 3.29334L3.02678 17.0256C2.95228 17.1001 2.90262 17.1746 2.87778 17.2739L2.00865 21.3464C1.98382 21.4954 2.00865 21.6693 2.13281 21.7934C2.23214 21.8927 2.35631 21.9424 2.5053 21.9424C2.53013 21.9424 2.55496 21.9424 2.5798 21.9424L6.77646 21.2719C6.87579 21.2471 6.97511 21.1974 7.04961 21.1478L21.1295 7.39067C21.6758 6.84436 21.9738 6.14906 21.9987 5.37926C22.0235 4.60945 21.7007 3.88932 21.1792 3.34301ZM20.4342 6.69537L6.45364 20.3283L3.12611 20.8498L3.82141 17.6464L17.802 4.01348C18.547 3.29334 19.7389 3.31817 20.4591 4.03831C20.8067 4.38596 21.0054 4.85778 20.9805 5.37926C20.9805 5.8759 20.7819 6.34772 20.4342 6.69537Z\" fill=\"#2175D9\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_3071_1843\">\n<rect width=\"24\" height=\"24\" fill=\"white\" transform=\"translate(0 0.47998)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"personal_circle\": `<svg width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect y=\"0.47998\" width=\"32\" height=\"32\" rx=\"16\" fill=\"#333333\" fill-opacity=\"0.2\"/>\n<g clip-path=\"url(#clip0_2850_2271)\">\n<path d=\"M17.0999 16.1798C18.0249 15.7548 18.6499 14.8298 18.6499 13.7548C18.6499 12.2798 17.4499 11.0798 15.9749 11.0798C14.4999 11.0798 13.2999 12.2798 13.2999 13.7548C13.2999 14.8298 13.9499 15.7548 14.8499 16.1798C13.6249 16.6298 12.7749 17.8048 12.7749 19.1798V21.3798C12.7749 21.6548 12.9999 21.8798 13.2749 21.8798C13.5499 21.8798 13.7749 21.6548 13.7749 21.3798V19.1798C13.7749 17.9798 14.7499 16.9798 15.9749 16.9798C17.1749 16.9798 18.1749 17.9548 18.1749 19.1798V21.3798C18.1749 21.6548 18.3999 21.8798 18.6749 21.8798C18.9499 21.8798 19.1749 21.6548 19.1749 21.3798V19.1798C19.1999 17.8048 18.3249 16.6298 17.0999 16.1798ZM14.3249 13.7548C14.3249 12.8298 15.0749 12.0798 15.9999 12.0798C16.9249 12.0798 17.6749 12.8298 17.6749 13.7548C17.6749 14.6798 16.9249 15.4298 15.9999 15.4298C15.0749 15.4298 14.3249 14.6798 14.3249 13.7548Z\" fill=\"#333333\"/>\n<path d=\"M16 6.47998C10.475 6.47998 6 10.955 6 16.48C6 22.005 10.475 26.48 16 26.48C21.525 26.48 26 22.005 26 16.48C26 10.955 21.525 6.47998 16 6.47998ZM16 25.48C11.025 25.48 7 21.455 7 16.48C7 11.505 11.025 7.47998 16 7.47998C20.975 7.47998 25 11.505 25 16.48C25 21.455 20.975 25.48 16 25.48Z\" fill=\"#333333\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2850_2271\">\n<rect width=\"24\" height=\"24\" fill=\"white\" transform=\"translate(4 4.47998)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"postulation\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M17.7249 3.55H16.7499V3.25C16.7499 2.55 16.1999 2 15.4999 2H8.4999C7.7999 2 7.2499 2.55 7.2499 3.25V3.525H6.2749C5.1749 3.525 4.2749 4.425 4.2749 5.525V20C4.2749 21.1 5.1749 22 6.2749 22H17.7249C18.8249 22 19.7249 21.1 19.7249 20V5.525C19.7249 4.425 18.8249 3.55 17.7249 3.55ZM8.2499 4.55V3.55V3.25C8.2499 3.1 8.3499 3 8.4999 3H15.4999C15.6499 3 15.7499 3.1 15.7499 3.25V3.525V4.525V5.25C15.7499 5.4 15.6499 5.5 15.4999 5.5H8.4999C8.3499 5.5 8.2499 5.4 8.2499 5.25V4.55ZM18.7249 20C18.7249 20.55 18.2749 21 17.7249 21H6.2749C5.7249 21 5.2749 20.55 5.2749 20V5.525C5.2749 4.975 5.7249 4.525 6.2749 4.525H7.2499V5.25C7.2499 5.95 7.7999 6.5 8.4999 6.5H15.4999C16.1999 6.5 16.7499 5.95 16.7499 5.25V4.525H17.7249C18.2749 4.525 18.7249 4.975 18.7249 5.525V20Z\" fill=\"#404767\"/>\n<path d=\"M15.625 9.17498L11.475 13.775L9.85 12.15C9.65 11.95 9.35 11.95 9.15 12.15C8.95 12.35 8.95 12.65 9.15 12.85L11.15 14.85C11.25 14.95 11.375 15 11.5 15C11.5 15 11.5 15 11.525 15C11.65 15 11.8 14.925 11.875 14.825L16.375 9.82498C16.55 9.62498 16.55 9.29998 16.35 9.12498C16.125 8.94998 15.825 8.94998 15.625 9.17498Z\" fill=\"#404767\"/>\n</svg>`,\n \"search\": `<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_9569_18053)\">\n<path d=\"M29.128 28.2426L23.9698 23.0843C25.946 20.9071 27.1518 18.0265 27.1518 14.8444C27.1518 8.11188 21.6586 2.61865 14.926 2.61865C8.19347 2.61865 2.66675 8.11188 2.66675 14.8444C2.66675 21.577 8.15998 27.0702 14.926 27.0702C18.0411 27.0702 20.8547 25.8979 23.0319 23.9887L28.2237 29.1804C28.3577 29.3144 28.5251 29.3814 28.6926 29.3814C28.8601 29.3814 29.0276 29.3144 29.1615 29.1804C29.396 28.9125 29.396 28.5105 29.128 28.2426ZM14.926 25.7304C8.93037 25.7304 4.04006 20.8401 4.04006 14.8444C4.04006 8.84878 8.89688 3.95846 14.926 3.95846C20.9217 3.95846 25.812 8.84878 25.812 14.8444C25.812 20.8401 20.9217 25.7304 14.926 25.7304Z\" fill=\"white\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_9569_18053\">\n<rect width=\"32\" height=\"32\" fill=\"white\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"settings\": `<svg width=\"25\" height=\"25\" viewBox=\"0 0 25 25\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2670_175)\">\n<path d=\"M21.1417 10.5342H20.1401C19.9398 9.80803 19.6644 9.10694 19.2888 8.48097L20.0149 7.75485C20.2403 7.5295 20.3905 7.20399 20.3905 6.87849C20.3905 6.55298 20.2653 6.22748 20.0149 6.00213L18.9633 4.9505C18.4625 4.44972 17.6863 4.47476 17.1855 4.9505L16.4594 5.67662C15.8084 5.276 15.1073 4.97554 14.3812 4.77522V3.77367C14.3812 3.07258 13.8303 2.52173 13.1293 2.52173H11.6269C10.9258 2.52173 10.375 3.07258 10.375 3.77367V4.77522C9.64885 4.97554 8.94777 5.25096 8.29676 5.62655L7.59567 4.92546C7.37032 4.70011 7.04481 4.54988 6.71931 4.54988C6.3938 4.54988 6.0683 4.67507 5.84295 4.92546L4.79132 5.97709C4.56597 6.20244 4.41573 6.52794 4.41573 6.85345C4.41573 7.17895 4.54093 7.50446 4.79132 7.72981L5.4924 8.4309C5.11682 9.08191 4.81636 9.75795 4.61604 10.5091H3.61449C2.9134 10.5091 2.36255 11.06 2.36255 11.7611V13.2634C2.36255 13.9645 2.9134 14.5153 3.61449 14.5153H4.59101C4.79132 15.2665 5.06674 15.9676 5.46737 16.5936L4.79132 17.2696C4.31558 17.7453 4.31558 18.5466 4.79132 19.0474L5.84295 20.099C6.0683 20.3243 6.3938 20.4746 6.71931 20.4746C7.04481 20.4746 7.37032 20.3494 7.59567 20.099L8.27172 19.4229C8.92273 19.7985 9.62381 20.099 10.3499 20.2993V21.3009C10.3499 22.0019 10.9008 22.5528 11.6019 22.5528H13.1042C13.8053 22.5528 14.3562 22.0019 14.3562 21.3009V20.3243C15.1073 20.124 15.7834 19.8236 16.4344 19.448L17.1355 20.1491C17.3859 20.3995 17.7114 20.5247 18.0118 20.5247C18.3373 20.5247 18.6628 20.3995 18.8882 20.1491L19.9398 19.0974C20.4406 18.6217 20.4406 17.8205 19.9398 17.3197L19.2387 16.6186C19.6143 15.9676 19.9148 15.2915 20.0901 14.5404H21.0916C21.7927 14.5404 22.3435 13.9895 22.3435 13.2884V11.7861C22.3936 11.085 21.8428 10.5342 21.1417 10.5342ZM21.3921 13.2884C21.3921 13.4387 21.2919 13.5388 21.1417 13.5388H20.3154H19.3138C19.2638 13.8894 19.1887 14.2149 19.0885 14.5404C18.9383 15.0161 18.763 15.4668 18.5376 15.8925C18.3874 16.1929 18.1871 16.4934 17.9868 16.7438L18.6879 17.4449L19.2638 18.0208C19.3389 18.0959 19.3389 18.171 19.3389 18.196C19.3389 18.2461 19.3389 18.3212 19.2638 18.3713L18.2121 19.4229C18.137 19.4981 18.0619 19.4981 18.0369 19.4981C17.9868 19.4981 17.9117 19.4981 17.8616 19.4229L17.2857 18.8471L16.5846 18.146C16.3092 18.3463 16.0338 18.5466 15.7333 18.6968C15.3076 18.9222 14.8569 19.1225 14.3812 19.2727C14.0557 19.3729 13.7302 19.448 13.3796 19.4981V20.4996V21.3009C13.3796 21.4511 13.2795 21.5513 13.1293 21.5513H11.6269C11.4767 21.5513 11.3765 21.4511 11.3765 21.3009V20.5247V19.5231C11.026 19.473 10.7005 19.3979 10.375 19.2978C9.89924 19.1475 9.44854 18.9723 9.02288 18.7469C8.72241 18.5716 8.42195 18.3964 8.17156 18.196L7.47047 18.8971L6.91962 19.448C6.8445 19.5231 6.76939 19.5231 6.74435 19.5231C6.69427 19.5231 6.61915 19.5231 6.56907 19.448L5.51744 18.3964C5.41729 18.2962 5.41729 18.146 5.51744 18.0458L6.0683 17.495L6.76939 16.7939C6.56907 16.5184 6.36876 16.243 6.21853 15.9425C5.99318 15.5169 5.79287 15.0662 5.66768 14.5905C5.56752 14.2649 5.4924 13.9394 5.44233 13.5889H4.44077H3.61449C3.46426 13.5889 3.3641 13.4887 3.3641 13.3385V11.8362C3.3641 11.6859 3.46426 11.5858 3.61449 11.5858H4.3907H5.39225C5.44233 11.2352 5.51744 10.9097 5.6176 10.5842C5.76783 10.1085 5.9431 9.6578 6.19349 9.23214C6.36876 8.93167 6.54404 8.65625 6.74435 8.38082L6.04326 7.67973L5.46737 7.10384C5.39225 7.02872 5.39225 6.9536 5.39225 6.92856C5.39225 6.87849 5.39225 6.80337 5.46737 6.75329L6.519 5.70166C6.59411 5.62655 6.66923 5.62655 6.69427 5.62655C6.74435 5.62655 6.81946 5.62655 6.86954 5.70166L7.44543 6.27756L8.14652 6.97864C8.42195 6.77833 8.69738 6.60306 8.99784 6.42779C9.4235 6.20244 9.8742 6.00213 10.3499 5.87693C10.6754 5.77678 11.001 5.70166 11.3515 5.65158V4.65003V3.77367C11.3515 3.62344 11.4516 3.52328 11.6019 3.52328H13.1042C13.2544 3.52328 13.3546 3.62344 13.3546 3.77367V4.59995V5.60151C13.7051 5.65158 14.0307 5.7267 14.3562 5.82686C14.8319 5.97709 15.2826 6.15236 15.6832 6.37771C15.9837 6.55298 16.2591 6.72825 16.5345 6.92856L17.2356 6.22748L17.8115 5.65158C17.9117 5.55143 18.0619 5.55143 18.1621 5.65158L19.2137 6.70322C19.2888 6.77833 19.2888 6.85345 19.2888 6.87849C19.2888 6.92857 19.2888 7.00368 19.2137 7.05376L18.6378 7.62965L17.9367 8.33074C18.137 8.60617 18.3373 8.88159 18.4876 9.18206C18.7129 9.60772 18.9132 10.0584 19.0384 10.5091C19.1386 10.8346 19.2137 11.1601 19.2638 11.5107H20.2653H21.1417C21.2919 11.5107 21.3921 11.6108 21.3921 11.7611V13.2884Z\" fill=\"currentColor\"/>\n<path d=\"M12.3781 8.03027C9.89924 8.03027 7.87109 10.0584 7.87109 12.5373C7.87109 15.0161 9.89924 17.0443 12.3781 17.0443C14.8569 17.0443 16.8851 15.0161 16.8851 12.5373C16.8851 10.0584 14.8569 8.03027 12.3781 8.03027ZM12.3781 16.0427C10.4501 16.0427 8.87265 14.4653 8.87265 12.5373C8.87265 10.6093 10.4501 9.03183 12.3781 9.03183C14.3061 9.03183 15.8835 10.6093 15.8835 12.5373C15.8835 14.4653 14.3061 16.0427 12.3781 16.0427Z\" fill=\"currentColor\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2670_175\">\n<rect width=\"24.0373\" height=\"24.0373\" fill=\"currentColor\" transform=\"translate(0.359375 0.518555)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"thumbs_up\": `<svg width=\"25\" height=\"25\" viewBox=\"0 0 25 25\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2670_160)\">\n<path d=\"M2.61542 11.5669C2.33965 11.5669 2.11401 11.7925 2.11401 12.0683V21.6952C2.11401 21.971 2.33965 22.1967 2.61542 22.1967C2.89119 22.1967 3.11682 21.971 3.11682 21.6952V12.0683C3.11682 11.7925 2.89119 11.5669 2.61542 11.5669Z\" fill=\"currentColor\"/>\n<path d=\"M22.1453 17.8596C22.1453 17.2328 21.8696 16.6562 21.4183 16.2801C21.8696 15.9041 22.1453 15.3275 22.1453 14.7007C22.1453 13.8233 21.6189 13.0712 20.8417 12.7703C21.0924 12.4193 21.2177 12.0182 21.2177 11.5669C21.2177 10.9903 20.9921 10.4388 20.6161 10.0627C20.24 9.68668 19.7135 9.48612 19.1369 9.48612C19.1369 9.48612 19.1369 9.48612 19.1118 9.48612C19.0617 9.48612 17.4321 9.48612 16.1034 9.48612H15.4265L16.6299 6.75347V6.7284C16.8555 6.12672 16.8305 5.47489 16.5547 4.89828C16.2789 4.32166 15.8026 3.8704 15.226 3.66984C13.9975 3.21858 12.6437 3.84533 12.1674 5.0487L10.0114 9.76189C10.0114 9.78696 9.9863 9.78696 9.9863 9.81203C9.71052 10.4889 9.08377 11.6171 7.95561 11.6171H6.12549C5.0224 11.6171 4.11987 12.5196 4.11987 13.6227V20.2412C4.11987 20.7677 4.32043 21.2942 4.69649 21.6702C5.07254 22.0463 5.57394 22.2468 6.12549 22.2468L18.2344 22.2218C19.7637 22.2218 20.3653 21.595 20.6161 21.0685C20.8166 20.6674 20.8166 20.2412 20.7414 19.8652C21.5687 19.5393 22.1453 18.7621 22.1453 17.8596ZM20.0896 18.9626C19.9141 18.9626 19.7386 19.088 19.6383 19.2384C19.538 19.4139 19.5631 19.6395 19.6885 19.79C19.7386 19.8652 19.8639 20.2914 19.7135 20.6173C19.4879 21.0685 18.7859 21.1688 18.2595 21.1688L6.15056 21.1939C5.87479 21.1939 5.62408 21.0936 5.44859 20.8931C5.24803 20.6925 5.14775 20.4418 5.14775 20.1911V13.5726C5.14775 13.021 5.59901 12.5698 6.15056 12.5698H7.98068C9.23419 12.5698 10.2871 11.6923 10.939 10.163L13.095 5.42475C13.095 5.42475 13.095 5.39968 13.1201 5.39968C13.3708 4.69772 14.173 4.32166 14.875 4.59744C15.5769 4.84814 15.953 5.65038 15.7023 6.35235L14.1981 9.78696C14.1229 9.93738 14.1479 10.1129 14.2482 10.2633C14.3485 10.4137 14.4989 10.4889 14.6744 10.4889H16.1034C17.4572 10.4889 19.0868 10.4889 19.1118 10.4889C19.4127 10.4889 19.6885 10.5892 19.889 10.7898C20.0896 10.9903 20.2149 11.2661 20.2149 11.592C20.2149 11.9931 19.9893 12.3692 19.6132 12.5698C19.538 12.5948 19.4628 12.645 19.3876 12.645C19.1369 12.7202 18.9865 12.9458 19.0116 13.1965C19.0366 13.4472 19.2623 13.6227 19.513 13.6227H20.0394C20.0645 13.6227 20.0645 13.6227 20.0896 13.6227C20.6662 13.6478 21.1175 14.1241 21.1175 14.7007C21.1175 15.3024 20.6411 15.7787 20.0645 15.7787C19.7887 15.7787 19.5882 16.0044 19.5882 16.2801C19.5882 16.5559 19.8138 16.7815 20.0645 16.7815C20.6662 16.8066 21.1175 17.2829 21.1175 17.8596C21.1425 18.4612 20.6662 18.9376 20.0896 18.9626Z\" fill=\"currentColor\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2670_160\">\n<rect width=\"24.0373\" height=\"24.0373\" fill=\"currentColor\" transform=\"translate(0.11084 0.518555)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"tick\": `<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M8.81719 12.9834C8.65052 12.9834 8.49219 12.9167 8.37552 12.8L6.01719 10.4417C5.77552 10.2 5.77552 9.80002 6.01719 9.55835C6.25885 9.31669 6.65885 9.31669 6.90052 9.55835L8.81719 11.475L13.1005 7.19169C13.3422 6.95002 13.7422 6.95002 13.9839 7.19169C14.2255 7.43335 14.2255 7.83335 13.9839 8.07502L9.25885 12.8C9.14219 12.9167 8.98385 12.9834 8.81719 12.9834Z\" fill=\"currentColor\"/>\n</svg>`,\n \"trash\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2335_4819)\">\n<path d=\"M20.375 5.1H15.85C15.6 3.35 14.15 2 12.4 2C10.65 2 9.175 3.35 8.925 5.1H4.5C4.225 5.1 4 5.325 4 5.6C4 5.875 4.225 6.1 4.5 6.1H5.5V19.95C5.5 21.075 6.425 22 7.525 22H17.3C18.425 22 19.325 21.075 19.325 19.95V6.1H20.325C20.6 6.1 20.825 5.875 20.825 5.6C20.825 5.325 20.65 5.1 20.375 5.1ZM12.4 3C13.6 3 14.625 3.9 14.85 5.1H9.95C10.175 3.9 11.175 3 12.4 3ZM18.375 19.95C18.375 20.525 17.9 21 17.35 21H7.55C6.975 21 6.525 20.525 6.525 19.95V6.1H18.375V19.95Z\" fill=\"#2175D9\"/>\n<path d=\"M12.4001 18C12.6751 18 12.9001 17.775 12.9001 17.5V9.62495C12.9001 9.34995 12.6751 9.12495 12.4001 9.12495C12.1251 9.12495 11.9001 9.34995 11.9001 9.62495V17.5C11.9001 17.775 12.1251 18 12.4001 18Z\" fill=\"#2175D9\"/>\n<path d=\"M15.3999 18C15.6749 18 15.8999 17.775 15.8999 17.5V9.62495C15.8999 9.34995 15.6749 9.12495 15.3999 9.12495C15.1249 9.12495 14.8999 9.34995 14.8999 9.62495V17.5C14.8999 17.775 15.1249 18 15.3999 18Z\" fill=\"#2175D9\"/>\n<path d=\"M9.39983 18C9.67483 18 9.89983 17.775 9.89983 17.5V9.62495C9.89983 9.34995 9.67483 9.12495 9.39983 9.12495C9.12483 9.12495 8.89983 9.34995 8.89983 9.62495V17.5C8.89983 17.775 9.12483 18 9.39983 18Z\" fill=\"#2175D9\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2335_4819\">\n<rect width=\"24\" height=\"24\" fill=\"white\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"trash_circle\": `<svg width=\"56\" height=\"56\" viewBox=\"0 0 56 56\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect width=\"56\" height=\"56\" rx=\"28\" fill=\"#E00F0F\" fill-opacity=\"0.2\"/>\n<path d=\"M40.7391 16.96H33.4991C33.0991 14.16 30.7791 12 27.9791 12C25.1791 12 22.8191 14.16 22.4191 16.96H15.3391C14.8991 16.96 14.5391 17.32 14.5391 17.76C14.5391 18.2 14.8991 18.56 15.3391 18.56H16.9391V40.72C16.9391 42.52 18.4191 44 20.1791 44H35.8191C37.6191 44 39.0591 42.52 39.0591 40.72V18.56H40.6591C41.0991 18.56 41.4591 18.2 41.4591 17.76C41.4591 17.32 41.1791 16.96 40.7391 16.96ZM27.9791 13.6C29.8991 13.6 31.5391 15.04 31.8991 16.96H24.0591C24.4191 15.04 26.0191 13.6 27.9791 13.6ZM37.5391 40.72C37.5391 41.64 36.7791 42.4 35.8991 42.4H20.2191C19.2991 42.4 18.5791 41.64 18.5791 40.72V18.56H37.5391V40.72Z\" fill=\"#E00F0F\"/>\n<path d=\"M27.9797 37.6C28.4197 37.6 28.7797 37.24 28.7797 36.8V24.2C28.7797 23.76 28.4197 23.4 27.9797 23.4C27.5397 23.4 27.1797 23.76 27.1797 24.2V36.8C27.1797 37.24 27.5397 37.6 27.9797 37.6Z\" fill=\"#E00F0F\"/>\n<path d=\"M32.7805 37.6C33.2205 37.6 33.5805 37.24 33.5805 36.8V24.2C33.5805 23.76 33.2205 23.4 32.7805 23.4C32.3405 23.4 31.9805 23.76 31.9805 24.2V36.8C31.9805 37.24 32.3405 37.6 32.7805 37.6Z\" fill=\"#E00F0F\"/>\n<path d=\"M23.1789 37.6C23.6189 37.6 23.9789 37.24 23.9789 36.8V24.2C23.9789 23.76 23.6189 23.4 23.1789 23.4C22.7389 23.4 22.3789 23.76 22.3789 24.2V36.8C22.3789 37.24 22.7389 37.6 23.1789 37.6Z\" fill=\"#E00F0F\"/>\n</svg>`,\n \"user\": `<svg width=\"25\" height=\"25\" viewBox=\"0 0 25 25\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2670_168)\">\n<path d=\"M13.5308 11.3354C15.3336 10.7345 16.6356 9.03183 16.6356 7.05376C16.6606 4.54987 14.6325 2.52173 12.1286 2.52173C9.62472 2.52173 7.59657 4.54987 7.59657 7.05376C7.59657 9.05687 8.89859 10.7345 10.7014 11.3354C9.42441 11.6108 8.27262 12.2118 7.32114 13.1382C5.96905 14.4402 5.24292 16.1929 5.24292 18.0709V20.5497C5.24292 21.6514 6.14432 22.5528 7.24603 22.5528H17.0112C18.1129 22.5528 19.0143 21.6514 19.0143 20.5497V18.2211C19.0143 14.8659 16.6356 12.0115 13.5308 11.3354ZM8.59813 7.05376C8.59813 5.10073 10.1756 3.52328 12.1286 3.52328C14.0816 3.52328 15.6591 5.10073 15.6591 7.05376C15.6591 9.00679 14.0816 10.5592 12.1286 10.5592C10.1756 10.5592 8.59813 8.98175 8.59813 7.05376ZM18.0127 20.5497C18.0127 21.1006 17.562 21.5513 17.0112 21.5513H7.24603C6.69517 21.5513 6.24447 21.1006 6.24447 20.5497V18.0709C6.24447 16.4684 6.87044 14.966 8.02223 13.8643C9.12394 12.7877 10.5762 12.1867 12.1286 12.1867C12.1787 12.1867 12.2288 12.1867 12.2788 12.1867C15.4337 12.2618 18.0127 14.966 18.0127 18.196V20.5497Z\" fill=\"currentColor\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2670_168\">\n<rect width=\"24.0373\" height=\"24.0373\" fill=\"currentColor\" transform=\"translate(0.235107 0.518555)\"/>\n</clipPath>\n</defs>\n</svg>`,\n \"warning\": `<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_2269_3652)\">\n<path d=\"M21.731 18.3973L13.8574 4.1498C13.5074 3.44992 12.8076 3 12.0077 3C11.2078 3 10.508 3.42493 10.158 4.1498L2.25941 18.3973C1.90947 19.0472 1.90947 19.822 2.28441 20.4719C2.65934 21.1218 3.33422 21.4967 4.08409 21.4967H19.9063C20.6562 21.4967 21.3311 21.1218 21.706 20.4719C22.0809 19.822 22.1059 19.0472 21.731 18.3973ZM20.8561 19.972C20.6562 20.297 20.3062 20.4969 19.9063 20.4969H4.10908C3.70915 20.4969 3.35922 20.297 3.15925 19.972C2.95929 19.6471 2.95929 19.2221 3.13426 18.8972L11.0079 4.62471V4.59972C11.2078 4.22478 11.5578 3.99982 11.9827 3.99982C12.4076 3.99982 12.7576 4.22478 12.9575 4.62471L20.8311 18.8972C21.0561 19.2221 21.0561 19.6221 20.8561 19.972Z\"/>\n<path d=\"M11.9077 15.2728C12.1827 15.2728 12.4077 15.0479 12.4077 14.7729V8.49903C12.4077 8.22408 12.1827 7.99911 11.9077 7.99911C11.6328 7.99911 11.4078 8.22408 11.4078 8.49903V14.7729C11.4078 15.0479 11.6328 15.2728 11.9077 15.2728Z\"/>\n<path d=\"M11.9078 17.9724C12.3219 17.9724 12.6577 17.6367 12.6577 17.2225C12.6577 16.8084 12.3219 16.4727 11.9078 16.4727C11.4937 16.4727 11.1579 16.8084 11.1579 17.2225C11.1579 17.6367 11.4937 17.9724 11.9078 17.9724Z\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2269_3652\">\n<rect width=\"24\" height=\"24\" fill=\"currentColor\"/>\n</clipPath>\n</defs>\n</svg>`,\n};\n","import { LitElement, html, css, TemplateResult } from 'lit';\r\nimport { property, state } from 'lit/decorators.js';\r\nimport { ICONS } from './icons';\r\n\r\nexport class IconComponent extends LitElement {\r\n @property({ type: String }) name = '';\r\n @property({ type: String }) size = '24px';\r\n @property({ type: String }) color = '';\r\n\r\n @state() private svgTemplate: TemplateResult | null = null;\r\n\r\n static styles = css`\r\n :host {\r\n display: inline-flex;\r\n width: var( --icon-size, 24px );\r\n height: var( --icon-size, 24px );\r\n align-items: center;\r\n justify-content: center;\r\n }\r\n\r\n svg {\r\n width: var( --icon-size, 24px );\r\n height: var( --icon-size, 24px );\r\n fill: var( --icon-color, currentColor );\r\n }\r\n\r\n .custom-icon {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n `;\r\n\r\n // El método 'updated' es el lugar correcto para realizar efectos secundarios\r\n public updated( changedProps: Map<string, unknown> ) {\r\n super.updated( changedProps );\r\n\r\n if ( changedProps.has( 'size' ) ) this.style.setProperty( '--icon-size', this.size );\r\n if ( changedProps.has( 'color' ) ) this.style.setProperty( '--icon-color', this.color );\r\n \r\n if ( changedProps.has( 'name' ) && this.name ) this.loadIcon();\r\n }\r\n\r\n async loadIcon() {\r\n try {\r\n let svgText: string = ICONS[ this.name ];\r\n if ( !svgText ) throw new Error( 'Icon not found' );\r\n\r\n // Ajusta el SVG para que herede el color\r\n svgText = svgText.replace(/fill=\"[^\"]*\"/g, '');\r\n svgText = svgText.replace(/fill='[^']*'/g, '');\r\n\r\n const parser: DOMParser = new DOMParser();\r\n const svgDoc: Document = parser.parseFromString( svgText, 'image/svg+xml' );\r\n const svgElement: HTMLElement = svgDoc.documentElement;\r\n \r\n // Convierte el elemento SVG a una plantilla de Lit-HTML\r\n this.svgTemplate = html` ${ svgElement } `;\r\n } catch ( error ) {\r\n console.error( `❌ Error cargando icono ${ this.name }:`, error );\r\n this.innerHTML = ' <span>⚠️</span> ';\r\n }\r\n }\r\n\r\n public render() {\r\n if ( !this.svgTemplate ) return html``;\r\n\r\n return html`\r\n <div class=\"custom-icon\" style=\"color: ${ this.color };\">\r\n ${ this.svgTemplate }\r\n </div>\r\n `;\r\n }\r\n}\r\n\r\ncustomElements.define('randstad-icon', IconComponent);","import { html, css, nothing, TemplateResult } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { bodyL, bodyM } from '../styles/fontStyles';\nimport { tooltipStyles } from \"../styles/tooltip\";\nimport { BaseControl } from '../helpers/BaseControl';\nimport { mixStyles } from '../styles/mix';\nimport { errorStyles } from '../styles/error';\nimport { scrollbarStyles } from '../styles/scrollbar';\n\nconst REGEX_NO_EMOJIS = /[\\p{Extended_Pictographic}\\u{FE0F}\\u{1F3FB}-\\u{1F3FF}\\u{1F9B0}-\\u{1F9B3}\\u{200D}]/gu;\n/**\n * LinkedIn input component with fixed prefix and editable username\n * \n * Features:\n * - Fixed prefix \"linkedin.com/in/\" (non-editable)\n * - Editable input for username\n * - Character restrictions: only letters, numbers, and hyphens\n * - Minimum 3 characters validation\n * - Maximum 100 characters validation\n * - Auto-extract username from full LinkedIn URL on paste\n * - Validates pasted content for invalid formats\n * - Angular Reactive Forms Support via ControlValueAccessor\n */\n@customElement('randstad-social-input')\nexport class RandstadSocialMediaInput extends BaseControl {\n /** Tipo de plataforma: linkedin, facebook o google */\n @property({ type: String }) platform: 'linkedin' | 'facebook' | 'google' = 'linkedin';\n\n @property({ type: String }) size: 'sm' | 'md' | 'lg' = 'md';\n\n @property({ type: Number }) maxLength: number = 100;\n\n @property({ type: Boolean, reflect: true }) isPasswordVisible = false;\n\n /** \n * Patrón de expresiones regulares personalizado para la desinfección de caracteres. \n * Si no se proporciona, utiliza el valor predeterminado: /[^a-zA-Z0-9-]/g \n * Ejemplo: /[^a-zA-Z0-9-_]/g para permitir guiones bajos */\n @property({ type: String }) customSanitizeRegex: string | undefined = undefined;\n\n /** \n * Patrón de expresiones regulares personalizado para validación de URL por plataforma.\n * Si no se proporciona, utiliza valores por defecto:\n * - linkedin: /^(https?:\\/\\/)?(www\\.)?linkedin\\.com\\/in\\/([a-zA-Z0-9-]+)\\/?.*$/i\n * - facebook: /^(https?:\\/\\/)?(www\\.)?facebook\\.com\\/([azA-Z0-9.]+)\\/?.*$/i\n */\n @property({ type: String }) customUrlValidationRegex: string | undefined = undefined;\n\n @property({ type: String, hasChanged: () => false }) value: string = '';\n\n @state() private _inputValue: string = '';\n\n @state() private _showFormatError: boolean = false;\n\n // ControlValueAccessor callbacks\n private _onChangeFn: (value: any) => void = () => { };\n private _onTouchedFn: () => void = () => { };\n\n static styles = [\n scrollbarStyles,\n css`\n ${mixStyles}\n ${errorStyles}\n ${tooltipStyles}\n\n .linkedin-input-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n }\n\n .input-wrapper {\n display: flex;\n align-items: center;\n width: 100%;\n padding:16px;\n box-sizing: border-box;\n border: 1px solid var(--secondary-color-10);\n border-radius: 4px;\n background-color: white;\n transition: border-color 0.3s ease, box-shadow 0.3s ease;\n overflow: hidden;\n }\n\n .input-wrapper:focus-within {\n border: 2px solid var(--primary-color);\n background-color: #ffffff;\n }\n\n /* Hover normal (sin error ni foco) */\n .linkedin-input-container:not(.error):not(:focus-within) .input-wrapper:hover {\n box-shadow: 0px 0px 0px 4px var(--form-hover-shadow);\n }\n\n /* Hover con error (sin foco) */\n .linkedin-input-container.error:not(:focus-within) .input-wrapper:hover {\n box-shadow: 0px 0px 0px 4px var(--ui-negative-pink-shadow);\n }\n\n .input-wrapper.error {\n border-color: var(--ui-negative);\n bo\n }\n\n .input-wrapper.disabled {\n background-color: var(--secondary-color-10);\n cursor: default;\n }\n\n .input-wrapper.disabled .fixed-prefix,\n .input-wrapper.disabled .user-input {\n color: #9FA3B3;\n cursor: default;\n }\n\n .fixed-prefix {\n ${bodyL}\n color: var(--secondary-color);\n white-space: nowrap;\n user-select: none;\n background-color: transparent;\n border: none;\n }\n\n .divider {\n width: 1px;\n height: 24px;\n background-color: var(--secondary-color-10);\n margin: 0 6px;\n flex-shrink: 0;\n }\n\n .user-input {\n ${bodyL}\n flex: 1;\n border: none;\n outline: none;\n background-color: transparent;\n color: var(--secondary-color);\n width: 100%;\n min-width: 0;\n }\n\n .user-input::placeholder {\n color: #9FA3B3;\n }\n\n .user-input:disabled {\n cursor: default;\n }\n\n .clean-button {\n position: relative;\n background: transparent;\n border: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n margin-right: 8px;\n flex-shrink: 0;\n }\n\n .clean-button randstad-icon {\n width: 24px;\n height: 24px;\n color: var(--primary-color);\n }\n\n .clean-button:disabled {\n cursor: default;\n }\n\n .clean-button:disabled randstad-icon {\n color: #9FA3B3;\n }\n\n /* Error state styles */\n .linkedin-input-container.error .input-wrapper {\n border-color: var(--ui-negative);\n }\n\n .linkedin-input-container.error .input-wrapper:focus-within {\n border-width: 1px;\n }\n `\n ];\n\n /**\n * Prefijo fijo según la plataforma\n */\n private get _fixedPrefix(): string {\n switch (this.platform) {\n case 'facebook':\n return 'facebook.com/';\n case 'google':\n return '@gmail.com';\n case 'linkedin':\n default:\n return 'linkedin.com/in/';\n }\n }\n\n /**\n * Comprueba si se debe mostrar el sufijo después de la entrada (para Google)\n */\n private get _isSuffix(): boolean {\n return this.platform === 'google';\n }\n\n /**\n * Comprueba si se debe mostrar el prefijo para (linkedin o facebook)\n */\n private get _isPrefix(): boolean {\n return this.platform === 'linkedin' || this.platform === 'facebook';\n }\n\n /**\n * Placeholder text\n */\n private get _placeholder(): string {\n return this.placeholder || 'tu-usuario';\n }\n\n /**\n * Sanitization Regex (default)\n */\n private get _sanitizeRegex(): RegExp {\n if (this.customSanitizeRegex) {\n try {\n return new RegExp(this.customSanitizeRegex, 'g');\n } catch {\n return /[^a-zA-Z0-9-]/g;\n }\n }\n return /[^a-zA-Z0-9-]/g;\n }\n\n private get _sentPrefixLength(): number {\n switch (this.platform) {\n case 'facebook': return 25; // https://www.facebook.com/\n case 'google': return 10; // @gmail.com\n case 'linkedin':\n default: return 28; // https://www.linkedin.com/in/\n }\n }\n\n /** Getter para calcular el máximo permitido de forma consistente */\n private get _maxCharsAllowed(): number {\n const totalMax = Number(this.maxLength) || 100;\n const platformPrefix = this.platform === 'facebook' ? 25\n : this.platform === 'google' ? 10\n : 25;\n return totalMax - platformPrefix;\n }\n\n /** Handle both input and paste - ensures value never exceeds max */\n private _handleInputOrPaste(event: Event): void {\n const target = event.target as HTMLInputElement;\n const originalValue = target.value;\n const start = target.selectionStart || 0;\n\n const textBeforeCursor = originalValue.slice(0, start);\n const cleanTextBeforeCursor = textBeforeCursor.replace(REGEX_NO_EMOJIS, '');\n const newPosition = cleanTextBeforeCursor.length;\n\n let value = originalValue.replace(REGEX_NO_EMOJIS, '');\n if (value.startsWith(' ')) value = value.trimStart();\n\n const urlRegex = this._urlValidationRegex;\n if (urlRegex) {\n const match = value.match(urlRegex);\n if (match) {\n value = this.platform === 'google' ? match[1] : match[3];\n value = value.replace(this._sanitizeRegex, '');\n }\n }\n\n const maxChars = this._maxCharsAllowed;\n if (value.length > maxChars) {\n value = value.slice(0, maxChars);\n }\n\n target.value = value;\n this._inputValue = value;\n\n this._sanitizeRegex.lastIndex = 0;\n this._showFormatError = this._sanitizeRegex.test(value);\n\n const isActuallyValid = !this._showFormatError && value.length >= 3;\n const finalValue = isActuallyValid ? this._getFullValue(value) : value;\n this.value = finalValue;\n\n const safePosition = Math.min(newPosition, value.length);\n target.setSelectionRange(safePosition, safePosition);\n\n this._onChangeFn(finalValue);\n this.dispatchEvent(new CustomEvent('valueChanged', { detail: finalValue }));\n }\n\n /**\n * Regex URL para la plataforma actual\n */\n private get _urlValidationRegex(): RegExp | null {\n if (this.customUrlValidationRegex) {\n try { return new RegExp(this.customUrlValidationRegex, 'i'); } catch { return null; }\n }\n\n switch (this.platform) {\n case 'linkedin':\n return /^(https?:\\/\\/)?(www\\.)?linkedin\\.com\\/in\\/([a-zA-Z0-9-]+)\\/?.*$/i;\n case 'facebook':\n return /^(https?:\\/\\/)?(www\\.)?facebook\\.com\\/([a-zA-Z0-9-]+)\\/?.*$/i;\n case 'google':\n // Captura el nombre de usuario antes del @gmail.com\n return /^([a-zA-Z0-9-._]+)@gmail\\.com$/i;\n default:\n return null;\n }\n }\n\n /**\n * Validation error\n */\n private get _hasMinLengthError(): boolean {\n return this._inputValue.length > 0 && this._inputValue.length < 3;\n }\n\n /**\n * Get the error message to display\n */\n private get _errorMessageToDisplay(): string | null {\n if (this._hasMinLengthError) {\n return 'debés ingresar como mínimo 3 caracteres';\n }\n if (this._showFormatError) {\n switch (this.platform) {\n case 'facebook':\n return 'la URL de facebook no es válida';\n case 'google':\n return 'la URL de tu cuenta de Google no es válida';\n case 'linkedin':\n default:\n return 'la URL de linkedIn no es válida';\n }\n }\n return this.errorMessage;\n }\n\n /**\n * Check if there's any error state\n */\n private get _hasError(): boolean {\n return this.error || this._hasMinLengthError || this._showFormatError;\n }\n\n private _handleKeyDown(event: KeyboardEvent): void {\n const key = event.key;\n const input = event.target as HTMLInputElement;\n\n // Permitir teclas de control (Backspace, Delete, ArrowKeys, Tab, etc.)\n if (key.length > 1) return;\n\n if (REGEX_NO_EMOJIS.test(key)) {\n REGEX_NO_EMOJIS.lastIndex = 0;\n event.preventDefault();\n return;\n }\n\n if (input.value.length === 0 && key === ' ') {\n event.preventDefault();\n return;\n }\n\n // Regex para validar que sea alfanumérico (solo letras y números, guion)\n const isAlphanumeric = /^[a-zA-Z0-9-]$/.test(key);\n const totalMax = Number(this.maxLength) || 100;\n const maxCharsAllowed = totalMax - this._sentPrefixLength;\n // Si el input está vacío y la tecla no es alfanumérica, bloqueamos la acción\n if (input.value.length === 0 && !isAlphanumeric) {\n event.preventDefault();\n return;\n }\n\n if (!isAlphanumeric && !isAlphanumeric) {\n event.preventDefault();\n return;\n }\n\n if (input.value.length >= this._maxCharsAllowed && input.selectionStart === input.selectionEnd) {\n event.preventDefault();\n }\n }\n\n /**\n * Construye el valor final completo basado en la plataforma actual\n */\n private _getFullValue(username: string): string {\n if (!username) return '';\n\n switch (this.platform) {\n case 'facebook':\n return `https://www.facebook.com/${username}`;\n case 'google':\n return `${username}@gmail.com`;\n case 'linkedin':\n default:\n return `https://www.linkedin.com/in/${username}`;\n }\n }\n\n /**\n * Extrae el usuario de una URL completa según la plataforma\n */\n private _extractUsernameFromValue(fullValue: string): string {\n if (!fullValue) return '';\n\n const urlRegex = this._urlValidationRegex;\n if (urlRegex) {\n const match = fullValue.match(urlRegex);\n if (match) {\n return this.platform === 'google' ? match[1] : match[3];\n }\n }\n\n return fullValue;\n }\n\n /**\n * Sincroniza el valor externo (value) con el valor interno (_inputValue)\n */\n protected updated(changedProperties: Map<string, unknown>): void {\n super.updated?.(changedProperties);\n\n if (changedProperties.has('value') && this.value) {\n const extractedUsername = this._extractUsernameFromValue(this.value);\n if (extractedUsername !== this._inputValue) {\n this._inputValue = extractedUsername;\n\n // Dispatch after update completes to avoid update cycle issues\n this.updateComplete.then(() => {\n const fullValue = this._getFullValue(extractedUsername);\n this.dispatchEvent(new CustomEvent('valueChanged', { detail: fullValue }));\n });\n }\n }\n }\n\n /**\n * Render the component\n */\n public render() {\n const formStyles: string = this.labelColor ? `--label-color: ${this.labelColor};` : '';\n const totalMax = Number(this.maxLength) || 100;\n const allowedChars = totalMax - this._sentPrefixLength;\n return html`\n <div\n class=\"linkedin-input-container ${this._hasError ? 'error' : ''} ${this.disabled ? 'disabled' : ''}\"\n style=\"${formStyles}\"\n >\n ${this.renderLabelContainer()}\n\n <div class=\"input-wrapper ${this._hasError ? 'error' : ''} ${this.disabled ? 'disabled' : ''}\">\n ${this._isPrefix\n ? html`\n <span class=\"fixed-prefix\">${this._fixedPrefix}</span>\n <div class=\"divider\"></div>\n `\n : nothing\n }\n \n <input\n class=\"user-input\"\n type=\"text\"\n placeholder=${this._placeholder}\n .value=${this._inputValue}\n ?disabled=${this.disabled}\n @keydown=${this._handleKeyDown}\n @input=${this._handleInputOrPaste}\n inputmode=${this.platform === 'google' ? 'email' : 'url'}\n maxlength=${allowedChars > 0 ? allowedChars : nothing}\n />\n\n ${this._isSuffix\n ? html`\n <div class=\"divider\"></div>\n <span class=\"fixed-prefix\">${this._fixedPrefix}</span>\n `\n : nothing\n }\n </div> \n\n ${this.renderHelper()} \n\n ${this._hasError\n ? html`\n <div class=\"error-message\">\n ${this._errorMessageToDisplay}\n </div>\n `\n : nothing\n }\n </div>\n `;\n }\n\n /**\n * Override renderHelper to use custom helper text\n */\n public renderHelper() {\n const helperText = this.helper || 'pegá la URL completa o sólo tu usuario';\n const helperInlineStyles = `text-align: ${this.helperAlign ?? 'left'};`;\n\n return html`\n ${helperText\n ? html`\n <p \n class=\"helper-description\"\n style=${helperInlineStyles}\n >\n ${helperText}\n </p>\n `\n : nothing\n }\n `;\n }\n /**\n * Angular: Escribe el valor en el componente\n */\n public writeValue(value: unknown): void {\n if (value && typeof value === 'string') {\n const extractedUsername = this._extractUsernameFromValue(value);\n if (extractedUsername !== this._inputValue) {\n this._inputValue = extractedUsername;\n this.value = value;\n this.requestUpdate();\n }\n } else if (!value) {\n this._inputValue = '';\n this.value = '';\n this.requestUpdate();\n }\n }\n\n /**\n * Angular: Registra el callback para cambios\n */\n public registerOnChange(fn: (value: any) => void): void {\n this._onChangeFn = fn;\n }\n\n /**\n * Angular: Registra el callback para blur (touched)\n */\n public registerOnTouched(fn: () => void): void {\n this._onTouchedFn = fn;\n }\n\n /**\n * Angular: Configura el estado disabled del componente\n */\n public setDisabledState(isDisabled: boolean): void {\n this.disabled = isDisabled;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'randstad-social-input': RandstadSocialMediaInput;\n }\n}","import { LitElement, html, css } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\nimport { bodyM } from '../styles/fontStyles';\r\n\r\n@customElement('randstad-notice')\r\nexport class RandstadNotice extends LitElement {\r\n @property({ type: String }) type: string = 'informative';\r\n @property({ type: String }) icon: string = 'info';\r\n @property({ type: String }) message: string = 'Este es un mensaje.';\r\n @property({ type: Boolean }) open: boolean = false;\r\n\r\n static styles = css`\r\n :host {\r\n display: block;\r\n font-family: 'Graphik', sans-serif;\r\n }\r\n\r\n .container {\r\n ${bodyM}\r\n display: flex;\r\n align-items: flex-start;\r\n gap: 8px;\r\n border-radius: 8px;\r\n padding: 16px;\r\n color: var(--secondary-color);\r\n }\r\n\r\n .icon {\r\n font-size: 34px;\r\n flex-shrink: 0;\r\n }\r\n\r\n .hidden {\r\n display: none;\r\n }\r\n\r\n .success {\r\n border: 1px solid var(--ui-positive);\r\n background: var(--ui-positive-5);\r\n --icon-color: var(--ui-positive);\r\n }\r\n\r\n .error {\r\n border: 1px solid var(--ui-negative);\r\n background: var(--ui-negative-5);\r\n --icon-color: var(--ui-negative);\r\n }\r\n\r\n .warning {\r\n border: 1px solid var(--ui-warning);\r\n background: var(--ui-warning-10);\r\n --icon-color: var(--ui-warning);\r\n }\r\n \r\n .informative {\r\n border: 1px solid var(--ui-informative);\r\n background: var(--ui-informative-10);\r\n --icon-color: var(--ui-informative);\r\n }\r\n `;\r\n\r\n public render() {\r\n return html`\r\n <div class=\"container ${ this.open ? '' : 'hidden' } ${ this.type }\">\r\n <randstad-icon\r\n name=\"${ this.icon }\"\r\n >\r\n </randstad-icon>\r\n\r\n <span class=\"message\">${ this.message }</span>\r\n </div>\r\n `;\r\n }\r\n}","import { LitElement, html, css, nothing } from 'lit';\r\nimport { customElement, property, state } from 'lit/decorators.js';\r\nimport { titleS, bodyM } from '../styles/fontStyles';\r\nimport { scrollbarStyles } from '../styles/scrollbar';\r\nimport { focusStyles } from '../styles/focus';\r\n\r\nimport '../components/Notice';\r\nimport '../components/Button';\r\n\r\n@customElement('custom-modal')\r\nexport class CustomModal extends LitElement {\r\n @property({ type: Boolean, reflect: true }) open = false;\r\n\r\n @property({ type: String }) title = 'Título del modal';\r\n @property({ type: String }) subtitle?: string;\r\n\r\n @property({ type: Boolean }) showNotice = false;\r\n @property({ type: String }) noticeType: 'success' | 'error' | 'warning' | 'informative' = 'informative';\r\n @property({ type: String }) noticeMessage = '';\r\n @property({ type: String }) noticeIcon = 'info';\r\n\r\n @property({ type: Boolean }) showPrimaryButton = false;\r\n @property({ type: String }) primaryButtonLabel = 'Aceptar';\r\n\r\n @property({ type: Boolean }) showSecondaryButton = false;\r\n @property({ type: String }) secondaryButtonLabel = 'Cancelar';\r\n\r\n @property({ type: Boolean }) isFooterCustom = false;\r\n @property({ type: Boolean }) isPrimaryLoader = false;\r\n @property({ type: Boolean }) isPrimaryDisabled = false;\r\n\r\n @property({ type: String }) modalWidth = '500px';\r\n @property({ type: String }) modalHeight = '80dvh';\r\n @property({ type: String }) maxHeight = '90dvh';\r\n\r\n @property({ type: Boolean }) hideFooter = false;\r\n\r\n @property({ type: String }) paddingModalBody?: string;\r\n\r\n @state() private scrollable = false;\r\n @state() private hasDropdownOpen = false;\r\n @state() private hasCalendarOpen = false;\r\n\r\n static styles = [ \r\n scrollbarStyles,\r\n css`\r\n ${ focusStyles }\r\n \r\n :host {\r\n font-family: 'Graphik', sans-serif;\r\n display: none;\r\n --modal-body-padding: 24px;\r\n }\r\n\r\n :host([open]) {\r\n display: block;\r\n z-index: 9999;\r\n }\r\n\r\n .overlay {\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n z-index: 9999;\r\n display: flex;\r\n background: rgba(15, 25, 65, 0.4);\r\n justify-content: center;\r\n align-items: center;\r\n }\r\n\r\n .modal {\r\n width: 100%;\r\n height: var(--modal-height);\r\n max-height: var(--modal-max-height);\r\n background: var(--brand-off-white);\r\n max-width: var(--modal-width);\r\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\r\n display: flex;\r\n flex-direction: column;\r\n border-radius: 8px;\r\n overflow: hidden;\r\n }\r\n\r\n .modal-body {\r\n overflow-y: auto;\r\n flex: 1;\r\n }\r\n\r\n .modal-footer {\r\n justify-content: flex-end;\r\n }\r\n\r\n .modal-footer.one-button randstad-button {\r\n width: 100%;\r\n }\r\n\r\n .modal-footer.two-buttons randstad-button {\r\n width: 50%;\r\n }\r\n\r\n /* Estilos para dispositivos pequeños (<= 940px) */\r\n @media (max-width: 940px) {\r\n .modal {\r\n /* Se estira para ocupar casi toda la pantalla */\r\n width: 100% !important; \r\n height: 100% !important;\r\n max-width: none !important;\r\n max-height: none !important;\r\n margin: 0 !important;\r\n border-radius: 0 !important;\r\n }\r\n\r\n .modal-header,\r\n .modal-body,\r\n .modal-footer {\r\n padding: 0; \r\n }\r\n }\r\n\r\n /* Estilos comunes a ambos tamaños de pantalla */\r\n .modal-header {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n justify-content: space-between;\r\n align-items: center;\r\n padding: 16px;\r\n border-bottom: 1px solid var(--secondary-color-20);\r\n }\r\n\r\n .modal-header-content {\r\n display: flex;\r\n gap: 32px;\r\n width: 100%;\r\n justify-content: space-between;\r\n align-items: center;\r\n }\r\n\r\n .titles-container {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n flex-grow: 1;\r\n }\r\n\r\n .modal-title {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n ${ titleS }\r\n font-style: regular;\r\n font-size: 24px;\r\n line-height: 32px;\r\n letter-spacing: -1px;\r\n margin: 0;\r\n color: var(--secondary-color);\r\n }\r\n\r\n .modal-subtitle {\r\n ${ bodyM }\r\n margin: 0;\r\n color: var(--secondary-color-60);\r\n }\r\n\r\n .modal-header randstad-notice {\r\n width: 100%;\r\n }\r\n\r\n .modal-close {\r\n background: none;\r\n border: none;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding: 0;\r\n width: 40px;\r\n height: 40px;\r\n border-radius: 50%;\r\n transition: background-color 0.2s ease;\r\n }\r\n\r\n .modal-close:hover {\r\n background-color: var(--primary-color-10);\r\n }\r\n\r\n .modal-body {\r\n display: flex;\r\n flex-direction: column;\r\n padding: var(--modal-body-padding, 24px);\r\n gap: 16px;\r\n }\r\n\r\n slot[name=\"content\"].has-dropdown-open {\r\n display: block;\r\n padding-bottom: 40px;\r\n }\r\n\r\n slot[name=\"content\"].has-calendar-open {\r\n display: block;\r\n /* Solo aplica el padding del calendario, no suma el del dropdown */\r\n padding-bottom: 160px;\r\n }\r\n\r\n /* Si ambos están abiertos, prioridad al calendario (160px) */\r\n slot[name=\"content\"].has-dropdown-open.has-calendar-open {\r\n padding-bottom: 160px;\r\n }\r\n\r\n .modal-footer {\r\n display: flex;\r\n padding: 24px;\r\n gap: 16px;\r\n border-top: 1px solid var(--secondary-color-20);\r\n }\r\n\r\n @media ( max-width: 940px ) {\r\n .modal-close:hover {\r\n background-color: transparent;\r\n }\r\n }\r\n `\r\n ];\r\n\r\n private closeModal() {\r\n this.dispatchEvent(new CustomEvent('modal-close'));\r\n }\r\n\r\n public connectedCallback() {\r\n super.connectedCallback();\r\n this.setScrollableMode();\r\n window.addEventListener('resize', this.setScrollableMode);\r\n this.addEventListener('dropdown-toggle', this.handleDropdownOpen as EventListener);\r\n this.addEventListener('calendar-toggle', this.handleDropdownOpen as EventListener);\r\n this.addEventListener('dropdown-toggle-calendar', this.handleCalendarOpen as EventListener);\r\n }\r\n\r\n public disconnectedCallback() {\r\n super.disconnectedCallback();\r\n window.removeEventListener('resize', this.setScrollableMode);\r\n this.removeEventListener('dropdown-toggle', this.handleDropdownOpen as EventListener);\r\n this.removeEventListener('calendar-toggle', this.handleDropdownOpen as EventListener);\r\n this.removeEventListener('dropdown-toggle-calendar', this.handleCalendarOpen as EventListener);\r\n }\r\n\r\n private handleDropdownOpen = (e: Event) => {\r\n const detail = (e as CustomEvent).detail;\r\n if (detail && typeof detail.open === 'boolean') {\r\n this.hasDropdownOpen = detail.open;\r\n } else {\r\n this.hasDropdownOpen = true;\r\n }\r\n };\r\n\r\n private handleCalendarOpen = (e: Event) => {\r\n const detail = (e as CustomEvent).detail;\r\n if (detail && typeof detail.open === 'boolean') {\r\n this.hasCalendarOpen = detail.open;\r\n } else {\r\n this.hasCalendarOpen = true;\r\n }\r\n };\r\n\r\n private setScrollableMode = () => {\r\n this.scrollable = window.innerWidth > 940;\r\n };\r\n\r\n private getFooterClass(): string {\r\n if ( this.isFooterCustom && !this.showPrimaryButton && !this.showSecondaryButton )\r\n return 'footer-custom';\r\n \r\n if ( this.showPrimaryButton && this.showSecondaryButton )\r\n return 'two-buttons';\r\n\r\n return 'one-button';\r\n }\r\n\r\n public render() {\r\n return html`\r\n <div class=\"overlay\" role=\"dialog\" aria-modal=\"true\">\r\n <div class=\"modal\" style=\"--modal-width: ${ this.modalWidth }; --modal-height: ${ this.modalHeight }; --modal-max-height: ${ this.maxHeight };\">\r\n <div class=\"modal-header\">\r\n <div class=\"modal-header-content\">\r\n <div class=\"titles-container\">\r\n <div class=\"modal-title\">${ this.title }\r\n <button class=\"modal-close\" @click=${ this.closeModal } aria-label=\"Cerrar modal\">\r\n <randstad-icon\r\n name=\"close\"\r\n size=\"24\"\r\n .color=${ 'var( --primary-color )' }\r\n >\r\n </randstad-icon>\r\n </button>\r\n </div>\r\n \r\n ${ this.subtitle\r\n ? html`<div class=\"modal-subtitle\">${ this.subtitle }</div>`\r\n : nothing\r\n }\r\n </div> \r\n </div>\r\n\r\n ${this.showNotice\r\n ? html`\r\n <randstad-notice\r\n .open=${true}\r\n .type=${this.noticeType}\r\n .icon=${this.noticeIcon}\r\n .message=${this.noticeMessage}\r\n >\r\n </randstad-notice>\r\n `\r\n : nothing\r\n }\r\n </div>\r\n\r\n <div class=\"modal-body ${this.scrollable ? 'scrollable' : ''}\">\r\n <slot name=\"content\" class=\"${this.hasDropdownOpen ? 'has-dropdown-open' : ''} ${this.hasCalendarOpen ? 'has-calendar-open' : ''}\"></slot>\r\n </div>\r\n \r\n ${!this.hideFooter\r\n ? html`\r\n <div class=\"modal-footer ${ this.getFooterClass() }\">\r\n ${ this.isFooterCustom && !this.showPrimaryButton && !this.showSecondaryButton\r\n ? html` <slot name=\"footer-custom\"></slot> `\r\n : nothing\r\n }\r\n\r\n ${ this.showSecondaryButton\r\n ? html`\r\n <randstad-button\r\n variant=\"button-secondary\"\r\n size=\"md\"\r\n @click=${() => this.dispatchEvent(new CustomEvent('secondary-click'))}\r\n label=${this.secondaryButtonLabel}\r\n >\r\n </randstad-button>\r\n `\r\n : nothing\r\n }\r\n ${ this.showPrimaryButton\r\n ? html`\r\n <randstad-button\r\n variant=\"button-primary\"\r\n size=\"md\"\r\n @click=${() => this.dispatchEvent(new CustomEvent('primary-click'))}\r\n label=${this.primaryButtonLabel}\r\n .loader=${this.isPrimaryLoader}\r\n .disabled=${this.isPrimaryDisabled}\r\n >\r\n </randstad-button>\r\n `\r\n : nothing\r\n }\r\n </div>\r\n `\r\n : nothing\r\n }\r\n </div>\r\n </div>\r\n `;\r\n }\r\n}","import { LitElement, html, css, nothing } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\nimport { titleXS, bodyM, titleXXS } from '../styles/fontStyles';\r\nimport '../components/Button';\r\nimport '../components/Icon';\r\n\r\ninterface PopupAction {\r\n icon: string;\r\n iconColor: string;\r\n label: string;\r\n value: string;\r\n}\r\n\r\n@customElement('custom-popup')\r\nexport class CustomPopup extends LitElement {\r\n @property({ type: Boolean, reflect: true }) open = false;\r\n @property({ type: String }) type: 'default' | 'stacked' | 'other' = 'default';\r\n @property({ type: String }) icon = 'warning';\r\n @property({ type: String }) iconColor = 'var(--primary-color)'\r\n\r\n @property({ type: String }) title = '';\r\n @property({ type: String }) description = '';\r\n @property({ type: String }) width = '400px';\r\n @property({ type: String }) height = '';\r\n\r\n @property({ type: String }) buttonText = 'Aceptar';\r\n @property({ type: String }) confirmText = 'Sí';\r\n @property({ type: String }) cancelText = 'No';\r\n\r\n @property({ type: Boolean }) closeOnOutsideClick = false;\r\n\r\n @property({ type: Array }) stackedActions: PopupAction[] = [];\r\n\r\n\r\n static styles = css`\r\n :host {\r\n display: none;\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n background: rgba(0, 0, 0, 0.5);\r\n justify-content: center;\r\n align-items: center;\r\n font-family: \"Graphik\", sans-serif;\r\n }\r\n\r\n :host([open]) {\r\n display: flex;\r\n }\r\n\r\n @media (max-width:500px){\r\n .popup {\r\n width: 100%;\r\n margin: 0px 25px;\r\n }\r\n }\r\n @media (min-width:501px){\r\n .popup {\r\n width: var(--popup-width, 358px);\r\n min-height: var(--popup-height, auto);\r\n }\r\n }\r\n\r\n .popup {\r\n background: var(--white);\r\n padding: 24px;\r\n border-radius: 16px;\r\n text-align: center;\r\n animation: fadeIn 0.2s ease-in-out;\r\n display: flex;\r\n flex-direction: column;\r\n gap: 24px;\r\n align-items: center;\r\n box-sizing: border-box;\r\n width: var(--popup-width, 358px);\r\n height: var(--popup-height, auto);\r\n }\r\n\r\n @keyframes fadeIn {\r\n from { opacity: 0; transform: scale(0.9); }\r\n to { opacity: 1; transform: scale(1); }\r\n }\r\n\r\n .popup-content {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 24px;\r\n width: 100%;\r\n }\r\n\r\n .titles-container {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n align-items: center;\r\n }\r\n\r\n .popup-title {\r\n ${titleXS}\r\n margin: 0;\r\n color: var(--secondary-color-80);\r\n }\r\n\r\n .popup-description {\r\n ${bodyM}\r\n margin: 0;\r\n color: var(--secondary-color-60);\r\n }\r\n\r\n .buttons-container {\r\n margin-top: 12px;\r\n display: flex;\r\n gap: 10px;\r\n }\r\n\r\n .buttons-container ::slotted(randstad-button),\r\n .buttons-container randstad-button {\r\n flex: 1 1 50%;\r\n }\r\n\r\n :host([type=\"stacked\"]) .buttons-container {\r\n flex-direction: column;\r\n gap: 12px;\r\n }\r\n\r\n .popup-actions {\r\n display: flex;\r\n flex-direction: column;\r\n width: 100%;\r\n }\r\n\r\n .action-item {\r\n ${titleXXS};\r\n display: flex;\r\n align-items: center;\r\n gap: 16px;\r\n cursor: pointer;\r\n color: var(--secondary-color);\r\n padding: 16px;\r\n border-radius: 8px;\r\n transition: background 0.2s;\r\n }\r\n\r\n .action-item:hover {\r\n background: var(--secondary-color-10, #f0f4ff);\r\n }\r\n\r\n .icon-circle {\r\n width: 32px;\r\n height: 32px;\r\n background: rgb(from var(--icon-color) r g b / 0.2);\r\n border-radius: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n }\r\n\r\n `;\r\n\r\n firstUpdated() {\r\n if (this.open) {\r\n const button = this.renderRoot.querySelector('randstad-button');\r\n if (button) (button as HTMLElement).focus();\r\n }\r\n this.addEventListener('click', this._onBackgroundClick);\r\n }\r\n\r\n private _onBackgroundClick = (event: MouseEvent) => {\r\n if (!this.closeOnOutsideClick) return;\r\n\r\n const path = event.composedPath();\r\n const popupContainer = this.renderRoot.querySelector('.popup');\r\n\r\n if (popupContainer && !path.includes(popupContainer)) {\r\n this.dispatchEvent(new CustomEvent('popup-close', { detail: null }));\r\n this.open = false;\r\n }\r\n };\r\n\r\n disconnectedCallback(): void {\r\n super.disconnectedCallback();\r\n this.removeEventListener('click', this._onBackgroundClick);\r\n }\r\n\r\n closePopup(response: boolean | string) {\r\n this.dispatchEvent(new CustomEvent('popup-close', { detail: response }));\r\n this.open = false;\r\n }\r\n\r\n render() {\r\n const popupStyle = this.width || this.height\r\n ? `--popup-width: ${this.width || '400px'}; --popup-height: ${this.height || 'auto'};`\r\n : '';\r\n\r\n return html`\r\n <div\r\n class=\"popup\"\r\n role=\"dialog\"\r\n aria-modal=\"true\"\r\n style=\"${popupStyle}\"\r\n ${this.type !== 'default' ? html`aria-labelledby=\"popup-title\"` : nothing}\r\n aria-describedby=\"popup-description\"\r\n >\r\n ${this.type !== 'stacked' && this.icon\r\n ? html`<randstad-icon name=${this.icon} size=\"56px\" color=${this.iconColor} />`\r\n : nothing}\r\n\r\n <div class=\"popup-content\">\r\n ${this.type === 'default'\r\n ? html`\r\n ${ this.title ? html`<h2 id=\"popup-title\" class=\"popup-title\">${this.title}</h2>` : nothing }\r\n\r\n ${ this.description\r\n ? html`<p id=\"popup-description\" class=\"popup-description\">${this.description}</p>`\r\n : nothing\r\n }\r\n\r\n <div class=\"buttons-container\">\r\n <randstad-button\r\n variant=\"button-primary\"\r\n size=\"md\"\r\n @click=${() => this.closePopup(true)}\r\n label=${this.buttonText}\r\n ></randstad-button>\r\n </div>\r\n `\r\n : this.type === 'stacked'\r\n ? html`\r\n <div class=\"popup-actions\">\r\n ${this.stackedActions.map(\r\n action => html`\r\n <div\r\n class=\"action-item\"\r\n @click=${() => this.closePopup(action.value)}\r\n >\r\n <div class=\"icon-circle\" style=\"--icon-color:${action.iconColor}\">\r\n <randstad-icon\r\n name=${action.icon}\r\n size=\"24px\"\r\n color=${action.iconColor}\r\n >\r\n </randstad-icon>\r\n </div>\r\n <span>${action.label}</span>\r\n </div>\r\n `\r\n )}\r\n </div>\r\n `\r\n : html`\r\n <div class=\"titles-container\">\r\n <h2 id=\"popup-title\" class=\"popup-title\">${this.title}</h2>\r\n\r\n ${ this.description\r\n ? html`<p id=\"popup-description\" class=\"popup-description\">${this.description}</p>`\r\n : nothing\r\n }\r\n </div>\r\n\r\n <div class=\"buttons-container\">\r\n <randstad-button\r\n variant=\"button-secondary\"\r\n size=\"md\"\r\n @click=${() => this.closePopup(false)}\r\n label=${this.cancelText}\r\n >\r\n </randstad-button>\r\n\r\n <randstad-button\r\n variant=\"button-primary\"\r\n size=\"md\"\r\n @click=${() => this.closePopup(true)}\r\n label=${this.confirmText}\r\n >\r\n </randstad-button>\r\n </div>\r\n `\r\n }\r\n </div>\r\n </div>\r\n `;\r\n }\r\n\r\n}\r\n","import { LitElement, html, css } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\nimport { bodyXS } from '../styles/fontStyles';\r\n\r\n@customElement('progress-circle')\r\nexport class ProgressCircle extends LitElement {\r\n @property({ type: Number }) value = 0;\r\n @property({ type: Number }) max = 5;\r\n\r\n static styles = css`\r\n :host {\r\n display: inline-block;\r\n width: 64px;\r\n height: 64px;\r\n }\r\n\r\n svg {\r\n width: 64px;\r\n height: 64px;\r\n }\r\n\r\n .circle-text {\r\n ${bodyXS};\r\n text-align: center;\r\n vertical-align: middle;\r\n fill: var(--secondary-color-40);\r\n text-anchor: middle;\r\n dominant-baseline: middle;\r\n }\r\n\r\n circle.bg {\r\n stroke: var(--primary-light-blue-20);\r\n }\r\n\r\n circle.fg {\r\n stroke: var(--primary-light-blue);\r\n stroke-linecap: round;\r\n }\r\n `;\r\n\r\n render() {\r\n const strokeWidth = 6;\r\n const radius = 28; // 64/2 - strokeWidth\r\n const circumference = 2 * Math.PI * radius;\r\n\r\n const safeMax = Math.max(this.max, 1);\r\n const progress = Math.min(this.value / safeMax, 1);\r\n const offset = circumference * (1 - progress);\r\n\r\n return html`\r\n <svg\r\n viewBox=\"0 0 64 64\"\r\n role=\"img\"\r\n aria-label=\"Progreso: ${this.value} de ${this.max}\"\r\n >\r\n <!-- Fondo -->\r\n <circle\r\n class=\"bg\"\r\n cx=\"32\"\r\n cy=\"32\"\r\n r=\"${radius}\"\r\n stroke-width=\"${strokeWidth}\"\r\n fill=\"none\"\r\n />\r\n <!-- Progreso -->\r\n <circle\r\n class=\"fg\"\r\n cx=\"32\"\r\n cy=\"32\"\r\n r=\"${radius}\"\r\n stroke-width=\"${strokeWidth}\"\r\n fill=\"none\"\r\n stroke-dasharray=\"${circumference}\"\r\n stroke-dashoffset=\"${offset}\"\r\n transform=\"rotate(-90 32 32)\"\r\n />\r\n <!-- Texto -->\r\n <text x=\"32\" y=\"34\" class=\"circle-text\">\r\n ${this.value} de ${this.max}\r\n </text>\r\n </svg>\r\n `;\r\n }\r\n}\r\n","import { html, css, LitElement } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\n\r\n@customElement('custom-radio')\r\nexport class CustomRadio extends LitElement {\r\n @property({ type: String }) name = '';\r\n @property({ type: Boolean }) checked = false;\r\n @property({ type: Boolean }) disabled = false;\r\n @property({ type: Boolean }) error = false;\r\n\r\n @property({ type: String }) label = ''; \r\n @property({ type: String }) value = ''; \r\n\r\n static styles = css`\r\n :host {\r\n font-family: \"Graphik\", sans-serif;\r\n\r\n --focus-color: var( --primary-color, #2175D9 );\r\n --error-focus-color: var( --ui-negative, #E00F0F );\r\n --disabled-focus-color: var( --secondary-color-20, #CFD1D9 );\r\n --disabled-checked-dot-color: var( --secondary-color-40, #9FA3B3 ); \r\n }\r\n\r\n /* Base styles */\r\n .radio-container {\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n cursor: pointer;\r\n outline: none; \r\n }\r\n \r\n .radio-circle {\r\n width: 24px;\r\n height: 24px;\r\n border-radius: 50%;\r\n box-sizing: border-box;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n transition: all 0.2s ease-in-out, box-shadow 0.15s ease-in-out; \r\n }\r\n\r\n .radio-dot {\r\n width: 10px;\r\n height: 10px;\r\n border-radius: 50%;\r\n background-color: transparent;\r\n transition: background-color 0.2s ease-in-out;\r\n }\r\n\r\n .radio-circle {\r\n background-color: var( --white, #FFFFFF );\r\n border: 1px solid rgba(207, 209, 217, 1);\r\n }\r\n /* */\r\n\r\n /* Checked styles */\r\n .radio-container.checked .radio-circle {\r\n background-color: var( --primary-color, #2175D9 );\r\n border: 1px solid var( --primary-color, #2175D9 );\r\n }\r\n\r\n .radio-container.checked .radio-dot {\r\n background-color: var( --white, #FFFFFF );\r\n }\r\n /* */\r\n \r\n /* Hover/Focus General */\r\n .radio-container:not(.disabled):hover:not(:focus-visible) .radio-circle { \r\n box-shadow: 0 0 0 4px var( --secondary-color-10, #E7E8EC );\r\n }\r\n\r\n .radio-container:focus-visible .radio-circle {\r\n box-shadow: 0 0 0 2px var( --white, #FFFFFF ), 0 0 0 5px var( --focus-color );\r\n border: 1px solid var( --primary-color, #2175D9 );\r\n }\r\n \r\n .radio-container:not(.checked):focus-visible .radio-circle {\r\n border: 1px solid rgba( 207, 209, 217, 1 );\r\n }\r\n /* */\r\n\r\n /* Disabled styles */\r\n .radio-container.disabled {\r\n cursor: default;\r\n color: #9FA3B3;\r\n }\r\n \r\n .radio-container.disabled .radio-circle {\r\n border: 1px solid var( --secondary-color-20, #CFD1D9 );\r\n background-color: var( --secondary-color-20, #CFD1D9 );\r\n box-shadow: none;\r\n }\r\n \r\n .radio-container.disabled:focus-visible .radio-circle {\r\n box-shadow: none;\r\n border: 1px solid var( --secondary-color-20, #CFD1D9 );\r\n }\r\n \r\n .radio-container.checked.disabled .radio-dot {\r\n background-color: #9FA3B3;\r\n }\r\n /* */\r\n\r\n /* Error styles */\r\n .radio-container.error:not(.checked) .radio-circle {\r\n background-color: var( --white, #FFFFFF );\r\n border: 1px solid var( --ui-negative, #E00F0F );\r\n }\r\n\r\n .radio-container.checked.error .radio-circle {\r\n background-color: var( --ui-negative, #E00F0F );\r\n border: 1px solid var( --ui-negative, #E00F0F );\r\n }\r\n\r\n .radio-container.checked.error .radio-dot {\r\n background-color: var( --white, #FFFFFF );\r\n }\r\n \r\n .radio-container.error:focus-visible .radio-circle {\r\n box-shadow: 0 0 0 2px var( --white, #FFFFFF ), 0 0 0 5px var( --error-focus-color ); \r\n }\r\n\r\n .radio-container.error.disabled:not(.checked) .radio-circle {\r\n background-color: var( --secondary-color-20, #CFD1D9 );\r\n border: 1px solid var( --secondary-color-20, #CFD1D9 );\r\n box-shadow: 0 0 0 2px var( --white, #FFFFFF ), 0 0 0 5px var( --disabled-focus-color );\r\n }\r\n \r\n .radio-container.checked.error.disabled .radio-circle {\r\n background-color: var( --secondary-color-20, #CFD1D9 );\r\n border: 1px solid var( --secondary-color-20, #CFD1D9 );\r\n box-shadow: 0 0 0 2px var( --white, #FFFFFF ), 0 0 0 5px var( --disabled-focus-color );\r\n }\r\n \r\n .radio-container.checked.error.disabled .radio-dot {\r\n background-color: var( --white, #FFFFFF );\r\n }\r\n \r\n .radio-container.disabled:focus-visible .radio-circle {\r\n box-shadow: none; \r\n }\r\n /* */ \r\n `;\r\n\r\n private handleSelect() {\r\n if ( this.disabled || this.checked ) return;\r\n this.checked = true; \r\n\r\n this.dispatchEvent( new CustomEvent( 'change', { \r\n detail: { value: this.value },\r\n bubbles: true, \r\n composed: true \r\n } ) );\r\n \r\n this.dispatchEvent( new CustomEvent( 'input', { \r\n detail: { value: this.value },\r\n bubbles: true, \r\n composed: true \r\n } ) );\r\n }\r\n \r\n private handleKeyDown( event: KeyboardEvent ) {\r\n if ( this.disabled ) return;\r\n const { key } = event;\r\n\r\n if ( key === 'Enter' || key === ' ' ) {\r\n event.preventDefault();\r\n this.handleSelect();\r\n }\r\n }\r\n\r\n private handleClick() {\r\n this.handleSelect();\r\n }\r\n\r\n public render() {\r\n const containerClasses = [\r\n 'radio-container',\r\n this.checked ? 'checked' : '',\r\n this.error ? 'error' : '',\r\n this.disabled ? 'disabled' : '',\r\n ].join(' ');\r\n\r\n const fallbackText: string = this.error\r\n ? ` Error ${ this.checked ? 'On' : 'Off' } `\r\n : ` ${ this.checked ? 'On' : 'Off' } `;\r\n\r\n const labelContent: string = this.label || fallbackText;\r\n\r\n return html`\r\n <label \r\n class=${ containerClasses }\r\n @click=${ this.handleClick } \r\n tabindex=${ this.disabled ? '-1' : '0' }\r\n @keydown=${ this.handleKeyDown }\r\n >\r\n <span class=\"radio-circle\">\r\n <span class=\"radio-dot\"></span>\r\n </span>\r\n\r\n <span> ${ labelContent } </span>\r\n </label>\r\n `;\r\n }\r\n}","import { html, css, nothing, TemplateResult } from 'lit';\nimport { customElement, property, query, state } from 'lit/decorators.js';\nimport { BaseControl } from '../helpers/BaseControl';\nimport { bodyL } from '../styles/fontStyles';\nimport { tooltipStyles } from \"../styles/tooltip\";\nimport { mixStyles } from '../styles/mix';\nimport { errorStyles } from '../styles/error';\nimport { scrollbarStyles } from '../styles/scrollbar';\n\ntype SelectOption = string | {\n label: string;\n value: string | object;\n disabled?: boolean;\n icon?: string;\n};\n\ntype FetchFn = (term: string, opts: { signal: AbortSignal }) => Promise<SelectOption[]>;\n\nconst REGEX_NO_EMOJIS = /[\\p{Extended_Pictographic}\\u{FE0F}\\u{1F3FB}-\\u{1F3FF}\\u{1F9B0}-\\u{1F9B3}\\u{200D}]/gu;\n\n@customElement('filterable-select')\nexport class FilterableSelect extends BaseControl {\n @property({ type: Object }) value: string | object = '';\n @property({ type: String, attribute: 'default-value' }) defaultValue = '';\n\n @property({ type: Array }) options: SelectOption[] = [];\n @property({ type: Boolean }) filterable: boolean | undefined;\n\n private get _effectiveFilterable(): boolean {\n const attr = this.getAttribute('filterable');\n if (attr !== null) return attr !== 'false';\n if (this.filterable !== undefined) return this.filterable;\n return this.options.length > 5;\n }\n \n @property({ type: Number }) maxLength?: number;\n\n @property({ type: String }) keydownRegex?: string;\n\n @property({ type: String }) textLabelFilterNotResult: string = '';\n @property({ type: String }) textLabelMobileSearch: string = '';\n\n @property({ type: Boolean }) isRenderClearButton = false;\n @property({ type: Boolean }) sortable = true;\n\n @property({ type: Function }) fetcher?: FetchFn;\n @property({ type: Number }) minSearch: number = 3;\n @property({ type: String }) textLabelLoading: string = 'Cargando...';\n @property({ type: Number, attribute: 'debounce-ms' }) debounceMs: number = 300;\n\n @state() private isMobile: boolean = false;\n @state() private highlightedIndex = -1;\n @state() private _isCleared: boolean = false;\n\n private static _scrollLockCount = 0;\n private static _scrollLockStylesheet: CSSStyleSheet | null = null;\n\n @state() filteredOptions: SelectOption[] = [];\n @state() filterValue = '';\n @state() isOpen = false;\n @state() mobileFilterValue = '';\n\n @state() private showNoResults: boolean = false;\n @state() private _isLoading: boolean = false;\n @property({ type: Boolean, attribute: 'last-element' }) lastElement = false\n private _prevIsMobile: boolean = false;\n private _lastFetchTerm: string | null = null;\n private _fetchedOptions: SelectOption[] = [];\n\n @query('.mobile-modal .filter-input')\n public mobileInputRef!: HTMLInputElement;\n\n @query('.filter-input')\n private _desktopInput!: HTMLInputElement;\n\n @query('.filter-fake')\n private _desktopFake!: HTMLElement;\n\n @query('.icon-button')\n private _iconButton!: HTMLButtonElement;\n\n @query('.options-list')\n private _optionsList!: HTMLUListElement;\n\n private debounceTimeout: number | null = null;\n private _abortController: AbortController | null = null;\n private _boundHandleClickOutside = this.handleClickOutside.bind(this);\n\n static styles = [\n scrollbarStyles,\n css`\n ${mixStyles}\n ${errorStyles}\n ${tooltipStyles}\n\n /* --- Own Error Styles --- */\n :host([error]) .input-container:not(.open) .input-wrapper:hover {\n box-shadow: 0px 0px 0px 4px #E00F0F1A !important;\n }\n\n :host([error]) .input-container.open:not(.mobile) .input-wrapper {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border: 1px solid var(--ui-negative, red) !important;\n border-bottom: 1px solid transparent !important;\n }\n\n :host([error]) .input-container:not(.mobile) .options-list {\n border: 1px solid var(--ui-negative, red) !important;\n border-top: none !important;\n border-radius: 0 0 4px 4px;\n }\n\n /* Estilos para el estado disabled */\n .input-wrapper.disabled .filter-input, .input-wrapper.disabled .filter-fake {\n background-color: var(--secondary-color-10);\n color: #9FA3B3;\n cursor: default;\n }\n\n .input-wrapper.disabled .icon-button,\n .input-wrapper.disabled .icon-button randstad-icon,\n .input-wrapper.disabled .icon-button .close-icon {\n color: #9FA3B3;\n cursor: default;\n --icon-color: var(--secondary-color-40, #9FA3B3) !important;\n }\n\n /* Y si tienes un icono seleccionado que también debe cambiar de color */\n .input-wrapper.disabled .icon-selected svg {\n fill: #9FA3B3;\n }\n\n .input-wrapper .icon-button .close-icon {\n color: var(--primary-color);\n }\n\n .select-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n }\n\n .input-container.focused:not(.open):not(.mobile) .input-wrapper {\n border: 1px solid var(--primary-color);\n border-radius: 4px;\n box-shadow: none;\n z-index: 11;\n }\n\n .input-container.focused:not(.open):not(.mobile) .input-wrapper:hover {\n box-shadow: none;\n }\n\n :host(:not([error])) .input-container.open:not(.mobile) {\n border-radius: 4px;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n :host(:not([error])) .input-container.open:not(.mobile) .input-wrapper {\n border: 1px solid var(--primary-color);\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom: 1px solid transparent;\n box-shadow: none;\n z-index: 11;\n }\n\n :host(:not([error])) .input-wrapper:hover {\n box-shadow: 0px 0px 0px 4px #0F19411A;\n }\n\n :host .input-container.open:not(.mobile)::after {\n content: '';\n position: absolute;\n top: calc(100% - 1px);\n left: 20px;\n right: 20px;\n height: 1px;\n background-color: var(--gray-20);\n z-index: 10;\n }\n\n .input-wrapper {\n border: 1px solid var(--secondary-color-10);\n border-radius: 4px;\n overflow: hidden;\n display: flex;\n align-items: center;\n width: 100%;\n transition: box-shadow 0.2s ease-in-out;\n background-color: white;\n }\n\n .mobile-modal .filter-input {\n border-bottom: 1px solid var(--gray-20);\n }\n\n .filter-input {\n ${bodyL};\n padding: 16px;\n padding-right: 40px;\n border: none;\n outline: none;\n width: 100%;\n box-sizing: border-box;\n background: white;\n cursor: pointer;\n color: var(--secondary-color);\n flex-grow: 1;\n }\n\n .filter-input,\n .filter-fake,\n .input-wrapper,\n .mobile-modal {\n -webkit-tap-highlight-color: transparent !important;\n caret-color: var( --primary-color ) !important;\n }\n\n .filter-input::placeholder {\n ${bodyL};\n color: var( --filter-text-color, var( --secondary-color-40 ) ); \n }\n \n .filter-input:-webkit-autofill,\n .filter-input:-webkit-autofill:hover,\n .filter-input:-webkit-autofill:focus,\n .filter-input:-webkit-autofill:active {\n -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;\n -webkit-text-fill-color: var(--secondary-color);\n transition: background-color 5000s ease-in-out 0s;\n }\n\n .icon-button {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n background: transparent;\n border: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n transition: background-color 0.2s ease;\n padding: 0;\n }\n\n .input-wrapper:not(.disabled) .icon-button:hover {\n background-color: var(--primary-color-10);\n }\n\n randstad-icon {\n width: 24px;\n height: 24px;\n color: var(--primary-color);\n }\n\n .options-list {\n width: 100%;\n position: absolute;\n top: 99%;\n left: 0;\n right: 0;\n max-height: 200px;\n overflow-y: auto;\n border: 1px solid var(--primary-color);\n border-top: none;\n border-radius: 0 0 4px 4px;\n background: white;\n list-style: none;\n margin: 0;\n padding: 0;\n z-index: 10;\n }\n\n .options-list li {\n ${bodyL};\n padding: 8px 16px 8px 16px;\n color: var(--secondary-color-80);\n display: flex;\n align-items: center;\n }\n\n .options-list li:not(.state-item) {\n cursor: pointer;\n }\n\n .options-list li.highlighted {\n background-color: var(--primary-color-10);\n }\n\n .options-list li:not(.state-item):hover,\n .options-list li.highlighted:not(.state-item):hover {\n background-color: #D3E3F7; \n }\n\n .mobile-modal {\n position: fixed;\n top: 20dvh;\n width:100%;\n bottom: 0;\n background-color: white;\n z-index: 1000;\n border-radius: 12px 12px 0 0;\n box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);\n display: flex;\n flex-direction: column;\n padding: 0px;\n animation: slideUp 0.5s ease-out;\n min-height: 80dvh;\n overflow-y: auto;\n }\n\n .mobile-modal .options-list {\n position: static;\n max-height: none;\n border: none;\n box-shadow: none;\n }\n\n .mobile-modal .modal-input-container {\n position: relative;\n }\n\n .mobile-modal .modal-input-container input::placeholder {\n ${bodyL}\n color: rgba( 159, 163, 179, 1 );\n }\n\n .mobile-modal .modal-close-button {\n position: absolute;\n top: 50%;\n right: 12px;\n transform: translateY(-50%);\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .mobile-modal .no-results-icon {\n position: absolute;\n top: 50%;\n right: 48px;\n transform: translateY( -50% );\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 4px; \n }\n\n .mobile-modal .modal-close-button randstad-icon, .mobile-modal randstad-icon.no-results-icon {\n width: 24px;\n height: 24px;\n }\n\n .mobile-modal .modal-close-button randstad-icon {\n color: var( --primary-color );\n }\n\n .mobile-modal randstad-icon.no-results-icon {\n color: var( --ui-negative );\n }\n\n .no-results-icon {\n position: absolute;\n right: 44px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 4px;\n color: var(--ui-negative);\n }\n\n .mobile-backdrop {\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.4);\n z-index: 999;\n display: flex;\n align-items: flex-end;\n }\n\n .filter-fake {\n ${bodyL};\n padding: 15px;\n padding-right: 40px;\n width: 100%;\n background: white;\n box-sizing: border-box;\n cursor: pointer;\n color: var( --filter-text-color, var( --secondary-color-80 ) ); \n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: flex;\n align-items: center;\n }\n\n .filter-fake span {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .filter-fake span.placeholder {\n color: var( --filter-text-color, var( --secondary-color-40 ) );\n }\n\n @keyframes slideUp {\n from {\n transform: translateY(100%);\n }\n to {\n transform: translateY(0);\n }\n }\n\n /* Estilos por defecto del icon para mobile */\n .icon-selected {\n width: 24px;\n height: auto;\n margin-left: 4px;\n padding-right: 12px; \n border-right: 1px solid var(--secondary-color-20);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n /*\n * Media query para aplicar estilos de escritorio (a partir de 941px)\n */\n @media (min-width: 941px) {\n .icon-selected {\n /* Estilos de escritorio para el icono, se anulan los de mobile */\n margin-left: 16px;\n padding-right: 18px;\n }\n }\n\n .icon-selected svg,\n .icon-list svg {\n display: block;\n width: 100%;\n height: auto;\n }\n\n .icon-list {\n width: 24px;\n height: auto;\n margin-right: 8px;\n flex-shrink: 0;\n }\n\n .options-list li.state-item {\n ${bodyL}\n cursor: default !important;\n background-color: white !important;\n pointer-events: none;\n color: rgba( 64, 71, 103, 1 );\n border-bottom: none !important;\n }\n\n @media ( max-width: 940px ) {\n .icon-button:hover {\n background-color: transparent;\n }\n }\n `\n ];\n\n /**\n * Función auxiliar para aplicar/limpiar los estilos de bloqueo.\n */\n private static _ensureScrollLockStyles(): void {\n if (FilterableSelect._scrollLockStylesheet) return;\n FilterableSelect._scrollLockStylesheet = new CSSStyleSheet();\n FilterableSelect._scrollLockStylesheet.replaceSync(`\n .scroll-locked { overflow: hidden !important; }\n `);\n try {\n document.adoptedStyleSheets = [...document.adoptedStyleSheets, FilterableSelect._scrollLockStylesheet];\n } catch {\n const style = document.createElement('style');\n style.textContent = '.scroll-locked { overflow: hidden !important; }';\n document.head.appendChild(style);\n }\n }\n\n private toggleDynamicScrollLock(block: boolean): void {\n const html = document.documentElement;\n\n if (block) {\n FilterableSelect._ensureScrollLockStyles();\n FilterableSelect._scrollLockCount++;\n if (FilterableSelect._scrollLockCount === 1) {\n html.classList.add('scroll-locked');\n const hasScrollBar = html.scrollHeight > html.clientHeight;\n if (hasScrollBar) {\n const scrollBarWidth = window.innerWidth - html.clientWidth;\n html.style.paddingRight = `${scrollBarWidth}px`;\n }\n }\n } else {\n FilterableSelect._scrollLockCount = Math.max(0, FilterableSelect._scrollLockCount - 1);\n if (FilterableSelect._scrollLockCount === 0) {\n html.classList.remove('scroll-locked');\n html.style.paddingRight = '';\n }\n }\n }\n\n // Función para obtener la etiqueta de comparación (label o string completo)\n private getOptionLabel = (option: SelectOption): string => {\n if (typeof option === 'string') return option;\n return option.label;\n };\n\n /**\n * Normaliza un texto eliminando acentos y convertiendo a minúsculas.\n * Ejemplo: \"Abogacía\" → \"abogacia\"\n */\n private normalizeText(text: string): string {\n if (!text) return '';\n return text\n .toLowerCase()\n .normalize('NFD')\n .replace(/[\\u0300-\\u036f]/g, '');\n }\n\n private sortOptions(a: SelectOption, b: SelectOption, searchTerm: string | undefined): number {\n\n // Función para obtener el 'value' como string (o vacío si es objeto no string)\n const getOptionValueAsString = (option: SelectOption): string => {\n if (typeof option === 'string') return option;\n\n // Si es objeto, y el 'value' es string, lo usamos.\n if (typeof option.value === 'string') return option.value;\n\n // Si el 'value' es object (ej. el valor real).\n return '';\n };\n\n const labelA = this.getOptionLabel(a);\n const labelB = this.getOptionLabel(b);\n\n const stringA = this.normalizeText(labelA);\n const stringB = this.normalizeText(labelB);\n\n // Prioridad por coincidencia de inicio con el término de búsqueda\n if (searchTerm && searchTerm.length > 0) {\n const normalizedSearchTerm = this.normalizeText(searchTerm);\n\n const aStartsWith = stringA.startsWith(normalizedSearchTerm);\n const bStartsWith = stringB.startsWith(normalizedSearchTerm);\n\n // Si A comienza y B no, A va primero.\n if (aStartsWith && !bStartsWith) return -1;\n // Si B comienza y A no, B va primero.\n if (!aStartsWith && bStartsWith) return 1;\n }\n\n // Caso Numero País: \"+54\" debe ir primero.\n const valueStringA = getOptionValueAsString(a);\n const valueStringB = getOptionValueAsString(b);\n\n if (valueStringA === '+54') return -1; // 'a' va antes de 'b'\n if (valueStringB === '+54') return 1; // 'b' va antes de 'a'\n\n // Si ambos son '+54', el orden es 0 (iguales).\n if (valueStringA === '+54' && valueStringB === '+54') return 0;\n\n // Intento de Extracción y Comparación Numérica (para \"5 km\", \"10 km\", etc.)\n const numMatchA = labelA.match(/^\\d+(\\.\\d+)?/);\n const numMatchB = labelB.match(/^\\d+(\\.\\d+)?/);\n\n const numA = numMatchA ? Number(numMatchA[0]) : NaN;\n const numB = numMatchB ? Number(numMatchB[0]) : NaN;\n\n if (!isNaN(numA) && !isNaN(numB)) {\n return numA - numB;\n }\n\n return labelA.localeCompare(labelB, 'es', { usage: 'sort', sensitivity: 'accent' });\n }\n\n private _computeFilteredOptions(searchTerm: string): SelectOption[] {\n if (!this._effectiveFilterable || !searchTerm || searchTerm.length === 0) {\n const result = this.sortable\n ? [...this.options].sort((a, b) => this.sortOptions(a, b, undefined))\n : [...this.options];\n this.highlightedIndex = -1;\n this.showNoResults = false;\n return result;\n }\n\n const normalizedSearchTerm = this.normalizeText(searchTerm);\n let filteredList = this.options.filter(opt => {\n const label = this.getOptionLabel(opt);\n return this.normalizeText(label).includes(normalizedSearchTerm);\n });\n if (this.sortable) {\n filteredList = filteredList.sort((a, b) => this.sortOptions(a, b, searchTerm));\n }\n this.highlightedIndex = filteredList.length > 0 ? 0 : -1;\n this.showNoResults = filteredList.length === 0;\n return filteredList;\n }\n\n private handleOptionHover(index: number): void {\n if (this.highlightedIndex !== index) {\n this.highlightedIndex = index;\n }\n }\n\n public update(changedProperties: Map<string, any>) {\n if (!this.fetcher) {\n const shouldRunValueLogic: boolean | string = (\n changedProperties.has('defaultValue') ||\n changedProperties.has('options') ||\n (changedProperties.has('value') && this.value)\n ) && !this._isCleared;\n\n if (shouldRunValueLogic) {\n // Usamos this.value primero. Si this.value se limpió a '', no usamos targetValue.\n const targetValue: string | object = this.value || this.defaultValue;\n\n const match: SelectOption | undefined = this.options.find(opt =>\n typeof opt === 'string' ? opt === targetValue : (opt as { value: any }).value === targetValue\n );\n\n if (match) {\n // Solo sincronizamos filterValue con el label si encontramos un match VÁLIDO.\n this.filterValue = typeof match === 'string' ? match : (match as { label: string }).label;\n this.value = typeof match === 'string' ? match : (match as { value: any }).value;\n } else {\n // Si no hay match (ej: el valor ya no existe), lo limpiamos todo.\n // Pero solo si no estamos editando (isOpen = true), para evitar pisotear filterValue del usuario.\n if (!this.isOpen && !this.filterValue) this.filterValue = '';\n else if (!this.isOpen && this.value === '') this.filterValue = '';\n\n this.value = '';\n }\n }\n\n if (this._isCleared && this.value === '') this._isCleared = false;\n }\n\n super.update(changedProperties);\n }\n\n // Método de ciclo de vida de Lit ejecutado antes de la renderización. Úselo para cálculos \n // que pueden actualizar las propiedades reactivas para que no activen otra actualización \n // *después* de la renderización (lo que activaría una advertencia).\n protected willUpdate(changedProperties: Map<string | number | symbol, unknown>): void {\n if (changedProperties.has('keydownRegex')) {\n if (this.keydownRegex) {\n const groups = this.keydownRegex.match(/\\[\\^?[^\\]]+\\]/g);\n const firstGroup = groups?.[0] ?? `[${this.keydownRegex}]`;\n this._firstCharRegex = new RegExp(firstGroup);\n } else {\n this._firstCharRegex = null;\n }\n }\n\n if (this.fetcher) return;\n // Si el usuario cambió el texto del filtro, vuelva a calcular antes de renderizar para que no lo hagamos\n // programar una segunda actualización desde `updated`.\n if (changedProperties.has('filterValue') || changedProperties.has('options')) {\n this.filteredOptions = this._computeFilteredOptions(this.filterValue);\n }\n }\n\n protected updated(changedProperties: Map<string | number | symbol, unknown>): void {\n super.updated(changedProperties as Map<string | number | symbol, unknown>);\n\n if (changedProperties.has('isOpen') && this.isMobile) {\n this.toggleDynamicScrollLock(this.isOpen);\n }\n\n if (this._prevIsMobile && !this.isMobile) {\n this.toggleDynamicScrollLock(false);\n }\n\n this._prevIsMobile = this.isMobile;\n\n const wasClosed: boolean = changedProperties.get('isOpen') === false;\n\n if (this.isMobile && this.isOpen && changedProperties.has('isOpen') && wasClosed) {\n // Usamos updateComplete para esperar a que Lit haya *terminado* de insertar el DOM.\n this.updateComplete.then(() => {\n const mobileInput: HTMLInputElement | undefined = this.mobileInputRef;\n if (!mobileInput) return;\n\n window.setTimeout(() => {\n mobileInput.focus();\n mobileInput.setSelectionRange(mobileInput.value.length, mobileInput.value.length);\n }, 0);\n });\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.updateResponsiveMode();\n window.addEventListener('resize', this.updateResponsiveModeBound);\n document.addEventListener('click', this._boundHandleClickOutside);\n window.addEventListener('overlay-opened', this.handleGlobalOverlayOpen);\n }\n\n disconnectedCallback() {\n window.removeEventListener('resize', this.updateResponsiveModeBound);\n document.removeEventListener('click', this._boundHandleClickOutside);\n window.removeEventListener('overlay-opened', this.handleGlobalOverlayOpen);\n if (this.debounceTimeout) {\n clearTimeout(this.debounceTimeout);\n this.debounceTimeout = null;\n }\n if (this._abortController) {\n this._abortController.abort();\n this._abortController = null;\n }\n if (this.isMobile && this.isOpen) {\n this.toggleDynamicScrollLock(false);\n }\n super.disconnectedCallback();\n }\n\n private handleGlobalOverlayOpen = (e: Event) => {\n const customEvent = e as CustomEvent;\n\n if (customEvent.detail !== this && this.isOpen) {\n this.isOpen = false;\n\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: false },\n bubbles: true,\n composed: true\n }));\n }\n }\n };\n\n private notifyOverlayOpened() {\n window.dispatchEvent(new CustomEvent('overlay-opened', { detail: this }));\n }\n\n private updateResponsiveModeBound = this.updateResponsiveMode.bind(this);\n\n private updateResponsiveMode() {\n this.isMobile = window.innerWidth <= 940;\n }\n\n public handleInputClick(event: Event) {\n if (this.disabled) return;\n\n // En modo async, el clic en escritorio NO abre la lista (el usuario debe tipear para buscar).\n // En mobile, el clic SÍ debe abrir el modal para que el usuario pueda escribir y buscar.\n if (this.fetcher && !this.isMobile) return;\n\n if (!this.isOpen) {\n this.notifyOverlayOpened();\n if (this.fetcher && this.isMobile) {\n this.filteredOptions = [];\n this.showNoResults = false;\n this._isLoading = false;\n\n // Si ya había un valor seleccionado, preservarlo en el input del modal\n // y disparar búsqueda automática si cumple con minSearch (replicando comportamiento desktop).\n if (this.value && this.filterValue) {\n this.mobileFilterValue = this.filterValue;\n if (this.mobileFilterValue.length >= this.minSearch) {\n this._fetchAsyncResults(this.mobileFilterValue);\n }\n } else {\n this.mobileFilterValue = '';\n }\n } else {\n this.filteredOptions = this._computeFilteredOptions('');\n this.showNoResults = false;\n }\n\n // En mobile sync, solo limpiar si no hay valor seleccionado\n if (this.isMobile && !this.fetcher) this.mobileFilterValue = '';\n }\n this.isOpen = !this.isOpen;\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: this.isOpen },\n bubbles: true,\n composed: true\n }));\n }\n\n this.requestUpdate();\n }\n\n public handleInput(event: Event) {\n if (!this._effectiveFilterable) return;\n // Un usuario está escribiendo, por lo tanto, no se ha borrado el campo intencionalmente\n this._isCleared = false;\n\n const target = event.target as HTMLInputElement;\n const value = this._sanitizeInputValue(target.value, target);\n this.filterValue = value;\n\n if (this.fetcher) {\n if (value.length >= this.minSearch) {\n this.isOpen = true;\n this.notifyOverlayOpened();\n this._fetchAsyncResults(value);\n } else {\n this.isOpen = false;\n this.filteredOptions = [];\n this._isLoading = false;\n this.showNoResults = false;\n this._lastFetchTerm = null;\n this._fetchedOptions = [];\n if (this.debounceTimeout) {\n clearTimeout(this.debounceTimeout);\n this.debounceTimeout = null;\n }\n if (this._abortController) {\n this._abortController.abort();\n this._abortController = null;\n }\n }\n\n this.requestUpdate();\n } else {\n this.notifyOverlayOpened();\n this.isOpen = true;\n\n if (value === '') {\n // Si el input está completamente vacío, reseteamos el valor seleccionado\n this._emitEmptySelection();\n this.filteredOptions = this._computeFilteredOptions('');\n this.showNoResults = false;\n }\n\n if (this.debounceTimeout) clearTimeout(this.debounceTimeout);\n\n this.debounceTimeout = window.setTimeout(() => {\n if (this.filterValue.length > 2) {\n this.dispatchEvent(new CustomEvent('filter-location', {\n detail: { value: this.filterValue },\n bubbles: true,\n composed: true\n }));\n }\n }, 300);\n\n this.requestUpdate();\n }\n }\n\n public handleMobileInput(event: Event) {\n this._isCleared = false;\n\n const target = event.target as HTMLInputElement;\n const value = this._sanitizeInputValue(target.value, target);\n this.mobileFilterValue = value;\n\n if (this.fetcher) {\n if (value.length >= this.minSearch) {\n this._fetchAsyncResults(value);\n } else {\n this.filteredOptions = [];\n this._isLoading = false;\n this.showNoResults = false;\n this._lastFetchTerm = null;\n this._fetchedOptions = [];\n if (this.debounceTimeout) {\n clearTimeout(this.debounceTimeout);\n this.debounceTimeout = null;\n }\n if (this._abortController) {\n this._abortController.abort();\n this._abortController = null;\n }\n }\n\n this.requestUpdate();\n } else {\n if (value === '') {\n this._emitEmptySelection();\n this.filteredOptions = this._computeFilteredOptions('');\n this.showNoResults = false;\n } else {\n this.filteredOptions = this._computeFilteredOptions(value);\n }\n\n this.requestUpdate();\n\n if (this.debounceTimeout) clearTimeout(this.debounceTimeout);\n\n this.debounceTimeout = window.setTimeout(() => {\n if (value.length > 2) {\n this.dispatchEvent(new CustomEvent('filter-location', {\n detail: { value },\n bubbles: true,\n composed: true\n }));\n } else if (value.length === 0) {\n this.filteredOptions = this._computeFilteredOptions('');\n }\n }, 300);\n }\n }\n\n public handleSelect(option: SelectOption) {\n // Cuando se selecciona una opción, el campo ya no está \"borrado\"\n this._isCleared = false;\n this.highlightedIndex = -1;\n\n const value = typeof option === 'string' ? option : option.value;\n\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value },\n bubbles: true,\n composed: true\n }));\n\n this.filterValue = typeof option === 'string' ? option : option.label;\n this.value = value;\n this.isOpen = false;\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: false },\n bubbles: true,\n composed: true\n }));\n }\n\n this.mobileFilterValue = this.filterValue;\n // En modo async, preservamos los resultados del fetch (filteredOptions contiene datos reales).\n // En modo sync, restauramos las opciones ordenadas originales.\n if (!this.fetcher) {\n this.filteredOptions = this._computeFilteredOptions('');\n }\n this.showNoResults = false;\n this._lastFetchTerm = null;\n this._fetchedOptions = [];\n\n this.requestUpdate();\n }\n\n public handleIconClick() {\n if (this.disabled) return;\n this.highlightedIndex = -1;\n\n const isShowCleanButton: boolean = this.isRenderClearButton;\n\n const hasStringValue: boolean = typeof this.value === 'string' && this.value !== '';\n const hasObjectValue: boolean = typeof this.value === 'object' && this.value !== null && Object.keys(this.value).length > 0;\n const hasValue: boolean = hasStringValue || hasObjectValue;\n\n if (isShowCleanButton && hasValue) {\n this._emitEmptySelection();\n this.filterValue = '';\n\n this.filteredOptions = this._computeFilteredOptions('');\n this._lastFetchTerm = null;\n this._fetchedOptions = [];\n\n this.isOpen = false;\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: false },\n bubbles: true,\n composed: true\n }));\n }\n } else {\n const willOpen = !this.isOpen;\n\n if (willOpen && this.fetcher && this.filterValue && this.filterValue.length >= this.minSearch) {\n this.notifyOverlayOpened();\n this.isOpen = true;\n this.mobileFilterValue = '';\n this.showNoResults = false;\n this._fetchAsyncResults(this.filterValue);\n } else if (willOpen && this.fetcher && this.filterValue && this.filterValue.length < this.minSearch) {\n return;\n } else {\n this.notifyOverlayOpened();\n this.isOpen = !this.isOpen;\n\n if (this.isOpen) {\n this.mobileFilterValue = '';\n this.showNoResults = false;\n this.filteredOptions = this._computeFilteredOptions('');\n } else {\n this.mobileFilterValue = '';\n this.filteredOptions = this._computeFilteredOptions('');\n }\n }\n\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: this.isOpen },\n bubbles: true,\n composed: true\n }));\n }\n if (this.isOpen && !this.isMobile) {\n this.updateComplete.then(() => {\n this._desktopInput?.focus();\n });\n }\n }\n\n this.requestUpdate();\n }\n\n public handleClickOutside(event: Event) {\n const target: EventTarget | null = event.target;\n if (!(target instanceof Node)) return;\n\n if (!this.contains(target) && this.isOpen) {\n\n this.isOpen = false;\n\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: false },\n bubbles: true,\n composed: true\n }));\n }\n this.requestUpdate();\n }\n\n // Solo limpiar el estado mobile cuando el clic fue FUERA del componente.\n // Si el clic fue dentro (ej: filter-fake, opciones), preservar el estado.\n if (this.isMobile && !this.contains(target)) {\n this.mobileFilterValue = '';\n this.filteredOptions = this._computeFilteredOptions('');\n }\n }\n /**\n * Previene que el primer carácter ingresado sea un espacio o carácter especial.\n */\n private preventInvalidStart(event: KeyboardEvent): boolean {\n const target = event.target as HTMLInputElement;\n if (target && target.tagName === 'INPUT' && target.selectionStart === 0 && event.key.length === 1) {\n const isAlphanumeric = this.keydownRegex\n ? this._firstCharRegex?.test(event.key) ?? true\n : /[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]/.test(event.key);\n if (!isAlphanumeric) {\n event.preventDefault();\n return true;\n }\n }\n return false;\n }\n\n /**\n * Aplica una expresión regex personalizada para limitar caracteres permitidos en el input.\n * Replica la lógica de Form.ts: extrae grupos de corchetes y valida carácter por carácter.\n * Si hay 2+ grupos, el primero valida el primer carácter y el segundo el resto.\n * Si hay 1 grupo, se aplica a todos los caracteres.\n */\n private onlyRegex(value: string): string {\n if (!this.keydownRegex) return value;\n\n // 1. Extraer bloques de corchetes (ej: [a-z], [^0-9]).\n // Si no hay corchetes, envolvemos el string recibido.\n let groups = this.keydownRegex.match(/\\[\\^?[^\\]]+\\]/g);\n if (!groups) {\n groups = [`[${this.keydownRegex}]`];\n }\n\n let sanitizedValue = '';\n const isComposite = groups.length >= 2;\n const firstGroup = new RegExp(groups[0]);\n const secondGroup = isComposite ? new RegExp(groups[1]) : firstGroup;\n\n // 2. Procesar carácter por carácter según su posición\n const chars = value.split('');\n for (let i = 0; i < chars.length; i++) {\n const char = chars[i];\n if (i === 0) {\n if (firstGroup.test(char)) sanitizedValue += char;\n } else {\n if (secondGroup.test(char)) sanitizedValue += char;\n }\n }\n\n // 3. Aplicar trim inicial\n return sanitizedValue.trimStart();\n }\n\n /**\n * Previene que el texto pegado comience con un espacio o carácter especial si el cursor está al inicio.\n */\n public handlePaste(event: ClipboardEvent): void {\n const target = event.target as HTMLInputElement;\n if (target && target.tagName === 'INPUT' && target.selectionStart === 0) {\n const selectionStart = target.selectionStart;\n const selectionEnd = target.selectionEnd;\n if (selectionStart === null || selectionEnd === null) return;\n\n event.preventDefault();\n const pasteData = event.clipboardData?.getData('text') || '';\n const sanitizedData = this._sanitize(pasteData, true);\n if (sanitizedData) {\n target.setRangeText(sanitizedData, selectionStart, selectionEnd, 'end');\n target.dispatchEvent(new Event('input', { bubbles: true, composed: true }));\n }\n }\n }\n\n /**\n * Maneja los eventos de teclado cuando el foco está en el input o el filter-fake (combobox).\n */\n public handleKeyDown(event: KeyboardEvent) {\n if (this.preventInvalidStart(event)) return;\n\n const { key } = event;\n const inputElement = this._desktopInput;\n\n if (key === 'Backspace' && this._effectiveFilterable) {\n const currentValue: string = inputElement?.value || '';\n const isSelection: boolean = inputElement && inputElement.selectionStart !== inputElement.selectionEnd;\n\n const willBeEmpty: boolean = currentValue.length === 1 && !isSelection;\n const isAlreadyEmpty: boolean = currentValue.length === 0;\n\n if (this.fetcher) {\n const projectedLength = isAlreadyEmpty ? 0 : currentValue.length - (isSelection ? (inputElement.selectionEnd! - inputElement.selectionStart!) : 1);\n\n if (projectedLength < this.minSearch) {\n this.isOpen = false;\n this.filteredOptions = [];\n this._isLoading = false;\n this.showNoResults = false;\n this._lastFetchTerm = null;\n this._fetchedOptions = [];\n if (this.debounceTimeout) {\n clearTimeout(this.debounceTimeout);\n this.debounceTimeout = null;\n }\n if (this._abortController) {\n this._abortController.abort();\n this._abortController = null;\n }\n this.requestUpdate();\n }\n } else if (willBeEmpty || isAlreadyEmpty) {\n this._emitEmptySelection();\n this.filterValue = '';\n this.filteredOptions = this._computeFilteredOptions('');\n this.isOpen = true;\n\n this.requestUpdate();\n }\n }\n\n // Obtener las opciones filtradas que no estén deshabilitadas\n const enabledOptions: SelectOption[] = this.filteredOptions.filter(option =>\n !(typeof option === 'object' && option.disabled)\n );\n\n // 1. Abrir la lista con Enter/Space cuando está cerrado.\n if (!this.isOpen && (key === 'Enter' || key === ' ')) {\n event.preventDefault();\n this.notifyOverlayOpened();\n this.isOpen = true;\n\n // Inicializa el índice resaltado a la primera opción no deshabilitada\n const firstEnabledIndex: number = this.filteredOptions.findIndex(opt =>\n !(typeof opt === 'object' && opt.disabled)\n );\n\n this.highlightedIndex = firstEnabledIndex !== -1 ? firstEnabledIndex : -1;\n this.requestUpdate();\n\n return;\n }\n\n // 2. Navegación y Acciones cuando la lista está ABIERTA\n if (this.isOpen) {\n if (key === 'ArrowDown') {\n event.preventDefault();\n\n let nextIndex: number = this.highlightedIndex + 1;\n\n // Encontrar el siguiente índice de opción habilitada\n while (nextIndex < this.filteredOptions.length) {\n const option: SelectOption = this.filteredOptions[nextIndex];\n\n if (!(typeof option === 'object' && option.disabled)) {\n this.highlightedIndex = nextIndex;\n break;\n }\n\n nextIndex++;\n }\n\n // Si no se encontró, se queda en la última opción habilitada\n if (nextIndex >= this.filteredOptions.length) {\n if (enabledOptions.length > 0) {\n const lastEnabledOption = enabledOptions[enabledOptions.length - 1];\n this.highlightedIndex = this.filteredOptions.indexOf(lastEnabledOption);\n } else {\n this.highlightedIndex = -1;\n }\n }\n\n this.requestUpdate();\n this.updateComplete.then(() => this.scrollHighlightedIntoView());\n } else if (key === 'ArrowUp') {\n event.preventDefault();\n\n let prevIndex: number = this.highlightedIndex - 1;\n\n // Encontrar el índice de opción habilitada anterior\n while (prevIndex >= 0) {\n const option: SelectOption = this.filteredOptions[prevIndex];\n\n if (!(typeof option === 'object' && option.disabled)) {\n this.highlightedIndex = prevIndex;\n break;\n }\n\n prevIndex--;\n }\n\n // Si se va por encima de la primera, se resetea el resaltado\n if (prevIndex < 0) this.highlightedIndex = -1;\n\n this.requestUpdate();\n this.updateComplete.then(() => this.scrollHighlightedIntoView());\n } else if (key === 'Enter' || !this._effectiveFilterable && key === ' ') {\n\n // Solo prevenimos el comportamiento por defecto (insertar un espacio)\n // si estamos activamente navegando (highlightedIndex >= 0).\n // Si el índice es -1 (el usuario está escribiendo), no hacemos nada,\n // permitiendo que el espacio se escriba y filtre la lista.\n if (this.highlightedIndex >= 0) event.preventDefault();\n\n const option: SelectOption = this.filteredOptions[this.highlightedIndex];\n\n // Si hay una opción resaltada Y no está deshabilitada, SELECCIONAMOS.\n if (this.highlightedIndex >= 0 && option && !(typeof option === 'object' && option.disabled)) {\n this.handleSelect(option);\n\n // El foco vuelve al input/fake\n if (this._desktopInput) this._desktopInput.focus();\n else this._desktopFake?.focus();\n\n this.highlightedIndex = -1;\n return; // Salimos después de seleccionar\n }\n\n // Si presionamos ' ' o 'Enter' y no hay nada resaltado, no hacemos nada más.\n } else if (key === 'Escape') {\n event.preventDefault();\n\n this.isOpen = false;\n this.highlightedIndex = -1;\n\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: false },\n bubbles: true,\n composed: true\n }));\n }\n\n // Al cerrar, el foco debe volver al input\n if (this._desktopInput) this._desktopInput.focus();\n else this._desktopFake?.focus();\n } else if (key === 'Tab') {\n this.isOpen = false;\n this.highlightedIndex = -1;\n if (this.lastElement && !this.isMobile) {\n this.dispatchEvent(new CustomEvent('dropdown-toggle', {\n detail: { open: false },\n bubbles: true,\n composed: true\n }));\n }\n this.requestUpdate();\n } else if (!this.isMobile && this._effectiveFilterable && key.length === 1) {\n this.highlightedIndex = -1;\n }\n\n if (key === 'ArrowLeft' || key === 'ArrowRight') {\n // En modo filtrable, permitimos que el cursor se mueva en el input.\n // En modo no filtrable, ya se mueve el foco al botón (ver punto 3).\n if (this._effectiveFilterable) return;\n }\n }\n\n if (key === 'ArrowRight') {\n // Chequeamos si el cursor está al final del input (solo si es filtrable).\n const isAtEnd: boolean = !inputElement || inputElement.selectionStart === inputElement.value.length;\n\n // Si es filtrable Y el cursor está al final O si NO es filtrable, movemos.\n if (!this._effectiveFilterable || isAtEnd) {\n event.preventDefault();\n\n const iconButton: HTMLButtonElement | null = this._iconButton;\n iconButton?.focus();\n }\n\n return;\n }\n }\n\n /**\n * Maneja los eventos de teclado cuando el foco está en el botón de toggle/clear.\n * Su única responsabilidad es:\n * 1. Abrir/cerrar la lista con Enter/Space.\n * 2. Transferir el foco al input/fake para que 'handleKeyDown' tome el control de las flechas.\n * 3. Cerrar la lista al presionar Tab.\n */\n public handleButtonKeyDown(event: KeyboardEvent) {\n const { key } = event;\n\n const inputElement = this._desktopInput;\n const fakeElement = this._desktopFake;\n const focusTarget: HTMLInputElement = inputElement || fakeElement;\n\n if (key === 'ArrowLeft') {\n event.preventDefault();\n focusTarget?.focus();\n\n // Si es un input, colocamos el cursor al final\n if (focusTarget instanceof HTMLInputElement)\n focusTarget.selectionStart = focusTarget.selectionEnd = focusTarget.value.length;\n\n return;\n }\n\n if (key === 'Enter' || key === ' ') {\n event.preventDefault();\n\n if (this._effectiveFilterable && this.filterValue) {\n this.handleIconClick();\n focusTarget?.focus();\n } else {\n this.isOpen = !this.isOpen;\n\n if (this.isOpen) {\n this.highlightedIndex = -1;\n focusTarget?.focus();\n }\n }\n\n this.requestUpdate();\n return;\n }\n\n // Si la lista está abierta y se presiona Tab en el botón, se cierra y se permite \n // que el foco salga del componente.\n if (key === 'Tab' && this.isOpen) {\n this.isOpen = false;\n this.highlightedIndex = -1;\n this.requestUpdate();\n }\n }\n\n /**\n * Limpia el valor visible del input (filterValue) si no hay un valor de opción válido seleccionado (this.value).\n * Se llama al perder el foco.\n */\n public handleBlur() {\n window.setTimeout(() => {\n this.validateAndCleanOnBlur();\n this.requestUpdate();\n }, 200);\n }\n\n private scrollHighlightedIntoView() {\n // Solo aplica para la vista de escritorio, ya que el modal de móvil\n // se encarga de su propio scroll (si no se han hecho ajustes allí).\n if (this.isMobile || this.highlightedIndex < 0) return;\n\n // Buscamos la lista de opciones en el shadow DOM\n const optionsList = this._optionsList;\n if (!optionsList) return;\n\n // Buscamos el elemento de la opción resaltada\n const highlightedElement: HTMLLIElement | null = optionsList.querySelector(`li.highlighted`) as HTMLLIElement;\n\n // Usamos el método nativo scrollIntoView para enfocar el elemento\n // 'nearest' asegura que solo se haga scroll si el elemento no está visible.\n if (highlightedElement)\n highlightedElement.scrollIntoView({ block: 'nearest' });\n\n }\n\n private _emitEmptySelection(): void {\n this.value = '';\n this._isCleared = true;\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value: '' },\n bubbles: true,\n composed: true\n }));\n }\n\n private _fetchAsyncResults(value: string): void {\n if (\n this._lastFetchTerm !== null &&\n this._fetchedOptions.length > 0 &&\n this.normalizeText(value).startsWith(this.normalizeText(this._lastFetchTerm))\n ) {\n const normalizedSearch = this.normalizeText(value);\n this.filteredOptions = this._fetchedOptions.filter(opt => {\n const label = this.getOptionLabel(opt);\n return this.normalizeText(label).includes(normalizedSearch);\n });\n this.showNoResults = this.filteredOptions.length === 0;\n this.highlightedIndex = this.filteredOptions.length > 0 ? 0 : -1;\n this._isLoading = false;\n this.requestUpdate();\n return;\n }\n\n if (this._abortController) this._abortController.abort();\n if (this.debounceTimeout) clearTimeout(this.debounceTimeout);\n\n this._isLoading = true;\n this.showNoResults = false;\n this.filteredOptions = [];\n this.requestUpdate();\n\n const executeFetch = () => {\n this._abortController = new AbortController();\n\n this.fetcher!(value, { signal: this._abortController.signal }).then((result) => {\n if (this._abortController?.signal.aborted) return;\n this._fetchedOptions = result;\n this._lastFetchTerm = value;\n this.filteredOptions = result;\n this.showNoResults = result.length === 0;\n this.highlightedIndex = result.length > 0 ? 0 : -1;\n this._isLoading = false;\n this.requestUpdate();\n }).catch(() => {\n if (this._abortController?.signal.aborted) return;\n this.filteredOptions = [];\n this.showNoResults = true;\n this._isLoading = false;\n this.requestUpdate();\n });\n };\n\n if (this.debounceMs > 0) {\n this.debounceTimeout = window.setTimeout(executeFetch, this.debounceMs);\n } else {\n executeFetch();\n }\n }\n\n private _sanitize(text: string, sanitizeFirstChar: boolean): string {\n let result = text.replace(REGEX_NO_EMOJIS, '');\n if (this.maxLength) result = result.slice(0, this.maxLength);\n if (result.startsWith(' ')) result = result.trimStart();\n if (this.keydownRegex) result = this.onlyRegex(result);\n\n if (sanitizeFirstChar && result.length > 0) {\n const firstChar = result[0];\n const isValidStart = this.keydownRegex\n ? (this._firstCharRegex?.test(firstChar) ?? true)\n : /[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]/.test(firstChar);\n if (!isValidStart) {\n if (this.keydownRegex && this._firstCharRegex) {\n result = result.replace(new RegExp(`^[^${this._firstCharRegex.source.replace(/^\\[/, '').replace(/\\]$/, '')}]+`), '');\n } else {\n result = result.replace(/^[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]+/, '');\n }\n }\n }\n\n return result;\n }\n\n private _firstCharRegex: RegExp | null = null;\n\n private _sanitizeInputValue(raw: string, target: HTMLInputElement): string {\n const start = target.selectionStart || 0;\n const textBeforeCursor = raw.slice(0, start);\n const newPosition = textBeforeCursor.replace(REGEX_NO_EMOJIS, '').length;\n\n const value = this._sanitize(raw, false);\n\n target.value = value;\n target.setSelectionRange(newPosition, newPosition);\n return value;\n }\n\n private renderOptionIcon(icon?: string) {\n if (!icon || typeof icon !== 'string') return nothing;\n\n const safe = icon\n .replace(/<script\\b[^<]*(?:(?!<\\/script>)<[^<]*)*<\\/script>/gi, '')\n .replace(/\\bon\\w+\\s*=/gi, '')\n .replace(/javascript:/gi, '');\n return html`<span class=\"icon-list\" .innerHTML=\"${safe}\"></span>`;\n }\n\n private _renderOptionItem(option: SelectOption, index: number) {\n const label = typeof option === 'string' ? option : (option as { label: string }).label;\n const isDisabled = typeof option === 'object' && (option as { disabled?: boolean }).disabled;\n const icon = typeof option === 'object' ? (option as { icon?: string }).icon : undefined;\n\n return html`\n <li\n id=\"option-${index}\"\n class=\"${isDisabled ? 'disabled' : ''} ${index === this.highlightedIndex ? 'highlighted' : ''}\"\n role=\"option\"\n aria-selected=\"${index === this.highlightedIndex}\"\n @click=\"${() => {\n if (!isDisabled) this.handleSelect(option);\n }}\"\n @mouseenter=\"${() => this.handleOptionHover(index)}\"\n >\n ${this.renderOptionIcon(icon)}\n ${label}\n </li>\n `;\n }\n\n private validateAndCleanOnBlur(): void {\n if (!this._effectiveFilterable) return;\n const typedText = this.normalizeText((this.filterValue || '').trim());\n\n if (!typedText) {\n if (this.value !== '') {\n this._emitEmptySelection();\n }\n this.filterValue = '';\n this.filteredOptions = this._computeFilteredOptions('');\n this.showNoResults = false;\n return;\n }\n\n // valido lo escrito si coincide EXACTAMENTE con el label\n // En modo async, las opciones disponibles están en filteredOptions (resultados del fetch),\n // ya que this.options suele estar vacío o no contiene los datos asíncronos.\n const sourceOptions = this.fetcher ? this.filteredOptions : this.options;\n const validMatch = sourceOptions.find(opt => {\n const label = typeof opt === 'string' ? opt : (opt as { label: string }).label;\n return this.normalizeText(String(label)) === typedText;\n });\n\n if (!validMatch) {\n // si no hay coincidencia lipio y fuerzo al reset\n this._emitEmptySelection();\n\n this.filterValue = '';\n this.filteredOptions = this._computeFilteredOptions('');\n this.showNoResults = false;\n } else {\n // si coincide exactamente, aseguramos que el valor de esa opción se haya seteado\n const matchValue = typeof validMatch === 'string' ? validMatch : (validMatch as { value: any }).value;\n const matchLabel = typeof validMatch === 'string' ? validMatch : (validMatch as { label: string }).label;\n\n if (this.value !== matchValue) {\n this.value = matchValue;\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value: matchValue },\n bubbles: true,\n composed: true\n }));\n }\n\n this.filterValue = matchLabel;\n this.showNoResults = false;\n }\n }\n\n public render() {\n const isMobile: boolean = this.isMobile;\n\n const iconTemplate: TemplateResult = html`\n <randstad-icon\n name=\"${this.isOpen && this.filteredOptions.length > 0 ? 'arrow_up' : 'arrow_down'}\"\n size=\"24px\"\n .color=${'var( --primary-color )'}\n >\n </randstad-icon>\n `;\n\n const isShowCleanButton: boolean = this.isRenderClearButton === true ? true : false;\n const shouldBeOpen: boolean = this.isOpen && (this.filteredOptions.length > 0 || this.filterValue.length > 0);\n\n // Validaciones para determinar si se necesita el valor por defecto\n const validationTextLabelFilterNotResult: boolean = !this.textLabelFilterNotResult || typeof this.textLabelFilterNotResult !== 'string';\n const validationTextLabelMobileSearch: boolean = !this.textLabelMobileSearch || typeof this.textLabelMobileSearch !== 'string';\n const validationtPlaceholder: boolean = !this.placeholder || typeof this.placeholder !== 'string';\n\n // Variables locales que contienen el valor final (propiedad o default)\n const hasTextLabelFilterNotResult: string = validationTextLabelFilterNotResult ? 'No se encontraron resultados' : this.textLabelFilterNotResult;\n const hasTextLabelMobileSearch: string = validationTextLabelMobileSearch ? 'buscá una opción' : this.textLabelMobileSearch;\n const hasPlaceholder: string = validationtPlaceholder ? 'seleccioná una opción' : this.placeholder;\n\n return html`\n <div class=\"select-container\" style=\"${this.labelColor ? ` --label-color: ${this.labelColor};` : ''}\"> \n ${this.renderLabelContainer()}\n \n <div class=\"list-container\">\n <div class=\"input-container ${this.isOpen ? 'focused' : ''} ${shouldBeOpen ? 'open' : ''} ${isMobile ? 'mobile' : ''}\">\n <div class=\"input-wrapper ${this.disabled ? 'disabled' : ''}\">\n ${isMobile ?\n html`\n <div\n class=\"filter-fake\"\n @click=\"${this.handleInputClick}\"\n @keydown=\"${this.handleKeyDown}\"\n @blur=\"${this.handleBlur}\"\n tabindex=\"0\"\n role=\"combobox\"\n autocomplete=\"new-password\"\n aria-expanded=\"${this.isOpen}\"\n aria-controls=\"options-list\"\n aria-haspopup=\"listbox\"\n aria-activedescendant=\"${this.isOpen && this.highlightedIndex !== -1 ? `option-${this.highlightedIndex}` : nothing}\"\n >\n <span class=\"${this.filterValue ? '' : 'placeholder'}\">${this.filterValue || hasPlaceholder}</span>\n </div>\n `\n : html`\n <input\n class=\"filter-input\"\n .value=\"${this.filterValue || ''}\"\n @click=\"${this.handleInputClick}\"\n @keydown=\"${this.handleKeyDown}\"\n @input=${this.handleInput}\n @paste=\"${this.handlePaste}\"\n @blur=\"${this.handleBlur}\" \n placeholder=\"${this.filterValue ? '' : hasPlaceholder}\"\n ?disabled=\"${this.disabled}\"\n ?readonly=\"${!this._effectiveFilterable}\"\n maxlength=\"${this.maxLength ?? ''}\"\n tabindex=\"0\"\n role=\"combobox\"\n inputmode=\"search\"\n autocomplete=\"new-password\" \n aria-expanded=\"${this.isOpen}\"\n aria-controls=\"options-list\"\n aria-haspopup=\"listbox\"\n aria-busy=\"${this._isLoading}\"\n aria-activedescendant=\"${this.isOpen && this.highlightedIndex !== -1 ? `option-${this.highlightedIndex}` : nothing}\"\n />\n `\n }\n\n ${!isMobile && this.showNoResults ? html`<randstad-icon name=\"warning\" size=\"24px\" class=\"no-results-icon\"></randstad-icon>` : nothing}\n\n ${(!this.fetcher || this.filteredOptions.length > 0 || this._isLoading) ? html`\n <button\n class=\"icon-button\"\n @click=\"${this.handleIconClick}\"\n @keydown=\"${this.handleButtonKeyDown}\"\n ?disabled=\"${this.disabled}\"\n tabindex=\"0\"\n aria-label=\"${this.value && this.value !== '' ? 'Clear selection' : 'Toggle options'}\"\n >\n ${(isShowCleanButton && this.value && this.value !== '')\n ? html`<randstad-icon name=\"close\" size=\"24px\"></randstad-icon>`\n : iconTemplate\n }\n </button>\n ` : nothing}\n\n ${!isMobile && this.isOpen\n ? html`\n ${this._isLoading\n ? html`\n <ul id=\"options-list\" class=\"options-list\" role=\"listbox\" aria-live=\"polite\">\n <li class=\"state-item\" role=\"status\">\n ${this.textLabelLoading}\n </li>\n </ul>\n `\n : this.filteredOptions.length > 0\n ? html`\n <ul id=\"options-list\" class=\"options-list\" role=\"listbox\" aria-live=\"polite\">\n ${this.filteredOptions.map((option, index) => this._renderOptionItem(option, index))}\n </ul>\n `\n : this.showNoResults\n ? html`\n <ul id=\"options-list\" class=\"options-list\" role=\"listbox\" aria-live=\"polite\">\n <li class=\"state-item\">\n ${hasTextLabelFilterNotResult}\n </li>\n </ul>\n `\n : nothing\n }\n `\n : nothing\n }\n </div>\n </div>\n\n ${this.renderError()}\n </div>\n\n ${this.renderHelper()}\n\n ${isMobile && this.isOpen\n ? html`\n <div class=\"mobile-backdrop\" @click=\"${() => { this.isOpen = false; }}\">\n <div class=\"mobile-modal\" @click=\"${(e: Event) => e.stopPropagation()}\">\n <div class=\"modal-input-container\">\n ${this._effectiveFilterable\n ? html`\n <input\n class=\"filter-input\"\n .value=\"${this.mobileFilterValue || ''}\"\n @input=${(e: Event) => this.handleMobileInput(e)}\n @keydown=\"${this.preventInvalidStart}\"\n @paste=\"${this.handlePaste}\"\n placeholder=\"${hasTextLabelMobileSearch}\"\n inputmode=\"search\"\n maxlength=\"${this.maxLength ?? ''}\"\n role=\"combobox\"\n aria-expanded=\"${this.isOpen}\"\n aria-controls=\"mobile-options-list\"\n aria-haspopup=\"listbox\"\n />\n\n ${!this._isLoading && this.showNoResults\n ? html`<randstad-icon name=\"warning\" size=\"24px\" class=\"no-results-icon\"></randstad-icon>`\n : nothing\n }\n `\n : nothing\n }\n\n <button class=\"modal-close-button\" @click=\"${() => { this.isOpen = false; this.mobileFilterValue = ''; this.filteredOptions = this._computeFilteredOptions(''); this._lastFetchTerm = null; this._fetchedOptions = []; if (this.debounceTimeout) { clearTimeout(this.debounceTimeout); this.debounceTimeout = null; } if (this._abortController) { this._abortController.abort(); this._abortController = null; } this._isLoading = false; }}\">\n <randstad-icon name=\"close\" size=\"24px\"></randstad-icon>\n </button>\n </div>\n \n ${this._isLoading\n ? html`\n <ul id=\"mobile-options-list\" class=\"options-list\" role=\"listbox\" aria-live=\"polite\">\n <li class=\"state-item\" role=\"status\">\n ${this.textLabelLoading}\n </li>\n </ul>\n `\n : this.filteredOptions.length > 0\n ? html`\n <ul id=\"mobile-options-list\" class=\"options-list\" role=\"listbox\" aria-live=\"polite\">\n ${this.filteredOptions.map((option, index) => this._renderOptionItem(option, index))}\n </ul>\n `\n : this.showNoResults\n ? html`\n <ul id=\"mobile-options-list\" class=\"options-list\" role=\"listbox\" aria-live=\"polite\">\n <li class=\"state-item mobile-item\">\n ${hasTextLabelFilterNotResult}\n </li>\n </ul>\n `\n : nothing\n }\n </div>\n </div>\n `\n : nothing\n }\n `;\n }\n}","const globalStyles: CSSStyleSheet = new CSSStyleSheet();\r\n\r\nglobalStyles.replaceSync(`\r\n @font-face {\r\n font-family: 'Graphik';\r\n src: url('/src/assets/font/Graphik-Regular.woff2') format('woff2'),\r\n url('/src/assets/font/Graphik-Regular.woff') format('woff'),\r\n url('/src/assets/font/Graphik-Regular.eot') format('embedded-opentype');\r\n font-weight: normal;\r\n font-style: normal;\r\n }\r\n\r\n .body-s {\r\n font-weight: 400;\r\n font-size: 14px;\r\n line-height: 100%;\r\n letter-spacing: 0%;\r\n color: green;\r\n }\r\n\r\n .body-l {\r\n font-family: Graphik;\r\n font-size: 18px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: 30px;\r\n }\r\n`);\r\n\r\nexport default globalStyles;","import { LitElement, html, css } from 'lit';\r\nimport globalStyles from '../styles/globalStyles';\r\nimport { bodyS } from '../styles/fontStyles';\r\n\r\ntype SnackbarType = 'informative' | 'success' | 'warning' | 'error';\r\ntype SnackbarPosition =\r\n | 'top-left' | 'top-center' | 'top-right'\r\n | 'bottom-left' | 'bottom-center' | 'bottom-right';\r\n\r\nclass RandstadSnackbar extends LitElement {\r\n type: SnackbarType = 'informative';\r\n icon: string = 'info';\r\n message: string = 'Este es un mensaje.';\r\n open: boolean = false;\r\n position: SnackbarPosition = 'bottom-center';\r\n private isMobile = false;\r\n private _navbarObserver: MutationObserver | null = null;\r\n\r\n static styles = [\r\n globalStyles,\r\n css`\r\n :host {\r\n display: flex;\r\n position: fixed;\r\n align-items: center;\r\n max-width: 100dvw;\r\n height: auto;\r\n z-index: 9997;\r\n }\r\n\r\n :host([position=\"top-left\"]) {\r\n top: 16px;\r\n left: 16px;\r\n right: auto;\r\n transform: none;\r\n justify-content: flex-start;\r\n }\r\n\r\n :host([position=\"top-center\"]) {\r\n top: 16px;\r\n left: 50%;\r\n transform: translateX(-50%);\r\n justify-content: center;\r\n }\r\n\r\n :host([position=\"top-right\"]) {\r\n top: 16px;\r\n right: 16px;\r\n left: auto;\r\n transform: none;\r\n justify-content: flex-end;\r\n }\r\n\r\n :host([position=\"bottom-left\"]) {\r\n bottom: 16px;\r\n left: 16px;\r\n right: auto;\r\n transform: none;\r\n justify-content: flex-start;\r\n }\r\n\r\n :host([position=\"bottom-center\"]) {\r\n bottom: 16px;\r\n left: 50%;\r\n transform: translateX(-50%);\r\n justify-content: center;\r\n }\r\n\r\n :host([position=\"bottom-right\"]) {\r\n bottom: 16px;\r\n right: 16px;\r\n left: auto;\r\n transform: none;\r\n justify-content: flex-end;\r\n }\r\n\r\n :host(.mobile) {\r\n bottom: 16px !important;\r\n top: auto !important;\r\n left: 50% !important;\r\n transform: translateX(-50%) !important;\r\n justify-content: center !important;\r\n width: 100%;\r\n }\r\n\r\n :host(.mobile) .container {\r\n width: 90dvw !important;\r\n }\r\n\r\n :host(.navbar-visible)[position=\"bottom-left\"],\r\n :host(.navbar-visible)[position=\"bottom-center\"],\r\n :host(.navbar-visible)[position=\"bottom-right\"] {\r\n bottom: calc(100px);\r\n }\r\n\r\n :host(.navbar-visible.mobile) {\r\n bottom: calc(100px) !important;\r\n }\r\n\r\n .container {\r\n ${bodyS};\r\n display: flex;\r\n align-items: center;\r\n box-sizing: border-box;\r\n min-height: 48px;\r\n width: 401px;\r\n border-radius: 4px;\r\n padding: 8px;\r\n gap: 8px;\r\n white-space: nowrap;\r\n color: var(--white);\r\n }\r\n\r\n .message {\r\n display: block;\r\n display: -webkit-box;\r\n -webkit-box-orient: vertical;\r\n -webkit-line-clamp: 2;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: pre-wrap;\r\n max-height: calc(2 * 25px);\r\n line-height: 25px;\r\n word-break: break-word;\r\n max-width: 100%;\r\n }\r\n\r\n .container {\r\n color: var(--white);\r\n }\r\n randstad-icon {\r\n color: var(--white);\r\n }\r\n randstad-icon svg {\r\n fill: var(--white);\r\n }\r\n\r\n .icon {\r\n font-size: 18px;\r\n }\r\n .hidden {\r\n display: none;\r\n }\r\n .success {\r\n background-color: var(--ui-positive);\r\n }\r\n .error {\r\n background-color: var(--ui-negative);\r\n }\r\n .warning {\r\n background-color: var(--ui-warning);\r\n }\r\n .informative {\r\n background-color: var(--ui-informative);\r\n }\r\n `\r\n ];\r\n\r\n static get properties() {\r\n return {\r\n type: { type: String },\r\n icon: { type: String },\r\n message: { type: String },\r\n open: { type: Boolean },\r\n position: { type: String, reflect: true },\r\n };\r\n }\r\n\r\n constructor() {\r\n super();\r\n this.updateResponsiveStyles = this.updateResponsiveStyles.bind(this);\r\n }\r\n\r\n public connectedCallback() {\r\n super.connectedCallback();\r\n window.addEventListener('resize', this.updateResponsiveStyles);\r\n this.updateResponsiveStyles();\r\n this.observeNavbar();\r\n }\r\n\r\n public disconnectedCallback() {\r\n window.removeEventListener('resize', this.updateResponsiveStyles);\r\n if (this._navbarObserver) {\r\n this._navbarObserver.disconnect();\r\n this._navbarObserver = null;\r\n }\r\n super.disconnectedCallback();\r\n }\r\n\r\n public updateResponsiveStyles() {\r\n this.isMobile = window.innerWidth <= 940;\r\n this.classList.toggle('mobile', this.isMobile);\r\n this.updateNavbarPosition();\r\n }\r\n\r\n protected updated(changedProperties: Map<string, unknown>): void {\r\n if (changedProperties.has('position')) {\r\n this.updateNavbarPosition();\r\n }\r\n }\r\n\r\n private isNavbarVisible(): boolean {\r\n const navbar = document.querySelector('randstad-navbar');\r\n if (!navbar) return false;\r\n if (navbar.hasAttribute('hidden')) return false;\r\n if (window.innerWidth > 940 && !navbar.hasAttribute('desktop')) return false;\r\n return true;\r\n }\r\n\r\n private updateNavbarPosition(): void {\r\n const visible = this.isNavbarVisible();\r\n const isBottom = this.position.startsWith('bottom');\r\n const shouldOffset = visible && (isBottom || this.isMobile);\r\n this.classList.toggle('navbar-visible', shouldOffset);\r\n }\r\n\r\n private observeNavbar(): void {\r\n if (this._navbarObserver) return;\r\n const navbar = document.querySelector('randstad-navbar');\r\n if (!navbar) return;\r\n this._navbarObserver = new MutationObserver(() => this.updateNavbarPosition());\r\n this._navbarObserver.observe(navbar, {\r\n attributes: true,\r\n attributeFilter: ['hidden', 'desktop'],\r\n });\r\n }\r\n\r\n public render() {\r\n const ariaRole: \"alert\" | \"status\" = this.type === 'error' || this.type === 'warning' ? 'alert' : 'status';\r\n \r\n return html`\r\n <div\r\n class=\"container ${this.open ? '' : 'hidden'} ${this.type}\"\r\n role=\"${ariaRole}\"\r\n aria-live=\"polite\"\r\n >\r\n <randstad-icon name=${this.icon} size=\"24px\" color=\"white\"></randstad-icon>\r\n <span class=\"message\">${this.message}</span>\r\n </div>\r\n `;\r\n }\r\n}\r\n\r\ncustomElements.define('randstad-snackbar', RandstadSnackbar);","import { LitElement, html, css } from 'lit';\r\nimport { customElement, property } from 'lit/decorators.js';\r\n\r\n@customElement('custom-stepper')\r\nexport class CustomStepper extends LitElement {\r\n @property({ type: Number }) totalSteps = 4;\r\n @property({ type: Number }) currentStep = 0;\r\n\r\n static styles = css`\r\n .stepper {\r\n display: flex;\r\n gap: 20px;\r\n align-items: center;\r\n }\r\n\r\n .step {\r\n width: 20px;\r\n height: 20px;\r\n border-radius: 50%;\r\n background-color: var(--white);\r\n border: 1px solid var(--secondary-color-20);\r\n position: relative;\r\n box-sizing: content-box;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n font-size: 12px;\r\n color: var(--secondary-color-20);\r\n }\r\n\r\n .step .inner-circle {\r\n width: 4px;\r\n height: 4px;\r\n border-radius: 50%;\r\n background-color: var(--white);\r\n position: absolute;\r\n top: 50%;\r\n left: 50%;\r\n transform: translate(-50%, -50%);\r\n image-rendering: -webkit-optimize-contrast;\r\n image-rendering: crisp-edges;\r\n backface-visibility: hidden;\r\n transform-style: preserve-3d;\r\n }\r\n\r\n .step.completed {\r\n background-color: var(--primary-color);\r\n border: 1px solid var(--primary-color);\r\n }\r\n\r\n .step.completed randstad-icon {\r\n color: white;\r\n }\r\n\r\n .step.active {\r\n background-color: var(--white);\r\n border: 1px solid var(--primary-color);\r\n }\r\n\r\n .step.active .inner-circle {\r\n background-color: var(--primary-color);\r\n }\r\n\r\n .step.active .pulse-circle {\r\n width: 12px;\r\n height: 12px;\r\n border-radius: 50%;\r\n background-color: var(--primary-color);\r\n opacity: 0.25;\r\n position: absolute;\r\n top: 50%;\r\n left: 50%;\r\n transform: translate(-50%, -50%) scale(0.6);\r\n animation: pulse 2000ms ease-in-out infinite;\r\n image-rendering: -webkit-optimize-contrast;\r\n image-rendering: crisp-edges;\r\n backface-visibility: hidden;\r\n }\r\n\r\n @keyframes pulse {\r\n 0% {\r\n transform: translate(-50%, -50%) scale(0.6);\r\n }\r\n 80%, 100% {\r\n transform: translate(-50%, -50%) scale(1.2);\r\n }\r\n }\r\n\r\n .step,\r\n .inner-circle,\r\n .pulse-circle {\r\n will-change: transform;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n }\r\n `;\r\n\r\n render() {\r\n return html`\r\n <div class=\"stepper\">\r\n ${Array.from({ length: this.totalSteps }, (_, index) => html`\r\n <div\r\n class=\"step ${index < this.currentStep ? 'completed' : index === this.currentStep ? 'active' : ''}\"\r\n >\r\n ${index < this.currentStep\r\n ? html`<randstad-icon name=\"tick\" size=\"16px\"></randstad-icon>`\r\n : index === this.currentStep\r\n ? html`\r\n <span class=\"pulse-circle\"></span>\r\n <span class=\"inner-circle\"></span>\r\n `\r\n : html`<span class=\"inner-circle\"></span>`}\r\n </div>\r\n `)}\r\n </div>\r\n `;\r\n }\r\n}\r\n","import { LitElement, html, css } from 'lit';\r\nimport { customElement, property, state } from 'lit/decorators.js';\r\nimport { bodyM, titleXXS } from '../styles/fontStyles';\r\n\r\ninterface TabItem {\r\n label: string;\r\n icon: string;\r\n value: string;\r\n}\r\n\r\n@customElement('tabs-bar')\r\nexport class TabsBar extends LitElement {\r\n @property({ type: Array }) tabs: TabItem[] = [];\r\n @property({ type: String }) selected: string = '';\r\n @state() private internalSelected: string = '';\r\n @state() private showPrev = false;\r\n @state() private showNext = false;\r\n\r\n private readonly SCROLL_OFFSET = 56;\r\n\r\n\r\n static styles = css`\r\n :host {\r\n display: block;\r\n border-bottom: 1px solid #E7E8EC;\r\n font-family: \"Graphik\", sans-serif;\r\n }\r\n\r\n .tab-wrapper {\r\n display: flex;\r\n justify-content: flex-start;\r\n }\r\n\r\n .tab {\r\n ${titleXXS};\r\n display: flex;\r\n gap: 8px;\r\n flex-direction: row;\r\n padding: 24px;\r\n align-items: center;\r\n text-align: center;\r\n color: #6F758D;\r\n cursor: pointer;\r\n text-decoration: none;\r\n position: relative;\r\n flex: 0 0 auto;\r\n min-width: 0;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n transition: background-color 0.2s ease-in-out;\r\n }\r\n\r\n .tab:hover {\r\n background-color: #E7E8EC;\r\n }\r\n\r\n .tab.active {\r\n color: #2175D9;\r\n }\r\n\r\n .tab.active::after {\r\n height: 2px;\r\n background-color: #2175D9;\r\n content: '';\r\n position: absolute;\r\n bottom: 0;\r\n left: 0;\r\n width: 100%;\r\n pointer-events: none;\r\n }\r\n\r\n .tab.active randstad-icon {\r\n filter: brightness(0) saturate(100%) invert(28%) sepia(87%) saturate(3514%) hue-rotate(202deg) brightness(92%) contrast(101%);\r\n }\r\n\r\n\r\n .scroll-container {\r\n position: relative;\r\n display: flex;\r\n align-items: center;\r\n overflow: hidden;\r\n }\r\n\r\n .tab-wrapper {\r\n display: flex;\r\n justify-content: flex-start;\r\n gap: 0px;\r\n overflow-x: auto;\r\n scroll-behavior: smooth;\r\n scrollbar-width: none; /* Firefox */\r\n -ms-overflow-style: none; /* IE 10+ */\r\n flex: 1;\r\n }\r\n\r\n .tab-wrapper::-webkit-scrollbar {\r\n display: none;\r\n }\r\n\r\n .scroll-button {\r\n border: none;\r\n font-size: 24px;\r\n cursor: pointer;\r\n z-index: 1;\r\n width: 56px;\r\n height: 100%;\r\n display: flex;\r\n align-items: center;\r\n color: #2175D9;\r\n padding: 0px;\r\n }\r\n\r\n .scroll-button.prev {\r\n justify-content: flex-start;\r\n position: absolute;\r\n left: 0;\r\n background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 50%, rgba(255, 255, 255, 0) 100%);\r\n }\r\n\r\n .scroll-button.next {\r\n justify-content: flex-end;\r\n position: absolute;\r\n right: 0;\r\n background: linear-gradient(270deg, #FFFFFF 0%, #FFFFFF 50%, rgba(255, 255, 255, 0) 100%);\r\n }\r\n\r\n @media (max-width: 940px) {\r\n .tab {\r\n ${bodyM};\r\n padding: 16px;\r\n }\r\n }\r\n `;\r\n\r\n firstUpdated() {\r\n this.handleScroll();\r\n }\r\n\r\n // synchronize `internalSelected` as soon as `selected` changes, before\r\n // rendering. Doing this in `updated()` caused a property update after the\r\n // render completed and triggered the warning.\r\n protected willUpdate(changed: Map<string, any>) {\r\n if (changed.has('selected')) {\r\n this.internalSelected = this.selected;\r\n }\r\n }\r\n\r\n private selectTab(value: string) {\r\n this.internalSelected = value;\r\n const selectedTab = this.tabs.find(tab => tab.value === value);\r\n if (selectedTab) {\r\n this.dispatchEvent(new CustomEvent('tab-change', {\r\n detail: selectedTab,\r\n bubbles: true,\r\n composed: true,\r\n }));\r\n }\r\n }\r\n\r\n private scrollTabsLeft() {\r\n const wrapper = this.renderRoot.querySelector('.tab-wrapper');\r\n if (!wrapper) return;\r\n\r\n const scrollLeft = wrapper.scrollLeft;\r\n const tabs = Array.from(wrapper.querySelectorAll('.tab')) as HTMLElement[];\r\n\r\n for (let i = tabs.length - 1; i >= 0; i--) {\r\n const el = tabs[i];\r\n const tabLeft = el.offsetLeft;\r\n\r\n // Esta es la nueva condición clave 👇\r\n if (tabLeft < scrollLeft + this.SCROLL_OFFSET - 1) {\r\n const scrollTarget = tabLeft - this.SCROLL_OFFSET;\r\n wrapper.scrollTo({ left: scrollTarget, behavior: 'smooth' });\r\n break;\r\n }\r\n }\r\n\r\n setTimeout(() => this.handleScroll(), 300);\r\n }\r\n\r\n private scrollTabsRight() {\r\n const wrapper = this.renderRoot.querySelector('.tab-wrapper');\r\n if (!wrapper) return;\r\n\r\n const wrapperLeft = wrapper.scrollLeft;\r\n const tabs = Array.from(wrapper.querySelectorAll('.tab')) as HTMLElement[];\r\n\r\n for (const el of tabs) {\r\n if (el.offsetLeft > wrapperLeft + this.SCROLL_OFFSET) {\r\n const scrollTarget = el.offsetLeft - this.SCROLL_OFFSET;\r\n wrapper.scrollTo({ left: scrollTarget, behavior: 'smooth' });\r\n break;\r\n }\r\n }\r\n\r\n setTimeout(() => this.handleScroll(), 300);\r\n }\r\n\r\n private handleScroll = () => {\r\n const wrapper = this.renderRoot.querySelector('.tab-wrapper');\r\n if (!wrapper) return;\r\n\r\n const { scrollLeft, scrollWidth, clientWidth } = wrapper;\r\n\r\n this.showPrev = scrollLeft > 0;\r\n this.showNext = scrollLeft + clientWidth < scrollWidth - 1;\r\n };\r\n\r\n render() {\r\n return html`\r\n <div class=\"scroll-container\">\r\n ${this.showPrev ? html`\r\n <button class=\"scroll-button prev\" @click=${this.scrollTabsLeft}>\r\n <randstad-icon name=\"arrow_left\" size=\"36px\"></randstad-icon>\r\n </button>\r\n ` : null}\r\n\r\n <div class=\"tab-wrapper\" @scroll=${this.handleScroll}>\r\n ${this.tabs.map(tab => html`\r\n <div class=\"tab ${this.internalSelected === tab.value ? 'active' : ''}\"\r\n @click=${() => this.selectTab(tab.value)}>\r\n <randstad-icon name=${tab.icon} size=\"24px\"></randstad-icon>\r\n <span>${tab.label}</span>\r\n </div>\r\n `)}\r\n </div>\r\n\r\n ${this.showNext ? html`\r\n <button class=\"scroll-button next\" @click=${this.scrollTabsRight}>\r\n <randstad-icon name=\"arrow_right\" size=\"36px\"></randstad-icon>\r\n </button>\r\n ` : null}\r\n </div>\r\n `;\r\n }\r\n}\r\n","import { customElement, property, query, state } from \"lit/decorators.js\";\nimport { BaseControl } from \"./BaseControl\";\nimport { html, TemplateResult } from \"lit\";\n\nexport interface FileHandlerConfig {\n baseMaxFiles: number;\n maxFileSize: number;\n acceptedFileTypes: string[];\n errorMessageType: string;\n errorMessageSize: string;\n typeError: 'image' | 'file';\n}\n\n@customElement(\"base-upload\")\nexport class BaseUpload extends BaseControl { \n @property({ type: Array }) files: File[] = []; \n @property({ type: Number }) simulatedDelay = 0;\n\n @property({ type: Boolean }) showAlertInError = false;\n @property({ type: String }) typeTextFile = '';\n \n @state() protected loading = false;\n @state() protected progress = 0;\n\n @state() protected errorTextMessage: string | null = null;\n\n @query( 'input[ type=\"file\" ]' ) protected fileInput!: HTMLInputElement;\n\n public isMultiple: boolean = false; \n\n private readonly TEXT_SNACKBAR_ERROR_TYPE: () => string = \n () => `El formato del archivo no es válido`; \n\n private readonly TEXT_SNACKBAR_ERROR_SIZE: ( maxSize: string ) => string = \n ( maxSize ) => `El archivo es muy grande. Máximo ${ maxSize }`;\n\n private readonly TEXT_SNACKBAR_ERROR_DELETE: ( typeFile: string ) => string = \n ( typeFile ) => `Tu ${ this.typeTextFile ? this.typeTextFile : typeFile === 'file' ? 'archivo' : 'imagen' } fue ${ typeFile === 'file' ? 'eliminado' : 'eliminada' }`;\n\n /**\n * Muestra el componente de randstad-snackbar globalmente.\n * Asume que el componente existe en el DOM principal.\n \n @param message El mensaje de error a mostrar.\n @param duration El tiempo en milisegundos que el snackbar debe permanecer abierto.\n */\n protected showSnackbar( message: string, duration: number = 5000, type: 'success' | 'error' ): void {\n // Buscamos el componente randstad-snackbar en el DOM global.\n // Usamos 'any' porque el tipo RandstadSnackbar no está importado aquí.\n const snackbar = document.querySelector( 'randstad-snackbar' ) as any; \n \n if ( snackbar ) {\n // Limpiamos cualquier temporizador anterior de inmediato para detener el cierre automático del mensaje viejo.\n clearTimeout((snackbar as any).timer);\n if (snackbar.open) {\n snackbar.open = false;\n }\n // Configuramos el contenido y el tipo para un error\n setTimeout(() => {\n snackbar.type = type;\n snackbar.icon = type === 'error' ? 'warning' : 'check';\n snackbar.message = message;\n snackbar.open = true; // Abrimos el snackbar\n\n // Iniciamos el temporizador exclusivo para este nuevo mensaje.\n (snackbar as any).timer = setTimeout(() => snackbar.open = false, duration);\n }, 150);\n } else {\n console.warn( 'randstad-snackbar component not found in the DOM. Cannot show alert.');\n }\n }\n\n /**\n Convierte el tamaño máximo de archivo de bytes a megabytes (MB) para mostrar en la interfaz de usuario.\n \n @param maxFileSize El tamaño máximo de archivo en bytes.\n\n @returns El tamaño máximo del archivo en megabytes.\n */\n protected baseGetTextMaxFileSize( maxFileSize: number ): string {\n const ONE_MB: number = 1048576; \n const ONE_KB: number = 1024;\n\n if ( maxFileSize >= ONE_MB ) {\n const sizeMB: number = maxFileSize / ONE_MB;\n const sizeMBString: string = parseFloat( sizeMB.toPrecision( 3 ) ).toString();\n\n return `${ sizeMBString } MB`; \n }\n\n const sizeKB: number = Math.round( maxFileSize / ONE_KB );\n return `${ sizeKB } KB`;\n }\n\n /**\n * Convierte una lista de tipos MIME en un string de nombres de archivos legibles.\n * Por ejemplo, 'application/pdf' se convierte en 'PDF'.\n \n @param acceptedFileTypes Un array de strings con los tipos MIME aceptados.\n @param typeMapping Un objeto que mapea los tipos MIME a nombres legibles.\n\n @returns Un string con los nombres de archivo aceptados, separados por comas y 'y'.\n */\n protected getReadableFileTypes( acceptedFileTypes: string[], typeMapping: { [key: string]: string } ): string {\n // Convertimos los tipos MIME a nombres legibles\n const readableTypes: string[] = acceptedFileTypes.map( type => typeMapping[ type ] || type );\n\n // Si solo hay un tipo, lo retornamos directamente\n if ( readableTypes.length <= 1 ) return readableTypes.join( '' );\n\n // Obtenemos el último elemento\n const lastType: string | undefined = readableTypes.pop();\n\n // Unimos el resto con comas y agregamos el último con ' y '\n return `${ readableTypes.join(', ') } y ${ lastType }`;\n }\n\n /**\n * Valida una lista de archivos contra el tamaño máximo y los tipos de archivo aceptados.\n \n @param filesToValidate Un array de objetos File a validar.\n @param maxFileSize El tamaño máximo permitido para un archivo en bytes.\n @param acceptedFileTypes Un array de strings con los tipos MIME aceptados.\n @param errorMessageType El mensaje de error a mostrar si el tipo de archivo no es válido.\n @param errorMessageSize El mensaje de error a mostrar si el tamaño del archivo excede el límite.\n @param typeError El tipo de error que se está manejando ('image' o 'file').\n \n @returns true si todos los archivos son válidos, de lo contrario, false.\n */\n protected validateFiles( filesToValidate: File[], maxFileSize: number, acceptedFileTypes: string[], errorMessageType: string, errorMessageSize: string, typeError: 'image' | 'file' ): boolean {\n // Determinamos si hay una restricción de tamaño.\n const hasSizeLimit: boolean = maxFileSize > 0; \n \n // Determinamos si hay una restricción de tipo.\n const hasTypeLimit: boolean = acceptedFileTypes.length > 0;\n \n for ( const file of filesToValidate ) {\n // Extracts the file extension from the file name and normalizes it to lowercase (e.g. 'JPG' → '.jpg')\n const fileExtension: string = '.' + file.name.split( '.' ).pop()?.toLowerCase();\n // Checks if the file's MIME type (e.g. 'image/jpeg') is in the accepted types list\n const isTypeValid: boolean = acceptedFileTypes.includes( file.type );\n // Checks if the file extension matches one of the accepted MIME types\n const isExtensionValid: boolean = acceptedFileTypes.some( type => {\n // Extracts the subtype from the MIME string (e.g. 'jpeg' from 'image/jpeg')\n const ext = type.split( '/' )[ 1 ];\n // Special case: 'image/jpeg' covers both .jpg and .jpeg, but NOT .jpe or other aliases\n if ( ext === 'jpeg' ) return fileExtension === '.jpeg' || fileExtension === '.jpg';\n // For all other types, the extension must match exactly (e.g. '.png' === '.png')\n return fileExtension === `.${ ext }`;\n });\n\n // Rejects the file if either the MIME type or the extension doesn't pass validation\n if ( hasTypeLimit && ( !isTypeValid || !isExtensionValid ) ) {\n this.setError( typeError, errorMessageType, this.TEXT_SNACKBAR_ERROR_TYPE() );\n return false;\n }\n\n if ( hasSizeLimit && file.size > maxFileSize ) {\n this.setError( typeError, errorMessageSize, this.TEXT_SNACKBAR_ERROR_SIZE( this.baseGetTextMaxFileSize( maxFileSize ) ) );\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * Maneja los archivos seleccionados por el usuario.\n * Realiza validaciones de cantidad y tipo, y actualiza la lista de archivos.\n \n @param files La lista de archivos de un input de tipo file.\n @param config Un objeto de configuración que contiene los parámetros de validación (`baseMaxFiles`, `maxFileSize`, etc.) y mensajes de error.\n */\n protected async baseHandleFiles( files: FileList | null, config: FileHandlerConfig ) {\n const { baseMaxFiles, maxFileSize, acceptedFileTypes, errorMessageType, errorMessageSize, typeError } = config;\n\n this.setError( typeError, null, null );\n if ( !files || this.disabled || this.loading ) return;\n\n const currentFiles: File[] = Array.isArray( this.files ) ? this.files : [];\n \n // Aseguramos que el valor de maxFiles sea un número válido.\n const maxFiles: number = Number.isFinite( baseMaxFiles ) && baseMaxFiles > 0 ? baseMaxFiles : 1;\n const remainingSlots: number = maxFiles - currentFiles.length;\n \n if ( remainingSlots <= 0 ) {\n const baseErrorTextMessage: string = `Alcanzaste el número máximo de archivos`;\n this.setError( typeError, baseErrorTextMessage, baseErrorTextMessage );\n\n return;\n }\n\n const selected: File[] = Array.from( files ).slice( 0, remainingSlots );\n if ( selected.length === 0 ) return;\n\n if ( !this.validateFiles( selected, maxFileSize, acceptedFileTypes, errorMessageType, errorMessageSize, typeError ) ) return;\n\n const delay: number = this.simulatedDelay ?? 0;\n\n if ( delay <= 0 ) {\n this.files = [ ...currentFiles, ...selected ];\n this.dispatchEvent( new CustomEvent( 'files-changed', { detail: this.files } ) );\n \n return;\n }\n\n this.loading = true;\n this.progress = 0;\n\n await this.updateComplete;\n\n const startTime: number = Date.now();\n const interval = setInterval( () => {\n const elapsedTime: number = Date.now() - startTime;\n const newProgress: number = Math.min( Math.round( ( elapsedTime / delay ) * 100 ), 100 );\n\n this.progress = newProgress;\n\n if ( this.progress >= 100 ) {\n clearInterval( interval );\n\n this.files = [ ...currentFiles, ...selected ];\n this.loading = false;\n this.progress = 0;\n\n this.dispatchEvent( new CustomEvent( 'files-changed', { detail: this.files } ) );\n }\n }, 10);\n\n if ( this.fileInput ) this.fileInput.value = ''; \n }\n\n /**\n * Maneja los archivos seleccionados por el usuario, aplicando validaciones de cantidad y tipo, y gestionando el proceso de carga simulado.\n \n @param files La lista de archivos (`FileList`) seleccionados de un `input` de tipo `file`.\n @param config Un objeto de configuración que contiene los parámetros de validación (`baseMaxFiles`, `maxFileSize`, etc.) y mensajes de error.\n */\n protected baseOnFileInputChange( event: Event, config: FileHandlerConfig ) {\n const target: HTMLInputElement = event.target as HTMLInputElement;\n \n this.baseHandleFiles( target.files, config );\n if ( this.fileInput ) this.fileInput.value = '';\n }\n\n /**\n * Elimina un archivo de la lista de archivos seleccionados.\n \n @param index El índice del archivo a eliminar.\n @param typeError El tipo de error que se está manejando ('image' o 'file').\n */\n protected removeFile( index: number, typeError: 'image' | 'file' ) {\n this.files = this.files.filter( ( _, i ) => i !== index );\n this.dispatchEvent( new CustomEvent( 'files-changed', { detail: this.files } ) );\n\n if ( this.files.length === 0 ) this.setError( typeError, null, null );\n if ( this.showAlertInError ) this.showSnackbar( this.TEXT_SNACKBAR_ERROR_DELETE( typeError ), 5000, 'success' );\n }\n\n /**\n Establece el estado de error y el mensaje de error correspondiente para el componente.\n \n @param typeError Indica el tipo de componente de carga de archivos ('image' o 'file').\n @param message El mensaje de error a mostrar. Si es `null`, el estado de error se desactiva.\n */\n private setError( typeError: 'image' | 'file' = 'file', message: string | null, snackbarMessage: string | null ) {\n if( typeError === 'file' ){\n this.error = message ? true : false;\n this.errorMessage = message;\n } \n\n if( typeError === 'image' ) this.errorTextMessage = message;\n\n if ( this.showAlertInError && snackbarMessage ) this.showSnackbar( snackbarMessage, 5000, 'error' );\n }\n\n public renderLoadingContainer( htmlSlotContent: TemplateResult ) {\n return html `\n ${ this.loading\n ? html`\n <div class=\"progress-bar-container\">\n <div class=\"progress-bar\" role=\"progressbar\" aria-label=\"Subiendo archivo…\">\n <div class=\"progress-bar-fill\" style=\"width: ${ this.progress }%;\"></div>\n </div>\n </div>\n `\n : html`\n ${ htmlSlotContent }\n `\n }\n `;\n }\n}","export const IMAGE_TYPE_MAPPING: { [key: string]: string } = {\n 'image/jpg': '.jpg',\n 'image/jpeg': '.jpeg',\n 'image/png': '.png'\n};\n\nexport const FILE_TYPE_MAPPING: { [key: string]: string } = {\n 'application/pdf': '.pdf',\n 'application/msword': '.doc',\n 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': '.docx',\n\n ...IMAGE_TYPE_MAPPING,\n\n 'text/plain': '.txt',\n\n // Agregar más tipos si se necesitaran\n};","import { css, CSSResult } from 'lit';\n \nexport const progressBarUploadStyles: CSSResult = css`\n .progress-bar-container {\n min-height: 23px;\n display: flex;\n align-items: center;\n }\n\n .progress-bar {\n min-width: 80px;\n height: 8px;\n background-color: var( --secondary-color-20 );\n border-radius: 999px;\n overflow: hidden;\n }\n\n .progress-bar-fill {\n height: 100%;\n background-color: var( --primary-color );\n transition: width 0.1s ease;\n }\n`;","import { html, css, TemplateResult, nothing } from 'lit';\r\nimport { customElement, property, state } from 'lit/decorators.js';\r\nimport { BaseUpload, FileHandlerConfig } from '../helpers/BaseUpload';\r\nimport { bodyS, bodyXS } from '../styles/fontStyles'; \r\nimport { IMAGE_TYPE_MAPPING } from '../utils/file-format';\r\nimport { progressBarUploadStyles } from '../styles/progress-bar-upload';\r\nimport { mixStyles } from '../styles/mix';\r\n\r\n@customElement('upload-image')\r\nexport class UploadImage extends BaseUpload {\r\n @property({ type: Array }) acceptedFileTypes: string[] = []; \r\n @property({ type: Number }) maxFiles = 3;\r\n @property({ type: Number }) maxFileSize = 0;\r\n\r\n @property({ type: Boolean }) isShowInfoSize = true;\r\n @property({ type: Boolean }) isChangeStyleError = false;\r\n\r\n @state() private isDragging = false;\r\n @state() private imageUrls: string[] = [];\r\n\r\n @state() private isMaxFilesReached: boolean = false;\r\n\r\n static styles = css`\r\n ${ mixStyles }\r\n ${ progressBarUploadStyles }\r\n\r\n :host {\r\n font-family: 'Graphik', sans-serif;\r\n }\r\n\r\n .image-container {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n }\r\n\r\n .upload-component-wrapper {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n }\r\n\r\n .container {\r\n display: flex;\r\n gap: 16px;\r\n flex-direction: column;\r\n border: 1px solid var( --secondary-color-10 );\r\n border-radius: 4px;\r\n padding: 16px;\r\n align-items: center;\r\n background-color: var( --white );\r\n transition: border 0.2s ease, outline 0.2s ease;\r\n }\r\n\r\n .container.dragging {\r\n border: 1px dashed var( --secondary-color-40 );\r\n }\r\n\r\n .icon {\r\n width: 40px;\r\n height: 40px\r\n }\r\n\r\n .text-container {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n gap: 8px;\r\n }\r\n\r\n .text-main {\r\n ${ bodyS };\r\n text-align: center;\r\n vertical-align: middle;\r\n color: var( --secondary-color-80 );\r\n }\r\n\r\n .text-secondary {\r\n ${ bodyXS };\r\n text-align: center;\r\n vertical-align: middle;\r\n color: var( --secondary-color-60 );\r\n }\r\n\r\n .text-tertiary {\r\n ${ bodyXS };\r\n text-align: center;\r\n vertical-align: middle;\r\n color: var( --secondary-color-40 );\r\n }\r\n\r\n .button {\r\n ${ bodyXS };\r\n background-color: var( --primary-color );\r\n border: none;\r\n padding: 4px 16px;\r\n cursor: pointer;\r\n border-radius: 4px;\r\n color: var(--white);\r\n text-align: center;\r\n vertical-align: middle;\r\n }\r\n\r\n :host([disabled]) .button, .container[disabled] .button {\r\n background-color: var( --secondary-color-20 );\r\n color: var( --secondary-color-80 );\r\n cursor: default;\r\n }\r\n\r\n input[type=\"file\"] {\r\n display: none;\r\n }\r\n \r\n .image-gallery {\r\n display: flex;\r\n flex-wrap: wrap;\r\n gap: 16px;\r\n width: 100%;\r\n }\r\n\r\n .image-item {\r\n position: relative; \r\n width: 100px;\r\n height: 99px;\r\n border: 1px solid transparent;\r\n border-radius: 4px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n background: transparent;\r\n }\r\n\r\n .image-item img {\r\n width: 100%;\r\n height: 100%;\r\n object-fit: contain;\r\n opacity: 0.85;\r\n }\r\n\r\n /* Solución definitiva para el posicionamiento y el padding del botón. */\r\n .image-item randstad-button {\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n z-index: 10;\r\n --content-padding: 8px;\r\n }\r\n\r\n .text-main.error {\r\n color: var(--ui-negative, #E00F0F);\r\n }\r\n `;\r\n\r\n private getFileConfig(): FileHandlerConfig {\r\n const baseMessageError: string = 'tu archivo no es válido';\r\n const hasSizeLimit: boolean = this.maxFileSize > 0;\r\n const hasTypeLimit: boolean = this.acceptedFileTypes.length > 0;\r\n\r\n return {\r\n baseMaxFiles: this.maxFiles,\r\n maxFileSize: this.maxFileSize,\r\n acceptedFileTypes: this.acceptedFileTypes,\r\n errorMessageType: hasTypeLimit ? baseMessageError : '',\r\n errorMessageSize: hasSizeLimit ? baseMessageError : '',\r\n typeError: 'image'\r\n };\r\n }\r\n\r\n private getTextAcceptedFileTypes(): string {\r\n return this.getReadableFileTypes( this.acceptedFileTypes, IMAGE_TYPE_MAPPING );\r\n }\r\n\r\n private getTextMaxFileSize(): string {\r\n return this.baseGetTextMaxFileSize( this.maxFileSize );\r\n }\r\n \r\n public updated( changedProperties: Map<string | number | symbol, unknown> ): void {\r\n if ( changedProperties.has( 'files' ) && this.files ) {\r\n this.imageUrls.forEach( url => URL.revokeObjectURL( url ) );\r\n this.imageUrls = this.files.map( file => URL.createObjectURL( file ) );\r\n }\r\n }\r\n \r\n public disconnectedCallback() {\r\n super.disconnectedCallback();\r\n this.imageUrls.forEach( url => URL.revokeObjectURL( url ) );\r\n }\r\n\r\n private async handleFiles( files: FileList | null ) {\r\n await this.baseHandleFiles( files, this.getFileConfig() );\r\n }\r\n\r\n private onFileInputChange( event: Event ) {\r\n this.baseOnFileInputChange( event, this.getFileConfig() );\r\n }\r\n\r\n private onDrop( event: DragEvent ) {\r\n event.preventDefault();\r\n if ( this.disabled ) return;\r\n\r\n this.isDragging = false;\r\n this.handleFiles( event.dataTransfer?.files || null );\r\n }\r\n\r\n private onDragOver( event: DragEvent ) {\r\n event.preventDefault();\r\n\r\n if ( this.disabled ) return;\r\n this.isDragging = true;\r\n }\r\n\r\n private onDragLeave( event: DragEvent ) {\r\n event.preventDefault();\r\n\r\n if ( this.disabled ) return;\r\n this.isDragging = false;\r\n }\r\n\r\n public willUpdate( changedProperties: Map<string | number | symbol, unknown> ) {\r\n if ( !changedProperties.has( 'files' ) ) return;\r\n this.isMaxFilesReached = ( this.files || [] ).length >= 3;\r\n\r\n if ( changedProperties.has( 'maxFiles' ) || changedProperties.size === 0 ) \r\n this.isMultiple = this.maxFiles > 1; \r\n }\r\n\r\n private handleButtonKeydown( event: KeyboardEvent, isDisabled: boolean ): void {\r\n if ( isDisabled ) return;\r\n\r\n if ( event.key === 'Enter' || event.key === ' ' ) {\r\n event.preventDefault(); \r\n \r\n const inputElement: HTMLInputElement = (event.currentTarget as HTMLElement | null)?.querySelector( 'input[type=\"file\"]' ) as HTMLInputElement;\r\n if ( inputElement && !inputElement.disabled ) inputElement.click(); \r\n }\r\n }\r\n\r\n public render() {\r\n const isUploadDisabled: boolean = this.disabled || this.isMaxFilesReached;\r\n const isRemoveButtonDisabled: boolean = this.disabled;\r\n\r\n // Comprobaciones de límite para la UI\r\n const hasSizeLimit: boolean = this.maxFileSize > 0;\r\n const hasTypeLimit: boolean = this.acceptedFileTypes.length > 0;\r\n const hasSizeLimitText: boolean = this.isShowInfoSize === false ? false : true;\r\n\r\n // Generar textos condicionales para la UI\r\n const sizeText: string = hasSizeLimit && hasSizeLimitText ? ` / max. ${ this.getTextMaxFileSize() }` : '';\r\n const typeText: string = hasTypeLimit ? this.getTextAcceptedFileTypes() : '';\r\n\r\n // Determinar el ícono y el texto en base al estado de error\r\n const errorText: boolean = this.isChangeStyleError === true ? true : false;\r\n const hasError: boolean = !!this.errorTextMessage; \r\n const applyErrorStyle: boolean = hasError && errorText;\r\n\r\n const mainText: string = applyErrorStyle && this.errorTextMessage ? this.errorTextMessage : `subí hasta ${ this.maxFiles } imágenes`;\r\n const iconSrc: string = applyErrorStyle ? 'assets/img/image-upload-error.svg' : ( isUploadDisabled \r\n ? 'assets/img/image-upload-disabled.svg' \r\n : 'assets/img/image-upload-circle.svg' \r\n );\r\n\r\n const containerClass: string = `container ${ this.isDragging ? 'dragging' : '' } ${ applyErrorStyle ? 'error' : '' }`;\r\n\r\n const inputBaseTemplate: TemplateResult = html`\r\n <label class=\"button\"\r\n tabindex=\"0\" \r\n @keydown=${ ( event: KeyboardEvent ) => this.handleButtonKeydown( event, isUploadDisabled ) }\r\n \r\n >\r\n agregar archivo\r\n\r\n <input\r\n type=\"file\"\r\n accept=${ this.acceptedFileTypes.join(',') }\r\n ?multiple=${ this.isMultiple }\r\n @change=\"${ this.onFileInputChange }\"\r\n ?disabled=\"${ isUploadDisabled }\"\r\n />\r\n </label>\r\n `;\r\n \r\n return html`\r\n <div class=\"image-container\" style=\"${ this.labelColor ? ` --label-color: ${ this.labelColor }` : ''}\">\r\n ${ this.label \r\n ? html` ${ this.renderLabelContainer() } `\r\n : nothing\r\n }\r\n \r\n <div class=\"upload-component-wrapper\">\r\n ${ this.imageUrls.length > 0\r\n ? html`\r\n <div class=\"image-gallery\">\r\n ${ this.imageUrls.map( ( url, index ) => \r\n html`\r\n <div class=\"image-item\">\r\n <img src=\"${ url }\" loading=\"lazy\" alt=\"Uploaded image\" />\r\n\r\n <randstad-button\r\n .variant=${ 'button-icon' }\r\n .iconName=${ 'trash' }\r\n @click=${ () => this.removeFile( index, 'image' ) }\r\n ?disabled=${ isRemoveButtonDisabled }\r\n >\r\n </randstad-button>\r\n </div>\r\n `\r\n )}\r\n </div>\r\n `\r\n : ''\r\n }\r\n\r\n <div\r\n class=\"${ containerClass }\"\r\n ?disabled=\"${ isUploadDisabled }\"\r\n @drop=\"${ this.onDrop }\"\r\n @dragover=\"${ this.onDragOver }\"\r\n @dragleave=\"${ this.onDragLeave }\"\r\n >\r\n <img\r\n class=\"icon\"\r\n src=${ iconSrc }\r\n alt=\"Subir imagen\"\r\n />\r\n\r\n <div class=\"text-container\">\r\n <div class=\"text-main ${ applyErrorStyle ? 'error' : '' }\">${ mainText }</div>\r\n\r\n <div class=\"text-secondary\">\r\n Podés agregar un archivo o arrastrar y soltar acá\r\n </div>\r\n\r\n <div class=\"text-tertiary\">${ typeText }${ sizeText }</div>\r\n </div>\r\n\r\n ${ this.renderLoadingContainer( inputBaseTemplate ) }\r\n </div>\r\n </div>\r\n </div>\r\n `;\r\n }\r\n}","/**\n * @module constants\n * @summary Useful constants\n * @description\n * Collection of useful date constants.\n *\n * The constants could be imported from `date-fns/constants`:\n *\n * ```ts\n * import { maxTime, minTime } from \"./constants/date-fns/constants\";\n *\n * function isAllowedTime(time) {\n * return time <= maxTime && time >= minTime;\n * }\n * ```\n */\n\n/**\n * @constant\n * @name daysInWeek\n * @summary Days in 1 week.\n */\nexport const daysInWeek = 7;\n\n/**\n * @constant\n * @name daysInYear\n * @summary Days in 1 year.\n *\n * @description\n * How many days in a year.\n *\n * One years equals 365.2425 days according to the formula:\n *\n * > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400.\n * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days\n */\nexport const daysInYear = 365.2425;\n\n/**\n * @constant\n * @name maxTime\n * @summary Maximum allowed time.\n *\n * @example\n * import { maxTime } from \"./constants/date-fns/constants\";\n *\n * const isValid = 8640000000000001 <= maxTime;\n * //=> false\n *\n * new Date(8640000000000001);\n * //=> Invalid Date\n */\nexport const maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;\n\n/**\n * @constant\n * @name minTime\n * @summary Minimum allowed time.\n *\n * @example\n * import { minTime } from \"./constants/date-fns/constants\";\n *\n * const isValid = -8640000000000001 >= minTime;\n * //=> false\n *\n * new Date(-8640000000000001)\n * //=> Invalid Date\n */\nexport const minTime = -maxTime;\n\n/**\n * @constant\n * @name millisecondsInWeek\n * @summary Milliseconds in 1 week.\n */\nexport const millisecondsInWeek = 604800000;\n\n/**\n * @constant\n * @name millisecondsInDay\n * @summary Milliseconds in 1 day.\n */\nexport const millisecondsInDay = 86400000;\n\n/**\n * @constant\n * @name millisecondsInMinute\n * @summary Milliseconds in 1 minute\n */\nexport const millisecondsInMinute = 60000;\n\n/**\n * @constant\n * @name millisecondsInHour\n * @summary Milliseconds in 1 hour\n */\nexport const millisecondsInHour = 3600000;\n\n/**\n * @constant\n * @name millisecondsInSecond\n * @summary Milliseconds in 1 second\n */\nexport const millisecondsInSecond = 1000;\n\n/**\n * @constant\n * @name minutesInYear\n * @summary Minutes in 1 year.\n */\nexport const minutesInYear = 525600;\n\n/**\n * @constant\n * @name minutesInMonth\n * @summary Minutes in 1 month.\n */\nexport const minutesInMonth = 43200;\n\n/**\n * @constant\n * @name minutesInDay\n * @summary Minutes in 1 day.\n */\nexport const minutesInDay = 1440;\n\n/**\n * @constant\n * @name minutesInHour\n * @summary Minutes in 1 hour.\n */\nexport const minutesInHour = 60;\n\n/**\n * @constant\n * @name monthsInQuarter\n * @summary Months in 1 quarter.\n */\nexport const monthsInQuarter = 3;\n\n/**\n * @constant\n * @name monthsInYear\n * @summary Months in 1 year.\n */\nexport const monthsInYear = 12;\n\n/**\n * @constant\n * @name quartersInYear\n * @summary Quarters in 1 year\n */\nexport const quartersInYear = 4;\n\n/**\n * @constant\n * @name secondsInHour\n * @summary Seconds in 1 hour.\n */\nexport const secondsInHour = 3600;\n\n/**\n * @constant\n * @name secondsInMinute\n * @summary Seconds in 1 minute.\n */\nexport const secondsInMinute = 60;\n\n/**\n * @constant\n * @name secondsInDay\n * @summary Seconds in 1 day.\n */\nexport const secondsInDay = secondsInHour * 24;\n\n/**\n * @constant\n * @name secondsInWeek\n * @summary Seconds in 1 week.\n */\nexport const secondsInWeek = secondsInDay * 7;\n\n/**\n * @constant\n * @name secondsInYear\n * @summary Seconds in 1 year.\n */\nexport const secondsInYear = secondsInDay * daysInYear;\n\n/**\n * @constant\n * @name secondsInMonth\n * @summary Seconds in 1 month\n */\nexport const secondsInMonth = secondsInYear / 12;\n\n/**\n * @constant\n * @name secondsInQuarter\n * @summary Seconds in 1 quarter.\n */\nexport const secondsInQuarter = secondsInMonth * 3;\n\n/**\n * @constant\n * @name constructFromSymbol\n * @summary Symbol enabling Date extensions to inherit properties from the reference date.\n *\n * The symbol is used to enable the `constructFrom` function to construct a date\n * using a reference date and a value. It allows to transfer extra properties\n * from the reference date to the new date. It's useful for extensions like\n * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as\n * a constructor argument.\n */\nexport const constructFromSymbol = Symbol.for(\"constructDateFrom\");\n","import { constructFromSymbol } from \"./constants.js\";\n\n/**\n * @name constructFrom\n * @category Generic Helpers\n * @summary Constructs a date using the reference date and the value\n *\n * @description\n * The function constructs a new date using the constructor from the reference\n * date and the given value. It helps to build generic functions that accept\n * date extensions.\n *\n * It defaults to `Date` if the passed reference date is a number or a string.\n *\n * Starting from v3.7.0, it allows to construct a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The reference date to take constructor from\n * @param value - The value to create the date\n *\n * @returns Date initialized using the given date and value\n *\n * @example\n * import { constructFrom } from \"./constructFrom/date-fns\";\n *\n * // A function that clones a date preserving the original type\n * function cloneDate<DateType extends Date>(date: DateType): DateType {\n * return constructFrom(\n * date, // Use constructor from the given date\n * date.getTime() // Use the date value to create a new date\n * );\n * }\n */\nexport function constructFrom(date, value) {\n if (typeof date === \"function\") return date(value);\n\n if (date && typeof date === \"object\" && constructFromSymbol in date)\n return date[constructFromSymbol](value);\n\n if (date instanceof Date) return new date.constructor(value);\n\n return new Date(value);\n}\n\n// Fallback for modularized imports:\nexport default constructFrom;\n","import { constructFrom } from \"./constructFrom.js\";\n\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * Starting from v3.7.0, it clones a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param argument - The value to convert\n *\n * @returns The parsed date in the local time zone\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport function toDate(argument, context) {\n // [TODO] Get rid of `toDate` or `constructFrom`?\n return constructFrom(context || argument, argument);\n}\n\n// Fallback for modularized imports:\nexport default toDate;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addMonths} function options.\n */\n\n/**\n * @name addMonths\n * @category Month Helpers\n * @summary Add the specified number of months to the given date.\n *\n * @description\n * Add the specified number of months to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of months to be added.\n * @param options - The options object\n *\n * @returns The new date with the months added\n *\n * @example\n * // Add 5 months to 1 September 2014:\n * const result = addMonths(new Date(2014, 8, 1), 5)\n * //=> Sun Feb 01 2015 00:00:00\n *\n * // Add one month to 30 January 2023:\n * const result = addMonths(new Date(2023, 0, 30), 1)\n * //=> Tue Feb 28 2023 00:00:00\n */\nexport function addMonths(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n if (!amount) {\n // If 0 months, no-op to avoid changing times in the hour before end of DST\n return _date;\n }\n const dayOfMonth = _date.getDate();\n\n // The JS Date object supports date math by accepting out-of-bounds values for\n // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and\n // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we\n // want except that dates will wrap around the end of a month, meaning that\n // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So\n // we'll default to the end of the desired month by adding 1 to the desired\n // month and using a date of 0 to back up one day to the end of the desired\n // month.\n const endOfDesiredMonth = constructFrom(options?.in || date, _date.getTime());\n endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);\n const daysInMonth = endOfDesiredMonth.getDate();\n if (dayOfMonth >= daysInMonth) {\n // If we're already at the end of the month, then this is the correct date\n // and we're done.\n return endOfDesiredMonth;\n } else {\n // Otherwise, we now know that setting the original day-of-month value won't\n // cause an overflow, so set the desired day-of-month. Note that we can't\n // just set the date of `endOfDesiredMonth` because that object may have had\n // its time changed in the unusual case where where a DST transition was on\n // the last day of the month and its local time was in the hour skipped or\n // repeated next to a DST transition. So we use `date` instead which is\n // guaranteed to still have the original time.\n _date.setFullYear(\n endOfDesiredMonth.getFullYear(),\n endOfDesiredMonth.getMonth(),\n dayOfMonth,\n );\n return _date;\n }\n}\n\n// Fallback for modularized imports:\nexport default addMonths;\n","let defaultOptions = {};\n\nexport function getDefaultOptions() {\n return defaultOptions;\n}\n\nexport function setDefaultOptions(newOptions) {\n defaultOptions = newOptions;\n}\n","import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfWeek} function options.\n */\n\n/**\n * @name startOfWeek\n * @category Week Helpers\n * @summary Return the start of a week for the given date.\n *\n * @description\n * Return the start of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week\n *\n * @example\n * // The start of a week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date, options?.in);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n\n _date.setDate(_date.getDate() - diff);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeek;\n","import { startOfWeek } from \"./startOfWeek.js\";\n\n/**\n * The {@link startOfISOWeek} function options.\n */\n\n/**\n * @name startOfISOWeek\n * @category ISO Week Helpers\n * @summary Return the start of an ISO week for the given date.\n *\n * @description\n * Return the start of an ISO week for the given date.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of an ISO week\n *\n * @example\n * // The start of an ISO week for 2 September 2014 11:55:00:\n * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfISOWeek(date, options) {\n return startOfWeek(date, { ...options, weekStartsOn: 1 });\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeek;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISOWeekYear} function options.\n */\n\n/**\n * @name getISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Get the ISO week-numbering year of the given date.\n *\n * @description\n * Get the ISO week-numbering year of the given date,\n * which always starts 3 days before the year's first Thursday.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n *\n * @returns The ISO week-numbering year\n *\n * @example\n * // Which ISO-week numbering year is 2 January 2005?\n * const result = getISOWeekYear(new Date(2005, 0, 2))\n * //=> 2004\n */\nexport function getISOWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);\n fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);\n\n const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);\n fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);\n fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);\n\n if (_date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (_date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getISOWeekYear;\n","import { toDate } from \"../toDate.js\";\n\n/**\n * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.\n * They usually appear for dates that denote time before the timezones were introduced\n * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891\n * and GMT+01:00:00 after that date)\n *\n * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,\n * which would lead to incorrect calculations.\n *\n * This function returns the timezone offset in milliseconds that takes seconds in account.\n */\nexport function getTimezoneOffsetInMilliseconds(date) {\n const _date = toDate(date);\n const utcDate = new Date(\n Date.UTC(\n _date.getFullYear(),\n _date.getMonth(),\n _date.getDate(),\n _date.getHours(),\n _date.getMinutes(),\n _date.getSeconds(),\n _date.getMilliseconds(),\n ),\n );\n utcDate.setUTCFullYear(_date.getFullYear());\n return +date - +utcDate;\n}\n","import { constructFrom } from \"../constructFrom.js\";\n\nexport function normalizeDates(context, ...dates) {\n const normalize = constructFrom.bind(\n null,\n context || dates.find((date) => typeof date === \"object\"),\n );\n return dates.map(normalize);\n}\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfDay} function options.\n */\n\n/**\n * @name startOfDay\n * @category Day Helpers\n * @summary Return the start of a day for the given date.\n *\n * @description\n * Return the start of a day for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - The options\n *\n * @returns The start of a day\n *\n * @example\n * // The start of a day for 2 September 2014 11:55:00:\n * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 00:00:00\n */\nexport function startOfDay(date, options) {\n const _date = toDate(date, options?.in);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfDay;\n","import { addMonths } from \"./addMonths.js\";\n\n/**\n * The {@link addYears} function options.\n */\n\n/**\n * @name addYears\n * @category Year Helpers\n * @summary Add the specified number of years to the given date.\n *\n * @description\n * Add the specified number of years to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type.\n *\n * @param date - The date to be changed\n * @param amount - The amount of years to be added.\n * @param options - The options\n *\n * @returns The new date with the years added\n *\n * @example\n * // Add 5 years to 1 September 2014:\n * const result = addYears(new Date(2014, 8, 1), 5)\n * //=> Sun Sep 01 2019 00:00:00\n */\nexport function addYears(date, amount, options) {\n return addMonths(date, amount * 12, options);\n}\n\n// Fallback for modularized imports:\nexport default addYears;\n","import { isDate } from \"./isDate.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * @name isValid\n * @category Common Helpers\n * @summary Is the given date valid?\n *\n * @description\n * Returns false if argument is Invalid Date and true otherwise.\n * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)\n * Invalid Date is a Date, whose time value is NaN.\n *\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @param date - The date to check\n *\n * @returns The date is valid\n *\n * @example\n * // For the valid date:\n * const result = isValid(new Date(2014, 1, 31))\n * //=> true\n *\n * @example\n * // For the value, convertible into a date:\n * const result = isValid(1393804800000)\n * //=> true\n *\n * @example\n * // For the invalid date:\n * const result = isValid(new Date(''))\n * //=> false\n */\nexport function isValid(date) {\n return !((!isDate(date) && typeof date !== \"number\") || isNaN(+toDate(date)));\n}\n\n// Fallback for modularized imports:\nexport default isValid;\n","/**\n * @name isDate\n * @category Common Helpers\n * @summary Is the given value a date?\n *\n * @description\n * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.\n *\n * @param value - The value to check\n *\n * @returns True if the given value is a date\n *\n * @example\n * // For a valid date:\n * const result = isDate(new Date())\n * //=> true\n *\n * @example\n * // For an invalid date:\n * const result = isDate(new Date(NaN))\n * //=> true\n *\n * @example\n * // For some value:\n * const result = isDate('2014-02-31')\n * //=> false\n *\n * @example\n * // For an object:\n * const result = isDate({})\n * //=> false\n */\nexport function isDate(value) {\n return (\n value instanceof Date ||\n (typeof value === \"object\" &&\n Object.prototype.toString.call(value) === \"[object Date]\")\n );\n}\n\n// Fallback for modularized imports:\nexport default isDate;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfMonth} function options.\n */\n\n/**\n * @name startOfMonth\n * @category Month Helpers\n * @summary Return the start of a month for the given date.\n *\n * @description\n * Return the start of a month for the given date. The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments.\n * Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed,\n * or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a month\n *\n * @example\n * // The start of a month for 2 September 2014 11:55:00:\n * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n _date.setDate(1);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfMonth;\n","const formatDistanceLocale = {\n lessThanXSeconds: {\n one: \"less than a second\",\n other: \"less than {{count}} seconds\",\n },\n\n xSeconds: {\n one: \"1 second\",\n other: \"{{count}} seconds\",\n },\n\n halfAMinute: \"half a minute\",\n\n lessThanXMinutes: {\n one: \"less than a minute\",\n other: \"less than {{count}} minutes\",\n },\n\n xMinutes: {\n one: \"1 minute\",\n other: \"{{count}} minutes\",\n },\n\n aboutXHours: {\n one: \"about 1 hour\",\n other: \"about {{count}} hours\",\n },\n\n xHours: {\n one: \"1 hour\",\n other: \"{{count}} hours\",\n },\n\n xDays: {\n one: \"1 day\",\n other: \"{{count}} days\",\n },\n\n aboutXWeeks: {\n one: \"about 1 week\",\n other: \"about {{count}} weeks\",\n },\n\n xWeeks: {\n one: \"1 week\",\n other: \"{{count}} weeks\",\n },\n\n aboutXMonths: {\n one: \"about 1 month\",\n other: \"about {{count}} months\",\n },\n\n xMonths: {\n one: \"1 month\",\n other: \"{{count}} months\",\n },\n\n aboutXYears: {\n one: \"about 1 year\",\n other: \"about {{count}} years\",\n },\n\n xYears: {\n one: \"1 year\",\n other: \"{{count}} years\",\n },\n\n overXYears: {\n one: \"over 1 year\",\n other: \"over {{count}} years\",\n },\n\n almostXYears: {\n one: \"almost 1 year\",\n other: \"almost {{count}} years\",\n },\n};\n\nexport const formatDistance = (token, count, options) => {\n let result;\n\n const tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === \"string\") {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace(\"{{count}}\", count.toString());\n }\n\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return \"in \" + result;\n } else {\n return result + \" ago\";\n }\n }\n\n return result;\n};\n","export function buildFormatLongFn(args) {\n return (options = {}) => {\n // TODO: Remove String()\n const width = options.width ? String(options.width) : args.defaultWidth;\n const format = args.formats[width] || args.formats[args.defaultWidth];\n return format;\n };\n}\n","import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.js\";\n\nconst dateFormats = {\n full: \"EEEE, MMMM do, y\",\n long: \"MMMM do, y\",\n medium: \"MMM d, y\",\n short: \"MM/dd/yyyy\",\n};\n\nconst timeFormats = {\n full: \"h:mm:ss a zzzz\",\n long: \"h:mm:ss a z\",\n medium: \"h:mm:ss a\",\n short: \"h:mm a\",\n};\n\nconst dateTimeFormats = {\n full: \"{{date}} 'at' {{time}}\",\n long: \"{{date}} 'at' {{time}}\",\n medium: \"{{date}}, {{time}}\",\n short: \"{{date}}, {{time}}\",\n};\n\nexport const formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: \"full\",\n }),\n\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: \"full\",\n }),\n\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: \"full\",\n }),\n};\n","const formatRelativeLocale = {\n lastWeek: \"'last' eeee 'at' p\",\n yesterday: \"'yesterday at' p\",\n today: \"'today at' p\",\n tomorrow: \"'tomorrow at' p\",\n nextWeek: \"eeee 'at' p\",\n other: \"P\",\n};\n\nexport const formatRelative = (token, _date, _baseDate, _options) =>\n formatRelativeLocale[token];\n","/**\n * The localize function argument callback which allows to convert raw value to\n * the actual type.\n *\n * @param value - The value to convert\n *\n * @returns The converted value\n */\n\n/**\n * The map of localized values for each width.\n */\n\n/**\n * The index type of the locale unit value. It types conversion of units of\n * values that don't start at 0 (i.e. quarters).\n */\n\n/**\n * Converts the unit value to the tuple of values.\n */\n\n/**\n * The tuple of localized era values. The first element represents BC,\n * the second element represents AD.\n */\n\n/**\n * The tuple of localized quarter values. The first element represents Q1.\n */\n\n/**\n * The tuple of localized day values. The first element represents Sunday.\n */\n\n/**\n * The tuple of localized month values. The first element represents January.\n */\n\nexport function buildLocalizeFn(args) {\n return (value, options) => {\n const context = options?.context ? String(options.context) : \"standalone\";\n\n let valuesArray;\n if (context === \"formatting\" && args.formattingValues) {\n const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n const width = options?.width ? String(options.width) : defaultWidth;\n\n valuesArray =\n args.formattingValues[width] || args.formattingValues[defaultWidth];\n } else {\n const defaultWidth = args.defaultWidth;\n const width = options?.width ? String(options.width) : args.defaultWidth;\n\n valuesArray = args.values[width] || args.values[defaultWidth];\n }\n const index = args.argumentCallback ? args.argumentCallback(value) : value;\n\n // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!\n return valuesArray[index];\n };\n}\n","export function buildMatchFn(args) {\n return (string, options = {}) => {\n const width = options.width;\n\n const matchPattern =\n (width && args.matchPatterns[width]) ||\n args.matchPatterns[args.defaultMatchWidth];\n const matchResult = string.match(matchPattern);\n\n if (!matchResult) {\n return null;\n }\n const matchedString = matchResult[0];\n\n const parsePatterns =\n (width && args.parsePatterns[width]) ||\n args.parsePatterns[args.defaultParseWidth];\n\n const key = Array.isArray(parsePatterns)\n ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))\n : // [TODO] -- I challenge you to fix the type\n findKey(parsePatterns, (pattern) => pattern.test(matchedString));\n\n let value;\n\n value = args.valueCallback ? args.valueCallback(key) : key;\n value = options.valueCallback\n ? // [TODO] -- I challenge you to fix the type\n options.valueCallback(value)\n : value;\n\n const rest = string.slice(matchedString.length);\n\n return { value, rest };\n };\n}\n\nfunction findKey(object, predicate) {\n for (const key in object) {\n if (\n Object.prototype.hasOwnProperty.call(object, key) &&\n predicate(object[key])\n ) {\n return key;\n }\n }\n return undefined;\n}\n\nfunction findIndex(array, predicate) {\n for (let key = 0; key < array.length; key++) {\n if (predicate(array[key])) {\n return key;\n }\n }\n return undefined;\n}\n","export function buildMatchPatternFn(args) {\n return (string, options = {}) => {\n const matchResult = string.match(args.matchPattern);\n if (!matchResult) return null;\n const matchedString = matchResult[0];\n\n const parseResult = string.match(args.parsePattern);\n if (!parseResult) return null;\n let value = args.valueCallback\n ? args.valueCallback(parseResult[0])\n : parseResult[0];\n\n // [TODO] I challenge you to fix the type\n value = options.valueCallback ? options.valueCallback(value) : value;\n\n const rest = string.slice(matchedString.length);\n\n return { value, rest };\n };\n}\n","import { formatDistance } from \"./en-US/_lib/formatDistance.js\";\nimport { formatLong } from \"./en-US/_lib/formatLong.js\";\nimport { formatRelative } from \"./en-US/_lib/formatRelative.js\";\nimport { localize } from \"./en-US/_lib/localize.js\";\nimport { match } from \"./en-US/_lib/match.js\";\n\n/**\n * @category Locales\n * @summary English locale (United States).\n * @language English\n * @iso-639-2 eng\n * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)\n * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)\n */\nexport const enUS = {\n code: \"en-US\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 0 /* Sunday */,\n firstWeekContainsDate: 1,\n },\n};\n\n// Fallback for modularized imports:\nexport default enUS;\n","import { buildLocalizeFn } from \"../../_lib/buildLocalizeFn.js\";\n\nconst eraValues = {\n narrow: [\"B\", \"A\"],\n abbreviated: [\"BC\", \"AD\"],\n wide: [\"Before Christ\", \"Anno Domini\"],\n};\n\nconst quarterValues = {\n narrow: [\"1\", \"2\", \"3\", \"4\"],\n abbreviated: [\"Q1\", \"Q2\", \"Q3\", \"Q4\"],\n wide: [\"1st quarter\", \"2nd quarter\", \"3rd quarter\", \"4th quarter\"],\n};\n\n// Note: in English, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nconst monthValues = {\n narrow: [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"],\n abbreviated: [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n ],\n\n wide: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n};\n\nconst dayValues = {\n narrow: [\"S\", \"M\", \"T\", \"W\", \"T\", \"F\", \"S\"],\n short: [\"Su\", \"Mo\", \"Tu\", \"We\", \"Th\", \"Fr\", \"Sa\"],\n abbreviated: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n wide: [\n \"Sunday\",\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n ],\n};\n\nconst dayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mi\",\n noon: \"n\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n};\n\nconst formattingDayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mi\",\n noon: \"n\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n};\n\nconst ordinalNumber = (dirtyNumber, _options) => {\n const number = Number(dirtyNumber);\n\n // If ordinal numbers depend on context, for example,\n // if they are different for different grammatical genders,\n // use `options.unit`.\n //\n // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',\n // 'day', 'hour', 'minute', 'second'.\n\n const rem100 = number % 100;\n if (rem100 > 20 || rem100 < 10) {\n switch (rem100 % 10) {\n case 1:\n return number + \"st\";\n case 2:\n return number + \"nd\";\n case 3:\n return number + \"rd\";\n }\n }\n return number + \"th\";\n};\n\nexport const localize = {\n ordinalNumber,\n\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: \"wide\",\n }),\n\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: \"wide\",\n argumentCallback: (quarter) => quarter - 1,\n }),\n\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: \"wide\",\n }),\n\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: \"wide\",\n }),\n\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: \"wide\",\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: \"wide\",\n }),\n};\n","import { buildMatchFn } from \"../../_lib/buildMatchFn.js\";\nimport { buildMatchPatternFn } from \"../../_lib/buildMatchPatternFn.js\";\n\nconst matchOrdinalNumberPattern = /^(\\d+)(th|st|nd|rd)?/i;\nconst parseOrdinalNumberPattern = /\\d+/i;\n\nconst matchEraPatterns = {\n narrow: /^(b|a)/i,\n abbreviated: /^(b\\.?\\s?c\\.?|b\\.?\\s?c\\.?\\s?e\\.?|a\\.?\\s?d\\.?|c\\.?\\s?e\\.?)/i,\n wide: /^(before christ|before common era|anno domini|common era)/i,\n};\nconst parseEraPatterns = {\n any: [/^b/i, /^(a|c)/i],\n};\n\nconst matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^q[1234]/i,\n wide: /^[1234](th|st|nd|rd)? quarter/i,\n};\nconst parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i],\n};\n\nconst matchMonthPatterns = {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\n wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,\n};\nconst parseMonthPatterns = {\n narrow: [\n /^j/i,\n /^f/i,\n /^m/i,\n /^a/i,\n /^m/i,\n /^j/i,\n /^j/i,\n /^a/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n\n any: [\n /^ja/i,\n /^f/i,\n /^mar/i,\n /^ap/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^au/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n};\n\nconst matchDayPatterns = {\n narrow: /^[smtwf]/i,\n short: /^(su|mo|tu|we|th|fr|sa)/i,\n abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,\n};\nconst parseDayPatterns = {\n narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],\n any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],\n};\n\nconst matchDayPeriodPatterns = {\n narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,\n any: /^([ap]\\.?\\s?m\\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,\n};\nconst parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mi/i,\n noon: /^no/i,\n morning: /morning/i,\n afternoon: /afternoon/i,\n evening: /evening/i,\n night: /night/i,\n },\n};\n\nexport const match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: (value) => parseInt(value, 10),\n }),\n\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseEraPatterns,\n defaultParseWidth: \"any\",\n }),\n\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: \"any\",\n valueCallback: (index) => index + 1,\n }),\n\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: \"any\",\n }),\n\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseDayPatterns,\n defaultParseWidth: \"any\",\n }),\n\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: \"any\",\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: \"any\",\n }),\n};\n","import { differenceInCalendarDays } from \"./differenceInCalendarDays.js\";\nimport { startOfYear } from \"./startOfYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDayOfYear} function options.\n */\n\n/**\n * @name getDayOfYear\n * @category Day Helpers\n * @summary Get the day of the year of the given date.\n *\n * @description\n * Get the day of the year of the given date.\n *\n * @param date - The given date\n * @param options - The options\n *\n * @returns The day of year\n *\n * @example\n * // Which day of the year is 2 July 2014?\n * const result = getDayOfYear(new Date(2014, 6, 2))\n * //=> 183\n */\nexport function getDayOfYear(date, options) {\n const _date = toDate(date, options?.in);\n const diff = differenceInCalendarDays(_date, startOfYear(_date));\n const dayOfYear = diff + 1;\n return dayOfYear;\n}\n\n// Fallback for modularized imports:\nexport default getDayOfYear;\n","import { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.js\";\nimport { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { millisecondsInDay } from \"./constants.js\";\nimport { startOfDay } from \"./startOfDay.js\";\n\n/**\n * The {@link differenceInCalendarDays} function options.\n */\n\n/**\n * @name differenceInCalendarDays\n * @category Day Helpers\n * @summary Get the number of calendar days between the given dates.\n *\n * @description\n * Get the number of calendar days between the given dates. This means that the times are removed\n * from the dates and then the difference in days is calculated.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - The options object\n *\n * @returns The number of calendar days\n *\n * @example\n * // How many calendar days are between\n * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?\n * const result = differenceInCalendarDays(\n * new Date(2012, 6, 2, 0, 0),\n * new Date(2011, 6, 2, 23, 0)\n * )\n * //=> 366\n * // How many calendar days are between\n * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?\n * const result = differenceInCalendarDays(\n * new Date(2011, 6, 3, 0, 1),\n * new Date(2011, 6, 2, 23, 59)\n * )\n * //=> 1\n */\nexport function differenceInCalendarDays(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n\n const laterStartOfDay = startOfDay(laterDate_);\n const earlierStartOfDay = startOfDay(earlierDate_);\n\n const laterTimestamp =\n +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay);\n const earlierTimestamp =\n +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay);\n\n // Round the number of days to the nearest integer because the number of\n // milliseconds in a day is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarDays;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfYear} function options.\n */\n\n/**\n * @name startOfYear\n * @category Year Helpers\n * @summary Return the start of a year for the given date.\n *\n * @description\n * Return the start of a year for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - The options\n *\n * @returns The start of a year\n *\n * @example\n * // The start of a year for 2 September 2014 11:55:00:\n * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))\n * //=> Wed Jan 01 2014 00:00:00\n */\nexport function startOfYear(date, options) {\n const date_ = toDate(date, options?.in);\n date_.setFullYear(date_.getFullYear(), 0, 1);\n date_.setHours(0, 0, 0, 0);\n return date_;\n}\n\n// Fallback for modularized imports:\nexport default startOfYear;\n","import { millisecondsInWeek } from \"./constants.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\nimport { startOfISOWeekYear } from \"./startOfISOWeekYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISOWeek} function options.\n */\n\n/**\n * @name getISOWeek\n * @category ISO Week Helpers\n * @summary Get the ISO week of the given date.\n *\n * @description\n * Get the ISO week of the given date.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n * @param options - The options\n *\n * @returns The ISO week\n *\n * @example\n * // Which week of the ISO-week numbering year is 2 January 2005?\n * const result = getISOWeek(new Date(2005, 0, 2))\n * //=> 53\n */\nexport function getISOWeek(date, options) {\n const _date = toDate(date, options?.in);\n const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);\n\n // Round the number of weeks to the nearest integer because the number of\n // milliseconds in a week is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getISOWeek;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { getISOWeekYear } from \"./getISOWeekYear.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\n\n/**\n * The {@link startOfISOWeekYear} function options.\n */\n\n/**\n * @name startOfISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Return the start of an ISO week-numbering year for the given date.\n *\n * @description\n * Return the start of an ISO week-numbering year,\n * which always starts 3 days before the year's first Thursday.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of an ISO week-numbering year\n *\n * @example\n * // The start of an ISO week-numbering year for 2 July 2005:\n * const result = startOfISOWeekYear(new Date(2005, 6, 2))\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfISOWeekYear(date, options) {\n const year = getISOWeekYear(date, options);\n const fourthOfJanuary = constructFrom(options?.in || date, 0);\n fourthOfJanuary.setFullYear(year, 0, 4);\n fourthOfJanuary.setHours(0, 0, 0, 0);\n return startOfISOWeek(fourthOfJanuary);\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeekYear;\n","import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeekYear} function options.\n */\n\n/**\n * @name getWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Get the local week-numbering year of the given date.\n *\n * @description\n * Get the local week-numbering year of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options.\n *\n * @returns The local week-numbering year\n *\n * @example\n * // Which week numbering year is 26 December 2004 with the default settings?\n * const result = getWeekYear(new Date(2004, 11, 26))\n * //=> 2005\n *\n * @example\n * // Which week numbering year is 26 December 2004 if week starts on Saturday?\n * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })\n * //=> 2004\n *\n * @example\n * // Which week numbering year is 26 December 2004 if the first week contains 4 January?\n * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })\n * //=> 2004\n */\nexport function getWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const firstWeekOfNextYear = constructFrom(options?.in || date, 0);\n firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);\n firstWeekOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);\n\n const firstWeekOfThisYear = constructFrom(options?.in || date, 0);\n firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);\n firstWeekOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);\n\n if (+_date >= +startOfNextYear) {\n return year + 1;\n } else if (+_date >= +startOfThisYear) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getWeekYear;\n","import { millisecondsInWeek } from \"./constants.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { startOfWeekYear } from \"./startOfWeekYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeek} function options.\n */\n\n/**\n * @name getWeek\n * @category Week Helpers\n * @summary Get the local week index of the given date.\n *\n * @description\n * Get the local week index of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The week\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005 with default options?\n * const result = getWeek(new Date(2005, 0, 2))\n * //=> 2\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005,\n * // if Monday is the first day of the week,\n * // and the first week of the year always contains 4 January?\n * const result = getWeek(new Date(2005, 0, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> 53\n */\nexport function getWeek(date, options) {\n const _date = toDate(date, options?.in);\n const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);\n\n // Round the number of weeks to the nearest integer because the number of\n // milliseconds in a week is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getWeek;\n","import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { getWeekYear } from \"./getWeekYear.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\n\n/**\n * The {@link startOfWeekYear} function options.\n */\n\n/**\n * @name startOfWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Return the start of a local week-numbering year for the given date.\n *\n * @description\n * Return the start of a local week-numbering year.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week-numbering year\n *\n * @example\n * // The start of an a week-numbering year for 2 July 2005 with default settings:\n * const result = startOfWeekYear(new Date(2005, 6, 2))\n * //=> Sun Dec 26 2004 00:00:00\n *\n * @example\n * // The start of a week-numbering year for 2 July 2005\n * // if Monday is the first day of week\n * // and 4 January is always in the first week of the year:\n * const result = startOfWeekYear(new Date(2005, 6, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfWeekYear(date, options) {\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const year = getWeekYear(date, options);\n const firstWeek = constructFrom(options?.in || date, 0);\n firstWeek.setFullYear(year, 0, firstWeekContainsDate);\n firstWeek.setHours(0, 0, 0, 0);\n const _date = startOfWeek(firstWeek, options);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeekYear;\n","export function addLeadingZeros(number, targetLength) {\n const sign = number < 0 ? \"-\" : \"\";\n const output = Math.abs(number).toString().padStart(targetLength, \"0\");\n return sign + output;\n}\n","import { addLeadingZeros } from \"../addLeadingZeros.js\";\n\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | |\n * | d | Day of month | D | |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | m | Minute | M | Month |\n * | s | Second | S | Fraction of second |\n * | y | Year (abs) | Y | |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n */\n\nexport const lightFormatters = {\n // Year\n y(date, token) {\n // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens\n // | Year | y | yy | yyy | yyyy | yyyyy |\n // |----------|-------|----|-------|-------|-------|\n // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |\n // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |\n // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |\n // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |\n // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\n\n const signedYear = date.getFullYear();\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const year = signedYear > 0 ? signedYear : 1 - signedYear;\n return addLeadingZeros(token === \"yy\" ? year % 100 : year, token.length);\n },\n\n // Month\n M(date, token) {\n const month = date.getMonth();\n return token === \"M\" ? String(month + 1) : addLeadingZeros(month + 1, 2);\n },\n\n // Day of the month\n d(date, token) {\n return addLeadingZeros(date.getDate(), token.length);\n },\n\n // AM or PM\n a(date, token) {\n const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? \"pm\" : \"am\";\n\n switch (token) {\n case \"a\":\n case \"aa\":\n return dayPeriodEnumValue.toUpperCase();\n case \"aaa\":\n return dayPeriodEnumValue;\n case \"aaaaa\":\n return dayPeriodEnumValue[0];\n case \"aaaa\":\n default:\n return dayPeriodEnumValue === \"am\" ? \"a.m.\" : \"p.m.\";\n }\n },\n\n // Hour [1-12]\n h(date, token) {\n return addLeadingZeros(date.getHours() % 12 || 12, token.length);\n },\n\n // Hour [0-23]\n H(date, token) {\n return addLeadingZeros(date.getHours(), token.length);\n },\n\n // Minute\n m(date, token) {\n return addLeadingZeros(date.getMinutes(), token.length);\n },\n\n // Second\n s(date, token) {\n return addLeadingZeros(date.getSeconds(), token.length);\n },\n\n // Fraction of second\n S(date, token) {\n const numberOfDigits = token.length;\n const milliseconds = date.getMilliseconds();\n const fractionalSeconds = Math.trunc(\n milliseconds * Math.pow(10, numberOfDigits - 3),\n );\n return addLeadingZeros(fractionalSeconds, token.length);\n },\n};\n","import { getDayOfYear } from \"../../getDayOfYear.js\";\nimport { getISOWeek } from \"../../getISOWeek.js\";\nimport { getISOWeekYear } from \"../../getISOWeekYear.js\";\nimport { getWeek } from \"../../getWeek.js\";\nimport { getWeekYear } from \"../../getWeekYear.js\";\n\nimport { addLeadingZeros } from \"../addLeadingZeros.js\";\nimport { lightFormatters } from \"./lightFormatters.js\";\n\nconst dayPeriodEnum = {\n am: \"am\",\n pm: \"pm\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n};\n\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | Milliseconds in day |\n * | b | AM, PM, noon, midnight | B | Flexible day period |\n * | c | Stand-alone local day of week | C* | Localized hour w/ day period |\n * | d | Day of month | D | Day of year |\n * | e | Local day of week | E | Day of week |\n * | f | | F* | Day of week in month |\n * | g* | Modified Julian day | G | Era |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | i! | ISO day of week | I! | ISO week of year |\n * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |\n * | k | Hour [1-24] | K | Hour [0-11] |\n * | l* | (deprecated) | L | Stand-alone month |\n * | m | Minute | M | Month |\n * | n | | N | |\n * | o! | Ordinal number modifier | O | Timezone (GMT) |\n * | p! | Long localized time | P! | Long localized date |\n * | q | Stand-alone quarter | Q | Quarter |\n * | r* | Related Gregorian year | R! | ISO week-numbering year |\n * | s | Second | S | Fraction of second |\n * | t! | Seconds timestamp | T! | Milliseconds timestamp |\n * | u | Extended year | U* | Cyclic year |\n * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |\n * | w | Local week of year | W* | Week of month |\n * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |\n * | y | Year (abs) | Y | Local week-numbering year |\n * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n *\n * Letters marked by ! are non-standard, but implemented by date-fns:\n * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)\n * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\n * i.e. 7 for Sunday, 1 for Monday, etc.\n * - `I` is ISO week of year, as opposed to `w` which is local week of year.\n * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\n * `R` is supposed to be used in conjunction with `I` and `i`\n * for universal ISO week-numbering date, whereas\n * `Y` is supposed to be used in conjunction with `w` and `e`\n * for week-numbering date specific to the locale.\n * - `P` is long localized date format\n * - `p` is long localized time format\n */\n\nexport const formatters = {\n // Era\n G: function (date, token, localize) {\n const era = date.getFullYear() > 0 ? 1 : 0;\n switch (token) {\n // AD, BC\n case \"G\":\n case \"GG\":\n case \"GGG\":\n return localize.era(era, { width: \"abbreviated\" });\n // A, B\n case \"GGGGG\":\n return localize.era(era, { width: \"narrow\" });\n // Anno Domini, Before Christ\n case \"GGGG\":\n default:\n return localize.era(era, { width: \"wide\" });\n }\n },\n\n // Year\n y: function (date, token, localize) {\n // Ordinal number\n if (token === \"yo\") {\n const signedYear = date.getFullYear();\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const year = signedYear > 0 ? signedYear : 1 - signedYear;\n return localize.ordinalNumber(year, { unit: \"year\" });\n }\n\n return lightFormatters.y(date, token);\n },\n\n // Local week-numbering year\n Y: function (date, token, localize, options) {\n const signedWeekYear = getWeekYear(date, options);\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;\n\n // Two digit year\n if (token === \"YY\") {\n const twoDigitYear = weekYear % 100;\n return addLeadingZeros(twoDigitYear, 2);\n }\n\n // Ordinal number\n if (token === \"Yo\") {\n return localize.ordinalNumber(weekYear, { unit: \"year\" });\n }\n\n // Padding\n return addLeadingZeros(weekYear, token.length);\n },\n\n // ISO week-numbering year\n R: function (date, token) {\n const isoWeekYear = getISOWeekYear(date);\n\n // Padding\n return addLeadingZeros(isoWeekYear, token.length);\n },\n\n // Extended year. This is a single number designating the year of this calendar system.\n // The main difference between `y` and `u` localizers are B.C. years:\n // | Year | `y` | `u` |\n // |------|-----|-----|\n // | AC 1 | 1 | 1 |\n // | BC 1 | 1 | 0 |\n // | BC 2 | 2 | -1 |\n // Also `yy` always returns the last two digits of a year,\n // while `uu` pads single digit years to 2 characters and returns other years unchanged.\n u: function (date, token) {\n const year = date.getFullYear();\n return addLeadingZeros(year, token.length);\n },\n\n // Quarter\n Q: function (date, token, localize) {\n const quarter = Math.ceil((date.getMonth() + 1) / 3);\n switch (token) {\n // 1, 2, 3, 4\n case \"Q\":\n return String(quarter);\n // 01, 02, 03, 04\n case \"QQ\":\n return addLeadingZeros(quarter, 2);\n // 1st, 2nd, 3rd, 4th\n case \"Qo\":\n return localize.ordinalNumber(quarter, { unit: \"quarter\" });\n // Q1, Q2, Q3, Q4\n case \"QQQ\":\n return localize.quarter(quarter, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case \"QQQQQ\":\n return localize.quarter(quarter, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // 1st quarter, 2nd quarter, ...\n case \"QQQQ\":\n default:\n return localize.quarter(quarter, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Stand-alone quarter\n q: function (date, token, localize) {\n const quarter = Math.ceil((date.getMonth() + 1) / 3);\n switch (token) {\n // 1, 2, 3, 4\n case \"q\":\n return String(quarter);\n // 01, 02, 03, 04\n case \"qq\":\n return addLeadingZeros(quarter, 2);\n // 1st, 2nd, 3rd, 4th\n case \"qo\":\n return localize.ordinalNumber(quarter, { unit: \"quarter\" });\n // Q1, Q2, Q3, Q4\n case \"qqq\":\n return localize.quarter(quarter, {\n width: \"abbreviated\",\n context: \"standalone\",\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case \"qqqqq\":\n return localize.quarter(quarter, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // 1st quarter, 2nd quarter, ...\n case \"qqqq\":\n default:\n return localize.quarter(quarter, {\n width: \"wide\",\n context: \"standalone\",\n });\n }\n },\n\n // Month\n M: function (date, token, localize) {\n const month = date.getMonth();\n switch (token) {\n case \"M\":\n case \"MM\":\n return lightFormatters.M(date, token);\n // 1st, 2nd, ..., 12th\n case \"Mo\":\n return localize.ordinalNumber(month + 1, { unit: \"month\" });\n // Jan, Feb, ..., Dec\n case \"MMM\":\n return localize.month(month, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // J, F, ..., D\n case \"MMMMM\":\n return localize.month(month, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // January, February, ..., December\n case \"MMMM\":\n default:\n return localize.month(month, { width: \"wide\", context: \"formatting\" });\n }\n },\n\n // Stand-alone month\n L: function (date, token, localize) {\n const month = date.getMonth();\n switch (token) {\n // 1, 2, ..., 12\n case \"L\":\n return String(month + 1);\n // 01, 02, ..., 12\n case \"LL\":\n return addLeadingZeros(month + 1, 2);\n // 1st, 2nd, ..., 12th\n case \"Lo\":\n return localize.ordinalNumber(month + 1, { unit: \"month\" });\n // Jan, Feb, ..., Dec\n case \"LLL\":\n return localize.month(month, {\n width: \"abbreviated\",\n context: \"standalone\",\n });\n // J, F, ..., D\n case \"LLLLL\":\n return localize.month(month, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // January, February, ..., December\n case \"LLLL\":\n default:\n return localize.month(month, { width: \"wide\", context: \"standalone\" });\n }\n },\n\n // Local week of year\n w: function (date, token, localize, options) {\n const week = getWeek(date, options);\n\n if (token === \"wo\") {\n return localize.ordinalNumber(week, { unit: \"week\" });\n }\n\n return addLeadingZeros(week, token.length);\n },\n\n // ISO week of year\n I: function (date, token, localize) {\n const isoWeek = getISOWeek(date);\n\n if (token === \"Io\") {\n return localize.ordinalNumber(isoWeek, { unit: \"week\" });\n }\n\n return addLeadingZeros(isoWeek, token.length);\n },\n\n // Day of the month\n d: function (date, token, localize) {\n if (token === \"do\") {\n return localize.ordinalNumber(date.getDate(), { unit: \"date\" });\n }\n\n return lightFormatters.d(date, token);\n },\n\n // Day of year\n D: function (date, token, localize) {\n const dayOfYear = getDayOfYear(date);\n\n if (token === \"Do\") {\n return localize.ordinalNumber(dayOfYear, { unit: \"dayOfYear\" });\n }\n\n return addLeadingZeros(dayOfYear, token.length);\n },\n\n // Day of week\n E: function (date, token, localize) {\n const dayOfWeek = date.getDay();\n switch (token) {\n // Tue\n case \"E\":\n case \"EE\":\n case \"EEE\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // T\n case \"EEEEE\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"EEEEEE\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"formatting\",\n });\n // Tuesday\n case \"EEEE\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Local day of week\n e: function (date, token, localize, options) {\n const dayOfWeek = date.getDay();\n const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n switch (token) {\n // Numerical value (Nth day of week with current locale or weekStartsOn)\n case \"e\":\n return String(localDayOfWeek);\n // Padded numerical value\n case \"ee\":\n return addLeadingZeros(localDayOfWeek, 2);\n // 1st, 2nd, ..., 7th\n case \"eo\":\n return localize.ordinalNumber(localDayOfWeek, { unit: \"day\" });\n case \"eee\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // T\n case \"eeeee\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"eeeeee\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"formatting\",\n });\n // Tuesday\n case \"eeee\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Stand-alone local day of week\n c: function (date, token, localize, options) {\n const dayOfWeek = date.getDay();\n const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n switch (token) {\n // Numerical value (same as in `e`)\n case \"c\":\n return String(localDayOfWeek);\n // Padded numerical value\n case \"cc\":\n return addLeadingZeros(localDayOfWeek, token.length);\n // 1st, 2nd, ..., 7th\n case \"co\":\n return localize.ordinalNumber(localDayOfWeek, { unit: \"day\" });\n case \"ccc\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"standalone\",\n });\n // T\n case \"ccccc\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // Tu\n case \"cccccc\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"standalone\",\n });\n // Tuesday\n case \"cccc\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"standalone\",\n });\n }\n },\n\n // ISO day of week\n i: function (date, token, localize) {\n const dayOfWeek = date.getDay();\n const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;\n switch (token) {\n // 2\n case \"i\":\n return String(isoDayOfWeek);\n // 02\n case \"ii\":\n return addLeadingZeros(isoDayOfWeek, token.length);\n // 2nd\n case \"io\":\n return localize.ordinalNumber(isoDayOfWeek, { unit: \"day\" });\n // Tue\n case \"iii\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // T\n case \"iiiii\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"iiiiii\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"formatting\",\n });\n // Tuesday\n case \"iiii\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // AM or PM\n a: function (date, token, localize) {\n const hours = date.getHours();\n const dayPeriodEnumValue = hours / 12 >= 1 ? \"pm\" : \"am\";\n\n switch (token) {\n case \"a\":\n case \"aa\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n case \"aaa\":\n return localize\n .dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n })\n .toLowerCase();\n case \"aaaaa\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"aaaa\":\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // AM, PM, midnight, noon\n b: function (date, token, localize) {\n const hours = date.getHours();\n let dayPeriodEnumValue;\n if (hours === 12) {\n dayPeriodEnumValue = dayPeriodEnum.noon;\n } else if (hours === 0) {\n dayPeriodEnumValue = dayPeriodEnum.midnight;\n } else {\n dayPeriodEnumValue = hours / 12 >= 1 ? \"pm\" : \"am\";\n }\n\n switch (token) {\n case \"b\":\n case \"bb\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n case \"bbb\":\n return localize\n .dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n })\n .toLowerCase();\n case \"bbbbb\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"bbbb\":\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // in the morning, in the afternoon, in the evening, at night\n B: function (date, token, localize) {\n const hours = date.getHours();\n let dayPeriodEnumValue;\n if (hours >= 17) {\n dayPeriodEnumValue = dayPeriodEnum.evening;\n } else if (hours >= 12) {\n dayPeriodEnumValue = dayPeriodEnum.afternoon;\n } else if (hours >= 4) {\n dayPeriodEnumValue = dayPeriodEnum.morning;\n } else {\n dayPeriodEnumValue = dayPeriodEnum.night;\n }\n\n switch (token) {\n case \"B\":\n case \"BB\":\n case \"BBB\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n case \"BBBBB\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"BBBB\":\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Hour [1-12]\n h: function (date, token, localize) {\n if (token === \"ho\") {\n let hours = date.getHours() % 12;\n if (hours === 0) hours = 12;\n return localize.ordinalNumber(hours, { unit: \"hour\" });\n }\n\n return lightFormatters.h(date, token);\n },\n\n // Hour [0-23]\n H: function (date, token, localize) {\n if (token === \"Ho\") {\n return localize.ordinalNumber(date.getHours(), { unit: \"hour\" });\n }\n\n return lightFormatters.H(date, token);\n },\n\n // Hour [0-11]\n K: function (date, token, localize) {\n const hours = date.getHours() % 12;\n\n if (token === \"Ko\") {\n return localize.ordinalNumber(hours, { unit: \"hour\" });\n }\n\n return addLeadingZeros(hours, token.length);\n },\n\n // Hour [1-24]\n k: function (date, token, localize) {\n let hours = date.getHours();\n if (hours === 0) hours = 24;\n\n if (token === \"ko\") {\n return localize.ordinalNumber(hours, { unit: \"hour\" });\n }\n\n return addLeadingZeros(hours, token.length);\n },\n\n // Minute\n m: function (date, token, localize) {\n if (token === \"mo\") {\n return localize.ordinalNumber(date.getMinutes(), { unit: \"minute\" });\n }\n\n return lightFormatters.m(date, token);\n },\n\n // Second\n s: function (date, token, localize) {\n if (token === \"so\") {\n return localize.ordinalNumber(date.getSeconds(), { unit: \"second\" });\n }\n\n return lightFormatters.s(date, token);\n },\n\n // Fraction of second\n S: function (date, token) {\n return lightFormatters.S(date, token);\n },\n\n // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)\n X: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n if (timezoneOffset === 0) {\n return \"Z\";\n }\n\n switch (token) {\n // Hours and optional minutes\n case \"X\":\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n // Hours, minutes and optional seconds without `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XX`\n case \"XXXX\":\n case \"XX\": // Hours and minutes without `:` delimiter\n return formatTimezone(timezoneOffset);\n\n // Hours, minutes and optional seconds with `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XXX`\n case \"XXXXX\":\n case \"XXX\": // Hours and minutes with `:` delimiter\n default:\n return formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)\n x: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n switch (token) {\n // Hours and optional minutes\n case \"x\":\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n // Hours, minutes and optional seconds without `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xx`\n case \"xxxx\":\n case \"xx\": // Hours and minutes without `:` delimiter\n return formatTimezone(timezoneOffset);\n\n // Hours, minutes and optional seconds with `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xxx`\n case \"xxxxx\":\n case \"xxx\": // Hours and minutes with `:` delimiter\n default:\n return formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Timezone (GMT)\n O: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n switch (token) {\n // Short\n case \"O\":\n case \"OO\":\n case \"OOO\":\n return \"GMT\" + formatTimezoneShort(timezoneOffset, \":\");\n // Long\n case \"OOOO\":\n default:\n return \"GMT\" + formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Timezone (specific non-location)\n z: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n switch (token) {\n // Short\n case \"z\":\n case \"zz\":\n case \"zzz\":\n return \"GMT\" + formatTimezoneShort(timezoneOffset, \":\");\n // Long\n case \"zzzz\":\n default:\n return \"GMT\" + formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Seconds timestamp\n t: function (date, token, _localize) {\n const timestamp = Math.trunc(+date / 1000);\n return addLeadingZeros(timestamp, token.length);\n },\n\n // Milliseconds timestamp\n T: function (date, token, _localize) {\n return addLeadingZeros(+date, token.length);\n },\n};\n\nfunction formatTimezoneShort(offset, delimiter = \"\") {\n const sign = offset > 0 ? \"-\" : \"+\";\n const absOffset = Math.abs(offset);\n const hours = Math.trunc(absOffset / 60);\n const minutes = absOffset % 60;\n if (minutes === 0) {\n return sign + String(hours);\n }\n return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);\n}\n\nfunction formatTimezoneWithOptionalMinutes(offset, delimiter) {\n if (offset % 60 === 0) {\n const sign = offset > 0 ? \"-\" : \"+\";\n return sign + addLeadingZeros(Math.abs(offset) / 60, 2);\n }\n return formatTimezone(offset, delimiter);\n}\n\nfunction formatTimezone(offset, delimiter = \"\") {\n const sign = offset > 0 ? \"-\" : \"+\";\n const absOffset = Math.abs(offset);\n const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2);\n const minutes = addLeadingZeros(absOffset % 60, 2);\n return sign + hours + delimiter + minutes;\n}\n","const dateLongFormatter = (pattern, formatLong) => {\n switch (pattern) {\n case \"P\":\n return formatLong.date({ width: \"short\" });\n case \"PP\":\n return formatLong.date({ width: \"medium\" });\n case \"PPP\":\n return formatLong.date({ width: \"long\" });\n case \"PPPP\":\n default:\n return formatLong.date({ width: \"full\" });\n }\n};\n\nconst timeLongFormatter = (pattern, formatLong) => {\n switch (pattern) {\n case \"p\":\n return formatLong.time({ width: \"short\" });\n case \"pp\":\n return formatLong.time({ width: \"medium\" });\n case \"ppp\":\n return formatLong.time({ width: \"long\" });\n case \"pppp\":\n default:\n return formatLong.time({ width: \"full\" });\n }\n};\n\nconst dateTimeLongFormatter = (pattern, formatLong) => {\n const matchResult = pattern.match(/(P+)(p+)?/) || [];\n const datePattern = matchResult[1];\n const timePattern = matchResult[2];\n\n if (!timePattern) {\n return dateLongFormatter(pattern, formatLong);\n }\n\n let dateTimeFormat;\n\n switch (datePattern) {\n case \"P\":\n dateTimeFormat = formatLong.dateTime({ width: \"short\" });\n break;\n case \"PP\":\n dateTimeFormat = formatLong.dateTime({ width: \"medium\" });\n break;\n case \"PPP\":\n dateTimeFormat = formatLong.dateTime({ width: \"long\" });\n break;\n case \"PPPP\":\n default:\n dateTimeFormat = formatLong.dateTime({ width: \"full\" });\n break;\n }\n\n return dateTimeFormat\n .replace(\"{{date}}\", dateLongFormatter(datePattern, formatLong))\n .replace(\"{{time}}\", timeLongFormatter(timePattern, formatLong));\n};\n\nexport const longFormatters = {\n p: timeLongFormatter,\n P: dateTimeLongFormatter,\n};\n","const dayOfYearTokenRE = /^D+$/;\nconst weekYearTokenRE = /^Y+$/;\n\nconst throwTokens = [\"D\", \"DD\", \"YY\", \"YYYY\"];\n\nexport function isProtectedDayOfYearToken(token) {\n return dayOfYearTokenRE.test(token);\n}\n\nexport function isProtectedWeekYearToken(token) {\n return weekYearTokenRE.test(token);\n}\n\nexport function warnOrThrowProtectedError(token, format, input) {\n const _message = message(token, format, input);\n console.warn(_message);\n if (throwTokens.includes(token)) throw new RangeError(_message);\n}\n\nfunction message(token, format, input) {\n const subject = token[0] === \"Y\" ? \"years\" : \"days of the month\";\n return `Use \\`${token.toLowerCase()}\\` instead of \\`${token}\\` (in \\`${format}\\`) for formatting ${subject} to the input \\`${input}\\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;\n}\n","import { defaultLocale } from \"./_lib/defaultLocale.js\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { formatters } from \"./_lib/format/formatters.js\";\nimport { longFormatters } from \"./_lib/format/longFormatters.js\";\nimport {\n isProtectedDayOfYearToken,\n isProtectedWeekYearToken,\n warnOrThrowProtectedError,\n} from \"./_lib/protectedTokens.js\";\nimport { isValid } from \"./isValid.js\";\nimport { toDate } from \"./toDate.js\";\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\nexport { formatters, longFormatters };\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\nexport { format as formatDate };\n\n/**\n * The {@link format} function options.\n */\n\n/**\n * @name format\n * @alias formatDate\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 9 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 9 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Sun | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | a..aa | AM, PM | |\n * | | aaa | am, pm | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |\n * | | bbb | am, pm, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |\n * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 04/29/1453 | 7 |\n * | | PP | Apr 29, 1453 | 7 |\n * | | PPP | April 29th, 1453 | 7 |\n * | | PPPP | Friday, April 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |\n * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | April 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)\n * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n * so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @param date - The original date\n * @param format - The string of tokens\n * @param options - An object with options\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `localize` property\n * @throws `options.locale` must contain `formatLong` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\nexport function format(date, formatStr, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const originalDate = toDate(date, options?.in);\n\n if (!isValid(originalDate)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n let parts = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter === \"p\" || firstCharacter === \"P\") {\n const longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp)\n .map((substring) => {\n // Replace two single quote characters with one single quote character\n if (substring === \"''\") {\n return { isToken: false, value: \"'\" };\n }\n\n const firstCharacter = substring[0];\n if (firstCharacter === \"'\") {\n return { isToken: false, value: cleanEscapedString(substring) };\n }\n\n if (formatters[firstCharacter]) {\n return { isToken: true, value: substring };\n }\n\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n return { isToken: false, value: substring };\n });\n\n // invoke localize preprocessor (only for french locales at the moment)\n if (locale.localize.preprocessor) {\n parts = locale.localize.preprocessor(originalDate, parts);\n }\n\n const formatterOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n return parts\n .map((part) => {\n if (!part.isToken) return part.value;\n\n const token = part.value;\n\n if (\n (!options?.useAdditionalWeekYearTokens &&\n isProtectedWeekYearToken(token)) ||\n (!options?.useAdditionalDayOfYearTokens &&\n isProtectedDayOfYearToken(token))\n ) {\n warnOrThrowProtectedError(token, formatStr, String(date));\n }\n\n const formatter = formatters[token[0]];\n return formatter(originalDate, token, locale.localize, formatterOptions);\n })\n .join(\"\");\n}\n\nfunction cleanEscapedString(input) {\n const matched = input.match(escapedStringRegExp);\n\n if (!matched) {\n return input;\n }\n\n return matched[1].replace(doubleQuoteRegExp, \"'\");\n}\n\n// Fallback for modularized imports:\nexport default format;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDate} function options.\n */\n\n/**\n * @name getDate\n * @category Day Helpers\n * @summary Get the day of the month of the given date.\n *\n * @description\n * Get the day of the month of the given date.\n *\n * @param date - The given date\n * @param options - An object with options.\n *\n * @returns The day of month\n *\n * @example\n * // Which day of the month is 29 February 2012?\n * const result = getDate(new Date(2012, 1, 29))\n * //=> 29\n */\nexport function getDate(date, options) {\n return toDate(date, options?.in).getDate();\n}\n\n// Fallback for modularized imports:\nexport default getDate;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDaysInMonth} function options.\n */\n\n/**\n * @name getDaysInMonth\n * @category Month Helpers\n * @summary Get the number of days in a month of the given date.\n *\n * @description\n * Get the number of days in a month of the given date, considering the context if provided.\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The number of days in a month\n *\n * @example\n * // How many days are in February 2000?\n * const result = getDaysInMonth(new Date(2000, 1))\n * //=> 29\n */\nexport function getDaysInMonth(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n const monthIndex = _date.getMonth();\n const lastDayOfMonth = constructFrom(_date, 0);\n lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);\n lastDayOfMonth.setHours(0, 0, 0, 0);\n return lastDayOfMonth.getDate();\n}\n\n// Fallback for modularized imports:\nexport default getDaysInMonth;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * @name isAfter\n * @category Common Helpers\n * @summary Is the first date after the second one?\n *\n * @description\n * Is the first date after the second one?\n *\n * @param date - The date that should be after the other one to return true\n * @param dateToCompare - The date to compare with\n *\n * @returns The first date is after the second date\n *\n * @example\n * // Is 10 July 1989 after 11 February 1987?\n * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> true\n */\nexport function isAfter(date, dateToCompare) {\n return +toDate(date) > +toDate(dateToCompare);\n}\n\n// Fallback for modularized imports:\nexport default isAfter;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * @name isBefore\n * @category Common Helpers\n * @summary Is the first date before the second one?\n *\n * @description\n * Is the first date before the second one?\n *\n * @param date - The date that should be before the other one to return true\n * @param dateToCompare - The date to compare with\n *\n * @returns The first date is before the second date\n *\n * @example\n * // Is 10 July 1989 before 11 February 1987?\n * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> false\n */\nexport function isBefore(date, dateToCompare) {\n return +toDate(date) < +toDate(dateToCompare);\n}\n\n// Fallback for modularized imports:\nexport default isBefore;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link isSameMonth} function options.\n */\n\n/**\n * @name isSameMonth\n * @category Month Helpers\n * @summary Are the given dates in the same month (and year)?\n *\n * @description\n * Are the given dates in the same month (and year)?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same month (and year)\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n *\n * @example\n * // Are 2 September 2014 and 25 September 2015 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))\n * //=> false\n */\nexport function isSameMonth(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return (\n laterDate_.getFullYear() === earlierDate_.getFullYear() &&\n laterDate_.getMonth() === earlierDate_.getMonth()\n );\n}\n\n// Fallback for modularized imports:\nexport default isSameMonth;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link isSameYear} function options.\n */\n\n/**\n * @name isSameYear\n * @category Year Helpers\n * @summary Are the given dates in the same year?\n *\n * @description\n * Are the given dates in the same year?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same year\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same year?\n * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n */\nexport function isSameYear(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return laterDate_.getFullYear() === earlierDate_.getFullYear();\n}\n\n// Fallback for modularized imports:\nexport default isSameYear;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { constructNow } from \"./constructNow.js\";\nimport { isSameDay } from \"./isSameDay.js\";\n\n/**\n * The {@link isToday} function options.\n */\n\n/**\n * @name isToday\n * @category Day Helpers\n * @summary Is the given date today?\n * @pure false\n *\n * @description\n * Is the given date today?\n *\n * @param date - The date to check\n * @param options - An object with options\n *\n * @returns The date is today\n *\n * @example\n * // If today is 6 October 2014, is 6 October 14:00:00 today?\n * const result = isToday(new Date(2014, 9, 6, 14, 0))\n * //=> true\n */\nexport function isToday(date, options) {\n return isSameDay(\n constructFrom(options?.in || date, date),\n constructNow(options?.in || date),\n );\n}\n\n// Fallback for modularized imports:\nexport default isToday;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { startOfDay } from \"./startOfDay.js\";\n\n/**\n * The {@link isSameDay} function options.\n */\n\n/**\n * @name isSameDay\n * @category Day Helpers\n * @summary Are the given dates in the same day (and year and month)?\n *\n * @description\n * Are the given dates in the same day (and year and month)?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same day (and year and month)\n *\n * @example\n * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))\n * //=> true\n *\n * @example\n * // Are 4 September and 4 October in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))\n * //=> false\n *\n * @example\n * // Are 4 September, 2014 and 4 September, 2015 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))\n * //=> false\n */\nexport function isSameDay(laterDate, earlierDate, options) {\n const [dateLeft_, dateRight_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return +startOfDay(dateLeft_) === +startOfDay(dateRight_);\n}\n\n// Fallback for modularized imports:\nexport default isSameDay;\n","import { constructFrom } from \"./constructFrom.js\";\n\n/**\n * @name constructNow\n * @category Generic Helpers\n * @summary Constructs a new current date using the passed value constructor.\n * @pure false\n *\n * @description\n * The function constructs a new current date using the constructor from\n * the reference date. It helps to build generic functions that accept date\n * extensions and use the current date.\n *\n * It defaults to `Date` if the passed reference date is a number or a string.\n *\n * @param date - The reference date to take constructor from\n *\n * @returns Current date initialized using the given date constructor\n *\n * @example\n * import { constructNow, isSameDay } from 'date-fns'\n *\n * function isToday<DateType extends Date>(\n * date: DateArg<DateType>,\n * ): boolean {\n * // If we were to use `new Date()` directly, the function would behave\n * // differently in different timezones and return false for the same date.\n * return isSameDay(date, constructNow(date));\n * }\n */\nexport function constructNow(date) {\n return constructFrom(date, Date.now());\n}\n\n// Fallback for modularized imports:\nexport default constructNow;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setDate} function options.\n */\n\n/**\n * @name setDate\n * @category Day Helpers\n * @summary Set the day of the month to the given date.\n *\n * @description\n * Set the day of the month to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param dayOfMonth - The day of the month of the new date\n * @param options - The options\n *\n * @returns The new date with the day of the month set\n *\n * @example\n * // Set the 30th day of the month to 1 September 2014:\n * const result = setDate(new Date(2014, 8, 1), 30)\n * //=> Tue Sep 30 2014 00:00:00\n */\nexport function setDate(date, dayOfMonth, options) {\n const _date = toDate(date, options?.in);\n _date.setDate(dayOfMonth);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setDate;\n","import { LitElement, html, css, nothing, PropertyValues } from \"lit\";\nimport { customElement, property, query, state } from \"lit/decorators.js\";\nimport { bodyL, bodyM, bodyS } from '../styles/fontStyles';\nimport { scrollbarStyles } from \"../styles/scrollbar\";\nimport { focusStyles } from \"../styles/focus\";\n\nimport * as dateFns from \"date-fns\";\n\n@customElement(\"calendar-overlay\")\nexport class CalendarOverlay extends LitElement {\n /**\n * La fecha actualmente seleccionada por el usuario.\n * Se utiliza para marcar visualmente el día seleccionado en el calendario.\n */\n @property({ type: Object }) selectedDate: Date | null = null;\n\n /**\n * La fecha que define el mes y año que se muestra actualmente en la vista del calendario.\n * Cambia al navegar entre meses o años.\n */\n @property({ type: Object }) viewDate: Date = new Date();\n\n @property({ type: Boolean }) isMobile = false;\n\n @property({ type: Number }) calendarWidth: number = 0;\n\n @property({ type: Object }) minDate: Date | null = null;\n @property({ type: Object }) maxDate: Date | null = null;\n @property({ type: String }) type: 'date' | 'month' = 'date';\n\n /**\n * Indica si este es el último elemento focusable del formulario/modal.\n * Se utiliza para aplicar espaciado adicional cuando el calendario está abierto.\n */\n @property({ type: Boolean }) lastElement = false;\n\n /**\n * El estado de la vista actual del calendario, que puede ser 'días', 'meses' o 'años'.\n * Determina qué cuadrícula se renderiza en el overlay.\n */\n @state() private currentView: 'days' | 'months' | 'years' = 'days';\n\n @query('.day.selected, .day.today:not(.selected)') private initialFocusElement!: HTMLButtonElement; \n\n static styles = [ \n scrollbarStyles,\n css`\n ${ focusStyles }\n\n /* Estilos generales del contenedor del calendario (escritorio) */\n .calendar-container {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 10;\n border: 1px solid var( --secondary-color-10, #e7e8ec );\n background: var( --white, #fff );\n border-radius: 4px;\n margin-top: 8px;\n padding: 16px;\n box-shadow: 0px 4px 8px rgba( 0, 0, 0, 0.1 );\n font-family: Graphik;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n min-width: 360px;\n }\n \n /* El header no tiene margin-bottom */\n .header {\n margin-bottom: 0;\n }\n \n /* El separador no tiene margin-top para no dejar espacio con el header */\n .weekdays-separator {\n width: 100%;\n height: 1px;\n background-color: var( --secondary-color-10, #e7e8ec );\n margin-top: 0;\n margin-bottom: 16px; \n }\n\n /* Estilos del encabezado de navegación (botones y título) */\n .header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n /* Estilos generales para los botones de navegación */\n .nav-button {\n background: none;\n border: none;\n cursor: pointer;\n padding: 8px;\n color: var( --primary-color, #2175d9 );\n border-radius: 50%;\n transition: background-color 0.2s;\n gap: 8px;\n }\n\n .nav-button:hover {\n background-color: var( --randstad-blue-10, #e8f1fb );\n }\n\n .header-left,\n .header-right {\n display: flex;\n align-items: center;\n gap: 4px;\n }\n\n .month-year-button {\n ${bodyS}\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n background: none;\n border: none;\n cursor: pointer;\n transition: background-color 0.2s;\n color: var( --randstad-blue-80, #3c4257 );\n border-radius: 16px;\n width: auto;\n height: 41px;\n padding: 8px;\n }\n\n .month-year-button:hover {\n background-color: var( --randstad-blue-10, #e8f1fb );\n }\n\n .month-year-button randstad-icon {\n color: var( --primary-color, #2175d9 );\n }\n\n /* Contenedor de los nombres de los días de la semana */\n .weekdays {\n display: grid;\n place-items: center; \n grid-template-columns: repeat(7, 1fr);\n text-align: center;\n color: var( --secondary-dark-blue-60, #6c7387 );\n opacity: 1;\n margin-bottom: 8px; /* Gap de 8px entre nombres y días */\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n margin-top: 0;\n }\n\n /* Cuadrícula para los días del mes */\n .days-grid {\n display: grid;\n place-items: center;\n grid-template-columns: repeat(7, 1fr);\n gap: 8px;\n }\n\n /* Estilos para cada botón de día */\n .day {\n ${bodyM}\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n cursor: pointer;\n background-color: transparent;\n border: none;\n color: var( --secondary-color-80, #3c4257 );\n padding: 0;\n position: relative;\n }\n\n .day:hover {\n background-color: var( --randstad-blue-10, #e8f1fb );\n }\n\n /* Estilos para el día, mes y año de hoy */\n .day.today {\n color: var( --primary-color, #2175d9 );\n font-weight: 500;\n }\n\n .day.today::after {\n content: '';\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n width: 100%;\n height: 2px;\n background-color: var( --primary-color, #2175d9 );\n border-radius: 2px;\n }\n\n /* Estilos para el día seleccionado */\n .day.selected {\n background-color: var( --primary-color, #2175d9 );\n color: var(--secondary-white, #fff);\n font-weight: 500;\n }\n\n /* Estilos para el día seleccionado cuando se muestra en un mes o año diferente */\n .day.secondary-selected {\n background-color: var( --secondary-color-10, #e7e8ec );\n color: var( --secondary-dark-blue-80, #3c4257 );\n font-weight: 500;\n border: 1px solid var( --secondary-color-10, #e7e8ec );\n }\n\n /* Grillas para selección de año y mes */\n .year-grid,\n .month-grid {\n display: grid;\n grid-template-columns: repeat( 3, 1fr );\n gap: 8px;\n }\n\n /* Botones de año y mes en la grilla */\n .year-button,\n .month-button {\n ${bodyM}\n background: var(--secondary-white, #fff);\n border: 1px solid transparent;\n color: var( --secondary-dark-blue-80, #3c4257 );\n cursor: pointer;\n transition: background-color 0.2s, border-color 0.2s;\n border-radius: 9999px;\n padding: 4px 16px;\n text-align: center;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 38px;\n }\n\n .year-button:hover,\n .month-button:hover {\n background-color: var( --randstad-blue-10, #e8f1fb );\n }\n\n /* Estilos para el año o mes seleccionado */\n .year-button.selected,\n .month-button.selected {\n background-color: var( --primary-color, #2175d9 );\n color: var(--secondary-white, #fff);\n border: 1px solid var( --primary-color, #2175d9 );\n }\n\n /* Estilos para el mes seleccionado en otro año (estilo secundario) */\n .month-button.secondary-selected {\n background-color: var( --secondary-color-10, #e7e8ec );\n color: var( --secondary-dark-blue-80, #3c4257 );\n font-weight: 500;\n border: 1px solid var( --secondary-color-10, #e7e8ec );\n }\n\n /* Estilos para el año y mes current */\n .year-button.current,\n .month-button.current {\n position: relative;\n }\n\n .year-button.current::after,\n .month-button.current::after {\n content: '';\n position: absolute;\n bottom: 0;\n width: 100%;\n height: 2px;\n border-radius: 2px;\n background-color: var( --primary-color, #2175d9 );\n }\n\n /* Estilos para el botón de navegación deshabilitado */\n .nav-button[disabled] {\n color: var( --secondary-dark-blue-30, #b1b5c4 );\n pointer-events: none;\n }\n\n .nav-button[disabled]:hover {\n background-color: transparent;\n }\n\n /* Estilos para el botón de día deshabilitado */\n .day[disabled] {\n color: var( --secondary-dark-blue-30, #b1b5c4 );\n pointer-events: none;\n background-color: transparent;\n }\n \n .day[disabled]:hover {\n background-color: transparent;\n }\n\n /* Estilos para los botones de año y mes deshabilitados */\n .year-button[disabled],\n .month-button[disabled] {\n color: var( --secondary-dark-blue-30, #b1b5c4 );\n pointer-events: none;\n background-color: transparent;\n }\n \n .year-button[disabled]:hover,\n .month-button[disabled]:hover {\n background-color: transparent;\n }\n\n /* --- Estilos para móvil --- */\n .mobile-backdrop {\n position: fixed;\n inset: 0;\n background-color: rgba( 0, 0, 0, 0.4 );\n z-index: 999;\n font-family: Graphik;\n }\n\n .mobile-modal {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: white;\n z-index: 1000;\n border-radius: 12px 12px 0 0;\n box-shadow: 0 -4px 10px rgba( 0, 0, 0, 0.15 );\n display: flex;\n flex-direction: column;\n padding: 24px 16px;\n animation: slideUp 0.5s ease-out;\n max-height: 80dvh;\n overflow-y: auto;\n font-family: Graphik;\n }\n\n @keyframes slideUp {\n from {\n transform: translateY( 100% );\n }\n to {\n transform: translateY( 0 );\n }\n }\n \n .mobile-modal .header {\n margin-bottom: 0;\n position: sticky;\n top: 0;\n background: white;\n z-index: 10;\n }\n \n .mobile-modal .weekdays-separator {\n margin: 0;\n }\n\n .mobile-modal .weekdays {\n place-items: center;\n margin-top: 16px;\n margin-bottom: 8px;\n }\n \n .mobile-modal .days-grid {\n gap: 8px;\n grid-template-columns: repeat( 7, 1fr );\n place-items: center;\n }\n \n .mobile-modal .month-grid,\n .mobile-modal .year-grid {\n gap: 16px;\n margin-top: 16px;\n }\n\n .mobile-modal .day {\n ${ bodyL }\n font-weight: 500;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px; \n height: 40px;\n border-radius: 50%;\n cursor: pointer;\n background-color: transparent;\n border: none;\n color: var( --secondary-dark-blue-80, #3c4257 );\n position: relative;\n }\n\n .mobile-modal .day.selected {\n background-color: var( --primary-color, #2175d9 );\n color: var( --white, #fff );\n font-weight: 500;\n border-radius: 50%;\n }\n\n .mobile-modal .day.today {\n color: var( --primary-color, #2175d9 );\n font-weight: 500;\n }\n\n .mobile-modal .day.today::after {\n content: '';\n position: absolute;\n bottom: 0;\n width: 40px; \n left: 50%;\n transform: translateX( -50% ); \n height: 2px;\n background-color: var( --primary-color, #2175d9 );\n border-radius: 2px;\n }\n\n .mobile-modal .year-grid,\n .mobile-modal .month-grid {\n grid-template-columns: repeat( 3, 1fr );\n gap: 8px;\n }\n\n .mobile-modal .year-button,\n .mobile-modal .month-button {\n width: 100%;\n height: 48px;\n border-radius: 9999px;\n flex: 1 1 33.3333%;\n padding: 0;\n }\n\n .mobile-modal .day.secondary-selected,\n .mobile-modal .month-button.secondary-selected {\n background-color: var( --secondary-color-10, #e7e8ec );\n color: var( --secondary-dark-blue-80, #3c4257 );\n font-weight: 500;\n border: 1px solid var( --secondary-color-10, #e7e8ec ) ;\n }\n\n /* Estilos para elementos deshabilitados dentro del modal de móviles. */\n .mobile-modal .day[disabled],\n .mobile-modal .month-button[disabled],\n .mobile-modal .year-button[disabled] {\n color: var( --secondary-dark-blue-30, #b1b5c4 );\n pointer-events: none;\n background-color: transparent;\n }\n\n .mobile-modal .nav-button[disabled] {\n color: var( --secondary-dark-blue-30, #b1b5c4 );\n pointer-events: none;\n background-color: transparent;\n }\n\n /* Evitamos que el estilo 'today' o 'current' se aplique si el elemento está deshabilitado */\n .mobile-modal .day.today[disabled]::after,\n .mobile-modal .nav-button[disabled] randstad-icon {\n color: var( --secondary-dark-blue-30, #b1b5c4 );\n }\n /* */\n\n /* Focus Buttons */\n .day:focus-visible {\n border-radius: 50%; \n }\n \n .month-year-button:focus-visible {\n border-radius: 16px;\n }\n \n .year-button:focus-visible,\n .month-button:focus-visible {\n border-radius: 9999px; \n }\n /* */ \n `\n ];\n\n /**\n * Ciclo de vida: se llama después de la primera actualización del componente.\n \n * Agrega un 'keydown' listener al shadowRoot para capturar todas las pulsaciones\n * de teclado dentro del calendario (días, meses, navegación) y centralizar la\n * lógica de accesibilidad (ARIA) en 'handleCalendarKeydown'.\n */\n private _boundHandleCalendarKeydown: (e: KeyboardEvent) => void;\n private _boundHandleFocusout: (event: FocusEvent) => void;\n\n constructor() {\n super();\n this._boundHandleCalendarKeydown = this.handleCalendarKeydown.bind(this);\n this._boundHandleFocusout = (event: FocusEvent) => {\n const relatedTarget = event.relatedTarget as HTMLElement;\n if (relatedTarget && !this.contains(relatedTarget)) {\n this.dispatchEvent(new CustomEvent('close', { bubbles: true, composed: true }));\n }\n };\n }\n\n public firstUpdated() {\n this.shadowRoot?.addEventListener(\n 'keydown',\n this._boundHandleCalendarKeydown as EventListener\n );\n this.addEventListener('focusout', this._boundHandleFocusout);\n }\n\n public connectedCallback() {\n super.connectedCallback();\n\n document.addEventListener( 'click', this.handleOutsideClick );\n this.addEventListener( 'focus-input', this.handleFocusInput as EventListener );\n }\n\n public disconnectedCallback() {\n super.disconnectedCallback();\n document.removeEventListener( 'click', this.handleOutsideClick );\n this.shadowRoot?.removeEventListener('keydown', this._boundHandleCalendarKeydown as EventListener);\n this.removeEventListener('focusout', this._boundHandleFocusout);\n }\n\n private handleFocusInput() {\n const input: HTMLInputElement | null = this.shadowRoot?.querySelector( '.date-input' ) as HTMLInputElement;\n input?.focus();\n }\n\n /**\n * Cierra el overlay del calendario si el clic se produce fuera de sus límites.\n * Se utiliza un `event listener` en el documento para detectar clics en cualquier lugar de la página.\n \n * @param event - Objeto de evento del clic.\n */\n private handleOutsideClick = ( event: MouseEvent ) => {\n const root = this.getRootNode() as ShadowRoot | null;\n const inputElement = root?.host;\n\n if ( inputElement && !event.composedPath().includes( this ) && !event.composedPath().includes(inputElement))\n this.dispatchEvent( new CustomEvent( 'close', { bubbles: true, composed: true } ) );\n };\n\n /**\n * Alterna la vista del calendario entre 'days' y 'years' al hacer clic en el encabezado.\n * Si la vista actual es 'days', cambia a 'years'; si no, vuelve a 'days'.\n */\n private handleHeaderClick() {\n if (this.type === 'month') {\n this.currentView = this.currentView === 'months' ? 'years' : 'months';\n } else {\n if (this.currentView === 'days') this.currentView = 'years';\n else this.currentView = 'days';\n }\n }\n\n /**\n * Método auxiliar para actualizar la vista y disparar el evento\n */\n private _updateView(\n newDate: Date,\n newView: 'days' | 'months' | 'years' | null = null\n ) {\n this.viewDate = newDate;\n if ( newView ) this.currentView = newView;\n\n this.dispatchEvent( new CustomEvent( 'view-date-change', { detail: { date: this.viewDate } } ) );\n }\n\n /**\n * Maneja la navegación entre periodos en el calendario según la vista actual.\n * Si la vista es de días, navega por meses; si es de meses, navega por años;\n * si es de años, navega por bloques de 21 años.\n * Actualiza la vista con la nueva fecha calculada.\n \n * @param direction -1 para retroceder, 1 para avanzar.\n */\n private handleNavClick( direction: number ) {\n let newDate: Date = this.viewDate;\n\n if ( this.currentView === 'days' ) newDate = dateFns.addMonths( this.viewDate, direction );\n else if ( this.currentView === 'months' ) newDate = dateFns.addYears( this.viewDate, direction );\n else newDate = dateFns.addYears( this.viewDate, direction * 21 );\n\n this._updateView( newDate );\n }\n\n /**\n * Maneja la selección de un año en la vista de años.\n * Al seleccionar un año, actualiza la fecha de vista y cambia a la vista de meses.\n \n * @param year - El año seleccionado (número de 4 dígitos).\n */\n private handleYearSelect( year: number ) {\n const newDate = dateFns.setYear( this.viewDate, year );\n this._updateView(newDate, 'months');\n\n // La promesa 'updateComplete' asegura que el foco se mueva solo después de que \n // la vista de meses se haya renderizado en el DOM, evitando la pérdida de foco.\n this.updateComplete.then( () => {\n const monthYearButton: HTMLInputElement | null = this.shadowRoot?.querySelector( '.month-year-button' ) as HTMLInputElement;\n monthYearButton?.focus();\n });\n }\n\n /**\n * Maneja la selección de un mes en la vista de meses.\n * Al seleccionar un mes, actualiza la fecha de vista y cambia a la vista de días.\n\n * @param monthIndex - El índice del mes seleccionado (0-11, donde 0 es Enero).\n */\n private handleMonthSelect ( monthIndex: number ) {\n const newDate: Date = dateFns.setMonth( this.viewDate, monthIndex );\n if (this.type === 'month') {\n this.selectedDate = newDate;\n this.dispatchEvent(\n new CustomEvent('date-selected', {\n detail: { date: newDate },\n bubbles: true,\n composed: true\n })\n );\n } else {\n this._updateView( newDate, 'days' );\n\n this.updateComplete.then( () => {\n // Si hay un día seleccionado, enfócalo. Si no, enfoca el botón de mes/año.\n const focusTarget: HTMLElement | null = this.initialFocusElement || this.shadowRoot?.querySelector( '.month-year-button' );\n focusTarget?.focus();\n });\n }\n }\n\n /**\n * Maneja el clic en un día del calendario.\n * Emite un evento `date-selected` al componente padre con la fecha y su valor formateado.\n\n * @param day - El objeto Date del día seleccionado.\n */\n private handleDayClick( day: Date ) {\n this.selectedDate = day; // Actualizar la fecha seleccionada\n\n this.dispatchEvent(\n new CustomEvent( 'date-selected', {\n detail: { date: day },\n bubbles: true,\n composed: true\n })\n );\n }\n\n private getFullMonthNames(): string[] {\n return [\n 'Enero',\n 'Febrero',\n 'Marzo',\n 'Abril',\n 'Mayo',\n 'Junio',\n 'Julio',\n 'Agosto',\n 'Septiembre',\n 'Octubre',\n 'Noviembre',\n 'Diciembre'\n ];\n }\n\n private getShortMonthNames(): string[] {\n return this.getFullMonthNames().map( ( month ) => month.substring( 0, 3 ) );\n }\n\n private getShortWeekdays(): string[] {\n return [ 'lu', 'ma', 'mi', 'ju', 'vi', 'sa', 'do' ];\n }\n\n /**\n * Enfoca el elemento inicial del calendario (típicamente el botón de Mes/Año).\n \n * Se llama desde el DatePickerComponent cuando el calendario se abre\n * mediante teclado (tecla ArrowDown o Enter). El 'updateComplete' asegura\n * que el foco se aplica después de que el overlay esté completamente renderizado.\n */\n public focusCalendar() {\n this.updateComplete.then( () => {\n const elementToFocus: HTMLButtonElement | null = this.shadowRoot?.querySelector( '.month-year-button' ) as HTMLButtonElement;\n \n if ( elementToFocus ) elementToFocus.focus();\n else this.initialFocusElement?.focus();\n });\n }\n\n public focusFirstElement() {\n this.updateComplete.then( () => {\n if ( this.currentView !== 'days' ) {\n this.currentView = 'days';\n }\n \n this.updateComplete.then( () => {\n const firstButton: HTMLButtonElement | null = this.shadowRoot?.querySelector( 'button:not([disabled])' ) as HTMLButtonElement;\n firstButton?.focus();\n });\n });\n }\n\n public focusYearsView() {\n this.updateComplete.then( () => {\n this.currentView = 'years';\n \n const firstYearButton: HTMLButtonElement | null = this.shadowRoot?.querySelector( '.year-button:not([disabled])' ) as HTMLButtonElement;\n \n if ( firstYearButton ) firstYearButton.focus();\n });\n }\n\n /**\n * Enfoca la vista de meses.\n */\n public focusMonthsView() {\n this.updateComplete.then( () => {\n if ( this.currentView !== 'months' ) {\n this.currentView = 'months';\n }\n \n const firstMonthButton: HTMLButtonElement | null = this.shadowRoot?.querySelector( '.month-button:not([disabled])' ) as HTMLButtonElement;\n \n if ( firstMonthButton ) firstMonthButton.focus();\n });\n }\n\n /**\n * Enfoca la vista de días.\n */\n public focusDaysView() {\n this.updateComplete.then( () => {\n if ( this.currentView !== 'days' ) {\n this.currentView = 'days';\n }\n \n const firstDayButton: HTMLButtonElement | null = this.shadowRoot?.querySelector( '.day:not([disabled])' ) as HTMLButtonElement;\n \n if ( firstDayButton ) firstDayButton.focus();\n });\n }\n\n /**\n * Encuentra el botón de día en el calendario que está `offset` días\n * de la fecha del día enfocado actualmente.\n */\n private _findAndFocusDayButton( offset: number ) {\n const activeElement: HTMLButtonElement | null = this.shadowRoot?.activeElement as HTMLButtonElement;\n\n // Solo navegamos si el elemento enfocado es un botón de día\n if ( !activeElement || !activeElement.classList.contains( 'day' ) ) return;\n\n // Encuentra todos los botones de día navegables (que no estén deshabilitados)\n const dayButtons: HTMLButtonElement[] = Array.from( this.shadowRoot!.querySelectorAll( '.day:not([disabled])' ) );\n const currentIndex: number = dayButtons.findIndex( btn => btn === activeElement );\n\n if ( currentIndex === -1 ) return; // El día enfocado está deshabilitado o no se encuentra\n let newIndex: number = currentIndex + offset;\n\n // Asegura que el nuevo índice esté dentro de los límites\n if ( newIndex < 0 ) newIndex = 0;\n if ( newIndex >= dayButtons.length ) newIndex = dayButtons.length - 1;\n\n const newFocusElement: HTMLButtonElement | undefined = dayButtons[ newIndex ] as HTMLButtonElement;\n if ( newFocusElement ) newFocusElement.focus();\n }\n\n /**\n * Enfoca el primer o último día de la semana actual.\n */\n private _focusDayOfWeekEdge( direction: 'start' | 'end' ) {\n const activeElement = this.shadowRoot?.activeElement as HTMLButtonElement;\n\n if ( !activeElement || !activeElement.classList.contains( 'day' ) ) return;\n\n const dayButtons: HTMLButtonElement[] = Array.from( this.shadowRoot!.querySelectorAll( '.day:not([disabled])' ) ) as HTMLButtonElement[];\n const currentIndex: number = dayButtons.findIndex( btn => btn === activeElement );\n\n if ( currentIndex === -1 ) return;\n\n // Calcula la posición dentro de la cuadrícula (0 para Lunes, 6 para Domingo)\n // El índice 0 de dayButtons corresponde al primer día del mes, que puede ser cualquier día de la semana.\n \n // Necesitamos el índice de este día dentro del DOM de todos los días renderizados (incluyendo los 'leadingDays' nulos)\n const allDays: HTMLElement[] = Array.from( this.shadowRoot!.querySelectorAll('.days-grid > *') ); // Incluye divs vacíos y botones\n const dayDOMIndex: number = allDays.findIndex( el => el === activeElement );\n\n if ( dayDOMIndex === -1 ) return;\n\n // Calcula el índice del día de la semana (0 a 6, donde 0 es Lunes)\n const dayOfWeek: number = dayDOMIndex % 7;\n\n let newFocusElement: HTMLButtonElement | null = null;\n\n if ( direction === 'start' ) {\n const startOfWeekDOMIndex: number = dayDOMIndex - dayOfWeek;\n newFocusElement = this.shadowRoot?.querySelector(`.days-grid > :nth-child(${startOfWeekDOMIndex + 1}) .day:not([disabled]), .days-grid > :nth-child(${startOfWeekDOMIndex + 1}).day:not([disabled])`) as HTMLButtonElement;\n \n // Si el primer día de la semana es un div vacío o deshabilitado, busca el siguiente habilitado.\n let checkIndex: number = startOfWeekDOMIndex;\n\n while ( !newFocusElement && checkIndex <= dayDOMIndex ) {\n checkIndex++;\n newFocusElement = this.shadowRoot?.querySelector( `.days-grid > :nth-child(${ checkIndex + 1 }) .day:not([disabled]), .days-grid > :nth-child(${ checkIndex + 1 }).day:not([disabled])` ) as HTMLButtonElement;\n }\n\n } else {\n const endOfWeekDOMIndex: number = dayDOMIndex + ( 6 - dayOfWeek );\n newFocusElement = this.shadowRoot?.querySelector( `.days-grid > :nth-child(${ endOfWeekDOMIndex + 1 }) .day:not([disabled]), .days-grid > :nth-child(${ endOfWeekDOMIndex + 1 }).day:not([disabled])` ) as HTMLButtonElement;\n \n // Si el último día de la semana es un div vacío o deshabilitado, busca el anterior habilitado.\n let checkIndex: number = endOfWeekDOMIndex;\n\n while ( !newFocusElement && checkIndex >= dayDOMIndex ) {\n checkIndex--;\n newFocusElement = this.shadowRoot?.querySelector( `.days-grid > :nth-child(${checkIndex + 1}) .day:not([disabled]), .days-grid > :nth-child(${checkIndex + 1}).day:not([disabled])`) as HTMLButtonElement;\n }\n }\n\n newFocusElement?.focus();\n }\n\n /**\n * Centraliza el manejo de todos los eventos de teclado (keydown) dentro del CalendarOverlay.\n \n * Implementa la navegación completa del teclado (flechas, Enter/Space, Escape) para\n * todas las vistas y elementos enfocables (botones de encabezado, días, meses, años),\n * asegurando la conformidad con ARIA.\n \n * La lógica se divide en secciones basadas en el elemento que tiene el foco activo:\n * 1. Escape (Cerrar).\n * 2. Encabezado (Botones de Mes/Año y Navegación Anterior/Siguiente).\n * 3. Cuadrícula de Días.\n * 4. Cuadrículas de Meses/Años.\n \n * @param event - El objeto KeyboardEvent.\n */\n private handleCalendarKeydown( event: KeyboardEvent ) {\n const { key } = event;\n const activeElement: HTMLElement = this.shadowRoot?.activeElement as HTMLElement;\n\n if ( key === 'Escape' ) {\n event.preventDefault();\n this.dispatchEvent( new CustomEvent( \"close\" ) );\n\n return;\n }\n\n if ( key === 'Tab' ) {\n const focusableElements = Array.from( \n this.shadowRoot!.querySelectorAll( 'button:not([disabled])' ) \n ) as HTMLElement[];\n\n const isFocusInside = focusableElements.includes(activeElement);\n \n if (!isFocusInside) {\n return; \n }\n\n if ( focusableElements.length > 0 ) {\n const firstElement = focusableElements[0];\n const lastElement = focusableElements[ focusableElements.length - 1 ];\n\n if ( event.shiftKey && activeElement === firstElement ) {\n event.preventDefault();\n this.dispatchEvent( new CustomEvent( \"close\", { bubbles: true, composed: true } ) );\n this.dispatchEvent( new CustomEvent( \"focus-input\", { bubbles: true, composed: true } ) );\n return;\n }\n\n if ( !event.shiftKey && activeElement === lastElement ) {\n this.dispatchEvent( new CustomEvent( \"close\", { bubbles: true, composed: true } ) );\n }\n }\n return; \n }\n \n if ( activeElement && ( activeElement.classList.contains('month-year-button') || activeElement.classList.contains( 'nav-button' ) ) ) {\n event.preventDefault();\n\n const monthYearButton: HTMLElement = this.shadowRoot?.querySelector( '.month-year-button' ) as HTMLButtonElement;\n const prevButton: HTMLElement = this.shadowRoot?.querySelector( '.header-right button:first-child' ) as HTMLButtonElement;\n const nextButton: HTMLElement = this.shadowRoot?.querySelector( '.header-right button:last-child' ) as HTMLButtonElement;\n\n if ( key === 'Enter' || key === ' ' ) {\n if ( activeElement === monthYearButton ) this.handleHeaderClick(); \n else if ( activeElement === prevButton ) this.handleNavClick( -1 ); \n else if ( activeElement === nextButton ) this.handleNavClick( 1 ); \n \n this.updateComplete.then( () => activeElement.focus() ); \n\n return;\n }\n\n switch ( key ) {\n case 'ArrowUp':\n event.preventDefault();\n this.dispatchEvent( new CustomEvent(\"focus-input\", { bubbles: true, composed: true }));\n return;\n\n case 'ArrowRight':\n if ( activeElement === monthYearButton ) nextButton?.focus();\n else if ( activeElement === prevButton ) nextButton?.focus();\n break;\n\n case 'ArrowLeft':\n if ( activeElement === nextButton ) prevButton?.focus();\n else if ( activeElement === prevButton ) monthYearButton?.focus();\n break;\n\n case 'ArrowDown':\n // Mover al primer elemento navegable de la vista actual\n if ( this.currentView === 'days' ) {\n // Si estamos en la vista de días, busca el día seleccionado/hoy/primer día.\n const initialDayFocus = this.initialFocusElement || this.shadowRoot?.querySelector('.day:not([disabled])') as HTMLButtonElement;\n initialDayFocus?.focus();\n } else if ( this.currentView === 'months' || this.currentView === 'years' ) {\n // Si estamos en meses/años, mueve al primer mes/año en la cuadrícula.\n const firstGridItem = this.shadowRoot?.querySelector(`.${this.currentView === 'months' ? 'month' : 'year'}-grid button:not([disabled])`) as HTMLButtonElement;\n firstGridItem?.focus();\n }\n \n break;\n }\n\n return;\n }\n \n if ( activeElement && activeElement.classList.contains( 'day' ) && this.currentView === 'days' ) {\n event.preventDefault(); \n\n const dayButtons: HTMLButtonElement[] = Array.from( this.shadowRoot!.querySelectorAll( '.day:not([disabled])' ) ) as HTMLButtonElement[];\n const currentIndex: number = dayButtons.findIndex( btn => btn === activeElement );\n const monthYearButton: HTMLButtonElement = this.shadowRoot?.querySelector( '.month-year-button' ) as HTMLButtonElement;\n\n switch ( key ) {\n case 'ArrowLeft': \n this._findAndFocusDayButton( -1 ); \n break;\n\n case 'ArrowRight': \n this._findAndFocusDayButton( 1 ); \n break;\n\n case 'ArrowDown': \n this._findAndFocusDayButton( 7 ); \n break;\n\n case 'ArrowUp':\n const newIndexUp: number = currentIndex - 7;\n\n if ( newIndexUp < 0 ) monthYearButton?.focus();\n else this._findAndFocusDayButton(-7); \n\n break;\n\n case 'Home': \n this._focusDayOfWeekEdge( 'start' ); \n break;\n\n case 'End': \n this._focusDayOfWeekEdge( 'end' ); \n break;\n\n case 'Enter': \n activeElement.click(); \n break;\n }\n\n return;\n }\n\n if ( activeElement && ( activeElement.classList.contains( 'month-button' ) || activeElement.classList.contains('year-button') ) ) {\n event.preventDefault();\n\n const isMonthView: boolean = this.currentView === 'months';\n const buttonSelector: string = isMonthView ? '.month-button:not([disabled])' : '.year-button:not([disabled])';\n const gridItems: HTMLButtonElement[] = Array.from( this.shadowRoot!.querySelectorAll( buttonSelector ) ) as HTMLButtonElement[];\n const currentIndex: number = gridItems.findIndex( btn => btn === activeElement );\n const monthYearButton: HTMLButtonElement = this.shadowRoot?.querySelector( '.month-year-button' ) as HTMLButtonElement;\n\n if ( currentIndex === -1 ) return;\n let newIndex: number = currentIndex;\n \n // La cuadrícula es 3xN\n switch ( key ) {\n case 'ArrowDown': \n newIndex += 3;\n if ( newIndex >= gridItems.length ) newIndex = gridItems.length - 1; \n break;\n\n case 'ArrowUp': \n newIndex -= 3; \n\n if ( newIndex < 0 ) {\n monthYearButton?.focus();\n return;\n }\n\n break;\n\n case 'ArrowLeft': \n newIndex -= 1; \n if ( newIndex < 0 ) newIndex = 0;\n break;\n\n case 'ArrowRight': \n newIndex += 1;\n if ( newIndex >= gridItems.length ) newIndex = gridItems.length - 1;\n break;\n\n case 'Enter':\n activeElement.click(); \n break;\n }\n\n if ( newIndex !== currentIndex ) gridItems[ newIndex ]?.focus();\n return;\n }\n \n // Si es una flecha o Enter, previene el comportamiento de scroll de la página\n if ( key.startsWith( 'Arrow') || key === 'Enter' ) event.preventDefault();\n }\n\n /**\n * Renderiza el encabezado del calendario, mostrando el mes y el año actuales.\n * Incluye botones de navegación y un botón para cambiar la vista (a meses/años).\n */\n private renderHeader() {\n const monthNames: string[] = this.getFullMonthNames();\n\n let headerText: string = '';\n let disablePrev: boolean = false; \n let disableNext: boolean = false;\n\n if ( this.currentView === 'years' ) {\n const startYear: number = this.viewDate.getFullYear() - ( this.viewDate.getFullYear() % 21 );\n const endYear: number = startYear + 20;\n headerText = `${startYear} - ${endYear}`;\n\n const minYear: number = this.minDate ? this.minDate.getFullYear() : -Infinity;\n const maxYear: number = this.maxDate ? this.maxDate.getFullYear() : Infinity; \n \n disablePrev = startYear <= minYear; \n disableNext = endYear >= maxYear;\n } else if ( this.currentView === 'months' ) {\n headerText = `${ this.viewDate.getFullYear() }`;\n\n const viewYear: number = this.viewDate.getFullYear();\n const minYear: number = this.minDate ? this.minDate.getFullYear() : -Infinity;\n const maxYear: number = this.maxDate ? this.maxDate.getFullYear() : Infinity;\n\n disablePrev = viewYear <= minYear;\n disableNext = viewYear >= maxYear;\n } else {\n const monthName: string = monthNames[ this.viewDate.getMonth() ];\n headerText = ` ${monthName} ${ this.viewDate.getFullYear() } `;\n\n if ( this.minDate ) disablePrev = dateFns.isSameMonth( dateFns.startOfMonth( this.viewDate ), dateFns.startOfMonth( this.minDate ) ) || dateFns.isBefore( this.viewDate, this.minDate );\n if ( this.maxDate ) disableNext = dateFns.isSameMonth( dateFns.startOfMonth( this.viewDate ), dateFns.startOfMonth( this.maxDate ) ) || dateFns.isAfter( this.viewDate, this.maxDate );\n }\n\n return html`\n <div class=\"header\">\n <div class=\"header-left\">\n <button class=\"month-year-button\" @click=${this.handleHeaderClick}>\n <span>${headerText}</span>\n <randstad-icon name=\"${this.currentView === 'days' ? 'arrow_drop_down' : 'arrow_drop_up'}\" class=\"select-icon\"></randstad-icon>\n </button>\n </div>\n <div class=\"header-right\">\n <button class=\"nav-button\" @click=${() => this.handleNavClick(-1)} ?disabled=${disablePrev}>\n <randstad-icon name=\"arrow_left\"></randstad-icon>\n </button>\n <button class=\"nav-button\" @click=${() => this.handleNavClick(1)} ?disabled=${disableNext}>\n <randstad-icon name=\"arrow_right\"></randstad-icon>\n </button>\n </div>\n </div>\n `;\n }\n\n /**\n * Renderiza la vista de selección de años en el calendario.\n * Genera una cuadrícula de botones, cada uno representando un año dentro de un rango de 21 años.\n * El año actualmente seleccionado se resalta visualmente.\n * Al hacer clic en un botón de año, se invoca el método de manejo de selección de año.\n \n * @returns {TemplateResult} Plantilla HTML para la vista de años.\n */\n private renderYearsView() {\n const startYear: number = this.viewDate.getFullYear() - ( this.viewDate.getFullYear() % 21 );\n const years: number[] = Array.from( { length: 21 }, (_, i) => startYear + i );\n const selectedYear: number | null = this.selectedDate ? this.selectedDate.getFullYear() : null;\n const currentYear: number = new Date().getFullYear();\n\n const minYear: number = this.minDate ? this.minDate.getFullYear() : -Infinity;\n const maxYear: number = this.maxDate ? this.maxDate.getFullYear() : Infinity;\n\n return html`\n <div class=\"year-grid\"> \n ${ years.map( ( y ) => {\n const isDisabled: boolean = y < minYear || y > maxYear;\n const buttonClass: string = ` year-button ${ y === selectedYear ? 'selected' : y === currentYear ? 'current' : '' } `;\n \n return html`\n <button \n class=\"${ buttonClass }\" \n @click=${ () => this.handleYearSelect( y ) }\n ?disabled=${ isDisabled } \n >\n ${ y }\n </button>\n `;\n })}\n </div>\n `;\n }\n\n /**\n * Renderiza la vista de selección de meses en el calendario.\n * Genera una cuadrícula de botones, cada uno representando un mes abreviado.\n * El mes actualmente seleccionado se resalta visualmente.\n * Al hacer clic en un botón de mes, se invoca el método de manejo de selección de mes.\n \n * @returns {TemplateResult} Plantilla HTML para la vista de meses.\n */\n private renderMonthsView() {\n const monthNames: string[] = this.getShortMonthNames();\n const selectedMonth: number | undefined = this.selectedDate?.getMonth();\n const currentMonth: number = new Date().getMonth();\n\n const viewYear: number = this.viewDate.getFullYear();\n\n return html`\n <div class=\"month-grid\">\n ${ monthNames.map(\n ( month, index ) => {\n const isCurrentMonth: boolean = index === currentMonth;\n const isSelected: boolean | null = index === selectedMonth && this.selectedDate && dateFns.isSameYear( this.viewDate, this.selectedDate );\n const isSecondarySelected: boolean | null = index === selectedMonth && this.selectedDate && !dateFns.isSameYear( this.viewDate, this.selectedDate );\n\n let isDisabled: boolean = false;\n\n if ( this.minDate && viewYear === this.minDate.getFullYear() )\n isDisabled = index < this.minDate.getMonth();\n \n if ( this.maxDate && viewYear === this.maxDate.getFullYear() ) \n isDisabled = isDisabled || index > this.maxDate.getMonth();\n\n const buttonClass: string = `month-button ${isSelected ? 'selected' : isSecondarySelected ? 'secondary-selected' : isCurrentMonth ? 'current' : ''}`;\n\n return html`\n <button\n class=\"${ buttonClass }\"\n ?disabled=${ isDisabled }\n @click=${ () => this.handleMonthSelect( index ) }\n >\n ${ month }\n </button>\n `;\n }\n )}\n </div>\n `;\n  }\n\n /**\n * Renderiza la cuadrícula de días para el mes actual.\n * Incluye los días de la semana, los días del mes y marca el día actual y el seleccionado.\n */\n private renderDayView() {\n const daysInMonth: number = dateFns.getDaysInMonth( this.viewDate );\n const startOfMonth: Date = dateFns.startOfMonth( this.viewDate );\n const dayOfWeek: number = dateFns.getDay( startOfMonth );\n\n const leadingDays = Array.from( { length: dayOfWeek === 0 ? 6 : dayOfWeek - 1 },\n () => null\n );\n\n const days = Array.from( { length: daysInMonth },\n (_, i) => dateFns.setDate( startOfMonth, i + 1 )\n );\n\n const weekdays: string[] = this.getShortWeekdays();\n\n return html`\n <div class=\"weekdays\">\n ${ weekdays.map( ( day ) => html`<div>${ day }</div>`) }\n </div>\n\n <div class=\"days-grid\">\n ${ leadingDays.map( () => html`<div></div>` ) }\n ${ days.map( ( day ) => {\n const normalizedDay: Date = dateFns.startOfDay( day );\n const normalizedSelectedDate: Date | null = this.selectedDate\n ? dateFns.startOfDay( this.selectedDate )\n : null;\n\n const isDisabled: boolean | null = ( this.minDate && dateFns.isBefore( normalizedDay, dateFns.startOfDay( this.minDate ) ) ) ||\n ( this.maxDate && dateFns.isAfter( normalizedDay, dateFns.startOfDay( this.maxDate ) ) );\n\n const isTodayDay: boolean = dateFns.isToday( normalizedDay );\n\n // Si el día coincide con el día seleccionado\n const isSameDay: boolean | null = normalizedSelectedDate &&\n dateFns.getDate( normalizedDay ) ===\n dateFns.getDate( normalizedSelectedDate );\n\n // Está seleccionado si es el mismo día y estamos en el mismo mes y año\n const isSelected: boolean | null = isSameDay && normalizedSelectedDate &&\n dateFns.isSameMonth( normalizedDay, normalizedSelectedDate ) &&\n dateFns.isSameYear( normalizedDay, normalizedSelectedDate );\n\n // Es secundario si es el mismo día pero estamos en diferente mes o año\n const isSecondarySelected: boolean | null = isSameDay && !isSelected;\n\n const buttonClass: string = `day ${ isTodayDay ? 'today' : '' } ${\n isSelected\n ? 'selected'\n : isSecondarySelected\n ? 'secondary-selected'\n : ''\n }`;\n\n return html`\n <button\n class=\"${ buttonClass }\"\n ?disabled=${ isDisabled }\n @click=${ () => this.handleDayClick( day ) }\n >\n ${ dateFns.format( day, 'd' ) }\n </button>\n `;\n })}\n </div>\n `;\n }\n /**\n * Gestiona cambios de estado antes de la actualización.\n * Si el tipo es 'month', asegura que la vista nunca sea 'days'.\n */\n protected willUpdate(changedProperties: Map<string | number | symbol, unknown>) {\n if (this.type === 'month' && this.currentView === 'days') {\n this.currentView = 'months';\n }\n }\n\n /**\n * Renderiza el overlay del calendario según la vista actual (días, meses o años).\n * Incluye el encabezado y la cuadrícula correspondiente.\n \n * @returns {TemplateResult} Plantilla HTML del overlay del calendario.\n */\n public render() {\n let content;\n\n if ( this.currentView === 'days' ) content = this.renderDayView();\n else if ( this.currentView === 'months' ) content = this.renderMonthsView();\n else content = this.renderYearsView();\n\n const showSeparator = this.currentView === 'days';\n const mainContent = html` \n ${ this.renderHeader() } \n ${ showSeparator ? html`<div class=\"weekdays-separator\"></div>` : nothing } \n ${ content } \n `;\n\n if ( this.isMobile ) {\n return html`\n <div class=\"mobile-backdrop\" @click=${ () => this.dispatchEvent( new CustomEvent( 'close' ) ) }>\n <div class=\"mobile-modal\" @click=${ ( event: Event ) => event.stopPropagation() }>\n ${ mainContent }\n </div>\n </div>\n `;\n }\n\n return html`\n <div class=\"calendar-container\" style=\"width: ${ this.calendarWidth }px;\">\n ${ mainContent }\n </div>\n `;\n }\n}","import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setYear} function options.\n */\n\n/**\n * @name setYear\n * @category Year Helpers\n * @summary Set the year to the given date.\n *\n * @description\n * Set the year to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param year - The year of the new date\n * @param options - An object with options.\n *\n * @returns The new date with the year set\n *\n * @example\n * // Set year 2013 to 1 September 2014:\n * const result = setYear(new Date(2014, 8, 1), 2013)\n * //=> Sun Sep 01 2013 00:00:00\n */\nexport function setYear(date, year, options) {\n const date_ = toDate(date, options?.in);\n\n // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date\n if (isNaN(+date_)) return constructFrom(options?.in || date, NaN);\n\n date_.setFullYear(year);\n return date_;\n}\n\n// Fallback for modularized imports:\nexport default setYear;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { getDaysInMonth } from \"./getDaysInMonth.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setMonth} function options.\n */\n\n/**\n * @name setMonth\n * @category Month Helpers\n * @summary Set the month to the given date.\n *\n * @description\n * Set the month to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param month - The month index to set (0-11)\n * @param options - The options\n *\n * @returns The new date with the month set\n *\n * @example\n * // Set February to 1 September 2014:\n * const result = setMonth(new Date(2014, 8, 1), 1)\n * //=> Sat Feb 01 2014 00:00:00\n */\nexport function setMonth(date, month, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n const day = _date.getDate();\n\n const midMonth = constructFrom(options?.in || date, 0);\n midMonth.setFullYear(year, month, 15);\n midMonth.setHours(0, 0, 0, 0);\n const daysInMonth = getDaysInMonth(midMonth);\n\n // Set the earlier date, allows to wrap Jan 31 to Feb 28\n _date.setMonth(month, Math.min(day, daysInMonth));\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setMonth;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDay} function options.\n */\n\n/**\n * @name getDay\n * @category Weekday Helpers\n * @summary Get the day of the week of the given date.\n *\n * @description\n * Get the day of the week of the given date.\n *\n * @param date - The given date\n * @param options - The options\n *\n * @returns The day of week, 0 represents Sunday\n *\n * @example\n * // Which day of the week is 29 February 2012?\n * const result = getDay(new Date(2012, 1, 29))\n * //=> 3\n */\nexport function getDay(date, options) {\n return toDate(date, options?.in).getDay();\n}\n\n// Fallback for modularized imports:\nexport default getDay;\n","import { html, css, nothing } from \"lit\";\nimport { customElement, property, query, state } from \"lit/decorators.js\";\nimport { format, isAfter, isBefore, isValid, subYears, setDate } from \"date-fns\";\nimport { classMap, ClassMapDirective } from 'lit/directives/class-map.js';\nimport { DirectiveResult } from \"lit-html/directive\";\nimport { BaseControl } from \"../helpers/BaseControl\";\nimport { bodyL } from '../styles/fontStyles';\nimport { mixStyles } from \"../styles/mix\";\nimport { errorStyles } from \"../styles/error\";\nimport { tooltipStyles } from \"../styles/tooltip\";\n\nimport \"./CalendarOverlay.ts\";\n\n@customElement(\"datepicker-component\")\nexport class DatePickerComponent extends BaseControl {\n @property({ type: String }) width?: string;\n @property({ type: Boolean }) isRenderClearButton = true;\n @property({ type: Boolean }) readonly = false;\n\n @property({ type: String }) minDate?: string;\n @property({ type: String }) maxDate?: string;\n @property({ type: String }) type: 'date' | 'month' = 'date';\n\n // Validador de edad +18\n @property({ type: Boolean }) eighteenOrOlder = false;\n\n // Definición del maxLength del input\n @property({ type: Number }) maxLength: number = 10;\n\n @state() private isOpen = false;\n @state() private selectedDate: Date | null = null;\n @state() private viewDate: Date = new Date();\n @state() private isMobile = false;\n @state() private calendarWidth: number = 0;\n\n @state() private inputValue: string | null = null;\n\n @query(\".input-container\") private inputContainer!: HTMLDivElement;\n @property({ type: Boolean, attribute: 'last-element' }) lastElement = false\n\n static styles = css`\n ${mixStyles}\n ${errorStyles}\n ${tooltipStyles}\n\n /* Si se proporciona una propiedad width (ej. width=\"600px\"), se usa ese valor. */\n :host {\n display: block; \n --datepicker-min-width: 100%; \n --datepicker-max-width: 100%; \n max-width: var( --datepicker-max-width );\n }\n\n .datepicker-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n max-width: var( --datepicker-max-width );\n transition: margin-bottom 0.2s ease-in-out;\n }\n\n /* Estilos para evitar el desbordamiento en móviles */\n calendar-overlay {\n max-width: 100dvw;\n box-sizing: border-box;\n }\n\n /* Estilos para el estado disabled */\n .input-wrapper.disabled, .input-wrapper.disabled .date-input {\n background-color: var( --secondary-color-10 ) ;\n color: #9FA3B3;\n cursor: default;\n }\n\n .input-wrapper.disabled .icon-button,\n .input-wrapper.disabled .icon-button randstad-icon {\n color: #9FA3B3;\n cursor: default;\n }\n\n /* Estilos para el estado readonly */\n .input-wrapper.readonly .date-input {\n cursor: pointer;\n }\n\n .input-wrapper.readonly .calendar-button {\n cursor: pointer;\n color: #2175d9;\n }\n\n /* Estilos del campo de entrada y sus estados */\n .input-wrapper {\n display: flex;\n align-items: center;\n border: 1px solid var( --md-sys-color-outline, #e0e0e0 );\n border-radius: 4px;\n padding: 0 16px;\n transition: border-color 0.2s;\n background: white;\n box-sizing: border-box;\n min-width: var( --datepicker-min-width ); \n max-width: var( --datepicker-max-width ); \n }\n\n .input-wrapper:hover {\n box-shadow: 0px 0px 0px 4px #0f19411a;\n }\n\n .input-wrapper.active:hover {\n box-shadow: 0px 0px 0px 4px #0f19411a;\n }\n\n .input-wrapper.active {\n border: 1px solid var( --primary-color );\n box-shadow: none;\n }\n\n .date-input {\n ${bodyL}\n flex-grow: 1;\n border: none;\n outline: none;\n padding: 16px 0;\n cursor: text;\n background: white;\n color: var(--secondary-color, #49454f);\n min-width: 0;\n }\n \n .date-input :-webkit-autofill,\n .date-input :-webkit-autofill:hover,\n .date-input :-webkit-autofill:focus,\n .date-input :-webkit-autofill:active {\n -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;\n -webkit-text-fill-color: var(--secondary-color);\n transition: background-color 5000s ease-in-out 0s;\n }\n\n .icon-button {\n background: none;\n border: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n transition: background-color 0.2s ease;\n }\n \n .input-wrapper:not(.disabled) .icon-button:hover {\n background-color: var(--primary-color-10);\n }\n\n .clear-button {\n margin-right: 18px;\n color: #49454f;\n opacity: 0.6;\n }\n\n .clear-button randstad-icon {\n width: 18px;\n height: 18px;\n }\n\n .calendar-button {\n color: #2175d9;\n }\n\n .calendar-button randstad-icon {\n font-size: 18px;\n }\n\n @media ( max-width: 940px ) {\n .icon-button:hover {\n background-color: transparent;\n }\n }\n `;\n\n private setMessageErrorFormatInvalid(): string {\n const formatStr = this.type === 'month' ? 'MM-yyyy' : 'dd-MM-yyyy';\n return `formato de fecha inválido, se esperaba '${formatStr}'`;\n }\n\n private get _currentFormat(): string {\n return this.type === 'month' ? 'MM-yyyy' : 'dd-MM-yyyy';\n }\n\n /**\n * Devuelve el foco al input principal del DatePicker.\n * Se utiliza cuando el usuario sale del CalendarOverlay (ej. tecla ArrowUp).\n */\n private handleFocusInput() {\n (this.shadowRoot?.querySelector('.date-input') as HTMLInputElement)?.focus();\n }\n\n /**\n * Ciclo de vida: se ejecuta al conectar el componente al DOM.\n * Inicializa el modo responsivo y listeners globales.\n */\n public connectedCallback() {\n super.connectedCallback();\n this.updateResponsiveMode();\n\n window.addEventListener('resize', this.updateResponsiveModeBound);\n document.addEventListener('click', this.handleClickOutside);\n\n this.addEventListener('focus-input', this.handleFocusInput as EventListener);\n window.addEventListener('overlay-opened', this.handleGlobalOverlayOpen);\n }\n\n /**\n * Ciclo de vida: se ejecuta al desconectar el componente del DOM.\n * Limpia listeners globales.\n */\n public disconnectedCallback() {\n window.removeEventListener('resize', this.updateResponsiveModeBound);\n document.removeEventListener('click', this.handleClickOutside);\n\n this.removeEventListener('focus-input', this.handleFocusInput as EventListener);\n window.removeEventListener('overlay-opened', this.handleGlobalOverlayOpen);\n super.disconnectedCallback();\n }\n\n\n private handleGlobalOverlayOpen = (e: Event) => {\n const customEvent = e as CustomEvent;\n\n if (customEvent.detail !== this && this.isOpen) {\n this.isOpen = false;\n this._emitDropdownToggle(false);\n }\n };\n\n private notifyOverlayOpened() {\n window.dispatchEvent(new CustomEvent('overlay-opened', { detail: this }));\n }\n\n\n /**\n * Ciclo de vida: se llama después de que la primera actualización del componente ha terminado.\n * Es ideal para obtener el ancho del DOM por primera vez.\n */\n public firstUpdated() {\n this.setInitialWidth();\n }\n\n private setInitialWidth() {\n if (!this.inputContainer) return;\n const newWidth = this.inputContainer.getBoundingClientRect().width;\n if (this.calendarWidth !== newWidth) {\n this.calendarWidth = newWidth;\n }\n }\n\n /**\n * Referencia enlazada para el listener de resize.\n */\n private updateResponsiveModeBound = this.updateResponsiveMode.bind(this);\n\n /**\n * Actualiza el estado isMobile según el ancho de la ventana.\n */\n private updateResponsiveMode() {\n this.isMobile = window.innerWidth <= 940;\n // Se llama a setInitialWidth() para recalcular el ancho si la vista cambia\n this.setInitialWidth();\n }\n\n /**\n * Maneja el evento de entrada del usuario en el input.\n * Valida el formato de la fecha y actualiza el estado del componente.\n \n * @param event - Objeto de evento de entrada.\n */\n public handleInput(event: Event) {\n this.onlyNumericAndDash(event);\n const input: HTMLInputElement = event.target as HTMLInputElement;\n\n const trimmedValue: string = input.value.substring(0, this.maxLength);\n if (input.value !== trimmedValue) input.value = trimmedValue;\n\n this.inputValue = input.value;\n this._parseAndValidateDate(input.value, true);\n }\n\n /**\n * Cierra el calendario si el clic se realiza fuera del componente.\n * Se ejecuta en el `document` para detectar clics en cualquier lugar de la página.\n \n * @param e - Objeto de evento del clic.\n */\n private handleClickOutside = (event: Event) => {\n const path: EventTarget[] = event.composedPath();\n\n if (!path.includes(this)) {\n if (this.isOpen) {\n this._emitToggle(false);\n this._emitDropdownToggle(false);\n }\n this.isOpen = false;\n }\n };\n\n /**\n * Abre o cierra el calendario al hacer clic en el botón de calendario.\n \n * @param e - Objeto de evento del clic.\n */\n public handleCalendarButtonClick(event: Event) {\n if (this.disabled) return;\n event.stopPropagation();\n\n if (this.isOpen) {\n this.isOpen = false;\n this._emitToggle(false);\n this._emitDropdownToggle(false);\n\n const input: HTMLInputElement | null = this.shadowRoot?.querySelector('.date-input') as HTMLInputElement;\n input?.focus();\n\n return;\n }\n\n this.notifyOverlayOpened();\n this.isOpen = true;\n this._emitToggle(true);\n this._emitDropdownToggle(true);\n\n if (this.selectedDate) this.viewDate = this.selectedDate;\n else this.viewDate = new Date();\n\n this.updateComplete.then(() => {\n const input: HTMLInputElement | null = this.shadowRoot?.querySelector('.date-input') as HTMLInputElement;\n input?.focus();\n });\n }\n\n /**\n * Borra la fecha seleccionada y cierra el calendario.\n */\n public handleClearDate() {\n this.inputValue = null;\n this.selectedDate = null;\n this.error = false;\n this.errorMessage = null;\n\n this.closeOverlay(null);\n }\n\n /**\n * Maneja la selección de fecha desde el calendario.\n */\n private handleDateSelect(event: CustomEvent) {\n let selected: Date | null = event.detail.date;\n if (!selected) return;\n\n if (this.type === 'month') {\n selected = setDate(selected, 1);\n }\n\n const isValidDate: boolean = this._validateDate(selected);\n\n if (isValidDate) {\n this.selectedDate = selected;\n this.viewDate = selected;\n\n const formattedDate = format(selected, this._currentFormat);\n this.inputValue = formattedDate.replace(/-/g, '/');\n\n this.closeOverlay(formattedDate);\n } else {\n const formattedDate = format(selected, this._currentFormat);\n this.inputValue = formattedDate.replace(/-/g, '/');\n\n this.selectedDate = null;\n this.closeOverlay(null);\n }\n }\n\n private _emitToggle(opened: boolean) {\n this.dispatchEvent(new CustomEvent('calendar-toggle', {\n detail: { open: opened },\n bubbles: true,\n composed: true\n }));\n }\n\n /**\n * Verifica si este componente es el último elemento focusable dentro de su contenedor (modal/form).\n * Returns true si es el último o único elemento focusable.\n */\n private _isLastFocusableInModal(): boolean {\n const parent = this.parentElement;\n if (!parent) return false;\n\n // Obtener todos los elementos focusables en el padre\n const focusableSelectors = [\n 'button:not([disabled])',\n 'input:not([disabled])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n 'a[href]',\n '[tabindex]:not([tabindex=\"-1\"])',\n 'randstad-button:not([disabled])',\n 'datepicker-component:not([disabled])',\n 'randstad-select:not([disabled])'\n ].join(', ');\n\n const focusableElements = parent.querySelectorAll(focusableSelectors);\n const focusableArray = Array.from(focusableElements);\n\n // Encontrar el índice de este componente\n const myIndex = focusableArray.indexOf(this);\n\n // Si no está en la lista, no es focusable\n if (myIndex === -1) return false;\n\n // Verificar si es el último elemento focusable\n return myIndex === focusableArray.length - 1;\n }\n\n /**\n * Emite el evento dropdown-toggle-calendar para notificar al modal padre.\n * Solo se dispara si el DatePicker es el último elemento focusable del formulario/modal.\n */\n private _emitDropdownToggle(open: boolean) {\n if (open) {\n if (this.isOpen && this.lastElement) {\n this.updateComplete.then(() => {\n this.dispatchEvent(new CustomEvent('dropdown-toggle-calendar', {\n detail: { open: true },\n bubbles: true,\n composed: true\n }));\n });\n }\n } else {\n this.updateComplete.then(() => {\n this.dispatchEvent(new CustomEvent('dropdown-toggle-calendar', {\n detail: { open: false },\n bubbles: true,\n composed: true\n }));\n });\n }\n }\n\n /**\n * Ciclo de vida: se llama antes de cada actualización.\n * Se utiliza para preparar el estado antes del renderizado.\n * NO modifica propiedades reactivas aquí para evitar loops de renderizado.\n */\n protected willUpdate(changedProperties: Map<string, any>) {\n if (changedProperties.has(\"width\")) {\n this.style.setProperty('width', this.width || '100%');\n }\n\n if (changedProperties.has(\"value\")) {\n const oldValue = changedProperties.get(\"value\");\n if (this.value !== oldValue) {\n this._syncValue(this.value);\n }\n }\n\n if (changedProperties.has(\"type\")) {\n if (this.type === 'month') {\n this.maxLength = 7;\n } else {\n this.maxLength = 10;\n }\n }\n }\n\n /**\n * Ciclo de vida: se llama después de cada actualización del componente.\n * Se usa para operaciones que requieren el DOM ya renderizado.\n * Solo recalcula el ancho si es necesario y evita loops de actualización.\n */\n public updated(changedProperties: Map<string, any>) {\n // Recalcular ancho solo cuando el calendario se abre o cambia el valor\n // Usamos una bandera para evitar múltiples llamadas en el mismo ciclo\n if (changedProperties.has(\"isOpen\") || changedProperties.has(\"value\")) {\n if (this.isOpen) {\n this.updateComplete.then(() => {\n this.setInitialWidth();\n });\n }\n }\n\n super.updated(changedProperties);\n }\n\n /**\n * Maneja el cambio de la fecha de vista en el calendario.\n \n * @param e - Objeto de evento con la nueva fecha de vista.\n */\n private handleViewDateChange(event: CustomEvent) {\n this.viewDate = event.detail.date;\n }\n\n /**\n * Cierra el calendario y actualiza el valor del componente.\n * Emite un evento 'date-selected' con el valor de la fecha seleccionada.\n \n * @param valueSet - La fecha en formato de cadena (ej: 'dd-MM-yyyy') a establecer.\n */\n private closeOverlay(valueSet: string | null) {\n this.value = valueSet;\n\n // Ensure the visible input shows slashes instead of dashes (visual only).\n // Keep the internal `value` using the original dashed format.\n this.inputValue = valueSet ? valueSet.replace(/-/g, '/') : null;\n\n this.dispatchEvent(new CustomEvent('date-selected', { detail: { value: valueSet } }));\n this.isOpen = false;\n this._emitToggle(false);\n this._emitDropdownToggle(false);\n\n const input: HTMLInputElement | null = this.shadowRoot?.querySelector('.date-input') as HTMLInputElement;\n input?.focus();\n }\n\n /**\n * Analiza la propiedad 'value' externa y actualiza el estado interno del componente.\n * Se ejecuta cuando una propiedad cambia desde fuera (p. ej., Storybook, componente padre).\n * No emite eventos ni interactúa con el DOM para evitar bucles de renderizado.\n\n * @param value La cadena de fecha pasada desde una propiedad externa.\n */\n private _syncValue(value: string | null) {\n if (value === '' || value === null) {\n if (this.selectedDate !== null || this.inputValue !== null) {\n this.selectedDate = null;\n this.inputValue = null;\n this.errorMessage = null;\n this.error = false;\n }\n\n return;\n }\n\n let parsedDate: Date | null = this._parseDate(value);\n\n if (parsedDate && this._validateDate(parsedDate)) {\n if (this.type === 'month') {\n parsedDate = setDate(parsedDate, 1);\n }\n\n this.selectedDate = parsedDate;\n this.viewDate = parsedDate;\n\n this.error = false;\n this.errorMessage = null;\n\n this.inputValue = format(parsedDate, this._currentFormat).replace(/-/g, '/');\n } else {\n this.selectedDate = parsedDate;\n }\n }\n\n /**\n * Valida una fecha basándose en las reglas del componente.\n * Esto incluye la validación de edad y el rango de fechas.\n \n * @param date - El objeto Date a validar.\n * @returns `true` si la fecha es válida, `false` de lo contrario.\n */\n private _validateDate(date: Date | null): boolean {\n if (!date) return false;\n\n // Resetear el estado de error antes de validar \n this.error = false;\n this.errorMessage = null;\n\n // Lógica de validación de edad\n if (this.eighteenOrOlder) {\n const eighteenYearsAgo: Date = subYears(new Date(), 18);\n\n if (isAfter(date, eighteenYearsAgo)) {\n this.error = true;\n this.errorMessage = 'tenés que ser mayor de 18 años';\n\n return false;\n }\n }\n\n // Lógica de validación de rango\n let isValidRange: boolean = this._isWithinBounds(date);\n\n if (!isValidRange) {\n const range: { minDate: Date | null; maxDate: Date | null; } | null = this._getValidDateRange();\n\n this.error = true;\n return false;\n }\n\n return true;\n }\n\n /**\n * Valida la entrada del usuario en el campo de texto.\n\n * Este método se llama con cada pulsación de tecla o cambio en el input.\n * Se encarga de validar el formato, verificar si la fecha está dentro de los límites\n * y de actualizar el estado de error y el valor del input.\n \n * @param value La cadena de fecha que el usuario ha introducido.\n * @param fromInput Indica si la llamada proviene directamente de la interacción del usuario.\n */\n private _parseAndValidateDate(value: string | null, fromInput: boolean) {\n if (this.disabled) return;\n\n if (value === '' || value === null) {\n this.selectedDate = null;\n this.error = false;\n this.errorMessage = null;\n\n if (fromInput) this.closeOverlay(null);\n return;\n }\n\n const parsedDate: Date | null = this._parseDate(value);\n\n if (parsedDate) {\n const isValidDate = this._validateDate(parsedDate);\n\n if (isValidDate) {\n this.selectedDate = parsedDate;\n this.viewDate = parsedDate;\n this.error = false;\n this.errorMessage = null;\n\n if (fromInput) this.closeOverlay(format(parsedDate, this._currentFormat));\n } else {\n // El error y el mensaje ya han sido seteados por _validateDate\n this.error = true;\n this.selectedDate = null;\n\n if (fromInput) this.closeOverlay(null);\n }\n } else {\n this.error = true;\n this.errorMessage = this.setMessageErrorFormatInvalid();\n this.selectedDate = null;\n\n if (fromInput) this.closeOverlay(null);\n }\n }\n\n /**\n * Intenta analizar una cadena de fecha en múltiples formatos.\n * Este método es la fuente de la verdad para el análisis de fechas. \n * Soporta los formatos 'dd-MM-yyyy' y 'yyyy-MM-dd', retornando un objeto Date.\n \n * @param dateString La cadena de fecha a analizar.\n * @returns Un objeto Date si es válido, de lo contrario, null.\n */\n private _parseDate(dateString: string): Date | null {\n // Intenta parsear como 'dd-MM-yyyy'\n const parts = dateString.split('-').map(Number);\n\n if (this.type === 'month' && parts.length === 2) {\n const [month, year] = parts;\n if (month >= 1 && month <= 12 && year > 1000) {\n const tempDate = new Date(year, month - 1, 1, 12);\n if (isValid(tempDate)) return tempDate;\n }\n return null;\n }\n\n if (parts.length === 3) {\n const [day, month, year] = parts;\n\n if (day && month && year && month >= 1 && month <= 12 && year > 1000) {\n const tempDate = new Date(year, month - 1, day, 12);\n if (isValid(tempDate) && format(tempDate, 'dd-MM-yyyy') === dateString) return tempDate;\n }\n }\n\n // Si no es un formato válido, intenta parsear como 'yyyy-MM-dd'\n const partsYYYYMMDD = dateString.split('-').map(Number);\n\n if (partsYYYYMMDD.length === 3) {\n const [year, month, day] = partsYYYYMMDD;\n\n if (year && month && day && month >= 1 && month <= 12 && year > 1000) {\n const tempDate = new Date(year, month - 1, day, 12);\n if (isValid(tempDate) && format(tempDate, 'yyyy-MM-dd') === dateString) return tempDate;\n }\n }\n\n return null;\n }\n\n /**\n * Analiza una cadena de fecha con formato 'yyyy-MM-dd'.\n * Este método auxiliar ayuda a procesar la propiedad minDate y maxDate.\n \n * @param dateString La cadena de fecha en formato 'yyyy-MM-dd'.\n\n * @returns Un objeto Date si es válido, de lo contrario, null.\n */\n private _parseDateString(dateString: string | undefined): Date | null {\n if (!dateString) return null;\n const parts: number[] = dateString.split('-').map(Number);\n\n if (parts.length === 3 && !isNaN(parts[0]) && !isNaN(parts[1]) && !isNaN(parts[2])) {\n // Creamos la fecha al mediodía (12:00) para evitar cualquier cambio de día causado por la zona horaria.\n const date: Date = new Date(parts[0], parts[1] - 1, parts[2], 12);\n return date;\n }\n\n return null;\n }\n\n /**\n * Retorna el rango de fechas válido del componente.\n * Analiza las propiedades 'minDate' y 'maxDate' para determinar el rango permitido.\n \n * @returns Un objeto con las fechas mínima y máxima, o null si no se define un rango.\n */\n private _getValidDateRange(): { minDate: Date | null, maxDate: Date | null } | null {\n const minDateObj: Date | null = this._parseDateString(this.minDate);\n const maxDateObj: Date | null = this._parseDateString(this.maxDate);\n\n if (!minDateObj && !maxDateObj) return { minDate: null, maxDate: null };\n if (minDateObj && maxDateObj && isAfter(minDateObj, maxDateObj)) return null;\n\n return { minDate: minDateObj, maxDate: maxDateObj };\n }\n\n /**\n * Verifica si una fecha dada está dentro del rango permitido.\n \n * @param date La fecha a verificar.\n\n * @returns Verdadero si la fecha está dentro de los límites, de lo contrario, falso.\n */\n private _isWithinBounds(date: Date): boolean {\n const range: { minDate: Date | null, maxDate: Date | null } | null = this._getValidDateRange();\n\n // Si el rango es nulo (es inválido) o si no hay límites definidos, la fecha del usuario es válida\n if (!range) return true;\n\n // Comprobamos si la fecha está antes del mínimo\n if (range.minDate && isBefore(date, range.minDate)) return false;\n\n // Comprobamos si la fecha está después del máximo\n if (range.maxDate && isAfter(date, range.maxDate)) return false;\n\n return true;\n }\n\n /**\n * Maneja eventos de teclado en el input principal.\n\n @param event El objeto KeyboardEvent.\n */\n public handleKeyDown(event: KeyboardEvent) {\n if (this.disabled) return;\n\n const { key } = event;\n const input: HTMLInputElement | null = this.shadowRoot?.querySelector('.date-input') as HTMLInputElement;\n\n if (key === 'Enter' || key === ' ') {\n event.preventDefault();\n\n if (this.isOpen) {\n this.closeOverlay(this.value);\n this._emitDropdownToggle(false);\n } else {\n this.notifyOverlayOpened();\n this.isOpen = true;\n this._emitToggle(true);\n this._emitDropdownToggle(true);\n\n if (this.selectedDate) this.viewDate = this.selectedDate;\n else this.viewDate = new Date();\n }\n } else if (key === 'Escape') {\n if (!this.isOpen) return;\n\n event.preventDefault();\n this.closeOverlay(this.value);\n this._emitDropdownToggle(false);\n } else if (key === 'ArrowDown') {\n event.preventDefault();\n\n if (!this.isOpen) {\n this.notifyOverlayOpened();\n this.isOpen = true;\n this._emitToggle(true);\n this._emitDropdownToggle(true);\n\n if (this.selectedDate) this.viewDate = this.selectedDate;\n else this.viewDate = new Date();\n }\n\n // Una vez que esté abierto (o después de abrirlo), movemos el foco al calendario.\n this.updateComplete.then(() => {\n const calendarOverlay: any = this.shadowRoot?.querySelector('calendar-overlay');\n\n if (calendarOverlay && typeof calendarOverlay.focusCalendar === 'function')\n calendarOverlay.focusCalendar();\n });\n }\n\n const clearButton: HTMLButtonElement | null = this.shadowRoot?.querySelector('.clear-button') as HTMLButtonElement;\n const calendarButton: HTMLButtonElement | null = this.shadowRoot?.querySelector('.calendar-button') as HTMLButtonElement;\n\n if (key === 'ArrowRight') {\n event.preventDefault();\n\n // Del Input, pasa al Clear Button (si existe) o al Calendar Button\n if (this.shadowRoot?.activeElement === input) {\n if (clearButton) clearButton.focus();\n else calendarButton?.focus();\n }\n }\n }\n\n /**\n * Maneja los eventos de teclado en el botón de borrar (Close/Clear).\n */\n public handleClearButtonKeydown(event: KeyboardEvent) {\n if (this.disabled) return;\n\n const { key } = event;\n\n const input: HTMLInputElement | null = this.shadowRoot?.querySelector('.date-input') as HTMLInputElement;\n const calendarButton: HTMLButtonElement | null = this.shadowRoot?.querySelector('.calendar-button') as HTMLButtonElement;\n\n if (key === 'ArrowLeft') {\n event.preventDefault();\n input?.focus();\n } else if (key === 'ArrowRight') {\n event.preventDefault();\n calendarButton?.focus();\n }\n }\n\n /**\n * Maneja los eventos de teclado en el botón del calendario.\n */\n public handleCalendarButtonKeydown(event: KeyboardEvent) {\n if (this.disabled) return;\n\n const { key } = event;\n const input: HTMLInputElement | null = this.shadowRoot?.querySelector('.date-input') as HTMLInputElement;\n const clearButton: HTMLButtonElement | null = this.shadowRoot?.querySelector('.clear-button') as HTMLButtonElement;\n\n if (key === 'Tab') {\n if (!event.shiftKey && !this.isOpen) {\n event.preventDefault();\n this.notifyOverlayOpened();\n this.isOpen = true;\n this._emitToggle(true);\n this._emitDropdownToggle(true);\n\n if (this.selectedDate) this.viewDate = this.selectedDate;\n else this.viewDate = new Date();\n\n this.updateComplete.then(() => {\n const calendarOverlay: any = this.shadowRoot?.querySelector('calendar-overlay');\n if (calendarOverlay && typeof calendarOverlay.focusFirstElement === 'function') {\n calendarOverlay.focusFirstElement();\n }\n });\n return;\n }\n if (this.isOpen) {\n event.preventDefault();\n this.closeOverlay(this.value);\n return;\n }\n }\n\n if (key === 'ArrowLeft') {\n event.preventDefault();\n\n if (clearButton) clearButton.focus();\n else input?.focus();\n } else {\n if (key === 'Enter' || key === ' ') event.preventDefault();\n this.handleCalendarButtonClick(event);\n }\n }\n\n /**\n * Restringe la entrada del input a solo dígitos (0-9) y el guion (-).\n */\n public onlyNumericAndDash(event: Event) {\n const inputElement: HTMLInputElement = event.target as HTMLInputElement;\n const currentValue: string = inputElement.value;\n\n // Solo permite dígitos (0-9) y el guion (-)\n const sanitizedValue: string = currentValue.replace(/[^0-9-]/g, '');\n\n // Actualiza el valor del input con el valor limpio\n inputElement.value = sanitizedValue;\n }\n\n /**\n * Renderiza el componente DatePicker, incluyendo el input, botones y el overlay del calendario.\n */\n public render() {\n const inputWrapperClasses: DirectiveResult<typeof ClassMapDirective> = classMap({\n 'input-wrapper': true,\n 'active': this.isOpen,\n 'error': this.error,\n 'disabled': this.disabled,\n 'readonly': this.readonly\n });\n\n const range: { minDate: Date | null, maxDate: Date | null } | null = this._getValidDateRange();\n\n return html`\n <div class=\"datepicker-container\" style=\"${this.labelColor ? ` --label-color: ${this.labelColor}` : ''}\">\n ${this.renderLabelContainer()}\n\n <div class=\"input-container\">\n <div class=\"${inputWrapperClasses}\">\n <input\n type=\"text\"\n class=\"date-input\"\n .value=\"${this.inputValue ?? ''}\"\n placeholder=\"${this.placeholder}\"\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n maxlength=\"${this.maxLength}\"\n inputmode=\"numeric\"\n @input=${this.readonly ? null : this.handleInput}\n @keydown=${this.readonly ? null : this.handleKeyDown}\n @click=${this.readonly ? this.handleCalendarButtonClick : null}\n />\n\n ${this.isRenderClearButton && this.selectedDate && !this.disabled\n ? html`\n <button\n class=\"icon-button clear-button\"\n tabindex=\"0\"\n @click=${this.handleClearDate}\n @keydown=${this.handleClearButtonKeydown}\n >\n <randstad-icon name=\"close\"></randstad-icon>\n </button>\n `\n : nothing\n }\n\n <button\n class=\"icon-button calendar-button\"\n tabindex=\"0\"\n @click=${this.handleCalendarButtonClick}\n @keydown=${this.handleCalendarButtonKeydown}\n >\n <randstad-icon name=\"calendar\"></randstad-icon>\n </button>\n </div>\n\n ${this.isOpen\n ? html`\n <calendar-overlay\n .type=${this.type}\n .isMobile=${this.isMobile}\n .selectedDate=${this.selectedDate}\n .viewDate=${this.viewDate}\n .calendarWidth=${this.calendarWidth}\n .minDate=${range?.minDate}\n .maxDate=${range?.maxDate}\n .lastElement=${this.lastElement}\n @close=${() => (this.isOpen = false)}\n @view-date-change=${this.handleViewDateChange}\n @date-selected=${this.handleDateSelect}\n >\n </calendar-overlay>\n `\n : nothing\n }\n \n ${this.renderError()}\n </div>\n\n ${this.renderHelper()}\n </div>\n `;\n }\n}","import { addYears } from \"./addYears.js\";\n\n/**\n * The {@link subYears} function options.\n */\n\n/**\n * @name subYears\n * @category Year Helpers\n * @summary Subtract the specified number of years from the given date.\n *\n * @description\n * Subtract the specified number of years from the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of years to be subtracted.\n * @param options - An object with options\n *\n * @returns The new date with the years subtracted\n *\n * @example\n * // Subtract 5 years from 1 September 2014:\n * const result = subYears(new Date(2014, 8, 1), 5)\n * //=> Tue Sep 01 2009 00:00:00\n */\nexport function subYears(date, amount, options) {\n return addYears(date, -amount, options);\n}\n\n// Fallback for modularized imports:\nexport default subYears;\n","import { html, css, nothing, TemplateResult } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { BaseUpload, FileHandlerConfig } from '../helpers/BaseUpload';\nimport { bodyM } from '../styles/fontStyles';\nimport { tooltipStyles } from \"../styles/tooltip\";\nimport { mixStyles } from '../styles/mix';\nimport { errorStyles } from '../styles/error';\nimport { progressBarUploadStyles } from '../styles/progress-bar-upload';\nimport { FILE_TYPE_MAPPING } from '../utils/file-format';\n\nimport '../components/Button';\nimport '../components/Icon';\nimport '../components/Popup';\n\n@customElement('upload-file')\nexport class UploadFile extends BaseUpload {\n @property({ type: String }) width?: string;\n\n @property({ type: Number }) maxFiles = 1;\n @property({ type: Array }) acceptedFileTypes: string[] = [];\n @property({ type: Number }) maxFileSize = 0;\n\n @property({ type: String }) buttonText = 'Agregar archivo';\n @property({ type: Boolean }) showDeleteConfirmation = false;\n @property({ type: Boolean }) showInternalError = true;\n\n @state() private isRemovePopupOpen: boolean = false;\n @state() private fileIndexToRemove: number = -1;\n @state() private fileNameToRemove: string = '';\n\n static styles = css`\n ${ mixStyles }\n ${ errorStyles }\n ${ tooltipStyles }\n ${ progressBarUploadStyles }\n\n :host([width]) {\n width: var( --upload-file-width );\n }\n\n /* Contenedor principal para organizar los elementos */\n .file-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n input[ type=\"file\" ] {\n display: none;\n }\n\n .file-list-container {\n width: 100%;\n display: flex;\n justify-content: flex-end;\n }\n\n .file-list {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: 8px;\n }\n\n .file-item {\n display: flex;\n align-items: center;\n gap: 8px;\n color: var( --secondary-color-80, #404767 );\n max-width: 100%;\n }\n\n .file-name {\n ${ bodyM };\n text-align: right;\n color: var( --secondary-color-40 );\n vertical-align: middle;\n leading-trim: NONE;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 250px;\n }\n\n .remove-file-button {\n --primary-color: var( --ui-negative, #E00F0F );\n }\n\n .progress-bar {\n width: 100%;\n }\n\n randstad-button::part( button ):focus-visible {\n outline: 2px solid rgb( 0, 215, 255 ) !important;\n outline-offset: 1px;\n }\n `;\n\n private getFileConfig(): FileHandlerConfig {\n const hasTypeLimit: boolean = this.acceptedFileTypes.length > 0;\n const hasSizeLimit: boolean = this.maxFileSize > 0;\n\n return {\n baseMaxFiles: this.maxFiles,\n maxFileSize: this.maxFileSize,\n acceptedFileTypes: this.acceptedFileTypes,\n errorMessageType: (hasTypeLimit && this.showInternalError)\n ? `formato de archivo no válido, se aceptan: ${ this.getTextAcceptedFileTypes() }`\n : '',\n errorMessageSize: (hasSizeLimit && this.showInternalError)\n ? `el archivo es demasiado grande, el máximo es de ${ this.getTextMaxFileSize() }`\n : '',\n typeError: 'file'\n };\n }\n\n private getTextAcceptedFileTypes(): string {\n return this.getReadableFileTypes( this.acceptedFileTypes, FILE_TYPE_MAPPING );\n }\n\n private getTextMaxFileSize(): string {\n return this.baseGetTextMaxFileSize( this.maxFileSize );\n }\n\n public updated( changedProperties: Map<string, any> ) {\n super.updated( changedProperties );\n this.applyWidth();\n }\n\n private applyWidth() {\n if ( this.width ) this.style.setProperty( '--upload-file-width', this.width );\n }\n\n private onFileInputChange( event: Event ) {\n this.baseOnFileInputChange( event, this.getFileConfig() );\n }\n\n public willUpdate( changedProperties: Map<string | number | symbol, unknown> ) {\n if ( changedProperties.has( 'maxFiles' ) || changedProperties.size === 0 )\n this.isMultiple = this.maxFiles > 1;\n }\n\n private handleRemoveFile( index: number, fileName: string ) {\n if ( !this.showDeleteConfirmation ) {\n this.removeFile( index, 'file' );\n return;\n }\n\n this.confirmRemoveFile ( index, fileName );\n }\n\n private confirmRemoveFile( index: number, fileName: string ) {\n this.fileIndexToRemove = index;\n this.fileNameToRemove = fileName;\n this.isRemovePopupOpen = true;\n }\n\n private handlePopupClose( event: CustomEvent ) {\n const shouldRemove = event.detail;\n\n if ( shouldRemove === false ) {\n this.removeFile( this.fileIndexToRemove, 'file' );\n }\n\n this.isRemovePopupOpen = false;\n this.fileIndexToRemove = -1;\n this.fileNameToRemove = '';\n }\n\n public render() {\n const isMaxFilesReached: boolean = this.files.length >= this.maxFiles;\n const buttonDisabled: boolean = this.disabled || isMaxFilesReached;\n\n const buttonBaseTemplate: TemplateResult = html`\n <randstad-button\n .label=${ this.buttonText }\n .variant=${ 'button-primary' }\n ?disabled=${ buttonDisabled }\n @click=${ () => this.fileInput?.click() }\n >\n </randstad-button>\n `;\n\n return html`\n <div class=\"file-container\" style=\"${ this.labelColor ? `--label-color: ${ this.labelColor };` : '' }\">\n ${ this.renderLabelContainer() }\n\n ${ this.renderLoadingContainer( buttonBaseTemplate ) }\n\n <input\n type=\"file\"\n accept=${ this.acceptedFileTypes.join(',') }\n ?multiple=${ this.isMultiple }\n ?disabled=${ buttonDisabled }\n @change=\"${ this.onFileInputChange }\"\n />\n\n ${ this.renderError() }\n\n ${ this.renderHelper() }\n\n ${ this.files.length > 0\n ? html`\n <div class=\"file-list-container\">\n <div class=\"file-list\">\n ${ this.files.map( ( file, index ) =>\n html`\n <div class=\"file-item\">\n <span class=\"file-name\">${ file.name }</span>\n\n <randstad-button\n class=\"remove-file-button\"\n .variant=${'button-icon'}\n .iconName=${'trash'}\n @click=${ () => this.handleRemoveFile( index, file.name ) }\n ?disabled=${ this.disabled }\n >\n </randstad-button>\n </div>\n `\n )}\n </div>\n </div>\n `\n : nothing\n }\n\n ${ this.isRemovePopupOpen\n ? html`\n <custom-popup\n .open=${ this.isRemovePopupOpen }\n .type=${ 'other' }\n .icon=${ 'trash_circle' }\n .title=${ `¿querés eliminar este ${ this.typeTextFile || 'archivo' }?` }\n .description=${ undefined }\n .confirmText=${ 'cancelar' }\n .cancelText=${ 'sí, eliminar' }\n @popup-close=${ this.handlePopupClose }\n >\n </custom-popup>\n `\n : nothing\n }\n </div>\n `;\n }\n}\n","import { LitElement, html, css } from 'lit';\nimport { customElement, property, query, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport \"./CarouselCards\";\n\n@customElement('carousel-component')\nexport class Carousel extends LitElement {\n @property({ type: Array }) cards: any[] = [];\n @property({ type: String }) cardWidth: string = ''; \n @property({ type: String }) cardHeight: string = '';\n\n @property({ type: Number }) navWidth: number = 112; \n @property({ type: Boolean }) showNavButtons: boolean = true; \n @property({ type: Boolean }) isDynamicWidth: boolean = true; \n @property({ type: Boolean }) isInfiniteScrollPartial: boolean = true;\n\n @property({ type: Number }) autoPlayDelayMs: number = 0; \n\n @state() private showPrevButton = false;\n @state() private showNextButton = true;\n \n @query( '.carousel-wrapper' ) private slider!: HTMLElement;\n @query( 'slot' ) private slotElement!: HTMLSlotElement;\n\n protected isDraggingWithButtons: boolean = false; \n \n private isDownWithButtons: boolean = false;\n private startXWithButtons: number = 0;\n private scrollLeftPositionWithButtons: number = 0;\n private isScrollingByButton: boolean = false; \n\n private isDownDrag: boolean = false;\n private prevXDrag: number = 0;\n\n protected isDraggingDrag: boolean = false; \n protected scrollLeftDrag: number = 0;\n \n private observer: MutationObserver | null = null;\n private scrollTimeout: number | null = null; \n \n private autoPlayTimer: number | null = null;\n\n private handleResize: () => void = () => {}; \n\n private readonly DESKTOP_GAP: number = 40; // Gap para > 940px\n private readonly TABLET_GAP: number = 24; // Gap para >= 501 & <= 940px\n private readonly MOBILE_GAP: number = 24; // Gap para <= 500px\n \n constructor() {\n super();\n\n // Bindings para Lógica de Botones\n this.handleMouseDownWithButtons = this.handleMouseDownWithButtons.bind( this );\n this.handleMouseLeaveWithButtons = this.handleMouseLeaveWithButtons.bind( this );\n this.handleMouseUpWithButtons = this.handleMouseUpWithButtons.bind( this );\n this.handleMouseMoveWithButtons = this.handleMouseMoveWithButtons.bind( this );\n this.handleScrollWithButtons = this.handleScrollWithButtons.bind( this );\n \n // Bindings para Lógica de Arrastre\n this.handleMouseDownDrag = this.handleMouseDownDrag.bind( this );\n this.handleMouseLeaveDrag = this.handleMouseLeaveDrag.bind( this );\n this.handleMouseUpDrag = this.handleMouseUpDrag.bind( this );\n this.handleMouseMoveDrag = this.handleMouseMoveDrag.bind( this );\n\n this.handleResize = this.resizeHandler.bind( this );\n }\n\n static styles = css`\n :host {\n display: block;\n width: 100%;\n overflow: hidden;\n user-select: none;\n position: relative;\n\n --nav-width: 112px; \n --carousel-cards-gap: 24px;\n }\n\n .carousel-wrapper {\n display: flex;\n gap: var( --carousel-cards-gap );\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n scroll-snap-type: x mandatory;\n\n scroll-padding-left: 25px; \n padding-right: 0; \n padding-left: 0;\n }\n\n .carousel-wrapper.not-ininite-scroll-partial {\n scroll-padding-left: var( --nav-width );\n padding-right: 0; \n }\n \n .carousel-wrapper::-webkit-scrollbar { \n display: none; \n }\n\n .carousel-card-item { \n flex-shrink: 0; \n scroll-snap-align: start;\n }\n\n .nav-button {\n width: var( --nav-width ); \n display: flex; \n align-items: center; \n justify-content: center; \n position: absolute; \n top: 0;\n height: 100%;\n border: none; \n background-color: rgba( 15, 25, 65, 0.7 ); \n cursor: pointer;\n z-index: 10; \n transition: opacity 0.3s ease, background-color 0.3s ease;\n }\n\n .nav-button:hover, .nav-button:active  { \n background-color: rgba( 15, 25, 65, 0.7 ); \n }\n \n .nav-button.prev { \n left: 0; \n }\n \n .nav-button.next { \n right: 0; \n }\n \n .nav-button.hidden { \n opacity: 0; \n pointer-events: none; \n }\n \n .nav-button-inner {\n width: 48px; \n height: 48px; \n border-radius: 50%; \n display: flex; \n justify-content: center;\n align-items: center; \n background-color: transparent; \n transition: background-color 0.3s ease;\n }\n \n .nav-button:hover .nav-button-inner { \n background-color: rgba( 0, 215, 255, 1 ); \n }\n \n .nav-button:hover .nav-button-inner:active, .nav-button:active .nav-button-inner { \n background-color: rgba( 0, 194, 230, 1 ); \n }\n \n .nav-button-inner randstad-icon { \n width: 32px; \n height: 32px; \n --icon-color: white; \n transition: --icon-color 0.3s ease;\n }\n\n .nav-button:hover .nav-button-inner randstad-icon { \n --icon-color: rgba( 15, 25, 65, 1 ); \n }\n \n .nav-button:hover .nav-button-inner:active randstad-icon { \n --icon-color: rgba( 15, 25, 65, 1 ); \n }\n \n .carousel-wrapper.drag-mode {\n scroll-snap-type: none; \n\n padding-right: 25px !important; \n padding-left: 25px !important;\n }\n\n .carousel-wrapper.drag-mode.not-ininite-scroll-partial {\n scroll-snap-type: none; \n scroll-padding-left: 0 !important; \n }\n \n .carousel-wrapper.drag-mode:hover {\n cursor: grab;\n }\n\n .carousel-wrapper.drag-mode.active {\n cursor: grabbing;\n }\n\n .dynamic-width-mode, .static-width-mode {\n padding-right: 15%;\n scroll-padding-left: var( --nav-width );\n }\n \n .dynamic-width-mode .carousel-card-item {\n width: 85%;\n }\n\n @media ( min-width: 941px ) {\n .carousel-wrapper { \n gap: var( --carousel-cards-gap );\n scroll-padding-left: 100px;\n scroll-padding-right: 100px;\n }\n\n .carousel-wrapper.not-ininite-scroll-partial {\n gap: var( --carousel-cards-gap );\n scroll-padding-left: 0;\n scroll-padding-right: 0;\n }\n\n .static-width-mode.carousel-wrapper, .dynamic-width-mode.carousel-wrapper { \n gap: var( --carousel-cards-gap ); \n padding-right: 100px !important; \n padding-left: 100px !important; \n }\n\n .static-width-mode.carousel-wrapper.not-ininite-scroll-partial,.dynamic-width-mode.carousel-wrapper.not-ininite-scroll-partial { \n gap: var( --carousel-cards-gap ); \n padding-right: 0 !important;\n padding-left: 0 !important;\n }\n\n .carousel-wrapper.drag-mode {\n padding-left: 100px !important; \n padding-right: 100px !important; \n }\n\n .carousel-wrapper.drag-mode.not-ininite-scroll-partial {\n padding-right: 0 !important; \n padding-left: 0 !important; \n }\n \n .dynamic-width-mode .carousel-card-item {\n width: calc( ( 100% - ( 2 * var( --carousel-cards-gap ) ) + 100px ) / 3 );  \n }\n\n .dynamic-width-mode.not-ininite-scroll-partial .carousel-card-item {\n width: calc( ( 100% - ( 2 * var( --carousel-cards-gap ) ) ) / 3 );  \n }\n }\n\n @media ( min-width: 501px ) and ( max-width: 940px ) {\n .nav-button { \n /* Se ocultan en modo tablet. Se mantiene lógica por un posible futuro fix. */\n display: none; \n }\n \n .carousel-wrapper {\n gap: var( --carousel-cards-gap );\n scroll-padding-left: 50px !important; \n padding-right: var( --nav-width ) !important;\n }\n\n .carousel-wrapper.not-ininite-scroll-partial {\n scroll-padding-left: 0 !important; \n }\n\n .carousel-wrapper.drag-mode {\n padding-left: 50px !important; \n padding-right: var( --carousel-cards-gap ) !important; \n }\n\n .carousel-wrapper.drag-mode.not-ininite-scroll-partial {\n padding-right: 0 !important; \n padding-left: 0 !important; \n }\n\n .static-width-mode.carousel-wrapper, .dynamic-width-mode.carousel-wrapper { \n gap: var( --carousel-cards-gap );\n padding-left: 50px !important; \n padding-right: var( --carousel-cards-gap ) !important;\n }\n\n .static-width-mode.carousel-wrapper.not-ininite-scroll-partial, .dynamic-width-mode.carousel-wrapper.not-ininite-scroll-partial { \n gap: var( --carousel-cards-gap );\n padding-left: 0 !important; \n padding-right: 0 !important;\n }\n \n .static-width-mode:not(.drag-mode).carousel-wrapper, .dynamic-width-mode:not(.drag-mode).carousel-wrapper, .static-width-mode:not(.drag-mode).carousel-wrapper.not-ininite-scroll-partial, .dynamic-width-mode:not(.drag-mode).carousel-wrapper.not-ininite-scroll-partial {\n gap: var( --carousel-cards-gap );\n }\n \n .dynamic-width-mode .carousel-card-item { \n width: calc( 100% - var( --nav-width ) - var( --carousel-cards-gap ) - 50px ); /* Ancho ajustado para nav-mode */\n }\n \n .dynamic-width-mode.not-ininite-scroll-partial .carousel-card-item {\n width: calc( 100% - var( --nav-width ) - var( --carousel-cards-gap ) - 50px * 2 ); /* Ancho ajustado para nav-mode */ \n } \n\n .dynamic-width-mode.drag-mode .carousel-card-item {\n width: 85%;\n }\n }\n \n @media ( max-width: 500px ) {\n .nav-button { \n display: none; \n }\n\n .carousel-wrapper {\n scroll-padding-left: 25px !important;\n padding-right: 15%;\n }\n\n .carousel-wrapper.not-ininite-scroll-partial {\n scroll-padding-left: 0 !important;\n }\n\n .static-width-mode.carousel-wrapper, .dynamic-width-mode.carousel-wrapper {\n gap: var( --carousel-cards-gap );\n padding-left: 25px !important; \n padding-right: var( --carousel-cards-gap ) !important;\n }\n\n .static-width-mode.carousel-wrapper.not-ininite-scroll-partial, .dynamic-width-mode.carousel-wrapper.not-ininite-scroll-partial {\n gap: var( --carousel-cards-gap );\n padding-left: 0 !important; \n padding-right: 0 !important;\n }\n \n .dynamic-width-mode .carousel-card-item {\n width: 85%;\n }\n\n .static-width-mode.drag-mode.carousel-wrapper, .dynamic-width-mode.drag-mode.carousel-wrapper {\n padding-left: 25px !important;\n padding-right: var( --carousel-cards-gap ) !important; \n }\n\n .static-width-mode.drag-mode.carousel-wrapper.not-ininite-scroll-partial, .dynamic-width-mode.drag-mode.carousel-wrapper.not-ininite-scroll-partial {\n padding-right: 0 !important; \n padding-left: 0 !important;\n }\n\n .static-width-mode:not(.drag-mode).carousel-wrapper.not-ininite-scroll-partial, .dynamic-width-mode:not(.drag-mode).carousel-wrapper.not-ininite-scroll-partial {\n gap: var( --carousel-cards-gap );\n padding-right: 0 !important; \n }\n }\n `;\n\n /*\n * Obtiene el valor del gap basado en el viewport.\n */\n private getCarouselGap(): number {\n let gapValue: number;\n const width: number = window.innerWidth;\n\n if ( width >= 941 ) gapValue = this.DESKTOP_GAP;\n else if ( width >= 501 ) gapValue = this.TABLET_GAP;\n else gapValue = this.MOBILE_GAP;\n\n return gapValue;\n }\n\n /*\n * Determina el valor del gap basado en el viewport y lo aplica a la variable CSS.\n */\n private setCarouselGap() {\n // Aplica el valor a la variable CSS del :host\n this.style.setProperty( '--carousel-cards-gap', `${ this.getCarouselGap() }px` );\n }\n\n private getNavWidth(): number {\n const navWidth: number = this.navWidth ?? 112;\n return navWidth;\n }\n\n /*\n * Calcula el padding horizontal que debe compensarse en los cálculos de scroll.\n * Esto asegura que el \"inicio\" visible del carrusel esté correctamente identificado.\n */\n private getInitialPadding(): number {\n if ( !this.slider || this.showNavButtons === false ) return 0;\n\n const computedStyle: CSSStyleDeclaration = window.getComputedStyle( this.slider );\n \n // Cuando no estamos en modo DynamicWidth, scroll-padding-left es el valor de la media query (e.g. 25px, 50px, 100px).\n // Cuando estamos en DynamicWidth, scroll-padding-left es --nav-width o el valor de la media query.\n const scrollPaddingLeft: string = computedStyle.getPropertyValue( 'scroll-padding-left' );\n \n // Retorna el valor en pixeles del scroll-padding-left para compensación.\n return parseFloat( scrollPaddingLeft ) || 0;\n }\n\n protected updated( changedProperties: Map<string | number | symbol, any> ) {\n super.updated( changedProperties );\n\n if ( changedProperties.has( 'navWidth' ) ) \n this.style.setProperty( '--nav-width', `${ this.getNavWidth() }px` );\n }\n\n public firstUpdated() {\n if ( !this.slider ) return; \n\n this.setCarouselGap();\n this.initAutoPlayConfig();\n \n if ( this.cardWidth || this.isDynamicWidth === false ) \n this.isDynamicWidth = false;\n \n else if ( !this.hasAttribute( 'isdynamicwidth' ) || this.isDynamicWidth === undefined )\n this.isDynamicWidth = true;\n \n this.initNavModeConfig();\n\n this.slider.addEventListener( 'dragstart', ( e ) => e.preventDefault() );\n if ( this.cards.length === 0 && this.slotElement ) this.loadMutationObserver();\n }\n\n private initAutoPlayConfig() {\n if ( this.autoPlayDelayMs > 0 ) {\n this.isDynamicWidth = true;\n this.showNavButtons = false;\n }\n\n if ( this.autoPlayDelayMs > 0 && this.slider ) {\n // 1. Detener al entrar con el ratón\n this.slider.addEventListener( 'mouseenter', this.handleMouseEnter.bind( this ) ); \n \n // 2. Reanudar al salir con el ratón (si quieres que se reanude)\n this.slider.addEventListener( 'mouseleave', this.handleMouseLeaveDrag.bind( this ) );\n \n // 3. Detener al tocar (para móviles/tablets)\n this.slider.addEventListener( 'touchstart', this.handleMouseEnter.bind( this ) ); \n \n // 4. Reanudar al soltar el toque\n this.slider.addEventListener( 'touchend', this.handleMouseLeaveDrag.bind( this ) ); \n }\n }\n\n private initNavModeConfig() {\n const isNavMode: boolean = this.showNavButtons !== false;\n\n if ( isNavMode ) {\n // Asignar handlers para modo Botones/Scroll-snap\n this.slider.addEventListener( 'mousedown', this.handleMouseDownWithButtons );\n this.slider.addEventListener( 'mouseleave', this.handleMouseLeaveWithButtons );\n this.slider.addEventListener( 'mouseup', this.handleMouseUpWithButtons );\n this.slider.addEventListener( 'mousemove', this.handleMouseMoveWithButtons );\n this.slider.addEventListener( 'scroll', this.handleScrollWithButtons );\n \n window.requestAnimationFrame( () => this.handleScrollWithButtons() );\n\n this.slider.addEventListener( 'mouseenter', this.handleMouseEnter.bind( this ) ); \n } else {\n // Asignar handlers para modo Arrastre Puro (drag-mode)\n\n this.slider.classList.add( 'drag-mode' ); \n\n this.slider.addEventListener( 'mousedown', this.handleMouseDownDrag );\n this.slider.addEventListener( 'mouseleave', this.handleMouseLeaveDrag );\n this.slider.addEventListener( 'mouseup', this.handleMouseUpDrag );\n this.slider.addEventListener( 'mousemove', this.handleMouseMoveDrag );\n\n this.slider.addEventListener( 'mouseenter', this.handleMouseEnter.bind( this ) ); \n }\n }\n\n public connectedCallback() {\n super.connectedCallback();\n window.addEventListener( 'resize', this.handleResize );\n\n if( this.autoPlayDelayMs > 0 )\n setTimeout( () => this.startAutoPlay() , 100 );\n }\n \n public disconnectedCallback() {\n super.disconnectedCallback();\n if( !this.slider ) return;\n \n this.slider.removeEventListener( 'mousedown', this.handleMouseDownWithButtons );\n this.slider.removeEventListener( 'mouseleave', this.handleMouseLeaveWithButtons );\n this.slider.removeEventListener( 'mouseup', this.handleMouseUpWithButtons );\n this.slider.removeEventListener( 'mousemove', this.handleMouseMoveWithButtons );\n this.slider.removeEventListener( 'scroll', this.handleScrollWithButtons ); \n \n this.slider.removeEventListener( 'mousedown', this.handleMouseDownDrag );\n this.slider.removeEventListener( 'mouseleave', this.handleMouseLeaveDrag );\n this.slider.removeEventListener( 'mouseup', this.handleMouseUpDrag );\n this.slider.removeEventListener( 'mousemove', this.handleMouseMoveDrag );\n \n if ( this.scrollTimeout !== null ) window.clearTimeout( this.scrollTimeout );\n if ( this.observer ) this.observer.disconnect();\n\n this.stopAutoPlay();\n }\n\n /*\n * Handler que se ejecuta al redimensionar la ventana.\n * Llama a requestUpdate() para re-evaluar getCardDimensionValue en renderContent().\n */\n private resizeHandler() {\n // Forzamos una actualización para que se re-evalúen las propiedades\n // cardWidthValue y cardHeightValue en renderContent().\n this.requestUpdate(); \n this.setCarouselGap();\n }\n\n private loadMutationObserver() {\n this.observer = new MutationObserver( ( mutations, observer ) => {\n const addedNodes: boolean = mutations.some( m => m.addedNodes.length > 0 );\n if ( !addedNodes ) return;\n \n setTimeout( () => {\n this.handleScrollWithButtons();\n if ( this.slider.scrollWidth > this.slider.clientWidth ) observer.disconnect();\n }, 50); \n });\n\n this.observer.observe( this, { childList: true, subtree: true } ); \n }\n\n private handleMouseEnter() {\n this.stopAutoPlay();\n }\n\n private startAutoPlay() {\n if ( this.autoPlayDelayMs <= 0 || !this.slider || this.autoPlayTimer !== null ) return; \n\n window.setTimeout( () => {\n if ( this.autoPlayTimer !== null ) return;\n this.autoPlayTimer = window.setInterval( () => this.scrollToNext( new Event( 'autoplay' ) ), this.autoPlayDelayMs );\n }, 100 );\n }\n\n private stopAutoPlay() {\n if ( this.autoPlayTimer !== null ) {\n window.clearInterval( this.autoPlayTimer );\n this.autoPlayTimer = null;\n }\n }\n\n private handleMouseDownDrag( event: MouseEvent ) { \n if ( !this.slider || event.button !== 0 ) return;\n\n if ( this.autoPlayDelayMs > 0 ) this.stopAutoPlay();\n\n this.isDownDrag = true;\n this.isDraggingDrag = false;\n\n this.slider.classList.add( 'active' );\n this.slider.style.scrollBehavior = 'auto';\n\n this.prevXDrag = event.pageX; \n this.scrollLeftDrag = this.slider.scrollLeft;\n }\n\n private handleMouseLeaveDrag() { \n if ( !this.slider ) return;\n\n this.isDownDrag = false;\n this.isDraggingDrag = false;\n\n this.slider.classList.remove( 'active' );\n\n if ( this.autoPlayDelayMs > 0 ) {\n // Usamos un pequeño retraso para evitar reiniciar el timer inmediatamente\n // si el usuario sale y vuelve a entrar muy rápido.\n window.setTimeout( () => {\n this.startAutoPlay();\n }, 500); \n }\n }\n\n private handleMouseUpDrag() { \n if ( !this.slider ) return;\n\n this.isDownDrag = false;\n this.isDraggingDrag = false;\n\n this.slider.classList.remove( 'active' );\n }\n\n private handleMouseMoveDrag( event: MouseEvent ) { \n event.preventDefault();\n\n if ( !this.isDownDrag || !this.slider ) return;\n\n this.isDraggingDrag = true;\n \n const dx: number = event.pageX - this.prevXDrag; \n this.slider.scrollLeft -= dx * 1.5; \n\n this.prevXDrag = event.pageX; \n }\n\n private shouldPreventDragWithButtons(): boolean {\n if ( !this.slider ) return false;\n\n const maxScrollLeft: number = this.slider.scrollWidth - this.slider.clientWidth;\n const tolerance: number = 1;\n\n return maxScrollLeft > tolerance;\n }\n\n private handleMouseDownWithButtons( event: MouseEvent ) {\n if ( !this.slider || event.button !== 0 ) return;\n if ( this.shouldPreventDragWithButtons() ) return; \n\n this.isDownWithButtons = true;\n this.isDraggingWithButtons = false;\n\n this.slider.classList.add( 'active' );\n this.slider.style.scrollBehavior = 'auto'; \n\n this.startXWithButtons = event.pageX;\n this.scrollLeftPositionWithButtons = this.slider.scrollLeft;\n }\n\n private handleMouseMoveWithButtons( event: MouseEvent ) {\n event.preventDefault();\n\n if ( !this.isDownWithButtons || !this.slider ) return;\n if ( this.shouldPreventDragWithButtons() ) return;\n\n this.isDraggingWithButtons = true;\n \n const walk: number = ( event.pageX - this.startXWithButtons ) * 1.5;\n this.slider.scrollLeft = this.scrollLeftPositionWithButtons - walk;\n }\n\n private handleMouseUpWithButtons() {\n if ( !this.slider ) return;\n\n this.isDownWithButtons = false;\n this.isDraggingWithButtons = false;\n\n this.slider.classList.remove( 'active' );\n }\n\n private handleMouseLeaveWithButtons() {\n if ( !this.isDownWithButtons ) return;\n\n this.isDownWithButtons = false;\n this.isDraggingWithButtons = false;\n\n this.slider.classList.remove( 'active' );\n\n if ( this.autoPlayDelayMs > 0 ) this.startAutoPlay();\n }\n\n private handleScrollWithButtons() {\n if ( !this.slider ) return;\n\n if ( this.isScrollingByButton ) {\n // El scroll snap se reactivará al final del método scrollToNext/Prev.\n const maxScrollLeft: number = this.slider.scrollWidth - this.slider.clientWidth;\n const currentScroll: number = this.slider.scrollLeft;\n const TOLERANCE: number = 10; \n\n if ( maxScrollLeft <= TOLERANCE ) {\n this.showPrevButton = false;\n this.showNextButton = false;\n\n return;\n }\n\n this.showPrevButton = currentScroll > TOLERANCE;\n this.showNextButton = currentScroll < ( maxScrollLeft - TOLERANCE );\n \n return;\n }\n\n // Lógica de Timeout (solo para scroll manual)\n if ( this.scrollTimeout !== null ) window.clearTimeout( this.scrollTimeout );\n\n this.scrollTimeout = window.setTimeout( () => {\n // Dejamos el scrollSnapType en none para evitar saltos\n this.slider.style.scrollSnapType = 'none'; \n this.scrollTimeout = null;\n }, 100 );\n\n // Lógica de botones (actualiza en cualquier scroll)\n const maxScrollLeft: number = this.slider.scrollWidth - this.slider.clientWidth;\n const currentScroll: number = this.slider.scrollLeft;\n \n const TOLERANCE: number = 10; \n\n if ( maxScrollLeft <= TOLERANCE ) {\n this.showPrevButton = false;\n this.showNextButton = false;\n\n return;\n }\n\n this.showPrevButton = currentScroll > TOLERANCE;\n this.showNextButton = currentScroll < ( maxScrollLeft - TOLERANCE );\n }\n\n private getNavButtonWidth(): number {\n if ( this.showNavButtons === false ) return 0;\n if ( !this.isDynamicWidth ) return this.getNavWidth();\n \n // Lógica para el modo dinámico: Ocultar botones o cambiar scroll-padding\n const isMobile: boolean = window.matchMedia( \"( max-width: 500px )\" ).matches;\n \n // En modo dinámico, los nav buttons están ocultos en móvil no necesita padding extra.\n if ( isMobile ) return 0;\n\n return this.getNavWidth(); \n }\n\n protected getScrollAmount(): number {\n let firstItem: Element | null = null;\n\n if ( this.cards.length > 0 ) {\n firstItem = this.slider.querySelector( '.carousel-card-item' );\n } else if ( this.slotElement ) {\n const assignedNodes: Element[] = this.slotElement.assignedElements( { flatten: true } );\n firstItem = assignedNodes.find( node => node.classList.contains( 'carousel-card-item' )) || null;\n }\n\n if ( !firstItem || firstItem.getBoundingClientRect().width === 0 ) {\n const fixedWidth: number = parseFloat( this.cardWidth.replace( 'px', '' ) ) || 280; \n const computedStyle: CSSStyleDeclaration = window.getComputedStyle( this.slider );\n const gapString: string = computedStyle.getPropertyValue( 'gap' ) || computedStyle.getPropertyValue( 'column-gap' );\n const gap: number = parseFloat( gapString ) || 0;\n\n return fixedWidth + gap;\n }\n \n const cardWidth: number = firstItem.getBoundingClientRect().width;\n const computedStyle: CSSStyleDeclaration = window.getComputedStyle( this.slider );\n const gapString: string = computedStyle.getPropertyValue( 'gap' ) || computedStyle.getPropertyValue( 'column-gap' );\n const gap: number = parseFloat( gapString ) || 0;\n\n return cardWidth + gap;\n }\n\n private getCarouselItems(): Element[] {\n if ( this.cards.length > 0 ) {\n if ( this.slider ) return Array.from( this.slider.querySelectorAll( '.carousel-card-item' ) );\n return [];\n } else if ( this.slotElement ) {\n return this.slotElement.assignedElements( { flatten: true } );\n }\n\n return [];\n }\n\n private getCardsToCenterCount(): number {\n if ( !this.isDynamicWidth ) return 1; \n\n // Desktop: Queremos centrar 2 tarjetas (visibles 3, cortadas a los lados)\n if ( window.matchMedia( \"( min-width: 941px )\" ).matches ) return 2; \n \n // Tablet/Móvil: Centra 1 card\n return 1;\n }\n\n private calculateTargetIndex( currentScrollLeft: number, isNext: boolean, children: Element[] ): number {\n const cardsToCenter: number = this.getCardsToCenterCount();\n if ( children.length === 0 || cardsToCenter === 0 ) return -1;\n\n const TOLERANCE: number = 5; // Tolerancia para la comparación de scroll\n let viewStart: number;\n viewStart = currentScrollLeft + TOLERANCE; \n \n let currentFirstVisibleIndex: number = 0;\n\n for ( let i = 0; i < children.length; i++ ) {\n const card: HTMLElement = children[ i ] as HTMLElement;\n // Buscamos la primera tarjeta cuyo inicio (offsetLeft) exceda la posición de scroll\n if ( card.offsetLeft >= viewStart ) {\n currentFirstVisibleIndex = i;\n break;\n }\n }\n \n if ( this.isInfiniteScrollPartial ) {\n const initialPadding: number = this.getInitialPadding();\n \n if ( currentFirstVisibleIndex === 0 && currentScrollLeft > initialPadding ) \n currentFirstVisibleIndex = children.length - cardsToCenter;\n }\n\n // Si el scroll está en 0 o muy cerca, y es 'Prev', el objetivo es 0.\n if ( !isNext && currentScrollLeft < TOLERANCE ) return 0; \n \n\n let targetIndex: number;\n\n const step: number = 1; \n const maxStartIndex: number = children.length - cardsToCenter; \n const isDesktopMode: boolean = cardsToCenter === 2;\n\n if ( isNext ) {\n const computedSpaces: number = !this.isInfiniteScrollPartial ? this.getNavButtonWidth() : this.getInitialPadding();\n const START_TOLERANCE: number = computedSpaces;\n const isInitialPosition: boolean = currentScrollLeft < START_TOLERANCE + TOLERANCE;\n\n if ( isInitialPosition ) {\n // Primer movimiento: salta al punto de inicio de la segunda o tercera tarjeta.\n if ( isDesktopMode ) targetIndex = 2; // Desktop\n else targetIndex = 1; // Tablet/Móvil\n } else {\n // Movimientos subsiguientes: avanza un paso.\n targetIndex = currentFirstVisibleIndex + step;\n }\n\n targetIndex = Math.min( targetIndex, maxStartIndex );\n } else { \n if ( isDesktopMode ) {\n // Desktop: si ya estás cerca del inicio (<= 2), vuelve a 0.\n if ( currentFirstVisibleIndex <= 2 ) targetIndex = 0; \n else targetIndex = currentFirstVisibleIndex - 1;\n } else {\n // Tablet/Móvil: retrocede un paso.\n targetIndex = currentFirstVisibleIndex - step;\n }\n \n targetIndex = Math.max( 0, targetIndex );\n }\n\n return targetIndex;\n }\n\n private getScrollLeftToCenter( targetIndex: number, children: Element[] ): number {\n const cardsToCenter: number = this.getCardsToCenterCount();\n if ( targetIndex < 0 || targetIndex >= children.length || cardsToCenter === 0 ) return this.slider.scrollLeft;\n \n const firstCard: HTMLElement = children[ targetIndex ] as HTMLElement;\n const cardRect: DOMRect = firstCard.getBoundingClientRect();\n const cardWidth = cardRect.width;\n \n if ( cardWidth === 0 ) return this.slider.scrollLeft; \n \n const computedStyle: CSSStyleDeclaration = window.getComputedStyle( this.slider );\n const gapString: string = computedStyle.getPropertyValue( 'gap' ) || computedStyle.getPropertyValue( 'column-gap' );\n const gap: number = parseFloat( gapString ) || 0;\n \n // Si cardsToCenter es 3, hay 2 gaps: (W*3) + (G*2)\n const groupWidth: number = cardWidth * cardsToCenter + gap * ( cardsToCenter - 1 ); \n \n const cardGroupOffsetLeft: number = firstCard.offsetLeft;\n const centerOfViewport: number = this.slider.clientWidth / 2;\n \n // Posición absoluta del centro del grupo de tarjetas\n const centerOfGroup: number = cardGroupOffsetLeft + groupWidth / 2;\n \n // El scrollLeft necesario para que el centro del grupo coincida con el centro del viewport\n let targetScrollLeft: number = centerOfGroup - centerOfViewport;\n \n // El `offsetLeft` de la tarjeta ya tiene en cuenta el `scroll-padding-left` (el ancho del botón).\n // Si la tarjeta está al inicio (index 0), necesitamos asegurar que no haya scroll negativo.\n \n // Ajuste de límites (esencial para evitar overshoot)\n targetScrollLeft = Math.max( 0, targetScrollLeft );\n\n const maxScrollLeft: number = this.slider.scrollWidth - this.slider.clientWidth;\n targetScrollLeft = Math.min( targetScrollLeft, maxScrollLeft );\n \n return targetScrollLeft;\n }\n\n private scrollToPrev( event: Event ) {\n const isAutoPlayEvent: boolean = event.type === 'autoplay';\n\n if ( !isAutoPlayEvent ) {\n event.preventDefault();\n event.stopPropagation();\n }\n \n if ( !this.slider ) return;\n\n const children: Element[] = this.getCarouselItems();\n if ( children.length === 0 ) return;\n\n let targetScrollLeft: number;\n \n if ( this.isDynamicWidth && window.matchMedia( \"( min-width: 501px )\" ).matches ) {\n const currentScrollLeft: number = this.slider.scrollLeft;\n \n const targetIndex: number = this.calculateTargetIndex( currentScrollLeft, false, children );\n targetScrollLeft = this.getScrollLeftToCenter( targetIndex, children );\n } else {\n // Lógica de snap-to-start (por defecto, no dinámico o móvil)\n const currentScrollLeft: number = this.slider.scrollLeft;\n targetScrollLeft = 0; \n\n const initialPadding: number = this.getInitialPadding();\n const navButtonWidth: number = this.getNavButtonWidth();\n const computedSpaces: number = !this.isInfiniteScrollPartial ? navButtonWidth : initialPadding;\n \n // Buscar la tarjeta anterior\n for ( let i = children.length - 1; i >= 0; i-- ) {\n const card: HTMLElement = children[ i ] as HTMLElement;\n\n if ( Math.round( card.offsetLeft - computedSpaces ) < Math.round( currentScrollLeft ) - 1 ) {\n targetScrollLeft = card.offsetLeft - computedSpaces; \n break; \n }\n }\n }\n \n this.slider.style.scrollSnapType = 'none'; \n this.isScrollingByButton = true;\n \n this.slider.scrollTo( { left: targetScrollLeft, behavior: 'smooth' } ); \n \n window.setTimeout( () => {\n this.isScrollingByButton = false;\n this.handleScrollWithButtons(); \n }, 350 ); \n }\n\n private scrollToNext( event: Event ) {\n const isAutoPlayEvent: boolean = event.type === 'autoplay';\n\n if ( !isAutoPlayEvent ) {\n event.preventDefault();\n event.stopPropagation();\n }\n \n if ( !this.slider ) return;\n \n const children = this.getCarouselItems();\n if ( children.length === 0 ) return;\n\n let targetScrollLeft: number;\n\n if ( this.isDynamicWidth && window.matchMedia( \"( min-width: 501px )\" ).matches ) {\n const currentScrollLeft: number = this.slider.scrollLeft;\n \n const targetIndex: number = this.calculateTargetIndex( currentScrollLeft, true, children );\n targetScrollLeft = this.getScrollLeftToCenter( targetIndex, children );\n } else {\n // Lógica de snap-to-start (por defecto, no dinámico o móvil)\n const currentScrollLeft: number = this.slider.scrollLeft;\n targetScrollLeft = -1;\n\n const initialPadding: number = this.getInitialPadding();\n const navButtonWidth: number = this.getNavButtonWidth();\n const computedSpaces: number = !this.isInfiniteScrollPartial ? navButtonWidth : initialPadding;\n \n for ( let i = 0; i < children.length; i++ ) {\n const card: HTMLElement = children[ i ] as HTMLElement;\n \n if ( Math.round( card.offsetLeft - computedSpaces ) > Math.round( currentScrollLeft ) + 1 ) {\n targetScrollLeft = card.offsetLeft - computedSpaces;\n break; \n }\n }\n\n if ( targetScrollLeft === -1 ) {\n const maxScrollLeft = this.slider.scrollWidth - this.slider.clientWidth;\n targetScrollLeft = maxScrollLeft;\n }\n }\n\n const maxScrollLeft: number = this.slider.scrollWidth - this.slider.clientWidth;\n const currentScrollLeft: number = this.slider.scrollLeft;\n \n if ( isAutoPlayEvent && Math.round( currentScrollLeft ) >= Math.round( maxScrollLeft ) ) {\n\n // 1. Salto instantáneo a 0 (inicio)\n this.slider.style.scrollBehavior = 'auto'; \n this.slider.scrollTo( { left: 0, behavior: 'auto' } ); \n \n // 2. Restaurar comportamiento 'smooth' y salir\n this.slider.style.scrollBehavior = 'smooth';\n \n // No ejecutamos el scroll final con 'smooth', solo restauramos\n // el comportamiento para el siguiente ciclo de autoplay.\n return; \n }\n \n this.slider.style.scrollSnapType = 'none'; \n this.isScrollingByButton = true;\n \n this.slider.scrollTo( { left: targetScrollLeft, behavior: 'smooth' } );\n\n window.setTimeout( () => {\n this.isScrollingByButton = false;\n this.handleScrollWithButtons(); \n }, 350 ); \n }\n\n /*\n * Obtiene el valor final de la dimensión de la tarjeta, limitándolo al tamaño del viewport\n * y compensando el espacio de los botones de navegación si es 'width'.\n \n @param dimension Indica si se está calculando 'width' o 'height'.\n @param value El valor de la propiedad ( cardWidth o cardHeight ).\n\n @returns El valor original, o el valor limitado en 'px' si excede el viewport.\n */\n protected getCardCustomDimensionValue( dimension: 'width' | 'height', value: string ): string | undefined {\n if ( dimension === 'width' && this.isDynamicWidth ) return undefined;\n\n if ( dimension === 'width' ) {\n let computedWidthLimit: number = window.innerWidth;\n \n // 1. Compensación de Botones\n const navButtonsWidth: number = this.getNavButtonWidth() * 2; \n computedWidthLimit -= navButtonsWidth;\n\n // 2. Compensación de Gap\n let gapToSubtract: number = this.getCarouselGap();\n computedWidthLimit -= gapToSubtract; \n \n // Caso de ancho estático (isDynamicWidth === false) sin cardWidth definido.\n // Devolvemos el ancho máximo compensado como valor por defecto.\n if ( !value ) return `${ computedWidthLimit }px`;\n\n const valueInPxMatch: RegExpMatchArray | null = value.match( /^(\\d+)px$/ );\n \n // Valor NO es 'px' (ej. '100vw', '85%'). \n // Forzamos el uso del ancho máximo compensado en píxeles.\n if ( !valueInPxMatch ) return `${ computedWidthLimit }px`;\n \n // El valor ES en 'px'.\n const dimensionPx: number = parseFloat( valueInPxMatch[ 1 ] );\n \n // Si la dimensión de la tarjeta (en PX) excede el máximo disponible, la limitamos.\n if ( dimensionPx > computedWidthLimit ) return `${ computedWidthLimit }px`;\n \n // Si no excede, devuelve el valor original.\n return value;\n } else {\n // En este caso, no hay compensación de botones/gap.\n const maxDimension: number = window.innerHeight;\n \n // La altura no tiene un valor por defecto forzado.\n if ( !value ) return undefined; \n\n // Valor relativo o no-px, se deja pasar.\n const valueInPxMatch: RegExpMatchArray | null = value.match( /^(\\d+)px$/ );\n if ( !valueInPxMatch ) return value;\n\n const dimensionPx: number = parseFloat( valueInPxMatch[ 1 ] );\n \n // Si la dimensión de la tarjeta excede el máximo disponible, la limitamos.\n if ( dimensionPx > maxDimension ) return `${ maxDimension }px`;\n \n return value;\n }\n }\n\n private renderNavButtons() {\n if ( this.showNavButtons === false ) return html``;\n \n const prevClasses = {\n 'nav-button': true, \n 'prev': true, \n 'hidden': !this.showPrevButton\n };\n\n const nextClasses = {\n 'nav-button': true, \n 'next': true, \n 'hidden': !this.showNextButton\n };\n\n return html`\n <div class=\"nav-buttons-container\">\n <button \n class=${ classMap( prevClasses ) } \n @click=${ this.scrollToPrev }\n >\n <div class=\"nav-button-inner\">\n <randstad-icon name=\"arrow_prev\" size=\"32px\"></randstad-icon>\n </div>\n </button>\n \n <button \n class=${ classMap( nextClasses ) } \n @click=${ this.scrollToNext }\n >\n <div class=\"nav-button-inner\">\n <randstad-icon name=\"arrow_next\" size=\"32px\"></randstad-icon>\n </div>\n </button>\n </div>\n `;\n }\n\n private renderContent() {\n // Usamos el nuevo método para validar y compensar el ancho.\n const cardWidthValue: string | undefined = this.getCardCustomDimensionValue( 'width', this.cardWidth );\n \n // Usamos el nuevo método para validar el alto.\n const cardHeightValue: string | undefined = this.getCardCustomDimensionValue( 'height', this.cardHeight );\n\n if ( this.cards && this.cards.length > 0 ) {\n return this.cards.map( card => \n html`\n <div class=\"carousel-card-item\">\n <carousel-card\n .img=${ card.img } \n .name=${ card.name } \n .title=${ card.title }\n .description=${ card.description } \n .buttonLabel=${ card.buttonLabel }\n .cardId=${ card.cardId } \n .width=${ cardWidthValue } \n .height=${ cardHeightValue }\n .onClick=${ card.onClick }\n >\n </carousel-card>\n </div>\n `\n );\n } else {\n return html`<slot></slot>`;\n }\n }\n\n public render() {\n const isNavMode: boolean = this.showNavButtons !== false;\n const isIninitePartialMode: boolean = this.isInfiniteScrollPartial === false ? true : false; \n\n const wrapperClasses = {\n 'carousel-wrapper': true,\n 'drag-mode': !isNavMode, \n 'dynamic-width-mode': this.isDynamicWidth,\n 'static-width-mode': !this.isDynamicWidth,\n 'not-ininite-scroll-partial': isIninitePartialMode\n };\n\n return html`\n <div class=\"carousel-container\">\n <div class=${ classMap( wrapperClasses ) }>\n ${ this.renderContent() }\n </div>\n\n ${ this.renderNavButtons() }\n </div>\n `;\n }\n}","import { LitElement, html, css } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport './Icon';\n\nimport '../styles/buttons.css';\n\n@customElement('randstad-bubble')\nexport class RandstadBubble extends LitElement {\n @property({ type: String }) message = '';\n @property({ type: Number }) duration?: number;\n @property({ type: String }) position: 'top' | 'bottom' = 'top';\n @property({ type: String }) variant: 'bubble' | 'circle' = 'bubble';\n @property({ type: Boolean }) visible = true;\n @property({ type: String }) icon?: string;\n\n @property({ type: String }) arrowAlign = '15px';\n\n // Propiedades de personalización\n @property({ type: String }) backgroundColor?: string;\n @property({ type: String }) textColor?: string;\n @property({ type: String }) fontFamily?: string;\n\n // Propiedades de dimensión\n @property({ type: String }) width?: string;\n @property({ type: String }) height?: string;\n\n // Propiedades de posicionamiento absoluto\n @property({ type: String }) top?: string;\n @property({ type: String }) left?: string;\n\n @state() private isAnimating = false;\n private hideTimeout?: number;\n\n static styles = css`\n :host {\n display: inline-block;\n position: relative;\n --arrow-left: 15px;\n }\n\n .bubble {\n position: absolute;\n display: inline-flex;\n align-items: center;\n gap: 10px;\n box-sizing: border-box;\n z-index: 10;\n \n --bubble-bg: var(--bubble-background, #0F1941);\n --bubble-color: var(--bubble-text-color, #ffffff);\n --bubble-font: var(--bubble-font-family, 'Graphik', sans-serif);\n --bubble-arrow-size: 8px;\n \n background-color: var(--bubble-bg);\n color: var(--bubble-color);\n font-family: var(--bubble-font);\n \n width: var(--bubble-custom-width, auto);\n height: var(--bubble-custom-height, auto);\n \n font-weight: 400;\n font-size: 12px;\n line-height: 100%;\n padding: 12px 16px;\n border-radius: 6px;\n \n opacity: 0;\n visibility: hidden;\n transform: translateY(5px);\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n }\n\n .bubble.position-bottom {\n bottom: calc(100%);\n top: auto !important; \n }\n\n /* Estado cuando no debe existir en el layout */\n .bubble.hidden {\n display: none;\n }\n\n .bubble.visible {\n opacity: 1;\n visibility: visible;\n transform: translateY(0);\n }\n\n .bubble::after {\n content: '';\n position: absolute;\n width: 0;\n height: 0;\n border-style: solid;\n }\n\n /* Flecha arriba (el globo está abajo) */\n .bubble.position-top::after {\n top: calc(var(--bubble-arrow-size) * -1);\n left: var(--arrow-left);\n border-width: 0 var(--bubble-arrow-size) var(--bubble-arrow-size) var(--bubble-arrow-size);\n border-color: transparent transparent var(--bubble-bg) transparent;\n }\n\n /* Flecha abajo (el globo está arriba) */\n .bubble.position-bottom::after {\n bottom: calc(var(--bubble-arrow-size) * -1);\n left: var(--arrow-left);\n border-width: var(--bubble-arrow-size) var(--bubble-arrow-size) 0 var(--bubble-arrow-size);\n border-color: var(--bubble-bg) transparent transparent transparent;\n }\n\n .bubble.circle {\n border-radius: 50%;\n padding: 0;\n justify-content: center;\n min-width: 32px;\n min-height: 32px;\n }\n\n .bubble.circle::after { display: none; }\n\n .bubble-icon ::slotted(*) {\n width: 18px;\n height: 18px;\n display: block;\n }\n\n .bubble-message {\n max-width: 250px;\n word-wrap: break-word;\n }\n `;\n\n /**\n * Se ejecuta cuando el componente se desconecta del DOM.\n * Limpiamos el timer para evitar fugas de memoria y errores.\n */\n public disconnectedCallback(): void {\n super.disconnectedCallback();\n this.clearDurationTimer();\n }\n\n public updated(changedProperties: Map<string, unknown>): void {\n super.updated(changedProperties);\n if (changedProperties.has('visible')) {\n if (this.visible) {\n this.startDurationTimer();\n } else {\n this.clearDurationTimer();\n }\n }\n }\n\n private startDurationTimer(): void {\n this.clearDurationTimer();\n if (this.duration && this.duration > 0) {\n this.hideTimeout = window.setTimeout(() => this.hide(), this.duration);\n }\n }\n\n private clearDurationTimer(): void {\n if (this.hideTimeout) {\n window.clearTimeout(this.hideTimeout);\n this.hideTimeout = undefined;\n }\n }\n\n public show(): void { this.visible = true; }\n public hide(): void { this.visible = false; }\n\n public render() {\n const classes = {\n bubble: true,\n visible: this.visible,\n hidden: !this.visible,\n [`position-${this.position}`]: true,\n [this.variant]: true\n };\n\n const styles = [\n this.position !== 'bottom' && this.top ? `top: ${this.top}` : '',\n this.left ? `left: ${this.left}` : '',\n `--arrow-left: ${this.arrowAlign}`,\n this.width ? `--bubble-custom-width: ${this.width}` : '',\n this.height ? `--bubble-custom-height: ${this.height}` : '',\n this.backgroundColor ? `--bubble-background: ${this.backgroundColor}` : '',\n this.textColor ? `--bubble-text-color: ${this.textColor}` : '',\n this.fontFamily ? `--bubble-font-family: ${this.fontFamily}` : '',\n ].filter(Boolean).join('; ');\n\n return html`\n <div class=${classMap(classes)} style=${styles}>\n ${this.icon || this.variant === 'circle' ? html`\n <span class=\"bubble-icon\">\n ${this.icon\n ? html`<randstad-icon name=\"${this.icon}\" size=\"18px\"></randstad-icon>`\n : html`<slot name=\"icon\"></slot>`\n }\n </span>\n ` : ''}\n \n ${this.variant === 'bubble' ? html`\n <span class=\"bubble-message\">${this.message}</span>\n <slot></slot>\n ` : ''}\n </div>\n `;\n }\n}","import { LitElement, html, css, nothing } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { bodyM } from '../styles/fontStyles';\nimport { focusStyles } from '../styles/focus';\n\nimport '../components/Modal';\nimport '../components/Button';\nimport '../components/Notice';\nimport '../components/Form';\nimport '../components/FormGroup';\n\nconst PIN_LENGTH = 6;\n\ntype MfaInputMode = 'numeric' | 'text';\n\n@customElement('randstad-mfa-modal')\nexport class MfaModal extends LitElement {\n @property({ type: Boolean, reflect: true }) open = false;\n\n @property({ type: String }) title = 'verificación de seguridad';\n @property({ type: String }) email = '[correo electrónico]';\n @property({ type: Boolean, reflect: true }) loading = false;\n @property({ type: String }) inputMode: MfaInputMode = 'numeric';\n @property({ type: Boolean }) showError = false;\n\n @property({ type: Boolean }) showSuccessNotice = false;\n @property({ type: String }) successMessage = '';\n @property({ type: String }) helperMessage = '';\n\n @property({ type: Number }) resendCooldown = 60;\n\n @state() private _resendDisabled = false;\n @state() private _resendRemaining = 0;\n @state() private _pinValues: string[] = Array(PIN_LENGTH).fill('');\n\n @property({ type: String }) modalWidth = '450px';\n @property({ type: String }) modalHeight = 'auto';\n @property({ type: String }) maxHeight = '90dvh';\n\n\n private _resendTimer?: number;\n\n static styles = [\n focusStyles,\n css`\n :host {\n font-family: 'Graphik', sans-serif;\n }\n\n .mfa-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n }\n \n .content-wrapper {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .mfa-instruction {\n ${bodyM}\n color: var(--secondary-color);\n margin: 0;\n }\n\n .pin-group {\n display: flex;\n gap: 8px;\n }\n\n .pin-input {\n width: 60.33px;\n height: 62px;\n text-align: center;\n font-size: 18px;\n line-height: 30px;\n font-family: 'Graphik', sans-serif;\n font-weight: 400;\n border: 1px solid var(--secondary-color-20);\n border-radius: 4px;\n outline: none;\n transition: border-color 0.2s, box-shadow 0.2s;\n color: var(--secondary-color);\n box-sizing: border-box;\n caret-color: var(--primary-color);\n }\n\n .pin-input:focus {\n border-color: var(--primary-color);\n box-shadow: 0px 0px 0px 4px var(--primary-color-20);\n }\n\n .pin-input.error {\n border-color: var(--ui-negative);\n }\n\n .pin-input.error:focus {\n box-shadow: 0px 0px 0px 4px var(--ui-negative-pink-shadow);\n }\n\n .resend-line {\n ${bodyM}\n color: var(--secondary-color-60);\n margin: 8px 0 0;\n text-align: center;\n }\n\n .resend-link {\n color: var(--primary-color);\n cursor: pointer;\n text-decoration: none;\n background: none;\n border: none;\n font-family: 'Graphik', sans-serif;\n font-size: inherit;\n padding: 0;\n line-height: inherit;\n }\n\n .resend-link:hover {\n text-decoration: underline;\n }\n\n .resend-link:disabled,\n .resend-link.disabled {\n color: var(--secondary-color-60);\n cursor: default;\n pointer-events: none;\n opacity: 0.6;\n }\n\n .confirm-button {\n margin-top: 8px;\n }\n\n @media (max-width: 940px) {\n .pin-group {\n gap: 8px;\n width: 100%;\n }\n\n .pin-input {\n flex: 1;\n min-width: 0;\n height: 62px;\n font-size: 18px;\n }\n }\n\n :host {\n --modal-body-padding: 24px;\n }\n\n @media (min-width: 501px) and (max-width: 940px) {\n :host {\n --modal-body-padding: 50px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .pin-input {\n transition: none;\n }\n }\n `\n ];\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this._clearResendTimer();\n }\n\n updated(changedProps: Map<string | number | symbol, unknown>) {\n if (changedProps.has('open') && this.open) {\n requestAnimationFrame(() => this._focusInput(0));\n }\n if (changedProps.has('loading') || changedProps.has('open')) {\n requestAnimationFrame(() => this._syncCloseButtonDisabled());\n }\n }\n\n public reset() {\n this._pinValues = Array(PIN_LENGTH).fill('');\n this.showError = false;\n this.showSuccessNotice = false;\n this._resendDisabled = false;\n this._clearResendTimer();\n this.requestUpdate();\n }\n\n public focusFirstInput() {\n this._focusInput(0);\n }\n\n private _clearResendTimer() {\n if (this._resendTimer !== undefined) {\n clearInterval(this._resendTimer);\n this._resendTimer = undefined;\n }\n }\n\n private get _resolvedInputMode(): string {\n return this.inputMode === 'numeric' ? 'numeric' : 'text';\n }\n\n private _sanitizeValue(value: string): string {\n return this.inputMode === 'numeric'\n ? value.replace(/[^0-9]/g, '')\n : value.replace(/[^a-zA-Z0-9]/g, '');\n }\n\n private _getCloseButton(): HTMLElement | null {\n const modal = this.renderRoot.querySelector('custom-modal');\n return modal?.shadowRoot?.querySelector('.modal-close') as HTMLElement | null;\n }\n\n private _syncCloseButtonDisabled(): void {\n const btn = this._getCloseButton();\n if (!btn) return;\n\n const icon = btn.querySelector('randstad-icon') as HTMLElement | null;\n\n if (this.loading) {\n btn.setAttribute('disabled', '');\n btn.setAttribute('aria-disabled', 'true');\n btn.style.cursor = 'default';\n btn.style.pointerEvents = 'none';\n if (icon) {\n icon.style.filter = 'grayscale(1)';\n icon.style.opacity = '0.5';\n }\n } else {\n btn.removeAttribute('disabled');\n btn.removeAttribute('aria-disabled');\n btn.style.cursor = '';\n btn.style.pointerEvents = '';\n if (icon) {\n icon.style.filter = '';\n icon.style.opacity = '';\n }\n }\n }\n\n private _clearForwardFromIndex(startIndex: number): void {\n for (let i = startIndex + 1; i < PIN_LENGTH; i++) {\n if (this._pinValues[i]) {\n this._pinValues[i] = '';\n this.requestUpdate();\n this._focusInput(i);\n return;\n }\n }\n }\n\n private _getPinInputs(): NodeListOf<HTMLInputElement> {\n return this.renderRoot.querySelectorAll('.pin-input');\n }\n\n private _focusInput(index: number) {\n const inputs = this._getPinInputs();\n const input = inputs?.[index];\n if (input) {\n input.focus();\n input.select();\n }\n }\n\n private get _isComplete(): boolean {\n return this._pinValues.every(v => v !== '');\n }\n\n private _onPinInput(e: Event, index: number) {\n const input = e.target as HTMLInputElement;\n let val = this._sanitizeValue(input.value || '');\n\n if (!val) {\n this._pinValues[index] = '';\n return;\n }\n\n if (val.length > 1) {\n const chars = val.split('');\n for (let i = index; i < PIN_LENGTH && chars.length > 0; i++) {\n this._pinValues[i] = chars.shift()!;\n }\n const next = Math.min(PIN_LENGTH - 1, index + val.length);\n setTimeout(() => this._focusInput(next));\n this.requestUpdate();\n return;\n }\n\n this._pinValues[index] = val;\n this.requestUpdate();\n if (index < PIN_LENGTH - 1) {\n this._focusInput(index + 1);\n }\n }\n\n private _onPinKeyDown(e: KeyboardEvent, index: number) {\n if (e.key === 'Enter' && this._isComplete) {\n this._onConfirm();\n return;\n }\n\n if (e.key === 'Backspace') {\n if (this._pinValues[index]) {\n this._pinValues[index] = '';\n this.requestUpdate();\n e.preventDefault();\n } else if (index > 0) {\n this._pinValues[index - 1] = '';\n this.requestUpdate();\n this._focusInput(index - 1);\n e.preventDefault();\n } else {\n this._clearForwardFromIndex(0);\n e.preventDefault();\n }\n return;\n }\n\n if (e.key === 'Delete') {\n if (this._pinValues[index]) {\n this._pinValues[index] = '';\n this.requestUpdate();\n } else {\n this._clearForwardFromIndex(index);\n }\n e.preventDefault();\n return;\n }\n\n if (\n e.key.length === 1 &&\n !e.ctrlKey &&\n !e.metaKey &&\n e.key !== 'v'\n ) {\n const blocked = this.inputMode === 'numeric'\n ? /\\D/.test(e.key)\n : /[^a-zA-Z0-9]/.test(e.key);\n if (blocked) e.preventDefault();\n }\n }\n\n private _onPinPaste(e: ClipboardEvent) {\n const pasted = (e.clipboardData ?? (window as unknown as { clipboardData?: DataTransfer }).clipboardData)?.getData('text') || '';\n const digits = this._sanitizeValue(pasted).slice(0, PIN_LENGTH).split('');\n if (digits.length === 0) return;\n\n for (let i = 0; i < PIN_LENGTH; i++) {\n this._pinValues[i] = digits[i] || '';\n }\n e.preventDefault();\n this.requestUpdate();\n\n const firstEmpty = this._pinValues.findIndex(v => !v);\n setTimeout(() => this._focusInput(firstEmpty >= 0 ? firstEmpty : PIN_LENGTH - 1));\n }\n\n private _onClose() {\n if (this.loading) return;\n this.dispatchEvent(new CustomEvent('mfa-close'));\n }\n\n private _onConfirm() {\n if (!this._isComplete || this.loading) return;\n this.dispatchEvent(new CustomEvent('mfa-confirm', { detail: { code: this._pinValues.join('') } }));\n }\n\n private _onResend() {\n if (this._resendDisabled) return;\n this.dispatchEvent(new CustomEvent('resend-code'));\n this._startResendCountdown();\n }\n\n private _startResendCountdown() {\n this._clearResendTimer();\n this._resendDisabled = true;\n this._resendRemaining = this.resendCooldown;\n this._resendTimer = window.setInterval(() => {\n this._resendRemaining -= 1;\n if (this._resendRemaining <= 0) {\n this._resendDisabled = false;\n this._clearResendTimer();\n }\n this.requestUpdate();\n }, 1000);\n }\n\n private _renderPinInputs() {\n return Array.from({ length: PIN_LENGTH }, (_, i) => html`\n <input\n class=\"pin-input ${this.showError ? 'error' : ''}\"\n type=\"text\"\n inputmode=${this._resolvedInputMode}\n pattern=${this.inputMode === 'numeric' ? '\\\\d*' : '[a-zA-Z0-9]*'}\n maxlength=\"1\"\n autocomplete=\"one-time-code\"\n .value=${this._pinValues[i]}\n @input=${(e: Event) => this._onPinInput(e, i)}\n @keydown=${(e: KeyboardEvent) => this._onPinKeyDown(e, i)}\n aria-label=\"Dígito ${i + 1} del código\"\n aria-invalid=${this.showError ? 'true' : 'false'}\n >\n `);\n }\n\n private _renderResendSection() {\n return html`\n <p class=\"resend-line\">\n ¿no lo recibiste?&nbsp;\n ${this._resendDisabled\n ? html`<span role=\"status\" aria-live=\"polite\">reenviar en (${this._resendRemaining}s)</span>`\n : html`<button\n class=\"resend-link\"\n @click=${this._onResend}\n >reenviar ahora</button>`\n }\n </p>\n `;\n }\n\n render() {\n return html`\n <custom-modal\n .open=${this.open}\n title=${this.title}\n .hideFooter=${true}\n modalWidth= ${ this.modalWidth };\n modalHeight=${ this.modalHeight };\n maxHeight= ${ this.maxHeight };\n @modal-close=${this._onClose}\n >\n <div slot=\"content\" class=\"mfa-content\" role=\"status\" aria-live=\"polite\" aria-describedby=\"mfa-notice-message\">\n <div class=\"content-wrapper\">\n <randstad-notice\n id=\"mfa-notice-message\"\n .open=${true}\n .type=${this.showSuccessNotice ? 'success' : 'informative'}\n .icon=${this.showSuccessNotice ? 'check' : 'info'}\n .message=${this.showSuccessNotice ? this.successMessage : this.helperMessage}\n ></randstad-notice>\n\n <randstad-form-group\n label=\"ingresá el código que recibiste\"\n .error=${this.showError}\n errorMessage=\"el código ingresado es incorrecto\"\n >\n <div class=\"pin-group\" @paste=${this._onPinPaste}>\n ${this._renderPinInputs()}\n </div>\n </randstad-form-group>\n </div>\n <randstad-button\n class=\"confirm-button\"\n variant=\"button-primary\"\n size=\"md\"\n label=\"actualizar\"\n .loader=${this.loading}\n .disabled=${!this._isComplete || this.loading}\n @click=${this._onConfirm}\n ></randstad-button>\n\n ${this._renderResendSection()}\n </div>\n </custom-modal>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'randstad-mfa-modal': MfaModal;\n }\n}","import { LitElement, html, css, nothing, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\nexport interface NavItem {\n readonly icon: string;\n readonly label: string;\n readonly href?: string;\n}\n\n@customElement('randstad-navbar')\nexport class RandstadNavbar extends LitElement {\n @property({ type: Array }) items: NavItem[];\n\n @property({ type: String }) centerIcon = 'search';\n\n @property({ type: String }) centerLabel = '';\n\n @property({ type: Boolean, reflect: true }) hidden = false;\n\n @property({ type: Boolean, reflect: true }) desktop = false;\n\n @property({ type: Number }) selectedIndex = -1;\n\n private _rafId: number | null = null;\n\n constructor() {\n super();\n this.items = [\n { icon: 'home', label: 'Home' },\n { icon: 'postulation', label: 'Applications' },\n { icon: 'user', label: 'Users' },\n { icon: 'settings', label: 'Settings' },\n ];\n }\n\n private handleScroll = (): void => {\n const scrollBottom = window.innerHeight + window.scrollY;\n const docHeight = document.documentElement.scrollHeight;\n this.hidden = scrollBottom >= docHeight - 50;\n };\n\n private handleScrollThrottled = (): void => {\n if (this._rafId != null) return;\n this._rafId = requestAnimationFrame((): void => {\n this._rafId = null;\n this.handleScroll();\n });\n };\n\n connectedCallback(): void {\n super.connectedCallback();\n window.addEventListener('scroll', this.handleScrollThrottled, { passive: true });\n this.handleScroll();\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n window.removeEventListener('scroll', this.handleScrollThrottled);\n if (this._rafId != null) {\n cancelAnimationFrame(this._rafId);\n this._rafId = null;\n }\n }\n\n private handleItemClick(index: number, item: NavItem): void {\n this.selectedIndex = index;\n this.dispatchEvent(\n new CustomEvent('nav-item-click', {\n detail: { index, item },\n bubbles: true,\n composed: true,\n })\n );\n }\n\n private handleCenterClick(): void {\n this.dispatchEvent(\n new CustomEvent('center-click', {\n bubbles: true,\n composed: true,\n })\n );\n }\n\n static styles = css`\n :host {\n display: none;\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 9998;\n font-family: 'Graphik', sans-serif;\n transition: transform 0.3s ease, opacity 0.3s ease;\n }\n\n :host([hidden]) {\n transform: translateY(100%);\n opacity: 0;\n }\n\n @media (max-width: 940px) {\n :host {\n display: block;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host {\n transition: none;\n }\n }\n\n @media (min-width: 941px) {\n :host([desktop]) {\n display: block;\n }\n }\n\n .navbar {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 71px;\n background: var(--white, #ffffff);\n border-radius: 16px 16px 0 0;\n box-shadow: 0px -1px 16px 1px rgba(15, 25, 65, 0.15),\n 0px -1px 16px 0px rgba(15, 25, 65, 0.3);\n padding: 0 16px;\n }\n\n .side-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n min-width: 34px;\n height: 51px;\n text-decoration: none;\n cursor: pointer;\n gap: 8px;\n flex: 1;\n }\n\n .side-item .item-icon {\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .side-item .item-icon randstad-icon {\n --icon-color: var(--secondary-color-80, #404767);\n }\n\n .side-item.active .item-icon randstad-icon {\n --icon-color: var(--primary-color, #2175d9);\n }\n\n .side-item .item-label {\n font-family: 'Graphik', sans-serif;\n font-weight: 400;\n font-size: 10px;\n line-height: 12px;\n letter-spacing: 0%;\n color: var(--secondary-color-80, #404767);\n text-align: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n }\n\n .side-item.active .item-label {\n color: var(--primary-color, #2175d9);\n }\n\n .center-button {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 2px;\n cursor: pointer;\n background: none;\n border: none;\n padding: 0;\n margin: 0 12px;\n flex-shrink: 0;\n }\n\n .center-circle {\n width: 60px;\n height: 60px;\n border-radius: 100px;\n background: var(--primary-color, #2175d9);\n border: 4px solid rgba(211, 227, 247, 1);\n display: flex;\n align-items: center;\n justify-content: center;\n transform: translateY(-12px);\n }\n\n .center-circle randstad-icon {\n --icon-color: var(--white, #ffffff);\n }\n\n .center-label {\n font-family: 'Graphik', sans-serif;\n font-weight: 400;\n font-size: 10px;\n line-height: 12px;\n letter-spacing: 0%;\n color: var(--secondary-color, #0f1941);\n text-align: center;\n }\n\n @media (max-width: 940px) {\n .center-button {\n margin: 0;\n }\n .side-item {\n min-width: unset;\n }\n }\n }\n `;\n\n render(): TemplateResult {\n const leftItems = this.items.slice(0, 2);\n const rightItems = this.items.slice(2, 4);\n\n const renderItem = (item: NavItem, index: number): TemplateResult => {\n const active = index === this.selectedIndex;\n const classes = classMap({\n 'side-item': true,\n active,\n });\n\n return html`\n <a\n class=${classes}\n href=${item.href || '#'}\n @click=${(e: Event): void => {\n if (!item.href) e.preventDefault();\n this.handleItemClick(index, item);\n }}\n aria-label=${item.label}\n aria-current=${active ? 'page' : nothing}\n >\n <span class=\"item-icon\">\n <randstad-icon name=${item.icon} size=\"24\" aria-hidden=\"true\"></randstad-icon>\n </span>\n <span class=\"item-label\">${item.label}</span>\n </a>\n `;\n };\n\n return html`\n <nav class=\"navbar\" role=\"navigation\" aria-label=\"Navegación principal\">\n ${leftItems.map((item, i) => renderItem(item, i))}\n\n <button class=\"center-button\" @click=${this.handleCenterClick} aria-label=\"Abrir menú\">\n <span class=\"center-circle\">\n <randstad-icon name=${this.centerIcon} size=\"28\" aria-hidden=\"true\"></randstad-icon>\n </span>\n ${this.centerLabel\n ? html`<span class=\"center-label\">${this.centerLabel}</span>`\n : nothing}\n </button>\n\n ${rightItems.map((item, i) => renderItem(item, i + 2))}\n </nav>\n `;\n }\n}\n"],"names":["__decorate","decorators","target","key","desc","d","c","arguments","length","r","Object","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__metadata","metadataKey","metadataValue","metadata","SuppressedError","t","e","o","addInitializer","customElements","define","globalThis","ShadowRoot","ShadyCSS","nativeShadow","Document","prototype","CSSStyleSheet","s","Symbol","WeakMap","n$2","constructor","this","_$cssResult$","Error","cssText","styleSheet","get","replaceSync","set","toString","S","adoptedStyleSheets","map","document","createElement","n","litNonce","setAttribute","textContent","appendChild","cssRules","is","h","getOwnPropertyNames","getOwnPropertySymbols","getPrototypeOf","a","trustedTypes","l","emptyScript","p","reactiveElementPolyfillSupport","u","toAttribute","Boolean","Array","JSON","stringify","fromAttribute","Number","parse","f","b","attribute","type","String","converter","reflect","useDefault","hasChanged","litPropertyMetadata","y","HTMLElement","_$Ei","push","observedAttributes","finalize","_$Eh","keys","createProperty","state","hasOwnProperty","create","wrapped","elementProperties","noAccessor","getPropertyDescriptor","call","requestUpdate","configurable","enumerable","getPropertyOptions","Map","finalized","properties","_$Eu","elementStyles","finalizeStyles","styles","isArray","Set","flat","reverse","unshift","toLowerCase","super","_$Ep","isUpdatePending","hasUpdated","_$Em","_$Ev","_$ES","Promise","enableUpdating","_$AL","_$E_","forEach","addController","_$EO","add","renderRoot","isConnected","hostConnected","removeController","delete","size","createRenderRoot","shadowRoot","attachShadow","shadowRootOptions","connectedCallback","disconnectedCallback","hostDisconnected","attributeChangedCallback","_$AK","_$ET","removeAttribute","_$Ej","hasAttribute","C","_$EP","has","_$Eq","reject","scheduleUpdate","performUpdate","shouldUpdate","willUpdate","hostUpdate","update","_$EM","_$AE","hostUpdated","firstUpdated","updated","updateComplete","getUpdateComplete","mode","ReactiveElement","reactiveElementVersions","kind","name","init","querySelector","BaseControl","LitElement","label","placeholder","labelColor","value","required","optional","disabled","error","errorMessage","helper","helperAlign","helpClickable","_tooltipOpen","_lastClickTime","_boundCloseTooltip","_closeTooltip","bind","_handleTooltipClick","stopPropagation","preventDefault","Date","now","changedProperties","addEventListener","removeEventListener","renderLabelContainer","html","renderLabel","renderHelp","nothing","help","helpLink","helpLinkTooltipMessage","renderError","renderHelper","helperInlineStyles","property","customElement","bodyXS","css","bodyS","bodyM","bodyL","titleXXS","titleXS","titleS","DESKTOP_MEDIA_QUERY","AccordionPanel","title","isOpen","isDesktop","window","matchMedia","matches","handleMediaQueryChange","event","mediaQueryList","toggle","render","iconTemplate","AccordionList","RandstadButton","variant","loader","iconPosition","iconName","idevent","handleClick","form","closest","requestSubmit","reset","dispatchEvent","CustomEvent","detail","composed","bubbles","cancelable","classes","button","includes","dotColor","iconSrc","classMap","CarouselCard","img","description","buttonLabel","cardId","width","height","handleButtonClick","onClick","backgroundImageStyle","sizeStyle","Checkbox","checked","checkedColor","checkedBgColor","toggleCheck","Event","handleKeyDown","inlineStyles","tooltipStyles","focusStyles","mixStyles","errorStyles","scrollbarStyles","REGEX_NO_EMOJIS","RandstadForm","keydown","undefined","icon","typing","isPasswordVisible","cleanButton","togglePassword","input","currentTarget","parentElement","handleInput","handleInputCustom","newValue","maxLength","slice","handleClear","handleLinkClick","linkRoute","_updateValueWithCursor","inputElement","currentValue","start","selectionStart","end","selectionEnd","diff","newStart","Math","max","newEnd","setSelectionRange","shouldFilterEmojis","keydownRegex","RegExp","test","valueWithoutEmojis","replace","onlyNumeric","onlyText","onlyAlphanumeric","onlyRegex","sanitizedValue","trimmedValue","trimStart","groups","match","isComposite","firstGroup","secondGroup","chars","split","char","handleInputKeyDown","handleInputArrowKey","_isCleanButtonVisible","submitEvent","_inputMode","focus","handleButtonArrowKey","textareaInlineStyles","heightTextArea","maxHeightTextArea","formStyles","linkText","FormGroup","rows","fieldsInlineStyles","ICONS","arrow_back","arrow_down","arrow_drop_down","arrow_drop_up","arrow_left","arrow_next","arrow_prev","arrow_right","arrow_up","ayuda","calendar","check","check_circle","close","courses_circle","cv_circle","disability_circle","education_circle","email","experience_circle","eye","eye_crossed","home","image","info","info_circle","languages_circle","pencil","personal_circle","postulation","search","settings","thumbs_up","tick","trash","trash_circle","user","warning","IconComponent","color","svgTemplate","changedProps","style","setProperty","loadIcon","svgText","parser","DOMParser","svgElement","parseFromString","documentElement","console","innerHTML","RandstadSocialMediaInput","platform","customSanitizeRegex","customUrlValidationRegex","_inputValue","_showFormatError","_onChangeFn","_onTouchedFn","_fixedPrefix","_isSuffix","_isPrefix","_placeholder","_sanitizeRegex","_sentPrefixLength","_maxCharsAllowed","_handleInputOrPaste","originalValue","newPosition","startsWith","urlRegex","_urlValidationRegex","maxChars","lastIndex","finalValue","_getFullValue","safePosition","min","_hasMinLengthError","_errorMessageToDisplay","_hasError","_handleKeyDown","isAlphanumeric","username","_extractUsernameFromValue","fullValue","extractedUsername","then","allowedChars","helperText","writeValue","registerOnChange","fn","registerOnTouched","setDisabledState","isDisabled","RandstadNotice","message","open","CustomModal","showNotice","noticeType","noticeMessage","noticeIcon","showPrimaryButton","primaryButtonLabel","showSecondaryButton","secondaryButtonLabel","isFooterCustom","isPrimaryLoader","isPrimaryDisabled","modalWidth","modalHeight","maxHeight","hideFooter","scrollable","hasDropdownOpen","hasCalendarOpen","handleDropdownOpen","handleCalendarOpen","setScrollableMode","innerWidth","closeModal","getFooterClass","subtitle","CustomPopup","iconColor","buttonText","confirmText","cancelText","closeOnOutsideClick","stackedActions","_onBackgroundClick","path","composedPath","popupContainer","closePopup","response","popupStyle","action","ProgressCircle","circumference","PI","safeMax","offset","CustomRadio","handleSelect","containerClasses","join","fallbackText","labelContent","FilterableSelect","defaultValue","options","textLabelFilterNotResult","textLabelMobileSearch","isRenderClearButton","sortable","minSearch","textLabelLoading","debounceMs","isMobile","highlightedIndex","_isCleared","filteredOptions","filterValue","mobileFilterValue","showNoResults","_isLoading","lastElement","_prevIsMobile","_lastFetchTerm","_fetchedOptions","debounceTimeout","_abortController","_boundHandleClickOutside","handleClickOutside","getOptionLabel","option","handleGlobalOverlayOpen","updateResponsiveModeBound","updateResponsiveMode","_firstCharRegex","_effectiveFilterable","attr","getAttribute","filterable","_scrollLockCount","_scrollLockStylesheet","_ensureScrollLockStyles","FilterableSelect_1","head","toggleDynamicScrollLock","block","classList","scrollHeight","clientHeight","scrollBarWidth","clientWidth","paddingRight","remove","normalizeText","text","normalize","sortOptions","searchTerm","getOptionValueAsString","labelA","labelB","stringA","stringB","normalizedSearchTerm","aStartsWith","bStartsWith","valueStringA","valueStringB","numMatchA","numMatchB","numA","NaN","numB","isNaN","localeCompare","usage","sensitivity","_computeFilteredOptions","result","sort","filteredList","filter","opt","handleOptionHover","index","fetcher","targetValue","find","wasClosed","mobileInput","mobileInputRef","setTimeout","clearTimeout","abort","notifyOverlayOpened","handleInputClick","_fetchAsyncResults","_sanitizeInputValue","_emitEmptySelection","handleMobileInput","handleIconClick","isShowCleanButton","hasStringValue","hasObjectValue","willOpen","_desktopInput","Node","contains","preventInvalidStart","tagName","handlePaste","pasteData","clipboardData","getData","sanitizedData","_sanitize","setRangeText","isSelection","willBeEmpty","isAlreadyEmpty","enabledOptions","firstEnabledIndex","findIndex","nextIndex","lastEnabledOption","indexOf","scrollHighlightedIntoView","prevIndex","_desktopFake","isAtEnd","iconButton","_iconButton","handleButtonKeyDown","fakeElement","focusTarget","HTMLInputElement","handleBlur","validateAndCleanOnBlur","optionsList","_optionsList","highlightedElement","scrollIntoView","normalizedSearch","executeFetch","AbortController","signal","aborted","catch","sanitizeFirstChar","firstChar","source","raw","renderOptionIcon","safe","_renderOptionItem","typedText","trim","validMatch","matchValue","matchLabel","shouldBeOpen","validationTextLabelFilterNotResult","validationTextLabelMobileSearch","validationtPlaceholder","hasTextLabelFilterNotResult","hasTextLabelMobileSearch","hasPlaceholder","Function","query","HTMLButtonElement","HTMLUListElement","globalStyles","RandstadSnackbar","position","_navbarObserver","updateResponsiveStyles","observeNavbar","disconnect","updateNavbarPosition","isNavbarVisible","navbar","visible","isBottom","shouldOffset","MutationObserver","observe","attributes","attributeFilter","ariaRole","CustomStepper","totalSteps","currentStep","from","_","TabsBar","tabs","selected","internalSelected","showPrev","showNext","SCROLL_OFFSET","handleScroll","wrapper","scrollLeft","scrollWidth","changed","selectTab","selectedTab","tab","scrollTabsLeft","querySelectorAll","tabLeft","offsetLeft","scrollTarget","scrollTo","left","behavior","scrollTabsRight","wrapperLeft","el","BaseUpload","files","simulatedDelay","showAlertInError","typeTextFile","loading","progress","errorTextMessage","isMultiple","TEXT_SNACKBAR_ERROR_TYPE","TEXT_SNACKBAR_ERROR_SIZE","maxSize","TEXT_SNACKBAR_ERROR_DELETE","typeFile","showSnackbar","duration","snackbar","timer","warn","baseGetTextMaxFileSize","maxFileSize","ONE_MB","parseFloat","toPrecision","round","getReadableFileTypes","acceptedFileTypes","typeMapping","readableTypes","lastType","pop","validateFiles","filesToValidate","errorMessageType","errorMessageSize","typeError","hasSizeLimit","hasTypeLimit","file","fileExtension","isTypeValid","isExtensionValid","some","ext","setError","baseHandleFiles","config","baseMaxFiles","currentFiles","remainingSlots","isFinite","baseErrorTextMessage","delay","startTime","interval","setInterval","elapsedTime","newProgress","clearInterval","fileInput","baseOnFileInputChange","removeFile","snackbarMessage","renderLoadingContainer","htmlSlotContent","IMAGE_TYPE_MAPPING","FILE_TYPE_MAPPING","progressBarUploadStyles","UploadImage","maxFiles","isShowInfoSize","isChangeStyleError","isDragging","imageUrls","isMaxFilesReached","getFileConfig","baseMessageError","getTextAcceptedFileTypes","getTextMaxFileSize","url","URL","revokeObjectURL","createObjectURL","handleFiles","onFileInputChange","onDrop","dataTransfer","onDragOver","onDragLeave","handleButtonKeydown","click","isUploadDisabled","isRemoveButtonDisabled","hasSizeLimitText","sizeText","typeText","errorText","applyErrorStyle","mainText","containerClass","inputBaseTemplate","millisecondsInWeek","constructFromSymbol","for","constructFrom","date","toDate","argument","context","addMonths","amount","_date","in","dayOfMonth","getDate","endOfDesiredMonth","getTime","setMonth","getMonth","setFullYear","getFullYear","defaultOptions","getDefaultOptions","startOfWeek","weekStartsOn","locale","day","getDay","setDate","setHours","startOfISOWeek","getISOWeekYear","year","fourthOfJanuaryOfNextYear","startOfNextYear","fourthOfJanuaryOfThisYear","startOfThisYear","getTimezoneOffsetInMilliseconds","utcDate","UTC","getHours","getMinutes","getSeconds","getMilliseconds","setUTCFullYear","normalizeDates","dates","startOfDay","addYears","isValid","startOfMonth","formatDistanceLocale","lessThanXSeconds","one","other","xSeconds","halfAMinute","lessThanXMinutes","xMinutes","aboutXHours","xHours","xDays","aboutXWeeks","xWeeks","aboutXMonths","xMonths","aboutXYears","xYears","overXYears","almostXYears","buildFormatLongFn","args","defaultWidth","formats","formatLong","full","long","medium","short","time","dateTime","formatRelativeLocale","lastWeek","yesterday","today","tomorrow","nextWeek","buildLocalizeFn","valuesArray","formattingValues","defaultFormattingWidth","values","argumentCallback","buildMatchFn","string","matchPattern","matchPatterns","defaultMatchWidth","matchResult","matchedString","parsePatterns","defaultParseWidth","array","predicate","pattern","object","findKey","valueCallback","rest","enUS","code","formatDistance","token","count","tokenValue","addSuffix","comparison","formatRelative","_baseDate","_options","localize","ordinalNumber","dirtyNumber","number","rem100","era","narrow","abbreviated","wide","quarter","month","dayPeriod","am","pm","midnight","noon","morning","afternoon","evening","night","parsePattern","parseInt","parseResult","any","firstWeekContainsDate","getDayOfYear","laterDate","earlierDate","laterDate_","earlierDate_","laterStartOfDay","earlierStartOfDay","laterTimestamp","earlierTimestamp","differenceInCalendarDays","date_","startOfYear","getISOWeek","fourthOfJanuary","startOfISOWeekYear","getWeekYear","firstWeekOfNextYear","firstWeekOfThisYear","getWeek","firstWeek","startOfWeekYear","addLeadingZeros","targetLength","abs","padStart","lightFormatters","signedYear","M","dayPeriodEnumValue","toUpperCase","H","m","numberOfDigits","milliseconds","trunc","pow","dayPeriodEnum","formatters","G","unit","Y","signedWeekYear","weekYear","R","Q","ceil","q","L","w","week","I","isoWeek","D","dayOfYear","E","dayOfWeek","localDayOfWeek","isoDayOfWeek","hours","B","K","k","X","_localize","timezoneOffset","getTimezoneOffset","formatTimezoneWithOptionalMinutes","formatTimezone","x","O","formatTimezoneShort","z","T","delimiter","sign","absOffset","minutes","dateLongFormatter","timeLongFormatter","longFormatters","P","datePattern","timePattern","dateTimeFormat","dayOfYearTokenRE","weekYearTokenRE","throwTokens","formattingTokensRegExp","longFormattingTokensRegExp","escapedStringRegExp","doubleQuoteRegExp","unescapedLatinCharacterRegExp","format","formatStr","defaultLocale","originalDate","RangeError","parts","substring","firstCharacter","longFormatter","isToken","cleanEscapedString","preprocessor","formatterOptions","part","_message","subject","warnOrThrowProtectedError","formatter","matched","getDaysInMonth","monthIndex","lastDayOfMonth","isAfter","dateToCompare","isBefore","isSameMonth","isSameYear","isToday","dateLeft_","dateRight_","isSameDay","constructNow","CalendarOverlay","selectedDate","viewDate","calendarWidth","minDate","maxDate","currentView","handleOutsideClick","root","getRootNode","host","_boundHandleCalendarKeydown","handleCalendarKeydown","_boundHandleFocusout","relatedTarget","handleFocusInput","handleHeaderClick","_updateView","newDate","newView","handleNavClick","direction","dateFns.addMonths","dateFns.addYears","handleYearSelect","dateFns.setYear","monthYearButton","handleMonthSelect","midMonth","daysInMonth","dateFns.setMonth","initialFocusElement","handleDayClick","getFullMonthNames","getShortMonthNames","getShortWeekdays","focusCalendar","elementToFocus","focusFirstElement","firstButton","focusYearsView","firstYearButton","focusMonthsView","firstMonthButton","focusDaysView","firstDayButton","_findAndFocusDayButton","activeElement","dayButtons","currentIndex","btn","newIndex","newFocusElement","_focusDayOfWeekEdge","dayDOMIndex","startOfWeekDOMIndex","checkIndex","endOfWeekDOMIndex","prevButton","nextButton","initialDayFocus","firstGridItem","buttonSelector","gridItems","focusableElements","firstElement","shiftKey","renderHeader","monthNames","headerText","disablePrev","disableNext","startYear","endYear","Infinity","viewYear","dateFns.isSameMonth","dateFns.startOfMonth","dateFns.isBefore","dateFns.isAfter","renderYearsView","years","selectedYear","currentYear","minYear","maxYear","renderMonthsView","selectedMonth","currentMonth","isCurrentMonth","isSelected","dateFns.isSameYear","isSecondarySelected","renderDayView","dateFns.getDaysInMonth","leadingDays","days","dateFns.setDate","weekdays","normalizedDay","dateFns.startOfDay","normalizedSelectedDate","isTodayDay","dateFns.isToday","dateFns.getDate","dateFns.format","content","showSeparator","mainContent","DatePickerComponent","readonly","eighteenOrOlder","inputValue","_emitDropdownToggle","_emitToggle","setMessageErrorFormatInvalid","_currentFormat","setInitialWidth","inputContainer","newWidth","getBoundingClientRect","onlyNumericAndDash","_parseAndValidateDate","handleCalendarButtonClick","handleClearDate","closeOverlay","handleDateSelect","_validateDate","formattedDate","opened","_isLastFocusableInModal","parent","focusableSelectors","focusableArray","myIndex","oldValue","_syncValue","handleViewDateChange","valueSet","parsedDate","_parseDate","eighteenYearsAgo","subYears","_isWithinBounds","_getValidDateRange","fromInput","dateString","tempDate","partsYYYYMMDD","_parseDateString","minDateObj","maxDateObj","range","calendarOverlay","clearButton","calendarButton","handleClearButtonKeydown","handleCalendarButtonKeydown","inputWrapperClasses","active","HTMLDivElement","UploadFile","showDeleteConfirmation","showInternalError","isRemovePopupOpen","fileIndexToRemove","fileNameToRemove","applyWidth","handleRemoveFile","fileName","confirmRemoveFile","handlePopupClose","buttonDisabled","buttonBaseTemplate","Carousel","cards","cardWidth","cardHeight","navWidth","showNavButtons","isDynamicWidth","isInfiniteScrollPartial","autoPlayDelayMs","showPrevButton","showNextButton","isDraggingWithButtons","isDownWithButtons","startXWithButtons","scrollLeftPositionWithButtons","isScrollingByButton","isDownDrag","prevXDrag","isDraggingDrag","scrollLeftDrag","observer","scrollTimeout","autoPlayTimer","handleResize","DESKTOP_GAP","TABLET_GAP","MOBILE_GAP","handleMouseDownWithButtons","handleMouseLeaveWithButtons","handleMouseUpWithButtons","handleMouseMoveWithButtons","handleScrollWithButtons","handleMouseDownDrag","handleMouseLeaveDrag","handleMouseUpDrag","handleMouseMoveDrag","resizeHandler","getCarouselGap","gapValue","setCarouselGap","getNavWidth","getInitialPadding","slider","scrollPaddingLeft","getComputedStyle","getPropertyValue","initAutoPlayConfig","initNavModeConfig","slotElement","loadMutationObserver","handleMouseEnter","requestAnimationFrame","startAutoPlay","stopAutoPlay","mutations","addedNodes","childList","subtree","scrollToNext","scrollBehavior","pageX","dx","shouldPreventDragWithButtons","walk","maxScrollLeft","currentScroll","TOLERANCE","scrollSnapType","getNavButtonWidth","getScrollAmount","firstItem","assignedElements","flatten","node","fixedWidth","computedStyle","gapString","getCarouselItems","getCardsToCenterCount","calculateTargetIndex","currentScrollLeft","isNext","children","cardsToCenter","viewStart","targetIndex","currentFirstVisibleIndex","initialPadding","maxStartIndex","isDesktopMode","getScrollLeftToCenter","firstCard","groupWidth","targetScrollLeft","scrollToPrev","navButtonWidth","computedSpaces","card","isAutoPlayEvent","getCardCustomDimensionValue","dimension","computedWidthLimit","valueInPxMatch","maxDimension","innerHeight","renderNavButtons","prevClasses","prev","hidden","nextClasses","next","renderContent","cardWidthValue","cardHeightValue","isNavMode","isIninitePartialMode","wrapperClasses","HTMLSlotElement","RandstadBubble","arrowAlign","isAnimating","clearDurationTimer","startDurationTimer","hideTimeout","hide","show","bubble","top","backgroundColor","textColor","fontFamily","MfaModal","inputMode","showError","showSuccessNotice","successMessage","helperMessage","resendCooldown","_resendDisabled","_resendRemaining","_pinValues","fill","_clearResendTimer","_focusInput","_syncCloseButtonDisabled","focusFirstInput","_resendTimer","_resolvedInputMode","_sanitizeValue","_getCloseButton","modal","cursor","pointerEvents","opacity","_clearForwardFromIndex","startIndex","_getPinInputs","inputs","select","_isComplete","every","v","_onPinInput","val","shift","PIN_LENGTH","_onPinKeyDown","_onConfirm","ctrlKey","metaKey","_onPinPaste","pasted","digits","firstEmpty","_onClose","_onResend","_startResendCountdown","_renderPinInputs","_renderResendSection","RandstadNavbar","centerIcon","centerLabel","desktop","selectedIndex","_rafId","scrollBottom","scrollY","docHeight","handleScrollThrottled","items","passive","cancelAnimationFrame","handleItemClick","item","handleCenterClick","leftItems","rightItems","renderItem","href"],"mappings":"wHAsDO,SAASA,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2HC,EAAvHC,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIJ,EAAkB,OAATE,EAAgBA,EAAOM,OAAOC,yBAAyBT,EAAQC,GAAOC,EACrH,GAAuB,iBAAZQ,SAAoD,mBAArBA,QAAQC,SAAyBJ,EAAIG,QAAQC,SAASZ,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIU,EAAIb,EAAWO,OAAS,EAAGM,GAAK,EAAGA,KAAST,EAAIJ,EAAWa,MAAIL,GAAKH,EAAI,EAAID,EAAEI,GAAKH,EAAI,EAAID,EAAEH,EAAQC,EAAKM,GAAKJ,EAAEH,EAAQC,KAASM,GAChJ,OAAOH,EAAI,GAAKG,GAAKC,OAAOK,eAAeb,EAAQC,EAAKM,GAAIA,CAChE,CAmDO,SAASO,EAAWC,EAAaC,GACpC,GAAuB,iBAAZN,SAAoD,mBAArBA,QAAQO,SAAyB,OAAOP,QAAQO,SAASF,EAAaC,EACpH,CAwNkD,mBAApBE,iBAAiCA;;;;;;ACnU/D,MAAMC,EAAEA,GAAG,CAACC,EAAEC,cAAcA,EAAEA,EAAEC,gBAAc,KAAOC,eAAeC,OAAOL,EAAEC,EAAG,IAAGG,eAAeC,OAAOL,EAAEC,ICArGD,EAAEM,WAAWL,EAAED,EAAEO,kBAAa,IAASP,EAAEQ,UAAUR,EAAEQ,SAASC,eAAe,uBAAuBC,SAASC,WAAW,YAAYC,cAAcD,UAAUE,EAAEC,SAASZ,EAAE,IAAIa;;;;;GAAO,IAAAC,EAAC,MAAQ,WAAAC,CAAYjB,EAAEC,EAAEC,GAAG,GAAGgB,KAAKC,cAAa,EAA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