@kompasid/lit-web-components 0.4.5 → 0.5.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.
Files changed (53) hide show
  1. package/assets/font-awesome.ts +7 -4
  2. package/demo/index.html +147 -118
  3. package/dist/assets/font-awesome.d.ts +1 -1
  4. package/dist/assets/font-awesome.js +7 -4
  5. package/dist/assets/font-awesome.js.map +1 -1
  6. package/dist/src/components/kompasid-freewall/KompasFreewall.d.ts +91 -0
  7. package/dist/src/components/kompasid-freewall/KompasFreewall.js +261 -0
  8. package/dist/src/components/kompasid-freewall/KompasFreewall.js.map +1 -0
  9. package/dist/src/components/kompasid-freewall/types.d.ts +10 -0
  10. package/dist/src/components/kompasid-freewall/types.js +2 -0
  11. package/dist/src/components/kompasid-freewall/types.js.map +1 -0
  12. package/dist/src/components/kompasid-freewall-body/KompasFreewallBody.d.ts +33 -0
  13. package/dist/src/components/kompasid-freewall-body/KompasFreewallBody.js +225 -0
  14. package/dist/src/components/kompasid-freewall-body/KompasFreewallBody.js.map +1 -0
  15. package/dist/src/components/kompasid-freewall-head/KompasFreewallHead.d.ts +37 -0
  16. package/dist/src/components/kompasid-freewall-head/KompasFreewallHead.js +127 -0
  17. package/dist/src/components/kompasid-freewall-head/KompasFreewallHead.js.map +1 -0
  18. package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.d.ts +0 -1
  19. package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.js +2 -7
  20. package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.js.map +1 -1
  21. package/dist/src/components/kompasid-paywall-video/KompasPaywallVideo.d.ts +12 -13
  22. package/dist/src/components/kompasid-paywall-video/KompasPaywallVideo.js +30 -49
  23. package/dist/src/components/kompasid-paywall-video/KompasPaywallVideo.js.map +1 -1
  24. package/dist/src/index.d.ts +1 -0
  25. package/dist/src/index.js +1 -0
  26. package/dist/src/index.js.map +1 -1
  27. package/dist/src/utils/cta.d.ts +6 -0
  28. package/dist/src/utils/cta.js +18 -0
  29. package/dist/src/utils/cta.js.map +1 -0
  30. package/dist/src/utils/generateCopyDuration.d.ts +1 -0
  31. package/dist/src/utils/generateCopyDuration.js +15 -0
  32. package/dist/src/utils/generateCopyDuration.js.map +1 -0
  33. package/dist/src/utils/googleFont.js +1 -0
  34. package/dist/src/utils/googleFont.js.map +1 -1
  35. package/dist/tailwind/tailwind.js +223 -0
  36. package/dist/tailwind/tailwind.js.map +1 -1
  37. package/dist/tsconfig.tsbuildinfo +1 -1
  38. package/package.json +2 -1
  39. package/src/components/kompasid-freewall/KompasFreewall.ts +211 -0
  40. package/src/components/kompasid-freewall/readme.md +63 -0
  41. package/src/components/kompasid-freewall/types.ts +10 -0
  42. package/src/components/kompasid-freewall-body/KompasFreewallBody.ts +221 -0
  43. package/src/components/kompasid-freewall-body/readme.md +13 -0
  44. package/src/components/kompasid-freewall-head/KompasFreewallHead.ts +107 -0
  45. package/src/components/kompasid-freewall-head/readme.md +17 -0
  46. package/src/components/kompasid-paywall-body/KompasPaywallBody.ts +2 -8
  47. package/src/components/kompasid-paywall-video/KompasPaywallVideo.ts +36 -51
  48. package/src/index.ts +1 -0
  49. package/src/utils/cta.ts +25 -0
  50. package/src/utils/generateCopyDuration.ts +14 -0
  51. package/src/utils/googleFont.ts +2 -0
  52. package/tailwind/tailwind.css +223 -0
  53. package/tailwind/tailwind.ts +223 -0
@@ -10,12 +10,15 @@ export const faArrowLeft = html`<svg
10
10
  />
11
11
  </svg>`
12
12
 
13
- export const faCheck = html`<svg
13
+ export const faCheck = () => html`<svg
14
+ width="17"
15
+ height="16"
16
+ viewBox="0 0 17 16"
17
+ fill="none"
14
18
  xmlns="http://www.w3.org/2000/svg"
