{"ast":null,"code":"\"use strict\";\n'use client';\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n  if (k2 === undefined) k2 = k;\n  var desc = Object.getOwnPropertyDescriptor(m, k);\n  if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n    desc = {\n      enumerable: true,\n      get: function () {\n        return m[k];\n      }\n    };\n  }\n  Object.defineProperty(o, k2, desc);\n} : function (o, m, k, k2) {\n  if (k2 === undefined) k2 = k;\n  o[k2] = m[k];\n});\nvar __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {\n  Object.defineProperty(o, \"default\", {\n    enumerable: true,\n    value: v\n  });\n} : function (o, v) {\n  o[\"default\"] = v;\n});\nvar __importStar = this && this.__importStar || function (mod) {\n  if (mod && mod.__esModule) return mod;\n  var result = {};\n  if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n  __setModuleDefault(result, mod);\n  return result;\n};\nvar __importDefault = this && this.__importDefault || function (mod) {\n  return mod && mod.__esModule ? mod : {\n    \"default\": mod\n  };\n};\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nconst react_1 = __importStar(require(\"react\"));\nconst make_cancellable_promise_1 = __importDefault(require(\"make-cancellable-promise\"));\nconst clsx_1 = __importDefault(require(\"clsx\"));\nconst tiny_invariant_1 = __importDefault(require(\"tiny-invariant\"));\nconst warning_1 = __importDefault(require(\"warning\"));\nconst pdfjs_js_1 = __importDefault(require(\"../pdfjs.js\"));\nconst useDocumentContext_js_1 = __importDefault(require(\"../shared/hooks/useDocumentContext.js\"));\nconst usePageContext_js_1 = __importDefault(require(\"../shared/hooks/usePageContext.js\"));\nconst useResolver_js_1 = __importDefault(require(\"../shared/hooks/useResolver.js\"));\nconst utils_js_1 = require(\"../shared/utils.js\");\nfunction AnnotationLayer() {\n  const documentContext = (0, useDocumentContext_js_1.default)();\n  const pageContext = (0, usePageContext_js_1.default)();\n  (0, tiny_invariant_1.default)(pageContext, 'Unable to find Page context.');\n  const mergedProps = Object.assign(Object.assign({}, documentContext), pageContext);\n  const {\n    imageResourcesPath,\n    linkService,\n    onGetAnnotationsError: onGetAnnotationsErrorProps,\n    onGetAnnotationsSuccess: onGetAnnotationsSuccessProps,\n    onRenderAnnotationLayerError: onRenderAnnotationLayerErrorProps,\n    onRenderAnnotationLayerSuccess: onRenderAnnotationLayerSuccessProps,\n    page,\n    pdf,\n    renderForms,\n    rotate,\n    scale = 1\n  } = mergedProps;\n  (0, tiny_invariant_1.default)(pdf, 'Attempted to load page annotations, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.');\n  (0, tiny_invariant_1.default)(page, 'Attempted to load page annotations, but no page was specified.');\n  (0, tiny_invariant_1.default)(linkService, 'Attempted to load page annotations, but no linkService was specified.');\n  const [annotationsState, annotationsDispatch] = (0, useResolver_js_1.default)();\n  const {\n    value: annotations,\n    error: annotationsError\n  } = annotationsState;\n  const layerElement = (0, react_1.useRef)(null);\n  (0, warning_1.default)(parseInt(window.getComputedStyle(document.body).getPropertyValue('--react-pdf-annotation-layer'), 10) === 1, 'AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations');\n  function onLoadSuccess() {\n    if (!annotations) {\n      // Impossible, but TypeScript doesn't know that\n      return;\n    }\n    if (onGetAnnotationsSuccessProps) {\n      onGetAnnotationsSuccessProps(annotations);\n    }\n  }\n  function onLoadError() {\n    if (!annotationsError) {\n      // Impossible, but TypeScript doesn't know that\n      return;\n    }\n    (0, warning_1.default)(false, annotationsError.toString());\n    if (onGetAnnotationsErrorProps) {\n      onGetAnnotationsErrorProps(annotationsError);\n    }\n  }\n  function resetAnnotations() {\n    annotationsDispatch({\n      type: 'RESET'\n    });\n  }\n  (0, react_1.useEffect)(resetAnnotations, [annotationsDispatch, page]);\n  function loadAnnotations() {\n    if (!page) {\n      return;\n    }\n    const cancellable = (0, make_cancellable_promise_1.default)(page.getAnnotations());\n    const runningTask = cancellable;\n    cancellable.promise.then(nextAnnotations => {\n      annotationsDispatch({\n        type: 'RESOLVE',\n        value: nextAnnotations\n      });\n    }).catch(error => {\n      annotationsDispatch({\n        type: 'REJECT',\n        error\n      });\n    });\n    return () => {\n      (0, utils_js_1.cancelRunningTask)(runningTask);\n    };\n  }\n  (0, react_1.useEffect)(loadAnnotations, [annotationsDispatch, page, renderForms]);\n  (0, react_1.useEffect)(() => {\n    if (annotations === undefined) {\n      return;\n    }\n    if (annotations === false) {\n      onLoadError();\n      return;\n    }\n    onLoadSuccess();\n  },\n  // Ommitted callbacks so they are not called every time they change\n  // eslint-disable-next-line react-hooks/exhaustive-deps\n  [annotations]);\n  function onRenderSuccess() {\n    if (onRenderAnnotationLayerSuccessProps) {\n      onRenderAnnotationLayerSuccessProps();\n    }\n  }\n  function onRenderError(error) {\n    (0, warning_1.default)(false, `${error}`);\n    if (onRenderAnnotationLayerErrorProps) {\n      onRenderAnnotationLayerErrorProps(error);\n    }\n  }\n  const viewport = (0, react_1.useMemo)(() => page.getViewport({\n    scale,\n    rotation: rotate\n  }), [page, rotate, scale]);\n  function renderAnnotationLayer() {\n    if (!pdf || !page || !linkService || !annotations) {\n      return;\n    }\n    const {\n      current: layer\n    } = layerElement;\n    if (!layer) {\n      return;\n    }\n    const clonedViewport = viewport.clone({\n      dontFlip: true\n    });\n    const annotationLayerParameters = {\n      accessibilityManager: null,\n      // TODO: Implement this\n      annotationCanvasMap: null,\n      // TODO: Implement this\n      div: layer,\n      l10n: null,\n      // TODO: Implement this\n      page,\n      viewport: clonedViewport\n    };\n    const renderParameters = {\n      annotations,\n      annotationStorage: pdf.annotationStorage,\n      div: layer,\n      // See https://github.com/mozilla/pdf.js/issues/17029\n      downloadManager: null,\n      imageResourcesPath,\n      linkService,\n      page,\n      renderForms,\n      viewport: clonedViewport\n    };\n    layer.innerHTML = '';\n    try {\n      new pdfjs_js_1.default.AnnotationLayer(annotationLayerParameters).render(renderParameters);\n      // Intentional immediate callback\n      onRenderSuccess();\n    } catch (error) {\n      onRenderError(error);\n    }\n    return () => {\n      // TODO: Cancel running task?\n    };\n  }\n  (0, react_1.useEffect)(renderAnnotationLayer,\n  // Ommitted callbacks so they are not called every time they change\n  // eslint-disable-next-line react-hooks/exhaustive-deps\n  [annotations, imageResourcesPath, linkService, page, renderForms, viewport]);\n  return react_1.default.createElement(\"div\", {\n    className: (0, clsx_1.default)('react-pdf__Page__annotations', 'annotationLayer'),\n    ref: layerElement\n  });\n}\nexports.default = AnnotationLayer;","map":{"version":3,"names":["__createBinding","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__setModuleDefault","v","value","__importStar","mod","result","prototype","hasOwnProperty","call","__importDefault","exports","react_1","require","make_cancellable_promise_1","clsx_1","tiny_invariant_1","warning_1","pdfjs_js_1","useDocumentContext_js_1","usePageContext_js_1","useResolver_js_1","utils_js_1","AnnotationLayer","documentContext","default","pageContext","mergedProps","assign","imageResourcesPath","linkService","onGetAnnotationsError","onGetAnnotationsErrorProps","onGetAnnotationsSuccess","onGetAnnotationsSuccessProps","onRenderAnnotationLayerError","onRenderAnnotationLayerErrorProps","onRenderAnnotationLayerSuccess","onRenderAnnotationLayerSuccessProps","page","pdf","renderForms","rotate","scale","annotationsState","annotationsDispatch","annotations","error","annotationsError","layerElement","useRef","parseInt","window","getComputedStyle","document","body","getPropertyValue","onLoadSuccess","onLoadError","toString","resetAnnotations","type","useEffect","loadAnnotations","cancellable","getAnnotations","runningTask","promise","then","nextAnnotations","catch","cancelRunningTask","onRenderSuccess","onRenderError","viewport","useMemo","getViewport","rotation","renderAnnotationLayer","current","layer","clonedViewport","clone","dontFlip","annotationLayerParameters","accessibilityManager","annotationCanvasMap","div","l10n","renderParameters","annotationStorage","downloadManager","innerHTML","render","createElement","className","ref"],"sources":["D:/Project/UC_Trains_Voice/react-demo/node_modules/react-pdf/dist/cjs/Page/AnnotationLayer.js"],"sourcesContent":["\"use strict\";\n'use client';\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst react_1 = __importStar(require(\"react\"));\nconst make_cancellable_promise_1 = __importDefault(require(\"make-cancellable-promise\"));\nconst clsx_1 = __importDefault(require(\"clsx\"));\nconst tiny_invariant_1 = __importDefault(require(\"tiny-invariant\"));\nconst warning_1 = __importDefault(require(\"warning\"));\nconst pdfjs_js_1 = __importDefault(require(\"../pdfjs.js\"));\nconst useDocumentContext_js_1 = __importDefault(require(\"../shared/hooks/useDocumentContext.js\"));\nconst usePageContext_js_1 = __importDefault(require(\"../shared/hooks/usePageContext.js\"));\nconst useResolver_js_1 = __importDefault(require(\"../shared/hooks/useResolver.js\"));\nconst utils_js_1 = require(\"../shared/utils.js\");\nfunction AnnotationLayer() {\n    const documentContext = (0, useDocumentContext_js_1.default)();\n    const pageContext = (0, usePageContext_js_1.default)();\n    (0, tiny_invariant_1.default)(pageContext, 'Unable to find Page context.');\n    const mergedProps = Object.assign(Object.assign({}, documentContext), pageContext);\n    const { imageResourcesPath, linkService, onGetAnnotationsError: onGetAnnotationsErrorProps, onGetAnnotationsSuccess: onGetAnnotationsSuccessProps, onRenderAnnotationLayerError: onRenderAnnotationLayerErrorProps, onRenderAnnotationLayerSuccess: onRenderAnnotationLayerSuccessProps, page, pdf, renderForms, rotate, scale = 1, } = mergedProps;\n    (0, tiny_invariant_1.default)(pdf, 'Attempted to load page annotations, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.');\n    (0, tiny_invariant_1.default)(page, 'Attempted to load page annotations, but no page was specified.');\n    (0, tiny_invariant_1.default)(linkService, 'Attempted to load page annotations, but no linkService was specified.');\n    const [annotationsState, annotationsDispatch] = (0, useResolver_js_1.default)();\n    const { value: annotations, error: annotationsError } = annotationsState;\n    const layerElement = (0, react_1.useRef)(null);\n    (0, warning_1.default)(parseInt(window.getComputedStyle(document.body).getPropertyValue('--react-pdf-annotation-layer'), 10) === 1, 'AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations');\n    function onLoadSuccess() {\n        if (!annotations) {\n            // Impossible, but TypeScript doesn't know that\n            return;\n        }\n        if (onGetAnnotationsSuccessProps) {\n            onGetAnnotationsSuccessProps(annotations);\n        }\n    }\n    function onLoadError() {\n        if (!annotationsError) {\n            // Impossible, but TypeScript doesn't know that\n            return;\n        }\n        (0, warning_1.default)(false, annotationsError.toString());\n        if (onGetAnnotationsErrorProps) {\n            onGetAnnotationsErrorProps(annotationsError);\n        }\n    }\n    function resetAnnotations() {\n        annotationsDispatch({ type: 'RESET' });\n    }\n    (0, react_1.useEffect)(resetAnnotations, [annotationsDispatch, page]);\n    function loadAnnotations() {\n        if (!page) {\n            return;\n        }\n        const cancellable = (0, make_cancellable_promise_1.default)(page.getAnnotations());\n        const runningTask = cancellable;\n        cancellable.promise\n            .then((nextAnnotations) => {\n            annotationsDispatch({ type: 'RESOLVE', value: nextAnnotations });\n        })\n            .catch((error) => {\n            annotationsDispatch({ type: 'REJECT', error });\n        });\n        return () => {\n            (0, utils_js_1.cancelRunningTask)(runningTask);\n        };\n    }\n    (0, react_1.useEffect)(loadAnnotations, [annotationsDispatch, page, renderForms]);\n    (0, react_1.useEffect)(() => {\n        if (annotations === undefined) {\n            return;\n        }\n        if (annotations === false) {\n            onLoadError();\n            return;\n        }\n        onLoadSuccess();\n    }, \n    // Ommitted callbacks so they are not called every time they change\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n    [annotations]);\n    function onRenderSuccess() {\n        if (onRenderAnnotationLayerSuccessProps) {\n            onRenderAnnotationLayerSuccessProps();\n        }\n    }\n    function onRenderError(error) {\n        (0, warning_1.default)(false, `${error}`);\n        if (onRenderAnnotationLayerErrorProps) {\n            onRenderAnnotationLayerErrorProps(error);\n        }\n    }\n    const viewport = (0, react_1.useMemo)(() => page.getViewport({ scale, rotation: rotate }), [page, rotate, scale]);\n    function renderAnnotationLayer() {\n        if (!pdf || !page || !linkService || !annotations) {\n            return;\n        }\n        const { current: layer } = layerElement;\n        if (!layer) {\n            return;\n        }\n        const clonedViewport = viewport.clone({ dontFlip: true });\n        const annotationLayerParameters = {\n            accessibilityManager: null, // TODO: Implement this\n            annotationCanvasMap: null, // TODO: Implement this\n            div: layer,\n            l10n: null, // TODO: Implement this\n            page,\n            viewport: clonedViewport,\n        };\n        const renderParameters = {\n            annotations,\n            annotationStorage: pdf.annotationStorage,\n            div: layer,\n            // See https://github.com/mozilla/pdf.js/issues/17029\n            downloadManager: null,\n            imageResourcesPath,\n            linkService,\n            page,\n            renderForms,\n            viewport: clonedViewport,\n        };\n        layer.innerHTML = '';\n        try {\n            new pdfjs_js_1.default.AnnotationLayer(annotationLayerParameters).render(renderParameters);\n            // Intentional immediate callback\n            onRenderSuccess();\n        }\n        catch (error) {\n            onRenderError(error);\n        }\n        return () => {\n            // TODO: Cancel running task?\n        };\n    }\n    (0, react_1.useEffect)(renderAnnotationLayer, \n    // Ommitted callbacks so they are not called every time they change\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n    [annotations, imageResourcesPath, linkService, page, renderForms, viewport]);\n    return (react_1.default.createElement(\"div\", { className: (0, clsx_1.default)('react-pdf__Page__annotations', 'annotationLayer'), ref: layerElement }));\n}\nexports.default = AnnotationLayer;\n"],"mappings":"AAAA,YAAY;AACZ,YAAY;;AACZ,IAAIA,eAAe,GAAI,IAAI,IAAI,IAAI,CAACA,eAAe,KAAMC,MAAM,CAACC,MAAM,GAAI,UAASC,CAAC,EAAEC,CAAC,EAAEC,CAAC,EAAEC,EAAE,EAAE;EAC5F,IAAIA,EAAE,KAAKC,SAAS,EAAED,EAAE,GAAGD,CAAC;EAC5B,IAAIG,IAAI,GAAGP,MAAM,CAACQ,wBAAwB,CAACL,CAAC,EAAEC,CAAC,CAAC;EAChD,IAAI,CAACG,IAAI,KAAK,KAAK,IAAIA,IAAI,GAAG,CAACJ,CAAC,CAACM,UAAU,GAAGF,IAAI,CAACG,QAAQ,IAAIH,IAAI,CAACI,YAAY,CAAC,EAAE;IACjFJ,IAAI,GAAG;MAAEK,UAAU,EAAE,IAAI;MAAEC,GAAG,EAAE,SAAAA,CAAA,EAAW;QAAE,OAAOV,CAAC,CAACC,CAAC,CAAC;MAAE;IAAE,CAAC;EAC/D;EACAJ,MAAM,CAACc,cAAc,CAACZ,CAAC,EAAEG,EAAE,EAAEE,IAAI,CAAC;AACtC,CAAC,GAAK,UAASL,CAAC,EAAEC,CAAC,EAAEC,CAAC,EAAEC,EAAE,EAAE;EACxB,IAAIA,EAAE,KAAKC,SAAS,EAAED,EAAE,GAAGD,CAAC;EAC5BF,CAAC,CAACG,EAAE,CAAC,GAAGF,CAAC,CAACC,CAAC,CAAC;AAChB,CAAE,CAAC;AACH,IAAIW,kBAAkB,GAAI,IAAI,IAAI,IAAI,CAACA,kBAAkB,KAAMf,MAAM,CAACC,MAAM,GAAI,UAASC,CAAC,EAAEc,CAAC,EAAE;EAC3Fh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