@phatvu/web-component-poc 1.0.6 → 1.0.8

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 (52) hide show
  1. package/dist/cjs/fast-button_6.cjs.entry.js +578 -0
  2. package/dist/cjs/{fast-button_4.cjs.entry.js → fast-carousel.cjs.entry.js} +1 -231
  3. package/dist/cjs/{index-B2BTpdbN.js → index-227GpI8K.js} +66 -2
  4. package/dist/cjs/job-card.cjs.entry.js +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/web-component-poc.cjs.js +2 -2
  7. package/dist/collection/collection-manifest.json +4 -1
  8. package/dist/collection/components/button/button.css +14 -14
  9. package/dist/collection/components/button/button.js +12 -24
  10. package/dist/collection/components/fast-form/fast-form.css +5 -0
  11. package/dist/collection/components/fast-form/fast-form.js +99 -0
  12. package/dist/collection/components/fast-input/fast-input.css +45 -0
  13. package/dist/collection/components/fast-input/fast-input.js +359 -0
  14. package/dist/collection/components/jobs-list-only/jobs-list-only.js +180 -3
  15. package/dist/collection/components/jobs-list-reactive/jobs-list-reactive.css +8 -0
  16. package/dist/collection/components/jobs-list-reactive/jobs-list-reactive.js +203 -0
  17. package/dist/components/fast-button.js +1 -1
  18. package/dist/components/fast-carousel.js +1 -1
  19. package/dist/components/fast-form.d.ts +11 -0
  20. package/dist/components/fast-form.js +1 -0
  21. package/dist/components/fast-input.d.ts +11 -0
  22. package/dist/components/fast-input.js +1 -0
  23. package/dist/components/index.js +1 -1
  24. package/dist/components/job-card.js +1 -1
  25. package/dist/components/jobs-item.js +1 -1
  26. package/dist/components/jobs-list-only.js +1 -1
  27. package/dist/components/jobs-list-reactive.d.ts +11 -0
  28. package/dist/components/jobs-list-reactive.js +1 -0
  29. package/dist/components/p-Bb27ylcX.js +1 -0
  30. package/dist/components/{p-ClQDwJJB.js → p-CzgtwPsc.js} +1 -1
  31. package/dist/esm/fast-button_6.entry.js +571 -0
  32. package/dist/esm/{fast-button_4.entry.js → fast-carousel.entry.js} +2 -229
  33. package/dist/esm/{index-Dk5CvWmb.js → index-BqjrT3zA.js} +66 -2
  34. package/dist/esm/job-card.entry.js +1 -1
  35. package/dist/esm/loader.js +3 -3
  36. package/dist/esm/web-component-poc.js +3 -3
  37. package/dist/types/components/button/button.d.ts +1 -13
  38. package/dist/types/components/fast-form/fast-form.d.ts +10 -0
  39. package/dist/types/components/fast-input/fast-input.d.ts +35 -0
  40. package/dist/types/components/jobs-list-only/jobs-list-only.d.ts +22 -0
  41. package/dist/types/components/jobs-list-reactive/jobs-list-reactive.d.ts +26 -0
  42. package/dist/types/components.d.ts +256 -11
  43. package/dist/web-component-poc/{p-52c85341.entry.js → p-14247159.entry.js} +1 -1
  44. package/dist/web-component-poc/p-309a490b.entry.js +1 -0
  45. package/dist/web-component-poc/p-7ea9a87f.entry.js +1 -0
  46. package/dist/web-component-poc/{p-Dk5CvWmb.js → p-BqjrT3zA.js} +2 -2
  47. package/dist/web-component-poc/web-component-poc.esm.js +1 -1
  48. package/hydrate/index.js +457 -27
  49. package/hydrate/index.mjs +457 -27
  50. package/package.json +7 -3
  51. package/dist/components/p-UM9TUfe3.js +0 -1
  52. package/dist/web-component-poc/p-96761988.entry.js +0 -1
