1var OpenWebViewAppModal={modal:null,md:null,google_play_store_url:null,ios_apple_store_url:null,start_uri_scheme:null,end_uri_scheme:null,hide_deep_link_cookie_name:null,market:null,init:function(){this.md=new MobileDetect(window.navigator.userAgent);var e=validateURL.URL();fetch(e+"/webView/configDeepLink",{headers:{Accept:"application/json","Content-Type":"application/json"}}).then(e=>e.json()).then(e=>{$("#modalConfirmation").after(e.html),OpenWebViewAppModal.start_uri_scheme=e.start_uri_scheme,OpenWebViewAppModal.end_uri_scheme=e.end_uri_scheme,OpenWebViewAppModal.hide_deep_link_cookie_name=e.hide_deep_link_cookie_name,OpenWebViewAppModal.market=e.market;var e=/hk|HK/i.test(document.domain),o=!/iP|Macintosh/i.test(window.navigator.userAgent)||/iP|Macintosh/i.test(window.navigator.userAgent)&&/iOS/i.test(window.navigator.userAgent),o=!!e||o;if(null==this.getCookie(this.hide_deep_link_cookie_name)&&null!=this.md.mobile()&&o){"iPhone"==this.md.mobile()&&($("#openWebViewAppModal").removeClass("modal-top"),$("#openWebViewAppModal").css("top","0"),$(".modal-dialog").css("margin","auto"),$("#openWebViewAppModal").css("height","fit-content"));try{modal=$("#openWebViewAppModal").modal({backdrop:!1}).on("shown.bs.modal",function(e){$(document).off("focusin.modal"),$("body").removeClass("modal-open"),updateHeaderBarMarginTop()}).on("hidden.bs.modal",function(e){OpenWebViewAppModal.setCookie(this.hide_deep_link_cookie_name,!0,10),updateHeaderBarMarginTop()}).modal("show")}catch(e){}}})},openApp:function(e){var o=new MobileDetect(window.navigator.userAgent);if(null!=o.mobile())try{let e="";"indonesia"===OpenWebViewAppModal.market&&(e="iPhone"==o.mobile()?"&utm_medium=organic&utm_source=app-store":"&utm_medium=referral&utm_source=google-play");var n=OpenWebViewAppModal.start_uri_scheme+"?link="+document.location.href+OpenWebViewAppModal.end_uri_scheme+e;try{GA_datalayer.generalEventClick(Messages.getText("web-view-app-button-text"),n)}catch(e){}window.location=n}catch(e){}},getCookie:function(o){let e=document.cookie.split(";");return null!=(e=e.map(e=>{var e=e.split("="),o={};return o[e[0].trim()]=e[1].trim(),o}).find(e=>null!=e[o]))?e[o]:null},setCookie:function(e,o,n,i){var t=[{name:"sec",calc:1e3},{name:"min",calc:6e4},{name:"hour",calc:36e5},{name:"day",calc:864e5}].find((e,o)=>e.name==i),t=null!=t?t.calc:6e4,a=new Date,n=(a.setTime(a.getTime()+n*t),"expires="+a.toUTCString());document.cookie=e+"="+o+";"+n+";secure;path=/"},checkAppOpen:function(e,o){let n=!1;setTimeout(function(){n||window.location.replace(e)},2e3);try{window.location.href.replace(o+"?url="+document.location.href),-1!==window.location.href.indexOf(o)&&(n=!0)}catch(e){}}};OpenWebViewAppModal.init();
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.