Server : Apache System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 User : vapecompany ( 2719) PHP Version : 7.4.33 Disable Function : NONE Directory : /home/vapecompany/demo.vapecompany.com.bd/public/frontend/js/ |
Upload File : |
/** * Minified by jsDelivr using UglifyJS v3.1.10. * Original file: /npm/sweetalert2@1.4.1/src/sweetalert2.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ !function(e,t){"use strict";e.swalClasses={container:"sweet-container",modal:"sweet-alert",overlay:"sweet-overlay",close:"sweet-close",content:"sweet-content",spacer:"sweet-spacer",confirm:"sweet-confirm",cancel:"sweet-cancel",icon:"sweet-icon",image:"sweet-image",input:"sweet-input",select:"sweet-select",validationError:"sweet-validation-error",iconTypes:{success:"sweet-success",warning:"sweet-warning",info:"sweet-info",question:"sweet-question",error:"sweet-error"}};var s,n,l,o,a={title:"",text:"",html:"",type:null,animation:!0,allowOutsideClick:!0,allowEscapeKey:!0,showConfirmButton:!0,showCancelButton:!1,closeOnConfirm:!0,closeOnCancel:!0,confirmButtonText:"OK",confirmButtonColor:"#3085d6",confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonColor:"#aaa",cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,showCloseButton:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageClass:null,timer:null,width:500,padding:20,background:"#fff",input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputValidator:null},i=function(){return t.querySelector("."+e.swalClasses.modal)},r=function(){return t.querySelector("."+e.swalClasses.overlay)},c=function(e,t){return new RegExp(" "+t+" ").test(" "+e.className+" ")},u=function(e){e.focus();var t=e.value;e.value="",e.value=t},d=function(e,t){t&&!c(e,t)&&(e.className+=" "+t)},p=function(e,t){var s=" "+e.className.replace(/[\t\r\n]/g," ")+" ";if(c(e,t)){for(;s.indexOf(" "+t+" ")>=0;)s=s.replace(" "+t+" "," ");e.className=s.replace(/^\s+|\s+$/g,"")}},w=function(e){e.style.opacity="",e.style.display="block"},m=function(e){if(e&&!e.length)return w(e);for(var t=0;t<e.length;++t)w(e[t])},f=function(e){e.style.opacity="",e.style.display="none"},y=function(e){if(e&&!e.length)return f(e);for(var t=0;t<e.length;++t)f(e[t])},C=function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s]);return e},v=function(s){if("function"==typeof MouseEvent){var n=new MouseEvent("click",{view:e,bubbles:!1,cancelable:!0});s.dispatchEvent(n)}else if(t.createEvent){var l=t.createEvent("MouseEvents");l.initEvent("click",!1,!1),s.dispatchEvent(l)}else t.createEventObject?s.fireEvent("onclick"):"function"==typeof s.onclick&&s.onclick()},g=function(t){"function"==typeof t.stopPropagation?(t.stopPropagation(),t.preventDefault()):e.event&&e.event.hasOwnProperty("cancelBubble")&&(e.event.cancelBubble=!0)},h=function(){var a=i();e.onkeydown=l,t.onclick=n,s&&s.focus(),o=void 0,clearTimeout(a.timeout);var r=t.getElementsByTagName("head")[0],c=t.getElementById("sweet-alert-mediaquery");c&&r.removeChild(c)},b=function(e,t){(e=String(e).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;for(var s="#",n=0;n<3;n++){var l=parseInt(e.substr(2*n,2),16);s+=("00"+(l=Math.round(Math.min(Math.max(0,l+l*t),255)).toString(16))).substr(l.length)}return s},B=function(s){var n=i();n.style.width=s.width+"px",n.style.padding=s.padding+"px",n.style.marginLeft=-s.width/2+"px",n.style.background=s.background;var l=t.getElementsByTagName("head")[0],o=t.createElement("style");o.type="text/css",o.id="sweet-alert-mediaquery",o.innerHTML="@media screen and (max-width: "+s.width+"px) {."+e.swalClasses.modal+" {max-width: 100%;left: 0 !important;margin-left: 0 !important;}}",l.appendChild(o);var a=n.querySelector("h2"),r=n.querySelector("."+e.swalClasses.content),c=n.querySelector("button."+e.swalClasses.confirm),u=n.querySelector("button."+e.swalClasses.cancel),C=n.querySelector("."+e.swalClasses.spacer),v=n.querySelector("."+e.swalClasses.close);if(a.innerHTML=s.title.split("\n").join("<br>"),s.text||s.html){if("object"==typeof s.html)if(r.innerHTML="",0 in s.html)for(var g=0;g in s.html;g++)r.appendChild(s.html[g]);else r.appendChild(s.html);else r.innerHTML=s.html||"<p>"+s.text.split("\n").join("<br>")+"</p>";m(r)}else y(r);if(s.showCloseButton?m(v):y(v),n.className=e.swalClasses.modal,s.customClass&&d(n,s.customClass),y(n.querySelectorAll("."+e.swalClasses.icon)),s.type){var h=!1;for(var b in e.swalClasses.iconTypes)if(s.type===b){h=!0;break}if(!h)return e.console.error("Unknown alert type: "+s.type),!1;var B=n.querySelector("."+e.swalClasses.icon+"."+e.swalClasses.iconTypes[s.type]);switch(m(B),s.type){case"success":d(B,"animate"),d(B.querySelector(".tip"),"animate-success-tip"),d(B.querySelector(".long"),"animate-success-long");break;case"error":d(B,"animate-error-icon"),d(B.querySelector(".x-mark"),"animate-x-mark");break;case"warning":d(B,"pulse-warning")}}var k=n.querySelector("."+e.swalClasses.image);s.imageUrl?(k.setAttribute("src",s.imageUrl),m(k),s.imageWidth&&k.setAttribute("width",s.imageWidth),s.imageHeight&&k.setAttribute("height",s.imageHeight),s.imageClass&&d(k,s.imageClass)):y(k);var S=n.querySelector("."+e.swalClasses.input),E=n.querySelector("."+e.swalClasses.select);switch(f(S),f(E),s.input){case"text":case"email":case"password":S.value=s.inputValue,S.placeholder=s.inputPlaceholder,S.type=s.input,w(S);break;case"select":if(E.innerHTML="",s.inputPlaceholder){var x=t.createElement("option");x.innerHTML=s.inputPlaceholder,x.disabled=!0,x.selected=!0,E.appendChild(x)}for(var T in s.inputOptions){var q=t.createElement("option");q.value=T,q.innerHTML=s.inputOptions[T],s.inputValue===T&&(q.selected=!0),E.appendChild(q)}w(E);break;case null:break;default:e.console.error('Unexpected type of input! Expected "text" or "email" or "password" or "select", got '+typeof arguments[0])}s.showCancelButton?u.style.display="inline-block":y(u),s.showConfirmButton?function(e,t){e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(t)}(c,"display"):y(c),s.showConfirmButton||s.showCancelButton?m(C):y(C),c.innerHTML=s.confirmButtonText,u.innerHTML=s.cancelButtonText,s.buttonsStyling&&(c.style.backgroundColor=s.confirmButtonColor,u.style.backgroundColor=s.cancelButtonColor),c.className=e.swalClasses.confirm,d(c,s.confirmButtonClass),u.className=e.swalClasses.cancel,d(u,s.cancelButtonClass),s.buttonsStyling?(d(c,"styled"),d(u,"styled")):(p(c,"styled"),p(u,"styled"),c.style.backgroundColor=c.style.borderLeftColor=c.style.borderRightColor="",u.style.backgroundColor=u.style.borderLeftColor=u.style.borderRightColor=""),!0===s.animation?p(n,"no-animation"):d(n,"no-animation")},k=function(){var e=i();!function(e,t){if(+e.style.opacity<1){t=t||16,e.style.opacity=0,e.style.display="block";var s=+new Date,n=function(){e.style.opacity=+e.style.opacity+(new Date-s)/100,s=+new Date,+e.style.opacity<1&&setTimeout(n,t)};n()}}(r(),10),m(e),d(e,"show-sweet-alert"),p(e,"hide-sweet-alert"),s=t.activeElement,d(e,"visible")},S=function(){i().style.marginTop=function(e){e.style.left="-9999px",e.style.display="block";var t=e.clientHeight,s=parseInt(getComputedStyle(e).getPropertyValue("padding-top"),10);return e.style.left="",e.style.display="none","-"+parseInt(t/2+s,10)+"px"}(i())};e.sweetAlert=e.swal=function(){var s=arguments,w=i();return null===w&&(e.swal.init(),w=i()),c(w,"visible")&&h(),function(){if(void 0===arguments[0])return e.console.error("sweetAlert expects at least 1 attribute!"),!1;var s=C({},a);switch(typeof arguments[0]){case"string":s.title=arguments[0],s.text=arguments[1]||"",s.type=arguments[2]||"";break;case"object":s.title=arguments[0].title||a.title,s.text=arguments[0].text||a.text,s.html=arguments[0].html||a.html,s.type=arguments[0].type||a.type,s.animation=void 0!==arguments[0].animation?arguments[0].animation:a.animation,s.customClass=arguments[0].customClass||s.customClass,s.allowOutsideClick=void 0!==arguments[0].allowOutsideClick?arguments[0].allowOutsideClick:a.allowOutsideClick,s.allowEscapeKey=void 0!==arguments[0].allowEscapeKey?arguments[0].allowEscapeKey:a.allowEscapeKey,s.showConfirmButton=void 0!==arguments[0].showConfirmButton?arguments[0].showConfirmButton:a.showConfirmButton,s.showCancelButton=void 0!==arguments[0].showCancelButton?arguments[0].showCancelButton:a.showCancelButton,s.closeOnConfirm=void 0!==arguments[0].closeOnConfirm?arguments[0].closeOnConfirm:a.closeOnConfirm,s.closeOnCancel=void 0!==arguments[0].closeOnCancel?arguments[0].closeOnCancel:a.closeOnCancel,s.timer=parseInt(arguments[0].timer,10)||a.timer,s.width=parseInt(arguments[0].width,10)||a.width,s.padding=parseInt(arguments[0].padding,10)||a.padding,s.background=void 0!==arguments[0].background?arguments[0].background:a.background,s.confirmButtonText=arguments[0].confirmButtonText||a.confirmButtonText,s.confirmButtonColor=arguments[0].confirmButtonColor||a.confirmButtonColor,s.confirmButtonClass=arguments[0].confirmButtonClass||s.confirmButtonClass,s.cancelButtonText=arguments[0].cancelButtonText||a.cancelButtonText,s.cancelButtonColor=arguments[0].cancelButtonColor||a.cancelButtonColor,s.cancelButtonClass=arguments[0].cancelButtonClass||s.cancelButtonClass,s.buttonsStyling=void 0!==arguments[0].buttonsStyling?arguments[0].buttonsStyling:a.buttonsStyling,s.reverseButtons=void 0!==arguments[0].reverseButtons?arguments[0].reverseButtons:a.reverseButtons,s.showCloseButton=void 0!==arguments[0].showCloseButton?arguments[0].showCloseButton:a.showCloseButton,s.imageUrl=arguments[0].imageUrl||a.imageUrl,s.imageWidth=arguments[0].imageWidth||a.imageWidth,s.imageHeight=arguments[0].imageHeight||a.imageHeight,s.imageClass=arguments[0].imageClass||a.imageClass,s.input=arguments[0].input||a.input,s.inputPlaceholder=arguments[0].inputPlaceholder||a.inputPlaceholder,s.inputValue=arguments[0].inputValue||a.inputValue,s.inputOptions=arguments[0].inputOptions||a.inputOptions,s.inputValidator=arguments[0].inputValidator||a.inputValidator;break;default:return e.console.error('Unexpected type of argument! Expected "string" or "object", got '+typeof arguments[0]),!1}B(s),S(),k();var w=i();return new Promise(function(a){function i(e,t){for(var s=0;s<E.length;s++)if((e+=t)===E.length?e=0:-1===e&&(e=E.length-1),E[e].offsetWidth||E[e].offsetHeight||E[e].getClientRects().length)return void E[e].focus()}s.timer&&(w.timeout=setTimeout(function(){e.swal.closeModal(),a(void 0)},s.timer));var f=function(){return"select"===s.input?w.querySelector("."+e.swalClasses.select):w.querySelector("."+e.swalClasses.input)};s.input&&setTimeout(function(){u(f())},0);var C,h=function(t){var n=t||e.event,l=n.target||n.srcElement,o=c(l,e.swalClasses.confirm),i=c(l,e.swalClasses.cancel),r=c(w,"visible");switch(n.type){case"mouseover":case"mouseup":case"focus":s.buttonsStyling&&(o?l.style.backgroundColor=b(s.confirmButtonColor,-.1):i&&(l.style.backgroundColor=b(s.cancelButtonColor,-.1)));break;case"mouseout":case"blur":s.buttonsStyling&&(o?l.style.backgroundColor=s.confirmButtonColor:i&&(l.style.backgroundColor=s.cancelButtonColor));break;case"mousedown":s.buttonsStyling&&(o?l.style.backgroundColor=b(s.confirmButtonColor,-.2):i&&(l.style.backgroundColor=b(s.cancelButtonColor,-.2)));break;case"click":if(o&&r){if(s.closeOnConfirm)if(s.input){var u=f();s.inputValidator?s.inputValidator(u.value).then(function(){e.swal.closeModal(),a(u.value)},function(t){e.swal.showValidationError(t)}):(e.swal.closeModal(),a(u.value))}else s.input||(e.swal.closeModal(),a(!0))}else i&&r?s.closeOnCancel&&(e.swal.closeModal(),a(!1)):e.swal.closeModal()}},B=w.querySelectorAll("button");for(C=0;C<B.length;C++)B[C].onclick=h,B[C].onmouseover=h,B[C].onmouseout=h,B[C].onmousedown=h;n=t.onclick,t.onclick=function(t){var n=t||e.event,l=n.target||n.srcElement;(c(l,e.swalClasses.close)||l===r()&&s.allowOutsideClick)&&(e.swal.closeModal(),a(void 0))};var k=w.querySelector("button."+e.swalClasses.confirm),S=w.querySelector("button."+e.swalClasses.cancel),E=[k,S].concat(Array.prototype.slice.call(w.querySelectorAll("button:not([class^=sweet-]), input:not([type=hidden]), textarea, select")));for(C=0;C<E.length;C++)E[C].onfocus=h,E[C].onblur=h;s.reverseButtons&&k.parentNode.insertBefore(S,k),i(-1,1),l=e.onkeydown,e.onkeydown=function(t){var n=t||e.event,l=n.keyCode||n.which;if(-1!==[9,13,32,27].indexOf(l)){for(var o=n.target||n.srcElement,r=-1,c=0;c<E.length;c++)if(o===E[c]){r=c;break}9===l?(n.shiftKey?i(r,-1):i(r,1),g(n)):13===l||32===l?-1===r&&v(k,n):27===l&&!0===s.allowEscapeKey&&(e.swal.closeModal(),a(void 0))}},s.buttonsStyling&&(k.style.borderLeftColor=s.confirmButtonColor,k.style.borderRightColor=s.confirmButtonColor),e.swal.enableLoading=function(){d(k,"loading"),d(w,"loading"),S.disabled=!0},e.swal.disableLoading=function(){p(k,"loading"),p(w,"loading"),S.disabled=!1},e.swal.enableButtons=function(){k.disabled=!1,S.disabled=!1},e.swal.disableButtons=function(){k.disabled=!0,S.disabled=!0},e.swal.showValidationError=function(t){var s=w.querySelector("."+e.swalClasses.validationError);s.innerHTML=t,m(s);var n=f();u(n),d(n,"error")},e.swal.resetValidationError=function(){var t=w.querySelector("."+e.swalClasses.validationError);y(t);var s=f();p(s,"error")},e.swal.enableButtons(),e.swal.disableLoading(),e.swal.resetValidationError(),e.onfocus=function(){e.setTimeout(function(){void 0!==o&&(o.focus(),o=void 0)},0)}})}.apply(this,s)},e.sweetAlert.close=e.swal.close=e.sweetAlert.closeModal=e.swal.closeModal=function(){var t=i();f(r()),f(t),p(t,"showSweetAlert"),d(t,"hideSweetAlert"),p(t,"visible");var s=t.querySelector("."+e.swalClasses.icon+"."+e.swalClasses.iconTypes.success);p(s,"animate"),p(s.querySelector(".tip"),"animate-success-tip"),p(s.querySelector(".long"),"animate-success-long");var n=t.querySelector("."+e.swalClasses.icon+"."+e.swalClasses.iconTypes.error);p(n,"animate-error-icon"),p(n.querySelector(".x-mark"),"animate-x-mark");var l=t.querySelector("."+e.swalClasses.icon+"."+e.swalClasses.iconTypes.warning);p(l,"pulse-warning"),h()},e.sweetAlert.clickConfirm=e.swal.clickConfirm=function(){i().querySelector("button."+e.swalClasses.confirm).click()},e.sweetAlert.clickCancel=e.swal.clickCancel=function(){i().querySelector("button."+e.swalClasses.cancel).click()},e.swal.init=function(){if(!t.getElementsByClassName(e.swalClasses.container).length){var s='<div class="'+e.swalClasses.overlay+'" tabIndex="-1"></div><div class="'+e.swalClasses.modal+'" style="display: none" tabIndex="-1"><div class="'+e.swalClasses.icon+" "+e.swalClasses.iconTypes.error+'"><span class="x-mark"><span class="line left"></span><span class="line right"></span></span></div><div class="'+e.swalClasses.icon+" "+e.swalClasses.iconTypes.question+'">?</div><div class="'+e.swalClasses.icon+" "+e.swalClasses.iconTypes.warning+'">!</div><div class="'+e.swalClasses.icon+" "+e.swalClasses.iconTypes.info+'">i</div><div class="'+e.swalClasses.icon+" "+e.swalClasses.iconTypes.success+'"><span class="line tip"></span> <span class="line long"></span><div class="placeholder"></div> <div class="fix"></div></div><img class="'+e.swalClasses.image+'"><h2>Title</h2><div class="'+e.swalClasses.content+'">Text</div><input class="'+e.swalClasses.input+'"><select class="'+e.swalClasses.select+'"></select><div class="'+e.swalClasses.validationError+'"></div><hr class="'+e.swalClasses.spacer+'"><button class="'+e.swalClasses.confirm+'">OK</button><button class="'+e.swalClasses.cancel+'">Cancel</button><span class="'+e.swalClasses.close+'">×</span></div>',n=t.createElement("div");n.className=e.swalClasses.container,n.innerHTML=s,t.body.appendChild(n);var l=i(),o=l.querySelector("."+e.swalClasses.input),a=l.querySelector("."+e.swalClasses.select);o.oninput=function(){e.swal.resetValidationError()},o.onkeyup=function(){13===event.keyCode&&e.swal.clickConfirm()},a.onchange=function(){e.swal.resetValidationError()}}},e.swal.setDefaults=function(e){if(!e)throw new Error("userParams is required");if("object"!=typeof e)throw new Error("userParams has to be a object");C(a,e)},"complete"===t.readyState||"interactive"===t.readyState&&t.body?e.swal.init():t.addEventListener?t.addEventListener("DOMContentLoaded",function s(){t.removeEventListener("DOMContentLoaded",s,!1),e.swal.init()},!1):t.attachEvent&&t.attachEvent("onreadystatechange",function s(){"complete"===t.readyState&&(t.detachEvent("onreadystatechange",s),e.swal.init())})}(window,document); //# sourceMappingURL=/sm/88c1b906f8185c94ff3078567557db98ea1d78331ed38c92134f7a086f75006a.map