@phatvu/web-component-poc 1.0.2 → 1.0.3

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.
Files changed (30) hide show
  1. package/dist/cjs/{fast-carousel.cjs.entry.js → fast-button_3.cjs.entry.js} +210 -3
  2. package/dist/cjs/{index-C756SOR-.js → index-B2BTpdbN.js} +373 -114
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/web-component-poc.cjs.js +2 -2
  5. package/dist/collection/components/button/button.js +2 -3
  6. package/dist/collection/components/fast-carousel/carousel.js +2 -3
  7. package/dist/components/fast-button.js +1 -1
  8. package/dist/components/fast-carousel.js +1 -1
  9. package/dist/components/index.js +1 -1
  10. package/dist/components/jobs-list-only-ui.js +1 -1
  11. package/dist/components/p-UM9TUfe3.js +1 -0
  12. package/dist/esm/{fast-carousel.entry.js → fast-button_3.entry.js} +209 -4
  13. package/dist/esm/{index-D7_MJBO8.js → index-Dk5CvWmb.js} +373 -114
  14. package/dist/esm/loader.js +3 -3
  15. package/dist/esm/web-component-poc.js +3 -3
  16. package/dist/web-component-poc/p-3d68d559.entry.js +1 -0
  17. package/dist/web-component-poc/p-Dk5CvWmb.js +2 -0
  18. package/dist/web-component-poc/web-component-poc.esm.js +1 -1
  19. package/hydrate/index.js +15 -506
  20. package/hydrate/index.mjs +15 -506
  21. package/package.json +1 -1
  22. package/dist/cjs/fast-button_2.cjs.entry.js +0 -211
  23. package/dist/components/p-Cw2MJ5l2.js +0 -1
  24. package/dist/esm/fast-button_2.entry.js +0 -208
  25. package/dist/web-component-poc/index-xE9n11HX.js.map +0 -1
  26. package/dist/web-component-poc/index.esm.js.map +0 -1
  27. package/dist/web-component-poc/p-0bc6d45d.entry.js +0 -1
  28. package/dist/web-component-poc/p-8ab359cc.entry.js +0 -1
  29. package/dist/web-component-poc/p-D7_MJBO8.js +0 -2
  30. package/dist/web-component-poc/web-component-poc.esm.js.map +0 -1
