@tinkerlandai/indiana-sdk 0.8.0 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +67 -20
- package/README.zh-CN.md +66 -19
- package/dist/ai-usage-BV-FlgWr.d.ts +247 -0
- package/dist/{ai-usage-Bigjb8MS.d.ts → api-B3FIE41b.d.ts} +554 -423
- package/dist/chunk-2QPETWDX.js +1 -0
- package/dist/chunk-ANOOBDW5.js +350 -0
- package/dist/chunk-BNU6IG3F.js +1 -0
- package/dist/chunk-GRLMT5PR.js +1 -0
- package/dist/chunk-LMR2TM3X.js +1 -0
- package/dist/chunk-OBYJWIRB.js +1 -0
- package/dist/{chunk-G2R56FKU.js → chunk-SHSNIJJM.js} +1 -1
- package/dist/{chunk-OVMNCZYC.js → chunk-SOQO2RDZ.js} +1 -1
- package/dist/chunk-VVV3JNS3.js +1 -0
- package/dist/{chunk-YAFMBXIE.js → chunk-X747SY26.js} +1 -1
- package/dist/chunk-Y32NPIYY.js +1 -0
- package/dist/chunk-ZT66RIFU.js +10 -0
- package/dist/{configuration-sync-VFbY1pCN.d.ts → configuration-sync-DNvKXHk-.d.ts} +25 -25
- package/dist/{content-K2HCZVC2.js → content-J3FKZTGT.js} +1 -1
- package/dist/{errors-BpCmukJr.d.ts → errors-C8lRYZ0n.d.ts} +49 -2
- package/dist/{funnel-runtime-start-DKcTCRrd.d.ts → funnel-local-client-wbz-4gFx.d.ts} +701 -6055
- package/dist/funnel-runtime-host-C5P5JTV3.js +1 -0
- package/dist/index.d.ts +1831 -1901
- package/dist/index.js +1 -1
- package/dist/native-shell.js +1 -1
- package/dist/openrouter.d.ts +4 -3
- package/dist/openrouter.js +1 -1
- package/dist/page.d.ts +7 -7
- package/dist/page.js +1 -1
- package/dist/paywall-3GIRKSHN.js +1 -0
- package/dist/popup.d.ts +2 -2
- package/dist/popup.js +1 -1
- package/dist/react-native.d.ts +97 -4
- package/dist/react-native.js +1 -1
- package/dist/screen-renderer-5FPYVSPW.js +1 -0
- package/dist/server.d.ts +4648 -8
- package/dist/server.js +1 -1
- package/dist/src-BMJCIMIF.js +1 -0
- package/dist/visual.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-2A6UYUFA.js +0 -1
- package/dist/chunk-3BQFJANQ.js +0 -1
- package/dist/chunk-3ENVRJE6.js +0 -350
- package/dist/chunk-A3N4ZZTM.js +0 -7
- package/dist/chunk-AE4CUTUE.js +0 -1
- package/dist/chunk-CXYOZSOF.js +0 -1
- package/dist/funnel-runtime-host-HNZ47TZW.js +0 -1
- package/dist/paywall-PD62B2AY.js +0 -1
- package/dist/src-4MRSESVS.js +0 -1
- package/dist/{chunk-6X42DWOM.js → chunk-DSPLGTQI.js} +0 -0
- package/dist/{chunk-S5TVMQRC.js → chunk-EXCPE2XH.js} +0 -0
- package/dist/{customer-page-BrCZxcaQ.d.ts → customer-page-WUQVK_tp.d.ts} +4 -4
- package/dist/{screen-BazUOjwM.d.ts → screen-BpAejkn0.d.ts} +267 -267
package/dist/chunk-AE4CUTUE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as u,c as d}from"./chunk-RRII2DMC.js";import{z as b}from"zod";var z=b.enum(["sandbox","live"]),k=b.object({projectId:b.string().min(1),environment:z}).strict();import{z as t}from"zod";var f=t.tuple([t.number().min(0).max(1),t.number().min(0).max(1)]).refine(([n,g])=>n<=g),C=t.strictObject({attribute:t.string().optional(),seed:t.string(),hashVersion:t.literal(2),ranges:t.array(f).max(100)}),E=t.strictObject({id:t.string().min(1).max(255),condition:d,gate:t.boolean().optional()}),H=t.strictObject({key:t.string().optional(),name:t.string().optional(),passthrough:t.boolean().optional()}),M={condition:d.optional(),parentConditions:t.array(E).max(100).optional(),weights:t.array(t.number().min(0).max(1)).max(20).optional(),coverage:t.number().min(0).max(1).optional(),hashAttribute:t.string().optional(),fallbackAttribute:t.string().optional(),hashVersion:t.literal(2).optional(),disableStickyBucketing:t.boolean().optional(),bucketVersion:t.number().int().nonnegative().optional(),minBucketVersion:t.number().int().nonnegative().optional(),filters:t.array(C).max(100).optional(),ranges:t.array(f).max(20).optional(),meta:t.array(H).max(20).optional(),seed:t.string().optional(),name:t.string().optional(),phase:t.string().optional()},y=t.strictObject({...M,key:t.string().min(1).max(255),variations:t.tuple([u,u]).rest(u).refine(n=>n.length<=20),urlPatterns:t.array(t.strictObject({include:t.boolean(),type:t.enum(["regex","simple"]),pattern:t.string()})).max(100).optional(),force:t.number().int().nonnegative().optional(),active:t.boolean().optional(),persistQueryString:t.boolean().optional()}),N=t.strictObject({value:u,variationId:t.number().int(),key:t.string(),name:t.string().optional(),bucket:t.number().optional(),passthrough:t.boolean().optional(),inExperiment:t.boolean(),hashUsed:t.boolean().optional(),hashAttribute:t.string(),hashValue:t.string(),featureId:t.string().nullable(),stickyBucketUsed:t.boolean().optional()}),U=t.strictObject({...M,id:t.string().max(255).optional(),force:u.optional(),variations:t.array(u).min(2).max(20).optional(),key:t.string().optional(),range:f.optional(),tracks:t.array(t.strictObject({experiment:y,result:N})).max(100).optional()}),D=t.strictObject({defaultValue:u.optional(),rules:t.array(U).max(500).optional()}),h=t.record(t.string(),t.union([t.strictObject({type:t.literal("hashed"),attributeKey:t.string(),values:t.array(t.string().regex(/^[a-f0-9]{64}$/))}),t.strictObject({type:t.literal("list"),attributeKey:t.string(),values:t.array(t.union([t.string(),t.number()]))}),t.strictObject({type:t.literal("condition"),condition:d})])),te=t.strictObject({scope:k,generation:t.string().regex(/^[a-f0-9]{64}$/),evaluatedAt:t.iso.datetime({offset:!0}),expiresAt:t.iso.datetime({offset:!0}).nullable(),features:t.record(t.string(),D),savedGroups:h,experiments:t.record(t.uuid(),y)});import{z as a}from"zod";import{z as e}from"zod";import{z as r}from"zod";var P=r.strictObject({schemaVersion:r.literal(1),renderKey:r.string().min(1).max(256),routeTemplate:r.string().startsWith("/").max(2048),selectors:r.array(r.string().regex(/^[a-z][a-z0-9-]*\[(?:id|data-testid|data-test|data-qa|data-indiana-id)="(?:[^"\\\x00-\x1f\x7f]|\\["\\])*"\]$/).max(512)),present:r.array(r.number().int().min(0)).min(1),absent:r.array(r.number().int().min(0))}).superRefine((n,g)=>{let s=[...n.present,...n.absent];(new Set(n.selectors).size!==n.selectors.length||new Set(s).size!==s.length||s.length!==n.selectors.length||s.some(o=>o>=n.selectors.length))&&g.addIssue({code:"custom",message:"Incomplete or ambiguous render signature"})}),w=r.strictObject({renderKey:r.string().min(1).max(256),routeKey:r.string().min(1).max(256),stateKey:r.string().min(1).max(256),documentKey:r.string().min(1).max(256),documentHash:r.string().regex(/^[a-f0-9]{64}$/),compositionKey:r.string().min(1).max(256),entryMode:r.enum(["hard","soft"]),match:r.strictObject({present:r.array(r.number().int().min(0)),absent:r.array(r.number().int().min(0))})});import{z as m}from"zod";var B={"enterprise-internal-indiana-test":"indiana-admin-vercel@enterprise-internal-490516.iam.gserviceaccount.com","tinkerland-indiana-prod":"indiana-admin-vercel@tinkerland-indiana.iam.gserviceaccount.com"},x="[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",T=m.string().regex(new RegExp(`^${x}/${x}/${x}/manifest\\.json$`)),X="content-length;content-type;host;x-goog-if-generation-match",A=m.strictObject({kind:m.literal("gcs-v4-put"),url:m.url(),bucket:m.enum(["enterprise-internal-indiana-test","tinkerland-indiana-prod"]),objectKey:T,byteLength:m.number().int().min(1),expiresAt:m.iso.datetime(),headers:m.strictObject({"Content-Type":m.literal("application/json"),"x-goog-if-generation-match":m.literal("0")})}).superRefine((n,g)=>{let s=new URL(n.url),o=s.searchParams,R=["X-Goog-Algorithm","X-Goog-Credential","X-Goog-Date","X-Goog-Expires","X-Goog-Signature","X-Goog-SignedHeaders"],l=o.get("X-Goog-Date")??"",O=/^\d{8}T\d{6}Z$/.test(l)?Date.parse(`${l.slice(0,4)}-${l.slice(4,6)}-${l.slice(6,8)}T${l.slice(9,11)}:${l.slice(11,13)}:${l.slice(13,15)}Z`):NaN,p=Number(o.get("X-Goog-Expires"));(s.origin!=="https://storage.googleapis.com"||s.username||s.password||s.hash||s.pathname!==`/${n.bucket}/app-manifests/${n.objectKey}`||[...o.keys()].length!==R.length||R.some($=>o.getAll($).length!==1)||o.get("X-Goog-Algorithm")!=="GOOG4-RSA-SHA256"||o.get("X-Goog-Credential")!==`${B[n.bucket]}/${l.slice(0,8)}/auto/storage/goog4_request`||o.get("X-Goog-SignedHeaders")!==X||!/^[a-f0-9]{512,1024}$/.test(o.get("X-Goog-Signature")??"")||!Number.isFinite(O)||!Number.isInteger(p)||p<1||p>900||O+p*1e3!==Date.parse(n.expiresAt))&&g.addIssue({code:"custom",message:"Invalid IAM upload capability"})});var i=e.string().min(1).max(256),c=e.string().regex(/^[a-f0-9]{64}$/),le=e.strictObject({versionId:e.uuid(),manifestDigest:c,sourceGraphDigest:c,pageKey:i,stateKey:i,documentKey:i,documentHash:c,elementKey:i.optional(),nodeId:i.optional(),contentHash:c.optional(),renderKey:i.optional()}),G=e.strictObject({pageKey:i,documentKey:i,expectedDocumentHash:c,renderKey:i.optional(),nodeId:i,elementKey:i,expectedContentHash:c,property:e.enum(["text","fontSize","color"]),value:e.union([e.string().max(4e3),e.number().finite()])}),V=e.strictObject({versionId:e.uuid(),manifestDigest:c,sourceGraphDigest:c,pageKey:i,stateKey:i,documentKey:i,documentHash:c,renderKey:i.optional(),patches:e.array(G.omit({pageKey:!0,documentKey:!0,expectedDocumentHash:!0,renderKey:!0})).min(1).max(200)}),_=/^[a-z][a-z0-9-]{0,39}$/,K=e.string().regex(_),I=e.enum(["web","ios","android"]),ue=e.discriminatedUnion("action",[e.strictObject({action:e.literal("register"),requestId:e.uuid(),client:K,platform:I,label:e.string().trim().min(1).max(100),sha256:c,bytes:e.number().int().min(1),transferBytes:e.number().int().min(1)}),e.strictObject({action:e.literal("complete"),versionId:e.uuid()}),e.strictObject({action:e.literal("current"),versionId:e.uuid(),expectedCurrent:e.uuid().nullable()}),e.strictObject({action:e.literal("delivery"),enabled:e.boolean()}),e.strictObject({action:e.literal("changes"),versionId:e.uuid(),experimentId:e.uuid(),variationId:i,changesetId:e.uuid().nullable(),expectedRevision:c.nullable(),editorUrl:e.string().url().max(2048),patches:e.array(G).min(1).max(200)})]),S=e.strictObject({id:e.uuid(),projectId:e.uuid(),environmentId:e.uuid(),clientKey:K,platform:I,label:e.string(),sha256:c,bytes:e.number().int().positive(),objectKey:e.string(),state:e.enum(["uploading","ready","rejected"]),isCurrent:e.boolean(),revision:e.number().int().nonnegative(),createdAt:e.string(),expiresAt:e.string(),readyAt:e.string().nullable(),summary:e.record(e.string(),e.json()),routeTree:e.json().nullable(),validation:e.record(e.string(),e.json())}),F=e.strictObject({key:K,platform:I,currentId:e.uuid().nullable()}),ge=e.strictObject({rows:e.array(S).max(100),nextCursor:e.uuid().nullable(),clients:e.array(F).max(20)}),v=e.strictObject({storedBytes:e.number().int().nonnegative(),reservedBytes:e.number().int().nonnegative(),chargedBytes:e.number().int().nonnegative(),versions:e.number().int().nonnegative(),objects:e.number().int().nonnegative(),orphanObjects:e.number().int().nonnegative(),missingReadyObjects:e.number().int().nonnegative(),unknownObjectSizes:e.number().int().nonnegative(),byteLimit:e.number().int().positive(),versionLimit:e.number().int().positive(),remainingBytes:e.number().int().nonnegative()}),pe=e.strictObject({asOf:e.iso.datetime({offset:!0}),reclamation:e.literal("manual-review-required"),buckets:e.strictObject({source:v,runtime:v,previews:v})}),de=e.strictObject({asOf:e.iso.datetime({offset:!0}),reviewOnly:e.literal(!0),complete:e.boolean(),issues:e.strictObject({scanLimit:e.boolean(),invalidReferences:e.number().int().nonnegative(),missingVersions:e.number().int().nonnegative()}),totals:e.strictObject({versions:e.number().int().nonnegative(),protected:e.number().int().nonnegative(),reviewCandidates:e.number().int().nonnegative()}),rows:e.array(e.strictObject({versionId:e.uuid(),kind:e.enum(["source","runtime"]),state:e.enum(["uploading","ready","rejected"]),createdAt:e.iso.datetime({offset:!0}),reviewAfter:e.iso.datetime({offset:!0}),reasons:e.array(e.enum(["current","upload-capability","retention-grace","incomplete-inventory","retained-observation","gb","gb-observation","funnel-draft","funnel-draft-observation","funnel-version","funnel-version-observation"])).max(11)})).max(50),nextCursor:e.uuid().nullable()}),ye=e.strictObject({version:S,actorId:e.uuid(),claims:e.record(e.string(),e.json())}),be=e.strictObject({version:S,upload:A.nullable()}),fe=e.object({format:e.literal("indiana-route-state-index"),schemaVersion:e.literal(3),routes:e.array(e.object({routeKey:i,path:e.string(),documentKey:i,documentHash:c,initialStateKey:i,initialRenderKey:i})),renders:e.array(w)}).loose().superRefine((n,g)=>{(!n.renders||n.routes.some(s=>!n.renders?.some(o=>o.renderKey===s.initialRenderKey&&o.routeKey===s.routeKey&&o.documentKey===s.documentKey&&o.stateKey===s.initialStateKey&&o.documentHash===s.documentHash&&o.entryMode==="hard")))&&g.addIssue({code:"custom",message:"Incomplete render catalog"})}),he=e.strictObject({rows:e.array(e.object({id:e.uuid(),name:e.string(),status:e.string(),variations:e.array(e.object({id:i,key:i,name:e.string().optional()}).loose())}).loose()),limited:e.boolean()}),xe=e.strictObject({enabled:e.boolean(),allowedOrigins:e.array(e.string())});var L=a.strictObject({selector:a.string().min(1).max(2048),action:a.enum(["set","append","remove"]),attribute:a.string().min(1).max(128).refine(n=>["html","class","style","position","href","src","alt","title","id","role","hidden"].includes(n)||/^(aria|data)-[a-z0-9_-]+$/.test(n)),value:a.string().max(5e4).optional(),parentSelector:a.string().max(2048).optional(),insertBeforeSelector:a.string().max(2048).optional()}),q=a.strictObject({variation:a.string().min(1).max(128),description:a.string().max(2e3).default(""),css:a.string().max(1e5).default(""),js:a.string().max(1e5).default(""),domMutations:a.array(L).max(200).default([]),iam:V.optional(),renderGuard:P.optional()}),j=q.omit({variation:!0,description:!0,iam:!0}),J=y.omit({variations:!0,active:!0}).extend({changeId:a.string().regex(/^[a-f0-9]{64}$/),variations:a.tuple([j,j]).rest(j).refine(n=>n.length<=20)}),Re=a.strictObject({trackExposures:a.boolean(),environmentId:a.uuid(),generation:a.string().regex(/^[a-f0-9]{64}$/),experiments:a.array(J).max(100),savedGroups:h});export{z as a,k as b,y as c,N as d,U as e,D as f,h as g,te as h,le as i,L as j,q as k,j as l,J as m,Re as n};
|
package/dist/chunk-CXYOZSOF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as T,b as C,e as E}from"./chunk-A3N4ZZTM.js";import{a as t}from"./chunk-OVMNCZYC.js";import{a as A,j as N,m as D,p as O}from"./chunk-3BQFJANQ.js";import{b as I}from"./chunk-AE4CUTUE.js";import{a as k}from"./chunk-S5TVMQRC.js";var _={name:"@tinkerlandai/indiana-sdk",version:"0.8.0",description:"Framework-independent Indiana SDK for customer identity, entitlements, credits, offers and growth surfaces.",license:"UNLICENSED",repository:{type:"git",url:"git+https://github.com/tinkerlandai/Indiana.git",directory:"packages/sdk"},engines:{node:">=22"},publishConfig:{access:"public",tag:"beta"},type:"module",sideEffects:!1,files:["dist","README.md","README.zh-CN.md","CHANGELOG.md","THIRD_PARTY_NOTICES.md"],exports:{"./react-native":{types:"./dist/react-native.d.ts","react-native":"./dist/react-native.js",import:"./dist/react-native.js",default:"./dist/react-native.js"},".":{types:"./dist/index.d.ts",import:"./dist/index.js"},"./popup":{types:"./dist/popup.d.ts",import:"./dist/popup.js"},"./server":{types:"./dist/server.d.ts",import:"./dist/server.js"},"./openrouter":{types:"./dist/openrouter.d.ts",import:"./dist/openrouter.js"},"./native-shell":{types:"./dist/native-shell.d.ts",import:"./dist/native-shell.js"},"./page":{types:"./dist/page.d.ts",import:"./dist/page.js"},"./visual":{types:"./dist/visual.d.ts",import:"./dist/visual.js"}},scripts:{build:"tsup",prepack:"pnpm run build",typecheck:"tsc --noEmit",lint:"node ../../scripts/lint.mjs --workspace packages/sdk"},dependencies:{"@ai-sdk/provider":"4.0.26","@types/json-schema":"7.0.15","css-tree":"^3.2.1","dom-mutator":"0.7.0",dompurify:"^3.4.15",zod:"4.6.5"},devDependencies:{"@indiana/contracts":"workspace:*","@openrouter/sdk":"^1.4.25","@types/css-tree":"^3.2.0",ai:"7.0.136",tsup:"^8.5.1",typescript:"^5.9.3","whatwg-url-minimum":"0.2.0"},peerDependencies:{"@openrouter/sdk":"^1.4.25"},peerDependenciesMeta:{"@openrouter/sdk":{optional:!0}}};var F=Symbol("IndianaNoContent");function J(d,j,P=URL){let a=d.scope?I.parse(d.scope):void 0,o=new P(d.baseUrl??k);if(o.username||o.password||o.search||o.hash)throw new t("INVALID_URL","baseUrl must not contain credentials, query, or fragment");if(o.protocol!=="https:"&&!(o.protocol==="http:"&&["localhost","127.0.0.1","[::1]"].includes(o.hostname)))throw new t("INVALID_URL","Use HTTPS, or HTTP on localhost during development");let L=d.fetch??globalThis.fetch.bind(globalThis),u=d.timeoutMs??1e4;if(!Number.isFinite(u)||u<=0||u>12e4)throw new t("INVALID_TIMEOUT","timeoutMs must be between 1 and 120000");let p=null,c=0,l=null,m=new Set;function b(){c+=1,p=null,l=null;for(let i of m)i.abort();m.clear()}async function M(i,U={},v="POST",H={}){if(!p)throw new t("NOT_IDENTIFIED","Call identify with a server-issued customer token first");let w=c,n=new AbortController;m.add(n);let f=()=>w!==c?new t("IDENTITY_CHANGED","Customer identity changed while the request was in flight"):new t("TIMEOUT","Indiana request timed out"),y,q=new Promise((r,s)=>{y=()=>s(f()),n.signal.addEventListener("abort",y,{once:!0})}),K=setTimeout(()=>n.abort(),u),x=async()=>{let r=await L(`${o.href.replace(/\/$/,"")}/api/v1/${i}`,{method:v,headers:{"Content-Type":"application/json",Authorization:`Bearer ${p}`,[T]:E.current,[C]:_.version,...a?{"X-Indiana-Project":a.projectId,"X-Indiana-Environment":a.environment}:{}},body:v==="POST"?JSON.stringify(U):void 0,signal:n.signal,credentials:"omit",cache:"no-store",redirect:"error",...H.keepalive?{keepalive:!0}:{}});if(n.signal.aborted)throw f();let s;try{s=r.status===204?F:await r.json()}catch{throw n.signal.aborted?f():new t(r.ok?"INVALID_RESPONSE":"HTTP_ERROR","The gateway returned an unreadable response",r.status,r.headers.get("X-Request-Id")??void 0)}if(n.signal.aborted)throw f();if(w!==c)throw new t("IDENTITY_CHANGED","Customer identity changed while the request was in flight");if(!r.ok){let e=D.safeParse(s),g=e.success&&(!A.safeParse(e.data.error.code).success||N(e.data.error.code,r.status)),S=g?e.data.error.code:"HTTP_ERROR",R=O(S,r.status,{retryAfter:r.headers.get("Retry-After"),recovery:g?e.data.error.recovery:void 0,reason:g?e.data.error.reason:void 0});throw new t(S,g?e.data.error.message:"Indiana request failed",r.status,r.headers.get("X-Request-Id")??(e.success?e.data.requestId:void 0),{...R,...e.success&&e.data.error.retryable===!1?{retryable:!1}:{},...R.retryAfterSeconds===void 0&&e.success&&e.data.error.retryAfterSeconds!==void 0?{retryAfterSeconds:e.data.error.retryAfterSeconds}:{}})}if(r.headers.get(T)!==E.current)throw new t("PROTOCOL_MISMATCH","Response protocol does not match this SDK");if(a&&s&&typeof s=="object"&&"scope"in s){let e=I.safeParse(s.scope);if(!e.success||e.data.projectId!==a.projectId||e.data.environment!==a.environment)throw new t("SCOPE_MISMATCH","Response scope does not match this SDK instance")}let h=r.headers.get("X-Indiana-Telemetry-Subject");if(h){if(!/^[a-f0-9]{64}$/.test(h))throw new t("INVALID_RESPONSE","Invalid telemetry identity");l!==h&&(l=h,j?.(l))}return s};try{return await Promise.race([x(),q])}catch(r){throw w!==c?new t("IDENTITY_CHANGED","Customer identity changed while the request was in flight"):r instanceof t?r:new t(n.signal.aborted?"TIMEOUT":"NETWORK_ERROR",n.signal.aborted?"Indiana request timed out":"Unable to read the Indiana response")}finally{clearTimeout(K),n.signal.removeEventListener("abort",y),m.delete(n)}}return{subjectKey:()=>l,identify(i){if(!i.trim()||/\s/.test(i)||i.length>4096)throw new t("INVALID_TOKEN","A nonempty server-issued token is required");b(),p=i},reset:b,request:M}}export{J as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as re}from"./chunk-6X42DWOM.js";import"./chunk-CXYOZSOF.js";import{Qd as be,bg as me}from"./chunk-A3N4ZZTM.js";import{a}from"./chunk-OVMNCZYC.js";import{Hb as ve}from"./chunk-3BQFJANQ.js";import"./chunk-AE4CUTUE.js";import"./chunk-S5TVMQRC.js";import"./chunk-RRII2DMC.js";import"./chunk-KQCTDXVD.js";function Ce(P){let M=P.view;if(!M?.paywall)throw new a("INVALID_REQUEST","The current node is not a Paywall");let n=M.paywall.receiptId,te=M.nodeId,se=M.visit,I=M.paywall.resolution,Q=I,v="document"in I?I:null;function U(t){return"document"in t?t.offering.id:t.content.offeringVersionId}function ie(t){if(t.id!==I.id||U(t)!==U(I)||t.content?.artifact.sha256!==I.content?.artifact.sha256)throw new a("INVALID_RESPONSE","The pinned Paywall binding changed")}let m=M.paywall.quote,T=M.paywall.operation,W=!1,q=new AbortController,S=M.paywall.purchaseRequestId,H=0,k=M.paywall.selectionGeneration??0,D=M.paywall.canReselect===!0,C=null,N=new Map,J=new Map;function V(t){if(t.purchase&&t.purchase.receiptId!==n)throw new a("INVALID_RESPONSE","Purchase receipt changed");let r=t.run.paywall;return t.purchase??(r?.receiptId===n?r:null)}function $(){if(W)throw new a("IDENTITY_CHANGED","Paywall presentation has closed")}function X(t,r,w){if($(),r!==H||w!==void 0&&m?.operationId!==w)return!1;let y=k,s=t.run.paywall;if(s?.receiptId===n){if((s.selectionGeneration??0)<k)return!1;k=s.selectionGeneration??0,D=s.canReselect===!0,ie(s.resolution)}let l=V(t),u=k>y,_=u?l?.quote??null:l?.quote??m,R=l?.operation??(_?.operationId===m?.operationId?T:null);if(_&&R&&_.operationId!==R.operationId)throw new a("INVALID_RESPONSE","Purchase operation changed");return s?.receiptId===n&&(Q=s.resolution,v="document"in Q?Q:v?{...Q,document:v.document,offering:v.offering}:null),(u||_?.operationId!==m?.operationId)&&(H++,s?.receiptId===n&&(S=s.purchaseRequestId)),m=_,(T?.operationId!==R?.operationId||T?.status==="pending"||R?.status==="complete")&&(T=R),!0}function B(t,r,w){return new Promise((y,s)=>{let l=!1,u=()=>{clearTimeout(Z),q.signal.removeEventListener("abort",Y)},_=x=>{l||(l=!0,u(),y(x))},R=x=>{l||(l=!0,u(),s(x))},Y=()=>R(new a("IDENTITY_CHANGED","Paywall presentation has closed")),Z=setTimeout(()=>R(new a("COMMAND_PENDING","The purchase command is still pending; retry the original request",202,w)),Math.max(0,r-Date.now()));q.signal.addEventListener("abort",Y,{once:!0}),q.signal.aborted&&Y(),t.then(_,R)})}function h(t){return new Promise(r=>{let w=()=>{clearTimeout(y),q.signal.removeEventListener("abort",w),r()},y=setTimeout(w,t);q.signal.addEventListener("abort",w,{once:!0}),q.signal.aborted&&w()})}async function F(t,r,w){$();let y=N.get(t);if(!y){let u=P.pendingCommands?.find(_=>_.requestId===t)??P.pendingCommand;if(u?.operation==="submit"&&u.requestId===t&&u.nodeId===te&&u.visit===se){r.type==="paywall_quote"&&u.input.type==="paywall_quote"&&u.input.predecessor&&!r.predecessor&&(r={...r,predecessor:u.input.predecessor});let _=me.parse(u),R=me.parse({...u,input:r});if(R.operation!=="submit"||_.operation!=="submit"||JSON.stringify(R.input)!==JSON.stringify(_.input))throw new a("CONFLICT","A restored purchase request cannot change its input");r=R.input,y=_,N.set(t,y)}}if(y){if(JSON.stringify(y.input)!==JSON.stringify(r))throw new a("CONFLICT","A purchase request cannot change its input")}else{let u=P.view;if(!u||u.nodeId!==te||u.visit!==se||u.paywall?.receiptId!==n)throw new a("PRECONDITION_FAILED","The Paywall visit has changed");y={operation:"submit",requestId:t,nodeId:te,visit:se,revision:u.revision,input:r},N.set(t,y)}let s=Date.now()+3e4,l=await B(P.submit(y),s,t);for(;l.run.pendingRequest?.requestId===t&&Date.now()<s&&!W&&(await h(Math.min(1e3,s-Date.now())),!(W||Date.now()>=s));)l=await B(P.resume(t),s,t);if(W)throw new a("IDENTITY_CHANGED","Paywall presentation has closed");if(l.run.pendingRequest?.requestId===t)throw new a("COMMAND_PENDING","The purchase command is still pending; retry the original request",202,t);if(!X(l,w,r.type==="paywall_confirm"||r.type==="paywall_cancel"?r.operationId:void 0))throw new a("PRECONDITION_FAILED","The purchase selection has changed")}async function oe(t){if(!m)throw new a("INVALID_REQUEST","A quoted purchase is required");let r=`${t}:${m.operationId}`,w=J.get(r);if(!w){let y=t==="confirm"?"paywall_confirm":"paywall_cancel",s=P.pendingCommands?.find(l=>l.operation==="submit"&&l.input.type===y&&"operationId"in l.input&&l.input.operationId===m.operationId)??P.pendingCommand;w=s?.operation==="submit"&&s.input.type===y&&"operationId"in s.input&&s.input.operationId===m.operationId?s.requestId:crypto.randomUUID(),J.set(r,w)}if(await F(w,{type:t==="confirm"?"paywall_confirm":"paywall_cancel",operationId:m.operationId},H),!T)throw new a("INVALID_RESPONSE","The accepted purchase result is missing");return structuredClone(T)}return{get view(){return structuredClone(v)},get quote(){return m?structuredClone(m):null},get operation(){return T?structuredClone(T):null},get webViewUrl(){return P.webViewUrl},get canReselect(){return D},async refresh(){$();let t=H,r=await P.get();if(X(r,t),r.run.paywall?.receiptId!==n)throw new a("PRECONDITION_FAILED","Paywall presentation has changed");if(!v){if("document"in Q||!P.resolvePaywall)throw new a("INVALID_RESPONSE","Public Paywall reader is unavailable");let w=await P.resolvePaywall(Q);$(),ie(w),v={...Q,document:w.document,offering:w.offering}}return structuredClone(v)},preview(t){if(!v)return Promise.reject(new a("PRECONDITION_FAILED","Load the Paywall presentation first"));if(S&&S!==t.requestId&&(C||!D))return Promise.reject(new a("COMMAND_PENDING","Retry the original purchase before starting another"));if(S===t.requestId&&C)return C;let r=v.document.buttons[t.actionId],w=r?.type==="checkout"?be(r.product,t.selection,v.capabilities):null;if(!w)return Promise.reject(new a("PRODUCT_UNAVAILABLE","Choose an available Product in this purchase area"));let y=S!==t.requestId&&k>0?{operationId:m?.operationId??null,generation:k}:void 0;if(y&&(!D||k<=0))return Promise.reject(new a("COMMAND_PENDING","Original purchase requires authoritative termination"));S!==t.requestId&&H++;let s=H;S=t.requestId;let l=(async()=>{if(await F(t.requestId,{type:"paywall_quote",actionId:t.actionId,productVersionId:w,...y?{predecessor:y}:{},...t.offerId?{offerId:t.offerId}:{},...t.nativeOffer?{nativeOffer:t.nativeOffer}:{}},s),!m)throw new a("INVALID_RESPONSE","The accepted quote is missing");return structuredClone(m)})();return C=l,l.then(()=>{C===l&&(C=null)},u=>{C===l&&(C=null),S===t.requestId&&P.pendingCommand?.requestId!==t.requestId&&u instanceof a&&u.status!==void 0&&u.status<500&&![401,425].includes(u.status)&&(S=null)}),l},confirm:()=>oe("confirm"),cancel:()=>oe("cancel"),async read(){if($(),!m)throw new a("INVALID_REQUEST","A quoted purchase is required");let t=m.operationId,r=H,w=P.pendingCommands?.find(u=>u.operation==="submit"&&(u.input.type==="paywall_confirm"||u.input.type==="paywall_cancel")&&u.input.operationId===t)??P.pendingCommand;w?.operation==="submit"&&(w.input.type==="paywall_confirm"||w.input.type==="paywall_cancel")&&w.input.operationId===t&&await P.settle?.(w.requestId);let y=await P.get(void 0,{receiptId:n,operationId:t});$();let s=V(y);if(s?.quote&&s.quote.operationId!==t||s?.operation&&s.operation.operationId!==t)throw new a("INVALID_RESPONSE","Purchase operation changed");let l=X(y,r,t)?T:s?.operation;if(!l)throw new a("INVALID_RESPONSE","The current purchase result is missing");return structuredClone(l)},destroy(){W=!0,q.abort(),N.clear(),J.clear()}}}async function Fe(P,M){let n=M,{mountScreenPreview:te}=await import("./popup.js"),{showPaywall:se}=await import("./paywall-PD62B2AY.js"),I=P.ownerDocument,Q=I.activeElement,v=I.createElement("section"),U=I.createElement("div"),ie=I.createElement("div"),m=I.createElement("div"),T=I.createElement("button");m.hidden=!0,T.type="button";let W=I.createElement("p"),q=I.createElement("p"),S=I.createElement("button"),H=I.createElement("button"),k=I.createElement("button"),D=I.createElement("dialog");v.dataset.indianaFunnel="",v.setAttribute("aria-busy","false"),v.style.cssText="box-sizing:border-box;width:100%;min-width:0;font:14px/1.5 system-ui,sans-serif;color:#172033;background:#fff",ie.style.cssText="display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 20px",W.setAttribute("role","status"),q.setAttribute("role","alert"),q.hidden=!0,S.type=H.type=k.type="button",ie.append(S,W,q,k,T,H),v.append(U,m,ie),P.append(v);let C=null,N=null,J=null,V="",$="",X="",B="",h=!1,F=0,oe=!1,t="",r=null,w=Promise.resolve(),y=null,s=null,l={},u=new Map,_=new Set,R=new Set,Y=new Set,Z=null,x={},E=!1,he,j=0,L=null,ae="",le=new Map,ye=e=>e?`${e.id}:${e.nodeId}:${e.visit}:${e.revision}:${e.paywall?.quote?.operationId??""}`:"",z=(e,i=null)=>{h||(s=i,q.textContent=e instanceof Error?e.message:"Request failed",q.hidden=!1,k.hidden=n.client.pendingCommand===null,re(n.onError,e))};function K(){let e=n.client.view;if(!e)throw new a("INVALID_REQUEST","No current Run is available");return{requestId:crypto.randomUUID(),nodeId:e.nodeId,visit:e.visit,revision:e.revision}}async function ee(e,i=!1){if(!(F&&!i||h||E&&!i)){F++,v.setAttribute("aria-busy","true"),q.hidden=!0,s=null;try{if(!i&&Z){let o=n.client.view;await Z;let g=n.client.view;if(!o||!g||g.id!==o.id||g.nodeId!==o.nodeId||g.visit!==o.visit||g.stopped||!["running","waiting"].includes(g.status))throw new a("PRECONDITION_FAILED","The screen changed while its display was acknowledged")}if(h)return;let d=await e();h||await ne(n.client.view??d.run)}catch(d){z(d,n.client.pendingCommand?.requestId??null)}finally{F=Math.max(0,F-1),v.setAttribute("aria-busy",String(F>0)),h||(k.hidden=n.client.pendingCommand===null,S.disabled=F>0||!!n.client.pendingCommand||!n.client.view?.canBack)}}}function ge(e){if(E||_.has(e)||R.has(e)||h)return;R.add(e);let i=async()=>{if(E||h||V!==e){R.delete(e);return}if(F||n.client.pendingCommand){setTimeout(()=>{i()},250);return}let d=(async()=>{let g=n.client.view,p=K(),A=p.requestId,c=!1;try{await n.client.submit({operation:"shown",...p})}catch(b){if(!(b instanceof a)||b.code!=="CONFLICT"||b.status!==409||n.client.pendingCommand)throw b;await n.client.get();let f=n.client.view;if(h||E||V!==e||!f||!g||f.id!==g.id||f.source.versionId!==g.source.versionId||f.nodeId!==p.nodeId||f.visit!==p.visit||f.revision<=p.revision||f.stopped||!f.screen||!["running","waiting"].includes(f.status)||n.client.pendingCommand)throw b;let O=K();A=O.requestId,await n.client.submit({operation:"shown",...O})}for(;!h&&V===e&&n.client.pendingCommand?.requestId===A;){if(!n.client.settle)throw new a("COMMAND_PENDING","The original display acknowledgement is still pending");await n.client.settle(A),c=!0,n.client.pendingCommand?.requestId===A&&await new Promise(b=>setTimeout(b,1500))}h||V!==e||(c&&await n.client.get(),!(h||V!==e)&&_.add(e))})();Z=d;let o=()=>{Z===d&&(Z=null),R.delete(e)};d.then(o,g=>{o(),F||z(g)})};i()}function ue(){r&&clearTimeout(r),!(h||!J||!["running","waiting"].includes(J.status)&&!n.client.pendingCommand)&&(r=setTimeout(()=>{r=null,Ie().finally(ue)},J.pendingRequest||n.client.pendingCommand?1500:5e3))}async function Ie(){if(!(h||oe||F)){if(E){await ce(he);return}oe=!0;try{let e=n.client.pendingCommand;e&&n.client.settle&&await n.client.settle(e.requestId);let i=n.client.view,d=l,o=await n.client.get(i?.screen&&Object.keys(d).length?{nodeId:i.nodeId,visit:i.visit,revision:i.revision,components:d}:void 0);!h&&d===l&&await ne(n.client.view??o.run)}catch(e){z(e)}finally{oe=!1}}}async function Ee(e){let i=n.client.view,d=i?.screen,o=d?.customerData.nodes[e.nodeId];if(h||F||!i||!d||!o)return;if(!["refresh","next","previous","filter","sources_next","sources_previous"].includes(e.action)){let O=C?.document,G=O?ve(O,e.nodeId):null,we=G?.type==="customer_data"?G.data.outputs?.[e.action]:void 0;we&&d.outputs.includes(we)?await ee(()=>n.client.submit({operation:"submit",...K(),input:{type:"screen",output:we,answers:x,selection:e.value?{[e.nodeId]:e.value}:{}}})):await n.onCustomerDataIntent?.(e,i);return}let p=e.action.startsWith("sources_")?o.resources.find(O=>O.key===e.value):null;if(e.action.startsWith("sources_")&&!p)throw new a("INVALID_REQUEST","Choose a current resource");let A=`${i.visit}:${e.nodeId}:${p?.key??""}`,c=u.get(A)??[null],f=l[e.nodeId]??{page:1,after:null,filter:"all",...p?{resourceKey:p.key}:{}};if(e.action==="filter"){let O=e.value;if(!O||!(o.source==="offer_history"?["all","issued","reserved","redeemed","expired","revoked"]:["all","purchase","refund","source","usage","debt","settlement"]).includes(O))throw new a("INVALID_REQUEST","Unknown data filter");f={page:1,after:null,filter:O},c.splice(0,c.length,null)}else if(e.action==="next"||e.action==="sources_next"){let O=p?.sources.at(-1),G=p?O?{kind:"ledger",cursor:{at:O.detail[0],id:O.id,type:"source"}}:null:d.dataCursors[e.nodeId];if(!G||!p&&!o.hasNext)return;c[f.page]=G,f={...f,page:f.page+1,after:G}}else if(e.action==="previous"||e.action==="sources_previous"){if(f.page<=1)return;f={...f,page:f.page-1,after:c[f.page-2]??null}}u.set(A,c),l={...l,[e.nodeId]:f},await ee(()=>n.client.get({nodeId:i.nodeId,visit:i.visit,revision:i.revision,components:l}))}function Pe(e){let i=e.screen?.presentation;if(!i||i.type==="inline"){D.open&&D.close(),v.parentElement!==P&&P.append(v);return}v.parentElement!==D&&(D.append(v),P.append(D));let d={sm:420,md:640,lg:900};D.style.cssText=`padding:0;border:0;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;width:${"size"in i?d[i.size]+"px":"100vw"}`,D.setAttribute("aria-label",C?.document?.name??e.screen?.content.document.name??"Funnel"),D.open||D.showModal()}async function De(e){if(h)return;J=e,s&&n.client.pendingCommand?.requestId!==s&&(q.hidden=!0,s=null);let i=e.locale.startsWith("zh");if(T.textContent=i?"\u56DE\u770B":"History",T.hidden=!n.client.review,S.textContent=E?i?"\u8FD4\u56DE\u5F53\u524D":"Return to current":i?"\u8FD4\u56DE":"Back",H.textContent=i?"\u5173\u95ED":"Close",k.textContent=i?"\u91CD\u8BD5":"Retry",S.disabled=!E&&(F>0||!!n.client.pendingCommand||!e.canBack),k.hidden=n.client.pendingCommand===null,W.textContent=e.pendingRequest?i?"\u6B63\u5728\u5904\u7406":"Processing":e.instruction?.type==="wait"?i?"\u7B49\u5F85\u4E2D":"Waiting":"",t!==`${e.revision}:${e.visit}:${e.status}:${e.stopped}`&&(t=`${e.revision}:${e.visit}:${e.status}:${e.stopped}`,re(n.onState,structuredClone(e))),e.stopped||n.client.configurationReady===!1){E=!1,j++,L?.destroy(),L=null,m.replaceChildren(),m.hidden=!0,U.hidden=!1,C?.destroy(),C=null,N?.destroy(),N=null,U.replaceChildren(),V="",$="",B="",D.open&&D.close(),v.hidden=!0,ue();return}if(v.hidden=!1,E){ue();return}let d=e.screen||e.paywall?`${e.id}:${e.nodeId}:${e.visit}`:"";if(d!==V&&(C?.destroy(),C=null,N?.destroy(),N=null,U.replaceChildren(),V=d,$="",B="",x={...e.answers},l={},u.clear()),Pe(e),e.screen){let g=e.screen.content;C||(C=te(U,{mode:"live",rendererUrl:n.client.webViewUrl,title:g.document.name,onAction(c,b={},f={}){if(E)return;x={...x,...f};let O=Object.fromEntries((e.screen?.inputs??[]).filter(({variable:G})=>Object.hasOwn(x,G)).map(({variable:G})=>[G,x[G]]));ee(()=>n.client.submit({operation:"submit",...K(),input:{type:"screen",output:c,answers:O,selection:b}}))},onAnswers:c=>{E||(x={...x,...c})},onCustomerDataIntent:c=>{E||Ee(c).catch(z)},onEscape:()=>{E||de()},onError:c=>z(new Error(c)),onRendered:()=>ge(d)}));let p={capabilities:e.screen.capabilities,customerData:e.screen.customerData,parameters:e.parameters,serverInput:{bindings:e.screen.inputs,answers:x,values:e.screen.values}},A=JSON.stringify([g,e.locale,p.parameters,e.screen.inputs,e.screen.values]);if(A!==$)C.update(g.document,e.locale,p),$=A,X=JSON.stringify(p.capabilities),B=JSON.stringify(p.customerData);else{let c=JSON.stringify(p.capabilities);c!==X&&(C.updateCapabilities(p.capabilities),X=c),JSON.stringify(p.customerData)!==B&&(C.updateCustomerData(p.customerData),B=JSON.stringify(p.customerData))}await C.ready}else if(e.paywall&&!N){let g=await se(U,{canInteract:()=>!E&&!h,start:async()=>Ce(n.client),onPurchase:n.onPurchase,onCheckoutUrl:n.onCheckoutUrl,resolveOfferId:n.resolveOfferId,onEvent:n.onEvent,onOpenUrl:p=>n.onOpenUrl?n.onOpenUrl({receiptId:e.paywall.receiptId,url:p,openIn:"same_window"}):I.defaultView?.location.assign(p),onAction:async p=>{if(E)return;let A=await n.client.submit({operation:"submit",requestId:crypto.randomUUID(),nodeId:e.nodeId,visit:e.visit,revision:e.revision,input:{type:"screen",output:p,answers:{}}});await ne(n.client.view??A.run)},onError:z,onDismiss:()=>{!E&&!h&&n.client.view?.visit===e.visit&&de()}});h?g.host?.destroy():(N=g.host,N?.setSuspended(E)),ge(d)}let o=e.instruction;if(o&&(o.type==="open_url"||o.type==="event")&&!Y.has(o.receiptId)){let g=I.createElement("button");g.type="button",g.textContent=o.type==="open_url"?`${i?"\u524D\u5F80":"Continue to"} ${new URL(o.url).host}`:i?"\u7EE7\u7EED":"Continue",g.onclick=()=>{let p=K(),A=o.type==="open_url"&&!n.onOpenUrl&&o.openIn==="new_window"?Re(o.url):null;ee(async()=>{let c="success";if(o.type==="open_url")if(n.onOpenUrl)try{c=await n.onOpenUrl({receiptId:o.receiptId,url:o.url,openIn:o.openIn})===!1?"failed":"opened"}catch(f){re(n.onError,f),c="failed"}else c=o.openIn==="new_window"&&!A?"failed":"opened";if(o.type==="event"){if(!n.onEvent)throw new a("EVENT_HANDLER_REQUIRED","Provide the event handler");await n.onEvent(o.event)}if(h||n.client.view?.nodeId!==p.nodeId||n.client.view.visit!==p.visit)throw new a("PRECONDITION_FAILED","The client action visit changed");let b=await n.client.submit({operation:"submit",...p,input:{type:"client_action",receiptId:o.receiptId,outcome:c}});return Y.add(o.receiptId),o.type==="open_url"&&!n.onOpenUrl&&o.openIn==="same_window"&&I.defaultView?.location.assign(o.url),b})},U.replaceChildren(g)}!e.pendingRequest&&e.status==="completed"&&!Y.has(`complete:${e.id}`)&&(Y.add(`complete:${e.id}`),re(n.onComplete,structuredClone(e))),ue()}function Re(e){let i=I.defaultView?.open(e,"_blank")??null;return i&&(i.opener=null),i}function ne(e){return w=w.catch(()=>{}).then(()=>De(e)),w}async function ce(e){if(h||!n.client.review)return;E||(ae=ye(n.client.view),le.set(ae,structuredClone(x))),E=!0,he=e,U.hidden=!0,N?.setSuspended(!0),m.hidden=!1;let i=++j;try{let d=await n.client.review(e);if(h||i!==j||!E)return;if(!d.review)throw new a("INVALID_RESPONSE","Historical projection is missing");L?.destroy(),L=null,m.replaceChildren();let o=d.run.locale.startsWith("zh"),g=I.createElement("p");g.textContent=o?"\u53EA\u8BFB\u56DE\u770B":"Read-only history",m.append(g);for(let[c,b]of d.review.pages.entries()){let f=I.createElement("button");f.type="button",f.textContent=o?`\u7B2C ${c+1} \u9875`:`Page ${c+1}`,f.onclick=()=>{ce(b.receiptId)},m.append(f)}if(d.review.page){let c=d.review.page,b=I.createElement("div");if(b.inert=!0,m.append(b),L=te(b,{mode:"live",rendererUrl:n.client.webViewUrl,title:c.document.name,onAction:()=>{},onAnswers:()=>{},onCustomerDataIntent:()=>{},onRendered:()=>{},onEscape:()=>{fe()}}),L.update(c.document,d.run.locale,{serverInput:{bindings:c.inputs,answers:c.answers,values:c.values}}),await L.ready,h||i!==j||!E)return}let p=o?{issued:"\u5DF2\u9886\u53D6",reserved:"\u5DF2\u9884\u7559",redeemed:"\u5DF2\u4F7F\u7528",expired:"\u5DF2\u8FC7\u671F",revoked:"\u5DF2\u64A4\u9500",unknown:"\u72B6\u6001\u5F85\u786E\u8BA4"}:{issued:"Issued",reserved:"Reserved",redeemed:"Used",expired:"Expired",revoked:"Revoked",unknown:"Status unconfirmed"},A=o?{pending:"\u5904\u7406\u4E2D",complete:"\u5DF2\u5B8C\u6210",cancelled:"\u5DF2\u53D6\u6D88",failed:"\u5931\u8D25",unknown:"\u72B6\u6001\u5F85\u786E\u8BA4"}:{pending:"Processing",complete:"Completed",cancelled:"Cancelled",failed:"Failed",unknown:"Status unconfirmed"};for(let c of[...d.review.coupons.map((b,f)=>`${o?"\u4F18\u60E0\u5238":"Coupon"} ${f+1}: ${p[b.status]}`),...d.review.purchases.map((b,f)=>`${o?"\u8D2D\u4E70":"Purchase"} ${f+1}: ${A[b.status]}`)]){let b=I.createElement("p");b.textContent=c,m.append(b)}n.client.view&&await ne(n.client.view)}catch(d){if(i!==j||h)return;L?.destroy(),L=null,m.replaceChildren(),z(d)}}async function fe(){if(!E||h||!n.client.review)return;let e=++j;try{if(await n.client.review(),h||e!==j)return;E=!1,j++,L?.destroy(),L=null,m.replaceChildren(),m.hidden=!0,U.hidden=!1;let i=n.client.view;ye(i)!==ae?(le.set(ae,structuredClone(x)),V="",$=""):(le.delete(ae),N?.setSuspended(!1)),i&&await ne(i)}catch(i){if(e!==j||h)return;L?.destroy(),L=null,m.replaceChildren(),z(i)}}let Ne=n.client.subscribe(e=>{n.client.configurationReady===!1&&(v.hidden=!0,C?.destroy(),C=null,N?.destroy(),N=null,U.replaceChildren(),V="",$="",B="",D.open&&D.close()),ne(e).catch(z)}),Oe=n.client.subscribeError?.(z);function de(){return y||(h?Promise.resolve():n.client.view&&!["running","waiting"].includes(n.client.view.status)?(pe(),Promise.resolve()):(y=ee(()=>n.client.submit({operation:"close",...K()}),!0).then(()=>{n.client.view?.status==="closed"&&pe()}).finally(()=>{y=null}),y))}function pe(){h||(h=!0,r&&clearTimeout(r),Ne(),Oe?.(),C?.destroy(),j++,L?.destroy(),N?.destroy(),D.close(),D.remove(),v.remove(),Q instanceof HTMLElement&&Q.isConnected&&Q.focus(),re(n.onDismiss,J?structuredClone(J):null))}S.onclick=()=>{if(E){fe();return}ee(()=>n.client.submit({operation:"back",...K()}))},T.onclick=()=>{ce()},H.onclick=()=>{de()},k.onclick=()=>{ee(()=>n.client.retry())},D.addEventListener("cancel",e=>{e.preventDefault(),de()});try{let e=await n.client.get();await ne(n.client.view??e.run)}catch(e){throw pe(),e}return{destroy:pe,refresh:Ie,review:ce,exitReview:fe,get unappliedDrafts(){return new Map([...le].map(([e,i])=>[e,structuredClone(i)]))}}}export{Fe as showFunnelRun};
|
package/dist/paywall-PD62B2AY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as z}from"./chunk-6X42DWOM.js";import"./chunk-CXYOZSOF.js";import{Qd as q,kj as j}from"./chunk-A3N4ZZTM.js";import{a as w}from"./chunk-OVMNCZYC.js";import{ka as N,v as $}from"./chunk-3BQFJANQ.js";import"./chunk-AE4CUTUE.js";import"./chunk-S5TVMQRC.js";import"./chunk-RRII2DMC.js";import"./chunk-KQCTDXVD.js";async function W(b,n,h){if(n.status!=="complete")throw new w("INVALID_RESPONSE","A verified completed purchase is required");if(await h.onComplete?.(n),!b||!h.check)return;let t=N.parse(await h.check());if(t.internal_feature_id!==b.internal_feature_id||t.quantity!==b.quantity)throw new w("INVALID_RESPONSE","The access requirement changed");t.allowed&&await h.onAccessGranted?.(t)}async function ie(b,n){let h=n.check?N.parse(await n.check()):null;if(h?.allowed)return await n.onAccessGranted?.(h),{check:h,host:null};let t=await n.start(),y=t.view??await t.refresh();if(!y)throw new w("INVALID_RESPONSE","Paywall presentation is missing");let{mountScreenPreview:J}=await import("./popup.js"),a=b.ownerDocument,S=new AbortController,v=a.createElement("section"),Q=a.createElement("div"),O=a.createElement("div"),P=a.createElement("p"),c=a.createElement("button"),L=a.createElement("button"),u=a.createElement("dialog"),_=a.activeElement,p=y.document.screen.strings.defaultLocale.startsWith("zh");v.dataset.indianaPaywall="",v.setAttribute("aria-label",y.document.name),v.style.cssText="width:100%;box-sizing:border-box;background:#fff;color:#172033;font:14px/1.5 system-ui,sans-serif",O.style.cssText="display:flex;gap:12px;padding:12px 20px;align-items:center;flex-wrap:wrap",P.setAttribute("role","status"),L.textContent=p?"\u5173\u95ED":"Close",c.textContent=p?"\u91CD\u8BD5":"Retry",c.hidden=!0,O.append(P,c,L),v.append(Q,O);let D=y.document.presentation,A,d=!1,T=!1,f=null,G=!1,m=()=>!G&&n.canInteract?.()!==!1,M=!1,r=null,I=null,U=e=>{P.textContent=e instanceof Error?e.message:p?"\u8BF7\u6C42\u5931\u8D25":"Request failed",z(n.onError,e),c.hidden=r===null};async function k(e){if(!(T||d||!m())){T=!0,c.hidden=!0,P.textContent="";try{await e()}catch(s){d||U(s)}finally{T=!1}}}async function K(e){await W(h,e,n)}async function E(e){if(d)return;if(!m()){r=async()=>E(await t.read()),c.hidden=!1;return}if(P.textContent=e.status,e.status==="complete"){r=null,await K(e);return}if(e.status!=="pending"){if(t.canReselect===!1){P.textContent=p?"\u6B63\u5728\u6838\u5BF9\u539F\u8D2D\u4E70\u7ED3\u679C":"Checking the original purchase result",c.textContent=p?"\u67E5\u8BE2\u7ED3\u679C":"Check result",r=async()=>E(await t.read()),c.hidden=!1;return}c.textContent=p?"\u91CD\u8BD5":"Retry",r=null,f=null;return}let s=Date.now()+6e5,l=2e3;for(;!d&&Date.now()<s;){if(await new Promise(C=>{let R=()=>{clearTimeout(x),C()},x=setTimeout(()=>{S.signal.removeEventListener("abort",R),C()},l);S.signal.addEventListener("abort",R,{once:!0})}),d)return;if(!m()){r=async()=>E(await t.read()),c.hidden=!1;return}let i=await t.read();if(i.status!=="pending"){await E(i);return}l=Math.min(l*1.5,3e4)}r=async()=>E(await t.read()),c.hidden=!1}async function V(){I?.remove(),I=null,r=V;let e=await t.confirm();if(!m()){r=V,c.hidden=!1;return}if(e.status==="pending"){if(e.checkoutUrl)n.onCheckoutUrl?await n.onCheckoutUrl(e.checkoutUrl):a.defaultView?.location.assign(e.checkoutUrl);else if(e.execution||e.nativePurchase){if(!n.onPurchase)throw new w("PURCHASE_HANDLER_REQUIRED","Provide the merchant or native purchase handler");await n.onPurchase({operation:e,signal:S.signal})}}r=async()=>E(await t.read()),await E(e)}function X(e){I?.remove();let s=a.createElement("div"),l=a.createElement("button"),i=a.createElement("button"),C=a.createElement("p");C.textContent=e.lines.map(o=>o.productName).join(", ")+" \xB7 "+$(e.charge?.totalMinor??e.catalogAmountMinor-(e.discount?.amountMinor??0),e.currency),l.textContent=p?"\u786E\u8BA4\u8D2D\u4E70":"Confirm purchase",i.textContent=p?"\u53D6\u6D88":"Cancel",l.onclick=()=>{k(V)};let R=async()=>{let o=await t.cancel();d||(s.remove(),I=null,await E(o))};i.onclick=()=>{r=R,k(R)};let x=a.createElement("div");for(let o of e.lines){let B=a.createElement("p");if(B.textContent=`${o.productName} \xB7 ${$(o.catalogAmountMinor,e.currency)}${j(o.interval,p?"zh-CN":"en",o.intervalCount??1)}`,x.append(B),o.trial){let F=a.createElement("p");F.textContent=p?`\u8BD5\u7528 ${o.trial.days} \u5929\uFF1B${o.trial.cardRequired?"\u9700\u8981\u63D0\u4F9B\u4ED8\u6B3E\u65B9\u5F0F":"\u65E0\u9700\u63D0\u4F9B\u4ED8\u6B3E\u65B9\u5F0F"}`:`Trial days: ${o.trial.days}; ${o.trial.cardRequired?"a payment method is required":"no payment method is required"}`,x.append(F)}}if(!e.charge){let o=a.createElement("p");o.textContent=p?"\u76EE\u5F55\u4EF7\u683C\uFF1B\u6700\u7EC8\u91D1\u989D\u4EE5\u7ED3\u8D26\u65F6\u7A0E\u8D39\u548C\u8BD5\u7528\u89C4\u5219\u4E3A\u51C6\u3002":"Catalog price; the final charge depends on checkout taxes and trial terms.",x.append(o)}s.append(C,x,l,i),O.prepend(s),I=s,r=null}async function H(){if(!f)return;if(r=H,!M){let s=t.view,l=s?.document.buttons[f.actionId],i=s&&l?.type==="checkout"?q(l.product,f.selection,s.capabilities):null;if(!i)throw new w("PRODUCT_UNAVAILABLE","Choose an available Product in this purchase area");let C=await n.resolveOfferId?.({actionId:f.actionId,productVersionId:i});if(d)return;C!==void 0&&(f.offerId=C),M=!0}if(!m()){c.hidden=!1;return}let e=await t.preview(f);d||X(e)}function g(e="destroy"){d||(d=!0,S.abort(),A?.destroy(),t.destroy(),u.open&&u.close(),u.remove(),v.remove(),_ instanceof HTMLElement&&_.isConnected&&_.focus(),e==="dismiss"&&z(n.onDismiss))}L.onclick=()=>{m()&&g("dismiss")},u.addEventListener("cancel",e=>{e.preventDefault(),m()&&g("dismiss")}),c.onclick=()=>{r&&k(r)};try{if(D.type==="inline")b.append(v);else{let e={sm:420,md:640,lg:900};u.style.cssText=`padding:0;border:0;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;width:${"size"in D?e[D.size]+"px":"100vw"}`,u.setAttribute("aria-label",y.document.name),u.append(v),b.append(u),m()&&u.showModal()}A=J(Q,{mode:"live",rendererUrl:t.webViewUrl,title:y.document.name,onAction(e,s={}){if(!m())return;let l=t.view,i=l?.document.buttons[e];if(i){if(i.type==="close"){k(async()=>{await n.onAction?.(e),g(n.onAction?"action":"dismiss")});return}if(i.type==="action"){r=async()=>{if(i.action.type==="event"){if(!n.onEvent)throw new w("EVENT_HANDLER_REQUIRED","Provide the event handler");await n.onEvent(i.action.event)}else n.onOpenUrl?await n.onOpenUrl(i.action.url):a.defaultView?.location.assign(i.action.url);await n.onAction?.(e),r=null},k(r);return}if((t.quote||f)&&t.canReselect===!1){r=t.quote?async()=>E(await t.read()):H,k(r);return}if(!l||!q(i.product,s,l.capabilities)){U(new w("PRODUCT_UNAVAILABLE","Choose an available Product in this purchase area"));return}if(f&&f.actionId!==e){U(new w("COMMAND_PENDING","Finish the current purchase"));return}f||(f={requestId:crypto.randomUUID(),actionId:e,selection:s},M=!1),k(H)}},onEscape:()=>{m()&&g("dismiss")},onError:e=>U(new Error(e))}),A.update(y.document.screen,y.document.screen.strings.defaultLocale,{capabilities:y.capabilities,serverInput:{bindings:[],answers:{}}}),await A.ready}catch(e){throw g(),e}return{check:h,host:{setSuspended(e){G=e,v.hidden=e,e&&u.open?u.close():!e&&!d&&D.type!=="inline"&&!u.open&&u.showModal()},destroy:g,refresh:async()=>{if(!m()){if(t.view)return t.view;throw new w("PRECONDITION_FAILED","Paywall presentation is suspended")}let e=await t.refresh();return d||A?.updateCapabilities(e.capabilities),e}}}}export{ie as showPaywall};
|
package/dist/src-4MRSESVS.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as Ha,$a as lc,$b as lf,$c as lg,$d as lh,$e as xi,$f as xj,$g as xk,$h as xl,$i as xm,A as ga,Aa as Mb,Ab as Uc,Ac as Mf,Ad as Mg,Ae as Yh,Af as Yi,Ag as Yj,Ah as Yk,Ai as Yl,Aj as bn,B as ha,Ba as Nb,Bb as Vc,Bc as Nf,Bd as Ng,Be as Zh,Bf as Zi,Bg as Zj,Bh as Zk,Bi as Zl,Bj as cn,C as ia,Ca as Ob,Cb as Wc,Cc as Of,Cd as Og,Ce as _h,Cf as _i,Cg as _j,Ch as _k,Ci as _l,Cj as dn,D as ja,Da as Pb,Db as Xc,Dc as Pf,Dd as Pg,De as $h,Df as $i,Dg as $j,Dh as $k,Di as $l,Dj as en,E as ka,Ea as Qb,Eb as Yc,Ec as Qf,Ed as Qg,Ee as ai,Ef as aj,Eg as ak,Eh as al,Ei as am,Ej as fn,F as la,Fa as Rb,Fb as hd,Fc as Rf,Fd as Rg,Fe as bi,Ff as bj,Fg as bk,Fh as bl,Fi as bm,Fj as gn,G as ma,Ga as Sb,Gb as id,Gc as Sf,Gd as Sg,Ge as ci,Gf as cj,Gg as ck,Gh as cl,Gi as cm,Gj as hn,H as na,Ha as Tb,Hb as jd,Hc as Tf,Hd as Tg,He as di,Hf as dj,Hg as dk,Hh as dl,Hi as dm,Hj as jn,I as oa,Ia as Ub,Ib as Te,Ic as Uf,Id as Ug,Ie as ei,If as ej,Ig as ek,Ih as el,Ii as em,Ij as kn,J as pa,Ja as Vb,Jb as Ue,Jc as Vf,Jd as Vg,Je as fi,Jf as fj,Jg as fk,Jh as fl,Ji as fm,K as qa,Ka as Wb,Kb as Ve,Kc as Wf,Kd as Wg,Ke as gi,Kf as gj,Kg as gk,Kh as gl,Ki as gm,L as ra,La as Xb,Lb as We,Lc as Xf,Ld as Xg,Le as hi,Lf as hj,Lg as hk,Lh as hl,Li as hm,M as sa,Ma as Yb,Mb as Xe,Mc as Yf,Md as Yg,Me as ii,Mf as ij,Mg as ik,Mh as il,Mi as im,N as ta,Na as Zb,Nb as Ye,Nc as Zf,Nd as Zg,Ne as ji,Nf as jj,Ng as jk,Nh as jl,Ni as jm,O as ua,Oa as _b,Ob as Ze,Oc as _f,Od as _g,Oe as ki,Of as kj,Og as kk,Oh as kl,Oi as km,P as va,Pa as $b,Pb as _e,Pc as $f,Pd as $g,Pe as li,Pf as lj,Pg as lk,Ph as ll,Pi as lm,Q as wa,Qa as ac,Qb as $e,Qc as ag,Qd as ah,Qe as mi,Qf as mj,Qg as mk,Qh as ml,Qi as mm,R as xa,Ra as bc,Rb as af,Rc as bg,Rd as bh,Re as ni,Rf as nj,Rg as nk,Rh as nl,Ri as nm,S as ya,Sa as cc,Sb as bf,Sc as cg,Sd as ch,Se as oi,Sf as oj,Sg as ok,Sh as ol,Si as om,T as za,Ta as dc,Tb as cf,Tc as dg,Td as dh,Te as pi,Tf as pj,Tg as pk,Th as pl,Ti as pm,U as Aa,Ua as ec,Ub as df,Uc as eg,Ud as eh,Ue as qi,Uf as qj,Ug as qk,Uh as ql,Ui as qm,V as Ba,Va as fc,Vb as ef,Vc as fg,Vd as fh,Ve as ri,Vf as rj,Vg as rk,Vh as rl,Vi as rm,W as Ca,Wa as gc,Wb as ff,Wc as gg,Wd as gh,We as si,Wf as sj,Wg as sk,Wh as sl,Wi as sm,X as Da,Xa as hc,Xb as gf,Xc as hg,Xd as hh,Xe as ti,Xf as tj,Xg as tk,Xh as tl,Xi as tm,Y as Ea,Ya as ic,Yb as hf,Yc as ig,Yd as ih,Ye as ui,Yf as uj,Yg as uk,Yh as ul,Yi as um,Z as Fa,Za as jc,Zb as jf,Zc as jg,Zd as jh,Ze as vi,Zf as vj,Zg as vk,Zh as vl,Zi as vm,_ as Ga,_a as kc,_b as kf,_c as kg,_d as kh,_e as wi,_f as wj,_g as wk,_h as wl,_i as wm,a as s,aa as Ia,ab as mc,ac as mf,ad as mg,ae as mh,af as yi,ag as yj,ah as yk,ai as yl,aj as ym,b as t,ba as Ja,bb as nc,bc as nf,bd as ng,be as nh,bf as zi,bg as zj,bh as zk,bi as zl,bj as zm,c as u,ca as Ka,cb as oc,cc as of,cd as og,ce as oh,cf as Ai,cg as Aj,ch as Ak,ci as Al,cj as Am,d as v,da as La,db as pc,dc as pf,dd as pg,de as ph,df as Bi,dg as Bj,dh as Bk,di as Bl,dj as Bm,e as w,ea as Ma,eb as qc,ec as qf,ed as qg,ee as qh,ef as Ci,eg as Cj,eh as Ck,ei as Cl,ej as Cm,f as x,fa as rb,fb as rc,fc as rf,fd as rg,fe as rh,ff as Di,fg as Dj,fh as Dk,fi as Dl,fj as Dm,g as y,ga as sb,gb as sc,gc as sf,gd as sg,ge as yh,gf as Ei,gg as Ej,gh as Ek,gi as El,gj as Em,h as z,ha as tb,hb as tc,hc as tf,hd as tg,he as zh,hf as Fi,hg as Fj,hh as Fk,hi as Fl,hj as Fm,i as A,ia as ub,ib as uc,ic as uf,id as ug,ie as Ah,if as Gi,ig as Gj,ih as Gk,ii as Gl,ij as Gm,j as B,ja as vb,jb as vc,jc as vf,jd as vg,je as Bh,jf as Hi,jg as Hj,jh as Hk,ji as Hl,jj as Hm,k as C,ka as wb,kb as wc,kc as wf,kd as wg,ke as Ch,kf as Ii,kg as Ij,kh as Ik,ki as Il,kj as Im,l as D,la as xb,lb as xc,lc as xf,ld as xg,le as Dh,lf as Ji,lg as Jj,lh as Jk,li as Jl,lj as Jm,m as K,ma as yb,mb as yc,mc as yf,md as yg,me as Eh,mf as Ki,mg as Kj,mh as Kk,mi as Kl,mj as Km,n as L,na as zb,nb as zc,nc as zf,nd as zg,ne as Fh,nf as Li,ng as Lj,nh as Lk,ni as Ll,nj as Lm,o as M,oa as Ab,ob as Ac,oc as Af,od as Ag,oe as Gh,of as Mi,og as Mj,oh as Mk,oi as Ml,oj as Mm,p as N,pa as Bb,pb as Bc,pc as Bf,pd as Bg,pe as Hh,pf as Ni,pg as Nj,ph as Nk,pi as Nl,pj as Nm,q as O,qa as Cb,qb as Cc,qc as Cf,qd as Cg,qe as Oh,qf as Oi,qg as Oj,qh as Ok,qi as Ol,qj as Om,r as P,ra as Db,rb as Dc,rc as Df,rd as Dg,re as Ph,rf as Pi,rg as Pj,rh as Pk,ri as Pl,rj as Pm,s as _,sa as Eb,sb as Ec,sc as Ef,sd as Eg,se as Qh,sf as Qi,sg as Qj,sh as Qk,si as Ql,sj as Qm,t as $,ta as Fb,tb as Fc,tc as Ff,td as Fg,te as Rh,tf as Ri,tg as Rj,th as Rk,ti as Rl,tj as Wm,u as aa,ua as Gb,ub as Gc,uc as Gf,ud as Gg,ue as Sh,uf as Si,ug as Sj,uh as Sk,ui as Sl,uj as Xm,v as ba,va as Hb,vb as Pc,vc as Hf,vd as Hg,ve as Th,vf as Ti,vg as Tj,vh as Tk,vi as Tl,vj as Ym,w as ca,wa as Ib,wb as Qc,wc as If,wd as Ig,we as Uh,wf as Ui,wg as Uj,wh as Uk,wi as Ul,wj as Zm,x as da,xa as Jb,xb as Rc,xc as Jf,xd as Jg,xe as Vh,xf as Vi,xg as Vj,xh as Vk,xi as Vl,xj as _m,y as ea,ya as Kb,yb as Sc,yc as Kf,yd as Kg,ye as Wh,yf as Wi,yg as Wj,yh as Wk,yi as Wl,yj as $m,z as fa,za as Lb,zb as Tc,zc as Lf,zd as Lg,ze as Xh,zf as Xi,zg as Xj,zh as Xk,zi as Xl,zj as an}from"./chunk-A3N4ZZTM.js";import{$ as fd,$a as ie,A as U,Aa as Jd,Ab as Je,B as V,Ba as Kd,Bb as Ke,C as W,Ca as Ld,Cb as Le,D as X,Da as Md,Db as Me,E as Y,Ea as Nd,Eb as Ne,F as Z,Fa as Od,Fb as Oe,G as mb,Ga as Pd,Gb as Pe,H as nb,Ha as Qd,Hb as Qe,I as ob,Ia as Rd,Ib as Re,J as pb,Ja as Sd,Jb as Se,K as qb,Ka as Td,Kb as Ih,L as Hc,La as Ud,Lb as Jh,M as Ic,Ma as Vd,Mb as Kh,N as Jc,Na as Wd,Nb as Lh,O as Kc,Oa as Xd,Ob as Mh,P as Lc,Pa as Yd,Pb as Nh,Q as Mc,Qa as Zd,R as Nc,Ra as _d,S as Oc,Sa as $d,T as Zc,Ta as ae,U as _c,Ua as be,V as $c,Va as ce,W as ad,Wa as de,X as bd,Xa as ee,Y as cd,Ya as fe,Z as dd,Za as ge,_ as ed,_a as he,a as c,aa as gd,ab as je,b as d,ba as kd,bb as ke,c as e,ca as ld,cb as le,d as f,da as md,db as me,e as g,ea as nd,eb as ne,f as h,fa as od,fb as oe,g as i,ga as pd,gb as pe,h as j,ha as qd,hb as qe,i as k,ia as rd,ib as re,j as l,ja as sd,jb as se,k as m,ka as td,kb as te,l as n,la as ud,lb as ue,m as o,ma as vd,mb as ve,n as p,na as wd,nb as we,o as q,oa as xd,ob as xe,p as r,pa as yd,pb as ye,q as E,qa as zd,qb as ze,r as F,ra as Ad,rb as Ae,s as G,sa as Bd,sb as Be,t as H,ta as Cd,tb as Ce,u as I,ua as Dd,ub as De,v as J,va as Ed,vb as Ee,w as Q,wa as Fd,wb as Fe,x as R,xa as Gd,xb as Ge,y as S,ya as Hd,yb as He,z as T,za as Id,zb as Ie}from"./chunk-3BQFJANQ.js";import{a,b,c as sh,d as th,e as uh,f as vh,g as wh,h as xh,j as Rm,k as Sm,l as Tm,m as Um,n as Vm}from"./chunk-AE4CUTUE.js";import{a as Va,b as Wa,c as Xa,d as Ya,e as Za,f as _a,g as $a,h as ab,i as bb,j as cb,k as db,l as eb,m as fb,n as gb,o as hb,p as ib,q as jb,r as kb,s as lb}from"./chunk-RRII2DMC.js";import{c as Na,d as Oa,e as Pa,h as Qa,i as Ra,j as Sa,k as Ta,l as Ua}from"./chunk-KQCTDXVD.js";export{Uk as CODE_REFERENCE_LIMITS,pb as COMMON_LOCALES,Mj as CONFIGURATION_POLICY,mf as CONTENT_DOCUMENT_BYTES,rb as COUPON_TERM_LOCALES,Id as CUSTOMER_DATA_SOURCES,Jf as CreateInvoiceParamsSchema,If as CreateInvoicePreviewSchema,ci as DEFAULT_FUNNEL_EXECUTION_POLICY,Ri as FUNNEL_API_CAPABILITIES,cj as FUNNEL_EXECUTION_LIMITS,ki as FUNNEL_LIMITS,dj as FUNNEL_RECORDING_LIMITS,Ym as FUNNEL_SEGMENT_BYTES,Xm as FUNNEL_SEGMENT_LIMIT,Ul as FUNNEL_SERVER_KEY_HEADER,fj as FUNNEL_TRANSITION_BUDGET_MESSAGE,Il as FunnelCalculationError,en as FunnelLocalCalculationError,Gf as InvoiceModeParamsSchema,Hf as InvoiceTemplateSchema,Ig as OFFERING_MAX_DEPTH,Kg as OFFERING_MAX_ITEMS,Jg as OFFERING_MAX_PRODUCTS,Ce as POPUP_WIDTHS,Dj as PUBLIC_PAYWALL_UNSUPPORTED_NODES,Ff as ReissueInvoiceParamsSchema,Td as SCREEN_LIMITS,Sd as SCREEN_SCHEMA_VERSION,s as SDK_PROTOCOL_HEADER,u as SDK_SUPPORT_HEADER,v as SDK_SUPPORT_POLICY,t as SDK_VERSION_HEADER,Ae as SURFACE_PATHS,vd as SURFACE_VARIABLES,B as SdkProtocolError,li as UNBOUND_PRODUCT_VERSION_ID,z as addSupportMonths,Da as aiCreditSystemConfigSchema,hk as aiMarkupSchema,gk as aiModelIdSchema,ik as aiModelRatesSchema,jk as aiPricingConfigurationSchema,fk as aiTokenPools,H as amountToMinor,ph as analyticsConfigSchema,rh as analyticsEventEnabled,h as apiErrorCatalog,i as apiErrorCodeForStatus,c as apiErrorCodeSchema,Cl as apiOperations,vl as apiPermissionSchema,Hl as archiveSurfaceTemplateSchema,Sb as autoTopupPurchaseLimitSchema,cc as autoTopupStateSchema,Om as autumnAmountToMinor,nm as autumnCustomerAutoTopupSchema,sm as autumnCustomerControlsSchema,um as autumnCustomerMetadataSchema,rm as autumnCustomerOverageAllowedSchema,wm as autumnCustomerProductSummarySchema,vm as autumnCustomerProfileRecordSchema,om as autumnCustomerSpendLimitSchema,qm as autumnCustomerUsageAlertSchema,pm as autumnCustomerUsageLimitSchema,tm as autumnEntityControlsSchema,Pm as autumnMinorToAmount,Qm as autumnUsageUnitAmountDecimal,ak as balanceAdjustmentCommandSchema,bk as balanceAdjustmentStateSchema,Lc as balanceAllocationSchema,Ic as balanceCommandSchema,Qc as balanceGrantCommandSchema,Pc as balanceGrantCreateSchema,Tc as balanceGrantPageSchema,Sc as balanceGrantReadSchema,Rc as balanceGrantSchema,Oc as balanceOperationSchema,Jc as balancePricingSegmentSchema,Nc as balanceQuoteSchema,Kc as balanceReceiptUnitsSchema,Mc as balanceRejectionReasonSchema,ck as balanceSourceStateSchema,gm as bannerVersionReferenceSchema,Lb as billingAccruedMinorSchema,Kb as billingAmountMinorSchema,Vb as billingAuthorizationSchema,Ub as billingAuthorizationTermsSchema,Mb as billingBudgetMinorSchema,dc as billingControlInputSchema,ec as billingControlsSchema,mc as billingCouponsSchema,K as billingCurrencies,fc as billingInvoiceLineSchema,gc as billingInvoiceSchema,jc as billingInvoicesSchema,Zb as billingLimitSchema,O as billingSettingsMutationSchema,M as billingSettingsSchema,N as billingSettingsScopeSchema,bc as billingUsageWindowSchema,fe as borderSchema,le as buttonNodeSchema,Jl as calculateFunnelNode,hn as calculateLocalFunnelEvaluation,jn as calculateLocalFunnelSegment,nb as canonicalLocale,wd as capabilityBindingSchema,Qb as cashPriceSchema,Ob as cashPricingSchema,Nb as cashPricingTiersSchema,Jb as cashUnitAmountMinorSchema,Kk as claimRewardProductRequestSchema,Xk as codeReferenceBranchSchema,bl as codeReferenceConfigRequestSchema,al as codeReferenceConfigureSchema,hl as codeReferenceFeatureSummarySchema,Vk as codeReferenceKeySchema,Yk as codeReferencePathSchema,el as codeReferenceReceiptSchema,Wk as codeReferenceRepoSchema,dl as codeReferenceReportSchema,_k as codeReferenceRepositoryInputSchema,$k as codeReferenceRepositorySchema,cl as codeReferenceScanConfigSchema,fl as codeReferenceScanSchema,gl as codeReferenceSettingsSchema,il as codeReferenceSummarySchema,md as commerceAccessSchema,od as commerceContextSchema,tg as commerceCursorSchema,ug as commerceListQuerySchema,nd as commerceMoneySchema,Fm as commerceProductKind,ld as commerceProductKindSchema,kd as commerceProviderSchema,eb as compileGrowthFeatures,Pj as configurationArtifactSchema,Vj as configurationDependencies,Oj as configurationDependenciesSchema,Tj as configurationDigest,Qj as configurationFunnelSchema,Uj as configurationGeneration,Sj as configurationJson,Lj as configurationPaywallSchema,Nj as configurationScopeSchema,hc as confirmBillingAdjustmentInputSchema,Xb as confirmBillingAuthorizationInputSchema,e as consoleErrorCodeSchema,q as consoleErrorResponseSchema,dg as consoleRefundRequestSchema,uf as contentCollectionSchema,of as contentContractSchema,pf as contentDocumentDraftSchema,rf as contentDocumentSchema,lf as contentKindSchema,tf as contentRecordSchema,sf as contentSummarySchema,qf as contentValueMatches,nf as contentValueSchema,vf as contentVersionSchema,wf as contentVersionSummarySchema,xf as contentWriteSchema,se as countdownNodeSchema,yb as couponAppliesToSchema,Db as couponChangeErrors,re as couponCodeNodeSchema,nh as couponContentDigestSchema,wb as couponDiscountSchema,Bj as couponDisplaySchema,xb as couponDurationSchema,zb as couponEligibilitySchema,Ab as couponInputSchema,jl as couponRedemptionCommandSchema,kl as couponRedemptionReceiptSchema,vb as couponStatusSchema,Gb as couponWindow,yl as createCustomerRequestSchema,zl as createCustomerResponseSchema,Mk as createReferralCodeRequestSchema,Q as creditAmountSchema,mk as creditAnalyticsFilterSchema,ok as creditAnalyticsPageSchema,nk as creditAnalyticsQuerySchema,kk as creditAnalyticsRangeSchema,lk as creditAnalyticsTimezoneSchema,W as creditDimensionSchema,X as creditMultiplierSchema,S as creditPriceAdjustmentSchema,Y as creditPricingSchema,U as creditPropertiesSchema,R as creditQuantitySchema,Z as creditRateSchema,oc as creditResetCountSchema,nc as creditResetSchema,T as creditResourceKeySchema,pc as creditRolloverSchema,wa as creditSchemaItemSchema,Xc as creditStatementInputSchema,Yc as creditStatementSchema,Ca as creditSystemConfigSchema,V as creditTiersSchema,E as currencies,L as currencyAmountOptionsSchema,G as currencyDecimals,F as currencySchema,Dl as currentApiOperations,pe as customHtmlNodeSchema,ta as customerActivitySchema,ni as customerAttributesSchema,Kd as customerDataConfigSchema,Nd as customerDataIntentSchema,ne as customerDataNodeSchema,ti as customerDataReferenceMessage,si as customerDataReferenced,ri as customerDataSchema,Jd as customerDataSourceSchema,Bl as customerEntitlementsSchema,Ai as customerFiltersSchema,oi as customerFingerprintSchema,yi as customerGetSchema,bd as customerHoldingsSchema,pi as customerInputSchema,fd as customerLedgerEntrySchema,gd as customerLedgerPageSchema,ed as customerLedgerQuerySchema,wi as customerLookupSchema,vi as customerMutationSchema,Md as customerPageDataSchema,Ld as customerPageNodeStateSchema,Bi as customerPageSchema,xi as customerPatchSchema,sa as customerPlanSchema,ui as customerProfileSchema,qi as customerReferenceSchema,mi as customerTagsSchema,zi as customerUpdateRequestSchema,Zk as defaultCodeReferenceMethods,Tl as deliveredFunnelResponse,_j as deliveredPaywall,Gh as deliveredScreenDocument,Eb as describeCoupon,Ac as diffProductVariant,me as dividerNodeSchema,Od as emptyCustomerPageNode,qd as entitlementCheckInputSchema,rd as entitlementCheckReasonSchema,td as entitlementCheckResultSchema,pd as entitlementRequirementSchema,pa as entitlementSnapshotSchema,Al as entitlementStatusSchema,a as environmentSchema,l as errorCodeMatchesStatus,r as errorMetadata,n as errorMetadataSchema,k as errorPolicy,g as errorReasonSchema,f as errorRecoverySchema,o as errorResponseSchema,Qd as escapeHtmlText,Ra as evalCondition,Ua as evalFeature,Ah as evaluateFeaturesRequestSchema,Ch as evaluateFeaturesResultSchema,gn as evaluateLocalFunnelNode,Pl as executionSourceSchema,dn as expandFunnelSegment,db as experimentConfigurationSchema,cb as experimentPhaseSchema,hb as experimentSnapshotSchema,Ha as featureCollectionSchema,Aa as featureConfigOverrideSchema,Ea as featureDefinitionSchema,yh as featureDeliveryPayloadSchema,ua as featureIdSchema,ia as featureInputSchema,za as featureMarkupsOverrideSchema,Ia as featureOptionsSchema,xh as featurePayloadSchema,Ga as featureRecordSchema,ja as featureSchema,Fa as featureUpdateRulesSchema,Zc as featureUsageReadSchema,_c as featureUsageSetSchema,$c as featureUsageStateSchema,va as featureUsageTypeSchema,Ja as featureWriteSchema,Ie as fieldValue,de as fillSchema,ad as financialAmountSchema,dd as financialCursorSchema,cd as financialEntryTypeSchema,Qe as findDocumentNode,Pe as findNode,mm as formatCouponConditions,tb as formatCouponDiscount,sb as formatCouponMoney,ub as formatCouponTerms,J as formatCurrencyMinor,Im as formatProductBillingPeriod,Fb as formatUsd,Si as funnelApiBindingSchema,Pi as funnelApiProjectionSchema,im as funnelAuthorDraftSchema,Ii as funnelBundleDefinitionSchema,Mi as funnelBundleLiterals,Li as funnelBundleResultSchema,Ji as funnelBundleSelectionSchema,Yl as funnelCampaignCommandSchema,_l as funnelCampaignStartDeliverySchema,Zl as funnelCampaignStartResponseSchema,Ti as funnelCapabilitySchema,zj as funnelCommandSchema,am as funnelConfigurationSchema,hj as funnelConsumedVariables,hm as funnelContentDraftSchema,jm as funnelContentPublishedSchema,fm as funnelContentReferenceSchema,cn as funnelContextDelta,Vl as funnelCredentialCommandSchema,Xl as funnelCredentialDeliverySchema,Wl as funnelCredentialResponseSchema,yj as funnelDataQueriesSchema,Ei as funnelDecideShape,Fi as funnelDecisionCommandSchema,Rh as funnelDecisionEvaluationSchema,Ci as funnelDecisionOutputSchema,Gi as funnelDecisionResponseSchema,Di as funnelDecisionSchema,Uh as funnelDecisionSegmentEvaluationSchema,Hi as funnelDecisionUsedResponseSchema,qj as funnelDocumentDraftSchema,uj as funnelDocumentSchema,Wh as funnelEvaluationAttributes,Qh as funnelEvaluationInstructionSchema,Oh as funnelEvaluationModeSchema,Ph as funnelEvaluationResultSchema,bi as funnelExecutionPolicySchema,nj as funnelExecutionStateSchema,Vi as funnelExternalPageUrlSchema,ai as funnelExternalTaskSchema,Yi as funnelGraphDraftSchema,Xi as funnelGraphNodeSchema,Zi as funnelGraphSchema,_i as funnelGraphTargets,Ol as funnelInstructionSchema,Kl as funnelInvocationId,bm as funnelLocalConfigurationSchema,Ll as funnelLocalScreenCommandSchema,Ml as funnelLocalScreenResponseSchema,Th as funnelLocalSegmentStepSchema,lj as funnelNodeInputSchema,jj as funnelNodeKindSchema,Ze as funnelNodeProjections,mj as funnelNodeResultSchema,gj as funnelNodeVisitAllowed,We as funnelNodeWritesSchema,Wi as funnelOpenInSchema,gi as funnelOrchestrationCommandSchema,Lh as funnelParametersFromUrl,xj as funnelPresentationSubmissionSchema,Ni as funnelProjectionFilterValueSchema,Oi as funnelProjectionWhereSchema,wj as funnelPublicationDraftSchema,sj as funnelPublicationRules,vj as funnelPublicationSchema,tj as funnelPublishableDraftSchema,Zm as funnelPureNode,kj as funnelResourceReferenceSchema,xm as funnelResultsCursorSchema,ym as funnelResultsQuerySchema,ji as funnelResultsResponseSchema,zm as funnelResultsSchema,Ql as funnelRunViewSchema,Sl as funnelRuntimeDeliverySchema,Rl as funnelRuntimeResponseSchema,Nl as funnelRuntimeStatusSchema,gf as funnelScreenReads,ff as funnelScreenTokens,hf as funnelScreenValues,kn as funnelSegmentConfigurationSchema,Sh as funnelSegmentEvaluationInstructionSchema,_m as funnelSegmentPositionSchema,an as funnelSegmentSchema,$m as funnelSegmentStepSchema,hi as funnelSignalResponseSchema,bn as funnelStepId,$h as funnelTaskBindingSchema,Zh as funnelTaskDataSchema,_h as funnelTaskOutputsSchema,di as funnelTaskResponseSchema,ii as funnelTaskResultsSchema,cm as funnelTopology,$l as funnelTopologySchema,oj as funnelTraceEventSchema,af as funnelValueBindingSchema,Te as funnelValueDeclarationSchema,Xe as funnelValueMatches,$e as funnelValuePathSchema,Vh as funnelValueSchema,Ue as funnelVariableDeclarationSchema,Ve as funnelVariableDeclarationsSchema,ef as funnelVariableRead,Ye as funnelVariableValues,ej as funnelVisitAllowed,ij as funnelWaitKindSchema,th as gbRuntimeExperimentResultSchema,sh as gbRuntimeExperimentSchema,uh as gbRuntimeFeatureRuleSchema,vh as gbRuntimeFeatureSchema,wh as gbRuntimeSavedGroupsSchema,Na as getQueryStringOverride,Sa as getStickyBucketAttributes,Wa as growthAttributesSchema,Za as growthConditionGroupIds,Yh as growthConditionPaths,Xa as growthConditionSchema,fb as growthExperimentStop,gb as growthFeatureExpiry,$a as growthFeatureRuleSchema,ab as growthFeatureSchema,bb as growthFeaturesSchema,Ya as growthGroupSchema,kb as growthRuleContextSchema,_a as growthSavedGroupsSchema,ib as growthSnapshotSchema,lb as growthSplitResultSchema,Pd as htmlVariableErrors,$j as hydratePaywall,Vd as identifierSchema,ke as imageNodeSchema,ce as imagePositionSchema,ae as insetsSchema,pl as invoiceCommandSchema,Uc as invoiceDetailInputSchema,Wc as invoiceDetailSchema,sl as invoiceOperationSchema,Vc as invoiceProductItemSchema,cg as invoiceRefundsSchema,ol as invoiceTemplateCommandSchema,nl as invoiceTemplatePageSchema,ll as invoiceTemplateValuesSchema,Rb as isInvoiceCreditPrice,Dd as isProductGroup,Em as isRecurringMembership,Re as isRtlLocale,y as isStableSdkProtocol,Pa as isURLTargeted,Pb as itemBillingCycleSchema,kf as jsonStorageBytes,Va as jsonValueSchema,P as licenseOfferSchema,ic as listBillingInvoicesInputSchema,j as localErrorRecovery,qb as localeLabel,mb as localeSchema,Je as localeStatuses,Oe as localizeScreen,$b as manageBillingLimitsInputSchema,_b as manageOveragePolicyInputSchema,rl as managedInvoiceDetailSchema,tl as managedInvoicePageSchema,ql as managedInvoiceSchema,ml as managedInvoiceTemplateSchema,d as managementErrorCodeSchema,p as managementErrorResponseSchema,be as marginSchema,ob as matchLocale,Xh as matchesGrowthCondition,km as materializeFunnelContent,ca as membershipActionSchema,Gm as membershipBillingCount,da as membershipChangeSchema,ea as membershipHoldingSchema,aa as membershipRulesSchema,fa as membershipStateSchema,ba as membershipTimingSchema,ha as metadataSchema,Ba as meteredConfigSchema,I as minorToAmount,ya as modelMarkupsSchema,Bm as nativeCompletionSchema,yf as nativeCouponStoreOfferLinkWriteSchema,zf as nativeCouponStoreOfferLinksSchema,Am as nativeProofSchema,Ef as nativePurchaseInstructionSchema,Cm as nativeReceiptCommandSchema,Dm as nativeReceiptResponseSchema,Eg as nativeRestoreCommandSchema,Fg as nativeRestoreResultSchema,Cf as nativeStoreOfferForProduct,Af as nativeStoreOfferSelectionSchema,Bf as nativeStoreOfferSelectionsSchema,Df as nativeStoreSelectionMatches,Wf as nativeSubscriptionUpdatePreviewSchema,Xf as nativeSubscriptionUpdateResultSchema,Cb as newCouponInput,qh as newEnvironmentAnalyticsConfig,Ud as nodeIdSchema,rj as offerCopyUnscoped,Hb as offerSchema,Ib as offerUnavailableReasonSchema,Tg as offeringCollectionSchema,Pg as offeringDocumentSchema,Lg as offeringItemSchema,Mg as offeringItemsSchema,Hg as offeringMetadataSchema,Qg as offeringProductEvidenceSchema,Gg as offeringProductIdSchema,Ng as offeringProductIds,Xg as offeringProductOptionSchema,Og as offeringProductPaths,Zg as offeringPublicationIssues,Rg as offeringRecordSchema,Wg as offeringSelectorSchema,_g as offeringValueSchema,Sg as offeringVersionSchema,Yg as offeringWorkspaceSchema,Vg as offeringWriteResultSchema,Ug as offeringWriteSchema,Hc as overageBehaviorSchema,ac as overagePolicySchema,pj as ownedFunnelScreenSchema,Lm as pageExperimentEventSchema,Mm as pageExperimentEventsRequestSchema,Nm as pageExperimentEventsResponseSchema,Km as pageExperimentPayloadSchema,Jm as pageExperimentSchema,_d as paintColorSchema,Wj as parsePublicFunnel,m as parseRetryAfter,ng as paymentSetupCommandSchema,og as paymentSetupReadSchema,qg as paymentSetupSchema,sd as paywallCandidateSchema,dh as paywallClientActionSchema,jh as paywallCollectionSchema,Zj as paywallDeliverySchema,eh as paywallDocumentDraftSchema,fh as paywallDocumentSchema,hh as paywallFlowIssues,mh as paywallLibrarySchema,gh as paywallProductIssues,$g as paywallProductsSchema,ih as paywallRecordSchema,ud as paywallRequestSchema,Yj as paywallResolutionSchema,Xj as paywallResolveInputSchema,kh as paywallSummarySchema,lh as paywallWriteSchema,ma as planConfigSchema,na as planInputSchema,la as planItemSchema,te as planPickerNodeSchema,oa as planSchema,qa as planVersionSchema,Fc as prepaidAllowanceAmount,La as prepaidPriceAmount,Ma as prepaidQuantityAmount,Gc as prepaidQuantitySchema,Ka as prepaidTierPricingSchema,Tb as prepareBillingAuthorizationInputSchema,fn as prepareLocalFunnelNodes,Qa as prepareSavedGroups,Wb as preparedBillingAuthorizationSchema,Be as presentationSchema,qe as priceNodeSchema,ka as priceSchema,sc as productAllowanceSchema,Dc as productCollectionSchema,vc as productConfigurationSchema,yc as productDefinitionSchema,Ec as productEditorOptionsSchema,Hd as productGroupingMatches,Gd as productGroupingSchema,uc as productLicenseSchema,Bc as productOptionsSchema,rc as productPrepaidPriceSchema,qc as productPricesSchema,Cc as productRecordSchema,bh as productSelectionSchema,tc as productTrialSchema,wc as productVariantOverridesSchema,xc as productVariantSchema,Qi as projectFunnelApiOutputs,dm as projectFunnelConfiguration,em as projectFunnelLocalConfiguration,Bb as promotionCodeInputSchema,x as protocolForSdkVersion,xa as providerMarkupsSchema,oh as publicCouponScreenDataSchema,zh as publicFeatureConfigurationSchema,Wm as publicFunnelDocument,Fj as publicPaywallBenefitSchema,Jj as publicPaywallButtonSchema,Gj as publicPaywallChannelsSchema,Ij as publicPaywallCouponSchema,Ej as publicPaywallPriceSchema,Hj as publicPaywallProductSchema,Kj as publicPaywallSchema,Hh as publicScreenDocument,Fh as publicScreenIssues,Ke as publishChecks,wg as purchaseListItemSchema,Cg as purchaseListPageSchema,Xd as radiusSchema,bf as readFunnelValuePath,Jk as redeemRewardRequestSchema,Nk as referralCodeSchema,Pk as referralProgramCollectionSchema,Ck as referralProgramInputSchema,Ek as referralProgramRecordSchema,Hk as referralProgramWriteSchema,Bh as remoteFeatureResultSchema,jf as renameFunnelScreenVariable,Ee as replaceFirstPageRoot,Cj as resolveCouponDisplay,Ki as resolveFunnelBundle,Ui as resolveFunnelCapabilityInputs,fi as resolveFunnelTaskInputs,cf as resolveFunnelValueBinding,df as resolveFunnelValueBindings,zc as resolveProductVariant,Ne as resolveScreenLocale,C as resolveSdkProtocol,xl as responseMetaSchema,Yb as revokeBillingAuthorizationInputSchema,Rk as rewardActivityRedemptionSchema,Sk as rewardActivitySchema,Bk as rewardCodeInputSchema,Qk as rewardCodeSchema,Tk as rewardCodeWriteSchema,Ok as rewardCollectionSchema,yk as rewardConfigurationSchema,wk as rewardGrantExpirySchema,xk as rewardGrantSchema,Ak as rewardInputSchema,zk as rewardKeySchema,Fk as rewardOptionSchema,Lk as rewardProductCheckoutSchema,Dk as rewardRecordSchema,Ik as rewardRedemptionSchema,vk as rewardStatusSchema,uk as rewardTypeSchema,Gk as rewardWriteSchema,Ta as runExperiment,Hm as sameMembershipBillingCycle,Gl as saveSurfaceTemplateSchema,b as scopeSchema,xe as screenActionSchema,Jh as screenAnswersSchema,Ih as screenDataCursorSchema,Fe as screenDocumentSchema,Yd as screenImageSourceSchema,Mh as screenInputBindingsSchema,we as screenNodeSchema,Kh as screenParametersSchema,ch as screenPresentationSchema,Ed as screenProductScopes,Fd as screenProductSelections,Nh as screenRendererInputSchema,Se as screenSelections,ye as screenStringsSchema,Rj as sdkConfigurationManifestSchema,w as sdkProtocolRegistry,D as sdkProtocolResponseHeaders,id as seatCommandSchema,hd as seatReadSchema,jd as seatsStateSchema,aj as selectFunnelCondition,ah as selectedPaywallProduct,Cd as selectedSurfaceValue,Me as servableLocales,lc as setBillingCouponsInputSchema,ge as shadowSchema,ee as shapeSchema,$d as sizeSchema,Wd as spaceSchema,oe as spacerNodeSchema,ga as stableKeySchema,ue as stackInteractionSchema,ve as stackNodeSchema,jb as stickyAssignmentDocumentSchema,Nf as stripeAppendContextSchema,Mf as stripeCouponTermsSchema,Of as stripePurchaseExecutionSchema,$f as stripeRefundExecutionSchema,pg as stripeSetupExecutionSchema,Tf as stripeSubscriptionUpdateExecutionSchema,Uf as stripeSubscriptionUpdatePreviewSchema,Vf as stripeSubscriptionUpdateResultSchema,kg as stripeTrialExecutionSchema,ie as styleSchema,Kf as subscriptionAttachCommandSchema,Pf as subscriptionAttachQuoteSchema,eg as subscriptionBatchCommandSchema,gg as subscriptionBatchGroupSchema,fg as subscriptionBatchReadSchema,hg as subscriptionBatchSchema,Rf as subscriptionCarryOptionsSchema,Dg as subscriptionConflictPageSchema,yg as subscriptionConflictQuerySchema,Ag as subscriptionConflictRetryResultSchema,zg as subscriptionConflictRetrySchema,xg as subscriptionConflictSchema,kc as subscriptionCouponExecutionSchema,ul as subscriptionInvoiceModeSchema,vg as subscriptionListItemSchema,Bg as subscriptionListPageSchema,Lf as subscriptionOperationInputSchema,Qf as subscriptionOperationSchema,_f as subscriptionRefundCommandSchema,ag as subscriptionRefundPreviewSchema,bg as subscriptionRefundResultSchema,ig as subscriptionTrialCommandSchema,mg as subscriptionTrialPolicySchema,jg as subscriptionTrialReadSchema,lg as subscriptionTrialResultSchema,Sf as subscriptionUpdateCommandSchema,Yf as subscriptionUpdatePreviewSchema,Zf as subscriptionUpdateResultSchema,rg as subscriptionVerificationInputSchema,sg as subscriptionVerificationSchema,Rd as substituteHtmlVariables,Bd as substituteSurfaceVariables,yd as surfaceDataSchema,ze as surfaceSchema,Fl as surfaceTemplateSchema,xd as surfaceValueSchema,zd as surfaceVariableNames,Le as templateChecks,El as templateCoverImageSchema,je as textNodeSchema,he as textStyleSchema,Zd as themeSchema,Oa as toAttributeString,Dh as trackEventsRequestSchema,Eh as trackEventsResultSchema,bj as transitionFunnelGraph,He as translatableFields,_ as trialPolicySchema,$ as trialRecordSchema,Ad as unknownSurfaceVariables,qk as usageAnalyticsPageSchema,pk as usageAnalyticsQuerySchema,tk as usageBatchPageSchema,sk as usageBatchReadSchema,rk as usageBatchSubmitSchema,dk as usageEntityCommandSchema,ek as usageEntitySchema,lm as validateFunnelContentPublication,$i as validateFunnelGraph,_e as validateFunnelProjections,ei as validateFunnelTaskData,Aj as validateScreenAnswers,A as validateSdkProtocolRegistry,ra as validitySchema,wl as verifiedPrincipalSchema,Sm as visualChangeSchema,Vm as visualExperimentPayloadSchema,Um as visualExperimentSchema,Rm as visualMutationSchema,Tm as visualVariationSchema,De as walkDocument,Ge as walkScreen};
|
|
File without changes
|
|
File without changes
|
|
@@ -332,9 +332,9 @@ declare const offerSchema: z.ZodObject<{
|
|
|
332
332
|
id: z.ZodUUID;
|
|
333
333
|
couponId: z.ZodUUID;
|
|
334
334
|
status: z.ZodEnum<{
|
|
335
|
-
reserved: "reserved";
|
|
336
335
|
expired: "expired";
|
|
337
336
|
issued: "issued";
|
|
337
|
+
reserved: "reserved";
|
|
338
338
|
redeemed: "redeemed";
|
|
339
339
|
revoked: "revoked";
|
|
340
340
|
}>;
|
|
@@ -437,9 +437,9 @@ type ScreenRendererInput = z.infer<typeof screenRendererInputSchema>;
|
|
|
437
437
|
declare const customerPageDataSchema: z.ZodObject<{
|
|
438
438
|
nodes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
439
439
|
source: z.ZodEnum<{
|
|
440
|
+
membership: "membership";
|
|
440
441
|
credit_balance: "credit_balance";
|
|
441
442
|
credit_transactions: "credit_transactions";
|
|
442
|
-
membership: "membership";
|
|
443
443
|
billing: "billing";
|
|
444
444
|
billing_controls: "billing_controls";
|
|
445
445
|
customer_plans: "customer_plans";
|
|
@@ -449,9 +449,9 @@ declare const customerPageDataSchema: z.ZodObject<{
|
|
|
449
449
|
}>;
|
|
450
450
|
status: z.ZodEnum<{
|
|
451
451
|
error: "error";
|
|
452
|
-
ready: "ready";
|
|
453
452
|
idle: "idle";
|
|
454
453
|
loading: "loading";
|
|
454
|
+
ready: "ready";
|
|
455
455
|
}>;
|
|
456
456
|
stale: z.ZodBoolean;
|
|
457
457
|
preview: z.ZodBoolean;
|
|
@@ -534,12 +534,12 @@ type CustomerPageData = z.infer<typeof customerPageDataSchema>;
|
|
|
534
534
|
declare const customerDataIntentSchema: z.ZodObject<{
|
|
535
535
|
nodeId: z.ZodString;
|
|
536
536
|
action: z.ZodEnum<{
|
|
537
|
-
invoice_open: "invoice_open";
|
|
538
537
|
filter: "filter";
|
|
539
538
|
billing_adjustment: "billing_adjustment";
|
|
540
539
|
billing_authorization: "billing_authorization";
|
|
541
540
|
buy_pack: "buy_pack";
|
|
542
541
|
billing_portal: "billing_portal";
|
|
542
|
+
invoice_open: "invoice_open";
|
|
543
543
|
refresh: "refresh";
|
|
544
544
|
next: "next";
|
|
545
545
|
previous: "previous";
|