Connie Britton is dripping wet and thinks it’s hilarious. “The rain had cleared up when I left my house. Apparently it hasn’t!” she laughs as giant drops cascade from her oversized blue baseball cap and lightweight sweater, which is adorned with cheery multicolored butterflies. Britton has taken a break from work on Fox’s just-renewedRyan Murphy–produced drama 9-1-1 to chat over lunch at Café Gratitude in L.A.’s quaint Larchmont neighborhood, and it doesn’t take long to see how easily the hippie-dippie vegan joint melds with her state of mind as she reflects on her most eclectic year yet as an actor. In between bites of (cashew) cream of broccoli soup, the Maryland-and-Virginia-raised Britton, 50, offers a frank and often self-deprecating appraisal of her steady rise to fame, the “paralyzing” career moments that led to her biggest risks (hello, American Horror Story’s Rubber Man!), what she’d want out of an onscreen reunion with her Friday Night Lights co-star Kyle Chandler, and why now is most definitely not a time for cynicism in America.
It’s been a year since the Sundance premiere of Beatriz at Dinner, a movie I think kicked off the most interesting 12 months of your acting career, during which you were also cast in Showtime’s SMILF and Fox’s 9-1-1. Does it feel that way to you too? It’s funny, you never know how or if something’s going to hit. Beatriz has been a slow burn; people are still finding the movie. It’s actually similar to the first few years of Friday Night Lights. As for 9-1-1, what I’m doing definitely feels difficult, which is essentially acting opposite computer screens. [Laughs.] I’ve had moments where I think, This is not my strong suit or comfort zone. At the same time, boy is there a great challenge in bringing depth and life to the job of a 911 dispatcher.
I also see a lot of parallels between your Beatriz and SMILF characters. Both are wealthy housewives who could easily have been caricatures, but in your hands become empathetic and funny. SMILF creator Frankie Shaw told me that she cast you because she loved Friday Night Lights, but didn’t know you’d be, in her words, “a brilliant comic.” People have always asked, “Do you prefer comedy or drama?” And my answer is, “Both, at the same time.” At this point in my life, I’ve lost my parents, and at each of their funerals, I experienced the most laughter of my life alongside the most sadness. Humor is such a salve. So I love hearing that about my Beatriz and SMILF characters because that’s exactly what I hoped. I never wanted to judge them. I also thank my lucky stars for [Beatriz director] Miguel Arteta. We had this brilliantly funny script by Mike White and we wanted to run with the comedy, but Miguel insisted we keep it grounded. In the moment I thought, “That’s no fun!” But when I saw the film, I was so grateful. Had we reduced those characters to clichés, the film wouldn’t have worked. And the same with SMILF. It’s been a joy working with Frankie. She and her writers — and the female directors she hires — have facilitated a lot of unexpected comedy. She has such a clear voice. It’s the same reason I love working with Ryan Murphy: total authenticity.
9-1-1 marks your third partnership with Ryan, which started with season one of American Horror Story and then your turn as Faye Resnick in American Crime Story: The People v. O.J. Simpson. I’ve always wanted to know: How worried were you about going from Everywoman Tami Taylor to having sex with Rubber Man? [Laughs] That was definitely the time in my career when I felt the most paralyzed. I didn’t know what to do after Tami Taylor; I’d been so spoiled on that show in terms of realizing exactly what I wanted as an actor. And that was all because of [series creator] Peter Berg. Although, saying yes to Friday Night Lights felt like a huge mistake, like I had some kind of death wish. I put my trust in Peter, but … he was making a show about football. [Laughs.]
Peter had expressed remorse that your role in the Friday Night Lights movie had been so thin and he vowed to make this up to you in the series. Did that help assuage your fears? Yes, I knew he had good intentions, but I also knew how TV worked! Thankfully he hired [showrunner] Jason Katims, who felt it was very important to give the female characters strong voices. That’s why, despite the joy now of working on such a woman-centered show like SMILF, I never want to take away from the great men I’ve worked with. Peter Berg, God bless him, is a boy and with a capital B. He and others like Eddie Burns and Ryan Murphy are men willing to look in the face of their own constraints. They are committed to looking outside themselves and seeing the impact that women have. It’s important, particularly where we are now in our business, to acknowledge that. With all of the work being done in this movement, it has to also be a men’s movement. We can only be empowered when men are empowered to see us as equals.
And despite cynicism about celebrity, Hollywood can be a powerful platform for those who don’t have one. Yes. This is not a moment to be cynical! Yes, there’s a lot to feel that way about in our country right now. But I think after what we saw at the Globes, this is not a time to be cynical. I’ll get back to the Globes in a bit! But about doing Horror Story after Friday Night Lights, what Ryan told me was: “Look, this is an opportunity to do the exact opposite of what you’ve been doing for five years.” I needed to shake things up, but also worried, My God, what are people going to think when they see Tami Taylor having sex with a man in a rubber suit?[Laughs.]
Were your agents worried too? Not at all. I was the only one freaking out. [Laughs.] Really, the entire time we were shooting the pilot, I was convinced I’d made another horrible mistake.
Did your co-star Dylan McDermott have the same fears? Oh no, Dylan was in heaven.
Well, sure, he didn’t have to have sex with Rubber Man. [Laughs] Right, but after a while I made him put on the rubber suit. I’m like, “If I have to do this, it’s going to be you wearing that thing.” Of course he loved it: “Great! I get to go again?”
You mentioned Ed Burns earlier. It’s been 23 years since you broke out in his indie The Brothers McMullen. That production was famously low budget and ragtag. Did you know him before you were cast? No, I just was a struggling actor with no agent, teaching aerobics all over New York. Eddie had put an ad in Backstage magazine. I remember I walked to the audition from Penn Station with my little suitcase after visiting my sister in D.C. When I was done, they chased me out the door and cast me on the spot. I was like, “This movie must really be a piece of garbage.” [Laughs.] Then we shot it, which took eight months because we could only shoot when we had film stock. And I’ll never forget when Eddie told me he’d given the rough cut to Robert Redford. I was horrified that Robert Redford was going see me. Eddie was still a PA on Entertainment Tonight at the time, and he and Robert were in an elevator together. He handed him the tape. “Mr. Redford, I’m an independent filmmaker. Would you please take a look at my movie?” And that’s how we got into Sundance.
After it premiered in Park City, were you suddenly in demand? My life completely changed. I moved to L.A. and had agents knocking down my door.
So you had not opened that issue of Backstage … I know — it was the quintessential big break.
Were you plugged immediately into network pilot season or did you focus more on film? I did everything and met with everyone. [Producer] Jim Brooks had seen Brothers McMullen and loved it and called me into his office. Also, around that time, I picked up Eddie at the airport — he was coming to L.A. to do a talk show —and he told me, “People are offering me all these movies, and there’s this one really cool film, but I only want to do my own stuff. I think you’d be great in it.” So I read the script and the next day walked into my brand-new agent’s office and said, “I have two words for you: Jerry Maguire.” So he called Jim Brooks, who was attached to produce, and I auditioned for him and [writer/director] Cameron Crowe. Cameron was like, “You just showed us how this role needs to be played.” That began a six-month odyssey, during which they cast Tom Cruise and flew me to New York to read with him. Then there was talk about them casting a bigger name. Then more time passed and they said, “Okay, there’s now just one girl you’re going screen test against: Renée Zellweger.” Needless to say, it was one of the great heartbreaks of my life.
But Renée wasn’t a star then, either. Why do you think they chose her? I was so green and my background was mostly in theater. The only thing I’d done in front of a camera, besides an infomercial and one commercial, was Brothers McMullen. I’d also been super nervous. And it was a Tom Cruise movie. I can only imagine that my screen test was probably not great. [Laughs.]
You were cast in the ABC comedy Spin City not long after that. You had great mentors in writers Gary David Goldberg and Bill Lawrence, and of course Michael J. Fox. But was it tough to be a woman in that environment? Did you feel limited by the format? I learned so much from all of them and that type of comedy definitely flexed different muscles, but yes, the writing ultimately became a struggle for me. When Michael announced he was leaving, and they decided to continue the show with Charlie Sheen, I asked if I could move on [in 2000]. I didn’t feel I could go much further with that character.
You’d work steadily until Friday Night Lights premiered on NBC in 2006, which was a major turning point. But I know becoming a parent to your son, Yoby, whom you adopted from Ethiopia in 2011, was even more life-altering. How is he doing? It’s funny, his birthday is always around Sundance and this is the first year we won’t be there for it. He’s gotten so used to what he calls his “snowy birthday.” [Laughs.] He’s so funny, curious about everything and very social. He’s now in first grade and it’s his first year in school in L.A. since growing up in Nashville. But he’s thriving. I also feel like he doesn’t fully know what I do for a living yet.
What does he think you do? He knows that I go in front of a camera, but he hasn’t seen a lot of what I’ve done. He was friends with Nicole Kidman’s kids in Nashville and the first movie he ever saw was Paddington, so I had to explain to him, ‘That’s your friends’ mommy!” [Laughs.]
What is it like being a white mother raising a black child in America right now? He’s still young and hasn’t seemed concerned yet that his skin color is different from mine. Recently, though, his hair has been growing — he has the most gorgeous hair — and he’s been asking questions like, “I want my hair to be straight. Why can’t my hair be straight like other kids in my class?” But he’s very proud of being from Africa; we went back together on a trip. I want to keep instilling that pride and encouraging him to feel how cool it is. But his safety definitely concerns me the older he gets, and it enrages me to such a huge degree that I have to be worried for him. I have so much rage. I want to protect him. But I don’t want to be overbearing, and I don’t want him to be overprivileged. It’s a strange balance.
You told me in 2013, when you were still living and working in Nashville, that you hadn’t yet lost your privacy to fame. Has this changed? I will say this: I still find people for the most part to be very respectful and I’m grateful for that. But I did have an experience recently where somebody published my alleged real-estate holdings. It wasn’t approved or fact-checked. I was upset because I want to be involved in my community. I’m not someone who’s going live in a tower. I want to be close to the people around me. So for someone to feel it’s their right to disclose something about my personal life, it felt smutty, disrespectful, and irresponsible, especially where are we right now with the press. More than ever, we all have to be committed to a higher purpose.
Speaking of, I’ve noticed you’ve become increasingly political over the years. I particularly loved the USA Today op-ed you co-wrote in 2012 targeting Mitt Romney over his use of the Friday Night Lights slogan “Clear Eyes, Full Hearts, Can’t Lose” in his presidential campaign. Yeah, gosh. Those were the days!
And at the Golden Globes this year, you wore a sweater that said “Poverty Is Sexist,” which got a mixed reaction on social media. What was your goal with this messaging? I was thrilled when I heard about the Time’s Up campaign’s legal defense fund for women who’ve experienced harassment and sexism. I’d been longing for this movement to extend beyond Hollywood. I’ve spent a lot of time with the U.N. and ONE seeing firsthand how women around the world are constrained by poverty. My hope with the sweater was — in a fashion-appropriate way — to create more awareness. The response from my peers was overwhelmingly positive. What surprised and disappointed me were people dismissing the meaning of “Poverty Is Sexist” because of the price of the sweater. But I get it. It’s uncomfortable to look at the pain of poverty and ask, “Why must so many live this way? And what can we do about it?” My hope is that people see beyond the trappings of judgment and ask the tough questions with me.
Could you ever see yourself running for office? I’ve actually been asked to run for office. I feel it’d be the ultimate sacrifice. Back in college when I was deciding what I wanted to do, I had always loved acting …
And yet you majored in Chinese. [Laughs] Yes, I did. But acting was what I really loved. So it was always with the hope of having a bigger role in the world, a means to a bigger end. Politics is a dirty business, so for now I think I’d rather use characters and storytelling to try to make changes in the world.
I think both Friday Night Lights and Nashville showed Hollywood’s ability to attract a more inclusive fan base across political, geographic, and class demos — which is to say, viewers outside L.A. and New York — but only if the writing is good and the characters are compelling. Yes, exactly — the power of reflecting a culture back to itself in a way in which we aren’t judging. If we’re able to do that, it’s a great accomplishment.
Speaking of Tami Taylor, the world is in a constant state of inexorable glee at the prospect of you and Kyle Chandler working together again. Have you figured this out yet? We’d like to know all the details, please. Yes, we talk about it a lot. It would definitely be comedy, but I don’t want to say more than that for now. [Laughs.]
Finally, how amused are you — or annoyed — with people’s obsession with your hair? It’s such a thing that it was immortalized in an episode of Family Guy, where Peter Griffin nibbled on your locks while lying in bed with you. Yes, I did that episode for Seth [MacFarlane]! It mystifies me, honestly. I’m like, “Why my hair and not someone else’s?”
Have you ever wanted to pull a Keri Russell and chop it all off? No, no. I’ve had my hair shorter, but it’s so thick that when it is short, I can’t do a thing with it. It’s like a shrub. [Laughs.] Keeping it long is way easier. That’s the only true secret to my hair.
By submitting your email, you agree to our
Terms and Privacy Notice
and to receive email correspondence from us. This site is protected by reCAPTCHA and the Google
Privacy Policy and
Terms of Service apply.
or
Already a subscriber?
What is your email?
This email will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
Password must be at least 8 characters and contain:
Lower case letters (a-z)
Upper case letters (A-Z)
Numbers (0-9)
Special Characters (!@#$%^&*)
This password will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
You’re in!
As part of your account, you’ll receive occasional updates and offers from New York, which you can opt out of anytime.
or
Already a subscriber?
What is your email?
This email will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
Password must be at least 8 characters and contain:
Lower case letters (a-z)
Upper case letters (A-Z)
Numbers (0-9)
Special Characters (!@#$%^&*)
This password will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
You’re in!
As part of your account, you’ll receive occasional updates and offers from New York, which you can opt out of anytime.
Already a subscriber?
Already a subscriber?
`;
// integrate Sub(x) scripts and elements
if (hostname !== 'subs.nymag.com') { // do not integrate on this subdomain
document.head.appendChild(trackingScript);
document.body.insertAdjacentHTML('beforeend', subXAnimationElements);
}
There was an error processing the request. Please try again later."}).catch(e=>console.error("Error verifying email: ",e)))(r.querySelector(".content"),o.bannerCTAVerification)})):(l.remove(),s.remove()),o.dismissable||n.remove(),o.useAlertIcon||a.remove(),r.classList.add("show"),n.addEventListener("click",()=>{u(),r.classList.remove("show")})}else r.remove()}});
}, {"1":1,"6":6,"12":12,"35":35,"40":40}];
window.modules["global-nav.client"] = [function(require,module,exports){"use strict";const dom=require(4),auth=require(12),signInButton=dom.find(".user-signin"),signOutButton=dom.find(".user-signout"),globalNav=dom.find('[class^="global-nav"]'),body=dom.find("body"),dropdownItems=dom.findAll(".dropdown-wrap"),gtm=require(1),appendLandingPageParams=require(135),pageUri=require(124).getPageUri(),subscriptionPromoLinks=dom.findAll(".persist-params"),searchString=window.location.search||"";function closeDropdowns(e){let n=globalNav.querySelectorAll(".dropdown.open");dropdownItems.forEach(function(t){let o=t.querySelector(".dropdown");!n||t.contains(e.target)&&27!==e.keyCode||o.classList.remove("open")})}function gtmSendReport(e,n,t){let o={eventCategory:"ecommerce",eventAction:"componentClick",brand:e,dimension23:"global-nav",list:pageUri,pageZone:"header",variant:"nav-link"};"global-nav-link"===t&&(o.eventLabel=n.href),gtm.reportNow(o)}function updateElementTargetUrlsIfQueryStrings(e){if(searchString){const n=new URLSearchParams(searchString);let t=e.href;if(t.includes("?")){const o=t.split("?"),i=new URLSearchParams(o[1]);for(let e of n.entries())i.set(e[0],e[1]);t=`${o[0]}?${i.toString()}`,e.href=t}else e.href=`${t}?${n.toString()}`}}function init(e){const n=e.querySelectorAll(".to-landing-page");window.addEventListener("auth:init",()=>{signInButton.addEventListener("click",function(e){e.preventDefault(),auth.showEmbeddedLoginFlow("top navigation")}),signOutButton.addEventListener("click",function(e){e.preventDefault(),gtmSendReport("Sign Out",e.target,"user-info-link"),auth.logout()}),auth.isAuthenticated()&&e.classList.add("signed-in"),auth.isSubscriber()&&e.classList.add("subscribed"),e.querySelectorAll(".user-link").forEach(e=>{e.classList.add("active")}),subscriptionPromoLinks.forEach(e=>{updateElementTargetUrlsIfQueryStrings(e)}),appendLandingPageParams(n)})}dropdownItems.forEach(function(e){e.addEventListener("click",function(){e.querySelector(".dropdown").classList.toggle("open")})}),body.addEventListener("click",closeDropdowns),document.addEventListener("keydown",closeDropdowns),globalNav.addEventListener("click",function(e){let n=e.target;n.classList.contains("global-nav-track")&>mSendReport(n.text,n,"global-nav-link")}),module.exports=init;
}, {"1":1,"4":4,"12":12,"124":124,"135":135}];
window.modules["aaa-module-mounting.legacy"] = [function(require,module,exports){"use strict";const _pickBy=require(221),_each=require(406),Fingerprint2=require(408),DS=require(407),Eventify=require(246);function registerGlobals(){window.DS=DS,window.Eventify=Eventify,window.Fingerprint2=Fingerprint2,DS.value("Eventify",Eventify),DS.value("Fingerprint2",Fingerprint2),DS.value("$document",window.document),DS.value("$window",window)}function mountDollarSliceComponents(){DS.service("components",["$document","$module",function(e,n){var o=_pickBy(n.definitions,e=>e.providerStrategy===n.providers.controller),r=Object.keys(o);function t(e){return o=>{try{n.get(e,o)}catch(e){logMountError(o,e)}}}_each(r,n=>{var o=e.querySelectorAll('[data-uri*="/_components/'+n+'/"]'),r=e.querySelectorAll('[data-uri$="/_components/'+n+'"]');_each(o,t(n)),_each(r,t(n))}),this.components=r}]),DS.get("components")}function logMountError(e,n){const o=e.outerHTML.slice(0,e.outerHTML.indexOf(e.innerHTML));console.error("Error attaching controller to "+o,n)}registerGlobals(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{mountDollarSliceComponents()}):mountDollarSliceComponents();
}, {"221":221,"246":246,"406":406,"407":407,"408":408}];
window.modules["ads.legacy"] = [function(require,module,exports){"use strict";const _map=require(118),_forEach=require(107),_isString=require(268),_intersectionWith=require(409),_isEqual=require(274),_each=require(406),_debounce=require(182),_sortBy=require(205),page=require(124),visit=require(114);DS.service("adService",["Eventify","$cid","$document","$window",function(e,t,a,i){var o,n,s,r,d,c,u,l,g={},p=this,h=[],f=visit.getQueryParamsObject(["utm_campaign"]),m=document.querySelector('script[data-type="ad-a9"]'),b=[],w=!1,v=[],y=document.querySelector('script[data-name="ad-doubleverify"]');document.querySelector('script[data-name="concert-ads"]')||(i.NYM={},i.NYM.analytics={},i.NYM.analytics.adStartTime=i.performance.now(),i.googletag=i.googletag||{},i.googletag.cmd=i.googletag.cmd||[],u=i.googletag,(m||y)&&(i.googletag.cmd=i.googletag.cmd||[],i.googletag.cmd.push(function(){i.googletag.pubads().disableInitialLoad()})),m&&(l=i.setInterval(function(){void 0!==window.apstag&&void 0!==window.apstag.timeout&&(i.clearInterval(l),window.apstag.cleared=!0,l=null)},10),setTimeout(function(){l&&(i.clearInterval(l),i.googletag.pubads().refresh(),window.apstag||console.log("MESSAGE: Timeout for A9 load exceeded, aborting"))},500)),y&&(b.push(new Promise(function(e){w?e():v.push(e)})),c=i.setTimeout(T,2500)),o=function(e){var t,a,o=e.data,n=[];return o.loaded?e:(o.loaded=!0,t=null,(t=o.sizes?u.defineSlot(o.name,o.sizes,o.id).addService(u.pubads()):u.defineOutOfPageSlot(o.name,o.id).addService(u.pubads())).setTargeting("adid",o.id),f.hasOwnProperty("utm_campaign")&&t.setTargeting("utmcamp",f.utm_campaign),a=p.getAdCount(o.label),t.setTargeting("label",o.label+"_"+o.site+"-"+a),u.display(o.id),u.pubads().addEventListener("slotOnload",function(){i.NYM.analytics.firstAdLoadTime||(i.NYM.analytics.firstAdLoadTime=i.performance.now(),i.NYM.analytics.firstAdLoadLabel=e.data.label)}),n=_(o),Promise.all(b).then(function(){n?window.apstag&&window.apstag.cleared?window.apstag.fetchBids({slots:[n],timeout:window.apstag.timeout},function(){u.cmd.push(function(){window.apstag.setDisplayBids(),u.pubads().refresh([t],{changeCorrelator:!1})})}):y&&u.pubads().refresh([t],{changeCorrelator:!1}):u.pubads().refresh([t],{changeCorrelator:!1})}),e.slot=t,e)},n=function(e){var a,i,o,n=t(),s=e.getAttribute("data-name"),r=e.getAttribute("data-sizes"),d=e.getAttribute("data-label"),c=e.getAttribute("data-site");n=e.id,r&&r.length?(r=r.split(","),a=[],_map(r,function(e){e=e.split("x"),i=parseInt(e[0]),o=parseInt(e[1]),a.push([i,o])})):(e.classList.add("oop"),a=!1),this.data={id:n,name:s,sizes:a,loaded:!1,label:d,site:c},g[n]=this},r=function(e){u.cmd.push(function(){var t=o(e);g[e.data.id]=t})},s=function(e){var t=[];e.slot?(t=_(e))&&window.apstag&&window.apstag.cleared&&window.apstag.fetchBids({slots:[t],timeout:window.apstag.timeout},function(){u.cmd.push(function(){window.apstag.setDisplayBids(),u.pubads().refresh([e.slot],{changeCorrelator:!1})})}):e&&r(e)},u.cmd.push(function(){var e,t,o,n=page.getMeta("article:tag"),s=page.getMeta("author"),r=i.location.href,d=(e=a.head.querySelector(".head-gtm"),t=a.body.querySelector(".gtm"),e&&"top"===e.getAttribute("data-gtm")?"gtmtop":t&&"bottom"===t.getAttribute("data-gtm")?"gtmbottom":"");o=[],_forEach([n,s,d],function(e){_forEach(e.split(","),function(e){(e=e.trim().toLowerCase().replace(/\s/g,"-").replace(/\'|\’/g,"")).length&&o.push(e)})}),u.pubads().setTargeting("kw",o),u.pubads().setTargeting("entry_group",o),r=r.slice(r.lastIndexOf("/")+1),u.pubads().setTargeting("pn",r),u.companionAds().setRefreshUnfilledSlots(!0),u.pubads().enableAsyncRendering(),u.enableServices()}),this.load=r,this.create=function(e){return new n(e)},this.refresh=function(e){var t;_isString(e)?(t=this.getById(e),s(t)):s(e)},this.remove=function(e){var t=e.data.id;a.getElementById(t).innerHTML=""},this.getAdCount=function(e){var t,a=0,i=Object.keys(g);return _each(i,function(i){(t=g[i]).data.loaded&&t.data.label===e&&a++}),a},this.getById=function(e){return g[e]},d=_debounce(function(){var e={TopLeaderboard:1,RightColTopMPU:2,outOfPage:99,"homepageTakeover/TopLeaderboard":1},t=_sortBy(h,function(t){return e[t.data.label]||10});_forEach(t,function(e){return e.data.sizes?r(e):i.setTimeout(function(){r(e)},2e3)}),y&&window.PQ.cmd.push(()=>{try{window.PQ.loadSignals(["ids","bsc","vlp"],T)}catch(e){T(),console.error(`There has been an error loading Double Verify signals: ${e}`)}}),h=[]},10),this.addToPageLoadQueue=function(e){h.push(e),d()});function _(e){var t,a=e.sizes;return a=_intersectionWith(a,[[970,250],[970,90],[728,90],[300,600],[300,250],[320,100],[320,50]],_isEqual),e.sizes&&e.sizes.length&&(t={slotID:e.id,sizes:a,slotName:e.label}),t}function T(){i.clearTimeout(c),w=!0,_forEach(v,function(e){e()})}}]);
}, {"107":107,"114":114,"118":118,"124":124,"182":182,"205":205,"268":268,"274":274,"406":406,"409":409}];
window.modules["cid.legacy"] = [function(require,module,exports){"use strict";DS.service("$cid",function(){var r=Math.floor(100*Math.random());return function(){return"cid-"+ ++r}});
}, {}];
window.modules["client.legacy"] = [function(require,module,exports){"use strict";require("cid.legacy"),require("ads.legacy"),require("facebook.legacy"),require("aaa-module-mounting.legacy");
}, {"cid.legacy":"cid.legacy","ads.legacy":"ads.legacy","facebook.legacy":"facebook.legacy","aaa-module-mounting.legacy":"aaa-module-mounting.legacy"}];
window.modules["facebook.legacy"] = [function(require,module,exports){"use strict";DS.service("facebook",[function(){this.fb=function(i){window.FB&&window.FB[i].apply(this,Array.prototype.slice.call(arguments,1))}}]);
}, {}];
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o typeof key === 'string' && key.match(/\.legacy$/)).forEach(key => window.require(key));
}
function tryToMount(fn, el, name) {
try {
fn(el); // init the controller
} catch (e) {
const elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML));
console.error(`Error initializing controller for "${name}" on "${elementTag}"`, e);
}
}
/**
* mount client.js component controllers
*/
function mountComponentModules() {
Object.keys(window.modules).filter(key => typeof key === 'string' && key.match(/\.client$/)).forEach(key => {
let controllerFn = window.require(key);
if (typeof controllerFn === 'function') {
const name = key.replace('.client', ''),
instancesSelector = `[data-uri*="_components/${name}/"]`,
defaultSelector = `[data-uri$="_components${name}"]`,
instances = document.querySelectorAll(instancesSelector),
defaults = document.querySelectorAll(defaultSelector);
for (let el of instances) {
tryToMount(controllerFn, el, name);
}
for (let el of defaults) {
tryToMount(controllerFn, el, name);
}
}
});
}
// Make sure that a `window.process.env.NODE_ENV` is available in the client for any dependencies,
// services, or components that could require it
// note: the `` value is swapped for the actual environment variable in /lib/cmd/compile/scripts.js
window.process = window.process || {};
window.process.env = window.process.env || {};
if (!window.process.env.NODE_ENV) {
window.process.env.NODE_ENV = '';
}
// note: legacy controllers that require legacy services (e.g. dollar-slice) must
// wait for DOMContentLoaded to initialize themselves, as the files themselves must be mounted first
mountLegacyServices();
mountComponentModules();
// ]]