1import{u as F,b as O,a6 as k,r,a7 as M,kk as g,j as e,J as T,M as c,at as v,V as L,a9 as E}from"./index-D3vd3SFc.js";import{a as $}from"./SetupContext-J_TbKc2P.js";import{a as R,R as f}from"./ListingPageComponents-D-C80kVv.js";import U from"./PrewallAndPaywall-BMu8Kxm7.js";import{P as V}from"./index-vmYwq6eD.js";import"./caret_purple_down-Bnr-yQue.js";import"./play_store-9Je-3-9d.js";import"./sharedPrimitives-CytiVDYr.js";import"./index-CoEkYVuj.js";import"./formatCount-C03Bj8O1.js";import"./People-C6y2ZSPt.js";import"./courseCardHelper-Bji_RoeL.js";import"./ServiceProvidersListingComponents-BQ6TD3c1.js";import"./ServiceProvidersListingComponentsStyles-COfcUo_A.js";import"./react-infinite-scroll-hook.esm-BV3TDFIA.js";import"./Delete-DSAyN8cZ.js";import"./SignaturePad-BRlz8Z9M.js";import"./CloudUpload-CxW4bQaR.js";import"./PictureUploadComponent-D8IGhhMc.js";import"./AddPhotoAlternate-Bom3qDeO.js";import"./useImageUpload-okWlBGRy.js";import"./faq_utils-NXWA3xn2.js";import"./Skeleton-VnO6oAFu.js";import"./MentorCardPortrait-DfMdiszD.js";import"./stripe_logo-BbPlmOd7.js";import"./premium_logo-BtAMsLZD.js";import"./unlimited_star-kXy_8OwH.js";import"./confirmationTickLottie-8tieR1Wz.js";import"./paymentService-Cv2WD-ZO.js";import"./BookingHelperFunctions-5qoYwPgF.js";import"./EventBookingStyles-C34ohKFe.js";import"./MyPlanComponents-BS0nTjqQ.js";import"./index.esm-Cmu8y2v2.js";import"./MyPlanStyles-DOKtVXNy.js";import"./green_filled_tick-BKXPY__Q.js";import"./PrewallAndPaywallStyles-BAJtLH5j.js";import"./PublicAppFooterStyles-C6SSpKoB.js";import"./MyPlanComponents-BlopWWlE.js";function yt(){const a=F(),{id:l,slug:s}=O(),{state:B}=k(),{profileData:x}=r.useContext(M),{setupData:C}=r.useContext($),[t,S]=r.useState(),[b,n]=r.useState(!1),[j,A]=r.useState(!1),[I,i]=r.useState(!1),[y,m]=r.useState("login");r.useEffect(()=>{P()},[]);async function P(){var p,d,u;n(!0);let o;s?o=await g("technique",s,!0):o=await g("technique",l,!1),(o==null?void 0:o.status)===200&&(o!=null&&o.data)&&((p=Object.keys(o==null?void 0:o.data))==null?void 0:p.length)!==0?(S((u=(d=o==null?void 0:o.data)==null?void 0:d.data)==null?void 0:u.technique),n(!1)):a("/404")}const w=()=>{if(E(localStorage.getItem("token")))i(!0);else{const o={item:t};s?a(`/timer/${s}`,{state:o}):a(`/timer/i/${l}`,{state:o})}};return console.log(t),e.jsxs(e.Fragment,{children:[t&&e.jsx(T,{title:`Take a ${t==null?void 0:t.title} Test | AUMHUM`,description:`${t==null?void 0:t.description}`,image:t&&c((t==null?void 0:t.coverIcon)||(t==null?void 0:t.coverImage))}),b?e.jsx(v,{bgColor:"#F5F5F599",dark:!0}):e.jsxs(e.Fragment,{children:[e.jsx(V,{config:{showLinks:!1},loginFunction:()=>{m("login"),i(!0)},registerFunction:()=>{m("signup"),i(!0)},propUserProfileData:x}),e.jsx(L,{open:I,onClose:()=>i(!1),loginVariant:y==="login"}),e.jsx(U,{id:"journal_play",secureData:C,wallIsOpen:j,toggleWall:()=>{A(o=>!o)},onSuccessfulPaymentFunction:()=>window.location.reload()}),e.jsx(R,{headline:(t==null?void 0:t.title)||"",description:(t==null?void 0:t.description)||"",image:c(t==null?void 0:t.coverIcon,t==null?void 0:t.coverImage),actionButtonText:"Start Practice",clickFunction:t!=null&&t.sadhana?()=>w():null}),(t==null?void 0:t.hasCourse)&&e.jsx(f,{courseCategory:"meditation",techniqueId:t==null?void 0:t.id,featuresArrayInOrder:["course"]}),(t==null?void 0:t.hasCourse)&&e.jsx(f,{courseCategory:"therepy",techniqueId:t==null?void 0:t.id,featuresArrayInOrder:["course"]})]})]})}export{yt as default}; 2//# sourceMappingURL=TechniquePage-Cf1TKa63.js.map
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.