1 2 3 4 5 6 7<!DOCTYPE html> 8<html> 9<head> 10 <title>Blog</title> 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 68 69 70 71 72 73 74 75 76 77 78 79 80 <meta name="google" content="notranslate"> 81 82 83 <link rel="canonical" href="https://www.loss2profit.com/blog" /> 84 85 86 87<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> 88<link rel="icon" href="/favicon.ico" type="image/x-icon"> 89 90 91 92 93 94 95 96
96<script>var orgCountry = "IN";</script>
96 97 98 99 100 101<link id="theme" href="https://d502jbuhuh9wk.cloudfront.net/resources/themes/default/spectre.min.css" rel="stylesheet"> 102 103<link rel="preconnect" href="https://fonts.googleapis.com"> 104<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> 105 106<link rel="preload" href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined" as="style" onload="this.onload=null;this.rel='stylesheet'"> 107<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined" ></noscript> 108 109<link rel="preload" href="https://d502jbuhuh9wk.cloudfront.net/resources/css/intlTelInput.css?v=1" as="style" onload="this.onload=null;this.rel='stylesheet'"> 110<noscript><link rel="stylesheet" href="https://d502jbuhuh9wk.cloudfront.net/resources/css/intlTelInput.css?v=1" ></noscript> 111 112<link rel="preload" href="https://d502jbuhuh9wk.cloudfront.net/fontawesome/css/all.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'"> 113<noscript><link rel="stylesheet" href="https://d502jbuhuh9wk.cloudfront.net/fontawesome/css/all.min.css" ></noscript> 114 115<link id="theme-exp" href="https://d502jbuhuh9wk.cloudfront.net/resources/themes/default/spectre-exp.min.css" rel="stylesheet"> 116 117 118 119 120 <link href="https://d502jbuhuh9wk.cloudfront.net/staticfiles/resources/stylesheets/sstyles_0f8f8346b730ed7f9d44d25335e652c6.css" rel="stylesheet"> 121 <link rel="stylesheet" href="https://d502jbuhuh9wk.cloudfront.net/staticfiles/resources/stylesheets/sstore_052a28d8fc16dab749345a09dfcd63bf.css"/> 122 123 <link rel="stylesheet" href="https://d502jbuhuh9wk.cloudfront.net/resources/stylesheets/gtheme3.css?v=7"/> 124 125 <style type="text/css"> 126 #loginLoader{ 127 position: absolute; 128 left: 0; 129 right: 0; 130 margin-left: auto; 131 margin-right: auto; 132 width: 100px; 133 top: 50%; 134 } 135 .customSocialBtn { 136 display: flex; 137 white-space: nowrap; 138 justify-content: center; 139 align-items: center; 140 padding: 11px 67px; 141 position: static; 142 left: 0px; 143 top: 40px; 144 cursor: pointer; 145 margin: auto; 146 border: none; 147 gap: 10px; 148 /*width: 364px; 149 height: 48px; 150 background: #000000; */ 151 /*For New Button Remove Bellow Codes and Uncomment upper Code */ 152 background: white; 153 border-radius: 4px; 154 box-shadow: 0 2px 4px 0 rgb(0 0 0 / 25%); 155 width: 245px; 156 height: 40px; 157 } 158 159 .customSocialBtn img.icon { 160 height: 20px; 161 width: 20px; 162 } 163 .customSocialBtn span.buttonText { 164 font-style: normal; 165 font-weight: 900; 166 font-size: 16px; 167 line-height: 120%; 168 opacity: 0.9; 169 font-family: 'Roboto', sans-serif; 170 /* color: #F7F7F7; */ 171 /*For New Button Remove Bellow Codes and Uncomment upper Code */ 172 color: #808080; 173 } 174 </style> 175 176 177 178 179 180 <style type="text/css"> 181 182 .main.container { margin-top: calc(var(--headerHeight) + 25px); } 183 184 </style> 185 186 187 188 189 190 <style type="text/css"> 191 footer a, footer+div a { 192 color: var(--footerTextColor) !important; 193 } 194 footer .socialIcons {text-align: right;} 195 @media (max-width: 600px) { 196 footer .linksCont a { display: block !important; } 197 footer .socialIcons {text-align: center;margin-top: 20px;} 198 } 199 </style> 200 201 202 203 204 205 206 207<style type="text/css"> 208 :root { 209 --themeColor: #5755d9; 210 --themeBGColor: #fff; 211 --headerHeight: 80px; 212 --headerTextColor: #edebe9; 213 --headerBGColor: #333333; 214 --footerTextColor: #FAF0F0; 215 } 216 217 218 :root { 219 --themeColor: #317AE7; 220 --themeBGColor: #EFF5FE; 221 --themeCornerRadius: 25px; 222 --themeGrayColor: #F5F5F5; 223 } 224 225</style> 226 227<style type="text/css"> 228 .is-overlay-bg { 229 opacity: 1; 230} 231 @media (max-width: 760px){ 232.whatsapp-widget-container { 233 width: 60px; 234 bottom: 90px; 235 display: flex !important; 236 } 237} 238 239 240</style> 241 242 243 244 <!-- Facebook Pixel Code --> 245
245<script>
vendor: 426 bytes, lines 245-254
245 246 !function(f,b,e,v,n,t,s) 247 {if(f.fbq)return;n=f.fbq=function(){n.callMethod? 248 n.callMethod.apply(n,arguments):n.queue.push(arguments)}; 249 if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; 250 n.queue=[];t=b.createElement(e);t.async=!0; 251 t.src=v;s=b.getElementsByTagName(e)[0]; 252 s.parentNode.insertBefore(t,s)}(window, document,'script', 253 'https://connect.facebook.net/en_US/fbevents.js'); 254 fbq('init', '
254853127119593297
vendor: 34 bytes, lines 254-256
254'); 255 fbq('track', 'PageView'); 256
256</script>
256 257 <noscript><img height="1" width="1" style="display:none" 258 src="https://www.facebook.com/tr?id=853127119593297&ev=PageView&noscript=1" 259 /></noscript> 260 <!-- End Facebook Pixel Code --> 261 262
263<script type="text/javascript"> 264 window.onload = function(event) { 265 document.querySelectorAll('header .avatar img').forEach(function(img){ 266 if(img.naturalWidth == 0) { 267 img.style.display='none'; 268 } 269 }) 270 }; 271 var RESCDN = "https://d502jbuhuh9wk.cloudfront.net"; 272 273 function showCourseDefaultCover(img, cid) { 274 var rndm = ((parseInt(cid.replace(/[a-z]/g, '')) % 10) % 6) + 1; 275 rndm = isNaN(rndm) ? 1 : rndm; 276 if(img === null) { 277 return RESCDN + "/resources/images/cc"+rndm+".jpg"; 278 } 279 280 img.src = RESCDN + "/resources/images/cc"+rndm+".jpg"; 281 } 282</script>
282 283 284 285 286 287 288 289 290 291 292 293 294
295<script type="text/javascript">var learnerConsentMsg = `We've updated our <a href='/termsofuse' target='_blank' style='text-decoration:underline'>terms and conditions</a> and <a href='/privacy-policy' target='_blank' style='text-decoration:underline'>privacy policy</a>.<br>By proceeding, you agree to our new terms.`;</script>
295 296
297<script type="text/javascript">var creatorConsentMsg = `We've updated our <a href='https://graphy.com/legal/terms' target='_blank' style='text-decoration:underline'>terms and conditions</a> and <a href='https://graphy.com/legal/privacy' target='_blank' style='text-decoration:underline'>privacy policy</a>.<br>By proceeding, you agree to our new terms.`;</script>
297 298
299<script type="text/javascript">var cookieMsg = `We use cookies to personalise your experience and to analyse our website traffic. By continuing to use our website, you consent to our cookies.`;</script>
299 300 301 302 303 304 305
306<script type="text/template" id="consentPromptTemplate"> 307<div class="spectre"> 308 <div class="modal active" id="consentPrompt"> 309 <a href="javascript:void(0);" class="modal-overlay" aria-label="Close"></a> 310 <div class="modal-container" style="max-width:325px"> 311 <div class="modal-header" style="padding:0.8rem 0.8rem 0px 0.8rem;"> 312 <div class="modal-title h5 text-center">Updated Terms</div> 313 </div> 314 <div class="modal-body"> 315 316 <form id="consentForm" style="text-align:center; font-size:13px"> 317 <div class="content"></div><br> 318 <div class="text-center"> 319 <button id="consentBtn" type="button" class="btn close btn-primary">I Agree</button> 320 </div> 321 </form> 322 323 </div> 324 </div> 325</div> 326</script>
326 327 328
329<script> 330 var hideCookiePopup = false; 331 var cookieConsentEnabled = false; 332 if(!cookieConsentEnabled){ 333 hideCookiePopup = true; 334 } 335 var SPORG = {subscriptionPlan: "rise", checkout_version: "2", customer_type: "r"}; 336</script>
vendor: 1 bytes, line 336
336
337<script type="text/template" id="cookiePopupTemplate"> 338<div class="spectre" style="position: fixed; bottom: 0; width: 100%; opacity:1; z-index: 9999;"> 339 <div class="modal-container p-0" id="cookiePopup"> 340 <form id="cookiePopupForm"> 341 <div class="columns" style="align-items: center;"> 342 <div class="column col-sm-12 content text-center"></div> 343 <div class="column col-sm-12 text-center"> 344 <a href="/privacy-policy" class="btn" target="_blank" id="viewPrivacyPolicyBtn" style="margin-right:15px;">View privacy policy</a> 345 <button id="acceptCookiesBtn" type="button" class="btn close btn-primary">Accept cookies</button> 346 </div> 347 </div> 348 </form> 349 </div> 350</div> 351</script>
351 352 353 354 355 356 357 358
358<script>
vendor: 399 bytes, lines 358-367
358 359!function(f,b,e,v,n,t,s) 360{if(f.fbq)return;n=f.fbq=function(){n.callMethod? 361n.callMethod.apply(n,arguments):n.queue.push(arguments)}; 362if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; 363n.queue=[];t=b.createElement(e);t.async=!0; 364t.src=v;s=b.getElementsByTagName(e)[0]; 365s.parentNode.insertBefore(t,s)}(window, document,'script', 366'https://connect.facebook.net/en_US/fbevents.js'); 367fbq('init', '
3673239484346346565
vendor: 30 bytes, lines 367-368
367'); 368fbq('track', 'PageView');
369</script>
369 370<noscript><img height="1" width="1" style="display:none" 371src="https://www.facebook.com/tr?id=3239484346346565&ev=PageView&noscript=1" 372/></noscript> 373 374 375 376 377 378 379 380 381 382 383 384 385 386<!-- Google Tag Manager -->
387<script>
vendor: 327 bytes, lines 387-391
387(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 388new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 389j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 390'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 391})(window,document,'script','dataLayer','
391GTM-KW7N9P2
vendor: 4 bytes, line 391
391');
392</script>
392 393<!-- End Google Tag Manager --> 394 395
395<script defer type="text/javascript" src="https://api.pirsch.io/pirsch-extended.js" 396 id="pirschextendedjs" 397 data-code="tvjyRxwUriCzlNT6imNV2oiinXj5ED1N"></script>
397 398 399 400
401<script type="text/javascript">window.NREUM||(NREUM={});NREUM.info={"errorBeacon":"bam.nr-data.net","licenseKey":"NRJS-3c5e94b79297c3f66ad","agent":"","beacon":"bam.nr-data.net","applicationTime":171,"applicationID":"1108160141","transactionName":"Y1RVZkAHVhIHBUZfWVoeZEJAD1YGJQlcQkRbXVtXQElaDQkBEh5xcWUe","queueTime":0}; 402(window.NREUM||(NREUM={})).init={privacy:{cookies_enabled:true},ajax:{deny_list:["bam.nr-data.net"]},distributed_tracing:{enabled:true}};(window.NREUM||(NREUM={})).loader_config={agentID:"1134555315",accountID:"3033394",trustKey:"3033394",xpid:"VwYEUlVaDBABVVFaBgcHV1AA",licenseKey:"NRJS-3c5e94b79297c3f66ad",applicationID:"1108160141",browserID:"1134555315"};;/*! For license information please see nr-loader-spa-1.322.0.min.js.LICENSE.txt */ 403(()=>{var e={8122(e,t,r){"use strict";r.d(t,{a:()=>i});var n=r(944);function i(e,t){try{if(!e||"object"!=typeof e)return(0,n.R)(3);if(!t||"object"!=typeof t)return(0,n.R)(4);const r=Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),s=0===Object.keys(r).length?e:r;for(let a in s)if(void 0!==e[a])try{if(null===e[a]){r[a]=null;continue}Array.isArray(e[a])&&Array.isArray(t[a])?r[a]=Array.from(new Set([...e[a],...t[a]])):e[a]instanceof Map||e[a]instanceof Set||e[a]instanceof Date||e[a]instanceof RegExp?r[a]=e[a]:"object"==typeof e[a]&&null!==t[a]&&"object"==typeof t[a]?r[a]=i(e[a],t[a]):r[a]=e[a]}catch(e){r[a]||(0,n.R)(1,e)}return r}catch(e){(0,n.R)(2,e)}}},2555(e,t,r){"use strict";r.d(t,{f:()=>a});var n=r(384),i=r(8122);const s={beacon:n.NT.beacon,errorBeacon:n.NT.errorBeacon,licenseKey:void 0,applicationID:void 0,sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,jsAttributes:{},userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0};function a(e){try{return!!e.licenseKey&&!!e.errorBeacon&&!!e.applicationID}catch(e){return!1}}r.d(t,["D",0,e=>(0,i.a)(e,s)])},7699(e,t,r){"use strict";var n=r(860);const i={[n.K7.logging]:!0,[n.K7.genericEvents]:!0,[n.K7.jserrors]:!0,[n.K7.ajax]:!0};r.d(t,["It",0,1e6,"KC",0,i,"qh",0,"SESSION_ERROR"])},9324(e,t,r){"use strict";r.d(t,["A",0,"@newrelic/rrweb","x",0,"1.322.0"])},981(e,t,r){"use strict";r.d(t,["R",0,{AJAX:"AjaxRequest",PA:"PageAction",UA:"UserAction",BP:"BrowserPerformance",WS:"WebSocket",SPV:"SecurityPolicyViolation",JSE:"JavaScriptError",LOG:"Log",PVE:"PageView",PVT:"PageViewTiming",SR:"SessionReplay",ST:"SessionTrace",BI:"BrowserInteraction"}])},9752(e,t,r){"use strict";const n="newrelic-iframe-",i=n+"timing-update",s=n+"api",a=n+"api-response",o=n+"vitals-update",c=n+"ajax";r.d(t,["$8",0,o,"Gi",0,a,"KU",0,c,"Pl",0,n,"cS",0,s,"cr",0,i])},6154(e,t,r){"use strict";var n=r(1863);const i="undefined"!=typeof window&&!!window.document,s="undefined"!=typeof WorkerGlobalScope&&("undefined"!=typeof self&&self instanceof WorkerGlobalScope&&self.navigator instanceof WorkerNavigator||"undefined"!=typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis.navigator instanceof WorkerNavigator),a=i?window:"undefined"!=typeof WorkerGlobalScope&&("undefined"!=typeof self&&self instanceof WorkerGlobalScope&&self||"undefined"!=typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis),o=Boolean("hidden"===a?.document?.visibilityState),c=""+a?.location,d=/iPad|iPhone|iPod/.test(a.navigator?.userAgent),u=d&&"undefined"==typeof SharedWorker,l=(()=>{const e=a.navigator?.userAgent?.match(/Firefox[/\s](\d+\.\d+)/);return Array.isArray(e)&&e.length>=2?+e[1]:0})(),f=Date.now()-(0,n.t)();r.d(t,["OF",0,d,"RI",0,i,"WN",0,f,"bv",0,s,"gm",0,a,"lR",0,l,"m",0,c,"mw",0,o,"sb",0,u,"zk",0,()=>{const e=a?.performance?.getEntriesByType?.("navigation")?.[0];if(e&&e.responseStart>0&&e.responseStart<a.performance.now())return e}])},7295(e,t,r){"use strict";r.d(t,{Xv:()=>a,gX:()=>i,iW:()=>s});var n=[];function i(e){if(!e||s(e))return!1;if(0===n.length)return!0;if("*"===n[0].hostname)return!1;for(var t=0;t<n.length;t++){var r=n[t];if(r.hostname.test(e.hostname)&&r.pathname.test(e.pathname))return!1}return!0}function s(e){return void 0===e.hostname}function a(e){if(n=[],e&&e.length)for(var t=0;t<e.length;t++){let r=e[t];if(!r)continue;if("*"===r)return void(n=[{hostname:"*"}]);0===r.indexOf("http://")?r=r.substring(7):0===r.indexOf("https://")&&(r=r.substring(8));const i=r.indexOf("/");let s,a;i>0?(s=r.substring(0,i),a=r.substring(i)):(s=r,a="*");let[c]=s.split(":");n.push({hostname:o(c),pathname:o(a,!0)})}}function o(e,t=!1){const r=e.replace(/[.+?^${}()|[\]\\]/g,e=>"\\"+e).replace(/\*/g,".*?");return new RegExp((t?"^":"")+r+"$")}},3241(e,t,r){"use strict";r.d(t,{W:()=>i});var n=r(6154);function i(e={}){try{n.gm.dispatchEvent(new CustomEvent("newrelic",{detail:e}))}catch(e){}}},1687(e,t,r){"use strict";r.d(t,{Ak:()=>o,Ze:()=>d,x3:()=>c});var n=r(3241),i=r(3606),s=r(860),a=r(2646);function o(e,t){if(!e)return;const r={staged:!1,priority:s.P3[t]||0};
403e.runtime.drainRegistry.get(t)||e.runtime.drainRegistry.set(t,r)}function c(e,t){if(!e)return;const r=e.runtime.drainRegistry;r&&(r.get(t)&&r.delete(t),l(e,t,!1),r.size&&u(e))}function d(e,t="feature",r=!1){if(e){if(!e.runtime.drainRegistry.get(t)||r)return l(e,t);e.runtime.drainRegistry.get(t).staged=!0,u(e)}}function u(e){if(!e)return;const t=Array.from(e.runtime.drainRegistry);t.every(([e,t])=>t.staged)&&(t.sort((e,t)=>e[1].priority-t[1].priority),t.forEach(([t])=>{e.runtime.drainRegistry.delete(t),l(e,t)}))}function l(e,t,r=!0){if(!e)return;const s=e.ee,o=i.i.handlers;if(s&&!s.aborted&&s.backlog&&o){if((0,n.W)({type:"lifecycle",name:"drain",feature:t}),r){const e=s.backlog[t],r=o[t];if(r){for(let t=0;e&&t<e.length;++t)f(e[t],r);Object.entries(r).forEach(([e,t])=>{Object.values(t||{}).forEach(t=>{t[0]?.on&&t[0].context()instanceof a.y&&!t[0].listeners(e).includes(t[1])&&t[0].on(e,t[1])})})}}s.isolatedBacklog||delete o[t],s.backlog[t]=null,s.emit("drain-"+t,[])}}function f(e,t){var r=e[1];Object.values(t[r]||{}).forEach(t=>{var r=e[0];if(t[0]===r){var n=t[1],i=e[3],s=e[2];n.apply(i,s)}})}},7836(e,t,r){"use strict";var n=r(384),i=r(8990),s=r(2646),a=r(5607);const o="nr@context:".concat(a.W),c=function e(t,r){var n={},a={},u={},l=!1;try{l=16===r.length&&d.initializedAgents?.[r]?.runtime.isolatedBacklog}catch(e){}var f={on:p,addEventListener:p,removeEventListener:function(e,t){var r=n[e];if(!r)return;for(var i=0;i<r.length;i++)r[i]===t&&r.splice(i,1)},emit:function(e,r,n,i,s){!1!==s&&(s=!0);if(c.aborted&&!i)return;t&&s&&t.emit(e,r,n);var o=h(n);g(e).forEach(e=>{e.apply(o,r)});var d=v()[a[e]];d&&d.push([f,e,r,o]);return o},get:m,listeners:g,context:h,buffer:function(e,t){const r=v();if(t=t||"feature",f.aborted)return;Object.entries(e||{}).forEach(([e,n])=>{a[n]=t,t in r||(r[t]=[])})},abort:function(){f._aborted=!0,Object.keys(f.backlog).forEach(e=>{delete f.backlog[e]})},isBuffering:function(e){return!!v()[a[e]]},debugId:r,backlog:l?{}:t&&"object"==typeof t.backlog?t.backlog:{},isolatedBacklog:l};return Object.defineProperty(f,"aborted",{get:()=>{let e=f._aborted||!1;return e||(t&&(e=t.aborted),e)}}),f;function h(e){return e&&e instanceof s.y?e:e?(0,i.I)(e,o,()=>new s.y(o)):new s.y(o)}function p(e,t){n[e]=g(e).concat(t)}function g(e){return n[e]||[]}function m(t){return u[t]=u[t]||e(f,t)}function v(){return f.backlog}}(void 0,"globalEE"),d=(0,n.Zm)();d.ee||(d.ee=c),r.d(t,["P",0,o,"ee",0,c])},2646(e,t,r){"use strict";r.d(t,{y:()=>n});class n{constructor(e){this.contextId=e}}},9908(e,t,r){"use strict";r.d(t,{d:()=>n,p:()=>i});var n=r(7836).ee.get("handle");function i(e,t,r,i,s){s?(s.buffer([e],i),s.emit(e,t,r)):(n.buffer([e],i),n.emit(e,t,r))}},3606(e,t,r){"use strict";r.d(t,{i:()=>s});var n=r(9908);s.on=a;var i=s.handlers={};function s(e,t,r,s){a(s||n.d,i,e,t,r)}function a(e,t,r,i,s){s||(s="feature"),e||(e=n.d);var a=t[s]=t[s]||{};(a[r]=a[r]||[]).push([e,i])}},3878(e,t,r){"use strict";function n(e,t){return{capture:e,passive:!1,signal:t}}function i(e,t,r=!1,i){window.addEventListener(e,t,n(r,i))}function s(e,t,r=!1,i){document.addEventListener(e,t,n(r,i))}r.d(t,{DD:()=>s,jT:()=>n,sp:()=>i})},5607(e,t,r){"use strict";const n=(0,r(9566).bz)();r.d(t,["W",0,n])},9566(e,t,r){"use strict";r.d(t,{LA:()=>a,ZF:()=>o,bz:()=>s,el:()=>c});var n=r(6154);function i(e,t){return e?15&e[t]:16*Math.random()|0}function s(){const e=n.gm?.crypto||n.gm?.msCrypto;let t,r=0;return e&&e.getRandomValues&&(t=e.getRandomValues(new Uint8Array(30))),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".split("").map(e=>"x"===e?i(t,r++).toString(16):"y"===e?(3&i()|8).toString(16):e).join("")}function a(e){const t=n.gm?.crypto||n.gm?.msCrypto;let r,s=0;t&&t.getRandomValues&&(r=t.getRandomValues(new Uint8Array(e)));const a=[];for(var o=0;o<e;o++)a.push(i(r,s++).toString(16));return a.join("")}function o(){return a(16)}function c(){return a(32)}},2614(e,t,r){"use strict";r.d(t,["BB",0,18e5,"Wt",0,"NRBA_SESSION::","g",0,{OFF:0,FULL:1,ERROR:2},"iL",0,{SAME_TAB:"same-tab",CROSS_TAB:"cross-tab"},"tS",0,{STARTED:"session-started",PAUSE:"session-pause",RESET:"session-reset",RESUME:"session-resume",UPDATE:"session-update"},"wk",0,144e5])},733(e,t,r){"use strict";function n(e,t){return function(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=Math.imul(t,16777619);return(t>>>0).toString(16).padStart(8,"0")}("".concat(String(e),":").concat(String(t)))}r.d(t,{Y:()=>n})},1863(e,t,r){"use strict";function n(){return Math.floor(performance.now())}r.d(t,{t:()=>n})},9119(e,t,r){"use strict";r.d(t,{L:()=>s});var n=/([^?#]*)[^#]*(#[^?]*|$).*/,i=/([^?#]*)().*/;function s(e,t){return e?e.replace(t?n:i,"$1$2"):e}},7485(e,t,r){"use strict";r.d(t,{D:()=>i});var n=r(6154);function i(e){if(0===(e||"").indexOf("data:"))return{protocol:"data"};try{const t=new URL(e,location.href),r={port:t.port,hostname:t.hostname,pathname:t.pathname,search:t.search,protocol:t.protocol.slice(0,t.protocol.indexOf(":")),sameOrigin:t.protocol===n.gm?.location?.protocol&&t.host===n.gm?.location?.host};return r.port&&""!==r.port||("http:"===t.protocol&&(r.port="80"),"https:"===t.protocol&&(r.port="443")),r.pathname&&""!==r.pathname?r.pathname.startsWith("/")||(r.pathname="/".concat(r.pathname)):r.pathname="/",r}catch(e){return{}}}},7866(e,t,r){"use strict";r.d(t,["Nc",0,/^\s*at Function code \(Function code:\d+:\d+\)\s*/i,"cn",0,/^\s*(?:([^@]*)(?:\(.*?\))?@)?((?:file|http|https|chrome|safari-extension).*?):(\d+)(?::(\d+))?\s*$/i,"fL",0,/^\s*at .+ \(eval at \S+ \((?:(?:file|http|https):[^)]+)?\)(?:, [^:]*:\d+:\d+)?\)$/i,"h3",0,/function (.+?)\s*\(/,"hB",0,/^\s*at (?:((?:\[object object\])?(?:[^(]*\([^)]*\))*[^()]*(?: \[as \S+\])?) )?\(?((?:file|http|https|chrome-extension):.*?)?:(\d+)(?::(\d+))?\)?\s*$/i])},944(e,t,r){"use strict";r.d(t,{R:()=>i});var n=r(3241);function i(e,t){"function"==typeof console.debug&&(console.debug("New Relic Warning: https://github.com/newrelic/newrelic-browser-agent/blob/main/docs/warning-codes.md#".concat(e),t),(0,n.W)({drained:null,type:"data",name:"warn",feature:"warn",data:{code:e,secondary:t}}))}},8990(e,t,r){"use strict";r.d(t,{I:()=>i});var n=Object.prototype.hasOwnProperty;function i(e,t,r){if(n.call(e,t))return e[t];var i=r();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!1}),i}catch(e){}return e[t]=i,i}},6389(e,t,r){"use strict";function n(e,t=500,r={}){const n=r?.leading||!1;let i;return(...r)=>{n&&void 0===i&&(e.apply(this,r),i=setTimeout(()=>{i=clearTimeout(i)},t)),n||(clearTimeout(i),i=setTimeout(()=>{e.apply(this,r)},t))}}function i(e){let t=!1;return(...r)=>{t||(t=!0,e.apply(this,r))}}r.d(t,{J:()=>i,s:()=>n})},1910(e,t,r){"use strict";r.d(t,{i:()=>s});var n=r(944);const i=new Map;function s(...e){return e.every(e=>{if(i.has(e))return i.get(e);const t="function"==typeof e?e.toString():"",r=t.includes("[native code]"),s=t.includes("nrWrapper");return r||s||(0,n.R)(64,e?.name||t),i.set(e,r),r})}},3304(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(7836);function i(e){try{return JSON.stringify(e,(()=>{const e=new WeakSet;return(t,r)=>{if("object"==typeof r&&null!==r){if(e.has(r))return;e.add(r)}return r}})())??""}catch(e){try{n.ee.emit("internal-error",[e])}catch(e){}return""}}},9232(e,t,r){"use strict";r.d(t,["f",0,{MFE:"MFE",BA:"BA"}])},7560(e,t,r){"use strict";r.d(t,{N:()=>a,j:()=>c});var n=r(9119),i=r(944);const s=(0,r(6389).J)(e=>(0,i.R)(80,e));function a(e){if(!Array.isArray(e?.assets)||!e.assets.length)return;
403const t=e.assets.map(o).filter(Boolean);return t.length?{assets:t,scripts:t.filter(e=>e.isScript)}:void 0}function o(e){if(!e||"object"!=typeof e)return;const{matcher:t,type:r}=e;let i="string"==typeof t&&t.endsWith(".js");return void 0!==r&&(!function(e){return"script"===e||"asset"===e}(r)?s(r):i=function(e){return"script"===e}(r)),a=t,"[object RegExp]"===Object.prototype.toString.call(a)?{pattern:t,test:e=>(t.lastIndex=0,t.test((0,n.L)(e))),isScript:i}:"string"==typeof t&&t.length>0?{pattern:t,test:e=>(0,n.L)(e).includes(t),isScript:i}:void s(t);var a}function c(e,t,{scriptsOnly:r=!1}={}){if(!e||!t)return!1;return(r?e.scripts:e.assets).some(e=>e.test(t))}},5718(e,t,r){"use strict";r.d(t,{xo:()=>T,AZ:()=>v,cI:()=>g,Qr:()=>A,QL:()=>y});var n=r(6154),i=r(1863),s=r(9119),a=r(7866);class o{dom=new c;performance=new c;constructor(e){this.url=e,this.claimedBy=new Set}get script(){const e=Math.max(this.dom.start,this.performance.end);return{start:e,end:Math.max(this.dom.end,this.performance.end,e)}}}class c{start=0;end=0;value=void 0}function d(e=()=>{},t){return{get:()=>void 0!==t?t:e(),set:e=>{t=e}}}let u;try{u=v(y())[0]}catch(e){u=v(e)[0]}const l=new Map;let f=[];const h=new WeakMap;function p(e){let t=h.get(e);return t||(t={weighedAssetUrls:new Set,recordManifestScriptWindow:(t,r)=>{t&&(e.scriptStart=e.scriptStart>0?Math.min(e.scriptStart,t):t),r&&(e.scriptEnd=e.scriptEnd>0?Math.max(e.scriptEnd,r):r)}},h.set(e,t)),t}function g(e){return l.get(e)}function m(e){const t=g(e);
403if(t)return t;const r=new o(e);if(l.set(e,r),l.size>1e3){const e=l.keys().next().value;l.delete(e)}return r}if(n.gm.MutationObserver&&n.gm.document){new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{if("SCRIPT"===e.nodeName&&e.src){const t=m((0,s.L)(e.src));t.dom.start=(0,i.t)(),t.dom.value=e;const r=()=>{t.dom.end=(0,i.t)()};["load","error"].forEach(t=>e.addEventListener(t,r,{once:!0}))}})})}).observe(n.gm.document,{childList:!0,subtree:!0})}if(n.gm.PerformanceObserver?.supportedEntryTypes.includes("resource")){new PerformanceObserver(e=>{e.getEntries().forEach(e=>{if((e=>"script"===e.initiatorType||["link","fetch"].includes(e.initiatorType)&&(0,s.L)(e.name).endsWith(".js"))(e)){const t=m((0,s.L)(e.name));t.performance.start=Math.floor(e.startTime),t.performance.end=Math.floor(e.responseEnd),t.performance.value=e}if(!f.length)return;const t=[];f.forEach(({test:r,addedAt:n},s)=>{(r(e)||(0,i.t)()-n>1e4)&&t.push(s)}),f=f.filter((e,r)=>!t.includes(r))})}).observe({type:"resource",buffered:!0})}function v(e){if(!e||"string"!=typeof e)return[];const t=new Set,r=e.split("\n");for(const e of r){const r=e.match(a.cn)||e.match(a.hB)||e.match(a.fL);if(r&&r[2])t.add((0,s.L)(r[2]));else{const r=e.match(/\(([^)]+\.js):\d+:\d+\)/)||e.match(/^\s+at\s+([^\s(]+\.js):\d+:\d+/);r&&r[1]&&t.add((0,s.L)(r[1]))}}return[...t]}function y(){let e;try{const t=Error.stackTraceLimit;Error.stackTraceLimit=50,e=(new Error).stack,Error.stackTraceLimit=t}catch(t){e=(new Error).stack}return e}function b(e,t){return(0,s.L)(e.name)===t}function E(e,t){e.fetchStart=Math.floor(t.startTime),e.fetchEnd=Math.floor(t.responseEnd),e.asset=t.name,e.type=t.initiatorType,w(e,t)}function w(e,t){const r=(0,s.L)(t.name),{weighedAssetUrls:n}=p(e);n.has(r)||(n.add(r),e.totalWeight=(e.totalWeight||0)+(t.transferSize||0),"blocking"===t.renderBlockingStatus?e.renderBlocking=!0:"non-blocking"===t.renderBlockingStatus&&!0!==e.renderBlocking&&(e.renderBlocking=!1))}function R(e,t,r,n,i){if(w(e,t),"scripts"!==i&&"all"!==i)return;if("all"===i||r.isScript){const r=Math.floor(t.startTime),n=Math.floor(t.responseEnd);e.fetchStart=e.fetchStart>0?Math.min(e.fetchStart,r):r,e.fetchEnd=e.fetchEnd>0?Math.max(e.fetchEnd,n):n}if(r.isScript){const r=g((0,s.L)(t.name));if(r){const t=()=>{const{start:t,end:n}=r.script;p(e).recordManifestScriptWindow(t,n)};t(),!r.dom.end&&r.dom.value&&["load","error"].forEach(e=>r.dom.value.addEventListener(e,t,{once:!0}))}n.resolved||(e.asset=t.name,e.type=t.initiatorType,n.resolved=!0)}}function T(e,t){const r=t?.manifest;if(!r||!r.assets.length)return;const s={resolved:!1},a=new Set(r.assets);(n.gm.performance?.getEntriesByType("resource")||[]).forEach(r=>{const n=[...a].find(e=>e.test(r.name));n&&(R(e,r,n,s,t.timingMethod),a.delete(n))}),a.size&&function(e,t,r,s){n.gm.PerformanceObserver?.supportedEntryTypes?.includes("resource")&&f.push({addedAt:(0,i.t)(),test:n=>{const i=[...t].find(e=>e.test(n.name));return i&&(R(e,n,i,r,s),t.delete(i)),0===t.size}})}(e,a,s,t.timingMethod)}function A(e){const t=e?.id,r={registeredAt:(0,i.t)(),reportedAt:void 0,fetchStart:0,fetchEnd:0,scriptStart:0,scriptEnd:0,asset:void 0,type:"unknown",totalWeight:0,renderBlocking:void 0},a=y();if(!a)return r;const o=n.gm.performance?.getEntriesByType("navigation")?.[0]?.name||"";try{const e=v(a),c=(e.length>1?e.filter(e=>u!==e):e)[0];if(!c)return r;if(o.includes(c))return r.asset=(0,s.L)(o),r.type="inline",r;r.correlation=g(c);const l=r.correlation?.performance.value||n.gm.performance?.getEntriesByType("resource")?.find(e=>b(e,c));if(l)E(r,l);else{(function(e){if(!e||!n.gm.document)return!1;try{const t=n.gm.document.querySelectorAll('link[rel="preload"][as="script"]');for(const r of t)if((0,s.L)(r.href)===e)return!0}catch(e){}return!1})(c)&&(r.asset=c,r.type="preload"),function(e,t){n.gm.PerformanceObserver?.supportedEntryTypes?.includes("resource")&&f.push({addedAt:(0,i.t)(),test:r=>!!b(r,t)&&(E(e,r),!0)})}(r,c)}const h=r.correlation,m=!!t&&!!h?.claimedBy.has(t);h&&t&&h.claimedBy.add(t);const y=()=>{const e=h?.script.start;if(!m||!e)return!1;return r.registeredAt-e>1e4};let w=0,R=0;p(r).recordManifestScriptWindow=(e,t)=>{e&&(w=w>0?Math.min(w,e):e),t&&(R=R>0?Math.max(R,t):t)},Object.defineProperty(r,"scriptStart",d(()=>{const e=y()?r.registeredAt:h?.script.start??r.fetchEnd;return w>0?Math.min(e,w):e})),Object.defineProperty(r,"scriptEnd",d(()=>{const e=y()?r.registeredAt:h?.script.end??r.registeredAt;return R>0?Math.max(e,R):e}))}catch(e){}return r}},5732(e,t,r){"use strict";r.d(t,{$5:()=>m,B5:()=>g,K6:()=>u,M$:()=>
403o,Ms:()=>d,NG:()=>c,Ux:()=>h,YA:()=>p,yx:()=>l});var n=r(5718),i=r(7560),s=r(9119),a=r(9232);function o(e){return e?.type===a.f.MFE}function c(e,t){if(!y(e,t))return;const r=t.runtime.registeredEntities;return r?.find(t=>t.metadata.target.iframeInterfaceId===e)}function d(e,t){if(!y(e,t))return[];const r=t.runtime.registeredEntities;return r?.filter(t=>String(t.metadata.target.id)===String(e)).map(e=>e.metadata.target)||[]}function u(e,t){if(!y(e,t))return[];const r=t.runtime.registeredEntities,n=(0,s.L)(e),a=r?.filter(t=>{const r=t.metadata.target?.manifest;return r?(0,i.j)(r,e,{scriptsOnly:!1}):!!t.metadata.timings?.asset&&(0,s.L)(t.metadata.timings.asset)===n});return f(a).map(e=>e.metadata.target)}function l(e,t){if(!y(e,t))return[];const r=t.runtime.registeredEntities,n=r?.filter(t=>{const r=t.metadata.target?.manifest;return r?(0,i.j)(r,e,{scriptsOnly:!0}):!!t.metadata.timings?.asset?.endsWith(e)});return f(n).map(e=>e.metadata.target)}function f(e){if(!e?.length)return e||[];const t=new Map,r=[];for(const n of e){const e=n.metadata?.timings?.asset;if(!e){r.push(n);continue}const i="".concat(e,"::").concat(n.metadata?.target?.id),s=t.get(i);if(s){if(s.metadata.target?.blocked&&!n.metadata.target?.blocked){const e=r.indexOf(s);-1!==e&&(r[e]=n),t.set(i,n)}}else t.set(i,n),r.push(n)}return r}function h(e,t){return v(t)?o(e)?e.attributes:t.agentRef.runtime.v2Target.attributes:{}}function p(e,t){return g(e,t)?{"child.id":e.id,"child.type":e.type,...h(void 0,t)}:{}}function g(e,t){return o(e)&&!!v(t)&&t.agentRef.init.api.register.duplicate_data_to_container}function m(e){if(!e?.runtime)return[];if(!y(!0,e)||!e.runtime.registeredEntities?.length)return[e.runtime.v2Target];const t=[];try{var r=(0,n.AZ)((0,n.QL)());let i=r.length-1;for(;r[i];)t.push(...l(r[i--],e))}catch(e){}const i=function(e){const t=new Set,r=[];for(const n of e){const e=n?.instance;t.has(e)||(t.add(e),r.push(n))}return r}(t);return i.length||i.push(e.runtime.v2Target),i}function v(e){return 2===e?.harvestEndpointVersion}function y(e,t){return!!e&&!!t?.init.api.register.enabled}},5289(e,t,r){"use strict";r.d(t,{GG:()=>a,Qr:()=>c,sB:()=>o});var n=r(3878),i=r(6389);function s(){return"undefined"==typeof document||"complete"===document.readyState}function a(e,t){if(s())return e();const r=(0,i.J)(e),a=setInterval(()=>{s()&&(clearInterval(a),r())},500);(0,n.sp)("load",r,t)}function o(e){if(s())return e();(0,n.DD)("DOMContentLoaded",e)}function c(e){if(s())return e();(0,n.sp)("popstate",e)}},384(e,t,r){"use strict";r.d(t,{Zm:()=>c,bQ:()=>u,dV:()=>d,pV:()=>l});var n=r(6154),i=r(1863),s=r(944),a=r(1910);const o={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net"};function c(){return n.gm.NREUM||(n.gm.NREUM={}),void 0===n.gm.newrelic&&(n.gm.newrelic=n.gm.NREUM),n.gm.NREUM}function d(){let e=c();return e.o||(e.o={ST:n.gm.setTimeout,SI:n.gm.setImmediate||n.gm.setInterval,CT:n.gm.clearTimeout,XHR:n.gm.XMLHttpRequest,REQ:n.gm.Request,EV:n.gm.Event,PR:n.gm.Promise,MO:n.gm.MutationObserver,FETCH:n.gm.fetch,WS:n.gm.WebSocket},(0,a.i)(...Object.values(e.o))),e}function u(e,t){let r=c();r.initializedAgents??={},t.initializedAt={ms:(0,i.t)(),date:new Date},r.initializedAgents[e]=t,2===Object.keys(r.initializedAgents).length&&(0,s.R)(69)}function l(){return function(){let e=c();const t=e.info||{};e.info={beacon:o.beacon,errorBeacon:o.errorBeacon,...t}}(),function(){let e=c();const t=e.init||{};e.init={...t}}(),d(),function(){let e=c();const t=e.loader_config||{};e.loader_config={...t}}(),c()}r.d(t,["NT",0,o])},2843(e,t,r){"use strict";r.d(t,{G:()=>s,u:()=>i});var n=r(3878);function i(e,t=!1,r,i){(0,n.DD)("visibilitychange",function(){if(t)return void("hidden"===document.visibilityState&&e());e(document.visibilityState)},r,i)}function s(e,t,r){(0,n.sp)("pagehide",e,t,r)}},8139(e,t,r){"use strict";r.d(t,{u:()=>f});var n=r(7836),i=r(3434),s=r(8990),a=r(6154);const o={},c=a.gm.XMLHttpRequest,d="addEventListener",u="removeEventListener",l="nr@wrapped:".concat(n.P);function f(e,t){var r=function(e){return(e||n.ee).get("events")}(e);if(o[r.debugId]++)return r;o[r.debugId]=1;var f=(0,i.YM)(r,!0,t);function p(e){f.inPlace(e,[d,u],"-",g)}function g(e,t){return e[1]}return"getPrototypeOf"in Object&&(a.RI&&h(document,p),c&&h(c.prototype,p),h(a.gm,p)),r.on(d+"-start",function(e,t){var r=e[1];if(null!==r&&("function"==typeof r||"object"==typeof r)&&"newrelic"!==e[0]){var n=(0,s.I)(r,l,function(){var e={object:function(){if("function"!=typeof r.handleEvent)return;return r.handleEvent.apply(r,arguments)},function:r}[typeof r];return e?f(e,"fn-",null,e.name||"anonymous"):r});this.wrapped=e[1]=n}}),r.on(u+"-start",function(e){e[1]=this.wrapped||e[1]}),r}function h(e,t,...r){let n=e;for(;"object"==typeof n&&!Object.prototype.hasOwnProperty.call(n,d);)n=Object.getPrototypeOf(n);n&&t(n,...r)}},3434(e,t,r){"use strict";r.d(t,{YM:()=>d});var n=r(7836),i=r(5607),s=r(5732);const a="nr@original:".concat(i.W);var o=Object.prototype.hasOwnProperty,c=!1;function d(e,t,r){return e||(e=n.ee),i.inPlace=function(e,t,r,n,s,a){r||(r="");const o="-"===r.charAt(0);for(let c=0;c<t.length;c++){const d=t[c],u=e[d];l(u)||(e[d]=i(u,o?d+r:r,n,d,s,a))}},i.flag=a,i;function i(t,n,i,c,f,h){return l(t)?t:(n||(n=""),nrWrapper[a]=t,function(e,t,r){if(Object.defineProperty&&Object.keys)try{return Object.keys(e).forEach(function(r){Object.defineProperty(t,r,{get:function(){return e[r]},set:function(t){return e[r]=t,t}})}),t}catch(e){u([e],r)}for(var n in e)o.call(e,n)&&(t[n]=e[n])}
403(t,nrWrapper,e),nrWrapper);function nrWrapper(){var a,o,l,p;let g,m;try{o=this,a=[...arguments],m=h?(0,s.$5)(r):[r?.runtime?.v2Target],l="function"==typeof i?i(a,o):i||{}}catch(t){u([t,"",[a,o,c],l],e)}d(n+"start",[a,o,c,m],l,f);const v=performance.now();let y;try{return p=t.apply(o,a),y=performance.now(),p}catch(e){throw y=performance.now(),d(n+"err",[a,o,e,m],l,f),g=e,g}finally{const e=y-v,t={start:v,end:y,duration:e,isLongTask:e>=50,methodName:c,thrownError:g};t.isLongTask&&d("long-task",[t,o,m],l,f),d(n+"end",[a,o,p,m],l,f)}}}function d(r,n,i,s){if(!c||t){var a=c;c=!0;try{e.emit(r,n,i,t,s)}catch(t){u([t,r,n,i],e)}c=a}}}function u(e,t){t||(t=n.ee);try{t.emit("internal-error",e)}catch(e){}}function l(e){return!(e&&"function"==typeof e&&e.apply&&!e[a])}r.d(t,["Jt",0,a])},9300(e,t,r){"use strict";const n=r(860).K7.ajax;r.d(t,["TZ",0,n,"f5",0,"ajaxRequest.id","mo",0,{NONE:"none",FAILURES:"failures",ALL:"all"}])},3333(e,t,r){"use strict";var n=r(981);const i=r(860).K7.genericEvents,s=[n.R.PA,n.R.UA,n.R.BP];r.d(t,["$v",0,{RESOURCES:"experimental.resources",REGISTER:"register"},"TZ",0,i,"Zp",0,["auxclick","click","copy","keydown","paste","scrollend"],"kd",0,s,"qN",0,["focus","blur"]])},6774(e,t,r){"use strict";const n=r(860).K7.jserrors;r.d(t,["T",0,n])},993(e,t,r){"use strict";const n=r(860).K7.logging;r.d(t,["A$",0,{OFF:0,ERROR:1,WARN:2,INFO:3,DEBUG:4,TRACE:5},"TZ",0,n,"p_",0,{ERROR:"ERROR",WARN:"WARN",INFO:"INFO",DEBUG:"DEBUG",TRACE:"TRACE"}])},3785(e,t,r){"use strict";r.d(t,{R:()=>c,b:()=>d});var n=r(9908),i=r(1863),s=r(860),a=r(3969),o=r(993);function c(e,t,r={},c=o.p_.INFO,d=!0,u,l=(0,i.t)()){(0,n.p)(a.xV,["API/logging/".concat(c.toLowerCase(),"/called")],void 0,s.K7.metrics,e),(0,n.p)("log",[l,t,r,c,d,u],void 0,s.K7.logging,e)}function d(e){return"string"==typeof e&&Object.values(o.p_).some(t=>t===e.toUpperCase().trim())}},3969(e,t,r){"use strict";const n=r(860).K7.metrics;r.d(t,["TZ",0,n,"XG",0,"storeEventMetrics","xV",0,"storeSupportabilityMetrics"])},6630(e,t,r){"use strict";const n=r(860).K7.pageViewEvent;r.d(t,["T",0,n])},782(e,t,r){"use strict";const n=r(860).K7.pageViewTiming;r.d(t,["T",0,n])},6344(e,t,r){"use strict";var n=r(2614);const i=r(860).K7.sessionReplay,s={[n.g.ERROR]:15e3,[n.g.FULL]:3e5,[n.g.OFF]:0}
403;r.d(t,["Qb",0,{API:"api",RESUME:"resume",SWITCH_TO_FULL:"switchToFull",INITIALIZE:"initialize",PRELOAD:"preload"},"TZ",0,i,"Vh",0,"errorDuringReplay","_s",0,{DomContentLoaded:0,Load:1,FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Custom:5},"bc",0,{RESET:{message:"Session was reset",sm:"Reset"},IMPORT:{message:"Recorder failed to import",sm:"Import"},TOO_MANY:{message:"429: Too Many Requests",sm:"Too-Many"},TOO_BIG:{message:"Payload was too large",sm:"Too-Big"},CROSS_TAB:{message:"Session Entity was set to OFF on another tab",sm:"Cross-Tab"},ENTITLEMENTS:{message:"Session Replay is not allowed and will not be started",sm:"Entitlement"}},"yP",0,s])},5270(e,t,r){"use strict";r.d(t,{Aw:()=>a,SR:()=>s,rF:()=>o});var n=r(384),i=r(7767);function s(e){return!!(0,n.dV)().o.MO&&(0,i.V)(e)&&!0===e?.session_trace.enabled}function a(e){return!0===e?.session_replay.preload&&s(e)}function o(e,t){try{if("string"==typeof t?.type&&"password"===t.type.toLowerCase())return"*".repeat(e?.length||0);if(void 0!==t?.dataset?.nrUnmask||t?.classList?.contains("nr-unmask"))return e}catch(e){}return"string"==typeof e?e.replace(/[\S]/g,"*"):"*".repeat(e?.length||0)}},3738(e,t,r){"use strict";const n=r(860).K7.sessionTrace,i="-start",s="-end",a="fn"+i,o="fn"+s;r.d(t,["He",0,"bstResource","Kp",0,s,"Lc",0,o,"Rz",0,"pushState","TZ",0,n,"bD",0,"resource","bc",0,{CROSS_TAB:{message:"Session Entity was set to OFF on another tab"},ENTITLEMENTS:{message:"Session Trace is not allowed and will not be started"},RESET:{message:"Session was reset"},SESSION_CHANGED:{message:"Session identifier changed unexpectedly"}},"d3",0,i,"uP",0,a])},3962(e,t,r){"use strict";const n=r(860).K7.softNav;r.d(t,["O2",0,{INITIAL_PAGE_LOAD:"",ROUTE_CHANGE:1,UNSPECIFIED:2},"OV",0,"popstate","Qu",0,{INTERACTION:1,AJAX:2,CUSTOM_END:3,CUSTOM_TRACER:4},"TZ",0,n,"ih",0,{IP:"in progress",PF:"pending finish",FIN:"finished",CAN:"cancelled"},"pP",0,"initialPageLoad","tC",0,["click","keydown","submit"]])},4234(e,t,r){"use strict";r.d(t,{W:()=>i});var n=r(1687);class i{constructor(e,t){this.agentRef=e,this.ee=e?.ee,this.featureName=t,this.blocked=!1}deregisterDrain(){(0,n.x3)(this.agentRef,this.featureName)}}},7767(e,t,r){"use strict";var n=r(6154);r.d(t,["V",0,e=>n.RI&&!0===e?.privacy.cookies_enabled])},8362(e,t,r){"use strict";r.d(t,{d:()=>s});var n=r(9566),i=r(1741);class s extends i.W{agentIdentifier=(0,n.LA)(16)}},1741(e,t,r){"use strict";r.d(t,{W:()=>s});var n=r(944),i=r(4261);class s{#e(e,...t){if(this[e]!==s.prototype[e])return this[e](...t);(0,n.R)(35,e)}addPageAction(e,t){return this.#e(i.hG,e,t)}register(e){return this.#e(i.eY,e)}recordCustomEvent(e,t){return this.#e(i.fF,e,t)}setPageViewName(e,t){return this.#e(i.Fw,e,t)}setCustomAttribute(e,t,r){return this.#e(i.cD,e,t,r)}noticeError(e,t){return this.#e(i.o5,e,t)}setUserId(e,t=!1){return this.#e(i.Dl,e,t)}setApplicationVersion(e){return this.#e(i.nb,e)}setErrorHandler(e){return this.#e(i.bt,e)}addRelease(e,t){return this.#e(i.k6,e,t)}log(e,t){return this.#e("log",e,t)}start(){return this.#e("start")}finished(e){return this.#e(i.BL,e)}recordReplay(){return this.#e(i.CH)}pauseReplay(){return this.#e(i.Tb)}addToTrace(e){return this.#e(i.U2,e)}setCurrentRouteName(e){return this.#e(i.PA,e)}interaction(e){return this.#e(i.dT,e)}wrapLogger(e,t,r){return this.#e(i.Wb,e,t,r)}measure(e,t){return this.#e(i.V1,e,t)}consent(e){return this.#e(i.Pv,e)}}},4261(e,t,r){"use strict";r.d(t,["BL",0,"finished","CH",0,"recordReplay","Dl",0,"setUserId","Fw",0,"setPageViewName","PA",0,"setCurrentRouteName","Pv",0,"consent","Tb",0,"pauseReplay","U2",0,"addToTrace","V1",0,"measure","Wb",0,"wrapLogger","bt",0,"setErrorHandler","cD",0,"setCustomAttribute","dT",0,"interaction","eY",0,"register","fF",0,"recordCustomEvent","hG",0,"addPageAction","hw",0,"api-ixn-","k6",0,"addRelease","nb",0,"setApplicationVersion","o5",0,"noticeError"])},1738(e,t,r){"use strict";r.d(t,{U:()=>l,Y:()=>u});var n=r(3241),i=r(9908),s=r(1863),a=r(944),o=r(3969),c=r(8362),d=r(860);function u(e,t,r,s){const u=s||r;!u||u[e]&&u[e]!==c.d.prototype[e]||(u[e]=function(){(0,i.p)(o.xV,["API/"+e+"/called"],void 0,d.K7.metrics,r.ee),(0,n.W)({drained:!!r.runtime?.activatedFeatures,type:"data",name:"api",feature:"api-"+e,data:{}});try{return t.apply(this,arguments)}catch(e){(0,a.R)(23,e)}})}function l(e,t,r,n,a){const o=e.info;null===r?delete o.jsAttributes[t]:o.jsAttributes[t]=r,(a||null===r)&&(0,i.p)("api-"+n,[(0,s.t)(),t,r],void 0,"session",e.ee)}},8374(e,t,r){r.nc=(()=>{try{return document?.currentScript?.nonce}catch(e){}return""})()},860(e,t,r){"use strict";const n="events",i="jserrors",s="browser/blobs",a="browser/logs",o={ajax:"ajax",genericEvents:"generic_events",jserrors:i,logging:"logging",metrics:"metrics",pageAction:"page_action",pageViewEvent:"page_view_event",pageViewTiming:"page_view_timing",sessionReplay:"session_replay",sessionTrace:"session_trace",softNav:"soft_navigations"},c={[o.pageViewEvent]:1,[o.pageViewTiming]:2,[o.metrics]:3,[o.jserrors]:4,[o.softNav]:5,[o.ajax]:6,[o.sessionTrace]:7,[o.sessionReplay]:8,[o.logging]:9,[o.genericEvents]:10},d={[o.pageViewEvent]:"rum",[o.pageViewTiming]:n,[o.ajax]:n,[o.softNav]:n,[o.metrics]:i,[o.jserrors]:i,[o.sessionTrace]:s,[o.sessionReplay]:s,[o.logging]:a,[o.genericEvents]:"ins"};r.d(t,["$J",0,d,"K7",0,o,"P3",0,c,"XX",0,i,"Yy",0,a,"df",0,s,"hg",0,"connect"])}};const t={};function r(n){const i=t[n];if(void 0!==i)return i.exports;const s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.m=e,r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var i=t[n++],s=t[n++];r.o(e,i)?0===s&&n++:0===s?Object.defineProperty(e,i,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,i,{enumerable:!0,get:s})}else for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>({212:"nr-spa-compressor",238:"nr-spa-iframe-message-handler",249:"nr-spa-recorder",478:"nr-spa"}[e]+"-1.322.0.min.js"),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="NRBA-1.322.0.PROD:";r.l=(n,i,s,a)=>
403{if(e[n])return void e[n].push(i);let o,c;if(void 0!==s){const e=document.getElementsByTagName("script");for(var d=0;d<e.length;d++){const r=e[d];if(r.getAttribute("src")==n||r.getAttribute("data-webpack")==t+s){o=r;break}}}if(!o){c=!0;var u={478:"sha512-SARROoir04gFygxlr/+mTI+PyMeFL+epi1vnUA2G5mTQ7s3G44ItQBJKbOaIMdIE5OBzuaKhb4k5JYta0NICxg==",249:"sha512-6DKQo5WP7YlpzX6l9UfYkgGLGK2oITdoaYTcZtgl5Foa22NY63lED/0z1hBBLeD7qZCz/YdlY19/r8drlol1tg==",212:"sha512-CYxuvSpDx6ErqWJwAvpoHn54eY37YdMcFao/axOumlw3BsSL7yioOeB2LWViY/Njs818sQG10dSglUhYCMfLPw==",238:"sha512-mvbMILWa3ohYst+u6TLfNrmtY2swUIB3rbJFN/uzt3W62KhgvUVwB81UEZ1R0/it5bfrQ5EVz864pi/CAmucNQ=="};o=document.createElement("script"),o.charset="utf-8",r.nc&&o.setAttribute("nonce",r.nc),o.setAttribute("data-webpack",t+s),o.src=n,0!==o.src.indexOf(window.location.origin+"/")&&(o.crossOrigin="anonymous"),u[a]&&(o.integrity=u[a])}e[n]=[i];const l=(t,r)=>{o.onerror=o.onload=null,clearTimeout(f);const i=e[n];if(delete e[n],o.parentNode?.removeChild(o),i?.forEach(e=>e(r)),t)return t(r)},f=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),c&&document.head.appendChild(o)}})(),r.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="https://js-agent.newrelic.com/",(()=>{const e={38:0,788:0};r.f.j=(t,n)=>{let i=r.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{const s=new Promise((r,n)=>i=e[t]=[r,n]);n.push(i[2]=s);const a=r.p+r.u(t),o=new Error,c=n=>{if(r.o(e,t)&&(i=e[t],0!==i&&(e[t]=void 0),i)){const e=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed: ("+e+": "+r+")",o.name="ChunkLoadError",o.type=e,o.request=r,i[1](o)}};r.l(a,c,"chunk-"+t,t)}};const t=(t,n)=>{let[i,s,a]=n;var o,c,d=0;if(i.some(t=>0!==e[t])){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);if(a)a(r)}for(t&&t(n);d<i.length;d++)c=i[d],r.o(e,c)&&e[c]&&e[c][0](),e[c]=0},n=self["webpackChunk:NRBA-1.322.0.PROD"]=self["webpackChunk:NRBA-1.322.0.PROD"]||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";r(8374);var e=r(8362),t=r(860);const n=Object.values(t.K7);var i=r(384),s=r(1741);var a=r(2555),o=r(3333),c=r(9300);const d=e=>{if(!e||"string"!=typeof e)return!1;try{document.createDocumentFragment().querySelector(e)}catch{return!1}return!0};var u=r(2614),l=r(944),f=r(8122);const h="[data-nr-mask]",p=e=>(0,f.a)(e,(()=>{const e={feature_flags:[],experimental:{register:!1,resources:!1,iframe_bridge:!1,iframe_domains:[]},mask_selector:"*",block_selector:"[data-nr-block]",mask_input_options:{color:!1,date:!1,"datetime-local":!1,email:!1,month:!1,number:!1,range:!1,search:!1,tel:!1,text:!1,time:!1,url:!1,week:!1,textarea:!1,select:!1,password:!0}};return{ajax:{deny_list:void 0,block_internal:!0,enabled:!0,autoStart:!0,capture_payloads:c.mo.NONE},api:{register:{get enabled(){return e.feature_flags.includes(o.$v.REGISTER)||e.experimental.register},set enabled(t){e.experimental.register=t},duplicate_data_to_container:!1,get allow_iframe_bridge(){return e.feature_flags.includes(o.$v.IFRAME_BRIDGE)||e.experimental.iframe_bridge},set allow_iframe_bridge(t){e.experimental.iframe_bridge=t},get iframe_domains(){return e.experimental.iframe_domains},set iframe_domains(t){Array.isArray(t)?e.experimental.iframe_domains=t:(0,l.R)(1,t)}}},browser_consent_mode:{enabled:!1},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},get feature_flags(){return e.feature_flags},set feature_flags(t){e.feature_flags=t},generic_events:{enabled:!0,autoStart:!0},harvest:{interval:30},jserrors:{enabled:!0,autoStart:!0},logging:{enabled:!0,autoStart:!0},metrics:{enabled:!0,autoStart:!0},obfuscate:void 0,page_action:{enabled:!0},page_view_event:{enabled:!0,autoStart:!0},page_view_timing:{enabled:!0,autoStart:!0},performance:{capture_marks:!1,capture_measures:!1,capture_detail:!0,resources:{get enabled(){return e.feature_flags.includes(o.$v.RESOURCES)||e.experimental.resources},set enabled(t){e.experimental.resources=t},asset_types:[],first_party_domains:[],ignore_newrelic:!0}},privacy:{cookies_enabled:!0},proxy:{assets:void 0,beacon:void 0},session:{expiresMs:u.wk,inactiveMs:u.BB},session_replay:{autoStart:!0,enabled:!1,preload:!1,sampling_rate:10,error_sampling_rate:100,collect_fonts:!1,inl
403ine_images:!1,fix_stylesheets:!0,mask_all_inputs:!0,get mask_text_selector(){return e.mask_selector},set mask_text_selector(t){d(t)?e.mask_selector="".concat(t,",").concat(h):""===t||null===t?e.mask_selector=h:(0,l.R)(5,t)},get block_class(){return"nr-block"},get ignore_class(){return"nr-ignore"},get mask_text_class(){return"nr-mask"},get block_selector(){return e.block_selector},set block_selector(t){d(t)?e.block_selector+=",".concat(t):""!==t&&(0,l.R)(6,t)},get mask_input_options(){return e.mask_input_options},set mask_input_options(t){t&&"object"==typeof t?e.mask_input_options={...t,password:!0}:(0,l.R)(7,t)}},session_trace:{enabled:!0,autoStart:!0},soft_navigations:{enabled:!0,autoStart:!0},ssl:void 0,user_actions:{enabled:!0,elementAttributes:["id","className","tagName","type"]},web_sockets:{enabled:!1}}})());var g=r(6154),m=r(9324);let v=0;const y={buildEnv:"PROD",distMethod:"CDN",version:m.x,originTime:g.WN},b={consented:!1},E={activatedFeatures:void 0,appMetadata:{},configured:!1,get consented(){return this.session?.state?.consent||b.consented},set consented(e){b.consented=e},customTransaction:void 0,denyList:[],disabled:!1,drainRegistry:new Map,connector:void 0,harvester:void 0,v2Target:void 0,isolatedBacklog:!1,isRecording:!1,loaderType:void 0,maxBytes:3e4,obfuscator:void 0,onerror:void 0,ptid:void 0,releaseIds:{},session:void 0,timeKeeper:void 0,registeredEntities:[],jsAttributesMetadata:{bytes:0},get harvestCount(){return++v},listeningForIframeMessages:!1};var w=r(9232);var R=r(7836),T=r(3241);const A={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:void 0,applicationID:void 0,xpid:void 0};var S=r(9908),x=r(9752);function O(e,t={},n,o){let{init:c,info:d,loader_config:u,runtime:l={},exposed:h=!0}=t;if(!d){const e=(0,i.pV)();c=e.init,d=e.info,u=e.loader_config}var m;e.init=p(c||{}),e.loader_config=(m=u||{},(0,f.a)(m,A)),d.jsAttributes??={},g.bv&&(d.jsAttributes.isWorker=!0),e.info=(0,a.D)(d);const v=e.init;e.runtime??=(e=>{const t=(0,f.a)(e,E),r=Object.keys(y).reduce((e,t)=>(e[t]={value:y[t],writable:!1,configurable:!0,enumerable:!0},e),{});return Object.defineProperties(t,r)})(l),e.runtime.v2Target??={type:w.f.BA,instance:e.agentIdentifier,get id(){return e.runtime.appMetadata?.agents?.[0]?.entityGuid},get attributes(){return{"entity.guid":this.id,appId:e.info.applicationID}}},v.proxy.assets&&(e=>{const t=e.startsWith("http");e+="/",r.p=t?e:"https://"+e})(v.proxy.assets),e.runtime.configured||(Object.defineProperty(e,"beacons",{get:()=>[e.info.beacon,e.info.errorBeacon,e.init.proxy.assets,e.init.proxy.beacon].filter(Boolean)}),Object.defineProperty(e.runtime,"denyList",{get:()=>[...e.init.ajax.deny_list||[],...e.init.ajax.block_internal?e.beacons:[]]}),e.runtime.ptid=e.agentIdentifier,function(e){const t=(0,i.pV)();Object.getOwnPropertyNames(s.W.prototype).forEach(r=>{const n=s.W.prototype[r];if("function"!=typeof n||"constructor"===n)return;let i=t[r];e[r]&&!1!==e.exposed&&"micro-agent"!==e.runtime?.loaderType&&(t[r]=(...t)=>{const n=e[r](...t);return i?i(...t):n})})}(e),e.runtime.loaderType=n,e.ee=R.ee.get(e.agentIdentifier),e.exposed=h,(0,T.W)({drained:!!e.runtime.activatedFeatures,type:"lifecycle",name:"initialize",feature:void 0,data:e.config}),e.init.api.register.allow_iframe_bridge&&g.gm.addEventListener("message",t=>{"string"==typeof t.data?.type&&t.data.type.startsWith(x.Pl)&&(0,S.p)("iframe-message",[t],void 0,"IFRAME",e.ee)}),e.runtime.configured=!0)}var _=r(1863),k=r(4261),N=r(1738);var L=r(1687),M=r(4234),P=r(5289),I=r(5270),j=r(7767),C=r(6389),D=r(7699);const B=new WeakSet,H=new WeakMap;class W extends M.W{constructor(e,t){super(e,t),this.abortHandler=void 0,this.featAggregate=void 0,this.loadedSuccessfully=void 0,this.onAggregateImported=new Promise(e=>{this.loadedSuccessfully=e}),this.deferred=Promise.resolve(),!1===e.init[this.featureName].autoStart?this.deferred=new Promise((t,r)=>{this.ee.on("manual-start-all",(0,C.J)(()=>{(0,L.Ak)(e,this.featureName),t()}))}):(0,L.Ak)(e,t)}importAggregator(e,t,n={}){if(this.featAggregate)return;const i=async()=>{if(await this.deferred,this.#t(e),!(0,a.f)(e.info))return(0,l.R)(43),e.ee.abort(),void this.loadedSuccessfully(!1);try{await async function(e,t,n){if(H.has(e))return H.get(e);const i=(async()=>
403{if((0,j.V)(e.init))try{const{setupAgentSession:t}=await r.e(478).then(r.bind(r,8766));t(e)}catch(e){(0,l.R)(20,e),t.emit("internal-error",[e]),(0,S.p)(D.qh,[e],void 0,n,t)}if(e.init.api.register.allow_iframe_bridge)try{const{setupIframeMFEMessageListener:t}=await r.e(238).then(r.bind(r,6417));t(e)}catch(e){(0,l.R)(23,e)}const[{Connector:i},{Harvester:s}]=await Promise.all([r.e(478).then(r.bind(r,6589)),r.e(478).then(r.bind(r,5237))]);e.runtime.connector=new i(e),e.runtime.harvester=new s(e);const a=Object.values(e.features).filter(t=>e.runtime.drainRegistry.has(t.featureName));Promise.all(a.map(e=>e.onAggregateImported)).then(()=>e.runtime.harvester.startTimer())})();H.set(e,i),await i}(e,this.ee,this.featureName)}catch(e){return(0,l.R)(79,e),this.ee.abort(),void this.loadedSuccessfully(!1)}try{if(!this.#r(this.featureName,e.runtime.session,e.init))return this.abortHandler?.(),(0,L.Ze)(this.agentRef,this.featureName),void this.loadedSuccessfully(!1);const{Aggregate:r}=await t();this.featAggregate=new r(e,n),e.runtime.harvester.initializedAggregates.push(this.featAggregate),this.loadedSuccessfully(!0)}catch(e){(0,l.R)(34,e),this.abortHandler?.(),(0,L.Ze)(this.agentRef,this.featureName,!0),this.loadedSuccessfully(!1)}};g.RI?(0,P.GG)(()=>i(),!0):i()}#r(e,r,n){if(this.blocked)return!1;switch(e){case t.K7.sessionReplay:return(0,I.SR)(n)&&!!r;case t.K7.sessionTrace:return!!r;default:return!0}}#t(e){if(!B.has(e)&&(B.add(e),!(0,a.f)(e.info))){const t=(0,i.pV)();let r={...t.info?.jsAttributes};try{r={...r,...e.info?.jsAttributes}}catch(e){}O(e,{...t,info:{...t.info,jsAttributes:r},runtime:e.runtime},e.runtime.loaderType)}}}var U=r(6630);class K extends W{static featureName=U.T;constructor(e){var t;super(e,U.T),this.setupInspectionEvents(),t=e,(0,N.Y)(k.Fw,function(e,r){"string"==typeof e&&("/"!==e.charAt(0)&&(e="/"+e),t.runtime.customTransaction=(r||"http://custom.transaction")+e,(0,S.p)("api-"+k.Fw,[(0,_.t)()],void 0,void 0,t.ee))},t),this.importAggregator(e,()=>e.init.feature_flags.includes("rum_v2")?r.e(478).then(r.bind(r,908)):r.e(478).then(r.bind(r,7927)))}setupInspectionEvents(){const e=(e,t)=>{e&&(0,T.W)({timeStamp:e.timeStamp,loaded:"complete"===e.target.readyState,type:"window",name:t,data:e.target.location+""})};(0,P.sB)(t=>{e(t,"DOMContentLoaded")}),(0,P.GG)(t=>{e(t,"load")}),(0,P.Qr)(t=>{e(t,"navigate")}),this.ee.on(u.tS.UPDATE,(e,t)=>{(0,T.W)({type:"lifecycle",name:"session",data:t})})}}class F extends e.d{constructor(e){var t;(super(),g.gm)?(this.features={},(0,i.bQ)(this.agentIdentifier,this),this.desiredFeatures=new Set(e.features||[]),this.desiredFeatures.add(K),O(this,e,e.loaderType||"agent"),t=this,(0,N.Y)(k.cD,function(e,r,n=!1){if("string"==typeof e){if(["string","number","boolean"].includes(typeof r)||null===r)return(0,N.U)(t,e,r,k.cD,n);(0,l.R)(40,typeof r)}else(0,l.R)(39,typeof e)},t),function(e){(0,N.Y)(k.Dl,function(t,r=!1){if("string"!=typeof t&&null!==t)return void(0,l.R)(41,typeof t);const n=e.info.jsAttributes["enduser.id"];r&&null!=n&&n!==t?(0,S.p)("api-setUserIdAndResetSession",[t],void 0,"session",e.ee):(0,N.U)(e,"enduser.id",t,k.Dl,!0)},e)}(this),function(e){(0,N.Y)(k.nb,function(t){if("string"==typeof t||null===t)return(0,N.U)(e,"application.version",t,k.nb,!1);(0,l.R)(42,typeof t)},e)}(this),function(e){(0,N.Y)("start",function(){e.ee.emit("manual-start-all")},e)}(this),function(e){(0,N.Y)(k.Pv,function(t=!0){if("boolean"==typeof t){if((0,S.p)("api-"+k.Pv,[t],void 0,"session",e.ee),e.runtime.consented=t,t){const t=e.features.page_view_event;t.onAggregateImported.then(e=>{const r=t.featAggregate;e&&!r.sentRum&&r.sendRum?.()})}}else(0,l.R)(65,typeof t)},e)}(this),this.run()):(0,l.R)(21)}get config(){return{info:this.info,init:this.init,loader_config:this.loader_config,runtime:this.runtime}}get api(){return this}run(){try{const e=function(e){const t={};return n.forEach(r=>{t[r]=!!e[r]?.enabled}),t}(this.init),r=[...this.desiredFeatures],i=this.init.feature_flags.includes("rum_v2");r.sort((e,r)=>t.P3[e.featureName]-t.P3[r.featureName]),r.forEach(r=>{if(!e[r.featureName]&&(i||r.featureName!==t.K7.pageViewEvent))return;const n=function(e){switch(e){case t.K7.ajax:return[t.K7.jserrors];case t.K7.sessionTrace:return[t.K7.ajax,t.K7.pageViewEvent];case t.K7.sessionReplay:return[t.K7.sessionTrace];case t.K7.pageViewTiming:return[t.K7.pageViewEvent];default:return[]}}(r.featureName).filter(e=>!(e in this.features));n.length>0&&(0,l.R)(36,{targetFeature:r.featureName,missingDependencies:n}),this.features[r.featureName]=new r(this)})}catch(e){(0,l.R)(22,e);for(const e in this.features)this.features[e].abortHandler?.();const t=(0,i.Zm)();delete t.initializedAgents[this.agentIdentifier]?.features,delete this.sharedAggregator;return t.ee.get(this.agentIdentifier).abort(),!1}}}var V=r(2843),z=r(782);class G extends W{static featureName=z.T;constructor(e){super(e,z.T),g.RI&&((0,V.u)(()=>(0,S.p)("docHidden",[(0,_.t)()],void 0,z.T,this.ee),!0),(0,V.G)(()=>(0,S.p)("winPagehide",[(0,_.t)()],void 0,z.T,this.ee)),this.importAggregator(e,()=>r.e(478).then(r.bind(r,9917))))}}var q=r(3969);class Y extends W{static featureName=q.TZ;constructor(e){super(e,q.TZ),this.importAggregator(e,()=>r.e(478).then(r.bind(r,6555)))}}var Z=r(6774),J=r(3878),X=r(3304);class Q{constructor(e,t,r,n,i){this.name="UncaughtError",this.message="string"==typeof e?e:(0,X.A)(e),this.sourceURL=t,this.line=r,this.column=n,this.__newrelic=i}}function ee(e){return ne(e)?e:new Q(void 0!==e?.message?e.message:e,e?.filename||e?.sourceURL,e?.lineno||e?.line,e?.colno||e?.col,e?.__newrelic,e?.cause)}function te(e){const t="Unhandled Promise Rejection: ";if(!e?.reason)return;if(ne(e.reason)){try{e.reason.message.startsWith(t)||(e.reason.message=t+e.reason.message)}catch(e){}return ee(e.reason)}const r=ee(e.reason);return(r.message||"").startsWith(t)||(r.message=t+r.message),r}function re(e){if(e.error instanceof SyntaxError&&!/:\d+$/.test(e.error.stack?.trim())){const t=new Q(e.message,e.filename,e.lineno,e.colno,e.error.__newrelic,e.cause);return t.name=SyntaxError.name,t}return ne(e.error)?e.error:ee(e)}function ne(e){return e instanceof Error&&!!e.stack}function ie(e,r,n,i,s=(0,_.t)()){"string"==typeof e&&(e=new Error(e)),(0,S.p)("err",[e,s,!1,r,n.runtime.isRecording,void 0,i],void 0,t.K7.jserrors,n.ee),(0,S.p)("uaErr",[],void 0,t.K7.genericEvents,n.ee)}var se=r(993),ae=r(3785);function oe(e,{customAttributes:t={},level:r=se.p_.INFO}={},n,i,s=(0,_.t)()){(0,ae.R)(n.ee,e,t,r,!1,i,s)}function ce(e,r,n,i,s=(0,_.t)()){(0,S.p)("api-"+k.hG,[s,e,r,i],void 0,t.K7.genericEvents,n.ee)}function de(e,r,n,i,s=(0,_.t)()){const{start:a,end:o,customAttributes:c}=r||{},d={customAttributes:c||{}};if("object"!=typeof d.customAttributes||"string"!=typeof e||0===e.length)return void(0,l.R)(57);const u=(e,t)=>
403null==e?t:"number"==typeof e?e:e instanceof PerformanceMark?e.startTime:Number.NaN;if(d.start=u(a,0),d.end=u(o,s),Number.isNaN(d.start)||Number.isNaN(d.end))(0,l.R)(57);else{if(d.duration=d.end-d.start,!(d.duration<0))return(0,S.p)("api-"+k.V1,[d,e,i],void 0,t.K7.genericEvents,n.ee),d;(0,l.R)(58)}}function ue(e,r={},n,i,s=(0,_.t)()){(0,S.p)("api-"+k.fF,[s,e,r,i],void 0,t.K7.genericEvents,n.ee)}var le=r(5718);const fe=(e,t)=>e?.nrMfeId===t.id&&(!e?.nrMfeObserved||e?.nrMfeObserved===t.instance),he=e=>{try{return g.gm.CSS.escape(e)}catch(t){return e}},pe=(e,t={})=>{const r=t.id,n=t.instance;if(!e||!r||!n)return!1;try{let r=1===e.nodeType?e:e.parentElement;for(;r?.tagName;){if(fe(r.dataset,t))return r.dataset.nrMfeObserved=n,!0;r=r.parentNode}}catch(e){}return!1},ge=(e,t)=>{const r=g.gm.document?.querySelectorAll('[data-nr-mfe-id="'.concat(he(e.id),'"]')),n=(Array.from(r)||[]).find(t=>fe(t.dataset,e));let i=!!n;i&&(n.dataset.nrMfeObserved??=e.instance);const s=new g.gm.MutationObserver(r=>{r.forEach(r=>{r.addedNodes.forEach(r=>{const n=1===r.nodeType?r:null;!i&&fe(n?.dataset,e)&&(s.disconnect(),s.observe(n,{childList:!0,subtree:!0}),i=!0,n.dataset.nrMfeObserved=e.instance),(e=>{try{return e?.textContent?.trim()||["img","video","canvas","svg"].includes(e?.nodeName?.toLowerCase())}catch(e){return!1}})(r)&&(i||pe(r,e))&&t(r,s)})})});return s.observe(n||g.gm.document,{childList:!0,subtree:!0}),s},me=(e,t,r)=>{try{const n=new g.gm.PerformanceObserver(e=>{e.getEntries().forEach(r)});return n.observe(t),e.push(n),n}catch(e){return null}};function ve(e,t){let r,n,i=!1;const s=e=>null==e?e:e-(t?.scriptStart||t?.registeredAt||0),a={fcp:{get value(){const e=s(r);return e>1e4?void 0:e},set value(e){i||(r=e)}},lcp:{get value(){if(void 0!==a.fcp.value)return s(n)},set value(e){i||(n=e)}},cls:{value:void 0},inp:{value:void 0},disconnect:()=>{}};if(!(e&&g.RI&&g.gm.MutationObserver&&g.gm.PerformanceObserver))return a;const o=[];setTimeout(()=>{r||a.disconnect()},1e4);const c=()=>{if(!i){if(null==r){const e=(0,_.t)();if(s(e)>1e4)return void a.disconnect();r=e}n??=(0,_.t)(),a.cls.value??=0}},d=ge(e,(e,t)=>{c(),t.disconnect()});o.push(d);let u=0,l=null;const f=new Set;try{l=new g.gm.ResizeObserver(e=>{i||e.forEach(e=>{try{const t=e.contentRect.width*e.contentRect.height;t>u&&(u=t,a.lcp.value=(0,_.t)()),l.unobserve(e.target)}catch(e){}})})}catch(e){}const h=ge(e,e=>{if(c(),l)try{const t=1===e.nodeType?e:e.parentElement;t&&!f.has(t)&&(f.add(t),"IMG"===t.tagName?t.complete?l.observe(t):t.addEventListener("load",()=>{l.observe(t)},{once:!0}):"VIDEO"===t.tagName?t.readyState>=2?l.observe(t):t.addEventListener("loadeddata",()=>{l.observe(t)},{once:!0}):l.observe(t))}catch(e){}});l&&o.push(l),o.push(h),me(o,{type:"layout-shift",buffered:!0},t=>{i||t.hadRecentInput||(t.sources||[]).some(r=>!!pe(r.node,e)&&(c(),a.cls.value+=t.value,!0))}),me(o,{type:"event",buffered:!0,durationThreshold:40},t=>{!i&&t.interactionId&&pe(t.target,e)&&(void 0===a.inp.value||t.duration>a.inp.value)&&(c(),a.inp.value=t.duration)});const p=["pointerdown","keydown"],m=()=>{p.forEach(e=>{g.gm.removeEventListener(e,v,{passive:!0})})};a.disconnect=()=>{i=!0,o.forEach(e=>{try{e?.disconnect()}catch(e){}}),m(),["visibilitychange","pagehide"].forEach(e=>{g.gm.removeEventListener(e,a.disconnect,{once:!0,passive:!0})})};const v=t=>{pe(t?.target,e)&&((()=>{try{h?.disconnect(),l?.disconnect()}catch(e){}})(),m())};p.forEach(e=>{g.gm.addEventListener(e,v,{passive:!0})}),["visibilitychange","pagehide"].forEach(e=>{g.gm.addEventListener(e,a.disconnect,{once:!0,passive:!0})});const y=g.gm.document?.querySelectorAll('[data-nr-mfe-id="'.concat(he(e.id),'"]'));return Array.from(y||[]).some(t=>fe(t.dataset,e))&&c(),a}var ye=r(9566),be=r(7560),Ee=r(9119);const we=["entry","scripts","all"],Re=["name","id","type"],Te=new Map([[ce,"addPageAction"],[oe,"log"],[de,"measure"],[ie,"noticeError"],[ue,"recordCustomEvent"]]),Ae={experimental:(0,C.J)(()=>(0,l.R)(54,"newrelic.register")),disabled:(0,C.J)(()=>(0,l.R)(55)),invalidTarget:(0,C.J)(e=>(0,l.R)(48,e)),deregistered:(0,C.J)(()=>(0,l.R)(68)),invalidTimingMethod:(0,C.J)(e=>(0,l.R)(80,e)),duplicateName:(0,C.J)(e=>(0,l.R)(81,e)),duplicateId:(0,C.J)(e=>(0,l.R)(82,e))};function Se(e){(0,N.Y)(k.eY,function(t){return xe(e,t)},e)}function xe(e,r){Ae.experimental(),r||={},r.instance=(0,ye.LA)(8),r.type=w.f.MFE,r.licenseKey||=e.info.licenseKey,r.blocked=!1,("object"!=typeof r.tags||null===r.tags||Array.isArray(r.tags))&&(r.tags={}),r.parent??={get id(){return e.runtime.appMetadata.agents?.[0].entityGuid},type:w.f.BA},r.manifest=(0,be.N)(r.manifest),void 0===r.timingMethod||we.includes(r.timingMethod)||(Ae.invali
403dTimingMethod(r.timingMethod),r.timingMethod=void 0);const n=(0,le.Qr)(r);r.manifest&&(0,le.xo)(n,r);const i=ve(r,n),s=(0,Ee.L)(""+location),a={};Object.prototype.hasOwnProperty.call(r,"attributes")||Object.defineProperty(r,"attributes",{get:()=>({...a,"source.id":r.id,"source.name":r.name,"source.type":r.type,"parent.type":r.parent?.type||w.f.BA,"parent.id":r.parent?.id})}),Object.entries(r.tags).forEach(([e,t])=>{Re.includes(e)||(a["source.".concat(e)]=t)});let o=()=>{};const c=e.runtime.registeredEntities,d=e=>{r.blocked=!0,o=e};function u(e){return"string"==typeof e&&!!e.trim()&&e.trim().length<501}e.init.api.register.enabled||d(Ae.disabled),u(r.id)&&u(r.name)||d(()=>Ae.invalidTarget(r)),c.forEach(e=>{try{const{name:t,id:n}=e.metadata.target;t===r.name&&n!==r.id&&Ae.duplicateName(r),n===r.id&&t!==r.name&&Ae.duplicateId(r)}catch(e){}});const f={addPageAction:(t,n={})=>m(ce,[t,{...a,...n},e],r),deregister:()=>{p(),d(Ae.deregistered)},log:(t,n={})=>m(oe,[t,{...n,customAttributes:{...a,...n.customAttributes||{}}},e],r),measure:(t,n={})=>m(de,[t,{...n,customAttributes:{...a,...n.customAttributes||{}}},e],r),noticeError:(t,n={})=>m(ie,[t,{...a,...n},e],r),recordCustomEvent:(t,n={})=>m(ue,[t,{...a,...n},e],r),setApplicationVersion:e=>g("application.version",e),setCustomAttribute:(e,t)=>g(e,t),setUserId:e=>g("enduser.id",e),metadata:{get customAttributes(){return a},target:r,timings:n,vitals:i,events:{latestTimestamp:void 0}}},h=()=>(r.blocked&&o(),r.blocked);function p(){if(n.reportedAt)return;n.reportedAt=(0,_.t)(),i.disconnect(),n.fcp=i.fcp,n.lcp=i.lcp,n.cls=i.cls,n.inp=i.inp;const e=n.fetchEnd-n.fetchStart,t=n.scriptEnd-n.scriptStart,r={assetUrl:n.asset,assetType:n.type,registerUrl:s,deregisterUrl:(0,Ee.L)(""+location),pageUrl:void 0,currentUrl:void 0,timeAlive:n.reportedAt-n.registeredAt,timeToBeRequested:n.fetchStart,timeToExecute:t,timeToFetch:e,timeToLoad:e+t,t
403imeToRegister:n.registeredAt,totalWeight:n.totalWeight,...void 0!==n.renderBlocking&&{renderBlocking:n.renderBlocking},...i.fcp.value>=0&&{"vitals.fcp.value":i.fcp.value},...i.lcp.value>=0&&{"vitals.lcp.value":i.lcp.value},...i.cls.value>=0&&{"vitals.cls.value":i.cls.value},...i.inp.value>=0&&{"vitals.inp.value":i.inp.value}};f.recordCustomEvent("MicroFrontEndTiming",r)}h()||(c.push(f),(0,V.G)(p));const g=(e,t)=>{h()||(a[e]=t)},m=(r,n,i)=>{if(h()&&r!==xe)return;const s=f.metadata.events.latestTimestamp??(0,_.t)();f.metadata.events.latestTimestamp=void 0;const a=Te.get(r)||"unknown";(0,S.p)(q.xV,["API/register/".concat(a,"/called")],void 0,t.K7.metrics,e.ee);try{return r(...n,i,s)}catch(e){(0,l.R)(50,e)}};return f}class Oe extends W{static featureName=Z.T;constructor(e){var t;super(e,Z.T),t=e,(0,N.Y)(k.o5,(e,r)=>ie(e,r,t),t),function(e){(0,N.Y)(k.bt,function(t){e.runtime.onerror=t},e)}(e),function(e){let t=0;(0,N.Y)(k.k6,function(e,r){++t>10||(this.runtime.releaseIds[e.slice(-200)]=(""+r).slice(-200))},e)}(e),Se(e);try{this.removeOnAbort=new AbortController}catch(e){}this.ee.on("internal-error",(t,r)=>{this.abortHandler&&(0,S.p)("ierr",[ee(t),(0,_.t)(),!0,{},e.runtime.isRecording,r],void 0,this.featureName,this.ee)}),g.gm.addEventListener("unhandledrejection",t=>{this.abortHandler&&(0,S.p)("err",[te(t),(0,_.t)(),!1,{unhandledPromiseRejection:1},e.runtime.isRecording],void 0,this.featureName,this.ee)},(0,J.jT)(!1,this.removeOnAbort?.signal)),g.gm.addEventListener("error",t=>{this.abortHandler&&(0,S.p)("err",[re(t),(0,_.t)(),!1,{},e.runtime.isRecording],void 0,this.featureName,this.ee)},(0,J.jT)(!1,this.removeOnAbort?.signal)),this.abortHandler=this.#n,this.importAggregator(e,()=>r.e(478).then(r.bind(r,9377)))}#n(){this.removeOnAbort?.abort(),this.abortHandler=void 0}}var _e=r(8990);let ke=1;function Ne(e){const t=typeof e;return!e||"object"!==t&&"function"!==t?-1:e===g.gm?0:(0,_e.I)(e,"nr@id",function(){return ke++})}function Le(e){if("string"==typeof e)return e.length;if("object"==typeof e){if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&e.byteLength)return e.byteLength;if("undefined"!=typeof Blob&&e instanceof Blob&&e.size)return e.size;if(!("undefined"!=typeof FormData&&e instanceof FormData))try{return(0,X.A)(e).length}catch(e){return}}}var Me=r(8139),Pe=r(3434),Ie=r(5732);const je={},Ce=["open","send","setRequestHeader"];function De(e,t){var r=e||R.ee;const n=function(e){return(e||R.ee).get("xhr")}(r);if(void 0===g.gm.XMLHttpRequest)return n;if(je[n.debugId]++)return n;je[n.debugId]=1,(0,Me.u)(r,t);var i=(0,Pe.YM)(n,void 0,t),s=g.gm.XMLHttpRequest,a=g.gm.MutationObserver,o=g.gm.Promise,c=g.gm.setInterval,d="readystatechange",u=["onload","onerror","onabort","onloadstart","onloadend","onprogress","ontimeout"],f=[],h=g.gm.XMLHttpRequest=function(e){const r=new s(e),a=n.context(r);a.targets=(0,Ie.$5)(t);try{n.emit("new-xhr",[r],a),r.addEventListener(d,(o=a,function(){var e=this;e.readyState>3&&!o.resolved&&(o.resolved=!0,n.emit("xhr-resolved",[],e)),i.inPlace(e,u,"fn-",E)}),(0,J.jT)(!1))}catch(e){(0,l.R)(15,e);try{n.emit("internal-error",[e])}catch(e){}}var o;return r};function p(e,t){i.inPlace(t,["onreadystatechange"],"fn-",E)}if(function(e,t){for(var r in e)t[r]=e[r]}(s,h),h.prototype=s.prototype,i.inPlace(h.prototype,Ce,"-xhr-",E),n.on("send-xhr-start",function(e,t){p(e,t),function(e){f.push(e),a&&(m?m.then(b):c?c(b):(v=-v,y.data=v))}(t)}),n.on("open-xhr-start",p),a){var m=o&&o.resolve();if(!c&&!o){var v=1,y=document.createTextNode(v);new a(b).observe(y,{characterData:!0})}}else r.on("fn-end",function(e){e[0]&&e[0].type===d||b()});function b(){for(var e=0;e<f.length;e++)p(0,f[e]);f.length&&(f=[])}function E(e,t){return t}return n}var Be="fetch-",He=Be+"body-",We=["arrayBuffer","blob","json","text","formData"],Ue=g.gm.Request,Ke=g.gm.Response,Fe="prototype";const Ve={};function ze(e,t){const r=function(e){return(e||R.ee).get("fetch")}(e);if(!(Ue&&Ke&&g.gm.fetch))return r;if(Ve[r.debugId]++)return r;function n(e,n,i){var s=e[n];"function"==typeof s&&(e[n]=function(){var e=[...arguments];const n={},a=(0,Ie.$5)(t);var o;r.emit(i+"before-start",[e],n),n[R.P]&&n[R.P].dt&&(o=n[R.P].dt);var c=s.apply(this,e);return r.emit(i+"start",[e,o],c),c.then(function(e){return r.emit(i+"end",[null,e,a],c),e},function(e){throw r.emit(i+"end",[e,void 0,a],c),e})})}
403return Ve[r.debugId]=1,We.forEach(e=>{n(Ue[Fe],e,He),n(Ke[Fe],e,He)}),n(g.gm,"fetch",Be),r.on(Be+"end",function(e,n,i){var s=this;if(s.targets=i||[t.runtime.v2Target],n){var a=n.headers.get("content-length");null!==a&&(s.rxSize=a),r.emit(Be+"done",[null,n],s)}else r.emit(Be+"done",[e],s)}),r}var Ge=r(7485);class qe{constructor(e){this.agentRef=e}generateTracePayload(e){const t=this.agentRef.loader_config;if(!this.shouldGenerateTrace(e)||!t)return null;var r=(t.accountID||"").toString()||null,n=(t.agentID||"").toString()||null,i=(t.trustKey||"").toString()||null;if(!r||!n)return null;var s=(0,ye.ZF)(),a=(0,ye.el)(),o=Date.now(),c={spanId:s,traceId:a,timestamp:o};return(e.sameOrigin||this.isAllowedOrigin(e)&&this.useTraceContextHeadersForCors())&&(c.traceContextParentHeader=this.generateTraceContextParentHeader(s,a),c.traceContextStateHeader=this.generateTraceContextStateHeader(s,o,r,n,i)),(e.sameOrigin&&!this.excludeNewrelicHeader()||!e.sameOrigin&&this.isAllowedOrigin(e)&&this.useNewrelicHeaderForCors())&&(c.newrelicHeader=this.generateTraceHeader(s,a,o,r,n,i)),c}generateTraceContextParentHeader(e,t){return"00-"+t+"-"+e+"-01"}generateTraceContextStateHeader(e,t,r,n,i){return i+"@nr=0-1-"+r+"-"+n+"-"+e+"----"+t}generateTraceHeader(e,t,r,n,i,s){if(!("function"==typeof g.gm?.btoa))return null;var a={v:[0,1],d:{ty:"Browser",ac:n,ap:i,id:e,tr:t,ti:r}};return s&&n!==s&&(a.d.tk=s),btoa((0,X.A)(a))}shouldGenerateTrace(e){return this.agentRef.init?.distributed_tracing?.enabled&&this.isAllowedOrigin(e)}isAllowedOrigin(e){var t=!1;const r=this.agentRef.init?.distributed_tracing;if(e.sameOrigin)t=!0;else if(r?.allowed_origins instanceof Array)for(var n=0;n<r.allowed_origins.length;n++){var i=(0,Ge.D)(r.allowed_origins[n]);if(e.hostname===i.hostname&&e.protocol===i.protocol&&e.port===i.port){t=!0;break}}return t}excludeNewrelicHeader(){var e=this.agentRef.init?.distributed_tracing;return!!e&&!!e.exclude_newrelic_header}useNewrelicHeaderForCors(){var e=this.agentRef.init?.distributed_tracing;return!!e&&!1!==e.cors_use_newrelic_header}useTraceContextHeadersForCors(){var e=this.agentRef.init?.distributed_tracing;return!!e&&!!e.cors_use_tracecontext_headers}}var Ye=r(7295);function Ze(e){return"string"==typeof e?e:e instanceof(0,i.dV)().o.REQ?e.url:g.gm?.URL&&e instanceof URL?e.href:void 0}function $e(e,t){var r=(0,Ge.D)(t),n=e.params||e;n.hostname=r.hostname,n.port=r.port,n.protocol=r.protocol,n.host=r.hostname+":"+r.port,n.pathname=r.pathname,e.parsedOrigin=r,e.sameOrigin=r.sameOrigin}var Je=["load","error","abort","timeout"],Xe=Je.length,Qe=(0,i.dV)().o.REQ,et=(0,i.dV)().o.XHR;const tt="X-NewRelic-App-Data",rt="internal-error";class nt extends W{static featureName=c.TZ;constructor(e){super(e,c.TZ),this.dt=new qe(e),this.handler=(e,t,r,n)=>(0,S.p)(e,t,r,n,this.ee);try{const e={xmlhttprequest:"xhr",fetch:"fetch",beacon:"beacon"};g.gm?.performance?.getEntriesByType("resource").forEach(r=>{if(r.initiatorType in e&&0!==r.responseStatus){const n={status:r.responseStatus},i={rxSize:r.transferSize,duration:Math.floor(r.duration),cbTime:0};$e(n,r.name),this.handler("xhr",[n,i,r.startTime,r.responseEnd,e[r.initiatorType]],void 0,t.K7.ajax)}})}catch(e){}ze(this.ee,e),De(this.ee,e),function(e,r,n,i){const s=[c.mo.ALL,c.mo.FAILURES].includes(e.init.ajax?.capture_payloads);function a(e){var t=this;t.totalCbs=0,t.called=0,t.cbTime=0,t.end=A,t.ended=!1,t.xhrGuids={},t.lastSize=null,t.loadCaptureCalled=!1,t.params=this.params||{},t.metrics=this.metrics||{},t.latestLongtaskEnd=0,e.addEventListener("load",function(r){O(t,e)},(0,J.jT)(!1)),g.lR||e.addEventListener("progress",function(e){t.lastSize=e.loaded},(0,J.jT)(!1))}function o(e){this.params={method:e[0]},$e(this,e[1]),this.metrics={}}function d(t,r){e.loader_config.xpid&&this.sameOrigin&&r.setRequestHeader("X-NewRelic-ID",e.loader_config.xpid);var n=i.generateTracePayload(this.parsedOrigin);if(n){var s=!1;n.newrelicHeader&&(r.setRequestHeader("newrelic",n.newrelicHeader),s=!0),n.traceContextParentHeader&&(r.setRequestHeader("traceparent",n.traceContextParentHeader),n.traceContextStateHeader&&r.setRequestHeader("tracestate",n.traceContextStateHeader),s=!0),s&&(this.dt=n)}}function u(e,t){s&&e.length>=2&&(this.requestHeaders??={},this.requestHeaders[e[0].toLowerCase()]=e[1])}function l(e,t){var n=this.metrics,i=e[0],s=this;if(n&&i){var a=Le(i);a&&(n.txSize=a)}this.startTime=(0,_.t)(),this.requestBody=i,this.listener=function(e){try{"abort"!==e.type||s.loadCaptureCalled||(s.params.aborted=!0),("load"
403!==e.type||s.called===s.totalCbs&&(s.onloadCalled||"function"!=typeof t.onload)&&"function"==typeof s.end)&&s.end(t)}catch(e){try{r.emit(rt,[e])}catch(e){}}};for(var o=0;o<Xe;o++)t.addEventListener(Je[o],this.listener,(0,J.jT)(!1))}function f(e,t,r){this.cbTime+=e,t?this.onloadCalled=!0:this.called+=1,this.called!==this.totalCbs||!this.onloadCalled&&"function"==typeof r.onload||"function"!=typeof this.end||this.end(r)}function h(e,t){var r=""+Ne(e)+!!t;this.xhrGuids&&!this.xhrGuids[r]&&(this.xhrGuids[r]=!0,this.totalCbs+=1)}function p(e,t){var r=""+Ne(e)+!!t;this.xhrGuids&&this.xhrGuids[r]&&(delete this.xhrGuids[r],this.totalCbs-=1)}function m(){this.endTime=(0,_.t)()}function v(e,t){t instanceof et&&"load"===e[0]&&r.emit("xhr-load-added",[e[1],e[2]],t)}function y(e,t){t instanceof et&&"load"===e[0]&&r.emit("xhr-load-removed",[e[1],e[2]],t)}function b(e,t,r){t instanceof et&&("onload"===r&&(this.onload=!0),("load"===(e[0]&&e[0].type)||this.onload)&&(this.xhrCbStart=(0,_.t)()))}function E(e,t){this.xhrCbStart&&r.emit("xhr-cb-time",[(0,_.t)()-this.xhrCbStart,this.onload,t],t)}function w(e){var t,r=e[1]||{};if("string"==typeof e[0]?0===(t=e[0]).length&&g.RI&&(t=""+g.gm.location.href):e[0]&&e[0].url?t=e[0].url:g.gm?.URL&&e[0]&&e[0]instanceof URL?t=e[0].href:"function"==typeof e[0].toString&&(t=e[0].toString()),"string"==typeof t&&0!==t.length){t&&(this.parsedOrigin=(0,Ge.D)(t),this.sameOrigin=this.parsedOrigin.sameOrigin);var n=i.generateTracePayload(this.parsedOrigin);if(n&&(n.newrelicHeader||n.traceContextParentHeader))if(e[0]&&e[0].headers)o(e[0].headers,n)&&(this.dt=n);else{var s={};for(var a in r)s[a]=r[a];s.headers=new Headers(r.headers||{}),o(s.headers,n)&&(this.dt=n),e.length>1?e[1]=s:e.push(s)}}function o(e,t){var r=!1;return t.newrelicHeader&&(e.set("newrelic",t.newrelicHeader),r=!0),t.traceContextParentHeader&&(e.set("traceparent",t.traceContextParentHeader),t.traceContextStateHeader&&e.set("tracestate",t.traceContextStateHeader),r=!0),r}}function R(e,t){this.params={},this.metrics={},this.startTime=(0,_.t)(),this.dt=t;let[r,n={}]=e;$e(this,Ze(r));const i=(""+(r&&r instanceof Qe&&r.method||n.method||"GET")).toUpperCase();this.params.method=i,this.txSize=Le(n.body||r?.body)||0;try{var a=n.headers||r?.headers;if(s&&a)if(this.requestHeaders??={},a instanceof Headers)a.forEach(function(e,t){this.requestHeaders[t.toLowerCase()]=e}.bind(this));else if("object"==typeof a)for(var o in a)this.requestHeaders[o.toLowerCase()]=a[o]}catch(e){}this.requestBody=n.body||r?.body}function T(e,t){if(this.endTime=(0,_.t)(),this.params||(this.params={}),(0,Ye.iW)(this.params))return;this.params.status=t?t.status:0;const n=()=>{const e=+this.rxSize,t=null==this.rxSize||isNaN(e)?void 0:e,r={txSize:this.txSize,rxSize:t,duration:this.endTime-this.startTime},n=[this.params,r,this.startTime,this.endTime,"fetch"];this.targets.forEach(e=>x(n,this,e))};t&&s?t.clone().text().then(e=>{this.responseBody=e,this.rxSize&&"0"!==this.rxSize&&0!==this.rxSize||void 0===e||0===this.params.status||(this.rxSize=Le(e)),t?.headers&&(this.responseHeaders={},t.headers.forEach(function(e,t){this.responseHeaders[t.toLowerCase()]=e}.bind(this)))}).catch(e=>{r.emit(rt,[e])}).finally(()=>{n()}):n()}function A(e){const t=this.params,n=this.metrics;if(this.ended)return;this.ended=!0;for(let t=0;t<Xe;t++)e.removeEventListener(Je[t],this.listener,!1);if(t.aborted)return;if((0,Ye.iW)(t))return;if(n.duration=this.endTime-this.startTime,this.loadCaptureCalled||4!==e.readyState?null==t.status&&(t.status=0):O(this,e),n.cbTime=this.cbTime,s){try{this.responseBody=e.responseText}catch(t){this.responseBody=e.response}if((!n.rxSize||0===n.rxSize)&&void 0!==this.responseBody&&0!==t.status){const e=Le(this.responseBody);void 0!==e&&(n.rxSize=e)}try{this.responseHeaders=function(e){const t={};return e?(e.split("\r\n").forEach(function(e){const r=e.indexOf(": ");if(r>0){const n=e.substring(0,r),i=e.substring(r+2);t[n.toLowerCase()]=i}}),t):t}(e.getAllResponseHeaders())}catch(e){r.emit(rt,[e])}}const i=[t,n,this.startTime,this.endTime,"xhr"];this.targets.forEach(e=>x(i,this,e))}function x(e,r,i){n("xhr",[...e,i],r,t.K7.ajax)}function O(e,n){e.params.status=n.status;var i=function(e,t){var r=e.responseType;return"json"===r&&null!==t?t:"arraybuffer"===r||"blob"===r||"json"===r?Le(e.response):"text"===r||""===r||void 0===r?Le(e.responseText):void 0}(n,e.lastSize);if(void 0!==i&&0!==n.status&&(e.metrics.rxSize=i),e.sameOrigin&&n.getAllResponseHeaders().indexOf(tt)>=0){var s=n.getResponseHeader(tt);s&&((0,S.p)("sm",["Ajax/CrossApplicationTracing/Header/Seen"],void 0,t.K7.metrics,r),e.params.cat=s.split(", ").pop())}e.loadCaptureCalled=!0}r.on("new-xhr",a),r.on("open-xhr-start",o),r.on("open-xhr-end",d),r.on("send-xhr-start",l),r.on("setRequestHeader-xhr-start",u),r.on("xhr-cb-time",f),r.on("xhr-load-added",h),r.on("xhr-load-removed",p),r.on("xhr-resolved",m),r.on("addEventListener-end",v),r.on("removeEventListener-end",y),r.on("fn-end",E),r.on("fetch-before-start",w),r.on("fetch-start",R),r.on("fn-start",b),r.on("fetch-done",T)}(e,this.ee,this.handler,this.dt),this.importAggregator(e,()=>r.e(478).then(r.bind(r,3845)))}}const it={},st=["pushState","replaceState"];function at(e,t){const r=function(e){return(e||R.ee).get("history")}(e);return!g.RI||it[r.debugId]++||(it[r.debugId]=1,(0,Pe.YM)(r,void 0,t).inPlace(window.history,st,"-")),r}var ot=r(3738);function ct(e){(0,N.Y)(k.BL,function(r=Date.now()){const n=r-g.WN;n<0&&(0,l.R)(62,r),(0,S.p)(q.XG,[k.BL,{time:n}],void 0,t.K7.metrics,e.ee),e.addToTrace({name:k.BL,start:r,origin:"nr"}),(0,S.p)("api-"+k.hG,[n,k.BL],void 0,t.K7.genericEvents,e.ee)},e)}const{He:dt,bD:ut,d3:lt,Kp:ft,TZ:ht,Lc:pt,uP:gt,Rz:mt}=ot;class vt extends W{static featureName=ht;constructor(e){var n;super(e,ht),n=e,(0,N.Y)(k.U2,function(e){if(!(e&&"object"==typeof e&&e.name&&e.start))return;const r={n:e.name,s:e.start-g.WN,e:(e.end||e.start)-g.WN,o:e.origin||"",t:"api"};r.s<0||r.e<0||r.e<r.s?(0,l.R)(61,{start:r.s,end:r.e}):(0,S.p)("bstApi",[r],void 0,t.K7.sessionTrace,n.ee)},n),ct(e);
403if(!(0,j.V)(e.init))return void this.deregisterDrain();const i=this.ee;let s;at(i,e),this.eventsEE=(0,Me.u)(i,e),this.eventsEE.on(gt,function(e,t){this.bstStart=(0,_.t)()}),this.eventsEE.on(pt,function(e,r){(0,S.p)("bst",[e[0],r,this.bstStart,(0,_.t)()],void 0,t.K7.sessionTrace,i)}),i.on(mt+lt,function(e){this.time=(0,_.t)(),this.startPath=location.pathname+location.hash}),i.on(mt+ft,function(e){(0,S.p)("bstHist",[location.pathname+location.hash,this.startPath,this.time],void 0,t.K7.sessionTrace,i)});try{s=new PerformanceObserver(e=>{const r=e.getEntries();(0,S.p)(dt,[r],void 0,t.K7.sessionTrace,i)}),s.observe({type:ut,buffered:!0})}catch(e){}this.importAggregator(e,()=>r.e(478).then(r.bind(r,6974)),{resourceObserver:s})}}var yt=r(733),bt=r(6344);class Et extends W{static featureName=bt.TZ;#i;recorder;constructor(e){var n;let i;super(e,bt.TZ),n=e,(0,N.Y)(k.CH,function(){(0,S.p)(k.CH,[],void 0,t.K7.sessionReplay,n.ee)},n),function(e){(0,N.Y)(k.Tb,function(){(0,S.p)(k.Tb,[],void 0,t.K7.sessionReplay,e.ee)},e)}(e);const s="".concat(u.Wt).concat((0,yt.Y)(e.info.licenseKey,e.info.applicationID));try{i=JSON.parse(localStorage.getItem(s))}catch(e){}(0,I.SR)(e.init)&&this.ee.on(k.CH,()=>this.#s()),this.#a(i)&&this.importRecorder().then(e=>{e.startRecording(bt.Qb.PRELOAD,i?.sessionReplayMode)}),this.abortHandler=this.#n,this.importAggregator(this.agentRef,()=>r.e(478).then(r.bind(r,6167)),this),this.ee.on("err",e=>{this.blocked||this.agentRef.runtime.isRecording&&(this.errorNoticed=!0,(0,S.p)(bt.Vh,[e],void 0,this.featureName,this.ee))})}#a(e){return e&&(e.sessionReplayMode===u.g.FULL||e.sessionReplayMode===u.g.ERROR)||(0,I.Aw)(this.agentRef.init)}importRecorder(){return this.recorder?Promise.resolve(this.recorder):(this.#i??=Promise.all([r.e(478),r.e(249)]).then(r.bind(r,4866)).then(({Recorder:e})=>(this.recorder=new e(this),this.recorder)).catch(e=>{throw this.ee.emit("internal-error",[e]),this.blocked=!0,e}),this.#i)}#s(){this.blocked||(this.featAggregate?this.featAggregate.mode!==u.g.FULL&&this.featAggregate.initializeRecording(u.g.FULL,!0,bt.Qb.API):this.importRecorder().then(()=>{this.recorder.startRecording(bt.Qb.API,u.g.FULL)}))}#n(){this.recorder?.stopRecording()}}var wt=r(3962);class Rt extends W{static featureName=wt.TZ;constructor(e){if(super(e,wt.TZ),function(e){const r=e.ee.get("tracer");function n(){}(0,N.Y)(k.dT,function(e){return(new n).get("object"==typeof e?e:{})},e);const i=n.prototype={createTracer:function(n,i){var s={},a=this,o="function"==typeof i;return(0,S.p)(q.xV,["API/createTracer/called"],void 0,t.K7.metrics,e.ee),function(){if(r.emit((o?"":"no-")+"fn-start",[(0,_.t)(),a,o],s),o)try{return i.apply(this,arguments)}catch(e){const t="string"==typeof e?new Error(e):e;throw r.emit("fn-err",[arguments,this,t],s),t}finally{r.emit("fn-end",[(0,_.t)()],s)}}}};["actionText","setName","setAttribute","save","ignore","onEnd","getContext","end","get"].forEach(r=>{N.Y.apply(this,[r,function(){return(0,S.p)(k.hw+r,[performance.now(),...arguments],this,t.K7.softNav,e.ee),this},e,i])}),(0,N.Y)(k.PA,function(){(0,S.p)(k.hw+"routeName",[performance.now(),...arguments],void 0,t.K7.softNav,e.ee)},e)}(e),!g.RI||!(0,i.dV)().o.MO)return;const n=at(this.ee,e);try{this.removeOnAbort=new AbortController}catch(e){}wt.tC.forEach(e=>{(0,J.sp)(e,e=>{c(e)},!0,this.removeOnAbort?.signal)}
403);const s=()=>(0,S.p)("newURL",[(0,_.t)(),""+window.location],void 0,this.featureName,this.ee);n.on("pushState-end",s),n.on("replaceState-end",s),(0,J.sp)(wt.OV,e=>{c(e),(0,S.p)("newURL",[e.timeStamp,""+window.location],void 0,this.featureName,this.ee)},!0,this.removeOnAbort?.signal);let a=!1;const o=new((0,i.dV)().o.MO)((e,t)=>{a||(a=!0,requestAnimationFrame(()=>{(0,S.p)("newDom",[(0,_.t)()],void 0,this.featureName,this.ee),a=!1}))}),c=(0,C.s)(e=>{"loading"!==document.readyState&&((0,S.p)("newUIEvent",[e],void 0,this.featureName,this.ee),o.observe(document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}))},100,{leading:!0});this.abortHandler=function(){this.removeOnAbort?.abort(),o.disconnect(),this.abortHandler=void 0},this.importAggregator(e,()=>r.e(478).then(r.bind(r,4393)),{domObserver:o})}}var Tt=r(981);const At={},St=new Set;function xt(e){return"string"==typeof e?{type:"string",size:(new TextEncoder).encode(e).length}:e instanceof ArrayBuffer?{type:"ArrayBuffer",size:e.byteLength}:e instanceof Blob?{type:"Blob",size:e.size}:e instanceof DataView?{type:"DataView",size:e.byteLength}:ArrayBuffer.isView(e)?{type:"TypedArray",size:e.byteLength}:{type:"unknown",size:0}}class Ot{constructor(e,t){this.timestamp=(0,_.t)(),this.currentUrl=(0,Ee.L)(window.location.href),this.socketId=(0,ye.LA)(8),this.requestedUrl=(0,Ee.L)(e),this.requestedProtocols=Array.isArray(t)?t.join(","):t||"",this.openedAt=void 0,this.protocol=void 0,this.extensions=void 0,this.binaryType=void 0,this.messageOrigin=void 0,this.messageCount=0,this.messageBytes=0,this.messageBytesMin=0,this.messageBytesMax=0,this.messageTypes=void 0,this.sendCount=0,this.sendBytes=0,this.sendBytesMin=0,this.sendBytesMax=0,this.sendTypes=void 0,this.closedAt=void 0,this.closeCode=void 0,this.closeReason="unknown",this.closeWasClean=void 0,this.connectedDuration=0,this.hasErrors=void 0}}class _t extends W{static featureName=o.TZ;constructor(e){super(e,o.TZ);const n=e.init.feature_flags.includes("websockets")||e.init.web_sockets?.enabled,s=!e.init.feature_flags.includes("no_spv"),a=[e.init.page_action.enabled,e.init.performance.capture_marks,e.init.performance.capture_measures,e.init.performance.resources.enabled,e.init.user_actions.enabled,n,s];var c;let d;if(c=e,(0,N.Y)(k.hG,(e,t)=>ce(e,t,c),c),function(e){(0,N.Y)(k.fF,(t,r)=>ue(t,r,e),e)}(e),ct(e),Se(e),function(e){(0,N.Y)(k.V1,(t,r)=>de(t,r,e),e)}(e),this.removeOnAbort=new AbortController,this.abortHandler=()=>{this.removeOnAbort.abort(),this.abortHandler=void 0},n){const u=function(e,t){if(!(0,i.dV)().o.WS)return e;const r=e.get("websockets");if(At[r.debugId]++)return r;At[r.debugId]=1,(0,V.G)(()=>{const e=(0,_.t)();St.forEach(t=>{t.nrData.closedAt=e,t.nrData.closeCode=1001,t.nrData.closeReason="Page navigating away",t.nrData.closeWasClean=!1,t.nrData.openedAt&&(t.nrData.connectedDuration=e-t.nrData.openedAt),r.emit("ws",[t.nrData,t.targets],t)})});
403class n extends WebSocket{static name=Tt.R.WS;static toString(){return"function WebSocket() { [native code] }"}toString(){return"[object WebSocket]"}get[Symbol.toStringTag](){return n.name}#o(e){(e.__newrelic??={}).socketId=this.nrData.socketId,this.nrData.hasErrors??=!0}constructor(...e){super(...e),this.nrData=new Ot(e[0],e[1]),this.targets=(0,Ie.$5)(t),this.addEventListener("open",()=>{this.nrData.openedAt=(0,_.t)(),["protocol","extensions","binaryType"].forEach(e=>{this.nrData[e]=this[e]}),St.add(this)}),this.addEventListener("message",e=>{const{type:t,size:r}=xt(e.data);this.nrData.messageOrigin??=(0,Ee.L)(e.origin),this.nrData.messageCount++,this.nrData.messageBytes+=r,this.nrData.messageBytesMin=Math.min(this.nrData.messageBytesMin||1/0,r),this.nrData.messageBytesMax=Math.max(this.nrData.messageBytesMax,r),(this.nrData.messageTypes??"").includes(t)||(this.nrData.messageTypes=this.nrData.messageTypes?"".concat(this.nrData.messageTypes,",").concat(t):t)}),this.addEventListener("close",e=>{this.nrData.closedAt=(0,_.t)(),this.nrData.closeCode=e.code,e.reason&&(this.nrData.closeReason=e.reason),this.nrData.closeWasClean=e.wasClean,this.nrData.connectedDuration=this.nrData.closedAt-this.nrData.openedAt,St.delete(this),r.emit("ws",[this.nrData,this.targets],this)})}addEventListener(e,t,...r){const n=this,i="function"==typeof t?function(...e){try{return t.apply(this,e)}catch(e){throw n.#o(e),e}}:t?.handleEvent?{handleEvent:function(...e){try{return t.handleEvent.apply(t,e)}catch(e){throw n.#o(e),e}}}:t;return super.addEventListener(e,i,...r)}send(e){if(this.readyState===WebSocket.OPEN){const{type:t,size:r}=xt(e);this.nrData.sendCount++,this.nrData.sendBytes+=r,this.nrData.sendBytesMin=Math.min(this.nrData.sendBytesMin||1/0,r),this.nrData.sendBytesMax=Math.max(this.nrData.sendBytesMax,r),(this.nrData.sendTypes??"").includes(t)||(this.nrData.sendTypes=this.nrData.sendTypes?"".concat(this.nrData.sendTypes,",").concat(t):t)}try{return super.send(e)}catch(e){throw this.#o(e),e}}close(...e){try{super.close(...e)}catch(e){throw this.#o(e),e}}}return g.gm.WebSocket=n,r}(this.ee,e);u.on("ws",(e,t)=>{(0,S.p)("ws-complete",[e,t],void 0,this.featureName,this.ee)})}if(s){if("function"==typeof g.gm.ReportingObserver){const l=new g.gm.ReportingObserver(e=>{e.forEach(e=>{(0,S.p)("spv",[kt(e),(0,_.t)()],void 0,t.K7.genericEvents,this.ee)}),l.disconnect()},{types:["csp-violation"],buffered:!0});l.observe()}g.gm.addEventListener("securitypolicyviolation",e=>{(0,S.p)("spv",[kt(e),e.timeStamp],void 0,t.K7.genericEvents,this.ee)},(0,J.jT)(!1,this.removeOnAbort.signal))}if(g.RI){if(ze(this.ee,e),De(this.ee,e),d=at(this.ee,e),e.init.user_actions.enabled){function f(t){const r=(0,Ge.D)(t);return e.beacons.includes(r.hostname+":"+r.port)}function h(){d.emit("navChange")}o.Zp.forEach(e=>(0,J.sp)(e,e=>(0,S.p)("ua",[e],void 0,this.featureName,this.ee),!0)),o.qN.forEac
403h(e=>{const t=(0,C.s)(e=>{(0,S.p)("ua",[e],void 0,this.featureName,this.ee)},500,{leading:!0});(0,J.sp)(e,t)}),g.gm.addEventListener("error",()=>{(0,S.p)("uaErr",[],void 0,t.K7.genericEvents,this.ee)},(0,J.jT)(!1,this.removeOnAbort.signal)),this.ee.on("open-xhr-start",(e,r)=>{f(e[1])||r.addEventListener("readystatechange",()=>{2===r.readyState&&(0,S.p)("uaXhr",[],void 0,t.K7.genericEvents,this.ee)},(0,J.jT)(void 0,this.removeOnAbort.signal))}),this.ee.on("fetch-start",e=>{e.length>=1&&!f(Ze(e[0]))&&(0,S.p)("uaXhr",[],void 0,t.K7.genericEvents,this.ee)}),d.on("pushState-end",h),d.on("replaceState-end",h),window.addEventListener("hashchange",h,(0,J.jT)(!0,this.removeOnAbort.signal)),window.addEventListener("popstate",h,(0,J.jT)(!0,this.removeOnAbort.signal))}if(e.init.performance.resources.enabled&&g.gm.PerformanceObserver?.supportedEntryTypes.includes("resource")){new PerformanceObserver(e=>{e.getEntries().forEach(e=>{(0,S.p)("browserPerformance.resource",[e],void 0,this.featureName,this.ee)})}).observe({type:"resource",buffered:!0})}}a.some(e=>e)?this.importAggregator(e,()=>r.e(478).then(r.bind(r,8019))):this.deregisterDrain()}}function kt(e){const t=e.body??e;return{blockedUrl:t.blockedURL??e.blockedURI,documentUrl:t.documentURL??e.documentURI,effectiveDirective:t.effectiveDirective,originalPolicy:t.originalPolicy,sourceFile:t.sourceFile,statusCode:t.statusCode,lineNumber:t.lineNumber,columnNumber:t.columnNumber,disposition:"reporting"===t.disposition?"report":t.disposition,sample:t.sample,referrer:t.referrer}}var Nt=r(2646);const Lt=new Map;function Mt(e,t,r,n,i=!0,s){if("object"!=typeof t||!t||"string"!=typeof r||!r||"function"!=typeof t[r])return(0,l.R)(29);const a=function(e){return(e||R.ee).get("logger")}(e),o=(0,Pe.YM)(a,void 0,s),c=new Nt.y(R.P);c.level=n.level,c.customAttributes=n.customAttributes,c.autoCaptured=i;const d=t[r]?.[Pe.Jt]||t[r];return Lt.set(d,c),o.inPlace(t,[r],"wrap-logger-",()=>Lt.get(d),void 0,!0),a}var Pt=r(1910);class It extends W{static featureName=se.TZ;constructor(e){var t;super(e,se.TZ),t=e,(0,N.Y)("log",(e,r)=>oe(e,r,t),t),function(e){(0,N.Y)(k.Wb,(t,r,{customAttributes:n={},level:i=se.p_.INFO}={})=>{Mt(e.ee,t,r,{customAttributes:n,level:i},!1,e)},e)}(e),Se(e);const n=this.ee;["log","error","warn","info","debug","trace"].forEach(t=>{(0,Pt.i)(g.gm.console[t]),Mt(n,g.gm.console,t,{level:"log"===t?"info":t},void 0,e)}),this.ee.on("wrap-logger-end",function([t],r,i,s=[e.runtime.v2Target]){const{level:a,customAttributes:o,autoCaptured:c}=this;s.forEach(e=>{(0,ae.R)(n,t,o,a,c,e)})}),this.importAggregator(e,()=>r.e(478).then(r.bind(r,5288)))}}new F({features:[nt,K,G,vt,Et,Y,Oe,_t,It,Rt],loaderType:"spa"})})()})();</script>
403</head> 404<body class="allBlogs theme3"> 405 406 407 408 409 410 411 412 413<div class="header spectre fixed" 414 style="background-color: #333333;"> 415 416 <header class="navbar container" style="min-height: 80px;"> 417 418 <div id="navbar-section-btn"> 419 420 <a class="btn btn-link btn-action ml-2" id="header-collapse-btn" href="javascript:void(0);"> 421 <i class="icon-menu material-icons">menu</i> 422 </a> 423 </div> 424 <section class="navbar-section" style="min-height: 80px;"> 425 <a href="/" amplitude-event="navbar_link_tapped_user_landing_page" amplitude-payload='{"custom_domain": "www.loss2profit.com","button":"profile_logo"}'><img alt="logo" onerror="this.src='https://d502jbuhuh9wk.cloudfront.net/resources/images/yourlogohere.jpg'" src='https://d502jbuhuh9wk.cloudfront.net/logos/64bb94ebe4b0539686c35283.png?v=3'/></a> 426 </section> 427 428 <section class="navbar-section menu-links"> 429 430 <a href="/s/store" class="nav-link" data-id="courses" amplitude-event="navbar_link_tapped_user_landing_page" amplitude-payload='{"custom_domain": "www.loss2profit.com","button":"store"}'>Courses</a> 431 432 433 <a href="/blog" class="nav-link" data-id="blog" amplitude-event="navbar_link_tapped_user_landing_page" amplitude-payload='{"custom_domain": "www.loss2profit.com","button":"blog"}'>Blog</a> 434 435 436 437 438 <a class="nav-link" href="/s/pages/customersupport" data-id="stse4loaz" target='_blank'>Customer Support</a> 439 440 <a class="nav-link" href="/s/pages/affiliateprogram" data-id="083r0dd83" target='_blank'>Become an Affiliate</a> 441 442 <a class="nav-link" href="/s/pages/algotrading" data-id="wwar5lb92" target='_blank'>Algo Trading</a> 443 444 <a class="nav-link" href="/s/pages/t-shirts" data-id="2hb7viqpt" target='_blank'>T-Shirts</a> 445 446 447 448 449 <a href="/sessions#nav_bar" class="nav-link" amplitude-event="livesessions_tapped" amplitude-payload='{"source":"nav_bar"}' href="javascript:void(0);">Webinars</a> 450 451 452 <a href="/products#nav_bar" class="nav-link" amplitude-event="digital_products_tapped" amplitude-payload='{"source":"nav_bar"}' href="javascript:void(0);">Digital Products</a> 453 454 455 <a href="/memberships" class="nav-link" amplitude-event="membership_tapped" amplitude-payload='{"membership_id": "65005d1bf6192a7c0c9be9c9","source":"nav_bar"}' href="javascript:void(0);">Membership</a> 456 457 458 459 460 461 462 463 464 <a href="javascript:void(0);" class="btn btn-primary loginBtn">Login</a> 465 466 467 </section> 468 </header> 469 470 471</div> 472 473 474 475 <div class="spectre"> 476 <div class="main container" style="margin-top: 80px;"> 477 <div class="columns"> 478 <div class="column col-8 col-sm-12 col-mr-auto"> 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 <div style="padding: 50px 0; border-bottom: 1px dotted #ccc;"> 494 495 <h2><a target="_top" href="/blog/the-1-trading-mistake">The #1 Trading Mistake</a></h2> 496 <div class='text-gray'><i class="material-icons icon-text">access_time</i> <span class="isoDateTime icon-text">2025-04-26T14:57:59.5Z</span> <i class="material-icons icon-text">face</i> <span class='icon-text'>Loss2profit</span></div> 497 <div class="text-justify" style="margin:15px 0;"> The #1 Trading Mistake: Letting Emotions Control You When people think about trading mistakes, they often imagine bad strategies, wrong indicators, or poor market analysis. But the biggest mistake — the one that wipes out accounts faster than any bad stock pick — is emotional trading. 🎯 What is Em...</div> 498 <div class="text-right mt-2"><a target="_top" href="/blog/the-1-trading-mistake" class="btn btn-sm btn-primary">Read More</a></div> 499 </div> 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 <div style="padding: 50px 0; border-bottom: 1px dotted #ccc;"> 515 516 <a class="rounded d-block" target="_top" href="/blog/should-we-leave-our-job-for-becoming-full-time-trader" style="height:250px;margin-bottom:25px;background: url(https://d502jbuhuh9wk.cloudfront.net/articles/64e8602be4b035387ef9a8cc/cover.jpg?v=2) no-repeat;background-size:contain;background-position: center;"></a> 517 518 <h2><a target="_top" href="/blog/should-we-leave-our-job-for-becoming-full-time-trader">Should we Leave our Job For Becoming Full Time Trader</a></h2> 519 <div class='text-gray'><i class="material-icons icon-text">access_time</i> <span class="isoDateTime icon-text">
5191692950520000</span> <i class="material-icons icon-text">face</i> <span class='icon-text'>Saurabh</span></div> 520 <div class="text-justify" style="margin:15px 0;">Should we leave our Job to become a Full-Time Trader? Becoming a full-time trader can be an exciting prospect, but it’s important to weigh the risks and benefits before making a decision. Here are some key points to consider: Financial Stability: One of the biggest risks of becoming a full-time trad...</div> 521 <div class="text-right mt-2"><a target="_top" href="/blog/should-we-leave-our-job-for-becoming-full-time-trader" class="btn btn-sm btn-primary">Read More</a></div> 522 </div> 523 524 525 526 527 528 529 530 <div class="clearfix mt-2"> 531 532 533 </div> 534 535 </div> 536 <div class="column col-3 col-sm-12" style="padding-top:50px;"> 537 <ul class="menu" style="box-shadow: none;"> 538 <li class="divider" data-content="Categories"></li> 539 540 <li class="menu-item"> 541 542 <a target="_top" href="/blog/category?cat=Trading">Trading (2)</a> 543 </li> 544 545 </ul> 546 </div> 547 </div> 548 </div> 549 </div> 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566<div class="yogya-footer" style="display: flex !important;align-items:center;justify-content:center;clear:both;width: 100%;flex-direction: column; row-gap:30px; background: #F7F7F7; color: #232228; padding: 80px 10px;"> 567 568 569 570 571 572 573 <a style="display: flex !important;align-items:center;justify-content:center;text-decoration: none !important;background: #000 !important;color: #fff !important;padding: 12px 20px !important;border-radius: 4px !important;font-size: 14px !important;font-weight: 600 !important;line-height: 20px !important;" rel="nofollow" href="https://graphy.com/products/create-and-sell-course-online?utm_campaign=loss2profit&utm_source=gc&utm_device=website&gref=loss2profit" target="_blank"><img alt="Launch your Graphy" style="height: 20px; width: 11px; margin-right: 12px;" src="/resources/images/grvector.svg">Launch your Graphy</a> 574 <div class="text-center" style="font-size: 12px;font-weight: 400;line-height: 20px;letter-spacing: 0.015em;">100K+ creators trust <a href="https://graphy.com/products/create-and-sell-course-online?utm_campaign=loss2profit&utm_source=gc&utm_device=website&gref=loss2profit" target="_blank" rel="nofollow" style="color: #000 !important;text-decoration: underline !important;padding: 0 !important;font-size: inherit !important;">Graphy</a> to teach online</div> 575 576 577 578 579 <div style="display: flex !important;align-items:center;justify-content:center;column-gap: 12px;"> 580 <a href="https://www.facebook.com/Loss2Profits" class="fbPage" target="_blank" style="text-decoration: none !important;color:#000 !important;font-size: inherit !important;height:24px;width:24px;border: 1px solid #E5E5E5;display: flex;align-items:center;justify-content:center;"><i class="fa-brands fa-facebook-f" style="font-size: 11px"></i></a> 581 <a href="https://www.instagram.com/loss2profit/" class="instaPage" target="_blank" style="text-decoration: none !important;color:#000 !important;font-size: inherit !important;height:24px;width:24px;border: 1px solid #E5E5E5;display: flex;align-items:center;justify-content:center;"><i class="fa-brands fa-instagram" style="font-size: 11px"></i></a> 582 <a href="https://twitter.com/Loss2P" class="twitterPage" target="_blank" style="text-decoration: none !important;color:#000 !important;font-size: inherit !important;height:24px;width:24px;border: 1px solid #E5E5E5;display: flex;align-items:center;justify-content:center;" ><span style="font-size: 11px">𝕏</span></a> 583 <a href="https://www.linkedin.com/company/graphyapp" class="linkedinPage" target="_blank" style="text-decoration: none !important;color:#000 !important;font-size: inherit !important;height:24px;width:24px;border: 1px solid #E5E5E5;display: flex;align-items:center;justify-content:center;" ><i class="fa-brands fa-linkedin-in" style="font-size: 11px"></i></a> 584 <a href="https://www.youtube.com/c/GraphyUniversity" class="yPage" target="_blank" style="text-decoration: none !important;color:#000 !important;font-size: inherit !important;height:24px;width:24px;border: 1px solid #E5E5E5;
584display: flex;align-items:center;justify-content:center;" ><i class="fa-brands fa-youtube" style="font-size: 11px"></i></a> 585 <a href="" class="telegramPage" target="_blank" style="text-decoration: none !important;color:#000 !important;font-size: inherit !important;height:24px;width:24px;border: 1px solid #E5E5E5;display: flex;align-items:center;justify-content:center;" ><i class="fa-brands fa-telegram" style="font-size: 11px"></i></a> 586 </div> 587 <div style="display: flex !important;align-items:center;justify-content:center;font-size: 14px;font-weight: 500;line-height: 20px;letter-spacing: 0.015em;column-gap: 12px;flex-wrap: wrap;"> 588 <span>Loss2profit <i class="fa-regular fa-copyright"></i> 2026</span> <i class="fa-solid fa-circle" style="font-size: 4px;"></i> 589 <a href="/privacypolicy" style="color: #232228 !important; padding: 0 !important;font-size: inherit !important;text-decoration: underline !important">Privacy policy</a> <i class="fa-solid fa-circle" style="font-size: 4px;"></i> 590 <a href="/termsofuse" style="color: #232228 !important;padding: 0 !important;font-size: inherit !important;text-decoration: underline !important">Terms of use</a> <i class="fa-solid fa-circle" style="font-size: 4px;"></i> 591 <a href="/contactus" style="color: #232228 !important;padding: 0 !important;font-size: inherit !important;text-decoration: underline !important">Contact us</a> <i class="fa-solid fa-circle" style="font-size: 4px;"></i> 592 <a href="/refundpolicy" style="color: #232228 !important;padding: 0 !important;font-size: inherit !important;text-decoration: underline !important">Refund policy</a> 593 </div> 594</div> 595 596 597 598 599 600 601 602 603 604 605 606 607 608
609<script>const customDomain = "www.loss2profit.com";</script>
609 610 611 612 613
614<script> 615var disabledLocleVar='Disabled'; 616var enabledLocaleVar='Enabled'; 617var smsLocaleVar='SMS'; 618var webpushLocaleVar='Web Push'; 619var mobilepushLocaleVar='Mobile Push'; 620var invoicenumberLocaleVar='Invoice Number'; 621var productLocaleVar='Product'; 622var dateLocaleVar='Date'; 623var amountLocaleVar='Amount'; 624var detailsLocaleVar='Details'; 625var subscriptionPlanLocaleVar='Subscription Plan'; 626var addonsLocaleVar='Add Ons'; 627var showLocalVar='Show'; 628var hideLocaleVar='Hide'; 629</script>
629 630<div class="spectre"> 631 632 633 634 635 636 637 638
638<script> 639 var isPopupLogin = true; 640 var login = ''; 641 var message = ''; 642 function closeLoginPopup() { 643 $("#loginFormHtml").removeClass("active"); 644 $("body").removeClass("overflowYDisable"); 645 } 646 </script>
646 647 648 649 650 651 652 653 <div class="modal" id="loginFormHtml"> 654 <iframe id="microfe-popup-login" src="/t/public/login" loading="lazy" 655 style="width: calc(100% + 10px); height: 100vh; border: none;" 656 onload="$(this).parent().removeClass('loading');"></iframe> 657 </div> 658 659 660 661 662 663 <div class="modal" id="cartHtml"> 664 <a href="javascript:void(0);" class="modal-overlay close" 665 aria-label="Close"></a> 666 <div class="modal-container" style="max-width: 800px;"> 667 <div class="modal-header"> 668 <a href="javascript:void(0);" 669 class="close btn btn-clear float-right" aria-label="Close"></a> 670 <div class="modal-title h5"> 671 <i class="fa-regular fa-shopping-cart"></i> 672 Cart 673 (<span class="cartCount"></span> 674 Items 675 ) 676 </div> 677 </div> 678 <div class="modal-body" style="max-height: 70vh;"> 679 <div class="content"> 680 681 <div class="text-center msg loading"></div> 682 <div class="text-center msg noItems" style="display: none;"> 683 There are no items in your cart<br/> 684 <a class="btn btn-primary" href="/s/store" 685 style="margin: 20px auto;"> 686 Add More 687 </a> 688 </div> 689 <div class="items msg" style="display: none;"> 690 <div class="m-0 cartDiv"> 691 <table class="table cartTable"> 692 <thead> 693 <tr> 694 <th colspan="2">Item Details</th> 695 <th class="text-right">Price</th> 696 <th style="width: 50px;"></th> 697 </tr> 698 </thead> 699 <tbody></tbody> 700 </table> 701 </div> 702 <div class="suggestCart mt-2 bg-gray p-2" style="display: none;"> 703 <h6>You may also be interested in</h6> 704 <div class="columns loading" id="cartRelatedCont"></div> 705 </div> 706 </div> 707 </div> 708 </div> 709 <div class="modal-footer"> 710 <div class="msg items clearfix"> 711 712 713 714 <div class="float-left text-gray"> 715 Note: Promo Codes can be applied after checkout 716 </div> 717 718 719 720 <div class="float-right"> 721 Total Amount 722 <span class="text-primary curr">₹<span 723 class="totalAmount">0</span></span> 724 </div> 725 </div> 726 <div class="msg items clearfix mt-2"> 727 <a class="btn float-left" href="/s/store" amplitude-event="add_more_course_checkout"> 728 Add More 729 </a> 730 731 732 733 734 735 736 737 <a class="btn btn-primary float-right" href="/s/checkout" amplitude-event="checkout_tapped_course_checkout" amplitude-payload='{"currency": "INR" }'>Checkout</a> 738 </div> 739 </div> 740 </div> 741 </div> 742 <div class="modal" id="newCheckoutHtml" style="padding: 0; z-index: 10000;"> 743 <div id="newCheckoutLoader" class="loading loading-lg" style="position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);width: 100%;height: 100%;background-color: rgba(0, 0, 0, 0.5); z-index: 1000;display:none;"></div> 744 <!-- <a href="javascript:void(0);" class="modal-overlay close" 745 aria-label="Close"></a> 746 <div class="modal-container" style=""> --> 747 748 749 <iframe onload="hideCheckoutLoader()" id="newCheckoutIframe" sandbox="allow-top-navigation allow-modals allow-popups allow-presentation allow-orientation-lock allow-pointer-lock allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-scripts allow-same-origin allow-forms" style = "width: calc(100% + 10px); height: 100%; border: none;" src=""></iframe> 750 751 <!-- </div> --> 752 </div> 753</div> 754
755<script type="text/template" id="cartItemTemplate"> 756 <tr data-id="<@- item.id @>" data-type="<@- item.type @>" data-title="<@- item.title @>" data-price="<@- item.price @>" data-coursecategory="<@- item.courseCategory @>"> 757 <@ var itemType = item.type; @> 758 <td style="width:150px;"> 759 <@ var curl = "https://d502jbuhuh9wk.cloudfront.net/courses/"+ item.id +"/"+ item.id +"_scaled_cover.jpg?v=" + coverVersion; if(isNaN(coverVersion)) { curl = showCourseDefaultCover(null, item.id) } @> 760 <img alt="<@- item.title @> cover" style="width:100%;max-height:100px;" class="img-fit-contain lazy" onerror="showCourseDefaultCover(this, '<@- item.id @>')" 761 data-src='<@- curl @>' /> 762 </td> 763 <td class="itemTitle"><@- item.title @><@ if(item.description !== undefined) { @><div class='text-gray variantDescription'><@ print(item.description) @></div><@ } @></td> 764 <td class="text-right curr"><@ if(item.priceWithoutTax !== undefined && 'Tax' != '') { @><@ print(getDisplayAmount(item.priceWithoutTax)) @><br><small><@ print(getDisplayAmount(item.price)) @> incl. <@- item.gstRate @>% Tax</small><@ } else { @><@ print(getDisplayAmount(item.price)) @> <@ if(item.gstRate > 0 && 'Tax' != '') { print("<br><small>incl. " +item.gstRate+"% Tax</small>") } @><@ } @> 765 <@ if(item.pgChargesLearnerPercent !==undefined && getDisplayAmount(item.pgChargesLearnerPercent).includes('₹')) {@> <br><small>Internet handling fees: <@print(getDisplayAmount(item.pgChargesLearnerPercent/100*item.price))@></small> <@} @> 766 </td> 767 <td>
767<button class="btn btn-sm btn-error btn-action circle removeItemBtn" data-url="/s/cart/remove/<@- item.id @>"><i class="material-icons">clear</i></button></td> 768 </tr> 769 </script>
vendor: 1 bytes, line 769
769
770<script type="text/template" id="cartcoursecard-template"> 771 <div class="column col-2 col-md-4 scourse <@- item['spayee:resource']['spayee:courseType'] @>" title="<@- item["spayee:resource"]["spayee:title"] @>"> 772 <a class="card" title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>"> 773 <@ var curl = "https://d502jbuhuh9wk.cloudfront.net/courses/"+ item._id +"/"+ item._id +"_scaled_cover.jpg?v=" + item["spayee:resource"]["spayee:coverVersion"]; if(isNaN(item["spayee:resource"]["spayee:coverVersion"])) { curl = showCourseDefaultCover(null, item._id) } @> 774 <img style="width: 100%;" alt="<@- item['spayee:resource']['spayee:title'] @> cover" class="lazy" data-src="<@- curl @>" onerror="showCourseDefaultCover(this, '<@- item._id @>')"> 775 <div class="card-footer" style="padding: 0.2rem;"><span class="ctitle text-ellipsis d-block" style="color:#2f4f4f;font-size:small;"><@- item["spayee:resource"]["spayee:title"] @></span></div> 776 </a> 777 </div> 778 </script>
vendor: 1 bytes, line 778
778
779<script type="text/template" id="coursecard-template"> 780 <div class="column scourse <@- item['spayee:resource']['spayee:courseType'] @> hidePackageRibbon<@- item['spayee:resource']['spayee:hidePackageRibbon'] @>"> 781 782 783 784 <@ var itemCategory = (item['spayee:resource']['spayee:filter1'] !== undefined)? item['spayee:resource']['spayee:filter1'][0]:'' @> 785 786 <a class="card courseDiscId" style="height:100%" title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" data-id="<@- item._id@>" data-dcid="<@-item._id@>" 787 amplitude-event="course_card_tapped_checkout" 788 amplitude-payload='{"<@- item['spayee:resource']['spayee:courseType']== 'package' ? "package_id" : "course_id" @>": "<@- item._id @>","is_a_package":"<@- item['spayee:resource']['spayee:courseType']== 'package' ? "true" : "false" @>","price_on_card":"<@- removeCurrencySymbol(getCourseDisplayPrice('₹', '', item, '0.0', '', false)) @>","currency":"INR","multiple_pricing_plans_exist":"<@- isMultiplePlansAvailable('', item) @>","wallet_coins_enabled_on_school":"true","category":"<@- itemCategory @>"}' 789 > 790 791 792 793 <div class="card-image relative <@ print(item["spayee:resource"]["spayee:availableForMembership"] ? 'includedInMembership' : '') @>"> 794 <@ var curl = "https://d502jbuhuh9wk.cloudfront.net/courses/"+ item._id + "/" + item._id +"_scaled_cover.jpg?v=" + item["spayee:resource"]["spayee:coverVersion"]; if(isNaN(item["spayee:resource"]["spayee:coverVersion"])) { curl = showCourseDefaultCover(null, item._id); } @> 795 <div class="blurbg lazy" data-bg="<@- curl @>"></div> 796 <img alt="<@- item['spayee:resource']['spayee:title'] @> cover" class="lazy" data-src="<@- curl @>" onerror="showCourseDefaultCover(this, '<@- item._id @>')"> 797 </div> 798 <div class="card-body text-ellipsis"> 799 <span class="ctitle" style="color:#2f4f4f;text-wrap: balance;overflow: hidden;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;"><@- item["spayee:resource"]["spayee:title"] @></span><br> 800 801 <@ if(item.rating !== undefined) { @> 802 <span class="text-gray ratingIcons icon-text"> 803 <@ for(var i=1;i<6;i++) { @> 804 <@ if(item.rating.avgRating >= i) { @><i class="material-icons text-primary">star</i><@ }else if(item.rating.avgRating > i-1 && item.rating.avgRating < i) { @><i class="material-icons text-primary">star_half</i><@ }else { @> 805 <i class="material-icons">star_border</i> 806 <@ } } @></span><small class="d-inline-block pl-1 text-dark"><@ print(formatRating(item['rating']['avgRating'])) @> (<@- item['rating']['total'] @> ratings)</small> 807 <@ }else { @> <span class="text-gray ratingIcons icon-text"> </span> <@ } @> 808 <br> 809 <span class="text-gray"> 810 <@ if(item['spayee:resource']['spayee:courseType'] === 'package') { @> 811 <@ print(item["courses-count"]!==undefined?item["courses-count"]:"0") @> Courses 812 <@ }else { @> 813 <@ print(item["spayee:resource"]["spayee:publisher"]!==undefined?htmlEntities(item["spayee:resource"]["spayee:publisher"]):" ") @> 814 <@ } @> 815 </span> 816 </div> 817 <div class="card-footer"> 818 <@ print(getCourseDisplayPrice('₹', '', item, '0.0', '', true)) @> 819 <span class="text-gray" style="font-size:small"> 820 <@ if(item['spayee:resource']['spayee:instalmentPlanId']!=null && item['spayee:resource']['spayee:instalmentPlanId'] !== "") { @> 821 <@ print(getCourseInstalmentDisplayPrice('', item))@> 822 <@ }else { @> 823 <@ " " @> 824 <@ } @> 825 </span> 826 </div> 827 <div style="padding: 0 0.8rem 0.8rem 0.8rem;"> 828 <span class="text-gray" style="font-size:small"> 829 <@ if(getMultiplePlanLabel('', item)>1) {@> 830 <i class="material-icons text-primary" style="font-size:small">discount</i> 831 <@ print(' Flexible pricing plans') } @> 832 </span> 833 </div> 834 </a> 835 </div> 836 </script>
836 837
838<script type="text/template" id="blogcard-template"> 839 <div class="column col-3 col-md-6 col-sm-6 col-xs-12 scourse" style="margin-bottom: 20px;"> 840 <a class="card" title="<@- item['spayee:resource']['spayee:title'] @>" href="/blog/<@- item['spayee:resource']['spayee:url'] @>"> 841 <div class="card-image relative"> 842 <@ if(item['spayee:resource']['spayee:cover'] !== undefined && item['spayee:resource']['spayee:cover']) { @> 843 <div class="blurbg lazy" data-bg="https://d502jbuhuh9wk.cloudfront.net/articles/<@- item._id @>/cover.jpg<@ print(item["spayee:resource"]["spayee:coverVersion"] !== undefined?"?v="+item["spayee:resource"]["spayee:coverVersion"]:"") @>"></div> 844 <img alt="<@- item['spayee:resource']['spayee:title'] @> cover" class="img-responsive centered relative lazy" style="max-height: 100%;" data-src="https://d502jbuhuh9wk.cloudfront.net/articles/<@- item._id @>/cover.jpg?v=<@- item['spayee:resource']['spayee:coverVersion'] @>" onerror="showCourseDefaultCover(this, '<@- item._id @>')"> 845 <@ }else { @> 846 <div class="blurbg lazy" data-bg="https://d502jbuhuh9wk.cloudfront.net/resources/images/defaultCourseCover.png"></div> 847 <img alt="<@- item['spayee:resource']['spayee:title'] @> cover" class="img-responsive centered relative lazy" style="max-height: 100%;" data-src='https://d502jbuhuh9wk.cloudfront.net/resources/images/defaultCourseCover.png'> 848 <@ } @> 849 </div> 850 <div class="card-body text-ellipsis"><span style="color:#2f4f4f;"><@- item["spayee:resource"]["spayee:title"] @></span></div> 851 <div class="card-footer" style="padding: 0.4rem;"> 852 <span class="text-gray float-left text-ellipsis" style="max-width: calc(100% - 110px);"><@ print(item["spayee:resource"]["spayee:author"]!==undefined?htmlEntities(item["spayee:resource"]["spayee:author"]):"") @></span> 853 <@ var pdate = item.createdDate.$date; if(item['spayee:resource']['spayee:publishDate'] !== undefined && item['spayee:resource']['spayee:publishDate'] !== '') { pdate = item['spayee:resource']['spayee:publishDate']; } @> 854 <time class="float-right text-warning"><@ print(formatDate(new Date(pdate))) @></time> 855 </div> 856 </a> 857 </div> 858 </script>
858 859 860
860<script type="text/javascript"> 861 var uuid = function (a) { 862 // https://github.com/amplitude/Amplitude-Javascript/blob/master/src/uuid.js 863 return a // if the placeholder was passed, return 864 ? // a random number from 0 to 15 865 ( 866 a ^ // unless b is 8, 867 ((Math.random() * // in which case 868 16) >> // a random number from 869 (a / 4)) 870 ) // 8 to 11 871 .toString(16) // in hexadecimal 872 : // or otherwise a concatenated string: 873 ( 874 [1e7] + // 10000000 + 875 -1e3 + // -1000 + 876 -4e3 + // -4000 + 877 -8e3 + // -80000000 + 878 -1e11 879 ) // -100000000000, 880 .replace( 881 // replacing 882 /[018]/g, // zeroes, ones, and eights with 883 uuid, // random hex digits 884 ); 885 }; 886 887 (function(e,t){var n=e.amplitude||{_q:[],_iq:{}};var r=t.createElement("script") 888 ;r.type="text/javascript" 889 ;r.integrity="sha384-tzcaaCH5+KXD4sGaDozev6oElQhsVfbJvdi3//c2YvbY02LrNlbpGdt3Wq4rWonS" 890 ;r.crossOrigin="anonymous";r.async=true 891 ;r.src="https://cdn.amplitude.com/libs/amplitude-8.5.0-min.gz.js" 892 ;r.onload=function(){if(!e.amplitude.runQueuedFunctions){ 893 console.log("[Amplitude] Error: could not load SDK")}} 894 ;var i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i) 895 ;function s(e,t){e.prototype[t]=function(){ 896 this._q.push([t].concat(Array.prototype.slice.call(arguments,0)));return this}} 897 var o=function(){this._q=[];return this} 898 ;var a=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove"] 899 ;for(var c=0;c<a.length;c++){s(o,a[c])}n.Identify=o;var u=function(){this._q=[] 900 ;return this} 901 ;var l=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"] 902 ;for(var p=0;p<l.length;p++){s(u,l[p])}n.Revenue=u 903 ;var d=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","enableTracking","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","groupIdentify","onInit","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId"] 904 ;function v(e){function t(t){e[t]=function(){ 905 e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}} 906 for(var n=0;n<d.length;n++){t(d[n])}}v(n);n.getInstance=function(e){ 907 e=(!e||e.length===0?"$default_instance":e).toLowerCase() 908 ;if(!Object.prototype.hasOwnProperty.call(n._iq,e)){n._iq[e]={_q:[]};v(n._iq[e]) 909 }return n._iq[e]};e.amplitude=n})(window,document); 910 911 amplitude.getInstance().init('e56929a4c3888c23e97a7e70e34ccf6c'); 912 amplitude.getInstance().setUserId(null); 913 //amplitude.getInstance().regenerateDeviceId(); 914 915 var userProperties = { 916 custom_domain: "www.loss2profit.com", 917 org_id: "64bb94ebe4b0539686c35283", 918 default_google_login_enabled: 'true' == 'true', 919 personalized_google_login_enabled: '' != '' && 'true' == 'false' ? true : false, 920 facebook_login_enabled: '' == 'true' ? true : false 921 }; 922 amplitude.getInstance().setUserProperties(userProperties); 923 924/* var deviceId = uuid(); 925 amplitude.getInstance().setDeviceId(deviceId); 926 sessionStorage.setItem('amplitudeDeviceId', deviceId); */ 927 </script>
927 928 929
929<script type="text/javascript"> 930 window.signupParams = {source: "store", platform: "web", sourceId: null}; 931 var showGraphyFomoFlag = ''; 932 933 showGraphyFomoFlag = '64bb94ebe4b0539686c35283'; 934 935 </script>
935 936 937
937<script type="text/javascript"> 938 function hideCheckoutLoader() { 939 if(typeof window.hideLoader =="function") { 940 window.hideLoader(); 941 } 942 } 943 var checkoutRedirectGuestUsers = 'signup'; 944 </script>
944 945 946 947 948 949 950
951<script type="text/template" id="spcoursecard-2-template"> 952 <div class="column third"> 953 <@ var planName = getCoursePlanName(sessionCountry, item), price = getCoursePrice(sessionCountry, item, '0.0', ''), isPackage = item['spayee:resource']['spayee.courseType'] == 'package', courseId = isPackage ? '' : item._id, packageId = isPackage ? item._id : ''; @> 954 <a title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" amplitude-event="buy_now_tapped_course_checkout" amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}' style="text-decoration: none;"> 955 <@ var curl = "https://d502jbuhuh9wk.cloudfront.net/courses/"+ item._id +"/"+ item._id +"_scaled_cover.jpg?v=" + item['spayee:resource']['spayee:coverVersion']; if(isNaN(item['spayee:resource']['spayee:coverVersion'])) { curl = showCourseDefaultCover(null, item._id); } @> 956 <img class="lazy" data-src="<@- curl @>" alt="<@- item['spayee:resource']['spayee:title'] @> cover" onerror="showCourseDefaultCover(this, '<@- item._id @>')"> 957 <h4 class="size-21 text-ellipsis" style="text-wrap: balance;overflow: hidden;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;"><@- item['spayee:resource']['spayee:title'] @></h4> 958 <p class="size-16"><@ if(item.rating !== undefined) { @> 959 <span class="text-gray ratingIcons icon-text"> 960 <@ for(var i=1;i<6;i++) { @> 961 <@ if(item.rating.avgRating >= i) { @><i class="material-icons text-primary">star</i><@ }else if(item.rating.avgRating > i-1 && item.rating.avgRating < i) { @><i class="material-icons text-primary">star_half</i><@ }else { @> 962 <i class="material-icons">star_border</i> 963 <@ } } @></span><span><@ print(formatRating(item['rating']['avgRating'])) @> (<@- item['rating']['total'] @> ratings)</span> 964 <@ }else { @> <span class="text-gray ratingIcons icon-text"> </span> <@ } @></p> 965 <p class="size-16 text-ellipsis"><@ if(item['spayee:resource']['spayee:courseType'] === 'package') { @><@ print(item["courses-count"]!==undefined?item["courses-count"]:"0") @> Courses<@ }else { @> 966 <@ print(item["spayee:resource"]["spayee:publisher"]!==undefined?item["spayee:resource"]["spayee:publisher"]:" ") @><@ } @></p> 967 968 <p class="size-18"><span style="color: rgb(21, 101, 192);"><@ print(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', true)) @></span><br></p> 969 <div style="margin:1em 0"></div> 970 </a> 971 </div> 972 </script>
vendor: 1 bytes, line 972
972
973<script type="text/template" id="spcoursecard-1-template"> 974 <div class="column third"> 975 <@ var planName = getCoursePlanName(sessionCountry, item), price = getCoursePrice(sessionCountry, item, '0.0', ''), isPackage = item['spayee:resource']['spayee.courseType'] == 'package', courseId = isPackage ? '' : item._id, packageId = isPackage ? item._id : ''; @> 976 <a title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" amplitude-event="buy_now_tapped_course_checkout" amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}' style="text-decoration: none;"> 977 <@ var curl = "https://d502jbuhuh9wk.cloudfront.net/courses/"+ item._id +"/"+ item._id +"_scaled_cover.jpg?v=" + item['spayee:resource']['spayee:coverVersion']; if(isNaN(item['spayee:resource']['spayee:coverVersion'])) { curl = showCourseDefaultCover(null, item._id); } @> 978 <img class="lazy" data-src="<@- curl @>" alt="<@- item['spayee:resource']['spayee:title'] @> cover" onerror="showCourseDefaultCover(this, '<@- item._id @>')"> 979 <h4 class="size-21 text-ellipsis" style="text-wrap: balance;overflow: hidden;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;"><@- item['spayee:resource']['spayee:title'] @></h4> 980 <div class="size-16 text-ellipsis" style="max-height: 3rem;"><@ print(item['spayee:resource']['spayee:shortDescription']!==undefined?item['spayee:resource']['spayee:shortDescription']:"") @></div> 981 982 <p class="size-18"><span style="color: rgb(21, 101, 192);"><@ print(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', true)) @></span><br></p> 983 <div style="margin:1em 0"></div> 984 </a> 985 </div> 986 </script>
vendor: 1 bytes, line 986
986
987<script type="text/template" id="spcoursecard-3-template"> 988 <div class="column third"> 989 <@ var planName = getCoursePlanName(sessionCountry, item), price = getCoursePrice(sessionCountry, item, '0.0', ''), isPackage = item['spayee:resource']['spayee.courseType'] == 'package', courseId = isPackage ? '' : item._id, packageId = isPackage ? item._id : ''; @> 990 <a title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" amplitude-event="buy_now_tapped_course_checkout" amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}' style="text-decoration: none;"> 991 <@ var curl = "https://d502jbuhuh9wk.cloudfront.net/courses/"+ item._id +"/"+ item._id +"_scaled_cover.jpg?v=" + item['spayee:resource']['spayee:coverVersion']; if(isNaN(item['spayee:resource']['spayee:coverVersion'])) { curl = showCourseDefaultCover(null, item._id); } @> 992 <img class="lazy" data-src="<@- curl @>" alt="<@- item['spayee:resource']['spayee:title'] @> cover" onerror="showCourseDefaultCover(this, '<@- item._id @>')"> 993 <h4 class="size-21 text-ellipsis" style="text-wrap: balance;overflow: hidden;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;"><@- item['spayee:resource']['spayee:title'] @></h4> 994 <div class="size-16 text-ellipsis" style="max-height: 3rem;"><@ print(item['spayee:resource']['spayee:shortDescription']!==undefined?item['spayee:resource']['spayee:shortDescription']:"") @></div> 995 <p class="size-16 text-ellipsis"><@ if(item['spayee:resource']['spayee:courseType'] === 'package') { @><@ print(item["courses-count"]!==undefined?item["courses-count"]:"0") @> Courses<@ }else { @> 996 <@ print(item["spayee:resource"]["spayee:publisher"]!==undefined?item["spayee:resource"]["spayee:publisher"]:" ") @><@ } @></p> 997 <p class="size-18"><span style="color: rgb(21, 101, 192);"><@ print(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', true)) @></span><br></p> 998 <div style="margin:1em 0"></div> 999 </a> 1000 </div> 1001 </script>
1001 1002
1003<script type="text/template" id="spcoursecard-4-template"> 1004 <div class="column third text-center" style="padding-left: 1rem; padding-right: 1rem; margin-bottom: 0px;"> 1005 <@ var curl = "https://d502jbuhuh9wk.cloudfront.net/courses/"+ item._id +"/"+ item._id +"_scaled_cover.jpg?v=" + item['spayee:resource']['spayee:coverVersion']; if(isNaN(item['spayee:resource']['spayee:coverVersion'])) { curl = showCourseDefaultCover(null, item._id); } @> 1006 <@ var planName = getCoursePlanName(sessionCountry, item), price = getCoursePrice(sessionCountry, item, '0.0', ''), isPackage = item['spayee:resource']['spayee.courseType'] == 'package', courseId = isPackage ? '' : item._id, packageId = isPackage ? item._id : ''; @> 1007 <a title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" amplitude-event="buy_now_tapped_course_checkout" amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}' style="text-decoration: none;"> 1008 <img class="lazy" data-src="<@- curl @>" alt="<@- item['spayee:resource']['spayee:title'] @> cover" onerror="showCourseDefaultCover(this, '<@- item._id @>')"> 1009 </a> 1010 <h3 class="size-18 text-center" style="text-wrap: balance;overflow: hidden;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;"><b class="text-primary"><@- item['spayee:resource']['spayee:title'] @></b></h3> 1011 <div class="discription"><@ print(item['spayee:resource']['spayee:shortDescription']!==undefined?item['spayee:resource']['spayee:shortDescription']:"") @></div> 1012 <p class="size-18 price text-primary"><@ print(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', true)) @></p> 1013 <a title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" class="buy-btn btn btn-primary" amplitude-event="buy_now_tapped_course_checkout" amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}'>Buy now<br></a> 1014 </div> 1015 </script>
1015
1016<script type="text/template" id="spcoursecard-5-template"> 1017 <div class="column third" style="padding-left: 1rem; padding-right: 1rem; margin-bottom: 0px;"> 1018 <@ var curl = "https://d502jbuhuh9wk.cloudfront.net/courses/"+ item._id +"/"+ item._id +"_scaled_cover.jpg?v=" + item['spayee:resource']['spayee:coverVersion']; if(isNaN(item['spayee:resource']['spayee:coverVersion'])) { curl = showCourseDefaultCover(null, item._id); } @> 1019 <@ var planName = getCoursePlanName(sessionCountry, item), price = getCoursePrice(sessionCountry, item, '0.0', ''), isPackage = item['spayee:resource']['spayee.courseType'] == 'package', courseId = isPackage ? '' : item._id, packageId = isPackage ? item._id : ''; @> 1020 <a title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" amplitude-event="buy_now_tapped_course_checkout" amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}' style="text-decoration: none;"> 1021 <img class="lazy" data-src="<@- curl @>" alt="<@- item['spayee:resource']['spayee:title'] @> cover" onerror="showCourseDefaultCover(this, '<@- item._id @>')"> 1022 </a> 1023 <h3 class="sub-heading"><b class="size-18 text-primary"><@- item['spayee:resource']['spayee:title'] @></b></h4> 1024 <p class="size-16 description text-primary"> <@ if(item['spayee:resource']['spayee:courseType'] === 'package') { @><@ print(item["courses-count"]!==undefined?item["courses-count"]:"0") @> Courses<@ }else { @> 1025 Instructor : <@ print(item["spayee:resource"]["spayee:publisher"]!==undefined?item["spayee:resource"]["spayee:publisher"]:" ") @><@ } @></p> 1026 <@if(item.rating){@> 1027 <p class="size-16 description text-primary">Rating: 1028 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) {@> 1029 <@if(item.rating){@> 1030 <@if(item.rating.avgRating){@> 1031 <@ if(item.rating.avgRating >= ratingsSize) {@> 1032 <i class="icon ion-android-star text-primary"></i> 1033 <@ } else if(item.rating.avgRating > ratingsSize-1 && item.rating.avgRating < ratingsSize) { @> 1034 <i class="icon ion-android-star-half text-primary"></i> 1035 <@ } @> 1036 <@}@> 1037 <@}@> 1038 <@}@> 1039 </p> 1040 <@}@> 1041 1042 <p class="size-18 price text-primary">Price : <@ print(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', true)) @></p> 1043 <a title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" class="buy-btn btn btn-primary" amplitude-event="buy_now_tapped_course_checkout" amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}'>Buy now</a> 1044 </div> 1045 </script>
1045 1046
1047<script type="text/template" id="spcoursecard-6-template"> 1048 <div class="column third"> 1049 <@ var curl = "https://d502jbuhuh9wk.cloudfront.net/courses/"+ item._id +"/"+ item._id +"_scaled_cover.jpg?v=" + item['spayee:resource']['spayee:coverVersion']; if(isNaN(item['spayee:resource']['spayee:coverVersion'])) { curl = showCourseDefaultCover(null, item._id); } @> 1050 <@ var planName = getCoursePlanName(sessionCountry, item), price = getCoursePrice(sessionCountry, item, '0.0', ''), isPackage = item['spayee:resource']['spayee.courseType'] == 'package', courseId = isPackage ? '' : item._id, packageId = isPackage ? item._id : ''; @> 1051 1052 1053 <@ var itemCategory = (item['spayee:resource']['spayee:filter1'] !== undefined)? item['spayee:resource']['spayee:filter1'][0]:''@> 1054 1055 <@ if (item['spayee:resource']['spayee:availableForMarket']==="true" ) { @> 1056 <a title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" amplitude-event="course_card_tapped_checkout" amplitude-payload='{"<@- item['spayee:resource']['spayee:courseType']== 'package' ? "package_id" : "course_id" @>": "<@- item._id @>","is_a_package":"<@- item['spayee:resource']['spayee:courseType']== 'package' ? "true" : "false" @>","price_on_card":"<@- removeCurrencySymbol(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', false)) @>","currency":"INR","multiple_pricing_plans_exist":"<@- isMultiplePlansAvailable(sessionCountry, item) @>","wallet_coins_enabled_on_school":"<@- true @>","category":"<@- itemCategory @>"}'> 1057 <@ } else { @> 1058 <a title="<@- item['spayee:resource']['spayee:title'] @>" amplitude-event="course_card_tapped_checkout" amplitude-payload='{"<@- item['spayee:resource']['spayee:courseType']== 'package' ? "package_id" : "course_id" @>": "<@- item._id @>","is_a_package":"<@- item['spayee:resource']['spayee:courseType']== 'package' ? "true" : "false" @>","price_on_card":"<@- removeCurrencySymbol(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', false)) @>","currency":"INR","multiple_pricing_plans_exist":"<@- isMultiplePlansAvailable(sessionCountry, item) @>","wallet_coins_enabled_on_school":"<@- true @>","category":"<@- itemCategory @>"}'> 1059 <@ } @> 1060 1061 1062 <img class="lazy" data-src="<@- curl @>" alt="<@- item['spayee:resource']['spayee:title'] @> cover" onerror="showCourseDefaultCover(this, '<@- item._id @>')" style="border-radius: 20px; margin-bottom: 0px; width: 100%; height: 190px;object-fit:cover;"> 1063 </a> 1064 <div style="font-weight: 800; line-height: 1.1; text-wrap: balance;overflow: hidden;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;" class="text-ellipsis"><@- item['spayee:resource']['spayee:title'] @></div> 1065 <p class="size-16 description text-primary"><@ if(item['spayee:resource']['spayee:courseType'] === 'package') { @> Courses<@ } @></p> 1066 <p class="size-18 price text-primary"><@ if (item['spayee:resource']['spayee:availableForMarket']==="true" ) @> <@ print(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', false)) @></p> 1067 <@ if (item.isMembershipPage != undefined && !item.isMembershipPage) { @> 1068 1069 1070 <@ var itemCategory = (item['spayee:resource']['spayee:filter1'] !== undefined)? item['spayee:resource']['spayee:filter1'][0]:'' @> 1071 <@ if(isMultiplePlansAvailable(sessionCountry, item) === false) { @> 1072 <a title="<@- item['spayee:resource']['spayee:title'] @>" href="/single-checkout/<@- item['_id'] @>?pid=<@ print(getCoursePid(sessionCountry, item)) @>" class="buy-btn btn btn-primary" amplitude-event="course_buy_now_tapped_checkout" amplitude-payload='{"<@- item['spayee:resource']['spayee:courseType']== 'package' ? "package_id" : "course_id" @>": "<@- item._id @>","is_a_package":"<@- item['spayee:resource']['spayee:courseType']== 'package' ? "true" : "false" @>","price_on_card":"<@- removeCurrencySymbol(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', false)) @>","currency":"INR","multiple_pricing_plans_exist":"<@- isMultiplePlansAvailable(sessionCountry, item) @>","wallet_coins_enabled_on_school":"<@- true @>","category":"<@- itemCategory @>"}' style="border: none;padding: 16px 61px; font-size: 16px; letter-spacing: 0.08px; line-height: 16px; font-weight: 600; text-decoration: none; display: block; text-align: center;"> 1073 Buy now 1074 </a> 1075 <@ } else { @> 1076 1077 <a title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" class="buy-btn btn btn-primary" amplitude-event="course_buy_now_tapped_checkout" amplitude-payload='{"<@- item['spayee:resource']['spayee:courseType']== 'package' ? "package_id" : "course_id" @>": "<@- item._id @>","is_a_package":"<@- item['spayee:resource']['spayee:courseType']== 'package' ? "true" : "false" @>","price_on_card":"<@- removeCurrencySymbol(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', false)) @>","currency":"INR","multiple_pricing_plans_exist":"<@- isMultiplePlansAvailable(sessionCountry, item) @>","wallet_coins_enabled_on_school":"<@- true @>","category":"<@- itemCategory @>"}' style="border: none;padding: 16px 61px; font-size: 16px; letter-spacing: 0.08px; line-height: 16px; font-weight: 600; text-decoration: none; display: block; text-align: center;"> 1078 Buy now 1079 </a> 1080 <@ } @> 1081 1082 1083 1084 <@ } @> 1085 </div> 1086 </script>
1086 1087 1088
1089<script type="text/template" id="spcoursecard-7-template"> 1090 <div class="column third course-mob-block"> 1091 <div class="inner-course-block"> 1092 <@ var curl = "https://d502jbuhuh9wk.cloudfront.net/courses/"+ item._id +"/"+ item._id +"_scaled_cover.jpg?v=" + item['spayee:resource']['spayee:coverVersion']; if(isNaN(item['spayee:resource']['spayee:coverVersion'])) { curl = showCourseDefaultCover(null, item._id); } @> 1093 <@ var planName = getCoursePlanName(sessionCountry, item), price = getCoursePrice(sessionCountry, item, '0.0', ''), isPackage = item['spayee:resource']['spayee.courseType'] == 'package', courseId = isPackage ? '' : item._id, packageId = isPackage ? item._id : ''; @> 1094 <a title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" amplitude-event="buy_now_tapped_course_checkout" amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}' style="text-decoration: none;"> 1095 <img class="lazy" data-style="width: 100%; height: auto;" data-src="<@- curl @>" alt="<@- item['spayee:resource']['spayee:title'] @> cover" onerror="showCourseDefaultCover(this, '<@- item._id @>')" > 1096 </a> 1097 <div class="course-price-block"> 1098 <p class="text-ellipsis" title="<@- item['spayee:resource']['spayee:title'] @>" style="font-size: 18px; font-weight: 700; line-height: 1.3rem; width: 100%; margin-top: 0px; margin-bottom: 0px; min-height: 47px; text-wrap: balance;overflow: hidden;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;"> 1099 <@- item['spayee:resource']['spayee:title'] @> 1100 </p> 1101 <p class="text-primary" style="word-break: break-all; font-size: 14px; font-weight: 500; line-height: 1.5; margin-top: 16px; margin-bottom: 0px;"> 1102 <@ print(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', false)) @> 1103 </p> 1104 </div> 1105 <a title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" class="buy-btn btn btn-primary" amplitude-event="buy_now_tapped_course_checkout" amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}' style="display: inline-block; text-decoration: none; transition: all 0.16s ease 0s; border: none; cursor: pointer; border-radius: 4px; padding: 13px 28px; line-height: 1.5; font-weight: 600; font-size: 14px; letter-spacing: 0.15px; margin-top: 28px;"> 1106 Enroll now 1107 </a> 1108 </div> 1109 </div> 1110</script>
1110 1111
1112<script type="text/template" id="spcoursecard-8-template"> 1113 <div class="row clearfix" style="margin-bottom: 24px; margin-top: 14px;"> 1114 <@ var curl = "https://d502jbuhuh9wk.cloudfront.net/courses/"+ item._id +"/"+ item._id +"_scaled_cover.jpg?v=" + item['spayee:resource']['spayee:coverVersion']; if(isNaN(item['spayee:resource']['spayee:coverVersion'])) { curl = showCourseDefaultCover(null, item._id); } @> 1115 <@ var planName = getCoursePlanName(sessionCountry, item), price = getCoursePrice(sessionCountry, item, '0.0', ''), isPackage = item['spayee:resource']['spayee.courseType'] == 'package', courseId = isPackage ? '' : item._id, packageId = isPackage ? item._id : ''; @> 1116 <div class="column third center" style="padding-left: 0px; padding-right: 0px;"> 1117 <img 1118 class="lazy" data-src="<@- curl @>" alt="<@- item['spayee:resource']['spayee:title'] @> cover" onerror="showCourseDefaultCover(this, '<@- item._id @>')" 1119 style="margin-top: 0px; margin-bottom: 0px;" 1120 /> 1121 </div> 1122 <div class="column two-third course-block-mob" style="display: flex; flex-direction: column; justify-content: center;"> 1123 <div class="course-price-block"> 1124 <h3 style="color: rgb(255, 255, 255); font-size: 18px; font-weight: 700; line-height: 1.1; margin-bottom: 0px; margin-top: 0px; text-wrap: balance;overflow: hidden;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;"> 1125 <@- item['spayee:resource']['spayee:title'] @> 1126 </h3> 1127 <div class="sortDescription8"> 1128 <@ print(item['spayee:resource']['spayee:shortDescription']!==undefined?item['spayee:resource']['spayee:shortDescription']:"") @> 1129 </div> 1130 </div> 1131 1132 <a class="buy-btn btn btn-primary" title="<@- item['spayee:resource']['spayee:title'] @>" amplitude-event="buy_now_tapped_course_checkout" amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}' href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" style="width: fit-content; text-align: left; display: inline-block; text-decoration: none; transition: all 0.16s ease 0s; cursor: pointer; background-color: rgb(231, 215, 73); color: rgb(0, 0, 0);border-radius: 0px;padding: 16px 48px;line-height: 16px;font-weight: 700;font-size: 16px;letter-spacing: 0.08px;border-image: initial;"> 1133 Enroll for <@ print(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', false)) @> 1134 </a> 1135 </div> 1136 </div> 1137 </script>
1137 1138 1139 1140 <!-- vegas TEMPLATE 9 NEW--> 1141
1141<script type="text/template" id="spcoursecard-9-template" > 1142 <div class="column third text-center course-card-fixed-height" style="padding-left: 1rem; padding-right: 1rem; margin-bottom: 2rem; text-align:left;"> 1143 <div style="border:1px solid #D7D7D7; border-radius:24px; padding-bottom: 20px; height: 100%; display: flex; flex-direction: column;"> 1144 <@ var curl = "https://d502jbuhuh9wk.cloudfront.net/courses/"+ item._id +"/"+ item._id +"_scaled_cover.jpg?v=" + item['spayee:resource']['spayee:coverVersion']; if(isNaN(item['spayee:resource']['spayee:coverVersion'])) { curl = showCourseDefaultCover(null, item._id); } @> 1145 <@ var planName = getCoursePlanName(sessionCountry, item), price = getCoursePrice(sessionCountry, item, '0.0', ''), isPackage = item['spayee:resource']['spayee.courseType'] == 'package', courseId = isPackage ? '' : item._id, packageId = isPackage ? item._id : ''; @> 1146 1147 <a style="color:black; text-align:left;" title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" amplitude-event="buy_now_tapped_course_checkout" amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}'> 1148 <img style="height:200px; width:100%; object-fit:fill; margin:0px 0px; border-top-left-radius:24px; border-top-right-radius:24px;" class="lazy" data-src="<@- curl @>" alt="<@- item['spayee:resource']['spayee:title'] @> cover" onerror="showCourseDefaultCover(this, '<@- item._id @>')"> 1149 </a> 1150 1151 <div style="padding:10px 20px; flex-grow: 1; display: flex; flex-direction: column;" class="course-card-content"> 1152 <h3 1153 class="size-18 text-left" 1154 title="<@- item['spayee:resource']['spayee:title'] @>" 1155 style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; display: block; margin-bottom: 12px; color: black;" 1156 > 1157 <b style="color:black;"><@- item['spayee:resource']['spayee:title'] @></b> 1158 </h3> 1159 1160 <div 1161 class="size-16 text-ellipsis course-card-text" 1162 title="<@= (item['spayee:resource']['spayee:shortDescription'] || ' ').replace(/<[^>]*>/g, '') @>" 1163 style="max-height: 3rem; min-height: 3rem; margin-bottom: 12px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;" 1164 > 1165 <@= (item['spayee:resource']['spayee:shortDescription'] || '').replace(/<[^>]*>/g, '') @> 1166 </div> 1167 </div> 1168 1169 <div style="margin-top: auto; margin-left:10px;"> 1170 <a style="background-color:#FB5607 !important; border:0px !important; border-radius:62px !important; padding:10px 16px !important; width: fit-content; display: inline-block; text-decoration: none; color: white; padding: 12px 24px; font-weight: 600 !important; font-size: 16px;letter-spacing:0px; !important" 1171 class="buy-btn btn btn-primary" 1172 title="<@- item['spayee:resource']['spayee:title'] @>" 1173 amplitude-event="buy_now_tapped_course_checkout" 1174 amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}' 1175 href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>"> 1176 Enroll for <@ print(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', false)) @> 1177 </a> 1178 </div> 1179 </div> 1180 </div> 1181 </div> 1182</script>
1182 1183 1184 <!--Blaze Course nEW tEMPLATE 10--> 1185
1185<script type="text/template" id="spcoursecard-10-template"> 1186 <div class="column third text-center course-card-fixed-height" style="padding-left: 1rem; padding-right: 1rem; margin-bottom: 10px;margin-top:10px; text-align:left;"> 1187 <div style="height: 100%; display: flex; flex-direction: column;"> 1188 <@ var curl = "https://d502jbuhuh9wk.cloudfront.net/courses/"+ item._id +"/"+ item._id +"_scaled_cover.jpg?v=" + item['spayee:resource']['spayee:coverVersion']; if(isNaN(item['spayee:resource']['spayee:coverVersion'])) { curl = showCourseDefaultCover(null, item._id); } @> 1189 <@ var planName = getCoursePlanName(sessionCountry, item), price = getCoursePrice(sessionCountry, item, '0.0', ''), isPackage = item['spayee:resource']['spayee.courseType'] == 'package', courseId = isPackage ? '' : item._id, packageId = isPackage ? item._id : ''; @> 1190 1191 <a style="color:black; text-align:left;" title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" amplitude-event="buy_now_tapped_course_checkout" amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}' style="text-decoration: none; color:black; font-size:24px;"> 1192 <img style="height:320px; object-fit:cover; margin:0px 0px;" class="lazy" data-src="<@- curl @>" alt="<@- item['spayee:resource']['spayee:title'] @> cover" onerror="showCourseDefaultCover(this, '<@- item._id @>')"> 1193 </a> 1194 1195 <div style=" flex-grow: 1; display: flex; flex-direction: column;" class="course-card-content"> 1196 <h3 1197 class="size-18 text-left" 1198 style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; display: block; margin-bottom: 12px; color: white;" 1199 > 1200 <b title="<@= item['spayee:resource']['spayee:title'] @>" style="color:white;"> 1201 <@- item['spayee:resource']['spayee:title'] @> 1202 </b> 1203 </h3> 1204 1205 <div title="<@= (item['spayee:resource']['spayee:shortDescription'] || ' ').replace(/<[^>]*>/g, '') @>" class="size-16 text-ellipsis course-card-text" style="max-height: 3rem; min-height: 3rem; margin-bottom: 12px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;color:white;"> 1206 <@= (item['spayee:resource']['spayee:shortDescription'] || '').replace(/<[^>]*>/g, '') @> 1207 </div> 1208 1209 <div style="margin-top: auto;"> 1210 <a style="width:100% !important;font-weight:600 !important; letter-spacing:0px; color:black !important; background-color:#D8FD46 !important; border:0px !important; border-radius:0px !important; padding:20px 36px !important; width: fit-content; display: inline-block; text-decoration: none; transition: all 0.16s ease 0s; cursor: pointer; padding: 16px 28px; line-height: 16px; font-weight: 700; font-size: 16px; letter-spacing: 0px; border-image: initial;" 1211 class="buy-btn btn btn-primary" 1212 title="<@- item['spayee:resource']['spayee:title'] @>" 1213 amplitude-event="buy_now_tapped_course_checkout" 1214 amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}' 1215 href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>"> 1216 Enroll for <@ print(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', false)) @> 1217 </a> 1218 1219 </div> 1220 </div> 1221 </div> 1222 </div> 1223 </script>
1223 1224 1225 <!--Olive Course 11--> 1226
1226<script type="text/template" id="spcoursecard-11-template" > 1227 <@ 1228 // Calculate colors based on index 1229 var colorIndex = (typeof window.courseCardColorIndex === 'undefined') ? 0 : window.courseCardColorIndex; 1230 var colors = [ 1231 { bg: '#FFA46B', btnBg: '#361500' }, // Orange card → Dark brown button 1232 { bg: '#87A1F6', btnBg: '#001A71' }, // Blue card → Dark blue button 1233 { bg: '#B073DC', btnBg: '#34005A' } // Purple card → Dark brown button (default) 1234 ]; 1235 var currentColor = colors[colorIndex % 3]; 1236 window.courseCardColorIndex = colorIndex + 1; 1237 @> 1238 1239 <div class="column third text-center course-card course-card-fixed-height" style="padding: 0 15px; margin-bottom: 30px;"> 1240 <div class="course-card-wrapper" style="background-color: <@- currentColor.bg @>; height: 100%; border-radius: 32px; overflow: hidden;"> 1241 <@ var curl = "https://d502jbuhuh9wk.cloudfront.net/courses/"+ item._id +"/"+ item._id +"_scaled_cover.jpg?v=" + item['spayee:resource']['spayee:coverVersion']; 1242 if(isNaN(item['spayee:resource']['spayee:coverVersion'])) { curl = showCourseDefaultCover(null, item._id); } @> 1243 1244 <a class="course-image-link" style="display: block; padding: 16px;padding-bottom:0px" title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>"> 1245 <img style="height:320px; width:100%; object-fit:cover; border-radius: 32px;" class="lazy" data-src="<@- curl @>" alt="<@- item['spayee:resource']['spayee:title'] @> cover" onerror="showCourseDefaultCover(this, '<@- item._id @>')"> 1246 </a> 1247 1248 <div style="padding: 20px;" class="course-card-content"> 1249 <h3 style="font-size:24px; text-transform:uppercase; color: black; margin: 0 0 15px 0; text-align: left;white-space:nowrap; overflow: hidden; text-overflow: ellipsis;width: 100%;display:block;"> 1250 <b title="<@= item['spayee:resource']['spayee:title'] @>"><@- item['spayee:resource']['spayee:title'] @></b> 1251 </h3> 1252 <div title="<@= (item['spayee:resource']['spayee:shortDescription'] || ' ').replace(/<[^>]*>/g, '') @>" class="size-16 text-ellipsis course-card-text" style="max-height: 3rem; min-height: 3rem; color:black; margin-bottom: 12px;text-align: left;"> 1253 <@ print(item['spayee:resource']['spayee:shortDescription']!==undefined?item['spayee:resource']['spayee:shortDescription']:" ") @> 1254 </div> 1255 <a class="enroll-button" 1256 style="display: block; 1257 background-color: <@- currentColor.btnBg @>; 1258 color: white !important; 1259 padding: 12px; 1260 text-align: center; 1261 font-weight: 600; 1262 text-decoration: none; 1263 border-radius: 32px;" 1264 href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>"> 1265 Enroll for <@ print(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', false)) @> 1266 </a> 1267 </div> 1268 </div> 1269 </div> 1270 1271 </script>
1271 1272 1273 1274 <!-- Nebula Course 12--> 1275
1275<script type="text/template" id="spcoursecard-12-template" > 1276 <div class="column third text-center course-card-fixed-height" style="padding-left: 1rem; padding-right: 1rem; margin-bottom: 2rem; text-align:left;"> 1277 <div style="border:0px; border-radius:16px; padding-bottom: 20px; height: 100%; display: flex; flex-direction: column;"> 1278 <@ var curl = "https://d502jbuhuh9wk.cloudfront.net/courses/"+ item._id +"/"+ item._id +"_scaled_cover.jpg?v=" + item['spayee:resource']['spayee:coverVersion']; if(isNaN(item['spayee:resource']['spayee:coverVersion'])) { curl = showCourseDefaultCover(null, item._id); } @> 1279 <@ var planName = getCoursePlanName(sessionCountry, item), price = getCoursePrice(sessionCountry, item, '0.0', ''), isPackage = item['spayee:resource']['spayee.courseType'] == 'package', courseId = isPackage ? '' : item._id, packageId = isPackage ? item._id : ''; @> 1280 1281 <a style="color:black; text-align:left;" title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" amplitude-event="buy_now_tapped_course_checkout" amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}'> 1282 <img style="height:240px; width:100%; object-fit:fill; margin:0px 0px; border-radius:16px; " class="lazy" data-src="<@- curl @>" alt="<@- item['spayee:resource']['spayee:title'] @> cover" onerror="showCourseDefaultCover(this, '<@- item._id @>')"> 1283 </a> 1284 1285 <div style="padding:10px 0px; flex-grow: 1; display: flex; flex-direction: column;" class="course-card-content"> 1286 <h3 1287 class="size-18 text-left" 1288 title="<@- item['spayee:resource']['spayee:title'] @>" 1289 style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; display: block; margin-bottom: 12px; color: black;" 1290 > 1291 <b style="color:black;"><@- item['spayee:resource']['spayee:title'] @></b> 1292 </h3> 1293 1294 <div 1295 class="size-16 text-ellipsis course-card-text" 1296 title="<@= (item['spayee:resource']['spayee:shortDescription'] || ' ').replace(/<[^>]*>/g, '') @>" 1297 style="max-height: 3rem; min-height: 3rem; margin-bottom: 12px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;" 1298 > 1299 <@= (item['spayee:resource']['spayee:shortDescription'] || '').replace(/<[^>]*>/g, '') @> 1300 </div> 1301 </div> 1302 1303 <div style="margin-top: auto; margin-left:0px;"> 1304 <a style="background-color:#6715FF !important; border-radius:12px !important; padding:10px 16px !important; width: fit-content; display: inline-block; text-decoration: none; color: white; padding: 12px 24px; font-weight: 600 !important; font-size: 16px;letter-spacing:0px; !important" 1305 class="buy-btn btn btn-primary" 1306 title="<@- item['spayee:resource']['spayee:title'] @>" 1307 amplitude-event="buy_now_tapped_course_checkout" 1308 amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}' 1309 href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>"> 1310 Enroll for <@ print(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', false)) @> 1311 </a> 1312 </div> 1313 </div> 1314 </div> 1315 </div> 1316 </script>
1316 1317 1318 1319 1320 <!--Dusk Course-13--> 1321
1321<script type="text/template" id="spcoursecard-13-template" > 1322 <div class="column third text-center course-card-fixed-height" style="padding-left: 1rem; padding-right: 1rem; margin-bottom: 2rem; text-align:left;"> 1323 <div style="border:0px; border-radius:16px; padding-bottom: 20px; height: 100%; display: flex; flex-direction: column;"> 1324 <@ var curl = "https://d502jbuhuh9wk.cloudfront.net/courses/"+ item._id +"/"+ item._id +"_scaled_cover.jpg?v=" + item['spayee:resource']['spayee:coverVersion']; if(isNaN(item['spayee:resource']['spayee:coverVersion'])) { curl = showCourseDefaultCover(null, item._id); } @> 1325 <@ var planName = getCoursePlanName(sessionCountry, item), price = getCoursePrice(sessionCountry, item, '0.0', ''), isPackage = item['spayee:resource']['spayee.courseType'] == 'package', courseId = isPackage ? '' : item._id, packageId = isPackage ? item._id : ''; @> 1326 1327 <a style="color:black; text-align:left;" title="<@- item['spayee:resource']['spayee:title'] @>" href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>" amplitude-event="buy_now_tapped_course_checkout" amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}'> 1328 <img style="height:240px; width:100%; object-fit:fill; margin:0px 0px; border-radius:16px; " class="lazy" data-src="<@- curl @>" alt="<@- item['spayee:resource']['spayee:title'] @> cover" onerror="showCourseDefaultCover(this, '<@- item._id @>')"> 1329 </a> 1330 1331 <div style="padding:10px 0px; flex-grow: 1; display: flex; flex-direction: column;" class="course-card-content"> 1332 <h3 1333 class="size-18 text-left" 1334 title="<@- item['spayee:resource']['spayee:title'] @>" 1335 style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; display: block; margin-bottom: 12px; color: black;" 1336 > 1337 <b style="color:black;"><@- item['spayee:resource']['spayee:title'] @></b> 1338 </h3> 1339 1340 <div 1341 class="size-16 text-ellipsis course-card-text" 1342 title="<@= (item['spayee:resource']['spayee:shortDescription'] || ' ').replace(/<[^>]*>/g, '') @>" 1343 style="max-height: 3rem; min-height: 3rem; margin-bottom: 12px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;" 1344 > 1345 <@= (item['spayee:resource']['spayee:shortDescription'] || '').replace(/<[^>]*>/g, '') @> 1346 </div> 1347 </div> 1348 1349 1350 1351 <div style="margin-top: auto; margin-left:0px;"> 1352 <a style="background-color:#282400 !important;border:0px ; border-radius:41px !important; padding:10px 24px !important; width: fit-content; display: inline-block; text-decoration: none; color: white; padding: 12px 24px; font-weight: 600 !important; font-size: 16px;letter-spacing:0px; !important" 1353 class="buy-btn btn btn-primary" 1354 title="<@- item['spayee:resource']['spayee:title'] @>" 1355 amplitude-event="buy_now_tapped_course_checkout" 1356 amplitude-payload='{"plan_name": "<@- planName @>", "price": <@- price @>, "currency": "INR", "course_id": "<@- courseId @>", "is_package": <@- isPackage @>, "package_id": "<@- packageId @>"}' 1357 href="<@ print(getCourseLandingPageUrl(item._id, item['spayee:resource']['spayee:courseUrl'])) @>"> 1358 Enroll for <@ print(getCourseDisplayPrice('₹', sessionCountry, item, '0.0', '', false)) @> 1359 </a> 1360 </div> 1361 </div> 1362 </div> 1363 </div> 1364 </script>
1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374<!-- Curriculum 1st Template -->
1375<script type="text/template" id="coursecurr-1-template"> 1376 <table class="table courseContents"> 1377 <thead> 1378 <tr> 1379 <td style="width: 50px;"></td> 1380 <td style="width: 50px;"></td> 1381 <td></td> 1382 </tr> 1383 </thead> 1384 <tbody> 1385 <@ $.each(item, function(index, value) { @> 1386 <tr> 1387 <td><i class="material-icons courseItemIcon" data-type="<@- value.type @>"></i></td> 1388 <td colspan="2"> 1389 <@- value.title @> 1390 <@ if(value.type == 'aiheading') { @> 1391 <small>(coming soon)</small><@ } @> 1392 <@ if(assetInfo && value.type == 'video' && value.duration !== undefined && value.duration > 0) { @> 1393 <small>(<@ print(Math.floor(value.duration)) @>:00)</small><@ } @> 1394 <@ if(assetInfo && value.type == 'pdf' && value.pages !== undefined && value.pages > 0) { @> 1395 <small>(<@- value.pages @> pages)</small> 1396 <@ } @> 1397 </td> 1398 </tr> 1399 <@ if(value.items != undefined) { @> <@ $.each(value['items'], function(index1, value1) { @> 1400 <tr> 1401 <td></td> 1402 <td><i class="material-icons courseItemIcon" data-type="<@- value1.type @>"></i></td> 1403 <td> 1404 <@- value1.title @> 1405 <@ if(assetInfo && value.type == 'video' && value1.duration !== undefined && value1.duration > 0) { @><small>(<@ print(Math.floor(value1.duration)) @>:00)</small><@ } @> 1406 <@ if(assetInfo && value1.type =='pdf' && value1.pages !== undefined && value1.pages > 0) { @><small>(<@- value1.pages @> pages)</small><@ } @> 1407 <@ if(value1.type =='aiheading') { @><small>(coming soon)</small><@ } @> 1408 </td> 1409 </tr> 1410 <@ }); @> <@ } @> <@ }); @> 1411 </tbody> 1412 </table> 1413</script>
1413 1414 1415 1416<!-- Curriculum 2nd Template -->
1417<script type="text/template" id="coursecurr-2-template"> 1418 <div class="column full curriculum2" spellcheck="false"> 1419 <div class="course-content1" > 1420 <p style="font-size: 15px; font-weight: 400; margin-top: 0px;"> 1421 <@if(summary.modules && summary.modules>0){@> 1422 <@print(summary.modules)@> Modules <i class="icon ion-android-folder-open"></i> <@if(summary.sessions && summary.sessions>0 && curriculumAssetInfo){@>|<@}@> 1423 <@}@> 1424 <@if(summary.sessions && summary.sessions>0 && curriculumAssetInfo){@> 1425 <@print(summary.sessions)@> Sessions <i class="icon ion-android-laptop"></i> <@if(summary.durations && summary.durations>0 && curriculumAssetInfo){@>|<@}@> 1426 <@}@> 1427 <@if(summary.durations && summary.durations>0 && curriculumAssetInfo){@> 1428 <@print(millisecondsToHHMMSSStr(summary.durations))@> Total Time <i class="icon ion-ios-clock-outline"></i> 1429 <@}@> 1430 </p> 1431 </div> 1432 1433 1434 <@ $.each(item, function(index, value) { @> 1435 <div class="course-course-content-box" > 1436 <div class="course-content-blue-title <@if(value && value.contents){@> bg-primary <@}else if($('#'+id).closest('div.is-section').hasClass("is-bg-grey")){@>bg-white<@}else{@>is-bg-grey<@}@>" > 1437 <span class="title-icon"> 1438 <span class="material-icons <@if(value && !value.contents){@> text-primary <@}@>"><@ print(getCourseAssetIcon(value.type))@></span> 1439 </span> 1440 <div class="titl5b" > 1441 <h3 class="<@if(value && !value.contents){@> text-primary <@}@>"> 1442 <@print(value.title)@> <@ if(curriculumAssetInfo && value.type == 'pdf' && value.pages !== undefined && value.pages > 0) { @><small>(<@- value.pages @> pages)</small><@ } @> 1443 <@if(summary.sampleAvailable && summary.sampleSectionIds.includes(value.id)){@> 1444 <a href="/s/preview/courses/<@print(decodeURIComponent(summary.courseUrl).replace(/ /g,"-"))@>-<@- courseId @>#<@print(value.id)@>" class="previewBtn"><span class="<@if(value && !value.contents){@> text-primary <@}@>">Preview</span></a> 1445 <@}@> 1446 </h3> 1447 <p class="<@if(value && !value.contents){@> text-primary <@}@>"><@if(value && value.contents && curriculumAssetInfo){@> 1448 Sessions: <@print(value.contents)@> 1449 <@}@> 1450 <@if(value.moduleDurations && curriculumAssetInfo){@><@if(value && value.contents){@>|<@}@> 1451 Time: <@print(millisecondsToHHMMSSStr(value.moduleDurations))@> 1452 <@}@> 1453 <@if(value && value.contents>0){@><span class="material-icons">expand_more</span><@}@> </p> 1454 </div> 1455 </div> 1456 <@if(value && value.items){@> 1457 <@ $.each(value['items'], function(index1, value1) { @> 1458 <div class="course-content-body <@if(index==0){@>showing<@ }@>" > 1459 <div class="desc1 " > 1460 <div class="is-box-9" > 1461 <div class="boxa1" > 1462 <span class="material-icons text-primary"><@ print(getCourseAssetIcon(value1.type))@></span> 1463 <p> <@print(value1.title)@> <@ if(curriculumAssetInfo && value1.type == 'pdf' && value1.pages !== undefined && value1.pages > 0) { @><small>(<@- value1.pages @> pages)</small><@ } @> 1464 <@ if(value1.type == 'aiheading') { @><small>(coming soon)</small><@ } @> 1465 </p> 1466 1467 </div> 1468 </div> 1469 <div class="is-box-1" > 1470 <div class="boxa2" > 1471 <@if(summary.sampleAvailable && summary.sampleSectionIds.includes(value1.id)){@> 1472 <a href="/s/preview/courses/<@print(decodeURIComponent(summary.courseUrl).replace(/ /g,"-"))@>#<@print(value1.id)@>"> 1473 <@ if(value1.type == 'video') { @> Watch <@ } else {@> Preview <@ } @> 1474 </a> 1475 <@}@> 1476 </div> 1477 </div> 1478 <div class="is-box-2" > 1479 <div class="boxa2" > 1480 <p class="duration"><@if(value1.duration && curriculumAssetInfo){@><@print(millisecondsToHHMMSSStr(value1.duration))@><@}@></p> 1481 </div> 1482 </div> 1483 </div> 1484 </div> 1485 <@ }); @> 1486 <@}@> 1487 </div> 1488 <@ }); @> 1489 1490 </div> 1491</script>
1491 1492 1493 1494 1495 1496 1497<!-- Curriculum 3rd Template -->
1498<script type="text/template" id="coursecurr-3-template"> 1499 <div class="column full" spellcheck="false" data-gramm="false"> 1500 <div class="accordion-syllabus" > 1501 <@ $.each(item, function(index, value) { @> 1502 <div class="accordion-syllabus-item"> 1503 <header class="accordion-syllabus-header"> 1504 <h4 class="accordion-syllabus-header__title"> 1505 <span class="text-primary"> 1506 <@if(index<9){@> 1507 0<@print(index+1)@> 1508 <@ } else {@> 1509 <@print(index+1)@> 1510 <@ } @> 1511 </span> 1512 <p><@print(value.title)@> <span class="text-primary show-sm" style="font-size: 14px;"> 1513 <@if(value && value.items){@> 1514 <@ print(value.items.length) @> attachment(s) 1515 <@}@> 1516 <@if(value.moduleDurations && curriculumAssetInfo){@> 1517 <@if(value && value.contents){@> • <@}@> 1518 <@print(millisecondsToHHMMSSStr(value.moduleDurations))@> 1519 <@}@> 1520 </span></p> 1521 1522 </h4> 1523 <div class="accordion-syllabus-header__info"> 1524 <p class="text-primary hide-sm"> 1525 <@if(value && value.items){@> 1526 <@ print(value.items.length) @> attachment(s) 1527 <@}@> 1528 <@if(value.moduleDurations && curriculumAssetInfo){@> 1529 <@if(value && value.contents){@> • <@}@> 1530 <@print(millisecondsToHHMMSSStr(value.moduleDurations))@> 1531 <@}@> 1532 </p> 1533 <@if(value && value.items){@> 1534 <div class="accordion-syllabus-header__icon text-primary"> 1535 <i class="fa fa-angle-left" aria-hidden="true"></i> 1536 </div> 1537 <@}@> 1538 </div> 1539 </header> 1540 <@if(value && value.items){@> 1541 <div class="accordion-content" style=""> 1542 <div class="accordian-content-block"> 1543 <ul class="accordian-list"> 1544 <@ $.each(value['items'], function(index1, value1) { @> 1545 <li class="accordian-list__item"> 1546 <div class="accordian-content-card"> 1547 <div class="accordian-content-card__info"> 1548 <div class="accordian-content-card__ico"> 1549 <@ if(value1.type == 'code'){ @> 1550 <img src="/resources/images/CodeIcon.svg"> 1551 <@ } else { @> 1552 <span class="material-icons text-primary"> 1553 <@ print(getCourseAssetIcon(value1.type))@> 1554 </span> 1555 <@ } @> 1556 </div> 1557 <div class="accordian-content-card__title"> 1558 <@print(value1.title)@> <@ if(curriculumAssetInfo && value1.type == 'pdf' && value1.pages !== undefined && value1.pages > 0) { @><small>(<@- value1.pages @> pages)</small><@ } @> 1559 <@ if(value1.type == 'aiheading') { @><small>(coming soon)</small><@ } @> 1560 </div> 1561 </div> 1562 <div class="accordian-content-card__link"> 1563 <@if(summary.sampleAvailable && summary.sampleSectionIds.includes(value1.id)){@> 1564 <a href="/s/preview/courses/<@print(decodeURIComponent(summary.courseUrl).replace(/ /g,"-"))@>-<@- courseId @>#<@print(value1.id)@>" class="previewBtn"> 1565 <span class="text-primary"> 1566 <@ if(value1.type == 'video') { @> Watch <@ } else {@> Preview <@ } @><span style="color:#000"><i class="fa fa-solid fa-arrow-up-right"></i></span> 1567 </span> 1568 </a> 1569 <@}@> 1570 </div> 1571 </div> 1572 </li> 1573 <@ }); @> 1574 </ul> 1575 </div> 1576 </div> 1577 <@ } @> 1578 </div> 1579 <@ }); @> 1580 </div> 1581 </div> 1582</script>
1582 1583 1584 1585 1586<!-- Curriculum 4th Template -->
1587<script type="text/template" id="coursecurr-4-template"> 1588 <div class="column full coursecurr4"> 1589 <@ $.each(item, function(index, value) { @> 1590 <div class="accordion-syllabus-item"> 1591 <header class="accordion-syllabus-header" > 1592 <h4 class="accordion-syllabus-header__title"> 1593 <span> 1594 <@if(index<9){@>0<@print(index+1)@><@ } else {@> <@print(index+1)@> <@ } @> 1595 </span> 1596 <div class="accordion-syllabus-header__title-block" > 1597 <p style="font-size: 20px; font-weight: 700;"> 1598 <@print(value.title)@> 1599 </p> 1600 <p class="text-primary" style="font-weight: 500; font-size: 14px; line-height: 150%; margin-top: 10px; "> 1601 <@if(value && value.type == 'aiheading'){@> 1602 (coming soon) 1603 <@}@> 1604 <@if(value && value.items){@> 1605 <@ print(value.items.length) @> attachment(s) 1606 <@}@> 1607 <@if(value.moduleDurations && curriculumAssetInfo){@><@if(value && value.contents){@> • <@}@> 1608 <@print(millisecondsToHHMMSSStr(value.moduleDurations))@> 1609 <@}@> 1610 </p> 1611 </div> 1612 </h4> 1613 <@if(value && value.items){@> 1614 <div class="accordion-syllabus-header__info" > 1615 <div class="accordion-syllabus-header__icon" > 1616 <i class="fa fa-angle-left" aria-hidden="true"></i> 1617 </div> 1618 </div> 1619 <@ } @> 1620 </header> 1621 <@if(value && value.items){@> 1622 <div class="accordion-content" style=""> 1623 <div class="accordian-content-block" > 1624 <ul class="accordian-list"> 1625 <@ $.each(value['items'], function(index1, value1) { @> 1626 <li class="accordian-list__item"> 1627 <div class="accordian-content-card" > 1628 <div class="accordian-content-card__info" > 1629 <div class="accordian-content-card__ico" > 1630 <@ if(value1.type == 'code'){ @> 1631 <img src="/resources/images/CodeIcon.svg"> 1632 <@ } else { @> 1633 <span class="material-icons text-primary"> 1634 <@ print(getCourseAssetIcon(value1.type))@>262 1635 </span> 1636 <@ } @> 1637 </div> 1638 <div class="accordian-content-card__title" > 1639 <@print(value1.title)@> <@ if(curriculumAssetInfo && value1.type == 'pdf' && value1.pages !== undefined && value1.pages > 0) { @><small>(<@- value1.pages @> pages)</small><@ } @> 1640 <@ if(value1.type == 'aiheading') { @><small>(coming soon)</small><@ } @> 1641 </div> 1642 </div> 1643 <div class="accordian-content-card__link" > 1644 <@if(summary.sampleAvailable && summary.sampleSectionIds.includes(value1.id)){@> 1645 <a href="/s/preview/courses/<@print(decodeURIComponent(summary.courseUrl).replace(/ /g,"-"))@>-<@- courseId @>#<@print(value1.id)@>" class="previewBtn"> 1646 <span class="text-primary"> 1647 <@ if(value1.type == 'video') { @> Watch <@ } else {@> Preview <@ } @> <span style="color:#000"><i class="fa fa-solid fa-arrow-up-right"></i></span> 1648 </span> 1649 </a> 1650 <@ } @> 1651 </div> 1652 </div> 1653 </li> 1654 <@ }); @> 1655 </ul> 1656 </div> 1657 </div> 1658 <@ } @> 1659 </div> 1660 <@ }); @> 1661 </div> 1662 </script>
1662 1663 1664 <!-- vegas curriculum-5--> 1665
1665<script> 1666 // Simple responsive positioning 1667 function updatePosition() { 1668 const element = document.getElementById('totalTimeElement'); 1669 if(element){ 1670 if (window.innerWidth > 768) { 1671 element.style.position = 'absolute'; 1672 element.style.top = "5px"; 1673 element.style.right = '122px'; 1674 } else { 1675 element.style.position = 'static'; 1676 element.style.margin = '0 0'; 1677 } 1678 } 1679 } 1680 1681 // Run on load and resize 1682 window.addEventListener('load', updatePosition); 1683 window.addEventListener('resize', updatePosition); 1684 </script>
1684 1685
1685<script type="text/template" id="coursecurr-5-template"> 1686 <div class="total-time" id="totalTimeElement" style=" 1687 font-size: 18px; 1688 font-weight: 600; 1689 color: #FB5607; 1690 padding: 8px 12px; 1691 border-radius: 4px; 1692 white-space: nowrap;"> 1693 <@if(summary.durations && summary.durations>0 && curriculumAssetInfo){@> 1694 <@print(millisecondsToHHMMSSStr(summary.durations))@> 1695 <@}@> 1696</div> 1697 1698<div class="accordion-syllabus" style="max-width:1000px !important"> 1699 <@ $.each(item, function(index, value) { @> 1700 <div class="accordion-syllabus-item" style="<@ if(index >= 5) { @> display: none; <@ } @>"> 1701 <header class="accordion-syllabus-header" style="background:#F5F5F5 !important; border-radius:0px;box-shadow:none;padding:0.5rem !important"> 1702 <h4 class="accordion-syllabus-header__title"> 1703 <span class="text-primary" style="font-size:18px ; font-weight:600; color:black;"> 1704 <@if(index < 9) {@> 1705 Week <@print(index + 1)@>: 1706 <@ } else {@> 1707 Week <@print(index + 1)@>: 1708 <@ } @> 1709 </span> 1710 <p style="font-size:18px ; font-weight:600;"><@print(value.title)@> <span class="text-primary show-sm" style="font-size: 14px;"> 1711 <@if(value && value.items){@> 1712 <@ print(value.items.length) @> attachment(s) 1713 <@} else {@> 1714 1 attachment(s) 1715 <@}@> 1716 <@if(value.moduleDurations && curriculumAssetInfo){@> 1717 • <@print(millisecondsToHHMMSSStr(value.moduleDurations))@> 1718 <@}@> 1719 </span></p> 1720 </h4> 1721 1722 <div class="accordion-syllabus-header__info"> 1723 <p class="text-primary hide-sm" style="color:#FB5607 !important;"> 1724 <@if(value && value.items){@> 1725 <@ print(value.items.length) @> attachment(s) 1726 <@} else {@> 1727 1 attachment(s) 1728 <@}@> 1729 <@if(value.moduleDurations && curriculumAssetInfo){@> 1730 • <@print(millisecondsToHHMMSSStr(value.moduleDurations))@> 1731 <@}@> 1732 </p> 1733 <div class="accordion-syllabus-header__icon text-primary"> 1734 <i class="fa fa-angle-left" aria-hidden="true" style="color:#FB5607;"></i> 1735 </div> 1736 </div> 1737 </header> 1738 <div class="accordion-content" style="filter:none;"> 1739 <div class="accordian-content-block" style="background:#F5F5F5 !important;box-shadow:none;padding:16px 66px 3px 69px !important;"> 1740 <ul class="accordian-list"> 1741 <@ var itemsCount = value['items'] ? value['items'].length : 0; @> 1742 <@ if(value['items'] && value['items'].length > 0) { @> 1743 <@ $.each(value['items'], function(index1, value1) { @> 1744 <li class="accordian-list__item" style="padding:0px 0px !important;<@ if(index1 >= 5) { @> display: none; <@ } @>"> 1745 <style> 1746 @media (max-width: 768px) { 1747 .accordian-content-card { 1748 flex-direction: column !important; 1749 align-items: stretch !important; 1750 } 1751 1752 .accordian-content-card__top { 1753 flex-direction: row !important; 1754 justify-content: space-between !important; 1755 align-items: center !important; 1756 width: 100% !important; 1757 } 1758 1759 .accordian-content-card__title { 1760 flex: 1 !important; 1761 margin: 0 10px !important; 1762 white-space: nowrap; 1763 overflow: hidden; 1764 text-overflow: ellipsis; 1765 } 1766 1767 .accordian-content-card__bottom { 1768 flex-direction: row !important; 1769 justify-content: space-between !important; 1770 align-items: center !important; 1771 width: 100% !important; 1772 margin-top: 6px !important; 1773 } 1774 1775 .accordian-content-card__link { 1776 flex: 1 !important; 1777 min-width: 0 !important; 1778 text-align: left !important; 1779 } 1780 1781 .accordian-content-card__time { 1782 flex-shrink: 0 !important; 1783 text-align: right !important; 1784 } 1785 } 1786 </style> 1787 1788 <div class="accordian-content-card" 1789 style="display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; padding: 10px 0; width: 100%; box-sizing: border-box; border-bottom: 1px solid #eee;"> 1790 1791 1792 <!-- Row 1: Icon + Title + Collapse Icon --> 1793 <div class="accordian-content-card__top" 1794 style="display: flex; align-items: center; justify-content: space-between; width: 100%;"> 1795 1796 <!-- Icon --> 1797 <div class="accordian-content-card__ico" style="flex-shrink: 0;"> 1798 <@ if(value1.type == 'code'){ @> 1799 <img src="/resources/images/CodeIcon.svg" style="width: 24px; height: 24px;"> 1800 <@ } else { @>
1801 <span class="material-icons text-primary" style="color:#FB5607; font-size: 24px;"> 1802 <@ print(getCourseAssetIcon(value1.type))@> 1803 </span> 1804 <@ } @> 1805 </div> 1806 1807 <!-- Title --> 1808 <div class="accordian-content-card__title" 1809 style="font-weight: 400; font-size: 14px; color: #333; margin: 0 10px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"> 1810 <@print(value1.title)@> 1811 </div> 1812 1813 <!-- Collapse Icon (optional) --> 1814 <div class="accordian-content-card__collapse" style="flex-shrink: 0;"> 1815 <!-- Example placeholder, add real icon if needed --> 1816 <!-- <i class="fa fa-chevron-down" style="font-size: 16px;"></i> --> 1817 </div> 1818 </div> 1819 1820 <!-- Row 2: Preview Button and Time --> 1821 <div class="accordian-content-card__bottom" 1822 style="display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 6px; flex-wrap: nowrap;"> 1823 1824 <!-- Preview Button --> 1825 <div class="accordian-content-card__link" style="flex: 1; min-width: 0; text-align: left;"> 1826 <@if(summary.sampleAvailable && summary.sampleSectionIds.includes(value1.id)){@> 1827 <a href="/s/preview/courses/<@print(decodeURIComponent(summary.courseUrl).replace(/ /g,'-'))@>-<@- courseId @>#<@print(value1.id)@>" 1828 class="previewBtn" 1829 style="font-size: 14px; font-weight: 500; text-decoration: none; color: #FB5607; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block;"> 1830 <span class="text-primary" style="color:#FB5607;"> 1831 <@ if(value1.type == 'video') { @> Watch <@ } else {@> Preview <@ } @> 1832 <span style="color:#000"><i class="fa fa-solid fa-arrow-up-right" style="color:#FB5607;"></i></span> 1833 </span> 1834 </a> 1835 <@}@> 1836 </div> 1837 1838 <!-- Time --> 1839 <div class="accordian-content-card__time" style="flex-shrink: 0; text-align: right;"> 1840 <p class="text-primary course-asset-time" 1841 style="font-size: 14px; font-weight: 500; color:#FB5607 !important; margin: 0;"> 1842 <@ if(value1.duration && value1.duration > 0) { @> 1843 <@ print(millisecondsToHHMMSSStr(value1.duration)) @> 1844 <@ } else { @> 1845 -- 1846 <@ } @> 1847 </p> 1848 </div> 1849 1850 </div> 1851 </div> 1852 1853 1854 </li> 1855 <@ }); @> 1856 <@ } else { @> 1857 <li class="accordian-list__item" style="padding:0px 0px !important;"> 1858 <div class="accordian-content-card" 1859 style="display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; padding: 10px 0; width: 100%; box-sizing: border-box; border-bottom: 1px solid #eee;"> 1860 1861 <!-- Row 1: Icon + Title + Collapse Icon --> 1862 <div class="accordian-content-card__top" 1863 style="display: flex; align-items: center; justify-content: space-between; width: 100%;"> 1864 1865 <!-- Icon --> 1866 <div class="accordian-content-card__ico" style="flex-shrink: 0;"> 1867 <@ if(value.type == 'code'){ @> 1868 <img src="/resources/images/CodeIcon.svg" style="width: 24px; height: 24px;"> 1869 <@ } else { @> 1870 <span class="material-icons text-primary" style="color:#FB5607; font-size: 24px;"> 1871 <@ print(getCourseAssetIcon(value.type))@> 1872 </span> 1873 <@ } @> 1874 </div> 1875 1876 <!-- Title --> 1877 <div class="accordian-content-card__title" 1878 style="font-weight: 400; font-size: 14px; color: #333; margin: 0 10px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"> 1879 <@print(value.title)@> 1880 </div> 1881 1882 <!-- Collapse Icon (optional) --> 1883 <div class="accordian-content-card__collapse" style="flex-shrink: 0;"> 1884 <!-- Example placeholder, add real icon if needed --> 1885 <!-- <i class="fa fa-chevron-down" style="font-size: 16px;"></i> --> 1886 </div> 1887 </div> 1888 1889 <!-- Row 2: Preview Button and Time --> 1890 <div class="accordian-content-card__bottom" 1891 style="display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 6px; flex-wrap: nowrap;"> 1892 1893 <!-- Preview Button --> 1894 <div class="accordian-content-card__link" style="flex: 1; min-width: 0; text-align: left;"> 1895 <@if(summary.sampleAvailable && summary.sampleSectionIds.includes(value.id)){@> 1896 <a href="/s/preview/courses/<@print(decodeURIComponent(summary.courseUrl).replace(/ /g,'-'))@>-<@- courseId @>#<@print(value.id)@>" 1897 class="previewBtn" 1898 style="font-size: 14px; font-weight: 500; text-decoration: none; color: #FB5607; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block;">
1899 <span class="text-primary" style="color:#FB5607;"> 1900 <@ if(value.type == 'video') { @> Watch <@ } else {@> Preview <@ } @> 1901 <span style="color:#000"><i class="fa fa-solid fa-arrow-up-right" style="color:#FB5607;"></i></span> 1902 </span> 1903 </a> 1904 <@}@> 1905 </div> 1906 1907 <!-- Time --> 1908 <div class="accordian-content-card__time" style="flex-shrink: 0; text-align: right;"> 1909 <p class="text-primary course-asset-time" 1910 style="font-size: 14px; font-weight: 500; color:#FB5607 !important; margin: 0;"> 1911 <@ if(value.duration && value.duration > 0) { @> 1912 <@ print(millisecondsToHHMMSSStr(value.duration)) @> 1913 <@ } else { @> 1914 -- 1915 <@ } @> 1916 </p> 1917 </div> 1918 </div> 1919 </div> 1920 </li> 1921 <@ } @> 1922 </ul> 1923 1924 <@ if(itemsCount > 5) { @> 1925 <div style="text-align: center; margin-top: 10px;"> 1926 <button style="background-color: #FB5607; color: white; padding: 4px 28px; border: none; cursor: pointer; font-size: 16px; border-radius: 24px;" 1927 onclick=" 1928 var parentAccordion = this.closest('.accordion-content'); 1929 parentAccordion.style.maxHeight = 'none'; 1930 this.closest('.accordian-content-block').querySelectorAll('.accordian-list__item').forEach(el => el.style.display = 'block'); 1931 this.style.display = 'none'; 1932 "> 1933 View All 1934 </button> 1935 </div> 1936 <@ } @> 1937 </div> 1938 </div> 1939 </div> 1940 <@ }); @> 1941 <@ if(item.length > 5) { @> 1942 <div style="text-align: center; margin-top: 10px;margin-bottom: 20px;"> 1943 <button style="background-color: #FB5607; color: white; padding: 8px 32px; border: none; cursor: pointer; font-size: 16px; border-radius: 24px;" 1944 onclick="document.querySelectorAll('.accordion-syllabus-item').forEach(el => el.style.display = 'block'); this.style.display = 'none';"> 1945 View All Sessions 1946 </button> 1947 </div> 1948 <@ } @> 1949</div> 1950 </div> 1951</script>
1951 1952 1953 1954<!--Blaze-Curriculum-6-->
1955<script type="text/template" id="coursecurr-6-template"> 1956 <div class="column full" spellcheck="false" data-gramm="false"> 1957 <div class="total-time" id="totalTimeElement" style=" 1958 font-size: 18px; 1959 font-weight: 600; 1960 color: #D8FD46; 1961 padding: 8px 12px; 1962 border-radius: 4px; 1963 white-space: nowrap; 1964 background: #232323; 1965 margin-bottom: 20px;"> 1966 <@if(summary.durations && summary.durations>0 && curriculumAssetInfo){@> 1967 <@print(millisecondsToHHMMSSStr(summary.durations))@> 1968 <@}@> 1969 </div> 1970 1971 <div class="accordion-syllabus"> 1972 <@ $.each(item, function(index, value) { @> 1973 <div class="accordion-syllabus-item" style="<@ if(index >= 5) { @> display: none; <@ } @>"> 1974 <header class="accordion-syllabus-header" style="background:#232323 !important; border-radius:0px;box-shadow:none;padding:20px 20px !important"> 1975 <h4 class="accordion-syllabus-header__title"> 1976 <span class="text-primary" style="font-size:18px ; font-weight:600; color:white;"> 1977 <@if(index < 9) {@> 1978 Week <@print(index + 1)@>: 1979 <@ } else {@> 1980 Week <@print(index + 1)@>: 1981 <@ } @> 1982 </span> 1983 <p style="font-size:18px ; font-weight:600;color:white;"><@print(value.title)@> <span class="text-primary show-sm" style="font-size: 14px;color:#D8FD46 !important;"> 1984 <@if(value && value.items){@> 1985 <@ print(value.items.length) @> attachment(s) 1986 <@} else {@> 1987 1 attachment(s) 1988 <@}@> 1989 <@if(value.moduleDurations && curriculumAssetInfo){@> 1990 • <@print(millisecondsToHHMMSSStr(value.moduleDurations))@> 1991 <@}@> 1992 </span></p> 1993 </h4> 1994 <div class="accordion-syllabus-header__info"> 1995 <p class="text-primary hide-sm" style="color:#D8FD46 !important;"> 1996 <@if(value && value.items){@> 1997 <@ print(value.items.length) @> attachment(s) 1998 <@} else {@> 1999 1 attachment(s) 2000 <@}@> 2001 <@if(value.moduleDurations && curriculumAssetInfo){@> 2002 • <@print(millisecondsToHHMMSSStr(value.moduleDurations))@> 2003 <@}@> 2004 </p> 2005 <div class="accordion-syllabus-header__icon text-primary"> 2006 <i class="fa fa-angle-left" aria-hidden="true" style="color:#D8FD46;"></i> 2007 </div> 2008 </div> 2009 </header> 2010 <div class="accordion-content" style="filter:none;background:#181818;"> 2011 <div class="accordian-content-block" style="box-shadow:none;padding:16px 20px !important;background:transparent !important;"> 2012 <ul class="accordian-list"> 2013 <@ var itemsCount = value['items'] ? value['items'].length : 0; @> 2014 <@ if(value['items'] && value['items'].length > 0) { @> 2015 <@ $.each(value['items'], function(index1, value1) { @> 2016 <li class="accordian-list__item" style="padding:0px 0px !important;<@ if(index1 >= 5) { @> display: none; <@ } @>"> 2017 <style> 2018 @media (max-width: 768px) { 2019 .accordian-content-card { 2020 flex-direction: column !important; 2021 align-items: stretch !important; 2022 } 2023 2024 .accordian-content-card__top { 2025 flex-direction: row !important; 2026 justify-content: space-between !important; 2027 align-items: center !important; 2028 width: 100% !important; 2029 } 2030 2031 .accordian-content-card__title { 2032 flex: 1 !important; 2033 margin: 0 10px !important; 2034 white-space: nowrap; 2035 overflow: hidden; 2036 text-overflow: ellipsis; 2037 } 2038 2039 .accordian-content-card__bottom { 2040 flex-direction: row !important; 2041 justify-content: space-between !important; 2042 align-items: center !important; 2043 width: 100% !important; 2044 margin-top: 6px !important; 2045 } 2046 2047 .accordian-content-card__link { 2048 flex: 1 !important; 2049 min-width: 0 !important; 2050 text-align: left !important; 2051 } 2052 2053 .accordian-content-card__time { 2054 flex-shrink: 0 !important; 2055 text-align: right !important; 2056 } 2057 } 2058 </style> 2059 2060 <div class="accordian-content-card" 2061 style="display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; padding: 10px 0; width: 100%; box-sizing: border-box; "> 2062 2063 <!-- Row 1: Icon + Title + Collapse Icon --> 2064 <div class="accordian-content-card__top" 2065 style="display: flex; align-items: center; justify-content: space-between; width: 100%;"> 2066 2067 <!-- Icon --> 2068 <div class="accordian-content-card__ico" style="flex-shrink: 0;"> 2069 <@ if(value1.type == 'code'){ @> 2070 <img src="/resources/images/CodeIcon.svg" style="width: 24px; height: 24px; filter: invert(1);"> 2071 <@ } else { @>
2072 <span class="material-icons text-primary" style="color:#D8FD46; font-size: 24px;"> 2073 <@ print(getCourseAssetIcon(value1.type))@> 2074 </span> 2075 <@ } @> 2076 </div> 2077 2078 <!-- Title --> 2079 <div class="accordian-content-card__title" 2080 style="font-weight: 400; font-size: 14px; color: white; margin: 0 10px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"> 2081 <@print(value1.title)@> 2082 <!-- <@ if(curriculumAssetInfo && value1.type == 'pdf' && value1.pages !== undefined && value1.pages > 0) { @> 2083 <small style="color: #999;">(<@- value1.pages @> pages)</small> 2084 <@ } @> 2085 <@ if(value1.type == 'aiheading') { @> 2086 <small style="color: #999;">(coming soon)</small> 2087 <@ } @> --> 2088 </div> 2089 2090 <!-- Collapse Icon --> 2091 <div class="accordian-content-card__collapse" style="flex-shrink: 0;"> 2092 </div> 2093 </div> 2094 2095 <!-- Row 2: Preview Button and Time --> 2096 <div class="accordian-content-card__bottom" 2097 style="display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 6px; flex-wrap: nowrap;"> 2098 2099 <!-- Preview Button --> 2100 <div class="accordian-content-card__link" style="flex: 1; min-width: 0; text-align: left;"> 2101 <@if(summary.sampleAvailable && summary.sampleSectionIds.includes(value1.id)){@> 2102 <a href="/s/preview/courses/<@print(decodeURIComponent(summary.courseUrl).replace(/ /g,'-'))@>-<@- courseId @>#<@print(value1.id)@>" 2103 class="previewBtn" 2104 style="font-size: 14px; font-weight: 500; text-decoration: none; color: #D8FD46 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block;"> 2105 <span class="text-primary" style="color:#D8FD46;"> 2106 <@ if(value1.type == 'video') { @> Watch <@ } else {@> Preview <@ } @> 2107 <span style="color:#000"><i class="fa fa-solid fa-arrow-up-right" style="color:#D8FD46;"></i></span> 2108 </span> 2109 </a> 2110 <@}@> 2111 </div> 2112 2113 <!-- Time --> 2114 <div class="accordian-content-card__time" style="flex-shrink: 0; text-align: right;"> 2115 <p class="text-primary course-asset-time" 2116 style="font-size: 14px; font-weight: 500; color:#D8FD46 !important; margin: 0;"> 2117 <@ if(value1.duration && value1.duration > 0) { @> 2118 <@ print(millisecondsToHHMMSSStr(value1.duration)) @> 2119 <@ } else { @> 2120 -- 2121 <@ } @> 2122 </p> 2123 </div> 2124 </div> 2125 </div> 2126 </li> 2127 <@ }); @> 2128 <@ } else { @> 2129 <li class="accordian-list__item" style="padding:0px 0px !important;"> 2130 <div class="accordian-content-card" 2131 style="display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; padding: 10px 0; width: 100%; box-sizing: border-box; "> 2132 2133 <!-- Row 1: Icon + Title + Collapse Icon --> 2134 <div class="accordian-content-card__top" 2135 style="display: flex; align-items: center; justify-content: space-between; width: 100%;"> 2136 2137 <!-- Icon --> 2138 <div class="accordian-content-card__ico" style="flex-shrink: 0;"> 2139 <@ if(value.type == 'code'){ @> 2140 <img src="/resources/images/CodeIcon.svg" style="width: 24px; height: 24px; filter: invert(1);"> 2141 <@ } else { @> 2142 <span class="material-icons text-primary" style="color:#D8FD46; font-size: 24px;"> 2143 <@ print(getCourseAssetIcon(value.type))@> 2144 </span> 2145 <@ } @> 2146 </div> 2147 2148 <!-- Title --> 2149 <div class="accordian-content-card__title" 2150 style="font-weight: 400; font-size: 14px; color: white; margin: 0 10px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"> 2151 <@print(value.title)@> 2152 </div> 2153 2154 <!-- Collapse Icon (optional) --> 2155 <div class="accordian-content-card__collapse" style="flex-shrink: 0;"> 2156 <!-- Example placeholder, add real icon if needed --> 2157 <!-- <i class="fa fa-chevron-down" style="font-size: 16px;"></i> --> 2158 </div> 2159 </div> 2160 2161 <!-- Row 2: Preview Button and Time --> 2162 <div class="accordian-content-card__bottom" 2163 style="display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 6px; flex-wrap: nowrap;"> 2164 2165 <!-- Preview Button --> 2166 <div class="accordian-content-card__link" style="flex: 1; min-width: 0; text-align: left;"> 2167 <@if(summary.sampleAvailable && summary.sampleSectionIds.includes(value.id)){@> 2168 <a href="/s/preview/courses/<@print(decodeURIComponent(summary.courseUrl).replace(/ /g,'-'))@>-<@- courseId @>#<@print(value.id)@>" 2169 class="previewBtn" 2170 style="font-size: 14px; font-weight: 500; text-decoration: none; color: #D8FD46 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block;"> 2171 <span class="text-primary" style="color:#D8FD46;"> 2172 <@ if(value.type == 'video') { @> Watch <@ } else {@> Preview <@ } @> 2173 <span style="color:#000"><i class="fa fa-solid fa-arrow-up-right" style="color:#D8FD46;"></i></span> 2174 </span> 2175 </a> 2176 <@}@> 2177 </div> 2178 2179 <!-- Time --> 2180 <div class="accordian-content-card__time" style="flex-shrink: 0; text-align: right;"> 2181 <p class="text-primary course-asset-time" 2182 style="font-size: 14px; font-weight: 500; color:#D8FD46 !important; margin: 0;"> 2183 <@ if(value.duration && value.duration > 0) { @> 2184 <@ print(millisecondsToHHMMSSStr(value.duration)) @> 2185 <@ } else { @> 2186 -- 2187 <@ } @> 2188 </p> 2189 </div> 2190 </div> 2191 </div> 2192 </li> 2193 <@ } @> 2194 </ul> 2195 2196 <@ if(itemsCount > 5) { @> 2197 <div style="text-align: center; margin-top: 10px;"> 2198 <button style="background-color: #D8FD46; color: black; padding: 4px 28px; border: none; cursor: pointer; font-size: 16px; border-radius: 0px;" 2199 onclick=" 2200 var parentAccordion = this.closest('.accordion-content'); 2201 parentAccordion.style.maxHeight = 'none'; 2202 this.closest('.accordian-content-block').querySelectorAll('.accordian-list__item').forEach(el => el.style.display = 'block'); 2203 this.style.display = 'none'; 2204 "> 2205 View All 2206 </button> 2207 </div> 2208 <@ } @> 2209 </div> 2210 </div> 2211 </div> 2212 <@ }); @> 2213 <@ if(item.length > 5) { @> 2214 <div style="text-align: center; margin-top: 10px;margin-bottom: 20px;"> 2215 <button style="background-color: #D8FD46; color: black; padding: 8px 32px; border: none; cursor: pointer; font-size: 16px; border-radius: 0px;" 2216 onclick="document.querySelectorAll('.accordion-syllabus-item').forEach(el => el.style.display = 'block'); this.style.display = 'none';"> 2217 View All Sessions 2218 </button> 2219 </div> 2220 <@ } @> 2221 </div> 2222 </div> 2223</script>
2223 2224
2225<script> 2226 // Simple responsive positioning (same as Vegas) 2227 function updatePosition() { 2228 const element = document.getElementById('totalTimeElement'); 2229 if(element){ 2230 if (window.innerWidth > 768) { 2231 element.style.position = 'absolute'; 2232 element.style.top = "5px"; 2233 element.style.right = '122px'; 2234 } else { 2235 element.style.position = 'static'; 2236 element.style.margin = '0 0'; 2237 } 2238 } 2239 } 2240 2241 // Run on load and resize 2242 window.addEventListener('load', updatePosition); 2243 window.addEventListener('resize', updatePosition); 2244</script>
2244 2245 2246 2247 2248 2249<!--Nebula Curriculum 7--> 2250 2251
2252<script> 2253 // Simple responsive positioning 2254 function updatePosition() { 2255 const element = document.getElementById('totalTimeElement'); 2256 if(element){ 2257 if (window.innerWidth > 768) { 2258 element.style.position = 'absolute'; 2259 element.style.top = "5px"; 2260 element.style.right = '122px'; 2261 } else { 2262 element.style.position = 'static'; 2263 element.style.margin = '0 0'; 2264 } 2265 } 2266 } 2267 2268 // Run on load and resize 2269 window.addEventListener('load', updatePosition); 2270 window.addEventListener('resize', updatePosition); 2271 </script>
2271 2272
2272<script type="text/template" id="coursecurr-7-template"> 2273 <div class="total-time" id="totalTimeElement" style=" 2274 font-size: 18px; 2275 font-weight: 600; 2276 color: #6715FF; 2277 padding: 8px 12px; 2278 border-radius: 4px; 2279 white-space: nowrap;"> 2280 <@if(summary.durations && summary.durations>0 && curriculumAssetInfo){@> 2281 <@print(millisecondsToHHMMSSStr(summary.durations))@> 2282 <@}@> 2283</div> 2284 2285<div class="accordion-syllabus" style="max-width:1000px !important"> 2286 <@ $.each(item, function(index, value) { @> 2287 <div class="accordion-syllabus-item" style="<@ if(index >= 5) { @> display: none; <@ } @>"> 2288 <header class="accordion-syllabus-header" style="background:#F1ECFB !important; border-radius16px;box-shadow:none;padding:20px !important"> 2289 <h4 class="accordion-syllabus-header__title"> 2290 <span class="text-primary" style="font-size:18px ; font-weight:600; color:black;"> 2291 <@if(index < 9) {@> 2292 Week <@print(index + 1)@>: 2293 <@ } else {@> 2294 Week <@print(index + 1)@>: 2295 <@ } @> 2296 </span> 2297 <p style="font-size:18px ; font-weight:600;"><@print(value.title)@> <span class="text-primary show-sm" style="font-size: 14px;"> 2298 <@if(value && value.items){@> 2299 <@ print(value.items.length) @> attachment(s) 2300 <@} else {@> 2301 1 attachment(s) 2302 <@}@> 2303 <@if(value.moduleDurations && curriculumAssetInfo){@> 2304 • <@print(millisecondsToHHMMSSStr(value.moduleDurations))@> 2305 <@}@> 2306 </span></p> 2307 </h4> 2308 2309 <div class="accordion-syllabus-header__info"> 2310 <p class="text-primary hide-sm" style="color:#6715FF !important;"> 2311 <@if(value && value.items){@> 2312 <@ print(value.items.length) @> attachment(s) 2313 <@} else {@> 2314 1 attachment(s) 2315 <@}@> 2316 <@if(value.moduleDurations && curriculumAssetInfo){@> 2317 • <@print(millisecondsToHHMMSSStr(value.moduleDurations))@> 2318 <@}@> 2319 </p> 2320 <div class="accordion-syllabus-header__icon text-primary"> 2321 <i class="fa fa-angle-left" aria-hidden="true" style="color:#6715FF;"></i> 2322 </div> 2323 </div> 2324 </header> 2325 <div class="accordion-content" style="filter:none;background:transparent !important;"> 2326 <div class="accordian-content-block" style="background:transparent !important;box-shadow:none;padding:16px 66px 3px 69px !important;"> 2327 <ul class="accordian-list"> 2328 <@ var itemsCount = value['items'] ? value['items'].length : 0; @> 2329 <@ if(value['items'] && value['items'].length > 0) { @> 2330 <@ $.each(value['items'], function(index1, value1) { @> 2331 <li class="accordian-list__item" style="padding:0px 0px !important;<@ if(index1 >= 5) { @> display: none; <@ } @>"> 2332 <style> 2333 @media (max-width: 768px) { 2334 .accordian-content-card { 2335 flex-direction: column !important; 2336 align-items: stretch !important; 2337 } 2338 2339 .accordian-content-card__top { 2340 flex-direction: row !important; 2341 justify-content: space-between !important; 2342 align-items: center !important; 2343 width: 100% !important; 2344 } 2345 2346 .accordian-content-card__title { 2347 flex: 1 !important; 2348 margin: 0 10px !important; 2349 white-space: nowrap; 2350 overflow: hidden; 2351 text-overflow: ellipsis; 2352 } 2353 2354 .accordian-content-card__bottom { 2355 flex-direction: row !important; 2356 justify-content: space-between !important; 2357 align-items: center !important; 2358 width: 100% !important; 2359 margin-top: 6px !important; 2360 } 2361 2362 .accordian-content-card__link { 2363 flex: 1 !important; 2364 min-width: 0 !important; 2365 text-align: left !important; 2366 } 2367 2368 .accordian-content-card__time { 2369 flex-shrink: 0 !important; 2370 text-align: right !important; 2371 } 2372 } 2373 </style> 2374 2375 <div class="accordian-content-card" 2376 style="display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; padding: 10px 0; width: 100%; box-sizing: border-box; border-bottom: 1px solid #eee;"> 2377 2378 2379 <!-- Row 1: Icon + Title + Collapse Icon --> 2380 <div class="accordian-content-card__top" 2381 style="display: flex; align-items: center; justify-content: space-between; width: 100%;"> 2382 2383 <!-- Icon --> 2384 <div class="accordian-content-card__ico" style="flex-shrink: 0;"> 2385 <@ if(value1.type == 'code'){ @> 2386 <img src="/resources/images/CodeIcon.svg" style="width: 24px; height: 24px;"> 2387 <@ } else { @>
2388 <span class="material-icons text-primary" style="color:#6715FF; font-size: 24px;"> 2389 <@ print(getCourseAssetIcon(value1.type))@> 2390 </span> 2391 <@ } @> 2392 </div> 2393 2394 <!-- Title --> 2395 <div class="accordian-content-card__title" 2396 style="font-weight: 400; font-size: 14px; color: #333; margin: 0 10px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"> 2397 <@print(value1.title)@> 2398 </div> 2399 2400 <!-- Collapse Icon (optional) --> 2401 <div class="accordian-content-card__collapse" style="flex-shrink: 0;"> 2402 <!-- Example placeholder, add real icon if needed --> 2403 <!-- <i class="fa fa-chevron-down" style="font-size: 16px;"></i> --> 2404 </div> 2405 </div> 2406 2407 <!-- Row 2: Preview Button and Time --> 2408 <div class="accordian-content-card__bottom" 2409 style="display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 6px; flex-wrap: nowrap;"> 2410 2411 <!-- Preview Button --> 2412 <div class="accordian-content-card__link" style="flex: 1; min-width: 0; text-align: left;"> 2413 <@if(summary.sampleAvailable && summary.sampleSectionIds.includes(value1.id)){@> 2414 <a href="/s/preview/courses/<@print(decodeURIComponent(summary.courseUrl).replace(/ /g,'-'))@>-<@- courseId @>#<@print(value1.id)@>" 2415 class="previewBtn" 2416 style="font-size: 14px; font-weight: 500; text-decoration: none; color: #6715FF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block;"> 2417 <span class="text-primary" style="color:#6715FF;"> 2418 <@ if(value1.type == 'video') { @> Watch <@ } else {@> Preview <@ } @> 2419 <span style="color:#000"><i class="fa fa-solid fa-arrow-up-right" style="color:#6715FF;"></i></span> 2420 </span> 2421 </a> 2422 <@}@> 2423 </div> 2424 2425 <!-- Time --> 2426 <div class="accordian-content-card__time" style="flex-shrink: 0; text-align: right;"> 2427 <p class="text-primary course-asset-time" 2428 style="font-size: 14px; font-weight: 500; color:#6715FF !important; margin: 0;"> 2429 <@ if(value1.duration && value1.duration > 0) { @> 2430 <@ print(millisecondsToHHMMSSStr(value1.duration)) @> 2431 <@ } else { @> 2432 -- 2433 <@ } @> 2434 </p> 2435 </div> 2436 2437 </div> 2438 </div> 2439 2440 2441 </li> 2442 <@ }); @> 2443 <@ } else { @> 2444 <li class="accordian-list__item" style="padding:0px 0px !important;"> 2445 <div class="accordian-content-card" 2446 style="display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; padding: 10px 0; width: 100%; box-sizing: border-box; border-bottom: 1px solid #eee;"> 2447 2448 <!-- Row 1: Icon + Title + Collapse Icon --> 2449 <div class="accordian-content-card__top" 2450 style="display: flex; align-items: center; justify-content: space-between; width: 100%;"> 2451 2452 <!-- Icon --> 2453 <div class="accordian-content-card__ico" style="flex-shrink: 0;"> 2454 <@ if(value.type == 'code'){ @> 2455 <img src="/resources/images/CodeIcon.svg" style="width: 24px; height: 24px;"> 2456 <@ } else { @> 2457 <span class="material-icons text-primary" style="color:#6715FF; font-size: 24px;"> 2458 <@ print(getCourseAssetIcon(value.type))@> 2459 </span> 2460 <@ } @> 2461 </div> 2462 2463 <!-- Title --> 2464 <div class="accordian-content-card__title" 2465 style="font-weight: 400; font-size: 14px; color: #333; margin: 0 10px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"> 2466 <@print(value.title)@> 2467 </div> 2468 2469 <!-- Collapse Icon (optional) --> 2470 <div class="accordian-content-card__collapse" style="flex-shrink: 0;"> 2471 <!-- Example placeholder, add real icon if needed --> 2472 <!-- <i class="fa fa-chevron-down" style="font-size: 16px;"></i> --> 2473 </div> 2474 </div> 2475 2476 <!-- Row 2: Preview Button and Time --> 2477 <div class="accordian-content-card__bottom" 2478 style="display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 6px; flex-wrap: nowrap;"> 2479 2480 <!-- Preview Button --> 2481 <div class="accordian-content-card__link" style="flex: 1; min-width: 0; text-align: left;"> 2482 <@if(summary.sampleAvailable && summary.sampleSectionIds.includes(value.id)){@> 2483 <a href="/s/preview/courses/<@print(decodeURIComponent(summary.courseUrl).replace(/ /g,'-'))@>-<@- courseId @>#<@print(value.id)@>" 2484 class="previewBtn" 2485 style="font-size: 14px; font-weight: 500; text-decoration: none; color: #6715FF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block;">
2486 <span class="text-primary" style="color:#6715FF;"> 2487 <@ if(value.type == 'video') { @> Watch <@ } else {@> Preview <@ } @> 2488 <span style="color:#000"><i class="fa fa-solid fa-arrow-up-right" style="color:#6715FF;"></i></span> 2489 </span> 2490 </a> 2491 <@}@> 2492 </div> 2493 2494 <!-- Time --> 2495 <div class="accordian-content-card__time" style="flex-shrink: 0; text-align: right;"> 2496 <p class="text-primary course-asset-time" 2497 style="font-size: 14px; font-weight: 500; color:#6715FF !important; margin: 0;"> 2498 <@ if(value.duration && value.duration > 0) { @> 2499 <@ print(millisecondsToHHMMSSStr(value.duration)) @> 2500 <@ } else { @> 2501 -- 2502 <@ } @> 2503 </p> 2504 </div> 2505 </div> 2506 </div> 2507 </li> 2508 <@ } @> 2509 </ul> 2510 2511 <@ if(itemsCount > 5) { @> 2512 <div style="text-align: center; margin-top: 10px;"> 2513 <button style="background-color: #6715FF; color: white; padding: 4px 28px; border: none; cursor: pointer; font-size: 16px; border-radius: 24px;" 2514 onclick=" 2515 var parentAccordion = this.closest('.accordion-content'); 2516 parentAccordion.style.maxHeight = 'none'; 2517 this.closest('.accordian-content-block').querySelectorAll('.accordian-list__item').forEach(el => el.style.display = 'block'); 2518 this.style.display = 'none'; 2519 "> 2520 View All 2521 </button> 2522 </div> 2523 <@ } @> 2524 </div> 2525 </div> 2526 </div> 2527 <@ }); @> 2528 <@ if(item.length > 5) { @> 2529 <div style="text-align: center; margin-top: 10px;margin-bottom: 20px;"> 2530 <button style="background-color: #6715FF; color: white; padding: 8px 32px; border: none; cursor: pointer; font-size: 16px; border-radius: 24px;" 2531 onclick="document.querySelectorAll('.accordion-syllabus-item').forEach(el => el.style.display = 'block'); this.style.display = 'none';"> 2532 View All Sessions 2533 </button> 2534 </div> 2535 <@ } @> 2536</div> 2537 </div> 2538</script>
2538 2539 2540 2541 2542<!--Olive Curriculum 8-->
2543<script> 2544 // Simple responsive positioning 2545 function updatePosition() { 2546 const element = document.getElementById('totalTimeElement'); 2547 if(element){ 2548 if (window.innerWidth > 768) { 2549 element.style.position = 'absolute'; 2550 element.style.top = "5px"; 2551 element.style.right = '122px'; 2552 } else { 2553 element.style.position = 'static'; 2554 element.style.margin = '0 0'; 2555 } 2556 } 2557 } 2558 2559 // Run on load and resize 2560 window.addEventListener('load', updatePosition); 2561 window.addEventListener('resize', updatePosition); 2562 </script>
2562 2563
2563<script type="text/template" id="coursecurr-8-template"> 2564 <div class="total-time" id="totalTimeElement" style=" 2565 font-size: 18px; 2566 font-weight: 600; 2567 color: #064400; 2568 padding: 8px 12px; 2569 border-radius: 4px; 2570 white-space: nowrap;"> 2571 <@if(summary.durations && summary.durations>0 && curriculumAssetInfo){@> 2572 <@print(millisecondsToHHMMSSStr(summary.durations))@> 2573 <@}@> 2574</div> 2575 2576<div class="accordion-syllabus" style="max-width:1000px !important"> 2577 <@ $.each(item, function(index, value) { @> 2578 <div class="accordion-syllabus-item" style="<@ if(index >= 5) { @> display: none; <@ } @>"> 2579 <header class="accordion-syllabus-header" style="background:#E5E5E5 !important; border-radius16px;box-shadow:none;padding:20px !important"> 2580 <h4 class="accordion-syllabus-header__title"> 2581 <span class="text-primary" style="font-size:18px ; font-weight:600; color:black;"> 2582 <@if(index < 9) {@> 2583 Week <@print(index + 1)@>: 2584 <@ } else {@> 2585 Week <@print(index + 1)@>: 2586 <@ } @> 2587 </span> 2588 <p style="font-size:18px ; font-weight:600;"><@print(value.title)@> <span class="text-primary show-sm" style="font-size: 14px;"> 2589 <@if(value && value.items){@> 2590 <@ print(value.items.length) @> attachment(s) 2591 <@} else {@> 2592 1 attachment(s) 2593 <@}@> 2594 <@if(value.moduleDurations && curriculumAssetInfo){@> 2595 • <@print(millisecondsToHHMMSSStr(value.moduleDurations))@> 2596 <@}@> 2597 </span></p> 2598 </h4> 2599 2600 <div class="accordion-syllabus-header__info"> 2601 <p class="text-primary hide-sm" style="color:#064400 !important;"> 2602 <@if(value && value.items){@> 2603 <@ print(value.items.length) @> attachment(s) 2604 <@} else {@> 2605 1 attachment(s) 2606 <@}@> 2607 <@if(value.moduleDurations && curriculumAssetInfo){@> 2608 • <@print(millisecondsToHHMMSSStr(value.moduleDurations))@> 2609 <@}@> 2610 </p> 2611 <div class="accordion-syllabus-header__icon text-primary"> 2612 <i class="fa fa-angle-left" aria-hidden="true" style="color:#064400;"></i> 2613 </div> 2614 </div> 2615 </header> 2616 <div class="accordion-content" style="filter:none;background:transparent !important;"> 2617 <div class="accordian-content-block" style="background:transparent !important;box-shadow:none;padding:16px 66px 3px 69px !important;"> 2618 <ul class="accordian-list"> 2619 <@ var itemsCount = value['items'] ? value['items'].length : 0; @> 2620 <@ if(value['items'] && value['items'].length > 0) { @> 2621 <@ $.each(value['items'], function(index1, value1) { @> 2622 <li class="accordian-list__item" style="padding:0px 0px !important;<@ if(index1 >= 5) { @> display: none; <@ } @>"> 2623 <style> 2624 @media (max-width: 768px) { 2625 .accordian-content-card { 2626 flex-direction: column !important; 2627 align-items: stretch !important; 2628 } 2629 2630 .accordian-content-card__top { 2631 flex-direction: row !important; 2632 justify-content: space-between !important; 2633 align-items: center !important; 2634 width: 100% !important; 2635 } 2636 2637 .accordian-content-card__title { 2638 flex: 1 !important; 2639 margin: 0 10px !important; 2640 white-space: nowrap; 2641 overflow: hidden; 2642 text-overflow: ellipsis; 2643 } 2644 2645 .accordian-content-card__bottom { 2646 flex-direction: row !important; 2647 justify-content: space-between !important; 2648 align-items: center !important; 2649 width: 100% !important; 2650 margin-top: 6px !important; 2651 } 2652 2653 .accordian-content-card__link { 2654 flex: 1 !important; 2655 min-width: 0 !important; 2656 text-align: left !important; 2657 } 2658 2659 .accordian-content-card__time { 2660 flex-shrink: 0 !important; 2661 text-align: right !important; 2662 } 2663 } 2664 </style> 2665 2666 <div class="accordian-content-card" 2667 style="display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; padding: 10px 0; width: 100%; box-sizing: border-box; border-bottom: 1px solid #eee;"> 2668 2669 2670 <!-- Row 1: Icon + Title + Collapse Icon --> 2671 <div class="accordian-content-card__top" 2672 style="display: flex; align-items: center; justify-content: space-between; width: 100%;"> 2673 2674 <!-- Icon --> 2675 <div class="accordian-content-card__ico" style="flex-shrink: 0;"> 2676 <@ if(value1.type == 'code'){ @> 2677 <img src="/resources/images/CodeIcon.svg" style="width: 24px; height: 24px;"> 2678 <@ } else { @>
2679 <span class="material-icons text-primary" style="color:#064400; font-size: 24px;"> 2680 <@ print(getCourseAssetIcon(value1.type))@> 2681 </span> 2682 <@ } @> 2683 </div> 2684 2685 <!-- Title --> 2686 <div class="accordian-content-card__title" 2687 style="font-weight: 400; font-size: 14px; color: #333; margin: 0 10px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"> 2688 <@print(value1.title)@> 2689 </div> 2690 2691 <!-- Collapse Icon (optional) --> 2692 <div class="accordian-content-card__collapse" style="flex-shrink: 0;"> 2693 <!-- Example placeholder, add real icon if needed --> 2694 <!-- <i class="fa fa-chevron-down" style="font-size: 16px;"></i> --> 2695 </div> 2696 </div> 2697 2698 <!-- Row 2: Preview Button and Time --> 2699 <div class="accordian-content-card__bottom" 2700 style="display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 6px; flex-wrap: nowrap;"> 2701 2702 <!-- Preview Button --> 2703 <div class="accordian-content-card__link" style="flex: 1; min-width: 0; text-align: left;"> 2704 <@if(summary.sampleAvailable && summary.sampleSectionIds.includes(value1.id)){@> 2705 <a href="/s/preview/courses/<@print(decodeURIComponent(summary.courseUrl).replace(/ /g,'-'))@>-<@- courseId @>#<@print(value1.id)@>" 2706 class="previewBtn" 2707 style="font-size: 14px; font-weight: 500; text-decoration: none; color: #064400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block;"> 2708 <span class="text-primary" style="color:#064400;"> 2709 <@ if(value1.type == 'video') { @> Watch <@ } else {@> Preview <@ } @> 2710 <span style="color:#000"><i class="fa fa-solid fa-arrow-up-right" style="color:#064400;"></i></span> 2711 </span> 2712 </a> 2713 <@}@> 2714 </div> 2715 2716 <!-- Time --> 2717 <div class="accordian-content-card__time" style="flex-shrink: 0; text-align: right;"> 2718 <p class="text-primary course-asset-time" 2719 style="font-size: 14px; font-weight: 500; color:#064400 !important; margin: 0;"> 2720 <@ if(value1.duration && value1.duration > 0) { @> 2721 <@ print(millisecondsToHHMMSSStr(value1.duration)) @> 2722 <@ } else { @> 2723 -- 2724 <@ } @> 2725 </p> 2726 </div> 2727 2728 </div> 2729 </div> 2730 2731 2732 </li> 2733 <@ }); @> 2734 <@ } else { @> 2735 <li class="accordian-list__item" style="padding:0px 0px !important;"> 2736 <div class="accordian-content-card" 2737 style="display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; padding: 10px 0; width: 100%; box-sizing: border-box; border-bottom: 1px solid #eee;"> 2738 2739 <!-- Row 1: Icon + Title + Collapse Icon --> 2740 <div class="accordian-content-card__top" 2741 style="display: flex; align-items: center; justify-content: space-between; width: 100%;"> 2742 2743 <!-- Icon --> 2744 <div class="accordian-content-card__ico" style="flex-shrink: 0;"> 2745 <@ if(value.type == 'code'){ @> 2746 <img src="/resources/images/CodeIcon.svg" style="width: 24px; height: 24px;"> 2747 <@ } else { @> 2748 <span class="material-icons text-primary" style="color:#064400; font-size: 24px;"> 2749 <@ print(getCourseAssetIcon(value.type))@> 2750 </span> 2751 <@ } @> 2752 </div> 2753 2754 <!-- Title --> 2755 <div class="accordian-content-card__title" 2756 style="font-weight: 400; font-size: 14px; color: #333; margin: 0 10px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"> 2757 <@print(value.title)@> 2758 </div> 2759 2760 <!-- Collapse Icon (optional) --> 2761 <div class="accordian-content-card__collapse" style="flex-shrink: 0;"> 2762 <!-- Example placeholder, add real icon if needed --> 2763 <!-- <i class="fa fa-chevron-down" style="font-size: 16px;"></i> --> 2764 </div> 2765 </div> 2766 2767 <!-- Row 2: Preview Button and Time --> 2768 <div class="accordian-content-card__bottom" 2769 style="display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 6px; flex-wrap: nowrap;"> 2770 2771 <!-- Preview Button --> 2772 <div class="accordian-content-card__link" style="flex: 1; min-width: 0; text-align: left;"> 2773 <@if(summary.sampleAvailable && summary.sampleSectionIds.includes(value.id)){@> 2774 <a href="/s/preview/courses/<@print(decodeURIComponent(summary.courseUrl).replace(/ /g,'-'))@>-<@- courseId @>#<@print(value.id)@>" 2775 class="previewBtn" 2776 style="font-size: 14px; font-weight: 500; text-decoration: none; color: #064400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block;">
2777 <span class="text-primary" style="color:#064400;"> 2778 <@ if(value.type == 'video') { @> Watch <@ } else {@> Preview <@ } @> 2779 <span style="color:#000"><i class="fa fa-solid fa-arrow-up-right" style="color:#064400;"></i></span> 2780 </span> 2781 </a> 2782 <@}@> 2783 </div> 2784 2785 <!-- Time --> 2786 <div class="accordian-content-card__time" style="flex-shrink: 0; text-align: right;"> 2787 <p class="text-primary course-asset-time" 2788 style="font-size: 14px; font-weight: 500; color:#064400 !important; margin: 0;"> 2789 <@ if(value.duration && value.duration > 0) { @> 2790 <@ print(millisecondsToHHMMSSStr(value.duration)) @> 2791 <@ } else { @> 2792 -- 2793 <@ } @> 2794 </p> 2795 </div> 2796 </div> 2797 </div> 2798 </li> 2799 <@ } @> 2800 </ul> 2801 2802 <@ if(itemsCount > 5) { @> 2803 <div style="text-align: center; margin-top: 10px;"> 2804 <button style="background-color: #064400; color: white; padding: 4px 28px; border: none; cursor: pointer; font-size: 16px; border-radius: 24px;" 2805 onclick=" 2806 var parentAccordion = this.closest('.accordion-content'); 2807 parentAccordion.style.maxHeight = 'none'; 2808 this.closest('.accordian-content-block').querySelectorAll('.accordian-list__item').forEach(el => el.style.display = 'block'); 2809 this.style.display = 'none'; 2810 "> 2811 View All 2812 </button> 2813 </div> 2814 <@ } @> 2815 </div> 2816 </div> 2817 </div> 2818 <@ }); @> 2819 <@ if(item.length > 5) { @> 2820 <div style="text-align: center; margin-top: 10px;margin-bottom: 20px;"> 2821 <button style="background-color: #064400; color: white; padding: 8px 32px; border: none; cursor: pointer; font-size: 16px; border-radius: 24px;" 2822 onclick="document.querySelectorAll('.accordion-syllabus-item').forEach(el => el.style.display = 'block'); this.style.display = 'none';"> 2823 View All Sessions 2824 </button> 2825 </div> 2826 <@ } @> 2827</div> 2828 </div> 2829</script>
2829 2830 2831 2832 2833<!--Dusk Curriculum 9-->
2834<script> 2835 // Simple responsive positioning 2836 function updatePosition() { 2837 const element = document.getElementById('totalTimeElement'); 2838 if(element){ 2839 if (window.innerWidth > 768) { 2840 element.style.position = 'absolute'; 2841 element.style.top = "5px"; 2842 element.style.right = '122px'; 2843 } else { 2844 element.style.position = 'static'; 2845 element.style.margin = '0 0'; 2846 } 2847 } 2848 } 2849 2850 // Run on load and resize 2851 window.addEventListener('load', updatePosition); 2852 window.addEventListener('resize', updatePosition); 2853 </script>
2853 2854
2854<script> 2855 // Simple responsive positioning 2856 function updatePosition() { 2857 const element = document.getElementById('totalTimeElement'); 2858 if(element){ 2859 if (window.innerWidth > 768) { 2860 element.style.position = 'absolute'; 2861 element.style.top = "5px"; 2862 element.style.right = '122px'; 2863 } else { 2864 element.style.position = 'static'; 2865 element.style.margin = '0 0'; 2866 } 2867 } 2868 } 2869 2870 // Run on load and resize 2871 window.addEventListener('load', updatePosition); 2872 window.addEventListener('resize', updatePosition); 2873 </script>
2873 2874
2874<script type="text/template" id="coursecurr-9-template"> 2875 <div class="total-time" id="totalTimeElement" style=" 2876 font-size: 18px; 2877 font-weight: 600; 2878 color: #282400; 2879 padding: 8px 12px; 2880 border-radius: 4px; 2881 white-space: nowrap;"> 2882 <@if(summary.durations && summary.durations>0 && curriculumAssetInfo){@> 2883 <@print(millisecondsToHHMMSSStr(summary.durations))@> 2884 <@}@> 2885</div> 2886 2887<div class="accordion-syllabus" style="max-width:1000px !important"> 2888 <@ $.each(item, function(index, value) { @> 2889 <div class="accordion-syllabus-item" style="<@ if(index >= 5) { @> display: none; <@ } @>"> 2890 <header class="accordion-syllabus-header" style="background:#F5F5F5 !important; border-radius:8px;box-shadow:none;padding:20px !important"> 2891 <h4 class="accordion-syllabus-header__title"> 2892 <span class="text-primary" style="font-size:18px ; font-weight:600; color:black;"> 2893 <@if(index < 9) {@> 2894 Week <@print(index + 1)@>: 2895 <@ } else {@> 2896 Week <@print(index + 1)@>: 2897 <@ } @> 2898 </span> 2899 <p style="font-size:18px ; font-weight:600;"><@print(value.title)@> <span class="text-primary show-sm" style="font-size: 14px;"> 2900 <@if(value && value.items){@> 2901 <@ print(value.items.length) @> attachment(s) 2902 <@} else {@> 2903 1 attachment(s) 2904 <@}@> 2905 <@if(value.moduleDurations && curriculumAssetInfo){@> 2906 • <@print(millisecondsToHHMMSSStr(value.moduleDurations))@> 2907 <@}@> 2908 </span></p> 2909 </h4> 2910 2911 <div class="accordion-syllabus-header__info"> 2912 <p class="text-primary hide-sm" style="color:#282400 !important;"> 2913 <@if(value && value.items){@> 2914 <@ print(value.items.length) @> attachment(s) 2915 <@} else {@> 2916 1 attachment(s) 2917 <@}@> 2918 <@if(value.moduleDurations && curriculumAssetInfo){@> 2919 • <@print(millisecondsToHHMMSSStr(value.moduleDurations))@> 2920 <@}@> 2921 </p> 2922 <div class="accordion-syllabus-header__icon text-primary"> 2923 <i class="fa fa-angle-left" aria-hidden="true" style="color:#282400;"></i> 2924 </div> 2925 </div> 2926 </header> 2927 <div class="accordion-content" style="filter:none;background:transparent !important;"> 2928 <div class="accordian-content-block" style="background:transparent !important;box-shadow:none;padding:16px 66px 3px 69px !important;"> 2929 <ul class="accordian-list"> 2930 <@ var itemsCount = value['items'] ? value['items'].length : 0; @> 2931 <@ if(value['items'] && value['items'].length > 0) { @> 2932 <@ $.each(value['items'], function(index1, value1) { @> 2933 <li class="accordian-list__item" style="padding:0px 0px !important;<@ if(index1 >= 5) { @> display: none; <@ } @>"> 2934 <style> 2935 @media (max-width: 768px) { 2936 .accordian-content-card { 2937 flex-direction: column !important; 2938 align-items: stretch !important; 2939 } 2940 2941 .accordian-content-card__top { 2942 flex-direction: row !important; 2943 justify-content: space-between !important; 2944 align-items: center !important; 2945 width: 100% !important; 2946 } 2947 2948 .accordian-content-card__title { 2949 flex: 1 !important; 2950 margin: 0 10px !important; 2951 white-space: nowrap; 2952 overflow: hidden; 2953 text-overflow: ellipsis; 2954 } 2955 2956 .accordian-content-card__bottom { 2957 flex-direction: row !important; 2958 justify-content: space-between !important; 2959 align-items: center !important; 2960 width: 100% !important; 2961 margin-top: 6px !important; 2962 } 2963 2964 .accordian-content-card__link { 2965 flex: 1 !important; 2966 min-width: 0 !important; 2967 text-align: left !important; 2968 } 2969 2970 .accordian-content-card__time { 2971 flex-shrink: 0 !important; 2972 text-align: right !important; 2973 } 2974 } 2975 </style> 2976 2977 <div class="accordian-content-card" 2978 style="display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; padding: 10px 0; width: 100%; box-sizing: border-box; border-bottom: 1px solid #eee;"> 2979 2980 2981 <!-- Row 1: Icon + Title + Collapse Icon --> 2982 <div class="accordian-content-card__top" 2983 style="display: flex; align-items: center; justify-content: space-between; width: 100%;"> 2984 2985 <!-- Icon --> 2986 <div class="accordian-content-card__ico" style="flex-shrink: 0;"> 2987 <@ if(value1.type == 'code'){ @> 2988 <img src="/resources/images/CodeIcon.svg" style="width: 24px; height: 24px;"> 2989 <@ } else { @>
2990 <span class="material-icons text-primary" style="color:#282400; font-size: 24px;"> 2991 <@ print(getCourseAssetIcon(value1.type))@> 2992 </span> 2993 <@ } @> 2994 </div> 2995 2996 <!-- Title --> 2997 <div class="accordian-content-card__title" 2998 style="font-weight: 400; font-size: 14px; color: #333; margin: 0 10px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"> 2999 <@print(value1.title)@> 3000 </div> 3001 3002 <!-- Collapse Icon (optional) --> 3003 <div class="accordian-content-card__collapse" style="flex-shrink: 0;"> 3004 <!-- Example placeholder, add real icon if needed --> 3005 <!-- <i class="fa fa-chevron-down" style="font-size: 16px;"></i> --> 3006 </div> 3007 </div> 3008 3009 <!-- Row 2: Preview Button and Time --> 3010 <div class="accordian-content-card__bottom" 3011 style="display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 6px; flex-wrap: nowrap;"> 3012 3013 <!-- Preview Button --> 3014 <div class="accordian-content-card__link" style="flex: 1; min-width: 0; text-align: left;"> 3015 <@if(summary.sampleAvailable && summary.sampleSectionIds.includes(value1.id)){@> 3016 <a href="/s/preview/courses/<@print(decodeURIComponent(summary.courseUrl).replace(/ /g,'-'))@>-<@- courseId @>#<@print(value1.id)@>" 3017 class="previewBtn" 3018 style="font-size: 14px; font-weight: 500; text-decoration: none; color: #282400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block;"> 3019 <span class="text-primary" style="color:#282400;"> 3020 <@ if(value1.type == 'video') { @> Watch <@ } else {@> Preview <@ } @> 3021 <span style="color:#000"><i class="fa fa-solid fa-arrow-up-right" style="color:#282400;"></i></span> 3022 </span> 3023 </a> 3024 <@}@> 3025 </div> 3026 3027 <!-- Time --> 3028 <div class="accordian-content-card__time" style="flex-shrink: 0; text-align: right;"> 3029 <p class="text-primary course-asset-time" 3030 style="font-size: 14px; font-weight: 500; color:#282400 !important; margin: 0;"> 3031 <@ if(value1.duration && value1.duration > 0) { @> 3032 <@ print(millisecondsToHHMMSSStr(value1.duration)) @> 3033 <@ } else { @> 3034 -- 3035 <@ } @> 3036 </p> 3037 </div> 3038 3039 </div> 3040 </div> 3041 3042 3043 </li> 3044 <@ }); @> 3045 <@ } else { @> 3046 <li class="accordian-list__item" style="padding:0px 0px !important;"> 3047 <div class="accordian-content-card" 3048 style="display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; padding: 10px 0; width: 100%; box-sizing: border-box; border-bottom: 1px solid #eee;"> 3049 3050 <!-- Row 1: Icon + Title + Collapse Icon --> 3051 <div class="accordian-content-card__top" 3052 style="display: flex; align-items: center; justify-content: space-between; width: 100%;"> 3053 3054 <!-- Icon --> 3055 <div class="accordian-content-card__ico" style="flex-shrink: 0;"> 3056 <@ if(value.type == 'code'){ @> 3057 <img src="/resources/images/CodeIcon.svg" style="width: 24px; height: 24px;"> 3058 <@ } else { @> 3059 <span class="material-icons text-primary" style="color:#282400; font-size: 24px;"> 3060 <@ print(getCourseAssetIcon(value.type))@> 3061 </span> 3062 <@ } @> 3063 </div> 3064 3065 <!-- Title --> 3066 <div class="accordian-content-card__title" 3067 style="font-weight: 400; font-size: 14px; color: #333; margin: 0 10px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"> 3068 <@print(value.title)@> 3069 </div> 3070 3071 <!-- Collapse Icon (optional) --> 3072 <div class="accordian-content-card__collapse" style="flex-shrink: 0;"> 3073 <!-- Example placeholder, add real icon if needed --> 3074 <!-- <i class="fa fa-chevron-down" style="font-size: 16px;"></i> --> 3075 </div> 3076 </div> 3077 3078 <!-- Row 2: Preview Button and Time --> 3079 <div class="accordian-content-card__bottom" 3080 style="display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 6px; flex-wrap: nowrap;"> 3081 3082 <!-- Preview Button --> 3083 <div class="accordian-content-card__link" style="flex: 1; min-width: 0; text-align: left;"> 3084 <@if(summary.sampleAvailable && summary.sampleSectionIds.includes(value.id)){@> 3085 <a href="/s/preview/courses/<@print(decodeURIComponent(summary.courseUrl).replace(/ /g,'-'))@>-<@- courseId @>#<@print(value.id)@>" 3086 class="previewBtn" 3087 style="font-size: 14px; font-weight: 500; text-decoration: none; color: #282400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block;">
3088 <span class="text-primary" style="color:#282400;"> 3089 <@ if(value.type == 'video') { @> Watch <@ } else {@> Preview <@ } @> 3090 <span style="color:#000"><i class="fa fa-solid fa-arrow-up-right" style="color:#282400;"></i></span> 3091 </span> 3092 </a> 3093 <@}@> 3094 </div> 3095 3096 <!-- Time --> 3097 <div class="accordian-content-card__time" style="flex-shrink: 0; text-align: right;"> 3098 <p class="text-primary course-asset-time" 3099 style="font-size: 14px; font-weight: 500; color:#282400 !important; margin: 0;"> 3100 <@ if(value.duration && value.duration > 0) { @> 3101 <@ print(millisecondsToHHMMSSStr(value.duration)) @> 3102 <@ } else { @> 3103 -- 3104 <@ } @> 3105 </p> 3106 </div> 3107 </div> 3108 </div> 3109 </li> 3110 <@ } @> 3111 </ul> 3112 3113 <@ if(itemsCount > 5) { @> 3114 <div style="text-align: center; margin-top: 10px;"> 3115 <button style="background-color: #282400; color: white; padding: 4px 28px; border: none; cursor: pointer; font-size: 16px; border-radius: 24px;" 3116 onclick=" 3117 var parentAccordion = this.closest('.accordion-content'); 3118 parentAccordion.style.maxHeight = 'none'; 3119 this.closest('.accordian-content-block').querySelectorAll('.accordian-list__item').forEach(el => el.style.display = 'block'); 3120 this.style.display = 'none'; 3121 "> 3122 View All 3123 </button> 3124 </div> 3125 <@ } @> 3126 </div> 3127 </div> 3128 </div> 3129 <@ }); @> 3130 <@ if(item.length > 5) { @> 3131 <div style="text-align: center; margin-top: 10px;margin-bottom: 20px;"> 3132 <button style="background-color: #282400; color: white; padding: 8px 32px; border: none; cursor: pointer; font-size: 16px; border-radius: 24px;" 3133 onclick="document.querySelectorAll('.accordion-syllabus-item').forEach(el => el.style.display = 'block'); this.style.display = 'none';"> 3134 View All Sessions 3135 </button> 3136 </div> 3137 <@ } @> 3138</div> 3139 </div> 3140</script>
3140 3141 3142 3143 3144 3145 3146 3147<!-- Feedback Template First -->
3148<script type="text/template" id="widget-1-template"> 3149<div class="column full feedbackContainer feedback1 spectre"> 3150<@if(msg){@> 3151 <h4 style="letter-spacing: 2px; text-align: center;"><@print(msg)@></h4> 3152<@}else{@> 3153<div class="avgratingbox"> 3154 <div class="flex-row" > 3155 <div class="is-box-2" > 3156 <p style="color: rgb(247, 247, 247); font-weight: 700!important; font-size: 40px!important; text-align: center; letter-spacing: 3px; padding-bottom: 0px; margin-bottom: 0px; line-height: 1; margin-top: 0px;"> 3157 <@ if(ratings && ratings.avgRating) {@> 3158 <@ print(parseFloat(ratings.avgRating.toFixed(1))) @> 3159 <@}else{@> 3160 0 3161 <@}@> 3162 </p> 3163 <h5 class="ratings1" style="text-align: center; margin-bottom: 0px; margin-top: 0px; line-height: 1;"> 3164 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) {@> 3165 <@if(ratings){@> 3166 <@ if(ratings.avgRating >= ratingsSize) {@> 3167 <i class="icon ion-android-star"></i> 3168 <@ } else if(ratings.avgRating > ratingsSize-1 && ratings.avgRating < ratingsSize) { @> 3169 <i class="icon ion-android-star-half"></i> 3170 <@ } else { @> 3171 <i class="icon ion-android-star-outline"></i> 3172 <@ } @> 3173 <@} else {@> 3174 <i class="icon ion-android-star-outline"></i> 3175 <@}@> 3176 <@}@> 3177 </h5> 3178 <p style="margin: 10px 0 0 !important;text-align: center;line-height: 1;font-size: 30px!important;"><i class="fa-light fa-users t-white"></i> </p> 3179 <p style="margin-bottom: 10px; margin-top: 0px; font-size: 12px!important; letter-spacing: 1px; font-weight: 500!important; color: rgb(247, 247, 247); text-align: center;"> 3180 Total <@ if(ratings){print(ratings.total) }else{0}@> Reviews 3181 </p> 3182 </div> 3183 <div class="is-box-9"> 3184 <@ for (i = 0; i < 5; i++) {@> 3185 <div class="box7878"> 3186 <div style="flex:1;"> 3187 <div class="meter <@print(ratingsPer[(parseInt(i)+1)+'-star'].cls)@> nostripes"> 3188 <span style="width: <@print(ratingsPer[(parseInt(i)+1)+'-star'].rates)@>%"></span> 3189 </div> 3190 </div> 3191 <div id="ratingbox"> 3192 <p class="ratings2" style=" line-height: 1;"> 3193 <@ for (ratingsSize = 5; ratingsSize >=1; ratingsSize--) {@> 3194 <@if(ratingsSize>i){@> 3195 <i class="fa fa-solid fa-star-sharp text-primary"></i> 3196 <@} else {@> 3197 <i class="fa fa-solid fa-star-sharp"></i> 3198 <@}@> 3199 <@}@> 3200 <span class="t-white"> 3201 <@ if(ratings && ratings.ratingsCount){print(ratings.ratingsCount[(parseInt(5)-i)+'-stars'])}else{0} @> 3202 </span> 3203 </p> 3204 3205 </div> 3206 </div> 3207 <@}@> 3208 </div> 3209 </div> 3210</div> 3211 <div class="bg-secondary" style="padding:15px 15px;border-radius:10px;border-top-right-radius: 0;border-top-left-radius: 0;" > 3212 <p 3213 style="font-size: 16px!important; font-weight: 500!important; letter-spacing: 1px;" class="text-primary"> 3214 Reviews 3215 </p> 3216 3217<div class="review-box" id="createCustomReview" style="display:none"> 3218<div class="flex-row"> 3219 <div class="is-box-2 centerbox"> 3220 <div class="spectre"> 3221 <figure data-initial="<@if(typeof SPUSER !== 'undefined'){print(SPUSER.email.substring(0, 1))}else{@>Me<@}@>" class="uppercase avatar avatar-lg figsize" > 3222 <img src="/s/profile/thumb" alt="" class="review-pic" onerror="profileImageError(this)" data-mhash="<@ if(typeof SPUSER !== 'undefined'){print(SPUSER.mhash)} @>"> 3223 </figure> 3224 <@if(typeof SPUSER !== 'undefined'){ @><p class="review-name"><@ print(SPUSER.name) @> </p><@ } @> 3225 </div> 3226 </div> 3227 <div class="is-box-10"> 3228 <textarea rows="3" class="form-input" 3229 placeholder="Add your review here"></textarea> 3230 <div class="rating3"> 3231 <p id="rating-stars"> 3232 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) {@> <i 3233 class="fa fa-solid fa-star-sharp text-primary rating-star" data-value='<@- ratingsSize @>'></i> <@}@> 3234 </p> 3235 3236 <button class="btn btn-primary <@ if(typeof SPUSER !== 'undefined'){ print('createCustomReviewBtn') }else { print('loginBtn') } @>" 3237 data-reviewData="reviewlist" 3238 style="padding: 2px 28px; text-transform: uppercase; border-radius: 40px;">Post</button> 3239 </div> 3240 </div> 3241</div> 3242</div> 3243 3244 <div id="reviewlist"> 3245 <@ $.each(items, function(index, item) { @> 3246 <div class="review-box reviewcontainer <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @>selfreview<@ } @>"> 3247 <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @> 3248 <a class="btn btn-link float-right deleteCurrentReviewBtn" data-id="<@ print(item['_id']) @>"><i class="material-icons">delete</i></a> 3249 <@ } @> 3250 <div class="flex-row"> 3251 <div class="is-box-2 centerbox"> 3252 <div class="spectre"> 3253 <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @> 3254 <figure data-initial="<@if(typeof SPUSER !== 'undefined'){print(SPUSER.email.substring(0, 1))}else{@>Me<@}@>" class="uppercase avatar avatar-lg figsize" > 3255 <img src="/s/profile/thumb" alt="" class="review-pic" onerror="profileImageError(this)" data-mhash="<@ if(typeof SPUSER !== 'undefined'){print(SPUSER.mhash)} @>"> 3256 <@ } else {@> 3257 <figure data-initial="<@ print(getUserInitial(null, item.userName)) @>" class="uppercase avatar avatar-lg figsize" > 3258 <img src="/s/profile/<@- item.userId @>/thumb" alt="" class="review-pic" onerror="profileImageError(this)" data-mhash="<@ item.mhash @>"> 3259 <@ } @> 3260 </figure> 3261 <p class="review-name"><@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @><@ print(SPUSER.name) @><@ } else {@> <@ print(item.userName) @><@ } @> </p> 3262 </div> 3263 </div> 3264 <div class="is-box-10"> 3265 <div class="rating4"> 3266 <p> 3267 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) {@> <@ 3268 if(item.rating >= ratingsSize) {@> 3269 <i class="fa fa-solid fa-star-sharp text-primary"></i> 3270 <@ } else if(item.rating > ratingsSize-1 && item.rating < ratingsSize) { @> 3271 <i class="fa fa-solid fa-star-sharp-half text-primary"></i> 3272 <@ } else { @> 3273 <i class="fa fa-solid fa-star-sharp"></i> 3274 <@}@> 3275 <@ }@> 3276 </p> 3277 <p 3278 style="font-size: 13px!important; color: rgb(174, 170, 170); font-weight: 600!important; margin-top: 4px;"> 3279 <time class="timestamp"
3280 datetime="<@ print((new Date(item.createdDate.$date)).toISOString()) @>"><@ 3281 print(parseDate(item.createdDate.$date)) @></time> 3282 </p> 3283 </div> 3284 <p class="reviewTxt" 3285 style="color: rgb(102, 102, 102); font-weight: 500!important; font-size: 13px!important; margin-bottom: 10px;"><@ 3286 print(item.reviewtext.replace(/</g,'<').replace(/>/g,'>')) @></p> 3287 <div class="comment-tag"> 3288 <@ if(item.isFeatured) {@><span>Featured Review </span><@ } @><@ if(item.isVerifiedPurchase) {@> <span>Verified Purchase </span><@ } @> 3289 </div> 3290 </div> 3291 </div> 3292 </div> 3293 <@ }); @> 3294 </div> 3295 <button class="bg-primary loadMoreReviewsBtn reviewLMbtn" data-itemTemplate="feedback-1-item-template" data-reviewData="reviewlist" >Load More Reviews</button> 3296</div> 3297<@}@> 3298</script>
3298 3299 3300
3301<script type="text/template" id="feedback-1-item-template"> 3302<div class="review-box reviewcontainer <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @>selfreview<@ } @>""> 3303<@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @> 3304 <a class="btn btn-link float-right deleteCurrentReviewBtn" data-id="<@ print(item['_id']) @>"><i class="material-icons">delete</i></a> 3305<@ } @> 3306<div class="flex-row"> 3307 <div class="is-box-2 centerbox"> 3308 <div class="spectre"> 3309 <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @> 3310 <figure data-initial="<@if(typeof SPUSER !== 'undefined'){print(SPUSER.email.substring(0, 1))}else{@>Me<@}@>" class="avatar avatar-lg figsize" > 3311 <img src="/s/profile/thumb" alt="" class="review-pic" onerror="profileImageError(this)" data-mhash="<@ if(typeof SPUSER !== 'undefined'){print(SPUSER.mhash)} @>"> 3312 <@ } else {@> 3313 <figure data-initial="<@ print(getUserInitial(null, item.userName)) @>" class="avatar avatar-lg figsize" > 3314 <img src="/s/profile/<@- item.userId @>/thumb" alt="" class="review-pic" onerror="profileImageError(this)" data-mhash="<@ item.mhash @>"> 3315 <@ } @> 3316 </figure> 3317 <p class="review-name"><@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @><@ print(SPUSER.name) @><@ } else {@> <@ print(item.userName) @><@ } @> </p> 3318 </div> 3319 </div> 3320 <div class="is-box-10"> 3321 <div class="rating4"> 3322 <p> 3323 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) {@> <@ 3324 if(item.rating >= ratingsSize) {@> 3325 <i class="fa fa-solid fa-star-sharp text-primary"></i> 3326 <@ } else if(item.rating > ratingsSize-1 && item.rating < ratingsSize) { @> 3327 <i class="fa fa-solid fa-star-sharp-half text-primary"></i> 3328 <@ } else { @> 3329 <i class="fa fa-solid fa-star-sharp-outline"></i> 3330 <@}@> 3331 <@ } @> 3332 </p> 3333 <p 3334 style="font-size: 13px!important; color: rgb(174, 170, 170); font-weight: 600!important; margin-top: 4px;"> 3335 <time class="timestamp" 3336 datetime="<@ print((new Date(item.createdDate.$date)).toISOString()) @>"><@ 3337 print(parseDate(item.createdDate.$date)) @></time> 3338 </p> 3339 </div> 3340 <p class="reviewTxt" 3341 style="color: rgb(102, 102, 102); font-weight: 500!important; font-size: 13px!important; margin-bottom: 10px;"><@ 3342 print(item.reviewtext.replace(/</g,'<').replace(/>/g,'>')) @></p> 3343 <div class="comment-tag"> 3344 <@ if(item.isFeatured) {@><span>Featured Review </span><@ } @><@ if(item.isVerifiedPurchase) {@> <span>Verified Purchase </span><@ } @> 3345 </div> 3346 </div> 3347</div> 3348</div> 3349</script>
3349 3350 3351 3352<!-- Feedback Template Second -->
3353<script type="text/template" id="feedback-2-template"> 3354<div class="column full feedbackContainer feedback2 spectre <@- total @>" style="padding: 0;"> 3355<@if(msg){@> 3356 <h4 style="letter-spacing: 2px; text-align: center;"><@print(msg)@></h4> 3357<@}else{@> 3358<@ if(total > 0 && ratings && ratings.avgRating) {@> 3359<div class="avgratingbox"> 3360<div class="column third"> 3361 <div class="is-card avgRatingContainer" > 3362 <div class="avgRatingInnerContainer"> 3363 <h3 style="font-weight: 800; font-size: 12px; line-height: 1.3; margin-bottom: 0px;">Customer ratings</h3> 3364 <div style="display: flex; flex-direction: row; align-items: center; justify-content: center;"> 3365 <i class="icon ion-android-star text-primary" style="font-size: 80px;"></i> 3366 <div style="margin-left: 25px;"> 3367 <span style="display: flex; justify-content: flex-start; align-items: baseline;"> 3368 <h3 style="margin-top: 0px; margin-bottom: 0px; font-size: 32px; font-weight: 800; color: var(--themeColor); line-height: 1.3;"> 3369 <@ if(ratings && ratings.avgRating) {@> 3370 <@ print(parseFloat(ratings.avgRating.toFixed(1))) @> 3371 <@}else{@> 3372 0 3373 <@}@> 3374 </h3> 3375 <p class="avgRatingReviews">/5</p> 3376 </span> 3377 <p class="avgRatingReviews"> 3378 <@ if(ratings){print(ratings.total) }else{0}@> reviews 3379 </p> 3380 </div> 3381 </div> 3382 </div> 3383 </div> 3384</div> 3385</div> 3386<@ } @> 3387<div id="feedback2Reviewlist" class="reviewslist"> 3388 <@ $.each(items, function(index, item) { @> 3389 <@ var template = _.template($("#feedback-2-item-template").html()); print(template({item: item})) @> 3390 <@ }); @> 3391 <@}@> 3392</div> 3393<div class="row clearfix"> 3394 <div class="column full"> 3395 <p class="loadMoreReviewsBtn reviewLMbtn text-primary" data-itemTemplate="feedback-2-item-template" data-reviewData="feedback2Reviewlist" style="text-align: right; font-size: 14px; font-weight: 500;cursor: pointer;line-height: 1.5;display: none;"> 3396 View more 3397 </p> 3398 </div> 3399</div> 3400</script>
3400 3401
3402<script type="text/template" id="feedback-2-item-template"> 3403 <div class="column third reviewcontainer <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @>selfreview<@ } @>"> 3404 <div class="is-card avgRatingContainer"> 3405 <div style="text-align: center; display: flex; flex-direction: column; align-items: flex-start;" > 3406 <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @> 3407 <a class="btn btn-link float-right deleteCurrentReviewBtn" data-id="<@ print(item['_id']) @>"><i class="material-icons">delete</i></a> 3408 <@ } @> 3409 <p class="reviewTxt" style="font-size: 14px; font-weight: 400; line-height: 1.5; margin-bottom: 25px; margin-top: 0px; min-height: 80px; max-height: 80px; overflow: hidden;"> 3410 <@ print(item.reviewtext.replace(/</g,'<').replace(/>/g,'>')) @> 3411 </p> 3412 <div class="reviewerName"> 3413 <p style="font-size: 12px; font-weight: 500; line-height: 1.3; text-align: left; padding-top: 0px; margin:0px;"> 3414 <@ print(item.userName) @> 3415 </p></div> 3416 3417 <p style="margin: 0px;"> 3418 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) {@> 3419 <@ if(item.rating >= ratingsSize) {@> 3420 <i class="fa fa-solid fa-star-sharp text-primary"></i> 3421 <@ } else if(item.rating > ratingsSize-1 && item.rating < ratingsSize) { @> 3422 <i class="fa fa-solid fa-star-sharp-half text-primary"></i> 3423 <@ } @> 3424 <@ }@> 3425 </p> 3426 3427 </div> 3428 </div> 3429 </div> 3430</script>
vendor: 1 bytes, line 3430
3430
3431<script type="text/template" id="feedback-2-createTemplate"> 3432 <div data-cat="1" class="is-section is-box is-section-20" id="createCustomReview" style="display: none;" data-id="<@- parentId @>"> 3433 <div class="is-boxes"> 3434 <div class="is-box-centered"> 3435 <div class="is-container container" style="max-width: 940px;"> 3436 3437 <div class="review-box review-add-box"> 3438 <div class="is-container container is-content-800" > 3439 <div class="row clearfix" > 3440 <div class="column full" > 3441 <h1 style="text-align: center; font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: 0px; color: var(--themeColor); margin-bottom: 44px;">Add a review</h1> 3442 </div> 3443 </div> 3444 <div class="textarea-cont"> 3445 <div class="review-star text-primary" style="display: flex; flex-direction: row; align-items: center; padding-top: 0px; margin-top: 0px;"> 3446 <span id="rating-stars"> 3447 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) {@> <i 3448 class="fa fa-solid fa-star-sharp rating-star" data-value='<@- ratingsSize @>'></i> <@}@> 3449 </span> 3450 </div> 3451 <textarea class="add-review-textarea" id="reviewText" style="background: transparent;width: 100%; border-width: 0px; padding-right: 28px; padding-bottom: 28px; min-height: 150px; font-size: 14px; font-weight: 500; line-height: 1.5; padding-top: 10px;" placeholder="Add your review here"></textarea> 3452 <@ if(typeof SPUSER !== 'undefined' && SPUSER.name.length > 0) { @> 3453 <p style="font-weight: 400; font-size: 10px; line-height: 1.3; color: rgba(255, 255, 255, 0.5); margin-top: 0px;"><@ print(SPUSER.name) @></p> 3454 <@ } @> 3455 </div> 3456 <div style="margin-top: 20px; display: flex; justify-content: flex-end;"> 3457 <button id="reviewSubmitBtn" class="btn btn-primary <@ if(typeof SPUSER !== 'undefined'){ print('createCustomReviewBtn') }else { print('loginBtn') } @>" 3458 data-reviewData="feedback2Reviewlist" disabled >Submit</button> 3459 </div> 3460 </div> 3461 </div> 3462 </div> 3463 </div> 3464 </div> 3465</div> 3466</script>
3466 3467 3468<!-- Vegas 4th feedback Template--> 3469 3470
3471<script type="text/template" id="feedback-4-template"> 3472 <div class="column full feedbackContainer feedback2 spectre <@- total @>" style="padding: 0;"> 3473 <@if(msg){@> 3474 <h4 style="letter-spacing: 2px; text-align: center;"><@print(msg)@></h4> 3475 <@}else{@> 3476 <@ if(total > 0 && ratings && ratings.avgRating) {@> 3477 <div class="avgratingbox"> 3478 <div class="column third"> 3479 <div class="is-card avgRatingContainer" style="border-radius:16px !important ; padding:20px ;border:1px solid #E5E5E5 !important;" > 3480 <div class="avgRatingInnerContainer"> 3481 <h3 style="font-weight: 800; font-size: 12px; line-height: 1.3; margin-bottom: 0px;">Customer ratings</h3> 3482 <div style="display: flex; flex-direction: row; align-items: center; justify-content: center;"> 3483 <i class="icon ion-android-star text-primary" style="font-size: 80px;"></i> 3484 <div style="margin-left: 25px;"> 3485 <span style="display: flex; justify-content: flex-start; align-items: baseline;"> 3486 <h3 style="margin-top: 0px; margin-bottom: 0px; font-size: 32px; font-weight: 800; color: var(--themeColor); line-height: 1.3;"> 3487 <@ if(ratings && ratings.avgRating) {@> 3488 <@ print(parseFloat(ratings.avgRating.toFixed(1))) @> 3489 <@}else{@> 3490 0 3491 <@}@> 3492 </h3> 3493 <p class="avgRatingReviews">/5</p> 3494 </span> 3495 <p class="avgRatingReviews"> 3496 <@ if(ratings){print(ratings.total) }else{0}@> reviews 3497 </p> 3498 </div> 3499 </div> 3500 </div> 3501 </div> 3502 </div> 3503 </div> 3504 <@ } @> 3505 <div id="feedback4Reviewlist" class="reviewslist"> 3506 <@ $.each(items, function(index, item) { @> 3507 <@ var template = _.template($("#feedback-4-item-template").html()); print(template({item: item})) @> 3508 <@ }); @> 3509 <@}@> 3510 </div> 3511 <div class="row clearfix"> 3512 <div class="column full" style="text-align: center;"> 3513 <a class="loadMoreReviewsBtn reviewLMbtn text-primary" data-itemTemplate="feedback-4-item-template" data-reviewData="feedback4Reviewlist" style="text-align: center; font-size: 16px; font-weight: 500;cursor: pointer;line-height: 1.5;display: none; background:#FB5607; color:white; padding:12px 28px; border-radius:24px;text-decoration:none;"> 3514 View All Reviews 3515 </a> 3516 </div> 3517 </div> 3518 </script>
3518 3519 3520
3520<script type="text/template" id="feedback-4-item-template"> 3521 <div class="column third reviewcontainer <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @>selfreview<@ } @>"> 3522 <div class="is-card avgRatingContainer" style="border:1px solid #E5E5E5 !important; border-radius:16px !important;background:white; padding:20px; "> 3523 <div style="text-align: center; display: flex; flex-direction: column; align-items: flex-start;" > 3524 <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @> 3525 <a style="color:#FB5607 !important;" class="btn btn-link float-right deleteCurrentReviewBtn" data-id="<@ print(item['_id']) @>"><i class="material-icons">delete</i></a> 3526 <@ } @> 3527 <p class="reviewTxt" style="font-size: 14px; font-weight: 400; line-height: 1.5; margin-bottom: 25px; margin-top: 0px; min-height: 82px; max-height: 80px; overflow: hidden;"> 3528 <@ print(item.reviewtext.replace(/</g,'<').replace(/>/g,'>')) @> 3529 </p> 3530 <div class="reviewerName"> 3531 <p style="font-size: 12px; font-weight: 500; line-height: 1.3; text-align: left; padding-top: 0px; margin:0px; opacity:0.5;"> 3532 <@ print(item.userName) @> 3533 </p></div> 3534 3535 <p style="margin: 0px;"> 3536 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) {@> 3537 <@ if(item.rating >= ratingsSize) {@> 3538 <i class="fa fa-solid fa-star-sharp text-primary" style="color:#FB5607 !important;"></i> 3539 <@ } else if(item.rating > ratingsSize-1 && item.rating < ratingsSize) { @> 3540 <i class="fa fa-solid fa-star-sharp-half text-primary" style="color:#FB5607 !important;"></i> 3541 <@ } @> 3542 <@ }@> 3543 </p> 3544 3545 </div> 3546 </div> 3547 </div> 3548 </script>
3548 3549
3549<script type="text/template" id="feedback-4-createTemplate"> 3550 <div data-cat="1" class="is-section is-box is-section-20" id="createCustomReview" style="display: none;" data-id="<@- parentId @>"> 3551 <div class="is-boxes"> 3552 <div class="is-box-centered"> 3553 <div class="is-container container" style="max-width: 1200px;"> 3554 3555 <div class="review-box review-add-box"> 3556 <div class="is-container container is-content-1200" > 3557 <div class="row clearfix" > 3558 <div class="column full" > 3559 <h1 style="text-align: left; font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: 0px; color: black; ">Add a review</h1> 3560 </div> 3561 </div> 3562 <div class="textarea-cont"> 3563 <div style="display:flex; gap:30px;"> 3564 <div><h3 style="font-size:18px;font-weight:600;">Overall Rating</h3></div> 3565 <div class="review-star1 text-primary" 3566 style="display: flex; flex-direction: row; align-items: center; padding-top: 0px; margin-top: 0px;margin-left:0px !important;margin:0px !important"> 3567 <span id="rating-stars" > 3568 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) {@> 3569 <i class="fa fa-solid fa-star-sharp rating-star" 3570 data-value='<@- ratingsSize @>' 3571 style="width: 20px; height: 20px; text-align: center; flex-shrink: 0; margin: 0; padding: 0;"></i> 3572 <@}@> 3573 </span> 3574 </div> 3575 <style></style> 3576 3577 3578 </div> 3579 <textarea class="add-review-textarea" id="reviewText" style="background:#E5E5E5;width: 100%; border: 1px solid #E5E5E5; padding-right: 28px; padding-bottom: 28px; min-height: 180px; font-size: 14px; font-weight: 500; line-height: 1.5; padding-top: 10px;border-radius:16px !important" placeholder="Add your review here"></textarea> 3580 <@ if(typeof SPUSER !== 'undefined' && SPUSER.name.length > 0) { @> 3581 <p style="font-weight: 400; font-size: 10px; line-height: 1.3; color: rgba(255, 255, 255, 0.5); margin-top: 0px;"><@ print(SPUSER.name) @></p> 3582 <@ } @> 3583 </div> 3584 <div style=" display: flex; justify-content: center;"> 3585 <button style="letter-spacing:0px !important ; background-color:#FB5607;padding:12px 28px !important;" id="reviewSubmitBtn" class="btn btn-primary <@ if(typeof SPUSER !== 'undefined'){ print('createCustomReviewBtn') }else { print('loginBtn') } @>" 3586 data-reviewData="feedback4Reviewlist" disabled >Submit</button> 3587 </div> 3588 </div> 3589 </div> 3590 </div> 3591 </div> 3592 </div> 3593 </div> 3594 </script>
3594 3595 3596 3597 3598 3599<!-- Blaze 5th feedback Template-->
3600<script type="text/template" id="feedback-5-template"> 3601 <div class="column full feedbackContainer feedback2 spectre <@- total @>" style="padding: 0;"> 3602 <@if(msg){@> 3603 <h4 style="letter-spacing: 2px; text-align: center;"><@print(msg)@></h4> 3604 <@}else{@> 3605 <@ if(total > 0 && ratings && ratings.avgRating) {@> 3606 <div class="avgratingbox"> 3607 <div class="column third"> 3608 <div class="is-card avgRatingContainer" style="background:#232323; border-radius:0px;padding:21px;" > 3609 <div class="avgRatingInnerContainer"> 3610 <h3 style="font-weight: 800; font-size: 12px; line-height: 1.3; margin-bottom: 0px;color:white;">Customer ratings</h3> 3611 <div style="display: flex; flex-direction: row; align-items: center; justify-content: center;"> 3612 <i class="icon ion-android-star text-primary" style="font-size: 80px;color:rgb(216, 253, 70);"></i> 3613 <div style="margin-left: 25px;"> 3614 <span style="display: flex; justify-content: flex-start; align-items: baseline;"> 3615 <h3 style="margin-top: 0px; margin-bottom: 0px; font-size: 32px; font-weight: 800; color: rgb(216, 253, 70); line-height: 1.3;"> 3616 <@ if(ratings && ratings.avgRating) {@> 3617 <@ print(parseFloat(ratings.avgRating.toFixed(1))) @> 3618 <@}else{@> 3619 0 3620 <@}@> 3621 </h3> 3622 <p class="avgRatingReviews" style="color:white;">/5</p> 3623 </span> 3624 <p class="avgRatingReviews" style="color:white;"> 3625 <@ if(ratings){print(ratings.total) }else{0}@> reviews 3626 </p> 3627 </div> 3628 </div> 3629 </div> 3630 </div> 3631 </div> 3632 </div> 3633 <@ } @> 3634 <div id="feedback5Reviewlist" class="reviewslist"> 3635 <@ $.each(items, function(index, item) { @> 3636 <@ var template = _.template($("#feedback-5-item-template").html()); print(template({item: item})) @> 3637 <@ }); @> 3638 <@}@> 3639 </div> 3640 <div class="row clearfix"> 3641 <div class="column full" style="text-align: center;"> 3642 <a class="loadMoreReviewsBtn reviewLMbtn text-primary" data-itemTemplate="feedback-5-item-template" data-reviewData="feedback5Reviewlist" style="text-align: center; font-size: 16px; font-weight: 500;cursor: pointer;line-height: 1.5;display: none; background:#D8FD46; color:black; padding:12px 28px; border-radius:0px;text-decoration:none;"> 3643 View All Reviews 3644 </a> 3645 </div> 3646 </div> 3647 </script>
3647 3648 3649 3650
3650<script type="text/template" id="feedback-5-item-template"> 3651 <style> 3652 .template5-review .reviewTxt{ 3653 color:white !important; 3654 } 3655 .template5-review .reviewerName p{ 3656 color:white !important; 3657 } 3658 </style> 3659 <div class="column third reviewcontainer template5-review <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @> selfreview <@ } @>"> 3660 <div class="is-card avgRatingContainer" style="border:1px solid #232323;padding:20px;"> 3661 <div style="text-align: center; display: flex; flex-direction: column; align-items: flex-start;"> 3662 <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @> 3663 <a style="color:#D8FD46 !important;" class="btn btn-link float-right deleteCurrentReviewBtn" data-id="<@ print(item['_id']) @>"> 3664 <i class="material-icons">delete</i> 3665 </a> 3666 <@ } @> 3667 <p class="reviewTxt" style="font-size: 14px; font-weight: 400; line-height: 1.5; margin-bottom: 25px; margin-top: 0px; min-height: 82px; max-height: 80px; overflow: hidden;"> 3668 <@ print(item.reviewtext.replace(/</g,'<').replace(/>/g,'>')) @> 3669 </p> 3670 <div class="reviewerName"> 3671 <p style="font-size: 12px; font-weight: 500; line-height: 1.3; text-align: left; padding-top: 0px; margin:0px; opacity:0.5; "> 3672 <@ print(item.userName) @> 3673 </p> 3674 </div> 3675 3676 <p style="margin: 0px;"> 3677 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) { @> 3678 <@ if(item.rating >= ratingsSize) { @> 3679 <i class="fa fa-solid fa-star-sharp text-primary" style="color:#D8FD46 !important;"></i> 3680 <@ } else if(item.rating > ratingsSize - 1 && item.rating < ratingsSize) { @> 3681 <i class="fa fa-solid fa-star-sharp-half text-primary" style="color:#D8FD46 !important;"></i> 3682 <@ } @> 3683 <@ } @> 3684 </p> 3685 </div> 3686 </div> 3687 </div> 3688 </script>
3688 3689 3690
3690<script type="text/template" id="feedback-5-createTemplate"> 3691 <div data-cat="1" class="is-section is-box is-section-20" id="createCustomReview" style="display: none;" data-id="<@- parentId @>"> 3692 <div class="is-boxes"> 3693 <div class="is-box-centered" style="background:#181818;"> 3694 <div class="is-container container" style="max-width: 1200px;"> 3695 3696 <div class="review-box review-add-box"> 3697 <div class="is-container container is-content-1200" > 3698 <div class="row clearfix" > 3699 <div class="column full" > 3700 <h1 style="text-align: left; font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: 0px; color: white; ">Add a review</h1> 3701 </div> 3702 </div> 3703 <div class="textarea-cont" style="background:transparent"> 3704 <div style="display:flex; gap:30px;"> 3705 <div><h3 style="font-size:18px;font-weight:600; color:white;">Overall Rating</h3></div> 3706 <div class="review-star text-primary" 3707 style="display: flex; flex-direction: row; align-items: center; padding-top: 0px; margin-top: 0px;margin-left:0px !important;margin:0px !important"> 3708 <span id="rating-stars" > 3709 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) {@> 3710 <i class="fa fa-solid fa-star-sharp rating-star" 3711 data-value='<@- ratingsSize @>' 3712 style="width: 20px; height: 20px; text-align: center; flex-shrink: 0; margin: 0; padding: 0;"></i> 3713 <@}@> 3714 </span> 3715 </div> 3716 3717 3718 </div> 3719 <textarea class="add-review-textarea" id="reviewText" style="color:white;background:#232323;width: 100%; border: 1px solid #636363; padding: 28px; min-height: 180px; font-size: 14px; font-weight: 500; line-height: 1.5; padding-top: 10px;border-radius:0px !important" placeholder="Add your review here"></textarea> 3720 <@ if(typeof SPUSER !== 'undefined' && SPUSER.name.length > 0) { @> 3721 <p style="font-weight: 400; font-size: 10px; line-height: 1.3; color: rgba(255, 255, 255, 0.5); margin-top: 0px;"><@ print(SPUSER.name) @></p> 3722 <@ } @> 3723 </div> 3724 <div style=" display: flex; justify-content: center;margin-top:20px;"> 3725 <button style="letter-spacing:0px !important ; background-color:#D8FD46;padding:12px 28px !important; border-radius:0px !important; color:black;" id="reviewSubmitBtn" class="btn btn-primary <@ if(typeof SPUSER !== 'undefined'){ print('createCustomReviewBtn') }else { print('loginBtn') } @>" 3726 data-reviewData="feedback5Reviewlist" disabled >Submit</button> 3727 </div> 3728 </div> 3729 </div> 3730 </div> 3731 </div> 3732 </div> 3733 </div> 3734 </script>
3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750<!-- Nebula Feedback 6--> 3751
3752<script type="text/template" id="feedback-6-template"> 3753 <div class="column full feedbackContainer feedback2 spectre <@- total @>" style="padding: 0;"> 3754 <@if(msg){@> 3755 <h4 style="letter-spacing: 2px; text-align: center;"><@print(msg)@></h4> 3756 <@}else{@> 3757 <@ if(total > 0 && ratings && ratings.avgRating) {@> 3758 <div class="avgratingbox"> 3759 <div class="column third"> 3760 <div class="is-card avgRatingContainer" style="border-radius:16px !important ; padding:20px ;border:1px solid #E5E5E5 !important;" > 3761 <div class="avgRatingInnerContainer"> 3762 <h3 style="font-weight: 800; font-size: 12px; line-height: 1.3; margin-bottom: 0px;">Customer ratings</h3> 3763 <div style="display: flex; flex-direction: row; align-items: center; justify-content: center;"> 3764 <i class="icon ion-android-star text-primary" style="font-size: 80px; color: #6715FF !important;"></i> 3765 <div style="margin-left: 25px;"> 3766 <span style="display: flex; justify-content: flex-start; align-items: baseline;"> 3767 <h3 style="margin-top: 0px; margin-bottom: 0px; font-size: 32px; font-weight: 800; color: #6715FF !important; line-height: 1.3;"> 3768 <@ if(ratings && ratings.avgRating) {@> 3769 <@ print(parseFloat(ratings.avgRating.toFixed(1))) @> 3770 <@}else{@> 3771 0 3772 <@}@> 3773 </h3> 3774 <p class="avgRatingReviews">/5</p> 3775 </span> 3776 <p class="avgRatingReviews"> 3777 <@ if(ratings){print(ratings.total) }else{0}@> reviews 3778 </p> 3779 </div> 3780 </div> 3781 </div> 3782 </div> 3783 </div> 3784 </div> 3785 <@ } @> 3786 <div id="feedback6Reviewlist" class="reviewslist"> 3787 <@ $.each(items, function(index, item) { @> 3788 <@ var template = _.template($("#feedback-6-item-template").html()); print(template({item: item})) @> 3789 <@ }); @> 3790 <@}@> 3791 </div> 3792 <div class="row clearfix"> 3793 <div class="column full" style="text-align: center;"> 3794 <a class="loadMoreReviewsBtn reviewLMbtn text-primary" data-itemTemplate="feedback-6-item-template" data-reviewData="feedback6Reviewlist" style="text-align: center; font-size: 16px; font-weight: 500;cursor: pointer;line-height: 1.5;display: none; background:#6715FF; color:white; padding:12px 28px; border-radius:24px;text-decoration:none;"> 3795 View All Reviews 3796 </a> 3797 </div> 3798 </div> 3799 </script>
3799 3800 3801
3801<script type="text/template" id="feedback-6-item-template"> 3802 <div class="column third reviewcontainer <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @>selfreview<@ } @>"> 3803 <div class="is-card avgRatingContainer" style="border:1px solid #E5E5E5 !important; border-radius:16px !important;background:white; padding:20px; "> 3804 <div style="text-align: center; display: flex; flex-direction: column; align-items: flex-start;" > 3805 <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @> 3806 <a style="color:#6715FF !important;" class="btn btn-link float-right deleteCurrentReviewBtn" data-id="<@ print(item['_id']) @>"><i class="material-icons">delete</i></a> 3807 <@ } @> 3808 <p class="reviewTxt" style="font-size: 14px; font-weight: 400; line-height: 1.5; margin-bottom: 25px; margin-top: 0px; min-height: 82px; max-height: 80px; overflow: hidden;"> 3809 <@ print(item.reviewtext.replace(/</g,'<').replace(/>/g,'>')) @> 3810 </p> 3811 <div class="reviewerName"> 3812 <p style="font-size: 12px; font-weight: 500; line-height: 1.3; text-align: left; padding-top: 0px; margin:0px; opacity:0.5;"> 3813 <@ print(item.userName) @> 3814 </p></div> 3815 3816 <p style="margin: 0px;"> 3817 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) {@> 3818 <@ if(item.rating >= ratingsSize) {@> 3819 <i class="fa fa-solid fa-star-sharp text-primary" style="color:#6715FF !important;"></i> 3820 <@ } else if(item.rating > ratingsSize-1 && item.rating < ratingsSize) { @> 3821 <i class="fa fa-solid fa-star-sharp-half text-primary" style="color:#6715FF !important;"></i> 3822 <@ } @> 3823 <@ }@> 3824 </p> 3825 3826 </div> 3827 </div> 3828 </div> 3829 </script>
3829 3830
3830<script type="text/template" id="feedback-6-createTemplate"> 3831 <div data-cat="1" class="is-section is-box is-section-20" id="createCustomReview" style="display: none;" data-id="<@- parentId @>"> 3832 <div class="is-boxes"> 3833 <div class="is-box-centered"> 3834 <div class="is-container container" style="max-width: 1200px;"> 3835 3836 <div class="review-box review-add-box"> 3837 <div class="is-container container is-content-1200" > 3838 <div class="row clearfix" > 3839 <div class="column full" > 3840 <h1 style="text-align: left; font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: 0px; color: black; ">Add a review</h1> 3841 </div> 3842 </div> 3843 <div class="textarea-cont" style="background:transparent"> 3844 <div style="display:flex; gap:30px;"> 3845 <div><h3 style="font-size:18px;font-weight:600;">Overall Rating</h3></div> 3846 <div class="review-star1 text-primary" 3847 style="display: flex; flex-direction: row; align-items: center; padding-top: 0px; margin-top: 0px;margin-left:0px !important;margin:0px !important"> 3848 <span id="rating-stars" > 3849 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) {@> 3850 <i class="fa fa-solid fa-star-sharp rating-star" 3851 data-value='<@- ratingsSize @>' 3852 style="width: 20px; height: 20px; text-align: center; flex-shrink: 0; margin: 0; padding: 0;"></i> 3853 <@}@> 3854 </span> 3855 </div> 3856 <style></style> 3857 3858 3859 </div> 3860 <textarea class="add-review-textarea" id="reviewText" style="background:white;width: 100%; border: 1px solid #c3c0c0; padding-right: 28px; padding-bottom: 28px;padding-left:20px; min-height: 180px; font-size: 14px; font-weight: 500; line-height: 1.5; padding-top: 10px;border-radius:16px !important" placeholder="Add your review here"></textarea> 3861 <@ if(typeof SPUSER !== 'undefined' && SPUSER.name.length > 0) { @> 3862 <p style="font-weight: 400; font-size: 10px; line-height: 1.3; color: grey; margin-top: 0px;"><@ print(SPUSER.name) @></p> 3863 <@ } @> 3864 </div> 3865 <div style=" display: flex; justify-content: center;"> 3866 <button style="letter-spacing:0px !important ; background-color:#6715FF;padding:12px 28px !important;margin-top:30px;" id="reviewSubmitBtn" class="btn btn-primary <@ if(typeof SPUSER !== 'undefined'){ print('createCustomReviewBtn') }else { print('loginBtn') } @>" 3867 data-reviewData="feedback6Reviewlist" disabled >Submit</button> 3868 </div> 3869 </div> 3870 </div> 3871 </div> 3872 </div> 3873 </div> 3874 </div> 3875 </script>
3875 3876 3877 3878 3879 3880 3881<!-- Olive Feedback 7-->
3882<script type="text/template" id="feedback-7-template"> 3883 <div class="column full feedbackContainer feedback2 spectre <@- total @>" style="padding: 0;"> 3884 <@if(msg){@> 3885 <h4 style="letter-spacing: 2px; text-align: center;"><@print(msg)@></h4> 3886 <@}else{@> 3887 <@ if(total > 0 && ratings && ratings.avgRating) {@> 3888 <div class="avgratingbox"> 3889 <div class="column third"> 3890 <div class="is-card avgRatingContainer" style="border-radius:16px !important ; padding:20px ;border:1px solid #E5E5E5 !important;" > 3891 <div class="avgRatingInnerContainer"> 3892 <h3 style="font-weight: 800; font-size: 12px; line-height: 1.3; margin-bottom: 0px;">Customer ratings</h3> 3893 <div style="display: flex; flex-direction: row; align-items: center; justify-content: center;"> 3894 <i class="icon ion-android-star text-primary" style="font-size: 80px; color: #064400 !important;"></i> 3895 <div style="margin-left: 25px;"> 3896 <span style="display: flex; justify-content: flex-start; align-items: baseline;"> 3897 <h3 style="margin-top: 0px; margin-bottom: 0px; font-size: 32px; font-weight: 800; color: #064400 !important; line-height: 1.3;"> 3898 <@ if(ratings && ratings.avgRating) {@> 3899 <@ print(parseFloat(ratings.avgRating.toFixed(1))) @> 3900 <@}else{@> 3901 0 3902 <@}@> 3903 </h3> 3904 <p class="avgRatingReviews">/5</p> 3905 </span> 3906 <p class="avgRatingReviews"> 3907 <@ if(ratings){print(ratings.total) }else{0}@> reviews 3908 </p> 3909 </div> 3910 </div> 3911 </div> 3912 </div> 3913 </div> 3914 </div> 3915 <@ } @> 3916 <div id="feedback7Reviewlist" class="reviewslist"> 3917 <@ $.each(items, function(index, item) { @> 3918 <@ var template = _.template($("#feedback-7-item-template").html()); print(template({item: item})) @> 3919 <@ }); @> 3920 <@}@> 3921 </div> 3922 <div class="row clearfix"> 3923 <div class="column full" style="text-align: center;"> 3924 <a class="loadMoreReviewsBtn reviewLMbtn text-primary" data-itemTemplate="feedback-7-item-template" data-reviewData="feedback7Reviewlist" style="text-align: center; font-size: 16px; font-weight: 500;cursor: pointer;line-height: 1.5;display: none; background:#064400; color:white; padding:12px 28px; border-radius:24px;text-decoration:none;"> 3925 View All Reviews 3926 </a> 3927 </div> 3928 </div> 3929 </script>
3929 3930 3931
3931<script type="text/template" id="feedback-7-item-template"> 3932 <div class="column third reviewcontainer <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @>selfreview<@ } @>"> 3933 <div class="is-card avgRatingContainer" style="border:1px solid #E5E5E5 !important; border-radius:16px !important;background:white; padding:20px; "> 3934 <div style="text-align: center; display: flex; flex-direction: column; align-items: flex-start;" > 3935 <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @> 3936 <a style="color:#064400 !important;" class="btn btn-link float-right deleteCurrentReviewBtn" data-id="<@ print(item['_id']) @>"><i class="material-icons">delete</i></a> 3937 <@ } @> 3938 <p class="reviewTxt" style="font-size: 14px; font-weight: 400; line-height: 1.5; margin-bottom: 25px; margin-top: 0px; min-height: 82px; max-height: 80px; overflow: hidden;"> 3939 <@ print(item.reviewtext.replace(/</g,'<').replace(/>/g,'>')) @> 3940 </p> 3941 <div class="reviewerName"> 3942 <p style="font-size: 12px; font-weight: 500; line-height: 1.3; text-align: left; padding-top: 0px; margin:0px; opacity:0.5;"> 3943 <@ print(item.userName) @> 3944 </p></div> 3945 3946 <p style="margin: 0px;"> 3947 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) {@> 3948 <@ if(item.rating >= ratingsSize) {@> 3949 <i class="fa fa-solid fa-star-sharp text-primary" style="color:#064400 !important;"></i> 3950 <@ } else if(item.rating > ratingsSize-1 && item.rating < ratingsSize) { @> 3951 <i class="fa fa-solid fa-star-sharp-half text-primary" style="color:#064400 !important;"></i> 3952 <@ } @> 3953 <@ }@> 3954 </p> 3955 3956 </div> 3957 </div> 3958 </div> 3959 </script>
3959 3960
3960<script type="text/template" id="feedback-7-createTemplate"> 3961 <div data-cat="1" class="is-section is-box is-section-20" id="createCustomReview" style="display: none;" data-id="<@- parentId @>"> 3962 <div class="is-boxes"> 3963 <div class="is-box-centered"> 3964 <div class="is-container container" style="max-width: 1200px;"> 3965 3966 <div class="review-box review-add-box"> 3967 <div class="is-container container is-content-1200" > 3968 <div class="row clearfix" > 3969 <div class="column full" > 3970 <h1 style="text-align: left; font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: 0px; color: black; ">Add a review</h1> 3971 </div> 3972 </div> 3973 <div class="textarea-cont"> 3974 <div style="display:flex; gap:30px;"> 3975 <div><h3 style="font-size:18px;font-weight:600;">Overall Rating</h3></div> 3976 <div class="review-star1 text-primary" 3977 style="display: flex; flex-direction: row; align-items: center; padding-top: 0px; margin-top: 0px;margin-left:0px !important;margin:0px !important"> 3978 <span id="rating-stars" > 3979 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) {@> 3980 <i class="fa fa-solid fa-star-sharp rating-star" 3981 data-value='<@- ratingsSize @>' 3982 style="width: 20px; height: 20px; text-align: center; flex-shrink: 0; margin: 0; padding: 0;"></i> 3983 <@}@> 3984 </span> 3985 </div> 3986 <style></style> 3987 3988 3989 </div> 3990 <textarea class="add-review-textarea" id="reviewText" style="background:#E5E5E5;width: 100%; border: 1px solid #E5E5E5; padding-right: 28px; padding-bottom: 28px;padding-left:20px; min-height: 180px; font-size: 14px; font-weight: 500; line-height: 1.5; padding-top: 10px;border-radius:16px !important" placeholder="Add your review here"></textarea> 3991 <@ if(typeof SPUSER !== 'undefined' && SPUSER.name.length > 0) { @> 3992 <p style="font-weight: 400; font-size: 10px; line-height: 1.3; color: rgba(255, 255, 255, 0.5); margin-top: 0px;"><@ print(SPUSER.name) @></p> 3993 <@ } @> 3994 </div> 3995 <div style=" display: flex; justify-content: center;"> 3996 <button style="letter-spacing:0px !important ; background-color:#064400;padding:12px 28px !important;" id="reviewSubmitBtn" class="btn btn-primary <@ if(typeof SPUSER !== 'undefined'){ print('createCustomReviewBtn') }else { print('loginBtn') } @>" 3997 data-reviewData="feedback7Reviewlist" disabled >Submit</button> 3998 </div> 3999 </div> 4000 </div> 4001 </div> 4002 </div> 4003 </div> 4004 </div> 4005 </script>
4005 4006 4007 4008 4009 4010 <!--Dusk Feedback-8--> 4011
4011<script type="text/template" id="feedback-8-template"> 4012 <div class="column full feedbackContainer feedback2 spectre <@- total @>" style="padding: 0;"> 4013 <@if(msg){@> 4014 <h4 style="letter-spacing: 2px; text-align: center;"><@print(msg)@></h4> 4015 <@}else{@> 4016 <@ if(total > 0 && ratings && ratings.avgRating) {@> 4017 <div class="avgratingbox"> 4018 <div class="column third"> 4019 <div class="is-card avgRatingContainer" style="border-radius:16px !important ; padding:20px ;border:1px solid #E5E5E5 !important;background:#F5F5F5;" > 4020 <div class="avgRatingInnerContainer"> 4021 <h3 style="font-weight: 800; font-size: 12px; line-height: 1.3; margin-bottom: 0px;">Customer ratings</h3> 4022 <div style="display: flex; flex-direction: row; align-items: center; justify-content: center;"> 4023 <i class="icon ion-android-star text-primary" style="font-size: 80px; color: #282400 !important;"></i> 4024 <div style="margin-left: 25px;"> 4025 <span style="display: flex; justify-content: flex-start; align-items: baseline;"> 4026 <h3 style="margin-top: 0px; margin-bottom: 0px; font-size: 32px; font-weight: 800; color: #282400 !important; line-height: 1.3;"> 4027 <@ if(ratings && ratings.avgRating) {@> 4028 <@ print(parseFloat(ratings.avgRating.toFixed(1))) @> 4029 <@}else{@> 4030 0 4031 <@}@> 4032 </h3> 4033 <p class="avgRatingReviews">/5</p> 4034 </span> 4035 <p class="avgRatingReviews"> 4036 <@ if(ratings){print(ratings.total) }else{0}@> reviews 4037 </p> 4038 </div> 4039 </div> 4040 </div> 4041 </div> 4042 </div> 4043 </div> 4044 <@ } @> 4045 <div id="feedback8Reviewlist" class="reviewslist"> 4046 <@ $.each(items, function(index, item) { @> 4047 <@ var template = _.template($("#feedback-8-item-template").html()); print(template({item: item})) @> 4048 <@ }); @> 4049 <@}@> 4050 </div> 4051 <div class="row clearfix"> 4052 <div class="column full" style="text-align: center;"> 4053 <a class="loadMoreReviewsBtn reviewLMbtn text-primary" data-itemTemplate="feedback-8-item-template" data-reviewData="feedback8Reviewlist" style="text-align: center; font-size: 16px; font-weight: 500;cursor: pointer;line-height: 1.5;display: none; background:#282400; color:white; padding:12px 28px; border-radius:24px;text-decoration:none;"> 4054 View All Reviews 4055 </a> 4056 </div> 4057 </div> 4058 </script>
4058 4059 4060
4060<script type="text/template" id="feedback-8-item-template"> 4061 <div class="column third reviewcontainer <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @>selfreview<@ } @>"> 4062 <div class="is-card avgRatingContainer" style="border:1px solid #E5E5E5 !important; border-radius:16px !important;background:#F5F5F5; padding:20px; "> 4063 <div style="text-align: center; display: flex; flex-direction: column; align-items: flex-start;" > 4064 <@ if(typeof SPUSER !== 'undefined' && item["userId"] === SPUSER.id) { @> 4065 <a style="color:#282400 !important;" class="btn btn-link float-right deleteCurrentReviewBtn" data-id="<@ print(item['_id']) @>"><i class="material-icons">delete</i></a> 4066 <@ } @> 4067 <p class="reviewTxt" style="font-size: 14px; font-weight: 400; line-height: 1.5; margin-bottom: 25px; margin-top: 0px; min-height: 82px; max-height: 80px; overflow: hidden;"> 4068 <@ print(item.reviewtext.replace(/</g,'<').replace(/>/g,'>')) @> 4069 </p> 4070 <div class="reviewerName"> 4071 <p style="font-size: 12px; font-weight: 500; line-height: 1.3; text-align: left; padding-top: 0px; margin:0px; opacity:0.5;"> 4072 <@ print(item.userName) @> 4073 </p></div> 4074 4075 <p style="margin: 0px;"> 4076 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) {@> 4077 <@ if(item.rating >= ratingsSize) {@> 4078 <i class="fa fa-solid fa-star-sharp text-primary" style="color:#282400 !important;"></i> 4079 <@ } else if(item.rating > ratingsSize-1 && item.rating < ratingsSize) { @> 4080 <i class="fa fa-solid fa-star-sharp-half text-primary" style="color:#282400 !important;"></i> 4081 <@ } @> 4082 <@ }@> 4083 </p> 4084 4085 </div> 4086 </div> 4087 </div> 4088 </script>
4088 4089
4089<script type="text/template" id="feedback-8-createTemplate"> 4090 <div data-cat="1" class="is-section is-box is-section-20" id="createCustomReview" style="display: none;" data-id="<@- parentId @>"> 4091 <div class="is-boxes"> 4092 <div class="is-box-centered"> 4093 <div class="is-container container" style="max-width: 1200px;"> 4094 4095 <div class="review-box review-add-box"> 4096 <div class="is-container container is-content-1200" > 4097 <div class="row clearfix" > 4098 <div class="column full" > 4099 <h1 style="text-align: left; font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: 0px; color: black; ">Add a review</h1> 4100 </div> 4101 </div> 4102 <div class="textarea-cont"> 4103 <div style="display:flex; gap:30px;"> 4104 <div><h3 style="font-size:18px;font-weight:600;">Overall rating</h3></div> 4105 <div class="review-star1 text-primary" 4106 style="display: flex; flex-direction: row; align-items: center; padding-top: 0px; margin-top: 0px;margin-left:0px !important;margin:0px !important"> 4107 <span id="rating-stars" > 4108 <@ for (ratingsSize = 1; ratingsSize <= 5; ratingsSize++) {@> 4109 <i class="fa fa-solid fa-star-sharp rating-star" 4110 data-value='<@- ratingsSize @>' 4111 style="width: 20px; height: 20px; text-align: center; flex-shrink: 0; margin: 0; padding: 0;"></i> 4112 <@}@> 4113 </span> 4114 </div> 4115 <style></style> 4116 4117 4118 </div> 4119 <textarea class="add-review-textarea" id="reviewText" style="background:#E5E5E5;width: 100%; border: 1px solid #E5E5E5; padding-right: 28px; padding-bottom: 28px;padding-left:20px; min-height: 180px; font-size: 14px; font-weight: 500; line-height: 1.5; padding-top: 10px;border-radius:16px !important" placeholder="Add your review here"></textarea> 4120 <@ if(typeof SPUSER !== 'undefined' && SPUSER.name.length > 0) { @> 4121 <p style="font-weight: 400; font-size: 10px; line-height: 1.3; color: rgba(255, 255, 255, 0.5); margin-top: 0px;"><@ print(SPUSER.name) @></p> 4122 <@ } @> 4123 </div> 4124 <div style=" display: flex; justify-content: center;"> 4125 <button style="letter-spacing:0px !important ; background-color:#282400;padding:12px 28px !important;" id="reviewSubmitBtn" class="btn btn-primary <@ if(typeof SPUSER !== 'undefined'){ print('createCustomReviewBtn') }else { print('loginBtn') } @>" 4126 data-reviewData="feedback8Reviewlist" disabled >Submit</button> 4127 </div> 4128 </div> 4129 </div> 4130 </div> 4131 </div> 4132 </div> 4133 </div> 4134 </script>
4134 4135 4136 4137 4138<div class="spectre"> 4139<div class="modal" id="reviewModal"> 4140 <a href="javascript:void(0);" class="modal-overlay close" 4141 aria-label="Close"></a> 4142 <div class="modal-container"> 4143 <div class="modal-header"> 4144 <a href="javascript:void(0);" 4145 class="close btn btn-clear float-right" aria-label="Close"></a> 4146 <div class="modal-title h5">Review</div> 4147 </div> 4148 <div class="modal-body" style="max-height: 90vh;padding-top: 0;"> 4149 </div> 4150 </div> 4151 4152 4153 4154</div> 4155 4156 4157</div> 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172
4173<script> 4174 var created_date = `Created Date`; 4175 var uname_msg = `Name`; 4176 var email_msg = `Email`; 4177 var has_web_token = `Has Web Token`; 4178 var has_mobile_token = `Has Mobile Token`; 4179 var actions_msg = `Actions`; 4180 var delete_user = `Delete User`; 4181 var create_target_audience = `Create Target Audience`; 4182 var msg_now = `NOW`; 4183 var msg_now_2 = `Now`; 4184 var msg_scheduled = `SCHEDULED`; 4185 var msg_recurring = `RECURRING`; 4186 var msg_weeks = `weeks`; 4187 var msg_months = `month(s)`; 4188 var msg_days = `days`; 4189 var notification_screen = `Notification Screen`; 4190 var coursepackagelandingpage = `Course/Package landing page`; 4191 var search_course_name = `Search by course/package name`; 4192 var webinar_landing_page = `Webinar landing page`; 4193 var search_by_webinar_name = `Search by webinar name`; 4194 var categorypage = `Category Page`; 4195 var custompage = `Custom Page`; 4196 var blogpage = `Blog Page`; 4197 var customlink = `Custom Link`; 4198 var homepage_msg = `Homepage`; 4199 var search_category = `Search category`; 4200 var search_page_title = `Search by Page title`; 4201 var search_blog_title = `Search by Blog title`; 4202 var enter_the_link = `Enter the link`; 4203 var membership_page = `Membership page`; 4204 var pick_a_date = `Pick a date`; 4205 var pick_first_push_date = `Pick a first push date`; 4206 var every_msg = `Every`; 4207 var starting_msg = `Starting`; 4208 var msg_published = `Published`; 4209 var msg_unpublished = `Unpublished`; 4210 var msg_customize = `Customize`; 4211 var msg_edit = `Edit`; 4212 var msg_featured_image = `Featured Image`; 4213 var msg_preview = `Preview`; 4214 var msg_delete = `Delete`; 4215 var msg_unpublish = `Unpublish`; 4216 var msg_publish = `Publish `; 4217 var msg_question= `questions`; 4218 var try_new_coding_assignment= `Try new coding assignment`; 4219 var change_enrollment_date = `Change Enrollment Date`; 4220 var change_expiry = `Change Expiry`; 4221 var change_remanining_time = `Change Remaining Time`; 4222 var remove_from_course = `Remove From Course`; 4223 var reset_course_progress = `Reset Course Progress`; 4224 var complete_report = `Complete Report`; 4225 var msg_progress = `Progress`; 4226 var timetaken = `Time Taken`; 4227 var msg_user_details = `User Details`; 4228 var graphy_platform_fees_note = `Amount after deducting Graphy platform fees. This does not include your payment gateway charges.`; 4229 var final_price_note = `Final payable price by learners`; 4230 var save_alert_message = `Save progress before moving forward.`; 4231 var no_chapter_alert_message = `Please add at least one chapter in the course.`; 4232 var download_msg = `Download`; 4233 var revoke_msg = `Revoke`; 4234 var yes_msg = `Yes`; 4235 var no_msg = `No`; 4236 var details_hover = `Details`; 4237 var hide_notification = `Hide Notification`; 4238 var notify_learners_hover = `Notify Learners`; 4239 var search_course_package = `Search Courses to add in this package.`; 4240 var bulk_delete = `Bulk Delete`; 4241 var scheduled_msg = `Scheduled`; 4242 var inprogress_msg = `In Progress`; 4243 var completed_msg = `Completed`; 4244 var yes_all_caps = `YES`; 4245 var no_all_caps = `NO`; 4246 var discount_msg = `Discount`; 4247 var max_discount = `Max Discount`; 4248 var min_cart = `Min Cart`; 4249 var delete_bookmark = `Delete Bookmark`; 4250 var view_question = `View question`; 4251 var msg_free = `Free`; 4252 var membership_expiration_note = `Membership will be canceled on next billing date.`; 4253 var msg_active = `Active`; 4254 var msg_inactive = `Inactive`; 4255 var delete_hover = `Delete`; 4256 var view_hover = `View`; 4257 var coursewise = `Course Wise`; 4258 var learner_wise = `Learner wise`; 4259 var segment_wise = `Segment wise`; 4260 var unregistered_msg = `Unregistered`; 4261 var target_audience_deleted = `Target Audience Deleted`; 4262 var courses_msg = `course(s)`; 4263 var learners_msg = `learner(s)`; 4264 var unregistered_learners = `Unregistered Learner`; 4265 var all_learners = `All Learners`; 4266 var course_wise_learners = `Course wise Learners`; 4267 var segment_wise_learners = `Segment wise Learners`; 4268 var with_token = `with token`; 4269 var segments_msg = `segments`; 4270 var add_users_msg = `Add Users`; 4271 var approx_msg = `Approx`; 4272 var revoke_cancellation_request = `Revoke Cancellation request.`; 4273 var remove_scheduled_membership_cancellation = `Remove Scheduled Membership Cancellation`; 4274 var schedule_to_stop_subscription = `Schedule to stop Subscription`; 4275 var stop_subscription = `Stop subscription`; 4276 var available_for_review_all_caps = `AVAILABLE FOR REVIEW`; 4277 var reviewed_all_caps = `REVIEWED`; 4278 var rejected_all_caps = `REJECTED`; 4279 var preview_code = `Preview Code`; 4280 var approve_msg = `Approve`; 4281 var reject_msg = `Reject`; 4282 var history_msg = `History`; 4283 var message_hover= `Message`; 4284 var remove_msg= `Remove`; 4285 var enroll_msg= `Enroll`; 4286 var change_validity= `Change Validity`; 4287 var learners_selected= `learner(s) selected`; 4288 var select_all_msg= `Select all`; 4289 var do_you_want_to_delete_course= `Do you really want to delete this course?`; 4290 var do_you_want_to_revoke_this_certificate= `Do you really want to revoke this certificate?`; 4291 var do_you_want_to_revoke_entry= `Do you really want to revoke this entry?`; 4292 var do_you_want_to_edit_enrollment_date= `Do you really want to edit enrollment date of all learners?`; 4293 var do_you_want_to_edit_enrollment_date_for_selected= `Do you really want to edit enrollment date of selected learners?`; 4294 var do_you_want_to_edit_course_validity= `Do you really want to edit course validity of all learners?`; 4295 var do_you_want_to_edit_course_validity_for_selected= `Do you really want to edit course validity of selected learners?`; 4296 var do_you_want_to_remove_selected= `Do you really want to remove selected learners?`; 4297 var do_you_want_to_remove_all= `Do you really want to remove all learners?`; 4298 var do_you_want_to_create_zip= `Do you really want to create zip for this course?`; 4299 var do_you_want_to_deactivate= `Do you really want to deactivate?`; 4300 var successfully_done_alert= `Successfully Done.`; 4301 var please_select_atleast_1_learner= `Please select atleast 1 learner !`; 4302 var on_msg= `On`; 4303 var single_correct_option = `Single Correct Option`; 4304 var multiple_correct_options = `Multiple Correct Options`; 4305 var numerical_Fill_in_the_Blank = `Numerical/Fill in the Blank`; 4306 var match_the_Column = `Match the Column`; 4307 var subjective = `Subjective`; 4308 var your_target_audience_appear= `Your target audience user(s) will appear here`; 4309 var your_upcoming_campaign= `Your upcoming campaign will appear here`; 4310 var status_msg= `Status`; 4311 var stop_campaign= `Stop Campaign`; 4312 var copy_campaign= `Copy Campaign`; 4313 var platform_fee_tax = `platform fees including taxes`; 4314 var pg_fees_taxes = `payment gateway fees including taxes`; 4315 var msg_quiz = `Quiz`; 4316 var msg_livetest = `Live test`; 4317 var msg_heading = `Heading`; 4318 var msg_text = `Text`; 4319 var msg_form = `Form`; 4320 var msg_live_class = `Live class`; 4321 var msg_live_class_rec = `live class recording`; 4322 var msg_code = `Code`; 4323 var msg_assignment = `Assignment`; 4324 var msg_added = `added`; 4325 var msg_about = `About`; 4326 var msg_year = `year`;
4327 var msg_month = `Month`; 4328 var msg_day = `day`; 4329 //var msg_hour = `hh`; 4330 //var msg_minute = `mm`; 4331 //var msg_seconds = `seconds`; 4332 var msg_month_l = `month`; 4333 var msg_day_l = `day`; 4334 var msg_hour_l = `hour`; 4335 var msg_minute_l = `minute`; 4336 var msg_second_l = `second`; 4337 var mobile_number=`Mobile Number`; 4338 var status_android =`Status (ANDROID)`; 4339 var status_ios =`Status (IOS)`; 4340 var delivery_time=`Delivery Time`; 4341 var sure_unhide=`Are you sure you want to unhide this course ?`; 4342 var become_a_partner=`Become a Partner`; 4343 var failed_msg=`Failed`; 4344 var sent_msg=`Sent`; 4345 var pending_msg=`Pending`; 4346 var running_msg=`Running`; 4347 var add_pricing_plan = `Add pricing plan`; 4348 var msg_add = `Add`; 4349 var of_msg = `of`; 4350 var items_msg = `items` 4351 var ago_msg = `ago` 4352 var items_msg = `items`; 4353 4354 var january_msg = `January`; 4355 var february_msg = `February`; 4356 var march_msg = `March`; 4357 var april_msg = `April`; 4358 var may_msg = `May`; 4359 var june_msg = `June`; 4360 var july_msg = `July`; 4361 var august_msg = `August`; 4362 var september_msg = `September`; 4363 var october_msg = `October`; 4364 var november_msg = `November`; 4365 var december_msg = `December`; 4366 var sunday_msg = `Sunday`; 4367 var monday_msg = `Monday`; 4368 var tuesday_msg = `Tuesday`; 4369 var wednesday_msg = `Wednesday`; 4370 var thursday_msg = `Thursday`; 4371 var friday_msg = `Friday`; 4372 var saturday_msg = `Saturday`; 4373 var at_msg = `at`; 4374 var generate_outline = `Generate outline using AI`; 4375 var it_take_min = `It may take a min.`; 4376 var msg_ok = `OK`; 4377 var edit_pricing_plan = `Edit pricing plan`; 4378 4379</script>
4379 4380 4381 4382 4383 4384 4385 4386
4387<script src="https://d502jbuhuh9wk.cloudfront.net/resources/js/jquery-2.0.3.min.js"></script>
4387 4388
4389<script src="https://d502jbuhuh9wk.cloudfront.net/resources/js/underscore-min.js?v=1.9.1"></script>
4389 4390
4391<script src="https://d502jbuhuh9wk.cloudfront.net/resources/js/jquery.form.js"></script>
vendor: 1 bytes, line 4391
4391
4392<script async src="https://d502jbuhuh9wk.cloudfront.net/resources/js/jquery.noty.packaged.min.js"></script>
vendor: 1 bytes, line 4392
4392
4393<script src="https://d502jbuhuh9wk.cloudfront.net/resources/js/jquery-ui.min.js"></script>
vendor: 1 bytes, line 4393
4393
4394<script src="https://d502jbuhuh9wk.cloudfront.net/resources/js/jquery.timeago.js"></script>
vendor: 1 bytes, line 4394
4394
4395<script src="https://d502jbuhuh9wk.cloudfront.net/resources/js/js-webshim/minified/extras/modernizr-custom.js"></script>
vendor: 1 bytes, line 4395
4395
4396<script src="https://d502jbuhuh9wk.cloudfront.net/resources/js/jquery.datetimepicker.js"></script>
4396 4397 4398 4399 4400 4401 4402 4403 4404
4405<script src="https://d502jbuhuh9wk.cloudfront.net/resources/js/aes.js"></script>
vendor: 1 bytes, line 4405
4405
4406<script src="https://d502jbuhuh9wk.cloudfront.net/resources/js/mode-ecb-min.js"></script>
vendor: 1 bytes, line 4406
4406
4407<script src="https://d502jbuhuh9wk.cloudfront.net/resources/js/pad-nopadding-min.js"></script>
4407 4408 4409<!--
4409<script src="https://unpkg.com/@popperjs/core@2"></script>
vendor: 1 bytes, line 4409
4409
4410<script src="https://unpkg.com/tippy.js@6"></script>
4410 -->
4411<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.3.3/umd/popper.js" integrity="sha512-jSMYzs1Iebw2Uew+Y9karoqkqTDEzbqkdttIkHJKh3auQ6aGV7p8b7A3Yo9k/LsMvUFqWt5AV66hfo1OwH4Jjg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
vendor: 1 bytes, line 4411
4411
4412<script src="https://cdnjs.cloudflare.com/ajax/libs/tippy.js/6.0.0/tippy-bundle.umd.js"></script>
4412 4413
4414<script type="text/javascript"> 4415 var passwordPolicyRequired = false; 4416 var checkoutV2 = true; 4417 var primaryFieldPhoneEnabled = false; 4418 var orgLanguageCode = ""; 4419 var SPEERESCDN = "https://d502jbuhuh9wk.cloudfront.net"; 4420</script>
4420 4421
4422<script src="https://d502jbuhuh9wk.cloudfront.net/staticfiles/resources/scripts/sutils_919c30bb7230024efec7b939763642a2.js"></script>
vendor: 1 bytes, line 4422
4422
4423<script src="https://d502jbuhuh9wk.cloudfront.net/staticfiles/resources/scripts/utils/dateUtils_f53456b03f1287667a7b24fb63b367ce.js"></script>
vendor: 1 bytes, line 4423
4423
4424<script type="text/javascript"> 4425 // Make org object globally available for dateUtils 4426 window.org = window.org || {}; 4427 window.org.currencyCode = "false"=='true'?'USD':'INR'; 4428 var websiteV3Org = false; 4429 var orgCreatedDate = {"$date":"2023-07-22T08:35:55.035Z"}; 4430</script>
4430 4431 4432
4432<script src="https://d502jbuhuh9wk.cloudfront.net/staticfiles/resources/scripts/talk_b564486691065235006e186474078666.js"></script>
4432 4433 4434 4435 4436 4437
4438<script type="text/javascript"> 4439 var trialExpired = "false"; 4440 var planCancelled = "false"; 4441 var isFreePlan = false; 4442 4443</script>
vendor: 1 bytes, line 4443
4443
4444<script type="text/javascript" id="dsf239df"> 4445 var ctx = "/s", 4446 isFirstLogin = "", cjs = CryptoJS; 4447 4448 var defaultCoreColor = "#5755d9", theme1CoreColor = "#572b7a", theme2CoreColor = "#3f51b5", theme3CoreColor = "#009051", 4449 theme4CoreColor = "#596439", theme5CoreColor = "#F0591D", theme6CoreColor = "#28a745", theme7CoreColor = "#1bbc9b", 4450 theme8CoreColor = "#f38f20", apkId = "6231373436231373432363038663465653864613523630386634656538646135", theme9CoreColor = "#c0af01", theme10CoreColor = "#e8d3a4", 4451 webColor = defaultCoreColor, 4452 CFCDN = "https://d502jbuhuh9wk.cloudfront.net", mobileNotification = true, webNotification = true, 4453 iosPlayVideo = false, 4454 chromeDrmPlayback = false, 4455 gaType = ""; 4456 4457 4458 4459 $("#dsf239df").remove(); 4460</script>
4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 <input type="hidden" id="orgCurrencyCode" value="INR" /> 4470 4471 4472 4473 4474 4475
4475<script src="https://d502jbuhuh9wk.cloudfront.net/resources/js/detect-private-browsing.js"></script>
4475 4476
4476<script type="text/javascript"> 4477 detectPrivateMode( 4478 function(is_private) { 4479 if(typeof is_private !== 'undefined' && is_private) { 4480 $("input[name=privateMode]").val("private"); 4481 } 4482 } 4483 ); 4484 </script>
4484 4485 4486 4487 4488 4489 4490
4490<script type="text/javascript" 4491 src="https://d502jbuhuh9wk.cloudfront.net/resources/js/intlTelInput.min.js"></script>
4491 4492
4492<script type="text/javascript"> 4493 4494 var ipInfo = localStorage.getItem('ipInfo'); 4495 if(!ipInfo) { 4496 $.get("https://ipinfo.io", function() {}, "jsonp").always(function(resp) { 4497 if(resp) { 4498 var ipInfoStr = JSON.stringify(resp); 4499 var ipInfoField = document.getElementById("ipInfo"); 4500 var countryCode = (resp.country) ? resp.country : "in"; 4501 sessionStorage.setItem('countryCode', countryCode); 4502 if('statusText' in resp) { 4503 if((resp['statusText'] !== 'error') && ('ip' in resp)) { 4504 localStorage.setItem('ipInfo', ipInfoStr); 4505 if(ipInfoField) { 4506 ipInfoField.value = ipInfoStr; 4507 } 4508 } 4509 } 4510 else if('ip' in resp) { 4511 localStorage.setItem('ipInfo', ipInfoStr); 4512 if(ipInfoField) { 4513 ipInfoField.value = ipInfoStr; 4514 } 4515 } 4516 } 4517 }) 4518 } 4519 4520 $("#sphone").intlTelInput({ 4521 initialCountry: "auto", 4522 geoIpLookup: function(callback) { 4523 var scountryCode = sessionStorage.getItem('countryCode'); 4524 4525 if(scountryCode !== null) { 4526 callback(scountryCode); 4527 }else { 4528 $.get("https://ipinfo.io", function() {}, "jsonp").always(function(resp) { 4529 var countryCode = (resp && resp.country) ? resp.country : "in"; 4530 callback(countryCode); 4531 sessionStorage.setItem('countryCode', countryCode); 4532 }); 4533 } 4534 }, 4535 preferredCountries: ["in", "us"], 4536 separateDialCode: true, 4537 utilsScript: "/resources/js/intlUtils.js" 4538 }); 4539 4540 </script>
4540 4541 4542 4543 4544 4545<div class="spectre"> 4546 4547 4548 4549 4550 4551
4551<script type="text/javascript"> 4552 if(top != self) { 4553 //iframe 4554 $(".toast").remove(); 4555 } 4556 </script>
4556 4557 4558 4559</div> 4560 4561
4561<script type="text/javascript"> 4562var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date(); 4563(function(){ 4564var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0]; 4565s1.async=true; 4566s1.src='https://embed.tawk.to/651e898b6fcfe87d54b6bddd/1hbvkij7e'; 4567s1.charset='UTF-8'; 4568s1.setAttribute('crossorigin','*'); 4569s0.parentNode.insertBefore(s1,s0); 4570})(); 4571</script>
4571 4572 4573<input type="hidden" id="orgCreditAlias" 4574 value="Loss2profit Coins" /> 4575 4576 4577 4578 4579 4580
4581<script> 4582 4583 4584 4585 4586 var orgTaxLabel = "Tax"; 4587 4588 4589 4590 var sessionCountry = ""; 4591 4592 $(document).ready(function() { 4593 $("input[name='userMobileVerify']").change(function(data){ 4594 var uniqueMobileSwitch = $('#uniqueMobileId'); 4595 if(data.target.value==='true'){ 4596 $('input[name=uniqueMobile]').prop('checked', true) 4597 $('#uniqueMobileLabelId').show(); 4598 }else{ 4599 $('input[name=uniqueMobile]').prop('checked', false) 4600 $('#uniqueMobileLabelId').hide(); 4601 } 4602 }); 4603 }); 4604 4605 4606 4607 4608 localStorage.removeItem('microserviceAuthToken'); 4609 4610 4611 4612 4613 4614 4615 localStorage.removeItem('communityToken'); 4616 4617 4618 4619 4620 4621 4622 localStorage.removeItem('chatRefreshToken'); 4623 4624 4625 4626 4627 4628 4629 localStorage.removeItem('refreshToken'); 4630 4631 4632 4633</script>
4633 4634 4635 4636<!-- amplitude script start --> 4637 4638 4639 4640
4640<script type="text/javascript"> 4641 window.localStorage.removeItem('loginAmplitudeEventSent'); 4642 </script>
4642 4643 4644 4645<!-- amplitude script end --> 4646 4647 4648 <div class="spectre"> 4649 <div class="modal" id="membershipPopupHtml"> 4650 <iframe id="microfe-popup-membership" src="" 4651 style="width: calc(100% + 10px); height: 100vh; border: none;" 4652 onload="$(this).parent().removeClass('loading');"></iframe> 4653 </div> 4654 </div> 4655
4655<script> 4656 function openMembershipPopup(source){ 4657 if(source==='banner'){ 4658 setGraphyCookie('SHOWMEMBERSHIPBANNER', 'true', 1); 4659 } 4660 if(source!=='private'){ 4661 location.href="/membership#"+source; 4662 }else{ 4663 location.href="/private"; 4664 } 4665 } 4666 function openMembershipPopup(source, id){ 4667 if(source==='banner'){ 4668 setGraphyCookie('SHOWMEMBERSHIPBANNER', 'true', 1); 4669 } 4670 if(typeof id !== 'undefined' ){ 4671 location.href="/memberships/"+id+"#"+source; 4672 }else if(source!=='private'){ 4673 location.href="/membership#"+source; 4674 }else{ 4675 location.href="/private"; 4676 } 4677 } 4678 function closeMembershipPopup() { 4679 $("#membershipPopupHtml").removeClass("active"); 4680 $("body").removeClass("overflowYDisable"); 4681 window.location.hash=""; 4682 setGraphyCookie('SHOWMEMBERSHIPBANNER', 'true', 1); 4683 } 4684 $("body").on('click', ".membershipBtn", function() { 4685 openMembershipPopup('nav_bar'); 4686 }); 4687 4688 if(window.location.hash==="#membership"){ 4689 openMembershipPopup(""); 4690 } 4691 4692 </script>
4692 4693 4694 <!-- sending ipInfo data as form data when signing up --> 4695
4695<script type="text/javascript"> 4696 document.addEventListener("DOMContentLoaded", function(event) { 4697 const signupParamsField = document.getElementById("signupParams"); 4698 if(signupParamsField && (window.signupParams)) { 4699 signupParamsField.value = JSON.stringify(window.signupParams); 4700 } 4701 const ipInfo = localStorage.getItem("ipInfo"); 4702 const ipInfoField = document.getElementById("ipInfo"); 4703 if(ipInfo && ipInfoField) { 4704 ipInfoField.value = ipInfo; 4705 } 4706 }); 4707 </script>
4707 4708 4709 4710 <div id="template-container"></div> 4711 4712 4713
4713<script src="https://d502jbuhuh9wk.cloudfront.net/staticfiles/resources/scripts/sstore_5ffb558e86d7b5ef265e05fb0bfbef79.js"></script>
4713 4714 4715
4715<script type="text/javascript"> 4716 $(".isoDateTime").each(function() { 4717 var dateTxt = $.trim($(this).text()); 4718 4719 if(dateTxt !== "") { 4720 if(isNaN(dateTxt)) { 4721 $(this).text(new Date(dateTxt).dateFormat("D M d, Y")); 4722 }else { 4723 $(this).text(new Date(parseFloat(dateTxt)).dateFormat("D M d, Y")); 4724 } 4725 }else { 4726 $(this).text(""); 4727 } 4728 }); 4729 store.bindEvents(); 4730 </script>
4730 4731
4731<script type="text/javascript"> 4732 window.signupParams = {source: "newsletter", platform: "web", sourceId: ""}; 4733 </script>
4733 4734 4735
4735<script src="https://d502jbuhuh9wk.cloudfront.net/static/files/lazyload.min.js"></script>
4735 4736
4736<script type="text/javascript"> 4737 var lazyLoadInstance = new LazyLoad({ 4738 unobserve_entered: true, 4739 callback_enter: function(element) { 4740 resizeCdnImage(element); 4741 } 4742 }); 4743 </script>
4743 4744</body> 4745</html>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.