1f963074db38b89a602e4ff78bed0da4db8663a9aad33e3f5d1325f705d19dda.json 119 KB

1
  1. {"ast":null,"code":"import _asyncToGenerator from \"F:/workspace/202226701027/huinongbao-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\n/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { Build, proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';\nimport { E as ENABLE_HTML_CONTENT_DEFAULT, a as sanitizeDOMString } from './config.js';\nimport { g as getElementRoot, r as raf } from './helpers.js';\nimport { c as createLockController } from './lock-controller.js';\nimport { p as printIonWarning } from './index6.js';\nimport { O as OVERLAY_GESTURE_PRIORITY, d as createDelegateController, e as createTriggerController, i as isCancel, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod, s as safeCall, G as GESTURE } from './overlays.js';\nimport { c as createColorClasses, g as getClassMap } from './theme.js';\nimport { c as config, b as getIonMode } from './ionic-global.js';\nimport { c as createAnimation } from './animation.js';\nimport { w as win } from './index5.js';\nimport { createGesture } from './index3.js';\nimport { d as defineCustomElement$3 } from './icon.js';\nimport { d as defineCustomElement$2 } from './ripple-effect.js';\n\n/**\n * Calculate the CSS top and bottom position of the toast, to be used\n * as starting points for the animation keyframes.\n *\n * The default animations for both MD and iOS\n * use translateY, which calculates from the\n * top edge of the screen. This behavior impacts\n * how we compute the offset when a toast has\n * position='bottom' since we need to calculate from\n * the bottom edge of the screen instead.\n *\n * @param position The value of the toast's position prop.\n * @param positionAnchor The element the toast should be anchored to,\n * if applicable.\n * @param mode The toast component's mode (md, ios, etc).\n * @param toast A reference to the toast element itself.\n */\nfunction getAnimationPosition(position, positionAnchor, mode, toast) {\n /**\n * Start with a predefined offset from the edge the toast will be\n * positioned relative to, whether on the screen or anchor element.\n */\n let offset;\n if (mode === 'md') {\n offset = position === 'top' ? 8 : -8;\n } else {\n offset = position === 'top' ? 10 : -10;\n }\n /**\n * If positionAnchor is defined, add in the distance from the target\n * screen edge to the target anchor edge. For position=\"top\", the\n * bottom anchor edge is targeted. For position=\"bottom\", the top\n * anchor edge is targeted.\n */\n if (positionAnchor && win) {\n warnIfAnchorIsHidden(positionAnchor, toast);\n const box = positionAnchor.getBoundingClientRect();\n if (position === 'top') {\n offset += box.bottom;\n } else if (position === 'bottom') {\n /**\n * Just box.top is the distance from the top edge of the screen\n * to the top edge of the anchor. We want to calculate from the\n * bottom edge of the screen instead.\n */\n offset -= win.innerHeight - box.top;\n }\n /**\n * We don't include safe area here because that should already be\n * accounted for when checking the position of the anchor.\n */\n return {\n top: `${offset}px`,\n bottom: `${offset}px`\n };\n } else {\n return {\n top: `calc(${offset}px + var(--ion-safe-area-top, 0px))`,\n bottom: `calc(${offset}px - var(--ion-safe-area-bottom, 0px))`\n };\n }\n}\n/**\n * If the anchor element is hidden, getBoundingClientRect()\n * will return all 0s for it, which can cause unexpected\n * results in the position calculation when animating.\n */\nfunction warnIfAnchorIsHidden(positionAnchor, toast) {\n if (positionAnchor.offsetParent === null) {\n printIonWarning('The positionAnchor element for ion-toast was found in the DOM, but appears to be hidden. This may lead to unexpected positioning of the toast.', toast);\n }\n}\n/**\n * Returns the top offset required to place\n * the toast in the middle of the screen.\n * Only needed when position=\"toast\".\n * @param toastHeight - The height of the ion-toast element\n * @param wrapperHeight - The height of the .toast-wrapper element\n * inside the toast's shadow root.\n */\nconst getOffsetForMiddlePosition = (toastHeight, wrapperHeight) => {\n return Math.floor(toastHeight / 2 - wrapperHeight / 2);\n};\n\n/**\n * iOS Toast Enter Animation\n */\nconst iosEnterAnimation = (baseEl, opts) => {\n const baseAnimation = createAnimation();\n const wrapperAnimation = createAnimation();\n const {\n position,\n top,\n bottom\n } = opts;\n const root = getElementRoot(baseEl);\n const wrapperEl = root.querySelector('.toast-wrapper');\n wrapperAnimation.addElement(wrapperEl);\n switch (position) {\n case 'top':\n wrapperAnimation.fromTo('transform', 'translateY(-100%)', `translateY(${top})`);\n break;\n case 'middle':\n const topPosition = getOffsetForMiddlePosition(baseEl.clientHeight, wrapperEl.clientHeight);\n wrapperEl.style.top = `${topPosition}px`;\n wrapperAnimation.fromTo('opacity', 0.01, 1);\n break;\n default:\n wrapperAnimation.fromTo('transform', 'translateY(100%)', `translateY(${bottom})`);\n break;\n }\n return baseAnimation.easing('cubic-bezier(.155,1.105,.295,1.12)').duration(400).addAnimation(wrapperAnimation);\n};\n\n/**\n * iOS Toast Leave Animation\n */\nconst iosLeaveAnimation = (baseEl, opts) => {\n const baseAnimation = createAnimation();\n const wrapperAnimation = createAnimation();\n const {\n position,\n top,\n bottom\n } = opts;\n const root = getElementRoot(baseEl);\n const wrapperEl = root.querySelector('.toast-wrapper');\n wrapperAnimation.addElement(wrapperEl);\n switch (position) {\n case 'top':\n wrapperAnimation.fromTo('transform', `translateY(${top})`, 'translateY(-100%)');\n break;\n case 'middle':\n wrapperAnimation.fromTo('opacity', 0.99, 0);\n break;\n default:\n wrapperAnimation.fromTo('transform', `translateY(${bottom})`, 'translateY(100%)');\n break;\n }\n return baseAnimation.easing('cubic-bezier(.36,.66,.04,1)').duration(300).addAnimation(wrapperAnimation);\n};\n\n/**\n * MD Toast Enter Animation\n */\nconst mdEnterAnimation = (baseEl, opts) => {\n const baseAnimation = createAnimation();\n const wrapperAnimation = createAnimation();\n const {\n position,\n top,\n bottom\n } = opts;\n const root = getElementRoot(baseEl);\n const wrapperEl = root.querySelector('.toast-wrapper');\n wrapperAnimation.addElement(wrapperEl);\n switch (position) {\n case 'top':\n wrapperEl.style.setProperty('transform', `translateY(${top})`);\n wrapperAnimation.fromTo('opacity', 0.01, 1);\n break;\n case 'middle':\n const topPosition = getOffsetForMiddlePosition(baseEl.clientHeight, wrapperEl.clientHeight);\n wrapperEl.style.top = `${topPosition}px`;\n wrapperAnimation.fromTo('opacity', 0.01, 1);\n break;\n default:\n wrapperEl.style.setProperty('transform', `translateY(${bottom})`);\n wrapperAnimation.fromTo('opacity', 0.01, 1);\n break;\n }\n return baseAnimation.easing('cubic-bezier(.36,.66,.04,1)').duration(400).addAnimation(wrapperAnimation);\n};\n\n/**\n * md Toast Leave Animation\n */\nconst mdLeaveAnimation = baseEl => {\n const baseAnimation = createAnimation();\n const wrapperAnimation = createAnimation();\n const root = getElementRoot(baseEl);\n const wrapperEl = root.querySelector('.toast-wrapper');\n wrapperAnimation.addElement(wrapperEl).fromTo('opacity', 0.99, 0);\n return baseAnimation.easing('cubic-bezier(.36,.66,.04,1)').duration(300).addAnimation(wrapperAnimation);\n};\n\n/**\n * Create a gesture that allows the Toast\n * to be swiped to dismiss.\n * @param el - The Toast element\n * @param toastPosition - The last computed position of the Toast. This is computed in the \"present\" method.\n * @param onDismiss - A callback to fire when the Toast was swiped to dismiss.\n */\nconst createSwipeToDismissGesture = (el, toastPosition, onDismiss) => {\n /**\n * Users should swipe on the visible toast wrapper\n * rather than on ion-toast which covers the entire screen.\n * When testing the class instance the inner wrapper will not\n * be defined. As a result, we use a placeholder element in those environments.\n */\n const wrapperEl = Build.isTesting ? document.createElement('div') : getElementRoot(el).querySelector('.toast-wrapper');\n const hostElHeight = el.clientHeight;\n const wrapperElBox = wrapperEl.getBoundingClientRect();\n /**\n * The maximum amount that\n * the toast can be swiped. This should\n * account for the wrapper element's height\n * too so the toast can be swiped offscreen\n * completely.\n */\n let MAX_SWIPE_DISTANCE = 0;\n /**\n * The step value at which a toast\n * is eligible for dismissing via gesture.\n */\n const DISMISS_THRESHOLD = 0.5;\n /**\n * The middle position Toast starts 50% of the way\n * through the animation, so we need to use this\n * as the starting point for our step values.\n */\n const STEP_OFFSET = el.position === 'middle' ? 0.5 : 0;\n /**\n * When the Toast is at the top users will be\n * swiping up. As a result, the delta values will be\n * negative numbers which will result in negative steps\n * and thresholds. As a result, we need to make those numbers\n * positive.\n */\n const INVERSION_FACTOR = el.position === 'top' ? -1 : 1;\n /**\n * The top offset that places the\n * toast in the middle of the screen.\n * Only needed when position=\"middle\".\n */\n const topPosition = getOffsetForMiddlePosition(hostElHeight, wrapperElBox.height);\n const SWIPE_UP_DOWN_KEYFRAMES = [{\n offset: 0,\n transform: `translateY(-${topPosition + wrapperElBox.height}px)`\n }, {\n offset: 0.5,\n transform: `translateY(0px)`\n }, {\n offset: 1,\n transform: `translateY(${topPosition + wrapperElBox.height}px)`\n }];\n const swipeAnimation = createAnimation('toast-swipe-to-dismiss-animation').addElement(wrapperEl)\n /**\n * The specific value here does not actually\n * matter. We just need this to be a positive\n * value so the animation does not jump\n * to the end when the user beings to drag.\n */.duration(100);\n switch (el.position) {\n case 'middle':\n MAX_SWIPE_DISTANCE = hostElHeight + wrapperElBox.height;\n swipeAnimation.keyframes(SWIPE_UP_DOWN_KEYFRAMES);\n /**\n * Toast can be swiped up or down but\n * should start in the middle of the screen.\n */\n swipeAnimation.progressStart(true, 0.5);\n break;\n case 'top':\n /**\n * The bottom edge of the wrapper\n * includes the distance between the top\n * of the screen and the top of the wrapper\n * as well as the wrapper height so the wrapper\n * can be dragged fully offscreen.\n */\n MAX_SWIPE_DISTANCE = wrapperElBox.bottom;\n swipeAnimation.keyframes([{\n offset: 0,\n transform: `translateY(${toastPosition.top})`\n }, {\n offset: 1,\n transform: 'translateY(-100%)'\n }]);\n swipeAnimation.progressStart(true, 0);\n break;\n case 'bottom':\n default:\n /**\n * This computes the distance between the\n * top of the wrapper and the bottom of the\n * screen including the height of the wrapper\n * element so it can be dragged fully offscreen.\n */\n MAX_SWIPE_DISTANCE = hostElHeight - wrapperElBox.top;\n swipeAnimation.keyframes([{\n offset: 0,\n transform: `translateY(${toastPosition.bottom})`\n }, {\n offset: 1,\n transform: 'translateY(100%)'\n }]);\n swipeAnimation.progressStart(true, 0);\n break;\n }\n const computeStep = delta => {\n return delta * INVERSION_FACTOR / MAX_SWIPE_DISTANCE;\n };\n const onMove = detail => {\n const step = STEP_OFFSET + computeStep(detail.deltaY);\n swipeAnimation.progressStep(step);\n };\n const onEnd = detail => {\n const velocity = detail.velocityY;\n const threshold = (detail.deltaY + velocity * 1000) / MAX_SWIPE_DISTANCE * INVERSION_FACTOR;\n /**\n * Disable the gesture for the remainder of the animation.\n * It will be re-enabled if the toast animates back to\n * its initial presented position.\n */\n gesture.enable(false);\n let shouldDismiss = true;\n let playTo = 1;\n let step = 0;\n let remainingDistance = 0;\n if (el.position === 'middle') {\n /**\n * A middle positioned Toast appears\n * in the middle of the screen (at animation offset 0.5).\n * As a result, the threshold will be calculated relative\n * to this starting position. In other words at animation offset 0.5\n * the threshold will be 0. We want the middle Toast to be eligible\n * for dismiss when the user has swiped either half way up or down the\n * screen. As a result, we divide DISMISS_THRESHOLD in half. We also\n * consider when the threshold is a negative in the event the\n * user drags up (since the deltaY will also be negative).\n */\n shouldDismiss = threshold >= DISMISS_THRESHOLD / 2 || threshold <= -DISMISS_THRESHOLD / 2;\n /**\n * Since we are replacing the keyframes\n * below the animation always starts from\n * the beginning of the new keyframes.\n * Similarly, we are always playing to\n * the end of the new keyframes.\n */\n playTo = 1;\n step = 0;\n /**\n * The Toast should animate from wherever its\n * current position is to the desired end state.\n *\n * To begin, we get the current position of the\n * Toast for its starting state.\n */\n const wrapperElBox = wrapperEl.getBoundingClientRect();\n const startOffset = wrapperElBox.top - topPosition;\n const startPosition = `${startOffset}px`;\n /**\n * If the deltaY is negative then the user is swiping\n * up, so the Toast should animate to the top of the screen.\n * If the deltaY is positive then the user is swiping\n * down, so the Toast should animate to the bottom of the screen.\n * We also account for when the deltaY is 0, but realistically\n * that should never happen because it means the user did not drag\n * the toast.\n */\n const offsetFactor = detail.deltaY <= 0 ? -1 : 1;\n const endOffset = (topPosition + wrapperElBox.height) * offsetFactor;\n /**\n * If the Toast should dismiss\n * then we need to figure out which edge of\n * the screen it should animate towards.\n * By default, the Toast will come\n * back to its default state in the\n * middle of the screen.\n */\n const endPosition = shouldDismiss ? `${endOffset}px` : '0px';\n const KEYFRAMES = [{\n offset: 0,\n transform: `translateY(${startPosition})`\n }, {\n offset: 1,\n transform: `translateY(${endPosition})`\n }];\n swipeAnimation.keyframes(KEYFRAMES);\n /**\n * Compute the remaining amount of pixels the\n * toast needs to move to be fully dismissed.\n */\n remainingDistance = endOffset - startOffset;\n } else {\n shouldDismiss = threshold >= DISMISS_THRESHOLD;\n playTo = shouldDismiss ? 1 : 0;\n step = computeStep(detail.deltaY);\n /**\n * Compute the remaining amount of pixels the\n * toast needs to move to be fully dismissed.\n */\n const remainingStepAmount = shouldDismiss ? 1 - step : step;\n remainingDistance = remainingStepAmount * MAX_SWIPE_DISTANCE;\n }\n /**\n * The animation speed should depend on how quickly\n * the user flicks the toast across the screen. However,\n * it should be no slower than 200ms.\n * We use Math.abs on the remainingDistance because that value\n * can be negative when swiping up on a middle position toast.\n */\n const duration = Math.min(Math.abs(remainingDistance) / Math.abs(velocity), 200);\n swipeAnimation.onFinish(() => {\n if (shouldDismiss) {\n onDismiss();\n swipeAnimation.destroy();\n } else {\n if (el.position === 'middle') {\n /**\n * If the toast snapped back to\n * the middle of the screen we need\n * to reset the keyframes\n * so the toast can be swiped\n * up or down again.\n */\n swipeAnimation.keyframes(SWIPE_UP_DOWN_KEYFRAMES).progressStart(true, 0.5);\n } else {\n swipeAnimation.progressStart(true, 0);\n }\n /**\n * If the toast did not dismiss then\n * the user should be able to swipe again.\n */\n gesture.enable(true);\n }\n /**\n * This must be a one time callback\n * otherwise a new callback will\n * be added every time onEnd runs.\n */\n }, {\n oneTimeCallback: true\n }).progressEnd(playTo, step, duration);\n };\n const gesture = createGesture({\n el: wrapperEl,\n gestureName: 'toast-swipe-to-dismiss',\n gesturePriority: OVERLAY_GESTURE_PRIORITY,\n /**\n * Toast only supports vertical swipes.\n * This needs to be updated if we later\n * support horizontal swipes.\n */\n direction: 'y',\n onMove,\n onEnd\n });\n return gesture;\n};\nconst toastIosCss = \":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--border-radius:14px;--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));--max-width:700px;--max-height:478px;--start:10px;--end:10px;font-size:clamp(14px, 0.875rem, 43.4px)}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.toast-translucent) .toast-wrapper{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}:host(.ion-color.toast-translucent) .toast-wrapper{background:rgba(var(--ion-color-base-rgb), 0.8)}}.toast-wrapper.toast-middle{opacity:0.01}.toast-content{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:15px;padding-bottom:15px}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;min-height:44px;-webkit-transition:background-color, opacity 100ms linear;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:clamp(17px, 1.0625rem, 21.998px);font-weight:500;overflow:hidden}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}\";\nconst IonToastIosStyle0 = toastIosCss;\nconst toastMdCss = \":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-800, var(--ion-background-color-step-800, #333333));--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-50, var(--ion-text-color-step-950, #f2f2f2));--max-width:700px;--start:8px;--end:8px;font-size:0.875rem}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}.toast-content{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:14px;padding-bottom:14px}.toast-header{margin-bottom:2px;font-weight:500;line-height:1.25rem}.toast-message{line-height:1.25rem}.toast-layout-baseline .toast-button-group-start{-webkit-margin-start:8px;margin-inline-start:8px}.toast-layout-stacked .toast-button-group-start{-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px}.toast-layout-baseline .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px}.toast-layout-stacked .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px;margin-bottom:8px}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:0.875rem;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}.toast-button-cancel{color:var(--ion-color-step-100, var(--ion-text-color-step-900, #e6e6e6))}.toast-button-icon-only{border-radius:50%;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}\";\nconst IonToastMdStyle0 = toastMdCss;\nconst Toast = /*@__PURE__*/proxyCustomElement(class Toast extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.__attachShadow();\n this.didPresent = createEvent(this, \"ionToastDidPresent\", 7);\n this.willPresent = createEvent(this, \"ionToastWillPresent\", 7);\n this.willDismiss = createEvent(this, \"ionToastWillDismiss\", 7);\n this.didDismiss = createEvent(this, \"ionToastDidDismiss\", 7);\n this.didPresentShorthand = createEvent(this, \"didPresent\", 7);\n this.willPresentShorthand = createEvent(this, \"willPresent\", 7);\n this.willDismissShorthand = createEvent(this, \"willDismiss\", 7);\n this.didDismissShorthand = createEvent(this, \"didDismiss\", 7);\n this.delegateController = createDelegateController(this);\n this.lockController = createLockController();\n this.triggerController = createTriggerController();\n this.customHTMLEnabled = config.get('innerHTMLTemplatesEnabled', ENABLE_HTML_CONTENT_DEFAULT);\n this.presented = false;\n this.dispatchCancelHandler = ev => {\n const role = ev.detail.role;\n if (isCancel(role)) {\n const cancelButton = this.getButtons().find(b => b.role === 'cancel');\n this.callButtonHandler(cancelButton);\n }\n };\n /**\n * Create a new swipe gesture so Toast\n * can be swiped to dismiss.\n */\n this.createSwipeGesture = toastPosition => {\n const gesture = this.gesture = createSwipeToDismissGesture(this.el, toastPosition, () => {\n /**\n * If the gesture completed then\n * we should dismiss the toast.\n */\n this.dismiss(undefined, GESTURE);\n });\n gesture.enable(true);\n };\n /**\n * Destroy an existing swipe gesture\n * so Toast can no longer be swiped to dismiss.\n */\n this.destroySwipeGesture = () => {\n const {\n gesture\n } = this;\n if (gesture === undefined) {\n return;\n }\n gesture.destroy();\n this.gesture = undefined;\n };\n /**\n * Returns `true` if swipeGesture\n * is configured to a value that enables the swipe behavior.\n * Returns `false` otherwise.\n */\n this.prefersSwipeGesture = () => {\n const {\n swipeGesture\n } = this;\n return swipeGesture === 'vertical';\n };\n this.revealContentToScreenReader = false;\n this.overlayIndex = undefined;\n this.delegate = undefined;\n this.hasController = false;\n this.color = undefined;\n this.enterAnimation = undefined;\n this.leaveAnimation = undefined;\n this.cssClass = undefined;\n this.duration = config.getNumber('toastDuration', 0);\n this.header = undefined;\n this.layout = 'baseline';\n this.message = undefined;\n this.keyboardClose = false;\n this.position = 'bottom';\n this.positionAnchor = undefined;\n this.buttons = undefined;\n this.translucent = false;\n this.animated = true;\n this.icon = undefined;\n this.htmlAttributes = undefined;\n this.swipeGesture = undefined;\n this.isOpen = false;\n this.trigger = undefined;\n }\n swipeGestureChanged() {\n /**\n * If the Toast is presented, then we need to destroy\n * any actives gestures before a new gesture is potentially\n * created below.\n *\n * If the Toast is dismissed, then no gesture should be available\n * since the Toast is not visible. This case should never\n * happen since the \"dismiss\" method handles destroying\n * any active swipe gestures, but we keep this code\n * around to handle the first case.\n */\n this.destroySwipeGesture();\n /**\n * A new swipe gesture should only be created\n * if the Toast is presented. If the Toast is not\n * yet presented then the \"present\" method will\n * handle calling the swipe gesture setup function.\n */\n if (this.presented && this.prefersSwipeGesture()) {\n /**\n * If the Toast is presented then\n * lastPresentedPosition is defined.\n */\n this.createSwipeGesture(this.lastPresentedPosition);\n }\n }\n onIsOpenChange(newValue, oldValue) {\n if (newValue === true && oldValue === false) {\n this.present();\n } else if (newValue === false && oldValue === true) {\n this.dismiss();\n }\n }\n triggerChanged() {\n const {\n trigger,\n el,\n triggerController\n } = this;\n if (trigger) {\n triggerController.addClickListener(el, trigger);\n }\n }\n connectedCallback() {\n prepareOverlay(this.el);\n this.triggerChanged();\n }\n disconnectedCallback() {\n this.triggerController.removeClickListener();\n }\n componentWillLoad() {\n var _a;\n if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {\n setOverlayId(this.el);\n }\n }\n componentDidLoad() {\n /**\n * If toast was rendered with isOpen=\"true\"\n * then we should open toast immediately.\n */\n if (this.isOpen === true) {\n raf(() => this.present());\n }\n /**\n * When binding values in frameworks such as Angular\n * it is possible for the value to be set after the Web Component\n * initializes but before the value watcher is set up in Stencil.\n * As a result, the watcher callback may not be fired.\n * We work around this by manually calling the watcher\n * callback when the component has loaded and the watcher\n * is configured.\n */\n this.triggerChanged();\n }\n /**\n * Present the toast overlay after it has been created.\n */\n present() {\n var _this = this;\n return _asyncToGenerator(function* () {\n const unlock = yield _this.lockController.lock();\n yield _this.delegateController.attachViewToDom();\n const {\n el,\n position\n } = _this;\n const anchor = _this.getAnchorElement();\n const animationPosition = getAnimationPosition(position, anchor, getIonMode(_this), el);\n /**\n * Cache the calculated position of the toast, so we can re-use it\n * in the dismiss animation.\n */\n _this.lastPresentedPosition = animationPosition;\n yield present(_this, 'toastEnter', iosEnterAnimation, mdEnterAnimation, {\n position,\n top: animationPosition.top,\n bottom: animationPosition.bottom\n });\n /**\n * Content is revealed to screen readers after\n * the transition to avoid jank since this\n * state updates will cause a re-render.\n */\n _this.revealContentToScreenReader = true;\n if (_this.duration > 0) {\n _this.durationTimeout = setTimeout(() => _this.dismiss(undefined, 'timeout'), _this.duration);\n }\n /**\n * If the Toast has a swipe gesture then we can\n * create the gesture so users can swipe the\n * presented Toast.\n */\n if (_this.prefersSwipeGesture()) {\n _this.createSwipeGesture(animationPosition);\n }\n unlock();\n })();\n }\n /**\n * Dismiss the toast overlay after it has been presented.\n *\n * @param data Any data to emit in the dismiss events.\n * @param role The role of the element that is dismissing the toast.\n * This can be useful in a button handler for determining which button was\n * clicked to dismiss the toast.\n * Some examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n *\n * This is a no-op if the overlay has not been presented yet. If you want\n * to remove an overlay from the DOM that was never presented, use the\n * [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.\n */\n dismiss(data, role) {\n var _this2 = this;\n return _asyncToGenerator(function* () {\n var _a, _b;\n const unlock = yield _this2.lockController.lock();\n const {\n durationTimeout,\n position,\n lastPresentedPosition\n } = _this2;\n if (durationTimeout) {\n clearTimeout(durationTimeout);\n }\n const dismissed = yield dismiss(_this2, data, role, 'toastLeave', iosLeaveAnimation, mdLeaveAnimation,\n /**\n * Fetch the cached position that was calculated back in the present\n * animation. We always want to animate the dismiss from the same\n * position the present stopped at, so the animation looks continuous.\n */\n {\n position,\n top: (_a = lastPresentedPosition === null || lastPresentedPosition === void 0 ? void 0 : lastPresentedPosition.top) !== null && _a !== void 0 ? _a : '',\n bottom: (_b = lastPresentedPosition === null || lastPresentedPosition === void 0 ? void 0 : lastPresentedPosition.bottom) !== null && _b !== void 0 ? _b : ''\n });\n if (dismissed) {\n _this2.delegateController.removeViewFromDom();\n _this2.revealContentToScreenReader = false;\n }\n _this2.lastPresentedPosition = undefined;\n /**\n * If the Toast has a swipe gesture then we can\n * safely destroy it now that it is dismissed.\n */\n _this2.destroySwipeGesture();\n unlock();\n return dismissed;\n })();\n }\n /**\n * Returns a promise that resolves when the toast did dismiss.\n */\n onDidDismiss() {\n return eventMethod(this.el, 'ionToastDidDismiss');\n }\n /**\n * Returns a promise that resolves when the toast will dismiss.\n */\n onWillDismiss() {\n return eventMethod(this.el, 'ionToastWillDismiss');\n }\n getButtons() {\n const buttons = this.buttons ? this.buttons.map(b => {\n return typeof b === 'string' ? {\n text: b\n } : b;\n }) : [];\n return buttons;\n }\n /**\n * Returns the element specified by the positionAnchor prop,\n * or undefined if prop's value is an ID string and the element\n * is not found in the DOM.\n */\n getAnchorElement() {\n const {\n position,\n positionAnchor,\n el\n } = this;\n /**\n * If positionAnchor is undefined then\n * no anchor should be used when presenting the toast.\n */\n if (positionAnchor === undefined) {\n return;\n }\n if (position === 'middle' && positionAnchor !== undefined) {\n printIonWarning('The positionAnchor property is ignored when using position=\"middle\".', this.el);\n return undefined;\n }\n if (typeof positionAnchor === 'string') {\n /**\n * If the anchor is defined as an ID, find the element.\n * We do this on every present so the toast doesn't need\n * to account for the surrounding DOM changing since the\n * last time it was presented.\n */\n const foundEl = document.getElementById(positionAnchor);\n if (foundEl === null) {\n printIonWarning(`An anchor element with an ID of \"${positionAnchor}\" was not found in the DOM.`, el);\n return undefined;\n }\n return foundEl;\n }\n if (positionAnchor instanceof HTMLElement) {\n return positionAnchor;\n }\n printIonWarning('Invalid positionAnchor value:', positionAnchor, el);\n return undefined;\n }\n buttonClick(button) {\n var _this3 = this;\n return _asyncToGenerator(function* () {\n const role = button.role;\n if (isCancel(role)) {\n return _this3.dismiss(undefined, role);\n }\n const shouldDismiss = yield _this3.callButtonHandler(button);\n if (shouldDismiss) {\n return _this3.dismiss(undefined, role);\n }\n return Promise.resolve();\n })();\n }\n callButtonHandler(button) {\n return _asyncToGenerator(function* () {\n if (button === null || button === void 0 ? void 0 : button.handler) {\n // a handler has been provided, execute it\n // pass the handler the values from the inputs\n try {\n const rtn = yield safeCall(button.handler);\n if (rtn === false) {\n // if the return value of the handler is false then do not dismiss\n return false;\n }\n } catch (e) {\n console.error(e);\n }\n }\n return true;\n })();\n }\n renderButtons(buttons, side) {\n if (buttons.length === 0) {\n return;\n }\n const mode = getIonMode(this);\n const buttonGroupsClasses = {\n 'toast-button-group': true,\n [`toast-button-group-${side}`]: true\n };\n return h(\"div\", {\n class: buttonGroupsClasses\n }, buttons.map(b => h(\"button\", Object.assign({}, b.htmlAttributes, {\n type: \"button\",\n class: buttonClass(b),\n tabIndex: 0,\n onClick: () => this.buttonClick(b),\n part: buttonPart(b)\n }), h(\"div\", {\n class: \"toast-button-inner\"\n }, b.icon && h(\"ion-icon\", {\n \"aria-hidden\": \"true\",\n icon: b.icon,\n slot: b.text === undefined ? 'icon-only' : undefined,\n class: \"toast-button-icon\"\n }), b.text), mode === 'md' && h(\"ion-ripple-effect\", {\n type: b.icon !== undefined && b.text === undefined ? 'unbounded' : 'bounded'\n }))));\n }\n /**\n * Render the `message` property.\n * @param key - A key to give the element a stable identity. This is used to improve compatibility with screen readers.\n * @param ariaHidden - If \"true\" then content will be hidden from screen readers.\n */\n renderToastMessage(key, ariaHidden = null) {\n const {\n customHTMLEnabled,\n message\n } = this;\n if (customHTMLEnabled) {\n return h(\"div\", {\n key: key,\n \"aria-hidden\": ariaHidden,\n class: \"toast-message\",\n part: \"message\",\n innerHTML: sanitizeDOMString(message)\n });\n }\n return h(\"div\", {\n key: key,\n \"aria-hidden\": ariaHidden,\n class: \"toast-message\",\n part: \"message\"\n }, message);\n }\n /**\n * Render the `header` property.\n * @param key - A key to give the element a stable identity. This is used to improve compatibility with screen readers.\n * @param ariaHidden - If \"true\" then content will be hidden from screen readers.\n */\n renderHeader(key, ariaHidden = null) {\n return h(\"div\", {\n key: key,\n class: \"toast-header\",\n \"aria-hidden\": ariaHidden,\n part: \"header\"\n }, this.header);\n }\n render() {\n const {\n layout,\n el,\n revealContentToScreenReader,\n header,\n message\n } = this;\n const allButtons = this.getButtons();\n const startButtons = allButtons.filter(b => b.side === 'start');\n const endButtons = allButtons.filter(b => b.side !== 'start');\n const mode = getIonMode(this);\n const wrapperClass = {\n 'toast-wrapper': true,\n [`toast-${this.position}`]: true,\n [`toast-layout-${layout}`]: true\n };\n /**\n * Stacked buttons are only meant to be\n * used with one type of button.\n */\n if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {\n printIonWarning('This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.', el);\n }\n return h(Host, Object.assign({\n key: 'c05655ff06af8d0e48c2a85396b07ad942fa81b4',\n tabindex: \"-1\"\n }, this.htmlAttributes, {\n style: {\n zIndex: `${60000 + this.overlayIndex}`\n },\n class: createColorClasses(this.color, Object.assign(Object.assign({\n [mode]: true\n }, getClassMap(this.cssClass)), {\n 'overlay-hidden': true,\n 'toast-translucent': this.translucent\n })),\n onIonToastWillDismiss: this.dispatchCancelHandler\n }), h(\"div\", {\n key: '9393ead4de1bf28529661d6f64049d34e18d725c',\n class: wrapperClass\n }, h(\"div\", {\n key: '3e9dd73c17c337849c3f26e8d0f395b3e5ee20a7',\n class: \"toast-container\",\n part: \"container\"\n }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && h(\"ion-icon\", {\n key: '5d15b18364301ad55e44e9f601014ac33181590b',\n class: \"toast-icon\",\n part: \"icon\",\n icon: this.icon,\n lazy: false,\n \"aria-hidden\": \"true\"\n }), h(\"div\", {\n key: 'f6dd164502637a882c5caf18445d8509b85ad6f9',\n class: \"toast-content\",\n role: \"status\",\n \"aria-atomic\": \"true\",\n \"aria-live\": \"polite\"\n }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end'))));\n }\n get el() {\n return this;\n }\n static get watchers() {\n return {\n \"swipeGesture\": [\"swipeGestureChanged\"],\n \"isOpen\": [\"onIsOpenChange\"],\n \"trigger\": [\"triggerChanged\"]\n };\n }\n static get style() {\n return {\n ios: IonToastIosStyle0,\n md: IonToastMdStyle0\n };\n }\n}, [33, \"ion-toast\", {\n \"overlayIndex\": [2, \"overlay-index\"],\n \"delegate\": [16],\n \"hasController\": [4, \"has-controller\"],\n \"color\": [513],\n \"enterAnimation\": [16],\n \"leaveAnimation\": [16],\n \"cssClass\": [1, \"css-class\"],\n \"duration\": [2],\n \"header\": [1],\n \"layout\": [1],\n \"message\": [1],\n \"keyboardClose\": [4, \"keyboard-close\"],\n \"position\": [1],\n \"positionAnchor\": [1, \"position-anchor\"],\n \"buttons\": [16],\n \"translucent\": [4],\n \"animated\": [4],\n \"icon\": [1],\n \"htmlAttributes\": [16],\n \"swipeGesture\": [1, \"swipe-gesture\"],\n \"isOpen\": [4, \"is-open\"],\n \"trigger\": [1],\n \"revealContentToScreenReader\": [32],\n \"present\": [64],\n \"dismiss\": [64],\n \"onDidDismiss\": [64],\n \"onWillDismiss\": [64]\n}, undefined, {\n \"swipeGesture\": [\"swipeGestureChanged\"],\n \"isOpen\": [\"onIsOpenChange\"],\n \"trigger\": [\"triggerChanged\"]\n}]);\nconst buttonClass = button => {\n return {\n 'toast-button': true,\n 'toast-button-icon-only': button.icon !== undefined && button.text === undefined,\n [`toast-button-${button.role}`]: button.role !== undefined,\n 'ion-focusable': true,\n 'ion-activatable': true\n };\n};\nconst buttonPart = button => {\n return isCancel(button.role) ? 'button cancel' : 'button';\n};\nfunction defineCustomElement$1() {\n if (typeof customElements === \"undefined\") {\n return;\n }\n const components = [\"ion-toast\", \"ion-icon\", \"ion-ripple-effect\"];\n components.forEach(tagName => {\n switch (tagName) {\n case \"ion-toast\":\n if (!customElements.get(tagName)) {\n customElements.define(tagName, Toast);\n }\n break;\n case \"ion-icon\":\n if (!customElements.get(tagName)) {\n defineCustomElement$3();\n }\n break;\n case \"ion-ripple-effect\":\n if (!customElements.get(tagName)) {\n defineCustomElement$2();\n }\n break;\n }\n });\n}\nconst IonToast = Toast;\nconst defineCustomElement = defineCustomElement$1;\nexport { IonToast, defineCustomElement };","map":{"version":3,"names":["Build","proxyCustomElement","HTMLElement","createEvent","h","Host","E","ENABLE_HTML_CONTENT_DEFAULT","a","sanitizeDOMString","g","getElementRoot","r","raf","c","createLockController","p","printIonWarning","O","OVERLAY_GESTURE_PRIORITY","d","createDelegateController","e","createTriggerController","i","isCancel","j","prepareOverlay","k","setOverlayId","f","present","dismiss","eventMethod","s","safeCall","G","GESTURE","createColorClasses","getClassMap","config","b","getIonMode","createAnimation","w","win","createGesture","defineCustomElement$3","defineCustomElement$2","getAnimationPosition","position","positionAnchor","mode","toast","offset","warnIfAnchorIsHidden","box","getBoundingClientRect","bottom","innerHeight","top","offsetParent","getOffsetForMiddlePosition","toastHeight","wrapperHeight","Math","floor","iosEnterAnimation","baseEl","opts","baseAnimation","wrapperAnimation","root","wrapperEl","querySelector","addElement","fromTo","topPosition","clientHeight","style","easing","duration","addAnimation","iosLeaveAnimation","mdEnterAnimation","setProperty","mdLeaveAnimation","createSwipeToDismissGesture","el","toastPosition","onDismiss","isTesting","document","createElement","hostElHeight","wrapperElBox","MAX_SWIPE_DISTANCE","DISMISS_THRESHOLD","STEP_OFFSET","INVERSION_FACTOR","height","SWIPE_UP_DOWN_KEYFRAMES","transform","swipeAnimation","keyframes","progressStart","computeStep","delta","onMove","detail","step","deltaY","progressStep","onEnd","velocity","velocityY","threshold","gesture","enable","shouldDismiss","playTo","remainingDistance","startOffset","startPosition","offsetFactor","endOffset","endPosition","KEYFRAMES","remainingStepAmount","min","abs","onFinish","destroy","oneTimeCallback","progressEnd","gestureName","gesturePriority","direction","toastIosCss","IonToastIosStyle0","toastMdCss","IonToastMdStyle0","Toast","constructor","__registerHost","__attachShadow","didPresent","willPresent","willDismiss","didDismiss","didPresentShorthand","willPresentShorthand","willDismissShorthand","didDismissShorthand","delegateController","lockController","triggerController","customHTMLEnabled","get","presented","dispatchCancelHandler","ev","role","cancelButton","getButtons","find","callButtonHandler","createSwipeGesture","undefined","destroySwipeGesture","prefersSwipeGesture","swipeGesture","revealContentToScreenReader","overlayIndex","delegate","hasController","color","enterAnimation","leaveAnimation","cssClass","getNumber","header","layout","message","keyboardClose","buttons","translucent","animated","icon","htmlAttributes","isOpen","trigger","swipeGestureChanged","lastPresentedPosition","onIsOpenChange","newValue","oldValue","triggerChanged","addClickListener","connectedCallback","disconnectedCallback","removeClickListener","componentWillLoad","_a","id","componentDidLoad","_this","_asyncToGenerator","unlock","lock","attachViewToDom","anchor","getAnchorElement","animationPosition","durationTimeout","setTimeout","data","_this2","_b","clearTimeout","dismissed","removeViewFromDom","onDidDismiss","onWillDismiss","map","text","foundEl","getElementById","buttonClick","button","_this3","Promise","resolve","handler","rtn","console","error","renderButtons","side","length","buttonGroupsClasses","class","Object","assign","type","buttonClass","tabIndex","onClick","part","buttonPart","slot","renderToastMessage","key","ariaHidden","innerHTML","renderHeader","render","allButtons","startButtons","filter","endButtons","wrapperClass","tabindex","zIndex","onIonToastWillDismiss","lazy","watchers","ios","md","defineCustomElement$1","customElements","components","forEach","tagName","define","IonToast","defineCustomElement"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@ionic/core/components/ion-toast.js"],"sourcesContent":["/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { Build, proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';\nimport { E as ENABLE_HTML_CONTENT_DEFAULT, a as sanitizeDOMString } from './config.js';\nimport { g as getElementRoot, r as raf } from './helpers.js';\nimport { c as createLockController } from './lock-controller.js';\nimport { p as printIonWarning } from './index6.js';\nimport { O as OVERLAY_GESTURE_PRIORITY, d as createDelegateController, e as createTriggerController, i as isCancel, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod, s as safeCall, G as GESTURE } from './overlays.js';\nimport { c as createColorClasses, g as getClassMap } from './theme.js';\nimport { c as config, b as getIonMode } from './ionic-global.js';\nimport { c as createAnimation } from './animation.js';\nimport { w as win } from './index5.js';\nimport { createGesture } from './index3.js';\nimport { d as defineCustomElement$3 } from './icon.js';\nimport { d as defineCustomElement$2 } from './ripple-effect.js';\n\n/**\n * Calculate the CSS top and bottom position of the toast, to be used\n * as starting points for the animation keyframes.\n *\n * The default animations for both MD and iOS\n * use translateY, which calculates from the\n * top edge of the screen. This behavior impacts\n * how we compute the offset when a toast has\n * position='bottom' since we need to calculate from\n * the bottom edge of the screen instead.\n *\n * @param position The value of the toast's position prop.\n * @param positionAnchor The element the toast should be anchored to,\n * if applicable.\n * @param mode The toast component's mode (md, ios, etc).\n * @param toast A reference to the toast element itself.\n */\nfunction getAnimationPosition(position, positionAnchor, mode, toast) {\n /**\n * Start with a predefined offset from the edge the toast will be\n * positioned relative to, whether on the screen or anchor element.\n */\n let offset;\n if (mode === 'md') {\n offset = position === 'top' ? 8 : -8;\n }\n else {\n offset = position === 'top' ? 10 : -10;\n }\n /**\n * If positionAnchor is defined, add in the distance from the target\n * screen edge to the target anchor edge. For position=\"top\", the\n * bottom anchor edge is targeted. For position=\"bottom\", the top\n * anchor edge is targeted.\n */\n if (positionAnchor && win) {\n warnIfAnchorIsHidden(positionAnchor, toast);\n const box = positionAnchor.getBoundingClientRect();\n if (position === 'top') {\n offset += box.bottom;\n }\n else if (position === 'bottom') {\n /**\n * Just box.top is the distance from the top edge of the screen\n * to the top edge of the anchor. We want to calculate from the\n * bottom edge of the screen instead.\n */\n offset -= win.innerHeight - box.top;\n }\n /**\n * We don't include safe area here because that should already be\n * accounted for when checking the position of the anchor.\n */\n return {\n top: `${offset}px`,\n bottom: `${offset}px`,\n };\n }\n else {\n return {\n top: `calc(${offset}px + var(--ion-safe-area-top, 0px))`,\n bottom: `calc(${offset}px - var(--ion-safe-area-bottom, 0px))`,\n };\n }\n}\n/**\n * If the anchor element is hidden, getBoundingClientRect()\n * will return all 0s for it, which can cause unexpected\n * results in the position calculation when animating.\n */\nfunction warnIfAnchorIsHidden(positionAnchor, toast) {\n if (positionAnchor.offsetParent === null) {\n printIonWarning('The positionAnchor element for ion-toast was found in the DOM, but appears to be hidden. This may lead to unexpected positioning of the toast.', toast);\n }\n}\n/**\n * Returns the top offset required to place\n * the toast in the middle of the screen.\n * Only needed when position=\"toast\".\n * @param toastHeight - The height of the ion-toast element\n * @param wrapperHeight - The height of the .toast-wrapper element\n * inside the toast's shadow root.\n */\nconst getOffsetForMiddlePosition = (toastHeight, wrapperHeight) => {\n return Math.floor(toastHeight / 2 - wrapperHeight / 2);\n};\n\n/**\n * iOS Toast Enter Animation\n */\nconst iosEnterAnimation = (baseEl, opts) => {\n const baseAnimation = createAnimation();\n const wrapperAnimation = createAnimation();\n const { position, top, bottom } = opts;\n const root = getElementRoot(baseEl);\n const wrapperEl = root.querySelector('.toast-wrapper');\n wrapperAnimation.addElement(wrapperEl);\n switch (position) {\n case 'top':\n wrapperAnimation.fromTo('transform', 'translateY(-100%)', `translateY(${top})`);\n break;\n case 'middle':\n const topPosition = getOffsetForMiddlePosition(baseEl.clientHeight, wrapperEl.clientHeight);\n wrapperEl.style.top = `${topPosition}px`;\n wrapperAnimation.fromTo('opacity', 0.01, 1);\n break;\n default:\n wrapperAnimation.fromTo('transform', 'translateY(100%)', `translateY(${bottom})`);\n break;\n }\n return baseAnimation.easing('cubic-bezier(.155,1.105,.295,1.12)').duration(400).addAnimation(wrapperAnimation);\n};\n\n/**\n * iOS Toast Leave Animation\n */\nconst iosLeaveAnimation = (baseEl, opts) => {\n const baseAnimation = createAnimation();\n const wrapperAnimation = createAnimation();\n const { position, top, bottom } = opts;\n const root = getElementRoot(baseEl);\n const wrapperEl = root.querySelector('.toast-wrapper');\n wrapperAnimation.addElement(wrapperEl);\n switch (position) {\n case 'top':\n wrapperAnimation.fromTo('transform', `translateY(${top})`, 'translateY(-100%)');\n break;\n case 'middle':\n wrapperAnimation.fromTo('opacity', 0.99, 0);\n break;\n default:\n wrapperAnimation.fromTo('transform', `translateY(${bottom})`, 'translateY(100%)');\n break;\n }\n return baseAnimation.easing('cubic-bezier(.36,.66,.04,1)').duration(300).addAnimation(wrapperAnimation);\n};\n\n/**\n * MD Toast Enter Animation\n */\nconst mdEnterAnimation = (baseEl, opts) => {\n const baseAnimation = createAnimation();\n const wrapperAnimation = createAnimation();\n const { position, top, bottom } = opts;\n const root = getElementRoot(baseEl);\n const wrapperEl = root.querySelector('.toast-wrapper');\n wrapperAnimation.addElement(wrapperEl);\n switch (position) {\n case 'top':\n wrapperEl.style.setProperty('transform', `translateY(${top})`);\n wrapperAnimation.fromTo('opacity', 0.01, 1);\n break;\n case 'middle':\n const topPosition = getOffsetForMiddlePosition(baseEl.clientHeight, wrapperEl.clientHeight);\n wrapperEl.style.top = `${topPosition}px`;\n wrapperAnimation.fromTo('opacity', 0.01, 1);\n break;\n default:\n wrapperEl.style.setProperty('transform', `translateY(${bottom})`);\n wrapperAnimation.fromTo('opacity', 0.01, 1);\n break;\n }\n return baseAnimation.easing('cubic-bezier(.36,.66,.04,1)').duration(400).addAnimation(wrapperAnimation);\n};\n\n/**\n * md Toast Leave Animation\n */\nconst mdLeaveAnimation = (baseEl) => {\n const baseAnimation = createAnimation();\n const wrapperAnimation = createAnimation();\n const root = getElementRoot(baseEl);\n const wrapperEl = root.querySelector('.toast-wrapper');\n wrapperAnimation.addElement(wrapperEl).fromTo('opacity', 0.99, 0);\n return baseAnimation.easing('cubic-bezier(.36,.66,.04,1)').duration(300).addAnimation(wrapperAnimation);\n};\n\n/**\n * Create a gesture that allows the Toast\n * to be swiped to dismiss.\n * @param el - The Toast element\n * @param toastPosition - The last computed position of the Toast. This is computed in the \"present\" method.\n * @param onDismiss - A callback to fire when the Toast was swiped to dismiss.\n */\nconst createSwipeToDismissGesture = (el, toastPosition, onDismiss) => {\n /**\n * Users should swipe on the visible toast wrapper\n * rather than on ion-toast which covers the entire screen.\n * When testing the class instance the inner wrapper will not\n * be defined. As a result, we use a placeholder element in those environments.\n */\n const wrapperEl = Build.isTesting\n ? document.createElement('div')\n : getElementRoot(el).querySelector('.toast-wrapper');\n const hostElHeight = el.clientHeight;\n const wrapperElBox = wrapperEl.getBoundingClientRect();\n /**\n * The maximum amount that\n * the toast can be swiped. This should\n * account for the wrapper element's height\n * too so the toast can be swiped offscreen\n * completely.\n */\n let MAX_SWIPE_DISTANCE = 0;\n /**\n * The step value at which a toast\n * is eligible for dismissing via gesture.\n */\n const DISMISS_THRESHOLD = 0.5;\n /**\n * The middle position Toast starts 50% of the way\n * through the animation, so we need to use this\n * as the starting point for our step values.\n */\n const STEP_OFFSET = el.position === 'middle' ? 0.5 : 0;\n /**\n * When the Toast is at the top users will be\n * swiping up. As a result, the delta values will be\n * negative numbers which will result in negative steps\n * and thresholds. As a result, we need to make those numbers\n * positive.\n */\n const INVERSION_FACTOR = el.position === 'top' ? -1 : 1;\n /**\n * The top offset that places the\n * toast in the middle of the screen.\n * Only needed when position=\"middle\".\n */\n const topPosition = getOffsetForMiddlePosition(hostElHeight, wrapperElBox.height);\n const SWIPE_UP_DOWN_KEYFRAMES = [\n { offset: 0, transform: `translateY(-${topPosition + wrapperElBox.height}px)` },\n { offset: 0.5, transform: `translateY(0px)` },\n { offset: 1, transform: `translateY(${topPosition + wrapperElBox.height}px)` },\n ];\n const swipeAnimation = createAnimation('toast-swipe-to-dismiss-animation')\n .addElement(wrapperEl)\n /**\n * The specific value here does not actually\n * matter. We just need this to be a positive\n * value so the animation does not jump\n * to the end when the user beings to drag.\n */\n .duration(100);\n switch (el.position) {\n case 'middle':\n MAX_SWIPE_DISTANCE = hostElHeight + wrapperElBox.height;\n swipeAnimation.keyframes(SWIPE_UP_DOWN_KEYFRAMES);\n /**\n * Toast can be swiped up or down but\n * should start in the middle of the screen.\n */\n swipeAnimation.progressStart(true, 0.5);\n break;\n case 'top':\n /**\n * The bottom edge of the wrapper\n * includes the distance between the top\n * of the screen and the top of the wrapper\n * as well as the wrapper height so the wrapper\n * can be dragged fully offscreen.\n */\n MAX_SWIPE_DISTANCE = wrapperElBox.bottom;\n swipeAnimation.keyframes([\n { offset: 0, transform: `translateY(${toastPosition.top})` },\n { offset: 1, transform: 'translateY(-100%)' },\n ]);\n swipeAnimation.progressStart(true, 0);\n break;\n case 'bottom':\n default:\n /**\n * This computes the distance between the\n * top of the wrapper and the bottom of the\n * screen including the height of the wrapper\n * element so it can be dragged fully offscreen.\n */\n MAX_SWIPE_DISTANCE = hostElHeight - wrapperElBox.top;\n swipeAnimation.keyframes([\n { offset: 0, transform: `translateY(${toastPosition.bottom})` },\n { offset: 1, transform: 'translateY(100%)' },\n ]);\n swipeAnimation.progressStart(true, 0);\n break;\n }\n const computeStep = (delta) => {\n return (delta * INVERSION_FACTOR) / MAX_SWIPE_DISTANCE;\n };\n const onMove = (detail) => {\n const step = STEP_OFFSET + computeStep(detail.deltaY);\n swipeAnimation.progressStep(step);\n };\n const onEnd = (detail) => {\n const velocity = detail.velocityY;\n const threshold = ((detail.deltaY + velocity * 1000) / MAX_SWIPE_DISTANCE) * INVERSION_FACTOR;\n /**\n * Disable the gesture for the remainder of the animation.\n * It will be re-enabled if the toast animates back to\n * its initial presented position.\n */\n gesture.enable(false);\n let shouldDismiss = true;\n let playTo = 1;\n let step = 0;\n let remainingDistance = 0;\n if (el.position === 'middle') {\n /**\n * A middle positioned Toast appears\n * in the middle of the screen (at animation offset 0.5).\n * As a result, the threshold will be calculated relative\n * to this starting position. In other words at animation offset 0.5\n * the threshold will be 0. We want the middle Toast to be eligible\n * for dismiss when the user has swiped either half way up or down the\n * screen. As a result, we divide DISMISS_THRESHOLD in half. We also\n * consider when the threshold is a negative in the event the\n * user drags up (since the deltaY will also be negative).\n */\n shouldDismiss = threshold >= DISMISS_THRESHOLD / 2 || threshold <= -DISMISS_THRESHOLD / 2;\n /**\n * Since we are replacing the keyframes\n * below the animation always starts from\n * the beginning of the new keyframes.\n * Similarly, we are always playing to\n * the end of the new keyframes.\n */\n playTo = 1;\n step = 0;\n /**\n * The Toast should animate from wherever its\n * current position is to the desired end state.\n *\n * To begin, we get the current position of the\n * Toast for its starting state.\n */\n const wrapperElBox = wrapperEl.getBoundingClientRect();\n const startOffset = wrapperElBox.top - topPosition;\n const startPosition = `${startOffset}px`;\n /**\n * If the deltaY is negative then the user is swiping\n * up, so the Toast should animate to the top of the screen.\n * If the deltaY is positive then the user is swiping\n * down, so the Toast should animate to the bottom of the screen.\n * We also account for when the deltaY is 0, but realistically\n * that should never happen because it means the user did not drag\n * the toast.\n */\n const offsetFactor = detail.deltaY <= 0 ? -1 : 1;\n const endOffset = (topPosition + wrapperElBox.height) * offsetFactor;\n /**\n * If the Toast should dismiss\n * then we need to figure out which edge of\n * the screen it should animate towards.\n * By default, the Toast will come\n * back to its default state in the\n * middle of the screen.\n */\n const endPosition = shouldDismiss ? `${endOffset}px` : '0px';\n const KEYFRAMES = [\n { offset: 0, transform: `translateY(${startPosition})` },\n { offset: 1, transform: `translateY(${endPosition})` },\n ];\n swipeAnimation.keyframes(KEYFRAMES);\n /**\n * Compute the remaining amount of pixels the\n * toast needs to move to be fully dismissed.\n */\n remainingDistance = endOffset - startOffset;\n }\n else {\n shouldDismiss = threshold >= DISMISS_THRESHOLD;\n playTo = shouldDismiss ? 1 : 0;\n step = computeStep(detail.deltaY);\n /**\n * Compute the remaining amount of pixels the\n * toast needs to move to be fully dismissed.\n */\n const remainingStepAmount = shouldDismiss ? 1 - step : step;\n remainingDistance = remainingStepAmount * MAX_SWIPE_DISTANCE;\n }\n /**\n * The animation speed should depend on how quickly\n * the user flicks the toast across the screen. However,\n * it should be no slower than 200ms.\n * We use Math.abs on the remainingDistance because that value\n * can be negative when swiping up on a middle position toast.\n */\n const duration = Math.min(Math.abs(remainingDistance) / Math.abs(velocity), 200);\n swipeAnimation\n .onFinish(() => {\n if (shouldDismiss) {\n onDismiss();\n swipeAnimation.destroy();\n }\n else {\n if (el.position === 'middle') {\n /**\n * If the toast snapped back to\n * the middle of the screen we need\n * to reset the keyframes\n * so the toast can be swiped\n * up or down again.\n */\n swipeAnimation.keyframes(SWIPE_UP_DOWN_KEYFRAMES).progressStart(true, 0.5);\n }\n else {\n swipeAnimation.progressStart(true, 0);\n }\n /**\n * If the toast did not dismiss then\n * the user should be able to swipe again.\n */\n gesture.enable(true);\n }\n /**\n * This must be a one time callback\n * otherwise a new callback will\n * be added every time onEnd runs.\n */\n }, { oneTimeCallback: true })\n .progressEnd(playTo, step, duration);\n };\n const gesture = createGesture({\n el: wrapperEl,\n gestureName: 'toast-swipe-to-dismiss',\n gesturePriority: OVERLAY_GESTURE_PRIORITY,\n /**\n * Toast only supports vertical swipes.\n * This needs to be updated if we later\n * support horizontal swipes.\n */\n direction: 'y',\n onMove,\n onEnd,\n });\n return gesture;\n};\n\nconst toastIosCss = \":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--border-radius:14px;--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));--max-width:700px;--max-height:478px;--start:10px;--end:10px;font-size:clamp(14px, 0.875rem, 43.4px)}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.toast-translucent) .toast-wrapper{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}:host(.ion-color.toast-translucent) .toast-wrapper{background:rgba(var(--ion-color-base-rgb), 0.8)}}.toast-wrapper.toast-middle{opacity:0.01}.toast-content{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:15px;padding-bottom:15px}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;min-height:44px;-webkit-transition:background-color, opacity 100ms linear;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:clamp(17px, 1.0625rem, 21.998px);font-weight:500;overflow:hidden}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}\";\nconst IonToastIosStyle0 = toastIosCss;\n\nconst toastMdCss = \":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-800, var(--ion-background-color-step-800, #333333));--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-50, var(--ion-text-color-step-950, #f2f2f2));--max-width:700px;--start:8px;--end:8px;font-size:0.875rem}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}.toast-content{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:14px;padding-bottom:14px}.toast-header{margin-bottom:2px;font-weight:500;line-height:1.25rem}.toast-message{line-height:1.25rem}.toast-layout-baseline .toast-button-group-start{-webkit-margin-start:8px;margin-inline-start:8px}.toast-layout-stacked .toast-button-group-start{-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px}.toast-layout-baseline .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px}.toast-layout-stacked .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px;margin-bottom:8px}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:0.875rem;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}.toast-button-cancel{color:var(--ion-color-step-100, var(--ion-text-color-step-900, #e6e6e6))}.toast-button-icon-only{border-radius:50%;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}\";\nconst IonToastMdStyle0 = toastMdCss;\n\nconst Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.__attachShadow();\n this.didPresent = createEvent(this, \"ionToastDidPresent\", 7);\n this.willPresent = createEvent(this, \"ionToastWillPresent\", 7);\n this.willDismiss = createEvent(this, \"ionToastWillDismiss\", 7);\n this.didDismiss = createEvent(this, \"ionToastDidDismiss\", 7);\n this.didPresentShorthand = createEvent(this, \"didPresent\", 7);\n this.willPresentShorthand = createEvent(this, \"willPresent\", 7);\n this.willDismissShorthand = createEvent(this, \"willDismiss\", 7);\n this.didDismissShorthand = createEvent(this, \"didDismiss\", 7);\n this.delegateController = createDelegateController(this);\n this.lockController = createLockController();\n this.triggerController = createTriggerController();\n this.customHTMLEnabled = config.get('innerHTMLTemplatesEnabled', ENABLE_HTML_CONTENT_DEFAULT);\n this.presented = false;\n this.dispatchCancelHandler = (ev) => {\n const role = ev.detail.role;\n if (isCancel(role)) {\n const cancelButton = this.getButtons().find((b) => b.role === 'cancel');\n this.callButtonHandler(cancelButton);\n }\n };\n /**\n * Create a new swipe gesture so Toast\n * can be swiped to dismiss.\n */\n this.createSwipeGesture = (toastPosition) => {\n const gesture = (this.gesture = createSwipeToDismissGesture(this.el, toastPosition, () => {\n /**\n * If the gesture completed then\n * we should dismiss the toast.\n */\n this.dismiss(undefined, GESTURE);\n }));\n gesture.enable(true);\n };\n /**\n * Destroy an existing swipe gesture\n * so Toast can no longer be swiped to dismiss.\n */\n this.destroySwipeGesture = () => {\n const { gesture } = this;\n if (gesture === undefined) {\n return;\n }\n gesture.destroy();\n this.gesture = undefined;\n };\n /**\n * Returns `true` if swipeGesture\n * is configured to a value that enables the swipe behavior.\n * Returns `false` otherwise.\n */\n this.prefersSwipeGesture = () => {\n const { swipeGesture } = this;\n return swipeGesture === 'vertical';\n };\n this.revealContentToScreenReader = false;\n this.overlayIndex = undefined;\n this.delegate = undefined;\n this.hasController = false;\n this.color = undefined;\n this.enterAnimation = undefined;\n this.leaveAnimation = undefined;\n this.cssClass = undefined;\n this.duration = config.getNumber('toastDuration', 0);\n this.header = undefined;\n this.layout = 'baseline';\n this.message = undefined;\n this.keyboardClose = false;\n this.position = 'bottom';\n this.positionAnchor = undefined;\n this.buttons = undefined;\n this.translucent = false;\n this.animated = true;\n this.icon = undefined;\n this.htmlAttributes = undefined;\n this.swipeGesture = undefined;\n this.isOpen = false;\n this.trigger = undefined;\n }\n swipeGestureChanged() {\n /**\n * If the Toast is presented, then we need to destroy\n * any actives gestures before a new gesture is potentially\n * created below.\n *\n * If the Toast is dismissed, then no gesture should be available\n * since the Toast is not visible. This case should never\n * happen since the \"dismiss\" method handles destroying\n * any active swipe gestures, but we keep this code\n * around to handle the first case.\n */\n this.destroySwipeGesture();\n /**\n * A new swipe gesture should only be created\n * if the Toast is presented. If the Toast is not\n * yet presented then the \"present\" method will\n * handle calling the swipe gesture setup function.\n */\n if (this.presented && this.prefersSwipeGesture()) {\n /**\n * If the Toast is presented then\n * lastPresentedPosition is defined.\n */\n this.createSwipeGesture(this.lastPresentedPosition);\n }\n }\n onIsOpenChange(newValue, oldValue) {\n if (newValue === true && oldValue === false) {\n this.present();\n }\n else if (newValue === false && oldValue === true) {\n this.dismiss();\n }\n }\n triggerChanged() {\n const { trigger, el, triggerController } = this;\n if (trigger) {\n triggerController.addClickListener(el, trigger);\n }\n }\n connectedCallback() {\n prepareOverlay(this.el);\n this.triggerChanged();\n }\n disconnectedCallback() {\n this.triggerController.removeClickListener();\n }\n componentWillLoad() {\n var _a;\n if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {\n setOverlayId(this.el);\n }\n }\n componentDidLoad() {\n /**\n * If toast was rendered with isOpen=\"true\"\n * then we should open toast immediately.\n */\n if (this.isOpen === true) {\n raf(() => this.present());\n }\n /**\n * When binding values in frameworks such as Angular\n * it is possible for the value to be set after the Web Component\n * initializes but before the value watcher is set up in Stencil.\n * As a result, the watcher callback may not be fired.\n * We work around this by manually calling the watcher\n * callback when the component has loaded and the watcher\n * is configured.\n */\n this.triggerChanged();\n }\n /**\n * Present the toast overlay after it has been created.\n */\n async present() {\n const unlock = await this.lockController.lock();\n await this.delegateController.attachViewToDom();\n const { el, position } = this;\n const anchor = this.getAnchorElement();\n const animationPosition = getAnimationPosition(position, anchor, getIonMode(this), el);\n /**\n * Cache the calculated position of the toast, so we can re-use it\n * in the dismiss animation.\n */\n this.lastPresentedPosition = animationPosition;\n await present(this, 'toastEnter', iosEnterAnimation, mdEnterAnimation, {\n position,\n top: animationPosition.top,\n bottom: animationPosition.bottom,\n });\n /**\n * Content is revealed to screen readers after\n * the transition to avoid jank since this\n * state updates will cause a re-render.\n */\n this.revealContentToScreenReader = true;\n if (this.duration > 0) {\n this.durationTimeout = setTimeout(() => this.dismiss(undefined, 'timeout'), this.duration);\n }\n /**\n * If the Toast has a swipe gesture then we can\n * create the gesture so users can swipe the\n * presented Toast.\n */\n if (this.prefersSwipeGesture()) {\n this.createSwipeGesture(animationPosition);\n }\n unlock();\n }\n /**\n * Dismiss the toast overlay after it has been presented.\n *\n * @param data Any data to emit in the dismiss events.\n * @param role The role of the element that is dismissing the toast.\n * This can be useful in a button handler for determining which button was\n * clicked to dismiss the toast.\n * Some examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n *\n * This is a no-op if the overlay has not been presented yet. If you want\n * to remove an overlay from the DOM that was never presented, use the\n * [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.\n */\n async dismiss(data, role) {\n var _a, _b;\n const unlock = await this.lockController.lock();\n const { durationTimeout, position, lastPresentedPosition } = this;\n if (durationTimeout) {\n clearTimeout(durationTimeout);\n }\n const dismissed = await dismiss(this, data, role, 'toastLeave', iosLeaveAnimation, mdLeaveAnimation, \n /**\n * Fetch the cached position that was calculated back in the present\n * animation. We always want to animate the dismiss from the same\n * position the present stopped at, so the animation looks continuous.\n */\n {\n position,\n top: (_a = lastPresentedPosition === null || lastPresentedPosition === void 0 ? void 0 : lastPresentedPosition.top) !== null && _a !== void 0 ? _a : '',\n bottom: (_b = lastPresentedPosition === null || lastPresentedPosition === void 0 ? void 0 : lastPresentedPosition.bottom) !== null && _b !== void 0 ? _b : '',\n });\n if (dismissed) {\n this.delegateController.removeViewFromDom();\n this.revealContentToScreenReader = false;\n }\n this.lastPresentedPosition = undefined;\n /**\n * If the Toast has a swipe gesture then we can\n * safely destroy it now that it is dismissed.\n */\n this.destroySwipeGesture();\n unlock();\n return dismissed;\n }\n /**\n * Returns a promise that resolves when the toast did dismiss.\n */\n onDidDismiss() {\n return eventMethod(this.el, 'ionToastDidDismiss');\n }\n /**\n * Returns a promise that resolves when the toast will dismiss.\n */\n onWillDismiss() {\n return eventMethod(this.el, 'ionToastWillDismiss');\n }\n getButtons() {\n const buttons = this.buttons\n ? this.buttons.map((b) => {\n return typeof b === 'string' ? { text: b } : b;\n })\n : [];\n return buttons;\n }\n /**\n * Returns the element specified by the positionAnchor prop,\n * or undefined if prop's value is an ID string and the element\n * is not found in the DOM.\n */\n getAnchorElement() {\n const { position, positionAnchor, el } = this;\n /**\n * If positionAnchor is undefined then\n * no anchor should be used when presenting the toast.\n */\n if (positionAnchor === undefined) {\n return;\n }\n if (position === 'middle' && positionAnchor !== undefined) {\n printIonWarning('The positionAnchor property is ignored when using position=\"middle\".', this.el);\n return undefined;\n }\n if (typeof positionAnchor === 'string') {\n /**\n * If the anchor is defined as an ID, find the element.\n * We do this on every present so the toast doesn't need\n * to account for the surrounding DOM changing since the\n * last time it was presented.\n */\n const foundEl = document.getElementById(positionAnchor);\n if (foundEl === null) {\n printIonWarning(`An anchor element with an ID of \"${positionAnchor}\" was not found in the DOM.`, el);\n return undefined;\n }\n return foundEl;\n }\n if (positionAnchor instanceof HTMLElement) {\n return positionAnchor;\n }\n printIonWarning('Invalid positionAnchor value:', positionAnchor, el);\n return undefined;\n }\n async buttonClick(button) {\n const role = button.role;\n if (isCancel(role)) {\n return this.dismiss(undefined, role);\n }\n const shouldDismiss = await this.callButtonHandler(button);\n if (shouldDismiss) {\n return this.dismiss(undefined, role);\n }\n return Promise.resolve();\n }\n async callButtonHandler(button) {\n if (button === null || button === void 0 ? void 0 : button.handler) {\n // a handler has been provided, execute it\n // pass the handler the values from the inputs\n try {\n const rtn = await safeCall(button.handler);\n if (rtn === false) {\n // if the return value of the handler is false then do not dismiss\n return false;\n }\n }\n catch (e) {\n console.error(e);\n }\n }\n return true;\n }\n renderButtons(buttons, side) {\n if (buttons.length === 0) {\n return;\n }\n const mode = getIonMode(this);\n const buttonGroupsClasses = {\n 'toast-button-group': true,\n [`toast-button-group-${side}`]: true,\n };\n return (h(\"div\", { class: buttonGroupsClasses }, buttons.map((b) => (h(\"button\", Object.assign({}, b.htmlAttributes, { type: \"button\", class: buttonClass(b), tabIndex: 0, onClick: () => this.buttonClick(b), part: buttonPart(b) }), h(\"div\", { class: \"toast-button-inner\" }, b.icon && (h(\"ion-icon\", { \"aria-hidden\": \"true\", icon: b.icon, slot: b.text === undefined ? 'icon-only' : undefined, class: \"toast-button-icon\" })), b.text), mode === 'md' && (h(\"ion-ripple-effect\", { type: b.icon !== undefined && b.text === undefined ? 'unbounded' : 'bounded' })))))));\n }\n /**\n * Render the `message` property.\n * @param key - A key to give the element a stable identity. This is used to improve compatibility with screen readers.\n * @param ariaHidden - If \"true\" then content will be hidden from screen readers.\n */\n renderToastMessage(key, ariaHidden = null) {\n const { customHTMLEnabled, message } = this;\n if (customHTMLEnabled) {\n return (h(\"div\", { key: key, \"aria-hidden\": ariaHidden, class: \"toast-message\", part: \"message\", innerHTML: sanitizeDOMString(message) }));\n }\n return (h(\"div\", { key: key, \"aria-hidden\": ariaHidden, class: \"toast-message\", part: \"message\" }, message));\n }\n /**\n * Render the `header` property.\n * @param key - A key to give the element a stable identity. This is used to improve compatibility with screen readers.\n * @param ariaHidden - If \"true\" then content will be hidden from screen readers.\n */\n renderHeader(key, ariaHidden = null) {\n return (h(\"div\", { key: key, class: \"toast-header\", \"aria-hidden\": ariaHidden, part: \"header\" }, this.header));\n }\n render() {\n const { layout, el, revealContentToScreenReader, header, message } = this;\n const allButtons = this.getButtons();\n const startButtons = allButtons.filter((b) => b.side === 'start');\n const endButtons = allButtons.filter((b) => b.side !== 'start');\n const mode = getIonMode(this);\n const wrapperClass = {\n 'toast-wrapper': true,\n [`toast-${this.position}`]: true,\n [`toast-layout-${layout}`]: true,\n };\n /**\n * Stacked buttons are only meant to be\n * used with one type of button.\n */\n if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {\n printIonWarning('This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.', el);\n }\n return (h(Host, Object.assign({ key: 'c05655ff06af8d0e48c2a85396b07ad942fa81b4', tabindex: \"-1\" }, this.htmlAttributes, { style: {\n zIndex: `${60000 + this.overlayIndex}`,\n }, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), h(\"div\", { key: '9393ead4de1bf28529661d6f64049d34e18d725c', class: wrapperClass }, h(\"div\", { key: '3e9dd73c17c337849c3f26e8d0f395b3e5ee20a7', class: \"toast-container\", part: \"container\" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (h(\"ion-icon\", { key: '5d15b18364301ad55e44e9f601014ac33181590b', class: \"toast-icon\", part: \"icon\", icon: this.icon, lazy: false, \"aria-hidden\": \"true\" })), h(\"div\", { key: 'f6dd164502637a882c5caf18445d8509b85ad6f9', class: \"toast-content\", role: \"status\", \"aria-atomic\": \"true\", \"aria-live\": \"polite\" }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end')))));\n }\n get el() { return this; }\n static get watchers() { return {\n \"swipeGesture\": [\"swipeGestureChanged\"],\n \"isOpen\": [\"onIsOpenChange\"],\n \"trigger\": [\"triggerChanged\"]\n }; }\n static get style() { return {\n ios: IonToastIosStyle0,\n md: IonToastMdStyle0\n }; }\n}, [33, \"ion-toast\", {\n \"overlayIndex\": [2, \"overlay-index\"],\n \"delegate\": [16],\n \"hasController\": [4, \"has-controller\"],\n \"color\": [513],\n \"enterAnimation\": [16],\n \"leaveAnimation\": [16],\n \"cssClass\": [1, \"css-class\"],\n \"duration\": [2],\n \"header\": [1],\n \"layout\": [1],\n \"message\": [1],\n \"keyboardClose\": [4, \"keyboard-close\"],\n \"position\": [1],\n \"positionAnchor\": [1, \"position-anchor\"],\n \"buttons\": [16],\n \"translucent\": [4],\n \"animated\": [4],\n \"icon\": [1],\n \"htmlAttributes\": [16],\n \"swipeGesture\": [1, \"swipe-gesture\"],\n \"isOpen\": [4, \"is-open\"],\n \"trigger\": [1],\n \"revealContentToScreenReader\": [32],\n \"present\": [64],\n \"dismiss\": [64],\n \"onDidDismiss\": [64],\n \"onWillDismiss\": [64]\n }, undefined, {\n \"swipeGesture\": [\"swipeGestureChanged\"],\n \"isOpen\": [\"onIsOpenChange\"],\n \"trigger\": [\"triggerChanged\"]\n }]);\nconst buttonClass = (button) => {\n return {\n 'toast-button': true,\n 'toast-button-icon-only': button.icon !== undefined && button.text === undefined,\n [`toast-button-${button.role}`]: button.role !== undefined,\n 'ion-focusable': true,\n 'ion-activatable': true,\n };\n};\nconst buttonPart = (button) => {\n return isCancel(button.role) ? 'button cancel' : 'button';\n};\nfunction defineCustomElement$1() {\n if (typeof customElements === \"undefined\") {\n return;\n }\n const components = [\"ion-toast\", \"ion-icon\", \"ion-ripple-effect\"];\n components.forEach(tagName => { switch (tagName) {\n case \"ion-toast\":\n if (!customElements.get(tagName)) {\n customElements.define(tagName, Toast);\n }\n break;\n case \"ion-icon\":\n if (!customElements.get(tagName)) {\n defineCustomElement$3();\n }\n break;\n case \"ion-ripple-effect\":\n if (!customElements.get(tagName)) {\n defineCustomElement$2();\n }\n break;\n } });\n}\n\nconst IonToast = Toast;\nconst defineCustomElement = defineCustomElement$1;\n\nexport { IonToast, defineCustomElement };\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,KAAK,EAAEC,kBAAkB,EAAEC,WAAW,EAAEC,WAAW,EAAEC,CAAC,EAAEC,IAAI,QAAQ,+BAA+B;AAC5G,SAASC,CAAC,IAAIC,2BAA2B,EAAEC,CAAC,IAAIC,iBAAiB,QAAQ,aAAa;AACtF,SAASC,CAAC,IAAIC,cAAc,EAAEC,CAAC,IAAIC,GAAG,QAAQ,cAAc;AAC5D,SAASC,CAAC,IAAIC,oBAAoB,QAAQ,sBAAsB;AAChE,SAASC,CAAC,IAAIC,eAAe,QAAQ,aAAa;AAClD,SAASC,CAAC,IAAIC,wBAAwB,EAAEC,CAAC,IAAIC,wBAAwB,EAAEC,CAAC,IAAIC,uBAAuB,EAAEC,CAAC,IAAIC,QAAQ,EAAEC,CAAC,IAAIC,cAAc,EAAEC,CAAC,IAAIC,YAAY,EAAEC,CAAC,IAAIC,OAAO,EAAErB,CAAC,IAAIsB,OAAO,EAAE5B,CAAC,IAAI6B,WAAW,EAAEC,CAA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