@phatvu/web-component-poc 1.0.3 → 1.0.4

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 (31) hide show
  1. package/dist/cjs/{fast-button_3.cjs.entry.js → fast-button_4.cjs.entry.js} +68 -45
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/web-component-poc.cjs.js +1 -1
  4. package/dist/collection/collection-manifest.json +2 -1
  5. package/dist/collection/components/{jobs-list-only-ui/jobs-list-only-ui.css → jobs-item/jobs-item.css} +1 -75
  6. package/dist/collection/components/jobs-item/jobs-item.js +253 -0
  7. package/dist/collection/components/jobs-list-only/jobs-list-only.css +75 -0
  8. package/dist/collection/components/{jobs-list-only-ui/jobs-list-only-ui.js → jobs-list-only/jobs-list-only.js} +7 -45
  9. package/dist/components/{jobs-list-only-ui.d.ts → jobs-item.d.ts} +4 -4
  10. package/dist/components/jobs-item.js +1 -0
  11. package/dist/components/jobs-list-only.d.ts +11 -0
  12. package/dist/components/jobs-list-only.js +1 -0
  13. package/dist/components/p-ClQDwJJB.js +1 -0
  14. package/dist/esm/{fast-button_3.entry.js → fast-button_4.entry.js} +67 -45
  15. package/dist/esm/loader.js +1 -1
  16. package/dist/esm/web-component-poc.js +1 -1
  17. package/dist/types/components/jobs-item/jobs-item.d.ts +14 -0
  18. package/dist/types/components/{jobs-list-only-ui/jobs-list-only-ui.d.ts → jobs-list-only/jobs-list-only.d.ts} +1 -2
  19. package/dist/types/components.d.ts +99 -10
  20. package/dist/types/types/jobs-list.d.ts +2 -2
  21. package/dist/web-component-poc/index-pJKMKO-T.js.map +1 -0
  22. package/dist/web-component-poc/index.esm.js.map +1 -0
  23. package/dist/web-component-poc/p-df843533.entry.js +1 -0
  24. package/dist/web-component-poc/web-component-poc.esm.js +1 -1
  25. package/dist/web-component-poc/web-component-poc.esm.js.map +1 -0
  26. package/hydrate/index.js +87 -46
  27. package/hydrate/index.mjs +87 -46
  28. package/package.json +9 -1
  29. package/readme.md +11 -0
  30. package/dist/components/jobs-list-only-ui.js +0 -1
  31. package/dist/web-component-poc/p-3d68d559.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{t as e,p as t,H as s,h as i}from"./p-UM9TUfe3.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}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as n,g as s}from"./p-Dk5CvWmb.js";const o=class{constructor(n){t(this,n),this.buttonClick=e(this,"buttonClick")}variant="primary";type="button";disabled=!1;buttonClick;handleClick=t=>{if(this.disabled)return t.preventDefault(),void t.stopPropagation();this.buttonClick.emit(t)};render(){return n("button",{key:"3b74909afe4e305dfd38f0b07657202e3d5bfccd",type:this.type,class:{"custom-button":!0,[`custom-button--${this.variant}`]:!0,"custom-button--disabled":this.disabled},disabled:this.disabled,onClick:this.handleClick},n("slot",{key:"49845d350e4665c5c66e30bd9262f788eaaa1e20"}))}};function r(t){return"number"==typeof t}function i(t){return"string"==typeof t}function c(t){return"boolean"==typeof t}function l(t){return"[object Object]"===Object.prototype.toString.call(t)}function a(t){return Math.abs(t)}function u(t){return Math.sign(t)}function d(t,e){return a(t-e)}function f(t){return g(t).map(Number)}function p(t){return t[h(t)]}function h(t){return Math.max(0,t.length-1)}function m(t,e){return e===h(t)}function b(t,e=0){return Array.from(Array(t),((t,n)=>e+n))}function g(t){return Object.keys(t)}function y(t,e){return[t,e].reduce(((t,e)=>(g(e).forEach((n=>{const s=t[n],o=e[n],r=l(s)&&l(o);t[n]=r?y(s,o):o})),t)),{})}function _(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function x(){let t=[];const e={add:function(n,s,o,r={passive:!0}){let i;if("addEventListener"in n)n.addEventListener(s,o,r),i=()=>n.removeEventListener(s,o,r);else{const t=n;t.addListener(o),i=()=>t.removeListener(o)}return t.push(i),e},clear:function(){t=t.filter((t=>t()))}};return e}function v(t=0,e=0){const n=a(t-e);function s(e){return e<t}function o(t){return t>e}function r(t){return s(t)||o(t)}return{length:n,max:e,min:t,constrain:function(n){return r(n)?s(n)?t:e:n},reachedAny:r,reachedMax:o,reachedMin:s,removeOffset:function(t){return n?t-n*Math.ceil((t-e)/n):t}}}function k(t,e,n){const{constrain:s}=v(0,t),o=t+1;let r=i(e);function i(t){return n?a((o+t)%o):s(t)}function c(){return r}function l(){return k(t,c(),n)}const u={get:c,set:function(t){return r=i(t),u},add:function(t){return l().set(c()+t)},clone:l};return u}function w(t,e,n,s,o,r,i,l,f,p,h,m,b,g,y,k,w,S,A){const{cross:M,direction:j}=t,R=["INPUT","SELECT","TEXTAREA"],C={passive:!1},L=x(),T=x(),z=v(50,225).constrain(g.measure(20)),N={mouse:300,touch:400},B={mouse:500,touch:600},E=y?43:25;let F=!1,I=0,$=0,D=!1,O=!1,P=!1,H=!1;function U(t){if(!_(t,s)&&t.touches.length>=2)return V(t);const e=r.readPoint(t),n=r.readPoint(t,M),i=d(e,I),c=d(n,$);if(!O&&!H){if(!t.cancelable)return V(t);if(O=i>c,!O)return V(t)}const a=r.pointerMove(t);i>k&&(P=!0),p.useFriction(.3).useDuration(.75),l.start(),o.add(j(a)),t.preventDefault()}function V(t){const e=h.byDistance(0,!1).index!==m.get(),n=r.pointerUp(t)*(y?B:N)[H?"mouse":"touch"],s=function(t,e){const n=m.add(-1*u(t)),s=h.byDistance(t,!y).distance;return y||a(t)<z?s:w&&e?.5*s:h.byIndex(n.get(),0).distance}(j(n),e),o=function(t,e){if(0===t||0===e)return 0;if(a(t)<=a(e))return 0;const n=d(a(t),a(e));return a(n/t)}(n,s),i=E-10*o,c=S+o/50;O=!1,D=!1,T.clear(),p.useDuration(i).useFriction(c),f.distance(s,!y),H=!1,b.emit("pointerUp")}function G(t){P&&(t.stopPropagation(),t.preventDefault(),P=!1)}return{init:function(t){if(!A)return;function l(l){(c(A)||A(t,l))&&function(t){const c=_(t,s);H=c,P=y&&c&&!t.buttons&&F,F=d(o.get(),i.get())>=2,c&&0!==t.button||function(t){return R.includes(t.nodeName||"")}(t.target)||(D=!0,r.pointerDown(t),p.useFriction(0).useDuration(0),o.set(i),function(){const t=H?n:e;T.add(t,"touchmove",U,C).add(t,"touchend",V).add(t,"mousemove",U,C).add(t,"mouseup",V)}(),I=r.readPoint(t),$=r.readPoint(t,M),b.emit("pointerDown"))}(l)}const a=e;L.add(a,"dragstart",(t=>t.preventDefault()),C).add(a,"touchmove",(()=>{}),C).add(a,"touchend",(()=>{})).add(a,"touchstart",l).add(a,"mousedown",l).add(a,"touchcancel",V).add(a,"contextmenu",V).add(a,"click",G,!0)},destroy:function(){L.clear(),T.clear()},pointerDown:function(){return D}}}function S(t,e){let n,s;function o(t){return t.timeStamp}function r(n,s){const o="client"+("x"===(s||t.scroll)?"X":"Y");return(_(n,e)?n:n.touches[0])[o]}return{pointerDown:function(t){return n=t,s=t,r(t)},pointerMove:function(t){const e=r(t)-r(s),i=o(t)-o(n)>170;return s=t,i&&(n=t),e},pointerUp:function(t){if(!n||!s)return 0;const e=r(s)-r(n),i=o(t)-o(n),c=o(t)-o(s)>170,l=e/i;return i&&!c&&a(l)>.1?l:0},readPoint:r}}function A(t,e,n,s,o,r,i){const l=[t].concat(s);let u,d,f=[],p=!1;function h(t){return o.measureSize(i.measure(t))}return{init:function(o){r&&(d=h(t),f=s.map(h),u=new ResizeObserver((n=>{(c(r)||r(o,n))&&function(n){for(const r of n){if(p)return;const n=r.target===t,i=s.indexOf(r.target),c=n?d:f[i];if(a(h(n?t:s[i])-c)>=.5){o.reInit(),e.emit("resize");break}}}(n)})),n.requestAnimationFrame((()=>{l.forEach((t=>u.observe(t)))})))},destroy:function(){p=!0,u&&u.disconnect()}}}function M(t,e,n,s,o){const r=o.measure(10),i=o.measure(50),c=v(.1,.99);let l=!1;function u(){return!l&&!!t.reachedAny(n.get())&&!!t.reachedAny(e.get())}return{shouldConstrain:u,constrain:function(o){if(!u())return;const l=t.reachedMin(e.get())?"min":"max",d=a(t[l]-e.get()),f=n.get()-e.get(),p=c.constrain(d/i);n.subtract(f*p),!o&&a(f)<r&&(n.set(t.constrain(n.get())),s.useDuration(25).useBaseFriction())},toggleActive:function(t){l=!t}}}function j(t,e,n,s){const o=e.min+.1,r=e.max+.1,{reachedMin:i,reachedMax:c}=v(o,r);return{loop:function(e){if(!function(t){return 1===t?c(n.get()):-1===t&&i(n.get())}(e))return;const o=t*(-1*e);s.forEach((t=>t.add(o)))}}}function R(t){let e=t;function n(t){return r(t)?t:t.get()}return{get:function(){return e},set:function(t){e=n(t)},add:function(t){e+=n(t)},subtract:function(t){e-=n(t)}}}function C(t,e){const n="x"===t.scroll?function(t){return`translate3d(${t}px,0px,0px)`}:function(t){return`translate3d(0px,${t}px,0px)`},s=e.style;let o=null,r=!1;return{clear:function(){r||(s.transform="",e.getAttribute("style")||e.removeAttribute("style"))},to:function(e){if(r)return;const i=(c=t.direction(e),Math.round(100*c)/100);var c;i!==o&&(s.transform=n(i),o=i)},toggleActive:function(t){r=!t}}}function L(t,e,n,s,o,r,i,c,l){const a=f(o),u=h(p(f(o).reverse(),i[0]),n,!1).concat(h(p(a,e-i[0]-1),-n,!0));function d(t,e){return t.reduce(((t,e)=>t-o[e]),e)}function p(t,e){return t.reduce(((t,n)=>d(t,e)>0?t.concat([n]):t),[])}function h(o,i,a){const u=function(t){return r.map(((n,o)=>({start:n-s[o]+.5+t,end:n+e-.5+t})))}(i);return o.map((e=>{const s=a?0:-n,o=a?n:0,r=u[e][a?"end":"start"];return{index:e,loopPoint:r,slideLocation:R(-1),translate:C(t,l[e]),target:()=>c.get()>r?s:o}}))}return{canLoop:function(){return u.every((({index:t})=>d(a.filter((e=>e!==t)),e)<=.1))},clear:function(){u.forEach((t=>t.translate.clear()))},loop:function(){u.forEach((t=>{const{target:e,translate:n,slideLocation:s}=t,o=e();o!==s.get()&&(n.to(o),s.set(o))}))},loopPoints:u}}function T(t,e,n){let s,o=!1;return{init:function(r){n&&(s=new MutationObserver((t=>{o||(c(n)||n(r,t))&&function(t){for(const n of t)if("childList"===n.type){r.reInit(),e.emit("slidesChanged");break}}(t)})),s.observe(t,{childList:!0}))},destroy:function(){s&&s.disconnect(),o=!0}}}function z(t,e,n,s,o,l,y){const{align:_,axis:z,direction:N,startIndex:B,loop:E,duration:F,dragFree:I,dragThreshold:$,inViewThreshold:D,slidesToScroll:O,skipSnaps:P,containScroll:H,watchResize:U,watchSlides:V,watchDrag:G,watchFocus:J}=l,W={measure:function(t){const{offsetTop:e,offsetLeft:n,offsetWidth:s,offsetHeight:o}=t;return{top:e,right:n+s,bottom:e+o,left:n,width:s,height:o}}},Y=W.measure(e),X=n.map(W.measure),q=function(t,e){const n="rtl"===e,s="y"===t,o=!s&&n?-1:1;return{scroll:s?"y":"x",cross:s?"x":"y",startEdge:s?"top":n?"right":"left",endEdge:s?"bottom":n?"left":"right",measureSize:function(t){const{height:e,width:n}=t;return s?e:n},direction:function(t){return t*o}}}(z,N),K=q.measureSize(Y),Q=function(t){return{measure:function(e){return t*(e/100)}}}(K),Z=function(t,e){const n={start:function(){return 0},center:function(t){return s(t)/2},end:s};function s(t){return e-t}return{measure:function(s,o){return i(t)?n[t](s):t(e,s,o)}}}(_,K),tt=!E&&!!H,et=E||!!H,{slideSizes:nt,slideSizesWithGaps:st,startGap:ot,endGap:rt}=function(t,e,n,s,o,r){const{measureSize:i,startEdge:c,endEdge:l}=t,u=n[0]&&o,d=u?a(e[c]-n[0][c]):0,f=function(){if(!u)return 0;const t=r.getComputedStyle(p(s));return parseFloat(t.getPropertyValue(`margin-${l}`))}(),h=n.map(i),b=n.map(((t,e,n)=>{const s=!e,o=m(n,e);return s?h[e]+d:o?h[e]+f:n[e+1][c]-t[c]})).map(a);return{slideSizes:h,slideSizesWithGaps:b,startGap:d,endGap:f}}(q,Y,X,n,et,o),it=function(t,e,n,s,o,i,c,l,u){const{startEdge:d,endEdge:m,direction:b}=t,g=r(n);return{groupSlides:function(t){return g?function(t,e){return f(t).filter((t=>t%e==0)).map((n=>t.slice(n,n+e)))}(t,n):function(t){return t.length?f(t).reduce(((n,r,f)=>{const g=p(n)||0,y=0===g,_=r===h(t),x=o[d]-i[g][d],v=o[d]-i[r][m],k=!s&&y?b(c):0,w=a(v-(!s&&_?b(l):0)-(x+k));return f&&w>e+u&&n.push(r),_&&n.push(t.length),n}),[]).map(((e,n,s)=>{const o=Math.max(s[n-1]||0);return t.slice(o,e)})):[]}(t)}}}(q,K,O,E,Y,X,ot,rt,2),{snaps:ct,snapsAligned:lt}=function(t,e,n,s,o){const{startEdge:r,endEdge:i}=t,{groupSlides:c}=o,l=c(s).map((t=>p(t)[i]-t[0][r])).map(a).map(e.measure),u=s.map((t=>n[r]-t[r])).map((t=>-a(t))),d=c(u).map((t=>t[0])).map(((t,e)=>t+l[e]));return{snaps:u,snapsAligned:d}}(q,Z,Y,X,it),at=-p(ct)+p(st),{snapsContained:ut,scrollContainLimit:dt}=function(t,e,n,s){const o=v(-e+t,0),r=n.map(((t,e)=>{const{min:s,max:r}=o,i=o.constrain(t),l=!e,a=m(n,e);return l?r:a||c(s,i)?s:c(r,i)?r:i})).map((t=>parseFloat(t.toFixed(3)))),i=function(){const t=r[0],e=p(r);return v(r.lastIndexOf(t),r.indexOf(e)+1)}();function c(t,e){return d(t,e)<=1}return{snapsContained:function(){if(e<=t+2)return[o.max];if("keepSnaps"===s)return r;const{min:n,max:c}=i;return r.slice(n,c)}(),scrollContainLimit:i}}(K,at,lt,H),ft=tt?ut:lt,{limit:pt}=function(t,e,n){const s=e[0];return{limit:v(n?s-t:p(e),s)}}(at,ft,E),ht=k(h(ft),B,E),mt=ht.clone(),bt=f(n),gt=function(t,e,n,s){const o=x(),r=1e3/60;let i=null,c=0,l=0;function a(t){if(!l)return;i||(i=t,n(),n());const o=t-i;for(i=t,c+=o;c>=r;)n(),c-=r;s(c/r),l&&(l=e.requestAnimationFrame(a))}function u(){e.cancelAnimationFrame(l),i=null,c=0,l=0}return{init:function(){o.add(t,"visibilitychange",(()=>{t.hidden&&(i=null,c=0)}))},destroy:function(){u(),o.clear()},start:function(){l||(l=e.requestAnimationFrame(a))},stop:u,update:n,render:s}}(s,o,(()=>(({dragHandler:t,scrollBody:e,scrollBounds:n,options:{loop:s}})=>{s||n.constrain(t.pointerDown()),e.seek()})(Tt)),(t=>(({scrollBody:t,translate:e,location:n,offsetLocation:s,previousLocation:o,scrollLooper:r,slideLooper:i,dragHandler:c,animation:l,eventHandler:a,scrollBounds:u,options:{loop:d}},f)=>{const p=t.settled(),h=!u.shouldConstrain(),m=d?p:p&&h,b=m&&!c.pointerDown();b&&l.stop();const g=n.get()*f+o.get()*(1-f);s.set(g),d&&(r.loop(t.direction()),i.loop()),e.to(s.get()),b&&a.emit("settle"),m||a.emit("scroll")})(Tt,t))),yt=ft[ht.get()],_t=R(yt),xt=R(yt),vt=R(yt),kt=R(yt),wt=function(t,e,n,s,o){let r=0,i=0,c=o,l=.68,d=t.get(),f=0;function p(t){return c=t,m}function h(t){return l=t,m}const m={direction:function(){return i},duration:function(){return c},velocity:function(){return r},seek:function(){const e=s.get()-t.get();let o=0;return c?(n.set(t),r+=e/c,r*=l,d+=r,t.add(r),o=d-f):(r=0,n.set(s),t.set(s),o=e),i=u(o),f=d,m},settled:function(){return a(s.get()-e.get())<.001},useBaseFriction:function(){return h(.68)},useBaseDuration:function(){return p(o)},useFriction:h,useDuration:p};return m}(_t,vt,xt,kt,F),St=function(t,e,n,s,o){const{reachedAny:r,removeOffset:i,constrain:c}=s;function l(t){return t.concat().sort(((t,e)=>a(t)-a(e)))[0]}function d(e,s){const o=[e,e+n,e-n];if(!t)return e;if(!s)return l(o);const r=o.filter((t=>u(t)===s));return r.length?l(r):p(o)-n}return{byDistance:function(n,s){const l=o.get()+n,{index:u,distance:f}=function(n){const s=t?i(n):c(n),o=e.map(((t,e)=>({diff:d(t-s,0),index:e}))).sort(((t,e)=>a(t.diff)-a(e.diff))),{index:r}=o[0];return{index:r,distance:s}}(l),p=!t&&r(l);return!s||p?{index:u,distance:n}:{index:u,distance:n+d(e[u]-f,0)}},byIndex:function(t,n){return{index:t,distance:d(e[t]-o.get(),n)}},shortcut:d}}(E,ft,at,pt,kt),At=function(t,e,n,s,o,r,i){function c(o){const c=o.distance,l=o.index!==e.get();r.add(c),c&&(s.duration()?t.start():(t.update(),t.render(1),t.update())),l&&(n.set(e.get()),e.set(o.index),i.emit("select"))}return{distance:function(t,e){c(o.byDistance(t,e))},index:function(t,n){const s=e.clone().set(t);c(o.byIndex(s.get(),n))}}}(gt,ht,mt,wt,St,kt,y),Mt=function(t){const{max:e,length:n}=t;return{get:function(t){return n?(t-e)/-n:0}}}(pt),jt=x(),Rt=function(t,e,n,s){const o={};let r,i=null,c=null,l=!1;return{init:function(){r=new IntersectionObserver((t=>{l||(t.forEach((t=>{const n=e.indexOf(t.target);o[n]=t})),i=null,c=null,n.emit("slidesInView"))}),{root:t.parentElement,threshold:s}),e.forEach((t=>r.observe(t)))},destroy:function(){r&&r.disconnect(),l=!0},get:function(t=!0){if(t&&i)return i;if(!t&&c)return c;const e=function(t){return g(o).reduce(((e,n)=>{const s=parseInt(n),{isIntersecting:r}=o[s];return(t&&r||!t&&!r)&&e.push(s),e}),[])}(t);return t&&(i=e),t||(c=e),e}}}(e,n,y,D),{slideRegistry:Ct}=function(t,e,n,s,o,r){const{groupSlides:i}=o,{min:c,max:l}=s;return{slideRegistry:function(){const s=i(r);return 1===n.length?[r]:t&&"keepSnaps"!==e?s.slice(c,l).map(((t,e,n)=>{const s=!e,o=m(n,e);return s?b(p(n[0])+1):o?b(h(r)-p(n)[0]+1,p(n)[0]):t})):s}()}}(tt,H,ft,dt,it,bt),Lt=function(t,e,n,s,o,i,l,a){const u={passive:!0,capture:!0};let d=0;function f(t){"Tab"===t.code&&(d=(new Date).getTime())}return{init:function(p){a&&(i.add(document,"keydown",f,!1),e.forEach(((e,f)=>{i.add(e,"focus",(e=>{(c(a)||a(p,e))&&function(e){if((new Date).getTime()-d>10)return;l.emit("slideFocusStart"),t.scrollLeft=0;const i=n.findIndex((t=>t.includes(e)));r(i)&&(o.useDuration(0),s.index(i,0),l.emit("slideFocus"))}(f)}),u)})))}}}(t,n,Ct,At,wt,jt,y,J),Tt={ownerDocument:s,ownerWindow:o,eventHandler:y,containerRect:Y,slideRects:X,animation:gt,axis:q,dragHandler:w(q,t,s,o,kt,S(q,o),_t,gt,At,wt,St,ht,y,Q,I,$,P,.68,G),eventStore:jt,percentOfView:Q,index:ht,indexPrevious:mt,limit:pt,location:_t,offsetLocation:vt,previousLocation:xt,options:l,resizeHandler:A(e,y,o,n,q,U,W),scrollBody:wt,scrollBounds:M(pt,vt,kt,wt,Q),scrollLooper:j(at,pt,vt,[_t,vt,xt,kt]),scrollProgress:Mt,scrollSnapList:ft.map(Mt.get),scrollSnaps:ft,scrollTarget:St,scrollTo:At,slideLooper:L(q,K,at,nt,st,ct,ft,vt,n),slideFocus:Lt,slidesHandler:T(e,y,V),slidesInView:Rt,slideIndexes:bt,slideRegistry:Ct,slidesToScroll:it,target:kt,translate:C(q,e)};return Tt}o.style=":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}";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 B(t){function e(t,e){return y(t,e||{})}return{mergeOptions:e,optionsAtMedia:function(n){const s=n.breakpoints||{},o=g(s).filter((e=>t.matchMedia(e).matches)).map((t=>s[t])).reduce(((t,n)=>e(t,n)),{});return e(n,o)},optionsMediaQueries:function(e){return e.map((t=>g(t.breakpoints||{}))).reduce(((t,e)=>t.concat(e)),[]).map(t.matchMedia)}}}function E(t,e,n){const s=t.ownerDocument,o=s.defaultView,r=B(o),c=function(t){let e=[];return{init:function(n,s){return e=s.filter((({options:e})=>!1!==t.optionsAtMedia(e).active)),e.forEach((e=>e.init(n,t))),s.reduce(((t,e)=>Object.assign(t,{[e.name]:e})),{})},destroy:function(){e=e.filter((t=>t.destroy()))}}}(r),l=x(),a=function(){let t,e={};function n(t){return e[t]||[]}const s={init:function(e){t=e},emit:function(e){return n(e).forEach((n=>n(t,e))),s},off:function(t,o){return e[t]=n(t).filter((t=>t!==o)),s},on:function(t,o){return e[t]=n(t).concat([o]),s},clear:function(){e={}}};return s}(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:f}=r,{on:p,off:h,emit:m}=a,b=R;let g,y,_,v,k=!1,w=u(N,E.globalOptions),S=u(w),A=[];function M(e){const n=z(t,_,v,s,o,e,a);return e.loop&&!n.slideLooper.canLoop()?M(Object.assign({},e,{loop:!1})):n}function j(e,n){k||(w=u(w,e),S=d(w),A=n||A,function(){const{container:e,slides:n}=S,s=i(e)?t.querySelector(e):e;_=s||t.children[0];const o=i(n)?_.querySelectorAll(n):n;v=[].slice.call(o||_.children)}(),g=M(S),f([w,...A.map((({options:t})=>t))]).forEach((t=>l.add(t,"change",R))),S.active&&(g.translate.to(g.location.get()),g.animation.init(),g.slidesInView.init(),g.slideFocus.init(F),g.eventHandler.init(F),g.resizeHandler.init(F),g.slidesHandler.init(F),g.options.loop&&g.slideLooper.loop(),_.offsetParent&&v.length&&g.dragHandler.init(F),y=c.init(F,A)))}function R(t,e){const n=T();C(),j(u({startIndex:n},t),e),a.emit("reInit")}function C(){g.dragHandler.destroy(),g.eventStore.clear(),g.translate.clear(),g.slideLooper.clear(),g.resizeHandler.destroy(),g.slidesHandler.destroy(),g.slidesInView.destroy(),g.animation.destroy(),c.destroy(),l.clear()}function L(t,e,n){S.active&&!k&&(g.scrollBody.useBaseFriction().useDuration(!0===e?0:S.duration),g.scrollTo.index(t,n||0))}function T(){return g.index.get()}const F={canScrollNext:function(){return g.index.add(1).get()!==T()},canScrollPrev:function(){return g.index.add(-1).get()!==T()},containerNode:function(){return _},internalEngine:function(){return g},destroy:function(){k||(k=!0,l.clear(),C(),a.emit("destroy"),a.clear())},off:h,on:p,emit:m,plugins:function(){return y},previousScrollSnap:function(){return g.indexPrevious.get()},reInit:b,rootNode:function(){return t},scrollNext:function(t){L(g.index.add(1).get(),t,-1)},scrollPrev:function(t){L(g.index.add(-1).get(),t,1)},scrollProgress:function(){return g.scrollProgress.get(g.offsetLocation.get())},scrollSnapList:function(){return g.scrollSnapList},scrollTo:L,selectedScrollSnap:T,slideNodes:function(){return v},slidesInView:function(){return g.slidesInView.get()},slidesNotInView:function(){return g.slidesInView.get(!1)}};return j(e,n),setTimeout((()=>a.emit("init")),0),F}E.globalOptions=void 0;const F=class{constructor(e){t(this,e)}get el(){return s(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(t){this.embla?.scrollTo(t)}async getEmbla(){return this.embla}moveSlotNodesIntoContainer(){if(!this.slotRef||!this.containerRef||this.slotNodesMoved)return;const t=this.slotRef.assignedNodes().filter((t=>t.nodeType===Node.ELEMENT_NODE));0!==t.length&&(this.movedNodes=[],t.forEach((t=>{this.containerRef.appendChild(t),this.movedNodes.push(t)})),this.slotNodesMoved=!0,this.scheduleEmblaInit())}initScheduled=!1;scheduleEmblaInit(){this.initScheduled||(this.initScheduled=!0,requestAnimationFrame((()=>{this.initScheduled=!1,this.destroyEmbla(),this.initEmbla()})))}moveSlotNodesBack(){const t=this.el;this.movedNodes.forEach((e=>t.appendChild(e))),this.movedNodes=[]}initEmbla(){if(!this.viewportRef||!this.containerRef)return;const t=this.getItemsArray();if(!(void 0!==t?t.length>0:this.containerRef.children.length>0))return;this.embla=E(this.viewportRef,{loop:this.loop,align:"center",containScroll:"trimSnaps"});const e=this.prevBtnRef,n=this.nextBtnRef,s=this.dotsRef,o=()=>{e&&(this.embla?.canScrollPrev()?e.removeAttribute("disabled"):e.setAttribute("disabled","")),n&&(this.embla?.canScrollNext()?n.removeAttribute("disabled"):n.setAttribute("disabled",""))};if(this.embla.on("init",o),this.embla.on("reInit",o),this.embla.on("select",o),e&&n&&(this.prevClickHandler=()=>this.embla?.scrollPrev(),this.nextClickHandler=()=>this.embla?.scrollNext(),e.addEventListener("click",this.prevClickHandler),n.addEventListener("click",this.nextClickHandler)),s){const t=this.embla.scrollSnapList().length;s.innerHTML="";for(let e=0;e<t;e++){const t=document.createElement("button");t.type="button",t.setAttribute("aria-label",`Go to slide ${e+1}`),t.className="carousel__dot",0===e&&t.classList.add("current");const n=document.createElement("div");n.className="carousel__dot-inner",t.appendChild(n);const o=e,r=()=>this.embla?.scrollTo(o);this.dotClickHandlers.push(r),t.addEventListener("click",r),s.appendChild(t)}this.embla.on("select",(()=>{const t=this.embla?.selectedScrollSnap()??0;s.querySelectorAll("button").forEach(((e,n)=>{e.classList.toggle("current",n===t)}))}))}o()}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 t=JSON.parse(this.items);return Array.isArray(t)?t:void 0}catch{return}}}render(){const t=this.getItemsArray(),e=void 0!==t&&t.length>0;return n("div",{key:"3a2ea6c339bf0fe656e5a333789df7a37156b5dc",class:`carousel ${this.class||""}`.trim()},n("div",{key:"0a73b925095ae3188e5e40b024bc250e4c183894",class:`carousel__viewport ${this.slideClass||""}`.trim(),ref:t=>this.viewportRef=t},n("div",{key:"7fc3b5a72e386f7fa21702aeb363e08da1b728cf",class:"carousel__container",ref:t=>this.containerRef=t},e&&t?t.map(((t,e)=>n("div",{key:e,class:`carousel__slide ${this.itemClass||""}`.trim()},"object"==typeof t&&null!==t&&"content"in t?t.content:String(t)))):null)),!e&&n("div",{key:"dee2fc91470728c136c9853cd74ae350ad3c5676",style:{display:"none"},"aria-hidden":"true"},n("slot",{key:"35dd47c03a1b9b6b73d845252c3d0482590f7da2",ref:t=>this.slotRef=t})),n("div",{key:"df639ad86ae8533f1dc15eed30afb70d99e36e1a",class:`carousel__controls ${this.controlClass||""}`.trim()},n("button",{key:"c17c0ea9bf023b5d2621e558c957d92b13425584",type:"button","aria-label":"Previous",class:"carousel__prev",ref:t=>this.prevBtnRef=t},n("svg",{key:"5125abcae0b08ee72106d511b4c24c2d0f24187b",class:"carousel__icon","stroke-width":"1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true"},n("path",{key:"9b7f28be56f451ad14de226d7163a5587a1cd9e6","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"}))),n("div",{key:"9939d3496092a3f319efac9132cec8097c83b497",class:"carousel__dots",ref:t=>this.dotsRef=t}),n("button",{key:"a0b1228f6df0065885f1d272386283926e78464b",type:"button","aria-label":"Next",class:"carousel__next",ref:t=>this.nextBtnRef=t},n("svg",{key:"e00c92cc0485f41a30e97d5d0466aaee48a64998",class:"carousel__icon","stroke-width":"1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true"},n("path",{key:"a35c46fdbd1cd333d3e6f76590f45dd837546165","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})))))}};F.style=":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)}";const I=[{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"]}],$=class{constructor(e){t(this,e)}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 I;const t=this.jobs;if(Array.isArray(t))return t;if("string"==typeof t)try{const e=JSON.parse(t);return Array.isArray(e)?e:[]}catch{return[]}return[]}formatDistance(t){const e=this.enableKilometers?"Km":"Miles";return`${(this.enableKilometers?1.60934*t:t).toFixed(1)} ${e}`.replace(".0","")}renderJobItem(t,e){const s=function(t){const e=t.locations;if(e?.length)return e[0]}(t),o=s?(r=s).cityStateAbbr?r.cityStateAbbr:[r.streetAddress,r.city,r.stateAbbr||r.state,r.countryAbbr||r.country].filter(Boolean).join(", ")||r.locationText||"":"";var r;const i=s?.distance??0,c=i>0?this.formatDistance(i):"",l=t.applyURL||(t.originalURL?`${"undefined"!=typeof window?window.location.origin:""}${t.originalURL}`:"#"),a=`${this.applyButtonText}, ${t.title||""}`,u=t.locations??[],d=u.length>1;return n("li",{class:"results-list__item"},n("div",{class:"results-list__item-header"},n("h3",{class:"results-list__item-title"},n("a",{class:"results-list__item-title--link",href:l,target:"_blank",rel:"noopener noreferrer"},t.title||""),this.showReference&&n("span",{class:"reference "+(t.reference?"":"empty")},t.reference||""),t.isRemote&&n("span",{class:this.remoteLocationText?"remote":"remote remote--empty"},this.remoteLocationText)),c&&n("div",{class:"results-list__item-distance"},n("span",{class:"results-list__item-distance--icon"},n("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z"}),n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8v4l2 2"}))),n("span",{class:"results-list__item-distance--label"},c))),n("div",{class:"results-list__item-content"},n("div",{class:"results-list__item-info"},n("div",{class:u.length?"results-list__item-street":"results-list__item-street results-list__item-street--empty"},n("div",{class:"results-list__item-street--label__wrapper"},n("span",{class:"results-list__item-street--icon"},n("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"}),n("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"}))),n("span",{class:"results-list__item-street--label"},o||"—")),d&&n("div",{class:"results-list__item-street--more-locations__wrapper"},n("span",{class:"results-list__item-street--amount"},"+",u.length-1),n("span",{class:"results-list__item-street--more-locations"},this.multiLocationText))),this.showBrand&&n("div",{class:t.brandName?"results-list__item-brand":"results-list__item-brand results-list__item-brand--empty"},n("span",{class:"results-list__item-brand--icon"},n("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},n("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"}))),n("span",{class:"results-list__item-brand--label"},t.brandName||"—")),this.showEmploymentType&&n("div",{class:t.employmentType?.length?"results-list__item-employment-type":"results-list__item-employment-type results-list__item-employment-type--empty"},n("span",{class:"results-list__item-employment-type--icon"},n("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},n("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"}))),(t.employmentType?.length?t.employmentType:["—"]).map((t=>n("span",{key:t,class:"results-list__item-employment-type--label"},t)))),(t.jobCardExtraFields??[]).map(((t,e)=>n("div",{key:e,class:(Array.isArray(t.value)?t.value.length:t.value)?t.classname:`${t.classname}--empty`},Array.isArray(t.value)?t.value.map(((e,s)=>n("span",{key:s,class:`${t.classname}--label`},e))):n("span",{class:`${t.classname}--label`},String(t.value)))))),n("a",{class:"results-list__item-apply",href:l,target:"_blank",rel:"noopener noreferrer","aria-label":a},n("span",{class:"results-list__item-apply--label"},this.applyButtonText),n("span",{class:"results-list__item-apply--icon"},n("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"}))))))}render(){const t=this.getJobsArray(),e=!this.mockData&&this.loading,s=this.mockData?t.length:this.totalJob||t.length,o=!e&&0===s&&!this.showSuggestions,r=!e&&0===s&&this.showSuggestions;return n("div",{key:"c2e9c9146a24f0869cbd75588b2718c94f62bbbc",class:`jobs-list-root ${this.rootClass}`.trim()},n("div",{key:"b2f3dffe7e17797b378bd648f54e46bb31e2d374",class:"results-container"},n("div",{key:"4733870b035ec307b6e691f1d62ed8568e93fd1f",class:e?"loader":"loader hide","aria-hidden":!e}),s>0&&n("div",{key:"a9438f079041e0121fafdcb42089f27482475491",class:"card"},n("ul",{key:"3bd7dcc64f46aec24945a25df7345766606a51bd",class:"results-list front"},t.map(((t,e)=>this.renderJobItem(t,e))))),o&&n("div",{key:"1996476568c745e0ada31b47bb1a1be2efaf6917",class:"share-jobs__no-results"},n("h2",{key:"8d2a79881428d89d783b05f26d06abbef94f5c2e"},this.noResultsLine1),n("h3",{key:"855704ea47b06a701c0e59a8bb43fb405ad3bb96"},this.noResultsLine2)),r&&n("div",{key:"74da6e8243423dc9770f4dc67f46f5627c352349",class:"card primary-color"},n("h4",{key:"d3fb2ef03a656331f97afe3692b05bbe064ed124",class:"result-suggestions-title"},this.clearResultSuggestionsTitleText,":"),n("ul",{key:"63914647653930e6c686a38d779af20e7e5c17d5",class:"results-list front"},n("li",{key:"82063c023701d0c42ca2787f382d42a80f569b6a",class:"result-suggestions-line"},this.clearResultSuggestionsLine1),n("li",{key:"7645d7a7435f76854b8eeb0d693a883fc341764e",class:"result-suggestions-line"},this.clearResultSuggestionsLine2),n("li",{key:"060675d017137e8b23342c92efadc769e2bae1c2",class:"result-suggestions-line"},this.clearResultSuggestionsLine3),this.clearResultSuggestionsLine4&&n("li",{key:"0f6ef00a4f6267dc9ad2441e16f02c82b0994d03",class:"result-suggestions-line"},this.clearResultSuggestionsLine4)))))}};$.style=":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}";export{o as fast_button,F as fast_carousel,$ as jobs_list_only_ui}