1"use strict";(self.webpackChunk_asurion_gatsby_theme_client=self.webpackChunk_asurion_gatsby_theme_client||[]).push([[594],{64238:function(e,t,l){l.r(t);var a=l(14041),n=l(87861),r=l(76066),c=l(86430),s=l(93180),i=l(43154),u=l(88336);t.default=e=>{let{data:t}=e;const{buttonText:o,clientId:d,theme:f,downloadText:m,useGoogleDocViewer:h,file:v}=t.contentfulPdf,{0:w,1:p}=(0,a.useState)(!0),{0:E,1:D}=(0,a.useState)(void 0),{width:b}=(0,r.v)(),P=(0,i.JH)(f),y=(0,a.useRef)(null);(0,u.u)(f);return(0,a.useEffect)((()=>{!async function(){if(v&&!h){const{PDFViewer:e}=await Promise.all([l.e(97),l.e(76)]).then(l.t.bind(l,45519,23));D(a.createElement(e,{url:`https:${v.file.url}`})),p(!1)}}()}),[]),(0,a.useEffect)((()=>{if(y){const e=document.getElementById("doc-viewer");e&&e.addEventListener("load",(()=>{p(!1),clearInterval(t)}));const t=setInterval((()=>{e&&(e.src+="")}),6e3);return()=>clearInterval(t)}}),[y]),v?a.createElement("main",{id:"pdf-page-scope",className:`flex flex-col h-full ${P}`},a.createElement(s.F1,{clientId:d}),a.createElement("div",{className:"mt-1 text-center","data-test":n.Vy.PDF_PROMPT},m||'If your PDF is not viewable, please refresh your screen or click "Download" to save/view the PDF on your computer.'),a.createElement("div",{className:"flex items-center justify-center h-24","data-test":n.x6.DOWNLOAD},a.createElement("a",{className:"button pdfButton",href:`https:${v.file.url}`},o||"Download PDF")),a.createElement("div",{id:"viewer-wrapper"},w&&a.createElement("div",{className:"text-center flex justify-center"},a.createElement(c.o,null)),h?a.createElement("iframe",{ref:y,id:"doc-viewer",name:"doc-viewer",src:`https://docs.google.com/viewer?url=https:${v.file.url}&embedded=true&hl=en`,className:"w-full h-full "+(w?"hidden":"visible"),"data-test":n.pU.PDF}):a.createElement(a.Fragment,null,b&&b<=768?a.createElement(a.Fragment,null,E):a.createElement("iframe",{ref:y,id:"doc-viewer",name:"doc-viewer",src:`https:${v.file.url}`,className:"w-full h-full "+(w?"hidden":"visible"),"data-test":n.pU.PDF})))):null}}}]);
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.