@@ -1,6 +1,47 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-C756SOR-.js');
3
+ var index = require('./index-B2BTpdbN.js');
4
+
5
+ const buttonCss = () => `:host{display:inline-block}.custom-button{display:inline-flex;align-items:center;justify-content:center;padding:0.5rem 1rem;font-family:inherit;font-size:0.875rem;font-weight:500;line-height:1.25;border:none;border-radius:0.375rem;cursor:pointer;transition:background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease}.custom-button:focus{outline:2px solid var(--custom-button-focus-ring, #2563eb);outline-offset:2px}.custom-button:focus:not(:focus-visible){outline:none}.custom-button--primary{background-color:var(--custom-button-primary-bg, #2563eb);color:var(--custom-button-primary-color, #fff)}.custom-button--primary:hover:not(.custom-button--disabled){background-color:var(--custom-button-primary-hover-bg, #1d4ed8)}.custom-button--primary:active:not(.custom-button--disabled){background-color:var(--custom-button-primary-active-bg, #1e40af)}.custom-button--secondary{background-color:var(--custom-button-secondary-bg, #e5e7eb);color:var(--custom-button-secondary-color, #1f2937)}.custom-button--secondary:hover:not(.custom-button--disabled){background-color:var(--custom-button-secondary-hover-bg, #d1d5db)}.custom-button--secondary:active:not(.custom-button--disabled){background-color:var(--custom-button-secondary-active-bg, #9ca3af)}.custom-button--text{background-color:transparent;color:var(--custom-button-text-color, #2563eb)}.custom-button--text:hover:not(.custom-button--disabled){background-color:var(--custom-button-text-hover-bg, rgba(37, 99, 235, 0.08))}.custom-button--text:active:not(.custom-button--disabled){background-color:var(--custom-button-text-active-bg, rgba(37, 99, 235, 0.12))}.custom-button--disabled,.custom-button:disabled{opacity:0.6;cursor:not-allowed}`;
6
+
7
+ const CustomButton = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ this.buttonClick = index.createEvent(this, "buttonClick");
11
+ }
12
+ /**
13
+ * Visual variant of the button.
14
+ */
15
+ variant = 'primary';
16
+ /**
17
+ * Native button type (button or submit).
18
+ */
19
+ type = 'button';
20
+ /**
21
+ * When true, the button is disabled and does not emit events.
22
+ */
23
+ disabled = false;
24
+ /**
25
+ * Emitted when the button is clicked (not emitted when disabled).
26
+ */
27
+ buttonClick;
28
+ handleClick = (e) => {
29
+ if (this.disabled) {
30
+ e.preventDefault();
31
+ e.stopPropagation();
32
+ return;
33
+ }
34
+ this.buttonClick.emit(e);
35
+ };
36
+ render() {
37
+ return (index.h("button", { key: '3b74909afe4e305dfd38f0b07657202e3d5bfccd', type: this.type, class: {
38
+ 'custom-button': true,
39
+ [`custom-button--${this.variant}`]: true,
40
+ 'custom-button--disabled': this.disabled,
41
+ }, disabled: this.disabled, onClick: this.handleClick }, index.h("slot", { key: '49845d350e4665c5c66e30bd9262f788eaaa1e20' })));
42
+ }
43
+ };
44
+ CustomButton.style = buttonCss();
4
45
 
