Files
doneit-web/.angular/cache/14.2.12/babel-webpack/4e2a764712db73f8eda3fc0fe8425f2c.json
T

1 line
118 KiB
JSON
Raw Normal View History

2023-06-30 09:54:21 +01:00
{"ast":null,"code":"import _asyncToGenerator from \"C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { c as writeTask, r as registerInstance, e as createEvent, f as readTask, h, i as getElement, H as Host } from './index-7a8b7a1c.js';\nimport { a as isPlatform, b as getIonMode, c as config } from './ionic-global-63a97a32.js';\nimport { g as getTimeGivenProgression } from './cubic-bezier-eea9a7a9.js';\nimport { c as componentOnReady, k as clamp, g as getElementRoot, r as raf } from './helpers-1457892a.js';\nimport { d as hapticImpact } from './haptic-27b3f981.js';\nimport { c as createAnimation } from './animation-822d986b.js';\nimport { s as sanitizeDOMString } from './index-9e3fe806.js';\nimport { S as SPINNERS } from './spinner-configs-cd7845af.js';\nconst getRefresherAnimationType = contentEl => {\n const previousSibling = contentEl.previousElementSibling;\n const hasHeader = previousSibling !== null && previousSibling.tagName === 'ION-HEADER';\n return hasHeader ? 'translate' : 'scale';\n};\nconst createPullingAnimation = (type, pullingSpinner, refresherEl) => {\n return type === 'scale' ? createScaleAnimation(pullingSpinner, refresherEl) : createTranslateAnimation(pullingSpinner, refresherEl);\n};\nconst createBaseAnimation = pullingRefresherIcon => {\n const spinner = pullingRefresherIcon.querySelector('ion-spinner');\n const circle = spinner.shadowRoot.querySelector('circle');\n const spinnerArrowContainer = pullingRefresherIcon.querySelector('.spinner-arrow-container');\n const arrowContainer = pullingRefresherIcon.querySelector('.arrow-container');\n const arrow = arrowContainer ? arrowContainer.querySelector('ion-icon') : null;\n const baseAnimation = createAnimation().duration(1000).easing('ease-out');\n const spinnerArrowContainerAnimation = createAnimation().addElement(spinnerArrowContainer).keyframes([{\n offset: 0,\n opacity: '0.3'\n }, {\n offset: 0.45,\n opacity: '0.3'\n }, {\n offset: 0.55,\n opacity: '1'\n }, {\n offset: 1,\n opacity: '1'\n }]);\n const circleInnerAnimation = createAnimation().addElement(circle).keyframes([{\n offset: 0,\n strokeDasharray: '1px, 200px'\n }, {\n offset: 0.20,\n strokeDasharray: '1px, 200px'\n }, {\n offset: 0.55,\n strokeDasharray: '100px, 200px'\n }, {\n offset: 1,\n strokeDasharray: '100px, 200px'\n }]);\n const circleOuterAnimation = createAnimation().addElement(spinner).keyframes([{\n offset: 0,\n transform: 'rotate(-90deg)'\n }, {\n offset: 1,\n transform: 'rotate(210deg)'\n }]);\n /**\n * Only add arrow animation if present\n * this allows users to customize the spinners\n * without errors being thrown\n */\n if (arrowContainer && arrow) {\n const arrowContainerAnimation = createAnimation().addElement(arrowContainer).keyframes([{\n offset: 0,\n transform: 'rotate(0deg)'\n }, {\n offset: 0.30,\n transform: 'rotate(0deg)'\n }, {\n offset: 0.55,\n transform: 'rotate(280deg)'\n }, {\n offset: 1,\n transform: 'rotate(400deg)'\n }]);\n const arrowAnimation = createAnimation().addElement(arrow).keyframes([{\n offset: 0,\n transform: 'translateX(2px) scale(0)'\n }, {\n offset: 0.30,\n transform: 'translateX(2px) scale(0)'\n }, {\n offset: 0.55,\n transform: 'translateX(-1.5px) scale(1)'\n }, {\n offset: 1,\n transform: 'translateX(-1.5px) scale(1)'\n }]);\n baseAnimation.addAnimation([arrowContainerAnimation, arrowAnimation]);\n }\n return baseAnimation.addAnimation([spinnerArrowContainerAnimation, circleInnerAnimation, circleOuterAnimation]);\n};\nconst createScaleAnimation = (pullingRefresherIcon, refresherEl) => {\n /**\n * Do not take the height of the refresher icon\n * because at this point the DOM has not updated,\n * so the refresher icon is still hidden with\n * display: none.\n * The `ion-refresher` container height\n * is roughly the amount we need to offset\n *