PageSourceSearch

https://ottondemand.com/_next/static/chunks/pages/product/[id]-f4803a42dde59254.js

js ottondemand.com collected 2026-10-04 23:17:27 UTC 6,966 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1697,3125],{3125:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PaymentStatusStep:()=>V.N,ProductScreen:()=>M});var s=n(37876),r=n(14232),i=n(42008),l=n(95063),o=n(19325),d=n(21117),c=n(80973),a=n(41349),u=n(93936),p=n(99427),m=n(66044),x=n(29596),h=n(10709),j=n(61792),y=n(15428);let v=e=>{let{product:t,promoLoading:n,setPromoLoading:l,onPromocodeApplied:o,onPromocodeInvalid:d,promoResetKey:c,onPaymentSucceeded:u,onPaymentDialogClosed:p}=e,m=null!==(0,r.useContext)(a.RW);return(0,s.jsxs)(i.A,{sx:{display:"grid",gap:{xs:3,md:5},pb:{xs:2,md:4},gridTemplateColumns:{xs:"minmax(0, 1fr)",md:"minmax(0, 7fr) minmax(0, 5fr)"},alignItems:"start"},children:[(0,s.jsx)(i.A,{sx:{order:1},children:(0,s.jsx)(y.a,{product:t,section:"top"})}),(0,s.jsx)(i.A,{sx:{order:{xs:2,md:3},gridRow:{md:"1 / span 2"},gridColumn:{md:2},position:{md:"sticky"},top:{md:m?24:88}},children:(0,s.jsx)(j.O,{product:t,promoLoading:n,setPromoLoading:l,onPromocodeApplied:o,onPromocodeInvalid:d,promoResetKey:c,onPaymentSucceeded:u,onPaymentDialogClosed:p})}),(0,s.jsx)(i.A,{sx:{order:{xs:3,md:2},gridColumn:{md:1}},children:(0,s.jsx)(y.a,{product:t,section:"description"})})]})};var g=n(25156),A=n(59970);let S={[x.Wj.VideoType]:24,[x.Wj.StreamType]:24,[x.Wj.CollectionType]:12},f=e=>{var t;let{productId:n,type:r,streamStatus:l,title:o,inView:d=!0}=e,c=null!=(t=S[r])?t:12,{contents:a,count:p,loading:m,hasMore:h,loadMore:j}=(0,u.NG)({productId:n,type:r,streamStatus:l,limit:c,skip:!d});if(0===a.length)return null;let y=a.length<p?"/contents?productId=".concat(n,"&type=").concat(r,"&blockTitle=").concat(encodeURIComponent(o)):void 0;return r===x.Wj.VideoType?(0,s.jsxs)(i.A,{sx:{mb:2},children:[(0,s.jsx)(A.V,{title:o,moreLink:y,view:"CAROUSEL"}),(0,s.jsx)(g.Lr,{items:a,previewMode:"HORIZONTAL",size:{xs:12,sm:4,md:3,lg:3,xl:3},hasMore:h,onLoadMore:j,loading:m})]}):(0,s.jsxs)(i.A,{sx:{mb:2},children:[(0,s.jsx)(A.V,{title:o,moreLink:y,view:"GRID"}),(0,s.jsx)(g.P6,{items:a,previewMode:"HORIZONTAL",size:{xs:12,sm:4,md:3,lg:3,xl:3},hasMore:h,onLoadMore:j,loading:m})]})};var C=n(48230),T=n.n(C),w=n(73665),E=n(53318),P=n(11514),I=n(43185),b=n(69585),N=n(14476),R=n(82777),_=n(59480),L=n(75807),D=n(670),V=n(67002);let k=D.ASSISTANT_Z_INDEX-30,F=e=>{let{paymentId:t,onClose:n,onSucceeded:i,pendingHint:l}=e,{t:o}=(0,d.Bd)(),c=(0,w.A)(),a=(0,E.A)(c.breakpoints.down("sm")),u=(0,D.useAssistantPanelOpen)(),[p,m]=(0,r.useState)(null),x=o("SUCCEEDED"===p?"payment.succeededTitle":"CANCELED"===p||"REFUNDED"===p?"payment.canceledTitle":"ERROR"===p?"payment.errorTitle":"payment.pendingTitle");return(0,s.jsxs)(P.A,{open:!0,scroll:"body",fullScreen:a,maxWidth:"sm",fullWidth:!0,disableEnforceFocus:u,sx:{zIndex:k},children:[(0,s.jsxs)(I.A,{children:[x,(0,s.jsx)(b.A,{onClick:n,sx:{position:"absolute",right:8,top:8},children:(0,s.jsx)(L.A,{})})]}),(0,s.jsx)(N.A,{children:(0,s.jsx)(V.N,{paymentId:t,onClose:n,onStatusChange:e=>{m(e),"SUCCEEDED"===e&&(null==i||i())},pendingContent:"paynet"===l?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(R.A,{variant:"body1",children:o("payment.paynetPendingMessage")}),(0,s.jsxs)(R.A,{variant:"body2",sx:{mt:1},children:[o("payment.paynetPendingPurchasesHint")," ",(0,s.jsx)(_.A,{component:T(),href:"/purchases",underline:"hover",children:o("userMenu.purchases")}),"."]})]}):void 0})})]})};var W=n(1400),O=n(32921),H=n(57402);let M=e=>{var t,n,j,y;let g,{id:A}=e,{t:S}=(0,d.Bd)(),{platform:C}=(0,d.Vj)(),T=(0,d.EV)(),[w,E]=(0,r.useState)(null),[P,I]=(0,r.useState)(!1),[b,N]=(0,r.useState)(0),{product:R,loading:_,error:L,refetch:D}=(0,u.Bj)(A,w),{enqueueSnackbar:V}=(0,p.dh)(),[k,M]=(0,r.useState)(null),[U,z]=(0,r.useState)(null);(0,r.useEffect)(()=>{let e=(0,m.$h)(),t=new URLSearchParams(window.location.search).get("paynet");if("cancel"===t){V(S("payment.paynetReturnCancel"),{variant:"info"}),(0,m.NI)(null),(0,m.HG)(null);return}"success"===t&&z("success"),e&&M(e)},[]);let Z=(0,r.useRef)(null);(0,r.useEffect)(()=>()=>{Z.current&&clearTimeout(Z.current)},[]);let G=()=>{D(),Z.current&&clearTimeout(Z.current),Z.current=setTimeout(()=>{D()},2e3)},{ref:B,inView:X}=(0,d.Zn)();(0,r.useEffect)(()=>{E(null)},[A]);let Y=k?(0,s.jsx)(F,{paymentId:k,onSucceeded:G,pendingHint:"success"===U?"paynet":void 0,onClose:()=>{M(null),z(null),(0,m.HG)(null),(0,m.NI)(null)}}):null;if(_&&!R||!A)return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i.A,{sx:{position:"relative",minHeight:"40vh",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,s.jsx)(l.A,{}),(0,s.jsx)(a.uu,{})]}),Y]}
1);if(L)return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.zb,{error:L}),Y]});if(!R)return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.zb,{code:404}),Y]});let K=(0,O.uU)(R.preview),q=(g=R.id,"/product/".concat(g)),$=!R.accessError&&R.prices[0]?{value:R.prices[0].value,currency:R.prices[0].currency,period:R.prices[0].period}:null,J=R.type===x.Ce.SubscriptionType,Q={...R,path:q};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(W.i,{title:R.title,description:null!=(t=R.description)?t:R.title,image:K,path:q,url:R.siteUrl,type:"product"}),C&&(0,s.jsx)(H.Y4,{nodes:[(0,H.YY)(T,Q,null!=(n=null==K?void 0:K.url)?n:null,$,{periodLabel:J&&$?(0,h.I)(S,R.type,null!=(j=$.period)?j:0):null,validFrom:R.publishAt}),!J&&R.eventStartAt?(0,H.Vw)(T,C,{path:q,name:R.title,description:R.description,image:null!=(y=null==K?void 0:K.url)?y:null,startDate:R.eventStartAt,endDate:R.eventFinishAt,price:$,validFrom:R.publishAt}):null,(0,H.ZF)(T,C,[{name:R.title,path:q}])]}),(0,s.jsxs)(i.A,{sx:{overflow:"hidden",flexShrink:0},children:[(0,s.jsx)(i.A,{sx:{px:{xs:2,sm:3},pt:{xs:2,md:4}},children:(0,s.jsxs)(i.A,{sx:{position:"relative"},children:[(0,s.jsx)(v,{product:R,promoLoading:P||_,setPromoLoading:I,onPromocodeApplied:e=>E(e.id),onPromocodeInvalid:()=>{E(null),N(e=>e+1)},promoResetKey:b,onPaymentSucceeded:G,onPaymentDialogClosed:()=>void D()}),(0,s.jsx)(a.uu,{})]})}),R.showContent&&(0,s.jsx)("div",{ref:B,style:{minHeight:10},children:(0,s.jsx)(o.A,{children:(0,s.jsxs)(i.A,{sx:{px:{xs:0,sm:3}},children:[(0,s.jsx)(f,{productId:R.id,type:x.Wj.StreamType,streamStatus:x.xf.StartedType,title:S("product.shelves.startedStreams"),inView:X}),(0,s.jsx)(f,{productId:R.id,type:x.Wj.StreamType,streamStatus:x.xf.PendingType,title:S("product.shelves.pendingStreams"),inView:X}),(0,s.jsx)(f,{productId:R.id,type:x.Wj.VideoType,title:S("product.shelves.videos"),inView:X}),(0,s.jsx)(f,{productId:R.id,type:x.Wj.CollectionType,title:S("product.shelves.collections"),inView:X})]})})})]},A),Y]})}},36074:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/product/[id]",function(){return n(60056)}])},60056:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>l,default:()=>o});var s=n(37876),r=n(89099),i=n(3125),l=!0;let o=()=>{let e=(0,r.useRouter)().query.id;return(0,s.jsx)(i.ProductScreen,{id:e})}}},e=>{e.O(0,[3071,3561,5356,670,7972,7830,636,6593,8792],()=>e(e.s=36074)),_N_E=e.O()}]);
2//# sourceMappingURL=[id]-f4803a42dde59254.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.