@phatvu/web-component-poc 1.0.0 → 1.0.2

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 (50) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  2. package/dist/cjs/fast-button_2.cjs.entry.js +211 -0
  3. package/dist/cjs/fast-carousel.cjs.entry.js +1909 -0
  4. package/dist/cjs/index-C756SOR-.js +2225 -0
  5. package/dist/cjs/index.cjs.js +7 -0
  6. package/dist/cjs/loader.cjs.js +13 -0
  7. package/dist/cjs/web-component-poc.cjs.js +25 -0
  8. package/dist/collection/collection-manifest.json +15 -0
  9. package/dist/collection/components/button/button.css +76 -0
  10. package/dist/collection/components/button/button.js +145 -0
  11. package/dist/collection/components/fast-carousel/carousel.css +98 -0
  12. package/dist/collection/components/fast-carousel/carousel.js +439 -0
  13. package/dist/collection/components/jobs-list-only-ui/jobs-list-only-ui.css +228 -0
  14. package/dist/collection/components/jobs-list-only-ui/jobs-list-only-ui.js +543 -0
  15. package/dist/collection/index.js +10 -0
  16. package/dist/collection/mock/jobs-list-only.mock.js +60 -0
  17. package/dist/collection/types/jobs-list.js +1 -0
  18. package/dist/collection/utils/utils.js +3 -0
  19. package/dist/components/fast-button.js +1 -0
  20. package/dist/components/fast-carousel.js +1 -0
  21. package/dist/components/index.js +1 -0
  22. package/dist/components/jobs-list-only-ui.js +1 -0
  23. package/dist/components/p-Cw2MJ5l2.js +1 -0
  24. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  25. package/dist/{web-component-poc/jobs-list-only-ui.entry.js → esm/fast-button_2.entry.js} +44 -9
  26. package/dist/{web-component-poc → esm}/fast-carousel.entry.js +1 -4
  27. package/dist/esm/index-D7_MJBO8.js +2217 -0
  28. package/dist/esm/index.js +5 -0
  29. package/dist/esm/loader.js +11 -0
  30. package/dist/esm/web-component-poc.js +21 -0
  31. package/dist/index.cjs.js +1 -0
  32. package/dist/index.js +1 -0
  33. package/dist/web-component-poc/index-xE9n11HX.js.map +1 -0
  34. package/dist/web-component-poc/index.esm.js +1 -18
  35. package/dist/web-component-poc/p-0bc6d45d.entry.js +1 -0
  36. package/dist/web-component-poc/p-8ab359cc.entry.js +1 -0
  37. package/dist/web-component-poc/p-D7_MJBO8.js +2 -0
  38. package/dist/web-component-poc/p-DQuL1Twl.js +1 -0
  39. package/dist/web-component-poc/web-component-poc.esm.js +1 -50
  40. package/hydrate/index.d.ts +287 -0
  41. package/hydrate/index.js +25150 -0
  42. package/hydrate/index.mjs +25140 -0
  43. package/hydrate/package.json +12 -0
  44. package/package.json +11 -2
  45. package/dist/web-component-poc/fast-button.entry.js +0 -47
  46. package/dist/web-component-poc/fast-button.entry.js.map +0 -1
  47. package/dist/web-component-poc/fast-carousel.entry.js.map +0 -1
  48. package/dist/web-component-poc/index-B0WZf8UB.js +0 -4585
  49. package/dist/web-component-poc/index-B0WZf8UB.js.map +0 -1
  50. package/dist/web-component-poc/jobs-list-only-ui.entry.js.map +0 -1
