1"use strict";(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[22067,43602,61861,87212],{10870(d,u,a){var s,r;s=[a(65303),a(17459),a(68636),a(29930),a(91749)],r=(function(o,l,n,c,p){const m={};let h;m.show=function(){p.one("action:ajaxify.end",()=>{y(),g(),m.showEmailConfirmWarning()})},m.showEmailConfirmWarning=function(e){if(!config.emailPrompt||!app.user.uid||parseInt(n.getItem("email-confirm-dismiss"),10)===1)return;const t={alert_id:"email_confirm",type:"warning",timeout:0,closefn:()=>{n.setItem("email-confirm-dismiss",1)}};function i(){c.remove("email_confirm"),ajaxify.go("/me/edit/email")}!app.user.email&&!app.user.isEmailConfirmSent?(t.message="[[error:no-email-to-confirm]]",t.clickfn=i,c.alert(t)):!app.user["email:confirmed"]&&!app.user.isEmailConfirmSent?(t.message=e||"[[error:email-not-confirmed]]",t.clickfn=i,c.alert(t)):!app.user["email:confirmed"]&&app.user.isEmailConfirmSent&&(t.message="[[error:email-not-confirmed-email-sent]]",c.alert(t))};function g(){!config.cookies.enabled||!navigator.cookieEnabled||app.inAdmin||n.getItem("cookieconsent")==="1"||app.parseAndTranslate("partials/cookie-consent",config.cookies,function(e){$(document.body).append(e),$(document.body).addClass("cookie-consent-open");const t=$(".cookie-consent");t.find("button").on("click",function(){n.setItem("cookieconsent","1"),t.remove(),$(document.body).removeClass("cookie-consent-open")})})}function y(){const e=utils.params({full:!0}),t=e.toString();h=e.get("register"),h&&(o.alert({message:utils.escapeHTML(decodeURIComponent(h))}),e.delete("register")),e.has("lang")&&e.get("lang")===config.defaultLang&&(console.info(`The "lang" parameter was passed in to set the language to "${e.get("lang")}", but that is already the forum default language.`),e.delete("lang"));const i=e.toString();i!==t&&ajaxify.updateHistory(ajaxify.currentPage+(i?`?${i}`:"")+document.location.hash,!0)}return m.showInvalidSession=function(){o.alert({title:"[[error:invalid-session]]",message:"[[error:invalid-session-text]]",closeButton:!1,callback:function(){window.location.reload()}})},m.showSessionMismatch=function(){o.alert({title:"[[error:session-mismatch]]",message:"[[error:session-mismatch-text]]",closeButton:!1,callback:function(){window.location.reload()}})},m}).apply(u,s),r!==void 0&&(d.exports=r)},65303(d,u,a){a.r(u),a.d(u,{alert:()=>c,confirm:()=>p,dialog:()=>n,prompt:()=>m,promptPassword:()=>h});var s=a(33530),r=a.n(s),o=a(17459),l=a.n(o);s.setDefaults({locale:config.userLang}),o.translateKeys(["modules:bootbox.ok","modules:bootbox.cancel","modules:bootbox.confirm"]).then(e=>{s.addLocale(config.userLang,{OK:e[0],CANCEL:e[1],CONFIRM:e[2]}),s.setLocale(config.userLang)});async function n(e){const[t,i,f]=await Promise.all([o.translate(e.title||""),g(e)||"",y(e.buttons)]);return s.dialog({...e,title:t,message:i,buttons:f})}async function c(e,t){const[i,f]=await Promise.all([e&&e.title?o.translate(e.title):null,g(e)]);return t=typeof t=="function"?t:e.callback,s.alert({...e,title:i,message:f,callback:t})}async function p(e,t){const[i,f]=await Promise.all([e&&e.title?o.translate(e.title):null,g(e)]);return t=typeof t=="function"?t:e.callback,s.confirm({...e,title:i,message:f,callback:t})}async function m(e,t){const[i,f]=await Promise.all([o.translate(typeof e=="string"?e:e.title),e&&e.message?g(e):null]);return t=typeof t=="function"?t:e.callback,s.prompt({...e,title:i,message:f,callback:t})}async function h(e){return typeof e=="string"&&(e={title:e}),e=e||{title:"[[user:current-password]]",message:"[[user:emailUpdate.password-challenge]]"},await new Promise(t=>{m({...e,inputType:"password",required:!0,value:"",callback:t})})}function g(e){const t=e&&e.message?e.message:e;return t instanceof jQuery?t:o.translate(t||"")}async function y(e){if(!Object.keys(e||{}).length)return;const t=Object.values(e);return await Promise.all(t.map(async i=>({...i,label:await o.translateKey(i.label)})))}},68636(d,u,a){var s;s=(function(){function r(){this._store={},this._keys=[]}r.prototype.isMock=!0,r.prototype.setItem=function(n,c){n=String(n),this._keys.indexOf(n)===-1&&this._keys.push(n),this._store[n]=c},r.prototype.getItem=function(n){return n=String(n),this._keys.indexOf(n)===-1?null:this._store[n]},r.prototype.removeItem=function(n){n=String(n),this._keys=this._keys.filter(function(c){return c!==n}),this._store[n]=null},r.prototype.clear=function(){this._keys=[],this._store={}},r.prototype.key=function(n){return n=parseInt(n,10)||0,this._keys[n]},Object.defineProperty&&Object.defineProperty(r.prototype,"length",{get:function(){return this._keys.length}});let o;const l=Date.now().toString();try{if(o=window.localStorage,o.setItem(l,l),o.getItem(l)!==l)throw Error("localStorage behaved unexpectedly");return o.removeItem(l),o}catch(n){console.warn(n),console.warn("localStorage failed, falling back on sessionStorage");try{if(o=window.sessionStorage,o.setItem(l,l),o.getItem(l)!==l)throw Error("sessionStorage behaved unexpectedly");return o.removeItem(l),o}catch(c){return console.warn(c),console.warn("sessionStorage failed, falling back on memory storage"),new r}}}).call(u,a,u,d),s!==void 0&&(d.exports=s)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.