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AyBgG,GAAwB,IAArBC,EAASD,EAATC,UAQ/BC,EAAAC,GAPkCC,EAAAA,EAAAA,GAAc,CAChD3G,KAAM,OACN4G,MAAM,EACNC,OAAQ,CACNC,QAAS,GACTC,QAAS,KAEX,GAPKC,EAASP,EAAA,GAAEQ,EAAcR,EAAA,GAShC,OACEN,EAAAA,cAAA,OAAKC,UAAU,0BACbD,EAAAA,cAAA,OAAKe,IAAKF,EAAWZ,UAAU,eAC5BI,EAAUW,KAAI,SAACC,EAAUtG,GAAC,OACzBqF,EAAAA,cAACL,EAAY9J,OAAA6H,OAAA,CAACvI,IAAKwF,GAAOsG,GAAY,KAI1CjB,EAAAA,cAAA,OAAKC,UAAU,qCACbD,EAAAA,cAAA,UACEkB,QAAS,eAAAC,EAAA,OAA4B,QAA5BA,EAAML,EAAeM,eAAO,IAAAD,OAAA,EAAtBA,EAAwBE,MAAM,EAC7C,aAAW,aACXC,KAAK,SACLrB,UAAU,8GAEVD,EAAAA,cAAC/K,EAAAA,EAAe,CAAC,oBAEnB+K,EAAAA,cAAA,UACEkB,QAAS,eAAAK,EAAA,OAA4B,QAA5BA,EAAMT,EAAeM,eAAO,IAAAG,OAAA,EAAtBA,EAAwBC,MAAM,EAC7C,aAAW,iBACXF,KAAK,SACLrB,UAAU,8GAEVD,EAAAA,cAAC5K,EAAAA,EAAgB,CAAC,qBAK5B,G","sources":["webpack://uk-b2c/./node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js","webpack://uk-b2c/./node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js","webpack://uk-b2c/./node_modules/react-dom/client.js","webpack://uk-b2c/./node_modules/remount/dist/remount.js","webpack://uk-b2c/./app/javascript/src/EmployeeCarousel/EmployeeCarousel.tsx","webpack://uk-b2c/./app/javascript/packs/employees.ts"],"sourcesContent":["/**\n * @tabler/icons-react v2.42.0 - MIT\n */\n\nimport createReactComponent from '../createReactComponent.js';\nvar IconChevronLeft = createReactComponent(\"chevron-left\", \"IconChevronLeft\", [[\"path\", {\n d: \"M15 6l-6 6l6 6\",\n key: \"svg-0\"\n}]]);\nexport { IconChevronLeft as default };","/**\n * @tabler/icons-react v2.42.0 - MIT\n */\n\nimport createReactComponent from '../createReactComponent.js';\nvar IconChevronRight = createReactComponent(\"chevron-right\", \"IconChevronRight\", [[\"path\", {\n d: \"M9 6l6 6l-6 6\",\n key: \"svg-0\"\n}]]);\nexport { IconChevronRight as default };","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function (c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function (c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom/client';\n\n/* global HTMLElement */\n\n/*\n * Adapted from https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2.0.4/custom-elements-es5-adapter.js\n * Rolling this in so we don't need another polyfill.\n */\n\nfunction inject() {\n if (window.HTMLElement && window.HTMLElement._babelES5Adapter || void 0 === window.Reflect || void 0 === window.customElements || window.customElements.hasOwnProperty('polyfillWrapFlushCallback')) {\n return;\n }\n const a = HTMLElement;\n window.HTMLElement = function () {\n return Reflect.construct(a, [], this.constructor);\n };\n HTMLElement.prototype = a.prototype;\n HTMLElement.prototype.constructor = HTMLElement;\n Object.setPrototypeOf(HTMLElement, a);\n HTMLElement._babelES5Adapter = true;\n}\n\n// @ts-check\n\n/**\n * The name of this strategy.\n * @type string\n */\n\nconst name$1 = 'CustomElements';\n\n/**\n * Registers a custom element.\n *\n * This creates a custom element (ie, a subclass of `window.HTMLElement`) and\n * registers it (ie, `window.customElements.define`).\n *\n * Events will be triggered when something interesting happens.\n *\n * @example\n * defineElement(\n * { component: Tooltip },\n * 'x-tooltip',\n * { onUpdate, onUnmount }\n * )\n *\n * @private\n * @param {ElementSpec} elSpec\n * @param {string} elName\n * @param {ElementEvents} events\n */\n\nfunction defineElement$1(elSpec, elName, events) {\n const onUpdate = events.onUpdate,\n onUnmount = events.onUnmount,\n onMount = events.onMount;\n inject();\n const attributes = elSpec.attributes || [];\n class ComponentElement extends HTMLElement {\n static get observedAttributes() {\n return ['props-json', ...attributes];\n }\n connectedCallback() {\n this._mountPoint = createMountPoint(this, elSpec);\n onMount(this, this._mountPoint);\n }\n disconnectedCallback() {\n if (!this._mountPoint) {\n return;\n }\n onUnmount(this, this._mountPoint);\n }\n attributeChangedCallback() {\n if (!this._mountPoint) {\n return;\n }\n onUpdate(this, this._mountPoint);\n }\n }\n\n // Supress warning when quiet mode is on\n if (elSpec.quiet && window.customElements.get(elName)) {\n return;\n }\n window.customElements.define(elName, ComponentElement);\n}\nfunction isSupported$1() {\n return !!(window.customElements && window.customElements.define);\n}\n\n/**\n * Creates a `` element that serves as the mounting point for React\n * components. If `shadow: true` is requested, it'll attach a shadow node.\n *\n * @private\n * @param {HTMLElement} element\n * @param {ElementSpec} elSpec\n */\n\nfunction createMountPoint(element, elSpec) {\n const shadow = elSpec.shadow;\n if (shadow && element.attachShadow) {\n const mountPoint = document.createElement('span');\n element.attachShadow({\n mode: 'open'\n }).appendChild(mountPoint);\n return mountPoint;\n } else {\n return element;\n }\n}\n\n/**\n * Check if Shadow DOM is supported.\n */\n\nfunction supportsShadow$1() {\n return !!(document && document.body && document.body.attachShadow);\n}\nvar CustomElementsStrategy = /*#__PURE__*/Object.freeze({\n __proto__: null,\n name: name$1,\n defineElement: defineElement$1,\n isSupported: isSupported$1,\n supportsShadow: supportsShadow$1\n});\n\n// @ts-check\n\n/**\n * Some implementations of MutationObserver don't have .forEach,\n * so we need our own `forEach` shim. This is usually the case with\n * polyfilled environments.\n *\n * @type { import('./types').Each }\n */\n\nfunction each( /** @type any */list, /** @type any */fn) {\n for (let i = 0, len = list.length; i < len; i++) {\n fn(list[i]);\n }\n}\n\n// @ts-check\n\n/**\n * The name of this strategy.\n * @type string\n */\n\nconst name = 'MutationObserver';\n\n/**\n * List of observers tags.\n * @type ObserverList\n */\n\nconst observers = {};\nfunction isSupported() {\n return 'MutationObserver' in window;\n}\n\n/**\n * Defines a custom element.\n *\n * @example\n * defineElement(\n * { component: MyComponent },\n * 'my-div',\n * {\n * onMount: () => {},\n * onUpdate: () => {},\n * onUnmount: () => {},\n * }\n * )\n *\n * @private\n * @param {ElementSpec} elSpec\n * @param {string} elName\n * @param {ElementEvents} events\n */\n\nfunction defineElement(elSpec, elName, events) {\n elName = elName.toLowerCase();\n\n // Maintain parity with what would happen in Custom Elements mode\n if (!isValidName(elName)) {\n if (elSpec.quiet) {\n return;\n }\n throw new Error(`Remount: \"${elName}\" is not a valid custom element elName`);\n }\n if (observers[elName]) {\n if (elSpec.quiet) {\n return;\n }\n throw new Error(`Remount: \"${elName}\" is already registered`);\n }\n const observer = new MutationObserver( /** @type MutationCallback */mutations => {\n each(mutations, ( /** @type MutationRecord */mutation) => {\n each(mutation.addedNodes, ( /** @type Node */node) => {\n if (isElement(node)) {\n checkForMount(node, elName, events);\n }\n });\n });\n });\n observer.observe(document.body, {\n childList: true,\n subtree: true\n });\n observers[elName] = /* true */observer;\n function mountElementsInDOM() {\n const nodes = document.getElementsByTagName(elName);\n each(nodes, ( /** @type HTMLElement */node) => checkForMount(node, elName, events));\n }\n if (document.readyState === 'complete' || document.readyState === 'interactive') {\n mountElementsInDOM();\n } else {\n window.addEventListener('DOMContentLoaded', mountElementsInDOM);\n }\n}\n\n/**\n * Checks if this new element should fire an `onUpdate` hook.\n * Recurses down to its descendant nodes.\n *\n * @param {HTMLElement} node\n * @param {string} elName\n * @param {ElementEvents} events\n */\n\nfunction checkForMount(node, elName, events) {\n if (node.nodeName.toLowerCase() === elName) {\n // It's a match!\n events.onMount(node, node);\n observeForUpdates(node, events);\n observeForRemoval(node, events);\n } else if (node.children && node.children.length) {\n // Recurse down into the other additions\n each(node.children, ( /** @type HTMLElement */subnode) => {\n if (isElement(subnode)) {\n checkForMount(subnode, elName, events);\n }\n });\n }\n}\n\n/**\n * Observes for any changes in attributes.\n *\n * @param {Element} node\n * @param {ElementEvents} events\n */\n\nfunction observeForUpdates(node, events) {\n const onUpdate = events.onUpdate;\n const observer = new MutationObserver( /** @type MutationCallback */mutations => {\n each(mutations, ( /** @type MutationRecord */mutation) => {\n const targetNode = mutation.target;\n if (isElement(targetNode)) {\n onUpdate(targetNode, targetNode);\n }\n });\n });\n observer.observe(node, {\n attributes: true\n });\n}\n\n/**\n * Observes a node's parent to wait until the node is removed\n * @param {HTMLElement} node\n * @param {ElementEvents} events\n */\n\nfunction observeForRemoval(node, events) {\n const onUnmount = events.onUnmount;\n const parent = node.parentNode;\n\n // Not sure when this can happen, but let's add this for type safety\n if (!parent) {\n return;\n }\n const observer = new MutationObserver( /** @type MutationCallback */mutations => {\n each(mutations, ( /** @type MutationRecord */mutation) => {\n each(mutation.removedNodes, ( /** @type Node */subnode) => {\n if (node !== subnode) {\n return;\n }\n if (isElement(node)) {\n // @ts-ignore TypeScript expects 0 arguments...?\n observer.disconnect(parent);\n onUnmount(node, node);\n }\n });\n });\n });\n observer.observe(parent, {\n childList: true,\n subtree: true\n });\n}\n\n/**\n * Validate a custom tag.\n *\n * Since Remount can work with either Custom Elements or MutationObserver API's,\n * it'd be wise if we rejected element names that won't work in Custom Elements\n * mode (even if we're using MutationObserver mode).\n *\n * @param {string} elName\n * @returns {boolean}\n *\n * @example\n * isValidName('div') // => false\n * isValidName('my-div') // => true\n * isValidName('123-456') // => false\n * isValidName('my-123') // => true\n *\n * @private\n */\n\nfunction isValidName(elName) {\n return !!(elName.indexOf('-') !== -1 && elName.match(/^[a-z][a-z0-9-]*$/));\n}\n\n/**\n * Shadow DOM is not supported with the Mutation Observer strategy.\n */\n\nfunction supportsShadow() {\n return false;\n}\n\n/**\n * Checks if a given Node is an HTMLElement.\n *\n * It's possible that a mutation's `addedNodes` return something that isn't an\n * HTMLElement.\n *\n * @param {any} node\n * @returns {node is HTMLElement}\n */\n\nfunction isElement(node) {\n if (node) {\n return true;\n }\n return false;\n}\nvar MutationObserverStrategy = /*#__PURE__*/Object.freeze({\n __proto__: null,\n name: name,\n observers: observers,\n isSupported: isSupported,\n defineElement: defineElement,\n supportsShadow: supportsShadow\n});\n\n// @ts-check\n\n/**\n * Cache of the strategy determined by `getStrategy()`.\n * @type {Strategy | null | undefined}\n */\n\nlet cachedStrategy;\n\n/**\n * Detect what API can be used.\n *\n * @example\n * Remount.getStrategy().name\n */\n\nfunction getStrategy() {\n if (cachedStrategy) {\n return cachedStrategy;\n }\n const StrategyUsed = [CustomElementsStrategy, MutationObserverStrategy].find(strategy => !!strategy.isSupported());\n if (!StrategyUsed) {\n console.warn(\"Remount: This browser doesn't support the \" + 'MutationObserver API or the Custom Elements API. Including ' + 'polyfills might fix this. Remount elements will not work. ' + 'https://github.com/rstacruz/remount');\n }\n cachedStrategy = StrategyUsed;\n return StrategyUsed;\n}\n\n/**\n * Registers custom elements and links them to React components.\n * @param {ElementMap} components\n * @param {Defaults=} defaults\n *\n * @example\n * define({ 'x-tooltip': Tooltip })\n *\n * @example\n * define(\n * { 'x-tooltip': Tooltip },\n * { attributes: ['title', 'body'] }\n * )\n */\n\nfunction define(components, defaults) {\n const Strategy = getStrategy();\n if (!Strategy) {\n return;\n }\n Object.keys(components).forEach(( /** @type string */name) => {\n // Construct the specs for the element.\n // (eg, { component: Tooltip, attributes: ['title'] })\n /** @type ElementSpec */\n const elSpec = Object.assign({}, defaults, toElementSpec(components[name]));\n\n /** @type Adapter | null | undefined */\n const adapter = elSpec.adapter;\n if (!adapter) throw new Error('No suitable adapter found');\n\n // Define a custom element.\n Strategy.defineElement(elSpec, name, {\n onMount(element, mountPoint) {\n const props = getProps(element, elSpec.attributes);\n if (elSpec.shadow && elSpec.retarget) {\n adapter.mount(elSpec, mountPoint, props, element);\n } else {\n adapter.mount(elSpec, mountPoint, props, null);\n }\n },\n onUpdate(element, mountPoint) {\n const props = getProps(element, elSpec.attributes);\n adapter.update(elSpec, mountPoint, props, null);\n },\n onUnmount(element, mountPoint) {\n adapter.unmount(elSpec, mountPoint);\n }\n });\n });\n}\n\n/**\n * Coerces something into an `ElementSpec` type.\n *\n * @param {ElementSpec | Component} thing\n * @returns {ElementSpec}\n * @private\n *\n * @example\n * toElementSpec(Tooltip)\n * // => { component: Tooltip }\n *\n * toElementSpec({ component: Tooltip })\n * // => { component: Tooltip }\n */\n\nfunction toElementSpec(thing) {\n if (isElementSpec(thing)) {\n return thing;\n }\n return {\n component: thing\n };\n}\n\n/**\n * Checks if a given `spec` is an ElementSpec.\n *\n * @param {any} spec\n * @returns {spec is ElementSpec}\n */\n\nfunction isElementSpec(spec) {\n return typeof spec === 'object' && spec.component;\n}\n\n/**\n * Returns properties for a given HTML element.\n *\n * @private\n * @param {HTMLElement} element\n * @param {string[] | null | undefined} attributes\n *\n * @example\n * getProps(div, ['name'])\n * // => { name: 'Romeo' }\n */\n\nfunction getProps(element, attributes) {\n const rawJson = element.getAttribute('props-json');\n if (rawJson) {\n return JSON.parse(rawJson);\n }\n const names = attributes || [];\n return names.reduce(( /** @type PropertyMap */result, /** @type string */attribute) => {\n result[attribute] = element.getAttribute(attribute);\n return result;\n }, {});\n}\n\n// @ts-check\n\n/** @type {Map} */\nconst roots = new Map();\n\n/**\n * @param {ElementSpec} elSpec\n * @param {HTMLElement} mountPoint\n * @param {object} props\n * @param {HTMLElement | null} element\n */\n\nfunction mount(elSpec, mountPoint, props, element) {\n const reactElement = /*#__PURE__*/React.createElement(elSpec.component, props);\n const root = ReactDOM.createRoot(mountPoint);\n roots.set(mountPoint, root);\n root.render(reactElement);\n}\n\n/**\n * Updates a custom element by calling `ReactDOM.render()`.\n * @private\n *\n * @param {ElementSpec} elSpec\n * @param {HTMLElement} mountPoint\n * @param {object} props\n * @param {HTMLElement | null} element\n */\n\nfunction update(elSpec, mountPoint, props, element) {\n const reactElement = /*#__PURE__*/React.createElement(elSpec.component, props);\n const root = roots.get(mountPoint);\n if (root) root.render(reactElement);\n}\n\n/**\n * Unmounts a component.\n * @private\n *\n * @param {ElementSpec} elSpec\n * @param {HTMLElement} mountPoint\n */\n\nfunction unmount(elSpec, mountPoint) {\n const root = roots.get(mountPoint);\n if (!root) return;\n root.unmount();\n roots.delete(mountPoint);\n}\nvar ReactAdapter = /*#__PURE__*/Object.freeze({\n __proto__: null,\n mount: mount,\n update: update,\n unmount: unmount\n});\n\n/** @typedef { import('./types').ElementMap } ElementMap */\n\n/**\n * @param {ElementMap} components\n * @param {Defaults=} defaults\n */\n\nfunction defineReact() {\n let components = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return define(components, _objectSpread({\n adapter: ReactAdapter\n }, options));\n}\nexport { defineReact as define, getStrategy };","import { IconChevronLeft, IconChevronRight } from \"@tabler/icons-react\";\nimport { useKeenSlider } from \"keen-slider/react\";\nimport React from \"react\";\n\ntype Employee = {\n name: string;\n description: string;\n image: string;\n role: string;\n};\n\ninterface Props {\n employees: Employee[];\n}\n\nexport function EmployeeCarousel({ employees }: Props) {\n const [sliderRef, sliderInstance] = useKeenSlider({\n mode: \"snap\",\n loop: true,\n slides: {\n spacing: 40,\n perView: 1,\n },\n });\n\n return (\n
\n
\n {employees.map((employee, i) => (\n \n ))}\n
\n\n
\n sliderInstance.current?.prev()}\n aria-label=\"Next slide\"\n type=\"button\"\n className=\"bg-cypress-800 hover:bg-cypress-500 flex h-12 w-12 items-center justify-center rounded-full p-2 text-white\"\n >\n \n \n sliderInstance.current?.next()}\n aria-label=\"Previous slide\"\n type=\"button\"\n className=\"bg-cypress-800 hover:bg-cypress-500 flex h-12 w-12 items-center justify-center rounded-full p-2 text-white\"\n >\n \n \n
\n
\n );\n}\n\nfunction EmployeeCard({ name, image, description, role }: Employee) {\n return (\n
\n {name}\n\n
\n

\n {name}\n

\n {role &&
{role}
}\n

{description}

\n
\n
\n );\n}\n","import { define } from \"remount\";\nimport { EmployeeCarousel } from \"../src/EmployeeCarousel/EmployeeCarousel\";\n\ndefine({ \"employee-carousel\": EmployeeCarousel });\n"],"names":["IconChevronLeft","d","key","IconChevronRight","m","exports","createRoot","hydrateRoot","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_defineProperty","obj","value","arg","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","String","Number","_toPrimitive","_toPropertyKey","defineProperty","configurable","writable","CustomElementsStrategy","freeze","__proto__","name","defineElement","elSpec","elName","events","onUpdate","onUnmount","onMount","window","HTMLElement","_babelES5Adapter","Reflect","customElements","hasOwnProperty","a","construct","this","constructor","prototype","setPrototypeOf","inject","attributes","ComponentElement","observedAttributes","connectedCallback","_mountPoint","element","shadow","attachShadow","mountPoint","document","createElement","mode","appendChild","createMountPoint","disconnectedCallback","attributeChangedCallback","quiet","get","define","isSupported","supportsShadow","body","each","list","fn","i","len","length","observers","checkForMount","node","nodeName","toLowerCase","MutationObserver","mutations","mutation","targetNode","target","isElement","observe","observeForUpdates","parent","parentNode","observer","removedNodes","subnode","disconnect","childList","subtree","observeForRemoval","children","MutationObserverStrategy","indexOf","match","isValidName","Error","addedNodes","mountElementsInDOM","getElementsByTagName","readyState","addEventListener","cachedStrategy","components","defaults","Strategy","StrategyUsed","find","strategy","console","warn","getStrategy","forEach","assign","thing","spec","component","toElementSpec","adapter","props","getProps","retarget","mount","update","unmount","rawJson","getAttribute","JSON","parse","reduce","result","attribute","roots","Map","ReactAdapter","reactElement","root","set","render","delete","defineReact","arguments","source","getOwnPropertyDescriptors","defineProperties","_objectSpread","EmployeeCard","_ref2","image","description","role","React","className","src","alt","_ref","employees","_useKeenSlider2","_slicedToArray","useKeenSlider","loop","slides","spacing","perView","sliderRef","sliderInstance","ref","map","employee","onClick","_sliderInstance$curre","current","prev","type","_sliderInstance$curre2","next"],"sourceRoot":""}