PageSourceSearch

https://www.pray.com/component---src-pages-onboarding-js.ef6af447b62a8ac90f04.js

js pray.com collected 2026-09-24 09:59:58 UTC 59,132 bytes, 2 lines download raw bytes

1/*! For license information please see component---src-pages-onboarding-js.ef6af447b62a8ac90f04.js.LICENSE.txt */
2"use strict";(self.webpackChunk_pray_www=self.webpackChunk_pray_www||[]).push([[5210],{23673:function(e,t,a){a.d(t,{A:function(){return o}});var n=a(17502),r=a(14041),i={container:"Container-module--container--f0c59"};const l=["align","className"];function o(e){let{align:t,className:a}=e,o=(0,n.A)(e,l);const s=[i.container,a];return t&&s.push("text-"+t),r.createElement("div",Object.assign({className:s.join(" ")},o))}},25736:function(e,t,a){var n=a(93203),r=a(9538),i=a(99723),l=a(52154),o=a(18105);t.A={getSubscriptionDetails:async function(){try{const e=l.A.getUser(),t=(await n.A.executeGetRequest("/web/users/"+e.id+"/subscription-details")).data.data;return e.is_subscribed!==t.is_subscribed&&(e.is_subscribed=t.is_subscribed,l.A.upsertToStorage(o.Wd.USER,e,!1)),t}catch(e){i.A.error("Failed to fetch user subscription details",e)}return null},updateUser:async function(e,t){var a;return null===(a=(await n.A.executePutRequest("/0.13/users/"+e,t)).data.data)||void 0===a?void 0:a[0]},updateUserIntents:async function(e){const t=l.A.getUser(),a=await n.A.executePostRequest("/0.12/users/"+t.id+"/intents",e);return r.A.trackEventSubmitForm(o.qY.PRAY_EVENTS.SUBMIT_FORM_EVENT_NAMES.INTENT,e),a.data.data},verifyEmail:async function(e){let{email:t,token:a}=e;await n.A.executePostRequest("/web/verify_email",{email:t,token:a})}}},27655:function(e,t,a){var n=a(14041);t.A=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},n.createElement("path",{d:"M5.93426 10.5085L3.58682 7.89774C3.22381 7.49402 2.63526 7.49402 2.27226 7.89774C1.90925 8.30147 1.90925 8.95604 2.27226 9.35977L5.2703 12.6941C5.63699 13.102 6.23152 13.102 6.59821 12.6941L13.7277 4.76482C14.0908 4.3611 14.0908 3.70652 13.7277 3.3028C13.3647 2.89907 12.7762 2.89907 12.4132 3.3028L5.93426 10.5085Z",fill:"#0DCE94"}))}},32875:function(e,t){t.A={container:"FlowStyles-module--container--78215",desktop:"FlowStyles-module--desktop--b2d8c",viewport:"FlowStyles-module--viewport--9e6d4"}},34885:function(e,t,a){a.d(t,{A:function(){return y}});var n=a(14041),r=a(39242),i=a(92751),l=a(34804),o=a(41192),s=a(49208),u=a(23673),c=a(32875),d=a(50592),m=a(27655),p=a(99723),h=a(52154),f=a(98784),b={form:"EmailCapturePage-module--form--54398",continue:"EmailCapturePage-module--continue--16506",terms:"EmailCapturePage-module--terms--e74c6",stickyButton:"EmailCapturePage-module--stickyButton--fd3d1",buttonWrap:"EmailCapturePage-module--buttonWrap--8f92b",container:"EmailCapturePage-module--container--e6341"};const g=Object.assign({},c.A,b),v=n.createElement(n.Fragment,null,"By providing your email and signing up, you agree to the"," ",n.createElement("a",{href:d.XS.TERMS_OF_SERVICE},"Terms of Service"),","," ",n.createElement("a",{href:d.XS.PRIVACY_POLICY},"Privacy Policy"),", and confirm you are at least 16 years old.");function y(e){let{title:t="What's your email?",subtitle:a="Enter your email to login or sign up",data:c,terms:y=v,showSocialAuth:w=!0,handleEmailValidation:E,onDataChange:_,onAuthSuccess:A}=e;const{0:S,1:N}=(0,n.useState)(""),{0:k,1:I}=(0,n.useState)(!1),{0:C,1:B}=(0,n.useState)(!1),{0:x,1:O}
2=(0,n.useState)(!1);let P;const L=(0,n.useCallback)((e=>{const{value:t}=e.target;_("email",t);const a=(0,f.B9)(t);O(a),a&&N(""),window.clearTimeout(P),I(!0),P=setTimeout((()=>{I(!1),N(a?"":"Enter a valid email.")}),1e3)}),[]),R=async()=>{if(!C)try{B(!0);if(!function(){let e="";return(0,f.B9)(c.email)||(e="Please enter a valid email address"),N(e),!e}())return void B(!1);let e=!0;const t=h.A.getUser();c.email!==(null==t?void 0:t.email)&&(e=await E()),_("isEmailAvailable",e)}catch(e){p.A.error("Failed to validate email",e)}finally{B(!1)}};return n.createElement(u.A,{align:"",className:b.container,"data-viewname":d.qY.PRAY_EVENTS.VIEW_EVENT_NAMES.LANDER_REDEEM_FLOW.EMAIL_CAPTURE},n.createElement("div",{className:g.viewport},n.createElement("div",{className:g.desktop},t&&n.createElement(s.A,{variant:r.Il.heading_xl},t)),n.createElement("div",{className:g.desktop},a&&n.createElement(s.A,{variant:r.Il.headline_small,color:r.Tj.text_secondary},a)),n.createElement("form",{onSubmit:e=>{e.preventDefault(),k||R()}},n.createElement("div",{className:g.form},n.createElement(o.A,{autoFocus:!0,"aria-label":"email address",type:"email",label:"Email address",loading:k,error:S,value:c.email,rightIcon:x&&n.createElement(m.A,null),onChange:L})),n.createElement(l.A,{full:!0,disabled:!x||C,loading:C,variant:r.Uo.variant.primary,onClick:R},"Continue"),w&&n.createElement(i.A,{onAuthSuccess:()=>null==A?void 0:A()}),n.createElement("div",{className:g.desktop},n.createElement("div",{className:g.terms},y)))))}},41192:function(e,t,a){a.d(t,{A:function(){return f}});var n=a(17502),r=a(14041),i=a(50704),l=a(39242),o=a(69162);function s(){return r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M15 9L9 15M15 15L9 9M21.25 12C21.25 17.1086 17.1086 21.25 12 21.25C6.89137 21.25 2.75 17.1086 2.75 12C2.75 6.89137 6.89137 2.75 12 2.75C17.1086 2.75 21.25 6.89137 21.25 12Z",stroke:"#56585E",strokeWidth:"1.5",strokeLinecap:"square"}))}var u=a(62689),c=a(86653),d=a(49208),m={inputWrap:"InputField-module--inputWrap--67855",disabled:"InputField-module--disabled--0f541",withLeftIcon:"InputField-module--withLeftIcon--16f4e",withRightIcon:"InputField-module--withRightIcon--deacc",withoutStatusIndicator:"InputField-module--withoutStatusIndicator--e6aa5",aiVariant:"InputField-module--aiVariant--03ed8",inputWrapActive:"InputField-module--inputWrapActive--68760",inputSelectWrap:"InputField-module--inputSelectWrap--f8eda",inputWrapError:"InputField-module--inputWrapError--4a110",input:"InputField-module--input--c4387",withLabel:"InputField-module--withLabel--7c48f",floating:"InputField-module--floating--6d894",placeholder:"InputField-module--placeholder--ec205",select:"InputField-module--select--80720",textarea:"InputField-module--textarea--35f73",indicator:"InputField-module--indicator--3983a",leftIcon:"InputField-module--leftIcon--350c4",rightDetails:"InputField-module--rightDetails--cbaf2",rightIcon:"InputField-module--rightIcon--e5371",success:"InputField-module--success--5ffe5",error:"InputField-module--error--79102",helperText:"InputField-module--helperText--ecc6d",clearButton:"InputField-module--clearButton--4deb2"};const p=["className","error","label","onBlur","onFocus","loading","renderStatusIndicator","renderSuccessIndicator","leftIcon","rightIcon","rightDetails","children","containerClassName"];function h(e,t){let{className:a="",error:h=null,label:f=null,onBlur:b=null,onFocus:g=null,loading:v=!1,renderStatusIndicator:y=!0,renderSuccessIndicator:w=!1,leftIcon:E=null,rightIcon:_=null,rightDetails:A=null,children:S=null,containerClassName:N=""}=e,k=(0,n.A)(e,p);const I=t||(0,r.useRef)(null),{0:C,1:B}=(0,r.useState)(!1),x=[m.input,a];function O(e){B(!0),g&&g(e)}function P(e){B(!1),b&&b(e)}f&&x.push(m.withLabel),_&&x.push(m.withRightIcon);const L=k.value?m.floating:[m.floating,m.empty].join(" "),R=C||k.value?L:"",F=C&&!h?m.inputWrapActive:"",T=h?m.inputWrapError:"",M=S?m.inputSelectWrap:"",V={ai:m.aiVariant},q=[m.inputWrap,R,F,T,M];E&&q.push(m.withLeftIcon),y||q.push(m.withoutStatusIndicator),S&&q.push(m.select),k.rows&&q.push(m.textarea),k.disabled&&q.push("disabled",m.disabled),k.variant&&V[k.variant]&&q.push(V[k.variant]);const j=q.filter((e=>e)).join(" "),W=(0,r.useMemo)((()=>y?v?r.createElement(c.A,null):h?r.createElement(u.$D,{fill:l.Tj.$attention}):w&&k.value?r.createElement(u.wV,{className:m.success,fill:l.Tj.$success}
2):null:null),[k.value,h,v,y]),D=x.filter(Boolean).join(" ");return r.createElement("div",null,r.createElement("div",{"data-id":"inputWrap","data-tapeventadded":"button-placeholder",className:(0,i.cn)(j,N),onClick:function(){var e;null===(e=I.current)||void 0===e||e.focus()},role:"none"},f&&r.createElement("div",{className:m.placeholder},f),E?r.createElement("div",{className:m.leftIcon},E):null,S?r.createElement("select",Object.assign({ref:I,className:D,onFocus:O,onBlur:P},k),S):k.rows?r.createElement("textarea",Object.assign({ref:I,className:D,onFocus:O,onBlur:P},k)):r.createElement("input",Object.assign({ref:I,className:D,onFocus:O,onBlur:P},k)),k.value&&"search"===k.type?r.createElement("div",{className:m.rightIcon+" "+m.clearButton},r.createElement(o.A,{onClick:()=>k.onChange({target:{value:""}})},r.createElement(s,null))):_?r.createElement("div",{className:m.rightIcon},_):W?r.createElement("div",{className:m.indicator},W):null,A?r.createElement("div",{className:m.rightDetails},A):null),h&&r.createElement(d.A,{className:m.error},h))}var f=(0,r.forwardRef)(h)},42161:function(e,t,a){var n=a(14041);t.A=()=>{const{0:e,1:t}=(0,n.useState)(!1);return(0,n.useEffect)((()=>{t(!0)}),[]),e}},42215:function(e,t,a){a.d(t,{A:function(){return p}});var n=a(14041),r=a(39242),i=a(34804),l=a(78363),o=a(49208),s=a(23673),u=a(32875),c=a(50592),d={checkEmailImage:"EmailConfirmationPage-module--checkEmailImage--e9e5d",buttons:"EmailConfirmationPage-module--buttons--de7a0",resendTextAction:"EmailConfirmationPage-module--resendTextAction--12814",container:"EmailConfirmationPage-module--container--ff4ca"};const m=Object.assign({},u.A,d);function p(e){let{data:t,title:a="Great! Now, check your email!",subtitle:u="To confirm your email address",customStyles:p={},handleEmailValidation:h}=e;return n.createElement(n.Fragment,null,n.createElement(s.A,{align:"left",className:d.container,"data-viewname":c.qY.PRAY_EVENTS.VIEW_EVENT_NAMES.LANDER_REDEEM_FLOW.EMAIL_CONFIRMATION},n.createElement("div",{className:m.viewport},n.createElement("div",{className:m.desktop},n.createElement(o.A,{variant:r.Il.h1},a)),n.createElement("div",null,n.createElement(o.A,{variant:r.Il.headline_small,color:r.Tj.text_secondary},u,", ",n.createElement("span",{className:"mobile-only"},"tap"),n.createElement("span",{className:"desktop-only"},"click")," the button in the email we sent to"," ",n.createElement(o.A,{color:r.Tj.text_featured},t.email))))),n.createElement(l.A,{customStyles:p.buttons,"data-viewname":c.qY.PRAY_EVENTS.VIEW_EVENT_NAMES.LANDER_REDEEM_FLOW.EMAIL_CONFIRMATION},n.createElement(o.A,{variant:r.Il.body,color:r.Tj.text_secondary},"Didn’t receive the email?"),n.createElement(i.A,{full:!0,variant:r.Uo.variant.secondary,className:d.resendTextAction,onClick:async()=>{await h()}},"Resend link")))}},45228:function(e,t,a){a.d(t,{A:function(){return n.A}});var n=a(66114)},45892:function(e,t,a){a.d(t,{n:function(){return c}});var n=a(14041),r=a(30001),i=a(78852),l=a(92127),o=a(14181),s=class extends l.Q{#e;#t=void 0;#a;#n;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,o.f8)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.EN)(t.mutationKey)!==(0,o.EN)(this.options.mutationKey)?this.reset():"pending"===this.#a?.state.status&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(e){this.#r(),this.#i(e)}getCurrentResult(){return this.#t}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#r(),this.#i()}mutate(e,t){return this.#n=t,this.#a?.removeObserver(this),this.#a=this.#e.getMutationCache().build(this.#e,this.options),this.#a.addObserver(this),this.#a.execute(e)}#r(){const e=this.#a?.state??(0,r.$)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#i(e){i.jG.batch((()=>
2{if(this.#n&&this.hasListeners()){const t=this.#t.variables,a=this.#t.context,n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};"success"===e?.type?(this.#n.onSuccess?.(e.data,t,a,n),this.#n.onSettled?.(e.data,null,t,a,n)):"error"===e?.type&&(this.#n.onError?.(e.error,t,a,n),this.#n.onSettled?.(void 0,e.error,t,a,n))}this.listeners.forEach((e=>{e(this.#t)}))}))}},u=a(93402);function c(e,t){const a=(0,u.jE)(t),[r]=n.useState((()=>new s(a,e)));n.useEffect((()=>{r.setOptions(e)}),[r,e]);const l=n.useSyncExternalStore(n.useCallback((e=>r.subscribe(i.jG.batchCalls(e))),[r]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),c=n.useCallback(((e,t)=>{r.mutate(e,t).catch(o.lQ)}),[r]);if(l.error&&(0,o.GU)(r.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:c,mutateAsync:l.mutate}}},46398:function(e,t,a){a.d(t,{A:function(){return p}});var n=a(88930),r=a(14041),i=a(90180),l=a(25736),o=a(99723),s=a(35714),u=a(52154),c=a(18105),d=a(98183);const m={product:c.QI,type:i.W.SUBSCRIPTION,shouldFetchProductDetails:!0,shouldFetchActiveProduct:!0,shouldRedirectSubscribedUsers:!0};function p(e){var t;void 0===e&&(e={});const{product:a,type:c,shouldFetchProductDetails:p,shouldFetchActiveProduct:h,shouldRedirectSubscribedUsers:f}=Object.assign({},m,e),{0:b,1:g}=(0,r.useState)(a),v=(0,s.JO)(),y=v.product_bundle_token||null,w=(0,d.A)(y),E=w.isValid?null===(t=w.data)||void 0===t?void 0:t.product_id:null,_=async()=>{const e=u.A.getUser();if(e&&e.id){const e=await l.A.getSubscriptionDetails();return f&&null!=e&&e.is_subscribed?((0,n.navigate)("/discover/"),null):e}return null},A=async e=>{if(!p)return e;const t=v.product_id||E,n=v.discount_code;try{if(t||!h){const e=t||a.id;return await i.A.fetchProductById({id:e,discountCode:n})}return await i.A.fetchActiveProductByType({type:c,discountCode:n})}catch(d){var r,l,s,u;const e=(null===(r=d.response)||void 0===r||null===(l=r.data)||void 0===l||null===(s=l.data)||void 0===s||null===(u=s[0])||void 0===u?void 0:u.info)||"";return o.A.error("Error fetching product details:",e,d),null}};return(0,r.useEffect)((()=>{(async()=>{const[e,t]=await Promise.all([_(),A(a)]);e&&t&&g(Object.assign({},t,{is_eligible_for_free_trial:e.is_eligible_for_free_trial,is_data_fetched:!0}))})()}),[a,E]),b}},54219:function(e,t,a){a.d(t,{d:function(){return l}});var n=a(78489),r=a(93203);const i={createLead:async function(e){let{email:t=null,firstName:a=null,lastName:n=null,leadCampaignId:i=null}=void 0===e?{}:e;if(!t)throw Error("Email is required");if(!i)throw Error("Lead campaign ID is required");const l={email:t,lead_campaign_id:i};a&&(l.first_name=a),n&&(l.last_name=n);return(await r.A.executePostRequest("/web/leads",l)).data},registerCreatorLead:async function(e){if(void 0===e&&(e={}),!e.first_name)throw Error("First name is required");if(!e.last_name)throw Error("Last name is required");if(!e.email)throw Error("Email is required");if(!e.org_name)throw Error("Organization name is required");if(!e.audience_count)throw Error("Audience count is required");if(!e.website_url)throw Error("Website URL is required");""===e.country_code&&delete e.country_code,""===e.phone&&delete e.phone;return(await r.A.executePostRequest("/web/leads/creator",e)).data},registerPartnershipLead:async function(e){if(void 0===e&&(e={}),!e.first_name)throw Error("First name is required");if(!e.last_name)throw Error("Last name is required");if(!e.email)throw Error("Email is required");if(!e.phone)throw Error("Phone number is required");if(!e.zipcode)throw Error("ZIP Code is required");return(await r.A.executePostRequest("/web/leads/partnership",e)).data},getLeadCampaigns:async function(e){let{isRandomSelection:t=!0}=void 0===e?{}:e;const a={is_random_selection:t};return(await r.A.executeGetRequest("/web/lead-campaigns",a)).data.data}},l=()=>(0,n.I)({queryKey:["lead-campaigns"],queryFn:()=>i.getLeadCampaigns()});t.A=i},61119:function(e,t,a){a.d(t,{A:function(){return r}});var n=a(14041);function r(e){const{0:t,1:a}=(0,n.useState)({}),{0:r,1:i}=(0,n.useState)(e),{0:l,1:o}=(0,n.useState)({}),{0:s,1:u}=(0,n.useState)(!1);function c(e,n){const r=t[e]||{};r.changed=!0,s||u(!0),i((t=>Object.assign({},t,{[e]:n}))),a((t=>Object.assign({},t,{[e]:r})))}return(0,n.useEffect)((()=>{s||i(e)}),[JSON.stringify(e)]),{changed:s,fields:t,values:r,errors:l,isValid:0===Object.keys(l).length,handleChange:function(e){const{type:t,name:a,value:n,checked:r}=e.target;c(a,"checkbox"===t?r:n)},setChanged:u,setError:function(e,t){o((a=>Object.assign({},a,{[e]:t})))},setErrors:o,setValue:c,setValues:function(e){i(e),u(!0)}}}},64462:function(e,t,a){a.d(t,{A:function(){return r}});var n=a(14041);function r(e){let{className:t="h-5 w-[155px]"}=e;return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2363 306",fill:"none",className:t},n.createElement("path",{d:"M116.485 6.03125H0V300.719H53.2897V206.587H110.547C182.248 206.587 228.588 166.808 228.588 105.272C228.692 44.9807 184.66 6.03125 116.485 6.03125ZM174.572 106.517C174.572 137.998 150.144 158.38 112.336 158.38H53.4192V54.6531H112.336C151.882 54.705 174.572 73.5833 174.572 106.517Z",fill:"white"}),n.createElement("path",{d:"M552.786 99.8262C552.786 41.9727 510.751 6.03125 443.095 6.03125H311.647V300.719H364.937V198.626H427.873L499.834 300.719H562.744L483.393 189.472C528.203 176.688 552.786 144.896 552.786 99.8262ZM364.937 54.7051H438.92C477.455 54.7051 498.563 71.768 498.563 102.756C498.563 132.189 475.224 151.223 439.231 151.223H364.833L364.937 54.7051Z",fill:"white"}),n.createElement("path",{d:"M750.281 3.93236L620.623 300.72H675.313L705.342 230.031H842.78L872.264 300.046L872.497 300.591H928.873L799.214 3.80273L750.281 3.93236ZM823.124 182.602H725.05L773.879 68.6579L823.124 182.602Z",fill:"white"}),n.createElement("path",{d:"M1076.22 134.964L994.973 6.47209L994.688 6.03125H931.855L1048.94 184.623V300.719H1102.64V183.352L1218.79 7.45749L1219.72 6.03125H1158.55L1076.22 134.964Z",fill:"white"}),n.createElement("path",{d:"M1288.23 241.597H1230.77V300.721H1288.23V241.597Z",fill:"white"}),n.createElement("path",{d:"M1589.9 218.829C1564.87 242.167 1542.18 256.663 1506.42 256.663C1451.84 256.663 1410.66 212.086 1410.66 152.936C1410.66 94.3048 1451.84 50.0912 1506.42 50.0912C1535.78 50.0912 1560.88 61.2418 1587.8 86.2399L1588.5 86.8882L1622.73 47.4462L1622.1 46.8497C1598.35 24.1595 1566.09 0.976562 1506.84 0.976562C1420.2 0.976562 1354.88 66.6616 1354.88 153.766C1354.88 195.127 1370.05 233.428 1397.61 261.616C1411.59 275.785 1428.28 286.992 1446.69 294.566C1465.09 302.141 1484.84 305.927 1504.74 305.7C1554.01 305.7 1588.63 290.582 1624.21 253.525L1624.83 252.903L1590.55 218.18L1589.9 218.829Z",fill:"white"}),n.createElement("path",{d:"M1839.21 1.00195C1796.13 1.00195 1756.66 17.0538 1728.06 46.1491C1699.99 74.9133 1684.43 113.603 1684.76 153.792C1684.76 240.429 1750.78 305.751 1838.38 305.751C1881.45 305.751 1920.92 289.725 1949.52 260.604C1977.59 231.84 1993.15 193.15 1992.82 152.962C1992.82 66.324 1926.72 1.00195 1839.21 1.00195ZM1937.1 153.792C1937.1 212.449 1895.04 256.662 1839.26 256.662C1783.01 256.662 1740.59 212.086 1740.59 152.936C1740.59 94.3042 1782.65 50.0906 1838.43 50.0906C1894.62 50.1165 1937.1 94.6932 1937.1 153.792Z",fill:"white"}),n.createElement("path",{d:"M2305.87 6.03125L2217.26 143.754L2128.91 6.44616L2128.63 6.03125H2072.43V300.719H2124.87V93.6285L2214.82 228.369L2215.11 228.758H2217.76L2308.83 92.7727V300.719H2362.09V6.03125H2305.87Z",fill:"white"}))}},64943:function(e,t,a){a.d(t,{A:function(){return s}});var n=a(17502),r=a(14041),i={checkbox:"Checkbox-module--checkbox--9feff",partial:"Checkbox-module--partial--24f60",dark:"Checkbox-module--dark--3558d",checkboxArea:"Checkbox-module--checkboxArea--29028",circular:"Checkbox-module--circular--df2bc",circle:"Checkbox-module--circle--15c7b"};const l=["partial","circular","dark","className"],o=["children","id","className"];function s(e){let{partial:t=!1,circular:a=!1,dark:o=!1,className:s=""}=e,c=(0,n.A)(e,l);if(a)return r.createElement(u,Object.assign({className:s},c));const d=t&&!c.checked,m=[i.checkbox,s,d&&i.partial,o&&i.dark].filter(
2Boolean).join(" ");return r.createElement("input",Object.assign({type:"checkbox",className:m},c))}const u=e=>{let{children:t=null,id:a="",className:l=""}=e,s=(0,n.A)(e,o);const u=(0,r.useId)(),c=a||u,d=[i.checkboxArea,l].filter(Boolean).join(" ");return r.createElement("label",{className:d},r.createElement("span",{className:i.circular},r.createElement("input",Object.assign({id:c,type:"checkbox"},s)),r.createElement("span",{className:i.circle,"aria-hidden":"true"})),t)}},66114:function(e,t,a){a.d(t,{A:function(){return c}});var n=a(17502),r=a(14041),i=a(34804),l=a(62689),o=a(64462),s={placeholder:"AppBar-module--placeholder--0818a",primaryAppBar:"AppBar-module--primaryAppBar--0d0e1",appbar:"AppBar-module--appbar--effb9",absolute:"AppBar-module--absolute--114b8",fixed:"AppBar-module--fixed--6b261",transparent:"AppBar-module--transparent--384d7",translucent:"AppBar-module--translucent--4e892",left:"AppBar-module--left--b6ce1",center:"AppBar-module--center--b569e",right:"AppBar-module--right--1fea3"};const u=["left","center","right","absolute","fixed","translucent","transparent","className","onBack"];function c(e){let{left:t,center:a,right:c,absolute:d,fixed:m,translucent:p,transparent:h,className:f,onBack:b}=e,g=(0,n.A)(e,u);const v=[s.appbar,f];d&&v.push(s.absolute),m&&v.push(s.fixed),p&&v.push(s.translucent),h&&v.push(s.transparent);const y=v.filter((e=>e)).join(" ");(0,r.useEffect)((()=>{if(!h)return;const e=()=>{var e,t;const a=document.querySelector("[data-appbar]"),n=window.pageYOffset<=24?"remove":"add";null===(e=(t=a.classList)[n])||void 0===e||e.call(t,s.primaryAppBar)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[h]);return r.createElement("div",Object.assign({className:y},g,{"data-appbar":!0}),r.createElement("div",{className:s.left,"data-left":!0},!t&&b?r.createElement(i.A,{onClick:b},r.createElement(l.S2,null)):t),r.createElement("div",{className:s.center,"data-center":!0},void 0===a?r.createElement(o.A,null):a),r.createElement("div",{className:s.right,"data-right":!0},c))}},75308:function(e,t,a){a.d(t,{a:function(){return o}});var n=a(45892),r=a(93203),i=a(52154);const l=async e=>{let{latitude:t,longitude:a}=e;const n=i.A.getUser();if(null==n||!n.id)return null;return(await r.A.executePostRequest("/web/users/"+n.id+"/location",{latitude:t,longitude:a})).data},o=()=>{const e=(0,n.n)({mutationFn:l});return{saveUserLocation:e.mutateAsync,isPending:e.isPending}}},78122:function(e,t,a){a.d(t,{A:function(){return o},p:function(){return s}});var n=a(78489),r={garyvalenciano:{id:"garyvalenciano",name:"Gary Valenciano",header_image:"https://d339bgihw9yfmi.cloudfront.net/web/artists/header_images/gary_v.png",featured_content:[{image_url:"https://d2alqht3442852.cloudfront.net/content-series/1f586900-0a72-11ec-8136-e378ace3b594/GV-Morning-cover.minified.jpg"}]},lecrae:{id:"lecrae",name:"Lecrae",header_image:"https://d339bgihw9yfmi.cloudfront.net/web/artists/header_images/lecrae.png",featured_content:[{image_url:"https://d2alqht3442852.cloudfront.net/content-series/defac1f0-7d3f-11ec-801c-db5e395bcc20/square_cover_lecrae_transform_yourself_1x.jpg"}]},jamesearljones:{id:"jamesearljones",name:"James Earl Jones",header_image:"https://d339bgihw9yfmi.cloudfront.net/web/artists/header_images/james_earl_jones.png",featured_content:[{image_url:"https://d2alqht3442852.cloudfront.net/content-series/ebb34ff0-e62f-11ea-b7d4-25ae192331d5/jej-reads-the-bible-square-cover_1x.jpg"}]},drewbrees:{id:"drewbrees",name:"Drew Brees",header_image:"https://d339bgihw9yfmi.cloudfront.net/web/artists/header_images/drew_brees.png",featured_content:[{image_url:"https://d2alqht3442852.cloudfront.net/content-series/514e5ad0-3071-11ec-b183-3ba70010725c/square_cover_drew_brees_motivational_prayers_1x.jpg"}]}},i=a(93203);async function l(e){let{id:t=null,handle:a=null}=e;if(!t&&!a)throw Error("Artist ID or handle is required");const n=t||a,l=r[n];if(l)return{data:l};const o="/web/artists/"+n;return(await i.A.executeGetRequest(o)).data}var o={fetchArtistData:l,fetchArtistContent:async function(e){let{id:t="",handle:a="",mediaType:n="",offset:r=0,limit:l=0,sortColumn:o="",sortDirection:s="asc"}=e;if(!t&&!a)throw Error("Artist ID or handle is required");if(!n)throw Error("Media Type is required");const u={media_type:n};
2r&&(u.offset=r),l&&(u.limit=l),o&&(u.sort_column=o,u.sort_direction=s);const c="/web/artists/"+(t||a)+"/content";return(await i.A.executeGetRequest(c,u)).data},fetchArtistPageData:async function(e){let{id:t=null,handle:a=null,offset:n=null}=e;if(!t&&!a)throw Error("Artist ID or handle is required");const r={};n&&(r.offset=n);const l="/web/artists/"+(null!=t?t:a)+"/page";return(await i.A.executeGetRequest(l,r)).data},followArtist:async function(e){let{artistId:t,contentSeriesHandle:a=""}=e;if(!t)throw Error("Artist ID is required");const n={};a&&(n.content_series_handle=a);const r="/web/artists/"+t+"/follow";return(await i.A.executePutRequest(r,n)).data},unfollowArtist:async function(e){let{artistId:t,contentSeriesHandle:a=null}=e;if(!t)throw Error("Artist ID and Content Series handle are required");const n={};a&&(n.content_series_handle=a);const r="/web/artists/"+t+"/follow";return(await i.A.executeDeleteRequest(r,n)).data}};const s=e=>{let{artistId:t="",handle:a=""}=e;return(0,n.I)({enabled:!!t||!!a,queryKey:["artist",t||a],queryFn:async()=>(await l({id:t,handle:a})).data})}},78363:function(e,t,a){a.d(t,{A:function(){return s}});var n=a(17502),r=a(14041),i="StickyButton-module--stickyButton--ba917",l="StickyButton-module--buttonWrap--6b8c0";const o=["customStyles","children"];var s=e=>{let{customStyles:t="",children:a}=e,s=(0,n.A)(e,o);return r.createElement("div",Object.assign({className:i+" "+t},s),r.createElement("div",{className:l},a))}},86653:function(e,t,a){a.d(t,{A:function(){return i}});var n=a(14041),r="InputLoader-module--loader--b553f";var i=()=>n.createElement("div",{className:r})},88165:function(e,t,a){var n=a(14041),r=a(93285),i=a(17787);t.A=e=>{let{canonicalPath:t}=e;let a=null;const l=!(!(o=t)||!o.length)&&"/"===o[0]&&"/"===o[o.length-1];var o;return i.mN&&l&&(a=""+i.mN+t),"/"===t&&(a=""+i.mN),a?n.createElement(r.A,null,n.createElement("link",{rel:"canonical",href:a})):null}},90180:function(e,t,a){a.d(t,{W:function(){return i}});var n=a(93203),r=a(99723);const i={BANGO:"bango",GIFT:"gift",SUBSCRIPTION:"subscription"};t.A={fetchActiveProductByType:async function(e){var t;let{type:a=i.SUBSCRIPTION,discountCode:r=null}=void 0===e?{}:e,l="/web/products/active?type="+a;r&&(l+="&discount_code="+r);const o=await n.A.executeGetRequest(l);return null==o||null===(t=o.data)||void 0===t?void 0:t.data},fetchProductById:async function(e){var t;let{id:a,discountCode:r}=e,i="/web/products/"+a;r&&(i+="?discount_code="+r);const l=await n.A.executeGetRequest(i);return null==l||null===(t=l.data)||void 0===t?void 0:t.data},fetchProductForGifts:async function(){var e,t;const a=null===(e=(await n.A.executeGetRequest("/web/products?is_active_for_gifts=true")).data)||void 0===e||null===(t=e.data)||void 0===t?void 0:t[0];if(!a)throw new Error("failure getting products active for gifts");return a},purchaseProductById:async function(e){let{userId:t,productId:a,data:i}=e;try{var l;const e="/web/users/"+t+"/products/"+a+"/purchases",r=await n.A.executePostRequest(e,i);return null==r||null===(l=r.data)||void 0===l?void 0:l.data}catch(c){var o,s,u;const e=null===(o=c.response)||void 0===o||null===(s=o.data)||void 0===s||null===(u=s.data)||void 0===u?void 0:u[0];throw r.A.error("Error creating product purchase",e),e}}}},92325:function(e,t,a){a.r(t),a.d(t,{default:function(){return We}});var n=a(14041),r=a(88165),i=a(93609),l=a(7797),o=a(10544),s=a(18105),u=a(17502),c=a(42215),d=a(39242),m=a(92751),p=a(45228),h=a(93894),f=a(64943),b=a(13390),g=a(41192),v=a(64462),y=a(79105),w=a(50592),E=a(42161),_=a(96158),A=a(56011),S=a(48371),N=a(9538),k=a(99723),I=a(98784),C=a(58517);const B=["form","onContinue","onBack"],x="auth-options",O="email-capture",P="email-confirmation";const L=e=>{let{form:t,imageUrl:a,legalCopy:r,ministryName:i}=e;const l=i||"the ministry that sent you here";return n.createElement("div",{className:"relative flex flex-col gap-3 rounded-2xl border border-white/10 p-3"},a&&n.createElement("div",{className:"overflow-hidden rounded-lg"},n.createElement(b.A,{src:a,alt:"Free e-book from "+l})),n.createElement(f.A,{circular:!0,checked:t.values.leadOfferOptedIn,onChange:e=>{t.setValue("leadOfferOptedIn",e.target.checked)}},n.createElement(y.A,{variant:d.Il.body_lg},"Please send me the free e-book")),n.createElement(y.A,{color:d.Tj.text_secondary,variant:d.Il.footnote},r||l+" sends the e-book."))},R=e=>{let{isUserRegistered:t}=e;const a=t?"clicking Continue":"providing your email and signing up";return n.createElement(y.A,{color:d.Tj.text_secondary,variant:d.Il.footnote_link},"By ",a,", you agree to the"," ",n.createElement("a",{href:w.XS.TERMS_OF_SERVICE,target:"_blank",rel:"noreferrer noopener",className:"underline"},"Terms of Service"),","," ",n.createElement("a",{href:w.XS.PRIVACY_POLICY,target:"_blank",rel:"noreferrer noopener",className:"underline"},"Privacy Policy"),", and confirm you are at least 16 years old.")},F=e=>{let{form:t,isCtaEnabled:a,isSubmitting:r,handleSubmit:i}=e;return n.createElement(n.Fragment,null,n.createElement(g.A,{autoFocus:!0,name:"email",type:"email","aria-label":"email address",placeholder:"Enter your email address",value:t.values.email,error:t.errors.email,onChange:e=>{t.handleChange(e),t.errors.email&&t.setError("email","")}}),n.createElement(h.A,{full:!0,disabled:!a,loading:r,className:"mb-4",variant:d.Uo.variant.primary,onClick:i},"Continue"))},T=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,((e,t,a)=>a?a.toUpperCase():t.toLowerCase())))(e);return t.charAt(0).toUpperCase()+t.slice(1)},M=(...e)=>e.filter(((e,t,a)=>Boolean(e)&&""!==e.trim()&&a.indexOf(e)===t)).join(" ").trim(),V=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var q={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const j=(0,n.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:i="",children:l,iconNode:o,...s},u)=>(0,n.createElement)("svg",{ref:u,...q,width:t,height:t,stroke:e,strokeWidth:r?24*Number(a)/Number(t):a,className:M("lucide",i),...!l&&!V(s)&&{"aria-hidden":"true"},...s},[...o.map((([e,t])=>(0,n.createElement)(e,t))),...Array.isArray(l)?l:[l]]))),W=((e,t)=>{const a=(0,n.forwardRef)((({className:a,...r},i)=>{return(0,n.createElement)(j,{ref:i,iconNode:t,className:M(`lucide-${l=T(e),l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...r});var l}));return a.displayName=T(e),a})("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);var D=a(66114),U=a(34804),G=a(83091),Y=a(49208),H=a(52154),z=a(34885),K={wrapper:"LoginOptionsPage-module--wrapper--498bd",container:"LoginOptionsPage-module--container--6c429",content:"LoginOptionsPage-module--content--33ad8",header:"LoginOptionsPage-module--header--f7d32",title:"LoginOptionsPage-module--title--a9193",subtitle:"LoginOptionsPage-module--subtitle--c0725",buttons:"LoginOptionsPage-module--buttons--37ad8",terms:"LoginOptionsPage-module--terms--5eb85"};const Z=1,$=2,J=3;function X(e){let{title:t="Sign up to get started!",subtitle:a="Let's get you signed up.",logo:r=n.createElement(v.A,null),appBarRightComponent:i=null,registerViewName:l="",route:o="/discover/",isWebSubscribeFlow:s=!0,isShowAppBar:u=!0,isShowLogo:p=!0,disabled:h=!1,isShowSubtitle:f=!1,onBack:b=null,onUpdateEmail:g=null,onSuccess:y=null}=e;const E=H.A.getUser(),{0:_,1:A}
2=(0,n.useState)((null==E?void 0:E.email)||""),{0:N,1:I}=(0,n.useState)(Z),C=async()=>{try{const[e,t]=o.split("?"),a=await(0,S.Fv)({email:_,customRoute:e,queryParams:t,isWebSubscribeFlow:s,registerViewName:l||w.Fj.SUBSCRIBE_FLOW}),n=Boolean(null==a?void 0:a.isEmailAvailable);return g&&g(_),n?y&&y(n):I(J),n}catch(e){k.A.debug("error",e)}return!1},B=(e,t)=>{"email"===e&&A(t)},x=()=>f?a:null,O=()=>{I($)},P=(0,n.useCallback)((()=>{N===$?I(Z):N===J?I($):null==b||b()}),[b,N]),L=b||N!==Z?n.createElement(U.A,{onClick:P},n.createElement(G.S,null)):void 0,R=p&&r;return n.createElement(n.Fragment,null,u&&n.createElement(D.A,{left:L,center:R,right:i}),n.createElement("div",{className:K.wrapper},(()=>{switch(N){case Z:return n.createElement("div",{className:K.container,"data-viewname":w.qY.PRAY_EVENTS.VIEW_EVENT_NAMES.LOGIN_STEPS.LOGIN_OPTION},n.createElement("div",{className:K.content},n.createElement("div",{className:K.header},t&&n.createElement("div",{className:K.title},n.createElement(Y.A,{variant:d.Il.heading_xl,color:d.Tj.text_primary},t)),x()&&n.createElement("div",{className:K.subtitle},n.createElement(Y.A,{variant:d.Il.headline_small,color:d.Tj.text_secondary},x()))),n.createElement("div",{className:K.buttons},n.createElement(m.A,{disabled:h,onAuthSuccess:()=>null==y?void 0:y(),hideTopLabel:!0},n.createElement(U.A,{onClick:O,"data-tapeventname":"Continue with Email"},n.createElement(W,{width:24,height:24,className:"mr-2"}),"Continue with Email"))),n.createElement("div",{className:K.terms},n.createElement(Y.A,{variant:d.Il.caption_medium,color:d.Tj.text_secondary},"By providing your email and signing up, you agree to the"," ",n.createElement("a",{href:w.XS.TERMS_OF_SERVICE,target:"_blank",rel:"noreferrer"},"Terms of Service"),","," ",n.createElement("a",{href:w.XS.PRIVACY_POLICY,target:"_blank",rel:"noreferrer"},"Privacy Policy"),", and confirm you are at least 16 years old."))));case $:return n.createElement(z.A,{data:{email:_},title:"What's your email?",subtitle:"Let's get you signed up.",showSocialAuth:!1,handleEmailValidation:C,onDataChange:B,onAuthSuccess:y});case J:return n.createElement(c.A,{data:{email:_},handleEmailValidation:C,customStyles:K});default:return null}})()))}const Q=["onContinue","onBack"];var ee=a(61119),te=a(46398),ae=a(78122),ne=a(93121),re=a(54219),ie=a(75308),le=a(78489),oe=a(95949),se=a(93203);function ue(){return(0,le.I)({queryKey:oe.A.onboardingSteps(),queryFn:async()=>(await async function(){const e="/web/experiments/variation-data",t={instance_name:"web-personalized_onboarding"},a=await se.A.executeGetRequest(e,t);return a.data}()).data})}var ce={submitUserKeys:async function(e){return(await se.A.executePostRequest("/0.13/user_keys",e)).data}},de=a(25736),me=a(76669),pe=a(35714);const he="email",fe="email_offer",be="name",ge="phone",ve="phone_verification",ye="signup_success",we="information",Ee="reviews",_e="quiz",Ae="enable_location",Se="lead_offer",Ne="ministry_match",ke="giving_paywall",Ie="checkout",Ce="payment_success",Be="download_app",xe={object:"object",data:{entities:[{name:"email-offer",type:fe,properties:{title:"Sign up to get started!",subtitle:"Let’s get you signed up.",imageUrl:"",ctaText:"Get my Free E-book",leadCampaignId:"",useMinistryMatch:!1,legalCopy:"",showSkipButton:!1,showBackButton:!1}},{type:"name",name:"name",properties:{title:"What's your name?",subtitle:"Let us know what to call you for a personalized experience.",showSkipButton:!1,showBackButton:!1}},{name:"reviews",type:Ee,properties:{title:"Real stories from over 18+ million people",reviews:[{properties:[{type:"number",label:"Rating (1-5)",name:"rating",defaultValue:5},{type:"text",label:"Author",name:"author",defaultValue:""},{type:"text",label:"Title",name:"title",defaultValue:""},{type:"text",label:"Review Text",name:"text",defaultValue:""}],rating:"5",author:"Samantha A.",title:"Continuous Prayer",text:"Really enhanced my relationship with God our Lord and Saviour and teaches us how to pray properly and has verses and many prayers for health and other struggles  Definitely recommend."},{rating:5,author:"Amanda S.",title:"Must Have",text:"This is a must have if you have a genuine plan to 
2journey through the Bible. I use the word journey on purpose here. Enjoy the words of God and meditative prayers on the daily. By all means download it right now and grow in the Faith of our creator."}],showSkipButton:!1,showBackButton:!1}},{name:"onboarding-commitment_level",type:_e,properties:{title:"How much time do you want to commit to God?",subtitle:"Our clinical tests show committing just 5 minutes a day can help.",name:"onboarding-commitment_level",viewName:"Daily Prayer Commitment",options:[{label:"5 min / day",value:"5_min_per_day"},{label:"10 min / day",value:"10_min_per_day"},{label:"15 min / day",value:"15_min_per_day"},{label:"30+ min / day",value:"30_plus_min_per_day"}],isMultiSelect:!1,showSkipButton:!0,showBackButton:!0}},{name:"onboarding-improvement_areas",type:_e,properties:{title:"Which area would you like to improve first?",subtitle:"Tap all that apply — we'll customize your path.",name:"onboarding-improvement_areas",viewName:"Wellbeing Focus",options:[{label:"Reduce stress",value:"reduce_stress"},{label:"Ease anxiety",value:"ease_anxiety"},{label:"Improve mood",value:"improve_mood"},{label:"Sleep better",value:"sleep_better"},{label:"Grow spiritually",value:"grow_spiritually"},{label:"Build meaning & purpose",value:"build_meaning_and_purpose"}],isMultiSelect:!0,showSkipButton:!0,showBackButton:!0}},{name:"onboarding-overwhelmed_frequency",type:_e,properties:{title:"How often do you feel overwhelmed?",name:"onboarding-overwhelmed_frequency",viewName:"Overwhelm Frequency",options:[{label:"I feel overwhelmed several times a week",value:"several_times_a_week"},{label:"I have a few stressful days each month",value:"few_stressful_days_per_month"},{label:"I manage and overcome stress pretty well",value:"manage_stress_well"}],isMultiSelect:!1,showSkipButton:!0,showBackButton:!0}},{name:"onboarding-support_network",type:_e,properties:{title:"How many people can you lean on for support?",subtitle:"We have tools to help you find support through tough times.",name:"onboarding-support_network",viewName:"Support Network",options:[{label:"3 or more",value:"three_or_more"},{label:"2",value:"two"},{label:"1",value:"one"},{label:"Just me",value:"just_me"}],isMultiSelect:!1,showSkipButton:!0,showBackButton:!0}},{name:"onboarding-routine_satisfaction",type:_e,properties:{title:"How happy are you with your current routine?",name:"onboarding-routine_satisfaction",viewName:"Routine Satisfaction",options:[{label:"Completely, I take care of myself well",value:"completely_satisfied"},{label:"Slightly, I'd like to see some improvements",value:"slightly_satisfied"},{label:"Not at all, I expect to see a major change",value:"not_satisfied"}],isMultiSelect:!1,showSkipButton:!0,showBackButton:!0}},{name:"onboarding-prayer_experience_level",type:_e,properties:{title:"What best describes your prayer practice?",subtitle:"Let us know how to start you off at the right pace.",name:"onboarding-prayer_experience_level",viewName:"Prayer Experience Level",options:[{label:"I'm new to prayer.",value:"new_to_prayer"},{label:"I'm returning to prayer.",value:"returning_to_prayer"},{label:"I pray regularly.",value:"pray_regularly"},{label:"I never miss a day of prayer.",value:"never_miss_a_day_of_prayer"}],isMultiSelect:!1,showSkipButton:!0,showBackButton:!0}},{name:"onboarding-spiritual_goals",type:_e,properties:{title:"What are your top spiritual goals?",subtitle:"Tap all that apply — we'll tailor your experience.",name:"onboarding-spiritual_goals",viewName:"Spiritual Goals",options:[{label:"Build a daily prayer habit",value:"build_daily_prayer_habit"},{label:"Read Scripture more consistently",value:"read_scripture_consistently"},{label:"Grow confident in how to pray",value:"grow_confident_in_prayer"},{label:"Find peace & manage stress",value:"find_peace_manage_stress"},{label:"Strengthen my marriage/family",value:"strengthen_marriage_family"},{label:"Help my kids grow in faith",value:"help_kids_grow_in_faith"},{label:"Sleep better with Scripture",value:"sleep_better_with_scripture"},{label:"Something else",value:"something_else"}],isMultiSelect:!0,showSkipButton:!0,showBackButton:!0}},{name:"onboarding-christian_background",type:_e,properties:{title:"What's your Christian background?",subtitle:"This helps us personalize prayers and devotionals.",name:"onboarding-christian_background",viewName:"Denomination",options:[{label:"Nondenominational",value:"nondenominational"},{label:"Protestant",value:"protestant"},{label:"Catholic",value:"catholic"},{label:"Orthodox",value:"orthodox"},{label:"Anglican / Episcopal",value:"anglican_episcopal"},{label:"Baptist",value:"baptist"},{label:"Methodist",value:"methodist"},{label:"Presbyterian",value:"presbyterian"},{label:"Lutheran",value:"lutheran"},{label:"Pentecostal / Charismatic",value:"pentecostal_charismatic"},{label:"Other",value:"other"},{label:"Prefer not to say",value:"prefer_not_to_say"}],isMultiSelect:!1,showSkipButton:!0,showBackButton:!0}},{name:"onboarding-age_group",type:_e,properties:{title:"What's your age group?",subtitle:"Pray.com is for 16 and up. Tell us your age group so we send you the right messages.",name:"onboarding-age_group",viewName:"Age Group",options:[{label:"16-17",value:"16_17"},{label:"18-24",value:"18_24"},{label:"25-34",value:"25_34"},{label:"35-44",value:"35_44"},{label:"45-54",value:"45_54"},{label:"55+",value:"55_plus"}],isMultiSelect:!1,showSkipButton:!1,showBackButton:!0}},{name:"onboarding-gender",type:_e,properties:{title:"What's your gender?",subtitle:"This helps give you the right content. You can skip if you'd like.",name:"onboarding-gender",viewName:"Gender",options:[{label:"Male",value:"male"},{label:"Female",value:"female"},{label:"Prefer not to say",value:"prefer_not_to_say"}],isMultiSelect:!1,showSkipButton:!0,showBackButton:!0}},{name:"onboarding-marital_status",type:_e,properties:{title:"What's your marital status?",subtitle:"We have content to help you in all stages of life. Skip if you'd like.",name:"onboarding-marital_status",viewName:"Marital Status",options:[{label:"Single",value:"single"},{label:"Married",value:"married"},{label:"Divorced",value:"divorced"},{label:"Widowed",value:"widowed"},{label:"Prefer not to say",value:"prefer_not_to_say"}],isMultiSelect:!1,showSkipButton:!0,showBackButton:!0}},{name:"onboarding-has_children",type:_e,properties:{title:"Do you have any children?",subtitle:"We have content for all ages. You can skip if you'd like.",name:"onboarding-has_children",viewName:"Children",options:[{label:"Yes",value:"yes"},{label:"No",value:"no"},{label:"Prefer not to say",value:"prefer_not_to_say"}],isMultiSelect:!1,showSkipButton:!0,showBackButton:!0}},{name:"onboarding-content_preferences",type:_e,properties:{title:"What type of content do you want to re
2ceive?",subtitle:"Tap all that apply — we'll tailor your experience.",name:"onboarding-content_preferences",viewName:"Content Type Preferences",options:[{label:"Bible in a Year",value:"bible_in_a_year"},{label:"Exciting Bible Stories",value:"exciting_bible_stories"},{label:"Prayer Plans",value:"prayer_plans"},{label:"Meditations",value:"meditations"},{label:"Daily Devotionals",value:"daily_devotionals"},{label:"Inspiring Sermons",value:"inspiring_sermons"},{label:"Bedtime Bible Stories",value:"bedtime_bible_stories"},{label:"Kids Stories",value:"kids_stories"},{label:"Celebrities Reading the Bible",value:"celebrities_reading_bible"}],isMultiSelect:!0,showSkipButton:!0,showBackButton:!0}},{name:"onboarding-ad_free_interest",type:_e,properties:{title:"Do you want an ad-free experience?",subtitle:"Pray.com is free to use, but you can support us by going ad-free.",name:"onboarding-ad_free_interest",viewName:"Ad Free Experience",options:[{label:"Yes",value:"yes"},{label:"No",value:"no"},{label:"Maybe",value:"maybe"}],isMultiSelect:!1,showSkipButton:!0,showBackButton:!0}},{name:"onboarding-free_trial_interest",type:_e,properties:{title:"Would you like a 7-day FREE trial?",subtitle:"We'll remind you to cancel before the trial ends. You can cancel anytime.",name:"onboarding-free_trial_interest",viewName:"7 Day Free Trial",options:[{label:"Yes",value:"yes"},{label:"No",value:"no"},{label:"Maybe",value:"maybe"}],isMultiSelect:!1,showSkipButton:!0,showBackButton:!0}},{name:"giving-paywall",type:ke,properties:{showSkipButton:!0,showBackButton:!0}},{name:"download-app",type:Be,properties:{title:"Continue on the App",subtitle:"Download the PRAY app on your mobile device to get the best experience. It's free.",showSkipButton:!1,showBackButton:!1}}]}};var Oe=a(40107);const Pe={[ge]:{getNextSteps:(e,t)=>t?[]:[{step:ve,props:Re(e)}]},[ke]:{getNextSteps:e=>[{step:Ie,props:Fe(e)}]},[Ie]:{getNextSteps:e=>[]}},Le={[ge]:{dependentSteps:[ve]},[ke]:{dependentSteps:[Ie,Ce]}},Re=e=>({type:ve,title:"Enter your verification code",subtitle:"We just sent a 4-digit verification code to the number you provided: ",showBackButton:!0,showSkipButton:!1,data:e}),Fe=e=>({type:Ie,formValues:e.formValues,fund:e.fund,showBackButton:!0,showSkipButton:!0}),Te=(e,t,a)=>{var n;const r=(null===(n=Le[e])||void 0===n?void 0:n.dependentSteps)||[];return t.filter((e=>!r.includes(a[e])))},Me=(e,t,a,n,r,i,l)=>{if(l)return{steps:Te(t,a,n),stepProps:r,stepTypes:n};const o=((e,t,a)=>{const n=Pe[e];return n?n.getNextSteps(t,a):[]})(t,i,l);if(0===o.length)return{steps:a,stepProps:r,stepTypes:n};const s=((e,t,a)=>{const n=e.indexOf(t),r=e.slice(0,n+1),i=e.slice(n+1).filter((e=>!a.some((t=>t.step===e))));return[].concat((0,Oe.A)(r),(0,Oe.A)(a.map((e=>e.step))),(0,Oe.A)(i))})(a,e,o),u=((e,t)=>Object.assign({},e,t.reduce(((e,t)=>{let{step:a,props:n}=t;return Object.assign({},e,{[a]:n})}),{})))(r,o),c=((e,t)=>Object.assign({},e,t.reduce(((e,t)=>{let{step:a}=t;return Object.assign({},e,{[a]:a})}),{})))(n,o);return{steps:s,stepProps:u,stepTypes:c}};const Ve={[he]:function(e){let{onContinue:t,onBack:a}=e,r=(0,u.A)(e,Q);const{title:i,subtitle:l,hasLogo:o,hasAppBar:c,showBackButton:d,showSkipButton:m}=r,{isUserRegistered:p}=(0,C.A)();(0,n.useEffect)((()=>{p&&t({isSkipped:!0})}),[p]);const f=n.createElement(h.A,{style:{paddingRight:0},onClick:()=>t({isSkipped:!0})},"Skip");return p?null:n.createElement(X,{title:i,subtitle:l,route:"/onboarding",isShowSubtitle:!0,isShowLogo:o,isShowAppBar:c,isWebSubscribeFlow:!1,registerViewName:s.qY.PRAY_EVENTS.VIEW_EVENT_NAMES.ONBOARDING_FLOW.LOGIN_STEP,appBarRightComponent:m&&f,onSuccess:t,onBack:d&&a})},[fe]:function(e){let{form:t,onContinue:a,onBack:r}=e,i=(0,u.A)(e,B);const{title:o,subtitle:s,hasLogo:f,hasAppBar:b,leaderId:g,leaderName:T,legalCopy:M,showBackButton:V,showSkipButton:q}=i,{0:j,1:W}=(0,n.useState)(!1),D=(0,E.A)(),{isUserRegistered:U}=(0,C.A)(),G=D&&U,{0:Y,1:H}=(0,n.useState)(x),{data:z,isLoading:K}=(0,_.n)({leaderId:g,placement:"superfunnel"}),Z=!!g&&K,$=(0,n.useMemo)((()=>(0,I.B9)(t.values.email)&&!j&&!Z),[t.values.email,j,Z]),J=(null==z?void 0:z.leadCampaignId)||i.leadCampaignId,X=(null==z?void 0:z.imageUrl)||i.imageUrl,Q=(null==T?void 0:T.trim())||"";(0,n.useEffect)((()=>{J&&t.setValue("leadCampaignId",J)}),[J]);const ee=async()=>{const{email:e}=t.values;if((0,I.B9)(e))try{var n;W(!0);const t=window.location.pathname+window.location.search,[r,l]=t.split("?"),o=await(0,S.Fv)({email:e,customRoute:r,queryParams:l,isWebSubscribeFlow:!1,isTriggerLeadEvent:!1,registerViewName:w.qY.PRAY_EVENTS.VIEW_EVENT_NAMES.ONBOARDING_FLOW.LOGIN_STEP});if(!(null===(n=null==o?void 0:o.isEmailAvailable)||void 0===n||n))return W(!1),void H(P);try{const t={email:e,lead_campaign_id:J},a=!0;N.A.trackEventSubmitForm(w.qY.PRAY_EVENTS.SUBMIT_FORM_EVENT_NAMES.EMAIL_LEAD,t,a)}catch(i){k.A.error("EmailOfferOnboardingStep: failed to track event",i)}a()}catch(i){var r;k.A.error("EmailOfferOnboardingStep: failed to validate email or register user",i);429===(null==i||null===(r=i.response)||void 0===r?void 0:r.status)?t.setError("email","Too many attempts. Please wait a moment and try again."):t.setError("email","Something went wrong. Please try again.")}finally{W(!1)}else t.setError("email","Please enter a valid email address")},te=async()=>{const{email:e}=t.values,a=(0,A.uU)()?window.location.pathname+window.location.search:"/onboarding",[n,r]=a.split("?");await(0,S.Fv)({email:e,customRoute:n,queryParams:r,isWebSubscribeFlow:!1,registerViewName:w.qY.PRAY_EVENTS.VIEW_EVENT_NAMES.ONBOARDING_FLOW.LOGIN_STEP})},ae=n.createElement(h.A,{style:{paddingRight:0},onClick:()=>a({isSkipped:!0})},"Skip"),ne=(0,n.useMemo)((()=>V||Y===O?()=>{Y===O?H(x):V&&(null==r||r())}:null),[Y,V,r]);if(Y===P){const e={email:t.values.email};return n.createElement(c.A,{data:e,handleEmailValidation:te,customStyles:{}})}return n.createElement("div",(()=>{const e={};return D&&!K&&(e["data-viewname"]=w.qY.PRAY_EVENTS.VIEW_EVENT_NAMES.ONBOARDING_FLOW.EMAIL_OFFER_STEP,J&&(e["data-eventprops"]=(0,l.hz)({lead_campaign_id:J,lead_campaign_name:null==z?void 0:z.title}))),e})(),b&&n.createElement(p.A,{center:f&&n.createElement(v.A,null),right:q&&ae,onBack:ne}),n.createElement("div",{className:"flex w-full flex-col items-stretch justify-start pt-4"},n.createElement("div",{className:"mx-auto w-full max-w-[420px] px-4 pb-12"},!G&&n.createElement(n.Fragment,null,n.createElement("div",{className:"mb-2"},n.createElement(y.A,{variant:d.Il.heading_xl},o)),n.createElement("div",{className:"mb-5"},n.createElement(y.A,{color:d.Tj.text_secondary},s))),n.createElement("div",{className:"flex flex-col gap-3"},!G&&Y===x&&n.createElement(n.Fragment,null,n.createElement(F,{form:t,isCtaEnabled:$,isSubmitting:j,handleSubmit:ee}),n.createElement("div",{className:"flex items-center gap-4"},n.createElement("div",{className:"h-px w-full bg-white/20"}),n.createElement(y.A,{color:d.Tj.text_secondary,variant:d.Il.footnote},"OR"),n.createElement("div",{className:"h-px w-full bg-white/20"})),n.createElement(m.A,{hideTopLabel:!0,onAuthSuccess:(e,n)=>{try{const{displayName:e,email:r}=n,i=(0,I.uV)(e),{firstName:l,lastName:o}=(0,A.F9)(e);i&&l&&o&&(t.setValue("email",r),t.setValue("firstName",l),t.setValue("lastName",o)),a()}catch(r){k.A.error("EmailOfferOnboardingStep: failed to handle auth success",r)}},onAuthError:e=>{const{email:a=""}=(0,A.Ah)(e,"email")||{};(0,I.B9)(a)&&t.setValue("email",a),H(O)}})),Y===O&&n.createElement(F,{form:t,isCtaEnabled:$,isSubmitting:j,handleSubmit:ee}),G&&n.createElement("div",{className:"!sticky bottom-0 h-16 w-full bg-pray-primary pt-2 sm:!static sm:px-0"},n.createElement(h.A,{disabled:!$,loading:j,variant:d.Uo.variant.primary,className:"w-full",onClick:a},"Continue")),n.createElement(R,{isUserRegistered:G}),J&&n.createElement(L,{form:t,imageUrl:X,legalCopy:M,ministryName:Q})))))},[be]:(0,n.lazy)((()=>Promise.all([a.e(1869),a.e(8446)]).then(a.bind(a,88446)))),[ge]:(0,n.lazy)((()=>Promise.all([a.e(1869),a.e(2739),a.e(3530)]).then(a.bind(a,83530)))),[ve]:(0,n.lazy)((()=>Promise.all([a.e(1869),a.e(432)]).then(a.bind(a,60432)))),[ye]:(0,n.lazy)((()=>Promise.all([a.e(1869),a.e(8086)]).then(a.bind(a,18086)))),[we]:(0,n.lazy)((()=>Promise.all([a.e(7254),a.e(528)]).then(a.bind(a,528)))),[Ee]:(0,n.lazy)((()=>a.e(2169).then(a.bind(a,12169)))),[_e]:(0,n.lazy)((()=>
2Promise.all([a.e(1869),a.e(5317)]).then(a.bind(a,95317)))),[Ae]:(0,n.lazy)((()=>Promise.all([a.e(1869),a.e(1111)]).then(a.bind(a,31111)))),[Se]:(0,n.lazy)((()=>Promise.all([a.e(1869),a.e(632)]).then(a.bind(a,20632)))),[Ne]:(0,n.lazy)((()=>a.e(4686).then(a.bind(a,24686)))),[ke]:(0,n.lazy)((()=>Promise.all([a.e(1869),a.e(3928),a.e(7860)]).then(a.bind(a,7860)))),[Ie]:(0,n.lazy)((()=>Promise.all([a.e(1869),a.e(3139),a.e(3928),a.e(9528),a.e(287),a.e(4348)]).then(a.bind(a,84348)))),[Ce]:(0,n.lazy)((()=>Promise.all([a.e(1869),a.e(8805)]).then(a.bind(a,88805)))),[Be]:(0,n.lazy)((()=>Promise.all([a.e(1869),a.e(1270),a.e(7619)]).then(a.bind(a,67619))))};function qe(){const{form:e,currentStepType:t,currentStepProps:a,artistData:r,moveForward:i,moveBackward:u}=function(){const{leader_id:e}=(0,pe.JO)(),{data:t,error:a}=ue(),{saveUserLocation:r}=(0,ie.a)(),{data:i,isLoading:l}=(0,ae.p)({artistId:e}),o=(0,te.A)({product:s.N,shouldFetchProductDetails:!1,shouldFetchActiveProduct:!1,shouldRedirectSubscribedUsers:!1}),{0:u,1:c}=(0,n.useState)([]),{0:d,1:m}=(0,n.useState)(0),{0:p,1:h}=(0,n.useState)({}),{0:f,1:b}=(0,n.useState)({}),{0:g,1:v}=(0,n.useState)({userRegistered:!1,leadCreated:!1,userNameUpdated:!1,userLocationSaved:!1,userKeysSubmitted:{}});(0,ne.o)(e);const y=H.A.getUser(),w=(0,ee.A)({name:"",firstName:"",lastName:"",email:"",phone:"",countryCode:"",country:"",code:"",latitude:"",longitude:"",userKeys:{},leadOffer:null,leadOfferOptedIn:!0,leadCampaignId:""});(0,n.useEffect)((()=>{null!=y&&y.name&&w.setValue("firstName",y.name),null!=y&&y.first_name&&w.setValue("firstName",y.first_name),null!=y&&y.last_name&&w.setValue("lastName",y.last_name),null!=y&&y.email&&w.setValue("email",y.email)}),[null==y?void 0:y.name,null==y?void 0:y.first_name,null==y?void 0:y.last_name,null==y?void 0:y.email]),(0,n.useEffect)((()=>{let e=xe.data.entities;Array.isArray(e)&&e.some((e=>{let{type:t}=e;return"email_offer"===t}))&&(e=e.filter((e=>{let{type:t}=e;return"email"!==t}))),c(e.map((e=>e.name))),h(e.reduce(((e,t)=>Object.assign({},e,{[t.name]:t.properties})),{})),b(e.reduce(((e,t)=>Object.assign({},e,{[t.name]:t.type})),{}))}),[t,a]);const E=()=>{_(),N(),C(),B(),I()},_=()=>{if(g.userRegistered)return;const{phone:e,countryCode:t,code:a}=w.values;if(!y.is_registered&&t&&e&&a)try{(0,S.kz)({country_code:t,phone:e,code:a}),v((e=>Object.assign({},e,{userRegistered:!0})))}catch(n){k.A.error("OnboardingFlow: failed to register user",n)}},N=async()=>{const{leadOfferOptedIn:e,firstName:t,lastName:a,email:n,leadCampaignId:r}=w.values;if(!g.leadCreated&&r&&e&&n)try{await re.A.createLead({email:n,firstName:t,lastName:a,leadCampaignId:r}),v((e=>Object.assign({},e,{leadCreated:!0})))}catch(i){k.A.error("OnboardingFlow: failed to create lead",i)}},I=()=>{const{userKeys:e}=w.values;if(Object.keys(e).length>0){if(Object.keys(e).every((e=>g.userKeysSubmitted[e])))return;try{ce.submitUserKeys(e);const t=Object.keys(e).reduce(((e,t)=>Object.assign({},e,{[t]:!0})),g.userKeysSubmitted);v((e=>Object.assign({},e,{userKeysSubmitted:t})))}catch(t){k.A.error("OnboardingFlow: failed to submit user keys",t)}}},C=()=>{if(g.userNameUpdated)return;const{name:e}=w.values;if(e.trim()&&!y.name)try{de.A.updateUser(y.id,{name:e}),v((e=>Object.assign({},e,{userNameUpdated:!0})))}catch(t){k.A.error("OnboardingFlow: failed to update user name",t)}},B=()=>{if(g.userLocationSaved)return;const{latitude:e,longitude:t}=w.values;if(e&&t)try{r({latitude:e,longitude:t}),v((e=>Object.assign({},e,{userLocationSaved:!0})))}catch(a){k.A.error("OnboardingFlow: failed to save user location",a)}},x=u[d],O=f[x],P=p[x]||{},L="download_app"===O&&null!=i&&i.name?"Follow "+i.name+" on the App":P.title,R=Object.assign({},P,L&&{title:L},{hasLogo:!0,hasAppBar:!0,leaderId:e,leaderName:null==i?void 0:i.name,onboardingType:e?"superfunnel":"",product:o});return{form:w,currentStep:x,currentStepType:O,currentStepProps:R,isArtistLoading:l,artistData:i,moveForward:async function(e){let{stepData:t={},isSkipped:a=!1}=void 0===e?{}:e;const n=u[d],r=f[n],{steps:i,stepProps:l,stepTypes:o}=Me(n,r,u,f,p,t,a);c(i),h(l),b(o),E(),d<i.length-1?m(d+1):(0,A.rr)()&&!a||(0,me.oo)("/discover")},moveBackward:()=>{d>0&&m(d-1)}}}(),c=Ve[t];if(!c)return null;const d={"data-viewname":s.qY.PRAY_EVENTS.VIEW_EVENT_NAMES.PAGES.ONBOARDING};return r&&(d["data-eventprops"]=(0,l.hz)({artist_id:r.id,artist_name:r.name})),n.createElement("div",d,n.createElement(n.Suspense,{fallback:null},n.createElement(c,Object.assign({form:e,onContinue:i,onBack:u},a))),n.createElement(o.A,{handleSuccessfulLogin:i}))}const je="/onboarding/";function We(){return n.createElement("div",null,n.createElement(i.A,{canonicalPath:je}),n.createElement(r.A,{canonicalPath:je}),n.createElement(qe,null))}},93121:function(e,t,a){a.d(t,{o:function(){return o}});var n=a(78489),r=a(95949),i=a(93203),l=a(99723);function o(e){const t=(0,n.I)({enabled:!!e,queryKey:r.A.leaderFund(e),staleTime:9e5,queryFn:async()=>async function(e){if(!e)return null;
2try{const t=await i.A.executeGetRequest("/web/artists/"+e+"/donation-fund"),{fund:a}=t.data.data||{};return a||null}catch(t){return l.A.error("Failed to get leader fund",t),null}}(e)});return t}},96158:function(e,t,a){a.d(t,{m:function(){return u},n:function(){return s}});var n=a(78489),r=a(95949),i=a(93203),l=a(99723);function o(e){return{leadCampaignId:e.id,title:e.title,subtitle:e.subtitle,imageUrl:e.image_url,buttonText:e.button_text}}function s(e){let{leaderId:t,placement:a}=e;return(0,n.I)({enabled:!!t,queryKey:r.A.leaderOffer(t),staleTime:9e5,queryFn:async()=>async function(e){let{leaderId:t,placement:a}=e;if(!t)return null;try{var n,r,s;const e={limit:1,platform:"web"};a&&(e.placement=a);const l="/web/artists/"+t+"/lead-campaigns",u=null!==(n=null===(r=(await i.A.executeGetRequest(l,e)).data)||void 0===r||null===(s=r.data)||void 0===s?void 0:s[0])&&void 0!==n?n:null;return u?o(u):null}catch(u){return l.A.error("Failed to get leader offer",u),null}}({leaderId:t,placement:a})})}function u(e){return(0,n.I)({enabled:!!e,queryKey:r.A.leaderLeadCampaigns(e),staleTime:9e5,queryFn:async()=>async function(e){let{leaderId:t}=e;if(!t)return[];try{var a,n;const e={limit:10,platform:"web",placement:"superfunnel"},r="/web/artists/"+t+"/lead-campaigns";return(null!==(a=null===(n=(await i.A.executeGetRequest(r,e)).data)||void 0===n?void 0:n.data)&&void 0!==a?a:[]).map(o)}catch(r){return l.A.error("Failed to get leader lead campaigns",r),[]}}({leaderId:e})})}},98183:function(e,t,a){a.d(t,{A:function(){return o}});class n extends Error{}function r(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let a=t.charCodeAt(0).toString(16).toUpperCase();return a.length<2&&(a="0"+a),"%"+a})))}(t)}catch(a){return atob(t)}}n.prototype.name="InvalidTokenError";var i=a(14041),l=a(99723);function o(e){const t=(0,i.useMemo)((()=>{if(!e)return{isValid:!1,data:null,error:null};try{const t=function(e,t){if("string"!=typeof e)throw new n("Invalid token specified: must be a string");t||(t={});const a=!0===t.header?0:1,i=e.split(".")[a];if("string"!=typeof i)throw new n(`Invalid token specified: missing part #${a+1}`);let l;try{l=r(i)}catch(o){throw new n(`Invalid token specified: invalid base64 for part #${a+1} (${o.message})`)}try{return JSON.parse(l)}catch(o){throw new n(`Invalid token specified: invalid json for part #${a+1} (${o.message})`)}}(e);if(!t.exp)return{isValid:!1,data:null,error:"Token is missing expiration"};const a=Math.floor(Date.now()/1e3);return t.exp<a?{isValid:!1,data:null,error:"Token has expired"}:t.product_id&&t.user_id?{isValid:!0,data:t,error:null}:{isValid:!1,data:null,error:"Token is missing required fields"}}catch(t){return l.A.error("Failed to decode product bundle token",t),{isValid:!1,data:null,error:"Invalid token format"}}}),[e]);return t}}}]);

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.