@@ -1 +0,0 @@
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||{}),n=(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))(n||{}),e="type",l="value",o="serialized:";function s(t,n,e){const l="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==l;){const l=Object.getOwnPropertyDescriptor(t,n);if(l&&(!e||l.get))return l;t=Object.getPrototypeOf(t)}}var r=(t,n)=>{var e;Object.entries(null!=(e=n.l.t)?e:{}).map((([e,[l]])=>{if(31&l||32&l){const l=t[e],o=s(Object.getPrototypeOf(t),e,!0)||Object.getOwnPropertyDescriptor(t,e);o&&Object.defineProperty(t,e,{get(){return o.get.call(this)},set(t){o.set.call(this,t)},configurable:!0,enumerable:!0}),n.o.has(e)?t[e]=n.o.get(e):void 0!==l&&(t[e]=l)}}))},i=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},c=(t,n)=>n in t,u=(t,n)=>(0,console.error)(t,n),f=new Map,a="s-id",d="sty-id",$="c-id",p="undefined"!=typeof window?window:{},h=p.HTMLElement||class{},v={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,l)=>t.addEventListener(n,e,l),rel:(t,n,e,l)=>t.removeEventListener(n,e,l),ce:(t,n)=>new CustomEvent(t,n)},m=(()=>{try{return!!p.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),b=!!m&&(()=>!!p.document&&Object.getOwnPropertyDescriptor(p.document.adoptedStyleSheets,"length").writable)(),y=!1,g=[],w=[],j=(t,n)=>e=>{t.push(e),y||(y=!0,n&&4&v.i?N(S):v.raf(S))},O=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){u(t)}t.length=0},S=()=>{O(g),O(w),(y=g.length>0)&&v.raf(S)},N=t=>Promise.resolve(undefined).then(t),k=j(w,!0),x=t=>{const n=new URL(t,v.u);return n.origin!==p.location.origin?n.href:n.pathname},M=t=>v.u=t,E=t=>{const n=F(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&I(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!L(t,_(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&F(t,"childNodes").length&&E(t)}};function I(t,n,e){let l,o=0,s=[];for(;o<t.length;o++){if(l=t[o],l["s-sr"]&&(!n||l["s-hn"]===n)&&(void 0===e||_(l)===e)&&(s.push(l),void 0!==e))return s;s=[...s,...I(l.childNodes,n,e)]}return s}var L=(t,n,e=!0)=>{const l=[];(e&&t["s-sr"]||!t["s-sr"])&&l.push(t);let o=t;for(;o=o.nextSibling;)_(o)!==n||!e&&o["s-sr"]||l.push(o);return l},A=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,C=(t,n,e,l)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const o=document.createTextNode("");if(o["s-nr"]=t,!n["s-cr"]||!n["s-cr"].parentNode)return;const s=n["s-cr"].parentNode,r=F(s,"appendChild");if(void 0!==l){o["s-oo"]=l;const t=F(s,"childNodes"),n=[o];t.forEach((t=>{t["s-nr"]&&n.push(t)})),n.sort(((t,n)=>!t["s-oo"]||t["s-oo"]<(n["s-oo"]||0)?-1:!n["s-oo"]||n["s-oo"]<t["s-oo"]?1:0)),n.forEach((t=>r.call(s,t)))}else r.call(s,o);t["s-ol"]=o,t["s-sh"]=n["s-hn"]},_=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function R(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],l=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const o=this["s-cr"].parentElement;return(o.__childNodes?o.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const l=t[e]["s-nr"]||void 0;l&&l.isConnected&&n.push(l)}return n})(o.childNodes)).forEach((t=>{l===_(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}function F(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}var T=new WeakMap,D=t=>"sc-"+t.$,V=t=>"object"==(t=typeof t)||"function"===t,H=(t,n,...e)=>{let l=null,o=null,s=null,r=!1,i=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)l=n[e],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((r="function"!=typeof t&&!V(l))&&(l=String(l)),r&&i?c[c.length-1].p+=l:c.push(r?P(null,l):l),i=r)};if(u(e),n){n.key&&(o=n.key),n.name&&(s=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}const f=P(t,null);return f.h=n,c.length>0&&(f.v=c),f.m=o,f.j=s,f},P=(t,n)=>({i:0,O:t,p:null!=n?n:null,S:null,v:null,h:null,m:null,j:null}),U={},B=(t,n,e,l,o,s,r,i=[])=>{let c,u,f,a;if(1===s.nodeType){if(c=s.getAttribute($),c&&(u=c.split("."),u[0]===r||"0"===u[0])){f=z({i:0,N:u[0],k:u[1],M:u[2],I:u[3],O:s.tagName.toLowerCase(),S:s,h:{class:s.className||""}}),n.push(f),s.removeAttribute($),t.v||(t.v=[]);const l=f.S.getAttribute("s-sn");"string"==typeof l&&("slot-fb"===f.O&&q(l,u[2],f,s,t,n,e,0,i),f.S["s-sn"]=l,f.S.removeAttribute("s-sn")),void 0!==f.I&&(t.v[f.I]=f),t=f}if(s.shadowRoot)for(a=s.shadowRoot.childNodes.length-1;a>=0;a--)B(t,n,e,l,o,s.shadowRoot.childNodes[a],r,i);const d=s.__childNodes||s.childNodes;for(a=d.length-1;a>=0;a--)B(t,n,e,l,o,d[a],r,i)}else if(8===s.nodeType)u=s.nodeValue.split("."),(u[1]===r||"0"===u[1])&&(c=u[0],f=z({N:u[1],k:u[2],M:u[3],I:u[4]||"0",S:s,h:null,v:null,m:null,j:null,O:null,p:null}),"t"===c?(f.S=G(s,3),f.S&&3===f.S.nodeType&&(f.p=f.S.textContent,n.push(f),s.remove(),r===f.N&&(t.v||(t.v=[]),t.v[f.I]=f))):"c"===c?(f.S=G(s,8),f.S&&8===f.S.nodeType&&(n.push(f),s.remove())):f.N===r&&("s"===c?q(s["s-sn"]=u[5]||"",u[2],f,s,t,n,e,0,i):"r"===c&&(o["s-cr"]=s,s["s-cn"]=!0)));else if(t&&"style"===t.O){const n=P(null,s.textContent);n.S=s,n.I="0",t.v=[n]}return t},W=(t,n)=>{if(1===t.nodeType){const e=t[a]||t.getAttribute(a);e&&n.set(e,t);let l=0;if(t.shadowRoot)for(;l<t.shadowRoot.childNodes.length;l++)W(t.shadowRoot.childNodes[l],n);const o=t.__childNodes||t.childNodes;for(l=0;l<o.length;l++)W(o[l],n)}else if(8===t.nodeType){const e=t.nodeValue.split(".");"o"===e[0]&&(n.set(e[1]+"."+e[2],t),t.nodeValue="",t["s-en"]=e[3])}},z=t=>({i:0,N:null,k:null,M:null,I:"0",S:null,h:null,v:null,m:null,j:null,O:null,p:null,...t});function q(t,n,e,l,o,s,r,i,c){l["s-sr"]=!0,e.j=t||null,e.O="slot";const u=(null==o?void 0:o.S)?o.S["s-id"]||o.S.getAttribute("s-id"):"";{const s=e.S,r=u&&u!==e.N&&o.S.shadowRoot;Z(c,n,t,l,r?u:e.N),R(l),r&&o.S.insertBefore(s,o.S.children[0])}s.push(e),r.push(e),o.v||(o.v=[]),o.v[e.I]=e}var Y,J,Z=(t,n,e,l,o)=>{var s,r;let i=l.nextSibling;if(t[n]=t[n]||[],i&&!(null==(s=i.nodeValue)?void 0:s.startsWith("s.")))do{!i||(i.getAttribute&&i.getAttribute("slot")||i["s-sn"])!==e&&(""!==e||i["s-sn"]||i.getAttribute&&i.getAttribute("slot")||8!==i.nodeType&&3!==i.nodeType)||(i["s-sn"]=e,t[n].push({slot:l,node:i,hostId:o})),i=null==i?void 0:i.nextSibling}while(i&&!(null==(r=i.nodeValue)?void 0:r.startsWith("s.")))},G=(t,n)=>{let e=t;do{e=e.nextSibling}while(e&&(e.nodeType!==n||!e.nodeValue));return e},K=class o{static fromLocalValue(t){const n=t[e],s=l in t?t[l]:void 0;switch(n){case"string":case"boolean":return s;case"bigint":return BigInt(s);case"undefined":return;case"null":return null;case"number":return"NaN"===s?NaN:"-0"===s?-0:"Infinity"===s?1/0:"-Infinity"===s?-1/0:s;case"array":return s.map((t=>o.fromLocalValue(t)));case"date":return new Date(s);case"map":const t=new Map;for(const[n,e]of s){const l="object"==typeof n&&null!==n?o.fromLocalValue(n):n,s=o.fromLocalValue(e);t.set(l,s)}return t;case"object":const e={};for(const[t,n]of s)e[t]=o.fromLocalValue(n);return e;case"regexp":const{pattern:l,flags:r}=s;return new RegExp(l,r);case"set":const i=new Set;for(const t of s)i.add(o.fromLocalValue(t));return i;case"symbol":return Symbol(s);default:throw new Error(`Unsupported type: ${n}`)}}static fromLocalValueArray(t){return t.map((t=>o.fromLocalValue(t)))}static isLocalValueObject(o){if("object"!=typeof o||null===o)return!1;if(!o.hasOwnProperty(e))return!1;const s=o[e];return!!Object.values({...t,...n}).includes(s)&&("null"===s||"undefined"===s||o.hasOwnProperty(l))}},Q=(t,n)=>{return"string"==typeof t&&t.startsWith(o)?t="string"==typeof(e=t)&&e.startsWith(o)?K.fromLocalValue(JSON.parse(atob(e.slice(11)))):e:null==t||V(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?String(t):t;var e},X=(t,n)=>{const e=t;return{emit:t=>tt(e,n,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},tt=(t,n,e)=>{const l=v.ce(n,e);return t.dispatchEvent(l),l},nt=(t,n,e,l,o,s,r)=>{if(e===l)return;let u=c(t,n),f=n.toLowerCase();if("class"===n){const n=t.classList,o=lt(e);let s=lt(l);if((t["s-si"]||t["s-sc"])&&r){const e=t["s-sc"]||t["s-si"];s.push(e),o.forEach((t=>{t.startsWith(e)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),n.add(...s)}else n.remove(...o.filter((t=>t&&!s.includes(t)))),n.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===n){for(const n in e)l&&null!=l[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in l)e&&l[n]===e[n]||(n.includes("-")?t.style.setProperty(n,l[n]):t.style[n]=l[n])}else if("key"===n);else if("ref"===n)l&&Nt(l,t);else if(t.__lookupSetter__(n)||"o"!==n[0]||"n"!==n[1]){if("a"===n[0]&&n.startsWith("attr:")){const e=n.slice(5);let o;{const n=i(t);if(n&&n.l&&n.l.t){const t=n.l.t[e];t&&t[1]&&(o=t[1])}}return o||(o=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==l||!1===l?!1===l&&""!==t.getAttribute(o)||t.removeAttribute(o):t.setAttribute(o,!0===l?"":l))}if("p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=l}catch(t){}return}{const r=V(l);if((u||r&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[n]!==l&&(t[n]=l);else{const o=null==l?"":l;"list"===n?u=!1:null!=e&&t[n]===o||("function"==typeof t.__lookupSetter__(n)?t[n]=o:t.setAttribute(n,o))}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(n)||t.removeAttribute(n):(!u||4&s||o)&&!r&&1===t.nodeType&&t.setAttribute(n,l=!0===l?"":l)}}else if(n="-"===n[2]?n.slice(3):c(p,f)?f.slice(2):f[2]+n.slice(3),e||l){const o=n.endsWith(ot);n=n.replace(st,""),e&&v.rel(t,n,e,o),l&&v.ael(t,n,l,o)}},et=/\s/,lt=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(et):[]),ot="Capture",st=new RegExp(ot+"$"),rt=(t,n,e,l)=>{const o=11===n.S.nodeType&&n.S.host?n.S.host:n.S,s=t&&t.h||{},r=n.h||{};for(const t of it(Object.keys(s)))t in r||nt(o,t,s[t],void 0,e,n.i,l);for(const t of it(Object.keys(r)))nt(o,t,s[t],r[t],e,n.i,l)};function it(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var ct=!1,ut=!1,ft=!1,at=!1,dt=[],$t=[],pt=(t,n,e)=>{var l;const o=n.v[e];let s,r,i,c=0;if(ct||(ft=!0,"slot"===o.O&&(o.i|=o.v?2:1)),null!=o.p)s=o.S=p.document.createTextNode(o.p);else if(1&o.i)s=o.S=p.document.createTextNode(""),rt(null,o,at);else{if(at||(at="svg"===o.O),!p.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=o.S=p.document.createElementNS(at?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!ct&&2&o.i?"slot-fb":o.O),at&&"foreignObject"===o.O&&(at=!1),rt(null,o,at),o.v){const n="template"===o.O?s.content:s;for(c=0;c<o.v.length;++c)r=pt(t,o,c),r&&n.appendChild(r)}"svg"===o.O?at=!1:"foreignObject"===s.tagName&&(at=!0)}return s["s-hn"]=J,3&o.i&&(s["s-sr"]=!0,s["s-cr"]=Y,s["s-sn"]=o.j||"",s["s-rf"]=null==(l=o.h)?void 0:l.ref,R(s),i=t&&t.v&&t.v[e],i&&i.O===o.O&&t.S&&ht(t.S)),s},ht=t=>{v.i|=1;const n=t.closest(J.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),l=Array.from(t.__childNodes||t.childNodes);for(const t of e?l.reverse():l)null!=t["s-sh"]&&(kt(n,t,null!=e?e:null),t["s-sh"]=void 0,ft=!0)}v.i&=-2},vt=(t,n)=>{v.i|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===J&&e.push(n)}for(let t=e.length-1;t>=0;t--){const l=e[t];l["s-hn"]!==J&&l["s-ol"]&&(kt(gt(l).parentNode,l,gt(l)),l["s-ol"].remove(),l["s-ol"]=void 0,l["s-sh"]=void 0,ft=!0),n&&vt(l,n)}v.i&=-2},mt=(t,n,e,l,o,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for("template"===e.O&&(i=i.content);o<=s;++o)l[o]&&(r=pt(null,e,o),r&&(l[o].S=r,kt(i,r,gt(n))))},bt=(t,n,e)=>{for(let l=n;l<=e;++l){const n=t[l];if(n){const t=n.S;St(n),t&&(ut=!0,t["s-ol"]?t["s-ol"].remove():vt(t,!0),t.remove())}}},yt=(t,n,e=!1)=>t.O===n.O&&("slot"===t.O?t.j===n.j:e?(e&&!t.m&&n.m&&(t.m=n.m),!0):t.m===n.m),gt=t=>t&&t["s-ol"]||t,wt=(t,n,e=!1)=>{const l=n.S=t.S,o=t.v,s=n.v,r=n.O,i=n.p;let c;null==i?(at="svg"===r||"foreignObject"!==r&&at,"slot"!==r||ct||t.j!==n.j&&(n.S["s-sn"]=n.j||"",ht(n.S.parentElement)),rt(t,n,at,e),null!==o&&null!==s?((t,n,e,l,o=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=n.length-1,d=n[0],$=n[a],p=l.length-1,h=l[0],v=l[p];const m="template"===e.O?t.content:t;for(;i<=a&&c<=p;)if(null==d)d=n[++i];else if(null==$)$=n[--a];else if(null==h)h=l[++c];else if(null==v)v=l[--p];else if(yt(d,h,o))wt(d,h,o),d=n[++i],h=l[++c];else if(yt($,v,o))wt($,v,o),$=n[--a],v=l[--p];else if(yt(d,v,o))"slot"!==d.O&&"slot"!==v.O||vt(d.S.parentNode,!1),wt(d,v,o),kt(m,d.S,$.S.nextSibling),d=n[++i],v=l[--p];else if(yt($,h,o))"slot"!==d.O&&"slot"!==v.O||vt($.S.parentNode,!1),wt($,h,o),kt(m,$.S,d.S),$=n[--a],h=l[++c];else{for(u=-1,f=i;f<=a;++f)if(n[f]&&null!==n[f].m&&n[f].m===h.m){u=f;break}u>=0?(r=n[u],r.O!==h.O?s=pt(n&&n[c],e,u):(wt(r,h,o),n[u]=void 0,s=r.S),h=l[++c]):(s=pt(n&&n[c],e,c),h=l[++c]),s&&kt(gt(d.S).parentNode,s,gt(d.S))}i>a?mt(t,null==l[p+1]?null:l[p+1].S,e,l,c,p):c>p&&bt(n,i,a)})(l,o,n,s,e):null!==s?(null!==t.p&&(l.textContent=""),mt(l,null,n,s,0,s.length-1)):e||null===o?e&&null!==o&&null===s&&(n.v=o):bt(o,0,o.length-1),at&&"svg"===r&&(at=!1)):(c=l["s-cr"])?c.parentNode.textContent=i:t.p!==i&&(l.data=i)},jt=[],Ot=t=>{let n,e,l;const o=t.__childNodes||t.childNodes;for(const t of o){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const o=t["s-sn"];for(l=e.length-1;l>=0;l--)if(n=e[l],!(n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||n["s-sh"]&&n["s-sh"]===t["s-hn"]))if(A(n,o)){let e=jt.find((t=>t.L===n));ut=!0,n["s-sn"]=n["s-sn"]||o,e?(e.L["s-sh"]=t["s-hn"],e.A=t):(n["s-sh"]=t["s-hn"],jt.push({A:t,L:n})),n["s-sr"]&&jt.map((t=>{A(t.L,n["s-sn"])&&(e=jt.find((t=>t.L===n)),e&&!t.A&&(t.A=e.A))}))}else jt.some((t=>t.L===n))||jt.push({L:n})}1===t.nodeType&&Ot(t)}},St=t=>{t.h&&t.h.ref&&dt.push((()=>t.h.ref(null))),t.v&&t.v.map(St)},Nt=(t,n)=>{$t.push((()=>t(n)))},kt=(t,n,e,l)=>{if("string"==typeof n["s-sn"]){t.insertBefore(n,e);const{slotNode:o}=function(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const l=t["s-sn"]=_(t)||"";return{slotNode:I(F(n,"childNodes"),n.tagName,l)[0],slotName:l}}(n);return o&&!l&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),n}return t.__insertBefore?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)},xt=(t,n,e=!1)=>{var l,o,s,r,i;const c=t.$hostElement$,u=t.l,f=t.C||P(null,null);var a;const d=(a=n)&&a.O===U?n:H(null,null,n);if(J=c.tagName,e&&d.h)for(const t of Object.keys(d.h))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.h[t]=c[t]);if(d.O=null,d.i|=4,t.C=d,d.S=f.S=c,ct=false,Y=c["s-cr"],ut=!1,wt(f,d,e),v.i|=1,ft){Ot(d.S);for(const t of jt){const n=t.L;if(!n["s-ol"]&&p.document){const t=p.document.createTextNode("");t["s-nr"]=n,kt(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of jt){const n=t.L,i=t.A;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(l=n.hidden)&&l),i){const t=i.parentNode;let l=i.nextSibling;if(l&&1===l.nodeType){let e=null==(o=n["s-ol"])?void 0:o.previousSibling;for(;e;){let o=null!=(s=e["s-nr"])?s:null;if(o&&o["s-sn"]===n["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===n||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){l=o;break}}e=e.previousSibling}}if((!l&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==l)&&n!==l){if(kt(t,n,l,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=p.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,kt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(r=n["s-ih"])&&r)}n&&"function"==typeof i["s-rf"]&&i["s-rf"](i)}else 1===n.nodeType&&(n.hidden=!0)}}if(ut&&E(d.S),v.i&=-2,jt.length=0,!ct&&!(1&u.i)&&c["s-cr"]){const t=d.S.__childNodes||d.S.childNodes;for(const n of t)if(n["s-hn"]!==J&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(i=n.hidden)&&i),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=p.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],kt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}Y=void 0,dt.forEach((t=>t())),dt.length=0,$t.forEach((t=>t())),$t.length=0},Mt=(t,n)=>{if(n&&!t._&&n["s-p"]){const e=n["s-p"].push(new Promise((l=>t._=()=>{n["s-p"].splice(e-1,1),l()})))}},Et=(t,n)=>{if(t.i|=16,4&t.i)return void(t.i|=512);Mt(t,t.R);const e=()=>It(t,n);if(!n)return k(e);queueMicrotask((()=>{e()}))},It=(t,n)=>{const e=t.$hostElement$,l=e;if(!l)throw new Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return o=Tt(l,n?"componentWillLoad":"componentWillUpdate",void 0,e),o=Lt(o,(()=>Tt(l,"componentWillRender",void 0,e))),Lt(o,(()=>Ct(t,l,n)))},Lt=(t,n)=>At(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),At=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Ct=async(t,n,e)=>{var l;const o=t.$hostElement$,s=o["s-rc"];e&&(t=>{const n=t.l;((t,n)=>{var e,l,o;const s=D(n),r=f.get(s);if(!p.document)return s;if(t=11===t.nodeType?t:p.document,r)if("string"==typeof r){let o,i=T.get(t=t.head||t);i||T.set(t,i=new Set);const c=t.querySelector(`[${d}="${s}"]`);if(c)c.textContent=r;else if(!i.has(s)){o=p.document.createElement("style"),o.textContent=r;const c=null!=(e=v.F)?e:function(){var t,n,e;return null!=(e=null==(n=null==(t=p.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?e:void 0}();if(null!=c&&o.setAttribute("nonce",c),!(1&n.i))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(o,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if(m){const n=new(null!=(l=t.defaultView)?l:t.ownerDocument.defaultView).CSSStyleSheet;n.replaceSync(r),b?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.textContent=r+n.textContent:t.prepend(o)}else t.append(o);1&n.i&&t.insertBefore(o,null),4&n.i&&(o.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),i&&i.add(s)}}else{let n=T.get(t);if(n||T.set(t,n=new Set),!n.has(s)){const e=null!=(o=t.defaultView)?o:t.ownerDocument.defaultView;let l;if(r.constructor===e.CSSStyleSheet)l=r;else{l=new e.CSSStyleSheet;for(let t=0;t<r.cssRules.length;t++)l.insertRule(r.cssRules[t].cssText,t)}if(b?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l],n.add(s),"host"in t){const n=t.querySelector(`[${d}="${s}"]`);n&&k((()=>n.remove()))}}}})(t.$hostElement$.getRootNode(),n)})(t);_t(t,n,o,e),s&&(s.map((t=>t())),o["s-rc"]=void 0);{const n=null!=(l=o["s-p"])?l:[],e=()=>Rt(t);0===n.length?e():(Promise.all(n).then(e).catch(e),t.i|=4,n.length=0)}},_t=(t,n,e,l)=>{try{n=n.render(),t.i&=-17,t.i|=2,xt(t,n,l)}catch(n){u(n,t.$hostElement$)}return null},Rt=t=>{const n=t.$hostElement$,e=n,l=t.R;Tt(e,"componentDidRender",void 0,n),64&t.i?Tt(e,"componentDidUpdate",void 0,n):(t.i|=64,Dt(n),Tt(e,"componentDidLoad",void 0,n),t.T(n),l||Ft()),t._&&(t._(),t._=void 0),512&t.i&&N((()=>Et(t,!1))),t.i&=-517},Ft=()=>{var t;N((()=>tt(p,"appload",{detail:{namespace:"web-component-poc"}}))),(null==(t=v.D)?void 0:t.size)&&v.D.clear()},Tt=(t,n,e,l)=>{if(t&&t[n])try{return t[n](e)}catch(t){u(t,l)}},Dt=t=>t.classList.add("hydrated"),Vt=(t,n,e,l)=>{const o=i(t);if(!o)return;const s=t,r=o.o.get(n),c=o.i,u=s;e=Q(e,l.t[n][0]);const f=Number.isNaN(r)&&Number.isNaN(e);if(e!==r&&!f&&(o.o.set(n,e),2&c)){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(e,r,n)&&!(16&c))return;16&c||Et(o,!1)}},Ht=(t,n)=>{var e,l;const o=t.prototype;if(n.t){const r=Object.entries(null!=(e=n.t)?e:{});r.map((([t,[e]])=>{if(31&e||32&e){const{get:l,set:r}=s(o,t)||{};l&&(n.t[t][0]|=2048),r&&(n.t[t][0]|=4096),Object.defineProperty(o,t,{get(){return l?l.apply(this):(n=t,i(this).o.get(n));var n},configurable:!0,enumerable:!0}),Object.defineProperty(o,t,{set(l){const o=i(this);if(o){if(r)return void 0===(32&e?this[t]:o.$hostElement$[t])&&o.o.get(t)&&(l=o.o.get(t)),r.apply(this,[Q(l,e)]),void Vt(this,t,l=32&e?this[t]:o.$hostElement$[t],n);Vt(this,t,l,n)}}})}}));{const e=new Map;o.attributeChangedCallback=function(t,l,s){v.jmp((()=>{var c;const u=e.get(t),f=i(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==s)return;if(null==u){const e=null==f?void 0:f.i;if(f&&e&&!(8&e)&&s!==l){const o=this,r=null==(c=n.V)?void 0:c[t];null==r||r.forEach((n=>{const[[r,i]]=Object.entries(n);null!=o[r]&&(128&e||1&i)&&o[r].call(o,s,l,t)}))}return}const a=r.find((([t])=>t===u));a&&4&a[1][0]&&(s=null!==s&&"false"!==s);const d=Object.getOwnPropertyDescriptor(o,u);s==this[u]||d.get&&!d.set||(this[u]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n.V)?l:{}),...r.filter((([t,n])=>31&n[0])).map((([t,n])=>{const l=n[1]||t;return e.set(l,t),l}))]))}}return t},Pt=t=>{if(!(1&v.i)){const n=i(t);if(!n)return;const e=n.l,l=()=>{};if(1&n.i)(null==n?void 0:n.H)||(null==n?void 0:n.P)&&n.P.then((()=>{}));else{let l;n.i|=1,l=t.getAttribute(a),l&&((t,n,e,l)=>{var o,s,r,c;const u=t.shadowRoot,f=[],d=[],$=P(n,null);$.S=t,!p.document||v.D&&v.D.size||W(p.document.body,v.D=new Map),t[a]=e,t.removeAttribute(a),l.C=B($,f,[],null,t,t,e,d);let h=0;const m=f.length;let b;for(;h<m;h++){b=f[h];const e=b.N+"."+b.k,l=v.D.get(e),s=b.S;if(u){if((null==(o=b.O)?void 0:o.toString().includes("-"))&&"slot-fb"!==b.O&&!b.S.shadowRoot){const t=i(b.S);if(t){const n=D(t.l),e=p.document.querySelector(`style[sty-id="${n}"]`);e&&null.unshift(e.cloneNode(!0))}}}else s["s-hn"]=n.toUpperCase(),"slot"===b.O&&(s["s-cr"]=t["s-cr"]);"slot"===b.O&&(b.j=b.S["s-sn"]||b.S.name||null,b.v?(b.i|=2,b.S.childNodes.length||b.v.forEach((t=>{b.S.appendChild(t.S)}))):b.i|=1),l&&l.isConnected&&(l.parentElement.shadowRoot&&""===l["s-en"]&&l.parentNode.insertBefore(s,l.nextSibling),l.parentNode.removeChild(l),u||(s["s-oo"]=parseInt(b.k))),l&&!l["s-id"]&&v.D.delete(e)}const y=[],g=d.length;let w,j,O,S,N=0,k=0;for(;N<g;N++)if(w=d[N],w&&w.length)for(O=w.length,j=0;j<O;j++){if(S=w[j],y[S.hostId]||(y[S.hostId]=v.D.get(S.hostId)),!y[S.hostId])continue;const t=y[S.hostId];t.shadowRoot&&S.node.parentElement!==t&&t.insertBefore(S.node,null==(r=null==(s=w[j-1])?void 0:s.node)?void 0:r.nextSibling),t.shadowRoot&&u||(S.slot["s-cr"]||(S.slot["s-cr"]=t["s-cr"],S.slot["s-cr"]=!S.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),C(S.node,S.slot,0,S.node["s-oo"]||k),(null==(c=S.node.parentElement)?void 0:c.shadowRoot)&&S.node.getAttribute&&S.node.getAttribute("slot")&&S.node.removeAttribute("slot")),k=(S.node["s-oo"]||k)+1}l.$hostElement$=t})(t,e.$,l,n),l||12&e.i&&Ut(t);{let e=t;for(;e=e.parentNode||e.host;)if(1===e.nodeType&&e.hasAttribute("s-id")&&e["s-p"]||e["s-p"]){Mt(n,n.R=e);break}}e.t&&Object.entries(e.t).map((([n,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let l;try{if(!(32&n.i)&&(n.i|=32,l=t.constructor,customElements.whenDefined(t.localName).then((()=>n.i|=128)),l&&l.style)){let t;"string"==typeof l.style&&(t=l.style);const n=D(e);if(!f.has(n)){const l=()=>{};((t,n,e)=>{let l=f.get(t);m&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,f.set(t,l)})(n,t,!!(1&e.i)),l()}}const o=n.R,s=()=>Et(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()}catch(e){u(e,t),n._&&(n._(),n._=void 0),n.T&&n.T(t)}})(t,n,e)}l()}},Ut=t=>{if(!p.document)return;const n=t["s-cr"]=p.document.createComment("");n["s-cn"]=!0,kt(t,n,t.firstChild)},Bt=(t,n)=>{const e={i:n[0],$:n[1]};try{e.t=n[2];const l=t.prototype.connectedCallback,o=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,n)=>{const e={i:0,$hostElement$:t,l:n,o:new Map,U:new Map};e.P=new Promise((t=>e.T=t)),t["s-p"]=[],t["s-rc"]=[];const l=e;t.__stencil__getHostRef=()=>l,512&n.i&&r(t,e)})(this,e)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!i(this))return;this.__hasHostListenerAttached=!0}Pt(this),l&&l.call(this)},disconnectedCallback(){(async t=>{1&v.i||i(t),T.has(t)&&T.delete(t),t.shadowRoot&&T.has(t.shadowRoot)&&T.delete(t.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){this.shadowRoot=this}}),Object.defineProperty(t,"is",{value:e.$,configurable:!0}),Ht(t,e)}catch(n){return u(n),t}},Wt=t=>v.F=t,zt=t=>Object.assign(v,t);function qt(t,n){xt({l:{i:0,$:n.tagName},$hostElement$:n},t)}function Yt(t){return t}export{h as H,Wt as a,zt as b,X as c,x as g,H as h,Bt as p,qt as r,M as s,Yt as t}
@@ -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 i(t){return"number"==typeof t}function r(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 h(t){return t[p(t)]}function p(t){return Math.max(0,t.length-1)}function m(t,e){return e===p(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],i=l(s)&&l(o);t[n]=i?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,i={passive:!0}){let r;if("addEventListener"in n)n.addEventListener(s,o,i),r=()=>n.removeEventListener(s,o,i);else{const t=n;t.addListener(o),r=()=>t.removeListener(o)}return t.push(r),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 i(t){return s(t)||o(t)}return{length:n,max:e,min:t,constrain:function(n){return i(n)?s(n)?t:e:n},reachedAny:i,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 i=r(e);function r(t){return n?a((o+t)%o):s(t)}function c(){return i}function l(){return k(t,c(),n)}const u={get:c,set:function(t){return i=r(t),u},add:function(t){return l().set(c()+t)},clone:l};return u}function w(t,e,n,s,o,i,r,l,f,h,p,m,b,g,y,k,w,S,j){const{cross:A,direction:L}=t,M=["INPUT","SELECT","TEXTAREA"],R={passive:!1},T=x(),C=x(),z=v(50,225).constrain(g.measure(20)),B={mouse:300,touch:400},N={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=i.readPoint(t),n=i.readPoint(t,A),r=d(e,I),c=d(n,$);if(!O&&!H){if(!t.cancelable)return V(t);if(O=r>c,!O)return V(t)}const a=i.pointerMove(t);r>k&&(P=!0),h.useFriction(.3).useDuration(.75),l.start(),o.add(L(a)),t.preventDefault()}function V(t){const e=p.byDistance(0,!1).index!==m.get(),n=i.pointerUp(t)*(y?N:B)[H?"mouse":"touch"],s=function(t,e){const n=m.add(-1*u(t)),s=p.byDistance(t,!y).distance;return y||a(t)<z?s:w&&e?.5*s:p.byIndex(n.get(),0).distance}(L(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),r=E-10*o,c=S+o/50;O=!1,D=!1,C.clear(),h.useDuration(r).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(!j)return;function l(l){(c(j)||j(t,l))&&function(t){const c=_(t,s);H=c,P=y&&c&&!t.buttons&&F,F=d(o.get(),r.get())>=2,c&&0!==t.button||function(t){return M.includes(t.nodeName||"")}(t.target)||(D=!0,i.pointerDown(t),h.useFriction(0).useDuration(0),o.set(r),function(){const t=H?n:e;C.add(t,"touchmove",U,R).add(t,"touchend",V).add(t,"mousemove",U,R).add(t,"mouseup",V)}(),I=i.readPoint(t),$=i.readPoint(t,A),b.emit("pointerDown"))}(l)}const a=e;T.add(a,"dragstart",(t=>t.preventDefault()),R).add(a,"touchmove",(()=>{}),R).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(){T.clear(),C.clear()},pointerDown:function(){return D}}}function S(t,e){let n,s;function o(t){return t.timeStamp}function i(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,i(t)},pointerMove:function(t){const e=i(t)-i(s),r=o(t)-o(n)>170;return s=t,r&&(n=t),e},pointerUp:function(t){if(!n||!s)return 0;const e=i(s)-i(n),r=o(t)-o(n),c=o(t)-o(s)>170,l=e/r;return r&&!c&&a(l)>.1?l:0},readPoint:i}}function j(t,e,n,s,o,i,r){const l=[t].concat(s);let u,d,f=[],h=!1;function p(t){return o.measureSize(r.measure(t))}return{init:function(o){i&&(d=p(t),f=s.map(p),u=new ResizeObserver((n=>{(c(i)||i(o,n))&&function(n){for(const i of n){if(h)return;const n=i.target===t,r=s.indexOf(i.target),c=n?d:f[r];if(a(p(n?t:s[r])-c)>=.5){o.reInit(),e.emit("resize");break}}}(n)})),n.requestAnimationFrame((()=>{l.forEach((t=>u.observe(t)))})))},destroy:function(){h=!0,u&&u.disconnect()}}}function A(t,e,n,s,o){const i=o.measure(10),r=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(),h=c.constrain(d/r);n.subtract(f*h),!o&&a(f)<i&&(n.set(t.constrain(n.get())),s.useDuration(25).useBaseFriction())},toggleActive:function(t){l=!t}}}function L(t,e,n,s){const o=e.min+.1,i=e.max+.1,{reachedMin:r,reachedMax:c}=v(o,i);return{loop:function(e){if(!function(t){return 1===t?c(n.get()):-1===t&&r(n.get())}(e))return;const o=t*(-1*e);s.forEach((t=>t.add(o)))}}}function M(t){let e=t;function n(t){return i(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 R(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,i=!1;return{clear:function(){i||(s.transform="",e.getAttribute("style")||e.removeAttribute("style"))},to:function(e){if(i)return;const r=(c=t.direction(e),Math.round(100*c)/100);var c;r!==o&&(s.transform=n(r),o=r)},toggleActive:function(t){i=!t}}}function T(t,e,n,s,o,i,r,c,l){const a=f(o),u=p(h(f(o).reverse(),r[0]),n,!1).concat(p(h(a,e-r[0]-1),-n,!0));function d(t,e){return t.reduce(((t,e)=>t-o[e]),e)}function h(t,e){return t.reduce(((t,n)=>d(t,e)>0?t.concat([n]):t),[])}function p(o,r,a){const u=function(t){return i.map(((n,o)=>({start:n-s[o]+.5+t,end:n+e-.5+t})))}(r);return o.map((e=>{const s=a?0:-n,o=a?n:0,i=u[e][a?"end":"start"];return{index:e,loopPoint:i,slideLocation:M(-1),translate:R(t,l[e]),target:()=>c.get()>i?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 C(t,e,n){let s,o=!1;return{init:function(i){n&&(s=new MutationObserver((t=>{o||(c(n)||n(i,t))&&function(t){for(const n of t)if("childList"===n.type){i.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:B,startIndex:N,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),K=n.map(W.measure),X=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,B),q=X.measureSize(Y),Q=function(t){return{measure:function(e){return t*(e/100)}}}(q),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 r(t)?n[t](s):t(e,s,o)}}}(_,q),tt=!E&&!!H,et=E||!!H,{slideSizes:nt,slideSizesWithGaps:st,startGap:ot,endGap:it}=function(t,e,n,s,o,i){const{measureSize:r,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=i.getComputedStyle(h(s));return parseFloat(t.getPropertyValue(`margin-${l}`))}(),p=n.map(r),b=n.map(((t,e,n)=>{const s=!e,o=m(n,e);return s?p[e]+d:o?p[e]+f:n[e+1][c]-t[c]})).map(a);return{slideSizes:p,slideSizesWithGaps:b,startGap:d,endGap:f}}(X,Y,K,n,et,o),rt=function(t,e,n,s,o,r,c,l,u){const{startEdge:d,endEdge:m,direction:b}=t,g=i(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,i,f)=>{const g=h(n)||0,y=0===g,_=i===p(t),x=o[d]-r[g][d],v=o[d]-r[i][m],k=!s&&y?b(c):0,w=a(v-(!s&&_?b(l):0)-(x+k));return f&&w>e+u&&n.push(i),_&&n.push(t.length),n}),[]).map(((e,n,s)=>{const o=Math.max(s[n-1]||0);return t.slice(o,e)})):[]}(t)}}}(X,q,O,E,Y,K,ot,it,2),{snaps:ct,snapsAligned:lt}=function(t,e,n,s,o){const{startEdge:i,endEdge:r}=t,{groupSlides:c}=o,l=c(s).map((t=>h(t)[r]-t[0][i])).map(a).map(e.measure),u=s.map((t=>n[i]-t[i])).map((t=>-a(t))),d=c(u).map((t=>t[0])).map(((t,e)=>t+l[e]));return{snaps:u,snapsAligned:d}}(X,Z,Y,K,rt),at=-h(ct)+h(st),{snapsContained:ut,scrollContainLimit:dt}=function(t,e,n,s){const o=v(-e+t,0),i=n.map(((t,e)=>{const{min:s,max:i}=o,r=o.constrain(t),l=!e,a=m(n,e);return l?i:a||c(s,r)?s:c(i,r)?i:r})).map((t=>parseFloat(t.toFixed(3)))),r=function(){const t=i[0],e=h(i);return v(i.lastIndexOf(t),i.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 i;const{min:n,max:c}=r;return i.slice(n,c)}(),scrollContainLimit:r}}(q,at,lt,H),ft=tt?ut:lt,{limit:ht}=function(t,e,n){const s=e[0];return{limit:v(n?s-t:h(e),s)}}(at,ft,E),pt=k(p(ft),N,E),mt=pt.clone(),bt=f(n),gt=function(t,e,n,s){const o=x(),i=1e3/60;let r=null,c=0,l=0;function a(t){if(!l)return;r||(r=t,n(),n());const o=t-r;for(r=t,c+=o;c>=i;)n(),c-=i;s(c/i),l&&(l=e.requestAnimationFrame(a))}function u(){e.cancelAnimationFrame(l),r=null,c=0,l=0}return{init:function(){o.add(t,"visibilitychange",(()=>{t.hidden&&(r=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()})(Ct)),(t=>(({scrollBody:t,translate:e,location:n,offsetLocation:s,previousLocation:o,scrollLooper:i,slideLooper:r,dragHandler:c,animation:l,eventHandler:a,scrollBounds:u,options:{loop:d}},f)=>{const h=t.settled(),p=!u.shouldConstrain(),m=d?h:h&&p,b=m&&!c.pointerDown();b&&l.stop();const g=n.get()*f+o.get()*(1-f);s.set(g),d&&(i.loop(t.direction()),r.loop()),e.to(s.get()),b&&a.emit("settle"),m||a.emit("scroll")})(Ct,t))),yt=ft[pt.get()],_t=M(yt),xt=M(yt),vt=M(yt),kt=M(yt),wt=function(t,e,n,s,o){let i=0,r=0,c=o,l=.68,d=t.get(),f=0;function h(t){return c=t,m}function p(t){return l=t,m}const m={direction:function(){return r},duration:function(){return c},velocity:function(){return i},seek:function(){const e=s.get()-t.get();let o=0;return c?(n.set(t),i+=e/c,i*=l,d+=i,t.add(i),o=d-f):(i=0,n.set(s),t.set(s),o=e),r=u(o),f=d,m},settled:function(){return a(s.get()-e.get())<.001},useBaseFriction:function(){return p(.68)},useBaseDuration:function(){return h(o)},useFriction:p,useDuration:h};return m}(_t,vt,xt,kt,F),St=function(t,e,n,s,o){const{reachedAny:i,removeOffset:r,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 i=o.filter((t=>u(t)===s));return i.length?l(i):h(o)-n}return{byDistance:function(n,s){const l=o.get()+n,{index:u,distance:f}=function(n){const s=t?r(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:i}=o[0];return{index:i,distance:s}}(l),h=!t&&i(l);return!s||h?{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,ht,kt),jt=function(t,e,n,s,o,i,r){function c(o){const c=o.distance,l=o.index!==e.get();i.add(c),c&&(s.duration()?t.start():(t.update(),t.render(1),t.update())),l&&(n.set(e.get()),e.set(o.index),r.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,pt,mt,wt,St,kt,y),At=function(t){const{max:e,length:n}=t;return{get:function(t){return n?(t-e)/-n:0}}}(ht),Lt=x(),Mt=function(t,e,n,s){const o={};let i,r=null,c=null,l=!1;return{init:function(){i=new IntersectionObserver((t=>{l||(t.forEach((t=>{const n=e.indexOf(t.target);o[n]=t})),r=null,c=null,n.emit("slidesInView"))}),{root:t.parentElement,threshold:s}),e.forEach((t=>i.observe(t)))},destroy:function(){i&&i.disconnect(),l=!0},get:function(t=!0){if(t&&r)return r;if(!t&&c)return c;const e=function(t){return g(o).reduce(((e,n)=>{const s=parseInt(n),{isIntersecting:i}=o[s];return(t&&i||!t&&!i)&&e.push(s),e}),[])}(t);return t&&(r=e),t||(c=e),e}}}(e,n,y,D),{slideRegistry:Rt}=function(t,e,n,s,o,i){const{groupSlides:r}=o,{min:c,max:l}=s;return{slideRegistry:function(){const s=r(i);return 1===n.length?[i]:t&&"keepSnaps"!==e?s.slice(c,l).map(((t,e,n)=>{const s=!e,o=m(n,e);return s?b(h(n[0])+1):o?b(p(i)-h(n)[0]+1,h(n)[0]):t})):s}()}}(tt,H,ft,dt,rt,bt),Tt=function(t,e,n,s,o,r,l,a){const u={passive:!0,capture:!0};let d=0;function f(t){"Tab"===t.code&&(d=(new Date).getTime())}return{init:function(h){a&&(r.add(document,"keydown",f,!1),e.forEach(((e,f)=>{r.add(e,"focus",(e=>{(c(a)||a(h,e))&&function(e){if((new Date).getTime()-d>10)return;l.emit("slideFocusStart"),t.scrollLeft=0;const r=n.findIndex((t=>t.includes(e)));i(r)&&(o.useDuration(0),s.index(r,0),l.emit("slideFocus"))}(f)}),u)})))}}}(t,n,Rt,jt,wt,Lt,y,J),Ct={ownerDocument:s,ownerWindow:o,eventHandler:y,containerRect:Y,slideRects:K,animation:gt,axis:X,dragHandler:w(X,t,s,o,kt,S(X,o),_t,gt,jt,wt,St,pt,y,Q,I,$,P,.68,G),eventStore:Lt,percentOfView:Q,index:pt,indexPrevious:mt,limit:ht,location:_t,offsetLocation:vt,previousLocation:xt,options:l,resizeHandler:j(e,y,o,n,X,U,W),scrollBody:wt,scrollBounds:A(ht,vt,kt,wt,Q),scrollLooper:L(at,ht,vt,[_t,vt,xt,kt]),scrollProgress:At,scrollSnapList:ft.map(At.get),scrollSnaps:ft,scrollTarget:St,scrollTo:jt,slideLooper:T(X,q,at,nt,st,ct,ft,vt,n),slideFocus:Tt,slidesHandler:C(e,y,V),slidesInView:Mt,slideIndexes:bt,slideRegistry:Rt,slidesToScroll:rt,target:kt,translate:R(X,e)};return Ct}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 B={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(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,i=N(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()))}}}(i),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}=i,{on:h,off:p,emit:m}=a,b=M;let g,y,_,v,k=!1,w=u(B,E.globalOptions),S=u(w),j=[];function A(e){const n=z(t,_,v,s,o,e,a);return e.loop&&!n.slideLooper.canLoop()?A(Object.assign({},e,{loop:!1})):n}function L(e,n){k||(w=u(w,e),S=d(w),j=n||j,function(){const{container:e,slides:n}=S,s=r(e)?t.querySelector(e):e;_=s||t.children[0];const o=r(n)?_.querySelectorAll(n):n;v=[].slice.call(o||_.children)}(),g=A(S),f([w,...j.map((({options:t})=>t))]).forEach((t=>l.add(t,"change",M))),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,j)))}function M(t,e){const n=C();R(),L(u({startIndex:n},t),e),a.emit("reInit")}function R(){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 T(t,e,n){S.active&&!k&&(g.scrollBody.useBaseFriction().useDuration(!0===e?0:S.duration),g.scrollTo.index(t,n||0))}function C(){return g.index.get()}const F={canScrollNext:function(){return g.index.add(1).get()!==C()},canScrollPrev:function(){return g.index.add(-1).get()!==C()},containerNode:function(){return _},internalEngine:function(){return g},destroy:function(){k||(k=!0,l.clear(),R(),a.emit("destroy"),a.clear())},off:p,on:h,emit:m,plugins:function(){return y},previousScrollSnap:function(){return g.indexPrevious.get()},reInit:b,rootNode:function(){return t},scrollNext:function(t){T(g.index.add(1).get(),t,-1)},scrollPrev:function(t){T(g.index.add(-1).get(),t,1)},scrollProgress:function(){return g.scrollProgress.get(g.offsetLocation.get())},scrollSnapList:function(){return g.scrollSnapList},scrollTo:T,selectedScrollSnap:C,slideNodes:function(){return v},slidesInView:function(){return g.slidesInView.get()},slidesNotInView:function(){return g.slidesInView.get(!1)}};return L(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,i=()=>this.embla?.scrollTo(o);this.dotClickHandlers.push(i),t.addEventListener("click",i),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=class{constructor(e){t(this,e)}job;index=0;applyButtonText="Apply Now";showBrand=!0;showReference=!1;showEmploymentType=!0;multiLocationText="More locations";remoteLocationText="Remote";enableKilometers=!1;formatDistance(t){const e=this.enableKilometers?"Km":"Miles";return`${(this.enableKilometers?1.60934*t:t).toFixed(1)} ${e}`.replace(".0","")}render(){if(!this.job)return null;const t=function(t){const e=t.locations;if(e?.length)return e[0]}(this.job),e=t?(s=t).cityStateAbbr?s.cityStateAbbr:[s.streetAddress,s.city,s.stateAbbr||s.state,s.countryAbbr||s.country].filter(Boolean).join(", ")||s.locationText||"":"";var s;const o=t?.distance??0,i=o>0?this.formatDistance(o):"",r=this.job.applyURL||(this.job.originalURL?`${"undefined"!=typeof window?window.location.origin:""}${this.job.originalURL}`:"#"),c=`${this.applyButtonText}, ${this.job.title||""}`,l=this.job.locations??[],a=l.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:r,target:"_blank",rel:"noopener noreferrer"},this.job.title||""),this.showReference&&n("span",{class:"reference "+(this.job.reference?"":"empty")},this.job.reference||""),this.job.isRemote&&n("span",{class:this.remoteLocationText?"remote":"remote remote--empty"},this.remoteLocationText)),i&&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"},i))),n("div",{class:"results-list__item-content"},n("div",{class:"results-list__item-info"},n("div",{class:l.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"},e||"—")),a&&n("div",{class:"results-list__item-street--more-locations__wrapper"},n("span",{class:"results-list__item-street--amount"},"+",l.length-1),n("span",{class:"results-list__item-street--more-locations"},this.multiLocationText))),this.showBrand&&n("div",{class:this.job.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"},this.job.brandName||"—")),this.showEmploymentType&&n("div",{class:this.job.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"}))),(this.job.employmentType?.length?this.job.employmentType:["—"]).map((t=>n("span",{key:t,class:"results-list__item-employment-type--label"},t)))),(this.job.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:r,target:"_blank",rel:"noopener noreferrer","aria-label":c},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"}))))))}};I.style=".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}";const $=[{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"]}],D=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 $;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[]}renderJobItem(t,e){return n("jobs-item",{job:t,index:e,applyButtonText:this.applyButtonText,showBrand:this.showBrand,showReference:this.showReference,showEmploymentType:this.showEmploymentType,multiLocationText:this.multiLocationText,remoteLocationText:this.remoteLocationText,enableKilometers:this.enableKilometers})}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,i=!e&&0===s&&this.showSuggestions;return n("div",{key:"c22b59e35668df06633c8c11ae8a51b463e06b19",class:`jobs-list-root ${this.rootClass}`.trim()},n("div",{key:"e2b5b1bf68b75dd958b906c18c258faa8f4e1e25",class:"results-container"},n("div",{key:"923d2402d2951d9de47a69c5fd87a80fda382b6e",class:e?"loader":"loader hide","aria-hidden":!e}),s>0&&n("div",{key:"000c2c2d512f1b48999d628a2517701fc061dd11",class:"card"},n("ul",{key:"7028fc4f1b007eb9ff9bc205201af986c6d0a9ae",class:"results-list front"},t.map(((t,e)=>this.renderJobItem(t,e))))),o&&n("div",{key:"4f567c7ddbf7d393469886ce3b4865dcb9f4e761",class:"share-jobs__no-results"},n("h2",{key:"5f1ae77afeca0c37183dc681a9cc42eebaf0e510"},this.noResultsLine1),n("h3",{key:"6f8a754181cabf1befc6a9a4cf811417075af918"},this.noResultsLine2)),i&&n("div",{key:"a09cc45fbed615bb8672f8e77c2a8793efec2dc5",class:"card primary-color"},n("h4",{key:"9e53bb60ec086f42845d90c807dbd1cb6a88721d",class:"result-suggestions-title"},this.clearResultSuggestionsTitleText,":"),n("ul",{key:"0769ebd6367255dad56e688cd36a65cc41f1f366",class:"results-list front"},n("li",{key:"7032fc1d77ca040be7d2c949c7bc755c62ef4df3",class:"result-suggestions-line"},this.clearResultSuggestionsLine1),n("li",{key:"49e0c6d4cad62448abc42124708472d8c268c7d9",class:"result-suggestions-line"},this.clearResultSuggestionsLine2),n("li",{key:"ad76dbdad20e8de716613baa2bd1e745b6749fa7",class:"result-suggestions-line"},this.clearResultSuggestionsLine3),this.clearResultSuggestionsLine4&&n("li",{key:"b141b94ceeacd5de8fd430cc9e5e05063953130a",class:"result-suggestions-line"},this.clearResultSuggestionsLine4)))))}};D.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}.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,I as jobs_item,D as jobs_list_only}