UNPKG

react-klasha

Version:

This is an reactJS library for implementing klasha payment gateway

1 lines 61.6 kB
{"ast":null,"code":"import { __awaiter, __generator } from \"tslib\";\nimport { r as registerInstance, e as createEvent, f as readTask, h, H as Host, i as getElement } from \"./index-7a8b7a1c.js\";\nimport { b as getIonMode } from \"./ionic-global-63a97a32.js\";\nimport { c as createButtonActiveGesture } from \"./button-active-4927a4c1.js\";\nimport { B as BACKDROP, i as isCancel, d as present, e as prepareOverlay, f as dismiss, g as eventMethod, s as safeCall } from \"./overlays-e9ccff30.js\";\nimport { g as getClassMap } from \"./theme-ff3fc52f.js\";\nimport { c as createAnimation } from \"./animation-096c6391.js\";\nimport \"./haptic-27b3f981.js\";\nimport \"./index-f49d994d.js\";\nimport \"./gesture-controller-31cb6bb9.js\";\nimport \"./hardware-back-button-4a6b37fb.js\";\nimport \"./helpers-dd7e4b7b.js\";\n\nvar iosEnterAnimation = function (t) {\n var e = createAnimation();\n var o = createAnimation();\n var n = createAnimation();\n o.addElement(t.querySelector(\"ion-backdrop\")).fromTo(\"opacity\", .01, \"var(--backdrop-opacity)\").beforeStyles({\n \"pointer-events\": \"none\"\n }).afterClearStyles([\"pointer-events\"]);\n n.addElement(t.querySelector(\".action-sheet-wrapper\")).fromTo(\"transform\", \"translateY(100%)\", \"translateY(0%)\");\n return e.addElement(t).easing(\"cubic-bezier(.36,.66,.04,1)\").duration(400).addAnimation([o, n]);\n};\n\nvar iosLeaveAnimation = function (t) {\n var e = createAnimation();\n var o = createAnimation();\n var n = createAnimation();\n o.addElement(t.querySelector(\"ion-backdrop\")).fromTo(\"opacity\", \"var(--backdrop-opacity)\", 0);\n n.addElement(t.querySelector(\".action-sheet-wrapper\")).fromTo(\"transform\", \"translateY(0%)\", \"translateY(100%)\");\n return e.addElement(t).easing(\"cubic-bezier(.36,.66,.04,1)\").duration(450).addAnimation([o, n]);\n};\n\nvar mdEnterAnimation = function (t) {\n var e = createAnimation();\n var o = createAnimation();\n var n = createAnimation();\n o.addElement(t.querySelector(\"ion-backdrop\")).fromTo(\"opacity\", .01, \"var(--backdrop-opacity)\").beforeStyles({\n \"pointer-events\": \"none\"\n }).afterClearStyles([\"pointer-events\"]);\n n.addElement(t.querySelector(\".action-sheet-wrapper\")).fromTo(\"transform\", \"translateY(100%)\", \"translateY(0%)\");\n return e.addElement(t).easing(\"cubic-bezier(.36,.66,.04,1)\").duration(400).addAnimation([o, n]);\n};\n\nvar mdLeaveAnimation = function (t) {\n var e = createAnimation();\n var o = createAnimation();\n var n = createAnimation();\n o.addElement(t.querySelector(\"ion-backdrop\")).fromTo(\"opacity\", \"var(--backdrop-opacity)\", 0);\n n.addElement(t.querySelector(\".action-sheet-wrapper\")).fromTo(\"transform\", \"translateY(0%)\", \"translateY(100%)\");\n return e.addElement(t).easing(\"cubic-bezier(.36,.66,.04,1)\").duration(450).addAnimation([o, n]);\n};\n\nvar actionSheetIosCss = '.sc-ion-action-sheet-ios-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:100%;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;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);z-index:10;pointer-events:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-button.sc-ion-action-sheet-ios{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:100%}.action-sheet-group.sc-ion-action-sheet-ios{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-ios::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-ios{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-ios::after{left:0;right:0;top:0;bottom:0;position:absolute;content:\"\";opacity:0}.action-sheet-selected.sc-ion-action-sheet-ios{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-ios:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-ios:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--backdrop-opacity:var(--ion-backdrop-opacity, 0.4);--button-background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent;--button-background-activated:var(--ion-text-color, #000);--button-background-activated-opacity:.08;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-background-selected:var(--ion-color-step-150, var(--ion-background-color, #fff));--button-background-selected-opacity:1;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-400, #999999);text-align:center}.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:auto;margin-right:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:var(--ion-safe-area-bottom, 0)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-container.sc-ion-action-sheet-ios{padding-left:8px;padding-right:8px;padding-top:0;padding-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-container.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.action-sheet-group.sc-ion-action-sheet-ios{border-radius:13px;margin-bottom:8px}.action-sheet-group.sc-ion-action-sheet-ios:first-child{margin-top:10px}.action-sheet-group.sc-ion-action-sheet-ios:last-child{margin-bottom:10px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-group.sc-ion-action-sheet-ios{background-color:transparent;-webkit-backdrop-filter:saturate(280%) blur(20px);backdrop-filter:saturate(280%) blur(20px)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-title.sc-ion-action-sheet-ios,.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.sc-ion-action-sheet-ios{background-color:transparent;background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8))), -webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background-image:linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%), linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4) 50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 50%);background-repeat:no-repeat;background-position:top, bottom;background-size:100% calc(100% - 1px), 100% 1px;-webkit-backdrop-filter:saturate(120%);backdrop-filter:saturate(120%)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.ion-activated.sc-ion-action-sheet-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.7);background-image:none}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--button-background-selected)}}.action-sheet-title.sc-ion-action-sheet-ios{background:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, transparent)) bottom/100% 1px no-repeat transparent;background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent}.action-sheet-title.sc-ion-action-sheet-ios{padding-left:10px;padding-right:10px;padding-top:14px;padding-bottom:13px;color:var(--color, var(--ion-color-step-400, #999999));font-size:13px;font-weight:400;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-title.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}.action-sheet-sub-title.sc-ion-action-sheet-ios{padding-left:0;padding-right:0;padding-top:15px;padding-bottom:0;font-size:12px}.action-sheet-button.sc-ion-action-sheet-ios{padding-left:18px;padding-right:18px;padding-top:18px;padding-bottom:18px;height:56px;font-size:20px;contain:strict}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:18px;padding-inline-start:18px;-webkit-padding-end:18px;padding-inline-end:18px}}.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{margin-right:0.1em;font-size:28px;pointer-events:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{margin-right:unset;-webkit-margin-end:0.1em;margin-inline-end:0.1em}}.action-sheet-button.sc-ion-action-sheet-ios:last-child{background-image:none}.action-sheet-selected.sc-ion-action-sheet-ios{font-weight:bold}.action-sheet-cancel.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-cancel.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-destructive.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-activated.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-focused.sc-ion-action-sheet-ios{color:var(--ion-color-danger, #eb445a)}@media (any-hover: hover){.action-sheet-destructive.sc-ion-action-sheet-ios:hover{color:var(--ion-color-danger, #eb445a)}}';\nvar actionSheetMdCss = '.sc-ion-action-sheet-md-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:100%;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-md-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-md{left:0;right:0;bottom:0;margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;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);z-index:10;pointer-events:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-wrapper.sc-ion-action-sheet-md{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-button.sc-ion-action-sheet-md{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:100%}.action-sheet-group.sc-ion-action-sheet-md{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-md::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-md{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-md::after{left:0;right:0;top:0;bottom:0;position:absolute;content:\"\";opacity:0}.action-sheet-selected.sc-ion-action-sheet-md{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-md::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-md:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-md:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);--button-background:transparent;--button-background-selected:currentColor;--button-background-selected-opacity:0;--button-background-activated:transparent;--button-background-activated-opacity:0;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-color:var(--ion-color-step-850, #262626);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}.action-sheet-title.sc-ion-action-sheet-md{padding-left:16px;padding-right:16px;padding-top:20px;padding-bottom:17px;min-height:60px;color:var(--color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54));font-size:16px;text-align:start}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-title.sc-ion-action-sheet-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.action-sheet-sub-title.sc-ion-action-sheet-md{padding-left:0;padding-right:0;padding-top:16px;padding-bottom:0;font-size:14px}.action-sheet-group.sc-ion-action-sheet-md:first-child{padding-top:0}.action-sheet-group.sc-ion-action-sheet-md:last-child{padding-bottom:0}.action-sheet-button.sc-ion-action-sheet-md{padding-left:16px;padding-right:16px;padding-top:0;padding-bottom:0;position:relative;height:52px;font-size:16px;text-align:start;contain:strict;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.action-sheet-icon.sc-ion-action-sheet-md{padding-bottom:4px;margin-left:0;margin-right:32px;margin-top:0;margin-bottom:0;color:var(--color);font-size:24px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-icon.sc-ion-action-sheet-md{margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:32px;margin-inline-end:32px}}.action-sheet-button-inner.sc-ion-action-sheet-md{-ms-flex-pack:start;justify-content:flex-start}.action-sheet-selected.sc-ion-action-sheet-md{font-weight:bold}';\n\nvar ActionSheet = function () {\n function t(t) {\n var e = this;\n registerInstance(this, t);\n this.didPresent = createEvent(this, \"ionActionSheetDidPresent\", 7);\n this.willPresent = createEvent(this, \"ionActionSheetWillPresent\", 7);\n this.willDismiss = createEvent(this, \"ionActionSheetWillDismiss\", 7);\n this.didDismiss = createEvent(this, \"ionActionSheetDidDismiss\", 7);\n this.presented = false;\n this.keyboardClose = true;\n this.buttons = [];\n this.backdropDismiss = true;\n this.translucent = false;\n this.animated = true;\n\n this.onBackdropTap = function () {\n e.dismiss(undefined, BACKDROP);\n };\n\n this.dispatchCancelHandler = function (t) {\n var o = t.detail.role;\n\n if (isCancel(o)) {\n var n = e.getButtons().find(function (t) {\n return t.role === \"cancel\";\n });\n e.callButtonHandler(n);\n }\n };\n }\n\n t.prototype.present = function () {\n return present(this, \"actionSheetEnter\", iosEnterAnimation, mdEnterAnimation);\n };\n\n t.prototype.connectedCallback = function () {\n prepareOverlay(this.el);\n };\n\n t.prototype.dismiss = function (t, e) {\n return dismiss(this, t, e, \"actionSheetLeave\", iosLeaveAnimation, mdLeaveAnimation);\n };\n\n t.prototype.onDidDismiss = function () {\n return eventMethod(this.el, \"ionActionSheetDidDismiss\");\n };\n\n t.prototype.onWillDismiss = function () {\n return eventMethod(this.el, \"ionActionSheetWillDismiss\");\n };\n\n t.prototype.buttonClick = function (t) {\n return __awaiter(this, void 0, void 0, function () {\n var e, o;\n return __generator(this, function (n) {\n switch (n.label) {\n case 0:\n e = t.role;\n\n if (isCancel(e)) {\n return [2, this.dismiss(undefined, e)];\n }\n\n return [4, this.callButtonHandler(t)];\n\n case 1:\n o = n.sent();\n\n if (o) {\n return [2, this.dismiss(undefined, t.role)];\n }\n\n return [2, Promise.resolve()];\n }\n });\n });\n };\n\n t.prototype.callButtonHandler = function (t) {\n return __awaiter(this, void 0, void 0, function () {\n var e;\n return __generator(this, function (o) {\n switch (o.label) {\n case 0:\n if (!t) return [3, 2];\n return [4, safeCall(t.handler)];\n\n case 1:\n e = o.sent();\n\n if (e === false) {\n return [2, false];\n }\n\n o.label = 2;\n\n case 2:\n return [2, true];\n }\n });\n });\n };\n\n t.prototype.getButtons = function () {\n return this.buttons.map(function (t) {\n return typeof t === \"string\" ? {\n text: t\n } : t;\n });\n };\n\n t.prototype.disconnectedCallback = function () {\n if (this.gesture) {\n this.gesture.destroy();\n this.gesture = undefined;\n }\n };\n\n t.prototype.componentDidLoad = function () {\n var t = this;\n var e = this,\n o = e.groupEl,\n n = e.wrapperEl;\n\n if (this.gesture || getIonMode(this) === \"md\" || !n || !o) {\n return;\n }\n\n readTask(function () {\n var e = o.scrollHeight > o.clientHeight;\n\n if (!e) {\n t.gesture = createButtonActiveGesture(n, function (t) {\n return t.classList.contains(\"action-sheet-button\");\n });\n t.gesture.enable(true);\n }\n });\n };\n\n t.prototype.render = function () {\n var t;\n var e = this;\n var o = getIonMode(this);\n var n = this.getButtons();\n var i = n.find(function (t) {\n return t.role === \"cancel\";\n });\n var a = n.filter(function (t) {\n return t.role !== \"cancel\";\n });\n return h(Host, {\n role: \"dialog\",\n \"aria-modal\": \"true\",\n tabindex: \"-1\",\n style: {\n zIndex: \"\" + (2e4 + this.overlayIndex)\n },\n class: Object.assign(Object.assign((t = {}, t[o] = true, t), getClassMap(this.cssClass)), {\n \"action-sheet-translucent\": this.translucent\n }),\n onIonActionSheetWillDismiss: this.dispatchCancelHandler,\n onIonBackdropTap: this.onBackdropTap\n }, h(\"ion-backdrop\", {\n tappable: this.backdropDismiss\n }), h(\"div\", {\n tabindex: \"0\"\n }), h(\"div\", {\n class: \"action-sheet-wrapper ion-overlay-wrapper\",\n role: \"dialog\",\n ref: function (t) {\n return e.wrapperEl = t;\n }\n }, h(\"div\", {\n class: \"action-sheet-container\"\n }, h(\"div\", {\n class: \"action-sheet-group\",\n ref: function (t) {\n return e.groupEl = t;\n }\n }, this.header !== undefined && h(\"div\", {\n class: \"action-sheet-title\"\n }, this.header, this.subHeader && h(\"div\", {\n class: \"action-sheet-sub-title\"\n }, this.subHeader)), a.map(function (t) {\n return h(\"button\", {\n type: \"button\",\n class: buttonClass(t),\n onClick: function () {\n return e.buttonClick(t);\n }\n }, h(\"span\", {\n class: \"action-sheet-button-inner\"\n }, t.icon && h(\"ion-icon\", {\n icon: t.icon,\n lazy: false,\n class: \"action-sheet-icon\"\n }), t.text), o === \"md\" && h(\"ion-ripple-effect\", null));\n })), i && h(\"div\", {\n class: \"action-sheet-group action-sheet-group-cancel\"\n }, h(\"button\", {\n type: \"button\",\n class: buttonClass(i),\n onClick: function () {\n return e.buttonClick(i);\n }\n }, h(\"span\", {\n class: \"action-sheet-button-inner\"\n }, i.icon && h(\"ion-icon\", {\n icon: i.icon,\n lazy: false,\n class: \"action-sheet-icon\"\n }), i.text), o === \"md\" && h(\"ion-ripple-effect\", null))))), h(\"div\", {\n tabindex: \"0\"\n }));\n };\n\n Object.defineProperty(t.prototype, \"el\", {\n get: function () {\n return getElement(this);\n },\n enumerable: false,\n configurable: true\n });\n return t;\n}();\n\nvar buttonClass = function (t) {\n var e;\n return Object.assign((e = {\n \"action-sheet-button\": true,\n \"ion-activatable\": true,\n \"ion-focusable\": true\n }, e[\"action-sheet-\" + t.role] = t.role !== undefined, e), getClassMap(t.cssClass));\n};\n\nActionSheet.style = {\n ios: actionSheetIosCss,\n md: actionSheetMdCss\n};\nexport { ActionSheet as ion_action_sheet };","map":{"version":3,"sources":["/Users/adekanbidansteve/github/klasha/react-klasha/ionic-test/node_modules/@ionic/core/dist/esm-es5/ion-action-sheet.entry.js"],"names":["__awaiter","__generator","r","registerInstance","e","createEvent","f","readTask","h","H","Host","i","getElement","b","getIonMode","c","createButtonActiveGesture","B","BACKDROP","isCancel","d","present","prepareOverlay","dismiss","g","eventMethod","s","safeCall","getClassMap","createAnimation","iosEnterAnimation","t","o","n","addElement","querySelector","fromTo","beforeStyles","afterClearStyles","easing","duration","addAnimation","iosLeaveAnimation","mdEnterAnimation","mdLeaveAnimation","actionSheetIosCss","actionSheetMdCss","ActionSheet","didPresent","willPresent","willDismiss","didDismiss","presented","keyboardClose","buttons","backdropDismiss","translucent","animated","onBackdropTap","undefined","dispatchCancelHandler","detail","role","getButtons","find","callButtonHandler","prototype","connectedCallback","el","onDidDismiss","onWillDismiss","buttonClick","label","sent","Promise","resolve","handler","map","text","disconnectedCallback","gesture","destroy","componentDidLoad","groupEl","wrapperEl","scrollHeight","clientHeight","classList","contains","enable","render","a","filter","tabindex","style","zIndex","overlayIndex","class","Object","assign","cssClass","onIonActionSheetWillDismiss","onIonBackdropTap","tappable","ref","header","subHeader","type","buttonClass","onClick","icon","lazy","defineProperty","get","enumerable","configurable","ios","md","ion_action_sheet"],"mappings":"AAAA,SAAOA,SAAP,EAAiBC,WAAjB,QAAiC,OAAjC;AAAyC,SAAOC,CAAC,IAAIC,gBAAZ,EAA6BC,CAAC,IAAIC,WAAlC,EAA8CC,CAAC,IAAIC,QAAnD,EAA4DC,CAA5D,EAA8DC,CAAC,IAAIC,IAAnE,EAAwEC,CAAC,IAAIC,UAA7E,QAA4F,qBAA5F;AAAkH,SAAOC,CAAC,IAAIC,UAAZ,QAA2B,4BAA3B;AAAwD,SAAOC,CAAC,IAAIC,yBAAZ,QAA0C,6BAA1C;AAAwE,SAAOC,CAAC,IAAIC,QAAZ,EAAqBP,CAAC,IAAIQ,QAA1B,EAAmCC,CAAC,IAAIC,OAAxC,EAAgDjB,CAAC,IAAIkB,cAArD,EAAoEhB,CAAC,IAAIiB,OAAzE,EAAiFC,CAAC,IAAIC,WAAtF,EAAkGC,CAAC,IAAIC,QAAvG,QAAoH,wBAApH;AAA6I,SAAOH,CAAC,IAAII,WAAZ,QAA4B,qBAA5B;AAAkD,SAAOb,CAAC,IAAIc,eAAZ,QAAgC,yBAAhC;AAA0D,OAAM,sBAAN;AAA6B,OAAM,qBAAN;AAA4B,OAAM,kCAAN;AAAyC,OAAM,oCAAN;AAA2C,OAAM,uBAAN;;AAA8B,IAAIC,iBAAiB,GAAC,UAASC,CAAT,EAAW;AAAC,MAAI3B,CAAC,GAACyB,eAAe,EAArB;AAAwB,MAAI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CA,CAAC,CAAC,KAAD,EAAO;AAACqF,MAAAA,QAAQ,EAAC;AAAV,KAAP,CAAl2C,CAAR;AAAk4C,GAA9kD;;AAA+kDK,EAAAA,MAAM,CAACc,cAAP,CAAsBjF,CAAC,CAACmC,SAAxB,EAAkC,IAAlC,EAAuC;AAAC+C,IAAAA,GAAG,EAAC,YAAU;AAAC,aAAOrG,UAAU,CAAC,IAAD,CAAjB;AAAwB,KAAxC;AAAyCsG,IAAAA,UAAU,EAAC,KAApD;AAA0DC,IAAAA,YAAY,EAAC;AAAvE,GAAvC;AAAqH,SAAOpF,CAAP;AAAS,CAA9/H,EAAhB;;AAAihI,IAAI6E,WAAW,GAAC,UAAS7E,CAAT,EAAW;AAAC,MAAI3B,CAAJ;AAAM,SAAO8F,MAAM,CAACC,MAAP,EAAe/F,CAAC,GAAC;AAAC,2BAAsB,IAAvB;AAA4B,uBAAkB,IAA9C;AAAmD,qBAAgB;AAAnE,GAAF,EAA2EA,CAAC,CAAC,kBAAgB2B,CAAC,CAAC+B,IAAnB,CAAD,GAA0B/B,CAAC,CAAC+B,IAAF,KAASH,SAA9G,EAAwHvD,CAAvI,GAA0IwB,WAAW,CAACG,CAAC,CAACqE,QAAH,CAArJ,CAAP;AAA0K,CAA5M;;AAA6MrD,WAAW,CAAC+C,KAAZ,GAAkB;AAACsB,EAAAA,GAAG,EAACvE,iBAAL;AAAuBwE,EAAAA,EAAE,EAACvE;AAA1B,CAAlB;AAA8D,SAAOC,WAAW,IAAIuE,gBAAtB","sourcesContent":["import{__awaiter,__generator}from\"tslib\";import{r as registerInstance,e as createEvent,f as readTask,h,H as Host,i as getElement}from\"./index-7a8b7a1c.js\";import{b as getIonMode}from\"./ionic-global-63a97a32.js\";import{c as createButtonActiveGesture}from\"./button-active-4927a4c1.js\";import{B as BACKDROP,i as isCancel,d as present,e as prepareOverlay,f as dismiss,g as eventMethod,s as safeCall}from\"./overlays-e9ccff30.js\";import{g as getClassMap}from\"./theme-ff3fc52f.js\";import{c as createAnimation}from\"./animation-096c6391.js\";import\"./haptic-27b3f981.js\";import\"./index-f49d994d.js\";import\"./gesture-controller-31cb6bb9.js\";import\"./hardware-back-button-4a6b37fb.js\";import\"./helpers-dd7e4b7b.js\";var iosEnterAnimation=function(t){var e=createAnimation();var o=createAnimation();var n=createAnimation();o.addElement(t.querySelector(\"ion-backdrop\")).fromTo(\"opacity\",.01,\"var(--backdrop-opacity)\").beforeStyles({\"pointer-events\":\"none\"}).afterClearStyles([\"pointer-events\"]);n.addElement(t.querySelector(\".action-sheet-wrapper\")).fromTo(\"transform\",\"translateY(100%)\",\"translateY(0%)\");return e.addElement(t).easing(\"cubic-bezier(.36,.66,.04,1)\").duration(400).addAnimation([o,n])};var iosLeaveAnimation=function(t){var e=createAnimation();var o=createAnimation();var n=createAnimation();o.addElement(t.querySelector(\"ion-backdrop\")).fromTo(\"opacity\",\"var(--backdrop-opacity)\",0);n.addElement(t.querySelector(\".action-sheet-wrapper\")).fromTo(\"transform\",\"translateY(0%)\",\"translateY(100%)\");return e.addElement(t).easing(\"cubic-bezier(.36,.66,.04,1)\").duration(450).addAnimation([o,n])};var mdEnterAnimation=function(t){var e=createAnimation();var o=createAnimation();var n=createAnimation();o.addElement(t.querySelector(\"ion-backdrop\")).fromTo(\"opacity\",.01,\"var(--backdrop-opacity)\").beforeStyles({\"pointer-events\":\"none\"}).afterClearStyles([\"pointer-events\"]);n.addElement(t.querySelector(\".action-sheet-wrapper\")).fromTo(\"transform\",\"translateY(100%)\",\"translateY(0%)\");return e.addElement(t).easing(\"cubic-bezier(.36,.66,.04,1)\").duration(400).addAnimation([o,n])};var mdLeaveAnimation=function(t){var e=createAnimation();var o=createAnimation();var n=createAnimation();o.addElement(t.querySelector(\"ion-backdrop\")).fromTo(\"opacity\",\"var(--backdrop-opacity)\",0);n.addElement(t.querySelector(\".action-sheet-wrapper\")).fromTo(\"transform\",\"translateY(0%)\",\"translateY(100%)\");return e.addElement(t).easing(\"cubic-bezier(.36,.66,.04,1)\").duration(450).addAnimation([o,n])};var actionSheetIosCss='.sc-ion-action-sheet-ios-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:100%;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;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);z-index:10;pointer-events:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-button.sc-ion-action-sheet-ios{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:100%}.action-sheet-group.sc-ion-action-sheet-ios{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-ios::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-ios{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-ios::after{left:0;right:0;top:0;bottom:0;position:absolute;content:\"\";opacity:0}.action-sheet-selected.sc-ion-action-sheet-ios{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-ios:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-ios:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--backdrop-opacity:var(--ion-backdrop-opacity, 0.4);--button-background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent;--button-background-activated:var(--ion-text-color, #000);--button-background-activated-opacity:.08;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-background-selected:var(--ion-color-step-150, var(--ion-background-color, #fff));--button-background-selected-opacity:1;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-400, #999999);text-align:center}.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:auto;margin-right:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:var(--ion-safe-area-bottom, 0)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-container.sc-ion-action-sheet-ios{padding-left:8px;padding-right:8px;padding-top:0;padding-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-container.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.action-sheet-group.sc-ion-action-sheet-ios{border-radius:13px;margin-bottom:8px}.action-sheet-group.sc-ion-action-sheet-ios:first-child{margin-top:10px}.action-sheet-group.sc-ion-action-sheet-ios:last-child{margin-bottom:10px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-group.sc-ion-action-sheet-ios{background-color:transparent;-webkit-backdrop-filter:saturate(280%) blur(20px);backdrop-filter:saturate(280%) blur(20px)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-title.sc-ion-action-sheet-ios,.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.sc-ion-action-sheet-ios{background-color:transparent;background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8))), -webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background-image:linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%), linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4) 50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 50%);background-repeat:no-repeat;background-position:top, bottom;background-size:100% calc(100% - 1px), 100% 1px;-webkit-backdrop-filter:saturate(120%);backdrop-filter:saturate(120%)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.ion-activated.sc-ion-action-sheet-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.7);background-image:none}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--button-background-selected)}}.action-sheet-title.sc-ion-action-sheet-ios{background:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, transparent)) bottom/100% 1px no-repeat transparent;background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent}.action-sheet-title.sc-ion-action-sheet-ios{padding-left:10px;padding-right:10px;padding-top:14px;padding-bottom:13px;color:var(--color, var(--ion-color-step-400, #999999));font-size:13px;font-weight:400;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-title.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}.action-sheet-sub-title.sc-ion-action-sheet-ios{padding-left:0;padding-right:0;padding-top:15px;padding-bottom:0;font-size:12px}.action-sheet-button.sc-ion-action-sheet-ios{padding-left:18px;padding-right:18px;padding-top:18px;padding-bottom:18px;height:56px;font-size:20px;contain:strict}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:18px;padding-inline-start:18px;-webkit-padding-end:18px;padding-inline-end:18px}}.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{margin-right:0.1em;font-size:28px;pointer-events:none}@supports ((-webkit-margin-st