kollapsminoriteten/wp-content/plugins/jetpack/_inc/build/activation-modal.js

3 lines
70 KiB
JavaScript
Raw Normal View History

2023-05-23 23:18:12 +02:00
/*! For license information please see activation-modal.js.LICENSE.txt */
2023-12-07 09:44:11 +01:00
(()=>{var e={61074:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(69307);const o=(0,r.forwardRef)((function({icon:e,size:t=24,...n},o){return(0,r.cloneElement)(e,{width:t,height:t,...n,ref:o})}))},15381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),o=n(70444);const s=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}))},65235:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var s=typeof n;if("string"===s||"number"===s)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===s){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},57692:(e,t,n)=>{"use strict";var r=n(93801),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return r.isMemo(e)?i:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=i;var u=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var i=l(n);p&&(i=i.concat(p(n)));for(var a=c(t),g=c(n),m=0;m<i.length;++m){var y=i[m];if(!(s[y]||r&&r[y]||g&&g[y]||a&&a[y])){var E=d(n,y);try{u(t,y,E)}catch(e){}}}}return t}},86508:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={error:"TcCZnGE6mad8Dvz9pCZi",button:"_mn6o2Dtm5pfFWc8_A1K"}},62103:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={button:"zI5tJ_qhWE6Oe6Lk75GY","is-icon-button":"tuBt2DLqimiImoqVzPqo",small:"Na39I683LAaSA99REg14",normal:"ipS7tKy9GntCS4R3vekF",icon:"paGLQwtPEaJmtArCcmyK",regular:"lZAo6_oGfclXOO9CC6Rd","full-width":"xJDOiJxTt0R_wSl8Ipz_",loading:"q_tVWqMjl39RcY6WtQA6","external-icon":"CDuBjJp_8jxzx5j6Nept"}},67660:()=>{},85837:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={reset:"WQVtrU6q0L1Igcj7wCrQ","headline-medium":"UujoBFTnQNY2cWU2SIsH","headline-small":"TeGO5V_thHw5lDAm1_2M","headline-small-regular":"WolQzb2MsSgiNmLtc7_j","title-medium":"hUB0JT8p1T2Hw28N6qC8","title-medium-semi-bold":"gKZWDv5chz3_O3Syp74H","title-small":"zY2No8Ga4b8shbOQGhnv",body:"tIj0D1t8Cc892ikmgFPZ","body-small":"KdcN0BnOaVeVhyLRKqhS","body-extra-small":"dso3Rh3tl3Xv1GumBktz","body-extra-small-bold":"mQ1UlbN9u4Mg9byO8m7v",label:"PItlW5vRExLnTj4a8eLE","m-0":"TwRpPlktzxhmFVeua7P5","mx-0":"zVfqx7gyb3o9mxfGynn1","my-0":"iSHVzNiB9iVleGljaQxy","mt-0":"xqDIp6cNVr_E6RXaiPyD","mr-0":"S8EwaXk1kyPizt6x4WH2","mb-0":"ODX5Vr1TARoLFkDDFooD","ml-0":"cphJ8dCpfimnky7P2FHg","m-1":"PFgIhNxIyiSuNvQjAIYj","mx-1":"M2jKmUzDxvJjjVEPU3zn","my-1":"io15gAh8tMTNbSEfwJKk","mt-1":"rcTN5uw9xIEeMEGL3Xi_","mr-1":"CQSkybjq2TcRM1Xo9COV","mb-1":"hfqOWgq6_MEGdFE82eOY","ml-1":"I8MxZQYTbuu595yfesWA","m-2":"kQkc6rmdpvLKPkyoJtVQ","mx-2":"j6vFPxWuu4Jan2ldoxpp","my-2":"hqr39dC4H_AbactPAkCG","mt-2":"c3dQnMi16C6J6Ecy4283","mr-2":"YNZmHOuRo6hU7zzKfPdP","mb-2":"Db8lbak1_wunpPk8NwKU","ml-2":"ftsYE5J9hLzquQ0tA5dY","m-3":"Det4MHzLUW7EeDnafPzq","mx-3":"h_8EEAztC29Vve1datb5","my-3":"YXIXJ0h1k47u6hzK8KcM","mt-3":"soADBBkcIKCBXzCTuV9_","mr-3":"zSX59ziEaEWGjnpZa4uV","mb-3":"yrVTnq_WBMbejg89c2ZQ","ml-3":"UKtHPJnI2cXBWtPDm5hM","m-4":"guexok_Tqd5Tf52hRlbT","mx-4":"oS1E2KfTBZkJ3F0tN7T6","my-4":"DN1OhhXi6AoBgEdDSbGd","mt-4":"ot2kkMcYHv53h
__("By clicking the <strong>%s</strong> button, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>share details</shareDetailsLink> with WordPress.com.","jetpack"),e),{strong:React.createElement("strong",null),tosLink:React.createElement(p,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(p,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),p=({slug:e,children:t})=>React.createElement("a",{className:"terms-of-service__link",href:(0,a.Z)(e),rel:"noopener noreferrer",target:"_blank"},t),d=({className:e,multipleButtons:t,agreeButtonLabel:n})=>React.createElement(c.ZP,{className:i()(e,"terms-of-service")},t?React.createElement(u,null):React.createElement(l,{agreeButtonLabel:n}))},66017:(e,t,n)=>{"use strict";n.d(t,{h:()=>r,s:()=>o});const r={"headline-medium":"h1","headline-small":"h2","headline-small-regular":"h2","title-medium":"h3","title-medium-semi-bold":"h3","title-small":"h4",body:"p","body-small":"p","body-extra-small":"p","body-extra-small-bold":"p",label:"p"},o=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},45106:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d});var r=n(82674),o=n.n(r),s=n(65235),i=n.n(s),a=n(99196),c=n.n(a),u=n(66017),l=n(85837);const p=(0,a.forwardRef)((({variant:e="body",children:t,component:n,className:r,...s},p)=>{const d=n||u.h[e]||"span",f=(0,a.useMemo)((()=>u.s.reduce(((e,t)=>(void 0!==s[t]&&(e+=l.Z[`${t}-${s[t]}`]+" ",delete s[t]),e)),"")),[s]);return s.ref=p,c().createElement(d,o()({className:i()(l.Z.reset,l.Z[e],r,f)},s),t)}));p.displayName="Text";const d=p},6895:(e,t,n)=>{"use strict";function r(e,t={}){const n={};let r;if("undefined"!=typeof window&&(r=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);for(const e in t)n[e]=encodeURIComponent(t[e]);!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&jetpack_redirects.hasOwnProperty("currentSiteRawUrl")&&(n.site=jetpack_redirects.currentSiteRawUrl),r&&(n.calypso_env=r);return"https://jetpack.com/redirect/?"+Object.keys(n).map((e=>e+"="+n[e])).join("&")}n.d(t,{Z:()=>r})},61132:(e,t,n)=>{let r={};try{r=n(92787)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),r={missingConfig:!0}}const o=e=>r.hasOwnProperty(e);e.exports={jetpackConfigHas:o,jetpackConfigGet:e=>{if(!o(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return r[e]}}},9312:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(65736),o=n(15844),s=n.n(o),i=n(99196),a=n.n(i),c=n(31294),u=n(71624);const __=r.__,l=({title:e,buttonLabel:t,apiRoot:n,apiNonce:r,registrationNonce:o,from:s,redirectUri:i,images:l,children:p,assetBaseUrl:d,autoTrigger:f,footer:h,skipUserConnection:g,logo:m})=>{const{handleRegisterSite:y,siteIsRegistering:E,userIsConnecting:v,registrationError:S,isOfflineMode:_}=(0,c.Z)({registrationNonce:o,redirectUri:i,apiRoot:n,apiNonce:r,autoTrigger:f,from:s,skipUserConnection:g}),C=Boolean(S),b=E||v,T=S?.response?.code;return a().createElement(u.Z,{title:e,images:l,assetBaseUrl:d,buttonLabel:t,handleButtonClick:y,displayButtonError:C,errorCode:T,buttonIsLoading:b,footer:h,isOfflineMode:_,logo:m},p)};l.propTypes={title:s().string,buttonLabel:s().string,apiRoot:s().string.isRequired,apiNonce:s().string.isRequired,registrationNonce:s().string.isRequired,from:s().string,redirectUri:s().string.isRequired,autoTrigger:s().bool,images:s().arrayOf(s().string),assetBaseUrl:s().string,skipUserConnection:s().bool,logo:s().element},l.defaultProps={title:__("Over 5 million WordPress sites are faster and more secure","jetpack"),buttonLabel:__("Set up Jetpack","jetpack"),images:[],redirectUri:null,autoTrigger:!1,skipUserConnection:!1};const p=l},71624:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(6895),o=n(37325),s=n(67121),i=n(69307),a=n(65736),c=n(15844),u=n.n(c),l=n(99196),p=n.n(l),d=n(18524);n(54590);co