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