PageSourceSearch

https://rekonise.com/chunk-CZJNJD4A.js

js rekonise.com collected 2026-10-01 11:50:13 UTC 10,066 bytes, 1 lines download raw bytes

1import{a as ae}from"./chunk-7SNXKA4S.js";import{b as oe}from"./chunk-JL32X63V.js";import"./chunk-2OB2UJD5.js";import"./chunk-VFCQPNSU.js";import"./chunk-M6EONT6G.js";import{a as j}from"./chunk-WGHYPPVN.js";import{a as ne}from"./chunk-GAN7RDKY.js";import"./chunk-2ZPDRQZM.js";import{a as te}from"./chunk-UAQCXPRU.js";import"./chunk-SD3VOF7Q.js";import"./chunk-BZGVTZTX.js";import{b as Q,c as Z}from"./chunk-GXPWKOGD.js";import"./chunk-7V6F2WZN.js";import"./chunk-S7VXHWAW.js";import"./chunk-I4JZRJUG.js";import"./chunk-5CH6MUXM.js";import"./chunk-SYYTKOT6.js";import"./chunk-76G25NHC.js";import"./chunk-VO2GOVB3.js";import{a as ie}from"./chunk-5XJN6G4E.js";import{a as re}from"./chunk-UAJ3LDZG.js";import{a as O,b as W,h as X,i as J}from"./chunk-ETTGII3S.js";import{b as D,d as g,f as q,g as B,m as K,p as Y,v as $,y as H}from"./chunk-EFFKYZ4R.js";import"./chunk-S3OUMWH4.js";import{b as z}from"./chunk-YABJUEQ6.js";import"./chunk-TQGNAWKW.js";import{a as ee}from"./chunk-IQ4DJ3PK.js";import"./chunk-N2DDWHMI.js";import{a as V}from"./chunk-RDCV7OYL.js";import"./chunk-3DJX6TII.js";import{g as G,h as F,m as I}from"./chunk-QRHPXOKA.js";import"./chunk-HKSRDAI3.js";import{a as U}from"./chunk-BR7SVKEQ.js";import"./chunk-WLTVU3TA.js";import"./chunk-FBPQG6MS.js";import"./chunk-HYC3WGKD.js";import"./chunk-2PPFUFFT.js";import{a as R,b as N}from"./chunk-7OXH5EWV.js";import"./chunk-FTXGPRFJ.js";import"./chunk-BRRFPLOY.js";import"./chunk-HGFVTFKX.js";import{Ac as A,Ad as T,Ib as c,Ka as S,Pb as x,Qa as E,Ub as i,Vb as t,Wb as p,_b as _,bb as L,bc as h,dc as m,ea as s,gb as l,na as d,oa as u,pa as y,qa as w,qc as n,rc as v,sb as M,sc as k,yb as f,yd as P}from"./chunk-EL2YAQZX.js";import{f as C}from"./chunk-EQDQRRRY.js";var le=()=>({returnUrl:"/dashboard/links/create"});function se(a,b){if(a&1){let e=_();i(0,"div",5)(1,"h1",6),n(2," Your link is live "),t(),i(3,"p",7),n(4," Share it anywhere. Visitors complete the actions and get your destination. "),t()(),i(5,"app-card",8)(6,"span",9),n(7,"Your link"),t(),i(8,"div",10)(9,"a",11),n(10),t(),i(11,"button",12),h("click",function(){d(e);let o=m();return u(o.copyLink())}),i(12,"mat-icon",13),n(13),t(),n(14),t()()(),i(15,"app-card")(16,"div",14)(17,"mat-icon",15),n(18,"insights"),t(),i(19,"div",16)(20,"p",17),n(21,"Keep this link and see how it performs"),t(),i(22,"p",18),n(23," Create a free account and this link is added to it automatically: views, unlocks, editing, and everything you make next. You have 30 days to do this from this browser. "),t(),i(24,"div",19)(25,"button",20),h("click",function(){d(e);let o=m();return u(o.signUpToKeep())}),n(26," Sign up and keep it "),t(),i(27,"button",21),h("click",function(){d(e);let o=m();return u(o.startAnother())}),n(28," Make another "),t()()()()()}if(a&2){let e=m();l(9),c("href",e.createdUrl,L),l(),v(e.createdUrl),l(3),v(e.copied?"check":"content_copy"),l(),k(" ",e.copied?"Copied":"Copy"," ")}}function me(a,b){a&1&&(i(0,"mat-error"),n(1,"Enter a valid URL (must include https://)"),t())}function ce(a,b){if(a&1&&(i(0,"p",31),n(1),t()),a&2){let e=m(2);l(),v(e.error)}}function pe(a,b){if(a&1){let e=_();i(0,"div",5)(1,"h1",6),n(2," Build your first link "),t(),i(3,"p",7),n(4," Add a destination and pick what visitors do to unlock it. It goes live right away, no account needed. "),t()(),i(5,"div",22)(6,"app-card")(7,"mat-form-field",23)(8,"mat-label"),n(9,"Link title"),t(),p(10,"input",24),t(),i(11,"mat-form-field",23)(12,"mat-label"),n(13,"Destination URL"),t(),p(14,"input",25),f(15,me,2,0,"mat-error"),t()(),i(16,"app-card")(17,"div",26)(18,"mat-icon",27),n(19,"handshake"),t(),i(20,"span",28),n(21,"Actions"),t()(),i(22,"p",29),n(23," Pick one or more steps your audience must complete to unlock the destination. "),t(),p(24,"app-actions-form",30),t(),f(25,ce,2,1,"p",31),i(26,"div",32)(27,"button",33),h("click",function(){d(e);let o=m();return u(o.onSave())}),n(28),y(),i(29,"svg",34),p(30,"path",35),t()(),w(),i(31,"p",36),n(32," Already have an account? "),i(33,"a",37),n(34,"Log in"),t(),n(35," to create from your dashboard. "),t()()()}if(a&2){let e,r=m();l(5),c("formGroup",r.formGroup),l(10),x((e=r.formGroup.get("url"))!=null&&e.hasError("pattern")&&((e=r.formGroup.get("url"))!=null&&e.touched)?15:-1),l(9),c("formGroup",r.formGroup)("predefinedActions",r.restoredActions)("isAuth",!1),l(),x(r.error?25:-1),l(2),c("disabled",!r.canSave||r.saving),l(),k(" ",r.saving?"Publishing...":"Publish link"," "),l(5),c("queryParams",A(9,le))}}var ze=(()=>{class a{constructor(){this.fb=s($),this.router=s(G),this.pendingLink=s(ae),this.socialUnlocks=s(V),this.events=s(ee),this.title=s(re),this.platformId=s(S),this.formGroup=this.fb.group({title:["",g.required],url:["",[g.required,g.pattern(te.URL_REGEXP)]],actions:this.fb.array([])}),this.restoredActions=[],this.saving=!1,this.error=null,this.created=null,this.copied=!1,this.title.set("Create a link");let e=this.pendingLink.get();e&&(this.formGroup.patchValue({title:e.title,url:e.url}),this.restoredActions=e.actions),E(()=>{this.events.publicCreateViewedEvent({restored:!!e})})}get actionsForm(){return this.formGroup.get("actions")}get canSave(){return this.formGroup.invalid?!1:this.validActions().length>0}get createdUrl(){return this.created?`${U.url}/${this.created.slug}`:""}onSave(){if(!this.canSave||this.saving){this.formGroup.markAllAsTouched();return}let e=this.validActions();this.events.publicCreateSubmittedEvent({action_count:e.length}),this.publishNow(e)}signUpToKeep(){this.events.anonymousLinkSignupClickedEvent(),this.router.navigate(["/register"],{queryParams:{returnUrl:"/dashboard",afterRegister:"claim-links"}})}startAnother(){this.created=null,this.copied=!1,this.error=null,this.restoredActions=[],this.formGroup.reset({t
1itle:"",url:""}),this.actionsForm.clear()}copyLink(){return C(this,null,function*(){try{yield navigator.clipboard.writeText(this.createdUrl),this.copied=!0,setTimeout(()=>this.copied=!1,2e3)}catch{}})}publishNow(e){let r=this.formGroup.value;this.saving=!0,this.error=null,this.socialUnlocks.create({type:z.LINK,title:r.title,url:r.url,actions:e}).subscribe({next:o=>{this.saving=!1,this.created=o,this.pendingLink.clear(),o.claim_token&&o.claim_expires_at&&this.pendingLink.addClaim({slug:o.slug,title:o.title,token:o.claim_token,expiresAt:o.claim_expires_at}),this.events.anonymousLinkCreatedEvent({action_count:e.length}),T(this.platformId)&&window.scrollTo({top:0})},error:o=>{this.saving=!1,this.error=o?.error?.message||"We couldn't create the link right now. Check the URL and try again."}})}validActions(){return this.actionsForm.controls.filter(e=>e.value?.type&&e.value?.value).map(e=>({type:e.value.type,value:e.value.value,name:e.value.name}))}static{this.\u0275fac=function(r){return new(r||a)}}static{this.\u0275cmp=M({type:a,selectors:[["app-public-create-link"]],decls:7,vars:3,consts:[[1,"relative","overflow-hidden","min-h-[100dvh]"],[3,"travelPx","sizeMultiplier"],[1,"absolute","inset-0","-z-10","bg-gradient-to-b","from-transparent","via-background/50","via-50%","to-background"],[1,"relative","z-10"],[1,"relative","z-10","max-w-2xl","mx-auto","px-6","pt-8","pb-24"],[1,"mb-8"],[1,"text-3xl","sm:text-4xl","font-extrabold","text-white","tracking-tight","leading-tight"],[1,"mt-3","text-zinc-400"],[1,"mb-4"],[1,"uppercase","text-xs","font-semibold","tracking-wider","text-zinc-500"],[1,"mt-2","flex","flex-col","sm:flex-row","sm:items-center","gap-3"],["target","_blank","rel","noopener",1,"flex-1","min-w-0","truncate","font-mono","text-sm","text-white","bg-white/5","border","border-white/10","rounded-lg","px-3","py-2.5","hover:border-primary/60",3,"href"],["type","button",1,"inline-flex","items-center","justify-center","gap-2","px-4","py-2.5","rounded-lg","bg-white/10","text-white","text-sm","font-medium","hover:bg-white/15",3,"click"],[1,"!text-[18px]","!w-[18px]","!h-[18px]"],[1,"flex","items-start","gap-3"],[1,"text-primary","mt-0.5"],[1,"flex-1"],[1,"text-white","font-semibold"],[1,"mt-1","text-sm","text-zinc-400"],[1,"mt-4","flex","flex-wrap","gap-3"],["type","button",1,"inline-flex","items-center","justify-center","gap-2","px-6","py-3","rounded-full","bg-primary","text-[#0a0a0a]","text-sm","font-medium","transition-all","duration-300","hover:bg-[#0ed06f]",3,"click"],["type","button",1,"inline-flex","items-center","justify-center","gap-2","px-6","py-3","rounded-full","bg-white/10","text-white","text-sm","font-medium","hover:bg-white/15",3,"click"],[1,"flex","flex-col","gap-4",3,"formGroup"],["appearance","outline",1,"w-full"],["matInput","","formControlName","title","placeholder","e.g. Free script pack","autocomplete","off"],["matInput","","formControlName","url","placeholder","https://...","autocomplete","off"],[1,"flex","items-center","gap-2","mb-3"],[1,"text-zinc-300"],[1,"uppercase","text-sm","font-semibold","tracking-wider","text-zinc-300"],[1,"text-sm","text-zinc-500","mb-4"],[3,"formGroup","predefinedActions","isAuth"],[1,"text-sm","text-red-400"],[1,"mt-2"],["type","button",1,"inline-flex","items-center","justify-center","gap-2.5","px-8","py-4","rounded-full","bg-primary","text-[#0a0a0a]","text-base","font-medium","transition-all","duration-300","hover:bg-[#0ed06f]","hover:shadow-[0_10px_30px_-8px_rgba(0,197,100,0.55)]","hover:-translate-y-0.5","disabled:opacity-40","disabled:cursor-not-allowed","disabled:hover:translate-y-0","disabled:hover:shadow-none","disabled:hover:bg-primary",3,"click","disabled"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2.25","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"w-4","h-4"],["d","M5 12h14M13 5l7 7-7 7"],[1,"mt-3","text-xs","text-zinc-500"],["routerLink","/login",1,"text-zinc-300","underline",3,"queryParams"]],template:function(r,o){r&1&&(i(0,"div",0),p(1,"app-floating-icons-bg",1)(2,"div",2)(3,"app-toolbar",3),i(4,"div",4),f(5,se,29,4)(6,pe,36,10),t()()),r&2&&(l(),c("travelPx",1e3)("sizeMultiplier",1.3),l(4),x(o.created?5:6))},dependencies:[P,H,D,q,B,K,Y,I,F,J,X,O,W,Z,Q,N,R,ne,j,ie,oe],encapsulation:2})}}return a})();export{ze as PublicCreateLinkComponent};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.