angular2-credit-card-draw 1.0.8 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.MD CHANGED
@@ -1,87 +1,134 @@
1
- # angular2-credit-card-draw
1
+ # angular-credit-card-draw
2
2
 
3
- ##Live Demo
4
- https://plnkr.co/edit/8kiEx9ZXOZsDJB2CAtcp?p=preview
3
+ A customizable, animated credit card preview component for Angular.
4
+
5
+ ## Angular version and upgrade notes
6
+
7
+ This release uses Angular 21 and is distributed as a compiled Angular library.
8
+ It requires Angular `^21.0.0` (`@angular/core` and `@angular/common`) and RxJS
9
+ `^7.4.0`. Use a Node.js version supported by Angular 21 when developing or
10
+ building the library.
5
11
 
6
- ## Installation
12
+ The Angular 2-era Gulp, Typings, and TSLint build has been replaced with
13
+ `ng-packagr` and the Angular Package Format. The `CardDraw` selector and its
14
+ existing input names are retained. `CardDraw` is now standalone and can be
15
+ imported directly; `CardModule` is still exported for applications that use
16
+ NgModules.
7
17
 
8
- To install this library, run:
18
+ Install the package in an Angular 21 application:
9
19
 
10
20
  ```bash
11
- $ npm install angular2-credit-card-draw --save
21
+ npm install angular2-credit-card-draw
12
22
  ```
13
23
 
14
- ## Consuming your library
24
+ ## Features
15
25
 
16
- Once you have published your library to npm, you can import your library in any Angular application by running:
26
+ - Renders the front and back of a credit card, including cardholder name,
27
+ number, expiry date, and security code.
28
+ - Flips between sides on hover or when controlled with the `toggle` input.
29
+ - Accepts card face dimensions and a custom CSS background.
30
+ - Provides a standalone component and an NgModule-compatible wrapper.
31
+ - Includes Storybook stories with interactive controls for local development.
17
32
 
18
- ```bash
19
- $ npm install angular2-credit-card-draw
20
- ```
33
+ This component only displays the values supplied to it; it does not validate,
34
+ store, or process payment details.
21
35
 
22
- and then from your Angular `AppModule`:
36
+ ## Component inputs
23
37
 
24
- ```typescript
25
- import { BrowserModule } from '@angular/platform-browser';
26
- import { NgModule } from '@angular/core';
38
+ | Input | Type | Default | Description |
39
+ | --- | --- | --- | --- |
40
+ | `name` | `string` | `''` | Cardholder name shown on the front. |
41
+ | `number` | `string` | `''` | Card number shown on the front. |
42
+ | `expiration` | `string` | `''` | Expiration text shown on the front, for example `12/29`. |
43
+ | `ccv` | `string` | `''` | Security code shown on the back. |
44
+ | `background` | `string` | `''` | CSS background value for both card faces. When empty, the built-in gradient is used. |
45
+ | `width` | `string` | `''` | CSS width for the card faces, for example `400px`. |
46
+ | `height` | `string` | `''` | CSS height for the card faces, for example `250px`. |
47
+ | `toggle` | `boolean` | `false` | Set to `true` to show the back; the card also flips when hovered. |
48
+ | `hideBrandLogo` | `boolean` | `false` | Set to `true` to hide the card-network logo (for example, Visa) on both card faces. |
27
49
 
28
- import { AppComponent } from './app.component';
50
+ ## Standalone component usage
29
51
 
30
- // Import your library
31
- import { CardDraw } from 'angular2-credit-card-draw';
52
+ Import `CardDraw` into a standalone component's `imports`:
32
53
 
33
- @NgModule({
34
- declarations: [
35
- AppComponent
36
- ],
37
- imports: [
38
- BrowserModule,
39
-
40
- // Specify your library as an import
41
- LibraryModule
42
- ],
43
- providers: [],
44
- bootstrap: [AppComponent]
54
+ ```typescript
55
+ import {Component} from '@angular/core';
56
+ import {CardDraw} from 'angular2-credit-card-draw';
57
+
58
+ @Component({
59
+ selector: 'app-root',
60
+ standalone: true,
61
+ imports: [CardDraw],
62
+ template: `
63
+ <card-draw
64
+ [width]="'400px'"
65
+ [height]="'250px'"
66
+ [background]="'#1a1f71'"
67
+ [name]="cardholder"
68
+ [number]="cardNumber"
69
+ [expiration]="expiration"
70
+ [ccv]="securityCode"
71
+ [hideBrandLogo]="true"
72
+ [toggle]="showBack">
73
+ </card-draw>
74
+ `
45
75
  })
46
- export class AppModule { }
76
+ export class AppComponent {
77
+ cardholder = 'Emma Watson';
78
+ cardNumber = '1234 1234 1234 1234';
79
+ expiration = '12/29';
80
+ securityCode = '999';
81
+ showBack = false;
82
+ }
47
83
  ```
48
84
 
49
- Once your library is imported, you can use its components, directives and pipes in your Angular application:
85
+ Set `showBack` to `true` to display the back of the card. Hovering the card
86
+ also flips it.
87
+
88
+ ## NgModule usage
89
+
90
+ For an NgModule-based application, import `CardModule` in the module that uses
91
+ the `<card-draw>` element:
50
92
 
51
93
  ```typescript
52
- atributes:{
53
- background:'blue',
54
- name:'Emma Watson',
55
- number:'1234 1234 1234 1234',
56
- ccv:'999',
57
- expiration:'99/99',
58
- height:450px,
59
- width:450px
60
- }
61
- ```
62
- ```xml
63
- <!-- You can now use your library component in app.component.html -->
64
- <h1>
65
- {{title}}
66
- </h1>
67
- <card-draw [width]="atributes.width" [height]="atributes.height" [ccv]="atributes.ccv" [background]="atributes.background" [expiration]="atributes.expiration" [name]="atributes.name" [number]="atributes.number" >
68
- </card-draw>
94
+ import {NgModule} from '@angular/core';
95
+ import {CardModule} from 'angular2-credit-card-draw';
96
+
97
+ @NgModule({
98
+ imports: [CardModule]
99
+ })
100
+ export class AppModule {}
69
101
  ```
70
102
 
71
- ## Development
103
+ ## Development and Storybook
104
+
105
+ Install the development dependencies and start Storybook:
106
+
107
+ ```bash
108
+ npm install
109
+ npm run storybook
110
+ ```
72
111
 
73
- To generate all `*.js`, `*.js.map` and `*.d.ts` files:
112
+ Open `http://localhost:6006` to preview the **Front** and **Back** stories.
113
+ Use the Controls panel to edit the component inputs. Build a static Storybook
114
+ site with:
74
115
 
75
116
  ```bash
76
- $ npm run tsc
117
+ npm run build-storybook
77
118
  ```
78
119
 
79
- To lint all `*.ts` files:
120
+ Build the distributable Angular package with:
80
121
 
81
122
  ```bash
82
- $ npm run lint
123
+ npm run build
83
124
  ```
84
125
 
126
+ The package output is written to `dist/angular2-credit-card-draw`.
127
+
128
+ ## Live demo
129
+
130
+ https://plnkr.co/edit/8kiEx9ZXOZsDJB2CAtcp?p=preview
131
+
85
132
  ## License
86
133
 
87
134
  MIT © [Dennis Oliveira Cremasco](dennisdoc@hotmail.com)
