PageSourceSearch

https://www.mykeeper.com/_next/static/chunks/0pan6yi~i8e18.js

js mykeeper.com collected 2026-10-01 11:53:00 UTC 34,460 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,438166,e=>{"use strict";e.s(["buildShopifyThankYouReturnUrl",0,({locale:e,isBasicReceipt:t=!1,returnUrl:r=null})=>{let a=new URL(`https://${window.location.host}/${e}/thank-you`);return t&&a.searchParams.set("basic","true"),a.searchParams.set("checkout","1"),r&&a.searchParams.set("return_url",r),a.toString()},"buildThankYouPath",0,({pathname:e,isBasicReceipt:t=!1,returnUrl:r=null,includeCheckout:a=!1})=>{let o=new URLSearchParams;t&&o.set("basic","true"),a&&o.set("checkout","1"),r&&o.set("return_url",r);let l=o.toString();return l?`${e}?${l}`:e}])},74374,208305,613715,168676,727647,363209,e=>{"use strict";var t=e.i(505888);let r={isMemorialShopFeatureEnabled:!1,memorial:null,memorialProfile:null,isMemorialLoading:!1,isMemorialContextActive:!1,selectMemorialByUuid:()=>{},clearMemorialContext:()=>{}},a=(0,t.create)(e=>({snapshot:r,setSnapshot:t=>{e({snapshot:t})},reset:()=>e({snapshot:r})}));e.s(["getMemorialShopSnapshot",0,()=>a.getState().snapshot,"useMemorialShopStore",0,a],208305);var o=e.i(768285),l=e.i(238712),i=e.i(638005),n=e.i(392919),s=e.i(203828),u=e.i(191788),c=e.i(186931);let d="keeper-memorial-shop-context",f="keeper-memorial-shop-context-dismissed",h=e=>{try{return window.sessionStorage.getItem(e)}catch{return null}},p=(e,t)=>{try{null===t?window.sessionStorage.removeItem(e):window.sessionStorage.setItem(e,t)}catch{}};var m=e.i(736344);let g=()=>a(e=>e.snapshot);e.s(["MemorialShopController",0,()=>{let e=(()=>{let{query:e,pathname:t,isReady:r}=(0,s.useRouter)(),[a,m]=(0,u.useState)(null),g=(0,u.useCallback)(e=>{m(t=>t?.username===e?.username&&t?.uuid===e?.uuid?t:e)},[]),x=(0,n.useFeatureIsOn)("memorial-shop-context"),C=t.startsWith("/shop");(0,u.useEffect)(()=>{if(!x||!r||!C)return;let t="string"==typeof e?.username?e.username:null,a=h(f);if(t&&t!==a){p(d,JSON.stringify({username:t})),p(f,null),g({username:t});return}g((()=>{let e=h(d);if(!e)return null;try{let t=JSON.parse(e);if(t?.username||t?.uuid)return t;return null}catch{return null}})())},[x,r,C,e?.username]);let y=t.startsWith("/[userName]")&&"string"==typeof e?.userName?e.userName:"",{profile:b}=(0,i.default)(x?y:"");(0,u.useEffect)(()=>{x&&y&&b?.profileUuid&&b.profileDisplayType===o.PROFILE_DISPLAY_TYPE.MEMORIAL&&(p(d,JSON.stringify({username:y})),p(f,null),g({username:y}))},[x,y,b?.profileUuid]);let S=x?a:null,{profile:w,isLoading:I}=(0,i.default)(S?.username||""),{profile:k,isLoading:L}=(0,l.default)(S?.uuid||""),v=S?.uuid?k:w,_=S?.uuid?L:I,j=v?.profileUuid&&v.profileDisplayType===o.PROFILE_DISPLAY_TYPE.MEMORIAL?v:null,E=(0,u.useCallback)(e=>{x&&e&&(p(d,JSON.stringify({uuid:e})),p(f,null),g({uuid:e}))},[x]),O=(0,u.useCallback)(()=>{p(d,null);let t="string"==typeof e?.username?e.username:null,r=a?.username||t;r&&p(f,r),g(null)},[a,e?.username,g]),T=(0,u.useMemo)(()=>S&&j?.profileUuid?{profileUuid:j.profileUuid,name:j.name,avatarSrc:(0,c.getProfileImageSrc)(j.profileImage,"100x100",null),bornDate:j.dateOfBirthDisplay||null,deathDate:j.dateOfDeathDisplay||null,usernameForUrl:j.usernameForUrl,memorialPageUrl:`/${j.customObituariesUrl?j.customObituariesUrlValue:j.usernameForUrl}`}:null,[S,j]);return(0,u.useMemo)(()=>({isMemorialShopFeatureEnabled:x,memorial:T,memorialProfile:S&&j?.profileUuid?j:null,isMemorialLoading:!!S&&_,isMemorialContextActive:!!S&&(_||!!j?.profileUuid),selectMemorialByUuid:E,clearMemorialContext:O}),[x,T,S,j,_,E,O])})(),t=a(e=>e.setSnapshot);return(0,m.default)(()=>{t(e)},[e,t]),(0,m.default)(()=>()=>a.getState().reset(),[]),null},"useMemorialShop",0,g,"useMemorialShopFeatureEnabled",0,()=>a(e=>e.snapshot.isMemorialShopFeatureEnabled)],613715);var x=e.i(534012);let C={injectAttributes:!0,showCartChip:!0,formPreset:"any",bannerMode:"active"},y={injectAttributes:!1,showCartChip:!1,formPreset:"keeped-only",bannerMode:"hidden"},b={KEEPER_QR:y,KEEPER_PLAN:y,TREE:C,BEE:C,WATER:C,PLASTIC:C,LAUREL_BOX:C,CONCIERGE:C,SOCIAL_TRIBUTE:C,RAINBOW_BRIDGE_PET:C,SUNCATCHER:C},S=e=>e&&b[e]||C,w={"/shop/collections/qrcode":"KEEPER_QR"};e.s(["getBannerModeForPathname",0,e=>{let t=Object.entries(w).find(([t])=>e.startsWith(t));return t?S(t[1]).bannerMode:"active"},"getMemorialContextCapabilities",0,S],168676);let I=e=>
1({...e,name:e?.name,id:e?.profileUuid,avatar:(0,c.getProfileImageSrc)(e?.profileImage,"100x100",void 0),isPlus:e?.profileType==="p",bornDate:e?.dateOfBirthDisplay,deathDate:e?.dateOfDeathDisplay,relationship:e?.relationship,url:`/${e?.customObituariesUrl?e?.customObituariesUrlValue:e?.usernameForUrl}`,gender:e?.gender});e.s(["mapProfileToKeeped",0,I],727647),e.s(["useMemorialContextFormPreset",0,(e,{getCurrentSelectedUuid:t,onSelect:r})=>{let{memorialProfile:a,isMemorialShopFeatureEnabled:o}=g(),{query:l}=(0,s.useRouter)(),i=(0,u.useRef)(null);(0,u.useEffect)(()=>{"any"===S(e).formPreset&&a?.profileUuid&&i.current!==a.profileUuid&&t()!==a.profileUuid&&(i.current=a.profileUuid,r(I(a)))},[a?.profileUuid,e,t,r]);let n="string"==typeof l?.username?l.username:"";(0,u.useEffect)(()=>{if(o||"any"!==S(e).formPreset||!n)return;let t=!1;return(0,x.fetchProfileByUsername)(n).then(({data:e})=>{!t&&e?.profileUuid&&r(I(e))}),()=>{t=!0}},[o,n,e,r])}],363209),e.s([],74374)},967844,42012,552748,562367,e=>{"use strict";var t=e.i(69652),r=e.i(392919);let a=e=>e&&"string"==typeof e?e.replace(/_/g,"-").trim().toLowerCase():"";e.s(["countLocaleOptions",0,e=>e.reduce((e,t)=>e+t.country.length,0),"normalizeLocaleCode",0,a],42012);let o=[{localeCode:"en-US",languageCode:"en",languageName:"English",country:{code:"US",name:"English (US)",isBeta:!1}},{localeCode:"en-GB",languageCode:"en",languageName:"English",country:{code:"GB",name:"English (UK)",isBeta:!1}},{localeCode:"fr-CA",languageCode:"fr",languageName:"Français",country:{code:"CA",name:"Français (CA)",isBeta:!1}},{localeCode:"es-US",languageCode:"es",languageName:"Español",country:{code:"US",name:"Español (US)",isBeta:!1}}],l=()=>{let e=(0,r.useFeature)("available-languages"),{defaultLocale:l}=(0,t.useLocale)(),i=e?.value||null,n=e.on;return o.reduce((e,t)=>{let r,{localeCode:o,languageCode:s,languageName:u,country:c}=t;if("en-us"===(r=a(o))||r===a(l)||n&&i?.[o]){let t=e.find(({code:e})=>e===s);t?t.country.some(({code:e})=>e===c.code)||t.country.push(c):e.push({code:s,name:u,country:[c]})}return e},[])};e.s(["useLanguageOptions",0,l],552748),e.s(["useSelectedLanguageOption",0,()=>{let e=l(),{locale:r,defaultLocale:a}=(0,t.useLocale)(),o=t=>{let r=t?.split("-")[0],a=t?.split("-").pop(),o=e.find(({code:e})=>e===r),l=o?.country.find(({code:e})=>e===a);return o?{language:o,country:l||o.country[0]}:null},i=o(r)||o(a),n=o("en-US");return{language:i?.language||n?.language,country:i?.country||n?.country}}],562367),e.s([],967844)},673945,680135,528727,e=>{"use strict";var t=e.i(699871),r=e.i(812817);let a=async({profileUuid:e,languageCode:a})=>{if(!e||!a)return null;try{let{data:r}=await t.backend.patch(`/v1/users/${e}`,{language:a});return r}catch(e){return(0,r.handleApiException)(e)}};e.s(["updateUserLanguage",0,a],680135),e.s([],673945),e.s(["getActionTriggeredPageName",0,function({pagePath:e,hasUserName:t}){return t?"memorial page":"/"===e?"home page":"/profile"===e?"profile page":"/about"===e?"about page":"/terms"===e?"terms page":"/privacy"===e?"privacy page":"/how-it-works"===e?"how it works page":"/pricing"===e?"pricing page":"/features"===e?"features page":"/for-business"===e?"for business page":"/funeral-home"===e?"funeral home page":"/cemeteries"===e?"cemeteries page":"/hospice"===e?"hospices page":"/virtual-funerals"===e?"virtual funerals page":"/famliy-tree"===e?"family tree page":"/about-us"===e?"about us page":e.includes("/login")?"login page":e.includes("/signup")?"signup page":e.includes("/dashboard")?"dashboard page":e.includes("/memorials")?"find memorial page":e.includes("/shop")?"shop page":e.includes("/memorial-concierge")?"concierge page":e.includes("/thank-you")?"thank you page":e.includes("/account-settings")?"account settings page":e.includes("/purchase-history")?"purchase history page":`other page - ${e}`}],528727)},741752,e=>{"use strict";var t=e.i(391398);e.i(673945);var r=e.i(680135),a=e.i(528727),o=e.i(585758),l=e.i(69652),i=e.i(129255),n=e.i(467411),s=e.i(687666),u=e.i(28340),c=e.i(512423),d=e.i(897347),f=e.i(83230),h=e.i(541225),p=e.i(819671);e.i(967844);var m=e.i(562367),g=e.i(191788),x=e.i(855651);e.i(358460);
1var C=e.i(172681),y=e.i(991127),b=e.i(647858);e.s(["LanguageDropDownMenuOptions",0,({languageOption:e,isOpen:S,menuTheme:w,eventTriggerPlacement:I,onToggle:k})=>{let{code:L,name:v,country:_}=e,{asPath:j,query:E,push:O}=(0,o.useBrandedRouter)(),T=(0,m.useSelectedLanguageOption)(),R=(0,C.useIsLoggedIn)(),U=(0,C.useCurrentAccountUuid)(),{defaultLocale:A}=(0,l.useLocale)(),$=T?.language?.code,z=T?.country?.code,F=(0,g.useCallback)(async({targetLocale:e})=>{(0,y.capturePosthogEvent)(i.POSTHOG_EVENT.CLICK_DEFAULT_LANGUAGE_SELECTOR,{label:"Language Selector - Language Change",eventTriggerPlacement:I,languageCode:e,page:(0,a.getActionTriggeredPageName)({pagePath:j,hasUserName:!!E?.userName})}),(0,b.setNextLocaleCookie)(`${e}`),(0,b.setPreferredLocaleCookie)(`${e}`),R&&await (0,r.updateUserLanguage)({profileUuid:U,languageCode:e}),await O(j,void 0,{locale:e===A?"default":e,shallow:!1})},[U,R,A,j,E]),P=(e,t)=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t())},B=`language-countries-${(0,g.useId)()}`,D={outline:"2px solid",outlineColor:s.default.token("colors.brand.primary"),outlineOffset:"-2px",borderRadius:s.default.token("radii.sm")};return(0,t.jsxs)(c.Box,{px:6,w:"100%",children:[(0,t.jsxs)(d.Flex,{flexDir:"row",onClick:k,onKeyDown:e=>P(e,k),role:"button",tabIndex:0,"aria-expanded":S,"aria-controls":B,cursor:"pointer",_focusVisible:D,alignItems:"center",py:3,w:"100%",children:[(0,t.jsx)(p.Text,{fontWeight:600,fontSize:w?.fontSize??s.default.token("fontSizes.md"),color:w.fontColor,children:v}),(0,t.jsx)(h.Spacer,{}),(0,t.jsx)(c.Box,{hidden:!S,children:(0,t.jsx)(f.Icon,{as:x.LuMinus,color:w.fontColor,boxSize:"24px",p:"4px"})}),(0,t.jsx)(c.Box,{hidden:S,children:(0,t.jsx)(n.PlusIcon,{color:w.fontColor,boxSize:"24px"})})]}),S&&(0,t.jsx)(c.Box,{id:B,borderLeftWidth:"1px",borderLeftStyle:"solid",borderColor:w.fontColor,children:_.map(({code:e,name:r,isBeta:a})=>{let o=z===e&&$===L,l=()=>F({targetLocale:`${L}-${e}`});return(0,t.jsxs)(d.Flex,{flexDir:"row",p:3,justifyContent:"space-between",alignItems:"center",onClick:l,onKeyDown:e=>P(e,l),role:"button",tabIndex:0,"aria-label":`${v} — ${r}${o?", selected":""}`,"aria-current":o?"true":void 0,cursor:"pointer",_focusVisible:D,children:[(0,t.jsxs)(d.Flex,{alignItems:"center",children:[(0,t.jsx)(p.Text,{fontWeight:600,fontSize:w?.fontSize??s.default.token("fontSizes.md"),color:o?s.default.token("colors.brand.primary"):w.fontColor,children:r}),a&&(0,t.jsx)(c.Box,{ml:"2",children:(0,t.jsx)(u.Badge,{colorPalette:"green",children:"Beta"})})]}),o&&(0,t.jsx)(f.Icon,{as:x.LuCheck,boxSize:"24px",color:s.default.token("colors.brand.primary")})]},`${L}-${e}`)})})]})}])},645866,346811,e=>{"use strict";var t=e.i(191788),r=e.i(736344),a=e.i(505888);let o={shopifyCart:null,shopifyCartId:null,isCartLoading:!1,hasItemsInCart:!1,totalCartItems:0,isCartOpen:!1,cartBtnRef:{current:null},cartRef:{current:null}},l=()=>{},i=async()=>{},n={onCartOpen:l,onCartClose:l,onCartToggle:l,initializeShopifyCart:i,createNewCart:i,fetchLocalCart:i,addItemToCart:i,removeItemFromCart:i,updateItemInCart:i,emptyEntireCart:i,createShopifyCheckout:i,hasProductInCart:()=>({hasIt:!1,numberOfIt:0})},s=n,u={onCartOpen:()=>s.onCartOpen(),onCartClose:()=>s.onCartClose(),onCartToggle:()=>s.onCartToggle(),initializeShopifyCart:()=>s.initializeShopifyCart(),createNewCart:()=>s.createNewCart(),fetchLocalCart:e=>s.fetchLocalCart(e),addItemToCart:e=>s.addItemToCart(e),removeItemFromCart:e=>s.removeItemFromCart(e),updateItemInCart:e=>s.updateItemInCart(e),emptyEntireCart:()=>s.emptyEntireCart(),createShopifyCheckout:e=>s.createShopifyCheckout(e),hasProductInCart:e=>s.hasProductInCart(e)},c=(0,a.create)(e=>({data:o,actions:u,setSnapshot:t=>{s={onCartOpen:t.onCartOpen,onCartClose:t.onCartClose,onCartToggle:t.onCartToggle,initializeShopifyCart:t.initializeShopifyCart,createNewCart:t.createNewCart,fetchLocalCart:t.fetchLocalCart,addItemToCart:t.addItemToCart,removeItemFromCart:t.removeItemFromCart,updateItemInCart:t.updateItemInCart,emptyEntireCart:t.emptyEntireCart,createShopifyCheckout:t.createShopifyCheckout,hasProductInCart:t.hasProductInCart};let r={shopifyCart:t.shopifyCart,shopifyCartId:t.shopifyCartId,isCartLoading:t.isCartLoading,hasItemsInCart:t.hasItemsInCart,totalCartItems:t.totalCartItems,isCartOpen:t.isCartOpen,cartBtnRef:t.cartBtnRef,cartRef:t.cartRef};e(e=>{let t;return(t=e.data,t.shopifyCart===r.shopifyCart&&t.shopifyCartId===r.shopifyCartId&&t.isCartLoading===r.isCartLoading&&t.hasItemsInCart===r.hasItemsInCart&&t.totalCartItems===r.totalCartItems&&t.isCartOpen===r.isCartOpen&&t.cartBtnRef===r.cartBtnRef&&t.cartRef===r.cartRef)?e:{data:r}})},reset:()=>{s=n,e({data:o})}}));e.i(350461);var d=e.i(34957),f=e.i(110062),h=e.i(69652),p=e.i(869395),m=e.i(561722),g=e.i(352819);e.i(358460);var x=e.i(172681);e.i(74374);var C=e.i(168676),y=e.i(208305),b=e.i(438166),S=e.i(867200),w=e.i(785832);e.s(["ShopifyCartController",0,()=>{let a=(()=>{let a=(0,g.useTranslations)("errors"),o=(0,g.useTranslations)("keeperStoreCart.toast"),l=(0,w.useToast)(),i=(0,t.useRef)(null),n=(0,t.useRef)(null),{locale:s}=(0,h.useLocale)(),{countryCode:u}=(0,f.useGeoCountry)(),c=(0,t.useRef)(s),I=(0,t.useRef)(0);(0,r.default)(()=>{c.current=s,F(!1)},[s]);let k=(0,x.useIsLoggedIn)(),L=(0,x.useCurrentAccountUuid)(),{open:v,onClose:_,onOpen:j,onToggle:E}=(0,S.useDisclosure)(),O=(0,t.useCallback)(e=>l({title:o("unexpectedCartError"),description:e?.message||a("ER45"),status:"error",duration:6e3,isClosable:!0,position:"bottom-right"}),[a,o,l]),T=(0,t.useCallback)((e,t)=>{let{memorial:r}=(0,y.getMemorialShopSnapshot)();return r&&(0,C.getMemorialContextCapabilities)(t).injectAttributes?e.map(e=>{let t=[...e.attributes||[]],a=e=>t.some(t=>t?.key===e&&t?.value);return!a("Honoree Name")&&r.name&&t.push({key:"Honoree Name",value:r.name}
1),!a("associated_memorial_uuid")&&r.profileUuid&&t.push({key:"associated_memorial_uuid",value:r.profileUuid}),{...e,attributes:t}}):e},[]),[R,U]=(0,t.useState)(null),[A,$]=(0,t.useState)(null),[z,F]=(0,t.useState)(!1),P=(0,t.useMemo)(()=>A?.cart?.lines?.edges?.length>0,[A?.cart?.lines?.edges]),B=(0,t.useMemo)(()=>A?.cart?.lines?.edges?.length||0,[A?.cart?.lines?.edges]),D=(0,t.useCallback)(async t=>{let r=t??(()=>s===c.current),{createShopifyCart:a}=await e.A(771085);if(!r())return;if(k&&L){let{expireShopifyCartId:t,fetchLoggedUserShopifyCartId:a}=await e.A(117828);if(!r())return;let{data:o}=await a({profileUuid:L});if(!r()||o?.shopifyCartId&&o?.status!=="ACTIVE"&&(await t({profileUuid:L,shopifyCartId:o?.shopifyCartId}),!r()))return}let o=await a({locale:s,countryCode:u});if(!r()||($(o),!r()))return;U(o?.cart?.id);let l=o?.cart?.id;if(r()&&((0,p.setCookie)({key:`${m.SHOPIFY_CART_TOKEN_COOKIE_NAME}-${window.location.host}`,value:l,domain:window.location.host,maxAge:864e3}),k&&L)){let{saveShopifyCartId:t}=await e.A(117828);if(!r()||(await t({profileUuid:L,shopifyCartId:o?.cart?.id}),!r()))return}},[u,L,s,k]),N=(0,t.useCallback)(async({lineItems:t=[],discountCode:r=null,productType:a})=>{if(!R||!A?.cart?.lines)return;F(!0);let o=T(t,a);try{let{addItemToShopifyCart:t,applyShopifyDiscountCode:a}=await e.A(771085);if(s!==c.current)return;let l=await t({locale:s,countryCode:u,shopifyCartId:R,shopifyLineItems:o});if(s!==c.current)return;if($(l),r){let e=A?.cart?.discountCodes?.filter(e=>e.applicable).map(e=>e.code)??[],t=await a({locale:s,countryCode:u,shopifyCartId:R,discountCodes:[...e,r]});if(s!==c.current)return;$(t)}}catch(e){s===c.current&&O(e)}finally{s===c.current&&(F(!1),j())}},[u,s,j,A,R,O,T]),M=(0,t.useCallback)(async({variantId:t,quantity:r=1,productAttributes:a=[]})=>{if(R&&A?.cart?.lines){F(!0);try{let{updateItemInShopifyCart:o}=await e.A(771085);if(s!==c.current)return;let l=await o({locale:s,countryCode:u,shopifyCartId:R,shopifyLineItems:[{attributes:a,merchandiseId:t,quantity:r}]});if(s!==c.current)return;$(l)}catch(e){s===c.current&&O(e)}finally{s===c.current&&F(!1)}}},[u,s,A,R,O]),W=(0,t.useCallback)(async({cartId:t=null,lineItemIds:r=[],matchedBundleId:a=null},o)=>{let l=o??(()=>s===c.current),i=r?.filter(Boolean)??[];if((R||t)&&0!==i.length&&l()){F(!0);try{let r,{applyShopifyDiscountCode:o,removeItemFromShopifyCart:n}=await e.A(771085);if(!l())return;let c=t||R;if(a){let e=A?.cart?.lines?.edges?.filter(e=>(e?.node?.attributes?.find(e=>e?.key==="id")?.value||null)?.includes(a)).map(e=>e?.node?.id).filter(Boolean)??[];if(r=await n({locale:s,countryCode:u,shopifyCartId:c,shopifyLineItemIds:e.length>0?e:i}),!l())return}else if(r=await n({locale:s,countryCode:u,shopifyCartId:c,shopifyLineItemIds:i}),!l())return;let d=r?.cart?.discountCodes?.filter(e=>e.applicable).map(e=>e.code)??[];if(d.length>0){let e=await o({locale:s,countryCode:u,shopifyCartId:c,discountCodes:d});if(!l())return;e&&(r=e)}if(!l())return;$(r)}catch(e){l()&&O(e)}finally{l()&&F(!1)}}},[u,s,A,R,O]),G=(0,t.useCallback)(async({cartId:t})=>{let r=++I.current,a=()=>r===I.current&&s===c.current;try{let{fetchShopifyCart:r}=await e.A(771085);if(!a())return;let o=await r({locale:s,countryCode:u,shopifyCartId:t});if(!a())return;if(o?.cart?.id){if(!a())return;U(o?.cart?.id);let e=o?.cart?.id;if(!a())return;(0,p.setCookie)({key:`${m.SHOPIFY_CART_TOKEN_COOKIE_NAME}-${window.location.host}`,value:e,domain:window.location.host,maxAge:864e3});let t=o?.cart?.lines?.edges?.filter(({node:e})=>e?.quantity===0&&e?.id).map(({node:e})=>e.id)||[];if(t?.length>0)await W({cartId:o?.cart?.id,lineItemIds:t},a);else{if(!a())return;$(o)}}else await D(a)}catch(e){a()&&O(e)}},[u,D,s,W,O]),K=(0,t.useCallback)(async()=>{let t=()=>s===c.current;if(t()){F(!0);try{let r=null;if(k&&L){let{fetchLoggedUserShopifyCartId:a}=await e.A(117828);if(!t())return;let{data:o}=await a({profileUuid:L});if(!t())return;r=o?.shopifyCartId}else if(r=await (0,p.getShopifyCartCookie)({name:m.SHOPIFY_CART_TOKEN_COOKIE_NAME}),!t())return;r&&"null"!==r&&"undefined"!==r?await G({cartId:r}):await D(t)}catch(e){t()&&O(e)}finally{t()&&F(!1)}}},[D,L,G,s,k,O]),q=(0,t.useCallback)(async()=>{let e=A?.cart?.lines?.edges?.map(e=>
1e?.node?.id).filter(Boolean)??[];await W({lineItemIds:e})},[W,A]),H=(0,t.useCallback)(async({customAttributes:t=[],customerInfo:r})=>{F(!0);try{let{updateShopifyCartAttributes:a,updateShopifyCartBuyerIndentity:o,updateShopifyDeliveryAddress:l}=await e.A(771085),i=[...(A?.cart?.attributes??[]).filter(e=>"Gift To Name"===e.key||"Gift From Name"===e.key||"Gift Message"===e.key)];await a({locale:s,countryCode:u,shopifyCartId:R,customAttributes:t.concat(i)}),await o({locale:s,countryCode:u,shopifyCartId:R,customerInfo:r}),r?.firstName&&await l({locale:s,countryCode:u,shopifyCartId:R,customerInfo:r});let n=t.find(e=>"purchaser_guest_email"===e.key)?.value;n&&""!==n&&(0,p.setCookie)({key:`${m.SHOPIFY_GUEST_CHECKOUT_EMAIL_COOKIE_NAME}-${window.location.host}`,value:n,domain:window.location.host,maxAge:86400});let c=A?.cart.checkoutUrl;if(!c)throw Error("No checkout URL available");let d=(0,b.buildShopifyThankYouReturnUrl)({locale:s}),f=new URLSearchParams({checkout_url:c,return_to:d}),h=`https://kmremembrancestore.myshopify.com?${f.toString()}`;F(!1),window.open(h,"_self")}catch(e){F(!1),O(e)}},[u,s,A,R,O]),Y=(0,t.useCallback)(({lineItemId:e})=>{let t=A?.cart?.lines?.edges?.filter(t=>t?.node?.merchandise?.product?.id===e).length??0;return{hasIt:t>0,numberOfIt:t}},[A]);return(0,d.useClickOutside)([i,n],_),(0,t.useMemo)(()=>({shopifyCart:A,shopifyCartId:R,isCartLoading:z,hasItemsInCart:P,totalCartItems:B,isCartOpen:v,cartBtnRef:i,cartRef:n,onCartOpen:j,onCartClose:_,onCartToggle:E,initializeShopifyCart:K,createNewCart:D,fetchLocalCart:G,addItemToCart:N,removeItemFromCart:W,updateItemInCart:M,emptyEntireCart:q,createShopifyCheckout:H,hasProductInCart:Y}),[A,R,z,P,B,v,i,n,j,_,E,K,D,G,N,W,M,q,H,Y])})(),o=c(e=>e.setSnapshot);return(0,r.default)(()=>{o(a)},[a,o]),(0,r.default)(()=>()=>c.getState().reset(),[]),null},"useShopifyCartActions",0,()=>c(e=>e.actions),"useShopifyCartContents",0,()=>c(e=>e.data.shopifyCart),"useShopifyCartHasItems",0,()=>c(e=>e.data.hasItemsInCart),"useShopifyCartId",0,()=>c(e=>e.data.shopifyCartId),"useShopifyCartLoading",0,()=>c(e=>e.data.isCartLoading),"useShopifyCartOpen",0,()=>c(e=>e.data.isCartOpen),"useShopifyCartRefs",0,()=>{let e=c(e=>e.data.cartBtnRef),r=c(e=>e.data.cartRef);return(0,t.useMemo)(()=>({cartBtnRef:e,cartRef:r}),[e,r])},"useShopifyCartTotalItems",0,()=>c(e=>e.data.totalCartItems)],346811),e.s([],645866)},221320,e=>{"use strict";let{withContext:t,PropsProvider:r}=(0,e.i(319429).createRecipeContext)({key:"link"}),a=t("a");a.displayName="Link",e.s(["Link",0,a])},820198,981902,e=>{"use strict";var t=e.i(69652);e.s(["useLocalizedFAQUrls",0,()=>{let{locale:e}=(0,t.useLocale)(),r="fr-CA"===e?"fr-CA":"en";return{BASE:`https://faq.mykeeper.com/${r}`,LIVING_MEMORIAL:`https://faq.mykeeper.com/${r}/docs/memorial-management/living-memorial/living-memorial-overview`,PRIVACY_SETTING:`https://faq.mykeeper.com/${r}/docs/memorial-management/privacy-settings/private-memorials`,CONTACT:`https://faq.mykeeper.com/${r}/contact`,K1:`https://faq.mykeeper.com/${r}/docs/general/other-platform-features/redesigned-online-memorials`,KEEPER_QRCODE:`https://faq.mykeeper.com/${r}/docs/tributes-contributions/keeper-qr/keeper-qr-overview#what-is-a-keeperqr`,LAUREL_BOX:`https://faq.mykeeper.com/${r}/docs/tributes-contributions#laurelbox`,LAUREL_BOX_RETURN_POLICY:`https://faq.mykeeper.com/${r}/docs/tributes-contributions/laurelbox/laurelbox-return-exchange-policy`,LAUREL_BOX_SHIPPING:`https://faq.mykeeper.com/${r}/docs/tributes-contributions/laurelbox/laurelbox-shipping`}}],981902),e.s([],820198)},94431,e=>{"use strict";let{withContext:t,PropsProvider:r}=(0,e.i(319429).createRecipeContext)({key:"container"}),a=t("div");a.displayName="Container",e.s(["Container",0,a])},888157,e=>{"use strict";var t=e.i(391398),r=e.i(260030),a=e.i(34957),o=e.i(129255),l=e.i(687666),i=e.i(512423),n=e.i(14293),s=e.i(897347),u=e.i(83230),c=e.i(819671),d=e.i(611372),f=e.i(741752);e.i(967844);var h=e.i(552748),p=e.i(562367),m=e.i(191788),g=e.i(855651);let x={bg:l.default.colors.white,bgHover:l.default.colors.brand.secondary_lighter,fontColor:l.default.colors.brand.secondary,fontSize:l.default.fontSizes.xl};e.s(["FooterLanguageDropDown",0,()=>{let{open:e,onToggle:C,onClose:y}=(0,d.useDisclosure)(),b=(0,m.useRef)(null),S=(0,h.useLanguageOptions)(),{isMaxSm:w}
1=(0,r.useBreakpoint)(),[I,k]=(0,m.useState)(null),L=(0,p.useSelectedLanguageOption)();if(S.length<=1)return null;(0,a.useClickOutside)([b],()=>{k(null),y()},"pointerdown");let v=L?.country?.code==="GB"?"UK":L?.country?.code?.toUpperCase();return(0,t.jsxs)(i.Box,{ref:b,position:"relative",ml:1,children:[(0,t.jsxs)(n.Button,{variant:"plain",p:0,color:l.default.colors.white,_hover:{color:l.default.colors.brand.primary},_active:{color:l.default.colors.brand.primary},onClick:C,children:[(0,t.jsx)(s.Flex,{flexDir:"row",w:"100%",h:"100%",justifyContent:"center",alignItems:"center",children:(0,t.jsxs)(c.Text,{fontWeight:400,fontSize:l.default.token("fontSizes.xl"),color:l.default.colors.grey[400],children:[L?.language?.code?.toUpperCase(),` (${v})`]})}),(0,t.jsx)(u.Icon,{as:g.LuChevronDown,boxSize:6})]}),(0,t.jsx)(s.Flex,{borderWidth:"1px",borderStyle:"solid",borderColor:l.default.colors.grey[300],boxShadow:l.default.colors.grey[300],flexDir:"column",position:"absolute",top:12,right:w&&0,left:!w&&0,zIndex:1,hidden:!e,bg:x.bg,w:"280px",borderRadius:l.default.token("radii.md"),py:3,cursor:"pointer",children:S.map((e,r)=>(0,t.jsx)(f.LanguageDropDownMenuOptions,{languageOption:e,isOpen:I===r,menuTheme:x,eventTriggerPlacement:o.POSTHOG_TRIGGER_PLACEMENT.BOTTOM_FOOTER_LANGUAGE_SELECTOR,onToggle:()=>{I===r?k(null):k(r)}},e.code))})]})}])},575560,e=>{"use strict";var t=e.i(391398),r=e.i(687666),a=e.i(512423),o=e.i(94431),l=e.i(819671),i=e.i(352819);let n=/All rights reserved\.?/i;var s=e.i(13363);e.s(["default",0,({copyrightText:e})=>{let u=(0,i.useTranslations)("label.components.footer"),{formatYearOnly:c}=(0,s.useDateFormatter)(),d=c(new Date),f=u("copyrightDefault"),h=(({text:e,translatedAllRightsReserved:t})=>e&&t&&n.test(e)?e.replace(n,e=>e.endsWith(".")?`${t}.`:t):e)({text:e,translatedAllRightsReserved:u("allRightsReserved")});return(0,t.jsx)(a.Box,{bgColor:r.default.colors.brand.secondary_lighter,children:(0,t.jsx)(o.Container,{maxW:"6xl",py:"4",children:(0,t.jsx)(l.Text,{textAlign:"center",color:r.default.colors.white,children:u("copyright",{year:d,text:h||f})})})})}],575560)},85653,768224,181282,e=>{"use strict";var t=e.i(391398),r=e.i(768285);e.i(820198);var a=e.i(981902),o=e.i(512423),l=e.i(221320),i=e.i(897347),n=e.i(574526),s=e.i(165009),u=e.i(541225),c=e.i(819671),d=e.i(392919);e.i(967844);var f=e.i(552748),h=e.i(352819),p=e.i(168489),m=e.i(41158),g=e.i(467411),x=e.i(687666),C=e.i(888157),y=e.i(575560);let b=(0,p.default)(()=>e.A(594630),{loadableGenerated:{modules:[315895]}}),S=`${r.PUBLIC_LIBRARY_URL}/siteAssets/images/SOC_2_Icon_192.webp`,w=({copyrightText:e})=>{let p=(0,h.useTranslations)("label.components.footer"),w=(0,d.useFeature)("available-languages").on,I=(0,d.useFeature)("blog-page").on,k=(0,f.useLanguageOptions)(),L=w&&k.length>1,v=(0,a.useLocalizedFAQUrls)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Box,{bgColor:x.default.colors.brand.secondary,w:"100%",children:(0,t.jsxs)(i.Flex,{w:"100%",flexDirection:{base:"column",xl:"row"},py:{base:10,"3xl":20},px:{base:10,xl:6,"3xl":20},gap:10,justifyContent:{base:"space-between","4xl":"center"},children:[(0,t.jsxs)(i.Flex,{w:"fit-content",flexDir:"column",alignItems:{base:"flex-start",xl:"center"},children:[(0,t.jsx)(l.Link,{href:"/",as:m.default,prefetch:!1,children:(0,t.jsx)(s.Image,{src:r.KEEPER_FULL_LOGO_SRC,alt:"Keeper Memorials",w:"200px",minW:"160px",htmlWidth:156,htmlHeight:32})}),(0,t.jsx)(s.Image,{src:S,alt:"SOC2",boxSize:24,htmlWidth:192,htmlHeight:192,mt:20,display:{base:"none",xl:"block"}})]}),(0,t.jsxs)(i.Flex,{w:{base:"100%",xl:"fit-content"},justifyContent:"space-between",flexDir:{base:"column",sm:"row"},gap:{base:10,"4xl":20},children:[(0,t.jsxs)(i.Flex,{flexDir:"column",gap:3,w:{base:"100%",sm:"50%",md:"40%",lg:"50%",xl:"auto"},children:[(0,t.jsx)(c.Text,{fontSize:x.default.fontSizes.xl,color:x.default.colors.white,fontWeight:700,children:p("quickLinks")}),(0,t.jsxs)(i.Flex,{flexDir:{base:"column",lg:"row"},w:"100%",gap:{base:3,xl:6,"4xl":20},justifyContent:"space-between",children:[(0,t.jsxs)(i.Flex,{flexDirection:"column",gap:3,children:[(0,t.jsx)(l.Link,{as:m.default,prefetch:!1,fontSize:x.default.fontSizes.xl,color:x.default.colors.grey[400],fontWeight:400,_hover:{color:`${x.default.colors.brand.primary}`},href:"/about-us",children:p("aboutUs")}),(0,t.jsx)(l.Link,{as:m.default,prefetch:!1,fontSize:x.default.fontSizes.xl,color:x.default.colors.grey[400],fontWeight:400,_hover:{color:`${x.default.colors.brand.primary}`},href:"/how-it-works",children:p("howItWorks")}),(0,t.jsx)(l.Link,{as:m.default,prefetch:!1,fontSize:x.default.fontSizes.xl,color:x.default.colors.grey[400],fontWeight:400,_hover:{color:`${x.default.colors.brand.primary}`},href:"/family-tree",children:p("familyTree")}),(0,t.jsx)(l.Link,{as:m.default,prefetch:!1,fontSize:x.default.fontSizes.xl,color:x.default.colors.grey[400],fontWeight:400,_hover:{color:`${x.default.colors.brand.primary}`},href:"/features",children:p("features")}),(0,t.jsx)(l.Link,{as:m.default,prefetch:!1,fontSize:x.default.fontSizes.xl,color:x.default.colors.grey[400],fontWeight:400,_hover:{color:`${x.default.colors.brand.primary}`},href:"/pricing",children:p("pricing")}),I&&(0,t.jsx)(l.Link,{as:m.default,prefetch:!1,fontSize:x.default.fontSizes.xl,color:x.default.colors.grey[400],fontWeight:400,_hover:{color:`${x.default.colors.brand.primary}`},href:"/blog",children:p("blog")})]}),(0,t.jsxs)(i.Flex,{flexDir:"column",gap:3,children:[(0,t.jsx)(l.Link,{as:m.default,prefetch:!1,fontSize:x.default.fontSizes.xl,color:x.default.colors.grey[400],fontWeight:400,_hover:{color:`${x.default.colors.brand.primary}`},href:"/shop",target:"_blank",children:p("sympathyGifts")}),(0,t.jsx)(l.Link,{as:m.default,prefetch:!1,fontSize:x.default.fontSizes.xl,color:x.default.colors.grey[400],fontWeight:400,_hover:{color:`${x.default.colors.brand.primary}`},href:"/virtual-funerals",children:p("virtualFunerals")}),(0,t.jsx)(l.Link,{as:m.default,prefetch:!1,fontSize:x.default.fontSizes.xl,color:x.default.colors.grey[400],fontWeight:400,_hover:{color:`${x.default.colors.brand.primary}`}
1,href:"/memorial-concierge",children:p("memorialConcierge")}),(0,t.jsx)(l.Link,{as:m.default,prefetch:!1,fontSize:x.default.fontSizes.xl,color:x.default.colors.grey[400],fontWeight:400,_hover:{color:`${x.default.colors.brand.primary}`},href:"/for-business",children:p("forBusiness")}),(0,t.jsx)(l.Link,{as:m.default,prefetch:!1,fontSize:x.default.fontSizes.xl,color:x.default.colors.grey[400],fontWeight:400,_hover:{color:`${x.default.colors.brand.primary}`},href:"/memorials",children:p("findMemorial")})]})]})]}),(0,t.jsxs)(i.Flex,{flexDir:{base:"column",md:"row"},w:{base:"100%",sm:"50%",md:"60%",lg:"40%",xl:"auto"},gap:{base:10,"4xl":20},justifyContent:"space-between",children:[(0,t.jsxs)(i.Flex,{flexDir:"column",gap:3,children:[(0,t.jsx)(c.Text,{fontSize:x.default.fontSizes.xl,color:x.default.colors.white,fontWeight:700,children:p("legal")}),(0,t.jsxs)(i.Flex,{flexDir:"column",gap:3,children:[(0,t.jsx)(l.Link,{as:m.default,prefetch:!1,fontSize:x.default.fontSizes.xl,color:x.default.colors.grey[400],fontWeight:400,_hover:{color:`${x.default.colors.brand.primary}`},href:"/terms",target:"_blank",children:p("terms")}),(0,t.jsx)(l.Link,{as:m.default,prefetch:!1,fontSize:x.default.fontSizes.xl,color:x.default.colors.grey[400],fontWeight:400,_hover:{color:`${x.default.colors.brand.primary}`},href:"/privacy",target:"_blank",children:p("privacy")})]}),(0,t.jsx)(c.Text,{fontSize:x.default.fontSizes.xl,color:x.default.colors.white,fontWeight:700,children:p("help")}),(0,t.jsxs)(i.Flex,{flexDir:"column",gap:3,children:[(0,t.jsx)(l.Link,{as:m.default,prefetch:!1,fontSize:x.default.fontSizes.xl,color:x.default.colors.grey[400],fontWeight:400,_hover:{color:`${x.default.colors.brand.primary}`},href:v.BASE,target:"_blank",children:p("faq")}),(0,t.jsx)(l.Link,{as:m.default,prefetch:!1,fontSize:x.default.fontSizes.xl,color:x.default.colors.grey[400],fontWeight:400,_hover:{color:`${x.default.colors.brand.primary}`},href:v.CONTACT,target:"_blank",children:p("contactUs")})]})]}),L&&(0,t.jsxs)(i.Flex,{flexDir:"column",gap:3,children:[(0,t.jsx)(c.Text,{fontSize:x.default.fontSizes.xl,color:x.default.colors.white,fontWeight:700,children:p("language")}),(0,t.jsx)(C.FooterLanguageDropDown,{})]})]})]}),(0,t.jsxs)(i.Flex,{flexDir:{base:"column",md:"row",xl:"column"},width:{base:"100%",xl:"15%","3xl":"auto"},children:[(0,t.jsxs)(i.Flex,{flexDir:"column",justifyContent:"center",children:[(0,t.jsx)(c.Text,{fontSize:x.default.fontSizes.xl,color:x.default.colors.white,fontWeight:700,children:p("followUs")}),(0,t.jsxs)(i.Flex,{flexWrap:"wrap",children:[(0,t.jsx)(n.IconButton,{as:"a",href:"https://www.facebook.com/KeeperMemorials/",target:"_blank",bg:x.default.colors.brand.secondary,mr:"2",mt:"2",height:"50px",width:"50px",color:`${x.default.colors.white} !important`,"aria-label":"facebook",rounded:"full",style:{borderRadius:"9999px"},border:`solid 3px ${x.default.token("colors.white")}`,_hover:{borderColor:`${x.default.token("colors.brand.primary")}`,color:`${x.default.token("colors.brand.primary")} !important`},children:(0,t.jsx)(g.FacebookIcon,{color:"inherit !important",width:"30px",height:"30px"})}),(0,t.jsx)(n.IconButton,{as:"a",href:"https://www.instagram.com/keepermemorials/",target:"_blank",bg:x.default.token("colors.brand.secondary"),mr:"2",mt:"2",height:"50px",width:"50px",color:`${x.default.token("colors.white")} !important`,"aria-label":"facebook",rounded:"full",style:{borderRadius:"9999px"},border:`solid 3px ${x.default.token("colors.white")}`,_hover:{borderColor:`${x.default.colors.white}`,color:`${x.default.token("colors.brand.primary")} !important`},children:(0,t.jsx)(g.InstagramIcon,{color:"inherit !important",width:"30px",height:"30px"})}),(0,t.jsx)(n.IconButton,{as:"a",href:"https://www.linkedin.com/company/keepermemorials/",target:"_blank",bg:x.default.colors.brand.secondary,mr:"2",mt:"2",height:"50px",width:"50px",color:`${x.default.colors.white} !important`,"aria-label":"facebook",rounded:"full",style:{borderRadius:"9999px"},border:`solid 3px ${x.default.token("colors.white")}`,_hover:{borderColor:`${x.default.token("colors.brand.primary")}`,color:`${x.default.colors.brand.primary} !important`},children:(0,t.jsx)(g.LinkedInIcon,{color:"inherit !important",width:"30px",height:"30px"})}),(0,t.jsx)(n.IconButton,{as:"a",href:"https://www.youtube.com/@keepermemorials1124",target:"_blank",bg:x.default.token("colors.brand.secondary"),mr:"2",mt:"2",height:"50px",width:"50px",color:`${x.default.token("colors.white")}`,"aria-label":"facebook",rounded:"full",style:{borderRadius:"9999px"},border:`solid 3px ${x.default.colors.white}`,_hover:{borderColor:`${x.default.colors.brand.primary}`,color:`${x.default.colors.brand.primary} !important`},children:(0,t.jsx)(g.YoutubeIcon,{color:"inherit !important",width:"30px",height:"30px"})})]})]}),(0,t.jsx)(u.Spacer,{}),(0,t.jsxs)(i.Flex,{flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[(0,t.jsx)(b,{}),(0,t.jsx)(o.Box,{display:{base:"flex",lg:"none"},minW:24,ml:6,children:(0,t.jsx)(s.Image,{src:S,alt:"SOC2",boxSize:24,htmlWidth:192,htmlHeight:192,display:{base:"block",xl:"none"}})})]})]})]})}),(0,t.jsx)(y.default,{copyrightText:e})]})};e.s(["default",0,w],768224),e.s([],181282);let I={};e.i(571890);var k=e.i(944649);e.s(["default",0,({isFooterVisible:e=!0})=>{let r=(0,k.useCurrentCopyrightText)(),a=(0,k.useWhiteLabeledBrandSettingInfo)(),l=(0,k.useWhiteLabeledBrandOrgUuid)(),i=a?.customFooterComponentName,n=l&&i&&Object.hasOwn(I,i)?I[i]:null;return n?(0,t.jsx)(n,{}):(0,t.jsx)(o.Box,{hidden:!e,children:l?(0,t.jsx)(y.default,{copyrightText:r}):(0,t.jsx)(w,{copyrightText:r})})}],85653)}]);

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.