@inploi/plugin-job-search 9.2.0 → 9.3.0
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/README.md +9 -7
- package/cdn/index.js +14 -14
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{job-search-4dhEa2UZ.js → job-search-CkwwTVkM.js} +1937 -1946
- package/dist/job-search-DyRuFVYr.cjs +44 -0
- package/dist/{map-RWZQgQ0o.js → map-B7xhLyNZ.js} +139 -124
- package/dist/map-outcome-BiHZjMoM.cjs +26 -0
- package/dist/map-outcome-zYbBd2H8.js +150 -0
- package/dist/{map-BRREfYtI.cjs → map-stOwdTz6.cjs} +1 -1
- package/dist/{mapbox-gl-DLs2e1S-.js → mapbox-gl-BKeoApBS.js} +1 -1
- package/dist/{mapbox-gl-mKULjIJW.cjs → mapbox-gl-Buwj8UJV.cjs} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +17 -0
- package/dist/utils.d.ts +17 -0
- package/dist/utils.js +3 -2
- package/package.json +12 -7
- package/dist/job-search-CVo-37ft.cjs +0 -44
- package/dist/map-attribution-By9wrlPf.js +0 -134
- package/dist/map-attribution-DyuZ3dMC.cjs +0 -26
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
const f = "https://maps.inploi.com", I = {
|
|
2
|
-
"mapbox://styles/mapbox/light-v10": "default",
|
|
3
|
-
"mapbox://styles/mapbox/light-v11": "default",
|
|
4
|
-
"mapbox://styles/mapbox/outdoors-v12": "outdoors",
|
|
5
|
-
"mapbox://styles/mapbox/streets-v12": "streets",
|
|
6
|
-
// Client styles made from Mapbox's Monochrome template.
|
|
7
|
-
"mapbox://styles/alexhansonsmith/cldkh2fyi002301p617kc5rrh": "compass",
|
|
8
|
-
"mapbox://styles/alexhansonsmith/cldj2i4oz005801lf1xmohhus": "compass-referral",
|
|
9
|
-
"mapbox://styles/alexhansonsmith/cmd76vn6g00tr01s9gnfle0md": "gails",
|
|
10
|
-
"mapbox://styles/alexhansonsmith/cmfwjnq0d008z01qp1uay3v1h": "innocent",
|
|
11
|
-
"mapbox://styles/alexhansonsmith/cmaf5mxox00to01s42gg4etql": "the-bread-factory",
|
|
12
|
-
"mapbox://styles/alexhansonsmith/cmp6n4syr004y01s73cwu7yo1": "wagamama"
|
|
13
|
-
}, R = /^https:\/\/(?:[\w-]+\.)*mapbox\.com(?:[/?#:]|$)/i, _ = /^https:\/\/api\.mapbox\.com\/styles\/v1\/([^/?#]+\/[^/?#]+)\/?(?:[?#]|$)/;
|
|
14
|
-
function z(e) {
|
|
15
|
-
var r;
|
|
16
|
-
if (e === void 0) return { url: `${f}/styles/default.json` };
|
|
17
|
-
if (/^[a-z0-9][a-z0-9-]*$/.test(e)) return { url: `${f}/styles/${e}.json` };
|
|
18
|
-
if (e.startsWith("mapbox://") || R.test(e)) {
|
|
19
|
-
const l = (r = _.exec(e)) == null ? void 0 : r[1], a = I[l ? `mapbox://styles/${l}` : e];
|
|
20
|
-
return a ? { url: `${f}/styles/${a}.json` } : { url: `${f}/styles/default.json`, unmapped: e };
|
|
21
|
-
}
|
|
22
|
-
if (e.startsWith("https://")) return { url: e };
|
|
23
|
-
throw new Error(`Unsupported map style: ${e}`);
|
|
24
|
-
}
|
|
25
|
-
const j = `
|
|
26
|
-
.maplibregl-ctrl.maplibregl-ctrl-attrib.inploi-map-attribution {
|
|
27
|
-
font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
|
|
28
|
-
color: rgb(32, 32, 32);
|
|
29
|
-
opacity: 1;
|
|
30
|
-
text-align: right;
|
|
31
|
-
white-space: normal;
|
|
32
|
-
}
|
|
33
|
-
.maplibregl-ctrl.inploi-map-attribution a {
|
|
34
|
-
display: inline;
|
|
35
|
-
padding: 0;
|
|
36
|
-
margin: 0;
|
|
37
|
-
font: inherit;
|
|
38
|
-
white-space: nowrap;
|
|
39
|
-
color: rgba(0, 0, 0, .75);
|
|
40
|
-
}
|
|
41
|
-
.maplibregl-ctrl.inploi-map-attribution button {
|
|
42
|
-
display: none;
|
|
43
|
-
padding: 0;
|
|
44
|
-
margin: 0;
|
|
45
|
-
background-color: rgba(255, 255, 255, .5);
|
|
46
|
-
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");
|
|
47
|
-
}
|
|
48
|
-
.maplibregl-ctrl.inploi-map-attribution.maplibregl-compact button { display: block; }
|
|
49
|
-
.maplibregl-ctrl.inploi-map-attribution.maplibregl-compact-show button { background-color: rgba(0, 0, 0, .05); }
|
|
50
|
-
`;
|
|
51
|
-
function B(e) {
|
|
52
|
-
const r = document.createElement("div");
|
|
53
|
-
r.className = "maplibregl-ctrl maplibregl-ctrl-attrib inploi-map-attribution";
|
|
54
|
-
const l = document.createElement("div");
|
|
55
|
-
l.className = "maplibregl-ctrl-attrib-inner";
|
|
56
|
-
const a = document.createElement("button");
|
|
57
|
-
a.type = "button", a.className = "maplibregl-ctrl-attrib-button", a.setAttribute("aria-label", "Toggle map attribution"), a.setAttribute("aria-expanded", "true"), r.append(a, l);
|
|
58
|
-
const h = document.createElement("style");
|
|
59
|
-
h.textContent = j;
|
|
60
|
-
let t, T = "", u = !1, A = !1, g, x, v;
|
|
61
|
-
function y(o) {
|
|
62
|
-
r.classList.toggle("maplibregl-compact-show", o && u), a.setAttribute("aria-expanded", String(o));
|
|
63
|
-
}
|
|
64
|
-
function w() {
|
|
65
|
-
clearTimeout(g), y(!0), u && A && (g = setTimeout(() => {
|
|
66
|
-
r.contains(document.activeElement) || y(!1);
|
|
67
|
-
}, 5e3));
|
|
68
|
-
}
|
|
69
|
-
a.addEventListener("click", () => {
|
|
70
|
-
clearTimeout(g), y(a.getAttribute("aria-expanded") !== "true");
|
|
71
|
-
});
|
|
72
|
-
function O() {
|
|
73
|
-
const o = ((t == null ? void 0 : t.getContainer().clientWidth) ?? 0) < 480;
|
|
74
|
-
o !== u && (u = o, r.classList.toggle("maplibregl-compact", u), w());
|
|
75
|
-
}
|
|
76
|
-
function c() {
|
|
77
|
-
var k, $;
|
|
78
|
-
const o = '<a href="https://www.openstreetmap.org/copyright">© OpenStreetMap contributors</a>', b = /* @__PURE__ */ new Set();
|
|
79
|
-
if (new URL(e).origin === "https://maps.inploi.com")
|
|
80
|
-
b.add(o);
|
|
81
|
-
else {
|
|
82
|
-
const s = ((k = t == null ? void 0 : t.getStyle()) == null ? void 0 : k.sources) ?? {};
|
|
83
|
-
for (const [S, i] of Object.entries(s)) {
|
|
84
|
-
const d = (($ = t == null ? void 0 : t.getSource(S)) == null ? void 0 : $.attribution) ?? ("attribution" in i ? i.attribution : void 0);
|
|
85
|
-
d && b.add(d);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
const m = document.createDocumentFragment(), N = /* @__PURE__ */ new Set();
|
|
89
|
-
let C = !1;
|
|
90
|
-
for (const s of [...b, o]) {
|
|
91
|
-
if (s === o && C) continue;
|
|
92
|
-
const S = new DOMParser().parseFromString(s, "text/html"), i = document.createDocumentFragment(), d = (n) => {
|
|
93
|
-
if (n.nodeType === Node.TEXT_NODE)
|
|
94
|
-
i.append(document.createTextNode(n.textContent ?? ""));
|
|
95
|
-
else if (n instanceof HTMLAnchorElement) {
|
|
96
|
-
if (n.protocol !== "http:" && n.protocol !== "https:" || !n.textContent.trim()) return;
|
|
97
|
-
const L = JSON.stringify([n.textContent, n.href]);
|
|
98
|
-
if (N.has(L)) return;
|
|
99
|
-
N.add(L);
|
|
100
|
-
const p = document.createElement("a");
|
|
101
|
-
p.textContent = n.textContent, p.href = n.href, p.target = "_blank", p.rel = "noopener noreferrer";
|
|
102
|
-
const P = new URL(p.href).hostname;
|
|
103
|
-
(P === "www.openstreetmap.org" || P === "openstreetmap.org") && (C = !0), i.append(p);
|
|
104
|
-
} else n instanceof Element && !["SCRIPT", "STYLE", "IFRAME", "OBJECT", "TEMPLATE"].includes(n.tagName) && n.childNodes.forEach(d);
|
|
105
|
-
};
|
|
106
|
-
S.body.childNodes.forEach(d), /\bOpenStreetMap\b/i.test(i.textContent) && (C = !0), i.textContent.trim() && (m.childNodes.length && m.append(" | "), m.append(i));
|
|
107
|
-
}
|
|
108
|
-
const M = JSON.stringify([
|
|
109
|
-
m.textContent,
|
|
110
|
-
Array.from(m.querySelectorAll("a"), (s) => [s.textContent, s.href])
|
|
111
|
-
]);
|
|
112
|
-
M !== T && (l.replaceChildren(m), T = M, w());
|
|
113
|
-
}
|
|
114
|
-
return {
|
|
115
|
-
onAdd(o) {
|
|
116
|
-
return t = o, t.getContainer().append(h), c(), O(), t.on("style.load", c), t.on("sourcedata", c), x = new ResizeObserver(O), x.observe(t.getContainer()), v = new IntersectionObserver(
|
|
117
|
-
(b) => {
|
|
118
|
-
A = b.some((E) => E.isIntersecting && E.intersectionRatio === 1), w();
|
|
119
|
-
},
|
|
120
|
-
{ threshold: 1 }
|
|
121
|
-
), v.observe(r), r;
|
|
122
|
-
},
|
|
123
|
-
onRemove() {
|
|
124
|
-
clearTimeout(g), x.disconnect(), v.disconnect(), t == null || t.off("style.load", c), t == null || t.off("sourcedata", c), t = void 0, h.remove(), r.remove();
|
|
125
|
-
},
|
|
126
|
-
setStyle(o) {
|
|
127
|
-
e = o, c();
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
export {
|
|
132
|
-
B as c,
|
|
133
|
-
z as r
|
|
134
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";const f="https://maps.inploi.com",I={"mapbox://styles/mapbox/light-v10":"default","mapbox://styles/mapbox/light-v11":"default","mapbox://styles/mapbox/outdoors-v12":"outdoors","mapbox://styles/mapbox/streets-v12":"streets","mapbox://styles/alexhansonsmith/cldkh2fyi002301p617kc5rrh":"compass","mapbox://styles/alexhansonsmith/cldj2i4oz005801lf1xmohhus":"compass-referral","mapbox://styles/alexhansonsmith/cmd76vn6g00tr01s9gnfle0md":"gails","mapbox://styles/alexhansonsmith/cmfwjnq0d008z01qp1uay3v1h":"innocent","mapbox://styles/alexhansonsmith/cmaf5mxox00to01s42gg4etql":"the-bread-factory","mapbox://styles/alexhansonsmith/cmp6n4syr004y01s73cwu7yo1":"wagamama"},R=/^https:\/\/(?:[\w-]+\.)*mapbox\.com(?:[/?#:]|$)/i,_=/^https:\/\/api\.mapbox\.com\/styles\/v1\/([^/?#]+\/[^/?#]+)\/?(?:[?#]|$)/;function j(e){var r;if(e===void 0)return{url:`${f}/styles/default.json`};if(/^[a-z0-9][a-z0-9-]*$/.test(e))return{url:`${f}/styles/${e}.json`};if(e.startsWith("mapbox://")||R.test(e)){const l=(r=_.exec(e))==null?void 0:r[1],a=I[l?`mapbox://styles/${l}`:e];return a?{url:`${f}/styles/${a}.json`}:{url:`${f}/styles/default.json`,unmapped:e}}if(e.startsWith("https://"))return{url:e};throw new Error(`Unsupported map style: ${e}`)}const z=`
|
|
2
|
-
.maplibregl-ctrl.maplibregl-ctrl-attrib.inploi-map-attribution {
|
|
3
|
-
font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
|
|
4
|
-
color: rgb(32, 32, 32);
|
|
5
|
-
opacity: 1;
|
|
6
|
-
text-align: right;
|
|
7
|
-
white-space: normal;
|
|
8
|
-
}
|
|
9
|
-
.maplibregl-ctrl.inploi-map-attribution a {
|
|
10
|
-
display: inline;
|
|
11
|
-
padding: 0;
|
|
12
|
-
margin: 0;
|
|
13
|
-
font: inherit;
|
|
14
|
-
white-space: nowrap;
|
|
15
|
-
color: rgba(0, 0, 0, .75);
|
|
16
|
-
}
|
|
17
|
-
.maplibregl-ctrl.inploi-map-attribution button {
|
|
18
|
-
display: none;
|
|
19
|
-
padding: 0;
|
|
20
|
-
margin: 0;
|
|
21
|
-
background-color: rgba(255, 255, 255, .5);
|
|
22
|
-
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");
|
|
23
|
-
}
|
|
24
|
-
.maplibregl-ctrl.inploi-map-attribution.maplibregl-compact button { display: block; }
|
|
25
|
-
.maplibregl-ctrl.inploi-map-attribution.maplibregl-compact-show button { background-color: rgba(0, 0, 0, .05); }
|
|
26
|
-
`;function B(e){const r=document.createElement("div");r.className="maplibregl-ctrl maplibregl-ctrl-attrib inploi-map-attribution";const l=document.createElement("div");l.className="maplibregl-ctrl-attrib-inner";const a=document.createElement("button");a.type="button",a.className="maplibregl-ctrl-attrib-button",a.setAttribute("aria-label","Toggle map attribution"),a.setAttribute("aria-expanded","true"),r.append(a,l);const h=document.createElement("style");h.textContent=z;let t,T="",u=!1,A=!1,g,x,v;function y(o){r.classList.toggle("maplibregl-compact-show",o&&u),a.setAttribute("aria-expanded",String(o))}function w(){clearTimeout(g),y(!0),u&&A&&(g=setTimeout(()=>{r.contains(document.activeElement)||y(!1)},5e3))}a.addEventListener("click",()=>{clearTimeout(g),y(a.getAttribute("aria-expanded")!=="true")});function O(){const o=((t==null?void 0:t.getContainer().clientWidth)??0)<480;o!==u&&(u=o,r.classList.toggle("maplibregl-compact",u),w())}function c(){var k,$;const o='<a href="https://www.openstreetmap.org/copyright">© OpenStreetMap contributors</a>',b=new Set;if(new URL(e).origin==="https://maps.inploi.com")b.add(o);else{const s=((k=t==null?void 0:t.getStyle())==null?void 0:k.sources)??{};for(const[S,i]of Object.entries(s)){const d=(($=t==null?void 0:t.getSource(S))==null?void 0:$.attribution)??("attribution"in i?i.attribution:void 0);d&&b.add(d)}}const p=document.createDocumentFragment(),M=new Set;let C=!1;for(const s of[...b,o]){if(s===o&&C)continue;const S=new DOMParser().parseFromString(s,"text/html"),i=document.createDocumentFragment(),d=n=>{if(n.nodeType===Node.TEXT_NODE)i.append(document.createTextNode(n.textContent??""));else if(n instanceof HTMLAnchorElement){if(n.protocol!=="http:"&&n.protocol!=="https:"||!n.textContent.trim())return;const L=JSON.stringify([n.textContent,n.href]);if(M.has(L))return;M.add(L);const m=document.createElement("a");m.textContent=n.textContent,m.href=n.href,m.target="_blank",m.rel="noopener noreferrer";const P=new URL(m.href).hostname;(P==="www.openstreetmap.org"||P==="openstreetmap.org")&&(C=!0),i.append(m)}else n instanceof Element&&!["SCRIPT","STYLE","IFRAME","OBJECT","TEMPLATE"].includes(n.tagName)&&n.childNodes.forEach(d)};S.body.childNodes.forEach(d),/\bOpenStreetMap\b/i.test(i.textContent)&&(C=!0),i.textContent.trim()&&(p.childNodes.length&&p.append(" | "),p.append(i))}const N=JSON.stringify([p.textContent,Array.from(p.querySelectorAll("a"),s=>[s.textContent,s.href])]);N!==T&&(l.replaceChildren(p),T=N,w())}return{onAdd(o){return t=o,t.getContainer().append(h),c(),O(),t.on("style.load",c),t.on("sourcedata",c),x=new ResizeObserver(O),x.observe(t.getContainer()),v=new IntersectionObserver(b=>{A=b.some(E=>E.isIntersecting&&E.intersectionRatio===1),w()},{threshold:1}),v.observe(r),r},onRemove(){clearTimeout(g),x.disconnect(),v.disconnect(),t==null||t.off("style.load",c),t==null||t.off("sourcedata",c),t=void 0,h.remove(),r.remove()},setStyle(o){e=o,c()}}}exports.createMapAttribution=B;exports.resolveMapStyle=j;
|