@tinkerlandai/indiana-sdk 0.4.0 → 0.6.0
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 +30 -1
- package/README.md +178 -9
- package/README.zh-CN.md +94 -6
- package/THIRD_PARTY_NOTICES.md +0 -1
- package/dist/ai-usage-B4W5m4Ie.d.ts +11102 -0
- package/dist/chunk-4JBIKJMU.js +4 -0
- package/dist/chunk-5TEZEOHX.js +1 -0
- package/dist/chunk-5WY3AXSS.js +1 -0
- package/dist/chunk-HU2HIDVT.js +11 -0
- package/dist/chunk-OHDY27EI.js +1 -0
- package/dist/chunk-OK2Q6IJD.js +1 -0
- package/dist/chunk-PCVQHHEE.js +1 -0
- package/dist/chunk-RMJJOSVZ.js +1 -0
- package/dist/chunk-S2MSIA57.js +17 -0
- package/dist/chunk-S5TVMQRC.js +1 -0
- package/dist/configuration-sync-Bnu8s4pc.d.ts +1314 -0
- package/dist/{customer-page-aZb5Twue.d.ts → customer-page-B4FGCVpt.d.ts} +3 -0
- package/dist/funnel-runtime-host-L3WILUHK.js +1 -0
- package/dist/funnel-runtime-start-Zbd5ro5r.d.ts +30920 -0
- package/dist/{growth-rules-D64pEvg9.d.ts → growth-rules-B4YYy64R.d.ts} +8 -1
- package/dist/index.d.ts +15481 -5669
- package/dist/index.js +1 -1
- package/dist/native-shell.js +1 -1
- package/dist/openrouter.d.ts +3 -2
- package/dist/openrouter.js +1 -1
- package/dist/page.d.ts +18 -20
- package/dist/page.js +1 -1
- package/dist/paywall-TCE5DE5T.js +1 -0
- package/dist/popup.d.ts +259 -3
- package/dist/popup.js +6 -6
- package/dist/{screen-Keau_Qa2.d.ts → screen-16d-xADb.d.ts} +354 -463
- package/dist/server.d.ts +6 -4
- package/dist/server.js +1 -1
- package/dist/src-VGIVVM27.js +1 -0
- package/dist/visual-editor-agent-WW65CMKW.js +1 -0
- package/dist/visual.d.ts +4 -2
- package/dist/visual.js +1 -1
- package/package.json +3 -2
- package/dist/ai-usage-D9xVKhvu.d.ts +0 -9953
- package/dist/chunk-2UFPTDCV.js +0 -4
- package/dist/chunk-LFNFVYC2.js +0 -1
- package/dist/chunk-PVJKOUNE.js +0 -11
- package/dist/chunk-TZ6REIUE.js +0 -17
- package/dist/chunk-VTSEZ4GI.js +0 -1
- package/dist/funnel-runtime-host-4PQY2MFC.js +0 -1
- package/dist/funnel-runtime-start-B93fV5gJ.d.ts +0 -9165
- package/dist/paywall-M5CIDUIT.js +0 -1
- package/dist/src-XEDJAKEB.js +0 -1
- package/dist/visual-editor-agent-PYMKMPY3.js +0 -1
- /package/dist/{chunk-ZT523F45.js → chunk-BIFEEVQO.js} +0 -0
package/dist/paywall-M5CIDUIT.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as H}from"./chunk-6X42DWOM.js";import{a as m}from"./chunk-LFNFVYC2.js";import{$l as B,Ie as U,hf as V,y as M}from"./chunk-PVJKOUNE.js";import"./chunk-TZ6REIUE.js";async function F(y,t,d){if(t.status!=="complete")throw new m("INVALID_RESPONSE","A verified completed purchase is required");if(await d.onComplete?.(t),!y||!d.check)return;let i=U.parse(await d.check());if(i.internal_feature_id!==y.internal_feature_id||i.quantity!==y.quantity)throw new m("INVALID_RESPONSE","The access requirement changed");i.allowed&&await d.onAccessGranted?.(i)}async function re(y,t){let d=t.check?U.parse(await t.check()):null;if(d?.allowed)return await t.onAccessGranted?.(d),{check:d,host:null};let i=await t.start(),p=i.view;if(!p)throw new m("INVALID_RESPONSE","Paywall presentation is missing");let{mountScreenPreview:j}=await import("./popup.js"),n=y.ownerDocument,R=new AbortController,v=n.createElement("section"),$=n.createElement("div"),I=n.createElement("div"),P=n.createElement("p"),E=n.createElement("button"),D=n.createElement("button"),f=n.createElement("dialog"),L=n.activeElement,w=p.document.screen.strings.defaultLocale.startsWith("zh");v.dataset.indianaPaywall="",v.setAttribute("aria-label",p.document.name),v.style.cssText="width:100%;box-sizing:border-box;background:#fff;color:#172033;font:14px/1.5 system-ui,sans-serif",I.style.cssText="display:flex;gap:12px;padding:12px 20px;align-items:center;flex-wrap:wrap",P.setAttribute("role","status"),D.textContent=w?"\u5173\u95ED":"Close",E.textContent=w?"\u91CD\u8BD5":"Retry",E.hidden=!0,I.append(P,E,D),v.append($,I);let N=p.document.presentation,g,u=!1,_=!1,l=null,T=!1,a=null,x=null,S=e=>{P.textContent=e instanceof Error?e.message:w?"\u8BF7\u6C42\u5931\u8D25":"Request failed",H(t.onError,e),E.hidden=a===null};async function b(e){if(!(_||u)){_=!0,E.hidden=!0,P.textContent="";try{await e()}catch(o){u||S(o)}finally{_=!1}}}async function W(e){await F(d,e,t)}async function O(e){if(u)return;if(P.textContent=e.status,e.status==="complete"){a=null,await W(e);return}if(e.status!=="pending"){a=null,l=null;return}let o=Date.now()+6e5,c=2e3;for(;!u&&Date.now()<o;){if(await new Promise(h=>{let A=()=>{clearTimeout(C),h()},C=setTimeout(()=>{R.signal.removeEventListener("abort",A),h()},c);R.signal.addEventListener("abort",A,{once:!0})}),u)return;let r=await i.read();if(r.status!=="pending"){await O(r);return}c=Math.min(c*1.5,3e4)}a=async()=>O(await i.read()),E.hidden=!1}async function z(){x?.remove(),x=null,a=z;let e=await i.confirm();if(e.status==="pending"){if(e.checkoutUrl)t.onCheckoutUrl?await t.onCheckoutUrl(e.checkoutUrl):n.defaultView?.location.assign(e.checkoutUrl);else if(e.execution||e.nativePurchase){if(!t.onPurchase)throw new m("PURCHASE_HANDLER_REQUIRED","Provide the merchant or native purchase handler");await t.onPurchase({operation:e,signal:R.signal})}}a=async()=>O(await i.read()),await O(e)}function J(e){x?.remove();let o=n.createElement("div"),c=n.createElement("button"),r=n.createElement("button"),h=n.createElement("p");h.textContent=e.lines.map(s=>s.productName).join(", ")+" \xB7 "+M(e.charge?.totalMinor??e.catalogAmountMinor-(e.discount?.amountMinor??0),e.currency),c.textContent=w?"\u786E\u8BA4\u8D2D\u4E70":"Confirm purchase",r.textContent=w?"\u53D6\u6D88":"Cancel",c.onclick=()=>{b(z)};let A=async()=>{await i.cancel(),!u&&(l=null,a=null,o.remove(),x=null)};r.onclick=()=>{a=A,b(A)};let C=n.createElement("div");for(let s of e.lines){let q=n.createElement("p");if(q.textContent=`${s.productName} \xB7 ${M(s.catalogAmountMinor,e.currency)}${B(s.interval,w?"zh-CN":"en",s.intervalCount??1)}`,C.append(q),s.trial){let G=n.createElement("p");G.textContent=w?`\u8BD5\u7528 ${s.trial.days} \u5929\uFF1B${s.trial.cardRequired?"\u9700\u8981\u63D0\u4F9B\u4ED8\u6B3E\u65B9\u5F0F":"\u65E0\u9700\u63D0\u4F9B\u4ED8\u6B3E\u65B9\u5F0F"}`:`Trial days: ${s.trial.days}; ${s.trial.cardRequired?"a payment method is required":"no payment method is required"}`,C.append(G)}}if(!e.charge){let s=n.createElement("p");s.textContent=w?"\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.",C.append(s)}o.append(h,C,c,r),I.prepend(o),x=o,a=null}async function Q(){if(!l)return;if(a=Q,!T){let o=i.view,c=o?.document.buttons[l.actionId],r=o&&c?.type==="checkout"?V(c.product,l.selection,o.capabilities):null;if(!r)throw new m("PRODUCT_UNAVAILABLE","Choose an available Product in this purchase area");let h=await t.resolveOfferId?.({actionId:l.actionId,productVersionId:r});if(u)return;h!==void 0&&(l.offerId=h),T=!0}let e=await i.preview(l);u||J(e)}function k(e="destroy"){u||(u=!0,R.abort(),g?.destroy(),i.destroy(),f.open&&f.close(),f.remove(),v.remove(),L instanceof HTMLElement&&L.isConnected&&L.focus(),e==="dismiss"&&H(t.onDismiss))}D.onclick=()=>k("dismiss"),f.addEventListener("cancel",e=>{e.preventDefault(),k("dismiss")}),E.onclick=()=>{a&&b(a)};try{if(N.type==="inline")y.append(v);else{let e={sm:420,md:640,lg:900};f.style.cssText=`padding:0;border:0;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;width:${"size"in N?e[N.size]+"px":"100vw"}`,f.setAttribute("aria-label",p.document.name),f.append(v),y.append(f),f.showModal()}g=j($,{mode:"live",rendererUrl:i.webViewUrl,title:p.document.name,onAction(e,o={}){let c=i.view,r=c?.document.buttons[e];if(r){if(r.type==="close"){b(async()=>{await t.onAction?.(e),k(t.onAction?"action":"dismiss")});return}if(r.type==="action"){a=async()=>{if(r.action.type==="event"){if(!t.onEvent)throw new m("EVENT_HANDLER_REQUIRED","Provide the event handler");await t.onEvent(r.action.event)}else t.onOpenUrl?await t.onOpenUrl(r.action.url):n.defaultView?.location.assign(r.action.url);await t.onAction?.(e),a=null},b(a);return}if(!c||!V(r.product,o,c.capabilities)){S(new m("PRODUCT_UNAVAILABLE","Choose an available Product in this purchase area"));return}if(l&&l.actionId!==e){S(new m("COMMAND_PENDING","Finish the current purchase"));return}l||(l={requestId:crypto.randomUUID(),actionId:e,selection:o},T=!1),b(Q)}},onEscape:()=>k("dismiss"),onError:e=>S(new Error(e))}),g.update(p.document.screen,p.document.screen.strings.defaultLocale,{capabilities:p.capabilities,serverInput:{bindings:[],answers:{}}}),await g.ready}catch(e){throw k(),e}return{check:d,host:{destroy:k,refresh:async()=>{let e=await i.refresh();return u||g?.updateCapabilities(e.capabilities),e}}}}export{re as showPaywall};
|
package/dist/src-XEDJAKEB.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$,$a as hb,$b as hc,$c as hd,$d as he,$e as hf,$f as ig,$g as ih,$h as ii,$i as ij,$j as ik,$k as il,$l as im,A,Aa as Ia,Ab as Ib,Ac as Ic,Ad as Id,Ae as Ie,Af as Jf,Ag as Jg,Ah as Jh,Ai as Ji,Aj as Jj,Ak as Jk,Al as Jl,Am as Jm,B,Ba as Ja,Bb as Jb,Bc as Jc,Bd as Jd,Be as Je,Bf as Kf,Bg as Kg,Bh as Kh,Bi as Ki,Bj as Kj,Bk as Kk,Bl as Kl,Bm as Km,C,Ca as Ka,Cb as Kb,Cc as Kc,Cd as Kd,Ce as Ke,Cf as Lf,Cg as Lg,Ch as Lh,Ci as Li,Cj as Lj,Ck as Lk,Cl as Ll,Cm as Lm,D,Da as La,Db as Lb,Dc as Lc,Dd as Ld,De as Le,Df as Mf,Dg as Mg,Dh as Mh,Di as Mi,Dj as Mj,Dk as Mk,Dl as Ml,Dm as Mm,E,Ea as Ma,Eb as Mb,Ec as Mc,Ed as Md,Ee as Me,Ef as Nf,Eg as Ng,Eh as Nh,Ei as Ni,Ej as Nj,Ek as Nk,El as Nl,Em as Nm,F,Fa as Na,Fb as Nb,Fc as Nc,Fd as Nd,Fe as Ne,Ff as Of,Fg as Og,Fh as Oh,Fi as Oi,Fj as Oj,Fk as Ok,Fl as Ol,Fm as Om,G,Ga as Oa,Gb as Ob,Gc as Oc,Gd as Od,Ge as Oe,Gf as Pf,Gg as Pg,Gh as Ph,Gi as Pi,Gj as Pj,Gk as Pk,Gl as Pl,Gm as Pm,H,Ha as Pa,Hb as Pb,Hc as Pc,Hd as Pd,He as Pe,Hf as Qf,Hg as Qg,Hh as Qh,Hi as Qi,Hj as Qj,Hk as Qk,Hl as Ql,Hm as Qm,I,Ia as Qa,Ib as Qb,Ic as Qc,Id as Qd,Ie as Qe,If as Rf,Ig as Rg,Ih as Rh,Ii as Ri,Ij as Rj,Ik as Rk,Il as Rl,Im as Rm,J,Ja as Ra,Jb as Rb,Jc as Rc,Jd as Rd,Je as Re,Jf as Sf,Jg as Sg,Jh as Sh,Ji as Si,Jj as Sj,Jk as Sk,Jl as Sl,K,Ka as Sa,Kb as Sb,Kc as Sc,Kd as Sd,Ke as Se,Kf as Tf,Kg as Tg,Kh as Th,Ki as Ti,Kj as Tj,Kk as Tk,Kl as Tl,L,La as Ta,Lb as Tb,Lc as Tc,Ld as Td,Le as Te,Lf as Uf,Lg as Ug,Lh as Uh,Li as Ui,Lj as Uj,Lk as Uk,Ll as Ul,M,Ma as Ua,Mb as Ub,Mc as Uc,Md as Ud,Me as Ue,Mf as Vf,Mg as Vg,Mh as Vh,Mi as Vi,Mj as Vj,Mk as Vk,Ml as Vl,N,Na as Va,Nb as Vb,Nc as Vc,Nd as Vd,Ne as Ve,Nf as Wf,Ng as Wg,Nh as Wh,Ni as Wi,Nj as Wj,Nk as Wk,Nl as Wl,O,Oa as Wa,Ob as Wb,Oc as Wc,Od as Wd,Oe as We,Of as Xf,Og as Xg,Oh as Xh,Oi as Xi,Oj as Xj,Ok as Xk,Ol as Xl,P,Pa as Xa,Pb as Xb,Pc as Xc,Pd as Xd,Pe as Xe,Pf as Yf,Pg as Yg,Ph as Yh,Pi as Yi,Pj as Yj,Pk as Yk,Pl as Yl,Q,Qa as Ya,Qb as Yb,Qc as Yc,Qd as Yd,Qe as Ye,Qf as Zf,Qg as Zg,Qh as Zh,Qi as Zi,Qj as Zj,Qk as Zk,Ql as Zl,R,Ra as Za,Rb as Zb,Rc as Zc,Rd as Zd,Re as Ze,Rf as _f,Rg as _g,Rh as _h,Ri as _i,Rj as _j,Rk as _k,Rl as _l,S,Sa as _a,Sb as _b,Sc as _c,Sd as _d,Se as _e,Sf as $f,Sg as $g,Sh as $h,Si as $i,Sj as $j,Sk as $k,Sl as $l,T,Ta as $a,Tb as $b,Tc as $c,Td as $d,Te as $e,Tf as ag,Tg as ah,Th as ai,Ti as aj,Tj as ak,Tk as al,Tl as am,U,Ua as ab,Ub as ac,Uc as ad,Ud as ae,Ue as af,Uf as bg,Ug as bh,Uh as bi,Ui as bj,Uj as bk,Uk as bl,Ul as bm,V,Va as bb,Vb as bc,Vc as bd,Vd as be,Ve as bf,Vf as cg,Vg as ch,Vh as ci,Vi as cj,Vj as ck,Vk as cl,Vl as cm,W,Wa as cb,Wb as cc,Wc as cd,Wd as ce,We as cf,Wf as dg,Wg as dh,Wh as di,Wi as dj,Wj as dk,Wk as dl,Wl as dm,X,Xa as db,Xb as dc,Xc as dd,Xd as de,Xe as df,Xf as eg,Xg as eh,Xh as ei,Xi as ej,Xj as ek,Xk as el,Xl as em,Y,Ya as eb,Yb as ec,Yc as ed,Yd as ee,Ye as ef,Yf as fg,Yg as fh,Yh as fi,Yi as fj,Yj as fk,Yk as fl,Yl as fm,Z,Za as fb,Zb as fc,Zc as fd,Zd as fe,Ze as ff,Zf as gg,Zg as gh,Zh as gi,Zi as gj,Zj as gk,Zk as gl,Zl as gm,_,_a as gb,_b as gc,_c as gd,_d as ge,_e as gf,_f as hg,_g as hh,_h as hi,_i as hj,_j as hk,_k as hl,_l as hm,a,aa,ab as ib,ac as ic,ad as id,ae as ie,af as jf,ag as jg,ah as jh,ai as ji,aj as jj,ak as jk,al as jl,am as jm,b,ba,bb as jb,bc as jc,bd as jd,be as je,bf as kf,bg as kg,bh as kh,bi as ki,bj as kj,bk as kk,bl as kl,bm as km,c,ca,cb as kb,cc as kc,cd as kd,ce as ke,cf as lf,cg as lg,ch as lh,ci as li,cj as lj,ck as lk,cl as ll,cm as lm,d,da,db as lb,dc as lc,dd as ld,de as le,df as mf,dg as mg,dh as mh,di as mi,dj as mj,dk as mk,dl as ml,dm as mm,e,ea,eb as mb,ec as mc,ed as md,ee as me,ef as nf,eg as ng,eh as nh,ei as ni,ej as nj,ek as nk,el as nl,em as nm,f,fa,fb as nb,fc as nc,fd as nd,fe as ne,ff as of,fg as og,fh as oh,fi as oi,fj as oj,fk as ok,fl as ol,fm as om,g,ga,gb as ob,gc as oc,gd as od,ge as oe,gf as pf,gg as pg,gh as ph,gi as pi,gj as pj,gk as pk,gl as pl,gm as pm,h,ha,hb as pb,hc as pc,hd as pd,he as pe,hf as qf,hg as qg,hh as qh,hi as qi,hj as qj,hk as qk,hl as ql,hm as qm,i,ia,ib as qb,ic as qc,id as qd,ie as qe,if as rf,ig as rg,ih as rh,ii as ri,ij as rj,ik as rk,il as rl,im as rm,j,ja,jb as rb,jc as rc,jd as rd,je as re,jf as sf,jg as sg,jh as sh,ji as si,jj as sj,jk as sk,jl as sl,jm as sm,k,ka,kb as sb,kc as sc,kd as sd,ke as se,kf as tf,kg as tg,kh as th,ki as ti,kj as tj,kk as tk,kl as tl,km as tm,l,la as ta,lb as tb,lc as tc,ld as td,le as te,lf as uf,lg as ug,lh as uh,li as ui,lj as uj,lk as uk,ll as ul,lm as um,m,ma as ua,mb as ub,mc as uc,md as ud,me as ue,mf as vf,mg as vg,mh as vh,mi as vi,mj as vj,mk as vk,ml as vl,mm as vm,n,na as va,nb as vb,nc as vc,nd as vd,ne as ve,nf as wf,ng as wg,nh as wh,ni as wi,nj as wj,nk as wk,nl as wl,nm as wm,o,oa as wa,ob as wb,oc as wc,od as wd,oe as we,of as xf,og as xg,oh as xh,oi as xi,oj as xj,ok as xk,ol as xl,om as xm,p,pa as xa,pb as xb,pc as xc,pd as xd,pe as xe,pf as yf,pg as yg,ph as yh,pi as yi,pj as yj,pk as yk,pl as yl,pm as ym,q,qa as ya,qb as yb,qc as yc,qd as yd,qe as ye,qf as zf,qg as zg,qh as zh,qi as zi,qj as zj,qk as zk,ql as zl,qm as zm,r,ra as za,rb as zb,rc as zc,rd as zd,re as ze,rf as Af,rg as Ag,rh as Ah,ri as Ai,rj as Aj,rk as Ak,rl as Al,rm as Am,s,sa as Aa,sb as Ab,sc as Ac,sd as Ad,se as Ae,sf as Bf,sg as Bg,sh as Bh,si as Bi,sj as Bj,sk as Bk,sl as Bl,sm as Bm,t,ta as Ba,tb as Bb,tc as Bc,td as Bd,te as Be,tf as Cf,tg as Cg,th as Ch,ti as Ci,tj as Cj,tk as Ck,tl as Cl,tm as Cm,u,ua as Ca,ub as Cb,uc as Cc,ud as Cd,ue as Ce,uf as Df,ug as Dg,uh as Dh,ui as Di,uj as Dj,uk as Dk,ul as Dl,um as Dm,v,va as Da,vb as Db,vc as Dc,vd as Dd,ve as De,vf as Ef,vg as Eg,vh as Eh,vi as Ei,vj as Ej,vk as Ek,vl as El,vm as Em,w,wa as Ea,wb as Eb,wc as Ec,wd as Ed,we as Ee,wf as Ff,wg as Fg,wh as Fh,wi as Fi,wj as Fj,wk as Fk,wl as Fl,wm as Fm,x,xa as Fa,xb as Fb,xc as Fc,xd as Fd,xe as Fe,xf as Gf,xg as Gg,xh as Gh,xi as Gi,xj as Gj,xk as Gk,xl as Gl,xm as Gm,y,ya as Ga,yb as Gb,yc as Gc,yd as Gd,ye as Ge,yf as Hf,yg as Hg,yh as Hh,yi as Hi,yj as Hj,yk as Hk,yl as Hl,ym as Hm,z,za as Ha,zb as Hb,zc as Hc,zd as Hd,ze as He,zf as If,zg as Ig,zh as Ih,zi as Ii,zj as Ij,zk as Ik,zl as Il,zm as Im}from"./chunk-PVJKOUNE.js";import{a as la,b as ma,c as na,d as oa,e as pa,f as qa,g as ra,h as sa}from"./chunk-TZ6REIUE.js";export{Pa as COMMON_LOCALES,Ra as COUPON_TERM_LOCALES,Cf as CUSTOMER_DATA_SOURCES,Cl as DEFAULT_AUDIENCE_GROUP,Ij as DEFAULT_FUNNEL_EXECUTION_POLICY,ak as FUNNEL_API_CAPABILITIES,Li as FUNNEL_LIMITS,Xk as FUNNEL_PREVIEW_LIMITS,Ue as OFFERING_MAX_DEPTH,We as OFFERING_MAX_ITEMS,Ve as OFFERING_MAX_PRODUCTS,wg as POPUP_WIDTHS,Nf as SCREEN_LIMITS,Fi as SCREEN_RENDER_PATH,Mf as SCREEN_SCHEMA_VERSION,Oi as SCREEN_TEMPLATES,vc as SDK_PROTOCOL_HEADER,xc as SDK_SUPPORT_HEADER,yc as SDK_SUPPORT_POLICY,wc as SDK_VERSION_HEADER,ug as SURFACE_PATHS,uf as SURFACE_VARIABLES,Ec as SdkProtocolError,Mi as UNBOUND_PRODUCT_VERSION_ID,Qm as VISUAL_EDITOR_PARAM,Cc as addSupportMonths,j as aiCreditSystemConfigSchema,gh as aiMarkupSchema,fh as aiModelIdSchema,hh as aiModelRatesSchema,ih as aiPricingConfigurationSchema,eh as aiTokenPools,w as amountToMinor,hi as analyticsConfigSchema,ji as analyticsEventEnabled,lc as apiErrorCatalog,mc as apiErrorCodeForStatus,gc as apiErrorCodeSchema,Di as apiOperations,wi as apiPermissionSchema,Wl as appResultsSchema,Vl as appRevenueSchema,dm as appendScreenTemplate,Bm as applyGrowthReleasePlan,nj as archiveSurfaceTemplateSchema,Fl as audienceCustomerSchema,Ol as audienceFunnelUsageSchema,Pl as audienceFunnelUsagesSchema,Gl as audienceMembersSchema,Hc as audienceSchema,El as audienceWriteSchema,xl as auditFieldSchema,Al as auditHistoryCursorSchema,Bl as auditHistorySchema,wl as auditResourceSchema,qb as autoTopupPurchaseLimitSchema,Cb as autoTopupStateSchema,Im as autumnAmountToMinor,ll as autumnCustomerAutoTopupSchema,ql as autumnCustomerControlsSchema,sl as autumnCustomerMetadataSchema,pl as autumnCustomerOverageAllowedSchema,ul as autumnCustomerProductSummarySchema,tl as autumnCustomerProfileRecordSchema,ml as autumnCustomerSpendLimitSchema,ol as autumnCustomerUsageAlertSchema,nl as autumnCustomerUsageLimitSchema,rl as autumnEntityControlsSchema,Jm as autumnMinorToAmount,Km as autumnUsageUnitAmountDecimal,$g as balanceAdjustmentCommandSchema,ah as balanceAdjustmentStateSchema,Yc as balanceAllocationSchema,Vc as balanceCommandSchema,bd as balanceGrantCommandSchema,ad as balanceGrantCreateSchema,ed as balanceGrantPageSchema,dd as balanceGrantReadSchema,cd as balanceGrantSchema,$c as balanceOperationSchema,Wc as balancePricingSegmentSchema,_c as balanceQuoteSchema,Xc as balanceReceiptUnitsSchema,Zc as balanceRejectionReasonSchema,jm as balanceSourceReasonSchema,bh as balanceSourceStateSchema,km as balanceSourceStatusSchema,mm as balanceSourcesPageSchema,lm as balanceSourcesQuerySchema,jb as billingAccruedMinorSchema,ib as billingAmountMinorSchema,tb as billingAuthorizationSchema,sb as billingAuthorizationTermsSchema,kb as billingBudgetMinorSchema,Db as billingControlInputSchema,Eb as billingControlsSchema,Mb as billingCouponsSchema,z as billingCurrencies,Fb as billingInvoiceLineSchema,Gb as billingInvoiceSchema,Jb as billingInvoicesSchema,xb as billingLimitSchema,jj as billingPortalInputSchema,kj as billingPortalSchema,D as billingSettingsMutationSchema,B as billingSettingsSchema,C as billingSettingsScopeSchema,Bb as billingUsageWindowSchema,$f as borderSchema,fg as buttonNodeSchema,Kc as campaignInputSchema,Ic as campaignOfferSchema,Lc as campaignSchema,Na as canonicalLocale,vf as capabilityBindingSchema,ob as cashPriceSchema,mb as cashPricingSchema,lb as cashPricingTiersSchema,hb as cashUnitAmountMinorSchema,Jh as claimRewardProductRequestSchema,Gd as commerceAccessSchema,Le as commerceContextSchema,ye as commerceCursorSchema,ze as commerceListQuerySchema,Hd as commerceMoneySchema,fm as commerceProductKind,Fd as commerceProductKindSchema,Ed as commerceProviderSchema,Ea as compileGrowthFeatures,Hb as confirmBillingAdjustmentInputSchema,vb as confirmBillingAuthorizationInputSchema,ic as consoleErrorCodeSchema,tc as consoleErrorResponseSchema,Fm as consoleHasPermission,ie as consoleRefundRequestSchema,Dm as consoleResources,Em as consoleRolePermissions,Cm as consoleRoleSchema,mg as countdownNodeSchema,Ya as couponAppliesToSchema,bb as couponChangeErrors,lg as couponCodeNodeSchema,Wa as couponDiscountSchema,Hl as couponDisplaySchema,Ti as couponDistributionBatchSchema,Vi as couponDistributionDetailSchema,Si as couponDistributionPreviewSchema,Ui as couponDistributionRecipientSchema,Wi as couponDistributionWriteSchema,Xa as couponDurationSchema,Za as couponEligibilitySchema,_a as couponInputSchema,Va as couponStatusSchema,kl as couponTemplateExample,il as couponTemplateKey,eb as couponWindow,Kl as createAccountOverviewPage,Jl as createCreditCenterPage,Ml as createCustomerPageTemplates,zi as createCustomerRequestSchema,Ai as createCustomerResponseSchema,Ll as createMembershipPage,Lh as createReferralCodeRequestSchema,F as creditAmountSchema,lh as creditAnalyticsFilterSchema,nh as creditAnalyticsPageSchema,mh as creditAnalyticsQuerySchema,jh as creditAnalyticsRangeSchema,kh as creditAnalyticsTimezoneSchema,L as creditDimensionSchema,M as creditMultiplierSchema,H as creditPriceAdjustmentSchema,N as creditPricingSchema,J as creditPropertiesSchema,G as creditQuantitySchema,O as creditRateSchema,Ob as creditResetCountSchema,Nb as creditResetSchema,I as creditResourceKeySchema,Pb as creditRolloverSchema,c as creditSchemaItemSchema,id as creditStatementInputSchema,jd as creditStatementSchema,i as creditSystemConfigSchema,K as creditTiersSchema,t as currencies,A as currencyAmountOptionsSchema,v as currencyDecimals,u as currencySchema,Ei as currentApiOperations,kd as currentNotificationEventTypeSchema,jg as customHtmlNodeSchema,ka as customerActivitySchema,Uh as customerAttributesSchema,Dl as customerAudienceSchema,Ef as customerDataConfigSchema,Hf as customerDataIntentSchema,hg as customerDataNodeSchema,_h as customerDataReferenceMessage,Zh as customerDataReferenced,Yh as customerDataSchema,Df as customerDataSourceSchema,Ci as customerEntitlementsSchema,fi as customerFiltersSchema,Vh as customerFingerprintSchema,Xl as customerFunnelDecisionsSchema,di as customerGetSchema,sd as customerHoldingsSchema,Wh as customerInputSchema,wd as customerLedgerEntrySchema,xd as customerLedgerPageSchema,vd as customerLedgerQuerySchema,bi as customerLookupSchema,ai as customerMutationSchema,Gf as customerPageDataSchema,Ff as customerPageNodeStateSchema,vl as customerPageSampleData,gi as customerPageSchema,ci as customerPatchSchema,ec as customerPlanCreateSchema,fc as customerPlanCreatedSchema,ja as customerPlanSchema,$h as customerProfileSchema,Xh as customerReferenceSchema,ij as customerScheduledChangeCancelSchema,gj as customerScheduledChangeSchema,hj as customerScheduledChangesSchema,Mc as customerSchema,Th as customerTagsSchema,ei as customerUpdateRequestSchema,Ni as defaultScreenTheme,cb as describeCoupon,_b as diffProductVariant,gg as dividerNodeSchema,If as emptyCustomerPageNode,Ne as entitlementCheckInputSchema,Oe as entitlementCheckReasonSchema,Qe as entitlementCheckResultSchema,Me as entitlementRequirementSchema,ga as entitlementSnapshotSchema,Bi as entitlementStatusSchema,X as environmentSchema,Cd as environmentSettingsSchema,oc as errorCodeMatchesStatus,uc as errorMetadata,qc as errorMetadataSchema,nc as errorPolicy,kc as errorReasonSchema,jc as errorRecoverySchema,rc as errorResponseSchema,Kf as escapeHtmlText,pa as evalCondition,sa as evalFeature,ri as evaluateFeaturesRequestSchema,ti as evaluateFeaturesResultSchema,Mk as executionSourceSchema,Da as experimentConfigurationSchema,Ca as experimentPhaseSchema,Ha as experimentSnapshotSchema,n as featureCollectionSchema,g as featureConfigOverrideSchema,k as featureDefinitionSchema,qi as featureDeliveryPayloadSchema,a as featureIdSchema,$ as featureInputSchema,f as featureMarkupsOverrideSchema,o as featureOptionsSchema,pi as featurePayloadSchema,m as featureRecordSchema,aa as featureSchema,Gm as featureTypes,Hm as featureUpdateBlockers,l as featureUpdateRulesSchema,od as featureUsageReadSchema,pd as featureUsageSetSchema,qd as featureUsageStateSchema,b as featureUsageTypeSchema,p as featureWriteSchema,Cg as fieldValue,Zf as fillSchema,rd as financialAmountSchema,ud as financialCursorSchema,td as financialEntryTypeSchema,Kg as findDocumentNode,Jg as findNode,hl as formatCouponConditions,Ta as formatCouponDiscount,Sa as formatCouponMoney,Ua as formatCouponTerms,y as formatCurrencyMinor,im as formatProductBillingPeriod,db as formatUsd,bk as funnelApiBindingSchema,_j as funnelApiProjectionSchema,Wj as funnelBundleDefinitionSchema,Xj as funnelBundleResultSchema,Rk as funnelCampaignCommandSchema,Sk as funnelCampaignStartResponseSchema,ck as funnelCapabilitySchema,Hk as funnelCollectionSchema,Dk as funnelCommandSchema,Uk as funnelConfigurationSchema,nk as funnelConsumedVariables,Pk as funnelCredentialCommandSchema,Qk as funnelCredentialResponseSchema,Ck as funnelDataQueriesSchema,Sj as funnelDecideShape,Tj as funnelDecisionCommandSchema,Qj as funnelDecisionOutputSchema,Uj as funnelDecisionResponseSchema,Rj as funnelDecisionSchema,Vj as funnelDecisionUsedResponseSchema,xk as funnelDocumentDraftSchema,zk as funnelDocumentSchema,pj as funnelEvaluationAttributes,Fk as funnelEvaluationModeSchema,Hj as funnelExecutionPolicySchema,tk as funnelExecutionStateSchema,ek as funnelExternalPageUrlSchema,Gj as funnelExternalTaskSchema,hk as funnelGraphDraftSchema,gk as funnelGraphNodeSchema,ik as funnelGraphSchema,jk as funnelGraphTargets,Nl as funnelGroupReferenceSchema,Lk as funnelInstructionSchema,rk as funnelNodeInputSchema,pk as funnelNodeKindSchema,sk as funnelNodeResultSchema,fk as funnelOpenInSchema,Mj as funnelOrchestrationCommandSchema,vj as funnelParametersFromUrl,Bk as funnelPresentationSubmissionSchema,Yk as funnelPreviewCommandSchema,$k as funnelPreviewDependencySchema,al as funnelPreviewJournalSchema,Zk as funnelPreviewOutcomeSchema,cl as funnelPreviewRequestSchema,dl as funnelPreviewResponseSchema,_k as funnelPreviewScenarioSchema,fl as funnelPreviewShareWriteSchema,el as funnelPreviewSnapshotSchema,bl as funnelPreviewSourceSchema,Yj as funnelProjectionFilterValueSchema,Zj as funnelProjectionWhereSchema,yk as funnelPublishableDraftSchema,Gk as funnelRecordSchema,qk as funnelResourceReferenceSchema,Ql as funnelResultsCursorSchema,Rl as funnelResultsQuerySchema,Pj as funnelResultsResponseSchema,Sl as funnelResultsSchema,Nk as funnelRunViewSchema,Ok as funnelRuntimeResponseSchema,Kk as funnelRuntimeStatusSchema,Nj as funnelSignalResponseSchema,gl as funnelStatisticsSchema,Fj as funnelTaskBindingSchema,Dj as funnelTaskDataSchema,Ej as funnelTaskOutputsSchema,Jj as funnelTaskResponseSchema,Oj as funnelTaskResultsSchema,cm as funnelTemplateDraft,am as funnelTemplateSchema,Vk as funnelTopology,Tk as funnelTopologySchema,uk as funnelTraceEventSchema,zj as funnelValueBindingSchema,wk as funnelValueDeclarationSchema,Ak as funnelValueMatches,yj as funnelValuePathSchema,oj as funnelValueSchema,ok as funnelWaitKindSchema,Ik as funnelWriteSchema,li as gbRuntimeExperimentResultSchema,ki as gbRuntimeExperimentSchema,mi as gbRuntimeFeatureRuleSchema,ni as gbRuntimeFeatureSchema,oi as gbRuntimeSavedGroupsSchema,la as getQueryStringOverride,Am as getRecommendedRolloutData,qa as getStickyBucketAttributes,sm as growthAttributeSchema,ua as growthAttributesSchema,um as growthCatalogSchema,xa as growthConditionGroupIds,rj as growthConditionPaths,va as growthConditionSchema,wm as growthDryRunSchema,xm as growthExperimentInspectionSchema,Fa as growthExperimentStop,Ga as growthFeatureExpiry,za as growthFeatureRuleSchema,Aa as growthFeatureSchema,Ba as growthFeaturesSchema,ym as growthGroupReferenceCursorSchema,zm as growthGroupReferencesSchema,wa as growthGroupSchema,tm as growthNamespaceSchema,vm as growthResourceWriteSchema,Ka as growthRuleContextSchema,ya as growthSavedGroupsSchema,Ia as growthSnapshotSchema,La as growthSplitResultSchema,Jf as htmlVariableErrors,Pf as identifierSchema,eg as imageNodeSchema,Yf as imagePositionSchema,Wf as insetsSchema,fd as invoiceDetailInputSchema,hd as invoiceDetailSchema,gd as invoiceProductItemSchema,he as invoiceRefundsSchema,pb as isInvoiceCreditPrice,rf as isProductGroup,em as isRecurringMembership,Lg as isRtlLocale,Bc as isStableSdkProtocol,na as isURLTargeted,nb as itemBillingCycleSchema,ta as jsonValueSchema,E as licenseOfferSchema,Ib as listBillingInvoicesInputSchema,Qa as localeLabel,Ma as localeSchema,Dg as localeStatuses,Ig as localizeScreen,zb as manageBillingLimitsInputSchema,yb as manageOveragePolicyInputSchema,hc as managementErrorCodeSchema,sc as managementErrorResponseSchema,Xf as marginSchema,Oa as matchLocale,qj as matchesGrowthCondition,T as membershipActionSchema,gm as membershipBillingCount,U as membershipChangeSchema,V as membershipHoldingSchema,R as membershipRulesSchema,W as membershipStateSchema,S as membershipTimingSchema,yl as mergeAuditSchema,_ as metadataSchema,h as meteredConfigSchema,x as minorToAmount,e as modelMarkupsSchema,Zl as nativeCompletionSchema,Id as nativeCouponStoreOfferLinkWriteSchema,Jd as nativeCouponStoreOfferLinksSchema,Rc as nativeProductBindingSchema,Tc as nativeProductBindingWriteSchema,Sc as nativeProductBindingsPageSchema,Yl as nativeProofSchema,Od as nativePurchaseInstructionSchema,_l as nativeReceiptCommandSchema,$l as nativeReceiptResponseSchema,Je as nativeRestoreCommandSchema,Ke as nativeRestoreResultSchema,Md as nativeStoreOfferForProduct,Kd as nativeStoreOfferSelectionSchema,Ld as nativeStoreOfferSelectionsSchema,Nd as nativeStoreSelectionMatches,$d as nativeSubscriptionUpdatePreviewSchema,ae as nativeSubscriptionUpdateResultSchema,Ri as newBlankSurface,ab as newCouponInput,ii as newEnvironmentAnalyticsConfig,Jk as newFunnelDocument,Pi as newScreenFromTemplate,Qi as newSurfaceFromTemplate,Of as nodeIdSchema,zl as objectAuditSchema,Tl as offerFlowInputSchema,Ul as offerFlowResultSchema,fb as offerSchema,gb as offerUnavailableReasonSchema,af as offeringAuthorSchema,ef as offeringCollectionSchema,$e as offeringDocumentSchema,Xe as offeringItemSchema,Ye as offeringItemsSchema,Te as offeringMetadataSchema,bf as offeringProductEvidenceSchema,Se as offeringProductIdSchema,Ze as offeringProductIds,jf as offeringProductOptionSchema,_e as offeringProductPaths,lf as offeringPublicationIssues,cf as offeringRecordSchema,hf as offeringSelectorSchema,mf as offeringValueSchema,df as offeringVersionSchema,kf as offeringWorkspaceSchema,gf as offeringWriteResultSchema,ff as offeringWriteSchema,Uc as overageBehaviorSchema,Ab as overagePolicySchema,vk as ownedFunnelScreenSchema,pm as pageExperimentEventSchema,qm as pageExperimentEventsRequestSchema,rm as pageExperimentEventsResponseSchema,om as pageExperimentPayloadSchema,nm as pageExperimentSchema,Uf as paintColorSchema,pc as parseRetryAfter,Ji as parseScreenRenderPath,se as paymentSetupCommandSchema,te as paymentSetupReadSchema,ve as paymentSetupSchema,Pe as paywallCandidateSchema,Pg as paywallClientActionSchema,Vg as paywallCollectionSchema,Qg as paywallDocumentDraftSchema,Rg as paywallDocumentSchema,Tg as paywallFlowIssues,Yg as paywallLibrarySchema,Sg as paywallProductIssues,pf as paywallProductsSchema,Ug as paywallRecordSchema,Re as paywallRequestSchema,_g as paywallResolutionSchema,Zg as paywallResolveInputSchema,Wg as paywallSummarySchema,Xg as paywallWriteSchema,da as planConfigSchema,ea as planInputSchema,ca as planItemSchema,ng as planPickerNodeSchema,fa as planSchema,ha as planVersionSchema,Jc as popupSchema,dc as prepaidAllowanceAmount,r as prepaidPriceAmount,s as prepaidQuantityAmount,Nc as prepaidQuantitySchema,q as prepaidTierPricingSchema,rb as prepareBillingAuthorizationInputSchema,jl as prepareCouponTemplate,oa as prepareSavedGroups,ub as preparedBillingAuthorizationSchema,vg as presentationSchema,kg as priceNodeSchema,ba as priceSchema,Sb as productAllowanceSchema,Oc as productBindingSchema,Qc as productBindingWriteSchema,Pc as productBindingsPageSchema,bc as productCollectionSchema,Vb as productConfigurationSchema,Yb as productDefinitionSchema,cc as productEditorOptionsSchema,of as productGroupingMatches,nf as productGroupingSchema,Ub as productLicenseSchema,Xi as productMigrationBlockReasonSchema,cj as productMigrationDetailSchema,Yi as productMigrationErrorCodeSchema,bj as productMigrationItemSchema,$i as productMigrationItemStatusSchema,dj as productMigrationListSchema,Zi as productMigrationPreviewSchema,fj as productMigrationQuerySchema,_i as productMigrationRunStatusSchema,aj as productMigrationSchema,ej as productMigrationWriteSchema,$b as productOptionsSchema,Rb as productPrepaidPriceSchema,Qb as productPricesSchema,ac as productRecordSchema,Ng as productSelectionSchema,Tb as productTrialSchema,Wb as productVariantOverridesSchema,Xb as productVariantSchema,$j as projectFunnelApiOutputs,Wk as projectFunnelConfiguration,Bd as projectSettingsSchema,$a as promotionCodeInputSchema,Ac as protocolForSdkVersion,d as providerMarkupsSchema,Eg as publishChecks,Be as purchaseListItemSchema,He as purchaseListPageSchema,Rf as radiusSchema,Aj as readFunnelValuePath,Ih as redeemRewardRequestSchema,Mh as referralCodeSchema,Oh as referralProgramCollectionSchema,Bh as referralProgramInputSchema,Dh as referralProgramRecordSchema,Gh as referralProgramWriteSchema,si as remoteFeatureResultSchema,yg as replaceFirstPageRoot,Il as resolveCouponDisplay,dk as resolveFunnelCapabilityInputs,Lj as resolveFunnelTaskInputs,Bj as resolveFunnelValueBinding,Cj as resolveFunnelValueBindings,Zb as resolveProductVariant,Hg as resolveScreenLocale,Fc as resolveSdkProtocol,yi as responseMetaSchema,wb as revokeBillingAuthorizationInputSchema,Qh as rewardActivityRedemptionSchema,Rh as rewardActivitySchema,Ah as rewardCodeInputSchema,Ph as rewardCodeSchema,Sh as rewardCodeWriteSchema,Nh as rewardCollectionSchema,xh as rewardConfigurationSchema,vh as rewardGrantExpirySchema,wh as rewardGrantSchema,zh as rewardInputSchema,yh as rewardKeySchema,Eh as rewardOptionSchema,Kh as rewardProductCheckoutSchema,Ch as rewardRecordSchema,Hh as rewardRedemptionSchema,uh as rewardStatusSchema,th as rewardTypeSchema,Fh as rewardWriteSchema,ra as runExperiment,hm as sameMembershipBillingCycle,mj as saveSurfaceTemplateSchema,Y as scopeSchema,rg as screenActionSchema,tj as screenAnswersSchema,sj as screenDataCursorSchema,zg as screenDocumentSchema,Sf as screenImageSourceSchema,wj as screenInputBindingsSchema,qg as screenNodeSchema,uj as screenParametersSchema,Og as screenPresentationSchema,sf as screenProductScopes,tf as screenProductSelections,Ii as screenRenderPath,Gi as screenRenderPathSchema,Ki as screenRenderTags,Hi as screenRenderUrlSchema,xj as screenRendererInputSchema,Mg as screenSelections,sg as screenStringsSchema,zc as sdkProtocolRegistry,Gc as sdkProtocolResponseHeaders,zd as seatCommandSchema,yd as seatReadSchema,Ad as seatsStateSchema,lk as selectFunnelCondition,qf as selectedPaywallProduct,Bf as selectedSurfaceValue,Gg as servableLocales,Lb as setBillingCouponsInputSchema,ag as shadowSchema,_f as shapeSchema,Vf as sizeSchema,Qf as spaceSchema,ig as spacerNodeSchema,Z as stableKeySchema,og as stackInteractionSchema,pg as stackNodeSchema,Ja as stickyAssignmentDocumentSchema,Sd as stripeAppendContextSchema,Rd as stripeCouponTermsSchema,Td as stripePurchaseExecutionSchema,ee as stripeRefundExecutionSchema,ue as stripeSetupExecutionSchema,Yd as stripeSubscriptionUpdateExecutionSchema,Zd as stripeSubscriptionUpdatePreviewSchema,_d as stripeSubscriptionUpdateResultSchema,pe as stripeTrialExecutionSchema,cg as styleSchema,Pd as subscriptionAttachCommandSchema,Ud as subscriptionAttachQuoteSchema,je as subscriptionBatchCommandSchema,le as subscriptionBatchGroupSchema,ke as subscriptionBatchReadSchema,me as subscriptionBatchSchema,Wd as subscriptionCarryOptionsSchema,Ie as subscriptionConflictPageSchema,De as subscriptionConflictQuerySchema,Fe as subscriptionConflictRetryResultSchema,Ee as subscriptionConflictRetrySchema,Ce as subscriptionConflictSchema,Kb as subscriptionCouponExecutionSchema,Ae as subscriptionListItemSchema,Ge as subscriptionListPageSchema,Qd as subscriptionOperationInputSchema,Vd as subscriptionOperationSchema,de as subscriptionRefundCommandSchema,fe as subscriptionRefundPreviewSchema,ge as subscriptionRefundResultSchema,ne as subscriptionTrialCommandSchema,re as subscriptionTrialPolicySchema,oe as subscriptionTrialReadSchema,qe as subscriptionTrialResultSchema,Xd as subscriptionUpdateCommandSchema,be as subscriptionUpdatePreviewSchema,ce as subscriptionUpdateResultSchema,we as subscriptionVerificationInputSchema,xe as subscriptionVerificationSchema,Lf as substituteHtmlVariables,Af as substituteSurfaceVariables,xf as surfaceDataSchema,tg as surfaceSchema,lj as surfaceTemplateSchema,wf as surfaceValueSchema,yf as surfaceVariableNames,Fg as templateChecks,bm as templateScreen,dg as textNodeSchema,bg as textStyleSchema,Tf as themeSchema,ma as toAttributeString,ui as trackEventsRequestSchema,vi as trackEventsResultSchema,mk as transitionFunnelGraph,Bg as translatableFields,P as trialPolicySchema,Q as trialRecordSchema,zf as unknownSurfaceVariables,md as usageAlertNotificationDataSchema,nd as usageAllowanceNotificationDataSchema,ph as usageAnalyticsPageSchema,oh as usageAnalyticsQuerySchema,sh as usageBatchPageSchema,rh as usageBatchReadSchema,qh as usageBatchSubmitSchema,ch as usageEntityCommandSchema,dh as usageEntitySchema,ld as usageLimitNotificationDataSchema,kk as validateFunnelGraph,Kj as validateFunnelTaskData,Ek as validateScreenAnswers,Dc as validateSdkProtocolRegistry,ia as validitySchema,xi as verifiedPrincipalSchema,Mm as visualChangeSchema,Pm as visualExperimentPayloadSchema,Om as visualExperimentSchema,Lm as visualMutationSchema,Rm as visualSelectedElementSchema,Nm as visualVariationSchema,xg as walkDocument,Ag as walkScreen,Dd as workspaceSettingsSchema};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as y,c as w}from"./chunk-ZT523F45.js";function f(r){return CSS.escape(r)}function b(r){for(let t of["id","data-indiana-id","data-testid"]){let s=r.getAttribute(t);if(!s)continue;let a=t==="id"?`#${f(s)}`:`[${t}="${f(s)}"]`;if(document.querySelectorAll(a).length===1)return a}let c=[];for(let t=r;t&&t!==document.documentElement;t=t.parentElement){let s=t.tagName.toLowerCase(),a=[...t.classList].filter(o=>o.length<80).slice(0,3);a.length&&(s+=a.map(o=>`.${f(o)}`).join(""));let m=t.parentElement?[...t.parentElement.children].filter(o=>o.tagName===t.tagName):[];m.length>1&&(s+=`:nth-of-type(${m.indexOf(t)+1})`),c.unshift(s);let d=c.join(" > ");if(document.querySelectorAll(d).length===1)return d}return c.join(" > ")}function k(r,c={}){let t=window.opener;if(!t||r.expiresAt<=Date.now())return()=>{};let s=!1,a=!1,m=!1,d,o=document.createElement("div");o.setAttribute("data-indiana-editor-highlight",""),o.style.cssText="position:fixed;pointer-events:none;z-index:2147483647;outline:2px solid #6655ee;background:rgba(102,85,238,.1);display:none",document.body.append(o);function l(n,e={}){t.postMessage({channel:"indiana-visual",nonce:r.nonce,type:n,...e},r.origin)}let g=n=>n.composedPath().find(e=>e instanceof Element&&e!==o),h=n=>{if(!a)return;let e=g(n);if(!e)return;let i=e.getBoundingClientRect();Object.assign(o.style,{display:"block",left:`${i.left}px`,top:`${i.top}px`,width:`${i.width}px`,height:`${i.height}px`})},v=n=>{if(!a)return;let e=g(n);if(!e)return;n.preventDefault(),n.stopImmediatePropagation(),a=!1,o.style.display="none";let i=b(e),u={selector:i,tag:e.tagName.toLowerCase(),text:(e.textContent??"").slice(0,1e3),href:e.getAttribute("href")??"",src:e.getAttribute("src")??"",matches:document.querySelectorAll(i).length};l("selected",{element:u})};function p(){m||(m=!0,d?.revert(),o.remove(),clearInterval(x),removeEventListener("message",E),removeEventListener("mousemove",h,!0),removeEventListener("click",v,!0),removeEventListener("pagehide",p))}function E(n){if(n.source!==t||n.origin!==r.origin||!n.data||n.data.channel!=="indiana-visual"||n.data.nonce!==r.nonce||r.expiresAt<=Date.now())return;let e=n.data;if(e.type==="connect"&&(s=!0,l("connected")),!!s){if(e.type==="disconnect"){p();return}if(e.type==="pick"&&(a=!0),e.type==="preview")try{let i=y(e.value);d?.revert(),d=w(i,{allowJs:c.allowJs===!0&&e.allowJs,nonce:c.nonce,onError:u=>l("error",{message:String(u)})}),l("previewed",{matches:i.domMutations.map(u=>({selector:u.selector,count:document.querySelectorAll(u.selector).length}))})}catch(i){l("error",{message:String(i)})}}}addEventListener("message",E),addEventListener("mousemove",h,!0),addEventListener("click",v,!0),addEventListener("pagehide",p);let x=setInterval(()=>{if(t.closed||r.expiresAt<=Date.now()){p();return}s||l("ready")},500);return l("ready"),p}export{k as startVisualEditorAgent,b as visualElementSelector};
|
|
File without changes
|