1
0

core-install.js 6.5 KB

123
  1. /*! For license information please see core-install.js.LICENSE.txt */
  2. !function(){"use strict";var e,t={84891:function(e,t,n){var r,o,i,a=n(19755),s=n.n(a),d=n(31352),l=n(69183),c=(r=document,o=l.j8,i=r.getElementsByTagName("head")[0].getAttribute("data-requesttoken"),{getToken:function(){return i},setToken:function(e){o("csrf-token-update",{token:i=e})}}).getToken;s().fn.extend({showPassword:function(e){var t={fn:null,args:{}};t.fn=e;var n=function(e,t){t.val(e.val())},r=function(e,t,r){e.is(":checked")?(n(t,r),r.show(),t.hide()):(n(r,t),r.hide(),t.show())};return this.each((function(){var e=s()(this),o=s()(e.data("typetoggle")),i=function(e){var t=s()(e),n=s()("<input />");return n.attr({type:"text",class:t.attr("class"),style:t.attr("style"),size:t.attr("size"),name:t.attr("name")+"-clone",tabindex:t.attr("tabindex"),autocomplete:"off"}),void 0!==t.attr("placeholder")&&n.attr("placeholder",t.attr("placeholder")),n}(e);i.insertAfter(e),t.fn&&(t.args.input=e,t.args.checkbox=o,t.args.clone=i),o.bind("click",(function(){r(o,e,i)})),e.bind("keyup",(function(){n(e,i)})),i.bind("keyup",(function(){n(i,e),e.trigger("keyup")})),i.bind("blur",(function(){e.trigger("focusout")})),r(o,e,i),i.closest("form").submit((function(e){i.prop("type","password")})),t.fn&&t.fn(t.args)}))}}),n(79366),n(75289),n(56396);var u,p=n(25108);s().prototype.tooltip=(u=s().prototype.tooltip,function(e){try{return u.call(this,e)}catch(t){if(t instanceof TypeError&&"destroy"===e)return void 0===window.TESTING&&p.error("Deprecated call $.tooltip('destroy') has been deprecated and should be removed"),u.call(this,"dispose");if(t instanceof TypeError&&"fixTitle"===e)return void 0===window.TESTING&&p.error("Deprecated call $.tooltip('fixTitle') has been deprecated and should be removed"),u.call(this,"_fixTitle")}}),n(99205),n(38554),window.addEventListener("DOMContentLoaded",(function(){var e=!!s()("#hasSQLite").val();s()("#hasMySQL").val(),s()("#hasPostgreSQL").val(),s()("#hasOracle").val(),s()("#selectDbType").buttonset(),s()("#selectDbType p.info a").button("destroy"),s()("#hasSQLite").val()?(s()("#use_other_db").hide(),s()("#use_oracle_db").hide()):s()("#sqliteInformation").hide(),s()("#adminlogin").change((function(){s()("#adminlogin").val(s().trim(s()("#adminlogin").val()))})),s()("#sqlite").click((function(){s()("#use_other_db").slideUp(250),s()("#use_oracle_db").slideUp(250),s()("#sqliteInformation").show(),s()("#dbname").attr("pattern","[0-9a-zA-Z$_-]+")})),s()("#mysql,#pgsql").click((function(){s()("#use_other_db").slideDown(250),s()("#use_oracle_db").slideUp(250),s()("#sqliteInformation").hide(),s()("#dbname").attr("pattern","[0-9a-zA-Z$_-]+")})),s()("#oci").click((function(){s()("#use_other_db").slideDown(250),s()("#use_oracle_db").show(250),s()("#sqliteInformation").hide(),s()("#dbname").attr("pattern","[0-9a-zA-Z$_-.]+")})),s()("#showAdvanced").click((function(e){e.preventDefault(),s()("#datadirContent").slideToggle(250),s()("#databaseBackend").slideToggle(250),s()("#databaseField").slideToggle(250)})),s()("form").submit((function(){var e=s()(this).serializeArray();s()(".float-spinner").show(250),s()('input[type="submit"]').attr("disabled","disabled").val(s()('input[type="submit"]').data("finishing")),s()("input",this).addClass("ui-state-disabled").attr("disabled","disabled"),s()("#selectDbType").find(".ui-button").length>0&&s()("#selectDbType").buttonset("disable"),s()(".strengthify-wrapper, .tipsy").css("filter","alpha(opacity=30)").css("opacity",.3);var t=s()("<form>");t.attr("action",s()(this).attr("action")),t.attr("method","POST");for(var n=0;n<e.length;n++){var r=s()('<input type="hidden">');r.attr(e[n]),t.append(r)}var o=decodeURIComponent((new RegExp("[?|&]redirect_url=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||"";if(o){var i=s()('<input type="hidden">');i.attr({name:"redirect_url",value:o}),t.append(i)}return t.appendTo(document.body),t.submit(),!1}));var t=s()('input[type="radio"]:checked').val();void 0===t&&s()('input[type="radio"]').first().click(),("sqlite"===t||e&&void 0===t)&&(s()("#datadirContent").hide(250),s()("#databaseBackend").hide(250),s()("#databaseField").hide(250),s()(".float-spinner").hide(250)),s()("#adminpass").strengthify({zxcvbn:OC.linkTo("core","vendor/zxcvbn/dist/zxcvbn.js"),titles:[(0,d.Iu)("core","Very weak password"),(0,d.Iu)("core","Weak password"),(0,d.Iu)("core","So-so password"),(0,d.Iu)("core","Good password"),(0,d.Iu)("core","Strong password")],drawTitles:!0,nonce:btoa(c())}),s()("#dbpass").showPassword().keyup(),s()(".toggle-password").click((function(e){e.preventDefault(),"password"===s()(this).parent().children("input").attr("type")?s()(this).parent().children("input").attr("type","text"):s()(this).parent().children("input").attr("type","password")}))}))}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.m=t,e=[],r.O=function(t,n,o,i){if(!n){var a=1/0;for(c=0;c<e.length;c++){n=e[c][0],o=e[c][1],i=e[c][2];for(var s=!0,d=0;d<n.length;d++)(!1&i||a>=i)&&Object.keys(r.O).every((function(e){return r.O[e](n[d])}))?n.splice(d--,1):(s=!1,i<a&&(a=i));if(s){e.splice(c--,1);var l=o();void 0!==l&&(t=l)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[n,o,i]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},r.j=8998,function(){r.b=document.baseURI||self.location.href;var e={8998:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,i,a=n[0],s=n[1],d=n[2],l=0;if(a.some((function(t){return 0!==e[t]}))){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);if(d)var c=d(r)}for(t&&t(n);l<a.length;l++)i=a[l],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(c)},n=self.webpackChunknextcloud=self.webpackChunknextcloud||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),r.nc=void 0;var o=r.O(void 0,[7874],(function(){return r(84891)}));o=r.O(o)}();
  3. //# sourceMappingURL=core-install.js.map?v=463800a41f1e834068aa