9ba3b96ebf9df112a94213e6804a1a5ab0b222e29ab58859d8809f2af9c244a8.json 7.1 KB

1
  1. {"ast":null,"code":"/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';\nconst navLink = (el, routerDirection, component, componentProps, routerAnimation) => {\n const nav = el.closest('ion-nav');\n if (nav) {\n if (routerDirection === 'forward') {\n if (component !== undefined) {\n return nav.push(component, componentProps, {\n skipIfBusy: true,\n animationBuilder: routerAnimation\n });\n }\n } else if (routerDirection === 'root') {\n if (component !== undefined) {\n return nav.setRoot(component, componentProps, {\n skipIfBusy: true,\n animationBuilder: routerAnimation\n });\n }\n } else if (routerDirection === 'back') {\n return nav.pop({\n skipIfBusy: true,\n animationBuilder: routerAnimation\n });\n }\n }\n return Promise.resolve(false);\n};\nconst NavLink = /*@__PURE__*/proxyCustomElement(class NavLink extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.onClick = () => {\n return navLink(this.el, this.routerDirection, this.component, this.componentProps, this.routerAnimation);\n };\n this.component = undefined;\n this.componentProps = undefined;\n this.routerDirection = 'forward';\n this.routerAnimation = undefined;\n }\n render() {\n return h(Host, {\n key: 'd2f8545b4fbd5aa25ef36eb01dffbc5d35ccfbb9',\n onClick: this.onClick\n });\n }\n get el() {\n return this;\n }\n}, [0, \"ion-nav-link\", {\n \"component\": [1],\n \"componentProps\": [16],\n \"routerDirection\": [1, \"router-direction\"],\n \"routerAnimation\": [16]\n}]);\nfunction defineCustomElement$1() {\n if (typeof customElements === \"undefined\") {\n return;\n }\n const components = [\"ion-nav-link\"];\n components.forEach(tagName => {\n switch (tagName) {\n case \"ion-nav-link\":\n if (!customElements.get(tagName)) {\n customElements.define(tagName, NavLink);\n }\n break;\n }\n });\n}\nconst IonNavLink = NavLink;\nconst defineCustomElement = defineCustomElement$1;\nexport { IonNavLink, defineCustomElement };","map":{"version":3,"names":["proxyCustomElement","HTMLElement","h","Host","navLink","el","routerDirection","component","componentProps","routerAnimation","nav","closest","undefined","push","skipIfBusy","animationBuilder","setRoot","pop","Promise","resolve","NavLink","constructor","__registerHost","onClick","render","key","defineCustomElement$1","customElements","components","forEach","tagName","get","define","IonNavLink","defineCustomElement"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@ionic/core/components/ion-nav-link.js"],"sourcesContent":["/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';\n\nconst navLink = (el, routerDirection, component, componentProps, routerAnimation) => {\n const nav = el.closest('ion-nav');\n if (nav) {\n if (routerDirection === 'forward') {\n if (component !== undefined) {\n return nav.push(component, componentProps, { skipIfBusy: true, animationBuilder: routerAnimation });\n }\n }\n else if (routerDirection === 'root') {\n if (component !== undefined) {\n return nav.setRoot(component, componentProps, { skipIfBusy: true, animationBuilder: routerAnimation });\n }\n }\n else if (routerDirection === 'back') {\n return nav.pop({ skipIfBusy: true, animationBuilder: routerAnimation });\n }\n }\n return Promise.resolve(false);\n};\n\nconst NavLink = /*@__PURE__*/ proxyCustomElement(class NavLink extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.onClick = () => {\n return navLink(this.el, this.routerDirection, this.component, this.componentProps, this.routerAnimation);\n };\n this.component = undefined;\n this.componentProps = undefined;\n this.routerDirection = 'forward';\n this.routerAnimation = undefined;\n }\n render() {\n return h(Host, { key: 'd2f8545b4fbd5aa25ef36eb01dffbc5d35ccfbb9', onClick: this.onClick });\n }\n get el() { return this; }\n}, [0, \"ion-nav-link\", {\n \"component\": [1],\n \"componentProps\": [16],\n \"routerDirection\": [1, \"router-direction\"],\n \"routerAnimation\": [16]\n }]);\nfunction defineCustomElement$1() {\n if (typeof customElements === \"undefined\") {\n return;\n }\n const components = [\"ion-nav-link\"];\n components.forEach(tagName => { switch (tagName) {\n case \"ion-nav-link\":\n if (!customElements.get(tagName)) {\n customElements.define(tagName, NavLink);\n }\n break;\n } });\n}\n\nconst IonNavLink = NavLink;\nconst defineCustomElement = defineCustomElement$1;\n\nexport { IonNavLink, defineCustomElement };\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,kBAAkB,EAAEC,WAAW,EAAEC,CAAC,EAAEC,IAAI,QAAQ,+BAA+B;AAExF,MAAMC,OAAO,GAAGA,CAACC,EAAE,EAAEC,eAAe,EAAEC,SAAS,EAAEC,cAAc,EAAEC,eAAe,KAAK;EACjF,MAAMC,GAAG,GAAGL,EAAE,CAACM,OAAO,CAAC,SAAS,CAAC;EACjC,IAAID,GAAG,EAAE;IACL,IAAIJ,eAAe,KAAK,SAAS,EAAE;MAC/B,IAAIC,SAAS,KAAKK,SAAS,EAAE;QACzB,OAAOF,GAAG,CAACG,IAAI,CAACN,SAAS,EAAEC,cAAc,EAAE;UAAEM,UAAU,EAAE,IAAI;UAAEC,gBAAgB,EAAEN;QAAgB,CAAC,CAAC;MACvG;IACJ,CAAC,MACI,IAAIH,eAAe,KAAK,MAAM,EAAE;MACjC,IAAIC,SAAS,KAAKK,SAAS,EAAE;QACzB,OAAOF,GAAG,CAACM,OAAO,CAACT,SAAS,EAAEC,cAAc,EAAE;UAAEM,UAAU,EAAE,IAAI;UAAEC,gBAAgB,EAAEN;QAAgB,CAAC,CAAC;MAC1G;IACJ,CAAC,MACI,IAAIH,eAAe,KAAK,MAAM,EAAE;MACjC,OAAOI,GAAG,CAACO,GAAG,CAAC;QAAEH,UAAU,EAAE,IAAI;QAAEC,gBAAgB,EAAEN;MAAgB,CAAC,CAAC;IAC3E;EACJ;EACA,OAAOS,OAAO,CAACC,OAAO,CAAC,KAAK,CAAC;AACjC,CAAC;AAED,MAAMC,OAAO,GAAG,aAAcpB,kBAAkB,CAAC,MAAMoB,OAAO,SAASnB,WAAW,CAAC;EAC/EoB,WAAWA,CAAA,EAAG;IACV,KAAK,CAAC,CAAC;IACP,IAAI,CAACC,cAAc,CAAC,CAAC;IACrB,IAAI,CAACC,OAAO,GAAG,MAAM;MACjB,OAAOnB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