element-web-synapse01pim.gr.jp

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

usercontent.js.map (6120B)


      1 {"version":3,"file":"bundles/78cd486dc4f7ffb56898/usercontent.js","mappings":"MAAA,MACA,uBAAAA,oBAAA,CACA,IAAAC,EAAAD,oBAAAE,EACAC,EAAAH,oBAAAI,EACAC,EAAA,GACAC,EAAA,GAIAN,oBAAAE,EAAA,SAAAK,GAEA,OADAN,EAAAM,IAGAF,EAAAG,eAAAD,GAAA,IAAAF,EAAAE,GAAA,GAEA,EACAP,oBAAAI,EAAA,SAAAG,GAEA,OADAJ,EAAAI,GACAE,MAAA,SAAAC,GACA,IAAAC,EAAAL,EAAAE,eAAAD,GAAAD,EAAAC,GAAA,EACA,GAAAI,EAAA,GACA,IAAAC,EAAAX,EAAAM,GAQA,MAPAG,EAAAG,QACA,iBACAN,EACA,8BACAK,EACA,IACAF,EAAAI,QAAAF,EACAF,CACA,CACA,WAAAK,QAAA,SAAAC,GAEAC,WAAA,WACA,IACAC,EAAAC,KAAAC,MAEAf,EAAAE,GAAAW,EACAZ,EAAAC,GAAAI,EAAA,EACAK,EAAAhB,oBAAAI,EAAAG,GACA,EAjCA,IAkCA,EACA,EACA,CACA,CACC,EA7CD,GCQA,IAAIc,GAAY,EAmDhBC,OAAOC,UAAY,SAAUnB,GACrBA,EAAEoB,SAAWF,OAAOG,SAASD,QACzBpB,EAAEsB,KAAKC,MApDnB,SAAsBC,GAClB,MAAMF,EAAOE,EAAMF,KAGfL,GACAQ,SAASC,KAAKC,YAAYF,SAASG,cAAc,SAErDX,GAAY,EAEZ,MAAMY,EAAuBJ,SAASG,cAAc,QACpDC,EAAIC,GAAK,MAET,MAAMC,EAAuBN,SAASG,cAAc,KACpDG,EAAED,GAAK,IACPC,EAAEC,IAAM,sBACRD,EAAEE,SAAWX,EAAKW,SAElBF,EAAEG,MAAQZ,EAAKY,MACfH,EAAEG,MAAMC,WAAa,+BACrBJ,EAAEK,KAAOlB,OAAOmB,IAAIC,gBAAgBhB,EAAKC,MACzCQ,EAAEQ,YAAYV,GACdE,EAAEQ,YAAYd,SAASe,eAAelB,EAAKmB,cAIvCnB,EAAKoB,SAELb,EAAIK,MAAQZ,EAAKoB,UAEjBb,EAAIK,MAAMS,MAAQ,OAClBd,EAAIK,MAAMU,OAAS,OACnBf,EAAIK,MAAMW,eAAiB,OAC3BhB,EAAIK,MAAMY,mBAAqB,SAC/BjB,EAAIK,MAAMa,iBAAmB,YAC7BlB,EAAIK,MAAMc,QAAU,eACpBnB,EAAIK,MAAMe,gBAAkB,QAAQ3B,EAAK4B,WACzCrB,EAAIK,MAAMiB,gBAAkB,GAAGpB,EAAEG,MAAMkB,SAG3C,MAAM1B,EAAOD,SAASC,KAEtBA,EAAKQ,MAAMmB,OAAS,MACpB3B,EAAKQ,MAAMoB,SAAW,SACtB5B,EAAKa,YAAYR,GAEbP,EAAMF,KAAKiC,MACXxB,EAAEyB,OAEV,CAIyBC,CAAazD,EAEtC","sources":["webpack://element-web/webpack/runtime/compat","webpack://element-web/./src/usercontent/index.ts"],"sourcesContent":["(() => {\n  if (typeof __webpack_require__ !== 'undefined') {\n    var oldGetScript = __webpack_require__.u;\n    var oldLoadScript = __webpack_require__.e;\n    var queryMap = {};\n    var countMap = {};\n    var getRetryDelay = function () {\n      return 500;\n    };\n    __webpack_require__.u = function (chunkId) {\n      var result = oldGetScript(chunkId);\n      return (\n        result +\n        (queryMap.hasOwnProperty(chunkId) ? '?' + queryMap[chunkId] : '')\n      );\n    };\n    __webpack_require__.e = function (chunkId) {\n      var result = oldLoadScript(chunkId);\n      return result.catch(function (error) {\n        var retries = countMap.hasOwnProperty(chunkId) ? countMap[chunkId] : 3;\n        if (retries < 1) {\n          var realSrc = oldGetScript(chunkId);\n          error.message =\n            'Loading chunk ' +\n            chunkId +\n            ' failed after 3 retries.\\n(' +\n            realSrc +\n            ')';\n          error.request = realSrc;\n          throw error;\n        }\n        return new Promise(function (resolve) {\n          var retryAttempt = 3 - retries + 1;\n          setTimeout(function () {\n            var retryAttemptString = '&retry-attempt=' + retryAttempt;\n            var cacheBust = (() => Date.now())();\n            +retryAttemptString;\n            queryMap[chunkId] = cacheBust;\n            countMap[chunkId] = retries - 1;\n            resolve(__webpack_require__.e(chunkId));\n          }, getRetryDelay(retryAttempt));\n        });\n      });\n    };\n  }\n})();\n","/*\nCopyright 2024 New Vector Ltd.\nCopyright 2022 The Matrix.org Foundation C.I.C.\n\nSPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial\nPlease see LICENSE files in the repository root for full details.\n*/\n\nlet hasCalled = false;\nfunction remoteRender(event: MessageEvent): void {\n    const data = event.data;\n\n    // If we're handling secondary calls, start from scratch\n    if (hasCalled) {\n        document.body.replaceWith(document.createElement(\"BODY\"));\n    }\n    hasCalled = true;\n\n    const img: HTMLSpanElement = document.createElement(\"span\"); // we'll mask it as an image\n    img.id = \"img\";\n\n    const a: HTMLAnchorElement = document.createElement(\"a\");\n    a.id = \"a\";\n    a.rel = \"noreferrer noopener\";\n    a.download = data.download;\n    // @ts-ignore\n    a.style = data.style;\n    a.style.fontFamily = \"Arial, Helvetica, Sans-Serif\";\n    a.href = window.URL.createObjectURL(data.blob);\n    a.appendChild(img);\n    a.appendChild(document.createTextNode(data.textContent));\n\n    // Apply image style after so we can steal the anchor's colour.\n    // Style copied from a rendered version of mx_MFileBody_download_icon\n    if (data.imgStyle) {\n        // @ts-ignore\n        img.style = data.imgStyle;\n    } else {\n        img.style.width = \"20px\";\n        img.style.height = \"20px\";\n        img.style.webkitMaskSize = \"20px\";\n        img.style.webkitMaskPosition = \"center\";\n        img.style.webkitMaskRepeat = \"no-repeat\";\n        img.style.display = \"inline-block\";\n        img.style.webkitMaskImage = `url('${data.imgSrc}')`;\n        img.style.backgroundColor = `${a.style.color}`;\n    }\n\n    const body = document.body;\n    // Don't display scrollbars if the link takes more than one line to display.\n    body.style.margin = \"0px\";\n    body.style.overflow = \"hidden\";\n    body.appendChild(a);\n\n    if (event.data.auto) {\n        a.click(); // try to trigger download automatically\n    }\n}\n\nwindow.onmessage = function (e: MessageEvent): void {\n    if (e.origin === window.location.origin) {\n        if (e.data.blob) remoteRender(e);\n    }\n};\n"],"names":["__webpack_require__","oldGetScript","u","oldLoadScript","e","queryMap","countMap","chunkId","hasOwnProperty","catch","error","retries","realSrc","message","request","Promise","resolve","setTimeout","cacheBust","Date","now","hasCalled","window","onmessage","origin","location","data","blob","event","document","body","replaceWith","createElement","img","id","a","rel","download","style","fontFamily","href","URL","createObjectURL","appendChild","createTextNode","textContent","imgStyle","width","height","webkitMaskSize","webkitMaskPosition","webkitMaskRepeat","display","webkitMaskImage","imgSrc","backgroundColor","color","margin","overflow","auto","click","remoteRender"],"sourceRoot":""}