1"use strict";(globalThis.webpackChunkmater=globalThis.webpackChunkmater||[]).push([[16319],{89185(e,t,n){n.d(t,{$4:()=>l,B9:()=>g,FQ:()=>u,Lz:()=>y,OQ:()=>p,Xw:()=>C,YA:()=>h,Zd:()=>a,cv:()=>s,l6:()=>b,lW:()=>$,ov:()=>d,rM:()=>f,rp:()=>i,uk:()=>c,wf:()=>w});const o=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;let r=0;function s(e="_iub_csc_"){return r+=1,`${e}${r}`}function i(e){return Array.isArray(e)?e.map(e=>({value:e,uid:s()})):e}function a(e){return Array.isArray(e)&&e.every(e=>"object"==typeof e&&"uid"in e)?e.map(e=>"object"==typeof e&&"uid"in e&&"value"in e?e.value:e):e}const c=(e=1e3)=>new Promise(t=>{setTimeout(t,e)}),l=(e,t)=>0===t?100:Math.round(e/t*100);function d(e){return!!e&&("object"!=typeof e||Array.isArray(e)?!Array.isArray(e)||e.length>0:Object.keys(e).length>0)}function u(e,t,n,o){const r=((window.innerWidth||document.documentElement.clientWidth)-n)/2,s=((window.innerHeight||document.documentElement.clientHeight)-o)/2,i=window.open(e,t,`width=${n},height=${o},top=${s},left=${r},resizable=yes,scrollbars=yes,status=yes`);i&&i.focus()}function p(e,t,n=""){if(!e||"string"!=typeof e)return"";return`<a href="${e}" target="_blank"${n?` class="${n}"`:""}>${t}<span class="sr-only">${window.I18n.t("js.accessibility.new_tab")}</span></a>`}const m=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([disabled]):not([type="hidden"]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])','[contenteditable="true"]:not([tabindex^="-"])'].join(",");function h(e){if(!e)return[];return Array.from(e.querySelectorAll(m)).filter(e=>{const t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&null!==e.offsetParent})}function f(e){return`${window.appUrls?.appPrefix||""}${e}`}function w(e){return`${window.appUrls?.jsonApiPrefix||""}${e}`}function b(e){return f(`/${(window.I18n?.locale||"en").toLowerCase()}/flow/${e}`)}function y(e){e&&(window.location.href=b(e))}function g(e){return!!e&&o.test(e)}function $(e){const t=document.querySelector(e);if(!t)return;const n=t.querySelector("textarea"),o=document.createElement("button");o.setAttribute("data-label-default",window.I18n?.t("js.common.copy")||"Copy"),o.setAttribute("data-label-success",window.I18n?.t("js.common.copied")||"Copied"),t.appendChild(o),o.addEventListener("click",()=>{navigator.clipboard.writeText(n.value).then(()=>{o.classList.add("copied"),setTimeout(()=>{o.classList.remove("copied")},2e3)}).catch(()=>{console.error("Failed to copy to clipboard")})})}function C(e,t,n=null){const o=e?.dataset?.[t];if(!o)return n;try{return JSON.parse(o)}catch{return n}}},16319(e,t,n){n.d(t,{Ay:()=>l,nL:()=>r});var o=n(45553);const r="Server error",s=Object.freeze({GET:"get",PUT:"put",POST:"post",DELETE:"delete",PATCH:"patch"});function i(e,t=""){const n=[];return Object.entries(e).forEach(([e,o])=>{const r=t?`${t}[${e}]`:e;null===o||"object"!=typeof o||Array.isArray(o)?Array.isArray(o)?o.forEach(e=>n.push(`${encodeURIComponent(`${r}[]`)}=${encodeURIComponent(e)}`)):void 0!==o&&n.push(`${encodeURIComponent(r)}=${null!==o?encodeURIComponent(o):""}`):n.push(i(o,r))}),n.join("&")}function a(e,{checkResponseRedirect:t=!1,checkResponseFacebox:n=!1,returningUrl:o}){let r=!1;const s=e?.body?.action||{},i=s.redirect_to||e?.body?.redirect_url;return t&&i?(r=!0,window.location=i):n&&s.facebox&&(r=!0,window.Modal.lightbox(`${s.facebox}&returning_url=${o}`,{size:"large"})),r}const c=async function({url:e,data:t,method:n=s.GET,checkResponseRedirect:c=!0,checkResponseFacebox:l=!0,shouldShowAlert:d=!0,returningUrl:u,customErrorMessage:p,customSuccessMessage:m}){let h;try{const r=n===s.GET,p=r&&t?`${e}?${i(t)}`:e,f={method:n.toUpperCase(),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json","X-CSRF-Token":document.querySelector('meta[name="csrf-token"]')?.getAttribute("content"),"X-Requested-With":"XMLHttpRequest"},...!r&&void 0!==t&&{body:JSON.stringify(t)}},w=await fetch(p,f),b=await w.text().catch(()=>null);let y;try{y=JSON.parse(b)}catch{y=b}if(h={status:w.status,statusText:w.statusText,body:y},!w.ok)throw h;if(200===h.status&&!1===h.body?.success&&(()=>{throw h})(),d){const e=m||h.body?.message;(0,o.S7)("success",e,{timerHide:5e3})}
1return a(h,{checkResponseRedirect:c,checkResponseFacebox:l,returningUrl:u}),h}catch(f){const e=f.body?.message||(200===f.status?f.body?.errors?.[0]?.title:f.statusText),t=p||e||r;if(!a(f,{checkResponseRedirect:c,checkResponseFacebox:l,returningUrl:u}))throw d&&(0,o.S7)("error",t,{timerHide:5e3}),f;return null}};c.method=s;const l=Object.freeze(c)},45553(e,t,n){n.d(t,{JX:()=>u,EL:()=>d,V3:()=>p,S7:()=>c});var o=n(85471),r=n(89185);const s={name:"ConfirmationModal",components:{BModal:n(11728).i},props:{message:{type:String,default:""},htmlMessage:{type:String,default:""},modalOptions:{type:Object,required:!0},withPassword:{type:Boolean,default:!1},onConfirm:{type:Function,required:!0},onCancel:{type:Function,required:!0},onClosed:{type:Function,required:!0},checkPassword:{type:Function,default:null}},mounted(){this.$refs.confirmationModal.show()},methods:{async confirm(e){if(e.preventDefault(),this.withPassword){const e=this.$refs.confirmationPasswordInput.value;if(!(!!e&&await this.checkPassword(e)))return}this.onConfirm(),this.cleanup()}
1,cancel(){this.onCancel(),this.cleanup()},closed(){this.onClosed(),this.cleanup()},cleanup(){this.$destroy(),this.$el.remove()}}};const i=(0,n(14486).A)(s,function(){var e=this,t=e._self._c;return t("b-modal",e._b({ref:"confirmationModal",on:{ok:e.confirm,cancel:e.cancel,hidden:e.closed}},"b-modal",e.modalOptions,!1),[e.htmlMessage?t("div",{domProps:{innerHTML:e._s(e.htmlMessage)}}):[e._v(e._s(e.message))],e._v(" "),e.withPassword?t("p",[t("input",{ref:"confirmationPasswordInput",staticClass:"form-control",attrs:{type:"password",required:""}})]):e._e()],2)},[],!1,null,null,null).exports,a=Object.freeze({title:null,okTitle:"Ok",okVariant:"danger",cancelTitle:"Cancel",cancelVariant:"dark-gray",headerClass:"border-0",footerClass:"p-2",hideHeaderClose:!0,centered:!0});function c(e,t,n={}){t&&window.AlertMessage.show({type:e,message:t,...n})}async function l(e){const{default:t}=await Promise.all([n.e(89706),n.e(66371)]).then(n.bind(n,66371));return new Promise(n=>{globalThis.communicator.request({url:(0,r.rM)("/validate_pwd"),data:{password:e},dataType:"json",type:"POST",success(e){e.valid||c("error",t.t("si.confirms.delete_website.invalid_password"),{timerHide:5e3}),n(e.valid)},error(){c("error",t.t("si.errors.something_went_wrong"),{timerHide:5e3}),n(!1)}}).perform()})}function d(e,{html:t=!1,...n}={},r={}){const s={...a,...n};let c="";return"string"==typeof e&&/\n/g.test(e)?c=e.split("\n").filter(e=>!!e).map(e=>`<p>${e}</p>`).join(""):"string"==typeof e&&t&&(c=e),new Promise(t=>{const n=document.createElement("div");document.body.appendChild(n),new o.Ay({render:n=>n(i,{props:{message:c?"":e,htmlMessage:c,modalOptions:s,withPassword:!!r.withPassword,onConfirm:()=>t(!0),onCancel:()=>t(!1),onClosed:()=>t(null),checkPassword:l}})}).$mount(n)})}const u=({meta:e,params:t})=>{e?.enableAnchor&&setTimeout(()=>(e=>{const t=document.getElementById(e);t&&(t.scrollIntoView({behavior:"instant"}),setTimeout(()=>{t.classList.add("animation--blink"),requestAnimationFrame(()=>t.classList.add("animation--blink"))},500))})(t?.anchor))},p=e=>{const t=(0,r.rM)(`/${I18n.locale.toLowerCase()}/${e}`);window.open(t,"_blank")}}}]);
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.