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,KAAME,EAAKtC,EAALsC,MAAK8J,EAAApM,EAAEqM,MACrDC,EAAqB,CAAC,EAAEC,EAAAC,OADkC,IAAAJ,EAAG,CAAC,QAAS,oBAAmBA,GAExE,IAAxB,IAAAG,EAAAtS,MAAAkS,EAAAI,EAAAnU,KAAAkD,MAA0B,KAAfmR,EAAIN,EAAA3T,MACLA,EAAQ4J,EAAKqK,GAEfH,EAAmBG,GADF,iBAAVjU,EACoB,CACvBA,MAAO8J,EACD,GAAA8D,OAAG5N,GAAQkU,QACP,IAAIC,OAAOrK,EAAMoK,QAAQ,wBAAyB,QAAS,OAC3D,SAACE,GAAK,yBAAAxG,OAAwBwG,EAAK,wBAEvCpU,GAGiB,CACvBA,MAAO,GAGnB,CAAC,OAAAqU,GAAAN,EAAAxU,EAAA8U,EAAA,SAAAN,EAAAvS,GAAA,CAED,OAAAqF,EAAAA,EAAA,GACO+C,GAAI,IACP0K,iBAAkBR,GAE1B","sources":["webpack:///./assets/js/components/autocomplete.jsx","webpack:///./assets/js/components/autocomplete/addHighlightAttribute.js"],"sourcesContent":["/** @jsx h */\nimport { Fragment, h, render } from 'preact';\nimport { autocomplete } from '@algolia/autocomplete-js';\nimport '@algolia/autocomplete-theme-classic';\nimport { createLocalStorageRecentSearchesPlugin } from '@algolia/autocomplete-plugin-recent-searches';\nimport groupBy from 'lodash/groupBy';\nimport hotkeys from 'hotkeys-js';\nimport Fuse from 'fuse.js';\nimport addHighlightedAttribute from '@/js/components/autocomplete/addHighlightAttribute';\n\nexport default function init({\n autocompleteSelector = '#autocomplete',\n container = document,\n searchPlaceholder = 'Global search',\n inputPlaceholder = 'Searching anything in your MMS data...',\n forceGlobalSearchUrl = null,\n forceQuickActions = null,\n forceQuickActionsProject = null,\n enableHotkeys = true,\n}) {\n const $autocomplete = $(autocompleteSelector, container);\n if ($autocomplete.length === 0 || !$autocomplete.is(':visible')) {\n return;\n }\n\n const fuseQuickActionsProject = new Fuse(forceQuickActionsProject ?? App.get('quickActionsProject'), {\n includeScore: true,\n keys: ['label', 'synonyms'],\n });\n\n const recentSearchesPlugin = createLocalStorageRecentSearchesPlugin({\n key: autocompleteSelector,\n\n transformSource({ source, onRemove }) {\n return {\n ...source,\n getItems(params) {\n return source\n .getItems(params)\n .map((item) => addHighlightedAttribute({ item, query: params.query }));\n },\n getItemUrl({ item }) {\n return item.url;\n },\n onSelect({ event, state }) {\n if (state.status === 'loading') {\n event.preventDefault();\n }\n },\n templates: {\n ...source.templates,\n header() {\n return (\n \n Your recent searches\n
\n \n );\n },\n item({ item, components }) {\n return ;\n },\n },\n };\n },\n });\n\n const { addItem: addRecentSearchItem } = recentSearchesPlugin.data;\n\n const quickActionsPlugin = {\n getSources() {\n return [\n {\n sourceId: 'quick-actions',\n getItemUrl({ item }) {\n return item.url;\n },\n getItems({ query }) {\n return (forceQuickActions ?? App.get('quickActions'))\n .map((item) => {\n item.shortDescription = item.category;\n\n return item;\n })\n .filter(({ label }) => label.toLowerCase().includes(query.toLowerCase()))\n .map((item) => addHighlightedAttribute({ item, query }));\n },\n onSelect({ event, state }) {\n if (state.status === 'loading') {\n event.preventDefault();\n }\n },\n onActive({ setContext }) {\n setContext({ preview: undefined });\n },\n templates: {\n header() {\n return (\n \n Quick actions\n
\n \n );\n },\n item({ item, components }) {\n return ;\n },\n },\n },\n ];\n },\n };\n\n const quickActionsProjectPlugin = {\n getSources({ query }) {\n if (!query) {\n return [];\n }\n return [\n {\n sourceId: 'quick-actions-project',\n getItemUrl({ item }) {\n return item.url;\n },\n getItems({ query }) {\n return fuseQuickActionsProject\n .search(query)\n .map(({ item }) => {\n item.shortDescription = item.category;\n\n return item;\n })\n .map((item) => addHighlightedAttribute({ item, query }));\n },\n onSelect({ event, state }) {\n if (state.status === 'loading') {\n event.preventDefault();\n }\n },\n onActive({ setContext }) {\n setContext({ preview: undefined });\n },\n templates: {\n header() {\n return (\n \n Quick actions project\n
\n \n );\n },\n item({ item, components }) {\n return ;\n },\n },\n },\n ];\n },\n };\n\n const { destroy } = autocomplete({\n container: $autocomplete[0],\n placeholder: inputPlaceholder,\n debug: App.isDev(),\n openOnFocus: true,\n defaultActiveItemId: 0,\n detachedMediaQuery: '',\n plugins: [recentSearchesPlugin, quickActionsPlugin, quickActionsProjectPlugin],\n render({ children, state, components, refresh }, root) {\n const { preview } = state.context;\n render(\n
\n
{children}
\n {preview && (\n
\n \n
\n )}\n
,\n root\n );\n },\n renderNoResults({ state }, root) {\n if (state.status === 'loading') {\n return render(\n
\n
\n

Loading...

\n
\n
,\n root\n );\n }\n\n if (!state.query || state.status !== 'idle') {\n return;\n }\n\n return render(\n
\n
\n \n \n \n

\n No results for “{state.query}“.\n

\n
\n
,\n root\n );\n },\n getSources({ query }) {\n if (!query) {\n return [];\n }\n\n gtag('event', 'search', {\n source: autocompleteSelector.replaceAll('#', ''),\n search_term: query,\n });\n\n const request = $.get(forceGlobalSearchUrl ?? App.get('globalSearchUrl'), { query }, null, 'json');\n const results = new Promise((resolve) => {\n request.then((results) => {\n resolve(results);\n });\n });\n\n return results.then((results) => {\n const sources = [];\n const groupedResults = groupBy(results, 'type');\n for (const [type, results] of Object.entries(groupedResults)) {\n const firstResult = results[0];\n sources.push({\n sourceId: type,\n getItemUrl({ item }) {\n return item.url;\n },\n getItems() {\n return results\n .map((item) => {\n if (item.data?.requestNumber) {\n item.shortDescription = String(item.data.requestNumber);\n }\n\n return item;\n })\n .map((item) => addHighlightedAttribute({ item, query }));\n },\n onSelect({ item }) {\n addRecentSearchItem(item);\n },\n onActive({ item, setContext }) {\n setContext({ preview: item });\n },\n templates: {\n header() {\n return (\n \n {firstResult.category}\n
\n \n );\n },\n item({ item, components }) {\n return ;\n },\n },\n });\n }\n\n return sources;\n });\n },\n });\n\n const isMacOS = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) || navigator.appVersion.indexOf('Mac') !== -1;\n const $autocompleteBtn = $autocomplete.find('.aa-Autocomplete button');\n\n $autocompleteBtn.find('.aa-DetachedSearchButtonPlaceholder').text(searchPlaceholder);\n\n if (enableHotkeys) {\n const kbd = $('');\n if (isMacOS) {\n kbd.text(`Cmd + K`);\n } else {\n kbd.text(`Ctrl + K`);\n }\n kbd.appendTo($autocompleteBtn);\n\n hotkeys('ctrl+k,cmd+k', (event) => {\n event.preventDefault();\n $autocompleteBtn.click();\n });\n }\n\n return {\n unload() {\n if (enableHotkeys) {\n hotkeys.unbind('ctrl+k,cmd+k');\n }\n },\n teardown: destroy,\n };\n}\n\nfunction MaterialIcon({ icon, className }) {\n return {icon};\n}\n\nfunction Icon({ icon }) {\n if (!icon) {\n return null;\n }\n if (icon.startsWith('http') || icon.startsWith('data:image') || icon.startsWith('blob:') || icon.startsWith('/')) {\n return ;\n }\n return ;\n}\n\nfunction ImageIcon({ icon }) {\n return \"icon\";\n}\n\nfunction PreviewPanel({ item, components, refresh }) {\n const titleClasses = {\n 10: 'display-1',\n 20: 'display-2',\n 30: 'display-3',\n 40: 'display-4',\n };\n\n let titleClass = 'h1';\n for (const size of Object.keys(titleClasses)) {\n if (size > item.label.length) {\n titleClass = titleClasses[size];\n }\n }\n\n async function doAjaxRequest(e, action) {\n e.preventDefault();\n\n /** @var {ModalManager} */\n const modalManager = App.get('modalManager');\n const { isConfirmed } = await modalManager.confirm('Are you sure to do this action?', 'Confirmation');\n if (isConfirmed) {\n $.ajax({\n url: action.url,\n method: action.method || 'post',\n responseType: 'json',\n }).done((response) => {\n if (response && response.success && response.success.message) {\n /** @var {ModalManager} */\n const modalManager = App.get('modalManager');\n modalManager.toast('success', response.success.message);\n refresh();\n }\n });\n }\n }\n\n /* eslint-disable react/no-unknown-property */\n return (\n
\n

\n \n

\n

\n \n

\n\n {item.htmlDescription &&
}\n\n {Object.values(item.urls).length > 0 && (\n \n

Quick actions

\n
\n {Object.values(item.urls).map((action) => {\n if (action.ajax) {\n return (\n /* eslint-disable jsx-a11y/anchor-is-valid */\n doAjaxRequest(e, action)}\n >\n \n {action.label}\n \n );\n }\n\n return (\n \n \n {action.label}\n \n );\n })}\n
\n
\n )}\n
\n );\n}\n\nfunction ProductItem({ item, components, onRemove }) {\n return (\n \n
\n
\n \n
\n
\n
\n \n {item.shortDescription && (\n \n \n \n )}\n
\n
{item.description}
\n
\n
\n
\n {onRemove && (\n {\n event.preventDefault();\n event.stopPropagation();\n onRemove(item.id);\n }}\n >\n \n \n \n \n )}\n \n \n \n \n \n
\n
\n );\n}\n","export default function addHighlightedAttribute({ item, query, props = ['label', 'shortDescription'] }) {\n const highlightedResults = {};\n for (const prop of props) {\n const value = item[prop];\n if (typeof value === 'string') {\n highlightedResults[prop] = {\n value: query\n ? `${value}`.replace(\n new RegExp(query.replace(/[-/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&'), 'gi'),\n (match) => `__aa-highlight__${match}__/aa-highlight__`\n )\n : value,\n };\n } else {\n highlightedResults[prop] = {\n value: '',\n };\n }\n }\n\n return {\n ...item,\n _highlightResult: highlightedResults,\n };\n}\n"],"names":["_regeneratorRuntime","e","t","r","Object","prototype","n","hasOwnProperty","o","defineProperty","value","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","delegateYield","asyncGeneratorStep","_slicedToArray","Array","isArray","_arrayWithHoles","_iterableToArrayLimit","_arrayLikeToArray","toString","from","test","_unsupportedIterableToArray","_nonIterableRest","ownKeys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","apply","_objectSpread","arguments","_defineProperty","getOwnPropertyDescriptors","defineProperties","toPrimitive","String","Number","_toPrimitive","_toPropertyKey","init","_ref","_ref$autocompleteSele","autocompleteSelector","_ref$container","container","document","_ref$searchPlaceholde","searchPlaceholder","_ref$inputPlaceholder","inputPlaceholder","_ref$forceGlobalSearc","forceGlobalSearchUrl","_ref$forceQuickAction","forceQuickActions","_ref$forceQuickAction2","forceQuickActionsProject","_ref$enableHotkeys","enableHotkeys","$autocomplete","$","is","fuseQuickActionsProject","Fuse","App","get","includeScore","recentSearchesPlugin","createLocalStorageRecentSearchesPlugin","key","transformSource","_ref2","source","onRemove","getItems","params","map","item","addHighlightedAttribute","query","getItemUrl","_ref3","url","onSelect","_ref4","event","state","status","preventDefault","templates","header","Fragment","className","_ref5","components","ProductItem","addRecentSearchItem","data","addItem","quickActionsPlugin","getSources","sourceId","_ref6","_ref7","shortDescription","category","_ref8","label","toLowerCase","includes","_ref9","onActive","_ref10","setContext","preview","undefined","_ref11","quickActionsProjectPlugin","_ref12","_ref13","_ref14","search","_ref15","_ref16","_ref17","_ref18","destroy","autocomplete","placeholder","debug","isDev","openOnFocus","defaultActiveItemId","detachedMediaQuery","plugins","render","_ref19","root","children","refresh","context","concat","PreviewPanel","renderNoResults","_ref20","viewBox","fill","width","height","_ref21","gtag","replaceAll","search_term","request","results","sources","groupedResults","groupBy","_loop","_Object$entries$_i","_Object$entries","_i","firstResult","_ref22","_item$data","requestNumber","_ref23","_ref24","_ref25","entries","isMacOS","navigator","platform","appVersion","indexOf","$autocompleteBtn","find","text","kbd","appendTo","hotkeys","click","unload","unbind","teardown","MaterialIcon","_ref26","icon","Icon","_ref27","startsWith","ImageIcon","_ref28","src","alt","_ref29","titleClasses","titleClass","_i2","_Object$keys","size","_doAjaxRequest","_callee","action","modalManager","_context","confirm","isConfirmed","ajax","responseType","response","success","message","toast","_next","_throw","theme","Highlight","hit","attribute","htmlDescription","innerHTML","urls","href","onClick","_x","_x2","doAjaxRequest","iconClass","target","rel","_ref30","description","title","stopPropagation","id","_step","_ref$props","props","highlightedResults","_iterator","_createForOfIteratorHelper","prop","replace","RegExp","match","err","_highlightResult"],"sourceRoot":""}