@saasquatch/mint-components 1.11.1-10 → 1.11.1-11
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/dist/cjs/{ShadowViewAddon-af975b90.js → ShadowViewAddon-79c07eba.js} +6 -1
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +1 -1
- package/dist/collection/components/sqm-share-button/useShareButton.js +6 -1
- package/dist/esm/{ShadowViewAddon-faef41b7.js → ShadowViewAddon-4da4fdfb.js} +6 -1
- package/dist/esm/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/ShadowViewAddon-4da4fdfb.js +1 -0
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-56760017.entry.js → p-1a9d1ab7.entry.js} +1 -1
- package/dist/mint-components/p-5fc8d87c.system.js +1 -1
- package/dist/mint-components/p-6f3efdb3.system.entry.js +1 -0
- package/dist/mint-components/{p-650f6529.system.entry.js → p-a0e5ce9c.system.entry.js} +1 -1
- package/dist/mint-components/p-b15294d0.system.js +1 -0
- package/dist/mint-components/{p-e11adbe0.entry.js → p-c7d387f7.entry.js} +1 -1
- package/dist/mint-components/{p-baaf39b8.js → p-f177d285.js} +1 -1
- package/dist/mint-components/{p-3d6d95f0.entry.js → p-f8d3cb7a.entry.js} +1 -1
- package/dist/mint-components/{p-85e74fae.system.entry.js → p-fa88b63b.system.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-faef41b7.js +0 -1
- package/dist/mint-components/p-b80a5030.system.js +0 -1
- package/dist/mint-components/p-ee284980.system.entry.js +0 -1
|
@@ -31,7 +31,7 @@ import{h as e,c as a,d as l,g as t}from"./p-64c3217a.js";import{k as r,b as i,u
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
`;function ee(e,a){return e?window.open(e):alert(a)}function ae(e){var a,l;const{sharetitle:t,sharetext:r,medium:i}=e,s=e.programId?e.programId:d(),o=c(),n={engagementMedium:m(),programId:s,shareMedium:i.toUpperCase()},f=u(y),h=null==f?void 0:f[i],b=p(Y,n,!(null==o?void 0:o.jwt)||!s||void 0!==h),[x,C]=v(w),q=(null==h?void 0:h.shareLink)||(null===(l=null===(a=null==b?void 0:b.data)||void 0===a?void 0:a.viewer)||void 0===l?void 0:l.shareLink),R=g(),$="SMS"===i.toLocaleUpperCase()&&void 0===window.orientation||"DIRECT"===i.toLocaleUpperCase()&&!window.navigator.share;return{...e,loading:b.loading,onClick:function(){var a,l,s,o;h&&x(!0),"FACEBOOK"===i.toLocaleUpperCase()&&"SquatchAndroid"===R.type?function(e,a,l){"undefined"===a||"undefined"===e?alert(l):void 0!==SquatchAndroid.shareOnFacebook?SquatchAndroid.shareOnFacebook(e,a):ee(a,l)}(q,(null==h?void 0:h.messageLink)||(null===(l=null===(a=b.data)||void 0===a?void 0:a.viewer)||void 0===l?void 0:l.messageLink),e.errorText):"DIRECT"===i.toLocaleUpperCase()?function(e,a,l,t){const r=e.sharetitle||"Share title",i=e.sharetext||"Share text";if("undefined"===a)return alert(l);window.navigator.share?window.navigator.share({title:r,text:i,url:a}).catch((e=>console.error("Error on web share",e))):alert(t)}({sharetitle:t,sharetext:r},q,e.errorText,e.unsupportedPlatformText):ee((null==h?void 0:h.messageLink)||(null===(o=null===(s=b.data)||void 0===s?void 0:s.viewer)||void 0===o?void 0:o.messageLink),e.errorText)},hide:$}}const le=i("sq:useBigStat"),te=(e,a,l)=>{const t=p(e,a);return(null==t?void 0:t.data)||t.loading||console.error("issue getting stat:",t),{...l(t),loading:t.loading}},re={prettyValue:"UNIT_FORMATTED",value:"NUMBER_UNFORMATTED"},ie={rewardsAssigned:{label:"Rewards Earned",query:(e,a,l,t,r="")=>te(n.gql`
|
|
34
|
+
`;function ee(e,a){return e?window.open(e):alert(a)}function ae(e){var a,l;const{sharetitle:t,sharetext:r,medium:i}=e,s=e.programId?e.programId:d(),o=c(),n={engagementMedium:m(),programId:s,shareMedium:i.toUpperCase()},f=u(y),h=null==f?void 0:f[i],b=p(Y,n,!(null==o?void 0:o.jwt)||!s||void 0!==h),[x,C]=v(w),q=(null==h?void 0:h.shareLink)||(null===(l=null===(a=null==b?void 0:b.data)||void 0===a?void 0:a.viewer)||void 0===l?void 0:l.shareLink),R=g(),$="SMS"===i.toLocaleUpperCase()&&void 0===window.orientation||"DIRECT"===i.toLocaleUpperCase()&&!window.navigator.share;return{...e,loading:b.loading&&!(null==h?void 0:h.messageLink),onClick:function(){var a,l,s,o;h&&x(!0),"FACEBOOK"===i.toLocaleUpperCase()&&"SquatchAndroid"===R.type?function(e,a,l){"undefined"===a||"undefined"===e?alert(l):void 0!==SquatchAndroid.shareOnFacebook?SquatchAndroid.shareOnFacebook(e,a):ee(a,l)}(q,(null==h?void 0:h.messageLink)||(null===(l=null===(a=b.data)||void 0===a?void 0:a.viewer)||void 0===l?void 0:l.messageLink),e.errorText):"DIRECT"===i.toLocaleUpperCase()?function(e,a,l,t){const r=e.sharetitle||"Share title",i=e.sharetext||"Share text";if("undefined"===a)return alert(l);window.navigator.share?window.navigator.share({title:r,text:i,url:a}).catch((e=>console.error("Error on web share",e))):alert(t)}({sharetitle:t,sharetext:r},q,e.errorText,e.unsupportedPlatformText):ee((null==h?void 0:h.messageLink)||(null===(o=null===(s=b.data)||void 0===s?void 0:s.viewer)||void 0===o?void 0:o.messageLink),e.errorText)},hide:$}}const le=i("sq:useBigStat"),te=(e,a,l)=>{const t=p(e,a);return(null==t?void 0:t.data)||t.loading||console.error("issue getting stat:",t),{...l(t),loading:t.loading}},re={prettyValue:"UNIT_FORMATTED",value:"NUMBER_UNFORMATTED"},ie={rewardsAssigned:{label:"Rewards Earned",query:(e,a,l,t,r="")=>te(n.gql`
|
|
35
35
|
query (
|
|
36
36
|
$programId: ID
|
|
37
37
|
$type: RewardType
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,h as t,c as s}from"./p-64c3217a.js";import{n as r,f as a,k as n,i,u as o,m as l,b as d,j as c}from"./p-fd2c5407.js";import{i as u}from"./p-9c3d78e9.js";import{i as h,_ as m,d as p,Q as v,H as g,$ as f,y as b,B as y,L as x,g as w,e as k,p as C,q as E,x as S,u as I,r as R,S as M}from"./p-00be5090.js";import{j as q}from"./p-e7e129ac.js";import{g as _,a as T,s as N}from"./p-9ec99ced.js";import{c as A}from"./p-cef45012.js";import{C as P}from"./p-f5e1e208.js";import{c as L}from"./p-c1086930.js";import"./p-02be1a88.js";import{a as $}from"./p-8077e9c6.js";import{u as D}from"./p-6b0e6a6c.js";import"./p-251e7567.js";import"./p-5d0c9424.js";import{p as V}from"./p-8d363802.js";import{R as F,u as j}from"./p-d666b326.js";import{i as B}from"./p-bd4e9c2b.js";import{A as z}from"./p-121cdc60.js";import{b as U,U as O,B as H,O as W,J as G,C as Z,K,D as Y,E as X,H as J,I as Q,V as ee,L as te,N as se,d as re,i as ae,P as ne,e as ie,f as oe,R as le,W as de,j as ce,a as ue,S as he,u as me,c as pe,T as ve}from"./p-
|
|
1
|
+
import{r as e,h as t,c as s}from"./p-64c3217a.js";import{n as r,f as a,k as n,i,u as o,m as l,b as d,j as c}from"./p-fd2c5407.js";import{i as u}from"./p-9c3d78e9.js";import{i as h,_ as m,d as p,Q as v,H as g,$ as f,y as b,B as y,L as x,g as w,e as k,p as C,q as E,x as S,u as I,r as R,S as M}from"./p-00be5090.js";import{j as q}from"./p-e7e129ac.js";import{g as _,a as T,s as N}from"./p-9ec99ced.js";import{c as A}from"./p-cef45012.js";import{C as P}from"./p-f5e1e208.js";import{c as L}from"./p-c1086930.js";import"./p-02be1a88.js";import{a as $}from"./p-8077e9c6.js";import{u as D}from"./p-6b0e6a6c.js";import"./p-251e7567.js";import"./p-5d0c9424.js";import{p as V}from"./p-8d363802.js";import{R as F,u as j}from"./p-d666b326.js";import{i as B}from"./p-bd4e9c2b.js";import{A as z}from"./p-121cdc60.js";import{b as U,U as O,B as H,O as W,J as G,C as Z,K,D as Y,E as X,H as J,I as Q,V as ee,L as te,N as se,d as re,i as ae,P as ne,e as ie,f as oe,R as le,W as de,j as ce,a as ue,S as he,u as me,c as pe,T as ve}from"./p-f177d285.js";import"./p-c7fd9e16.js";const ge=class{constructor(t){e(this,t),this.flexReverse=!1,this.ignored=!0,r(this)}disconnectedCallback(){}render(){var e;const{props:s,label:r}=h()?U(this):O(this),a=!!(null===(e=m().innerHTML)||void 0===e?void 0:e.trim()),n=t("slot",{name:"label"},a?t("slot",null):r);return t(H,Object.assign({},s,{labelSlot:n}))}},fe=class{constructor(t){e(this,t),r(this)}disconnectedCallback(){}render(){var e,r;const n=null!==(e=function(e){if(e)try{return W(e)}catch{}}(this.brandColor))&&void 0!==e?e:"",i=(null!==(r=this.brandFont)&&void 0!==r?r:"Nunito Sans").trim()||void 0;a((()=>{if(!i)return;const e=document.createElement("link");return e.setAttribute("href",function(...e){return`https://fonts.googleapis.com/css2?${e.map((e=>`family=${encodeURIComponent(e)}`)).join("&")}`}(i)),e.setAttribute("rel","stylesheet"),document.head.appendChild(e),()=>document.head.removeChild(e)}),[i]);const o=null!=i?i:"";return t(s,null,t("style",null,`\n\n :host{\n display: contents;\n }\n /* \n Selects any element placed inside a slot\n - resets css variable inheritence for fonts\n \n */\n ::slotted(*) {\n --sl-font-sans: "${o}", arial;\n --sl-input-font-family: "${o}", arial;\n --sl-tooltip-font-family: "${o}", arial;\n font-family: "${o}", arial;\n\t\t\t\n ${n}\n\n --sl-focus-ring-color-primary: var(--sl-color-primary-100);\n --sl-input-border-color-focus: var(--sl-color-primary-500);\n --sl-color-primary-hue: var(--sl-color-primary-500);\n }`),t("slot",null))}},be=class{constructor(t){e(this,t),this.ignored=!0,this.width=347,this.gap=24,r(this)}disconnectedCallback(){}render(){return t(G,Object.assign({},_(this)),t("slot",null))}},ye=A({IconStyle:{display:"block",position:"absolute",top:"23px"},DivStyle:{marginLeft:"28px"},Details:{marginLeft:"28px"},Heading:{display:"inline-block"},Children:{display:"none"}}),xe=ye.toString();function we({missingProps:e,heading:s="There was a problem loading this section",subheading:r="There was a technical problem that prevented this section from loading. Please contact us with the link to this page.",description:a="Error occured while loading <{tagName}>. Values for the following attributes are missing:"},i){if(!e)return!1;const o=m(),[l,d]=n(!1);return t("sl-alert",{type:"danger",open:!0},t("style",{type:"text/css"},xe),t("div",{slot:"icon",class:ye.classes.IconStyle},t("sl-icon",{name:"exclamation-octagon"})),t("div",{class:ye.classes.DivStyle},t("h2",{class:ye.classes.Heading},u.formatMessage({id:"error-heading",defaultMessage:s})),t("p",null,u.formatMessage({id:"error-subheading",defaultMessage:r}))),t("details",{class:ye.classes.Details},t("summary",{onClick:()=>d(!l)},l?"Less":"More"," details"),t("p",null,u.formatMessage({id:"error-description",defaultMessage:a},{tagName:o.tagName.toLowerCase()})),t("ul",null,e.map((e=>t("li",null,t("strong",null,e.attribute)))))),t("div",{class:ye.classes.Children},i))}const ke=class{constructor(t){e(this,t),this.ignored=!0,this.checkboxLabel="By signing up you agree to the {labelLink}",this.checkboxLabelLink="https://example.com",this.checkboxLabelLinkText="Terms and Conditions",this.errorMessage="Must be checked",this.checkboxOptional=!1,r(this)}disconnectedCallback(){}render(){const e=T([{attribute:"checkbox-name",value:this.checkboxName}]);if(!h()&&e)return t(we,{missingProps:e,heading:"An error occured while loading this form",subheading:"A technical problem prevented this checkbox field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"});const s={..._(this)},{states:r,callbacks:o}=h()?L({states:{registrationFormState:{},checked:!1},callbacks:{setChecked:()=>{}}},this.demoData||{},{arrayMerge:(e,t)=>t}):function(e){var t;const s=i(F),[r,o]=n(!1);return a((()=>{var t,r;(null===(t=null==s?void 0:s.initialData)||void 0===t?void 0:t[e.checkboxName])&&o(!!(null===(r=null==s?void 0:s.initialData)||void 0===r?void 0:r[e.checkboxName]))}),[null===(t=null==s?void 0:s.initialData)||void 0===t?void 0:t[e.checkboxName]]),{states:{registrationFormState:s,checked:r},callbacks:{setChecked:o}}}(this);return t(Z,{states:r,content:s,callbacks:o})}},Ce=p.gql`
|
|
2
2
|
query fuelTankRewardsQuery($programId: ID!) {
|
|
3
3
|
user: viewer {
|
|
4
4
|
... on User {
|