@session-services/web-elements 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +11 -0
- package/README.md +101 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/index-C6e98Atu.js +1529 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/session-services-elements.cjs.js +25 -0
- package/dist/cjs/session-services-ticketing.cjs.entry.js +1953 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/session-services-ticketing/session-services-ticketing.css +879 -0
- package/dist/collection/components/session-services-ticketing/session-services-ticketing.js +708 -0
- package/dist/collection/index.js +11 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +1311 -0
- package/dist/components/session-services-ticketing.d.ts +11 -0
- package/dist/components/session-services-ticketing.js +1995 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/index-CeXOR4aK.js +1521 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/session-services-elements.js +21 -0
- package/dist/esm/session-services-ticketing.entry.js +1951 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/session-services-elements/index.esm.js +0 -0
- package/dist/session-services-elements/p-9ca1f04b.entry.js +1 -0
- package/dist/session-services-elements/p-CeXOR4aK.js +2 -0
- package/dist/session-services-elements/p-DQuL1Twl.js +1 -0
- package/dist/session-services-elements/session-services-elements.esm.js +1 -0
- package/dist/sst-env.d.ts +9 -0
- package/dist/types/components/session-services-ticketing/session-services-ticketing.d.ts +64 -0
- package/dist/types/components.d.ts +111 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/stencil-public-runtime.d.ts +1799 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +101 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=(e,t)=>{var n;Object.entries(null!=(n=t.o.t)?n:{}).map((([n,[o]])=>{if(31&o||32&o){const o=e[n],l=function(e,t){for(;e;){const n=Object.getOwnPropertyDescriptor(e,t);if(null==n?void 0:n.get)return n;e=Object.getPrototypeOf(e)}}(Object.getPrototypeOf(e),n)||Object.getOwnPropertyDescriptor(e,n);l&&Object.defineProperty(e,n,{get(){return l.get.call(this)},set(e){l.set.call(this,e)},configurable:!0,enumerable:!0}),e[n]=t.l.has(n)?t.l.get(n):o}}))},n=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},o=(e,n)=>{n&&(e.__stencil__getHostRef=()=>n,n.i=e,512&n.o.u&&t(e,n))},l=(e,t)=>t in e,i=(e,t)=>(0,console.error)(e,t),s=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a={u:0,h:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),h=!!d&&(()=>!!u.document&&Object.getOwnPropertyDescriptor(u.document.adoptedStyleSheets,"length").writable)(),p=!1,m=[],v=[],b=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&a.u?$(w):a.raf(w))},y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){i(e)}e.length=0},w=()=>{y(m),y(v),(p=m.length>0)&&a.raf(w)},$=e=>f().then(e),g=b(v,!0),j=e=>"object"==(e=typeof e)||"function"===e;function S(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value};function P(){const e=this.attachShadow({mode:"open"});void 0===C&&(C=null),C&&(h?e.adoptedStyleSheets.push(C):e.adoptedStyleSheets=[...e.adoptedStyleSheets,C])}var R=new WeakMap,D=e=>"sc-"+e.p,U=(e,t,...n)=>{let o=null,l=null,i=!1,s=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof e&&!j(o))&&(o+=""),i&&s?r[r.length-1].m+=o:r.push(i?W(null,o):o),s=i)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,N);const u=W(e,null);return u.v=t,r.length>0&&(u.$=r),u.j=l,u},W=(e,t)=>({u:0,S:e,m:t,O:null,$:null,v:null,j:null}),A={},N={forEach:(e,t)=>e.map(H).forEach(t),map:(e,t)=>e.map(H).map(t).map(L)},H=e=>({vattrs:e.v,vchildren:e.$,vkey:e.j,vname:e.k,vtag:e.S,vtext:e.m}),L=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),U(e.vtag,t,...e.vchildren||[])}const t=W(e.vtag,e.vtext);return t.v=e.vattrs,t.$=e.vchildren,t.j=e.vkey,t.k=e.vname,t},T=e=>{const t=(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(e);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};T("::slotted"),T(":host"),T(":host-context");var z,V=(e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e,q=(e,t)=>{const o=(e=>{var t;return null==(t=n(e))?void 0:t.$hostElement$})(e);return{emit:e=>F(o,t,{bubbles:!0,composed:!0,cancelable:!0,detail:e})}},F=(e,t,n)=>{const o=a.ce(t,n);return e.dispatchEvent(o),o},G=(e,t,n,o,i,s)=>{if(n===o)return;let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=Y(n);let i=Y(o);t.remove(...l.filter((e=>e&&!i.includes(e)))),t.add(...i.filter((e=>e&&!l.includes(e))))}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((r||l&&null!==o)&&!i)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||i)&&!l&&1===e.nodeType&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(_);t=t.replace(B,""),n&&a.rel(e,t,n,l),o&&a.ael(e,t,o,l)}},I=/\s/,Y=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(I):[]),_="Capture",B=RegExp(_+"$"),J=(e,t,n)=>{const o=11===t.O.nodeType&&t.O.host?t.O.host:t.O,l=e&&e.v||{},i=t.v||{};for(const e of K(Object.keys(l)))e in i||G(o,e,l[e],void 0,n,t.u);for(const e of K(Object.keys(i)))G(o,e,l[e],i[e],n,t.u)};function K(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var Q=!1,X=(e,t,n)=>{const o=t.$[n];let l,i,s=0;if(null!==o.m)l=o.O=u.document.createTextNode(o.m);else{if(Q||(Q="svg"===o.S),!u.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.O=u.document.createElementNS(Q?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.S),Q&&"foreignObject"===o.S&&(Q=!1),J(null,o,Q),o.$)for(s=0;s<o.$.length;++s)i=X(e,o,s),i&&l.appendChild(i);"svg"===o.S?Q=!1:"foreignObject"===l.tagName&&(Q=!0)}return l["s-hn"]=z,l},Z=(e,t,n,o,l,i)=>{let s,r=e;for(r.shadowRoot&&r.tagName===z&&(r=r.shadowRoot);l<=i;++l)o[l]&&(s=X(null,n,l),s&&(o[l].O=s,oe(r,s,t)))},ee=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.O;e&&e.remove()}}},te=(e,t,n=!1)=>e.S===t.S&&(n?(n&&!e.j&&t.j&&(e.j=t.j),!0):e.j===t.j),ne=(e,t,n=!1)=>{const o=t.O=e.O,l=e.$,i=t.$,s=t.S,r=t.m;null===r?(J(e,t,Q="svg"===s||"foreignObject"!==s&&Q),null!==l&&null!==i?((e,t,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,a=0,f=t.length-1,d=t[0],h=t[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==d)d=t[++r];else if(null==h)h=t[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(te(d,m,l))ne(d,m,l),d=t[++r],m=o[++c];else if(te(h,v,l))ne(h,v,l),h=t[--f],v=o[--p];else if(te(d,v,l))ne(d,v,l),oe(e,d.O,h.O.nextSibling),d=t[++r],v=o[--p];else if(te(h,m,l))ne(h,m,l),oe(e,h.O,d.O),h=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].j&&t[a].j===m.j){u=a;break}u>=0?(s=t[u],s.S!==m.S?i=X(t&&t[c],n,u):(ne(s,m,l),t[u]=void 0,i=s.O),m=o[++c]):(i=X(t&&t[c],n,c),m=o[++c]),i&&oe(d.O.parentNode,i,d.O)}r>f?Z(e,null==o[p+1]?null:o[p+1].O,n,o,c,p):c>p&&ee(t,r,f)})(o,l,t,i,n):null!==i?(null!==e.m&&(o.textContent=""),Z(o,null,t,i,0,i.length-1)):!n&&null!==l&&ee(l,0,l.length-1),Q&&"svg"===s&&(Q=!1)):e.m!==r&&(o.data=r)},oe=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),le=(e,t)=>{if(t&&!e.C&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.C=()=>{t["s-p"].splice(n-1,1),o()})))}},ie=(e,t)=>{if(e.u|=16,4&e.u)return void(e.u|=512);le(e,e.M);const n=()=>se(e,t);if(!t)return g(n);queueMicrotask((()=>{n()}))},se=(e,t)=>{const n=e.$hostElement$,o=e.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 t?(e.P.length&&e.P.forEach((e=>e(n))),l=he(o,"componentWillLoad",void 0,n)):l=he(o,"componentWillUpdate",void 0,n),l=re(l,(()=>he(o,"componentWillRender",void 0,n))),re(l,(()=>ue(e,o,t)))},re=(e,t)=>ce(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ce=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ue=async(e,t,n)=>{var o;const l=e.$hostElement$,i=l["s-rc"];n&&(e=>{const t=e.o,n=e.$hostElement$,o=t.u,l=((e,t)=>{var n;const o=D(t),l=r.get(o);if(!u.document)return o;if(e=11===e.nodeType?e:u.document,l)if("string"==typeof l){let i,s=R.get(e=e.head||e);if(s||R.set(e,s=new Set),!s.has(o)){{i=u.document.createElement("style"),i.innerHTML=l;const o=null!=(n=a.R)?n:S(u.document);if(null!=o&&i.setAttribute("nonce",o),!(1&t.u))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(i,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(l),h?e.adoptedStyleSheets.unshift(t):e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(i)}else e.append(i);1&t.u&&e.insertBefore(i,null)}4&t.u&&(i.innerHTML+=c),s&&s.add(o)}}else e.adoptedStyleSheets.includes(l)||(h?e.adoptedStyleSheets.push(l):e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);ae(e,t,l,n),i&&(i.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>fe(e);0===t.length?n():(Promise.all(t).then(n),e.u|=4,t.length=0)}},ae=(e,t,n,o)=>{try{t=t.render(),e.u&=-17,e.u|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.D||W(null,null),i=(e=>e&&e.S===A)(t)?t:U(null,null,t);if(z=o.tagName,n&&i.v)for(const e of Object.keys(i.v))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.v[e]=o[e]);i.S=null,i.u|=4,e.D=i,i.O=l.O=o.shadowRoot||o,ne(l,i,n)})(e,t,o)}catch(t){i(t,e.$hostElement$)}return null},fe=e=>{const t=e.$hostElement$,n=e.i,o=e.M;he(n,"componentDidRender",void 0,t),64&e.u?he(n,"componentDidUpdate",void 0,t):(e.u|=64,pe(t),he(n,"componentDidLoad",void 0,t),e.U(t),o||de()),e.C&&(e.C(),e.C=void 0),512&e.u&&$((()=>ie(e,!1))),e.u&=-517},de=()=>{$((()=>F(u,"appload",{detail:{namespace:"session-services-elements"}})))},he=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){i(e,o)}},pe=e=>e.classList.add("hydrated"),me=(e,t,o,l)=>{const s=n(e);if(!s)return;if(!s)throw Error(`Couldn't find host element for "${l.p}" 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 r=s.$hostElement$,c=s.l.get(t),u=s.u,a=s.i;if(o=V(o,l.t[t][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(s.l.set(t,o),a)){if(l.W&&128&u){const e=l.W[t];e&&e.map((e=>{try{a[e](o,c,t)}catch(e){i(e,r)}}))}if(2==(18&u)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(o,c,t))return;ie(s,!1)}}},ve=(e,t,o)=>{var l,i;const s=e.prototype;{e.watchers&&!t.W&&(t.W=e.watchers),e.deserializers&&!t.A&&(t.A=e.deserializers),e.serializers&&!t.N&&(t.N=e.serializers);const r=Object.entries(null!=(l=t.t)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,e)||{};i&&(t.t[e][0]|=2048),r&&(t.t[e][0]|=4096),(1&o||!i)&&Object.defineProperty(s,e,{get(){{if(!(2048&t.t[e][0]))return((e,t)=>n(this).l.get(t))(0,e);const o=n(this),l=o?o.i:s;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,e,{set(i){const s=n(this);if(s){if(r)return void 0===(32&l?this[e]:s.$hostElement$[e])&&s.l.get(e)&&(i=s.l.get(e)),r.call(this,V(i,l)),void me(this,e,i=32&l?this[e]:s.$hostElement$[e],t);{if(!(1&o&&4096&t.t[e][0]))return me(this,e,i,t),void(1&o&&!s.i&&s.P.push((()=>{4096&t.t[e][0]&&s.i[e]!==s.l.get(e)&&(s.i[e]=i)})));const n=()=>{const n=s.i[e];!s.l.get(e)&&n&&s.l.set(e,n),s.i[e]=V(i,l),me(this,e,s.i[e],t)};s.i?n():s.P.push((()=>{n()}))}}}})}})),1&o){const o=new Map;s.attributeChangedCallback=function(e,l,i){a.jmp((()=>{var c;const u=o.get(e),a=n(this);if(this.hasOwnProperty(u)&&(i=this[u],delete this[u]),s.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==i)return;if(null==u){const n=null==a?void 0:a.u;if(a&&n&&!(8&n)&&128&n&&i!==l){const n=a.i,o=null==(c=t.W)?void 0:c[e];null==o||o.forEach((t=>{null!=n[t]&&n[t].call(n,i,l,e)}))}return}const f=r.find((([e])=>e===u));f&&4&f[1][0]&&(i=null!==i&&"false"!==i);const d=Object.getOwnPropertyDescriptor(s,u);i==this[u]||d.get&&!d.set||(this[u]=i)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.W)?i:{}),...r.filter((([e,t])=>31&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},be=(e,t)=>{he(e,"connectedCallback",void 0,t)},ye=(e,t)=>{he(e,"disconnectedCallback",void 0,t||e)},we=(e,t={})=>{var o;if(!u.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const l=[],f=t.exclude||[],h=u.customElements,p=u.document.head,m=p.querySelector("meta[charset]"),v=u.document.createElement("style"),b=[];let y,w=!0;Object.assign(a,t),a.h=new URL(t.resourcesUrl||"./",u.document.baseURI).href;let $=!1;if(e.map((e=>{e[1].map((t=>{var o,c,u;const p={u:t[0],p:t[1],t:t[2],H:t[3]};4&p.u&&($=!0),p.t=t[2],p.W=null!=(o=t[4])?o:{},p.N=null!=(c=t[5])?c:{},p.A=null!=(u=t[6])?u:{};const m=p.p,v=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const n={u:0,$hostElement$:e,o:t,l:new Map,L:new Map};n.T=new Promise((e=>n.U=e)),e["s-p"]=[],e["s-rc"]=[],n.P=[];const o=n;e.__stencil__getHostRef=()=>o})(e=this,p),1&p.u)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${p.p}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else P.call(e,p)}connectedCallback(){n(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),y&&(clearTimeout(y),y=null),w?b.push(this):a.jmp((()=>(e=>{if(!(1&a.u)){const t=n(e);if(!t)return;const o=t.o,l=()=>{};if(1&t.u)(null==t?void 0:t.i)?be(t.i,e):(null==t?void 0:t.T)&&t.T.then((()=>be(t.i,e)));else{t.u|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){le(t,t.M=n);break}}o.t&&Object.entries(o.t).map((([t,[n]])=>{if(31&n&&t in e&&e[t]!==Object.prototype[t]){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.u)){if(t.u|=32,n.V){const l=((e,t)=>{const n=e.p.replace(/-/g,"_"),o=e.V;if(!o)return;const l=s.get(o);return l?l[n]:import(`./${o}.entry.js`).then((e=>(s.set(o,e),e[n])),(e=>{i(e,t.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(l&&"then"in l){const e=()=>{};o=await l,e()}else o=l;if(!o)throw Error(`Constructor for "${n.p}#${t.q}" was not found`);o.isProxied||(n.W=o.watchers,n.N=o.serializers,n.A=o.deserializers,ve(o,n,2),o.isProxied=!0);const r=()=>{};t.u|=8;try{new o(t)}catch(t){i(t,e)}t.u&=-9,t.u|=128,r(),be(t.i,e)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.u|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=D(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.u)),o()}}}const l=t.M,c=()=>ie(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this))))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.u)){const t=n(e);(null==t?void 0:t.i)?ye(t.i,e):(null==t?void 0:t.T)&&t.T.then((()=>ye(t.i,e)))}R.has(e)&&R.delete(e),e.shadowRoot&&R.has(e.shadowRoot)&&R.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const t=n(this);if(!t)return;const o=b.findIndex((e=>e===this));o>-1&&b.splice(o,1),(null==(e=null==t?void 0:t.D)?void 0:e.O)instanceof Node&&!t.D.O.isConnected&&delete t.D.O}))}componentOnReady(){var e;return null==(e=n(this))?void 0:e.T}};p.V=e[0],f.includes(m)||h.get(m)||(l.push(m),h.define(m,ve(v,p,1)))}))})),l.length>0&&($&&(v.textContent+=c),v.textContent+=l.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=a.R)?o:S(u.document);null!=e&&v.setAttribute("nonce",e),p.insertBefore(v,m?m.nextSibling:p.firstChild)}w=!1,b.length?b.map((e=>e.connectedCallback())):a.jmp((()=>y=setTimeout(de,30)))},$e=e=>a.R=e;export{A as H,we as b,q as c,U as h,f as p,o as r,$e as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=()=>{};export{o as g}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e,b as t}from"./p-CeXOR4aK.js";export{s as setNonce}from"./p-CeXOR4aK.js";import{g as n}from"./p-DQuL1Twl.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["p-9ca1f04b",[[769,"session-services-ticketing",{tenantId:[1,"tenant-id"],eventId:[1,"event-id"],apiUrl:[1,"api-url"],locale:[1],returnUrl:[1,"return-url"],theme:[1],enableAnalytics:[4,"enable-analytics"],debugAnalytics:[4,"debug-analytics"],event:[32],selectedItems:[32],quote:[32],loading:[32],error:[32],quoteLoading:[32],quoteError:[32],checkoutLoading:[32],currentTheme:[32]},null,{tenantId:["propsChanged"],eventId:["propsChanged"],apiUrl:["propsChanged"],theme:["themeChanged"]}]]]],e))));
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { DetailedEvent, OrderQuote } from "@session-services/sdk/schemas";
|
|
2
|
+
import { type EventEmitter } from "../../stencil-public-runtime";
|
|
3
|
+
export declare class SessionsTicketing {
|
|
4
|
+
tenantId: string;
|
|
5
|
+
eventId: string;
|
|
6
|
+
apiUrl: string;
|
|
7
|
+
locale: string;
|
|
8
|
+
returnUrl?: string;
|
|
9
|
+
theme: "light" | "dark" | "system";
|
|
10
|
+
enableAnalytics: boolean;
|
|
11
|
+
debugAnalytics: boolean;
|
|
12
|
+
event: DetailedEvent | null;
|
|
13
|
+
selectedItems: Map<string, number>;
|
|
14
|
+
quote: OrderQuote | null;
|
|
15
|
+
loading: boolean;
|
|
16
|
+
error: string | null;
|
|
17
|
+
quoteLoading: boolean;
|
|
18
|
+
quoteError: string | null;
|
|
19
|
+
checkoutLoading: boolean;
|
|
20
|
+
currentTheme: "light" | "dark";
|
|
21
|
+
checkoutInit: EventEmitter<{
|
|
22
|
+
orderId: string;
|
|
23
|
+
checkoutUrl: string;
|
|
24
|
+
}>;
|
|
25
|
+
cartUpdate: EventEmitter<OrderQuote>;
|
|
26
|
+
errorOccurred: EventEmitter<{
|
|
27
|
+
error: string;
|
|
28
|
+
}>;
|
|
29
|
+
private client;
|
|
30
|
+
private analytics?;
|
|
31
|
+
private mediaQueryList?;
|
|
32
|
+
private requestId;
|
|
33
|
+
componentWillLoad(): Promise<void>;
|
|
34
|
+
propsChanged(): Promise<void>;
|
|
35
|
+
themeChanged(): void;
|
|
36
|
+
disconnectedCallback(): void;
|
|
37
|
+
private initializeComponent;
|
|
38
|
+
private setupTheme;
|
|
39
|
+
private handleSystemThemeChange;
|
|
40
|
+
private trackEvent;
|
|
41
|
+
private loadEventData;
|
|
42
|
+
private updateQuantity;
|
|
43
|
+
private updateQuote;
|
|
44
|
+
private initiateCheckout;
|
|
45
|
+
private formatDateTimeRange;
|
|
46
|
+
private formatPriceValue;
|
|
47
|
+
private handleQuantityDecrease;
|
|
48
|
+
private handleQuantityIncrease;
|
|
49
|
+
private renderQuantityControls;
|
|
50
|
+
private renderEventTimeAndLocation;
|
|
51
|
+
private renderPriceAndControls;
|
|
52
|
+
private renderAdmission;
|
|
53
|
+
private renderSectionHeader;
|
|
54
|
+
private renderSectionWithAdmissions;
|
|
55
|
+
private renderLoadingState;
|
|
56
|
+
private renderErrorState;
|
|
57
|
+
private renderNotFoundState;
|
|
58
|
+
private renderOrderSummaryItems;
|
|
59
|
+
private isCheckoutDisabled;
|
|
60
|
+
private getCheckoutButtonText;
|
|
61
|
+
private renderOrderSummary;
|
|
62
|
+
private renderTicketSections;
|
|
63
|
+
render(): any;
|
|
64
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { OrderQuote } from "@session-services/sdk/schemas";
|
|
9
|
+
export { OrderQuote } from "@session-services/sdk/schemas";
|
|
10
|
+
export namespace Components {
|
|
11
|
+
interface SessionServicesTicketing {
|
|
12
|
+
/**
|
|
13
|
+
* @default "https://api.session.services"
|
|
14
|
+
*/
|
|
15
|
+
"apiUrl": string;
|
|
16
|
+
/**
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
"debugAnalytics": boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
"enableAnalytics": boolean;
|
|
24
|
+
"eventId": string;
|
|
25
|
+
/**
|
|
26
|
+
* @default "en-US"
|
|
27
|
+
*/
|
|
28
|
+
"locale": string;
|
|
29
|
+
"returnUrl"?: string;
|
|
30
|
+
"tenantId": string;
|
|
31
|
+
/**
|
|
32
|
+
* @default "system"
|
|
33
|
+
*/
|
|
34
|
+
"theme": "light" | "dark" | "system";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export interface SessionServicesTicketingCustomEvent<T> extends CustomEvent<T> {
|
|
38
|
+
detail: T;
|
|
39
|
+
target: HTMLSessionServicesTicketingElement;
|
|
40
|
+
}
|
|
41
|
+
declare global {
|
|
42
|
+
interface HTMLSessionServicesTicketingElementEventMap {
|
|
43
|
+
"checkoutInit": {
|
|
44
|
+
orderId: string;
|
|
45
|
+
checkoutUrl: string;
|
|
46
|
+
};
|
|
47
|
+
"cartUpdate": OrderQuote;
|
|
48
|
+
"errorOccurred": { error: string };
|
|
49
|
+
}
|
|
50
|
+
interface HTMLSessionServicesTicketingElement extends Components.SessionServicesTicketing, HTMLStencilElement {
|
|
51
|
+
addEventListener<K extends keyof HTMLSessionServicesTicketingElementEventMap>(type: K, listener: (this: HTMLSessionServicesTicketingElement, ev: SessionServicesTicketingCustomEvent<HTMLSessionServicesTicketingElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
52
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
53
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
54
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
55
|
+
removeEventListener<K extends keyof HTMLSessionServicesTicketingElementEventMap>(type: K, listener: (this: HTMLSessionServicesTicketingElement, ev: SessionServicesTicketingCustomEvent<HTMLSessionServicesTicketingElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
56
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
57
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
58
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
59
|
+
}
|
|
60
|
+
var HTMLSessionServicesTicketingElement: {
|
|
61
|
+
prototype: HTMLSessionServicesTicketingElement;
|
|
62
|
+
new (): HTMLSessionServicesTicketingElement;
|
|
63
|
+
};
|
|
64
|
+
interface HTMLElementTagNameMap {
|
|
65
|
+
"session-services-ticketing": HTMLSessionServicesTicketingElement;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
declare namespace LocalJSX {
|
|
69
|
+
interface SessionServicesTicketing {
|
|
70
|
+
/**
|
|
71
|
+
* @default "https://api.session.services"
|
|
72
|
+
*/
|
|
73
|
+
"apiUrl"?: string;
|
|
74
|
+
/**
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
"debugAnalytics"?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* @default true
|
|
80
|
+
*/
|
|
81
|
+
"enableAnalytics"?: boolean;
|
|
82
|
+
"eventId": string;
|
|
83
|
+
/**
|
|
84
|
+
* @default "en-US"
|
|
85
|
+
*/
|
|
86
|
+
"locale"?: string;
|
|
87
|
+
"onCartUpdate"?: (event: SessionServicesTicketingCustomEvent<OrderQuote>) => void;
|
|
88
|
+
"onCheckoutInit"?: (event: SessionServicesTicketingCustomEvent<{
|
|
89
|
+
orderId: string;
|
|
90
|
+
checkoutUrl: string;
|
|
91
|
+
}>) => void;
|
|
92
|
+
"onErrorOccurred"?: (event: SessionServicesTicketingCustomEvent<{ error: string }>) => void;
|
|
93
|
+
"returnUrl"?: string;
|
|
94
|
+
"tenantId": string;
|
|
95
|
+
/**
|
|
96
|
+
* @default "system"
|
|
97
|
+
*/
|
|
98
|
+
"theme"?: "light" | "dark" | "system";
|
|
99
|
+
}
|
|
100
|
+
interface IntrinsicElements {
|
|
101
|
+
"session-services-ticketing": SessionServicesTicketing;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
export { LocalJSX as JSX };
|
|
105
|
+
declare module "@stencil/core" {
|
|
106
|
+
export namespace JSX {
|
|
107
|
+
interface IntrinsicElements {
|
|
108
|
+
"session-services-ticketing": LocalJSX.SessionServicesTicketing & JSXBase.HTMLAttributes<HTMLSessionServicesTicketingElement>;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview entry point for your component library
|
|
3
|
+
*
|
|
4
|
+
* This is the entry point for your component library. Use this file to export utilities,
|
|
5
|
+
* constants or data structure that accompany your components.
|
|
6
|
+
*
|
|
7
|
+
* DO NOT use this file to export your components. Instead, use the recommended approaches
|
|
8
|
+
* to consume components of this package as outlined in the `README.md`.
|
|
9
|
+
*/
|