@@ -0,0 +1,63 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Input, Component, NgModule } from '@angular/core';
3
+
4
+ class CardDraw {
5
+ number = '';
6
+ name = '';
7
+ expiration = '';
8
+ ccv = '';
9
+ background = '';
10
+ height = '';
11
+ width = '';
12
+ toggle = false;
13
+ hideBrandLogo = false;
14
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CardDraw, deps: [], target: i0.ɵɵFactoryTarget.Component });
15
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CardDraw, isStandalone: true, selector: "card-draw", inputs: { number: "number", name: "name", expiration: "expiration", ccv: "ccv", background: "background", height: "height", width: "width", toggle: "toggle", hideBrandLogo: "hideBrandLogo" }, ngImport: i0, template: "<div>\n\t<div class=\"checkout\">\n\t <div class=\"credit-card-box {{toggle ? 'hover':''}}\">\n\t <div class=\"flip\">\n\t <div [style.width]=\"width\" [style.height]=\"height\" [style.background]=\"background\" class=\"front\">\n\t <div class=\"chip\"></div>\n\t <div class=\"logo\" [hidden]=\"hideBrandLogo\">\n\t <svg version=\"1.1\" id=\"visa\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t width=\"47.834px\" height=\"47.834px\" viewBox=\"0 0 47.834 47.834\" style=\"enable-background:new 0 0 47.834 47.834;\">\n\t <g>\n\t <g>\n\t <path d=\"M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143\n\t c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01\n\t c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z\n\t M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228\n\t c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77\n\t c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092\n\t l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77\n\t C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304\n\t C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161\n\t c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066\n\t h-3.888L19.153,16.8z\">\n\t </path>\n\t </g>\n\t </g>\n\t </svg>\n\t </div>\n\t <div class=\"number\">{{number}}</div>\n\t <div class=\"card-holder\">\n\t <label>Card holder</label>\n\t <div>{{name}}</div>\n\t </div>\n\t <div class=\"card-expiration-date\">\n\t <label>Expires</label>\n\t <div>{{expiration}}</div>\n\t </div>\n\t </div>\n\t <div [style.width]=\"width\" [style.height]=\"height\" [style.background]=\"background\" class=\"back\">\n\t <div class=\"strip\"></div>\n\t <div class=\"logo\" [hidden]=\"hideBrandLogo\">\n\t <svg version=\"1.1\" id=\"visa\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t width=\"47.834px\" height=\"47.834px\" viewBox=\"0 0 47.834 47.834\" style=\"enable-background:new 0 0 47.834 47.834;\">\n\t <g>\n\t <g>\n\t <path d=\"M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143\n\t c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01\n\t c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z\n\t M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228\n\t c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77\n\t c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092\n\t l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77\n\t C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304\n\t C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161\n\t c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066\n\t h-3.888L19.153,16.8z\">\n\t \t</path>\n\t </g>\n\t </g>\n\t </svg>\n\n\t </div>\n\t <div class=\"ccv\">\n\t <label>CCV</label>\n\t <div>{{ccv}}</div>\n\t </div>\n\t </div>\n\t </div>\n\t </div>\n\t</div>\n\t<style>\n\t\t*,\n\t\t*::before,\n\t\t*::after {\n\t\t box-sizing: border-box;\n\t\t}\n\n\t\thtml,\n\t\tbody {\n\t\t min-height: 100%;\n\t\t font-family: 'Open sans', sans-serif;\n\t\t}\n\n\t\tbody {\n\t\t background: -webkit-linear-gradient(40deg, #f3c680, #a1e3e2);\n\t\t background: linear-gradient(50deg, #f3c680, #a1e3e2);\n\t\t}\n\n\t\t/*--------------------\n\t\tButtons\n\t\t--------------------*/\n\t\t.btn {\n\t\t display: block;\n\t\t background: #bded7d;\n\t\t color: white;\n\t\t text-decoration: none;\n\t\t margin: 20px 0;\n\t\t padding: 15px 15px;\n\t\t border-radius: 5px;\n\t\t position: relative;\n\t\t}\n\t\t.btn::after {\n\t\t content: '';\n\t\t position: absolute;\n\t\t z-index: 1;\n\t\t top: 0;\n\t\t left: 0;\n\t\t width: 100%;\n\t\t height: 100%;\n\t\t -webkit-transition: all .2s ease-in-out;\n\t\t transition: all .2s ease-in-out;\n\t\t box-shadow: inset 0 3px 0 transparent, 0 3px 3px rgba(0, 0, 0, 0.2);\n\t\t border-radius: 5px;\n\t\t}\n\t\t.btn:hover::after {\n\t\t background: rgba(0, 0, 0, 0.1);\n\t\t box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.2);\n\t\t}\n\n\t\t/*--------------------\n\t\tForm\n\t\t--------------------*/\n\t\t.form fieldset {\n\t\t border: none;\n\t\t padding: 0;\n\t\t padding: 10px 0;\n\t\t position: relative;\n\t\t clear: both;\n\t\t}\n\t\t.form fieldset.fieldset-expiration {\n\t\t float: left;\n\t\t width: 60%;\n\t\t}\n\t\t.form fieldset.fieldset-expiration .select {\n\t\t width: 84px;\n\t\t margin-right: 12px;\n\t\t float: left;\n\t\t}\n\t\t.form fieldset.fieldset-ccv {\n\t\t clear: none;\n\t\t float: right;\n\t\t width: 86px;\n\t\t}\n\t\t.form fieldset label {\n\t\t display: block;\n\t\t text-transform: uppercase;\n\t\t font-size: 11px;\n\t\t color: rgba(0, 0, 0, 0.6);\n\t\t margin-bottom: 5px;\n\t\t font-weight: bold;\n\t\t font-family: Inconsolata;\n\t\t}\n\t\t.form fieldset input,\n\t\t.form fieldset .select {\n\t\t width: 100%;\n\t\t height: 38px;\n\t\t color: #333333;\n\t\t padding: 10px;\n\t\t border-radius: 5px;\n\t\t font-size: 15px;\n\t\t outline: none !important;\n\t\t border: 1px solid rgba(0, 0, 0, 0.3);\n\t\t box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);\n\t\t}\n\t\t.form fieldset input.input-cart-number,\n\t\t.form fieldset .select.input-cart-number {\n\t\t width: 82px;\n\t\t display: inline-block;\n\t\t margin-right: 8px;\n\t\t}\n\t\t.form fieldset input.input-cart-number:last-child,\n\t\t.form fieldset .select.input-cart-number:last-child {\n\t\t margin-right: 0;\n\t\t}\n\t\t.form fieldset .select {\n\t\t position: relative;\n\t\t}\n\t\t.form fieldset .select::after {\n\t\t content: '';\n\t\t border-top: 8px solid #222;\n\t\t border-left: 4px solid transparent;\n\t\t border-right: 4px solid transparent;\n\t\t position: absolute;\n\t\t z-index: 2;\n\t\t top: 14px;\n\t\t right: 10px;\n\t\t pointer-events: none;\n\t\t}\n\t\t.form fieldset .select select {\n\t\t -webkit-appearance: none;\n\t\t -moz-appearance: none;\n\t\t appearance: none;\n\t\t position: absolute;\n\t\t padding: 0;\n\t\t border: none;\n\t\t width: 100%;\n\t\t outline: none !important;\n\t\t top: 6px;\n\t\t left: 6px;\n\t\t background: none;\n\t\t}\n\t\t.form fieldset .select select :-moz-focusring {\n\t\t color: transparent;\n\t\t text-shadow: 0 0 0 #000;\n\t\t}\n\t\t.form button {\n\t\t width: 100%;\n\t\t outline: none !important;\n\t\t background: -webkit-linear-gradient(top, #49a09b, #3d8291);\n\t\t background: linear-gradient(180deg, #49a09b, #3d8291);\n\t\t text-transform: uppercase;\n\t\t font-weight: bold;\n\t\t border: none;\n\t\t box-shadow: none;\n\t\t text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\n\t\t margin-top: 90px;\n\t\t}\n\t\t.form button .fa {\n\t\t margin-right: 6px;\n\t\t}\n\n\t\t/*--------------------\n\t\tCheckout\n\t\t--------------------*/\n\t\t.checkout {\n\t\t\tmargin: 20px auto 0px;\n\t \t\tposition: relative;\n\t \t\tmax-width: 460px;\n\t \t\tborder-radius: 15px;\n\t\t}\n\n\t\t/*--------------------\n\t\tCredit Card\n\t\t--------------------*/\n\t\t.credit-card-box {\n\t\t -webkit-perspective: 1000;\n\t\t perspective: 1000;\n\t\t width: 400px;\n\t\t height: 280px;\n\t\t position: relative;\n\t\t left: 50%;\n\t\t -webkit-transform: translateX(-50%);\n\t\t transform: translateX(-50%);\n\t\t}\n\t\t.credit-card-box:hover .flip, .credit-card-box.hover .flip {\n\t\t -webkit-transform: rotateY(180deg);\n\t\t transform: rotateY(180deg);\n\t\t}\n\t\t.credit-card-box .front,\n\t\t.credit-card-box .back {\n\t\t width: 400px;\n\t\t height: 250px;\n\t\t border-radius: 15px;\n\t\t -webkit-backface-visibility: hidden;\n\t\t backface-visibility: hidden;\n\t\t background: linear-gradient(135deg, #bd6772, #53223f);\n\t\t position: absolute;\n\t\t color: #fff;\n\t\t font-family: Inconsolata;\n\t\t top: 0;\n\t\t left: 0;\n\t\t text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);\n\t\t box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);\n\t\t}\n\t\t.credit-card-box .front::before,\n\t\t.credit-card-box .back::before {\n\t\t content: '';\n\t\t position: absolute;\n\t\t width: 100%;\n\t\t height: 100%;\n\t\t top: 0;\n\t\t left: 0;\n\t\t background: url(\"http://cdn.flaticon.com/svg/44/44386.svg\") no-repeat center;\n\t\t background-size: cover;\n\t\t opacity: .05;\n\t\t}\n\t\t.credit-card-box .flip {\n\t\t -webkit-transition: 0.6s;\n\t\t transition: 0.6s;\n\t\t -webkit-transform-style: preserve-3d;\n\t\t transform-style: preserve-3d;\n\t\t position: relative;\n\t\t}\n\t\t.credit-card-box .logo {\n\t\t position: absolute;\n\t\t top: 9px;\n\t\t right: 20px;\n\t\t width: 60px;\n\t\t}\n\t\t.credit-card-box .logo svg {\n\t\t width: 100%;\n\t\t height: auto;\n\t\t fill: #fff;\n\t\t}\n\t\t.credit-card-box .front {\n\t\t z-index: 2;\n\t\t -webkit-transform: rotateY(0deg);\n\t\t transform: rotateY(0deg);\n\t\t}\n\t\t.credit-card-box .back {\n\t\t -webkit-transform: rotateY(180deg);\n\t\t transform: rotateY(180deg);\n\t\t}\n\t\t.credit-card-box .back .logo {\n\t\t top: 185px;\n\t\t}\n\t\t.credit-card-box .chip {\n\t\t position: absolute;\n\t\t width: 60px;\n\t\t height: 45px;\n\t\t top: 20px;\n\t\t left: 20px;\n\t\t background: -webkit-linear-gradient(315deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);\n\t\t background: linear-gradient(135deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);\n\t\t border-radius: 8px;\n\t\t}\n\t\t.credit-card-box .chip::before {\n\t\t content: '';\n\t\t position: absolute;\n\t\t top: 0;\n\t\t bottom: 0;\n\t\t left: 0;\n\t\t right: 0;\n\t\t margin: auto;\n\t\t border: 4px solid rgba(128, 128, 128, 0.1);\n\t\t width: 80%;\n\t\t height: 70%;\n\t\t border-radius: 5px;\n\t\t}\n\t\t.credit-card-box .strip {\n\t\t background: -webkit-linear-gradient(315deg, #404040, #1a1a1a);\n\t\t background: linear-gradient(135deg, #404040, #1a1a1a);\n\t\t position: absolute;\n\t\t width: 100%;\n\t\t height: 50px;\n\t\t top: 30px;\n\t\t left: 0;\n\t\t}\n\t\t.credit-card-box .number {\n\t\t position: absolute;\n\t\t margin: 0 auto;\n\t\t top: 103px;\n\t\t left: 19px;\n\t\t font-size: 30px;\n\t\t}\n\t\t.credit-card-box label {\n\t\t font-size: 10px;\n\t\t letter-spacing: 1px;\n\t\t text-shadow: none;\n\t\t text-transform: uppercase;\n\t\t font-weight: normal;\n\t\t opacity: 0.5;\n\t\t display: block;\n\t\t margin-bottom: 3px;\n\t\t}\n\t\t.credit-card-box .card-holder,\n\t\t.credit-card-box .card-expiration-date {\n\t\t position: absolute;\n\t\t margin: 0 auto;\n\t\t top: 180px;\n\t\t left: 19px;\n\t\t font-size: 22px;\n\t\t text-transform: capitalize;\n\t\t}\n\t\t.credit-card-box .card-expiration-date {\n\t\t text-align: right;\n\t\t left: auto;\n\t\t right: 20px;\n\t\t}\n\t\t.credit-card-box .ccv {\n\t\t height: 36px;\n\t\t background: #fff;\n\t\t width: 91%;\n\t\t border-radius: 5px;\n\t\t top: 110px;\n\t\t left: 0;\n\t\t right: 0;\n\t\t position: absolute;\n\t\t margin: 0 auto;\n\t\t color: #000;\n\t\t text-align: right;\n\t\t padding: 10px;\n\t\t}\n\t\t.credit-card-box .ccv label {\n\t\t margin: -25px 0 14px;\n\t\t color: #fff;\n\t\t}\n\n\t</style>\n</div>", styles: ["*,*:before,*:after{box-sizing:border-box}html,body{min-height:100%;font-family:Open sans,sans-serif}body{background:-webkit-linear-gradient(40deg,#f3c680,#a1e3e2);background:linear-gradient(50deg,#f3c680,#a1e3e2)}.btn{display:block;background:#bded7d;color:#fff;text-decoration:none;margin:20px 0;padding:15px;border-radius:5px;position:relative}.btn:after{content:\"\";position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;box-shadow:inset 0 3px 0 transparent,0 3px 3px #0003;border-radius:5px}.btn:hover:after{background:#0000001a;box-shadow:inset 0 3px #0003}.form fieldset{border:none;padding:10px 0;position:relative;clear:both}.form fieldset.fieldset-expiration{float:left;width:60%}.form fieldset.fieldset-expiration .select{width:84px;margin-right:12px;float:left}.form fieldset.fieldset-ccv{clear:none;float:right;width:86px}.form fieldset label{display:block;text-transform:uppercase;font-size:11px;color:#0009;margin-bottom:5px;font-weight:700;font-family:Inconsolata}.form fieldset input,.form fieldset .select{width:100%;height:38px;color:#333;padding:10px;border-radius:5px;font-size:15px;outline:none!important;border:1px solid rgba(0,0,0,.3);box-shadow:inset 0 1px 4px #0003}.form fieldset input.input-cart-number,.form fieldset .select.input-cart-number{width:82px;display:inline-block;margin-right:8px}.form fieldset input.input-cart-number:last-child,.form fieldset .select.input-cart-number:last-child{margin-right:0}.form fieldset .select{position:relative}.form fieldset .select:after{content:\"\";border-top:8px solid #222;border-left:4px solid transparent;border-right:4px solid transparent;position:absolute;z-index:2;top:14px;right:10px;pointer-events:none}.form fieldset .select select{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;padding:0;border:none;width:100%;outline:none!important;top:6px;left:6px;background:none}.form fieldset .select select :-moz-focusring{color:transparent;text-shadow:0 0 0 #000}.form button{width:100%;outline:none!important;background:-webkit-linear-gradient(top,#49a09b,#3d8291);background:linear-gradient(180deg,#49a09b,#3d8291);text-transform:uppercase;font-weight:700;border:none;box-shadow:none;text-shadow:0 1px 2px rgba(0,0,0,.2);margin-top:90px}.form button .fa{margin-right:6px}.checkout{margin:20px auto 0;position:relative;max-width:460px;border-radius:15px}.credit-card-box{-webkit-perspective:1000;perspective:1000;width:400px;height:280px;position:relative;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.credit-card-box:hover .flip,.credit-card-box.hover .flip{-webkit-transform:rotateY(180deg);transform:rotateY(180deg)}.credit-card-box .front,.credit-card-box .back{width:400px;height:250px;border-radius:15px;-webkit-backface-visibility:hidden;backface-visibility:hidden;background:linear-gradient(135deg,#bd6772,#53223f);position:absolute;color:#fff;font-family:Inconsolata;top:0;left:0;text-shadow:0 1px 1px rgba(0,0,0,.3);box-shadow:0 1px 6px #0000004d}.credit-card-box .front:before,.credit-card-box .back:before{content:\"\";position:absolute;width:100%;height:100%;top:0;left:0;background:url(http://cdn.flaticon.com/svg/44/44386.svg) no-repeat center;background-size:cover;opacity:.05}.credit-card-box .flip{-webkit-transition:.6s;transition:.6s;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;position:relative}.credit-card-box .logo{position:absolute;top:9px;right:20px;width:60px}.credit-card-box .logo svg{width:100%;height:auto;fill:#fff}.credit-card-box .front{z-index:2;-webkit-transform:rotateY(0deg);transform:rotateY(0)}.credit-card-box .back{-webkit-transform:rotateY(180deg);transform:rotateY(180deg)}.credit-card-box .back .logo{top:185px}.credit-card-box .chip{position:absolute;width:60px;height:45px;top:20px;left:20px;background:-webkit-linear-gradient(315deg,#ddccf0 0%,#d1e9f5 44%,#f8ece7 100%);background:linear-gradient(135deg,#ddccf0,#d1e9f5 44%,#f8ece7);border-radius:8px}.credit-card-box .chip:before{content:\"\";position:absolute;inset:0;margin:auto;border:4px solid rgba(128,128,128,.1);width:80%;height:70%;border-radius:5px}.credit-card-box .strip{background:-webkit-linear-gradient(315deg,#404040,#1a1a1a);background:linear-gradient(135deg,#404040,#1a1a1a);position:absolute;width:100%;height:50px;top:30px;left:0}.credit-card-box .number{position:absolute;margin:0 auto;top:103px;left:19px;font-size:30px}.credit-card-box label{font-size:10px;letter-spacing:1px;text-shadow:none;text-transform:uppercase;font-weight:400;opacity:.5;display:block;margin-bottom:3px}.credit-card-box .card-holder,.credit-card-box .card-expiration-date{position:absolute;margin:0 auto;top:180px;left:19px;font-size:22px;text-transform:capitalize}.credit-card-box .card-expiration-date{text-align:right;left:auto;right:20px}.credit-card-box .ccv{height:36px;background:#fff;width:91%;border-radius:5px;top:110px;left:0;right:0;position:absolute;margin:0 auto;color:#000;text-align:right;padding:10px}.credit-card-box .ccv label{margin:-25px 0 14px;color:#fff}\n"] });
16
+ }
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CardDraw, decorators: [{
18
+ type: Component,
19
+ args: [{ selector: 'card-draw', standalone: true, template: "<div>\n\t<div class=\"checkout\">\n\t <div class=\"credit-card-box {{toggle ? 'hover':''}}\">\n\t <div class=\"flip\">\n\t <div [style.width]=\"width\" [style.height]=\"height\" [style.background]=\"background\" class=\"front\">\n\t <div class=\"chip\"></div>\n\t <div class=\"logo\" [hidden]=\"hideBrandLogo\">\n\t <svg version=\"1.1\" id=\"visa\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t width=\"47.834px\" height=\"47.834px\" viewBox=\"0 0 47.834 47.834\" style=\"enable-background:new 0 0 47.834 47.834;\">\n\t <g>\n\t <g>\n\t <path d=\"M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143\n\t c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01\n\t c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z\n\t M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228\n\t c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77\n\t c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092\n\t l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77\n\t C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304\n\t C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161\n\t c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066\n\t h-3.888L19.153,16.8z\">\n\t </path>\n\t </g>\n\t </g>\n\t </svg>\n\t </div>\n\t <div class=\"number\">{{number}}</div>\n\t <div class=\"card-holder\">\n\t <label>Card holder</label>\n\t <div>{{name}}</div>\n\t </div>\n\t <div class=\"card-expiration-date\">\n\t <label>Expires</label>\n\t <div>{{expiration}}</div>\n\t </div>\n\t </div>\n\t <div [style.width]=\"width\" [style.height]=\"height\" [style.background]=\"background\" class=\"back\">\n\t <div class=\"strip\"></div>\n\t <div class=\"logo\" [hidden]=\"hideBrandLogo\">\n\t <svg version=\"1.1\" id=\"visa\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t width=\"47.834px\" height=\"47.834px\" viewBox=\"0 0 47.834 47.834\" style=\"enable-background:new 0 0 47.834 47.834;\">\n\t <g>\n\t <g>\n\t <path d=\"M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143\n\t c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01\n\t c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z\n\t M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228\n\t c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77\n\t c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092\n\t l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77\n\t C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304\n\t C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161\n\t c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066\n\t h-3.888L19.153,16.8z\">\n\t \t</path>\n\t </g>\n\t </g>\n\t </svg>\n\n\t </div>\n\t <div class=\"ccv\">\n\t <label>CCV</label>\n\t <div>{{ccv}}</div>\n\t </div>\n\t </div>\n\t </div>\n\t </div>\n\t</div>\n\t<style>\n\t\t*,\n\t\t*::before,\n\t\t*::after {\n\t\t box-sizing: border-box;\n\t\t}\n\n\t\thtml,\n\t\tbody {\n\t\t min-height: 100%;\n\t\t font-family: 'Open sans', sans-serif;\n\t\t}\n\n\t\tbody {\n\t\t background: -webkit-linear-gradient(40deg, #f3c680, #a1e3e2);\n\t\t background: linear-gradient(50deg, #f3c680, #a1e3e2);\n\t\t}\n\n\t\t/*--------------------\n\t\tButtons\n\t\t--------------------*/\n\t\t.btn {\n\t\t display: block;\n\t\t background: #bded7d;\n\t\t color: white;\n\t\t text-decoration: none;\n\t\t margin: 20px 0;\n\t\t padding: 15px 15px;\n\t\t border-radius: 5px;\n\t\t position: relative;\n\t\t}\n\t\t.btn::after {\n\t\t content: '';\n\t\t position: absolute;\n\t\t z-index: 1;\n\t\t top: 0;\n\t\t left: 0;\n\t\t width: 100%;\n\t\t height: 100%;\n\t\t -webkit-transition: all .2s ease-in-out;\n\t\t transition: all .2s ease-in-out;\n\t\t box-shadow: inset 0 3px 0 transparent, 0 3px 3px rgba(0, 0, 0, 0.2);\n\t\t border-radius: 5px;\n\t\t}\n\t\t.btn:hover::after {\n\t\t background: rgba(0, 0, 0, 0.1);\n\t\t box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.2);\n\t\t}\n\n\t\t/*--------------------\n\t\tForm\n\t\t--------------------*/\n\t\t.form fieldset {\n\t\t border: none;\n\t\t padding: 0;\n\t\t padding: 10px 0;\n\t\t position: relative;\n\t\t clear: both;\n\t\t}\n\t\t.form fieldset.fieldset-expiration {\n\t\t float: left;\n\t\t width: 60%;\n\t\t}\n\t\t.form fieldset.fieldset-expiration .select {\n\t\t width: 84px;\n\t\t margin-right: 12px;\n\t\t float: left;\n\t\t}\n\t\t.form fieldset.fieldset-ccv {\n\t\t clear: none;\n\t\t float: right;\n\t\t width: 86px;\n\t\t}\n\t\t.form fieldset label {\n\t\t display: block;\n\t\t text-transform: uppercase;\n\t\t font-size: 11px;\n\t\t color: rgba(0, 0, 0, 0.6);\n\t\t margin-bottom: 5px;\n\t\t font-weight: bold;\n\t\t font-family: Inconsolata;\n\t\t}\n\t\t.form fieldset input,\n\t\t.form fieldset .select {\n\t\t width: 100%;\n\t\t height: 38px;\n\t\t color: #333333;\n\t\t padding: 10px;\n\t\t border-radius: 5px;\n\t\t font-size: 15px;\n\t\t outline: none !important;\n\t\t border: 1px solid rgba(0, 0, 0, 0.3);\n\t\t box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);\n\t\t}\n\t\t.form fieldset input.input-cart-number,\n\t\t.form fieldset .select.input-cart-number {\n\t\t width: 82px;\n\t\t display: inline-block;\n\t\t margin-right: 8px;\n\t\t}\n\t\t.form fieldset input.input-cart-number:last-child,\n\t\t.form fieldset .select.input-cart-number:last-child {\n\t\t margin-right: 0;\n\t\t}\n\t\t.form fieldset .select {\n\t\t position: relative;\n\t\t}\n\t\t.form fieldset .select::after {\n\t\t content: '';\n\t\t border-top: 8px solid #222;\n\t\t border-left: 4px solid transparent;\n\t\t border-right: 4px solid transparent;\n\t\t position: absolute;\n\t\t z-index: 2;\n\t\t top: 14px;\n\t\t right: 10px;\n\t\t pointer-events: none;\n\t\t}\n\t\t.form fieldset .select select {\n\t\t -webkit-appearance: none;\n\t\t -moz-appearance: none;\n\t\t appearance: none;\n\t\t position: absolute;\n\t\t padding: 0;\n\t\t border: none;\n\t\t width: 100%;\n\t\t outline: none !important;\n\t\t top: 6px;\n\t\t left: 6px;\n\t\t background: none;\n\t\t}\n\t\t.form fieldset .select select :-moz-focusring {\n\t\t color: transparent;\n\t\t text-shadow: 0 0 0 #000;\n\t\t}\n\t\t.form button {\n\t\t width: 100%;\n\t\t outline: none !important;\n\t\t background: -webkit-linear-gradient(top, #49a09b, #3d8291);\n\t\t background: linear-gradient(180deg, #49a09b, #3d8291);\n\t\t text-transform: uppercase;\n\t\t font-weight: bold;\n\t\t border: none;\n\t\t box-shadow: none;\n\t\t text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\n\t\t margin-top: 90px;\n\t\t}\n\t\t.form button .fa {\n\t\t margin-right: 6px;\n\t\t}\n\n\t\t/*--------------------\n\t\tCheckout\n\t\t--------------------*/\n\t\t.checkout {\n\t\t\tmargin: 20px auto 0px;\n\t \t\tposition: relative;\n\t \t\tmax-width: 460px;\n\t \t\tborder-radius: 15px;\n\t\t}\n\n\t\t/*--------------------\n\t\tCredit Card\n\t\t--------------------*/\n\t\t.credit-card-box {\n\t\t -webkit-perspective: 1000;\n\t\t perspective: 1000;\n\t\t width: 400px;\n\t\t height: 280px;\n\t\t position: relative;\n\t\t left: 50%;\n\t\t -webkit-transform: translateX(-50%);\n\t\t transform: translateX(-50%);\n\t\t}\n\t\t.credit-card-box:hover .flip, .credit-card-box.hover .flip {\n\t\t -webkit-transform: rotateY(180deg);\n\t\t transform: rotateY(180deg);\n\t\t}\n\t\t.credit-card-box .front,\n\t\t.credit-card-box .back {\n\t\t width: 400px;\n\t\t height: 250px;\n\t\t border-radius: 15px;\n\t\t -webkit-backface-visibility: hidden;\n\t\t backface-visibility: hidden;\n\t\t background: linear-gradient(135deg, #bd6772, #53223f);\n\t\t position: absolute;\n\t\t color: #fff;\n\t\t font-family: Inconsolata;\n\t\t top: 0;\n\t\t left: 0;\n\t\t text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);\n\t\t box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);\n\t\t}\n\t\t.credit-card-box .front::before,\n\t\t.credit-card-box .back::before {\n\t\t content: '';\n\t\t position: absolute;\n\t\t width: 100%;\n\t\t height: 100%;\n\t\t top: 0;\n\t\t left: 0;\n\t\t background: url(\"http://cdn.flaticon.com/svg/44/44386.svg\") no-repeat center;\n\t\t background-size: cover;\n\t\t opacity: .05;\n\t\t}\n\t\t.credit-card-box .flip {\n\t\t -webkit-transition: 0.6s;\n\t\t transition: 0.6s;\n\t\t -webkit-transform-style: preserve-3d;\n\t\t transform-style: preserve-3d;\n\t\t position: relative;\n\t\t}\n\t\t.credit-card-box .logo {\n\t\t position: absolute;\n\t\t top: 9px;\n\t\t right: 20px;\n\t\t width: 60px;\n\t\t}\n\t\t.credit-card-box .logo svg {\n\t\t width: 100%;\n\t\t height: auto;\n\t\t fill: #fff;\n\t\t}\n\t\t.credit-card-box .front {\n\t\t z-index: 2;\n\t\t -webkit-transform: rotateY(0deg);\n\t\t transform: rotateY(0deg);\n\t\t}\n\t\t.credit-card-box .back {\n\t\t -webkit-transform: rotateY(180deg);\n\t\t transform: rotateY(180deg);\n\t\t}\n\t\t.credit-card-box .back .logo {\n\t\t top: 185px;\n\t\t}\n\t\t.credit-card-box .chip {\n\t\t position: absolute;\n\t\t width: 60px;\n\t\t height: 45px;\n\t\t top: 20px;\n\t\t left: 20px;\n\t\t background: -webkit-linear-gradient(315deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);\n\t\t background: linear-gradient(135deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);\n\t\t border-radius: 8px;\n\t\t}\n\t\t.credit-card-box .chip::before {\n\t\t content: '';\n\t\t position: absolute;\n\t\t top: 0;\n\t\t bottom: 0;\n\t\t left: 0;\n\t\t right: 0;\n\t\t margin: auto;\n\t\t border: 4px solid rgba(128, 128, 128, 0.1);\n\t\t width: 80%;\n\t\t height: 70%;\n\t\t border-radius: 5px;\n\t\t}\n\t\t.credit-card-box .strip {\n\t\t background: -webkit-linear-gradient(315deg, #404040, #1a1a1a);\n\t\t background: linear-gradient(135deg, #404040, #1a1a1a);\n\t\t position: absolute;\n\t\t width: 100%;\n\t\t height: 50px;\n\t\t top: 30px;\n\t\t left: 0;\n\t\t}\n\t\t.credit-card-box .number {\n\t\t position: absolute;\n\t\t margin: 0 auto;\n\t\t top: 103px;\n\t\t left: 19px;\n\t\t font-size: 30px;\n\t\t}\n\t\t.credit-card-box label {\n\t\t font-size: 10px;\n\t\t letter-spacing: 1px;\n\t\t text-shadow: none;\n\t\t text-transform: uppercase;\n\t\t font-weight: normal;\n\t\t opacity: 0.5;\n\t\t display: block;\n\t\t margin-bottom: 3px;\n\t\t}\n\t\t.credit-card-box .card-holder,\n\t\t.credit-card-box .card-expiration-date {\n\t\t position: absolute;\n\t\t margin: 0 auto;\n\t\t top: 180px;\n\t\t left: 19px;\n\t\t font-size: 22px;\n\t\t text-transform: capitalize;\n\t\t}\n\t\t.credit-card-box .card-expiration-date {\n\t\t text-align: right;\n\t\t left: auto;\n\t\t right: 20px;\n\t\t}\n\t\t.credit-card-box .ccv {\n\t\t height: 36px;\n\t\t background: #fff;\n\t\t width: 91%;\n\t\t border-radius: 5px;\n\t\t top: 110px;\n\t\t left: 0;\n\t\t right: 0;\n\t\t position: absolute;\n\t\t margin: 0 auto;\n\t\t color: #000;\n\t\t text-align: right;\n\t\t padding: 10px;\n\t\t}\n\t\t.credit-card-box .ccv label {\n\t\t margin: -25px 0 14px;\n\t\t color: #fff;\n\t\t}\n\n\t</style>\n</div>" }]
20
+ }], propDecorators: { number: [{
21
+ type: Input
22
+ }], name: [{
23
+ type: Input
24
+ }], expiration: [{
25
+ type: Input
26
+ }], ccv: [{
27
+ type: Input
28
+ }], background: [{
29
+ type: Input
30
+ }], height: [{
31
+ type: Input
32
+ }], width: [{
33
+ type: Input
34
+ }], toggle: [{
35
+ type: Input
36
+ }], hideBrandLogo: [{
37
+ type: Input
38
+ }] } });
39
+
40
+ class CardModule {
41
+ static forRoot() {
42
+ return {
43
+ ngModule: CardModule
44
+ };
45
+ }
46
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
47
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: CardModule, imports: [CardDraw], exports: [CardDraw] });
48
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CardModule });
49
+ }
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CardModule, decorators: [{
51
+ type: NgModule,
52
+ args: [{
53
+ imports: [CardDraw],
54
+ exports: [CardDraw]
55
+ }]
56
+ }] });
57
+
58
+ /**
59
+ * Generated bundle index. Do not edit.
60
+ */
61
+
62
+ export { CardDraw, CardModule };
63
+ //# sourceMappingURL=angular2-credit-card-draw.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular2-credit-card-draw.mjs","sources":["../../../src/card.component.ts","../../../src/card.html","../../../src/card.module.ts","../../../src/angular2-credit-card-draw.ts"],"sourcesContent":["import {Component, Input} from '@angular/core';\n\n@Component({\n\tselector: 'card-draw',\n\ttemplateUrl: './card.html',\n\tstandalone: true\n})\nexport class CardDraw {\n\t@Input() number = '';\n\t@Input() name = '';\n\t@Input() expiration = '';\n\t@Input() ccv = '';\n\t@Input() background = '';\n\t@Input() height = '';\n\t@Input() width = '';\n\t@Input() toggle = false;\n\t@Input() hideBrandLogo = false;\n}","<div>\n\t<div class=\"checkout\">\n\t <div class=\"credit-card-box {{toggle ? 'hover':''}}\">\n\t <div class=\"flip\">\n\t <div [style.width]=\"width\" [style.height]=\"height\" [style.background]=\"background\" class=\"front\">\n\t <div class=\"chip\"></div>\n\t <div class=\"logo\" [hidden]=\"hideBrandLogo\">\n\t <svg version=\"1.1\" id=\"visa\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t width=\"47.834px\" height=\"47.834px\" viewBox=\"0 0 47.834 47.834\" style=\"enable-background:new 0 0 47.834 47.834;\">\n\t <g>\n\t <g>\n\t <path d=\"M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143\n\t c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01\n\t c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z\n\t M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228\n\t c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77\n\t c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092\n\t l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77\n\t C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304\n\t C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161\n\t c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066\n\t h-3.888L19.153,16.8z\">\n\t </path>\n\t </g>\n\t </g>\n\t </svg>\n\t </div>\n\t <div class=\"number\">{{number}}</div>\n\t <div class=\"card-holder\">\n\t <label>Card holder</label>\n\t <div>{{name}}</div>\n\t </div>\n\t <div class=\"card-expiration-date\">\n\t <label>Expires</label>\n\t <div>{{expiration}}</div>\n\t </div>\n\t </div>\n\t <div [style.width]=\"width\" [style.height]=\"height\" [style.background]=\"background\" class=\"back\">\n\t <div class=\"strip\"></div>\n\t <div class=\"logo\" [hidden]=\"hideBrandLogo\">\n\t <svg version=\"1.1\" id=\"visa\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t width=\"47.834px\" height=\"47.834px\" viewBox=\"0 0 47.834 47.834\" style=\"enable-background:new 0 0 47.834 47.834;\">\n\t <g>\n\t <g>\n\t <path d=\"M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143\n\t c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01\n\t c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z\n\t M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228\n\t c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77\n\t c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092\n\t l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77\n\t C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304\n\t C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161\n\t c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066\n\t h-3.888L19.153,16.8z\">\n\t \t</path>\n\t </g>\n\t </g>\n\t </svg>\n\n\t </div>\n\t <div class=\"ccv\">\n\t <label>CCV</label>\n\t <div>{{ccv}}</div>\n\t </div>\n\t </div>\n\t </div>\n\t </div>\n\t</div>\n\t<style>\n\t\t*,\n\t\t*::before,\n\t\t*::after {\n\t\t box-sizing: border-box;\n\t\t}\n\n\t\thtml,\n\t\tbody {\n\t\t min-height: 100%;\n\t\t font-family: 'Open sans', sans-serif;\n\t\t}\n\n\t\tbody {\n\t\t background: -webkit-linear-gradient(40deg, #f3c680, #a1e3e2);\n\t\t background: linear-gradient(50deg, #f3c680, #a1e3e2);\n\t\t}\n\n\t\t/*--------------------\n\t\tButtons\n\t\t--------------------*/\n\t\t.btn {\n\t\t display: block;\n\t\t background: #bded7d;\n\t\t color: white;\n\t\t text-decoration: none;\n\t\t margin: 20px 0;\n\t\t padding: 15px 15px;\n\t\t border-radius: 5px;\n\t\t position: relative;\n\t\t}\n\t\t.btn::after {\n\t\t content: '';\n\t\t position: absolute;\n\t\t z-index: 1;\n\t\t top: 0;\n\t\t left: 0;\n\t\t width: 100%;\n\t\t height: 100%;\n\t\t -webkit-transition: all .2s ease-in-out;\n\t\t transition: all .2s ease-in-out;\n\t\t box-shadow: inset 0 3px 0 transparent, 0 3px 3px rgba(0, 0, 0, 0.2);\n\t\t border-radius: 5px;\n\t\t}\n\t\t.btn:hover::after {\n\t\t background: rgba(0, 0, 0, 0.1);\n\t\t box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.2);\n\t\t}\n\n\t\t/*--------------------\n\t\tForm\n\t\t--------------------*/\n\t\t.form fieldset {\n\t\t border: none;\n\t\t padding: 0;\n\t\t padding: 10px 0;\n\t\t position: relative;\n\t\t clear: both;\n\t\t}\n\t\t.form fieldset.fieldset-expiration {\n\t\t float: left;\n\t\t width: 60%;\n\t\t}\n\t\t.form fieldset.fieldset-expiration .select {\n\t\t width: 84px;\n\t\t margin-right: 12px;\n\t\t float: left;\n\t\t}\n\t\t.form fieldset.fieldset-ccv {\n\t\t clear: none;\n\t\t float: right;\n\t\t width: 86px;\n\t\t}\n\t\t.form fieldset label {\n\t\t display: block;\n\t\t text-transform: uppercase;\n\t\t font-size: 11px;\n\t\t color: rgba(0, 0, 0, 0.6);\n\t\t margin-bottom: 5px;\n\t\t font-weight: bold;\n\t\t font-family: Inconsolata;\n\t\t}\n\t\t.form fieldset input,\n\t\t.form fieldset .select {\n\t\t width: 100%;\n\t\t height: 38px;\n\t\t color: #333333;\n\t\t padding: 10px;\n\t\t border-radius: 5px;\n\t\t font-size: 15px;\n\t\t outline: none !important;\n\t\t border: 1px solid rgba(0, 0, 0, 0.3);\n\t\t box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);\n\t\t}\n\t\t.form fieldset input.input-cart-number,\n\t\t.form fieldset .select.input-cart-number {\n\t\t width: 82px;\n\t\t display: inline-block;\n\t\t margin-right: 8px;\n\t\t}\n\t\t.form fieldset input.input-cart-number:last-child,\n\t\t.form fieldset .select.input-cart-number:last-child {\n\t\t margin-right: 0;\n\t\t}\n\t\t.form fieldset .select {\n\t\t position: relative;\n\t\t}\n\t\t.form fieldset .select::after {\n\t\t content: '';\n\t\t border-top: 8px solid #222;\n\t\t border-left: 4px solid transparent;\n\t\t border-right: 4px solid transparent;\n\t\t position: absolute;\n\t\t z-index: 2;\n\t\t top: 14px;\n\t\t right: 10px;\n\t\t pointer-events: none;\n\t\t}\n\t\t.form fieldset .select select {\n\t\t -webkit-appearance: none;\n\t\t -moz-appearance: none;\n\t\t appearance: none;\n\t\t position: absolute;\n\t\t padding: 0;\n\t\t border: none;\n\t\t width: 100%;\n\t\t outline: none !important;\n\t\t top: 6px;\n\t\t left: 6px;\n\t\t background: none;\n\t\t}\n\t\t.form fieldset .select select :-moz-focusring {\n\t\t color: transparent;\n\t\t text-shadow: 0 0 0 #000;\n\t\t}\n\t\t.form button {\n\t\t width: 100%;\n\t\t outline: none !important;\n\t\t background: -webkit-linear-gradient(top, #49a09b, #3d8291);\n\t\t background: linear-gradient(180deg, #49a09b, #3d8291);\n\t\t text-transform: uppercase;\n\t\t font-weight: bold;\n\t\t border: none;\n\t\t box-shadow: none;\n\t\t text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\n\t\t margin-top: 90px;\n\t\t}\n\t\t.form button .fa {\n\t\t margin-right: 6px;\n\t\t}\n\n\t\t/*--------------------\n\t\tCheckout\n\t\t--------------------*/\n\t\t.checkout {\n\t\t\tmargin: 20px auto 0px;\n\t \t\tposition: relative;\n\t \t\tmax-width: 460px;\n\t \t\tborder-radius: 15px;\n\t\t}\n\n\t\t/*--------------------\n\t\tCredit Card\n\t\t--------------------*/\n\t\t.credit-card-box {\n\t\t -webkit-perspective: 1000;\n\t\t perspective: 1000;\n\t\t width: 400px;\n\t\t height: 280px;\n\t\t position: relative;\n\t\t left: 50%;\n\t\t -webkit-transform: translateX(-50%);\n\t\t transform: translateX(-50%);\n\t\t}\n\t\t.credit-card-box:hover .flip, .credit-card-box.hover .flip {\n\t\t -webkit-transform: rotateY(180deg);\n\t\t transform: rotateY(180deg);\n\t\t}\n\t\t.credit-card-box .front,\n\t\t.credit-card-box .back {\n\t\t width: 400px;\n\t\t height: 250px;\n\t\t border-radius: 15px;\n\t\t -webkit-backface-visibility: hidden;\n\t\t backface-visibility: hidden;\n\t\t background: linear-gradient(135deg, #bd6772, #53223f);\n\t\t position: absolute;\n\t\t color: #fff;\n\t\t font-family: Inconsolata;\n\t\t top: 0;\n\t\t left: 0;\n\t\t text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);\n\t\t box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);\n\t\t}\n\t\t.credit-card-box .front::before,\n\t\t.credit-card-box .back::before {\n\t\t content: '';\n\t\t position: absolute;\n\t\t width: 100%;\n\t\t height: 100%;\n\t\t top: 0;\n\t\t left: 0;\n\t\t background: url(\"http://cdn.flaticon.com/svg/44/44386.svg\") no-repeat center;\n\t\t background-size: cover;\n\t\t opacity: .05;\n\t\t}\n\t\t.credit-card-box .flip {\n\t\t -webkit-transition: 0.6s;\n\t\t transition: 0.6s;\n\t\t -webkit-transform-style: preserve-3d;\n\t\t transform-style: preserve-3d;\n\t\t position: relative;\n\t\t}\n\t\t.credit-card-box .logo {\n\t\t position: absolute;\n\t\t top: 9px;\n\t\t right: 20px;\n\t\t width: 60px;\n\t\t}\n\t\t.credit-card-box .logo svg {\n\t\t width: 100%;\n\t\t height: auto;\n\t\t fill: #fff;\n\t\t}\n\t\t.credit-card-box .front {\n\t\t z-index: 2;\n\t\t -webkit-transform: rotateY(0deg);\n\t\t transform: rotateY(0deg);\n\t\t}\n\t\t.credit-card-box .back {\n\t\t -webkit-transform: rotateY(180deg);\n\t\t transform: rotateY(180deg);\n\t\t}\n\t\t.credit-card-box .back .logo {\n\t\t top: 185px;\n\t\t}\n\t\t.credit-card-box .chip {\n\t\t position: absolute;\n\t\t width: 60px;\n\t\t height: 45px;\n\t\t top: 20px;\n\t\t left: 20px;\n\t\t background: -webkit-linear-gradient(315deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);\n\t\t background: linear-gradient(135deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);\n\t\t border-radius: 8px;\n\t\t}\n\t\t.credit-card-box .chip::before {\n\t\t content: '';\n\t\t position: absolute;\n\t\t top: 0;\n\t\t bottom: 0;\n\t\t left: 0;\n\t\t right: 0;\n\t\t margin: auto;\n\t\t border: 4px solid rgba(128, 128, 128, 0.1);\n\t\t width: 80%;\n\t\t height: 70%;\n\t\t border-radius: 5px;\n\t\t}\n\t\t.credit-card-box .strip {\n\t\t background: -webkit-linear-gradient(315deg, #404040, #1a1a1a);\n\t\t background: linear-gradient(135deg, #404040, #1a1a1a);\n\t\t position: absolute;\n\t\t width: 100%;\n\t\t height: 50px;\n\t\t top: 30px;\n\t\t left: 0;\n\t\t}\n\t\t.credit-card-box .number {\n\t\t position: absolute;\n\t\t margin: 0 auto;\n\t\t top: 103px;\n\t\t left: 19px;\n\t\t font-size: 30px;\n\t\t}\n\t\t.credit-card-box label {\n\t\t font-size: 10px;\n\t\t letter-spacing: 1px;\n\t\t text-shadow: none;\n\t\t text-transform: uppercase;\n\t\t font-weight: normal;\n\t\t opacity: 0.5;\n\t\t display: block;\n\t\t margin-bottom: 3px;\n\t\t}\n\t\t.credit-card-box .card-holder,\n\t\t.credit-card-box .card-expiration-date {\n\t\t position: absolute;\n\t\t margin: 0 auto;\n\t\t top: 180px;\n\t\t left: 19px;\n\t\t font-size: 22px;\n\t\t text-transform: capitalize;\n\t\t}\n\t\t.credit-card-box .card-expiration-date {\n\t\t text-align: right;\n\t\t left: auto;\n\t\t right: 20px;\n\t\t}\n\t\t.credit-card-box .ccv {\n\t\t height: 36px;\n\t\t background: #fff;\n\t\t width: 91%;\n\t\t border-radius: 5px;\n\t\t top: 110px;\n\t\t left: 0;\n\t\t right: 0;\n\t\t position: absolute;\n\t\t margin: 0 auto;\n\t\t color: #000;\n\t\t text-align: right;\n\t\t padding: 10px;\n\t\t}\n\t\t.credit-card-box .ccv label {\n\t\t margin: -25px 0 14px;\n\t\t color: #fff;\n\t\t}\n\n\t</style>\n</div>","import {NgModule, ModuleWithProviders} from '@angular/core';\nimport {CardDraw} from './card.component';\n\n@NgModule({\n imports: [CardDraw],\n exports: [CardDraw]\n})\nexport class CardModule {\n static forRoot(): ModuleWithProviders<CardModule> {\n return {\n ngModule: CardModule\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAOa,QAAQ,CAAA;IACX,MAAM,GAAG,EAAE;IACX,IAAI,GAAG,EAAE;IACT,UAAU,GAAG,EAAE;IACf,GAAG,GAAG,EAAE;IACR,UAAU,GAAG,EAAE;IACf,MAAM,GAAG,EAAE;IACX,KAAK,GAAG,EAAE;IACV,MAAM,GAAG,KAAK;IACd,aAAa,GAAG,KAAK;wGATlB,QAAQ,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAR,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,QAAQ,qQCPrB,orZAoYM,EAAA,MAAA,EAAA,CAAA,m/JAAA,CAAA,EAAA,CAAA;;4FD7XO,QAAQ,EAAA,UAAA,EAAA,CAAA;kBALpB,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,cAET,IAAI,EAAA,QAAA,EAAA,orZAAA,EAAA;;sBAGf;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;;METW,UAAU,CAAA;AACrB,IAAA,OAAO,OAAO,GAAA;QACZ,OAAO;AACL,YAAA,QAAQ,EAAE;SACX;IACH;wGALW,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;yGAAV,UAAU,EAAA,OAAA,EAAA,CAHX,QAAQ,CAAA,EAAA,OAAA,EAAA,CACR,QAAQ,CAAA,EAAA,CAAA;yGAEP,UAAU,EAAA,CAAA;;4FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBAJtB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,OAAO,EAAE,CAAC,QAAQ;AACnB,iBAAA;;;ACND;;AAEG;;"}
package/package.json CHANGED
@@ -1,16 +1,10 @@
1
1
  {
2
2
  "name": "angular2-credit-card-draw",
3
- "version": "1.0.8",
4
- "scripts": {
5
- "lint": "tslint src/**/*.ts",
6
- "test": "tsc && karma start",
7
- "prepublish": "tsc",
8
- "tsc": "tsc",
9
- "typings": "typings"
10
- },
3
+ "version": "2.0.1",
4
+ "description": "A customizable credit card component for Angular",
11
5
  "repository": {
12
6
  "type": "git",
13
- "url": "git@github.com:dennisdoc/angular2-credit-card-draw.git"
7
+ "url": "git+https://github.com/dennisdoc/angular-credit-card-draw.git"
14
8
  },
15
9
  "author": {
16
10
  "name": "Dennis Oliveira Cremasco",
@@ -22,26 +16,30 @@
22
16
  ],
23
17
  "license": "MIT",
24
18
  "bugs": {
25
- "url": "git@github.com:dennisdoc/angular2-credit-card-draw.git/issues"
26
- },
27
- "main": "./dist/index.js",
28
- "typings": "./dist/index.d.ts",
29
- "dependencies": {
30
- "gulp": "^3.9.1",
31
- "gulp-inline-ng2-template": "^4.0.0"
19
+ "url": "https://github.com/dennisdoc/angular-credit-card-draw/issues"
32
20
  },
33
- "devDependencies": {
34
- "@angular/common": "^2.0.0",
35
- "@angular/core": "^2.0.0",
36
- "codelyzer": "^2.0.0-beta.4",
37
- "gulp-angular-embed-templates": "^2.3.0",
38
- "rxjs": "5.0.0-beta.12",
39
- "tslint": "^3.15.1",
40
- "typescript": "^2.0.0",
41
- "typings": "^1.0.4",
42
- "zone.js": "0.6.23"
21
+ "peerDependencies": {
22
+ "@angular/common": "^21.0.0",
23
+ "@angular/core": "^21.0.0",
24
+ "rxjs": "^7.4.0"
43
25
  },
44
26
  "engines": {
45
- "node": ">=0.8.0"
27
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
28
+ },
29
+ "module": "fesm2022/angular2-credit-card-draw.mjs",
30
+ "typings": "types/angular2-credit-card-draw.d.ts",
31
+ "exports": {
32
+ "./package.json": {
33
+ "default": "./package.json"
34
+ },
35
+ ".": {
36
+ "types": "./types/angular2-credit-card-draw.d.ts",
37
+ "default": "./fesm2022/angular2-credit-card-draw.mjs"
38
+ }
39
+ },
40
+ "sideEffects": false,
41
+ "type": "module",
42
+ "dependencies": {
43
+ "tslib": "^2.3.0"
46
44
  }
47
- }
45
+ }
@@ -0,0 +1,25 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ModuleWithProviders } from '@angular/core';
3
+
4
+ declare class CardDraw {
5
+ number: string;
6
+ name: string;
7
+ expiration: string;
8
+ ccv: string;
9
+ background: string;
10
+ height: string;
11
+ width: string;
12
+ toggle: boolean;
13
+ hideBrandLogo: boolean;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<CardDraw, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<CardDraw, "card-draw", never, { "number": { "alias": "number"; "required": false; }; "name": { "alias": "name"; "required": false; }; "expiration": { "alias": "expiration"; "required": false; }; "ccv": { "alias": "ccv"; "required": false; }; "background": { "alias": "background"; "required": false; }; "height": { "alias": "height"; "required": false; }; "width": { "alias": "width"; "required": false; }; "toggle": { "alias": "toggle"; "required": false; }; "hideBrandLogo": { "alias": "hideBrandLogo"; "required": false; }; }, {}, never, never, true, never>;
16
+ }
17
+
18
+ declare class CardModule {
19
+ static forRoot(): ModuleWithProviders<CardModule>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<CardModule, never>;
21
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CardModule, never, [typeof CardDraw], [typeof CardDraw]>;
22
+ static ɵinj: i0.ɵɵInjectorDeclaration<CardModule>;
23
+ }
24
+
25
+ export { CardDraw, CardModule };
package/.npmignore DELETED
@@ -1,24 +0,0 @@
1
- # Node
2
- node_modules/*
3
- npm-debug.log
4
-
5
- # DO NOT IGNORE TYPESCRIPT FILES FOR NPM
6
- # TypeScript
7
- # *.js
8
- # *.map
9
- # *.d.ts
10
-
11
- # JetBrains
12
- .idea
13
- .project
14
- .settings
15
- .idea/*
16
- *.iml
17
-
18
- # Windows
19
- Thumbs.db
20
- Desktop.ini
21
-
22
- # Mac
23
- .DS_Store
24
- **/.DS_Store
package/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- language: node_js
2
- sudo: false
3
- node_js:
4
- - '4.2.1'
@@ -1,22 +0,0 @@
1
- import { Component,Input } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'card-draw',
5
- template:'<div><div class="checkout"><div class="credit-card-box {{toggle ? \'hover\':\'\'}}"><div class="flip"><div [style.width]="width" [style.height]="height" [style.background]="background" class="front"><div class="chip"></div><div class="logo"><svg version="1.1" id="visa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="47.834px" height="47.834px" viewBox="0 0 47.834 47.834" style="enable-background:new 0 0 47.834 47.834;"><g><g><path d="M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143 c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01 c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228 c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77 c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092 l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77 C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304 C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161 c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066 h-3.888L19.153,16.8z"></path></g></g></svg></div><div class="number">{{number}}</div><div class="card-holder"><label>Card holder</label><div>{{name}}</div></div><div class="card-expiration-date"><label>Expires</label><div>{{expiration}}</div></div></div><div [style.width]="width" [style.height]="height" [style.background]="background" class="back"><div class="strip"></div><div class="logo"><svg version="1.1" id="visa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="47.834px" height="47.834px" viewBox="0 0 47.834 47.834" style="enable-background:new 0 0 47.834 47.834;"><g><g><path d="M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143 c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01 c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228 c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77 c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092 l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77 C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304 C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161 c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066 h-3.888L19.153,16.8z"></path></g></g></svg></div><div class="ccv"><label>CCV</label><div>{{ccv}}</div></div></div></div></div></div><style>\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n html,\n body {\n min-height: 100%;\n font-family: \'Open sans\', sans-serif;\n }\n\n body {\n background: -webkit-linear-gradient(40deg, #f3c680, #a1e3e2);\n background: linear-gradient(50deg, #f3c680, #a1e3e2);\n }\n\n /*--------------------\n Buttons\n --------------------*/\n .btn {\n display: block;\n background: #bded7d;\n color: white;\n text-decoration: none;\n margin: 20px 0;\n padding: 15px 15px;\n border-radius: 5px;\n position: relative;\n }\n .btn::after {\n content: \'\';\n position: absolute;\n z-index: 1;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n -webkit-transition: all .2s ease-in-out;\n transition: all .2s ease-in-out;\n box-shadow: inset 0 3px 0 transparent, 0 3px 3px rgba(0, 0, 0, 0.2);\n border-radius: 5px;\n }\n .btn:hover::after {\n background: rgba(0, 0, 0, 0.1);\n box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.2);\n }\n\n /*--------------------\n Form\n --------------------*/\n .form fieldset {\n border: none;\n padding: 0;\n padding: 10px 0;\n position: relative;\n clear: both;\n }\n .form fieldset.fieldset-expiration {\n float: left;\n width: 60%;\n }\n .form fieldset.fieldset-expiration .select {\n width: 84px;\n margin-right: 12px;\n float: left;\n }\n .form fieldset.fieldset-ccv {\n clear: none;\n float: right;\n width: 86px;\n }\n .form fieldset label {\n display: block;\n text-transform: uppercase;\n font-size: 11px;\n color: rgba(0, 0, 0, 0.6);\n margin-bottom: 5px;\n font-weight: bold;\n font-family: Inconsolata;\n }\n .form fieldset input,\n .form fieldset .select {\n width: 100%;\n height: 38px;\n color: #333333;\n padding: 10px;\n border-radius: 5px;\n font-size: 15px;\n outline: none !important;\n border: 1px solid rgba(0, 0, 0, 0.3);\n box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);\n }\n .form fieldset input.input-cart-number,\n .form fieldset .select.input-cart-number {\n width: 82px;\n display: inline-block;\n margin-right: 8px;\n }\n .form fieldset input.input-cart-number:last-child,\n .form fieldset .select.input-cart-number:last-child {\n margin-right: 0;\n }\n .form fieldset .select {\n position: relative;\n }\n .form fieldset .select::after {\n content: \'\';\n border-top: 8px solid #222;\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n position: absolute;\n z-index: 2;\n top: 14px;\n right: 10px;\n pointer-events: none;\n }\n .form fieldset .select select {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n position: absolute;\n padding: 0;\n border: none;\n width: 100%;\n outline: none !important;\n top: 6px;\n left: 6px;\n background: none;\n }\n .form fieldset .select select :-moz-focusring {\n color: transparent;\n text-shadow: 0 0 0 #000;\n }\n .form button {\n width: 100%;\n outline: none !important;\n background: -webkit-linear-gradient(top, #49a09b, #3d8291);\n background: linear-gradient(180deg, #49a09b, #3d8291);\n text-transform: uppercase;\n font-weight: bold;\n border: none;\n box-shadow: none;\n text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\n margin-top: 90px;\n }\n .form button .fa {\n margin-right: 6px;\n }\n\n /*--------------------\n Checkout\n --------------------*/\n .checkout {\n margin: 20px auto 0px;\n position: relative;\n max-width: 460px;\n border-radius: 15px;\n }\n\n /*--------------------\n Credit Card\n --------------------*/\n .credit-card-box {\n -webkit-perspective: 1000;\n perspective: 1000;\n width: 400px;\n height: 280px;\n position: relative;\n left: 50%;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n }\n .credit-card-box:hover .flip, .credit-card-box.hover .flip {\n -webkit-transform: rotateY(180deg);\n transform: rotateY(180deg);\n }\n .credit-card-box .front,\n .credit-card-box .back {\n width: 400px;\n height: 250px;\n border-radius: 15px;\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n background: linear-gradient(135deg, #bd6772, #53223f);\n position: absolute;\n color: #fff;\n font-family: Inconsolata;\n top: 0;\n left: 0;\n text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);\n box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);\n }\n .credit-card-box .front::before,\n .credit-card-box .back::before {\n content: \'\';\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: url("http://cdn.flaticon.com/svg/44/44386.svg") no-repeat center;\n background-size: cover;\n opacity: .05;\n }\n .credit-card-box .flip {\n -webkit-transition: 0.6s;\n transition: 0.6s;\n -webkit-transform-style: preserve-3d;\n transform-style: preserve-3d;\n position: relative;\n }\n .credit-card-box .logo {\n position: absolute;\n top: 9px;\n right: 20px;\n width: 60px;\n }\n .credit-card-box .logo svg {\n width: 100%;\n height: auto;\n fill: #fff;\n }\n .credit-card-box .front {\n z-index: 2;\n -webkit-transform: rotateY(0deg);\n transform: rotateY(0deg);\n }\n .credit-card-box .back {\n -webkit-transform: rotateY(180deg);\n transform: rotateY(180deg);\n }\n .credit-card-box .back .logo {\n top: 185px;\n }\n .credit-card-box .chip {\n position: absolute;\n width: 60px;\n height: 45px;\n top: 20px;\n left: 20px;\n background: -webkit-linear-gradient(315deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);\n background: linear-gradient(135deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);\n border-radius: 8px;\n }\n .credit-card-box .chip::before {\n content: \'\';\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n margin: auto;\n border: 4px solid rgba(128, 128, 128, 0.1);\n width: 80%;\n height: 70%;\n border-radius: 5px;\n }\n .credit-card-box .strip {\n background: -webkit-linear-gradient(315deg, #404040, #1a1a1a);\n background: linear-gradient(135deg, #404040, #1a1a1a);\n position: absolute;\n width: 100%;\n height: 50px;\n top: 30px;\n left: 0;\n }\n .credit-card-box .number {\n position: absolute;\n margin: 0 auto;\n top: 103px;\n left: 19px;\n font-size: 30px;\n }\n .credit-card-box label {\n font-size: 10px;\n letter-spacing: 1px;\n text-shadow: none;\n text-transform: uppercase;\n font-weight: normal;\n opacity: 0.5;\n display: block;\n margin-bottom: 3px;\n }\n .credit-card-box .card-holder,\n .credit-card-box .card-expiration-date {\n position: absolute;\n margin: 0 auto;\n top: 180px;\n left: 19px;\n font-size: 22px;\n text-transform: capitalize;\n }\n .credit-card-box .card-expiration-date {\n text-align: right;\n left: auto;\n right: 20px;\n }\n .credit-card-box .ccv {\n height: 36px;\n background: #fff;\n width: 91%;\n border-radius: 5px;\n top: 110px;\n left: 0;\n right: 0;\n position: absolute;\n margin: 0 auto;\n color: #000;\n text-align: right;\n padding: 10px;\n }\n .credit-card-box .ccv label {\n margin: -25px 0 14px;\n color: #fff;\n }\n\n </style></div>'
6
- })
7
- export class CardDraw{
8
- @Input() number: string;
9
- @Input() name: string;
10
- @Input() expiration:string;
11
- @Input() ccv:string;
12
- @Input() background:string;
13
- @Input() height:string;
14
- @Input() width:string;
15
- @Input() toggle:boolean;
16
-
17
-
18
-
19
- constructor() {
20
-
21
- }
22
- }
@@ -1,11 +0,0 @@
1
- export declare class CardDraw {
2
- number: string;
3
- name: string;
4
- expiration: string;
5
- ccv: string;
6
- background: string;
7
- height: string;
8
- width: string;
9
- toggle: boolean;
10
- constructor();
11
- }
@@ -1,57 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var core_1 = require("@angular/core");
12
- var CardDraw = (function () {
13
- function CardDraw() {
14
- }
15
- return CardDraw;
16
- }());
17
- __decorate([
18
- core_1.Input(),
19
- __metadata("design:type", String)
20
- ], CardDraw.prototype, "number", void 0);
21
- __decorate([
22
- core_1.Input(),
23
- __metadata("design:type", String)
24
- ], CardDraw.prototype, "name", void 0);
25
- __decorate([
26
- core_1.Input(),
27
- __metadata("design:type", String)
28
- ], CardDraw.prototype, "expiration", void 0);
29
- __decorate([
30
- core_1.Input(),
31
- __metadata("design:type", String)
32
- ], CardDraw.prototype, "ccv", void 0);
33
- __decorate([
34
- core_1.Input(),
35
- __metadata("design:type", String)
36
- ], CardDraw.prototype, "background", void 0);
37
- __decorate([
38
- core_1.Input(),
39
- __metadata("design:type", String)
40
- ], CardDraw.prototype, "height", void 0);
41
- __decorate([
42
- core_1.Input(),
43
- __metadata("design:type", String)
44
- ], CardDraw.prototype, "width", void 0);
45
- __decorate([
46
- core_1.Input(),
47
- __metadata("design:type", Boolean)
48
- ], CardDraw.prototype, "toggle", void 0);
49
- CardDraw = __decorate([
50
- core_1.Component({
51
- selector: 'card-draw',
52
- template: '<div><div class="checkout"><div class="credit-card-box {{toggle ? \'hover\':\'\'}}"><div class="flip"><div [style.width]="width" [style.height]="height" [style.background]="background" class="front"><div class="chip"></div><div class="logo"><svg version="1.1" id="visa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="47.834px" height="47.834px" viewBox="0 0 47.834 47.834" style="enable-background:new 0 0 47.834 47.834;"><g><g><path d="M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143 c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01 c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228 c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77 c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092 l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77 C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304 C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161 c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066 h-3.888L19.153,16.8z"></path></g></g></svg></div><div class="number">{{number}}</div><div class="card-holder"><label>Card holder</label><div>{{name}}</div></div><div class="card-expiration-date"><label>Expires</label><div>{{expiration}}</div></div></div><div [style.width]="width" [style.height]="height" [style.background]="background" class="back"><div class="strip"></div><div class="logo"><svg version="1.1" id="visa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="47.834px" height="47.834px" viewBox="0 0 47.834 47.834" style="enable-background:new 0 0 47.834 47.834;"><g><g><path d="M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143 c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01 c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228 c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77 c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092 l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77 C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304 C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161 c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066 h-3.888L19.153,16.8z"></path></g></g></svg></div><div class="ccv"><label>CCV</label><div>{{ccv}}</div></div></div></div></div></div><style>\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n html,\n body {\n min-height: 100%;\n font-family: \'Open sans\', sans-serif;\n }\n\n body {\n background: -webkit-linear-gradient(40deg, #f3c680, #a1e3e2);\n background: linear-gradient(50deg, #f3c680, #a1e3e2);\n }\n\n /*--------------------\n Buttons\n --------------------*/\n .btn {\n display: block;\n background: #bded7d;\n color: white;\n text-decoration: none;\n margin: 20px 0;\n padding: 15px 15px;\n border-radius: 5px;\n position: relative;\n }\n .btn::after {\n content: \'\';\n position: absolute;\n z-index: 1;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n -webkit-transition: all .2s ease-in-out;\n transition: all .2s ease-in-out;\n box-shadow: inset 0 3px 0 transparent, 0 3px 3px rgba(0, 0, 0, 0.2);\n border-radius: 5px;\n }\n .btn:hover::after {\n background: rgba(0, 0, 0, 0.1);\n box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.2);\n }\n\n /*--------------------\n Form\n --------------------*/\n .form fieldset {\n border: none;\n padding: 0;\n padding: 10px 0;\n position: relative;\n clear: both;\n }\n .form fieldset.fieldset-expiration {\n float: left;\n width: 60%;\n }\n .form fieldset.fieldset-expiration .select {\n width: 84px;\n margin-right: 12px;\n float: left;\n }\n .form fieldset.fieldset-ccv {\n clear: none;\n float: right;\n width: 86px;\n }\n .form fieldset label {\n display: block;\n text-transform: uppercase;\n font-size: 11px;\n color: rgba(0, 0, 0, 0.6);\n margin-bottom: 5px;\n font-weight: bold;\n font-family: Inconsolata;\n }\n .form fieldset input,\n .form fieldset .select {\n width: 100%;\n height: 38px;\n color: #333333;\n padding: 10px;\n border-radius: 5px;\n font-size: 15px;\n outline: none !important;\n border: 1px solid rgba(0, 0, 0, 0.3);\n box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);\n }\n .form fieldset input.input-cart-number,\n .form fieldset .select.input-cart-number {\n width: 82px;\n display: inline-block;\n margin-right: 8px;\n }\n .form fieldset input.input-cart-number:last-child,\n .form fieldset .select.input-cart-number:last-child {\n margin-right: 0;\n }\n .form fieldset .select {\n position: relative;\n }\n .form fieldset .select::after {\n content: \'\';\n border-top: 8px solid #222;\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n position: absolute;\n z-index: 2;\n top: 14px;\n right: 10px;\n pointer-events: none;\n }\n .form fieldset .select select {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n position: absolute;\n padding: 0;\n border: none;\n width: 100%;\n outline: none !important;\n top: 6px;\n left: 6px;\n background: none;\n }\n .form fieldset .select select :-moz-focusring {\n color: transparent;\n text-shadow: 0 0 0 #000;\n }\n .form button {\n width: 100%;\n outline: none !important;\n background: -webkit-linear-gradient(top, #49a09b, #3d8291);\n background: linear-gradient(180deg, #49a09b, #3d8291);\n text-transform: uppercase;\n font-weight: bold;\n border: none;\n box-shadow: none;\n text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\n margin-top: 90px;\n }\n .form button .fa {\n margin-right: 6px;\n }\n\n /*--------------------\n Checkout\n --------------------*/\n .checkout {\n margin: 20px auto 0px;\n position: relative;\n max-width: 460px;\n border-radius: 15px;\n }\n\n /*--------------------\n Credit Card\n --------------------*/\n .credit-card-box {\n -webkit-perspective: 1000;\n perspective: 1000;\n width: 400px;\n height: 280px;\n position: relative;\n left: 50%;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n }\n .credit-card-box:hover .flip, .credit-card-box.hover .flip {\n -webkit-transform: rotateY(180deg);\n transform: rotateY(180deg);\n }\n .credit-card-box .front,\n .credit-card-box .back {\n width: 400px;\n height: 250px;\n border-radius: 15px;\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n background: linear-gradient(135deg, #bd6772, #53223f);\n position: absolute;\n color: #fff;\n font-family: Inconsolata;\n top: 0;\n left: 0;\n text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);\n box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);\n }\n .credit-card-box .front::before,\n .credit-card-box .back::before {\n content: \'\';\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: url("http://cdn.flaticon.com/svg/44/44386.svg") no-repeat center;\n background-size: cover;\n opacity: .05;\n }\n .credit-card-box .flip {\n -webkit-transition: 0.6s;\n transition: 0.6s;\n -webkit-transform-style: preserve-3d;\n transform-style: preserve-3d;\n position: relative;\n }\n .credit-card-box .logo {\n position: absolute;\n top: 9px;\n right: 20px;\n width: 60px;\n }\n .credit-card-box .logo svg {\n width: 100%;\n height: auto;\n fill: #fff;\n }\n .credit-card-box .front {\n z-index: 2;\n -webkit-transform: rotateY(0deg);\n transform: rotateY(0deg);\n }\n .credit-card-box .back {\n -webkit-transform: rotateY(180deg);\n transform: rotateY(180deg);\n }\n .credit-card-box .back .logo {\n top: 185px;\n }\n .credit-card-box .chip {\n position: absolute;\n width: 60px;\n height: 45px;\n top: 20px;\n left: 20px;\n background: -webkit-linear-gradient(315deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);\n background: linear-gradient(135deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);\n border-radius: 8px;\n }\n .credit-card-box .chip::before {\n content: \'\';\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n margin: auto;\n border: 4px solid rgba(128, 128, 128, 0.1);\n width: 80%;\n height: 70%;\n border-radius: 5px;\n }\n .credit-card-box .strip {\n background: -webkit-linear-gradient(315deg, #404040, #1a1a1a);\n background: linear-gradient(135deg, #404040, #1a1a1a);\n position: absolute;\n width: 100%;\n height: 50px;\n top: 30px;\n left: 0;\n }\n .credit-card-box .number {\n position: absolute;\n margin: 0 auto;\n top: 103px;\n left: 19px;\n font-size: 30px;\n }\n .credit-card-box label {\n font-size: 10px;\n letter-spacing: 1px;\n text-shadow: none;\n text-transform: uppercase;\n font-weight: normal;\n opacity: 0.5;\n display: block;\n margin-bottom: 3px;\n }\n .credit-card-box .card-holder,\n .credit-card-box .card-expiration-date {\n position: absolute;\n margin: 0 auto;\n top: 180px;\n left: 19px;\n font-size: 22px;\n text-transform: capitalize;\n }\n .credit-card-box .card-expiration-date {\n text-align: right;\n left: auto;\n right: 20px;\n }\n .credit-card-box .ccv {\n height: 36px;\n background: #fff;\n width: 91%;\n border-radius: 5px;\n top: 110px;\n left: 0;\n right: 0;\n position: absolute;\n margin: 0 auto;\n color: #000;\n text-align: right;\n padding: 10px;\n }\n .credit-card-box .ccv label {\n margin: -25px 0 14px;\n color: #fff;\n }\n\n </style></div>'
53
- }),
54
- __metadata("design:paramtypes", [])
55
- ], CardDraw);
56
- exports.CardDraw = CardDraw;
57
- //# sourceMappingURL=card.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"card.component.js","sourceRoot":"","sources":["../card.component.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,sCAAgD;AAMhD,IAAa,QAAQ;IAYjB;IAEA,CAAC;IACL,eAAC;AAAD,CAAC,AAfD,IAeC;AAdS;IAAR,YAAK,EAAE;;wCAAgB;AACf;IAAR,YAAK,EAAE;;sCAAc;AACb;IAAR,YAAK,EAAE;;4CAAmB;AAClB;IAAR,YAAK,EAAE;;qCAAY;AACX;IAAR,YAAK,EAAE;;4CAAmB;AAClB;IAAR,YAAK,EAAE;;wCAAe;AACd;IAAR,YAAK,EAAE;;uCAAc;AACb;IAAR,YAAK,EAAE;;wCAAgB;AARZ,QAAQ;IAJpB,gBAAS,CAAC;QACV,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAC,gyVAAgyV;KACzyV,CAAC;;GACW,QAAQ,CAepB;AAfY,4BAAQ"}