PageSourceSearch

https://mucem.org/_nuxt/CUd2oWW1.js

js mucem.org collected 2026-09-24 17:41:50 UTC 1,614 bytes, 1 lines download raw bytes

1import{v as p,k as w,G as S,o as a,e as r,b as e,S as h,a9 as c,h as u,i as s,t as d,A as i,P as $,am as B,R as C}from"./CnnHI4eV.js";import{u as q}from"./CpWmnYms.js";const M={key:0,class:"wp-protect-post__content-header"},V={class:"wp-protect-post__form"},z={class:"form__title"},E={for:"password"},N={key:0},R={key:1,class:"wp-protect-post__content-footer"},G={__name:"WpProtectPost",props:{data:{type:Object,required:!0},title:{type:String,required:!1},status:{type:[String,null],required:!1}},emits:["updateData"],setup(_,{emit:y}){const o=_,P=q(),k=p(()=>o.data&&"protected"in o.data?o.data.protected:!1),n=w(""),f=p(()=>o.status==="pending"),l=w(-1);S(()=>o.status,()=>l.value+=1);const m=p(()=>!f.value&&l.value>0&&l.value%2),g=y,b=()=>{P.setPassword(n.value),g("updateData")};return(t,v)=>(a(),r("div",null,[e(k)?(a(),r("div",{key:0,class:h(["wp-protect-post",{"is-loading":e(f)}])},[t.$slots["content-header"]?(a(),r("div",M,[c(t.$slots,"content-header")])):u("",!0),s("div",V,[s("h2",z,d(_.title||("__"in t?t.__:e(i))("Identifiez-vous :")),1),s("div",{class:h(["form__group",{"has-error":e(m)}])},[s("label",E,d(("__"in t?t.__:e(i))("Mot de passe"))+" * ",1),$(s("input",{id:"password","onUpdate:modelValue":v[0]||(v[0]=D=>C(n)?n.value=D:null),type:"password"},null,512),[[B,e(n)]]),e(m)?(a(),r("span",N,d(("__"in t?t.__:e(i))("Mot de passe incorrect")),1)):u("",!0)],2),s("button",{class:"form__button",onClick:b},d(("__"in t?t.__:e(i))("Connexion")),1)]),t.$slots["content-footer"]?(a(),r("div",R,[c(t.$slots,"content-footer")])):u("",!0)],2)):c(t.$slots,"default",{key:1})]))}};export{G as default};

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.