PageSourceSearch

https://www.invisiblefence.com/component---src-page-templates-account-playlist-tsx-9e6893ebac2ebcb0503f.js

js invisiblefence.com collected 2026-09-25 18:40:28 UTC 8,243 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]="521fb351-7531-4eff-96bf-25319a2cc0f0",e._sentryDebugIdIdentifier="sentry-dbid-521fb351-7531-4eff-96bf-25319a2cc0f0")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"a1914b02daa8c613ead1e27da03d97f802f0ebde"};(self.webpackChunkinvisiblefence=self.webpackChunkinvisiblefence||[]).push([[9286],{36923:function(e,t,n){n.d(t,{A:function(){return p}});var a=n(14041),i=n(90398),l=n(93910),c=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)(l.C),s=(0,a.use)(c.U6),b=(0,a.use)(u.J),f=(null==s?void 0:s.currency)||"USD",{initializeRecharge:p,getRechargeSession:v,getRechargeSubscriptions:E,userHasLicense:h,getInternalSubscriptions:x}=b||{},y=g?globalThis.location.pathname:"";return(0,a.useEffect)(()=>{if(!p||!v||!E)return;(async()=>{try{await p();const e=await v();e&&(await E(e),await x())}catch(e){console.log(e)}})()},[x,v,E,p]),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              "+(y.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 "+(y.includes("/account/subscriptions")?"active":"")},a.createElement(i.NPF,{size:20,"aria-hidden":"true"}),t(e=>e.navigationCommon.subscriptionsLink))),b&&"USD"===f&&h&&a.createElement("li",null,a.createElement(r.LocalizedLink,{to:(0,d.A)({slug:"/account/videos",currency:f}),activeClassName:"active",state:{},className:y.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:y.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:y.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 p({children:e,showMenuOnMobile:t}){const n=a.useContext(l.C),{currency:u}=a.useContext(c.U6)||{},d=(0,r.useLocalizedNavigation)(),{tt:m,locale:g}=(0,o.useUiComponentsInternationalContext)(),p="undefined"!=typeof window&&sessionStorage.getItem(s.Qb);if(!n.isAuthenticated())return null;const v=f(g,u);return a.createElement("div",{className:"flex gap-0 p-0 lg:p-6 xl:gap-10"},a.createElement(b,{showMenuOnMobile:t}),!v&&a.createElement("div",{className:"bg-background flex-1 w-full"},!v&&a.createElement("div",{className:"block bg-background border-b border-border lg:hidden"},a.createElement("button",{type:"button",onClick:()=>{"true"===p?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)},91966:function(e,t,n){function a(e){return`${Math.floor(e/60)}:${(e%60).toString().padStart(2,"0")}`}n.d(t,{A:function(){return a}})},93382:function(e,t,n){n.r(t);var a=n(14041),i=n(45655),l=n(93910),c=n(90590),r=n(36923),o=n(58361),s=n(48222),u=n(80832),d=n(91966);t.default=function({pageContext:{playlist:e}}){const t=(0,a.useContext)(l.C),{userHasLicense:n}=(0,a.useContext)(c.J),{0:m,1:g}=(0,a.useState)(!0),{videos:b}=e;return(0,a.useEffect)(()=>{const{isAuthenticated:e}=t;e()&&g(!1)},[t]),m||n?a.createElement(u.A,{headTagData:{title:`${e.name} - Training Videos | Invisible Fence`,description:"Watch training videos to learn how to train your pet with Invisible Fence."}},a.createElement(o.A,null,a.createElement(s.A,{elements:[{text:"Home",link:"/"},{text:"Account",link:"/account"},{text:"Training Videos",link:"/account/videos"},{text:e.name,link:""}]})),a.createElement(r.A,null,m||n?a.createElement("div",{className:"my-0 mx-auto md:max-w-3xl"},a.createElement("h2",{className:"mb-1 md:text-2xl"},e.name),a.createElement("ul",{className:"flex flex-col p-0 list-none gap-4"},b.map(e=>
1a.createElement("li",{key:e.uri,className:"flex cursor pb-4 border-border border-b last:border-b-0"},a.createElement(i.LocalizedLink,{to:`/account/videos/${e.uri.split("/")[2]}`,className:"flex no-underline flex-col gap-4 lg:grid lg:grid-cols-2 group"},a.createElement("div",{className:"relative m-0"},a.createElement("img",{src:e.pictures.sizes.at(-1).link,alt:e.name,className:"w-full aspect-[16/9] block"})),a.createElement("div",null,a.createElement("small",{className:"block text-input text-sm mb-1"},"Length: ",(0,d.A)(e.duration)),a.createElement("h3",{className:"underline mt-3 mb-1 group-hover:no-underline"},e.name),e.description&&a.createElement("p",{className:"text-input"},e.description))))))):a.createElement("div",{className:"flex justify-center items-center text-center min-h-[110px]"},"You are not an active subscriber."))):a.createElement(u.A,null,a.createElement("div",{className:"flex justify-center items-center text-center min-h-[110px]"},"You are not an active subscriber."))}}}]);
2//# sourceMappingURL=component---src-page-templates-account-playlist-tsx-9e6893ebac2ebcb0503f.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.