5
46
  function isNumber(subject) {
6
47
  return typeof subject === 'number';
@@ -1895,15 +1936,181 @@ const AppCarousel = class {
1895
1936
  render() {
1896
1937
  const itemsArray = this.getItemsArray();
1897
1938
  const useItems = itemsArray !== undefined && itemsArray.length > 0;
1898
- return (index.h("div", { key: '313c58e9c1ea3b9c0d0fd4b9d6354336682d9353', class: `carousel ${this.class || ''}`.trim() }, index.h("div", { key: '14ad75526a24ed38df053fa221e2fafef6d532ed', class: `carousel__viewport ${this.slideClass || ''}`.trim(), ref: (el) => (this.viewportRef = el) }, index.h("div", { key: '1d3a771598c382592b789289494f2439fea56918', class: "carousel__container", ref: (el) => (this.containerRef = el) }, useItems && itemsArray
1939
+ return (index.h("div", { key: '3a2ea6c339bf0fe656e5a333789df7a37156b5dc', class: `carousel ${this.class || ''}`.trim() }, index.h("div", { key: '0a73b925095ae3188e5e40b024bc250e4c183894', class: `carousel__viewport ${this.slideClass || ''}`.trim(), ref: (el) => (this.viewportRef = el) }, index.h("div", { key: '7fc3b5a72e386f7fa21702aeb363e08da1b728cf', class: "carousel__container", ref: (el) => (this.containerRef = el) }, useItems && itemsArray
1899
1940
  ? itemsArray.map((item, i) => (index.h("div", { key: i, class: `carousel__slide ${this.itemClass || ''}`.trim() }, typeof item === 'object' &&
1900
1941
  item !== null &&
1901
1942
  'content' in item
1902
1943
  ? item.content
1903
1944
  : String(item))))
1904
- : null)), !useItems && (index.h("div", { key: 'cdecd3275ac3c5ffe7a0f46153d3e59ad0d4ba9d', style: { display: 'none' }, "aria-hidden": "true" }, index.h("slot", { key: '450dd5b90f20166a4d6ef4a0d46d208ad47bbf4b', ref: (el) => (this.slotRef = el) }))), index.h("div", { key: 'ad4eab3f45204170308d8021799d227eaff36d71', class: `carousel__controls ${this.controlClass || ''}`.trim() }, index.h("button", { key: '1a4ef7209ea768a55892f4d928da3f6100faab4b', type: "button", "aria-label": "Previous", class: "carousel__prev", ref: (el) => (this.prevBtnRef = el) }, index.h("svg", { key: '7d579cb030149947791db565bc1520ef2707c360', class: "carousel__icon", "stroke-width": "1.5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true" }, index.h("path", { key: 'fdca1a876d4967c39286bddba6122351fbf0d925', "stroke-linecap": "round", "stroke-linejoin": "round", d: "M15.75 19.5L8.25 12l7.5-7.5" }))), index.h("div", { key: '4d9a30f1988f2ce04f271967f1dd39c5287273f2', class: "carousel__dots", ref: (el) => (this.dotsRef = el) }), index.h("button", { key: 'c8bc7787821f3277c6d038e3ff1240b3ce936825', type: "button", "aria-label": "Next", class: "carousel__next", ref: (el) => (this.nextBtnRef = el) }, index.h("svg", { key: 'e6e4eff954b1b08711cc843de558e00a8257e9f8', class: "carousel__icon", "stroke-width": "1.5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true" }, index.h("path", { key: '37b394093f327bdc46f8da1dcf78ec609a585a0a', "stroke-linecap": "round", "stroke-linejoin": "round", d: "M8.25 4.5l7.5 7.5-7.5 7.5" }))))));
1945
+ : null)), !useItems && (index.h("div", { key: 'dee2fc91470728c136c9853cd74ae350ad3c5676', style: { display: 'none' }, "aria-hidden": "true" }, index.h("slot", { key: '35dd47c03a1b9b6b73d845252c3d0482590f7da2', ref: (el) => (this.slotRef = el) }))), index.h("div", { key: 'df639ad86ae8533f1dc15eed30afb70d99e36e1a', class: `carousel__controls ${this.controlClass || ''}`.trim() }, index.h("button", { key: 'c17c0ea9bf023b5d2621e558c957d92b13425584', type: "button", "aria-label": "Previous", class: "carousel__prev", ref: (el) => (this.prevBtnRef = el) }, index.h("svg", { key: '5125abcae0b08ee72106d511b4c24c2d0f24187b', class: "carousel__icon", "stroke-width": "1.5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true" }, index.h("path", { key: '9b7f28be56f451ad14de226d7163a5587a1cd9e6', "stroke-linecap": "round", "stroke-linejoin": "round", d: "M15.75 19.5L8.25 12l7.5-7.5" }))), index.h("div", { key: '9939d3496092a3f319efac9132cec8097c83b497', class: "carousel__dots", ref: (el) => (this.dotsRef = el) }), index.h("button", { key: 'a0b1228f6df0065885f1d272386283926e78464b', type: "button", "aria-label": "Next", class: "carousel__next", ref: (el) => (this.nextBtnRef = el) }, index.h("svg", { key: 'e00c92cc0485f41a30e97d5d0466aaee48a64998', class: "carousel__icon", "stroke-width": "1.5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true" }, index.h("path", { key: 'a35c46fdbd1cd333d3e6f76590f45dd837546165', "stroke-linecap": "round", "stroke-linejoin": "round", d: "M8.25 4.5l7.5 7.5-7.5 7.5" }))))));
1905
1946
  }
1906
1947
  };
1907
1948
  AppCarousel.style = carouselCss();
1908
1949
 
1950
+ /**
1951
+ * Mock jobs for local development and docs.
1952
+ * Use in www or static HTML: jobs='...' (JSON.stringify(mockJobs)).
1953
+ */
1954
+ const mockJobsListOnly = [
1955
+ {
1956
+ title: 'Senior Software Engineer',
1957
+ reference: 'REF-001',
1958
+ originalURL: '/jobs/senior-software-engineer',
1959
+ applyURL: 'https://apply.example.com/1',
1960
+ brandName: 'Engineering',
1961
+ isRemote: false,
1962
+ locations: [
1963
+ {
1964
+ city: 'San Francisco',
1965
+ stateAbbr: 'CA',
1966
+ countryAbbr: 'US',
1967
+ distance: 5.2,
1968
+ streetAddress: '123 Market St',
1969
+ cityStateAbbr: 'San Francisco, CA',
1970
+ },
1971
+ ],
1972
+ employmentType: ['Full-time', 'Permanent'],
1973
+ },
1974
+ {
1975
+ title: 'Product Manager',
1976
+ reference: '',
1977
+ originalURL: '/jobs/product-manager',
1978
+ brandName: 'Product',
1979
+ isRemote: true,
1980
+ locations: [],
1981
+ employmentType: ['Full-time'],
1982
+ },
1983
+ {
1984
+ title: 'UX Designer',
1985
+ reference: 'REF-003',
1986
+ originalURL: '/jobs/ux-designer',
1987
+ brandName: 'Design',
1988
+ isRemote: false,
1989
+ locations: [
1990
+ {
1991
+ city: 'New York',
1992
+ stateAbbr: 'NY',
1993
+ countryAbbr: 'US',
1994
+ distance: 0,
1995
+ cityStateAbbr: 'New York, NY',
1996
+ },
1997
+ {
1998
+ city: 'Boston',
1999
+ stateAbbr: 'MA',
2000
+ countryAbbr: 'US',
2001
+ cityStateAbbr: 'Boston, MA',
2002
+ },
2003
+ ],
2004
+ employmentType: ['Full-time', 'Contract'],
2005
+ },
2006
+ ];
2007
+
2008
+ const jobsListOnlyUiCss = () => `:host{display:block}.jobs-list-root{list-style:none}.results-container{position:relative}.loader{display:inline-block;width:24px;height:24px;border:2px solid #ddd;border-top-color:#1f9755;border-radius:50%;animation:jobs-list-spin 0.8s linear infinite}.loader.hide{display:none}@keyframes jobs-list-spin{to{transform:rotate(360deg)}}.card{border:0}.results-list{list-style:none;margin:0;padding:0;display:block}.results-list.front{margin:3px 0}.results-list__item{list-style:none;padding:10px 0;border-bottom:1px solid #ddd;margin:15px 0;display:inline-block;width:100%;position:relative}.results-list__item:last-child{border-bottom:none}.results-list__item-header{margin:10px 0;font-size:18px;font-weight:700;display:flex;flex-direction:column}.results-list__item-title{margin:0}.results-list__item-title--link{text-decoration:none;color:#1f9755}.results-list__item-title--link:hover{text-decoration:underline}.reference{margin-left:8px;font-size:0.9em;color:#666}.reference.empty{display:none}.remote{background:#f3f3f3;color:#808285;border-radius:100px;padding:6px 16px;text-transform:uppercase;font-size:12px;font-weight:700;line-height:24px;margin-left:8px}.remote--empty{display:none}.results-list__item-distance{display:inline-flex;align-items:center;gap:4px;margin-top:4px;font-size:14px;font-weight:400}.results-list__item-distance--icon{display:inline-flex}.results-list__item-distance--icon svg{width:16px;height:16px}.results-list__item-content{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-top:8px}.results-list__item-info{flex:1}.results-list__item-street,.results-list__item-brand,.results-list__item-employment-type{margin:10px 0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}.results-list__item-street--empty,.results-list__item-brand--empty,.results-list__item-employment-type--empty{color:#999}.results-list__item-street--icon,.results-list__item-brand--icon,.results-list__item-employment-type--icon{margin-right:6px;display:inline-flex}.results-list__item-street--icon svg,.results-list__item-brand--icon svg,.results-list__item-employment-type--icon svg{width:16px;height:16px}.results-list__item-street--more-locations__wrapper{margin-left:8px}.results-list__item-street--amount{font-weight:600}.results-list__item-apply{margin:10px 0;padding:10px 20px;display:inline-flex;align-items:center;gap:8px;background-color:#198754;color:#fff;border-radius:3px;text-decoration:none;font-weight:600;flex-shrink:0}.results-list__item-apply:hover{background-color:#1f9755;color:#fff}.results-list__item-apply--icon svg{width:14px;height:14px}.share-jobs__no-results{padding:24px;text-align:center}.share-jobs__no-results h2,.share-jobs__no-results h3{margin:8px 0;font-weight:600}.card.primary-color{padding:16px;border-radius:4px;background:#f8f9fa}.result-suggestions-title{margin:0 0 12px 0;font-size:16px}.results-list .result-suggestions-line{list-style:none;margin:4px 0}`;
2009
+
2010
+ const defaultNoResultsLine1 = "Sorry, we're not able to load results for your search.";
2011
+ const defaultNoResultsLine2 = 'Please refine your keywords in the search bar above and try again.';
2012
+ function getLocationLabel(loc) {
2013
+ if (loc.cityStateAbbr)
2014
+ return loc.cityStateAbbr;
2015
+ const parts = [loc.streetAddress, loc.city, loc.stateAbbr || loc.state, loc.countryAbbr || loc.country].filter(Boolean);
2016
+ return parts.join(', ') || loc.locationText || '';
2017
+ }
2018
+ function getFirstLocation(job) {
2019
+ const locs = job.locations;
2020
+ if (!locs?.length)
2021
+ return undefined;
2022
+ return locs[0];
2023
+ }
2024
+ const JobsListOnlyUI = class {
2025
+ constructor(hostRef) {
2026
+ index.registerInstance(this, hostRef);
2027
+ }
2028
+ /**
2029
+ * When "true", use built-in mock data (for local/dev/docs). Otherwise use `jobs` from API/parent.
2030
+ */
2031
+ mockData = false;
2032
+ /** List of jobs to display. Pass as JSON string from attribute or as array via property (e.g. from React). Ignored when mock-data="true". */
2033
+ jobs = [];
2034
+ /** Show loading spinner. Ignored when mock-data="true" (mock shows data immediately). */
2035
+ loading = false;
2036
+ /** Total job count (for screen readers / schema). */
2037
+ totalJob = 0;
2038
+ noResultsLine1 = defaultNoResultsLine1;
2039
+ noResultsLine2 = defaultNoResultsLine2;
2040
+ applyButtonText = 'Apply Now';
2041
+ showBrand = true;
2042
+ showReference = false;
2043
+ showEmploymentType = true;
2044
+ streetFormat = '{street}, {city_state_abbr}';
2045
+ multiLocationText = 'More locations';
2046
+ remoteLocationText = 'Remote';
2047
+ enableKilometers = false;
2048
+ /** Extra CSS class on the root element (avoid prop name "class" / "classname" reserved). */
2049
+ rootClass = '';
2050
+ showSuggestions = false;
2051
+ clearResultSuggestionsTitleText = 'Suggestions';
2052
+ clearResultSuggestionsLine1 = 'Try different keywords';
2053
+ clearResultSuggestionsLine2 = 'Make sure everything is spelled correctly';
2054
+ clearResultSuggestionsLine3 = 'Try other locations';
2055
+ clearResultSuggestionsLine4 = '';
2056
+ getJobsArray() {
2057
+ if (this.mockData) {
2058
+ return mockJobsListOnly;
2059
+ }
2060
+ const j = this.jobs;
2061
+ if (Array.isArray(j))
2062
+ return j;
2063
+ if (typeof j === 'string') {
2064
+ try {
2065
+ const parsed = JSON.parse(j);
2066
+ return Array.isArray(parsed) ? parsed : [];
2067
+ }
2068
+ catch {
2069
+ return [];
2070
+ }
2071
+ }
2072
+ return [];
2073
+ }
2074
+ formatDistance(distance) {
2075
+ const value = this.enableKilometers ? distance * 1.60934 : distance;
2076
+ const unit = this.enableKilometers ? 'Km' : 'Miles';
2077
+ const str = `${value.toFixed(1)} ${unit}`.replace('.0', '');
2078
+ return str;
2079
+ }
2080
+ renderJobItem(job, _index) {
2081
+ const firstLoc = getFirstLocation(job);
2082
+ const locationLabel = firstLoc ? getLocationLabel(firstLoc) : '';
2083
+ const distance = firstLoc?.distance ?? 0;
2084
+ const distanceLabel = distance > 0 ? this.formatDistance(distance) : '';
2085
+ const applyHref = job.applyURL || (job.originalURL ? `${typeof window !== 'undefined' ? window.location.origin : ''}${job.originalURL}` : '#');
2086
+ const applyLabel = `${this.applyButtonText}, ${job.title || ''}`;
2087
+ const locs = job.locations ?? [];
2088
+ const hasMultipleLocations = locs.length > 1;
2089
+ return (index.h("li", { class: "results-list__item" }, index.h("div", { class: "results-list__item-header" }, index.h("h3", { class: "results-list__item-title" }, index.h("a", { class: "results-list__item-title--link", href: applyHref, target: "_blank", rel: "noopener noreferrer" }, job.title || ''), this.showReference && (index.h("span", { class: `reference ${job.reference ? '' : 'empty'}` }, job.reference || '')), job.isRemote && (index.h("span", { class: this.remoteLocationText ? 'remote' : 'remote remote--empty' }, this.remoteLocationText))), distanceLabel && (index.h("div", { class: "results-list__item-distance" }, index.h("span", { class: "results-list__item-distance--icon" }, index.h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.5" }, index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z" }), index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M12 8v4l2 2" }))), index.h("span", { class: "results-list__item-distance--label" }, distanceLabel)))), index.h("div", { class: "results-list__item-content" }, index.h("div", { class: "results-list__item-info" }, index.h("div", { class: locs.length
2090
+ ? 'results-list__item-street'
2091
+ : 'results-list__item-street results-list__item-street--empty' }, index.h("div", { class: "results-list__item-street--label__wrapper" }, index.h("span", { class: "results-list__item-street--icon" }, index.h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.5" }, index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0z" }), index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0z" }))), index.h("span", { class: "results-list__item-street--label" }, locationLabel || '—')), hasMultipleLocations && (index.h("div", { class: "results-list__item-street--more-locations__wrapper" }, index.h("span", { class: "results-list__item-street--amount" }, "+", locs.length - 1), index.h("span", { class: "results-list__item-street--more-locations" }, this.multiLocationText)))), this.showBrand && (index.h("div", { class: job.brandName
2092
+ ? 'results-list__item-brand'
2093
+ : 'results-list__item-brand results-list__item-brand--empty' }, index.h("span", { class: "results-list__item-brand--icon" }, index.h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.5" }, index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M2.25 21h19.5m-18-18v18m10.5-18v18m6-13.5V21M6.75 6.75h.75m-.75 3h.75m-.75 3h.75m3-6h.75m-.75 3h.75m-.75 3h.75M6.75 21v-3.375c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21M3 3h12m-.75 4.5H21m-3.75 3.75h.008v.008h-.008v-.008zm0 3h.008v.008h-.008v-.008zm0 3h.008v.008h-.008v-.008z" }))), index.h("span", { class: "results-list__item-brand--label" }, job.brandName || '—'))), this.showEmploymentType && (index.h("div", { class: job.employmentType?.length
2094
+ ? 'results-list__item-employment-type'
2095
+ : 'results-list__item-employment-type results-list__item-employment-type--empty' }, index.h("span", { class: "results-list__item-employment-type--icon" }, index.h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.5" }, index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0z" }))), (job.employmentType?.length
2096
+ ? job.employmentType
2097
+ : ['—']).map((type) => (index.h("span", { key: type, class: "results-list__item-employment-type--label" }, type))))), (job.jobCardExtraFields ?? []).map((field, i) => (index.h("div", { key: i, class: (Array.isArray(field.value) ? field.value.length : field.value)
2098
+ ? field.classname
2099
+ : `${field.classname}--empty` }, Array.isArray(field.value)
2100
+ ? field.value.map((v, j) => (index.h("span", { key: j, class: `${field.classname}--label` }, v)))
2101
+ : (index.h("span", { class: `${field.classname}--label` }, String(field.value))))))), index.h("a", { class: "results-list__item-apply", href: applyHref, target: "_blank", rel: "noopener noreferrer", "aria-label": applyLabel }, index.h("span", { class: "results-list__item-apply--label" }, this.applyButtonText), index.h("span", { class: "results-list__item-apply--icon" }, index.h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M13 7l5 5m0 0l-5 5m5-5H6" })))))));
2102
+ }
2103
+ render() {
2104
+ const jobsArray = this.getJobsArray();
2105
+ const loading = this.mockData ? false : this.loading;
2106
+ const totalJob = this.mockData ? jobsArray.length : (this.totalJob || jobsArray.length);
2107
+ const showNoResults = !loading && totalJob === 0 && !this.showSuggestions;
2108
+ const showSuggestionsBlock = !loading && totalJob === 0 && this.showSuggestions;
2109
+ return (index.h("div", { key: 'c2e9c9146a24f0869cbd75588b2718c94f62bbbc', class: `jobs-list-root ${this.rootClass}`.trim() }, index.h("div", { key: 'b2f3dffe7e17797b378bd648f54e46bb31e2d374', class: "results-container" }, index.h("div", { key: '4733870b035ec307b6e691f1d62ed8568e93fd1f', class: loading ? 'loader' : 'loader hide', "aria-hidden": !loading }), totalJob > 0 && (index.h("div", { key: 'a9438f079041e0121fafdcb42089f27482475491', class: "card" }, index.h("ul", { key: '3bd7dcc64f46aec24945a25df7345766606a51bd', class: "results-list front" }, jobsArray.map((job, index) => this.renderJobItem(job, index))))), showNoResults && (index.h("div", { key: '1996476568c745e0ada31b47bb1a1be2efaf6917', class: "share-jobs__no-results" }, index.h("h2", { key: '8d2a79881428d89d783b05f26d06abbef94f5c2e' }, this.noResultsLine1), index.h("h3", { key: '855704ea47b06a701c0e59a8bb43fb405ad3bb96' }, this.noResultsLine2))), showSuggestionsBlock && (index.h("div", { key: '74da6e8243423dc9770f4dc67f46f5627c352349', class: "card primary-color" }, index.h("h4", { key: 'd3fb2ef03a656331f97afe3692b05bbe064ed124', class: "result-suggestions-title" }, this.clearResultSuggestionsTitleText, ":"), index.h("ul", { key: '63914647653930e6c686a38d779af20e7e5c17d5', class: "results-list front" }, index.h("li", { key: '82063c023701d0c42ca2787f382d42a80f569b6a', class: "result-suggestions-line" }, this.clearResultSuggestionsLine1), index.h("li", { key: '7645d7a7435f76854b8eeb0d693a883fc341764e', class: "result-suggestions-line" }, this.clearResultSuggestionsLine2), index.h("li", { key: '060675d017137e8b23342c92efadc769e2bae1c2', class: "result-suggestions-line" }, this.clearResultSuggestionsLine3), this.clearResultSuggestionsLine4 && (index.h("li", { key: '0f6ef00a4f6267dc9ad2441e16f02c82b0994d03', class: "result-suggestions-line" }, this.clearResultSuggestionsLine4))))))));
2110
+ }
2111
+ };
2112
+ JobsListOnlyUI.style = jobsListOnlyUiCss();
2113
+
2114
+ exports.fast_button = CustomButton;
1909
2115
  exports.fast_carousel = AppCarousel;
2116
+ exports.jobs_list_only_ui = JobsListOnlyUI;