(this["webpackJsonp6th-street"]=this["webpackJsonp6th-street"]||[]).push([[22],{1008:function(e,t,n){"use strict";n.r(t);var i=n(1821);n.d(t,"default",(function(){return i.a}))},1821:function(e,t,n){"use strict";(function(e){var i=n(5),a=n.n(i),o=n(12),r=n(3),c=n(4),l=n(7),s=n(6),u=n(48),d=n(1822),p=n(16),f=n(37),h=n(1823),m=n(2048),b=n(116),g=n(14),v=n(1824),k=n(15).checkBEMProps,A=function(t){Object(l.a)(i,t);var n=Object(s.a)(i);function i(){var e;Object(r.a)(this,i);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return(e=n.call.apply(n,[this].concat(a))).onPageLoad=function(t){var n=e.props,i=n.location.pathname,a=n.updateMeta,o=n.setHeaderState,r=n.updateBreadcrumbs,c=t.content_heading,l=t.meta_title,s=t.title;Object(b.b)(e.setOfflineNoticeSize,h.a)(),r(t),a({title:l||s}),i!==Object(g.a)("/")&&"/"!==i&&o({name:u.s,title:c,onBackClick:function(){return history.goBack()}}),e.setState({page:t,isLoading:!1})},e}return Object(c.a)(i,[{key:"requestPage",value:function(){var e=Object(o.a)(a.a.mark((function e(){var t,n,i,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.getRequestQueryParams(),n=t.id,e.next=3,Object(b.f)(d.a.getQuery({id:n}));case 3:i=e.sent,o=i.cmsPage,this.onPageLoad(o);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){return k(e,v.a,Object.assign({},this.props,this.state))}}]),i}(m.a);t.a=Object(f.j)(Object(p.b)(m.c,m.b)(Object(f.j)(A)))}).call(this,n(0))},1822:function(e,t,n){"use strict";var i=n(3),a=n(4),o=n(39),r=function(){function e(){Object(i.a)(this,e)}return Object(a.a)(e,[{key:"getQuery",value:function(e){var t=e.id;return new o.a("cmsPage").addArgument("id","Int!",t).addFieldList(["title","content","content_heading","meta_title"])}}]),e}();t.a=new r},1823:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=300},1824:function(e,t,n){"use strict";(function(e,i){var a=n(3),o=n(4),r=n(7),c=n(6),l=n(496),s=n(2049),u=n(11),d=n(17),p=n(2052),f=(n(2055),n(15).checkBEMProps),h=function(t){Object(r.a)(s,t);var n=Object(c.a)(s);function s(){var e;Object(a.a)(this,s);for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return(e=n.call.apply(n,[this].concat(i))).state={isArabic:Object(u.h)(),isMobile:d.a.any()},e}return Object(o.a)(s,[{key:"renderTitle",value:function(){return location.pathname.match(/faq/)?e("FAQ"):location.pathname.match(/cookies-policy/)?e("Cookies Policy"):location.pathname.match(/shipping-policy/)?e("Shipping Policy"):location.pathname.match(/privacy-policy/)?e("Privacy Policy"):e("Return Policy")}},{key:"renderTitleMobile",value:function(){return location.href.match(/private-sales/)?"Private sales":location.href.match(/about-apparel-group/)?"About Apparel Group":location.href.match(/about-club-apparel/)?"About Club Apparel":location.href.match(/terms-and-conditions/)?e("Terms & Conditions"):location.href.match(/reward-points/)?"Reward Points":location.href.match(/try-again-later/)?"Try Again Later":location.href.match(/liked-products/)?"Liked Products":null}},{key:"renderCloseButton",value:function(){var e=this.state.isArabic,t=this.props.history;return location.href.match(/source=mobileApp/)?null:f(i,"button",{elem:"Button",block:"MyAccountMobileHeader",onClick:function(){return t.goBack()},mods:{isArabic:e}})}},{key:"shouldUrlRewritesHaveNoPadding",value:function(){document.getElementById("UrlRewrites").classList.add("noPadding")}},{key:"renderContent",value:function(){var e,t,n,a=this.props,o=a.isLoading,r=a.page.content,c=a.location.pathname,s=void 0===c?"":c,u=this.state.isMobile;if(o)return f(i,i.Fragment,null,f(i,"div",{block:"CmsPage",elem:"SectionPlaceholder"}),f(i,"div",{block:"CmsPage",elem:"SectionPlaceholder"}),f(i,"div",{block:"CmsPage",elem:"SectionPlaceholder"}));if(!o&&!r)return null;var d=document.createElement("html");d.innerHTML=r;var h=null===d||void 0===d||null===(e=d.lastChild)||void 0===e||null===(t=e.firstChild)||void 0===t||null===(n=t.firstChild)||void 0===n?void 0:n.firstChild,m=(null===h||void 0===h?void 0:h.innerHTML)?String(h.innerHTML).replace(/&lt;/g,"<").replace(/&gt;/g,">"):r,b=s.slice(1),g=document.querySelectorAll(".faq-page-toggle")||[];return g&&g.length>0&&g.forEach((function(e){e.addEventListener("click",(function(e){var t=e.target.nextSibling,n=e.target.nextSibling.nextSibling;t.classList.toggle("open"),n.classList.toggle("open")}))})),location.href.match(/terms-and-conditions/)?f(i,"div",{block:b},u?f(i,"div",{block:"MyAccountMobileHeader",elem:"TabOptionHeader"},this.renderCloseButton(),f(i,"h1",{block:"MyAccountMobileHeader",elem:"Heading"},this.renderTitleMobile())):null,f(i,"div",{className:"cmspagecontentwrap"},f(i,p.a,{hideTitle:!0}))):location.href.match(/private-sales/)||location.href.match(/about-apparel-group/)||location.href.match(/about-club-aivi/)||location.href.match(/reward-points/)||location.href.match(/try-again-later/)||location.href.match(/liked-products/)?f(i,"div",{block:b},u?f(i,"div",{block:"MyAccountMobileHeader",elem:"TabOptionHeader"},this.renderCloseButton(),f(i,"h1",{block:"MyAccountMobileHeader",elem:"Heading"},this.renderTitleMobile())):null,f(i,"div",{className:"cmspagecontentwrap"},f(i,l.a,{content:r}))):f(i,"div",{block:b},this.shouldUrlRewritesHaveNoPadding(),u?f(i,"div",{block:"MyAccountMobileHeader",elem:"TabOptionHeader"},this.renderCloseButton(),f(i,"h1",{block:"MyAccountMobileHeader",elem:"Heading"},this.renderTitle())):null,f(i,l.a,{content:m}))}}]),s}(s.a);t.a=h}).call(this,n(28),n(0))},2048:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return j})),n.d(t,"b",(function(){return T})),n.d(t,"a",(function(){return M}));var i=n(3),a=n(4),o=n(7),r=n(6),c=n(8),l=n.n(c),s=n(16),u=n(48),d=n(1822),p=n(430),f=n(187),h=n(100),m=n(93),b=n(290),g=n(95),v=n(40),k=n(116),A=n(508),O=n(14),y=n(1824),C=n(1823),P=n.e(58).then(n.bind(null,1323)),j=function(e){return{isOffline:e.OfflineReducer.isOffline}},T=function(e){return{updateBreadcrumbs:function(t){return P.then((function(n){return n.default.updateWithCmsPage(t,e)}))},setHeaderState:function(t){return e(Object(h.c)(m.b,t))},setBigOfflineNotice:function(t){return e(Object(b.c)(t))},updateMeta:function(t){return e(Object(f.b)(t))},toggleBreadcrumbs:function(t){P.then((function(t){return t.default.update([],e)})),e(Object(p.c)(t))}}},B=n(15).checkBEMProps,M=function(t){Object(o.a)(c,t);var n=Object(r.a)(c);function c(e){var t;return Object(i.a)(this,c),(t=n.call(this,e)).state={page:{},isLoading:!0},t.setOfflineNoticeSize=function(){var e=t.props.setBigOfflineNotice;e(!!t.state.isLoading)},t.onPageLoad=function(e){var n=e.cmsPage,i=t.props,a=i.location.pathname,o=i.updateMeta,r=i.setHeaderState,c=i.updateBreadcrumbs,l=n.content_heading,s=n.meta_title,d=n.title;Object(k.b)(t.setOfflineNoticeSize,C.a)(),c(n),o({title:s||d}),a!==Object(O.a)("/")&&"/"!==a&&r({name:u.s,title:l,onBackClick:function(){return v.a.goBack()}}),t.setState({page:n,isLoading:!1})},t.updateBreadcrumbs(),t}return Object(a.a)(c,[{key:"updateBreadcrumbs",value:function(){var e=this.props;(0,e.toggleBreadcrumbs)(e.isBreadcrumbsActive)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.isOffline,n=e.isOnlyPlaceholder,i=this.state.isLoading;t&&i&&Object(k.b)(this.setOfflineNoticeSize,C.a)(),n||this.requestPage()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.location.pathname,i=t.pageIdentifiers,a=t.pageIds,o=e.location.pathname,r=e.pageIdentifiers,c=e.pageIds;n===o&&a===c&&i===r||this.requestPage()}},{key:"getRequestQueryParams",value:function(){var e=this.props,t=e.location,n=e.match,i=e.pageIdentifiers,a=e.pageIds;return i?{identifier:i}:-1!==a?{id:a}:{identifier:Object(O.i)(n,t)}}},{key:"requestPage",value:function(){var e=this.getRequestQueryParams(),t=e.id,n=e.identifier;(t||n)&&(this.setState({isLoading:!0}),this.fetchData([d.a.getQuery(e)],this.onPageLoad))}},{key:"render",value:function(){return B(e,y.a,Object.assign({},this.props,this.state))}}]),c}(A.a);M.propTypes={match:g.d.isRequired,setHeaderState:l.a.func.isRequired,updateBreadcrumbs:l.a.func.isRequired,setBigOfflineNotice:l.a.func.isRequired,location:g.c.isRequired,toggleBreadcrumbs:l.a.func.isRequired,pageIds:l.a.number,pageIdentifiers:l.a.string,isOnlyPlaceholder:l.a.bool,isBreadcrumbsActive:l.a.bool},M.defaultProps={pageIds:-1,pageIdentifiers:"",isOnlyPlaceholder:!1,isBreadcrumbsActive:!0};Object(s.b)(j,T)(M)}).call(this,n(0))},2049:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d}));var i=n(3),a=n(4),o=n(7),r=n(6),c=(n(2050),n(0)),l=n(496),s=n(495),u=(n(2051),n(15).checkBEMProps),d=function(t){Object(o.a)(c,t);var n=Object(r.a)(c);function c(){return Object(i.a)(this,c),n.apply(this,arguments)}return Object(a.a)(c,[{key:"renderHeading",value:function(){var t=this.props.page.content_heading;return t?u(e,"h1",{block:"CmsPage",elem:"Heading"},u(e,s.a,{content:t})):null}},{key:"renderContent",value:function(){var t=this.props,n=t.isLoading,i=t.page.content;return n?u(e,e.Fragment,null,u(e,"div",{block:"CmsPage",elem:"SectionPlaceholder"}),u(e,"div",{block:"CmsPage",elem:"SectionPlaceholder"}),u(e,"div",{block:"CmsPage",elem:"SectionPlaceholder"})):n||i?u(e,l.a,{content:i}):null}},{key:"render",value:function(){var t=this.props,n=t.page,i=t.isBreadcrumbsActive,a=n.page_width;return u(e,"main",{block:"CmsPage",mods:{isBreadcrumbsHidden:!i}},u(e,"div",{block:"CmsPage",elem:"Wrapper",mods:{page_width:a}},this.renderHeading(),u(e,"div",{block:"CmsPage",elem:"Content"},this.renderContent())))}}]),c}(c.PureComponent);d.defaultProps={isBreadcrumbsActive:!0}}).call(this,n(0))},2050:function(e,t,n){},2051:function(e,t,n){"use strict";var i=n(8),a=n.n(i),o=(a.a.shape({title:a.a.string,content:a.a.string,meta_title:a.a.string,meta_description:a.a.string,meta_keywords:a.a.string}),a.a.shape({title:a.a.string,content:a.a.string}));a.a.shape({items:a.a.objectOf(o)})},2052:function(e,t,n){"use strict";(function(e){var i=n(5),a=n.n(i),o=n(12),r=n(10),c=n(0),l=n(16),s=n(85),u=n(2053),d=n(14),p=n(11),f=n(17),h=(n(2054),n(40)),m=n(15).checkBEMProps,b=function(t){t.hideTitle;var n=Object(c.useState)(null),i=Object(r.a)(n,2),l=i[0],b=i[1],g=Object(c.useState)(null),v=Object(r.a)(g,2),k=v[0],A=v[1],O=Object(c.useState)(!0),y=Object(r.a)(O,2),C=y[0],P=y[1],j=Object(c.useState)(null),T=Object(r.a)(j,2),B=(T[0],T[1]),M=Object(p.h)();f.a.any()||f.a.tablet();Object(c.useEffect)((function(){S()}),[]);var S=function(){var e=Object(o.a)(a.a.mark((function e(){var t,n,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u.a)();case 3:(t=e.sent)&&(n=Object(d.g)().toLowerCase(),(i="ar"===n?t.ar:t.en)?(i.image&&A(i.image),i.content&&i.content.length>0?b(i.content):b([]),P(!1)):(P(!1),B(null),b([]))),e.next=12;break;case 7:e.prev=7,e.t0=e.catch(0),P(!1),B(!0),b([]);case 12:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),L=function(t,n){return m(e,"div",{key:"desc_".concat(n),block:"UnifiedAppTermsAndCondition",elem:"SubSection"},(null===t||void 0===t?void 0:t.subTitle)&&m(e,"h5",{block:"UnifiedAppTermsAndCondition",elem:"SubTitle"},t.subTitle),(null===t||void 0===t?void 0:t.text)&&m(e,"div",{block:"UnifiedAppTermsAndCondition",elem:"DescWrapper"},m(e,"p",{block:"UnifiedAppTermsAndCondition",elem:"BaseText"},function(t){if(!t)return null;var n=/([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/g;return t.split(n).map((function(t,i){return n.test(t)?(n.lastIndex=0,m(e,"a",{key:"email_".concat(i),href:"mailto:".concat(t),block:"UnifiedAppTermsAndCondition",elem:"EmailLink"},t)):m(e,"span",{key:"text_".concat(i)},t)}))}(t.text)," ",(null===t||void 0===t?void 0:t.link)&&m(e,"a",{block:"UnifiedAppTermsAndCondition",elem:"Link",onClick:function(){var e;(e=t.link.url)&&h.a.push(e)},href:t.link.url,target:"_blank",rel:"noopener noreferrer"},t.link.label))),(i=null===t||void 0===t?void 0:t.points)&&0!==i.length?m(e,"div",{block:"UnifiedAppTermsAndCondition",elem:"PointsWrapper"},i.map((function(t,n){return m(e,"div",{key:"point_".concat(n),block:"UnifiedAppTermsAndCondition",elem:"PointRow"},m(e,"span",{block:"UnifiedAppTermsAndCondition",elem:"Bullet"}),m(e,"span",{block:"UnifiedAppTermsAndCondition",elem:"PointText"},t.text))}))):null);var i};return C?m(e,"div",{block:"UnifiedAppTermsAndCondition",elem:"LoaderWrapper"},m(e,s.a,{isLoading:!0})):l&&0!==l.length?m(e,"div",{block:"UnifiedAppTermsAndCondition",mods:{isArabic:M}},m(e,"div",{block:"UnifiedAppTermsAndCondition",elem:"ScrollView"},k&&m(e,"div",{block:"UnifiedAppTermsAndCondition",elem:"LogoContainer"},m(e,"img",{src:k,alt:"Terms and Conditions",block:"UnifiedAppTermsAndCondition",elem:"Logo"})),m(e,"div",{block:"UnifiedAppTermsAndCondition",elem:"ContentWrapper"},l.map((function(t,n){return function(t,n){return m(e,"div",{key:"content_".concat(n),block:"UnifiedAppTermsAndCondition",elem:"ContentBlock"},(null===t||void 0===t?void 0:t.title)&&m(e,"h5",{block:"UnifiedAppTermsAndCondition",elem:"ContentTitle"},t.title),(null===t||void 0===t?void 0:t.description)&&m(e,"div",{block:"UnifiedAppTermsAndCondition",elem:"InnerContent"},t.description.map((function(e,t){return L(e,t)}))))}(t,n)}))))):null};b.defaultProps={hideTitle:!1},t.a=Object(l.b)((function(){return{}}),(function(){return{}}))(b)}).call(this,n(0))},2053:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(102),a=function(){return i.a.get("".concat("config/v1","/").concat("unified_terms_and_conditions.json")).then((function(e){return e||(console.warn("No Terms and Conditions data received from API"),null)})).catch((function(e){return console.error("Error fetching Terms and Conditions data:",e),null}))}},2054:function(e,t,n){},2055:function(e,t,n){}}]);