(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{0:function(e,t,r){e.exports=r("8b703812aa8ae3c41814")},"43114f7d4489c019692f":function(e,t,r){"use strict";(function(e){var n=r("f363639bc5c3c97af546"),o=r("c7f8a1af5641ac4ad57b"),a=Object(o.g)(window.location.host),i=window.location.href,s=new URL(i),c=(s.origin,s.searchParams.get("access_token")||s.searchParams.get("jwt"));s.origin;var u=void 0;c||(u=Object(o.d)());t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.client_id=a,t.version_header=2;var r={query:e,params:t},o={"Content-type":"application/json",token:c||u},i="https://9wjkmrcpr2.execute-api.ca-central-1.amazonaws.com/prod/my/"+r.query,s="POST";return Object(n.a)(i,r.params,o,s)}}).call(this,r("5e511fa944f88972e69c"))},"6542cd13fd5dd1bcffd4":function(e,t,r){"use strict";r.d(t,"B",(function(){return x})),r.d(t,"o",(function(){return i})),r.d(t,"A",(function(){return c})),r.d(t,"n",(function(){return u})),r.d(t,"m",(function(){return p})),r.d(t,"z",(function(){return l})),r.d(t,"v",(function(){return h})),r.d(t,"i",(function(){return d})),r.d(t,"j",(function(){return m})),r.d(t,"E",(function(){return v})),r.d(t,"D",(function(){return _})),r.d(t,"r",(function(){return S})),r.d(t,"e",(function(){return w})),r.d(t,"g",(function(){return C})),r.d(t,"t",(function(){return P})),r.d(t,"u",(function(){return R})),r.d(t,"a",(function(){return O})),r.d(t,"d",(function(){return k})),r.d(t,"x",(function(){return E})),r.d(t,"c",(function(){return A})),r.d(t,"b",(function(){return j})),r.d(t,"k",(function(){return T})),r.d(t,"C",(function(){return M})),r.d(t,"p",(function(){return f})),r.d(t,"s",(function(){return g})),r.d(t,"q",(function(){return y})),r.d(t,"f",(function(){return b})),r.d(t,"h",(function(){return I})),r.d(t,"w",(function(){return F})),r.d(t,"l",(function(){return N})),r.d(t,"y",(function(){return s}));var n=r("a28fc3c963a1d4d1a2e5"),o=function(e){return e.get("global")},a=function(e){return e.get("form")},i=function(){return Object(n.a)(o,(function(e){return e.get("product")}))},s=function(){return Object(n.a)(o,(function(e){return e.get("sso_redirect_url")}))},c=function(){return Object(n.a)(o,(function(e){return e.get("theme")&&e.get("theme").toJS()}))},u=function(){return Object(n.a)(o,(function(e){return e.get("page")}))},p=function(){return Object(n.a)(o,(function(e){return e.get("mobileCheck")}))},l=function(){return Object(n.a)(o,(function(e){return e.get("tabletCheck")}))},d=function(){return Object(n.a)(o,(function(e){return e.get("label_message_max_length")}))},h=function(){return Object(n.a)(o,(function(e){return e.get("sfFields").toJS()}))},m=function(){return Object(n.a)(o,(function(e){return e.get("language")}))},f=function(){return Object(n.a)(o,(function(e){return e.get("getProductsResponse").toJS()}))},g=function(){return Object(n.a)(o,(function(e){return e.get("product_preferences")}))},y=function(){return Object(n.a)(o,(function(e){return e.get("product_id")}))},b=function(){return Object(n.a)(o,(function(e){return e.get("custom_settings")&&e.get("custom_settings").toJS()}))},v=function(){return Object(n.a)(o,(function(e){return e.get("userLoginTab")}))},x=function(){return Object(n.a)(o,(function(e){return e.get("modal").toJS()}))},_=function(){return Object(n.a)(o,(function(e){return e.get("userLoginStatus")}))},S=function(){return Object(n.a)(o,(function(e){return e.get("logo")}))},w=function(){return Object(n.a)(o,(function(e){return e.get("client_id")}))},C=function(){return Object(n.a)(o,(function(e){return e.get("favicon")}))},P=function(){return Object(n.a)(o,(function(e){return e.get("product_type")}))},O=function(){return Object(n.a)(o,(function(e){return e.get("user_pool_app_id")}))},j=function(){return Object(n.a)(o,(function(e){return e.get("user_pool_link_verification")}))},k=function(){return Object(n.a)(o,(function(e){return e.get("user_pool_id")}))},R=function(){return Object(n.a)(o,(function(e){return e.get("redirectShopUrl")}))},E=function(){return Object(n.a)(o,(function(e){return e.get("signedInURL")}))},A=function(){return Object(n.a)(o,(function(e){return e.get("user_pool_domain")}))},T=function(){return Object(n.a)(o,(function(e){return e.get("layout").toJS()}))},M=function(){return Object(n.a)(a,(function(e){return e.get("userLoginInfoList")}))},I=function(){return Object(n.a)(o,(function(e){return e.get("hide_products_if_expiry")}))},N=function(){return Object(n.a)(o,(function(e){return e.get("membership_account_id")}))},F=function(){return Object(n.a)(o,(function(e){return e.get("signedIn_product_id")}))}},"70831531a6c438e71795":function(e,t,r){"use strict";(function(e){var n,o=r("8af190b70a6bc55c6f1b"),a=r.n(o),i=r("d7dd51e1bf6bfc2c9c3d"),s=r("a28fc3c963a1d4d1a2e5"),c=(r("d559af73313ecb218818"),r("f424be1b0d3092aa1b62")),u=r("c7f8a1af5641ac4ad57b"),p=r("74c62ca381c7102edeaf"),l=r("6542cd13fd5dd1bcffd4"),d=r("94ca4779dc8447540bb8"),h=r("a72b40110d9c31c9b5c5"),m=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,r,o){var a=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});if(1===i)t.children=o;else if(i>1){for(var c=Array(i),u=0;u0&&void 0!==arguments[0]?arguments[0]:$,t=arguments[1];switch(t.type){case H.j:return e.set("loading",!0).set("error",!1).setIn(["userData","repositories"],!1);case H.l:return e.setIn(["userData","repositories"],t.repos).set("loading",!1).set("currentUser",t.username);case H.k:return e.set("error",t.error).set("loading",!1);case H.r:return e.set("product",t.product).set("theme",Object(L.fromJS)(Object(z.a)(Object(z.f)(t.product)))).set("sfFields",Object(L.fromJS)(Object(z.c)(t.product))).set("language",t.language).set("redirectShopUrl",Object(z.e)(t.product)).set("product_id",t.product_id);case H.d:return e.set("loading",!0).set("error",!1);case H.f:var r=e.toJS();r.product=K(t.data,t.prodPref).product_name,r.redirectShopUrl="https://"+K(t.data).shop_site+"/",r.theme=Object(z.a)(Object(z.f)(K(t.data,t.prodPref).product_name)),r.sfFields=Object(z.c)(K(t.data,t.prodPref).product_name);var n=U({},r,t.data,{loading:!1,error:!1,language:"Châtelaine"===K(t.data).product_name||"Bel âge"===K(t.data).product_name?"FR":t.data.country_id&&t.data.country_id});return"object"==G(n.product_id)&&(n.product_id=n.product_id[0]),Object(L.fromJS)(n);case H.e:return e.set("loading",!1).set("error",!0);case H.i:return e.set("product_preferences",t.productPreferences);case H.q:return"userVerification"!==t.userLoginTab?e.set("userLoginTab",t.userLoginTab).set("userLoginStatus",null):e.set("userLoginTab",t.userLoginTab);case H.m:return e.set("mobileCheck",window.mobilecheck());case H.o:return e.set("tabletCheck",W);case H.n:return e.set("page",t.page);case H.p:return r=e.get("modal").toJS(),e.set("modal",Object(L.fromJS)(U({},r,V({},t.name,t.value))));case H.a:return e.set("userLoginStatus",{loading:!0});case H.c:return e.set("userLoginStatus",{loading:!1,data:t.data});case H.b:case H.b:return e.set("userLoginStatus",{error:t.err,loading:!1});default:return e}},Y=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:X,t=arguments[1];switch(t.type){case c.LOCATION_CHANGE:return e.merge({location:t.payload});default:return e}}function Q(e){return Object(D.combineReducers)(Y({route:Z,global:J,form:B.reducer},e))}function ee(e,t){return function(r,n){t||F(e),P()(A()(r)&&!j()(r)&&R()(n),"(app/utils...) injectReducer: Expected `reducer` to be a reducer function"),Reflect.has(e.injectedReducers,r)&&e.injectedReducers[r]===n||(e.injectedReducers[r]=n,e.replaceReducer(Q(e.injectedReducers)))}}function te(e){return F(e),{injectReducer:ee(e,!0)}}var re=function(){function e(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},o=arguments[2];t||F(e);var a=ie({},n,{mode:n.mode||"@@saga-injector/restart-on-remount"}),i=a.saga,s=a.mode;ce(r),ue(a);var c=Reflect.has(e.injectedSagas,r);(!c||c&&s!==ae&&"@@saga-injector/once-till-unmount"!==s)&&(e.injectedSagas[r]=ie({},a,{task:e.runSaga(i,o)}))}}function le(e,t){return function(r){if(t||F(e),ce(r),Reflect.has(e.injectedSagas,r)){var n=e.injectedSagas[r];n.mode&&n.mode!==ae&&(n.task.cancel(),e.injectedSagas[r]="done")}}}function de(e){return F(e),{injectSaga:pe(e,!0),ejectSaga:le(e,!0)}}var he=function(){function e(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:Ve,t=arguments[1];switch(t.type){case ye:return e.set("loading",!0).set("error",!1);case"containers/SettingsPage/LOAD_USERSETTINGS_SUCCESS":return e.set("loading",!1).set("userSettings",t.userSettings).set("error",!1);case"containers/SettingsPage/LOAD_USERSETTINGS_FAILURE":return e.set("loading",!1).set("error",!0).set("userSettings",null);case be:return e.set("loading",!0).set("error",!1);case"containers/SettingsPage/SAVE_USERSETTINGS_SUCCESS":return e;case"containers/SettingsPage/SAVE_USERSETTINGS_SUCCESS":return e.set("loading",!1).set("error",!0);case ve:return e.set("error",!1);case xe:return e.set("userSettings",t.payload);case _e:return e.set("error",!0);case Se:return e.set("billingInfo",Ge({},e.get("billingInfo"),{loading:!0}));case"containers/SettingsPage/CALL_BILLING_INFO_SUCCESS":return e.set("billingInfo",t.payload).set("loading".false);case"containers/SettingsPage/CALL_BILLING_INFO_FAILURE":return e.set("billingInfo",Ge({},e.get("billingInfo"),{loading:!1}));case we:return e.set("linkSubscription",Ge({},Ue,{loading:!0}));case"containers/SettingsPage/LINK_SUBSCRIPTION_SUCCESS":return e.set("linkSubscription",Ge({},t.payload,{loading:!1}));case"containers/SettingsPage/LINK_SUBSCRIPTION_FAILURE":return e.set("linkSubscription",Ge({},Ue,{error:t.error}));case Ce:return e.set("linkSubscription",Ge({},Ue));case Pe:return e.set("transactionHistory",Ge({},Ue,{loading:!0}));case"containers/SettingsPage/TRANSACTION_HISTORY_SUCCESS":return e.set("transactionHistory",Ge({},Ue,{data:t.payload}));case"containers/SettingsPage/TRANSACTION_HISTORY_FAILURE":return e.set("transactionHistory",Ge({},Ue,{error:t.error}));case Oe:return e.set("boxTransactionHistory",Ge({},Ue,{loading:!0}));case"containers/SettingsPage/BOX_TRANSACTION_HISTORY_SUCCESS":return e.set("boxTransactionHistory",Ge({},Ue,{data:t.payload}));case"containers/SettingsPage/BOX_TRANSACTION_HISTORY_FAILURE":return e.set("boxTransactionHistory",Ge({},Ue,{error:t.error}));case je:return e.set("donationHistory",Ge({},Ue,{loading:!0}));case ke:return e.set("donationHistory",Ge({},Ue,{data:t.payload}));case Re:return e.set("donationHistory",Ge({},Ue,{error:t.error}));case Ee:return e.set("giftRecipientsInformation",Ge({},Ue,{loading:!0}));case"containers/SettingsPage/GIFT_RECIPIENTS_INFORMATION_SUCCESS":return e.set("giftRecipientsInformation",Ge({},Ue,{data:t.payload}));case"containers/SettingsPage/GIFT_RECIPIENTS_INFORMATION_FAILURE":return e.set("giftRecipientsInformation",Ge({},Ue,{error:t.error}));case Ae:return e.set("giftRecipientsLabelMessage",Ge({},e.get("giftRecipientsLabelMessage"),{loading:!0}));case"containers/SettingsPage/GIFT_RECIPIENTS_LABEL_MESSAGE_SUCCESS":return e.set("giftRecipientsLabelMessage",Ge({},e.get("giftRecipientsLabelMessage"),{data:t.payload,labelMessageData:Ke(t.payload),suppressRecipientsData:qe(t.payload),loading:!1}));case"containers/SettingsPage/GIFT_RECIPIENTS_LABEL_MESSAGE_FAILURE":return e.set("giftRecipientsLabelMessage",Ge({},e.get("giftRecipientsLabelMessage"),{error:t.error}));case Te:return e.set("outstandingAmount",Ge({},e.get("outstandingAmount"),{loading:!0}));case"containers/SettingsPage/GET_OUTSTANDING_AMOUNT_SUCCESS":return e.set("outstandingAmount",Ge({},e.get("outstandingAmount"),{data:t.payload}));case"containers/SettingsPage/GET_OUTSTANDING_AMOUNT_FAILURE":return e.set("outstandingAmount",Ge({},e.get("outstandingAmount"),{error:t.error}));case Me:return e.set("expiryDate",Ge({},e.get("expiryDate"),{loading:!0}));case"containers/SettingsPage/CALL_EXPIRY_TABLE_SUCCESS":return e.set("expiryDate",Ge({},e.get("expiryDate"),{data:t.value}));case"containers/SettingsPage/CALL_EXPIRY_TABLE_FAILURE":return e.set("expiryDate",Ge({},e.get("expiryDate"),{error:t.error}));case"containers/SettingsPage/CALL_BOX_PROGRAM_EXPIRY_TABLE":return e.set("boxProgramExpiryDate",Ge({},e.get("boxProgramExpiryDate"),{loading:!0}));case"containers/SettingsPage/CALL_BOX_PROGRAM_EXPIRY_TABLE_SUCCESS":return e.set("boxProgramExpiryDate",Ge({},e.get("boxProgramExpiryDate"),{data:t.value}));case"containers/SettingsPage/CALL_BOX_PROGRAM_EXPIRY_TABLE_FAILURE":return e.set("boxProgramExpiryDate",Ge({},e.get("boxProgramExpiryDate"),{error:t.error}));case"containers/SettingsPage/CUSTOMER_ACTION":return e.set("customerAction",Ge({},e.get("customerAction"),{loading:!0}));case"containers/SettingsPage/CUSTOMER_ACTION_SUCCESS":return e.set("customerAction",{data:t.payload.value});case"containers/SettingsPage/CUSTOMER_ACTION_FAILURE":return e.set("customerAction",{error:t.error});case Ie:return e.set("issuesTable",Ge({},e.get("issuesTable"),{loading:!0}));case"containers/Settings/CALL_ISSUES_TABLE_SUCCESS":return e.set("issuesTable",{loading:!1,data:t.payload});case"containers/Settings/CALL_ISSUES_TABLE_FAILURE":return e.set("issuesTable",{error:t.error,loading:!1});case ze:return e.set("customerServiceResponse",{loading:!0});case"constainers/Settings/CALL_CUSTOMER_SERVICE_SUCCESS":return e.set("customerServiceResponse",{loading:!1,data:t.payload});case"constainers/Settings/CALL_CUSTOMER_SERVICE_FAILURE":return e.set("customerServiceResponse",{loading:!1,error:t.error});case Fe:return e.set("subscriptionPref",Ge({},e.get("subscriptionPref"),{loading:!0}));case"containers/Settings/CALL_SUBSCRIPTION_PREF_SUCCESS":return e.set("subscriptionPref",{loading:!1,data:We(t.payload)});case"containers/Settings/CALL_SUBSCRIPTION_PREF_FAILURE":return e.set("subscriptionPref",{error:t.error,loading:!1});case Be:return e.set("eNewsletterPref",Ge({},e.get("eNewsletterPref"),{loading:!0}));case"constainers/Settings/CALL_ENEWSLETTER_PREF_SUCCESS":return e.set("eNewsletterPref",{loading:!1,data:We(t.payload)});case"constainers/Settings/CALL_ENEWSLETTER_PREF_FAILURE":return e.set("eNewsletterPref",{error:t.error,loading:!1});case He:return e.set("wooCommerceCoupon",Ge({},e.get("wooCommerceCoupon"),{loading:!0}));case"containers/SettingsPage/CREATE_WOOCOMMERCE_COUPON_SUCCESS":return e.set("wooCommerceCoupon",{loading:!1,data:t.payload});case"containers/SettingsPage/CREATE_WOOCOMMERCE_COUPON_FAILURE":return e.set("wooCommerceCoupon",{error:t.error,loading:!1});case Le:return e.set("userSubRecord",Ge({},e.get("userSubRecord"),{loading:!0}));case"constainers/Settings/CALL_USER_SUB_RECORD_SUCCESS":return e.set("userSubRecord",{loading:!1,data:t.payload});case"constainers/Settings/CALL_USER_SUB_RECORD_FAILURE":return e.set("userSubRecord",{error:t.error,loading:!1});case Ne:return e.set("paymentConfig",Ge({},e.get("paymentConfig"),{loading:!0}));case"containers/Settings/CALL_PAYMENT_CONFIG_SUCCESS":return e.set("paymentConfig",{loading:!1,data:t.payload});case"containers/Settings/CALL_PAYMENT_CONFIG_FAILURE":return e.set("paymentConfig",{error:t.error,loading:!1});case De:return e.set("autoRenewInfo",Ge({},e.get("autoRenewInfo"),{loading:!0}));case"constainers/Settings/GET_AUTORENEW_INFO_SUCCESS":return e.set("autoRenewInfo",{loading:!1,data:t.payload});case"constainers/Settings/GET_AUTORENEW_INFO_FAILURE":return e.set("autoRenewInfo",{error:t.error,loading:!1});default:return e}},Je=r("6c68d13fe9e3e77d8fc4"),Ye=r("d559af73313ecb218818"),Xe=r.n(Ye),Ze=r("a28e9125a985310fee36"),Qe=(r("f363639bc5c3c97af546"),r("43114f7d4489c019692f")),et=r("0e04d26da6ad9d3b9f81"),tt=r("8e95644dfa1f725aa66d");function rt(e){return{type:"containers/SettingsPage/LOAD_USERSETTINGS_SUCCESS",userSettings:e}}function nt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:be,payload:e,isSkip:t}}function ot(e){return{type:"containers/SettingsPage/SAVE_USERSETTINGS_SUCCESS",err:e}}function at(e,t){return{type:Se,action_type:e,payload:t}}function it(e,t){return{type:we,payload:e,redirect:t}}function st(e){return{type:"containers/SettingsPage/LINK_SUBSCRIPTION_FAILURE",error:e}}function ct(e){return{type:"containers/Settings/CALL_SUBSCRIPTION_PREF_SUCCESS",payload:e}}function ut(e){return{type:"constainers/Settings/CALL_ENEWSLETTER_PREF_SUCCESS",payload:e}}function pt(e){return{type:"constainers/Settings/CALL_ENEWSLETTER_PREF_FAILURE",error:e}}function lt(e){return{type:Le,payload:e}}function dt(e){return{type:"constainers/Settings/CALL_USER_SUB_RECORD_SUCCESS",payload:e}}function ht(e){return{type:"constainers/Settings/CALL_USER_SUB_RECORD_FAILURE",error:e}}function mt(e,t){return{type:Pe,payload:e}}function ft(e){return{type:"containers/SettingsPage/TRANSACTION_HISTORY_SUCCESS",payload:e}}function gt(e){return console.log("payload",e),{type:"containers/SettingsPage/BOX_TRANSACTION_HISTORY_SUCCESS",payload:e}}function yt(e){return{type:ke,payload:e}}function bt(e){return{type:"containers/SettingsPage/GIFT_RECIPIENTS_INFORMATION_SUCCESS",payload:e}}function vt(e){return{type:"containers/SettingsPage/GIFT_RECIPIENTS_LABEL_MESSAGE_SUCCESS",payload:e}}function xt(e){return{type:"containers/SettingsPage/GET_OUTSTANDING_AMOUNT_SUCCESS",payload:e}}function _t(e){return{type:Me,action:e}}function St(e){return{type:"containers/SettingsPage/CALL_BOX_PROGRAM_EXPIRY_TABLE_FAILURE",error:e}}function wt(e){return{type:"containers/Settings/CALL_ISSUES_TABLE_SUCCESS",payload:e}}function Ct(e){return{type:"constainers/Settings/GET_AUTORENEW_INFO_SUCCESS",payload:e}}function Pt(e){return{type:"constainers/Settings/SEND_DIGITAL_CARD_PDF",payload:e}}function Ot(e){return{type:"constainers/Settings/SEND_DIGITAL_CARD_PDF_SUCCESS",payload:e}}function jt(e){return{type:"constainers/Settings/SEND_DIGITAL_CARD_PDF_FAILURE",error:e}}function kt(e){return{type:"constainers/Settings/CALL_CUSTOMER_SERVICE_SUCCESS",payload:e}}function Rt(e,t){return{type:"constainers/Settings/GET_AUTOCOMPLETE_ADDRESS",request:e,userValue:t}}var Et=r("a72b40110d9c31c9b5c5"),At=r("74c62ca381c7102edeaf"),Tt=r("da12517a9107f9ec40c6"),Mt=regeneratorRuntime.mark(zt),It=regeneratorRuntime.mark(Ht),Nt=regeneratorRuntime.mark(Gt),Ft=regeneratorRuntime.mark(Jt),Lt=regeneratorRuntime.mark(Yt),Dt=r("8e95644dfa1f725aa66d"),Bt=function(e){var t={Username:e.payload.email,Pool:e.userPool};return new tt.CognitoUser(t)};function zt(){var e,t,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,e={},n.next=4,Object(Je.d)(Object(x.d)());case 4:return t=n.sent,n.next=7,Object(Je.d)(Object(x.a)());case 7:return r=n.sent,e.UserPoolId=t,e.ClientId=r,n.abrupt("return",e);case 13:return n.prev=13,n.t0=n.catch(0),n.abrupt("return",n.t0);case 16:case"end":return n.stop()}}),Mt,this,[[0,13]])}function Ht(){var e,t;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,zt();case 3:return e=r.sent,t=new tt.CognitoUserPool(e),r.abrupt("return",t);case 8:return r.prev=8,r.t0=r.catch(0),console.log(r.t0),r.abrupt("return",r.t0);case 12:case"end":return r.stop()}}),It,this,[[0,8]])}function Gt(e){var t,r,n,o,a,i;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Ht();case 2:return t=s.sent,r={Username:e.email,Password:e.password},n=new tt.AuthenticationDetails(r),o={Username:e.email,Pool:t},(a=new tt.CognitoUser(o)).setAuthenticationFlowType("USER_PASSWORD_AUTH"),i=new Promise((function(e){a.authenticateUser(n,{onSuccess:function(t){var r=t.idToken;e(r)},onFailure:function(t){e(t)}})})),s.next=11,i;case 11:return s.abrupt("return",s.sent);case 12:case"end":return s.stop()}}),Nt,this)}function Ut(e){var t=Bt(e);return new Promise((function(e,r){t.resendConfirmationCode((function(t,n){t?r(t):e(n)}))})).then((function(e){return e})).catch((function(e){return e}))}function Vt(e){var t=e.userVerification,r={Username:e.username,Pool:userPool},n=new tt.CognitoUser(r);return new Promise((function(e,r){n.confirmRegistration(t,!0,(function(t,n){t?r(t):e(n)}))})).then((function(e){return e})).catch((function(e){return e}))}function qt(e){var t=[],r=e.payload.password,n=e.payload.email,o=e.payload.username,a=e.userPool,i={Name:"email",Value:n},s={Name:"profile",Value:o},c=new Dt.CognitoUserAttribute(s),u=new Dt.CognitoUserAttribute(i);return t.push(c),t.push(u),new Promise((function(e){a.signUp(o,r,t,null,(function(t,r){t&&e(t),e(r)}))})).then((function(e){return e})).catch((function(e){return e}))}function Wt(e){var t=Bt(e);return new Promise((function(e,r){t.forgotPassword({onSuccess:function(t){e(t)},onFailure:function(e){r(e)},inputVerificationCode:function(t){e(t)}})})).then((function(e){return e})).catch((function(e){return e}))}var Kt=function(e){e.payload.email;var t=e.payload.code,r=e.payload.password,n=Bt(e);return new Promise((function(e,o){n.confirmPassword(t,r,{onSuccess:function(t){e(t)},onFailure:function(e){o(e)}})})).then((function(e){return e})).catch((function(e){return e}))},$t=function(e){try{var t=Bt(e);return new Promise((function(e,r){t.signOut((function(t,n){t?r(t):e(n)}))})).then((function(e){return e})).catch((function(e){return e}))}catch(e){}};function Jt(){var e,t,r,n;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,zt();case 2:return e=o.sent,o.next=5,Object(Je.d)(Object(x.c)());case 5:return t=o.sent,r={ClientId:e.ClientId,AppWebDomain:t.substring(8),TokenScopesArray:["profile","email"],RedirectUriSignIn:window.location.origin,RedirectUriSignOut:window.location.origin,IdentityProvider:"Facebook",UserPoolId:e.UserPoolId,AdvancedSecurityDataCollectionFlag:!1,response_type:"code"},(n=new Tt.a(r)).userhandler={onSuccess:function(e){},onFailure:function(e){}},n.getSession(),o.abrupt("return",n.getSession());case 11:case"end":return o.stop()}}),Ft,this)}function Yt(){var e,t,r,n;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,zt();case 2:return e=o.sent,o.next=5,Object(Je.d)(Object(x.c)());case 5:return t=o.sent,r={ClientId:e.ClientId,AppWebDomain:t.substring(8),TokenScopesArray:["profile","email"],RedirectUriSignIn:window.location.origin,RedirectUriSignOut:window.location.origin,IdentityProvider:"Google",UserPoolId:e.UserPoolId,AdvancedSecurityDataCollectionFlag:!1,response_type:"code"},(n=new Tt.a(r)).userhandler={onSuccess:function(e){},onFailure:function(e){}},n.getSession(),o.abrupt("return",n.getSession());case 11:case"end":return o.stop()}}),Lt,this)}var Xt=Object.assign||function(e){for(var t=1;t1){for(var s=Array(a),c=0;c1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;uHoly See ({Vatican City State)"},{value:"HN",text:"Honduras"},{value:"HK",text:"Hong Kong"},{value:"HU",text:"Hungary"},{value:"IS",text:"Iceland"},{value:"IN",text:"India"},{value:"ID",text:"Indonesia"},{value:"IR",text:"Iran, Islamic Republic of"},{value:"IQ",text:"Iraq"},{value:"IE",text:"Ireland"},{value:"IM",text:"Isle of Man"},{value:"IL",text:"Israel"},{value:"IT",text:"Italy"},{value:"JM",text:"Jamaica"},{value:"JP",text:"Japan"},{value:"JE",text:"Jersey"},{value:"JO",text:"Jordan"},{value:"KZ",text:"Kazakhstan"},{value:"KE",text:"Kenya"},{value:"KI",text:"Kiribati"},{value:"KP",text:"Korea, Democratic People's Republic of"},{value:"KR",text:"Korea, Republic of"},{value:"KW",text:"Kuwait"},{value:"KG",text:"Kyrgyzstan"},{value:"LA",text:"Lao People's Democratic Republic"},{value:"LV",text:"Latvia"},{value:"LB",text:"Lebanon"},{value:"LS",text:"Lesotho"},{value:"LR",text:"Liberia"},{value:"LY",text:"Libyan Arab Jamahiriya"},{value:"LI",text:"Liechtenstein"},{value:"LT",text:"Lithuania"},{value:"LU",text:"Luxembourg"},{value:"MO",text:"Macao"},{value:"MK",text:"Macedonia, The Former Yugoslav Republic of"},{value:"MG",text:"Madagascar"},{value:"MW",text:"Malawi"},{value:"MY",text:"Malaysia"},{value:"MV",text:"Maldives"},{value:"ML",text:"Mali"},{value:"MT",text:"Malta"},{value:"MH",text:"Marshall Islands"},{value:"MQ",text:"Martinique"},{value:"MR",text:"Mauritania"},{value:"MU",text:"Mauritius"},{value:"YT",text:"Mayotte"},{value:"MX",text:"Mexico"},{value:"FM",text:"Micronesia, Federated States of"},{value:"MD",text:"Moldo{va, Republic of"},{value:"MC",text:"Monaco"},{value:"MN",text:"Mongolia"},{value:"ME",text:"Montenegro"},{value:"MS",text:"Montserrat"},{value:"MA",text:"Morocco"},{value:"MZ",text:"Mozambique"},{value:"MM",text:"Myanmar"},{value:"NA",text:"Namibia"},{value:"NR",text:"Nauru"},{value:"NP",text:"Nepal"},{value:"NL",text:"Netherlands"},{value:"AN",text:"Netherlands Antilles"},{value:"NC",text:"New Caledonia"},{value:"NI",text:"Nicaragua"},{value:"NE",text:"Niger"},{value:"NG",text:"Nigeria"},{value:"NU",text:"Niue"},{value:"NF",text:"Norfolk Island"},{value:"MP",text:"Northern Mariana Islands"},{value:"NO",text:"Norway"},{value:"OM",text:"Oman"},{value:"PK",text:"Pakistan"},{value:"PW",text:"Palau"},{value:"PS",text:"Palestinian Territory, Occupied"},{value:"PA",text:"Panama"},{value:"PG",text:"Papua New Guinea"},{value:"PY",text:"Paraguay"},{value:"PE",text:"Peru"},{value:"PH",text:"Philippines"},{value:"PN",text:"Pitcairn"},{value:"PL",text:"Poland"},{value:"PT",text:"Portugal"},{value:"PR",text:"Puerto Rico"},{value:"QA",text:"Qatar"},{value:"RE",text:"Reunion"},{value:"RO",text:"Romania"},{value:"RU",text:"Russian Federation"},{value:"RW",text:"Rwanda"},{value:"SH",text:"Saint Helena"},{value:"KN",text:"Saint Kitts and Nevis"},{value:"LC",text:"Saint Lucia"},{value:"PM",text:"Saint Pierre and Miquelon"},{value:"VC",text:"Saint Vincent and The Grenadines"},{value:"WS",text:"Samoa"},{value:"SM",text:"San Marino"},{value:"ST",text:"Sao Tome and Principe"},{value:"SA",text:"Saudi Arabia"},{value:"SN",text:"Senegal"},{value:"RS",text:"Serbia"},{value:"SC",text:"Seychelles"},{value:"SL",text:"Sierra Leone"},{value:"SG",text:"Singapore"},{value:"SK",text:"Slo{vakia"},{value:"SI",text:"Slovenia"},{value:"SB",text:"Solomon Islands"},{value:"SO",text:"Somalia"},{value:"ZA",text:"South Africa"},{value:"GS",text:"South Georgia and The South Sandwich Islands"},{value:"ES",text:"Spain"},{value:"LK",text:"Sri Lanka"},{value:"SD",text:"Sudan"},{value:"SR",text:"Suriname"},{value:"SJ",text:"S{valbard and Jan Mayen"},{value:"SZ",text:"Swaziland"},{value:"SE",text:"Sweden"},{value:"CH",text:"Switzerland"},{value:"SY",text:"Syrian Arab Republic"},{value:"TW",text:"Taiwan, Province of China"},{value:"TJ",text:"Tajikistan"},{value:"TZ",text:"Tanzania, United Republic of"},{value:"TH",text:"Thailand"},{value:"TL",text:"Timor-leste"},{value:"TG",text:"Togo"},{value:"TK",text:"Tokelau"},{value:"TO",text:"Tonga"},{value:"TT",text:"Trinidad and Tobago"},{value:"TN",text:"Tunisia"},{value:"TR",text:"Turkey"},{value:"TM",text:"Turkmenistan"},{value:"TC",text:"Turks and Caicos Islands"},{value:"TV",text:"Tuvalu"},{value:"UG",text:"Uganda"},{value:"UA",text:"Ukraine"},{value:"AE",text:"United Arab Emirates"},{value:"GB",text:"United Kingdom"},{value:"US",text:"United States"},{value:"UM",text:"United States Minor Outlying Islands"},{value:"UY",text:"Uruguay"},{value:"UZ",text:"Uzbekistan"},{value:"VU",text:"Vanuatu"},{value:"VE",text:"Venezuela"},{value:"VN",text:"Vietnam"},{value:"VG",text:"Virgin Islands, British"},{value:"VI",text:"Virgin Islands, U.S."},{value:"WF",text:"Wallis and Futuna"},{value:"EH",text:"Western Sahara"},{value:"YE",text:"Yemen"},{value:"ZM",text:"Zambia"},{value:"ZW",text:"Zimbabwe"}]),Ho={US:[{value:"AL",text:"Alabama",country:"US"},{value:"AK",text:"Alaska",country:"US"},{value:"AZ",text:"Arizona",country:"US"},{value:"AR",text:"Arkansas",country:"US"},{value:"CA",text:"California",country:"US"},{value:"CO",text:"Colorado",country:"US"},{value:"CT",text:"Connecticut",country:"US"},{value:"DC",text:"District of Columbia",alt:["Washington DC","Washington D.C."],country:"US"},{value:"DE",text:"Delaware",country:"US"},{value:"FL",text:"Florida",country:"US"},{value:"GA",text:"Georgia",country:"US"},{value:"HI",text:"Hawaii",country:"US"},{value:"ID",text:"Idaho",country:"US"},{value:"IL",text:"Illinois",country:"US"},{value:"IN",text:"Indiana",country:"US"},{value:"IA",text:"Iowa",country:"US"},{value:"KS",text:"Kansas",country:"US"},{value:"KY",text:"Kentucky",country:"US"},{value:"LA",text:"Louisiana",country:"US"},{value:"ME",text:"Maine",country:"US"},{value:"MD",text:"Maryland",country:"US"},{value:"MA",text:"Massachusetts",country:"US"},{value:"MI",text:"Michigan",country:"US"},{value:"MN",text:"Minnesota",country:"US"},{value:"MS",text:"Mississippi",country:"US"},{value:"MO",text:"Missouri",country:"US"},{value:"MT",text:"Montana",country:"US"},{value:"NE",text:"Nebraska",country:"US"},{value:"NV",text:"Nevada",country:"US"},{value:"NH",text:"New Hampshire",country:"US"},{value:"NJ",text:"New Jersey",country:"US"},{value:"NM",text:"New Mexico",country:"US"},{value:"NY",text:"New York",country:"US"},{value:"NC",text:"North Carolina",country:"US"},{value:"ND",text:"North Dakota",country:"US"},{value:"OH",text:"Ohio",country:"US"},{value:"OK",text:"Oklahoma",country:"US"},{value:"OR",text:"Oregon",country:"US"},{value:"PA",text:"Pennsylvania",country:"US"},{value:"RI",text:"Rhode Island",country:"US"},{value:"SC",text:"South Carolina",country:"US"},{value:"SD",text:"South Dakota",country:"US"},{value:"TN",text:"Tennessee",country:"US"},{value:"TX",text:"Texas",country:"US"},{value:"UT",text:"Utah",country:"US"},{value:"VT",text:"Vermont",country:"US"},{value:"VA",text:"Virginia",country:"US"},{value:"WA",text:"Washington",country:"US"},{value:"WV",text:"West Virginia",country:"US"},{value:"WI",text:"Wisconsin",country:"US"},{value:"WY",text:"Wyoming",country:"US"},{value:"AS",text:"American Samoa",country:"US"},{value:"GU",text:"Guam",country:"US"},{value:"MP",text:"Northern Mariana Islands",country:"US"},{value:"PR",text:"Puerto Rico",country:"US"},{value:"UM",text:"United States Minor Outlying Islands",country:"US"},{value:"VI",text:"Virgin Islands",country:"US"}],CA:[{value:"AB",text:"Alberta",country:"CA"},{value:"BC",text:"British Columbia",country:"CA"},{value:"MB",text:"Manitoba",country:"CA"},{value:"NB",text:"New Brunswick",country:"CA"},{value:"NL",text:"Newfoundland and Labrador",country:"CA",alt:["Newfoundland","Labrador"]},{value:"NS",text:"Nova Scotia",country:"CA"},{value:"NU",text:"Nunavut",country:"CA"},{value:"NT",text:"Northwest Territories",country:"CA"},{value:"ON",text:"Ontario",country:"CA"},{value:"PE",text:"Prince Edward Island",country:"CA"},{value:"QC",text:"Quebec",country:"CA"},{value:"SK",text:"Saskatchewan",country:"CA"},{value:"YT",text:"Yukon",country:"CA"}],AU:[{value:"ACT",text:"Australian Capital Territory",country:"AU"},{value:"NSW",text:"New South Wales",country:"AU"},{value:"NT",text:"Northern Territory",country:"AU"},{value:"QLD",text:"Queensland",country:"AU"},{value:"SA",text:"South Australia",country:"AU"},{value:"TAS",text:"Tasmania",country:"AU"},{value:"VIC",text:"Victoria",country:"AU"},{value:"WA",text:"Western Australia",country:"AU"}],MX:[{text:"Aguascalientes",value:"AG",alt:["AGS"],country:"MX"},{text:"Baja California",value:"BC",alt:["BCN"],country:"MX"},{text:"Baja California Sur",value:"BS",alt:["BCS"],country:"MX"},{text:"Campeche",value:"CM",alt:["Camp","CAM"],country:"MX"},{text:"Chiapas",value:"CS",alt:["Chis","CHP"],country:"MX"},{text:"Chihuahua",value:"CH",alt:["Chih","CHH"],country:"MX"},{text:"Coahuila",value:"MX",alt:["Coah","COA"],country:"MX"},{text:"Colima",value:"CL",alt:["COL"],country:"MX"},{text:"Federal District",value:"DF",alt:["DIF"],country:"MX"},{text:"Durango",value:"DG",alt:["Dgo","DUR"],country:"MX"},{text:"Guanajuato",value:"GT",alt:["Gto","GUA"],country:"MX"},{text:"Guerrero",value:"GR",alt:["Gro","GRO"],country:"MX"},{text:"Hidalgo",value:"HG",alt:["Hgo","HID"],country:"MX"},{text:"Jalisco",value:"JA",alt:["Jal","JAL"],country:"MX"},{text:"Mexico",value:"ME",alt:["Edomex","MEX"],country:"MX"},{text:"Michoacán",value:"MI",alt:["Mich","MIC"],country:"MX"},{text:"Morelos",value:"MO",alt:["Mor","MOR"],country:"MX"},{text:"Nayarit",value:"NA",alt:["Nay","NAY"],country:"MX"},{text:"Nuevo León",value:"NL",alt:["NLE"],country:"MX"},{text:"Oaxaca",value:"OA",alt:["Oax","OAX"],country:"MX"},{text:"Puebla",value:"PU",alt:["Pue","PUE"],country:"MX"},{text:"Querétaro",value:"QE",alt:["Qro","QUE"],country:"MX"},{text:"Quintana Roo",value:"QR",alt:["Q Roo","ROO"],country:"MX"},{text:"San Luis Potosí",value:"SL",alt:["SLP"],country:"MX"},{text:"Sinaloa",value:"SI",alt:["SIN"],country:"MX"},{text:"Sonora",value:"SO",alt:["SON"],country:"MX"},{text:"Tabasco",value:"TB",alt:["TAB"],country:"MX"},{text:"Tamaulipas",value:"TM",alt:["Tamps","TAM"],country:"MX"},{text:"Tlaxcala",value:"TL",alt:["Tlax","TLA"],country:"MX"},{text:"Veracruz",value:"VE",alt:["VER"],country:"MX"},{text:"Yucatán",value:"YU",alt:["YUC"],country:"MX"},{text:"Zacatecas",value:"ZA",alt:["ZAC"],country:"MX"}],CN:[{text:"重庆",value:"Chongqing",country:"CN"},{text:"黑龙江",value:"Heilongjiang",country:"CN"},{text:"吉林",value:"Jilin",country:"CN"},{text:"海南",value:"Hainan",country:"CN"},{text:"北京",value:"Beijing",country:"CN"},{text:"辽宁",value:"Liaoning",country:"CN"},{text:"内蒙古",value:"Inner Mongolia",alt:["Nei Menggu"],country:"CN"},{text:"西藏",value:"Xizang",alt:["Tibet"],country:"CN"},{text:"青海",value:"Qinghai",country:"CN"},{text:"宁夏",value:"Ningxia",country:"CN"},{text:"新疆",value:"Xinjiang",alt:["Uygur"],country:"CN"},{text:"甘肃",value:"Gansu",country:"CN"},{text:"河北",value:"Hebei",country:"CN"},{text:"河南",value:"Henan",country:"CN"},{text:"湖北",value:"Hubei",country:"CN"},{text:"湖南",value:"Hunan",country:"CN"},{text:"山东",value:"Shandong",country:"CN"},{text:"江苏",value:"Jiangsu",country:"CN"},{text:"安徽",value:"Anhui",country:"CN"},{text:"山西",value:"Shanxi",country:"CN"},{text:"陕西",value:"Shaanxi",country:"CN"},{text:"四川",value:"sichuan",country:"CN"},{text:"云南",value:"Yunnan",country:"CN"},{text:"贵州",value:"Guizhou",country:"CN"},{text:"浙江",value:"Zhejiang",country:"CN"},{text:"福建",value:"Fujian",country:"CN"},{text:"广西",value:"Guangxi",country:"CN"},{text:"上海",value:"Shanghai",country:"CN"},{text:"天津",value:"Tianjin",country:"CN"},{text:"香港",value:"Hongkong",alt:["Hong Kong"],country:"CN"},{text:"澳门",value:"Macau",alt:["Macao"],country:"CN"},{text:"台湾",value:"Taiwan",country:"CN"},{text:"江西",value:"Jiangxi",country:"CN"},{text:"广东",value:"Guangdong",country:"CN"}],GB:[{text:"Avon",country:"GB",region:"England"},{text:"Bedfordshire",country:"GB",region:"England"},{text:"Berkshire",country:"GB",region:"England"},{text:"Borders",country:"GB",region:"England"},{text:"Bristol",country:"GB",region:"England"},{text:"Buckinghamshire",country:"GB",region:"England"},{text:"Cambridgeshire",country:"GB",region:"England"},{text:"Channel Islands",country:"GB",region:"England"},{text:"Cheshire",country:"GB",region:"England"},{text:"Cleveland",country:"GB",region:"England"},{text:"Cornwall",country:"GB",region:"England"},{text:"Cumbria",country:"GB",region:"England"},{text:"Derbyshire",country:"GB",region:"England"},{text:"Devon",country:"GB",region:"England"},{text:"Dorset",country:"GB",region:"England"},{text:"Durham",country:"GB",region:"England"},{text:"East Riding of Yorkshire",country:"GB",region:"England"},{text:"East Sussex",country:"GB",region:"England"},{text:"Essex",country:"GB",region:"England"},{text:"Gloucestershire",country:"GB",region:"England"},{text:"Greater Manchester",country:"GB",region:"England"},{text:"Hampshire",country:"GB",region:"England"},{text:"Herefordshire",country:"GB",region:"England"},{text:"Hertfordshire",country:"GB",region:"England"},{text:"Humberside",country:"GB",region:"England"},{text:"Isle of Man",country:"GB",region:"England"},{text:"Isle of Wight",country:"GB",region:"England"},{text:"Isles of Scilly",country:"GB",region:"England"},{text:"Kent",country:"GB",region:"England"},{text:"Lancashire",country:"GB",region:"England"},{text:"Leicestershire",country:"GB",region:"England"},{text:"Lincolnshire",country:"GB",region:"England"},{text:"London",country:"GB",region:"England"},{text:"Merseyside",country:"GB",region:"England"},{text:"Middlesex",country:"GB",region:"England"},{text:"Norfolk",country:"GB",region:"England"},{text:"North Yorkshire",country:"GB",region:"England"},{text:"Northamptonshire",country:"GB",region:"England"},{text:"Northumberland",country:"GB",region:"England"},{text:"Nottinghamshire",country:"GB",region:"England"},{text:"Oxfordshire",country:"GB",region:"England"},{text:"Rutland",country:"GB",region:"England"},{text:"Shropshire",country:"GB",region:"England"},{text:"Somerset",country:"GB",region:"England"},{text:"South Yorkshire",country:"GB",region:"England"},{text:"Staffordshire",country:"GB",region:"England"},{text:"Suffolk",country:"GB",region:"England"},{text:"Surrey",country:"GB",region:"England"},{text:"Tyne and Wear",country:"GB",region:"England"},{text:"Warwickshire",country:"GB",region:"England"},{text:"West Midlands",country:"GB",region:"England"},{text:"West Sussex",country:"GB",region:"England"},{text:"West Yorkshire",country:"GB",region:"England"},{text:"Wiltshire",country:"GB",region:"England"},{text:"Worcestershire",country:"GB",region:"England"},{text:"Antrim",country:"GB",region:"Northern Ireland"},{text:"Down",country:"GB",region:"Northern Ireland"},{text:"Fermanagh",country:"GB",region:"Northern Ireland"},{text:"Londonderry",country:"GB",region:"Northern Ireland"},{text:"Tyrone",country:"GB",region:"Northern Ireland"},{text:"Aberdeen City",country:"GB",region:"Scotland"},{text:"Aberdeenshire",country:"GB",region:"Scotland"},{text:"Angus",country:"GB",region:"Scotland"},{text:"Argyll and Bute",country:"GB",region:"Scotland"},{text:"Armagh",country:"GB",region:"Scotland"},{text:"Carmarthenshire",country:"GB",region:"Scotland"},{text:"Clackmannan",country:"GB",region:"Scotland"},{text:"Dumfries and Galloway",country:"GB",region:"Scotland"},{text:"East Ayrshire",country:"GB",region:"Scotland"},{text:"East Dunbartonshire",country:"GB",region:"Scotland"},{text:"East Lothian",country:"GB",region:"Scotland"},{text:"East Renfrewshire",country:"GB",region:"Scotland"},{text:"Edinburgh City",country:"GB",region:"Scotland"},{text:"Falkirk",country:"GB",region:"Scotland"},{text:"Fife",country:"GB",region:"Scotland"},{text:"Glasgow",country:"GB",region:"Scotland"},{text:"Highland",country:"GB",region:"Scotland"},{text:"Inverclyde",country:"GB",region:"Scotland"},{text:"Midlothian",country:"GB",region:"Scotland"},{text:"Moray",country:"GB",region:"Scotland"},{text:"North Ayrshire",country:"GB",region:"Scotland"},{text:"North Lanarkshire",country:"GB",region:"Scotland"},{text:"Orkney",country:"GB",region:"Scotland"},{text:"Perthshire and Kinross",country:"GB",region:"Scotland"},{text:"Renfrewshire",country:"GB",region:"Scotland"},{text:"Roxburghshire",country:"GB",region:"Scotland"},{text:"Shetland",country:"GB",region:"Scotland"},{text:"South Ayrshire",country:"GB",region:"Scotland"},{text:"South Lanarkshire",country:"GB",region:"Scotland"},{text:"Stirling",country:"GB",region:"Scotland"},{text:"West Dunbartonshire",country:"GB",region:"Scotland"},{text:"West Lothian",country:"GB",region:"Scotland"},{text:"Western Isles",country:"GB",region:"Scotland"},{text:"Blaenau Gwent",country:"GB",region:"Wales"},{text:"Bridgend",country:"GB",region:"Wales"},{text:"Caerphilly",country:"GB",region:"Wales"},{text:"Cardiff",country:"GB",region:"Wales"},{text:"Ceredigion",country:"GB",region:"Wales"},{text:"Conwy",country:"GB",region:"Wales"},{text:"Denbighshire",country:"GB",region:"Wales"},{text:"Flintshire",country:"GB",region:"Wales"},{text:"Gwynedd",country:"GB",region:"Wales"},{text:"Isle of Anglesey",country:"GB",region:"Wales"},{text:"Merthyr Tydfil",country:"GB",region:"Wales"},{text:"Monmouthshire",country:"GB",region:"Wales"},{text:"Neath Port Talbot",country:"GB",region:"Wales"},{text:"Newport",country:"GB",region:"Wales"},{text:"Pembrokeshire",country:"GB",region:"Wales"},{text:"Powys",country:"GB",region:"Wales"},{text:"Rhondda Cynon Taff",country:"GB",region:"Wales"},{text:"Swansea",country:"GB",region:"Wales"},{text:"The Vale of Glamorgan",country:"GB",region:"Wales"},{text:"Torfaen",country:"GB",region:"Wales"},{text:"Wrexham",country:"GB",region:"Wales"}],DE:[{value:"BW",text:"Baden-Württemberg",country:"DE"},{value:"BY",text:"Bayern",country:"DE"},{value:"BE",text:"Berlin",country:"DE"},{value:"BB",text:"Brandenburg",country:"DE"},{value:"HB",text:"Bremen",country:"DE"},{value:"HH",text:"Hamburg",country:"DE"},{value:"HE",text:"Hessen",country:"DE"},{value:"MV",text:"Mecklenburg-Vorpommern",country:"DE"},{value:"NI",text:"Niedersachsen",country:"DE"},{value:"NW",text:"Nordrhein-Westfalen",country:"DE"},{value:"RP",text:"Rheinland-Pfalz",country:"DE"},{value:"SL",text:"Saarland",country:"DE"},{value:"SN",text:"Sachsen",country:"DE"},{value:"ST",text:"Sachsen-Anhalt",country:"DE"},{value:"SH",text:"Schleswig-Holstein",country:"DE"},{value:"TH",text:"Thüringen",country:"DE"}],NL:[{value:"DR",text:"Drenthe",country:"NL"},{value:"FL",text:"Flevoland",country:"NL"},{value:"FR",text:"Friesland",country:"NL",alt:["Fryslân"]},{value:"GD",text:"Gelderland",country:"NL"},{value:"GR",text:"Groningen",country:"NL"},{value:"LB",text:"Limburg",country:"NL"},{value:"NB",text:"Noord-Brabant",country:"NL"},{value:"NH",text:"Noord-Holland",country:"NL"},{value:"OV",text:"Overijssel",country:"NL"},{value:"UT",text:"Utrecht",country:"NL"},{value:"ZH",text:"Zuid-Holland",country:"NL"},{value:"ZL",text:"Zeeland",country:"NL"}],BE:[{value:"ANT",text:"Antwerpen",country:"BE"},{value:"HAI",text:"Henegouwen",country:"BE",alt:["Hainaut"]},{value:"LIE",text:"Luik",country:"BE",alt:["Liège"]},{value:"LIM",text:"Limburg",country:"BE"},{value:"LUX",text:"Luxemburg",country:"BE"},{value:"NAM",text:"textn",country:"BE"},{value:"OVL",text:"Oost-Vlaanderen",country:"BE"},{value:"VBR",text:"Vlaams-Brabant",country:"BE"},{value:"WBR",text:"Waals-Brabant",country:"BE"},{value:"WVL",text:"West-Vlaanderen",country:"BE"}],DK:[{text:"Hovedstaden",country:"DK"},{text:"Midtjylland",country:"DK"},{text:"Nordjylland",country:"DK"},{text:"Sjælland",country:"DK"},{text:"Syddanmark",country:"DK"}],TR:[{text:"Adana",country:"TR"},{text:"Adıyaman",country:"TR"},{text:"Afyonkarahisar",country:"TR"},{text:"Ağrı",country:"TR"},{text:"Amasya",country:"TR"},{text:"Ankara",country:"TR"},{text:"Antalya",country:"TR"},{text:"Artvin",country:"TR"},{text:"Aydın",country:"TR"},{text:"Balıkesir",country:"TR"},{text:"Bilecik",country:"TR"},{text:"Bingöl",country:"TR"},{text:"Bitlis",country:"TR"},{text:"Bolu",country:"TR"},{text:"Burdur",country:"TR"},{text:"Bursa",country:"TR"},{text:"Çanakkale",country:"TR"},{text:"Çankırı",country:"TR"},{text:"Çorum",country:"TR"},{text:"Denizli",country:"TR"},{text:"Diyarbakır",country:"TR"},{text:"Edirne",country:"TR"},{text:"Elazığ",country:"TR"},{text:"Erzincan",country:"TR"},{text:"Erzurum",country:"TR"},{text:"Eskişehir",country:"TR"},{text:"Gaziantep",country:"TR"},{text:"Giresun",country:"TR"},{text:"Gümüşhane",country:"TR"},{text:"Hakkâri",country:"TR"},{text:"Hatay",country:"TR"},{text:"Isparta",country:"TR"},{text:"Mersin",country:"TR"},{text:"Istanbul",country:"TR"},{text:"İzmir",country:"TR"},{text:"Kars",country:"TR"},{text:"Kastamonu",country:"TR"},{text:"Kayseri",country:"TR"},{text:"Kırklareli",country:"TR"},{text:"Kırşehir",country:"TR"},{text:"Kocaeli",country:"TR"},{text:"Konya",country:"TR"},{text:"Kütahya",country:"TR"},{text:"Malatya",country:"TR"},{text:"Manisa",country:"TR"},{text:"Kahramanmaraş",country:"TR"},{text:"Mardin",country:"TR"},{text:"Muğla",country:"TR"},{text:"Muş",country:"TR"},{text:"Nevşehir",country:"TR"},{text:"Niğde",country:"TR"},{text:"Ordu",country:"TR"},{text:"Rize",country:"TR"},{text:"Sakarya",country:"TR"},{text:"Samsun",country:"TR"},{text:"Siirt",country:"TR"},{text:"Sinop",country:"TR"},{text:"Sivas",country:"TR"},{text:"Tekirdağ",country:"TR"},{text:"Tokat",country:"TR"},{text:"Trabzon",country:"TR"},{text:"Tunceli",country:"TR"},{text:"Şanlıurfa",country:"TR"},{text:"Uşak",country:"TR"},{text:"Van",country:"TR"},{text:"Yozgat",country:"TR"},{text:"Zonguldak",country:"TR"},{text:"Aksaray",country:"TR"},{text:"Bayburt",country:"TR"},{text:"Karaman",country:"TR"},{text:"Kırıkkale",country:"TR"},{text:"Batman",country:"TR"},{text:"Şırnak",country:"TR"},{text:"Bartın",country:"TR"},{text:"Ardahan",country:"TR"},{text:"Iğdır",country:"TR"},{text:"Yalova",country:"TR"},{text:"Karabük",country:"TR"},{text:"Kilis",country:"TR"},{text:"Osmaniye",country:"TR"},{text:"Düzce",country:"TR"}],ID:[{value:"ID-AC",text:"Special Region of Aceh",country:"ID"},{value:"ID-BA",text:"Bali",country:"ID"},{value:"ID-BB",text:"Bangka–Belitung Islands",country:"ID"},{value:"ID-BT",text:"Banten",country:"ID"},{value:"ID-BE",text:"Bengkulu",country:"ID"},{value:"ID-JT",text:"Central Java",country:"ID"},{value:"ID-KT",text:"Central Kalimantan",country:"ID"},{value:"ID-ST",text:"Central Sulawesi",country:"ID"},{value:"ID-JI",text:"East Java",country:"ID"},{value:"ID-KI",text:"East Kalimantan",country:"ID"},{value:"ID-NT",text:"East Nusa Tenggara",country:"ID"},{value:"ID-GO",text:"Gorontalo",country:"ID"},{value:"ID-JK",text:"Jakarta Special Capital Region",country:"ID"},{value:"ID-JA",text:"Jambi",country:"ID"},{value:"ID-LA",text:"Lampung",country:"ID"},{value:"ID-MA",text:"Maluku",country:"ID"},{value:"ID-KU",text:"North Kalimantan",country:"ID"},{value:"ID-MU",text:"North Maluku",country:"ID"},{value:"ID-SA",text:"North Sulawesi",country:"ID"},{value:"ID-SU",text:"North Sumatra",country:"ID"},{value:"ID-PA",text:"Special Region of Papua",country:"ID"},{value:"ID-RI",text:"Riau",country:"ID"},{value:"ID-KR",text:"Riau Islands",country:"ID"},{value:"ID-SG",text:"Southeast Sulawesi",country:"ID"},{value:"ID-KS",text:"South Kalimantan",country:"ID"},{value:"ID-SN",text:"South Sulawesi",country:"ID"},{value:"ID-SS",text:"South Sumatra",country:"ID"},{value:"ID-JB",text:"West Java",country:"ID"},{value:"ID-KB",text:"West Kalimantan",country:"ID"},{value:"ID-NB",text:"West Nusa Tenggara",country:"ID"},{value:"ID-PB",text:"Special Region of West Papua",country:"ID"},{value:"ID-SR",text:"West Sulawesi",country:"ID"},{value:"ID-SB",text:"West Sumatra",country:"ID"},{value:"ID-YO",text:"Special Region of Yogyakarta",country:"ID"}],JO:[{text:"Irbid",country:"JO"},{text:"Ajloun",country:"JO"},{text:"Jerash",country:"JO"},{text:"Mafraq",country:"JO"},{text:"Balqa",country:"JO"},{text:"Amman",country:"JO"},{text:"Zarqa",country:"JO"},{text:"Madaba",country:"JO"},{text:"Karak",country:"JO"},{text:"Tafilah",country:"JO"},{text:"Ma'an",country:"JO"},{text:"Aqaba",country:"JO"}],IN:[{value:"AP",text:"Andhra Pradesh",country:"IN"},{value:"AR",text:"Arunachal Pradesh",country:"IN"},{value:"AS",text:"Assam",country:"IN"},{value:"BR",text:"Bihar",country:"IN"},{value:"CT",text:"Chhattisgarh",country:"IN"},{value:"GA",text:"Goa",country:"IN"},{value:"GJ",text:"Gujarat",country:"IN"},{value:"HR",text:"Haryana",country:"IN"},{value:"HP",text:"Himachal Pradesh",country:"IN"},{value:"JK",text:"Jammu and Kashmir",country:"IN"},{value:"JH",text:"Jharkhand",country:"IN"},{value:"KA",text:"Karnataka",country:"IN"},{value:"KL",text:"Kerala",country:"IN"},{value:"MP",text:"Madhya Pradesh",country:"IN"},{value:"MH",text:"Maharashtra",country:"IN"},{value:"MN",text:"Manipur",country:"IN"},{value:"ML",text:"Meghalaya",country:"IN"},{value:"MZ",text:"Mizoram",country:"IN"},{value:"NL",text:"Nagaland",country:"IN"},{value:"OR",text:"Odisha",country:"IN"},{value:"PB",text:"Punjab",country:"IN"},{value:"RJ",text:"Rajasthan",country:"IN"},{value:"SK",text:"Sikkim",country:"IN"},{value:"TN",text:"Tamil Nadu",country:"IN"},{value:"TG",text:"Telangana",country:"IN"},{value:"TR",text:"Tripura",country:"IN"},{value:"UP",text:"Uttar Pradesh",country:"IN"},{value:"UT",text:"Uttarakhand",country:"IN"},{value:"WB",text:"West Bengal",country:"IN"},{value:"AN",text:"Andaman and Nicobar Islands",country:"IN"},{value:"CH",text:"Chandigarh",country:"IN"},{value:"DN",text:"Dadra and Nagar Haveli",country:"IN"},{value:"DD",text:"Daman and Diu",country:"IN"},{value:"LD",text:"Lakshadweep",country:"IN"},{value:"DL",text:"National Capital Territory of Delhi",country:"IN"},{value:"PY",text:"Puducherry",country:"IN"}],KH:[{text:"ភ្នំពេញ",value:"Phnom Penh Municipality",country:"KH"},{text:"បន្ទាយមានជ័យ",value:"Banteay Meanchey",country:"KH"},{text:"បាត់ដំបង",value:"Battambang",country:"KH"},{text:"កំពង់ចាម",value:"Kampong Cham",country:"KH"},{text:"កំពង់ឆ្នាំង",value:"Kampong Chhnang",country:"KH"},{text:"កំពង់ស្ពឺ",value:"Kampong Speu",country:"KH"},{text:"កំពង់ធំ",value:"Kampong Thom",country:"KH"},{text:"កំពត",value:"Kampot",country:"KH"},{text:"កណ្តាល",value:"Kandal",country:"KH"},{text:"កោះកុង",value:"Koh Kong",country:"KH"},{text:"កែប",value:"Kep",country:"KH"},{text:"ក្រចេះ",value:"Kratié",country:"KH"},{text:"មណ្ឌលគីរី",value:"Mondulkiri",country:"KH"},{text:"ឧត្តរមានជ័យ",value:"Oddar Meanchey",country:"KH"},{text:"បៃលិន",value:"Pailin",country:"KH"},{text:"ព្រះសីហនុ",value:"Preah Sihanouk",country:"KH"},{text:"ព្រះវិហារ",value:"Preah Vihear",country:"KH"},{text:"ពោធិ៍សាត់",value:"Pursat",country:"KH"},{text:"ព្រៃវែង",value:"Prey Veng",country:"KH"},{text:"រតនគីរី",value:"Ratanakiri",country:"KH"},{text:"សៀមរាប",value:"Siem Reap",country:"KH"},{text:"ស្ទឹងត្រែង",value:"Stung Treng",country:"KH"},{text:"ស្វាយរៀង",value:"Svay Rieng",country:"KH"},{text:"តាកែវ",value:"Takéo",country:"KH"},{text:"ត្បូងឃ្មុំ",value:"Tbong Khmum",country:"KH"}],ET:[{text:"Addis Ababa",country:"ET"},{text:"Afar Region",country:"ET"},{text:"Amhara Region",country:"ET"},{text:"Benishangul-Gumuz",country:"ET"},{text:"Dire Dawa",country:"ET"},{text:"Gambela",country:"ET"},{text:"Harari",country:"ET"},{text:"Oromia",country:"ET"},{text:"Somali",country:"ET"},{text:"Southern Nations, Nationalities, and Peoples' Region",country:"ET"},{text:"Tigray Region",country:"ET"}],PE:[{text:"Chachapoyas",region:"Amazonas",country:"PE"},{text:"Bagua",region:"Amazonas",country:"PE"},{text:"Bongará",region:"Amazonas",country:"PE"},{text:"Condorcanqui",region:"Amazonas",country:"PE"},{text:"Luya",region:"Amazonas",country:"PE"},{text:"Rodríguez de Mendoza",region:"Amazonas",country:"PE"},{text:"Utcubamba",region:"Amazonas",country:"PE"},{text:"Huaraz",region:"Ancash",country:"PE"},{text:"Aija",region:"Ancash",country:"PE"},{text:"Antonio Raymondi",region:"Ancash",country:"PE"},{text:"Asunción",region:"Ancash",country:"PE"},{text:"Bolognesi",region:"Ancash",country:"PE"},{text:"Carhuaz",region:"Ancash",country:"PE"},{text:"Carlos Fermín Fitzcarrald",region:"Ancash",country:"PE"},{text:"Casma",region:"Ancash",country:"PE"},{text:"Corongo",region:"Ancash",country:"PE"},{text:"Huari",region:"Ancash",country:"PE"},{text:"Huarmey",region:"Ancash",country:"PE"},{text:"Huaylas",region:"Ancash",country:"PE"},{text:"Mariscal Luzuriaga",region:"Ancash",country:"PE"},{text:"Ocros",region:"Ancash",country:"PE"},{text:"Pallasca",region:"Ancash",country:"PE"},{text:"Pomabamba",region:"Ancash",country:"PE"},{text:"Recuay",region:"Ancash",country:"PE"},{text:"Santa",region:"Ancash",country:"PE"},{text:"Sihuas",region:"Ancash",country:"PE"},{text:"Yungay",region:"Ancash",country:"PE"},{text:"Abancay",region:"Apurímac",country:"PE"},{text:"Andahuaylas",region:"Apurímac",country:"PE"},{text:"Antabamba",region:"Apurímac",country:"PE"},{text:"Aymaraes",region:"Apurímac",country:"PE"},{text:"Cotabambas",region:"Apurímac",country:"PE"},{text:"Chincheros",region:"Apurímac",country:"PE"},{text:"Grau",region:"Apurímac",country:"PE"},{text:"Arequipa",region:"Arequipa",country:"PE"},{text:"Camaná",region:"Arequipa",country:"PE"},{text:"Caravelí",region:"Arequipa",country:"PE"},{text:"Castilla",region:"Arequipa",country:"PE"},{text:"Caylloma",region:"Arequipa",country:"PE"},{text:"Condesuyos",region:"Arequipa",country:"PE"},{text:"Islay",region:"Arequipa",country:"PE"},{text:"La Unión",region:"Arequipa",country:"PE"},{text:"Huamanga",region:"Ayacucho",country:"PE"},{text:"Cangallo",region:"Ayacucho",country:"PE"},{text:"Huanca Sancos",region:"Ayacucho",country:"PE"},{text:"Huanta",region:"Ayacucho",country:"PE"},{text:"La Mar",region:"Ayacucho",country:"PE"},{text:"Lucanas",region:"Ayacucho",country:"PE"},{text:"Parinacochas",region:"Ayacucho",country:"PE"},{text:"Páucar del Sara Sara",region:"Ayacucho",country:"PE"},{text:"Sucre",region:"Ayacucho",country:"PE"},{text:"Víctor Fajardo",region:"Ayacucho",country:"PE"},{text:"Vilcas Huamán",region:"Ayacucho",country:"PE"},{text:"Cajamarca",region:"Cajamarca",country:"PE"},{text:"Cajabamba",region:"Cajamarca",country:"PE"},{text:"Celendín",region:"Cajamarca",country:"PE"},{text:"Chota",region:"Cajamarca",country:"PE"},{text:"Contumazá",region:"Cajamarca",country:"PE"},{text:"Cutervo",region:"Cajamarca",country:"PE"},{text:"Hualgayoc",region:"Cajamarca",country:"PE"},{text:"Jaén",region:"Cajamarca",country:"PE"},{text:"San Ignacio",region:"Cajamarca",country:"PE"},{text:"San Marcos",region:"Cajamarca",country:"PE"},{text:"San Miguel",region:"Cajamarca",country:"PE"},{text:"San Pablo",region:"Cajamarca",country:"PE"},{text:"Santa Cruz",region:"Cajamarca",country:"PE"},{text:"Callao",region:"Callao",country:"PE"},{text:"Cusco",region:"Cusco",country:"PE"},{text:"Acomayo",region:"Cusco",country:"PE"},{text:"Anta",region:"Cusco",country:"PE"},{text:"Calca",region:"Cusco",country:"PE"},{text:"Canas",region:"Cusco",country:"PE"},{text:"Canchis",region:"Cusco",country:"PE"},{text:"Chumbivilcas",region:"Cusco",country:"PE"},{text:"Espinar",region:"Cusco",country:"PE"},{text:"La Convención",region:"Cusco",country:"PE"},{text:"Paruro",region:"Cusco",country:"PE"},{text:"Paucartambo",region:"Cusco",country:"PE"},{text:"Quispicanchi",region:"Cusco",country:"PE"},{text:"Urubamba",region:"Cusco",country:"PE"},{text:"Huancavelica",region:"Huancavelica",country:"PE"},{text:"Acobamba",region:"Huancavelica",country:"PE"},{text:"Angaraes",region:"Huancavelica",country:"PE"},{text:"Castrovirreyna",region:"Huancavelica",country:"PE"},{text:"Churcampa",region:"Huancavelica",country:"PE"},{text:"Huaytará",region:"Huancavelica",country:"PE"},{text:"Tayacaja",region:"Huancavelica",country:"PE"},{text:"Huánuco",region:"Huánuco",country:"PE"},{text:"Ambo",region:"Huánuco",country:"PE"},{text:"Dos de Mayo",region:"Huánuco",country:"PE"},{text:"Huacaybamba",region:"Huánuco",country:"PE"},{text:"Huamalíes",region:"Huánuco",country:"PE"},{text:"Leoncio Prado",region:"Huánuco",country:"PE"},{text:"Marañón",region:"Huánuco",country:"PE"},{text:"Pachitea",region:"Huánuco",country:"PE"},{text:"Puerto Inca",region:"Huánuco",country:"PE"},{text:"Lauricocha",region:"Huánuco",country:"PE"},{text:"Yarowilca",region:"Huánuco",country:"PE"},{text:"Ica",region:"Ica",country:"PE"},{text:"Chincha",region:"Ica",country:"PE"},{text:"Nazca",region:"Ica",country:"PE"},{text:"Palpa",region:"Ica",country:"PE"},{text:"Pisco",region:"Ica",country:"PE"},{text:"Huancayo",region:"Junín",country:"PE"},{text:"Concepción",region:"Junín",country:"PE"},{text:"Chanchamayo",region:"Junín",country:"PE"},{text:"Jauja",region:"Junín",country:"PE"},{text:"Junín",region:"Junín",country:"PE"},{text:"Satipo",region:"Junín",country:"PE"},{text:"Tarma",region:"Junín",country:"PE"},{text:"Yauli",region:"Junín",country:"PE"},{text:"Chupaca",region:"Junín",country:"PE"},{text:"Trujillo",region:"La Libertad",country:"PE"},{text:"Ascope",region:"La Libertad",country:"PE"},{text:"Bolívar",region:"La Libertad",country:"PE"},{text:"Chepén",region:"La Libertad",country:"PE"},{text:"Julcán",region:"La Libertad",country:"PE"},{text:"Otuzco",region:"La Libertad",country:"PE"},{text:"Pacasmayo",region:"La Libertad",country:"PE"},{text:"Pataz",region:"La Libertad",country:"PE"},{text:"Sánchez Carrión",region:"La Libertad",country:"PE"},{text:"Santiago de Chuco",region:"La Libertad",country:"PE"},{text:"Gran Chimú",region:"La Libertad",country:"PE"},{text:"Virú",region:"La Libertad",country:"PE"},{text:"Chiclayo",region:"Lambayeque",country:"PE"},{text:"Ferreñafe",region:"Lambayeque",country:"PE"},{text:"Lambayeque",region:"Lambayeque",country:"PE"},{text:"Lima",region:"autonomous",country:"PE"},{text:"Huaura",region:"Lima",country:"PE"},{text:"Barranca",region:"Lima",country:"PE"},{text:"Cajatambo",region:"Lima",country:"PE"},{text:"Canta",region:"Lima",country:"PE"},{text:"Cañete",region:"Lima",country:"PE"},{text:"Huaral",region:"Lima",country:"PE"},{text:"Huarochirí",region:"Lima",country:"PE"},{text:"Oyón",region:"Lima",country:"PE"},{text:"Yauyos",region:"Lima",country:"PE"},{text:"Maynas",region:"Loreto",country:"PE"},{text:"Alto Amazonas",region:"Loreto",country:"PE"},{text:"Loreto",region:"Loreto",country:"PE"},{text:"Mariscal Ramón Castilla",region:"Loreto",country:"PE"},{text:"Putumayo",region:"Loreto",country:"PE"},{text:"Requena",region:"Loreto",country:"PE"},{text:"Ucayali",region:"Loreto",country:"PE"},{text:"Datem del Marañón",region:"Loreto",country:"PE"},{text:"Tambopata",region:"Madre de Dios",country:"PE"},{text:"Manú",region:"Madre de Dios",country:"PE"},{text:"Tahuamanu",region:"Madre de Dios",country:"PE"},{text:"Mariscal Nieto",region:"Moquegua",country:"PE"},{text:"General Sánchez Cerro",region:"Moquegua",country:"PE"},{text:"Ilo",region:"Moquegua",country:"PE"},{text:"Pasco",region:"Pasco",country:"PE"},{text:"Daniel Alcídes Carrión",region:"Pasco",country:"PE"},{text:"Oxapampa",region:"Pasco",country:"PE"},{text:"Piura",region:"Piura",country:"PE"},{text:"Ayabaca",region:"Piura",country:"PE"},{text:"Huancabamba",region:"Piura",country:"PE"},{text:"Morropón",region:"Piura",country:"PE"},{text:"Paita",region:"Piura",country:"PE"},{text:"Sullana",region:"Piura",country:"PE"},{text:"Talara",region:"Piura",country:"PE"},{text:"Sechura",region:"Piura",country:"PE"},{text:"Puno",region:"Puno",country:"PE"},{text:"Azángaro",region:"Puno",country:"PE"},{text:"Carabaya",region:"Puno",country:"PE"},{text:"Chucuito",region:"Puno",country:"PE"},{text:"El Collao",region:"Puno",country:"PE"},{text:"Huancané",region:"Puno",country:"PE"},{text:"Lampa",region:"Puno",country:"PE"},{text:"Melgar",region:"Puno",country:"PE"},{text:"Moho",region:"Puno",country:"PE"},{text:"San Antonio de Putina",region:"Puno",country:"PE"},{text:"San Román",region:"Puno",country:"PE"},{text:"Sandia",region:"Puno",country:"PE"},{text:"Yunguyo",region:"Puno",country:"PE"},{text:"Moyobamba",region:"San Martín",country:"PE"},{text:"Bellavista",region:"San Martín",country:"PE"},{text:"El Dorado",region:"San Martín",country:"PE"},{text:"Huallaga",region:"San Martín",country:"PE"},{text:"Lamas",region:"San Martín",country:"PE"},{text:"Mariscal Cáceres",region:"San Martín",country:"PE"},{text:"Picota",region:"San Martín",country:"PE"},{text:"Rioja",region:"San Martín",country:"PE"},{text:"San Martín",region:"San Martín",country:"PE"},{text:"Tocache",region:"San Martín",country:"PE"},{text:"Tacna",region:"Tacna",country:"PE"},{text:"Candarave",region:"Tacna",country:"PE"},{text:"Jorge Basadre",region:"Tacna",country:"PE"},{text:"Tarata",region:"Tacna",country:"PE"},{text:"Tumbes",region:"Tumbes",country:"PE"},{text:"Contralmirante Villar",region:"Tumbes",country:"PE"},{text:"Zarumilla",region:"Tumbes",country:"PE"},{text:"Coronel Portillo",region:"Ucayali",country:"PE"},{text:"Atalaya",region:"Ucayali",country:"PE"},{text:"Padre Abad",region:"Ucayali",country:"PE"},{text:"Purús",region:"Ucayali",country:"PE"}],CU:[{text:"Camagüey",country:"CU"},{text:"Ciego de Ávila",country:"CU"},{text:"Cienfuegos",country:"CU"},{text:"Havana",country:"CU"},{text:"Bayamo",country:"CU"},{text:"Guantánamo",country:"CU"},{text:"Holguín",country:"CU"},{text:"Nueva Gerona",country:"CU"},{text:"Artemisa",country:"CU"},{text:"Las Tunas",country:"CU"},{text:"Matanzas",country:"CU"},{text:"San José de las Lajas",country:"CU"},{text:"Pinar del Río",country:"CU"},{text:"Sancti Spíritus",country:"CU"},{text:"Santiago de Cuba",country:"CU"},{text:"Santa Clara",country:"CU"}],AR:[{text:"Ciudad Autónoma de Buenos Aires",country:"AR"},{text:"Buenos Aires",country:"AR"},{text:"Catamarca",country:"AR"},{text:"Chaco",country:"AR"},{text:"Chubut",country:"AR"},{text:"Córdoba",country:"AR"},{text:"Corrientes",country:"AR"},{text:"Entre Ríos",country:"AR"},{text:"Formosa",country:"AR"},{text:"Jujuy",country:"AR"},{text:"La Pampa",country:"AR"},{text:"La Rioja",country:"AR"},{text:"Mendoza",country:"AR"},{text:"Misiones",country:"AR"},{text:"Neuquén",country:"AR"},{text:"Río Negro",country:"AR"},{text:"Salta",country:"AR"},{text:"San Juan",country:"AR"},{text:"San Luis",country:"AR"},{text:"Santa Cruz",country:"AR"},{text:"Santa Fe",country:"AR"},{text:"Santiago del Estero",country:"AR"},{text:"Tierra del Fuego, Antártida e Islas del Atlántico Sur",country:"AR"},{text:"Tucumán",country:"AR"}],CL:[{text:"Arica",region:"XV Arica and Parinacota",country:"CL"},{text:"Parinacota",region:"XV Arica and Parinacota",country:"CL"},{text:"Iquique",region:"I Tarapacá",country:"CL"},{text:"Tamarugal",region:"I Tarapacá",country:"CL"},{text:"Antofagasta",region:"II Antofagasta",country:"CL"},{text:"El Loa",region:"II Antofagasta",country:"CL"},{text:"Tocopilla",region:"II Antofagasta",country:"CL"},{text:"Copiapó",region:"III Atacama",country:"CL"},{text:"Huasco",region:"III Atacama",country:"CL"},{text:"Chañaral",region:"III Atacama",country:"CL"},{text:"Elqui",region:"IV Coquimbo",country:"CL"},{text:"Limarí",region:"IV Coquimbo",country:"CL"},{text:"Choapa",region:"IV Coquimbo",country:"CL"},{text:"Isla de Pascua",region:"V Valparaíso",country:"CL"},{text:"Los Andes",region:"V Valparaíso",country:"CL"},{text:"Marga Marga",region:"V Valparaíso",country:"CL"},{text:"Petorca",region:"V Valparaíso",country:"CL"},{text:"Quillota",region:"V Valparaíso",country:"CL"},{text:"San Antonio",region:"V Valparaíso",country:"CL"},{text:"San Felipe de Aconcagua",region:"V Valparaíso",country:"CL"},{text:"Valparaíso",region:"V Valparaíso",country:"CL"},{text:"Cachapoal",region:"VI O'Higgins",country:"CL"},{text:"Colchagua",region:"VI O'Higgins",country:"CL"},{text:"Cardenal Caro",region:"VI O'Higgins",country:"CL"},{text:"Talca",region:"VII Maule",country:"CL"},{text:"Linares",region:"VII Maule",country:"CL"},{text:"Curicó",region:"VII Maule",country:"CL"},{text:"Cauquenes",region:"VII Maule",country:"CL"},{text:"Concepción",region:"VIII Biobío",country:"CL"},{text:"Ñuble",region:"VIII Biobío",country:"CL"},{text:"Biobío",region:"VIII Biobío",country:"CL"},{text:"Arauco",region:"VIII Biobío",country:"CL"},{text:"Cautin",region:"IX Araucanía",country:"CL"},{text:"Malleco",region:"IX Araucanía",country:"CL"},{text:"Valdivia",region:"XIV Los Ríos",country:"CL"},{text:"Ranco",region:"XIV Los Ríos",country:"CL"},{text:"Llanquihue",region:"X Los Lagos",country:"CL"},{text:"Osorno",region:"X Los Lagos",country:"CL"},{text:"Chiloe",region:"X Los Lagos",country:"CL"},{text:"Palena",region:"X Los Lagos",country:"CL"},{text:"Coihaique",region:"XI Aisén",country:"CL"},{text:"Aisén",region:"XI Aisén",country:"CL"},{text:"General Carrera",region:"XI Aisén",country:"CL"},{text:"Capitan Prat",region:"XI Aisén",country:"CL"},{text:"Magallanes",region:"XII Magallanes",country:"CL"},{text:"Ultima Esperanza",region:"XII Magallanes",country:"CL"},{text:"Tierra del Fuego",region:"XII Magallanes",country:"CL"},{text:"Antártica Chilena",region:"XII Magallanes",country:"CL"},{text:"Santiago",region:"RM Santiago Metropolitan",country:"CL"},{text:"Cordillera",region:"RM Santiago Metropolitan",country:"CL"},{text:"Maipo",region:"RM Santiago Metropolitan",country:"CL"},{text:"Talagante",region:"RM Santiago Metropolitan",country:"CL"},{text:"Melipilla",region:"RM Santiago Metropolitan",country:"CL"},{text:"Chacabuco",region:"RM Santiago Metropolitan",country:"CL"}],BO:[{text:"Cercado",region:"Beni",country:"BO"},{text:"Iténez",region:"Beni",country:"BO"},{text:"José Ballivián",region:"Beni",country:"BO"},{text:"Mamoré",region:"Beni",country:"BO"},{text:"Marbán",region:"Beni",country:"BO"},{text:"Moxos",region:"Beni",country:"BO"},{text:"Vaca Díez",region:"Beni",country:"BO"},{text:"Yacuma",region:"Beni",country:"BO"},{text:"Azurduy",region:"Chuquisaca",country:"BO"},{text:"Belisario Boeto",region:"Chuquisaca",country:"BO"},{text:"Hernando Siles",region:"Chuquisaca",country:"BO"},{text:"Jaime Zudáñez",region:"Chuquisaca",country:"BO"},{text:"Luis Calvo",region:"Chuquisaca",country:"BO"},{text:"Nor Cinti",region:"Chuquisaca",country:"BO"},{text:"Oropeza",region:"Chuquisaca",country:"BO"},{text:"Sud Cinti",region:"Chuquisaca",country:"BO"},{text:"Tomina",region:"Chuquisaca",country:"BO"},{text:"Yamparáez",region:"Chuquisaca",country:"BO"},{text:"Arani",region:"Cochabamba",country:"BO"},{text:"Arque",region:"Cochabamba",country:"BO"},{text:"Ayopaya",region:"Cochabamba",country:"BO"},{text:"Capinota",region:"Cochabamba",country:"BO"},{text:"Carrasco",region:"Cochabamba",country:"BO"},{text:"Cercado",region:"Cochabamba",country:"BO"},{text:"Chapare",region:"Cochabamba",country:"BO"},{text:"Esteban Arce",region:"Cochabamba",country:"BO"},{text:"Germán Jordán",region:"Cochabamba",country:"BO"},{text:"Mizque",region:"Cochabamba",country:"BO"},{text:"Campero",region:"Cochabamba",country:"BO"},{text:"Punata",region:"Cochabamba",country:"BO"},{text:"Quillacollo",region:"Cochabamba",country:"BO"},{text:"Bolívar",region:"Cochabamba",country:"BO"},{text:"Tapacarí",region:"Cochabamba",country:"BO"},{text:"Tiraque",region:"Cochabamba",country:"BO"},{text:"Abel Iturralde",region:"La Paz",country:"BO"},{text:"Aroma",region:"La Paz",country:"BO"},{text:"Bautista Saavedra",region:"La Paz",country:"BO"},{text:"Caranavi",region:"La Paz",country:"BO"},{text:"Eliodoro Camacho",region:"La Paz",country:"BO"},{text:"Franz Tamayo",region:"La Paz",country:"BO"},{text:"Gualberto Villarroel",region:"La Paz",country:"BO"},{text:"Ingavi",region:"La Paz",country:"BO"},{text:"Inquisivi",region:"La Paz",country:"BO"},{text:"José Manuel Pando",region:"La Paz",country:"BO"},{text:"Larecaja",region:"La Paz",country:"BO"},{text:"Loayza",region:"La Paz",country:"BO"},{text:"Los Andes",region:"La Paz",country:"BO"},{text:"Manco Kapac",region:"La Paz",country:"BO"},{text:"Muñecas",region:"La Paz",country:"BO"},{text:"Nor Yungas",region:"La Paz",country:"BO"},{text:"Omasuyos",region:"La Paz",country:"BO"},{text:"Pacajes",region:"La Paz",country:"BO"},{text:"Murillo",region:"La Paz",country:"BO"},{text:"Sud Yungas",region:"La Paz",country:"BO"},{text:"Atahuallpa",region:"Oruro",country:"BO"},{text:"Carangas",region:"Oruro",country:"BO"},{text:"Cercado",region:"Oruro",country:"BO"},{text:"Eduardo Avaroa",region:"Oruro",country:"BO"},{text:"Ladislao Cabrera",region:"Oruro",country:"BO"},{text:"Litoral",region:"Oruro",country:"BO"},{text:"Nor Carangas",region:"Oruro",country:"BO"},{text:"Pantaléon Dalence",region:"Oruro",country:"BO"},{text:"Poopó",region:"Oruro",country:"BO"},{text:"Puerto de Mejillones",region:"Oruro",country:"BO"},{text:"Sajama",region:"Oruro",country:"BO"},{text:"San Pedro de Totora",region:"Oruro",country:"BO"},{text:"Saucarí",region:"Oruro",country:"BO"},{text:"Sebastián Pagador",region:"Oruro",country:"BO"},{text:"Sud Carangas",region:"Oruro",country:"BO"},{text:"Tomas Barrón",region:"Oruro",country:"BO"},{text:"Abuná",region:"Pando",country:"BO"},{text:"Federico Román",region:"Pando",country:"BO"},{text:"Madre de Dios",region:"Pando",country:"BO"},{text:"Manuripi",region:"Pando",country:"BO"},{text:"Nicolás Suárez",region:"Pando",country:"BO"},{text:"Alonso de Ibáñez",region:"Potosí",country:"BO"},{text:"Antonio Quijarro",region:"Potosí",country:"BO"},{text:"Bernardino Bilbao",region:"Potosí",country:"BO"},{text:"Charcas",region:"Potosí",country:"BO"},{text:"Chayanta",region:"Potosí",country:"BO"},{text:"Cornelio Saavedra",region:"Potosí",country:"BO"},{text:"Daniel Campos",region:"Potosí",country:"BO"},{text:"Enrique Baldivieso",region:"Potosí",country:"BO"},{text:"José María Linares",region:"Potosí",country:"BO"},{text:"Modesto Omiste",region:"Potosí",country:"BO"},{text:"Nor Chichas",region:"Potosí",country:"BO"},{text:"Nor Lípez",region:"Potosí",country:"BO"},{text:"Rafael Bustillo",region:"Potosí",country:"BO"},{text:"Sur Chichas",region:"Potosí",country:"BO"},{text:"Sur Lípez",region:"Potosí",country:"BO"},{text:"Tomás Frías",region:"Potosí",country:"BO"},{text:"Andrés Ibáñez",region:"Santa Cruz",country:"BO"},{text:"Ángel Sandoval",region:"Santa Cruz",country:"BO"},{text:"Chiquitos",region:"Santa Cruz",country:"BO"},{text:"Cordillera",region:"Santa Cruz",country:"BO"},{text:"Florida",region:"Santa Cruz",country:"BO"},{text:"Germán Busch",region:"Santa Cruz",country:"BO"},{text:"Guarayos",region:"Santa Cruz",country:"BO"},{text:"Ichilo",region:"Santa Cruz",country:"BO"},{text:"Ignacio Warnes",region:"Santa Cruz",country:"BO"},{text:"José Miguel de Velasco",region:"Santa Cruz",country:"BO"},{text:"Manuel María Caballero",region:"Santa Cruz",country:"BO"},{text:"Ñuflo de Chávez",region:"Santa Cruz",country:"BO"},{text:"Obispo Santistevan",region:"Santa Cruz",country:"BO"},{text:"Sara",region:"Santa Cruz",country:"BO"},{text:"Vallegrande",region:"Santa Cruz",country:"BO"},{text:"Aniceto Arce",region:"Tarija",country:"BO"},{text:"Burnet O'Connor",region:"Tarija",country:"BO"},{text:"Cercado",region:"Tarija",country:"BO"},{text:"Eustaquio Méndez",region:"Tarija",country:"BO"},{text:"Gran Chaco",region:"Tarija",country:"BO"},{text:"José María Avilés",region:"Tarija",country:"BO"}],ES:[{text:"La Coruña",value:"C",country:"ES"},{text:"Lugo",value:"LU",country:"ES"},{text:"Vizcaya",value:"BI",country:"ES"},{text:"Guipúzcoa",value:"SS",country:"ES"},{text:"Huesca",value:"HU",country:"ES"},{text:"Lérida",value:"L",country:"ES"},{text:"Gerona",value:"GI",country:"ES"},{text:"Barcelona",value:"B",country:"ES"},{text:"Tarragona",value:"T",country:"ES"},{text:"Castellón",value:"CS",country:"ES"},{text:"Valencia",value:"V",country:"ES"},{text:"Alicante",value:"A",country:"ES"},{text:"Murcia",value:"MU",country:"ES"},{text:"Zaragoza",value:"Z",country:"ES"},{text:"Teruel",value:"TE",country:"ES"},{text:"Cuenca",value:"CU",country:"ES"},{text:"Albacete",value:"AB",country:"ES"},{text:"Almeria",value:"AL",country:"ES"},{text:"Granada",value:"GR",country:"ES"},{text:"Málaga",value:"MA",country:"ES"},{text:"Tenerife",value:"TF",country:"ES"},{text:"Cádiz",value:"CA",country:"ES"},{text:"Sevilla",value:"SE",country:"ES"},{text:"Huelva",value:"H",country:"ES"},{text:"Las Palmas",value:"GC",country:"ES"},{text:"Madrid",value:"M",country:"ES"},{text:"Badajoz",value:"BA",country:"ES"},{text:"Cáceres",value:"CC",country:"ES"},{text:"Toledo",value:"TO",country:"ES"},{text:"Ciudad Real",value:"CR",country:"ES"},{text:"Salamanca",value:"SA",country:"ES"},{text:"Córdoba",value:"CO",country:"ES"},{text:"Jaén",value:"J",country:"ES"},{text:"Ávila",value:"AV",country:"ES"},{text:"Valladolid",value:"VA",country:"ES"},{text:"Zamora",value:"ZA",country:"ES"},{text:"Álava",value:"VI",country:"ES"},{text:"Segovia",value:"SG",country:"ES"},{text:"Burgos",value:"BU",country:"ES"},{text:"Pontevedra",value:"PO",country:"ES"},{text:"León",value:"LE",country:"ES"},{text:"Orense",value:"OU",country:"ES"},{text:"Palencia",value:"P",country:"ES"},{text:"La Rioja",value:"LO",country:"ES"},{text:"Soria",value:"SO",country:"ES"},{text:"Guadalajara",value:"GU",country:"ES"}],BD:[{text:"বরগুনা",value:"Barguna",region:"Barisal",country:"BD"},{text:"বরিশাল",value:"Barisal",region:"Barisal",country:"BD"},{text:"ভোলা",value:"Bhola",region:"Barisal",country:"BD"},{text:"ঝালকাঠি",value:"Jhalokati",region:"Barisal",country:"BD"},{text:"পটুয়াখালী",value:"Patuakhali",region:"Barisal",country:"BD"},{text:"পিরোজপুর",value:"Pirojpur",region:"Barisal",country:"BD"},{text:"বান্দরবান",value:"Bandarban",region:"Chittagong",country:"BD"},{text:"ব্রাহ্মণবাড়ীয়া",value:"Brahmanbaria",region:"Chittagong",country:"BD"},{text:"চাঁদপুর",value:"Chandpur",region:"Chittagong",country:"BD"},{text:"চট্টগ্রাম",value:"Chittagong",region:"Chittagong",country:"BD"},{text:"কুমিল্লা",value:"Comilla",region:"Chittagong",country:"BD"},{text:"কক্সবাজার",value:"Cox's Bazar",region:"Chittagong",country:"BD"},{text:"ফেনী",value:"Feni",region:"Chittagong",country:"BD"},{text:"খাগড়াছড়ি",value:"Khagrachhari",region:"Chittagong",country:"BD"},{text:"লক্ষীপুর",value:"Lakshmipur",region:"Chittagong",country:"BD"},{text:"নোয়াখালী",value:"Noakhali",region:"Chittagong",country:"BD"},{text:"রাঙ্গামাটি",value:"Rangamati",region:"Chittagong",country:"BD"},{text:"ঢাকা",value:"Dhaka",region:"Dhaka",country:"BD"},{text:"ফরিদপুর",value:"Faridpur",region:"Dhaka",country:"BD"},{text:"গাজীপুর",value:"Gazipur",region:"Dhaka",country:"BD"},{text:"গোপালগঞ্জ",value:"Gopalganj",region:"Dhaka",country:"BD"},{text:"জামালপুর",value:"Jamalpur",region:"Dhaka",country:"BD"},{text:"কিশোরগঞ্জ",value:"Kishoreganj",region:"Dhaka",country:"BD"},{text:"মাদারীপুর",value:"Madaripur",region:"Dhaka",country:"BD"},{text:"মানিকগঞ্জ",value:"Manikganj",region:"Dhaka",country:"BD"},{text:"মুন্সীগঞ্জ",value:"Munshiganj",region:"Dhaka",country:"BD"},{text:"ময়মনসিংহ",value:"Mymensingh",region:"Dhaka",country:"BD"},{text:"নারায়ণগঞ্জ",value:"Narayanganj",region:"Dhaka",country:"BD"},{text:"নরসিংদী",value:"Narsingdi",region:"Dhaka",country:"BD"},{text:"নেত্রকোনা",value:"Netrakona",region:"Dhaka",country:"BD"},{text:"রাজবাড়ী",value:"Rajbari",region:"Dhaka",country:"BD"},{text:"শরীয়তপুর",value:"Shariatpur",region:"Dhaka",country:"BD"},{text:"শেরপুর",value:"Sherpur",region:"Dhaka",country:"BD"},{text:"টাঙ্গাইল",value:"Tangail",region:"Dhaka",country:"BD"},{text:"বাগেরহাট",value:"Bagerhat",region:"Khulna",country:"BD"},{text:"চুয়াডাঙ্গা",value:"Chuadanga",region:"Khulna",country:"BD"},{text:"যশোর",value:"Jessore",region:"Khulna",country:"BD"},{text:"ঝিনাইদহ",value:"Jhenaidah",region:"Khulna",country:"BD"},{text:"খুলনা",value:"Khulna",region:"Khulna",country:"BD"},{text:"কুষ্টিয়া",value:"Kushtia",region:"Khulna",country:"BD"},{text:"মাগুরা",value:"Magura",region:"Khulna",country:"BD"},{text:"মেহেরপুর",value:"Meherpur",region:"Khulna",country:"BD"},{text:"নড়াইল",value:"Narail",region:"Khulna",country:"BD"},{text:"সাতক্ষিরা",value:"Satkhira",region:"Khulna",country:"BD"},{text:"বগুড়া",value:"Bogra",region:"Rajshahi",country:"BD"},{text:"জয়পুরহাট",value:"Joypurhat",region:"Rajshahi",country:"BD"},{text:"নওগাঁ",value:"Naogaon",region:"Rajshahi",country:"BD"},{text:"নাটোর",value:"Natore",region:"Rajshahi",country:"BD"},{text:"নওয়াবগঞ্জ",value:"Chapainawabganj",region:"Rajshahi",country:"BD"},{text:"পাবনা",value:"Pabna",region:"Rajshahi",country:"BD"},{text:"রাজশাহী",value:"Rajshahi",region:"Rajshahi",country:"BD"},{text:"সিরাজগঞ্জ",value:"Sirajganj",region:"Rajshahi",country:"BD"},{text:"দিনাজপুর",value:"Dinajpur",region:"Rangpur",country:"BD"},{text:"গাইবান্ধা",value:"Gaibandha",region:"Rangpur",country:"BD"},{text:"কুড়িগ্রাম",value:"Kurigram",region:"Rangpur",country:"BD"},{text:"লালমনিরহাট",value:"Lalmonirhat",region:"Rangpur",country:"BD"},{text:"নীলফামারী",value:"Nilphamari",region:"Rangpur",country:"BD"},{text:"পঞ্চগড়",value:"Panchagarh",region:"Rangpur",country:"BD"},{text:"রংপুর",value:"Rangpur",region:"Rangpur",country:"BD"},{text:"ঠাকুরগাঁ",value:"Thakurgaon",region:"Rangpur",country:"BD"},{text:"হবিগঞ্জ",value:"Habiganj",region:"Sylhet",country:"BD"},{text:"মৌলভীবাজার",value:"Moulvibazar",region:"Sylhet",country:"BD"},{text:"সুনামগঞ্জ",value:"Sunamganj",region:"Sylhet",country:"BD"},{text:"সিলেট",value:"Sylhet",region:"Sylhet",country:"BD"}],PK:[{text:"Azad Kashmir",country:"PK"},{text:"Bahawalpur",country:"PK"},{text:"Bannu",country:"PK"},{text:"Dera Ghazi Khan",country:"PK"},{text:"Dera Ismail Khan",country:"PK"},{text:"Faisalabad",country:"PK"},{text:"F.A.T.A.",country:"PK"},{text:"Gujranwala",country:"PK"},{text:"Hazara",country:"PK"},{text:"Hyderabad",country:"PK"},{text:"Islamabad",country:"PK"},{text:"Kalat",country:"PK"},{text:"Karachi",country:"PK"},{text:"Kohat",country:"PK"},{text:"Lahore",country:"PK"},{text:"Larkana",country:"PK"},{text:"Makran",country:"PK"},{text:"Malakand",country:"PK"},{text:"Mardan",country:"PK"},{text:"Mirpur Khas",country:"PK"},{text:"Multan",country:"PK"},{text:"Nasirabad",country:"PK"},{text:"Northern Areas",country:"PK"},{text:"Peshawar",country:"PK"},{text:"Quetta",country:"PK"},{text:"Rawalpindi",country:"PK"},{text:"Sargodha",country:"PK"},{text:"Sahiwal",country:"PK"},{text:"Sibi",country:"PK"},{text:"Sukkur",country:"PK"},{text:"Zhob",country:"PK"}],NG:[{value:"AB",text:"Abia",country:"NG"},{value:"FC",text:"Abuja",country:"NG"},{value:"AD",text:"Adamawa",country:"NG"},{value:"AK",text:"Akwa Ibom",country:"NG"},{value:"AN",text:"Anambra",country:"NG"},{value:"BA",text:"Bauchi",country:"NG"},{value:"BY",text:"Bayelsa",country:"NG"},{value:"BE",text:"Benue",country:"NG"},{value:"BO",text:"Borno",country:"NG"},{value:"CR",text:"Cross River",country:"NG"},{value:"DE",text:"Delta",country:"NG"},{value:"EB",text:"Ebonyi",country:"NG"},{value:"ED",text:"Edo",country:"NG"},{value:"EK",text:"Ekiti",country:"NG"},{value:"EN",text:"Enugu",country:"NG"},{value:"GO",text:"Gombe",country:"NG"},{value:"IM",text:"Imo",country:"NG"},{value:"JI",text:"Jigawa",country:"NG"},{value:"KD",text:"Kaduna",country:"NG"},{value:"KN",text:"Kano",country:"NG"},{value:"KT",text:"Katsina",country:"NG"},{value:"KE",text:"Kebbi",country:"NG"},{value:"KO",text:"Kogi",country:"NG"},{value:"KW",text:"Kwara",country:"NG"},{value:"LA",text:"Lagos",country:"NG"},{value:"NA",text:"Nasarawa",country:"NG"},{value:"NI",text:"Niger",country:"NG"},{value:"OG",text:"Ogun",country:"NG"},{value:"ON",text:"Ondo",country:"NG"},{value:"OS",text:"Osun",country:"NG"},{value:"OY",text:"Oyo",country:"NG"},{value:"PL",text:"Plateau",country:"NG"},{value:"RI",text:"Rivers",country:"NG"},{value:"SO",text:"Sokoto",country:"NG"},{value:"TA",text:"Taraba",country:"NG"},{value:"YO",text:"Yobe",country:"NG"},{value:"ZA",text:"Zamfara",country:"NG"}],JP:[{text:"愛知県",value:"Aichi",country:"JP"},{text:"秋田県",value:"Akita",country:"JP"},{text:"青森県",value:"Aomori",country:"JP"},{text:"千葉県",value:"Chiba",country:"JP"},{text:"愛媛県",value:"Ehime",country:"JP"},{text:"福井県",value:"Fukui",country:"JP"},{text:"福岡県",value:"Fukuoka",country:"JP"},{text:"福島県",value:"Fukushima",country:"JP"},{text:"岐阜県",value:"Gifu",country:"JP"},{text:"群馬県",value:"Gunma",country:"JP"},{text:"広島県",value:"Hiroshima",country:"JP"},{text:"北海道",value:"Hokkaidō",country:"JP"},{text:"兵庫県",value:"Hyōgo",country:"JP"},{text:"茨城県",value:"Ibaraki",country:"JP"},{text:"石川県",value:"Ishikawa",country:"JP"},{text:"岩手県",value:"Iwate",country:"JP"},{text:"香川県",value:"Kagawa",country:"JP"},{text:"鹿児島県",value:"Kagoshima",country:"JP"},{text:"神奈川県",value:"Kanagawa",country:"JP"},{text:"高知県",value:"Kōchi",country:"JP"},{text:"熊本県",value:"Kumamoto",country:"JP"},{text:"京都府",value:"Kyōto",country:"JP"},{text:"三重県",value:"Mie",country:"JP"},{text:"宮城県",value:"Miyagi",country:"JP"},{text:"宮崎県",value:"Miyazaki",country:"JP"},{text:"長野県",value:"Nagano",country:"JP"},{text:"長崎県",value:"Nagasaki",country:"JP"},{text:"奈良県",value:"Nara",country:"JP"},{text:"新潟県",value:"Niigata",country:"JP"},{text:"大分県",value:"Ōita",country:"JP"},{text:"岡山県",value:"Okayama",country:"JP"},{text:"沖縄県",value:"Okinawa",country:"JP"},{text:"大阪府",value:"Ōsaka",country:"JP"},{text:"佐賀県",value:"Saga",country:"JP"},{text:"埼玉県",value:"Saitama",country:"JP"},{text:"滋賀県",value:"Shiga",country:"JP"},{text:"島根県",value:"Shimane",country:"JP"},{text:"静岡県",value:"Shizuoka",country:"JP"},{text:"栃木県",value:"Tochigi",country:"JP"},{text:"徳島県",value:"Tokushima",country:"JP"},{text:"東京都",value:"Tōkyō",country:"JP"},{text:"鳥取県",value:"Tottori",country:"JP"},{text:"富山県",value:"Toyama",country:"JP"},{text:"和歌山県",value:"Wakayama",country:"JP"},{text:"山形県",value:"Yamagata",country:"JP"},{text:"山口県",value:"Yamaguchi",country:"JP"},{text:"山梨県",value:"Yamanashi",country:"JP"}],AT:[{value:"B",text:"Burgenland",country:"AT"},{value:"K",text:"Kärnten",country:"AT"},{value:"NÖ",text:"Niederösterreich",country:"AT"},{value:"OÖ",text:"Oberösterreich",country:"AT"},{value:"S",text:"Salzburg",country:"AT"},{value:"ST",text:"Steiermark",country:"AT"},{value:"T",text:"Tirol",country:"AT"},{value:"V",text:"Vorarlberg",country:"AT"},{value:"W",text:"Wien",country:"AT"}],BR:[{value:"AC",text:"Acre",country:"BR"},{value:"AL",text:"Alagoas",country:"BR"},{value:"AP",text:"Amapá",country:"BR"},{value:"AM",text:"Amazonas",country:"BR"},{value:"BA",text:"Bahia",country:"BR"},{value:"CE",text:"Ceará",country:"BR"},{value:"DF",text:"Distrito Federal",country:"BR"},{value:"ES",text:"Espírito Santo",country:"BR"},{value:"GO",text:"Goiás",country:"BR"},{value:"MA",text:"Maranhão",country:"BR"},{value:"MT",text:"Mato Grosso",country:"BR"},{value:"MS",text:"Mato Grosso do Sul",country:"BR"},{value:"MG",text:"Minas Gerais",country:"BR"},{value:"PA",text:"Pará",country:"BR"},{value:"PB",text:"Paraíba",country:"BR"},{value:"PR",text:"Paraná",country:"BR"},{value:"PE",text:"Pernambuco",country:"BR"},{value:"PI",text:"Piauí",country:"BR"},{value:"RJ",text:"Rio de Janeiro",country:"BR"},{value:"RN",text:"Rio Grande do Norte",country:"BR"},{value:"RS",text:"Rio Grande do Sul",country:"BR"},{value:"RO",text:"Rondônia",country:"BR"},{value:"RR",text:"Roraima",country:"BR"},{value:"SC",text:"Santa Catarina",country:"BR"},{value:"SP",text:"São Paulo",country:"BR"},{value:"SE",text:"Sergipe",country:"BR"},{value:"TO",text:"Tocantins",country:"BR"}],PH:[{text:"Abra",value:"Abra",country:"PH"},{text:"Agusan del Norte",value:"Agusan del Norte",country:"PH"},{text:"Agusan del Sur",value:"Agusan del Sur",country:"PH"},{text:"Aklan",value:"Aklan",country:"PH"},{text:"Albay",value:"Albay",country:"PH"},{text:"Antique",value:"Antique",country:"PH"},{text:"Apayao",value:"Apayao",country:"PH"},{text:"Aurora",value:"Aurora",country:"PH"},{text:"Basilan",value:"Basilan",country:"PH"},{text:"Bataan",value:"Bataan",country:"PH"},{text:"Batanes",value:"Batanes",country:"PH"},{text:"Batangas",value:"Batangas",country:"PH"},{text:"Benguet",value:"Benguet",country:"PH"},{text:"Biliran",value:"Biliran",country:"PH"},{text:"Bohol",value:"Bohol",country:"PH"},{text:"Bukidnon",value:"Bukidnon",country:"PH"},{text:"Bulacan",value:"Bulacan",country:"PH"},{text:"Cagayan",value:"Cagayan",country:"PH"},{text:"Camarines Norte",value:"Camarines Norte",country:"PH"},{text:"Camarines Sur",value:"Camarines Sur",country:"PH"},{text:"Camiguin",value:"Camiguin",country:"PH"},{text:"Capiz",value:"Capiz",country:"PH"},{text:"Catanduanes",value:"Catanduanes",country:"PH"},{text:"Cavite",value:"Cavite",country:"PH"},{text:"Cebu",value:"Cebu",country:"PH"},{text:"Compostela Valley",value:"Compostela Valley",country:"PH"},{text:"Cotabato",value:"Cotabato",country:"PH"},{text:"Davao del Norte",value:"Davao del Norte",country:"PH"},{text:"Davao del Sur",value:"Davao del Sur",country:"PH"},{text:"Davao Occidental",value:"Davao Occidental",country:"PH"},{text:"Davao Oriental",value:"Davao Oriental",country:"PH"},{text:"Dinagat Islands",value:"Dinagat Islands",country:"PH"},{text:"Eastern Samar",value:"Eastern Samar",country:"PH"},{text:"Guimaras",value:"Guimaras",country:"PH"},{text:"Ifugao",value:"Ifugao",country:"PH"},{text:"Ilocos Norte",value:"Ilocos Norte",country:"PH"},{text:"Ilocos Sur",value:"Ilocos Sur",country:"PH"},{text:"Iloilo",value:"Iloilo",country:"PH"},{text:"Isabela",value:"Isabela",country:"PH"},{text:"Kalinga",value:"Kalinga",country:"PH"},{text:"La Union",value:"La Union",country:"PH"},{text:"Laguna",value:"Laguna",country:"PH"},{text:"Lanao del Norte",value:"Lanao del Norte",country:"PH"},{text:"Lanao del Sur",value:"Lanao del Sur",country:"PH"},{text:"Leyte",value:"Leyte",country:"PH"},{text:"Maguindanao",value:"Maguindanao",country:"PH"},{text:"Marinduque",value:"Marinduque",country:"PH"},{text:"Masbate",value:"Masbate",country:"PH"},{text:"Misamis Occidental",value:"Misamis Occidental",country:"PH"},{text:"Misamis Oriental",value:"Misamis Oriental",country:"PH"},{text:"Mountain Province",value:"Mountain Province",country:"PH"},{text:"Negros Occidental",value:"Negros Occidental",country:"PH"},{text:"Negros Oriental",value:"Negros Oriental",country:"PH"},{text:"Northern Samar",value:"Northern Samar",country:"PH"},{text:"Nueva Ecija",value:"Nueva Ecija",country:"PH"},{text:"Nueva Vizcaya",value:"Nueva Vizcaya",country:"PH"},{text:"Occidental Mindoro",value:"Occidental Mindoro",country:"PH"},{text:"Oriental Mindoro",value:"Oriental Mindoro",country:"PH"},{text:"Palawan",value:"Palawan",country:"PH"},{text:"Pampanga",value:"Pampanga",country:"PH"},{text:"Pangasinan",value:"Pangasinan",country:"PH"},{text:"Quezon",value:"Quezon",country:"PH"},{text:"Quirino",value:"Quirino",country:"PH"},{text:"Rizal",value:"Rizal",country:"PH"},{text:"Romblon",value:"Romblon",country:"PH"},{text:"Samar",value:"Samar",country:"PH"},{text:"Sarangani",value:"Sarangani",country:"PH"},{text:"Siquijor",value:"Siquijor",country:"PH"},{text:"Sorsogon",value:"Sorsogon",country:"PH"},{text:"South Cotabato",value:"South Cotabato",country:"PH"},{text:"Southern Leyte",value:"Southern Leyte",country:"PH"},{text:"Sultan Kudarat",value:"Sultan Kudarat",country:"PH"},{text:"Sulu",value:"Sulu",country:"PH"},{text:"Surigao del Norte",value:"Surigao del Norte",country:"PH"},{text:"Surigao del Sur",value:"Surigao del Sur",country:"PH"},{text:"Tarlac",value:"Tarlac",country:"PH"},{text:"Tawi-Tawi",value:"Tawi-Tawi",country:"PH"},{text:"Zambales",value:"Zambales",country:"PH"},{text:"Zamboanga del Norte",value:"Zamboanga del Norte",country:"PH"},{text:"Zamboanga del Sur",value:"Zamboanga del Sur",country:"PH"},{text:"Zamboanga Sibugay",value:"Zamboanga Sibugay",country:"PH"},{text:"Metro Manila",value:"Metro Manila",country:"PH"}],VN:[{text:"Hà Nội",value:"Hà Nội",country:"VN"},{text:"Hà Giang",value:"Hà Giang",country:"VN"},{text:"Cao Bằng",value:"Cao Bằng",country:"VN"},{text:"Bắc Kạn",value:"Bắc Kạn",country:"VN"},{text:"Tuyên Quang",value:"Tuyên Quang",country:"VN"},{text:"Lào Cai",value:"Lào Cai",country:"VN"},{text:"Điện Biên",value:"Điện Biên",country:"VN"},{text:"Lai Châu",value:"Lai Châu",country:"VN"},{text:"Sơn La",value:"Sơn La",country:"VN"},{text:"Yên Bái",value:"Yên Bái",country:"VN"},{text:"Hòa Bình",value:"Hòa Bình",country:"VN"},{text:"Thái Nguyên",value:"Thái Nguyên",country:"VN"},{text:"Lạng Sơn",value:"Lạng Sơn",country:"VN"},{text:"Quảng Ninh",value:"Quảng Ninh",country:"VN"},{text:"Bắc Giang",value:"Bắc Giang",country:"VN"},{text:"Phú Thọ",value:"Phú Thọ",country:"VN"},{text:"Vĩnh Phúc",value:"Vĩnh Phúc",country:"VN"},{text:"Bắc Ninh",value:"Bắc Ninh",country:"VN"},{text:"Hải Dương",value:"Hải Dương",country:"VN"},{text:"Hải Phòng",value:"Hải Phòng",country:"VN"},{text:"Hưng Yên",value:"Hưng Yên",country:"VN"},{text:"Thái Bình",value:"Thái Bình",country:"VN"},{text:"Hà Nam",value:"Hà Nam",country:"VN"},{text:"Nam Định",value:"Nam Định",country:"VN"},{text:"Ninh Bình",value:"Ninh Bình",country:"VN"},{text:"Thanh Hóa",value:"Thanh Hóa",country:"VN"},{text:"Nghệ An",value:"Nghệ An",country:"VN"},{text:"Hà Tĩnh",value:"Hà Tĩnh",country:"VN"},{text:"Quảng Bình",value:"Quảng Bình",country:"VN"},{text:"Quảng Trị",value:"Quảng Trị",country:"VN"},{text:"Thừa Thiên–Huế",value:"Thừa Thiên–Huế",country:"VN"},{text:"Đà Nẵng",value:"Đà Nẵng",country:"VN"},{text:"Quảng Nam",value:"Quảng Nam",country:"VN"},{text:"Quảng Ngãi",value:"Quảng Ngãi",country:"VN"},{text:"Bình Định",value:"Bình Định",country:"VN"},{text:"Phú Yên",value:"Phú Yên",country:"VN"},{text:"Khánh Hòa",value:"Khánh Hòa",country:"VN"},{text:"Ninh Thuận",value:"Ninh Thuận",country:"VN"},{text:"Bình Thuận",value:"Bình Thuận",country:"VN"},{text:"Kon Tum",value:"Kon Tum",country:"VN"},{text:"Gia Lai",value:"Gia Lai",country:"VN"},{text:"Đắk Lắk",value:"Đắk Lắk",country:"VN"},{text:"Đắk Nông",value:"Đắk Nông",country:"VN"},{text:"Lâm Đồng",value:"Lâm Đồng",country:"VN"},{text:"Bình Phước",value:"Bình Phước",country:"VN"},{text:"Tây Ninh",value:"Tây Ninh",country:"VN"},{text:"Bình Dương",value:"Bình Dương",country:"VN"},{text:"Đồng Nai",value:"Đồng Nai",country:"VN"},{text:"Bà Rịa–Vũng Tàu",value:"Bà Rịa–Vũng Tàu",country:"VN"},{text:"Thành phố Hồ Chí Minh",value:"Thành phố Hồ Chí Minh",country:"VN"},{text:"Long An",value:"Long An",country:"VN"},{text:"Tiền Giang",value:"Tiền Giang",country:"VN"},{text:"Bến Tre",value:"Bến Tre",country:"VN"},{text:"Trà Vinh",value:"Trà Vinh",country:"VN"},{text:"Vĩnh Long",value:"Vĩnh Long",country:"VN"},{text:"Đồng Tháp",value:"Đồng Tháp",country:"VN"},{text:"An Giang",value:"An Giang",country:"VN"},{text:"Kiên Giang",value:"Kiên Giang",country:"VN"},{text:"Cần Thơ",value:"Cần Thơ",country:"VN"},{text:"Hậu Giang",value:"Hậu Giang",country:"VN"},{text:"Sóc Trăng",value:"Sóc Trăng",country:"VN"},{text:"Bạc Liêu",value:"Bạc Liêu",country:"VN"},{text:"Cà Mau",value:"Cà Mau",country:"VN"}],CR:[{text:"San José",value:"San José",country:"CR"},{text:"Alajuela",value:"Alajuela",country:"CR"},{text:"Cartago",value:"Cartago",country:"CR"},{text:"Heredia",value:"Heredia",country:"CR"},{text:"Guanacaste",value:"Guanacaste",country:"CR"},{text:"Puntarenas",value:"Puntarenas",country:"CR"},{text:"Limón",value:"Limón",country:"CR"}],NZ:[{text:"Auckland",value:"Auckland",country:"NZ"},{text:"New Plymouth",value:"New Plymouth",country:"NZ"},{text:"Hawke's Bay",value:"Hawke's Bay",country:"NZ"},{text:"Wellington",value:"Wellington",country:"NZ"},{text:"Nelson",value:"Nelson",country:"NZ"},{text:"Marlborough",value:"Marlborough",country:"NZ"},{text:"Westland",value:"Westland",country:"NZ"},{text:"Canterbury",value:"Canterbury",country:"NZ"},{text:"Otago",value:"Otago",country:"NZ"},{text:"Southland",value:"Southland",country:"NZ"}]},Go=r("fa8258aa1b1057754c45"),Uo=r.n(Go),Vo=r("427cb8a6fa716aacb6d1"),qo=r.n(Vo),Wo=(r("1896ad57e81d13a31aaa"),function(e){return e?void 0:"Required"}),Ko=(Co=15,Po=2,function(e){return e&&!Uo.a.isISO31661Alpha2(e)?"Invalid country format (expecting ISO format, e.g. CA)":void 0}),$o=function(e,t){try{return e&&!Uo.a.isPostalCode(e,t)?"Invalid Postal Code format in country:"+t:void 0}catch(e){return}},Jo=function(e){return function(t){return t===e?"Email must be different from Primary Account Email":void 0}},Yo=function(e){var t="";return e&&(/(?=.*[a-z])/.test(e)||(t+="lower case;"),/(?=.*[A-Z])/.test(e)||(t+="upper case;"),/(?=.*[0-9])/.test(e)||(t+="Missing number;"),/(?=.*[!@#\$%\^&\*])/.test(e)||(t+="Missing symbol;"),/(?=.{8,})/.test(e)||(t+="less than 8 chars;")),t},Xo=function(e){var t="";return e&&isNaN(e)&&(t+="Account Id should be only integer"),t},Zo=function(e){var t,r=e.toJS(),n={};return r.country&&!Ko(r.country)&&(n.zip=$o(r.zip,r.country)),r.username!==r.email&&(n.email=(t=r.username,r.email!==t?"Email does not seem to match":void 0)),n},Qo=Object.assign||function(e){for(var t=1;t1){for(var c=Array(i),u=0;u=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["input","label","type","disabled","placeholder","maxLength","meta"]);return ea(o.a.Fragment,{},void 0,ea("label",{style:{fontSize:".92857143em",fontFamily:"Georgia",fontWeight:"700",lineHeignt:"1.5em"}},void 0,r),o.a.createElement("input",Qo({id:t.name,input:!0,placeholder:i||r,type:n,label:r,disabled:a,error:u&&p,maxLength:s},l,{style:p&&{border:"1px solid #e0b4b4",backgroundColor:"rgba(224, 180, 180, .15)"}})))},na=r("b6df842aa4eadc12c34e"),oa=r.n(na),aa=Object.assign||function(e){for(var t=1;t1){for(var c=Array(i),u=0;u=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["input","meta"]);return ia(oa.a,{value:t.value,onChange:t.onChange,onSelect:n.handleAddressSelect},void 0,(function(e){var a=e.getInputProps,i=e.suggestions,s=e.getSuggestionItemProps,c=e.loading;return ia("div",{},void 0,o.a.createElement(ta,aa({},a({placeholder:"123 Example St",name:t.name}),{meta:r,input:t,label:n.label})),ia("div",{className:"autocomplete-dropdown-container"},void 0,c&&ia("div",{},void 0,"Loading..."),i.map((function(e){var t=e.active?"suggestion-item--active":"suggestion-item",r=e.active?{backgroundColor:"#fafafa",cursor:"pointer"}:{backgroundColor:"#ffffff",cursor:"pointer"};return o.a.createElement("div",s(e,{className:t,style:r}),ia("span",{},void 0,e.description))}))))}))},ca=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u0)return Pa(o.a.Fragment,{},t,e,""!==e&&e.replace(/\s/g,"").length?Pa("br",{}):null)}))},r.formatPhoneNumber=function(e,t){var r=(""+e).replace(/\D/g,"").match(/^(1|)?(\d{3})(\d{3})(\d{4})$/);return!r||"US"!=t&&"CA"!=t?e:[r[1]?"+1 ":"","(",r[2],") ",r[3],"-",r[4]].join("")},r.renderButton=function(){return Pa(fo.a,{style:4e3==r.props.client_id?{position:"absolute",bottom:"10px"}:{verticalAlign:"bottom"},onClick:function(){return r.props.toggleModal("editCCModal",!0)}},void 0,"FR"==r.props.language?"Modifier":"Edit")},r.renderStJospeh=function(){return Pa(Eo.a,{},void 0,Pa(Eo.a.Item,{},void 0,Pa(Eo.a.Header,{},void 0,"FR"==r.props.language?"Nom":"Full Name"),Pa(Eo.a.Description,{},void 0,r.props.userSettings.FirstName," ",r.props.userSettings.LastName)),Pa(Eo.a.Item,{},void 0,Pa(Eo.a.Header,{},void 0,"FR"==r.props.language?"Courriel":"Email"),Pa(Eo.a.Description,{},void 0,r.props.userSettings.PersonEmail)),r.props.userSettings.JobTitle&&Pa(Eo.a.Item,{},void 0,Pa(Eo.a.Header,{},void 0,"FR"==r.props.language?"Titre d'emploi":"Job Title"),Pa(Eo.a.Description,{},void 0,r.props.userSettings.JobTitle)),Pa(Eo.a.Item,{},void 0,Pa(Eo.a.Header,{},void 0,"FR"==r.props.language?"Adresse":"Address"),Pa(Eo.a.Description,{},void 0,r.renderAddress()),Pa(Eo.a.Description,{},void 0,r.props.userSettings.PersonMailingCountry&&r.props.userSettings.PersonMailingState?r.props.userSettings.PersonMailingCity+", "+r.props.userSettings.PersonMailingState+", "+r.props.userSettings.PersonMailingCountry:""),Pa(Eo.a.Description,{},void 0,r.props.userSettings.PersonMailingPostalCode)),Pa(Eo.a.Item,{},void 0,Pa(Eo.a.Header,{},void 0,"FR"==r.props.language?"Téléphone":"Phone Number"),Pa(Eo.a.Description,{},void 0,0==r.props.userSettings.Phone?"":r.formatPhoneNumber(r.props.userSettings.Phone,r.props.userSettings.PersonMailingCountry))),Pa(Eo.a.Item,{},void 0,Pa(Eo.a.Header,{},void 0,"FR"==r.props.language?"Entreprise":"Company"),Pa(Eo.a.Description,{},void 0,r.props.userSettings.PersonCompany__pc)))},r.renderUserInfo=function(){return Pa(Eo.a,{horizontal:!0},void 0,Pa(ka,{},void 0,Pa(Eo.a.Header,{},void 0,"FR"==r.props.language?"Nom":"Full Name"),Pa(Eo.a.Description,{},void 0,r.props.userSettings.FirstName," ",r.props.userSettings.LastName)),Pa(ka,{},void 0,Pa(Eo.a.Header,{},void 0,"FR"==r.props.language?"Courriel":"Email"),Pa(Eo.a.Description,{},void 0,r.props.userSettings.PersonEmail)),r.props.userSettings.JobTitle&&Pa(Eo.a.Item,{},void 0,Pa(Eo.a.Header,{},void 0,"FR"==r.props.language?"Titre d'emploi":"Job Title"),Pa(Eo.a.Description,{},void 0,r.props.userSettings.JobTitle)),Pa(ka,{},void 0,Pa(Eo.a.Header,{},void 0,"FR"==r.props.language?"Adresse":"Address"),Pa(Eo.a.Description,{},void 0,r.renderAddress()),Pa(Eo.a.Description,{},void 0,r.props.userSettings.PersonMailingCountry&&r.props.userSettings.PersonMailingState?r.props.userSettings.PersonMailingCity+", "+r.props.userSettings.PersonMailingState+", "+r.props.userSettings.PersonMailingCountry:""),Pa(Eo.a.Description,{},void 0,r.props.userSettings.PersonMailingPostalCode)),Pa(ka,{},void 0,Pa(Eo.a.Header,{},void 0,"FR"==r.props.language?"Téléphone":"Phone Number"),Pa(Eo.a.Description,{},void 0,0==r.props.userSettings.Phone?"":r.formatPhoneNumber(r.props.userSettings.Phone,r.props.userSettings.PersonMailingCountry))),Pa(ka,{},void 0,Pa(Eo.a.Header,{},void 0,"FR"==r.props.language?"Entreprise":"Company"),Pa(Eo.a.Description,{},void 0,r.props.userSettings.PersonCompany__pc)))},r.state={FirstName:r.props.userSettings.FirstName,LastName:r.props.userSettings.LastName,PersonEmail:r.props.userSettings.PersonEmail,PersonMailingStreet:r.props.userSettings.PersonMailingStreet,PersonMailingCity:r.props.userSettings.PersonMailingCity,PersonMailingState:r.props.userSettings.PersonMailingState,PersonMailingCountry:r.props.userSettings.PersonMailingCountry,PersonMailingPostalCode:r.props.userSettings.PersonMailingPostalCode,Phone:r.formatPhoneNumber(r.props.userSettings.Phone,r.props.userSettings.PersonMailingCountry),PersonCompany__pc:r.props.userSettings.PersonCompany__pc},r.backup={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),ja(t,[{key:"render",value:function(){var e=this;return this.props.loading?Pa(Ca,{content:"Updating"}):Pa(o.a.Fragment,{},void 0,Pa(va,{isOpen:this.props.modal.editCCModal,toggleModal:function(){return e.props.toggleModal()},formType:"edit",productPreferences:this.props.productPreferences,product_id:this.props.product_id}),1e3==this.props.client_id||5e3==this.props.client_id||7e3===this.props.client_id||3e3===this.props.client_id?this.renderUserInfo():this.renderStJospeh(),this.renderButton())}}]),t}(n.Component);var Ea=Object(b.b)({userSettings:Object(At.s)(),loading:Object(At.a)(),language:Object(x.j)(),modal:Object(x.B)(),client_id:Object(x.e)(),productPreferences:Object(x.s)(),product_id:Object(x.q)()}),Aa=Object(s.connect)(Ea,(function(e){return{toggleModal:function(t,r){return e(Object(Et.k)(t,r))}}})),Ta=Object(v.compose)(Aa)(Ra),Ma=r("7f6f1d74f1e2335921b8"),Ia=r("2fb9df661a39bafbf27e"),Na=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u24?new Date(e.transaction_date).toString().substring(0,24):new Date(e.transaction_date).toString()),Na(Ia.a.Cell,{},void 0,e.transaction_amount_outstanding.toFixed(2)),Na(Ia.a.Cell,{},void 0,Na(xo.a,{radio:!0,name:"pay_bill",value:t,checked:n.state.value===t,onChange:function(){return n.selectTransaction(e,t)}}))),n.renderBundleItems(e.bundle_items))}))))},n.renderBundleItems=function(e){return e.map((function(e,t){if(t>0)return Na("tr",{},t,Na("td",{}),Na("td",{},void 0,n.props.product),Na("td",{},void 0,e.item_description),Na("td",{}),Na("td",{}),Na("td",{}))}))},n.close=function(){n.props.toggleModal("bill_Me_Later_Modal",!1)},n.parseTransactions=function(e){var t={};return e.forEach((function(e){t[e.transaction_number]||(t[e.transaction_number]=Fa({},e,{bundle_items:[]})),t[e.transaction_number].bundle_items.push(Fa({},e))})),Object.values(t)},n.renderPaymentMethods=function(){return Na(o.a.Fragment,{},void 0,Na("hr",{style:{borderTop:"0px"}}),Na("h4",{},void 0,"Selected Transaction:"," ",n.state.selectedTransaction.transaction_number),Na("h4",{},void 0,"Amount: ",n.state.selectedTransaction.transaction_amount_outstanding),Na("hr",{style:{borderTop:"0px"}}))},Ba(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),La(t,[{key:"render",value:function(){var e=this,t=this.props.outstandingAmount;return Na(o.a.Fragment,{},void 0,Na(Ao.a,{dimmer:"blurring",open:this.props.isOpen,size:"large"},void 0,Na(Ao.a.Header,{},void 0,"FR"==this.props.language?"Montant dû pour ":"Outstanding Bill for ",this.props.product),Na(Ao.a.Content,{image:!0},void 0,Na(Ao.a.Description,{},void 0,t&&t.data?this.renderOutstandingTable(this.parseTransactions(t.data)):Na("h3",{},void 0,"Your Account has no outstanding balance"),Na(Ln.a,{},void 0,Na(Ln.a.Row,{},void 0,Na(Ln.a.Column,{textAlign:"right"},void 0,this.state.selectedTransaction&&this.renderPaymentMethods())),Na(fo.a,{negative:!0,icon:"cancel",labelPosition:"right",content:"FR"==this.props.language?"Annuler":"Cancel",onClick:function(){return e.close()}}),Na(fo.a,{positive:!0,icon:"checkmark",labelPosition:"right",content:"FR"==this.props.language?"Payer":"Pay",onClick:function(){return e.onSubmit()}}))))))}}]),t}(n.Component);var Ga=Object(b.b)({userSettings:Object(At.s)(),recurlyInfo:Object(At.r)(),product:Object(x.o)(),outstandingAmount:Object(At.p)(),accountNumber:Object(At.d)(),language:Object(x.j)(),productConfiguration:Object(x.p)(),product_id:Object(x.q)()}),Ua=Object(s.connect)(Ga,(function(e){return{toggleModal:function(t,r){return e(Object(Et.k)(t,r))}}}))(Ha),Va=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u0?s({purchaseButtonClicked:!1}):t&&n&&(i={payment_provider:n.paymentProvider,payment_provider_instance:n.paymentProviderStringIdentifier,payment_provider_token:t.id,payment_tokenization:!0},"/pay-bill"!==c.currentPage?a(i):o(i))}catch(e){console.log("what is error: ",e)}}));case 12:case"end":return e.stop()}}),e,r)})),t=function(){var t=e.apply(this,arguments);return new Promise((function(e,r){return function n(o,a){try{var i=t[o](a),s=i.value}catch(e){return void r(e)}if(!i.done)return Promise.resolve(s).then((function(e){n("next",e)}),(function(e){n("throw",e)}));e(s)}("next")}))},function(e){return t.apply(this,arguments)})},li=Object(ei.a)("personalCreditCard"),di=(ui=Object(s.connect)((function(e){return e=e.toJS(),{first_name:li(e,"first_name"),last_name:li(e,"last_name"),address1:li(e,"address1"),city:li(e,"city"),state:li(e,"state"),country:li(e,"country"),zip:li(e,"zip"),userEmail:e.userSettings.PersonEmail,paymentConfig:e.userSettings.paymentConfig,billingInfo:e.userSettings.billingInfo,Account_Number__pc:e.userSettings.userSettings.Account_Number__pc}}))(ui),r("1942bf22e92f09ece635")),hi=function(e,t){var r=null;if(e){var n=e.payment_instance_public_apiKey,o=e.connected_account_id,a=e.enable_platform_api_connection,i=e.platform_public_api_key;o&&a&&i?(console.log("got the platform stripe promise"),r=Object(di.a)(i,{stripeAccount:""+o}),t&&(r=Object(di.a)(i,{stripeAccount:""+o,locale:t}))):(console.log("got the old stripe promise"),r=Object(di.a)(n),t&&(r=Object(di.a)(n,{locale:"fr"})))}return r},mi=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u0)for(var o=0;o1){for(var c=Array(i),u=0;u0)for(var o=[],a=0;a0)for(var t=0;tnew Date?(a="FR"==r.props.language?"Actif":"Active","Cancelled"==e.processing_type?a="Cancelled":"Payment Failed"==e.processing_type&&(a="Payment Failed")):a="FR"==r.props.language?"Expiré":"Expired");var i=r.parseBillingInfo(),s=!1;if(n.length>0)if(i&&i.province){for(var c=0;c0)for(var t=0;t1){for(var c=Array(i),u=0;u5?3:2:3},void 0,Bi(Ln.a.Row,{},void 0,this.renderSubscriptionTiles())))}}]),t}(n.Component),Vi=Object(b.b)({accountNumber:Object(At.d)(),userSettings:Object(At.s)()}),qi=Object(s.connect)(Vi),Wi=Object(v.compose)(qi)(Ui),Ki=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u0){for(var a=0;a=Object(z.h)(new Date))}return t},is(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),ns(t,[{key:"componentDidUpdate",value:function(e,t){this.props.wooCommerceCoupon!==e.wooCommerceCoupon&&this.setState({wooCommerceModal:!(!this.props.wooCommerceCoupon||!(this.props.wooCommerceCoupon.data&&this.props.wooCommerceCoupon.data.success&&"true"==this.props.wooCommerceCoupon.data.success||this.props.wooCommerceCoupon.error&&this.props.wooCommerceCoupon.error.error&&this.props.wooCommerceCoupon.error.error.message&&"The coupon code already exists"==this.props.wooCommerceCoupon.error.error.message))})}},{key:"render",value:function(){return rs(o.a.Fragment,{},void 0,this.props.productPreferences&&this.props.productPreferences.preferenceValues&&this.props.productPreferences.preferenceValues.subscription_tile&&this.props.productPreferences.preferenceValues.subscription_tile[this.props.product_id]&&rs(Wi,{subscribe:this.subscribe,handleSubscribe:this.handleSubscribe,state:this.props.state,tiles:this.props.productPreferences.preferenceValues.subscription_tile[this.props.product_id],handlePageChange:this.handlePageChange,mobileCheck:this.props.mobileCheck,columnSize:this.props.columnSize,handleSendDigitalCard:this.handleSendDigitalCard,handleStatus:this.handleStatus}))}}]),t}(n.Component),us=Object(b.b)({userSettings:Object(At.s)(),product:Object(x.o)(),page:Object(x.n)(),wooCommerceCoupon:Object(At.x)(),mobileCheck:Object(x.m)(),productPreferences:Object(x.s)(),product_id:Object(x.q)(),expiryDate:Object(At.y)()}),ps=Object(s.connect)(us,(function(e){return{onRedirectPage:function(t){e(Object(Et.i)(t))},dispatch:e}})),ls=Object(v.compose)(ps)(cs),ds=r("f167a227df3e31189873"),hs=r("ae6200ffb14929109d8e"),ms=r("50a6bcba61785e8d3940"),fs=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u0){for(var a=0;a=Object(z.h)(new Date)?"FR"==r.props.language?"Actif":"Active":"FR"==r.props.language?"Expiré":"Expired")}return ys(Ln.a.Row,{},void 0,ys(Ln.a.Column,{},void 0,ys(Eo.a,{},void 0,ys(Eo.a.Item,{},void 0,ys(Eo.a.Header,{},void 0,"FR"==r.props.language?"État":"Status",":"),t))),ys(Ln.a.Column,{},void 0,ys(Eo.a,{},void 0,ys(Eo.a.Item,{},void 0,ys(Eo.a.Header,{},void 0,"FR"==r.props.language?"Expiration":"Expiry:"),n&&n.expiry_date?Object(z.h)(n.expiry_date):"N/A"))),ys(Ln.a.Column,{},void 0,ys(Eo.a,{},void 0,ys(Eo.a.Item,{},void 0,ys(Eo.a.Header,{},void 0,"FR"==r.props.language?"Numéro de compte:":"Membership/Account Number:"),r.props.accountNumber))))},r.onRenew=function(){var e=r.props.product_id,t=r.props.accountNumber,n=r.props.userSettings.PersonMailingPostalCode||"",o=r.props.renew_code,a=r.props.purchase_code;n="&postal_code="+n.replace(" ","").toLowerCase();var i=r.props.redirectShopUrl,s=void 0;if(r.props.expiryDate.data.length>0)for(var c=0;c1){for(var c=Array(i),u=0;u0){for(var a=0;a=Object(z.h)(new Date)?"FR"==r.props.language?"Actif":"Active":"FR"==r.props.language?"Expiré":"Expired")}return Os(Ln.a.Row,{},void 0,Os(Ln.a.Column,{},void 0,Os(Eo.a,{},void 0,Os(Eo.a.Item,{},void 0,Os(Eo.a.Header,{},void 0,"FR"==r.props.language?"État":"Status",":"),t))),Os(Ln.a.Column,{},void 0,Os(Eo.a,{},void 0,Os(Eo.a.Item,{},void 0,Os(Eo.a.Header,{},void 0,"FR"==r.props.language?"Expiration":"Expiry:"),n&&n.expiry_date?n.expiry_date.substring(0,10):"N/A"))),Os(Ln.a.Column,{},void 0,Os(Eo.a,{},void 0,Os(Eo.a.Item,{},void 0,Os(Eo.a.Header,{},void 0,"FR"==r.props.language?"Numéro de compte:":"Membership/Account Number:"),r.props.userSettings.Account_Number__pc))))},r.onRenew=function(){var e=r.props.accountNumber,t=r.props.userSettings.PersonMailingPostalCode||"";t="&postal_code="+t.replace(" ","").toLowerCase();var n=r.props.redirectShopUrl,o=void 0,a=r.props.product_id,i=r.props.renewal_code,s=r.props.purchase_code;if(r.props.expiryDate&&r.props.expiryDate.data&&r.props.expiryDate.data.length>0)for(var c=0;c=Object(z.h)(new Date)?"FR"==r.props.language?"Renouveler":"Renew":"FR"==r.props.language?"Acheter":"Purchase",status:r.props.userSettings.MBRDB_EXPIREISS__pc?Object(z.h)(r.props.userSettings.MBRDB_EXPIREISS__pc)>=Object(z.h)(new Date)?"FR"==r.props.language?"Actif":"Active":"FR"==r.props.language?"Expiré":"Expired":"FR"==r.props.language?"Non abonné":"Not Yet Subscribed"},r.props.userSettings,{enabled:!0}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),js(t,[{key:"componentDidUpdate",value:function(e){this.props!=e&&this.setState({status:this.props.userSettings.MBRDB_EXPIREISS__pc?Object(z.h)(this.props.userSettings.MBRDB_EXPIREISS__pc)>=Object(z.h)(new Date)?"FR"==this.props.language?"Actif":"Active":"FR"==this.props.language?"Expiré":"Expired":"FR"==this.props.language?"Non abonné":"Not Yet Subscribed",renewOrPurchase:Object(z.h)(this.props.userSettings.MBRDB_EXPIREISS__pc)>=Object(z.h)(new Date)?"FR"==this.props.language?"Renouveler":"Renew":"FR"==this.props.language?"Acheter":"Purchase"})}},{key:"render",value:function(){return Os(Ln.a,{},void 0,Os(Ln.a.Row,{},void 0,Os(Ln.a.Column,{width:13,only:"computer"},void 0,Os(Ln.a,{columns:"equal"},void 0,this.props.expiryDate&&this.props.expiryDate.data&&this.renderInfo(this.state))),Os(Ln.a.Column,{width:16,only:"mobile tablet"},void 0,Os(Ln.a,{columns:"equal"},void 0,this.props.expiryDate&&this.props.expiryDate.data&&this.renderInfo(this.state))),this.onRenderRenewModal(),Os(Ln.a.Column,{width:3,only:"computer"},void 0,this.renderButtons())),Os(Ln.a.Row,{only:"mobile tablet"},void 0,this.renderMobileButtons()))}}]),t}(n.Component),Rs=Object(b.b)({userSettings:Object(At.s)(),accountNumber:Object(At.d)(),product:Object(x.o)(),sfFields:Object(x.v)(),language:Object(x.j)(),expiryDate:Object(At.y)(),redirectShopUrl:Object(x.u)(),product_id:Object(x.q)()}),Es=Object(hs.a)(Rs),As=Object(v.compose)(Es)(ks),Ts=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u0){for(var a=0;a=Object(z.h)(new Date)?"FR"==r.props.language?"Actif":"Active":"FR"==r.props.language?"Expiré":"Expired")}return Is(Ln.a.Row,{},void 0,Is(Ln.a.Column,{},void 0,Is(Eo.a,{},void 0,Is(Eo.a.Item,{},void 0,Is(Eo.a.Header,{},void 0,"Status",":"),t))),Is(Ln.a.Column,{},void 0,Is(Eo.a,{},void 0,Is(Eo.a.Item,{},void 0,Is(Eo.a.Header,{},void 0,"Expiry:"),n&&n.expiry_date?Object(z.h)(n.expiry_date):"N/A"))),Is(Ln.a.Column,{},void 0,Is(Eo.a,{},void 0,Is(Eo.a.Item,{},void 0,Is(Eo.a.Header,{},void 0,"Membership/Account Number:"),r.props.accountNumber))))},r.onRenew=function(){var e=r.props.product_id,t=r.props.accountNumber,n=r.props.userSettings.PersonMailingPostalCode||"",o=r.props.renew_code,a=r.props.purchase_code;n="&postal_code="+n.replace(" ","").toLowerCase();var i=r.props.redirectShopUrl,s=void 0;if(r.props.expiryDate.data.length>0)for(var c=0;c=Object(z.h)(new Date)?"FR"==r.props.language?"Renouveler":"Renew":"FR"==r.props.language?"Acheter":"Purchase",status:r.props.userSettings[r.props.sfFields.Expiry_Date__pc]?Object(z.h)(r.props.userSettings[r.props.sfFields.Expiry_Date__pc])>=Object(z.h)(new Date)?"FR"==r.props.language?"Actif":"Active":"FR"==r.props.language?"Expiré":"Expired":"FR"==r.props.language?"Non abonné":"Not Yet Subscribed"},r.props.userSettings,{zinio_subscription_active:r.props.expiryDate?r.checkProductZinioSubscription(r.props.expiryDate,r.props.product_id):0,COT_Digital_Only__pc:r.props.userSettings.COT_Digital_Only__pc,enabled:!0}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Fs(t,[{key:"componentDidUpdate",value:function(e){this.props!=e&&this.setState(Ns({},this.props.userSettings,{zinio_subscription_active:this.props.expiryDate?this.checkProductZinioSubscription(this.props.expiryDate,this.props.product_id):0,COT_Digital_Only__pc:this.props.userSettings.COT_Digital_Only__pc}))}},{key:"render",value:function(){return Is(Ln.a,{},void 0,Is(Ln.a.Row,{},void 0,Is(Ln.a.Column,{width:13,only:"computer"},void 0,Is(Ln.a,{columns:"equal"},void 0,this.props.expiryDate&&this.props.expiryDate.data&&this.renderInfo(this.state),Is(Ln.a.Row,{},void 0,Is(Ln.a.Column,{},void 0,this.renderSettings(this.state,this.handleChange))))),Is(Ln.a.Column,{width:16,only:"mobile tablet"},void 0,Is(Ln.a,{columns:"equal"},void 0,this.props.expiryDate&&this.props.expiryDate.data&&this.renderInfo(this.state),Is(Ln.a.Row,{},void 0,Is(Ln.a.Column,{},void 0,this.renderSettings(this.state,this.handleChange))))),this.onRenderRenewModal(),Is(Ln.a.Column,{width:3,only:"computer"},void 0,this.renderButtons())),Is(Ln.a.Row,{only:"mobile tablet"},void 0,this.renderMobileButtons()))}}]),t}(n.Component),Bs=Object(b.b)({expiryDate:Object(At.y)(),userSettings:Object(At.s)(),accountNumber:Object(At.d)(),product:Object(x.o)(),sfFields:Object(x.v)(),language:Object(x.j)(),redirectShopUrl:Object(x.u)(),product_id:Object(x.q)()}),zs=Object(hs.a)(Bs),Hs=Object(v.compose)(zs)(Ds),Gs=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u0){for(var a=0;a=Object(z.h)(new Date)?"FR"==r.props.language?"Actif":"Active":"FR"==r.props.language?"Expiré":"Expired")}return Vs(Ln.a.Row,{},void 0,Vs(Ln.a.Column,{},void 0,Vs(Eo.a,{},void 0,Vs(Eo.a.Item,{},void 0,Vs(Eo.a.Header,{},void 0,"FR"==r.props.language?"État":"Status",":"),t))),Vs(Ln.a.Column,{},void 0,Vs(Eo.a,{},void 0,Vs(Eo.a.Item,{},void 0,Vs(Eo.a.Header,{},void 0,"FR"==r.props.language?"Expiration":"Expiry:"),n&&n.expiry_date?Object(z.h)(n.expiry_date):"N/A"))),Vs(Ln.a.Column,{},void 0,Vs(Eo.a,{},void 0,Vs(Eo.a.Item,{},void 0,Vs(Eo.a.Header,{},void 0,"FR"==r.props.language?"Numéro de compte:":"Membership/Account Number:"),r.props.accountNumber))))},r.onRenew=function(){var e=r.props.product_id,t=r.props.accountNumber,n=r.props.userSettings.PersonMailingPostalCode||"",o=r.props.renew_code,a=r.props.purchase_code;n="&postal_code="+n.replace(" ","").toLowerCase();var i=r.props.redirectShopUrl,s=void 0;if(r.props.expiryDate.data.length>0)for(var c=0;c1){for(var c=Array(i),u=0;u0){for(var a=0;a=Object(z.h)(new Date)?"FR"==r.props.language?"Actif":"Active":"FR"==r.props.language?"Expiré":"Expired")}return Qs(Ln.a.Row,{},void 0,Qs(Ln.a.Column,{},void 0,Qs(Eo.a,{},void 0,Qs(Eo.a.Item,{},void 0,Qs(Eo.a.Header,{style:{color:"#757575",fontSize:"14px",fontWeight:600,marginBottom:"3px"}},void 0,"FR"==r.props.language?"Numéro de compte":"Membership/Account Number"),Qs("span",{style:{color:"#000",fontSize:"16px",fontWeight:400}},void 0,r.props.accountNumber)))),Qs(Ln.a.Column,{},void 0,Qs(Eo.a,{},void 0,Qs(Eo.a.Item,{},void 0,Qs(Eo.a.Header,{style:{color:"#757575",fontSize:"14px",fontWeight:600,marginBottom:"3px"}},void 0,"FR"==r.props.language?"État":"Status"),Qs("span",{style:{color:"#000",fontSize:"16px",fontWeight:400}},void 0,t)))),Qs(Ln.a.Column,{},void 0,Qs(Eo.a,{},void 0,Qs(Eo.a.Item,{},void 0,Qs(Eo.a.Header,{style:{color:"#757575",fontSize:"14px",fontWeight:600,marginBottom:"3px"}},void 0,"FR"==r.props.language?"Expiration":"Expiry"),Qs("span",{style:{color:"#000",fontSize:"16px",fontWeight:400}},void 0,n&&n.expiry_date?Object(z.h)(n.expiry_date):"N/A")))))},r.onRenew=function(){var e=r.props.accountNumber,t=r.props.userSettings.PersonMailingPostalCode||"";t="&postal_code="+t.replace(" ","").toLowerCase();var n=r.props.redirectShopUrl;"Purchase"==r.state.renewOrPurchase?n+=r.props.purchase_code:r.props.renew_code?n+=r.props.renew_code:n+="renew",n+="?purchaser="+e+t,window.open(n),r.setState({renewModal:!r.state.renewModal})},r.onRenderRenewModal=function(){return Qs(Ao.a,{dimmer:"blurring",open:r.state.renewModal},void 0,Qs(Ao.a.Header,{style:{backgroundColor:"rgb(68, 77, 88)",color:"#fff",display:"flex",justifyContent:"space-between"}},void 0,Qs("div",{},void 0,r.state.renewOrPurchase," ","FR"==r.props.language?"Maintenant":"Now"),Qs("div",{style:{cursor:"pointer"},onClick:function(){r.setState({renewModal:!r.state.renewModal})}},void 0,Qs(bo.a,{name:"close"}))),Qs(Ao.a.Content,{image:!0},void 0,Qs(Ao.a.Description,{},void 0,("Purchase"===r.state.renewOrPurchase||"Acheter"===r.state.renewOrPurchase)&&Qs(vo.a,{onSubmit:r.onRenew},void 0,Qs(vo.a.Group,{},void 0,Qs(fo.a,{negative:!0,style:{marginRight:"10px"},onClick:function(){return r.setState({renewModal:!r.state.renewModal})}},void 0,"FR"==r.props.language?"Annuler":"Cancel"),Qs(fo.a,{positive:!0},void 0,r.state.renewOrPurchase+" Now"))),("Renew"===r.state.renewOrPurchase||"Renouveler"===r.state.renewOrPurchase)&&Qs(vo.a,{onSubmit:r.onRenew},void 0,Qs(vo.a.Group,{},void 0,Qs(fo.a,{negative:!0,onClick:function(){return r.setState({renewModal:!r.state.renewModal})}},void 0,"FR"==r.props.language?"Annuler":"Cancel"),Qs(fo.a,{positive:!0},void 0,r.state.renewOrPurchase+" Now"))))))},r.renderButtons=function(e){return Qs(fo.a.Group,{style:{display:"flex",justifyContent:"flex-end"}},void 0,Qs(Zs.a,{type:"ismed",width:"200px",onClick:function(){return r.setState({renewModal:!r.state.renewModal})}},void 0,r.state.renewOrPurchase," ","FR"==r.props.language?"Maintenant":"Now"))},r.renderMobileButtons=function(e){return Qs(fo.a.Group,{fluid:!0},void 0,Qs(Zs.a,{type:"ismed",width:"100%",onClick:function(){return r.setState({renewModal:!r.state.renewModal})}},void 0,r.state.renewOrPurchase," ","FR"==r.props.language?"Maintenant":"Now"))},r.state=ec({renewModal:!1,marketingCode:""},r.props.userSettings,{zinio_subscription_active:r.props.zinio_subscription_active,enabled:!0,renewOrPurchase:r.props.renewOrPurchase}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),tc(t,[{key:"componentWillReceiveProps",value:function(e){this.setState(ec({},e.userSettings,{zinio_subscription_active:e.zinio_subscription_active,enabled:!0}))}},{key:"render",value:function(){return Qs(Ln.a,{},void 0,Qs(Ln.a.Row,{},void 0,Qs(Ln.a.Column,{width:13,only:"computer"},void 0,Qs(Ln.a,{columns:"equal"},void 0,this.props.expiryDate&&this.props.expiryDate.data&&this.renderInfo(this.state),Qs(Ln.a.Row,{},void 0,Qs(Ln.a.Column,{},void 0,this.renderSettings(this.state,this.handleChange))))),Qs(Ln.a.Column,{width:16,only:"mobile tablet"},void 0,Qs(Ln.a,{columns:"equal"},void 0,this.props.expiryDate&&this.props.expiryDate.data&&this.renderInfo(this.state),Qs(Ln.a.Row,{},void 0,Qs(Ln.a.Column,{},void 0,this.renderSettings(this.state,this.handleChange))))),this.onRenderRenewModal(),Qs(Ln.a.Column,{width:3,only:"computer"},void 0,this.renderButtons())),Qs(Ln.a.Row,{only:"mobile tablet"},void 0,this.renderMobileButtons()))}}]),t}(n.Component),oc=Object(b.b)({zinio_subscription_active:Object(At.y)(),userSettings:Object(At.s)(),accountNumber:Object(At.d)(),product:Object(x.o)(),sfFields:Object(x.v)(),language:Object(x.j)(),client_id:Object(x.e)(),expiryDate:Object(At.y)(),redirectShopUrl:Object(x.u)(),product_id:Object(x.q)()}),ac=Object(hs.a)(oc),ic=Object(v.compose)(ac)(nc),sc=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u0)for(var i=0;i0){for(var s=0;s=Object(z.h)(new Date)?"FR"==r.props.language?"Actif":"Active":"FR"==r.props.language?"Expiré":"Expired")}return sc(Ln.a.Row,{style:{fontSize:"16px"}},void 0,sc(Ln.a.Column,{},void 0,sc(Eo.a,{},void 0,sc(Eo.a.Item,{},void 0,sc(Eo.a.Header,{},void 0,"FR"==r.props.language?"État":"Status",":"),t))),sc(Ln.a.Column,{},void 0,sc(Eo.a,{},void 0,sc(Eo.a.Item,{},void 0,sc(Eo.a.Header,{},void 0,r.renderHeaderTitle()),o||r.renderExpireInformation(n)))),sc(Ln.a.Column,{},void 0,sc(Eo.a,{},void 0,sc(Eo.a.Item,{},void 0,sc(Eo.a.Header,{},void 0,"FR"==r.props.language?"Numéro de compte:":r.props.membershipAccountId?r.props.membershipAccountId:"Membership/Account Number:"),r.props.accountNumber))))},r.onRenew=function(){var e=r.props.product_id,t=r.props.accountNumber,n=r.props.userSettings.PersonMailingPostalCode||"",o=r.props.renew_code,a=r.props.purchase_code;n="&postal_code="+n.replace(" ","").toLowerCase();var i=r.props.redirectShopUrl,s=void 0;if(r.props.expiryDate.data.length>0)for(var c=0;c1){for(var c=Array(i),u=0;u0&&(i=r.props.boxProgramExpiryDate.data.recent_earned_transaction[0].cycle_type,s=r.props.boxProgramExpiryDate.data.recent_earned_transaction[0].name,c=r.props.boxProgramExpiryDate.data.recent_earned_transaction[0].shipped,u=r.props.boxProgramExpiryDate.data.recent_earned_transaction[0].shipped+r.props.boxProgramExpiryDate.data.recent_earned_transaction[0].remaining+r.props.boxProgramExpiryDate.data.recent_earned_transaction[0].cancelled)),"Unavailable"!==n&&(Object(z.h)(n)>=Object(z.h)(new Date)?(t="FR"==r.props.language?"Actif":"Active","Cancelled"==o&&(t="Inactive")):t="FR"==r.props.language?"Expiré":"Expired"),fc(Ln.a.Row,{style:{fontSize:"16px"}},void 0,fc(Ln.a.Column,{},void 0,fc(Eo.a,{},void 0,fc(Eo.a.Item,{},void 0,fc(Eo.a.Header,{},void 0,"FR"==r.props.language?"État":"Status",":"),t))),fc(Ln.a.Column,{},void 0,fc(Eo.a,{},void 0,fc(Eo.a.Item,{},void 0,fc(Eo.a.Header,{},void 0,"FR"==r.props.language?"Destinataire":"Recipient",":"),a))),fc(Ln.a.Column,{},void 0,fc(Eo.a,{},void 0,fc(Eo.a.Item,{},void 0,fc(Eo.a.Header,{},void 0,"Expiry"),Object(z.h)(n)))),fc(Ln.a.Column,{},void 0,fc(Eo.a,{},void 0,fc(Eo.a.Item,{},void 0,fc(Eo.a.Header,{},void 0,"Product (Frequency)"),s,fc("br",{}),i))),fc(Ln.a.Column,{},void 0,fc(Eo.a,{},void 0,fc(Eo.a.Item,{},void 0,fc(Eo.a.Header,{},void 0,"Shipments"),c," of ",u))),fc(Ln.a.Column,{},void 0,fc(Eo.a,{},void 0,fc(Eo.a.Item,{},void 0,fc(Eo.a.Header,{},void 0,"FR"==r.props.language?"Numéro de compte:":r.props.membershipAccountId?r.props.membershipAccountId:"Membership/Account Number:"),r.props.accountNumber))),fc(Ln.a.Column,{width:3,only:"computer"},void 0,r.renderButtons(r.props.boxProgramExpiryDate.data.autorenews[0])),fc(Ln.a.Column,{width:3,only:"mobile"},void 0,r.renderMobileButtons(r.props.boxProgramExpiryDate.data.autorenews[0],!0)))},r.renderGiftRecipientsInfo=function(e){return r.props.boxProgramExpiryDate.data.autorenews.map((function(e,t){if(t>0){var n,o,a,i="FR"==r.props.language?"Non abonné":"Not Yet Subscribed",s="",c=void 0,u=0,p=0;return n=r.props.boxProgramExpiryDate.data.autorenews[t].autorenew_date,a=""+r.props.boxProgramExpiryDate.data.autorenews[t].recipient_name,o=r.props.boxProgramExpiryDate.data.autorenews[t].processing_type,r.props.boxProgramExpiryDate.data.recent_earned_transaction.length>t&&(s=r.props.boxProgramExpiryDate.data.recent_earned_transaction[t].cycle_type,c=r.props.boxProgramExpiryDate.data.recent_earned_transaction[t].name,u=r.props.boxProgramExpiryDate.data.recent_earned_transaction[t].shipped,p=r.props.boxProgramExpiryDate.data.recent_earned_transaction[t].shipped+r.props.boxProgramExpiryDate.data.recent_earned_transaction[t].remaining+r.props.boxProgramExpiryDate.data.recent_earned_transaction[t].cancelled),"Unavailable"!==n&&(Object(z.h)(n)>=Object(z.h)(new Date)?(i="FR"==r.props.language?"Actif":"Active","Cancelled"==o&&(i="Inactive")):i="FR"==r.props.language?"Expiré":"Expired"),fc(Ln.a.Row,{style:{fontSize:"16px"}},void 0,fc(Ln.a.Column,{},void 0,fc(Eo.a,{},void 0,fc(Eo.a.Item,{},void 0,fc(Eo.a.Header,{},void 0,"FR"==r.props.language?"État":"Status",":"),i))),fc(Ln.a.Column,{},void 0,fc(Eo.a,{},void 0,fc(Eo.a.Item,{},void 0,fc(Eo.a.Header,{},void 0,"FR"==r.props.language?"Destinataire":"Recipient",":"),a))),fc(Ln.a.Column,{},void 0,fc(Eo.a,{},void 0,fc(Eo.a.Item,{},void 0,fc(Eo.a.Header,{},void 0,"Expiry"),Object(z.h)(n)))),fc(Ln.a.Column,{},void 0,fc(Eo.a,{},void 0,fc(Eo.a.Item,{},void 0,fc(Eo.a.Header,{},void 0,"Product (Frequency)"),c,fc("br",{}),s))),fc(Ln.a.Column,{},void 0,fc(Eo.a,{},void 0,fc(Eo.a.Item,{},void 0,fc(Eo.a.Header,{},void 0,"Shipments"),u," of ",p))),fc(Ln.a.Column,{},void 0,fc(Eo.a,{},void 0,fc(Eo.a.Item,{},void 0,fc(Eo.a.Header,{},void 0,"FR"==r.props.language?"Numéro de compte:":r.props.membershipAccountId?r.props.membershipAccountId:"Membership/Account Number:"),e.recipient_id))),fc(Ln.a.Column,{width:3,only:"computer"},void 0,r.renderButtons(r.props.boxProgramExpiryDate.data.autorenews[t])),fc(Ln.a.Column,{width:3,only:"mobile"},void 0,r.renderMobileButtons(r.props.boxProgramExpiryDate.data.autorenews[t],!0)))}}))},r.onRenew=function(e,t,n){var o=r.props.accountNumber,a=r.props.userSettings.PersonMailingPostalCode||"";a="&postal_code="+a.replace(" ","").toLowerCase();var i=r.props.redirectShopUrl,s="?purchaser="+o+a,c="";"Purchase"==t?(i+=r.props.purchase_code,i+=s,n&&(i+="&recipient="+e)):"Change"==t?(i+="change-autorenew?purchaser="+o+a,n&&(i+="&recipient="+e),r.props.renew_code?i+="&ar_mc="+r.props.renew_code:i+="&ar_mc="+r.props.purchase_code):"Manage"==t&&(c+="manage-autorenew"),i+=c+s,window.open(i),r.setState({renewModal:!r.state.renewModal})},r.renderButtons=function(e,t){var n="Purchase";return e&&e.autorenew_date&&new Date(e.autorenew_date)>=new Date&&(!0,n="Change","Cancelled"==e.processing_type&&(n="Manage")),fc(fo.a.Group,{vertical:!0,fluid:!0},void 0,fc(fo.a,{fluid:!0,negative:!0,size:"large",hidden:!r.props.redirectShopUrl,onClick:function(){return r.onRenew(e.recipient_id,n,t)}},void 0,n," ","FR"==r.props.language?"Maintenant":"Now"))},r.renderMobileButtons=function(e,t){var n="Purchase";return e&&e.autorenew_date&&new Date(e.autorenew_date)>=new Date&&(!0,n="Change","Cancelled"==e.processing_type&&(n="Manage")),fc(fo.a.Group,{fluid:!0},void 0,fc(fo.a,{negative:!0,size:"large",onClick:function(){return r.onRenew(e.recipient_id,n,t)}},void 0,n," ","FR"==r.props.language?"Maintenant":"Now"))},r.state=gc({renewModal:!1,marketingCode:""},r.props.userSettings,{zinio_subscription_active:r.props.zinio_subscription_active,enabled:!0,renewOrPurchase:r.props.renewOrPurchase}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),yc(t,[{key:"componentWillReceiveProps",value:function(e){this.setState(gc({},e.userSettings,{zinio_subscription_active:e.zinio_subscription_active,enabled:!0}))}},{key:"render",value:function(){return fc(Ln.a,{},void 0,fc(Ln.a.Row,{},void 0,this.props.boxProgramExpiryDate?fc(o.a.Fragment,{},void 0,fc(Ln.a.Column,{width:16,only:"computer"},void 0,fc(Ln.a,{columns:"equal"},void 0,this.props.boxProgramExpiryDate&&this.props.boxProgramExpiryDate.data&&fc(o.a.Fragment,{},void 0,this.renderInfo(this.state),this.props.boxProgramExpiryDate.data.autorenews.length>1&&this.renderGiftRecipientsInfo(this.state)))),fc(Ln.a.Column,{width:16,only:"mobile tablet"},void 0,fc(Ln.a,{columns:"equal"},void 0,this.props.boxProgramExpiryDate&&this.props.boxProgramExpiryDate.data&&fc(o.a.Fragment,{},void 0,this.props.boxProgramExpiryDate.data.autorenews.length>1&&this.renderGiftRecipientsInfo(this.state))))):fc(Ca,{content:"loading data"})))}}]),t}(n.Component),xc=Object(b.b)({zinio_subscription_active:Object(At.y)(),userSettings:Object(At.s)(),accountNumber:Object(At.d)(),product:Object(x.o)(),sfFields:Object(x.v)(),language:Object(x.j)(),client_id:Object(x.e)(),boxProgramExpiryDate:Object(At.b)(),redirectShopUrl:Object(x.u)(),layout:Object(x.k)(),membershipAccountId:Object(x.l)(),product_id:Object(x.q)(),page:Object(x.n)(),userSubscriptionRecord:Object(At.w)()}),_c=Object(hs.a)(xc),Sc=Object(v.compose)(_c)(vc),wc=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u a{font-size:1.3rem;}> .active.item{font-size:1.5rem;border-color:black;color:'black';}}@media (max-width:511px){.ui.secondary.pointing.menu{overflow-x:",";overflow-y:hidden;> a{font-size:0.9rem;}> .active.item{font-size:0.9rem;border-color:black;color:black;}}}"],(function(e){return e.renderScroll?"scroll":"hidden"}),(function(e){return e.renderScroll?"scroll":"hidden"})),n.styled={border:"none",BoxShadow:"none",WebkitBoxShadow:"none"},n.handleTabChange=function(e){var t="US",r=void 0,o=void 0;for(var a in(o=e.target.innerHTML).includes("amp;")&&(o=o.replace("amp;","")),"Châtelaine"!==o&&"Bel Âge"!==o||(t="FR"),1e3!=n.props.client_id&&2e3!=n.props.client_id&&4e3!=n.props.client_id||(t="CA"),n.props.productPreferences.preferenceValues.my_brand_tab)o==n.props.productPreferences.preferenceValues.my_brand_tab[a].brand_name_alias&&(r=parseInt(a));n.props.onUpdateProduct(o,t,r),n.props.onGetGiftRecipientsInformationV2(n.props.userSettings.Account_Number__pc,r)},n.handleVisible=function(e,t,r){var n=!1;if(r.brand_name_alias&&("true"==r.brand_visible||"True"==r.brand_visible||1==r.brand_visible)&&(e==t.signedIn_product_id&&(n=!0),t.expiryDate&&t.expiryDate.data))for(var o=0;o13}))}}]),t}(n.Component),Fc=Object(b.b)({userSettings:Object(At.s)(),product:Object(x.o)(),sfFields:Object(x.v)(),language:Object(x.j)(),productConfiguration:Object(x.p)(),hideProducts:Object(x.h)(),productPreferences:Object(x.s)(),signedIn_product_id:Object(x.w)(),expiryDate:Object(At.y)(),client_id:Object(x.e)(),layout:Object(x.k)()}),Lc=Nc=Object(s.connect)(Fc,(function(e){return{onUpdateProduct:function(t,r,n){e(Object(Et.m)(t,r,n))},onGetGiftRecipientsInformationV2:function(t,r){e(function(e,t){return{type:Ee,account_number:e}}(t))}}}))(Nc),Dc=(r("9c772359e08e81b5b3ba"),function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;un[e]?1:t[e]n[e]?-1:t[e]0?o="Active":e.cancelled>0&&(o="Cancelled"),ju(Ia.a.Row,{},t,ju(Ia.a.Cell,{},void 0,r.setupDate(e.transaction_date)),ju(Ia.a.Cell,{},void 0,e.transaction_number?e.transaction_number:e.transaction_id),ju(Ia.a.Cell,{},void 0,e.product?e.product:e.item_name),"True"==r.props.layout.trans_history_info.Trans_history_amount&&ju(Ia.a.Cell,{},void 0,n),ju(Ia.a.Cell,{},void 0,e.status?e.status.replace(",",""):o))}))},r.renderTable=function(e){return ju(Ia.a,{unstackable:!r.props.mobileCheck,sortable:!0},void 0,ju(Ia.a.Header,{},void 0,ju(Ia.a.Row,{},void 0,ju(Ia.a.HeaderCell,{onClick:function(){return r.setState(e.data.sort(r.reorderTransactionHistory("transaction_date")))}},void 0,"FR"==r.props.language?"Date de transaction":"Date"),ju(Ia.a.HeaderCell,{onClick:function(){return r.setState(e.data.sort(r.reorderTransactionHistory("transaction_number")))}},void 0,"FR"==r.props.language?"Numéro de transaction":"Transaction #"),ju(Ia.a.HeaderCell,{onClick:function(){return r.setState(e.data.sort(r.reorderTransactionHistory("item_name")))}},void 0,(r.props.language,"Description")),"True"==r.props.layout.trans_history_info.Trans_history_amount&&ju(Ia.a.HeaderCell,{onClick:function(){return r.setState(e.data.sort(r.reorderTransactionHistory("item_price")))}},void 0,"FR"==r.props.language?"Montant":"Amount"),ju(Ia.a.HeaderCell,{onClick:function(){return r.setState(e.data.sort(r.reorderTransactionHistory("item_price")))}},void 0,"FR"==r.props.language?"État":"Status"))),ju(Ia.a.Body,{},void 0,r.renderUserTable(e)))},r.state={toggleAscending:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),ku(t,[{key:"render",value:function(){return this.props.boxTransactionHistory?ju(Ru,{},void 0,this.renderTable(this.props.boxTransactionHistory)):this.props.transactionHistory?ju(Ru,{},void 0,this.renderTable(this.props.transactionHistory)):ju(Ca,{content:"Loading Transaction History"})}}]),t}(n.Component),Au=Object(b.b)({product_id:Object(x.q)()}),Tu=Object(s.connect)(Au)(Eu),Mu=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u0&&Mu(Ln.a.Column,{computer:"Toronto Life"===this.props.product?16:10,tablet:16},void 0,Mu(Hu,{},void 0,Mu(ls,{bannerClick:this.props.bannerClick,state:this.state,updatePref:this.updatePref,tabletCheck:this.props.tabletCheck,client_id:this.props.client_id}))),"Toronto Life"!==this.props.product&&Mu(Ln.a.Column,{computer:"Canadian Business Magazine"===this.props.product?10:6},void 0,Mu(Du,{},void 0,Mu(go.a,{as:"h2"},void 0,Mu(bo.a,{name:"address card outline"}),Mu(go.a.Content,{style:this.props.theme.header},void 0,"FR"==this.props.language?"Mes Coordonnées":"My Details")),Mu(yo.a,{style:this.props.theme.divider}),Mu(Ta,{isLinkSubOpen:this.state.isLinkSubOpen,client_id:this.props.client_id}))),"Canadian Business Magazine"==this.props.product&&Mu(Ln.a.Column,{computer:6},void 0)),Mu(Ln.a.Row,{style:{display:this.props.mobileCheck?"none":""}},void 0,"Toronto Life"==this.props.product&&Mu(Ln.a.Column,{computer:4,tablet:5,mobile:16},void 0,Mu(Du,{},void 0,Mu(go.a,{as:"h2"},void 0,Mu(bo.a,{name:"address card outline"}),Mu(go.a.Content,{style:this.props.theme.header},void 0,"FR"==this.props.language?"Mes Coordonnées":"My Details")),Mu(yo.a,{style:this.props.theme.divider}),Mu(Ta,{isLinkSubOpen:this.state.isLinkSubOpen,client_id:this.props.client_id}))),!this.props.mobileCheck&&Mu(o.a.Fragment,{},void 0,Mu(Ln.a.Column,{computer:"Toronto Life"==this.props.product?5:7,mobile:16},void 0,Mu(Du,{},void 0,Mu(go.a,{as:"h2"},void 0,Mu(bo.a,{name:"comments outline"}),Mu(go.a.Content,{style:this.props.theme.header},void 0,"FR"==this.props.language?"Préférences De Communication":"Communication Preferences")),Mu(yo.a,{style:this.props.theme.divider}),this.props.subscriptionPref&&this.props.subscriptionPref.data&&Mu(Ro,{userSubscriptionRecord:this.props.userSubscriptionRecord,updatePref:this.updatePref,subscriptionPref:this.props.subscriptionPref,language:this.props.language,client_id:this.props.client_id}))),Mu(Ln.a.Column,{computer:"Toronto Life"==this.props.product?7:9,only:"computer"},void 0,Mu(Du,{},void 0,Mu(go.a,{as:"h2"},void 0,Mu(bo.a,{name:"credit card outline"}),Mu(go.a.Content,{style:this.props.theme.header},void 0,"FR"==this.props.language?"Détails De Facturation":"My Billing Information")),Mu(yo.a,{style:this.props.theme.divider}),Mu(Fi,{client_id:this.props.client_id})))),Mu(Ln.a.Column,{style:{marginTop:"20px"},only:"tablet"})),Mu(Ln.a.Row,{},void 0,Mu(Ln.a.Column,{computer:16,tablet:16,mobile:16},void 0,Mu(zu,{},void 0,Mu(go.a,{as:"h2"},void 0,Mu(bo.a,{name:"calendar alternate outline"}),Mu(go.a.Content,{style:this.props.theme.header},void 0,"FR"==this.props.language?"Calendrier De Publication":"Publication Schedule")),Mu(yo.a,{style:this.props.theme.divider}),Mu(Ou,{theme:this.props.theme,language:this.props.language,client_id:this.props.client_id})))),Mu(Ln.a.Row,{style:{display:this.props.mobileCheck?"none":""}},void 0,Mu(Ln.a.Column,{computer:16,tablet:16},void 0,Mu(zu,{},void 0,Mu(go.a,{as:"h2"},void 0,Mu(bo.a,{name:"shop"}),Mu(go.a.Content,{style:this.props.theme.header},void 0,"FR"==this.props.language?"Historique De Transaction":"Transaction History")),Mu(yo.a,{style:this.props.theme.divider}),Mu(Tu,{theme:this.props.theme,transactionHistory:this.props.transactionHistory,language:this.props.language,client_id:this.props.client_id,layout:this.props.layout})))),this.props.mobileCheck&&Mu(Ln.a.Row,{columns:2},void 0,Mu(Ln.a.Column,{mobile:16,only:"mobile"},void 0,Mu(Du,{},void 0,Mu(go.a,{as:"h2"},void 0,Mu(bo.a,{name:"comments outline"}),Mu(go.a.Content,{style:this.props.theme.header},void 0,"FR"==this.props.language?"Préférences De Communication":"Communication Preferences")),Mu(yo.a,{style:this.props.theme.divider}),this.props.subscriptionPref&&this.props.subscriptionPref.data&&Mu(Ro,{userSubscriptionRecord:this.props.userSubscriptionRecord,updatePref:this.updatePref,subscriptionPref:this.props.subscriptionPref,client_id:this.props.client_id}))),Mu(Ln.a.Column,{style:{marginTop:"20px"},only:"mobile"}),Mu(Ln.a.Column,{mobile:16,only:"mobile"},void 0,Mu(Bu,{},void 0,Mu(go.a,{as:"h2"},void 0,Mu(bo.a,{name:"credit card outline"}),Mu(go.a.Content,{style:this.props.theme.header},void 0,"FR"==this.props.language?"Détails De Facturation":"My Billing Information")),Mu(yo.a,{style:this.props.theme.divider}),Mu(Fi,{client_id:this.props.client_id})))))}}]),t}(n.Component),Uu=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u=new Date?"FR"==this.props.language?"Renouveler":"Renew":"FR"==this.props.language?"Acheter":"Purchase"})}},{key:"componentWillReceiveProps",value:function(e){this.setState(_d({},e.userSettings,{zinio_subscription_active:e.zinio_subscription_active,enabled:!0}))}},{key:"render",value:function(){return xd(Ln.a,{},void 0,xd(Ln.a.Row,{},void 0,xd(Ln.a.Column,{},void 0,this.renderSettings(this.state,this.handleChange))))}}]),t}(n.Component),Pd=Object(b.b)({zinio_subscription_active:Object(At.y)(),userSettings:Object(At.s)(),accountNumber:Object(At.d)(),product:Object(x.o)(),product_id:Object(x.q)(),sfFields:Object(x.v)(),language:Object(x.j)(),client_id:Object(x.e)()}),Od=Object(hs.a)(Pd),jd=Object(v.compose)(Od)(Cd),kd=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u0){for(var o=0;o=Object(z.h)(new Date)&&(t=!1)}return!t&&kd(Ln.a.Row,{},void 0,kd(Ln.a.Column,{computer:16,tablet:16},void 0,kd(Dd,{},void 0,kd(Xl,{state:n.state,updatePref:n.updatePref,client_id:n.props.client_id}))))},n.renderLinkSub=function(){var e=void 0,t=!0,r=n.props.product_id;if(n.props.expiryDate.data&&n.props.expiryDate.data.length>0){for(var a=0;a=Object(z.h)(new Date)&&(t=!1)}var i=!0;if(n.props.userSettings.LastName!==n.props.userSettings.PersonEmail&&(i=!1),n.props.userSettings.Account_Number__pc&&t&&i)return kd(o.a.Fragment,{},void 0,n.props.modal.linkSubscription&&kd(Wc,{toggleModal:n.props.toggleModal}),kd(mo.a,{minWidth:667},void 0,kd(fo.a,{negative:!0,size:"large",onClick:function(){return n.props.toggleModal("linkSubscription",!0)},style:{position:"absolute",top:"10px",right:"15px"}},void 0,"FR"==n.props.language?"Lier Mon Abonnement":"Link My Membership")),kd(mo.a,{maxWidth:414},void 0,kd(fo.a,{negative:!0,size:"small",onClick:function(){return n.props.toggleModal("linkSubscription",!0)},style:{position:"absolute",top:"13px",right:"15px"}},void 0,"Link")))},Td(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Rd(t,[{key:"render",value:function(){return kd(o.a.Fragment,{},void 0,kd(Ln.a.Row,{},void 0,kd(Ln.a.Column,{width:16},void 0,kd(Fd,{},void 0,kd(go.a,{as:"h2"},void 0,kd(bo.a,{name:"newspaper outline"}),kd(go.a.Content,{style:this.props.theme.header},void 0,"My ",this.props.product," Subscription",this.props.expiryDate&&this.renderLinkSub())),kd(yo.a,{style:this.props.theme.divider}),kd(go.a,{style:{fontSize:"20px",marginTop:"20px"}},void 0,kd(Lc,{theme:this.props.theme,hanldeItemClick:this.props.hanldeItemClick,client_id:this.props.client_id,renewOrPurchase:this.props.renewOrPurchase})),"Zoomer Magazine"==this.props.product&&kd(o.a.Fragment,{},void 0,kd(go.a,{style:{fontSize:"20px",marginTop:"20px"}},void 0,kd(go.a.Content,{},void 0,"Delivery Details")),kd(yo.a,{}),kd(jd,{})),kd(go.a,{style:{fontSize:"20px",marginTop:"20px"}},void 0,kd(go.a.Content,{},void 0,"Account Details")),kd(yo.a,{}),kd(Ta,{isLinkSubOpen:this.state.isLinkSubOpen,client_id:this.props.client_id}),"C.A.R.P."==this.props.product&&kd(o.a.Fragment,{},void 0,kd(go.a,{style:{fontSize:"20px",marginTop:"20px"}},void 0,kd(go.a.Content,{},void 0,"Partner Info")),kd(yo.a,{}),kd(lu,{state:this.state,updatePref:this.updatePref,client_id:this.props.client_id}))))),"C.A.R.P."==this.props.product&&!this.props.mobileCheck&&this.props.expiryDate&&this.renderChapterSection(),"Zoomer Magazine"==this.props.product&&kd(Ln.a.Row,{},void 0,kd(Ln.a.Column,{computer:8},void 0,kd(Nd,{},void 0,kd(go.a,{as:"h2"},void 0,kd(bo.a,{name:"comments outline"}),kd(go.a.Content,{style:this.props.theme.header},void 0,"Communication Preferences")),kd(yo.a,{style:this.props.theme.divider}),this.props.subscriptionPref&&this.props.subscriptionPref.data&&kd(Ro,{userSubscriptionRecord:this.props.userSubscriptionRecord,updatePref:this.updatePref,subscriptionPref:this.props.subscriptionPref,client_id:this.props.client_id}))),kd(Ln.a.Column,{tablet:8},void 0,kd(Md,{},void 0,kd(go.a,{as:"h2"},void 0,kd(bo.a,{name:"credit card outline"}),kd(go.a.Content,{style:this.props.theme.header},void 0,"Auto Renewal Information")),kd(yo.a,{style:this.props.theme.divider}),kd(Fi,{client_id:this.props.client_id})))),"Zoomer Magazine"==this.props.product&&kd(Ln.a.Row,{},void 0,kd(Ln.a.Column,{computer:16,tablet:16},void 0,kd(Dd,{},void 0,kd(yd,{state:this.state,updatePref:this.updatePref,client_id:this.props.client_id})))),"C.A.R.P."==this.props.product&&!this.props.mobileCheck&&kd(Ln.a.Row,{},void 0,kd(Ln.a.Column,{computer:8,tablet:10},void 0,kd(Nd,{},void 0,kd(go.a,{as:"h2"},void 0,kd(bo.a,{name:"comments outline"}),kd(go.a.Content,{style:this.props.theme.header},void 0,"Communication Preferences")),kd(yo.a,{style:this.props.theme.divider}),this.props.subscriptionPref&&this.props.subscriptionPref.data&&kd(Ro,{userSubscriptionRecord:this.props.userSubscriptionRecord,updatePref:this.updatePref,subscriptionPref:this.props.subscriptionPref,client_id:this.props.client_id}))),kd(Ln.a.Column,{computer:8,tablet:6},void 0,kd(Id,{},void 0,kd(go.a,{as:"h2"},void 0,kd(bo.a,{name:"credit card outline"}),kd(go.a.Content,{style:this.props.theme.header},void 0,"Auto Renewal Information")),kd(yo.a,{style:this.props.theme.divider}),kd(Fi,{client_id:this.props.client_id})))),"C.A.R.P."==this.props.product&&!this.props.mobileCheck&&kd(Ln.a.Row,{},void 0,kd(Ln.a.Column,{computer:16,tablet:16},void 0,kd(Ld,{},void 0,kd(ls,{state:this.state,updatePref:this.updatePref,client_id:this.props.client_id})))),kd(Ln.a.Row,{},void 0,kd(Ln.a.Column,{width:16},void 0,kd(Fd,{style:{paddingBottom:"80px"}},void 0,kd(go.a,{as:"h2"},void 0,kd(bo.a,{name:"comments outline"}),kd(go.a.Content,{style:this.props.theme.header},void 0,"eNewsletter Preferences")),kd(yo.a,{style:this.props.theme.divider}),this.props.eNewsletterPref&&this.props.eNewsletterPref.data&&kd(ip,{updatePref:this.updatePref,eNewsletterPref:this.props.eNewsletterPref,client_id:this.props.client_id})))),"Zoomer Magazine"==this.props.product&&kd(Ln.a.Row,{},void 0,kd(Ln.a.Column,{computer:16,tablet:16,mobile:16},void 0,kd(Fd,{},void 0,kd(go.a,{as:"h2"},void 0,kd(bo.a,{name:"calendar alternate outline"}),kd(go.a.Content,{style:this.props.theme.header},void 0,"FR"==this.props.language?"Calendrier De Publication":"Publication Schedule")),kd(yo.a,{style:this.props.theme.divider}),kd(Ou,{theme:this.props.theme,language:this.props.language,client_id:this.props.client_id})))),kd(Ln.a.Row,{},void 0,kd(Ln.a.Column,{width:16},void 0,kd(Fd,{},void 0,kd(go.a,{as:"h2"},void 0,kd(bo.a,{name:"shop"}),kd(go.a.Content,{style:this.props.theme.header},void 0,"Transaction History")),kd(yo.a,{style:this.props.theme.divider}),kd(Tu,{theme:this.props.theme,transactionHistory:this.props.transactionHistory,product_id:this.props.product_id,language:this.props.language,client_id:this.props.client_id,layout:this.props.layout})))))}}]),t}(n.Component),zd=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u0)return Bh(o.a.Fragment,{},t,e,""===e?null:Bh("br",{}))}))},r.renderButton=function(){return Bh(Zs.a,{style:{position:"absolute",bottom:"30px"},type:"isinv",onClick:function(){return r.props.toggleModal("editCCModal",!0)}},void 0,"FR"==r.props.language?"Modifier":"Edit")},r.renderUserInfo=function(){return Bh("div",{style:{display:"flex",flexDirection:"column",gap:"10px",marginBottom:"20px"}},void 0,Bh("div",{style:{display:"flex",flexDirection:"column"}},void 0,Bh("span",{style:{color:"#757575",fontSize:"14px",fontWeight:600}},void 0,"FR"==r.props.language?"Nom":"Full Name"),Bh("span",{style:{color:"#000",fontSize:"16px",fontWeight:400}},void 0,r.props.userSettings.FirstName," ",r.props.userSettings.LastName)),Bh("div",{style:{display:"flex",flexDirection:"column"}},void 0,Bh("span",{style:{color:"#757575",fontSize:"14px",fontWeight:600}},void 0,"FR"==r.props.language?"Courriel":"Email"),Bh("span",{style:{color:"#000",fontSize:"16px",fontWeight:400}},void 0,r.props.userSettings.PersonEmail)),Bh("div",{style:{display:"flex",flexDirection:"column"}},void 0,Bh("span",{style:{color:"#757575",fontSize:"14px",fontWeight:600}},void 0,"FR"==r.props.language?"Adresse":"Address"),Bh("span",{style:{color:"#000",fontSize:"16px",fontWeight:400}},void 0,r.renderAddress()),Bh("span",{style:{color:"#000",fontSize:"16px",fontWeight:400}},void 0,r.props.userSettings.PersonMailingCity,", ",r.props.userSettings.PersonMailingState,","," ",r.props.userSettings.PersonMailingCountry),Bh("span",{style:{color:"#000",fontSize:"16px",fontWeight:400}},void 0,r.props.userSettings.PersonMailingPostalCode)),Bh("div",{style:{display:"flex",flexDirection:"column"}},void 0,Bh("span",{style:{color:"#757575",fontSize:"14px",fontWeight:600}},void 0,"FR"==r.props.language?"Téléphone":"Phone Number"),Bh("span",{style:{color:"#000",fontSize:"16px",fontWeight:400}},void 0,r.props.userSettings.Phone)),Bh("div",{style:{display:"flex",flexDirection:"column"}},void 0,Bh("span",{style:{color:"#757575",fontSize:"14px",fontWeight:600}},void 0,"FR"==r.props.language?"Entreprise":"Company"),Bh("span",{style:{color:"#000",fontSize:"16px",fontWeight:400}},void 0,r.props.userSettings.PersonCompany__pc)))},r.state={FirstName:r.props.userSettings.FirstName,LastName:r.props.userSettings.LastName,PersonEmail:r.props.userSettings.PersonEmail,PersonMailingStreet:r.props.userSettings.PersonMailingStreet,PersonMailingCity:r.props.userSettings.PersonMailingCity,PersonMailingState:r.props.userSettings.PersonMailingState,PersonMailingCountry:r.props.userSettings.PersonMailingCountry,PersonMailingPostalCode:r.props.userSettings.PersonMailingPostalCode,Phone:r.props.userSettings.Phone,PersonCompany__pc:r.props.userSettings.PersonCompany__pc},r.backup={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Hh(t,[{key:"render",value:function(){var e=this;return this.props.loading?Bh(Ca,{content:"Updating"}):Bh(o.a.Fragment,{},void 0,Bh(Dh,{isOpen:this.props.modal.editCCModal,toggleModal:function(){return e.props.toggleModal()},formType:"edit"}),Bh("div",{style:{display:"flex",justifyContent:"space-between",flexDirection:"column",minHeight:"345px"}},void 0,(7e3===this.props.client_id||7150===this.props.client_id)&&this.renderUserInfo(),Bh("div",{},void 0,this.renderButton())))}}]),t}(n.Component);var Uh=Object(b.b)({userSettings:Object(At.s)(),loading:Object(At.a)(),language:Object(x.j)(),modal:Object(x.B)(),client_id:Object(x.e)()}),Vh=Object(s.connect)(Uh,(function(e){return{toggleModal:function(t,r){return e(Object(Et.k)(t,r))}}})),qh=Object(v.compose)(Vh)(Gh),Wh=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u24?new Date(e.transaction_date).toString().substring(0,24):new Date(e.transaction_date).toString()),Wh(Ia.a.Cell,{},void 0,e.transaction_amount_outstanding.toFixed(2)),Wh(Ia.a.Cell,{},void 0,Wh(xo.a,{radio:!0,name:"pay_bill",value:t,checked:n.state.value===t,onChange:function(){return n.selectTransaction(e,t)}}))),n.renderBundleItems(e.bundle_items))}))))},n.renderBundleItems=function(e){return e.map((function(e,t){if(t>0)return Wh("tr",{},t,Wh("td",{}),Wh("td",{},void 0,n.props.product),Wh("td",{},void 0,e.item_description),Wh("td",{}),Wh("td",{}),Wh("td",{}))}))},n.close=function(){n.props.toggleModal("bill_Me_Later_Modal",!1)},n.parseTransactions=function(e){var t={};return e.forEach((function(e){t[e.transaction_number]||(t[e.transaction_number]=Kh({},e,{bundle_items:[]})),t[e.transaction_number].bundle_items.push(Kh({},e))})),Object.values(t)},n.renderPaymentMethods=function(){return Wh(o.a.Fragment,{},void 0,Wh("hr",{style:{borderTop:"0px"}}),Wh("h4",{},void 0,"Selected Transaction:"," ",n.state.selectedTransaction.transaction_number),Wh("h4",{},void 0,"Amount: ",n.state.selectedTransaction.transaction_amount_outstanding),Wh("hr",{style:{borderTop:"0px"}}))},Yh(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),$h(t,[{key:"render",value:function(){var e=this,t=this.props.outstandingAmount;return Wh(o.a.Fragment,{},void 0,Wh(Ao.a,{dimmer:"blurring",open:this.props.isOpen,size:"large"},void 0,Wh(Ao.a.Header,{style:{backgroundColor:"rgb(68, 77, 88)",color:"#fff",display:"flex",justifyContent:"space-between"}},void 0,Wh("div",{},void 0,"FR"==this.props.language?"Montant dû pour ":"Make a Payment for ",this.props.product),Wh("div",{style:{cursor:"pointer"},onClick:function(){e.close()}},void 0,Wh(bo.a,{name:"close"}))),Wh(Ao.a.Content,{image:!0},void 0,Wh(Ao.a.Description,{},void 0,t&&t.data?this.renderOutstandingTable(this.parseTransactions(t.data)):Wh("h3",{},void 0,"Your Account has no outstanding balance"),Wh(Ln.a,{},void 0,Wh(Ln.a.Row,{},void 0,Wh(Ln.a.Column,{textAlign:"right"},void 0,this.state.selectedTransaction&&this.renderPaymentMethods())),Wh(fo.a,{negative:!0,onClick:function(){return e.close()},style:{width:100,marginLeft:"14px",marginBottom:"14px"}},void 0,"FR"==this.props.language?"Annuler":"Cancel"),Wh(fo.a,{positive:!0,style:{width:100,marginLeft:"10px",marginBottom:"14px"},onClick:function(){return e.onSubmit()}},void 0,"FR"==this.props.language?"Payer":"Pay"))))))}}]),t}(n.Component);var Qh=Object(b.b)({userSettings:Object(At.s)(),recurlyInfo:Object(At.r)(),product:Object(x.o)(),outstandingAmount:Object(At.p)(),accountNumber:Object(At.d)(),language:Object(x.j)(),productConfiguration:Object(x.p)(),product_id:Object(x.q)()}),em=Object(s.connect)(Qh,(function(e){return{toggleModal:function(t,r){return e(Object(Et.k)(t,r))}}}))(Zh),tm=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u0)for(var o=0;o1){for(var c=Array(i),u=0;u0)for(var o=0;o0)for(var t=0;tnew Date?"Active":"Expired":"Not Subscribed"))),pm(Eo.a.Item,{style:{paddingTop:"20px"}},void 0,pm(Eo.a.Content,{},void 0,pm(Eo.a.Header,{},void 0,"FR"==r.props.language?"Date de renouvellement automatique":"AutoRenew Date",":"),pm(Eo.a.Description,{},void 0,new Date(e.autorenew_date).toString().slice(4,-41)||"N/A"))),pm(Eo.a.Item,{style:{paddingTop:"20px"}},void 0,pm(Eo.a.Content,{},void 0,pm(Eo.a.Header,{},void 0),pm(Eo.a.Description,{},void 0))))},r.renderTotalOutstandingAmount=function(){var e=r.props.outstandingAmount;return pm(Eo.a,{verticalAlign:"middle"},void 0,pm(Eo.a.Item,{style:{marginBottom:"20px"}},void 0,pm(Eo.a.Content,{},void 0,pm(Eo.a.Header,{style:{color:"#33A74A",marginBottom:"5px"}},void 0,r.props.product," ","FR"==r.props.language?"Numéros restants":"Balance"),e&&e.data?pm("div",{style:{fontSize:"24px"}},void 0,"`$ $",r.renderTotalOutstandingAmount(r.parseTransactions(e.data)),"`"):pm("div",{style:{fontSize:"24px"}},void 0,"$0.00"))),pm(Zs.a,{type:"issml",onClick:function(){return r.props.toggleModal("bill_Me_Later_Modal",!0)}},void 0,"FR"==r.props.language?"Effectuer un paiement":"Make Payment"))},r.state={addCCModal:!1,bill_Me_Later_Modal:!1,modalEscapeParam:!1},r.listPadding={padding:"5px 0px"},r.backup={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),lm(t,[{key:"render",value:function(){return!this.props.paymentConfig||this.props.billingInfo&&this.props.billingInfo.loading?pm(Ca,{content:"Loading Info"}):pm(o.a.Fragment,{},void 0,this.props.modal.billingCCModal&&pm(cm,{isOpen:this.props.modal.billingCCModal,togglePaymentProvider:this.togglePaymentProvider(),formType:this.mapBillingInfo()?"Add":"Edit"}),pm("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",minHeight:"345px"}},void 0,pm(o.a.Fragment,{},void 0,pm(Ln.a,{columns:2,container:!0,stackable:!0},void 0,pm(Ln.a.Column,{tablet:8,style:{paddingLeft:"0px"}},void 0,this.renderBillingInfo()),pm(Ln.a.Column,{tablet:8},void 0,this.props.layout&&this.props.layout.render_outstanding_bills&&this.renderTotalOutstandingAmount(),this.props.layout&&this.props.layout.render_autorenew_status&&this.renderAutoRenewInfo())),this.props.modal.bill_Me_Later_Modal&&pm(em,{isOpen:this.props.modal.bill_Me_Later_Modal})),pm("div",{},void 0,this.renderButton())))}}]),t}(n.Component);var hm=Object(b.b)({userSettings:Object(At.s)(),product:Object(x.o)(),billingInfo:Object(At.f)(),modal:Object(x.B)(),paymentConfig:Object(At.q)(),language:Object(x.j)(),productConfiguration:Object(x.p)(),product_id:Object(x.q)(),productPreferences:Object(x.s)(),layout:Object(x.k)()}),mm=Object(s.connect)(hm,(function(e){return{toggleModal:function(t,r){return e(Object(Et.k)(t,r))}}})),fm=Object(v.compose)(mm)(dm),gm=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u a{font-size:1.3rem;}> .active.item{font-size:1.5rem;border-color:black;color:black;}}@media (max-width:511px){.ui.secondary.pointing.menu{> a{font-size:0.9rem;}> .active.item{font-size:0.9rem;border-color:black;color:black;}}}"]),n.styled={border:"none",BoxShadow:"none",WebkitBoxShadow:"none"},n.handleTabChange=function(e){var t="US",r=void 0;for(var o in"Châtelaine"===e.target.innerHTML&&(t="FR"),n.props.productPreferences.preferenceValues.my_brand_tab)e.target.innerHTML==n.props.productPreferences.preferenceValues.my_brand_tab[o].brand_name_alias&&(r=parseInt(o));n.props.onUpdateProduct(e.target.innerHTML,t,r)},n.renderPanes=function(){for(var e=[],t={},r={},o=0;o1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u0)return Jm(o.a.Fragment,{},t,e,""===e?null:Jm("br",{}))}))},r.renderButton=function(){return Jm(fo.a,{style:{position:"absolute",bottom:"10px"},onClick:function(){return r.props.toggleModal("customerServiceModal",!0)}},void 0,"FR"==r.props.language?"Nous joindre":"Contact Us")},r.renderCustomerServiceHelp=function(){return Jm("div",{},void 0,"FR"==r.props.language?"Si vous rencontrez un problème ou pour toutes autres questions, veuillez contacter notre équipe du service à la clientèle en cliquant ci-dessous.":"If you're encountering an issue or have a question regarding your account, please click below to reach our Customer Service Team.")},r.backup={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Ym(t,[{key:"render",value:function(){var e=this;return this.props.loading?Jm(Ca,{content:"Updating"}):Jm(o.a.Fragment,{},void 0,Jm($m,{isOpen:this.props.modal.customerServiceModal,toggleModal:function(){return e.props.toggleModal()},formType:"customerService"}),this.renderCustomerServiceHelp(),this.renderButton())}}]),t}(n.Component);var Zm=Object(b.b)({userSettings:Object(At.s)(),loading:Object(At.a)(),language:Object(x.j)(),modal:Object(x.B)(),client_id:Object(x.e)()}),Qm=Object(s.connect)(Zm,(function(e){return{toggleModal:function(t,r){return e(Object(Et.k)(t,r))}}})),ef=Object(v.compose)(Qm)(Xm),tf=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;un[t]?1:r[t]n[t]?-1:r[t]new Date(n[t])?1:new Date(r[t])new Date(n[t])?-1:new Date(r[t])1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;un[e]?1:t[e]n[e]?-1:t[e]1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u0){for(var o=0;o1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u")):e},n.renderModalInformation=function(){var e=n.props.productPreferences&&n.props.productPreferences.preferenceValues&&n.props.productPreferences.preferenceValues.user_sign_in_method[n.props.product_id],t=n.props.productPreferences&&n.props.productPreferences.preferenceValues&&n.props.productPreferences.preferenceValues["Customer Care Email"][n.props.product_id];return 8050==n.props.client_id&&(t=n.props.productPreferences&&n.props.productPreferences.preferenceValues&&n.props.productPreferences.preferenceValues.contact_cs_email&&n.props.productPreferences.preferenceValues.contact_cs_email[n.props.product_id]),nv(o.a.Fragment,{},void 0,"signIn"==n.props.userLoginTab&&nv(o.a.Fragment,{},void 0,nv(zb,{onSubmit:n.handleSubmit,toggleModalTab:n.toggleModalTab,language:n.props.language,mobileCheck:n.props.mobileCheck,loginForm:e}),n.props.userLoginStatus&&n.props.userLoginStatus.error&&nv("p",{style:{color:"red"}},void 0,n.frenchErrorTranslation(n.props.userLoginStatus)),1e3!==n.props.client_id&&nv(o.a.Fragment,{},void 0,"Email"==n.props.productPreferences.preferenceValues.user_sign_in_method[n.props.product_id]&&nv("h3",{},void 0,"FR"==n.props.language?"Vous n’avez pas de compte?":"Need an account?"," ",nv("a",{style:{cursor:"pointer"},onClick:function(){return n.toggleModalTab("signUp")}},void 0,"FR"==n.props.language?"S’inscrire":"Sign Up")),3050!==n.props.client_id?t&&nv("h4",{style:{justifyContent:"left"}},void 0,"Need help signing-in?  Please contact us"," ",nv("a",{href:"mailto:"+t,target:"_blank"},void 0,n.parseHelperURL(t))):nv("h4",{style:{justifyContent:"left"}},void 0,"Need help signing-in?  Please contact us"," ",nv("a",{href:"https://subscribe.thehockeynews.com/contact-us.html",target:"_blank"},void 0,"here")))),"forgotPassword"==n.props.userLoginTab&&nv(o.a.Fragment,{},void 0,nv(Yb,{onSubmit:n.handleForgotPassword,language:n.props.language,handleCancel:n.handleCancel}),n.props.userLoginStatus&&n.props.userLoginStatus.error&&nv("p",{style:{color:"red"}},void 0,n.frenchErrorTranslation(n.props.userLoginStatus))),"resetPassword"==n.props.userLoginTab&&nv(Qb,{onSubmit:n.handleResetPassword,language:n.props.language,userLoginInfoList:n.props.userLoginInfoList.toJS()}),"signUp"==n.props.userLoginTab&&nv(o.a.Fragment,{},void 0,n.props.productPreferences&&n.props.productPreferences.preferenceValues&&"Email"==n.props.productPreferences.preferenceValues.user_sign_in_method[n.props.product_id]&&nv(Ub,{onSubmit:n.handleSubmit,language:n.props.language,userLoginInfoList:n.props.userLoginInfoList.toJS(),showPassword:n.state.showPassword,handleShowPassword:n.handleShowPassword}),n.props.userLoginStatus&&n.props.userLoginStatus.error&&nv("p",{style:{color:"red"}},void 0,n.frenchErrorTranslation(n.props.userLoginStatus)),n.props.userLoginInfoList&&nv("p",{style:{color:"red"}},void 0,n.renderSignUpError(n.props.userLoginInfoList.toJS())),nv("h3",{},void 0,"FR"==n.props.language?"Vous avez déjà un compte? Se connecter":"Already have an account?"," ",nv("a",{style:{cursor:"pointer"},onClick:function(){return n.toggleModalTab("signIn")}},void 0,"FR"==n.props.language?"Se connecter":"Sign In"))),"userVerification"==n.props.userLoginTab&&nv(o.a.Fragment,{},void 0,n.props.userLoginStatus&&n.props.userLoginStatus.data&&n.props.userLoginStatus.data.codeDeliveryDetails&&nv("p",{},void 0,n.renderVerificationInfo()),n.props.userLoginStatus&&n.props.userLoginStatus.data&&n.props.userLoginStatus.data.CodeDeliveryDetails&&nv("p",{},void 0,"FR"==n.props.language?"Le code a été envoyé à "+n.props.userLoginStatus.data.CodeDeliveryDetails.Destination:"Code was sent to "+n.props.userLoginStatus.data.CodeDeliveryDetails.Destination),n.props.userLoginStatus&&n.props.userLoginStatus.error&&nv("p",{style:{color:"red"}},void 0,n.frenchErrorTranslation(n.props.userLoginStatus))),"verificationEmail"==n.props.userLoginTab&&nv(o.a.Fragment,{},void 0,nv(rv,{})))},n.renderVerificationInfo=function(){return"FR"==n.props.language?nv(o.a.Fragment,{},void 0,nv("p",{},void 0,"Nous vous remercions d’avoir créé votre compte personnel chez"," ",n.props.product,"."),nv("p",{style:{fontWeight:"bold"}},void 0,"Veuillez vérifier votre adresse courriel."),nv("p",{},void 0,"Avant de pouvoir accéder à votre compte, vous devez vérifier votre adresse courriel."),nv("p",{},void 0,"Un courriel contenant un lien de vérification a été envoyé à l’adresse"," ",n.props.userLoginStatus.data.codeDeliveryDetails.Destination,"."),nv("p",{},void 0,"Veuillez vérifier votre dossier courrier indésirable si vous ne voyez pas ce courriel dans votre boîte de réception."),1e3!==n.props.client_id&&nv("p",{},void 0,"Veuillez actualiser cette page et ouvrir une session après avoir vérifié votre compte.")):nv(o.a.Fragment,{},void 0,nv("p",{},void 0,"Thank you for signing up to manage your subscription(s)."),nv("p",{},void 0,"Please verify your email address."),nv("p",{},void 0,"An email containing a verification link was sent to"," ",n.props.userLoginStatus.data.codeDeliveryDetails.Destination,"."," ",n.props.productPreferences&&n.props.productPreferences.preferenceValues&&n.props.productPreferences.preferenceValues.sender_email?" The email was sent from "+n.props.productPreferences.preferenceValues.sender_email[n.props.product_id]:"no-reply@verification.com","."),nv("p",{},void 0,"If you do not see an email from us, please check your junk or spam folder."),1e3!==n.props.client_idi&&nv("p",{},void 0,"Please refresh this page and sign in after you have verified your account"))},n.renderMobileMode=function(){return nv(Ln.a,{},void 0,nv(Ao.a,{open:!0,dimmer:"inverted"},void 0,"userVerification"!==n.props.userLoginTab?nv(Ao.a.Content,{},void 0,nv(Ln.a,{columns:1},void 0,nv(Ln.a.Row,{},void 0,nv(Ln.a.Column,{},void 0,n.renderRightColumnTitle()))),nv(Ao.a.Description,{},void 0,nv(Ln.a,{columns:1,stackable:!0},void 0,nv(Ln.a.Row,{verticalAlign:!0,style:{paddingTop:"0px"}},void 0,nv(Ln.a.Column,{},void 0,n.renderModalInformation()),nv(Ln.a.Row,{},void 0,nv(Ln.a.Column,{},void 0,("signIn"==n.props.userLoginTab||"signUp"==n.props.userLoginTab)&&n.props.productPreferences.preferenceValues.social_sign_in[n.props.product_id]&&nv(Ln.a,{columns:2},void 0,nv("h3",{style:{marginTop:"20px"}},void 0,"signIn"==n.props.userLoginTab&&1e3!==n.props.client_id&&"Sign In with your social account*","signUp"==n.props.userLoginTab&&"Sign Up with your social account*"),nv(Ln.a.Row,{},void 0,nv(Ln.a.Column,{},void 0,nv(fo.a,{style:{backgroundColor:"#3B5998",color:"white"},onClick:function(){return n.handleFacebookSignUp()}},void 0,nv(bo.a,{name:"facebook square",size:"small"}),"Facebook")),nv(Ln.a.Column,{},void 0,nv(fo.a,{style:{backgroundColor:"#dd4b39",color:"white"},onClick:function(){return n.handleGoogleSignUp()}},void 0,nv(bo.a,{name:"google",size:"small"}),"Google"))),nv("p",{},void 0,"FR"==n.props.language?"*Si vous avez déjà ouvert un compte, l’adresse courriel utilisée pour votre compte social doit être la même que celle que vous utilisez pour ce compte. Sinon, un nouveau compte sera créé.":"*If you've registered before, the email used with your social account must be the same as the email used with this account. If not, a new account will be generated.")))))))):nv(Ao.a.Content,{},void 0,nv(Ln.a,{columns:2},void 0,nv(Ln.a.Row,{},void 0,nv(Ln.a.Column,{centered:!0},void 0,"userVerification"==n.props.userLoginTab&&n.props.userLoginStatus&&n.props.userLoginStatus.data&&n.props.userLoginStatus.codeDeliveryDetails&&nv("div",{},void 0,"FR"==n.props.language?"Nous avons envoyé un code par courriel à "+n.props.userLoginStatus.data.codeDeliveryDetails.Destination+".":"We have sent a code by email to "+n.props.userLoginStatus.data.codeDeliveryDetails.Destination,nv("br",{}),"FR"==n.props.language?"Entrez le code ci‑dessous pour confirmer votre compte.":"Enter it below to confirm your account."))),nv(Ln.a.Row,{},void 0,nv(Ln.a.Column,{},void 0,n.renderModalInformation()),nv(Ln.a.Column,{},void 0,nv(Fn.a,{src:n.props.logo})))))))},iv(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),ov(t,[{key:"render",value:function(){var e=this;return nv(o.a.Fragment,{},void 0,this.state.renderLoginPage?nv(o.a.Fragment,{},void 0,this.props.productPreferences?this.props.mobileCheck?this.renderMobileMode():nv(Ln.a,{},void 0,nv(Ao.a,{open:!0,dimmer:"inverted"},void 0,"userVerification"!==this.props.userLoginTab?nv(Ao.a.Content,{},void 0,nv(Ln.a,{columns:2},void 0,nv(Ln.a.Row,{},void 0,nv(Ln.a.Column,{style:{borderRight:"solid 1px"}},void 0,this.renderRightColumnTitle()))),nv(Ao.a.Description,{},void 0,nv(Ln.a,{columns:2,stackable:!0},void 0,nv(Ln.a.Row,{verticalAlign:!0,style:{paddingTop:"0px"}},void 0,nv(Ln.a.Column,{style:{borderRight:"solid 1px",paddingTop:"20px"}},void 0,this.renderModalInformation()),nv(Ln.a.Column,{},void 0,"forgotPassword"!==this.props.userLoginTab?nv(Fn.a,{style:{position:"absolute",bottom:1e3!==this.props.client_id?"220px":"370px",right:"0px"},src:this.props.logo}):nv(Fn.a,{style:{marginTop:"20px"},src:this.props.logo}),"signIn"==this.props.userLoginTab&&1e3==this.props.client_id&&nv(o.a.Fragment,{},void 0,nv(Ln.a,{style:{position:"absolute",bottom:"190px"}},void 0,nv(Ln.a.Row,{},void 0,nv(Ln.a.Column,{},void 0,nv("p",{},void 0,"Need to Create an account? ",nv("a",{style:{cursor:"pointer"},onClick:function(){return e.toggleModalTab("signUp")}},void 0,"Register Here")),nv("p",{},void 0,"Once you register for an account, you will receive an email to your inbox to verify your account."),nv("p",{},void 0,"When your account is verified, you will be able to log into your account."))))),("signIn"==this.props.userLoginTab||"signUp"==this.props.userLoginTab)&&this.props.productPreferences.preferenceValues.social_sign_in[this.props.product_id]&&nv(Ln.a,{columns:2,style:{position:"absolute",bottom:"0"}},void 0,nv("h3",{style:{marginTop:"0px"}},void 0,"signIn"==this.props.userLoginTab&&"Sign In with your social account","signUp"==this.props.userLoginTab&&"Sign Up with your social account"),nv(Ln.a.Row,{},void 0,nv(Ln.a.Column,{},void 0,nv(fo.a,{style:{backgroundColor:"#3B5998",color:"white"},onClick:function(){return e.handleFacebookSignUp()}},void 0,nv(bo.a,{name:"facebook square",size:"large"}),"Facebook Login")),nv(Ln.a.Column,{},void 0,nv(fo.a,{style:{backgroundColor:"#dd4b39",color:"white"},onClick:function(){return e.handleGoogleSignUp()}},void 0,nv(bo.a,{name:"google",size:"large"}),"Google Login"))),nv("p",{},void 0,"FR"==this.props.language?"*Si vous vous êtes déjà inscrit, l'e-mail utilisé avec votre compte social doit être le même que l'e-mail utilisé avec ce compte. Sinon, un nouveau compte sera généré.":"*If you've registered before, the email used with your social account must be the same as the email used with this account. If not, a new account will be generated."))))))):nv(Ao.a.Content,{},void 0,nv(Ln.a,{columns:2},void 0,nv(Ln.a.Row,{},void 0,nv(Ln.a.Column,{centered:!0},void 0,"userVerification"==this.props.userLoginTab&&this.props.userLoginStatus&&this.props.userLoginStatus.data&&this.props.userLoginStatus.codeDeliveryDetails&&nv("div",{},void 0,"FR"==this.props.language?"Nous avons envoyé un code par courriel à "+this.props.userLoginStatus.data.codeDeliveryDetails.Destination+".":"We have sent a code by email to "+this.props.userLoginStatus.data.codeDeliveryDetails.Destination,nv("br",{}),"FR"==this.props.language?"Entrez le code ci‑dessous pour confirmer votre compte.":"Enter it below to confirm your account."))),nv(Ln.a.Row,{},void 0,nv(Ln.a.Column,{},void 0,this.renderModalInformation()),nv(Ln.a.Column,{},void 0,nv(Fn.a,{src:this.props.logo}))))))):nv(Ca,{content:"Loading"})):nv(Ca,{content:"Loading"}))}}]),t}(n.Component);var cv=Object(b.b)({userLoginTab:Object(x.E)(),userLoginStatus:Object(x.D)(),language:Object(x.j)(),logo:Object(x.r)(),client_id:Object(x.e)(),product:Object(x.o)(),linkVerification:Object(x.b)(),layout:Object(x.k)(),mobileCheck:Object(x.m)(),userLoginInfoList:Object(x.C)(),tabletCheck:Object(x.z)(),productPreferences:Object(x.s)(),product_id:Object(x.q)(),sso_redirect_url:Object(x.y)()}),uv=Object(s.connect)(cv,(function(e){return{onMobileCheck:function(){e(Object(Et.h)())},onTabletCheck:function(){e(Object(Et.j)())},callUserLoginForm:function(t,r,n){return e(Object(Et.a)(t,r,n))},toggleUserLoginTab:function(t){return e(Object(Et.l)(t))}}})),pv=ge({key:"userSettings",saga:Rn}),lv=Object(v.compose)(pv,uv)(sv),dv=r("1fe17d2599145e018f66"),hv=r.n(dv),mv=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var a=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&a)for(var s in a)void 0===r[s]&&(r[s]=a[s]);else r||(r=a||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],r=[wv,Object(c.routerMiddleware)(t)],n=[v.applyMiddleware.apply(void 0,r)],o=v.compose,a=Object(v.createStore)(Q(),Object(L.fromJS)(e),o.apply(void 0,n));return a.runSaga=wv.run,a.injectedReducers={},a.injectedSagas={},a}({},Rv),Av=document.getElementById("app");i.a.render(jv(s.Provider,{store:Ev},void 0,jv(c.ConnectedRouter,{history:Rv},void 0,jv(_v,{}))),Av)},"94ca4779dc8447540bb8":function(e,t,r){"use strict";var n,o=r("8af190b70a6bc55c6f1b"),a=(r("8a2d1b95e05b6a321e74"),{default:{default:{backgroundColor:"#449CCE",height:"30px",borderRadius:"3px",paddingLeft:"20px",paddingRight:"20px",fontWeight:"bold",lineHeight:"0px",border:"none",color:"#ffffff",alignSelf:"center"},disabled:{backgroundColor:"#7d7d7d",color:"#000000"},hover:{backgroundColor:"#62B4E3",boxShadow:"0px 2px 3px #888888"}},ismed:{default:{borderRadius:"3px",backgroundColor:"#33A74A",padding:"10px 15px",color:"#fff",font:"normal normal 14px Arial",fontWeight:600},disabled:{backgroundColor:"#7d7d7d",color:"#000000"},hover:{backgroundColor:"#5cb85c",boxShadow:"0px 2px 3px #888888"}},issml:{default:{borderRadius:"3px",backgroundColor:"#33A74A",color:"#fff",font:"normal normal 14px Arial",fontWeight:600,cursor:"pointer",padding:"7px 15px"},disabled:{backgroundColor:"#7d7d7d",color:"#000000"},hover:{backgroundColor:"#5cb85c",boxShadow:"0px 2px 3px #888888"}},isinv:{default:{borderRadius:"3px",padding:"10px 15px",fontFamily:"Lato,'Helvetica Neue',Arial,Helvetica,sans-serif",backgroundColor:"#fff",fontWeight:600,border:"2px solid #33a74a",color:"#000"},disabled:{backgroundColor:"#7d7d7d",color:"#000000"},hover:{color:"#ffffff",backgroundColor:"#33a74a",boxShadow:"0px 2px 3px #888888"}}}),i=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,r,o){var a=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});if(1===i)t.children=o;else if(i>1){for(var c=Array(i),u=0;u1){for(var c=Array(i),u=0;u0&&void 0!==arguments[0]?arguments[0]:null,t="";switch(e){case"Orchid":t="#EC008C";break;case"Australia":t="#3ca3ab";break;case"Dusk":t="#283876";break;case"Paradise":t="#5BC6CC";break;case"Solar":t="#FFDE00";break;case"Scarlet":t="#EE3124";break;case"Firebrick":t="#B22222";break;case"Red":t="#CC3333";break;case"Historic":t="#EF2503";break;case"C.A.R.P.":t="#1668C3";break;case"Zoom":t="#B70E4F";break;case"Olive":t="olivedrab";break;case"Sky":t="#028ADC";break;case"Dark":t="black"}var r={loader:{color:t},header:{color:t},divider:{backgroundColor:t},subscriptionTab:{$color:t},subscriptionHero:{color:t}};return r},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;switch(e){case"Cottage Life":case"Ottawa":return"olivedrab";case"Quill and Quire":return"blue";case"Toronto Life":return"Firebrick";case"FASHION":return"Red";case"Chatelaine":return"Orchid";case"Châtelaine":return"Scarlet";case"HELLO! Canada":case"Canadian Business Magazine":return"Dusk";case"Maclean's":return"Solar";case"Today's Parent":return"Paradise";case"Canada's History":return"Historic";case"Kayak":return"Sky";case"Australian Geographic":return"Australia";case"C.A.R.P.":return"C.A.R.P.";case"Zoomer Magazine":return"Zoom";case"The Walrus":case"Courage CX Magazine":case"IrishCentral Box":case"Bake From Scratch":case"Flying Magazine":case"Flying Magazine Paywall":case"Motortrend":case"Hot Rod":case"Four Wheeler":case"Motor Trend Group":case"Ornament Magazine":case"The Absolute Sound":case"BASSMASTER Membership":case"BASS Nation":case"Celebrate":case"First for Women":case"Woman's World":default:return"Dark"}},i=function(e){switch(e){case"localhost:8081":case"https://my.carp.ca".substring(8,"https://my.carp.ca".length):return"1000";case"https://my.cottagelife.com".substring(8,"https://my.cottagelife.com".length):return"2000";case"https://my.zoomer.ca".substring(8,"https://my.zoomer.ca".length):return"1000";case"https://my.australiangeographic.com.au".substring(8,"https://my.australiangeographic.com.au".length):return"3000";case"https://my.torontolife.com".substring(8,"https://my.torontolife.com".length):case"https://my.ottawamagazine.com".substring(8,"https://my.ottawamagazine.com".length):case"https://my.quillandquire.com".substring(8,"https://my.quillandquire.com".length):case"https://my.fashionmagazine.com".substring(8,"https://my.fashionmagazine.com".length):case"https://my.chatelaine.com".substring(8,"https://my.chatelaine.com".length):case"https://mon.fr.chatelaine.com".substring(8,"https://mon.fr.chatelaine.com".length):case"https://my.todaysparent.com".substring(8,"https://my.todaysparent.com".length):case"https://my.mightymag.com".substring(8,"https://my.mightymag.com".length):case"https://my.macleans.ca".substring(8,"https://my.macleans.ca".length):case"https://my.hellomagazine.ca".substring(8,"https://my.hellomagazine.ca".length):case"https://my.canadianbusiness.com".substring(8,"https://my.canadianbusiness.com".length):case"https://mythreemagazine.darwin.cx".substring(8,"https://mythreemagazine.darwin.cx".length):return"4000";case"https://my.canadashistory.ca".substring(8,"https://my.canadashistory.ca".length):return"5000";case"https://my.thewalrus.ca".substring(8,"https://my.thewalrus.ca".length):return"6000";case"https://my.irishcentralbox.com".substring(8,"https://my.irishcentralbox.com".length):return"7000";case"https://myaccount.bassmaster.com".substring(8,"https://myaccount.bassmaster.com".length):return"7150";case"https://my.bakefromscratch.com".substring(8,"https://my.bakefromscratch.com".length):case"https://my.motortrend.com".substring(8,"https://my.motortrend.com".length):case"https://my.hotrod.com".substring(8,"https://my.hotrod.com".length):case"https://my.fourwheeler.com".substring(8,"https://my.fourwheeler.com".length):case"https://my.motortrendgroup.com".substring(8,"https://my.motortrendgroup.com".length):return"8700";case"https://my.flyingmag.com".substring(8,"https://my.flyingmag.com".length):return"9450";case"https://my.bakefromscratch.com".substring(8,"https://my.bakefromscratch.com".length):case"https://my.thecottagejournal.com".substring(8,"https://my.thecottagejournal.com".length):case"https://my.classicsewingmagazine.com".substring(8,"https://my.classicsewingmagazine.com".length):case"https://my.louisianacookin.com".substring(8,"https://my.louisianacookin.com".length):case"https://my.pauladeenmagazine.com".substring(8,"https://my.pauladeenmagazine.com".length):case"https://my.southerncastiron.com".substring(8,"https://my.southerncastiron.com".length):case"https://my.southernhomemagazine.com".substring(8,"https://my.southernhomemagazine.com".length):case"https://my.southernladymagazine.com".substring(8,"https://my.southernladymagazine.com".length):case"https://my.teatimemagazine.com".substring(8,"https://my.teatimemagazine.com".length):case"https://my.tasteofthesouthmagazine.com".substring(8,"https://my.tasteofthesouthmagazine.com".length):case"https://my.victoriamag.com".substring(8,"https://my.victoriamag.com".length):return"9500";case"https://my.celebrate.womansworld.com".substring(8,"https://my.celebrate.womansworld.com".length):case"https://my.firstforwomen.com".substring(8,"https://my.firstforwomen.com".length):case"https://my.womansworld.com".substring(8,"https://my.womansworld.com".length):case"https://my.animaltalesmag.com".substring(8,"https://my.animaltalesmag.com".length):case"https://my.girlsworldmag.com".substring(8,"https://my.girlsworldmag.com".length):case"https://my.j-14.com".substring(8,"https://my.j-14.com".length):case"https://mypuzzle-fun.darwin.cx".substring(8,"https://mypuzzle-fun.darwin.cx".length):case"https://my.usmagazine.com".substring(8,"https://my.usmagazine.com".length):case"https://my.digital.usmagazine.com".substring(8,"https://my.digital.usmagazine.com".length):case"https://my.closerweekly.com".substring(8,"https://my.closerweekly.com".length):case"https://my.intouchweekly.com".substring(8,"https://my.intouchweekly.com".length):case"https://my.intouchweekly.com".substring(8,"https://my.intouchweekly.com".length):case"https://my.digital.intouchweekly.com".substring(8,"https://my.digital.intouchweekly.com".length):case"https://my.lifeandstylemag.com".substring(8,"https://my.lifeandstylemag.com".length):case"https://my.digital.lifeandstylemag.com".substring(8,"https://my.digital.lifeandstylemag.com".length):case"https://my.soapoperadigest.com".substring(8,"https://my.soapoperadigest.com".length):case"https://my.digital.soapoperadigest.com".substring(8,"https://my.digital.soapoperadigest.com".length):case"https://my.starmagazine.com".substring(8,"https://my.starmagazine.com".length):case"https://my.digital.starmagazine.com".substring(8,"https://my.digital.starmagazine.com".length):case"https://my.nationalenquirer.com".substring(8,"https://my.nationalenquirer.com".length):case"https://my.nationalexaminer.com".substring(8,"https://my.nationalexaminer.com".length):case"https://my.globemagazine.com".substring(8,"https://my.globemagazine.com".length):case"https://mydrew.darwin.cx".substring(8,"https://mydrew.darwin.cx".length):case"https://my.deniseaustin.com".substring(8,"https://my.deniseaustin.com".length):return"8050";case"https://myabsolutesound.darwin.cx".substring(8,"https://myabsolutesound.darwin.cx".length):return"9750";case"https://myornamentmagazine.darwin.cx".substring(8,"https://myornamentmagazine.darwin.cx".length):return"1050";case"https://my.courage.cx".substring(8,"https://my.courage.cx".length):return"9999";case"https://my.skicanadamag.com".substring(8,"https://my.skicanadamag.com".length):return"3150";case"https://my.funnytimes.com".substring(8,"https://my.funnytimes.com".length):return"3350";case"https://my.getspecialdelivery.com".substring(8,"https://my.getspecialdelivery.com".length):case"https://my.steeltoreelclub.com".substring(8,"https://my.steeltoreelclub.com".length):return"2250";case"https://my.lebelage.ca".substring(8,"https://my.lebelage.ca".length):case"https://my.goodtimes.ca".substring(8,"https://my.goodtimes.ca".length):return"3100";case"https://my.canadiancycling.com".substring(8,"https://my.canadiancycling.com".length):case"https://my.canadianrunningmag.com".substring(8,"https://my.canadianrunningmag.com".length):case"https://my.grippedmag.com".substring(8,"https://my.grippedmag.com".length):case"https://my.triathlonmag.com".substring(8,"https://my.triathlonmag.com".length):return"2550";case"https://my.darwinbox.secure.darwin.cx".substring(8,"https://my.darwinbox.secure.darwin.cx".length):return"3300";case"https://my.biosphere.com".substring(8,"https://my.biosphere.com".length):case"https://my.canadianwildlife.com".substring(8,"https://my.canadianwildlife.com".length):case"https://my.wildforkids.com".substring(8,"https://my.wildforkids.com".length):case"https://my.faunetastique.com".substring(8,"https://my.faunetastique.com".length):return"2500";case"https://my.owlkids.com".substring(8,"https://my.owlkids.com".length):case"https://my.owlkids.com".substring(8,"https://my.owlkids.com".length):case"https://my.owlkids.com".substring(8,"https://my.owlkids.com".length):case"https://my.owlkids.com".substring(8,"https://my.owlkids.com".length):case"https://my.owlkids.com".substring(8,"https://my.owlkids.com".length):case"https://my.owlkids.com".substring(8,"https://my.owlkids.com".length):return"2350";case"https://mytabletalkmagazine.darwin.cx".substring(8,"https://mytabletalkmagazine.darwin.cx".length):return"1450";case"https://myspacenews.darwin.cx".substring(8,"https://myspacenews.darwin.cx".length):return"9950";case"https://mysandiegomagazine.darwin.cx".substring(8,"https://mysandiegomagazine.darwin.cx".length):return"2050";case"https://myalaskamagazine.darwin.cx".substring(8,"https://myalaskamagazine.darwin.cx".length):case"https://mywesternhorseman.darwin.cx".substring(8,"https://mywesternhorseman.darwin.cx".length):case"https://mygrayssportingjournal.darwin.cx".substring(8,"https://mygrayssportingjournal.darwin.cx".length):case"https://myflytyer.darwin.cx".substring(8,"https://myflytyer.darwin.cx".length):case"https://mybarrelhorsenews.darwin.cx".substring(8,"https://mybarrelhorsenews.darwin.cx".length):case"https://myorlandomagazine.darwin.cx".substring(8,"https://myorlandomagazine.darwin.cx".length):case"https://mycharlottemagazine.darwin.cx".substring(8,"https://mycharlottemagazine.darwin.cx".length):case"https://myaugustamagazine.darwin.cx".substring(8,"https://myaugustamagazine.darwin.cx".length):case"https://mysavannahmagazine.darwin.cx".substring(8,"https://mysavannahmagazine.darwin.cx".length):case"https://mygeorgiatrend.darwin.cx".substring(8,"https://mygeorgiatrend.darwin.cx".length):return"8000";case"https://myclick.darwin.cx".substring(8,"https://myclick.darwin.cx".length):return"1100";case"https://mygreatdaysoutdoors.darwin.cx".substring(8,"https://mygreatdaysoutdoors.darwin.cx".length):return"1200";case"https://myvegnews.darwin.cx".substring(8,"https://myvegnews.darwin.cx".length):return"1950";case"https://myexpositor.darwin.cx".substring(8,"https://myexpositor.darwin.cx".length):return"1150";case"https://my.thehockeynews.com".substring(8,"https://my.thehockeynews.com".length):return"3050";case"https://mymotorcyclemojo.darwin.cx".substring(8,"https://mymotorcyclemojo.darwin.cx".length):return"2450";case"https://myharrowsmith.darwin.cx".substring(8,"https://myharrowsmith.darwin.cx".length):return"3250";case"https://myoperacanada.darwin.cx".substring(8,"https://myoperacanada.darwin.cx".length):return"2850";case"https://myfuneralserviceinsider.darwin.cx".substring(8,"https://myfuneralserviceinsider.darwin.cx".length):case"https://myamericancemetaryandcremations.darwin.cx".substring(8,"https://myamericancemetaryandcremations.darwin.cx".length):return"9650";case"https://myporthole.darwin.cx".substring(8,"https://myporthole.darwin.cx".length):return"1300";case"https://myimbibe.darwin.cx".substring(8,"https://myimbibe.darwin.cx".length):return"9000";case"https://mydailycommercialnews.darwin.cx".substring(8,"https://mydailycommercialnews.darwin.cx".length):return"2950";case"https://my.stumpsittersclub.com".substring(8,"https://my.stumpsittersclub.com".length):return"8100`";case Object({NODE_ENV:"production"}).AMG_MY_URL&&Object({NODE_ENV:"production"}).AMG_MY_URL.substring(8,Object({NODE_ENV:"production"}).AMG_MY_URL.length):case"https://mygunsmagazine.darwin.cx".substring(8,"https://mygunsmagazine.darwin.cx".length):case"https://myshootingindustry.darwin.cx".substring(8,"https://myshootingindustry.darwin.cx".length):return"9700";case"https://mylionsroar.darwin.cx".substring(8,"https://mylionsroar.darwin.cx".length):return"1500";case"https://mylamag.darwin.cx".substring(8,"https://mylamag.darwin.cx".length):return"3450";case"https://mywyomingwildlife.darwin.cx".substring(8,"https://mywyomingwildlife.darwin.cx".length):return"1800";case"https://mytheamericanscholar.darwin.cx".substring(8,"https://mytheamericanscholar.darwin.cx".length):return"1900";case"https://mybicycleretailer.darwin.cx".substring(8,"https://mybicycleretailer.darwin.cx".length):return"1350";case"https://myuphere.darwin.cx".substring(8,"https://myuphere.darwin.cx".length):return"3200";case"https://myliteraryreviewofcanada.darwin.cx".substring(8,"https://myliteraryreviewofcanada.darwin.cx".length):return"2650";case"https://myprorodeo.darwin.cx".substring(8,"https://myprorodeo.darwin.cx".length):return"9800";case"https://mypalmspringslife.darwin.cx".substring(8,"https://mypalmspringslife.darwin.cx".length):return"9850";case"https://mytheredbulletin.darwin.cx".substring(8,"https://mytheredbulletin.darwin.cx".length):return"2150";case"https://myfreeskier.darwin.cx".substring(8,"https://myfreeskier.darwin.cx".length):return"9900";case"https://mymissourilife.darwin.cx".substring(8,"https://mymissourilife.darwin.cx".length):return"2100";case"https://myreason.darwin.cx".substring(8,"https://myreason.darwin.cx".length):case"https://myreason.darwin.cx".substring(8,"https://myreason.darwin.cx".length):return"2200";case"https://MYinpickleball.darwin.cx".substring(8,"https://MYinpickleball.darwin.cx".length):return"9600";case"https://mybroadview.darwin.cx".substring(8,"https://mybroadview.darwin.cx".length):return"2800";case"https://myhouseandhome.darwin.cx".substring(8,"https://myhouseandhome.darwin.cx".length):case"https://myhouseandhome.darwin.cx".substring(8,"https://myhouseandhome.darwin.cx".length):return"2600";case"https://my.modernreformation.darwin.cx".substring(8,"https://my.modernreformation.darwin.cx".length):return"1250";case"https://my.beveragejournalinc.com".substring(8,"https://my.beveragejournalinc.com".length):case"https://my.beveragejournalinc.com".substring(8,"https://my.beveragejournalinc.com".length):return"3850";case"https://mygrassrootsmotorsports.darwin.cx".substring(8,"https://mygrassrootsmotorsports.darwin.cx".length):case"https://myclassicmotorsports.darwin.cx".substring(8,"https://myclassicmotorsports.darwin.cx".length):return"4400";case"https://my.militaryheritage.com".substring(8,"https://my.militaryheritage.com".length):case"https://my.otakuusa.com".substring(8,"https://my.otakuusa.com".length):case"https://my.warfarehistorynetwork.com".substring(8,"https://my.warfarehistorynetwork.com".length):case"https://my.wwiihistory.com".substring(8,"https://my.wwiihistory.com".length):case"https://my.logcabinhomes.com".substring(8,"https://my.logcabinhomes.com".length):return"3550";case"https://myfilmanddigitaltimes.darwin.cx".substring(8,"https://myfilmanddigitaltimes.darwin.cx".length):return"4050";case"https://my.culturecheesemag.com".substring(8,"https://my.culturecheesemag.com".length):return"3950";case"https://myreadingleague.darwin.cx".substring(8,"https://myreadingleague.darwin.cx".length):return"4450";case"https://mycanadiangeographic.darwin.cx".substring(8,"https://mycanadiangeographic.darwin.cx".length):return"2700";case"https://3750-20-03960298b-stage-shop.darwin.cx/".substring(8,"https://3750-20-03960298b-stage-shop.darwin.cx/".length):return"3750";case"https://my.hilarykramer.com".substring(8,"https://my.hilarykramer.com".length):case"https://my.hilarykramer.com".substring(8,"https://my.hilarykramer.com".length):case"https://my.hilarykramer.com".substring(8,"https://my.hilarykramer.com".length):case"https://my.hilarykramer.com".substring(8,"https://my.hilarykramer.com".length):case"https://my.hilarykramer.com".substring(8,"https://my.hilarykramer.com".length):case"https://my.hilarykramer.com".substring(8,"https://my.hilarykramer.com".length):case"https://my.hilarykramer.com".substring(8,"https://my.hilarykramer.com".length):case"https://my.hilarykramer.com".substring(8,"https://my.hilarykramer.com".length):case"https://my.hilarykramer.com".substring(8,"https://my.hilarykramer.com".length):return"4500"}return null},s=function(e){var t=void 0;return"Cottage Life"==e&&(t="COT_"),"Ottawa"==e&&(t="OTT_"),"Quill and Quire"==e&&(t="QQM_"),"Toronto Life"==e&&(t="TLM_"),"FASHION"==e&&(t="FSM_"),"Chatelaine"==e&&(t="CHE_"),"Châtelaine"==e&&(t="CHF_"),"HELLO! Canada"==e&&(t="HLO_"),"Today's Parent"==e&&(t="TDP_"),"3 magazine"==e&&(t="TMP_"),"Mighty Mag"==e&&(t="MMG_"),"Canadian Business Magazine"==e&&(t="CBU_"),"C.A.R.P."==e&&(t="CARP_"),"Zoomer Magazine"==e&&(t="Zoomer_"),"Canada's History"==e&&(t="CDH_"),"The Walrus"==e&&(t="WLS_"),"Australian Geographic"==e&&(t="AUS_"),"IrishCentral Box"==e&&(t="ICB_"),"Ornament Magazine"==e&&(t="ORN_"),"The Absolute Sound"==e&&(t="ABS_"),"Celebrate"==e&&(t="CEL_"),"First for Women"==e&&(t="FFW_"),"Woman's World"==e&&(t="WMN_"),"Ski Canada"==e&&(t="SKC_"),"Funny Times"==e&&(t="FUN_"),"Steel to Reel Club"==e&&(t="STR_"),"Belage"==e&&(t="BEL_"),"Goodtimes"==e&&(t="GTM_"),"Canadian Cycling"==e&&(t="CCL_"),"Canadian Running"==e&&(t="CRN_"),"Gripped"==e&&(t="GRM_"),"Triathlon"==e&&(t="TMC_"),"Biosphere"==e&&(t="BIO_"),"Canadian Wildlife"==e&&(t="CWE_"),"Wild for Kids"==e&&(t="WKM_"),"Faunetastique"==e&&(t="YBB_"),"Chirp"==e&&(t="CHP_"),"Chickadee"==e&&(t="CCH_"),"Owl"==e&&(t="COW_"),"Chirp US"==e&&(t="UCP_"),"Chickadee US"==e&&(t="CHK_"),"Owl US"==e&&(t="OWL_"),"Tabletalk"==e&&(t="TBL_"),"Space News"==e&&(t="SPA_"),"San Diego"==e&&(t="SDM_"),"Alaska"==e&&(t="ALA_"),"White Horsemen"==e&&(t="WHR_"),"Gray's Sporting Journal"==e&&(t="GRY_"),"Fly Tyer"==e&&(t="FYT_"),"Barrel Horse News"==e&&(t="BRL_"),"Orlando Magazine"==e&&(t="OMA_"),"Charlotte Magazine"==e&&(t="CHR_"),"Augusta Magazine"==e&&(t="AUG_"),"Savannah Magazine"==e&&(t="SAH_"),"Georgia Trend"==e&&(t="GTR_"),"Click"==e&&(t="CLK_"),"Great Days Outdoors"==e&&(t="GDO_"),"VegNews Magazine"==e&&(t="VEG_"),"Expositor Magazine"==e&&(t="EXP_"),"The Hockey News"==e&&(t="HNC_"),"Motorcycle Mojo"==e&&(t="MOJ_"),"Harrowsmith"==e&&(t="HAR_"),"Opera Canada"==e&&(t="OPC_"),"Funeral Service Insider"==e&&(t="FSI_"),"American Funeral Director"==e&&(t="AFD_"),"Porthole Cruise and Travel"==e&&(t="PRT_"),"Imbibe Magazine"==e&&(t="IMB_"),"Reed Magazine"==e&&(t="DCN_"),"Stump Sitters Club"==e&&(t="SSC_"),"Literary Review of Canada"==e&&(t="LRC_"),"Uphere Magazine"==e&&(t="UPH_"),"Broadview Magazine"==e&&(t="BRD_"),"Canadian House and Home"==e&&(t="CNH_"),"Canadian House and Home US"==e&&(t="CNU_"),{Expiry_Date__pc:t+"Expiry_Date__pc",Expiry_Issue__pc:t+"Expiry_Issue__pc",Free_Digital_Edition__pc:t+"Free_Digital_Edition__pc",legacy_account_number__pc:t+"legacy_account_number__pc",payment_provider_id__pc:t+"payment_provider_id__pc",Suppress_Print_Edition__pc:t+"Suppress_Print_Edition__pc",Do_Not_Call__pc:t+"Do_Not_Call__pc",Do_Not_Mail__pc:t+"Do_Not_Mail__pc",No_Chapter_Communications__pc:t+"No_Chapter_Communications__pc",No_Printed_Material__pc:t+"No_Printed_Material__pc",Action_Subscribed__pc:t+"Action_Subscribed__pc",Health_Subscribed__pc:t+"Health_Subscribed__pc",Lifestyle_Subscribed__pc:t+"Lifestyle_Subscribed__pc",Promo_Subscribed__pc:t+"Promo_Subscribed__pc",Savings_Subscribed__pc:t+"Savings_Subscribed__pc",Travel_Subscribed__pc:t+"Travel_Subscribed__pc"}},c=function(e,t){return null==t&&(t=50),e.length>t?e.substring(0,t):e},u=function(){var e=void 0,t=window.location.hash;t=t.split("&");for(var r=0;r=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function a(t,r,a,i){var s=new Request(t,{method:i,body:JSON.stringify(r),headers:new Headers(a)});return e(s).then(o).then(n)}}).call(this,r("5e511fa944f88972e69c"))},fcb99a06256635f70435:function(e,t,r){"use strict";r.d(t,"j",(function(){return n})),r.d(t,"l",(function(){return o})),r.d(t,"k",(function(){return a})),r.d(t,"m",(function(){return i})),r.d(t,"o",(function(){return s})),r.d(t,"p",(function(){return c})),r.d(t,"d",(function(){return u})),r.d(t,"f",(function(){return p})),r.d(t,"e",(function(){return l})),r.d(t,"g",(function(){return d})),r.d(t,"i",(function(){return h})),r.d(t,"h",(function(){return m})),r.d(t,"r",(function(){return f})),r.d(t,"q",(function(){return g})),r.d(t,"n",(function(){return y})),r.d(t,"a",(function(){return b})),r.d(t,"c",(function(){return v})),r.d(t,"b",(function(){return x}));var n="boilerplate/App/LOAD_REPOS",o="boilerplate/App/LOAD_REPOS_SUCCESS",a="boilerplate/App/LOAD_REPOS_ERROR",i="MOBILE_CHECK",s="TABLET_CHECK",c="TOGGLE_MODAL",u="containers/SettingsPage/GET_MY_CONFIG_SETTINGS",p="containers/SettingsPage/GET_MY_CONFIG_SETTINGS_SUCCESS",l="containers/SettingsPage/GET_MY_CONFIG_SETTINGS_FAILURE",d="containers/SettingsPage/GET_PRODUCT_PREFERENCES",h="containers/SettingsPage/GET_PRODUCT_PREFERENCES_SUCCESS",m="containers/SettingsPage/GET_PRODUCT_PREFERENCES_FAILURE",f="UPDATE_PRODUCT",g="TOGGLE_USER_LOGIN_TAB",y="REDIRECT_PAGE",b="containers/SettingsPage/CALL_USER_LOGIN",v="containers/SettingsPage/CALL_USER_LOGIN_SUCCESS",x="containers/SettingsPage/CALL_USER_LOGIN_FAILURE"}},[[0,1,2]]]);