1 |
- {"ast":null,"code":"import _asyncToGenerator from \"F:/workspace/202226701027/huinongbao-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\n/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';\nimport { b as getIonMode } from './ionic-global.js';\nconst fabCss = \":host{position:absolute;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;z-index:999}:host(.fab-horizontal-center){left:0px;right:0px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}:host(.fab-horizontal-start){left:calc(10px + var(--ion-safe-area-left, 0px));}:host-context([dir=rtl]):host(.fab-horizontal-start),:host-context([dir=rtl]).fab-horizontal-start{right:calc(10px + var(--ion-safe-area-right, 0px));left:unset}@supports selector(:dir(rtl)){:host(.fab-horizontal-start:dir(rtl)){right:calc(10px + var(--ion-safe-area-right, 0px));left:unset}}:host(.fab-horizontal-end){right:calc(10px + var(--ion-safe-area-right, 0px));}:host-context([dir=rtl]):host(.fab-horizontal-end),:host-context([dir=rtl]).fab-horizontal-end{left:calc(10px + var(--ion-safe-area-left, 0px));right:unset}@supports selector(:dir(rtl)){:host(.fab-horizontal-end:dir(rtl)){left:calc(10px + var(--ion-safe-area-left, 0px));right:unset}}:host(.fab-vertical-top){top:10px}:host(.fab-vertical-top.fab-edge){top:0}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-button){margin-top:-50%}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-button.fab-button-small){margin-top:calc((-100% + 16px) / 2)}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-start),:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-end){margin-top:-50%}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-top),:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-bottom){margin-top:calc(50% + 10px)}:host(.fab-vertical-bottom){bottom:10px}:host(.fab-vertical-bottom.fab-edge){bottom:0}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-button){margin-bottom:-50%}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-button.fab-button-small){margin-bottom:calc((-100% + 16px) / 2)}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-start),:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-end){margin-bottom:-50%}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-top),:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-bottom){margin-bottom:calc(50% + 10px)}:host(.fab-vertical-center){top:0px;bottom:0px;margin-top:auto;margin-bottom:auto}\";\nconst IonFabStyle0 = fabCss;\nconst Fab = /*@__PURE__*/proxyCustomElement(class Fab extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.__attachShadow();\n this.horizontal = undefined;\n this.vertical = undefined;\n this.edge = false;\n this.activated = false;\n }\n activatedChanged() {\n const activated = this.activated;\n const fab = this.getFab();\n if (fab) {\n fab.activated = activated;\n }\n Array.from(this.el.querySelectorAll('ion-fab-list')).forEach(list => {\n list.activated = activated;\n });\n }\n componentDidLoad() {\n if (this.activated) {\n this.activatedChanged();\n }\n }\n /**\n * Close an active FAB list container.\n */\n close() {\n var _this = this;\n return _asyncToGenerator(function* () {\n _this.activated = false;\n })();\n }\n getFab() {\n return this.el.querySelector('ion-fab-button');\n }\n /**\n * Opens/Closes the FAB list container.\n * @internal\n */\n toggle() {\n var _this2 = this;\n return _asyncToGenerator(function* () {\n const hasList = !!_this2.el.querySelector('ion-fab-list');\n if (hasList) {\n _this2.activated = !_this2.activated;\n }\n })();\n }\n render() {\n const {\n horizontal,\n vertical,\n edge\n } = this;\n const mode = getIonMode(this);\n return h(Host, {\n key: '8a310806d0e748d7ebb0ed3d9a2652038e0f2960',\n class: {\n [mode]: true,\n [`fab-horizontal-${horizontal}`]: horizontal !== undefined,\n [`fab-vertical-${vertical}`]: vertical !== undefined,\n 'fab-edge': edge\n }\n }, h(\"slot\", {\n key: '9394ef6d6e5b0410fa6ba212171f687fb178ce2d'\n }));\n }\n get el() {\n return this;\n }\n static get watchers() {\n return {\n \"activated\": [\"activatedChanged\"]\n };\n }\n static get style() {\n return IonFabStyle0;\n }\n}, [1, \"ion-fab\", {\n \"horizontal\": [1],\n \"vertical\": [1],\n \"edge\": [4],\n \"activated\": [1028],\n \"close\": [64],\n \"toggle\": [64]\n}, undefined, {\n \"activated\": [\"activatedChanged\"]\n}]);\nfunction defineCustomElement$1() {\n if (typeof customElements === \"undefined\") {\n return;\n }\n const components = [\"ion-fab\"];\n components.forEach(tagName => {\n switch (tagName) {\n case \"ion-fab\":\n if (!customElements.get(tagName)) {\n customElements.define(tagName, Fab);\n }\n break;\n }\n });\n}\nconst IonFab = Fab;\nconst defineCustomElement = defineCustomElement$1;\nexport { IonFab, defineCustomElement };","map":{"version":3,"names":["proxyCustomElement","HTMLElement","h","Host","b","getIonMode","fabCss","IonFabStyle0","Fab","constructor","__registerHost","__attachShadow","horizontal","undefined","vertical","edge","activated","activatedChanged","fab","getFab","Array","from","el","querySelectorAll","forEach","list","componentDidLoad","close","_this","_asyncToGenerator","querySelector","toggle","_this2","hasList","render","mode","key","class","watchers","style","defineCustomElement$1","customElements","components","tagName","get","define","IonFab","defineCustomElement"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@ionic/core/components/ion-fab.js"],"sourcesContent":["/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';\nimport { b as getIonMode } from './ionic-global.js';\n\nconst fabCss = \":host{position:absolute;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;z-index:999}:host(.fab-horizontal-center){left:0px;right:0px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}:host(.fab-horizontal-start){left:calc(10px + var(--ion-safe-area-left, 0px));}:host-context([dir=rtl]):host(.fab-horizontal-start),:host-context([dir=rtl]).fab-horizontal-start{right:calc(10px + var(--ion-safe-area-right, 0px));left:unset}@supports selector(:dir(rtl)){:host(.fab-horizontal-start:dir(rtl)){right:calc(10px + var(--ion-safe-area-right, 0px));left:unset}}:host(.fab-horizontal-end){right:calc(10px + var(--ion-safe-area-right, 0px));}:host-context([dir=rtl]):host(.fab-horizontal-end),:host-context([dir=rtl]).fab-horizontal-end{left:calc(10px + var(--ion-safe-area-left, 0px));right:unset}@supports selector(:dir(rtl)){:host(.fab-horizontal-end:dir(rtl)){left:calc(10px + var(--ion-safe-area-left, 0px));right:unset}}:host(.fab-vertical-top){top:10px}:host(.fab-vertical-top.fab-edge){top:0}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-button){margin-top:-50%}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-button.fab-button-small){margin-top:calc((-100% + 16px) / 2)}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-start),:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-end){margin-top:-50%}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-top),:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-bottom){margin-top:calc(50% + 10px)}:host(.fab-vertical-bottom){bottom:10px}:host(.fab-vertical-bottom.fab-edge){bottom:0}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-button){margin-bottom:-50%}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-button.fab-button-small){margin-bottom:calc((-100% + 16px) / 2)}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-start),:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-end){margin-bottom:-50%}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-top),:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-bottom){margin-bottom:calc(50% + 10px)}:host(.fab-vertical-center){top:0px;bottom:0px;margin-top:auto;margin-bottom:auto}\";\nconst IonFabStyle0 = fabCss;\n\nconst Fab = /*@__PURE__*/ proxyCustomElement(class Fab extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.__attachShadow();\n this.horizontal = undefined;\n this.vertical = undefined;\n this.edge = false;\n this.activated = false;\n }\n activatedChanged() {\n const activated = this.activated;\n const fab = this.getFab();\n if (fab) {\n fab.activated = activated;\n }\n Array.from(this.el.querySelectorAll('ion-fab-list')).forEach((list) => {\n list.activated = activated;\n });\n }\n componentDidLoad() {\n if (this.activated) {\n this.activatedChanged();\n }\n }\n /**\n * Close an active FAB list container.\n */\n async close() {\n this.activated = false;\n }\n getFab() {\n return this.el.querySelector('ion-fab-button');\n }\n /**\n * Opens/Closes the FAB list container.\n * @internal\n */\n async toggle() {\n const hasList = !!this.el.querySelector('ion-fab-list');\n if (hasList) {\n this.activated = !this.activated;\n }\n }\n render() {\n const { horizontal, vertical, edge } = this;\n const mode = getIonMode(this);\n return (h(Host, { key: '8a310806d0e748d7ebb0ed3d9a2652038e0f2960', class: {\n [mode]: true,\n [`fab-horizontal-${horizontal}`]: horizontal !== undefined,\n [`fab-vertical-${vertical}`]: vertical !== undefined,\n 'fab-edge': edge,\n } }, h(\"slot\", { key: '9394ef6d6e5b0410fa6ba212171f687fb178ce2d' })));\n }\n get el() { return this; }\n static get watchers() { return {\n \"activated\": [\"activatedChanged\"]\n }; }\n static get style() { return IonFabStyle0; }\n}, [1, \"ion-fab\", {\n \"horizontal\": [1],\n \"vertical\": [1],\n \"edge\": [4],\n \"activated\": [1028],\n \"close\": [64],\n \"toggle\": [64]\n }, undefined, {\n \"activated\": [\"activatedChanged\"]\n }]);\nfunction defineCustomElement$1() {\n if (typeof customElements === \"undefined\") {\n return;\n }\n const components = [\"ion-fab\"];\n components.forEach(tagName => { switch (tagName) {\n case \"ion-fab\":\n if (!customElements.get(tagName)) {\n customElements.define(tagName, Fab);\n }\n break;\n } });\n}\n\nconst IonFab = Fab;\nconst defineCustomElement = defineCustomElement$1;\n\nexport { IonFab, defineCustomElement };\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,kBAAkB,EAAEC,WAAW,EAAEC,CAAC,EAAEC,IAAI,QAAQ,+BAA+B;AACxF,SAASC,CAAC,IAAIC,UAAU,QAAQ,mBAAmB;AAEnD,MAAMC,MAAM,GAAG,42EAA42E;AAC33E,MAAMC,YAAY,GAAGD,MAAM;AAE3B,MAAME,GAAG,GAAG,aAAcR,kBAAkB,CAAC,MAAMQ,GAAG,SAASP,WAAW,CAAC;EACvEQ,WAAWA,CAAA,EAAG;IACV,KAAK,CAAC,CAAC;IACP,IAAI,CAACC,cAAc,CAAC,CAAC;IACrB,IAAI,CAACC,cAAc,CAAC,CAAC;IACrB,IAAI,CAACC,UAAU,GAAGC,SAAS;IAC3B,IAAI,CAACC,QAAQ,GAAGD,SAAS;IACzB,IAAI,CAACE,IAAI,GAAG,KAAK;IACjB,IAAI,CAACC,SAAS,GAAG,KAAK;EAC1B;EACAC,gBAAgBA,CAAA,EAAG;IACf,MAAMD,SAAS,GAAG,IAAI,CAACA,SAAS;IAChC,MAAME,GAAG,GAAG,IAAI,CAACC,MAAM,CAAC,CAAC;IACzB,IAAID,GAAG,EAAE;MACLA,GAAG,CAACF,SAAS,GAAGA,SAAS;IAC7B;IACAI,KAAK,CAACC,IAAI,CAAC,IAAI,CAACC,EAAE,CAACC,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAACC,OAAO,CAAEC,IAAI,IAAK;MACnEA,IAAI,CAACT,SAAS,GAAGA,SAAS;IAC9B,CAAC,CAAC;EACN;EACAU,gBAAgBA,CAAA,EAAG;IACf,IAAI,IAAI,CAACV,SAAS,EAAE;MAChB,IAAI,CAACC,gBAAg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