15
- viewBox="0 0 512 512"
16
19
  >
17
- <!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) -->
18
20
  <path
19
- d="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"
21
+ d="M13.3438 5.93749C13.3438 6.10415 13.2854 6.24582 13.1687 6.36249L8.64375 10.8875L7.79375 11.7375C7.67708 11.8542 7.53542 11.9125 7.36875 11.9125C7.20208 11.9125 7.06042 11.8542 6.94375 11.7375L6.09375 10.8875L3.83125 8.62499C3.71458 8.50832 3.65625 8.36665 3.65625 8.19999C3.65625 8.03332 3.71458 7.89165 3.83125 7.77499L4.68125 6.92499C4.79792 6.80832 4.93958 6.74999 5.10625 6.74999C5.27292 6.74999 5.41458 6.80832 5.53125 6.92499L7.36875 8.76874L11.4688 4.66249C11.5854 4.54582 11.7271 4.48749 11.8938 4.48749C12.0604 4.48749 12.2021 4.54582 12.3188 4.66249L13.1687 5.51249C13.2854 5.62915 13.3438 5.77082 13.3438 5.93749Z"
22
+ fill="#50A718"
20
23
  />
21
24
  </svg>`
package/demo/index.html CHANGED
@@ -1,140 +1,169 @@
1
- <!doctype html>
1
+ <!DOCTYPE html>
2
2
  <html lang="en-GB">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1" />
6
- <title>Kompas.id Web Components</title>
7
- <link rel="icon" type="image/x-icon" href="/assets/kompas-icon.svg">
8
- <style>
9
- body {
10
- background: #fafafa;
11
- }
12
- .video {
13
- background-color: #cccccc;
14
- background-image: url('/assets/video.jpg');
15
- background-repeat: no-repeat;
16
- background-position: center;
17
- background-size: cover;
18
- position: relative;
19
- max-height: 500px;
20
- margin: 20px 0;
21
- aspect-ratio: 9 / 5;
22
- }
23
- </style>
24
- <script>
25
- (function initGTM(w, d, s, l, i) {
26
- const _w = w;
27
- _w[l] = _w[l] || [];
28
- _w[l].push({
29
- 'gtm.start': new Date().getTime(),
30
- 'event': 'gtm.js'
31
- });
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>Kompas.id Web Components</title>
7
+ <link rel="icon" type="image/x-icon" href="/assets/kompas-icon.svg" />
8
+ <style>
9
+ body {
10
+ background: #fafafa;
11
+ }
12
+ .video {
13
+ background-color: #cccccc;
14
+ background-image: url('/assets/video.jpg');
15
+ background-repeat: no-repeat;
16
+ background-position: center;
17
+ background-size: cover;
18
+ position: relative;
19
+ max-height: 500px;
20
+ margin: 20px 0;
21
+ aspect-ratio: 9 / 5;
22
+ }
23
+ </style>
24
+ <script>
25
+ ;(function initGTM(w, d, s, l, i) {
26
+ const _w = w
27
+ _w[l] = _w[l] || []
28
+ _w[l].push({
29
+ 'gtm.start': new Date().getTime(),
30
+ event: 'gtm.js',
31
+ })
32
32
 
33
- const f = d.getElementsByTagName(s)[0];
34
- const j = d.createElement(s);
35
- const dl = l !== 'dataLayer' ? `&l=${l}` : '';
33
+ const f = d.getElementsByTagName(s)[0]
34
+ const j = d.createElement(s)
35
+ const dl = l !== 'dataLayer' ? `&l=${l}` : ''
36
36
 
37
- j.async = true;
38
- j.src = `https://www.googletagmanager.com/gtm.js?id=${i}${dl}`;
39
- f.parentNode.insertBefore(j, f);
37
+ j.async = true
38
+ j.src = `https://www.googletagmanager.com/gtm.js?id=${i}${dl}`
39
+ f.parentNode.insertBefore(j, f)
40
+ })(window, document, 'script', 'dataLayer')
41
+ </script>
42
+ </head>
43
+ <body>
44
+ <div id="demo"></div>
40
45
 
