@kompasid/lit-web-components 0.3.1 → 0.4.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/assets/video.jpg +0 -0
- package/demo/index.html +38 -37
- package/dist/src/components/{kompas-footer → kompasid-footer}/KompasFooter.js +16 -4
- package/dist/src/components/kompasid-footer/KompasFooter.js.map +1 -0
- package/dist/src/components/kompasid-footer/types.js.map +1 -0
- package/dist/src/components/{kompas-metered-paywall → kompasid-metered-paywall}/KompasMeteredPaywall.js +3 -3
- package/dist/src/components/kompasid-metered-paywall/KompasMeteredPaywall.js.map +1 -0
- package/dist/src/components/{kompas-paywall → kompasid-paywall}/KompasPaywall.d.ts +3 -3
- package/dist/src/components/{kompas-paywall → kompasid-paywall}/KompasPaywall.js +17 -20
- package/dist/src/components/kompasid-paywall/KompasPaywall.js.map +1 -0
- package/dist/src/components/kompasid-paywall/types.js.map +1 -0
- package/dist/src/components/{kompas-paywall-banner-registration → kompasid-paywall-banner-registration}/KompasPaywallBannerRegistration.d.ts +1 -1
- package/dist/src/components/{kompas-paywall-banner-registration → kompasid-paywall-banner-registration}/KompasPaywallBannerRegistration.js +1 -1
- package/dist/src/components/kompasid-paywall-banner-registration/KompasPaywallBannerRegistration.js.map +1 -0
- package/dist/src/components/{kompas-paywall-body → kompasid-paywall-body}/KompasPaywallBody.d.ts +36 -9
- package/dist/src/components/{kompas-paywall-body → kompasid-paywall-body}/KompasPaywallBody.js +405 -288
- package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.js.map +1 -0
- package/dist/src/components/{kompas-paywall-information-header → kompasid-paywall-information-header}/KompasPaywallInformationHeader.js +1 -1
- package/dist/src/components/kompasid-paywall-information-header/KompasPaywallInformationHeader.js.map +1 -0
- package/dist/src/components/{kompas-paywall-video → kompasid-paywall-video}/KompasPaywallVideo.d.ts +41 -5
- package/dist/src/components/kompasid-paywall-video/KompasPaywallVideo.js +302 -0
- package/dist/src/components/kompasid-paywall-video/KompasPaywallVideo.js.map +1 -0
- package/dist/src/index.d.ts +4 -4
- package/dist/src/index.js +4 -4
- package/dist/src/index.js.map +1 -1
- package/dist/src/utils/formatRupiah.d.ts +1 -0
- package/dist/src/utils/formatRupiah.js +7 -0
- package/dist/src/utils/formatRupiah.js.map +1 -0
- package/dist/tailwind/tailwind.js +123 -95
- package/dist/tailwind/tailwind.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/{kompas-footer → kompasid-footer}/KompasFooter.ts +16 -4
- package/src/components/{kompas-metered-paywall → kompasid-metered-paywall}/KompasMeteredPaywall.ts +3 -3
- package/src/components/{kompas-metered-paywall → kompasid-metered-paywall}/readme.md +1 -1
- package/src/components/{kompas-paywall → kompasid-paywall}/KompasPaywall.ts +17 -20
- package/src/components/{kompas-paywall → kompasid-paywall}/readme.md +8 -8
- package/src/components/{kompas-paywall-banner-registration → kompasid-paywall-banner-registration}/KompasPaywallBannerRegistration.ts +2 -2
- package/src/components/{kompas-paywall-banner-registration → kompasid-paywall-banner-registration}/readme.md +4 -4
- package/src/components/{kompas-paywall-body → kompasid-paywall-body}/KompasPaywallBody.ts +345 -197
- package/src/components/{kompas-paywall-body → kompasid-paywall-body}/readme.md +4 -4
- package/src/components/{kompas-paywall-information-header → kompasid-paywall-information-header}/KompasPaywallInformationHeader.ts +1 -1
- package/src/components/{kompas-paywall-information-header → kompasid-paywall-information-header}/readme.md +4 -4
- package/src/components/kompasid-paywall-video/KompasPaywallVideo.ts +269 -0
- package/src/components/{kompas-paywall-video → kompasid-paywall-video}/readme.md +4 -3
- package/src/index.ts +4 -4
- package/src/utils/formatRupiah.ts +6 -0
- package/tailwind/tailwind.css +120 -92
- package/tailwind/tailwind.ts +123 -95
- package/tailwind.config.js +3 -1
- package/dist/src/components/kompas-footer/KompasFooter.js.map +0 -1
- package/dist/src/components/kompas-footer/types.js.map +0 -1
- package/dist/src/components/kompas-metered-paywall/KompasMeteredPaywall.js.map +0 -1
- package/dist/src/components/kompas-paywall/KompasPaywall.js.map +0 -1
- package/dist/src/components/kompas-paywall/types.js.map +0 -1
- package/dist/src/components/kompas-paywall-banner-registration/KompasPaywallBannerRegistration.js.map +0 -1
- package/dist/src/components/kompas-paywall-body/KompasPaywallBody.js.map +0 -1
- package/dist/src/components/kompas-paywall-information-header/KompasPaywallInformationHeader.js.map +0 -1
- package/dist/src/components/kompas-paywall-video/KompasPaywallVideo.js +0 -240
- package/dist/src/components/kompas-paywall-video/KompasPaywallVideo.js.map +0 -1
- package/src/components/kompas-paywall-video/KompasPaywallVideo.ts +0 -195
- /package/dist/src/components/{kompas-footer → kompasid-footer}/KompasFooter.d.ts +0 -0
- /package/dist/src/components/{kompas-footer → kompasid-footer}/types.d.ts +0 -0
- /package/dist/src/components/{kompas-footer → kompasid-footer}/types.js +0 -0
- /package/dist/src/components/{kompas-metered-paywall → kompasid-metered-paywall}/KompasMeteredPaywall.d.ts +0 -0
- /package/dist/src/components/{kompas-paywall → kompasid-paywall}/types.d.ts +0 -0
- /package/dist/src/components/{kompas-paywall → kompasid-paywall}/types.js +0 -0
- /package/dist/src/components/{kompas-paywall-information-header → kompasid-paywall-information-header}/KompasPaywallInformationHeader.d.ts +0 -0
- /package/src/components/{kompas-footer → kompasid-footer}/types.ts +0 -0
- /package/src/components/{kompas-paywall → kompasid-paywall}/types.ts +0 -0
package/tailwind/tailwind.ts
CHANGED
|
@@ -642,6 +642,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
642
642
|
margin-top: -1.75rem;
|
|
643
643
|
}
|
|
644
644
|
|
|
645
|
+
.mb-0 {
|
|
646
|
+
margin-bottom: 0px;
|
|
647
|
+
}
|
|
648
|
+
|
|
645
649
|
.mb-1 {
|
|
646
650
|
margin-bottom: 0.25rem;
|
|
647
651
|
}
|
|
@@ -650,10 +654,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
650
654
|
margin-bottom: 0.5rem;
|
|
651
655
|
}
|
|
652
656
|
|
|
653
|
-
.mb-4 {
|
|
654
|
-
margin-bottom: 1rem;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
657
|
.ml-0 {
|
|
658
658
|
margin-left: 0px;
|
|
659
659
|
}
|
|
@@ -746,10 +746,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
746
746
|
height: 2rem;
|
|
747
747
|
}
|
|
748
748
|
|
|
749
|
-
.h-9 {
|
|
750
|
-
height: 2.25rem;
|
|
751
|
-
}
|
|
752
|
-
|
|
753
749
|
.h-auto {
|
|
754
750
|
height: auto;
|
|
755
751
|
}
|
|
@@ -758,12 +754,12 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
758
754
|
height: 100%;
|
|
759
755
|
}
|
|
760
756
|
|
|
761
|
-
.w-1\\/
|
|
762
|
-
width:
|
|
757
|
+
.w-1\\/5 {
|
|
758
|
+
width: 20%;
|
|
763
759
|
}
|
|
764
760
|
|
|
765
|
-
.w-
|
|
766
|
-
width:
|
|
761
|
+
.w-10 {
|
|
762
|
+
width: 2.5rem;
|
|
767
763
|
}
|
|
768
764
|
|
|
769
765
|
.w-20 {
|
|
@@ -778,6 +774,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
778
774
|
width: 1rem;
|
|
779
775
|
}
|
|
780
776
|
|
|
777
|
+
.w-4\\/5 {
|
|
778
|
+
width: 80%;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
781
|
.w-40 {
|
|
782
782
|
width: 10rem;
|
|
783
783
|
}
|
|
@@ -798,6 +798,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
798
798
|
width: 138px;
|
|
799
799
|
}
|
|
800
800
|
|
|
801
|
+
.w-\\[296px\\] {
|
|
802
|
+
width: 296px;
|
|
803
|
+
}
|
|
804
|
+
|
|
801
805
|
.w-auto {
|
|
802
806
|
width: auto;
|
|
803
807
|
}
|
|
@@ -806,10 +810,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
806
810
|
width: 100%;
|
|
807
811
|
}
|
|
808
812
|
|
|
809
|
-
.max-w-2xl {
|
|
810
|
-
max-width: 42rem;
|
|
811
|
-
}
|
|
812
|
-
|
|
813
813
|
.max-w-7xl {
|
|
814
814
|
max-width: 80rem;
|
|
815
815
|
}
|
|
@@ -863,10 +863,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
863
863
|
grid-auto-flow: row;
|
|
864
864
|
}
|
|
865
865
|
|
|
866
|
-
.grid-flow-col {
|
|
867
|
-
grid-auto-flow: column;
|
|
868
|
-
}
|
|
869
|
-
|
|
870
866
|
.grid-cols-1 {
|
|
871
867
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
872
868
|
}
|
|
@@ -883,10 +879,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
883
879
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
884
880
|
}
|
|
885
881
|
|
|
886
|
-
.grid-rows-1 {
|
|
887
|
-
grid-template-rows: repeat(1, minmax(0, 1fr));
|
|
888
|
-
}
|
|
889
|
-
|
|
890
882
|
.grid-rows-2 {
|
|
891
883
|
grid-template-rows: repeat(2, minmax(0, 1fr));
|
|
892
884
|
}
|
|
@@ -943,12 +935,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
943
935
|
row-gap: 1rem;
|
|
944
936
|
}
|
|
945
937
|
|
|
946
|
-
.space-x-3 > :not([hidden]) ~ :not([hidden]) {
|
|
947
|
-
--tw-space-x-reverse: 0;
|
|
948
|
-
margin-right: calc(0.75rem * var(--tw-space-x-reverse));
|
|
949
|
-
margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
|
|
950
|
-
}
|
|
951
|
-
|
|
952
938
|
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
|
|
953
939
|
--tw-space-x-reverse: 0;
|
|
954
940
|
margin-right: calc(1rem * var(--tw-space-x-reverse));
|
|
@@ -977,9 +963,13 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
977
963
|
border-radius: 0.375rem;
|
|
978
964
|
}
|
|
979
965
|
|
|
980
|
-
.rounded-
|
|
981
|
-
border-
|
|
982
|
-
|
|
966
|
+
.rounded-xl {
|
|
967
|
+
border-radius: 0.75rem;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
.rounded-b-xl {
|
|
971
|
+
border-bottom-right-radius: 0.75rem;
|
|
972
|
+
border-bottom-left-radius: 0.75rem;
|
|
983
973
|
}
|
|
984
974
|
|
|
985
975
|
.border {
|
|
@@ -990,6 +980,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
990
980
|
border-width: 2px;
|
|
991
981
|
}
|
|
992
982
|
|
|
983
|
+
.border-b {
|
|
984
|
+
border-bottom-width: 1px;
|
|
985
|
+
}
|
|
986
|
+
|
|
993
987
|
.border-b-2 {
|
|
994
988
|
border-bottom-width: 2px;
|
|
995
989
|
}
|
|
@@ -1003,14 +997,14 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1003
997
|
border-color: rgb(147 200 253 / var(--tw-border-opacity));
|
|
1004
998
|
}
|
|
1005
999
|
|
|
1006
|
-
.border-dark-
|
|
1000
|
+
.border-dark-6 {
|
|
1007
1001
|
--tw-border-opacity: 1;
|
|
1008
|
-
border-color: rgb(
|
|
1002
|
+
border-color: rgb(46 46 46 / var(--tw-border-opacity));
|
|
1009
1003
|
}
|
|
1010
1004
|
|
|
1011
|
-
.border-dark-
|
|
1005
|
+
.border-dark-8 {
|
|
1012
1006
|
--tw-border-opacity: 1;
|
|
1013
|
-
border-color: rgb(
|
|
1007
|
+
border-color: rgb(136 136 136 / var(--tw-border-opacity));
|
|
1014
1008
|
}
|
|
1015
1009
|
|
|
1016
1010
|
.border-green-400 {
|
|
@@ -1058,11 +1052,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1058
1052
|
background-color: rgb(225 240 255 / var(--tw-bg-opacity));
|
|
1059
1053
|
}
|
|
1060
1054
|
|
|
1061
|
-
.bg-blue-300 {
|
|
1062
|
-
--tw-bg-opacity: 1;
|
|
1063
|
-
background-color: rgb(90 171 252 / var(--tw-bg-opacity));
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
1055
|
.bg-blue-600 {
|
|
1067
1056
|
--tw-bg-opacity: 1;
|
|
1068
1057
|
background-color: rgb(3 86 168 / var(--tw-bg-opacity));
|
|
@@ -1128,18 +1117,8 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1128
1117
|
background-color: rgb(255 220 63 / var(--tw-bg-opacity));
|
|
1129
1118
|
}
|
|
1130
1119
|
|
|
1131
|
-
.bg-
|
|
1132
|
-
--tw-bg-opacity:
|
|
1133
|
-
background-color: rgb(243 32 19 / var(--tw-bg-opacity));
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
.bg-yellow-400 {
|
|
1137
|
-
--tw-bg-opacity: 1;
|
|
1138
|
-
background-color: rgb(255 204 0 / var(--tw-bg-opacity));
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
.bg-opacity-50 {
|
|
1142
|
-
--tw-bg-opacity: 0.5;
|
|
1120
|
+
.bg-opacity-75 {
|
|
1121
|
+
--tw-bg-opacity: 0.75;
|
|
1143
1122
|
}
|
|
1144
1123
|
|
|
1145
1124
|
.object-cover {
|
|
@@ -1179,6 +1158,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1179
1158
|
padding-right: 1.5rem;
|
|
1180
1159
|
}
|
|
1181
1160
|
|
|
1161
|
+
.px-8 {
|
|
1162
|
+
padding-left: 2rem;
|
|
1163
|
+
padding-right: 2rem;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1182
1166
|
.py-0 {
|
|
1183
1167
|
padding-top: 0px;
|
|
1184
1168
|
padding-bottom: 0px;
|
|
@@ -1189,26 +1173,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1189
1173
|
padding-bottom: 0.125rem;
|
|
1190
1174
|
}
|
|
1191
1175
|
|
|
1192
|
-
.py-1 {
|
|
1193
|
-
padding-top: 0.25rem;
|
|
1194
|
-
padding-bottom: 0.25rem;
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
.py-1\\.5 {
|
|
1198
|
-
padding-top: 0.375rem;
|
|
1199
|
-
padding-bottom: 0.375rem;
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
1176
|
.py-2 {
|
|
1203
1177
|
padding-top: 0.5rem;
|
|
1204
1178
|
padding-bottom: 0.5rem;
|
|
1205
1179
|
}
|
|
1206
1180
|
|
|
1207
|
-
.py-2\\.5 {
|
|
1208
|
-
padding-top: 0.625rem;
|
|
1209
|
-
padding-bottom: 0.625rem;
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
1181
|
.py-3 {
|
|
1213
1182
|
padding-top: 0.75rem;
|
|
1214
1183
|
padding-bottom: 0.75rem;
|
|
@@ -1219,6 +1188,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1219
1188
|
padding-bottom: 1rem;
|
|
1220
1189
|
}
|
|
1221
1190
|
|
|
1191
|
+
.py-5 {
|
|
1192
|
+
padding-top: 1.25rem;
|
|
1193
|
+
padding-bottom: 1.25rem;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1222
1196
|
.pb-1 {
|
|
1223
1197
|
padding-bottom: 0.25rem;
|
|
1224
1198
|
}
|
|
@@ -1291,6 +1265,13 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1291
1265
|
text-align: center;
|
|
1292
1266
|
}
|
|
1293
1267
|
|
|
1268
|
+
.font-sans {
|
|
1269
|
+
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
|
|
1270
|
+
'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
|
|
1271
|
+
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
1272
|
+
'Noto Color Emoji';
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1294
1275
|
.font-serif {
|
|
1295
1276
|
font-family: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
|
|
1296
1277
|
}
|
|
@@ -1314,12 +1295,20 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1314
1295
|
font-weight: 700;
|
|
1315
1296
|
}
|
|
1316
1297
|
|
|
1317
|
-
.
|
|
1318
|
-
|
|
1298
|
+
.font-normal {
|
|
1299
|
+
font-weight: 400;
|
|
1319
1300
|
}
|
|
1320
1301
|
|
|
1321
|
-
.leading-
|
|
1322
|
-
line-height: 1.
|
|
1302
|
+
.leading-5 {
|
|
1303
|
+
line-height: 1.25rem;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
.leading-\\[18px\\] {
|
|
1307
|
+
line-height: 18px;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
.leading-\\[22px\\] {
|
|
1311
|
+
line-height: 22px;
|
|
1323
1312
|
}
|
|
1324
1313
|
|
|
1325
1314
|
.leading-none {
|
|
@@ -1374,11 +1363,21 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1374
1363
|
color: rgb(46 46 46 / var(--tw-text-opacity));
|
|
1375
1364
|
}
|
|
1376
1365
|
|
|
1366
|
+
.text-dark-7 {
|
|
1367
|
+
--tw-text-opacity: 1;
|
|
1368
|
+
color: rgb(224 224 224 / var(--tw-text-opacity));
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1377
1371
|
.text-green-300 {
|
|
1378
1372
|
--tw-text-opacity: 1;
|
|
1379
1373
|
color: rgb(151 219 83 / var(--tw-text-opacity));
|
|
1380
1374
|
}
|
|
1381
1375
|
|
|
1376
|
+
.text-green-400 {
|
|
1377
|
+
--tw-text-opacity: 1;
|
|
1378
|
+
color: rgb(106 195 34 / var(--tw-text-opacity));
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1382
1381
|
.text-green-500 {
|
|
1383
1382
|
--tw-text-opacity: 1;
|
|
1384
1383
|
color: rgb(80 167 24 / var(--tw-text-opacity));
|
|
@@ -1389,6 +1388,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1389
1388
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
1390
1389
|
}
|
|
1391
1390
|
|
|
1391
|
+
.text-grey-500 {
|
|
1392
|
+
--tw-text-opacity: 1;
|
|
1393
|
+
color: rgb(102 102 102 / var(--tw-text-opacity));
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1392
1396
|
.text-grey-600 {
|
|
1393
1397
|
--tw-text-opacity: 1;
|
|
1394
1398
|
color: rgb(51 51 51 / var(--tw-text-opacity));
|
|
@@ -1415,20 +1419,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1415
1419
|
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1416
1420
|
}
|
|
1417
1421
|
|
|
1418
|
-
.ring-1 {
|
|
1419
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0
|
|
1420
|
-
var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1421
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0
|
|
1422
|
-
calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1423
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
|
|
1424
|
-
var(--tw-shadow, 0 0 #0000);
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
.ring-grey-100 {
|
|
1428
|
-
--tw-ring-opacity: 1;
|
|
1429
|
-
--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity));
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
1422
|
@media (min-width: 640px) {
|
|
1433
1423
|
.sm\\:grid-cols-4 {
|
|
1434
1424
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
@@ -1446,6 +1436,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1446
1436
|
margin-bottom: 2rem;
|
|
1447
1437
|
}
|
|
1448
1438
|
|
|
1439
|
+
.md\\:mb-0 {
|
|
1440
|
+
margin-bottom: 0px;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1449
1443
|
.md\\:ml-1 {
|
|
1450
1444
|
margin-left: 0.25rem;
|
|
1451
1445
|
}
|
|
@@ -1470,14 +1464,18 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1470
1464
|
margin-top: 2rem;
|
|
1471
1465
|
}
|
|
1472
1466
|
|
|
1473
|
-
.md\\:
|
|
1474
|
-
display:
|
|
1467
|
+
.md\\:block {
|
|
1468
|
+
display: block;
|
|
1475
1469
|
}
|
|
1476
1470
|
|
|
1477
1471
|
.md\\:hidden {
|
|
1478
1472
|
display: none;
|
|
1479
1473
|
}
|
|
1480
1474
|
|
|
1475
|
+
.md\\:h-12 {
|
|
1476
|
+
height: 3rem;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1481
1479
|
.md\\:w-3\\/5 {
|
|
1482
1480
|
width: 60%;
|
|
1483
1481
|
}
|
|
@@ -1490,8 +1488,12 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1490
1488
|
width: 13rem;
|
|
1491
1489
|
}
|
|
1492
1490
|
|
|
1493
|
-
.md\\:
|
|
1494
|
-
|
|
1491
|
+
.md\\:w-\\[400px\\] {
|
|
1492
|
+
width: 400px;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
.md\\:w-full {
|
|
1496
|
+
width: 100%;
|
|
1495
1497
|
}
|
|
1496
1498
|
|
|
1497
1499
|
.md\\:max-w-sm {
|
|
@@ -1506,16 +1508,20 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1506
1508
|
flex-direction: row;
|
|
1507
1509
|
}
|
|
1508
1510
|
|
|
1509
|
-
.md\\:space-
|
|
1510
|
-
--tw-space-
|
|
1511
|
-
margin-
|
|
1512
|
-
margin-
|
|
1511
|
+
.md\\:space-y-4 > :not([hidden]) ~ :not([hidden]) {
|
|
1512
|
+
--tw-space-y-reverse: 0;
|
|
1513
|
+
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
|
|
1514
|
+
margin-bottom: calc(1rem * var(--tw-space-y-reverse));
|
|
1513
1515
|
}
|
|
1514
1516
|
|
|
1515
1517
|
.md\\:self-end {
|
|
1516
1518
|
align-self: flex-end;
|
|
1517
1519
|
}
|
|
1518
1520
|
|
|
1521
|
+
.md\\:rounded-lg {
|
|
1522
|
+
border-radius: 0.5rem;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1519
1525
|
.md\\:px-0 {
|
|
1520
1526
|
padding-left: 0px;
|
|
1521
1527
|
padding-right: 0px;
|
|
@@ -1526,6 +1532,20 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1526
1532
|
padding-right: 5rem;
|
|
1527
1533
|
}
|
|
1528
1534
|
|
|
1535
|
+
.md\\:px-6 {
|
|
1536
|
+
padding-left: 1.5rem;
|
|
1537
|
+
padding-right: 1.5rem;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
.md\\:py-6 {
|
|
1541
|
+
padding-top: 1.5rem;
|
|
1542
|
+
padding-bottom: 1.5rem;
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
.md\\:pb-4 {
|
|
1546
|
+
padding-bottom: 1rem;
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1529
1549
|
.md\\:pt-8 {
|
|
1530
1550
|
padding-top: 2rem;
|
|
1531
1551
|
}
|
|
@@ -1554,6 +1574,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1554
1574
|
line-height: 1.75rem;
|
|
1555
1575
|
}
|
|
1556
1576
|
|
|
1577
|
+
.md\\:leading-6 {
|
|
1578
|
+
line-height: 1.5rem;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1557
1581
|
.md\\:tracking-normal {
|
|
1558
1582
|
letter-spacing: 0em;
|
|
1559
1583
|
}
|
|
@@ -1593,6 +1617,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
1593
1617
|
display: block;
|
|
1594
1618
|
}
|
|
1595
1619
|
|
|
1620
|
+
.lg\\:flex {
|
|
1621
|
+
display: flex;
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1596
1624
|
.lg\\:hidden {
|
|
1597
1625
|
display: none;
|
|
1598
1626
|
}
|
package/tailwind.config.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KompasFooter.js","sourceRoot":"","sources":["../../../../src/components/kompas-footer/KompasFooter.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAExD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAG9D,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QAqDuB,WAAM,GAAkB,IAAI,CAAA;QAE3B,WAAM,GAAG,KAAK,CAAA;IA2Q7C,CAAC;IAzQC,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAA;QAEzB,IAAI,CAAC,mBAAmB,EAAE,CAAA;QAC1B,IAAI,CAAC,gBAAgB,EAAE,CAAA;IACzB,CAAC;IAEO,mBAAmB;QACzB,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;QAC3C,IAAI,CAAC,GAAG,GAAG,YAAY,CAAA;QACvB,IAAI,CAAC,IAAI;YACP,iGAAiG,CAAA;QACnG,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IA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,CAAA;IACf,CAAC;;AAhUM,mBAAM,GAAG;IACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+CF;IACD,QAAQ;CACT,CAAA;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAA6B;AAE3B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;4CAAe;AAvDhC,YAAY;IADxB,aAAa,CAAC,eAAe,CAAC;GAClB,YAAY,CAkUxB;SAlUY,YAAY","sourcesContent":["import { html, css, LitElement } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js'\nimport { TWStyles } from '../../../tailwind/tailwind.js'\nimport { Footer } from './types.js'\nimport { getFontAwesomeIcon } from '../../utils/fontawesome-setup.js'\n\n@customElement('kompas-footer')\nexport class KompasFooter extends LitElement {\n static styles = [\n css`\n :host {\n font-family: 'PT Sans', sans-serif;\n }\n\n .bg-instagram {\n background-image: linear-gradient(90deg, #ffc107, #f44336, #9c27b0);\n }\n\n .bg-sosmed-facebook {\n background-color: #3d5b9b;\n }\n\n .bg-sosmed-twitter {\n background-color: #2daae4;\n }\n\n .bg-sosmed-youtube {\n background-color: #f44336;\n }\n\n .text-brand-1 {\n color: #00559a;\n }\n\n .text-grey-50 {\n color: #666;\n color: rgb(102 102 102/1);\n }\n\n .text-grey-60 {\n color: #333;\n color: rgb(51 51 51/1);\n }\n\n .border-grey-30 {\n --tw-border-opacity: 1;\n border-color: rgb(221 221 221 / var(--tw-border-opacity));\n }\n\n .hover-bg-blue-10:hover {\n background-color: #e1f0ff;\n }\n\n .hover-border-blue-20:hover {\n border-color: #93c8fd;\n }\n `,\n TWStyles,\n ]\n\n @property({ type: Object }) footer: Footer | null = null\n\n @property({ type: Boolean }) isDark = false\n\n connectedCallback() {\n super.connectedCallback()\n\n this.addStylesheetToHead()\n this.initializeFooter()\n }\n\n private addStylesheetToHead() {\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.href =\n 'https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap'\n document.head.appendChild(link)\n }\n\n private initializeFooter() {\n if (this.footer === undefined || this.footer === null) {\n this.fetchFooter()\n }\n }\n\n async fetchFooter() {\n const response = await fetch(\n 'https://d3w4qaq4xm1ncv.cloudfront.net/assets/json/footer/ApiFooterDefault.json'\n )\n const jsonResponse = await response.json()\n this.footer = jsonResponse\n }\n\n getYear() {\n return new Date().getFullYear()\n }\n\n render() {\n if (this.footer) {\n const { isDark } = this\n const bgClass = isDark ? 'bg-[#2C2C2C]' : 'bg-transparent'\n const primaryTextColor = isDark ? 'text-[#FFFFFF]' : ''\n const secondaryTextColor = isDark ? 'text-[#FFFFFF]' : 'text-grey-60'\n const itemTextColor = isDark ? 'text-[#FFFFFF]' : 'text-[#00559a]'\n\n return html`\n <div\n class=\"border-t border-grey-30 mx-auto w-full md:px-20 px-4 ${bgClass} ${primaryTextColor}\"\n >\n <div class=\"max-w-7xl mx-auto\">\n <div class=\"md:px-0 pb-6 lg:pb-0 mx-auto w-full\">\n <div\n class=\"grid grid-cols-4 lg:grid-cols-12 gap-6 lg:gap-8 lg:justify-between pt-10 pb-8 lg:py-10\"\n >\n ${Object.values(this.footer.brands.itemsLeft).map(\n brand => html`\n <a\n class=\"col-span-4 lg:col-span-2 flex gap-4 cursor-pointer\"\n title=\"Kompas.id\"\n href=\"${brand.permalink}\"\n >\n <img\n src=\"https://d3w4qaq4xm1ncv.cloudfront.net/assets/img/logos/kompas-logo-footer.svg\"\n height=\"${brand.image.height}\"\n width=\"${brand.image.width}\"\n alt=\"${brand.image.alt}\"\n class=\"w-auto h-10 lg:mx-auto\"\n />\n </a>\n `\n )}\n <div\n class=\"col-span-4 lg:col-start-10 lg:col-span-3 gap-4 flex lg:justify-end mx-auto w-full\"\n >\n <a\n class=\"cursor-pointer\"\n href=\"${this.footer.brands.itemsRight[0].permalink}\"\n target=\"_blank\"\n >\n <img\n src=\"https://d3w4qaq4xm1ncv.cloudfront.net/halaman-unduh/image/ios-badge.png\"\n class=\"h-10 w-[120px]\"\n alt=\"Logo iOS\"\n /></a>\n <a\n class=\"cursor-pointer\"\n href=\"${this.footer.brands.itemsRight[1].permalink}\"\n target=\"_blank\"\n >\n <img\n src=\"https://d3w4qaq4xm1ncv.cloudfront.net/halaman-unduh/image/google-play-badge.png\"\n class=\"h-10 w-[138px]\"\n alt=\"Logo Android\"\n /></a>\n </div>\n </div>\n </div>\n <div class=\"grid grid-cols-4 lg:grid-cols-12 gap-8 pb-2\">\n <div\n class=\"col-span-4 lg:col-span-3 flex flex-row lg:flex-col gap-8 lg:gap-0\"\n >\n ${Object.values(this.footer.address.items).map(\n address => html` <div class=\"lg:pb-6\">\n <div\n class=\"font-bold leading-none pb-3 text-sm ${itemTextColor}\"\n >\n ${address.title}\n </div>\n <div class=\"leading-normal pb-3 text-sm ${secondaryTextColor}\">\n ${address.text}\n </div>\n <div class=\"flex flex-row\">\n <div\n class=\"font-bold leading-none pb-3 pr-2 text-sm ${itemTextColor} hidden lg:block\"\n >\n Tlp.\n </div>\n <div\n class=\"grid lg:gap-x-6 lg:grid-cols-2 md:grid-cols-1 grid-cols-1\"\n >\n ${Object.values(address.phones).map(\n num => html`\n <div\n class=\"leading-normal pb-2 text-sm ${secondaryTextColor}\"\n >\n ${num.number}\n </div>\n `\n )}\n </div>\n </div>\n </div>`\n )}\n </div>\n <div class=\"col-span-4 lg:col-span-5 gap-4\">\n <div class=\"grid grid-cols-2 sm:grid-cols-4 gap-6 shrink-0\">\n ${Object.values(this.footer.products.items).map(\n product => html`\n <div>\n <div\n class=\"font-bold leading-none pb-4 text-sm ${itemTextColor}\"\n >\n ${product.title}\n </div>\n ${Object.values(product.sites).map(\n prod => html`\n <a\n class=\"leading-normal text-sm ${secondaryTextColor}\"\n href=\"${prod.permalink}\"\n >\n <div class=\"flex flex-col pb-4 cursor-pointer\">\n ${prod.text}\n </div>\n </a>\n `\n )}\n </div>\n `\n )}\n </div>\n </div>\n <div class=\"col-span-2 flex flex-col\">\n <div\n class=\"font-bold leading-none pb-4 text-sm ${itemTextColor}\"\n >\n ${this.footer.contacts.title}\n </div>\n ${Object.values(this.footer.contacts.items).map(\n contact => html` <div class=\"flex flex-row pb-4\">\n <div\n class=\"flex items-center mr-3 text-base ${itemTextColor}\"\n >\n ${unsafeSVG(\n getFontAwesomeIcon(contact.icon[0], contact.icon[1])\n )}\n </div>\n <div class=\"flex flex-col\">\n <div class=\"pb-1 text-sm w-full ${secondaryTextColor}\">\n ${contact.label}\n </div>\n <a\n class=\"font-bold text-sm w-full cursor-pointer\"\n href=\"${contact.action}\"\n >\n <span class=\"text-grey-50\"> ${contact.text} </span>\n </a>\n </div>\n </div>`\n )}\n </div>\n <div class=\"col-span-2 flex flex-col\">\n <div\n class=\"font-bold leading-none pb-4 text-sm ${itemTextColor}\"\n >\n ${this.footer.sosmed.title}\n </div>\n ${Object.values(this.footer.sosmed.items).map(\n sosmed => html`\n <a\n class=\"border border-grey-30 hover-border-blue-20 hover-bg-blue-10 p-2 mb-2 flex flex-row md:self-end rounded w-full cursor-pointer\"\n href=\"${sosmed.url}\"\n >\n <div\n class=\"h-5 flex justify-center items-center rounded text-white w-5 ${sosmed.color}\"\n >\n <div class=\"h-3 text-xs\">\n ${unsafeSVG(\n getFontAwesomeIcon(\n sosmed.icon[0],\n sosmed.icon[1],\n 12,\n 12\n )\n )}\n </div>\n </div>\n <div class=\"leading-normal pl-2 text-sm ${secondaryTextColor}\">\n ${sosmed.name}\n </div>\n </a>\n `\n )}\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col pb-32 pt-6 px-4 text-xs bg-black\">\n <div class=\"flex flex-col lg:flex-row max-w-7xl mx-auto w-full\">\n <div class=\"flex flex-wrap mb-2 lg:mb-0 w-full\">\n <div\n class=\"flex flex-col lg:flex-row flex-grow lg:justify-between\"\n >\n <div class=\"flex flex-wrap\">\n <div class=\"flex text-white\">\n © ${this.getYear()} PT Kompas Media Nusantara\n <span class=\"mx-2 text-grey-50\">·</span>\n </div>\n ${Object.values(this.footer.universal.itemsLeft).map(\n universal => html` <a\n class=\"flex justify-center items-center\"\n href=\"${universal.url}\"\n >\n <div class=\"pb-2 lg:pb-0 text-white cursor-pointer\">\n ${universal.name}\n <span class=\"mx-2 text-grey-50\">·</span>\n </div>\n </a>`\n )}\n </div>\n <div class=\"flex flex-wrap shrink-0\">\n ${Object.values(this.footer.universal.itemsRight).map(\n universal => html`\n <a class=\"flex cursor-pointer\" href=\"${universal.url}\">\n <div class=\"text-white flex items-center\">\n ${universal.name}\n <span class=\"mx-2 text-grey-50\">·</span>\n </div>\n </a>\n `\n )}\n </div>\n </div>\n </div>\n </div>\n </div>\n `\n }\n return html``\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/kompas-footer/types.ts"],"names":[],"mappings":"","sourcesContent":["export interface Image {\n alt: string\n height: number\n url: string\n width: number\n}\n\nexport interface Item {\n image: Image\n permalink: string\n name: string\n url: string\n}\n\nexport interface Section<T> {\n items: T[]\n title?: string\n}\n\nexport interface Phones {\n number: number\n}\n\nexport interface Sites {\n text: string\n permalink: string\n}\n\nexport interface Items {\n phones: Phones\n title: string\n text: string\n sites: Sites\n action: string\n icon: string[]\n label: string\n color: string\n name: string\n url: string\n}\n\nexport interface Universal {\n itemsLeft: Item[]\n itemsRight: Item[]\n}\n\nexport interface Footer {\n brands: Universal\n address: Section<Items>\n products: Section<Items>\n contacts: Section<Items>\n sosmed: Section<Items>\n universal: Universal\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KompasMeteredPaywall.js","sourceRoot":"","sources":["../../../../src/components/kompas-metered-paywall/KompasMeteredPaywall.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,G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B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qEAA6B;AAC5B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wEAA+B;AAC9B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8DAAqB;AACpB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+DAAuB;AACtB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gEAAwB;AACvB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mEAA2B;AAC1B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wEAAgC;AAC/B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kEAA0B;AACzB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+DAAuB;AACtB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yEAAiC;AAChC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iEAAyB;AACxB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uEAA+B;AAC9B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0EAAiC;AAvEjD,oBAAoB;IADhC,aAAa,CAAC,wBAAwB,CAAC;GAC3B,oBAAoB,CAwKhC;SAxKY,oBAAoB","sourcesContent":["import { html, css, LitElement } from 'lit'\nimport { customElement, state, property } from 'lit/decorators.js'\nimport { TWStyles } from '../../../tailwind/tailwind.js'\n\n@customElement('kompas-metered-paywall')\nexport class KompasMeteredPaywall extends LitElement {\n static styles = [\n css`\n .text-transition {\n width: 100%;\n height: 5rem;\n }\n\n .body {\n position: sticky;\n top: 0;\n height: 100%;\n width: 100%;\n }\n\n .icon {\n height: 1rem;\n color: #48bb78;\n }\n\n .icon.lg {\n height: 1.5rem;\n }\n\n .icon.lg svg {\n height: 1.5rem;\n }\n `,\n TWStyles,\n ]\n\n @state() maxQuota: number = 3\n\n @state() subscriptionUrl: string = 'https://www.kompas.id/berlangganan'\n /**\n * Props\n */\n /**\n * prop countdownArticle untuk menghandle sudah berapa artikel gratis yang user baca.\n * prop paywall_location = The location where user encounter the paywall\n * prop paywall_subscription_package = The name of the subscription package viewed by user\n * prop paywall_subscription_id = The ID of the subscription package viewed by user\n * prop paywall_subscription_price = The price of the subscriprtion package viewed by user\n * prop paywall_position = The position of ther subscription package viewed by user\n * prop tracker_page_type = Type of the page\n * prop tracker_content_id = ID of article (slug)\n * prop tracker_content_type = Whether it's free article or paid article\n * prop tracker_content_title = The title of article\n * prop tracker_content_categories = The category of the content\n * prop tracker_user_type = Type of user based on their subscription\n * prop tracker_subscription_status = Status of their subscription\n * prop tracker_page_domain = Page Domain\n * prop tracker_metered_wall_type = The type of Metered Wall\n * prop tracker_epaper_edition = The edition of epaper viewed by user\n * prop tracker_metered_wall_balance = The balance of their metered wall\n */\n @property({ type: Number }) countdownArticle = 0\n @property({ type: String }) paywall_location = ''\n @property({ type: String }) paywall_subscription_package = ''\n @property({ type: String }) paywall_subscription_id = ''\n @property({ type: Number }) paywall_subscription_price = 0\n @property({ type: Number }) paywall_position = 0\n @property({ type: String }) tracker_page_type = ''\n @property({ type: String }) tracker_content_id = ''\n @property({ type: String }) tracker_content_title = ''\n @property({ type: String }) tracker_content_categories = ''\n @property({ type: String }) tracker_content_type = ''\n @property({ type: String }) tracker_user_type = ''\n @property({ type: String }) tracker_subscription_status = ''\n @property({ type: String }) tracker_page_domain = ''\n @property({ type: String }) tracker_metered_wall_type = ''\n @property({ type: Number }) tracker_metered_wall_balance = 0\n\n private getCountdownArticle() {\n const getCountdown = this.countdownArticle\n const { maxQuota } = this\n\n if (getCountdown > 0 && getCountdown < maxQuota) {\n return html`\n <p>\n Anda memiliki sisa\n <b>${maxQuota - getCountdown} dari ${maxQuota}</b> artikel premium\n gratis bulan ini. Langganan untuk akses tanpa batas\n </p>\n `\n }\n return html`\n <p>\n Anda sedang membaca <b>artikel gratis terakhir bulan ini.</b> Langganan\n untuk akses tanpa batas\n </p>\n `\n }\n\n connectedCallback() {\n super.connectedCallback()\n\n this.dataLayeronMeteredPaywall()\n }\n\n private redirectToBerlangganan() {\n this.dataLayeronLanggananButton()\n window.location.href = this.subscriptionUrl\n }\n\n private dataLayeronLanggananButton() {\n window.dataLayer.push({\n event: 'subscribe_button_clicked',\n paywall_location: this.paywall_location || '',\n paywall_subscription_package: this.paywall_subscription_package || '',\n paywall_subscription_id: this.paywall_subscription_id || '',\n paywall_subscription_price: this.paywall_subscription_price || 0,\n paywall_position: this.paywall_position || 0,\n page_type: this.tracker_page_type,\n content_id: this.tracker_content_id,\n content_title: this.tracker_content_title,\n content_categories: this.tracker_content_categories,\n content_type: this.tracker_content_type,\n user_type: this.tracker_user_type || 'R',\n subscription_status: this.tracker_subscription_status,\n page_domain: this.tracker_page_domain || 'Kompas.id',\n metered_wall_type: this.tracker_metered_wall_type || 'MP',\n metered_wall_balance: (this.maxQuota - this.countdownArticle) + 1\n })\n }\n\n private dataLayeronMeteredPaywall() {\n window.dataLayer.push({\n event: 'paywall_viewed',\n paywall_location: this.paywall_location || '',\n paywall_subscription_package: this.paywall_subscription_package || '',\n paywall_subscription_id: this.paywall_subscription_id || '',\n paywall_subscription_price: this.paywall_subscription_price || 0,\n paywall_position: this.paywall_position || 0,\n page_type: this.tracker_page_type,\n content_id: this.tracker_content_id,\n content_title: this.tracker_content_title,\n content_categories: this.tracker_content_categories,\n content_type: this.tracker_content_type,\n user_type: this.tracker_user_type || 'R',\n subscription_status: this.tracker_subscription_status,\n page_domain: this.tracker_page_domain || 'Kompas.id',\n metered_wall_type: this.tracker_metered_wall_type || 'MP',\n metered_wall_balance: (this.maxQuota - this.countdownArticle) + 1\n })\n }\n\n render() {\n return html`\n <div class=\"sticky bottom-0 w-full h-full\">\n <div\n class=\"flex flex-row w-full bg-blue-100 py-4 justify-center space-x-4 px-4 lg:px-0 bottom-0\"\n >\n <div class=\"text-grey-600 text-sm md:text-lg self-center text-left\">\n ${this.getCountdownArticle()}\n </div>\n <div class=\"self-center\">\n <button\n @click=\"${this.redirectToBerlangganan}\"\n class=\"bg-green-400 p-2 rounded-md font-bold text-grey-100 text-sm md:text-xl\"\n >\n Langganan\n </button>\n </div>\n </div>\n </div>\n `\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KompasPaywall.js","sourceRoot":"","sources":["../../../../src/components/kompas-paywall/KompasPaywall.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAExD,OAAO,6CAA6C,CAAA;AACpD,OAAO,0EAA0E,CAAA;AACjF,OAAO,wEAAwE,CAAA;AAGxE,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,UAAU;IAAtC;;QA+BL;;WAEG;QACH;;;;;;;;;;;;;;;;;;;;;;;;;;;WA2BG;QAEc,gBAAW,GAAmB,EAAoB,CAAA;QAEtC,YAAO,GAAG,KAAK,CAAA;QAChB,qBAAgB,GAAG,CAAC,CAAA;QACpB,SAAI,GAAyB,SAAS,CAAA;QACrC,iBAAY,GAAG,KAAK,CAAA;QACrB,eAAU,GAAG,EAAE,CAAA;QACf,aAAQ,GAAG,EAAE,CAAA;QACb,uBAAkB,GAAG,EAAE,CAAA;QACtB,cAAS,GAAG,KAAK,CAAA;QAClB,qBAAgB,GAAG,EAAE,CAAA;QACrB,iCAA4B,GAAG,EAAE,CAAA;QACjC,4BAAuB,GAAG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A0B;AACzB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDAAuB;AACtB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kEAAiC;AAChC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0DAAyB;AACxB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gEAA+B;AAC9B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mEAAiC;AAChC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6DAA4B;AAC3B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAW;AAzF3B,aAAa;IADzB,aAAa,CAAC,gBAAgB,CAAC;GACnB,aAAa,CAyZzB;SAzZY,aAAa","sourcesContent":["import { html, css, LitElement } from 'lit'\nimport { property, state, customElement } from 'lit/decorators.js'\nimport { TWStyles } from '../../../tailwind/tailwind.js'\nimport { PaywallProduct } from './types.js'\nimport '../kompas-paywall-body/KompasPaywallBody.js'\nimport '../kompas-paywall-banner-registration/KompasPaywallBannerRegistration.js'\nimport '../kompas-paywall-information-header/KompasPaywallInformationHeader.js'\n\n@customElement('kompas-paywall')\nexport class KompasPaywall extends LitElement {\n static styles = [\n css`\n :host {\n font-family: 'PT Sans', sans-serif;\n }\n .transparent-linear {\n background-image: -webkit-gradient(\n linear,\n left top,\n left bottom,\n from(hsla(0, 0%, 100%, 0)),\n to(#fff)\n );\n background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0), #fff);\n }\n\n .transparent-linear-dark {\n background-image: -webkit-gradient(\n linear,\n left top,\n left bottom,\n from(hsla(0, 0%, 18%, 0)),\n to(#121212)\n );\n background-image: linear-gradient(180deg, hsla(0, 0%, 18%, 0), #121212);\n }\n `,\n TWStyles,\n ]\n\n /**\n * Props\n */\n /**\n * property isLogin untuk menghandle apakah user sudah login atau belum\n * property countdownArticle untuk menghandle count artikel\n * property type untuk menghandle tipe epaper\n * property isWithHeader untuk menghandle paywall information header\n * property textHeader digunakan sebagai text pada paywall information header\n * property paywallData untuk menghandle data paywall\n * property userGuid untuk menghandle user Guid\n * property subscriptionStatus untuk menghandle status subscription user\n * property swgEnable untuk menghandle swg apakah di aktifkan atau tidak\n * property paywall_location = The location where user encounter the paywall\n * property paywall_subscription_package = The name of the subscription package viewed by user\n * property paywall_subscription_id = The ID of the subscription package viewed by user\n * property paywall_subscription_price = The price of the subscriprtion package viewed by user\n * property paywall_position = The position of the subscription package viewed by user\n * property page_type = Type of the page\n * property content_id = ID of article (slug)\n * property content_type = Whether it's free article or paid article\n * property content_title = The title of article\n * property tracker_content_categories = The category of the content\n * property user_type = Type of user based on their subscription\n * property subscription_status = Status of their subscription\n * property page_domain = Page Domain\n * property metered_wall_type = The type of Metered Wall\n * property metered_wall_balance = The balance of their metered wall\n * property epaper_edition = The edition of epaper viewed by user\n * property theme = The theme of the paywall component\n */\n\n @state() private paywallData: PaywallProduct = {} as PaywallProduct\n\n @property({ type: Boolean }) isLogin = false\n @property({ type: Number }) countdownArticle = 0\n @property({ type: String }) type: 'epaper' | 'reguler' = 'reguler'\n @property({ type: Boolean }) isWithHeader = false\n @property({ type: String }) textHeader = ''\n @property({ type: String }) userGuid = ''\n @property({ type: String }) subscriptionStatus = ''\n @property({ type: Boolean }) swgEnable = false\n @property({ type: String }) paywall_location = ''\n @property({ type: String }) paywall_subscription_package = ''\n @property({ type: Number }) paywall_subscription_id = 0\n @property({ type: Number }) paywall_subscription_price = 0\n @property({ type: Number }) paywall_position = 0\n @property({ type: String }) tracker_page_type = ''\n @property({ type: String }) tracker_content_id = ''\n @property({ type: String }) tracker_content_title = ''\n @property({ type: String }) tracker_content_categories = ''\n @property({ type: String }) tracker_content_type = ''\n @property({ type: String }) tracker_user_type = ''\n @property({ type: String }) tracker_subscription_status = ''\n @property({ type: String }) tracker_page_domain = ''\n @property({ type: String }) tracker_metered_wall_type = ''\n @property({ type: Number }) tracker_metered_wall_balance = 0\n @property({ type: String }) tracker_epaper_edition = ''\n @property({ type: String }) theme = ''\n\n mockResult: PaywallProduct = {\n informations: {\n title: 'Langganan untuk Lanjut Membaca',\n description: [\n 'Akses tak terbatas Kompas.id (web & app)',\n 'Berita digital tanpa iklan pop-up',\n '30 arsip terbaru ePaper Kompas',\n 'Artikel Opini eksklusif',\n ],\n register: {\n img: 'https://www.kompas.id/img/backgrounds/ilustrasi-banner-registration.png',\n title: 'Ingin Membaca Artikel Ini Secara Utuh?',\n subtitle: 'Daftar akun untuk membaca 5 artikel premium secara gratis ',\n label: 'Daftar Sekarang ',\n },\n meterred: {\n maxQuota: 5,\n label: 'Langganan',\n maxQuotaMessage: 'Akses artikel gratis Anda bulan ini sudah habis.',\n url: 'https://kompas.id/berlangganan',\n },\n },\n packages: {\n title: 'Sekali bayar, tanpa perpanjang otomatis',\n memberships: [\n {\n title: 'Kompas Digital Premium 12 Bulan (Hemat 40%)',\n percentage: 40,\n price: 360000,\n discountPrice: 600000,\n periode: '1 Tahun',\n isHighlight: true,\n url: 'https://checkoutv2.kompas.id/kdp?productId=9802032&referrer=',\n },\n {\n title: 'Kompas Digital Premium 1 Bulan',\n percentage: 0,\n discountPrice: 0,\n price: 50000,\n periode: '1 Bulan',\n isHighlight: false,\n url: 'https://checkoutv2.kompas.id/kdp?productId=9802035&referrer=',\n },\n ],\n },\n payment: {\n desktop: [\n {\n name: 'gopay',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/gopay${this.darkUrl}.svg`,\n },\n {\n name: 'ovo',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/ovo${this.darkUrl}.svg`,\n },\n {\n name: 'mastercard',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/mastercard${this.darkUrl}.svg`,\n },\n {\n name: 'bri',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/bri${this.darkUrl}.svg`,\n },\n {\n name: 'bcaklikpay',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/bca-klik-pay${this.darkUrl}.svg`,\n },\n {\n name: 'indomaret',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/indomaret${this.darkUrl}.svg`,\n },\n {\n name: 'jcb',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/jcb${this.darkUrl}.svg`,\n },\n {\n name: 'dana',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/dana${this.darkUrl}.svg`,\n },\n {\n name: 'visa',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/visa${this.darkUrl}.svg`,\n },\n {\n name: 'mandiri',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/mandiri${this.darkUrl}.svg`,\n },\n {\n name: 'bca',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/bca${this.darkUrl}.svg`,\n },\n {\n name: 'bni',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/bni${this.darkUrl}.svg`,\n },\n {\n name: 'akulaku',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/akulaku${this.darkUrl}.svg`,\n },\n ],\n mobile: [\n {\n name: 'gopay',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/gopay${this.darkUrl}.svg`,\n },\n {\n name: 'ovo',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/ovo${this.darkUrl}.svg`,\n },\n {\n name: 'visa',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/visa${this.darkUrl}.svg`,\n },\n {\n name: 'mastercard',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/mastercard${this.darkUrl}.svg`,\n },\n ],\n ekstension: [\n {\n name: 'dana',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/dana${this.darkUrl}.svg`,\n },\n {\n name: 'mandiri',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/mandiri${this.darkUrl}.svg`,\n },\n {\n name: 'bri',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/bri${this.darkUrl}.svg`,\n },\n {\n name: 'bcaklikpay',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/bca-klik-pay${this.darkUrl}.svg`,\n },\n {\n name: 'akulaku',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/akulaku${this.darkUrl}.svg`,\n },\n {\n name: 'bni',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/bni${this.darkUrl}.svg`,\n },\n {\n name: 'indomaret',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/indomaret${this.darkUrl}.svg`,\n },\n {\n name: 'bca',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/bca${this.darkUrl}.svg`,\n },\n {\n name: 'jcb',\n link: `https://d3w4qaq4xm1ncv.cloudfront.net/paywall-asset/jcb${this.darkUrl}.svg`,\n },\n ],\n },\n }\n\n get darkUrl() {\n return this.theme === 'dark' ? '-dark' : ''\n }\n\n override connectedCallback() {\n super.connectedCallback()\n this.paywallData = this.mockResult\n }\n\n private transitionBox() {\n return html`\n <div\n class=\"h-20 ${this.theme === 'dark'\n ? 'transparent-linear-dark'\n : 'transparent-linear'} -mt-24 z-0 w-full\"\n ></div>\n `\n }\n\n private renderEpaperPaywallSection() {\n return html`<kompas-paywall-body\n paywall_location=${this.paywall_location}\n paywall_subscription_package=${this.paywall_subscription_package}\n paywall_subscription_id=${this.paywall_subscription_id}\n paywall_subscription_price=${this.paywall_subscription_price}\n paywall_position=${this.paywall_position}\n tracker_page_type=${this.tracker_page_type}\n tracker_content_id=${this.tracker_content_id}\n tracker_content_title=${this.tracker_content_title}\n tracker_content_categories=${this.tracker_content_categories}\n tracker_user_type=${this.tracker_user_type}\n tracker_subscription_status=${this.tracker_subscription_status}\n tracker_page_domain=${this.tracker_page_domain}\n tracker_metered_wall_type=${this.tracker_metered_wall_type}\n tracker_epaper_edition=${this.tracker_epaper_edition}\n tracker_metered_wall_balance=${this.tracker_metered_wall_balance}\n ?swgEnable=${this.swgEnable}\n tracker_content_type=${this.tracker_content_type}\n ?isLogin=${this.isLogin}\n type=${this.type}\n countdownArticle=${this.countdownArticle}\n .paywallData=${this.paywallData}\n subscriptionStatus=${this.subscriptionStatus}\n userGuid=${this.userGuid}\n theme=${this.theme}\n ></kompas-paywall-body>`\n }\n\n private renderRegularPaywallSection() {\n const defaultHeaderText: string =\n this.paywallData.informations.meterred.maxQuotaMessage\n if (this.isWithHeader) {\n return html`\n <div>\n ${this.transitionBox()}\n <div\n class=\"flex flex-col ${this.theme === 'dark'\n ? 'bg-dark-5'\n : 'bg-white'} items-center justify-center mx-4 md:mx-0\"\n >\n <div class=\"flex flex-col w-full max-w-screen-md my-5\">\n <kompas-paywall-information-header\n text=${this.textHeader || defaultHeaderText}\n theme=${this.theme}\n ></kompas-paywall-information-header>\n <kompas-paywall-body\n paywall_location=${this.paywall_location}\n paywall_subscription_package=${this\n .paywall_subscription_package}\n paywall_subscription_id=${this.paywall_subscription_id}\n paywall_subscription_price=${this.paywall_subscription_price}\n paywall_position=${this.paywall_position}\n tracker_page_type=${this.tracker_page_type}\n tracker_content_id=${this.tracker_content_id}\n tracker_content_title=${this.tracker_content_title}\n tracker_content_categories=${this.tracker_content_categories}\n tracker_user_type=${this.tracker_user_type}\n tracker_subscription_status=${this.tracker_subscription_status}\n tracker_page_domain=${this.tracker_page_domain}\n tracker_metered_wall_type=${this.tracker_metered_wall_type}\n tracker_epaper_edition=${this.tracker_epaper_edition}\n tracker_metered_wall_balance=${this\n .tracker_metered_wall_balance}\n tracker_content_type=${this.tracker_content_type}\n ?swgEnable=${this.swgEnable}\n ?isLogin=${this.isLogin}\n type=${this.type}\n countdownArticle=${this.countdownArticle}\n .paywallData=${this.paywallData}\n subscriptionStatus=${this.subscriptionStatus}\n userGuid=${this.userGuid}\n theme=${this.theme}\n ></kompas-paywall-body>\n </div>\n </div>\n </div>\n `\n }\n return html`\n <div>\n ${this.transitionBox()}\n <div\n class=\"flex flex-col ${this.theme === 'dark'\n ? 'bg-dark-5'\n : 'bg-white'} items-center justify-center mx-4 md:mx-0\"\n >\n <div class=\"flex flex-col w-full max-w-screen-md my-5\">\n <kompas-paywall-banner-registration\n .bannerData=${this.paywallData.informations.register}\n theme=${this.theme}\n ></kompas-paywall-banner-registration>\n <kompas-paywall-body\n tracker_content_type=${this.tracker_content_type}\n paywall_location=${this.paywall_location}\n paywall_subscription_package=${this.paywall_subscription_package}\n paywall_subscription_id=${this.paywall_subscription_id}\n paywall_subscription_price=${this.paywall_subscription_price}\n paywall_position=${this.paywall_position}\n tracker_page_type=${this.tracker_page_type}\n tracker_content_id=${this.tracker_content_id}\n tracker_content_title=${this.tracker_content_title}\n tracker_content_categories=${this.tracker_content_categories}\n tracker_user_type=${this.tracker_user_type}\n tracker_subscription_status=${this.tracker_subscription_status}\n tracker_epaper_edition=${this.tracker_epaper_edition}\n tracker_page_domain=${this.tracker_page_domain}\n tracker_metered_wall_type=${this.tracker_metered_wall_type}\n tracker_metered_wall_balance=${this.tracker_metered_wall_balance}\n ?swgEnable=${this.swgEnable}\n ?isLogin=${this.isLogin}\n type=${this.type}\n countdownArticle=${this.countdownArticle}\n .paywallData=${this.paywallData}\n subscriptionStatus=${this.subscriptionStatus}\n userGuid=${this.userGuid}\n theme=${this.theme}\n ></kompas-paywall-body>\n </div>\n </div>\n </div>\n `\n }\n\n private selectorTypePaywall = (type: 'epaper' | 'reguler') => {\n switch (type) {\n case 'epaper':\n return this.renderEpaperPaywallSection()\n case 'reguler':\n return this.renderRegularPaywallSection()\n default:\n return this.renderRegularPaywallSection()\n }\n }\n\n render() {\n return html`\n <div class=\"relative w-full\">${this.selectorTypePaywall(this.type)}</div>\n `\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/kompas-paywall/types.ts"],"names":[],"mappings":"","sourcesContent":["export interface Product {\n title: string\n percentage: number\n price: number\n discountPrice: number\n periode: string\n isHighlight: boolean\n url: string\n}\nexport interface Metered {\n maxQuota: number\n label: string\n maxQuotaMessage: string\n url: string\n}\nexport interface PaymentImage {\n name: string\n link: string\n}\nexport interface Registration {\n img: string\n title: string\n subtitle: string\n label: string\n}\nexport interface Informations {\n title: string\n description: Array<string>\n register: {\n img: string\n title: string\n subtitle: string\n label: string\n }\n}\nexport interface Packages {\n title: string\n memberships: Array<Product>\n}\nexport interface PaywallProduct {\n informations: {\n title: string\n description: Array<string>\n register: Registration\n meterred: Metered\n }\n packages: Packages\n payment: {\n desktop: Array<PaymentImage>\n mobile: Array<PaymentImage>\n ekstension: Array<PaymentImage>\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KompasPaywallBannerRegistration.js","sourceRoot":"","sources":["../../../../src/components/kompas-paywall-banner-registration/KompasPaywallBannerRegistration.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAG/C,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,UAAU;IAAxD;;QAGuB,UAAK,GAAG,EAAE,CAAA;QACV,eAAU,GAA6B,SAAS,CAAA;IAwF9E,CAAC;IAtFC,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,KAAK,KAAK,MAAM,CAAA;IAC9B,CAAC;IAEO,eAAe;QACrB,IAAI,CAAC,aAAa,CAAC,wBAAwB,C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,CAAC,YAAY;;gBAEd,MAAA,IAAI,CAAC,UAAU,0CAAE,KAAK;;;;;;uBAMf,IAAI,CAAC,MAAM,IAAI,YAAY;;;uBAG3B,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE;iCAClB,IAAI,CAAC,MAAM;YAC5B,CAAC,CAAC,eAAe;YACjB,CAAC,CAAC,eAAe;;;;;;;KAO5B,CAAA;IACH,CAAC;;AA1FM,sCAAM,GAAG,CAAC,GAAG,CAAA,EAAE,EAAE,QAAQ,CAAC,CAAA;AAEL;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8DAAW;AACV;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mEAAiD;AAJjE,+BAA+B;IAD3C,aAAa,CAAC,oCAAoC,CAAC;GACvC,+BAA+B,CA4F3C;SA5FY,+BAA+B","sourcesContent":["import { html, css, LitElement } from 'lit'\nimport { property, customElement } from 'lit/decorators.js'\nimport { TWStyles } from '../../../tailwind/tailwind.js'\nimport { Registration } from '../kompas-paywall/types.js'\nimport { deviceType } from '../../utils/deviceType.js'\n\n@customElement('kompas-paywall-banner-registration')\nexport class KompasPaywallBannerRegistration extends LitElement {\n static styles = [css``, TWStyles]\n\n @property({ type: String }) theme = ''\n @property({ type: Object }) bannerData: Registration | undefined = undefined\n\n get isDark() {\n return this.theme === 'dark'\n }\n\n private redirectToLogin(): void {\n this.sendDataLayer('registrationOfferClick')\n const loginHost: string = 'https://account.kompas.id/login'\n const nextParams: string = encodeURIComponent(window.location.href)\n const directUrlRegister: string = `${loginHost}?next=${nextParams}`\n window.location.href = directUrlRegister\n }\n\n private redirectToRegister(): void {\n this.sendDataLayer('registrationOfferClick')\n const registerHost: string = 'https://account.kompas.id/register'\n const nextParams: string = encodeURIComponent(window.location.href)\n const directUrlRegister: string = `${registerHost}?next=${nextParams}?status=sukses_login&status_login=login&loc=hard_paywall`\n window.location.href = directUrlRegister\n }\n\n private sendDataLayer(value: string): void {\n window.dataLayer.push({\n event: value,\n interface: deviceType(),\n })\n }\n\n render() {\n this.sendDataLayer('registrationOfferimppression')\n return html`\n <div class=\"flex flex-col items-center my-5\">\n <div\n class=\"flex flex-col md:flex-row justify-between items-center w-full\"\n >\n <div class=\"flex flex-col md:flex-row items-center w-full\">\n <img\n class=\"object-cover w-20 h-20\"\n src=${this.bannerData?.img ?? ''}\n alt=\"information-register-img\"\n />\n <div\n class=\"flex flex-col justify-start ${this.isDark &&\n 'text-white'} md:ml-6 my-4\"\n >\n <h5\n class=\"text-center md:text-left text-base md:text-xl font-serif font-bold\"\n >\n ${this.bannerData?.title}\n </h5>\n <h6 class=\"text-center md:text-left\">\n ${this.bannerData?.subtitle}\n </h6>\n </div>\n </div>\n <button\n @click=${() => this.redirectToRegister()}\n class=\"w-40 md:w-52 h-auto ${this.isDark\n ? 'bg-green-300'\n : 'bg-brand-1'} rounded\"\n >\n <h6\n class=\"text-base ${this.isDark\n ? 'text-black'\n : 'text-white'} font-bold py-2 px-4\"\n >\n ${this.bannerData?.label}\n </h6>\n </button>\n </div>\n <div class=\"border-b-2 border-grey-200 w-32 md:w-40 my-6\"></div>\n <div>\n <h6 class=\"${this.isDark && 'text-white'}\">\n Sudah punya akun?\n <button\n @click=${() => this.redirectToLogin()}\n class=\"font-bold ${this.isDark\n ? 'text-blue-300'\n : 'text-blue-600'} underline\"\n >\n Silakan Masuk\n </button>\n </h6>\n </div>\n </div>\n `\n }\n}\n"]}
|