PageSourceSearch

https://app.wonder-wardrobe.com/_next/static/chunks/pages/[url_nam…/mailerlite-3c85043b23eb6f9c.js

js wonder-wardrobe.com collected 2026-09-29 00:02:39 UTC 5,515 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4272],{16184:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[url_name]/integrations/mailerlite",function(){return r(82307)}])},22427:(e,t,r)=>{"use strict";r.d(t,{c:()=>u});var i="https://js.stripe.com/v3",s=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,n=function(){for(var e=document.querySelectorAll('script[src^="'.concat(i,'"]')),t=0;t<e.length;t++){var r=e[t];if(s.test(r.src))return r}return null},l=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(i).concat(t);var s=document.head||document.body;if(!s)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return s.appendChild(r),r},a=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.32.0",startTime:t})},o=null,c=function(e,t,r){if(null===e)return null;var i=e.apply(void 0,t);return a(i,r),i},d=Promise.resolve().then(function(){return null!==o?o:o=new Promise(function(e,t){if("u"<typeof window)return void e(null);if(window.Stripe,window.Stripe)return void e(window.Stripe);try{var r=n();r||(r=l(null)),r.addEventListener("load",function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))}),r.addEventListener("error",function(){t(Error("Failed to load Stripe.js"))})}catch(e){t(e);return}})}),m=!1;d.catch(function(e){m||console.warn(e)});var u=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];m=!0;var i=Date.now();return d.then(function(e){return c(e,t,i)})}},41946:(e,t,r)=>{var i=r(71266);e.exports=function(e,t){return i(e,t)}},82307:(e,t,r)=>{"use strict";r.r(t),r.d(t,{MailerLite:()=>v,default:()=>j});var i=r(37876),s=r(24852),n=r(99218),l=r(78239),a=r(48230),o=r.n(a),c=r(7020),d=r(14232),m=r(56011),u=r(77281),h=r(32812),p=r(73193),x=r(66637);r(62325);var g=r(37401),f=r(81137),w=r(88769);let v=()=>{let{academy:e,isChatVisible:t}=(0,d.useContext)(n.y2),{setAPIError:r}=(0,d.useContext)(f.C),{l:a}=d.useContext(s.x),[v,j]=(0,d.useState)(),[b,N]=(0,d.useState)(),[_,y]=(0,d.useState)(),[S,E]=(0,d.useState)(),[k,C]=(0,d.useState)([]),[A,L]=(0,d.useState)(),[P,F]=(0,d.useState)({});(0,d.useEffect)(()=>{e&&M()},[e]);let M=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t&&E(!0),(0,c.Yle)(e,r).then(e=>{E(),e.error||(L(e),j(e.mailerlite_api_key||""))}),(0,c.duU)(e).then(e=>{e.error||(C(e),F(e.reduce((e,t)=>{var r;return e[t.id]=(null==(r=t.email_lists)?void 0:r.mailerlite)||{},e},{})))})},D=async()=>{if(_)return;let t=(0,g.validateAccessStateLists)(k,P,a);if(t)return void N(t);let i=(0,g.getAccessEmailListChanges)(k,P,"mailerlite");y(!0);let s=await (0,c.q7Q)(e,r,{mailerlite_api_key:v,access_email_lists:i});(y(!1),s.error)?N(a.integrationConnectionError):(L(s),N(),C(k.map(e=>({...e,email_lists:{...e.email_lists,mailerlite:P[e.id]}}))))};return(0,i.jsxs)("div",{children:[null,(0,i.jsx)("div",{className:`${t?"max-w-screen-lg":"max-w-screen-xl 2xl:max-w-screen-lg"} mx-auto`,children:(0,i.jsxs)(w.A,{styles:"whitespace-nowrap sm:mx-0 mx-4",children:[b?(0,i.jsxs)("p",{className:"bg-red text-white ml-2 pill flex items-center",children:[(0,i.jsx)(u.Qly,{className:"mr-1"}),b]}):(0,i.jsxs)(o(),{href:(0,x.Se)(null==e?void 0:e.url_name)+"/integrations",className:"btn bg-on-primary text-primary flex items-center",children:[(0,i.jsx)(p.kRp,{className:"mr-1"}),a.integrations]}),(0,i.jsxs)("div",{className:"ml-auto flex flex-row",children:[(0,i.jsx)("button",{onClick:()=>{N(),M(!0)},disabled:_||S||!e,className:"btn bg-on-primary text-primary ml-2",children:S?(0,i.jsx)(l.A,{className:"fill-primary",width:20,height:20}):(0,i.jsx)(m.xto,{})}),(0,i.jsx)("button",{onClick:D,disabled:_||!v||S||!e,className:"btn bg-green text-white ml-2",children:_?(0,i.jsx)(l.A,{className:"fill-white",width:20,height:20}):(0,i.jsxs)("div",{className:"items-center flex",children:[(0,i.jsx)(h.iBF,{className:"inline-block mr-1"}),a.save]})})]})]})}),(0,i.jsxs)("div",{className:`${t?"max-w-screen-lg":"max-w-screen-xl 2xl:max-w-screen-lg"} mx-auto px-4 mt-6`,children:[(0,i.jsxs)("div",{className:"flex items-center mb-6",children:[(0,i.jsx)("img",{src:"/assets/integration-mailerlite-logo.jpg",className:"shadow shrink-0 h-20 w-20 rounded bg-light-shade object-cover",alt:"Integration logo"}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-lg font-semibold ml-3",children:"MailerLite"}),(0,i.jsx)("p",{className:"ml-3",children:a.integrationEmailMarketingDescription})]})]}),(0,i.jsxs)("span",{children:[a.integrationApiKeyDescription,(0,i.jsxs)("a",{className:"underline font-semibold",target:"_blank",href:"https://www.mailerlite.com/help/where-to-find-the-mailerlite-api-key-groupid-and-documentation",children:[a.thisPage,"."]})]}),(0,i.jsx)("p",{className:"mt-4 mb-1 font-semibold",children:"API key"}),(0,i.jsx)("input",{maxLength:1024,className:"input w-full",value:v,onCh
1ange:e=>{j(e.target.value)}}),(0,i.jsx)("p",{className:"text-lg font-semibold mt-8 mb-2 w-full border-t-light-shade border-t pt-6",children:a.listsForAccesses+" ("+k.length+")"}),k.length?null:(0,i.jsx)("p",{children:a.integrationMailNoAccesses}),A?k.map((e,t)=>(0,i.jsx)(g.ListSelector,{access:e,category:{name:e.name},listData:P[e.id],onEdit:t=>{F({...P,[e.id]:t})},lists:null==A?void 0:A.mailerlite_groups,integrationName:"MailerLite"},"list-"+t)):null]})]})},j=v}},e=>{e.O(0,[9897,2517,713,4938,8433,8230,1266,2800,8952,636,6593,8792],()=>e(e.s=16184)),_N_E=e.O()}]);

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.