Files
WrenchBoardIonic2023/.angular/cache/14.2.0/babel-webpack/71c3a5de54f8350a9f76467d2adb3df4.json
T
CHIEFSOFT\ameye cea49e295a first commit
2023-05-12 22:30:08 -04:00

1 line
9.9 KiB
JSON

{"ast":null,"code":"/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { r as registerInstance, e as createEvent, h, H as Host, i as getElement } from './index-1a99aeb7.js';\nimport { b as getIonMode } from './ionic-global-04e268e7.js';\nimport { j as inheritAttributes } from './helpers-4d272360.js';\nconst imgCss = \":host{display:block;-o-object-fit:contain;object-fit:contain}img{display:block;width:100%;height:100%;-o-object-fit:inherit;object-fit:inherit;-o-object-position:inherit;object-position:inherit}\";\nconst Img = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.ionImgWillLoad = createEvent(this, \"ionImgWillLoad\", 7);\n this.ionImgDidLoad = createEvent(this, \"ionImgDidLoad\", 7);\n this.ionError = createEvent(this, \"ionError\", 7);\n this.inheritedAttributes = {};\n\n this.onLoad = () => {\n this.ionImgDidLoad.emit();\n };\n\n this.onError = () => {\n this.ionError.emit();\n };\n }\n\n srcChanged() {\n this.addIO();\n }\n\n componentWillLoad() {\n this.inheritedAttributes = inheritAttributes(this.el, ['draggable']);\n }\n\n componentDidLoad() {\n this.addIO();\n }\n\n addIO() {\n if (this.src === undefined) {\n return;\n }\n\n if (typeof window !== 'undefined' && 'IntersectionObserver' in window && 'IntersectionObserverEntry' in window && 'isIntersecting' in window.IntersectionObserverEntry.prototype) {\n this.removeIO();\n this.io = new IntersectionObserver(data => {\n /**\n * On slower devices, it is possible for an intersection observer entry to contain multiple\n * objects in the array. This happens when quickly scrolling an image into view and then out of\n * view. In this case, the last object represents the current state of the component.\n */\n if (data[data.length - 1].isIntersecting) {\n this.load();\n this.removeIO();\n }\n });\n this.io.observe(this.el);\n } else {\n // fall back to setTimeout for Safari and IE\n setTimeout(() => this.load(), 200);\n }\n }\n\n load() {\n this.loadError = this.onError;\n this.loadSrc = this.src;\n this.ionImgWillLoad.emit();\n }\n\n removeIO() {\n if (this.io) {\n this.io.disconnect();\n this.io = undefined;\n }\n }\n\n render() {\n const {\n loadSrc,\n alt,\n onLoad,\n loadError,\n inheritedAttributes\n } = this;\n const {\n draggable\n } = inheritedAttributes;\n return h(Host, {\n class: getIonMode(this)\n }, h(\"img\", {\n decoding: \"async\",\n src: loadSrc,\n alt: alt,\n onLoad: onLoad,\n onError: loadError,\n part: \"image\",\n draggable: isDraggable(draggable)\n }));\n }\n\n get el() {\n return getElement(this);\n }\n\n static get watchers() {\n return {\n \"src\": [\"srcChanged\"]\n };\n }\n\n};\n/**\n * Enumerated strings must be set as booleans\n * as Stencil will not render 'false' in the DOM.\n * The need to explicitly render draggable=\"true\"\n * as only certain elements are draggable by default.\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/draggable.\n */\n\nconst isDraggable = draggable => {\n switch (draggable) {\n case 'true':\n return true;\n\n case 'false':\n return false;\n\n default:\n return undefined;\n }\n};\n\nImg.style = imgCss;\nexport { Img as ion_img };","map":{"version":3,"names":["r","registerInstance","e","createEvent","h","H","Host","i","getElement","b","getIonMode","j","inheritAttributes","imgCss","Img","constructor","hostRef","ionImgWillLoad","ionImgDidLoad","ionError","inheritedAttributes","onLoad","emit","onError","srcChanged","addIO","componentWillLoad","el","componentDidLoad","src","undefined","window","IntersectionObserverEntry","prototype","removeIO","io","IntersectionObserver","data","length","isIntersecting","load","observe","setTimeout","loadError","loadSrc","disconnect","render","alt","draggable","class","decoding","part","isDraggable","watchers","style","ion_img"],"sources":["D:/MobileDev/WRB/WrenchBoard2023a/node_modules/@ionic/core/dist/esm/ion-img.entry.js"],"sourcesContent":["/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { r as registerInstance, e as createEvent, h, H as Host, i as getElement } from './index-1a99aeb7.js';\nimport { b as getIonMode } from './ionic-global-04e268e7.js';\nimport { j as inheritAttributes } from './helpers-4d272360.js';\n\nconst imgCss = \":host{display:block;-o-object-fit:contain;object-fit:contain}img{display:block;width:100%;height:100%;-o-object-fit:inherit;object-fit:inherit;-o-object-position:inherit;object-position:inherit}\";\n\nconst Img = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.ionImgWillLoad = createEvent(this, \"ionImgWillLoad\", 7);\n this.ionImgDidLoad = createEvent(this, \"ionImgDidLoad\", 7);\n this.ionError = createEvent(this, \"ionError\", 7);\n this.inheritedAttributes = {};\n this.onLoad = () => {\n this.ionImgDidLoad.emit();\n };\n this.onError = () => {\n this.ionError.emit();\n };\n }\n srcChanged() {\n this.addIO();\n }\n componentWillLoad() {\n this.inheritedAttributes = inheritAttributes(this.el, ['draggable']);\n }\n componentDidLoad() {\n this.addIO();\n }\n addIO() {\n if (this.src === undefined) {\n return;\n }\n if (typeof window !== 'undefined' &&\n 'IntersectionObserver' in window &&\n 'IntersectionObserverEntry' in window &&\n 'isIntersecting' in window.IntersectionObserverEntry.prototype) {\n this.removeIO();\n this.io = new IntersectionObserver((data) => {\n /**\n * On slower devices, it is possible for an intersection observer entry to contain multiple\n * objects in the array. This happens when quickly scrolling an image into view and then out of\n * view. In this case, the last object represents the current state of the component.\n */\n if (data[data.length - 1].isIntersecting) {\n this.load();\n this.removeIO();\n }\n });\n this.io.observe(this.el);\n }\n else {\n // fall back to setTimeout for Safari and IE\n setTimeout(() => this.load(), 200);\n }\n }\n load() {\n this.loadError = this.onError;\n this.loadSrc = this.src;\n this.ionImgWillLoad.emit();\n }\n removeIO() {\n if (this.io) {\n this.io.disconnect();\n this.io = undefined;\n }\n }\n render() {\n const { loadSrc, alt, onLoad, loadError, inheritedAttributes } = this;\n const { draggable } = inheritedAttributes;\n return (h(Host, { class: getIonMode(this) }, h(\"img\", { decoding: \"async\", src: loadSrc, alt: alt, onLoad: onLoad, onError: loadError, part: \"image\", draggable: isDraggable(draggable) })));\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"src\": [\"srcChanged\"]\n }; }\n};\n/**\n * Enumerated strings must be set as booleans\n * as Stencil will not render 'false' in the DOM.\n * The need to explicitly render draggable=\"true\"\n * as only certain elements are draggable by default.\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/draggable.\n */\nconst isDraggable = (draggable) => {\n switch (draggable) {\n case 'true':\n return true;\n case 'false':\n return false;\n default:\n return undefined;\n }\n};\nImg.style = imgCss;\n\nexport { Img as ion_img };\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,CAAC,IAAIC,gBAAd,EAAgCC,CAAC,IAAIC,WAArC,EAAkDC,CAAlD,EAAqDC,CAAC,IAAIC,IAA1D,EAAgEC,CAAC,IAAIC,UAArE,QAAuF,qBAAvF;AACA,SAASC,CAAC,IAAIC,UAAd,QAAgC,4BAAhC;AACA,SAASC,CAAC,IAAIC,iBAAd,QAAuC,uBAAvC;AAEA,MAAMC,MAAM,GAAG,oMAAf;AAEA,MAAMC,GAAG,GAAG,MAAM;EAChBC,WAAW,CAACC,OAAD,EAAU;IACnBf,gBAAgB,CAAC,IAAD,EAAOe,OAAP,CAAhB;IACA,KAAKC,cAAL,GAAsBd,WAAW,CAAC,IAAD,EAAO,gBAAP,EAAyB,CAAzB,CAAjC;IACA,KAAKe,aAAL,GAAqBf,WAAW,CAAC,IAAD,EAAO,eAAP,EAAwB,CAAxB,CAAhC;IACA,KAAKgB,QAAL,GAAgBhB,WAAW,CAAC,IAAD,EAAO,UAAP,EAAmB,CAAnB,CAA3B;IACA,KAAKiB,mBAAL,GAA2B,EAA3B;;IACA,KAAKC,MAAL,GAAc,MAAM;MAClB,KAAKH,aAAL,CAAmBI,IAAnB;IACD,CAFD;;IAGA,KAAKC,OAAL,GAAe,MAAM;MACnB,KAAKJ,QAAL,CAAcG,IAAd;IACD,CAFD;EAGD;;EACDE,UAAU,GAAG;IACX,KAAKC,KAAL;EACD;;EACDC,iBAAiB,GAAG;IAClB,KAAKN,mBAAL,GAA2BR,iBAAiB,CAAC,KAAKe,EAAN,EAAU,CAAC,WAAD,CAAV,CAA5C;EACD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