forms-reactive
Version:
Reactive Form Web Component
12 lines • 3.89 kB
JavaScript
import{g as t,a as n}from"./p-3e1171f6.js";
/*!
* (C) Ionic http://ionicframework.com - MIT License
*/
class o{constructor(){this.m=new Map}reset(t){this.m=new Map(Object.entries(t))}get(t,n){const o=this.m.get(t);return o!==undefined?o:n}getBoolean(t,n=false){const o=this.m.get(t);if(o===undefined){return n}if(typeof o==="string"){return o==="true"}return!!o}getNumber(t,n){const o=parseFloat(this.m.get(t));return isNaN(o)?n!==undefined?n:NaN:o}set(t,n){this.m.set(t,n)}}const e=new o;const s=t=>{try{const n=t.sessionStorage.getItem(a);return n!==null?JSON.parse(n):{}}catch(t){return{}}};const i=(t,n)=>{try{t.sessionStorage.setItem(a,JSON.stringify(n))}catch(t){return}};const r=t=>{const n={};t.location.search.slice(1).split("&").map((t=>t.split("="))).map((([t,n])=>{try{return[decodeURIComponent(t),decodeURIComponent(n)]}catch(t){return["",""]}})).filter((([t])=>c(t,d))).map((([t,n])=>[t.slice(d.length),n])).forEach((([t,o])=>{n[t]=o}));return n};const c=(t,n)=>t.substr(0,n.length)===n;const d="ionic:";const a="ionic-persist-config";
/*!
* (C) Ionic http://ionicframework.com - MIT License
*/const u=t=>f(t);const l=(t,n)=>{if(typeof t==="string"){n=t;t=undefined}return u(t).includes(n)};const f=(t=window)=>{if(typeof t==="undefined"){return[]}t.Ionic=t.Ionic||{};let n=t.Ionic.platforms;if(n==null){n=t.Ionic.platforms=p(t);n.forEach((n=>t.document.documentElement.classList.add(`plt-${n}`)))}return n};const p=t=>{const n=e.get("platform");return Object.keys(R).filter((o=>{const e=n===null||n===void 0?void 0:n[o];return typeof e==="function"?e(t):R[o](t)}))};const h=t=>j(t)&&!M(t);const m=t=>{if(x(t,/iPad/i)){return true}if(x(t,/Macintosh/i)&&j(t)){return true}return false};const v=t=>x(t,/iPhone/i);const b=t=>x(t,/iPhone|iPod/i)||m(t);const w=t=>x(t,/android|sink/i);const g=t=>w(t)&&!x(t,/mobile/i);const y=t=>{const n=t.innerWidth;const o=t.innerHeight;const e=Math.min(n,o);const s=Math.max(n,o);return e>390&&e<520&&s>620&&s<800};const O=t=>{const n=t.innerWidth;const o=t.innerHeight;const e=Math.min(n,o);const s=Math.max(n,o);return m(t)||g(t)||e>460&&e<820&&s>780&&s<1400};const j=t=>J(t,"(any-pointer:coarse)");const N=t=>!j(t);const M=t=>C(t)||I(t);const C=t=>!!(t["cordova"]||t["phonegap"]||t["PhoneGap"]);const I=t=>{const n=t["Capacitor"];return!!((n===null||n===void 0?void 0:n.isNative)||(n===null||n===void 0?void 0:n.isNativePlatform)&&!!n.isNativePlatform())};const P=t=>x(t,/electron/i);const k=t=>{var n;return!!(((n=t.matchMedia)===null||n===void 0?void 0:n.call(t,"(display-mode: standalone)").matches)||t.navigator.standalone)};const x=(t,n)=>n.test(t.navigator.userAgent);const J=(t,n)=>{var o;return(o=t.matchMedia)===null||o===void 0?void 0:o.call(t,n).matches};const R={ipad:m,iphone:v,ios:b,android:w,phablet:y,tablet:O,cordova:C,capacitor:I,electron:P,pwa:k,mobile:j,mobileweb:h,desktop:N,hybrid:M};
/*!
* (C) Ionic http://ionicframework.com - MIT License
*/let S;const U=n=>n&&t(n)||S;const B=(t={})=>{if(typeof window==="undefined"){return}const o=window.document;const c=window;const d=c.Ionic=c.Ionic||{};const a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s(c)),{persistConfig:false}),d.config),r(c)),t);e.reset(a);if(e.getBoolean("persistConfig")){i(c,a)}f(c);d.config=e;d.mode=S=e.get("mode",o.documentElement.getAttribute("mode")||(l(c,"ios")?"ios":"md"));e.set("mode",S);o.documentElement.setAttribute("mode",S);o.documentElement.classList.add(S);if(e.getBoolean("_testing")){e.set("animated",false)}const u=t=>{var n;return(n=t.tagName)===null||n===void 0?void 0:n.startsWith("ION-")};const p=t=>["ios","md"].includes(t);n((t=>{while(t){const n=t.mode||t.getAttribute("mode");if(n){if(p(n)){return n}else if(u(t)){console.warn('Invalid ionic mode: "'+n+'", expected: "ios" or "md"')}}t=t.parentElement}return S}))};export{l as a,e as c,U as g,B as i};
//# sourceMappingURL=p-9c83f640.js.map