1234 |
- /*!
- * (C) Ionic http://ionicframework.com - MIT License
- */
- class t{constructor(){this.m=new Map}reset(t){this.m=new Map(Object.entries(t))}get(t,e){const n=this.m.get(t);return void 0!==n?n:e}getBoolean(t,e=!1){const n=this.m.get(t);return void 0===n?e:"string"==typeof n?"true"===n:!!n}getNumber(t,e){const n=parseFloat(this.m.get(t));return isNaN(n)?void 0!==e?e:NaN:n}set(t,e){this.m.set(t,e)}}const e=new t,n=t=>{try{const e=t.sessionStorage.getItem(i);return null!==e?JSON.parse(e):{}}catch(t){return{}}},o=(t,e)=>{try{t.sessionStorage.setItem(i,JSON.stringify(e))}catch(t){return}},r=t=>{const e={};return t.location.search.slice(1).split("&").map((t=>t.split("="))).map((([t,e])=>{try{return[decodeURIComponent(t),decodeURIComponent(e)]}catch(t){return["",""]}})).filter((([t])=>s(t,c))).map((([t,e])=>[t.slice(c.length),e])).forEach((([t,n])=>{e[t]=n})),e},s=(t,e)=>t.substr(0,e.length)===e,c="ionic:",i="ionic-persist-config";var a;!function(t){t.OFF="OFF",t.ERROR="ERROR",t.WARN="WARN"}(a||(a={}));const u=(t,...n)=>{const o=e.get("logLevel",a.WARN);if([a.WARN].includes(o))return console.warn(`[Ionic Warning]: ${t}`,...n)},l=(t,...n)=>{const o=e.get("logLevel",a.ERROR);if([a.ERROR,a.WARN].includes(o))return console.error(`[Ionic Error]: ${t}`,...n)},d=(t,...e)=>console.error(`<${t.tagName.toLowerCase()}> must be used inside ${e.join(" or ")}.`);export{a as L,n as a,r as b,e as c,l as d,d as e,u as p,o as s}
|