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e,GACfC,cAAe,GACfC,kBAAmB,GACnBC,mBAAoB,EACtB,EACAC,oBAAqB,CAAEV,QAAS,EAAK,EACrCW,QAAS,CAAEC,gBAAiB,EAAK,EACjCC,KAAM,CAAEC,UAAW,CAAC,sBAAsB,EAC5C,EACAC,KAAM,CACJC,OAAQ,uBACRC,YAAa,uBACbvoB,WAAY,2BACZwoB,cAAe,YACfC,GAAI,CACN,EACAC,cAAe,CACbC,UAAW,UACXC,SAAU,UACVC,QAAS,YACT7oB,WAAY,2BACZwoB,cAAe,YAEnB,EACA,MACF,QACY/wC,GAAA,CACR2vC,KAAM,CACJC,eAAgB,CACdC,QAAS,GACTC,eAAgB,GAChBC,mBAAoB,IACpBC,cAAe,GACfC,oBAAqB,IACrBC,gBAAiB,GACjBC,cAAe,GACfC,cAAe,GACfC,kBAAmB,GACnBC,mBAAoB,EACtB,EACAC,oBAAqB,CAAEV,QAAS,EAAK,EACrCW,QAAS,CAAEC,gBAAiB,EAAK,EACjCC,KAAM,CAAEC,UAAW,CAAC,sBAAsB,EAC5C,EACAC,KAAM,CACJC,OAAQ,uBACRC,YAAa,uBACbvoB,WAAY,2BACZwoB,cAAe,YACfC,GAAI,CACN,EACAC,cAAe,CACbC,UAAW,UACXC,SAAU,UACVC,QAAS,YACT7oB,WAAY,2BACZwoB,cAAe,YAEnB,CACJ,CAGA,IAAIM,GAAarxC,EAAO,EAExB,MAAMsxC,IAAYvlC,SAASC,eAAe,MAAM,EAC1CulC,IAAOC,GAAWF,GAAS,EAEjCC,IAAK7O,SACF+O,GAAa,CAAAx9C,SACZC,EAAC+6C,IAAK,GAAC,CACM,CACjB","names":["SidebarContext","React","createContext","devDebug","vals","starterStrategy","i18n","defaultStrategies","defaultTabs","storage","name","get","value","set","del","initialState","useTabStore","createWithEqualityFn","persist","immer","state","newEditableStrategiesTenderStrategy","useTenderStrategyStore","newEditableStrategiesEditUser","newAllStrategies","section","id","editableStrategies","len","idx","i","key","createJSONStorage","persistedState","currentState","mergeDeepLeft","error","shallow","defaultMapState","default_mapdata","useMapsStore","keys","allStrategies","payload","oldID","NewID","createMapData","resp","now","dayjs","displayOptions","newMapData","data","getNUTName","opt","tempCodes","missingCodes","lvl3_nuts","code","assignObjectAndMaxValues","lvl0_nuts","lvl1_nuts","lvl2_nuts","j","nutsSet","nutsID","codes","feature","nutsEU","resources","translationDE","translationIT","translationFR","translationES","translationENG","detector","initReactI18next","all_cpv_trees","useCPVStore","multiSelectionMode","templates","templatesLoaded","TPLName","newCPVTree","instance","updateInstance","column","checked","enablePDF","existingStrategies","cloneDeep","addStrategyOnLoad","strategiesToKeep","convertedPayload","cpv","_a","withPartialCheckedObj","withoutPartialCheckedObj","hasPartialAttribute","newStrategies","addedAsFiller","unsaved","strat","currentTab","err","cpvID","TendersClub_Logo_White","TendersClub_Logo_Blue","TenderClub_small_logo_white","tenders_club_logo_only","TendersClubLogo","size","colour","alt","className","src","TenderClub_small_logo_dark","loading_compressed_256_fast","ScreenSpinner","copy","t","useTranslation","children","_jsx","useDefaultStrategyStore","nuts","nut","useComponentsStore","cookieModalVisible","cookieState","showDislikeWarningModal","dislikeWarningModalShown","time","applyModalContent","applyModal","type","tenderSearchTabAdminKey","tenderSearchTabKey","companiesSearchTabKey","tenderAwardsSearchTabKey","tab","useTenderAwardsSearchStore","a","b","obj","award","awardStatus","awardError","awrds","tabName","useDashboardStore","useTenderAwardsStore","useTenderSearchStore","tenderSearchController","currentIteration","totalIterations","multiXLSXStatus","numTendersToDownload","includeAdminColumns","resultsObject","x","strategyFilterID","filteredTenders","tender","includeCPV","goToFileUploadAddTender","refreshingTable","tenders","_b","_c","userChoseView","scheduleViewModalVisible","mode","useListUsersStore","col","c","useCompaniesSearchStore","companiesSearchStatus","columnID","filterColumns","url","table","useRegisterStore","stopRetries","useVademecumStore","queryHistoryItemLogName","queryHistoryItemLogError","queryHistoryItemLog","queryHistoryItemLogStatus","queryHistoryItemLogToBeShown","queryHistoryItemLogModalVisible","vademecum","queryKey","status","_d","_f","_e","queryHistoryCallTimestamp","items","usersAssignedToTemplate","user","vademecumReceivedModalVisible","XLSXData","interval","uploads","upload","u","emailUserModalVisible","emailSubject","emailBody","refreshVademecumsInterval","selectedTemplate","selectedTemplateFields","templateName","templateToBeEdited","createOrEditMode","user_email","val","vademecums","ordering","created_at_after","created_at_before","completed_at_after","completed_at_before","vademecumStatus","useTaskManagementStore","task","fieldName","useAuthStore","hasHydrated","strategiesNeverRequested","jwtRefreshed","reloadAfterStripe","reloadedOnce","firstTime","accessToken","refreshToken","useAlboFornitoriStore","supplierListNoticeID","alboFornitoriFilterModalVisible","field","alboFornitoriViewMode","alboFornitoriOrderingTable","alboFornitoriStatus","currentController","alboFornitori","useViewSupplierListNotice","converting","conversionError","ta","included","cat","soa","attachments","attachmentsStatus","attachmentsError","attachmentMode","attachment","attachmentToBeEdited","errors","currentLang","submitting","supplierListNotice","supplierListNoticeError","supplierListNoticeStatus","tenderSearchAdminTabKey","dashboardTabKey","tenderSearchTableSettingsAdminKey","tenderSearchTableSettingsKey","tenderAwardsSearchTableSettingsKey","colourSchemeKey","viewTenderTabStateKey","CPVWeightLocalStorageKey","NUTWeightLocalStorageKey","AuthContext","useAuth","useContext","axios","defaults","baseURL","api","create","authService","isAuthenticated","signin","callback","setTimeout","apiService","axiosGET","signal","successFn","errAlertFn","errMsg","errFn","headers","common","getState","then","catch","canceled","suppressError","axiosUnauthGET","axiosUnauthPOST","post","axiosPOST","axiosPOSTFormData","formData","axiosPATCHFormData","patch","axiosPATCH","axiosDELETE","delete","axiosOPTIONS","options","removeAllLocalState","removeAuth","resetState","localStorage","removeItem","window","clearInterval","AuthProvider","alert","setAlert","useState","unauthorised","setUnauthorised","forbidden","setForbidden","showAlert","setShowAlert","isDark","navigate","useNavigate","accessTokenTimeoutID","signout","language","slice","stopAccessTokenTimer","startAccessTokenTimer","setJWTRefreshed","clearCookies","location","replace","jwtToken","JSON","parse","atob","split","expiry","unix","exp","secondsLeftUntilRefreshNeeded","diff","getAccessToken","getAccessTokenSuccess","setAccessToken","access","setRefreshToken","refresh","getAccessTokenError","newErrorHandler","msg","response","stringify","toString","includes","errStr","errorString","errObj","Object","Array","isArray","e","length","substring","show","message","request","controller","AbortController","useEffect","clearTimeout","hide","alboFornitoriHydrated","_hasHydrated","authHydrated","companiesSearchHydrated","cpvHydrated","dashboardHydrated","defaultStrategyHydrated","listUsersHydrated","mapsHydrated","registerHydrated","tabHydrated","taskManagementHydrated","tenderAwardsSearchHydrated","tenderAwardsHydrated","tenderSearchHydrated","tenderStrategyHydrated","allHydrated","every","Boolean","Provider","_jsxs","Button","onClick","color","auth","RequireAuth","useLocation","userID","Navigate","to","from","RequireAdmin","is_superuser","AwardsSearchDropdown","sidebar","ctx","awardsDropDownOpen","menu","setMenu","toggle","Dropdown","isOpen","DropdownToggle","tag","shortenItem","Icon","path","mdiChevronDown","title","DropdownMenu","DropdownItem","NavLink","toggleMenu","TendersDropdown","Navigation","authenticated","email","Menu","right","customBurgerIcon","isMenuOpen","onStateChange","stateChangeHandler","width","NavLinks","item","menuActions","Fragment","pathname","href","target","rel","spanishFlag","germanFlag","italianFlag","frenchFlag","ukFlag","languages","languageFlags","es","label","flag","de","it","fr","en","LanguageDropdown","patchedUser","setUser","receivedUser","preferred_language","lang","subscription","changeLanguageAction","newLang","changeLanguage","includesLang","direction","height","map","useColorScheme","setIsDark","getItem","setDark","setItem","systemPrefersDark","useMediaQuery","query","undefined","useMemo","isSubscribed","body","classList","add","remove","DarkmodeToggle","Toggle","onChange","event","themeLink","document","getElementById","origin","icons","unchecked","ProfileDropdown","setShowUnsavedPopup","showUnsavedPopup","mdiCrownCircleOutline","mdiAccountCircleOutline","first_name","divider","mdiPlaylistEdit","mdiAccountSearch","mdiWrenchOutline","unsavedWarning","setStrategiesStatus","mdiPower","Header","setAwardsDropDownOpen","daysLeft","subscription_period_end","specialToggleMenu","isActive","getElementsByClassName","contains","toggleFullscreen","fullscreenElement","mozFullScreenElement","webkitFullscreenElement","documentElement","requestFullscreen","mozRequestFullScreen","webkitRequestFullscreen","Element","ALLOW_KEYBOARD_INPUT","cancelFullScreen","mozCancelFullScreen","webkitCancelFullScreen","mdiFullscreen","mdiMenu","Link","cookie_policy","privacy_policy_en","privacy_policy_it","t_and_cs","Footer","helpVideoAction","showHelpVideoModal","returnPrivacyPolicy","download","Container","fluid","Row","setCookieModalVisible","mdiCog","horizontal","Date","getFullYear","mdiLinkedin","mdiTwitter","Alerter","tenders_club_promo_video_en","tenders_club_promo_video_es","tenders_club_promo_video_it","HomeMultiLanguageVideoPopup","showMultilanguageVideo","multiLanguageVideoAction","returnPromoVideo","Modal","role","autoFocus","centered","tabIndex","zIndex","backdrop","ModalHeader","ModalBody","controls","ModalFooter","UpgradeModal","loading","setLoading","showUpgradePopup","setShowUpgradePopup","redirect","CustomerPortalError","goToBillingPortal","setReloadAfterStripe","return_url","UnsavedPopup","tenderStrategyTutorialVideoIT","HelpVideoModal","DislikeWarning","setShowDislikeWarningModal","CookiePopup","setCookieState","userHasInteracted","cookiesEnabled","SidebarProvider","props","menuOpenState","setMenuOpenState","newState","Layout","Outlet","Alert","getStrategies","strategiesReceived","strategiesError","strategies","product_type","newNuts","push","setExistingStrategies","setEditableStrategiesWithExistingStrategies","compileDefaultStrategies","verifyTabsExist","setNUTSMapStage","verifyMapDataExists","verifyCPVDataExists","setCPVStage","reloadStrategies","reloadStrategiesReceived","setEditableStrategies","StrategyService","strategiesStatus","setStrategiesNeverRequested","abort","ErrorComponent","resetErrorBoundary","ErrorComponentWithMessage","MainAppErrorComponent","BreadCrumb","link","breadcrumbItem","Col","xs","useMyTendersStore","dislikes","tenderID","dislikesStatus","dislikesError","favourites","favouritesStatus","favouritesError","getFavouritesSuccess","getFavouritesError","getFavourites","getDislikesSuccess","getDislikesError","getDislikes","localStorageKey","getWeightsVal","res","writeWeights","weightObj","getCurrentTab","writeCurrentTab","tabObj","defaultTender","defaultTenderPrefilled","defaultLot","useViewEditTenderStore","productModalVisible","productToShow","products","productsStatus","awardCriteria","procedureTypes","awardCriteriaStatus","procedureTypesStatus","lot","lotID","updatedLot","newLot","lots","lotsStatus","lotsError","award_criteria","procedure_type","generatableFields","index","token","nut_code","ta_id","summaryIDToGET","summaryResultModalVisible","summary","summaryStatus","summaryError","summaryNameToGET","values","newVals","PDFdelay","updateLocalStorageFilters","tableSettingsName","tableParamRef","refreshingTableSuccess","setRefreshingTable","setTenders","refreshingTableError","refreshTenderSearchTable","overWriteAllColumnSelections","prevtableQueryParams","resetPage","admin","tenderStrategies","nutsSearchFromDashboardClick","setNutsSearchFromDashboardClick","setRandomReinit","urlPrefix","pageNum","no_closing_date","closing_start","closing_end","confirmed","confirmation_state","notice_type","n","use_test_set","downloadMultiTendersSuccess","setTenderArrayToDownload","downloadMultiTendersError","downloadMultiTenders","tenderCount","searchColumns","pageSize","makeRequest","iteration","defaultAdditional","loadPageOptions","q","prevOptions","offset","meilisearchIndex","limit","json","getMeilisearchTokenSuccess","MeiliSearch","getMeilisearchTokenError","getMeilisearchToken","getGeneratableFieldsSuccess","getGeneratableFieldsError","getGeneratableFields","generateFieldSuccess","checkProgress","updateTaskStatus","generateFieldError","generateField","getQueryHistoryEditTender","getQueryHistorySuccess","getQueryHistoryError","loadTenderSuccess","loadTenderError","loadTender","taskID","objectID","successFN","typeOfTask","searchTenderPayload","intervals","date1","date2","_h","_g","taskProgressCheckError","_k","_j","_i","_n","_m","_l","_q","_p","_o","_u","_t","_s","_r","_y","_x","_w","_v","_B","_A","_z","_E","_D","_C","_I","_H","_G","_F","_M","_L","_K","_J","_P","_O","_N","autoConfirmSuccess","autoConfirmError","autoConfirm","getProcedureTypesSuccess","setProcedureTypes","setProcedureTypesStatus","getProcedureTypesError","getProcedureTypes","getAwardCriteriaSuccess","setAwardCriteria","setAwardCriteriaStatus","getAwardCriteriaError","getAwardCriteria","deleteLotSuccess","getLots","deleteLotError","deleteLot","saveLotSuccess","saveLotError","saveLot","batch","newCPV","stringID","newLotWithoutID","getLotsSuccess","getLotsError","getAttachmentsSuccess","getAttachmentsError","getAttachments","setAttachmentsLoading","getFieldsSuccess","getFieldsError","getFields","getTemplatesSuccess","getTemplatesError","getTemplates","refreshing","getSummariesSuccess","inProgressFound","newInterval","getSummaries","getSummariesError","isAdminRoute","specificTenderID","NormalUserTable","rawData","columns","useReactTable","enableColumnResizing","columnResizeMode","getCoreRowModel","debugTable","debugHeaders","debugColumns","ErrorBoundary","getHeaderGroups","headerGroup","header","colSpan","style","position","getSize","isPlaceholder","flexRender","columnDef","getContext","getCanResize","onMouseDown","getResizeHandler","onTouchStart","getIsResizing","getRowModel","rows","row","getVisibleCells","cell","getQueryLogsSuccess","getQueryLogsError","getQueryLogs","logID","setQueryHistoryItemLogStatus","getQueryHistory","aiCheckedFieldID","returnStatus","saveFieldSuccess","saveFieldError","saveField","fld","getStatusSuccess","keepInterval","fields","fieldID","getStatusError","getStatus","checkRegenStatus","regenerateFieldSuccess","regenerateFieldError","regenerateField","getSummarySuccess","getSummaryError","getSummary","getSummaryFieldValuesSuccess","startInterval","debugResp","getSummaryFieldValuesError","getSummaryFieldValues","QueryHistoryItem","setQueryHistoryItemLogToBeShown","setQueryHistoryItemLogModalVisible","setQueryHistoryItemLogName","created_at","format","mdiPostOutline","query_key","prompt","result","registerAllModules","SummaryLotsTable","editable","adminSwitch","containerRef","useRef","setData","setRawData","setColumns","setHeight","regenStatus","showQueryHistoryItems","setShowQueryHistoryItems","finalData","maxLength","rowLength","fill","toUpperCase","placeholderSwapData","str","makeRawData","makeColumns","hotRef","translations","display_name","source","mdiHistory","ai_checked_field_id","ref","HotTable","readOnly","rowHeaders","colHeaders","autoWrapRow","autoWrapCol","manualColumnMove","manualRowMove","manualColumnResize","manualRowResize","licenseKey","afterChange","changes","current","clientHeight","afterColumnMove","afterRowMove","afterRemoveCol","afterRemoveRow","afterCreateCol","afterCreateRow","contextMenu","mdiExclamation","mdiCheck","mdiRefresh","getTranslatedDisplayName","updateLotsTable","hotInstance","getData","arr","join","newField","newData","toLowerCase","tableItem","accessorKey","footer","createXLSXData","summaryFieldValues","setXLSXData","return_type","newLen","nonLotsVals","lotsVals","xlsxData","TenderTitleComponent","tenderStatus","returnTenderTitle","summaryStates","saveSummarySuccess","setSummaryStatus","setSummary","saveSummaryError","setSummaryError","saveSummary","editableSummary","StatusSelect","setSummaryState","disabled","defaultValue","FieldValueListItemNormal","mdiArrowAll","FieldValueListItemAdmin","summaryFieldValuesStatus","individualFieldStatus","TextareaAutosize","onBlur","useWindowSize","windowSize","setWindowSize","handleResize","innerWidth","innerHeight","addEventListener","removeEventListener","FieldValueLists","setSummaryFieldValues","ReactSortable","handle","list","chosen","setList","refreshPDF","filter","QueryHistoryItemLogModalItem","showFullLog","setShowFullLog","log","log_entry_url","mdiOpenInNew","asctime","attemptFormatting","newVal","replaceAll","slicedVal","newSlicedVal","fixedLog","newLog","QueryHistoryItemLogModal","editTenderOrVademecum","Spinner","qa_prompt","openai_response","source_documents","doc","metadata","tags","page_content","logs","debounce","func","timeout","timer","args","useDebounce","delay","timeoutRef","useCallback","useImmediateDebounce","immediateWindow","lastCallTime","timeSinceLastCall","UserSelectionComponent","getCPVTemplates","usersList","setUsersList","setSearch","userStatus","setUserStatus","searchChange","applySearchTerm","input","getUsers","getUsersSuccess","users","usr","results","getUsersError","search","Input","placeholder","Select","classNamePrefix","resetFields","setEmailSubject","setEmailBody","EmailUserModal","setEmailUserModalVisible","addUploads","removeUpload","handleChange","emailUserSuccess","emailUserError","emailUser","clearEmptyUploads","FormData","file","append","FileUploader","multiple","mdiClose","summary_pdf_shapes","appalti_logo","summaryPDFShapes","tendersClubLogoAndTagline","appaltiLogo","excelImages","letters","footerStartCol","headerStartCol","addHeader","workbook","worksheet","cols","topLeftShapes","addImage","base64","extension","topRightLogo","tl","ext","addFooter","footerRow","bottomLeftAppaltiLogo","footerCell1","getCell","alignment","vertical","wrapText","footerCell2","footerCell3","text","hyperlink","tooltip","footerCell4","normalLineHeight","headingLineHeight","lotsTableStartPosition","paddingBetweenValsAndTable","paddingToFooter","addTitle","tenderTitle","firstRow","addRow","secondRow","mergeCells","headingCell","font","family","bold","autoHeightHeading","setFirstCellValue","last","border","argb","bottom","setSecondCellValue","left","XLSXDownloadButton","excel","useExcelJS","filename","intercept","creator","created","modified","addWorksheet","pageSetup","paperSize","orientation","views","showGridLines","middle","newRow","rowNumber","_number","cell1","cell2","autoHeight","paddingRow","firstLotsRow","autoHeightLots","mergeCellsForTable","lastRow","worksheets","exportXLSX","lineHeight","maxLine","eachCell","Math","max","numCells","top","tenders_club_tagline","styles","StyleSheet","fontSize","fontWeight","borderTop","flexDirection","display","backgroundColor","borderBottom","padding","borderLeft","textAlign","lastCell","borderRight","TableRows","maxCols","rowIDX","View","cellIDX","Text","removeDoubleQuotes","tableContainer","flexWrap","margin","ItemsTable","Font","register","fonts","justifyContent","alignItems","marginBottom","headerShapes","headerLogoFlex","marginLeft","logoTagline","marginRight","marginTop","logoLogo","tableView","page","paddingTop","paddingBottom","paddingHorizontal","FlexColumnFooter","ufficioImage","footerContainer","fontFamily","horizontalLine","footerTextContent","headerImage","summaryNameAtTop","itemHeading","FullHeightCell","paddingVertical","firstCell","secondCell","largeCell","minHeight","RenderTable","split1","split2","wrap","transposed","DownloadPDFButton","newSummaryFieldValues","newTextValues","newReorderedValues","textValues","reorderedValues","SummaryPDFTableStyle","Document","Page","fixed","Image","usePDF","File","blob","setUploads","createElement","setAttribute","appendChild","click","removeChild","startsWith","endsWith","SummaryModalFooter","setAdminSwitch","setSummaryResultModalVisible","SummaryResultModal","setSummaryFieldValuesStatus","setSummaryFieldValuesError","summaryFieldValuesError","setPDFDelay","refreshpdf","deduplicateCallTime","setDeduplicateCallTime","valueOf","regenInterval","setRegenInterval","favouriteTender","fn","favouriteTenderSuccess","favouriteTenderError","tender_id","setFavouriteInProgressIDs","dislikeTender","dislikeTenderSuccess","dislikeTenderError","setDislikeInProgressIDs","FavouriteTender","bookmarked","disliked","favouriteInProgressIDs","dislikeInProgressIDs","setDislikeWarningModalShown","mdiStar","mdiStarOutline","stopPropagation","preventDefault","mdiThumbDown","mdiThumbDownOutline","TenderListItemNormal","showProducts","setShowProducts","showRerankedProducts","setShowRerankedProducts","showLLMProducts","setShowLLMProducts","setSummaryIDToGET","setSummaryNameToGET","mdiDomain","tendering_authority","mdiCurrencyEur","estimated_total_value","parseFloat","toLocaleString","mdiMapMarkerOutline","mdiTimerOutline","closing_date","soa_categories","mdiShapeOutline","onMouseEnter","onMouseLeave","product","products_reranked","llm_products","national_id","ReusableHelmet","tabTitle","description","pageTitle","socialImage","Helmet","content","property","MyTendersPage","relevantSummaries","setRelevantSummaries","showDisliked","setShowDisliked","summaries","fav","lg","isAfter","isBefore","MyTendersErrorBoundary","FallbackComponent","onReset","details","TableHeadings","isSorted","isSortedDesc","mdiSortBoolDescending","mdiSortBoolAscending","mdiCheckboxBlankCircleOutline","render","getResizerProps","mdiArrowSplitVertical","VademecumTable","getTableData","dropdownOpen","setDropdownOpen","getColumnWidth","headerText","magicSpacing","setOrdering","hiddenColumns","setHiddenColumns","Cell","accessor","completed_at","defaultColumn","minWidth","maxWidth","getTableProps","getTableBodyProps","headerGroups","prepareRow","allColumns","useTable","sortBy","manualSortBy","useBlockLayout","useResizeColumns","useGlobalFilter","useSortBy","inlineBlock","toggleDropDown","debouncedTableRefresh","Card","CardBody","caret","getToggleHiddenProps","random","Scrollbars","autoHeightMax","hideTracksWhenNotNeeded","thumbSize","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","Table","getHeaderGroupProps","getHeaderProps","getSortByToggleProps","sortedColumn","desc","rowProps","getRowProps","cells","getCellProps","SearchBox","setUserEmail","setState","reRenderInputs","currentTarget","CreatedAtDateRangeBox","setCreatedAtAfter","setCreatedAtBefore","CompletedAtDateRangeBox","setCompletedAtAfter","setCompletedAtBefore","SummaryTemplateModal","submitCapability","showDocuments","setShowDocuments","requestError","summaryTemplateModalVisible","setSummaryTemplateModalVisible","selectedDocuments","setDocumentsModalVisible","setFieldSelectionWizardModalVisible","setCreateOrEditMode","setTemplateToBeEdited","template","TemplateListItem","premade","vademecum_balance","total_cost","setSelectedTemplate","deleteTemplateSuccess","deleteTemplateError","deleteTemplate","mdiPencilBoxMultipleOutline","sort","FieldSelectionWizardModal","summaryWizardTab","setSummaryWizardTab","setRequestError","blockRef","savingStatus","setSavingStatus","savingError","setSavingError","fieldSelectionWizardModalVisible","setTemplateName","setSelectedTemplateFields","setUsersAssignedToTemplate","fetch","Authorization","hasMore","links","next","additional","filteredFields","setFilteredFields","postUserTemplateSuccess","submittedRequest","postUserTemplateError","saveTemplate","hasPositions","field_id","template_id","AsyncPaginate","loadOptions","isMulti","FilteredFields","selectedField","isIncluded","VademecumPage","btnsecondary1","setBtnsecondary1","templatesStatus","fieldsStatus","setReRenderInputs","setPage","setPageSize","totalPages","setTotalPages","pageInput","setPageInput","setVademecums","setVademecumStatus","handlePageClick","pageChange","pageInputElem","test","parseInt","page_size","page_num","getVademecumsSuccess","total_pages","getVademecumsError","hideColumns","mdiChevronRight","VademecumErrorBoundary","Logout","AddTenderFileUploadPage","lazy","__vitePreload","LoginPage","TenderStrategy","RegisterErrorBoundary","Dashboard","Services","TenderAwardsMain","ForwardEmailLink","UserPreferences","Pricing","Contact","AlboFornitori","TenderSearch","TenderAwardsSearch","CompaniesSearchErrorBoundary","ForgotPasswordPage","CompletePwdReset","ListUsersErrorBoundary","EditUserErrorBoundary","ViewTenderPage","ViewSupplierListNotice","CPVStats","initChat","ailabs_user_info","client","welcome_message","AILabsChatStart","ChatWidget","script","async","onload","AILabsChatDestroy","FeedbackWidget","fbl_2020_Widget_Config","brandHex","frequency","feedbackScript","Scripts","_Fragment","LanguagePath","useParams","curPath","resolvedLanguage","NoMatch","App","setTabID","setUserLoaded","Routes","Route","element","Suspense","fallback","isPublicRoute","import","init","session_replay","enabled","block_selector","mask_text_selector","sampling_rate","error_sampling_rate","mask_all_inputs","collect_fonts","inline_images","inline_stylesheet","mask_input_options","distributed_tracing","privacy","cookies_enabled","ajax","deny_list","info","beacon","errorBeacon","applicationID","sa","loader_config","accountID","trustKey","agentID","BrowserAgent","container","root","createRoot","BrowserRouter"],"ignoreList":[],"sources":["../../src/Layout/sidebarContext.jsx","../../src/Helpers/debug.js","../../src/Services/strategies/strategyConstants.js","../../src/Stores/tabStore.js","../../src/Stores/mapsStore.js","../../src/i18n.js","../../src/Stores/cpvStore.js","../../src/Stores/tenderStrategyStore.js","../../src/Assets/Images/tenders_club_logo_and_tagline_white.png","../../src/Assets/Images/tenders_club_logo_and_tagline_purple.png","../../src/Assets/Images/tenders_club_logo_only_white.png","../../src/Assets/Images/tenders_club_logo_only.png","../../src/Components/tendersClubLogo.jsx","../../src/Assets/Images/gif/loading_compressed_256_fast.gif","../../src/Components/ScreenSpinner.jsx","../../src/Stores/defaultStrategyStore.js","../../src/Stores/componentsStore.js","../../src/Stores/tenderAwardsSearch.js","../../src/Stores/dashboardStore.js","../../src/Stores/tenderAwardsStore.js","../../src/Stores/tenderSearch.js","../../src/Stores/listUsersStore.js","../../src/Stores/companiesSearchStore.js","../../src/Stores/registerStore.js","../../src/Stores/vademecumStore.js","../../src/Stores/taskManagementStore.js","../../src/Stores/authStore.js","../../src/Stores/alboFornitoriStore.js","../../src/Stores/viewSupplierListNoticeStore.js","../../src/Services/auth.jsx","../../src/Layout/nav/awardsSearchDropdown.jsx","../../src/Layout/nav/tendersDropdown.jsx","../../src/Layout/nav/navigation.jsx","../../src/Assets/Images/Flags/spain.jpg","../../src/Assets/Images/Flags/germany.jpg","../../src/Assets/Images/Flags/italy.jpg","../../src/Assets/Images/Flags/france.jpg","../../src/Assets/Images/Flags/uk.jpg","../../src/Assets/Defaults/defaults.js","../../src/Layout/nav/languageDropdown.jsx","../../src/Layout/nav/darkModePersist.jsx","../../src/Layout/nav/darkModeToggle.jsx","../../src/Layout/nav/profileDropdown.jsx","../../src/Layout/header.jsx","../../src/Assets/Docs/cookie_policy.pdf","../../src/Assets/Docs/privacy_policy_en.pdf","../../src/Assets/Docs/privacy_policy_it.pdf","../../src/Assets/Docs/t_and_cs.pdf","../../src/Layout/footer.jsx","../../src/Components/alerter.jsx","../../src/Assets/Video/tenders_club_promo_video_en.mp4","../../src/Assets/Video/tenders_club_promo_video_es.mp4","../../src/Assets/Video/tenders_club_promo_video_it.mp4","../../src/Layout/modals/homeMultiLanguageVideoPopup.jsx","../../src/Layout/modals/upgradeModal.jsx","../../src/Layout/modals/unsavedPopup.jsx","../../src/Assets/Video/tender_strategy_tutorial_video_IT.mp4","../../src/Components/modals/helpModal.jsx","../../src/Components/modals/dislikeWarning.jsx","../../src/Components/modals/cookiePopup.jsx","../../src/Layout/layout.jsx","../../src/Services/strategies/strategyService.jsx","../../src/Components/errorComponent.jsx","../../src/Components/breadCrumb.jsx","../../src/Stores/myTenders.js","../../src/Pages/Protected - My Tenders/myTenderUtility.js","../../src/Stores/viewEditTender.js","../../src/Helpers/updateLocalStorageFilters.js","../../src/Pages/Protected - Tender Search/1_Utility/tenderSearchUtility.js","../../src/Pages/View Tender/InfoTab/1_Utility/utility.js","../../src/Pages/View Tender/2_UtilityFunctions/viewTenderUtilities.js","../../src/Pages/View Tender/SummaryTab/modals/SummaryResultsModal/normalUserTable.jsx","../../src/Pages/View Tender/SummaryTab/modals/SummaryResultsModal/Utility/utility.js","../../src/Pages/View Tender/SummaryTab/modals/SummaryResultsModal/Components/queryHistoryItem.jsx","../../src/Pages/View Tender/SummaryTab/modals/SummaryResultsModal/summaryLotsTable.jsx","../../src/Pages/View Tender/SummaryTab/modals/SummaryResultsModal/Components/tenderTitleComponent.jsx","../../src/Pages/View Tender/SummaryTab/modals/SummaryResultsModal/Components/statusSelect.jsx","../../src/Pages/View Tender/SummaryTab/modals/SummaryResultsModal/Components/fieldValueListItemNormal.jsx","../../src/Pages/View Tender/SummaryTab/modals/SummaryResultsModal/Components/fieldValueListItemAdmin.jsx","../../src/Hooks/useWindowSize.jsx","../../src/Pages/View Tender/SummaryTab/modals/SummaryResultsModal/Components/fieldValueLists.jsx","../../src/Pages/View Tender/SummaryTab/modals/QueryHistoryItemLogModal/QueryHistoryItemLogModalItem.jsx","../../src/Pages/View Tender/SummaryTab/modals/QueryHistoryItemLogModal/QueryHistoryItemLogModal.jsx","../../src/Hooks/debounce.js","../../src/Pages/View Tender/1_Components/userSelectionComponent.jsx","../../src/Pages/View Tender/SummaryTab/modals/emailUserModal.jsx","../../src/Assets/Images/summary_pdf_shapes.png","../../src/Assets/Images/appalti_logo.png","../../src/Pages/Protected - Tender Search/Components/tenderSearchXLSX/images.js","../../src/Pages/Protected - Tender Search/Components/tenderSearchXLSX/tenderSearchXLSX.jsx","../../src/Pages/View Tender/SummaryTab/modals/XLSX/XLSXDownloadButton.jsx","../../src/Assets/Images/tenders_club_tagline.png","../../src/Pages/View Tender/SummaryTab/modals/PDF/TableRows.jsx","../../src/Pages/View Tender/SummaryTab/modals/PDF/ItemsTable.jsx","../../src/Pages/View Tender/SummaryTab/modals/PDF/SummaryPDFTableStyle.jsx","../../src/Pages/View Tender/SummaryTab/modals/SummaryResultsModal/Components/summaryModalFooter.jsx","../../src/Pages/View Tender/SummaryTab/modals/SummaryResultsModal/summaryResultModal.jsx","../../src/Pages/Protected - Tender Search/ScheduleView/favouriteTender.jsx","../../src/Pages/Protected - Tender Search/ScheduleView/tenderListItemNormal.jsx","../../src/Components/helmet/helmet.jsx","../../src/Pages/Protected - My Tenders/myTendersPage.jsx","../../src/Pages/Protected - My Tenders/MyTendersErrorBoundary.jsx","../../src/Components/tables/TableHeadings.jsx","../../src/Pages/Admin - Vademecum/VademecumTable.jsx","../../src/Pages/Admin - Vademecum/searchBox.jsx","../../src/Pages/Admin - Vademecum/createdAtBox.jsx","../../src/Pages/Admin - Vademecum/completedAtBox.jsx","../../src/Pages/View Tender/SummaryTab/modals/summaryTemplateModal.jsx","../../src/Pages/View Tender/SummaryTab/modals/fieldSelectionWizardModal.jsx","../../src/Pages/Admin - Vademecum/vademecumPage.jsx","../../src/Pages/Admin - Vademecum/VademecumErrorBoundary.jsx","../../src/App.jsx","../../src/index.jsx"],"sourcesContent":["import React from \"react\";\n\nexport const SidebarContext = React.createContext();\n","function devDebug(...vals) {\n if (import.meta.env.VITE_DEBUG === \"1\") {\n for (let val of vals) {\n console.log(val);\n }\n }\n}\nexport default devDebug;\n","import i18n from \"i18next\";\n\nexport const starterStrategy = {\n name: i18n.t(\"All Strategies\"),\n email: \"\",\n nuts: [],\n cpvs: [],\n mepa_only: false,\n keywords: \"\",\n strategy_search_choice: \"CPV\",\n cpv_count: [],\n};\n\nexport const defaultStrategies = {\n tender_strategy: {},\n tender_awards: { all: starterStrategy },\n awards_search: {\n market: { ...starterStrategy, name: i18n.t(\"Market\") },\n all: starterStrategy,\n },\n companies_search: {\n market: { ...starterStrategy, name: i18n.t(\"Market\") },\n all: starterStrategy,\n },\n dashboard_logged_in: { all: starterStrategy },\n dashboard_anonymous: { anonymous: starterStrategy },\n edit_user: {},\n search: { all: starterStrategy },\n products_tender_search: { all: starterStrategy },\n};\n\nexport const defaultTabs = {\n tender_strategy: null,\n tender_awards: \"all\",\n awards_search: \"all\",\n companies_search: \"all\",\n dashboard_logged_in: \"all\",\n dashboard_anonymous: \"anonymous\",\n edit_user: null,\n search: \"all\",\n products_tender_search: \"all\",\n meilisearch: \"all\"\n};\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\nimport { persist, createJSONStorage } from \"zustand/middleware\";\nimport { immer } from \"zustand/middleware/immer\";\nimport { mergeDeepLeft } from \"ramda\";\n// import devDebug from \"../Helpers/debug\";\nimport { get, set, del } from \"idb-keyval\"; // can use anything: IndexedDB, Ionic Storage, etc.\nimport { defaultTabs } from \"../Services/strategies/strategyConstants\";\nimport { useTenderStrategyStore } from \"./tenderStrategyStore\";\n\nconst storage = {\n getItem: async (name) => {\n //devDebug(name, \"has been retrieved\");\n return (await get(name)) || null;\n },\n setItem: async (name, value) => {\n //devDebug(name, \"with value\", value, \"has been saved\");\n await set(name, value);\n },\n removeItem: async (name) => {\n //devDebug(name, \"has been deleted\");\n await del(name);\n },\n};\n\n// define the initial state\nconst initialState = {\n _hasHydrated: false,\n currentTab: defaultTabs,\n};\n\nexport const useTabStore = createWithEqualityFn(\n persist(\n immer((set, get) => ({\n ...initialState,\n setHasHydrated: (state) => {\n set({\n _hasHydrated: state,\n });\n },\n verifyTabsExist: () =>\n set((state) => {\n const newEditableStrategiesTenderStrategy =\n useTenderStrategyStore.getState().editableStrategies\n .tender_strategy;\n const newEditableStrategiesEditUser =\n useTenderStrategyStore.getState().editableStrategies.edit_user;\n const newAllStrategies = {\n ...newEditableStrategiesTenderStrategy,\n ...newEditableStrategiesEditUser,\n };\n\n for (let section of Object.keys(state.currentTab)) {\n if (\n !Object.keys(newAllStrategies).includes(\n `${state.currentTab[section]}`\n )\n ) {\n state.currentTab[section] = initialState.currentTab[section];\n }\n }\n\n //the below two tests rely on strategies never being empty\n //for edit_user, this test is currently buggy and requires manually adding a strategy\n //but only checking the strategies from the server, ignoring existing draft strategies\n //which isn't great. TODO: fix that somehow\n if (state.currentTab[\"edit_user\"] === null) {\n state.currentTab[\"edit_user\"] = Object.keys(\n newEditableStrategiesEditUser\n )[0];\n }\n\n if (state.currentTab[\"tender_strategy\"] === null) {\n state.currentTab[\"tender_strategy\"] = Object.keys(\n newEditableStrategiesTenderStrategy\n )[0];\n }\n }),\n setTabID: (section, id) =>\n set((state) => {\n state.currentTab[section] = `${id}`;\n }),\n moveToNextTab: (section, id) =>\n set((state) => {\n const editableStrategies =\n useTenderStrategyStore.getState().editableStrategies;\n let len = Object.keys(editableStrategies[section]).length;\n let idx = 0;\n for (let i = 0; i < len; i++) {\n if (Object.keys(editableStrategies[section])[i] === id) {\n idx = i;\n }\n }\n if (idx === 0) {\n idx = 1;\n } else if (idx === 1) {\n idx = 0;\n } else {\n idx -= 1;\n }\n\n state.currentTab[section] = Object.keys(editableStrategies[section])[\n idx\n ];\n }),\n resetState: () => {\n set(initialState);\n },\n })),\n {\n partialize: (state) =>\n Object.fromEntries(\n Object.entries(state).filter(\n ([key]) => ![\"_hasHydrated\"].includes(key)\n )\n ),\n name: \"tabs\",\n storage: createJSONStorage(() => storage),\n version: import.meta.env.VITE_VERSION,\n merge: (persistedState, currentState) =>\n mergeDeepLeft(persistedState, currentState),\n onRehydrateStorage: (state) => {\n // devDebug(\"tab store -> hydration starts, state: \", state);\n return (state, error) => {\n if (error) {\n // devDebug(\"tab store -> an error happened during hydration\", error);\n } else {\n // devDebug(\"tab store -> hydration finished, state: \", state);\n state.setHasHydrated(true);\n }\n };\n },\n }\n ),\n shallow\n);\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\nimport { persist, createJSONStorage } from \"zustand/middleware\";\nimport { immer } from \"zustand/middleware/immer\";\nimport { mergeDeepLeft } from \"ramda\";\nimport devDebug from \"../Helpers/debug\";\nimport default_mapdata from \"../Assets/Mapdata/default_mapdata.json\";\nimport { get, set, del } from \"idb-keyval\"; // can use anything: IndexedDB, Ionic Storage, etc.\nimport lvl0_nuts from \"../Assets/Mapdata/lvl0_nuts.json\";\nimport lvl1_nuts from \"../Assets/Mapdata/lvl1_nuts.json\";\nimport lvl2_nuts from \"../Assets/Mapdata/lvl2_nuts.json\";\nimport lvl3_nuts from \"../Assets/Mapdata/lvl3_nuts.json\";\nimport dayjs from \"dayjs\";\nimport nutsEU from \"../Assets/Mapdata/nuts_20M_4326.json\";\nimport { useTabStore } from \"./tabStore\";\nimport { useTenderStrategyStore } from \"./tenderStrategyStore\";\n// import cloneDeep from \"lodash/cloneDeep\";\n\nconst storage = {\n getItem: async (name) => {\n //devDebug(name, \"has been retrieved\");\n return (await get(name)) || null;\n },\n setItem: async (name, value) => {\n //devDebug(name, \"with value\", value, \"has been saved\");\n await set(name, value);\n },\n removeItem: async (name) => {\n //devDebug(name, \"has been deleted\");\n await del(name);\n },\n};\n\nconst defaultMapState = {\n level: 0,\n displayOption: \"tender_count\",\n refreshMap: true,\n};\n\n// define the initial state\n// where 'default' instead of 'all' is used, states without tabs can exist\n// this should mirror 'addEnabled = true' in strategyConstants.js\nconst initialState = {\n _hasHydrated: false,\n mapData: {\n tender_strategy: { default: default_mapdata },\n dashboard_logged_in: { all: default_mapdata },\n dashboard_anonymous: { anonymous: default_mapdata },\n edit_user: { default: default_mapdata },\n },\n NUTSMapStage: \"reloading\",\n mapState: {\n tender_strategy: { default: defaultMapState },\n dashboard_logged_in: { all: defaultMapState },\n dashboard_anonymous: {\n anonymous: defaultMapState,\n },\n edit_user: { default: defaultMapState },\n },\n};\n\nexport const useMapsStore = createWithEqualityFn(\n persist(\n immer((set, get) => ({\n ...initialState,\n // ------------------- INIT ----------------------\n setHasHydrated: (state) => {\n set({\n _hasHydrated: state,\n });\n },\n verifyMapDataExists: () =>\n set((state) => {\n let keys = {};\n const allStrategies = {\n ...useTenderStrategyStore.getState().editableStrategies\n .tender_strategy,\n ...useTenderStrategyStore.getState().editableStrategies.edit_user,\n };\n for (let section of Object.keys(state.mapData)) {\n for (let id of Object.keys(allStrategies)) {\n if (!Object.keys(state.mapData[section]).includes(id)) {\n state.mapData[section][id] = default_mapdata;\n state.mapState[section][id] = defaultMapState;\n }\n }\n }\n for (let section of Object.keys(state.mapData)) {\n for (let id of Object.keys(state.mapData[section])) {\n if (!Object.keys(allStrategies).includes(id)) {\n if (!keys[section]) {\n keys[section] = {};\n }\n if (id !== \"default\" && id !== \"all\" && id !== \"anonymous\")\n keys[section][id] = true;\n }\n }\n }\n for (let section of Object.keys(keys)) {\n for (let key of Object.keys(keys[section])) {\n delete state.mapData[section][key];\n delete state.mapState[section][key];\n }\n }\n // devDebug(\n // `verifyMapDataExists -> These keys don't exist anymore and should be deleted from mapData and mapState: ${JSON.stringify(\n // keys\n // )}`\n // );\n }),\n setNUTSMapStage: (payload) =>\n set((state) => {\n state.NUTSMapStage = payload;\n }),\n // ------------------- MAPS STATES ----------------------\n setMetric: (payload) =>\n set((state) => {\n state.metric = payload;\n }),\n setDisplayOption: (value, section) =>\n set((state) => {\n const id = useTabStore.getState().currentTab[section];\n state.mapState[section][id].displayOption = value;\n }),\n setLevel: (value, section) =>\n set((state) => {\n const id = useTabStore.getState().currentTab[section];\n state.mapState[section][id].level = value;\n }),\n setRefreshLayer: (payload) =>\n set((state) => {\n state.refreshLayer = payload;\n }),\n addDefaultMapState: (section, id) =>\n set((state) => {\n state.mapState[section][id] = defaultMapState;\n }),\n setRefreshMap: (section, id, payload) =>\n set((state) => {\n state.mapState[section][id].refreshMap = payload;\n }),\n transferMapState: (section, oldID, NewID, payload) =>\n set((state) => {\n devDebug(\n `transferMapState -> removing ${oldID} from ${section} and creating ${NewID}`\n );\n state.mapState[section][NewID] = payload;\n delete state.mapState[section][oldID];\n }),\n // ------------------- MAPS DATA ------------------------\n setMapData: (payload, section, id) =>\n set((state) => {\n state.mapData[section][id] = createMapData(payload);\n state.NUTSMapStage = \"loaded\";\n state.mapState[section][id].refreshMap = false;\n }),\n addDefaultMapData: (section, id) =>\n set((state) => {\n state.mapData[section][id] = default_mapdata;\n }),\n transferMapData: (section, oldID, NewID, payload) =>\n set((state) => {\n devDebug(\n `transferMapData -> removing ${oldID} from ${section} and creating ${NewID}`\n );\n state.mapData[section][NewID] = payload;\n delete state.mapData[section][oldID];\n }),\n // ------------------- RESET ------------------------\n resetState: () => {\n set(initialState);\n },\n })),\n {\n partialize: (state) =>\n Object.fromEntries(\n Object.entries(state).filter(\n ([key]) => ![\"_hasHydrated\", \"NUTSMapStage\"].includes(key)\n )\n ),\n name: \"maps\",\n storage: createJSONStorage(() => storage),\n version: import.meta.env.VITE_VERSION,\n merge: (persistedState, currentState) =>\n mergeDeepLeft(persistedState, currentState),\n onRehydrateStorage: (state) => {\n // devDebug(\"maps store -> hydration starts, state: \", state);\n return (state, error) => {\n if (error) {\n // devDebug(\"maps store -> an error happened during hydration\", error);\n } else {\n // devDebug(\"maps store -> hydration finished, state: \", state);\n state.setHasHydrated(true);\n }\n };\n },\n }\n ),\n shallow\n);\n\nfunction createMapData(resp) {\n var now = dayjs().format();\n let displayOptions = [\"total_price\", \"avg_price\", \"tender_count\"];\n let newMapData = {};\n\n newMapData = {};\n newMapData.updated = now;\n newMapData.default = false;\n newMapData.maxValues = {};\n newMapData.maxValues.avg_price = [0, 0, 0, 0];\n newMapData.maxValues.total_price = [0, 0, 0, 0];\n newMapData.maxValues.tender_count = [0, 0, 0, 0];\n newMapData.brackets = {};\n newMapData.brackets.avg_price = [[], [], [], []];\n newMapData.brackets.total_price = [[], [], [], []];\n newMapData.brackets.tender_count = [[], [], [], []];\n for (let data of resp) {\n newMapData[data.code] = {\n currency: data.currency,\n avg_price: parseInt(data.avg_price),\n total_price: parseInt(data.total_price),\n tender_count: data.tender_count,\n name: getNUTName(data.code),\n };\n for (let opt of displayOptions) {\n //nuts data from server is always level 3\n if (newMapData.maxValues[opt][3] < newMapData[data.code][opt]) {\n newMapData.maxValues[opt][3] = newMapData[data.code][opt];\n }\n }\n }\n\n let tempCodes = [];\n let missingCodes = [];\n for (let data of resp) {\n tempCodes.push(data.code);\n }\n for (let id of lvl3_nuts) {\n if (!tempCodes.includes(id)) {\n missingCodes.push(id);\n }\n }\n\n for (let code of missingCodes) {\n newMapData[code] = {\n currency: \"EUR\",\n avg_price: 0,\n total_price: 0,\n tender_count: 0,\n name: getNUTName(code),\n };\n }\n\n assignObjectAndMaxValues(newMapData, lvl0_nuts, 0, displayOptions);\n assignObjectAndMaxValues(newMapData, lvl1_nuts, 1, displayOptions);\n assignObjectAndMaxValues(newMapData, lvl2_nuts, 2, displayOptions);\n for (let opt of displayOptions) {\n for (let i = 0; i < 4; i++) {\n for (let j = 0; j < 20; j++) {\n newMapData.brackets[opt][i].push(\n parseInt((newMapData.maxValues[opt][i] / 20) * j)\n );\n }\n }\n }\n return newMapData;\n}\n\nfunction assignObjectAndMaxValues(newMapData, nutsSet, i, displayOptions) {\n for (let nutsID of nutsSet) {\n //set of level 0, 1, 2 NUTS IDs\n newMapData[nutsID] = {\n currency: \"\",\n avg_price: 0,\n total_price: 0,\n tender_count: 0,\n name: getNUTName(nutsID),\n };\n let codes = [];\n for (let key of Object.keys(newMapData)) {\n if (key.includes(nutsID) && !codes.includes(key)) {\n codes.push(nutsID);\n newMapData[nutsID].tender_count += newMapData[key].tender_count;\n newMapData[nutsID].avg_price += newMapData[key].avg_price;\n newMapData[nutsID].total_price += newMapData[key].total_price;\n }\n for (let opt of displayOptions) {\n if (newMapData.maxValues[opt][i] < newMapData[nutsID][opt]) {\n newMapData.maxValues[opt][i] = newMapData[nutsID][opt];\n }\n }\n }\n }\n}\n\nfunction getNUTName(code) {\n for (let feature of nutsEU.features) {\n if (feature.properties.NUTS_ID === code) {\n return feature.properties.NUTS_NAME;\n }\n }\n}\n","import i18n from \"i18next\";\nimport detector from \"i18next-browser-languagedetector\";\nimport { initReactI18next } from \"react-i18next\";\nimport translationDE from \"./Locales/de/translation.json\";\nimport translationIT from \"./Locales/it/translation.json\";\nimport translationFR from \"./Locales/fr/translation.json\";\nimport translationES from \"./Locales/es/translation.json\";\nimport translationENG from \"./Locales/en/translation.json\";\n\n// the translations\nconst resources = {\n de: {\n translation: translationDE,\n },\n it: {\n translation: translationIT,\n },\n fr: {\n translation: translationFR,\n },\n es: {\n translation: translationES,\n },\n en: {\n translation: translationENG,\n },\n};\n\ni18n\n .use(detector)\n .use(initReactI18next) // passes i18n down to react-i18next\n .init({\n resources,\n fallbackLng: \"en\", // use en if detected lng is not available\n debug: import.meta.env.VITE_DEBUG === \"1\",\n keySeparator: false, // we do not use keys in form messages.welcome\n interpolation: {\n escapeValue: false, // react already safes from xss\n },\n react: {\n useSuspense: false,\n bindI18n: \"languageChanged loaded\",\n },\n });\n\nexport default i18n;\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\n// import { immer } from \"zustand/middleware/immer\";\nimport { persist, createJSONStorage } from \"zustand/middleware\";\nimport { immer } from \"zustand/middleware/immer\";\nimport { mergeDeepLeft } from \"ramda\";\n// import devDebug from \"../Helpers/debug\";\nimport all_cpv_trees from \"../Assets/CPVs/all_cpv_trees.json\";\nimport { get, set, del } from \"idb-keyval\"; // can use anything: IndexedDB, Ionic Storage, etc.\nimport { useTenderStrategyStore } from \"./tenderStrategyStore\";\nimport i18n from \"../i18n\";\n\nconst storage = {\n getItem: async (name) => {\n //devDebug(name, \"has been retrieved\");\n return (await get(name)) || null;\n },\n setItem: async (name, value) => {\n //devDebug(name, \"with value\", value, \"has been saved\");\n await set(name, value);\n },\n removeItem: async (name) => {\n //devDebug(name, \"has been deleted\");\n await del(name);\n },\n};\n\n// define the initial state\nconst initialState = {\n _hasHydrated: false,\n reloadCPVs: false,\n cpvTrees: {\n tender_strategy: { default: all_cpv_trees[i18n.language.slice(0, 2)] },\n edit_user: { default: all_cpv_trees[i18n.language.slice(0, 2)] },\n },\n refreshCPVTree: {\n tender_strategy: { default: true },\n edit_user: { default: true },\n },\n CPVStage: \"initial\",\n templates: [],\n templatesLoaded: false,\n TPLName: \"\",\n multiSelectionMode: false,\n};\n\nexport const useCPVStore = createWithEqualityFn(\n persist(\n immer((set, get) => ({\n ...initialState,\n setHasHydrated: (state) => {\n set({\n _hasHydrated: state,\n });\n },\n // ----------------------- CPV SEARCH -----------------------\n setMultiSelectionMode: (multiSelectionMode) =>\n set((state) => {\n state.multiSelectionMode = multiSelectionMode;\n }),\n // ----------------------- CPV TEMPLATES -----------------------\n // setSomething: (payload) =>\n // set((state) => {\n // state.reloadCPVs = payload;\n // }),\n\n setTemplates: (templates) =>\n set((state) => {\n state.templates = templates;\n }),\n setTemplatesLoaded: (templatesLoaded) =>\n set((state) => {\n state.templatesLoaded = templatesLoaded;\n }),\n setTPLName: (TPLName) =>\n set((state) => {\n state.TPLName = TPLName;\n }),\n\n // ----------------------- CPV TREES AND OTHER -----------------------\n // setReloadCPVS: (payload) =>\n // set((state) => {\n // state.reloadCPVs = payload;\n // }),\n setTree: (newCPVTree, section, id) =>\n set((state) => {\n state.cpvTrees[section][id] = newCPVTree;\n }),\n verifyCPVDataExists: () =>\n set((state) => {\n const allStrategies = {\n ...useTenderStrategyStore.getState().editableStrategies.tender_strategy,\n ...useTenderStrategyStore.getState().editableStrategies.edit_user,\n };\n\n let keys = {};\n\n for (let section of Object.keys(state.cpvTrees)) {\n for (let id of Object.keys(allStrategies)) {\n if (!Object.keys(state.cpvTrees[section]).includes(id)) {\n state.cpvTrees[section][id] = all_cpv_trees[i18n.language.slice(0, 2)];\n state.refreshCPVTree[section][id] = true;\n }\n }\n }\n for (let section of Object.keys(state.cpvTrees)) {\n for (let id of Object.keys(state.cpvTrees[section])) {\n if (!Object.keys(allStrategies).includes(id)) {\n if (!keys[section]) {\n keys[section] = {};\n }\n if (id !== \"default\" && id !== \"all\" && id !== \"anonymous\") keys[section][id] = true;\n }\n }\n }\n for (let section of Object.keys(keys)) {\n for (let key of Object.keys(keys[section])) {\n delete state.cpvTrees[section][key];\n delete state.refreshCPVTree[section][key];\n }\n }\n // devDebug(\n // `verifyCPVDataExists -> These keys don't exist anymore and should be deleted from mapData and mapState: ${JSON.stringify(\n // keys\n // )}`\n // );\n }),\n // setTree: (payload, section, id) =>\n // set((state) => {\n // state.cpvTrees[section][id] = payload;\n // }),\n\n addDefaultCPVData: (section, id) =>\n set((state) => {\n state.cpvTrees[section][id] = all_cpv_trees[i18n.language.slice(0, 2)];\n state.refreshCPVTree[section][id] = true;\n }),\n transferCPVData: (section, oldID, NewID) =>\n set((state) => {\n state.cpvTrees[section][NewID] = {\n ...state.cpvTrees[section][oldID],\n };\n state.refreshCPVTree[section][NewID] = true;\n delete state.cpvTrees[section][oldID];\n delete state.refreshCPVTree[section][oldID];\n }),\n\n setRefreshCPVTree: (section, id, payload) =>\n set((state) => {\n state.refreshCPVTree[section][id] = payload;\n }),\n\n setCPVStage: (payload) =>\n set((state) => {\n state.CPVStage = payload;\n }),\n // ------------------- OTHER -----------------------\n setTutorialEnabled: (payload) => set(() => ({ tutorialEnabled: payload })),\n resetState: () => {\n set(initialState);\n },\n })),\n {\n partialize: (state) =>\n Object.fromEntries(\n Object.entries(state).filter(([key]) => ![\"_hasHydrated\", \"CPVStage\", \"refreshCPVTree\"].includes(key))\n ),\n name: \"cpvStore\",\n storage: createJSONStorage(() => storage),\n version: import.meta.env.VITE_VERSION,\n merge: (persistedState, currentState) => mergeDeepLeft(persistedState, currentState),\n onRehydrateStorage: (state) => {\n // devDebug(\"cpvStore -> hydration starts, state: \", state);\n return (state, error) => {\n if (error) {\n // devDebug(\"cpvStore -> an error happened during hydration\", error);\n } else {\n // devDebug(\"cpvStore -> hydration finished, state: \", state);\n state.setHasHydrated(true);\n }\n };\n },\n }\n ),\n shallow\n);\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\nimport { persist, createJSONStorage } from \"zustand/middleware\";\nimport { immer } from \"zustand/middleware/immer\";\nimport { mergeDeepLeft } from \"ramda\";\nimport devDebug from \"../Helpers/debug\";\nimport i18n from \"i18next\";\nimport all_cpv_trees from \"../Assets/CPVs/all_cpv_trees.json\";\nimport { get, set, del } from \"idb-keyval\"; // can use anything: IndexedDB, Ionic Storage, etc.\nimport { useTabStore } from \"./tabStore\";\nimport { useMapsStore } from \"./mapsStore\";\nimport { useCPVStore } from \"./cpvStore\";\nimport cloneDeep from \"lodash/cloneDeep\";\n// import { current } from \"immer\";\n\nconst storage = {\n getItem: async (name) => {\n //devDebug(name, \"has been retrieved\");\n return (await get(name)) || null;\n },\n setItem: async (name, value) => {\n //devDebug(name, \"with value\", value, \"has been saved\");\n await set(name, value);\n },\n removeItem: async (name) => {\n //devDebug(name, \"has been deleted\");\n await del(name);\n },\n};\n\nconst starterStrategy = {\n name: i18n.t(\"Strategy\"),\n email: \"\",\n nuts: [],\n cpvs: [],\n mepa_only: false,\n keywords: \"\",\n strategy_search_choice: \"CPV_OR_KEYWORD\",\n cpv_count: [],\n};\n\n// define the initial state\nconst initialState = {\n _hasHydrated: false,\n user: {\n usercolumnview: {\n platform_id: true,\n title: true,\n estimated_total_value: true,\n closing_date: true,\n cpv: true,\n tender_national_id: false,\n publication_date: false,\n tender_url: false,\n tendering_authority: false,\n currency: false,\n procedure_title: false,\n procedure_type: false,\n short_description: false,\n award_criteria: false,\n soa_categories: false,\n nut: true,\n },\n },\n userLoaded: false,\n reloadCPVs: false,\n editableStrategies: { tender_strategy: {}, edit_user: {} },\n success: false,\n metric: \"total_price\",\n getError: false,\n submitErrors: { all: \"\" },\n errType: { all: \"\" },\n tutorialEnabled: true,\n cpvTrees: { all: all_cpv_trees[i18n.language.slice(0, 2)] },\n CPVStage: \"loading\",\n strategiesStatus: \"loading\",\n unsavedWarning: 0,\n addStrategyOnLoad: false,\n checkboxCPVs: {},\n normalCPVs: {},\n instance: null,\n enablePDF: false,\n updateInstance: () => { },\n existingStrategies: null,\n};\n\nexport const useTenderStrategyStore = createWithEqualityFn(\n persist(\n immer((set, get) => ({\n ...initialState,\n setHasHydrated: (state) => {\n set({\n _hasHydrated: state,\n });\n },\n // ------------------- USER --------------\n setUser: (payload) =>\n set((state) => {\n state.user = payload;\n }),\n // ------------------- PDF --------------\n setInstanceAndUpdateInstance: (instance, updateInstance) =>\n set((state) => {\n state.instance = instance;\n state.updateInstance = updateInstance;\n }),\n updatedColumn: (column, checked) =>\n set((state) => {\n state.user.usercolumnview[column] = checked;\n }),\n setUserLoaded: (payload) =>\n set((state) => {\n state.userLoaded = payload;\n }),\n setEnablePDF: (enablePDF) =>\n set((state) => {\n state.enablePDF = enablePDF;\n }),\n // ------------------- EXISTING TENDER STRATEGIES -----------------------\n setExistingStrategies: (existingStrategies) =>\n set((state) => {\n state.existingStrategies = cloneDeep(existingStrategies); //cloning here as using resp from API would make object read-only\n }),\n setStrategiesStatus: (payload) =>\n set((state) => {\n devDebug(`setStrategiesStatus -> payload: ${payload}`);\n state.strategiesStatus = payload;\n }),\n setAddStrategyOnLoad: (addStrategyOnLoad) =>\n set((state) => {\n state.addStrategyOnLoad = addStrategyOnLoad;\n }),\n setEditableStrategiesWithExistingStrategies: (section) =>\n set((state) => {\n const strategiesToKeep = {};\n for (let key of Object.keys(state.editableStrategies[section])) {\n if (key.includes(\"_new\")) {\n strategiesToKeep[state.editableStrategies[section][key].id] = state.editableStrategies[section][key];\n }\n }\n state.editableStrategies[section] = {\n ...state.existingStrategies,\n ...strategiesToKeep,\n };\n if (Object.keys(state.editableStrategies[section]).length === 0) {\n devDebug(`setEditableStrategies -> all strategies is empty`);\n const id = Math.random() + \"_new\";\n state.editableStrategies[section][id] = {\n ...starterStrategy,\n id: id,\n name: i18n.t(\"New Strategy\"),\n addedAsFiller: false,\n };\n useMapsStore.getState().addDefaultMapData(section, id);\n useMapsStore.getState().addDefaultMapState(section, id);\n useCPVStore.getState().addDefaultCPVData(section, id);\n useTabStore.getState().setTabID(section, id);\n devDebug(`setEditableStrategies -> all strategies is: `, cloneDeep(state.editableStrategies));\n state.strategiesStatus = \"loaded\";\n } else {\n for (let id of Object.keys(state.editableStrategies[section])) {\n let payload = cloneDeep(state.editableStrategies[section][id].cpvs)\n let convertedPayload = {};\n if (Array.isArray(payload)) {\n for (let cpv of payload) {\n convertedPayload[cpv] = true;\n }\n payload = convertedPayload;\n }\n state.editableStrategies[section][id].cpvs = Object.keys(payload).filter(\n (key) => !payload?.[key]?.partialChecked\n );\n let withPartialCheckedObj = {};\n let withoutPartialCheckedObj = {};\n let hasPartialAttribute = false;\n if (Object.keys(payload).length > 0 && payload[Object.keys(payload)[0]].hasOwnProperty(\"partialChecked\")) {\n hasPartialAttribute = true;\n }\n if (hasPartialAttribute) {\n state.editableStrategies[section][id].checkboxCPVs = payload;\n for (let cpv of Object.keys(payload)) {\n if (!payload[cpv].partialChecked) {\n withoutPartialCheckedObj[cpv] = true;\n }\n }\n state.editableStrategies[section][id].normalCPVs = withoutPartialCheckedObj;\n } else {\n for (let cpv of Object.keys(payload)) {\n withPartialCheckedObj[cpv] = { checked: true, partialChecked: false };\n }\n state.editableStrategies[section][id].checkboxCPVs = withPartialCheckedObj;\n state.editableStrategies[section][id].normalCPVs = payload;\n }\n }\n state.strategiesStatus = \"loaded\";\n }\n }),\n setEditableStrategies: (newStrategies, section) =>\n set((state) => {\n devDebug(`tenderStrategyStore -> setEditableStrategies`);\n const strategiesToKeep = {};\n for (let key of Object.keys(state.editableStrategies[section])) {\n if (key.includes(\"_new\")) {\n strategiesToKeep[state.editableStrategies[section][key].id] = state.editableStrategies[section][key];\n }\n }\n state.editableStrategies[section] = {\n ...newStrategies,\n ...strategiesToKeep,\n };\n if (Object.keys(state.editableStrategies[section]).length === 0) {\n devDebug(`setEditableStrategies -> all strategies is empty`);\n const id = Math.random() + \"_new\";\n state.editableStrategies[section][id] = {\n ...starterStrategy,\n id: id,\n name: i18n.t(\"New Strategy\"),\n addedAsFiller: false,\n };\n useMapsStore.getState().addDefaultMapData(section, id);\n useMapsStore.getState().addDefaultMapState(section, id);\n useCPVStore.getState().addDefaultCPVData(section, id);\n useTabStore.getState().setTabID(section, id);\n devDebug(`setEditableStrategies -> all strategies is: `, cloneDeep(state.editableStrategies));\n state.strategiesStatus = \"loaded\";\n } else {\n for (let id of Object.keys(state.editableStrategies[section])) {\n let payload = cloneDeep(state.editableStrategies[section][id].cpvs)\n let convertedPayload = {};\n if (Array.isArray(payload)) {\n for (let cpv of payload) {\n convertedPayload[cpv] = true;\n }\n payload = convertedPayload;\n }\n state.editableStrategies[section][id].cpvs = Object.keys(payload).filter(\n (key) => !payload?.[key]?.partialChecked\n );\n let withPartialCheckedObj = {};\n let withoutPartialCheckedObj = {};\n let hasPartialAttribute = false;\n if (Object.keys(payload).length > 0 && payload[Object.keys(payload)[0]].hasOwnProperty(\"partialChecked\")) {\n hasPartialAttribute = true;\n }\n if (hasPartialAttribute) {\n state.editableStrategies[section][id].checkboxCPVs = payload;\n for (let cpv of Object.keys(payload)) {\n if (!payload[cpv].partialChecked) {\n withoutPartialCheckedObj[cpv] = true;\n }\n }\n state.editableStrategies[section][id].normalCPVs = withoutPartialCheckedObj;\n } else {\n for (let cpv of Object.keys(payload)) {\n withPartialCheckedObj[cpv] = { checked: true, partialChecked: false };\n }\n state.editableStrategies[section][id].checkboxCPVs = withPartialCheckedObj;\n state.editableStrategies[section][id].normalCPVs = payload;\n }\n }\n state.strategiesStatus = \"loaded\";\n }\n }),\n addStrategy: (section, addedAsFiller) =>\n set((state) => {\n devDebug(`addStrategy -> section: ${section}, addedAsFiller: ${addedAsFiller}`);\n const id = Math.random() + \"_new\";\n state.editableStrategies[section][id] = {\n ...starterStrategy,\n id: id,\n name: i18n.t(\"New Strategy\"),\n addedAsFiller: addedAsFiller,\n };\n useMapsStore.getState().addDefaultMapData(section, id);\n useMapsStore.getState().addDefaultMapState(section, id);\n useCPVStore.getState().addDefaultCPVData(section, id);\n useTabStore.getState().setTabID(section, id);\n if (section === \"tender_strategy\") {\n state.unsavedWarning = 1;\n }\n devDebug(`addStrategy -> all strategies is: `, cloneDeep(state.editableStrategies));\n }),\n deleteUnsavedStrategy: (section, id) =>\n set((state) => {\n delete state.editableStrategies[section][id];\n let unsaved = false;\n if (section === \"tender_strategy\") {\n for (let strat of Object.keys(state.editableStrategies[section])) {\n devDebug(`This is a key: ${strat}`);\n if (strat.includes(\"_new\")) {\n unsaved = true;\n }\n }\n if (unsaved) {\n state.unsavedWarning = 1;\n } else {\n state.unsavedWarning = 0;\n }\n }\n devDebug(`were there unsaved strategies? ${unsaved}`);\n }),\n cleanUpFillerStrategies: () =>\n set((state) => {\n devDebug(`tenderStrategyStore -> cleaning up filler strategies`);\n const currentTab = useTabStore.getState().currentTab[\"edit_user\"];\n for (let key of Object.keys(state.editableStrategies[\"edit_user\"])) {\n devDebug(`this is a key: ${key} and currentTab: ${currentTab}`);\n if (state.editableStrategies[\"edit_user\"][key].addedAsFiller) {\n devDebug(`this is a filler strategy`);\n if (key !== currentTab) {\n devDebug(`key did not equal the current tab, deleting ${key}`);\n delete state.editableStrategies[\"edit_user\"][key];\n }\n }\n }\n }),\n\n setName: (payload, section, id) =>\n set((state) => {\n state.editableStrategies[section][id].name = payload;\n }),\n setEmail: (payload, section, id) =>\n set((state) => {\n state.editableStrategies[section][id].email = payload;\n }),\n setMepaOption: (payload, section, id) =>\n set((state) => {\n state.editableStrategies[section][id].mepa_only = payload;\n }),\n setSearchChoice: (payload, section, id) =>\n set((state) => {\n state.editableStrategies[section][id].strategy_search_choice = payload;\n }),\n setKeywords: (payload, section, id) =>\n set((state) => {\n state.editableStrategies[section][id].keywords = payload;\n }),\n addStrategyFromServer: (payload, section) =>\n set((state) => {\n state.editableStrategies[section][payload.id] = payload;\n }),\n setSubmitError: (err, section, id) =>\n set((state) => {\n state.submitErrors[id] = err;\n }),\n setErrType: (err, section, id) =>\n set((state) => {\n state.errType[id] = err;\n }),\n\n // ------------------- UPDATE NUTS AND CPV DATA -----------------------\n setCPVs: (payload, section, id) =>\n set((state) => {\n let convertedPayload = {};\n if (Array.isArray(payload)) {\n for (let cpv of payload) {\n convertedPayload[cpv] = true;\n }\n payload = convertedPayload;\n }\n\n state.editableStrategies[section][id].cpvs = Object.keys(payload).filter(\n (key) => !payload?.[key]?.partialChecked\n );\n let withPartialCheckedObj = {};\n let withoutPartialCheckedObj = {};\n let hasPartialAttribute = false;\n if (Object.keys(payload).length > 0 && payload[Object.keys(payload)[0]].hasOwnProperty(\"partialChecked\")) {\n hasPartialAttribute = true;\n }\n if (hasPartialAttribute) {\n state.editableStrategies[section][id].checkboxCPVs = payload;\n for (let cpv of Object.keys(payload)) {\n if (!payload[cpv].partialChecked) {\n withoutPartialCheckedObj[cpv] = true;\n }\n }\n state.editableStrategies[section][id].normalCPVs = withoutPartialCheckedObj;\n } else {\n for (let cpv of Object.keys(payload)) {\n withPartialCheckedObj[cpv] = { checked: true, partialChecked: false };\n }\n state.editableStrategies[section][id].checkboxCPVs = withPartialCheckedObj;\n state.editableStrategies[section][id].normalCPVs = payload;\n }\n }),\n\n deleteCPV: (cpv, section, id) =>\n set((state) => {\n state.editableStrategies[section][id].cpvs = state.editableStrategies[section][id].cpvs.filter(\n (cpvID) => cpvID !== cpv\n );\n delete state.editableStrategies[section][id].checkboxCPVs[cpv];\n delete state.editableStrategies[section][id].normalCPVs[cpv];\n }),\n setNUTS: (payload, section, id) =>\n set((state) => {\n state.editableStrategies[section][id].nuts = payload;\n }),\n // ------------------- OTHER -----------------------\n setTutorialEnabled: (payload) => set(() => ({ tutorialEnabled: payload })),\n resetState: () => {\n set(initialState);\n },\n })),\n {\n partialize: (state) =>\n Object.fromEntries(\n Object.entries(state).filter(\n ([key]) =>\n ![\n \"_hasHydrated\",\n \"enablePDF\",\n \"strategiesStatus\",\n \"user\",\n \"userLoaded\",\n \"animatedOnce\",\n \"dashboardDataLoading\",\n ].includes(key)\n )\n ),\n name: \"tenderStrategy\",\n storage: createJSONStorage(() => storage),\n version: import.meta.env.VITE_VERSION,\n merge: (persistedState, currentState) => mergeDeepLeft(persistedState, currentState),\n onRehydrateStorage: (state) => {\n // devDebug(\"tenderStrategyStore -> hydration starts, state: \", state);\n return (state, error) => {\n if (error) {\n // devDebug(\n // \"tenderStrategyStore -> an error happened during hydration\",\n // error\n // );\n } else {\n // devDebug(\"tenderStrategyStore -> hydration finished, state: \", state);\n state.setHasHydrated(true);\n }\n };\n },\n }\n ),\n shallow\n);\n","export default \"__VITE_ASSET__DkxGmrbj__\"","export default \"__VITE_ASSET__BsdF9kDR__\"","export default \"__VITE_ASSET__D2Z$lYdr__\"","export default \"__VITE_ASSET__BG2RiptH__\"","import React from \"react\";\nimport TendersClub_Logo_White from \"../Assets/Images/tenders_club_logo_and_tagline_white.png\";\nimport TendersClub_Logo_Blue from \"../Assets/Images/tenders_club_logo_and_tagline_purple.png\";\nimport TenderClub_small_logo_white from \"../Assets/Images/tenders_club_logo_only_white.png\";\nimport TenderClub_small_logo_dark from \"../Assets/Images/tenders_club_logo_only.png\";\n\nexport default function TendersClubLogo({ size, colour }) {\n if (size === \"small\" && colour === \"light\") {\n return \"Tenders;\n } else if (size === \"small\" && colour === \"dark\") {\n return \"Tenders;\n } else if (size === \"normal\" && colour === \"light\") {\n return \"Tenders;\n } else if (size === \"normal\" && colour === \"dark\") {\n return \"Tenders;\n }\n}\n","export default \"__VITE_ASSET__D0a5UkPS__\"","import React from \"react\";\n// import { Spinner } from \"reactstrap\";\n// import loading_gif_256 from \"../Assets/Images/gif/loading_gif_256.gif\";\n// import loading_compressed_256 from \"../Assets/Images/gif/loading_compressed_256.gif\";\nimport loading_compressed_256_fast from \"../Assets/Images/gif/loading_compressed_256_fast.gif\";\n// import logo_video from \"../Assets/Images/gif/logo_video.mp4\";\nimport { useTranslation } from \"react-i18next\";\n\nexport default function ScreenSpinner({ copy }) {\n const { t } = useTranslation();\n return (\n
\n {/* */}\n {/* */}\n {t(\"Tenders\n
{`${copy ? t(copy) : t(\"Initialising Section...\")}`}
\n
\n );\n}\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\n// import { immer } from \"zustand/middleware/immer\";\nimport { persist, createJSONStorage } from \"zustand/middleware\";\nimport { immer } from \"zustand/middleware/immer\";\nimport { mergeDeepLeft } from \"ramda\";\n// import devDebug from \"../Helpers/debug\";\nimport default_mapdata from \"../Assets/Mapdata/default_mapdata.json\";\nimport i18n from \"i18next\";\nimport { get, set, del } from \"idb-keyval\"; // can use anything: IndexedDB, Ionic Storage, etc.\nimport { defaultStrategies } from \"../Services/strategies/strategyConstants\";\n\nconst storage = {\n getItem: async (name) => {\n //devDebug(name, \"has been retrieved\");\n return (await get(name)) || null;\n },\n setItem: async (name, value) => {\n //devDebug(name, \"with value\", value, \"has been saved\");\n await set(name, value);\n },\n removeItem: async (name) => {\n //devDebug(name, \"has been deleted\");\n await del(name);\n },\n};\n\n// define the initial state\nconst initialState = {\n _hasHydrated: false,\n defaultStrategies: { ...defaultStrategies },\n};\n\nexport const useDefaultStrategyStore = createWithEqualityFn(\n persist(\n immer((set, get) => ({\n ...initialState,\n setHasHydrated: (state) => {\n set({\n _hasHydrated: state,\n });\n },\n compileDefaultStrategies: (existingStrategies) =>\n set((state) => {\n let nuts = [];\n for (let id of Object.keys(existingStrategies)) {\n for (let nut of existingStrategies[id].nuts) {\n for (let id of Object.keys(default_mapdata))\n if ((id.includes(nut) || id === nut) && !nuts.includes(nut)) {\n nuts.push(nut);\n }\n }\n }\n state.defaultStrategies[\"dashboard_logged_in\"].all.nuts = nuts;\n //TODO: figure out why this hack is needed, when the names should be populated by strategyConstants.js\n state.defaultStrategies[\"dashboard_logged_in\"].all.name =\n i18n.t(\"All Strategies\");\n state.defaultStrategies[\"tender_awards\"].all.name =\n i18n.t(\"All Strategies\");\n state.defaultStrategies[\"awards_search\"].all.name =\n i18n.t(\"All Strategies\");\n state.defaultStrategies[\"awards_search\"].market.name =\n i18n.t(\"Market\");\n state.defaultStrategies[\"companies_search\"].all.name =\n i18n.t(\"All Strategies\");\n state.defaultStrategies[\"companies_search\"].market.name =\n i18n.t(\"Market\");\n state.defaultStrategies[\"dashboard_anonymous\"].anonymous.name =\n i18n.t(\"All Strategies\");\n state.defaultStrategies[\"search\"].all.name = i18n.t(\"All Strategies\");\n }),\n\n resetState: () => {\n set(initialState);\n },\n })),\n {\n partialize: (state) =>\n Object.fromEntries(\n Object.entries(state).filter(\n ([key]) => ![\"_hasHydrated\"].includes(key)\n )\n ),\n name: \"defaultStrategies\",\n storage: createJSONStorage(() => storage),\n version: import.meta.env.VITE_VERSION,\n merge: (persistedState, currentState) =>\n mergeDeepLeft(persistedState, currentState),\n onRehydrateStorage: (state) => {\n // devDebug(\"useDefaultStrategyStore -> hydration starts, state: \", state);\n return (state, error) => {\n if (error) {\n // devDebug(\n // \"useDefaultStrategyStore -> an error happened during hydration\",\n // error\n // );\n } else {\n // devDebug(\n // \"useDefaultStrategyStore -> hydration finished, state: \",\n // state\n // );\n state.setHasHydrated(true);\n }\n };\n },\n }\n ),\n shallow\n);\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\nimport { immer } from \"zustand/middleware/immer\";\nimport { persist, createJSONStorage } from \"zustand/middleware\";\nimport { mergeDeepLeft } from \"ramda\";\nimport { get, set, del } from \"idb-keyval\"; // can use anything: IndexedDB, Ionic Storage, etc.\n// import { current } from \"immer\";\n\nconst storage = {\n getItem: async (name) => {\n //devDebug(name, \"has been retrieved\");\n return (await get(name)) || null;\n },\n setItem: async (name, value) => {\n //devDebug(name, \"with value\", value, \"has been saved\");\n await set(name, value);\n },\n removeItem: async (name) => {\n //devDebug(name, \"has been deleted\");\n await del(name);\n },\n};\n\n// define the initial state\nconst initialState = {\n _hasHydrated: false,\n cpvStatSearch: \"\",\n awardsDropDownOpen: false,\n showHelpVideoModal: false,\n showUnsavedPopup: false,\n showMultilanguageVideo: false,\n showUpgradePopup: false,\n showNoResultsMessage: false,\n finishedCounter: 0,\n nutsSearchFromDashboardClick: \"\",\n showCompanyModal: false,\n companyIDToGet: 0,\n companyNameToGet: \"\",\n tenderingAuthorityNameToGet: \"\",\n showTAModal: false,\n tenderingAuthorityIDToGet: 0,\n awardsTableConstraintType: \"\",\n awardsTableConstraintID: null,\n awardsTableConstraintName: \"\",\n isDark: false,\n input: \"\",\n hideListNutsSearch: true,\n applyModal: false,\n setApplyModalContent: \"apply\",\n deduplicateCallTime: {},\n showDislikeWarningModal: false,\n dislikeWarningModalShown: false,\n cookieState: { userHasInteracted: 0, cookiesEnabled: true },\n cookieModalVisible: false,\n};\n\nexport const useComponentsStore = createWithEqualityFn(\n persist(\n immer((set, get) => ({\n ...initialState,\n setHasHydrated: (state) => {\n set({\n _hasHydrated: state,\n });\n },\n setCookieModalVisible: (cookieModalVisible) =>\n set((state) => {\n state.cookieModalVisible = cookieModalVisible;\n }),\n setCookieState: (cookieState) =>\n set((state) => {\n state.cookieState = cookieState;\n }),\n setIsDark: (payload) =>\n set((state) => {\n state.isDark = payload;\n }),\n // ------------------- MODALS --------------\n setShowDislikeWarningModal: (showDislikeWarningModal) =>\n set((state) => {\n state.showDislikeWarningModal = showDislikeWarningModal\n }),\n setDislikeWarningModalShown: (dislikeWarningModalShown) =>\n set((state) => {\n state.dislikeWarningModalShown = dislikeWarningModalShown\n }),\n // ------------------- UTILITY FUNCTIONS --------------\n\n setDeduplicateCallTime: (key, time) =>\n set((state) => {\n state.deduplicateCallTime[key] = time\n }),\n // ------------------- VIEW / EDIT TENDER --------------\n setApplyModalContent: (applyModalContent) =>\n set((state) => {\n state.applyModalContent = applyModalContent;\n }),\n setApplyModal: (applyModal) =>\n set((state) => {\n state.applyModal = applyModal;\n }),\n setInput: (payload) =>\n set((state) => {\n state.input = payload;\n }),\n setHideListNutsSearch: (payload) =>\n set((state) => {\n state.hideListNutsSearch = payload;\n }),\n helpVideoAction: (payload) =>\n set((state) => {\n state.showHelpVideoModal = payload;\n }),\n setShowCompanyModal: (payload) =>\n set((state) => {\n state.showCompanyModal = payload;\n }),\n setAwardsDropDownOpen: (payload) =>\n set((state) => {\n state.awardsDropDownOpen = payload;\n }),\n setCompanyIDToGet: (payload) =>\n set((state) => {\n state.companyIDToGet = payload;\n }),\n setCompanyNameToGet: (payload) =>\n set((state) => {\n state.companyNameToGet = payload;\n }),\n setTenderingAuthorityNameToGet: (payload) =>\n set((state) => {\n state.tenderingAuthorityNameToGet = payload;\n }),\n setShowTAModal: (payload) =>\n set((state) => {\n state.showTAModal = payload;\n }),\n setAwardsTableConstraint: (type, id, name) =>\n set((state) => {\n state.awardsTableConstraintType = type;\n state.awardsTableConstraintID = id;\n state.awardsTableConstraintName = name;\n }),\n setTenderingAuthorityIDToGet: (payload) =>\n set((state) => {\n state.tenderingAuthorityIDToGet = payload;\n }),\n setShowUnsavedPopup: (payload) =>\n set((state) => {\n state.showUnsavedPopup = payload;\n }),\n multiLanguageVideoAction: (payload) =>\n set((state) => {\n state.showMultilanguageVideo = payload;\n }),\n setShowUpgradePopup: (payload) =>\n set((state) => {\n state.showUpgradePopup = payload;\n }),\n setStatSearch: (payload) =>\n set((state) => {\n state.cpvStatSearch = payload;\n }),\n setShowNoResultsMessage: (payload) =>\n set((state) => {\n state.showNoResultsMessage = payload;\n }),\n setFinishedCounter: (payload) =>\n set((state) => {\n state.finishedCounter += 1;\n }),\n setNutsSearchFromDashboardClick: (payload) =>\n set((state) => {\n state.nutsSearchFromDashboardClick = payload;\n }),\n resetState: () => {\n set(initialState);\n },\n })),\n {\n partialize: (state) =>\n Object.fromEntries(\n Object.entries(state).filter(([key]) => ![\"_hasHydrated\",\n \"cpvStatSearch\",\n \"awardsDropDownOpen\",\n \"showHelpVideoModal\",\n \"showUnsavedPopup\",\n \"showMultilanguageVideo\",\n \"showUpgradePopup\",\n \"showNoResultsMessage\",\n \"finishedCounter\",\n \"nutsSearchFromDashboardClick\",\n \"showCompanyModal\",\n \"companyIDToGet\",\n \"companyNameToGet\",\n \"tenderingAuthorityNameToGet\",\n \"showTAModal\",\n \"tenderingAuthorityIDToGet\",\n \"awardsTableConstraintType\",\n \"awardsTableConstraintID\",\n \"awardsTableConstraintName\",\n \"isDark\",\n \"input\",\n \"hideListNutsSearch\",\n \"applyModal\",\n \"setApplyModalContent\",\n \"deduplicateCallTime\",\n ].includes(key))\n ),\n name: \"componentsStore\",\n storage: createJSONStorage(() => storage),\n version: import.meta.env.VITE_VERSION,\n merge: (persistedState, currentState) => mergeDeepLeft(persistedState, currentState),\n onRehydrateStorage: (state) => {\n // devDebug(\"cpvStore -> hydration starts, state: \", state);\n return (state, error) => {\n if (error) {\n // devDebug(\"cpvStore -> an error happened during hydration\", error);\n } else {\n // devDebug(\"cpvStore -> hydration finished, state: \", state);\n state.setHasHydrated(true);\n }\n };\n },\n }\n ),\n shallow\n);\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\n// import { immer } from \"zustand/middleware/immer\";\nimport { persist, createJSONStorage } from \"zustand/middleware\";\nimport { immer } from \"zustand/middleware/immer\";\nimport { mergeDeepLeft } from \"ramda\";\n// import devDebug from \"../Helpers/debug\";\nimport { get, set, del } from \"idb-keyval\"; // can use anything: IndexedDB, Ionic Storage, etc.\n\nconst storage = {\n getItem: async (name) => {\n //devDebug(name, \"has been retrieved\");\n return (await get(name)) || null;\n },\n setItem: async (name, value) => {\n //devDebug(name, \"with value\", value, \"has been saved\");\n await set(name, value);\n },\n removeItem: async (name) => {\n //devDebug(name, \"has been deleted\");\n await del(name);\n },\n};\n\nconst tenderSearchTabAdminKey = `${import.meta.env.VITE_TENDER_SEARCH_TAB_ADMIN_KEY}_${import.meta.env.VITE_VERSION}`;\nconst tenderSearchTabKey = `${import.meta.env.VITE_TENDER_SEARCH_TAB_KEY}_${import.meta.env.VITE_VERSION}`;\nconst companiesSearchTabKey = `${import.meta.env.VITE_COMPANIES_SEARCH_TAB_KEY}_${import.meta.env.VITE_VERSION}`;\nconst tenderAwardsSearchTabKey = `${import.meta.env.VITE_AWARDS_SEARCH_TAB_KEY}_${import.meta.env.VITE_VERSION}`;\n\nlet tab = {};\n\ntab[tenderSearchTabAdminKey] = 0;\ntab[tenderSearchTabKey] = 0;\ntab[companiesSearchTabKey] = 0;\ntab[tenderAwardsSearchTabKey] = 0;\n\nconst initialState = {\n tab: tab,\n tenderStrategies: [],\n storeAwards: [],\n awardsFull: null,\n tenderStrategiesLoaded: false,\n applyToAllTabs: false,\n awardInfoID: null,\n showAwardInfoModal: false,\n inputCPV: \"\",\n hideListCPVSearch: true,\n award: null,\n awardStatus: \"loading\",\n awardError: \"\",\n //variables for Excel export\n awardArrayToDownload: [],\n multiXLSXStatus: \"\",\n totalIterations: 1,\n currentIteration: 0,\n includeAdminColumns: false,\n numAwardsToDownload: 50,\n};\n\nexport const useTenderAwardsSearchStore = createWithEqualityFn(\n persist(\n immer((set, get) => ({\n ...initialState,\n setHasHydrated: (state) => {\n set({\n _hasHydrated: state,\n });\n },\n\n // ---------------------- EXCEL DOWNLOADS ---------------------------\n setIncludeAdminColumns: (payload) =>\n set((state) => {\n state.includeAdminColumns = payload;\n }),\n setNumAwardsToDownload: (payload) =>\n set((state) => {\n state.numAwardsToDownload = payload;\n }),\n setAwardArrayToDownload: (payload) =>\n set((state) => {\n console.log(\"setAwardArrayToDownload, currentIteration: \", state.currentIteration, \" totalIterations: \", state.totalIterations);\n state.awardArrayToDownload = [...state.awardArrayToDownload, payload];\n if (state.currentIteration > state.totalIterations) {\n state.awardArrayToDownload.sort((a, b) => a.currentIteration - b.currentIteration);\n state.awardArrayToDownload = state.awardArrayToDownload\n .flatMap(obj => obj.results)\n .slice(0, state.numAwardsToDownload);\n state.multiXLSXStatus = \"loaded\";\n } else {\n console.log(\"did not match yet\")\n }\n }),\n resetAwardArrayToDownload: () =>\n set((state) => {\n state.awardArrayToDownload = [];\n }),\n setMultiXLSXStatus: (payload) =>\n set((state) => {\n state.multiXLSXStatus = payload;\n }),\n setTotalIterations: (payload) =>\n set((state) => {\n state.totalIterations = payload;\n }),\n setCurrentIteration: (payload) =>\n set((state) => {\n state.currentIteration = payload;\n }),\n increaseCurrentIteration: () =>\n set((state) => {\n state.currentIteration++\n }),\n\n // ---------------------- AWARDS SEARCH ---------------------------\n\n setAward: (award) =>\n set((state) => {\n state.award = award;\n }),\n setAwardStatus: (awardStatus) =>\n set((state) => {\n state.awardStatus = awardStatus;\n }),\n setAwardError: (awardError) =>\n set((state) => {\n state.awardError = awardError;\n }),\n setInputCPV: (payload) =>\n set((state) => {\n state.inputCPV = payload;\n }),\n setHideListCPVSearch: (payload) =>\n set((state) => {\n state.hideListCPVSearch = payload;\n }),\n setAwardInfoID: (payload) =>\n set((state) => {\n state.awardInfoID = payload;\n }),\n setShowAwardInfoModal: (payload) =>\n set((state) => {\n state.showAwardInfoModal = payload;\n }),\n setStoreAwards: (payload) =>\n set((state) => {\n state.awardsFull = payload\n let awrds = {};\n for (let award of payload.results) {\n awrds[award.id] = award;\n }\n state.storeAwards = awrds;\n }),\n settableQueryParams: (payload) =>\n set((state) => {\n state.tableQueryParams = payload;\n }),\n setTab: (payload, section) =>\n set((state) => {\n state.tab[section] = payload;\n }),\n setApplyToAllTabs: (payload) =>\n set((state) => {\n state.applyToAllTabs = payload;\n }),\n setTenderStrategies: (tabName, payload) =>\n set((state) => {\n state.tenderStrategies = payload;\n const actualTab = { ...state.tab };\n if (actualTab[tabName] >= state.tenderStrategies.length) {\n state.tab[tabName] = 0;\n }\n }),\n setTenderStrategiesLoaded: (payload) =>\n set((state) => {\n state.tenderStrategiesLoaded = payload;\n }),\n resetState: () => set(initialState),\n })),\n {\n partialize: (state) =>\n Object.fromEntries(\n Object.entries(state).filter(\n ([key]) =>\n ![\n \"_hasHydrated\",\n \"tenderStrategies\",\n \"tenderStrategiesLoaded\",\n \"awardStatus\",\n \"awardInfoID\",\n \"showAwardInfoModal\",\n \"awardArrayToDownload\",\n \"multiXLSXStatus\",\n \"totalIterations\",\n \"currentIteration\"\n ].includes(key)\n )\n ),\n name: \"tenderAwardsSearch1\",\n storage: createJSONStorage(() => storage),\n version: import.meta.env.VITE_VERSION,\n merge: (persistedState, currentState) =>\n mergeDeepLeft(persistedState, currentState),\n onRehydrateStorage: (state) => {\n // devDebug(\"tender awards search store -> hydration starts, state: \", state);\n return (state, error) => {\n if (error) {\n // devDebug(\n // \"tender awards search store -> an error happened during hydration\",\n // error\n // );\n } else {\n // devDebug(\n // \"tender awards search store -> hydration finished, state: \",\n // state\n // );\n state.setHasHydrated(true);\n }\n };\n },\n }\n ),\n shallow\n);\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\n// import { immer } from \"zustand/middleware/immer\";\nimport { persist, createJSONStorage } from \"zustand/middleware\";\nimport { immer } from \"zustand/middleware/immer\";\nimport { mergeDeepLeft } from \"ramda\";\n// import devDebug from \"../Helpers/debug\";\nimport { get, set, del } from \"idb-keyval\"; // can use anything: IndexedDB, Ionic Storage, etc.\n\nconst storage = {\n getItem: async (name) => {\n //devDebug(name, \"has been retrieved\");\n return (await get(name)) || null;\n },\n setItem: async (name, value) => {\n //devDebug(name, \"with value\", value, \"has been saved\");\n await set(name, value);\n },\n removeItem: async (name) => {\n //devDebug(name, \"has been deleted\");\n await del(name);\n },\n};\n\n// define the initial state\nconst initialState = {\n _hasHydrated: false,\n animatedOnce: false,\n success: false,\n dashboardData: {\n dashboard_logged_in: {\n all: {\n total_tenders: 0,\n recent_tenders: 0,\n tenders_expiring_in_3_days: 0,\n },\n },\n dashboard_anonymous: {\n anonymous: {\n total_tenders: 0,\n recent_tenders: 0,\n tenders_expiring_in_3_days: 0,\n },\n },\n },\n getError: false,\n dashboardDataLoading: true,\n shortTermLoadingMarket: true,\n shortTermLoadingStrategy: true,\n longTermLoading: true,\n shortTermDataMarket: { last_month_avg: \"0\", last_week: \"0\", this_week: \"0\" },\n shortTermDataStrategy: {\n last_month_avg: \"0\",\n last_week: \"0\",\n this_week: \"0\",\n },\n longTermChartData: {\n all: [],\n strategy_cpvs: [],\n strategy_nuts: [],\n strategy: [],\n },\n donutData: {},\n\n submitErrors: { all: \"\" },\n errType: { all: \"\" },\n};\n\nexport const useDashboardStore = createWithEqualityFn(\n persist(\n immer((set, get) => ({\n ...initialState,\n setHasHydrated: (state) => {\n set({\n _hasHydrated: state,\n });\n },\n // ------------------- DASHBOARD -----------------------\n setSuccess: (payload) =>\n set((state) => {\n state.success = payload;\n }),\n setAnimatedOnce: (payload) =>\n set((state) => {\n state.animatedOnce = payload;\n }),\n setDashboardData: (resp, section, id) =>\n set((state) => {\n state.dashboardData[section][id] = resp;\n state.loading = false;\n state.success = true;\n }),\n setGetError: (payload) =>\n set((state) => {\n state.getError = payload;\n }),\n setDashboardDataLoading: (payload) =>\n set((state) => {\n state.dashboardDataLoading = payload;\n }),\n setShortTermLoadingMarket: (payload) =>\n set((state) => {\n state.shortTermLoadingMarket = payload;\n }),\n setShortTermLoadingStrategy: (payload) =>\n set((state) => {\n state.shortTermLoadingStrategy = payload;\n }),\n setLongTermLoading: (payload) =>\n set((state) => {\n state.longTermLoading = payload;\n }),\n setShortTermDataMarket: (payload) =>\n set((state) => {\n state.shortTermDataMarket = payload;\n }),\n setShortTermDataStrategy: (payload) =>\n set((state) => {\n state.shortTermDataStrategy = payload;\n }),\n setLongTermChartData: (payload) =>\n set((state) => {\n state.longTermChartData = payload;\n }),\n setDonutData: (payload) =>\n set((state) => {\n state.donutData = payload;\n }),\n setDonutLoading: (payload) =>\n set((state) => {\n state.donutLoading = payload;\n }),\n resetState: () => {\n set(initialState);\n },\n })),\n {\n partialize: (state) =>\n Object.fromEntries(\n Object.entries(state).filter(\n ([key]) =>\n ![\n \"_hasHydrated\",\n \"tenderStrategyStatus\",\n \"tenderStrategies\",\n \"CPVStage\",\n \"NUTSMapStage\",\n \"user\",\n \"userLoaded\",\n \"strategyIDs\",\n \"animatedOnce\",\n \"dashboardDataLoading\",\n ].includes(key)\n )\n ),\n name: \"dashboardStore\",\n storage: createJSONStorage(() => storage),\n version: import.meta.env.VITE_VERSION,\n merge: (persistedState, currentState) =>\n mergeDeepLeft(persistedState, currentState),\n onRehydrateStorage: (state) => {\n // devDebug(\"dashboardStore -> hydration starts, state: \", state);\n return (state, error) => {\n if (error) {\n // devDebug(\n // \"dashboardStore -> an error happened during hydration\",\n // error\n // );\n } else {\n // devDebug(\"dashboardStore -> hydration finished, state: \", state);\n state.setHasHydrated(true);\n }\n };\n },\n }\n ),\n shallow\n);\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\n// import { immer } from \"zustand/middleware/immer\";\nimport { persist, createJSONStorage } from \"zustand/middleware\";\nimport { immer } from \"zustand/middleware/immer\";\nimport { mergeDeepLeft } from \"ramda\";\n// import devDebug from \"../Helpers/debug\";\nimport { get, set, del } from \"idb-keyval\"; // can use anything: IndexedDB, Ionic Storage, etc.\n\nconst storage = {\n getItem: async (name) => {\n //devDebug(name, \"has been retrieved\");\n return (await get(name)) || null;\n },\n setItem: async (name, value) => {\n //devDebug(name, \"with value\", value, \"has been saved\");\n await set(name, value);\n },\n removeItem: async (name) => {\n //devDebug(name, \"has been deleted\");\n await del(name);\n },\n};\n\n// define the initial state\nconst initialState = {\n _hasHydrated: false,\n tenderAwardsCompaniesLoading: true,\n tenderAwardsShortTermLoading: true,\n tenderAwardsLongTermLoading: true,\n tenderAwardsSuppliers: true,\n tenderAwardsSuppliersLoading: true,\n tenderAwardsShortTermMarket: true,\n tenderAwardsShortTermMarketLoading: true,\n tenderAwardsCompanies: [],\n tenderAwardsShortTerm: {},\n tenderAwardsLongTerm: [],\n tenderAwardsMetric: \"total_amount\",\n user: {},\n userLoaded: false,\n};\n\nexport const useTenderAwardsStore = createWithEqualityFn(\n persist(\n immer((set, get) => ({\n ...initialState,\n setHasHydrated: (state) => {\n set({\n _hasHydrated: state,\n });\n },\n // ------------------- TENDER AWARDS --------------\n setTenderAwardsMetric: (payload) =>\n set((state) => {\n state.tenderAwardsMetric = payload;\n }),\n setTenderAwardsShortTermMarket: (payload) =>\n set((state) => {\n state.tenderAwardsShortTermMarket = payload;\n }),\n setTenderAwardsShortTermMarketLoading: (payload) =>\n set((state) => {\n state.tenderAwardsShortTermMarketLoading = payload;\n }),\n setTenderAwardsSuppliers: (payload) =>\n set((state) => {\n state.tenderAwardsSuppliers = payload;\n }),\n setTenderAwardsSuppliersLoading: (payload) =>\n set((state) => {\n state.tenderAwardsSuppliersLoading = payload;\n }),\n setTenderAwardsCompanies: (payload) =>\n set((state) => {\n state.tenderAwardsCompanies = payload;\n }),\n setTenderAwardsShortTerm: (payload) =>\n set((state) => {\n state.tenderAwardsShortTerm = payload;\n }),\n setTenderAwardsLongTerm: (payload) =>\n set((state) => {\n state.tenderAwardsLongTerm = payload;\n }),\n setTenderAwardsCompaniesLoading: (payload) =>\n set((state) => {\n state.tenderAwardsCompaniesLoading = payload;\n }),\n setTenderAwardsShortTermLoading: (payload) =>\n set((state) => {\n state.tenderAwardsShortTermLoading = payload;\n }),\n setTenderAwardsLongTermLoading: (payload) =>\n set((state) => {\n state.tenderAwardsLongTermLoading = payload;\n }),\n resetState: () => {\n set(initialState);\n },\n })),\n {\n partialize: (state) =>\n Object.fromEntries(\n Object.entries(state).filter(\n ([key]) => ![\"_hasHydrated\"].includes(key)\n )\n ),\n name: \"tenderAwards\",\n storage: createJSONStorage(() => storage),\n version: import.meta.env.VITE_VERSION,\n merge: (persistedState, currentState) =>\n mergeDeepLeft(persistedState, currentState),\n onRehydrateStorage: (state) => {\n // devDebug(\"tenderAwardsStore -> hydration starts, state: \", state);\n return (state, error) => {\n if (error) {\n // devDebug(\n // \"tenderAwardsStore -> an error happened during hydration\",\n // error\n // );\n } else {\n // devDebug(\"tenderAwardsStore -> hydration finished, state: \", state);\n state.setHasHydrated(true);\n }\n };\n },\n }\n ),\n shallow\n);\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\n// import { immer } from \"zustand/middleware/immer\";\nimport { persist, createJSONStorage } from \"zustand/middleware\";\nimport { immer } from \"zustand/middleware/immer\";\nimport { mergeDeepLeft } from \"ramda\";\n// import devDebug from \"../Helpers/debug\";\nimport { get, set, del } from \"idb-keyval\"; // can use anything: IndexedDB, Ionic Storage, etc.\n// import { current } from \"immer\";\n\nconst storage = {\n getItem: async (name) => {\n //devDebug(name, \"has been retrieved\");\n return (await get(name)) || null;\n },\n setItem: async (name, value) => {\n //devDebug(name, \"with value\", value, \"has been saved\");\n await set(name, value);\n },\n removeItem: async (name) => {\n //devDebug(name, \"has been deleted\");\n await del(name);\n },\n};\n\nconst tenderSearchTabAdminKey = `${import.meta.env.VITE_TENDER_SEARCH_TAB_ADMIN_KEY}_${import.meta.env.VITE_VERSION}`;\nconst tenderSearchTabKey = `${import.meta.env.VITE_TENDER_SEARCH_TAB_KEY}_${import.meta.env.VITE_VERSION}`;\nconst tenderAwardsSearchTabKey = `${import.meta.env.VITE_AWARDS_SEARCH_TAB_KEY}_${import.meta.env.VITE_VERSION}`;\n\nlet tab = {};\n\ntab[tenderAwardsSearchTabKey] = 0;\ntab[tenderSearchTabAdminKey] = 0;\ntab[tenderSearchTabKey] = 0;\n\nconst initialState = {\n tab: tab,\n randomReinit: Math.random(),\n tenderStrategies: [],\n tenderStrategiesLoaded: false,\n applyToAllTabs: false,\n searchViewMode: \"schedule\",\n scheduleViewModalVisible: false,\n userChoseView: false,\n tenders: [],\n tendersFiltered: [],\n tendersFull: {\n total_pages: 1,\n results: [],\n },\n refreshingTable: true,\n goToFileUploadAddTender: false,\n strategyFilterID: 0,\n checkedAutoConfirmCheckBoxes: [],\n includeAdminColumns: true,\n numTendersToDownload: 0,\n tenderArrayToDownload: [],\n multiXLSXStatus: \"\",\n totalIterations: 0,\n currentIteration: 0,\n finalArray: [],\n tenderSearchController: null,\n};\n\nexport const useTenderSearchStore = createWithEqualityFn(\n persist(\n immer((set, get) => ({\n ...initialState,\n setHasHydrated: (state) => {\n set({\n _hasHydrated: state,\n });\n },\n\n // ------------------------- GLOBAL REQUEST CONTROLLER ------------------------------\n setTenderSearchController: (tenderSearchController) =>\n set((state) => {\n state.tenderSearchController = tenderSearchController\n }),\n // ------------------------- EXCEL DOWNLOAD ------------------------------\n increaseCurrentIteration: () =>\n set((state) => {\n state.currentIteration++\n }),\n setCurrentIteration: (currentIteration) =>\n set((state) => {\n state.currentIteration = currentIteration\n }),\n setTotalIterations: (totalIterations) =>\n set((state) => {\n state.totalIterations = totalIterations\n }),\n setMultiXLSXStatus: (multiXLSXStatus) =>\n set((state) => {\n state.multiXLSXStatus = multiXLSXStatus\n }),\n setNumTendersToDownload: (numTendersToDownload) =>\n set((state) => {\n state.numTendersToDownload = numTendersToDownload\n }),\n setIncludeAdminColumns: (includeAdminColumns) =>\n set((state) => {\n state.includeAdminColumns = includeAdminColumns\n }),\n resetTenderArrayToDownload: () =>\n set((state) => {\n state.tenderArrayToDownload = []\n }),\n setTenderArrayToDownload: (resultsObject) => //{currentIteration: data.currentIteration, results: resp.results}\n set((state) => {\n state.tenderArrayToDownload = [...state.tenderArrayToDownload, resultsObject]\n if (state.currentIteration === state.totalIterations) {\n state.tenderArrayToDownload.sort((a, b) => a.currentIteration - b.currentIteration)\n state.tenderArrayToDownload = state.tenderArrayToDownload\n .flatMap(obj => obj.results)\n .slice(0, state.numTendersToDownload)\n }\n }),\n // ------------------------- AUTOCONFIRM -------------------------\n\n checkUncheckAutoConfirmCheckBox: (id) =>\n set((state) => {\n if (state.checkedAutoConfirmCheckBoxes.includes(id)) {\n state.checkedAutoConfirmCheckBoxes = state.checkedAutoConfirmCheckBoxes.filter((x) => x !== id);\n } else {\n state.checkedAutoConfirmCheckBoxes = [...state.checkedAutoConfirmCheckBoxes, id];\n }\n }),\n removeAutoConfirmCheckBox: (id) =>\n set((state) => {\n state.checkedAutoConfirmCheckBoxes = state.checkedAutoConfirmCheckBoxes.filter((x) => x !== id);\n }),\n resetAutoConfirmCheckBoxes: () =>\n set((state) => {\n state.checkedAutoConfirmCheckBoxes = [];\n }),\n\n // ------------------------- OTHERS ------------------------------\n\n setStrategyFilterID: (strategyFilterID, strat) =>\n set((state) => {\n state.strategyFilterID = strategyFilterID;\n if (!strat?.cpvs) {\n state.tendersFiltered = state.tenders;\n } else {\n let filteredTenders = [];\n for (let tender of state.tenders) {\n let includeCPV = false;\n for (let cpv of tender.cpv) {\n if (strat.cpvs.includes(cpv)) {\n includeCPV = true;\n break;\n }\n }\n if (strat.nuts.includes(tender.nut_code) && includeCPV) {\n filteredTenders.push(tender);\n continue;\n }\n }\n state.tendersFiltered = filteredTenders;\n }\n }),\n\n setGoToFileUploadAddTender: (goToFileUploadAddTender) =>\n set((state) => {\n state.goToFileUploadAddTender = goToFileUploadAddTender;\n }),\n setRefreshingTable: (refreshingTable) =>\n set((state) => {\n state.refreshingTable = refreshingTable;\n }),\n setTenders: (tenders) =>\n set((state) => {\n state.tendersFull =\n tenders?.results?.length > 0\n ? tenders\n : {\n total_pages: 1,\n results: [],\n };\n state.tenders = tenders?.results?.length > 0 ? tenders.results : [];\n state.numTendersToDownload = tenders?.count || 0\n state.tendersFiltered = tenders?.results?.length > 0 ? tenders.results : [];\n }),\n setUserChoseView: (userChoseView) =>\n set((state) => {\n state.userChoseView = userChoseView;\n }),\n settableQueryParams: (payload) =>\n set((state) => {\n state.tableQueryParams = payload;\n }),\n setScheduleViewModalVisible: (scheduleViewModalVisible) =>\n set((state) => {\n state.scheduleViewModalVisible = scheduleViewModalVisible;\n }),\n setSearchViewMode: (mode) =>\n set((state) => {\n state.searchViewMode = mode;\n }),\n setTab: (payload, section) =>\n set((state) => {\n state.tab[section] = payload;\n }),\n setRandomReinit: () =>\n set((state) => {\n state.randomReinit = Math.random();\n }),\n setApplyToAllTabs: (payload) =>\n set((state) => {\n state.applyToAllTabs = payload;\n }),\n setTenderStrategies: (tabName, payload) =>\n set((state) => {\n state.tenderStrategies = payload;\n const actualTab = { ...state.tab };\n if (actualTab[tabName] >= state.tenderStrategies.length) {\n state.tab[tabName] = 0;\n }\n }),\n setTenderStrategiesLoaded: (payload) =>\n set((state) => {\n state.tenderStrategiesLoaded = payload;\n }),\n resetState: () => set(initialState),\n })),\n {\n partialize: (state) =>\n Object.fromEntries(\n Object.entries(state).filter(\n ([key]) =>\n ![\"_hasHydrated\",\n \"input\",\n \"tenderStrategies\",\n \"hideListNutsSearch\",\n \"tenderStrategiesLoaded\",\n \"tenderArrayToDownload\",\n \"multiXLSXStatus\",\n \"totalIterations\",\n \"currentIteration\"].includes(\n key\n )\n )\n ),\n name: \"tenderSearch\",\n storage: createJSONStorage(() => storage),\n version: import.meta.env.VITE_VERSION,\n merge: (persistedState, currentState) => mergeDeepLeft(persistedState, currentState),\n onRehydrateStorage: (state) => {\n // devDebug(\"tender search store -> hydration starts, state: \", state);\n return (state, error) => {\n if (error) {\n // devDebug(\n // \"tender search store -> an error happened during hydration\",\n // error\n // );\n } else {\n // devDebug(\"tender search store -> hydration finished, state: \", state);\n state.setHasHydrated(true);\n }\n };\n },\n }\n ),\n shallow\n);\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\nimport { persist, createJSONStorage } from \"zustand/middleware\";\nimport { immer } from \"zustand/middleware/immer\";\nimport { mergeDeepLeft } from \"ramda\";\n// import devDebug from \"../Helpers/debug\";\nimport { get, set, del } from \"idb-keyval\"; // can use anything: IndexedDB, Ionic Storage, etc.\n\nconst storage = {\n getItem: async (name) => {\n //devDebug(name, \"has been retrieved\");\n return (await get(name)) || null;\n },\n setItem: async (name, value) => {\n //devDebug(name, \"with value\", value, \"has been saved\");\n await set(name, value);\n },\n removeItem: async (name) => {\n //devDebug(name, \"has been deleted\");\n await del(name);\n },\n};\n\n// define the initial state\nconst initialState = {\n _hasHydrated: false,\n page: 1,\n search: \"\",\n pageSize: 10,\n totalPages: null,\n pageInput: false,\n usersList: [],\n hideColumns: [],\n};\n\nexport const useListUsersStore = createWithEqualityFn(\n persist(\n immer((set, get) => ({\n ...initialState,\n setHasHydrated: (state) => {\n set({\n _hasHydrated: state,\n });\n },\n selectColumn: (col) =>\n set((state) => {\n if (state.hideColumns.includes(col)) {\n state.hideColumns = state.hideColumns.filter((c) => c !== col);\n } else {\n state.hideColumns = [...state.hideColumns, col];\n }\n }),\n setPage: (payload) =>\n set((state) => {\n state.page = payload;\n }),\n setSearch: (payload) =>\n set((state) => {\n state.search = payload;\n }),\n setPageSize: (payload) =>\n set((state) => {\n state.pageSize = payload;\n }),\n setTotalPages: (payload) =>\n set((state) => {\n state.totalPages = payload;\n }),\n setPageInput: (payload) =>\n set((state) => {\n state.pageInput = payload;\n }),\n setUsersList: (payload) =>\n set((state) => {\n state.usersList = payload;\n }),\n resetState: () => {\n set(initialState);\n },\n })),\n {\n partialize: (state) =>\n Object.fromEntries(\n Object.entries(state).filter(\n ([key]) => ![\"_hasHydrated\"].includes(key)\n )\n ),\n name: import.meta.env.VITE_LIST_USERS_STORE_KEY,\n storage: createJSONStorage(() => storage),\n version: import.meta.env.VITE_VERSION,\n merge: (persistedState, currentState) =>\n mergeDeepLeft(persistedState, currentState),\n onRehydrateStorage: (state) => {\n // devDebug(\"tab store -> hydration starts, state: \", state);\n return (state, error) => {\n if (error) {\n // devDebug(\"tab store -> an error happened during hydration\", error);\n } else {\n // devDebug(\"tab store -> hydration finished, state: \", state);\n state.setHasHydrated(true);\n }\n };\n },\n }\n ),\n shallow\n);\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\nimport { persist, createJSONStorage } from \"zustand/middleware\";\nimport { immer } from \"zustand/middleware/immer\";\nimport { mergeDeepLeft } from \"ramda\";\n// import devDebug from \"../Helpers/debug\";\nimport { get, set, del } from \"idb-keyval\"; // can use anything: IndexedDB, Ionic Storage, etc.\n\nconst storage = {\n getItem: async (name) => {\n //devDebug(name, \"has been retrieved\");\n return (await get(name)) || null;\n },\n setItem: async (name, value) => {\n //devDebug(name, \"with value\", value, \"has been saved\");\n await set(name, value);\n },\n removeItem: async (name) => {\n //devDebug(name, \"has been deleted\");\n await del(name);\n },\n};\n\n// define the initial state\nconst initialState = {\n _hasHydrated: false,\n companies: {\n total_pages: 1,\n results: [],\n },\n page: 1,\n pageSize: 10,\n pageInputVisible: false,\n filterColumns: [],\n searchColumns: [],\n orderingTable: { id: \"award_count\", desc: true },\n orderingURL: \"-award_count\",\n name: \"\",\n companiesSearchStatus: \"loading\",\n};\n\nexport const useCompaniesSearchStore = createWithEqualityFn(\n persist(\n immer((set, get) => ({\n ...initialState,\n setHasHydrated: (state) => {\n set({\n _hasHydrated: state,\n });\n },\n setCompaniesSearchStatus: (companiesSearchStatus) =>\n set((state) => {\n state.companiesSearchStatus = companiesSearchStatus;\n }),\n setCompanies: (payload) =>\n set((state) => {\n state.companies = payload;\n }),\n columnChange: (columnID) =>\n set((state) => {\n const filterColumns =\n state.filterColumns;\n if (!filterColumns.includes(columnID)) {\n state.filterColumns.push(columnID);\n } else {\n state.filterColumns =\n filterColumns.filter((col) => col !== columnID);\n }\n }),\n setOrdering: (url, table) =>\n set((state) => {\n state.orderingURL = url;\n state.orderingTable = table;\n }),\n setPage: (payload) =>\n set((state) => {\n state.page = payload;\n }),\n setPageSize: (payload) =>\n set((state) => {\n state.pageSize = payload;\n }),\n setPageInputVisible: (payload) =>\n set((state) => {\n state.pageInputVisible = payload;\n }),\n setFilterColumns: (payload) =>\n set((state) => {\n state.filterColumns = payload;\n }),\n setSearchColumns: (payload) =>\n set((state) => {\n state.searchColumns = payload;\n }),\n setName: (payload) =>\n set((state) => {\n state.name = payload;\n }),\n resetState: () => {\n set(initialState);\n },\n })),\n {\n partialize: (state) =>\n Object.fromEntries(\n Object.entries(state).filter(\n ([key]) => ![\"_hasHydrated\"].includes(key)\n )\n ),\n name: import.meta.env.VITE_COMPANIES_SEARCH_STORE_KEY,\n storage: createJSONStorage(() => storage),\n version: import.meta.env.VITE_VERSION,\n merge: (persistedState, currentState) =>\n mergeDeepLeft(persistedState, currentState),\n onRehydrateStorage: (state) => {\n // devDebug(\"tab store -> hydration starts, state: \", state);\n return (state, error) => {\n if (error) {\n // devDebug(\"tab store -> an error happened during hydration\", error);\n } else {\n // devDebug(\"tab store -> hydration finished, state: \", state);\n state.setHasHydrated(true);\n }\n };\n },\n }\n ),\n shallow\n);\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\nimport { immer } from \"zustand/middleware/immer\";\nimport all_cpv_trees from \"../Assets/CPVs/all_cpv_trees.json\";\nimport default_mapdata from \"../Assets/Mapdata/default_mapdata.json\";\nimport { persist, createJSONStorage } from \"zustand/middleware\";\nimport { mergeDeepLeft } from \"ramda\";\nimport { get, set, del } from \"idb-keyval\"; // can use anything: IndexedDB, Ionic Storage, etc.\nimport i18n from \"../i18n\";\n// import devDebug from \"../Helpers/debug\";\n\nconst storage = {\n getItem: async (name) => {\n //devDebug(name, \"has been retrieved\");\n return (await get(name)) || null;\n },\n setItem: async (name, value) => {\n //devDebug(name, \"with value\", value, \"has been saved\");\n await set(name, value);\n },\n removeItem: async (name) => {\n //devDebug(name, \"has been deleted\");\n await del(name);\n },\n};\n\nconst defaultMapState = {\n level: 0,\n displayOption: \"tender_count\",\n refreshMap: true,\n};\n\nconst initialState = {\n currentStep: 0,\n cpvTree: all_cpv_trees[i18n.language.slice(0, 2) || \"en\"],\n cpvs: [],\n cpvError: \"\",\n companyDescription: \"\",\n mapData: default_mapdata,\n mapState: defaultMapState,\n nuts: [],\n refreshLayer: false,\n above1000CPVs: false,\n stopRetries: false,\n checkboxCPVs: {},\n normalCPVs: {},\n};\n\nexport const useRegisterStore = createWithEqualityFn(\n persist(\n immer((set, get) => ({\n ...initialState,\n // ------------------- INIT ----------------------\n setHasHydrated: (state) => {\n set({\n _hasHydrated: state,\n });\n },\n setCurrentStep: (payload) =>\n set((state) => {\n state.currentStep = payload;\n }),\n // ------------------- CPVs --------------\n setCPVs: (payload) =>\n set((state) => {\n let convertedPayload = {};\n if (Array.isArray(payload)) {\n for (let cpv of payload) {\n convertedPayload[cpv] = true;\n }\n payload = convertedPayload;\n }\n\n state.cpvs = Object.keys(payload).filter((key) => !payload?.[key]?.partialChecked);\n let withPartialCheckedObj = {};\n let withoutPartialCheckedObj = {};\n let hasPartialAttribute = false;\n if (Object.keys(payload).length > 0 && payload[Object.keys(payload)[0]].hasOwnProperty(\"partialChecked\")) {\n hasPartialAttribute = true;\n }\n if (hasPartialAttribute) {\n state.checkboxCPVs = payload;\n for (let cpv of Object.keys(payload)) {\n if (!payload[cpv].partialChecked) {\n withoutPartialCheckedObj[cpv] = true;\n }\n }\n state.normalCPVs = withoutPartialCheckedObj;\n } else {\n for (let cpv of Object.keys(payload)) {\n withPartialCheckedObj[cpv] = { checked: true, partialChecked: false };\n }\n state.checkboxCPVs = withPartialCheckedObj;\n state.normalCPVs = payload;\n }\n }),\n addCPV: (cpv) =>\n set((state) => {\n state.cpvs = [...state.cpvs, cpv];\n state.checkboxCPVs[cpv] = { checked: true, partialChecked: false };\n state.normalCPVs[cpv] = true;\n }),\n deleteCPV: (payload) =>\n set((state) => {\n state.cpvs = state.cpvs.filter((cpv) => cpv !== payload);\n delete state.checkboxCPVs[payload];\n delete state.normalCPVs[payload];\n }),\n setStopRetries: (stopRetries) =>\n set((state) => {\n state.stopRetries = stopRetries;\n }),\n setCPVError: (payload) =>\n set((state) => {\n state.cpvError = payload;\n }),\n setCompanyDescription: (payload) =>\n set((state) => {\n state.companyDescription = payload;\n }),\n setAbove1000CPVs: (payload) =>\n set((state) => {\n state.above1000CPVs = payload;\n }),\n // ------------------------ nuts map ---------------------\n setMetric: (payload) =>\n set((state) => {\n state.metric = payload;\n }),\n setDisplayOption: (payload) =>\n set((state) => {\n state.mapState.displayOption = payload;\n }),\n setLevel: (payload) =>\n set((state) => {\n state.mapState.level = payload;\n }),\n setRefreshMap: (payload) =>\n set((state) => {\n state.mapState.refreshMap = payload;\n }),\n setNUTS: (payload) =>\n set((state) => {\n state.nuts = payload;\n }),\n // ------------------- RESET ------------------------\n resetState: () => {\n set(initialState);\n },\n })),\n {\n partialize: (state) =>\n Object.fromEntries(Object.entries(state).filter(([key]) => ![\"_hasHydrated\"].includes(key))),\n name: \"registerSavedData\",\n storage: createJSONStorage(() => storage),\n version: import.meta.env.VITE_VERSION,\n merge: (persistedState, currentState) => mergeDeepLeft(persistedState, currentState),\n onRehydrateStorage: (state) => {\n // devDebug(\"maps store -> hydration starts, state: \", state);\n return (state, error) => {\n if (error) {\n // devDebug(\"maps store -> an error happened during hydration\", error);\n } else {\n // devDebug(\"maps store -> hydration finished, state: \", state);\n state.setHasHydrated(true);\n }\n };\n },\n }\n ),\n shallow\n);\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\nimport { immer } from \"zustand/middleware/immer\";\n// import devDebug from \"../Helpers/debug\";\n// import { current } from \"immer\";\n// import cloneDeep from \"lodash/cloneDeep\";\n\n// define the initial state\nconst initialState = {\n page: 1,\n pageSize: 10,\n totalPages: null,\n pageInput: false,\n vademecums: [],\n ordering: { id: \"\", desc: undefined, url: \"\" },\n user_email: \"\",\n state: \"REQUIRES_MANUAL_COMPLETION\",\n created_at_after: \"\",\n created_at_before: \"\",\n completed_at_after: \"\",\n completed_at_before: \"\",\n vademecumStatus: \"loading\",\n hiddenColumns: [],\n reRenderInputs: Math.random(),\n createOrEditMode: \"create\",\n templateToBeEdited: {\n id: null,\n name: \"\",\n user: null,\n fields: [],\n },\n selectedTemplateFields: [],\n templateName: \"\",\n selectedTemplate: null,\n refreshVademecumsInterval: null,\n individualFieldStatus: {},\n emailUserModalVisible: false,\n emailSubject: \"\",\n emailBody: \"\",\n uploads: [],\n regenStatus: {},\n XLSXData: \"\",\n regenInterval: null,\n vademecumReceivedModalVisible: false,\n instance: null,\n refreshpdf: Math.random(),\n queryHistoryCallTimestamp: null,\n showQueryHistoryItems: {},\n queryHistoryItemLogStatus: \"loading\",\n queryHistoryItemLogError: \"\",\n queryHistoryItemLog: [],\n queryHistoryItemLogToBeShown: null,\n queryHistoryItemLogModalVisible: false,\n queryHistoryItemLogName: false,\n updateInstance: () => { },\n};\n\nexport const useVademecumStore = createWithEqualityFn(\n immer((set, get) => ({\n ...initialState,\n setQueryHistoryItemLogName: (queryHistoryItemLogName) =>\n set((state) => {\n state.queryHistoryItemLogName = queryHistoryItemLogName;\n }),\n setQueryHistoryItemLogError: (queryHistoryItemLogError) =>\n set((state) => {\n state.queryHistoryItemLogError = queryHistoryItemLogError;\n }),\n\n setQueryHistoryItemLog: (queryHistoryItemLog) =>\n set((state) => {\n state.queryHistoryItemLog = queryHistoryItemLog;\n }),\n setQueryHistoryItemLogStatus: (queryHistoryItemLogStatus) =>\n set((state) => {\n state.queryHistoryItemLogStatus = queryHistoryItemLogStatus;\n }),\n setQueryHistoryItemLogToBeShown: (queryHistoryItemLogToBeShown) =>\n set((state) => {\n state.queryHistoryItemLogToBeShown = queryHistoryItemLogToBeShown;\n }),\n setQueryHistoryItemLogModalVisible: (queryHistoryItemLogModalVisible) =>\n set((state) => {\n state.queryHistoryItemLogModalVisible = queryHistoryItemLogModalVisible;\n }),\n setQueryHistoryItemsStatus: (vademecum, queryKey, status) =>\n set((state) => {\n if (state?.showQueryHistoryItems?.[vademecum]?.[queryKey]) {\n state.showQueryHistoryItems[vademecum][queryKey].status = status;\n } else {\n state.showQueryHistoryItems[vademecum][queryKey] = { show: true, status: status, items: [] };\n }\n }),\n setShowQueryHistoryItems: (vademecum, queryKey) =>\n set((state) => {\n if (state?.showQueryHistoryItems?.[vademecum]?.[queryKey]) {\n state.showQueryHistoryItems[vademecum][queryKey].show = state?.showQueryHistoryItems?.[vademecum]?.[queryKey]\n .show\n ? false\n : true;\n } else {\n state.showQueryHistoryItems[vademecum] = {};\n state.showQueryHistoryItems[vademecum][queryKey] = {\n show: state?.showQueryHistoryItems?.[vademecum]?.[queryKey] ? false : true,\n status: \"loading\",\n items: [],\n };\n }\n }),\n setQueryHistoryCallTimestamp: (queryHistoryCallTimestamp) =>\n set((state) => {\n state.queryHistoryCallTimestamp = queryHistoryCallTimestamp;\n }),\n setQueryHistory: (vademecum, queryKey, items) =>\n set((state) => {\n state.showQueryHistoryItems[vademecum][queryKey].items = items;\n }),\n setInstanceAndUpdateInstance: (instance, updateInstance) =>\n set((state) => {\n state.instance = instance;\n state.updateInstance = updateInstance;\n }),\n refreshPDF: () =>\n set((state) => {\n state.refreshpdf = Math.random();\n }),\n setUsersAssignedToTemplate: (usersAssignedToTemplate) =>\n set((state) => {\n state.templateToBeEdited.users = usersAssignedToTemplate.map((user) => user.value);\n }),\n setVademecumReceivedModalVisible: (vademecumReceivedModalVisible) =>\n set((state) => {\n state.vademecumReceivedModalVisible = vademecumReceivedModalVisible;\n }),\n setRegenStatus: (id, status) =>\n set((state) => {\n state.regenStatus[id] = status;\n }),\n setXLSXData: (XLSXData) =>\n set((state) => {\n state.XLSXData = XLSXData;\n }),\n setRegenInterval: (interval) =>\n set((state) => {\n state.regenInterval = interval;\n }),\n setUploads: (uploads) =>\n set((state) => {\n state.uploads = uploads;\n }),\n addUploads: (uploads) =>\n set((state) => {\n if (uploads.length) {\n for (let upload of uploads) {\n state.uploads.push(upload);\n }\n } else {\n state.uploads.push(uploads);\n }\n }),\n clearEmptyUploads: () =>\n set((state) => {\n state.uploads = state.uploads.filter((upload) => Object.keys(upload).length === 0);\n }),\n removeUpload: (name) =>\n set((state) => {\n state.uploads = state.uploads.filter((u) => u.name !== name);\n }),\n setIndividualFieldStatus: (id, status) =>\n set((state) => {\n state.individualFieldStatus[id] = status;\n }),\n\n setEmailUserModalVisible: (emailUserModalVisible) =>\n set((state) => {\n state.emailUserModalVisible = emailUserModalVisible;\n }),\n\n setEmailSubject: (emailSubject) =>\n set((state) => {\n state.emailSubject = emailSubject;\n }),\n setEmailBody: (emailBody) =>\n set((state) => {\n state.emailBody = emailBody;\n }),\n setRefreshVademecumsInterval: (refreshVademecumsInterval) =>\n set((state) => {\n state.refreshVademecumsInterval = refreshVademecumsInterval;\n }),\n setSelectedTemplate: (selectedTemplate) =>\n set((state) => {\n state.selectedTemplate = selectedTemplate;\n }),\n setSelectedTemplateFields: (selectedTemplateFields) =>\n set((state) => {\n state.templateToBeEdited.fields = selectedTemplateFields;\n }),\n setTemplateName: (templateName) =>\n set((state) => {\n state.templateToBeEdited.name = templateName;\n }),\n setTemplateToBeEdited: (templateToBeEdited) =>\n set((state) => {\n state.templateToBeEdited = templateToBeEdited;\n }),\n setCreateOrEditMode: (createOrEditMode) =>\n set((state) => {\n state.createOrEditMode = createOrEditMode;\n }),\n setPage: (payload) =>\n set((state) => {\n state.page = payload;\n }),\n setUserEmail: (user_email) =>\n set((state) => {\n state.user_email = user_email;\n }),\n setState: (val) =>\n set((state) => {\n state.state = val;\n }),\n setPageSize: (payload) =>\n set((state) => {\n state.pageSize = payload;\n }),\n setTotalPages: (payload) =>\n set((state) => {\n state.totalPages = payload;\n }),\n setPageInput: (payload) =>\n set((state) => {\n state.pageInput = payload;\n }),\n setVademecums: (vademecums) =>\n set((state) => {\n state.vademecums = vademecums;\n }),\n setOrdering: (ordering) =>\n set((state) => {\n state.ordering = ordering;\n }),\n setCreatedAtAfter: (created_at_after) =>\n set((state) => {\n state.created_at_after = created_at_after;\n }),\n setCreatedAtBefore: (created_at_before) =>\n set((state) => {\n state.created_at_before = created_at_before;\n }),\n setCompletedAtAfter: (completed_at_after) =>\n set((state) => {\n state.completed_at_after = completed_at_after;\n }),\n setCompletedAtBefore: (completed_at_before) =>\n set((state) => {\n state.completed_at_before = completed_at_before;\n }),\n setVademecumStatus: (vademecumStatus) =>\n set((state) => {\n state.vademecumStatus = vademecumStatus;\n }),\n setReRenderInputs: () =>\n set((state) => {\n state.reRenderInputs = Math.random();\n }),\n setHiddenColumns: (col) =>\n set((state) => {\n if (!state.hiddenColumns.includes(col.name)) {\n if (col.checked) {\n state.hiddenColumns.push(col.name);\n }\n } else {\n if (!col.checked) {\n state.hiddenColumns = state.hiddenColumns.filter((c) => c !== col.name);\n }\n }\n }),\n resetState: () => {\n set(initialState);\n },\n })),\n shallow\n);\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\n// import { immer } from \"zustand/middleware/immer\";\nimport { persist, createJSONStorage } from \"zustand/middleware\";\nimport { immer } from \"zustand/middleware/immer\";\nimport { mergeDeepLeft } from \"ramda\";\nimport devDebug from \"../Helpers/debug\";\nimport { get, set, del } from \"idb-keyval\"; // can use anything: IndexedDB, Ionic Storage, etc.\nimport dayjs from \"dayjs\";\n\nconst storage = {\n getItem: async (name) => {\n //devDebug(name, \"has been retrieved\");\n return (await get(name)) || null;\n },\n setItem: async (name, value) => {\n //devDebug(name, \"with value\", value, \"has been saved\");\n await set(name, value);\n },\n removeItem: async (name) => {\n //devDebug(name, \"has been deleted\");\n await del(name);\n },\n};\n\nconst initialState = {\n tasks: {\n tenderCreate: {},\n tenderAutoConfirm: {},\n editTenderFieldRegenerate: {},\n vademecumFieldRegenerate: {},\n },\n intervals: {\n tenderCreate: {},\n tenderAutoConfirm: {},\n editTenderFieldRegenerate: {},\n vademecumFieldRegenerate: {},\n },\n};\n\nexport const useTaskManagementStore = createWithEqualityFn(\n persist(\n immer((set, get) => ({\n ...initialState,\n setHasHydrated: (state) => {\n set({\n _hasHydrated: state,\n });\n },\n\n // ------------------------- TASKS -------------------------\n\n setTask: (\n type,\n id, //id here could be tender ID or vademecum ID\n task,\n fieldName //only used when it's a specific field on edit_tender or vademecum\n ) =>\n set((state) => {\n if (fieldName) {\n if (!state?.tasks?.[type]?.[id]) {\n state.tasks[type][id] = {};\n }\n state.tasks[type][id][fieldName] = task;\n } else {\n state.tasks[type][id] = task; //id here could be tender ID or vademecum ID\n }\n }),\n deleteTask: (\n type,\n id, //id here could be tender ID or vademecum ID\n fieldName //only used when it's a specific field on edit_tender or vademecum\n ) =>\n set((state) => {\n if (fieldName) {\n delete state.tasks[type][id][fieldName];\n } else {\n delete state.tasks[type][id]; //id here could be tender ID or vademecum ID\n }\n }),\n setTaskInterval: (\n type,\n id, //id here could be tender ID or vademecum ID\n interval,\n fieldName //only used when it's a specific field on edit_tender or vademecum\n ) =>\n set((state) => {\n devDebug(\"setting interval: \", interval, \" with fieldName: \", fieldName, \" and id: \", id, \" of type: \", type);\n if (fieldName) {\n if (!state?.intervals?.[type]?.[id]) {\n state.intervals[type][id] = {};\n }\n state.intervals[type][id][fieldName] = { intervalID: interval, timestamp: dayjs() };\n } else {\n state.intervals[type][id] = { intervalID: interval, timestamp: dayjs() }; //id here could be tender ID or vademecum ID\n }\n }),\n deleteTaskInterval: (\n type,\n id, //id here could be tender ID or vademecum ID\n fieldName //only used when it's a specific field on edit_tender or vademecum\n ) =>\n set((state) => {\n if (fieldName) {\n if (state?.intervals?.[type]?.[id]?.[fieldName]) {\n delete state.intervals[type][id][fieldName]; //id here could be tender ID or vademecum ID\n }\n } else {\n if (state?.intervals?.[type]?.[id]) {\n delete state.intervals[type][id]; //id here could be tender ID or vademecum ID\n }\n }\n }),\n\n resetState: () => set(initialState),\n })),\n {\n partialize: (state) =>\n Object.fromEntries(Object.entries(state).filter(([key]) => ![\"_hasHydrated\"].includes(key))),\n name: \"taskManagement\",\n storage: createJSONStorage(() => storage),\n version: import.meta.env.VITE_VERSION,\n merge: (persistedState, currentState) => mergeDeepLeft(persistedState, currentState),\n onRehydrateStorage: (state) => {\n // devDebug(\"tender search store -> hydration starts, state: \", state);\n return (state, error) => {\n if (error) {\n // devDebug(\n // \"tender search store -> an error happened during hydration\",\n // error\n // );\n } else {\n // devDebug(\"tender search store -> hydration finished, state: \", state);\n state.setHasHydrated(true);\n }\n };\n },\n }\n ),\n shallow\n);\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\nimport { persist, } from \"zustand/middleware\";\nimport { immer } from \"zustand/middleware/immer\";\nimport { defaultTabs } from \"../Services/strategies/strategyConstants\";\n// import devDebug from \"../Helpers/debug\";\n\n// define the initial state\nconst initialState = {\n _hasHydrated: false,\n currentTab: defaultTabs,\n firstTime: false,\n accessToken: null,\n refreshToken: null,\n reloadedOnce: false,\n user: null,\n reloadAfterStripe: false,\n jwtRefreshed: false,\n strategiesNeverRequested: true,\n};\n\nexport const useAuthStore = createWithEqualityFn(\n persist(\n immer((set, get) => ({\n ...initialState,\n setHasHydrated: (hasHydrated) => {\n set((state) => {\n state._hasHydrated = hasHydrated;\n })\n },\n setStrategiesNeverRequested: (strategiesNeverRequested) => {\n set((state) => {\n state.strategiesNeverRequested = strategiesNeverRequested;\n })\n },\n setJWTRefreshed: (jwtRefreshed) => {\n set((state) => {\n state.jwtRefreshed = jwtRefreshed;\n })\n },\n setReloadAfterStripe: (reloadAfterStripe) => {\n set((state) => {\n state.reloadAfterStripe = reloadAfterStripe;\n })\n },\n setUser: (user) => {\n set((state) => {\n state.user = user;\n })\n },\n setReloadedOnce: (reloadedOnce) => {\n set((state) => {\n state.reloadedOnce = reloadedOnce;\n })\n },\n setFirstTime: (firstTime) => {\n set((state) => {\n state.firstTime = firstTime;\n })\n },\n setAccessToken: (accessToken) => {\n set((state) => {\n state.accessToken = accessToken;\n })\n },\n setRefreshToken: (refreshToken) => {\n set((state) => {\n state.refreshToken = refreshToken;\n })\n },\n setTabID: (section, id) =>\n set((state) => {\n state.currentTab[section] = `${id}`;\n }),\n resetState: () => {\n window.location.reload();\n set(initialState);\n },\n })),\n {\n partialize: (state) =>\n Object.fromEntries(\n Object.entries(state).filter(\n ([key]) => ![\"_hasHydrated\", \"jwtRefreshed\"].includes(key)\n )\n ),\n name: \"authStore\",\n version: import.meta.env.VITE_LOGIN_DETAILS_KEY,\n onRehydrateStorage: (state) => {\n // devDebug(\"authStore -> hydration starts, state: \", state);\n return (state, error) => {\n if (error) {\n // devDebug(\"authStore -> an error happened during hydration\", error);\n } else {\n // devDebug(\"authStore -> hydration finished, state: \", state);\n state.setHasHydrated(true);\n }\n };\n },\n }\n ),\n shallow\n);\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\n// import { immer } from \"zustand/middleware/immer\";\n// import { current } from \"immer\";\nimport { persist, createJSONStorage } from \"zustand/middleware\";\nimport { immer } from \"zustand/middleware/immer\";\nimport { mergeDeepLeft } from \"ramda\";\nimport devDebug from \"../Helpers/debug\";\nimport { get, set, del } from \"idb-keyval\"; // can use anything: IndexedDB, Ionic Storage, etc.\nimport dayjs from \"dayjs\";\n\nconst storage = {\n getItem: async (name) => {\n //devDebug(name, \"has been retrieved\");\n return (await get(name)) || null;\n },\n setItem: async (name, value) => {\n //devDebug(name, \"with value\", value, \"has been saved\");\n await set(name, value);\n },\n removeItem: async (name) => {\n //devDebug(name, \"has been deleted\");\n await del(name);\n },\n};\n\n\nconst initialState = {\n _hasHydrated: false,\n alboFornitoriFilters: {\n \"id\": \"\",\n \"search\": \"\",\n \"title\": \"\",\n \"platform_id\": \"\",\n \"tendering_authority\": \"\",\n \"url\": \"\",\n \"short_description\": \"\",\n \"min_value\": \"\",\n \"max_value\": \"\",\n \"closing_date_start\": dayjs().format(\"YYYY-MM-DD\"),\n \"closing_date_end\": \"\",\n \"publication_date_start\": \"\",\n \"publication_date_end\": \"\",\n \"nuts\": \"\",\n \"cpvs\": \"\",\n \"soa_categories\": \"\",\n \"nuts_code\": \"\",\n \"page\": 1,\n \"page_size\": 10,\n \"ordering\": \"-publication_date\",\n },\n alboFornitoriStatus: \"loading\",\n alboFornitoriColumns: [],\n alboFornitori: [],\n alboFornitoriFull: {\n total_pages: 1,\n results: [],\n },\n alboFornitoriViewMode: \"table\",\n alboFornitoriOrderingTable: { id: \"publication_date\", desc: \"true\" },\n randomReinit: 0,\n currentController: null,\n alboFornitoriFilterModalVisible: false,\n currentTab: {}, //this is in alboFornitoriStore (which is persisted) instead of viewSupplierListNoticeStore, because the latter is not persisted\n};\n\nexport const useAlboFornitoriStore = createWithEqualityFn(\n persist(\n immer((set, get) => ({\n ...initialState,\n setHasHydrated: (state) => {\n set({\n _hasHydrated: state,\n });\n },\n setCurrentTab: (supplierListNoticeID, currentTab) => //this is in alboFornitoriStore (which is persisted) instead of viewSupplierListNoticeStore, because the latter is not persisted\n set((state) => { //the tab position is saved against each supplier list notice ID specifically. The components relying on this do a null-check to see if the ID exists and set tab to 0 if not\n state.currentTab[supplierListNoticeID] = currentTab;\n }),\n toggleAlboFornitoriColumn: (col) =>\n set((state) => {\n if (state.alboFornitoriColumns.includes(col)) {\n state.alboFornitoriColumns = state.alboFornitoriColumns.filter(column => column !== col)\n } else {\n state.alboFornitoriColumns.push(col)\n }\n }),\n resetAlboFornitoriFilters: () =>\n set((state) => {\n state.alboFornitoriFilters = {\n \"id\": \"\",\n \"search\": \"\",\n \"title\": \"\",\n \"platform_id\": \"\",\n \"tendering_authority\": \"\",\n \"url\": \"\",\n \"short_description\": \"\",\n \"estimated_total_value\": \"\",\n \"closing_date_start\": dayjs().format(\"YYYY-MM-DD\"),\n \"closing_date_end\": \"\",\n \"nuts\": \"\",\n \"cpvs\": \"\",\n \"soa_categories\": \"\",\n \"nuts_code\": \"\",\n }\n }),\n setAlboFornitoriFilterModalVisible: (alboFornitoriFilterModalVisible) =>\n set((state) => {\n state.alboFornitoriFilterModalVisible = alboFornitoriFilterModalVisible\n }),\n\n setAlboFornitoriFilters: (field, value) =>\n set((state) => {\n devDebug(`alboFornitoriStore -> setAlboFornitoriFilters -> Setting filter ${field} to ${value}`);\n state.alboFornitoriFilters[field] = value\n }),\n setAlboFornitoriViewMode: (alboFornitoriViewMode) =>\n set((state) => {\n state.alboFornitoriViewMode = alboFornitoriViewMode;\n }),\n setAlboFornitoriOrderingTable: (alboFornitoriOrderingTable) =>\n set((state) => {\n state.alboFornitoriOrderingTable = alboFornitoriOrderingTable;\n }),\n setAlboFornitoriStatus: (alboFornitoriStatus) =>\n set((state) => {\n state.alboFornitoriStatus = alboFornitoriStatus;\n }),\n setCurrentController: (currentController) =>\n set((state) => {\n state.currentController = currentController;\n }),\n setAlboFornitori: (alboFornitori) =>\n set((state) => {\n state.alboFornitoriFull = alboFornitori;\n state.alboFornitori = alboFornitori.results;\n }),\n setRandomReinit: () =>\n set((state) => {\n state.randomReinit = Math.random();\n }),\n resetState: () => set(initialState),\n })),\n {\n partialize: (state) =>\n Object.fromEntries(\n Object.entries(state).filter(\n ([key]) =>\n ![\"_hasHydrated\", \"currentController\"].includes(\n key\n )\n )\n ),\n name: \"alboFornitoriStore\",\n storage: createJSONStorage(() => storage),\n version: import.meta.env.VITE_VERSION,\n merge: (persistedState, currentState) => mergeDeepLeft(persistedState, currentState),\n onRehydrateStorage: (state) => {\n // devDebug(\"tender search store -> hydration starts, state: \", state);\n return (state, error) => {\n if (error) {\n // devDebug(\n // \"tender search store -> an error happened during hydration\",\n // error\n // );\n } else {\n // devDebug(\"tender search store -> hydration finished, state: \", state);\n state.setHasHydrated(true);\n }\n };\n },\n }\n ),\n shallow\n);\n","import { createWithEqualityFn } from \"zustand/traditional\";\nimport { shallow } from \"zustand/shallow\";\nimport { immer } from \"zustand/middleware/immer\";\nimport cloneDeep from \"lodash/cloneDeep\";\nimport dayjs from \"dayjs\";\nimport devDebug from \"../Helpers/debug\";\nimport i18n from \"../i18n\";\n// import { current } from \"immer\";\n\nexport const defaultSupplierListNotice = {\n id: 0,\n};\n\n// define the initial state\nconst initialState = {\n supplierListNotice: null,\n averageDiscountForCPV: 0,\n supplierListNoticeStatus: \"loading\",\n supplierListNoticeError: \"\",\n submitting: false,\n errors: {},\n inputRefresh: Math.random(),\n currentLang: i18n.language.slice(0, 2),\n checkboxCPVs: {},\n normalCPVs: {},\n attachments: [],\n attachmentsStatus: \"loading\",\n attachmentsError: \"\",\n editAttachmentModalVisible: false,\n attachmentMode: \"add\",\n attachmentToBeEdited: null,\n soa_categories: [],\n soa_category_labels: [],\n tenderingAuthorityForInputDisplayOnly: \"\",\n converting: false,\n conversionError: \"\",\n};\n\nexport const useViewSupplierListNotice = createWithEqualityFn(\n immer((set, get) => ({\n ...initialState,\n // ------------------- ALBO CONVERSIONS ----------------------\n\n setConverting: (converting) =>\n set((state) => {\n state.converting = converting;\n }),\n setConversionError: (conversionError) =>\n set((state) => {\n state.conversionError = conversionError;\n }),\n\n // ------------------- TENDERING AUTHORITIES ----------------------\n\n setTenderingAuthorityForInputDisplayOnly: (ta) =>\n set((state) => {\n state.tenderingAuthorityForInputDisplayOnly = ta;\n }),\n setTenderingAuthority: (ta) =>\n set((state) => {\n state.supplierListNotice.tendering_authority = ta.value;\n state.supplierListNotice.tendering_authority_name = ta.label;\n }),\n\n // ------------------- SOA ----------------------\n addSOACategory: (payload) =>\n set((state) => {\n if (!state.supplierListNotice.soa_categories.includes(payload.code)) {\n state.supplierListNotice.soa_categories = [...state.supplierListNotice.soa_categories, payload.code];\n }\n let included = false;\n for (let cat of state.supplierListNotice.soa_category_labels) {\n if (cat.code === payload.code) {\n included = true;\n }\n }\n if (!included) {\n state.supplierListNotice.soa_category_labels = [...state.supplierListNotice.soa_category_labels, payload];\n }\n }),\n removeSOACategory: (payload) =>\n set((state) => {\n state.supplierListNotice.soa_categories = state.supplierListNotice.soa_categories.filter((soa) => soa !== payload.code);\n state.supplierListNotice.soa_category_labels = state.supplierListNotice.soa_category_labels.filter((soa) => soa.code !== payload.code);\n }),\n // ------------------- ATTACHMENTS --------------\n setAttachments: (attachments) =>\n set((state) => {\n state.attachments = attachments;\n }),\n setAttachmentsStatus: (attachmentsStatus) =>\n set((state) => {\n state.attachmentsStatus = attachmentsStatus;\n }),\n setAttachmentsError: (attachmentsError) =>\n set((state) => {\n state.attachmentsError = attachmentsError;\n }),\n setEditAttachmentModalVisible: (payload) =>\n set((state) => {\n state.editAttachmentModalVisible = payload;\n }),\n setAttachmentMode: (attachmentMode) =>\n set((state) => {\n state.attachmentMode = attachmentMode;\n }),\n changeAttachmentAttribute: (name, value) =>\n set((state) => {\n state.attachmentToBeEdited[name] = value;\n }),\n setAttachment: (attachment) =>\n set((state) => {\n state.tender.attachment[Math.random()] = attachment;\n }),\n setAttachmentToBeEdited: (attachmentToBeEdited) =>\n set((state) => {\n state.attachmentToBeEdited = attachmentToBeEdited;\n }),\n // ------------------- CPVs --------------\n setCPVs: (payload) =>\n set((state) => {\n let convertedPayload = {};\n if (Array.isArray(payload)) {\n for (let cpv of payload) {\n convertedPayload[cpv] = true;\n }\n payload = convertedPayload;\n }\n\n state.supplierListNotice.cpvs = Object.keys(payload).filter((key) => !payload?.[key]?.partialChecked);\n let withPartialCheckedObj = {};\n let withoutPartialCheckedObj = {};\n let hasPartialAttribute = false;\n if (Object.keys(payload).length > 0 && payload[Object.keys(payload)[0]].hasOwnProperty(\"partialChecked\")) {\n hasPartialAttribute = true;\n }\n if (hasPartialAttribute) {\n state.checkboxCPVs = payload;\n for (let cpv of Object.keys(payload)) {\n if (!payload[cpv].partialChecked) {\n withoutPartialCheckedObj[cpv] = true;\n }\n }\n state.normalCPVs = withoutPartialCheckedObj;\n } else {\n for (let cpv of Object.keys(payload)) {\n withPartialCheckedObj[cpv] = { checked: true, partialChecked: false };\n }\n state.checkboxCPVs = withPartialCheckedObj;\n state.normalCPVs = payload;\n }\n }),\n deleteCPV: (payload) =>\n set((state) => {\n state.supplierListNotice.cpvs = state.supplierListNotice.cpvs.filter((cpv) => cpv !== payload);\n delete state.checkboxCPVs[payload];\n delete state.normalCPVs[payload];\n }),\n // ------------------------------ INPUTS ---------------------------------\n setErrors: (errors) =>\n set((state) => {\n state.errors = errors;\n }),\n setCurrentLang: (currentLang) =>\n set((state) => {\n state.currentLang = currentLang;\n }),\n setInputRefresh: () =>\n set((state) => {\n state.inputRefresh = Math.random();\n }),\n setSubmitting: (submitting) =>\n set((state) => {\n state.submitting = submitting;\n }),\n setSupplierListNotice: (supplierListNotice) =>\n set((state) => {\n state.supplierListNotice = supplierListNotice;\n state.tenderingAuthorityForInputDisplayOnly = supplierListNotice?.tendering_authority_name || \"\"; //needed for pre-populating TA search input\n\n }),\n setSupplierListNoticeValue: (e) =>\n set((state) => {\n let value;\n if (e.target.value === \"true\" || e.target.value === \"false\") {\n if (e.target.value === \"true\") {\n value = true;\n } else {\n value = false;\n }\n } else {\n value = e.target.value;\n }\n if (e.target.lang) {\n if (e.target.lang === \"og\") {\n e.target.lang = state.supplierListNotice.original_language;\n }\n if (state.supplierListNotice.translations[e.target.lang]) {\n state.supplierListNotice.translations[e.target.lang][e.target.name] = value;\n } else {\n state.supplierListNotice.translations[e.target.lang] = {\n title: \"\",\n };\n state.supplierListNotice.translations[e.target.lang][e.target.name] = value;\n }\n } else {\n state.supplierListNotice[e.target.name] = value;\n }\n }),\n setSupplierListNoticeError: (supplierListNoticeError) =>\n set((state) => {\n state.supplierListNoticeError = supplierListNoticeError;\n }),\n setSupplierListNoticeStatus: (supplierListNoticeStatus) =>\n set((state) => {\n state.supplierListNoticeStatus = supplierListNoticeStatus;\n }),\n resetState: () => {\n set(initialState);\n },\n })),\n shallow\n);\n","import React from \"react\";\nimport dayjs from \"dayjs\";\nimport i18n from \"i18next\";\nimport { useLocation, Navigate } from \"react-router-dom\";\nimport axios from \"axios\";\nimport devDebug from \"../Helpers/debug\";\nimport { useTenderStrategyStore } from \"../Stores/tenderStrategyStore\";\nimport { Button } from \"reactstrap\";\nimport TendersClubLogo from \"../Components/tendersClubLogo\";\nimport { useNavigate } from \"react-router-dom\";\nimport ScreenSpinner from \"../Components/ScreenSpinner\";\nimport { useDefaultStrategyStore } from \"../Stores/defaultStrategyStore\";\nimport { useComponentsStore } from \"../Stores/componentsStore\";\nimport { useTenderAwardsSearchStore } from \"../Stores/tenderAwardsSearch\";\nimport { useMapsStore } from \"../Stores/mapsStore\";\nimport { useDashboardStore } from \"../Stores/dashboardStore\";\nimport { useTabStore } from \"../Stores/tabStore\";\nimport { useTenderAwardsStore } from \"../Stores/tenderAwardsStore\";\nimport { useTenderSearchStore } from \"../Stores/tenderSearch\";\nimport { useCPVStore } from \"../Stores/cpvStore\";\nimport { useListUsersStore } from \"../Stores/listUsersStore\";\nimport { useCompaniesSearchStore } from \"../Stores/companiesSearchStore\";\nimport { useRegisterStore } from \"../Stores/registerStore\";\nimport { useVademecumStore } from \"../Stores/vademecumStore\";\nimport { useTaskManagementStore } from \"../Stores/taskManagementStore\";\nimport { useAuthStore } from \"../Stores/authStore\";\nimport { useAlboFornitoriStore } from \"../Stores/alboFornitoriStore\";\nimport { useViewSupplierListNotice } from \"../Stores/viewSupplierListNoticeStore\";\n\nconst tenderSearchAdminTabKey = `${import.meta.env.VITE_TENDER_SEARCH_TAB_ADMIN_KEY}_${import.meta.env.VITE_VERSION}`;\nconst tenderSearchTabKey = `${import.meta.env.VITE_TENDER_SEARCH_TAB_KEY}_${import.meta.env.VITE_VERSION}`;\nconst dashboardTabKey = `${import.meta.env.VITE_DASHBOARD_TAB_KEY}_${import.meta.env.VITE_VERSION}`;\nconst tenderSearchTableSettingsAdminKey = `${import.meta.env.VITE_TENDER_SEARCH_TABLE_ADMIN_SETTINGS_KEY}_${\n import.meta.env.VITE_VERSION\n}`;\nconst tenderSearchTabAdminKey = `${import.meta.env.VITE_TENDER_SEARCH_TAB_ADMIN_KEY}_${import.meta.env.VITE_VERSION}`;\nconst tenderSearchTableSettingsKey = `${import.meta.env.VITE_TENDER_SEARCH_TABLE_SETTINGS_KEY}_${\n import.meta.env.VITE_VERSION\n}`;\nconst tenderAwardsSearchTableSettingsKey = `${import.meta.env.VITE_AWARDS_SEARCH_TABLE_SETTINGS_KEY}_${\n import.meta.env.VITE_VERSION\n}`;\nconst colourSchemeKey = `${import.meta.env.VITE_COLOR_SCHEME_KEY}_${import.meta.env.VITE_VERSION}`;\nconst viewTenderTabStateKey = `${import.meta.env.VITE_VIEW_TENDER_TAB_STATE_KEY}_${import.meta.env.VITE_VERSION}`;\nconst CPVWeightLocalStorageKey = `${import.meta.env.VITE_VIEW_TENDER_ANALYTICS_CPV_WEIGHT_KEY}_${\n import.meta.env.VITE_VERSION\n}`;\nconst NUTWeightLocalStorageKey = `${import.meta.env.VITE_VIEW_TENDER_ANALYTICS_NUTS_WEIGHT_KEY}_${\n import.meta.env.VITE_VERSION\n}`;\n\nlet AuthContext = React.createContext();\nexport function useAuth() {\n return React.useContext(AuthContext);\n}\n// axios.defaults.withCredentials = false;\n// axios.defaults.credentials = \"omit\";\naxios.defaults.baseURL = `${import.meta.env.VITE_BASEURL}/`;\n\nconst api = axios.create({\n baseURL: `${import.meta.env.VITE_BASEURL}/`,\n});\n\nconst authService = {\n isAuthenticated: false,\n signin(callback) {\n authService.isAuthenticated = true;\n setTimeout(callback, 100);\n },\n // signout(callback) {\n // authService.isAuthenticated = false;\n // setTimeout(callback, 100);\n // },\n};\n\nconst apiService = {\n //url -> the endpoint\n //signal -> for request cancellation / interruption if navigating away\n //successFn -> whatever needs to happen on success, gets resp & data object\n //errAlertFn -> the hook from alerter context to show errors\n //errMsg -> the message to include for the alerter\n //errFn -> wrap-up function to execute on error, gets data object\n //data -> the data object, can be anything, used for payloads also\n axiosGET(url, signal, successFn, errAlertFn, errMsg, errFn, data) {\n api.defaults.headers.common[\"Authorization\"] = `JWT ${useAuthStore.getState().accessToken}`;\n api\n .get(url, {\n signal: signal,\n })\n .then((resp) => {\n successFn(resp.data, data);\n })\n .catch(function (err) {\n const canceled = errAlertFn(errMsg, err, data.section ? data.section : null, data.suppressError);\n if (errFn) {\n if (!canceled) {\n errFn(err, data);\n }\n }\n });\n },\n axiosUnauthGET(url, signal, successFn, errAlertFn, errMsg, errFn, data) {\n axios\n .get(url, {\n signal: signal,\n })\n .then((resp) => {\n successFn(resp.data, data);\n })\n .catch(function (err) {\n const canceled = errAlertFn(errMsg, err, data.section ? data.section : null, data.suppressError);\n if (errFn) {\n if (!canceled) {\n errFn(err, data);\n }\n }\n });\n },\n axiosUnauthPOST(url, signal, successFn, errAlertFn, errMsg, errFn, data) {\n axios\n .post(url, data.payload, {\n signal: signal,\n })\n .then((resp) => {\n successFn(resp.data, data);\n })\n .catch(function (err) {\n const canceled = errAlertFn(errMsg, err, data.section ? data.section : null, data.suppressError);\n if (errFn) {\n if (!canceled) {\n errFn(err, data);\n }\n }\n });\n },\n axiosPOST(url, signal, successFn, errAlertFn, errMsg, errFn, data) {\n api\n .post(url, data.payload, {\n signal: signal,\n })\n .then((resp) => {\n successFn(resp.data, data);\n })\n .catch(function (err) {\n const canceled = errAlertFn(errMsg, err, data.section ? data.section : null, data.suppressError);\n if (errFn) {\n if (!canceled) {\n errFn(err, data);\n }\n }\n });\n },\n axiosPOSTFormData(url, signal, successFn, errAlertFn, errMsg, errFn, data) {\n api\n .post(url, data.formData, {\n signal: signal,\n })\n .then((resp) => {\n successFn(resp.data, data);\n })\n .catch(function (err) {\n const canceled = errAlertFn(errMsg, err, data.section ? data.section : null, data.suppressError);\n if (errFn) {\n if (!canceled) {\n errFn(err, data);\n }\n }\n });\n },\n axiosPATCHFormData(url, signal, successFn, errAlertFn, errMsg, errFn, data) {\n api\n .patch(url, data.formData, {\n signal: signal,\n })\n .then((resp) => {\n successFn(resp.data, data);\n })\n .catch(function (err) {\n const canceled = errAlertFn(errMsg, err, data.section ? data.section : null, data.suppressError);\n if (errFn) {\n if (!canceled) {\n errFn(err, data);\n }\n }\n });\n },\n axiosPATCH(url, signal, successFn, errAlertFn, errMsg, errFn, data) {\n api\n .patch(url, data.payload, {\n signal: signal,\n })\n .then((resp) => {\n successFn(resp.data, data);\n })\n .catch(function (err) {\n const canceled = errAlertFn(errMsg, err, data.section ? data.section : null, data.suppressError);\n if (errFn) {\n if (!canceled) {\n errFn(err, data);\n }\n }\n });\n },\n axiosDELETE(url, signal, successFn, errAlertFn, errMsg, errFn, data) {\n api\n .delete(url, data.payload, {\n signal: signal,\n })\n .then((resp) => {\n successFn(resp.data, data);\n })\n .catch(function (err) {\n const canceled = errAlertFn(errMsg, err, data.section ? data.section : null, data.suppressError);\n if (errFn) {\n if (!canceled) {\n errFn(err, data);\n }\n }\n });\n },\n axiosOPTIONS(url, signal, successFn, errAlertFn, errMsg, errFn, data) {\n api\n .options(url, data.payload, {\n signal: signal,\n })\n .then((resp) => {\n successFn(resp.data, data);\n })\n .catch(function (err) {\n const canceled = errAlertFn(errMsg, err, data.section ? data.section : null, data.suppressError);\n if (errFn) {\n if (!canceled) {\n errFn(err, data);\n }\n }\n });\n },\n};\n\nexport const removeAllLocalState = (removeAuth) => {\n devDebug(\"logout -> setting unsaved strategy to 0, removeAuth is: \", removeAuth);\n\n if (removeAuth) {\n useAuthStore.getState().resetState();\n } else {\n devDebug(\"not removing auth information\");\n }\n\n useAlboFornitoriStore.getState().resetState();\n useCompaniesSearchStore.getState().resetState();\n // useComponentsStore.getState().resetState();\n useCPVStore.getState().resetState();\n useDashboardStore.getState().resetState();\n useDefaultStrategyStore.getState().resetState();\n useListUsersStore.getState().resetState();\n useMapsStore.getState().resetState();\n useRegisterStore.getState().resetState();\n useTabStore.getState().resetState();\n useTaskManagementStore.getState().resetState();\n useTenderAwardsSearchStore.getState().resetState();\n useTenderAwardsStore.getState().resetState();\n useTenderSearchStore.getState().resetState();\n useTenderStrategyStore.getState().resetState();\n useVademecumStore.getState().resetState();\n useViewSupplierListNotice.getState().resetState();\n localStorage.removeItem(colourSchemeKey);\n localStorage.removeItem(dashboardTabKey);\n localStorage.removeItem(tenderSearchAdminTabKey);\n localStorage.removeItem(tenderSearchTabKey);\n localStorage.removeItem(tenderSearchTableSettingsAdminKey);\n localStorage.removeItem(tenderSearchTabAdminKey);\n localStorage.removeItem(tenderSearchTableSettingsKey);\n localStorage.removeItem(tenderAwardsSearchTableSettingsKey);\n localStorage.removeItem(viewTenderTabStateKey);\n localStorage.removeItem(CPVWeightLocalStorageKey);\n localStorage.removeItem(NUTWeightLocalStorageKey);\n\n for (var i = 1; i < 99999; i++) {\n window.clearInterval(i);\n }\n};\n\nexport function AuthProvider({ children }) {\n let [alert, setAlert] = React.useState({});\n let [unauthorised, setUnauthorised] = React.useState(false);\n let [forbidden, setForbidden] = React.useState(false);\n let [showAlert, setShowAlert] = React.useState(false);\n const [isDark] = useComponentsStore((state) => [state.isDark]);\n const navigate = useNavigate();\n\n const [jwtRefreshed] = useAuthStore((state) => [state.jwtRefreshed]);\n\n let accessTokenTimeoutID;\n\n const signout = () => {\n navigate(`/${i18n.language.slice(0, 2)}/login`);\n setTimeout(() => {\n stopAccessTokenTimer();\n removeAllLocalState(true); //true means auth data also gets deleted\n }, [100]);\n };\n\n const startAccessTokenTimer = () => {\n const setJWTRefreshed = useAuthStore.getState().setJWTRefreshed;\n\n if (!useAuthStore.getState().accessToken) {\n devDebug(\"Auth -> No tokens found, returning\");\n signout();\n clearCookies();\n window.location.replace(`/${i18n.language.slice(0, 2)}/login`);\n return;\n }\n\n const jwtToken = JSON.parse(window.atob(useAuthStore.getState().accessToken.split(\".\")[1]));\n\n let expiry = dayjs.unix(jwtToken.exp);\n let now = dayjs();\n let secondsUntilExpiry = expiry.diff(now, \"seconds\");\n devDebug(\"secondsUntilExpiry: \", secondsUntilExpiry);\n //let secondsUntilRefresh = 240;\n let secondsUntilRefresh = 30;\n\n let secondsLeftUntilRefreshNeeded = (secondsUntilRefresh - secondsUntilExpiry) * -1;\n\n devDebug(\"secondsLeftUntilRefreshNeeded: \", secondsLeftUntilRefreshNeeded);\n\n if (secondsLeftUntilRefreshNeeded < 120) {\n devDebug(\"Auth -> Token expired, refreshing\");\n getAccessToken();\n } else {\n devDebug(\n `Auth -> accessTokenSuccess -> Setting JWT refreshed to true, as token is still valid for another ${secondsLeftUntilRefreshNeeded} seconds`\n );\n api.defaults.headers.common[\"Authorization\"] = `JWT ${useAuthStore.getState().accessToken}`;\n setJWTRefreshed(true);\n accessTokenTimeoutID = setTimeout(getAccessToken, secondsLeftUntilRefreshNeeded * 1000);\n }\n };\n\n const getAccessTokenSuccess = (resp) => {\n //optional data attribute available\n const setJWTRefreshed = useAuthStore.getState().setJWTRefreshed;\n useAuthStore.getState().setAccessToken(resp.access);\n useAuthStore.getState().setRefreshToken(resp.refresh);\n startAccessTokenTimer();\n devDebug(\"Auth -> getAccessTokenSuccess -> Setting JWT refreshed to true, with token: \", resp.access);\n setJWTRefreshed(true);\n };\n const getAccessTokenError = () => {\n const setJWTRefreshed = useAuthStore.getState().setJWTRefreshed;\n devDebug(\"Auth -> There was an error getting the access token, setting refreshed to true\");\n setJWTRefreshed(true);\n };\n\n const newErrorHandler = (msg, err, section, suppressError) => {\n devDebug(`Alerter -> Error Handler invoked ${section ? `for ${section}` : \"\"}`);\n if (err.name === \"CanceledError\") {\n devDebug(\"Alerter -> Request was cancelled: \" + msg);\n return true;\n } else {\n if (err.response) {\n // The request was made and the server responded with a status code\n // that falls out of the range of 2xx\n devDebug(`Alerter -> Error with response received, msg: ${JSON.stringify(msg)}`);\n devDebug(`Alerter -> data: ${JSON.stringify(err.response.data)}`);\n devDebug(`Alerter -> data: ${JSON.stringify(err.response.data)}`);\n devDebug(`Alerter -> status: ${JSON.stringify(err.response.status)}`);\n devDebug(`Alerter -> headers: ${JSON.stringify(err.response.headers)}`);\n\n // err.response.data.detail = err.response.data.detail === \"Given token not valid for any token type\"\n // ? t(\"You are not authorised to view this page\")\n // : e,\n\n if (err.response.status === 401) {\n removeAllLocalState(true); //true means auth data also gets deleted\n if (!window.location.toString().includes(\"login\")) {\n window.location.replace(\"/login\");\n return;\n }\n }\n\n if (err.response.status === 403) {\n setForbidden(true);\n }\n\n if (err.response.status === suppressError) {\n devDebug(\"Alerter -> suppressing error: \", suppressError);\n return;\n }\n\n let errStr = \"\";\n if (typeof err.response.data === \"object\") {\n errorString(err.response.data);\n function errorString(errObj) {\n for (let key of Object.keys(errObj)) {\n if (typeof errObj[key] === \"string\") {\n errStr += errObj[key];\n } else if (Array.isArray(errObj[key])) {\n for (let e of errObj[key]) {\n errStr += `${key}: ${e} | `;\n }\n } else {\n errorString(errObj[key]);\n }\n }\n }\n errStr = errStr.slice(0, -2);\n } else {\n errStr = err.response.data.toString();\n if (errStr.length > 150) {\n errStr = `${errStr.substring(0, 150)}...`;\n }\n if (errStr.includes(\"\")) {\n errStr = i18n.t(\"Resource not found\");\n }\n }\n\n show({\n message: i18n.t(msg, {\n error: errStr,\n }),\n type: \"alert_warning\",\n });\n } else if (err.request) {\n devDebug(`Alerter -> Error in request: No / incomplete data from server received, err: ${err}`);\n show({\n message: i18n.t(\"There was a connection error\"),\n type: \"alert_warning\",\n });\n } else {\n devDebug(`Alerter -> Unhandled exception, msg: ${msg}, error: ${err.toString() ? err.toString() : err}`);\n if (typeof err === \"object\") {\n let errStr = err.toString();\n if (errStr.length > 150) {\n errStr = `${errStr.substring(0, 150)}...`;\n }\n show({\n message: i18n.t(\"There was an unknown error\", {\n error: errStr,\n }),\n type: \"alert_warning\",\n });\n } else {\n show({\n message: i18n.t(\"There was an unknown error\"),\n type: \"alert_warning\",\n });\n }\n }\n }\n };\n\n const getAccessToken = () => {\n if (useAuthStore.getState().refreshToken) {\n const controller = new AbortController();\n return apiService.axiosUnauthPOST(\n `auth/token/refresh/`, //endpoint\n controller.signal, //signal\n getAccessTokenSuccess, //successFn\n newErrorHandler, //error AlerterFn\n \"Error refreshing access token\", //error message\n getAccessTokenError, //errorFn (gets error back)\n { payload: { refresh: useAuthStore.getState().refreshToken } } //data (gets handed back to success fn)\n );\n }\n };\n\n React.useEffect(() => {\n if (useAuthStore.getState().accessToken) {\n devDebug(\"Auth -> Found an accessToken, starting refresh timer: \", useAuthStore.getState().accessToken);\n startAccessTokenTimer();\n } else {\n devDebug(\"Auth -> No accessToken found, setting JWT refreshed to true\");\n useAuthStore.getState().setJWTRefreshed(true);\n clearCookies();\n }\n }, []);\n\n let signin = () => {\n api.defaults.headers.common[\"Authorization\"] = `JWT ${useAuthStore.getState().accessToken}`;\n return setTimeout(() => {\n authService.signin(() => {\n startAccessTokenTimer();\n });\n }, 10);\n };\n\n // let setAuthorisation = () => {\n // api.defaults.headers.common[\"Authorization\"] = `JWT ${useAuthStore.getState().accessToken}`;\n // };\n\n const stopAccessTokenTimer = () => {\n clearTimeout(accessTokenTimeoutID);\n };\n\n let show = (alert) => {\n setAlert(alert);\n setShowAlert(true);\n setTimeout(() => {\n setShowAlert(false);\n }, 5000);\n };\n\n let hide = () => {\n setAlert(null);\n setShowAlert(false);\n };\n\n let value = {\n apiService,\n signin,\n signout,\n newErrorHandler,\n alert,\n showAlert,\n show,\n hide,\n };\n\n const [alboFornitoriHydrated] = useAlboFornitoriStore((state) => [state?._hasHydrated]);\n const [authHydrated] = useAuthStore((state) => [state?._hasHydrated]);\n const [companiesSearchHydrated] = useCompaniesSearchStore((state) => [state?._hasHydrated]);\n const [cpvHydrated] = useCPVStore((state) => [state?._hasHydrated]);\n const [dashboardHydrated] = useDashboardStore((state) => [state?._hasHydrated]);\n const [defaultStrategyHydrated] = useDefaultStrategyStore((state) => [state?._hasHydrated]);\n const [listUsersHydrated] = useListUsersStore((state) => [state?._hasHydrated]);\n const [mapsHydrated] = useMapsStore((state) => [state?._hasHydrated]);\n const [registerHydrated] = useRegisterStore((state) => [state?._hasHydrated]);\n const [tabHydrated] = useTabStore((state) => [state?._hasHydrated]);\n const [taskManagementHydrated] = useTaskManagementStore((state) => [state?._hasHydrated]);\n const [tenderAwardsSearchHydrated] = useTenderAwardsSearchStore((state) => [state?._hasHydrated]);\n const [tenderAwardsHydrated] = useTenderAwardsStore((state) => [state?._hasHydrated]);\n const [tenderSearchHydrated] = useTenderSearchStore((state) => [state?._hasHydrated]);\n const [tenderStrategyHydrated] = useTenderStrategyStore((state) => [state?._hasHydrated]);\n\n const allHydrated = [\n alboFornitoriHydrated,\n authHydrated,\n companiesSearchHydrated,\n cpvHydrated,\n dashboardHydrated,\n defaultStrategyHydrated,\n listUsersHydrated,\n mapsHydrated,\n registerHydrated,\n tabHydrated,\n taskManagementHydrated,\n tenderAwardsSearchHydrated,\n tenderAwardsHydrated,\n tenderSearchHydrated,\n tenderStrategyHydrated,\n ].every(Boolean);\n\n return jwtRefreshed && allHydrated ? (\n \n {forbidden ? (\n
\n \n
{i18n.t(\"Not Allowed\")}
\n
\n {i18n.t(\n \"You are not allowed to view this content. This is likely due to your subscription level being insufficient.\"\n )}\n {i18n.t(\n \"If your trial expired or you recently canceled your subscription, you will need to re-subscribe before being allowed access.\"\n )}\n
\n
\n {\n setTimeout(() => {\n setForbidden(false);\n }, 200);\n navigate(`/${i18n.language.slice(0, 2)}/user_preferences`);\n }}\n color=\"primary\"\n className=\"button-primary me-2\"\n >\n {i18n.t(\"Go to settings\")}\n \n {\n setTimeout(() => {\n setForbidden(false);\n }, 200);\n auth.signout();\n }}\n className=\"button-primary\"\n >\n {i18n.t(\"Logout\")}\n \n
\n
\n ) : unauthorised ? (\n
\n \n
{i18n.t(\"Session Expired\")}
\n
{i18n.t(\"Your login has expired. Please try to login again.\")}
\n {\n setTimeout(() => {\n setUnauthorised(false);\n }, 200);\n navigate(`/${i18n.language.slice(0, 2)}/login`);\n }}\n className=\"button-primary\"\n >\n {i18n.t(\"Login\")}\n \n
\n ) : (\n children\n )}\n
\n ) : (\n \n );\n}\n\nexport function RequireAuth({ children }) {\n let location = useLocation();\n\n const [authHydrated, userID] = useAuthStore((state) => [state?._hasHydrated, state?.user?.id]);\n\n if (!userID) {\n return ;\n }\n\n const [alboFornitoriHydrated] = useAlboFornitoriStore((state) => [state?._hasHydrated]);\n const [companiesSearchHydrated] = useCompaniesSearchStore((state) => [state?._hasHydrated]);\n const [cpvHydrated] = useCPVStore((state) => [state?._hasHydrated]);\n const [dashboardHydrated] = useDashboardStore((state) => [state?._hasHydrated]);\n const [defaultStrategyHydrated] = useDefaultStrategyStore((state) => [state?._hasHydrated]);\n const [listUsersHydrated] = useListUsersStore((state) => [state?._hasHydrated]);\n const [mapsHydrated] = useMapsStore((state) => [state?._hasHydrated]);\n const [registerHydrated] = useRegisterStore((state) => [state?._hasHydrated]);\n const [tabHydrated] = useTabStore((state) => [state?._hasHydrated]);\n const [taskManagementHydrated] = useTaskManagementStore((state) => [state?._hasHydrated]);\n const [tenderAwardsSearchHydrated] = useTenderAwardsSearchStore((state) => [state?._hasHydrated]);\n const [tenderAwardsHydrated] = useTenderAwardsStore((state) => [state?._hasHydrated]);\n const [tenderSearchHydrated] = useTenderSearchStore((state) => [state?._hasHydrated]);\n const [tenderStrategyHydrated] = useTenderStrategyStore((state) => [state?._hasHydrated]);\n\n const allHydrated = [\n alboFornitoriHydrated,\n authHydrated,\n companiesSearchHydrated,\n cpvHydrated,\n dashboardHydrated,\n defaultStrategyHydrated,\n listUsersHydrated,\n mapsHydrated,\n registerHydrated,\n tabHydrated,\n taskManagementHydrated,\n tenderAwardsSearchHydrated,\n tenderAwardsHydrated,\n tenderSearchHydrated,\n tenderStrategyHydrated,\n ].every(Boolean);\n\n return allHydrated ? children : null;\n}\n\nexport function RequireAdmin({ children }) {\n let location = useLocation();\n\n const [authHydrated, is_superuser] = useAuthStore((state) => [state?._hasHydrated, state?.user?.is_superuser]);\n\n const [alboFornitoriHydrated] = useAlboFornitoriStore((state) => [state?._hasHydrated]);\n const [companiesSearchHydrated] = useCompaniesSearchStore((state) => [state?._hasHydrated]);\n const [cpvHydrated] = useCPVStore((state) => [state?._hasHydrated]);\n const [dashboardHydrated] = useDashboardStore((state) => [state?._hasHydrated]);\n const [defaultStrategyHydrated] = useDefaultStrategyStore((state) => [state?._hasHydrated]);\n const [listUsersHydrated] = useListUsersStore((state) => [state?._hasHydrated]);\n const [mapsHydrated] = useMapsStore((state) => [state?._hasHydrated]);\n const [registerHydrated] = useRegisterStore((state) => [state?._hasHydrated]);\n const [tabHydrated] = useTabStore((state) => [state?._hasHydrated]);\n const [taskManagementHydrated] = useTaskManagementStore((state) => [state?._hasHydrated]);\n const [tenderAwardsSearchHydrated] = useTenderAwardsSearchStore((state) => [state?._hasHydrated]);\n const [tenderAwardsHydrated] = useTenderAwardsStore((state) => [state?._hasHydrated]);\n const [tenderSearchHydrated] = useTenderSearchStore((state) => [state?._hasHydrated]);\n const [tenderStrategyHydrated] = useTenderStrategyStore((state) => [state?._hasHydrated]);\n\n const allHydrated = [\n alboFornitoriHydrated,\n authHydrated,\n companiesSearchHydrated,\n cpvHydrated,\n dashboardHydrated,\n defaultStrategyHydrated,\n listUsersHydrated,\n mapsHydrated,\n registerHydrated,\n tabHydrated,\n taskManagementHydrated,\n tenderAwardsSearchHydrated,\n tenderAwardsHydrated,\n tenderSearchHydrated,\n tenderStrategyHydrated,\n ].every(Boolean);\n\n if (!is_superuser) {\n return ;\n }\n\n return allHydrated ? children : null;\n}\n\nexport function clearCookies() {\n const items = { ...localStorage };\n for (let key of Object.keys(items)) {\n if (key !== \"i18nextLng\" && !key.includes(\"cookie\")) {\n localStorage.removeItem(key);\n }\n }\n}\n","import React from \"react\";\nimport { mdiChevronDown } from \"@mdi/js\";\nimport Icon from \"@mdi/react\";\nimport { NavLink } from \"react-router-dom\";\nimport { Dropdown, DropdownItem, DropdownMenu, DropdownToggle } from \"reactstrap\";\nimport { useTranslation } from \"react-i18next\";\nimport { useComponentsStore } from \"../../Stores/componentsStore\";\nimport { shortenItem } from \"./navigation\";\nimport i18n from \"../../i18n\";\n// import devDebug from \"../Helpers/debug\";\nexport default function AwardsSearchDropdown({ sidebar, ctx }) {\n const { t } = useTranslation();\n const [awardsDropDownOpen] = useComponentsStore((state) => [state.awardsDropDownOpen]);\n const [menu, setMenu] = React.useState(awardsDropDownOpen);\n const toggle = () => {\n setMenu(!menu);\n };\n\n React.useEffect(() => {\n //devDebug(\"awards dropdown open has changed\");\n setMenu(awardsDropDownOpen);\n }, [awardsDropDownOpen]);\n\n return (\n \n \n {shortenItem(t(\"Tender Awards\"), sidebar)}\n \n \n \n \n \n
\n \n {\n ctx.toggleMenu(false);\n toggle();\n }}\n className={`menu-item nomargin ${\n sidebar ? \"nested-mobile-menu-item menu-item-sidebar\" : \"\"\n } ${i18n.language.slice(0, 2)}`}\n to={`/${i18n.language.slice(0, 2)}/tender_awards`}\n >\n {shortenItem(t(\"Tender Awards Statistics\"), sidebar)}\n \n \n \n {\n ctx.toggleMenu(false);\n toggle();\n }}\n to={`/${i18n.language.slice(0, 2)}/awards_search`}\n className={`menu-item nomargin ${\n sidebar ? \"nested-mobile-menu-item menu-item-sidebar\" : \"\"\n } ${i18n.language.slice(0, 2)}`}\n >\n {shortenItem(t(\"Tender Awards Search\"), sidebar)}\n \n \n \n {\n ctx.toggleMenu(false);\n toggle();\n }}\n to={`/${i18n.language.slice(0, 2)}/companies_search`}\n className={`menu-item nomargin ${\n sidebar ? \"nested-mobile-menu-item menu-item-sidebar\" : \"\"\n } ${i18n.language.slice(0, 2)}`}\n >\n {shortenItem(t(\"Company Search\"), sidebar)}\n \n \n
\n
\n \n );\n}\n","import React from \"react\";\nimport { mdiChevronDown } from \"@mdi/js\";\nimport Icon from \"@mdi/react\";\nimport { NavLink } from \"react-router-dom\";\nimport { Dropdown, DropdownItem, DropdownMenu, DropdownToggle } from \"reactstrap\";\nimport { useTranslation } from \"react-i18next\";\nimport { useComponentsStore } from \"../../Stores/componentsStore\";\nimport i18n from \"../../i18n\";\nimport { useAuthStore } from \"../../Stores/authStore\";\n// import devDebug from \"../Helpers/debug\";\nexport default function TendersDropdown({ sidebar, ctx }) {\n const { t } = useTranslation();\n const [awardsDropDownOpen] = useComponentsStore((state) => [state.awardsDropDownOpen]);\n const [user] = useAuthStore((state) => [state.user]);\n const [menu, setMenu] = React.useState(awardsDropDownOpen);\n const toggle = () => {\n setMenu(!menu);\n };\n\n React.useEffect(() => {\n //devDebug(\"awards dropdown open has changed\");\n setMenu(awardsDropDownOpen);\n }, [awardsDropDownOpen]);\n\n return (\n \n \n {t(\"Tenders\")}\n \n \n \n \n \n
\n \n {\n ctx.toggleMenu(false);\n toggle();\n }}\n className={`menu-item nomargin ${\n sidebar ? \"nested-mobile-menu-item menu-item-sidebar\" : \"\"\n } ${i18n.language.slice(0, 2)}`}\n to={`/${i18n.language.slice(0, 2)}/search`}\n >\n {t(\"Search Tenders\")}\n \n \n \n {\n ctx.toggleMenu(false);\n toggle();\n }}\n to={`/${i18n.language.slice(0, 2)}/my_tenders`}\n className={`menu-item nomargin ${\n sidebar ? \"nested-mobile-menu-item menu-item-sidebar\" : \"\"\n } ${i18n.language.slice(0, 2)}`}\n >\n {t(\"My Tenders\")}\n \n \n {user?.is_superuser ? (\n \n {\n ctx.toggleMenu(false);\n toggle();\n }}\n to={`/${i18n.language.slice(0, 2)}/supplier_list_notices`}\n className={`menu-item nomargin ${\n sidebar ? \"nested-mobile-menu-item menu-item-sidebar\" : \"\"\n } ${i18n.language.slice(0, 2)}`}\n >\n {t(\"Supplier List Notices\")}\n \n \n ) : null}\n
\n
\n \n );\n}\n","import React from \"react\";\nimport { slide as Menu } from \"react-burger-menu\";\nimport TendersClubLogo from \"../../Components/tendersClubLogo\";\nimport { useAuth } from \"../../Services/auth\";\nimport { NavLink } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport { SidebarContext } from \"../sidebarContext\";\nimport AwardsSearchDropdown from \"./awardsSearchDropdown\";\nimport TendersDropdown from \"./tendersDropdown\";\nimport { useAuthStore } from \"../../Stores/authStore\";\nimport i18n from \"../../i18n\";\n\nexport default function Navigation({ sidebar }) {\n const auth = useAuth();\n const ctx = React.useContext(SidebarContext);\n let authenticated = false;\n if (useAuthStore.getState()?.user?.email) {\n authenticated = true;\n }\n\n return sidebar ? (\n ctx.stateChangeHandler(state)}\n width={320}\n >\n
\n \n {authenticated ? : null}\n
\n \n ) : (\n
\n \n
\n );\n}\n\nexport const shortenItem = (item, sidebar) => {\n if (item.length > 25 && sidebar) {\n return item.slice(0, 25) + \"...\";\n }\n return item;\n};\n\nconst NavLinks = ({ sidebar, ctx, authenticated, auth }) => {\n const { t, i18n } = useTranslation();\n\n const menuActions = () => {\n ctx.toggleMenu(false);\n };\n\n return (\n \n {sidebar ? (\n ctx.toggleMenu(false)}\n to={`/${i18n.language.slice(0, 2)}/`}\n className=\"logo logo-light\"\n >\n \n \n ) : null}\n\n menuActions()}\n to={`${i18n.language.slice(0, 2)}/pricing`}\n className={`menu-item ${sidebar ? \"menu-item-sidebar\" : \"\"} ${i18n.language.slice(0, 2)}`}\n >\n {shortenItem(t(\"Pricing\"), sidebar)}\n \n {authenticated && !window.location.pathname.includes(\"/services\") ? (\n \n ) : (\n menuActions()}\n to={`${i18n.language.slice(0, 2)}/search`}\n className={`menu-item ${sidebar ? \"menu-item-sidebar\" : \"\"} ${i18n.language.slice(0, 2)}`}\n >\n {shortenItem(t(\"Search Tenders\"), sidebar)}\n \n )}\n menuActions()}\n to={`${i18n.language.slice(0, 2)}/contact`}\n className={`menu-item ${sidebar ? \"menu-item-sidebar\" : \"\"} ${i18n.language.slice(0, 2)}`}\n >\n {shortenItem(t(\"Contact\"), sidebar)}\n \n {authenticated ? null : (\n menuActions()}\n to={`${i18n.language.slice(0, 2)}/services`}\n className={`menu-item ${sidebar ? \"menu-item-sidebar\" : \"\"} ${i18n.language.slice(0, 2)}`}\n >\n {shortenItem(t(\"services\"), sidebar)}\n \n )}\n \n {shortenItem(t(\"Blog\"), sidebar)}\n \n {authenticated ? null : (\n menuActions()}\n to={`/${i18n.language.slice(0, 2)}/login`}\n className={`menu-item ${!sidebar ? \" ms-auto\" : \" menu-item-sidebar\"} ${i18n.language.slice(0, 2)}`}\n >\n {shortenItem(t(\"Login\"), sidebar)}\n \n )}\n {authenticated ? null : (\n menuActions()}\n to={`${i18n.language.slice(0, 2)}/register`}\n className={`menu-item ${sidebar ? \"menu-item-sidebar\" : \"\"} ${i18n.language.slice(0, 2)}`}\n >\n {shortenItem(t(\"Register\"), sidebar)}\n \n )}\n {authenticated && !window.location.pathname.includes(\"/services\") && sidebar ? (\n menuActions()}\n to={`${i18n.language.slice(0, 2)}/user_preferences`}\n className={`menu-item ${sidebar ? \"menu-item-sidebar\" : \"\"} ${i18n.language.slice(0, 2)}`}\n >\n {shortenItem(t(\"Settings\"), sidebar)}\n \n ) : null}\n {authenticated && !window.location.pathname.includes(\"/services\") ? (\n menuActions()}\n to={`${i18n.language.slice(0, 2)}/tender_strategy`}\n className={`menu-item ${sidebar ? \"menu-item-sidebar\" : \"\"} ${i18n.language.slice(0, 2)}`}\n >\n {shortenItem(t(\"Tender Strategy\"), sidebar)}\n \n ) : null}\n {useAuthStore.getState()?.user?.is_superuser && !window.location.pathname.includes(\"/services\") && sidebar ? (\n menuActions()}\n to={`${i18n.language.slice(0, 2)}/admin/edit_tenders`}\n className={`menu-item ${sidebar ? \"menu-item-sidebar\" : \"\"} ${i18n.language.slice(0, 2)}`}\n >\n {shortenItem(t(\"Edit Tenders\"), sidebar)}\n \n ) : null}\n {useAuthStore.getState()?.user?.is_superuser && !window.location.pathname.includes(\"/services\") && sidebar ? (\n menuActions()}\n to={`${i18n.language.slice(0, 2)}/admin/vademecum`}\n className={`menu-item ${sidebar ? \"menu-item-sidebar\" : \"\"} ${i18n.language.slice(0, 2)}`}\n >\n {shortenItem(t(\"Summary\"), sidebar)}\n \n ) : null}\n {useAuthStore.getState()?.user?.is_superuser && !window.location.pathname.includes(\"/services\") && sidebar ? (\n menuActions()}\n to={`${i18n.language.slice(0, 2)}/admin/list_users`}\n className={`menu-item ${sidebar ? \"menu-item-sidebar\" : \"\"} ${i18n.language.slice(0, 2)}`}\n >\n {shortenItem(t(\"List Users\"), sidebar)}\n \n ) : null}\n \n );\n};\n","export default \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTD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C3iRSoSU5SRgZlER+Iwi3UJJUJLIBEYRbqEkqEkgERhFuoSRn7YJlaSMTIv0wiP//Z\"","export default \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/2wBDAQQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/wAARCAAqAEADASIAAhEBAxEB/8QAGwAAAgIDAQAAAAAAAAAAAAAAAAgCBwEDBAX/xAAjEAACAQMEAgMBAAAAAAAAAAABAgADBzYEEXSxUbISIUQW/8QAFwEBAQEBAAAAAAAAAAAAAAAABwYFCP/EACcRAAIAAgkEAwAAAAAAAAAAAAABAgMEBQYHETM0dII1NrHBEiEx/9oADAMBAAIRAxEAPwD1mdmYu7sWLbkk7kkyO58yMJzKT5ZtqSf6at9/gre6xi4ulqcmrcCr7rGLjRYXoS3Ez0atDyeTCLPdnKl+/wAVLtozEWa7OVrwqPbShrPTc4RGu77he1m+UVlufMyrupDK5UqdwQdiCJiEnh2aT+mjuhCEFzi4s21OTVuBV91jFxdLU5NW4FX3WMXGiwnQluJno1aFk8mEWa7OVrwqPbRmYs12crXhUe2lDWem5wiNd33C9rN8orKEISeHc7oT0NaiJrdWiIFUVXAAGwABmj4r4EGYocG1icWliWpyatwKvusYuLvazJq3Cq+yxiozWF6EtxM9GrQsnkyMWa7OVrwqPbRm4tF18qXhUu2lDWem5wiNd33A9rN8oq6E27DxOnRIj63So6AqatMEEbg7mTw6RR/GFvD8WJ//2Q==\"","export default \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/2wBDAQQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/wAARCAAqAEADASIAAhEBAxEB/8QAGwAAAwADAQEAAAAAAAAAAAAAAAcIAQIEAwX/xAAoEAACAQIEBQQDAAAAAAAAAAABAgADBAcIETYFdHWxsxIhUVIWMUT/xAAYAQEBAQEBAAAAAAAAAAAAAAAGBwgEBf/EACcRAAIAAgkEAwAAAAAAAAAAAAABAgMFBgcyNDU2c3QRgYKxEiEx/9oADAMBAAIRAxEAPwBQPVqVHepUqlnYksxJJJP7JM19TfYzEJVjyx6Ze993PSLjyJLYkT5e993PSLjyJLYgWsOYvagO6Rc7hJnxZ3Uvv/FS7tKYkzYs7rXkqPdoSpPDecJQbO9QvizfaFlqfmZV3UhlcqVOoIOhBExCHi7NJ/TQmYQhNEGOh6Ze993PSLjyJLYkT5e993PSLjyJLYgWsOYvagO6Rc7hJmxZ3WvJUe7SmZM2LO615Kj3aEqTw3nCUGzvUL4s32hZQhCHi7iZhPr8TpU04jxBEpqqLcVVVQAAACfYTi9K/UTQyZjkdWXvfdz0i48iS2JFuX8D86r9KuPIktSB6w5i9qA7pFzuayZsWd1ryVHu0puTRivupeSpd2hKk8N5wlBs71A+LN9oV0J66D4nTZIj3tqjoCpq0wQRqDqYeLpFH8YW+n4up//Z\"","export default \"__VITE_ASSET__C3quKds1__\"","export const languages = [\"de\", \"en\", \"es\", \"fr\", \"it\"];\n","import React, { useState } from \"react\";\nimport { Dropdown, DropdownItem, DropdownMenu, DropdownToggle } from \"reactstrap\";\nimport i18n from \"../../i18n\";\nimport spanishFlag from \"../../Assets/Images/Flags/spain.jpg\";\nimport germanFlag from \"../../Assets/Images/Flags/germany.jpg\";\nimport italianFlag from \"../../Assets/Images/Flags/italy.jpg\";\nimport frenchFlag from \"../../Assets/Images/Flags/france.jpg\";\nimport ukFlag from \"../../Assets/Images/Flags/uk.jpg\";\nimport { useTranslation } from \"react-i18next\";\nimport { useAuth } from \"../../Services/auth\";\nimport { useAuthStore } from \"../../Stores/authStore\";\nimport { useNavigate } from \"react-router-dom\";\nimport { languages } from \"../../Assets/Defaults/defaults\";\n\nconst languageFlags = {\n es: {\n label: \"Spanish\",\n flag: spanishFlag,\n },\n de: {\n label: \"German\",\n flag: germanFlag,\n },\n it: {\n label: \"Italian\",\n flag: italianFlag,\n },\n fr: {\n label: \"French\",\n flag: frenchFlag,\n },\n en: {\n label: \"English\",\n flag: ukFlag,\n },\n};\n\nexport default function LanguageDropdown() {\n const navigate = useNavigate();\n\n const { t } = useTranslation();\n\n const auth = useAuth();\n const apiService = auth.apiService;\n\n // function returnLang(lang) {\n // if (typeof lang === \"string\") {\n // if (lang.includes(\"es\")) {\n // localStorage.setItem(\"i18nextLng\", \"es\");\n // return \"es\";\n // } else if (lang.includes(\"de\")) {\n // localStorage.setItem(\"i18nextLng\", \"de\");\n // return \"de\";\n // } else if (lang.includes(\"it\")) {\n // localStorage.setItem(\"i18nextLng\", \"it\");\n // return \"it\";\n // } else if (lang.includes(\"fr\")) {\n // localStorage.setItem(\"i18nextLng\", \"fr\");\n // return \"fr\";\n // } else {\n // localStorage.setItem(\"i18nextLng\", \"en\");\n // return \"en\";\n // }\n // } else {\n // return \"en\";\n // }\n // }\n\n const [menu, setMenu] = useState(false);\n\n const patchedUser = (resp) => {\n useAuthStore.getState().setUser(resp);\n auth.show({\n message: t(\"Language updated successfully!\"),\n type: \"alert_success\",\n });\n };\n\n const receivedUser = (resp, data) => {\n const controller = new AbortController();\n resp.preferred_language = data.lang;\n delete resp.subscription;\n\n apiService.axiosPATCH(\n `auth/user/`, //endpoint\n controller.signal, //signal\n patchedUser, //successFn\n auth.newErrorHandler, //error AlerterFn\n \"Error updating language\", //error message\n null, //errorFn (gets error back)\n { payload: resp, section: \"Language Dropdown -> receivedUser\" } //data (gets handed back to success fn)\n );\n };\n\n const changeLanguageAction = (newLang) => {\n i18n.changeLanguage(newLang);\n\n for (let includesLang of languages) {\n if (window.location.pathname.includes(`/${includesLang}/`)) {\n navigate(window.location.pathname.replace(`/${includesLang}/`, `/${newLang}/`));\n break;\n }\n }\n\n if (useAuthStore.getState().accessToken) {\n const controller = new AbortController();\n apiService.axiosGET(\n `auth/user/`, //endpoint\n controller.signal, //signal\n receivedUser, //successFn\n auth.newErrorHandler, //error AlerterFn\n \"There was an error getting the user\", //error message\n null, //errorFn (gets error back)\n { lang: newLang, section: \"Language Dropdown -> changeLanguageAction\" } //data (gets handed back to success fn)\n );\n }\n };\n\n const toggle = () => {\n setMenu(!menu);\n };\n\n return (\n \n \n \n \n \n {Object.keys(languageFlags).map((key) => (\n changeLanguageAction(key)}\n className={`notify-item ${i18n.language.slice(0, 2) === key ? \"active\" : \"none\"}`}\n >\n \n {languageFlags[key].label}\n \n ))}\n \n \n );\n}\n","import React from \"react\";\nimport { useMediaQuery } from \"react-responsive\";\nimport { useComponentsStore } from \"../../Stores/componentsStore\";\n\nexport function useColorScheme() {\n const colourSchemeKey = `${import.meta.env.VITE_COLOR_SCHEME_KEY}_${import.meta.env.VITE_VERSION}`;\n const [isDark, setIsDark] = React.useState(localStorage.getItem(colourSchemeKey) || \"light\");\n const [setDark] = useComponentsStore((state) => [state.setIsDark]);\n React.useEffect(() => {\n localStorage.setItem(colourSchemeKey, isDark);\n setDark(isDark === \"light\" ? false : true);\n }, [isDark, setDark, colourSchemeKey]);\n\n const systemPrefersDark = useMediaQuery(\n {\n query: \"(prefers-color-scheme: dark)\",\n },\n undefined\n );\n const value = React.useMemo(() => (isDark === undefined ? !!systemPrefersDark : isDark), [isDark, systemPrefersDark]);\n React.useEffect(() => {\n let isSubscribed = true;\n if (value === \"dark\") {\n if (isSubscribed) {\n document.body.classList.add(\"dark\");\n }\n } else {\n if (isSubscribed) {\n document.body.classList.remove(\"dark\");\n }\n }\n return () => {\n // cancel the subscription\n isSubscribed = false;\n };\n }, [value]);\n\n return {\n isDark: value,\n setIsDark: setIsDark,\n };\n}\n","import React from \"react\";\nimport Toggle from \"react-toggle\";\nimport { useColorScheme } from \"./darkModePersist\";\nimport \"react-toggle/style.css\";\nimport { useTranslation } from \"react-i18next\";\nconst DarkmodeToggle = () => {\n const { t } = useTranslation();\n const { isDark, setIsDark } = useColorScheme();\n return (\n {\n setIsDark(event.target.checked ? \"dark\" : \"light\");\n let themeLink = document.getElementById(\"app-theme\");\n if (event.target.checked) {\n themeLink.href = `${window.location.origin}/lara-dark-purple/theme.css`;\n } else {\n themeLink.href = `${window.location.origin}/lara-light-purple/theme.css`;\n }\n }}\n icons={{ checked: \"🌙\", unchecked: \"🔆\" }}\n aria-label={t(\"Dark mode\")}\n />\n );\n};\n\nexport default DarkmodeToggle;\n","import React from \"react\";\nimport {\n mdiAccountCircleOutline,\n mdiAccountSearch,\n mdiChevronDown,\n mdiCrownCircleOutline,\n mdiPlaylistEdit,\n mdiPower,\n mdiWrenchOutline,\n} from \"@mdi/js\";\nimport Icon from \"@mdi/react\";\nimport { Dropdown, DropdownItem, DropdownMenu, DropdownToggle } from \"reactstrap\";\nimport { useTranslation } from \"react-i18next\";\nimport { NavLink } from \"react-router-dom\";\nimport { useAuth } from \"../../Services/auth\";\n// import devDebug from \"../Helpers/debug\";\nimport { useComponentsStore } from \"../../Stores/componentsStore\";\nimport { useTenderStrategyStore } from \"../../Stores/tenderStrategyStore\";\nimport { useAuthStore } from \"../../Stores/authStore\";\nimport i18n from \"../../i18n\";\n\nexport default function ProfileDropdown({ setMenu, menu, setShowUnsavedPopup, showUnsavedPopup }) {\n const { t } = useTranslation();\n const [isDark] = useComponentsStore((state) => [state.isDark]);\n\n let auth = useAuth();\n return (\n setMenu(!menu)}\n className=\"d-inline-block tc-fullscreen-margin-compensator cursor-pointer\"\n >\n \n {useAuthStore.getState()?.user?.is_superuser ? (\n \n ) : (\n \n )}\n \n \n \n
{useAuthStore.getState()?.user?.first_name}
\n \n {useAuthStore.getState()?.user?.is_superuser ? (\n \n setMenu(!menu)}\n to={`/${i18n.language.slice(0, 2)}/admin/edit_tenders`}\n className=\"dropdown-item\"\n >\n \n {t(\"Edit Tenders\")}\n \n setMenu(!menu)}\n to={`/${i18n.language.slice(0, 2)}/admin/vademecum`}\n className=\"dropdown-item\"\n >\n \n {t(\"Summary\")}\n \n setMenu(!menu)}\n to={`/${i18n.language.slice(0, 2)}/admin/list_users`}\n className=\"dropdown-item\"\n >\n \n {t(\"List Users\")}\n \n \n ) : null}\n setMenu(!menu)}\n to={`/${i18n.language.slice(0, 2)}/user_preferences`}\n className=\"dropdown-item\"\n >\n \n {t(\"Settings\")}\n \n {\n if (useTenderStrategyStore.getState().unsavedWarning === 1) {\n setShowUnsavedPopup(!showUnsavedPopup);\n } else {\n auth.signout(() => {\n navigate(`/${i18n.language.slice(0, 2)}/`);\n setTimeout(() => {\n useAuthStore.getState().strategiesNeverRequested(true);\n useTenderStrategyStore.getState().setStrategiesStatus(\"loading\");\n }, [100]);\n });\n }\n }}\n >\n \n {t(\"Logout\")}\n \n
\n \n );\n}\n","import React from \"react\";\nimport { SidebarContext } from \"./sidebarContext\";\nimport { useAuth } from \"../Services/auth\";\nimport Icon from \"@mdi/react\";\nimport { useTranslation } from \"react-i18next\";\nimport i18n from \"../i18n\";\nimport dayjs from \"dayjs\";\nimport { Link } from \"react-router-dom\";\nimport TendersClubLogo from \"../Components/tendersClubLogo\";\nimport { mdiMenu, mdiFullscreen } from \"@mdi/js\";\nimport { useComponentsStore } from \"../Stores/componentsStore\";\nimport devDebug from \"../Helpers/debug\";\nimport Navigation from \"./nav/navigation\";\nimport LanguageDropdown from \"./nav/languageDropdown\";\nimport DarkmodeToggle from \"./nav/darkModeToggle\";\nimport ProfileDropdown from \"./nav/profileDropdown\";\nimport AwardsSearchDropdown from \"./nav/awardsSearchDropdown\";\nimport { useAuthStore } from \"../Stores/authStore\";\nimport { useNavigate } from \"react-router-dom\";\n\nexport default function Header({ location }) {\n const navigate = useNavigate();\n const [setShowUnsavedPopup, showUnsavedPopup, setAwardsDropDownOpen, isDark] = useComponentsStore((state) => [\n state.setShowUnsavedPopup,\n state.showUnsavedPopup,\n state.setAwardsDropDownOpen,\n state.isDark,\n ]);\n const [menu, setMenu] = React.useState(false);\n let auth = useAuth();\n let authenticated = false;\n if (useAuthStore.getState()?.user?.email) {\n authenticated = true;\n }\n const subscription = useAuthStore.getState()?.user?.subscription;\n let daysLeft = 0;\n if (subscription) {\n daysLeft = dayjs(subscription.subscription_period_end).diff(dayjs(), \"day\");\n }\n const ctx = React.useContext(SidebarContext);\n\n const specialToggleMenu = () => {\n setAwardsDropDownOpen(false);\n ctx.toggleMenu(true);\n let isActive = false;\n if (typeof document?.getElementsByClassName(\"mobile-sidebar-nested-dropdown\")?.[0] !== \"undefined\") {\n for (let item of document\n ?.getElementsByClassName(\"mobile-sidebar-nested-dropdown\")?.[0]\n ?.getElementsByClassName(\"nested-mobile-menu-item\")) {\n if (item.classList.contains(\"active\")) {\n isActive = true;\n }\n }\n if (isActive) {\n window.setTimeout(() => {\n devDebug(\"setting awards dropdown to open\");\n setAwardsDropDownOpen(true);\n }, 400);\n }\n }\n };\n\n const { t } = useTranslation();\n function toggleFullscreen() {\n if (\n !document.fullscreenElement &&\n /* alternative standard method */ !document.mozFullScreenElement &&\n !document.webkitFullscreenElement\n ) {\n // current working methods\n if (document.documentElement.requestFullscreen) {\n document.documentElement.requestFullscreen();\n } else if (document.documentElement.mozRequestFullScreen) {\n document.documentElement.mozRequestFullScreen();\n } else if (document.documentElement.webkitRequestFullscreen) {\n document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);\n }\n } else {\n if (document.cancelFullScreen) {\n document.cancelFullScreen();\n } else if (document.mozCancelFullScreen) {\n document.mozCancelFullScreen();\n } else if (document.webkitCancelFullScreen) {\n document.webkitCancelFullScreen();\n }\n }\n }\n\n React.useEffect(() => {\n setTimeout(() => {\n let themeLink = document.getElementById(\"app-theme\");\n if (isDark) {\n themeLink.href = `${window.location.origin}/lara-dark-purple/theme.css`;\n } else {\n themeLink.href = `${window.location.origin}/lara-light-purple/theme.css`;\n }\n }, 500);\n }, [isDark]);\n\n return (\n \n
\n
\n navigate(`/${i18n.language.slice(0, 2)}/`)}\n >\n {(!useAuthStore.getState()?.user?.email && window.location.pathname === `/${i18n.language.slice(0, 2)}/`) ||\n window.location.pathname.includes(\"/services\") ? (\n \n ) : (\n \n )}\n
\n \n
\n {authenticated && !window.location.pathname.includes(\"/services\") ? (\n \n ) : null}\n
\n
\n \n \n {\n toggleFullscreen();\n }}\n path={mdiFullscreen}\n className=\"tc-full-screen-btn d-xl-inline-block cursor-pointer tc-fullscreen-margin-compensator\"\n title={t(\"Toggle Full Screen\")}\n size={1}\n color={isDark ? \"#f6f6f6\" : \"#555b6d\"}\n />\n {authenticated ? (\n \n ) : null}\n specialToggleMenu()}\n path={mdiMenu}\n className=\"cursor-pointer tc-toggle-sidebar-btn\"\n title={t(\"Menu\")}\n size={1.6}\n color={isDark ? \"#f6f6f6\" : \"#555b6d\"}\n />\n
\n
\n\n {subscription?.status === \"trialing\" ? (\n
\n {daysLeft > 0 ? t(\"This is a trial account. Days Left: \") + daysLeft + \". \" : t(\"Your trial has expired\")}\n {t(\"Subscribe now\")}\n
\n ) : null}\n \n \n );\n}\n","export default \"__VITE_ASSET__pMTP1YS2__\"","export default \"__VITE_ASSET__BCVdSWox__\"","export default \"__VITE_ASSET__TInD7dHH__\"","export default \"__VITE_ASSET__9PG2wTb1__\"","import React from \"react\";\nimport { Container, Row } from \"reactstrap\";\nimport { useTranslation } from \"react-i18next\";\nimport cookie_policy from \"../Assets/Docs/cookie_policy.pdf\";\nimport privacy_policy_en from \"../Assets/Docs/privacy_policy_en.pdf\";\nimport privacy_policy_it from \"../Assets/Docs/privacy_policy_it.pdf\";\nimport t_and_cs from \"../Assets/Docs/t_and_cs.pdf\";\n// import devDebug from \"../Helpers/debug\";\nimport { useComponentsStore } from \"../Stores/componentsStore\";\nimport Icon from \"@mdi/react\";\nimport { mdiCog, mdiLinkedin, mdiTwitter } from \"@mdi/js\";\nexport default function Footer() {\n const [helpVideoAction, showHelpVideoModal] = useComponentsStore((state) => [\n state.helpVideoAction,\n state.showHelpVideoModal,\n ]);\n const { t, i18n } = useTranslation();\n\n function returnPrivacyPolicy() {\n switch (i18n.language.slice(0, 2)) {\n case \"en\":\n return (\n \n {t(\"Privacy Policy\")}\n \n );\n case \"it\":\n return (\n \n {t(\"Privacy Policy\")}\n \n );\n default:\n return (\n \n {t(\"Privacy Policy\")}\n \n );\n }\n }\n\n return (\n
\n \n \n
\n \n {t(\"Tenders Club Blog\")}\n \n {returnPrivacyPolicy()}\n
\n \n {t(\"Cookie Policy\")}\n \n useComponentsStore.getState().setCookieModalVisible(true)}\n className=\"tc-text-muted cursor-pointer tc_grow_on_hover_icon tc-footer-settings-cog-size\"\n path={mdiCog}\n title={t(\"Cookie Settings\")}\n horizontal\n size={0.8}\n />\n
\n\n \n {t(\"Terms & Conditions\")}\n \n \n {\"info@ufficioappalti.com\"}\n \n\n
\n\n
\n {new Date().getFullYear()} © {t(\"App Title\")}.\n
\n {\n helpVideoAction(!showHelpVideoModal);\n }}\n >\n {t(\"Help\")}\n
\n
\n \n \n \n \n \n \n
\n
{`${t(\"Company Number\")}: 0292853681`}
\n \n
\n
\n
\n );\n}\n","import React from \"react\";\nimport { useAuth } from \"../Services/auth\";\nexport default function Alerter() {\n const auth = useAuth();\n return (\n \n {auth?.alert.message}\n \n );\n}\n","export default \"__VITE_ASSET__De_IXlFO__\"","export default \"__VITE_ASSET__zhIHUdf0__\"","export default \"__VITE_ASSET__CkmYCmZa__\"","import React from \"react\";\nimport { Modal, ModalHeader, ModalBody, ModalFooter, Button } from \"reactstrap\";\nimport { useTranslation } from \"react-i18next\";\nimport tenders_club_promo_video_en from \"../../Assets/Video/tenders_club_promo_video_en.mp4\";\nimport tenders_club_promo_video_es from \"../../Assets/Video/tenders_club_promo_video_es.mp4\";\nimport tenders_club_promo_video_it from \"../../Assets/Video/tenders_club_promo_video_it.mp4\";\nimport { useComponentsStore } from \"../../Stores/componentsStore\";\n\nexport default function HomeMultiLanguageVideoPopup() {\n const [showMultilanguageVideo, multiLanguageVideoAction] = useComponentsStore(\n (state) => [state.showMultilanguageVideo, state.multiLanguageVideoAction]\n );\n const { t, i18n } = useTranslation();\n function returnPromoVideo() {\n switch (i18n.language.slice(0, 2)) {\n case \"en\":\n return tenders_club_promo_video_en;\n case \"es\":\n return tenders_club_promo_video_es;\n case \"it\":\n return tenders_club_promo_video_it;\n default:\n return tenders_club_promo_video_en;\n }\n }\n\n return (\n {\n multiLanguageVideoAction(!showMultilanguageVideo);\n }}\n >\n
\n {\n multiLanguageVideoAction(!showMultilanguageVideo);\n }}\n >\n {t(\"video_popup_title\")}\n \n \n
{t(\"Video popup copy\")}
\n
\n \n
\n
\n \n {\n multiLanguageVideoAction(false);\n }}\n >\n {t(\"Ok\")}\n \n \n
\n \n );\n}\n","import React from \"react\";\nimport { Modal, ModalHeader, ModalBody, ModalFooter } from \"reactstrap\";\nimport { useTranslation } from \"react-i18next\";\nimport { useAuth } from \"../../Services/auth\";\nimport devDebug from \"../../Helpers/debug\";\nimport { useComponentsStore } from \"../../Stores/componentsStore\";\nimport { useAuthStore } from \"../../Stores/authStore\";\n\nexport default function UpgradeModal() {\n devDebug(\"--- Rendering --- Upgrade Modal\");\n const { t } = useTranslation();\n const [loading, setLoading] = React.useState(false);\n const [showUpgradePopup, setShowUpgradePopup] = useComponentsStore((state) => [\n state.showUpgradePopup,\n state.setShowUpgradePopup,\n ]);\n const auth = useAuth();\n const apiService = auth.apiService;\n const redirect = (resp) => {\n window.location.replace(resp.url);\n setLoading(false);\n };\n\n const CustomerPortalError = () => {\n setLoading(false);\n };\n\n const goToBillingPortal = () => {\n devDebug(\"upgradeModal -> Going to customer portal\");\n setLoading(true);\n useAuthStore.getState().setReloadAfterStripe(true);\n\n const controller = new AbortController();\n apiService.axiosPOST(\n `api/payment/stripe/customer-portal`, //endpoint\n controller.signal, //signal\n redirect, //successFn\n auth.newErrorHandler, //error AlerterFn\n \"Error accessing your billing settings\", //error message\n CustomerPortalError, //errorFn (gets error back)\n {\n payload: {\n return_url: `${window.location.origin}/user_preferences#stripe_return`,\n },\n section: \"Upgrade Modal -> goToBillingPortal\",\n } //data (gets handed back to success fn)\n );\n };\n\n return (\n {\n setShowUpgradePopup(!showUpgradePopup);\n }}\n >\n
\n {\n setShowUpgradePopup(!showUpgradePopup);\n }}\n >\n {t(\"Upgrade\")}\n \n \n
\n {t(\"Your subscription does not include this content. Please upgrade your subscription to get access.\")}\n
\n
\n \n \n \n
\n \n );\n}\n","import React from \"react\";\nimport { Modal, ModalHeader, ModalBody, ModalFooter, Button } from \"reactstrap\";\nimport { useTranslation } from \"react-i18next\";\nimport { useAuth } from \"../../Services/auth\";\nimport { useNavigate } from \"react-router-dom\";\nimport { useComponentsStore } from \"../../Stores/componentsStore\";\nimport i18n from \"../../i18n\";\n\nexport default function UnsavedPopup() {\n const navigate = useNavigate();\n let auth = useAuth();\n const [setShowUnsavedPopup, showUnsavedPopup] = useComponentsStore((state) => [\n state.setShowUnsavedPopup,\n state.showUnsavedPopup,\n ]);\n\n const { t } = useTranslation();\n\n return (\n {\n setShowUnsavedPopup(!showUnsavedPopup);\n }}\n >\n
\n {\n setShowUnsavedPopup(!showUnsavedPopup);\n }}\n >\n {t(\"Unsaved Strategy\")}\n \n \n
\n {t(\"You have unsaved tender strategies. If you log out, they will not be saved.\")}\n
\n
\n \n \n {\n setShowUnsavedPopup(false);\n navigate(`/${i18n.language.slice(0, 2)}/tender_strategy`);\n }}\n >\n {t(\"Go to Tender Strategies\")}\n \n \n
\n \n );\n}\n","export default \"__VITE_ASSET__CqmCyvwy__\"","import React from \"react\";\nimport { Modal, ModalHeader, ModalBody, ModalFooter, Button } from \"reactstrap\";\nimport { useTranslation } from \"react-i18next\";\nimport tenderStrategyTutorialVideoIT from \"../../Assets/Video/tender_strategy_tutorial_video_IT.mp4\";\nimport { useComponentsStore } from \"../../Stores/componentsStore\";\n\nexport default function HelpVideoModal() {\n const [helpVideoAction, showHelpVideoModal] = useComponentsStore((state) => [\n state.helpVideoAction,\n state.showHelpVideoModal,\n ]);\n const { t } = useTranslation();\n\n return (\n {\n helpVideoAction(!showHelpVideoModal);\n }}\n >\n
\n {\n helpVideoAction(!showHelpVideoModal);\n }}\n >\n {t(\"Help\")}\n \n \n
\n {t(\"Please watch the video below for an intro to Tenders.club.\")}\n
\n
\n \n
\n
\n \n {\n helpVideoAction(false);\n }}\n >\n {t(\"Ok\")}\n \n \n
\n \n );\n}\n","import React from \"react\";\nimport { Modal, ModalHeader, ModalBody, ModalFooter, Button } from \"reactstrap\";\nimport { useTranslation } from \"react-i18next\";\nimport { useComponentsStore } from \"../../Stores/componentsStore\";\n\nexport function DislikeWarning() {\n const { t } = useTranslation();\n const [showDislikeWarningModal, setShowDislikeWarningModal] = useComponentsStore((state) => [\n state.showDislikeWarningModal,\n state.setShowDislikeWarningModal,\n ]);\n\n return (\n {\n setShowDislikeWarningModal(!showDislikeWarningModal);\n }}\n >\n
\n {\n setShowDislikeWarningModal(!showDislikeWarningModal);\n }}\n >\n {t(\"A note on dislikes\")}\n \n \n
{t(\"dislike_modal_copy\")}
\n
\n \n {\n setShowDislikeWarningModal(false);\n }}\n >\n {t(\"Ok\")}\n \n \n
\n \n );\n}\n","import React from \"react\";\nimport { Modal, ModalHeader, ModalBody, ModalFooter, Button } from \"reactstrap\";\nimport { useTranslation } from \"react-i18next\";\nimport { useAuthStore } from \"../../Stores/authStore\";\nimport { useComponentsStore } from \"../../Stores/componentsStore\";\n\nexport function CookiePopup() {\n const [_hasHydrated, cookieState, setCookieState, setCookieModalVisible, cookieModalVisible] = useComponentsStore(\n (state) => [\n state._hasHydrated,\n state.cookieState,\n state.setCookieState,\n state.setCookieModalVisible,\n state.cookieModalVisible,\n ]\n );\n\n React.useEffect(() => {\n if (_hasHydrated) {\n if (!useAuthStore.getState().firstTime) {\n if (cookieState.userHasInteracted === 0) {\n setTimeout(() => {\n setCookieModalVisible(true);\n }, 4000);\n } else {\n if (cookieState.cookiesEnabled) {\n window[\"ga-disable-G-HD1WNFNYCE\"] = false;\n } else {\n window[\"ga-disable-G-HD1WNFNYCE\"] = true;\n }\n }\n }\n }\n\n return () => {};\n }, [cookieState, _hasHydrated]);\n\n const { t } = useTranslation();\n return (\n {\n setCookieModalVisible(!cookieModalVisible);\n }}\n >\n
\n {\n setCookieModalVisible(!cookieModalVisible);\n }}\n >\n {t(\"Cookie Options\")}\n \n \n
\n {t(\n \"We only keep cookies essential to the site's functionality. To improve our service, we collect some basic (anonymous) analytics, which you may disable here.\"\n )}\n
\n
\n \n {\n setCookieModalVisible(false);\n const cookieState = { userHasInteracted: 1, cookiesEnabled: true };\n setCookieState(cookieState);\n }}\n >\n {t(\"Keep Analytics\")}\n \n {\n setCookieModalVisible(false);\n const cookieState = { userHasInteracted: 1, cookiesEnabled: false };\n setCookieState(cookieState);\n }}\n >\n {t(\"Disable Analytics\")}\n \n \n
\n \n );\n}\n","import React from \"react\";\nimport { Outlet, useLocation } from \"react-router-dom\";\nimport Header from \"./header\";\nimport Footer from \"./footer\";\nimport { SidebarContext } from \"./sidebarContext\";\nimport Alert from \"../Components/alerter\";\nimport HomeMultiLanguageVideoPopup from \"./modals/homeMultiLanguageVideoPopup\";\nimport UpgradeModal from \"./modals/upgradeModal\";\nimport UnsavedPopup from \"./modals/unsavedPopup\";\nimport HelpVideoModal from \"../Components/modals/helpModal\";\nimport Navigation from \"./nav/navigation\";\nimport { DislikeWarning } from \"../Components/modals/dislikeWarning\";\nimport { CookiePopup } from \"../Components/modals/cookiePopup\";\n\nconst SidebarProvider = (props) => {\n const [menuOpenState, setMenuOpenState] = React.useState(false);\n return (\n setMenuOpenState(val),\n stateChangeHandler: (newState) => setMenuOpenState(newState.isOpen),\n }}\n >\n {props.children}\n \n );\n};\n\nexport default function Layout() {\n const location = useLocation();\n\n return (\n \n \n \n \n \n \n \n \n \n
\n
\n \n \n
\n