41
- })(window, document, 'script', 'dataLayer');
42
- </script>
43
- </head>
44
- <body>
45
- <div id="demo"></div>
46
+ <script type="module">
47
+ import { html, render } from 'lit'
48
+ import '../dist/src/components/kompasid-footer/KompasFooter.js'
49
+ import '../dist/src/components/kompasid-paywall/KompasPaywall.js'
50
+ import '../dist/src/components/kompasid-paywall-video/KompasPaywallVideo.js'
51
+ import '../dist/src/components/kompasid-metered-paywall/KompasMeteredPaywall.js'
52
+ import '../dist/src/components/kompasid-freewall/KompasFreewall.js'
46
53
 
47
- <script type="module">
48
- import { html, render } from 'lit';
49
- import '../dist/src/components/kompasid-footer/KompasFooter.js'
50
- import '../dist/src/components/kompasid-paywall/KompasPaywall.js'
51
- import '../dist/src/components/kompasid-paywall-video/KompasPaywallVideo.js'
52
- import '../dist/src/components/kompasid-metered-paywall/KompasMeteredPaywall.js'
54
+ const type = 'reguler'
55
+ const theme = ''
56
+ const paywallLocation = 'paywall_location'
57
+ const paywallSubscriptionId = 'testId'
58
+ const paywallSubscriptionPrice = 0
59
+ const paywallPosition = 1
60
+ const paywallSubscriptionPackage = 'test subscription'
61
+ const trackerPageType = 'page_type'
62
+ const trackerPageTitle= 'page_title'
63
+ const trackerContentId = 'content_id'
64
+ const trackerContentType = 'content_type'
65
+ const trackerContentTitle = 'content_title'
66
+ const trackerContentCategories = 'content_categories'
67
+ const trackerUserType = 'user_type'
68
+ const trackerMeteredWallBalance = 0
69
+ const subscriptionStatus = 'subscription_status'
70
+ const trackerPageDomain = 'page_domain'
71
+ const meteredWallType = 'metered_wall_type'
72
+ const trackerEpaperEdition = 'edition'
73
+ const meteredWallBalance = 0
74
+ const isLogin = false
75
+ const isWithHeader = false
76
+ const textHeader = 'this is message for header information'
77
+ const userGuid = '111000'
78
+ const trackerSubscriptionStatus = 'register'
79
+ const swgEnable = true
80
+ const videoPaywallType = 'homepage'
81
+ const freewallType = 'landing_page'
82
+ const headCopyExpand = ''
83
+ const headCopyCollapse = ''
84
+ const expand = false
53
85
 
