{"version":3,"file":"index.es.min.js","sources":["../../../packages/helpers/src/props.helpers.js","../../../packages/components/src/constants.mjs","../../../packages/components/src/form-item/form-item.js","../../../packages/components/src/star-rating/star-rating.js"],"sourcesContent":["const getData = attributes => attributes.find(attribute => attribute.nodeName === 'data')\n\nconst createProps = attributes => {\n    const data = getData([...attributes])\n    const props = [...attributes]\n        .filter(attribute => attribute.nodeName !== 'data')\n        .reduce((all, attr) => {\n            return { ...all, [attr.nodeName]: attr.nodeValue }\n        }, {})\n\n    if (isNil(data)) {\n        return props\n    }\n\n    try {\n        return { ...props, ...JSON.parse(data.nodeValue) }\n    } catch (error) {\n        console.log('ERROR: No data', error, data?.nodeValue)\n    }\n}\n\nconst isNil = obj => obj === undefined || obj === null\n\nexport const parseBool = value => (!value || value === 'false' ? false : true)\n\nexport default createProps\n","export const MAX_WIDTH_CONTAINER = 1160\n\nexport const BREAKPOINT_XL = 1920\nexport const BREAKPOINT_TABLET = 1024\nexport const BREAKPOINT_L = 996\nexport const BREAKPOINT_M = 768\nexport const BREAKPOINT_S = 750\nexport const BREAKPOINT_XS = 375\n\nexport const CTA_PRIMARY = 'primary'\nexport const CTA_PRIMARY_TRANSPARENT = 'primary_transparent'\nexport const CTA_SUBTLE = 'subtle'\nexport const CTA_LINK = 'link'\nexport const CTA_LINK_UNDERLINE = 'link-underline'\nexport const CTA_LINK_GOLD = 'link-gold'\nexport const CTA_LINK_ADD_TO_CART_SMALL = 'AddToCart_small'\nexport const CTA_LINK_ADD_TO_CART_LARGE = 'AddToCart_large'\n\nexport const EVENT_TAB_CHANGE = 'EVENT_TAB_CHANGE'\n\nexport const EVENT_VIDEO = 'WEB_COMPONENT_VIDEO'\nexport const EVENT_POPIN_OPEN = 'WEB_COMPONENT_POPIN_OPEN'\nexport const EVENT_POPIN_OPENED = 'WEB_COMPONENT_POPIN_OPENED'\nexport const EVENT_POPIN_CLOSE = 'WEB_COMPONENT_POPIN_CLOSE'\nexport const EVENT_POPIN_CLOSED = 'WEB_COMPONENT_POPIN_CLOSED'\nexport const EVENT_POPIN_CLOSE_CLICK = 'WEB_COMPONENT_POPIN_CLOSE_CLICK'\nexport const EVENT_POPIN_KEY_DOWN = 'keydown'\nexport const EVENT_POPIN_FORM_TOGGLE_TITLE = 'WEB_COMPONENT_POPIN_FORM_TOGGLE_TITLE'\nexport const EVENT_CTA_CLICK = 'WEB_COMPONENT_CTA_CLICK'\nexport const EVENT_HERO_REORDER_OPEN = 'WEB_COMPONENT_HERO_REORDER_OPEN'\nexport const EVENT_HERO_REORDER_CLOSE = 'WEB_COMPONENT_HERO_REORDER_CLOSE'\nexport const EVENT_QUICKVIEW_OPEN = 'WEB_COMPONENT_QUICKVIEW_OPEN'\nexport const EVENT_QS_OPEN = 'WEB_COMPONENT_QS_OPEN'\nexport const EVENT_QS_OPENED = 'WEB_COMPONENT_QS_OPENED'\nexport const EVENT_QS_CLOSE = 'WEB_COMPONENT_QS_CLOSE'\nexport const EVENT_QS_CLOSED = 'WEB_COMPONENT_QS_CLOSED'\nexport const EVENT_QS_CLOSE_CLICK = 'WEB_COMPONENT_QS_CLOSE_CLICK'\nexport const EVENT_QS_KEY_DOWN = 'keydown'\nexport const EVENT_ADD_TO_CART = 'WEB_COMPONENT_ADD_TO_CART'\nexport const EVENT_CART_UPDATED = 'WEB_COMPONENT_CART_UPDATED'\nexport const EVENT_VIDEO_TOGGLE = 'WEB_COMPONENT_VIDEO_TOGGLE'\nexport const VIDEO_ON_HOVER = 'VIDEO_ON_HOVER'\nexport const VIDEO_ON_OUT = 'VIDEO_ON_OUT'\nexport const EVENT_DETAIL_OPEN = 'WEB_COMPONENT_DETAIL_OPEN'\nexport const EVENT_SLIDER_READY = 'WEB_COMPONENT_SLIDER_READY'\nexport const EVENT_SLIDE_CHANGE = 'WEB_COMPONENT_SLIDE_CHANGE'\nexport const EVENT_OVERLAY_OPEN = 'WEB_COMPONENT_OVERLAY_OPEN'\nexport const EVENT_OVERLAY_CLOSE = 'WEB_COMPONENT_OVERLAY_CLOSE'\nexport const EVENT_OVERLAY_CLICKED = 'WEB_COMPONENT_OVERLAY_CLICKED'\nexport const EVENT_OPEN_PRODUCT_AR_CLICKED = 'OPEN_PRODUCT_AR_CLICKED'\nexport const EVENT_SORT_BY_CHANGE = 'WEB_COMPONENT_SORT_BY_CHANGE'\n\nexport const EVENT_BUBBLE_SELECTED = 'EVENT_BUBBLE_SELECTED'\nexport const EVENT_RECO_TOOL_OPTION_CLICKED = 'EVENT_RECO_TOOL_OPTION_CLICKED'\nexport const WEB_COMPONENT_PROJECTS_LOADED = 'WEB_COMPONENT_PROJECTS_LOADED'\nexport const WEB_COMPONENT_ANCHOR_LOADED = 'WEB_COMPONENT_ANCHOR_LOADED'\n\nexport const EVENT_SWIPED_UP = 'swiped-up'\nexport const EVENT_SWIPED_DOWN = 'swiped-down'\nexport const EVENT_SWIPED_LEFT = 'swiped-left'\nexport const EVENT_SWIPED_RIGHT = 'swiped-right'\n\nexport const EVENT_HEADER_POSITION_CHANGED = 'EVENT_HEADER_POSITION_CHANGED'\n\nexport const keys = { ESC: 'Escape' }\n\nexport const ADD_TO_CART_MODIFIER_MINI = 'mini'\nexport const ADD_TO_CART_MODIFIER_DEFAULT = ADD_TO_CART_MODIFIER_MINI\n\nexport const COFFEE_ORIGINAL = 'original'\nexport const COFFEE_VERTUO = 'vertuo'\nexport const COFFEE_PRO = 'pro'\nexport const COFFEE_OL = 'OL'\nexport const COFFEE_VL = 'VL'\nexport const INTENSITY_MAX_OL = 14\nexport const INTENSITY_MAX_VL = 12\nexport const DEFAULT_BUBBLE_ICON = ''\n\nexport const NUMBER_PRODUCTS_SLIDER = 8\nexport const NUMBER_FEATURES_PDP = 8\n\nexport const ALIGNMENT = ['center', 'left', 'right']\nexport const POSITION = ['top', 'right', 'bottom', 'left']\nexport const TRANSLATION_ADD_TO_CART = 'Add to cart'\nexport const TRANSLATION_UPDATE_BASKET = 'Update basket'\n\nexport const TIME_INSTANT = 1\nexport const TIME_FAST = 300\nexport const TIME_MEDIUM = 600\nexport const TIME_SLOW = 1200\n\nexport const APP_APPLE_LINK = {\n    default: 'https://apps.apple.com/us/app/nespresso/id342879434',\n    us: 'https://apps.apple.com/us/app/nespresso-new/id1609639566',\n    uk: 'https://apps.apple.com/gb/app/nespresso-new/id1609639566',\n    kr: 'https://apps.apple.com/kr/app/%EB%84%A4%EC%8A%A4%ED%94%84%EB%A0%88%EC%86%8C-%EB%B6%80%ED%8B%B0%ED%81%AC/id1609639566'\n}\nexport const APP_ANDROID_LINK =\n    'https://play.google.com/store/apps/details?id=com.nespresso.activities'\nexport const APP_HUAWEI_LINK = 'https://appgallery.huawei.com/app/C102571517'\n\nexport const SRC_PAGE_PLP = 'plp'\nexport const SRC_PAGE_PDP = 'pdp'\n\nexport const PLP_TYPE_COFFEE = 'coffee'\nexport const PLP_TYPE_MACHINE = 'machine'\nexport const PLP_TYPE_ACCESSORY = 'accessory'\nexport const CALLEO_API_DOMAIN = 'https://www.contact.nespresso.com/'\n\n// SCSS RELATED\n// Todo : should be shared by JS and SCSS\nexport const BROWSER_CONTEXT = 16 // 1rem = 16px\nexport const COLOR_WHITE_1000 = '#FFFFFF' // Do not change for #FFF shortcut, it will break slider-natural gradients !\n\nexport const CONTRAST_DARK = 'dark'\nexport const CONTRAST_LIGHT = 'light'\n\nexport const B2B_CONTACT_FORM_POPIN_ID = 'b2b-contact-form-popin-id'\nexport const B2B_CONTACT_FORM_POPIN_SRC_SEARCH = 'coveo-search'\n\nexport const B2B_CONTACT_FORM_POPIN_SRC_SKU_MAIN_INFO = 'sku-main-info'\n\nexport const B2B_CONTACT_FORM_POPIN_SRC_SKU_MAIN_INFO_AUTO = 'sku-main-info-auto'\n\nexport const ASPECT_RATIO_16_9 = '16/9'\nexport const ASPECT_RATIO_1_1 = '1/1'\n\nexport const NESPRESSO_PRODUCTION_DOMAIN = 'https://www.nespresso.com'\nexport const NESPRESSO_ROLLOUT_DOMAIN = 'https://nc2-env-rollout.nespresso.com'\n\nexport const EVENT_QUIZ_ON_GO_BACK = 'WEB_COMPONENT_EVENT_QUIZ_ON_GO_BACK'\nexport const EVENT_QUIZ_SUBMIT = 'WEB_COMPONENT_EVENT_QUIZ_SUBMIT'\n","import createProps from '@kissui/helpers/src/props.helpers'\nimport { EVENT_POPIN_OPENED } from '../constants.mjs'\n\nconst defaultFieldLabelClass = 't-sm-400-sl'\nconst compactFieldLabelClass = 't-3xs-500-caps-sl'\n\nclass FormItem extends HTMLElement {\n    constructor() {\n        super()\n        this.type = null\n        this.value = null\n        this.boundKeyPress = this.onKeyPress.bind(this)\n        this.boundValueChanged = this.onValueChanged.bind(this)\n        this.boundShakeAnimationEnd = this.onShakeAnimationEnd.bind(this)\n        this.boundPopinOpened = this.onPopinOpened.bind(this)\n        this.boundFocus = this.onFocus.bind(this)\n        this.boundBlur = this.onBlur.bind(this)\n    }\n\n    connectedCallback() {\n        this.props = createProps(this.attributes)\n        this.classList.add('nb-form-item')\n        if (this.type) this.classList.add('nb-' + this.type)\n        this.beforeRender()\n        this.render()\n        this.setRequired()\n        this.afterRender()\n        this.setCSSvariables()\n        this.bindEvent()\n        if (this.formElement) {\n            this.formElement.addEventListener('focus', this.boundFocus)\n            this.formElement.addEventListener('blur', this.boundBlur)\n        }\n    }\n\n    beforeRender() {}\n\n    render() {\n        const { element_id, element_name, label, input_min_length = '' } = this.props\n\n        this.innerHTML = `\n            <input id=\"${element_id}\" name=\"${element_name}\" type=\"${this.type}\"\n            ${input_min_length ? `minlength = ${input_min_length}` : ''}\n            class=\"t-sm-400-sl\" />\n            <label for=\"${element_id}\" class=\"${defaultFieldLabelClass}\"><span>${label}</span></label>\n            ${this.renderMessages()}\n        `\n    }\n\n    afterRender() {}\n\n    setRequired() {\n        const { required_message } = this.props\n\n        this.formElement = this.querySelector('input, textarea')\n        if (required_message) {\n            this.formElement.setAttribute('required', 'required')\n        }\n    }\n\n    renderMessages() {\n        return `\n            ${this.renderRequiredMessage()}\n            ${this.renderHelperMessage()}\n            ${this.renderNotificationMessage()}\n        `\n    }\n\n    renderRequiredMessage() {\n        const { required_message } = this.props\n        if (!required_message) {\n            return ''\n        }\n        return `<mark role=\"alert\" class=\"cb-empty t-2xs-500-sl\">${required_message}</mark>`\n    }\n\n    renderHelperMessage() {\n        const { helper_message } = this.props\n        if (!helper_message) {\n            return ''\n        }\n        this.classList.add('has-helper')\n        return `<p class='cb-helper t-2xs-500-sl'>${helper_message}</p>`\n    }\n\n    renderNotificationMessage() {\n        const { notification_message } = this.props\n        if (!notification_message) {\n            return ''\n        }\n        this.classList.add('has-notification')\n        return `\n            <div class='cb-notification t-2xs-500-sl'>\n                <nb-icon icon=\"24/symbol/information\"></nb-icon>\n                ${notification_message}\n            </div>`\n    }\n\n    setCSSvariables() {\n        const { helper_message, required_message, error_message, max_message } = this.props\n        if (helper_message) this.setVariable('helper')\n        if (required_message) this.setVariable('empty')\n        if (error_message) this.setVariable('error')\n        if (max_message) this.setVariable('max')\n    }\n\n    setVariable(name) {\n        const el = this.querySelector('.cb-' + name)\n        let height = el.clientHeight\n        let margin = parseInt(window.getComputedStyle(el).marginTop)\n        const padding = (height + margin) / 16\n        this.style.setProperty('--' + name + '-padding-bottom', padding + 'rem')\n    }\n\n    onKeyPress() {}\n\n    onValueChanged(e) {\n        if (this.type === 'checkbox') {\n            this.value = e.target.checked\n        } else {\n            this.value = e.target.value\n        }\n        this.checkFilled()\n        this.checkValidity()\n    }\n\n    onFocus() {\n        if (this.type !== 'checkbox') {\n            const labelClassList = this.formElement.parentElement.querySelector('label').classList\n            labelClassList.add(compactFieldLabelClass)\n            labelClassList.remove(defaultFieldLabelClass)\n        }\n    }\n\n    onBlur() {\n        this.checkFilled()\n    }\n\n    checkFilled() {\n        const formElementLabel = this.formElement.parentElement.querySelector('label')\n\n        // This is to keep label used as placeholder in focus state when textfield is filled\n        if (this.value && this.value !== '') {\n            this.formElement.classList.add('is-filled')\n            if (this.type !== 'checkbox') {\n                formElementLabel.classList.add(compactFieldLabelClass)\n                formElementLabel.classList.remove(defaultFieldLabelClass)\n            }\n        } else {\n            this.formElement.classList.remove('is-filled')\n            if (this.type !== 'checkbox') {\n                formElementLabel.classList.add(defaultFieldLabelClass)\n                formElementLabel.classList.remove(compactFieldLabelClass)\n            }\n        }\n    }\n\n    checkValidity() {\n        return this.checkEmpty()\n    }\n\n    checkEmpty() {\n        const { required_message } = this.props\n\n        if (!required_message) {\n            return true\n        }\n\n        if (this.value === '' || this.value === false || this.value === null) {\n            this.classList.remove('is-error')\n            this.classList.add('is-empty')\n            return false\n        } else {\n            this.classList.remove('is-empty')\n            return true\n        }\n    }\n\n    shake(messageClass) {\n        if (this.classList.contains(messageClass)) {\n            this.classList.add('shake')\n            this.addEventListener('animationend', this.boundShakeAnimationEnd)\n        }\n    }\n\n    onShakeAnimationEnd() {\n        this.classList.remove('shake')\n        this.removeEventListener('animationend', this.boundShakeAnimationEnd)\n    }\n\n    onPopinOpened() {\n        // If the form is inside a popin, we need to reset the CSS variables when the popin has its full size\n        this.setCSSvariables()\n    }\n\n    bindEvent() {\n        this.unbindEvent()\n        window.addEventListener(EVENT_POPIN_OPENED, this.boundPopinOpened)\n        this.bindSpecificEvent()\n    }\n\n    unbindEvent() {\n        window.removeEventListener(EVENT_POPIN_OPENED, this.boundPopinOpened)\n        this.unbindSpecificEvent()\n    }\n\n    bindSpecificEvent() {\n        if (this.formElement) {\n            this.formElement.addEventListener('keyup', this.boundKeyPress)\n            this.formElement.addEventListener('change', this.boundValueChanged)\n        }\n    }\n\n    unbindSpecificEvent() {\n        if (this.formElement) {\n            this.formElement.removeEventListener('keyup', this.boundKeyPress)\n            this.formElement.removeEventListener('change', this.boundValueChanged)\n        }\n    }\n\n    disconnectedCallback() {\n        this.unbindEvent()\n        if (this.formElement) {\n            this.formElement.removeEventListener('focus', this.boundFocus)\n            this.formElement.removeEventListener('blur', this.boundBlur)\n        }\n    }\n}\n\ncustomElements.get('nb-form-item') || customElements.define('nb-form-item', FormItem)\nexport default FormItem\n","import FormItem from '@kissui/components/src/form-item'\n\nclass StarRating extends FormItem {\n    beforeRender() {\n        this.classList.add('nb-star-rating')\n        this.boundClick = this.onClick.bind(this)\n        this.boundFocus = this.onFocus.bind(this)\n    }\n\n    render() {\n        const { element_id, element_name, label, a11y_star_singular, a11y_star_plural } = this.props\n\n        let radios = []\n        let stars = []\n        let selected = ''\n        let A11yStarLabel = ''\n\n        for (let i = 1; i <= 5; i++) {\n            i === 1 ? (A11yStarLabel = a11y_star_singular) : (A11yStarLabel = a11y_star_plural)\n            radios.push(`\n                <input id=\"${element_id}-${i}\" name=\"${element_name}\" type=\"radio\" value=\"${i}\" aria-label=\"${i} ${A11yStarLabel}\" class=\"t-sm-400-sl\">\n            `)\n        }\n\n        for (let i = 5; i >= 1; i--) {\n            selected += i\n            stars.push(`\n                <label for=\"${element_id}-${i}\" class=\"t-sm-400-sl\" active=\"${selected}\" aria-hidden=\"true\"><nb-icon icon=\"32/symbol/star-filled\"></nb-icon></label>\n            `)\n        }\n\n        this.innerHTML = `\n            <legend class=\"t-sm-400\">${label}</legend>\n            <fieldset>\n                ${radios.join('')}\n                <div class=\"cb-stars\">\n                    ${stars.reverse().join('')}\n                </div>\n            </fieldset>\n            ${this.renderMessages()}\n        `\n    }\n\n    setRequired() {\n        const { required_message } = this.props\n\n        this.radioElements = this.querySelectorAll('input')\n        if (required_message) {\n            // we set required on all radio buttons, for a better accessibility understanding\n            this.radioElements.forEach(el => {\n                el.setAttribute('required', 'required')\n            })\n        }\n    }\n\n    onClick() {\n        this.value = false\n        this.radioElements.forEach(el => {\n            this.value = this.value || el.checked\n        })\n        this.checkEmpty()\n    }\n\n    onFocus() {\n        // On any focused radio, we override empty error message\n        this.classList.remove('is-empty')\n    }\n\n    bindSpecificEvent() {\n        this.radioElements.forEach(el => {\n            el.addEventListener('click', this.boundClick)\n            el.addEventListener('focus', this.boundFocus)\n        })\n    }\n\n    unbindSpecificEvent() {\n        this.radioElements.forEach(el => {\n            el.removeEventListener('click', this.boundClick)\n            el.removeEventListener('focus', this.boundFocus)\n        })\n    }\n}\n\ncustomElements.get('nb-star-rating') || customElements.define('nb-star-rating', StarRating)\nexport default StarRating\n"],"names":["isNil","obj","EVENT_POPIN_OPENED","defaultFieldLabelClass","compactFieldLabelClass","FormItem","HTMLElement","constructor","this","type","value","boundKeyPress","onKeyPress","bind","boundValueChanged","onValueChanged","boundShakeAnimationEnd","onShakeAnimationEnd","boundPopinOpened","onPopinOpened","boundFocus","onFocus","boundBlur","onBlur","connectedCallback","props","attributes","data","find","attribute","nodeName","getData","filter","reduce","all","attr","nodeValue","JSON","parse","error","console","log","createProps","classList","add","beforeRender","render","setRequired","afterRender","setCSSvariables","bindEvent","formElement","addEventListener","element_id","element_name","label","input_min_length","innerHTML","renderMessages","required_message","querySelector","setAttribute","renderRequiredMessage","renderHelperMessage","renderNotificationMessage","helper_message","notification_message","error_message","max_message","setVariable","name","el","padding","clientHeight","parseInt","window","getComputedStyle","marginTop","style","setProperty","e","target","checked","checkFilled","checkValidity","labelClassList","parentElement","remove","formElementLabel","checkEmpty","shake","messageClass","contains","removeEventListener","unbindEvent","bindSpecificEvent","unbindSpecificEvent","disconnectedCallback","customElements","get","define","StarRating","boundClick","onClick","a11y_star_singular","a11y_star_plural","radios","stars","selected","A11yStarLabel","i","push","join","reverse","radioElements","querySelectorAll","forEach"],"mappings":"AAAA,MAqBMA,EAAQC,GAAoC,MAARA,ECC7BC,EAAqB,6BCnB5BC,EAAyB,cACzBC,EAAyB,oBAE/B,MAAMC,UAAiBC,YACnBC,WAAAA,WAEIC,KAAKC,KAAO,KACZD,KAAKE,MAAQ,KACbF,KAAKG,cAAgBH,KAAKI,WAAWC,KAAKL,MAC1CA,KAAKM,kBAAoBN,KAAKO,eAAeF,KAAKL,MAClDA,KAAKQ,uBAAyBR,KAAKS,oBAAoBJ,KAAKL,MAC5DA,KAAKU,iBAAmBV,KAAKW,cAAcN,KAAKL,MAChDA,KAAKY,WAAaZ,KAAKa,QAAQR,KAAKL,MACpCA,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