@saasquatch/mint-components 1.3.2-0 → 1.3.2-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/sqm-divided-layout_27.cjs.entry.js +373 -206
  4. package/dist/cjs/{sqm-task-card-view-cb11e56f.js → sqm-task-card-view-791797ac.js} +20 -17
  5. package/dist/cjs/sqm-task-card.cjs.entry.js +25 -4
  6. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +17 -0
  7. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +23 -34
  8. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +44 -27
  9. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +21 -21
  10. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +6 -3
  11. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +270 -62
  12. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +20 -16
  13. package/dist/collection/components/sqm-task-card/sqm-task-card.js +130 -22
  14. package/dist/collection/components/sqm-task-card/useTaskCard.js +0 -0
  15. package/dist/esm/loader.js +1 -1
  16. package/dist/esm/mint-components.js +1 -1
  17. package/dist/esm/sqm-divided-layout_27.entry.js +373 -206
  18. package/dist/esm/{sqm-task-card-view-6a082a21.js → sqm-task-card-view-5cce0847.js} +21 -17
  19. package/dist/esm/sqm-task-card.entry.js +25 -4
  20. package/dist/esm-es5/loader.js +1 -1
  21. package/dist/esm-es5/mint-components.js +1 -1
  22. package/dist/esm-es5/sqm-divided-layout_27.entry.js +1 -1
  23. package/dist/esm-es5/sqm-task-card-view-5cce0847.js +1 -0
  24. package/dist/esm-es5/sqm-task-card.entry.js +1 -1
  25. package/dist/mint-components/mint-components.esm.js +1 -1
  26. package/dist/mint-components/p-2b3a99df.js +1 -0
  27. package/dist/mint-components/{p-86cd9f79.entry.js → p-32918497.entry.js} +14 -12
  28. package/dist/mint-components/p-4e5a2105.system.entry.js +1 -0
  29. package/dist/mint-components/p-6198d500.system.entry.js +1 -0
  30. package/dist/mint-components/p-6932204f.system.js +1 -0
  31. package/dist/mint-components/p-91d39961.system.js +1 -1
  32. package/dist/mint-components/p-bbdafe3b.entry.js +1 -0
  33. package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +2 -0
  34. package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +3 -2
  35. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +3 -0
  36. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +2 -3
  37. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +4 -7
  38. package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +1 -1
  39. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +10 -8
  40. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +24 -8
  41. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +0 -0
  42. package/dist/types/components.d.ts +58 -28
  43. package/dist/types/global/android.d.ts +7 -0
  44. package/dist/types/global/demo.d.ts +1 -0
  45. package/dist/types/stories/features.d.ts +4 -0
  46. package/dist/types/stories/templates.d.ts +4 -0
  47. package/grapesjs/grapesjs.js +1 -1
  48. package/package.json +1 -1
  49. package/dist/collection/components/sqm-reward-exchange-list/assets/Leftward Arrow.svg +0 -3
  50. package/dist/esm-es5/sqm-task-card-view-6a082a21.js +0 -1
  51. package/dist/mint-components/assets/Leftward Arrow.svg +0 -3
  52. package/dist/mint-components/p-12fb9197.entry.js +0 -1
  53. package/dist/mint-components/p-2ae9c535.js +0 -1
  54. package/dist/mint-components/p-550b4579.system.entry.js +0 -1
  55. package/dist/mint-components/p-795a7259.system.entry.js +0 -1
  56. package/dist/mint-components/p-d0913f8d.system.js +0 -1