@@ -0,0 +1 @@
1
+ import{t as n,p as t,H as e,h as o}from"./p-Cw2MJ5l2.js";function r(n){return"number"==typeof n}function i(n){return"string"==typeof n}function s(n){return"boolean"==typeof n}function c(n){return"[object Object]"===Object.prototype.toString.call(n)}function u(n){return Math.abs(n)}function l(n){return Math.sign(n)}function a(n,t){return u(n-t)}function f(n){return m(n).map(Number)}function d(n){return n[h(n)]}function h(n){return Math.max(0,n.length-1)}function p(n,t){return t===h(n)}function g(n,t=0){return Array.from(Array(n),((n,e)=>t+e))}function m(n){return Object.keys(n)}function b(n,t){return[n,t].reduce(((n,t)=>(m(t).forEach((e=>{const o=n[e],r=t[e],i=c(o)&&c(r);n[e]=i?b(o,r):r})),n)),{})}function y(n,t){return void 0!==t.MouseEvent&&n instanceof t.MouseEvent}function v(){let n=[];const t={add:function(e,o,r,i={passive:!0}){let s;if("addEventListener"in e)e.addEventListener(o,r,i),s=()=>e.removeEventListener(o,r,i);else{const n=e;n.addListener(r),s=()=>n.removeListener(r)}return n.push(s),t},clear:function(){n=n.filter((n=>n()))}};return t}function x(n=0,t=0){const e=u(n-t);function o(t){return t<n}function r(n){return n>t}function i(n){return o(n)||r(n)}return{length:e,max:t,min:n,constrain:function(e){return i(e)?o(e)?n:t:e},reachedAny:i,reachedMax:r,reachedMin:o,removeOffset:function(n){return e?n-e*Math.ceil((n-t)/e):n}}}function _(n,t,e){const{constrain:o}=x(0,n),r=n+1;let i=s(t);function s(n){return e?u((r+n)%r):o(n)}function c(){return i}function l(){return _(n,c(),e)}const a={get:c,set:function(n){return i=s(n),a},add:function(n){return l().set(c()+n)},clone:l};return a}function k(n,t,e,o,r,i,c,f,d,h,p,g,m,b,_,k,w,S,C){const{cross:E,direction:L}=n,M=["INPUT","SELECT","TEXTAREA"],I={passive:!1},T=v(),A=v(),N=x(50,225).constrain(b.measure(20)),R={mouse:300,touch:400},z={mouse:500,touch:600},O=_?43:25;let j=!1,B=0,F=0,D=!1,P=!1,H=!1,G=!1;function V(n){if(!y(n,o)&&n.touches.length>=2)return W(n);const t=i.readPoint(n),e=i.readPoint(n,E),s=a(t,B),c=a(e,F);if(!P&&!G){if(!n.cancelable)return W(n);if(P=s>c,!P)return W(n)}const u=i.pointerMove(n);s>k&&(H=!0),h.useFriction(.3).useDuration(.75),f.start(),r.add(L(u)),n.preventDefault()}function W(n){const t=p.byDistance(0,!1).index!==g.get(),e=i.pointerUp(n)*(_?z:R)[G?"mouse":"touch"],o=function(n,t){const e=g.add(-1*l(n)),o=p.byDistance(n,!_).distance;return _||u(n)<N?o:w&&t?.5*o:p.byIndex(e.get(),0).distance}(L(e),t),r=function(n,t){if(0===n||0===t)return 0;if(u(n)<=u(t))return 0;const e=a(u(n),u(t));return u(e/n)}(e,o),s=O-10*r,c=S+r/50;P=!1,D=!1,A.clear(),h.useDuration(s).useFriction(c),d.distance(o,!_),G=!1,m.emit("pointerUp")}function U(n){H&&(n.stopPropagation(),n.preventDefault(),H=!1)}return{init:function(n){if(!C)return;function u(u){(s(C)||C(n,u))&&function(n){const s=y(n,o);G=s,H=_&&s&&!n.buttons&&j,j=a(r.get(),c.get())>=2,s&&0!==n.button||function(n){return M.includes(n.nodeName||"")}(n.target)||(D=!0,i.pointerDown(n),h.useFriction(0).useDuration(0),r.set(c),function(){const n=G?e:t;A.add(n,"touchmove",V,I).add(n,"touchend",W).add(n,"mousemove",V,I).add(n,"mouseup",W)}(),B=i.readPoint(n),F=i.readPoint(n,E),m.emit("pointerDown"))}(u)}const l=t;T.add(l,"dragstart",(n=>n.preventDefault()),I).add(l,"touchmove",(()=>{}),I).add(l,"touchend",(()=>{})).add(l,"touchstart",u).add(l,"mousedown",u).add(l,"touchcancel",W).add(l,"contextmenu",W).add(l,"click",U,!0)},destroy:function(){T.clear(),A.clear()},pointerDown:function(){return D}}}function w(n,t){let e,o;function r(n){return n.timeStamp}function i(e,o){const r="client"+("x"===(o||n.scroll)?"X":"Y");return(y(e,t)?e:e.touches[0])[r]}return{pointerDown:function(n){return e=n,o=n,i(n)},pointerMove:function(n){const t=i(n)-i(o),s=r(n)-r(e)>170;return o=n,s&&(e=n),t},pointerUp:function(n){if(!e||!o)return 0;const t=i(o)-i(e),s=r(n)-r(e),c=r(n)-r(o)>170,l=t/s;return s&&!c&&u(l)>.1?l:0},readPoint:i}}function S(n,t,e,o,r,i,c){const l=[n].concat(o);let a,f,d=[],h=!1;function p(n){return r.measureSize(c.measure(n))}return{init:function(r){i&&(f=p(n),d=o.map(p),a=new ResizeObserver((e=>{(s(i)||i(r,e))&&function(e){for(const i of e){if(h)return;const e=i.target===n,s=o.indexOf(i.target),c=e?f:d[s];if(u(p(e?n:o[s])-c)>=.5){r.reInit(),t.emit("resize");break}}}(e)})),e.requestAnimationFrame((()=>{l.forEach((n=>a.observe(n)))})))},destroy:function(){h=!0,a&&a.disconnect()}}}function C(n,t,e,o,r){const i=r.measure(10),s=r.measure(50),c=x(.1,.99);let l=!1;function a(){return!l&&!!n.reachedAny(e.get())&&!!n.reachedAny(t.get())}return{shouldConstrain:a,constrain:function(r){if(!a())return;const l=n.reachedMin(t.get())?"min":"max",f=u(n[l]-t.get()),d=e.get()-t.get(),h=c.constrain(f/s);e.subtract(d*h),!r&&u(d)<i&&(e.set(n.constrain(e.get())),o.useDuration(25).useBaseFriction())},toggleActive:function(n){l=!n}}}function E(n,t,e,o){const r=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:c}=x(r,i);return{loop:function(t){if(!function(n){return 1===n?c(e.get()):-1===n&&s(e.get())}(t))return;const r=n*(-1*t);o.forEach((n=>n.add(r)))}}}function L(n){let t=n;function e(n){return r(n)?n:n.get()}return{get:function(){return t},set:function(n){t=e(n)},add:function(n){t+=e(n)},subtract:function(n){t-=e(n)}}}function M(n,t){const e="x"===n.scroll?function(n){return`translate3d(${n}px,0px,0px)`}:function(n){return`translate3d(0px,${n}px,0px)`},o=t.style;let r=null,i=!1;return{clear:function(){i||(o.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(i)return;const s=function(n){return Math.round(100*n)/100}(n.direction(t));s!==r&&(o.transform=e(s),r=s)},toggleActive:function(n){i=!n}}}function I(n,t,e,o,r,i,s,c,u){const l=f(r),a=p(h(f(r).reverse(),s[0]),e,!1).concat(p(h(l,t-s[0]-1),-e,!0));function d(n,t){return n.reduce(((n,t)=>n-r[t]),t)}function h(n,t){return n.reduce(((n,e)=>d(n,t)>0?n.concat([e]):n),[])}function p(r,s,l){const a=function(n){return i.map(((e,r)=>({start:e-o[r]+.5+n,end:e+t-.5+n})))}(s);return r.map((t=>{const o=l?0:-e,r=l?e:0,i=a[t][l?"end":"start"];return{index:t,loopPoint:i,slideLocation:L(-1),translate:M(n,u[t]),target:()=>c.get()>i?o:r}}))}return{canLoop:function(){return a.every((({index:n})=>d(l.filter((t=>t!==n)),t)<=.1))},clear:function(){a.forEach((n=>n.translate.clear()))},loop:function(){a.forEach((n=>{const{target:t,translate:e,slideLocation:o}=n,r=t();r!==o.get()&&(e.to(r),o.set(r))}))},loopPoints:a}}function T(n,t,e){let o,r=!1;return{init:function(i){e&&(o=new MutationObserver((n=>{r||(s(e)||e(i,n))&&function(n){for(const e of n)if("childList"===e.type){i.reInit(),t.emit("slidesChanged");break}}(n)})),o.observe(n,{childList:!0}))},destroy:function(){o&&o.disconnect(),r=!0}}}function A(n,t,e,o,c,b,y){const{align:A,axis:N,direction:R,startIndex:z,loop:O,duration:j,dragFree:B,dragThreshold:F,inViewThreshold:D,slidesToScroll:P,skipSnaps:H,containScroll:G,watchResize:V,watchSlides:W,watchDrag:U,watchFocus:q}=b,J={measure:function(n){const{offsetTop:t,offsetLeft:e,offsetWidth:o,offsetHeight:r}=n;return{top:t,right:e+o,bottom:t+r,left:e,width:o,height:r}}},Q=J.measure(t),X=e.map(J.measure),$=function(n,t){const e="rtl"===t,o="y"===n,r=!o&&e?-1:1;return{scroll:o?"y":"x",cross:o?"x":"y",startEdge:o?"top":e?"right":"left",endEdge:o?"bottom":e?"left":"right",measureSize:function(n){const{height:t,width:e}=n;return o?t:e},direction:function(n){return n*r}}}(N,R),Y=$.measureSize(Q),K=function(n){return{measure:function(t){return n*(t/100)}}}(Y),Z=function(n,t){const e={start:function(){return 0},center:function(n){return o(n)/2},end:o};function o(n){return t-n}return{measure:function(o,r){return i(n)?e[n](o):n(t,o,r)}}}(A,Y),nn=!O&&!!G,tn=O||!!G,{slideSizes:en,slideSizesWithGaps:on,startGap:rn,endGap:sn}=function(n,t,e,o,r,i){const{measureSize:s,startEdge:c,endEdge:l}=n,a=e[0]&&r,f=a?u(t[c]-e[0][c]):0,h=function(){if(!a)return 0;const n=i.getComputedStyle(d(o));return parseFloat(n.getPropertyValue("margin-"+l))}(),g=e.map(s),m=e.map(((n,t,e)=>{const o=!t,r=p(e,t);return o?g[t]+f:r?g[t]+h:e[t+1][c]-n[c]})).map(u);return{slideSizes:g,slideSizesWithGaps:m,startGap:f,endGap:h}}($,Q,X,e,tn,c),cn=function(n,t,e,o,i,s,c,l,a){const{startEdge:p,endEdge:g,direction:m}=n,b=r(e);return{groupSlides:function(n){return b?function(n,t){return f(n).filter((n=>n%t==0)).map((e=>n.slice(e,e+t)))}(n,e):function(n){return n.length?f(n).reduce(((e,r,f)=>{const b=d(e)||0,y=0===b,v=r===h(n),x=i[p]-s[b][p],_=i[p]-s[r][g],k=!o&&y?m(c):0,w=u(_-(!o&&v?m(l):0)-(x+k));return f&&w>t+a&&e.push(r),v&&e.push(n.length),e}),[]).map(((t,e,o)=>n.slice(Math.max(o[e-1]||0),t))):[]}(n)}}}($,Y,P,O,Q,X,rn,sn,2),{snaps:un,snapsAligned:ln}=function(n,t,e,o,r){const{startEdge:i,endEdge:s}=n,{groupSlides:c}=r,l=c(o).map((n=>d(n)[s]-n[0][i])).map(u).map(t.measure),a=o.map((n=>e[i]-n[i])).map((n=>-u(n))),f=c(a).map((n=>n[0])).map(((n,t)=>n+l[t]));return{snaps:a,snapsAligned:f}}($,Z,Q,X,cn),an=-d(un)+d(on),{snapsContained:fn,scrollContainLimit:dn}=function(n,t,e,o){const r=x(-t+n,0),i=e.map(((n,t)=>{const{min:o,max:i}=r,s=r.constrain(n),u=!t,l=p(e,t);return u?i:l||c(o,s)?o:c(i,s)?i:s})).map((n=>parseFloat(n.toFixed(3)))),s=function(){const n=i[0],t=d(i);return x(i.lastIndexOf(n),i.indexOf(t)+1)}();function c(n,t){return a(n,t)<=1}return{snapsContained:function(){if(t<=n+2)return[r.max];if("keepSnaps"===o)return i;const{min:e,max:c}=s;return i.slice(e,c)}(),scrollContainLimit:s}}(Y,an,ln,G),hn=nn?fn:ln,{limit:pn}=function(n,t,e){const o=t[0];return{limit:x(e?o-n:d(t),o)}}(an,hn,O),gn=_(h(hn),z,O),mn=gn.clone(),bn=f(e),yn=function(n,t,e,o){const r=v(),i=1e3/60;let s=null,c=0,u=0;function l(n){if(!u)return;s||(s=n,e(),e());const r=n-s;for(s=n,c+=r;c>=i;)e(),c-=i;o(c/i),u&&(u=t.requestAnimationFrame(l))}function a(){t.cancelAnimationFrame(u),s=null,c=0,u=0}return{init:function(){r.add(n,"visibilitychange",(()=>{n.hidden&&(s=null,c=0)}))},destroy:function(){a(),r.clear()},start:function(){u||(u=t.requestAnimationFrame(l))},stop:a,update:e,render:o}}(o,c,(()=>(({dragHandler:n,scrollBody:t,scrollBounds:e,options:{loop:o}})=>{o||e.constrain(n.pointerDown()),t.seek()})(Nn)),(n=>(({scrollBody:n,translate:t,location:e,offsetLocation:o,previousLocation:r,scrollLooper:i,slideLooper:s,dragHandler:c,animation:u,eventHandler:l,scrollBounds:a,options:{loop:f}},d)=>{const h=n.settled(),p=!a.shouldConstrain(),g=f?h:h&&p,m=g&&!c.pointerDown();m&&u.stop();const b=e.get()*d+r.get()*(1-d);o.set(b),f&&(i.loop(n.direction()),s.loop()),t.to(o.get()),m&&l.emit("settle"),g||l.emit("scroll")})(Nn,n))),vn=hn[gn.get()],xn=L(vn),_n=L(vn),kn=L(vn),wn=L(vn),Sn=function(n,t,e,o,r){let i=0,s=0,c=r,a=.68,f=n.get(),d=0;function h(n){return c=n,g}function p(n){return a=n,g}const g={direction:function(){return s},duration:function(){return c},velocity:function(){return i},seek:function(){const t=o.get()-n.get();let r=0;return c?(e.set(n),i+=t/c,i*=a,f+=i,n.add(i),r=f-d):(i=0,e.set(o),n.set(o),r=t),s=l(r),d=f,g},settled:function(){return u(o.get()-t.get())<.001},useBaseFriction:function(){return p(.68)},useBaseDuration:function(){return h(r)},useFriction:p,useDuration:h};return g}(xn,kn,_n,wn,j),Cn=function(n,t,e,o,r){const{reachedAny:i,removeOffset:s,constrain:c}=o;function a(n){return n.concat().sort(((n,t)=>u(n)-u(t)))[0]}function f(t,o){const r=[t,t+e,t-e];if(!n)return t;if(!o)return a(r);const i=r.filter((n=>l(n)===o));return i.length?a(i):d(r)-e}return{byDistance:function(e,o){const l=r.get()+e,{index:a,distance:d}=function(e){const o=n?s(e):c(e),r=t.map(((n,t)=>({diff:f(n-o,0),index:t}))).sort(((n,t)=>u(n.diff)-u(t.diff))),{index:i}=r[0];return{index:i,distance:o}}(l),h=!n&&i(l);return!o||h?{index:a,distance:e}:{index:a,distance:e+f(t[a]-d,0)}},byIndex:function(n,e){return{index:n,distance:f(t[n]-r.get(),e)}},shortcut:f}}(O,hn,an,pn,wn),En=function(n,t,e,o,r,i,s){function c(r){const c=r.distance,u=r.index!==t.get();i.add(c),c&&(o.duration()?n.start():(n.update(),n.render(1),n.update())),u&&(e.set(t.get()),t.set(r.index),s.emit("select"))}return{distance:function(n,t){c(r.byDistance(n,t))},index:function(n,e){const o=t.clone().set(n);c(r.byIndex(o.get(),e))}}}(yn,gn,mn,Sn,Cn,wn,y),Ln=function(n){const{max:t,length:e}=n;return{get:function(n){return e?(n-t)/-e:0}}}(pn),Mn=v(),In=function(n,t,e,o){const r={};let i,s=null,c=null,u=!1;return{init:function(){i=new IntersectionObserver((n=>{u||(n.forEach((n=>{const e=t.indexOf(n.target);r[e]=n})),s=null,c=null,e.emit("slidesInView"))}),{root:n.parentElement,threshold:o}),t.forEach((n=>i.observe(n)))},destroy:function(){i&&i.disconnect(),u=!0},get:function(n=!0){if(n&&s)return s;if(!n&&c)return c;const t=function(n){return m(r).reduce(((t,e)=>{const o=parseInt(e),{isIntersecting:i}=r[o];return(n&&i||!n&&!i)&&t.push(o),t}),[])}(n);return n&&(s=t),n||(c=t),t}}}(t,e,y,D),{slideRegistry:Tn}=function(n,t,e,o,r,i){const{groupSlides:s}=r,{min:c,max:u}=o;return{slideRegistry:function(){const o=s(i);return 1===e.length?[i]:n&&"keepSnaps"!==t?o.slice(c,u).map(((n,t,e)=>{const o=!t,r=p(e,t);return o?g(d(e[0])+1):r?g(h(i)-d(e)[0]+1,d(e)[0]):n})):o}()}}(nn,G,hn,dn,cn,bn),An=function(n,t,e,o,i,c,u,l){const a={passive:!0,capture:!0};let f=0;function d(n){"Tab"===n.code&&(f=(new Date).getTime())}return{init:function(h){l&&(c.add(document,"keydown",d,!1),t.forEach(((t,d)=>{c.add(t,"focus",(t=>{(s(l)||l(h,t))&&function(t){if((new Date).getTime()-f>10)return;u.emit("slideFocusStart"),n.scrollLeft=0;const s=e.findIndex((n=>n.includes(t)));r(s)&&(i.useDuration(0),o.index(s,0),u.emit("slideFocus"))}(d)}),a)})))}}}(n,e,Tn,En,Sn,Mn,y,q),Nn={ownerDocument:o,ownerWindow:c,eventHandler:y,containerRect:Q,slideRects:X,animation:yn,axis:$,dragHandler:k($,n,o,c,wn,w($,c),xn,yn,En,Sn,Cn,gn,y,K,B,F,H,.68,U),eventStore:Mn,percentOfView:K,index:gn,indexPrevious:mn,limit:pn,location:xn,offsetLocation:kn,previousLocation:_n,options:b,resizeHandler:S(t,y,c,e,$,V,J),scrollBody:Sn,scrollBounds:C(pn,kn,wn,Sn,K),scrollLooper:E(an,pn,kn,[xn,kn,_n,wn]),scrollProgress:Ln,scrollSnapList:hn.map(Ln.get),scrollSnaps:hn,scrollTarget:Cn,scrollTo:En,slideLooper:I($,Y,an,en,on,un,hn,kn,e),slideFocus:An,slidesHandler:T(t,y,W),slidesInView:In,slideIndexes:bn,slideRegistry:Tn,slidesToScroll:cn,target:wn,translate:M($,t)};return Nn}const N={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function R(n){function t(n,t){return b(n,t||{})}return{mergeOptions:t,optionsAtMedia:function(e){const o=e.breakpoints||{},r=m(o).filter((t=>n.matchMedia(t).matches)).map((n=>o[n])).reduce(((n,e)=>t(n,e)),{});return t(e,r)},optionsMediaQueries:function(t){return t.map((n=>m(n.breakpoints||{}))).reduce(((n,t)=>n.concat(t)),[]).map(n.matchMedia)}}}function z(n,t,e){const o=n.ownerDocument,r=o.defaultView,s=R(r),c=function(n){let t=[];return{init:function(e,o){return t=o.filter((({options:t})=>!1!==n.optionsAtMedia(t).active)),t.forEach((t=>t.init(e,n))),o.reduce(((n,t)=>Object.assign(n,{[t.name]:t})),{})},destroy:function(){t=t.filter((n=>n.destroy()))}}}(s),u=v(),l=function(){let n,t={};function e(n){return t[n]||[]}const o={init:function(t){n=t},emit:function(t){return e(t).forEach((e=>e(n,t))),o},off:function(n,r){return t[n]=e(n).filter((n=>n!==r)),o},on:function(n,r){return t[n]=e(n).concat([r]),o},clear:function(){t={}}};return o}(),{mergeOptions:a,optionsAtMedia:f,optionsMediaQueries:d}=s,{on:h,off:p,emit:g}=l,m=M;let b,y,x,_,k=!1,w=a(N,z.globalOptions),S=a(w),C=[];function E(t){const e=A(n,x,_,o,r,t,l);return t.loop&&!e.slideLooper.canLoop()?E(Object.assign({},t,{loop:!1})):e}function L(t,e){k||(w=a(w,t),S=f(w),C=e||C,function(){const{container:t,slides:e}=S,o=i(t)?n.querySelector(t):t;x=o||n.children[0];const r=i(e)?x.querySelectorAll(e):e;_=[].slice.call(r||x.children)}(),b=E(S),d([w,...C.map((({options:n})=>n))]).forEach((n=>u.add(n,"change",M))),S.active&&(b.translate.to(b.location.get()),b.animation.init(),b.slidesInView.init(),b.slideFocus.init(j),b.eventHandler.init(j),b.resizeHandler.init(j),b.slidesHandler.init(j),b.options.loop&&b.slideLooper.loop(),x.offsetParent&&_.length&&b.dragHandler.init(j),y=c.init(j,C)))}function M(n,t){const e=O();I(),L(a({startIndex:e},n),t),l.emit("reInit")}function I(){b.dragHandler.destroy(),b.eventStore.clear(),b.translate.clear(),b.slideLooper.clear(),b.resizeHandler.destroy(),b.slidesHandler.destroy(),b.slidesInView.destroy(),b.animation.destroy(),c.destroy(),u.clear()}function T(n,t,e){S.active&&!k&&(b.scrollBody.useBaseFriction().useDuration(!0===t?0:S.duration),b.scrollTo.index(n,e||0))}function O(){return b.index.get()}const j={canScrollNext:function(){return b.index.add(1).get()!==O()},canScrollPrev:function(){return b.index.add(-1).get()!==O()},containerNode:function(){return x},internalEngine:function(){return b},destroy:function(){k||(k=!0,u.clear(),I(),l.emit("destroy"),l.clear())},off:p,on:h,emit:g,plugins:function(){return y},previousScrollSnap:function(){return b.indexPrevious.get()},reInit:m,rootNode:function(){return n},scrollNext:function(n){T(b.index.add(1).get(),n,-1)},scrollPrev:function(n){T(b.index.add(-1).get(),n,1)},scrollProgress:function(){return b.scrollProgress.get(b.offsetLocation.get())},scrollSnapList:function(){return b.scrollSnapList},scrollTo:T,selectedScrollSnap:O,slideNodes:function(){return _},slidesInView:function(){return b.slidesInView.get()},slidesNotInView:function(){return b.slidesInView.get(!1)}};return L(t,e),setTimeout((()=>l.emit("init")),0),j}z.globalOptions=void 0;const O=t(class extends e{constructor(n){super(),!1!==n&&this.__registerHost(),this.__attachShadow()}get el(){return this}items;loop=!0;class;controlClass;slideClass;itemClass;viewportRef;containerRef;slotRef;prevBtnRef;nextBtnRef;dotsRef;embla=null;movedNodes=[];prevClickHandler=null;nextClickHandler=null;dotClickHandlers=[];slotNodesMoved=!1;async scrollPrev(){this.embla?.scrollPrev()}async scrollNext(){this.embla?.scrollNext()}async goToSlide(n){this.embla?.scrollTo(n)}async getEmbla(){return this.embla}moveSlotNodesIntoContainer(){if(!this.slotRef||!this.containerRef||this.slotNodesMoved)return;const n=this.slotRef.assignedNodes().filter((n=>n.nodeType===Node.ELEMENT_NODE));0!==n.length&&(this.movedNodes=[],n.forEach((n=>{this.containerRef.appendChild(n),this.movedNodes.push(n)})),this.slotNodesMoved=!0,this.scheduleEmblaInit())}initScheduled=!1;scheduleEmblaInit(){this.initScheduled||(this.initScheduled=!0,requestAnimationFrame((()=>{this.initScheduled=!1,this.destroyEmbla(),this.initEmbla()})))}moveSlotNodesBack(){const n=this.el;this.movedNodes.forEach((t=>n.appendChild(t))),this.movedNodes=[]}initEmbla(){if(!this.viewportRef||!this.containerRef)return;const n=this.getItemsArray();if(!(void 0!==n?n.length>0:this.containerRef.children.length>0))return;this.embla=z(this.viewportRef,{loop:this.loop,align:"center",containScroll:"trimSnaps"});const t=this.prevBtnRef,e=this.nextBtnRef,o=this.dotsRef,r=()=>{t&&(this.embla?.canScrollPrev()?t.removeAttribute("disabled"):t.setAttribute("disabled","")),e&&(this.embla?.canScrollNext()?e.removeAttribute("disabled"):e.setAttribute("disabled",""))};if(this.embla.on("init",r),this.embla.on("reInit",r),this.embla.on("select",r),t&&e&&(this.prevClickHandler=()=>this.embla?.scrollPrev(),this.nextClickHandler=()=>this.embla?.scrollNext(),t.addEventListener("click",this.prevClickHandler),e.addEventListener("click",this.nextClickHandler)),o){const n=this.embla.scrollSnapList().length;o.innerHTML="";for(let t=0;t<n;t++){const n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Go to slide "+(t+1)),n.className="carousel__dot",0===t&&n.classList.add("current");const e=document.createElement("div");e.className="carousel__dot-inner",n.appendChild(e);const r=t,i=()=>this.embla?.scrollTo(r);this.dotClickHandlers.push(i),n.addEventListener("click",i),o.appendChild(n)}this.embla.on("select",(()=>{const n=this.embla?.selectedScrollSnap()??0;o.querySelectorAll("button").forEach(((t,e)=>{t.classList.toggle("current",e===n)}))}))}r()}destroyEmbla(){this.prevBtnRef&&this.prevClickHandler&&(this.prevBtnRef.removeEventListener("click",this.prevClickHandler),this.prevClickHandler=null),this.nextBtnRef&&this.nextClickHandler&&(this.nextBtnRef.removeEventListener("click",this.nextClickHandler),this.nextClickHandler=null),this.dotClickHandlers=[],this.dotsRef&&(this.dotsRef.innerHTML=""),this.embla?.destroy(),this.embla=null}onSlotChange=()=>{void 0===this.getItemsArray()&&this.moveSlotNodesIntoContainer()};componentDidRender(){void 0===this.getItemsArray()?(this.slotRef&&(this.slotRef.removeEventListener("slotchange",this.onSlotChange),this.slotRef.addEventListener("slotchange",this.onSlotChange)),requestAnimationFrame((()=>{this.moveSlotNodesIntoContainer(),this.slotNodesMoved||(this.destroyEmbla(),this.initEmbla())}))):(this.destroyEmbla(),this.initEmbla())}disconnectedCallback(){this.slotRef&&this.slotRef.removeEventListener("slotchange",this.onSlotChange),this.destroyEmbla(),void 0===this.getItemsArray()&&(this.moveSlotNodesBack(),this.slotNodesMoved=!1)}getItemsArray(){if(void 0!==this.items){if(Array.isArray(this.items))return this.items;if("string"==typeof this.items)try{const n=JSON.parse(this.items);return Array.isArray(n)?n:void 0}catch{return}}}render(){const n=this.getItemsArray(),t=void 0!==n&&n.length>0;return o("div",{key:"313c58e9c1ea3b9c0d0fd4b9d6354336682d9353",class:("carousel "+(this.class||"")).trim()},o("div",{key:"14ad75526a24ed38df053fa221e2fafef6d532ed",class:("carousel__viewport "+(this.slideClass||"")).trim(),ref:n=>this.viewportRef=n},o("div",{key:"1d3a771598c382592b789289494f2439fea56918",class:"carousel__container",ref:n=>this.containerRef=n},t&&n?n.map(((n,t)=>o("div",{key:t,class:("carousel__slide "+(this.itemClass||"")).trim()},"object"==typeof n&&null!==n&&"content"in n?n.content:n+""))):null)),!t&&o("div",{key:"cdecd3275ac3c5ffe7a0f46153d3e59ad0d4ba9d",style:{display:"none"},"aria-hidden":"true"},o("slot",{key:"450dd5b90f20166a4d6ef4a0d46d208ad47bbf4b",ref:n=>this.slotRef=n})),o("div",{key:"ad4eab3f45204170308d8021799d227eaff36d71",class:("carousel__controls "+(this.controlClass||"")).trim()},o("button",{key:"1a4ef7209ea768a55892f4d928da3f6100faab4b",type:"button","aria-label":"Previous",class:"carousel__prev",ref:n=>this.prevBtnRef=n},o("svg",{key:"7d579cb030149947791db565bc1520ef2707c360",class:"carousel__icon","stroke-width":"1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true"},o("path",{key:"fdca1a876d4967c39286bddba6122351fbf0d925","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"}))),o("div",{key:"4d9a30f1988f2ce04f271967f1dd39c5287273f2",class:"carousel__dots",ref:n=>this.dotsRef=n}),o("button",{key:"c8bc7787821f3277c6d038e3ff1240b3ce936825",type:"button","aria-label":"Next",class:"carousel__next",ref:n=>this.nextBtnRef=n},o("svg",{key:"e6e4eff954b1b08711cc843de558e00a8257e9f8",class:"carousel__icon","stroke-width":"1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true"},o("path",{key:"37b394093f327bdc46f8da1dcf78ec609a585a0a","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})))))}static get style(){return":host{display:block}.carousel{display:flex;flex-direction:column;overflow:hidden}.carousel__viewport{overflow:hidden;touch-action:pan-y pinch-zoom}.carousel__container{display:flex;flex-direction:row;height:100%;margin-left:calc(-0.4rem)}.carousel__container ::slotted(*){flex:0 0 50%;width:50%;height:100%;padding-left:0.4rem;box-sizing:border-box}.carousel__slide{flex:0 0 50%;width:50%;height:100%;padding-left:0.4rem;box-sizing:border-box}.carousel__controls{display:flex;gap:0.25rem;margin-top:0.25rem;justify-content:center;align-items:center}.carousel__prev,.carousel__next{display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;background:transparent;cursor:pointer;color:currentColor}.carousel__prev:disabled,.carousel__next:disabled{opacity:0.4;cursor:not-allowed}.carousel__icon{width:2.4rem;height:2.4rem}.carousel__dots{display:flex;gap:0.25rem;align-items:center}.carousel__dot{padding:0;border:none;background:none;cursor:pointer;width:0.5rem;height:0.5rem;display:flex;align-items:center;justify-content:center}.carousel__dot-inner{width:100%;height:100%;border-radius:50%;background-color:var(--carousel-dot-bg, #cbd5e1);transition:background-color 0.2s ease}.carousel__dot.current .carousel__dot-inner{background-color:var(--carousel-dot-active-bg, #94a3b8)}"}},[769,"fast-carousel",{items:[1],loop:[4],class:[1],controlClass:[1,"control-class"],slideClass:[1,"slide-class"],itemClass:[1,"item-class"],scrollPrev:[64],scrollNext:[64],goToSlide:[64],getEmbla:[64]}]);function j(){"undefined"!=typeof customElements&&["fast-carousel"].forEach((t=>{"fast-carousel"===t&&(customElements.get(n(t))||customElements.define(n(t),O))}))}j();const B=O,F=j;export{B as FastCarousel,F as defineCustomElement}
@@ -0,0 +1 @@
1
+ export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-Cw2MJ5l2.js";function t(s,t,e){return(s||"")+(t?" "+t:"")+(e?" "+e:"")}export{t as format}
@@ -0,0 +1 @@
1
+ import{t as e,p as t,H as s,h as i}from"./p-Cw2MJ5l2.js";const l=[{title:"Senior Software Engineer",reference:"REF-001",originalURL:"/jobs/senior-software-engineer",applyURL:"https://apply.example.com/1",brandName:"Engineering",isRemote:!1,locations:[{city:"San Francisco",stateAbbr:"CA",countryAbbr:"US",distance:5.2,streetAddress:"123 Market St",cityStateAbbr:"San Francisco, CA"}],employmentType:["Full-time","Permanent"]},{title:"Product Manager",reference:"",originalURL:"/jobs/product-manager",brandName:"Product",isRemote:!0,locations:[],employmentType:["Full-time"]},{title:"UX Designer",reference:"REF-003",originalURL:"/jobs/ux-designer",brandName:"Design",isRemote:!1,locations:[{city:"New York",stateAbbr:"NY",countryAbbr:"US",distance:0,cityStateAbbr:"New York, NY"},{city:"Boston",stateAbbr:"MA",countryAbbr:"US",cityStateAbbr:"Boston, MA"}],employmentType:["Full-time","Contract"]}],r=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost()}mockData=!1;jobs=[];loading=!1;totalJob=0;noResultsLine1="Sorry, we're not able to load results for your search.";noResultsLine2="Please refine your keywords in the search bar above and try again.";applyButtonText="Apply Now";showBrand=!0;showReference=!1;showEmploymentType=!0;streetFormat="{street}, {city_state_abbr}";multiLocationText="More locations";remoteLocationText="Remote";enableKilometers=!1;rootClass="";showSuggestions=!1;clearResultSuggestionsTitleText="Suggestions";clearResultSuggestionsLine1="Try different keywords";clearResultSuggestionsLine2="Make sure everything is spelled correctly";clearResultSuggestionsLine3="Try other locations";clearResultSuggestionsLine4="";getJobsArray(){if(this.mockData)return l;const e=this.jobs;if(Array.isArray(e))return e;if("string"==typeof e)try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}return[]}formatDistance(e){const t=this.enableKilometers?"Km":"Miles";return`${(this.enableKilometers?1.60934*e:e).toFixed(1)} ${t}`.replace(".0","")}renderJobItem(e,t){const s=function(e){const t=e.locations;if(t?.length)return t[0]}(e),l=s?function(e){return e.cityStateAbbr?e.cityStateAbbr:[e.streetAddress,e.city,e.stateAbbr||e.state,e.countryAbbr||e.country].filter(Boolean).join(", ")||e.locationText||""}(s):"",r=s?.distance??0,n=r>0?this.formatDistance(r):"",o=e.applyURL||(e.originalURL?`${"undefined"!=typeof window?window.location.origin:""}${e.originalURL}`:"#"),a=`${this.applyButtonText}, ${e.title||""}`,c=e.locations??[],u=c.length>1;return i("li",{class:"results-list__item"},i("div",{class:"results-list__item-header"},i("h3",{class:"results-list__item-title"},i("a",{class:"results-list__item-title--link",href:o,target:"_blank",rel:"noopener noreferrer"},e.title||""),this.showReference&&i("span",{class:"reference "+(e.reference?"":"empty")},e.reference||""),e.isRemote&&i("span",{class:this.remoteLocationText?"remote":"remote remote--empty"},this.remoteLocationText)),n&&i("div",{class:"results-list__item-distance"},i("span",{class:"results-list__item-distance--icon"},i("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z"}),i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8v4l2 2"}))),i("span",{class:"results-list__item-distance--label"},n))),i("div",{class:"results-list__item-content"},i("div",{class:"results-list__item-info"},i("div",{class:c.length?"results-list__item-street":"results-list__item-street results-list__item-street--empty"},i("div",{class:"results-list__item-street--label__wrapper"},i("span",{class:"results-list__item-street--icon"},i("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"}),i("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"}))),i("span",{class:"results-list__item-street--label"},l||"—")),u&&i("div",{class:"results-list__item-street--more-locations__wrapper"},i("span",{class:"results-list__item-street--amount"},"+",c.length-1),i("span",{class:"results-list__item-street--more-locations"},this.multiLocationText))),this.showBrand&&i("div",{class:e.brandName?"results-list__item-brand":"results-list__item-brand results-list__item-brand--empty"},i("span",{class:"results-list__item-brand--icon"},i("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},i("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"}))),i("span",{class:"results-list__item-brand--label"},e.brandName||"—")),this.showEmploymentType&&i("div",{class:e.employmentType?.length?"results-list__item-employment-type":"results-list__item-employment-type results-list__item-employment-type--empty"},i("span",{class:"results-list__item-employment-type--icon"},i("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},i("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"}))),(e.employmentType?.length?e.employmentType:["—"]).map((e=>i("span",{key:e,class:"results-list__item-employment-type--label"},e)))),(e.jobCardExtraFields??[]).map(((e,t)=>i("div",{key:t,class:(Array.isArray(e.value)?e.value.length:e.value)?e.classname:e.classname+"--empty"},Array.isArray(e.value)?e.value.map(((t,s)=>i("span",{key:s,class:e.classname+"--label"},t))):i("span",{class:e.classname+"--label"},e.value+""))))),i("a",{class:"results-list__item-apply",href:o,target:"_blank",rel:"noopener noreferrer","aria-label":a},i("span",{class:"results-list__item-apply--label"},this.applyButtonText),i("span",{class:"results-list__item-apply--icon"},i("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"}))))))}render(){const e=this.getJobsArray(),t=!this.mockData&&this.loading,s=this.mockData?e.length:this.totalJob||e.length,l=!t&&0===s&&!this.showSuggestions,r=!t&&0===s&&this.showSuggestions;return i("div",{key:"c2e9c9146a24f0869cbd75588b2718c94f62bbbc",class:("jobs-list-root "+this.rootClass).trim()},i("div",{key:"b2f3dffe7e17797b378bd648f54e46bb31e2d374",class:"results-container"},i("div",{key:"4733870b035ec307b6e691f1d62ed8568e93fd1f",class:t?"loader":"loader hide","aria-hidden":!t}),s>0&&i("div",{key:"a9438f079041e0121fafdcb42089f27482475491",class:"card"},i("ul",{key:"3bd7dcc64f46aec24945a25df7345766606a51bd",class:"results-list front"},e.map(((e,t)=>this.renderJobItem(e,t))))),l&&i("div",{key:"1996476568c745e0ada31b47bb1a1be2efaf6917",class:"share-jobs__no-results"},i("h2",{key:"8d2a79881428d89d783b05f26d06abbef94f5c2e"},this.noResultsLine1),i("h3",{key:"855704ea47b06a701c0e59a8bb43fb405ad3bb96"},this.noResultsLine2)),r&&i("div",{key:"74da6e8243423dc9770f4dc67f46f5627c352349",class:"card primary-color"},i("h4",{key:"d3fb2ef03a656331f97afe3692b05bbe064ed124",class:"result-suggestions-title"},this.clearResultSuggestionsTitleText,":"),i("ul",{key:"63914647653930e6c686a38d779af20e7e5c17d5",class:"results-list front"},i("li",{key:"82063c023701d0c42ca2787f382d42a80f569b6a",class:"result-suggestions-line"},this.clearResultSuggestionsLine1),i("li",{key:"7645d7a7435f76854b8eeb0d693a883fc341764e",class:"result-suggestions-line"},this.clearResultSuggestionsLine2),i("li",{key:"060675d017137e8b23342c92efadc769e2bae1c2",class:"result-suggestions-line"},this.clearResultSuggestionsLine3),this.clearResultSuggestionsLine4&&i("li",{key:"0f6ef00a4f6267dc9ad2441e16f02c82b0994d03",class:"result-suggestions-line"},this.clearResultSuggestionsLine4)))))}static get style(){return":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}"}},[512,"jobs-list-only-ui",{mockData:[4,"mock-data"],jobs:[1],loading:[4],totalJob:[2,"total-job"],noResultsLine1:[1,"no-results-line-1"],noResultsLine2:[1,"no-results-line-2"],applyButtonText:[1,"apply-button-text"],showBrand:[4,"show-brand"],showReference:[4,"show-reference"],showEmploymentType:[4,"show-employment-type"],streetFormat:[1,"street-format"],multiLocationText:[1,"multi-location-text"],remoteLocationText:[1,"remote-location-text"],enableKilometers:[4,"enable-kilometers"],rootClass:[1,"root-class"],showSuggestions:[4,"show-suggestions"],clearResultSuggestionsTitleText:[1,"clear-result-suggestions-title-text"],clearResultSuggestionsLine1:[1,"clear-result-suggestions-line-1"],clearResultSuggestionsLine2:[1,"clear-result-suggestions-line-2"],clearResultSuggestionsLine3:[1,"clear-result-suggestions-line-3"],clearResultSuggestionsLine4:[1,"clear-result-suggestions-line-4"]}]);function n(){"undefined"!=typeof customElements&&["jobs-list-only-ui"].forEach((t=>{"jobs-list-only-ui"===t&&(customElements.get(e(t))||customElements.define(e(t),r))}))}n();const o=r,a=n;export{o as JobsListOnlyUi,a as defineCustomElement}
@@ -0,0 +1 @@
1
+ var t=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(t||{}),e=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(e||{}),n="type",l="value",o="serialized:";function s(t,e,n){const l="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==l;){const l=Object.getOwnPropertyDescriptor(t,e);if(l&&(!n||l.get))return l;t=Object.getPrototypeOf(t)}}var r,i=(t,e)=>{var n;Object.entries(null!=(n=e.l.t)?n:{}).map((([n,[l]])=>{if(31&l||32&l){const l=t[n],o=s(Object.getPrototypeOf(t),n,!0)||Object.getOwnPropertyDescriptor(t,n);o&&Object.defineProperty(t,n,{get(){return o.get.call(this)},set(t){o.set.call(this,t)},configurable:!0,enumerable:!0}),e.o.has(n)?t[n]=e.o.get(n):void 0!==l&&(t[n]=l)}}))},c=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},u=(t,e)=>e in t,f=(t,e)=>(0,console.error)(t,e),a=new Map,d="s-id",$="sty-id",p="c-id",h="undefined"!=typeof window?window:{},y=h.HTMLElement||class{},m={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},b=(()=>{try{return!!h.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),v=!!b&&(()=>!!h.document&&Object.getOwnPropertyDescriptor(h.document.adoptedStyleSheets,"length").writable)(),g=!1,w=[],j=[],O=(t,e)=>n=>{t.push(n),g||(g=!0,e&&4&m.i?M(x):m.raf(x))},S=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){f(t)}t.length=0},x=()=>{S(w),S(j),(g=w.length>0)&&m.raf(x)},M=t=>Promise.resolve(undefined).then(t),k=O(j,!0),N=t=>{const e=new URL(t,m.u);return e.origin!==h.location.origin?e.href:e.pathname},E=t=>m.u=t;function I(){const t=this.attachShadow({mode:"open"});void 0===r&&(r=null),r&&(v?t.adoptedStyleSheets.push(r):t.adoptedStyleSheets=[...t.adoptedStyleSheets,r])}var A=(t,e,n,l)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const o=document.createTextNode("");if(o["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const s=e["s-cr"].parentNode,r=_(s,"appendChild");if(void 0!==l){o["s-oo"]=l;const t=_(s,"childNodes"),e=[o];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>r.call(s,t)))}else r.call(s,o);t["s-ol"]=o,t["s-sh"]=e["s-hn"]};function _(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var C=new WeakMap,L=(t,e,n)=>{let l=a.get(t);b&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,a.set(t,l)},D=(t,e)=>{var n,l,o;const s=R(e),r=a.get(s);if(!h.document)return s;if(t=11===t.nodeType?t:h.document,r)if("string"==typeof r){let o,i=C.get(t=t.head||t);i||C.set(t,i=new Set);const c=t.querySelector(`[${$}="${s}"]`);if(c)c.textContent=r;else if(!i.has(s)){o=h.document.createElement("style"),o.textContent=r;const c=null!=(n=m.$)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=h.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=c&&o.setAttribute("nonce",c),!(1&e.i))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(o,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(b){const e=new(null!=(l=t.defaultView)?l:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(r),v?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=r+e.textContent:t.prepend(o)}else t.append(o);1&e.i&&t.insertBefore(o,null),4&e.i&&(o.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),i&&i.add(s)}}else{let e=C.get(t);if(e||C.set(t,e=new Set),!e.has(s)){const n=null!=(o=t.defaultView)?o:t.ownerDocument.defaultView;let l;if(r.constructor===n.CSSStyleSheet)l=r;else{l=new n.CSSStyleSheet;for(let t=0;t<r.cssRules.length;t++)l.insertRule(r.cssRules[t].cssText,t)}if(v?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l],e.add(s),"host"in t){const e=t.querySelector(`[${$}="${s}"]`);e&&k((()=>e.remove()))}}}return s},R=t=>"sc-"+t.p,U=t=>"object"==(t=typeof t)||"function"===t,V=(t,e,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!U(l))&&(l=String(l)),s&&r?i[i.length-1].h+=l:i.push(s?H(null,l):l),r=s)};if(c(n),e){e.key&&(o=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=H(t,null);return u.m=e,i.length>0&&(u.v=i),u.j=o,u},H=(t,e)=>({i:0,O:t,h:null!=e?e:null,S:null,v:null,m:null,j:null}),P={},F=(t,e,n,l,o,s,r,i=[])=>{let c,u,f,a;if(1===s.nodeType){if(c=s.getAttribute(p),c&&(u=c.split("."),u[0]===r||"0"===u[0])){f=z({i:0,M:u[0],k:u[1],N:u[2],I:u[3],O:s.tagName.toLowerCase(),S:s,m:{class:s.className||""}}),e.push(f),s.removeAttribute(p),t.v||(t.v=[]);const o=f.S.getAttribute("s-sn");"string"==typeof o&&("slot-fb"===f.O&&B(o,u[2],f,s,t,e,n,l,i),f.S["s-sn"]=o,f.S.removeAttribute("s-sn")),void 0!==f.I&&(t.v[f.I]=f),t=f,l&&"0"===f.N&&(l[f.I]=f.S)}if(s.shadowRoot)for(a=s.shadowRoot.childNodes.length-1;a>=0;a--)F(t,e,n,l,o,s.shadowRoot.childNodes[a],r,i);const d=s.__childNodes||s.childNodes;for(a=d.length-1;a>=0;a--)F(t,e,n,l,o,d[a],r,i)}else if(8===s.nodeType)u=s.nodeValue.split("."),(u[1]===r||"0"===u[1])&&(c=u[0],f=z({M:u[1],k:u[2],N:u[3],I:u[4]||"0",S:s,m:null,v:null,j:null,A:null,O:null,h:null}),"t"===c?(f.S=Y(s,3),f.S&&3===f.S.nodeType&&(f.h=f.S.textContent,e.push(f),s.remove(),r===f.M&&(t.v||(t.v=[]),t.v[f.I]=f),l&&"0"===f.N&&(l[f.I]=f.S))):"c"===c?(f.S=Y(s,8),f.S&&8===f.S.nodeType&&(e.push(f),s.remove())):f.M===r&&("s"===c?B(s["s-sn"]=u[5]||"",u[2],f,s,t,e,n,l,i):"r"===c&&l&&s.remove()));else if(t&&"style"===t.O){const e=H(null,s.textContent);e.S=s,e.I="0",t.v=[e]}return t},W=(t,e)=>{if(1===t.nodeType){const n=t[d]||t.getAttribute(d);n&&e.set(n,t);let l=0;if(t.shadowRoot)for(;l<t.shadowRoot.childNodes.length;l++)W(t.shadowRoot.childNodes[l],e);const o=t.__childNodes||t.childNodes;for(l=0;l<o.length;l++)W(o[l],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},z=t=>({i:0,M:null,k:null,N:null,I:"0",S:null,m:null,v:null,j:null,A:null,O:null,h:null,...t});function B(t,e,n,l,o,s,r,i,c){l["s-sr"]=!0,n.A=t||null,n.O="slot";const u=(null==o?void 0:o.S)?o.S["s-id"]||o.S.getAttribute("s-id"):"";if(i&&h.document){const s=n.S=h.document.createElement(n.O);n.A&&n.S.setAttribute("name",t),o.S.shadowRoot&&u&&u!==n.M?_(o.S,"insertBefore")(s,_(o.S,"children")[0]):_(_(l,"parentNode"),"insertBefore")(s,l),T(c,e,t,l,n.M),l.remove(),"0"===n.N&&(i[n.I]=n.S)}else{const s=n.S,r=u&&u!==n.M&&o.S.shadowRoot;T(c,e,t,l,r?u:n.M),function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],l=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const o=this["s-cr"].parentElement;return(o.__childNodes?o.childNodes:(t=>{const e=[];for(let n=0;n<t.length;n++){const l=t[n]["s-nr"]||void 0;l&&l.isConnected&&e.push(l)}return e})(o.childNodes)).forEach((t=>{l===(t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0)(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}(l),r&&o.S.insertBefore(s,o.S.children[0])}s.push(n),r.push(n),o.v||(o.v=[]),o.v[n.I]=n}var q,T=(t,e,n,l,o)=>{var s,r;let i=l.nextSibling;if(t[e]=t[e]||[],i&&!(null==(s=i.nodeValue)?void 0:s.startsWith("s.")))do{!i||(i.getAttribute&&i.getAttribute("slot")||i["s-sn"])!==n&&(""!==n||i["s-sn"]||i.getAttribute&&i.getAttribute("slot")||8!==i.nodeType&&3!==i.nodeType)||(i["s-sn"]=n,t[e].push({slot:l,node:i,hostId:o})),i=null==i?void 0:i.nextSibling}while(i&&!(null==(r=i.nodeValue)?void 0:r.startsWith("s.")))},Y=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},J=class o{static fromLocalValue(t){const e=t[n],s=l in t?t[l]:void 0;switch(e){case"string":case"boolean":return s;case"bigint":return BigInt(s);case"undefined":return;case"null":return null;case"number":return"NaN"===s?NaN:"-0"===s?-0:"Infinity"===s?1/0:"-Infinity"===s?-1/0:s;case"array":return s.map((t=>o.fromLocalValue(t)));case"date":return new Date(s);case"map":const t=new Map;for(const[e,n]of s){const l="object"==typeof e&&null!==e?o.fromLocalValue(e):e,s=o.fromLocalValue(n);t.set(l,s)}return t;case"object":const n={};for(const[t,e]of s)n[t]=o.fromLocalValue(e);return n;case"regexp":const{pattern:l,flags:r}=s;return new RegExp(l,r);case"set":const i=new Set;for(const t of s)i.add(o.fromLocalValue(t));return i;case"symbol":return Symbol(s);default:throw new Error(`Unsupported type: ${e}`)}}static fromLocalValueArray(t){return t.map((t=>o.fromLocalValue(t)))}static isLocalValueObject(o){if("object"!=typeof o||null===o)return!1;if(!o.hasOwnProperty(n))return!1;const s=o[n];return!!Object.values({...t,...e}).includes(s)&&("null"===s||"undefined"===s||o.hasOwnProperty(l))}},Z=(t,e)=>{return"string"==typeof t&&t.startsWith(o)?t="string"==typeof(n=t)&&n.startsWith(o)?J.fromLocalValue(JSON.parse(atob(n.slice(11)))):n:null==t||U(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?String(t):t;var n},G=(t,e)=>{const n=t;return{emit:t=>K(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},K=(t,e,n)=>{const l=m.ce(e,n);return t.dispatchEvent(l),l},Q=(t,e,n,l,o,s,r)=>{if(n===l)return;let i=u(t,e),f=e.toLowerCase();if("class"===e){const e=t.classList,o=tt(n);let s=tt(l);if((t["s-si"]||t["s-sc"])&&r){const n=t["s-sc"]||t["s-si"];s.push(n),o.forEach((t=>{t.startsWith(n)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),e.add(...s)}else e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("key"===e);else if("ref"===e)l&&ht(l,t);else if(t.__lookupSetter__(e)||"o"!==e[0]||"n"!==e[1]){if("a"===e[0]&&e.startsWith("attr:")){const n=e.slice(5);let o;{const e=c(t);if(e&&e.l&&e.l.t){const t=e.l.t[n];t&&t[1]&&(o=t[1])}}return o||(o=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==l||!1===l?!1===l&&""!==t.getAttribute(o)||t.removeAttribute(o):t.setAttribute(o,!0===l?"":l))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=l}catch(t){}return}{const r=U(l);if((i||r&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const o=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]===o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&s||o)&&!r&&1===t.nodeType&&t.setAttribute(e,l=!0===l?"":l)}}else if(e="-"===e[2]?e.slice(3):u(h,f)?f.slice(2):f[2]+e.slice(3),n||l){const o=e.endsWith(et);e=e.replace(nt,""),n&&m.rel(t,e,n,o),l&&m.ael(t,e,l,o)}},X=/\s/,tt=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(X):[]),et="Capture",nt=new RegExp(et+"$"),lt=(t,e,n,l)=>{const o=11===e.S.nodeType&&e.S.host?e.S.host:e.S,s=t&&t.m||{},r=e.m||{};for(const t of ot(Object.keys(s)))t in r||Q(o,t,s[t],void 0,n,e.i,l);for(const t of ot(Object.keys(r)))Q(o,t,s[t],r[t],n,e.i,l)};function ot(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var st=!1,rt=!1,it=[],ct=[],ut=(t,e,n)=>{const l=e.v[n];let o,s,r=0;if(null!=l.h)o=l.S=h.document.createTextNode(l.h);else{if(rt||(rt="svg"===l.O),!h.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=l.S=h.document.createElementNS(rt?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.O),rt&&"foreignObject"===l.O&&(rt=!1),lt(null,l,rt),l.v){const e="template"===l.O?o.content:o;for(r=0;r<l.v.length;++r)s=ut(t,l,r),s&&e.appendChild(s)}"svg"===l.O?rt=!1:"foreignObject"===o.tagName&&(rt=!0)}return o["s-hn"]=q,o},ft=(t,e,n,l,o,s)=>{let r,i=t;for(i.shadowRoot&&i.tagName===q&&(i=i.shadowRoot),"template"===n.O&&(i=i.content);o<=s;++o)l[o]&&(r=ut(null,n,o),r&&(l[o].S=r,yt(i,r,e)))},at=(t,e,n)=>{for(let l=e;l<=n;++l){const e=t[l];if(e){const t=e.S;pt(e),t&&t.remove()}}},dt=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),$t=(t,e,n=!1)=>{const l=e.S=t.S,o=t.v,s=e.v,r=e.O,i=e.h;null==i?(rt="svg"===r||"foreignObject"!==r&&rt,"slot"!==r||st||t.A!==e.A&&(e.S["s-sn"]=e.A||"",(t=>{m.i|=1;const e=t.closest(q.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),l=Array.from(t.__childNodes||t.childNodes);for(const t of n?l.reverse():l)null!=t["s-sh"]&&(yt(e,t,null!=n?n:null),t["s-sh"]=void 0)}m.i&=-2})(e.S.parentElement)),lt(t,e,rt,n),null!==o&&null!==s?((t,e,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=e.length-1,d=e[0],$=e[a],p=l.length-1,h=l[0],y=l[p];const m="template"===n.O?t.content:t;for(;i<=a&&c<=p;)if(null==d)d=e[++i];else if(null==$)$=e[--a];else if(null==h)h=l[++c];else if(null==y)y=l[--p];else if(dt(d,h,o))$t(d,h,o),d=e[++i],h=l[++c];else if(dt($,y,o))$t($,y,o),$=e[--a],y=l[--p];else if(dt(d,y,o))$t(d,y,o),yt(m,d.S,$.S.nextSibling),d=e[++i],y=l[--p];else if(dt($,h,o))$t($,h,o),yt(m,$.S,d.S),$=e[--a],h=l[++c];else{for(u=-1,f=i;f<=a;++f)if(e[f]&&null!==e[f].j&&e[f].j===h.j){u=f;break}u>=0?(r=e[u],r.O!==h.O?s=ut(e&&e[c],n,u):($t(r,h,o),e[u]=void 0,s=r.S),h=l[++c]):(s=ut(e&&e[c],n,c),h=l[++c]),s&&yt(d.S.parentNode,s,d.S)}i>a?ft(t,null==l[p+1]?null:l[p+1].S,n,l,c,p):c>p&&at(e,i,a)})(l,o,e,s,n):null!==s?(null!==t.h&&(l.textContent=""),ft(l,null,e,s,0,s.length-1)):n||null===o?n&&null!==o&&null===s&&(e.v=o):at(o,0,o.length-1),rt&&"svg"===r&&(rt=!1)):t.h!==i&&(l.data=i)},pt=t=>{t.m&&t.m.ref&&it.push((()=>t.m.ref(null))),t.v&&t.v.map(pt)},ht=(t,e)=>{ct.push((()=>t(e)))},yt=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),mt=(t,e,n=!1)=>{const l=t.$hostElement$,o=t.l,s=t._||H(null,null);var r;const i=(r=e)&&r.O===P?e:V(null,null,e);if(q=l.tagName,n&&i.m)for(const t of Object.keys(i.m))l.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.m[t]=l[t]);i.O=null,i.i|=4,t._=i,i.S=s.S=l.shadowRoot||l,st=!(!(1&o.i)||128&o.i),$t(s,i,n),it.forEach((t=>t())),it.length=0,ct.forEach((t=>t())),ct.length=0},bt=(t,e)=>{if(e&&!t.C&&e["s-p"]){const n=e["s-p"].push(new Promise((l=>t.C=()=>{e["s-p"].splice(n-1,1),l()})))}},vt=(t,e)=>{if(t.i|=16,4&t.i)return void(t.i|=512);bt(t,t.L);const n=()=>gt(t,e);if(!e)return k(n);queueMicrotask((()=>{n()}))},gt=(t,e)=>{const n=t.$hostElement$,l=n;if(!l)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return o=kt(l,e?"componentWillLoad":"componentWillUpdate",void 0,n),o=wt(o,(()=>kt(l,"componentWillRender",void 0,n))),wt(o,(()=>Ot(t,l,e)))},wt=(t,e)=>jt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),jt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Ot=async(t,e,n)=>{var l;const o=t.$hostElement$,s=o["s-rc"];n&&(t=>{const e=t.l,n=t.$hostElement$,l=e.i,o=D(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(t);St(t,e,o,n),s&&(s.map((t=>t())),o["s-rc"]=void 0);{const e=null!=(l=o["s-p"])?l:[],n=()=>xt(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.i|=4,e.length=0)}},St=(t,e,n,l)=>{try{e=e.render(),t.i&=-17,t.i|=2,mt(t,e,l)}catch(e){f(e,t.$hostElement$)}return null},xt=t=>{const e=t.$hostElement$,n=e,l=t.L;kt(n,"componentDidRender",void 0,e),64&t.i?kt(n,"componentDidUpdate",void 0,e):(t.i|=64,Nt(e),kt(n,"componentDidLoad",void 0,e),t.D(e),l||Mt()),t.C&&(t.C(),t.C=void 0),512&t.i&&M((()=>vt(t,!1))),t.i&=-517},Mt=()=>{var t;M((()=>K(h,"appload",{detail:{namespace:"web-component-poc"}}))),(null==(t=m.R)?void 0:t.size)&&m.R.clear()},kt=(t,e,n,l)=>{if(t&&t[e])try{return t[e](n)}catch(t){f(t,l)}},Nt=t=>t.classList.add("hydrated"),Et=(t,e,n,l)=>{const o=c(t);if(!o)return;const s=t,r=o.o.get(e),i=o.i,u=s;n=Z(n,l.t[e][0]);const f=Number.isNaN(r)&&Number.isNaN(n);if(n!==r&&!f&&(o.o.set(e,n),2&i)){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(n,r,e)&&!(16&i))return;16&i||vt(o,!1)}},It=(t,e)=>{var n,l;const o=t.prototype;if(e.t){const r=Object.entries(null!=(n=e.t)?n:{});r.map((([t,[n]])=>{if(31&n||32&n){const{get:l,set:r}=s(o,t)||{};l&&(e.t[t][0]|=2048),r&&(e.t[t][0]|=4096),Object.defineProperty(o,t,{get(){return l?l.apply(this):(e=t,c(this).o.get(e));var e},configurable:!0,enumerable:!0}),Object.defineProperty(o,t,{set(l){const o=c(this);if(o){if(r)return void 0===(32&n?this[t]:o.$hostElement$[t])&&o.o.get(t)&&(l=o.o.get(t)),r.apply(this,[Z(l,n)]),void Et(this,t,l=32&n?this[t]:o.$hostElement$[t],e);Et(this,t,l,e)}}})}}));{const n=new Map;o.attributeChangedCallback=function(t,l,s){m.jmp((()=>{var i;const u=n.get(t),f=c(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==s)return;if(null==u){const n=null==f?void 0:f.i;if(f&&n&&!(8&n)&&s!==l){const o=this,r=null==(i=e.U)?void 0:i[t];null==r||r.forEach((e=>{const[[r,i]]=Object.entries(e);null!=o[r]&&(128&n||1&i)&&o[r].call(o,s,l,t)}))}return}const a=r.find((([t])=>t===u));a&&4&a[1][0]&&(s=null!==s&&"false"!==s);const d=Object.getOwnPropertyDescriptor(o,u);s==this[u]||d.get&&!d.set||(this[u]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=e.U)?l:{}),...r.filter((([t,e])=>31&e[0])).map((([t,e])=>{const l=e[1]||t;return n.set(l,t),l}))]))}}return t},At=(t,e)=>{const n={i:e[0],p:e[1]};try{n.t=e[2],(()=>{if(!h.document)return;const t=h.document.querySelectorAll(`[${$}]`);let e=0;for(;e<t.length;e++)L(t[e].getAttribute($),t[e].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0)})();const l=t.prototype.connectedCallback,o=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,e)=>{const n={i:0,$hostElement$:t,l:e,o:new Map,V:new Map};n.H=new Promise((t=>n.D=t)),t["s-p"]=[],t["s-rc"]=[];const l=n;t.__stencil__getHostRef=()=>l,512&e.i&&i(t,n)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!c(this))return;this.__hasHostListenerAttached=!0}(t=>{if(!(1&m.i)){const e=c(t);if(!e)return;const n=e.l,l=()=>{};if(1&e.i)(null==e?void 0:e.P)||(null==e?void 0:e.H)&&e.H.then((()=>{}));else{let l;if(e.i|=1,l=t.getAttribute(d),l){if(1&n.i){const e=D(t.shadowRoot,n);t.classList.remove(e+"-h",e+"-s")}((t,e,n,l)=>{var o,s,r,i;const u=t.shadowRoot,f=[],a=[],$=u?[]:null,p=H(e,null);p.S=t,!h.document||m.R&&m.R.size||W(h.document.body,m.R=new Map),t[d]=n,t.removeAttribute(d),l._=F(p,f,[],$,t,t,n,a);let y=0;const b=f.length;let v;for(;y<b;y++){v=f[y];const n=v.M+"."+v.k,l=m.R.get(n),s=v.S;if(u){if((null==(o=v.O)?void 0:o.toString().includes("-"))&&"slot-fb"!==v.O&&!v.S.shadowRoot){const t=c(v.S);if(t){const e=R(t.l),n=h.document.querySelector(`style[sty-id="${e}"]`);n&&$.unshift(n.cloneNode(!0))}}}else s["s-hn"]=e.toUpperCase(),"slot"===v.O&&(s["s-cr"]=t["s-cr"]);"slot"===v.O&&(v.A=v.S["s-sn"]||v.S.name||null,v.v?(v.i|=2,v.S.childNodes.length||v.v.forEach((t=>{v.S.appendChild(t.S)}))):v.i|=1),l&&l.isConnected&&(l.parentElement.shadowRoot&&""===l["s-en"]&&l.parentNode.insertBefore(s,l.nextSibling),l.parentNode.removeChild(l),u||(s["s-oo"]=parseInt(v.k))),l&&!l["s-id"]&&m.R.delete(n)}const g=[],w=a.length;let j,O,S,x,M=0,k=0;for(;M<w;M++)if(j=a[M],j&&j.length)for(S=j.length,O=0;O<S;O++){if(x=j[O],g[x.hostId]||(g[x.hostId]=m.R.get(x.hostId)),!g[x.hostId])continue;const t=g[x.hostId];t.shadowRoot&&x.node.parentElement!==t&&t.insertBefore(x.node,null==(r=null==(s=j[O-1])?void 0:s.node)?void 0:r.nextSibling),t.shadowRoot&&u||(x.slot["s-cr"]||(x.slot["s-cr"]=t["s-cr"],x.slot["s-cr"]=!x.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),A(x.node,x.slot,0,x.node["s-oo"]||k),(null==(i=x.node.parentElement)?void 0:i.shadowRoot)&&x.node.getAttribute&&x.node.getAttribute("slot")&&x.node.removeAttribute("slot")),k=(x.node["s-oo"]||k)+1}if(u&&!u.childNodes.length){let e=0;const n=$.length;if(n){for(;e<n;e++){const t=$[e];t&&u.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):8!==t.nodeType||t.nodeValue||t.parentNode.removeChild(t))}))}}l.$hostElement$=t})(t,n.p,l,e)}{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){bt(e,e.L=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let l;try{if(!(32&e.i)&&(e.i|=32,l=t.constructor,customElements.whenDefined(t.localName).then((()=>e.i|=128)),l&&l.style)){let t;"string"==typeof l.style&&(t=l.style);const e=R(n);if(!a.has(e)){const l=()=>{};L(e,t,!!(1&n.i)),l()}}const o=e.L,s=()=>vt(e,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()}catch(n){f(n,t),e.C&&(e.C(),e.C=void 0),e.D&&e.D(t)}})(t,e,n)}l()}})(this),l&&l.call(this)},disconnectedCallback(){(async t=>{1&m.i||c(t),C.has(t)&&C.delete(t),t.shadowRoot&&C.has(t.shadowRoot)&&C.delete(t.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else I.call(this,n)}}),Object.defineProperty(t,"is",{value:n.p,configurable:!0}),It(t,n)}catch(e){return f(e),t}},_t=t=>m.$=t,Ct=t=>Object.assign(m,t);function Lt(t,e){mt({l:{i:0,p:e.tagName},$hostElement$:e},t)}function Dt(t){return t}export{y as H,_t as a,Ct as b,G as c,N as g,V as h,At as p,Lt as r,E as s,Dt as t}
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };
@@ -1,4 +1,45 @@
1
- import { r as registerInstance, h } from './index-B0WZf8UB.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-D7_MJBO8.js';
2
+
3
+ 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}`;
4
+
5
+ const CustomButton = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.buttonClick = createEvent(this, "buttonClick");
9
+ }
10
+ /**
11
+ * Visual variant of the button.
12
+ */
13
+ variant = 'primary';
14
+ /**
15
+ * Native button type (button or submit).
16
+ */
17
+ type = 'button';
18
+ /**
19
+ * When true, the button is disabled and does not emit events.
20
+ */
21
+ disabled = false;
22
+ /**
23
+ * Emitted when the button is clicked (not emitted when disabled).
24
+ */
25
+ buttonClick;
26
+ handleClick = (e) => {
27
+ if (this.disabled) {
28
+ e.preventDefault();
29
+ e.stopPropagation();
30
+ return;
31
+ }
32
+ this.buttonClick.emit(e);
33
+ };
34
+ render() {
35
+ return (h("button", { key: 'b373f44e11e651d0371ce3cade98b4650ccdd727', type: this.type, class: {
36
+ 'custom-button': true,
37
+ [`custom-button--${this.variant}`]: true,
38
+ 'custom-button--disabled': this.disabled,
39
+ }, disabled: this.disabled, onClick: this.handleClick }, h("slot", { key: '2a046bc70af051c04f4549def87dac7044b41e04' })));
40
+ }
41
+ };
42
+ CustomButton.style = buttonCss();
2
43
 
3
44
  /**
4
45
  * Mock jobs for local development and docs.
@@ -57,9 +98,6 @@ const mockJobsListOnly = [
57
98
  employmentType: ['Full-time', 'Contract'],
58
99
  },
59
100
  ];
60
- function getMockJobsJson() {
61
- return JSON.stringify(mockJobsListOnly);
62
- }
63
101
 
64
102
  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}`;
