@ionic/core 7.3.4-dev.11694698515.1504c90b → 7.3.4-dev.11694700050.1d868b6b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/input-shims.js +29 -3
- package/dist/cjs/{input-shims-5d7b09e8.js → input-shims-8d1ba420.js} +29 -3
- package/dist/cjs/ion-app_8.cjs.entry.js +1 -1
- package/dist/collection/utils/input-shims/hacks/scroll-assist.js +29 -3
- package/dist/docs.json +1 -1
- package/dist/esm/{input-shims-451757bd.js → input-shims-62af6bcc.js} +29 -3
- package/dist/esm/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/input-shims-62af6bcc.js +4 -0
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-9dc4d33e.system.js → p-4d4f504b.system.js} +1 -1
- package/dist/ionic/{p-ccc90dcb.system.entry.js → p-acc9adcf.system.entry.js} +1 -1
- package/dist/ionic/p-c68a8814.system.js +1 -1
- package/dist/ionic/{p-bcabbf15.entry.js → p-e00f2bf2.entry.js} +1 -1
- package/dist/ionic/p-f7377240.js +4 -0
- package/package.json +1 -1
- package/dist/esm-es5/input-shims-451757bd.js +0 -4
- package/dist/ionic/p-5e5c1e58.js +0 -4
|
@@ -274,7 +274,7 @@ const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, keyboardH
|
|
|
274
274
|
* the keyboard height again. This will result in the input
|
|
275
275
|
* being scrolled more than it needs to.
|
|
276
276
|
*/
|
|
277
|
-
|
|
277
|
+
let platformHeight = win !== undefined ? win.innerHeight : 0;
|
|
278
278
|
/**
|
|
279
279
|
* Scroll assist is run when a text field
|
|
280
280
|
* is focused. However, it may need to
|
|
@@ -290,11 +290,12 @@ const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, keyboardH
|
|
|
290
290
|
* This means that if the keyboard changes but does not change
|
|
291
291
|
* geometry, then scroll assist will not re-run even if
|
|
292
292
|
* the user has scrolled the text field under the keyboard.
|
|
293
|
-
* This
|
|
293
|
+
* This is not a problem when running in Cordova/Capacitor
|
|
294
294
|
* because `ionKeyboardDidShow` uses the native events
|
|
295
295
|
* which fire every time the keyboard changes.
|
|
296
296
|
*/
|
|
297
297
|
const keyboardShow = (ev) => {
|
|
298
|
+
const { keyboardHeight } = ev.detail;
|
|
298
299
|
/**
|
|
299
300
|
* If the keyboard has not yet been presented
|
|
300
301
|
* for this text field then the text field has just
|
|
@@ -303,8 +304,33 @@ const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, keyboardH
|
|
|
303
304
|
*/
|
|
304
305
|
if (hasKeyboardBeenPresentedForTextField === false) {
|
|
305
306
|
hasKeyboardBeenPresentedForTextField = true;
|
|
307
|
+
/**
|
|
308
|
+
* The platform height is the innerHeight of the window
|
|
309
|
+
* because the webview has not resize yet.
|
|
310
|
+
*/
|
|
311
|
+
platformHeight = win !== undefined ? win.innerHeight : 0;
|
|
306
312
|
return;
|
|
307
313
|
}
|
|
314
|
+
/**
|
|
315
|
+
* platformHeight is recomputed every time the keyboard shows
|
|
316
|
+
* to account for any device rotations (i.e. rotating from portrait
|
|
317
|
+
* to landscape). This ensures we are using an accurate platform height.
|
|
318
|
+
*
|
|
319
|
+
* If we are using the Native keyboard resize behavior and
|
|
320
|
+
* the keyboard was already shown then the webview has already resized.
|
|
321
|
+
* In order to compute the correct platform height (before the keyboard was shown)
|
|
322
|
+
* we need to add the keyboard height to window.innerHeight.
|
|
323
|
+
*/
|
|
324
|
+
if (keyboardResize !== undefined && keyboardResize.mode === KeyboardResize.Native) {
|
|
325
|
+
platformHeight = win !== undefined ? win.innerHeight + keyboardHeight : 0;
|
|
326
|
+
/**
|
|
327
|
+
* Otherwise the webview does not resize and we can use window.innerHeight
|
|
328
|
+
* as we normally would.
|
|
329
|
+
*/
|
|
330
|
+
}
|
|
331
|
+
else {
|
|
332
|
+
platformHeight = win !== undefined ? win.innerHeight : 0;
|
|
333
|
+
}
|
|
308
334
|
/**
|
|
309
335
|
* Otherwise, the keyboard has already been presented
|
|
310
336
|
* for the focused text field.
|
|
@@ -320,7 +346,7 @@ const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, keyboardH
|
|
|
320
346
|
* need to wait for the webview to resize, so we pass
|
|
321
347
|
* "waitForResize: false".
|
|
322
348
|
*/
|
|
323
|
-
jsSetFocus(componentEl, inputEl, contentEl, footerEl,
|
|
349
|
+
jsSetFocus(componentEl, inputEl, contentEl, footerEl, keyboardHeight, addScrollPadding, disableClonedInput, platformHeight, false);
|
|
324
350
|
};
|
|
325
351
|
/**
|
|
326
352
|
* Reset the internal state when the text field loses focus.
|
|
@@ -278,7 +278,7 @@ const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, keyboardH
|
|
|
278
278
|
* the keyboard height again. This will result in the input
|
|
279
279
|
* being scrolled more than it needs to.
|
|
280
280
|
*/
|
|
281
|
-
|
|
281
|
+
let platformHeight = index.win !== undefined ? index.win.innerHeight : 0;
|
|
282
282
|
/**
|
|
283
283
|
* Scroll assist is run when a text field
|
|
284
284
|
* is focused. However, it may need to
|
|
@@ -294,11 +294,12 @@ const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, keyboardH
|
|
|
294
294
|
* This means that if the keyboard changes but does not change
|
|
295
295
|
* geometry, then scroll assist will not re-run even if
|
|
296
296
|
* the user has scrolled the text field under the keyboard.
|
|
297
|
-
* This
|
|
297
|
+
* This is not a problem when running in Cordova/Capacitor
|
|
298
298
|
* because `ionKeyboardDidShow` uses the native events
|
|
299
299
|
* which fire every time the keyboard changes.
|
|
300
300
|
*/
|
|
301
301
|
const keyboardShow = (ev) => {
|
|
302
|
+
const { keyboardHeight } = ev.detail;
|
|
302
303
|
/**
|
|
303
304
|
* If the keyboard has not yet been presented
|
|
304
305
|
* for this text field then the text field has just
|
|
@@ -307,8 +308,33 @@ const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, keyboardH
|
|
|
307
308
|
*/
|
|
308
309
|
if (hasKeyboardBeenPresentedForTextField === false) {
|
|
309
310
|
hasKeyboardBeenPresentedForTextField = true;
|
|
311
|
+
/**
|
|
312
|
+
* The platform height is the innerHeight of the window
|
|
313
|
+
* because the webview has not resize yet.
|
|
314
|
+
*/
|
|
315
|
+
platformHeight = index.win !== undefined ? index.win.innerHeight : 0;
|
|
310
316
|
return;
|
|
311
317
|
}
|
|
318
|
+
/**
|
|
319
|
+
* platformHeight is recomputed every time the keyboard shows
|
|
320
|
+
* to account for any device rotations (i.e. rotating from portrait
|
|
321
|
+
* to landscape). This ensures we are using an accurate platform height.
|
|
322
|
+
*
|
|
323
|
+
* If we are using the Native keyboard resize behavior and
|
|
324
|
+
* the keyboard was already shown then the webview has already resized.
|
|
325
|
+
* In order to compute the correct platform height (before the keyboard was shown)
|
|
326
|
+
* we need to add the keyboard height to window.innerHeight.
|
|
327
|
+
*/
|
|
328
|
+
if (keyboardResize !== undefined && keyboardResize.mode === keyboard.KeyboardResize.Native) {
|
|
329
|
+
platformHeight = index.win !== undefined ? index.win.innerHeight + keyboardHeight : 0;
|
|
330
|
+
/**
|
|
331
|
+
* Otherwise the webview does not resize and we can use window.innerHeight
|
|
332
|
+
* as we normally would.
|
|
333
|
+
*/
|
|
334
|
+
}
|
|
335
|
+
else {
|
|
336
|
+
platformHeight = index.win !== undefined ? index.win.innerHeight : 0;
|
|
337
|
+
}
|
|
312
338
|
/**
|
|
313
339
|
* Otherwise, the keyboard has already been presented
|
|
314
340
|
* for the focused text field.
|
|
@@ -324,7 +350,7 @@ const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, keyboardH
|
|
|
324
350
|
* need to wait for the webview to resize, so we pass
|
|
325
351
|
* "waitForResize: false".
|
|
326
352
|
*/
|
|
327
|
-
jsSetFocus(componentEl, inputEl, contentEl, footerEl,
|
|
353
|
+
jsSetFocus(componentEl, inputEl, contentEl, footerEl, keyboardHeight, addScrollPadding, disableClonedInput, platformHeight, false);
|
|
328
354
|
};
|
|
329
355
|
/**
|
|
330
356
|
* Reset the internal state when the text field loses focus.
|
|
@@ -42,7 +42,7 @@ const App = class {
|
|
|
42
42
|
* platforms proceed into this block.
|
|
43
43
|
*/
|
|
44
44
|
const platform = ionicGlobal.isPlatform(window, 'ios') ? 'ios' : 'android';
|
|
45
|
-
Promise.resolve().then(function () { return require('./input-shims-
|
|
45
|
+
Promise.resolve().then(function () { return require('./input-shims-8d1ba420.js'); }).then((module) => module.startInputShims(ionicGlobal.config, platform));
|
|
46
46
|
}
|
|
47
47
|
const hardwareBackButtonModule = await Promise.resolve().then(function () { return require('./hardware-back-button-b67c8e75.js'); });
|
|
48
48
|
if (ionicGlobal.config.getBoolean('hardwareBackButton', isHybrid)) {
|
|
@@ -42,7 +42,7 @@ export const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, ke
|
|
|
42
42
|
* the keyboard height again. This will result in the input
|
|
43
43
|
* being scrolled more than it needs to.
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
let platformHeight = win !== undefined ? win.innerHeight : 0;
|
|
46
46
|
/**
|
|
47
47
|
* Scroll assist is run when a text field
|
|
48
48
|
* is focused. However, it may need to
|
|
@@ -58,11 +58,12 @@ export const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, ke
|
|
|
58
58
|
* This means that if the keyboard changes but does not change
|
|
59
59
|
* geometry, then scroll assist will not re-run even if
|
|
60
60
|
* the user has scrolled the text field under the keyboard.
|
|
61
|
-
* This
|
|
61
|
+
* This is not a problem when running in Cordova/Capacitor
|
|
62
62
|
* because `ionKeyboardDidShow` uses the native events
|
|
63
63
|
* which fire every time the keyboard changes.
|
|
64
64
|
*/
|
|
65
65
|
const keyboardShow = (ev) => {
|
|
66
|
+
const { keyboardHeight } = ev.detail;
|
|
66
67
|
/**
|
|
67
68
|
* If the keyboard has not yet been presented
|
|
68
69
|
* for this text field then the text field has just
|
|
@@ -71,8 +72,33 @@ export const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, ke
|
|
|
71
72
|
*/
|
|
72
73
|
if (hasKeyboardBeenPresentedForTextField === false) {
|
|
73
74
|
hasKeyboardBeenPresentedForTextField = true;
|
|
75
|
+
/**
|
|
76
|
+
* The platform height is the innerHeight of the window
|
|
77
|
+
* because the webview has not resize yet.
|
|
78
|
+
*/
|
|
79
|
+
platformHeight = win !== undefined ? win.innerHeight : 0;
|
|
74
80
|
return;
|
|
75
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* platformHeight is recomputed every time the keyboard shows
|
|
84
|
+
* to account for any device rotations (i.e. rotating from portrait
|
|
85
|
+
* to landscape). This ensures we are using an accurate platform height.
|
|
86
|
+
*
|
|
87
|
+
* If we are using the Native keyboard resize behavior and
|
|
88
|
+
* the keyboard was already shown then the webview has already resized.
|
|
89
|
+
* In order to compute the correct platform height (before the keyboard was shown)
|
|
90
|
+
* we need to add the keyboard height to window.innerHeight.
|
|
91
|
+
*/
|
|
92
|
+
if (keyboardResize !== undefined && keyboardResize.mode === KeyboardResize.Native) {
|
|
93
|
+
platformHeight = win !== undefined ? win.innerHeight + keyboardHeight : 0;
|
|
94
|
+
/**
|
|
95
|
+
* Otherwise the webview does not resize and we can use window.innerHeight
|
|
96
|
+
* as we normally would.
|
|
97
|
+
*/
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
platformHeight = win !== undefined ? win.innerHeight : 0;
|
|
101
|
+
}
|
|
76
102
|
/**
|
|
77
103
|
* Otherwise, the keyboard has already been presented
|
|
78
104
|
* for the focused text field.
|
|
@@ -88,7 +114,7 @@ export const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, ke
|
|
|
88
114
|
* need to wait for the webview to resize, so we pass
|
|
89
115
|
* "waitForResize: false".
|
|
90
116
|
*/
|
|
91
|
-
jsSetFocus(componentEl, inputEl, contentEl, footerEl,
|
|
117
|
+
jsSetFocus(componentEl, inputEl, contentEl, footerEl, keyboardHeight, addScrollPadding, disableClonedInput, platformHeight, false);
|
|
92
118
|
};
|
|
93
119
|
/**
|
|
94
120
|
* Reset the internal state when the text field loses focus.
|
package/dist/docs.json
CHANGED
|
@@ -276,7 +276,7 @@ const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, keyboardH
|
|
|
276
276
|
* the keyboard height again. This will result in the input
|
|
277
277
|
* being scrolled more than it needs to.
|
|
278
278
|
*/
|
|
279
|
-
|
|
279
|
+
let platformHeight = win !== undefined ? win.innerHeight : 0;
|
|
280
280
|
/**
|
|
281
281
|
* Scroll assist is run when a text field
|
|
282
282
|
* is focused. However, it may need to
|
|
@@ -292,11 +292,12 @@ const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, keyboardH
|
|
|
292
292
|
* This means that if the keyboard changes but does not change
|
|
293
293
|
* geometry, then scroll assist will not re-run even if
|
|
294
294
|
* the user has scrolled the text field under the keyboard.
|
|
295
|
-
* This
|
|
295
|
+
* This is not a problem when running in Cordova/Capacitor
|
|
296
296
|
* because `ionKeyboardDidShow` uses the native events
|
|
297
297
|
* which fire every time the keyboard changes.
|
|
298
298
|
*/
|
|
299
299
|
const keyboardShow = (ev) => {
|
|
300
|
+
const { keyboardHeight } = ev.detail;
|
|
300
301
|
/**
|
|
301
302
|
* If the keyboard has not yet been presented
|
|
302
303
|
* for this text field then the text field has just
|
|
@@ -305,8 +306,33 @@ const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, keyboardH
|
|
|
305
306
|
*/
|
|
306
307
|
if (hasKeyboardBeenPresentedForTextField === false) {
|
|
307
308
|
hasKeyboardBeenPresentedForTextField = true;
|
|
309
|
+
/**
|
|
310
|
+
* The platform height is the innerHeight of the window
|
|
311
|
+
* because the webview has not resize yet.
|
|
312
|
+
*/
|
|
313
|
+
platformHeight = win !== undefined ? win.innerHeight : 0;
|
|
308
314
|
return;
|
|
309
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* platformHeight is recomputed every time the keyboard shows
|
|
318
|
+
* to account for any device rotations (i.e. rotating from portrait
|
|
319
|
+
* to landscape). This ensures we are using an accurate platform height.
|
|
320
|
+
*
|
|
321
|
+
* If we are using the Native keyboard resize behavior and
|
|
322
|
+
* the keyboard was already shown then the webview has already resized.
|
|
323
|
+
* In order to compute the correct platform height (before the keyboard was shown)
|
|
324
|
+
* we need to add the keyboard height to window.innerHeight.
|
|
325
|
+
*/
|
|
326
|
+
if (keyboardResize !== undefined && keyboardResize.mode === KeyboardResize.Native) {
|
|
327
|
+
platformHeight = win !== undefined ? win.innerHeight + keyboardHeight : 0;
|
|
328
|
+
/**
|
|
329
|
+
* Otherwise the webview does not resize and we can use window.innerHeight
|
|
330
|
+
* as we normally would.
|
|
331
|
+
*/
|
|
332
|
+
}
|
|
333
|
+
else {
|
|
334
|
+
platformHeight = win !== undefined ? win.innerHeight : 0;
|
|
335
|
+
}
|
|
310
336
|
/**
|
|
311
337
|
* Otherwise, the keyboard has already been presented
|
|
312
338
|
* for the focused text field.
|
|
@@ -322,7 +348,7 @@ const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, keyboardH
|
|
|
322
348
|
* need to wait for the webview to resize, so we pass
|
|
323
349
|
* "waitForResize: false".
|
|
324
350
|
*/
|
|
325
|
-
jsSetFocus(componentEl, inputEl, contentEl, footerEl,
|
|
351
|
+
jsSetFocus(componentEl, inputEl, contentEl, footerEl, keyboardHeight, addScrollPadding, disableClonedInput, platformHeight, false);
|
|
326
352
|
};
|
|
327
353
|
/**
|
|
328
354
|
* Reset the internal state when the text field loses focus.
|
|
@@ -38,7 +38,7 @@ const App = class {
|
|
|
38
38
|
* platforms proceed into this block.
|
|
39
39
|
*/
|
|
40
40
|
const platform = isPlatform(window, 'ios') ? 'ios' : 'android';
|
|
41
|
-
import('./input-shims-
|
|
41
|
+
import('./input-shims-62af6bcc.js').then((module) => module.startInputShims(config, platform));
|
|
42
42
|
}
|
|
43
43
|
const hardwareBackButtonModule = await import('./hardware-back-button-39299f84.js');
|
|
44
44
|
if (config.getBoolean('hardwareBackButton', isHybrid)) {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{__awaiter,__generator}from"tslib";
|
|
2
|
+
/*!
|
|
3
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
+
*/import{g as getScrollElement,c as scrollByPoint,f as findClosestIonContent}from"./index-746a238e.js";import{a as addEventListener,b as removeEventListener,r as raf,c as componentOnReady}from"./helpers-3379ba19.js";import{a as KeyboardResize,K as Keyboard}from"./keyboard-b063f012.js";import{w as win}from"./index-7a14ecec.js";import"./index-595d62c9.js";import"./capacitor-b4979570.js";var cloneMap=new WeakMap;var relocateInput=function(e,n,t,r,i){if(r===void 0){r=0}if(i===void 0){i=false}if(cloneMap.has(e)===t){return}if(t){addClone(e,n,r,i)}else{removeClone(e,n)}};var isFocused=function(e){return e===e.getRootNode().activeElement};var addClone=function(e,n,t,r){if(r===void 0){r=false}var i=n.parentNode;var o=n.cloneNode(false);o.classList.add("cloned-input");o.tabIndex=-1;if(r){o.disabled=true}i.appendChild(o);cloneMap.set(e,o);var a=e.ownerDocument;var u=a.dir==="rtl"?9999:-9999;e.style.pointerEvents="none";n.style.transform="translate3d(".concat(u,"px,").concat(t,"px,0) scale(0)")};var removeClone=function(e,n){var t=cloneMap.get(e);if(t){cloneMap.delete(e);t.remove()}e.style.pointerEvents="";n.style.transform=""};var SCROLL_AMOUNT_PADDING=50;var enableHideCaretOnScroll=function(e,n,t){if(!t||!n){return function(){return}}var r=function(t){if(isFocused(n)){relocateInput(e,n,t)}};var i=function(){return relocateInput(e,n,false)};var o=function(){return r(true)};var a=function(){return r(false)};addEventListener(t,"ionScrollStart",o);addEventListener(t,"ionScrollEnd",a);n.addEventListener("blur",i);return function(){removeEventListener(t,"ionScrollStart",o);removeEventListener(t,"ionScrollEnd",a);n.removeEventListener("blur",i)}};var SKIP_SELECTOR="input, textarea, [no-blur], [contenteditable]";var enableInputBlurring=function(){var e=true;var n=false;var t=document;var r=function(){n=true};var i=function(){e=true};var o=function(r){if(n){n=false;return}var i=t.activeElement;if(!i){return}if(i.matches(SKIP_SELECTOR)){return}var o=r.target;if(o===i){return}if(o.matches(SKIP_SELECTOR)||o.closest(SKIP_SELECTOR)){return}e=false;setTimeout((function(){if(!e){i.blur()}}),50)};addEventListener(t,"ionScrollStart",r);t.addEventListener("focusin",i,true);t.addEventListener("touchend",o,false);return function(){removeEventListener(t,"ionScrollStart",r,true);t.removeEventListener("focusin",i,true);t.removeEventListener("touchend",o,false)}};var SCROLL_ASSIST_SPEED=.3;var getScrollData=function(e,n,t,r){var i;var o=(i=e.closest("ion-item,[ion-item]"))!==null&&i!==void 0?i:e;return calcScrollData(o.getBoundingClientRect(),n.getBoundingClientRect(),t,r)};var calcScrollData=function(e,n,t,r){var i=e.top;var o=e.bottom;var a=n.top;var u=Math.min(n.bottom,r-t);var s=a+15;var l=u-SCROLL_AMOUNT_PADDING;var d=l-o;var c=s-i;var f=Math.round(d<0?-d:c>0?-c:0);var v=Math.min(f,i-a);var S=Math.abs(v);var m=S/SCROLL_ASSIST_SPEED;var L=Math.min(400,Math.max(150,m));return{scrollAmount:v,scrollDuration:L,scrollPadding:t,inputSafeY:-(i-s)+4}};var PADDING_TIMER_KEY="$ionPaddingTimer";var setScrollPadding=function(e,n,t){var r=e[PADDING_TIMER_KEY];if(r){clearTimeout(r)}if(n>0){e.style.setProperty("--keyboard-offset","".concat(n,"px"))}else{e[PADDING_TIMER_KEY]=setTimeout((function(){e.style.setProperty("--keyboard-offset","0px");if(t){t()}}),120)}};var setClearScrollPaddingListener=function(e,n,t){var r=function(){if(n){setScrollPadding(n,0,t)}};e.addEventListener("focusout",r,{once:true})};var currentPadding=0;var SKIP_SCROLL_ASSIST="data-ionic-skip-scroll-assist";var enableScrollAssist=function(e,n,t,r,i,o,a,u){if(u===void 0){u=false}var s=o&&(a===undefined||a.mode===KeyboardResize.None);var l=false;var d=win!==undefined?win.innerHeight:0;var c=function(i){var o=i.detail.keyboardHeight;if(l===false){l=true;d=win!==undefined?win.innerHeight:0;return}if(a!==undefined&&a.mode===KeyboardResize.Native){d=win!==undefined?win.innerHeight+o:0}else{d=win!==undefined?win.innerHeight:0}jsSetFocus(e,n,t,r,o,s,u,d,false)};var f=function(){l=false;win===null||win===void 0?void 0:win.removeEventListener("ionKeyboardDidShow",c);e.removeEventListener("focusout",f,true)};var v=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(o){if(n.hasAttribute(SKIP_SCROLL_ASSIST)){n.removeAttribute(SKIP_SCROLL_ASSIST);return[2]}jsSetFocus(e,n,t,r,i,s,u,d);win===null||win===void 0?void 0:win.addEventListener("ionKeyboardDidShow",c);e.addEventListener("focusout",f,true);return[2]}))}))};e.addEventListener("focusin",v,true);return function(){e.removeEventListener("focusin",v,true);win===null||win===void 0?void 0:win.removeEventListener("ionKeyboardDidShow",c);e.removeEventListener("focusout",f,true)}};var setManualFocus=function(e){if(document.activeElement===e){return}e.setAttribute(SKIP_SCROLL_ASSIST,"true");e.focus()};var jsSetFocus=function(e,n,t,r,i,o,a,u,s){if(a===void 0){a=false}if(u===void 0){u=0}if(s===void 0){s=true}return __awaiter(void 0,void 0,void 0,(function(){var l,d,c,f,v,S;return __generator(this,(function(m){switch(m.label){case 0:if(!t&&!r){return[2]}l=getScrollData(e,t||r,i,u);if(t&&Math.abs(l.scrollAmount)<4){setManualFocus(n);if(o&&t!==null){setScrollPadding(t,currentPadding);setClearScrollPaddingListener(n,t,(function(){return currentPadding=0}))}return[2]}relocateInput(e,n,true,l.inputSafeY,a);setManualFocus(n);raf((function(){return e.click()}));if(o&&t){currentPadding=l.scrollPadding;setScrollPadding(t,currentPadding)}if(!(typeof window!=="undefined"))return[3,3];c=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:if(d!==undefined){clearTimeout(d)}window.removeEventListener("ionKeyboardDidShow",f);window.removeEventListener("ionKeyboardDidShow",c);if(!t)return[3,2];return[4,scrollByPoint(t,0,l.scrollAmount,l.scrollDuration)];case 1:r.sent();r.label=2;case 2:relocateInput(e,n,false,l.inputSafeY);setManualFocus(n);if(o){setClearScrollPaddingListener(n,t,(function(){return currentPadding=0}))}return[2]}}))}))};f=function(){window.removeEventListener("ionKeyboardDidShow",f);window.addEventListener("ionKeyboardDidShow",c)};if(!t)return[3,2];return[4,getScrollElement(t)];case 1:v=m.sent();S=v.scrollHeight-v.clientHeight;if(s&&l.scrollAmount>S-v.scrollTop){if(n.type==="password"){l.scrollAmount+=SCROLL_AMOUNT_PADDING;window.addEventListener("ionKeyboardDidShow",f)}else{window.addEventListener("ionKeyboardDidShow",c)}d=setTimeout(c,1e3);return[2]}m.label=2;case 2:c();m.label=3;case 3:return[2]}}))}))};var INPUT_BLURRING=true;var startInputShims=function(e,n){return __awaiter(void 0,void 0,void 0,(function(){var t,r,i,o,a,u,s,l,d,c,f,v,S,m,L,p,w;return __generator(this,(function(E){switch(E.label){case 0:t=document;r=n==="ios";i=n==="android";o=e.getNumber("keyboardHeight",290);a=e.getBoolean("scrollAssist",true);u=e.getBoolean("hideCaretOnScroll",r);s=e.getBoolean("inputBlurring",r);l=e.getBoolean("scrollPadding",true);d=Array.from(t.querySelectorAll("ion-input, ion-textarea"));c=new WeakMap;f=new WeakMap;return[4,Keyboard.getResizeMode()];case 1:v=E.sent();S=function(e){return __awaiter(void 0,void 0,void 0,(function(){var n,t,r,s,d,S,d;return __generator(this,(function(m){switch(m.label){case 0:return[4,new Promise((function(n){return componentOnReady(e,n)}))];case 1:m.sent();n=e.shadowRoot||e;t=n.querySelector("input")||n.querySelector("textarea");r=findClosestIonContent(e);s=!r?e.closest("ion-footer"):null;if(!t){return[2]}if(!!r&&u&&!c.has(e)){d=enableHideCaretOnScroll(e,t,r);c.set(e,d)}S=t.type==="date"||t.type==="datetime-local";if(!S&&(!!r||!!s)&&a&&!f.has(e)){d=enableScrollAssist(e,t,r,s,o,l,v,i);f.set(e,d)}return[2]}}))}))};m=function(e){if(u){var n=c.get(e);if(n){n()}c.delete(e)}if(a){var n=f.get(e);if(n){n()}f.delete(e)}};if(s&&INPUT_BLURRING){enableInputBlurring()}for(L=0,p=d;L<p.length;L++){w=p[L];S(w)}t.addEventListener("ionInputDidLoad",(function(e){S(e.detail)}));t.addEventListener("ionInputDidUnload",(function(e){m(e.detail)}));return[2]}}))}))};export{startInputShims};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import{__awaiter,__generator}from"tslib";
|
|
2
2
|
/*!
|
|
3
3
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/import{r as registerInstance,h,H as Host,f as getElement,d as createEvent,e as readTask,i as forceUpdate,w as writeTask}from"./index-adfb2000.js";import{b as getIonMode,c as config,a as isPlatform}from"./ionic-global-9080266a.js";import{c as componentOnReady,l as clamp,i as inheritAriaAttributes,s as shallowEqualStringMap,m as hasLazyBuild}from"./helpers-3379ba19.js";import{i as isRTL}from"./dir-912e3e13.js";import{c as createColorClasses,h as hostContext}from"./theme-17531cdf.js";import{a as findIonContent,p as printIonContentErrorMsg,g as getScrollElement}from"./index-746a238e.js";import{c as createKeyboardController}from"./keyboard-controller-0c2dce71.js";import{g as getTimeGivenProgression}from"./cubic-bezier-66542bc5.js";import{a as attachComponent,d as detachComponent}from"./framework-delegate-aa433dea.js";import{t as transition}from"./index-01839411.js";import"./index-595d62c9.js";import"./index-7a14ecec.js";import"./keyboard-b063f012.js";import"./capacitor-b4979570.js";var appCss="html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}";var App=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){var t=this;{rIC((function(){return __awaiter(t,void 0,void 0,(function(){var t,o,e;var n=this;return __generator(this,(function(r){switch(r.label){case 0:t=isPlatform(window,"hybrid");if(!config.getBoolean("_testing")){import("./index-f0cc4e14.js").then((function(t){return t.startTapClick(config)}))}if(config.getBoolean("statusTap",t)){import("./status-tap-121c711d.js").then((function(t){return t.startStatusTap()}))}if(config.getBoolean("inputShims",needInputShims())){o=isPlatform(window,"ios")?"ios":"android";import("./input-shims-451757bd.js").then((function(t){return t.startInputShims(config,o)}))}return[4,import("./hardware-back-button-39299f84.js")];case 1:e=r.sent();if(config.getBoolean("hardwareBackButton",t)){e.startHardwareBackButton()}else{e.blockHardwareBackButton()}if(typeof window!=="undefined"){import("./keyboard-b551279d.js").then((function(t){return t.startKeyboardAssist(window)}))}import("./focus-visible-85493433.js").then((function(t){return n.focusVisible=t.startFocusVisible()}));return[2]}}))}))}))}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){if(this.focusVisible){this.focusVisible.setFocus(t)}return[2]}))}))};t.prototype.render=function(){var t;var o=getIonMode(this);return h(Host,{class:(t={},t[o]=true,t["ion-page"]=true,t["force-statusbar-padding"]=config.getBoolean("_forceStatusbarPadding"),t)})};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();var needInputShims=function(){var t=isPlatform(window,"ios")&&isPlatform(window,"mobile");if(t){return true}var o=isPlatform(window,"android")&&isPlatform(window,"mobileweb");if(o){return true}return false};var rIC=function(t){if("requestIdleCallback"in window){window.requestIdleCallback(t)}else{setTimeout(t,32)}};App.style=appCss;var buttonsIosCss=".sc-ion-buttons-ios-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-ios-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-ios-s ion-button{--padding-top:3px;--padding-bottom:3px;--padding-start:5px;--padding-end:5px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.sc-ion-buttons-ios-s .button-has-icon-only{--padding-top:0;--padding-bottom:0}.sc-ion-buttons-ios-s ion-button:not(.button-round){--border-radius:4px}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button{--color:initial;--border-color:initial;--background-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-solid,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-solid{--background:var(--ion-color-contrast);--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12;--background-hover:var(--ion-color-base);--background-hover-opacity:0.45;--color:var(--ion-color-base);--color-focused:var(--ion-color-base)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-clear,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-clear{--color-activated:var(--ion-color-contrast);--color-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-outline,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-outline{--color-activated:var(--ion-color-base);--color-focused:var(--ion-color-contrast);--background-activated:var(--ion-color-contrast)}.sc-ion-buttons-ios-s .button-clear,.sc-ion-buttons-ios-s .button-outline{--background-activated:transparent;--background-focused:currentColor;--background-hover:transparent}.sc-ion-buttons-ios-s .button-solid:not(.ion-color){--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12}.sc-ion-buttons-ios-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:24px;line-height:0.67}.sc-ion-buttons-ios-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-start:0.4em;margin-inline-start:0.4em;font-size:24px;line-height:0.67}.sc-ion-buttons-ios-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:28px;line-height:0.67}";var buttonsMdCss=".sc-ion-buttons-md-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-md-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-md-s ion-button{--padding-top:3px;--padding-bottom:3px;--padding-start:8px;--padding-end:8px;--box-shadow:none;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.sc-ion-buttons-md-s .button-has-icon-only{--padding-top:0;--padding-bottom:0}.sc-ion-buttons-md-s ion-button:not(.button-round){--border-radius:2px}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button{--color:initial;--color-focused:var(--ion-color-contrast);--color-hover:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-contrast);--background-hover:var(--ion-color-contrast)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-solid,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-solid{--background:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-shade);--background-hover:var(--ion-color-base);--color:var(--ion-color-base);--color-focused:var(--ion-color-base);--color-hover:var(--ion-color-base)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-outline,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-outline{--border-color:var(--ion-color-contrast)}.sc-ion-buttons-md-s .button-has-icon-only.button-clear{--padding-top:12px;--padding-end:12px;--padding-bottom:12px;--padding-start:12px;--border-radius:50%;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:48px;height:48px}.sc-ion-buttons-md-s .button{--background-hover:currentColor}.sc-ion-buttons-md-s .button-solid{--color:var(--ion-toolbar-background, var(--ion-background-color, #fff));--background:var(--ion-toolbar-color, var(--ion-text-color, #424242));--background-activated:transparent;--background-focused:currentColor}.sc-ion-buttons-md-s .button-outline{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--border-color:currentColor}.sc-ion-buttons-md-s .button-clear{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor}.sc-ion-buttons-md-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:1.4em}.sc-ion-buttons-md-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-start:0.4em;margin-inline-start:0.4em;font-size:1.4em}.sc-ion-buttons-md-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:1.8em}";var Buttons=function(){function t(t){registerInstance(this,t);this.collapse=false}t.prototype.render=function(){var t;var o=getIonMode(this);return h(Host,{class:(t={},t[o]=true,t["buttons-collapse"]=this.collapse,t)})};return t}();Buttons.style={ios:buttonsIosCss,md:buttonsMdCss};var contentCss=':host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000);--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.outer-content){--background:var(--ion-color-step-50, #f2f2f2)}#background-content{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:100%;height:100%;-webkit-box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03)}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}';var Content=function(){function t(t){registerInstance(this,t);this.ionScrollStart=createEvent(this,"ionScrollStart",7);this.ionScroll=createEvent(this,"ionScroll",7);this.ionScrollEnd=createEvent(this,"ionScrollEnd",7);this.watchDog=null;this.isScrolling=false;this.lastScroll=0;this.queued=false;this.cTop=-1;this.cBottom=-1;this.isMainContent=true;this.resizeTimeout=null;this.detail={scrollTop:0,scrollLeft:0,type:"scroll",event:undefined,startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,data:undefined,isScrolling:true};this.color=undefined;this.fullscreen=false;this.forceOverscroll=undefined;this.scrollX=false;this.scrollY=true;this.scrollEvents=false}t.prototype.connectedCallback=function(){this.isMainContent=this.el.closest("ion-menu, ion-popover, ion-modal")===null};t.prototype.disconnectedCallback=function(){this.onScrollEnd()};t.prototype.onAppLoad=function(){this.resize()};t.prototype.onResize=function(){var t=this;if(this.resizeTimeout){clearTimeout(this.resizeTimeout);this.resizeTimeout=null}this.resizeTimeout=setTimeout((function(){if(t.el.offsetParent===null){return}t.resize()}),100)};t.prototype.shouldForceOverscroll=function(){var t=this.forceOverscroll;var o=getIonMode(this);return t===undefined?o==="ios"&&isPlatform("ios"):t};t.prototype.resize=function(){var t=this;{if(this.fullscreen){readTask((function(){return t.readDimensions()}))}else if(this.cTop!==0||this.cBottom!==0){this.cTop=this.cBottom=0;forceUpdate(this)}}};t.prototype.readDimensions=function(){var t=getPageElement(this.el);var o=Math.max(this.el.offsetTop,0);var e=Math.max(t.offsetHeight-o-this.el.offsetHeight,0);var n=o!==this.cTop||e!==this.cBottom;if(n){this.cTop=o;this.cBottom=e;forceUpdate(this)}};t.prototype.onScroll=function(t){var o=this;var e=Date.now();var n=!this.isScrolling;this.lastScroll=e;if(n){this.onScrollStart()}if(!this.queued&&this.scrollEvents){this.queued=true;readTask((function(e){o.queued=false;o.detail.event=t;updateScrollDetail(o.detail,o.scrollEl,e,n);o.ionScroll.emit(o.detail)}))}};t.prototype.getScrollElement=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(o){switch(o.label){case 0:if(!!this.scrollEl)return[3,2];return[4,new Promise((function(o){return componentOnReady(t.el,o)}))];case 1:o.sent();o.label=2;case 2:return[2,Promise.resolve(this.scrollEl)]}}))}))};t.prototype.getBackgroundElement=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(o){switch(o.label){case 0:if(!!this.backgroundContentEl)return[3,2];return[4,new Promise((function(o){return componentOnReady(t.el,o)}))];case 1:o.sent();o.label=2;case 2:return[2,Promise.resolve(this.backgroundContentEl)]}}))}))};t.prototype.scrollToTop=function(t){if(t===void 0){t=0}return this.scrollToPoint(undefined,0,t)};t.prototype.scrollToBottom=function(t){if(t===void 0){t=0}return __awaiter(this,void 0,void 0,(function(){var o,e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.getScrollElement()];case 1:o=n.sent();e=o.scrollHeight-o.clientHeight;return[2,this.scrollToPoint(undefined,e,t)]}}))}))};t.prototype.scrollByPoint=function(t,o,e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.getScrollElement()];case 1:n=r.sent();return[2,this.scrollToPoint(t+n.scrollLeft,o+n.scrollTop,e)]}}))}))};t.prototype.scrollToPoint=function(t,o,e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){var n,r,i,a,s,l,c,d,u;return __generator(this,(function(p){switch(p.label){case 0:return[4,this.getScrollElement()];case 1:n=p.sent();if(e<32){if(o!=null){n.scrollTop=o}if(t!=null){n.scrollLeft=t}return[2]}i=0;a=new Promise((function(t){return r=t}));s=n.scrollTop;l=n.scrollLeft;c=o!=null?o-s:0;d=t!=null?t-l:0;u=function(t){var o=Math.min(1,(t-i)/e)-1;var a=Math.pow(o,3)+1;if(c!==0){n.scrollTop=Math.floor(a*c+s)}if(d!==0){n.scrollLeft=Math.floor(a*d+l)}if(a<1){requestAnimationFrame(u)}else{r()}};requestAnimationFrame((function(t){i=t;u(t)}));return[2,a]}}))}))};t.prototype.onScrollStart=function(){var t=this;this.isScrolling=true;this.ionScrollStart.emit({isScrolling:true});if(this.watchDog){clearInterval(this.watchDog)}this.watchDog=setInterval((function(){if(t.lastScroll<Date.now()-120){t.onScrollEnd()}}),100)};t.prototype.onScrollEnd=function(){if(this.watchDog)clearInterval(this.watchDog);this.watchDog=null;if(this.isScrolling){this.isScrolling=false;this.ionScrollEnd.emit({isScrolling:false})}};t.prototype.render=function(){var t;var o=this;var e=this,n=e.isMainContent,r=e.scrollX,i=e.scrollY,a=e.el;var s=isRTL(a)?"rtl":"ltr";var l=getIonMode(this);var c=this.shouldForceOverscroll();var d=l==="ios";var u=n?"main":"div";this.resize();return h(Host,{class:createColorClasses(this.color,(t={},t[l]=true,t["content-sizing"]=hostContext("ion-popover",this.el),t.overscroll=c,t["content-".concat(s)]=true,t)),style:{"--offset-top":"".concat(this.cTop,"px"),"--offset-bottom":"".concat(this.cBottom,"px")}},h("div",{ref:function(t){return o.backgroundContentEl=t},id:"background-content",part:"background"}),h(u,{class:{"inner-scroll":true,"scroll-x":r,"scroll-y":i,overscroll:(r||i)&&c},ref:function(t){return o.scrollEl=t},onScroll:this.scrollEvents?function(t){return o.onScroll(t)}:undefined,part:"scroll"},h("slot",null)),d?h("div",{class:"transition-effect"},h("div",{class:"transition-cover"}),h("div",{class:"transition-shadow"})):null,h("slot",{name:"fixed"}))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();var getParentElement=function(t){var o;if(t.parentElement){return t.parentElement}if((o=t.parentNode)===null||o===void 0?void 0:o.host){return t.parentNode.host}return null};var getPageElement=function(t){var o=t.closest("ion-tabs");if(o){return o}var e=t.closest("ion-app, ion-page, .ion-page, page-inner, .popover-content");if(e){return e}return getParentElement(t)};var updateScrollDetail=function(t,o,e,n){var r=t.currentX;var i=t.currentY;var a=t.currentTime;var s=o.scrollLeft;var l=o.scrollTop;var c=e-a;if(n){t.startTime=e;t.startX=s;t.startY=l;t.velocityX=t.velocityY=0}t.currentTime=e;t.currentX=t.scrollLeft=s;t.currentY=t.scrollTop=l;t.deltaX=s-t.startX;t.deltaY=l-t.startY;if(c>0&&c<100){var d=(s-r)/c;var u=(l-i)/c;t.velocityX=d*.7+t.velocityX*.3;t.velocityY=u*.7+t.velocityY*.3}};Content.style=contentCss;var handleFooterFade=function(t,o){readTask((function(){var e=t.scrollTop;var n=t.scrollHeight-t.clientHeight;var r=10;var i=n-r;var a=e-i;var s=clamp(0,1-a/r,1);writeTask((function(){o.style.setProperty("--opacity-scale",s.toString())}))}))};var footerIosCss="ion-footer{display:block;position:relative;-ms-flex-order:1;order:1;width:100%;z-index:10}ion-footer.footer-toolbar-padding ion-toolbar:last-of-type{padding-bottom:var(--ion-safe-area-bottom, 0)}.footer-ios ion-toolbar:first-of-type{--border-width:0.55px 0 0}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.footer-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.footer-translucent-ios ion-toolbar{--opacity:.8}}.footer-ios.ion-no-border ion-toolbar:first-of-type{--border-width:0}.footer-collapse-fade ion-toolbar{--opacity-scale:inherit}";var footerMdCss="ion-footer{display:block;position:relative;-ms-flex-order:1;order:1;width:100%;z-index:10}ion-footer.footer-toolbar-padding ion-toolbar:last-of-type{padding-bottom:var(--ion-safe-area-bottom, 0)}.footer-md{-webkit-box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12)}.footer-md.ion-no-border{-webkit-box-shadow:none;box-shadow:none}";var Footer=function(){function t(t){var o=this;registerInstance(this,t);this.keyboardCtrl=null;this.checkCollapsibleFooter=function(){var t=getIonMode(o);if(t!=="ios"){return}var e=o.collapse;var n=e==="fade";o.destroyCollapsibleFooter();if(n){var r=o.el.closest("ion-app,ion-page,.ion-page,page-inner");var i=r?findIonContent(r):null;if(!i){printIonContentErrorMsg(o.el);return}o.setupFadeFooter(i)}};this.setupFadeFooter=function(t){return __awaiter(o,void 0,void 0,(function(){var o,e;var n=this;return __generator(this,(function(r){switch(r.label){case 0:e=this;return[4,getScrollElement(t)];case 1:o=e.scrollEl=r.sent();this.contentScrollCallback=function(){handleFooterFade(o,n.el)};o.addEventListener("scroll",this.contentScrollCallback);handleFooterFade(o,this.el);return[2]}}))}))};this.keyboardVisible=false;this.collapse=undefined;this.translucent=false}t.prototype.componentDidLoad=function(){this.checkCollapsibleFooter()};t.prototype.componentDidUpdate=function(){this.checkCollapsibleFooter()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t;var o=this;return __generator(this,(function(e){switch(e.label){case 0:t=this;return[4,createKeyboardController((function(t,e){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:if(!(t===false&&e!==undefined))return[3,2];return[4,e];case 1:o.sent();o.label=2;case 2:this.keyboardVisible=t;return[2]}}))}))}))];case 1:t.keyboardCtrl=e.sent();return[2]}}))}))};t.prototype.disconnectedCallback=function(){if(this.keyboardCtrl){this.keyboardCtrl.destroy()}};t.prototype.destroyCollapsibleFooter=function(){if(this.scrollEl&&this.contentScrollCallback){this.scrollEl.removeEventListener("scroll",this.contentScrollCallback);this.contentScrollCallback=undefined}};t.prototype.render=function(){var t;var o=this,e=o.translucent,n=o.collapse;var r=getIonMode(this);var i=this.el.closest("ion-tabs");var a=i===null||i===void 0?void 0:i.querySelector(":scope > ion-tab-bar");return h(Host,{role:"contentinfo",class:(t={},t[r]=true,t["footer-".concat(r)]=true,t["footer-translucent"]=e,t["footer-translucent-".concat(r)]=e,t["footer-toolbar-padding"]=!this.keyboardVisible&&(!a||a.slot!=="bottom"),t["footer-collapse-".concat(n)]=n!==undefined,t)},r==="ios"&&e&&h("div",{class:"footer-background"}),h("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Footer.style={ios:footerIosCss,md:footerMdCss};var TRANSITION="all 0.2s ease-in-out";var cloneElement=function(t){var o=document.querySelector("".concat(t,".ion-cloned-element"));if(o!==null){return o}var e=document.createElement(t);e.classList.add("ion-cloned-element");e.style.setProperty("display","none");document.body.appendChild(e);return e};var createHeaderIndex=function(t){if(!t){return}var o=t.querySelectorAll("ion-toolbar");return{el:t,toolbars:Array.from(o).map((function(t){var o=t.querySelector("ion-title");return{el:t,background:t.shadowRoot.querySelector(".toolbar-background"),ionTitleEl:o,innerTitleEl:o?o.shadowRoot.querySelector(".toolbar-title"):null,ionButtonsEl:Array.from(t.querySelectorAll("ion-buttons"))}}))}};var handleContentScroll=function(t,o,e){readTask((function(){var n=t.scrollTop;var r=clamp(1,1+-n/500,1.1);var i=e.querySelector("ion-refresher.refresher-native");if(i===null){writeTask((function(){scaleLargeTitles(o.toolbars,r)}))}}))};var setToolbarBackgroundOpacity=function(t,o){if(t.collapse==="fade"){return}if(o===undefined){t.style.removeProperty("--opacity-scale")}else{t.style.setProperty("--opacity-scale",o.toString())}};var handleToolbarBorderIntersection=function(t,o,e){if(!t[0].isIntersecting){return}var n=t[0].intersectionRatio>.9||e<=0?0:(1-t[0].intersectionRatio)*100/75;setToolbarBackgroundOpacity(o.el,n===1?undefined:n)};var handleToolbarIntersection=function(t,o,e,n){writeTask((function(){var r=n.scrollTop;handleToolbarBorderIntersection(t,o,r);var i=t[0];var a=i.intersectionRect;var s=a.width*a.height;var l=i.rootBounds.width*i.rootBounds.height;var c=s===0&&l===0;var d=Math.abs(a.left-i.boundingClientRect.left);var u=Math.abs(a.right-i.boundingClientRect.right);var p=s>0&&(d>=5||u>=5);if(c||p){return}if(i.isIntersecting){setHeaderActive(o,false);setHeaderActive(e)}else{var h=a.x===0&&a.y===0||a.width!==0&&a.height!==0;if(h&&r>0){setHeaderActive(o);setHeaderActive(e,false);setToolbarBackgroundOpacity(o.el)}}}))};var setHeaderActive=function(t,o){if(o===void 0){o=true}var e=t.el;if(o){e.classList.remove("header-collapse-condense-inactive");e.removeAttribute("aria-hidden")}else{e.classList.add("header-collapse-condense-inactive");e.setAttribute("aria-hidden","true")}};var scaleLargeTitles=function(t,o,e){if(t===void 0){t=[]}if(o===void 0){o=1}if(e===void 0){e=false}t.forEach((function(t){var n=t.ionTitleEl;var r=t.innerTitleEl;if(!n||n.size!=="large"){return}r.style.transition=e?TRANSITION:"";r.style.transform="scale3d(".concat(o,", ").concat(o,", 1)")}))};var handleHeaderFade=function(t,o,e){readTask((function(){var n=t.scrollTop;var r=o.clientHeight;var i=e?e.clientHeight:0;if(e!==null&&n<i){o.style.setProperty("--opacity-scale","0");t.style.setProperty("clip-path","inset(".concat(r,"px 0px 0px 0px)"));return}var a=n-i;var s=10;var l=clamp(0,a/s,1);writeTask((function(){t.style.removeProperty("clip-path");o.style.setProperty("--opacity-scale",l.toString())}))}))};var headerIosCss="ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-ios ion-toolbar:last-of-type{--border-width:0 0 0.55px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.header-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.header-translucent-ios ion-toolbar{--opacity:.8}.header-collapse-condense-inactive .header-background{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}}.header-ios.ion-no-border ion-toolbar:last-of-type{--border-width:0}.header-collapse-fade ion-toolbar{--opacity-scale:inherit}.header-collapse-condense{z-index:9}.header-collapse-condense ion-toolbar{position:-webkit-sticky;position:sticky;top:0}.header-collapse-condense ion-toolbar:first-of-type{padding-top:1px;z-index:1}.header-collapse-condense ion-toolbar{--background:var(--ion-background-color, #fff);z-index:0}.header-collapse-condense ion-toolbar:last-of-type{--border-width:0px}.header-collapse-condense ion-toolbar ion-searchbar{height:48px;padding-top:0px;padding-bottom:13px}.header-collapse-main{--opacity-scale:1}.header-collapse-main ion-toolbar{--opacity-scale:inherit}.header-collapse-main ion-toolbar.in-toolbar ion-title,.header-collapse-main ion-toolbar.in-toolbar ion-buttons{-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-buttons.buttons-collapse{opacity:0;pointer-events:none}.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-buttons.buttons-collapse{visibility:hidden}";var headerMdCss="ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-md{-webkit-box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12)}.header-collapse-condense{display:none}.header-md.ion-no-border{-webkit-box-shadow:none;box-shadow:none}";var Header=function(){function t(t){var o=this;registerInstance(this,t);this.inheritedAttributes={};this.setupFadeHeader=function(t,e){return __awaiter(o,void 0,void 0,(function(){var o,n;var r=this;return __generator(this,(function(i){switch(i.label){case 0:n=this;return[4,getScrollElement(t)];case 1:o=n.scrollEl=i.sent();this.contentScrollCallback=function(){handleHeaderFade(r.scrollEl,r.el,e)};o.addEventListener("scroll",this.contentScrollCallback);handleHeaderFade(this.scrollEl,this.el,e);return[2]}}))}))};this.collapse=undefined;this.translucent=false}t.prototype.componentWillLoad=function(){this.inheritedAttributes=inheritAriaAttributes(this.el)};t.prototype.componentDidLoad=function(){this.checkCollapsibleHeader()};t.prototype.componentDidUpdate=function(){this.checkCollapsibleHeader()};t.prototype.disconnectedCallback=function(){this.destroyCollapsibleHeader()};t.prototype.checkCollapsibleHeader=function(){return __awaiter(this,void 0,void 0,(function(){var t,o,e,n,r,i,r,i,a;return __generator(this,(function(s){switch(s.label){case 0:t=getIonMode(this);if(t!=="ios"){return[2]}o=this.collapse;e=o==="condense";n=o==="fade";this.destroyCollapsibleHeader();if(!e)return[3,2];r=this.el.closest("ion-app,ion-page,.ion-page,page-inner");i=r?findIonContent(r):null;writeTask((function(){var t=cloneElement("ion-title");t.size="large";cloneElement("ion-back-button")}));return[4,this.setupCondenseHeader(i,r)];case 1:s.sent();return[3,4];case 2:if(!n)return[3,4];r=this.el.closest("ion-app,ion-page,.ion-page,page-inner");i=r?findIonContent(r):null;if(!i){printIonContentErrorMsg(this.el);return[2]}a=i.querySelector('ion-header[collapse="condense"]');return[4,this.setupFadeHeader(i,a)];case 3:s.sent();s.label=4;case 4:return[2]}}))}))};t.prototype.destroyCollapsibleHeader=function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=undefined}if(this.scrollEl&&this.contentScrollCallback){this.scrollEl.removeEventListener("scroll",this.contentScrollCallback);this.contentScrollCallback=undefined}if(this.collapsibleMainHeader){this.collapsibleMainHeader.classList.remove("header-collapse-main");this.collapsibleMainHeader=undefined}};t.prototype.setupCondenseHeader=function(t,o){return __awaiter(this,void 0,void 0,(function(){var e,n,r,i,a;var s=this;return __generator(this,(function(l){switch(l.label){case 0:if(!t||!o){printIonContentErrorMsg(this.el);return[2]}if(typeof IntersectionObserver==="undefined"){return[2]}e=this;return[4,getScrollElement(t)];case 1:e.scrollEl=l.sent();n=o.querySelectorAll("ion-header");this.collapsibleMainHeader=Array.from(n).find((function(t){return t.collapse!=="condense"}));if(!this.collapsibleMainHeader){return[2]}r=createHeaderIndex(this.collapsibleMainHeader);i=createHeaderIndex(this.el);if(!r||!i){return[2]}setHeaderActive(r,false);setToolbarBackgroundOpacity(r.el,0);a=function(t){handleToolbarIntersection(t,r,i,s.scrollEl)};this.intersectionObserver=new IntersectionObserver(a,{root:t,threshold:[.25,.3,.4,.5,.6,.7,.8,.9,1]});this.intersectionObserver.observe(i.toolbars[i.toolbars.length-1].el);this.contentScrollCallback=function(){handleContentScroll(s.scrollEl,i,t)};this.scrollEl.addEventListener("scroll",this.contentScrollCallback);writeTask((function(){if(s.collapsibleMainHeader!==undefined){s.collapsibleMainHeader.classList.add("header-collapse-main")}}));return[2]}}))}))};t.prototype.render=function(){var t;var o=this,e=o.translucent,n=o.inheritedAttributes;var r=getIonMode(this);var i=this.collapse||"none";var a=hostContext("ion-menu",this.el)?"none":"banner";return h(Host,Object.assign({role:a,class:(t={},t[r]=true,t["header-".concat(r)]=true,t["header-translucent"]=this.translucent,t["header-collapse-".concat(i)]=true,t["header-translucent-".concat(r)]=this.translucent,t)},n),r==="ios"&&e&&h("div",{class:"header-background"}),h("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Header.style={ios:headerIosCss,md:headerMdCss};var routerOutletCss=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}";var RouterOutlet=function(){function t(t){registerInstance(this,t);this.ionNavWillLoad=createEvent(this,"ionNavWillLoad",7);this.ionNavWillChange=createEvent(this,"ionNavWillChange",3);this.ionNavDidChange=createEvent(this,"ionNavDidChange",3);this.gestureOrAnimationInProgress=false;this.mode=getIonMode(this);this.delegate=undefined;this.animated=true;this.animation=undefined;this.swipeHandler=undefined}t.prototype.swipeHandlerChanged=function(){if(this.gesture){this.gesture.enable(this.swipeHandler!==undefined)}};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t,o;var e=this;return __generator(this,(function(n){switch(n.label){case 0:t=function(){e.gestureOrAnimationInProgress=true;if(e.swipeHandler){e.swipeHandler.onStart()}};o=this;return[4,import("./swipe-back-6d4c0a4e.js")];case 1:o.gesture=n.sent().createSwipeBackGesture(this.el,(function(){return!e.gestureOrAnimationInProgress&&!!e.swipeHandler&&e.swipeHandler.canStart()}),(function(){return t()}),(function(t){var o;return(o=e.ani)===null||o===void 0?void 0:o.progressStep(t)}),(function(t,o,n){if(e.ani){e.ani.onFinish((function(){e.gestureOrAnimationInProgress=false;if(e.swipeHandler){e.swipeHandler.onEnd(t)}}),{oneTimeCallback:true});var r=t?-.001:.001;if(!t){e.ani.easing("cubic-bezier(1, 0, 0.68, 0.28)");r+=getTimeGivenProgression([0,0],[1,0],[.68,.28],[1,1],o)[0]}else{r+=getTimeGivenProgression([0,0],[.32,.72],[0,1],[1,1],o)[0]}e.ani.progressEnd(t?1:0,r,n)}else{e.gestureOrAnimationInProgress=false}}));this.swipeHandlerChanged();return[2]}}))}))};t.prototype.componentWillLoad=function(){this.ionNavWillLoad.emit()};t.prototype.disconnectedCallback=function(){if(this.gesture){this.gesture.destroy();this.gesture=undefined}};t.prototype.commit=function(t,o,e){return __awaiter(this,void 0,void 0,(function(){var n,r,i;return __generator(this,(function(a){switch(a.label){case 0:return[4,this.lock()];case 1:n=a.sent();r=false;a.label=2;case 2:a.trys.push([2,4,,5]);return[4,this.transition(t,o,e)];case 3:r=a.sent();return[3,5];case 4:i=a.sent();console.error(i);return[3,5];case 5:n();return[2,r]}}))}))};t.prototype.setRouteId=function(t,o,e,n){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(i){switch(i.label){case 0:return[4,this.setRoot(t,o,{duration:e==="root"?0:undefined,direction:e==="back"?"back":"forward",animationBuilder:n})];case 1:r=i.sent();return[2,{changed:r,element:this.activeEl}]}}))}))};t.prototype.getRouteId=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(o){t=this.activeEl;return[2,t?{id:t.tagName,element:t,params:this.activeParams}:undefined]}))}))};t.prototype.setRoot=function(t,o,e){return __awaiter(this,void 0,void 0,(function(){var n,r;return __generator(this,(function(i){switch(i.label){case 0:if(this.activeComponent===t&&shallowEqualStringMap(o,this.activeParams)){return[2,false]}n=this.activeEl;return[4,attachComponent(this.delegate,this.el,t,["ion-page","ion-page-invisible"],o)];case 1:r=i.sent();this.activeComponent=t;this.activeEl=r;this.activeParams=o;return[4,this.commit(r,n,e)];case 2:i.sent();return[4,detachComponent(this.delegate,n)];case 3:i.sent();return[2,true]}}))}))};t.prototype.transition=function(t,o,e){if(e===void 0){e={}}return __awaiter(this,void 0,void 0,(function(){var n,r,i,a,s;var l=this;return __generator(this,(function(c){switch(c.label){case 0:if(o===t){return[2,false]}this.ionNavWillChange.emit();n=this,r=n.el,i=n.mode;a=this.animated&&config.getBoolean("animated",true);s=e.animationBuilder||this.animation||config.get("navAnimation");return[4,transition(Object.assign(Object.assign({mode:i,animated:a,enteringEl:t,leavingEl:o,baseEl:r,deepWait:hasLazyBuild(r),progressCallback:e.progressAnimation?function(t){if(t!==undefined&&!l.gestureOrAnimationInProgress){l.gestureOrAnimationInProgress=true;t.onFinish((function(){l.gestureOrAnimationInProgress=false;if(l.swipeHandler){l.swipeHandler.onEnd(false)}}),{oneTimeCallback:true});t.progressEnd(0,0,0)}else{l.ani=t}}:undefined},e),{animationBuilder:s}))];case 1:c.sent();this.ionNavDidChange.emit();return[2,true]}}))}))};t.prototype.lock=function(){return __awaiter(this,void 0,void 0,(function(){var t,o;return __generator(this,(function(e){switch(e.label){case 0:t=this.waitPromise;this.waitPromise=new Promise((function(t){return o=t}));if(!(t!==undefined))return[3,2];return[4,t];case 1:e.sent();e.label=2;case 2:return[2,o]}}))}))};t.prototype.render=function(){return h("slot",null)};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{swipeHandler:["swipeHandlerChanged"]}},enumerable:false,configurable:true});return t}();RouterOutlet.style=routerOutletCss;var titleIosCss=":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{top:0;-webkit-padding-start:90px;padding-inline-start:90px;-webkit-padding-end:90px;padding-inline-end:90px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);position:absolute;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0);font-size:17px;font-weight:600;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host:dir(rtl){left:unset;right:unset;right:0}}}:host(.title-small){-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:6px;padding-bottom:16px;position:relative;font-size:13px;font-weight:normal}:host(.title-large){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:0;-webkit-transform-origin:left center;transform-origin:left center;bottom:0;-ms-flex-align:end;align-items:flex-end;min-width:100%;font-size:34px;font-weight:700;text-align:start}:host(.title-large.title-rtl){-webkit-transform-origin:right center;transform-origin:right center}:host(.title-large.ion-cloned-element){--color:var(--ion-text-color, #000)}:host(.title-large) .toolbar-title{-webkit-transform-origin:inherit;transform-origin:inherit}:host-context([dir=rtl]):host(.title-large) .toolbar-title,:host-context([dir=rtl]).title-large .toolbar-title{-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}@supports selector(:dir(rtl)){:host(.title-large) .toolbar-title:dir(rtl){-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}}";var titleMdCss=":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:0;padding-bottom:0;font-size:20px;font-weight:500;letter-spacing:0.0125em}:host(.title-small){width:100%;height:100%;font-size:15px;font-weight:normal}";var ToolbarTitle=function(){function t(t){registerInstance(this,t);this.ionStyle=createEvent(this,"ionStyle",7);this.color=undefined;this.size=undefined}t.prototype.sizeChanged=function(){this.emitStyle()};t.prototype.connectedCallback=function(){this.emitStyle()};t.prototype.emitStyle=function(){var t;var o=this.getSize();this.ionStyle.emit((t={},t["title-".concat(o)]=true,t))};t.prototype.getSize=function(){return this.size!==undefined?this.size:"default"};t.prototype.render=function(){var t;var o=getIonMode(this);var e=this.getSize();return h(Host,{class:createColorClasses(this.color,(t={},t[o]=true,t["title-".concat(e)]=true,t["title-rtl"]=document.dir==="rtl",t))},h("div",{class:"toolbar-title"},h("slot",null)))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{size:["sizeChanged"]}},enumerable:false,configurable:true});return t}();ToolbarTitle.style={ios:titleIosCss,md:titleMdCss};var toolbarIosCss=":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;width:100%;padding-right:var(--ion-safe-area-right);padding-left:var(--ion-safe-area-left);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-color-step-50, #f7f7f7));--color:var(--ion-toolbar-color, var(--ion-text-color, #000));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--padding-top:3px;--padding-bottom:3px;--padding-start:4px;--padding-end:4px;--min-height:44px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:4;order:4;min-width:0}:host(.toolbar-segment) .toolbar-content{display:-ms-inline-flexbox;display:inline-flex}:host(.toolbar-searchbar) .toolbar-container{padding-top:0;padding-bottom:0}:host(.toolbar-searchbar) ::slotted(*){-ms-flex-item-align:start;align-self:start}:host(.toolbar-searchbar) ::slotted(ion-chip){margin-top:3px}:host(.toolbar-searchbar) ::slotted(ion-back-button){height:38px}::slotted(ion-buttons){min-height:38px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:3;order:3}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}:host(.toolbar-title-large){padding-bottom:7px}:host(.toolbar-title-large) .toolbar-container{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start}:host(.toolbar-title-large) .toolbar-content ion-title{-ms-flex:1;flex:1;-ms-flex-order:8;order:8;min-width:100%}";var toolbarMdCss=":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;width:100%;padding-right:var(--ion-safe-area-right);padding-left:var(--ion-safe-area-left);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-background-color, #fff));--color:var(--ion-toolbar-color, var(--ion-text-color, #424242));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, #c1c4cd)));--padding-top:0;--padding-bottom:0;--padding-start:0;--padding-end:0;--min-height:56px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:3;order:3;min-width:0;max-width:100%}::slotted(.buttons-first-slot){-webkit-margin-start:4px;margin-inline-start:4px}::slotted(.buttons-last-slot){-webkit-margin-end:4px;margin-inline-end:4px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:4;order:4}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}";var Toolbar=function(){function t(t){registerInstance(this,t);this.childrenStyles=new Map;this.color=undefined}t.prototype.componentWillLoad=function(){var t=Array.from(this.el.querySelectorAll("ion-buttons"));var o=t.find((function(t){return t.slot==="start"}));if(o){o.classList.add("buttons-first-slot")}var e=t.reverse();var n=e.find((function(t){return t.slot==="end"}))||e.find((function(t){return t.slot==="primary"}))||e.find((function(t){return t.slot==="secondary"}));if(n){n.classList.add("buttons-last-slot")}};t.prototype.childrenStyle=function(t){t.stopPropagation();var o=t.target.tagName;var e=t.detail;var n={};var r=this.childrenStyles.get(o)||{};var i=false;Object.keys(e).forEach((function(t){var o="toolbar-".concat(t);var a=e[t];if(a!==r[o]){i=true}if(a){n[o]=true}}));if(i){this.childrenStyles.set(o,n);forceUpdate(this)}};t.prototype.render=function(){var t;var o=getIonMode(this);var e={};this.childrenStyles.forEach((function(t){Object.assign(e,t)}));return h(Host,{class:Object.assign(Object.assign({},e),createColorClasses(this.color,(t={},t[o]=true,t["in-toolbar"]=hostContext("ion-toolbar",this.el),t)))},h("div",{class:"toolbar-background"}),h("div",{class:"toolbar-container"},h("slot",{name:"start"}),h("slot",{name:"secondary"}),h("div",{class:"toolbar-content"},h("slot",null)),h("slot",{name:"primary"}),h("slot",{name:"end"})))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Toolbar.style={ios:toolbarIosCss,md:toolbarMdCss};export{App as ion_app,Buttons as ion_buttons,Content as ion_content,Footer as ion_footer,Header as ion_header,RouterOutlet as ion_router_outlet,ToolbarTitle as ion_title,Toolbar as ion_toolbar};
|
|
4
|
+
*/import{r as registerInstance,h,H as Host,f as getElement,d as createEvent,e as readTask,i as forceUpdate,w as writeTask}from"./index-adfb2000.js";import{b as getIonMode,c as config,a as isPlatform}from"./ionic-global-9080266a.js";import{c as componentOnReady,l as clamp,i as inheritAriaAttributes,s as shallowEqualStringMap,m as hasLazyBuild}from"./helpers-3379ba19.js";import{i as isRTL}from"./dir-912e3e13.js";import{c as createColorClasses,h as hostContext}from"./theme-17531cdf.js";import{a as findIonContent,p as printIonContentErrorMsg,g as getScrollElement}from"./index-746a238e.js";import{c as createKeyboardController}from"./keyboard-controller-0c2dce71.js";import{g as getTimeGivenProgression}from"./cubic-bezier-66542bc5.js";import{a as attachComponent,d as detachComponent}from"./framework-delegate-aa433dea.js";import{t as transition}from"./index-01839411.js";import"./index-595d62c9.js";import"./index-7a14ecec.js";import"./keyboard-b063f012.js";import"./capacitor-b4979570.js";var appCss="html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}";var App=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){var t=this;{rIC((function(){return __awaiter(t,void 0,void 0,(function(){var t,o,e;var n=this;return __generator(this,(function(r){switch(r.label){case 0:t=isPlatform(window,"hybrid");if(!config.getBoolean("_testing")){import("./index-f0cc4e14.js").then((function(t){return t.startTapClick(config)}))}if(config.getBoolean("statusTap",t)){import("./status-tap-121c711d.js").then((function(t){return t.startStatusTap()}))}if(config.getBoolean("inputShims",needInputShims())){o=isPlatform(window,"ios")?"ios":"android";import("./input-shims-62af6bcc.js").then((function(t){return t.startInputShims(config,o)}))}return[4,import("./hardware-back-button-39299f84.js")];case 1:e=r.sent();if(config.getBoolean("hardwareBackButton",t)){e.startHardwareBackButton()}else{e.blockHardwareBackButton()}if(typeof window!=="undefined"){import("./keyboard-b551279d.js").then((function(t){return t.startKeyboardAssist(window)}))}import("./focus-visible-85493433.js").then((function(t){return n.focusVisible=t.startFocusVisible()}));return[2]}}))}))}))}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){if(this.focusVisible){this.focusVisible.setFocus(t)}return[2]}))}))};t.prototype.render=function(){var t;var o=getIonMode(this);return h(Host,{class:(t={},t[o]=true,t["ion-page"]=true,t["force-statusbar-padding"]=config.getBoolean("_forceStatusbarPadding"),t)})};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();var needInputShims=function(){var t=isPlatform(window,"ios")&&isPlatform(window,"mobile");if(t){return true}var o=isPlatform(window,"android")&&isPlatform(window,"mobileweb");if(o){return true}return false};var rIC=function(t){if("requestIdleCallback"in window){window.requestIdleCallback(t)}else{setTimeout(t,32)}};App.style=appCss;var buttonsIosCss=".sc-ion-buttons-ios-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-ios-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-ios-s ion-button{--padding-top:3px;--padding-bottom:3px;--padding-start:5px;--padding-end:5px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.sc-ion-buttons-ios-s .button-has-icon-only{--padding-top:0;--padding-bottom:0}.sc-ion-buttons-ios-s ion-button:not(.button-round){--border-radius:4px}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button{--color:initial;--border-color:initial;--background-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-solid,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-solid{--background:var(--ion-color-contrast);--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12;--background-hover:var(--ion-color-base);--background-hover-opacity:0.45;--color:var(--ion-color-base);--color-focused:var(--ion-color-base)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-clear,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-clear{--color-activated:var(--ion-color-contrast);--color-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-outline,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-outline{--color-activated:var(--ion-color-base);--color-focused:var(--ion-color-contrast);--background-activated:var(--ion-color-contrast)}.sc-ion-buttons-ios-s .button-clear,.sc-ion-buttons-ios-s .button-outline{--background-activated:transparent;--background-focused:currentColor;--background-hover:transparent}.sc-ion-buttons-ios-s .button-solid:not(.ion-color){--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12}.sc-ion-buttons-ios-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:24px;line-height:0.67}.sc-ion-buttons-ios-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-start:0.4em;margin-inline-start:0.4em;font-size:24px;line-height:0.67}.sc-ion-buttons-ios-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:28px;line-height:0.67}";var buttonsMdCss=".sc-ion-buttons-md-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-md-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-md-s ion-button{--padding-top:3px;--padding-bottom:3px;--padding-start:8px;--padding-end:8px;--box-shadow:none;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.sc-ion-buttons-md-s .button-has-icon-only{--padding-top:0;--padding-bottom:0}.sc-ion-buttons-md-s ion-button:not(.button-round){--border-radius:2px}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button{--color:initial;--color-focused:var(--ion-color-contrast);--color-hover:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-contrast);--background-hover:var(--ion-color-contrast)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-solid,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-solid{--background:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-shade);--background-hover:var(--ion-color-base);--color:var(--ion-color-base);--color-focused:var(--ion-color-base);--color-hover:var(--ion-color-base)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-outline,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-outline{--border-color:var(--ion-color-contrast)}.sc-ion-buttons-md-s .button-has-icon-only.button-clear{--padding-top:12px;--padding-end:12px;--padding-bottom:12px;--padding-start:12px;--border-radius:50%;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:48px;height:48px}.sc-ion-buttons-md-s .button{--background-hover:currentColor}.sc-ion-buttons-md-s .button-solid{--color:var(--ion-toolbar-background, var(--ion-background-color, #fff));--background:var(--ion-toolbar-color, var(--ion-text-color, #424242));--background-activated:transparent;--background-focused:currentColor}.sc-ion-buttons-md-s .button-outline{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--border-color:currentColor}.sc-ion-buttons-md-s .button-clear{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor}.sc-ion-buttons-md-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:1.4em}.sc-ion-buttons-md-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-start:0.4em;margin-inline-start:0.4em;font-size:1.4em}.sc-ion-buttons-md-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:1.8em}";var Buttons=function(){function t(t){registerInstance(this,t);this.collapse=false}t.prototype.render=function(){var t;var o=getIonMode(this);return h(Host,{class:(t={},t[o]=true,t["buttons-collapse"]=this.collapse,t)})};return t}();Buttons.style={ios:buttonsIosCss,md:buttonsMdCss};var contentCss=':host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000);--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.outer-content){--background:var(--ion-color-step-50, #f2f2f2)}#background-content{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:100%;height:100%;-webkit-box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03)}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}';var Content=function(){function t(t){registerInstance(this,t);this.ionScrollStart=createEvent(this,"ionScrollStart",7);this.ionScroll=createEvent(this,"ionScroll",7);this.ionScrollEnd=createEvent(this,"ionScrollEnd",7);this.watchDog=null;this.isScrolling=false;this.lastScroll=0;this.queued=false;this.cTop=-1;this.cBottom=-1;this.isMainContent=true;this.resizeTimeout=null;this.detail={scrollTop:0,scrollLeft:0,type:"scroll",event:undefined,startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,data:undefined,isScrolling:true};this.color=undefined;this.fullscreen=false;this.forceOverscroll=undefined;this.scrollX=false;this.scrollY=true;this.scrollEvents=false}t.prototype.connectedCallback=function(){this.isMainContent=this.el.closest("ion-menu, ion-popover, ion-modal")===null};t.prototype.disconnectedCallback=function(){this.onScrollEnd()};t.prototype.onAppLoad=function(){this.resize()};t.prototype.onResize=function(){var t=this;if(this.resizeTimeout){clearTimeout(this.resizeTimeout);this.resizeTimeout=null}this.resizeTimeout=setTimeout((function(){if(t.el.offsetParent===null){return}t.resize()}),100)};t.prototype.shouldForceOverscroll=function(){var t=this.forceOverscroll;var o=getIonMode(this);return t===undefined?o==="ios"&&isPlatform("ios"):t};t.prototype.resize=function(){var t=this;{if(this.fullscreen){readTask((function(){return t.readDimensions()}))}else if(this.cTop!==0||this.cBottom!==0){this.cTop=this.cBottom=0;forceUpdate(this)}}};t.prototype.readDimensions=function(){var t=getPageElement(this.el);var o=Math.max(this.el.offsetTop,0);var e=Math.max(t.offsetHeight-o-this.el.offsetHeight,0);var n=o!==this.cTop||e!==this.cBottom;if(n){this.cTop=o;this.cBottom=e;forceUpdate(this)}};t.prototype.onScroll=function(t){var o=this;var e=Date.now();var n=!this.isScrolling;this.lastScroll=e;if(n){this.onScrollStart()}if(!this.queued&&this.scrollEvents){this.queued=true;readTask((function(e){o.queued=false;o.detail.event=t;updateScrollDetail(o.detail,o.scrollEl,e,n);o.ionScroll.emit(o.detail)}))}};t.prototype.getScrollElement=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(o){switch(o.label){case 0:if(!!this.scrollEl)return[3,2];return[4,new Promise((function(o){return componentOnReady(t.el,o)}))];case 1:o.sent();o.label=2;case 2:return[2,Promise.resolve(this.scrollEl)]}}))}))};t.prototype.getBackgroundElement=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(o){switch(o.label){case 0:if(!!this.backgroundContentEl)return[3,2];return[4,new Promise((function(o){return componentOnReady(t.el,o)}))];case 1:o.sent();o.label=2;case 2:return[2,Promise.resolve(this.backgroundContentEl)]}}))}))};t.prototype.scrollToTop=function(t){if(t===void 0){t=0}return this.scrollToPoint(undefined,0,t)};t.prototype.scrollToBottom=function(t){if(t===void 0){t=0}return __awaiter(this,void 0,void 0,(function(){var o,e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.getScrollElement()];case 1:o=n.sent();e=o.scrollHeight-o.clientHeight;return[2,this.scrollToPoint(undefined,e,t)]}}))}))};t.prototype.scrollByPoint=function(t,o,e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.getScrollElement()];case 1:n=r.sent();return[2,this.scrollToPoint(t+n.scrollLeft,o+n.scrollTop,e)]}}))}))};t.prototype.scrollToPoint=function(t,o,e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){var n,r,i,a,s,l,c,d,u;return __generator(this,(function(p){switch(p.label){case 0:return[4,this.getScrollElement()];case 1:n=p.sent();if(e<32){if(o!=null){n.scrollTop=o}if(t!=null){n.scrollLeft=t}return[2]}i=0;a=new Promise((function(t){return r=t}));s=n.scrollTop;l=n.scrollLeft;c=o!=null?o-s:0;d=t!=null?t-l:0;u=function(t){var o=Math.min(1,(t-i)/e)-1;var a=Math.pow(o,3)+1;if(c!==0){n.scrollTop=Math.floor(a*c+s)}if(d!==0){n.scrollLeft=Math.floor(a*d+l)}if(a<1){requestAnimationFrame(u)}else{r()}};requestAnimationFrame((function(t){i=t;u(t)}));return[2,a]}}))}))};t.prototype.onScrollStart=function(){var t=this;this.isScrolling=true;this.ionScrollStart.emit({isScrolling:true});if(this.watchDog){clearInterval(this.watchDog)}this.watchDog=setInterval((function(){if(t.lastScroll<Date.now()-120){t.onScrollEnd()}}),100)};t.prototype.onScrollEnd=function(){if(this.watchDog)clearInterval(this.watchDog);this.watchDog=null;if(this.isScrolling){this.isScrolling=false;this.ionScrollEnd.emit({isScrolling:false})}};t.prototype.render=function(){var t;var o=this;var e=this,n=e.isMainContent,r=e.scrollX,i=e.scrollY,a=e.el;var s=isRTL(a)?"rtl":"ltr";var l=getIonMode(this);var c=this.shouldForceOverscroll();var d=l==="ios";var u=n?"main":"div";this.resize();return h(Host,{class:createColorClasses(this.color,(t={},t[l]=true,t["content-sizing"]=hostContext("ion-popover",this.el),t.overscroll=c,t["content-".concat(s)]=true,t)),style:{"--offset-top":"".concat(this.cTop,"px"),"--offset-bottom":"".concat(this.cBottom,"px")}},h("div",{ref:function(t){return o.backgroundContentEl=t},id:"background-content",part:"background"}),h(u,{class:{"inner-scroll":true,"scroll-x":r,"scroll-y":i,overscroll:(r||i)&&c},ref:function(t){return o.scrollEl=t},onScroll:this.scrollEvents?function(t){return o.onScroll(t)}:undefined,part:"scroll"},h("slot",null)),d?h("div",{class:"transition-effect"},h("div",{class:"transition-cover"}),h("div",{class:"transition-shadow"})):null,h("slot",{name:"fixed"}))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();var getParentElement=function(t){var o;if(t.parentElement){return t.parentElement}if((o=t.parentNode)===null||o===void 0?void 0:o.host){return t.parentNode.host}return null};var getPageElement=function(t){var o=t.closest("ion-tabs");if(o){return o}var e=t.closest("ion-app, ion-page, .ion-page, page-inner, .popover-content");if(e){return e}return getParentElement(t)};var updateScrollDetail=function(t,o,e,n){var r=t.currentX;var i=t.currentY;var a=t.currentTime;var s=o.scrollLeft;var l=o.scrollTop;var c=e-a;if(n){t.startTime=e;t.startX=s;t.startY=l;t.velocityX=t.velocityY=0}t.currentTime=e;t.currentX=t.scrollLeft=s;t.currentY=t.scrollTop=l;t.deltaX=s-t.startX;t.deltaY=l-t.startY;if(c>0&&c<100){var d=(s-r)/c;var u=(l-i)/c;t.velocityX=d*.7+t.velocityX*.3;t.velocityY=u*.7+t.velocityY*.3}};Content.style=contentCss;var handleFooterFade=function(t,o){readTask((function(){var e=t.scrollTop;var n=t.scrollHeight-t.clientHeight;var r=10;var i=n-r;var a=e-i;var s=clamp(0,1-a/r,1);writeTask((function(){o.style.setProperty("--opacity-scale",s.toString())}))}))};var footerIosCss="ion-footer{display:block;position:relative;-ms-flex-order:1;order:1;width:100%;z-index:10}ion-footer.footer-toolbar-padding ion-toolbar:last-of-type{padding-bottom:var(--ion-safe-area-bottom, 0)}.footer-ios ion-toolbar:first-of-type{--border-width:0.55px 0 0}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.footer-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.footer-translucent-ios ion-toolbar{--opacity:.8}}.footer-ios.ion-no-border ion-toolbar:first-of-type{--border-width:0}.footer-collapse-fade ion-toolbar{--opacity-scale:inherit}";var footerMdCss="ion-footer{display:block;position:relative;-ms-flex-order:1;order:1;width:100%;z-index:10}ion-footer.footer-toolbar-padding ion-toolbar:last-of-type{padding-bottom:var(--ion-safe-area-bottom, 0)}.footer-md{-webkit-box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12)}.footer-md.ion-no-border{-webkit-box-shadow:none;box-shadow:none}";var Footer=function(){function t(t){var o=this;registerInstance(this,t);this.keyboardCtrl=null;this.checkCollapsibleFooter=function(){var t=getIonMode(o);if(t!=="ios"){return}var e=o.collapse;var n=e==="fade";o.destroyCollapsibleFooter();if(n){var r=o.el.closest("ion-app,ion-page,.ion-page,page-inner");var i=r?findIonContent(r):null;if(!i){printIonContentErrorMsg(o.el);return}o.setupFadeFooter(i)}};this.setupFadeFooter=function(t){return __awaiter(o,void 0,void 0,(function(){var o,e;var n=this;return __generator(this,(function(r){switch(r.label){case 0:e=this;return[4,getScrollElement(t)];case 1:o=e.scrollEl=r.sent();this.contentScrollCallback=function(){handleFooterFade(o,n.el)};o.addEventListener("scroll",this.contentScrollCallback);handleFooterFade(o,this.el);return[2]}}))}))};this.keyboardVisible=false;this.collapse=undefined;this.translucent=false}t.prototype.componentDidLoad=function(){this.checkCollapsibleFooter()};t.prototype.componentDidUpdate=function(){this.checkCollapsibleFooter()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t;var o=this;return __generator(this,(function(e){switch(e.label){case 0:t=this;return[4,createKeyboardController((function(t,e){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:if(!(t===false&&e!==undefined))return[3,2];return[4,e];case 1:o.sent();o.label=2;case 2:this.keyboardVisible=t;return[2]}}))}))}))];case 1:t.keyboardCtrl=e.sent();return[2]}}))}))};t.prototype.disconnectedCallback=function(){if(this.keyboardCtrl){this.keyboardCtrl.destroy()}};t.prototype.destroyCollapsibleFooter=function(){if(this.scrollEl&&this.contentScrollCallback){this.scrollEl.removeEventListener("scroll",this.contentScrollCallback);this.contentScrollCallback=undefined}};t.prototype.render=function(){var t;var o=this,e=o.translucent,n=o.collapse;var r=getIonMode(this);var i=this.el.closest("ion-tabs");var a=i===null||i===void 0?void 0:i.querySelector(":scope > ion-tab-bar");return h(Host,{role:"contentinfo",class:(t={},t[r]=true,t["footer-".concat(r)]=true,t["footer-translucent"]=e,t["footer-translucent-".concat(r)]=e,t["footer-toolbar-padding"]=!this.keyboardVisible&&(!a||a.slot!=="bottom"),t["footer-collapse-".concat(n)]=n!==undefined,t)},r==="ios"&&e&&h("div",{class:"footer-background"}),h("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Footer.style={ios:footerIosCss,md:footerMdCss};var TRANSITION="all 0.2s ease-in-out";var cloneElement=function(t){var o=document.querySelector("".concat(t,".ion-cloned-element"));if(o!==null){return o}var e=document.createElement(t);e.classList.add("ion-cloned-element");e.style.setProperty("display","none");document.body.appendChild(e);return e};var createHeaderIndex=function(t){if(!t){return}var o=t.querySelectorAll("ion-toolbar");return{el:t,toolbars:Array.from(o).map((function(t){var o=t.querySelector("ion-title");return{el:t,background:t.shadowRoot.querySelector(".toolbar-background"),ionTitleEl:o,innerTitleEl:o?o.shadowRoot.querySelector(".toolbar-title"):null,ionButtonsEl:Array.from(t.querySelectorAll("ion-buttons"))}}))}};var handleContentScroll=function(t,o,e){readTask((function(){var n=t.scrollTop;var r=clamp(1,1+-n/500,1.1);var i=e.querySelector("ion-refresher.refresher-native");if(i===null){writeTask((function(){scaleLargeTitles(o.toolbars,r)}))}}))};var setToolbarBackgroundOpacity=function(t,o){if(t.collapse==="fade"){return}if(o===undefined){t.style.removeProperty("--opacity-scale")}else{t.style.setProperty("--opacity-scale",o.toString())}};var handleToolbarBorderIntersection=function(t,o,e){if(!t[0].isIntersecting){return}var n=t[0].intersectionRatio>.9||e<=0?0:(1-t[0].intersectionRatio)*100/75;setToolbarBackgroundOpacity(o.el,n===1?undefined:n)};var handleToolbarIntersection=function(t,o,e,n){writeTask((function(){var r=n.scrollTop;handleToolbarBorderIntersection(t,o,r);var i=t[0];var a=i.intersectionRect;var s=a.width*a.height;var l=i.rootBounds.width*i.rootBounds.height;var c=s===0&&l===0;var d=Math.abs(a.left-i.boundingClientRect.left);var u=Math.abs(a.right-i.boundingClientRect.right);var p=s>0&&(d>=5||u>=5);if(c||p){return}if(i.isIntersecting){setHeaderActive(o,false);setHeaderActive(e)}else{var f=a.x===0&&a.y===0||a.width!==0&&a.height!==0;if(f&&r>0){setHeaderActive(o);setHeaderActive(e,false);setToolbarBackgroundOpacity(o.el)}}}))};var setHeaderActive=function(t,o){if(o===void 0){o=true}var e=t.el;if(o){e.classList.remove("header-collapse-condense-inactive");e.removeAttribute("aria-hidden")}else{e.classList.add("header-collapse-condense-inactive");e.setAttribute("aria-hidden","true")}};var scaleLargeTitles=function(t,o,e){if(t===void 0){t=[]}if(o===void 0){o=1}if(e===void 0){e=false}t.forEach((function(t){var n=t.ionTitleEl;var r=t.innerTitleEl;if(!n||n.size!=="large"){return}r.style.transition=e?TRANSITION:"";r.style.transform="scale3d(".concat(o,", ").concat(o,", 1)")}))};var handleHeaderFade=function(t,o,e){readTask((function(){var n=t.scrollTop;var r=o.clientHeight;var i=e?e.clientHeight:0;if(e!==null&&n<i){o.style.setProperty("--opacity-scale","0");t.style.setProperty("clip-path","inset(".concat(r,"px 0px 0px 0px)"));return}var a=n-i;var s=10;var l=clamp(0,a/s,1);writeTask((function(){t.style.removeProperty("clip-path");o.style.setProperty("--opacity-scale",l.toString())}))}))};var headerIosCss="ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-ios ion-toolbar:last-of-type{--border-width:0 0 0.55px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.header-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.header-translucent-ios ion-toolbar{--opacity:.8}.header-collapse-condense-inactive .header-background{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}}.header-ios.ion-no-border ion-toolbar:last-of-type{--border-width:0}.header-collapse-fade ion-toolbar{--opacity-scale:inherit}.header-collapse-condense{z-index:9}.header-collapse-condense ion-toolbar{position:-webkit-sticky;position:sticky;top:0}.header-collapse-condense ion-toolbar:first-of-type{padding-top:1px;z-index:1}.header-collapse-condense ion-toolbar{--background:var(--ion-background-color, #fff);z-index:0}.header-collapse-condense ion-toolbar:last-of-type{--border-width:0px}.header-collapse-condense ion-toolbar ion-searchbar{height:48px;padding-top:0px;padding-bottom:13px}.header-collapse-main{--opacity-scale:1}.header-collapse-main ion-toolbar{--opacity-scale:inherit}.header-collapse-main ion-toolbar.in-toolbar ion-title,.header-collapse-main ion-toolbar.in-toolbar ion-buttons{-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-buttons.buttons-collapse{opacity:0;pointer-events:none}.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-buttons.buttons-collapse{visibility:hidden}";var headerMdCss="ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-md{-webkit-box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12)}.header-collapse-condense{display:none}.header-md.ion-no-border{-webkit-box-shadow:none;box-shadow:none}";var Header=function(){function t(t){var o=this;registerInstance(this,t);this.inheritedAttributes={};this.setupFadeHeader=function(t,e){return __awaiter(o,void 0,void 0,(function(){var o,n;var r=this;return __generator(this,(function(i){switch(i.label){case 0:n=this;return[4,getScrollElement(t)];case 1:o=n.scrollEl=i.sent();this.contentScrollCallback=function(){handleHeaderFade(r.scrollEl,r.el,e)};o.addEventListener("scroll",this.contentScrollCallback);handleHeaderFade(this.scrollEl,this.el,e);return[2]}}))}))};this.collapse=undefined;this.translucent=false}t.prototype.componentWillLoad=function(){this.inheritedAttributes=inheritAriaAttributes(this.el)};t.prototype.componentDidLoad=function(){this.checkCollapsibleHeader()};t.prototype.componentDidUpdate=function(){this.checkCollapsibleHeader()};t.prototype.disconnectedCallback=function(){this.destroyCollapsibleHeader()};t.prototype.checkCollapsibleHeader=function(){return __awaiter(this,void 0,void 0,(function(){var t,o,e,n,r,i,r,i,a;return __generator(this,(function(s){switch(s.label){case 0:t=getIonMode(this);if(t!=="ios"){return[2]}o=this.collapse;e=o==="condense";n=o==="fade";this.destroyCollapsibleHeader();if(!e)return[3,2];r=this.el.closest("ion-app,ion-page,.ion-page,page-inner");i=r?findIonContent(r):null;writeTask((function(){var t=cloneElement("ion-title");t.size="large";cloneElement("ion-back-button")}));return[4,this.setupCondenseHeader(i,r)];case 1:s.sent();return[3,4];case 2:if(!n)return[3,4];r=this.el.closest("ion-app,ion-page,.ion-page,page-inner");i=r?findIonContent(r):null;if(!i){printIonContentErrorMsg(this.el);return[2]}a=i.querySelector('ion-header[collapse="condense"]');return[4,this.setupFadeHeader(i,a)];case 3:s.sent();s.label=4;case 4:return[2]}}))}))};t.prototype.destroyCollapsibleHeader=function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=undefined}if(this.scrollEl&&this.contentScrollCallback){this.scrollEl.removeEventListener("scroll",this.contentScrollCallback);this.contentScrollCallback=undefined}if(this.collapsibleMainHeader){this.collapsibleMainHeader.classList.remove("header-collapse-main");this.collapsibleMainHeader=undefined}};t.prototype.setupCondenseHeader=function(t,o){return __awaiter(this,void 0,void 0,(function(){var e,n,r,i,a;var s=this;return __generator(this,(function(l){switch(l.label){case 0:if(!t||!o){printIonContentErrorMsg(this.el);return[2]}if(typeof IntersectionObserver==="undefined"){return[2]}e=this;return[4,getScrollElement(t)];case 1:e.scrollEl=l.sent();n=o.querySelectorAll("ion-header");this.collapsibleMainHeader=Array.from(n).find((function(t){return t.collapse!=="condense"}));if(!this.collapsibleMainHeader){return[2]}r=createHeaderIndex(this.collapsibleMainHeader);i=createHeaderIndex(this.el);if(!r||!i){return[2]}setHeaderActive(r,false);setToolbarBackgroundOpacity(r.el,0);a=function(t){handleToolbarIntersection(t,r,i,s.scrollEl)};this.intersectionObserver=new IntersectionObserver(a,{root:t,threshold:[.25,.3,.4,.5,.6,.7,.8,.9,1]});this.intersectionObserver.observe(i.toolbars[i.toolbars.length-1].el);this.contentScrollCallback=function(){handleContentScroll(s.scrollEl,i,t)};this.scrollEl.addEventListener("scroll",this.contentScrollCallback);writeTask((function(){if(s.collapsibleMainHeader!==undefined){s.collapsibleMainHeader.classList.add("header-collapse-main")}}));return[2]}}))}))};t.prototype.render=function(){var t;var o=this,e=o.translucent,n=o.inheritedAttributes;var r=getIonMode(this);var i=this.collapse||"none";var a=hostContext("ion-menu",this.el)?"none":"banner";return h(Host,Object.assign({role:a,class:(t={},t[r]=true,t["header-".concat(r)]=true,t["header-translucent"]=this.translucent,t["header-collapse-".concat(i)]=true,t["header-translucent-".concat(r)]=this.translucent,t)},n),r==="ios"&&e&&h("div",{class:"header-background"}),h("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Header.style={ios:headerIosCss,md:headerMdCss};var routerOutletCss=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}";var RouterOutlet=function(){function t(t){registerInstance(this,t);this.ionNavWillLoad=createEvent(this,"ionNavWillLoad",7);this.ionNavWillChange=createEvent(this,"ionNavWillChange",3);this.ionNavDidChange=createEvent(this,"ionNavDidChange",3);this.gestureOrAnimationInProgress=false;this.mode=getIonMode(this);this.delegate=undefined;this.animated=true;this.animation=undefined;this.swipeHandler=undefined}t.prototype.swipeHandlerChanged=function(){if(this.gesture){this.gesture.enable(this.swipeHandler!==undefined)}};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t,o;var e=this;return __generator(this,(function(n){switch(n.label){case 0:t=function(){e.gestureOrAnimationInProgress=true;if(e.swipeHandler){e.swipeHandler.onStart()}};o=this;return[4,import("./swipe-back-6d4c0a4e.js")];case 1:o.gesture=n.sent().createSwipeBackGesture(this.el,(function(){return!e.gestureOrAnimationInProgress&&!!e.swipeHandler&&e.swipeHandler.canStart()}),(function(){return t()}),(function(t){var o;return(o=e.ani)===null||o===void 0?void 0:o.progressStep(t)}),(function(t,o,n){if(e.ani){e.ani.onFinish((function(){e.gestureOrAnimationInProgress=false;if(e.swipeHandler){e.swipeHandler.onEnd(t)}}),{oneTimeCallback:true});var r=t?-.001:.001;if(!t){e.ani.easing("cubic-bezier(1, 0, 0.68, 0.28)");r+=getTimeGivenProgression([0,0],[1,0],[.68,.28],[1,1],o)[0]}else{r+=getTimeGivenProgression([0,0],[.32,.72],[0,1],[1,1],o)[0]}e.ani.progressEnd(t?1:0,r,n)}else{e.gestureOrAnimationInProgress=false}}));this.swipeHandlerChanged();return[2]}}))}))};t.prototype.componentWillLoad=function(){this.ionNavWillLoad.emit()};t.prototype.disconnectedCallback=function(){if(this.gesture){this.gesture.destroy();this.gesture=undefined}};t.prototype.commit=function(t,o,e){return __awaiter(this,void 0,void 0,(function(){var n,r,i;return __generator(this,(function(a){switch(a.label){case 0:return[4,this.lock()];case 1:n=a.sent();r=false;a.label=2;case 2:a.trys.push([2,4,,5]);return[4,this.transition(t,o,e)];case 3:r=a.sent();return[3,5];case 4:i=a.sent();console.error(i);return[3,5];case 5:n();return[2,r]}}))}))};t.prototype.setRouteId=function(t,o,e,n){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(i){switch(i.label){case 0:return[4,this.setRoot(t,o,{duration:e==="root"?0:undefined,direction:e==="back"?"back":"forward",animationBuilder:n})];case 1:r=i.sent();return[2,{changed:r,element:this.activeEl}]}}))}))};t.prototype.getRouteId=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(o){t=this.activeEl;return[2,t?{id:t.tagName,element:t,params:this.activeParams}:undefined]}))}))};t.prototype.setRoot=function(t,o,e){return __awaiter(this,void 0,void 0,(function(){var n,r;return __generator(this,(function(i){switch(i.label){case 0:if(this.activeComponent===t&&shallowEqualStringMap(o,this.activeParams)){return[2,false]}n=this.activeEl;return[4,attachComponent(this.delegate,this.el,t,["ion-page","ion-page-invisible"],o)];case 1:r=i.sent();this.activeComponent=t;this.activeEl=r;this.activeParams=o;return[4,this.commit(r,n,e)];case 2:i.sent();return[4,detachComponent(this.delegate,n)];case 3:i.sent();return[2,true]}}))}))};t.prototype.transition=function(t,o,e){if(e===void 0){e={}}return __awaiter(this,void 0,void 0,(function(){var n,r,i,a,s;var l=this;return __generator(this,(function(c){switch(c.label){case 0:if(o===t){return[2,false]}this.ionNavWillChange.emit();n=this,r=n.el,i=n.mode;a=this.animated&&config.getBoolean("animated",true);s=e.animationBuilder||this.animation||config.get("navAnimation");return[4,transition(Object.assign(Object.assign({mode:i,animated:a,enteringEl:t,leavingEl:o,baseEl:r,deepWait:hasLazyBuild(r),progressCallback:e.progressAnimation?function(t){if(t!==undefined&&!l.gestureOrAnimationInProgress){l.gestureOrAnimationInProgress=true;t.onFinish((function(){l.gestureOrAnimationInProgress=false;if(l.swipeHandler){l.swipeHandler.onEnd(false)}}),{oneTimeCallback:true});t.progressEnd(0,0,0)}else{l.ani=t}}:undefined},e),{animationBuilder:s}))];case 1:c.sent();this.ionNavDidChange.emit();return[2,true]}}))}))};t.prototype.lock=function(){return __awaiter(this,void 0,void 0,(function(){var t,o;return __generator(this,(function(e){switch(e.label){case 0:t=this.waitPromise;this.waitPromise=new Promise((function(t){return o=t}));if(!(t!==undefined))return[3,2];return[4,t];case 1:e.sent();e.label=2;case 2:return[2,o]}}))}))};t.prototype.render=function(){return h("slot",null)};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{swipeHandler:["swipeHandlerChanged"]}},enumerable:false,configurable:true});return t}();RouterOutlet.style=routerOutletCss;var titleIosCss=":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{top:0;-webkit-padding-start:90px;padding-inline-start:90px;-webkit-padding-end:90px;padding-inline-end:90px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);position:absolute;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0);font-size:17px;font-weight:600;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host:dir(rtl){left:unset;right:unset;right:0}}}:host(.title-small){-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:6px;padding-bottom:16px;position:relative;font-size:13px;font-weight:normal}:host(.title-large){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:0;-webkit-transform-origin:left center;transform-origin:left center;bottom:0;-ms-flex-align:end;align-items:flex-end;min-width:100%;font-size:34px;font-weight:700;text-align:start}:host(.title-large.title-rtl){-webkit-transform-origin:right center;transform-origin:right center}:host(.title-large.ion-cloned-element){--color:var(--ion-text-color, #000)}:host(.title-large) .toolbar-title{-webkit-transform-origin:inherit;transform-origin:inherit}:host-context([dir=rtl]):host(.title-large) .toolbar-title,:host-context([dir=rtl]).title-large .toolbar-title{-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}@supports selector(:dir(rtl)){:host(.title-large) .toolbar-title:dir(rtl){-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}}";var titleMdCss=":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:0;padding-bottom:0;font-size:20px;font-weight:500;letter-spacing:0.0125em}:host(.title-small){width:100%;height:100%;font-size:15px;font-weight:normal}";var ToolbarTitle=function(){function t(t){registerInstance(this,t);this.ionStyle=createEvent(this,"ionStyle",7);this.color=undefined;this.size=undefined}t.prototype.sizeChanged=function(){this.emitStyle()};t.prototype.connectedCallback=function(){this.emitStyle()};t.prototype.emitStyle=function(){var t;var o=this.getSize();this.ionStyle.emit((t={},t["title-".concat(o)]=true,t))};t.prototype.getSize=function(){return this.size!==undefined?this.size:"default"};t.prototype.render=function(){var t;var o=getIonMode(this);var e=this.getSize();return h(Host,{class:createColorClasses(this.color,(t={},t[o]=true,t["title-".concat(e)]=true,t["title-rtl"]=document.dir==="rtl",t))},h("div",{class:"toolbar-title"},h("slot",null)))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{size:["sizeChanged"]}},enumerable:false,configurable:true});return t}();ToolbarTitle.style={ios:titleIosCss,md:titleMdCss};var toolbarIosCss=":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;width:100%;padding-right:var(--ion-safe-area-right);padding-left:var(--ion-safe-area-left);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-color-step-50, #f7f7f7));--color:var(--ion-toolbar-color, var(--ion-text-color, #000));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--padding-top:3px;--padding-bottom:3px;--padding-start:4px;--padding-end:4px;--min-height:44px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:4;order:4;min-width:0}:host(.toolbar-segment) .toolbar-content{display:-ms-inline-flexbox;display:inline-flex}:host(.toolbar-searchbar) .toolbar-container{padding-top:0;padding-bottom:0}:host(.toolbar-searchbar) ::slotted(*){-ms-flex-item-align:start;align-self:start}:host(.toolbar-searchbar) ::slotted(ion-chip){margin-top:3px}:host(.toolbar-searchbar) ::slotted(ion-back-button){height:38px}::slotted(ion-buttons){min-height:38px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:3;order:3}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}:host(.toolbar-title-large){padding-bottom:7px}:host(.toolbar-title-large) .toolbar-container{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start}:host(.toolbar-title-large) .toolbar-content ion-title{-ms-flex:1;flex:1;-ms-flex-order:8;order:8;min-width:100%}";var toolbarMdCss=":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;width:100%;padding-right:var(--ion-safe-area-right);padding-left:var(--ion-safe-area-left);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-background-color, #fff));--color:var(--ion-toolbar-color, var(--ion-text-color, #424242));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, #c1c4cd)));--padding-top:0;--padding-bottom:0;--padding-start:0;--padding-end:0;--min-height:56px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:3;order:3;min-width:0;max-width:100%}::slotted(.buttons-first-slot){-webkit-margin-start:4px;margin-inline-start:4px}::slotted(.buttons-last-slot){-webkit-margin-end:4px;margin-inline-end:4px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:4;order:4}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}";var Toolbar=function(){function t(t){registerInstance(this,t);this.childrenStyles=new Map;this.color=undefined}t.prototype.componentWillLoad=function(){var t=Array.from(this.el.querySelectorAll("ion-buttons"));var o=t.find((function(t){return t.slot==="start"}));if(o){o.classList.add("buttons-first-slot")}var e=t.reverse();var n=e.find((function(t){return t.slot==="end"}))||e.find((function(t){return t.slot==="primary"}))||e.find((function(t){return t.slot==="secondary"}));if(n){n.classList.add("buttons-last-slot")}};t.prototype.childrenStyle=function(t){t.stopPropagation();var o=t.target.tagName;var e=t.detail;var n={};var r=this.childrenStyles.get(o)||{};var i=false;Object.keys(e).forEach((function(t){var o="toolbar-".concat(t);var a=e[t];if(a!==r[o]){i=true}if(a){n[o]=true}}));if(i){this.childrenStyles.set(o,n);forceUpdate(this)}};t.prototype.render=function(){var t;var o=getIonMode(this);var e={};this.childrenStyles.forEach((function(t){Object.assign(e,t)}));return h(Host,{class:Object.assign(Object.assign({},e),createColorClasses(this.color,(t={},t[o]=true,t["in-toolbar"]=hostContext("ion-toolbar",this.el),t)))},h("div",{class:"toolbar-background"}),h("div",{class:"toolbar-container"},h("slot",{name:"start"}),h("slot",{name:"secondary"}),h("div",{class:"toolbar-content"},h("slot",null)),h("slot",{name:"primary"}),h("slot",{name:"end"})))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Toolbar.style={ios:toolbarIosCss,md:toolbarMdCss};export{App as ion_app,Buttons as ion_buttons,Content as ion_content,Footer as ion_footer,Header as ion_header,RouterOutlet as ion_router_outlet,ToolbarTitle as ion_title,Toolbar as ion_toolbar};
|