@monetize.software/sdk 3.0.0-alpha.2 → 3.0.0-alpha.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.
@@ -0,0 +1,26 @@
1
+ "use strict";const I=require("../core.cjs"),P=require("preact"),e=require("preact/jsx-runtime"),d=require("preact/hooks"),V=3600*1e3;function R(r){return`paywall-${r}-trial-time-first-open`}function O(r){return`paywall-${r}-skip-times`}class Q{constructor(t,i,n){this.storage=t,this.paywallId=i,this.config=n}async check(){return this.config.mode==="time"?this.checkTime():this.checkOpens()}async recordBlock(){return this.config.mode==="time"?this.recordTime():this.recordOpens()}async reset(){await this.storage.removeItem(this.config.mode==="time"?R(this.paywallId):O(this.paywallId))}async checkTime(){const t=this.config.payload*V,i=await this.storage.getItem(R(this.paywallId)),n=i?Number(i):null;if(!n||!Number.isFinite(n))return{mode:"time",blocked:!0,startedAt:null,expiresAt:null,remainingMs:t,totalMs:t};const a=n+t,s=Math.max(0,a-Date.now());return{mode:"time",blocked:s>0,startedAt:n,expiresAt:a,remainingMs:s,totalMs:t}}async checkOpens(){const t=this.config.payload,i=await this.storage.getItem(O(this.paywallId)),n=i?Number(i):0,a=Number.isFinite(n)?n:0,s=a<t,o=Math.max(0,t-a);return{mode:"opens",blocked:s,remainingActions:o,totalActions:t}}async recordTime(){const t=this.config.payload*V,i=R(this.paywallId),n=await this.storage.getItem(i);let a=n?Number(n):null;(!a||!Number.isFinite(a))&&(a=Date.now(),await this.storage.setItem(i,String(a)));const s=a+t,o=Math.max(0,s-Date.now());return{mode:"time",blocked:o>0,startedAt:a,expiresAt:s,remainingMs:o,totalMs:t}}async recordOpens(){const t=this.config.payload,i=O(this.paywallId),n=await this.storage.getItem(i),a=n?Number(n):0,s=Number.isFinite(a)?a:0,o=Math.min(t,s+1);await this.storage.setItem(i,String(o));const l=Math.max(0,t-o);return{mode:"opens",blocked:o<t,remainingActions:l,totalActions:t}}}let $=!1;class at{constructor(t,i,n){$||($=!0,console.warn('[paywall] trial.storage="server" is not implemented yet — falling back to client storage. State lives in localStorage; users can reset trial by clearing site data.')),this.fallback=new Q(t,i,n)}check(){return this.fallback.check()}recordBlock(){return this.fallback.recordBlock()}reset(){return this.fallback.reset()}}function nt(r,t,i){return i.storage==="server"?new at(r,t,i):new Q(r,t,i)}const tt='/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-950:oklch(27.9% .077 45.635);--color-emerald-500:oklch(69.6% .17 162.48);--color-slate-950:oklch(12.9% .042 264.695);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--blur-sm:8px;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:host{all:initial;color-scheme:light;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*,:before,:after{box-sizing:border-box}button{cursor:pointer;font-family:inherit}button:disabled{cursor:not-allowed}[role=button],[role=radio]{cursor:pointer}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing) * 0)}.-top-2\\.5{top:calc(var(--spacing) * -2.5)}.top-0{top:calc(var(--spacing) * 0)}.top-3{top:calc(var(--spacing) * 3)}.right-3{right:calc(var(--spacing) * 3)}.left-4{left:calc(var(--spacing) * 4)}.z-10{z-index:10}.z-20{z-index:20}.z-\\[1\\]{z-index:1}.z-\\[2147483647\\]{z-index:2147483647}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mt-1{margin-top:calc(var(--spacing) * -1)}.-mt-3{margin-top:calc(var(--spacing) * -3)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-px{margin-top:1px}.-ml-1{margin-left:calc(var(--spacing) * -1)}.ml-1{margin-left:calc(var(--spacing) * 1)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.h-1{height:calc(var(--spacing) * 1)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-px{height:1px}.max-h-\\[calc\\(100dvh-1rem\\)\\]{max-height:calc(100dvh - 1rem)}.min-h-\\[104px\\]{min-height:104px}.w-1{width:calc(var(--spacing) * 1)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-full{width:100%}.max-w-\\[18rem\\]{max-width:18rem}.max-w-\\[20rem\\]{max-width:20rem}.max-w-\\[320px\\]{max-width:320px}.max-w-md{max-width:var(--container-md)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.-translate-y-\\[calc\\(100\\%\\+6px\\)\\]{--tw-translate-y: calc((100% + 6px)*-1) ;translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-\\[pw-fade-in_180ms_ease-out\\]{animation:.18s ease-out pw-fade-in}.animate-\\[pw-scale-in_220ms_cubic-bezier\\(0\\.16\\,1\\,0\\.3\\,1\\)\\]{animation:.22s cubic-bezier(.16,1,.3,1) pw-scale-in}.animate-ping{animation:var(--animate-ping)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-y-1{row-gap:calc(var(--spacing) * 1)}.self-center{align-self:center}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-\\[2\\.5px\\]{border-style:var(--tw-border-style);border-width:2.5px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\\[var\\(--pw-accent\\)\\]{border-color:var(--pw-accent)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-red-400{border-color:var(--color-red-400)}.border-white\\/40{border-color:#fff6}@supports (color:color-mix(in lab,red,red)){.border-white\\/40{border-color:color-mix(in oklab,var(--color-white) 40%,transparent)}}.border-t-\\[var\\(--pw-accent\\)\\]{border-top-color:var(--pw-accent)}.border-t-gray-700{border-top-color:var(--color-gray-700)}.border-t-white{border-top-color:var(--color-white)}.bg-\\[color-mix\\(in_srgb\\,var\\(--pw-accent\\)_6\\%\\,white\\)\\]{background-color:var(--pw-accent)}@supports (color:color-mix(in lab,red,red)){.bg-\\[color-mix\\(in_srgb\\,var\\(--pw-accent\\)_6\\%\\,white\\)\\]{background-color:color-mix(in srgb,var(--pw-accent) 6%,white)}}.bg-\\[var\\(--pw-accent\\)\\]{background-color:var(--pw-accent)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-50\\/60{background-color:#f9fafb99}@supports (color:color-mix(in lab,red,red)){.bg-gray-50\\/60{background-color:color-mix(in oklab,var(--color-gray-50) 60%,transparent)}}.bg-gray-300{background-color:var(--color-gray-300)}.bg-red-50{background-color:var(--color-red-50)}.bg-slate-950\\/50{background-color:#02061880}@supports (color:color-mix(in lab,red,red)){.bg-slate-950\\/50{background-color:color-mix(in oklab,var(--color-slate-950) 50%,transparent)}}.bg-white{background-color:var(--color-white)}.bg-white\\/80{background-color:#fffc}@supports (color:color-mix(in lab,red,red)){.bg-white\\/80{background-color:color-mix(in oklab,var(--color-white) 80%,transparent)}}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-amber-300{--tw-gradient-from:var(--color-amber-300);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-gray-200{--tw-gradient-from:var(--color-gray-200);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-transparent{--tw-gradient-from:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-amber-400{--tw-gradient-to:var(--color-amber-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-gray-200{--tw-gradient-to:var(--color-gray-200);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.p-2{padding:calc(var(--spacing) * 2)}.p-3\\.5{padding:calc(var(--spacing) * 3.5)}.p-8{padding:calc(var(--spacing) * 8)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-12{padding-block:calc(var(--spacing) * 12)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-left{text-align:left}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[0\\.9375rem\\]{font-size:.9375rem}.text-\\[1\\.875rem\\]{font-size:1.875rem}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.text-\\[24px\\]{font-size:24px}.text-\\[34px\\]{font-size:34px}.leading-\\[1\\.15\\]{--tw-leading:1.15;line-height:1.15}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\\[-0\\.02em\\]{--tw-tracking:-.02em;letter-spacing:-.02em}.tracking-\\[0\\.08em\\]{--tw-tracking:.08em;letter-spacing:.08em}.tracking-\\[0\\.14em\\]{--tw-tracking:.14em;letter-spacing:.14em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-balance{text-wrap:balance}.text-\\[var\\(--pw-accent\\)\\]{color:var(--pw-accent)}.text-amber-950{color:var(--color-amber-950)}.text-emerald-500{color:var(--color-emerald-500)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.opacity-40{opacity:.4}.opacity-60{opacity:.6}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_0_0_1px_var\\(--pw-accent\\)\\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,var(--pw-accent));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_1px_0_rgba\\(15\\,23\\,42\\,0\\.02\\)\\]{--tw-shadow:0 1px 0 var(--tw-shadow-color,#0f172a05);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_1px_0_rgba\\(15\\,23\\,42\\,0\\.04\\)\\]{--tw-shadow:0 1px 0 var(--tw-shadow-color,#0f172a0a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_4px_12px_-2px_rgba\\(245\\,158\\,11\\,0\\.45\\)\\,0_0_0_1px_rgba\\(255\\,255\\,255\\,0\\.6\\)\\]{--tw-shadow:0 4px 12px -2px var(--tw-shadow-color,#f59e0b73), 0 0 0 1px var(--tw-shadow-color,#fff9);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-8{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(8px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-black\\/5{--tw-ring-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.ring-black\\/5{--tw-ring-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.\\!filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)!important}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.outline-none{--tw-outline-style:none;outline-style:none}@media(hover:hover){.group-hover\\:border-gray-400:is(:where(.group):hover *){border-color:var(--color-gray-400)}}.placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}@media(hover:hover){.hover\\:-translate-y-px:hover{--tw-translate-y:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-gray-50\\/60:hover{background-color:#f9fafb99}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-gray-50\\/60:hover{background-color:color-mix(in oklab,var(--color-gray-50) 60%,transparent)}}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-white:hover{background-color:var(--color-white)}.hover\\:text-gray-700:hover{color:var(--color-gray-700)}.hover\\:text-gray-900:hover{color:var(--color-gray-900)}.hover\\:text-red-600:hover{color:var(--color-red-600)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-sm:hover{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\\:brightness-105:hover{--tw-brightness:brightness(105%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}.focus\\:border-\\[var\\(--pw-accent\\)\\]:focus{border-color:var(--pw-accent)}.focus\\:border-red-500:focus{border-color:var(--color-red-500)}.focus\\:shadow-\\[0_0_0_3px_color-mix\\(in_srgb\\,var\\(--pw-accent\\)_18\\%\\,transparent\\)\\]:focus{--tw-shadow:0 0 0 3px var(--tw-shadow-color,var(--pw-accent))}@supports (color:color-mix(in lab,red,red)){.focus\\:shadow-\\[0_0_0_3px_color-mix\\(in_srgb\\,var\\(--pw-accent\\)_18\\%\\,transparent\\)\\]:focus{--tw-shadow:0 0 0 3px var(--tw-shadow-color,color-mix(in srgb,var(--pw-accent) 18%,transparent))}}.focus\\:shadow-\\[0_0_0_3px_color-mix\\(in_srgb\\,var\\(--pw-accent\\)_18\\%\\,transparent\\)\\]:focus{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:shadow-\\[0_0_0_3px_rgba\\(239\\,68\\,68\\,0\\.18\\)\\]:focus{--tw-shadow:0 0 0 3px var(--tw-shadow-color,#ef44442e);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:opacity-80:focus-visible{opacity:.8}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-\\[var\\(--pw-accent\\)\\]:focus-visible{--tw-ring-color:var(--pw-accent)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.active\\:translate-y-0:active{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.active\\:scale-\\[0\\.98\\]:active{scale:.98}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-60:disabled{opacity:.6}@media(hover:hover){.disabled\\:hover\\:translate-y-0:disabled:hover{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.disabled\\:hover\\:shadow-\\[0_1px_0_rgba\\(15\\,23\\,42\\,0\\.04\\)\\]:disabled:hover{--tw-shadow:0 1px 0 var(--tw-shadow-color,#0f172a0a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.disabled\\:hover\\:brightness-100:disabled:hover{--tw-brightness:brightness(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}@media(min-width:40rem){.sm\\:max-h-\\[calc\\(100dvh-2rem\\)\\]{max-height:calc(100dvh - 2rem)}.sm\\:p-4{padding:calc(var(--spacing) * 4)}}}.pw-cta-shimmer:before{content:"";z-index:1;background:linear-gradient(90deg,#0000,#ffffff59 50%,#0000);width:100%;height:100%;animation:3s infinite pw-cta-shimmer;position:absolute;top:0;left:-100%}@keyframes pw-cta-shimmer{0%{left:-100%}to{left:100%}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}';let G=!1;function st(){if(G||(G=!0,typeof CSS>"u"||typeof CSS.registerProperty!="function"))return;let r;try{const t=new CSSStyleSheet;t.replaceSync(tt),r=t.cssRules}catch{return}for(const t of r){if(t.constructor.name!=="CSSPropertyRule")continue;const i=t;try{CSS.registerProperty({name:i.name,syntax:i.syntax,inherits:i.inherits,...i.initialValue!=null?{initialValue:i.initialValue}:{}})}catch{}}}function ot(r,t,i={}){if(typeof document>"u")throw new Error("mountShadow called in non-DOM environment");st();const n=i.host??document.createElement("div");n.setAttribute("data-paywall-host",""),n.style.cssText=i.inline?"all: initial; position: absolute; inset: 0; z-index: 1; pointer-events: none;":"all: initial; position: fixed; inset: 0; z-index: 2147483647; pointer-events: none;",!n.isConnected&&!i.inline&&document.body.appendChild(n);const a=n.attachShadow({mode:i.shadowMode??"closed"}),s=`
2
+ :host {
3
+ all: initial !important;
4
+ display: block !important;
5
+ color: #111827 !important;
6
+ font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
7
+ font-size: 16px !important;
8
+ font-weight: 400 !important;
9
+ font-style: normal !important;
10
+ line-height: 1.5 !important;
11
+ letter-spacing: normal !important;
12
+ text-transform: none !important;
13
+ text-decoration: none !important;
14
+ text-align: left !important;
15
+ direction: ltr !important;
16
+ cursor: auto !important;
17
+ visibility: visible !important;
18
+ }
19
+ `,o=document.createElement("style");o.textContent=s+tt+(i.injectCss??""),a.appendChild(o);const l=document.createElement("div");l.style.pointerEvents="auto",a.appendChild(l);let h=t;return P.render(P.h(r,h),l),{shadowRoot:a,update(c){h={...h,...c},P.render(P.h(r,h),l)},unmount(){P.render(null,l),n.remove()}}}const q='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';function lt({open:r,onClose:t,labelledBy:i,brandColor:n,testMode:a,allowClose:s=!0,inline:o=!1,children:l}){const h=d.useRef(null),c=d.useRef(null);if(d.useEffect(()=>{if(!r)return;c.current=document.activeElement??null;const g=h.current;g&&(g.querySelector(q)??g).focus({preventScroll:!0});const f=y=>{if(y.key==="Escape"){if(!s)return;y.stopPropagation(),t();return}if(y.key!=="Tab"||!h.current)return;const v=Array.from(h.current.querySelectorAll(q)).filter(T=>!T.hasAttribute("disabled")&&T.tabIndex!==-1);if(v.length===0){y.preventDefault();return}const j=v[0],m=v[v.length-1],M=document.activeElement;y.shiftKey&&M===j?(y.preventDefault(),m.focus()):!y.shiftKey&&M===m&&(y.preventDefault(),j.focus())};document.addEventListener("keydown",f,!0);const k=document.body.style.overflow;return o||(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",f,!0),o||(document.body.style.overflow=k),c.current?.focus?.({preventScroll:!0})}},[r,t,s,o]),!r)return null;const w=g=>{s&&g.target===g.currentTarget&&t()},x=n??"#3b82f6",C=`${o?"absolute z-[1]":"fixed z-[2147483647]"} inset-0 flex items-center justify-center bg-slate-950/50 p-2 sm:p-4 backdrop-blur-md animate-[pw-fade-in_180ms_ease-out]`;return e.jsxs("div",{class:C,onClick:w,"data-pw-root":!0,children:[e.jsxs("div",{class:"relative w-full max-w-md animate-[pw-scale-in_220ms_cubic-bezier(0.16,1,0.3,1)]",children:[a&&e.jsxs("div",{class:"absolute right-3 top-0 z-20 flex -translate-y-[calc(100%+6px)] items-center gap-1.5 rounded-full bg-gradient-to-r from-amber-300 to-amber-400 px-3 py-1 text-[11px] font-semibold uppercase tracking-wider text-amber-950 shadow-[0_4px_12px_-2px_rgba(245,158,11,0.45),0_0_0_1px_rgba(255,255,255,0.6)]",role:"status",children:[e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[e.jsx("path",{d:"M8 1L15 14H1L8 1Z",stroke:"currentColor","stroke-width":"1.5","stroke-linejoin":"round"}),e.jsx("path",{d:"M8 6v3",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"}),e.jsx("circle",{cx:"8",cy:"11.5",r:"0.5",fill:"currentColor"})]}),"Test mode — no real charge"]}),e.jsxs("div",{ref:h,role:"dialog","aria-modal":"true","aria-labelledby":i,tabIndex:-1,class:"relative flex max-h-[calc(100dvh-1rem)] sm:max-h-[calc(100dvh-2rem)] w-full flex-col overflow-hidden rounded-3xl bg-white outline-none ring-1 ring-black/5",style:{"--pw-accent":x,boxShadow:"0 1px 2px rgba(15,23,42,0.04), 0 12px 32px -8px rgba(15,23,42,0.18), 0 24px 64px -16px rgba(15,23,42,0.22)"},children:[e.jsx("div",{class:"flex-1 overflow-y-auto p-8",children:l}),s?e.jsx("button",{type:"button",onClick:t,"aria-label":"Close",class:"absolute right-3 top-3 z-10 flex h-8 w-8 items-center justify-center rounded-full bg-white/80 text-gray-400 backdrop-blur-sm transition-colors hover:bg-gray-100 hover:text-gray-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--pw-accent)]",children:e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M3 3l10 10M13 3L3 13",stroke:"currentColor","stroke-width":"1.75","stroke-linecap":"round"})})}):null]})]}),e.jsx("style",{children:`
20
+ @keyframes pw-fade-in { from { opacity: 0 } to { opacity: 1 } }
21
+ @keyframes pw-scale-in {
22
+ from { opacity: 0; transform: translateY(12px) scale(0.96) }
23
+ to { opacity: 1; transform: none }
24
+ }
25
+ `})]})}const ct={google:"Continue with Google",apple:"Continue with Apple",github:"Continue with GitHub",facebook:"Continue with Facebook"};function et({block:r,ctx:t}){const i=t.auth,n=t.authSession,a=r.allow_signup!==!1,s=r.allow_password_reset!==!1,o=r.hide_when_authenticated!==!1;if(!i)return typeof console<"u"&&console.warn("[paywall] auth_panel rendered without AuthClient — pass `auth: true` to PaywallUI"),null;const l=n&&!n.user.is_anonymous?n:null;return l&&o?null:l?e.jsx(dt,{email:l.user.email??"",onSignOut:()=>i.signOut().catch(()=>{})}):e.jsx(ut,{block:r,allowSignup:a,allowReset:s,ctx:t})}function dt({email:r,onSignOut:t}){return e.jsxs("div",{class:"flex items-center justify-between gap-3 rounded-2xl border border-gray-200 bg-gray-50/60 px-4 py-3",children:[e.jsxs("div",{class:"flex flex-col",children:[e.jsx("span",{class:"text-[10px] font-semibold uppercase tracking-wider text-gray-500",children:"Signed in"}),e.jsx("span",{class:"text-sm font-medium text-gray-900",children:r})]}),e.jsx("button",{type:"button",onClick:t,class:"rounded-md px-1.5 py-0.5 text-xs font-medium text-gray-600 transition-colors hover:bg-white hover:text-gray-900 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--pw-accent)]",children:"Sign out"})]})}function ut({block:r,allowSignup:t,allowReset:i,ctx:n}){const a=n.auth,s=r.providers??[],[o,l]=d.useState("signin"),[h,c]=d.useState(""),[w,x]=d.useState(""),[C,g]=d.useState(""),[f,k]=d.useState(null),[y,v]=d.useState(null),[j,m]=d.useState(null),M=async S=>{if(S.preventDefault(),!f){k("email"),v(null),m(null);try{o==="signin"?await a.signInWithEmail({email:h,password:w}):o==="signup"?(await a.signUp({email:h,password:w})).kind==="confirmation_required"&&(l("reset_verify"),m("Check your email for a confirmation code.")):o==="forgot"?(await a.requestPasswordReset({email:h}),l("reset_sent"),m("If that email exists, a reset code has been sent.")):o==="reset_verify"&&(await a.verifyOtp({email:h,token:C,type:w?"recovery":"email"}),w&&await a.updatePassword({password:w}))}catch(A){const _=A instanceof I.PaywallError?A.message:"Something went wrong";v(_)}finally{k(null)}}},T=async S=>{if(!f){k(S),v(null),m(null);try{await a.signInWithOAuth({provider:S,onPopupOpened:()=>k(null)})}catch(A){if(A instanceof I.PaywallError){if(A.code==="oauth_cancelled"||A.code==="oauth_timeout")return;v(A.message)}else v("Sign-in failed")}finally{k(null)}}};return e.jsxs("div",{class:"flex flex-col gap-3",children:[r.heading?e.jsx("h2",{class:"text-lg font-semibold tracking-tight text-gray-900",children:r.heading}):null,s.length>0&&(o==="signin"||o==="signup")?e.jsxs("div",{class:"flex flex-col gap-2",children:[s.map(S=>e.jsxs("button",{type:"button",onClick:()=>T(S),disabled:f!==null,class:"flex h-11 w-full items-center justify-center gap-2 rounded-xl border border-gray-200 bg-white px-4 text-sm font-medium text-gray-900 shadow-[0_1px_0_rgba(15,23,42,0.04)] transition-all hover:-translate-y-px hover:border-gray-300 hover:bg-gray-50 hover:shadow-sm disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:translate-y-0 disabled:hover:shadow-[0_1px_0_rgba(15,23,42,0.04)] focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--pw-accent)]",children:[f===S?e.jsx("span",{class:"inline-block h-4 w-4 animate-spin rounded-full border-2 border-gray-300 border-t-gray-700"}):e.jsx(gt,{provider:S}),e.jsx("span",{children:ct[S]})]},S)),e.jsx(pt,{})]}):null,e.jsxs("form",{onSubmit:M,class:"flex flex-col gap-2",children:[(o==="signin"||o==="signup"||o==="forgot")&&e.jsx(L,{type:"email",label:"Email",value:h,onInput:c,autocomplete:"email",required:!0}),(o==="signin"||o==="signup")&&e.jsx(L,{type:"password",label:"Password",value:w,onInput:x,autocomplete:o==="signin"?"current-password":"new-password",required:!0}),o==="reset_verify"&&e.jsxs(e.Fragment,{children:[e.jsx(L,{type:"text",label:"Confirmation code",value:C,onInput:g,autocomplete:"one-time-code",inputMode:"numeric",required:!0}),e.jsx(L,{type:"password",label:"New password (optional — only for password reset)",value:w,onInput:x,autocomplete:"new-password"})]}),o==="reset_sent"&&j&&e.jsx("p",{class:"rounded-lg bg-gray-50 px-3 py-2 text-xs text-gray-600",children:j}),y&&e.jsx("p",{class:"text-xs text-red-600",children:y}),j&&o!=="reset_sent"&&e.jsx("p",{class:"text-xs text-gray-500",children:j}),o!=="reset_sent"&&e.jsx("button",{type:"submit",disabled:f!==null,class:"flex h-11 w-full items-center justify-center rounded-xl px-4 text-sm font-semibold tracking-tight text-white transition-all hover:-translate-y-px hover:brightness-105 disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:translate-y-0 disabled:hover:brightness-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-[var(--pw-accent)]",style:{background:"linear-gradient(180deg, color-mix(in srgb, var(--pw-accent) 92%, white), var(--pw-accent))",boxShadow:"0 1px 2px rgba(15,23,42,0.08), 0 6px 14px -4px color-mix(in srgb, var(--pw-accent) 50%, transparent)"},children:f==="email"?e.jsx("span",{class:"inline-block h-4 w-4 animate-spin rounded-full border-2 border-white/40 border-t-white"}):ht(o)})]}),e.jsxs("div",{class:"flex flex-wrap items-center justify-between gap-x-3 gap-y-1 text-xs text-gray-500",children:[o==="signin"&&t&&e.jsx("button",{type:"button",onClick:()=>z(l,v,m,"signup"),class:"font-medium text-gray-700 hover:underline",children:"Create account"}),o==="signup"&&e.jsx("button",{type:"button",onClick:()=>z(l,v,m,"signin"),class:"font-medium text-gray-700 hover:underline",children:"I already have an account"}),o==="signin"&&i&&e.jsx("button",{type:"button",onClick:()=>z(l,v,m,"forgot"),class:"hover:underline",children:"Forgot password?"}),(o==="forgot"||o==="reset_sent"||o==="reset_verify")&&e.jsx("button",{type:"button",onClick:()=>z(l,v,m,"signin"),class:"hover:underline",children:"Back to sign in"}),o==="reset_sent"&&e.jsx("button",{type:"button",onClick:()=>z(l,v,m,"reset_verify"),class:"font-medium text-gray-700 hover:underline",children:"I have a code"})]})]})}function ht(r){switch(r){case"signin":return"Sign in";case"signup":return"Create account";case"forgot":return"Send reset code";case"reset_verify":return"Verify";default:return"Continue"}}function z(r,t,i,n){r(n),t(null),i(null)}function L({type:r,label:t,value:i,onInput:n,autocomplete:a,inputMode:s,required:o}){return e.jsxs("label",{class:"flex flex-col gap-1.5",children:[e.jsx("span",{class:"text-xs font-medium text-gray-700",children:t}),e.jsx("input",{type:r,value:i,onInput:l=>n(l.target.value),autocomplete:a,inputMode:s,required:o,class:"h-11 w-full rounded-xl border border-gray-200 bg-white px-3.5 text-sm text-gray-900 shadow-[0_1px_0_rgba(15,23,42,0.02)] outline-none transition-all placeholder:text-gray-400 hover:border-gray-300 focus:border-[var(--pw-accent)] focus:shadow-[0_0_0_3px_color-mix(in_srgb,var(--pw-accent)_18%,transparent)]"})]})}function pt(){return e.jsxs("div",{class:"flex items-center gap-2 py-1 text-[10px] uppercase tracking-[0.14em] text-gray-400",children:[e.jsx("div",{class:"h-px flex-1 bg-gradient-to-r from-gray-200 to-transparent"}),e.jsx("span",{children:"or"}),e.jsx("div",{class:"h-px flex-1 bg-gradient-to-r from-transparent to-gray-200"})]})}function gt({provider:r}){return r==="google"?e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 18 18","aria-hidden":"true",children:[e.jsx("path",{fill:"#4285F4",d:"M17.64 9.2c0-.64-.06-1.25-.16-1.84H9v3.49h4.84a4.14 4.14 0 0 1-1.79 2.71v2.26h2.9c1.7-1.56 2.69-3.87 2.69-6.62Z"}),e.jsx("path",{fill:"#34A853",d:"M9 18c2.43 0 4.47-.8 5.96-2.18l-2.9-2.26c-.8.54-1.83.86-3.06.86-2.36 0-4.36-1.59-5.07-3.74H.92v2.33A9 9 0 0 0 9 18Z"}),e.jsx("path",{fill:"#FBBC05",d:"M3.93 10.68a5.4 5.4 0 0 1 0-3.36V4.99H.92a9 9 0 0 0 0 8.02l3-2.33Z"}),e.jsx("path",{fill:"#EA4335",d:"M9 3.58c1.32 0 2.5.45 3.44 1.34l2.58-2.58A9 9 0 0 0 .92 4.99l3.01 2.33C4.64 5.17 6.64 3.58 9 3.58Z"})]}):r==="apple"?e.jsx("svg",{width:"14",height:"16",viewBox:"0 0 14 16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M11.4 8.5c0-2 1.6-3 1.7-3-.9-1.3-2.4-1.5-2.9-1.5-1.2-.1-2.4.7-3 .7-.6 0-1.6-.7-2.6-.7-1.3 0-2.6.8-3.3 2C-.4 8.4.7 12.5 2.2 14.7c.7 1.1 1.6 2.3 2.7 2.3 1.1 0 1.5-.7 2.8-.7 1.3 0 1.7.7 2.8.7 1.2 0 1.9-1.1 2.6-2.2.6-.9 1-1.8 1.1-2.7-1.4-.5-2.8-1.7-2.8-3.6Zm-2-6.5C10 1.3 10.4.4 10.3 0c-.7 0-1.6.5-2.1 1.1-.5.5-1 1.4-.9 2.2.7 0 1.5-.4 2.1-1.3Z"})}):r==="github"?e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M8 0C3.6 0 0 3.6 0 8a8 8 0 0 0 5.5 7.6c.4.1.5-.2.5-.4v-1.5c-2.2.5-2.7-1-2.7-1-.4-.9-.9-1.2-.9-1.2-.7-.5.1-.5.1-.5.8.1 1.2.8 1.2.8.7 1.2 1.9.9 2.4.7 0-.5.3-.9.5-1.1-1.8-.2-3.6-.9-3.6-4 0-.9.3-1.6.8-2.1-.1-.2-.4-1 .1-2.1 0 0 .7-.2 2.2.8a7.6 7.6 0 0 1 4 0c1.5-1 2.2-.8 2.2-.8.4 1.1.2 1.9.1 2.1.5.5.8 1.2.8 2.1 0 3.1-1.9 3.7-3.6 3.9.3.3.6.8.6 1.6V15c0 .2.1.5.6.4A8 8 0 0 0 16 8c0-4.4-3.6-8-8-8Z"})}):e.jsx("svg",{width:"14",height:"16",viewBox:"0 0 14 16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M14 2.7C14 1.2 12.8 0 11.3 0H2.7C1.2 0 0 1.2 0 2.7v10.6C0 14.8 1.2 16 2.7 16h4V9.8H4.7v-2H6.7V6.4c0-2 1.2-3.1 3-3.1.9 0 1.7.1 2 .2V5h-1.4c-.8 0-1 .4-1 1v1.5h2.4l-.3 2H9.3V16h2c1.5 0 2.7-1.2 2.7-2.7V2.7Z"})})}function ft({block:r,bootstrap:t,auth:i,authSession:n,onBack:a,showBack:s=!0}){const o={bootstrap:t,selectedPriceId:null,setSelectedPriceId:()=>{},onAction:()=>{},auth:i,authSession:n};return e.jsxs("div",{class:"flex flex-col gap-3",children:[s?e.jsx("button",{type:"button",onClick:a,class:"-ml-1 self-start rounded-md px-1.5 py-0.5 text-xs font-medium text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--pw-accent)]",children:"← Back"}):null,e.jsx(et,{block:r,ctx:o})]})}function wt({auth:r,onSuccess:t,onBack:i,heading:n="Continue as guest",description:a="Setting up your guest session…"}){const[s,o]=d.useState({kind:"signing-in"}),l=d.useRef(!0);d.useEffect(()=>()=>{l.current=!1},[]);const h=()=>{o({kind:"signing-in"}),(async()=>{try{const c=await r.signInAnonymously();if(!l.current)return;t(c)}catch(c){if(!l.current)return;o({kind:"error",message:c instanceof Error?c.message:"Anonymous sign-in failed"})}})()};return d.useEffect(()=>{h()},[]),e.jsxs("div",{class:"flex flex-col gap-3",children:[i?e.jsx("button",{type:"button",onClick:i,class:"-ml-1 self-start rounded-md px-1.5 py-0.5 text-xs font-medium text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--pw-accent)]",children:"← Back"}):null,e.jsxs("div",{class:"flex flex-col gap-1",children:[e.jsx("h2",{class:"text-xl font-semibold text-gray-900",children:n}),e.jsx("p",{class:"text-sm text-gray-500",children:a})]}),s.kind==="signing-in"?e.jsx("div",{class:"flex items-center justify-center py-6",children:e.jsx(xt,{})}):null,s.kind==="error"?e.jsxs("div",{class:"flex flex-col gap-3",children:[e.jsx("div",{class:"rounded-lg bg-red-50 px-3 py-2 text-sm text-red-700",children:s.message}),e.jsx("button",{type:"button",onClick:h,class:"self-start rounded-md bg-[var(--pw-accent)] px-3 py-1.5 text-sm font-medium text-white hover:opacity-90 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--pw-accent)] focus-visible:ring-offset-2",children:"Try again"})]}):null]})}function xt(){return e.jsxs("svg",{class:"h-5 w-5 animate-spin text-[var(--pw-accent)]",viewBox:"0 0 24 24",fill:"none",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"3","stroke-opacity":"0.2"}),e.jsx("path",{d:"M22 12a10 10 0 0 0-10-10",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round"})]})}const U=3,F=200,N=5e3,D=5,vt=10*1024*1024,W=["image/jpeg","image/png","image/webp"],Z=/.+@.+\..+/;function bt({client:r,authSession:t,origin:i,onBack:n}){const a=t?.user.email??"",s=a||null,[o,l]=d.useState(a),[h,c]=d.useState(""),[w,x]=d.useState(""),[C,g]=d.useState([]),[f,k]=d.useState(!1),[y,v]=d.useState(null),[j,m]=d.useState({}),M=d.useMemo(()=>{const _=(s??o).trim().toLowerCase(),u=h.trim(),p=w.trim();return Z.test(_)&&u.length>=U&&u.length<=F&&p.length>=1&&p.length<=N},[s,o,h,w]),T=()=>{const _={},u=(s??o).trim(),p=h.trim(),b=w.trim();return u?Z.test(u.toLowerCase())||(_.email="Invalid email"):_.email="Required",(p.length<U||p.length>F)&&(_.subject=`${U}–${F} characters`),(b.length<1||b.length>N)&&(_.message=`1–${N} characters`),m(_),Object.keys(_).length===0},S=async _=>{if(_.preventDefault(),!f&&T()){k(!0),m(u=>({...u,submit:void 0}));try{const u=(s??o).trim();await r.createSupportTicket({subject:h.trim(),content:w.trim(),email:u||void 0,files:C.length>0?C:void 0}),v(u)}catch(u){const p=u instanceof I.PaywallError&&u.message||"Failed to send. Please try again.";m(b=>({...b,submit:p}))}finally{k(!1)}}},A=()=>{c(""),x(""),g([]),m({}),v(null)};return y?e.jsxs("div",{class:"flex flex-col items-center gap-4 py-2 text-center",children:[e.jsx("div",{class:"flex h-14 w-14 items-center justify-center rounded-full",style:{background:"linear-gradient(135deg, color-mix(in srgb, var(--pw-accent) 85%, white), var(--pw-accent))",color:"#fff",boxShadow:"0 0 0 8px color-mix(in srgb, var(--pw-accent) 12%, transparent), 0 8px 20px -6px color-mix(in srgb, var(--pw-accent) 45%, transparent)"},"aria-hidden":"true",children:e.jsx("svg",{viewBox:"0 0 24 24",class:"h-7 w-7",children:e.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm6.93 8.2-6.85 9.29a1.01 1.01 0 0 1-1.43.19L5.76 13.77a1 1 0 1 1 1.25-1.56l4.08 3.26 6.23-8.45a1 1 0 1 1 1.61 1.18Z"})})}),e.jsx("div",{class:"text-lg font-semibold tracking-tight text-gray-900",children:"Request submitted"}),e.jsxs("div",{class:"max-w-[320px] text-sm leading-relaxed text-gray-500",children:["We've received your message and will respond to"," ",e.jsx("b",{class:"text-gray-700",children:y}),"."]}),e.jsxs("div",{class:"mt-2 flex items-center justify-center gap-3",children:[e.jsx("button",{type:"button",onClick:n,class:"rounded-xl px-3 py-2 text-sm font-medium text-gray-600 transition-colors hover:bg-gray-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--pw-accent)]",children:i==="standalone"?"Done":"Back"}),e.jsx("button",{type:"button",onClick:A,class:"flex h-10 items-center justify-center rounded-xl px-4 text-sm font-semibold text-white transition-all hover:-translate-y-px hover:brightness-105 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-[var(--pw-accent)]",style:{background:"linear-gradient(180deg, color-mix(in srgb, var(--pw-accent) 92%, white), var(--pw-accent))",boxShadow:"0 1px 2px rgba(15,23,42,0.08), 0 6px 14px -4px color-mix(in srgb, var(--pw-accent) 50%, transparent)"},children:"Send another request"})]})]}):e.jsxs("div",{class:"flex flex-col gap-3",children:[e.jsx("div",{class:"flex items-center justify-between",children:e.jsxs("button",{type:"button",onClick:n,class:"-ml-1 rounded-md px-1.5 py-0.5 text-xs font-medium text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--pw-accent)]",children:["← ",i==="standalone"?"Close":"Back"]})}),e.jsx("h2",{class:"text-lg font-semibold tracking-tight text-gray-900",children:"Contact Support"}),e.jsx("p",{class:"text-xs leading-relaxed text-gray-500",children:"Fill out the form below and we'll get back to you."}),e.jsxs("form",{onSubmit:S,class:"flex flex-col gap-3",children:[s?e.jsxs("div",{class:"rounded-xl border border-gray-200 bg-gray-50/60 px-3 py-2 text-xs text-gray-500",children:["Sending as ",e.jsx("b",{class:"font-medium text-gray-700",children:s})]}):e.jsx(Y,{type:"email",label:"Your email",value:o,onInput:l,error:j.email,autocomplete:"email",required:!0}),e.jsx(Y,{type:"text",label:"Subject",value:h,onInput:c,error:j.subject,required:!0}),e.jsx(mt,{label:"Message",value:w,onInput:x,error:j.message,required:!0}),e.jsx(yt,{files:C,onChange:g,disabled:f}),j.submit&&e.jsx("p",{class:"text-xs text-red-600",children:j.submit}),e.jsxs("div",{class:"mt-1 flex items-center justify-end gap-2",children:[e.jsx("button",{type:"button",onClick:n,disabled:f,class:"rounded-xl px-3 py-2 text-sm font-medium text-gray-600 transition-colors hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-60 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--pw-accent)]",children:i==="standalone"?"Close":"Back"}),e.jsx("button",{type:"submit",disabled:!M||f,class:"flex h-10 items-center justify-center rounded-xl px-4 text-sm font-semibold text-white transition-all hover:-translate-y-px hover:brightness-105 disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:translate-y-0 disabled:hover:brightness-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-[var(--pw-accent)]",style:{background:"linear-gradient(180deg, color-mix(in srgb, var(--pw-accent) 92%, white), var(--pw-accent))",boxShadow:"0 1px 2px rgba(15,23,42,0.08), 0 6px 14px -4px color-mix(in srgb, var(--pw-accent) 50%, transparent)"},children:f?e.jsx("span",{class:"inline-block h-4 w-4 animate-spin rounded-full border-2 border-white/40 border-t-white"}):"Send"})]})]})]})}function Y({type:r,label:t,value:i,onInput:n,error:a,autocomplete:s,required:o}){return e.jsxs("label",{class:"flex flex-col gap-1.5",children:[e.jsx("span",{class:"text-xs font-medium text-gray-700",children:t}),e.jsx("input",{type:r,value:i,onInput:l=>n(l.target.value),autocomplete:s,required:o,class:`h-11 w-full rounded-xl border bg-white px-3.5 text-sm text-gray-900 shadow-[0_1px_0_rgba(15,23,42,0.02)] outline-none transition-all placeholder:text-gray-400 ${a?"border-red-400 focus:border-red-500 focus:shadow-[0_0_0_3px_rgba(239,68,68,0.18)]":"border-gray-200 hover:border-gray-300 focus:border-[var(--pw-accent)] focus:shadow-[0_0_0_3px_color-mix(in_srgb,var(--pw-accent)_18%,transparent)]"}`}),a&&e.jsx("span",{class:"text-xs text-red-600",children:a})]})}function mt({label:r,value:t,onInput:i,error:n,required:a}){return e.jsxs("label",{class:"flex flex-col gap-1.5",children:[e.jsx("span",{class:"text-xs font-medium text-gray-700",children:r}),e.jsx("textarea",{value:t,onInput:s=>i(s.target.value),required:a,rows:4,class:`min-h-[104px] w-full rounded-xl border bg-white px-3.5 py-2.5 text-sm leading-relaxed text-gray-900 shadow-[0_1px_0_rgba(15,23,42,0.02)] outline-none transition-all placeholder:text-gray-400 ${n?"border-red-400 focus:border-red-500 focus:shadow-[0_0_0_3px_rgba(239,68,68,0.18)]":"border-gray-200 hover:border-gray-300 focus:border-[var(--pw-accent)] focus:shadow-[0_0_0_3px_color-mix(in_srgb,var(--pw-accent)_18%,transparent)]"}`}),n&&e.jsx("span",{class:"text-xs text-red-600",children:n})]})}function yt({files:r,onChange:t,disabled:i}){const n=d.useRef(null),[a,s]=d.useState(!1),[o,l]=d.useState(null),h=c=>{if(!c||i)return;l(null);const w=Array.from(c);if(r.length+w.length>D){l(`Up to ${D} files`);return}const x=w.filter(C=>W.includes(C.type)&&C.size<=vt);if(x.length!==w.length){l("Only JPEG/PNG/WebP, ≤ 10MB each");return}t([...r,...x])};return e.jsxs("div",{children:[e.jsx("span",{class:"text-xs font-medium text-gray-700",children:"Attachments (optional)"}),e.jsxs("div",{role:"button",tabIndex:0,"aria-label":"Attachments upload",onClick:()=>!i&&n.current?.click(),onDragOver:c=>{c.preventDefault(),i||s(!0)},onDragLeave:()=>s(!1),onDrop:c=>{c.preventDefault(),s(!1),h(c.dataTransfer?.files??null)},class:`mt-1.5 cursor-pointer rounded-2xl border border-dashed p-3.5 text-center transition-all ${a?"border-[var(--pw-accent)] bg-[color-mix(in_srgb,var(--pw-accent)_6%,white)]":"border-gray-300 hover:border-gray-400 hover:bg-gray-50/60"} ${i?"cursor-not-allowed opacity-60":""}`,children:[e.jsx("div",{class:"text-xs text-gray-500",children:"Drop images here or click to select"}),e.jsxs("div",{class:"mt-0.5 text-[11px] text-gray-400",children:["JPEG/PNG/WebP, up to ",D," files, ≤ 10MB each"]})]}),e.jsx("input",{ref:n,type:"file",multiple:!0,accept:W.join(","),class:"hidden",onChange:c=>{h(c.target.files),c.currentTarget.value=""}}),o&&e.jsx("p",{class:"mt-1 text-xs text-red-600",children:o}),r.length>0&&e.jsx("ul",{class:"mt-2 flex flex-col gap-1",children:r.map((c,w)=>e.jsxs("li",{class:"flex items-center justify-between gap-2 rounded bg-gray-50 px-2 py-1 text-xs",children:[e.jsx("span",{class:"truncate text-gray-700",children:c.name}),e.jsx("button",{type:"button",onClick:()=>{const x=[...r];x.splice(w,1),t(x)},disabled:i,class:"text-gray-500 hover:text-red-600 disabled:cursor-not-allowed disabled:opacity-60","aria-label":`Remove ${c.name}`,children:"✕"})]},`${c.name}-${c.size}-${w}`))})]})}function kt({block:r,ctx:t}){const[i,n]=d.useState(!1),a=r.priceId??t.selectedPriceId,s=i||r.action==="checkout"&&!a,o=async()=>{if(!s){n(!0);try{await t.onAction(r.action,{priceId:a})}finally{n(!1)}}};return e.jsx("button",{type:"button",disabled:s,onClick:o,class:"pw-cta-shimmer relative mt-1 flex h-14 w-full items-center justify-center overflow-hidden rounded-full px-6 text-base font-semibold tracking-tight text-white transition-transform duration-150 hover:-translate-y-px active:scale-[0.98] active:translate-y-0 disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:translate-y-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-[var(--pw-accent)]",style:{background:"linear-gradient(135deg, color-mix(in srgb, var(--pw-accent) 55%, white) 0%, var(--pw-accent) 55%, color-mix(in srgb, var(--pw-accent) 90%, black) 100%)",boxShadow:"0 0 24px 0 color-mix(in srgb, var(--pw-accent) 35%, transparent), inset 0 0 8px 0 color-mix(in srgb, white 25%, transparent), 0 1px 2px rgba(15,23,42,0.08)"},children:i?e.jsx("span",{class:"relative z-10 inline-block h-4 w-4 animate-spin rounded-full border-2 border-white/40 border-t-white"}):e.jsx("span",{class:"relative z-10",children:r.label})})}function jt({ctx:r}){const t=r.authSession,i=r.auth,[n,a]=d.useState(!1),s=()=>r.onAction("support");if(t&&!t.user.is_anonymous){const o=async()=>{if(!(!i||n)){a(!0);try{await i.signOut()}catch{}finally{a(!1)}}};return e.jsxs("div",{class:"-mt-3 flex flex-col items-center gap-1.5 pt-1 text-center text-[13px] text-gray-500",children:[e.jsxs("span",{children:["Signed in as"," ",e.jsx("b",{class:"font-medium text-gray-700",children:t.user.email})]}),e.jsxs("div",{class:"flex items-center justify-center gap-3",children:[e.jsx(B,{onClick:o,disabled:!i||n,children:n?"Signing out…":"Sign Out"}),e.jsx(K,{}),e.jsx(B,{onClick:s,children:"Contact Support"})]})]})}return e.jsxs("div",{class:"-mt-3 flex items-center justify-center gap-3 pt-1 text-center text-[13px]",children:[e.jsx(B,{onClick:()=>r.onAction("restore"),children:"Restore purchases"}),e.jsx(K,{}),e.jsx(B,{onClick:s,children:"Contact Support"})]})}function B({onClick:r,disabled:t,children:i}){return e.jsx("button",{type:"button",onClick:r,disabled:t,class:"font-semibold underline underline-offset-2 transition-opacity hover:opacity-80 disabled:cursor-not-allowed disabled:opacity-60 focus:outline-none focus-visible:opacity-80",style:{color:"var(--pw-accent)"},children:i})}function K(){return e.jsx("span",{class:"h-1 w-1 rounded-full bg-gray-300","aria-hidden":"true"})}function _t({block:r}){return r.items.length?e.jsx("ul",{class:"flex flex-col gap-2.5",role:"list",children:r.items.map(t=>e.jsxs("li",{class:"flex items-start gap-3 text-sm text-gray-700",children:[e.jsx("span",{class:"mt-px flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full",style:{background:"color-mix(in srgb, var(--pw-accent) 12%, white)",color:"var(--pw-accent)"},"aria-hidden":"true",children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M5 10l3 3 7-7",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})})}),e.jsxs("div",{class:"flex flex-col gap-0.5",children:[e.jsx("span",{class:"font-medium leading-snug text-gray-900",children:t.name}),t.desc?e.jsx("span",{class:"text-xs leading-relaxed text-gray-500",children:t.desc}):null]})]},t.id))}):null}function St({block:r}){const t=r.title??"100% Money-Back Guarantee",i=r.subtitle??"Not satisfied? We'll refund you — no questions asked.",n=(r.icon??"dollar_shield")!=="none";return e.jsxs("div",{class:"-mt-1 flex flex-col items-center gap-1 border-b border-gray-200 pb-4 text-center",children:[e.jsxs("div",{class:"flex items-center justify-center gap-1.5",children:[n?e.jsx(Ct,{}):null,e.jsx("b",{class:"text-[14px] font-semibold text-gray-700",children:t})]}),i?e.jsx("span",{class:"text-[12px] leading-relaxed text-gray-500",children:i}):null]})}function Ct(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",width:"18",height:"18",class:"text-emerald-500","aria-hidden":"true",children:e.jsx("path",{d:"M257.5 .1l3.1 .4 192 42.7c4.3 1 8.2 3.2 11.2 6.5s4.8 7.4 5.3 11.8l.2 2.5 0 234.7C469.3 416.5 373.8 512 256 512C140.1 512 45.9 419.7 42.7 304.6l-.1-6L42.7 64c0-4.4 1.4-8.8 3.9-12.4s6.2-6.3 10.4-7.8l2.4-.7L251.4 .5c2-.4 4.1-.6 6.2-.4zM256 85.3c-12.8 0-21.3 8.5-21.3 21.3l0 23.5c-36.3 4.3-64 34.1-64 72.5c0 44.8 34.1 61.9 64 70.4l0 66.1c-11.9-4-20.1-15.3-21.2-27.1l-.1-2.7c0-12.8-8.5-21.3-21.3-21.3s-21.3 8.5-21.3 21.3c0 38.4 27.7 68.3 64 72.5l0 23.5c0 12.8 8.5 21.3 21.3 21.3s21.3-8.5 21.3-21.3l0-23.5c36.3-4.3 64-36.3 64-72.5c0-44.8-34.1-61.9-64-70.4l0-66.1c11.9 4 20.1 15.3 21.2 27.1l.1 2.7c0 12.8 8.5 21.3 21.3 21.3s21.3-8.5 21.3-21.3c0-38.4-27.7-68.3-64-72.5l0-23.5c0-12.8-8.5-21.3-21.3-21.3zm21.3 198.4c14.9 6.4 21.3 12.8 21.3 25.6c0 14.9-8.5 25.6-21.3 29.9l0-55.5zM234.7 172.8l0 55.5c-14.9-6.4-21.3-12.8-21.3-25.6c0-14.9 8.5-25.6 21.3-29.9z"})})}const rt=30,It=16,At=2;function Mt(r,t){const i=t*At;let n=rt;for(r.style.fontSize=`${n}px`;r.scrollHeight>i&&n>It;)n-=1,r.style.fontSize=`${n}px`}function Tt({block:r,ctx:t}){const i=r.level??1,n=`h${i}`,a=i===1?"text-[1.875rem] font-bold leading-[1.15] text-center text-balance text-gray-900 tracking-[-0.02em]":i===2?"text-xl font-semibold leading-snug text-gray-900 tracking-tight":"text-base font-medium text-gray-900",s=d.useRef(null),o=i===1&&!!t.bootstrap.settings.title_auto_fit;return d.useEffect(()=>{if(!o||!s.current)return;const l=getComputedStyle(s.current),h=parseFloat(l.lineHeight)||rt*1.5;Mt(s.current,h)},[o,r.text]),e.jsx(n,{ref:s,class:a,children:r.text})}function Et(r){const t=r.local??{currency:r.currency,amount:r.amount};try{const i=new Intl.NumberFormat(void 0,{style:"currency",currency:t.currency,currencyDisplay:"narrowSymbol",maximumFractionDigits:t.amount%1===0?0:2,minimumFractionDigits:t.amount%1===0?0:2}).formatToParts(t.amount);let n="",a="";for(const s of i)s.type==="currency"?n=s.value:s.type!=="literal"&&(a+=s.value);return{currency:n||t.currency,amount:a.trim()}}catch{return{currency:t.currency,amount:String(t.amount)}}}function Pt(r){return r.label?r.label.toUpperCase():!r.interval||r.interval==="lifetime"?"LIFETIME":{day:"DAILY PLAN",week:"WEEKLY PLAN",month:"MONTHLY PLAN",year:"YEARLY PLAN"}[r.interval]??`${r.interval.toUpperCase()} PLAN`}function zt(r){if(!r.interval||r.interval==="lifetime")return"lifetime";const t=r.interval_count??1;return t===1?r.interval:`${t} ${r.interval}s`}function Lt({block:r,ctx:t}){const i=r.priceIds&&r.priceIds.length>0?new Set(r.priceIds):null,n=t.bootstrap.prices.filter(l=>!i||i.has(l.id));if(n.length===0)return e.jsx("p",{class:"text-sm text-gray-500",children:"No prices available."});const a=r.view==="horizontal",s=r.popular_label??"Most popular",o=a?Math.min(n.length,3):1;return e.jsx("div",{class:a?"grid gap-2.5":"flex flex-col gap-2.5",style:a?{gridTemplateColumns:`repeat(${o}, minmax(0, 1fr))`}:void 0,role:"radiogroup","aria-label":"Plans",children:n.map(l=>{const h=t.selectedPriceId===l.id,c=r.popular_price_id===l.id,{currency:w,amount:x}=Et(l);return e.jsxs("button",{type:"button",role:"radio","aria-checked":h,onClick:()=>{t.setSelectedPriceId(l.id),t.onAction("price_selected",{priceId:l.id,price:l})},class:["group relative flex w-full items-center gap-3 rounded-2xl border px-4 py-3 text-left transition-all duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-[var(--pw-accent)]",h?"border-[var(--pw-accent)] shadow-[0_0_0_1px_var(--pw-accent)]":"border-gray-200 bg-white hover:border-gray-300 hover:shadow-sm",c?"mt-2.5":""].join(" "),children:[c?e.jsx("span",{class:"absolute -top-2.5 left-4 rounded-full px-2.5 py-0.5 text-[10px] font-semibold uppercase tracking-wider text-white shadow-sm",style:{background:"linear-gradient(135deg, var(--pw-accent), color-mix(in srgb, var(--pw-accent) 70%, black))"},children:s}):null,e.jsxs("div",{class:"flex flex-1 flex-col gap-0.5",children:[e.jsx("span",{class:"text-[11px] font-medium uppercase tracking-[0.08em] text-gray-500",children:Pt(l)}),e.jsxs("div",{class:"flex items-baseline gap-1.5 leading-none",children:[e.jsx("span",{class:"text-[24px] font-normal text-gray-400",children:w}),e.jsx("span",{class:"text-[34px] font-semibold tracking-tight text-gray-900",children:x}),e.jsxs("span",{class:"ml-1 text-sm font-medium text-gray-400",children:["/ ",zt(l)]})]}),l.description?e.jsx("span",{class:"mt-1 text-xs leading-relaxed text-gray-500",children:l.description}):null,l.trial_days?e.jsxs("span",{class:"mt-1 text-xs font-medium text-[var(--pw-accent)]",children:[l.trial_days,"-day free trial"]}):null]}),e.jsx("span",{class:["flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full border transition-colors",h?"border-[var(--pw-accent)] bg-[var(--pw-accent)] text-white":"border-gray-300 bg-white text-transparent group-hover:border-gray-400"].join(" "),"aria-hidden":"true",children:e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M3.5 8.5l3 3 6-7",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})})})]},l.id)})})}function Bt({block:r}){return e.jsx("p",{class:"text-[0.9375rem] leading-relaxed text-gray-600",children:r.text})}const Rt={week:.25,month:1,year:12};function Ot(r){return r||"period"}function Ut({block:r,ctx:t}){if(!r.queries.length)return null;const n=t.bootstrap.prices.find(s=>s.id===t.selectedPriceId)?.interval??null,a=n?Rt[n]:void 0;return e.jsxs("div",{class:"flex flex-col gap-2",children:[e.jsxs("div",{class:"text-sm font-semibold text-gray-800",children:["Included per ",e.jsx("span",{children:Ot(n)}),":"]}),e.jsx("ul",{class:"flex flex-col gap-2",role:"list",children:r.queries.map(s=>{const o=Number.isFinite(s.count)?s.count:0,l=a!==void 0?Math.round(o*a):o;return e.jsxs("li",{class:`flex gap-2 ${s.desc?"":"items-center"}`,children:[e.jsx("span",{class:`flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full ${s.desc?"mt-0.5":""}`,style:{background:"var(--pw-accent)",color:"#ffffff"},"aria-hidden":"true",children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M5 10l3 3 7-7",stroke:"currentColor","stroke-width":"2.75","stroke-linecap":"round","stroke-linejoin":"round"})})}),e.jsxs("div",{children:[e.jsx("span",{class:"font-semibold text-gray-900 text-sm",children:l})," ",e.jsx("span",{class:"text-sm text-gray-800",children:s.name}),s.desc?e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx("span",{class:"text-xs text-gray-500",children:s.desc})]}):null]})]},s.id)})})]})}const it={heading:Tt,text:Bt,price_grid:Lt,cta_button:kt,auth_panel:et,current_session:jt,features_list:_t,tokenization_gate:Ut,guarantee_badge:St};function Ft({layout:r,bootstrap:t,onAction:i,auth:n,authSession:a}){const s=d.useMemo(()=>t.prices[0]?.id??null,[t.prices]),[o,l]=d.useState(s),h={bootstrap:t,selectedPriceId:o,setSelectedPriceId:l,onAction:i,auth:n,authSession:a};return e.jsx("div",{class:"flex flex-col gap-4",children:r.blocks.map((c,w)=>{const x=it[c.type];return x?e.jsx(x,{block:c,ctx:h},w):(typeof console<"u"&&console.warn(`[paywall] unknown block type: ${c.type}`),null)})})}function Nt(r,t,i,n){return r?n?{open:!0,view:"purchased",error:null}:t.status==="idle"||t.status==="loading"?{open:!0,view:"loading",error:null}:t.status==="error"?{open:!0,view:"error",error:t.error}:i.kind==="support"?{open:!0,view:"support",error:null}:i.kind==="auth_gate"?{open:!0,view:"auth",error:null}:i.kind==="anon_gate"?{open:!0,view:"anon",error:null}:i.kind==="awaiting_payment"?{open:!0,view:"awaiting_payment",error:null}:i.kind==="popup_blocked"?{open:!0,view:"popup_blocked",error:null}:i.kind==="purchase_success"?{open:!0,view:"purchased",error:null}:i.kind==="verifying"?{open:!0,view:"loading",error:null}:{open:!0,view:"layout",error:null}:{open:!1,view:null,error:null}}function Dt(r,t){return r.open===t.open&&r.view===t.view&&r.error===t.error}function Ht({client:r,open:t,onClose:i,onEvent:n,initialView:a,purchased:s,renew:o,onState:l,inline:h}){const[c,w]=d.useState({status:"idle"}),[x,C]=d.useState(()=>r.auth?.getCachedSession()??null),[g,f]=d.useState(()=>a==="support"?{kind:"support",origin:"standalone"}:a==="auth"?{kind:"auth_gate",origin:"standalone"}:a==="anon"?{kind:"anon_gate",origin:"standalone"}:{kind:"layout"}),k=d.useRef(!1),y=d.useRef(null);d.useEffect(()=>{if(!l)return;const u=Nt(t,c,g,s),p=y.current;p&&Dt(p,u)||(y.current=u,l(u))},[t,c,g,s,l]),d.useEffect(()=>{if(r.auth)return r.auth.onAuthChange((u,p)=>C(p))},[r.auth]),d.useEffect(()=>{if(typeof r.onBootstrapChange=="function")return r.onBootstrapChange(u=>{w(p=>p.status==="ready"?{status:"ready",data:u}:p)})},[r]),d.useEffect(()=>{if(!t||c.status==="ready"||c.status==="loading")return;let u=!1;return w({status:"loading"}),r.bootstrap().then(p=>{u||(w({status:"ready",data:p}),n("ready",p),p.user?.has_active_subscription&&!o&&(n("purchase_completed",{priceId:null,sessionId:null,restored:!0}),f({kind:"purchase_success",restored:!0})))}).catch(p=>{if(u)return;const b=p instanceof I.PaywallError?p:new I.PaywallError("unknown","Failed to load paywall",{cause:p});w({status:"error",error:b}),n("error",b)}),()=>{u=!0}},[t,r]),d.useEffect(()=>{if(!t){f({kind:"layout"}),k.current=!1;return}a==="support"?f({kind:"support",origin:"standalone"}):a==="auth"?f({kind:"auth_gate",origin:"standalone"}):a==="anon"&&f({kind:"anon_gate",origin:"standalone"})},[t,a]);const v=async u=>{try{const p=await r.createCheckout({priceId:u,ignoreActivePurchase:o===!0});if(n("checkout_started",{priceId:u,url:p.url,acquiring:p.acquiring}),typeof window>"u"||!p.url)return;const b=window.open(p.url,"_blank");if(b){try{b.opener=null}catch{}f({kind:"awaiting_payment",priceId:u,url:p.url})}else f({kind:"popup_blocked",priceId:u,url:p.url})}catch(p){if(p instanceof I.PaywallError&&p.code==="already_purchased"){try{await r.getUser({force:!0})}catch{}n("purchase_completed",{priceId:u,sessionId:null,restored:!0}),f({kind:"purchase_success",restored:!0});return}const b=p instanceof I.PaywallError?p:new I.PaywallError("checkout_failed","Checkout failed",{cause:p});n("error",b),f({kind:"layout"})}},j=(u,p)=>{if(typeof window>"u")return;const b=window.open(p,"_blank");if(b){try{b.opener=null}catch{}f({kind:"awaiting_payment",priceId:u,url:p})}};d.useEffect(()=>{if(g.kind!=="auth_gate"||!x||x.user.is_anonymous||k.current)return;k.current=!0;const u=g.pendingCheckout,p=g.origin;f({kind:"verifying"}),(async()=>{if(!o)try{if((await r.getUser({force:!0})).has_active_subscription){n("purchase_completed",{priceId:u?.priceId??null,sessionId:null,restored:!0}),f({kind:"purchase_success",restored:!0});return}}catch{}if(!u){p==="standalone"?i():f({kind:"layout"});return}await v(u.priceId)})().finally(()=>{k.current=!1})},[x,g]);const m=async(u,p)=>{if(u==="close"){i();return}if(u==="price_selected"){n("price_selected",p);return}if(u==="restore"){if(!r.auth||r.auth.getCachedSession())return;f({kind:"auth_gate"});return}if(u==="support"){f({kind:"support",origin:"layout"});return}if(u==="checkout"&&c.status==="ready"){const b=p?.priceId;if(!b){n("error",new I.PaywallError("no_price","No price selected"));return}if((c.data.settings.checkout_mode??"guest")==="preauth"&&!!r.auth&&!r.auth.getCachedSession()){f({kind:"auth_gate",pendingCheckout:{priceId:b}});return}await v(b)}},M=c.status==="ready"?c.data.settings.brand_color:null,T=c.status==="ready"?!!c.data.settings.is_test_mode:!1,S=c.status==="ready"?c.data.settings.allow_close!==!1:!0,A={type:"auth_panel",heading:"Sign in to continue",allow_signup:!0,allow_password_reset:!0,hide_when_authenticated:!1,providers:c.status==="ready"?c.data.settings.auth_providers:void 0},_=g.kind==="support"?e.jsx(bt,{client:r,authSession:x,origin:g.origin,onBack:()=>{g.origin==="standalone"?i():f({kind:"layout"})}}):null;return e.jsx(lt,{open:t,onClose:i,brandColor:M,testMode:T,allowClose:S,inline:h,labelledBy:"pw-title",children:s?e.jsx(X,{onContinue:i}):g.kind==="purchase_success"?e.jsx(X,{restored:g.restored,onContinue:i}):_||(c.status==="loading"||c.status==="idle"||g.kind==="verifying"?e.jsxs("div",{class:"flex flex-col items-center justify-center gap-3 py-12",children:[e.jsx("span",{class:"inline-block h-7 w-7 animate-spin rounded-full border-[2.5px] border-gray-200 border-t-[var(--pw-accent)]"}),e.jsx("span",{class:"text-xs font-medium tracking-wide text-gray-500",children:g.kind==="verifying"?"Checking your subscription…":"Loading…"})]}):c.status==="error"?e.jsxs("div",{class:"flex flex-col items-center gap-2 py-8 text-center",children:[e.jsx("div",{class:"flex h-11 w-11 items-center justify-center rounded-full bg-red-50",children:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:[e.jsx("path",{d:"M10 6v5M10 14h.01",stroke:"#dc2626","stroke-width":"2","stroke-linecap":"round"}),e.jsx("circle",{cx:"10",cy:"10",r:"8",stroke:"#dc2626","stroke-width":"1.75"})]})}),e.jsx("p",{class:"text-sm font-semibold tracking-tight text-gray-900",children:"Something went wrong"}),e.jsx("p",{class:"text-xs leading-relaxed text-gray-500",children:c.error.message})]}):g.kind==="auth_gate"&&r.auth?e.jsx(ft,{block:A,bootstrap:c.data,auth:r.auth,authSession:x,showBack:g.origin!=="standalone",onBack:()=>{g.origin==="standalone"?i():f({kind:"layout"})}}):g.kind==="anon_gate"&&r.auth?e.jsx(wt,{auth:r.auth,onSuccess:()=>{g.origin==="standalone"?i():f({kind:"layout"})},onBack:g.origin==="standalone"?void 0:()=>f({kind:"layout"})}):g.kind==="awaiting_payment"?e.jsx(Vt,{client:r,onBack:()=>f({kind:"layout"}),onReopen:()=>{if(typeof window>"u")return;const u=window.open(g.url,"_blank");if(u)try{u.opener=null}catch{}},onRetry:()=>v(g.priceId)}):g.kind==="popup_blocked"?e.jsxs("div",{class:"flex flex-col items-center gap-3 py-8 text-center",children:[e.jsx("div",{class:"flex h-11 w-11 items-center justify-center rounded-full",style:{background:"color-mix(in srgb, var(--pw-accent) 12%, white)",color:"var(--pw-accent)"},"aria-hidden":"true",children:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[e.jsx("path",{d:"M4 5h12v10H4z",stroke:"currentColor","stroke-width":"1.75","stroke-linejoin":"round"}),e.jsx("path",{d:"M7 9l3 3 4-5",stroke:"currentColor","stroke-width":"1.75","stroke-linecap":"round","stroke-linejoin":"round"})]})}),e.jsx("p",{class:"text-sm font-semibold tracking-tight text-gray-900",children:"Allow popups to continue"}),e.jsx("p",{class:"max-w-[18rem] text-xs leading-relaxed text-gray-500",children:"Your browser blocked the checkout tab. Click below to open it."}),e.jsx("button",{type:"button",onClick:()=>j(g.priceId,g.url),class:"mt-1 rounded-xl px-4 py-2 text-xs font-semibold text-white transition-all hover:-translate-y-px hover:brightness-105 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-[var(--pw-accent)]",style:{background:"linear-gradient(180deg, color-mix(in srgb, var(--pw-accent) 92%, white), var(--pw-accent))",boxShadow:"0 1px 2px rgba(15,23,42,0.08), 0 6px 14px -4px color-mix(in srgb, var(--pw-accent) 50%, transparent)"},children:"Open checkout"})]}):e.jsx(Ft,{layout:c.data.layout,bootstrap:c.data,onAction:m,auth:r.auth,authSession:x}))})}function Vt({client:r,onBack:t,onReopen:i,onRetry:n}){const[a,s]=d.useState(!1),[o,l]=d.useState(!1),h=d.useRef(null);d.useEffect(()=>()=>{h.current!==null&&clearTimeout(h.current)},[]);const c=async()=>{if(!a){s(!0),l(!1);try{if((await r.getUser({force:!0})).has_active_subscription){typeof window<"u"&&window.postMessage({type:"paywall_purchase"},"*");return}l(!0),h.current!==null&&clearTimeout(h.current),h.current=setTimeout(()=>{l(!1),h.current=null},5e3)}catch{l(!0)}finally{s(!1)}}};return e.jsxs("div",{class:"flex flex-col gap-3",children:[e.jsx("button",{type:"button",onClick:t,class:"-ml-1 self-start rounded-md px-1.5 py-0.5 text-xs font-medium text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--pw-accent)]",children:"← Back"}),e.jsxs("div",{class:"flex flex-col items-center gap-3 py-6 text-center",children:[e.jsxs("div",{class:"relative flex h-12 w-12 items-center justify-center",children:[e.jsx("span",{class:"absolute inset-0 animate-ping rounded-full opacity-40",style:{background:"color-mix(in srgb, var(--pw-accent) 30%, transparent)"},"aria-hidden":"true"}),e.jsx("span",{class:"relative inline-block h-7 w-7 animate-spin rounded-full border-[2.5px] border-gray-200 border-t-[var(--pw-accent)]"})]}),e.jsx("p",{class:"text-sm font-semibold tracking-tight text-gray-900",children:"Complete payment in the new tab"}),e.jsx("p",{class:"max-w-[20rem] text-xs leading-relaxed text-gray-500",children:"We'll detect your payment automatically — or click below once you're done."}),e.jsx("button",{type:"button",onClick:c,disabled:a,class:"mt-1 rounded-xl px-5 py-2.5 text-sm font-semibold text-white transition-all hover:-translate-y-px hover:brightness-105 disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:translate-y-0 disabled:hover:brightness-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-[var(--pw-accent)]",style:{background:"linear-gradient(180deg, color-mix(in srgb, var(--pw-accent) 92%, white), var(--pw-accent))",boxShadow:"0 1px 2px rgba(15,23,42,0.08), 0 6px 14px -4px color-mix(in srgb, var(--pw-accent) 50%, transparent)"},children:a?"Checking…":"I've paid"}),o?e.jsx("p",{class:"text-xs leading-relaxed text-gray-500",children:"Payment is still being processed. Please try again in a moment."}):null]}),e.jsxs("div",{class:"rounded-2xl border border-gray-200 bg-gray-50/60 p-3.5",children:[e.jsx("p",{class:"text-xs leading-relaxed text-gray-600",children:"Checkout window didn't open or got blocked? Click here to open it again."}),e.jsx("button",{type:"button",onClick:i,class:"mt-2.5 w-full rounded-xl border border-gray-200 bg-white px-3 py-2 text-xs font-semibold text-gray-700 transition-colors hover:border-gray-300 hover:bg-gray-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--pw-accent)]",children:"Open checkout again"})]}),e.jsx("button",{type:"button",onClick:n,class:"self-center rounded-md px-2 py-1 text-xs text-gray-500 underline-offset-2 hover:text-gray-900 hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--pw-accent)]",children:"Tab closed? Try again"})]})}function X({onContinue:r,restored:t=!1}){return e.jsxs("div",{class:"flex flex-col items-center gap-3 py-8 text-center",children:[e.jsx("div",{class:"flex h-14 w-14 items-center justify-center rounded-full ring-8",style:{background:"linear-gradient(135deg, #4ade80, #16a34a)",color:"#fff",boxShadow:"0 0 0 8px rgba(74,222,128,0.12), 0 8px 20px -6px rgba(22,163,74,0.45)"},"aria-hidden":"true",children:e.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",children:e.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})})}),e.jsx("p",{id:"pw-title",class:"mt-1 text-lg font-semibold tracking-tight text-gray-900",children:t?"Subscription restored":"Payment received"}),e.jsx("p",{class:"text-sm leading-relaxed text-gray-500",children:t?"Welcome back — your subscription is already active.":"Your subscription is now active."}),e.jsx("button",{type:"button",onClick:r,class:"mt-3 rounded-xl px-5 py-2.5 text-sm font-semibold text-white transition-all hover:-translate-y-px hover:brightness-105 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-[var(--pw-accent)]",style:{background:"linear-gradient(180deg, color-mix(in srgb, var(--pw-accent) 92%, white), var(--pw-accent))",boxShadow:"0 1px 2px rgba(15,23,42,0.08), 0 8px 20px -6px color-mix(in srgb, var(--pw-accent) 50%, transparent)"},children:"Continue"})]})}const $t=10*6e4,Gt=5e3,qt=3e4;class Wt{constructor(t){this.timer=null,this.timeoutTimer=null,this.visibilityHandler=null,this.focusHandler=null,this.messageHandler=null,this.stopped=!1,this.checking=!1,this.opts={client:t.client,onActive:t.onActive,onTimeout:t.onTimeout??(()=>{}),timeoutMs:t.timeoutMs??$t,visibleIntervalMs:t.visibleIntervalMs??Gt,hiddenIntervalMs:t.hiddenIntervalMs??qt}}start(){this.stopped||typeof document>"u"||typeof window>"u"||(this.check(),this.scheduleNext(),this.visibilityHandler=()=>this.handleVisibilityChange(),document.addEventListener("visibilitychange",this.visibilityHandler),this.focusHandler=()=>void this.check(),window.addEventListener("focus",this.focusHandler),this.messageHandler=t=>this.handleMessage(t),window.addEventListener("message",this.messageHandler),this.timeoutTimer=setTimeout(()=>{this.stopped||(this.stop(),this.opts.onTimeout())},this.opts.timeoutMs))}stop(){this.stopped=!0,this.timer!==null&&clearTimeout(this.timer),this.timer=null,this.timeoutTimer!==null&&clearTimeout(this.timeoutTimer),this.timeoutTimer=null,typeof document<"u"&&this.visibilityHandler&&document.removeEventListener("visibilitychange",this.visibilityHandler),typeof window<"u"&&(this.focusHandler&&window.removeEventListener("focus",this.focusHandler),this.messageHandler&&window.removeEventListener("message",this.messageHandler)),this.visibilityHandler=null,this.focusHandler=null,this.messageHandler=null}async check(){if(!(this.stopped||this.checking)){this.checking=!0;try{const t=await this.opts.client.getUser({force:!0});if(this.stopped)return;t.has_active_subscription&&(this.stop(),this.opts.onActive(t))}catch{}finally{this.checking=!1}}}scheduleNext(){if(this.stopped)return;const i=typeof document<"u"&&document.visibilityState==="visible"?this.opts.visibleIntervalMs:this.opts.hiddenIntervalMs;this.timer=setTimeout(async()=>{await this.check(),this.scheduleNext()},i)}handleVisibilityChange(){typeof document>"u"||(document.visibilityState==="visible"&&this.check(),this.timer!==null&&(clearTimeout(this.timer),this.timer=null),this.scheduleNext())}handleMessage(t){const i=t.data;!i||typeof i!="object"||i.type==="paywall_purchase"&&this.check()}}function Zt(){return!(typeof document>"u"||typeof window>"u"||typeof location<"u"&&location.protocol==="chrome-extension:")}const H={open:!1,view:null,error:null},E={status:"paywall_status",priceId:"paywall_price_id",sessionId:"paywall_session_id"};class Yt{constructor(t){this.handle=null,this.isOpen=!1,this.listeners=new Map,this.userUnsub=null,this.authUnsub=null,this.watcher=null,this.tracker=null,this.purchased=!1,this.trialStore=null,this.trialStoreConfig=null,this.lastTrialStatus=null,this.trialExpiredFired=!1,this.lastVisibility=null,this.currentState=H,this.stateListeners=new Set;const{auth:i,ownsAuth:n}=Kt(t);this.auth=i,this.ownsAuth=n,this.billing=t.client??new I.BillingClient({...t,auth:this.auth}),this.host=t.host,this.shadowMode=t.shadowMode??"closed",this.mountThenLoad=t.mountThenLoad??!0,this.inline=t.inline===!0,this.userUnsub=this.billing.onUserChange(a=>{this.emit("userChange",a)}),this.auth&&(this.authUnsub=this.auth.onAuthChange((a,s)=>{this.emit("authChange",{event:a,session:s})})),this.initTracker(t.analytics),t.autoDetectReturn!==!1&&typeof window<"u"&&queueMicrotask(()=>this.checkReturn())}initTracker(t){if(t===!1)return;const i=typeof t=="object"&&t!==null?t:{};if(i.enabled===!1)return;const n=i.endpoint??`${this.billing.apiOrigin}/api/v1/paywall/${this.billing.paywallId}/events`;this.tracker=new I.EventTracker({endpoint:n,paywallId:this.billing.paywallId,capabilities:this.billing.capabilities,getVisitorId:()=>this.billing.getVisitorId(),getCachedVisitorId:()=>this.billing.getCachedVisitorId(),getUserId:()=>this.billing.getIdentity()?.userId??null,flushIntervalMs:i.flushIntervalMs,maxBufferSize:i.maxBufferSize,fetch:i.fetch,sendBeacon:i.sendBeacon}),this.on("open",()=>this.tracker?.track("paywall_opened")),this.on("ready",a=>this.tracker?.track("paywall_viewed",{is_test_mode:a.settings.is_test_mode,prices_count:a.prices.length,offers_count:a.offers.length})),this.on("price_selected",a=>this.tracker?.track("price_selected",{price_id:a.priceId})),this.on("checkout_started",a=>this.tracker?.track("checkout_started",{price_id:a.priceId,acquiring:a.acquiring})),this.on("purchase_completed",a=>this.tracker?.track("purchase_completed",{price_id:a.priceId,session_id:a.sessionId})),this.on("purchase_failed",a=>this.tracker?.track("purchase_failed",{reason:a.reason})),this.on("close",()=>this.tracker?.track("paywall_closed")),this.on("trial_blocked",a=>this.tracker?.track("trial_blocked",{mode:a.mode,...a.mode==="time"?{remaining_ms:a.remainingMs,total_ms:a.totalMs}:a.mode==="opens"?{remaining_actions:a.remainingActions,total_actions:a.totalActions}:{}})),this.on("trial_expired",()=>this.tracker?.track("trial_expired")),this.on("visibility_blocked",a=>this.tracker?.track("visibility_blocked",{reason:a.reason,country:a.country,tier:a.tier})),this.on("error",a=>this.tracker?.track("error",{code:a.code,message:a.message}))}track(t,i){this.tracker?.track(t,i)}onUserChange(t){return this.on("userChange",t)}setBootstrap(t){this.billing.setBootstrap(t)}on(t,i){let n=this.listeners.get(t);return n||(n=new Set,this.listeners.set(t,n)),n.add(i),()=>n.delete(i)}off(t,i){this.listeners.get(t)?.delete(i)}emit(t,...i){const n=this.listeners.get(t);if(!n)return;const a=i[0];for(const s of n)try{s(a)}catch(o){typeof console<"u"&&console.error("[paywall] listener error",o)}}open(t={}){this.openInternal("layout",t)}async preload(t={}){try{await this.billing.bootstrap({signal:t.signal}),this.billing.auth&&await this.billing.getBalances({signal:t.signal})}catch{}}openSupport(t={}){this.openInternal("support",t)}openAuth(t={}){this.auth&&this.openInternal("auth",{...t,skipTrial:!0})}openAnonGate(t={}){this.auth&&this.openInternal("anon",{...t,skipTrial:!0,skipVisibility:!0})}openInternal(t,i){i.identity&&this.billing.setIdentity(i.identity),this.purchased=!1;const n=i.skipTrial===!0||t==="support",a=i.skipVisibility===!0||t==="support"||t==="auth"||t==="anon",s=i.renew===!0;if(n&&a){this.mountAndShow(t,{renew:s});return}const o=this.billing.getCachedBootstrap();if(o){this.runOpenGates(t,o,{skipTrial:n,skipVisibility:a,renew:s});return}if(this.mountThenLoad){this.mountAndShow(t,{renew:s}),this.billing.bootstrap().then(l=>this.runDelayedGates(l,{skipTrial:n,skipVisibility:a})).catch(()=>{});return}this.billing.bootstrap().then(l=>this.runOpenGates(t,l,{skipTrial:n,skipVisibility:a,renew:s})).catch(()=>{this.mountAndShow(t,{renew:s})})}runDelayedGates(t,i){if(!this.isOpen)return;if(!i.skipVisibility){const s=t.settings.visibility;if(s&&(this.lastVisibility=s,!s.visible)){this.close(),this.emit("visibility_blocked",s);return}}if(i.skipTrial)return;const n=t.settings.trial;if(!n)return;const a=this.ensureTrialStore(n);a.check().then(async s=>{if(this.isOpen&&(this.lastTrialStatus=s,s.mode!=="none")){if(s.blocked){const o=await a.recordBlock();if(this.lastTrialStatus=o,!this.isOpen)return;this.close(),this.emit("trial_blocked",o);return}this.trialExpiredFired||(this.trialExpiredFired=!0,this.emit("trial_expired"))}}).catch(s=>{typeof console<"u"&&console.warn("[paywall] trial check failed",s)})}runOpenGates(t,i,n){if(!n.skipVisibility){const a=i.settings.visibility;if(a&&(this.lastVisibility=a,!a.visible)){this.emit("visibility_blocked",a);return}}if(n.skipTrial){this.mountAndShow(t,{renew:n.renew});return}this.gateThroughTrial(t,i,n.renew)}gateThroughTrial(t,i,n){const a=i.settings.trial;if(!a){this.mountAndShow(t,{renew:n});return}const s=this.ensureTrialStore(a);s.check().then(async o=>{if(this.lastTrialStatus=o,o.mode==="none"){this.mountAndShow(t,{renew:n});return}if(o.blocked){const l=await s.recordBlock();this.lastTrialStatus=l,this.emit("trial_blocked",l);return}this.trialExpiredFired||(this.trialExpiredFired=!0,this.emit("trial_expired")),this.mountAndShow(t,{renew:n})}).catch(o=>{typeof console<"u"&&console.warn("[paywall] trial check failed",o),this.mountAndShow(t,{renew:n})})}ensureTrialStore(t){if(this.trialStore&&this.trialStoreConfig&&Qt(this.trialStoreConfig,t))return this.trialStore;this.trialStoreConfig=t;const i=this.billing.createTrialStore;return this.trialStore=typeof i=="function"?i.call(this.billing,t):nt(this.billing.getStorage(),this.billing.paywallId,t),this.trialStore}mountAndShow(t,i={}){const n=i.renew===!0;if(this.handle){this.isOpen=!0,this.handle.update({open:!0,initialView:t,purchased:!1,renew:n}),this.emit("open");return}this.isOpen=!0,this.handle=ot(Ht,{client:this.billing,open:!0,initialView:t,purchased:!1,renew:n,onClose:()=>this.close(),onEvent:(a,s)=>{this.emit(a,s),a==="checkout_started"&&this.startUserWatcher()},onState:a=>this.applyState(a),inline:this.inline},{host:this.host,shadowMode:this.shadowMode,inline:this.inline}),this.emit("open")}applyState(t){if(!Jt(this.currentState,t)){this.currentState=t;for(const i of this.stateListeners)try{i(t)}catch(n){console.warn("[paywall] onStateChange listener threw",n)}}}getState(){return this.currentState}onStateChange(t,i={}){this.stateListeners.add(t);const n=i.immediate??"microtask";if(n!=="none"){const a=this.currentState;if(n==="sync")try{t(a)}catch(s){console.warn("[paywall] onStateChange initial sync threw",s)}else queueMicrotask(()=>{this.stateListeners.has(t)&&t(a)})}return()=>{this.stateListeners.delete(t)}}getTrialStatus(){return this.lastTrialStatus}getVisibility(){return this.lastVisibility}getPrices(t={}){return this.billing.getPrices(t)}getCachedPrices(){return this.billing.getCachedPrices()}getUserLanguage(){return this.billing.getUserLanguage()}async getAccess(t={}){let i=this.billing.getCachedBootstrap();if(!i)try{i=await this.billing.bootstrap({signal:t.signal})}catch{const o=this.billing.getCachedUser();return o?.has_active_subscription?{access:"granted",reason:"has_subscription",visibility:null,trial:null,user:o}:{access:"blocked",reason:"no_subscription",visibility:null,trial:null,user:o}}const n=i.user??null;if(n?.has_active_subscription)return{access:"granted",reason:"has_subscription",visibility:i.settings.visibility??null,trial:null,user:n};let a=null;if(!t.skipVisibility){const o=i.settings.visibility;if(o&&(a=o,this.lastVisibility=o,!o.visible))return{access:"granted",reason:"visibility_blocked",visibility:a,trial:null,user:n}}let s=null;if(!t.skipTrial){const o=i.settings.trial;if(o)try{if(s=await this.ensureTrialStore(o).check(),this.lastTrialStatus=s,s.blocked)return{access:"granted",reason:"trial_blocked",visibility:a,trial:s,user:n}}catch(l){typeof console<"u"&&console.warn("[paywall] getAccess: trial check failed",l)}}return{access:"blocked",reason:"no_subscription",visibility:a,trial:s,user:n}}async resetTrial(){this.trialStore&&(await this.trialStore.reset(),this.lastTrialStatus=null,this.trialExpiredFired=!1)}startUserWatcher(){this.watcher||Zt()&&(this.watcher=new Wt({client:this.billing,onActive:t=>{this.watcher=null,this.emit("purchase_completed",{priceId:null,sessionId:null});const i=this.billing.getCachedBootstrap()?.settings.success_redirect_url;if(i&&typeof window<"u")try{window.location.assign(i);return}catch{}this.isOpen&&this.handle&&(this.purchased=!0,this.handle.update({purchased:!0}))},onTimeout:()=>{this.watcher=null}}),this.watcher.start())}close(){!this.isOpen||!this.handle||(this.isOpen=!1,this.purchased=!1,this.handle.update({open:!1,purchased:!1}),this.applyState(H),this.emit("close"))}checkReturn(){if(typeof window>"u")return;const t=new URL(window.location.href),i=J(t.hash.replace(/^#/,"")),n=J(t.search.replace(/^\?/,"")),a=i??n;a&&(a.status==="paid"?(this.emit("purchase_completed",{priceId:a.priceId,sessionId:a.sessionId}),te(a)):(a.status==="failed"||a.status==="cancelled")&&this.emit("purchase_failed",{reason:a.status}),ee(t))}destroy(){this.tracker?.destroy(),this.tracker=null,this.listeners.clear(),this.stateListeners.clear(),this.watcher?.stop(),this.watcher=null,this.userUnsub?.(),this.userUnsub=null,this.authUnsub?.(),this.authUnsub=null,this.ownsAuth&&this.auth&&this.auth.destroy?.(),this.ownsAuth=!1,this.billing.destroy?.(),this.handle?.unmount(),this.handle=null,this.isOpen=!1,this.currentState=H}}function Kt(r){if(!r.auth)return{auth:void 0,ownsAuth:!1};if(r.auth instanceof I.AuthClient||Xt(r.auth))return{auth:r.auth,ownsAuth:!1};const t=r.auth===!0?{}:r.auth;return{auth:new I.AuthClient({paywallId:r.paywallId,apiOrigin:t.apiOrigin??r.apiOrigin,storage:t.storage??r.storage,fetch:t.fetch??r.fetch,openPopup:t.openPopup}),ownsAuth:!0}}function Xt(r){if(typeof r!="object"||r===null)return!1;const t=r;return typeof t.onAuthChange=="function"&&typeof t.getCachedSession=="function"&&typeof t.signOut=="function"}function Jt(r,t){return r.open===t.open&&r.view===t.view&&r.error===t.error}function Qt(r,t){return r.mode===t.mode&&r.payload===t.payload&&r.storage===t.storage}function J(r){if(!r)return null;const t=new URLSearchParams(r),i=t.get(E.status);return i?{status:i,priceId:t.get(E.priceId),sessionId:t.get(E.sessionId)}:null}function te(r){if(!(typeof window>"u"||!window.opener))try{window.opener.postMessage({type:"paywall_purchase",status:r.status,priceId:r.priceId,sessionId:r.sessionId},"*")}catch{}}function ee(r){const t=(n,a)=>{if(!n)return"";const s=new URLSearchParams(n.replace(/^[?#]/,""));s.delete(E.status),s.delete(E.priceId),s.delete(E.sessionId);const o=s.toString();return o?a+o:""},i=r.pathname+t(r.search,"?")+t(r.hash,"#");window.history.replaceState(null,"",i)}exports.PaywallUI=Yt;exports.blockRegistry=it;
26
+ //# sourceMappingURL=PaywallUI-Bu51__PT.js.map