65
103
 
@@ -162,12 +200,9 @@ const JobsListOnlyUI = class {
162
200
  const totalJob = this.mockData ? jobsArray.length : (this.totalJob || jobsArray.length);
163
201
  const showNoResults = !loading && totalJob === 0 && !this.showSuggestions;
164
202
  const showSuggestionsBlock = !loading && totalJob === 0 && this.showSuggestions;
165
- return (h("div", { key: '44f0f36e2f74ad8bc624a902a73799fdd3936c90', class: `jobs-list-root ${this.rootClass}`.trim() }, h("div", { key: '9772be003be85eb62a99f5d9f34fdc47c603b1a3', class: "results-container" }, h("div", { key: '479edda073d1718349131f83f42526ad9d8bb36e', class: loading ? 'loader' : 'loader hide', "aria-hidden": !loading }), totalJob > 0 && (h("div", { key: '76f000851c08d039fd27de035361ec01181db1d7', class: "card" }, h("ul", { key: '205e471ade760ab6c2c2757f1167f35396443539', class: "results-list front" }, jobsArray.map((job, index) => this.renderJobItem(job, index))))), showNoResults && (h("div", { key: 'deb99a78f384f9a37414cad9d5efe0a8c7bd607e', class: "share-jobs__no-results" }, h("h2", { key: 'a66d46aefae4696b34bf3a5391d2b3e290909c84' }, this.noResultsLine1), h("h3", { key: '89495bb9f686c494fa7621b47ee65f246f1c27c1' }, this.noResultsLine2))), showSuggestionsBlock && (h("div", { key: '0f248c3e10728a5bc43086657e31139b66803ce8', class: "card primary-color" }, h("h4", { key: '7ee05c992bf6850456d83d5a2d982d92912cd5fe', class: "result-suggestions-title" }, this.clearResultSuggestionsTitleText, ":"), h("ul", { key: 'b6071950497c21792afc43bbe312b4d424ed750e', class: "results-list front" }, h("li", { key: '88e781dc907654a469c000704e1e77cf0b882da1', class: "result-suggestions-line" }, this.clearResultSuggestionsLine1), h("li", { key: '4a02da6de95c55bd7cfde179b33267fc68aff473', class: "result-suggestions-line" }, this.clearResultSuggestionsLine2), h("li", { key: '6873e011e01b3a0a074b27f73d2666aa0be6592f', class: "result-suggestions-line" }, this.clearResultSuggestionsLine3), this.clearResultSuggestionsLine4 && (h("li", { key: '2fb8b3059abcf99e843cbffd1d8922e09152048d', class: "result-suggestions-line" }, this.clearResultSuggestionsLine4))))))));
203
+ return (h("div", { key: 'c2e9c9146a24f0869cbd75588b2718c94f62bbbc', class: `jobs-list-root ${this.rootClass}`.trim() }, h("div", { key: 'b2f3dffe7e17797b378bd648f54e46bb31e2d374', class: "results-container" }, h("div", { key: '4733870b035ec307b6e691f1d62ed8568e93fd1f', class: loading ? 'loader' : 'loader hide', "aria-hidden": !loading }), totalJob > 0 && (h("div", { key: 'a9438f079041e0121fafdcb42089f27482475491', class: "card" }, h("ul", { key: '3bd7dcc64f46aec24945a25df7345766606a51bd', class: "results-list front" }, jobsArray.map((job, index) => this.renderJobItem(job, index))))), showNoResults && (h("div", { key: '1996476568c745e0ada31b47bb1a1be2efaf6917', class: "share-jobs__no-results" }, h("h2", { key: '8d2a79881428d89d783b05f26d06abbef94f5c2e' }, this.noResultsLine1), h("h3", { key: '855704ea47b06a701c0e59a8bb43fb405ad3bb96' }, this.noResultsLine2))), showSuggestionsBlock && (h("div", { key: '74da6e8243423dc9770f4dc67f46f5627c352349', class: "card primary-color" }, h("h4", { key: 'd3fb2ef03a656331f97afe3692b05bbe064ed124', class: "result-suggestions-title" }, this.clearResultSuggestionsTitleText, ":"), h("ul", { key: '63914647653930e6c686a38d779af20e7e5c17d5', class: "results-list front" }, h("li", { key: '82063c023701d0c42ca2787f382d42a80f569b6a', class: "result-suggestions-line" }, this.clearResultSuggestionsLine1), h("li", { key: '7645d7a7435f76854b8eeb0d693a883fc341764e', class: "result-suggestions-line" }, this.clearResultSuggestionsLine2), h("li", { key: '060675d017137e8b23342c92efadc769e2bae1c2', class: "result-suggestions-line" }, this.clearResultSuggestionsLine3), this.clearResultSuggestionsLine4 && (h("li", { key: '0f6ef00a4f6267dc9ad2441e16f02c82b0994d03', class: "result-suggestions-line" }, this.clearResultSuggestionsLine4))))))));
166
204
  }
167
205
  };
168
206
  JobsListOnlyUI.style = jobsListOnlyUiCss();
169
207
 
170
- export { JobsListOnlyUI as jobs_list_only_ui };
171
- //# sourceMappingURL=jobs-list-only-ui.entry.esm.js.map
172
-
173
- //# sourceMappingURL=jobs-list-only-ui.entry.js.map
208
+ export { CustomButton as fast_button, JobsListOnlyUI as jobs_list_only_ui };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, d as getElement, h } from './index-B0WZf8UB.js';
1
+ import { r as registerInstance, g as getElement, h } from './index-D7_MJBO8.js';
2
2
 
3
3
  function isNumber(subject) {
4
4
  return typeof subject === 'number';
@@ -1905,6 +1905,3 @@ const AppCarousel = class {
1905
1905
  AppCarousel.style = carouselCss();
1906
1906
 
1907
1907
  export { AppCarousel as fast_carousel };
1908
- //# sourceMappingURL=fast-carousel.entry.esm.js.map
1909
-
1910
- //# sourceMappingURL=fast-carousel.entry.js.map