PageSourceSearch

https://kiin.ai/_next/static/chunks/7668-868efec157a6e63f.js

js kiin.ai collected 2026-10-05 12:09:13 UTC 20,988 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="302ce08f-c4fe-4472-9409-3f30a32d7965",e._sentryDebugIdIdentifier="sentry-dbid-302ce08f-c4fe-4472-9409-3f30a32d7965")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7668],{10301:function(e,l,t){t.d(l,{Z:function(){return i}});var s=t(48282);t(18529);var a=t(27879),n=t(99744),r=t(76924);function i(e){var l,t;let{plan:i,className:c}=e,{t:d}=(0,r.Z)("payment"),{currencySymbol:o}=(0,a.U)(),u={weekly:{key:"weekly-rebill",defaultDays:7},monthly:{key:"monthly-rebill",defaultDays:30},annually:{key:"annually-rebill",defaultDays:365}},{key:m,defaultDays:x}=null!==(l=u[null==i?void 0:i.billing_frequency])&&void 0!==l?l:u.monthly;return(0,s.jsx)("p",{className:(0,n.Z)("text-sm text-neutral-500",c),children:d(m,{currencySymbol:o,days:(null==i?void 0:i.trial_duration)&&(null==i?void 0:i.trial_duration)>0?i.trial_duration:x,displayPrice:((null!==(t=i.price)&&void 0!==t?t:90)/100).toFixed(2)},{returnObjects:!0})})}},37668:function(e,l,t){t.d(l,{Z:function(){return ed}});var s=t(48282),a=t(18529),n=t(99602),r=t(31629),i=t(14119),c=t(10301),d=t(52004),o=t(56301),u=t(27844),m=t(90227),x=t(76924);let p=[{height:16},{height:32},{height:20},{height:48},{height:28},{height:40},{height:16}],f=[{letter:"J",color:"#f59e0b"},{letter:"M",color:"#10b981"},{letter:"A",color:"#ec4899"},{letter:"R",color:"#3b82f6"}];var h=e=>{let{flowData:l,selectedPlanId:t}=e,{t:a}=(0,x.Z)("payment"),n=(0,m.useRouter)();return(0,s.jsxs)("div",{className:"flex h-full flex-col gap-4",children:[(0,s.jsx)("div",{className:"max-h-48 overflow-y-auto rounded-xl border border-neutral-200 bg-white p-4 text-center text-sm text-neutral-600",children:(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:l}})}),(0,s.jsxs)("div",{className:"flex flex-col items-center gap-5 rounded-xl border bg-neutral-50 px-6 pb-8 pt-5",style:{borderColor:"#5F54FF",boxShadow:"0 0 0 4px #E6E4FF"},children:[(0,s.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 rounded-full border border-success-200 bg-success-50 px-3 py-1",children:[(0,s.jsx)(o.Z,{size:14,className:"text-success-700"}),(0,s.jsx)("span",{className:"text-xs font-bold text-success-700",children:a("plans.unlock-modal-lyric-writer.lyrics-ready",null,{default:"Your lyrics are ready"})})]}),(0,s.jsxs)("div",{className:"flex flex-col items-center gap-1 text-center",children:[(0,s.jsx)("p",{className:"text-lg font-bold text-neutral-900",children:a("plans.unlock-modal-lyric-writer.hook-title",null,{default:"Hear Your Lyrics Come Alive"})}),(0,s.jsx)("p",{className:"text-xs text-neutral-500",children:a("plans.unlock-modal-lyric-writer.hook-subtitle",null,{default:"Unlock fully produced, studio-quality track alongside your lyrics for the same price - vocals, beat & melody."})})]}),(0,s.jsx)("div",{className:"flex items-end justify-center gap-1.5",children:p.map((e,l)=>(0,s.jsx)("div",{className:"w-1.5 rounded-full",style:{height:e.height,backgroundColor:"#8b5cf6"}},l))})]}),t?(0,s.jsxs)("button",{type:"button",onClick:e=>{t&&(e.preventDefault(),d.d.getState().setPendingMusic(),n.push("/payment?planId=".concat(t,"&source=hook")))},className:"flex w-full items-center justify-center gap-2 rounded-xl bg-neutral-800 px-6 py-2.5 font-sans text-lg font-black text-neutral-50",children:[(0,s.jsx)(u.Z,{size:18}),a("plans.unlock-modal-lyric-writer.hook-cta",null,{default:"Get lyrics + full song"})]}):(0,s.jsxs)("button",{className:"flex w-full cursor-not-allowed items-center justify-center gap-2 rounded-xl bg-neutral-800 px-6 py-2.5 font-sans text-lg font-black text-neutral-50 opacity-50",type:"button",disabled:!0,children:[(0,s.jsx)(u.Z,{size:18}),a("plans.unlock-modal-lyric-writer.hook-cta",null,{default:"Get lyrics + full song"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"flex items-center",children:f.map((e,l)=>(0,s.jsx)("div",{className:"-ml-1.5 flex size-6 items-center justify-center rounded-xl border-2 border-white text-xs font-bold text-white shadow-sm first:ml-0",style:{backgroundColor:e.color},children:e.letter},l))}),(0,s.jsx)("p",{className:"text-xs font-semibold text-neutral-800",children:a("plans.unlock-modal-lyric-writer.s
1ocial-proof",null,{default:"14,203 songs generated this week"})})]})]})]})},g=t(76145),y=t(66700),v=t(30787),j=t(99744),w=t(32284),b=t.n(w),N=t(74314);function k(e){let{selectedPlan:l}=e;return l.slug?(0,s.jsx)(N.Z,{planSlug:l.slug,trialDuration:l.trial_duration,displayPrice:l.displayPrice,showNumbers:!0}):null}function P(e){return(0,s.jsxs)("div",{className:"flex items-center justify-between space-x-1 rounded-md bg-white p-2 shadow-sm md:space-x-2 md:px-4 md:py-2",children:[(0,s.jsx)(b(),{src:"/static/flow/ai-detector/".concat(e.icon,".svg"),loading:"lazy",width:24,height:24,alt:"".concat(e.name," icon")}),(0,s.jsx)("span",{className:"py-1 text-xs font-medium text-neutral-900 md:text-base",children:e.name}),(0,s.jsx)(b(),{src:"/static/wysiwyg-editor/check-circle-green.svg",className:"py-1",alt:"check",width:16,height:16})]})}function _(e){let{commercialAiDetectors:l}=e,t=[];for(let e=0;e<l.length;e+=2)t.push(l.slice(e,e+2));return(0,s.jsx)("div",{className:"space-y-4",children:t.map((e,l)=>(0,s.jsx)("div",{className:"flex flex-row justify-center gap-x-2 md:gap-x-3",children:e.map(e=>(0,s.jsx)(P,{name:e.name,icon:e.icon},e.name))},l))})}var Z=()=>{let{t:e}=(0,x.Z)("payment");return(0,s.jsxs)("div",{className:"h-64 w-full rounded-lg bg-cover bg-center md:h-80",style:{backgroundImage:"\n      				linear-gradient(rgba(128,128,128,0.5), rgba(128,128,128,0.5)),\n      				url('/static/flow/text-humanizer/blurred-preview-first-part.svg')\n    			"},children:[(0,s.jsx)("span",{className:"block w-full py-4 text-center text-xl font-bold text-white md:py-6",children:e("plans.unlock-modal.text")}),(0,s.jsx)(_,{commercialAiDetectors:[{name:"GPTZero",icon:"gpt-zero"},{name:"ZeroGPT",icon:"zero-gpt"},{name:"Copyleaks",icon:"copyleaks"},{name:"Originality AI",icon:"originality-ai"},{name:"Winston AI",icon:"winston-ai"}]})]})},D=t(42977),C=t(45014),z=t.n(C);let S=new Set(["image-generator","video-generator"]),I=new Set(["logo-generator","background-remover"]),F=e=>{let{className:l}=e;return(0,s.jsx)("div",{className:(0,j.W)("flex items-center justify-center",l),children:(0,s.jsx)(g.Z,{})})},L=e=>{let{preview:l,planId:t}=e,{t:a}=(0,x.Z)("payment"),n=(0,s.jsxs)("div",{className:"mt-3 flex items-center justify-between gap-3",children:[(0,s.jsx)("span",{className:"text-xs font-bold text-neutral-600",children:a("plans.unlock-modal-video-generator.file-caption")}),(0,s.jsx)("span",{className:"rounded-md bg-neutral-100 px-2.5 py-1 text-xs font-bold text-neutral-500",children:a("plans.unlock-modal-video-generator.hd-badge")})]});return(0,s.jsxs)("div",{className:"w-full self-center",children:[t?(0,s.jsx)(z(),{href:"/payment?planId=".concat(t,"&type=video"),className:"block w-full",children:l}):l,n]})},E=e=>{let{slug:l,flowData:t,planId:a}=e;if(!t)return(0,s.jsx)(F,{className:"w-full"});let n=(0,s.jsxs)("div",{className:(0,j.W)("relative w-full overflow-hidden rounded-xl","video-generator"===l?"aspect-video":"min-h-[300px]"),children:[(0,s.jsx)(b(),{className:"pointer-events-none select-none object-cover",src:"data:image/png;base64,".concat(t),alt:"Preview",loading:"eager",fill:!0,sizes:"50vw"}),"video-generator"===l&&(0,s.jsx)("span",{className:"pointer-events-none absolute inset-0 flex items-center justify-center md:hidden",children:(0,s.jsx)("span",{className:"flex size-14 items-center justify-center rounded-full bg-neutral-800/90",children:(0,s.jsx)(D.Z,{className:"ml-1 size-6 fill-white text-white"})})})]});return"video-generator"===l?(0,s.jsx)(L,{preview:n,planId:a}):n},W=e=>{let{flowData:l}=e;return l?(0,s.jsx)("div",{className:"flex items-center justify-center",children:(0,s.jsx)(b(),{className:"pointer-events-none max-h-[300px] max-w-full select-none rounded-xl border border-neutral-200 object-cover shadow-sm",src:"data:image/png;base64,".concat(l),alt:"Preview",loading:"eager",width:700,height:700,sizes:"100vw",style:{width:"full",height:"full"}})}):(0,s.jsx)(F,{})},G=e=>{let{slug:l,flowData:t,selectedPlan:a}=e;return"text-humanizer"===l?(0,s.jsx)(Z,{}):"writing-assistant"===l?(0,s.jsx)(k,{selectedPlan:a}):"lyric-writer"===l?t?(0,s.jsx)(h,{flowData:t}):(0,s.jsx)(F,{}):l&&S.has(l)?(0,s.jsx)(E,{slug:l,flowData:t,planId:a.id}):l&&I.has(l)?(0,s.jsx)(W,{flowData:t}):(0,s.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,s.jsx)(b(),{src:"/static/logo.svg",alt:"logo",width:300,height:300})})};var A=t(18695),T=t(43116),O=t(79482);let M=[{key:"academic",defaultTitle:"Academic tools",defaultDescription:"Like Essay Writer, Report Writer, AI Detector, Researcher, Essay Grader..."},{key:"business",defaultTitle:"Business tools",defaultDescription:"Like Logo Generator, Presentation Generator, Business Plan Generator..."},{key:"lifestyle",defaultTitle:"Lifestyle tools",defaultDescription:"Like Lyric Writer, Image Generator, Email Responder, Complaint Letter..."},{key:"customize",defaultTitle:null,defaultDescription:"Customize all generated content to suit your style and needs."}],U={annually:{key:"annually-rebill",defaultDays:365},monthly:{key:"monthly-rebill",defaultDays:30},weekly:{key:"weekly-rebill",defaultDays:7}};function B(e){var l,t,a,n;let{selectedPlan:r,onChangePlan:c,showDirectPaymentFlow:d,currentFormId:o,setSelectedPlan:u}=e,{t:m}=(0,x.Z)("payment"),{key:p,defaultDays:f}=null!==(t=U[null!==(l=r.billing_frequency)&&void 0!==l?l:"monthly"])&&void 0!==t?t:U.monthly,h=r.id?m(p,{days:r.trial_duration&&r.trial_duration>0?r.trial_duration:f,displayPrice:null!==(a=r.displayPrice)&&void 0!==a?a:"",currencySymbol:""}):null;return(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex size-[42px] shrink-0 items-center justify-center rounded-lg border p-1.5",style:{backgroundColor:"#FFE0E2",borderColor:"#FD747C"},children:(0,s.jsx)(b(),{src:"/static/icons/multicolor-song.svg",alt:"Lyric Writer",width:28,height:28})}),(0,s.jsx)("h2",{className:"text-[26px] font-extrabold tracking-tight text-neutral-900 md:text-[30px]",children:m("plans.unlock-modal-lyric-writer.title",null,{default:"Unlock your Lyrics & Song"})})]}),d?(0,s.jsx)(i.D,{selectedPlan:r,setSelectedPlan:u,currentFormId:o}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(T.Z,{selectedPlan:r,onChangePlan:c,planClassName:"drop-shadow"}),(0,s.jsxs)(A.K,{href:r.id?"/payment?planId=".concat(r.id,"&source=continue"):void 0,className:(0,j.W)("w-full gap-3",{"pointer-events-none cursor-not-allowed opacity-50":!r.id}),children:[null!==(n=m("plans.unlock-modal-lyric-writer.cta",null,{default:null}))&&void 0!==n?n:m("plans.cta",null,{default:"Continue"}),(0,s.jsx)(O.LZ3,{className:"scale-150"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"h-px flex-1 bg-neutral-200"}),(0,s.jsx)("p",{className:"shrink-0 text-sm text-neutral-500",children:m("plans.unlock-modal-lyric-writer.includes-title",null,{default:"Your plan includes"})}),(0,s.jsx)("div",{className:"h-px flex-1 bg-neutral-200"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[M.map(e=>(0,s.jsxs)("div",{className:"flex items-start gap-2",children:[(0,s.jsx)(O.nQG,{className:"mt-0.5 size-5 shrink-0 text-primary-500"}),(0,s.jsxs)("div",{children:[e.defaultTitle&&(0,s.jsxs)("span",{className:"font-bold text-neutral-900",children:[m("plans.unlock-modal-lyric-writer.includes.".concat(e.key,".title"),null,{default:e.defaultTitle})," "]}),(0,s.jsx)("span",{className:"text-sm text-neutral-700",children:m("plans.unlock-modal-lyric-writer.includes.".concat(e.key,".description"),null,{default:e.defaultDescription})})]})]},e.key)),h?(0,s.jsxs)("div",{className:"flex items-start gap-2",children:[(0,s.jsx)(O.nQG,{className:"mt-0.5 size-5 shrink-0 text-primary-500"}),(0,s.jsx)("span",{className:"text-sm text-neutral-700",children:h})]}):null]})]})]})]})}var q=t(85447),R=t(47798),Q=t(22056),J=t(53105),K=t(80278),Y=t(27879),H=t(16515);function V(e){var l;let{selectedPlan:t,onChangePlan:n,wordingsKey:r,layout:i="stacked"}=e,{t:c,lang:d}
1=(0,x.Z)("payment"),o=c("plan:plans",{},{returnObjects:!0}),{currency:u}=(0,Y.U)(),{currentFormId:m}=(0,H.vb)(),{data:p,isLoading:f}=(0,v.a)(["/api/subscriptions/parameters",{}],()=>(0,R.DJ)({})),h=null!==(l=null==p?void 0:p.plans)&&void 0!==l?l:[],y=e=>(null==e?void 0:e.isPopular)?{label:c("plan:popular"),className:"bg-cta-50 text-cta-700"}:(null==e?void 0:e.isAnnual)?{label:c("plan:best-value"),className:"bg-mint text-[#008A80]"}:void 0;return(0,a.useEffect)(()=>{var e;if(!h.length||0===Object.keys(o).length||null!==t.id)return;let l=h.find(e=>{var l;return null===(l=o[e.slug])||void 0===l?void 0:l.isPopular})||h[0];n({id:l.id,slug:l.slug,trial_duration:l.trial_duration,displayPrice:(0,J.O)(d,null!==(e=l.currency)&&void 0!==e?e:"USD",l.price/100),price:l.price})},[p,o,t.id]),(0,a.useEffect)(()=>{if(!p||!u)return;let e=h.map(e=>{var l,t;return{item_id:e.slug,price:+(((null!==(l=e.trial_price)&&void 0!==l?l:0)+(null!==(t=e.price)&&void 0!==t?t:0))/100).toFixed(2),flow:m}});K.Z.clearPreviousEcommerce().pushEcommerceEvent("view_item",u,e)},[p,u,m]),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border border-success-200 bg-success-50 p-3",children:[(0,s.jsx)(O.nQG,{className:"size-5 shrink-0 text-success-600"}),(0,s.jsx)("p",{className:"text-xs font-semibold text-success-800",children:c("".concat(r,".banner"))})]}),f?(0,s.jsx)("div",{className:"flex justify-center py-8",children:(0,s.jsx)(g.Z,{size:32})}):h.map(e=>{var l,a;let u=o[e.slug],m=null!==(l=e.currency)&&void 0!==l?l:"USD",x=e.trial_price?e.trial_price:e.price,p="split"===i?(0,J.a)(d,m,x):(0,J.O)(d,m,x/100),f=(0,J.O)(d,m,(null!==(a=e.yearly_monthly_equivalent_amount)&&void 0!==a?a:e.price/12)/100),h=y(u);return(0,s.jsx)(Q.Z,{layout:i,badgeLabel:null==h?void 0:h.label,badgeClassName:null==h?void 0:h.className,name:c("plan:plans.".concat(e.slug,".name"),{days:e.trial_duration}),priceLabel:p,annualSuffix:(null==u?void 0:u.isAnnual)?c("pricing:annually").replace(/^\//,""):void 0,description:c("".concat(r,".plan-descriptions.").concat(e.slug),{monthly:f},{default:null}),descriptionSize:"xs",isActive:e.slug===t.slug,isPopular:null==u?void 0:u.isPopular,popularLabel:c("plan:popular"),onSelect:()=>n({id:e.id,slug:e.slug,trial_duration:e.trial_duration,displayPrice:(0,J.O)(d,m,e.price/100),price:e.price})},e.slug)})]})}var X=t(59920),$=t(6410);let ee=e=>{let{flowTemplateSlug:l,selectedPlan:t,onChangePlan:a}=e;return S.has(null!=l?l:"")?(0,s.jsx)(V,{selectedPlan:t,onChangePlan:a,wordingsKey:"plans.unlock-modal-".concat(l),layout:"video-generator"===l?"split":"stacked"}):(0,s.jsx)(T.Z,{selectedPlan:t,onChangePlan:a,planClassName:"drop-shadow"})},el=e=>{var l;let{flowTemplateSlug:t,selectedPlan:a}=e,{t:n}=(0,x.Z)("payment"),r=S.has(null!=t?t:""),i="video-generator"===t;return(0,s.jsxs)("div",{className:"mt-4",children:[(0,s.jsxs)(A.K,{href:a.id?"/payment?planId=".concat(a.id).concat(i?"&type=video":""):void 0,className:(0,j.W)("w-full gap-3",{"pointer-events-none cursor-not-allowed opacity-50":!a.id,"text-base normal-case":r}),children:[i&&(0,s.jsx)(X.Z,{className:"size-5"}),null!==(l=n("plans.unlock-modal-".concat(t,".cta"),null,{default:null}))&&void 0!==l?l:n("plans.special-cases.".concat(t,".cta"),null,{fallback:"plans.cta"}),!i&&(0,s.jsx)(O.LZ3,{className:"scale-150"})]}),i&&(0,s.jsxs)("div",{className:"mt-3 flex flex-wrap items-center justify-center gap-x-6 gap-y-1 text-xs font-semibold text-neutral-500",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)($.Z,{className:"size-3.5"}),n("plans.unlock-modal-video-generator.payment-secured")]}),(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(O.nQG,{className:"size-4"}),n("plans.unlock-modal-video-generator.cancel-anytime")]})]})]})},et=e=>{let{flowTemplateSlug:l,selectedPlan:t}=e,a=S.has(null!=l?l:""),n=null!==t.id;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ee,{...e}),(!a||n)&&(0,s.jsx)(el,{flowTemplateSlug:l,selectedPlan:t}),"image-generator"===l&&n&&(0,s.jsx)(q.Z,{className:"mt-4 flex items-center gap-2 border-t border-neutral-200 pt-4 text-xs text-neutral-500"})]})},es=new Set(["image-generator","video-generator","logo-generator","lyric-writer","background-remover"]),ea={id:null,
1slug:null,trial_duration:null,displayPrice:null,billing_frequency:null,price:null},en=e=>{let{hasFlow:l,showDirectPaymentFlow:t,isVideoGenerator:s}=e;return l?t?{preview:"md:w-2/3",plans:"md:w-2/3"}:s?{preview:"md:w-3/5",plans:"md:w-2/5"}:{preview:"md:w-1/2",plans:"md:w-1/2"}:{preview:"",plans:"md:w-full"}},er=(e,l)=>e?"text-[15px] font-semibold text-ink md:text-3xl md:font-bold":l?"text-lg font-bold md:text-2xl":"text-lg font-bold md:text-3xl",ei=e=>{let{flowTemplateSlug:l,description:t,hasPlansStepVariant:a,isVideoGenerator:n}=e,{t:r}=(0,x.Z)("payment");return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:(0,j.W)("mb-2 flex items-center justify-center gap-4 md:mb-3",n&&"md:px-6"),children:[!a&&(0,s.jsx)(b(),{src:"/static/logo-icon.svg",alt:"Logo",loading:"lazy",width:48,height:48,className:"size-[30px] md:size-[48px]"}),(0,s.jsx)("h3",{className:er(n,a),children:r("plans.unlock-modal-".concat(l,".title"),null,{default:null})||r("plans.unlock-modal.title")})]}),t&&(0,s.jsx)("p",{className:(0,j.W)("text-center",n?"text-xs text-denim md:text-base":"text-sm text-neutral-600"),children:t})]})},ec=e=>{let{flowData:l,selectedPlanId:t}=e;return l?(0,s.jsx)(h,{flowData:l,selectedPlanId:t}):(0,s.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,s.jsx)(g.Z,{})})};var ed=e=>{var l;let{openModal:t,setOpenModal:d,currentStep:o,flowTemplateSlug:u,variationKey:m}=e,{t:p}=(0,x.Z)("payment"),{flow:f}=(0,H.Ge)(),{currentFormId:h}=(0,H.vb)(),[g,w]=(0,a.useState)(),[b,N]=(0,a.useState)(ea),k=p("plans.unlock-modal-".concat(u,".description"),null,{default:null})||p("flows.core:steps.".concat(u,".variations.").concat(m,".").concat(o,".description"),null,{default:null})||p("flows.core:steps.".concat(u,".").concat(o,".description"),null,{default:null}),P=!!f&&!!u&&es.has(u)&&!g;(0,a.useEffect)(()=>{P&&(0,n.gs)(f).then(e=>{(null==e?void 0:e.data)&&w(e.data)}).catch(()=>void 0)},[f,t,P]);let{data:_}=(0,v.a)(["/api/features/direct-payment-flow"],()=>(0,r.i)("direct-payment-flow",{feature_custom_attributes:{isBlocked:!1}})),Z=null!==(l=null==_?void 0:_.feature_value)&&void 0!==l&&l,[D,C]=(0,a.useState)(!0);(0,a.useEffect)(()=>{Z&&C(!1)},[Z]);let z="video-generator"===u,I=S.has(null!=u?u:"");if("lyric-writer"===u)return(0,s.jsx)(y.Z,{open:t,onOpenChange:d,modal:D,shouldAddCloseButton:!0,customClassNames:"max-w-screen-lg !rounded-xl bg-neutral-150",children:(0,s.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row",children:[(0,s.jsx)("div",{className:"w-full md:w-1/2",children:f&&(0,s.jsx)(ec,{flowData:g,selectedPlanId:b.id})}),(0,s.jsx)("div",{className:"w-full md:w-1/2",children:(0,s.jsx)(B,{selectedPlan:b,onChangePlan:N,showDirectPaymentFlow:Z,currentFormId:h,setSelectedPlan:N})})]})});let F=en({hasFlow:!!f,showDirectPaymentFlow:Z,isVideoGenerator:z}),L=(0,s.jsx)(G,{slug:u,flowData:g,selectedPlan:b});return(0,s.jsxs)(y.Z,{open:t,onOpenChange:d,modal:D,shouldAddCloseButton:!0,closeButtonClassName:z?"hidden md:inline-flex":void 0,customClassNames:(0,j.W)("bg-neutral-150",z?"max-w-6xl !w-full !rounded-2xl !p-4 md:!w-[90vw] md:!p-6":"max-w-screen-lg !rounded-xl"),children:[(0,s.jsx)(ei,{flowTemplateSlug:u,description:k,hasPlansStepVariant:I,isVideoGenerator:z}),(0,s.jsxs)("div",{className:(0,j.W)("flex gap-x-6 md:p-2",!z&&"overflow-hidden",{"flex-col md:flex-row":!Z,"flex-col-reverse items-center":Z}),children:[Z&&(0,s.jsx)(c.Z,{plan:b,className:"mt-6"}),f&&(0,s.jsx)("div",{className:(0,j.W)("mt-4 w-full",z?"flex":"hidden",I?"md:flex":"md:block",F.preview),children:L}),(0,s.jsx)("div",{className:(0,j.W)("mt-3 w-full",F.plans),children:Z?(0,s.jsx)(i.D,{selectedPlan:b,setSelectedPlan:N,currentFormId:h}):(0,s.jsx)(et,{flowTemplateSlug:u,selectedPlan:b,onChangePlan:N})}),f&&!z&&(0,s.jsx)("div",{className:"mt-6 w-full md:hidden",children:L})]})]})}},52004:function(e,l,t){t.d(l,{d:function(){return n}});var s=t(87282),a=t(16114);let n=(0,s.U)()((0,a.mW)((0,a.tJ)((e,l)=>({pendingMusic:!1,setPendingMusic:()=>e({pendingMusic:!0}),consumePendingMusic:()=>{let t=l().pendingMusic;return e({pendingMusic:!1}),t}}),{name:"lyric-music-intent",storage:(0,a.FL)(()=>sessionStorage)})))}}]);

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.