crmbonus-component-wake 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/app-modal_2.cjs.entry.js +127 -0
- package/dist/cjs/app-modal_2.cjs.entry.js.map +1 -0
- package/dist/cjs/crm-bonus.cjs.entry.js +46 -0
- package/dist/cjs/crm-bonus.cjs.entry.js.map +1 -0
- package/dist/cjs/crmbonus-component-wake.cjs.js +27 -0
- package/dist/cjs/crmbonus-component-wake.cjs.js.map +1 -0
- package/dist/cjs/crmbonus.service-a626c034.js +3795 -0
- package/dist/cjs/crmbonus.service-a626c034.js.map +1 -0
- package/dist/cjs/giftback-finish_5.cjs.entry.js +153 -0
- package/dist/cjs/giftback-finish_5.cjs.entry.js.map +1 -0
- package/dist/cjs/index-52d8a075.js +1248 -0
- package/dist/cjs/index-52d8a075.js.map +1 -0
- package/dist/cjs/index.cjs.js +11 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/loading-spinner.cjs.entry.js +24 -0
- package/dist/cjs/loading-spinner.cjs.entry.js.map +1 -0
- package/dist/cjs/pedido-finalizado.cjs.entry.js +28 -0
- package/dist/cjs/pedido-finalizado.cjs.entry.js.map +1 -0
- package/dist/collection/collection-manifest.json +21 -0
- package/dist/collection/components/crm-bonus/assets/logo.svg +18 -0
- package/dist/collection/components/crm-bonus/assets/success-svgrepo-com.svg +8 -0
- package/dist/collection/components/crm-bonus/assets/svg/logo.svg +18 -0
- package/dist/collection/components/crm-bonus/assets/svg/success-svgrepo-com.svg +8 -0
- package/dist/collection/components/crm-bonus/crm-bonus.css +12 -0
- package/dist/collection/components/crm-bonus/crm-bonus.js +123 -0
- package/dist/collection/components/crm-bonus/crm-bonus.js.map +1 -0
- package/dist/collection/components/crm-bonus-form/crm-bonus-form.css +32 -0
- package/dist/collection/components/crm-bonus-form/crm-bonus-form.js +194 -0
- package/dist/collection/components/crm-bonus-form/crm-bonus-form.js.map +1 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.css +10 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js +20 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js.map +1 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.css +54 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js +111 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js.map +1 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.css +95 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js +111 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js.map +1 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/phone/phone.input.js +75 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/phone/phone.input.js.map +1 -0
- package/dist/collection/components/loading-spinner/loading-spinner.css +17 -0
- package/dist/collection/components/loading-spinner/loading-spinner.js +63 -0
- package/dist/collection/components/loading-spinner/loading-spinner.js.map +1 -0
- package/dist/collection/components/modal/app-modal.css +45 -0
- package/dist/collection/components/modal/app-modal.js +83 -0
- package/dist/collection/components/modal/app-modal.js.map +1 -0
- package/dist/collection/components/pedido/pedido.js +58 -0
- package/dist/collection/components/pedido/pedido.js.map +1 -0
- package/dist/collection/components/phone/phone-input-mask.css +47 -0
- package/dist/collection/components/phone/phone-input-mask.js +90 -0
- package/dist/collection/components/phone/phone-input-mask.js.map +1 -0
- package/dist/collection/contants/index.js +8 -0
- package/dist/collection/contants/index.js.map +1 -0
- package/dist/collection/contants/mocks.js +28 -0
- package/dist/collection/contants/mocks.js.map +1 -0
- package/dist/collection/dto/pin.sent.js +2 -0
- package/dist/collection/dto/pin.sent.js.map +1 -0
- package/dist/collection/dto/validate.pin.bonus.js +2 -0
- package/dist/collection/dto/validate.pin.bonus.js.map +1 -0
- package/dist/collection/index.js +11 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/services/crmbonus.service.js +39 -0
- package/dist/collection/services/crmbonus.service.js.map +1 -0
- package/dist/collection/utils/utils.js +4 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/app-modal.js +8 -0
- package/dist/components/app-modal.js.map +1 -0
- package/dist/components/crm-bonus-form.js +8 -0
- package/dist/components/crm-bonus-form.js.map +1 -0
- package/dist/components/crm-bonus.js +117 -0
- package/dist/components/crm-bonus.js.map +1 -0
- package/dist/components/giftback-finish.d.ts +11 -0
- package/dist/components/giftback-finish.js +8 -0
- package/dist/components/giftback-finish.js.map +1 -0
- package/dist/components/giftback-pin.js +8 -0
- package/dist/components/giftback-pin.js.map +1 -0
- package/dist/components/giftback-progress.js +8 -0
- package/dist/components/giftback-progress.js.map +1 -0
- package/dist/components/index.js +9 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/loading-spinner.js +8 -0
- package/dist/components/loading-spinner.js.map +1 -0
- package/dist/components/p-17ee9996.js +52 -0
- package/dist/components/p-17ee9996.js.map +1 -0
- package/dist/{crmbonus-component-wake/phone-input-mask.entry.js → components/p-2dbfb2c7.js} +34 -9
- package/dist/components/p-2dbfb2c7.js.map +1 -0
- package/dist/components/p-563ea4c5.js +166 -0
- package/dist/components/p-563ea4c5.js.map +1 -0
- package/dist/{crmbonus-component-wake/crmbonus.service-756d754d.js → components/p-629fcb5b.js} +97 -167
- package/dist/components/p-629fcb5b.js.map +1 -0
- package/dist/components/p-7294e43f.js +36 -0
- package/dist/components/p-7294e43f.js.map +1 -0
- package/dist/components/p-78529eea.js +39 -0
- package/dist/components/p-78529eea.js.map +1 -0
- package/dist/components/p-8e0ed8dd.js +43 -0
- package/dist/components/p-8e0ed8dd.js.map +1 -0
- package/dist/{crmbonus-component-wake/giftback-pin.entry.js → components/p-a1781d03.js} +38 -9
- package/dist/components/p-a1781d03.js.map +1 -0
- package/dist/components/p-a88bc337.js +67 -0
- package/dist/components/p-a88bc337.js.map +1 -0
- package/dist/components/p-faf7103e.js +1064 -0
- package/dist/components/p-faf7103e.js.map +1 -0
- package/dist/components/pedido-finalizado.js +45 -0
- package/dist/components/pedido-finalizado.js.map +1 -0
- package/dist/components/phone-input-mask.js +8 -0
- package/dist/components/phone-input-mask.js.map +1 -0
- package/dist/components/phone-input.js +8 -0
- package/dist/components/phone-input.js.map +1 -0
- package/dist/crmbonus-component-wake/assets/success-svgrepo-com.svg +8 -0
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +1 -48
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js.map +1 -1
- package/dist/crmbonus-component-wake/index.esm.js +1 -16
- package/dist/crmbonus-component-wake/index.esm.js.map +1 -1
- package/dist/crmbonus-component-wake/p-54e51298.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-54e51298.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-629fcb5b.js +2 -0
- package/dist/crmbonus-component-wake/p-629fcb5b.js.map +1 -0
- package/dist/crmbonus-component-wake/p-6b075110.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-6b075110.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-72510682.js +3 -0
- package/dist/crmbonus-component-wake/p-72510682.js.map +1 -0
- package/dist/crmbonus-component-wake/p-82f64f70.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-82f64f70.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-bf4b486e.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-bf4b486e.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-e1255160.js +2 -0
- package/dist/crmbonus-component-wake/p-e1255160.js.map +1 -0
- package/dist/crmbonus-component-wake/p-f0d68c31.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-f0d68c31.entry.js.map +1 -0
- package/dist/env.js +5 -0
- package/dist/env.js.map +1 -0
- package/dist/{crmbonus-component-wake/crm-bonus-form.entry.js → esm/app-modal_2.entry.js} +35 -8
- package/dist/esm/app-modal_2.entry.js.map +1 -0
- package/dist/{crmbonus-component-wake → esm}/crm-bonus.entry.js +16 -7
- package/dist/esm/crm-bonus.entry.js.map +1 -0
- package/dist/esm/crmbonus-component-wake.js +22 -0
- package/dist/esm/crmbonus-component-wake.js.map +1 -0
- package/dist/{crmbonus-component-wake/crmbonus.service-134e7b0c.js → esm/crmbonus.service-83f67708.js} +99 -169
- package/dist/esm/crmbonus.service-83f67708.js.map +1 -0
- package/dist/esm/giftback-finish_5.entry.js +145 -0
- package/dist/esm/giftback-finish_5.entry.js.map +1 -0
- package/dist/esm/index-9f7bde48.js +1220 -0
- package/dist/esm/index-9f7bde48.js.map +1 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/{crmbonus-component-wake → esm}/loading-spinner.entry.js +4 -3
- package/dist/esm/loading-spinner.entry.js.map +1 -0
- package/dist/esm/pedido-finalizado.entry.js +24 -0
- package/dist/esm/pedido-finalizado.entry.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/crm-bonus/crm-bonus.d.ts +7 -4
- package/dist/types/components/crm-bonus-form/crm-bonus-form.d.ts +2 -1
- package/dist/types/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.d.ts +3 -0
- package/dist/types/components/crm-bonus-form/subcomponents/phone/phone.input.d.ts +1 -0
- package/dist/types/components/pedido/pedido.d.ts +2 -0
- package/dist/types/components/phone/phone-input-mask.d.ts +2 -0
- package/dist/types/components.d.ts +27 -4
- package/dist/types/contants/index.d.ts +2 -1
- package/dist/types/dto/validate.pin.bonus.d.ts +8 -2
- package/dist/types/services/crmbonus.service.d.ts +2 -1
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +1 -1
- package/dist/crmbonus-component-wake/app-modal.entry.js +0 -23
- package/dist/crmbonus-component-wake/app-modal.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/crm-bonus-form.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/crm-bonus.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/crmbonus.service-134e7b0c.js.map +0 -1
- package/dist/crmbonus-component-wake/crmbonus.service-756d754d.js.map +0 -1
- package/dist/crmbonus-component-wake/giftback-pin.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/giftback-progress.entry.js +0 -39
- package/dist/crmbonus-component-wake/giftback-progress.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/index-b9a7a992.js +0 -3039
- package/dist/crmbonus-component-wake/index-b9a7a992.js.map +0 -1
- package/dist/crmbonus-component-wake/loading-spinner.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/pedido-finalizado.entry.js +0 -18
- package/dist/crmbonus-component-wake/pedido-finalizado.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/phone-input-mask.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/phone-input.entry.js +0 -20
- package/dist/crmbonus-component-wake/phone-input.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/shadow-css-7ad5caf8.js +0 -334
- package/dist/crmbonus-component-wake/shadow-css-7ad5caf8.js.map +0 -1
- /package/dist/{crmbonus-component-wake → esm}/app-globals-0f993ce5.js +0 -0
- /package/dist/{crmbonus-component-wake → esm}/app-globals-0f993ce5.js.map +0 -0
- /package/dist/types/home/darlison/Projects/crmbonus/{crmbonus-component-wake → app/crmbonus-component}/.stencil/env.d.ts +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"loading-spinner.entry.esm.js","mappings":";;AAAA,MAAM,iBAAiB,GAAG,iOAAiO;;MCO9O,cAAc;;;oBACA,MAAM;qBACL,SAAS;;IAEjC,MAAM;QACF,QACI,4DAAK,KAAK,EAAC,SAAS,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,sCAAsC,EAAE,GAAQ,EAC/I;KACL;;;;;;","names":[],"sources":["src/components/loading-spinner/loading-spinner.css?tag=loading-spinner&encapsulation=shadow","src/components/loading-spinner/loading-spinner.tsx"],"sourcesContent":[".spinner {\n display: inline-block;\n border: 4px solid transparent;\n border-radius: 50%;\n border-top-color: var(--color, #0078d7);\n animation: spin 1s linear infinite;\n}\n\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n}","import { Component, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'loading-spinner',\n styleUrl: 'loading-spinner.css',\n shadow: true,\n})\nexport class LoadingSpinner {\n @Prop() size: string = '50px'; // Tamanho do spinner (padrão 50px)\n @Prop() color: string = '#0078d7'; // Cor do spinner (padrão azul)\n\n render() {\n return (\n <div class=\"spinner\" style={{ width: this.size, height: this.size, borderColor: `${this.color} transparent transparent transparent` }}></div>\n );\n }\n}\n"],"version":3}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { r as registerInstance, h } from './index-b9a7a992.js';
|
2
|
-
import { C as CrmBonusService } from './crmbonus.service-756d754d.js';
|
3
|
-
|
4
|
-
const Pedido = class {
|
5
|
-
constructor(hostRef) {
|
6
|
-
registerInstance(this, hostRef);
|
7
|
-
}
|
8
|
-
async componentWillLoad() {
|
9
|
-
await new CrmBonusService().teste();
|
10
|
-
}
|
11
|
-
render() {
|
12
|
-
return (h("div", { key: '389b1bfc2c348caff62c9b4b5faad4bdcaee17f9' }, "oi"));
|
13
|
-
}
|
14
|
-
};
|
15
|
-
|
16
|
-
export { Pedido as pedido_finalizado };
|
17
|
-
|
18
|
-
//# sourceMappingURL=pedido-finalizado.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"pedido-finalizado.entry.esm.js","mappings":";;;MAOa,MAAM;;;;IAEf,MAAM,iBAAiB;QACnB,MAAM,IAAI,eAAe,EAAE,CAAC,KAAK,EAAE,CAAA;KACtC;IAED,MAAM;QACF,QACI,mEAAa,EAChB;KACJ;;;;;","names":[],"sources":["src/components/pedido/pedido.tsx"],"sourcesContent":["import { Component, h } from \"@stencil/core\";\nimport axios from \"axios\";\nimport { CrmBonusService } from \"../../services/crmbonus.service\";\n\n@Component({\n tag: \"pedido-finalizado\"\n})\nexport class Pedido {\n\n async componentWillLoad() {\n await new CrmBonusService().teste()\n }\n\n render() {\n return (\n <div>oi</div>\n )\n }\n}"],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"phone-input-mask.entry.esm.js","mappings":";;AAAA,MAAM,iBAAiB,GAAG,+zBAA+zB;;MCO50B,cAAc;;;qBACE,EAAE;;IAEnB,WAAW,CAAC,KAAa;QAC7B,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACzC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAC7D,IAAI,CAAC,KAAK;YAAE,OAAO,KAAK,CAAC;QAEzB,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC;QAC7C,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC;QAE7C,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,EAAE,CAAC;KACrC;IAEO,WAAW,CAAC,KAAY;QAC5B,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B,CAAC;QAC/C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KAC9C;IAGM,MAAM,QAAQ;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC;KACrB;IAED,MAAM;QACF,QACI,8DACI,EAAE,EAAC,OAAO,EACV,IAAI,EAAC,KAAK,EACV,KAAK,EAAC,OAAO,EACb,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,EAC3C,WAAW,EAAC,iBAAiB,GAC/B,EACJ;KACL;;;;;;","names":[],"sources":["src/components/phone/phone-input-mask.css?tag=phone-input-mask&encapsulation=shadow","src/components/phone/phone-input-mask.tsx"],"sourcesContent":[".inline-text-field-container {\n display: flex;\n flex-direction: column;\n}\n\n@supports (top: max(0%)) {\n .mdc-text-field--outlined {\n padding-right: max(16px, var(--mdc-shape-small, 4px));\n }\n}\n\n@supports (top: max(0%)) {\n .mdc-text-field--outlined {\n padding-left: max(16px, calc(var(--mdc-shape-small, 4px) + 4px));\n }\n}\n\n.mdc-text-field--outlined {\n height: 55px;\n overflow: visible;\n}\n\n.phone {\n width: 300px;\n height: 50px;\n font-size: 18px;\n padding: 10px;\n color: grey;\n border: 1px solid #d3c6c6;\n outline: none;\n}\n\n.mdc-text-field {\n border-top-left-radius: 4px;\n border-top-left-radius: var(--mdc-shape-small, 4px);\n border-top-right-radius: 4px;\n border-top-right-radius: var(--mdc-shape-small, 4px);\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n display: inline-flex;\n align-items: baseline;\n padding: 0 16px;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n will-change: opacity, transform, color;\n}","import { Component, h, Method, State } from '@stencil/core';\n\n@Component({\n tag: 'phone-input-mask',\n styleUrl: 'phone-input-mask.css',\n shadow: true,\n})\nexport class PhoneInputMask {\n @State() phone: string = '';\n\n private formatPhone(value: string): string {\n const cleaned = value.replace(/\\D/g, ''); // Remove tudo que não for número\n const match = cleaned.match(/^(\\d{0,2})(\\d{0,5})(\\d{0,4})$/);\n if (!match) return value;\n\n const part1 = match[1] ? `(${match[1]}` : '';\n const part2 = match[2] ? `) ${match[2]}` : '';\n const part3 = match[3] ? `-${match[3]}` : '';\n\n return `${part1}${part2}${part3}`;\n }\n\n private handleInput(event: Event): void {\n const input = event.target as HTMLInputElement;\n this.phone = this.formatPhone(input.value);\n }\n\n @Method()\n public async getPhone() {\n return this.phone;\n }\n\n render() {\n return (\n <input\n id=\"phone\"\n type=\"tel\"\n class=\"phone\"\n value={this.phone}\n onInput={(event) => this.handleInput(event)}\n placeholder=\"(12) 94567-8910\"\n />\n );\n }\n}\n"],"version":3}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { r as registerInstance, h } from './index-b9a7a992.js';
|
2
|
-
|
3
|
-
const PhoneInput = class {
|
4
|
-
constructor(hostRef) {
|
5
|
-
registerInstance(this, hostRef);
|
6
|
-
this.sendPin = undefined;
|
7
|
-
this.loading = undefined;
|
8
|
-
}
|
9
|
-
async validatePhone() {
|
10
|
-
const phone = await this.phoneInputMask.getPhone();
|
11
|
-
await this.sendPin(phone);
|
12
|
-
}
|
13
|
-
render() {
|
14
|
-
return (h("div", { key: '7cacb66e387cdc92af272234e128ac0084ac76b5', class: "form-container" }, h("phone-input-mask", { key: 'd8f5d6ed8d34136d8eb9aeb0f16de934ba376976', ref: ref => this.phoneInputMask = ref }), h("button", { key: '4b3170982fa5b3908829b1ccd386aa481f46170e', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.validatePhone() }, !this.loading ? "validar" : h("loading-spinner", { size: "25px", color: "#fff" }))));
|
15
|
-
}
|
16
|
-
};
|
17
|
-
|
18
|
-
export { PhoneInput as phone_input };
|
19
|
-
|
20
|
-
//# sourceMappingURL=phone-input.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"phone-input.entry.esm.js","mappings":";;MAKa,UAAU;;;;;;IAOnB,MAAM,aAAa;QACf,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC;QACnD,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;KAC7B;IAED,MAAM;QACF,QACI,4DAAK,KAAK,EAAC,gBAAgB,IACvB,yEAAkB,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,cAAc,GAAG,GAAG,GAAI,EAC3D,+DAAQ,KAAK,EAAE,UAAU,IAAI,CAAC,OAAO,GAAG,UAAU,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,aAAa,EAAE,IAE/G,CAAC,IAAI,CAAC,OAAO,GAAG,SAAS,GAAG,uBAAiB,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,GAAG,CAEvE,CACP,EACT;KACJ;;;;;","names":[],"sources":["src/components/crm-bonus-form/subcomponents/phone/phone.input.tsx"],"sourcesContent":["import { Component, Prop, h } from \"@stencil/core\";\n\n@Component({\n tag: 'phone-input'\n})\nexport class PhoneInput {\n\n private phoneInputMask: HTMLPhoneInputMaskElement;\n\n @Prop() sendPin: Function;\n @Prop() loading: boolean;\n\n async validatePhone() {\n const phone = await this.phoneInputMask.getPhone();\n await this.sendPin(phone);\n }\n\n render() {\n return (\n <div class=\"form-container\">\n <phone-input-mask ref={ref => this.phoneInputMask = ref} />\n <button class={`button ${this.loading ? 'disabled' : ''} `} disabled={this.loading} onClick={() => this.validatePhone()}>\n {\n !this.loading ? \"validar\" : <loading-spinner size=\"25px\" color=\"#fff\" />\n }\n </button>\n </div>\n )\n }\n}"],"version":3}
|
@@ -1,334 +0,0 @@
|
|
1
|
-
// src/utils/regular-expression.ts
|
2
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
3
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
4
|
-
};
|
5
|
-
|
6
|
-
// src/utils/shadow-css.ts
|
7
|
-
/**
|
8
|
-
* @license
|
9
|
-
* Copyright Google Inc. All Rights Reserved.
|
10
|
-
*
|
11
|
-
* Use of this source code is governed by an MIT-style license that can be
|
12
|
-
* found in the LICENSE file at https://angular.io/license
|
13
|
-
*
|
14
|
-
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
15
|
-
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
16
|
-
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
17
|
-
*/
|
18
|
-
var safeSelector = (selector) => {
|
19
|
-
const placeholders = [];
|
20
|
-
let index = 0;
|
21
|
-
selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
|
22
|
-
const replaceBy = `__ph-${index}__`;
|
23
|
-
placeholders.push(keep);
|
24
|
-
index++;
|
25
|
-
return replaceBy;
|
26
|
-
});
|
27
|
-
const content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
|
28
|
-
const replaceBy = `__ph-${index}__`;
|
29
|
-
placeholders.push(exp);
|
30
|
-
index++;
|
31
|
-
return pseudo + replaceBy;
|
32
|
-
});
|
33
|
-
const ss = {
|
34
|
-
content,
|
35
|
-
placeholders
|
36
|
-
};
|
37
|
-
return ss;
|
38
|
-
};
|
39
|
-
var restoreSafeSelector = (placeholders, content) => {
|
40
|
-
return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
|
41
|
-
};
|
42
|
-
var _polyfillHost = "-shadowcsshost";
|
43
|
-
var _polyfillSlotted = "-shadowcssslotted";
|
44
|
-
var _polyfillHostContext = "-shadowcsscontext";
|
45
|
-
var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
46
|
-
var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
47
|
-
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
48
|
-
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
49
|
-
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
50
|
-
var _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
|
51
|
-
var _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
|
52
|
-
var _selectorReSuffix = "([>\\s~+[.,{:][\\s\\S]*)?$";
|
53
|
-
var _polyfillHostRe = /-shadowcsshost/gim;
|
54
|
-
var createSupportsRuleRe = (selector) => new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${selector}\\b)`, "gim");
|
55
|
-
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
56
|
-
var _colonHostRe = createSupportsRuleRe(":host");
|
57
|
-
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
58
|
-
var _commentRe = /\/\*\s*[\s\S]*?\*\//g;
|
59
|
-
var stripComments = (input) => {
|
60
|
-
return input.replace(_commentRe, "");
|
61
|
-
};
|
62
|
-
var _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
|
63
|
-
var extractCommentsWithHash = (input) => {
|
64
|
-
return input.match(_commentWithHashRe) || [];
|
65
|
-
};
|
66
|
-
var _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
|
67
|
-
var _curlyRe = /([{}])/g;
|
68
|
-
var _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
|
69
|
-
var OPEN_CURLY = "{";
|
70
|
-
var CLOSE_CURLY = "}";
|
71
|
-
var BLOCK_PLACEHOLDER = "%BLOCK%";
|
72
|
-
var processRules = (input, ruleCallback) => {
|
73
|
-
const inputWithEscapedBlocks = escapeBlocks(input);
|
74
|
-
let nextBlockIndex = 0;
|
75
|
-
return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
|
76
|
-
const selector = m[2];
|
77
|
-
let content = "";
|
78
|
-
let suffix = m[4];
|
79
|
-
let contentPrefix = "";
|
80
|
-
if (suffix && suffix.startsWith("{" + BLOCK_PLACEHOLDER)) {
|
81
|
-
content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
|
82
|
-
suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
|
83
|
-
contentPrefix = "{";
|
84
|
-
}
|
85
|
-
const cssRule = {
|
86
|
-
selector,
|
87
|
-
content
|
88
|
-
};
|
89
|
-
const rule = ruleCallback(cssRule);
|
90
|
-
return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
|
91
|
-
});
|
92
|
-
};
|
93
|
-
var escapeBlocks = (input) => {
|
94
|
-
const inputParts = input.split(_curlyRe);
|
95
|
-
const resultParts = [];
|
96
|
-
const escapedBlocks = [];
|
97
|
-
let bracketCount = 0;
|
98
|
-
let currentBlockParts = [];
|
99
|
-
for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
|
100
|
-
const part = inputParts[partIndex];
|
101
|
-
if (part === CLOSE_CURLY) {
|
102
|
-
bracketCount--;
|
103
|
-
}
|
104
|
-
if (bracketCount > 0) {
|
105
|
-
currentBlockParts.push(part);
|
106
|
-
} else {
|
107
|
-
if (currentBlockParts.length > 0) {
|
108
|
-
escapedBlocks.push(currentBlockParts.join(""));
|
109
|
-
resultParts.push(BLOCK_PLACEHOLDER);
|
110
|
-
currentBlockParts = [];
|
111
|
-
}
|
112
|
-
resultParts.push(part);
|
113
|
-
}
|
114
|
-
if (part === OPEN_CURLY) {
|
115
|
-
bracketCount++;
|
116
|
-
}
|
117
|
-
}
|
118
|
-
if (currentBlockParts.length > 0) {
|
119
|
-
escapedBlocks.push(currentBlockParts.join(""));
|
120
|
-
resultParts.push(BLOCK_PLACEHOLDER);
|
121
|
-
}
|
122
|
-
const strEscapedBlocks = {
|
123
|
-
escapedString: resultParts.join(""),
|
124
|
-
blocks: escapedBlocks
|
125
|
-
};
|
126
|
-
return strEscapedBlocks;
|
127
|
-
};
|
128
|
-
var insertPolyfillHostInCssText = (cssText) => {
|
129
|
-
cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);
|
130
|
-
return cssText;
|
131
|
-
};
|
132
|
-
var convertColonRule = (cssText, regExp, partReplacer) => {
|
133
|
-
return cssText.replace(regExp, (...m) => {
|
134
|
-
if (m[2]) {
|
135
|
-
const parts = m[2].split(",");
|
136
|
-
const r = [];
|
137
|
-
for (let i = 0; i < parts.length; i++) {
|
138
|
-
const p = parts[i].trim();
|
139
|
-
if (!p) break;
|
140
|
-
r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
|
141
|
-
}
|
142
|
-
return r.join(",");
|
143
|
-
} else {
|
144
|
-
return _polyfillHostNoCombinator + m[3];
|
145
|
-
}
|
146
|
-
});
|
147
|
-
};
|
148
|
-
var colonHostPartReplacer = (host, part, suffix) => {
|
149
|
-
return host + part.replace(_polyfillHost, "") + suffix;
|
150
|
-
};
|
151
|
-
var convertColonHost = (cssText) => {
|
152
|
-
return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
|
153
|
-
};
|
154
|
-
var colonHostContextPartReplacer = (host, part, suffix) => {
|
155
|
-
if (part.indexOf(_polyfillHost) > -1) {
|
156
|
-
return colonHostPartReplacer(host, part, suffix);
|
157
|
-
} else {
|
158
|
-
return host + part + suffix + ", " + part + " " + host + suffix;
|
159
|
-
}
|
160
|
-
};
|
161
|
-
var convertColonSlotted = (cssText, slotScopeId) => {
|
162
|
-
const slotClass = "." + slotScopeId + " > ";
|
163
|
-
const selectors = [];
|
164
|
-
cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
|
165
|
-
if (m[2]) {
|
166
|
-
const compound = m[2].trim();
|
167
|
-
const suffix = m[3];
|
168
|
-
const slottedSelector = slotClass + compound + suffix;
|
169
|
-
let prefixSelector = "";
|
170
|
-
for (let i = m[4] - 1; i >= 0; i--) {
|
171
|
-
const char = m[5][i];
|
172
|
-
if (char === "}" || char === ",") {
|
173
|
-
break;
|
174
|
-
}
|
175
|
-
prefixSelector = char + prefixSelector;
|
176
|
-
}
|
177
|
-
const orgSelector = (prefixSelector + slottedSelector).trim();
|
178
|
-
const addedSelector = `${prefixSelector.trimEnd()}${slottedSelector.trim()}`.trim();
|
179
|
-
if (orgSelector !== addedSelector) {
|
180
|
-
const updatedSelector = `${addedSelector}, ${orgSelector}`;
|
181
|
-
selectors.push({
|
182
|
-
orgSelector,
|
183
|
-
updatedSelector
|
184
|
-
});
|
185
|
-
}
|
186
|
-
return slottedSelector;
|
187
|
-
} else {
|
188
|
-
return _polyfillHostNoCombinator + m[3];
|
189
|
-
}
|
190
|
-
});
|
191
|
-
return {
|
192
|
-
selectors,
|
193
|
-
cssText
|
194
|
-
};
|
195
|
-
};
|
196
|
-
var convertColonHostContext = (cssText) => {
|
197
|
-
return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
|
198
|
-
};
|
199
|
-
var convertShadowDOMSelectors = (cssText) => {
|
200
|
-
return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, " "), cssText);
|
201
|
-
};
|
202
|
-
var makeScopeMatcher = (scopeSelector2) => {
|
203
|
-
const lre = /\[/g;
|
204
|
-
const rre = /\]/g;
|
205
|
-
scopeSelector2 = scopeSelector2.replace(lre, "\\[").replace(rre, "\\]");
|
206
|
-
return new RegExp("^(" + scopeSelector2 + ")" + _selectorReSuffix, "m");
|
207
|
-
};
|
208
|
-
var selectorNeedsScoping = (selector, scopeSelector2) => {
|
209
|
-
const re = makeScopeMatcher(scopeSelector2);
|
210
|
-
return !re.test(selector);
|
211
|
-
};
|
212
|
-
var injectScopingSelector = (selector, scopingSelector) => {
|
213
|
-
return selector.replace(_selectorPartsRe, (_, before = "", _colonGroup, colon = "", after = "") => {
|
214
|
-
return before + scopingSelector + colon + after;
|
215
|
-
});
|
216
|
-
};
|
217
|
-
var applySimpleSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
218
|
-
_polyfillHostRe.lastIndex = 0;
|
219
|
-
if (_polyfillHostRe.test(selector)) {
|
220
|
-
const replaceBy = `.${hostSelector}`;
|
221
|
-
return selector.replace(_polyfillHostNoCombinatorRe, (_, selector2) => injectScopingSelector(selector2, replaceBy)).replace(_polyfillHostRe, replaceBy + " ");
|
222
|
-
}
|
223
|
-
return scopeSelector2 + " " + selector;
|
224
|
-
};
|
225
|
-
var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
226
|
-
const isRe = /\[is=([^\]]*)\]/g;
|
227
|
-
scopeSelector2 = scopeSelector2.replace(isRe, (_, ...parts) => parts[0]);
|
228
|
-
const className = "." + scopeSelector2;
|
229
|
-
const _scopeSelectorPart = (p) => {
|
230
|
-
let scopedP = p.trim();
|
231
|
-
if (!scopedP) {
|
232
|
-
return "";
|
233
|
-
}
|
234
|
-
if (p.indexOf(_polyfillHostNoCombinator) > -1) {
|
235
|
-
scopedP = applySimpleSelectorScope(p, scopeSelector2, hostSelector);
|
236
|
-
} else {
|
237
|
-
const t = p.replace(_polyfillHostRe, "");
|
238
|
-
if (t.length > 0) {
|
239
|
-
scopedP = injectScopingSelector(t, className);
|
240
|
-
}
|
241
|
-
}
|
242
|
-
return scopedP;
|
243
|
-
};
|
244
|
-
const safeContent = safeSelector(selector);
|
245
|
-
selector = safeContent.content;
|
246
|
-
let scopedSelector = "";
|
247
|
-
let startIndex = 0;
|
248
|
-
let res;
|
249
|
-
const sep = /( |>|\+|~(?!=))\s*/g;
|
250
|
-
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
251
|
-
let shouldScope = !hasHost;
|
252
|
-
while ((res = sep.exec(selector)) !== null) {
|
253
|
-
const separator = res[1];
|
254
|
-
const part2 = selector.slice(startIndex, res.index).trim();
|
255
|
-
shouldScope = shouldScope || part2.indexOf(_polyfillHostNoCombinator) > -1;
|
256
|
-
const scopedPart = shouldScope ? _scopeSelectorPart(part2) : part2;
|
257
|
-
scopedSelector += `${scopedPart} ${separator} `;
|
258
|
-
startIndex = sep.lastIndex;
|
259
|
-
}
|
260
|
-
const part = selector.substring(startIndex);
|
261
|
-
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
262
|
-
scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
|
263
|
-
return restoreSafeSelector(safeContent.placeholders, scopedSelector);
|
264
|
-
};
|
265
|
-
var scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
|
266
|
-
return selector.split(",").map((shallowPart) => {
|
267
|
-
if (slotSelector && shallowPart.indexOf("." + slotSelector) > -1) {
|
268
|
-
return shallowPart.trim();
|
269
|
-
}
|
270
|
-
if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
|
271
|
-
return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
|
272
|
-
} else {
|
273
|
-
return shallowPart.trim();
|
274
|
-
}
|
275
|
-
}).join(", ");
|
276
|
-
};
|
277
|
-
var scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector) => {
|
278
|
-
return processRules(cssText, (rule) => {
|
279
|
-
let selector = rule.selector;
|
280
|
-
let content = rule.content;
|
281
|
-
if (rule.selector[0] !== "@") {
|
282
|
-
selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
|
283
|
-
} else if (rule.selector.startsWith("@media") || rule.selector.startsWith("@supports") || rule.selector.startsWith("@page") || rule.selector.startsWith("@document")) {
|
284
|
-
content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
|
285
|
-
}
|
286
|
-
const cssRule = {
|
287
|
-
selector: selector.replace(/\s{2,}/g, " ").trim(),
|
288
|
-
content
|
289
|
-
};
|
290
|
-
return cssRule;
|
291
|
-
});
|
292
|
-
};
|
293
|
-
var scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId) => {
|
294
|
-
cssText = insertPolyfillHostInCssText(cssText);
|
295
|
-
cssText = convertColonHost(cssText);
|
296
|
-
cssText = convertColonHostContext(cssText);
|
297
|
-
const slotted = convertColonSlotted(cssText, slotScopeId);
|
298
|
-
cssText = slotted.cssText;
|
299
|
-
cssText = convertShadowDOMSelectors(cssText);
|
300
|
-
if (scopeId) {
|
301
|
-
cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
|
302
|
-
}
|
303
|
-
cssText = replaceShadowCssHost(cssText, hostScopeId);
|
304
|
-
cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, " $1 ");
|
305
|
-
return {
|
306
|
-
cssText: cssText.trim(),
|
307
|
-
// We need to replace the shadow CSS host string in each of these selectors since we created
|
308
|
-
// them prior to the replacement happening in the components CSS text.
|
309
|
-
slottedSelectors: slotted.selectors.map((ref) => ({
|
310
|
-
orgSelector: replaceShadowCssHost(ref.orgSelector, hostScopeId),
|
311
|
-
updatedSelector: replaceShadowCssHost(ref.updatedSelector, hostScopeId)
|
312
|
-
}))
|
313
|
-
};
|
314
|
-
};
|
315
|
-
var replaceShadowCssHost = (cssText, hostScopeId) => {
|
316
|
-
return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
|
317
|
-
};
|
318
|
-
var scopeCss = (cssText, scopeId) => {
|
319
|
-
const hostScopeId = scopeId + "-h";
|
320
|
-
const slotScopeId = scopeId + "-s";
|
321
|
-
const commentsWithHash = extractCommentsWithHash(cssText);
|
322
|
-
cssText = stripComments(cssText);
|
323
|
-
const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
|
324
|
-
cssText = [scoped.cssText, ...commentsWithHash].join("\n");
|
325
|
-
scoped.slottedSelectors.forEach((slottedSelector) => {
|
326
|
-
const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector), "g");
|
327
|
-
cssText = cssText.replace(regex, slottedSelector.updatedSelector);
|
328
|
-
});
|
329
|
-
return cssText;
|
330
|
-
};
|
331
|
-
|
332
|
-
export { scopeCss };
|
333
|
-
|
334
|
-
//# sourceMappingURL=shadow-css-7ad5caf8.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"shadow-css-7ad5caf8.js","mappings":"AAAA;AACA,IAAI,6BAA6B,GAAG,CAAC,IAAI,KAAK;AAC9C,EAAE,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;AACrD,CAAC,CAAC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,YAAY,GAAG,CAAC,QAAQ,KAAK;AACjC,EAAE,MAAM,YAAY,GAAG,EAAE,CAAC;AAC1B,EAAE,IAAI,KAAK,GAAG,CAAC,CAAC;AAChB,EAAE,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK;AAC5D,IAAI,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;AACxC,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5B,IAAI,KAAK,EAAE,CAAC;AACZ,IAAI,OAAO,SAAS,CAAC;AACrB,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,2BAA2B,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK;AACpF,IAAI,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;AACxC,IAAI,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B,IAAI,KAAK,EAAE,CAAC;AACZ,IAAI,OAAO,MAAM,GAAG,SAAS,CAAC;AAC9B,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,EAAE,GAAG;AACb,IAA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AAC,GAAG,CAAC,eAAe,EAAE,WAAW,CAAC;AAC7E,KAAK,CAAC,CAAC;AACP,GAAG,CAAC;AACJ,CAAC,CAAC;AACF,IAAI,oBAAoB,GAAG,CAAC,OAAO,EAAE,WAAW,KAAK;AACrD,EAAE,OAAO,OAAO,CAAC,OAAO,CAAC,+BAA+B,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;AAC7E,CAAC,CAAC;AACC,IAAC,QAAQ,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK;AACrC,EAAE,MAAM,WAAW,GAAG,OAAO,GAAG,IAAI,CAAC;AACrC,EAAE,MAAM,WAAW,GAAG,OAAO,GAAG,IAAI,CAAC;AACrC,EAAE,MAAM,gBAAgB,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC;AAC5D,EAAE,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;AACnC,EAAE,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAC1E,EAAE,OAAO,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,gBAAgB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC7D,EAAE,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,eAAe,KAAK;AACvD,IAAI,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,6BAA6B,CAAC,eAAe,CAAC,WAAW,CAAC,EAAE,GAAG,CAAC,CAAC;AAC9F,IAAI,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;AACtE,GAAG,CAAC,CAAC;AACL,EAAE,OAAO,OAAO,CAAC;AACjB;;;;","names":[],"sources":["node_modules/@stencil/core/internal/client/shadow-css.js"],"sourcesContent":["// src/utils/regular-expression.ts\nvar escapeRegExpSpecialCharacters = (text) => {\n return text.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n};\n\n// src/utils/shadow-css.ts\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n *\n * This file is a port of shadowCSS from `webcomponents.js` to TypeScript.\n * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js\n * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts\n */\nvar safeSelector = (selector) => {\n const placeholders = [];\n let index = 0;\n selector = selector.replace(/(\\[[^\\]]*\\])/g, (_, keep) => {\n const replaceBy = `__ph-${index}__`;\n placeholders.push(keep);\n index++;\n return replaceBy;\n });\n const content = selector.replace(/(:nth-[-\\w]+)(\\([^)]+\\))/g, (_, pseudo, exp) => {\n const replaceBy = `__ph-${index}__`;\n placeholders.push(exp);\n index++;\n return pseudo + replaceBy;\n });\n const ss = {\n content,\n placeholders\n };\n return ss;\n};\nvar restoreSafeSelector = (placeholders, content) => {\n return content.replace(/__ph-(\\d+)__/g, (_, index) => placeholders[+index]);\n};\nvar _polyfillHost = \"-shadowcsshost\";\nvar _polyfillSlotted = \"-shadowcssslotted\";\nvar _polyfillHostContext = \"-shadowcsscontext\";\nvar _parenSuffix = \")(?:\\\\(((?:\\\\([^)(]*\\\\)|[^)(]*)+?)\\\\))?([^,{]*)\";\nvar _cssColonHostRe = new RegExp(\"(\" + _polyfillHost + _parenSuffix, \"gim\");\nvar _cssColonHostContextRe = new RegExp(\"(\" + _polyfillHostContext + _parenSuffix, \"gim\");\nvar _cssColonSlottedRe = new RegExp(\"(\" + _polyfillSlotted + _parenSuffix, \"gim\");\nvar _polyfillHostNoCombinator = _polyfillHost + \"-no-combinator\";\nvar _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\\s]*)/;\nvar _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];\nvar _selectorReSuffix = \"([>\\\\s~+[.,{:][\\\\s\\\\S]*)?$\";\nvar _polyfillHostRe = /-shadowcsshost/gim;\nvar createSupportsRuleRe = (selector) => new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${selector}\\\\b)`, \"gim\");\nvar _colonSlottedRe = createSupportsRuleRe(\"::slotted\");\nvar _colonHostRe = createSupportsRuleRe(\":host\");\nvar _colonHostContextRe = createSupportsRuleRe(\":host-context\");\nvar _commentRe = /\\/\\*\\s*[\\s\\S]*?\\*\\//g;\nvar stripComments = (input) => {\n return input.replace(_commentRe, \"\");\n};\nvar _commentWithHashRe = /\\/\\*\\s*#\\s*source(Mapping)?URL=[\\s\\S]+?\\*\\//g;\nvar extractCommentsWithHash = (input) => {\n return input.match(_commentWithHashRe) || [];\n};\nvar _ruleRe = /(\\s*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))/g;\nvar _curlyRe = /([{}])/g;\nvar _selectorPartsRe = /(^.*?[^\\\\])??((:+)(.*)|$)/;\nvar OPEN_CURLY = \"{\";\nvar CLOSE_CURLY = \"}\";\nvar BLOCK_PLACEHOLDER = \"%BLOCK%\";\nvar processRules = (input, ruleCallback) => {\n const inputWithEscapedBlocks = escapeBlocks(input);\n let nextBlockIndex = 0;\n return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {\n const selector = m[2];\n let content = \"\";\n let suffix = m[4];\n let contentPrefix = \"\";\n if (suffix && suffix.startsWith(\"{\" + BLOCK_PLACEHOLDER)) {\n content = inputWithEscapedBlocks.blocks[nextBlockIndex++];\n suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);\n contentPrefix = \"{\";\n }\n const cssRule = {\n selector,\n content\n };\n const rule = ruleCallback(cssRule);\n return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;\n });\n};\nvar escapeBlocks = (input) => {\n const inputParts = input.split(_curlyRe);\n const resultParts = [];\n const escapedBlocks = [];\n let bracketCount = 0;\n let currentBlockParts = [];\n for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {\n const part = inputParts[partIndex];\n if (part === CLOSE_CURLY) {\n bracketCount--;\n }\n if (bracketCount > 0) {\n currentBlockParts.push(part);\n } else {\n if (currentBlockParts.length > 0) {\n escapedBlocks.push(currentBlockParts.join(\"\"));\n resultParts.push(BLOCK_PLACEHOLDER);\n currentBlockParts = [];\n }\n resultParts.push(part);\n }\n if (part === OPEN_CURLY) {\n bracketCount++;\n }\n }\n if (currentBlockParts.length > 0) {\n escapedBlocks.push(currentBlockParts.join(\"\"));\n resultParts.push(BLOCK_PLACEHOLDER);\n }\n const strEscapedBlocks = {\n escapedString: resultParts.join(\"\"),\n blocks: escapedBlocks\n };\n return strEscapedBlocks;\n};\nvar insertPolyfillHostInCssText = (cssText) => {\n cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);\n return cssText;\n};\nvar convertColonRule = (cssText, regExp, partReplacer) => {\n return cssText.replace(regExp, (...m) => {\n if (m[2]) {\n const parts = m[2].split(\",\");\n const r = [];\n for (let i = 0; i < parts.length; i++) {\n const p = parts[i].trim();\n if (!p) break;\n r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));\n }\n return r.join(\",\");\n } else {\n return _polyfillHostNoCombinator + m[3];\n }\n });\n};\nvar colonHostPartReplacer = (host, part, suffix) => {\n return host + part.replace(_polyfillHost, \"\") + suffix;\n};\nvar convertColonHost = (cssText) => {\n return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);\n};\nvar colonHostContextPartReplacer = (host, part, suffix) => {\n if (part.indexOf(_polyfillHost) > -1) {\n return colonHostPartReplacer(host, part, suffix);\n } else {\n return host + part + suffix + \", \" + part + \" \" + host + suffix;\n }\n};\nvar convertColonSlotted = (cssText, slotScopeId) => {\n const slotClass = \".\" + slotScopeId + \" > \";\n const selectors = [];\n cssText = cssText.replace(_cssColonSlottedRe, (...m) => {\n if (m[2]) {\n const compound = m[2].trim();\n const suffix = m[3];\n const slottedSelector = slotClass + compound + suffix;\n let prefixSelector = \"\";\n for (let i = m[4] - 1; i >= 0; i--) {\n const char = m[5][i];\n if (char === \"}\" || char === \",\") {\n break;\n }\n prefixSelector = char + prefixSelector;\n }\n const orgSelector = (prefixSelector + slottedSelector).trim();\n const addedSelector = `${prefixSelector.trimEnd()}${slottedSelector.trim()}`.trim();\n if (orgSelector !== addedSelector) {\n const updatedSelector = `${addedSelector}, ${orgSelector}`;\n selectors.push({\n orgSelector,\n updatedSelector\n });\n }\n return slottedSelector;\n } else {\n return _polyfillHostNoCombinator + m[3];\n }\n });\n return {\n selectors,\n cssText\n };\n};\nvar convertColonHostContext = (cssText) => {\n return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);\n};\nvar convertShadowDOMSelectors = (cssText) => {\n return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, \" \"), cssText);\n};\nvar makeScopeMatcher = (scopeSelector2) => {\n const lre = /\\[/g;\n const rre = /\\]/g;\n scopeSelector2 = scopeSelector2.replace(lre, \"\\\\[\").replace(rre, \"\\\\]\");\n return new RegExp(\"^(\" + scopeSelector2 + \")\" + _selectorReSuffix, \"m\");\n};\nvar selectorNeedsScoping = (selector, scopeSelector2) => {\n const re = makeScopeMatcher(scopeSelector2);\n return !re.test(selector);\n};\nvar injectScopingSelector = (selector, scopingSelector) => {\n return selector.replace(_selectorPartsRe, (_, before = \"\", _colonGroup, colon = \"\", after = \"\") => {\n return before + scopingSelector + colon + after;\n });\n};\nvar applySimpleSelectorScope = (selector, scopeSelector2, hostSelector) => {\n _polyfillHostRe.lastIndex = 0;\n if (_polyfillHostRe.test(selector)) {\n const replaceBy = `.${hostSelector}`;\n return selector.replace(_polyfillHostNoCombinatorRe, (_, selector2) => injectScopingSelector(selector2, replaceBy)).replace(_polyfillHostRe, replaceBy + \" \");\n }\n return scopeSelector2 + \" \" + selector;\n};\nvar applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {\n const isRe = /\\[is=([^\\]]*)\\]/g;\n scopeSelector2 = scopeSelector2.replace(isRe, (_, ...parts) => parts[0]);\n const className = \".\" + scopeSelector2;\n const _scopeSelectorPart = (p) => {\n let scopedP = p.trim();\n if (!scopedP) {\n return \"\";\n }\n if (p.indexOf(_polyfillHostNoCombinator) > -1) {\n scopedP = applySimpleSelectorScope(p, scopeSelector2, hostSelector);\n } else {\n const t = p.replace(_polyfillHostRe, \"\");\n if (t.length > 0) {\n scopedP = injectScopingSelector(t, className);\n }\n }\n return scopedP;\n };\n const safeContent = safeSelector(selector);\n selector = safeContent.content;\n let scopedSelector = \"\";\n let startIndex = 0;\n let res;\n const sep = /( |>|\\+|~(?!=))\\s*/g;\n const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;\n let shouldScope = !hasHost;\n while ((res = sep.exec(selector)) !== null) {\n const separator = res[1];\n const part2 = selector.slice(startIndex, res.index).trim();\n shouldScope = shouldScope || part2.indexOf(_polyfillHostNoCombinator) > -1;\n const scopedPart = shouldScope ? _scopeSelectorPart(part2) : part2;\n scopedSelector += `${scopedPart} ${separator} `;\n startIndex = sep.lastIndex;\n }\n const part = selector.substring(startIndex);\n shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;\n scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;\n return restoreSafeSelector(safeContent.placeholders, scopedSelector);\n};\nvar scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {\n return selector.split(\",\").map((shallowPart) => {\n if (slotSelector && shallowPart.indexOf(\".\" + slotSelector) > -1) {\n return shallowPart.trim();\n }\n if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {\n return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();\n } else {\n return shallowPart.trim();\n }\n }).join(\", \");\n};\nvar scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector) => {\n return processRules(cssText, (rule) => {\n let selector = rule.selector;\n let content = rule.content;\n if (rule.selector[0] !== \"@\") {\n selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);\n } else if (rule.selector.startsWith(\"@media\") || rule.selector.startsWith(\"@supports\") || rule.selector.startsWith(\"@page\") || rule.selector.startsWith(\"@document\")) {\n content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);\n }\n const cssRule = {\n selector: selector.replace(/\\s{2,}/g, \" \").trim(),\n content\n };\n return cssRule;\n });\n};\nvar scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId) => {\n cssText = insertPolyfillHostInCssText(cssText);\n cssText = convertColonHost(cssText);\n cssText = convertColonHostContext(cssText);\n const slotted = convertColonSlotted(cssText, slotScopeId);\n cssText = slotted.cssText;\n cssText = convertShadowDOMSelectors(cssText);\n if (scopeId) {\n cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);\n }\n cssText = replaceShadowCssHost(cssText, hostScopeId);\n cssText = cssText.replace(/>\\s*\\*\\s+([^{, ]+)/gm, \" $1 \");\n return {\n cssText: cssText.trim(),\n // We need to replace the shadow CSS host string in each of these selectors since we created\n // them prior to the replacement happening in the components CSS text.\n slottedSelectors: slotted.selectors.map((ref) => ({\n orgSelector: replaceShadowCssHost(ref.orgSelector, hostScopeId),\n updatedSelector: replaceShadowCssHost(ref.updatedSelector, hostScopeId)\n }))\n };\n};\nvar replaceShadowCssHost = (cssText, hostScopeId) => {\n return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);\n};\nvar scopeCss = (cssText, scopeId) => {\n const hostScopeId = scopeId + \"-h\";\n const slotScopeId = scopeId + \"-s\";\n const commentsWithHash = extractCommentsWithHash(cssText);\n cssText = stripComments(cssText);\n const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);\n cssText = [scoped.cssText, ...commentsWithHash].join(\"\\n\");\n scoped.slottedSelectors.forEach((slottedSelector) => {\n const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector), \"g\");\n cssText = cssText.replace(regex, slottedSelector.updatedSelector);\n });\n return cssText;\n};\nexport {\n scopeCss\n};\n"],"version":3}
|
File without changes
|
File without changes
|