PageSourceSearch

https://katemichaelsonwriter.com/wp-content/mu-plugins/jetpack-mu-…?minify=false&ver=825b71a55d31f53ce9f5

js katemichaelsonwriter.com collected 2026-10-10 01:30:18 UTC 9,366 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_automattic_jetpack_comments=self.webpackChunk_automattic_jetpack_comments||[]).push([[42],{9340(e,t,a){a.d(t,{Dialog:()=>N});var n=a(3022),s=a(2446),o=a(8511),l=a(5433),i=a(9140),c=a(8181),r=a(9504).h,m=a(9504).FK;const u=({emailTaken:e,introId:t,logIn:a})=>{const{details:n,rememberDetails:o}=(0,s.NT)(i.X),{strings:l,requireNameEmail:c}=JetpackComments,u=[{field:"author",type:"text",autoComplete:"name",label:l.name,describedBy:t},{field:"email",type:"email",autoComplete:"email",label:l.email,describedBy:"email-notes"},{field:"url",type:"text",autoComplete:"url",label:l.website,maxLength:200}];return r(m,null,u.map(({field:t,...s})=>r("div",{key:t,className:"jetpack-comments__field"},r("label",{htmlFor:t,className:"jetpack-comments__label"},s.label),r("input",{id:t,name:t,type:s.type,autoComplete:s.autoComplete,maxLength:s.maxLength,spellcheck:"url"!==t&&void 0,autoCorrect:"url"===t?"off":void 0,className:"jetpack-comments__input","aria-describedby":s.describedBy,"aria-invalid":"email"===t&&e?"true":void 0,required:c&&"url"!==t,value:n.value[t],onInput:e=>{n.value={...n.value,[t]:e.currentTarget.value}}}),"email"===t&&r("span",{id:"email-notes",className:"jetpack-comments__help"},l.emailHint),"email"===t&&e&&r(m,null,r("span",{className:"jetpack-comments__notice",role:"alert"},l.emailHasAccount),a))),r("label",{htmlFor:"remember",className:"jetpack-comments__toggle"},r("input",{id:"remember",type:"checkbox",role:"switch",checked:o.value,onChange:e=>o.value=e.currentTarget.checked}),l.saveDetails))};var p=a(9504).h;const d=({onClose:e})=>{const{site:t,strings:a}=JetpackComments;return p("div",{className:"jetpack-comments__dialog-header"},t.iconUrl&&p("img",{className:"jetpack-comments__site-icon",src:t.iconUrl,alt:"",width:"36",height:"36"}),p("span",{id:"title",className:"jetpack-comments__dialog-title"},t.name),p("button",{type:"button",className:"jetpack-comments__dialog-close",onClick:e},p("span",{className:"jetpack-comments__visually-hidden"},a.close),p("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",focusable:"false"},p("path",{d:"M5 19L19 5M19 19L5 5",vectorEffect:"non-scaling-stroke"}))))};var k=a(1069),_=a(9504).h,b=a(9504).FK;const g=({status:e,onLogIn:t,onCancel:a})=>{const{strings:n}=JetpackComments;return _(b,null,"pending"===e?_("span",{className:"jetpack-comments__signing-in"},_("span",{className:"jetpack-comments__spinner","aria-hidden":"true"}),_("button",{type:"button",className:"jetpack-comments__button is-link",onClick:a},n.cancel)):_("button",{type:"button",className:"jetpack-comments__button is-primary",onClick:t},_("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",focusable:"false"},_("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.2308 9.99981C19.2308 4.91366 15.0862 0.769043 10.0001 0.769043C4.90467 0.769043 0.769287 4.91366 0.769287 9.99981C0.769287 15.0952 4.90467 19.2306 10.0001 19.2306C15.0862 19.2306 19.2308 15.0952 19.2308 9.99981ZM7.95083 14.9567L4.80313 6.51058C5.31083 6.49212 5.88313 6.43674 5.88313 6.43674C6.34467 6.38135 6.28929 5.39366 5.82775 5.41212C5.82775 5.41212 4.48929 5.51366 3.64006 5.51366C3.4739 5.51366 3.29852 5.51366 3.10467 5.50443C4.57236 3.25212 7.11083 1.79366 10.0001 1.79366C12.1508 1.79366 14.1077 2.59674 15.5847 3.95366C14.957 3.85212 14.0616 4.31366 14.0616 5.41212C14.0616 6.01026 14.3801 6.52347 14.7382 7.10048C14.7891 7.18242 14.8407 7.26565 14.8924 7.35058C15.2154 7.91366 15.4001 8.60597 15.4001 9.62135C15.4001 10.9967 14.1077 14.2367 14.1077 14.2367L11.3108 6.51058C11.8093 6.49212 12.0677 6.35366 12.0677 6.35366C12.5293 6.3075 12.4739 5.19981 12.0124 5.2275C12.0124 5.2275 10.6831 5.33827 9.81544 5.33827C9.01236 5.33827 7.66467 5.2275 7.66467 5.2275C7.20313 5.19981 7.14775 6.3352 7.60929 6.35366L8.45852 6.4275L9.62159 9.5752L7.95083 14.9567ZM16.8602 9.94619L16.8401 9.99981C16.1713 11.7605 15.5075 13.5364 14.8451 15.3087L14.845 15.309L14.8448 15.3093C14.6113 15.9341 14.378 16.5583 14.1447 17.1814C16.6093 15.7598 18.2062 13.0367 18.2062 9.99981C18.2062 8.57827 17.8831 7.2675 17.237 6.07674C17.5147 8.20894 17.0881 9.34123 16.8602 9.94617L16.8602 9.94619ZM6.40006 17.4675C3.64929 16.1383 1.7939 13.2583 1.7939 9.99981C1.7939 8.79981 2.00621 7.71058 2.45852 6.68597L3.28801 8.95912C4.32263 11.7949 5.35847 14.6341 6.40006 17.4675ZM12.5016 17.7906L10.1201 11.3475C9.68129 12.6419 9.23927 13.9362 8.79593 15.2344C8.4931 16.1212 8.18965 17.0097 7.88621 17.9014C8.55083 18.1044 9.27083 18.206 10.0001 18.206C10.877 18.206 11.7077 18.0583 12.5016 17.7906Z",fill:"currentColor"})),n.logInWithWordPress),("failed"===e||"rate_limited"===e)&&_("span",{className:"jetpack-comments__notice",role:"status"},"rate_limited"===e?n.signInRateLimited:n.signInFailed))};var v=a(9504).h,C=a(9504).FK;const h=({subscribed:e,onChange:t})=>{const{formSettings:a}=(0,s.NT)(i.X);return v(C,null,a.subscriptions.map(({name:a,label:n})=>v("label",{key:a,htmlFor:a,className:"jetpack-comments__toggle"},v("input",{id:a,type:"checkbox",role:"switch",checked:e[a],onChange:n=>t({...e,[a]:n.currentTarget.checked})}),n)))};var f=a(9504).h,y=a(9504).FK;const j=e=>/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(e),N=({internals:e})=>{const{formSettings:t,details:a,isEmptyComment:r,commentParent:m,commenter:p,rememberDetails:_,isDialogOpen:b,isPosting:v,forget:C}=(0,s.NT)(i.X),{strings:N,mustLogIn:w,requireNameEmail:L,identity:J}=JetpackComments,I=(0,s.li)(null),F=(0,s.li)(null),S=(0,s.li)(null),[T,x]=(0,s.J0)("idle"),[q,D]=(0,s.J0)(!JetpackComments.styleUrl),[E,M]=(0,s.J0)(!1),[B,Z]=(0,s.J0)(!1),A=(0,s.li)(null),K=J.canSignIn?"choose":"guest",[U,W]=(0,s.J0)(K),P=()=>Object.fromEntries(t.subscriptions.map(({name:e,checked:t})=>[e,t])),[V,X]=(0,s.J0)(P),[H,O]=(0,s.J0)(null),G=!r.value,R="guest"===U,$=t.subscriptions.length>0&&b.value&&("guest"===U||"subscribe"===U),z=t.subscriptions.filter(({name:e})=>V[e]).map(({name:e})=>e),Q=a.value.email,Y=async e=>{A.current?.email!==e&&(A.current={email:e,taken:(0,o.ik)(e)});const{taken:t}=A.current,a=await t;return null===a&&A.current?.taken===t&&(A.current=null),!0===a};(0,s.vJ)(()=>{const t=I.current;q&&(b.value?t?.open||(S.current=t.ownerDocument.activeElement,t.showModal(),(0,c.y)("jetpack_comments_dialog_open",{step:U,posting:G})):(t?.open&&(t.close(),S.current?.isConnected||e.form?.querySelector(".jetpack-comments__identity a:not([tabindex])")?.focus()),W(K),X(H??P())))},[b.value,q]),(0,s.vJ)(()=>{"choose"!==U&&I.current?.querySelector("input")?.focus()},[U]),(0,s.vJ)(()=>
1{if(M(!1),!R||!j(Q))return;let e=!0;const t=window.setTimeout(async()=>{const t=await Y(Q);e&&M(t)},500);return()=>{e=!1,window.clearTimeout(t)}},[Q,R]),(0,s.vJ)(()=>{E&&(0,c.y)("jetpack_comments_email_has_account")},[E]);const ee=()=>{b.value=!1},te=(e,t=!1)=>{if(t)return new FormData;const n=(0,k.o7)({commenter:p,details:a});return($||H)&&z.forEach(e=>n.append(e,"subscribe")),e&&n.append("wp-comment-cookies-consent","yes"),n};(0,s.vJ)(()=>e.setFormValue(te(!1)));const ae=f(g,{status:T,onLogIn:()=>(async()=>{x("pending");const a=await(0,o.Jv)(e=>{F.current=e});F.current=null;let n="cancelled";if("error"in a?n="error":"code"in a&&(n="success"),(0,c.y)("jetpack_comments_sign_in",{result:n,error:"error"in a?a.error:"",posting:G}),"error"in a)return x("rate_limited"===a.error?"rate_limited":"failed"),void(b.value=!0);x("idle"),"code"in a&&(C(),p.value={kind:"wordpress",name:a.name,avatar:a.avatar,code:a.code},r.peek()?b.value=!1:t.subscriptions.length?W("subscribe"):(b.value=!1,window.setTimeout(()=>e.form?.requestSubmit())))})(),onCancel:()=>F.current?.close()}),ne=$&&f(h,{subscribed:V,onChange:X}),se={choose:f(y,null,w&&f("p",{className:"jetpack-comments__dialog-intro"},N.mustLogIn),f("div",{className:"jetpack-comments__sign-in"},ae,!w&&f("button",{type:"button",className:"jetpack-comments__button is-secondary",onClick:()=>{W("guest"),(0,c.y)("jetpack_comments_guest_choose",{posting:G})}},N.continueAsGuest),G&&!w&&!L&&f("button",{type:"submit",name:"anonymous",className:"jetpack-comments__button is-link","aria-disabled":v.value||void 0},N.postWithoutSaving))),guest:f(y,null,f("p",{id:"intro",className:"jetpack-comments__dialog-intro"},N.intro),f(u,{emailTaken:E,introId:"intro",logIn:J.canSignIn&&ae}),ne),subscribe:ne};return f(y,null,f("link",{rel:"stylesheet",href:JetpackComments.styleUrl,onLoad:()=>D(!0),onError:()=>D(!0)}),f("dialog",{ref:I,className:"jetpack-comments__dialog","aria-labelledby":"title",onClose:ee},f("form",{onSubmit:async t=>{if(t.preventDefault(),v.peek()||B)return;const n="anonymous"===t.submitter?.getAttribute("name");if(R){Z(!0);let e="",t=!1;for(;e!==a.peek().email;)e=a.peek().email,t=j(e)&&await Y(e);if(Z(!1),!b.peek())return;if(t)return M(!0),void I.current?.querySelector("#email")?.focus()}if(!G)return(0,l.a)(_.peek()?a.value:null),$&&O(V),b.value=!1,void(p.value=""!==a.value.author&&""!==a.value.email?{kind:"guest"}:{kind:"unknown"});e.setFormValue(te(R&&_.peek(),n)),e.form?.requestSubmit(),e.setFormValue(te(!1))}},f(d,{onClose:ee}),se[U],"choose"!==U&&f("div",{className:"jetpack-comments__dialog-actions"},f("button",{type:"submit",className:(0,n.A)("jetpack-comments__button is-primary",{"is-busy":v.value||B}),disabled:E,"aria-disabled":v.value||B||void 0},!G&&N.save,G&&(m.value?N.reply:t.submit.label))))))}}}]);

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.