54
- const type = 'reguler'
55
- const theme=""
56
- const paywallLocation = "Article Detail Page";
57
- const paywallSubscriptionId = "testId";
58
- const paywallSubscriptionPrice = 0;
59
- const paywallPosition = 1;
60
- const paywallSubscriptionPackage = "test subscription";
61
- const trackerPageType = "page_type";
62
- const trackerContentId = "content_id";
63
- const trackerContentType = "content_type";
64
- const trackerContentTitle = "content_title";
65
- const trackerContentCategories = "content_categories";
66
- const trackerUserType = "user_type";
67
- const trackerMeteredWallBalance = "metered_wall_balance";
68
- const subscriptionStatus = "subscription_status";
69
- const trackerPageDomain = "page_domain";
70
- const meteredWallType = "metered_wall_type";
71
- const trackerEpaperEdition = "edition";
72
- const meteredWallBalance = 0;
73
- const isLogin = false;
74
- const isWithHeader = false;
75
- const textHeader = "this is message for header information";
76
- const userGuid = "111000";
77
- const trackerSubscriptionStatus = "register";
78
- const swgEnable = true;
79
- const videoPaywallType = 'homepage';
86
+ render(
87
+ html`
88
+ <kompasid-paywall
89
+ .type=${type}
90
+ .theme=${theme}
91
+ .paywall_location=${paywallLocation}
92
+ .paywall_subscription_id=${paywallSubscriptionId}
93
+ .paywall_subscription_price=${paywallSubscriptionPrice}
94
+ .paywall_position=${paywallPosition}
95
+ .tracker_page_type=${trackerPageType}
96
+ .tracker_content_id=${trackerContentId}
97
+ .tracker_content_type=${trackerContentType}
98
+ .tracker_content_title=${trackerContentTitle}
99
+ .tracker_content_categories=${trackerContentCategories}
100
+ .tracker_user_type=${trackerUserType}
101
+ .subscriptionStatus=${subscriptionStatus}
102
+ .tracker_page_domain=${trackerPageDomain}
103
+ .metered_wall_type=${meteredWallType}
104
+ .subscriptionStatus=${subscriptionStatus}
105
+ .tracker_epaper_edition=${trackerEpaperEdition}
106
+ .metered_wall_balance=${meteredWallBalance}
107
+ .isLogin=${isLogin}
108
+ .isWithHeader=${isWithHeader}
109
+ .swgEnable=${swgEnable}
110
+ .textHeader=${textHeader}
111
+ .userGuid=${userGuid}
112
+ .tracker_subscription_status=${trackerSubscriptionStatus}
113
+ >
114
+ </kompasid-paywall>
115
+ <div class="video">
116
+ <kompasid-paywall-video
117
+ .isLogin=${isLogin}
118
+ .type=${videoPaywallType}
119
+ .paywall_location=${paywallLocation}
120
+ .paywall_subscription_package=${paywallSubscriptionPackage}
121
+ .paywall_subscription_id=${paywallSubscriptionId}
122
+ .paywall_subscription_price=${paywallSubscriptionPrice}
123
+ .paywall_position=${paywallPosition}
124
+ .tracker_page_type=${trackerPageType}
125
+ .tracker_content_id=${trackerContentId}
126
+ .tracker_content_type=${trackerContentType}
127
+ .tracker_content_title=${trackerContentTitle}
128
+ .tracker_content_categories=${trackerContentCategories}
129
+ .tracker_user_type=${trackerUserType}
130
+ .tracker_subscription_status=${trackerSubscriptionStatus}
131
+ .tracker_page_domain=${trackerPageDomain}
132
+ .metered_wall_type=${meteredWallType}
133
+ .tracker_metered_wall_balance=${trackerMeteredWallBalance}
134
+ >
135
+ </kompasid-paywall-video>
136
+ </div>
137
+ <kompasid-footer></kompasid-footer>
80
138
 
81
- render(
82
- html`
83
- <kompasid-paywall
84
- .type=${type}
85
- .theme=${theme}
86
- .paywall_location=${paywallLocation}
87
- .paywall_subscription_id=${paywallSubscriptionId}
88
- .paywall_subscription_price=${paywallSubscriptionPrice}
89
- .paywall_position=${paywallPosition}
90
- .tracker_page_type=${trackerPageType}
91
- .tracker_content_id=${trackerContentId}
92
- .tracker_content_type=${trackerContentType}
93
- .tracker_content_title=${trackerContentTitle}
94
- .tracker_content_categories=${trackerContentCategories}
95
- .tracker_user_type=${trackerUserType}
96
- .subscriptionStatus=${subscriptionStatus}
97
- .tracker_page_domain=${trackerPageDomain}
98
- .metered_wall_type=${meteredWallType}
99
- .subscriptionStatus=${subscriptionStatus}
100
- .tracker_epaper_edition=${trackerEpaperEdition}
101
- .metered_wall_balance=${meteredWallBalance}
102
- .isLogin=${isLogin}
103
- .isWithHeader=${isWithHeader}
104
- .swgEnable=${swgEnable}
105
- .textHeader=${textHeader}
106
- .userGuid=${userGuid}
107
- .tracker_subscription_status=${trackerSubscriptionStatus}
108
- >
109
- </kompasid-paywall>
110
- <div class="video">
111
- <kompasid-paywall-video
139
+ <kompasid-freewall
112
140
  .isLogin=${isLogin}
113
- .type=${videoPaywallType}
141
+ .type=${freewallType}
142
+ .head_copy_expand=${headCopyExpand}
143
+ .head_copy_collapse=${headCopyCollapse}
144
+ .expand=${expand}
145
+ .id=${"freewall"}
114
146
  .paywall_location=${paywallLocation}
115
- .paywall_subscription_package=${paywallSubscriptionPackage}
116
147
  .paywall_subscription_id=${paywallSubscriptionId}
117
148
  .paywall_subscription_price=${paywallSubscriptionPrice}
118
149
  .paywall_position=${paywallPosition}
119
150
  .tracker_page_type=${trackerPageType}
151
+ .tracker_page_title=${trackerPageTitle}
120
152
  .tracker_content_id=${trackerContentId}
121
153
  .tracker_content_type=${trackerContentType}
122
154
  .tracker_content_title=${trackerContentTitle}
123
155
  .tracker_content_categories=${trackerContentCategories}
124
156
  .tracker_user_type=${trackerUserType}
125
- .tracker_subscription_status=${trackerSubscriptionStatus}
126
157
  .tracker_page_domain=${trackerPageDomain}
127
- .metered_wall_type=${meteredWallType}
158
+ .tracker_metered_wall_type=${meteredWallType}
159
+ .tracker_subscription_status=${trackerSubscriptionStatus}
128
160
  .tracker_metered_wall_balance=${trackerMeteredWallBalance}
129
161
  >
130
- </kompasid-paywall-video>
131
- </div>
132
- <kompasid-footer></kompasid-footer>
133
- <kompasid-metered-paywall></kompasid-metered-paywall>
134
- `,
135
- document.querySelector('#demo')
136
- );
137
- window.dataLayer = window.dataLayer || [];
138
- </script>
139
- </body>
162
+ </kompasid-freewall>
163
+ `,
164
+ document.querySelector('#demo')
165
+ )
166
+ window.dataLayer = window.dataLayer || []
167
+ </script>
168
+ </body>
140
169
  </html>