@@ -0,0 +1 @@
1
+ import{h}from"./index-17b4da69.js";import{j as jss,c as create}from"./jss-preset-default.esm-71fae192.js";import{H as HostBlock}from"./mixins-10353a39.js";var checkmark_circle=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},h("path",{fill:"currentColor","fill-rule":"evenodd",d:"M1.636 9a7.364 7.364 0 1114.728 0A7.364 7.364 0 011.636 9zM9 0a9 9 0 100 18A9 9 0 009 0zm5.192 6.266a.982.982 0 00-1.548-1.208l-4.787 6.137-2.58-2.58a.982.982 0 00-1.39 1.388l3.367 3.366a.982.982 0 001.468-.09l5.47-7.013z","clip-rule":"evenodd"}))};var arrow_left_right=function(){return h("svg",{width:11,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z",fill:"currentColor"}))};var gift=function(){return h("svg",{width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M15 5H9v11h4.5a1 1 0 001-1V9h.5a1 1 0 001-1V6a1 1 0 00-1-1zM1.5 9v6a1 1 0 001 1H7V5H1a1 1 0 00-1 1v2a1 1 0 001 1h.5z",fill:"var(--sl-color-primary-200)"}),h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.5 9v1h13V9h-13z",fill:"var(--sl-color-primary-300)"}),h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 2.71c0 .886-1.33 2.227-2 2.29H9v11H7.002V5H4.588C3.212 4.702 2 3.645 2 2.52 2 1.426 2.476.558 3.342.183 4.169-.176 5.125.02 5.88.545c.927.643 1.447 1.851 1.919 2.947l.123.286.12-.272C8.51 2.45 9.045 1.243 9.94.596c.793-.573 1.801-.79 2.672-.397.9.405 1.388 1.336 1.388 2.51zM10.612 1.5c.48-.347 1.056-.41 1.548 0 .428.357.45.525.506.93l.01.07c0 .599-.516 1.5-1.032 1.5-.366 0-.653-.003-.922-.006-.49-.005-.92-.01-1.657.006.14-.272.252-.533.36-.782.285-.667.534-1.246 1.187-1.718zm-5.673 0c-.233-.161-.766-.09-.987.006-.183.08-.456.32-.456 1.015 0 .674 1.092 1.257 1.092 1.257S5.454 4 7.002 4c-.527-1.305-1.273-1.951-2.063-2.5z",fill:"var(--sl-color-primary-600)"}))};function TaskCardView(s,r){var e=s.points,a=e===void 0?0:e,l=s.cardTitle,i=l===void 0?"Title Text":l,t=s.description,o=t===void 0?"Description Text":t,n=s.showProgressBar,d=n===void 0?false:n,p=s.progress,c=p===void 0?0:p,v=s.goal,f=v===void 0?1:v,g=s.repeatable,u=g===void 0?false:g,m=s.expire,x=m===void 0?false:m,b=s.dateExpire,y=b===void 0?"":b,w=s.buttonText,z=w===void 0?"Button Text":w,k=s.buttonLink,S=k===void 0?"www.example.com":k;var H=checkmark_circle();var T=arrow_left_right();var M={HostBlock:HostBlock,TaskCard:{"& .main > div":{margin:"var(--sl-spacing-medium)"},"& .main":{position:"relative",boxSizing:"border-box",minWidth:"347px",background:"var(--sl-color-white)",border:"1px solid var(--sl-color-gray-300)",borderRadius:"var(--sl-border-radius-medium)",fontSize:"var(--sl-font-size-small)",lineHeight:"var(--sl-line-height-dense)"},"& .main.complete":{background:"var(--sl-color-primary-50)",borderColor:"var(--sl-color-primary-700)"}},Header:{display:"flex","& .icon":{alignSelf:"center",lineHeight:"0",color:"var(--sl-color-primary-700)",fontSize:"var(--sl-font-size-large)",marginRight:"var(--sl-spacing-x-small)"},"& .value":{alignSelf:"center",color:"var(--sl-color-black)",fontSize:"var(--sl-font-size-x-large)",fontWeight:"var(--sl-font-weight-semibold)",lineHeight:"100%",marginRight:"var(--sl-spacing-xx-small)"},"& .text":{alignSelf:"end",textTransform:"uppercase",color:"var(--sl-color-gray-600)",fontSize:"var(--sl-font-size-x-small)",lineHeight:"var(--sl-font-size-medium)",marginRight:"var(--sl-spacing-xx-small)"}},Title:{color:"var(--sl-color-black)",fontSize:"var(--sl-font-size-small)"},Footer:{display:"flex","& .icon":{fontSize:"var(--sl-font-size-xx-small)",marginRight:"var(--sl-spacing-xx-small)"},"& .text":{marginTop:"auto",fontSize:"var(--sl-font-size-x-small)",color:"var(--sl-color-gray-600)"},"& .action":{marginTop:"auto",marginLeft:"auto"},"& sl-button.action::part(base) ":{color:"var(--sl-color-white)",background:"var(--sl-color-primary-500)",border:"1px solid var(--sl-color-primary-500)",borderRadius:"var(--sl-border-radius-medium)"}}};jss.setup(create());var C=jss.createStyleSheet(M);var B=C.toString();var R=c>=f;var j=d?Math.floor(c/f):c;return h("div",{class:C.classes.TaskCard},h("div",{class:R?"main complete":"main"},h("style",{type:"text/css"},B),h("div",{class:C.classes.Header},R&&h("span",{class:"icon"},H),h("span",{class:"value"},a),h("span",{class:"text"},"saasquatch points")),h("div",{class:C.classes.Title},i),d&&h(ProgressBar,Object.assign({},s)),h(Details,{description:o}),h("div",{class:C.classes.Footer},h("span",{class:"text"},u&&h("div",null,h("span",{class:"icon"},T),h("span",null,"Completed ",j," times"),h("br",null),h("span",null,"Earned ",a*j," SaaSquatch Points")),x&&h("span",null,h("br",null),"Ends "," ",y)),h("sl-button",{class:"action",size:"small",onClick:function(){return alert(S)},disabled:R},R?"Complete":z))))}function Details(s){var r={HostBlock:HostBlock,Description:{"& input[type=checkbox]":{display:"none"},"& input:checked ~ .details":{transform:"rotate(-180deg)"},"& .details":{position:"absolute",top:"var(--sl-spacing-medium)",right:"var(--sl-spacing-medium)",color:"var(--sl-color-gray-700)",fontSize:"var(--sl-font-size-large)","& :hover":{color:"var(--sl-color-primary-700)"},transformOrigin:"50% 37%",transition:"transform var(--sl-transition-medium) ease"},"& input:checked ~ .summary":{transition:"max-height var(--sl-transition-medium) ease",maxHeight:"300px"},"& .summary":{display:"block",overflow:"hidden",color:"var(--sl-color-gray-700)",fontSize:"var(--sl-font-size-x-small)",maxHeight:"0px",transition:"max-height var(--sl-transition-fast) ease-out"}}};jss.setup(create());var e=jss.createStyleSheet(r);var a=e.toString();var l=Math.random().toString(36).slice(2);return h("div",null,h("style",{type:"text/css"},a),h("span",{class:e.classes.Description},h("input",{type:"checkbox",id:"details-"+l}),h("label",{class:"details",htmlFor:"details-"+l},h("sl-icon",{name:"chevron-down"})),h("span",{class:"summary"},s.description)))}function ProgressBar(s){var r=s.goal,e=s.progress,a=s.steps,l=s.unit,i=l===void 0?"":l,t=s.repeatable;var o=gift();var n=gift();var d=gift();var p=[];var c="";var v=Math.floor(e/r);if(t){if(a){y()}else{b()}}else{if(a){x()}else{m()}}var f={HostBlock:HostBlock,ProgressBar:{"& .progress-bar":{height:"20px",marginTop:"var(--sl-spacing-large)",marginRight:"var(--sl-spacing-x-small)",marginBottom:"var(--sl-spacing-large)",fontSize:"var(--sl-font-size-x-small)",display:"grid",gridTemplateColumns:c,lineHeight:"45px",userSelect:"none"},"& .progress-bar.repeatable-steps":{marginLeft:"var(--sl-spacing-x-small)"},"& .filled:after":{content:'""',display:"flex",width:"100%",height:"4px",borderRadius:"4px",backgroundColor:"var(--sl-color-primary-500)"},"& .progress":{display:"block",textAlign:"center",marginLeft:"-100px",marginRight:"-100px"},"& .progress::after":{content:'""',width:"12px",height:"12px",display:"flex",backgroundColor:"var(--sl-color-primary-500)",borderRadius:"50%",position:"relative",left:"47%",top:"-85%"},"& .progress.bg:after":{width:"0",height:"0",border:"none"},"& .empty":{display:"block",textAlign:"center",marginLeft:"-100px",marginRight:"-100px"},"& .empty::after":{content:'""',width:"12px",height:"12px",border:"2px solid #E0E0E0",margin:"-2px",display:"flex",backgroundColor:"white",borderRadius:"50%",position:"relative",left:"47%",top:"-85%"},"& .empty.bg:after":{width:"0",height:"0",border:"none"},"& .remain:after":{content:'""',display:"flex",width:"100%",height:"4px",borderRadius:"4px",backgroundColor:"#E0E0E0"},"& .end.bw":{filter:"grayscale(100%)"},"& .end.start":{transform:"scale(80%)",top:"-20px"},"& .end":{textAlign:"center",marginLeft:"-100px",marginRight:"-100px",position:"relative",display:"list-item",listStyleType:"none",top:"-18px",filter:r<=e?"":"grayscale(100%)",zIndex:"1"}}};jss.setup(create());var g=jss.createStyleSheet(f);var u=g.toString();return h("div",{class:g.classes.ProgressBar},h("style",{type:"text/css"},u),h("div",{class:v>1?"progress-bar repeatable-steps":"progress-bar"},p));function m(){c=Math.min(Math.max(e/r,0),1)+"fr 0fr "+Math.min(Math.max(1-e/r,0),1)+"fr 0fr";p.push(h("div",{class:"filled"}));p.push(h("div",{class:e==r?"progress bg":"progress"},i+e));p.push(h("div",{class:"remain"}));p.push(h("div",{class:"end"},o))}function x(){var s=a/r;for(var l=1;l<r;l+=a){c+=s+"fr 0fr ";if(l>e){p.push(h("div",{class:"remain"}));p.push(h("div",{class:"empty"},i+l))}else{p.push(h("div",{class:"filled"}));p.push(h("div",{class:"progress"},i+l))}}c+=s+"fr 0fr ";if(r<=e){c+="0fr ";p.push(h("div",{class:"filled"}));p.push(h("div",{class:"progress bg"},i+r));p.push(h("div",{class:"end"},o))}else{c+="0fr ";p.push(h("div",{class:"remain"}));p.push(h("div",{class:"empty bg"},i+r));p.push(h("div",{class:"end"},o))}}function b(){var s=e%r;var a=s/r*.5;var l=Math.floor(e/r);if(l==0){c=a+"fr 0fr "+(.5-a)+"fr 0fr 0.5fr 0fr";p.push(h("div",{class:"filled"}));p.push(h("div",{class:e==r?"progress bg":"progress"},i+e));p.push(h("div",{class:"remain"}));p.push(h("div",{class:"end"},o));p.push(h("div",{class:"remain"}));p.push(h("div",{class:"end bw"},n))}else if(l==1){c="0.5fr 0fr "+a+"fr 0fr "+(.5-a)+"fr 0fr";p.push(h("div",{class:"filled"}));p.push(h("div",{class:"end"},o));p.push(h("div",{class:"filled"}));p.push(h("div",{class:e==r?"progress bg":"progress"},i+e));p.push(h("div",{class:"remain"}));p.push(h("div",{class:"end bw"},n))}else{c="0fr 0.5fr 0fr "+a+"fr 0fr "+(.5-a)+"fr 0fr";p.push(h("div",{class:"end start"},o));p.push(h("div",{class:"filled"}));p.push(h("div",{class:"end"},n));p.push(h("div",{class:"filled"}));p.push(h("div",{class:e==r*l?"progress bg":"progress"},i+e));p.push(h("div",{class:"remain"}));p.push(h("div",{class:"end bw"},d))}}function y(){var s=Math.floor(e/r);if(s<2){var l=a/r;for(var t=1;t<r*2+1;t+=a){c+=l+"fr 0fr ";if(t>e){if(t==r){c+="0fr ";p.push(h("div",{class:"remain"}));p.push(h("div",{class:"empty bg"},i+r));p.push(h("div",{class:"end bw"},o))}else if(t==r*2){c+="0fr 0fr";p.push(h("div",{class:"remain"}));p.push(h("div",{class:"empty bg"},i+r*2));p.push(h("div",{class:"end bw"},n))}else{p.push(h("div",{class:"remain"}));p.push(h("div",{class:"empty"},i+t))}}else if(t==r){c+="0fr ";p.push(h("div",{class:"filled"}));p.push(h("div",{class:"progress bg"},i+t));p.push(h("div",{class:"end"},d))}else{p.push(h("div",{class:"filled"}));p.push(h("div",{class:"progress"},i+t))}}}else{var v=e%r+r;var l=a/r;c+="0fr 0fr ";p.push(h("div",{class:"progress bg"},i+r*(s-1)));p.push(h("div",{class:"end start"},o));for(var t=1;t<r*2+1;t+=a){c+=l+"fr 0fr ";if(t<=r){if(t==r){c+="0fr ";p.push(h("div",{class:"filled"}));p.push(h("div",{class:"progress bg"},i+(t+r*(s-1))));p.push(h("div",{class:"end"},n))}else{p.push(h("div",{class:"filled"}));p.push(h("div",{class:"progress"},i+(t+r*(s-1))))}}else if(t>v){if(t==r*2){c+="0fr 0fr";p.push(h("div",{class:"remain"}));p.push(h("div",{class:"empty bg"},i+(t+r*(s-1))));p.push(h("div",{class:"end bw"},d))}else{p.push(h("div",{class:"remain"}));p.push(h("div",{class:"empty"},i+(t+r*(s-1))))}}else{p.push(h("div",{class:"filled"}));p.push(h("div",{class:"progress"},i+(t+r*(s-1))))}}}}}export{TaskCardView as T};
@@ -1 +1 @@
1
- import{r as registerInstance,h as h$1}from"./index-17b4da69.js";import{m as h}from"./extends-3a3f9fe2.js";import"./jss-preset-default.esm-71fae192.js";import{g as getProps}from"./utils-454405f5.js";import"./mixins-10353a39.js";import{T as TaskCardView}from"./sqm-task-card-view-6a082a21.js";var TaskCard=function(){function s(s){registerInstance(this,s);this.ignored=true;this.points=0;this.complete=false;h(this)}s.prototype.disconnectedCallback=function(){};s.prototype.render=function(){return h$1(TaskCardView,Object.assign({},getProps(this)))};return s}();export{TaskCard as sqm_task_card};
1
+ import{r as registerInstance,h as h$1}from"./index-17b4da69.js";import{m as h}from"./extends-3a3f9fe2.js";import"./jss-preset-default.esm-71fae192.js";import{g as getProps}from"./utils-454405f5.js";import"./mixins-10353a39.js";import{T as TaskCardView}from"./sqm-task-card-view-5cce0847.js";var TaskCard=function(){function s(s){registerInstance(this,s);this.ignored=true;this.points=0;this.cardTitle="Title Text";this.description="Description Text";this.repeatable=false;this.showProgressBar=false;this.goal=1;this.expire=false;h(this)}s.prototype.disconnectedCallback=function(){};s.prototype.render=function(){return h$1(TaskCardView,Object.assign({},getProps(this)))};return s}();export{TaskCard as sqm_task_card};
@@ -1 +1 @@
1
- import{p as e,H as a,b as t}from"./p-64c3217a.js";import"./p-44578b22.js";import"./p-f1e1086e.js";import"./p-ba505a8c.js";import"./p-2bce988c.js";import"./p-58d9b2f0.js";const r=e=>{const a=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return a.call(this,e);const t=a.call(this,!1),r=this.childNodes;if(e)for(let e=0;e<r.length;e++)2!==r[e].nodeType&&t.appendChild(r[e].cloneNode(!0));return t}};(()=>{r(a.prototype);const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-d9cc041f",[[1,"sqm-portal-reset-password",{nextPage:[1,"next-page"],confirmPassword:[4,"confirm-password"],resetPasswordHeader:[1,"reset-password-header"],passwordResetHeader:[1,"password-reset-header"],resetPasswordButtonText:[1,"reset-password-button-text"],continueButtonText:[1,"continue-button-text"],confirmPasswordFieldLabel:[1,"confirm-password-field-label"],passwordFieldLabel:[1,"password-field-label"],demoData:[16],ignored:[32]}]]],["p-23a0bdae",[[1,"sqm-portal-email-verification",{emailVerificationHeader:[1,"email-verification-header"],resendEmailButtonText:[1,"resend-email-button-text"],verifyMessage:[1,"verify-message"],demoData:[16],ignored:[32]}]]],["p-2f171597",[[1,"sqm-portal-forgot-password",{emailLabel:[1,"email-label"],submitLabel:[1,"submit-label"],demoData:[16],ignored:[32]}]]],["p-a4a00461",[[1,"sqm-portal-profile",{firstnametext:[1],lastnametext:[1],emailtext:[1],countrytext:[1],editProfileHeader:[1,"edit-profile-header"],editProfileSubHeader:[1,"edit-profile-sub-header"],submitChangeButtonText:[1,"submit-change-button-text"],showCountry:[4,"show-country"],demoData:[16],ignored:[32]}]]],["p-aba21f90",[[1,"sqm-portal-verify-email",{nextPage:[1,"next-page"],demoData:[16],ignored:[32]}]]],["p-7c138c84",[[1,"sqm-referral-table-column",{columnTitle:[1,"column-title"],renderCell:[64],renderLabel:[64]}]]],["p-6cdc70f4",[[1,"sqm-referral-table-date-column",{columnTitle:[1,"column-title"],dateShown:[1,"date-shown"],renderCell:[64],renderLabel:[64]}]]],["p-844f9bad",[[1,"sqm-referral-table-rewards-column",{columnTitle:[1,"column-title"],hideDetails:[4,"hide-details"],renderCell:[64],renderLabel:[64]}]]],["p-82d7a2ba",[[1,"sqm-referral-table-status-column",{columnTitle:[1,"column-title"],convertedStatusText:[1,"converted-status-text"],inProgressStatusText:[1,"in-progress-status-text"],renderCell:[64],renderLabel:[64]}]]],["p-a7f0b2f6",[[1,"sqm-referral-table-user-column",{columnTitle:[1,"column-title"],anonymousUser:[1,"anonymous-user"],deletedUser:[1,"deleted-user"],renderCell:[64],renderLabel:[64]}]]],["p-70837c1c",[[1,"sqm-rewards-table",{programId:[1,"program-id"],perPage:[2,"per-page"],showLabels:[4,"show-labels"],prevLabel:[1,"prev-label"],moreLabel:[1,"more-label"],showReferrer:[4,"show-referrer"],demoData:[16]}]]],["p-16da5146",[[1,"sqm-asset-card",{titleText:[1,"title-text"],imgUrl:[1,"img-url"],demoData:[16],ignored:[32]}]]],["p-e22eed7b",[[1,"sqm-big-stat",{statType:[1,"stat-type"],flexReverse:[4,"flex-reverse"],alignment:[1],demoData:[16],ignored:[32]}]]],["p-337b49ee",[[4,"sqm-graphql-client-provider",{domain:[1],ignored:[32]}]]],["p-a565e753",[[1,"sqm-hero",{columns:[2],background:[1],paddingSize:[1,"padding-size"],secondaryBackground:[1,"secondary-background"],wrapDirection:[1,"wrap-direction"]}]]],["p-5f28af29",[[1,"sqm-leaderboard",{usersheading:[1],statsheading:[1],rankheading:[1],showRank:[4,"show-rank"],rankType:[1,"rank-type"],leaderboardType:[1,"leaderboard-type"],interval:[1],demoData:[16],ignored:[32]}]]],["p-55e02769",[[1,"sqm-leaderboard-rank",{rankType:[1,"rank-type"],rankText:[1,"rank-text"],leaderboardType:[1,"leaderboard-type"],unrankedText:[1,"unranked-text"],interval:[1],demoData:[16]}]]],["p-e9ab90a1",[[0,"sqm-name-fields",{firstNameLabel:[1,"first-name-label"],lastNameLabel:[1,"last-name-label"],demoData:[16],ignored:[32]}]]],["p-c3bf9440",[[1,"sqm-navigation-sidebar",{ignored:[32]}]]],["p-11c75956",[[1,"sqm-navigation-sidebar-item",{path:[1],icon:[1],label:[1],demoData:[16]}]]],["p-d3787c3a",[[4,"sqm-popup-container",{poweredBy:[4,"powered-by"],closeButton:[4,"close-button"],closeButtonText:[1,"close-button-text"],embedPadding:[1,"embed-padding"],popupPadding:[1,"popup-padding"]}]]],["p-e069bc2d",[[1,"sqm-portal-container",{direction:[1],padding:[1],gap:[1],minWidth:[1,"min-width"],ignored:[32]}]]],["p-21dfdeb8",[[1,"sqm-portal-footer",{supportEmail:[1,"support-email"],supportText:[1,"support-text"],termsLink:[1,"terms-link"],termsText:[1,"terms-text"],faqLink:[1,"faq-link"],faqText:[1,"faq-text"],showPoweredBy:[4,"show-powered-by"],poweredByLink:[1,"powered-by-link"],paddingTop:[1,"padding-top"],paddingRight:[1,"padding-right"],paddingBottom:[1,"padding-bottom"],paddingLeft:[1,"padding-left"],ignored:[32]}]]],["p-6d545e13",[[1,"sqm-portal-logout",{nextPage:[1,"next-page"],ignored:[32]}]]],["p-e2ebe90c",[[1,"sqm-portal-protected-route",{redirectTo:[1,"redirect-to"],requireEmailVerification:[4,"require-email-verification"],redirectToUnverified:[1,"redirect-to-unverified"],ignored:[32]}]]],["p-639d3dd3",[[1,"sqm-route",{path:[1],ignored:[32]}]]],["p-71d942af",[[1,"sqm-share-code",{programId:[1,"program-id"],tooltiptext:[1,"tooltip-text"],tooltiplifespan:[2,"tooltip-lifespan"],demoData:[16]}]]],["p-0bcefa93",[[1,"sqm-stat-container",{space:[1],ignored:[32]}]]],["p-12fb9197",[[1,"sqm-task-card",{points:[2],cardTitle:[1,"card-title"],description:[1],complete:[4],repeatable:[8],expire:[1],buttonText:[1,"button-text"],buttonOnClick:[16],ignored:[32]}]]],["p-f9cb55dc",[[0,"sqm-text-span",{text:[1],type:[1],ignored:[32]}]]],["p-53ec4863",[[1,"sqm-titled-section",{label:[1],labelMargin:[1,"label-margin"],padding:[1]}]]],["p-86cd9f79",[[4,"sqm-stencilbook",{ignored:[32]}],[1,"sqm-referral-table",{programId:[1,"program-id"],perPage:[2,"per-page"],showLabels:[4,"show-labels"],prevLabel:[1,"prev-label"],moreLabel:[1,"more-label"],showReferrer:[4,"show-referrer"],demoData:[16]}],[1,"sqm-portal-change-password",{modalChangePasswordHeader:[1,"modal-change-password-header"],cancelText:[1,"cancel-text"],changePasswordButtonText:[1,"change-password-button-text"],passwordFieldLabel:[1,"password-field-label"],confirmPasswordFieldLabel:[1,"confirm-password-field-label"],successMessage:[1,"success-message"],portalChangePasswordHeader:[1,"portal-change-password-header"],portalChangePasswordButtonText:[1,"portal-change-password-button-text"],demoData:[16],ignored:[32]}],[1,"sqm-portal-register",{nextPage:[1,"next-page"],emailLabel:[1,"email-label"],passwordLabel:[1,"password-label"],submitLabel:[1,"submit-label"],loginLabel:[1,"login-label"],confirmPasswordLabel:[1,"confirm-password-label"],confirmPassword:[4,"confirm-password"],enablePasswordValidation:[4,"enable-password-validation"],hideInputs:[4,"hide-inputs"],pageLabel:[1,"page-label"],demoData:[16],ignored:[32]}],[1,"sqm-edit-profile",{editprofileheader:[1],editprofiletext:[1],canceltext:[1],updatetext:[1],firstnametext:[1],lastnametext:[1],currentregiontext:[1],showregion:[4],demoData:[16],ignored:[32]}],[1,"sqm-portal-login",{nextPage:[1,"next-page"],emailLabel:[1,"email-label"],passwordLabel:[1,"password-label"],submitLabel:[1,"submit-label"],forgotPasswordLabel:[1,"forgot-password-label"],registerLabel:[1,"register-label"],pageLabel:[1,"page-label"],demoData:[16],ignored:[32]}],[1,"sqm-divided-layout",{direction:[1],dividerStyle:[1,"divider-style"]}],[0,"sqm-hook-story-container",{hookStory:[16],ignored:[32]}],[1,"sqm-navigation-menu",{includeDropdown:[4,"include-dropdown"],menuLabel:[1,"menu-label"],demoData:[16],ignored:[32]}],[1,"sqm-portal-frame",{demoData:[16],ignored:[32]}],[4,"sqm-program-menu",{ignored:[32]}],[0,"sqm-referral-iframe",{iframeSrc:[1,"iframe-src"],iframeHeight:[1,"iframe-height"],iframeWidth:[1,"iframe-width"],demoData:[16],ignored:[32]}],[0,"sqm-reward-exchange-list",{listType:[1,"list-type"],demoData:[16],ignored:[32]}],[4,"sqm-router",{ignored:[32]}],[1,"sqm-share-button",{medium:[1],programId:[1,"program-id"],pill:[4],disabled:[4],type:[1],size:[1],iconslot:[1],icon:[1],hideicon:[4],hidetext:[4],sharetitle:[1],sharetext:[1],demoData:[16]}],[1,"sqm-share-link",{programId:[1,"program-id"],tooltiptext:[1,"tooltip-text"],tooltiplifespan:[2,"tooltip-lifespan"],demoData:[16]}],[1,"sqm-user-name",{fallback:[1],loadingText:[1,"loading-text"],demoData:[16],_ignored:[32]}],[1,"sqm-referral-table-cell",{innerTemplate:[1,"inner-template"],ignored:[32]}],[1,"sqm-referral-table-date-cell",{date:[2],ignored:[32]}],[1,"sqm-referral-table-rewards-cell",{rewards:[16],hideDetails:[4,"hide-details"]}],[1,"sqm-referral-table-status-cell",{statusText:[1,"status-text"],converted:[4]}],[1,"sqm-referral-table-user-cell",{name:[1]}],[1,"sqm-table-cell",{colspan:[2],padding:[1]}],[1,"sqm-table-row",{border:[1]}],[4,"sqm-text",{ignored:[32]}],[0,"sqm-password-field",{fieldLabel:[1,"field-label"],enableValidation:[4,"enable-validation"],demoData:[16],ignored:[32]}],[1,"sqm-form-message",{type:[1],icon:[1],ignored:[32]}]]]],e)));
1
+ import{p as e,H as a,b as t}from"./p-64c3217a.js";import"./p-44578b22.js";import"./p-f1e1086e.js";import"./p-ba505a8c.js";import"./p-2bce988c.js";import"./p-58d9b2f0.js";const r=e=>{const a=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return a.call(this,e);const t=a.call(this,!1),r=this.childNodes;if(e)for(let e=0;e<r.length;e++)2!==r[e].nodeType&&t.appendChild(r[e].cloneNode(!0));return t}};(()=>{r(a.prototype);const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-d9cc041f",[[1,"sqm-portal-reset-password",{nextPage:[1,"next-page"],confirmPassword:[4,"confirm-password"],resetPasswordHeader:[1,"reset-password-header"],passwordResetHeader:[1,"password-reset-header"],resetPasswordButtonText:[1,"reset-password-button-text"],continueButtonText:[1,"continue-button-text"],confirmPasswordFieldLabel:[1,"confirm-password-field-label"],passwordFieldLabel:[1,"password-field-label"],demoData:[16],ignored:[32]}]]],["p-23a0bdae",[[1,"sqm-portal-email-verification",{emailVerificationHeader:[1,"email-verification-header"],resendEmailButtonText:[1,"resend-email-button-text"],verifyMessage:[1,"verify-message"],demoData:[16],ignored:[32]}]]],["p-2f171597",[[1,"sqm-portal-forgot-password",{emailLabel:[1,"email-label"],submitLabel:[1,"submit-label"],demoData:[16],ignored:[32]}]]],["p-a4a00461",[[1,"sqm-portal-profile",{firstnametext:[1],lastnametext:[1],emailtext:[1],countrytext:[1],editProfileHeader:[1,"edit-profile-header"],editProfileSubHeader:[1,"edit-profile-sub-header"],submitChangeButtonText:[1,"submit-change-button-text"],showCountry:[4,"show-country"],demoData:[16],ignored:[32]}]]],["p-aba21f90",[[1,"sqm-portal-verify-email",{nextPage:[1,"next-page"],demoData:[16],ignored:[32]}]]],["p-7c138c84",[[1,"sqm-referral-table-column",{columnTitle:[1,"column-title"],renderCell:[64],renderLabel:[64]}]]],["p-6cdc70f4",[[1,"sqm-referral-table-date-column",{columnTitle:[1,"column-title"],dateShown:[1,"date-shown"],renderCell:[64],renderLabel:[64]}]]],["p-844f9bad",[[1,"sqm-referral-table-rewards-column",{columnTitle:[1,"column-title"],hideDetails:[4,"hide-details"],renderCell:[64],renderLabel:[64]}]]],["p-82d7a2ba",[[1,"sqm-referral-table-status-column",{columnTitle:[1,"column-title"],convertedStatusText:[1,"converted-status-text"],inProgressStatusText:[1,"in-progress-status-text"],renderCell:[64],renderLabel:[64]}]]],["p-a7f0b2f6",[[1,"sqm-referral-table-user-column",{columnTitle:[1,"column-title"],anonymousUser:[1,"anonymous-user"],deletedUser:[1,"deleted-user"],renderCell:[64],renderLabel:[64]}]]],["p-70837c1c",[[1,"sqm-rewards-table",{programId:[1,"program-id"],perPage:[2,"per-page"],showLabels:[4,"show-labels"],prevLabel:[1,"prev-label"],moreLabel:[1,"more-label"],showReferrer:[4,"show-referrer"],demoData:[16]}]]],["p-16da5146",[[1,"sqm-asset-card",{titleText:[1,"title-text"],imgUrl:[1,"img-url"],demoData:[16],ignored:[32]}]]],["p-e22eed7b",[[1,"sqm-big-stat",{statType:[1,"stat-type"],flexReverse:[4,"flex-reverse"],alignment:[1],demoData:[16],ignored:[32]}]]],["p-337b49ee",[[4,"sqm-graphql-client-provider",{domain:[1],ignored:[32]}]]],["p-a565e753",[[1,"sqm-hero",{columns:[2],background:[1],paddingSize:[1,"padding-size"],secondaryBackground:[1,"secondary-background"],wrapDirection:[1,"wrap-direction"]}]]],["p-5f28af29",[[1,"sqm-leaderboard",{usersheading:[1],statsheading:[1],rankheading:[1],showRank:[4,"show-rank"],rankType:[1,"rank-type"],leaderboardType:[1,"leaderboard-type"],interval:[1],demoData:[16],ignored:[32]}]]],["p-55e02769",[[1,"sqm-leaderboard-rank",{rankType:[1,"rank-type"],rankText:[1,"rank-text"],leaderboardType:[1,"leaderboard-type"],unrankedText:[1,"unranked-text"],interval:[1],demoData:[16]}]]],["p-e9ab90a1",[[0,"sqm-name-fields",{firstNameLabel:[1,"first-name-label"],lastNameLabel:[1,"last-name-label"],demoData:[16],ignored:[32]}]]],["p-c3bf9440",[[1,"sqm-navigation-sidebar",{ignored:[32]}]]],["p-11c75956",[[1,"sqm-navigation-sidebar-item",{path:[1],icon:[1],label:[1],demoData:[16]}]]],["p-d3787c3a",[[4,"sqm-popup-container",{poweredBy:[4,"powered-by"],closeButton:[4,"close-button"],closeButtonText:[1,"close-button-text"],embedPadding:[1,"embed-padding"],popupPadding:[1,"popup-padding"]}]]],["p-e069bc2d",[[1,"sqm-portal-container",{direction:[1],padding:[1],gap:[1],minWidth:[1,"min-width"],ignored:[32]}]]],["p-21dfdeb8",[[1,"sqm-portal-footer",{supportEmail:[1,"support-email"],supportText:[1,"support-text"],termsLink:[1,"terms-link"],termsText:[1,"terms-text"],faqLink:[1,"faq-link"],faqText:[1,"faq-text"],showPoweredBy:[4,"show-powered-by"],poweredByLink:[1,"powered-by-link"],paddingTop:[1,"padding-top"],paddingRight:[1,"padding-right"],paddingBottom:[1,"padding-bottom"],paddingLeft:[1,"padding-left"],ignored:[32]}]]],["p-6d545e13",[[1,"sqm-portal-logout",{nextPage:[1,"next-page"],ignored:[32]}]]],["p-e2ebe90c",[[1,"sqm-portal-protected-route",{redirectTo:[1,"redirect-to"],requireEmailVerification:[4,"require-email-verification"],redirectToUnverified:[1,"redirect-to-unverified"],ignored:[32]}]]],["p-639d3dd3",[[1,"sqm-route",{path:[1],ignored:[32]}]]],["p-71d942af",[[1,"sqm-share-code",{programId:[1,"program-id"],tooltiptext:[1,"tooltip-text"],tooltiplifespan:[2,"tooltip-lifespan"],demoData:[16]}]]],["p-0bcefa93",[[1,"sqm-stat-container",{space:[1],ignored:[32]}]]],["p-bbdafe3b",[[1,"sqm-task-card",{points:[2],cardTitle:[1,"card-title"],description:[1],repeatable:[4],showProgressBar:[4,"show-progress-bar"],goal:[2],steps:[2],unit:[1],expire:[4],dateExpire:[1,"date-expire"],buttonText:[1,"button-text"],buttonLink:[1,"button-link"],ignored:[32]}]]],["p-f9cb55dc",[[0,"sqm-text-span",{text:[1],type:[1],ignored:[32]}]]],["p-53ec4863",[[1,"sqm-titled-section",{label:[1],labelMargin:[1,"label-margin"],padding:[1]}]]],["p-32918497",[[4,"sqm-stencilbook",{ignored:[32]}],[1,"sqm-referral-table",{programId:[1,"program-id"],perPage:[2,"per-page"],showLabels:[4,"show-labels"],prevLabel:[1,"prev-label"],moreLabel:[1,"more-label"],showReferrer:[4,"show-referrer"],demoData:[16]}],[1,"sqm-portal-change-password",{modalChangePasswordHeader:[1,"modal-change-password-header"],cancelText:[1,"cancel-text"],changePasswordButtonText:[1,"change-password-button-text"],passwordFieldLabel:[1,"password-field-label"],confirmPasswordFieldLabel:[1,"confirm-password-field-label"],successMessage:[1,"success-message"],portalChangePasswordHeader:[1,"portal-change-password-header"],portalChangePasswordButtonText:[1,"portal-change-password-button-text"],demoData:[16],ignored:[32]}],[1,"sqm-portal-register",{nextPage:[1,"next-page"],emailLabel:[1,"email-label"],passwordLabel:[1,"password-label"],submitLabel:[1,"submit-label"],loginLabel:[1,"login-label"],confirmPasswordLabel:[1,"confirm-password-label"],confirmPassword:[4,"confirm-password"],enablePasswordValidation:[4,"enable-password-validation"],hideInputs:[4,"hide-inputs"],pageLabel:[1,"page-label"],demoData:[16],ignored:[32]}],[1,"sqm-edit-profile",{editprofileheader:[1],editprofiletext:[1],canceltext:[1],updatetext:[1],firstnametext:[1],lastnametext:[1],currentregiontext:[1],showregion:[4],demoData:[16],ignored:[32]}],[1,"sqm-portal-login",{nextPage:[1,"next-page"],emailLabel:[1,"email-label"],passwordLabel:[1,"password-label"],submitLabel:[1,"submit-label"],forgotPasswordLabel:[1,"forgot-password-label"],registerLabel:[1,"register-label"],pageLabel:[1,"page-label"],demoData:[16],ignored:[32]}],[1,"sqm-divided-layout",{direction:[1],dividerStyle:[1,"divider-style"]}],[0,"sqm-hook-story-container",{hookStory:[16],ignored:[32]}],[1,"sqm-navigation-menu",{includeDropdown:[4,"include-dropdown"],menuLabel:[1,"menu-label"],demoData:[16],ignored:[32]}],[1,"sqm-portal-frame",{demoData:[16],ignored:[32]}],[4,"sqm-program-menu",{ignored:[32]}],[0,"sqm-referral-iframe",{iframeSrc:[1,"iframe-src"],iframeHeight:[1,"iframe-height"],iframeWidth:[1,"iframe-width"],demoData:[16],ignored:[32]}],[0,"sqm-reward-exchange-list",{buttonText:[1,"button-text"],demoData:[16],ignored:[32]}],[4,"sqm-router",{ignored:[32]}],[1,"sqm-share-button",{medium:[1],programId:[1,"program-id"],pill:[4],disabled:[4],type:[1],size:[1],iconslot:[1],icon:[1],hideicon:[4],hidetext:[4],sharetitle:[1],sharetext:[1],demoData:[16]}],[1,"sqm-share-link",{programId:[1,"program-id"],tooltiptext:[1,"tooltip-text"],tooltiplifespan:[2,"tooltip-lifespan"],demoData:[16]}],[1,"sqm-user-name",{fallback:[1],loadingText:[1,"loading-text"],demoData:[16],_ignored:[32]}],[1,"sqm-referral-table-cell",{innerTemplate:[1,"inner-template"],ignored:[32]}],[1,"sqm-referral-table-date-cell",{date:[2],ignored:[32]}],[1,"sqm-referral-table-rewards-cell",{rewards:[16],hideDetails:[4,"hide-details"]}],[1,"sqm-referral-table-status-cell",{statusText:[1,"status-text"],converted:[4]}],[1,"sqm-referral-table-user-cell",{name:[1]}],[1,"sqm-table-cell",{colspan:[2],padding:[1]}],[1,"sqm-table-row",{border:[1]}],[4,"sqm-text",{ignored:[32]}],[0,"sqm-password-field",{fieldLabel:[1,"field-label"],enableValidation:[4,"enable-validation"],demoData:[16],ignored:[32]}],[1,"sqm-form-message",{type:[1],icon:[1],ignored:[32]}]]]],e)));
@@ -0,0 +1 @@
1
+ import{h as s}from"./p-64c3217a.js";import{j as r,c as l}from"./p-db5a1e78.js";import{H as a}from"./p-26f627aa.js";const e=()=>s("svg",{width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M15 5H9v11h4.5a1 1 0 001-1V9h.5a1 1 0 001-1V6a1 1 0 00-1-1zM1.5 9v6a1 1 0 001 1H7V5H1a1 1 0 00-1 1v2a1 1 0 001 1h.5z",fill:"var(--sl-color-primary-200)"}),s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.5 9v1h13V9h-13z",fill:"var(--sl-color-primary-300)"}),s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 2.71c0 .886-1.33 2.227-2 2.29H9v11H7.002V5H4.588C3.212 4.702 2 3.645 2 2.52 2 1.426 2.476.558 3.342.183 4.169-.176 5.125.02 5.88.545c.927.643 1.447 1.851 1.919 2.947l.123.286.12-.272C8.51 2.45 9.045 1.243 9.94.596c.793-.573 1.801-.79 2.672-.397.9.405 1.388 1.336 1.388 2.51zM10.612 1.5c.48-.347 1.056-.41 1.548 0 .428.357.45.525.506.93l.01.07c0 .599-.516 1.5-1.032 1.5-.366 0-.653-.003-.922-.006-.49-.005-.92-.01-1.657.006.14-.272.252-.533.36-.782.285-.667.534-1.246 1.187-1.718zm-5.673 0c-.233-.161-.766-.09-.987.006-.183.08-.456.32-.456 1.015 0 .674 1.092 1.257 1.092 1.257S5.454 4 7.002 4c-.527-1.305-1.273-1.951-2.063-2.5z",fill:"var(--sl-color-primary-600)"}));function i(e){const{points:i=0,cardTitle:n="Title Text",description:d="Description Text",showProgressBar:c=!1,progress:p=0,goal:v=1,repeatable:g=!1,expire:f=!1,dateExpire:m="",buttonText:h="Button Text",buttonLink:x="www.example.com"}=e,u=s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},s("path",{fill:"currentColor","fill-rule":"evenodd",d:"M1.636 9a7.364 7.364 0 1114.728 0A7.364 7.364 0 011.636 9zM9 0a9 9 0 100 18A9 9 0 009 0zm5.192 6.266a.982.982 0 00-1.548-1.208l-4.787 6.137-2.58-2.58a.982.982 0 00-1.39 1.388l3.367 3.366a.982.982 0 001.468-.09l5.47-7.013z","clip-rule":"evenodd"})),b=s("svg",{width:11,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z",fill:"currentColor"})),y={HostBlock:a,TaskCard:{"& .main > div":{margin:"var(--sl-spacing-medium)"},"& .main":{position:"relative",boxSizing:"border-box",minWidth:"347px",background:"var(--sl-color-white)",border:"1px solid var(--sl-color-gray-300)",borderRadius:"var(--sl-border-radius-medium)",fontSize:"var(--sl-font-size-small)",lineHeight:"var(--sl-line-height-dense)"},"& .main.complete":{background:"var(--sl-color-primary-50)",borderColor:"var(--sl-color-primary-700)"}},Header:{display:"flex","& .icon":{alignSelf:"center",lineHeight:"0",color:"var(--sl-color-primary-700)",fontSize:"var(--sl-font-size-large)",marginRight:"var(--sl-spacing-x-small)"},"& .value":{alignSelf:"center",color:"var(--sl-color-black)",fontSize:"var(--sl-font-size-x-large)",fontWeight:"var(--sl-font-weight-semibold)",lineHeight:"100%",marginRight:"var(--sl-spacing-xx-small)"},"& .text":{alignSelf:"end",textTransform:"uppercase",color:"var(--sl-color-gray-600)",fontSize:"var(--sl-font-size-x-small)",lineHeight:"var(--sl-font-size-medium)",marginRight:"var(--sl-spacing-xx-small)"}},Title:{color:"var(--sl-color-black)",fontSize:"var(--sl-font-size-small)"},Footer:{display:"flex","& .icon":{fontSize:"var(--sl-font-size-xx-small)",marginRight:"var(--sl-spacing-xx-small)"},"& .text":{marginTop:"auto",fontSize:"var(--sl-font-size-x-small)",color:"var(--sl-color-gray-600)"},"& .action":{marginTop:"auto",marginLeft:"auto"},"& sl-button.action::part(base) ":{color:"var(--sl-color-white)",background:"var(--sl-color-primary-500)",border:"1px solid var(--sl-color-primary-500)",borderRadius:"var(--sl-border-radius-medium)"}}};r.setup(l());const w=r.createStyleSheet(y),z=w.toString(),k=p>=v,H=c?Math.floor(p/v):p;return s("div",{class:w.classes.TaskCard},s("div",{class:k?"main complete":"main"},s("style",{type:"text/css"},z),s("div",{class:w.classes.Header},k&&s("span",{class:"icon"},u),s("span",{class:"value"},i),s("span",{class:"text"},"saasquatch points")),s("div",{class:w.classes.Title},n),c&&s(o,Object.assign({},e)),s(t,{description:d}),s("div",{class:w.classes.Footer},s("span",{class:"text"},g&&s("div",null,s("span",{class:"icon"},b),s("span",null,"Completed ",H," times"),s("br",null),s("span",null,"Earned ",i*H," SaaSquatch Points")),f&&s("span",null,s("br",null),"Ends "," ",m)),s("sl-button",{class:"action",size:"small",onClick:()=>alert(x),disabled:k},k?"Complete":h))))}function t(e){const i={HostBlock:a,Description:{"& input[type=checkbox]":{display:"none"},"& input:checked ~ .details":{transform:"rotate(-180deg)"},"& .details":{position:"absolute",top:"var(--sl-spacing-medium)",right:"var(--sl-spacing-medium)",color:"var(--sl-color-gray-700)",fontSize:"var(--sl-font-size-large)","& :hover":{color:"var(--sl-color-primary-700)"},transformOrigin:"50% 37%",transition:"transform var(--sl-transition-medium) ease"},"& input:checked ~ .summary":{transition:"max-height var(--sl-transition-medium) ease",maxHeight:"300px"},"& .summary":{display:"block",overflow:"hidden",color:"var(--sl-color-gray-700)",fontSize:"var(--sl-font-size-x-small)",maxHeight:"0px",transition:"max-height var(--sl-transition-fast) ease-out"}}};r.setup(l());const t=r.createStyleSheet(i),o=t.toString(),n=Math.random().toString(36).slice(2);return s("div",null,s("style",{type:"text/css"},o),s("span",{class:t.classes.Description},s("input",{type:"checkbox",id:"details-"+n}),s("label",{class:"details",htmlFor:"details-"+n},s("sl-icon",{name:"chevron-down"})),s("span",{class:"summary"},e.description)))}function o(i){const{goal:t,progress:o,steps:n,unit:d="",repeatable:c}=i,p=e(),v=e(),g=e(),f=[];var m="",h=Math.floor(o/t);c?n?function(){let r=Math.floor(o/t);if(r<2){let r=n/t;for(let l=1;l<2*t+1;l+=n)m+=r+"fr 0fr ",l>o?l==t?(m+="0fr ",f.push(s("div",{class:"remain"})),f.push(s("div",{class:"empty bg"},d+t)),f.push(s("div",{class:"end bw"},p))):l==2*t?(m+="0fr 0fr",f.push(s("div",{class:"remain"})),f.push(s("div",{class:"empty bg"},d+2*t)),f.push(s("div",{class:"end bw"},v))):(f.push(s("div",{class:"remain"})),f.push(s("div",{class:"empty"},d+l))):l==t?(m+="0fr ",f.push(s("div",{class:"filled"})),f.push(s("div",{class:"progress bg"},d+l)),f.push(s("div",{class:"end"},g))):(f.push(s("div",{class:"filled"})),f.push(s("div",{class:"progress"},d+l)))}else{let l=o%t+t,a=n/t;m+="0fr 0fr ",f.push(s("div",{class:"progress bg"},d+t*(r-1))),f.push(s("div",{class:"end start"},p));for(let e=1;e<2*t+1;e+=n)m+=a+"fr 0fr ",e<=t?e==t?(m+="0fr ",f.push(s("div",{class:"filled"})),f.push(s("div",{class:"progress bg"},d+(e+t*(r-1)))),f.push(s("div",{class:"end"},v))):(f.push(s("div",{class:"filled"})),f.push(s("div",{class:"progress"},d+(e+t*(r-1))))):e>l?e==2*t?(m+="0fr 0fr",f.push(s("div",{class:"remain"})),f.push(s("div",{class:"empty bg"},d+(e+t*(r-1)))),f.push(s("div",{class:"end bw"},g))):(f.push(s("div",{class:"remain"})),f.push(s("div",{class:"empty"},d+(e+t*(r-1))))):(f.push(s("div",{class:"filled"})),f.push(s("div",{class:"progress"},d+(e+t*(r-1)))))}}():function(){let r=o%t/t*.5,l=Math.floor(o/t);0==l?(m=r+"fr 0fr "+(.5-r)+"fr 0fr 0.5fr 0fr",f.push(s("div",{class:"filled"})),f.push(s("div",{class:o==t?"progress bg":"progress"},d+o)),f.push(s("div",{class:"remain"})),f.push(s("div",{class:"end"},p)),f.push(s("div",{class:"remain"})),f.push(s("div",{class:"end bw"},v))):1==l?(m="0.5fr 0fr "+r+"fr 0fr "+(.5-r)+"fr 0fr",f.push(s("div",{class:"filled"})),f.push(s("div",{class:"end"},p)),f.push(s("div",{class:"filled"})),f.push(s("div",{class:o==t?"progress bg":"progress"},d+o)),f.push(s("div",{class:"remain"})),f.push(s("div",{class:"end bw"},v))):(m="0fr 0.5fr 0fr "+r+"fr 0fr "+(.5-r)+"fr 0fr",f.push(s("div",{class:"end start"},p)),f.push(s("div",{class:"filled"})),f.push(s("div",{class:"end"},v)),f.push(s("div",{class:"filled"})),f.push(s("div",{class:o==t*l?"progress bg":"progress"},d+o)),f.push(s("div",{class:"remain"})),f.push(s("div",{class:"end bw"},g)))}():n?function(){let r=n/t;for(let l=1;l<t;l+=n)m+=r+"fr 0fr ",l>o?(f.push(s("div",{class:"remain"})),f.push(s("div",{class:"empty"},d+l))):(f.push(s("div",{class:"filled"})),f.push(s("div",{class:"progress"},d+l)));m+=r+"fr 0fr ",t<=o?(m+="0fr ",f.push(s("div",{class:"filled"})),f.push(s("div",{class:"progress bg"},d+t)),f.push(s("div",{class:"end"},p))):(m+="0fr ",f.push(s("div",{class:"remain"})),f.push(s("div",{class:"empty bg"},d+t)),f.push(s("div",{class:"end"},p)))}():(m=Math.min(Math.max(o/t,0),1)+"fr 0fr "+Math.min(Math.max(1-o/t,0),1)+"fr 0fr",f.push(s("div",{class:"filled"})),f.push(s("div",{class:o==t?"progress bg":"progress"},d+o)),f.push(s("div",{class:"remain"})),f.push(s("div",{class:"end"},p)));const x={HostBlock:a,ProgressBar:{"& .progress-bar":{height:"20px",marginTop:"var(--sl-spacing-large)",marginRight:"var(--sl-spacing-x-small)",marginBottom:"var(--sl-spacing-large)",fontSize:"var(--sl-font-size-x-small)",display:"grid",gridTemplateColumns:m,lineHeight:"45px",userSelect:"none"},"& .progress-bar.repeatable-steps":{marginLeft:"var(--sl-spacing-x-small)"},"& .filled:after":{content:'""',display:"flex",width:"100%",height:"4px",borderRadius:"4px",backgroundColor:"var(--sl-color-primary-500)"},"& .progress":{display:"block",textAlign:"center",marginLeft:"-100px",marginRight:"-100px"},"& .progress::after":{content:'""',width:"12px",height:"12px",display:"flex",backgroundColor:"var(--sl-color-primary-500)",borderRadius:"50%",position:"relative",left:"47%",top:"-85%"},"& .progress.bg:after":{width:"0",height:"0",border:"none"},"& .empty":{display:"block",textAlign:"center",marginLeft:"-100px",marginRight:"-100px"},"& .empty::after":{content:'""',width:"12px",height:"12px",border:"2px solid #E0E0E0",margin:"-2px",display:"flex",backgroundColor:"white",borderRadius:"50%",position:"relative",left:"47%",top:"-85%"},"& .empty.bg:after":{width:"0",height:"0",border:"none"},"& .remain:after":{content:'""',display:"flex",width:"100%",height:"4px",borderRadius:"4px",backgroundColor:"#E0E0E0"},"& .end.bw":{filter:"grayscale(100%)"},"& .end.start":{transform:"scale(80%)",top:"-20px"},"& .end":{textAlign:"center",marginLeft:"-100px",marginRight:"-100px",position:"relative",display:"list-item",listStyleType:"none",top:"-18px",filter:t<=o?"":"grayscale(100%)",zIndex:"1"}}};r.setup(l());const u=r.createStyleSheet(x),b=u.toString();return s("div",{class:u.classes.ProgressBar},s("style",{type:"text/css"},b),s("div",{class:h>1?"progress-bar repeatable-steps":"progress-bar"},f))}export{i as T}