PageSourceSearch

https://www.invisiblefence.com/component---src-page-templates-account-index-tsx-0672f8d773d76e30f6c5.js

js invisiblefence.com collected 2026-10-03 21:21:58 UTC 7,864 bytes, 2 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e1673c53-c93c-42f5-b6dc-da2c6bab47ca",e._sentryDebugIdIdentifier="sentry-dbid-e1673c53-c93c-42f5-b6dc-da2c6bab47ca")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"fb445b6c67a5f6afccda1f61db4a42915bc9fa09"};(self.webpackChunkinvisiblefence=self.webpackChunkinvisiblefence||[]).push([[8840],{36923:function(e,t,n){n.d(t,{A:function(){return v}});var a=n(14041),i=n(90398),c=n(93910),l=n(41204),r=n(45655),o=n(28610),s=n(26824),u=n(90590),d=n(1335),m=n(45314);const g=void 0!==globalThis.location;var b=function({showMenuOnMobile:e=!1}){const{tt:t}=(0,o.useUiComponentsInternationalContext)(),n=(0,a.use)(c.C),s=(0,a.use)(l.U6),b=(0,a.use)(u.J),f=(null==s?void 0:s.currency)||"USD",{initializeRecharge:v,getRechargeSession:h,getRechargeSubscriptions:p,userHasLicense:E,getInternalSubscriptions:y}=b||{},w=g?globalThis.location.pathname:"";return(0,a.useEffect)(()=>{if(!v||!h||!p)return;(async()=>{try{await v();const e=await h();e&&(await p(e),await y())}catch(e){console.log(e)}})()},[y,h,p,v]),a.createElement("div",{className:(e?"block":"hidden")+" lg:block w-full lg:w-64"},a.createElement("div",{className:"p-4 bg-background border-b border-border lg:hidden"},a.createElement("h1",null,t(e=>e.navigationCommon.myAccountHeader)),a.createElement("p",null,t(e=>e.navigationCommon.manageAccountSettingsAndDataParagraph))),a.createElement("nav",{className:"mb-4 sticky top-12 bg-muted h-[calc(100vh-3rem)]"},a.createElement("ul",{className:"list-none flex flex-col m-0 p-0 [&>li>a]:no-underline [&>li>a]:text-foreground [&>li>a]:border-b [&>li>a]:border-border [&>li>a]:text-sm [&>li>a]:font-normal [&>li>a]:flex [&>li>a]:items-center [&>li>a]:gap-3 [&>li>a]:h-16 [&>li>a]:pl-6 [&>li>a]:lg:pl-3 [&>li>a]:lg:h-14 [&>li>a:hover]:underline [&>li>a.active]:no-underline [&>li>a.active]:bg-background [&>li>a.active]:text-foreground [&>li]:md:inline"},a.createElement("li",null,a.createElement(r.LocalizedLink,{to:(0,d.A)({slug:"/account/orders",currency:f}),activeClassName:"active",state:{},className:"\n              "+(w.includes("/account/orders")?"active":"")},a.createElement(i.TXh,{size:20,"aria-hidden":"true"})," ",t(e=>e.orderCommon.ordersLink))),b&&"USD"===f&&a.createElement(a.Fragment,null,a.createElement("li",null,a.createElement(r.LocalizedLink,{to:(0,d.A)({slug:"/account/subscriptions",currency:f}),activeClassName:"active",state:{},className:"no-underline "+(w.includes("/account/subscriptions")?"active":"")},a.createElement(i.NPF,{size:20,"aria-hidden":"true"}),t(e=>e.navigationCommon.subscriptionsLink))),b&&"USD"===f&&E&&a.createElement("li",null,a.createElement(r.LocalizedLink,{to:(0,d.A)({slug:"/account/videos",currency:f}),activeClassName:"active",state:{},className:w.includes("/account/videos")?"active":""},a.createElement(i.HiP,{size:20,"aria-hidden":"true"})," ",t(e=>e.navigationCommon.trainingVideosLink)))),a.createElement("li",null,a.createElement(r.LocalizedLink,{to:(0,d.A)({slug:"/account/appointments",currency:f}),activeClassName:"active",state:{},className:w.includes("/account/appointments")?"active":""},a.createElement(m.rkd,{size:20,"aria-hidden":"true"})," Appointments")),a.createElement("li",null,a.createElement(r.LocalizedLink,{to:(0,d.A)({slug:"/account/addresses",currency:f}),activeClassName:"active",state:{activeForm:{name:"addressList",data:{}}}},a.createElement(i.toK,{size:20,"aria-hidden":"true"})," ",t(e=>e.navigationCommon.addressesLink))),a.createElement("li",null,a.createElement(r.LocalizedLink,{to:(0,d.A)({slug:"/account/referral-program",currency:f}),activeClassName:"active",state:{},className:w.includes("/account/referral-program")?"active":""},a.createElement(m.GN9,{size:20,"aria-hidden":"true"})," Referral Program")),a.createElement("li",null,a.createElement(r.LocalizedLink,{to:(0,d.A)({slug:"/account/settings",currency:f}),activeClassName:"active",state:{}},a.createElement(i.Pcn,{size:20,"aria-hidden":"true"})," ",t(e=>e.navigationCommon.accountSettingsLink))),a.createElement("li",null,a.createElement(r.LocalizedLink,{to:(0,d.A)({slug:"/logout",currency:f})},a.createElement(i.axc,{size:20,"aria-hidden":"true"})," ",t(e=>e.navigationCommon.signOutLink)))),n.isProStaff()&&a.createElement("div",{className:"text-center bg-primary p-4 border border-border"},a.createElement("p",{className:"text-primary-foreground"},t(e=>e.navigationCommon.eligibleForDiscountsMessage)))))};const f=(e,t)=>{if("undefined"==typeof window)return!1;const n="CAD"===t?"en-ca":e;return(0,r.getLocalizedPagePath)(window.location.pathname,n)===(0,r.getLocalizedPagePath)("/account",n)};function v({children:e,showMenuOnMobile:t}){const n=a.useContext(c.C),{currency:u}=a.useContext(l.U6)||{},d=(0,r.useLocalizedNavigation)(),{tt:m,locale:g}=(0,o.useUiComponentsInternationalContext)(),v="undefined"!=typeof window&&sessionStorage.getItem(s.Qb);if(!n.isAuthenticated())return null;const h=f(g,u);return a.createElement("div",{className:"flex gap-0 p-0 lg:p-6 xl:gap-10"},a.createElement(b,{showMenuOnMobile:t}),!h&&a.createElement("div",{className:"bg-background flex-1 w-full"},!h&&a.createElement("div",{className:"block bg-background border-b border-border lg:hidden"},a.createElement("button",{type:"button",onClick:()=>{"true"===v?globalThis.history.back():(sessionStorage.setItem(s.Qb,"true"),d("CAD"===u?"/en-ca/account":"/account"))},className:"flex lg:hidden items-center gap-2 p-4 text-base bg-transparent border-none cursor-pointer"},a.createElement(i.QVr,null),m(e=>e.layoutComponent.backLayoutButton))),a.createElement("div",{className:"bg-background p-4"},e)))}},58361:function(e,t,n){var a=n(14041);t.A=({children:e})=>a.createElement("div",{className:"[&>div]:p-4 [&>div]:lg:px-8 [&>div]:lg:pb-0"},e)},68454:function(e,t,n){n.r(t);var a=n(14041),i=n(45655),c=n(41204),l=n(93910),r=n(2359),o=n(48222),s=n(84587),u=n(36923),d=n(26824),m=n(34930),g=n(80832),b=n(58361);t.default=function({location:e}){const{customer:t,retrieveAndSaveCustomerAccessToken:n,isAuthenticated:f}=(0,a.useContext)(l.C),{currency:v}=(0,a.useContext)(c.U6),h=(0,i.useLocalizedNavigation)(),p=()=>{globalThis.innerWidth>=Number.parseInt(m.A.lg,10)&&h("/account/orders",{replace:!0})};return(0,a.useEffect)(()=>{const t=new URLSearchParams(e.search),a=t.get("token");if(a)n(a).then(()=>{globalThis.location.href=`${"CAD"===v?"https://ca.my.invisiblefence.com":"https://my.invisiblefence.com"}/account/login/multipass/${t.get("token")}`});else{if(!f())return()=>{};const e=sessionStorage.getItem(d.wL);e?(i=e)&&(sessionStorage.removeItem(d.wL),h(i)):(p(),globalThis.addEventListener("resize",p))}var i;return()=>{globalThis.removeEventListener("resize",p)}},[]),a.createElement(g.A,{location:e,headTagData:{title:"Account | Invisible Fence",description:"",meta:(0,r.A)({title:"Account | Invisible Fence",description:"",url:"/account"},"invisiblefence")}},t.isAuthenticated&&a.createElement(a.Fragment,null,a.createElement(b.A,null,a.createElement(o.A,{id:"account-breadcrumb",elements:[{text:"Home",link:"/"},{text:"Account",link:"/account"}]})),a.createElement(u.A,{showMenuOnMobile:!0})),!t.isAuthenticated&&a.createElement("div",{className:"w-full h-[50vh] flex justify-center items-center"},a.createElement(s.w,{width:80,height:80})))}},84587:function(e,t,n){n.d(t,{w:function(){return c}});var a=n(38475),i=n(14041);
1function c({color:e="#888",height:t=24,width:n=24,visible:c=!0}){return i.createElement(a.wC,{color:e,height:t,width:n,visible:c})}}}]);
2//# sourceMappingURL=component---src-page-templates-account-index-tsx-0672f8d773d76e30f6c5.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.