You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nextcloud-server/dist/core-install.js

3 lines
109 KiB

/*! For license information please see core-install.js.LICENSE.txt */
(()=>{var i,n={69031:(i,n,t)=>{"use strict";var o=t(19755),e=t.n(o),s=t(31352),A=t(69183);const r=((i,n)=>{let t=i.getElementsByTagName("head")[0].getAttribute("data-requesttoken");return{getToken:()=>t,setToken:i=>{t=i,n("csrf-token-update",{token:t})}}})(document,A.j8),a=r.getToken;r.setToken,e().fn.extend({showPassword(i){const n={fn:null,args:{}};n.fn=i;const t=function(i,n){n.val(i.val())},o=function(i,n,o){i.is(":checked")?(t(n,o),o.show(),n.hide()):(t(o,n),o.hide(),n.show())};return this.each((function(){const i=e()(this),s=e()(i.data("typetoggle")),A=function(i){const n=e()(i),t=e()("<input />");return t.attr({type:"text",class:n.attr("class"),style:n.attr("style"),size:n.attr("size"),name:n.attr("name")+"-clone",tabindex:n.attr("tabindex"),autocomplete:"off"}),void 0!==n.attr("placeholder")&&t.attr("placeholder",n.attr("placeholder")),t}(i);A.insertAfter(i),n.fn&&(n.args.input=i,n.args.checkbox=s,n.args.clone=A),s.bind("click",(function(){o(s,i,A)})),i.bind("keyup",(function(){t(i,A)})),A.bind("keyup",(function(){t(A,i),i.trigger("keyup")})),A.bind("blur",(function(){i.trigger("focusout")})),o(s,i,A),A.closest("form").submit((function(i){A.prop("type","password")})),n.fn&&n.fn(n.args)}))}}),t(79366);var c=t(93379),u=t.n(c),p=t(7795),d=t.n(p),l=t(90569),g=t.n(l),C=t(3565),h=t.n(C),b=t(19216),f=t.n(b),x=t(44589),B=t.n(x),k=t(67286),w={};w.styleTagTransform=B(),w.setAttributes=h(),w.insert=g().bind(null,"head"),w.domAPI=d(),w.insertStyleElement=f(),u()(k.Z,w),k.Z&&k.Z.locals&&k.Z.locals;var E=t(18769),m={};m.styleTagTransform=B(),m.setAttributes=h(),m.insert=g().bind(null,"head"),m.domAPI=d(),m.insertStyleElement=f(),u()(E.Z,m),E.Z&&E.Z.locals&&E.Z.locals;var v,D=t(25108);e().prototype.tooltip=(v=e().prototype.tooltip,function(i){try{return v.call(this,i)}catch(n){if(n instanceof TypeError&&"destroy"===i)return void 0===window.TESTING&&OC.debug&&D.warn("Deprecated call $.tooltip('destroy') has been deprecated and should be removed"),v.call(this,"dispose");if(n instanceof TypeError&&"fixTitle"===i)return void 0===window.TESTING&&OC.debug&&D.warn("Deprecated call $.tooltip('fixTitle') has been deprecated and should be removed"),v.call(this,"_fixTitle")}}),t(99205);var y=t(33862),H={};H.styleTagTransform=B(),H.setAttributes=h(),H.insert=g().bind(null,"head"),H.domAPI=d(),H.insertStyleElement=f(),u()(y.Z,H),y.Z&&y.Z.locals&&y.Z.locals,window.addEventListener("DOMContentLoaded",(function(){const i=!!e()("#hasSQLite").val();e()("#hasMySQL").val(),e()("#hasPostgreSQL").val(),e()("#hasOracle").val(),e()("#selectDbType").buttonset(),e()("#selectDbType p.info a").button("destroy"),e()("#hasSQLite").val()?(e()("#use_other_db").hide(),e()("#use_oracle_db").hide()):e()("#sqliteInformation").hide(),e()("#adminlogin").change((function(){e()("#adminlogin").val(e().trim(e()("#adminlogin").val()))})),e()("#sqlite").click((function(){e()("#use_other_db").slideUp(250),e()("#use_oracle_db").slideUp(250),e()("#sqliteInformation").show(),e()("#dbname").attr("pattern","[0-9a-zA-Z$_-]+")})),e()("#mysql,#pgsql").click((function(){e()("#use_other_db").slideDown(250),e()("#use_oracle_db").slideUp(250),e()("#sqliteInformation").hide(),e()("#dbname").attr("pattern","[0-9a-zA-Z$_-]+")})),e()("#oci").click((function(){e()("#use_other_db").slideDown(250),e()("#use_oracle_db").show(250),e()("#sqliteInformation").hide(),e()("#dbname").attr("pattern","[0-9a-zA-Z$_-.]+")})),e()("#showAdvanced").click((function(i){i.preventDefault(),e()("#datadirContent").slideToggle(250),e()("#databaseBackend").slideToggle(250),e()("#databaseField").slideToggle(250)})),e()("form").submit((function(){const i=e()(this).serializeArray();e()(".float-spinner").show(250),e()('input[type="submit"]').attr("disabled","disabled").val(e()('input[type="submit"]').data("finishing")),e()("input",this).addClass("ui-state-disabled").attr("disabled","disabled"),e()("#selectDbType").find(".ui-button").length>0&&e()("#selectDbType").buttonset("disable"),e()(".strengthify-wrapper, .tipsy").css("filter","alpha(opacity=30)").css("opacity",.3);const n=e()("<form>");n.attr("action",e()(this
//# sourceMappingURL=core-install.js.map?v=5e660d8cf3c73247183a