{"version":3,"file":"utils.DXyCghvk.mjs","names":[],"sources":["https:/framerusercontent.com/modules/QpOoYf0VoKxAsewhEzOg/dOrwxSh5eP8GpMY68UQ3/utils.js"],"sourcesContent":["// Shared function to get content variant (client-side only)\nexport const getContentVariant=()=>{// Make sure we're in the browser\nif(typeof window===\"undefined\"){return\"default\";}// Check URL parameters first\nconst urlParams=new URLSearchParams(window.location.search);const urlVariant=urlParams.get(\"loss-type\");const circumstances=urlParams.get(\"circumstances\");// Store all parameters\nif(urlParams.has(\"name\")){localStorage.setItem(\"name\",urlParams.get(\"name\"));}if(urlParams.has(\"email\")){localStorage.setItem(\"email\",urlParams.get(\"email\"));}if(urlParams.has(\"circumstances\")){localStorage.setItem(\"circumstances\",urlParams.get(\"circumstances\"));}if(urlParams.has(\"help-needed\")){localStorage.setItem(\"helpNeeded\",urlParams.get(\"help-needed\"));}if(urlParams.has(\"loss-type\")){localStorage.setItem(\"lossType\",urlParams.get(\"loss-type\"));}if(urlParams.has(\"circumstances\")){localStorage.setItem(\"circumstances\",urlParams.get(\"circumstances\"));}// Priority logic for content selection:\n// 1. If circumstances is 'suicide' or 'illness', use that (unless both are somehow selected)\n// 2. Otherwise, use loss-type\n// 3. Fall back to stored values\n// 4. Default\nlet selectedVariant=\"default\";// Handle circumstances first (highest priority)\nif(circumstances){if(circumstances===\"suicide\"&&CONTENT_CONFIG.suicide){selectedVariant=\"suicide\";}else{// Fall back to loss-type for other circumstances that don't trump\nif(urlVariant&&CONTENT_CONFIG[urlVariant]){selectedVariant=urlVariant;}}}else if(urlVariant&&CONTENT_CONFIG[urlVariant]){selectedVariant=urlVariant;}else{const storedVariant=localStorage.getItem(\"selectedVariant\");if(storedVariant&&CONTENT_CONFIG[storedVariant]){selectedVariant=storedVariant;}}localStorage.setItem(\"selectedVariant\",selectedVariant);return selectedVariant;};export const CONTENT_CONFIG={default:{heading:\"\",heroText:\"We're here for you. You don't need to go through this alone.\",heroParagraph:\"The loss of someone dear can leave you feeling lost, overwhelmed, and alone. You don't need to carry this pain alone. We're here to support you.\",videoUrl:\"https://storage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4\",// Using more reliable placeholder service or remove poster entirely\ntestimonial:\"\\\"I've been searching for a therapist online and in person after losing my husband 2.5yrs ago. I've tried a few things but they weren't meeting my needs. Grief Works showed up in my feed when I was struggling. I took it as a sign. I'm so glad I did.  I'm finally getting the help and resources I need with the app and community.  This is a life changing, life saving programme.\\\"\",testimonialSender:\"Stacey\"},partner:{heading:\"We're so sorry your partner died.\",heroText:\"We're here for you. You don't need to go through this alone.\",heroParagraph:\"We know you shared your love, your routines, and your plans with them and their absence can feel unbearable. We're here to support you through this.\",videoUrl:\"https://storage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4\",testimonial:\"\\\"You helped me after my husband died. I was so very lost. I was stuck in a bottomless pit of despair. Suddenly, I did not feel so terribly alone. Every night, I sat in bed listening to each day's 'lessons'. You were my safe and reassuring guide. You have given me strength. Thank you from the bottom of my heart.\\\"\",testimonialSender:\"Christine\"},parent:{heading:\"We're so sorry your parent died.\",heroText:\"We're here for you. You don't need to go through this alone.\",heroParagraph:\"Losing the person who shaped your earliest sense of safety can feel like losing the ground beneath you. Their absence can stir both love and longing. We're here to support you through this.\",videoUrl:\"https://storage.googleapis.com/gtv-videos-bucket/sample/ForBiggerMeltdowns.mp4\",testimonial:'\"My therapist recommended Grief Works to me. I am so grateful she did. I lost both my parents and going through the sessions and exercises has brought a lot of peace to my heart. I highly recommend it to all who are grieving.\"',testimonialSender:\"Sora\"},child:{heading:\"We're so sorry your child died.\",heroText:\"We're here for you. You don't need to go through this alone.\",heroParagraph:\"Nothing can prepare you for grief that breaks the natural order and shakes your trust in life itself. The love and the pain are both immense. We're here to help you through this.\",videoUrl:\"https://storage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4\",testimonial:'\"Grief Works has totally changed me. It\\'s like someone has picked me up, dusted me down and everything is starting to make sense to me now. Am able to begin accepting my loss. (My son passed in November 2019). I was just stumbling through blind and having no idea how to deal with the loss of my son. Am now getting there. Thank you Grief Works.\"',testimonialSender:\"Susan\"},sibling:{heading:\"We're so sorry your sibling died.\",heroText:\"We're here for you. You don't need to go through this alone.\",heroParagraph:\"Siblings carry childhood memories and part of your story, and losing them can feel like losing a piece of yourself.\",videoUrl:\"https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4\",testimonial:'\"I lost my brother to aggressive cancer and was devastated. Grief Works helped me understand grief, feel less alone, and begin healing. Julia’s guidance is a ray of light and a true life saver.\"',testimonialSender:\"James\"},friend:{heading:\"We're so sorry your friend died.\",heroText:\"We're here for you. You don't need to go through this alone.\",heroParagraph:\"A true friend know you in a way no one else does, and their absence can leave you feeling untethered. We can work through this together.\",videoUrl:\"https://storage.googleapis.com/gtv-videos-bucket/sample/WeAreGoingOnBullrun.mp4\",testimonial:'\"In the depths of my grief a friend recommended Grief Works. I am eternally grateful. The tools helped me through my saddest, loneliest times, when the pain of my grief was unbearable. It\\'s money well spent and is helping me through the most difficult time of my life. Thank you.\"',testimonialSender:\"Catherine\"},unborn:{heading:\"We’re so sorry your baby has died.\",heroText:\"We're here for you. You don't need to go through this alone.\",heroParagraph:\"Whether you had just begun to imagine their life or already felt them grow, your bond was real and so is your grief.\",videoUrl:\"https://storage.googleapis.com/gtv-videos-bucket/sample/SampleVideo_1280x720_1mb.mp4\",testimonial:'\"This course helped me heal grief I carried for decades after losing my first husband and stillborn daughter. It showed me love can continue while I build a new life.\"',testimonialSender:\"Gwenda\"},suicide:{heading:\"\",heroText:\"We're here for you. You don't need to go through this alone.\",heroParagraph:\"We’re so sorry for your loss. A death by suicide can bring shock, guilt, anger, and questions with no answers. Please be kind to yourself, as this grief can feel especially heavy and isolating. We're here to help you through this.\",videoUrl:\"https://storage.googleapis.com/gtv-videos-bucket/sample/SubaruOutbackOnStreetAndDirt.mp4\",testimonial:\"\\\"My husband died two months ago, at the age of 56. I could see no hope. I signed up to Grief Works. I can't really explain it other than I felt that someone really understood the agony I was in. I'm not sure I would be here had it not been for Grief Works.\\\"\",testimonialSender:\"Sarah\"},illness:{heading:\"\",heroText:\"We're here for you. You don't need to go through this alone.\",heroParagraph:\"We’re so sorry for what you’ve been through. Sometimes grief begins long before death, with the weight of fear and helplessness. The exhaustion of holding on can feel unbearable. You don’t have to carry it by yourself.\",videoUrl:\"https://storage.googleapis.com/gtv-videos-bucket/sample/TearsOfSteel.mp4\",testimonial:'\"After my husband\\'s long illness and passing, I was traumatized. Grief Works guided me through modules that helped me move forward. It feels like support is always there for me.\"',testimonialSender:\"\"},supporting:{heading:\"\",heroText:\"We know how painful it is to watch someone you love struggle with grief.\",heroParagraph:\"You want to help but words often don't feel like enough. Gifting Grief Works gives them expert, compassionate support whenever they need it.\",videoUrl:\"https://storage.googleapis.com/gtv-videos-bucket/sample/VolkswagenGTIReview.mp4\",testimonial:'\"Be assured, the Grief Works App is absolutely for everyone. As a retired clinician, I wondered if I would truly find it helpful or somehow get caught up in my own professional bias. It was, however, easy to find that the practice was well-designed by very kind and thoughtful professionals to meet the needs of any individual experiencing grief or mourning. Grief Works has been an important part of my own work in understanding how I have been impacted by loss, and I urge you to consider it for your personal work as well. The only bias I’m aware of is now being clear it is the best app of its kind available, and I recommend Grief Works without hesitation.\"',testimonialSender:\"Allie\"},therapist:{heading:\"\",heroText:\"We’re so grateful for the work you do.\",heroParagraph:\"Holding space for others through deep loss is deeply meaningful, but can also be emotionally demanding. We hope we can provide you support and tools for both you and your clients.\",videoUrl:\"https://storage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4\",testimonial:'\"Be assured, the Grief Works App is absolutely for everyone. As a retired clinician, I wondered if I would truly find it helpful. It was, however, easy to find that the practice was well-designed by very kind and thoughtful professionals to meet the needs of any individual experiencing grief. Grief Works has been an important part of my own work in understanding how I have been impacted by loss, and I urge you to consider it for your personal work as well. The only bias I’m aware of is now being clear it is the best app of its kind available, and I recommend Grief Works without hesitation.\"',testimonialSender:\"Allie\"}};\nexport const __FramerMetadata__ = {\"exports\":{\"getContentVariant\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CONTENT_CONFIG\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./utils.map"],"mappings":"2JACa,MAAsB,CACnC,GAAU,IAAS,OAAa,MAAM,UACtC,IAAM,EAAU,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAO,EAAW,EAAU,IAAI,YAAY,CAAO,EAAc,EAAU,IAAI,gBAAgB,CACvJ,EAAU,IAAI,OAAO,EAAE,aAAa,QAAQ,OAAO,EAAU,IAAI,OAAO,CAAC,CAAK,EAAU,IAAI,QAAQ,EAAE,aAAa,QAAQ,QAAQ,EAAU,IAAI,QAAQ,CAAC,CAAK,EAAU,IAAI,gBAAgB,EAAE,aAAa,QAAQ,gBAAgB,EAAU,IAAI,gBAAgB,CAAC,CAAK,EAAU,IAAI,cAAc,EAAE,aAAa,QAAQ,aAAa,EAAU,IAAI,cAAc,CAAC,CAAK,EAAU,IAAI,YAAY,EAAE,aAAa,QAAQ,WAAW,EAAU,IAAI,YAAY,CAAC,CAAK,EAAU,IAAI,gBAAgB,EAAE,aAAa,QAAQ,gBAAgB,EAAU,IAAI,gBAAgB,CAAC,CAK7iB,IAAI,EAAgB,UACpB,GAAG,EAAkB,IAAgB,WAAW,EAAe,QAAS,EAAgB,UACrF,GAAY,EAAe,KAAa,EAAgB,WAAsB,GAAY,EAAe,GAAa,EAAgB,MAAgB,CAAC,IAAM,EAAc,aAAa,QAAQ,kBAAkB,CAAI,GAAe,EAAe,KAAgB,EAAgB,GAAwE,OAAxD,aAAa,QAAQ,kBAAkB,EAAgB,CAAQ,GAA+B,EAAe,CAAC,QAAQ,CAAC,QAAQ,GAAG,SAAS,+DAA+D,cAAc,mJAAmJ,SAAS,6EAC3pB,YAAY,4XAA8X,kBAAk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