PageSourceSearch

https://ncrponline.org/assets/index-C8RJzOiY.js

js ncrponline.org collected 2026-10-02 03:43:20 UTC 20,304 bytes, 698 lines download raw bytes

1import{d as i,e as H,u as U,g as q,j as t,R as b,c as Q}from"./index-CL5CXY0i.js";import{r as s}from"./react-CryvJVFI.js";import{H as W}from"./index-m2R28i_a.js";import{s as G,d as J,a as K}from"./DetailsPageData-uY3q632H.js";import{F as X}from"./index-Ckvylm4c.js";import{u as L,a as Y,b as Z,T as ee,g as te,B as ne}from"./index-CwkL_0fV.js";import{F as I}from"./index-C3vpPgak.js";import{d as n}from"./index-DngTBLDh.js";import{P as ie}from"./index-DBTgMqXe.js";import"./lodashUtils-EZhUIFFV.js";import"./lodash-Bqp7oCxX.js";import"./index-DNaSW-Dx.js";import"./react-toastify.esm-BcQ5eTVB.js";import"./index-B2cqaVCK.js";import"./index-Cnqjmcqm.js";import"./Publications-CGJSNZlA.js";import"./react-content-loader.es-9HMRlSLY.js";const oe=i.div`
2  display: flex;
3  align-items: center;
4  justify-content: center;
5  height: auto;
6  padding: 2rem 0;
7`;i.div`
8  width: 493.909px;
9  margin: 0 auto;
10  padding: 20px;
11  display: flex;
12  justify-content: center;
13  align-items: center;
14  height: auto;
15`;i.video``;const re=i.div`
16  width: 100%;
17  margin: 1% 0;
18  display: flex;
19  flex-direction: row;
20  gap: 7%;
21  padding: 0 5%;
22  justify-content: center;
23  align-items: center;
24  height: auto;
25  @media ${n.lg} {
26    flex-direction: column;
27  }
28`,ae=i.div`
29  display: flex;
30  justify-content: center;
31  background-color: #f5f8fc;
32  padding: 5%;
33`,le=i.img`
34  height: 450px;
35  object-fit: cover;
36  background-size: cover;
37  max-width: 490px;
38  @media ${n.xl} {
39    height: 400px;
40  }
41  @media ${n.lg} {
42    height: 509px;
43  }
44  @media ${n.sm} {
45    max-width:100%;
46    height: 407.6px;
47  }
48`,se=i.div`
49  width: 50%;
50  display: flex;
51  flex-direction: column;
52  padding-top: 5%;
53  @media ${n.lg} {
54    width: 100%;
55    align-items: center;
56    justify-content: center;
57  }
58`,de=i.div`
59  font-family: Montserrat;
60  font-size: 16px;
61  font-weight: 600;
62  line-height: 19.5px;
63  text-align: left;
64  color: #797979;
65  @media ${n.xl} {
66    font-size: 14px;
67  }
68`,ce=i.h1`
69  font-family: Montserrat;
70  font-size: 32px;
71  font-weight: 600;
72  line-height: 38.4px;
73  letter-spacing: -0.02em;
74  text-align: left;
75  color: #111111;
76  @media ${n.xl} {
77    color: var(--H1, #111);
78    font-family: Montserrat;
79    font-size: 20px;
80    font-style: normal;
81    font-weight: 600;
82    line-height: 1.5; /* 24px */
83    letter-spacing: -0.4px;
84  }
85  @media ${n.lg} {
86    text-align: center;
87    color: var(--H1, #111);
88    text-align: center;
89    font-family: Montserrat;
90    font-size: 32px;
91    font-style: normal;
92    font-weight: 600;
93    line-height: 1.5; /* 38.4px */
94    letter-spacing: -0.64px;
95  }
96  @media ${n.sm} {
97    color: var(--H1, #111);
98    text-align: center;
99    font-family: Montserrat;
100    font-size: 24px;
101    font-style: normal;
102    font-weight: 600;
103    line-height: 1.5; /* 28.8px */
104    letter-spacing: -0.48px;
105  }
106`,w=i.div`
107  display: flex;
108  justify-content: center;
109`;i.p`
110  font-family: Montserrat;
111  font-size: 16px;
112  font-weight: 400;
113  line-height: 19.5px;
114  text-align: left;
115  color: #1f1f1f;
116  padding: 8px 0px;
117  @media ${n.xl} {
118    font-size: 12px;
119  }
120  @media ${n.lg} {
121    text-align: center;
122    color: var(--Body-Text, #1f1f1f);
123    text-align: center;
124    font-family: Montserrat;
125    font-size: 14px;
126    font-style: normal;
127    font-weight: 400;
128    line-height: 1.5;
129  }
130  @media ${n.sm} {
131    color: var(--Body-Text, #1f1f1f);
132    text-align: center;
133    font-family: Montserrat;
134    font-size: 14px;
135    font-style: normal;
136    font-weight: 400;
137    line-height: 1.5;
138  }
139`;const pe=i.div``,j=i.div`
140  display: flex;
141  justify-content: center;
142  margin-bottom: 5px;
143  align-items: center;
144
145  & > span:nth-child(1) {
146    flex: 0.7;
147  }
148  & > span:nth-child(2) {
149    flex: 0 0 20px;
150    text-align: center;
151  }
152  & > span:nth-child(3) {
153    flex: 2;
154  }
155`,$=i.span`
156  font-family: Montserrat;
157  font-size: 16px;
158  font-weight: 400;
159  line-height: 19.5px;
160  letter-spacing: -0.01em;
161  text-align: left;
162  color: #1f1f1f;
163  /* margin-right: 10px; */
164  @media ${n.xl} {
165    font-size: 12px;
166  }
167  @media ${n.lg} {
168    font-size: 14px;
169  }
170`,k=i.span`
171  margin-right: 10px;
172  font-family: Montserrat;
173  font-size: 16px;
174  font-weight: 400;
175  line-height: 19.5px;
176  letter-spacing: -0.01em;
177  text-align: left;
178  color: #1f1f1f;
179  margin-left: 20px;
180  @media ${n.xl} {
181    font-size: 12px;
182  }
183  @media ${n.lg} {
184    font-size: 14px;
185  }
186`,fe=i.div`
187  background-color: #f5fbff;
188  padding: 14px 16px;
189  border-radius: 8px;
190  margin: 20px 0px;
191  display: flex;
192  flex-direction: column;
193
194  @media ${n.lg} {
195    width: 100%;
196  }
197`,xe=i.div`
198  display: flex;
199  justify-content: space-between;
200  align-items: center;
201  margin-bottom: 20px;
202`;i.div`
203  display: flex;
204  align-items: center;
205`;i.input`
206  margin-right: 10px;
207`;i.label`
208  font-size: 16px;
209  color: #0b4885;
210  font-family: Montserrat;
211  font-size: 14px;
212  font-style: normal;
213  font-weight: 600;
214  color: ${o=>(o.checked,"#1C399D")};
215
216  @media ${n.xl} {
217    font-size: 14px;
218  }
219`;i.div`
220  display: flex;
221  align-items: center;
222`;i.button`
223  background-color: #ddd;
224  border: none;
225  padding: 5px 10px;
226  font-size: 16px;
227  cursor: pointer;
228  border-radius: 5px;
229  margin: 0 5px;
230  @media ${n.xl} {
231    font-size: 12px;
232  }
233  @media ${n.lg} {
234    font-size: 12px;
235  }
236`;i.input`
237  width: 30px;
238  text-align: center;
239  border: none;
240`;const he=i.button`
241  background-color: #1c399d;
242  color: #ffffff;
243  border: none;
244  padding: 14px 24px;
245  font-size: 18px;
246  cursor: pointer;
247  border-radius: 40px;
248  display: flex;
249  align-items: center;
250  justify-content: center;
251  width: 100%;
252  max-width: 200px;
253  justify-content: center;
254  &::before {
255    content: url("/assets/cart.png");
256    margin: 0px 12px;
257  }
258  @media ${n.xl} {
259    font-size: 16px;
260    &::before {
261      margin: 0px 6px;
262    }
263  }
264  @media ${n.sm} {
265    font-size: 14px;
266    &::before {
267      margin: 0px 6px;
268    }
269  }
270`,me=i.h1`
271  color: #1c399d;
272  font-family: Montserrat;
273  font-size: 18px;
274  font-weight: 600;
275  line-height: 32.4px;
276  letter-spacing: -0.01em;
277  text-align: left;
278  padding: 12px 0px;
279`;i.img`
280  width: 100%;
281  height: auto;
282  max-height: 320px;
283  object-fit: cover;
284
285  @media ${n.lg} {
286    width: 345px;
287  }
288  @media ${n.md} {
289    width: 269.5px;
290  }
291  @media ${n.sm} {
292    width: 100%;
293    height: auto;
294    background-size: cover;
295  }
296`;i.a`
297  color: #1c399d;
298  font-family: Montserrat;
299  font-size: 18px;
300  font-style: normal;
301  font-weight: 600;
302  line-height: 180%; /* 32.4px */
303  letter-spacing: -0.18px;
304  text-decoration: none;
305  cursor: pointer;
306  &:hover {
307    text-decoration: underline;
308  }
309`;const ge=i.div`
310display:flex;
311align-items:center;
312gap:10px;
313`,ue=i.button`
314 background-color: #1c399d;
315  color: white;
316  padding: 10px 20px;
317  border: none;
318  border-radius: 5px;
319  font-size: 16px;
320  cursor: pointer;
321  transition: background-color 0.3s ease;
322
323  &:hover {
324    /* background-color: #45a049; */
325  }
326
327  a {
328    color: white;  // Ensure the link text matches the button color
329    text-decoration: none; // Remove underline from link
330    display: block; // Make the link fill the button
331    height: 100%;
332    width: 100%;
333  }
334
335  // Optional for mobile responsiveness
336  @media (max-width: 600px) {
337    padding: 8px 16px;
338    font-size: 14px;
339  }
340`,ye=i.button`
341  background-color: #1c399d;
342  color: white;
343  padding: 10px 20px;
344  border: none;
345  border-radius: 5px;
346  font-size: 16px;
347  cursor: pointer;
348  transition: background-color 0.3s ease;
349
350  &:hover {
351    /* background-color: #45a049; */
352  }
353
354  a {
355    color: white;  // Ensure the link text matches the button color
356    text-decoration: none; // Remove underline from link
357    display: block; // Make the link fill the button
358    height: 100%;
359    width: 100%;
360  }
361
362  // Optional for mobile responsiveness
363  @media (max-width: 600px) {
364    padding: 8px 16px;
365    font-size: 14px;
366  }
367`,B=i.div`
368  display: flex;
369  align-items: center;
370  margin: 10px 0;
371`,R=i.input`
372  appearance: none;
373  -webkit-appearance: none;
374  width: 16px;
375  height: 16px;
376  border: 2px solid #007bff;
377  border-radius: 50%;
378  margin-right: 10px;
379  cursor: pointer;
380  position: relative;
381  outline: none;
382  background-color: #fff;
383
384  &:checked {
385    background-color: #007bff;
386    border-color: #007bff;
387  }
388  
389  &:focus {
390    border-color: #0056b3;
391  }
392
393  &:hover {
394    border-color: #0056b3;
395  }
396`,E=i.label`
397  font-size: 14px;
398  color: #333;
399  font-family: 'Montserrat', sans-serif;
400  cursor: pointer;
401  user-select: none;
402
403  &:hover {
404    color: #007bff;
405  }
406`,be=i.div`
407  display: inline-flex;
408  background: #eef2f9;
409  border: 1px solid #d8e3ef;
410  border-radius: 40px;
411  padding: 4px;
412  margin-top: 16px;
413  gap: 4px;
414  width: fit-content;
415
416  @media ${n.lg} {
417    align-self: center;
418  }
419`,F=i.button`
420  background-color: ${({active:o})=>o?"#1c399d":"transparent"};
421  color: ${({active:o})=>o?"#ffffff":"#1c399d"};
422  border: none;
423  padding: 9px 22px;
424  font-family: "Montserrat", sans-serif;
425  font-size: 14px;
426  font-weight: 600;
427  cursor: pointer;
428  border-radius: 40px;
429  transition: background-color 0.18s ease, color 0.18s ease;
430  white-space: nowrap;
431
432  &:hover {
433    background-color: ${({active:o})=>o?"#152d80":"rgba(28, 57, 157, 0.08)"};
434  }
435
436  @media ${n.sm} {
437    padding: 8px 16px;
438    font-size: 13px;
439  }
440`,we=({purchaseMode:o="individual",setPurchaseMode:c})=>{const{id:d}=H(),{video:e,loading:z,error:p}=L(d),C=U(),[g,M]=s.useState(1),[a,u]=s.useState(null),[y,v]=s.useState(""),{addItemToCart:D}=q(),{tiersByScope:P}=Y(),_=s.useMemo(()=>{const r=Z(P[ee.videos_soft]||[]);return r.length?r[0].min:10},[P]),S=s.useMemo(()=>te(e,_).eligible,[e,_]),T=!S||o==="individual",V=()=>{if(!a){v("Please select a price option (Buy or Rent)");return}const r=[];if(v(""),a==="buy"&&r.push({id:d,image:`${b}/videos/thumbnails/${e.thumbnail}`,title:e==null?void 0:e.title,description:e==null?void 0:e.sort_title,type:"video",format:"Soft Copy - Video",price:e==null?void 0:e.amount,stock:e==null?void 0:e.stock,quantity:g,expiry:e==null?void 0:e.expiry,downloadFormat:"soft",rental_days:e==null?void 0:e.rental_days,downloadLimit:e==null?void 0:e.no_of_downloads,is_rental:0}),a==="rent"&&r.push({id:d,image:`${b}/videos/thumbnails/${e.thumbnail}`,title:e==null?void 0:e.title,description:e==null?void 0:e.sort_title,type:"video",format:"Soft Copy - Video",price:e==null?void 0:e.rental_fee,stock:e==null?void 0:e.stock,quantity:g,expiry:e==null?void 0:e.expiry,downloadFormat:"soft",rental_days:e==null?void 0:e.rental_days,downloadLimit:e==null?void 0:e.no_of_downloads,is_rental:1}),r.length===0){v("Please select a price option.");return}v(""),D(r),C("/cart")};if(z)return t.jsx("p",{children:t.jsx(I,{})});if(p)return t.jsxs("p",{children:["Error: ",p]});
440if(!e)return t.jsx("p",{children:"No video found"});const f=r=>r===0?!0:r==null?!1:typeof r=="string"?r.trim().length>0:!0;function N({id:r}){fetch(`${b}/api/video/${r}/download`).then(x=>{if(!x.ok)throw new Error("Failed to download the video file.");const m=x.headers.get("Content-Type");let l="";return m.includes("mp4")?l=".mp4":m.includes("webm")?l=".webm":m.includes("avi")?l=".avi":m.includes("mov")?l=".mov":l=".mp4",x.blob().then(h=>({blob:h,fileExtension:l}))}).then(({blob:x,fileExtension:m})=>{const l=window.URL.createObjectURL(x),h=document.createElement("a");h.style.display="none",h.href=l;const A=`${r}${m}`;h.download=A,document.body.appendChild(h),h.click(),window.URL.revokeObjectURL(l)}).catch(x=>{console.error("Download error:",x)})}return t.jsx(oe,{children:t.jsxs(re,{children:[t.jsx(ae,{children:t.jsx(le,{src:`${b}/videos/thumbnails/${e.thumbnail}`})}),t.jsxs(se,{children:[f(e.speaker)&&t.jsxs(de,{children:["Speaker - ",e.speaker]}),f(e.title)&&t.jsx(ce,{children:e.title}),t.jsx(me,{children:"Video Details"}),t.jsxs(pe,{children:[f(e.speaker)&&t.jsxs(j,{children:[t.jsx($,{children:"Speaker "}),t.jsx(w,{children:":"}),t.jsx(k,{children:e.speaker})]}),f(e.resolution)&&t.jsxs(j,{children:[t.jsx($,{children:"Resolution "}),t.jsx(w,{children:":"}),t.jsx(k,{children:e.resolution})]}),f(e.format)&&t.jsxs(j,{children:[t.jsx($,{children:"Format "}),t.jsx(w,{children:":"}),t.jsx(k,{children:e.format})]}),f(e.frame_rate)&&t.jsxs(j,{children:[t.jsx($,{children:"Frame rate "}),t.jsx(w,{children:":"}),t.jsx(k,{children:e.frame_rate})]}),f(e.license)&&t.jsxs(j,{children:[t.jsx($,{children:"License "}),t.jsx(w,{children:":"}),t.jsx(k,{children:e.license})]})]}),S&&c&&t.jsxs(be,{role:"tablist","aria-label":"Purchase mode",children:[t.jsx(F,{type:"button",role:"tab","aria-selected":o==="individual",active:o==="individual",onClick:()=>c("individual"),children:"Individual Purchase"}),t.jsx(F,{type:"button",role:"tab","aria-selected":o==="bulk",active:o==="bulk",onClick:()=>c("bulk"),children:"Bulk Purchase"})]}),T&&t.jsxs(fe,{children:[t.jsx(xe,{children:e.is_free?t.jsxs(ge,{children:[t.jsx(ue,{children:t.jsx("a",{href:`${b}/videos/files/${e.video}`,target:"_blank",rel:"noopener noreferrer",children:"View"})}),t.jsx(ye,{onClick:()=>{N({id:e==null?void 0:e.id})},children:"Download"})]}):t.jsxs(t.Fragment,{children:[t.jsxs(B,{children:[t.jsx(R,{type:"radio",id:"buy",name:"priceOption",checked:a==="buy",onChange:()=>u("buy")}),t.jsx(E,{htmlFor:"buy",children:`Buy for $${e.amount?e.amount:"Not Available"}`})]}),e.is_rental===1&&e.rental_fee&&e.rental_days&&t.jsxs(B,{children:[t.jsx(R,{type:"radio",id:"rent",name:"priceOption",checked:a==="rent",onChange:()=>u("rent")}),t.jsx(E,{htmlFor:"rent",children:`Rent this video for ${e.rental_days} days at $${e.rental_fee}`})]})]})}),y&&t.jsx("div",{style:{color:"red",fontSize:"14px"},children:y})]}),T&&!e.is_free&&t.jsx(he,{onClick:V,children:"Add to Cart"})]})]})})},je=i.div`
441  display: flex;
442  flex-direction: column;
443  align-items: center;
444  max-width: 1536px;
445  margin: 0 auto;
446  background-color: #ddebf633;
447  border-radius: 8px;
448  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
449  padding: 20px 5%;
450`,$e=i.h2`
451  font-size: 28px;
452  font-weight: bold;
453  font-family: "poppins";
454  margin-bottom: 20px;
455  color: #333;
456  text-align: center;
457  &::after {
458    content: "";
459    width: 100%;
460    height: 3px;
461    background-color: #e67e22;
462    display: block;
463    margin: 8px auto 0;
464  }
465  @media ${n.xl} {
466    color: var(--H1, #111);
467    font-family: Poppins;
468    font-size: 32px;
469    font-style: normal;
470    font-weight: 600;
471    line-height: 24px; /* 75% */
472  }
473  @media ${n.lg} {
474    color: var(--H1, #111);
475    font-family: Poppins;
476    font-size: 32px;
477    font-style: normal;
478    font-weight: 600;
479    line-height: 24px; /* 75% */
480  }
481  @media ${n.sm} {
482    color: var(--H1, #111);
483    font-family: Poppins;
484    font-size: 24px;
485    font-style: normal;
486    font-weight: 600;
487    line-height: 24px; /* 100% */
488  }
489`,ke=i.p`
490  font-family: Montserrat;
491  font-size: 16px;
492  font-weight: 400;
493  line-height: 19.5px;
494  text-align: left;
495  padding: 20px 15%;
496  color: #000000;
497  white-space: pre-line;
498
499  @media ${n.xl} {
500    color: #1f1f1f;
501    text-align: center;
502    font-family: Montserrat;
503    font-size: 14px;
504    font-style: normal;
505    font-weight: 400;
506    line-height: 1.5;
507  }
508  @media ${n.lg} {
509    color: var(--Body-Text, #1f1f1f);
510    text-align: center;
511    font-family: Montserrat;
512    font-size: 14px;
513    font-style: normal;
514    font-weight: 400;
515    line-height: 1.5;
516  }
517  @media ${n.sm} {
518    color: var(--Body-Text, #1f1f1f);
519    text-align: center;
520    font-family: Montserrat;
521    font-size: 14px;
522    font-style: normal;
523    font-weight: 400;
524    line-height: 1.5;
525    padding: 20px 0%;
526  }
527`;i.div`
528  display: flex;
529  justify-content: center;
530  margin-bottom: 30px;
531  gap: 20px;
532  @media ${n.lg} {
533    flex-direction: column;
534  }
535`;i.div`
536  background-color: #ffffff;
537  border: 1px solid #1c399d;
538  color: #1c399d;
539  border-radius: 40px;
540  padding: 10px;
541  font-style: normal;
542  font-weight: 400;
543  line-height: 1.5;
544  text-decoration-line: underline;
545  font-family: "Montserrat";
546  cursor: pointer;
547  @media ${n.xl} {
548    display: flex;
549    width: 169px;
550    height: 49px;
551    padding: 10px;
552    justify-content: center;
553    align-items: center;
554    color: var(--Primary, #1c399d);
555    font-family: Montserrat;
556    font-size: 16px;
557    font-style: normal;
558    font-weight: 400;
559    line-height: 1.5;
560    text-decoration-line: underline;
561  }
562  @media ${n.lg} {
563    display: flex;
564    width: 169px;
565    height: 49px;
566    padding: 10px;
567    justify-content: center;
568    align-items: center;
569    color: var(--Primary, #1c399d);
570    font-family: Montserrat;
571    font-size: 16px;
572    font-style: normal;
573    font-weight: 400;
574    line-height: 1.5;
575    text-decoration-line: underline;
576  }
577  @media ${n.sm} {
578    color: var(--Primary, #1c399d);
579    width: 139px;
580    height: 39px;
581    font-family: Montserrat;
582    font-size: 12px;
583    font-style: normal;
584    font-weight: 400;
585    line-height: 1.5;
586    text-decoration-line: underline;
587  }
588`;i.div`
589  display: flex;
590  justify-content: center;
591  gap: 3%;
592  margin-top: 20px;
593  @media ${n.xl} {
594    width: 50%;
595    gap: 5%;
596  }
597  @media ${n.lg} {
598    width: 90%;
599    gap: 25px;
600    flex-direction: column;
601  }
602`;i.img`
603  width: 100%;
604  height: auto;
605  object-fit: cover;
606  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
607`;const O=({description:o,loading:c,error:d})=>{const{mainTitle:e}=G;return c?t.jsx("p",{children:t.jsx(I,{})}):d?t.jsxs("p",{children:["Error: ",d]}):t.jsxs(je,{children:[t.jsx($e,{children:e}),t.jsx(ke,{children:t.jsx("span",{style:{display:"inline"},dangerouslySetInnerHTML:{__html:o}})})]})};O.propTypes={description:ie.string.isRequired};const ve=i.div`
608  display: flex;
609  flex-direction: column;
610  align-items: center;
611  padding: 40px;
612  background-color: #fff;
613  @media ${n.xxl} {
614    padding: 4rem 0 4rem 0;
615  }
616  @media ${n.xl} {
617    padding: 4rem 0 4rem 0;
618  }
619  @media ${n.lg} {
620    padding: 4rem 0 4rem 0;
621  }
622  @media ${n.sm} {
623    padding: 4rem 0 4rem 0;
624  }
625`,ze=i.h2`
626  font-size: 24px;
627  font-weight: bold;
628  margin-bottom: 20px;
629  color: #333;
630  text-align: center;
631  position: relative;
632  font-family: Poppins;
633  &::after {
634    content: "";
635    width: 100%;
636    height: 3px;
637    background-color: #e67e22;
638    display: block;
639    margin: 8px auto 0;
640  }
641  @media ${n.xl} {
642    color: var(--H1, #111);
643    font-family: Poppins;
644    font-size: 32px;
645    font-style: normal;
646    font-weight: 600;
647    line-height: 24px; /* 75% */
648    &::after {
649      height: 3px;
650      border-radius: 25px;
651      background: #f58231;
652    }
653  }
654  @media ${n.lg} {
655    color: var(--H1, #111);
656    font-family: Poppins;
657    font-size: 36px;
658    font-style: normal;
659    font-weight: 600;
660    line-height: 24px; /* 66.667% */
661  }
662  @media ${n.sm} {
663    color: var(--H1, #111);
664    font-family: Poppins;
665    font-size: 24px;
666    font-style: normal;
667    font-weight: 600;
668    line-height: 24px; /* 100% */
669    width: 107%;
670    &::after {
671      width: 262px;
672      height: 3px;
673      border-radius: 25px;
674      background: #f58231;
675    }
676  }
677`,Ce=i.p`
678  color: var(--Body-Text, #1f1f1f);
679  text-align: center;
680  font-family: Montserrat;
681  font-size: 16px;
682  font-style: normal;
683  font-weight: 400;
684  line-height: 1.5;
685  
686  a {
687    color: #1c399d;
688    font-family: Montserrat;
689    font-size: 16px;
690    font-style: normal;
691    font-weight: 400;
692    line-height: 1.5;
693    cursor: pointer;
694    &:hover {
695      text-decoration: underline;
696    }
697  }
698`,Me=()=>{const{mainTitle:o}=J;return t.jsxs(ve,{children:[t.jsx(ze,{children:o}),t.jsxs(Ce,{children:["Discounts are available for educational or classroom use. Contact Laura Atwell at ",t.jsx("br",{}),t.jsx("a",{children:" [email protected]"})]})]})},qe=()=>{const{heroHeading:o,heroDesc:c,backgroundImage:d}=K,{pathname:e}=Q(),{id:z}=H(),[p,C]=s.useState(null),[g,M]=s.useState("individual"),{video:a,loading:u,error:y}=L(z);return s.useEffect(()=>{a&&C(a)},[a]),s.useEffect(()=>{"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),window.scrollTo(0,0)},[e]),t.jsxs(t.Fragment,{children:[t.jsx(W,{mainHeading:o,paragraph:c,backgroundImage:d}),t.jsxs("div",{style:{maxWidth:"1536px",margin:"auto"},children:[t.jsx(we,{videoData:p,loading:u,error:y,purchaseMode:g,setPurchaseMode:M}),t.jsx(ne,{purchaseMode:g,productType:"video"}),t.jsx(O,{description:(p==null?void 0:p.description)||"No description available",loading:u,error:y}),t.jsx(Me,{})]}),t.jsx(X,{})]})};export{qe as default};

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.