@randstad-uca/design-system 1.0.111 → 1.0.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/icons.d.ts +4 -0
- package/dist/index.js +153 -148
- package/dist/index.js.map +1 -1
- package/dist/package.json +2 -2
- package/dist/stories/Snackbar.stories.d.ts +22 -6
- package/package.json +2 -2
- package/dist/assets/icons/arrow_back.svg +0 -10
- package/dist/assets/icons/arrow_down.svg +0 -3
- package/dist/assets/icons/arrow_drop_down.svg +0 -3
- package/dist/assets/icons/arrow_drop_up.svg +0 -3
- package/dist/assets/icons/arrow_left.svg +0 -3
- package/dist/assets/icons/arrow_next.svg +0 -3
- package/dist/assets/icons/arrow_prev.svg +0 -3
- package/dist/assets/icons/arrow_right.svg +0 -3
- package/dist/assets/icons/arrow_up.svg +0 -3
- package/dist/assets/icons/ayuda.svg +0 -12
- package/dist/assets/icons/calendar.svg +0 -20
- package/dist/assets/icons/check.svg +0 -10
- package/dist/assets/icons/close.svg +0 -10
- package/dist/assets/icons/edit.svg +0 -10
- package/dist/assets/icons/email.svg +0 -11
- package/dist/assets/icons/eye.svg +0 -11
- package/dist/assets/icons/eye_crossed.svg +0 -10
- package/dist/assets/icons/home.svg +0 -10
- package/dist/assets/icons/icon_check.svg +0 -4
- package/dist/assets/icons/icon_trash.svg +0 -7
- package/dist/assets/icons/icon_warning.svg +0 -6
- package/dist/assets/icons/image.svg +0 -5
- package/dist/assets/icons/info.svg +0 -12
- package/dist/assets/icons/postulation.svg +0 -4
- package/dist/assets/icons/search-white.svg +0 -10
- package/dist/assets/icons/settings.svg +0 -11
- package/dist/assets/icons/thumbs_up.svg +0 -11
- package/dist/assets/icons/tick-circle.svg +0 -3
- package/dist/assets/icons/trash.svg +0 -13
- package/dist/assets/icons/user.svg +0 -10
- package/dist/assets/icons/warning.svg +0 -12
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/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}","import { LitElement, html, css, TemplateResult } from 'lit';\r\nimport { property, state } from 'lit/decorators.js';\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 const response: Response = await fetch( `/assets/icons/${ this.name }.svg` );\r\n if ( !response.ok ) throw new Error( 'Icon not found' );\r\n \r\n let svgText: string = await response.text();\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 @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 }\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: 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 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 \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: var(--primary-color-20, #D3E3F7);\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`<img src=\"/assets/icons/${this.icon}\" alt=\"\" width=\"56\" height=\"56\" />`\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\">\r\n <randstad-icon\r\n name=${action.icon}\r\n size=\"24px\"\r\n .color=${ 'var( --primary-color )' }\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}","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\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 }) textLabelFilterNotResult: string = '';\n @property({ type: String }) textLabelMobileSearch: string = '';\n\n @property({ type: Boolean }) isRenderClearButton = false;\n @property({ type: Boolean }) sortable = true;\n\n @state() private isMobile: boolean = false;\n @state() private highlightedIndex = -1;\n @state() private _isCleared: boolean = false;\n private originalHtmlOverflow = '';\n private originalHtmlPaddingRight = '';\n\n @state() filteredOptions: SelectOption[] = [];\n @state() filterValue = '';\n @state() isOpen = false;\n @state() mobileFilterValue = '';\n\n @state() private showNoResults: boolean = false;\n @property({ type: Boolean, attribute: 'last-element' }) lastElement = false\n\n @query('.mobile-modal .filter-input')\n public mobileInputRef!: HTMLInputElement;\n\n private debounceTimeout: number | null = null;\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-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(.no-results-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(.no-results-item):hover,\n .options-list li.highlighted:not(.no-results-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.no-results-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.no-results-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 manageScrollElement(element: HTMLElement, block: boolean): void {\n if (block) {\n // Añadir solo la clase de marcador si es necesario para CSS global\n element.classList.add('modal-open-no-scroll');\n } else {\n element.classList.remove('modal-open-no-scroll');\n }\n }\n\n /**\n * Bloquea/Desbloquea el scroll manipulando directamente <html> y guardando el estado.\n * @param block Si es true, bloquea; si es false, limpia.\n */\n private toggleDynamicScrollLock(block: boolean): void {\n const html = document.documentElement; // <-- El elemento <html>\n\n if (block) {\n // 1. Guardar los valores originales antes de bloquear\n this.originalHtmlOverflow = html.style.overflow;\n this.originalHtmlPaddingRight = html.style.paddingRight;\n\n // 2. Aplicar el bloqueo de overflow\n html.style.overflow = 'hidden';\n this.manageScrollElement(html, true);\n\n // 3. Compensación de padding (si hay scrollbar visible)\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 // 4. Restaurar los valores originales\n html.style.overflow = this.originalHtmlOverflow;\n html.style.paddingRight = this.originalHtmlPaddingRight;\n this.manageScrollElement(html, false);\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 public filterAndSortOptions(): void {\n this.filteredOptions = this._computeFilteredOptions(this.filterValue);\n }\n\n private _sortedOptionsCopy(): SelectOption[] {\n return this.sortable\n ? [...this.options].sort((a, b) => this.sortOptions(a, b, undefined))\n : [...this.options];\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 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 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 // 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.filterAndSortOptions();\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 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.handleClickOutside.bind(this));\n window.addEventListener('overlay-opened', this.handleGlobalOverlayOpen);\n }\n\n disconnectedCallback() {\n window.removeEventListener('resize', this.updateResponsiveModeBound);\n document.removeEventListener('click', this.handleClickOutside.bind(this));\n window.removeEventListener('overlay-opened', this.handleGlobalOverlayOpen);\n if (this.debounceTimeout) {\n clearTimeout(this.debounceTimeout);\n this.debounceTimeout = null;\n }\n if (this.isMobile) {\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 if (!this.isOpen) {\n this.notifyOverlayOpened();\n this.filteredOptions = this._sortedOptionsCopy();\n this.showNoResults = false;\n\n // En mobile, reseteamos el filtro visual del modal\n if (this.isMobile) 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 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 const valueWithoutEmojis = originalValue.replace(REGEX_NO_EMOJIS, '');\n let value: string = this.maxLength ? valueWithoutEmojis.slice(0, this.maxLength) : valueWithoutEmojis;\n if (value.startsWith(' ')) value = value.trimStart();\n\n target.value = value;\n this.filterValue = value;\n\n target.setSelectionRange(newPosition, newPosition);\n\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.value = '';\n this._isCleared = true;\n this.filteredOptions = this._sortedOptionsCopy();\n this.showNoResults = false;\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value: '' },\n bubbles: true,\n composed: true\n }));\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 public handleMobileInput(event: Event) {\n this._isCleared = false;\n\n const target = event.target as HTMLInputElement;\n const originalValue = target.value;\n const start = target.selectionStart || 0;\n\n // Calcular posición limpia\n const textBeforeCursor = originalValue.slice(0, start);\n const cleanTextBeforeCursor = textBeforeCursor.replace(REGEX_NO_EMOJIS, '');\n const newPosition = cleanTextBeforeCursor.length;\n\n const valueWithoutEmojis: string = originalValue.replace(REGEX_NO_EMOJIS, '');\n let value: string = this.maxLength ? valueWithoutEmojis.slice(0, this.maxLength) : valueWithoutEmojis;\n\n if (value.startsWith(' ')) value = value.trimStart();\n\n // Actualizar DOM, estado y cursor\n target.value = value;\n this.mobileFilterValue = value;\n target.setSelectionRange(newPosition, newPosition);\n\n if (value === '') {\n this.value = '';\n this._isCleared = true;\n this.filteredOptions = this._sortedOptionsCopy();\n this.showNoResults = false;\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value: '' },\n bubbles: true,\n composed: true\n }));\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._sortedOptionsCopy();\n }\n }, 300);\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 this.filteredOptions = this._sortedOptionsCopy();\n this.showNoResults = false;\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._isCleared = true;\n this.filterValue = '';\n this.value = '';\n\n this.filteredOptions = this._sortedOptionsCopy();\n\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value: '' },\n bubbles: true,\n composed: true\n }));\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._sortedOptionsCopy();\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 const desktopInput: HTMLInputElement | null = this.shadowRoot?.querySelector('.filter-input') as HTMLInputElement;\n desktopInput?.focus();\n });\n } else {\n this.mobileFilterValue = '';\n this.filteredOptions = this._sortedOptionsCopy();\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 this.validateAndCleanOnBlur();\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 if (this.isMobile) {\n this.mobileFilterValue = '';\n this.filteredOptions = this._sortedOptionsCopy();\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 // Comprobamos que sea un input real, que el cursor esté al inicio y que sea un carácter imprimible (length === 1)\n if (target && target.tagName === 'INPUT' && target.selectionStart === 0 && event.key.length === 1) {\n const isAlphanumeric = /[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 * 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 pasteDataWithoutEmojis = pasteData.replace(REGEX_NO_EMOJIS, '');\n let sanitizedData = pasteDataWithoutEmojis.replace(/^[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]+/, '');\n if (sanitizedData.startsWith(' ')) sanitizedData = sanitizedData.trimStart();\n // Validamos específicamente el primer carácter del string pegado (^)\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: HTMLInputElement | null = this.shadowRoot?.querySelector('.filter-input') as HTMLInputElement;\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 (willBeEmpty || isAlreadyEmpty) {\n this.value = '';\n this.filterValue = '';\n this._isCleared = true;\n this.filteredOptions = this._sortedOptionsCopy();\n this.isOpen = true;\n\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value: '' },\n bubbles: true,\n composed: true\n }));\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 // Si hay opciones habilitadas, resalta la última. Si no, resetea a -1.\n const lastEnabledIndex: number = this.filteredOptions.length - 1;\n this.highlightedIndex = enabledOptions.length > 0 ? lastEnabledIndex : -1;\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 const inputElement: HTMLInputElement | null = this.shadowRoot?.querySelector('.filter-input') as HTMLInputElement;\n const fakeElement: HTMLElement | null = this.shadowRoot?.querySelector('.filter-fake') as HTMLElement;\n\n if (inputElement) inputElement.focus();\n else fakeElement?.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 const inputElement: HTMLInputElement | null = this.shadowRoot?.querySelector('.filter-input') as HTMLInputElement;\n const fakeElement: HTMLElement | null = this.shadowRoot?.querySelector('.filter-fake') as HTMLElement;\n\n if (inputElement) inputElement.focus();\n else fakeElement?.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.shadowRoot?.querySelector('.icon-button') as HTMLButtonElement;\n iconButton?.focus();\n }\n\n return;\n } else if (this.isOpen && !this.isMobile && this._effectiveFilterable && key.length === 1) {\n this.highlightedIndex = -1;\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: HTMLInputElement | null = this.shadowRoot?.querySelector('.filter-input') as HTMLInputElement;\n const fakeElement: HTMLElement | null = this.shadowRoot?.querySelector('.filter-fake') as HTMLElement;\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: HTMLUListElement | null = this.shadowRoot?.querySelector('.options-list') as HTMLUListElement;\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 renderOptionIcon(icon?: string) {\n if (!icon || typeof icon !== 'string') return nothing;\n\n // Usamos innerHTML para inyectar el icon.\n return html`<span class=\"icon-list\" .innerHTML=\"${icon}\"></span>`;\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.value = '';\n this._isCleared = true;\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value: '' },\n bubbles: true,\n composed: true\n }));\n }\n this.filterValue = '';\n this.filteredOptions = this._sortedOptionsCopy();\n this.showNoResults = false;\n return;\n }\n\n // valido lo escrito si coincide EXACTAMENTE con el label\n const validMatch = this.options.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.value = '';\n this._isCleared = true;\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value: '' },\n bubbles: true,\n composed: true\n }));\n\n this.filterValue = '';\n this.filteredOptions = this._sortedOptionsCopy();\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-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.filteredOptions.length > 0\n ? html`\n <ul class=\"options-list\" role=\"listbox\">\n ${this.filteredOptions.map((option, index) => {\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 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 </ul>\n `\n : this.showNoResults\n ? html`\n <ul class=\"options-list\" role=\"listbox\">\n <li class=\"no-results-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 />\n\n ${this.mobileFilterValue.length > 0 && this.filteredOptions.length === 0\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._sortedOptionsCopy(); }}\">\n <randstad-icon name=\"close\" size=\"24px\"></randstad-icon>\n </button>\n </div>\n \n ${this.filteredOptions.length > 0\n ? html`\n <ul class=\"options-list\">\n ${this.filteredOptions.map((option, index) => {\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 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 </ul>\n `\n : this.showNoResults\n ? html`\n <ul class=\"options-list\" role=\"listbox\">\n <li class=\"no-results-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\nclass RandstadSnackbar extends LitElement {\r\n type: string = 'informative';\r\n icon: string = 'info';\r\n message: string = 'Este es un mensaje.';\r\n open: boolean = false;\r\n position: string = 'bottom-center';\r\n private isMobile = false;\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: 9999;\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 .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 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);\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 }\r\n\r\n public disconnectedCallback() {\r\n window.removeEventListener('resize', this.updateResponsiveStyles);\r\n super.disconnectedCallback();\r\n }\r\n\r\n public updateResponsiveStyles() {\r\n const isMobile = window.innerWidth <= 940;\r\n this.classList.toggle('mobile', isMobile);\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-circle\" 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}","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 img {\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 img {\r\n width: 24px;\r\n height: 24px;\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 <img src=\"/assets/icons/${tab.icon}\" alt=\"${tab.label}\" />\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=${ 'icon_trash.svg' }\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}","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\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 }) loading = false;\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 .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: 20px;\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 @media (max-width: 576px) {\n .pin-input {\n width: 40px;\n height: 40px;\n font-size: 16px;\n }\n .pin-group {\n gap: 6px;\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 }\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 _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 = (input.value || '').replace(/\\D/g, '');\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] && index > 0) {\n this._pinValues[index - 1] = '';\n this.requestUpdate();\n this._focusInput(index - 1);\n e.preventDefault();\n }\n return;\n }\n\n if (\n e.key.length === 1 &&\n /\\D/.test(e.key) &&\n !e.ctrlKey &&\n !e.metaKey &&\n e.key !== 'v'\n ) {\n 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 = pasted.replace(/\\D/g, '').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 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=\"numeric\"\n pattern=\"\\\\d*\"\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? \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 código</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 <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\n <randstad-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-white';\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","IconComponent","color","svgTemplate","changedProps","style","setProperty","loadIcon","response","fetch","ok","svgText","text","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","buttonText","confirmText","cancelText","closeOnOutsideClick","stackedActions","_onBackgroundClick","path","composedPath","popupContainer","closePopup","popupStyle","action","ProgressCircle","circumference","PI","safeMax","offset","CustomRadio","handleSelect","containerClasses","join","fallbackText","labelContent","FilterableSelect","defaultValue","options","textLabelFilterNotResult","textLabelMobileSearch","isRenderClearButton","sortable","isMobile","highlightedIndex","_isCleared","originalHtmlOverflow","originalHtmlPaddingRight","filteredOptions","filterValue","mobileFilterValue","showNoResults","lastElement","debounceTimeout","getOptionLabel","option","handleGlobalOverlayOpen","updateResponsiveModeBound","updateResponsiveMode","_effectiveFilterable","attr","getAttribute","filterable","manageScrollElement","element","block","classList","remove","toggleDynamicScrollLock","overflow","paddingRight","scrollHeight","clientHeight","scrollBarWidth","clientWidth","normalizeText","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","filterAndSortOptions","_sortedOptionsCopy","handleOptionHover","index","targetValue","find","wasClosed","mobileInput","mobileInputRef","setTimeout","handleClickOutside","clearTimeout","notifyOverlayOpened","handleInputClick","handleMobileInput","handleIconClick","isShowCleanButton","hasStringValue","hasObjectValue","desktopInput","Node","contains","validateAndCleanOnBlur","preventInvalidStart","tagName","handlePaste","sanitizedData","clipboardData","getData","setRangeText","isSelection","willBeEmpty","isAlreadyEmpty","enabledOptions","firstEnabledIndex","findIndex","nextIndex","lastEnabledIndex","scrollHighlightedIntoView","prevIndex","fakeElement","isAtEnd","iconButton","handleButtonKeyDown","focusTarget","HTMLInputElement","handleBlur","optionsList","highlightedElement","scrollIntoView","renderOptionIcon","typedText","trim","validMatch","matchValue","matchLabel","inputStyles","shouldBeOpen","validationTextLabelFilterNotResult","validationTextLabelMobileSearch","validationtPlaceholder","hasTextLabelFilterNotResult","hasTextLabelMobileSearch","hasPlaceholder","query","globalStyles","RandstadSnackbar","position","updateResponsiveStyles","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","HTMLButtonElement","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","indexOf","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","disconnect","stopAutoPlay","MutationObserver","mutations","addedNodes","observe","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","visible","arrowAlign","isAnimating","clearDurationTimer","startDurationTimer","hideTimeout","hide","show","bubble","top","backgroundColor","textColor","fontFamily","MfaModal","email","showError","showSuccessNotice","successMessage","helperMessage","resendCooldown","_resendDisabled","_resendRemaining","_pinValues","fill","_clearResendTimer","_focusInput","focusFirstInput","_resendTimer","_getPinInputs","inputs","select","_isComplete","every","v","_onPinInput","val","shift","PIN_LENGTH","_onPinKeyDown","_onConfirm","ctrlKey","metaKey","_onPinPaste","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,SAAy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,3,4,5,6,7,38,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,88,89,90,92]}
|
|
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 \"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 \"edit\": `<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_2313_3987)\">\n<path d=\"M21.1792 2.86303C20.0866 1.72074 18.249 1.72074 17.1315 2.81336L3.02678 16.5456C2.95228 16.6201 2.90262 16.6946 2.87778 16.794L2.00865 20.8665C1.98382 21.0154 2.00865 21.1893 2.13281 21.3134C2.23214 21.4128 2.35631 21.4624 2.5053 21.4624C2.53013 21.4624 2.55496 21.4624 2.5798 21.4624L6.77646 20.792C6.87579 20.7671 6.97511 20.7175 7.04961 20.6678L21.1295 6.91069C21.6758 6.36438 21.9738 5.66908 21.9987 4.89928C22.0235 4.12947 21.7007 3.40934 21.1792 2.86303ZM20.4342 6.21539L6.45364 19.8483L3.12611 20.3698L3.82141 17.1664L17.802 3.5335C18.547 2.81336 19.7389 2.83819 20.4591 3.55833C20.8067 3.90598 21.0054 4.3778 20.9805 4.89928C20.9805 5.39592 20.7819 5.86774 20.4342 6.21539Z\" fill=\"#2175D9\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_2313_3987\">\n<rect width=\"24\" height=\"24\" fill=\"white\"/>\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 \"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 \"icon_check\": `<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 \"icon_trash\": `<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 \"icon_warning\": `<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 \"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 \"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-white\": `<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-circle\": `<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 \"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 @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 }\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: 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 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 \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: var(--primary-color-20, #D3E3F7);\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=\"#D3E3F7\" />`\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\">\r\n <randstad-icon\r\n name=${action.icon}\r\n size=\"24px\"\r\n .color=${ 'var( --primary-color )' }\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}","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\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 }) textLabelFilterNotResult: string = '';\n @property({ type: String }) textLabelMobileSearch: string = '';\n\n @property({ type: Boolean }) isRenderClearButton = false;\n @property({ type: Boolean }) sortable = true;\n\n @state() private isMobile: boolean = false;\n @state() private highlightedIndex = -1;\n @state() private _isCleared: boolean = false;\n private originalHtmlOverflow = '';\n private originalHtmlPaddingRight = '';\n\n @state() filteredOptions: SelectOption[] = [];\n @state() filterValue = '';\n @state() isOpen = false;\n @state() mobileFilterValue = '';\n\n @state() private showNoResults: boolean = false;\n @property({ type: Boolean, attribute: 'last-element' }) lastElement = false\n\n @query('.mobile-modal .filter-input')\n public mobileInputRef!: HTMLInputElement;\n\n private debounceTimeout: number | null = null;\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-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(.no-results-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(.no-results-item):hover,\n .options-list li.highlighted:not(.no-results-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.no-results-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.no-results-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 manageScrollElement(element: HTMLElement, block: boolean): void {\n if (block) {\n // Añadir solo la clase de marcador si es necesario para CSS global\n element.classList.add('modal-open-no-scroll');\n } else {\n element.classList.remove('modal-open-no-scroll');\n }\n }\n\n /**\n * Bloquea/Desbloquea el scroll manipulando directamente <html> y guardando el estado.\n * @param block Si es true, bloquea; si es false, limpia.\n */\n private toggleDynamicScrollLock(block: boolean): void {\n const html = document.documentElement; // <-- El elemento <html>\n\n if (block) {\n // 1. Guardar los valores originales antes de bloquear\n this.originalHtmlOverflow = html.style.overflow;\n this.originalHtmlPaddingRight = html.style.paddingRight;\n\n // 2. Aplicar el bloqueo de overflow\n html.style.overflow = 'hidden';\n this.manageScrollElement(html, true);\n\n // 3. Compensación de padding (si hay scrollbar visible)\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 // 4. Restaurar los valores originales\n html.style.overflow = this.originalHtmlOverflow;\n html.style.paddingRight = this.originalHtmlPaddingRight;\n this.manageScrollElement(html, false);\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 public filterAndSortOptions(): void {\n this.filteredOptions = this._computeFilteredOptions(this.filterValue);\n }\n\n private _sortedOptionsCopy(): SelectOption[] {\n return this.sortable\n ? [...this.options].sort((a, b) => this.sortOptions(a, b, undefined))\n : [...this.options];\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 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 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 // 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.filterAndSortOptions();\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 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.handleClickOutside.bind(this));\n window.addEventListener('overlay-opened', this.handleGlobalOverlayOpen);\n }\n\n disconnectedCallback() {\n window.removeEventListener('resize', this.updateResponsiveModeBound);\n document.removeEventListener('click', this.handleClickOutside.bind(this));\n window.removeEventListener('overlay-opened', this.handleGlobalOverlayOpen);\n if (this.debounceTimeout) {\n clearTimeout(this.debounceTimeout);\n this.debounceTimeout = null;\n }\n if (this.isMobile) {\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 if (!this.isOpen) {\n this.notifyOverlayOpened();\n this.filteredOptions = this._sortedOptionsCopy();\n this.showNoResults = false;\n\n // En mobile, reseteamos el filtro visual del modal\n if (this.isMobile) 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 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 const valueWithoutEmojis = originalValue.replace(REGEX_NO_EMOJIS, '');\n let value: string = this.maxLength ? valueWithoutEmojis.slice(0, this.maxLength) : valueWithoutEmojis;\n if (value.startsWith(' ')) value = value.trimStart();\n\n target.value = value;\n this.filterValue = value;\n\n target.setSelectionRange(newPosition, newPosition);\n\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.value = '';\n this._isCleared = true;\n this.filteredOptions = this._sortedOptionsCopy();\n this.showNoResults = false;\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value: '' },\n bubbles: true,\n composed: true\n }));\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 public handleMobileInput(event: Event) {\n this._isCleared = false;\n\n const target = event.target as HTMLInputElement;\n const originalValue = target.value;\n const start = target.selectionStart || 0;\n\n // Calcular posición limpia\n const textBeforeCursor = originalValue.slice(0, start);\n const cleanTextBeforeCursor = textBeforeCursor.replace(REGEX_NO_EMOJIS, '');\n const newPosition = cleanTextBeforeCursor.length;\n\n const valueWithoutEmojis: string = originalValue.replace(REGEX_NO_EMOJIS, '');\n let value: string = this.maxLength ? valueWithoutEmojis.slice(0, this.maxLength) : valueWithoutEmojis;\n\n if (value.startsWith(' ')) value = value.trimStart();\n\n // Actualizar DOM, estado y cursor\n target.value = value;\n this.mobileFilterValue = value;\n target.setSelectionRange(newPosition, newPosition);\n\n if (value === '') {\n this.value = '';\n this._isCleared = true;\n this.filteredOptions = this._sortedOptionsCopy();\n this.showNoResults = false;\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value: '' },\n bubbles: true,\n composed: true\n }));\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._sortedOptionsCopy();\n }\n }, 300);\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 this.filteredOptions = this._sortedOptionsCopy();\n this.showNoResults = false;\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._isCleared = true;\n this.filterValue = '';\n this.value = '';\n\n this.filteredOptions = this._sortedOptionsCopy();\n\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value: '' },\n bubbles: true,\n composed: true\n }));\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._sortedOptionsCopy();\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 const desktopInput: HTMLInputElement | null = this.shadowRoot?.querySelector('.filter-input') as HTMLInputElement;\n desktopInput?.focus();\n });\n } else {\n this.mobileFilterValue = '';\n this.filteredOptions = this._sortedOptionsCopy();\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 this.validateAndCleanOnBlur();\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 if (this.isMobile) {\n this.mobileFilterValue = '';\n this.filteredOptions = this._sortedOptionsCopy();\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 // Comprobamos que sea un input real, que el cursor esté al inicio y que sea un carácter imprimible (length === 1)\n if (target && target.tagName === 'INPUT' && target.selectionStart === 0 && event.key.length === 1) {\n const isAlphanumeric = /[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 * 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 pasteDataWithoutEmojis = pasteData.replace(REGEX_NO_EMOJIS, '');\n let sanitizedData = pasteDataWithoutEmojis.replace(/^[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]+/, '');\n if (sanitizedData.startsWith(' ')) sanitizedData = sanitizedData.trimStart();\n // Validamos específicamente el primer carácter del string pegado (^)\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: HTMLInputElement | null = this.shadowRoot?.querySelector('.filter-input') as HTMLInputElement;\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 (willBeEmpty || isAlreadyEmpty) {\n this.value = '';\n this.filterValue = '';\n this._isCleared = true;\n this.filteredOptions = this._sortedOptionsCopy();\n this.isOpen = true;\n\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value: '' },\n bubbles: true,\n composed: true\n }));\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 // Si hay opciones habilitadas, resalta la última. Si no, resetea a -1.\n const lastEnabledIndex: number = this.filteredOptions.length - 1;\n this.highlightedIndex = enabledOptions.length > 0 ? lastEnabledIndex : -1;\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 const inputElement: HTMLInputElement | null = this.shadowRoot?.querySelector('.filter-input') as HTMLInputElement;\n const fakeElement: HTMLElement | null = this.shadowRoot?.querySelector('.filter-fake') as HTMLElement;\n\n if (inputElement) inputElement.focus();\n else fakeElement?.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 const inputElement: HTMLInputElement | null = this.shadowRoot?.querySelector('.filter-input') as HTMLInputElement;\n const fakeElement: HTMLElement | null = this.shadowRoot?.querySelector('.filter-fake') as HTMLElement;\n\n if (inputElement) inputElement.focus();\n else fakeElement?.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.shadowRoot?.querySelector('.icon-button') as HTMLButtonElement;\n iconButton?.focus();\n }\n\n return;\n } else if (this.isOpen && !this.isMobile && this._effectiveFilterable && key.length === 1) {\n this.highlightedIndex = -1;\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: HTMLInputElement | null = this.shadowRoot?.querySelector('.filter-input') as HTMLInputElement;\n const fakeElement: HTMLElement | null = this.shadowRoot?.querySelector('.filter-fake') as HTMLElement;\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: HTMLUListElement | null = this.shadowRoot?.querySelector('.options-list') as HTMLUListElement;\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 renderOptionIcon(icon?: string) {\n if (!icon || typeof icon !== 'string') return nothing;\n\n // Usamos innerHTML para inyectar el icon.\n return html`<span class=\"icon-list\" .innerHTML=\"${icon}\"></span>`;\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.value = '';\n this._isCleared = true;\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value: '' },\n bubbles: true,\n composed: true\n }));\n }\n this.filterValue = '';\n this.filteredOptions = this._sortedOptionsCopy();\n this.showNoResults = false;\n return;\n }\n\n // valido lo escrito si coincide EXACTAMENTE con el label\n const validMatch = this.options.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.value = '';\n this._isCleared = true;\n this.dispatchEvent(new CustomEvent('option-selected', {\n detail: { value: '' },\n bubbles: true,\n composed: true\n }));\n\n this.filterValue = '';\n this.filteredOptions = this._sortedOptionsCopy();\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-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.filteredOptions.length > 0\n ? html`\n <ul class=\"options-list\" role=\"listbox\">\n ${this.filteredOptions.map((option, index) => {\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 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 </ul>\n `\n : this.showNoResults\n ? html`\n <ul class=\"options-list\" role=\"listbox\">\n <li class=\"no-results-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 />\n\n ${this.mobileFilterValue.length > 0 && this.filteredOptions.length === 0\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._sortedOptionsCopy(); }}\">\n <randstad-icon name=\"close\" size=\"24px\"></randstad-icon>\n </button>\n </div>\n \n ${this.filteredOptions.length > 0\n ? html`\n <ul class=\"options-list\">\n ${this.filteredOptions.map((option, index) => {\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 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 </ul>\n `\n : this.showNoResults\n ? html`\n <ul class=\"options-list\" role=\"listbox\">\n <li class=\"no-results-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-circle\" 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}","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=${ 'icon_trash.svg' }\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}","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\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 }) loading = false;\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 .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: 20px;\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 @media (max-width: 576px) {\n .pin-input {\n width: 40px;\n height: 40px;\n font-size: 16px;\n }\n .pin-group {\n gap: 6px;\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 }\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 _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 = (input.value || '').replace(/\\D/g, '');\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] && index > 0) {\n this._pinValues[index - 1] = '';\n this.requestUpdate();\n this._focusInput(index - 1);\n e.preventDefault();\n }\n return;\n }\n\n if (\n e.key.length === 1 &&\n /\\D/.test(e.key) &&\n !e.ctrlKey &&\n !e.metaKey &&\n e.key !== 'v'\n ) {\n 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 = pasted.replace(/\\D/g, '').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 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=\"numeric\"\n pattern=\"\\\\d*\"\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? \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 código</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 <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\n <randstad-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-white';\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","close","edit","email","eye","eye_crossed","home","icon_check","icon_trash","icon_warning","image","info","postulation","settings","thumbs_up","trash","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","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","isMobile","highlightedIndex","_isCleared","originalHtmlOverflow","originalHtmlPaddingRight","filteredOptions","filterValue","mobileFilterValue","showNoResults","lastElement","debounceTimeout","getOptionLabel","option","handleGlobalOverlayOpen","updateResponsiveModeBound","updateResponsiveMode","_effectiveFilterable","attr","getAttribute","filterable","manageScrollElement","element","block","classList","remove","toggleDynamicScrollLock","overflow","paddingRight","scrollHeight","clientHeight","scrollBarWidth","clientWidth","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","filterAndSortOptions","_sortedOptionsCopy","handleOptionHover","index","targetValue","find","wasClosed","mobileInput","mobileInputRef","setTimeout","handleClickOutside","clearTimeout","notifyOverlayOpened","handleInputClick","handleMobileInput","handleIconClick","isShowCleanButton","hasStringValue","hasObjectValue","desktopInput","Node","contains","validateAndCleanOnBlur","preventInvalidStart","tagName","handlePaste","sanitizedData","clipboardData","getData","setRangeText","isSelection","willBeEmpty","isAlreadyEmpty","enabledOptions","firstEnabledIndex","findIndex","nextIndex","lastEnabledIndex","scrollHighlightedIntoView","prevIndex","fakeElement","isAtEnd","iconButton","handleButtonKeyDown","focusTarget","HTMLInputElement","handleBlur","optionsList","highlightedElement","scrollIntoView","renderOptionIcon","typedText","trim","validMatch","matchValue","matchLabel","inputStyles","shouldBeOpen","validationTextLabelFilterNotResult","validationTextLabelMobileSearch","validationtPlaceholder","hasTextLabelFilterNotResult","hasTextLabelMobileSearch","hasPlaceholder","query","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","HTMLButtonElement","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","indexOf","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","showError","showSuccessNotice","successMessage","helperMessage","resendCooldown","_resendDisabled","_resendRemaining","_pinValues","fill","_clearResendTimer","_focusInput","focusFirstInput","_resendTimer","_getPinInputs","inputs","select","_isComplete","every","v","_onPinInput","val","shift","PIN_LENGTH","_onPinKeyDown","_onConfirm","ctrlKey","metaKey","_onPinPaste","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,E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