@sudobility/subscription-components 1.0.3 → 1.0.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.
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +619 -502
- package/dist/index.umd.js +1 -1
- package/dist/subscription-layout.d.ts +16 -3
- package/dist/subscription-layout.d.ts.map +1 -1
- package/dist/subscription-tile.d.ts +3 -1
- package/dist/subscription-tile.d.ts.map +1 -1
- package/dist/types.d.ts +11 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(I,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react/jsx-runtime"),require("@sudobility/design"),require("@sudobility/components"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@sudobility/design","@sudobility/components","react"],l):(I=typeof globalThis<"u"?globalThis:I||self,l(I.SubscriptionComponents={},I.ReactJSXRuntime,I.SudobilityDesign,I.SudobilityComponents,I.React))})(this,(function(I,l,de,Q,N){"use strict";function we(e){var o,r,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(o=0;o<s;o++)e[o]&&(r=we(e[o]))&&(t&&(t+=" "),t+=r)}else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function We(){for(var e,o,r=0,t="",s=arguments.length;r<s;r++)(e=arguments[r])&&(o=we(e))&&(t&&(t+=" "),t+=o);return t}const Ue=(e,o)=>{const r=new Array(e.length+o.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let t=0;t<o.length;t++)r[e.length+t]=o[t];return r},Be=(e,o)=>({classGroupId:e,validator:o}),ye=(e=new Map,o=null,r)=>({nextPart:e,validators:o,classGroupId:r}),Z="-",ke=[],qe="arbitrary..",Ye=e=>{const o=Xe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Ke(i);const m=i.split(Z),d=m[0]===""&&m.length>1?1:0;return ve(m,d,o)},getConflictingClassGroupIds:(i,m)=>{if(m){const d=t[i],b=r[i];return d?b?Ue(b,d):d:b||ke}return r[i]||ke}}},ve=(e,o,r)=>{if(e.length-o===0)return r.classGroupId;const s=e[o],c=r.nextPart.get(s);if(c){const b=ve(e,o+1,c);if(b)return b}const i=r.validators;if(i===null)return;const m=o===0?e.join(Z):e.slice(o).join(Z),d=i.length;for(let b=0;b<d;b++){const y=i[b];if(y.validator(m))return y.classGroupId}},Ke=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=e.slice(1,-1),r=o.indexOf(":"),t=o.slice(0,r);return t?qe+t:void 0})(),Xe=e=>{const{theme:o,classGroups:r}=e;return Je(r,o)},Je=(e,o)=>{const r=ye();for(const t in e){const s=e[t];ue(s,r,t,o)}return r},ue=(e,o,r,t)=>{const s=e.length;for(let c=0;c<s;c++){const i=e[c];Re(i,o,r,t)}},Re=(e,o,r,t)=>{if(typeof e=="string"){He(e,o,r);return}if(typeof e=="function"){Qe(e,o,r,t);return}Ze(e,o,r,t)},He=(e,o,r)=>{const t=e===""?o:Ce(o,e);t.classGroupId=r},Qe=(e,o,r,t)=>{if(er(e)){ue(e(t),o,r,t);return}o.validators===null&&(o.validators=[]),o.validators.push(Be(r,e))},Ze=(e,o,r,t)=>{const s=Object.entries(e),c=s.length;for(let i=0;i<c;i++){const[m,d]=s[i];ue(d,Ce(o,m),r,t)}},Ce=(e,o)=>{let r=e;const t=o.split(Z),s=t.length;for(let c=0;c<s;c++){const i=t[c];let m=r.nextPart.get(i);m||(m=ye(),r.nextPart.set(i,m)),r=m}return r},er=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,rr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,r=Object.create(null),t=Object.create(null);const s=(c,i)=>{r[c]=i,o++,o>e&&(o=0,t=r,r=Object.create(null))};return{get(c){let i=r[c];if(i!==void 0)return i;if((i=t[c])!==void 0)return s(c,i),i},set(c,i){c in r?r[c]=i:s(c,i)}}},me="!",Se=":",tr=[],Pe=(e,o,r,t,s)=>({modifiers:e,hasImportantModifier:o,baseClassName:r,maybePostfixModifierPosition:t,isExternal:s}),or=e=>{const{prefix:o,experimentalParseClassName:r}=e;let t=s=>{const c=[];let i=0,m=0,d=0,b;const y=s.length;for(let S=0;S<y;S++){const P=s[S];if(i===0&&m===0){if(P===Se){c.push(s.slice(d,S)),d=S+1;continue}if(P==="/"){b=S;continue}}P==="["?i++:P==="]"?i--:P==="("?m++:P===")"&&m--}const v=c.length===0?s:s.slice(d);let C=v,x=!1;v.endsWith(me)?(C=v.slice(0,-1),x=!0):v.startsWith(me)&&(C=v.slice(1),x=!0);const T=b&&b>d?b-d:void 0;return Pe(c,x,C,T)};if(o){const s=o+Se,c=t;t=i=>i.startsWith(s)?c(i.slice(s.length)):Pe(tr,!1,i,void 0,!0)}if(r){const s=t;t=c=>r({className:c,parseClassName:s})}return t},sr=e=>{const o=new Map;return e.orderSensitiveModifiers.forEach((r,t)=>{o.set(r,1e6+t)}),r=>{const t=[];let s=[];for(let c=0;c<r.length;c++){const i=r[c],m=i[0]==="[",d=o.has(i);m||d?(s.length>0&&(s.sort(),t.push(...s),s=[]),t.push(i)):s.push(i)}return s.length>0&&(s.sort(),t.push(...s)),t}},nr=e=>({cache:rr(e.cacheSize),parseClassName:or(e),sortModifiers:sr(e),...Ye(e)}),ar=/\s+/,ir=(e,o)=>{const{parseClassName:r,getClassGroupId:t,getConflictingClassGroupIds:s,sortModifiers:c}=o,i=[],m=e.trim().split(ar);let d="";for(let b=m.length-1;b>=0;b-=1){const y=m[b],{isExternal:v,modifiers:C,hasImportantModifier:x,baseClassName:T,maybePostfixModifierPosition:S}=r(y);if(v){d=y+(d.length>0?" "+d:d);continue}let P=!!S,L=t(P?T.substring(0,S):T);if(!L){if(!P){d=y+(d.length>0?" "+d:d);continue}if(L=t(T),!L){d=y+(d.length>0?" "+d:d);continue}P=!1}const $=C.length===0?"":C.length===1?C[0]:c(C).join(":"),W=x?$+me:$,w=W+L;if(i.indexOf(w)>-1)continue;i.push(w);const G=s(L,P);for(let _=0;_<G.length;++_){const F=G[_];i.push(W+F)}d=y+(d.length>0?" "+d:d)}return d},lr=(...e)=>{let o=0,r,t,s="";for(;o<e.length;)(r=e[o++])&&(t=ze(r))&&(s&&(s+=" "),s+=t);return s},ze=e=>{if(typeof e=="string")return e;let o,r="";for(let t=0;t<e.length;t++)e[t]&&(o=ze(e[t]))&&(r&&(r+=" "),r+=o);return r},cr=(e,...o)=>{let r,t,s,c;const i=d=>{const b=o.reduce((y,v)=>v(y),e());return r=nr(b),t=r.cache.get,s=r.cache.set,c=m,m(d)},m=d=>{const b=t(d);if(b)return b;const y=ir(d,r);return s(d,y),y};return c=i,(...d)=>c(lr(...d))},dr=[],z=e=>{const o=r=>r[e]||dr;return o.isThemeGetter=!0,o},Ne=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ae=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ur=/^\d+\/\d+$/,mr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,br=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>ur.test(e),g=e=>!!e&&!Number.isNaN(Number(e)),B=e=>!!e&&Number.isInteger(Number(e)),pe=e=>e.endsWith("%")&&g(e.slice(0,-1)),U=e=>mr.test(e),hr=()=>!0,xr=e=>pr.test(e)&&!fr.test(e),Ie=()=>!1,wr=e=>br.test(e),yr=e=>gr.test(e),kr=e=>!n(e)&&!a(e),vr=e=>K(e,Oe,Ie),n=e=>Ne.test(e),q=e=>K(e,Ge,xr),fe=e=>K(e,Nr,g),Me=e=>K(e,De,Ie),Cr=e=>K(e,Ee,yr),ee=e=>K(e,je,wr),a=e=>Ae.test(e),H=e=>X(e,Ge),Sr=e=>X(e,Ar),Te=e=>X(e,De),Pr=e=>X(e,Oe),zr=e=>X(e,Ee),re=e=>X(e,je,!0),K=(e,o,r)=>{const t=Ne.exec(e);return t?t[1]?o(t[1]):r(t[2]):!1},X=(e,o,r=!1)=>{const t=Ae.exec(e);return t?t[1]?o(t[1]):r:!1},De=e=>e==="position"||e==="percentage",Ee=e=>e==="image"||e==="url",Oe=e=>e==="length"||e==="size"||e==="bg-size",Ge=e=>e==="length",Nr=e=>e==="number",Ar=e=>e==="family-name",je=e=>e==="shadow",Ir=cr(()=>{const e=z("color"),o=z("font"),r=z("text"),t=z("font-weight"),s=z("tracking"),c=z("leading"),i=z("breakpoint"),m=z("container"),d=z("spacing"),b=z("radius"),y=z("shadow"),v=z("inset-shadow"),C=z("text-shadow"),x=z("drop-shadow"),T=z("blur"),S=z("perspective"),P=z("aspect"),L=z("ease"),$=z("animate"),W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...w(),a,n],_=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],p=()=>[a,n,d],V=()=>[Y,"full","auto",...p()],te=()=>[B,"none","subgrid",a,n],oe=()=>["auto",{span:["full",B,a,n]},B,a,n],J=()=>[B,"auto",a,n],se=()=>["auto","min","max","fr",a,n],f=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],h=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...p()],E=()=>[Y,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...p()],u=()=>[e,a,n],R=()=>[...w(),Te,Me,{position:[a,n]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Fe=()=>["auto","cover","contain",Pr,vr,{size:[a,n]}],he=()=>[pe,H,q],D=()=>["","none","full",b,a,n],j=()=>["",g,H,q],ae=()=>["solid","dashed","dotted","double"],Ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>[g,pe,Te,Me],$e=()=>["","none",T,a,n],ie=()=>["none",g,a,n],le=()=>["none",g,a,n],xe=()=>[g,a,n],ce=()=>[Y,"full",...p()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[U],breakpoint:[U],color:[hr],container:[U],"drop-shadow":[U],ease:["in","out","in-out"],font:[kr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[U],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[U],shadow:[U],spacing:["px",g],text:[U],"text-shadow":[U],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Y,n,a,P]}],container:["container"],columns:[{columns:[g,n,a,m]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[B,"auto",a,n]}],basis:[{basis:[Y,"full","auto",m,...p()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[g,Y,"auto","initial","none",n]}],grow:[{grow:["",g,a,n]}],shrink:[{shrink:["",g,a,n]}],order:[{order:[B,"first","last","none",a,n]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:oe()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:oe()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:p()}],"gap-x":[{"gap-x":p()}],"gap-y":[{"gap-y":p()}],"justify-content":[{justify:[...f(),"normal"]}],"justify-items":[{"justify-items":[...h(),"normal"]}],"justify-self":[{"justify-self":["auto",...h()]}],"align-content":[{content:["normal",...f()]}],"align-items":[{items:[...h(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...h(),{baseline:["","last"]}]}],"place-content":[{"place-content":f()}],"place-items":[{"place-items":[...h(),"baseline"]}],"place-self":[{"place-self":["auto",...h()]}],p:[{p:p()}],px:[{px:p()}],py:[{py:p()}],ps:[{ps:p()}],pe:[{pe:p()}],pt:[{pt:p()}],pr:[{pr:p()}],pb:[{pb:p()}],pl:[{pl:p()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":p()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":p()}],"space-y-reverse":["space-y-reverse"],size:[{size:E()}],w:[{w:[m,"screen",...E()]}],"min-w":[{"min-w":[m,"screen","none",...E()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[i]},...E()]}],h:[{h:["screen","lh",...E()]}],"min-h":[{"min-h":["screen","lh","none",...E()]}],"max-h":[{"max-h":["screen","lh",...E()]}],"font-size":[{text:["base",r,H,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,a,fe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pe,n]}],"font-family":[{font:[Sr,n,o]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,a,n]}],"line-clamp":[{"line-clamp":[g,"none",a,fe]}],leading:[{leading:[c,...p()]}],"list-image":[{"list-image":["none",a,n]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",a,n]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:u()}],"text-color":[{text:u()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[g,"from-font","auto",a,q]}],"text-decoration-color":[{decoration:u()}],"underline-offset":[{"underline-offset":[g,"auto",a,n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",a,n]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",a,n]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:Fe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},B,a,n],radial:["",a,n],conic:[B,a,n]},zr,Cr]}],"bg-color":[{bg:u()}],"gradient-from-pos":[{from:he()}],"gradient-via-pos":[{via:he()}],"gradient-to-pos":[{to:he()}],"gradient-from":[{from:u()}],"gradient-via":[{via:u()}],"gradient-to":[{to:u()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:u()}],"border-color-x":[{"border-x":u()}],"border-color-y":[{"border-y":u()}],"border-color-s":[{"border-s":u()}],"border-color-e":[{"border-e":u()}],"border-color-t":[{"border-t":u()}],"border-color-r":[{"border-r":u()}],"border-color-b":[{"border-b":u()}],"border-color-l":[{"border-l":u()}],"divide-color":[{divide:u()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[g,a,n]}],"outline-w":[{outline:["",g,H,q]}],"outline-color":[{outline:u()}],shadow:[{shadow:["","none",y,re,ee]}],"shadow-color":[{shadow:u()}],"inset-shadow":[{"inset-shadow":["none",v,re,ee]}],"inset-shadow-color":[{"inset-shadow":u()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:u()}],"ring-offset-w":[{"ring-offset":[g,q]}],"ring-offset-color":[{"ring-offset":u()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":u()}],"text-shadow":[{"text-shadow":["none",C,re,ee]}],"text-shadow-color":[{"text-shadow":u()}],opacity:[{opacity:[g,a,n]}],"mix-blend":[{"mix-blend":[...Ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[g]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":u()}],"mask-image-linear-to-color":[{"mask-linear-to":u()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":u()}],"mask-image-t-to-color":[{"mask-t-to":u()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":u()}],"mask-image-r-to-color":[{"mask-r-to":u()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":u()}],"mask-image-b-to-color":[{"mask-b-to":u()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":u()}],"mask-image-l-to-color":[{"mask-l-to":u()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":u()}],"mask-image-x-to-color":[{"mask-x-to":u()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":u()}],"mask-image-y-to-color":[{"mask-y-to":u()}],"mask-image-radial":[{"mask-radial":[a,n]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":u()}],"mask-image-radial-to-color":[{"mask-radial-to":u()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[g]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":u()}],"mask-image-conic-to-color":[{"mask-conic-to":u()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:Fe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",a,n]}],filter:[{filter:["","none",a,n]}],blur:[{blur:$e()}],brightness:[{brightness:[g,a,n]}],contrast:[{contrast:[g,a,n]}],"drop-shadow":[{"drop-shadow":["","none",x,re,ee]}],"drop-shadow-color":[{"drop-shadow":u()}],grayscale:[{grayscale:["",g,a,n]}],"hue-rotate":[{"hue-rotate":[g,a,n]}],invert:[{invert:["",g,a,n]}],saturate:[{saturate:[g,a,n]}],sepia:[{sepia:["",g,a,n]}],"backdrop-filter":[{"backdrop-filter":["","none",a,n]}],"backdrop-blur":[{"backdrop-blur":$e()}],"backdrop-brightness":[{"backdrop-brightness":[g,a,n]}],"backdrop-contrast":[{"backdrop-contrast":[g,a,n]}],"backdrop-grayscale":[{"backdrop-grayscale":["",g,a,n]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g,a,n]}],"backdrop-invert":[{"backdrop-invert":["",g,a,n]}],"backdrop-opacity":[{"backdrop-opacity":[g,a,n]}],"backdrop-saturate":[{"backdrop-saturate":[g,a,n]}],"backdrop-sepia":[{"backdrop-sepia":["",g,a,n]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":p()}],"border-spacing-x":[{"border-spacing-x":p()}],"border-spacing-y":[{"border-spacing-y":p()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",a,n]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[g,"initial",a,n]}],ease:[{ease:["linear","initial",L,a,n]}],delay:[{delay:[g,a,n]}],animate:[{animate:["none",$,a,n]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,a,n]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[a,n,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:u()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:u()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",a,n]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",a,n]}],fill:[{fill:["none",...u()]}],"stroke-w":[{stroke:[g,H,q,fe]}],stroke:[{stroke:["none",...u()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function O(...e){return Ir(We(e))}const Mr={purple:"bg-purple-500",green:"bg-green-500",blue:"bg-blue-500",yellow:"bg-yellow-500",red:"bg-red-500"},Tr=({id:e,title:o,price:r,periodLabel:t,features:s,isSelected:c,onSelect:i,topBadge:m,discountBadge:d,premiumCallout:b,bottomNote:y,introPriceNote:v,isBestValue:C=!1,className:x,children:T,disabled:S=!1,ariaLabel:P})=>{const L=c?C?"border-purple-500 bg-purple-50 dark:bg-purple-900/20 shadow-lg":"border-blue-500 bg-blue-50 dark:bg-blue-900/20 shadow-lg":"border-gray-200 dark:border-gray-700 hover:border-gray-300 hover:shadow-md",$=()=>{S||i()},W=w=>{!S&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),i())};return l.jsxs("div",{className:O("relative border-2 rounded-xl p-6 transition-all flex flex-col",S?"opacity-50 cursor-not-allowed":"cursor-pointer",L,x),onClick:$,onKeyDown:W,role:"radio","aria-checked":c,"aria-label":P||`${o} - ${r}${t||""}`,"aria-disabled":S,tabIndex:S?-1:0,children:[m&&l.jsx("div",{className:"absolute -top-3 left-1/2 transform -translate-x-1/2",children:l.jsx("span",{className:O(Mr[m.color],"text-white px-3 py-1 rounded-full text-sm font-semibold shadow-lg whitespace-nowrap"),children:m.text})}),l.jsxs("div",{className:"flex flex-col flex-grow",children:[l.jsxs("div",{className:"text-center mb-6",children:[l.jsx("h3",{className:O(de.textVariants.heading.h4(),"mb-2"),children:o}),l.jsxs("div",{className:"mb-3",children:[l.jsx("span",{className:O("text-4xl font-bold",C?"text-purple-600 dark:text-purple-400":"text-blue-600 dark:text-blue-400"),children:r}),t&&l.jsx("span",{className:"text-gray-500 dark:text-gray-400 text-lg",children:t})]}),d&&l.jsx("div",{className:O("inline-flex items-center px-2 py-1 rounded-full text-sm font-semibold",d.isBestValue?"bg-purple-100 text-purple-700 dark:bg-purple-900/50 dark:text-purple-300":"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300"),children:d.text})]}),T,s.length>0&&l.jsx("div",{className:"space-y-3 mb-6 flex-grow",children:s.map((w,G)=>l.jsxs("div",{className:"flex items-start",children:[l.jsx("span",{className:O("text-lg mr-3 flex-shrink-0",C?"text-purple-500":"text-green-500"),children:"✓"}),l.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300 text-left",children:w.replace(/^✓\s*/,"")})]},G))}),b&&l.jsxs("div",{className:"bg-gradient-to-r from-purple-50 to-blue-50 dark:from-purple-900/20 dark:to-blue-900/20 rounded-lg p-4 mb-4",children:[l.jsx("div",{className:"flex items-center mb-2",children:l.jsx("span",{className:"text-purple-600 dark:text-purple-400 font-semibold text-sm",children:b.title})}),l.jsx("ul",{className:"text-xs text-gray-600 dark:text-gray-400 space-y-1",children:b.features.map((w,G)=>l.jsxs("li",{children:["• ",w]},G))})]}),y&&l.jsx("div",{className:O("text-center text-sm font-medium mb-4",C?"text-purple-600 dark:text-purple-400":"text-blue-600 dark:text-blue-400"),children:y})]}),l.jsxs("div",{className:"mt-auto space-y-4",children:[v&&l.jsx("div",{className:"p-3 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg",children:l.jsx("p",{className:"text-sm text-yellow-700 dark:text-yellow-300 font-semibold text-center",children:v})}),l.jsx("div",{className:"flex justify-center",children:l.jsx("div",{className:O("w-5 h-5 rounded-full border-2 flex items-center justify-center",c?C?"border-purple-600 bg-purple-600":"border-blue-600 bg-blue-600":"border-gray-300 dark:border-gray-600"),children:c&&l.jsx("div",{className:"w-2 h-2 rounded-full bg-white"})})})]})]})},Dr=({title:e,children:o,error:r,currentStatus:t,primaryAction:s,secondaryAction:c,minTileWidth:i=240,className:m,headerContent:d,aboveProducts:b,footerContent:y,currentStatusLabel:v="Current Status"})=>{const C={display:"grid",gridTemplateColumns:`repeat(auto-fit, minmax(min(100%, ${i}px), 1fr))`,gap:"1.5rem"};return l.jsx(Q.Card,{className:m,children:l.jsxs(Q.CardContent,{className:"pt-6",children:[d,t&&l.jsxs(l.Fragment,{children:[l.jsx("h2",{className:O(de.textVariants.heading.h3(),"mb-4"),children:v}),t.isActive?l.jsxs("div",{className:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg p-4 mb-6",children:[l.jsxs("div",{className:"flex items-center mb-2",children:[l.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full mr-3"}),l.jsx("span",{className:"font-semibold text-green-800 dark:text-green-300",children:t.activeContent?.title||"Active Subscription"})]}),t.activeContent?.fields&&t.activeContent.fields.length>0&&l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-4",children:t.activeContent.fields.map((x,T)=>l.jsxs("div",{children:[l.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:x.label}),l.jsx("p",{className:"font-semibold text-green-800 dark:text-green-300",children:x.value})]},T))})]}):l.jsxs("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4 mb-6",children:[l.jsxs("div",{className:"flex items-center mb-2",children:[l.jsx("div",{className:"w-3 h-3 bg-yellow-500 rounded-full mr-3"}),l.jsx("span",{className:"font-semibold text-yellow-800 dark:text-yellow-300",children:t.inactiveContent?.title||"No Active Subscription"})]}),t.inactiveContent?.message&&l.jsx("p",{className:"text-yellow-700 dark:text-yellow-400",children:t.inactiveContent.message})]})]}),l.jsx("h2",{className:O(de.textVariants.heading.h3(),"mb-4"),children:e}),b,l.jsx("div",{style:C,children:o}),y,r&&l.jsx("div",{className:"bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg p-4 mt-6",children:l.jsx("p",{className:"text-red-600 dark:text-red-400",children:r})}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mt-6",children:[c&&l.jsx(Q.Button,{onClick:c.onClick,disabled:c.disabled||c.loading,variant:"outline",className:"sm:flex-shrink-0",children:c.label}),l.jsx(Q.Button,{onClick:s.onClick,disabled:s.disabled||s.loading,className:"flex-1",children:s.label})]})]})})};function Er({options:e,value:o,onChange:r,className:t,disabled:s=!1,size:c="md"}){const i={sm:"px-3 py-1.5 text-xs",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base"};return l.jsx("div",{className:O("inline-flex rounded-lg bg-gray-100 dark:bg-gray-800 p-1",s&&"opacity-50",t),role:"radiogroup",children:e.map(m=>{const d=o===m.value;return l.jsx("button",{type:"button",role:"radio","aria-checked":d,disabled:s,onClick:()=>!s&&r(m.value),className:O(i[c],"font-medium rounded-md transition-all focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",d?"bg-white dark:bg-gray-700 text-gray-900 dark:text-white shadow-sm":"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white",s&&"cursor-not-allowed"),children:m.label},m.value)})})}let be=null;const Or=async()=>(be||(be=await import("@revenuecat/purchases-js")),be);let M=null;const Gr=e=>{const o=e.rcBillingProduct,r=o?.defaultSubscriptionOption;return{identifier:e.identifier,productId:o?.identifier||void 0,price:o?.currentPrice?.amountMicros?(o.currentPrice.amountMicros/1e6).toFixed(2):"0",priceString:o?.currentPrice?.formattedPrice||"$0",title:o?.title||e.identifier,description:o?.description||"",period:o?.normalPeriodDuration||void 0,introPrice:r?.introPrice?.price?.formattedPrice||void 0,introPriceAmount:r?.introPrice?.price?.amountMicros?(r.introPrice.price.amountMicros/1e6).toFixed(2):void 0,introPricePeriod:r?.introPrice?.periodDuration||void 0,introPriceCycles:r?.introPrice?.cycleCount||void 0,freeTrialPeriod:r?.trial?.periodDuration||void 0}},ge=(e,o)=>{const r=e.entitlements.active[o];return r?{isActive:!0,expirationDate:r.expirationDate?new Date(r.expirationDate):void 0,purchaseDate:r.latestPurchaseDate?new Date(r.latestPurchaseDate):void 0,productIdentifier:r.productIdentifier,willRenew:r.willRenew,isSandbox:r.isSandbox,unsubscribeDetectedAt:r.unsubscribeDetectedAt?new Date(r.unsubscribeDetectedAt):void 0,billingIssueDetectedAt:r.billingIssueDetectedAt?new Date(r.billingIssueDetectedAt):void 0}:{isActive:!1}},Le=N.createContext(void 0),jr=({apiKey:e,entitlementId:o,userEmail:r,onError:t,onPurchaseSuccess:s,children:c})=>{const[i,m]=N.useState([]),[d,b]=N.useState(null),[y,v]=N.useState(!1),[C,x]=N.useState(null),[T,S]=N.useState(!1),[P,L]=N.useState(null),[$,W]=N.useState(null),w=!e||e==="your_revenuecat_api_key_here",G=N.useCallback(()=>{m([]),b(null),W(null),x(null),S(!1),L(null),M=null},[]),_=N.useCallback(async()=>{if(M)try{const f=await M.getOfferings();if(f.current){W(f.current);const h=f.current.availablePackages.map(Gr);m(h)}}catch(f){const h=f instanceof Error?f.message:"Failed to load offerings";x(h),t?.(f instanceof Error?f:new Error(h))}},[t]),F=N.useCallback(async()=>{if(M)try{const f=await M.getCustomerInfo(),h=ge(f,o);b(h.isActive?h:null)}catch(f){const h=f instanceof Error?f.message:"Failed to load subscription status";x(h),t?.(f instanceof Error?f:new Error(h))}},[o,t]),p=N.useCallback(async(f,h)=>{if(P&&P!==f&&G(),!(T&&P===f))try{if(v(!0),x(null),w)console.warn("[SubscriptionProvider] RevenueCat API key not configured"),m([]),b(null);else{const k=await Or(),E={apiKey:e,appUserId:f};M=k.Purchases.configure(E);const u=h||r;if(u&&M)try{await M.setAttributes({email:u})}catch{}await Promise.all([_(),F()])}L(f),S(!0)}catch(k){const E=k instanceof Error?k.message:"Failed to initialize";x(E),b(null),m([]),t?.(k instanceof Error?k:new Error(E))}finally{v(!1)}},[P,T,w,e,r,_,F,t,G]),V=N.useCallback(async f=>{try{if(v(!0),x(null),w){await new Promise(ne=>setTimeout(ne,2e3));const R={isActive:!0,expirationDate:new Date(Date.now()+365*24*60*60*1e3),purchaseDate:new Date,productIdentifier:f,willRenew:!0};return b(R),s?.(f),!0}if(!M||!$)throw new Error("Subscription service not initialized");const k=$.availablePackages.find(R=>R.identifier===f);if(!k)throw new Error(`Package not found: ${f}`);const E=await M.purchase({rcPackage:k,...r?{customerEmail:r}:{}}),u=ge(E.customerInfo,o);return b(u.isActive?u:null),u.isActive&&s?.(f),u.isActive}catch(h){const k=h instanceof Error?h.message:"Purchase failed";return x(k),t?.(h instanceof Error?h:new Error(k)),!1}finally{v(!1)}},[w,$,r,o,s,t]),te=N.useCallback(async()=>{try{if(v(!0),x(null),w)return await new Promise(k=>setTimeout(k,1e3)),x("No previous purchases found"),!1;if(!M)throw new Error("Subscription service not initialized");const f=await M.getCustomerInfo(),h=ge(f,o);return b(h.isActive?h:null),h.isActive||x("No previous purchases found"),h.isActive}catch(f){const h=f instanceof Error?f.message:"Restore failed";return x(h),t?.(f instanceof Error?f:new Error(h)),!1}finally{v(!1)}},[w,o,t]),oe=N.useCallback(async()=>{if(!w)try{x(null),await Promise.all([F(),_()])}catch(f){const h=f instanceof Error?f.message:"Refresh failed";x(h),t?.(f instanceof Error?f:new Error(h))}},[w,F,_,t]),J=N.useCallback(()=>{x(null)},[]);N.useEffect(()=>{if(!T||w||!M)return;const f=setInterval(()=>{F().catch(()=>{})},300*1e3);return()=>clearInterval(f)},[T,w,F]);const se={products:i,currentSubscription:d,isLoading:y,error:C,initialize:p,purchase:V,restore:te,refresh:oe,clearError:J};return l.jsx(Le.Provider,{value:se,children:c})},Lr=()=>{const e=N.useContext(Le);if(!e)throw new Error("useSubscriptionContext must be used within a SubscriptionProvider");return e},_e=()=>{try{const e=[];for(let r=0;r<localStorage.length;r++){const t=localStorage.key(r);t&&(t.includes("revenuecat")||t.includes("rcb")||t.includes("rc_"))&&e.push(t)}e.forEach(r=>localStorage.removeItem(r));const o=[];for(let r=0;r<sessionStorage.length;r++){const t=sessionStorage.key(r);t&&(t.includes("revenuecat")||t.includes("rcb")||t.includes("rc_"))&&o.push(t)}o.forEach(r=>sessionStorage.removeItem(r))}catch{}},_r=()=>{try{M&&(M.close(),M=null),_e()}catch{}};I.SegmentedControl=Er,I.SubscriptionLayout=Dr,I.SubscriptionProvider=jr,I.SubscriptionTile=Tr,I.clearRevenueCatCheckoutSessions=_e,I.closeRevenueCatInstance=_r,I.cn=O,I.useSubscriptionContext=Lr,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(M,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react/jsx-runtime"),require("@sudobility/design"),require("@sudobility/components"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@sudobility/design","@sudobility/components","react"],c):(M=typeof globalThis<"u"?globalThis:M||self,c(M.SubscriptionComponents={},M.ReactJSXRuntime,M.SudobilityDesign,M.SudobilityComponents,M.React))})(this,(function(M,c,de,Z,A){"use strict";function we(e){var o,r,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(o=0;o<s;o++)e[o]&&(r=we(e[o]))&&(t&&(t+=" "),t+=r)}else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function We(){for(var e,o,r=0,t="",s=arguments.length;r<s;r++)(e=arguments[r])&&(o=we(e))&&(t&&(t+=" "),t+=o);return t}const Be=(e,o)=>{const r=new Array(e.length+o.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let t=0;t<o.length;t++)r[e.length+t]=o[t];return r},Ue=(e,o)=>({classGroupId:e,validator:o}),ye=(e=new Map,o=null,r)=>({nextPart:e,validators:o,classGroupId:r}),R="-",ke=[],qe="arbitrary..",Ye=e=>{const o=Xe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Ke(a);const m=a.split(R),d=m[0]===""&&m.length>1?1:0;return ve(m,d,o)},getConflictingClassGroupIds:(a,m)=>{if(m){const d=t[a],b=r[a];return d?b?Be(b,d):d:b||ke}return r[a]||ke}}},ve=(e,o,r)=>{if(e.length-o===0)return r.classGroupId;const s=e[o],n=r.nextPart.get(s);if(n){const b=ve(e,o+1,n);if(b)return b}const a=r.validators;if(a===null)return;const m=o===0?e.join(R):e.slice(o).join(R),d=a.length;for(let b=0;b<d;b++){const y=a[b];if(y.validator(m))return y.classGroupId}},Ke=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=e.slice(1,-1),r=o.indexOf(":"),t=o.slice(0,r);return t?qe+t:void 0})(),Xe=e=>{const{theme:o,classGroups:r}=e;return Je(r,o)},Je=(e,o)=>{const r=ye();for(const t in e){const s=e[t];ue(s,r,t,o)}return r},ue=(e,o,r,t)=>{const s=e.length;for(let n=0;n<s;n++){const a=e[n];He(a,o,r,t)}},He=(e,o,r,t)=>{if(typeof e=="string"){Qe(e,o,r);return}if(typeof e=="function"){Ze(e,o,r,t);return}Re(e,o,r,t)},Qe=(e,o,r)=>{const t=e===""?o:Ce(o,e);t.classGroupId=r},Ze=(e,o,r,t)=>{if(er(e)){ue(e(t),o,r,t);return}o.validators===null&&(o.validators=[]),o.validators.push(Ue(r,e))},Re=(e,o,r,t)=>{const s=Object.entries(e),n=s.length;for(let a=0;a<n;a++){const[m,d]=s[a];ue(d,Ce(o,m),r,t)}},Ce=(e,o)=>{let r=e;const t=o.split(R),s=t.length;for(let n=0;n<s;n++){const a=t[n];let m=r.nextPart.get(a);m||(m=ye(),r.nextPart.set(a,m)),r=m}return r},er=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,rr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,r=Object.create(null),t=Object.create(null);const s=(n,a)=>{r[n]=a,o++,o>e&&(o=0,t=r,r=Object.create(null))};return{get(n){let a=r[n];if(a!==void 0)return a;if((a=t[n])!==void 0)return s(n,a),a},set(n,a){n in r?r[n]=a:s(n,a)}}},me="!",Se=":",tr=[],Pe=(e,o,r,t,s)=>({modifiers:e,hasImportantModifier:o,baseClassName:r,maybePostfixModifierPosition:t,isExternal:s}),or=e=>{const{prefix:o,experimentalParseClassName:r}=e;let t=s=>{const n=[];let a=0,m=0,d=0,b;const y=s.length;for(let N=0;N<y;N++){const w=s[N];if(a===0&&m===0){if(w===Se){n.push(s.slice(d,N)),d=N+1;continue}if(w==="/"){b=N;continue}}w==="["?a++:w==="]"?a--:w==="("?m++:w===")"&&m--}const C=n.length===0?s:s.slice(d);let O=C,x=!1;C.endsWith(me)?(O=C.slice(0,-1),x=!0):C.startsWith(me)&&(O=C.slice(1),x=!0);const D=b&&b>d?b-d:void 0;return Pe(n,x,O,D)};if(o){const s=o+Se,n=t;t=a=>a.startsWith(s)?n(a.slice(s.length)):Pe(tr,!1,a,void 0,!0)}if(r){const s=t;t=n=>r({className:n,parseClassName:s})}return t},sr=e=>{const o=new Map;return e.orderSensitiveModifiers.forEach((r,t)=>{o.set(r,1e6+t)}),r=>{const t=[];let s=[];for(let n=0;n<r.length;n++){const a=r[n],m=a[0]==="[",d=o.has(a);m||d?(s.length>0&&(s.sort(),t.push(...s),s=[]),t.push(a)):s.push(a)}return s.length>0&&(s.sort(),t.push(...s)),t}},nr=e=>({cache:rr(e.cacheSize),parseClassName:or(e),sortModifiers:sr(e),...Ye(e)}),ar=/\s+/,ir=(e,o)=>{const{parseClassName:r,getClassGroupId:t,getConflictingClassGroupIds:s,sortModifiers:n}=o,a=[],m=e.trim().split(ar);let d="";for(let b=m.length-1;b>=0;b-=1){const y=m[b],{isExternal:C,modifiers:O,hasImportantModifier:x,baseClassName:D,maybePostfixModifierPosition:N}=r(y);if(C){d=y+(d.length>0?" "+d:d);continue}let w=!!N,_=t(w?D.substring(0,N):D);if(!_){if(!w){d=y+(d.length>0?" "+d:d);continue}if(_=t(D),!_){d=y+(d.length>0?" "+d:d);continue}w=!1}const E=O.length===0?"":O.length===1?O[0]:n(O).join(":"),W=x?E+me:E,z=W+_;if(a.indexOf(z)>-1)continue;a.push(z);const F=s(_,w);for(let j=0;j<F.length;++j){const k=F[j];a.push(W+k)}d=y+(d.length>0?" "+d:d)}return d},lr=(...e)=>{let o=0,r,t,s="";for(;o<e.length;)(r=e[o++])&&(t=Ne(r))&&(s&&(s+=" "),s+=t);return s},Ne=e=>{if(typeof e=="string")return e;let o,r="";for(let t=0;t<e.length;t++)e[t]&&(o=Ne(e[t]))&&(r&&(r+=" "),r+=o);return r},cr=(e,...o)=>{let r,t,s,n;const a=d=>{const b=o.reduce((y,C)=>C(y),e());return r=nr(b),t=r.cache.get,s=r.cache.set,n=m,m(d)},m=d=>{const b=t(d);if(b)return b;const y=ir(d,r);return s(d,y),y};return n=a,(...d)=>n(lr(...d))},dr=[],P=e=>{const o=r=>r[e]||dr;return o.isThemeGetter=!0,o},ze=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ae=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ur=/^\d+\/\d+$/,mr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,br=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>ur.test(e),g=e=>!!e&&!Number.isNaN(Number(e)),U=e=>!!e&&Number.isInteger(Number(e)),fe=e=>e.endsWith("%")&&g(e.slice(0,-1)),B=e=>mr.test(e),hr=()=>!0,xr=e=>fr.test(e)&&!pr.test(e),Ie=()=>!1,wr=e=>br.test(e),yr=e=>gr.test(e),kr=e=>!i(e)&&!l(e),vr=e=>K(e,Oe,Ie),i=e=>ze.test(e),q=e=>K(e,Ge,xr),pe=e=>K(e,zr,g),Me=e=>K(e,De,Ie),Cr=e=>K(e,Ee,yr),ee=e=>K(e,je,wr),l=e=>Ae.test(e),Q=e=>X(e,Ge),Sr=e=>X(e,Ar),Te=e=>X(e,De),Pr=e=>X(e,Oe),Nr=e=>X(e,Ee),re=e=>X(e,je,!0),K=(e,o,r)=>{const t=ze.exec(e);return t?t[1]?o(t[1]):r(t[2]):!1},X=(e,o,r=!1)=>{const t=Ae.exec(e);return t?t[1]?o(t[1]):r:!1},De=e=>e==="position"||e==="percentage",Ee=e=>e==="image"||e==="url",Oe=e=>e==="length"||e==="size"||e==="bg-size",Ge=e=>e==="length",zr=e=>e==="number",Ar=e=>e==="family-name",je=e=>e==="shadow",Ir=cr(()=>{const e=P("color"),o=P("font"),r=P("text"),t=P("font-weight"),s=P("tracking"),n=P("leading"),a=P("breakpoint"),m=P("container"),d=P("spacing"),b=P("radius"),y=P("shadow"),C=P("inset-shadow"),O=P("text-shadow"),x=P("drop-shadow"),D=P("blur"),N=P("perspective"),w=P("aspect"),_=P("ease"),E=P("animate"),W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...z(),l,i],j=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],f=()=>[l,i,d],$=()=>[Y,"full","auto",...f()],te=()=>[U,"none","subgrid",l,i],oe=()=>["auto",{span:["full",U,l,i]},U,l,i],J=()=>[U,"auto",l,i],se=()=>["auto","min","max","fr",l,i],p=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],h=()=>["start","end","center","stretch","center-safe","end-safe"],v=()=>["auto",...f()],L=()=>[Y,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...f()],u=()=>[e,l,i],H=()=>[...z(),Te,Me,{position:[l,i]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],_e=()=>["auto","cover","contain",Pr,vr,{size:[l,i]}],he=()=>[fe,Q,q],G=()=>["","none","full",b,l,i],V=()=>["",g,Q,q],ae=()=>["solid","dashed","dotted","double"],Fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[g,fe,Te,Me],$e=()=>["","none",D,l,i],ie=()=>["none",g,l,i],le=()=>["none",g,l,i],xe=()=>[g,l,i],ce=()=>[Y,"full",...f()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[B],breakpoint:[B],color:[hr],container:[B],"drop-shadow":[B],ease:["in","out","in-out"],font:[kr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[B],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[B],shadow:[B],spacing:["px",g],text:[B],"text-shadow":[B],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Y,i,l,w]}],container:["container"],columns:[{columns:[g,i,l,m]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[U,"auto",l,i]}],basis:[{basis:[Y,"full","auto",m,...f()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[g,Y,"auto","initial","none",i]}],grow:[{grow:["",g,l,i]}],shrink:[{shrink:["",g,l,i]}],order:[{order:[U,"first","last","none",l,i]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:oe()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:oe()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:f()}],"gap-x":[{"gap-x":f()}],"gap-y":[{"gap-y":f()}],"justify-content":[{justify:[...p(),"normal"]}],"justify-items":[{"justify-items":[...h(),"normal"]}],"justify-self":[{"justify-self":["auto",...h()]}],"align-content":[{content:["normal",...p()]}],"align-items":[{items:[...h(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...h(),{baseline:["","last"]}]}],"place-content":[{"place-content":p()}],"place-items":[{"place-items":[...h(),"baseline"]}],"place-self":[{"place-self":["auto",...h()]}],p:[{p:f()}],px:[{px:f()}],py:[{py:f()}],ps:[{ps:f()}],pe:[{pe:f()}],pt:[{pt:f()}],pr:[{pr:f()}],pb:[{pb:f()}],pl:[{pl:f()}],m:[{m:v()}],mx:[{mx:v()}],my:[{my:v()}],ms:[{ms:v()}],me:[{me:v()}],mt:[{mt:v()}],mr:[{mr:v()}],mb:[{mb:v()}],ml:[{ml:v()}],"space-x":[{"space-x":f()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":f()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],w:[{w:[m,"screen",...L()]}],"min-w":[{"min-w":[m,"screen","none",...L()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[a]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",r,Q,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,l,pe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fe,i]}],"font-family":[{font:[Sr,i,o]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,l,i]}],"line-clamp":[{"line-clamp":[g,"none",l,pe]}],leading:[{leading:[n,...f()]}],"list-image":[{"list-image":["none",l,i]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",l,i]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:u()}],"text-color":[{text:u()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[g,"from-font","auto",l,q]}],"text-decoration-color":[{decoration:u()}],"underline-offset":[{"underline-offset":[g,"auto",l,i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l,i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l,i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:_e()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},U,l,i],radial:["",l,i],conic:[U,l,i]},Nr,Cr]}],"bg-color":[{bg:u()}],"gradient-from-pos":[{from:he()}],"gradient-via-pos":[{via:he()}],"gradient-to-pos":[{to:he()}],"gradient-from":[{from:u()}],"gradient-via":[{via:u()}],"gradient-to":[{to:u()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:u()}],"border-color-x":[{"border-x":u()}],"border-color-y":[{"border-y":u()}],"border-color-s":[{"border-s":u()}],"border-color-e":[{"border-e":u()}],"border-color-t":[{"border-t":u()}],"border-color-r":[{"border-r":u()}],"border-color-b":[{"border-b":u()}],"border-color-l":[{"border-l":u()}],"divide-color":[{divide:u()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[g,l,i]}],"outline-w":[{outline:["",g,Q,q]}],"outline-color":[{outline:u()}],shadow:[{shadow:["","none",y,re,ee]}],"shadow-color":[{shadow:u()}],"inset-shadow":[{"inset-shadow":["none",C,re,ee]}],"inset-shadow-color":[{"inset-shadow":u()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:u()}],"ring-offset-w":[{"ring-offset":[g,q]}],"ring-offset-color":[{"ring-offset":u()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":u()}],"text-shadow":[{"text-shadow":["none",O,re,ee]}],"text-shadow-color":[{"text-shadow":u()}],opacity:[{opacity:[g,l,i]}],"mix-blend":[{"mix-blend":[...Fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[g]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":u()}],"mask-image-linear-to-color":[{"mask-linear-to":u()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":u()}],"mask-image-t-to-color":[{"mask-t-to":u()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":u()}],"mask-image-r-to-color":[{"mask-r-to":u()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":u()}],"mask-image-b-to-color":[{"mask-b-to":u()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":u()}],"mask-image-l-to-color":[{"mask-l-to":u()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":u()}],"mask-image-x-to-color":[{"mask-x-to":u()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":u()}],"mask-image-y-to-color":[{"mask-y-to":u()}],"mask-image-radial":[{"mask-radial":[l,i]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":u()}],"mask-image-radial-to-color":[{"mask-radial-to":u()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":z()}],"mask-image-conic-pos":[{"mask-conic":[g]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":u()}],"mask-image-conic-to-color":[{"mask-conic-to":u()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:_e()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",l,i]}],filter:[{filter:["","none",l,i]}],blur:[{blur:$e()}],brightness:[{brightness:[g,l,i]}],contrast:[{contrast:[g,l,i]}],"drop-shadow":[{"drop-shadow":["","none",x,re,ee]}],"drop-shadow-color":[{"drop-shadow":u()}],grayscale:[{grayscale:["",g,l,i]}],"hue-rotate":[{"hue-rotate":[g,l,i]}],invert:[{invert:["",g,l,i]}],saturate:[{saturate:[g,l,i]}],sepia:[{sepia:["",g,l,i]}],"backdrop-filter":[{"backdrop-filter":["","none",l,i]}],"backdrop-blur":[{"backdrop-blur":$e()}],"backdrop-brightness":[{"backdrop-brightness":[g,l,i]}],"backdrop-contrast":[{"backdrop-contrast":[g,l,i]}],"backdrop-grayscale":[{"backdrop-grayscale":["",g,l,i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g,l,i]}],"backdrop-invert":[{"backdrop-invert":["",g,l,i]}],"backdrop-opacity":[{"backdrop-opacity":[g,l,i]}],"backdrop-saturate":[{"backdrop-saturate":[g,l,i]}],"backdrop-sepia":[{"backdrop-sepia":["",g,l,i]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":f()}],"border-spacing-x":[{"border-spacing-x":f()}],"border-spacing-y":[{"border-spacing-y":f()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",l,i]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[g,"initial",l,i]}],ease:[{ease:["linear","initial",_,l,i]}],delay:[{delay:[g,l,i]}],animate:[{animate:["none",E,l,i]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,l,i]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[l,i,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:u()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:u()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l,i]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l,i]}],fill:[{fill:["none",...u()]}],"stroke-w":[{stroke:[g,Q,q,pe]}],stroke:[{stroke:["none",...u()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function S(...e){return Ir(We(e))}const Mr={purple:"bg-purple-500",green:"bg-green-500",blue:"bg-blue-500",yellow:"bg-yellow-400 !text-yellow-900",red:"bg-red-500"},Tr=({id:e,title:o,price:r,periodLabel:t,features:s,isSelected:n,onSelect:a,topBadge:m,discountBadge:d,premiumCallout:b,bottomNote:y,introPriceNote:C,isBestValue:O=!1,ctaButton:x,className:D,children:N,disabled:w=!1,ariaLabel:_})=>{const E=!!x,W=n?"bg-blue-600 text-white ring-4 ring-blue-600 ring-offset-4 ring-offset-white dark:ring-offset-gray-900 border-transparent":"bg-gray-100 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600 hover:shadow-md",z=()=>{!w&&!E&&a()},F=k=>{!w&&!E&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),a())},j=k=>{k.stopPropagation(),x?.onClick&&x.onClick()};return c.jsxs("div",{className:S("relative rounded-2xl p-6 transition-all flex flex-col",w?"opacity-50 cursor-not-allowed":E?"cursor-default":"cursor-pointer",W,D),onClick:z,onKeyDown:F,role:E?"article":"radio","aria-checked":E?void 0:n,"aria-label":_||`${o} - ${r}${t||""}`,"aria-disabled":w,tabIndex:E||w?-1:0,children:[m&&c.jsx("div",{className:"absolute -top-3 left-1/2 transform -translate-x-1/2",children:c.jsx("span",{className:S(Mr[m.color],"text-white px-3 py-1 rounded-full text-sm font-semibold shadow-lg whitespace-nowrap"),children:m.text})}),c.jsxs("div",{className:"flex flex-col flex-grow",children:[c.jsxs("div",{className:"text-center mb-6",children:[c.jsx("h3",{className:S(de.textVariants.heading.h4(),"mb-2",n?"text-white":""),children:o}),c.jsxs("div",{className:"mb-3",children:[c.jsx("span",{className:S("text-4xl font-bold",n?"text-white":"text-gray-900 dark:text-gray-100"),children:r}),t&&c.jsx("span",{className:S("text-lg",n?"text-blue-100":"text-gray-500 dark:text-gray-400"),children:t})]}),d&&c.jsx("div",{className:S("inline-flex items-center px-2 py-1 rounded-full text-sm font-semibold",n?"bg-blue-500 text-white":"bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300"),children:d.text})]}),N,s.length>0&&c.jsx("div",{className:"space-y-3 mb-6 flex-grow",children:s.map((k,f)=>c.jsxs("div",{className:"flex items-start",children:[c.jsx("svg",{className:S("w-5 h-5 mr-3 flex-shrink-0",n?"text-blue-200":"text-green-500"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),c.jsx("span",{className:S("text-sm text-left",n?"text-white":"text-gray-700 dark:text-gray-300"),children:k.replace(/^✓\s*/,"")})]},f))}),b&&c.jsxs("div",{className:S("rounded-lg p-4 mb-4",n?"bg-blue-500/30":"bg-gradient-to-r from-purple-50 to-blue-50 dark:from-purple-900/20 dark:to-blue-900/20"),children:[c.jsx("div",{className:"flex items-center mb-2",children:c.jsx("span",{className:S("font-semibold text-sm",n?"text-white":"text-purple-600 dark:text-purple-400"),children:b.title})}),c.jsx("ul",{className:S("text-xs space-y-1",n?"text-blue-100":"text-gray-600 dark:text-gray-400"),children:b.features.map((k,f)=>c.jsxs("li",{children:["• ",k]},f))})]}),y&&c.jsx("div",{className:S("text-center text-sm font-medium mb-4",n?"text-blue-100":"text-blue-600 dark:text-blue-400"),children:y})]}),c.jsxs("div",{className:"mt-auto space-y-4",children:[C&&c.jsx("div",{className:S("p-3 rounded-lg",n?"bg-blue-500/30":"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800"),children:c.jsx("p",{className:S("text-sm font-semibold text-center",n?"text-white":"text-yellow-700 dark:text-yellow-300"),children:C})}),E?x.href?c.jsx("a",{href:x.href,className:S("block w-full py-3 font-semibold rounded-lg text-center transition-colors",n?"bg-white text-blue-600 hover:bg-gray-100":"bg-blue-600 text-white hover:bg-blue-700"),onClick:k=>k.stopPropagation(),children:x.label}):c.jsx("button",{onClick:j,disabled:w,className:S("w-full py-3 font-semibold rounded-lg transition-colors",n?"bg-white text-blue-600 hover:bg-gray-100":"bg-blue-600 text-white hover:bg-blue-700",w&&"opacity-50 cursor-not-allowed"),children:x.label}):c.jsx("div",{className:"flex justify-center",children:c.jsx("div",{className:S("w-5 h-5 rounded-full border-2 flex items-center justify-center",n?"border-white bg-white":"border-gray-300 dark:border-gray-600"),children:n&&c.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-600"})})})]})]})},Dr=({title:e,children:o,error:r,variant:t="selection",currentStatus:s,primaryAction:n,secondaryAction:a,minTileWidth:m=240,className:d,headerContent:b,aboveProducts:y,footerContent:C,currentStatusLabel:O="Current Status"})=>{const x=t==="selection"&&n,D={display:"grid",gridTemplateColumns:`repeat(auto-fit, minmax(min(100%, ${m}px), 1fr))`,gap:"1.5rem"};return c.jsx(Z.Card,{className:d,children:c.jsxs(Z.CardContent,{className:"pt-6",children:[b,s&&c.jsxs(c.Fragment,{children:[c.jsx("h2",{className:S(de.textVariants.heading.h3(),"mb-4"),children:O}),s.isActive?c.jsxs("div",{className:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg p-4 mb-6",children:[c.jsxs("div",{className:"flex items-center mb-2",children:[c.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full mr-3"}),c.jsx("span",{className:"font-semibold text-green-800 dark:text-green-300",children:s.activeContent?.title||"Active Subscription"})]}),s.activeContent?.fields&&s.activeContent.fields.length>0&&c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-4",children:s.activeContent.fields.map((N,w)=>c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:N.label}),c.jsx("p",{className:"font-semibold text-green-800 dark:text-green-300",children:N.value})]},w))})]}):c.jsxs("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4 mb-6",children:[c.jsxs("div",{className:"flex items-center mb-2",children:[c.jsx("div",{className:"w-3 h-3 bg-yellow-500 rounded-full mr-3"}),c.jsx("span",{className:"font-semibold text-yellow-800 dark:text-yellow-300",children:s.inactiveContent?.title||"No Active Subscription"})]}),s.inactiveContent?.message&&c.jsx("p",{className:"text-yellow-700 dark:text-yellow-400",children:s.inactiveContent.message})]})]}),c.jsx("h2",{className:S(de.textVariants.heading.h3(),"mb-4"),children:e}),y,c.jsx("div",{style:D,children:o}),C,r&&c.jsx("div",{className:"bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg p-4 mt-6",children:c.jsx("p",{className:"text-red-600 dark:text-red-400",children:r})}),x&&c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mt-6",children:[a&&c.jsx(Z.Button,{onClick:a.onClick,disabled:a.disabled||a.loading,variant:"outline",className:"sm:flex-shrink-0",children:a.label}),c.jsx(Z.Button,{onClick:n.onClick,disabled:n.disabled||n.loading,className:"flex-1",children:n.label})]})]})})};function Er({options:e,value:o,onChange:r,className:t,disabled:s=!1,size:n="md"}){const a={sm:"px-3 py-1.5 text-xs",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base"};return c.jsx("div",{className:S("inline-flex rounded-lg bg-gray-100 dark:bg-gray-800 p-1",s&&"opacity-50",t),role:"radiogroup",children:e.map(m=>{const d=o===m.value;return c.jsx("button",{type:"button",role:"radio","aria-checked":d,disabled:s,onClick:()=>!s&&r(m.value),className:S(a[n],"font-medium rounded-md transition-all focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",d?"bg-white dark:bg-gray-700 text-gray-900 dark:text-white shadow-sm":"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white",s&&"cursor-not-allowed"),children:m.label},m.value)})})}let be=null;const Or=async()=>(be||(be=await import("@revenuecat/purchases-js")),be);let T=null;const Gr=e=>{const o=e.rcBillingProduct,r=o?.defaultSubscriptionOption;return{identifier:e.identifier,productId:o?.identifier||void 0,price:o?.currentPrice?.amountMicros?(o.currentPrice.amountMicros/1e6).toFixed(2):"0",priceString:o?.currentPrice?.formattedPrice||"$0",title:o?.title||e.identifier,description:o?.description||"",period:o?.normalPeriodDuration||void 0,introPrice:r?.introPrice?.price?.formattedPrice||void 0,introPriceAmount:r?.introPrice?.price?.amountMicros?(r.introPrice.price.amountMicros/1e6).toFixed(2):void 0,introPricePeriod:r?.introPrice?.periodDuration||void 0,introPriceCycles:r?.introPrice?.cycleCount||void 0,freeTrialPeriod:r?.trial?.periodDuration||void 0}},ge=(e,o)=>{const r=e.entitlements.active[o];return r?{isActive:!0,expirationDate:r.expirationDate?new Date(r.expirationDate):void 0,purchaseDate:r.latestPurchaseDate?new Date(r.latestPurchaseDate):void 0,productIdentifier:r.productIdentifier,willRenew:r.willRenew,isSandbox:r.isSandbox,unsubscribeDetectedAt:r.unsubscribeDetectedAt?new Date(r.unsubscribeDetectedAt):void 0,billingIssueDetectedAt:r.billingIssueDetectedAt?new Date(r.billingIssueDetectedAt):void 0}:{isActive:!1}},Le=A.createContext(void 0),jr=({apiKey:e,entitlementId:o,userEmail:r,onError:t,onPurchaseSuccess:s,children:n})=>{const[a,m]=A.useState([]),[d,b]=A.useState(null),[y,C]=A.useState(!1),[O,x]=A.useState(null),[D,N]=A.useState(!1),[w,_]=A.useState(null),[E,W]=A.useState(null),z=!e||e==="your_revenuecat_api_key_here",F=A.useCallback(()=>{m([]),b(null),W(null),x(null),N(!1),_(null),T=null},[]),j=A.useCallback(async()=>{if(T)try{const p=await T.getOfferings();if(p.current){W(p.current);const h=p.current.availablePackages.map(Gr);m(h)}}catch(p){const h=p instanceof Error?p.message:"Failed to load offerings";x(h),t?.(p instanceof Error?p:new Error(h))}},[t]),k=A.useCallback(async()=>{if(T)try{const p=await T.getCustomerInfo(),h=ge(p,o);b(h.isActive?h:null)}catch(p){const h=p instanceof Error?p.message:"Failed to load subscription status";x(h),t?.(p instanceof Error?p:new Error(h))}},[o,t]),f=A.useCallback(async(p,h)=>{if(w&&w!==p&&F(),!(D&&w===p))try{if(C(!0),x(null),z)console.warn("[SubscriptionProvider] RevenueCat API key not configured"),m([]),b(null);else{const v=await Or(),L={apiKey:e,appUserId:p};T=v.Purchases.configure(L);const u=h||r;if(u&&T)try{await T.setAttributes({email:u})}catch{}await Promise.all([j(),k()])}_(p),N(!0)}catch(v){const L=v instanceof Error?v.message:"Failed to initialize";x(L),b(null),m([]),t?.(v instanceof Error?v:new Error(L))}finally{C(!1)}},[w,D,z,e,r,j,k,t,F]),$=A.useCallback(async p=>{try{if(C(!0),x(null),z){await new Promise(ne=>setTimeout(ne,2e3));const H={isActive:!0,expirationDate:new Date(Date.now()+365*24*60*60*1e3),purchaseDate:new Date,productIdentifier:p,willRenew:!0};return b(H),s?.(p),!0}if(!T||!E)throw new Error("Subscription service not initialized");const v=E.availablePackages.find(H=>H.identifier===p);if(!v)throw new Error(`Package not found: ${p}`);const L=await T.purchase({rcPackage:v,...r?{customerEmail:r}:{}}),u=ge(L.customerInfo,o);return b(u.isActive?u:null),u.isActive&&s?.(p),u.isActive}catch(h){const v=h instanceof Error?h.message:"Purchase failed";return x(v),t?.(h instanceof Error?h:new Error(v)),!1}finally{C(!1)}},[z,E,r,o,s,t]),te=A.useCallback(async()=>{try{if(C(!0),x(null),z)return await new Promise(v=>setTimeout(v,1e3)),x("No previous purchases found"),!1;if(!T)throw new Error("Subscription service not initialized");const p=await T.getCustomerInfo(),h=ge(p,o);return b(h.isActive?h:null),h.isActive||x("No previous purchases found"),h.isActive}catch(p){const h=p instanceof Error?p.message:"Restore failed";return x(h),t?.(p instanceof Error?p:new Error(h)),!1}finally{C(!1)}},[z,o,t]),oe=A.useCallback(async()=>{if(!z)try{x(null),await Promise.all([k(),j()])}catch(p){const h=p instanceof Error?p.message:"Refresh failed";x(h),t?.(p instanceof Error?p:new Error(h))}},[z,k,j,t]),J=A.useCallback(()=>{x(null)},[]);A.useEffect(()=>{if(!D||z||!T)return;const p=setInterval(()=>{k().catch(()=>{})},300*1e3);return()=>clearInterval(p)},[D,z,k]);const se={products:a,currentSubscription:d,isLoading:y,error:O,initialize:f,purchase:$,restore:te,refresh:oe,clearError:J};return c.jsx(Le.Provider,{value:se,children:n})},Lr=()=>{const e=A.useContext(Le);if(!e)throw new Error("useSubscriptionContext must be used within a SubscriptionProvider");return e},Ve=()=>{try{const e=[];for(let r=0;r<localStorage.length;r++){const t=localStorage.key(r);t&&(t.includes("revenuecat")||t.includes("rcb")||t.includes("rc_"))&&e.push(t)}e.forEach(r=>localStorage.removeItem(r));const o=[];for(let r=0;r<sessionStorage.length;r++){const t=sessionStorage.key(r);t&&(t.includes("revenuecat")||t.includes("rcb")||t.includes("rc_"))&&o.push(t)}o.forEach(r=>sessionStorage.removeItem(r))}catch{}},Vr=()=>{try{T&&(T.close(),T=null),Ve()}catch{}};M.SegmentedControl=Er,M.SubscriptionLayout=Dr,M.SubscriptionProvider=jr,M.SubscriptionTile=Tr,M.clearRevenueCatCheckoutSessions=Ve,M.closeRevenueCatInstance=Vr,M.cn=S,M.useSubscriptionContext=Lr,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -36,6 +36,12 @@ export interface ActionButtonConfig {
|
|
|
36
36
|
/** Whether button is in loading state */
|
|
37
37
|
loading?: boolean;
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Layout variant:
|
|
41
|
+
* - 'selection': User selects a tile, then clicks a shared CTA button (default)
|
|
42
|
+
* - 'cta': Each tile has its own CTA button, no shared action buttons
|
|
43
|
+
*/
|
|
44
|
+
export type SubscriptionLayoutVariant = 'selection' | 'cta';
|
|
39
45
|
export interface SubscriptionLayoutProps {
|
|
40
46
|
/** Section title */
|
|
41
47
|
title: string;
|
|
@@ -43,11 +49,18 @@ export interface SubscriptionLayoutProps {
|
|
|
43
49
|
children: React.ReactNode;
|
|
44
50
|
/** Error message to display */
|
|
45
51
|
error?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Layout variant
|
|
54
|
+
* - 'selection': User selects a tile, then clicks primary action button
|
|
55
|
+
* - 'cta': Each tile has its own CTA button (use ctaButton prop on tiles)
|
|
56
|
+
* @default 'selection'
|
|
57
|
+
*/
|
|
58
|
+
variant?: SubscriptionLayoutVariant;
|
|
46
59
|
/** Current subscription status configuration */
|
|
47
60
|
currentStatus?: SubscriptionStatusConfig;
|
|
48
|
-
/** Primary action button (e.g., "Subscribe Now") */
|
|
49
|
-
primaryAction
|
|
50
|
-
/** Secondary action button (e.g., "Restore Purchase") */
|
|
61
|
+
/** Primary action button (e.g., "Subscribe Now") - only shown in 'selection' variant */
|
|
62
|
+
primaryAction?: ActionButtonConfig;
|
|
63
|
+
/** Secondary action button (e.g., "Restore Purchase") - only shown in 'selection' variant */
|
|
51
64
|
secondaryAction?: ActionButtonConfig;
|
|
52
65
|
/** Minimum tile width in pixels (default: 240) */
|
|
53
66
|
minTileWidth?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-layout.d.ts","sourceRoot":"","sources":["../src/subscription-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,8CAA8C;IAC9C,QAAQ,EAAE,OAAO,CAAC;IAClB,qDAAqD;IACrD,aAAa,CAAC,EAAE;QACd,iDAAiD;QACjD,KAAK,EAAE,MAAM,CAAC;QACd,+BAA+B;QAC/B,MAAM,CAAC,EAAE,KAAK,CAAC;YACb,KAAK,EAAE,MAAM,CAAC;YACd,KAAK,EAAE,MAAM,CAAC;SACf,CAAC,CAAC;KACJ,CAAC;IACF,qDAAqD;IACrD,eAAe,CAAC,EAAE;QAChB,oDAAoD;QACpD,KAAK,EAAE,MAAM,CAAC;QACd,0BAA0B;QAC1B,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,gDAAgD;IAChD,aAAa,CAAC,EAAE,wBAAwB,CAAC;IAEzC,
|
|
1
|
+
{"version":3,"file":"subscription-layout.d.ts","sourceRoot":"","sources":["../src/subscription-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,8CAA8C;IAC9C,QAAQ,EAAE,OAAO,CAAC;IAClB,qDAAqD;IACrD,aAAa,CAAC,EAAE;QACd,iDAAiD;QACjD,KAAK,EAAE,MAAM,CAAC;QACd,+BAA+B;QAC/B,MAAM,CAAC,EAAE,KAAK,CAAC;YACb,KAAK,EAAE,MAAM,CAAC;YACd,KAAK,EAAE,MAAM,CAAC;SACf,CAAC,CAAC;KACJ,CAAC;IACF,qDAAqD;IACrD,eAAe,CAAC,EAAE;QAChB,oDAAoD;QACpD,KAAK,EAAE,MAAM,CAAC;QACd,0BAA0B;QAC1B,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,WAAW,GAAG,KAAK,CAAC;AAE5D,MAAM,WAAW,uBAAuB;IACtC,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAC;IAEpC,gDAAgD;IAChD,aAAa,CAAC,EAAE,wBAAwB,CAAC;IAEzC,wFAAwF;IACxF,aAAa,CAAC,EAAE,kBAAkB,CAAC;IAEnC,6FAA6F;IAC7F,eAAe,CAAC,EAAE,kBAAkB,CAAC;IAErC,kDAAkD;IAClD,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,4BAA4B;IAC5B,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEhC,gFAAgF;IAChF,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEhC,4DAA4D;IAC5D,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEhC,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA+HhE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { BadgeConfig, DiscountBadgeConfig, PremiumCalloutConfig } from './types';
|
|
2
|
+
import { BadgeConfig, CtaButtonConfig, DiscountBadgeConfig, PremiumCalloutConfig } from './types';
|
|
3
3
|
export interface SubscriptionTileProps {
|
|
4
4
|
/** Unique identifier for the subscription */
|
|
5
5
|
id: string;
|
|
@@ -27,6 +27,8 @@ export interface SubscriptionTileProps {
|
|
|
27
27
|
introPriceNote?: string;
|
|
28
28
|
/** Whether this is the best value option (affects styling) */
|
|
29
29
|
isBestValue?: boolean;
|
|
30
|
+
/** CTA button configuration - when provided, renders a button instead of radio indicator */
|
|
31
|
+
ctaButton?: CtaButtonConfig;
|
|
30
32
|
/** Additional CSS classes */
|
|
31
33
|
className?: string;
|
|
32
34
|
/** Custom content to render in the content area */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-tile.d.ts","sourceRoot":"","sources":["../src/subscription-tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EACV,WAAW,EACX,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,qBAAqB;IACpC,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,mFAAmF;IACnF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gCAAgC;IAChC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,8CAA8C;IAC9C,UAAU,EAAE,OAAO,CAAC;IACpB,yBAAyB;IACzB,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,iDAAiD;IACjD,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,uCAAuC;IACvC,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAUD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"subscription-tile.d.ts","sourceRoot":"","sources":["../src/subscription-tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EACV,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,qBAAqB;IACpC,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,mFAAmF;IACnF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gCAAgC;IAChC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,8CAA8C;IAC9C,UAAU,EAAE,OAAO,CAAC;IACpB,yBAAyB;IACzB,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,iDAAiD;IACjD,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,uCAAuC;IACvC,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAUD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA0S5D,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -78,6 +78,17 @@ export interface PremiumCalloutConfig {
|
|
|
78
78
|
/** List of premium features */
|
|
79
79
|
features: string[];
|
|
80
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* CTA button configuration for tile
|
|
83
|
+
*/
|
|
84
|
+
export interface CtaButtonConfig {
|
|
85
|
+
/** Button label */
|
|
86
|
+
label: string;
|
|
87
|
+
/** Click handler (for button behavior) */
|
|
88
|
+
onClick?: () => void;
|
|
89
|
+
/** Link href (for link behavior) */
|
|
90
|
+
href?: string;
|
|
91
|
+
}
|
|
81
92
|
/**
|
|
82
93
|
* Subscription context value
|
|
83
94
|
*/
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"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"}
|