@@ -1,2 +1,2 @@
1
1
  export declare const faArrowLeft: import("lit").TemplateResult<1>;
2
- export declare const faCheck: import("lit").TemplateResult<1>;
2
+ export declare const faCheck: () => import("lit").TemplateResult<1>;
@@ -8,13 +8,16 @@ export const faArrowLeft = html `<svg
8
8
  d="M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"
9
9
  />
10
10
  </svg>`;
11
- export const faCheck = html `<svg
11
+ export const faCheck = () => html `<svg
12
+ width="17"
13
+ height="16"
14
+ viewBox="0 0 17 16"
15
+ fill="none"
12
16
  xmlns="http://www.w3.org/2000/svg"
13
- viewBox="0 0 512 512"
14
17
  >
15
- <!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) -->
16
18
  <path
17
- d="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"
19
+ d="M13.3438 5.93749C13.3438 6.10415 13.2854 6.24582 13.1687 6.36249L8.64375 10.8875L7.79375 11.7375C7.67708 11.8542 7.53542 11.9125 7.36875 11.9125C7.20208 11.9125 7.06042 11.8542 6.94375 11.7375L6.09375 10.8875L3.83125 8.62499C3.71458 8.50832 3.65625 8.36665 3.65625 8.19999C3.65625 8.03332 3.71458 7.89165 3.83125 7.77499L4.68125 6.92499C4.79792 6.80832 4.93958 6.74999 5.10625 6.74999C5.27292 6.74999 5.41458 6.80832 5.53125 6.92499L7.36875 8.76874L11.4688 4.66249C11.5854 4.54582 11.7271 4.48749 11.8938 4.48749C12.0604 4.48749 12.2021 4.54582 12.3188 4.66249L13.1687 5.51249C13.2854 5.62915 13.3438 5.77082 13.3438 5.93749Z"
20
+ fill="#50A718"
18
21
  />
19
22
  </svg>`;
20
23
  //# sourceMappingURL=font-awesome.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"font-awesome.js","sourceRoot":"","sources":["../../assets/font-awesome.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAE1B,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAA;;;;;;;;OAQxB,CAAA;AAEP,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,CAAA;;;;;;;;OAQpB,CAAA","sourcesContent":["import { html } from 'lit'\n\nexport const faArrowLeft = html`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 448 512\"\n>\n <!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) -->\n <path\n d=\"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z\"\n />\n</svg>`\n\nexport const faCheck = html`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 512 512\"\n>\n <!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) -->\n <path\n d=\"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z\"\n />\n</svg>`\n"]}
