@phatvu/web-component-poc 1.0.0 → 1.0.1

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
@@ -1,18 +1 @@
1
- function format(first, middle, last) {
2
- return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
3
- }
4
-
5
- /**
6
- * @fileoverview entry point for your component library
7
- *
8
- * This is the entry point for your component library. Use this file to export utilities,
9
- * constants or data structure that accompany your components.
10
- *
11
- * DO NOT use this file to export your components. Instead, use the recommended approaches
12
- * to consume components of this package as outlined in the `README.md`.
13
- */
14
-
15
- export { format };
16
- //# sourceMappingURL=index.esm.js.map
17
-
18
- //# sourceMappingURL=index.esm.js.map
1
+ function n(n,r,t){return(n||"")+(r?` ${r}`:"")+(t?` ${t}`:"")}export{n as format}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as s}from"./p-D7_MJBO8.js";const i=class{constructor(s){t(this,s),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 s("button",{key:"b373f44e11e651d0371ce3cade98b4650ccdd727",type:this.type,class:{"custom-button":!0,[`custom-button--${this.variant}`]:!0,"custom-button--disabled":this.disabled},disabled:this.disabled,onClick:this.handleClick},s("slot",{key:"2a046bc70af051c04f4549def87dac7044b41e04"}))}};i.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 r=[{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"]}],o=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 r;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 i=function(t){const e=t.locations;if(e?.length)return e[0]}(t),r=i?(o=i).cityStateAbbr?o.cityStateAbbr:[o.streetAddress,o.city,o.stateAbbr||o.state,o.countryAbbr||o.country].filter(Boolean).join(", ")||o.locationText||"":"";var o;const l=i?.distance??0,n=l>0?this.formatDistance(l):"",a=t.applyURL||(t.originalURL?`${"undefined"!=typeof window?window.location.origin:""}${t.originalURL}`:"#"),c=`${this.applyButtonText}, ${t.title||""}`,u=t.locations??[],d=u.length>1;return s("li",{class:"results-list__item"},s("div",{class:"results-list__item-header"},s("h3",{class:"results-list__item-title"},s("a",{class:"results-list__item-title--link",href:a,target:"_blank",rel:"noopener noreferrer"},t.title||""),this.showReference&&s("span",{class:"reference "+(t.reference?"":"empty")},t.reference||""),t.isRemote&&s("span",{class:this.remoteLocationText?"remote":"remote remote--empty"},this.remoteLocationText)),n&&s("div",{class:"results-list__item-distance"},s("span",{class:"results-list__item-distance--icon"},s("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z"}),s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8v4l2 2"}))),s("span",{class:"results-list__item-distance--label"},n))),s("div",{class:"results-list__item-content"},s("div",{class:"results-list__item-info"},s("div",{class:u.length?"results-list__item-street":"results-list__item-street results-list__item-street--empty"},s("div",{class:"results-list__item-street--label__wrapper"},s("span",{class:"results-list__item-street--icon"},s("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"}),s("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"}))),s("span",{class:"results-list__item-street--label"},r||"—")),d&&s("div",{class:"results-list__item-street--more-locations__wrapper"},s("span",{class:"results-list__item-street--amount"},"+",u.length-1),s("span",{class:"results-list__item-street--more-locations"},this.multiLocationText))),this.showBrand&&s("div",{class:t.brandName?"results-list__item-brand":"results-list__item-brand results-list__item-brand--empty"},s("span",{class:"results-list__item-brand--icon"},s("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},s("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"}))),s("span",{class:"results-list__item-brand--label"},t.brandName||"—")),this.showEmploymentType&&s("div",{class:t.employmentType?.length?"results-list__item-employment-type":"results-list__item-employment-type results-list__item-employment-type--empty"},s("span",{class:"results-list__item-employment-type--icon"},s("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},s("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=>s("span",{key:t,class:"results-list__item-employment-type--label"},t)))),(t.jobCardExtraFields??[]).map(((t,e)=>s("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,i)=>s("span",{key:i,class:`${t.classname}--label`},e))):s("span",{class:`${t.classname}--label`},String(t.value)))))),s("a",{class:"results-list__item-apply",href:a,target:"_blank",rel:"noopener noreferrer","aria-label":c},s("span",{class:"results-list__item-apply--label"},this.applyButtonText),s("span",{class:"results-list__item-apply--icon"},s("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},s("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,i=this.mockData?t.length:this.totalJob||t.length,r=!e&&0===i&&!this.showSuggestions,o=!e&&0===i&&this.showSuggestions;return s("div",{key:"c2e9c9146a24f0869cbd75588b2718c94f62bbbc",class:`jobs-list-root ${this.rootClass}`.trim()},s("div",{key:"b2f3dffe7e17797b378bd648f54e46bb31e2d374",class:"results-container"},s("div",{key:"4733870b035ec307b6e691f1d62ed8568e93fd1f",class:e?"loader":"loader hide","aria-hidden":!e}),i>0&&s("div",{key:"a9438f079041e0121fafdcb42089f27482475491",class:"card"},s("ul",{key:"3bd7dcc64f46aec24945a25df7345766606a51bd",class:"results-list front"},t.map(((t,e)=>this.renderJobItem(t,e))))),r&&s("div",{key:"1996476568c745e0ada31b47bb1a1be2efaf6917",class:"share-jobs__no-results"},s("h2",{key:"8d2a79881428d89d783b05f26d06abbef94f5c2e"},this.noResultsLine1),s("h3",{key:"855704ea47b06a701c0e59a8bb43fb405ad3bb96"},this.noResultsLine2)),o&&s("div",{key:"74da6e8243423dc9770f4dc67f46f5627c352349",class:"card primary-color"},s("h4",{key:"d3fb2ef03a656331f97afe3692b05bbe064ed124",class:"result-suggestions-title"},this.clearResultSuggestionsTitleText,":"),s("ul",{key:"63914647653930e6c686a38d779af20e7e5c17d5",class:"results-list front"},s("li",{key:"82063c023701d0c42ca2787f382d42a80f569b6a",class:"result-suggestions-line"},this.clearResultSuggestionsLine1),s("li",{key:"7645d7a7435f76854b8eeb0d693a883fc341764e",class:"result-suggestions-line"},this.clearResultSuggestionsLine2),s("li",{key:"060675d017137e8b23342c92efadc769e2bae1c2",class:"result-suggestions-line"},this.clearResultSuggestionsLine3),this.clearResultSuggestionsLine4&&s("li",{key:"0f6ef00a4f6267dc9ad2441e16f02c82b0994d03",class:"result-suggestions-line"},this.clearResultSuggestionsLine4)))))}};o.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{i as fast_button,o as jobs_list_only_ui}
@@ -0,0 +1 @@
1
+ import{r as n,g as t,h as e}from"./p-D7_MJBO8.js";function o(n){return"number"==typeof n}function r(n){return"string"==typeof n}function i(n){return"boolean"==typeof n}function s(n){return"[object Object]"===Object.prototype.toString.call(n)}function c(n){return Math.abs(n)}function u(n){return Math.sign(n)}function l(n,t){return c(n-t)}function a(n){return g(n).map(Number)}function f(n){return n[d(n)]}function d(n){return Math.max(0,n.length-1)}function h(n,t){return t===d(n)}function p(n,t=0){return Array.from(Array(n),((n,e)=>t+e))}function g(n){return Object.keys(n)}function b(n,t){return[n,t].reduce(((n,t)=>(g(t).forEach((e=>{const o=n[e],r=t[e],i=s(o)&&s(r);n[e]=i?b(o,r):r})),n)),{})}function m(n,t){return void 0!==t.MouseEvent&&n instanceof t.MouseEvent}function y(){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 v(n=0,t=0){const e=c(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 x(n,t,e){const{constrain:o}=v(0,n),r=n+1;let i=s(t);function s(n){return e?c((r+n)%r):o(n)}function u(){return i}function l(){return x(n,u(),e)}const a={get:u,set:function(n){return i=s(n),a},add:function(n){return l().set(u()+n)},clone:l};return a}function _(n,t,e,o,r,s,a,f,d,h,p,g,b,x,_,k,w,S,L){const{cross:M,direction:C}=n,I=["INPUT","SELECT","TEXTAREA"],E={passive:!1},T=y(),A=y(),N=v(50,225).constrain(x.measure(20)),R={mouse:300,touch:400},O={mouse:500,touch:600},z=_?43:25;let B=!1,j=0,D=0,F=!1,H=!1,P=!1,$=!1;function G(n){if(!m(n,o)&&n.touches.length>=2)return V(n);const t=s.readPoint(n),e=s.readPoint(n,M),i=l(t,j),c=l(e,D);if(!H&&!$){if(!n.cancelable)return V(n);if(H=i>c,!H)return V(n)}const u=s.pointerMove(n);i>k&&(P=!0),h.useFriction(.3).useDuration(.75),f.start(),r.add(C(u)),n.preventDefault()}function V(n){const t=p.byDistance(0,!1).index!==g.get(),e=s.pointerUp(n)*(_?O:R)[$?"mouse":"touch"],o=function(n,t){const e=g.add(-1*u(n)),o=p.byDistance(n,!_).distance;return _||c(n)<N?o:w&&t?.5*o:p.byIndex(e.get(),0).distance}(C(e),t),r=function(n,t){if(0===n||0===t)return 0;if(c(n)<=c(t))return 0;const e=l(c(n),c(t));return c(e/n)}(e,o),i=z-10*r,a=S+r/50;H=!1,F=!1,A.clear(),h.useDuration(i).useFriction(a),d.distance(o,!_),$=!1,b.emit("pointerUp")}function W(n){P&&(n.stopPropagation(),n.preventDefault(),P=!1)}return{init:function(n){if(!L)return;function c(c){(i(L)||L(n,c))&&function(n){const i=m(n,o);$=i,P=_&&i&&!n.buttons&&B,B=l(r.get(),a.get())>=2,i&&0!==n.button||function(n){return I.includes(n.nodeName||"")}(n.target)||(F=!0,s.pointerDown(n),h.useFriction(0).useDuration(0),r.set(a),function(){const n=$?e:t;A.add(n,"touchmove",G,E).add(n,"touchend",V).add(n,"mousemove",G,E).add(n,"mouseup",V)}(),j=s.readPoint(n),D=s.readPoint(n,M),b.emit("pointerDown"))}(c)}const u=t;T.add(u,"dragstart",(n=>n.preventDefault()),E).add(u,"touchmove",(()=>{}),E).add(u,"touchend",(()=>{})).add(u,"touchstart",c).add(u,"mousedown",c).add(u,"touchcancel",V).add(u,"contextmenu",V).add(u,"click",W,!0)},destroy:function(){T.clear(),A.clear()},pointerDown:function(){return F}}}function k(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(m(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),u=r(n)-r(o)>170,l=t/s;return s&&!u&&c(l)>.1?l:0},readPoint:i}}function w(n,t,e,o,r,s,u){const l=[n].concat(o);let a,f,d=[],h=!1;function p(n){return r.measureSize(u.measure(n))}return{init:function(r){s&&(f=p(n),d=o.map(p),a=new ResizeObserver((e=>{(i(s)||s(r,e))&&function(e){for(const i of e){if(h)return;const e=i.target===n,s=o.indexOf(i.target),u=e?f:d[s];if(c(p(e?n:o[s])-u)>=.5){r.reInit(),t.emit("resize");break}}}(e)})),e.requestAnimationFrame((()=>{l.forEach((n=>a.observe(n)))})))},destroy:function(){h=!0,a&&a.disconnect()}}}function S(n,t,e,o,r){const i=r.measure(10),s=r.measure(50),u=v(.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=c(n[l]-t.get()),d=e.get()-t.get(),h=u.constrain(f/s);e.subtract(d*h),!r&&c(d)<i&&(e.set(n.constrain(e.get())),o.useDuration(25).useBaseFriction())},toggleActive:function(n){l=!n}}}function L(n,t,e,o){const r=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:c}=v(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 M(n){let t=n;function e(n){return o(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 C(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=(c=n.direction(t),Math.round(100*c)/100);var c;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=a(r),f=p(h(a(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:M(-1),translate:C(n,u[t]),target:()=>c.get()>i?o:r}}))}return{canLoop:function(){return f.every((({index:n})=>d(l.filter((t=>t!==n)),t)<=.1))},clear:function(){f.forEach((n=>n.translate.clear()))},loop:function(){f.forEach((n=>{const{target:t,translate:e,slideLocation:o}=n,r=t();r!==o.get()&&(e.to(r),o.set(r))}))},loopPoints:f}}function E(n,t,e){let o,r=!1;return{init:function(s){e&&(o=new MutationObserver((n=>{r||(i(e)||e(s,n))&&function(n){for(const e of n)if("childList"===e.type){s.reInit(),t.emit("slidesChanged");break}}(n)})),o.observe(n,{childList:!0}))},destroy:function(){o&&o.disconnect(),r=!0}}}function T(n,t,e,s,b,m,T){const{align:A,axis:N,direction:R,startIndex:O,loop:z,duration:B,dragFree:j,dragThreshold:D,inViewThreshold:F,slidesToScroll:H,skipSnaps:P,containScroll:$,watchResize:G,watchSlides:V,watchDrag:W,watchFocus:U}=m,q={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}}},J=q.measure(t),Q=e.map(q.measure),X=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=X.measureSize(J),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,i){return r(n)?e[n](o):n(t,o,i)}}}(A,Y),nn=!z&&!!$,tn=z||!!$,{slideSizes:en,slideSizesWithGaps:on,startGap:rn,endGap:sn}=function(n,t,e,o,r,i){const{measureSize:s,startEdge:u,endEdge:l}=n,a=e[0]&&r,d=a?c(t[u]-e[0][u]):0,p=function(){if(!a)return 0;const n=i.getComputedStyle(f(o));return parseFloat(n.getPropertyValue(`margin-${l}`))}(),g=e.map(s),b=e.map(((n,t,e)=>{const o=!t,r=h(e,t);return o?g[t]+d:r?g[t]+p:e[t+1][u]-n[u]})).map(c);return{slideSizes:g,slideSizesWithGaps:b,startGap:d,endGap:p}}(X,J,Q,e,tn,b),cn=function(n,t,e,r,i,s,u,l,h){const{startEdge:p,endEdge:g,direction:b}=n,m=o(e);return{groupSlides:function(n){return m?function(n,t){return a(n).filter((n=>n%t==0)).map((e=>n.slice(e,e+t)))}(n,e):function(n){return n.length?a(n).reduce(((e,o,a)=>{const m=f(e)||0,y=0===m,v=o===d(n),x=i[p]-s[m][p],_=i[p]-s[o][g],k=!r&&y?b(u):0,w=c(_-(!r&&v?b(l):0)-(x+k));return a&&w>t+h&&e.push(o),v&&e.push(n.length),e}),[]).map(((t,e,o)=>{const r=Math.max(o[e-1]||0);return n.slice(r,t)})):[]}(n)}}}(X,Y,H,z,J,Q,rn,sn,2),{snaps:un,snapsAligned:ln}=function(n,t,e,o,r){const{startEdge:i,endEdge:s}=n,{groupSlides:u}=r,l=u(o).map((n=>f(n)[s]-n[0][i])).map(c).map(t.measure),a=o.map((n=>e[i]-n[i])).map((n=>-c(n))),d=u(a).map((n=>n[0])).map(((n,t)=>n+l[t]));return{snaps:a,snapsAligned:d}}(X,Z,J,Q,cn),an=-f(un)+f(on),{snapsContained:fn,scrollContainLimit:dn}=function(n,t,e,o){const r=v(-t+n,0),i=e.map(((n,t)=>{const{min:o,max:i}=r,s=r.constrain(n),u=!t,l=h(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=f(i);return v(i.lastIndexOf(n),i.indexOf(t)+1)}();function c(n,t){return l(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,$),hn=nn?fn:ln,{limit:pn}=function(n,t,e){const o=t[0];return{limit:v(e?o-n:f(t),o)}}(an,hn,z),gn=x(d(hn),O,z),bn=gn.clone(),mn=a(e),yn=function(n,t,e,o){const r=y(),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}}(s,b,(()=>(({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,b=g&&!c.pointerDown();b&&u.stop();const m=e.get()*d+r.get()*(1-d);o.set(m),f&&(i.loop(n.direction()),s.loop()),t.to(o.get()),b&&l.emit("settle"),g||l.emit("scroll")})(Nn,n))),vn=hn[gn.get()],xn=M(vn),_n=M(vn),kn=M(vn),wn=M(vn),Sn=function(n,t,e,o,r){let i=0,s=0,l=r,a=.68,f=n.get(),d=0;function h(n){return l=n,g}function p(n){return a=n,g}const g={direction:function(){return s},duration:function(){return l},velocity:function(){return i},seek:function(){const t=o.get()-n.get();let r=0;return l?(e.set(n),i+=t/l,i*=a,f+=i,n.add(i),r=f-d):(i=0,e.set(o),n.set(o),r=t),s=u(r),d=f,g},settled:function(){return c(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,B),Ln=function(n,t,e,o,r){const{reachedAny:i,removeOffset:s,constrain:l}=o;function a(n){return n.concat().sort(((n,t)=>c(n)-c(t)))[0]}function d(t,o){const r=[t,t+e,t-e];if(!n)return t;if(!o)return a(r);const i=r.filter((n=>u(n)===o));return i.length?a(i):f(r)-e}return{byDistance:function(e,o){const u=r.get()+e,{index:a,distance:f}=function(e){const o=n?s(e):l(e),r=t.map(((n,t)=>({diff:d(n-o,0),index:t}))).sort(((n,t)=>c(n.diff)-c(t.diff))),{index:i}=r[0];return{index:i,distance:o}}(u),h=!n&&i(u);return!o||h?{index:a,distance:e}:{index:a,distance:e+d(t[a]-f,0)}},byIndex:function(n,e){return{index:n,distance:d(t[n]-r.get(),e)}},shortcut:d}}(z,hn,an,pn,wn),Mn=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,bn,Sn,Ln,wn,T),Cn=function(n){const{max:t,length:e}=n;return{get:function(n){return e?(n-t)/-e:0}}}(pn),In=y(),En=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 g(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,T,F),{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=h(e,t);return o?p(f(e[0])+1):r?p(d(i)-f(e)[0]+1,f(e)[0]):n})):o}()}}(nn,$,hn,dn,cn,mn),An=function(n,t,e,r,s,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=>{(i(l)||l(h,t))&&function(t){if((new Date).getTime()-f>10)return;u.emit("slideFocusStart"),n.scrollLeft=0;const i=e.findIndex((n=>n.includes(t)));o(i)&&(s.useDuration(0),r.index(i,0),u.emit("slideFocus"))}(d)}),a)})))}}}(n,e,Tn,Mn,Sn,In,T,U),Nn={ownerDocument:s,ownerWindow:b,eventHandler:T,containerRect:J,slideRects:Q,animation:yn,axis:X,dragHandler:_(X,n,s,b,wn,k(X,b),xn,yn,Mn,Sn,Ln,gn,T,K,j,D,P,.68,W),eventStore:In,percentOfView:K,index:gn,indexPrevious:bn,limit:pn,location:xn,offsetLocation:kn,previousLocation:_n,options:m,resizeHandler:w(t,T,b,e,X,G,q),scrollBody:Sn,scrollBounds:S(pn,kn,wn,Sn,K),scrollLooper:L(an,pn,kn,[xn,kn,_n,wn]),scrollProgress:Cn,scrollSnapList:hn.map(Cn.get),scrollSnaps:hn,scrollTarget:Ln,scrollTo:Mn,slideLooper:I(X,Y,an,en,on,un,hn,kn,e),slideFocus:An,slidesHandler:E(t,T,V),slidesInView:En,slideIndexes:mn,slideRegistry:Tn,slidesToScroll:cn,target:wn,translate:C(X,t)};return Nn}const A={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 N(n){function t(n,t){return b(n,t||{})}return{mergeOptions:t,optionsAtMedia:function(e){const o=e.breakpoints||{},r=g(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=>g(n.breakpoints||{}))).reduce(((n,t)=>n.concat(t)),[]).map(n.matchMedia)}}}function R(n,t,e){const o=n.ownerDocument,i=o.defaultView,s=N(i),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=y(),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,b=I;let m,v,x,_,k=!1,w=a(A,R.globalOptions),S=a(w),L=[];function M(t){const e=T(n,x,_,o,i,t,l);return t.loop&&!e.slideLooper.canLoop()?M(Object.assign({},t,{loop:!1})):e}function C(t,e){k||(w=a(w,t),S=f(w),L=e||L,function(){const{container:t,slides:e}=S,o=r(t)?n.querySelector(t):t;x=o||n.children[0];const i=r(e)?x.querySelectorAll(e):e;_=[].slice.call(i||x.children)}(),m=M(S),d([w,...L.map((({options:n})=>n))]).forEach((n=>u.add(n,"change",I))),S.active&&(m.translate.to(m.location.get()),m.animation.init(),m.slidesInView.init(),m.slideFocus.init(B),m.eventHandler.init(B),m.resizeHandler.init(B),m.slidesHandler.init(B),m.options.loop&&m.slideLooper.loop(),x.offsetParent&&_.length&&m.dragHandler.init(B),v=c.init(B,L)))}function I(n,t){const e=z();E(),C(a({startIndex:e},n),t),l.emit("reInit")}function E(){m.dragHandler.destroy(),m.eventStore.clear(),m.translate.clear(),m.slideLooper.clear(),m.resizeHandler.destroy(),m.slidesHandler.destroy(),m.slidesInView.destroy(),m.animation.destroy(),c.destroy(),u.clear()}function O(n,t,e){S.active&&!k&&(m.scrollBody.useBaseFriction().useDuration(!0===t?0:S.duration),m.scrollTo.index(n,e||0))}function z(){return m.index.get()}const B={canScrollNext:function(){return m.index.add(1).get()!==z()},canScrollPrev:function(){return m.index.add(-1).get()!==z()},containerNode:function(){return x},internalEngine:function(){return m},destroy:function(){k||(k=!0,u.clear(),E(),l.emit("destroy"),l.clear())},off:p,on:h,emit:g,plugins:function(){return v},previousScrollSnap:function(){return m.indexPrevious.get()},reInit:b,rootNode:function(){return n},scrollNext:function(n){O(m.index.add(1).get(),n,-1)},scrollPrev:function(n){O(m.index.add(-1).get(),n,1)},scrollProgress:function(){return m.scrollProgress.get(m.offsetLocation.get())},scrollSnapList:function(){return m.scrollSnapList},scrollTo:O,selectedScrollSnap:z,slideNodes:function(){return _},slidesInView:function(){return m.slidesInView.get()},slidesNotInView:function(){return m.slidesInView.get(!1)}};return C(t,e),setTimeout((()=>l.emit("init")),0),B}R.globalOptions=void 0;const O=class{constructor(t){n(this,t)}get el(){return t(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=R(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 e("div",{key:"313c58e9c1ea3b9c0d0fd4b9d6354336682d9353",class:`carousel ${this.class||""}`.trim()},e("div",{key:"14ad75526a24ed38df053fa221e2fafef6d532ed",class:`carousel__viewport ${this.slideClass||""}`.trim(),ref:n=>this.viewportRef=n},e("div",{key:"1d3a771598c382592b789289494f2439fea56918",class:"carousel__container",ref:n=>this.containerRef=n},t&&n?n.map(((n,t)=>e("div",{key:t,class:`carousel__slide ${this.itemClass||""}`.trim()},"object"==typeof n&&null!==n&&"content"in n?n.content:String(n)))):null)),!t&&e("div",{key:"cdecd3275ac3c5ffe7a0f46153d3e59ad0d4ba9d",style:{display:"none"},"aria-hidden":"true"},e("slot",{key:"450dd5b90f20166a4d6ef4a0d46d208ad47bbf4b",ref:n=>this.slotRef=n})),e("div",{key:"ad4eab3f45204170308d8021799d227eaff36d71",class:`carousel__controls ${this.controlClass||""}`.trim()},e("button",{key:"1a4ef7209ea768a55892f4d928da3f6100faab4b",type:"button","aria-label":"Previous",class:"carousel__prev",ref:n=>this.prevBtnRef=n},e("svg",{key:"7d579cb030149947791db565bc1520ef2707c360",class:"carousel__icon","stroke-width":"1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true"},e("path",{key:"fdca1a876d4967c39286bddba6122351fbf0d925","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"}))),e("div",{key:"4d9a30f1988f2ce04f271967f1dd39c5287273f2",class:"carousel__dots",ref:n=>this.dotsRef=n}),e("button",{key:"c8bc7787821f3277c6d038e3ff1240b3ce936825",type:"button","aria-label":"Next",class:"carousel__next",ref:n=>this.nextBtnRef=n},e("svg",{key:"e6e4eff954b1b08711cc843de558e00a8257e9f8",class:"carousel__icon","stroke-width":"1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true"},e("path",{key:"37b394093f327bdc46f8da1dcf78ec609a585a0a","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})))))}};O.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)}";export{O as fast_carousel}
@@ -0,0 +1,2 @@
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",o="value",l="serialized:";function s(t,e,n){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,e);if(o&&(!n||o.get))return o;t=Object.getPrototypeOf(t)}}var i,r=(t,e)=>{var n;Object.entries(null!=(n=e.o.t)?n:{}).map((([n,[o]])=>{if(31&o||32&o){const o=t[n],l=s(Object.getPrototypeOf(t),n,!0)||Object.getOwnPropertyDescriptor(t,n);l&&Object.defineProperty(t,n,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),e.l.has(n)?t[n]=e.l.get(n):void 0!==o&&(t[n]=o)}}))},c=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},u=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.i=t,512&e.o.u&&r(t,e))},f=(t,e)=>e in t,a=(t,e)=>(0,console.error)(t,e),d=new Map,p=new Map,$="s-id",h="sty-id",m="c-id",v="undefined"!=typeof window?window:{},y={u:0,p:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},b=t=>Promise.resolve(t),g=(()=>{try{return!!v.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),w=!!g&&(()=>!!v.document&&Object.getOwnPropertyDescriptor(v.document.adoptedStyleSheets,"length").writable)(),j=!1,S=[],O=[],k=(t,e)=>n=>{t.push(n),j||(j=!0,e&&4&y.u?M(E):y.raf(E))},x=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){a(t)}t.length=0},E=()=>{x(S),x(O),(j=S.length>0)&&y.raf(E)},M=t=>b().then(t),N=k(O,!0);function C(){const t=this.attachShadow({mode:"open"});void 0===i&&(i=null),i&&(w?t.adoptedStyleSheets.push(i):t.adoptedStyleSheets=[...t.adoptedStyleSheets,i])}var I=(t,e,n,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const l=document.createTextNode("");if(l["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const s=e["s-cr"].parentNode,i=L(s,"appendChild");if(void 0!==o){l["s-oo"]=o;const t=L(s,"childNodes"),e=[l];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=>i.call(s,t)))}else i.call(s,l);t["s-ol"]=l,t["s-sh"]=e["s-hn"]};function L(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)}function A(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var R=new WeakMap,D=(t,e,n)=>{let o=p.get(t);g&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,p.set(t,o)},P=(t,e)=>{var n,o,l;const s=T(e),i=p.get(s);if(!v.document)return s;if(t=11===t.nodeType?t:v.document,i)if("string"==typeof i){let l,r=R.get(t=t.head||t);r||R.set(t,r=new Set);const c=t.querySelector(`[${h}="${s}"]`);if(c)c.textContent=i;else if(!r.has(s)){l=v.document.createElement("style"),l.textContent=i;const c=null!=(n=y.$)?n:A(v.document);if(null!=c&&l.setAttribute("nonce",c),!(1&e.u))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(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(g){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(i),w?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=i+e.textContent:t.prepend(l)}else t.append(l);1&e.u&&t.insertBefore(l,null),4&e.u&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),r&&r.add(s)}}else{let e=R.get(t);if(e||R.set(t,e=new Set),!e.has(s)){const n=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(i.constructor===n.CSSStyleSheet)o=i;else{o=new n.CSSStyleSheet;for(let t=0;t<i.cssRules.length;t++)o.insertRule(i.cssRules[t].cssText,t)}if(w?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(s),"host"in t){const e=t.querySelector(`[${h}="${s}"]`);e&&N((()=>e.remove()))}}}return s},T=t=>"sc-"+t.h,U=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),V=t=>"object"==(t=typeof t)||"function"===t,H=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!V(o))&&(o+=""),s&&i?r[r.length-1].m+=o:r.push(s?_(null,o):o),i=s)};if(c(n),e){e.key&&(l=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=_(t,null);return u.v=e,r.length>0&&(u.j=r),u.S=l,u},_=(t,e)=>({u:0,O:t,m:null!=e?e:null,k:null,j:null,v:null,S:null}),z={},F=(t,e,n,o,l,s,i,r=[])=>{let c,u,f,a;if(1===s.nodeType){if(c=s.getAttribute(m),c&&(u=c.split("."),u[0]===i||"0"===u[0])){f=B({u:0,M:u[0],N:u[1],C:u[2],I:u[3],O:s.tagName.toLowerCase(),k:s,v:{class:s.className||""}}),e.push(f),s.removeAttribute(m),t.j||(t.j=[]);const l=f.k.getAttribute("s-sn");"string"==typeof l&&("slot-fb"===f.O&&q(l,u[2],f,s,t,e,n,o,r),f.k["s-sn"]=l,f.k.removeAttribute("s-sn")),void 0!==f.I&&(t.j[f.I]=f),t=f,o&&"0"===f.C&&(o[f.I]=f.k)}if(s.shadowRoot)for(a=s.shadowRoot.childNodes.length-1;a>=0;a--)F(t,e,n,o,l,s.shadowRoot.childNodes[a],i,r);const d=s.__childNodes||s.childNodes;for(a=d.length-1;a>=0;a--)F(t,e,n,o,l,d[a],i,r)}else if(8===s.nodeType)u=s.nodeValue.split("."),(u[1]===i||"0"===u[1])&&(c=u[0],f=B({M:u[1],N:u[2],C:u[3],I:u[4]||"0",k:s,v:null,j:null,S:null,L:null,O:null,m:null}),"t"===c?(f.k=J(s,3),f.k&&3===f.k.nodeType&&(f.m=f.k.textContent,e.push(f),s.remove(),i===f.M&&(t.j||(t.j=[]),t.j[f.I]=f),o&&"0"===f.C&&(o[f.I]=f.k))):"c"===c?(f.k=J(s,8),f.k&&8===f.k.nodeType&&(e.push(f),s.remove())):f.M===i&&("s"===c?q(s["s-sn"]=u[5]||"",u[2],f,s,t,e,n,o,r):"r"===c&&o&&s.remove()));else if(t&&"style"===t.O){const e=_(null,s.textContent);e.k=s,e.I="0",t.j=[e]}return t},W=(t,e)=>{if(1===t.nodeType){const n=t[$]||t.getAttribute($);n&&e.set(n,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)W(t.shadowRoot.childNodes[o],e);const l=t.__childNodes||t.childNodes;for(o=0;o<l.length;o++)W(l[o],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])}},B=t=>({u:0,M:null,N:null,C:null,I:"0",k:null,v:null,j:null,S:null,L:null,O:null,m:null,...t});function q(t,e,n,o,l,s,i,r,c){o["s-sr"]=!0,n.L=t||null,n.O="slot";const u=(null==l?void 0:l.k)?l.k["s-id"]||l.k.getAttribute("s-id"):"";if(r&&v.document){const s=n.k=v.document.createElement(n.O);n.L&&n.k.setAttribute("name",t),l.k.shadowRoot&&u&&u!==n.M?L(l.k,"insertBefore")(s,L(l.k,"children")[0]):L(L(o,"parentNode"),"insertBefore")(s,o),G(c,e,t,o,n.M),o.remove(),"0"===n.C&&(r[n.I]=n.k)}else{const s=n.k,i=u&&u!==n.M&&l.k.shadowRoot;G(c,e,t,o,i?u:n.M),function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=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 l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e})(l.childNodes)).forEach((t=>{o===(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)}(o),i&&l.k.insertBefore(s,l.k.children[0])}s.push(n),i.push(n),l.j||(l.j=[]),l.j[n.I]=n}var Y,G=(t,e,n,o,l)=>{var s,i;let r=o.nextSibling;if(t[e]=t[e]||[],r&&!(null==(s=r.nodeValue)?void 0:s.startsWith("s.")))do{!r||(r.getAttribute&&r.getAttribute("slot")||r["s-sn"])!==n&&(""!==n||r["s-sn"]||r.getAttribute&&r.getAttribute("slot")||8!==r.nodeType&&3!==r.nodeType)||(r["s-sn"]=n,t[e].push({slot:o,node:r,hostId:l})),r=null==r?void 0:r.nextSibling}while(r&&!(null==(i=r.nodeValue)?void 0:i.startsWith("s.")))},J=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},Z=class l{static fromLocalValue(t){const e=t[n],s=o in t?t[o]: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=>l.fromLocalValue(t)));case"date":return new Date(s);case"map":const t=new Map;for(const[e,n]of s){const o="object"==typeof e&&null!==e?l.fromLocalValue(e):e,s=l.fromLocalValue(n);t.set(o,s)}return t;case"object":const n={};for(const[t,e]of s)n[t]=l.fromLocalValue(e);return n;case"regexp":const{pattern:o,flags:i}=s;return RegExp(o,i);case"set":const r=new Set;for(const t of s)r.add(l.fromLocalValue(t));return r;case"symbol":return Symbol(s);default:throw Error("Unsupported type: "+e)}}static fromLocalValueArray(t){return t.map((t=>l.fromLocalValue(t)))}static isLocalValueObject(l){if("object"!=typeof l||null===l)return!1;if(!l.hasOwnProperty(n))return!1;const s=l[n];return!!Object.values({...t,...e}).includes(s)&&("null"===s||"undefined"===s||l.hasOwnProperty(o))}},K=(t,e)=>"string"==typeof t&&t.startsWith(l)?t=function(t){return"string"==typeof t&&t.startsWith(l)?Z.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||V(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,Q=t=>{var e;return null==(e=c(t))?void 0:e.$hostElement$},X=(t,e)=>{const n=Q(t);return{emit:t=>tt(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},tt=(t,e,n)=>{const o=y.ce(e,n);return t.dispatchEvent(o),o},et=(t,e,n,o,l,s,i)=>{if(n===o)return;let r=f(t,e),u=e.toLowerCase();if("class"===e){const e=t.classList,l=ot(n);let s=ot(o);if((t["s-si"]||t["s-sc"])&&i){const n=t["s-sc"]||t["s-si"];s.push(n),l.forEach((t=>{t.startsWith(n)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),e.add(...s)}else e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&yt(o,t);else if(r||"o"!==e[0]||"n"!==e[1]){if("a"===e[0]&&e.startsWith("attr:")){const n=e.slice(5);let l;{const e=c(t);if(e&&e.o&&e.o.t){const t=e.o.t[n];t&&t[1]&&(l=t[1])}}return l||(l=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===o?"":o))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=o}catch(t){}return}{const i=V(o);if((r||i&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]===l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&s||l)&&!i&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}}else if(e="-"===e[2]?e.slice(3):f(v,u)?u.slice(2):u[2]+e.slice(3),n||o){const l=e.endsWith(lt);e=e.replace(st,""),n&&y.rel(t,e,n,l),o&&y.ael(t,e,o,l)}},nt=/\s/,ot=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(nt):[]),lt="Capture",st=RegExp(lt+"$"),it=(t,e,n,o)=>{const l=11===e.k.nodeType&&e.k.host?e.k.host:e.k,s=t&&t.v||{},i=e.v||{};for(const t of rt(Object.keys(s)))t in i||et(l,t,s[t],void 0,n,e.u,o);for(const t of rt(Object.keys(i)))et(l,t,s[t],i[t],n,e.u,o)};function rt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var ct=!1,ut=!1,ft=[],at=[],dt=(t,e,n)=>{const o=e.j[n];let l,s,i=0;if(null!=o.m)l=o.k=v.document.createTextNode(o.m);else{if(ut||(ut="svg"===o.O),!v.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.k=v.document.createElementNS(ut?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.O),ut&&"foreignObject"===o.O&&(ut=!1),it(null,o,ut),o.j){const e="template"===o.O?l.content:l;for(i=0;i<o.j.length;++i)s=dt(t,o,i),s&&e.appendChild(s)}"svg"===o.O?ut=!1:"foreignObject"===l.tagName&&(ut=!0)}return l["s-hn"]=Y,l},pt=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===Y&&(r=r.shadowRoot),"template"===n.O&&(r=r.content);l<=s;++l)o[l]&&(i=dt(null,n,l),i&&(o[l].k=i,bt(r,i,e)))},$t=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.k;vt(e),t&&t.remove()}}},ht=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.S&&e.S&&(t.S=e.S),!0):t.S===e.S),mt=(t,e,n=!1)=>{const o=e.k=t.k,l=t.j,s=e.j,i=e.O,r=e.m;null==r?(ut="svg"===i||"foreignObject"!==i&&ut,"slot"!==i||ct||t.L!==e.L&&(e.k["s-sn"]=e.L||"",(t=>{y.u|=1;const e=t.closest(Y.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(bt(e,t,null!=n?n:null),t["s-sh"]=void 0)}y.u&=-2})(e.k.parentElement)),it(t,e,ut,n),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],p=e[a],$=o.length-1,h=o[0],m=o[$];const v="template"===n.O?t.content:t;for(;r<=a&&c<=$;)if(null==d)d=e[++r];else if(null==p)p=e[--a];else if(null==h)h=o[++c];else if(null==m)m=o[--$];else if(ht(d,h,l))mt(d,h,l),d=e[++r],h=o[++c];else if(ht(p,m,l))mt(p,m,l),p=e[--a],m=o[--$];else if(ht(d,m,l))mt(d,m,l),bt(v,d.k,p.k.nextSibling),d=e[++r],m=o[--$];else if(ht(p,h,l))mt(p,h,l),bt(v,p.k,d.k),p=e[--a],h=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].S&&e[f].S===h.S){u=f;break}u>=0?(i=e[u],i.O!==h.O?s=dt(e&&e[c],n,u):(mt(i,h,l),e[u]=void 0,s=i.k),h=o[++c]):(s=dt(e&&e[c],n,c),h=o[++c]),s&&bt(d.k.parentNode,s,d.k)}r>a?pt(t,null==o[$+1]?null:o[$+1].k,n,o,c,$):c>$&&$t(e,r,a)})(o,l,e,s,n):null!==s?(null!==t.m&&(o.textContent=""),pt(o,null,e,s,0,s.length-1)):n||null===l?n&&null!==l&&null===s&&(e.j=l):$t(l,0,l.length-1),ut&&"svg"===i&&(ut=!1)):t.m!==r&&(o.data=r)},vt=t=>{t.v&&t.v.ref&&ft.push((()=>t.v.ref(null))),t.j&&t.j.map(vt)},yt=(t,e)=>{at.push((()=>t(e)))},bt=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),gt=(t,e)=>{if(e&&!t.A&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.A=()=>{e["s-p"].splice(n-1,1),o()})))}},wt=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);gt(t,t.R);const n=()=>jt(t,e);if(!e)return N(n);queueMicrotask((()=>{n()}))},jt=(t,e)=>{const n=t.$hostElement$,o=t.i;if(!o)throw 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 l;return e?(t.D.length&&t.D.forEach((t=>t(n))),l=Nt(o,"componentWillLoad",void 0,n)):l=Nt(o,"componentWillUpdate",void 0,n),l=St(l,(()=>Nt(o,"componentWillRender",void 0,n))),St(l,(()=>kt(t,o,e)))},St=(t,e)=>Ot(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Ot=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,kt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,o=e.u,l=P(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);xt(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>Et(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.u|=4,e.length=0)}},xt=(t,e,n,o)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.o,s=t.P||_(null,null),i=(t=>t&&t.O===z)(e)?e:H(null,null,e);if(Y=o.tagName,n&&i.v)for(const t of Object.keys(i.v))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.v[t]=o[t]);i.O=null,i.u|=4,t.P=i,i.k=s.k=o.shadowRoot||o,ct=!(!(1&l.u)||128&l.u),mt(s,i,n),ft.forEach((t=>t())),ft.length=0,at.forEach((t=>t())),at.length=0})(t,e,o)}catch(e){a(e,t.$hostElement$)}return null},Et=t=>{const e=t.$hostElement$,n=t.i,o=t.R;Nt(n,"componentDidRender",void 0,e),64&t.u?Nt(n,"componentDidUpdate",void 0,e):(t.u|=64,Ct(e),Nt(n,"componentDidLoad",void 0,e),t.T(e),o||Mt()),t.U(e),t.A&&(t.A(),t.A=void 0),512&t.u&&M((()=>wt(t,!1))),t.u&=-517},Mt=()=>{var t;M((()=>tt(v,"appload",{detail:{namespace:"web-component-poc"}}))),(null==(t=y.V)?void 0:t.size)&&y.V.clear()},Nt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){a(t,o)}},Ct=t=>t.classList.add("hydrated"),It=(t,e,n,o)=>{const l=c(t);if(!l)return;if(!l)throw Error(`Couldn't find host element for "${o.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=l.l.get(e),i=l.u,r=l.i;if(n=K(n,o.t[e][0]),(!(8&i)||void 0===s)&&n!==s&&(!Number.isNaN(s)||!Number.isNaN(n))&&(l.l.set(e,n),2&i)){if(r.componentShouldUpdate&&!1===r.componentShouldUpdate(n,s,e)&&!(16&i))return;16&i||wt(l,!1)}},Lt=(t,e,n)=>{var o,l;const i=t.prototype;if(e.t){const r=Object.entries(null!=(o=e.t)?o:{});if(r.map((([t,[o]])=>{if(31&o||2&n&&32&o){const{get:l,set:r}=s(i,t)||{};l&&(e.t[t][0]|=2048),r&&(e.t[t][0]|=4096),(1&n||!l)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>c(this).l.get(e))(0,t);const n=c(this),o=n?n.i:i;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(l){const s=c(this);if(s){if(r)return void 0===(32&o?this[t]:s.$hostElement$[t])&&s.l.get(t)&&(l=s.l.get(t)),r.call(this,K(l,o)),void It(this,t,l=32&o?this[t]:s.$hostElement$[t],e);{if(!(1&n&&4096&e.t[t][0]))return It(this,t,l,e),void(1&n&&!s.i&&s.D.push((()=>{4096&e.t[t][0]&&s.i[t]!==s.l.get(t)&&(s.i[t]=l)})));const i=()=>{const n=s.i[t];!s.l.get(t)&&n&&s.l.set(t,n),s.i[t]=K(l,o),It(this,t,s.i[t],e)};s.i?i():s.D.push((()=>{i()}))}}}})}else 1&n&&64&o&&Object.defineProperty(i,t,{value(...e){var n;const o=c(this);return null==(n=null==o?void 0:o.H)?void 0:n.then((()=>{var n;return null==(n=o.i)?void 0:n[t](...e)}))}})})),1&n){const n=new Map;i.attributeChangedCallback=function(t,o,l){y.jmp((()=>{var s;const u=n.get(t),f=c(this);if(this.hasOwnProperty(u)&&(l=this[u],delete this[u]),i.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==l)return;if(null==u){const n=null==f?void 0:f.u;if(f&&n&&!(8&n)&&l!==o){const i=f.i,r=null==(s=e._)?void 0:s[t];null==r||r.forEach((e=>{const[[s,r]]=Object.entries(e);null!=i[s]&&(128&n||1&r)&&i[s].call(i,l,o,t)}))}return}const a=r.find((([t])=>t===u));a&&4&a[1][0]&&(l=null!==l&&"false"!==l);const d=Object.getOwnPropertyDescriptor(i,u);l==this[u]||d.get&&!d.set||(this[u]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=e._)?l:{}),...r.filter((([t,e])=>31&e[0])).map((([t,e])=>{const o=e[1]||t;return n.set(o,t),o}))]))}}return t},At=(t,e)=>{Nt(t,"connectedCallback",void 0,e)},Rt=t=>{if(!(1&y.u)){const e=c(t);if(!e)return;const n=e.o,o=()=>{};if(1&e.u)(null==e?void 0:e.i)?At(e.i,t):(null==e?void 0:e.F)&&e.F.then((()=>At(e.i,t)));else{let o;if(e.u|=1,o=t.getAttribute($),o){if(1&n.u){const e=P(t.shadowRoot,n);t.classList.remove(e+"-h",e+"-s")}((t,e,n,o)=>{var l,s,i,r;const u=t.shadowRoot,f=[],a=[],d=u?[]:null,p=_(e,null);p.k=t,!v.document||y.V&&y.V.size||W(v.document.body,y.V=new Map),t[$]=n,t.removeAttribute($),o.P=F(p,f,[],d,t,t,n,a);let h=0;const m=f.length;let b;for(;h<m;h++){b=f[h];const n=b.M+"."+b.N,o=y.V.get(n),s=b.k;if(u){if((null==(l=b.O)?void 0:(""+l).includes("-"))&&"slot-fb"!==b.O&&!b.k.shadowRoot){const t=c(b.k);if(t){const e=T(t.o),n=v.document.querySelector(`style[sty-id="${e}"]`);n&&d.unshift(n.cloneNode(!0))}}}else s["s-hn"]=e.toUpperCase(),"slot"===b.O&&(s["s-cr"]=t["s-cr"]);"slot"===b.O&&(b.L=b.k["s-sn"]||b.k.name||null,b.j?(b.u|=2,b.k.childNodes.length||b.j.forEach((t=>{b.k.appendChild(t.k)}))):b.u|=1),o&&o.isConnected&&(o.parentElement.shadowRoot&&""===o["s-en"]&&o.parentNode.insertBefore(s,o.nextSibling),o.parentNode.removeChild(o),u||(s["s-oo"]=parseInt(b.N))),o&&!o["s-id"]&&y.V.delete(n)}const g=[],w=a.length;let j,S,O,k,x=0,E=0;for(;x<w;x++)if(j=a[x],j&&j.length)for(O=j.length,S=0;S<O;S++){if(k=j[S],g[k.hostId]||(g[k.hostId]=y.V.get(k.hostId)),!g[k.hostId])continue;const t=g[k.hostId];t.shadowRoot&&k.node.parentElement!==t&&t.insertBefore(k.node,null==(i=null==(s=j[S-1])?void 0:s.node)?void 0:i.nextSibling),t.shadowRoot&&u||(k.slot["s-cr"]||(k.slot["s-cr"]=t["s-cr"],k.slot["s-cr"]=!k.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),I(k.node,k.slot,0,k.node["s-oo"]||E),(null==(r=k.node.parentElement)?void 0:r.shadowRoot)&&k.node.getAttribute&&k.node.getAttribute("slot")&&k.node.removeAttribute("slot")),E=(k.node["s-oo"]||E)+1}if(u&&!u.childNodes.length){let e=0;const n=d.length;if(n){for(;e<n;e++){const t=d[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))}))}}o.$hostElement$=t})(t,n.h,o,e)}{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){gt(e,e.R=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 o;try{if(!(32&e.u)){if(e.u|=32,n.W){const l=((t,e)=>{const n=t.h.replace(/-/g,"_"),o=t.W;if(!o)return;const l=d.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(d.set(o,t),t[n])),(t=>{a(t,e.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.h}#${e.B}" was not found`);o.isProxied||(Lt(o,n,2),o.isProxied=!0);const s=()=>{};e.u|=8;try{new o(e)}catch(e){a(e,t)}e.u&=-9,s(),At(e.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=T(n);if(!p.has(e)){const o=()=>{};D(e,t,!!(1&n.u)),o()}}}const l=e.R,s=()=>wt(e,!0);l&&l["s-rc"]?l["s-rc"].push(s):s()}catch(n){a(n,t),e.A&&(e.A(),e.A=void 0),e.T&&e.T(t)}})(t,e,n)}o()}},Dt=(t,e)=>{Nt(t,"disconnectedCallback",void 0,e||t)},Pt=(t,e={})=>{var n;if(!v.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],l=e.exclude||[],s=v.customElements,i=v.document.head,r=i.querySelector("meta[charset]"),u=v.document.createElement("style"),f=[];let a,d=!0;if(Object.assign(y,e),y.p=new URL(e.resourcesUrl||"./",v.document.baseURI).href,y.u|=2,(()=>{if(!v.document)return;const t=v.document.querySelectorAll(`[${h}]`);let e=0;for(;e<t.length;e++)D(t[e].getAttribute(h),U(t[e].innerHTML),!0)})(),t.map((t=>{t[1].map((e=>{const n={u:e[0],h:e[1],t:e[2],q:e[3]};n.t=e[2];const i=n.h,r=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const n={u:0,$hostElement$:t,o:e,l:new Map,Y:new Map};n.H=new Promise((t=>n.U=t)),n.F=new Promise((t=>n.T=t)),t["s-p"]=[],t["s-rc"]=[],n.D=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,n),1&n.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${n.h}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else C.call(t,n)}connectedCallback(){c(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),a&&(clearTimeout(a),a=null),d?f.push(this):y.jmp((()=>Rt(this))))}disconnectedCallback(){y.jmp((()=>(async t=>{if(!(1&y.u)){const e=c(t);(null==e?void 0:e.i)?Dt(e.i,t):(null==e?void 0:e.F)&&e.F.then((()=>Dt(e.i,t)))}R.has(t)&&R.delete(t),t.shadowRoot&&R.has(t.shadowRoot)&&R.delete(t.shadowRoot)})(this))),y.raf((()=>{var t;const e=c(this);if(!e)return;const n=f.findIndex((t=>t===this));n>-1&&f.splice(n,1),(null==(t=null==e?void 0:e.P)?void 0:t.k)instanceof Node&&!e.P.k.isConnected&&delete e.P.k}))}componentOnReady(){var t;return null==(t=c(this))?void 0:t.F}};n.W=t[0],l.includes(i)||s.get(i)||(o.push(i),s.define(i,Lt(r,n,1)))}))})),o.length>0&&(u.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const t=null!=(n=y.$)?n:A(v.document);null!=t&&u.setAttribute("nonce",t),i.insertBefore(u,r?r.nextSibling:i.firstChild)}d=!1,f.length?f.map((t=>t.connectedCallback())):y.jmp((()=>a=setTimeout(Mt,30)))},Tt=t=>y.$=t;export{Pt as b,X as c,Q as g,H as h,b as p,u as r,Tt as s}
@@ -0,0 +1 @@
1
+ const o=()=>{};export{o as g}
@@ -1,50 +1 @@
1
- import { B as BUILD, c as consoleDevInfo, H, w as win, N as NAMESPACE, p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-B0WZf8UB.js';
2
- export { s as setNonce } from './index-B0WZf8UB.js';
3
-
4
- /*
5
- Stencil Client Patch Browser v4.43.2 | MIT Licensed | https://stenciljs.com
6
- */
7
-
8
- var patchBrowser = () => {
9
- if (BUILD.isDev && !BUILD.isTesting) {
10
- consoleDevInfo("Running in development mode.");
11
- }
12
- if (BUILD.cloneNodeFix) {
13
- patchCloneNodeFix(H.prototype);
14
- }
15
- const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll("script")).find(
16
- (s) => new RegExp(`/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || s.getAttribute("data-stencil-namespace") === NAMESPACE
17
- ) : null;
18
- const importMeta = import.meta.url;
19
- const opts = BUILD.scriptDataOpts ? (scriptElm || {})["data-opts"] || {} : {};
20
- if (importMeta !== "") {
21
- opts.resourcesUrl = new URL(".", importMeta).href;
22
- }
23
- return promiseResolve(opts);
24
- };
25
- var patchCloneNodeFix = (HTMLElementPrototype) => {
26
- const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
27
- HTMLElementPrototype.cloneNode = function(deep) {
28
- if (this.nodeName === "TEMPLATE") {
29
- return nativeCloneNodeFn.call(this, deep);
30
- }
31
- const clonedNode = nativeCloneNodeFn.call(this, false);
32
- const srcChildNodes = this.childNodes;
33
- if (deep) {
34
- for (let i = 0; i < srcChildNodes.length; i++) {
35
- if (srcChildNodes[i].nodeType !== 2) {
36
- clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
37
- }
38
- }
39
- }
40
- return clonedNode;
41
- };
42
- };
43
-
44
- patchBrowser().then(async (options) => {
45
- await globalScripts();
46
- return bootstrapLazy([["fast-button",[[769,"fast-button",{"variant":[1],"type":[1],"disabled":[4]}]]],["fast-carousel",[[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]}]]],["jobs-list-only-ui",[[513,"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"]}]]]], options);
47
- });
48
- //# sourceMappingURL=web-component-poc.esm.js.map
49
-
50
- //# sourceMappingURL=web-component-poc.esm.js.map
1
+ import{p as e,b as t}from"./p-D7_MJBO8.js";export{s as setNonce}from"./p-D7_MJBO8.js";import{g as o}from"./p-DQuL1Twl.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((async e=>(await o(),t([["p-0bc6d45d",[[769,"fast-button",{variant:[1],type:[1],disabled:[4]}],[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"]}]]],["p-8ab359cc",[[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]}]]]],e))));
@@ -0,0 +1,287 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ import { Readable } from 'node:stream';
4
+
5
+ export declare function createWindowFromHtml(templateHtml: string, uniqueId: string): any;
6
+ export type TagTransformer = (tag: string) => string;
7
+ /**
8
+ * Serialize a value to a string that can be deserialized later.
9
+ * @param {unknown} value - The value to serialize.
10
+ * @returns {string} A string that can be deserialized later.
11
+ * @deprecated will be removed in v5. Use `@PropSerialize()` decorator instead.
12
+ */
13
+ export declare function serializeProperty(value: unknown): string | number | boolean;
14
+ /**
15
+ * Deserialize a value from a string that was serialized earlier.
16
+ * @param {string} value - The string to deserialize.
17
+ * @returns {unknown} The deserialized value.
18
+ * @deprecated will be removed in v5. Use `@AttrDeserialize()` decorator instead.
19
+ */
20
+ export declare function deserializeProperty(value: string): any;
21
+ export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
22
+ export interface HydrateDocumentOptions {
23
+ /**
24
+ * Build ID that will be added to `<html data-stencil-build="BUILD_ID">`. By default
25
+ * a random ID will be generated
26
+ */
27
+ buildId?: string;
28
+ /**
29
+ * Sets the `href` attribute on the `<link rel="canonical">`
30
+ * tag within the `<head>`. If the value is not defined it will
31
+ * ensure a canonical link tag is no included in the `<head>`.
32
+ */
33
+ canonicalUrl?: string;
34
+ /**
35
+ * Include the HTML comments and attributes used by the client-side
36
+ * JavaScript to read the structure of the HTML and rebuild each
37
+ * component. Defaults to `true`.
38
+ */
39
+ clientHydrateAnnotations?: boolean;
40
+ /**
41
+ * Constrain `setTimeout()` to 1ms, but still async. Also
42
+ * only allows `setInterval()` to fire once, also constrained to 1ms.
43
+ * Defaults to `true`.
44
+ */
45
+ constrainTimeouts?: boolean;
46
+ /**
47
+ * Sets `document.cookie`
48
+ */
49
+ cookie?: string;
50
+ /**
51
+ * Sets the `dir` attribute on the top level `<html>`.
52
+ */
53
+ direction?: string;
54
+ /**
55
+ * Component tag names listed here will not be prerendered, nor will
56
+ * hydrated on the client-side. Components listed here will be ignored
57
+ * as custom elements and treated no differently than a `<div>`.
58
+ */
59
+ excludeComponents?: string[];
60
+ /**
61
+ * Sets the `lang` attribute on the top level `<html>`.
62
+ */
63
+ language?: string;
64
+ /**
65
+ * Maximum number of components to hydrate on one page. Defaults to `300`.
66
+ */
67
+ maxHydrateCount?: number;
68
+ /**
69
+ * Sets `document.referrer`
70
+ */
71
+ referrer?: string;
72
+ /**
73
+ * Removes every `<script>` element found in the `document`. Defaults to `false`.
74
+ */
75
+ removeScripts?: boolean;
76
+ /**
77
+ * Removes CSS not used by elements within the `document`. Defaults to `true`.
78
+ */
79
+ removeUnusedStyles?: boolean;
80
+ /**
81
+ * The url the runtime uses for the resources, such as the assets directory.
82
+ */
83
+ resourcesUrl?: string;
84
+ /**
85
+ * Prints out runtime console logs to the NodeJS process. Defaults to `false`.
86
+ */
87
+ runtimeLogging?: boolean;
88
+ /**
89
+ * Component tags listed here will only be prerendered or server-side-rendered
90
+ * and will not be client-side hydrated. This is useful for components that
91
+ * are not dynamic and do not need to be defined as a custom element within the
92
+ * browser. For example, a header or footer component would be a good example that
93
+ * may not require any client-side JavaScript.
94
+ */
95
+ staticComponents?: string[];
96
+ /**
97
+ * The amount of milliseconds to wait for a page to finish rendering until
98
+ * a timeout error is thrown. Defaults to `15000`.
99
+ */
100
+ timeout?: number;
101
+ /**
102
+ * Sets `document.title`.
103
+ */
104
+ title?: string;
105
+ /**
106
+ * Sets `location.href`
107
+ */
108
+ url?: string;
109
+ /**
110
+ * Sets `navigator.userAgent`
111
+ */
112
+ userAgent?: string;
113
+ /**
114
+ * Configure how Stencil serializes the components shadow root.
115
+ * - If set to `declarative-shadow-dom` the component will be rendered within a Declarative Shadow DOM.
116
+ * - If set to `scoped` Stencil will render the contents of the shadow root as a `scoped: true` component
117
+ * and the shadow DOM will be created during client-side hydration.
118
+ * - Alternatively you can mix and match the two by providing an object with `declarative-shadow-dom` and `scoped` keys,
119
+ * the value arrays containing the tag names of the components that should be rendered in that mode.
120
+ *
121
+ * Examples:
122
+ * - `{ 'declarative-shadow-dom': ['my-component-1', 'another-component'], default: 'scoped' }`
123
+ * Render all components as `scoped` apart from `my-component-1` and `another-component`
124
+ * - `{ 'scoped': ['an-option-component'], default: 'declarative-shadow-dom' }`
125
+ * Render all components within `declarative-shadow-dom` apart from `an-option-component`
126
+ * - `'scoped'` Render all components as `scoped`
127
+ * - `false` disables shadow root serialization
128
+ *
129
+ * *NOTE* `true` has been deprecated in favor of `declarative-shadow-dom` and `scoped`
130
+ * @default 'declarative-shadow-dom'
131
+ */
132
+ serializeShadowRoot?: "declarative-shadow-dom" | "scoped" | {
133
+ "declarative-shadow-dom"?: string[];
134
+ scoped?: string[];
135
+ default: "declarative-shadow-dom" | "scoped";
136
+ } | boolean;
137
+ }
138
+ export interface SerializeDocumentOptions extends HydrateDocumentOptions {
139
+ /**
140
+ * Runs after the `document` has been hydrated.
141
+ */
142
+ afterHydrate?(document: any): any | Promise<any>;
143
+ /**
144
+ * Sets an approximate line width the HTML should attempt to stay within.
145
+ * Note that this is "approximate", in that HTML may often not be able
146
+ * to be split at an exact line width. Additionally, new lines created
147
+ * is where HTML naturally already has whitespace, such as before an
148
+ * attribute or spaces between words. Defaults to `100`.
149
+ */
150
+ approximateLineWidth?: number;
151
+ /**
152
+ * Runs before the `document` has been hydrated.
153
+ */
154
+ beforeHydrate?(document: any): any | Promise<any>;
155
+ /**
156
+ * Format the HTML in a nicely indented format.
157
+ * Defaults to `false`.
158
+ */
159
+ prettyHtml?: boolean;
160
+ /**
161
+ * Remove quotes from attribute values when possible.
162
+ * Defaults to `true`.
163
+ */
164
+ removeAttributeQuotes?: boolean;
165
+ /**
166
+ * Remove the `=""` from standardized `boolean` attributes,
167
+ * such as `hidden` or `checked`. Defaults to `true`.
168
+ */
169
+ removeBooleanAttributeQuotes?: boolean;
170
+ /**
171
+ * Remove these standardized attributes when their value is empty:
172
+ * `class`, `dir`, `id`, `lang`, and `name`, `title`. Defaults to `true`.
173
+ */
174
+ removeEmptyAttributes?: boolean;
175
+ /**
176
+ * Remove HTML comments. Defaults to `true`.
177
+ */
178
+ removeHtmlComments?: boolean;
179
+ /**
180
+ * The `fullDocument` flag determines the format of the rendered output. Set it to true to
181
+ * generate a complete HTML document, or false to render only the component.
182
+ * @default true
183
+ */
184
+ fullDocument?: boolean;
185
+ /**
186
+ * Style modes to render the component in.
187
+ * @see https://stenciljs.com/docs/styling#style-modes
188
+ */
189
+ modes?: ResolutionHandler[];
190
+ }
191
+ export interface HydrateFactoryOptions extends SerializeDocumentOptions {
192
+ serializeToHtml: boolean;
193
+ destroyWindow: boolean;
194
+ destroyDocument: boolean;
195
+ }
196
+ export interface Diagnostic {
197
+ absFilePath?: string | undefined;
198
+ code?: string;
199
+ columnNumber?: number | undefined;
200
+ debugText?: string;
201
+ header?: string;
202
+ language?: string;
203
+ level: "error" | "warn" | "info" | "log" | "debug";
204
+ lineNumber?: number | undefined;
205
+ lines: PrintLine[];
206
+ messageText: string;
207
+ relFilePath?: string | undefined;
208
+ type: string;
209
+ }
210
+ export interface PrintLine {
211
+ lineIndex: number;
212
+ lineNumber: number;
213
+ text: string;
214
+ errorCharStart: number;
215
+ errorLength?: number;
216
+ }
217
+ export interface HydrateResults {
218
+ buildId: string;
219
+ diagnostics: Diagnostic[];
220
+ url: string;
221
+ host: string | null;
222
+ hostname: string | null;
223
+ href: string | null;
224
+ port: string | null;
225
+ pathname: string | null;
226
+ search: string | null;
227
+ hash: string | null;
228
+ html: string | null;
229
+ components: HydrateComponent[];
230
+ anchors: HydrateAnchorElement[];
231
+ imgs: HydrateImgElement[];
232
+ scripts: HydrateScriptElement[];
233
+ styles: HydrateStyleElement[];
234
+ staticData: HydrateStaticData[];
235
+ title: string | null;
236
+ hydratedCount: number;
237
+ httpStatus: number | null;
238
+ }
239
+ export interface HydrateComponent {
240
+ tag: string;
241
+ mode: string;
242
+ count: number;
243
+ depth: number;
244
+ }
245
+ export interface HydrateElement {
246
+ [attrName: string]: string | undefined;
247
+ }
248
+ export interface HydrateAnchorElement extends HydrateElement {
249
+ href?: string;
250
+ target?: string;
251
+ }
252
+ export interface HydrateImgElement extends HydrateElement {
253
+ src?: string;
254
+ }
255
+ export interface HydrateScriptElement extends HydrateElement {
256
+ src?: string;
257
+ type?: string;
258
+ }
259
+ export interface HydrateStyleElement extends HydrateElement {
260
+ id?: string;
261
+ href?: string;
262
+ content?: string;
263
+ }
264
+ export interface HydrateStaticData {
265
+ id: string;
266
+ type: string;
267
+ content: string;
268
+ }
269
+ export declare function streamToString(html: string | any, option?: SerializeDocumentOptions): Readable;
270
+ export declare function renderToString(html: string | any, options?: SerializeDocumentOptions): Promise<HydrateResults>;
271
+ export declare function renderToString(html: string | any, options: SerializeDocumentOptions | undefined, asStream: true): Readable;
272
+ export declare function hydrateDocument(doc: any | string, options?: HydrateDocumentOptions): Promise<HydrateResults>;
273
+ export declare function hydrateDocument(doc: any | string, options: HydrateDocumentOptions | undefined, asStream?: boolean): Readable;
274
+ export declare function serializeDocumentToString(doc: Document, opts: HydrateFactoryOptions): string;
275
+ /**
276
+ * Transforms a tag name using the current tag transformer
277
+ * @param tag - the tag to transform e.g. `my-tag`
278
+ * @returns the transformed tag e.g. `new-my-tag`
279
+ */
280
+ export declare function transformTag<T extends string>(tag: T): T;
281
+ /**
282
+ * Sets the tag transformer to be used when rendering custom elements
283
+ * @param transformer the transformer function to use. Must return a string
284
+ */
285
+ export declare function setTagTransformer(transformer: TagTransformer): void;
286
+
287
+ export {};