PageSourceSearch

https://office.workvine.nl/chunk-PO5TCJ7U.js

js workvine.nl collected 2026-10-09 01:39:07 UTC 12,440 bytes, 429 lines download raw bytes

1import {
2  DateAdapter,
3  MAT_DATE_FORMATS,
4  MAT_DATE_LOCALE
5} from "./chunk-JRKPZV7S.js";
6import {
7  BidiModule
8} from "./chunk-L27SLIL4.js";
9import {
10  Directive,
11  Injectable,
12  NgModule,
13  Version,
14  __spreadProps,
15  __spreadValues,
16  inject,
17  setClassMetadata,
18  startWith,
19  ɵɵdefineDirective,
20  ɵɵdefineInjectable,
21  ɵɵdefineInjector,
22  ɵɵdefineNgModule
23} from "./chunk-ZGC4HH7K.js";
24
vendor: 1,893 bytes, lines 25-86
25// node_modules/@angular/material/fesm2022/_line-chunk.mjs
26var MatLine = class _MatLine {
27  static \u0275fac = function MatLine_Factory(__ngFactoryType__) {
28    return new (__ngFactoryType__ || _MatLine)();
29  };
30  static \u0275dir = /* @__PURE__ */ \u0275\u0275defineDirective({
31    type: _MatLine,
32    selectors: [["", "mat-line", ""], ["", "matLine", ""]],
33    hostAttrs: [1, "mat-line"]
34  });
35};
36(() => {
37  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatLine, [{
38    type: Directive,
39    args: [{
40      selector: "[mat-line], [matLine]",
41      host: {
42        "class": "mat-line"
43      }
44    }]
45  }], null, null);
46})();
47function setLines(lines, element, prefix = "mat") {
48  lines.changes.pipe(startWith(lines)).subscribe(({
49    length
50  }) => {
51    setClass(element, `${prefix}-2-line`, false);
52    setClass(element, `${prefix}-3-line`, false);
53    setClass(element, `${prefix}-multi-line`, false);
54    if (length === 2 || length === 3) {
55      setClass(element, `${prefix}-${length}-line`, true);
56    } else if (length > 3) {
57      setClass(element, `${prefix}-multi-line`, true);
58    }
59  });
60}
61function setClass(element, className, isAdd) {
62  element.nativeElement.classList.toggle(className, isAdd);
63}
64var MatLineModule = class _MatLineModule {
65  static \u0275fac = function MatLineModule_Factory(__ngFactoryType__) {
66    return new (__ngFactoryType__ || _MatLineModule)();
67  };
68  static \u0275mod = /* @__PURE__ */ \u0275\u0275defineNgModule({
69    type: _MatLineModule,
70    imports: [MatLine],
71    exports: [MatLine, BidiModule]
72  });
73  static \u0275inj = /* @__PURE__ */ \u0275\u0275defineInjector({
74    imports: [BidiModule]
75  });
76};
77(() => {
78  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatLineModule, [{
79    type: NgModule,
80    args: [{
81      imports: [MatLine],
82      exports: [MatLine, BidiModule]
83    }]
84  }], null, null);
85})();
86
vendor: 10,145 bytes, lines 87-429
87// node_modules/@angular/material/fesm2022/core.mjs
88var VERSION = new Version("21.2.14");
89var ISO_8601_REGEX = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
90var TIME_REGEX = /^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;
91function range(length, valueFunction) {
92  const valuesArray = Array(length);
93  for (let i = 0; i < length; i++) {
94    valuesArray[i] = valueFunction(i);
95  }
96  return valuesArray;
97}
98var NativeDateAdapter = class _NativeDateAdapter extends DateAdapter {
99  _matDateLocale = inject(MAT_DATE_LOCALE, {
100    optional: true
101  });
102  constructor() {
103    super();
104    const matDateLocale = inject(MAT_DATE_LOCALE, {
105      optional: true
106    });
107    if (matDateLocale !== void 0) {
108      this._matDateLocale = matDateLocale;
109    }
110    super.setLocale(this._matDateLocale);
111  }
112  getYear(date) {
113    return date.getFullYear();
114  }
115  getMonth(date) {
116    return date.getMonth();
117  }
118  getDate(date) {
119    return date.getDate();
120  }
121  getDayOfWeek(date) {
122    return date.getDay();
123  }
124  getMonthNames(style) {
125    const dtf = new Intl.DateTimeFormat(this.locale, {
126      month: style,
127      timeZone: "utc"
128    });
129    return range(12, (i) => this._format(dtf, new Date(2017, i, 1)));
130  }
131  getDateNames() {
132    const dtf = new Intl.DateTimeFormat(this.locale, {
133      day: "numeric",
134      timeZone: "utc"
135    });
136    return range(31, (i) => this._format(dtf, new Date(2017, 0, i + 1)));
137  }
138  getDayOfWeekNames(style) {
139    const dtf = new Intl.DateTimeFormat(this.locale, {
140      weekday: style,
141      timeZone: "utc"
142    });
143    return range(7, (i) => this._format(dtf, new Date(2017, 0, i + 1)));
144  }
145  getYearName(date) {
146    const dtf = new Intl.DateTimeFormat(this.locale, {
147      year: "numeric",
148      timeZone: "utc"
149    });
150    return this._format(dtf, date);
151  }
152  getFirstDayOfWeek() {
153    if (typeof Intl !== "undefined" && Intl.Locale) {
154      const locale = new Intl.Locale(this.locale);
155      const firstDay = (locale.getWeekInfo?.() || locale.weekInfo)?.firstDay ?? 0;
156      return firstDay === 7 ? 0 : firstDay;
157    }
158    return 0;
159  }
160  getNumDaysInMonth(date) {
161    return this.getDate(this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + 1, 0));
162  }
163  clone(date) {
164    return new Date(date.getTime());
165  }
166  createDate(year, month, date) {
167    if (typeof ngDevMode === "undefined" || ngDevMode) {
168      if (month < 0 || month > 11) {
169        throw Error(`Invalid month index "${month}". Month index has to be between 0 and 11.`);
170      }
171      if (date < 1) {
172        throw Error(`Invalid date "${date}". Date has to be greater than 0.`);
173      }
174    }
175    let result = this._createDateWithOverflow(year, month, date);
176    if (result.getMonth() != month && (typeof ngDevMode === "undefined" || ngDevMode)) {
177      throw Error(`Invalid date "${date}" for month with index "${month}".`);
178    }
179    return result;
180  }
181  today() {
182    return /* @__PURE__ */ new Date();
183  }
184  parse(value, parseFormat) {
185    if (typeof value == "number") {
186      return new Date(value);
187    }
188    return value ? new Date(Date.parse(value)) : null;
189  }
190  format(date, displayFormat) {
191    if (!this.isValid(date)) {
192      throw Error("NativeDateAdapter: Cannot format invalid date.");
193    }
194    const dtf = new Intl.DateTimeFormat(this.locale, __spreadProps(__spreadValues({}, displayFormat), {
195      timeZone: "utc"
196    }));
197    return this._format(dtf, date);
198  }
199  addCalendarYears(date, years) {
200    return this.addCalendarMonths(date, years * 12);
201  }
202  addCalendarMonths(date, months) {
203    let newDate = this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + months, this.getDate(date));
204    if (this.getMonth(newDate) != ((this.getMonth(date) + months) % 12 + 12) % 12) {
205      newDate = this._createDateWithOverflow(this.getYear(newDate), this.getMonth(newDate), 0);
206    }
207    return newDate;
208  }
209  addCalendarDays(date, days) {
210    return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date) + days);
211  }
212  toIso8601(date) {
213    return [date.getUTCFullYear(), this._2digit(date.getUTCMonth() + 1), this._2digit(date.getUTCDate())].join("-");
214  }
215  deserialize(value) {
216    if (typeof value === "string") {
217      if (!value) {
218        return null;
219      }
220      if (ISO_8601_REGEX.test(value)) {
221        let date = new Date(value);
222        if (this.isValid(date)) {
223          return date;
224        }
225      }
226    }
227    return super.deserialize(value);
228  }
229  isDateInstance(obj) {
230    return obj instanceof Date;
231  }
232  isValid(date) {
233    return !isNaN(date.getTime());
234  }
235  invalid() {
236    return /* @__PURE__ */ new Date(NaN);
237  }
238  setTime(target, hours, minutes, seconds) {
239    if (typeof ngDevMode === "undefined" || ngDevMode) {
240      if (!inRange(hours, 0, 23)) {
241        throw Error(`Invalid hours "${hours}". Hours value must be between 0 and 23.`);
242      }
243      if (!inRange(minutes, 0, 59)) {
244        throw Error(`Invalid minutes "${minutes}". Minutes value must be between 0 and 59.`);
245      }
246      if (!inRange(seconds, 0, 59)) {
247        throw Error(`Invalid seconds "${seconds}". Seconds value must be between 0 and 59.`);
248      }
249    }
250    const clone = this.clone(target);
251    clone.setHours(hours, minutes, seconds, 0);
252    return clone;
253  }
254  getHours(date) {
255    return date.getHours();
256  }
257  getMinutes(date) {
258    return date.getMinutes();
259  }
260  getSeconds(date) {
261    return date.getSeconds();
262  }
263  parseTime(userValue, parseFormat) {
264    if (typeof userValue !== "string") {
265      return userValue instanceof Date ? new Date(userValue.getTime()) : null;
266    }
267    const value = userValue.trim();
268    if (value.length === 0) {
269      return null;
270    }
271    let result = this._parseTimeString(value);
272    if (result === null) {
273      const withoutExtras = value.replace(/[^0-9:(AM|PM)]/gi, "").trim();
274      if (withoutExtras.length > 0) {
275        result = this._parseTimeString(withoutExtras);
276      }
277    }
278    return result || this.invalid();
279  }
280  addSeconds(date, amount) {
281    return new Date(date.getTime() + amount * 1e3);
282  }
283  _createDateWithOverflow(year, month, date) {
284    const d = /* @__PURE__ */ new Date();
285    d.setFullYear(year, month, date);
286    d.setHours(0, 0, 0, 0);
287    return d;
288  }
289  _2digit(n) {
290    return ("00" + n).slice(-2);
291  }
292  _format(dtf, date) {
293    const d = /* @__PURE__ */ new Date();
294    d.setUTCFullYear(date.getFullYear(), date.getMonth(), date.getDate());
295    d.setUTCHours(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
296    return dtf.format(d);
297  }
298  _parseTimeString(value) {
299    const parsed = value.toUpperCase().match(TIME_REGEX);
300    if (parsed) {
301      let hours = parseInt(parsed[1]);
302      const minutes = parseInt(parsed[2]);
303      let seconds = parsed[3] == null ? void 0 : parseInt(parsed[3]);
304      const amPm = parsed[4];
305      if (hours === 12) {
306        hours = amPm === "AM" ? 0 : hours;
307      } else if (amPm === "PM") {
308        hours += 12;
309      }
310      if (inRange(hours, 0, 23) && inRange(minutes, 0, 59) && (seconds == null || inRange(seconds, 0, 59))) {
311        return this.setTime(this.today(), hours, minutes, seconds || 0);
312      }
313    }
314    return null;
315  }
316  static \u0275fac = function NativeDateAdapter_Factory(__ngFactoryType__) {
317    return new (__ngFactoryType__ || _NativeDateAdapter)();
318  };
319  static \u0275prov = /* @__PURE__ */ \u0275\u0275defineInjectable({
320    token: _NativeDateAdapter,
321    factory: _NativeDateAdapter.\u0275fac
322  });
323};
324(() => {
325  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NativeDateAdapter, [{
326    type: Injectable
327  }], () => [], null);
328})();
329function inRange(value, min, max) {
330  return !isNaN(value) && value >= min && value <= max;
331}
332var MAT_NATIVE_DATE_FORMATS = {
333  parse: {
334    dateInput: null,
335    timeInput: null
336  },
337  display: {
338    dateInput: {
339      year: "numeric",
340      month: "numeric",
341      day: "numeric"
342    },
343    timeInput: {
344      hour: "numeric",
345      minute: "numeric"
346    },
347    monthYearLabel: {
348      year: "numeric",
349      month: "short"
350    },
351    dateA11yLabel: {
352      year: "numeric",
353      month: "long",
354      day: "numeric"
355    },
356    monthYearA11yLabel: {
357      year: "numeric",
358      month: "long"
359    },
360    timeOptionLabel: {
361      hour: "numeric",
362      minute: "numeric"
363    }
364  }
365};
366var NativeDateModule = class _NativeDateModule {
367  static \u0275fac = function NativeDateModule_Factory(__ngFactoryType__) {
368    return new (__ngFactoryType__ || _NativeDateModule)();
369  };
370  static \u0275mod = /* @__PURE__ */ \u0275\u0275defineNgModule({
371    type: _NativeDateModule
372  });
373  static \u0275inj = /* @__PURE__ */ \u0275\u0275defineInjector({
374    providers: [{
375      provide: DateAdapter,
376      useClass: NativeDateAdapter
377    }]
378  });
379};
380(() => {
381  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NativeDateModule, [{
382    type: NgModule,
383    args: [{
384      providers: [{
385        provide: DateAdapter,
386        useClass: NativeDateAdapter
387      }]
388    }]
389  }], null, null);
390})();
391var MatNativeDateModule = class _MatNativeDateModule {
392  static \u0275fac = function MatNativeDateModule_Factory(__ngFactoryType__) {
393    return new (__ngFactoryType__ || _MatNativeDateModule)();
394  };
395  static \u0275mod = /* @__PURE__ */ \u0275\u0275defineNgModule({
396    type: _MatNativeDateModule
397  });
398  static \u0275inj = /* @__PURE__ */ \u0275\u0275defineInjector({
399    providers: [provideNativeDateAdapter()]
400  });
401};
402(() => {
403  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatNativeDateModule, [{
404    type: NgModule,
405    args: [{
406      providers: [provideNativeDateAdapter()]
407    }]
408  }], null, null);
409})();
410function provideNativeDateAdapter(formats = MAT_NATIVE_DATE_FORMATS) {
411  return [{
412    provide: DateAdapter,
413    useClass: NativeDateAdapter
414  }, {
415    provide: MAT_DATE_FORMATS,
416    useValue: formats
417  }];
418}
419
420export {
421  MatLine,
422  setLines,
423  MatLineModule,
424  NativeDateAdapter,
425  MatNativeDateModule,
426  provideNativeDateAdapter
427};
428/**i18n:55a58011b6fcf12b70aba021cbe233ce2fe179902ce3502a5c6547ccaba0ed7f*/
429//# sourceMappingURL=chunk-PO5TCJ7U.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.