1
+ {"version":3,"file":"font-awesome.js","sourceRoot":"","sources":["../../assets/font-awesome.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAE1B,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAA;;;;;;;;OAQxB,CAAA;AAEP,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;OAW1B,CAAA","sourcesContent":["import { html } from 'lit'\n\nexport const faArrowLeft = html`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 448 512\"\n>\n <!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) -->\n <path\n d=\"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z\"\n />\n</svg>`\n\nexport const faCheck = () => html`<svg\n width=\"17\"\n height=\"16\"\n viewBox=\"0 0 17 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n>\n <path\n d=\"M13.3438 5.93749C13.3438 6.10415 13.2854 6.24582 13.1687 6.36249L8.64375 10.8875L7.79375 11.7375C7.67708 11.8542 7.53542 11.9125 7.36875 11.9125C7.20208 11.9125 7.06042 11.8542 6.94375 11.7375L6.09375 10.8875L3.83125 8.62499C3.71458 8.50832 3.65625 8.36665 3.65625 8.19999C3.65625 8.03332 3.71458 7.89165 3.83125 7.77499L4.68125 6.92499C4.79792 6.80832 4.93958 6.74999 5.10625 6.74999C5.27292 6.74999 5.41458 6.80832 5.53125 6.92499L7.36875 8.76874L11.4688 4.66249C11.5854 4.54582 11.7271 4.48749 11.8938 4.48749C12.0604 4.48749 12.2021 4.54582 12.3188 4.66249L13.1687 5.51249C13.2854 5.62915 13.3438 5.77082 13.3438 5.93749Z\"\n fill=\"#50A718\"\n />\n</svg>`\n"]}
@@ -0,0 +1,91 @@
1
+ import { LitElement } from 'lit';
2
+ import '../kompasid-freewall-head/KompasFreewallHead.js';
3
+ import '../kompasid-freewall-body/KompasFreewallBody.js';
4
+ export declare class KompasFreewall extends LitElement {
5
+ static styles: import("lit").CSSResult[];
6
+ /**
7
+ * Props
8
+ */
9
+ /**
10
+ * property isLogin untuk menghandle apakah user sudah login atau belum
11
+ * property type untuk menghandle tipe freewall
12
+ * property head_copy_expand to update copy header when expand
13
+ * property head_copy_collapse to update copy header when collapse
14
+ * property expand to handle expand/collapse
15
+ * property paywall_location is the location where user encounter the paywall
16
+ * property paywall_subscription_package is the name of the subscription package viewed by user
17
+ * property paywall_subscription_id is the ID of the subscription package viewed by user
18
+ * property paywall_subscription_price is the price of the subscription package viewed by user
19
+ * property paywall_position is the position of the subscription package viewed by user
20
+ * property tracker_page_type is the type of the page
21
+ * property tracker_page_title is the title of the page
22
+ * property tracker_content_id is the ID of article (slug)
23
+ * property content_title is the title of article
24
+ * property tracker_content_categories is the category of the content
25
+ * property tracker_content_type is to decide whether it's free article or paid article
26
+ * property tracker_user_type is the type of user based on their subscription
27
+ * property tracker_subscription_status is the status of their subscription
28
+ * property tracker_page_domain is the page domain
29
+ * property tracker_metered_wall_type is the type of metered wall
30
+ * property tracker_metered_wall_balance is the balance of their metered wall
31
+ */
32
+ isLogin: boolean;
33
+ type: 'article' | 'landing_page';
34
+ head_copy_expand: string;
35
+ head_copy_collapse: string;
36
+ expand: boolean;
37
+ paywall_location: string;
38
+ paywall_subscription_package: string;
39
+ paywall_subscription_id: number;
40
+ paywall_subscription_price: number;
41
+ paywall_position: number;
42
+ tracker_page_type: string;
43
+ tracker_page_title: string;
44
+ tracker_content_id: string;
45
+ tracker_content_title: string;
46
+ tracker_content_categories: string;
47
+ tracker_content_type: string;
48
+ tracker_user_type: string;
49
+ tracker_subscription_status: string;
50
+ tracker_page_domain: string;
51
+ tracker_metered_wall_type: string;
52
+ tracker_metered_wall_balance: number;
53
+ showPackage: {
54
+ duration: number;
55
+ durationType: number;
56
+ id: string;
57
+ link: string;
58
+ price: number;
59
+ position: number;
60
+ title: string;
61
+ referrer: string;
62
+ };
63
+ /**
64
+ * State
65
+ */
66
+ private isExpand;
67
+ private packageData;
68
+ /**
69
+ * Getter
70
+ */
71
+ get isArticle(): boolean;
72
+ /**
73
+ * Data Layer
74
+ */
75
+ private sendDataLayer;
76
+ private sendDataLayerPaywallViewed;
77
+ private sendDataLayerSubscribeButtonClicked;
78
+ /**
79
+ * Logic Function
80
+ */
81
+ private toggleExpand;
82
+ private onSubscriptionClick;
83
+ /**
84
+ * Lifecycle
85
+ */
86
+ connectedCallback(): Promise<void>;
87
+ /**
88
+ * Render Statement
89
+ */
90
+ render(): import("lit").TemplateResult<1>;
91
+ }