Crea/Mostra Contenuto

Si è verificato un errore nell'elaborarazione del modello.
Error on line 218, column 86 in 10154#10192#153411741
Expecting a string, date or number here, Expression backgroundImage!"" is instead a com.liferay.portal.freemarker.LiferayTemplateModel
1<#assign url = request.attributes.CURRENT_URL > 
2<#assign oadURL = propsUtil.get('elan.oad.url') > 
3<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
4<#assign url404 = '/error/404.html' > 
5<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
6 
7<#--  check location id validity  --> 
8<#if  qstringmap["bankercode"]?has_content> 
9    <#assign bCode= qstringmap["bankercode"]?first> 
10     
11    <#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
12    <#list bData as b> 
13       
14      <#assign lc = b.locationcode > 
15      <#assign bName = b.branch > 
16      <#assign bPhone = b.businessphone > 
17      <#assign boeid = b.oeid > 
18      <#assign bFName = b.firstname > 
19      <#assign bLName = b.lastname > 
20      <#assign rLC = b.reallocationcode > 
21      <#assign mappedLC = b.mappedLocationCode > 
22    </#list> 
23     
24<#else> 
25    <script> 
26        console.log("MainProductBcode missing"); 
27       // location.href = '${url404}'; 
28    </script> 
29</#if> 
30 
31<#if mappedLC?has_content && !(url?contains("11t1m"))> 
32    <#assign lc = mappedLC > 
33</#if> 
34 
35<#if lc?has_content> 
36    <#assign prefix = "00000" > 
37    <#assign lcWithPrefix = prefix + lc > 
38    <#assign withPrefixLength = lcWithPrefix?length > 
39    <#assign startHere = withPrefixLength - 5> 
40    <#assign lc = lcWithPrefix?substring(startHere)> 
41     
42    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
43    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
44    <#if clientProfileList?first?has_content> 
45        <#assign clientProfile = clientProfileList?first> 
46        <#assign partnerName = clientProfile.getMarketingNameLong()> 
47        <#assign pbu = clientProfile.getPbu()> 
48        <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
49         
50        <#assign clientdata = utilServ.makeCall('crcDDCTier1Customizations','0&'+pbu+'&'+subbu+'&11')> 
51        <#if (clientdata?size > 0)> 
52            <#list clientdata as data> 
53                <#assign backgroundColor=data.backgroundHexColor> 
54                <#assign buttonColor=data.buttonHexColor> 
55                <#assign aprMin=data.AprMin> 
56                <#assign aprMax=data.AprMax> 
57                <#assign cashAdvance=data.cashAdvanceRate> 
58                <#assign billingCycle=data.BillingCycles> 
59                <#assign textColor=data.textHexColor> 
60                <#assign hoverColor=data.hoverColor> 
61                <#assign backgroundImage="https://3df661a16d2c341b9543-3cd0ed75ae749634a170a7cc519670ec.ssl.cf2.rackcdn.com/"+data.backgroundImage> 
62                <#assign secondaryImage="https://3df661a16d2c341b9543-3cd0ed75ae749634a170a7cc519670ec.ssl.cf2.rackcdn.com/"+data.secondaryBackgroundImage> 
63 
64                <#assign businessBackgroundImageLarge="https://3df661a16d2c341b9543-3cd0ed75ae749634a170a7cc519670ec.ssl.cf2.rackcdn.com/"+data.businessBackgroundImageLarge> 
65                <#assign businessBackgroundImageSmall="https://3df661a16d2c341b9543-3cd0ed75ae749634a170a7cc519670ec.ssl.cf2.rackcdn.com/"+data.businessBackgroundImageSmall> 
66 
67 
68                <#assign transparency=data.transparency> 
69                <#assign busTransparency=data.businessTransparency> 
70            </#list> 
71            <script> 
72                $(document).ready(function (){ 
73                    $(".journal-content-article").each(function(index){ 
74                        var t = $(this).attr("title"); 
75                        $(this).attr("data-title", t); 
76                        $(this).removeAttr("title"); 
77                    }); 
78                }); 
79            </script> 
80        <#else> 
81            <script> 
82                console.log('no T1 clientData'); 
83                //location.href = '${url404}'; 
84            </script> 
85        </#if> 
86    </#if> 
87</#if> 
88            <style> 
89                    @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {   
90                        .disclaimer { 
91                            width: 100vw; 
92
93                        .hero-container{ 
94                            width: 100vw !important; 
95
96                        .standard-content-container{ 
97                            width: 100vw !important; 
98
99                        .banner-wrapper { 
100                            width: 100vw; 
101
102
103                    .banner-wrapper sup { 
104                        top: -1.5em; 
105
106                    *, html, :root { 
107                        box-sizing: border-box; 
108                        padding: 0; 
109                        margin: 0; 
110                        font-size: 100%; 
111                        font-family: Arial, Helvetica, sans-serif; 
112
113                    p, ul, h2 { 
114                        margin: 0; 
115
116                    body { 
117                        line-height: normal; 
118                        color: black; 
119
120                    img { 
121                        width: auto; 
122                        height: auto; 
123                        max-width: 100%; 
124                        max-height: 100%; 
125
126                    svg polyline { 
127                        stroke: ${textColor!'#19398A'}; 
128
129                    /* overrides for berkshire*/ 
130                    .banner.berkshire .jn-button { 
131                        background-color: ${buttonColor!'#19398A'}; 
132                        color: white; 
133                        border: 1px solid white; 
134
135                    .banner.berkshire .jn-button:hover { 
136                        text-decoration: none; 
137                        background-color: ${hoverColor!'#333333'}; 
138                        color: white; 
139
140                    .jn-button { 
141                        cursor: pointer; 
142                        border: none; 
143
144                    .jn-button:hover { 
145                        text-decoration: none; 
146                        background-color: ${hoverColor!'#333333'}; 
147                        color: white; 
148
149                    .hero-main-logo a:hover, .footer a:hover { 
150                        text-decoration: none; 
151                        background-color: transparent; 
152
153                    .hero-main-logo a { 
154                        text-align: center; 
155
156                    .hero-main-logo-homelink { 
157                        margin-top: 10%; 
158
159                    .hero-main-logo-homelink a { 
160                        color:#ffffff; 
161                        font-weight:bold; 
162
163                    .hero-main-logo-homelink a:before { 
164                        content: "\00AB \2009"; 
165                        font-size: 12pt; 
166
167                    .hero-main-logo-homelink a:hover, 
168                    .hero-main-logo-homelink a:focus, 
169                    .hero-main-logo-homelink a:active { 
170                        text-decoration: none; 
171                        background-color: transparent; 
172
173                    .text-color-default, .text-color-default:focus, .text-color-default:hover { 
174                        color: #19398A; 
175
176                    .text-bold { 
177                        font-weight: bold; 
178
179                    .learnmore { 
180                        font-size: 1.2rem; 
181                        cursor: pointer; 
182
183                    .bg-color-white{ 
184                        background-color: white; 
185
186                    .bg-color-black { 
187                        background-color: black; 
188
189                    .bg-color-custom { 
190                        background-color: ${backgroundColor!'#19398A'}; 
191
192                    .bg-color-black-half-transparent { 
193                        background-color: rgba(0, 0, 0, 0.5) 
194
195                    .text-color-white { 
196                        color: #ffffff !important; 
197
198                    .text-color-black { 
199                        color: #000000; 
200
201                    .text-color-custom { 
202                        color: ${textColor!'#19398A'}; 
203
204                    .button-text-color-custom { 
205                        color: ${buttonColor!'black'}; 
206
207                    .button-bg-color-custom { 
208                        background-color: ${buttonColor!'#19398A'}; 
209
210                    .button-bg-color-white { 
211                        background-color: #ffffff; 
212
213                    .consumer-card.hero-container { 
214                        width: 100%; 
215                        background-repeat: no-repeat; 
216                        background-position: left top; 
217                        background-size: cover; 
218                        background-image: linear-gradient(${transparency!''}),url('${backgroundImage!""}'); 
219
220                    .business-card.hero-container { 
221                        width: 100%; 
222                        background-repeat: no-repeat; 
223                        background-position: left top; 
224                        background-size: cover; 
225                        background-image: linear-gradient(${busTransparency!''}),url('${businessBackgroundImageLarge!""}'); 
226
227                     
228                    .standard-content-container { 
229                        width: 100%; 
230                        text-align: center; 
231
232                    .hero-primary-benefits { 
233                        display: -ms-flexbox; 
234                        display: -webkit-flex; 
235                        display: -moz-flex; 
236                        display: flex; 
237                        -webkit-flex-wrap: nowrap; 
238                        -ms-flex-wrap: nowrap; 
239                        flex-wrap: nowrap; 
240                        width: 100%; 
241                        text-align: center; 
242
243                    .hero-main-container { 
244                        text-align: center; 
245
246                    .hero-main-container sup { 
247                        font-size: 13px !important; 
248
249                    .primary-benefit-wrapper { 
250                        height: 100%; 
251                        width: 100%; 
252
253                 
254                    .primary-benefit-wrapper p:first-child { 
255                        font-size: 1.8rem; 
256                        margin-bottom: 0.5rem; 
257
258                     
259                    .offer-header { 
260                        height: 62px; 
261                        padding-top: 15px; 
262                        font-size: 2rem; 
263
264                    .offer-detail-cardArt { 
265                        min-height: 150px; 
266
267                    .hero-main-offer { 
268                        height: 100%; 
269                        width: 100%; 
270                        overflow:hidden; 
271
272                    .offer-detail { 
273                        width: 100%; 
274                        height: calc(100% - 62px); 
275
276                    .footer { 
277                        height: 161px; 
278
279                    .secondary-benefits { 
280                        width: 100%; 
281                        display: -ms-flexbox; 
282                        display: -webkit-flex; 
283                        display: -moz-flex; 
284                        display: flex; 
285
286                    #more { 
287                        font-size: 1.8rem; 
288
289                    h2 { 
290                        margin-bottom: 1.5rem; 
291
292                    .option { 
293                        text-align: left; 
294
295                    .option p { 
296                        margin: 10px 0 15px 0; 
297
298                    .hero-main::before, .hero-main::after, .banner::before, .banner::after { 
299                        display: table; 
300                        content: " "; 
301
302                    .hero-main::after, .banner::after { 
303                        clear: both; 
304
305                    .banner { 
306                        display: -ms-flexbox; 
307                        display: -webkit-flex; 
308                        display: -moz-flex; 
309                        display: flex; 
310
311                    .banner-cta-text p{ 
312                        margin: 5px 0; 
313
314                    .disclaimer{ 
315                        padding: 1% 8%; 
316                        margin: auto; 
317                        max-width: 1800px; 
318
319                    .disclaimer ul { 
320                        padding: 0 2%; 
321                        text-align: left; 
322                        list-style: none; 
323
324                    .disclaimer ul li { 
325                        margin-bottom: 10px 
326
327                    sup { 
328                        font-size: 0.8rem; 
329
330                    .jn-disclaimer sup { 
331                        margin: 0 2px 0 0; 
332                        top: -.3em; 
333                        font-size: 75%; 
334
335                    .primary-benefit sup { 
336                        font-size: 0.6rem; 
337
338                    .primary-benefit h2 sup { 
339                        font-size: 1rem; 
340                        top: -0.7em; 
341
342                    .secondary-benefits sup { 
343                        font-size: 0.7rem; 
344
345                    .secondary-benefits h3 sup { 
346                        font-size: 1rem; 
347                        top: -0.7em; 
348
349                    .footer { 
350                        padding: 0 3%; 
351                        width: 100%; 
352                        text-align: right; 
353
354                    .footer article { 
355                        padding: 2%; 
356                        margin-right: 0; 
357
358            footer article .member-agreement { 
359                 display: inline-block; 
360 
361
362            footer article .fdic { 
363                 display: inline-block; 
364                 margin-left: 150px; 
365
366                     
367                    /* use this code when necessary */ 
368                    @media screen and (max-width: 1300px) { 
369                      .consumer-card.hero-container { 
370                        background-image: linear-gradient(${transparency!''}),url('${secondaryImage!''}'); 
371
372                      .business-card.hero-container { 
373                        background-image: linear-gradient(${busTransparency!''}),url('${businessBackgroundImageSmall!''}'); 
374
375
376                     
377                    /* computer */ 
378                    @media screen and (min-width: 993px) { 
379                        .hero-container { 
380                            padding: 3% 8% 0 8%; 
381
382                 
383                        .standard-content-container { 
384                            padding: 1% 5%; 
385                            max-width: 1600px; 
386                            margin: auto; 
387
388                        .hero-main { 
389                            /* -webkit-flex-direction: row; 
390                            -ms-flex-direction: row; 
391                            flex-direction: row; 
392                            -webkit-justify-content: space-around; 
393                            justify-content: space-around; 
394                            -ms-flex-line-pack: distribute; */ 
395                            max-width: 1450px; 
396                            margin-left: auto; 
397                            margin-right: auto; 
398                             
399
400                         
401                        .hero-main-logo { 
402                            max-width: 200px; 
403                            min-width: 140px; 
404                            width: 16%; 
405                            float: left; 
406
407 
408                        .hero-container.ameriprise-premier-visa-signature .hero-main-logo, 
409                        .hero-container.ameriprise-visa-signature .hero-main-logo { 
410                            max-width: 400px; 
411                            min-width: 140px; 
412                            width: 35%; 
413                            float: left; 
414
415                        .hero-main-container { 
416                            float: right; 
417                            width: 680px; 
418                            /* max-width: 730px; */ 
419                            height: 600px; 
420                            padding: 0 60px 60px 0px; 
421                            /* min-width: 600px; */ 
422
423                        .hero-main-offer { 
424                            border: 1px solid black; 
425                            border-radius: 15px; 
426                            margin-top: 30px; 
427
428                        .hero-primary-benefits { 
429                            -webkit-flex-direction: row; 
430                            -ms-flex-direction: row; 
431                            flex-direction: row; 
432                            max-width: 1450px; 
433                            margin-left: auto; 
434                            margin-right: auto; 
435
436                        .primary-benefit { 
437                            padding: 20px 5px; 
438                            width: 33%; 
439                            min-height: 161px; 
440
441                        .primary-benefit .primary-benefit-wrapper { 
442                            border-right: 1px solid gray; 
443                            padding-right: 5px; 
444
445                        .primary-benefit:last-child .primary-benefit-wrapper{ 
446                            border: none; 
447                            padding-right: 0px; 
448
449                        .secondary-benefits { 
450                 
451                            -webkit-justify-content: space-around; 
452                            justify-content: space-around; 
453                            -ms-flex-line-pack: distribute; 
454
455                        .option { 
456                            width: 40%; 
457
458                        .offer-detail-head { 
459                            font-size: 3.8rem; 
460                            line-height: 3.8rem; 
461                            margin: 15px 0; 
462
463                         
464                        .offer-detail-text { 
465                            float: right; 
466                            width: 40%; 
467                            margin-right: 30px; 
468                            text-align: left; 
469
470                        .offer-detail-text p { 
471                            font-weight: bold; 
472                            margin: 10px 0; 
473                            font-size: 1.2rem; 
474
475                        .offer-detail-cardArt { 
476                            width: 46.5%; 
477                            margin-left: 30px; 
478                            filter: drop-shadow(0px 0px 10px black); 
479                            -webkit-filter: drop-shadow(0px 0px 10px black); 
480
481                        .apply-button { 
482                            display: block; 
483                            margin: 2rem auto; 
484                            font-size: 2rem; 
485                            text-decoration: none; 
486                            width: 55%; 
487                            text-transform: uppercase; 
488                            padding: 0.8rem; 
489
490                        .banner-wrapper { 
491                            margin: auto; 
492                            max-width: 1800px; 
493                            padding: 1% 8%; 
494
495                        .banner { 
496                            padding: 25px; 
497                            -webkit-flex-direction: row; 
498                            -ms-flex-direction: row; 
499                            flex-direction: row; 
500
501                        .banner-cardArt { 
502                            width: 280px; 
503
504                        .banner-cta { 
505                            width: calc(100% - 280px); 
506                            position: relative; 
507
508                        .banner-cta-text { 
509                            padding: 10px 0 10px 20px; 
510
511                        .banner-cta-text p:first-child { 
512                            font-size: 3rem; 
513
514                        .banner-cta-text p:last-child { 
515                            font-size: 1.5rem; 
516
517                        .banner-cta-apply-button { 
518                            display: block; 
519                            font-size: 1rem; 
520                            text-decoration: none; 
521                            text-transform: uppercase; 
522                            padding: 0.5rem 2.5rem; 
523                            width: auto; 
524                            margin-top: 10px; 
525                            right: 0; 
526                            bottom: 0; 
527                            float: right; 
528
529                        .offer-detail-head sup { 
530                            top: -1.8em; 
531
532                        .offer-header sup { 
533                            top: -1.0em; 
534
535
536                    /* tablet */ 
537                     
538                    @media screen and (max-width: 992px) { 
539                        .consumer-card.hero-container { 
540                            padding: 1.8% 3.6% 0 3.6%; 
541                            background-size: cover; 
542                            background-position: left top; 
543                            background-image: linear-gradient(${transparency!''}),url('${secondaryImage!''}'); 
544
545                        .business-card.hero-container { 
546                            padding: 1.8% 3.6% 0 3.6%; 
547                            background-size: cover; 
548                            background-position: left top; 
549                            background-image: linear-gradient(${busTransparency!''}),url('${businessBackgroundImageSmall!''}'); 
550
551                        .standard-content-container { 
552                            padding: 1% 3.6%; 
553
554                        .hero-main { 
555                            /* -webkit-flex-direction: row; 
556                            -ms-flex-direction: row; 
557                            flex-direction: row; */ 
558                            position: relative; 
559
560                        .hero-main-logo { 
561                            position: absolute; 
562                            top: 0; 
563                            left: 0; 
564                            z-index: 1; 
565                            width: 200px; 
566
567                        .hero-main-container { 
568                            /* max-width: 70%; */ 
569                            width: 523px; 
570                            height: 630px; 
571                            padding: 100px 0 40px 55px; 
572                            float: right; 
573                            /* min-width: 500px; */ 
574
575                        .hero-main-offer { 
576                            border: 1px solid black; 
577                            border-radius: 15px; 
578
579                        .hero-primary-benefits { 
580                            -webkit-flex-direction: column; 
581                            -ms-flex-direction: column; 
582                            flex-direction: column; 
583
584                        .primary-benefit { 
585                            padding: 10px 5px; 
586                            width: 100%; 
587                            min-height: 80px; 
588
589                        .secondary-benefits { 
590                             
591                            -webkit-justify-content: space-around; 
592                            justify-content: space-around; 
593                            -ms-flex-line-pack: distribute; 
594
595                        .option { 
596                            width: 40%; 
597
598                        .offer-detail-head { 
599                            font-size: 2.8rem; 
600                            line-height: 2.8rem; 
601                            margin: 15px 0; 
602
603                        .offer-detail-text { 
604                            width: 96%; 
605                            margin: auto; 
606                            text-align: center; 
607                            float: none; 
608
609                        .offer-detail-text p { 
610                            font-weight: bold; 
611                            margin: 10px 0; 
612                            font-size: 0.8rem; 
613
614                        .offer-detail-cardArt { 
615                            width: 56%; 
616                            margin: 5px auto; 
617                            filter: drop-shadow(0px 0px 10px black); 
618                            -webkit-filter: drop-shadow(0px 0px 10px black); 
619
620                        .apply-button { 
621                            display: block; 
622                            margin: 1rem auto; 
623                            font-size: 1.5rem; 
624                            text-decoration: none; 
625                            width: 60%; 
626                            text-transform: uppercase; 
627                            padding: 0.8rem; 
628
629                        .banner-wrapper { 
630                            margin: auto; 
631                            padding: 1%; 
632
633                        .disclaimer{ 
634                            padding: 3%; 
635                            margin: auto; 
636
637                        .banner { 
638                            padding: 25px; 
639                            -webkit-flex-direction: row; 
640                            -ms-flex-direction: row; 
641                            flex-direction: row; 
642
643                        .banner-cardArt { 
644                            width: 260px; 
645
646                        .banner-cta { 
647                            width: calc(100% - 260px); 
648                            position: relative; 
649
650                        .banner-cta-text { 
651                            padding: 10px 0 10px 20px; 
652
653                        .banner-cta-text p:first-child { 
654                            font-size: 2.5rem; 
655                            line-height: 2.5rem; 
656
657                        .banner-cta-text p:last-child { 
658                            font-size: 1.5rem; 
659                            line-height: 2rem; 
660
661                        .banner-cta-apply-button { 
662                            float: right; 
663                            display: block; 
664                            font-size: 1rem; 
665                            text-decoration: none; 
666                            text-transform: uppercase; 
667                            padding: 0.5rem 2.5rem; 
668                            width: auto; 
669                            margin-top: 10px; 
670                            right: 0; 
671                            bottom: 0; 
672
673
674                    @media screen and (max-width: 700px) { 
675                        /* .banner-cardArt { 
676                            width: 160px; 
677
678                        .banner-cta{ 
679                            width: calc(100% - 160px); 
680                        } */ 
681                        .banner-cta-text p:first-child { 
682                            font-size: 2rem; 
683                            line-height: 2rem; 
684
685                        .banner-cta-text p:last-child { 
686                            font-size: 1rem; 
687                            line-height: 1.5rem; 
688
689
690                    /* handset */ 
691                    @media screen and (max-width: 560px) { 
692                        .hero-container { 
693                            padding: 0px; 
694                            background-position: right; 
695
696                        .hero-main { 
697                            display: -ms-flexbox; 
698                            display: -webkit-flex; 
699                            display: -moz-flex; 
700                            display: flex; 
701                            -webkit-flex-wrap: nowrap; 
702                            -ms-flex-wrap: nowrap; 
703                            flex-wrap: nowrap; 
704                            -webkit-flex-direction: column; 
705                            -ms-flex-direction: column; 
706                            flex-direction: column; 
707
708                        .hero-main-logo { 
709                            position: static; 
710                            width: 100%; 
711                            height: 125px; 
712                            display: -ms-flexbox; 
713                            display: -webkit-flex; 
714                            display: -moz-flex; 
715                            display: flex; 
716                            -webkit-justify-content: center; 
717                            -ms-flex-pack: center; 
718                            justify-content: center; 
719                            -webkit-flex-direction: column; 
720                            -ms-flex-direction: column; 
721                            flex-direction: column; 
722
723                        .hero-main-logo a{ 
724                            margin-left: auto; 
725                            margin-right: auto; 
726                            height: 50%; 
727                            width: 50%; 
728                            line-height: 62.5px; 
729
730                        .hero-main-logo-homelink { 
731                            margin-left: auto; 
732                            margin-right: auto; 
733                            margin-top:0; 
734
735                        .hero-main-container { 
736                            width: 100%; 
737                            min-height: 488px; 
738                            padding: 0px; 
739                            float: none; 
740                            height: auto; 
741
742                        .hero-primary-benefits { 
743                            -webkit-flex-direction: column; 
744                            -ms-flex-direction: column; 
745                            flex-direction: column; 
746
747                        .primary-benefit { 
748                            padding: 10px 5px; 
749                            width: 100%; 
750                            min-height: 90px; 
751
752                        .learnmore { 
753                            display: none; 
754
755                        .secondary-benefits { 
756                            padding: 1.5%; 
757                            flex-direction: column; 
758                            -ms-flex-direction: column; 
759                            -webkit-flex-direction: column; 
760                            text-align: center; 
761
762                        .option { 
763                            width: 100%; 
764
765                        .hero-main-offer { 
766                            border-radius: 0; 
767                            min-height: inherit; 
768
769                        .offer-header.bg-color-black { 
770                            background-color: rgba(0, 0, 0, 0.8); 
771                            font-size: 1.2rem; 
772                            height: 48px; 
773                            padding-top: 10px; 
774
775                        .offer-detail { 
776                            width: 100%; 
777                            height: auto; 
778
779                        .offer-detail-head { 
780                            font-size: 2.3rem; 
781                            line-height: 2.3rem; 
782                            margin: 15px 0; 
783                            min-height: 4.6rem; 
784
785                        .offer-detail-text { 
786                            width: 96%; 
787                            margin: auto; 
788                            text-align: center; 
789                            float: none; 
790
791                        .offer-detail-text p { 
792                            font-weight: bold; 
793                            margin: 10px 0; 
794                            font-size: 0.8rem; 
795
796                        .offer-detail-cardArt { 
797                            width: 75%; 
798                            margin: 5px auto; 
799                            filter: drop-shadow(0px 0px 10px black); 
800                            -webkit-filter: drop-shadow(0px 0px 10px black); 
801                            -ms-filter: drop-shadow(0px 0px 10px black); 
802                            max-width: 261px; 
803
804                        .apply-button { 
805                            display: block; 
806                            margin: 0.8rem auto; 
807                            font-size: 1.5rem; 
808                            text-decoration: none; 
809                            width: 80%; 
810                            text-transform: uppercase; 
811                            padding: 0.7rem; 
812
813                        .banner-wrapper { 
814                            margin: 0; 
815                            padding: 0; 
816
817                        .banner { 
818                            padding: 25px; 
819                            height: auto; 
820                            flex-direction: column; 
821                            -ms-flex-direction: column; 
822                            -webkit-flex-direction: column; 
823                            text-align: center; 
824                            margin: 0; 
825
826                        .banner-cardArt { 
827                            padding: 0 25px; 
828                            width: 80%; 
829                            margin: auto; 
830
831                        .banner-cardArt img{ 
832                            max-width: 200px; 
833
834                        .banner-cta { 
835                            width: 100%; 
836                            position: relative; 
837
838                        .banner-cta-text { 
839                            padding: 5px; 
840
841                        .banner-cta-text p:first-child { 
842                            font-size: 2rem; 
843                            line-height: 2rem; 
844
845                        .banner-cta-text p:last-child { 
846                            font-size: 1rem; 
847                            line-height: 1.5rem; 
848
849                        .banner-cta-apply-button { 
850                            float: none; 
851                            display: block; 
852                            text-decoration: none; 
853                            text-transform: uppercase; 
854                            margin: 0.8rem auto; 
855                            position: static; 
856                            right: 0; 
857                            bottom: 0; 
858                            display: block; 
859                            font-size: 1.5rem; 
860                            width: 80%; 
861                            padding: 0.7rem; 
862
863
864                    @media screen and (max-width: 360px) { 
865                        .hero-main-logo { 
866                            width: 100%; 
867                            height: 150px; 
868                            display: -ms-flexbox; 
869                            display: -webkit-flex; 
870                            display: -moz-flex; 
871                            display: flex; 
872                            -webkit-justify-content: center; 
873                            -ms-flex-pack: center; 
874                            justify-content: center; 
875                            -webkit-flex-direction: column; 
876                            -ms-flex-direction: column; 
877                            flex-direction: column; 
878
879                        .hero-main-logo a{ 
880                            margin-left: auto; 
881                            margin-right: auto; 
882                            height: 50%; 
883                            width: 80%; 
884                            line-height: 75px; 
885
886                        .hero-main-offer { 
887                            border-radius: 0; 
888
889                        .banner-cardArt { 
890                            padding: 0px; 
891
892                        .banner-cardArt img{ 
893                            max-width: 100%; 
894
895
896                    .jn-header { 
897                        background: #fff; 
898                        position: absolute; 
899                        width: 100%; 
900
901                 
902                    .jn-header .styled-select { 
903                        display: none; 
904                        background-color: #fff; 
905                        border: 1px solid #ccc; 
906                        min-width: 200px; 
907                        height: 34px; 
908                        overflow: hidden; 
909                        outline: none; 
910                        width: auto; 
911                        position: absolute; 
912
913                 
914                    .jn-header .styled-select:after { 
915                        border-bottom-style: solid; 
916                        border-bottom-width: 3px; 
917                        border-right-style: solid; 
918                        border-right-width: 3px; 
919                        content: ''; 
920                        display: block; 
921                        height: 15px; 
922                        right: 12px; 
923                        position: absolute; 
924                        top: 5px; 
925                        width: 15px; 
926                        border-color: #99999F; 
927                        -moz-transform: rotate(45deg); 
928                        -ms-transform: rotate(45deg); 
929                        -webkit-transform: rotate(45deg); 
930                        transform: rotate(45deg); 
931
932                 
933                    .jn-header .styled-select select { 
934                        background: transparent; 
935                        font-family: Arial, Helvetica, sans-serif; 
936                        font-weight: bold; 
937                        font-size: 14px; 
938                        height: 34px; 
939                        width: 100%; 
940                        padding: 5px 35px 5px 5px; 
941                        text-transform: none; 
942                        line-height: 1.15; 
943                        margin: 0; 
944                        border: none; 
945                        color: #666666; 
946                        -webkit-box-sizing: border-box; 
947                        -moz-box-sizing: border-box; 
948                        box-sizing: border-box; 
949                        -webkit-appearance: none; 
950                        -moz-appearance: none; 
951                        z-index: 500; 
952
953                 
954                    .jn-header .styled-select select::-ms-expand { 
955                        display: none; 
956
957                 
958                    .jn-header a { 
959                        font-size: 12px; 
960                        color: #1c348b; 
961                        display: none; 
962
963                    @media screen and (min-width: 826px) { 
964                        .jn-header .styled-select { 
965                            display: block; 
966                            right: 60px; 
967                            top: 20px; 
968                            z-index: 500; 
969
970
971                 
972                    @media screen and (max-width: 350px) { 
973                        .jn-header img { 
974                            width: 200px; 
975
976
977            </style> 

Crea/Mostra Contenuto

Si è verificato un errore nell'elaborarazione del modello.
Expression bankercode is undefined on line 42, column 6 in 10154#10192#153411711.
1<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService") > 
2<#assign url404 = '/error/404.html' > 
3<#assign oadURL = propsUtil.get('elan.oad.url') > 
4<#assign url = request.attributes.CURRENT_URL > 
5<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
6 
7<#if qstringmap["ecid"]?has_content> 
8    <#assign ecidExt="&ecid="+qstringmap["ecid"]?first> 
9<#else> 
10    <#assign ecidExt=""> 
11</#if> 
12 
13<#if qstringmap["bankercode"]?has_content> 
14    <#assign bankercode= qstringmap["bankercode"]?first> 
15 
16    <#assign fiData= utilServ.makeCall('crcDDCBankerAssistedApp','0&'+bankercode)> 
17    <#if fiData?first?has_content> 
18        <#assign fi = fiData?first> 
19        <#if ((fi.projectId == "12") || (fi.projectId == "13") || (fi.projectId == "14"))> 
20            <#assign subbu_special = fi.offerId> 
21        </#if> 
22    </#if>  
23 
24    <#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bankercode)> 
25    <#list bData as b>         
26      <#assign rLC = b.reallocationcode > 
27      <#assign lc = b.locationcode > 
28      <#assign mappedLC = b.mappedLocationCode > 
29    </#list>     
30<#else> 
31    <script> 
32        console.log("MainProductBcode missing"); 
33        //location.href = '${url404}'; 
34    </script> 
35</#if> 
36 
37<#if url?contains('11t1')> 
38    <#assign tier = '11t1'> 
39<#elseif url?contains('11t2')> 
40    <#assign tier = '11t2'> 
41</#if> 
42<#if bankercode?starts_with("amp") && (url?contains("11t1m"))> 
43    <#assign ameriprise = true> 
44<#else> 
45    <#assign ameriprise = false> 
46</#if> 
47<#if ameriprise> 
48    <#assign tier = '11t1m'> 
49</#if> 
50<#assign environment = url?replace('/${tier}.*','','r')> 
51 
52 
53<#if mappedLC?has_content && !ameriprise> 
54    <#assign lc = mappedLC > 
55</#if> 
56 
57<#if lc?has_content> 
58    <#assign prefix = "00000" > 
59    <#assign lcWithPrefix = prefix + lc > 
60    <#assign withPrefixLength = lcWithPrefix?length > 
61    <#assign startHere = withPrefixLength - 5> 
62    <#assign lc = lcWithPrefix?substring(startHere)> 
63    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
64    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
65 
66    <#assign clientProfile = clientProfileList?first> 
67    <#assign partnerName = clientProfile.getMarketingNameLong()> 
68    <#assign logoFileName = clientProfile.getLogoBFormat1()> 
69    <#assign cdnLogoUrl = propsUtil.get('rackspace.cdn.web.url')> 
70    <#assign pbu = clientProfile.getPbu()> 
71    <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
72    <script> 
73        console.log('pbu', '${pbu!''}'); 
74        console.log('subbu', '${subbu!''}'); 
75    </script>       
76    <#assign optoutData = utilServ.makeCall('crc_DDCSAAOptOut',pbu+'&'+subbu)> 
77    <#if (optoutData?size == 0)> 
78        <#if (subbu_special?has_content)> 
79            <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&' + pbu + '&' + subbu_special)>  
80            <script> 
81                console.log('new subbu', '${subbu_special!''}'); 
82            </script>  
83        <#else> 
84            <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&' + pbu + '&' + subbu)>  
85        </#if> 
86 
87        <#if (fiCardsData?size > 0)> 
88            <#assign temp = []> 
89            <#assign offerTypeList = []>        
90            <#assign index = 0> 
91            <#list fiCardsData as fib> 
92                <#if (fib.offerType?has_content && !(offerTypeList?seq_contains(fib.offerType)))>  
93                    <#assign offerTypeList = offerTypeList + [fib.offerType]>                   
94                    <#assign temp = temp + fiCardsData[index..index]>  
95                </#if>  
96                <#assign index = index + 1> 
97            </#list>  
98            <#assign fiCardsData = temp> 
99            <#if !(fiCardsData?size > 0)>  
100                <script> 
101                    console.log("empty card/offerType List"); 
102                    //location.href = '${url404}'; 
103                </script> 
104            </#if> 
105            <#if ameriprise> 
106                <#assign lc_used = mappedLC>  
107            <#else> 
108                <#assign lc_used = lc>  
109            </#if>             
110            <div class="content-container content-container-main" title="${partnerName!''}"> 
111                <header class="jn-header"> 
112                    <div>  
113                        <a href="${environment}/${tier}/index?bankercode=${bankercode}&ecdma-lc=${lc_used}${ecidExt}"><< Back to Overview</a> 
114                    </div>  
115                    <div>  
116                        <#if url?contains("11t2")> 
117                            <img src="${cdnLogoUrl!''}/${logoFileName!''}" alt="${partnerName!''}"> 
118                        </#if> 
119                        <div class="styled-select slate"> 
120                            <select> 
121                                <#list fiCardsData as fib> 
122                                    <#if ameriprise> 
123                                        <#if (fib.offerType=="101")> 
124                                            <#assign productURL="premier-visa-signature"> 
125                                            <#assign productName="Ameriprise Premier Visa Signature"> 
126                                        <#elseif (fib.offerType=="103")>      
127                                            <#assign productURL = "visa-signature"> 
128                                            <#assign productName = "Ameriprise Visa Signature">                              
129                                        </#if> 
130                                    <#else> 
131                                        <#if (fib.offerType=="108" || fib.offerType=="109")> 
132                                            <#assign productURL="consumer-platinum"> 
133                                            <#assign productName="Platinum Card"> 
134                                        <#elseif (fib.offerType=="104")> 
135                                            <#assign productURL = "max-cash"> 
136                                            <#assign productName = "Max Cash Preferred Card"> 
137                                        <#elseif (fib.offerType=="101" || fib.offerType=="103")> 
138                                            <#assign productURL = "real-rewards"> 
139                                            <#assign productName = "Real Rewards Card"> 
140                                        <#elseif fib.offerType == "115"> 
141                                            <#assign productURL = "secured"> 
142                                            <#assign productName = "Secured Card" > 
143                                        <#elseif fib.offerType == "144"> 
144                                            <#assign productURL = "smart-business-rewards"> 
145                                            <#assign productName = "Smart Business Rewards Card" >                                             
146                                        <#elseif fib.offerType == "128"> 
147                                            <#assign productURL = "business-cashback"> 
148                                            <#assign productName = "Business Cash Card" > 
149                                        <#elseif fib.offerType == "143"> 
150                                            <#assign productURL = "business-real-rewards"> 
151                                            <#assign productName = "Business Real Rewards Card" > 
152                                        <#elseif fib.offerType == "121"> 
153                                            <#assign productURL = "visa-business"> 
154                                            <#assign productName = "Business Card" > 
155                                        </#if> 
156                                    </#if> 
157                                    <#if url?matches(".*/${productURL}.*")> 
158                                        <option value="${environment}/${tier}/${productURL}?bankercode=${bankercode}&ecdma-lc=${lc_used}${ecidExt}" selected="selected">${productName}</option>                                             
159                                    <#else> 
160                                        <option value="${environment}/${tier}/${productURL}?bankercode=${bankercode}&ecdma-lc=${lc_used}${ecidExt}">${productName}</option> 
161                                    </#if> 
162                                     
163                                </#list> 
164                            </select> 
165                        </div> 
166                    </div>  
167                </header> 
168            </div>  
169            <script> 
170                var page = location.pathname.split('/')[location.pathname.split('/').length-1]; 
171                var partnerName = "${partnerName!0}"; 
172                var metaDesc = ""; 
173                switch (page) { 
174                    case "consumer-platinum": 
175                        document.title = "The purchasing power of Zero | "+partnerName+" Platinum Card"; 
176                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Limited Time Offer. 0% Intro APR on Purchases and Balance Transfers for 20 Billing Cycles Consolidate your Balances with the "+partnerName+" Intro APR Card."; 
177                        break; 
178                    case "max-cash": 
179                        document.title = "Earn a $150 Bonus and 5% cash back | "+partnerName+" Max Cash Preferred Card"; 
180                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Earn a $150 Bonus and 5% cash back on the two categories you select"; 
181                        break; 
182                    case "real-rewards": 
183                        document.title = "Sign up and earn bonus points | "+partnerName+" Real Rewards Card"; 
184                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Take home 2,500 bonus points after your first purchase."; 
185                        break; 
186                    case "secured": 
187                        document.title = "Strengthen your finances | "+partnerName+" Secured Card"; 
188                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Use this card as a solid foundation to build your credit."; 
189                        break; 
190                    case "smart-business-rewards": 
191                        document.title = "2X rewards in your top 2 spend categories | "+partnerName+" Business Smart Business Rewards Card"; 
192                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. More choices. More value for your business. Earn a $200 Bonus and 2x Rewards on your top 2 spend categories each month with the "+partnerName+" Credit Card."; 
193                        break; 
194                    case "business-cashback": 
195                        document.title = "Flexible rewards for your business | "+partnerName+" Business Cash Card"; 
196                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Earn Cash back on common business expenses."; 
197                        break; 
198                    case "business-real-rewards": 
199                        document.title = "Earn up to 3X points with no caps | "+partnerName+" Business Real Rewards Card"; 
200                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Get more rewards in the categories you spend the most on." ; 
201                        break; 
202                    case "visa-business": 
203                        document.title = "Pay down your other credit card balances faster | "+partnerName+" Business Card"; 
204                        metaDesc = "Apply Today for a "+partnerName+" Business Card. 0% Intro APR on Purchases and Balance Transfers for 15 Billing Cycles"; 
205                        break; 
206                    case "premier-visa-signature": 
207                        document.title = "Exclusively for Ameriprise clients | Ameriprise® Premier Visa Signature® Card"; 
208                        metaDesc = "Apply Today for an Ameriprise Financial Credit Card. Earn Rewards Points worth $375 cash value when deposited into an eligible account after spending $3,000 in eligible net purchases within the first 90 days of account opening."; 
209                        break; 
210                    case "visa-signature": 
211                        document.title = "Exclusively for Ameriprise clients | Ameriprise® Visa Signature® Card"; 
212                        metaDesc = "Apply Today for an Ameriprise Financial Credit Card. Earn Rewards Points worth $250 cash value when deposited into an eligible Ameriprise account after spending $2,000 in eligible net purchases within the first 90 days of account opening."; 
213                        break;                                                                                                 
214
215                if (metaDesc.length > 0) { 
216                    var m = document.createElement('meta');  
217                    m.name = 'description';  
218                    m.content = metaDesc;  
219                    document.head.appendChild(m); 
220
221 
222                AUI().ready(function () { 
223                    jQuery('.styled-select select').change(function () { 
224                        location.href = this.value; 
225                    }); 
226                }); 
227            </script> 
228         
229        <#else> 
230            <script> 
231                console.log("FI Cards Data empty"); 
232                //location.href = '${url404}'; 
233            </script> 
234        </#if>   
235    <#else> 
236        <script> 
237            console.log("FI opt out"); 
238            //location.href = '${url404}'; 
239        </script> 
240    </#if>  
241<#else> 
242    <script> 
243        console.log("location code empty"); 
244        //location.href = '${url404}'; 
245    </script> 
246</#if> 

Crea/Mostra Contenuto

Si è verificato un errore nell'elaborarazione del modello.
Expression bCode is undefined on line 57, column 6 in 10154#10192#153411735.
1<#assign url = request.attributes.CURRENT_URL > 
2<#assign oadURL = propsUtil.get('elan.oad.url') > 
3<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
4<#assign url404 = '/error/404.html' > 
5<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
6<#assign environment = url?replace('/11t1.*','','r')> 
7<#assign oadURL_TC = 'https://online1.elancard.com/oad/terms.controller' > 
8 
9<#--  check bankercode validity  --> 
10 
11<#if qstringmap["bankercode"]?has_content> 
12    <#assign bCode= qstringmap["bankercode"]?first> 
13 
14    <#assign fiData= utilServ.makeCall('crcDDCBankerAssistedApp','0&'+bCode)> 
15    <#if fiData?first?has_content> 
16        <#assign fi = fiData?first> 
17        <#if (fi.projectId == "12" || fi.projectId == "13" || fi.projectId == "14")> 
18            <#assign subbu_special = fi.offerId> 
19        </#if> 
20    </#if>       
21    <#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
22    <#list bData as b> 
23      <#assign lc = b.locationcode > 
24      <#assign bName = b.branch > 
25      <#assign bPhone = b.businessphone > 
26      <#assign boeid = b.oeid > 
27      <#assign fName = b.firstname?trim> 
28      <#assign lName = b.lastname?trim> 
29      <#assign rlc = b.reallocationcode > 
30      <#assign mappedLC = b.mappedLocationCode > 
31    </#list> 
32 
33 
34 
35   
36<#else> 
37    <script> 
38        console.log("MainProductBcode missing"); 
39        //location.href = '${url404}'; 
40    </script> 
41</#if> 
42 
43<#assign text_to_apply_source = "vanity url" > 
44<#if qstringmap["sms"]?has_content> 
45    <#assign sms = 1 > 
46    <#assign text_to_apply_source = "sms" > 
47</#if> 
48<#if qstringmap["qrCode"]?has_content> 
49    <#assign text_to_apply_source = "qr code" > 
50</#if> 
51<#assign campaignId = "" > 
52<#assign ecidExt=""> 
53<#if qstringmap["ecid"]?has_content> 
54    <#assign campaignId = qstringmap["ecid"]?first > 
55    <#assign ecidExt="&ecid="+qstringmap["ecid"]?first> 
56</#if> 
57<#if bCode?starts_with("amp") && (url?contains("11t1m"))> 
58    <#assign ameriprise = true> 
59<#else> 
60    <#assign ameriprise = false> 
61</#if> 
62 
63<#if mappedLC?has_content && !ameriprise> 
64    <#assign lc = mappedLC > 
65</#if> 
66 
67 
68 
69<#if lc?has_content> 
70 
71    <#assign firstNameLength = fName?length > 
72    <#assign lastNameLength = lName?length > 
73    <#if firstNameLength + lastNameLength &gt; 19 > 
74        <#if lastNameLength &gt; 18 > 
75            <#assign bLName = lName?substring(0,18)> 
76        <#else> 
77            <#assign bLName = lName> 
78        </#if> 
79        <#assign maxFirstName = 19 - bLName?length > 
80        <#if firstNameLength &gt; maxFirstName > 
81            <#assign bFName = fName?substring(0,maxFirstName)> 
82        <#else> 
83            <#assign bFName = fName> 
84        </#if> 
85    <#else> 
86        <#assign bFName = fName > 
87        <#assign bLName = lName > 
88    </#if> 
89       
90 
91    <#assign prefix = "00000" > 
92    <#assign lcWithPrefix = prefix + lc > 
93    <#assign withPrefixLength = lcWithPrefix?length > 
94    <#assign startHere = withPrefixLength - 5> 
95    <#assign lc = lcWithPrefix?substring(startHere)> 
96 
97    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
98    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)>     
99 
100    <#if clientProfileList?first?has_content> 
101        <#assign clientProfile = clientProfileList?first> 
102        <#assign partnerName = clientProfile.getMarketingNameLong()> 
103        <#assign pbu = clientProfile.getPbu()> 
104        <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
105        <#assign optoutData = utilServ.makeCall('crc_DDCSAAOptOut',pbu+'&'+subbu)> 
106        <#if (optoutData?size == 0)>                 
107            <#assign clientDataService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcPbuLocalService") > 
108            <#assign clientProfileDataList = clientDataService.getByPbuAndSubBu(pbu,subbu)> 
109            <#assign partnerUrl = clientProfileDataList.getPartnerMainUrl()> 
110            <#if partnerUrl?has_content && !partnerUrl?matches(r"(?i)^https?\:\/\/.*")>             
111                <#assign partnerUrl = 'https://' + partnerUrl> 
112            </#if>            
113            <#assign clientdata = utilServ.makeCall('crcDDCTier1Customizations','0&'+pbu+'&'+subbu+'&11')> 
114            <#if (clientdata?size > 0)> 
115                <#assign logoFileName = clientProfile.getLogoBFormat1()> 
116                <#assign cdnLogoUrl = propsUtil.get('rackspace.cdn.web.url')> 
117                <#list clientdata as data> 
118                    <#assign billingCycle=data.BillingCycles> 
119                </#list> 
120                <#if pbu == "0864054"> 
121                    <#assign override = "berkshire"> 
122                <#else> 
123                    <#assign override = " "> 
124                </#if> 
125              
126                <#--  this one should be delete for prod  --> 
127                     
128                        <#assign cdnLogoUrl = "https://4f61efb10f32ceb57895-3733e103896f37259213d6ad72acbe68.ssl.cf2.rackcdn.com">   
129                        <#assign logoFileName = pbu + "-" + subbu + ".png"> 
130                     
131                <#assign cdnCardArtUrl = propsUtil.get('rackspace.cdn.cardart.url')> 
132                <#assign pageClass = secondaryBackgroundImage.cardType.getData()> 
133                 
134                <#if (subbu_special?has_content)> 
135                    <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&' + pbu + '&' + subbu_special)>  
136                <#else> 
137                    <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&' + pbu + '&' + subbu)>  
138                </#if> 
139 
140 
141                <#assign temp = []> 
142                <#assign offerTypeList = []>      
143                <#assign index = 0> 
144                <#list fiCardsData as fib> 
145                    <#if !(offerTypeList?seq_contains(fib.offerType))>  
146                        <#assign offerTypeList = offerTypeList + [fib.offerType]>                   
147                        <#assign temp = temp + fiCardsData[index..index]>  
148                    </#if>  
149                    <#assign index = index + 1>                
150                </#list>  
151                <#assign fiCardsData = temp> 
152                <#if (fiCardsData?size > 0)>   
153                    <#if (subbu_special?has_content)> 
154                        <#assign lc_used = fiCardsData?first.WebLocationCode>   
155                    <#else> 
156                        <#if ameriprise> 
157                            <#assign lc_used = mappedLC>  
158                        <#else> 
159                            <#assign lc_used = lc>  
160                        </#if> 
161                    </#if> 
162 
163                    <#list fiCardsData as fib> 
164                        <#if ameriprise> 
165                            <#if (fib.offerType=="101")> 
166                                <#assign productURL="premier-visa-signature"> 
167                                <#assign productName="Premier Visa Signature"> 
168                                <#assign productClass="ameriprise-premier-visa-signature"> 
169                            <#elseif (fib.offerType=="103")>      
170                                <#assign productURL = "visa-signature"> 
171                                <#assign productName = "Visa Signature">   
172                                <#assign productClass="ameriprise-visa-signature">                            
173                            </#if> 
174                        <#else>                     
175                            <#if (fib.offerType=="108") || (fib.offerType=="109")> 
176                                <#assign productURL="consumer-platinum"> 
177                                <#assign productName="Platinum"> 
178                            <#elseif (fib.offerType=="104")>    
179                                <#assign productURL = "max-cash"> 
180                                <#assign productName="Max Cash">                              
181                            <#elseif (fib.offerType=="101") || (fib.offerType=="103")> 
182                                <#assign productURL = "real-rewards"> 
183                                <#assign productName="Real Rewards"> 
184                            <#elseif fib.offerType == "115"> 
185                                <#assign productURL = "secured"> 
186                                <#assign productName="Secured"> 
187                            <#elseif fib.offerType == "144"> 
188                                <#assign productURL = "smart-business-rewards"> 
189                                <#assign productName="Smart Business Rewards">                                 
190                            <#elseif fib.offerType == "128"> 
191                                <#assign productURL = "business-cashback"> 
192                                <#assign productName="Business Cash"> 
193                            <#elseif fib.offerType == "143"> 
194                                <#assign productURL = "business-real-rewards"> 
195                                <#assign productName="Business Real Rewards"> 
196                            <#elseif fib.offerType == "121"> 
197                                <#assign productURL = "visa-business"> 
198                                <#assign productName="Visa Business"> 
199                            </#if>  
200                        </#if>                    
201                        <#assign cardArtImage = cdnCardArtUrl + "/" + fib.filename + ".png"> 
202                        <#assign cardArtImageAlt = cdnCardArtUrl + "/"+fib.filename+".jpg">   
203                        <#assign newSourceCode = fib.sourceCode>  
204                        <#assign newOfferId = fib.offerId>  
205                        <#if url?matches(".*/${productURL}.*")> 
206                            <#assign sdata = utilServ.makeCall('crcDDCGetSchumerBox', newOfferId + '&' + newSourceCode)> 
207                            <#if (sdata?size > 0)>   
208                                <#if (productURL=="platinum" && !ameriprise)> 
209                                    <#assign apr = "">                         
210                                    <#list sdata as d> 
211                                        <#if (d.scrapedLabel?contains("Annual Percentage Rate (APR) for Purchases") && (d.scrapedValue?has_content))> 
212                                            <#assign apr = d.scrapedValue?replace("(\n|\r\n|\r)+", " ","r")> 
213                                            <script> 
214                                                console.log("scraped data exists"); 
215                                                console.log("APR", '${apr}') 
216                                            </script> 
217                                            <#break> 
218                                        </#if> 
219                                    </#list> 
220                                    <script> 
221                                            $(document).ready(function () { 
222                                                var aprText = "${apr}"; 
223                                                if (aprText) { 
224                                                    var matches= aprText.match(/\d+(\.\d+)?%?/g); 
225                                                    var billing_cycle = ""; 
226                                                    var apr_min = ""; 
227                                                    var apr_max = ""; 
228                                                    if (aprText.indexOf("Platinum:") != -1) { 
229                                                        billing_cycle = matches[1]; 
230                                                        apr_min = matches[2]; 
231                                                        apr_max = matches[3]; 
232
233                                                    if (billing_cycle) { 
234                                                        $(".scraped-billing-cycle").html(billing_cycle); 
235
236                                                    if (apr_min) { 
237                                                        $(".scraped-apr-min").html(apr_min); 
238
239                                                    if (apr_max) { 
240                                                        $('.scraped-apr-max').html(apr_max); 
241
242
243                                            }); 
244                                    </script> 
245                                     
246                                </#if>                                 
247                            <#else>     
248                                <script> 
249                                    console.log("scraped data missing"); 
250                                </script> 
251                            </#if>   
252                            <#if ameriprise> 
253                                <#assign card_art_alt =  partnerName + " " + productName + " " + " Card"> 
254                                <#assign rollover_text =  partnerName + " " + productName + " " + " Card"> 
255                            <#else> 
256                                <#assign card_art_alt = partnerName> 
257                                <#assign rollover_text =  partnerName + " " + productName + " " + " Credit Card"> 
258                            </#if> 
259                            <div class="hero-container ${pageClass} ${productClass!''}" title="${rollover_text!''}"> 
260                                <div class="hero-main"> 
261                                    <div class="hero-main-logo" title="${partnerName!''}"> 
262                                        <#if partnerUrl?has_content> 
263                                            <a href="${partnerUrl!''}" title="${partnerName!''}"><img src="${cdnLogoUrl!''}/${logoFileName!''}" alt="${partnerName!''}"></a> 
264                                        <#else> 
265                                            <a title="${partnerName!''}"><img src="${cdnLogoUrl!''}/${logoFileName!''}" alt="${partnerName!''}"></a> 
266                                        </#if> 
267                                        <div class="hero-main-logo-homelink">  
268                                            <#if ameriprise> 
269                                                <a href="${environment}/11t1m/index?bankercode=${bCode}&ecdma-lc=${lc_used}${ecidExt}">Back to Overview</a> 
270                                            <#else> 
271                                                <a href="${environment}/11t1/index?bankercode=${bCode}&ecdma-lc=${lc}${ecidExt}">Back to Overview</a> 
272                                            </#if> 
273                                        </div>  
274                                    </div> 
275                                    <div class="hero-main-container"> 
276                                        <div class="hero-main-offer bg-color-white"> 
277                                            <div class="offer-header bg-color-black text-color-white text-bold">${primaryHeadlineText.getData()}</div> 
278                                            <div class="offer-detail"> 
279                                                <div class="offer-detail-head">${primaryHeadlineFeature.getData()}</div> 
280                                                <div class="offer-detail-text text-color-default"> 
281                                                    ${primaryHeadlineFeatureTop.getData()} 
282                                                    ${primaryHeadlineFeatureBottom.getData()} 
283                                                </div> 
284                                                <div class="offer-detail-cardArt"> 
285                                                        <img src="${cardArtImage!''}" alt="${card_art_alt!''}" title="${card_art_alt!''}" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'"> 
286                                                </div> 
287                                                <#if (fiCardsData?size > 0)>  
288                                                     
289                                                    <form class="form1" action='${oadURL}?locationCode=${lc_used}&offerId=${newOfferId}&preparerType=customer&sourceCode=${newSourceCode}' method="post" id="BAAForm"> 
290                                                        <label for="appDataBAA" style="position:absolute; clip:rect(0 0 0 0);">Application Data</label> 
291                                                        <textarea rows="20" cols="100" name="applicationData" id="appDataBAA" style="display:none;"></textarea> 
292                                                        <input type="submit" data-button-name="cta-button-top" title="Apply Now for ${rollover_text!'Credit Card'}" class="jn-button apply-button text-bold button-bg-color-custom text-color-white" value="${ctaText.getData()}" disabled /> 
293                                                    </form> 
294                                                <#else> 
295                                                    <form class="form2" action='${oadURL}?locationCode=${lc_used}&offerId=${offerId}&preparerType=customer&sourceCode=${sourceCode}' method="post" id="BAAForm"> 
296                                                        <label for="appDataBAA" style="position:absolute; clip:rect(0 0 0 0);">Application Data</label> 
297                                                        <textarea rows="20" cols="100" name="applicationData" id="appDataBAA" style="display:none;"></textarea> 
298                                                        <input type="submit" data-button-name="cta-button-top" title="Apply Now for ${rollover_text!'Credit Card'}" class="jn-button apply-button text-bold button-bg-color-custom text-color-white" value="${ctaText.getData()}" disabled /> 
299                                                    </form> 
300                                                </#if> 
301                                            </div> 
302                                        </div> 
303                                    </div> 
304                                </div> 
305                                <div class="hero-primary-benefits bg-color-black-half-transparent text-color-white"> 
306                                    <#if secondaryFeatureText.getData() != ""> 
307                                        <#foreach item in secondaryFeatureText.getSiblings()> 
308                                            <div class="primary-benefit"> 
309                                                <div class="primary-benefit-wrapper text-color-white"> 
310                                                    ${item.getData()} 
311                                                </div> 
312                                            </div> 
313                                        </#foreach> 
314                                    </#if> 
315                                </div> 
316                            </div> 
317                            <div class="standard-content-container" title="${rollover_text!''}"> 
318                                <h2 class="learnmore text-color-custom text-bold" onclick="learnmore(event)"> 
319                                    LEARN MORE 
320                                    <svg viewBox="0 0 150 100" width="45" height="30"> 
321                                        <polyline points="40 40 80 80 120 38" stroke-width="20" 
322                                            stroke-linecap="butt" fill="none" stroke-linejoin="miter"/> 
323                                    </svg> 
324                                </h2> 
325                                <h2 class="text-bold" id="more">${secondaryHeadlineText.getData()}</h2> 
326                                <div class="secondary-benefits"> 
327                                    <div class="option"> 
328                                        ${additionalInfoGroupA.getData()} 
329                                        <#if pbu != "0892445"> 
330                                            <#if (sdata?size > 0)> 
331                                                <div> 
332 
333                                                    <#if (fib.offerType == "104") > 
334                                                         
335                                                        <#list sdata as d> 
336                                                            <#if (d.scrapedLabel?contains("Annual Percentage Rate") && (d.scrapedValue?has_content))>  
337                                                                             
338                                                                <h3 class="text-color-custom"><strong>APR<sup>*</sup> for Purchases:</strong></h3> 
339                                                                        <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}"  class="text-color-default" target="_blank">Terms & Conditions</a> 
340                                                                        </p> 
341                                                                    <#break> 
342                                                            </#if> 
343                                                        </#list> 
344                                                        <#list sdata as d> 
345                                                            <#if (d.scrapedLabel?contains("APR for Balance Transfers") && (d.scrapedValue?has_content))>  
346                                                                             
347                                                                <h3 class="text-color-custom"><strong>Intro APR<sup>*</sup> for Purchases and Balance Transfers</strong></h3> 
348                                                                        <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}"  class="text-color-default" target="_blank">Terms & Conditions</a> 
349                                                                        </p> 
350                                                                     
351                                                                    <#break> 
352                                                            </#if> 
353                                                        </#list> 
354                                                    <#else> 
355 
356                                                        <#if (fib.offerType == "115" || fib.offerType == "123")> 
357                                                            <h3 class="text-color-custom"><strong>APR for Purchases and Balance Transfers</strong></h3> 
358                                                        <#elseif (fib.offerType=="128" || fib.offerType=="143")> 
359                                                            <h3 class="text-color-custom"><strong>Annual Fee</strong></h3> 
360                                                        <#else> 
361                                                            <h3 class="text-color-custom"><strong>Intro APR<sup>*</sup> for Purchases and Balance Transfers</strong></h3> 
362                                                        </#if> 
363                                                        <#list sdata as d> 
364                                                            <#if (fib.offerType=="128" || fib.offerType=="143") > 
365                                                                <#if (d.scrapedLabel?contains("Annual Membership Fee") && (d.scrapedValue?has_content))> 
366                                                                    <#if (fiCardsData?size > 0)>  
367                                                                        <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
368                                                                                class="text-color-default" target="_blank">Terms & Conditions</a> 
369                                                                        </p> 
370                                                                                 
371                                                                    <#else> 
372                                                                        <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
373                                                                                    class="text-color-default" target="_blank">Terms & Conditions</a> 
374                                                                        </p> 
375                                                                    </#if> 
376                                                                    <#break> 
377                                                                </#if> 
378 
379                                                            <#else> 
380                                                                <#if (d.scrapedLabel?contains("Annual Percentage Rate") && (d.scrapedValue?has_content))>  
381                                                                             
382                                                                    <#if (fiCardsData?size > 0)>      
383                                                                        <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" target="_blank">Terms & Conditions</a> 
384                                                                        </p> 
385                                                                    <#else> 
386                                                                        <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}"  class="text-color-default" target="_blank">Terms & Conditions</a> 
387                                                                        </p> 
388                                                                    </#if> 
389                                                                    <#break> 
390                                                                </#if> 
391                                                            </#if> 
392                                                        </#list> 
393 
394                                                    </#if> 
395                                                </div> 
396                                            </#if> 
397                                        </#if> 
398                                    </div> 
399                                    <div class="option"> 
400                                        ${additionalInfoGroupB.getData()}  
401                                        <#if pbu != "0892445"> 
402                                            <div> 
403                                                <#if (fiCardsData?size > 0)> 
404                                                    <#if (sdata?size > 0)> 
405                                                        <#if (fib.offerType=="128" || fib.offerType=="143")> 
406                                                            <h3 class="text-color-custom"><strong>Intro APR<sup>*</sup> for Purchases and Balance Transfers</strong></h3> 
407                                                        <#else> 
408                                                            <h3 class="text-color-custom"><strong>Annual Fee</strong></h3> 
409                                                        </#if> 
410                                                        <#list sdata as d> 
411                                                            <#if (fib.offerType=="128" || fib.offerType=="143")> 
412                                                                <#if (d.scrapedLabel?contains("Annual Percentage Rate") && (d.scrapedValue?has_content))>  
413                                                                     
414                                                                    <#if (fiCardsData?size > 0)>   
415                                                                        <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
416                                                                            class="text-color-default" target="_blank">Terms & Conditions</a> 
417                                                                        </p> 
418                                                                    <#else> 
419                                                                        <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
420                                                                            class="text-color-default" target="_blank">Terms & Conditions</a> 
421                                                                        </p> 
422                                                                    </#if> 
423                                                                    <#break> 
424                                                                </#if> 
425                                                            <#else> 
426                                                                <#if (d.scrapedLabel?contains("Annual Membership Fee") && (d.scrapedValue?has_content))> 
427                                                                     
428                                                                    <#if (fiCardsData?size > 0)>  
429                                                                    <p> 
430                                                                        <#if (fib.offerType == "123")> 
431                                                                        Annual Fee: ${d.scrapedValue} 
432                                                                        <#else> 
433                                                                        ${d.scrapedValue}  
434                                                                        </#if> 
435                                                                        <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" target="_blank">Terms & Conditions</a> 
436                                                                    </p> 
437                                                                    <#else> 
438                                                                    <p> 
439                                                                        <#if (fib.offerType == "123")> 
440                                                                        Annual Fee: ${d.scrapedValue} 
441                                                                        <#else> 
442                                                                        ${d.scrapedValue}  
443                                                                        </#if> 
444                                                                        <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" class="text-color-default" target="_blank">Terms & Conditions</a> 
445                                                                    </p> 
446                                                                    </#if> 
447                                                                    <#break> 
448                                                                </#if> 
449                                                            </#if> 
450                                                        </#list> 
451                                                    </#if> 
452                                                </#if> 
453                                            </div> 
454                                        </#if> 
455                                    </div> 
456                                </div> 
457                            </div> 
458                            <div class="banner-wrapper" title="${rollover_text!''}"> 
459                                <div class="banner bg-color-custom ${override}"> 
460                                    <div class="banner-cardArt"> 
461                                            <img src="${cardArtImage!''}" alt="${card_art_alt!''}" title="${card_art_alt!''}" srcset="" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'"> 
462                                    </div> 
463                                    <div class="banner-cta"> 
464                                        <div class="banner-cta-text text-color-white text-bold"> 
465                                            ${optionalCtaFeatureText.getData()} 
466                                        </div> 
467                                        <a id="oadSecButton" data-button-name="cta-button-bottom" title="Apply Now for ${rollover_text!'Credit Card'}" class="jn-button banner-cta-apply-button text-bold button-bg-color-white text-color-custom">${optionalCtaText.getData()}</a> 
468                                    </div> 
469                                </div> 
470                            </div>     
471                 
472 
473                        </#if> 
474                    </#list>                         
475 
476                    <script> 
477                        document.addEventListener('DOMContentLoaded', function() { 
478                            console.log('inside ready'); 
479                            var page = location.pathname.split('/')[location.pathname.split('/').length-1]; 
480                            var hostName = location.hostname; 
481                         
482                            function getDomainFromHostname(hostname) { 
483                                var parts = hostname.split('.'); 
484                                return parts.length === 3 ? parts[1] : parts[0]; 
485
486                            var domain = getDomainFromHostname(hostName); 
487                            var partnerName = "${partnerName!''}"; 
488                            var utag_data = window.utag_data || {}; 
489 
490                            var ameriprise = '${ameriprise?string("yes", "no")}'; 
491                            var locationCode = "${rlc!lc}"; 
492                            var eidAmp = ""; 
493                            if (ameriprise == "yes") { 
494                                var bankercode_amp = '${bCode}'; 
495                                eidAmp = bankercode_amp.substring(3); 
496                                locationCode =""; 
497                            }                             
498 
499                            $('.jn-button').removeAttr('disabled'); 
500                            $('.jn-button').removeClass('jn-disabled'); 
501                            jQuery('#oadSecButton').on('click', function(e) { 
502                                jQuery('#BAAForm').submit(); 
503                            }); 
504                             
505                            jQuery('#BAAForm').on('submit', function(e){ 
506                                e.preventDefault(); 
507                                console.log('in custom submit'); 
508                                var xmlData; 
509                                if(ameriprise == "yes") { 
510                                    xmlData = '<?xml version="1.0"?>'+ 
511                                        "<prefillData>"+  
512                                        "<versionNumber>1.0</versionNumber>"+  
513                                        "<applicationData>"+  
514                                        "<referral>" +  
515                                        "<employeeId>" + eidAmp + "</employeeId>" + 
516                                        "<storeNumber>"+"${bName!'0'}"+"</storeNumber>"+ 
517                                        "<divisionNumber></divisionNumber>"+ 
518                                        "</referral>" +  
519                                        "<bankerInformation>"+  
520                                        "<locationCode>" + locationCode + "</locationCode>"+ 
521                                        "<originatingBranchNumber>"+"${bName!'0'}"+"</originatingBranchNumber>"+ 
522                                        "<employeeID>${boeid!0}</employeeID>"+ 
523                                        "<name>" + 
524                                        "<first>${bFName!'0'}</first>" + 
525                                        "<last>${bLName!'0'}</last>" + 
526                                        "</name>"+ 
527                                        "<phone>"+ 
528                                        "<areaCode>"+areaCode+"</areaCode>"+  
529                                        "<exchange>"+exchangeCode+"</exchange>"+ 
530                                        "<number>"+num+"</number>"+  
531                                        "</phone>"+  
532                                        "</bankerInformation>"+  
533                                        "</applicationData>"+  
534                                        "</prefillData>" 
535                                } else { 
536                                    xmlData = '<?xml version="1.0"?>'+ 
537                                        "<prefillData>"+  
538                                        "<versionNumber>1.0</versionNumber>"+  
539                                        "<applicationData>"+  
540                                        "<bankerInformation>"+  
541                                        "<locationCode>" + locationCode + "</locationCode>"+ 
542                                        "<originatingBranchNumber>"+"${bName!'0'}"+"</originatingBranchNumber>"+ 
543                                        "<employeeID>${boeid!0}</employeeID>"+ 
544                                        "<name>" + 
545                                        "<first>${bFName!'0'}</first>" + 
546                                        "<last>${bLName!'0'}</last>" + 
547                                        "</name>"+ 
548                                        "<phone>"+ 
549                                        "<areaCode>"+areaCode+"</areaCode>"+  
550                                        "<exchange>"+exchangeCode+"</exchange>"+ 
551                                        "<number>"+num+"</number>"+  
552                                        "</phone>"+  
553                                        "</bankerInformation>"+  
554                                        "</applicationData>"+  
555                                        "</prefillData>" 
556                                }                                 
557                                jQuery('#appDataBAA').val(xmlData); 
558                                var buttonName = jQuery('.jn-button').data('button-name'); 
559                                /* SiteCatalyst  onClick tracking */ 
560                                utag_data.apply_button = buttonName; 
561                                AUI().ready(function() { 
562                                    if (window.publisherFW) { 
563                                        window.publisherFW.publishEvent("onClick", utag_data); 
564
565                                }); 
566 
567                                this.submit(); 
568                            }); 
569                            var regex = /\d+/g; 
570                            var bdNumber = "${bPhone!''}"; 
571                            var phoneNum = bdNumber.match(regex); 
572                            var areaCode = ""; 
573                            var exchangeCode = ""; 
574                            var num = ""; 
575                            if(phoneNum != null) { 
576                                phoneNum = phoneNum.join(""); 
577                                areaCode = phoneNum.substring(0,3); 
578                                exchangeCode = phoneNum.substring(3,6); 
579                                num = phoneNum.substring(6,10); 
580
581                            var product = ""; 
582                            switch(page) { 
583                                case "consumer-platinum": 
584                                    product="Platinum Card" 
585                                    break; 
586                                case "real-rewards": 
587                                    product="Real Rewards Card" 
588                                    break; 
589                                case "secured": 
590                                    product="Secured Card" 
591                                    break; 
592                                case "business-cashback": 
593                                    product="Business Cash Card" 
594                                    break; 
595                                case "business-real-rewards": 
596                                    product="Business Real Rewards Card" 
597                                    break; 
598                                case "business-rewards-plus": 
599                                    product="Business Rewards PLUS Card" 
600                                    break; 
601                                case "premier-visa-signature": 
602                                    product="Premier Visa Signature Card" 
603                                    break; 
604                                case "visa-signature": 
605                                    product="Visa Signature Card" 
606                                    break;                                     
607                                default:   
608                                    product = "All Cards";                           
609                            }                                  
610                                 
611                            /* update SiteCatalyst data object */ 
612                            utag_data.current_page = "microsite:${partnerName}:" + domain + ':' + page.replace('-',' '); 
613                            utag_data.location_code = '${rlc!0}'; 
614                            utag_data.product = product; 
615                            utag_data.site_section = 'credit cards'; 
616                            utag_data.platform = 'microsite'; 
617                            utag_data.partner_name = "${partnerName}"; 
618                            utag_data.Banker_id = '${boeid}'; 
619                            utag_data.Banker_code = '${bCode}'; 
620                            utag_data.visitor_type = 'prospect'; 
621                            utag_data.text_to_apply_source = '${text_to_apply_source}'; 
622                            utag_data.page_type = 'product';  
623                            utag_data.campaign_id = '${campaignId}';  
624 
625                                 
626                            }); 
627                    </script> 
628                    <script async> 
629                        function learnmore(e) { 
630                            e.preventDefault(); 
631                            var element = document.getElementById("more"); 
632                            element.scrollIntoView({behavior: 'smooth'}); 
633
634                    </script>                     
635                <#else> 
636                    <script> 
637                        console.log("FI Cards Data empty"); 
638                        //location.href = '${url404}'; 
639                    </script> 
640                </#if>   
641            <#else> 
642                <script> 
643                    console.log("not Tier1 Fi"); 
644                    //location.href = '${url404}'; 
645                </script> 
646            </#if>                   
647        <#else> 
648            <script> 
649                console.log("Fi opt-out"); 
650                //location.href = '${url404}'; 
651            </script> 
652        </#if>        
653    <#else> 
654        <script> 
655            console.log("client profile empty"); 
656            //location.href = '${url404}'; 
657        </script> 
658    </#if>   
659 
660</#if> 

Crea/Mostra Contenuto

Si è verificato un errore nell'elaborarazione del modello.
Expression qstringmap["bankercode"] is undefined on line 5, column 17 in 10154#10192#153411723.
1<#assign url = request.attributes.CURRENT_URL > 
2<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
3<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
4 
5<#assign bCode= qstringmap["bankercode"]?first> 
6<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
7<#list bData as b>      
8    <#assign lc = b.locationcode > 
9    <#assign rLC = b.reallocationcode > 
10    <#assign mappedLC = b.mappedLocationCode > 
11</#list>  
12<#if bCode?starts_with("amp") && (url?contains("11t1m"))> 
13    <#assign ameriprise = true> 
14<#else> 
15    <#assign ameriprise = false> 
16</#if> 
17<#if mappedLC?has_content && !ameriprise> 
18    <#assign lc = mappedLC > 
19</#if> 
20 
21<#assign prefix = "00000" > 
22<#assign lcWithPrefix = prefix + lc > 
23<#assign withPrefixLength = lcWithPrefix?length > 
24<#assign startHere = withPrefixLength - 5> 
25<#assign lc = lcWithPrefix?substring(startHere)> 
26<#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
27<#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
28 
29<#assign clientProfile = clientProfileList?first>  
30<#assign partnerName=clientProfile.getMarketingNameLong()> 
31 
32 
33<div class="content-container" title="${partnerName} - Disclaimer"> 
34    <div class="jn-disclaimer tier3-disclaimer-${class.getData()}"> 
35        ${content.getData()} 
36    </div> 
37</div> 

Crea/Mostra Contenuto

Si è verificato un errore nell'elaborarazione del modello.
Expression qstringmap["bankercode"] is undefined on line 5, column 17 in 10154#10192#153411729.
1<#assign url = request.attributes.CURRENT_URL > 
2<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
3<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
4 
5<#assign bCode= qstringmap["bankercode"]?first> 
6<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
7<#list bData as b>      
8    <#assign lc = b.locationcode > 
9    <#assign rLC = b.reallocationcode > 
10    <#assign mappedLC = b.mappedLocationCode > 
11</#list>  
12<#if bCode?starts_with("amp") && (url?contains("11t1m"))> 
13    <#assign ameriprise = true> 
14<#else> 
15    <#assign ameriprise = false> 
16</#if> 
17<#if mappedLC?has_content && !ameriprise> 
18    <#assign lc = mappedLC > 
19</#if> 
20 
21<#if lc?has_content> 
22    <#assign prefix = "00000" > 
23    <#assign lcWithPrefix = prefix + lc > 
24    <#assign withPrefixLength = lcWithPrefix?length > 
25    <#assign startHere = withPrefixLength - 5> 
26    <#assign lc = lcWithPrefix?substring(startHere)> 
27 
28   <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
29   <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
30   <#if clientProfileList?first?has_content> 
31      <#assign clientProfile = clientProfileList?first> 
32      <#assign pbu = clientProfile.getPbu()> 
33      <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
34      <#assign partnerName=clientProfile.getMarketingNameLong()> 
35      <#assign clientDataService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcPbuLocalService") > 
36      <#assign clientProfileDataList = clientDataService.getByPbuAndSubBu(pbu,subbu)> 
37      <#assign partnerUrl = clientProfileDataList.getPartnerMainUrl()> 
38      <#if partnerUrl?has_content && !partnerUrl?matches(r"(?i)^https?\:\/\/.*") && !partnerUrl?matches(r"(?i)^https?\:&#x2F;&#x2F;.*")> 
39          <#assign partnerUrl = 'https://' + partnerUrl> 
40      </#if> 
41  </#if> 
42<div id="footerIdAdPlatinum"> 
43    ${footerContent.getData()} 
44</div> 
45<#if ameriprise> 
46  <script> 
47          document.querySelector('#footerIdAdPlatinum .copyright').classList.add('ecdma-footer-client-name-copyright'); 
48          document.querySelector('#footerIdAdPlatinum .fdic').innerHTML = '<p><a class="text-color-white" href="https://login.elancreditcard.com/onlineCard/publicPrivacyPolicy.do?loc=18598" target="_blank">Privacy and Security</a></p>'; 
49  </script> 
50 
51<#else> 
52    <script>                 
53            document.querySelector('#footerIdAdPlatinum .copyright').classList.add('ecdma-footer-client-name-copyright'); 
54            document.querySelector('#footerIdAdPlatinum .fdic').innerHTML = "<p><a class='text-color-white' href='https://www.myaccountaccess.com/onlineCard/publicPrivacyPolicy.do?loc=${lc!0}' target='_blank'>Privacy and Security</a></p>"; 
55            var newNode = document.createElement("div");  
56            newNode.classList.add("member-agreement"); 
57            newNode.innerHTML='<p><a class="text-color-white" href="https://online1.elancard.com/oad/cmas.controller?locationCode=${lc!0}&preparerType=customer&isNewRequest=false" target="_blank">Cardmember Agreements</a></p>'; 
58            var fdicNode = document.querySelector('#footerIdAdPlatinum .fdic'); 
59            var parent = fdicNode.parentNode; 
60            parent.insertBefore(newNode, fdicNode); 
61    </script> 
62    <#if partnerUrl?has_content> 
63        <script> 
64            document.querySelector('#footerIdAdPlatinum .copyright .homelink').innerHTML="<a class='text-color-white' href='${partnerUrl!''}' title='${partnerName!''}' target='_blank'>Home</a>"; 
65        </script> 
66    </#if> 
67  </#if> 
68</#if>