var yotpoWidgetsContainer = yotpoWidgetsContainer || {}; (function(){ var loader = { loadDep: function (link, onLoad, strategy) { var script = document.createElement('script'); script.onload = onLoad || function(){}; script.src = link; if (strategy === 'defer') { script.defer = true; } else if (strategy === 'async') { script.async = true; } script.setAttribute("type", "text/javascript"); script.setAttribute("charset", "utf-8"); document.head.appendChild(script); }, config: { data: { guid: "XA7Q9rp56gR2Mgnk0aJeUA" }, widgets: { "10569": { instanceId: "10569", instanceVersionId: "471608", templateAssetUrl: "https://cdn-widget-assets.yotpo.com/widget-referral-widget/app.v1.6.8-2130.js", cssOverrideAssetUrl: "", customizationCssUrl: "", customizations: { "background-color": "rgba( 4, 65, 55, 1 )", "background-image-url": "https://cdn-widget-assets.yotpo.com/static_assets/XA7Q9rp56gR2Mgnk0aJeUA/images/image_2020_11_10_00_04_14_008", "customer-email-view-button-text": "NEXT", "customer-email-view-description": "Earn $10 off when you refer a friend who spends $50+ on their first purchase!*", "customer-email-view-header": "Refer a Friend", "customer-email-view-title": "Give $10, Get $10", "default-toggle": true, "description-color": "rgba( 255, 255, 255, 1 )", "description-font-size": "24px", "final-view-button-text": "REFER MORE FRIENDS", "final-view-description": "Remind your friends to check their emails for their special offer.", "final-view-error-description": "Something went wrong and we were unable to send the referral link.", "final-view-error-text": "TRY AGAIN", "final-view-error-title": "Uh Oh!", "final-view-title": "Thanks for referring!", "fonts-primary-font-name-and-url": "Noto Sans Myanmar@Bold|", "fonts-secondary-font-name-and-url": "Noto Sans Javanese@Regular|", "header-color": "rgba( 255, 255, 255, 1 )", "header-font-size": "36px", "main-share-option-desktop": "main_share_email", "main-share-option-mobile": "main_share_sms", "next-button-background-color": "rgba( 255, 255, 255, 1 )", "next-button-font-size": "20px", "next-button-size": "standard", "next-button-text-color": "rgba( 4, 65, 55, 1 )", "next-button-type": "filled_rectangle", "referral-history-completed-points-text": "{{points}} POINTS", "referral-history-completed-status-type": "text", "referral-history-confirmed-status": "COMPLETED", "referral-history-pending-status": "PENDING", "referral-history-redeem-text": "To redeem your $10, simply apply your discount code at checkout.", "referral-history-sumup-line-points-text": "{{points}} POINTS", "referral-history-sumup-line-text": "Your Rewards", "referral-views-button-text": "NEXT", "referral-views-copy-link-button-text": "COPY LINK", "referral-views-description": "Earn $10 off when you refer a friend who spends $50+ on their first purchase!*", "referral-views-email-share-body": "How does a discount off your first order at {{company_name}} sound? Use the link below and once you've shopped, I'll get a reward too.\n{{referral_link}}", "referral-views-email-share-subject": "Discount to a Store You'll Love!", "referral-views-email-share-type": "marketing_email", "referral-views-header": "Refer a Friend", "referral-views-personal-email-button-text": "SEND VIA MY EMAIL", "referral-views-sms-button-text": "SEND VIA SMS", "referral-views-title": "Give $10, Get $10", "referral-views-whatsapp-button-text": "SEND VIA WHATSAPP", "share-allow-copy-link": true, "share-allow-email": true, "share-allow-facebook": true, "share-allow-sms": true, "share-allow-twitter": true, "share-allow-whatsapp": "false", "share-facebook-description": "Have you tried K-beauty from {{company_name}}? Shop with my link for a discount!", "share-facebook-header": "Earn A Discount When You Shop Today!", "share-facebook-image-url": "", "share-icons-color": "rgba( 255, 255, 255, 1 )", "share-settings-copyLink": true, "share-settings-default-checkbox": true, "share-settings-default-mobile-checkbox": true, "share-settings-email": true, "share-settings-facebook": true, "share-settings-fbMessenger": true, "share-settings-mobile-copyLink": true, "share-settings-mobile-email": true, "share-settings-mobile-facebook": true, "share-settings-mobile-fbMessenger": true, "share-settings-mobile-sms": true, "share-settings-mobile-twitter": true, "share-settings-mobile-whatsapp": true, "share-settings-twitter": true, "share-settings-whatsapp": true, "share-sms-message": "Have you tried K-beauty from {{company_name}}? Shop with my link for a discount!\n{{referral_link}}", "share-twitter-message": "Have you tried K-beauty from {{company_name}}? Shop with my link for a discount!", "share-whatsapp-message": "I love {{company_name}}! Shop through my link to get a reward {{referral_link}}", "tab-size": "large", "tab-type": "rectangle", "tab-view-primary-tab-text": "Refer a Friend", "tab-view-secondary-tab-text": "Referrals", "tile-color": "rgba(4,65,55,1)", "title-color": "rgba( 255, 255, 255, 1 )", "title-font-size": "40px", "view-exit-intent-enabled": false, "view-exit-intent-mobile-timeout-ms": 10000, "view-is-popup": "false", "view-layout": "left", "view-popup-delay-ms": 0, "view-show-popup-on-exit": false, "view-show-referral-history": "true", "view-table-rectangular-dark-pending-color": "rgba( 0, 0, 0, 0.6 )", "view-table-rectangular-light-pending-color": "#FFFFFF", "view-table-selected-color": "rgba( 255, 255, 255, 1 )", "view-table-theme": "light", "view-table-type": "lines", "wadmin-text-and-share-choose-sreen": "step_3" }, staticContent: { "companyName": "innisfree", "currency": "USD", "hasPrimaryFontsFeature": true, "merchantId": "68321", "migrateTabColorToBackground": true, "platformName": "shopify", "referralHistoryEnabled": true, "referralHost": "http://rwrd.io" }, className: "ReferralWidget", dependencyGroupId: 2 }, }, guidStaticContent: {}, dependencyGroups: { "2": [ "https://cdn-widget-assets.yotpo.com/widget-vue-core/app.v0.1.0-1809.js" ] } }, initializer: "https://cdn-widget-assets.yotpo.com/widgets-initializer/app.v0.0.40-2078.js", analytics: "https://p.yotpo.com/js/bundle.js" } var initWidgets = function (config) { const widgetInitializer = yotpoWidgetsContainer['yotpo_widget_initializer'](config); return widgetInitializer.initWidgets(); }; var onInitializerLoad = function (config) { yotpoWidgetsContainer.initWidgets = function () { return initWidgets(config); } yotpoWidgetsContainer.initWidgets(); }; if (!yotpoWidgetsContainer.yotpo_widget_scripts_loaded) { yotpoWidgetsContainer.yotpo_widget_scripts_loaded = true; yotpoWidgetsContainer.onInitializerLoad = function () { onInitializerLoad(loader.config) }; loader.loadDep(loader.analytics, function () {}, 'defer'); loader.loadDep(loader.initializer, function () { yotpoWidgetsContainer.onInitializerLoad() }, 'async'); } })()