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AAaqE,CAAK,IAAM,aAAc,CAClCpN,QAAO4M,GAAaQ,CAAK,EACzBF,EAAUM,GAA0BxN,CAAI,EACxC6J,GACJ7J,aAAKsM,gBAALtM,cAAoByK,MAApBzK,cAAyBoK,WAAzBpK,cAAmC6J,WAAnC7J,OAA+CoX,GAE/C,OAAAhX,EAAA,IAACqZ,IAAe,QAAQvM,mBAAS/C,gBAAT+C,OAA0B,KAChD,SAAA3L,EAAA,KAAC+W,GAAa,UAAUzO,EACtB,UAAAzJ,MAACoG,IACC,SAACpG,EAAA,IAAA00E,GAAA,CAAe,OAAQ1B,IAA6B,GACvD,QACCj6D,GAAa,KAChB,CACF,GAGN,EAEM87D,GAAgBA,CAAC,CACrBnqE,QAGF,IAAM,CACJ,MAAM2L,EAAWK,GAAmB,EAEpC,aAAQg+D,GAAe,QAAQR,GAAaxpE,EAAQ2L,CAAQ,EAAK,CACnE,EAEMs+D,GAASA,CAAC,CACdv0E,UAGF,IAAM,CACEoiD,QAAcC,GAAQ,UAAU,EACtC,OAAOriD,EAASoiD,CAAW,CAC7B,ECjNMuyB,GAA0BA,IAAM,CAC9BC,QAAoBr3E,GAAuB,qBAAqB,EAGtE,GAFgBA,GAAuB,UAAU,IAEjC,QAIhB,OAAIq3E,GACFC,GAAQC,WAAWF,CAAiB,EAG/B,IACT,EAEAG,GAASC,WAAW14C,SAAS24C,eAAe,MAAM,CAAE,EAAEC,OACpDt1E,EAAA,IAACsB,EAAM,WAAN,CACC,SAACtB,MAAAa,GAAA,CACC,SAACb,MAAAG,GAAA,CACC,gBAAC8C,GACC,WAAAjD,EAAA,IAACyD,GAAY,IACZzD,EAAA,IAAAs0E,GAAA,CACC,SAACt0E,EAAA,IAAAy0E,GAAA,CAAG,GACN,QACCM,GAAuB,UACvBh1E,GAAU,IACb,EACF,GACF,EACF,CACF","names":["NetworkError","Error","constructor","message","_i18n","_","id","name","getName","ClientError","options","status","getStatus","ServerError","UnauthorizedError","ForbiddenError","NotFoundError","details","TooManyCompaniesError","isClientError","error","isNotFoundError","appMode","z","union","literal","environmentSchema","object","VITE_APP_MODE","VITE_AUTH0_AUDIENCE","string","VITE_AUTH0_CLIENT_ID","VITE_AUTH0_DOMAIN","VITE_DIGITALNI_SKLADY_API_URL","startsWith","VITE_FIREBASE_API_KEY","VITE_FIREBASE_APP_ID","VITE_FIREBASE_AUTH_DOMAIN","VITE_FIREBASE_MEASUREMENT_ID","VITE_FIREBASE_MESSAGING_SENDER_ID","VITE_FIREBASE_PROJECT_ID","VITE_FIREBASE_STORAGE_BUCKET","VITE_FIREBASE_VAPID_KEY","VITE_GOOGLE_ANALYTICS_ID","optional","VITE_NEWS_API_URL","VITE_NEWS_OPENAPI_URL","VITE_NOTIFICATIONS_API_URL","VITE_NOTIFICATIONS_OPENAPI_URL","VITE_PRICES_API_URL","VITE_PRICES_OPENAPI_URL","VITE_PRODUCT_FRUITS_WORKSPACE_CODE","VITE_RELEASE_ID","or","undefined","VITE_USERS_API_URL","VITE_USERS_OPENAPI_URL","VITE_UNLEASH_PROXY_URL","VITE_UNLEASH_ENVIRONMENT","enum","VITE_UNLEASH_CLIENT_KEY","VITE_UNLEASH_APP_NAME","envLike","import","process","safeEnvironment","safeParse","success","stdout","write","issues","map","issue","JSON","stringify","exit","getEnvironmentVariable","key","data","Logger","setUser","bind","log","isRemoteLoggingEnabled","isTestRun","Sentry","beforeSend","e","hint","originalException","match","ignoreErrors","normalizeDepth","dsn","environment","release","integrations","useEffect","useLocation","useNavigationType","createRoutesFromChildren","matchRoutes","sendDefaultPii","tracesSampleRate","tracePropagationTargets","replaysSessionSampleRate","replaysOnErrorSampleRate","setContext","context","user","args","logger","CommitHash","jsx","Helmet","commitHash","AuthProvider","children","Auth0Provider","audience","redirect_uri","window","location","origin","prompt","RELEASE_KEY","Maintenance","useForceRefresh","override","localStorage","getItem","Jsx","jsxs","state","setState","React","useState","interval","setInterval","prev","clearInterval","useToggle","initialState","on","_setOn","reset","useCallback","setOff","setOn","toggle","cur","queryClient","QueryClient","defaultOptions","queries","refetchOnWindowFocus","retry","queryCache","QueryCache","onError","mutationCache","MutationCache","QueryProvider","QueryClientProvider","ReactQueryDevtools","oneMinute","oneHour","fifteenMinutes","cleanCommitHash","split","VersionCheck","isLatestVersion","version","useQuery","versionQuery","queryKey","refetchInterval","reload","queryOptions","queryFn","signal","commitHashSchema","hostname","parse","fetch","Math","random","method","headers","ok","response","json","safeVersion","Button","forwardRef","className","variant","disabled","rest","ref","variants","primary","secondary","Container","Delete","background","Trash","displayName","ExportedButton","Context","createContext","useDialogProvider","useContext","DialogProvider","dialog","setDialog","close","open","closeDialog","openDialog","Dialog","props","Backdrop","Actions","Cancel","Confirm","Title","Content","Spinner","withHint","showHint","timerId","setTimeout","clearTimeout","_Trans","Logout","logout","useLogout","catch","useAuth0","logoutParams","returnTo","Info","Failed","toLowerCase","includes","eventId","ZodError","showSentryEventId","Fragment","NoData","Pending","getUserState","getUser","approvalStatus","role","grants","phoneSchema","phoneNumber","countryCode","commonSchema","phone","irishPhoneSchema","extend","irishCommonSchema","settingsSchema","language","news","irishCANSchema","companies","null","array","companyNumber","settings","CANSchema","incompleteCANSchema","userMetadataSchema","common","can","incompleteUserMetadataSchema","irishUserMetadataSchema","planTypeSchema","planSchema","planId","number","type","companySchema","companyId","companyVat","nullable","transform","v","companyContactEmail","approvalState","plan","users","userEmail","email","userId","appMetadataSchema","events","registeredAt","nullish","incompleteAppMetadataSchema","irishAppMetadataSchema","userIdentitySchema","userSchema","user_metadata","merge","incompleteUserSchema","deepPartial","irishUserSchema","isIrishUser","getMaybeUser","omit","isBlocked","metadata","length","every","company","useFirstCompany","_user","invariant","getFirstCompany","at","getFirstIncompleteCompany","getRequiredFirstCompany","useRequiredFirstCompany","useTokenStore","create","set","pending","token","updateFn","setUpdateFn","getFreshToken","useTokenUpdate","forceUpdate","cacheMode","useUserRefresh","updateToken","isLoading","userState","setUserState","refreshable","setValidUserState","setInvalidUserState","then","useFeatureFlag","FeatureFlagProvider","flags","Token","store","read","forced","getState","getToken","fetchRetryJson","result","fetchRetry","get","contentDisposition","filename","replace","blob","url","retries","accessToken","Authorization","body","pricesURL","newsURL","usersURL","notificationsURL","pricesInstance","params","URLSearchParams","newsInstance","usersInstance","notificationsInstance","GetUsers1ApprovalState","WAITING","GetUsers1SortCol","EMAIL","CompanyToPlanSource","TRIAL","DEFAULT","MANUAL","PAID","CompanyFeatureToPlanType","PREMIUM","PaymentToStatus","INITIALIZED","COMPLETED","ERROR","CANCELLED","REFUNDED","CompanyDetailToForm","NATURAL_PERSON","JURIDICAL_PERSON","SubscriptionToSource","FeatureToType","MARKET_NEWS","STOCK_EXCHANGE","QUICK_TRADING","PURCHASE_PRICES","TRADING","TRANSACTIONS_ORDERS","STORAGES","getUsers","update","userUpdateRequest","patch","userPatchRequest","block","unblock","cancelSubscription","subscriptionId","confirmPayment","paymentId","paymentConfirmRequest","cancelPayment","updateCompanyDetail","companyPutRequest","userCompanyId","setUserRole","createPaid","subscriptionCreatePaidRequest","createManual","subscriptionCreateManualRequest","validate","companyValidationRequest","getLanguages","_delete","getSubscription","deleteSubscription","getDefaultFeatures","getCompanyPlans","getCompanyFeatures","getPayments","getPayment","gatewayId","getCompanyPayments","getQR","invoiceId","getInvoice","getCountries","getCountry","getCompanies","getCompany","getCompanyUsers","getUsers1","getUser1","deleteUser","exportUsers","getCurrentCompany","planFeaturesSchema","record","menu","boolean","mode","planType","FeatureProvider","companyFeatures","companyFeaturesQuery","enabled","defaultFeatures","defaultFeaturesQuery","errors","isPending","features","some","Boolean","find","safeFeatures","useFeatureProvider","ctx","staleTime","Infinity","languages","languageIds","fallbackLanguage","isDefault","invariantFallbackLanguage","getLanguage","supportedBrowserLanguages","intersection","navigator","defaultLanguage","getSupportedLanguage","desiredLanguage","dynamicActivate","i18n","locale","messages","__variableDynamicImportRuntimeHelper","__vitePreload","load","activate","I18nProvider","defaultI18n","ready","setReady","forceReload","LinguiI18nProvider","history","pushState","ProductFruitsProvider","ProductFruits","username","companyCountryCode","phoneCountryCode","ToastProvider","ToastContainer","config","clientKey","refreshInterval","appName","ToggleProvider","FlagProvider","isPremiumEnabled","isTradingEnabled","findIndex","getFlags","Map","setLocale","nextLocale","Settings","defaultLocale","currencyFormatter","currency","Intl","NumberFormat","style","numberFormatter","getPrice","cents","precision","pow","Logo","Link","LogoSvg","ErrorPage","useRouteError","components","0","isRouteErrorResponse","1","Navigate","getFeatureMode","companyPlan","feature","BackgroundContainer","BgPattern","Box","Anonymous","auth0","loginWithRedirect","authorizationParams","screen_hint","appState","href","Metadata","title","titleAppMode","toUpperCase","BlockedUser","UserSlash","path","Callback","ErrorDetails","useSearchParams","combineCallingCodeWithCountry","item","splitCallingCodeAndCountry","str","countryCodeToFlag","code","String","fromCodePoint","char","charCodeAt","join","PhoneNumber","callingCodes","form","useFormContext","register","required","country","ErrorMessage","formState","pattern","value","toggleItem","filter","sortString","a","b","callback","compA","compB","getUniqueItems","arr","uniqueFn","forEach","unique","Object","entries","sum","total","next","countriesQuery","phoneCountryCodesQuery","select","countries","splitByLanguageMatch","sortCountriesBy","companyCountriesQuery","available","hasCompanyValidator","localName","useCompanyNumberValidationMutation","useMutation","mutationKey","mutationFn","replaceAll","useCompleteUserRegistrationMutation","payload","partition","c","concat","toSorted","IncompleteUser","ErrorBoundary","Suspense","IncompleteUserForm","getIsCompanyRequired","watch","isCompanyRequired","isTokenUpdating","companyCountry","currentPhoneCountryCode","companyCountries","phoneCountryCodes","useData","navigate","useNavigate","useForm","defaultValues","completeUserRegistration","validateCompanyNumber","handleCompanyNumberValidation","getValues","setError","mutate","onSuccess","handleCountryCompanyChange","setValue","handleSubmit","regex","FormProvider","onChange","clearErrors","useSuspenseQuery","countriesWithUniqueLanguage","getMatchByLanguage","PendingUserBanner","useIsPendingUser","UserPendingSvg","firstCompany","permissions","AdminGuard","isAdmin","useHasAnyAdminPermission","nonAdminJsx","adminJsx","Outlet","PermissionGuard","onDenied","permission","permissionCheckFn","hasPermission","useHasPermission","getAccessTokenSilently","setIsAdmin","decoded","jwtDecode","isAble","setIsAble","countryPermissionCheckFn","FullStrategy$2","wrapWith","NotAvailableStrategy","PremiumBadge","Ellipse","gridRow","gridColumn","Diamond","TrialStrategy$2","MenuItemFlow","currentStrategy","strategies","FullStrategy","TrialStrategy","getStrategy","getStrategyOrThrow","getWrapper","strategy","CropIcon","cropName","Icon","Wheat","Barley","Corn","Rapeseed","Tritikale","Pea","SoyaBean","Sunflower","PageTitle","quarterYearSchema","quarterSchema","pipe","yearSchema","parseInt","quarterTransform","getHarvestYearFromQuarter","quarterWithYear","thisYear","getThisYear","quarter","year","toString","slice","DateTime","now","toFormat","getPreviousYear","isPreviousYearStillAvailable","month","day","getHarvestYears","Array","from","i","isNextQuarter","current","currentQuarter","currentYear","nextQuarter","nextYear","sameYear","quarterDeltaOne","yearDeltaOne","getNextQuarter","getSlashedQuarterName","quarterName","getPricesView","quarters","first","push","withoutFirst","shift","generatedQuarterName","chunk","PriceList","renderPrice","prices","price","PriceItem","maximumFractionDigits","format","Spacer","currencies","useCurrency","searchParams","setSearchParams","setCurrency","handleChange","target","defaultEmptyCheckFn","isNull","useLocalStorage","initialValue","emptyCheckFn","getLocalStorageItem","removeLocalStorageItem","setLocalStorageItem","stringified","setItem","removeItem","arrayEmptyCheckFn","input","useScrollbarToggle","classList","add","remove","useLazyScrollbarToggle","SCREENS","USER_PROFILE","USER_COMPANY","USER_SUCCESS","USER_FAILURE","NOTIFICATIONS","SUBSCRIPTIONS","SUBSCRIPTIONS_OVERVIEW","SUBSCRIPTIONS_DETAIL","SUBSCRIPTIONS_CANCEL","SUBSCRIPTIONS_CANCEL_FAILURE","PAYMENT_CARD","PAYMENT_BANK_TRANSFER","PAYMENT_DETAIL","screenConfigs","nextAction","screen","closeAction","isSubscriptionOverviewAction","action","isPaymentCardAction","isSubscriptionDetailAction","isSubscriptionCancelAction","isBankTransferAction","isOpenAction","isPaymentDetailOpenAction","reducer","exhaustiveCheck","useNavigation","dispatch","useReducer","actions","useMemo","openScreen","openPaymentDetail","openPaymentBankTransfer","openPaymentCard","openSubscriptionOverview","openCancelSubscription","openSubscription","noop","executeNextAction","executeCloseAction","useSidebar","useAutoclosedSidebar","Autoclose","SidebarProvider","navigation","FullStrategy$1","getFavorites","isMasked","getMaskedPrice","TrialStrategy$1","PurchasePricesFlow","setStrategy","getMasked","postalCodesSchema","latitude","longitude","fetchData","safeJson","postalCodesQuery","label","ActionGuardContext","useActionGuardProvider","useGuard","checkFn","raiseIssue","grant","canSignCheckFn","ActionGuard","guard","isArray","content","contractSignGuard","getLocalizedPeriods","DAILY","QUARTERLY","MONTHLY","YEARLY","getTranslation","translation","Plans","plans","plansQuery","TwoColumnLayout","header","values","Plan","active","useLingui","featureDescriptionId","featureTitleId","icon","periods","Pricing","FreePricing","CheckCircleGreen","period","activeSubscription","useActiveSubscriptionEndDate","translations","activePeriod","activePrice","formattedPrice","getFormattedPrice","handleGuardedPeriodClick","handlePeriodClick","periodId","backgroundImage","angleSmallDownSvg","expiresAt","inPlan","LockedScreen","currentCompanyQuery","manualSubscriptions","subscriptions","s","source","paidSubscriptions","trialSubscriptions","subscription","fromISO","toLocaleString","DATE_MED","useClickAway","useRef","refCallback","handler","element","contains","addEventListener","removeEventListener","InputField","registerRest","wheelCancel","disableWheel","disableWheelHandler","passive","capture","preventDefault","PostalCodeField","firstRun","postalCodes","postalCodeField","postalCodeValue","setSuggestionsVisible","suggestions","usePostalCodeField","postalCode","pc","Search","Suggestions","selectSuggestion","suggestionsVisible","Provider","currencySchema","initialParams","createSearchParams","useCurrencyParams","parsedParams","fromEntries","PostalCodeDialog","setPostalCode","usePostalCodeDialogParams","clickAwayRef","postalCodeObject","Cross","postalCodeSchema","refine","isNaN","enforceDialog","search","delete","IWantToTradeDialog","onClick","ShopSvg","requestMiddleware","request","controller","AbortController","graphqlClient","GraphQLClient","init","ContractStatus","Confirmed","Processing","Signed","Success","Currency","Czk","Eur","TradeType","FromStorage","ToStorage","CropPricesRegionDocument","AddFastContractDocument","AddFastOrderDocument","OfferDocument","OfferPricesDocument","StorageDocument","RemoveOrderDocument","AddStorageDocument","ArchiveOfferDocument","ArchiveStorageDocument","EditOfferDocument","EditStorageDocument","AddOfferDocument","StorageOffersDocument","CompaniesDocument","CropsDocument","UserDocument","OrdersForOfferDocument","AddOrderDocument","AddContractDocument","CropLastPricesDocument","FutureQuartersDocument","StorageAggregatedPricesDocument","StoragesForTradingDocument","ContractsDocument","ContractDocument","ConfirmationDocument","EditOrderDocument","OrderListDocument","OrdersDocument","documents","types","graphql","cropPricesQueryDocument","cropPricesSchema","crop","date","cropPricesQuery","variables","cropPricesInRegion","sort","aName","bName","index","y","PurchasePrices","flow","marketPriceId","useParams","isDetailOpen","sidebar","isRightPaneOpen","CurrencySwitch","favorites","setFavorites","showPackages","cropPrices","favoriteCropPrices","otherCropPrices","toggleFavorite","CrossSvg","items","starFilledSrc","iconTitle","starOutlineSrc","titleTooltip","starSrc","section","p","masked","dataUpdatedAt","fromMillis","DATETIME_FULL","PurchasePricesParams","pathname","Restoration","savedParams","setSavedParams","isValidPostalCode","getHTML","markdown","html","unified","use","remarkParse","remarkRehype","rehypeDomStringify","processSync","doc","document","implementation","createHTMLDocument","innerHTML","nullIf","nullLikeValue","skeletonProps","dateFrom","dateTo","headline","summary","skeleton","image","PreviewCard","_dateFrom","toJSDate","_dateTo","dateRangeFormatter","DateTimeFormat","_image","imageRef","imageStatus","useFailedImage","imageLoaded","newsPlaceholderSvg","TimeSpan","formatRange","Headline","Summary","setStatus","src","dynamicFilterCount","yyyymmdd","today","getAvailableFilters","oldest","filters","getLastMonthFilter","minus","oldestYear","previousYear","yearLabel","startOf","endOf","getNextFilter","getFilterByDateRange","position","f","getURLParams","getFilterParams","resetURLParams","urlParams","getInitialFilter","QuickFilters","activeFilter","isCurrent","SearchParamsLink","to","param","MergeSearchParamsLink","linkParams","linkURLParams","indexOf","getAbsolutePath","imageUpload","GetReportsSortOrder","DESC","ReportCommodityToRecommendation","BULLISH","BEARISH","NORMAL","getReport","putReport","reportUpdateTo","deleteReport","patchReport","reportPatchTo","getReports","createReport","reportCreateTo","createBody","getCommodities","commoditiesQuery","languagesQuery","sortBy","reportQuery","uploadImage","formData","FormData","append","reportCreateMutation","reportUpdateMutation","EditorErrorMessage","MenuBar","editor","chain","focus","toggleBold","run","isActive","toggleItalic","unsetAllMarks","toggleHeading","level","toggleBulletList","toggleOrderedList","commoditySchema","commodityId","int","recommendationText","recommendation","keys","reportFormSchema","instanceof","File","commodities","min","reportPayloadSchema","imageId","getReportPayload","structuredClone","uploaded","guid","safePayload","commodity","getMarkdownPayload","htmlWithImages","getHTMLWithImages","getMarkdown","rehypeParse","rehypeRemark","remarkStringify","images","querySelectorAll","handleImageDrop","view","event","_slice","moved","dataTransfer","files","file","img","createElement","URL","createObjectURL","schema","coordinates","posAtCoords","left","clientX","top","clientY","node","nodes","transaction","tr","insert","pos","getInitialValues","toISODate","plus","days","imagePreview","reportCommodity","Commodity","useEditorForm","Editor","onUpdate","useEditor","extensions","editorProps","handleDrop","attributes","class","storage","EditorContent","StarterKit","configure","bulletList","keepMarks","keepAttributes","orderedList","Markdown","Image","EditorProvider","isUpdate","report","useQueryClient","createMutation","reportsPath","alert","updateMutation","invalidateQueries","failed","loading","formValues","cloned","initialValues","EditorForm","methods","busy","onSubmit","reportImageRef","reportImagePreviewRef","buildPreviewImage","clearNode","firstChild","lastChild","removeChild","preview","appendChild","handleImageReset","handleImagePreview","validateSubmit","getReportsQueryParamsSchema","enforcePlans","coerce","reportsQuery","safeParams","reports","reportsDateRangeQuery","newest","last","deleteReportMutation","changeReportStatusMutation","useFilterClickHandler","shouldReset","useEnforcePlans","handlePlanPurchaseClick","handleClosePlans","sortOrder","SortOrder","nextSortOrder","SortAlt","initialSortOrder","Toolbar","changeReportStatus","handleStatusChange","handleDelete","actionProps","editorPath","getParams","getInitialDateFilter","Reports","isReportsManager","previousReportsCount","useReportSearchParams","reportId","reportsDateRange","availableFilters","nextFilter","getActiveAndNextFilter","handleFilterClick","NextButtonJsx","ReportsParams","ChartJS","CategoryScale","LineController","LinearScale","PointElement","LineElement","Filler","Tooltip","Chart","tooltip","chartRef","tooltipRef","lineRef","existingChart","getChart","destroy","chart","datasets","borderColor","getBorderColor","parsing","yAxisKey","xAxisKey","borderWidth","borderDash","pointRadius","fill","backgroundColor","getBackgroundColor","responsive","maintainAspectRatio","interaction","axis","animation","layout","padding","scales","x","border","color","grid","ticks","align","autoSkip","dash","tickLength","tickColor","beginAtZero","minimumFractionDigits","parseFloat","plugins","legend","display","usePointStyle","intersect","displayColors","external","externalTooltipHandler","callbacks","raw","datasetIndex","safeRaw","rate","datetime","afterBody","Price","Trend","ArrowUpRight","ArrowDownRight","Source","ChartContainer","chartArea","gradient","createLinearGradient","right","addColorStop","tooltipEl","lineEl","opacity","currentLegend","nextLegend","lines","reduce","nextChunk","offsetLeft","positionX","offsetTop","positionY","canvas","yBox","boxes","box","dataPoints","height","width","caretX","caretY","GetCommodityCurrentCurrency","EUR","getRate","currency1","currency2","getCommodityRates","getCommodityCurrent","mapping","RAPESEED","WHEAT","CRUDE_OIL","Oil","ranges","rangesSchema","stockExchangeParamsSchema","wheat","rapeseed","crude_oil","currencyPair","defaultParams","getFilters","week","currencyPairQuery","range","getQueryOptions","rates","getChartData","trend","getTrend","commodityOutlookQuery","dateRange","d","diff","commodityQuery","getFormattedDate","TIME_SIMPLE","DATE_SHORT","useActiveFilter","useFilters","commodityIdParam","CurrencyProvider","filtersWithoutToday","useDetectCurrency","query","CommodityProvider","useSuspenseQueries","q","Filters","Outlook","outlook","getOutlookItem","isHighlighted","notLast","CurrentLegend","NextLegend","firstOfMonth","fromFormat","charts","unit","StockExchange","QueryErrorResetBoundary","resetErrorBoundary","CoinUpArrow","StockExchangeParams","useStockExchangeParams","useSearchFieldParams","clearValue","SearchField","getSnapshot","matchMedia","matches","subscribe","useMediaQuery","useSyncExternalStore","useIsMobile","addStorageDocument","useAddStorage","address","zip","archiveOfferDocument","useArchiveOffer","client","archiveStorageDocument","useArchiveStorage","entitySchema","editOfferDocument","useEditOffer","offer","editStorageDocument","addOfferDocument","useEditStorage","predicate","editStorage","useAddCrop","existingOffers","cropsAlreadyInStorage","storageId","existingOffer","harvestYear","crops","Set","amount","tons","totalAmount","yearHarvested","storageOffersDocument","cropsAlreadyInStorageSchema","offers","archived","safeOffers","edges","edge","companiesDocument","companiesSchema","companiesQuery","cropsQueryDocument","cropsSchema","cropsQuery","tradeType","safeResult","isMatchingSearch","cropNameMatch","mark","storageNameMatch","hasMatch","storagesQueryDocument","userQuery","storagesSchema","default","orderAmount","lastPrice","storagesQuery","_company","storages","_storage","orders","order","acc","lastPrices","safeStorage","size","ThreeStepProgressBar","freeAmount","contractAmount","CommodityCard","Available","_available","Stored","pricePerTon","ProgressBar","FullscreenModalLayout","headerButton","graphqlErrorSchema","validation","graphql2ErrorSchema","handleFormError","graphqlError","graphql2Error","field","storageQueryDocument","storageSchema","storageQuery","o","StorageForm","buttons","transformData","ExistingStorage","archiveStorage","closeDeleteDialog","openDeleteDialog","handleSubmitStorage","handleDeleteStorage","onSettled","DeleteDialog","PlusSvg","NewStorage","addStorage","Management","amountSum","totalAmountSum","totalOrderSum","lastPriceSum","GarageOpenSvg","newStoragePath","Plus","Storages","offerId","isRightSideOpen","ManagementLink","Storage","Overview","PencilSvg","BoxesSvg","managementPath","Gears","isMobile","AngleSmallDownSvg","StoragesParams","ordersDocument","orderSchema","lowPrice","ordersQuery","addOrderDocument","useAddOrderMutation","quarterId","note","customTransport","transportNote","addContractDocument","useAddContractMutation","contract","marketPrice","cropLastPricesDocument","cropLastPricesSchema","cropLastPricesQuery","cropId","cropIds","sortQuarter","futureQuartersDocument","futureQuartersQuery","cropAggregatedPricesDocument","cropAggregatedPricesSchema","cropAggregatedPricesQuery","toSeconds","aggregatedPrices","fromSeconds","apiCompany","allOffers","currentOffer","Trades","TradesParams","NavBar","renderItem","links","getClassName","purchasePricesPath","MagnifyChartSvg","SendMoneySvg","stockExchangePath","ChartSvg","NewspaperSvg","tradesPath","UsdCircleSvg","storagesPath","BooksSvg","link","restOfLink","Wrapper","NavLink","inactive","featureFlag","SideBar","expanded","hasPackages","useFlag","itemClassName","OldNavBar","AdminUser","ArrowAltToRight","PushCreateRequestPlatform","IOS","archiveNotification","pushCreateRequest","getNotifications","Notification","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","EllipseGradient","Body","CreatedAt","DATETIME_SHORT","isNotificationSupported","useNotificationsState","firebaseConfig","apiKey","authDomain","projectId","storageBucket","messagingSenderId","appId","measurementId","app","initializeApp","messaging","getMessaging","serviceWorker","NotificationBell","notificationsState","saveFirebaseToken","useSaveFirebaseTokenMutation","refetch","refetchToken","useFirebaseTokenQuery","platform","Bell","isSupported","vapidKey","onMessage","safeNotification","notification","toast","Toast","closeToast","NotificationComponent","companyPlansQuery","UserSvg","SubscriptionSvg","DollarSvg","UserMenu","hasMultiplePlans","hasMultiplePlansQuery","hasPlans","itemFilter","profile","UserMenuTree","Desktop","Mobile","TopBar","toggleBodyScrollbar","expandedProfile","handleToggle","handleToggleProfile","handleMenuAction","CircleUserSvg","MenuBurgerSvg","UserProfile","usePrevious","useScrollRestoration","previouslyActive","linkRef","isScrollingRef","clickTimeoutRef","scrollIntoView","scrollIntoViewIfNeeded","inline","handleLinkClick","clickedLink","closest","queueMicrotask","handleScroll","focusClickedElement","Msg","text","toaster","messageProps","toastProps","NotificationList","notifications","notificationsQuery","createdAt","archiveMutation","autoClose","setQueryData","previous","useClipboard","clipboard","writeText","getDateFromISOString","dateLike","getLocalizedPaymentStatus","useDownloadInvoiceMutation","download","click","revokeObjectURL","PropertiesList","properties","row","useQRCode","qrCode","qrCodeQuery","qrCodeRef","createRef","Blob","blobUrl","PaymentDetail","payment","paymentDetailQuery","downloadInvoice","handleDownloadInvoice","copyToClipboard","AngleLeftSvg","paymentType","billing","iban","CopySvg","swift","account","variableSymbol","invoices","invoice","DocumentSvg","DownloadSvg","QRCode","gateway","planPeriod","amountTotal","bank","PaymentBankTransfer","handleRedirect","TimesHexagonSvg","accountNumber","priceWithVAT","getLocalizedSubscriptionStatus","ACTIVE","EXPIRED","AWAITING_PAYMENT","DELETED","INCOMPLETE","PAST_DUE","WrapMeWith","when","wrapper","itemsPerPage","ten","oneHundred","maxVisiblePages","minPageNumber","Pagination","getter","setter","pageSize","getLastPage","ceil","getPageRange","page","end","_start","clamp","currentPage","lastPage","visiblePages","start","_end","hasPreviousPages","hasNextPages","BackArrow","ArrowSmallRight","NextArrow","getHumanPageNumber","Payments","setPage","payments","paymentsQuery","Payment","totalSize","BankTransferSvgUrl","SubscriptionSvgUrl","Status","sortDir","PaymentsTree","useSubscriptions","paid","Subscription","manual","ManualSubscription","description","BASIC","FreeSvgUrl","mapSubscription","PLUS","subscriptionQuery","isCancellable","startedAt","DATETIME_MED","nextPaymentAt","nexPaymentAt","useCancelSubscriptionMutation","useCreateCardSubscriptionMutation","useCreateBankTransferSubscriptionMutation","paymentMethodsQuery","countryId","paymentMethods","useSubscriptionScreen","useCancelSubscriptionScreen","SubscriptionCancel","handleCancelSubscription","TrashGradientSvg","Failure","SubscriptionDetail","FullSubscriptionDetail","BasicSubscriptionDetail","useCountryCode","currentCountryCode","CompanyForm","disabledFields","omitFields","companyName","vat","detail","legalForm","contact","contactName","contactPosition","contactEmail","contactPhone","useUpdateCompanyMutation","companyQuery","populatorFields","mapPopulatorFields","SubscriptionOverview","termsOfService","cardRef","bankTransferRef","createCardSubscription","createBankTransferSubscription","isCardPayment","nativeEvent","submitter","isBankTransferPayment","trigger","stripe","clientSecret","publicKey","dirtyFields","getSubscriptionRange","getNextPaymentDate","Subscriptions","button","component","TimesHexagon","CheckCircle","AngleLeft","Form","updateCompany","guardedSubmit","companyForm","CompanyFormComponent","useUpdateUserSettingsMutation","appLanguagesQuery","UserSettings","appLanguage","appLanguages","marketNewsLanguages","updateUser","newsLanguage","Building","LazyPaymentCard","lazy","module","PaymentCard","LazyPaymentCardSubmitButton","SubmitButton","SidebarScreen","Layout","isSidebarOpen","hasRightSide","QuickTrading","QuickTradingParams","PWAInstaller","hidden","hide","show","dismissed","dismiss","installPrompt","handleInstallation","installPromptSchema","apply","outcome","function","returns","promise","Root","NavigateToInitialPage","Filter","column","onFilterChange","filterKey","columnDef","meta","SelectFilter","Table","Head","table","getHeaderGroups","headerGroup","getCanFilter","flexRender","getContext","getRowModel","rows","getVisibleCells","cell","planSource","planValid","sortCol","authorizedCountriesQuery","isAuthorized","columnHelper","createColumnHelper","useCompanyParams","handleParamChange","columns","accessor","info","getValue","filterVariant","Companies","titleKey","useId","authorizedCountries","placeholderData","keepPreviousData","useReactTable","getCoreRowModel","manualFiltering","columnVisibility","getColumn","planExpiresAt","fetchStatus","selectCompany","companyUsersQuery","useUpdateCompanySubscriptionPlanMutation","useCompanyId","Detail","resetForm","SubscriptionForm","manualSubscription","updateCompanySubscriptionPlan","setValueAs","isDateTime","hasComplanyPlanPermission","deleteManualSubscription","useDeleteManualSubscriptionMutation","handleDeleteManualSubscriptionClick","TrashSvg","subscriptionsTable","GoogleSrc","UserIdentity","identity","_identity","identityIcon","Key","UserCompanyAction","userCompanyRelationId","userCompanyMutation","useUserCompanyMutation","useUserRoleMutation","UserRoleAction","initialRole","userRoleMutation","pendingUsersQuery","useUserStateMutation","UserStateAction","initialStatus","isStatusSet","userStateMutation","Users","hasCompanyApprovePermission","hasUserCompanyDeletePermission","hasCompanyRolePermission","userTable","Company","Action","useConfirmPaymentMutation","useCancelPaymentMutation","Invoice","fallbackTable","usePaymentsParams","canEditPayment","invoiceColumn","actionColumn","manualPagination","paymentStatus","variable","VariableSymbolCell","handleClick","ctrlKey","fallback","usePendingUsersParams","pendingUsers","enableColumnFilter","filterFns","usersQuery","useExportUsersMutation","generatePath","companyPath","useUsersParams","exportUsersMutation","identities","handleExport","isInitialLoading","handleSentryTest","Date","usersPath","companiesPath","paymentsPath","pendingUsersPath","Loader","clickAway","User","useConfirmedAction","rejectRef","resolveRef","runWhenConfirmed","Promise","resolve","reject","finally","useDeleteCompanyRelationMutation","useResetUserMutation","ssoUserId","encodeURIComponent","useDeleteUserMutation","PendingUser","userMetadata","userName","DangerZone","canDeleteCompanyRelation","canResetUser","deleteCompanyRelation","resetUser","handleResetUser","handleDeleteCompanyRelation","useBlockUserMutation","blocked","UserComponent","canDeleteUser","canBlockUser","blockUser","handleDeleteUser","handleBlockUser","routes","RedirectToAvailableScreen","AdminLayout","Payments.Payments","Company.Company","Company.Pricing","Company.Subscriptions","Company.SubscriptionForm","Company.Detail","Company.Users","Users.Users","userPath","User.User","Companies.Companies","PendingUsers","PendingUsers.Users","canEditNews","canManageUsersOrCompanies","getDummyReport","ReportsFlow","maskedInterval","Interval","fromDateTimes","summaryHTML","recommendationTextHTML","myI18n","setupI18n","Report","dummy","__html","Recommendation","BlackSilo","CallToAction","DiamondSvgSrc","equalSvg","bearishSvg","bullishSvg","Skeleton","newspaperSvg","getReportsRoutes","errorElement","Report.Skeleton","Report.Report","stockExchangeRoutes","TopEkosLogo","addFastContractDocument","useAddFastContractMutation","fastContract","gps","addFastOrderDocument","useAddFastOrderMutation","fastOrder","QuickTradingDetail","addFastContract","matchingPrice","getMatchingPrice","failedPath","successPath","totalPrice","isFinite","valueAsNumber","OrderForm","CompanyField","CustomTransportField","hasCustomTransport","NoteField","AmountField","QuarterField","futureQuarters","TraderField","LowPriceField","hasLowPrice","PriceField","formId","Order","useOrderContext","addFastOrder","lowPricePerTon","formErrors","contextSchema","nan","useOutletContext","ContractItem","finalPrice","externalNumber","timeCreated","ExternalNumber","archiveOrderDocument","useRemoveOrderMutation","orderId","OrderItem","removeOrder","handleRemove","newestFirst","contractsDocument","contractsQuery","contracts","createSafeContract","totalSalesQuery","toISO","timeProcessed","contractPrice","contractDocument","contractSchema","nativeEnum","confirmation","completed","traderSigned","signatureSchema","slug","contractQuery","safeContract","safeSignature","userSignature","maybeContract","confirmationDocument","safeContractSchema","docusealSlug","signedByTrader","confirmationQuery","contractId","editOrderDocument","useEditOrderMutation","offerOrdersDocument","orderDetailSchema","customTransportNote","unitPrice","unitLowPrice","orderDetailQuery","cropsInOrdersQuery","sortedCrops","orderListQuery","arraySchema","CanISignContractGuard","TooManyCompanies","Signature","CanContractBeSigned","ContractStatusComponent","Download","callbackUrl","formReady","handleComplete","DocusealForm","Contract","ButtonJsx","signaturePath","Document","closeConfirmationDialog","openConfirmationDialog","editOrder","existing","handleRemoveOrder","ConfirmationDialog","useIsDetailOpen","useIsCurrentContract","useIsCurrentOrder","TransactionsAndOrders","ContractList","OrderList","useContractsQuery","combine","results","errored","r","isCurrentContract","contractPage","setContractPage","usePageParams","contractPath","isCurrentOrder","orderFilter","setOrderFilter","orderPage","setOrderPage","activeFilters","intersectionWith","orderPath","Params","useTransactionsAndOrdersParams","overviewRange","setOverviewRange","TotalSales","TotalSalesSvg","overview_range","order_filter","order_page","contract_page","paramsSchema","never","nextFilters","ContractLink","resolvePath","transactionsAndOrdersPath","OrderLink","CropList","AngleRight","NewCrop","currentCrop","handleCropSelect","handleCropClear","useCurrentCrop","availableCrops","addCropMutation","relative","CropForm","setCurrentCrop","offerQueryDocument","offerSchema","parameters","perUnit","offerQuery","cropParameter","PriceChart","slashedQuarterName","dateFilters","useTradeDetailParams","onDateFilterClick","currentDateFilter","TradesDetailSell","useTradesDetailSellContext","addContract","max","TransactionLink","TradeDetail","firstPrice","currentPriceId","currentPrice","sellPath","CheckboxCheckedSvg","getSearchParamsSchema","Offer","archiveOffer","handleDeleteOffer","Pencil","tradeDetailPath","parameter","CropDetail","onDelete","cropTons","setCropTons","OfferEdit","editOffer","Storages.StoragesParams","Storages.Storages","StoragesManagement","StoragesManagement.Management","Storage.ExistingStorage","Storage.NewStorage","NewCrop.NewCrop","Offer.Offer","OfferEdit.OfferEdit","TradesDetailOrder","useTradesDetailOrder","addOrder","mutation","quickTradingRoutes","QuickTrading.Restoration","QuickTrading.QuickTradingParams","QuickTrading.QuickTrading","QuickTradingDetail.QuickTradingDetail","QuickTradingOrder","QuickTradingOrder.Order","Success.Success","Failed.Failed","getPurchasePricesRoutes","PurchasePrices.Restoration","PurchasePrices.PurchasePricesParams","PurchasePrices.PurchasePrices","tradingRoutes","Trades.TradesParams","Trades.Trades","TradeDetail.Params","TradeDetail.TradeDetail","TradesDetailSell.TradesDetailSell","TradesDetailOrder.TradesDetailOrder","TradesDetailSell.TransactionLink","transactionsAndOrdersRoutes","TransactionsAndOrders.Params","TransactionsAndOrders.TransactionsAndOrders","ContractDetail.Contract","ContractDetail","Signature.Signature","OrderDetail.Order","OrderDetail","useGoBackToApp","isUpdatingToken","readyToNavigate","handleRedirectClick","useIsSubscriptionPaidByCard","cardQueryParams","useIsSubscriptionPaidByBankTransfer","bankTransferQueryParams","useSubscriptionId","isPaidByCard","isPaidByBankTransfer","Subscribed","isRefetching","paymentStatusQuery","animate","FailedScreen","SubscribedSvg","Unsubscribed","RandomImage","Unsubscribed1Svg","Unsubscribed2Svg","createIncompleteUserRouter","createBrowserRouter","IncompleteUser.IncompleteUser","createBlockedUserRouter","createAnonymousRouter","callbackPath","featureRoutes","full","trial","storagesRoutes","getFeatureRoutes","featureConfig","getRoutes","SubscriptionLayout","resolveInitialPage","flatMap","adminRoutes","quickTradingPath","createRouter","usePurchasePricesParams","purchasePricesSchema","basicRoutes","Setup","tokenUpdateFn","setUpdateTokenFn","App","RouterProvider","DropMe","packagesEnabled","CompanyRouter","createOldRouter","GoogleAnalyticsProvider","googleAnalyticsId","ReactGA","initialize","ReactDOM","createRoot","getElementById","render"],"ignoreList":[],"sources":["../../src/api/errors.ts","../../src/common/services/env.ts","../../src/common/services/logger.ts","../../src/common/components/commit-hash/commit-hash.tsx","../../src/common/providers/auth-provider.tsx","../../src/common/components/maintenance/maintenance.tsx","../../src/common/hooks/use-toggle.ts","../../src/common/providers/query-provider.tsx","../../src/common/components/version-check/version-check.tsx","../../src/common/components/button/button.tsx","../../src/common/components/dialog/dialog.tsx","../../src/common/components/spinner/spinner.tsx","../../src/routes/logout/logout.tsx","../../src/common/components/info/info.tsx","../../src/common/services/user.ts","../../src/common/hooks/use-first-company.ts","../../src/common/providers/token-provider.ts","../../src/common/hooks/use-incomplete-user-refresh.ts","../../src/common/providers/feature-flag-provider.tsx","../../src/api/token.ts","../../src/api/fetch-retry.ts","../../src/api/client.ts","../../src/generated/api/users.ts","../../src/common/providers/feature-provider.tsx","../../src/generated/languages.ts","../../src/common/services/i18n.ts","../../src/common/providers/i18n-provider.tsx","../../src/common/providers/product-fruits-provider.tsx","../../src/common/providers/toast-provider.tsx","../../src/common/providers/toggle-provider.tsx","../../src/common/services/feature-flag.ts","../../src/common/services/formatter.ts","../../src/common/components/logo/logo.tsx","../../src/common/components/error-page/error-page.tsx","../../src/domain/plan/feature-mode.service.ts","../../src/common/components/background-container/background-container.tsx","../../src/routes/anonymous/anonymous.tsx","../../src/common/components/metadata/metadata.tsx","../../src/routes/blocked-user/blocked-user.tsx","../../src/routes/callback/callback.tsx","../../src/common/utils/phone.ts","../../src/common/utils/unicode.ts","../../src/common/components/form/phone-number/phone-number.tsx","../../src/common/utils/array.ts","../../src/routes/incomplete-user/incomplete-user.api.ts","../../src/routes/incomplete-user/incomplete-user.tsx","../../src/common/components/pending-user-banner/pending-user-banner.tsx","../../src/routes/admin/permissions.ts","../../src/common/acl/guard/guard.tsx","../../src/domain/plan/nav-bar/strategies/full.strategy.ts","../../src/domain/plan/nav-bar/strategies/not-available.strategy.ts","../../src/common/components/premium-badge/premium-badge.tsx","../../src/domain/plan/nav-bar/strategies/trial.strategy.ts","../../src/domain/plan/nav-bar/nav-bar.flow.ts","../../src/common/components/crop-icon/crop-icon.tsx","../../src/common/components/page-title/page-title.tsx","../../src/common/utils/trading.ts","../../src/common/components/price-list/price-list.tsx","../../src/common/components/spacer/spacer.tsx","../../src/common/hooks/use-currency.tsx","../../src/common/hooks/use-local-storage.ts","../../src/common/hooks/use-scrollbar-toggle.ts","../../src/common/providers/sidebar-provider/sidebar-provider.tsx","../../src/domain/plan/purchase-prices/strategies/full.strategy.ts","../../src/domain/plan/purchase-prices/strategies/trial.strategy.ts","../../src/domain/plan/purchase-prices/purchase-prices.flow.ts","../../src/routes/shared/api/get-postal-codes.ts","../../src/common/acl/action-guard/action-guard.tsx","../../src/common/utils/period.ts","../../src/generated/plan-feature-i18n.ts","../../src/routes/shared/components/locked-screen/locked-screen.tsx","../../src/common/hooks/use-click-away.ts","../../src/common/components/form/input-field/input-field.tsx","../../src/routes/storages/components/storage-form/postal-code-field.tsx","../../src/routes/shared/currency.params.ts","../../src/routes/shared/components/postal-code-dialog/postal-code-dialog.tsx","../../src/routes/purchase-prices/components/i-want-to-trade-dialog.tsx","../../src/api/graphql.ts","../../src/generated/digitalnisklady.cz/graphql.ts","../../src/generated/digitalnisklady.cz/gql.ts","../../src/routes/purchase-prices/purchase-prices.api.ts","../../src/routes/purchase-prices/purchase-prices.tsx","../../src/common/utils.ts","../../src/common/components/preview-card/preview-card.tsx","../../src/common/components/quick-filters/quick-filters.utils.ts","../../src/common/components/quick-filters/quick-filters.tsx","../../src/common/components/search-params-link/search-params-link.tsx","../../src/routes/routes.utils.ts","../../src/api/image-upload.ts","../../src/generated/api/news.ts","../../src/routes/admin/editor/editor.api.ts","../../src/routes/admin/editor/editor.error-message.tsx","../../src/routes/admin/editor/editor.menu-bar.tsx","../../src/routes/admin/editor/editor.utils.ts","../../src/routes/admin/editor/editor.commodity.tsx","../../src/routes/admin/editor/editor.tsx","../../src/routes/reports/reports.api.ts","../../src/routes/reports/reports.hooks.ts","../../src/routes/reports/reports.sort-order.tsx","../../src/routes/reports/reports.toolbar.tsx","../../src/routes/reports/reports.tsx","../../src/common/components/chart/chart.tsx","../../src/generated/api/prices.ts","../../src/routes/stock-exchange/stock-exchange.utils.tsx","../../src/routes/stock-exchange/stock-exchange.api.ts","../../src/routes/stock-exchange/stock-exchange.hooks.ts","../../src/routes/stock-exchange/stock-exchange.chart.tsx","../../src/routes/stock-exchange/stock-exchange.outlook.tsx","../../src/routes/stock-exchange/stock-exchange.tsx","../../src/common/components/search-field/search-field.tsx","../../src/common/hooks/use-media-query.ts","../../src/routes/storages/api/add-storage.ts","../../src/routes/storages/api/archive-offer.ts","../../src/routes/storages/api/archive-storage.ts","../../src/common/schema/entity.ts","../../src/routes/storages/api/edit-offer.ts","../../src/routes/storages/api/edit-storage.ts","../../src/routes/storages/api/get-companies.ts","../../src/routes/storages/api/get-crops.ts","../../src/common/utils/search.ts","../../src/routes/storages/api/get-user.ts","../../src/routes/storages/api/get-storages.ts","../../src/routes/storages/components/progress-bar/progress-bar.tsx","../../src/routes/storages/components/commodity-card/commodity-card.tsx","../../src/routes/layout/layout.fullscreen.tsx","../../src/routes/shared/api/error-handler.ts","../../src/routes/shared/api/get-storage.ts","../../src/routes/storages/components/storage-form/storage-form.tsx","../../src/routes/storages/storages.storage.tsx","../../src/routes/storages/storages.management.tsx","../../src/routes/storages/storages.tsx","../../src/routes/trades/trades.api.ts","../../src/routes/trades/trades.tsx","../../src/common/components/nav-bar/nav-bar.tsx","../../src/common/components/nav-bar/nav-bar.old.tsx","../../src/common/components/side-bar/side-bar.tsx","../../src/generated/api/notifications.ts","../../src/common/components/push-notifications/notification.tsx","../../src/common/components/push-notifications/use-notification-state.ts","../../src/common/components/push-notifications/push-notifications.tsx","../../src/routes/shared/api/company.api.ts","../../src/common/components/user/user-menu/user-menu.tsx","../../src/common/components/top-bar/top-bar.tsx","../../src/common/components/user-profile/user-profile.tsx","../../src/common/hooks/use-previous.ts","../../src/common/hooks/use-scroll-restoration.ts","../../src/common/components/toast/toast.tsx","../../src/common/components/push-notifications/notification-list.tsx","../../src/common/hooks/use-clipboard.ts","../../src/common/utils/date.ts","../../src/common/utils/payment-status.ts","../../src/routes/shared/api/get-invoice.ts","../../src/common/components/properties-list/properties-list.tsx","../../src/common/components/subscriptions/use-qr-code.ts","../../src/common/components/subscriptions/payment.detail.tsx","../../src/common/components/subscriptions/payment-bank-transfer.tsx","../../src/common/utils/subscription-status.ts","../../src/common/components/wrap-me-with/wrap-me-with.tsx","../../src/common/components/pagination/pagination.tsx","../../src/common/components/subscriptions/payments.tsx","../../src/common/components/subscriptions/overview.tsx","../../src/common/components/subscriptions/subscription.api.tsx","../../src/common/components/subscriptions/use-subscription-screen.ts","../../src/common/components/subscriptions/subscription.cancel.tsx","../../src/common/components/subscriptions/subscription.detail.tsx","../../src/common/components/user-settings/hooks/use-country-code.ts","../../src/common/components/company-form/company-form.tsx","../../src/common/components/user-settings/components/company-form/company-form.api.ts","../../src/common/components/subscriptions/subscription.overview.tsx","../../src/common/components/subscriptions/subscriptions.tsx","../../src/routes/shared/routes/failed/failed.tsx","../../src/routes/shared/routes/success/success.tsx","../../src/common/components/user-settings/components/company-form/company-form.tsx","../../src/common/components/user-settings/user-settings.api.ts","../../src/common/components/user-settings/user-settings.tsx","../../src/common/providers/sidebar-provider/sidebar-screen.tsx","../../src/routes/layout/layout.tsx","../../src/routes/quick-trading/quick-trading.api.ts","../../src/routes/quick-trading/quick-trading.tsx","../../src/common/components/pwa-installer/pwa-installer.tsx","../../src/routes/root/root.tsx","../../src/routes/admin/components/table/filter/filter.tsx","../../src/routes/admin/components/table/table.tsx","../../src/routes/admin/companies/companies.api.ts","../../src/routes/admin/companies/companies.tsx","../../src/routes/admin/company/company.api.ts","../../src/routes/admin/company/use-company-id.ts","../../src/routes/admin/company/components/detail.tsx","../../src/routes/admin/company/components/pricing.tsx","../../src/api/form-reset.tsx","../../src/routes/admin/company/components/subscription-form.tsx","../../src/routes/admin/company/components/subscriptions.tsx","../../src/assets/icons/google.png","../../src/common/components/user-identity/user-identity.tsx","../../src/routes/admin/components/user-actions/user-company-action.tsx","../../src/routes/admin/components/user-actions/user-role-action.api.ts","../../src/routes/admin/components/user-actions/user-role-action.tsx","../../src/routes/admin/pending-users/pending-users.api.ts","../../src/routes/admin/components/user-actions/user-state-action.tsx","../../src/routes/admin/company/components/users.tsx","../../src/routes/admin/company/company.tsx","../../src/routes/admin/payments/components/action.tsx","../../src/routes/admin/payments/components/invoice.tsx","../../src/routes/admin/payments/payments.tsx","../../src/routes/admin/pending-users/pending-users.tsx","../../src/routes/admin/users/users.api.ts","../../src/routes/admin/users/users.tsx","../../src/routes/admin/components/layout/layout.tsx","../../src/routes/admin/components/loader/loader.tsx","../../src/routes/admin/components/user/user.tsx","../../src/routes/admin/components/user/user.api.ts","../../src/routes/admin/pending-users/pending-user.api.ts","../../src/routes/admin/pending-users/pending-user.tsx","../../src/routes/admin/users/user.api.ts","../../src/routes/admin/users/user.tsx","../../src/routes/routes.admin.tsx","../../src/domain/plan/reports/strategies/full.strategy.ts","../../src/domain/plan/reports/strategies/trial.strategy.ts","../../src/domain/plan/reports/reports.flow.ts","../../src/routes/report/report.api.ts","../../src/routes/report/report.tsx","../../src/routes/routes.basic.tsx","../../src/assets/images/topekos.png","../../src/routes/quick-trading/quick-trading.detail.api.ts","../../src/routes/quick-trading/quick-trading.detail.tsx","../../src/common/components/order-form/order-form.tsx","../../src/routes/quick-trading/quick-trading.detail.order.tsx","../../src/common/components/contract-item/contract-item.tsx","../../src/routes/shared/api/remove-order.ts","../../src/common/components/order-item/order-item.tsx","../../src/routes/transactions-and-orders/utils.ts","../../src/routes/transactions-and-orders/contracts.api.ts","../../src/routes/transactions-and-orders/orders.api.ts","../../src/common/acl/statutory-guard/contract-sign-guard.tsx","../../src/common/components/too-many-companies/too-many-companies.tsx","../../src/routes/transactions-and-orders/transactions-and-orders.signature.tsx","../../src/routes/transactions-and-orders/transactions-and-orders.contract.tsx","../../src/routes/transactions-and-orders/transactions-and-orders.order.tsx","../../src/routes/transactions-and-orders/transactions-and-orders.tsx","../../src/routes/shared/routes/success/order-link.tsx","../../src/routes/storages/components/crop-list/crop-list.tsx","../../src/routes/storages/storages.crop.new.tsx","../../src/routes/shared/api/get-offer.ts","../../src/routes/trades/components/price-chart/price-chart.tsx","../../src/routes/trades/trades.detail.sell.tsx","../../src/routes/trades/trades.detail.tsx","../../src/routes/storages/storages.offer.tsx","../../src/routes/storages/components/crop-detail/crop-detail.tsx","../../src/routes/storages/storages.offer.edit.tsx","../../src/routes/storages/storages.routes.tsx","../../src/routes/trades/trades.detail.order.tsx","../../src/routes/routes.trading.tsx","../../src/routes/subscriptions/layout.tsx","../../src/routes/subscriptions/hooks/use-go-back-to-app.ts","../../src/routes/subscriptions/hooks/use-subscription-result.ts","../../src/routes/subscriptions/subscribed/subscribed.tsx","../../src/routes/subscriptions/unsubscribed/unsubscribed.tsx","../../src/routes/routes.tsx","../../src/routes/routes.basic.old.tsx","../../src/routes/purchase-prices/purchase-prices.old.tsx","../../src/routes/routes.trading.old.tsx","../../src/routes/routes.old.tsx","../../src/routes/app.tsx","../../src/main.tsx"],"sourcesContent":["import { t } from \"@lingui/core/macro\";\n\n/**\n * Represents CORS kind of errors\n */\nclass NetworkError extends Error {\n constructor(message = t`Chyba spojení`) {\n super(message);\n // eslint-disable-next-line lingui/no-unlocalized-strings\n this.name = \"NetworkError\";\n }\n\n static getName() {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n return \"NetworkError\";\n }\n}\n\nclass ClientError extends Error {\n status?: number;\n\n constructor(message = \"\", options?: { status?: number }) {\n super(message);\n // eslint-disable-next-line lingui/no-unlocalized-strings\n this.name = \"ClientError\";\n this.status = options?.status;\n }\n\n static getName() {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n return \"ClientError\";\n }\n\n public getStatus() {\n return this.status;\n }\n}\n\nclass ServerError extends Error {\n constructor(message = \"\") {\n super(message);\n // eslint-disable-next-line lingui/no-unlocalized-strings\n this.name = \"ServerError\";\n }\n\n static getName() {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n return \"ServerError\";\n }\n}\n\nclass UnauthorizedError extends Error {\n constructor(message = t`Pouze pro autentizované uživatele`) {\n super(message);\n // eslint-disable-next-line lingui/no-unlocalized-strings\n this.name = \"UnauthorizedError\";\n }\n\n static getName() {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n return \"UnauthorizedError\";\n }\n}\n\nclass ForbiddenError extends Error {\n constructor(message = t`Nedostatečné oprávnění`) {\n super(message);\n // eslint-disable-next-line lingui/no-unlocalized-strings\n this.name = \"ForbiddenError\";\n }\n\n static getName() {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n return \"ForbiddenError\";\n }\n}\n\nclass NotFoundError extends Error {\n details: Record;\n status: number;\n constructor(\n message = t`Bohužel, nic jsme nenašli`,\n details: Record = {},\n ) {\n super(message);\n // eslint-disable-next-line lingui/no-unlocalized-strings\n this.name = \"NotFoundError\";\n this.status = 404;\n this.details = details;\n }\n\n static getName() {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n return \"NotFoundError\";\n }\n}\n\nclass TooManyCompaniesError extends Error {\n constructor(message = t`Uživatel přiřazen k více společnostem`) {\n super(message);\n // eslint-disable-next-line lingui/no-unlocalized-strings\n this.name = \"TooManyCompaniesError\";\n }\n\n static getName() {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n return \"TooManyCompaniesError\";\n }\n}\n\nconst isClientError = (\n error: unknown,\n): error is { message: string; status: number } =>\n typeof error === \"object\" &&\n error !== null &&\n \"message\" in error &&\n \"status\" in error;\n\nconst isNotFoundError = (\n error: unknown,\n): error is { message: string; status: 404 } =>\n typeof error === \"object\" &&\n error !== null &&\n \"message\" in error &&\n \"status\" in error &&\n error.status === 404;\n\nexport {\n ClientError,\n ForbiddenError,\n isClientError,\n isNotFoundError,\n NetworkError,\n NotFoundError,\n ServerError,\n TooManyCompaniesError,\n UnauthorizedError,\n};\n","import { z } from \"zod\";\n\ntype EnvironmentSchema = z.infer;\ntype RemoveVitePrefix = {\n [K in keyof T as K extends `VITE_${infer U}` ? U : K]: T[K];\n};\ntype AppModeSchema = z.infer;\n\nconst appMode = z.union([\n z.literal(\"local\"),\n z.literal(\"nightly\"),\n z.literal(\"staging\"),\n z.literal(\"production\"),\n]);\n\nconst environmentSchema = z.object({\n VITE_APP_MODE: appMode,\n VITE_AUTH0_AUDIENCE: z.string(),\n VITE_AUTH0_CLIENT_ID: z.string(),\n VITE_AUTH0_DOMAIN: z.string(),\n VITE_DIGITALNI_SKLADY_API_URL: z.string().startsWith(\"https://\"),\n VITE_FIREBASE_API_KEY: z.string(),\n VITE_FIREBASE_APP_ID: z.string(),\n VITE_FIREBASE_AUTH_DOMAIN: z.string(),\n VITE_FIREBASE_MEASUREMENT_ID: z.string(),\n VITE_FIREBASE_MESSAGING_SENDER_ID: z.string(),\n VITE_FIREBASE_PROJECT_ID: z.string(),\n VITE_FIREBASE_STORAGE_BUCKET: z.string(),\n VITE_FIREBASE_VAPID_KEY: z.string(),\n VITE_GOOGLE_ANALYTICS_ID: z.string().optional(),\n VITE_NEWS_API_URL: z.string().startsWith(\"https://\"),\n VITE_NEWS_OPENAPI_URL: z.string().startsWith(\"https://\"),\n VITE_NOTIFICATIONS_API_URL: z.string().startsWith(\"https://\"),\n VITE_NOTIFICATIONS_OPENAPI_URL: z.string().startsWith(\"https://\"),\n VITE_PRICES_API_URL: z.string().startsWith(\"https://\"),\n VITE_PRICES_OPENAPI_URL: z.string().startsWith(\"https://\"),\n VITE_PRODUCT_FRUITS_WORKSPACE_CODE: z.string(),\n VITE_RELEASE_ID: z.string().or(z.undefined()), // only set on production\n VITE_USERS_API_URL: z.string().startsWith(\"https://\"),\n VITE_USERS_OPENAPI_URL: z.string().startsWith(\"https://\"),\n VITE_UNLEASH_PROXY_URL: z.string().startsWith(\"https://\"),\n VITE_UNLEASH_ENVIRONMENT: z.enum([\"nightly\", \"staging\", \"production\"]),\n VITE_UNLEASH_CLIENT_KEY: z.string(),\n VITE_UNLEASH_APP_NAME: z.string(),\n});\n\nconst envLike = import.meta.env ?? process.env;\nconst safeEnvironment = environmentSchema.safeParse(envLike);\n\nif (!safeEnvironment.success) {\n process.stdout.write(\n // eslint-disable-next-line lingui/no-unlocalized-strings\n \"Error: the app environment is not in tact. Check env.ts file.\\n\",\n );\n safeEnvironment.error.issues.map((issue) =>\n process.stdout.write(JSON.stringify(issue) + \"\\n\"),\n );\n process.exit(1);\n}\n\nconst getEnvironmentVariable = <\n K extends keyof RemoveVitePrefix,\n>(\n key: K,\n) => safeEnvironment.data[`VITE_${key}`];\n\nexport { getEnvironmentVariable };\nexport type { AppModeSchema };\n","/* eslint-disable no-console */\nimport * as Sentry from \"@sentry/react\";\nimport { useEffect } from \"react\";\nimport {\n createRoutesFromChildren,\n matchRoutes,\n useLocation,\n useNavigationType,\n} from \"react-router-dom\";\n\nimport { isClientError, isNotFoundError } from \"@/api/errors\";\n\nimport { AppModeSchema, getEnvironmentVariable } from \"./env\";\n\nclass Logger {\n constructor(private appMode: AppModeSchema) {\n this.setUser = this.setUser.bind(this);\n this.log = this.log.bind(this);\n this.error = this.error.bind(this);\n this.isRemoteLoggingEnabled = this.isRemoteLoggingEnabled.bind(this);\n this.isTestRun = this.isTestRun.bind(this);\n\n if (this.isRemoteLoggingEnabled()) {\n Sentry.init({\n beforeSend(e, hint) {\n if (\n hint.originalException &&\n isNotFoundError(hint.originalException)\n ) {\n return null;\n }\n\n if (\n hint.originalException &&\n isClientError(hint.originalException) &&\n hint.originalException.status === 409 &&\n (hint.originalException.message as string).match(\n /token for user already exists/i,\n )\n ) {\n return null;\n }\n\n return e;\n },\n ignoreErrors: [/Failed to fetch/i],\n normalizeDepth: 10,\n dsn: \"https://9ca524635148db6f53ce6c67ff523e31@o82643.ingest.us.sentry.io/4507186468290560\",\n environment: this.appMode,\n release: getEnvironmentVariable(\"RELEASE_ID\"),\n integrations: [\n Sentry.reactRouterV6BrowserTracingIntegration({\n useEffect,\n useLocation,\n useNavigationType,\n createRoutesFromChildren,\n matchRoutes,\n }),\n Sentry.replayIntegration(),\n Sentry.httpClientIntegration(),\n ],\n sendDefaultPii: false,\n tracesSampleRate: 0.25,\n tracePropagationTargets: [\n \"localhost\",\n /cleverfarm\\.cz/, // matches nightly and staging API\n /cleveranalytics\\.ag/, // matches production API\n /^\\//, // matches anything on the same URL\n ],\n replaysSessionSampleRate: 0.1,\n replaysOnErrorSampleRate: 1.0,\n });\n }\n }\n\n public setContext(context: Parameters[1]) {\n if (!this.isRemoteLoggingEnabled()) {\n return;\n }\n\n Sentry.setContext(\"details\", context);\n }\n\n public setUser(user: Sentry.User | null) {\n if (!this.isRemoteLoggingEnabled()) {\n return;\n }\n Sentry.setUser(user);\n }\n\n public log(...args: unknown[]) {\n if (this.isTestRun()) {\n return;\n }\n console.log(...args);\n }\n\n public error(e: Error | unknown | undefined, ...args: unknown[]) {\n if (this.isTestRun()) {\n return;\n }\n console.error(e, ...args);\n\n if (this.isRemoteLoggingEnabled()) {\n return Sentry.captureException(e);\n }\n }\n\n private isRemoteLoggingEnabled() {\n return this.appMode !== \"local\";\n }\n\n private isTestRun() {\n return import.meta.env.MODE === \"test\";\n }\n}\n\nconst logger = new Logger(getEnvironmentVariable(\"APP_MODE\"));\n\nexport { logger };\n","import { Helmet } from \"react-helmet\";\n// @ts-expect-error how does one type virtual module for typescript?\nimport commitHash from \"virtual:commit-hash\";\n\nconst CommitHash = () => {\n return (\n \n \n \n );\n};\n\nexport { CommitHash };\n","import { Auth0Provider } from \"@auth0/auth0-react\";\n\nimport { getEnvironmentVariable } from \"../services/env\";\n\nconst AuthProvider = ({ children }: React.PropsWithChildren) => (\n \n {children}\n \n);\n\nexport { AuthProvider };\n","/* eslint-disable lingui/no-unlocalized-strings */\n\nimport React from \"react\";\n\nconst RELEASE_KEY = \"release\";\n\nconst Maintenance = ({ children }: React.PropsWithChildren) => {\n useForceRefresh();\n const override = window.localStorage.getItem(RELEASE_KEY);\n\n const Jsx = (\n
\n

\n Probíhá plánovaná odstávka\n

\n

\n Na této stránce v současné době probíhá údržba. Děkujeme za pochopení.\n

\n

This page is currently undergoing maintenance.

\n
\n );\n\n if (override === \"true\") {\n return Jsx;\n }\n\n if (override === \"false\") {\n return children;\n }\n\n return children;\n};\n\nconst useForceRefresh = () => {\n const [state, setState] = React.useState(false);\n\n React.useEffect(() => {\n const interval = setInterval(() => {\n setState((prev) => !prev);\n }, 30_000);\n\n return () => {\n clearInterval(interval);\n };\n }, []);\n\n return state;\n};\n\nexport { Maintenance };\n","import React from \"react\";\n\nconst useToggle = (initialState = false) => {\n const [on, _setOn] = React.useState(initialState);\n\n const reset = React.useCallback(() => {\n _setOn(initialState);\n }, [initialState]);\n\n const setOff = React.useCallback(() => {\n _setOn(false);\n }, []);\n\n const setOn = React.useCallback(() => {\n _setOn(true);\n }, []);\n\n const toggle = React.useCallback(() => {\n _setOn((cur) => !cur);\n }, []);\n\n return {\n on,\n reset,\n setOff,\n setOn,\n toggle,\n };\n};\n\nexport { useToggle };\n","import {\n MutationCache,\n QueryCache,\n QueryClient,\n QueryClientProvider,\n} from \"@tanstack/react-query\";\nimport { ReactQueryDevtools } from \"@tanstack/react-query-devtools\";\n\nimport { logger } from \"../services/logger\";\n\nconst queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n refetchOnWindowFocus: false,\n retry: false,\n },\n },\n queryCache: new QueryCache({\n onError: logger.error.bind(logger),\n }),\n mutationCache: new MutationCache({\n onError: logger.error.bind(logger),\n }),\n});\n\nconst QueryProvider = ({ children }: React.PropsWithChildren) => {\n return (\n \n \n {children}\n \n );\n};\n\nconst oneMinute = 60_000;\nconst oneHour = 3_600_000;\nconst fifteenMinutes = 900_000;\n\nexport { fifteenMinutes, oneHour, oneMinute, QueryProvider };\n","import { queryOptions, useQuery } from \"@tanstack/react-query\";\nimport React from \"react\";\n// @ts-expect-error how does one type virtual module for typescript?\nimport commitHash from \"virtual:commit-hash\";\nimport { z } from \"zod\";\n\nimport { useToggle } from \"@/common/hooks/use-toggle\";\nimport { oneMinute } from \"@/common/providers/query-provider\";\n\n// `-dirty` is appended to the commit hash if there are uncommitted changes.\nconst cleanCommitHash = commitHash.split(\"-\")[0];\n\nconst VersionCheck = () => {\n const isLatestVersion = useToggle();\n const version = useQuery({\n ...versionQuery(),\n queryKey: [\"app-version\"],\n refetchOnWindowFocus: true,\n refetchInterval: oneMinute,\n });\n\n React.useEffect(() => {\n if (cleanCommitHash === version.data) {\n isLatestVersion.setOn();\n } else {\n isLatestVersion.setOff();\n }\n }, [isLatestVersion, version.data]);\n\n if (version.status !== \"success\") {\n return;\n }\n\n if (!version.data) {\n return;\n }\n\n if (cleanCommitHash !== version.data) {\n window.location.reload();\n }\n\n return null;\n};\n\nconst versionQuery = () =>\n queryOptions({\n queryKey: [\"app-version\"],\n queryFn: async ({ signal }): Promise => {\n const commitHashSchema = z.object({ commitHash: z.string() });\n if (window.location.hostname === \"localhost\") {\n return commitHashSchema.parse({ commitHash: cleanCommitHash })\n .commitHash;\n }\n const version = await fetch(`/version.json?${Math.random()}`, {\n signal,\n method: \"GET\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n\n if (!version.ok) {\n return null;\n }\n\n const response = await version.json();\n\n const safeVersion = commitHashSchema.safeParse(response);\n\n return safeVersion.data?.commitHash ?? null;\n },\n });\n\nexport { VersionCheck };\n","import Trash from \"@icons/trash.svg?url\";\nimport React from \"react\";\n\ntype Props = React.PropsWithChildren<\n {\n className?: string;\n disabled?: boolean;\n variant: \"primary\" | \"secondary\";\n } & React.ButtonHTMLAttributes\n>;\n\ntype ButtonType = typeof Button & {\n Container: typeof Container;\n Delete: typeof Delete;\n};\n\nconst Button = React.forwardRef(\n ({ className = \"\", variant, children, disabled, ...rest }: Props, ref) => {\n return (\n \n {children}\n \n );\n },\n);\nconst variants = {\n primary:\n // eslint-disable-next-line lingui/no-unlocalized-strings\n \"rounded-2xl text-center bg-linear-to-r from-can-tranquil-azure to-can-mystic-aqua px-4 py-3 font-bold text-white shadow-can-light-box\",\n secondary:\n // eslint-disable-next-line lingui/no-unlocalized-strings\n \"rounded-2xl bg-white border-can-forest-teal border text-center px-4 py-3 font-bold text-can-forest-teal\",\n};\n\n// helps keeping the buttons sticky to the bottom\nconst Container = ({\n children,\n className = \"\",\n}: React.PropsWithChildren<{ className?: string }>) => (\n \n {children}\n \n);\n\nconst Delete = ({\n children,\n ...rest\n}: React.PropsWithChildren>) => {\n return (\n \n {children}\n \n );\n};\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nButton.displayName = \"Button\";\n(Button as ButtonType).Container = Container;\n(Button as ButtonType).Delete = Delete;\nconst primary = variants.primary;\nconst secondary = variants.secondary;\nconst ExportedButton = Button as ButtonType;\n\nexport { ExportedButton as Button, primary, secondary };\n","import React from \"react\";\n\nimport { Button } from \"../button/button\";\n\ntype DialogContext = {\n dialog?: React.ReactNode;\n openDialog: (dialog: React.ReactNode) => void;\n closeDialog: () => void;\n};\nconst Context = React.createContext(undefined);\n\nconst useDialogProvider = () => {\n const context = React.useContext(Context);\n\n if (!context) {\n throw new Error(\n // eslint-disable-next-line lingui/no-unlocalized-strings\n \"useDialogProvider only available within component\",\n );\n }\n\n return context;\n};\n\nconst DialogProvider = ({ children }: React.PropsWithChildren) => {\n const [dialog, setDialog] = React.useState<\n DialogContext[\"dialog\"] | undefined\n >();\n\n const close = () => {\n setDialog(undefined);\n };\n\n const open = (dialog: DialogContext[\"dialog\"]) => {\n setDialog(dialog);\n };\n\n return (\n \n {children}\n {dialog}\n \n );\n};\n\nconst Dialog = (props: React.PropsWithChildren) => {\n return (\n \n \n \n );\n};\n\nconst Container = ({\n className,\n ...props\n}: React.PropsWithChildren<{ className?: string }>) => (\n \n);\n\nconst Backdrop = (props: React.PropsWithChildren) => (\n \n);\n\nconst Actions = (props: React.PropsWithChildren) => (\n
\n);\n\nconst Cancel = (\n props: React.PropsWithChildren>,\n) =>
\n );\n};\n\nconst Box = ({ children }: React.PropsWithChildren) => (\n
\n {children}\n
\n);\n\nBackgroundContainer.Box = Box;\n\nexport { BackgroundContainer };\n","import { useAuth0 } from \"@auth0/auth0-react\";\nimport { Trans } from \"@lingui/react/macro\";\n\nimport { BackgroundContainer } from \"@/common/components/background-container/background-container\";\nimport { Button } from \"@/common/components/button/button\";\n\nconst Anonymous = () => {\n const auth0 = useAuth0();\n\n return (\n \n
\n \n auth0.loginWithRedirect({\n authorizationParams: {\n screen_hint: \"signup\",\n },\n appState: {\n returnTo: window.location.href,\n },\n })\n }\n >\n Registrovat se\n \n \n auth0.loginWithRedirect({\n appState: {\n returnTo: window.location.href,\n },\n })\n }\n >\n Přihlásit se\n \n
\n
\n );\n};\n\nexport { Anonymous };\n","import { Helmet } from \"react-helmet\";\n\nimport { getEnvironmentVariable } from \"@/common/services/env\";\n\nconst Metadata = ({ title }: { title?: string }) => {\n const appMode = getEnvironmentVariable(\"APP_MODE\");\n const titleAppMode =\n appMode === \"production\" ? \"\" : `[${appMode.toUpperCase()}] `;\n\n return (\n \n \n {/* eslint-disable-next-line lingui/no-unlocalized-strings */}\n {titleAppMode}\n Clever˚Analytics'\n {title ? ` | ${title}` : undefined}\n \n \n );\n};\n\nexport { Metadata };\n","import { t } from \"@lingui/core/macro\";\nimport { Trans } from \"@lingui/react/macro\";\nimport { Link } from \"react-router-dom\";\n\nimport { BackgroundContainer } from \"@/common/components/background-container/background-container\";\nimport { primary } from \"@/common/components/button/button\";\nimport { Metadata } from \"@/common/components/metadata/metadata\";\n\nimport UserSlash from \"./assets/user-slash.svg?react\";\n\nconst BlockedUser = () => {\n return (\n \n \n \n
\n

\n Profil je nedostupný\n

\n
\n \n
\n

\n \n Váš profil je bohužel z nějakého důvodu nedostupný. Pro více\n informací nás prosím kontaktujte na adrese:\n \n

\n \n {/* eslint-disable-next-line lingui/no-unlocalized-strings */}\n support@cleverfarm.ag\n \n \n Přejít na přihlášení\n \n
\n
\n
\n );\n};\n\nexport { BlockedUser };\n","import { useAuth0 } from \"@auth0/auth0-react\";\nimport { Trans } from \"@lingui/react/macro\";\nimport { Link, Navigate, useSearchParams } from \"react-router-dom\";\n\nimport { primary } from \"@/common/components/button/button\";\nimport { Spinner } from \"@/common/components/spinner/spinner\";\nimport { logger } from \"@/common/services/logger\";\n\nimport { BlockedUser } from \"../blocked-user/blocked-user\";\n\nconst path = \"callback\";\n\nconst Callback = () => {\n const { isLoading, error } = useAuth0();\n\n if (isLoading) {\n return (\n
\n \n

\n Přihlašujeme vás do Clever°Analytics'...\n

\n
\n );\n }\n\n if (error) {\n if (error.message.match(/user is blocked/gi)) {\n return ;\n }\n\n return (\n
\n
\n

\n Bohužel vás nemůžeme přihlásit.\n

\n \n \n Přihlásit se\n \n
\n
\n );\n }\n\n return ;\n};\n\nconst ErrorDetails = () => {\n const [params] = useSearchParams();\n\n if (params.get(\"error_description\") === \"can_companies_mismatch\") {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n logger.error(\"User companies differ from the ones we keep track of\");\n\n return (\n

\n \n V nastavení vašich společností jsme nalezli nesrovnalosti. Kontaktujte\n prosím podporu.\n \n

\n );\n }\n};\n\nexport { Callback, path };\n","const combineCallingCodeWithCountry = (item: {\n phoneCountryCode: string;\n id: string;\n}) => item.phoneCountryCode + \"-\" + item.id;\n\nconst splitCallingCodeAndCountry = (str: string) => str.split(\"-\");\n\nexport { combineCallingCodeWithCountry, splitCallingCodeAndCountry };\n","const countryCodeToFlag = (code: string) =>\n code\n .toUpperCase()\n .split(\"\")\n .map((char) => String.fromCodePoint(char.charCodeAt(0) + 0x1f1a5))\n .join(\"\");\n\nexport { countryCodeToFlag };\n","import { ErrorMessage } from \"@hookform/error-message\";\nimport { t } from \"@lingui/core/macro\";\nimport { Trans } from \"@lingui/react/macro\";\nimport { useFormContext } from \"react-hook-form\";\n\nimport { combineCallingCodeWithCountry } from \"@/common/utils/phone\";\nimport { countryCodeToFlag } from \"@/common/utils/unicode\";\n\nconst PhoneNumber = ({\n name,\n callingCodes,\n}: {\n name: string;\n callingCodes: { id: string; phoneCountryCode: string }[];\n}) => {\n const form = useFormContext();\n return (\n \n );\n};\n\nexport { PhoneNumber };\n","const toggleItem = (\n array: T,\n item: T[number],\n) => {\n return (array.includes(item)\n ? array.filter((v) => v !== item)\n : [...array, item]) as unknown as T;\n};\n\nconst sortString = (\n a: T,\n b: T,\n callback?: (item: T) => string,\n) => {\n const compA = typeof a === \"string\" ? a : callback ? callback(a) : a.name;\n const compB = typeof b === \"string\" ? b : callback ? callback(b) : b.name;\n\n if (compA < compB) {\n return -1;\n }\n\n if (compA > compB) {\n return 1;\n }\n\n return 0;\n};\n\nconst getUniqueItems = (\n arr: T,\n uniqueFn: (item: T[number]) => string,\n): T => {\n const result: Record = {};\n\n arr.forEach((item) => {\n const id = uniqueFn(item);\n\n if (result[id] === undefined) {\n result[id] = 1;\n } else {\n result[id] += 1;\n }\n });\n\n const unique = Object.entries(result)\n .filter(([, value]) => value === 1)\n .map(([key]) => key);\n\n // @ts-expect-error err\n return arr.filter((item) => unique.includes(uniqueFn(item)));\n};\n\nconst sum = (total: number, next: number) => total + next;\n\nexport { getUniqueItems, sortString, sum, toggleItem };\n","import { queryOptions, useMutation } from \"@tanstack/react-query\";\nimport partition from \"lodash-es/partition\";\n\nimport { sortString } from \"@/common/utils/array\";\nimport {\n CountryTo,\n getCountries,\n update,\n UserUpdateRequest,\n validate,\n} from \"@/generated/api/users\";\n\nconst countriesQuery = () =>\n queryOptions({\n queryKey: [\"countries\"],\n staleTime: Infinity,\n queryFn: ({ signal }) => getCountries({ signal }),\n });\n\nconst phoneCountryCodesQuery = ({ language }: { language: string }) =>\n queryOptions({\n ...countriesQuery(),\n select: (countries) => {\n const split = splitByLanguageMatch(countries, language);\n return sortCountriesBy((a) => a.phoneCountryCode, ...split);\n },\n });\n\nconst companyCountriesQuery = ({ language }: { language: string }) =>\n queryOptions({\n ...countriesQuery(),\n select: (countries) => {\n const available = countries.filter(\n (country) => country.hasCompanyValidator,\n );\n\n const split = splitByLanguageMatch(available, language);\n return sortCountriesBy((a) => a.localName, ...split);\n },\n });\n\nconst useCompanyNumberValidationMutation = () =>\n useMutation({\n mutationKey: [\"company-number-validation\"],\n mutationFn: ({\n companyNumber,\n countryCode,\n }: {\n countryCode: string;\n companyNumber: string;\n }) =>\n validate({\n companyNumber: companyNumber.replaceAll(\" \", \"\"),\n countryCode,\n }),\n });\n\nconst useCompleteUserRegistrationMutation = () =>\n useMutation({\n mutationKey: [\"user-registration\"],\n mutationFn: (payload: UserUpdateRequest) =>\n update({\n phone: payload.phone,\n company: payload.company,\n name: payload.name,\n language: payload.language,\n }),\n });\n\nconst splitByLanguageMatch = (countries: CountryTo[], language: string) =>\n partition(countries, (country) => country.language == language);\n\nconst sortCountriesBy = (\n callback: (country: CountryTo) => string,\n ...countries: CountryTo[][]\n) => {\n let result: CountryTo[] = [];\n\n countries.forEach((c) => {\n result = result.concat(...c.toSorted((a, b) => sortString(a, b, callback)));\n });\n\n return result;\n};\n\nexport {\n companyCountriesQuery,\n phoneCountryCodesQuery,\n useCompanyNumberValidationMutation,\n useCompleteUserRegistrationMutation,\n};\n","import { useAuth0 } from \"@auth0/auth0-react\";\nimport { ErrorMessage } from \"@hookform/error-message\";\nimport { t } from \"@lingui/core/macro\";\nimport { Trans } from \"@lingui/react/macro\";\nimport { useSuspenseQuery } from \"@tanstack/react-query\";\nimport { Suspense } from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\nimport { FormProvider, useForm, UseFormReturn } from \"react-hook-form\";\nimport { useNavigate } from \"react-router-dom\";\nimport invariant from \"tiny-invariant\";\nimport { z } from \"zod\";\n\nimport { BackgroundContainer } from \"@/common/components/background-container/background-container\";\nimport { Button } from \"@/common/components/button/button\";\nimport { PhoneNumber } from \"@/common/components/form/phone-number/phone-number\";\nimport { Failed } from \"@/common/components/info/info\";\nimport { Metadata } from \"@/common/components/metadata/metadata\";\nimport { Spinner } from \"@/common/components/spinner/spinner\";\nimport { useTokenUpdate } from \"@/common/providers/token-provider\";\nimport {\n defaultLanguage,\n fallbackLanguage,\n getLanguage,\n} from \"@/common/services/i18n\";\nimport { getMaybeUser, IncompleteUserSchema } from \"@/common/services/user\";\nimport { getUniqueItems } from \"@/common/utils/array\";\nimport {\n combineCallingCodeWithCountry,\n splitCallingCodeAndCountry,\n} from \"@/common/utils/phone\";\nimport { countryCodeToFlag } from \"@/common/utils/unicode\";\nimport { CountryTo } from \"@/generated/api/users\";\n\nimport LogoSvg from \"../../assets/logo.svg\";\nimport {\n companyCountriesQuery,\n phoneCountryCodesQuery,\n useCompanyNumberValidationMutation,\n useCompleteUserRegistrationMutation,\n} from \"./incomplete-user.api\";\n\ntype Fields = {\n company: {\n number: string;\n countryCode: string;\n };\n name: string;\n phone: {\n countryCode: string;\n phoneNumber: string;\n };\n};\n\nconst path = \"registration/complete\";\n\nconst IncompleteUser = () => {\n return (\n \n \n \n }>\n }>\n \n \n \n \n \n );\n};\n\nconst getIsCompanyRequired = (\n form: UseFormReturn,\n countries: CountryTo[],\n) => {\n const [, country] = splitCallingCodeAndCountry(\n form.watch(\"phone.countryCode\"),\n );\n return countries.find(({ id }) => id === country)?.isCompanyRequired ?? true;\n};\n\nconst IncompleteUserForm = () => {\n const { user: _user } = useAuth0();\n const [isTokenUpdating, updateToken] = useTokenUpdate();\n // eslint-disable-next-line lingui/no-unlocalized-strings\n invariant(_user, \"User should be defined\");\n const user = getMaybeUser(_user);\n const {\n companyCountry,\n currentPhoneCountryCode,\n companyCountries,\n phoneCountryCodes,\n } = useData(user);\n const navigate = useNavigate();\n const form = useForm({\n defaultValues: {\n phone: {\n countryCode: currentPhoneCountryCode\n ? combineCallingCodeWithCountry(currentPhoneCountryCode)\n : \"\",\n phoneNumber: user.user_metadata?.common?.phone?.phoneNumber,\n },\n company: {\n countryCode: companyCountry,\n number: user.user_metadata?.can?.companies?.at(0)?.companyNumber ?? \"\",\n },\n name: user.name === user.email ? \"\" : user.name,\n },\n });\n const completeUserRegistration = useCompleteUserRegistrationMutation();\n const validateCompanyNumber = useCompanyNumberValidationMutation();\n const isCompanyRequired = getIsCompanyRequired(form, companyCountries.data);\n\n const handleCompanyNumberValidation = () => {\n const companyNumber = form.getValues(\"company.number\");\n const countryCode = form.getValues(\"company.countryCode\");\n\n if (companyNumber === \"\") {\n form.setError(\"company.number\", {\n message: t`Vyplňte prosím IČO společnosti`,\n });\n\n return;\n }\n\n validateCompanyNumber.mutate(\n {\n companyNumber,\n countryCode,\n },\n {\n onError: () => {\n form.setError(\"company.number\", {\n message: t`Společnost nelze identifikovat`,\n });\n },\n onSuccess: () => {\n handleSubmit(form.getValues());\n },\n },\n );\n };\n\n const handleCountryCompanyChange = () => {\n form.setValue(\"company.number\", \"\");\n validateCompanyNumber.reset();\n };\n\n const handleSubmit = (data: Fields) => {\n const payload = {\n name: data.name,\n phone: {\n countryCode: z\n .string()\n .regex(/^\\+\\d+/)\n .parse(splitCallingCodeAndCountry(data.phone.countryCode).at(0)),\n phoneNumber: data.phone.phoneNumber,\n },\n company: isCompanyRequired\n ? {\n companyNumber: data.company.number.replaceAll(\" \", \"\"),\n countryCode: data.company.countryCode,\n }\n : undefined,\n language: user.user_metadata?.can?.settings?.language ?? defaultLanguage,\n };\n\n completeUserRegistration.mutate(payload, {\n onSuccess: async () => {\n await updateToken();\n\n await navigate(\"/\");\n },\n });\n };\n\n return (\n \n \n

\n Už jen poslední krok!\n

\n

\n \n Pro používání aplikace od vás potřebujeme ještě pár informací, viz\n formulář níže.\n \n

\n \n\n \n\n {isCompanyRequired ? (\n \n ) : null}\n \n navigate(\"/logout\")}\n variant=\"secondary\"\n >\n Odhlásit se\n \n \n Uložit a pokračovat do aplikace\n \n \n \n \n
\n );\n};\n\nconst useData = (user: IncompleteUserSchema) => {\n const language =\n user.user_metadata?.can?.settings?.language ?? fallbackLanguage;\n const companyCountries = useSuspenseQuery(\n companyCountriesQuery({ language }),\n );\n const phoneCountryCodes = useSuspenseQuery(\n phoneCountryCodesQuery({ language }),\n );\n const countriesWithUniqueLanguage = getUniqueItems(\n companyCountries.data,\n (country) => country.language,\n );\n const currentPhoneCountryCode =\n phoneCountryCodes.data.find(\n (country) =>\n country.phoneCountryCode ===\n user.user_metadata?.common?.phone?.countryCode,\n ) ?? getMatchByLanguage(countriesWithUniqueLanguage);\n const companyCountry =\n user.user_metadata?.can?.companies?.at(0)?.countryCode ??\n getMatchByLanguage(countriesWithUniqueLanguage)?.id ??\n \"\";\n\n return {\n companyCountry,\n currentPhoneCountryCode,\n companyCountries,\n phoneCountryCodes,\n };\n};\n\nconst getMatchByLanguage = (countries: CountryTo[]) =>\n countries.find((code) => code.language === getLanguage(navigator.language));\n\nexport { IncompleteUser, path };\n","import { useAuth0 } from \"@auth0/auth0-react\";\nimport UserPendingSvg from \"@icons/user-pending.svg?react\";\nimport { Trans } from \"@lingui/react/macro\";\nimport invariant from \"tiny-invariant\";\n\nimport { getMaybeUser } from \"@/common/services/user\";\n\nconst PendingUserBanner = () => {\n const isPending = useIsPendingUser();\n\n if (!isPending) {\n return null;\n }\n\n return (\n
div]:mt-[140px] sm:[&+.can-sm-layout>div]:mt-[100px]\">\n \n

\n \n Ověřujeme váš profil. Některé funkce mohou být\n omezeny do doby, než váš profil plně ověříme. Pro více informací nás\n můžete kontaktovat na e-mailové adrese:{\" \"}\n \n support@cleverfarm.ag\n \n .\n \n

\n
\n );\n};\n\nconst useIsPendingUser = () => {\n const { user: _user } = useAuth0();\n invariant(_user);\n const user = getMaybeUser(_user);\n const firstCompany = user[\"can/app_metadata\"]?.companies?.at(0);\n\n if (!firstCompany) {\n return false;\n }\n\n return firstCompany.approvalState === \"WAITING\";\n};\n\nexport { PendingUserBanner };\n","const permissions = [\n \"country:*\",\n \"news:report:manage\",\n \"users:*:list\",\n \"users:company:approve\",\n \"users:company:delete\",\n \"users:company:list\",\n \"users:company:plan\",\n \"users:company:role\",\n \"users:payment:confirm\",\n \"users:payment:list\",\n \"users:subscription:list\",\n \"users:user:block\",\n \"users:user:delete\",\n \"users:user:reset\",\n] as const;\n\n// ugly hack to support dynamic country: permissions\n// TODO reasonable to get these from elsewhere?\ntype Permission =\n | Exclude<(typeof permissions)[number], \"country:*\">\n | `country:${string}`;\n\nexport { permissions };\nexport type { Permission };\n","import { useAuth0 } from \"@auth0/auth0-react\";\nimport { jwtDecode } from \"jwt-decode\";\nimport intersection from \"lodash-es/intersection\";\nimport React from \"react\";\nimport { Navigate, Outlet } from \"react-router-dom\";\n\nimport { logger } from \"@/common/services/logger\";\nimport { Permission, permissions } from \"@/routes/admin/permissions\";\n\nconst AdminGuard = ({ children }: React.PropsWithChildren) => {\n const isAdmin = useHasAnyAdminPermission();\n const nonAdminJsx = children ? null : ;\n const adminJsx = children ?? ;\n\n if (isAdmin === false) {\n return nonAdminJsx;\n } else if (isAdmin === true) {\n return adminJsx;\n } else {\n return null;\n }\n};\n\ntype Props = React.PropsWithChildren<{\n onDenied?: React.ReactNode;\n}>;\ntype PermissionProps = Props & {\n permission: Permission;\n permissionCheckFn?: never;\n};\ntype PermissionCheckFn = (permissions: Permission[]) => boolean;\ntype PermissionCheckFnProps = Props & {\n permission?: never;\n permissionCheckFn: PermissionCheckFn;\n};\n\nconst PermissionGuard = ({\n children,\n onDenied,\n permission,\n permissionCheckFn,\n}: PermissionCheckFnProps | PermissionProps) => {\n const hasPermission = useHasPermission(permission ?? permissionCheckFn);\n\n if (hasPermission) {\n return children;\n } else if (hasPermission === false) {\n return onDenied;\n }\n\n return null;\n};\n\nconst useHasAnyAdminPermission = () => {\n const { getAccessTokenSilently } = useAuth0();\n const [isAdmin, setIsAdmin] = React.useState(null);\n\n React.useEffect(() => {\n getAccessTokenSilently()\n .then((token) => {\n const decoded = jwtDecode(token);\n\n setIsAdmin(intersection(decoded.permissions, permissions).length > 0);\n })\n .catch(logger.error);\n }, [getAccessTokenSilently]);\n\n return isAdmin;\n};\n\nconst useHasPermission = (permission: Permission | PermissionCheckFn) => {\n const { getAccessTokenSilently } = useAuth0();\n const [isAble, setIsAble] = React.useState(null);\n\n React.useEffect(() => {\n getAccessTokenSilently()\n .then((token) => {\n const decoded = jwtDecode(token);\n\n if (typeof permission === \"function\") {\n setIsAble(permission(decoded.permissions));\n } else {\n setIsAble(decoded.permissions.includes(permission));\n }\n })\n .catch(logger.error);\n }, [getAccessTokenSilently, permission]);\n\n return isAble;\n};\n\nconst countryPermissionCheckFn: PermissionCheckFn = (permissions) =>\n permissions.some((permission) => permission.startsWith(\"country:\"));\n\nexport {\n AdminGuard,\n countryPermissionCheckFn,\n PermissionGuard,\n useHasPermission,\n};\n","import React from \"react\";\n\nimport { Strategy } from \"../nav-bar.flow\";\n\nclass FullStrategy implements Strategy {\n public wrapWith() {\n return React.Fragment;\n }\n}\n\nexport { FullStrategy };\n","class NotAvailableStrategy {\n public wrapWith() {\n return null;\n }\n}\n\nexport { NotAvailableStrategy };\n","import Diamond from \"@icons/diamond.svg?react\";\nimport Ellipse from \"@icons/ellipse.svg?react\";\n\nconst PremiumBadge = ({ children }: React.PropsWithChildren) => {\n return (\n <>\n \n \n \n \n {children}\n \n );\n};\n\nexport { PremiumBadge };\n","import { PremiumBadge } from \"@/common/components/premium-badge/premium-badge\";\n\nclass TrialStrategy {\n public wrapWith() {\n return PremiumBadge;\n }\n}\n\nexport { TrialStrategy };\n","import React, { ComponentType } from \"react\";\n\nimport { LinkWithFeature } from \"@/common/components/nav-bar/nav-bar\";\nimport { Features } from \"@/common/providers/feature-provider\";\nimport { PlanSchema } from \"@/common/services/user\";\nimport { Nullable } from \"@/types\";\n\nimport { FullStrategy } from \"./strategies/full.strategy\";\nimport { NotAvailableStrategy } from \"./strategies/not-available.strategy\";\nimport { TrialStrategy } from \"./strategies/trial.strategy\";\n\ntype Mode = \"full\" | \"trial\" | \"not-available\";\ntype WrapperComponent =\n | ComponentType<{ children: React.ReactNode }>\n | typeof React.Fragment;\n\ninterface Strategy {\n wrapWith(): null | WrapperComponent;\n}\n\nclass MenuItemFlow {\n private item: LinkWithFeature;\n private plan: Omit & {\n features: Features;\n planId: Nullable;\n };\n private currentStrategy: Strategy;\n private strategies: Map;\n\n constructor(\n item: LinkWithFeature,\n plan: Omit & {\n features: Features;\n planId: PlanSchema[\"planId\"] | null;\n },\n ) {\n this.plan = plan;\n this.item = item;\n this.strategies = new Map([\n [\"full\", new FullStrategy()],\n [\"trial\", new TrialStrategy()],\n [\"not-available\", new NotAvailableStrategy()],\n ]);\n this.currentStrategy = this.getStrategy();\n }\n\n private getStrategy() {\n const feature = this.plan.features[this.item.feature];\n const plan = this.plan.planId;\n\n if (!feature) {\n return this.getStrategyOrThrow(\"not-available\");\n }\n\n if (!feature.menu) {\n return this.getStrategyOrThrow(\"not-available\");\n }\n\n if (feature.planId === plan) {\n return this.getStrategyOrThrow(\"full\");\n }\n\n if (feature.planId !== plan) {\n return this.getStrategyOrThrow(\"trial\");\n }\n\n throw new Error(\n // eslint-disable-next-line lingui/no-unlocalized-strings\n `No strategy found for feature: ${JSON.stringify(feature)} and plan ${plan}`,\n );\n }\n\n public getWrapper() {\n return this.currentStrategy.wrapWith();\n }\n\n private getStrategyOrThrow(mode: Mode): Strategy {\n const strategy = this.strategies.get(mode);\n if (!strategy) {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n throw new Error(`Strategy ${mode} not found`);\n }\n return strategy;\n }\n}\n\nexport { MenuItemFlow };\nexport type { Strategy };\n","import Barley from \"./assets/icons/barley.svg?react\";\nimport Corn from \"./assets/icons/corn.svg?react\";\nimport Pea from \"./assets/icons/pea.svg?react\";\nimport Rapeseed from \"./assets/icons/rapeseed.svg?react\";\nimport SoyaBean from \"./assets/icons/soya-bean.svg?react\";\nimport Sunflower from \"./assets/icons/sunflower.svg?react\";\nimport Tritikale from \"./assets/icons/tritikale.svg?react\";\nimport Wheat from \"./assets/icons/wheat.svg?react\";\n\nconst CropIcon = ({\n cropName,\n className,\n}: {\n className?: string;\n cropName: string;\n}) => {\n let Icon: null | React.FunctionComponent> =\n null;\n\n if (cropName.startsWith(\"Pšenice\")) {\n Icon = Wheat;\n } else if (cropName.startsWith(\"Ječmen\")) {\n Icon = Barley;\n } else if (cropName.startsWith(\"Kukuřice\")) {\n Icon = Corn;\n } else if (cropName.startsWith(\"Řepka\")) {\n Icon = Rapeseed;\n } else if (cropName.startsWith(\"Řepkový šrot\")) {\n Icon = Rapeseed;\n } else if (cropName.startsWith(\"Tritikale\")) {\n Icon = Tritikale;\n } else if (cropName.startsWith(\"Hrách\")) {\n Icon = Pea;\n } else if (cropName.startsWith(\"Sojový bob\")) {\n Icon = SoyaBean;\n } else if (cropName.startsWith(\"Sojový šrot\")) {\n Icon = SoyaBean;\n } else if (cropName.startsWith(\"Slunečnice\")) {\n Icon = Sunflower;\n }\n\n return Icon ? : null;\n};\n\nexport { CropIcon };\n","const PageTitle = (props: React.PropsWithChildren) => (\n

\n);\n\nexport { PageTitle };\n","import chunk from \"lodash-es/chunk\";\nimport { DateTime } from \"luxon\";\nimport { z } from \"zod\";\n\nconst quarterYearSchema = z.string().regex(/Q\\d{1} \\d{2}/);\nconst quarterSchema = quarterYearSchema\n .transform((v) => v.split(\" \").at(0))\n .pipe(z.string());\nconst yearSchema = quarterYearSchema\n .transform((v) => v.split(\" \").at(1))\n .pipe(z.string())\n .transform((v) => parseInt(v, 10))\n .pipe(z.number());\nconst quarterTransform = (v: string) => parseInt(v.replace(\"Q\", \"\"), 10);\n\nconst getHarvestYearFromQuarter = (quarterWithYear: string) => {\n const thisYear = getThisYear();\n const quarter = quarterSchema.parse(quarterWithYear);\n let year = yearSchema.parse(quarterWithYear);\n\n if (quarter === \"Q1\" || quarter === \"Q2\") {\n year -= 1;\n }\n\n return parseInt(thisYear.toString().slice(0, 2) + year.toString(), 10);\n};\n\nconst getThisYear = () => parseInt(DateTime.now().toFormat(\"yyyy\"), 10);\nconst getPreviousYear = () => getThisYear() - 1;\n\nconst isPreviousYearStillAvailable = () =>\n DateTime.now() <= DateTime.now().set({ month: 5, day: 30 });\n\nconst getHarvestYears = () => [\n ...(isPreviousYearStillAvailable() ? [getPreviousYear()] : []),\n ...Array.from({ length: 3 }).map((_, i) => getThisYear() + i),\n];\n\nconst isNextQuarter = (current: string, next: string) => {\n const currentQuarter = quarterSchema\n .transform(quarterTransform)\n .parse(current);\n const currentYear = yearSchema.parse(current);\n const nextQuarter = quarterSchema.transform(quarterTransform).parse(next);\n const nextYear = yearSchema.parse(next);\n const sameYear = currentYear === nextYear;\n const quarterDeltaOne = nextQuarter - currentQuarter === 1;\n const yearDeltaOne = nextYear - currentYear === 1;\n const lastAndFirstQuarter = currentQuarter === 4 && nextQuarter === 1;\n\n return (sameYear && quarterDeltaOne) || (lastAndFirstQuarter && yearDeltaOne);\n};\n\nconst getNextQuarter = (current: string) => {\n const currentQuarter = quarterSchema\n .transform(quarterTransform)\n .parse(current);\n const currentYear = yearSchema.parse(current);\n\n let nextQuarter;\n let nextYear = currentYear;\n\n if (currentQuarter === 4) {\n nextQuarter = 1;\n nextYear = currentYear + 1;\n } else {\n nextQuarter = currentQuarter + 1;\n }\n\n return `Q${nextQuarter} ${nextYear.toString()}`;\n};\n\nconst getSlashedQuarterName = (quarterName: string) => {\n const validQuarterName = z\n .string()\n .regex(/Q[1,2,3,4] \\d{2}/)\n .parse(quarterName);\n\n return validQuarterName.replace(\" \", \"/\");\n};\n\ntype QuarterPrice = {\n id: string;\n price: number;\n quarter: {\n name: string;\n id: string;\n };\n};\n\ntype QuarterPricePlaceholder = Pick & {\n type: \"placeholder\";\n};\n\ntype QuarterPriceOutput = QuarterPrice & { type: \"data\" };\n\nconst getPricesView = (\n quarters: readonly QuarterPrice[],\n): Array> => {\n const result: Array = [];\n if (quarters.length === 0) {\n return [result];\n }\n\n const first = quarters.at(0)!;\n\n if (first.quarter.name.startsWith(\"Q1\")) {\n result.push(...[null, null]);\n } else if (first.quarter.name.startsWith(\"Q2\")) {\n result.push(...[null, null, null]);\n } else if (first.quarter.name.startsWith(\"Q3\")) {\n // we don't need no placeholders for Q3\n } else {\n result.push(null);\n }\n\n result.push({ ...first, type: \"data\" });\n const withoutFirst = quarters.slice(1);\n\n // fill the potential gaps\n while (withoutFirst.length) {\n const current = () => result.at(-1);\n const next = withoutFirst.shift();\n\n if (!(current() && next)) {\n break;\n }\n\n while (!isNextQuarter(current()!.quarter.name, next.quarter.name)) {\n const generatedQuarterName = getNextQuarter(current()!.quarter.name);\n result.push({\n type: \"placeholder\",\n quarter: {\n name: generatedQuarterName,\n id: generatedQuarterName,\n },\n });\n }\n result.push({ ...next, type: \"data\" });\n }\n\n return chunk(result, 4);\n};\n\nexport {\n getHarvestYearFromQuarter,\n getHarvestYears,\n getNextQuarter,\n getPricesView,\n getSlashedQuarterName,\n getThisYear,\n isNextQuarter,\n isPreviousYearStillAvailable,\n};\n","import { currencyFormatter } from \"@/common/services/formatter\";\nimport { getSlashedQuarterName } from \"@/common/utils/trading\";\n\ntype Price = {\n id: string;\n value: number;\n currency: string;\n quarter: string;\n};\n\ntype Props = {\n className?: string;\n prices: Array;\n renderPrice?: (price: Props[\"prices\"][number]) => React.ReactNode;\n};\n\nconst PriceList = ({ renderPrice, prices, className = \"\" }: Props) => (\n \n {prices.map((price, i) => (\n \n {renderPrice ? renderPrice(price) : }\n \n ))}\n \n);\n\nconst PriceItem = ({ price }: { price: Props[\"prices\"][number] }) =>\n price ? (\n <>\n \n {price.value\n ? currencyFormatter(price.currency, {\n maximumFractionDigits: price.currency === \"CZK\" ? 0 : 2,\n })\n .format(price.value)\n .replace(price.currency, \"\")\n : null}\n \n {getSlashedQuarterName(price.quarter)}\n \n ) : null;\n\nexport { PriceItem, PriceList };\nexport type { Price };\n","const Spacer = ({ className }: { className?: `h-${number | string}` }) => {\n return  ;\n};\n\nexport { Spacer };\n","import { useSearchParams } from \"react-router-dom\";\nimport { z } from \"zod\";\n\nconst currencies = [\"CZK\", \"EUR\"] as const;\ntype Currency = (typeof currencies)[number];\n\nconst useCurrency = () => {\n const [searchParams, setSearchParams] = useSearchParams();\n const currencyEnum = z.enum(currencies);\n const currency = currencyEnum.parse(searchParams.get(\"currency\"));\n\n const setCurrency = (next: Currency) => {\n setSearchParams((cur) => {\n cur.set(\"currency\", next);\n return cur;\n });\n };\n\n const handleChange: React.ChangeEventHandler = (e) => {\n setCurrency(e.target.value as Currency);\n };\n\n const Component = currency ? (\n \n {currencies.map((currency) => (\n \n ))}\n \n ) : null;\n\n return [Component, currency, setCurrency] as const;\n};\n\nexport { currencies, useCurrency };\nexport type { Currency };\n","import isNull from \"lodash-es/isNull\";\nimport React from \"react\";\n\nconst defaultEmptyCheckFn: (input: string | null) => input is null = isNull;\n\nconst useLocalStorage = (\n key: string,\n initialValue?: T,\n emptyCheckFn = defaultEmptyCheckFn,\n) => {\n const [state, setState] = React.useState(() => {\n const current = getLocalStorageItem(key);\n\n if (!emptyCheckFn(current)) {\n try {\n return JSON.parse(current);\n } catch {\n removeLocalStorageItem(key);\n }\n }\n\n return initialValue;\n });\n\n React.useEffect(() => {\n if (state === null || state === undefined) {\n removeLocalStorageItem(key);\n } else {\n setLocalStorageItem(key, state);\n }\n }, [key, state]);\n\n return [state, setState] as const;\n};\n\nconst setLocalStorageItem = (key: string, value: unknown) => {\n const stringified = JSON.stringify(value);\n window.localStorage.setItem(key, stringified);\n};\n\nconst removeLocalStorageItem = (key: string) => {\n window.localStorage.removeItem(key);\n};\n\nconst getLocalStorageItem = (key: string) => window.localStorage.getItem(key);\n\nconst arrayEmptyCheckFn = (input: string | null): input is null =>\n isNull(input) || input === \"[]\";\n\nexport { arrayEmptyCheckFn, useLocalStorage };\n","import React from \"react\";\n\nconst className = \"overflow-hidden\";\n\nconst useScrollbarToggle = (on: boolean | undefined = false) => {\n React.useEffect(() => {\n if (on) {\n document.body.classList.add(className);\n } else {\n document.body.classList.remove(className);\n }\n\n return () => {\n document.body.classList.remove(className);\n };\n }, [on]);\n};\n\nconst useLazyScrollbarToggle = () => {\n const toggle = React.useCallback((on: boolean | undefined = false) => {\n if (on) {\n document.body.classList.add(className);\n } else {\n document.body.classList.remove(className);\n }\n\n return () => {\n document.body.classList.remove(className);\n };\n }, []);\n\n return toggle;\n};\n\nexport { useLazyScrollbarToggle, useScrollbarToggle };\n","import React from \"react\";\nimport { useLocation } from \"react-router-dom\";\nimport invariant from \"tiny-invariant\";\n\nimport { PlanPeriodToType } from \"@/generated/api/users\";\n\nconst SCREENS = {\n USER_PROFILE: \"user-profile\",\n USER_COMPANY: \"user-company\",\n USER_SUCCESS: \"user-success\",\n USER_FAILURE: \"user-failure\",\n NOTIFICATIONS: \"notifications\",\n SUBSCRIPTIONS: \"subscriptions\",\n SUBSCRIPTIONS_OVERVIEW: \"subscriptions-overview\",\n SUBSCRIPTIONS_DETAIL: \"subscriptions-detail\",\n SUBSCRIPTIONS_CANCEL: \"subscriptions-cancel\",\n SUBSCRIPTIONS_CANCEL_FAILURE: \"subscriptions-cancel-failure\",\n PAYMENT_CARD: \"payment-card\",\n PAYMENT_BANK_TRANSFER: \"payment-bank-transfer\",\n PAYMENT_DETAIL: \"payment-detail\",\n} as const;\n\ntype UserScreen =\n | typeof SCREENS.USER_PROFILE\n | typeof SCREENS.USER_COMPANY\n | typeof SCREENS.USER_SUCCESS\n | typeof SCREENS.USER_FAILURE;\ntype PaymentBankTransferScreen = typeof SCREENS.PAYMENT_BANK_TRANSFER;\ntype PaymentCardScreen = typeof SCREENS.PAYMENT_CARD;\ntype PaymentDetailScreen = typeof SCREENS.PAYMENT_DETAIL;\ntype NotificationsScreen = typeof SCREENS.NOTIFICATIONS;\ntype SubscriptionsScreen = typeof SCREENS.SUBSCRIPTIONS;\ntype SubscriptionOverviewScreen = typeof SCREENS.SUBSCRIPTIONS_OVERVIEW;\ntype SubscriptionDetailScreen = typeof SCREENS.SUBSCRIPTIONS_DETAIL;\ntype SubscriptionCancelScreen = typeof SCREENS.SUBSCRIPTIONS_CANCEL;\ntype SubscriptionCancelFailureScreen =\n typeof SCREENS.SUBSCRIPTIONS_CANCEL_FAILURE;\ntype Screen =\n | NotificationsScreen\n | PaymentBankTransferScreen\n | PaymentCardScreen\n | SubscriptionCancelFailureScreen\n | SubscriptionCancelScreen\n | SubscriptionDetailScreen\n | SubscriptionOverviewScreen\n | SubscriptionsScreen\n | UserScreen\n | PaymentDetailScreen\n | undefined;\n\ntype BaseAction = {\n type: T;\n};\n\ntype OpenAction = BaseAction<\"open\"> & {\n screen: S;\n};\n\ntype PaymentDetailOpenActionPayload = {\n paymentId: number;\n};\n\ntype PaymentDetailOpenAction = OpenAction & {\n payload: PaymentDetailOpenActionPayload;\n};\n\ntype PaymentBankTransferOpenActionSuccessPayload = {\n gatewayId: string;\n invoiceId: number;\n swift: string;\n iban: string;\n plan: string;\n price: string;\n priceWithVAT: string;\n variableSymbol: string;\n accountNumber: string;\n email: string;\n error?: never;\n};\n\ntype PaymentBankTransferOpenActionErrorPayload = {\n gatewayId?: never;\n invoiceId?: never;\n swift?: never;\n iban?: never;\n plan?: never;\n price?: never;\n priceWithVAT?: never;\n variableSymbol?: never;\n accountNumber?: never;\n email?: never;\n error: Error;\n};\n\ntype PaymentBankTransferOpenAction = OpenAction & {\n payload:\n | PaymentBankTransferOpenActionSuccessPayload\n | PaymentBankTransferOpenActionErrorPayload;\n};\n\ntype PaymentCardOpenActionSuccessPayload = {\n price: string;\n priceWithVAT: string;\n publicKey: string;\n clientSecret: string;\n error?: never;\n};\n\ntype PaymentCardOpenActionErrorPayload = {\n price?: never;\n priceWithVAT?: never;\n publicKey?: never;\n clientSecret?: never;\n error: Error;\n};\n\ntype PaymentCardOpenAction = OpenAction & {\n payload:\n | PaymentCardOpenActionSuccessPayload\n | PaymentCardOpenActionErrorPayload;\n};\n\ntype SubscriptionOverviewActionPayload = {\n price: string;\n plan: string;\n period: PlanPeriodToType;\n periodId: number;\n};\n\ntype SubscriptionOverviewOpenAction = OpenAction & {\n payload: SubscriptionOverviewActionPayload;\n};\n\ntype SubscriptionDetailPayload = {\n subscriptionId: number | null;\n};\n\ntype SubscriptionDetailOpenAction = OpenAction & {\n payload: SubscriptionDetailPayload;\n};\n\ntype SubscriptionCancelOpenAction = OpenAction;\n\ntype CommonAction =\n | OpenAction\n | BaseAction<\"toggle\">\n | BaseAction<\"noop\">\n | BaseAction<\"close\">\n | BaseAction<\"executeNext\"> // execute next action based on current state\n | BaseAction<\"executeClose\">; // execute close action based on current state\n\ntype Action =\n | CommonAction\n | SubscriptionOverviewOpenAction\n | PaymentCardOpenAction\n | PaymentBankTransferOpenAction\n | PaymentDetailOpenAction\n | SubscriptionDetailOpenAction\n | SubscriptionCancelOpenAction;\n\ntype NavigationState =\n | {\n screen: Exclude<\n Screen,\n | SubscriptionOverviewScreen\n | SubscriptionDetailScreen\n | SubscriptionCancelScreen\n | PaymentBankTransferScreen\n | PaymentCardScreen\n | PaymentDetailScreen\n >;\n nextAction: Action;\n closeAction: Action;\n }\n | {\n screen: PaymentDetailScreen;\n nextAction: Action;\n closeAction: Action;\n paymentId: number;\n }\n | (PaymentBankTransferOpenActionSuccessPayload & {\n screen: PaymentBankTransferScreen;\n nextAction: Action;\n closeAction: Action;\n })\n | (PaymentBankTransferOpenActionErrorPayload & {\n screen: PaymentBankTransferScreen;\n nextAction: Action;\n closeAction: Action;\n })\n | (PaymentCardOpenActionSuccessPayload & {\n screen: PaymentCardScreen;\n nextAction: Action;\n closeAction: Action;\n })\n | (PaymentCardOpenActionErrorPayload & {\n screen: PaymentCardScreen;\n nextAction: Action;\n closeAction: Action;\n })\n | {\n screen: SubscriptionOverviewScreen;\n nextAction: Action;\n closeAction: Action;\n price: string;\n plan: string;\n period: PlanPeriodToType;\n periodId: number;\n }\n | {\n screen: SubscriptionDetailScreen;\n subscriptionId: number | null;\n nextAction: Action;\n closeAction: Action;\n }\n | {\n screen: SubscriptionCancelScreen;\n subscriptionId: number;\n nextAction: Action;\n closeAction: Action;\n };\n\ntype ScreenConfig = {\n nextAction: Action;\n closeAction: Action;\n};\n\nconst screenConfigs: Record, ScreenConfig> = {\n [SCREENS.USER_SUCCESS]: {\n nextAction: { type: \"open\", screen: SCREENS.USER_PROFILE },\n closeAction: { type: \"toggle\" },\n },\n [SCREENS.USER_FAILURE]: {\n nextAction: { type: \"open\", screen: SCREENS.USER_PROFILE },\n closeAction: { type: \"toggle\" },\n },\n [SCREENS.USER_PROFILE]: {\n nextAction: { type: \"open\", screen: SCREENS.USER_COMPANY },\n closeAction: { type: \"toggle\" },\n },\n [SCREENS.USER_COMPANY]: {\n nextAction: { type: \"noop\" },\n closeAction: { type: \"open\", screen: SCREENS.USER_PROFILE },\n },\n [SCREENS.NOTIFICATIONS]: {\n nextAction: { type: \"noop\" },\n closeAction: { type: \"toggle\" },\n },\n [SCREENS.PAYMENT_CARD]: {\n nextAction: { type: \"noop\" },\n closeAction: { type: \"toggle\" },\n },\n [SCREENS.SUBSCRIPTIONS]: {\n nextAction: { type: \"noop\" },\n closeAction: { type: \"toggle\" },\n },\n [SCREENS.SUBSCRIPTIONS_DETAIL]: {\n nextAction: { type: \"noop\" },\n closeAction: { type: \"open\", screen: SCREENS.SUBSCRIPTIONS },\n },\n [SCREENS.SUBSCRIPTIONS_CANCEL]: {\n nextAction: { type: \"noop\" },\n closeAction: { type: \"open\", screen: SCREENS.SUBSCRIPTIONS },\n },\n [SCREENS.SUBSCRIPTIONS_CANCEL_FAILURE]: {\n nextAction: { type: \"noop\" },\n closeAction: { type: \"close\" },\n },\n\n [SCREENS.SUBSCRIPTIONS_OVERVIEW]: {\n nextAction: { type: \"noop\" },\n closeAction: { type: \"close\" },\n },\n [SCREENS.PAYMENT_BANK_TRANSFER]: {\n nextAction: { type: \"noop\" },\n closeAction: { type: \"close\" },\n },\n [SCREENS.PAYMENT_DETAIL]: {\n nextAction: { type: \"noop\" },\n closeAction: { type: \"open\", screen: SCREENS.SUBSCRIPTIONS },\n },\n};\n\nconst initialState: NavigationState = {\n screen: undefined,\n nextAction: { type: \"open\", screen: SCREENS.USER_PROFILE },\n closeAction: { type: \"toggle\" },\n};\n\n// TODO check rather isAction instead\nconst isSubscriptionOverviewAction = (\n action: Action,\n): action is SubscriptionOverviewOpenAction =>\n action.type === \"open\" && action.screen === SCREENS.SUBSCRIPTIONS_OVERVIEW;\n\nconst isPaymentCardAction = (action: Action): action is PaymentCardOpenAction =>\n action.type === \"open\" && action.screen === SCREENS.PAYMENT_CARD;\n\nconst isSubscriptionDetailAction = (\n action: Action,\n): action is SubscriptionDetailOpenAction =>\n action.type === \"open\" && action.screen === SCREENS.SUBSCRIPTIONS_DETAIL;\n\nconst isSubscriptionCancelAction = (\n action: Action,\n): action is SubscriptionCancelOpenAction =>\n action.type === \"open\" && action.screen === SCREENS.SUBSCRIPTIONS_CANCEL;\n\nconst isBankTransferAction = (\n action: Action,\n): action is PaymentBankTransferOpenAction =>\n action.type === \"open\" && action.screen === SCREENS.PAYMENT_BANK_TRANSFER;\n\nconst isOpenAction = (\n action: Action,\n): action is OpenAction<\n Exclude<\n Screen,\n | SubscriptionOverviewScreen\n | SubscriptionDetailScreen\n | SubscriptionCancelScreen\n | PaymentBankTransferScreen\n | PaymentCardScreen\n | PaymentDetailScreen\n >\n> =>\n action.type === \"open\" &&\n action.screen !== SCREENS.PAYMENT_CARD &&\n action.screen !== SCREENS.PAYMENT_BANK_TRANSFER &&\n action.screen !== SCREENS.PAYMENT_DETAIL &&\n action.screen !== SCREENS.SUBSCRIPTIONS_DETAIL &&\n action.screen !== SCREENS.SUBSCRIPTIONS_OVERVIEW &&\n action.screen !== SCREENS.SUBSCRIPTIONS_CANCEL;\n\nconst isPaymentDetailOpenAction = (\n action: Action,\n): action is PaymentDetailOpenAction =>\n action.type === \"open\" && action.screen === SCREENS.PAYMENT_DETAIL;\n\nconst reducer = (state: NavigationState, action: Action): NavigationState => {\n switch (action.type) {\n case \"executeNext\":\n return reducer(state, state.nextAction);\n case \"executeClose\":\n return reducer(state, state.closeAction);\n case \"open\": {\n if (!action.screen) return state;\n\n const config = screenConfigs[action.screen];\n\n if (isOpenAction(action)) {\n return {\n screen: action.screen,\n nextAction: config.nextAction,\n closeAction: config.closeAction,\n };\n }\n\n if (isPaymentDetailOpenAction(action)) {\n return {\n screen: action.screen,\n nextAction: config.nextAction,\n closeAction: config.closeAction,\n paymentId: action.payload.paymentId,\n };\n }\n\n if (isBankTransferAction(action)) {\n if (action.payload.error) {\n return {\n screen: action.screen,\n nextAction: config.nextAction,\n closeAction: config.closeAction,\n error: action.payload.error,\n };\n }\n\n return {\n screen: action.screen,\n nextAction: config.nextAction,\n closeAction: config.closeAction,\n ...action.payload,\n };\n }\n\n if (isPaymentCardAction(action)) {\n if (action.payload.error) {\n return {\n screen: action.screen,\n nextAction: config.nextAction,\n closeAction: config.closeAction,\n error: action.payload.error,\n };\n }\n return {\n screen: action.screen,\n nextAction: config.nextAction,\n closeAction: config.closeAction,\n ...action.payload,\n };\n }\n\n if (isSubscriptionOverviewAction(action)) {\n return {\n screen: action.screen,\n nextAction: config.nextAction,\n closeAction: config.closeAction,\n ...action.payload,\n };\n }\n\n if (isSubscriptionDetailAction(action)) {\n return {\n screen: action.screen,\n nextAction: config.nextAction,\n closeAction: config.closeAction,\n ...action.payload,\n };\n }\n\n if (isSubscriptionCancelAction(action)) {\n invariant(state.screen === SCREENS.SUBSCRIPTIONS_DETAIL);\n invariant(state.subscriptionId);\n return {\n screen: action.screen,\n nextAction: config.nextAction,\n closeAction: config.closeAction,\n subscriptionId: state.subscriptionId,\n };\n }\n throw new Error(\n // eslint-disable-next-line lingui/no-unlocalized-strings\n `You should have never got here for action: ${JSON.stringify(action)}`,\n );\n }\n\n case \"toggle\":\n return {\n screen: undefined,\n nextAction: { type: \"open\", screen: SCREENS.USER_PROFILE },\n closeAction: { type: \"noop\" },\n };\n\n case \"close\":\n return {\n screen: undefined,\n nextAction: { type: \"noop\" },\n closeAction: { type: \"noop\" },\n };\n\n case \"noop\":\n return state;\n\n default: {\n const exhaustiveCheck: never = action;\n throw new Error(\n // eslint-disable-next-line lingui/no-unlocalized-strings\n `Unhandled action type: ${JSON.stringify(exhaustiveCheck)}`,\n );\n }\n }\n};\n\nexport const useNavigation = () => {\n const [state, dispatch] = React.useReducer(reducer, initialState);\n\n const actions = React.useMemo(\n () => ({\n openScreen: (screen: Screen) => dispatch({ type: \"open\", screen }),\n openPaymentDetail: (payload: PaymentDetailOpenActionPayload) =>\n dispatch({ type: \"open\", screen: SCREENS.PAYMENT_DETAIL, payload }),\n openPaymentBankTransfer: (\n payload:\n | PaymentBankTransferOpenActionErrorPayload\n | PaymentBankTransferOpenActionSuccessPayload,\n ) =>\n dispatch({\n type: \"open\",\n screen: SCREENS.PAYMENT_BANK_TRANSFER,\n payload,\n }),\n openPaymentCard: (\n payload:\n | PaymentCardOpenActionErrorPayload\n | PaymentCardOpenActionSuccessPayload,\n ) =>\n dispatch({\n type: \"open\",\n screen: SCREENS.PAYMENT_CARD,\n payload,\n }),\n openSubscriptionOverview: (payload: SubscriptionOverviewActionPayload) =>\n dispatch({\n type: \"open\",\n screen: SCREENS.SUBSCRIPTIONS_OVERVIEW,\n payload,\n }),\n openCancelSubscription: () => {\n dispatch({\n type: \"open\",\n screen: SCREENS.SUBSCRIPTIONS_CANCEL,\n });\n },\n openSubscription: (payload: SubscriptionDetailPayload) =>\n dispatch({\n type: \"open\",\n screen: SCREENS.SUBSCRIPTIONS_DETAIL,\n payload,\n }),\n toggle: () => dispatch({ type: \"toggle\" }),\n close: () => dispatch({ type: \"close\" }),\n noop: () => dispatch({ type: \"noop\" }),\n executeNextAction: () => dispatch({ type: \"executeNext\" }),\n executeCloseAction: () => dispatch({ type: \"executeClose\" }),\n }),\n [],\n );\n\n return {\n state,\n actions,\n };\n};\n\nconst Context = React.createContext<\n ReturnType | undefined\n>(undefined);\n\nconst useSidebar = () => {\n const ctx = React.useContext(Context);\n invariant(\n ctx,\n // eslint-disable-next-line lingui/no-unlocalized-strings\n \"sidebar context is only available within component\",\n );\n\n return ctx;\n};\n\nconst useAutoclosedSidebar = () => {\n const { actions } = useSidebar();\n const location = useLocation();\n\n React.useEffect(() => {\n actions.toggle();\n }, [location.key, actions]);\n};\n\nconst Autoclose = ({ children }: React.PropsWithChildren) => {\n useAutoclosedSidebar();\n\n return <>{children};\n};\n\nconst SidebarProvider = ({ children }: React.PropsWithChildren) => {\n const navigation = useNavigation();\n\n return (\n {children}\n );\n};\n\nexport { Autoclose, SidebarProvider, useSidebar };\nexport type { Screen };\n","import { Strategy } from \"../purchase-prices.flow\";\n\nclass FullStrategy implements Strategy {\n public getFavorites() {\n return [];\n }\n\n public isMasked() {\n return false;\n }\n\n public getMaskedPrice() {\n return undefined;\n }\n}\n\nexport { FullStrategy };\n","import random from \"lodash-es/random\";\n\nimport { Strategy } from \"../purchase-prices.flow\";\n\nclass TrialStrategy implements Strategy {\n public getFavorites() {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n return [\"Hrách\", \"Ječmen krmný\"];\n }\n\n public isMasked(cropName: string) {\n return !this.getFavorites().includes(cropName);\n }\n\n public getMaskedPrice(cropName: string, currency: \"CZK\" | \"EUR\") {\n if (this.getFavorites().includes(cropName)) {\n return;\n }\n\n return {\n id: random(false).toString(),\n quarter:\n \"Q\" + random(1, 4, false).toString() + \" \" + random(10, 20).toString(),\n value: random(-10000, 0, false),\n currency,\n };\n }\n}\n\nexport { TrialStrategy };\n","import invariant from \"tiny-invariant\";\n\nimport { FullStrategy } from \"./strategies/full.strategy\";\nimport { TrialStrategy } from \"./strategies/trial.strategy\";\n\ntype Mode = \"trial\" | \"full\" | \"not-available\";\n\ninterface Strategy {\n getFavorites: () => string[];\n isMasked: (cropName: string) => boolean;\n getMaskedPrice: (\n cropName: string,\n currency: \"CZK\" | \"EUR\",\n ) =>\n | undefined\n | { id: string; quarter: string; value: number; currency: string };\n}\n\n/**\n * Purchase prices are blurred for users with trial version of the feature.\n */\nclass PurchasePricesFlow {\n private currentStrategy: Strategy | undefined;\n private strategies: Map;\n\n constructor() {\n this.strategies = new Map([\n [\"trial\", new TrialStrategy()],\n [\"full\", new FullStrategy()],\n ]);\n }\n\n public setStrategy(mode: Mode) {\n const strategy = this.strategies.get(mode);\n // eslint-disable-next-line lingui/no-unlocalized-strings\n invariant(strategy, `Strategy for mode ${mode} does not exist`);\n this.currentStrategy = strategy;\n }\n\n public getFavorites(): string[] {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n invariant(this.currentStrategy, \"No current strategy available\");\n return this.currentStrategy.getFavorites();\n }\n\n public getMasked(cropName: string): boolean {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n invariant(this.currentStrategy, \"No current strategy available\");\n return this.currentStrategy.isMasked(cropName);\n }\n\n public getMaskedPrice(cropName: string, currency: \"CZK\" | \"EUR\") {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n invariant(this.currentStrategy, \"No current strategy available\");\n return this.currentStrategy.getMaskedPrice(cropName, currency);\n }\n}\n\nexport { PurchasePricesFlow };\nexport type { Strategy };\n","import { queryOptions } from \"@tanstack/react-query\";\nimport { z } from \"zod\";\n\ntype PostalCodes = z.infer;\n\nconst postalCodesSchema = z.array(\n z.object({\n code: z.number(),\n name: z.string(),\n latitude: z.number(),\n longitude: z.number(),\n }),\n);\n\nconst fetchData = async (signal: AbortSignal) => {\n const response = await fetch(\"/data/postal-codes-cz.json\", { signal });\n const json = await response.json();\n const safeJson = postalCodesSchema.parse(json);\n\n return safeJson;\n};\n\nconst postalCodesQuery = () =>\n queryOptions({\n queryKey: [\"postal-codes\"],\n queryFn: ({ signal }) => fetchData(signal),\n staleTime: Infinity,\n select: (data) =>\n data.map(({ code, name, ...rest }) => ({\n ...rest,\n code: code.toString(),\n name,\n label: `${code} ${name}`,\n })),\n });\n\nexport { postalCodesQuery };\nexport type { PostalCodes };\n","import { useAuth0 } from \"@auth0/auth0-react\";\nimport { Trans } from \"@lingui/react/macro\";\nimport React from \"react\";\nimport invariant from \"tiny-invariant\";\n\nimport { Dialog } from \"@/common/components/dialog/dialog\";\nimport { useToggle } from \"@/common/hooks/use-toggle\";\nimport { Company, getUser, Grant } from \"@/common/services/user\";\n\ntype Props = React.PropsWithChildren<{\n grant: Grant;\n guard: {\n title: React.ReactNode;\n content: React.ReactNode;\n action: React.ReactNode;\n };\n}>;\n\ntype CheckFn = (company: Company) => boolean;\n\nconst ActionGuardContext = React.createContext<\n { open: () => void; close: () => void; grant: Grant } | undefined\n>(undefined);\n\nconst useActionGuardProvider = () => {\n const ctx = React.useContext(ActionGuardContext);\n\n invariant(\n ctx,\n // eslint-disable-next-line lingui/no-unlocalized-strings\n \"ActionGuardContext only available within \",\n );\n\n return ctx;\n};\n\nconst useGuard = void,>({\n action,\n checkFn,\n}: {\n action: T;\n checkFn?: CheckFn;\n}): T | (() => void) => {\n const { open: raiseIssue, grant } = useActionGuardProvider();\n const { user: _user } = useAuth0();\n // eslint-disable-next-line lingui/no-unlocalized-strings\n invariant(_user, \"User should be defined\");\n const user = getUser(_user);\n const company = user[\"can/app_metadata\"]?.companies?.at(0);\n\n if (!company) {\n return raiseIssue;\n }\n\n const can = checkFn\n ? checkFn(company)\n : company.grants.includes(grant) && company.approvalState === \"APPROVED\";\n\n if (can) {\n return action;\n }\n\n return raiseIssue;\n};\n\nconst canSignCheckFn: CheckFn = (company) =>\n company.users.some(\n (user) =>\n user.grants.includes(\"CONTRACT_SIGN\") &&\n user.approvalState === \"APPROVED\",\n );\n\nconst ActionGuard = ({ children, grant, guard }: Props) => {\n const dialog = useToggle();\n\n return (\n \n {children}\n {dialog.on ? (\n \n {guard.title}\n {Array.isArray(guard.content) ? (\n guard.content.map((c, i) => (\n {c}\n ))\n ) : (\n {guard.content}\n )}\n \n \n {guard.action}\n \n \n \n ) : null}\n \n );\n};\n\nconst contractSignGuard: Props[\"guard\"] = {\n title: Akci nelze dokončit,\n content: [\n \n Ve vaší společnosti nefiguruje uživatel s podpisovým právem.\n ,\n \n Kontaktujte podporu{\" \"}\n help@cleverfarm.ag.\n ,\n ],\n action: Zavřít,\n};\n\nexport { ActionGuard, canSignCheckFn, contractSignGuard, useGuard };\n","import { t } from \"@lingui/core/macro\";\n\nimport { PlanPeriodTo } from \"@/generated/api/users\";\n\nconst getLocalizedPeriods = (): Record => ({\n DAILY: t`Denní`,\n QUARTERLY: t`Čvrtletní`,\n MONTHLY: t`Měsíční`,\n YEARLY: t`Roční`,\n});\n\nexport { getLocalizedPeriods };\n","/* DO NOT MODIFY BY HAND */\n\nimport { msg } from \"@lingui/core/macro\";\nimport invariant from \"tiny-invariant\";\nimport type { MessageDescriptor } from \"@lingui/core\";\n\nconst features = new Map();\nfeatures.set(\"market_news_trial_title\", msg`market_news_trial_title`)\nfeatures.set(\"market_news_trial_description\", msg`market_news_trial_description`)\nfeatures.set(\"market_news_full_title\", msg`market_news_full_title`)\nfeatures.set(\"market_news_full_description\", msg`market_news_full_description`)\nfeatures.set(\"stock_exchange_full_title\", msg`stock_exchange_full_title`)\nfeatures.set(\"stock_exchange_full_description\", msg`stock_exchange_full_description`)\nfeatures.set(\"quick_trading_full_title\", msg`quick_trading_full_title`)\nfeatures.set(\"quick_trading_full_description\", msg`quick_trading_full_description`)\nfeatures.set(\"purchase_prices_trial_title\", msg`purchase_prices_trial_title`)\nfeatures.set(\"purchase_prices_trial_description\", msg`purchase_prices_trial_description`)\nfeatures.set(\"purchase_prices_full_title\", msg`purchase_prices_full_title`)\nfeatures.set(\"purchase_prices_full_description\", msg`purchase_prices_full_description`)\nfeatures.set(\"trading_full_title\", msg`trading_full_title`)\nfeatures.set(\"trading_full_description\", msg`trading_full_description`)\nfeatures.set(\"transactions_orders_full_title\", msg`transactions_orders_full_title`)\nfeatures.set(\"transactions_orders_full_description\", msg`transactions_orders_full_description`)\nfeatures.set(\"storages_full_title\", msg`storages_full_title`)\nfeatures.set(\"storages_full_description\", msg`storages_full_description`)\n\nexport const getTranslation = (id: string) => {\n const translation = features.get(id)\n\n invariant(translation)\n return translation\n}","import angleSmallDownSvg from \"@icons/angle-small-down.svg?url\";\nimport CheckCircleGreen from \"@icons/check-circle-green.svg?react\";\nimport { t } from \"@lingui/core/macro\";\nimport { useLingui } from \"@lingui/react\";\nimport { Trans } from \"@lingui/react/macro\";\nimport { queryOptions, useSuspenseQuery } from \"@tanstack/react-query\";\nimport { DateTime } from \"luxon\";\nimport React from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport invariant from \"tiny-invariant\";\n\nimport { ActionGuard, useGuard } from \"@/common/acl/action-guard/action-guard\";\nimport { Button } from \"@/common/components/button/button\";\nimport { PageTitle } from \"@/common/components/page-title/page-title\";\nimport { Spacer } from \"@/common/components/spacer/spacer\";\nimport { Spinner } from \"@/common/components/spinner/spinner\";\nimport { useRequiredFirstCompany } from \"@/common/hooks/use-first-company\";\nimport { useSidebar } from \"@/common/providers/sidebar-provider/sidebar-provider\";\nimport { currencyFormatter, getPrice } from \"@/common/services/formatter\";\nimport { getLocalizedPeriods } from \"@/common/utils/period\";\nimport {\n getCompanyPlans,\n getCurrentCompany,\n PlanPeriodTo,\n PlanTo,\n} from \"@/generated/api/users\";\nimport { getTranslation } from \"@/generated/plan-feature-i18n\";\nimport { TwoColumnLayout } from \"@/routes/layout/layout\";\n\nconst Plans = ({ children }: React.PropsWithChildren) => {\n const company = useRequiredFirstCompany();\n const plans = useSuspenseQuery(plansQuery());\n\n return (\n \n {children}\n
\n \n Odemkněte si všechny funkce\n \n
\n \n ),\n content: (\n
\n {company.plan.type === \"BASIC\" ? (\n

\n \n Využíváte základní předplatné {company.plan.type}, proto jsou\n pro vás některé funkce nedostupné. Vyberte si vyšší balíček\n služeb.\n \n

\n ) : null}\n
\n {plans.data.map((plan) => (\n \n ))}\n
\n \n
\n ),\n }}\n >\n );\n};\n\nconst Plan = ({ active, plan }: { active: boolean; plan: PlanTo }) => {\n const i18n = useLingui();\n return (\n \n

\n {plan.name}\n

\n

\n {active ? (\n Toto je váš aktuální balíček služeb.\n ) : (\n V balíčku najdete tyto služby:\n )}\n

\n
    \n {plan.features.map((feature) => {\n const featureDescriptionId = `${feature.feature.type.toLowerCase()}_${feature.mode.toLowerCase()}_description`;\n const featureTitleId = `${feature.feature.type.toLowerCase()}_${feature.mode.toLowerCase()}_title`;\n return (\n
  • \n \n \n \n
    \n

    \n {i18n._(getTranslation(featureTitleId))}\n

    \n

    \n {i18n._(getTranslation(featureDescriptionId))}\n
    \n

    \n
    \n
  • \n );\n })}\n
\n {plan.periods.length > 0 ? (\n \n ) : (\n \n )}\n {active ? : null}\n \n );\n};\n\nconst FreePricing = () => (\n \n Měsíční předplatné zdarma\n \n);\n\nconst Pricing = ({\n plan,\n periods,\n}: {\n plan: string;\n periods: PlanPeriodTo[];\n}) => {\n const form = useForm<{ period: PlanPeriodTo[\"type\"] }>({\n defaultValues: {\n period: \"YEARLY\",\n },\n });\n const activeSubscription = useActiveSubscriptionEndDate();\n const translations = getLocalizedPeriods();\n const activePeriod = form.watch(\"period\");\n const activePrice = periods.find((period) => period.type === activePeriod);\n invariant(activePrice);\n const formattedPrice = getFormattedPrice(\n getPrice(activePrice.price, activePrice.currency.precision),\n activePrice.currency.type,\n );\n const { actions } = useSidebar();\n\n const handlePeriodClick = () => {\n const periodId = activePrice.id;\n invariant(periodId);\n actions.openSubscriptionOverview({\n price: formattedPrice,\n plan,\n period: activePeriod,\n periodId,\n });\n };\n\n const handleGuardedPeriodClick = useGuard({\n action: handlePeriodClick,\n });\n\n return (\n
\n

\n Období\n

\n \n \n {periods.map((period) => (\n \n ))}\n \n \n \n \n \n Cena je uvedena bez DPH.\n \n {activeSubscription?.planType === plan ? (\n <>\n \n \n \n \n Vaše současné předplatné skončí {activeSubscription.expiresAt}.\n \n \n \n \n ) : null}\n
\n );\n};\n\nconst getFormattedPrice = (price: number, currency: string) => {\n return currencyFormatter(currency).format(price);\n};\n\nconst plansQuery = () =>\n queryOptions({\n queryKey: [\"plans\"],\n queryFn: ({ signal }) => getCompanyPlans({ inPlan: true }, { signal }),\n staleTime: Infinity,\n });\n\nconst LockedScreen = ({ children }: React.PropsWithChildren) => (\n Akci nelze dokončit,\n content: Nemáte dostatečné oprávnění.,\n action: Zavřít,\n }}\n grant=\"PAYMENT_CREATE\"\n >\n \n \n \n }\n >\n {children}\n \n
\n);\n\nconst useActiveSubscriptionEndDate = () => {\n const company = useSuspenseQuery(currentCompanyQuery());\n const manualSubscriptions = company.data.subscriptions.filter(\n (s) => s.source === \"MANUAL\",\n );\n const paidSubscriptions = company.data.subscriptions.filter(\n (s) => s.source === \"PAID\",\n );\n const trialSubscriptions = company.data.subscriptions.filter(\n (s) => s.source === \"TRIAL\",\n );\n\n if (manualSubscriptions.length === 0 && paidSubscriptions.length === 0) {\n return;\n }\n\n const subscription =\n manualSubscriptions.at(0) ??\n trialSubscriptions.at(0) ??\n paidSubscriptions.at(0);\n\n if (subscription?.expiresAt) {\n return {\n planType: subscription.plan.type,\n expiresAt: DateTime.fromISO(subscription.expiresAt).toLocaleString(\n DateTime.DATE_MED,\n ),\n };\n }\n};\n\nconst currentCompanyQuery = () =>\n queryOptions({\n queryKey: [\"company\", \"current\"],\n queryFn: ({ signal }) => getCurrentCompany({ signal }),\n });\n\nexport { LockedScreen };\n","import React from \"react\";\n\nconst useClickAway = (\n callback: (e: MouseEvent | TouchEvent | KeyboardEvent) => void,\n) => {\n const ref = React.useRef(null);\n const refCallback = React.useRef(callback);\n\n React.useEffect(() => {\n const handler = (e: MouseEvent | TouchEvent | KeyboardEvent) => {\n const element = ref.current;\n\n if (element && !element.contains(e.target as Node)) {\n refCallback.current(e);\n }\n };\n\n document.addEventListener(\"mousedown\", handler);\n document.addEventListener(\"touchstart\", handler);\n document.addEventListener(\"keyup\", (e) => {\n if (e.code === \"Escape\") {\n handler(e);\n }\n });\n\n return () => {\n document.removeEventListener(\"mousedown\", handler);\n document.removeEventListener(\"touchstart\", handler);\n document.removeEventListener(\"keyup\", handler);\n };\n }, []);\n\n return ref;\n};\n\nexport { useClickAway };\n","import { ErrorMessage } from \"@hookform/error-message\";\nimport React from \"react\";\nimport { HTMLInputTypeAttribute, InputHTMLAttributes } from \"react\";\nimport {\n FieldValues,\n Path,\n RegisterOptions,\n useFormContext,\n} from \"react-hook-form\";\n\nconst InputField = ({\n disabled,\n label,\n name,\n type = \"text\",\n options = {},\n ...rest\n}: {\n disabled?: boolean;\n label: React.ReactNode;\n name: Path;\n options?: RegisterOptions>;\n type?: HTMLInputTypeAttribute;\n} & Omit, \"required\">) => {\n const form = useFormContext();\n const { ref, ...registerRest } = form.register(name, options);\n const wheelCancel = React.useRef<() => void>(undefined);\n\n React.useEffect(\n () => () => {\n wheelCancel.current?.();\n },\n [],\n );\n\n return (\n \n );\n};\n\nconst disableWheel = (target: HTMLInputElement) => {\n target.addEventListener(\"wheel\", disableWheelHandler, {\n passive: false,\n capture: true,\n });\n\n return () => target.removeEventListener(\"wheel\", disableWheelHandler);\n};\n\nconst disableWheelHandler = (e: WheelEvent) => {\n e.preventDefault();\n};\n\nexport { InputField };\n","import Search from \"@icons/search.svg?url\";\nimport { t } from \"@lingui/core/macro\";\nimport { useSuspenseQuery } from \"@tanstack/react-query\";\nimport React from \"react\";\nimport { useFormContext } from \"react-hook-form\";\nimport invariant from \"tiny-invariant\";\n\nimport { InputField } from \"@/common/components/form/input-field/input-field\";\nimport { postalCodesQuery } from \"@/routes/shared/api/get-postal-codes\";\n\nimport { Fields } from \"./storage-form\";\n\nconst PostalCodeField = ({ label }: { label: React.ReactNode }) => {\n const firstRun = React.useRef(true);\n const form = useFormContext();\n const postalCodes = useSuspenseQuery(postalCodesQuery());\n const postalCodeField = form.register(\"postalCode\");\n const postalCodeValue = form.watch(\"postalCode\");\n const { setSuggestionsVisible, suggestions } = usePostalCodeField();\n\n // just make sure we have the postal code label\n React.useEffect(() => {\n if (!firstRun.current) {\n return;\n }\n firstRun.current = false;\n const postalCode = postalCodes.data.find(\n (pc) => pc.code === postalCodeValue,\n );\n if (postalCodeValue.split(\" \").length === 1 && postalCode) {\n form.setValue(\"postalCode\", postalCode.label);\n }\n }, [form, postalCodeValue, postalCodes.data]);\n\n return (\n \n postalCodes.data.some((pc) =>\n pc.label.toLowerCase().includes(value.toLowerCase()),\n ) || t`Vyberte PSČ ze seznamu`,\n }}\n style={{\n // eslint-disable-next-line lingui/no-unlocalized-strings\n background: `url(${Search}) right 16px center no-repeat`,\n }}\n onChange={async (e) => {\n await postalCodeField.onChange(e);\n setSuggestionsVisible(true);\n }}\n onFocus={() => {\n if (suggestions.length > 0) {\n setSuggestionsVisible(true);\n }\n }}\n />\n );\n};\n\nconst Suggestions = ({ className }: { className?: string }) => {\n const { selectSuggestion, suggestionsVisible, suggestions } =\n usePostalCodeField();\n return suggestionsVisible && suggestions.length > 0 ? (\n \n {suggestions.map((match) => (\n \n selectSuggestion(match.label)}\n >\n {match.label}\n \n \n ))}\n \n ) : null;\n};\n\ntype TContext = {\n setSuggestionsVisible: (v: boolean) => void;\n suggestionsVisible: boolean;\n suggestions: Array<{\n code: string;\n name: string;\n label: string;\n latitude: number;\n longitude: number;\n }>;\n selectSuggestion: (suggestion: string) => void;\n};\n\nconst Context = React.createContext(undefined);\n\nconst usePostalCodeField = () => {\n const context = React.useContext(Context);\n\n invariant(\n context,\n // eslint-disable-next-line lingui/no-unlocalized-strings\n \"Context only available within \",\n );\n\n return context;\n};\n\nconst Provider = ({ children }: React.PropsWithChildren) => {\n const form = useFormContext();\n const postalCodes = useSuspenseQuery(postalCodesQuery());\n const postalCodeValue = form.watch(\"postalCode\");\n const [suggestionsVisible, setSuggestionsVisible] = React.useState(false);\n const suggestions =\n postalCodeValue.length > 0\n ? (postalCodes.data ?? []).filter((c) =>\n c.label.toLowerCase().includes(postalCodeValue.toLowerCase()),\n )\n : [];\n\n const selectSuggestion = (code: string) => {\n form.setValue(\"postalCode\", code);\n setSuggestionsVisible(false);\n };\n\n return (\n \n {children}\n \n );\n};\n\nPostalCodeField.Suggestions = Suggestions;\nPostalCodeField.Provider = Provider;\n\nexport { PostalCodeField };\n","import { createSearchParams, useSearchParams } from \"react-router-dom\";\nimport { z } from \"zod\";\n\nconst currencySchema = z.object({\n currency: z.enum([\"CZK\", \"EUR\"]),\n});\n\nconst initialCurrency = {\n currency: \"CZK\",\n};\n\nconst initialParams = createSearchParams({\n currency: \"CZK\",\n});\n\nconst useCurrencyParams = () => {\n const [searchParams] = useSearchParams();\n const parsedParams = currencySchema.safeParse(\n Object.fromEntries(searchParams),\n );\n\n return {\n params: parsedParams.success ? parsedParams.data : undefined,\n };\n};\n\nexport { currencySchema, initialCurrency, initialParams, useCurrencyParams };\n","import Cross from \"@icons/cross.svg?react\";\nimport { Trans } from \"@lingui/react/macro\";\nimport { useQuery } from \"@tanstack/react-query\";\nimport { FormProvider, SubmitHandler, useForm } from \"react-hook-form\";\nimport { createSearchParams, useSearchParams } from \"react-router-dom\";\nimport invariant from \"tiny-invariant\";\nimport { z } from \"zod\";\n\nimport { Button } from \"@/common/components/button/button\";\nimport { Spinner } from \"@/common/components/spinner/spinner\";\nimport { useClickAway } from \"@/common/hooks/use-click-away\";\nimport { postalCodesQuery } from \"@/routes/shared/api/get-postal-codes\";\nimport { PostalCodeField } from \"@/routes/storages/components/storage-form/postal-code-field\";\n\nimport { currencySchema } from \"../../currency.params\";\n\ntype Fields = {\n postalCode: string;\n};\n\nconst PostalCodeDialog = () => {\n const { params, closeDialog, setPostalCode } = usePostalCodeDialogParams();\n const postalCodes = useQuery(postalCodesQuery());\n const clickAwayRef = useClickAway(closeDialog);\n const postalCodeObject = postalCodes.data?.find(\n (postalCode) => postalCode.code === params?.postalCode,\n );\n const form = useForm({\n defaultValues: {\n postalCode: postalCodeObject?.label ?? \"\",\n },\n });\n const postalCodeValue = form.watch(\"postalCode\");\n const handleSubmit: SubmitHandler = () => {\n const postalCode = postalCodeValue.split(\" \").at(0);\n // eslint-disable-next-line lingui/no-unlocalized-strings\n invariant(postalCode, \"postalCode is required\");\n setPostalCode(postalCode);\n };\n\n return (\n <>\n
\n {postalCodes.status === \"pending\" ? : null}\n {postalCodes.status === \"error\" ? (\n

\n Nemůžeme načíst seznam PSČ.\n

\n ) : null}\n {postalCodes.status === \"success\" ? (\n
\n
\n
\n \n \n \n \n \n \n

\n Pro výpočet cen vyplňte PSČ\n

\n

\n \n Pro výpočet ceny vyplňte do pole níže poštovní směrovací\n číslo umístění skladu (PSČ).\n \n

\n Vaše PSČ} />\n \n \n \n
\n
\n
\n
\n
\n ) : null}\n \n );\n};\n\nconst postalCodeSchema = z\n .object({\n postalCode: z.string().refine((value) => !isNaN(parseInt(value, 10))),\n enforceDialog: z\n .string()\n .refine((value) => value === \"true\" || value === \"false\")\n .transform((value) => (value === \"true\" ? true : false))\n .or(z.undefined()),\n })\n .merge(currencySchema)\n .or(\n z\n .object({\n postalCode: z\n .string()\n .refine((value) => !isNaN(parseInt(value, 10)))\n .or(z.undefined()),\n enforceDialog: z\n .string()\n .refine((value) => value === \"true\" || value === \"false\")\n .transform((value) => (value === \"true\" ? true : false)),\n })\n .merge(currencySchema),\n );\n\nconst usePostalCodeDialogParams = () => {\n const [searchParams, setSearchParams] = useSearchParams();\n const parsedParams = postalCodeSchema.safeParse(\n Object.fromEntries(searchParams),\n );\n\n const enforceDialog = () => {\n setSearchParams((cur) => {\n cur.set(\"enforceDialog\", \"true\");\n return cur;\n });\n };\n\n const closeDialog = () => {\n setSearchParams(() => {\n // https://github.com/remix-run/react-router/issues/9757 what a nasty buggy behavior this is\n const params = createSearchParams(window.location.search);\n if (params.get(\"postalCode\")) {\n params.delete(\"enforceDialog\");\n }\n\n return params;\n });\n };\n\n const setPostalCode = (postalCode: string) => {\n if (postalCode) {\n setSearchParams((cur) => {\n cur.set(\"postalCode\", postalCode);\n cur.delete(\"enforceDialog\");\n return cur;\n });\n }\n };\n\n return {\n params: parsedParams.success ? parsedParams.data : undefined,\n enforceDialog,\n closeDialog,\n setPostalCode,\n };\n};\n\nexport { PostalCodeDialog, usePostalCodeDialogParams };\n","import { Trans } from \"@lingui/react/macro\";\n\nimport { Button } from \"@/common/components/button/button\";\n\nimport ShopSvg from \"./assets/shop.svg?react\";\n\nconst IWantToTradeDialog = ({ onClick }: { onClick: () => void }) => {\n return (\n \n );\n};\n\nexport { IWantToTradeDialog };\n","import { GraphQLClient, RequestMiddleware } from \"graphql-request\";\n\nimport { getEnvironmentVariable } from \"@/common/services/env\";\n\nimport { fetchRetry } from \"./fetch-retry\";\nimport { token } from \"./token\";\n\nconst requestMiddleware: RequestMiddleware = async (request) => {\n const controller = new AbortController();\n return {\n ...request,\n signal: controller.signal,\n headers: {\n ...request.headers,\n // eslint-disable-next-line lingui/no-unlocalized-strings\n Authorization: `Bearer ${await token.read({ forced: false })}`,\n \"Content-Type\": \"application/json\",\n },\n };\n};\n\nconst graphqlClient = new GraphQLClient(\n getEnvironmentVariable(\"DIGITALNI_SKLADY_API_URL\"),\n {\n fetch: (input, init) =>\n fetchRetry({\n url: input.toString(),\n // @ts-expect-error err\n method: init?.method,\n // @ts-expect-error err\n data: JSON.parse(init?.body),\n // @ts-expect-error err\n headers: init?.headers,\n signal: init?.signal ?? undefined,\n retries: 1,\n }),\n requestMiddleware,\n },\n);\n\nexport { graphqlClient };\n","/* eslint-disable */\nimport { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\nexport type Maybe = T | null;\nexport type InputMaybe = Maybe;\nexport type Exact = { [K in keyof T]: T[K] };\nexport type MakeOptional = Omit & { [SubKey in K]?: Maybe };\nexport type MakeMaybe = Omit & { [SubKey in K]: Maybe };\nexport type MakeEmpty = { [_ in K]?: never };\nexport type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n ID: { input: string; output: string; }\n String: { input: string; output: string; }\n Boolean: { input: boolean; output: boolean; }\n Int: { input: number; output: number; }\n Float: { input: number; output: number; }\n DataUri: { input: any; output: any; }\n DateTime: { input: any; output: any; }\n PhoneNumber: { input: any; output: any; }\n};\n\nexport type Company = {\n __typename?: 'Company';\n banks?: Maybe>>;\n businessRegistration?: Maybe;\n city?: Maybe;\n companyType?: Maybe;\n contracts?: Maybe;\n country?: Maybe;\n email?: Maybe;\n generalAgreementFile?: Maybe;\n generalAgreementUrl?: Maybe;\n hasBankData?: Maybe;\n id?: Maybe;\n identificationNumber?: Maybe;\n isPaid?: Maybe;\n name?: Maybe;\n phone?: Maybe;\n role?: Maybe;\n storages?: Maybe;\n street?: Maybe;\n timeCreated?: Maybe;\n timeUpdated?: Maybe;\n vatNumber?: Maybe;\n zip?: Maybe;\n};\n\n\nexport type CompanyContractsArgs = {\n after?: InputMaybe;\n before?: InputMaybe;\n first?: InputMaybe;\n last?: InputMaybe;\n};\n\n\nexport type CompanyStoragesArgs = {\n after?: InputMaybe;\n archived?: InputMaybe;\n before?: InputMaybe;\n first?: InputMaybe;\n last?: InputMaybe;\n tradeType?: InputMaybe;\n};\n\nexport type CompanyBank = {\n __typename?: 'CompanyBank';\n bankName?: Maybe;\n bic?: Maybe;\n currency?: Maybe;\n iban?: Maybe;\n id?: Maybe;\n};\n\nexport type CompanyConnection = {\n __typename?: 'CompanyConnection';\n /** Edges of the connection */\n edges?: Maybe>>;\n /** Page info of the connection */\n pageInfo?: Maybe;\n /** Total count of items in the connection. */\n totalCount?: Maybe;\n};\n\nexport type CompanyConnectionEdge = {\n __typename?: 'CompanyConnectionEdge';\n /** The edge cursor */\n cursor: Scalars['String']['output'];\n /** Node of the Edge */\n node?: Maybe;\n};\n\nexport enum CompanyType {\n Company = 'COMPANY',\n Person = 'PERSON'\n}\n\nexport type Confirmation = {\n __typename?: 'Confirmation';\n completed: Scalars['Boolean']['output'];\n documents: Array;\n id: Scalars['ID']['output'];\n};\n\nexport type ConfirmationDocument = {\n __typename?: 'ConfirmationDocument';\n name: Scalars['String']['output'];\n url: Scalars['String']['output'];\n};\n\nexport type Contract = {\n __typename?: 'Contract';\n additionalInfo?: Maybe;\n amount?: Maybe;\n confirmation?: Maybe;\n /** @deprecated New confirmation files are signed using external service and managed via confirmation field */\n confirmationFile?: Maybe;\n /** @deprecated New confirmation files are signed using external service and managed via confirmation field */\n confirmationFileName?: Maybe;\n /** @deprecated New confirmation files are signed using external service and managed via confirmation field */\n confirmationUrl?: Maybe;\n currency?: Maybe;\n customTransport?: Maybe;\n externalNumber?: Maybe;\n finalPrice?: Maybe;\n id?: Maybe;\n marketPrice?: Maybe;\n note?: Maybe;\n offer?: Maybe;\n parameters?: Maybe;\n price?: Maybe;\n status?: Maybe;\n timeCreated?: Maybe;\n timeProcessed?: Maybe;\n traderSigned?: Maybe;\n transport?: Maybe;\n transportDestination?: Maybe;\n transportNote?: Maybe;\n /** Current user's signature object for this contract */\n userSignature?: Maybe;\n};\n\n\nexport type ContractParametersArgs = {\n after?: InputMaybe;\n before?: InputMaybe;\n first?: InputMaybe;\n last?: InputMaybe;\n};\n\nexport type ContractConnection = {\n __typename?: 'ContractConnection';\n /** Edges of the connection */\n edges?: Maybe>>;\n /** Page info of the connection */\n pageInfo?: Maybe;\n /** Total count of items in the connection. */\n totalCount?: Maybe;\n};\n\nexport type ContractConnectionEdge = {\n __typename?: 'ContractConnectionEdge';\n /** The edge cursor */\n cursor: Scalars['String']['output'];\n /** Node of the Edge */\n node?: Maybe;\n};\n\nexport type ContractInput = {\n amount: Scalars['Float']['input'];\n currency: Scalars['String']['input'];\n customTransport: Scalars['Boolean']['input'];\n marketPrice: Scalars['ID']['input'];\n note?: InputMaybe;\n offer: Scalars['ID']['input'];\n transportNote?: InputMaybe;\n};\n\nexport type ContractParameter = {\n contract?: Maybe;\n cropParameter?: Maybe;\n id?: Maybe;\n};\n\nexport type ContractParameterConnection = {\n __typename?: 'ContractParameterConnection';\n /** Edges of the connection */\n edges?: Maybe>>;\n /** Page info of the connection */\n pageInfo?: Maybe;\n /** Total count of items in the connection. */\n totalCount?: Maybe;\n};\n\nexport type ContractParameterConnectionEdge = {\n __typename?: 'ContractParameterConnectionEdge';\n /** The edge cursor */\n cursor: Scalars['String']['output'];\n /** Node of the Edge */\n node?: Maybe;\n};\n\nexport enum ContractSignatureStatus {\n Awaiting = 'AWAITING',\n Completed = 'COMPLETED',\n Opened = 'OPENED',\n Sent = 'SENT'\n}\n\nexport enum ContractStatus {\n Confirmed = 'CONFIRMED',\n Failed = 'FAILED',\n Pending = 'PENDING',\n Processing = 'PROCESSING',\n Signed = 'SIGNED',\n Success = 'SUCCESS'\n}\n\nexport enum Country {\n /** Austria */\n At = 'AT',\n /** Bosna and Hercegovina */\n Ba = 'BA',\n /** Belgium */\n Be = 'BE',\n /** Bulgaria */\n Bg = 'BG',\n /** Belarus */\n By = 'BY',\n /** Switzerland */\n Ch = 'CH',\n /** Cyprus */\n Cy = 'CY',\n /** Czech Republic */\n Cz = 'CZ',\n /** Deutschland */\n De = 'DE',\n /** Denmark */\n Dk = 'DK',\n /** Estonia */\n Ee = 'EE',\n /** Spain */\n Es = 'ES',\n /** Finland */\n Fi = 'FI',\n /** France */\n Fr = 'FR',\n /** Greece */\n Gr = 'GR',\n /** Croatia */\n Hr = 'HR',\n /** Hungary */\n Hu = 'HU',\n /** Ireland */\n Ie = 'IE',\n /** Iceland */\n Is = 'IS',\n /** Italy */\n It = 'IT',\n /** Liechtenstein */\n Li = 'LI',\n /** Lithuania */\n Lt = 'LT',\n /** Luxemburg */\n Lu = 'LU',\n /** Latvia */\n Lv = 'LV',\n /** Monaco */\n Mc = 'MC',\n /** Moldavia */\n Md = 'MD',\n /** Montenegro */\n Me = 'ME',\n /** Northern Macedonia */\n Mk = 'MK',\n /** Malta */\n Mt = 'MT',\n /** Netherlands */\n Nl = 'NL',\n /** Norway */\n No = 'NO',\n /** Poland */\n Pl = 'PL',\n /** Portugal */\n Pt = 'PT',\n /** Romania */\n Ro = 'RO',\n /** Serbia */\n Rs = 'RS',\n /** Russia */\n Ru = 'RU',\n /** Sweden */\n Se = 'SE',\n /** Slovenia */\n Si = 'SI',\n /** Slovakia */\n Sk = 'SK',\n /** San Marino */\n Sm = 'SM',\n /** Ukraine */\n Ua = 'UA',\n /** United Kingdom */\n Uk = 'UK'\n}\n\nexport type Crop = {\n __typename?: 'Crop';\n id?: Maybe;\n name?: Maybe;\n parameters?: Maybe;\n tradeType?: Maybe;\n};\n\n\nexport type CropNameArgs = {\n locale?: InputMaybe;\n};\n\n\nexport type CropParametersArgs = {\n after?: InputMaybe;\n before?: InputMaybe;\n first?: InputMaybe;\n last?: InputMaybe;\n};\n\nexport type CropConnection = {\n __typename?: 'CropConnection';\n /** Edges of the connection */\n edges?: Maybe>>;\n /** Page info of the connection */\n pageInfo?: Maybe;\n /** Total count of items in the connection. */\n totalCount?: Maybe;\n};\n\nexport type CropConnectionEdge = {\n __typename?: 'CropConnectionEdge';\n /** The edge cursor */\n cursor: Scalars['String']['output'];\n /** Node of the Edge */\n node?: Maybe;\n};\n\nexport type CropParameter = {\n crop?: Maybe;\n id?: Maybe;\n required?: Maybe;\n title?: Maybe;\n uri?: Maybe;\n};\n\nexport type CropParameterConnection = {\n __typename?: 'CropParameterConnection';\n /** Edges of the connection */\n edges?: Maybe>>;\n /** Page info of the connection */\n pageInfo?: Maybe;\n /** Total count of items in the connection. */\n totalCount?: Maybe;\n};\n\nexport type CropParameterConnectionEdge = {\n __typename?: 'CropParameterConnectionEdge';\n /** The edge cursor */\n cursor: Scalars['String']['output'];\n /** Node of the Edge */\n node?: Maybe;\n};\n\nexport type CropParameterOption = {\n __typename?: 'CropParameterOption';\n cropParameter?: Maybe;\n id?: Maybe;\n title?: Maybe;\n uri?: Maybe;\n};\n\nexport type CropParameterOptionConnection = {\n __typename?: 'CropParameterOptionConnection';\n /** Edges of the connection */\n edges?: Maybe>>;\n /** Page info of the connection */\n pageInfo?: Maybe;\n /** Total count of items in the connection. */\n totalCount?: Maybe;\n};\n\nexport type CropParameterOptionConnectionEdge = {\n __typename?: 'CropParameterOptionConnectionEdge';\n /** The edge cursor */\n cursor: Scalars['String']['output'];\n /** Node of the Edge */\n node?: Maybe;\n};\n\nexport enum Currency {\n Czk = 'CZK',\n Eur = 'EUR'\n}\n\nexport type FastContractInput = {\n amount: Scalars['Float']['input'];\n company: Scalars['ID']['input'];\n crop: Scalars['ID']['input'];\n currency: Currency;\n gps: GpsPointInput;\n marketPrice: Scalars['ID']['input'];\n note?: InputMaybe;\n yearHarvested: Scalars['Int']['input'];\n zip: Scalars['String']['input'];\n};\n\nexport type FastOrderInput = {\n amount: Scalars['Float']['input'];\n company: Scalars['ID']['input'];\n crop: Scalars['ID']['input'];\n currency: Currency;\n gps: GpsPointInput;\n lowPrice?: InputMaybe;\n note?: InputMaybe;\n price: Scalars['Float']['input'];\n quarter: Scalars['ID']['input'];\n yearHarvested: Scalars['Int']['input'];\n zip: Scalars['String']['input'];\n};\n\nexport type FloatContractParameter = ContractParameter & {\n __typename?: 'FloatContractParameter';\n contract?: Maybe;\n cropParameter?: Maybe;\n id?: Maybe;\n value?: Maybe;\n};\n\nexport type FloatCropParameter = CropParameter & {\n __typename?: 'FloatCropParameter';\n crop?: Maybe;\n id?: Maybe;\n max?: Maybe;\n min?: Maybe;\n required?: Maybe;\n title?: Maybe;\n unit?: Maybe;\n uri?: Maybe;\n};\n\nexport type FloatOfferParameter = OfferParameter & {\n __typename?: 'FloatOfferParameter';\n cropParameter?: Maybe;\n id?: Maybe;\n offer?: Maybe;\n value?: Maybe;\n};\n\nexport type GpsPointInput = {\n latitude?: InputMaybe;\n longitude?: InputMaybe;\n};\n\nexport type MarketPrice = {\n __typename?: 'MarketPrice';\n crop?: Maybe;\n date?: Maybe;\n id?: Maybe;\n price?: Maybe;\n priceCzk?: Maybe;\n priceEur?: Maybe;\n quarter?: Maybe;\n region?: Maybe;\n status?: Maybe;\n};\n\n\nexport type MarketPricePriceArgs = {\n currency: Currency;\n};\n\nexport type MarketPriceConnection = {\n __typename?: 'MarketPriceConnection';\n /** Edges of the connection */\n edges?: Maybe>>;\n /** Page info of the connection */\n pageInfo?: Maybe;\n /** Total count of items in the connection. */\n totalCount?: Maybe;\n};\n\nexport type MarketPriceConnectionEdge = {\n __typename?: 'MarketPriceConnectionEdge';\n /** The edge cursor */\n cursor: Scalars['String']['output'];\n /** Node of the Edge */\n node?: Maybe;\n};\n\nexport enum MarketPriceStatus {\n Fresh = 'FRESH',\n Outdated = 'OUTDATED',\n PricingOnly = 'PRICING_ONLY'\n}\n\nexport type Mutation = {\n __typename?: 'Mutation';\n addContract?: Maybe;\n addFastContract?: Maybe;\n addFastOrder?: Maybe;\n addOffer?: Maybe;\n addOrder?: Maybe;\n addStorage?: Maybe;\n archiveOffer?: Maybe;\n archiveStorage?: Maybe;\n editOffer?: Maybe;\n editOrder?: Maybe;\n editStorage?: Maybe;\n removeOrder?: Maybe;\n};\n\n\nexport type MutationAddContractArgs = {\n contract: ContractInput;\n};\n\n\nexport type MutationAddFastContractArgs = {\n fastContract: FastContractInput;\n};\n\n\nexport type MutationAddFastOrderArgs = {\n fastOrder: FastOrderInput;\n};\n\n\nexport type MutationAddOfferArgs = {\n offer: OfferInput;\n};\n\n\nexport type MutationAddOrderArgs = {\n order: OrderInput;\n};\n\n\nexport type MutationAddStorageArgs = {\n storage: StorageInput;\n};\n\n\nexport type MutationArchiveOfferArgs = {\n id: Scalars['ID']['input'];\n};\n\n\nexport type MutationArchiveStorageArgs = {\n id: Scalars['ID']['input'];\n};\n\n\nexport type MutationEditOfferArgs = {\n id: Scalars['ID']['input'];\n offer: OfferInput;\n};\n\n\nexport type MutationEditOrderArgs = {\n id: Scalars['ID']['input'];\n order: OrderInput;\n};\n\n\nexport type MutationEditStorageArgs = {\n id: Scalars['ID']['input'];\n storage: StorageInput;\n};\n\n\nexport type MutationRemoveOrderArgs = {\n id: Scalars['ID']['input'];\n};\n\nexport enum NotificationGroup {\n Contract = 'CONTRACT',\n General = 'GENERAL',\n Order = 'ORDER',\n Voting = 'VOTING'\n}\n\nexport type Offer = {\n __typename?: 'Offer';\n allowedQuarters?: Maybe;\n amount?: Maybe;\n archived?: Maybe;\n contracts?: Maybe;\n crop?: Maybe;\n id?: Maybe;\n orders?: Maybe;\n parameters?: Maybe;\n storage?: Maybe;\n totalAmount?: Maybe;\n yearHarvested?: Maybe;\n};\n\n\nexport type OfferAllowedQuartersArgs = {\n after?: InputMaybe;\n before?: InputMaybe;\n first?: InputMaybe;\n last?: InputMaybe;\n};\n\n\nexport type OfferContractsArgs = {\n after?: InputMaybe;\n before?: InputMaybe;\n first?: InputMaybe;\n last?: InputMaybe;\n};\n\n\nexport type OfferOrdersArgs = {\n after?: InputMaybe;\n before?: InputMaybe;\n first?: InputMaybe;\n last?: InputMaybe;\n};\n\n\nexport type OfferParametersArgs = {\n after?: InputMaybe;\n before?: InputMaybe;\n first?: InputMaybe;\n last?: InputMaybe;\n};\n\nexport type OfferConnection = {\n __typename?: 'OfferConnection';\n /** Edges of the connection */\n edges?: Maybe>>;\n /** Page info of the connection */\n pageInfo?: Maybe;\n /** Total count of items in the connection. */\n totalCount?: Maybe;\n};\n\nexport type OfferConnectionEdge = {\n __typename?: 'OfferConnectionEdge';\n /** The edge cursor */\n cursor: Scalars['String']['output'];\n /** Node of the Edge */\n node?: Maybe;\n};\n\nexport type OfferInput = {\n amount: Scalars['Float']['input'];\n crop: Scalars['ID']['input'];\n parameters?: InputMaybe>>;\n storage: Scalars['ID']['input'];\n yearHarvested: Scalars['Int']['input'];\n};\n\nexport type OfferParameter = {\n cropParameter?: Maybe;\n id?: Maybe;\n offer?: Maybe;\n};\n\nexport type OfferParameterConnection = {\n __typename?: 'OfferParameterConnection';\n /** Edges of the connection */\n edges?: Maybe>>;\n /** Page info of the connection */\n pageInfo?: Maybe;\n /** Total count of items in the connection. */\n totalCount?: Maybe;\n};\n\nexport type OfferParameterConnectionEdge = {\n __typename?: 'OfferParameterConnectionEdge';\n /** The edge cursor */\n cursor: Scalars['String']['output'];\n /** Node of the Edge */\n node?: Maybe;\n};\n\nexport type OfferParameterInput = {\n cropParameter: Scalars['ID']['input'];\n option?: InputMaybe;\n type: OfferParameterType;\n value?: InputMaybe;\n};\n\nexport enum OfferParameterType {\n Float = 'FLOAT',\n Select = 'SELECT'\n}\n\nexport type Order = {\n __typename?: 'Order';\n active?: Maybe;\n amount?: Maybe;\n currency?: Maybe;\n customTransport?: Maybe;\n id?: Maybe;\n lowPrice?: Maybe;\n note?: Maybe;\n offer?: Maybe;\n price?: Maybe;\n quarter?: Maybe;\n transportNote?: Maybe;\n};\n\nexport type OrderConnection = {\n __typename?: 'OrderConnection';\n /** Edges of the connection */\n edges?: Maybe>>;\n /** Page info of the connection */\n pageInfo?: Maybe;\n /** Total count of items in the connection. */\n totalCount?: Maybe;\n};\n\nexport type OrderConnectionEdge = {\n __typename?: 'OrderConnectionEdge';\n /** The edge cursor */\n cursor: Scalars['String']['output'];\n /** Node of the Edge */\n node?: Maybe;\n};\n\nexport type OrderInput = {\n active: Scalars['Boolean']['input'];\n amount: Scalars['Float']['input'];\n currency: Scalars['String']['input'];\n customTransport: Scalars['Boolean']['input'];\n lowPrice?: InputMaybe;\n note?: InputMaybe;\n offer: Scalars['ID']['input'];\n price: Scalars['Float']['input'];\n quarter: Scalars['ID']['input'];\n transportNote?: InputMaybe;\n};\n\n/** Information about pagination in a connection. */\nexport type PageInfo = {\n __typename?: 'PageInfo';\n /** When paginating forwards, the cursor to continue. */\n endCursor?: Maybe;\n /** When paginating forwards, are there more items? */\n hasNextPage: Scalars['Boolean']['output'];\n /** When paginating backwards, are there more items? */\n hasPreviousPage: Scalars['Boolean']['output'];\n /** When paginating backwards, the cursor to continue. */\n startCursor?: Maybe;\n};\n\nexport type Quarter = {\n __typename?: 'Quarter';\n dateFrom?: Maybe;\n dateTo?: Maybe;\n id?: Maybe;\n name?: Maybe;\n};\n\nexport type QuarterConnection = {\n __typename?: 'QuarterConnection';\n /** Edges of the connection */\n edges?: Maybe>>;\n /** Page info of the connection */\n pageInfo?: Maybe;\n /** Total count of items in the connection. */\n totalCount?: Maybe;\n};\n\nexport type QuarterConnectionEdge = {\n __typename?: 'QuarterConnectionEdge';\n /** The edge cursor */\n cursor: Scalars['String']['output'];\n /** Node of the Edge */\n node?: Maybe;\n};\n\nexport type Query = {\n __typename?: 'Query';\n canITrade?: Maybe;\n company?: Maybe;\n contract?: Maybe;\n contracts?: Maybe;\n crop?: Maybe;\n cropPricesInRegion?: Maybe>>;\n crops?: Maybe;\n offer?: Maybe;\n offers?: Maybe;\n quarters?: Maybe;\n stockReport?: Maybe;\n storage?: Maybe;\n user?: Maybe;\n};\n\n\nexport type QueryCompanyArgs = {\n id: Scalars['ID']['input'];\n};\n\n\nexport type QueryContractArgs = {\n id: Scalars['ID']['input'];\n};\n\n\nexport type QueryContractsArgs = {\n after?: InputMaybe;\n before?: InputMaybe;\n companyId: Scalars['ID']['input'];\n cropId?: InputMaybe;\n first?: InputMaybe;\n last?: InputMaybe;\n quarterId?: InputMaybe;\n status?: InputMaybe;\n storageId?: InputMaybe;\n tradeType?: InputMaybe;\n userId?: InputMaybe;\n};\n\n\nexport type QueryCropArgs = {\n id: Scalars['ID']['input'];\n};\n\n\nexport type QueryCropPricesInRegionArgs = {\n gps: GpsPointInput;\n traderCompanyId?: InputMaybe;\n};\n\n\nexport type QueryCropsArgs = {\n after?: InputMaybe;\n before?: InputMaybe;\n first?: InputMaybe;\n last?: InputMaybe;\n tradeType?: InputMaybe;\n};\n\n\nexport type QueryOfferArgs = {\n id: Scalars['ID']['input'];\n};\n\n\nexport type QueryOffersArgs = {\n after?: InputMaybe;\n archived?: InputMaybe;\n before?: InputMaybe;\n first?: InputMaybe;\n last?: InputMaybe;\n tradeType?: InputMaybe;\n userId: Scalars['ID']['input'];\n};\n\n\nexport type QueryQuartersArgs = {\n after?: InputMaybe;\n before?: InputMaybe;\n first?: InputMaybe;\n last?: InputMaybe;\n upcoming?: InputMaybe;\n};\n\n\nexport type QueryStockReportArgs = {\n company: Scalars['ID']['input'];\n date: Scalars['DateTime']['input'];\n format: StockReportFormat;\n};\n\n\nexport type QueryStorageArgs = {\n id: Scalars['ID']['input'];\n};\n\n\nexport type QueryUserArgs = {\n id?: InputMaybe;\n};\n\nexport type Region = {\n __typename?: 'Region';\n id?: Maybe;\n name?: Maybe;\n};\n\nexport type Report = {\n __typename?: 'Report';\n content?: Maybe;\n};\n\nexport type SelectContractParameter = ContractParameter & {\n __typename?: 'SelectContractParameter';\n contract?: Maybe;\n cropParameter?: Maybe;\n id?: Maybe;\n option?: Maybe;\n};\n\nexport type SelectCropParameter = CropParameter & {\n __typename?: 'SelectCropParameter';\n crop?: Maybe;\n id?: Maybe;\n options?: Maybe;\n required?: Maybe;\n title?: Maybe;\n uri?: Maybe;\n};\n\n\nexport type SelectCropParameterOptionsArgs = {\n after?: InputMaybe;\n before?: InputMaybe;\n first?: InputMaybe;\n last?: InputMaybe;\n};\n\nexport type SelectOfferParameter = OfferParameter & {\n __typename?: 'SelectOfferParameter';\n cropParameter?: Maybe;\n id?: Maybe;\n offer?: Maybe;\n option?: Maybe;\n};\n\nexport enum StockReportFormat {\n Pdf = 'PDF',\n Xls = 'XLS'\n}\n\nexport type Storage = {\n __typename?: 'Storage';\n address?: Maybe;\n archived?: Maybe;\n company?: Maybe;\n crops: Array;\n currency?: Maybe;\n id?: Maybe;\n label?: Maybe;\n lastPrices?: Maybe;\n locationArray?: Maybe>>;\n offers?: Maybe;\n prices?: Maybe;\n user?: Maybe;\n zip?: Maybe;\n};\n\n\nexport type StorageLastPricesArgs = {\n after?: InputMaybe;\n before?: InputMaybe;\n cropIds?: InputMaybe>;\n first?: InputMaybe;\n last?: InputMaybe;\n};\n\n\nexport type StorageOffersArgs = {\n after?: InputMaybe;\n archived?: InputMaybe;\n before?: InputMaybe;\n first?: InputMaybe;\n last?: InputMaybe;\n};\n\n\nexport type StoragePricesArgs = {\n after?: InputMaybe;\n aggregated?: InputMaybe;\n before?: InputMaybe;\n cropIds?: InputMaybe>;\n first?: InputMaybe;\n from: Scalars['DateTime']['input'];\n last?: InputMaybe;\n to?: InputMaybe;\n};\n\nexport type StorageConnection = {\n __typename?: 'StorageConnection';\n /** Edges of the connection */\n edges?: Maybe>>;\n /** Page info of the connection */\n pageInfo?: Maybe;\n /** Total count of items in the connection. */\n totalCount?: Maybe;\n};\n\nexport type StorageConnectionEdge = {\n __typename?: 'StorageConnectionEdge';\n /** The edge cursor */\n cursor: Scalars['String']['output'];\n /** Node of the Edge */\n node?: Maybe;\n};\n\nexport type StorageInput = {\n address: Scalars['String']['input'];\n company: Scalars['ID']['input'];\n crops?: InputMaybe>;\n currency: Currency;\n label: Scalars['String']['input'];\n zip: Scalars['String']['input'];\n};\n\nexport type Subscription = {\n __typename?: 'Subscription';\n deviceName?: Maybe;\n id?: Maybe;\n subscriptionJSON?: Maybe;\n timeCreated?: Maybe;\n};\n\nexport enum TradeType {\n FromStorage = 'FROM_STORAGE',\n ToStorage = 'TO_STORAGE'\n}\n\nexport enum Transport {\n Cpt = 'CPT',\n Fca = 'FCA'\n}\n\nexport type User = {\n __typename?: 'User';\n availableFunctions?: Maybe>>;\n companies?: Maybe;\n company?: Maybe;\n contractSignatures?: Maybe;\n email?: Maybe;\n enabledNotificationGroup?: Maybe>>;\n id?: Maybe;\n name?: Maybe;\n phone?: Maybe;\n roles?: Maybe>>;\n subscriptions?: Maybe>>;\n timeCreated?: Maybe;\n timeUpdated?: Maybe;\n};\n\n\nexport type UserCompaniesArgs = {\n after?: InputMaybe;\n before?: InputMaybe;\n first?: InputMaybe;\n last?: InputMaybe;\n};\n\n\nexport type UserCompanyArgs = {\n companyId: Scalars['ID']['input'];\n};\n\n\nexport type UserContractSignaturesArgs = {\n after?: InputMaybe;\n before?: InputMaybe;\n first?: InputMaybe;\n last?: InputMaybe;\n signed?: InputMaybe;\n};\n\nexport enum UserAvailableFunctions {\n Report = 'REPORT'\n}\n\nexport type UserContractSignature = {\n __typename?: 'UserContractSignature';\n contract: Contract;\n id: Scalars['ID']['output'];\n slug: Scalars['String']['output'];\n status: ContractSignatureStatus;\n user: User;\n};\n\nexport type UserContractSignatureConnection = {\n __typename?: 'UserContractSignatureConnection';\n /** Edges of the connection */\n edges?: Maybe>>;\n /** Page info of the connection */\n pageInfo?: Maybe;\n /** Total count of items in the connection. */\n totalCount?: Maybe;\n};\n\nexport type UserContractSignatureConnectionEdge = {\n __typename?: 'UserContractSignatureConnectionEdge';\n /** The edge cursor */\n cursor: Scalars['String']['output'];\n /** Node of the Edge */\n node?: Maybe;\n};\n\nexport type CropPricesRegionQueryVariables = Exact<{\n latitude: Scalars['Float']['input'];\n longitude: Scalars['Float']['input'];\n currency: Currency;\n}>;\n\n\nexport type CropPricesRegionQuery = { __typename?: 'Query', cropPricesInRegion?: Array<{ __typename?: 'MarketPrice', id?: string | null, price?: number | null, date?: any | null, crop?: { __typename?: 'Crop', id?: string | null, name?: string | null } | null, quarter?: { __typename?: 'Quarter', id?: string | null, name?: string | null } | null } | null> | null };\n\nexport type AddFastContractMutationVariables = Exact<{\n fastContract: FastContractInput;\n}>;\n\n\nexport type AddFastContractMutation = { __typename?: 'Mutation', addFastContract?: { __typename?: 'Contract', id?: string | null } | null };\n\nexport type AddFastOrderMutationVariables = Exact<{\n fastOrder: FastOrderInput;\n}>;\n\n\nexport type AddFastOrderMutation = { __typename?: 'Mutation', addFastOrder?: { __typename?: 'Order', id?: string | null, offer?: { __typename?: 'Offer', id?: string | null } | null } | null };\n\nexport type OfferQueryVariables = Exact<{\n id: Scalars['ID']['input'];\n}>;\n\n\nexport type OfferQuery = { __typename?: 'Query', offer?: { __typename?: 'Offer', yearHarvested?: number | null, id?: string | null, amount?: number | null, totalAmount?: number | null, crop?: { __typename?: 'Crop', id?: string | null, name?: string | null } | null, parameters?: { __typename?: 'OfferParameterConnection', edges?: Array<{ __typename?: 'OfferParameterConnectionEdge', node?: { __typename?: 'FloatOfferParameter', value?: number | null, id?: string | null, cropParameter?: { __typename?: 'FloatCropParameter', unit?: string | null, id?: string | null, title?: string | null } | null } | { __typename?: 'SelectOfferParameter', id?: string | null, option?: { __typename: 'CropParameterOption', id?: string | null, title?: string | null } | null, cropParameter?: { __typename?: 'SelectCropParameter', id?: string | null, title?: string | null } | null } | null } | null> | null } | null, storage?: { __typename?: 'Storage', id?: string | null, label?: string | null, address?: string | null, company?: { __typename?: 'Company', id?: string | null, name?: string | null } | null } | null } | null };\n\nexport type OfferPricesQueryVariables = Exact<{\n id: Scalars['ID']['input'];\n currency: Currency;\n cropIds?: InputMaybe | Scalars['ID']['input']>;\n}>;\n\n\nexport type OfferPricesQuery = { __typename?: 'Query', offer?: { __typename?: 'Offer', storage?: { __typename?: 'Storage', lastPrices?: { __typename?: 'MarketPriceConnection', edges?: Array<{ __typename?: 'MarketPriceConnectionEdge', node?: { __typename?: 'MarketPrice', id?: string | null, price?: number | null, quarter?: { __typename?: 'Quarter', id?: string | null, name?: string | null } | null } | null } | null> | null } | null } | null } | null };\n\nexport type StorageQueryVariables = Exact<{\n id: Scalars['ID']['input'];\n}>;\n\n\nexport type StorageQuery = { __typename?: 'Query', storage?: { __typename?: 'Storage', id?: string | null, label?: string | null, zip?: string | null, address?: string | null, offers?: { __typename?: 'OfferConnection', edges?: Array<{ __typename?: 'OfferConnectionEdge', node?: { __typename?: 'Offer', yearHarvested?: number | null, id?: string | null, amount?: number | null, totalAmount?: number | null, orders?: { __typename?: 'OrderConnection', edges?: Array<{ __typename?: 'OrderConnectionEdge', node?: { __typename?: 'Order', amount?: number | null, active?: boolean | null } | null } | null> | null } | null, crop?: { __typename?: 'Crop', id?: string | null, name?: string | null } | null } | null } | null> | null } | null, company?: { __typename?: 'Company', id?: string | null, name?: string | null } | null } | null };\n\nexport type RemoveOrderMutationVariables = Exact<{\n id: Scalars['ID']['input'];\n}>;\n\n\nexport type RemoveOrderMutation = { __typename?: 'Mutation', removeOrder?: string | null };\n\nexport type AddStorageMutationVariables = Exact<{\n storage: StorageInput;\n}>;\n\n\nexport type AddStorageMutation = { __typename?: 'Mutation', addStorage?: { __typename?: 'Storage', id?: string | null, label?: string | null } | null };\n\nexport type ArchiveOfferMutationVariables = Exact<{\n id: Scalars['ID']['input'];\n}>;\n\n\nexport type ArchiveOfferMutation = { __typename?: 'Mutation', archiveOffer?: { __typename?: 'Offer', id?: string | null } | null };\n\nexport type ArchiveStorageMutationVariables = Exact<{\n id: Scalars['ID']['input'];\n}>;\n\n\nexport type ArchiveStorageMutation = { __typename?: 'Mutation', archiveStorage?: { __typename?: 'Storage', id?: string | null } | null };\n\nexport type EditOfferMutationVariables = Exact<{\n id: Scalars['ID']['input'];\n offer: OfferInput;\n}>;\n\n\nexport type EditOfferMutation = { __typename?: 'Mutation', editOffer?: { __typename?: 'Offer', id?: string | null } | null };\n\nexport type EditStorageMutationVariables = Exact<{\n id: Scalars['ID']['input'];\n storage: StorageInput;\n}>;\n\n\nexport type EditStorageMutation = { __typename?: 'Mutation', editStorage?: { __typename?: 'Storage', id?: string | null } | null };\n\nexport type AddOfferMutationVariables = Exact<{\n offer: OfferInput;\n}>;\n\n\nexport type AddOfferMutation = { __typename?: 'Mutation', addOffer?: { __typename?: 'Offer', id?: string | null } | null };\n\nexport type StorageOffersQueryVariables = Exact<{\n id: Scalars['ID']['input'];\n archived?: InputMaybe;\n}>;\n\n\nexport type StorageOffersQuery = { __typename?: 'Query', storage?: { __typename?: 'Storage', offers?: { __typename?: 'OfferConnection', edges?: Array<{ __typename?: 'OfferConnectionEdge', node?: { __typename?: 'Offer', totalAmount?: number | null, id?: string | null, yearHarvested?: number | null, crop?: { __typename?: 'Crop', id?: string | null, name?: string | null } | null } | null } | null> | null } | null } | null };\n\nexport type CompaniesQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type CompaniesQuery = { __typename?: 'Query', user?: { __typename?: 'User', companies?: { __typename?: 'CompanyConnection', edges?: Array<{ __typename?: 'CompanyConnectionEdge', node?: { __typename?: 'Company', id?: string | null, name?: string | null, vatNumber?: string | null } | null } | null> | null } | null } | null };\n\nexport type CropsQueryVariables = Exact<{\n tradeType?: InputMaybe;\n}>;\n\n\nexport type CropsQuery = { __typename?: 'Query', crops?: { __typename?: 'CropConnection', edges?: Array<{ __typename?: 'CropConnectionEdge', node?: { __typename?: 'Crop', id?: string | null, name?: string | null } | null } | null> | null } | null };\n\nexport type UserQueryVariables = Exact<{\n currency: Currency;\n archived?: InputMaybe;\n}>;\n\n\nexport type UserQuery = { __typename?: 'Query', user?: { __typename?: 'User', companies?: { __typename?: 'CompanyConnection', edges?: Array<{ __typename?: 'CompanyConnectionEdge', node?: { __typename?: 'Company', id?: string | null, name?: string | null, storages?: { __typename?: 'StorageConnection', edges?: Array<{ __typename?: 'StorageConnectionEdge', node?: { __typename?: 'Storage', archived?: boolean | null, id?: string | null, address?: string | null, label?: string | null, lastPrices?: { __typename?: 'MarketPriceConnection', edges?: Array<{ __typename?: 'MarketPriceConnectionEdge', node?: { __typename?: 'MarketPrice', date?: any | null, price?: number | null, crop?: { __typename?: 'Crop', id?: string | null, name?: string | null } | null } | null } | null> | null } | null, offers?: { __typename?: 'OfferConnection', edges?: Array<{ __typename?: 'OfferConnectionEdge', node?: { __typename?: 'Offer', yearHarvested?: number | null, id?: string | null, amount?: number | null, totalAmount?: number | null, orders?: { __typename?: 'OrderConnection', edges?: Array<{ __typename?: 'OrderConnectionEdge', node?: { __typename?: 'Order', active?: boolean | null, amount?: number | null } | null } | null> | null } | null, crop?: { __typename?: 'Crop', id?: string | null, name?: string | null } | null } | null } | null> | null } | null } | null } | null> | null } | null } | null } | null> | null } | null } | null };\n\nexport type OrdersForOfferQueryVariables = Exact<{\n id: Scalars['ID']['input'];\n}>;\n\n\nexport type OrdersForOfferQuery = { __typename?: 'Query', offer?: { __typename?: 'Offer', orders?: { __typename?: 'OrderConnection', edges?: Array<{ __typename?: 'OrderConnectionEdge', node?: { __typename?: 'Order', active?: boolean | null, id?: string | null, amount?: number | null, currency?: string | null, price?: number | null, lowPrice?: number | null, quarter?: { __typename?: 'Quarter', id?: string | null, name?: string | null } | null } | null } | null> | null } | null } | null };\n\nexport type AddOrderMutationVariables = Exact<{\n order: OrderInput;\n}>;\n\n\nexport type AddOrderMutation = { __typename?: 'Mutation', addOrder?: { __typename?: 'Order', id?: string | null } | null };\n\nexport type AddContractMutationVariables = Exact<{\n contract: ContractInput;\n}>;\n\n\nexport type AddContractMutation = { __typename?: 'Mutation', addContract?: { __typename?: 'Contract', id?: string | null } | null };\n\nexport type CropLastPricesQueryVariables = Exact<{\n id: Scalars['ID']['input'];\n currency: Currency;\n cropIds?: InputMaybe | Scalars['ID']['input']>;\n}>;\n\n\nexport type CropLastPricesQuery = { __typename?: 'Query', storage?: { __typename?: 'Storage', lastPrices?: { __typename?: 'MarketPriceConnection', edges?: Array<{ __typename?: 'MarketPriceConnectionEdge', node?: { __typename?: 'MarketPrice', id?: string | null, price?: number | null, crop?: { __typename?: 'Crop', id?: string | null, name?: string | null } | null, quarter?: { __typename?: 'Quarter', id?: string | null, name?: string | null } | null } | null } | null> | null } | null } | null };\n\nexport type FutureQuartersQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type FutureQuartersQuery = { __typename?: 'Query', quarters?: { __typename?: 'QuarterConnection', edges?: Array<{ __typename?: 'QuarterConnectionEdge', node?: { __typename?: 'Quarter', id?: string | null, name?: string | null } | null } | null> | null } | null };\n\nexport type StorageAggregatedPricesQueryVariables = Exact<{\n id: Scalars['ID']['input'];\n from: Scalars['DateTime']['input'];\n to: Scalars['DateTime']['input'];\n cropIds?: InputMaybe | Scalars['ID']['input']>;\n currency: Currency;\n}>;\n\n\nexport type StorageAggregatedPricesQuery = { __typename?: 'Query', storage?: { __typename?: 'Storage', aggregatedPrices?: { __typename?: 'MarketPriceConnection', edges?: Array<{ __typename?: 'MarketPriceConnectionEdge', node?: { __typename?: 'MarketPrice', id?: string | null, date?: any | null, price?: number | null, quarter?: { __typename?: 'Quarter', id?: string | null, name?: string | null, dateFrom?: any | null } | null, region?: { __typename?: 'Region', id?: string | null, name?: string | null } | null } | null } | null> | null } | null } | null };\n\nexport type StoragesForTradingQueryVariables = Exact<{\n currency: Currency;\n archived?: InputMaybe;\n}>;\n\n\nexport type StoragesForTradingQuery = { __typename?: 'Query', user?: { __typename?: 'User', companies?: { __typename?: 'CompanyConnection', edges?: Array<{ __typename?: 'CompanyConnectionEdge', node?: { __typename?: 'Company', id?: string | null, name?: string | null, storages?: { __typename?: 'StorageConnection', edges?: Array<{ __typename?: 'StorageConnectionEdge', node?: { __typename?: 'Storage', archived?: boolean | null, id?: string | null, label?: string | null, offers?: { __typename?: 'OfferConnection', edges?: Array<{ __typename?: 'OfferConnectionEdge', node?: { __typename?: 'Offer', yearHarvested?: number | null, id?: string | null, archived?: boolean | null, amount?: number | null, totalAmount?: number | null, crop?: { __typename?: 'Crop', id?: string | null, name?: string | null } | null } | null } | null> | null } | null, lastPrices?: { __typename?: 'MarketPriceConnection', edges?: Array<{ __typename?: 'MarketPriceConnectionEdge', node?: { __typename?: 'MarketPrice', price?: number | null, crop?: { __typename?: 'Crop', id?: string | null, name?: string | null } | null, quarter?: { __typename?: 'Quarter', id?: string | null, name?: string | null } | null } | null } | null> | null } | null } | null } | null> | null } | null } | null } | null> | null } | null } | null };\n\nexport type ContractsQueryVariables = Exact<{\n companyId: Scalars['ID']['input'];\n}>;\n\n\nexport type ContractsQuery = { __typename?: 'Query', contracts?: { __typename?: 'ContractConnection', edges?: Array<{ __typename?: 'ContractConnectionEdge', node?: { __typename?: 'Contract', id?: string | null, amount?: number | null, status?: ContractStatus | null, timeCreated?: any | null, timeProcessed?: any | null, currency?: string | null, price?: number | null, finalPrice?: number | null, customTransport?: boolean | null, note?: string | null, traderSigned?: boolean | null, externalNumber?: string | null, confirmation?: { __typename?: 'Confirmation', id: string, completed: boolean, documents: Array<{ __typename?: 'ConfirmationDocument', name: string, url: string }> } | null, offer?: { __typename?: 'Offer', crop?: { __typename?: 'Crop', name?: string | null } | null, storage?: { __typename?: 'Storage', label?: string | null, company?: { __typename?: 'Company', name?: string | null } | null } | null } | null } | null } | null> | null } | null };\n\nexport type ContractQueryVariables = Exact<{\n id: Scalars['ID']['input'];\n}>;\n\n\nexport type ContractQuery = { __typename?: 'Query', contract?: { __typename?: 'Contract', externalNumber?: string | null, id?: string | null, amount?: number | null, status?: ContractStatus | null, timeCreated?: any | null, timeProcessed?: any | null, currency?: string | null, price?: number | null, finalPrice?: number | null, customTransport?: boolean | null, note?: string | null, traderSigned?: boolean | null, marketPrice?: { __typename?: 'MarketPrice', quarter?: { __typename?: 'Quarter', id?: string | null, name?: string | null } | null } | null, userSignature?: { __typename?: 'UserContractSignature', id: string, slug: string, status: ContractSignatureStatus } | null, confirmation?: { __typename?: 'Confirmation', id: string, completed: boolean, documents: Array<{ __typename?: 'ConfirmationDocument', name: string, url: string }> } | null, offer?: { __typename?: 'Offer', crop?: { __typename?: 'Crop', name?: string | null } | null, storage?: { __typename?: 'Storage', label?: string | null, company?: { __typename?: 'Company', name?: string | null } | null } | null } | null } | null };\n\nexport type ConfirmationQueryVariables = Exact<{\n id: Scalars['ID']['input'];\n}>;\n\n\nexport type ConfirmationQuery = { __typename?: 'Query', contract?: { __typename?: 'Contract', traderSigned?: boolean | null, userSignature?: { __typename?: 'UserContractSignature', id: string, slug: string, status: ContractSignatureStatus } | null, confirmation?: { __typename?: 'Confirmation', id: string, completed: boolean, documents: Array<{ __typename?: 'ConfirmationDocument', name: string, url: string }> } | null } | null };\n\nexport type EditOrderMutationVariables = Exact<{\n id: Scalars['ID']['input'];\n order: OrderInput;\n}>;\n\n\nexport type EditOrderMutation = { __typename?: 'Mutation', editOrder?: { __typename?: 'Order', id?: string | null } | null };\n\nexport type OrderListQueryVariables = Exact<{\n id: Scalars['ID']['input'];\n}>;\n\n\nexport type OrderListQuery = { __typename?: 'Query', offer?: { __typename?: 'Offer', id?: string | null, crop?: { __typename?: 'Crop', id?: string | null, name?: string | null } | null, storage?: { __typename?: 'Storage', id?: string | null, label?: string | null, company?: { __typename?: 'Company', id?: string | null, name?: string | null } | null } | null, orders?: { __typename?: 'OrderConnection', edges?: Array<{ __typename?: 'OrderConnectionEdge', node?: { __typename?: 'Order', id?: string | null, note?: string | null, amount?: number | null, currency?: string | null, price?: number | null, lowPrice?: number | null, customTransport?: boolean | null, transportNote?: string | null, quarter?: { __typename?: 'Quarter', id?: string | null, name?: string | null } | null } | null } | null> | null } | null } | null };\n\nexport type OrdersQueryVariables = Exact<{\n archived?: InputMaybe;\n}>;\n\n\nexport type OrdersQuery = { __typename?: 'Query', user?: { __typename?: 'User', companies?: { __typename?: 'CompanyConnection', edges?: Array<{ __typename?: 'CompanyConnectionEdge', node?: { __typename?: 'Company', storages?: { __typename?: 'StorageConnection', edges?: Array<{ __typename?: 'StorageConnectionEdge', node?: { __typename?: 'Storage', label?: string | null, offers?: { __typename?: 'OfferConnection', edges?: Array<{ __typename?: 'OfferConnectionEdge', node?: { __typename?: 'Offer', id?: string | null, crop?: { __typename?: 'Crop', id?: string | null, name?: string | null } | null, orders?: { __typename?: 'OrderConnection', edges?: Array<{ __typename?: 'OrderConnectionEdge', node?: { __typename?: 'Order', id?: string | null, active?: boolean | null, amount?: number | null, currency?: string | null, price?: number | null, quarter?: { __typename?: 'Quarter', id?: string | null, name?: string | null } | null } | null } | null> | null } | null } | null } | null> | null } | null } | null } | null> | null } | null } | null } | null> | null } | null } | null };\n\n\nexport const CropPricesRegionDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"CropPricesRegion\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"latitude\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Float\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"longitude\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Float\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Currency\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"cropPricesInRegion\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"gps\"},\"value\":{\"kind\":\"ObjectValue\",\"fields\":[{\"kind\":\"ObjectField\",\"name\":{\"kind\":\"Name\",\"value\":\"latitude\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"latitude\"}}},{\"kind\":\"ObjectField\",\"name\":{\"kind\":\"Name\",\"value\":\"longitude\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"longitude\"}}}]}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"crop\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"quarter\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"price\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}}}]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"date\"}}]}}]}}]} as unknown as DocumentNode;\nexport const AddFastContractDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"AddFastContract\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"fastContract\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"FastContractInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"addFastContract\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"fastContract\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"fastContract\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}}]}}]} as unknown as DocumentNode;\nexport const AddFastOrderDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"AddFastOrder\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"fastOrder\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"FastOrderInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"addFastOrder\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"fastOrder\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"fastOrder\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"offer\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}}]}}]}}]} as unknown as DocumentNode;\nexport const OfferDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"Offer\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"offer\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"yearHarvested\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"crop\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"parameters\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"InlineFragment\",\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"SelectOfferParameter\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"option\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"__typename\"}}]}}]}},{\"kind\":\"InlineFragment\",\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"FloatOfferParameter\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"value\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"cropParameter\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"unit\"}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"cropParameter\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"}}]}}]}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"amount\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"totalAmount\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"storage\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"address\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"company\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}}]}}]}}]}}]} as unknown as DocumentNode;\nexport const OfferPricesDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"OfferPrices\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Currency\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"cropIds\"}},\"type\":{\"kind\":\"ListType\",\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"offer\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"storage\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"lastPrices\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"cropIds\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"cropIds\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"price\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}}}]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"quarter\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode;\nexport const StorageDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"Storage\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"storage\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"zip\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"address\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"offers\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"yearHarvested\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"amount\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"totalAmount\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"orders\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"amount\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"active\"}}]}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"crop\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}}]}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"company\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}}]}}]}}]} as unknown as DocumentNode;\nexport const RemoveOrderDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"RemoveOrder\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"removeOrder\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}]}]}}]} as unknown as DocumentNode;\nexport const AddStorageDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"AddStorage\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"storage\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"StorageInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"addStorage\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"storage\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"storage\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"}}]}}]}}]} as unknown as DocumentNode;\nexport const ArchiveOfferDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"ArchiveOffer\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"archiveOffer\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}}]}}]} as unknown as DocumentNode;\nexport const ArchiveStorageDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"ArchiveStorage\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"archiveStorage\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}}]}}]} as unknown as DocumentNode;\nexport const EditOfferDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"EditOffer\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"offer\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"OfferInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"editOffer\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"offer\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"offer\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}}]}}]} as unknown as DocumentNode;\nexport const EditStorageDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"EditStorage\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"storage\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"StorageInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"editStorage\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"storage\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"storage\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}}]}}]} as unknown as DocumentNode;\nexport const AddOfferDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"AddOffer\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"offer\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"OfferInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"addOffer\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"offer\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"offer\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}}]}}]} as unknown as DocumentNode;\nexport const StorageOffersDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"StorageOffers\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"archived\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Boolean\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"storage\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"offers\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"archived\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"archived\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"totalAmount\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"crop\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"yearHarvested\"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode;\nexport const CompaniesDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"Companies\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"user\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"companies\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"vatNumber\"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode;\nexport const CropsDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"Crops\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"tradeType\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"TradeType\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"crops\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"tradeType\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"tradeType\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}}]}}]}}]}}]} as unknown as DocumentNode;\nexport const UserDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"User\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Currency\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"archived\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Boolean\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"user\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"companies\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"storages\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"archived\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"archived\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"archived\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"address\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"lastPrices\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"crop\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"date\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"price\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}}}]}]}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"offers\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"yearHarvested\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"orders\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"active\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"amount\"}}]}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"amount\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"totalAmount\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"crop\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode;\nexport const OrdersForOfferDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"OrdersForOffer\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"offer\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"orders\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"active\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"amount\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"quarter\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"price\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"lowPrice\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode;\nexport const AddOrderDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"AddOrder\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"order\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"OrderInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"addOrder\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"order\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"order\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}}]}}]} as unknown as DocumentNode;\nexport const AddContractDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"AddContract\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"contract\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ContractInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"addContract\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"contract\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"contract\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}}]}}]} as unknown as DocumentNode;\nexport const CropLastPricesDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"CropLastPrices\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Currency\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"cropIds\"}},\"type\":{\"kind\":\"ListType\",\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"storage\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"lastPrices\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"cropIds\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"cropIds\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"crop\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"quarter\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"price\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}}}]}]}}]}}]}}]}}]}}]} as unknown as DocumentNode;\nexport const FutureQuartersDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"FutureQuarters\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"quarters\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"upcoming\"},\"value\":{\"kind\":\"BooleanValue\",\"value\":true}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}}]}}]}}]}}]} as unknown as DocumentNode;\nexport const StorageAggregatedPricesDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"StorageAggregatedPrices\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"from\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"DateTime\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"to\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"DateTime\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"cropIds\"}},\"type\":{\"kind\":\"ListType\",\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Currency\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"storage\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"alias\":{\"kind\":\"Name\",\"value\":\"aggregatedPrices\"},\"name\":{\"kind\":\"Name\",\"value\":\"prices\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"from\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"from\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"to\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"to\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"aggregated\"},\"value\":{\"kind\":\"BooleanValue\",\"value\":true}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"cropIds\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"cropIds\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"date\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"quarter\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"dateFrom\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"region\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"price\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}}}]}]}}]}}]}}]}}]}}]} as unknown as DocumentNode;\nexport const StoragesForTradingDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"StoragesForTrading\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Currency\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"archived\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Boolean\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"user\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"companies\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"storages\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"archived\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"archived\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"archived\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"offers\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"yearHarvested\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"archived\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"amount\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"totalAmount\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"crop\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}}]}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"lastPrices\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"price\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}}}]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"crop\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"quarter\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode;\nexport const ContractsDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"Contracts\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"companyId\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"contracts\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"companyId\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"companyId\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"confirmation\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"completed\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"documents\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"url\"}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"amount\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"offer\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"crop\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"storage\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"company\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"status\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"timeCreated\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"timeProcessed\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"price\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"finalPrice\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"customTransport\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"note\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"traderSigned\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"externalNumber\"}}]}}]}}]}}]}}]} as unknown as DocumentNode;\nexport const ContractDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"Contract\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"contract\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"marketPrice\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"quarter\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"userSignature\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"slug\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"status\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"confirmation\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"completed\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"documents\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"url\"}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"externalNumber\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"amount\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"offer\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"crop\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"storage\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"company\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"status\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"timeCreated\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"timeProcessed\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"price\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"finalPrice\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"customTransport\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"note\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"traderSigned\"}}]}}]}}]} as unknown as DocumentNode;\nexport const ConfirmationDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"Confirmation\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"contract\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"userSignature\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"slug\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"status\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"traderSigned\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"confirmation\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"completed\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"documents\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"url\"}}]}}]}}]}}]}}]} as unknown as DocumentNode;\nexport const EditOrderDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"EditOrder\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"order\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"OrderInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"editOrder\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"order\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"order\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}}]}}]} as unknown as DocumentNode;\nexport const OrderListDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"OrderList\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"offer\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"crop\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"storage\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"company\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"orders\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"note\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"amount\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"quarter\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"price\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"lowPrice\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"customTransport\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"transportNote\"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode;\nexport const OrdersDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"Orders\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"archived\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Boolean\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"user\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"companies\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"storages\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"archived\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"archived\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"offers\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"crop\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"orders\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"edges\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"node\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"active\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"amount\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"currency\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"price\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"quarter\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode;","/* eslint-disable */\nimport * as types from './graphql';\nimport { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\n\n/**\n * Map of all GraphQL operations in the project.\n *\n * This map has several performance disadvantages:\n * 1. It is not tree-shakeable, so it will include all operations in the project.\n * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.\n * 3. It does not support dead code elimination, so it will add unused operations.\n *\n * Therefore it is highly recommended to use the babel or swc plugin for production.\n * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size\n */\ntype Documents = {\n \"\\n query CropPricesRegion(\\n $latitude: Float!\\n $longitude: Float!\\n $currency: Currency!\\n ) {\\n cropPricesInRegion(gps: { latitude: $latitude, longitude: $longitude }) {\\n id\\n crop {\\n id\\n name\\n }\\n quarter {\\n id\\n name\\n }\\n price(currency: $currency)\\n date\\n }\\n }\\n\": typeof types.CropPricesRegionDocument,\n \"\\n mutation AddFastContract($fastContract: FastContractInput!) {\\n addFastContract(fastContract: $fastContract) {\\n id\\n }\\n }\\n\": typeof types.AddFastContractDocument,\n \"\\n mutation AddFastOrder($fastOrder: FastOrderInput!) {\\n addFastOrder(fastOrder: $fastOrder) {\\n id\\n offer {\\n id\\n }\\n }\\n }\\n\": typeof types.AddFastOrderDocument,\n \"\\n query Offer($id: ID!) {\\n offer(id: $id) {\\n yearHarvested\\n crop {\\n id\\n name\\n }\\n id\\n parameters {\\n edges {\\n node {\\n id\\n ... on SelectOfferParameter {\\n option {\\n id\\n title\\n __typename\\n }\\n }\\n ... on FloatOfferParameter {\\n value\\n cropParameter {\\n unit\\n }\\n }\\n cropParameter {\\n id\\n title\\n }\\n }\\n }\\n }\\n amount\\n totalAmount\\n storage {\\n id\\n label\\n address\\n company {\\n id\\n name\\n }\\n }\\n }\\n }\\n\": typeof types.OfferDocument,\n \"\\n query OfferPrices($id: ID!, $currency: Currency!, $cropIds: [ID!]) {\\n offer(id: $id) {\\n storage {\\n lastPrices(cropIds: $cropIds) {\\n edges {\\n node {\\n id\\n price(currency: $currency)\\n quarter {\\n id\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n\": typeof types.OfferPricesDocument,\n \"\\n query Storage($id: ID!) {\\n storage(id: $id) {\\n id\\n label\\n zip\\n address\\n offers {\\n edges {\\n node {\\n yearHarvested\\n id\\n amount\\n totalAmount\\n orders {\\n edges {\\n node {\\n amount\\n active\\n }\\n }\\n }\\n crop {\\n id\\n name\\n }\\n }\\n }\\n }\\n company {\\n id\\n name\\n }\\n }\\n }\\n\": typeof types.StorageDocument,\n \"\\n mutation RemoveOrder($id: ID!) {\\n removeOrder(id: $id)\\n }\\n\": typeof types.RemoveOrderDocument,\n \"\\n mutation AddStorage($storage: StorageInput!) {\\n addStorage(storage: $storage) {\\n id\\n label\\n }\\n }\\n\": typeof types.AddStorageDocument,\n \"\\n mutation ArchiveOffer($id: ID!) {\\n archiveOffer(id: $id) {\\n id\\n }\\n }\\n\": typeof types.ArchiveOfferDocument,\n \"\\n mutation ArchiveStorage($id: ID!) {\\n archiveStorage(id: $id) {\\n id\\n }\\n }\\n\": typeof types.ArchiveStorageDocument,\n \"\\n mutation EditOffer($id: ID!, $offer: OfferInput!) {\\n editOffer(id: $id, offer: $offer) {\\n id\\n }\\n }\\n\": typeof types.EditOfferDocument,\n \"\\n mutation EditStorage($id: ID!, $storage: StorageInput!) {\\n editStorage(id: $id, storage: $storage) {\\n id\\n }\\n }\\n\": typeof types.EditStorageDocument,\n \"\\n mutation AddOffer($offer: OfferInput!) {\\n addOffer(offer: $offer) {\\n id\\n }\\n }\\n\": typeof types.AddOfferDocument,\n \"\\n query StorageOffers($id: ID!, $archived: Boolean) {\\n storage(id: $id) {\\n offers(archived: $archived) {\\n edges {\\n node {\\n totalAmount\\n id\\n crop {\\n id\\n name\\n }\\n yearHarvested\\n }\\n }\\n }\\n }\\n }\\n\": typeof types.StorageOffersDocument,\n \"\\n query Companies {\\n user {\\n companies {\\n edges {\\n node {\\n id\\n name\\n vatNumber\\n }\\n }\\n }\\n }\\n }\\n\": typeof types.CompaniesDocument,\n \"\\n query Crops($tradeType: TradeType) {\\n crops(tradeType: $tradeType) {\\n edges {\\n node {\\n id\\n name\\n }\\n }\\n }\\n }\\n\": typeof types.CropsDocument,\n \"\\n query User($currency: Currency!, $archived: Boolean) {\\n user {\\n companies {\\n edges {\\n node {\\n id\\n name\\n storages(archived: $archived) {\\n edges {\\n node {\\n archived\\n id\\n address\\n label\\n lastPrices {\\n edges {\\n node {\\n crop {\\n id\\n name\\n }\\n date\\n price(currency: $currency)\\n }\\n }\\n }\\n offers {\\n edges {\\n node {\\n yearHarvested\\n orders {\\n edges {\\n node {\\n active\\n amount\\n }\\n }\\n }\\n id\\n amount\\n totalAmount\\n crop {\\n id\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n\": typeof types.UserDocument,\n \"\\n query OrdersForOffer($id: ID!) {\\n offer(id: $id) {\\n orders {\\n edges {\\n node {\\n active\\n id\\n amount\\n currency\\n quarter {\\n id\\n name\\n }\\n price\\n lowPrice\\n currency\\n }\\n }\\n }\\n }\\n }\\n\": typeof types.OrdersForOfferDocument,\n \"\\n mutation AddOrder($order: OrderInput!) {\\n addOrder(order: $order) {\\n id\\n }\\n }\\n\": typeof types.AddOrderDocument,\n \"\\n mutation AddContract($contract: ContractInput!) {\\n addContract(contract: $contract) {\\n id\\n }\\n }\\n\": typeof types.AddContractDocument,\n \"\\n query CropLastPrices($id: ID!, $currency: Currency!, $cropIds: [ID!]) {\\n storage(id: $id) {\\n lastPrices(cropIds: $cropIds) {\\n edges {\\n node {\\n id\\n crop {\\n id\\n name\\n }\\n quarter {\\n id\\n name\\n }\\n price(currency: $currency)\\n }\\n }\\n }\\n }\\n }\\n\": typeof types.CropLastPricesDocument,\n \"\\n query FutureQuarters {\\n quarters(upcoming: true) {\\n edges {\\n node {\\n id\\n name\\n }\\n }\\n }\\n }\\n\": typeof types.FutureQuartersDocument,\n \"\\n query StorageAggregatedPrices(\\n $id: ID!\\n $from: DateTime!\\n $to: DateTime!\\n $cropIds: [ID!]\\n $currency: Currency!\\n ) {\\n storage(id: $id) {\\n aggregatedPrices: prices(\\n from: $from\\n to: $to\\n aggregated: true\\n cropIds: $cropIds\\n ) {\\n edges {\\n node {\\n id\\n date\\n quarter {\\n id\\n name\\n dateFrom\\n }\\n region {\\n id\\n name\\n }\\n price(currency: $currency)\\n }\\n }\\n }\\n }\\n }\\n\": typeof types.StorageAggregatedPricesDocument,\n \"\\n query StoragesForTrading($currency: Currency!, $archived: Boolean) {\\n user {\\n companies {\\n edges {\\n node {\\n id\\n name\\n storages(archived: $archived) {\\n edges {\\n node {\\n archived\\n id\\n label\\n offers {\\n edges {\\n node {\\n yearHarvested\\n id\\n archived\\n amount\\n totalAmount\\n crop {\\n id\\n name\\n }\\n }\\n }\\n }\\n lastPrices {\\n edges {\\n node {\\n price(currency: $currency)\\n crop {\\n id\\n name\\n }\\n quarter {\\n id\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n\": typeof types.StoragesForTradingDocument,\n \"\\n query Contracts($companyId: ID!) {\\n contracts(companyId: $companyId) {\\n edges {\\n node {\\n confirmation {\\n id\\n completed\\n documents {\\n name\\n url\\n }\\n }\\n id\\n amount\\n offer {\\n crop {\\n name\\n }\\n storage {\\n label\\n company {\\n name\\n }\\n }\\n }\\n status\\n timeCreated\\n timeProcessed\\n currency\\n price\\n finalPrice\\n customTransport\\n note\\n traderSigned\\n externalNumber\\n }\\n }\\n }\\n }\\n\": typeof types.ContractsDocument,\n \"\\n query Contract($id: ID!) {\\n contract(id: $id) {\\n marketPrice {\\n quarter {\\n id\\n name\\n }\\n }\\n userSignature {\\n id\\n slug\\n status\\n }\\n confirmation {\\n id\\n completed\\n documents {\\n name\\n url\\n }\\n }\\n externalNumber\\n id\\n amount\\n offer {\\n crop {\\n name\\n }\\n storage {\\n label\\n company {\\n name\\n }\\n }\\n }\\n status\\n timeCreated\\n timeProcessed\\n currency\\n price\\n finalPrice\\n customTransport\\n note\\n traderSigned\\n }\\n }\\n\": typeof types.ContractDocument,\n \"\\n query Confirmation($id: ID!) {\\n contract(id: $id) {\\n userSignature {\\n id\\n slug\\n status\\n }\\n traderSigned\\n confirmation {\\n id\\n completed\\n documents {\\n name\\n url\\n }\\n }\\n }\\n }\\n\": typeof types.ConfirmationDocument,\n \"\\n mutation EditOrder($id: ID!, $order: OrderInput!) {\\n editOrder(id: $id, order: $order) {\\n id\\n }\\n }\\n\": typeof types.EditOrderDocument,\n \"\\n query OrderList($id: ID!) {\\n offer(id: $id) {\\n id\\n crop {\\n id\\n name\\n }\\n storage {\\n id\\n label\\n company {\\n id\\n name\\n }\\n }\\n orders {\\n edges {\\n node {\\n id\\n note\\n amount\\n currency\\n quarter {\\n id\\n name\\n }\\n price\\n lowPrice\\n currency\\n customTransport\\n transportNote\\n }\\n }\\n }\\n }\\n }\\n\": typeof types.OrderListDocument,\n \"\\n query Orders($archived: Boolean) {\\n user {\\n companies {\\n edges {\\n node {\\n storages(archived: $archived) {\\n edges {\\n node {\\n label\\n offers {\\n edges {\\n node {\\n id\\n crop {\\n id\\n name\\n }\\n orders {\\n edges {\\n node {\\n id\\n active\\n amount\\n currency\\n price\\n quarter {\\n id\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n\": typeof types.OrdersDocument,\n};\nconst documents: Documents = {\n \"\\n query CropPricesRegion(\\n $latitude: Float!\\n $longitude: Float!\\n $currency: Currency!\\n ) {\\n cropPricesInRegion(gps: { latitude: $latitude, longitude: $longitude }) {\\n id\\n crop {\\n id\\n name\\n }\\n quarter {\\n id\\n name\\n }\\n price(currency: $currency)\\n date\\n }\\n }\\n\": types.CropPricesRegionDocument,\n \"\\n mutation AddFastContract($fastContract: FastContractInput!) {\\n addFastContract(fastContract: $fastContract) {\\n id\\n }\\n }\\n\": types.AddFastContractDocument,\n \"\\n mutation AddFastOrder($fastOrder: FastOrderInput!) {\\n addFastOrder(fastOrder: $fastOrder) {\\n id\\n offer {\\n id\\n }\\n }\\n }\\n\": types.AddFastOrderDocument,\n \"\\n query Offer($id: ID!) {\\n offer(id: $id) {\\n yearHarvested\\n crop {\\n id\\n name\\n }\\n id\\n parameters {\\n edges {\\n node {\\n id\\n ... on SelectOfferParameter {\\n option {\\n id\\n title\\n __typename\\n }\\n }\\n ... on FloatOfferParameter {\\n value\\n cropParameter {\\n unit\\n }\\n }\\n cropParameter {\\n id\\n title\\n }\\n }\\n }\\n }\\n amount\\n totalAmount\\n storage {\\n id\\n label\\n address\\n company {\\n id\\n name\\n }\\n }\\n }\\n }\\n\": types.OfferDocument,\n \"\\n query OfferPrices($id: ID!, $currency: Currency!, $cropIds: [ID!]) {\\n offer(id: $id) {\\n storage {\\n lastPrices(cropIds: $cropIds) {\\n edges {\\n node {\\n id\\n price(currency: $currency)\\n quarter {\\n id\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n\": types.OfferPricesDocument,\n \"\\n query Storage($id: ID!) {\\n storage(id: $id) {\\n id\\n label\\n zip\\n address\\n offers {\\n edges {\\n node {\\n yearHarvested\\n id\\n amount\\n totalAmount\\n orders {\\n edges {\\n node {\\n amount\\n active\\n }\\n }\\n }\\n crop {\\n id\\n name\\n }\\n }\\n }\\n }\\n company {\\n id\\n name\\n }\\n }\\n }\\n\": types.StorageDocument,\n \"\\n mutation RemoveOrder($id: ID!) {\\n removeOrder(id: $id)\\n }\\n\": types.RemoveOrderDocument,\n \"\\n mutation AddStorage($storage: StorageInput!) {\\n addStorage(storage: $storage) {\\n id\\n label\\n }\\n }\\n\": types.AddStorageDocument,\n \"\\n mutation ArchiveOffer($id: ID!) {\\n archiveOffer(id: $id) {\\n id\\n }\\n }\\n\": types.ArchiveOfferDocument,\n \"\\n mutation ArchiveStorage($id: ID!) {\\n archiveStorage(id: $id) {\\n id\\n }\\n }\\n\": types.ArchiveStorageDocument,\n \"\\n mutation EditOffer($id: ID!, $offer: OfferInput!) {\\n editOffer(id: $id, offer: $offer) {\\n id\\n }\\n }\\n\": types.EditOfferDocument,\n \"\\n mutation EditStorage($id: ID!, $storage: StorageInput!) {\\n editStorage(id: $id, storage: $storage) {\\n id\\n }\\n }\\n\": types.EditStorageDocument,\n \"\\n mutation AddOffer($offer: OfferInput!) {\\n addOffer(offer: $offer) {\\n id\\n }\\n }\\n\": types.AddOfferDocument,\n \"\\n query StorageOffers($id: ID!, $archived: Boolean) {\\n storage(id: $id) {\\n offers(archived: $archived) {\\n edges {\\n node {\\n totalAmount\\n id\\n crop {\\n id\\n name\\n }\\n yearHarvested\\n }\\n }\\n }\\n }\\n }\\n\": types.StorageOffersDocument,\n \"\\n query Companies {\\n user {\\n companies {\\n edges {\\n node {\\n id\\n name\\n vatNumber\\n }\\n }\\n }\\n }\\n }\\n\": types.CompaniesDocument,\n \"\\n query Crops($tradeType: TradeType) {\\n crops(tradeType: $tradeType) {\\n edges {\\n node {\\n id\\n name\\n }\\n }\\n }\\n }\\n\": types.CropsDocument,\n \"\\n query User($currency: Currency!, $archived: Boolean) {\\n user {\\n companies {\\n edges {\\n node {\\n id\\n name\\n storages(archived: $archived) {\\n edges {\\n node {\\n archived\\n id\\n address\\n label\\n lastPrices {\\n edges {\\n node {\\n crop {\\n id\\n name\\n }\\n date\\n price(currency: $currency)\\n }\\n }\\n }\\n offers {\\n edges {\\n node {\\n yearHarvested\\n orders {\\n edges {\\n node {\\n active\\n amount\\n }\\n }\\n }\\n id\\n amount\\n totalAmount\\n crop {\\n id\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n\": types.UserDocument,\n \"\\n query OrdersForOffer($id: ID!) {\\n offer(id: $id) {\\n orders {\\n edges {\\n node {\\n active\\n id\\n amount\\n currency\\n quarter {\\n id\\n name\\n }\\n price\\n lowPrice\\n currency\\n }\\n }\\n }\\n }\\n }\\n\": types.OrdersForOfferDocument,\n \"\\n mutation AddOrder($order: OrderInput!) {\\n addOrder(order: $order) {\\n id\\n }\\n }\\n\": types.AddOrderDocument,\n \"\\n mutation AddContract($contract: ContractInput!) {\\n addContract(contract: $contract) {\\n id\\n }\\n }\\n\": types.AddContractDocument,\n \"\\n query CropLastPrices($id: ID!, $currency: Currency!, $cropIds: [ID!]) {\\n storage(id: $id) {\\n lastPrices(cropIds: $cropIds) {\\n edges {\\n node {\\n id\\n crop {\\n id\\n name\\n }\\n quarter {\\n id\\n name\\n }\\n price(currency: $currency)\\n }\\n }\\n }\\n }\\n }\\n\": types.CropLastPricesDocument,\n \"\\n query FutureQuarters {\\n quarters(upcoming: true) {\\n edges {\\n node {\\n id\\n name\\n }\\n }\\n }\\n }\\n\": types.FutureQuartersDocument,\n \"\\n query StorageAggregatedPrices(\\n $id: ID!\\n $from: DateTime!\\n $to: DateTime!\\n $cropIds: [ID!]\\n $currency: Currency!\\n ) {\\n storage(id: $id) {\\n aggregatedPrices: prices(\\n from: $from\\n to: $to\\n aggregated: true\\n cropIds: $cropIds\\n ) {\\n edges {\\n node {\\n id\\n date\\n quarter {\\n id\\n name\\n dateFrom\\n }\\n region {\\n id\\n name\\n }\\n price(currency: $currency)\\n }\\n }\\n }\\n }\\n }\\n\": types.StorageAggregatedPricesDocument,\n \"\\n query StoragesForTrading($currency: Currency!, $archived: Boolean) {\\n user {\\n companies {\\n edges {\\n node {\\n id\\n name\\n storages(archived: $archived) {\\n edges {\\n node {\\n archived\\n id\\n label\\n offers {\\n edges {\\n node {\\n yearHarvested\\n id\\n archived\\n amount\\n totalAmount\\n crop {\\n id\\n name\\n }\\n }\\n }\\n }\\n lastPrices {\\n edges {\\n node {\\n price(currency: $currency)\\n crop {\\n id\\n name\\n }\\n quarter {\\n id\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n\": types.StoragesForTradingDocument,\n \"\\n query Contracts($companyId: ID!) {\\n contracts(companyId: $companyId) {\\n edges {\\n node {\\n confirmation {\\n id\\n completed\\n documents {\\n name\\n url\\n }\\n }\\n id\\n amount\\n offer {\\n crop {\\n name\\n }\\n storage {\\n label\\n company {\\n name\\n }\\n }\\n }\\n status\\n timeCreated\\n timeProcessed\\n currency\\n price\\n finalPrice\\n customTransport\\n note\\n traderSigned\\n externalNumber\\n }\\n }\\n }\\n }\\n\": types.ContractsDocument,\n \"\\n query Contract($id: ID!) {\\n contract(id: $id) {\\n marketPrice {\\n quarter {\\n id\\n name\\n }\\n }\\n userSignature {\\n id\\n slug\\n status\\n }\\n confirmation {\\n id\\n completed\\n documents {\\n name\\n url\\n }\\n }\\n externalNumber\\n id\\n amount\\n offer {\\n crop {\\n name\\n }\\n storage {\\n label\\n company {\\n name\\n }\\n }\\n }\\n status\\n timeCreated\\n timeProcessed\\n currency\\n price\\n finalPrice\\n customTransport\\n note\\n traderSigned\\n }\\n }\\n\": types.ContractDocument,\n \"\\n query Confirmation($id: ID!) {\\n contract(id: $id) {\\n userSignature {\\n id\\n slug\\n status\\n }\\n traderSigned\\n confirmation {\\n id\\n completed\\n documents {\\n name\\n url\\n }\\n }\\n }\\n }\\n\": types.ConfirmationDocument,\n \"\\n mutation EditOrder($id: ID!, $order: OrderInput!) {\\n editOrder(id: $id, order: $order) {\\n id\\n }\\n }\\n\": types.EditOrderDocument,\n \"\\n query OrderList($id: ID!) {\\n offer(id: $id) {\\n id\\n crop {\\n id\\n name\\n }\\n storage {\\n id\\n label\\n company {\\n id\\n name\\n }\\n }\\n orders {\\n edges {\\n node {\\n id\\n note\\n amount\\n currency\\n quarter {\\n id\\n name\\n }\\n price\\n lowPrice\\n currency\\n customTransport\\n transportNote\\n }\\n }\\n }\\n }\\n }\\n\": types.OrderListDocument,\n \"\\n query Orders($archived: Boolean) {\\n user {\\n companies {\\n edges {\\n node {\\n storages(archived: $archived) {\\n edges {\\n node {\\n label\\n offers {\\n edges {\\n node {\\n id\\n crop {\\n id\\n name\\n }\\n orders {\\n edges {\\n node {\\n id\\n active\\n amount\\n currency\\n price\\n quarter {\\n id\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n\": types.OrdersDocument,\n};\n\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n *\n *\n * @example\n * ```ts\n * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);\n * ```\n *\n * The query argument is unknown!\n * Please regenerate the types.\n */\nexport function graphql(source: string): unknown;\n\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query CropPricesRegion(\\n $latitude: Float!\\n $longitude: Float!\\n $currency: Currency!\\n ) {\\n cropPricesInRegion(gps: { latitude: $latitude, longitude: $longitude }) {\\n id\\n crop {\\n id\\n name\\n }\\n quarter {\\n id\\n name\\n }\\n price(currency: $currency)\\n date\\n }\\n }\\n\"): (typeof documents)[\"\\n query CropPricesRegion(\\n $latitude: Float!\\n $longitude: Float!\\n $currency: Currency!\\n ) {\\n cropPricesInRegion(gps: { latitude: $latitude, longitude: $longitude }) {\\n id\\n crop {\\n id\\n name\\n }\\n quarter {\\n id\\n name\\n }\\n price(currency: $currency)\\n date\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation AddFastContract($fastContract: FastContractInput!) {\\n addFastContract(fastContract: $fastContract) {\\n id\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation AddFastContract($fastContract: FastContractInput!) {\\n addFastContract(fastContract: $fastContract) {\\n id\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation AddFastOrder($fastOrder: FastOrderInput!) {\\n addFastOrder(fastOrder: $fastOrder) {\\n id\\n offer {\\n id\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation AddFastOrder($fastOrder: FastOrderInput!) {\\n addFastOrder(fastOrder: $fastOrder) {\\n id\\n offer {\\n id\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query Offer($id: ID!) {\\n offer(id: $id) {\\n yearHarvested\\n crop {\\n id\\n name\\n }\\n id\\n parameters {\\n edges {\\n node {\\n id\\n ... on SelectOfferParameter {\\n option {\\n id\\n title\\n __typename\\n }\\n }\\n ... on FloatOfferParameter {\\n value\\n cropParameter {\\n unit\\n }\\n }\\n cropParameter {\\n id\\n title\\n }\\n }\\n }\\n }\\n amount\\n totalAmount\\n storage {\\n id\\n label\\n address\\n company {\\n id\\n name\\n }\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query Offer($id: ID!) {\\n offer(id: $id) {\\n yearHarvested\\n crop {\\n id\\n name\\n }\\n id\\n parameters {\\n edges {\\n node {\\n id\\n ... on SelectOfferParameter {\\n option {\\n id\\n title\\n __typename\\n }\\n }\\n ... on FloatOfferParameter {\\n value\\n cropParameter {\\n unit\\n }\\n }\\n cropParameter {\\n id\\n title\\n }\\n }\\n }\\n }\\n amount\\n totalAmount\\n storage {\\n id\\n label\\n address\\n company {\\n id\\n name\\n }\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query OfferPrices($id: ID!, $currency: Currency!, $cropIds: [ID!]) {\\n offer(id: $id) {\\n storage {\\n lastPrices(cropIds: $cropIds) {\\n edges {\\n node {\\n id\\n price(currency: $currency)\\n quarter {\\n id\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query OfferPrices($id: ID!, $currency: Currency!, $cropIds: [ID!]) {\\n offer(id: $id) {\\n storage {\\n lastPrices(cropIds: $cropIds) {\\n edges {\\n node {\\n id\\n price(currency: $currency)\\n quarter {\\n id\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query Storage($id: ID!) {\\n storage(id: $id) {\\n id\\n label\\n zip\\n address\\n offers {\\n edges {\\n node {\\n yearHarvested\\n id\\n amount\\n totalAmount\\n orders {\\n edges {\\n node {\\n amount\\n active\\n }\\n }\\n }\\n crop {\\n id\\n name\\n }\\n }\\n }\\n }\\n company {\\n id\\n name\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query Storage($id: ID!) {\\n storage(id: $id) {\\n id\\n label\\n zip\\n address\\n offers {\\n edges {\\n node {\\n yearHarvested\\n id\\n amount\\n totalAmount\\n orders {\\n edges {\\n node {\\n amount\\n active\\n }\\n }\\n }\\n crop {\\n id\\n name\\n }\\n }\\n }\\n }\\n company {\\n id\\n name\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation RemoveOrder($id: ID!) {\\n removeOrder(id: $id)\\n }\\n\"): (typeof documents)[\"\\n mutation RemoveOrder($id: ID!) {\\n removeOrder(id: $id)\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation AddStorage($storage: StorageInput!) {\\n addStorage(storage: $storage) {\\n id\\n label\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation AddStorage($storage: StorageInput!) {\\n addStorage(storage: $storage) {\\n id\\n label\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation ArchiveOffer($id: ID!) {\\n archiveOffer(id: $id) {\\n id\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation ArchiveOffer($id: ID!) {\\n archiveOffer(id: $id) {\\n id\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation ArchiveStorage($id: ID!) {\\n archiveStorage(id: $id) {\\n id\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation ArchiveStorage($id: ID!) {\\n archiveStorage(id: $id) {\\n id\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation EditOffer($id: ID!, $offer: OfferInput!) {\\n editOffer(id: $id, offer: $offer) {\\n id\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation EditOffer($id: ID!, $offer: OfferInput!) {\\n editOffer(id: $id, offer: $offer) {\\n id\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation EditStorage($id: ID!, $storage: StorageInput!) {\\n editStorage(id: $id, storage: $storage) {\\n id\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation EditStorage($id: ID!, $storage: StorageInput!) {\\n editStorage(id: $id, storage: $storage) {\\n id\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation AddOffer($offer: OfferInput!) {\\n addOffer(offer: $offer) {\\n id\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation AddOffer($offer: OfferInput!) {\\n addOffer(offer: $offer) {\\n id\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query StorageOffers($id: ID!, $archived: Boolean) {\\n storage(id: $id) {\\n offers(archived: $archived) {\\n edges {\\n node {\\n totalAmount\\n id\\n crop {\\n id\\n name\\n }\\n yearHarvested\\n }\\n }\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query StorageOffers($id: ID!, $archived: Boolean) {\\n storage(id: $id) {\\n offers(archived: $archived) {\\n edges {\\n node {\\n totalAmount\\n id\\n crop {\\n id\\n name\\n }\\n yearHarvested\\n }\\n }\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query Companies {\\n user {\\n companies {\\n edges {\\n node {\\n id\\n name\\n vatNumber\\n }\\n }\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query Companies {\\n user {\\n companies {\\n edges {\\n node {\\n id\\n name\\n vatNumber\\n }\\n }\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query Crops($tradeType: TradeType) {\\n crops(tradeType: $tradeType) {\\n edges {\\n node {\\n id\\n name\\n }\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query Crops($tradeType: TradeType) {\\n crops(tradeType: $tradeType) {\\n edges {\\n node {\\n id\\n name\\n }\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query User($currency: Currency!, $archived: Boolean) {\\n user {\\n companies {\\n edges {\\n node {\\n id\\n name\\n storages(archived: $archived) {\\n edges {\\n node {\\n archived\\n id\\n address\\n label\\n lastPrices {\\n edges {\\n node {\\n crop {\\n id\\n name\\n }\\n date\\n price(currency: $currency)\\n }\\n }\\n }\\n offers {\\n edges {\\n node {\\n yearHarvested\\n orders {\\n edges {\\n node {\\n active\\n amount\\n }\\n }\\n }\\n id\\n amount\\n totalAmount\\n crop {\\n id\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query User($currency: Currency!, $archived: Boolean) {\\n user {\\n companies {\\n edges {\\n node {\\n id\\n name\\n storages(archived: $archived) {\\n edges {\\n node {\\n archived\\n id\\n address\\n label\\n lastPrices {\\n edges {\\n node {\\n crop {\\n id\\n name\\n }\\n date\\n price(currency: $currency)\\n }\\n }\\n }\\n offers {\\n edges {\\n node {\\n yearHarvested\\n orders {\\n edges {\\n node {\\n active\\n amount\\n }\\n }\\n }\\n id\\n amount\\n totalAmount\\n crop {\\n id\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query OrdersForOffer($id: ID!) {\\n offer(id: $id) {\\n orders {\\n edges {\\n node {\\n active\\n id\\n amount\\n currency\\n quarter {\\n id\\n name\\n }\\n price\\n lowPrice\\n currency\\n }\\n }\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query OrdersForOffer($id: ID!) {\\n offer(id: $id) {\\n orders {\\n edges {\\n node {\\n active\\n id\\n amount\\n currency\\n quarter {\\n id\\n name\\n }\\n price\\n lowPrice\\n currency\\n }\\n }\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation AddOrder($order: OrderInput!) {\\n addOrder(order: $order) {\\n id\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation AddOrder($order: OrderInput!) {\\n addOrder(order: $order) {\\n id\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation AddContract($contract: ContractInput!) {\\n addContract(contract: $contract) {\\n id\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation AddContract($contract: ContractInput!) {\\n addContract(contract: $contract) {\\n id\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query CropLastPrices($id: ID!, $currency: Currency!, $cropIds: [ID!]) {\\n storage(id: $id) {\\n lastPrices(cropIds: $cropIds) {\\n edges {\\n node {\\n id\\n crop {\\n id\\n name\\n }\\n quarter {\\n id\\n name\\n }\\n price(currency: $currency)\\n }\\n }\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query CropLastPrices($id: ID!, $currency: Currency!, $cropIds: [ID!]) {\\n storage(id: $id) {\\n lastPrices(cropIds: $cropIds) {\\n edges {\\n node {\\n id\\n crop {\\n id\\n name\\n }\\n quarter {\\n id\\n name\\n }\\n price(currency: $currency)\\n }\\n }\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query FutureQuarters {\\n quarters(upcoming: true) {\\n edges {\\n node {\\n id\\n name\\n }\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query FutureQuarters {\\n quarters(upcoming: true) {\\n edges {\\n node {\\n id\\n name\\n }\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query StorageAggregatedPrices(\\n $id: ID!\\n $from: DateTime!\\n $to: DateTime!\\n $cropIds: [ID!]\\n $currency: Currency!\\n ) {\\n storage(id: $id) {\\n aggregatedPrices: prices(\\n from: $from\\n to: $to\\n aggregated: true\\n cropIds: $cropIds\\n ) {\\n edges {\\n node {\\n id\\n date\\n quarter {\\n id\\n name\\n dateFrom\\n }\\n region {\\n id\\n name\\n }\\n price(currency: $currency)\\n }\\n }\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query StorageAggregatedPrices(\\n $id: ID!\\n $from: DateTime!\\n $to: DateTime!\\n $cropIds: [ID!]\\n $currency: Currency!\\n ) {\\n storage(id: $id) {\\n aggregatedPrices: prices(\\n from: $from\\n to: $to\\n aggregated: true\\n cropIds: $cropIds\\n ) {\\n edges {\\n node {\\n id\\n date\\n quarter {\\n id\\n name\\n dateFrom\\n }\\n region {\\n id\\n name\\n }\\n price(currency: $currency)\\n }\\n }\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query StoragesForTrading($currency: Currency!, $archived: Boolean) {\\n user {\\n companies {\\n edges {\\n node {\\n id\\n name\\n storages(archived: $archived) {\\n edges {\\n node {\\n archived\\n id\\n label\\n offers {\\n edges {\\n node {\\n yearHarvested\\n id\\n archived\\n amount\\n totalAmount\\n crop {\\n id\\n name\\n }\\n }\\n }\\n }\\n lastPrices {\\n edges {\\n node {\\n price(currency: $currency)\\n crop {\\n id\\n name\\n }\\n quarter {\\n id\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query StoragesForTrading($currency: Currency!, $archived: Boolean) {\\n user {\\n companies {\\n edges {\\n node {\\n id\\n name\\n storages(archived: $archived) {\\n edges {\\n node {\\n archived\\n id\\n label\\n offers {\\n edges {\\n node {\\n yearHarvested\\n id\\n archived\\n amount\\n totalAmount\\n crop {\\n id\\n name\\n }\\n }\\n }\\n }\\n lastPrices {\\n edges {\\n node {\\n price(currency: $currency)\\n crop {\\n id\\n name\\n }\\n quarter {\\n id\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query Contracts($companyId: ID!) {\\n contracts(companyId: $companyId) {\\n edges {\\n node {\\n confirmation {\\n id\\n completed\\n documents {\\n name\\n url\\n }\\n }\\n id\\n amount\\n offer {\\n crop {\\n name\\n }\\n storage {\\n label\\n company {\\n name\\n }\\n }\\n }\\n status\\n timeCreated\\n timeProcessed\\n currency\\n price\\n finalPrice\\n customTransport\\n note\\n traderSigned\\n externalNumber\\n }\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query Contracts($companyId: ID!) {\\n contracts(companyId: $companyId) {\\n edges {\\n node {\\n confirmation {\\n id\\n completed\\n documents {\\n name\\n url\\n }\\n }\\n id\\n amount\\n offer {\\n crop {\\n name\\n }\\n storage {\\n label\\n company {\\n name\\n }\\n }\\n }\\n status\\n timeCreated\\n timeProcessed\\n currency\\n price\\n finalPrice\\n customTransport\\n note\\n traderSigned\\n externalNumber\\n }\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query Contract($id: ID!) {\\n contract(id: $id) {\\n marketPrice {\\n quarter {\\n id\\n name\\n }\\n }\\n userSignature {\\n id\\n slug\\n status\\n }\\n confirmation {\\n id\\n completed\\n documents {\\n name\\n url\\n }\\n }\\n externalNumber\\n id\\n amount\\n offer {\\n crop {\\n name\\n }\\n storage {\\n label\\n company {\\n name\\n }\\n }\\n }\\n status\\n timeCreated\\n timeProcessed\\n currency\\n price\\n finalPrice\\n customTransport\\n note\\n traderSigned\\n }\\n }\\n\"): (typeof documents)[\"\\n query Contract($id: ID!) {\\n contract(id: $id) {\\n marketPrice {\\n quarter {\\n id\\n name\\n }\\n }\\n userSignature {\\n id\\n slug\\n status\\n }\\n confirmation {\\n id\\n completed\\n documents {\\n name\\n url\\n }\\n }\\n externalNumber\\n id\\n amount\\n offer {\\n crop {\\n name\\n }\\n storage {\\n label\\n company {\\n name\\n }\\n }\\n }\\n status\\n timeCreated\\n timeProcessed\\n currency\\n price\\n finalPrice\\n customTransport\\n note\\n traderSigned\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query Confirmation($id: ID!) {\\n contract(id: $id) {\\n userSignature {\\n id\\n slug\\n status\\n }\\n traderSigned\\n confirmation {\\n id\\n completed\\n documents {\\n name\\n url\\n }\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query Confirmation($id: ID!) {\\n contract(id: $id) {\\n userSignature {\\n id\\n slug\\n status\\n }\\n traderSigned\\n confirmation {\\n id\\n completed\\n documents {\\n name\\n url\\n }\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation EditOrder($id: ID!, $order: OrderInput!) {\\n editOrder(id: $id, order: $order) {\\n id\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation EditOrder($id: ID!, $order: OrderInput!) {\\n editOrder(id: $id, order: $order) {\\n id\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query OrderList($id: ID!) {\\n offer(id: $id) {\\n id\\n crop {\\n id\\n name\\n }\\n storage {\\n id\\n label\\n company {\\n id\\n name\\n }\\n }\\n orders {\\n edges {\\n node {\\n id\\n note\\n amount\\n currency\\n quarter {\\n id\\n name\\n }\\n price\\n lowPrice\\n currency\\n customTransport\\n transportNote\\n }\\n }\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query OrderList($id: ID!) {\\n offer(id: $id) {\\n id\\n crop {\\n id\\n name\\n }\\n storage {\\n id\\n label\\n company {\\n id\\n name\\n }\\n }\\n orders {\\n edges {\\n node {\\n id\\n note\\n amount\\n currency\\n quarter {\\n id\\n name\\n }\\n price\\n lowPrice\\n currency\\n customTransport\\n transportNote\\n }\\n }\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query Orders($archived: Boolean) {\\n user {\\n companies {\\n edges {\\n node {\\n storages(archived: $archived) {\\n edges {\\n node {\\n label\\n offers {\\n edges {\\n node {\\n id\\n crop {\\n id\\n name\\n }\\n orders {\\n edges {\\n node {\\n id\\n active\\n amount\\n currency\\n price\\n quarter {\\n id\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query Orders($archived: Boolean) {\\n user {\\n companies {\\n edges {\\n node {\\n storages(archived: $archived) {\\n edges {\\n node {\\n label\\n offers {\\n edges {\\n node {\\n id\\n crop {\\n id\\n name\\n }\\n orders {\\n edges {\\n node {\\n id\\n active\\n amount\\n currency\\n price\\n quarter {\\n id\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n\"];\n\nexport function graphql(source: string) {\n return (documents as any)[source] ?? {};\n}\n\nexport type DocumentType> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;","import { queryOptions } from \"@tanstack/react-query\";\nimport { z } from \"zod\";\n\nimport { graphqlClient } from \"@/api/graphql\";\nimport { sortString } from \"@/common/utils/array\";\nimport { graphql } from \"@/generated/digitalnisklady.cz\";\nimport { Currency } from \"@/generated/digitalnisklady.cz/graphql\";\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst cropPricesQueryDocument = graphql(`\n query CropPricesRegion(\n $latitude: Float!\n $longitude: Float!\n $currency: Currency!\n ) {\n cropPricesInRegion(gps: { latitude: $latitude, longitude: $longitude }) {\n id\n crop {\n id\n name\n }\n quarter {\n id\n name\n }\n price(currency: $currency)\n date\n }\n }\n`);\n\nconst cropPricesSchema = z.array(\n z.object({\n crop: z.object({\n id: z.string(),\n name: z.string(),\n }),\n prices: z.array(\n z.object({\n date: z.number(),\n id: z.string(),\n price: z.number(),\n quarter: z.object({ id: z.string(), name: z.string() }),\n }),\n ),\n }),\n);\n\ntype CropPricesSchema = z.infer;\n\nconst cropPricesQuery = (variables: {\n latitude: number;\n longitude: number;\n currency: Currency;\n}) => {\n return queryOptions({\n queryKey: [\n \"crop-prices\",\n variables,\n variables.latitude,\n variables.longitude,\n variables.currency,\n ],\n queryFn: () => graphqlClient.request(cropPricesQueryDocument, variables),\n select: (data) => {\n const result: z.infer = [];\n data.cropPricesInRegion?.sort((a, b) => {\n const aName = a?.crop?.name;\n const bName = b?.crop?.name;\n\n if (aName && bName) {\n return sortString(aName, bName);\n }\n\n return 0;\n });\n\n data.cropPricesInRegion?.forEach((price) => {\n const index = result.findIndex((y) => y.crop.id === price?.crop?.id);\n const { crop, ...rest } = price ?? {};\n\n if (index === -1) {\n result.push({\n // @ts-expect-error checked with zod\n crop,\n // @ts-expect-error checked with zod\n prices: [rest],\n });\n } else {\n // @ts-expect-error checked with zod\n result[index].prices.push(rest);\n }\n });\n\n return cropPricesSchema.parse(result);\n },\n });\n};\n\nexport { cropPricesQuery };\nexport type { CropPricesSchema };\n","import CrossSvg from \"@icons/cross.svg?react\";\nimport starSrc from \"@icons/star.svg?url\";\nimport starFilledSrc from \"@icons/star-filled.svg?url\";\nimport starOutlineSrc from \"@icons/star-outline.svg?url\";\nimport { msg, t } from \"@lingui/core/macro\";\nimport { useLingui } from \"@lingui/react\";\nimport { Trans } from \"@lingui/react/macro\";\nimport { useQuery } from \"@tanstack/react-query\";\nimport partition from \"lodash-es/partition\";\nimport { DateTime } from \"luxon\";\nimport React from \"react\";\nimport {\n createSearchParams,\n Navigate,\n useLocation,\n useParams,\n} from \"react-router-dom\";\n\nimport { CropIcon } from \"@/common/components/crop-icon/crop-icon\";\nimport { Failed } from \"@/common/components/info/info\";\nimport { Metadata } from \"@/common/components/metadata/metadata\";\nimport { PageTitle } from \"@/common/components/page-title/page-title\";\nimport { PriceList } from \"@/common/components/price-list/price-list\";\nimport { Spacer } from \"@/common/components/spacer/spacer\";\nimport { Spinner } from \"@/common/components/spinner/spinner\";\nimport { useCurrency } from \"@/common/hooks/use-currency\";\nimport {\n arrayEmptyCheckFn,\n useLocalStorage,\n} from \"@/common/hooks/use-local-storage\";\nimport { useScrollbarToggle } from \"@/common/hooks/use-scrollbar-toggle\";\nimport { useToggle } from \"@/common/hooks/use-toggle\";\nimport { oneMinute } from \"@/common/providers/query-provider\";\nimport { useSidebar } from \"@/common/providers/sidebar-provider/sidebar-provider\";\nimport { toggleItem } from \"@/common/utils/array\";\nimport { getPricesView } from \"@/common/utils/trading\";\nimport { FeatureMode } from \"@/domain/plan/feature-mode.service\";\nimport { PurchasePricesFlow } from \"@/domain/plan/purchase-prices/purchase-prices.flow\";\nimport { Currency } from \"@/generated/digitalnisklady.cz/graphql\";\n\nimport { TwoColumnLayout } from \"../layout/layout\";\nimport { postalCodesQuery } from \"../shared/api/get-postal-codes\";\nimport { LockedScreen } from \"../shared/components/locked-screen/locked-screen\";\nimport {\n PostalCodeDialog,\n usePostalCodeDialogParams,\n} from \"../shared/components/postal-code-dialog/postal-code-dialog\";\nimport { IWantToTradeDialog } from \"./components/i-want-to-trade-dialog\";\nimport { cropPricesQuery } from \"./purchase-prices.api\";\n\nconst path = \"purchase-prices\";\n\nconst PurchasePrices = ({ mode }: { mode: FeatureMode }) => {\n const flow = React.useRef(new PurchasePricesFlow());\n flow.current.setStrategy(mode);\n const { marketPriceId } = useParams();\n const isDetailOpen = marketPriceId !== undefined;\n const sidebar = useSidebar();\n const isRightPaneOpen = isDetailOpen || sidebar.state.screen;\n const { _ } = useLingui();\n const { params, enforceDialog } = usePostalCodeDialogParams();\n useScrollbarToggle(params?.enforceDialog);\n const [CurrencySwitch, currency] = useCurrency();\n const postalCodes = useQuery(postalCodesQuery());\n const postalCodeObject = postalCodes.data?.find(\n (postalCode) => postalCode.code === params?.postalCode,\n );\n const [favorites, setFavorites] = useLocalStorage(\n \"purchase-prices.favorites\",\n flow.current.getFavorites(),\n arrayEmptyCheckFn,\n );\n const showPackages = useToggle();\n\n const cropPrices = useQuery({\n refetchInterval: oneMinute,\n ...cropPricesQuery({\n // @ts-expect-error this can hardly ever be undefined, yet I have no idea how to express it here\n longitude: postalCodeObject?.longitude,\n // @ts-expect-error this can hardly ever be undefined, yet I have no idea how to express it here\n latitude: postalCodeObject?.latitude,\n currency: currency as Currency,\n }),\n enabled: !!postalCodeObject,\n });\n const [favoriteCropPrices, otherCropPrices] = partition(\n cropPrices.data,\n (price) => favorites.includes(price.crop.name),\n );\n\n const toggleFavorite = (cropName: string) => {\n setFavorites((current) => toggleItem(current, cropName));\n };\n\n if (postalCodes.status === \"success\" && params?.postalCode) {\n if (\n !postalCodes.data.find(\n (postalCode) => postalCode.code === params.postalCode,\n )\n ) {\n return ;\n }\n }\n\n if (showPackages.on) {\n return (\n \n \n \n );\n }\n\n return (\n \n \n Moje výkupní ceny\n \n {CurrencySwitch}\n \n ),\n content: (\n <>\n
\n \n \n
\n {postalCodeObject ? (\n \n \n Ceny pro {postalCodeObject.code}, {postalCodeObject.name}\n \n \n ) : null}\n \n \n Nyní zobrazujeme aktuální ceny komodit pro oblast dle\n poštovního směrovacího čísla (PSČ)\n \n \n \n Upravit PSČ\n \n
\n \n {cropPrices.status === \"pending\" ? (\n
\n \n
\n ) : null}\n {cropPrices.status === \"error\" ? (\n \n ) : null}\n {cropPrices.status === \"success\" ? (\n
\n {[\n {\n items: favoriteCropPrices,\n icon: starFilledSrc,\n iconTitle: t`Odebrat z oblíbených`,\n title: (\n \n {\" \"}\n Moje oblíbené komodity\n \n ),\n titleTooltip: t`Zaškrtnutím hvězdičky u jednotlivých komodit je přesunete v seznamu výše`,\n },\n {\n items: otherCropPrices,\n icon: starSrc,\n iconTitle: t`Přidat do oblíbených`,\n title: t`Ostatní komodity`,\n },\n ].map((section) => (\n \n \n {section.title}\n

\n\n \n {section.items.map((item) => (\n \n

\n {\" \"}\n {item.crop.name}\n toggleFavorite(item.crop.name)}\n className=\"group hover:bg-can-silver-gray -mr-2 ml-auto flex content-center rounded-full p-2\"\n >\n \n \n \n

\n {getPricesView(item.prices).map((prices, i) => (\n li]:col-start-4 [&>li]:border-r-0 [&>li]:border-l\" : \"\"}`}\n key={i}\n prices={prices.map((p) => {\n const masked = flow.current.getMaskedPrice(\n item.crop.name,\n currency,\n );\n if (masked) {\n return masked;\n }\n return p?.type === \"data\"\n ? {\n id: p.id,\n quarter: p.quarter.name,\n value: p.price,\n currency,\n }\n : null;\n })}\n />\n ))}\n \n ))}\n \n \n ))}\n \n ) : null}\n \n {cropPrices.dataUpdatedAt > 0 ? (\n

\n Aktualizováno{\" \"}\n {DateTime.fromMillis(cropPrices.dataUpdatedAt).toLocaleString(\n DateTime.DATETIME_FULL,\n )}\n

\n ) : null}\n \n \n {params?.enforceDialog ? (\n \n ) : (\n \n )}\n \n ),\n }}\n >\n );\n};\n\nconst initialParams = createSearchParams({\n enforceDialog: \"true\",\n currency: \"CZK\",\n});\n\nconst PurchasePricesParams = ({\n children,\n params,\n}: React.PropsWithChildren<{ params: string }>) => {\n const searchParams = usePostalCodeDialogParams();\n const { pathname } = useLocation();\n\n if (!searchParams.params) {\n return ;\n }\n\n return children;\n};\n\nconst Restoration = ({\n children,\n}: {\n children: (params: string) => React.ReactNode;\n}) => {\n const postalCodes = useQuery(postalCodesQuery());\n const { params } = usePostalCodeDialogParams();\n const [savedParams, setSavedParams] = useLocalStorage(path);\n const savedURLParams = createSearchParams(savedParams);\n const postalCode = savedURLParams.get(\"postalCode\");\n const isValidPostalCode =\n postalCodes.data?.find((code) => code.code === postalCode) !== undefined;\n\n React.useEffect(() => {\n if (!params) {\n return;\n }\n setSavedParams(\n Object.entries(params)\n .map(([key, value]) => `${key}=${value}`)\n .join(\"&\"),\n );\n }, [params, setSavedParams]);\n\n if (postalCodes.status !== \"success\") {\n return null;\n }\n\n return (\n <>{children(isValidPostalCode ? savedParams : initialParams.toString())}\n );\n};\n\nexport {\n getPricesView,\n path,\n PurchasePrices,\n PurchasePricesParams,\n Restoration,\n};\n","import rehypeDomStringify from \"rehype-dom-stringify\";\nimport remarkParse from \"remark-parse\";\nimport remarkRehype from \"remark-rehype\";\nimport { unified } from \"unified\";\n\nconst getHTML = (markdown: string): Document => {\n const html = unified()\n .use(remarkParse)\n .use(remarkRehype)\n .use(rehypeDomStringify)\n .processSync(markdown);\n const doc = document.implementation.createHTMLDocument();\n doc.body.innerHTML = html.toString();\n\n return doc;\n};\n\nconst nullIf = (input: T, nullLikeValue: T) => {\n if (input === nullLikeValue) {\n return null;\n }\n\n return input;\n};\n\nexport { getHTML, nullIf };\n","import { DateTime } from \"luxon\";\nimport React from \"react\";\n\nimport newsPlaceholderSvg from \"@/assets/news-placeholder.svg\";\nimport { Spacer } from \"@/common/components/spacer/spacer\";\nimport { nullIf } from \"@/common/utils\";\nimport { ReportsQueryResult } from \"@/routes/reports/reports.api\";\n\ntype Props =\n | {\n skeleton: true;\n className?: string;\n }\n | ({\n skeleton?: false;\n className?: string;\n } & ReportsQueryResult);\n\nconst skeletonProps = {\n dateFrom: \"\",\n dateTo: \"\",\n headline: \"\",\n summary: \"\",\n skeleton: true,\n image: undefined,\n className: \"\",\n};\n\nconst PreviewCard = (props: Props) => {\n const { headline, summary, dateFrom, dateTo, image, skeleton, className } =\n props.skeleton ? skeletonProps : props;\n const _dateFrom = DateTime.fromISO(dateFrom).toJSDate();\n const _dateTo = DateTime.fromISO(dateTo).toJSDate();\n const dateRangeFormatter = new Intl.DateTimeFormat();\n const _image = nullIf(image?.url, \"\");\n const { ref: imageRef, status: imageStatus } = useFailedImage();\n const imageLoaded = _image && imageStatus !== \"error\";\n\n return (\n \n \n
\n \n
\n \n \n \n {skeleton ? (\n <> \n ) : (\n dateRangeFormatter.formatRange(_dateFrom, _dateTo)\n )}\n \n \n \n {headline}\n \n {summary}\n \n );\n};\n\nconst Summary = ({ children }: React.PropsWithChildren) => {\n return (\n

\n {children}\n

\n );\n};\n\nconst Headline = ({ children }: React.PropsWithChildren) => {\n return (\n

\n {children}\n

\n );\n};\n\nconst TimeSpan = ({ children }: React.PropsWithChildren) => {\n return {children};\n};\n\n// @ts-expect-error unused component\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst Tag = ({ children }: React.PropsWithChildren) => {\n return (\n \n {children}\n \n );\n};\n\nconst useFailedImage = () => {\n const ref = React.useRef(null);\n const [status, setStatus] = React.useState<\"pending\" | \"error\">(\"pending\");\n\n React.useEffect(() => {\n if (!ref.current) {\n return;\n }\n\n ref.current.addEventListener(\"error\", function () {\n this.src = newsPlaceholderSvg;\n setStatus(\"error\");\n });\n }, []);\n\n return { ref, status };\n};\n\nexport { PreviewCard };\n","import { i18n } from \"@lingui/core\";\nimport { msg, t } from \"@lingui/core/macro\";\nimport { DateTime } from \"luxon\";\n\ntype Filter = {\n label: string;\n dateFrom?: string;\n dateTo: string;\n};\n\nconst dynamicFilterCount = 3;\nconst yyyymmdd = \"yyyy-MM-dd\";\nconst today = DateTime.now();\nconst params = {\n dateFrom: \"date-from\",\n dateTo: \"date-to\",\n} as const;\n\nconst getAvailableFilters = (oldest?: DateTime): Filter[] => {\n const filters = [\n getLastMonthFilter(),\n {\n label: t`Poslední 3 měsíce`,\n dateFrom: today.minus({ month: 3 }).toFormat(yyyymmdd),\n dateTo: today.toFormat(yyyymmdd),\n },\n {\n label: t`Poslední rok`,\n dateFrom: today.minus({ year: 1 }).toFormat(yyyymmdd),\n dateTo: today.toFormat(yyyymmdd),\n },\n ];\n\n if (!oldest) {\n return filters;\n }\n\n const thisYear = today.get(\"year\");\n const oldestYear = oldest.get(\"year\");\n\n for (let i = 1; i <= thisYear - oldestYear; i += 1) {\n if (i > dynamicFilterCount) {\n break;\n }\n const previousYear = thisYear - i;\n const yearLabel =\n i === dynamicFilterCount\n ? t`Rok ${previousYear} a starší`\n : t`Rok ${previousYear}`;\n\n filters.push({\n label: yearLabel,\n dateFrom: today.startOf(\"year\").minus({ year: i }).toFormat(yyyymmdd),\n dateTo: today\n .startOf(\"year\")\n .minus({ year: i })\n .endOf(\"year\")\n .toFormat(yyyymmdd),\n });\n }\n\n return filters;\n};\n\nconst getNextFilter = (filters: Filter[], filter: Omit) => {\n const next = getFilterByDateRange(filters, filter);\n if (!next) {\n return;\n }\n\n const position = filters.findIndex((f) => f.label === next.label);\n\n if (position === filters.length - 1) {\n return;\n }\n\n return filters[position + 1];\n};\n\nconst getLastMonthFilter = () => ({\n label: i18n._(msg`Poslední měsíc`),\n dateFrom: today.minus({ month: 1 }).toFormat(yyyymmdd),\n dateTo: today.toFormat(yyyymmdd),\n});\n\nconst getURLParams = (filter: Pick) => {\n return {\n [params.dateFrom]: filter.dateFrom ?? \"\",\n [params.dateTo]: filter.dateTo,\n };\n};\n\nconst getFilterParams = (params: {\n \"date-from\"?: string;\n \"date-to\": string;\n}) => {\n return {\n dateFrom: params[\"date-from\"],\n dateTo: params[\"date-to\"],\n };\n};\n\nconst resetURLParams = (urlParams: URLSearchParams) => {\n urlParams.delete(params.dateFrom);\n urlParams.set(params.dateTo, today.toFormat(yyyymmdd));\n};\n\nconst getFilterByDateRange = (\n filters: Filter[],\n { dateFrom, dateTo }: { dateTo: string; dateFrom?: string },\n) => {\n const result = filters.find(\n (filter) => filter.dateTo === dateTo && filter.dateFrom === dateFrom,\n );\n return result;\n};\n\nconst getInitialFilter = () => getURLParams(getLastMonthFilter());\n\nexport {\n getAvailableFilters,\n getFilterByDateRange,\n getFilterParams,\n getInitialFilter,\n getNextFilter,\n getURLParams,\n resetURLParams,\n};\nexport type { Filter };\n","import {\n getFilterByDateRange,\n getFilterParams,\n getInitialFilter,\n} from \"./quick-filters.utils\";\n\nconst QuickFilters = ({\n activeFilter,\n filters,\n onClick,\n}: {\n filters: readonly { label: string }[];\n activeFilter?: { label: string } | { label: string }[];\n onClick: (index: number) => void;\n}) => {\n const isCurrent = (filter: { label: string }) =>\n (Array.isArray(activeFilter) ? activeFilter : [activeFilter]).find(\n (f) => f?.label === filter.label,\n );\n\n return (\n
    \n {filters.map((filter, i) => (\n \n onClick(i)}\n className={`border-can-forest-teal text-can-forest-teal self-center rounded border px-1.5 py-0.5 text-xs ${\n isCurrent(filter)\n ? \"from-can-tranquil-azure to-can-mystic-aqua border-transparent bg-linear-to-r font-bold text-white\"\n : \"\"\n }`}\n >\n {filter.label}\n \n \n ))}\n
\n );\n};\n\nexport {\n getFilterByDateRange,\n getFilterParams,\n getInitialFilter as getInitialDateFilter,\n QuickFilters,\n};\n","import {\n createSearchParams,\n Link,\n LinkProps,\n useLocation,\n useSearchParams,\n} from \"react-router-dom\";\n\nconst SearchParamsLink = ({\n children,\n omit,\n ...props\n}: LinkProps &\n React.PropsWithChildren<{ omit?: string[]; className?: string }>) => {\n let { search } = useLocation();\n let to = props.to;\n\n if (omit) {\n const params = new URLSearchParams(search);\n omit.forEach((param) => params.delete(param));\n search = \"?\" + params.toString();\n }\n\n if (typeof to !== \"string\") {\n to.search += search;\n } else {\n to += search;\n }\n return (\n \n {children}\n \n );\n};\n\nconst MergeSearchParamsLink = ({\n children,\n ...props\n}: LinkProps & React.PropsWithChildren) => {\n const [searchParams] = useSearchParams();\n let to = props.to;\n let linkParams = \"\";\n\n if (typeof to === \"string\") {\n const search = to.split(\"?\")[1];\n\n if (search) {\n linkParams = search;\n }\n } else {\n if (to.search) {\n linkParams = to.search?.toString();\n }\n }\n\n const linkURLParams = createSearchParams(linkParams);\n\n for (const [key, value] of linkURLParams) {\n searchParams.delete(key);\n searchParams.set(key, value);\n }\n\n if (typeof to === \"string\") {\n to = \"?\" + to.slice(0, to.indexOf(\"?\")) + searchParams.toString();\n } else {\n to.search = searchParams.toString();\n }\n\n return (\n \n {children}\n \n );\n};\n\nexport { MergeSearchParamsLink, SearchParamsLink };\n","const getAbsolutePath = (path: string) => `/${path}`;\n\nexport { getAbsolutePath };\n","import { Args, newsInstance } from \"./client\";\n\nconst imageUpload = (args: Args) => {\n return newsInstance({\n url: args.url,\n method: args.method,\n data: args.data,\n });\n};\n\nexport { imageUpload };\n","/**\n * Generated by orval v7.4.1 🍺\n * Do not edit manually.\n * Clever Analytics News Public API\n * OpenAPI spec version: 1.0.0\n */\nimport { newsInstance } from '../../api/client';\nimport { imageUpload } from '../../api/image-upload';\nexport type CreateBody = {\n file: Blob;\n};\n\nexport type GetReportsSortOrder = typeof GetReportsSortOrder[keyof typeof GetReportsSortOrder];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetReportsSortOrder = {\n ASC: 'ASC',\n DESC: 'DESC',\n} as const;\n\nexport type GetReportsParams = {\n'date-from'?: string;\n'date-to'?: string;\n'sort-order': GetReportsSortOrder;\n};\n\nexport interface LanguageTo {\n id: string;\n name: string;\n localName: string;\n}\n\nexport interface ErrorResponse {\n timestamp: number;\n status: string;\n message?: string;\n errors?: string[];\n}\n\nexport type ReportListReportToStatus = typeof ReportListReportToStatus[keyof typeof ReportListReportToStatus];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ReportListReportToStatus = {\n DRAFT: 'DRAFT',\n PUBLISHED: 'PUBLISHED',\n} as const;\n\nexport interface ReportListReportTo {\n id: number;\n dateFrom: string;\n dateTo: string;\n headline: string;\n summary?: string;\n image?: ImageTo;\n language: string;\n status: ReportListReportToStatus;\n}\n\nexport interface ReportListTo {\n first?: string;\n last?: string;\n reports: ReportListReportTo[];\n}\n\nexport interface ReportPublicListTo {\n id: number;\n dateFrom: string;\n dateTo: string;\n headline: string;\n summary?: string;\n image?: ImageTo;\n language: string;\n}\n\nexport type ReportPatchToStatus = typeof ReportPatchToStatus[keyof typeof ReportPatchToStatus];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ReportPatchToStatus = {\n DRAFT: 'DRAFT',\n PUBLISHED: 'PUBLISHED',\n} as const;\n\nexport interface ReportPatchTo {\n status?: ReportPatchToStatus;\n}\n\nexport interface ReportE2EPatchTo {\n dateFrom?: string;\n dateTo?: string;\n}\n\nexport interface ReportCreateTo {\n dateFrom: string;\n dateTo: string;\n headline: string;\n summary?: string;\n imageId?: string;\n language: string;\n commodities: ReportCreateCommodityTo[];\n}\n\nexport type ReportToStatus = typeof ReportToStatus[keyof typeof ReportToStatus];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ReportToStatus = {\n DRAFT: 'DRAFT',\n PUBLISHED: 'PUBLISHED',\n} as const;\n\nexport type ReportCommodityToRecommendation = typeof ReportCommodityToRecommendation[keyof typeof ReportCommodityToRecommendation];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ReportCommodityToRecommendation = {\n BULLISH: 'BULLISH',\n BEARISH: 'BEARISH',\n NORMAL: 'NORMAL',\n} as const;\n\nexport interface ReportCommodityTo {\n commodity: CommodityTo;\n headline: string;\n summary: string;\n recommendation: ReportCommodityToRecommendation;\n recommendationText: string;\n}\n\nexport interface ImageTo {\n guid: string;\n url: string;\n}\n\nexport interface ReportTo {\n id: number;\n dateFrom: string;\n dateTo: string;\n headline: string;\n summary?: string;\n image?: ImageTo;\n language: string;\n status: ReportToStatus;\n commodities: ReportCommodityTo[];\n}\n\nexport interface CommodityTo {\n id: number;\n name: string;\n icon: string;\n}\n\nexport type ReportCreateCommodityToRecommendation = typeof ReportCreateCommodityToRecommendation[keyof typeof ReportCreateCommodityToRecommendation];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ReportCreateCommodityToRecommendation = {\n BULLISH: 'BULLISH',\n BEARISH: 'BEARISH',\n NORMAL: 'NORMAL',\n} as const;\n\nexport interface ReportCreateCommodityTo {\n commodityId: number;\n headline: string;\n summary: string;\n recommendation: ReportCreateCommodityToRecommendation;\n recommendationText: string;\n}\n\nexport interface ReportUpdateTo {\n dateFrom: string;\n dateTo: string;\n headline: string;\n summary?: string;\n imageId?: string;\n language: string;\n commodities: ReportCreateCommodityTo[];\n}\n\n\n\n\ntype SecondParameter any> = Parameters[1];\n\n\n /**\n * @summary Report detail\n */\nexport const getReport = (\n id: number,\n options?: SecondParameter,) => {\n return newsInstance(\n {url: `/can-news/api/report/${id}`, method: 'GET'\n },\n options);\n }\n \n/**\n * @summary Update report attributes [news:report:manage]\n */\nexport const putReport = (\n id: number,\n reportUpdateTo: ReportUpdateTo,\n options?: SecondParameter,) => {\n return newsInstance(\n {url: `/can-news/api/report/${id}`, method: 'PUT',\n headers: {'Content-Type': 'application/json', },\n data: reportUpdateTo\n },\n options);\n }\n \n/**\n * @summary Delete report [news:report:manage]\n */\nexport const deleteReport = (\n id: number,\n options?: SecondParameter,) => {\n return newsInstance(\n {url: `/can-news/api/report/${id}`, method: 'DELETE'\n },\n options);\n }\n \n/**\n * @summary Set report attributes [news:report:manage]\n */\nexport const patchReport = (\n id: number,\n reportPatchTo: ReportPatchTo,\n options?: SecondParameter,) => {\n return newsInstance(\n {url: `/can-news/api/report/${id}`, method: 'PATCH',\n headers: {'Content-Type': 'application/json', },\n data: reportPatchTo\n },\n options);\n }\n \n/**\n * @summary List of all reports for provided date range\n */\nexport const getReports = (\n params: GetReportsParams,\n options?: SecondParameter,) => {\n return newsInstance(\n {url: `/can-news/api/report`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * @summary Create a new report [news:report:manage]\n */\nexport const createReport = (\n reportCreateTo: ReportCreateTo,\n options?: SecondParameter,) => {\n return newsInstance(\n {url: `/can-news/api/report`, method: 'POST',\n headers: {'Content-Type': 'application/json', },\n data: reportCreateTo\n },\n options);\n }\n \n/**\n * @summary Upload image [news:report:manage]\n */\nexport const create = (\n createBody: CreateBody,\n ) => {\n return imageUpload(\n {url: `/can-news/api/image`, method: 'POST',\n headers: {'Content-Type': 'application/json', },\n data: createBody\n },\n );\n }\n \n/**\n * @summary Update report\n */\nexport const patchTestReport = (\n id: number,\n reportE2EPatchTo: ReportE2EPatchTo,\n options?: SecondParameter,) => {\n return newsInstance(\n {url: `/can-news/e2e/api/report/${id}`, method: 'PATCH',\n headers: {'Content-Type': 'application/json', },\n data: reportE2EPatchTo\n },\n options);\n }\n \n/**\n * @summary List of all available reports\n */\nexport const getPublicReports = (\n language: string,\n options?: SecondParameter,) => {\n return newsInstance(\n {url: `/can-news/public/api/report/${language}`, method: 'GET'\n },\n options);\n }\n \n/**\n * @summary List of all available languages\n */\nexport const getLanguages = (\n \n options?: SecondParameter,) => {\n return newsInstance(\n {url: `/can-news/api/language`, method: 'GET'\n },\n options);\n }\n \n/**\n * @summary Language detail\n */\nexport const getLanguage = (\n id: string,\n options?: SecondParameter,) => {\n return newsInstance(\n {url: `/can-news/api/language/${id}`, method: 'GET'\n },\n options);\n }\n \n/**\n * @summary Image detail\n */\nexport const getImage = (\n id: string,\n options?: SecondParameter,) => {\n return newsInstance(\n {url: `/can-news/api/image/${id}`, method: 'GET'\n },\n options);\n }\n \n/**\n * @summary List of all available commodities\n */\nexport const getCommodities = (\n \n options?: SecondParameter,) => {\n return newsInstance(\n {url: `/can-news/api/commodity`, method: 'GET'\n },\n options);\n }\n \n/**\n * @summary Commodity detail\n */\nexport const getCommodity = (\n id: number,\n options?: SecondParameter,) => {\n return newsInstance(\n {url: `/can-news/api/commodity/${id}`, method: 'GET'\n },\n options);\n }\n \nexport type GetReportResult = NonNullable>>\nexport type PutReportResult = NonNullable>>\nexport type DeleteReportResult = NonNullable>>\nexport type PatchReportResult = NonNullable>>\nexport type GetReportsResult = NonNullable>>\nexport type CreateReportResult = NonNullable>>\nexport type CreateResult = NonNullable>>\nexport type PatchTestReportResult = NonNullable>>\nexport type GetPublicReportsResult = NonNullable>>\nexport type GetLanguagesResult = NonNullable>>\nexport type GetLanguageResult = NonNullable>>\nexport type GetImageResult = NonNullable>>\nexport type GetCommoditiesResult = NonNullable>>\nexport type GetCommodityResult = NonNullable>>\n","import { queryOptions } from \"@tanstack/react-query\";\nimport sortBy from \"lodash-es/sortBy\";\n\nimport {\n create,\n createReport,\n getCommodities,\n getLanguages,\n getReport,\n putReport,\n ReportUpdateTo,\n} from \"@/generated/api/news\";\n\nconst commoditiesQuery = () => {\n return queryOptions({\n queryKey: [\"commodities\"],\n queryFn: ({ signal }) => getCommodities({ signal }),\n });\n};\n\nconst languagesQuery = () => {\n return queryOptions({\n queryKey: [\"languages\"],\n queryFn: ({ signal }) => getLanguages({ signal }),\n select: (data) => sortBy(data, (language) => language.localName),\n });\n};\n\nconst reportQuery = (id: string) => {\n return queryOptions({\n queryKey: [\"report\", id],\n queryFn: ({ signal }) => getReport(parseInt(id), { signal }),\n });\n};\n\nconst uploadImage = async (image: File | Blob) => {\n const formData = new FormData();\n formData.append(\"file\", image);\n // @ts-expect-error types from swagger are actually wrong\n return await create(formData);\n};\n\nconst reportCreateMutation = () => {\n return {\n mutationFn: (payload: ReportUpdateTo) => createReport(payload),\n };\n};\n\nconst reportUpdateMutation = () => {\n return {\n mutationFn: ({ id, ...payload }: ReportUpdateTo & { id: number }) =>\n putReport(id, payload),\n };\n};\n\nexport {\n commoditiesQuery,\n languagesQuery,\n reportCreateMutation,\n reportQuery,\n reportUpdateMutation,\n uploadImage,\n};\n","const EditorErrorMessage = ({ message }: { message: string }) => {\n return (\n \n {message}\n \n );\n};\n\nexport { EditorErrorMessage };\n","import { Trans } from \"@lingui/react/macro\";\nimport { Editor } from \"@tiptap/react\";\n\nconst MenuBar = ({ editor }: { editor: Editor }) => {\n const className = (active?: boolean) =>\n // eslint-disable-next-line lingui/no-unlocalized-strings\n `bg-white border border-can-silver-cloud px-2 rounded ${\n active\n ? // eslint-disable-next-line lingui/no-unlocalized-strings\n \"bg-linear-to-r from-can-tranquil-azure to-can-mystic-aqua border-white\"\n : \"\"\n }`;\n\n if (!editor) {\n return null;\n }\n\n return (\n
\n editor.chain().focus().toggleBold().run()}\n className={className(editor.isActive(\"bold\"))}\n >\n {/* eslint-disable-next-line lingui/no-unlocalized-strings */}\n B\n \n editor.chain().focus().toggleItalic().run()}\n className={className(editor.isActive(\"italic\"))}\n >\n {/* eslint-disable-next-line lingui/no-unlocalized-strings */}\n I\n \n editor.chain().focus().unsetAllMarks().run()}\n >\n Zrušit formátování\n \n editor.chain().focus().toggleHeading({ level: 1 }).run()}\n className={className(editor.isActive(\"heading\", { level: 1 }))}\n >\n Nadpis 1\n \n editor.chain().focus().toggleHeading({ level: 2 }).run()}\n className={className(editor.isActive(\"heading\", { level: 2 }))}\n >\n Nadpis 2\n \n editor.chain().focus().toggleHeading({ level: 3 }).run()}\n className={className(editor.isActive(\"heading\", { level: 3 }))}\n >\n Nadpis 3\n \n editor.chain().focus().toggleHeading({ level: 4 }).run()}\n className={className(editor.isActive(\"heading\", { level: 4 }))}\n >\n Nadpis 4\n \n editor.chain().focus().toggleHeading({ level: 5 }).run()}\n className={className(editor.isActive(\"heading\", { level: 5 }))}\n >\n Nadpis 5\n \n editor.chain().focus().toggleHeading({ level: 6 }).run()}\n className={className(editor.isActive(\"heading\", { level: 6 }))}\n >\n Nadpis 6\n \n editor.chain().focus().toggleBulletList().run()}\n className={className(editor.isActive(\"bulletList\"))}\n >\n Seznam\n \n editor.chain().focus().toggleOrderedList().run()}\n className={className(editor.isActive(\"orderedList\"))}\n >\n Číslovaný seznam\n \n
\n );\n};\n\nexport { MenuBar };\n","import { EditorProps } from \"@tiptap/pm/view\";\nimport { DateTime } from \"luxon\";\nimport rehypeParse from \"rehype-parse\";\nimport rehypeRemark from \"rehype-remark\";\nimport remarkStringify from \"remark-stringify\";\nimport invariant from \"tiny-invariant\";\nimport { unified } from \"unified\";\nimport { z } from \"zod\";\n\nimport { getHTML } from \"@/common/utils\";\nimport {\n CommodityTo,\n ReportCommodityToRecommendation,\n ReportTo,\n} from \"@/generated/api/news\";\n\nimport { uploadImage } from \"./editor.api\";\n\ntype FormValues = {\n headline: string;\n dateFrom: string;\n dateTo: string;\n summary: string;\n language: string;\n commodities: {\n commodityId: number;\n headline: string;\n summary: string;\n recommendation: string;\n recommendationText: string;\n }[];\n // used for edit mode\n imagePreview?: {\n guid: string;\n url: string;\n };\n};\n\ntype FormValuesWithImage = FormValues & { image?: File };\n\nconst commoditySchema = z.object({\n commodityId: z.number().int(),\n headline: z.string(),\n summary: z.string(),\n recommendationText: z.string(),\n recommendation: z.enum(\n Object.keys(ReportCommodityToRecommendation) as [\n keyof typeof ReportCommodityToRecommendation,\n ],\n ),\n});\n\nconst reportFormSchema = z.object({\n dateFrom: z.string().regex(/\\d{4}-\\d{2}-\\d{2}/),\n dateTo: z.string().regex(/\\d{4}-\\d{2}-\\d{2}/),\n headline: z.string(),\n summary: z.string().optional(),\n image: z.instanceof(File).optional(),\n commodities: z.array(commoditySchema).min(1),\n language: z.string(),\n});\n\nconst reportPayloadSchema = reportFormSchema.omit({ image: true }).extend({\n imageId: z.string().optional(),\n});\n\ntype ReportPayload = z.infer;\n\nconst getReportPayload = async (data: FormValuesWithImage) => {\n const { image, ...rest } = data;\n const payload = structuredClone(rest) as ReportPayload;\n\n if (image && image.name.length > 0) {\n const uploaded = await uploadImage(image);\n payload.imageId = uploaded.guid;\n }\n\n const safePayload = reportPayloadSchema.parse(payload);\n\n for (const commodity of safePayload.commodities) {\n commodity.summary = await getMarkdownPayload(commodity.summary);\n commodity.recommendationText = await getMarkdownPayload(\n commodity.recommendationText,\n );\n }\n\n return safePayload;\n};\n\nconst getMarkdownPayload = async (input: string) => {\n const html = getHTML(input);\n const htmlWithImages = await getHTMLWithImages(html);\n const markdown = getMarkdown(htmlWithImages);\n\n return markdown;\n};\n\nconst getMarkdown = (html: Document): string => {\n const markdown = unified()\n .use(rehypeParse)\n .use(rehypeRemark)\n .use(remarkStringify)\n .processSync(html.body.innerHTML);\n\n return String(markdown);\n};\n\nconst getHTMLWithImages = async (doc: Document) => {\n const images = doc.body.querySelectorAll(\"img\");\n\n for (const image of images) {\n if (!image.src.startsWith(\"blob:\")) {\n // do no process images coming from the internet\n continue;\n }\n const blob = await (await fetch(image.src)).blob();\n const uploaded = await uploadImage(blob);\n image.src = uploaded.url;\n }\n\n return doc;\n};\n\n// https://www.codemzy.com/blog/tiptap-drag-drop-image\nconst handleImageDrop: EditorProps[\"handleDrop\"] = (\n view,\n event,\n _slice,\n moved,\n) => {\n if (\n !moved &&\n event.dataTransfer &&\n event.dataTransfer.files &&\n event.dataTransfer.files[0]\n ) {\n const file = event.dataTransfer.files[0];\n if (file.type.startsWith(\"image/\")) {\n const img = document.createElement(\"img\");\n img.src = window.URL.createObjectURL(file);\n const { schema } = view.state;\n const coordinates = view.posAtCoords({\n left: event.clientX,\n top: event.clientY,\n });\n const node = schema.nodes.image.create({ src: img.src });\n // eslint-disable-next-line lingui/no-unlocalized-strings\n invariant(coordinates, \"coordinates are not defined\");\n const transaction = view.state.tr.insert(coordinates.pos, node);\n\n return view.dispatch(transaction);\n }\n return true;\n }\n return false;\n};\n\nconst getInitialValues = (\n from: ReportTo | undefined,\n commodities: CommodityTo[],\n): FormValues => {\n const values: FormValues = {\n dateFrom: from?.dateFrom ?? DateTime.now().toISODate(),\n dateTo: from?.dateTo ?? DateTime.now().plus({ days: 7 }).toISODate(),\n language: from?.language ?? \"\",\n headline: from?.headline ?? \"\",\n summary: from?.summary ?? \"\",\n commodities: [],\n imagePreview: from?.image,\n };\n\n commodities.forEach((commodity) => {\n const reportCommodity = from?.commodities.find(\n (c) => c.commodity.id === commodity.id,\n );\n values.commodities.push({\n recommendation: reportCommodity?.recommendation ?? \"\",\n recommendationText: reportCommodity?.recommendationText ?? \"\",\n summary: reportCommodity?.summary ?? \"\",\n headline: reportCommodity?.headline ?? \"\",\n commodityId: commodity.id,\n });\n });\n\n return values;\n};\n\nexport { getInitialValues, getReportPayload, handleImageDrop };\nexport type { FormValues, FormValuesWithImage, ReportPayload };\n","import { ErrorMessage } from \"@hookform/error-message\";\nimport { Trans } from \"@lingui/react/macro\";\nimport Image from \"@tiptap/extension-image\";\nimport { EditorContent, useEditor } from \"@tiptap/react\";\nimport StarterKit from \"@tiptap/starter-kit\";\nimport { Markdown } from \"tiptap-markdown\";\n\nimport { useEditorForm } from \"./editor\";\nimport { EditorErrorMessage } from \"./editor.error-message\";\nimport { MenuBar } from \"./editor.menu-bar\";\nimport { handleImageDrop } from \"./editor.utils\";\n\nconst Commodity = ({\n commodity,\n index,\n}: {\n commodity: string;\n index: number;\n}) => {\n const form = useEditorForm();\n\n return (\n <>\n
\n \n \n \n \n \n
\n \n Shrnutí\n \n \n form.setValue(`commodities.${index}.summary`, value)\n }\n content={form.getValues(`commodities.${index}.summary`)}\n />\n
\n \n
\n \n Doporučení\n \n \n form.setValue(`commodities.${index}.recommendationText`, value)\n }\n content={form.getValues(`commodities.${index}.recommendationText`)}\n />\n
\n
\n
\n \n \n \n \n \n \n \n
\n \n );\n};\n\nconst Editor = ({\n content = \"\",\n onUpdate,\n}: {\n content?: string;\n onUpdate: (markdown: string) => void;\n}) => {\n const editor = useEditor({\n extensions,\n content: content,\n editorProps: {\n handleDrop: handleImageDrop,\n attributes: {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n class: \"h-[500px] can-auto-tailwindcss overflow-y-auto\",\n },\n },\n onUpdate: ({ editor }) => {\n onUpdate(editor.storage.markdown.getMarkdown());\n },\n });\n\n if (!editor) {\n return null;\n }\n\n return (\n <>\n \n \n \n );\n};\n\nconst extensions = [\n StarterKit.configure({\n bulletList: {\n keepMarks: true,\n keepAttributes: false,\n },\n orderedList: {\n keepMarks: true,\n keepAttributes: false,\n },\n }),\n Markdown,\n Image,\n];\n\nexport { Commodity };\n","import { ErrorMessage } from \"@hookform/error-message\";\nimport { msg, t } from \"@lingui/core/macro\";\nimport { useLingui } from \"@lingui/react\";\nimport { Trans } from \"@lingui/react/macro\";\nimport { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport React from \"react\";\nimport {\n FormProvider,\n SubmitHandler,\n useForm,\n useFormContext,\n} from \"react-hook-form\";\nimport { useNavigate, useParams } from \"react-router-dom\";\nimport invariant from \"tiny-invariant\";\n\nimport { Metadata } from \"@/common/components/metadata/metadata\";\nimport { Spacer } from \"@/common/components/spacer/spacer\";\nimport { Spinner } from \"@/common/components/spinner/spinner\";\nimport { logger } from \"@/common/services/logger\";\nimport { path as reportsPath } from \"@/routes/reports/reports\";\nimport { getAbsolutePath } from \"@/routes/routes.utils\";\n\nimport {\n commoditiesQuery,\n languagesQuery,\n reportCreateMutation,\n reportQuery,\n reportUpdateMutation,\n} from \"./editor.api\";\nimport { Commodity } from \"./editor.commodity\";\nimport { EditorErrorMessage } from \"./editor.error-message\";\nimport {\n FormValues,\n FormValuesWithImage,\n getInitialValues,\n getReportPayload,\n} from \"./editor.utils\";\n\nconst path = \"editor\";\n\nconst EditorProvider = () => {\n const { id } = useParams();\n const isUpdate = id !== undefined;\n const navigate = useNavigate();\n const commodities = useQuery(commoditiesQuery());\n const languages = useQuery(languagesQuery());\n const report = useQuery({\n ...reportQuery(id as string),\n enabled: isUpdate,\n });\n const queryClient = useQueryClient();\n const createMutation = useMutation({\n ...reportCreateMutation(),\n onSuccess: async (data) => {\n await navigate(`${getAbsolutePath(reportsPath)}/${data.id}`);\n },\n onError: (e) => {\n alert(e.message);\n },\n });\n const updateMutation = useMutation({\n ...reportUpdateMutation(),\n onSuccess: async (data) => {\n await queryClient.invalidateQueries();\n await navigate(`${getAbsolutePath(reportsPath)}/${data.id}`);\n },\n onError: (e) => {\n alert(e.message);\n },\n });\n\n const failed =\n languages.status === \"error\" ||\n commodities.status === \"error\" ||\n report.status === \"error\";\n const loading =\n languages.status === \"pending\" ||\n commodities.status === \"pending\" ||\n (isUpdate && report.status === \"pending\");\n\n if (failed) {\n return (\n

\n Nedaří se stáhnout údaje o zemích nebo komoditách.\n

\n );\n }\n\n if (loading) {\n return ;\n }\n\n const handleSubmit: SubmitHandler = async (values, event) => {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n invariant(event, \"Form submit event needs to be passed\");\n const formValues = new FormData(event.target as HTMLFormElement);\n const cloned = structuredClone(values) as FormValuesWithImage;\n const image = formValues.get(\"image\") as File | undefined;\n\n cloned.image = image;\n cloned.commodities = cloned.commodities.filter(\n (commodity) => commodity.headline.length > 0,\n );\n try {\n const data = await getReportPayload(cloned);\n data.imageId ??= values.imagePreview?.guid;\n if (isUpdate) {\n updateMutation.mutate({ ...data, id: parseInt(id) });\n } else {\n createMutation.mutate(data);\n }\n } catch (e) {\n logger.error(e);\n alert(t`Nahrání reportu selhalo. Zkontrolujte velikost obrázku.`);\n }\n };\n\n const initialValues = getInitialValues(report.data, commodities.data);\n\n return (\n \n \n \n );\n};\n\nconst EditorForm = ({\n children,\n initialValues,\n}: React.PropsWithChildren<{ initialValues: FormValues }>) => {\n const methods = useForm({ defaultValues: initialValues });\n\n return {children};\n};\n\nconst Editor = ({\n busy,\n onSubmit,\n}: {\n busy: boolean;\n onSubmit: (values: FormValues, e: React.BaseSyntheticEvent) => void;\n}) => {\n const form = useEditorForm();\n const commodities = useQuery(commoditiesQuery());\n const languages = useQuery(languagesQuery());\n const reportImageRef = React.useRef(null);\n const reportImagePreviewRef = React.useRef(null);\n const failed = languages.status === \"error\" || commodities.status === \"error\";\n const image = form.watch(\"imagePreview\");\n const { _ } = useLingui();\n\n const buildPreviewImage = (source: string) => {\n const img = document.createElement(\"img\");\n img.src = source;\n img.classList.add(\"max-w-40\", \"aspect-auto\");\n\n return img;\n };\n\n const clearNode = (node: HTMLElement) => {\n while (node.firstChild && node.lastChild) {\n node.removeChild(node.lastChild);\n }\n };\n\n React.useEffect(() => {\n if (!image) {\n return;\n }\n const preview = reportImagePreviewRef.current;\n invariant(preview);\n clearNode(preview);\n\n const img = buildPreviewImage(image.url);\n preview.appendChild(img);\n }, [image]);\n\n React.useEffect(() => {\n if (import.meta.env.DEV) {\n return;\n }\n const handler = (e: BeforeUnloadEvent) => {\n e.preventDefault();\n };\n window.addEventListener(\"beforeunload\", handler);\n return () => {\n window.removeEventListener(\"beforeunload\", handler);\n };\n }, []);\n\n const handleImageReset = () => {\n if (reportImageRef.current) {\n reportImageRef.current.value = \"\";\n form.setValue(\"imagePreview\", undefined);\n }\n\n if (\n reportImagePreviewRef.current &&\n reportImagePreviewRef.current.firstChild\n ) {\n reportImagePreviewRef.current.removeChild(\n reportImagePreviewRef.current.firstChild,\n );\n }\n };\n\n const handleImagePreview = () => {\n form.setValue(\"imagePreview\", undefined);\n const preview = reportImagePreviewRef.current;\n invariant(preview);\n invariant(reportImageRef.current);\n const files = reportImageRef.current.files;\n // eslint-disable-next-line lingui/no-unlocalized-strings\n invariant(files, \"There should be one file available\");\n\n if (files.length === 0) {\n return;\n }\n\n const img = buildPreviewImage(URL.createObjectURL(files[0]));\n\n clearNode(preview);\n\n preview.appendChild(img);\n };\n\n if (failed) {\n return Nedaří se stáhnout údaje o zemích nebo komoditách.;\n }\n\n if (commodities.status !== \"success\") {\n return (\n

\n Načítá se\n

\n );\n }\n\n const validateSubmit: SubmitHandler = (formValues, e) => {\n invariant(e);\n e.preventDefault();\n\n const atLeastOneCommodity = formValues.commodities.some(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n ({ commodityId, ...keys }, index) => {\n const commodityKeys = Object.keys(keys) as Array<\n Exclude\n >;\n return commodityKeys.every(\n (key) => formValues.commodities[index][key] !== \"\",\n );\n },\n );\n\n if (!atLeastOneCommodity) {\n form.setError(\"root.atLeastOneCommodity\", {\n type: \"value\",\n message: t`Vyplňte všechny hodnoty alespoň pro jednu komoditu`,\n });\n\n return;\n }\n\n onSubmit(formValues, e);\n };\n\n return (\n <>\n \n \n \n
\n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n \n
\n
\n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n \n \n {languages.status === \"success\" ? (\n <>\n {languages.data.map((language) => (\n \n ))}\n \n ) : null}\n \n \n
\n
\n
\n {commodities.status === \"success\"\n ? commodities.data.map((commodity, index) => (\n
\n \n \n {commodity.name}\n \n \n \n {\n \n }\n
\n ))\n : Array.from({ length: 3 }).map((_, i) => (\n \n  \n \n ))}\n
\n \n
\n
\n \n \n );\n};\n\nconst useEditorForm = () => {\n return useFormContext();\n};\n\nexport { EditorProvider, path, useEditorForm };\n","import { t } from \"@lingui/core/macro\";\nimport { queryOptions } from \"@tanstack/react-query\";\nimport { DateTime } from \"luxon\";\nimport { z } from \"zod\";\n\nimport { oneHour } from \"@/common/providers/query-provider\";\nimport {\n deleteReport,\n getReports,\n patchReport,\n ReportListReportTo,\n ReportPatchTo,\n} from \"@/generated/api/news\";\n\ntype Params = z.infer>;\n\nconst getReportsQueryParamsSchema = () =>\n z\n .object({\n enforcePlans: z.coerce\n .string()\n .nullish()\n .transform((v) => v ?? undefined),\n \"sort-order\": z.enum([\"ASC\", \"DESC\"]),\n \"date-from\": z\n .string()\n .regex(/\\d{4}-\\d{2}-\\d{2}/)\n .nullish()\n .transform((v) => v ?? undefined),\n \"date-to\": z\n .string()\n .regex(/\\d{4}-\\d{2}-\\d{2}/)\n .refine((date) => DateTime.now() > DateTime.fromISO(date), {\n message: t`Datum ukončení musí nastat před dnešním dnem.`,\n }),\n })\n .refine(\n (data) => {\n if (!data[\"date-from\"]) {\n return true;\n }\n return data[\"date-to\"] > data[\"date-from\"];\n },\n {\n message: t`Datum ukončení musí následovat po datu zahájení.`,\n },\n );\n\ntype ReportsQueryResult = Omit & {\n id: string;\n};\n\nconst reportsQuery = (params: Params) =>\n queryOptions({\n staleTime: oneHour,\n queryKey: [\"reports\", params],\n queryFn: async ({ signal }) => {\n const safeParams = getReportsQueryParamsSchema().parse(params);\n\n return await getReports(safeParams, { signal });\n },\n select: (data) =>\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n data.reports.map(({ id, language, ...rest }) => ({\n ...rest,\n id: id.toString(),\n })),\n });\n\nconst reportsDateRangeQuery = (params: Params) =>\n queryOptions({\n // because we do not care about the reports data itself\n // eslint-disable-next-line @tanstack/query/exhaustive-deps\n queryKey: [\"reports-date-range\"],\n queryFn: async ({ signal }) => {\n const safeParams = getReportsQueryParamsSchema().parse(params);\n\n return await getReports(safeParams, { signal });\n },\n staleTime: Infinity,\n select: (data) => ({\n oldest: data.first ? DateTime.fromISO(data.first) : undefined,\n newest: data.last ? DateTime.fromISO(data.last) : undefined,\n }),\n });\n\nconst deleteReportMutation = () => {\n return {\n mutationFn: (id: number) => deleteReport(id),\n };\n};\n\nconst changeReportStatusMutation = () => {\n return {\n mutationFn: ({ id, status }: { id: number } & ReportPatchTo) =>\n patchReport(id, { status }),\n };\n};\n\nexport {\n changeReportStatusMutation,\n deleteReportMutation,\n getReportsQueryParamsSchema,\n reportsDateRangeQuery,\n reportsQuery,\n};\nexport type { Params, ReportsQueryResult };\n","import React from \"react\";\nimport { useSearchParams } from \"react-router-dom\";\n\nimport {\n Filter,\n getURLParams,\n resetURLParams,\n} from \"@/common/components/quick-filters/quick-filters.utils\";\n\nconst useFilterClickHandler = (filters: Filter[], activeFilter?: Filter) => {\n const [, setSearchParams] = useSearchParams();\n\n return React.useCallback(\n (index: number) => {\n const filter = filters[index];\n const urlParams = getURLParams(filters[index]);\n const shouldReset = filter.label === activeFilter?.label;\n setSearchParams((cur) => {\n if (shouldReset) {\n resetURLParams(cur);\n } else {\n Object.entries(urlParams).forEach(([key, value]) =>\n cur.set(key, value),\n );\n }\n return cur;\n });\n },\n [activeFilter?.label, filters, setSearchParams],\n );\n};\n\nconst useEnforcePlans = () => {\n const [searchParams, setSearchParams] = useSearchParams();\n const enforcePlans = searchParams.get(\"enforcePlans\");\n\n const handlePlanPurchaseClick = () => {\n setSearchParams((c) => {\n c.set(\"enforcePlans\", \"true\");\n return c;\n });\n };\n\n const handleClosePlans = () => {\n setSearchParams((c) => {\n c.delete(\"enforcePlans\");\n return c;\n });\n };\n\n return { enforcePlans, handlePlanPurchaseClick, handleClosePlans };\n};\n\nexport { useEnforcePlans, useFilterClickHandler };\n","import SortAlt from \"@icons/sort-alt.svg?react\";\nimport { t } from \"@lingui/core/macro\";\nimport { useSearchParams } from \"react-router-dom\";\n\nimport { MergeSearchParamsLink } from \"@/common/components/search-params-link/search-params-link\";\nimport { GetReportsSortOrder } from \"@/generated/api/news\";\n\nconst params = {\n sortOrder: \"sort-order\",\n} as const;\n\nconst SortOrder = () => {\n const [searchParams] = useSearchParams();\n const sortOrder = searchParams.get(params.sortOrder);\n const nextSortOrder = sortOrder === \"ASC\" ? \"DESC\" : \"ASC\";\n\n return (\n \n {sortOrder === \"DESC\" ? t`Nejnovější` : t`Nejstarší`} \n \n );\n};\n\nconst initialSortOrder = {\n [params.sortOrder]: GetReportsSortOrder.DESC,\n};\n\nexport { initialSortOrder, SortOrder };\n","import { t } from \"@lingui/core/macro\";\nimport { Trans } from \"@lingui/react/macro\";\nimport { useMutation, useQueryClient } from \"@tanstack/react-query\";\nimport { Link } from \"react-router-dom\";\n\nimport { ReportToStatus } from \"@/generated/api/news\";\n\nimport { path as editorPath } from \"../admin/editor/editor\";\nimport {\n changeReportStatusMutation,\n deleteReportMutation,\n} from \"./reports.api\";\n\nconst Toolbar = ({ id, status }: { id: string; status: ReportToStatus }) => {\n const queryClient = useQueryClient();\n const changeReportStatus = useMutation({\n ...changeReportStatusMutation(),\n onSuccess: () => {\n void queryClient.invalidateQueries();\n },\n });\n const deleteReport = useMutation({\n ...deleteReportMutation(),\n onSuccess: () => {\n void queryClient.invalidateQueries();\n },\n onError: ({ message }) => {\n window.alert(t`Článek se nepodařilo smazat kvůli chybě: ${message}`);\n },\n });\n const isPending =\n changeReportStatus.status === \"pending\" ||\n deleteReport.status === \"pending\";\n\n const handleStatusChange = (id: string, status: ReportToStatus) => {\n const ok = window.prompt(\n t`Pokud chcete změnit status článku, napište ok a potvrďte.`,\n );\n\n if (ok !== \"ok\") {\n return;\n }\n\n changeReportStatus.mutate({ id: parseInt(id), status });\n };\n\n const handleDelete = (id: string) => {\n const ok = window.prompt(\n t`Pokud chcete článek opravdu smazat, napište ok a potvrďte.`,\n );\n\n if (ok !== \"ok\") {\n return;\n }\n\n deleteReport.mutate(parseInt(id));\n };\n\n const actionProps = {\n className: `rounded bg-linear-to-r from-can-tranquil-azure to-can-mystic-aqua px-2 py-1 text-sm text-white ${\n isPending ? \"cursor-progress\" : \"\"\n }`,\n disabled: isPending,\n };\n\n return (\n \n );\n};\n\nexport { Toolbar };\n","import CrossSvg from \"@icons/cross.svg?react\";\nimport { msg } from \"@lingui/core/macro\";\nimport { useLingui } from \"@lingui/react\";\nimport { Trans } from \"@lingui/react/macro\";\nimport { useQuery } from \"@tanstack/react-query\";\nimport React from \"react\";\nimport {\n createSearchParams,\n Link,\n Navigate,\n useLocation,\n useParams,\n useSearchParams,\n} from \"react-router-dom\";\nimport invariant from \"tiny-invariant\";\n\nimport { useHasPermission } from \"@/common/acl/guard/guard\";\nimport { primary } from \"@/common/components/button/button\";\nimport { Failed } from \"@/common/components/info/info\";\nimport { Metadata } from \"@/common/components/metadata/metadata\";\nimport { PageTitle } from \"@/common/components/page-title/page-title\";\nimport { PreviewCard } from \"@/common/components/preview-card/preview-card\";\nimport {\n getFilterByDateRange,\n getFilterParams,\n getInitialDateFilter,\n QuickFilters,\n} from \"@/common/components/quick-filters/quick-filters\";\nimport {\n Filter,\n getAvailableFilters,\n getNextFilter,\n getURLParams,\n} from \"@/common/components/quick-filters/quick-filters.utils\";\nimport {\n MergeSearchParamsLink,\n SearchParamsLink,\n} from \"@/common/components/search-params-link/search-params-link\";\nimport { Spacer } from \"@/common/components/spacer/spacer\";\nimport { useScrollbarToggle } from \"@/common/hooks/use-scrollbar-toggle\";\nimport { path as editorPath } from \"@/routes/admin/editor/editor\";\n\nimport { TwoColumnLayout } from \"../layout/layout\";\nimport { LockedScreen } from \"../shared/components/locked-screen/locked-screen\";\nimport {\n getReportsQueryParamsSchema,\n reportsDateRangeQuery,\n reportsQuery,\n} from \"./reports.api\";\nimport { useEnforcePlans, useFilterClickHandler } from \"./reports.hooks\";\nimport { initialSortOrder, SortOrder } from \"./reports.sort-order\";\nimport { Toolbar } from \"./reports.toolbar\";\n\nconst path = \"reports\";\nconst getParams = () =>\n createSearchParams({\n ...initialSortOrder,\n ...getInitialDateFilter(),\n });\n\nconst Reports = () => {\n const { _ } = useLingui();\n const params = useParams();\n const isReportsManager = useHasPermission(\"news:report:manage\");\n const previousReportsCount = React.useRef(8); // prevents layout shift on filter change\n const searchParams = useReportSearchParams();\n const { enforcePlans, handleClosePlans } = useEnforcePlans();\n const isDetailOpen = params.reportId !== undefined && !enforcePlans;\n useScrollbarToggle(isDetailOpen);\n invariant(searchParams);\n const reports = useQuery({\n ...reportsQuery(searchParams),\n enabled: !!searchParams,\n });\n const reportsDateRange = useQuery({\n ...reportsDateRangeQuery(searchParams),\n enabled: !!searchParams,\n });\n const availableFilters = getAvailableFilters(reportsDateRange.data?.oldest);\n const filter = getFilterParams(searchParams);\n const { activeFilter, nextFilter } = getActiveAndNextFilter(\n availableFilters,\n filter,\n );\n\n const handleFilterClick = useFilterClickHandler(\n availableFilters,\n activeFilter,\n );\n\n const NextButtonJsx = nextFilter ? (\n \n Načíst zprávy pro {nextFilter.label.toLowerCase()}\n \n ) : null;\n\n let Jsx: React.ReactNode = null;\n\n if (searchParams.enforcePlans) {\n return (\n \n \n \n );\n }\n\n if (reports.status === \"pending\") {\n Jsx = Array.from({ length: previousReportsCount.current }).map((_, i) => (\n \n ));\n }\n\n if (reports.status === \"error\") {\n Jsx = (\n

\n \n

\n );\n }\n\n if (reports.status === \"success\") {\n previousReportsCount.current = reports.data.length;\n\n Jsx =\n reports.data.length > 0 ? (\n reports.data.map((report) => (\n \n \n h2]:text-can-forest-teal\"\n : \"\"\n } ${report.status === \"DRAFT\" ? \"opacity-50 grayscale\" : \"\"}`}\n />\n \n {isReportsManager ? (\n \n ) : null}\n \n ))\n ) : (\n

\n \n Bohužel vám nemáme co ukázat. Zkuste prosím jinou kombinaci filtrů.\n \n

\n );\n }\n\n return (\n \n \n {isReportsManager ? (\n <>\n \n + Napsat nový článek\n \n \n \n ) : null}\n
\n \n
\n \n {Jsx}\n \n {nextFilter ? (\n
\n {NextButtonJsx}\n
\n ) : null}\n \n ),\n header: (\n <>\n \n Market news\n \n \n \n ),\n }}\n right={isDetailOpen}\n />\n );\n};\n\nconst ReportsParams = ({ children }: React.PropsWithChildren) => {\n const searchParams = useReportSearchParams();\n const { pathname } = useLocation();\n\n if (!searchParams) {\n return ;\n }\n\n return <>{children};\n};\n\nconst useReportSearchParams = () => {\n const [searchParams] = useSearchParams();\n const parsedParams = getReportsQueryParamsSchema().safeParse(\n Object.fromEntries(searchParams),\n );\n\n if (parsedParams.success) {\n return parsedParams.data;\n }\n};\n\nconst getActiveAndNextFilter = (\n filters: Filter[],\n current: Omit,\n) => {\n const activeFilter = getFilterByDateRange(filters, current);\n const nextFilter = getNextFilter(filters, current);\n\n return { activeFilter, nextFilter };\n};\n\nexport { getParams, path, Reports, ReportsParams };\n","import ArrowDownRight from \"@icons/arrow-down-right.svg?react\";\nimport ArrowUpRight from \"@icons/arrow-up-right.svg?react\";\nimport {\n CategoryScale,\n Chart as ChartJS,\n Filler,\n LinearScale,\n LineController,\n LineElement,\n PointElement,\n ScriptableContext,\n Tooltip,\n TooltipModel,\n} from \"chart.js\";\nimport React from \"react\";\nimport { z } from \"zod\";\n\nimport {\n currencyFormatter,\n numberFormatter,\n} from \"@/common/services/formatter\";\n\nChartJS.register(CategoryScale);\nChartJS.register(LineController);\nChartJS.register(LinearScale);\nChartJS.register(PointElement);\nChartJS.register(LineElement);\nChartJS.register(Filler);\nChartJS.register(Tooltip);\n\ntype ChartData = {\n datetime: string;\n rate?: number;\n};\n\ntype ChartProps = {\n tooltip?: (label: string, datasetIndex: number) => string;\n currency: \"CZK\" | \"EUR\" | \"USD\";\n data: {\n current: ChartData[];\n next?: ChartData[];\n };\n};\n\nconst Chart = ({ currency, data, tooltip, ...props }: ChartProps) => {\n const chartRef = React.useRef(null);\n const tooltipRef = React.useRef(null);\n const lineRef = React.useRef(null);\n\n React.useEffect(() => {\n if (!chartRef.current) {\n return;\n }\n\n const existingChart = ChartJS.getChart(chartRef.current);\n if (existingChart) {\n existingChart.destroy();\n }\n\n const chart = new ChartJS(chartRef.current, {\n type: \"line\",\n data: {\n datasets: (Object.keys(data) as (keyof typeof data)[]).map((key) => ({\n borderColor: getBorderColor,\n parsing: {\n yAxisKey: \"rate\",\n xAxisKey: \"datetime\",\n },\n name: key,\n data: data[key],\n borderWidth: 3,\n borderDash: key === \"current\" ? [] : [8, 2],\n pointRadius: 0,\n fill: key === \"current\",\n backgroundColor: getBackgroundColor,\n })),\n },\n options: {\n responsive: true,\n maintainAspectRatio: false,\n interaction: {\n mode: \"nearest\",\n axis: \"x\",\n },\n animation: false,\n layout: {\n padding: 0,\n },\n scales: {\n x: {\n border: {\n color: \"#caccd1\",\n },\n grid: {\n color: \"transparent\",\n },\n ticks: {\n align: \"inner\",\n autoSkip: true,\n },\n },\n y: {\n border: {\n color: \"transparent\",\n dash: [2, 2],\n },\n grid: {\n tickLength: 10,\n tickColor: (context) =>\n context.index === 0 ? \"#caccd1\" : \"transparent\",\n },\n beginAtZero: false,\n ticks: {\n callback: (value) => {\n if (value === 0) {\n return \"\";\n }\n return numberFormatter({\n maximumFractionDigits: 2,\n minimumFractionDigits: 2,\n }).format(\n typeof value === \"number\" ? value : parseFloat(value),\n );\n },\n },\n },\n },\n plugins: {\n legend: {\n display: false,\n },\n tooltip: {\n usePointStyle: true,\n position: \"nearest\",\n enabled: false,\n intersect: false,\n displayColors: false,\n external: (args) =>\n externalTooltipHandler(\n args,\n tooltipRef.current!,\n lineRef.current!,\n ),\n callbacks: {\n title: () => \"\",\n label: ({ raw, datasetIndex }) => {\n const tooltipSchema = z.object({\n rate: z.number(),\n datetime: z.string(),\n });\n const safeRaw = tooltipSchema.parse(raw);\n\n const label = currencyFormatter(currency, {\n maximumFractionDigits: 2,\n }).format(safeRaw.rate);\n return tooltip ? tooltip(label, datasetIndex) : label;\n },\n afterBody: ([item]) => item.label,\n },\n },\n },\n },\n });\n\n return () => {\n chart.destroy();\n };\n }, [currency, data, tooltip]);\n\n return (\n
\n
\n \n \n
\n );\n};\n\nconst Container = ({ children }: React.PropsWithChildren) => (\n
{children}
\n);\n\nconst Price = ({ children, ...rest }: React.PropsWithChildren) => {\n return (\n

\n {children}\n

\n );\n};\n\nconst Title = ({ children }: React.PropsWithChildren) => {\n return (\n

\n {children}\n

\n );\n};\n\nconst Trend = ({\n currency,\n children,\n className,\n}: {\n currency: \"CZK\" | \"EUR\" | \"USD\";\n className?: string;\n children: number;\n}) => {\n let Icon: React.ComponentType | undefined;\n let color = \"text-can-midnight-steel\";\n z.number().parse(children);\n\n if (children > 0) {\n Icon = ArrowUpRight;\n color = \"text-can-forest-teal\";\n }\n\n if (children < 0) {\n Icon = ArrowDownRight;\n color = \"text-[#E55743]\";\n }\n\n return (\n \n {currencyFormatter(currency).format(children)}\n {Icon ? : null}\n \n );\n};\n\nconst Source = ({ children }: React.PropsWithChildren) => {\n return {children};\n};\n\nconst ChartContainer = ({ children }: React.PropsWithChildren) => {\n return (\n
\n {children}\n
\n );\n};\n\nChart.Container = Container;\nChart.Price = Price;\nChart.Trend = Trend;\nChart.Source = Source;\nChart.Title = Title;\nChart.ChartContainer = ChartContainer;\n\nconst getBackgroundColor = (context: ScriptableContext<\"line\">) => {\n const { ctx, chartArea } = context.chart;\n\n if (!chartArea) {\n return;\n }\n\n const gradient = ctx.createLinearGradient(\n chartArea.left,\n 0,\n chartArea.right,\n chartArea.top,\n );\n gradient.addColorStop(0, \"#60a6d366\");\n gradient.addColorStop(1, \"#168b6b66\");\n return gradient;\n};\n\nconst getBorderColor = (context: ScriptableContext<\"line\">) => {\n const { ctx, chartArea } = context.chart;\n\n if (!chartArea) {\n return;\n }\n\n const gradient = ctx.createLinearGradient(\n chartArea.left,\n 0,\n chartArea.right,\n 0,\n );\n gradient.addColorStop(0, \"#60a6d3\");\n gradient.addColorStop(1, \"#168b6b\");\n return gradient;\n};\n\nconst externalTooltipHandler = (\n context: { chart: ChartJS; tooltip: TooltipModel<\"line\"> },\n tooltipEl: HTMLDivElement,\n lineEl: HTMLDivElement,\n) => {\n const { chart, tooltip } = context;\n\n if (tooltip.opacity === 0) {\n tooltipEl.style.opacity = \"0\";\n lineEl.style.opacity = \"0\";\n return;\n }\n\n if (tooltip.body) {\n // copy paste from component\n // eslint-disable-next-line lingui/no-unlocalized-strings\n const currentLegend = `\n \n  \n  \n `;\n // copy paste from component\n const nextLegend =\n // eslint-disable-next-line lingui/no-unlocalized-strings\n \" \";\n\n tooltipEl.innerHTML = tooltip.body\n .map((body) => body.lines)\n .reduce((html, nextChunk, i) => {\n return (\n html +\n // eslint-disable-next-line lingui/no-unlocalized-strings\n \"
\" +\n (i === 0 ? currentLegend : nextLegend) +\n \"\" +\n nextChunk +\n \"\" +\n \"
\"\n );\n }, \"\" as string);\n\n tooltipEl.innerHTML += (tooltip.afterBody ?? []).reduce(\n (html: string, nextChunk: string) => {\n return html + nextChunk;\n },\n \"\",\n );\n }\n\n const { offsetLeft: positionX, offsetTop: positionY } = chart.canvas;\n const yBox = chart.boxes.find((box) => \"id\" in box && box.id === \"y\");\n\n lineEl.style.opacity = \"1\";\n lineEl.style.position = \"absolute\";\n lineEl.style.left = `${tooltip.dataPoints.at(0)!.element.x}px`;\n lineEl.style.top = `${yBox?.top}px`;\n lineEl.style.height = `${yBox?.height}px`;\n lineEl.style.width = \"1px\";\n lineEl.style.backgroundColor = \"#5DB4A1\";\n\n tooltipEl.style.opacity = \"1\";\n tooltipEl.style.left = positionX + tooltip.caretX + \"px\";\n tooltipEl.style.top = positionY + tooltip.caretY + \"px\";\n tooltipEl.style.padding = \"8px\";\n};\n\nexport { Chart };\n","/**\n * Generated by orval v7.4.1 🍺\n * Do not edit manually.\n * Clever Analytics Prices Public API\n * OpenAPI spec version: 1.0.0\n */\nimport { pricesInstance } from '../../api/client';\nexport type GetCommodityCurrentType = typeof GetCommodityCurrentType[keyof typeof GetCommodityCurrentType];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetCommodityCurrentType = {\n BID: 'BID',\n SETTLE: 'SETTLE',\n} as const;\n\nexport type GetCommodityCurrentCurrency = typeof GetCommodityCurrentCurrency[keyof typeof GetCommodityCurrentCurrency];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetCommodityCurrentCurrency = {\n CZK: 'CZK',\n EUR: 'EUR',\n USD: 'USD',\n} as const;\n\nexport type GetCommodityCurrentParams = {\ncurrency: GetCommodityCurrentCurrency;\ntype: GetCommodityCurrentType;\n'date-from'?: string;\n'date-to'?: string;\n};\n\nexport type GetCommodityRatesType = typeof GetCommodityRatesType[keyof typeof GetCommodityRatesType];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetCommodityRatesType = {\n BID: 'BID',\n SETTLE: 'SETTLE',\n} as const;\n\nexport type GetCommodityRatesCurrency = typeof GetCommodityRatesCurrency[keyof typeof GetCommodityRatesCurrency];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetCommodityRatesCurrency = {\n CZK: 'CZK',\n EUR: 'EUR',\n USD: 'USD',\n} as const;\n\nexport type GetCommodityRatesPeriod = typeof GetCommodityRatesPeriod[keyof typeof GetCommodityRatesPeriod];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetCommodityRatesPeriod = {\n CURRENT: 'CURRENT',\n NEXT: 'NEXT',\n} as const;\n\nexport type GetCommodityRatesParams = {\nperiod: GetCommodityRatesPeriod;\ncurrency: GetCommodityRatesCurrency;\ntype: GetCommodityRatesType;\n'date-from'?: string;\n'date-to'?: string;\n};\n\nexport type GetRateParams = {\n'date-from'?: string;\n'date-to'?: string;\n};\n\nexport type GetPublicLastCurrency = typeof GetPublicLastCurrency[keyof typeof GetPublicLastCurrency];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetPublicLastCurrency = {\n CZK: 'CZK',\n EUR: 'EUR',\n USD: 'USD',\n} as const;\n\nexport type GetPublicLastParams = {\ncurrency: GetPublicLastCurrency;\n};\n\nexport type CommodityCurrentToPeriod = typeof CommodityCurrentToPeriod[keyof typeof CommodityCurrentToPeriod];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CommodityCurrentToPeriod = {\n CURRENT: 'CURRENT',\n NEXT: 'NEXT',\n} as const;\n\nexport type CommodityCurrentToQuarter = typeof CommodityCurrentToQuarter[keyof typeof CommodityCurrentToQuarter];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CommodityCurrentToQuarter = {\n Q1: 'Q1',\n Q2: 'Q2',\n Q3: 'Q3',\n Q4: 'Q4',\n} as const;\n\nexport type CommodityCurrentToMonth = typeof CommodityCurrentToMonth[keyof typeof CommodityCurrentToMonth];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CommodityCurrentToMonth = {\n JANUARY: 'JANUARY',\n FEBRUARY: 'FEBRUARY',\n MARCH: 'MARCH',\n APRIL: 'APRIL',\n MAY: 'MAY',\n JUNE: 'JUNE',\n JULY: 'JULY',\n AUGUST: 'AUGUST',\n SEPTEMBER: 'SEPTEMBER',\n OCTOBER: 'OCTOBER',\n NOVEMBER: 'NOVEMBER',\n DECEMBER: 'DECEMBER',\n} as const;\n\nexport interface CommodityCurrentTo {\n year: number;\n month: CommodityCurrentToMonth;\n quarter: CommodityCurrentToQuarter;\n rate: number;\n period?: CommodityCurrentToPeriod;\n diff?: number;\n}\n\nexport type CommodityRatesToType = typeof CommodityRatesToType[keyof typeof CommodityRatesToType];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CommodityRatesToType = {\n BID: 'BID',\n SETTLE: 'SETTLE',\n} as const;\n\nexport type CommodityRatesToCurrency = typeof CommodityRatesToCurrency[keyof typeof CommodityRatesToCurrency];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CommodityRatesToCurrency = {\n CZK: 'CZK',\n EUR: 'EUR',\n USD: 'USD',\n} as const;\n\nexport type CommodityRatesToPeriod = typeof CommodityRatesToPeriod[keyof typeof CommodityRatesToPeriod];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CommodityRatesToPeriod = {\n CURRENT: 'CURRENT',\n NEXT: 'NEXT',\n} as const;\n\nexport type CommodityRatesToCommodity = typeof CommodityRatesToCommodity[keyof typeof CommodityRatesToCommodity];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CommodityRatesToCommodity = {\n WHEAT: 'WHEAT',\n RAPESEED: 'RAPESEED',\n CRUDE_OIL: 'CRUDE_OIL',\n} as const;\n\nexport interface CommodityRateTo {\n datetime: string;\n rate?: number;\n}\n\nexport interface CommodityRatesTo {\n commodity: CommodityRatesToCommodity;\n period: CommodityRatesToPeriod;\n currency: CommodityRatesToCurrency;\n rates: CommodityRateTo[];\n type: CommodityRatesToType;\n diff?: number;\n}\n\nexport type CurrencyRatesToService = typeof CurrencyRatesToService[keyof typeof CurrencyRatesToService];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CurrencyRatesToService = {\n ECB: 'ECB',\n CNB: 'CNB',\n} as const;\n\nexport type CurrencyRatesToCurrency2 = typeof CurrencyRatesToCurrency2[keyof typeof CurrencyRatesToCurrency2];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CurrencyRatesToCurrency2 = {\n CZK: 'CZK',\n EUR: 'EUR',\n USD: 'USD',\n} as const;\n\nexport type CurrencyRatesToCurrency1 = typeof CurrencyRatesToCurrency1[keyof typeof CurrencyRatesToCurrency1];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CurrencyRatesToCurrency1 = {\n CZK: 'CZK',\n EUR: 'EUR',\n USD: 'USD',\n} as const;\n\nexport interface CurrencyRateTo {\n date: string;\n rate: number;\n}\n\nexport interface CurrencyRatesTo {\n currency1: CurrencyRatesToCurrency1;\n currency2: CurrencyRatesToCurrency2;\n rates: CurrencyRateTo[];\n service: CurrencyRatesToService;\n}\n\nexport type CommodityCurrentLastToPeriod = typeof CommodityCurrentLastToPeriod[keyof typeof CommodityCurrentLastToPeriod];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CommodityCurrentLastToPeriod = {\n CURRENT: 'CURRENT',\n NEXT: 'NEXT',\n} as const;\n\nexport type CommodityCurrentLastToQuarter = typeof CommodityCurrentLastToQuarter[keyof typeof CommodityCurrentLastToQuarter];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CommodityCurrentLastToQuarter = {\n Q1: 'Q1',\n Q2: 'Q2',\n Q3: 'Q3',\n Q4: 'Q4',\n} as const;\n\nexport type CommodityCurrentLastToMonth = typeof CommodityCurrentLastToMonth[keyof typeof CommodityCurrentLastToMonth];\n\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CommodityCurrentLastToMonth = {\n JANUARY: 'JANUARY',\n FEBRUARY: 'FEBRUARY',\n MARCH: 'MARCH',\n APRIL: 'APRIL',\n MAY: 'MAY',\n JUNE: 'JUNE',\n JULY: 'JULY',\n AUGUST: 'AUGUST',\n SEPTEMBER: 'SEPTEMBER',\n OCTOBER: 'OCTOBER',\n NOVEMBER: 'NOVEMBER',\n DECEMBER: 'DECEMBER',\n} as const;\n\nexport interface CommodityCurrentLastTo {\n year: number;\n month: CommodityCurrentLastToMonth;\n quarter: CommodityCurrentLastToQuarter;\n rate: number;\n period?: CommodityCurrentLastToPeriod;\n}\n\n\n\n\ntype SecondParameter any> = Parameters[1];\n\n\n /**\n * @summary Last price for a commodity\n */\nexport const getPublicLast = (\n id: 'WHEAT' | 'RAPESEED' | 'CRUDE_OIL',\n params: GetPublicLastParams,\n options?: SecondParameter,) => {\n return pricesInstance(\n {url: `/can-prices/public/api/commodity/last/${id}`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * @summary Get historic currency prices\n */\nexport const getRate = (\n currency1: 'CZK' | 'EUR' | 'USD',\n currency2: 'CZK' | 'EUR' | 'USD',\n params?: GetRateParams,\n options?: SecondParameter,) => {\n return pricesInstance(\n {url: `/can-prices/api/currency/rate/${currency1}/${currency2}`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * @summary Get historic commodity prices\n */\nexport const getCommodityRates = (\n id: 'WHEAT' | 'RAPESEED' | 'CRUDE_OIL',\n params: GetCommodityRatesParams,\n options?: SecondParameter,) => {\n return pricesInstance(\n {url: `/can-prices/api/commodity/rate/${id}`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * @deprecated\n * @summary Load historic prices from matif\n */\nexport const loadPrices = (\n \n options?: SecondParameter,) => {\n return pricesInstance(\n {url: `/can-prices/api/commodity/rate/load`, method: 'GET'\n },\n options);\n }\n \n/**\n * @summary Get current commodity prices\n */\nexport const getCommodityCurrent = (\n id: 'WHEAT' | 'RAPESEED' | 'CRUDE_OIL',\n params: GetCommodityCurrentParams,\n options?: SecondParameter,) => {\n return pricesInstance(\n {url: `/can-prices/api/commodity/current/${id}`, method: 'GET',\n params\n },\n options);\n }\n \nexport type GetPublicLastResult = NonNullable>>\nexport type GetRateResult = NonNullable>>\nexport type GetCommodityRatesResult = NonNullable>>\nexport type LoadPricesResult = NonNullable>>\nexport type GetCommodityCurrentResult = NonNullable>>\n","import Oil from \"@icons/oil.svg?react\";\nimport Rapeseed from \"@icons/rapeseed.svg?react\";\nimport Wheat from \"@icons/wheat.svg?react\";\nimport { t } from \"@lingui/core/macro\";\nimport { Trans } from \"@lingui/react/macro\";\nimport { DateTime } from \"luxon\";\nimport { createSearchParams } from \"react-router-dom\";\nimport { z } from \"zod\";\n\nimport { currencies } from \"@/common/hooks/use-currency\";\nimport { CommodityRatesToCommodity } from \"@/generated/api/prices\";\n\ntype Mapping = {\n [key in CommodityRatesToCommodity]: {\n param: Lowercase;\n title: React.ReactNode;\n };\n};\nconst mapping: Mapping = {\n RAPESEED: {\n param: \"rapeseed\",\n title: (\n <>\n Řepka\n \n ),\n },\n WHEAT: {\n param: \"wheat\",\n title: (\n <>\n Pšenice\n \n ),\n },\n CRUDE_OIL: {\n param: \"crude_oil\",\n title: (\n <>\n Ropa\n \n ),\n },\n};\ntype Params = z.infer;\n\nconst ranges = [\n \"today\",\n \"last_week\",\n \"last_month\",\n \"last_year\",\n \"all\",\n] as const;\nconst rangesSchema = z.enum(ranges);\nconst stockExchangeParamsSchema = z.object({\n wheat: rangesSchema,\n rapeseed: rangesSchema,\n crude_oil: rangesSchema,\n currencyPair: rangesSchema,\n});\nconst defaultParams = {\n wheat: \"last_week\",\n rapeseed: \"last_week\",\n crude_oil: \"last_week\",\n currencyPair: \"last_week\",\n} satisfies Params;\nconst initialParams = createSearchParams(defaultParams);\nconst getFilters = () =>\n [\n {\n label: t`Dnes`,\n value: \"today\",\n dateFrom: DateTime.now().startOf(\"day\").toFormat(\"yyyy-MM-dd\"),\n dateTo: DateTime.now().startOf(\"day\").toFormat(\"yyyy-MM-dd\"),\n },\n {\n label: t`Týden`,\n value: \"last_week\",\n dateFrom: DateTime.now()\n .startOf(\"day\")\n .minus({ week: 1 })\n .toFormat(\"yyyy-MM-dd\"),\n dateTo: DateTime.now().startOf(\"day\").toFormat(\"yyyy-MM-dd\"),\n },\n {\n label: t`Měsíc`,\n value: \"last_month\",\n dateFrom: DateTime.now()\n .startOf(\"day\")\n .minus({ month: 1 })\n .toFormat(\"yyyy-MM-dd\"),\n dateTo: DateTime.now().startOf(\"day\").toFormat(\"yyyy-MM-dd\"),\n },\n {\n label: t`Rok`,\n value: \"last_year\",\n dateFrom: DateTime.now()\n .startOf(\"day\")\n .minus({ year: 1 })\n .toFormat(\"yyyy-MM-dd\"),\n dateTo: DateTime.now().startOf(\"day\").toFormat(\"yyyy-MM-dd\"),\n },\n {\n label: t`Vše`,\n value: \"all\",\n dateFrom: \"\",\n dateTo: \"\",\n },\n ] as const satisfies Filter[];\n\ntype Filter = {\n label: string;\n value: Range;\n dateFrom: string;\n dateTo: string;\n};\ntype Range = (typeof ranges)[number];\n\nexport {\n currencies,\n getFilters,\n initialParams,\n mapping,\n stockExchangeParamsSchema,\n};\nexport type { Filter };\nexport type { Range };\n","import { queryOptions } from \"@tanstack/react-query\";\nimport { DateTime } from \"luxon\";\nimport invariant from \"tiny-invariant\";\n\nimport { fifteenMinutes } from \"@/common/providers/query-provider\";\nimport { currencyFormatter } from \"@/common/services/formatter\";\nimport {\n CommodityRatesToCommodity,\n CurrencyRatesToCurrency1,\n getCommodityCurrent,\n getCommodityRates,\n GetCommodityRatesPeriod,\n getRate,\n} from \"@/generated/api/prices\";\n\nimport { getFilters, Range } from \"./stock-exchange.utils\";\n\nconst currencyPairQuery = ({\n currency1,\n currency2,\n range,\n}: {\n currency1: CurrencyRatesToCurrency1;\n currency2: CurrencyRatesToCurrency1;\n range: Range;\n}) => {\n const options = getQueryOptions(range);\n return queryOptions({\n queryKey: [options, currency1, currency2],\n queryFn: async ({ signal }) => {\n return await getRate(currency1, currency2, options, { signal });\n },\n select: (data) => {\n const last = data.rates.at(-1);\n const current = last\n ? `${currencyFormatter(currency2).format(\n last.rate,\n )}/${currencyFormatter(currency1).format(1)}`\n : \"\";\n\n const chartData = getChartData({\n data: {\n ...data,\n rates: data.rates.map(({ rate, date }) => ({ rate, datetime: date })),\n },\n range,\n });\n\n return {\n ...chartData,\n trend: getTrend(data.rates),\n current,\n title: `${currency2} / ${currency1}`,\n };\n },\n });\n};\n\nconst commodityOutlookQuery = ({\n commodity,\n currency,\n range,\n dateRange,\n}: {\n commodity: Extract;\n currency: CurrencyRatesToCurrency1;\n range: Range;\n dateRange: {\n from?: DateTime;\n to?: DateTime;\n };\n}) => {\n const type = range === \"today\" ? \"BID\" : \"SETTLE\";\n\n return queryOptions({\n queryKey: [commodity, currency, type, dateRange.from, dateRange.to],\n queryFn: async ({ signal }) => {\n return await getCommodityCurrent(\n commodity,\n {\n currency,\n type,\n \"date-from\": dateRange.from?.toISODate() ?? \"\",\n \"date-to\": dateRange.to?.toISODate() ?? \"\",\n },\n {\n signal,\n },\n );\n },\n select: (data) => {\n return data.map((d) => {\n return {\n ...d,\n trend: d.diff ?? \"n/a\",\n };\n });\n },\n });\n};\n\ntype CommodityOutlookQueryResult = ReturnType<\n Exclude[\"select\"], undefined>\n>;\n\nconst commodityQuery = ({\n commodity,\n currency,\n range,\n period,\n}: {\n commodity: CommodityRatesToCommodity;\n currency: CurrencyRatesToCurrency1;\n period: GetCommodityRatesPeriod;\n range: Range;\n}) => {\n const options = getQueryOptions(range);\n const type = range === \"today\" ? \"BID\" : \"SETTLE\";\n\n return queryOptions({\n staleTime: type === \"BID\" ? fifteenMinutes : Infinity,\n queryKey: [options, commodity, range, currency, period, type],\n queryFn: async ({ signal }) => {\n return await getCommodityRates(\n commodity,\n {\n currency,\n period,\n ...options,\n type,\n },\n { signal },\n );\n },\n select: (data) => {\n const last = data.rates.at(-1);\n const current = last?.rate\n ? currencyFormatter(currency).format(last.rate)\n : \"\";\n const chartData = getChartData({ data, range });\n\n return {\n ...chartData,\n current,\n trend: data.diff,\n };\n },\n });\n};\n\nconst getQueryOptions = (range: Range) => {\n const filter = getFilters().find((filter) => filter.value === range);\n // eslint-disable-next-line lingui/no-unlocalized-strings\n invariant(filter, `Filter not found for ${range}`);\n\n return {\n \"date-from\": filter.dateFrom,\n \"date-to\": filter.dateTo,\n };\n};\n\nconst getTrend = (rates: { rate: number }[]) => {\n const first = rates.at(0);\n const last = rates.at(-1);\n const trend = first && last ? last.rate - first.rate : 0;\n return trend;\n};\n\nconst getFormattedDate = (date: string, range: Range) => {\n return DateTime.fromISO(date).toLocaleString(\n range === \"today\" ? DateTime.TIME_SIMPLE : DateTime.DATE_SHORT,\n );\n};\n\nconst getChartData = ({\n data,\n range,\n}: {\n data: { rates: { datetime: string; rate?: number }[] };\n range: Range;\n}) => {\n const result = {\n ...data,\n rates: data.rates.map((rate) => {\n return {\n ...rate,\n datetime: getFormattedDate(rate.datetime, range),\n };\n }),\n };\n\n return result;\n};\n\nexport { commodityOutlookQuery, commodityQuery, currencyPairQuery };\nexport type { CommodityOutlookQueryResult };\n","import React from \"react\";\nimport { useSearchParams } from \"react-router-dom\";\n\nimport { CommodityRatesToCommodity } from \"@/generated/api/prices\";\n\nimport { Filter, getFilters } from \"./stock-exchange.utils\";\n\ntype Chart = Lowercase | \"currencyPair\";\n\nconst useFilterClickHandler = (availableFilters: Array) => {\n const [, setSearchParams] = useSearchParams();\n\n return React.useCallback(\n (chart: Chart, index: number) => {\n const filter = availableFilters[index];\n setSearchParams((cur) => {\n cur.set(chart, filter.value);\n\n return cur;\n });\n },\n [availableFilters, setSearchParams],\n );\n};\n\nconst useActiveFilter = (chart: Chart) => {\n const filters = getFilters();\n const [searchParams] = useSearchParams();\n const value = searchParams.get(chart);\n\n return filters.find((f) => f.value === value) ?? filters[0];\n};\n\nconst useFilters = ({\n commodityId,\n}: {\n commodityId: CommodityRatesToCommodity;\n}) => {\n const handleFilterClick = useFilterClickHandler(getFilters());\n const commodityIdParam = commodityId.toLowerCase() as Lowercase<\n typeof commodityId\n >;\n const activeFilter = useActiveFilter(commodityIdParam);\n\n return {\n onClick: (i: number) => handleFilterClick(commodityIdParam, i),\n activeFilter,\n filters: getFilters(),\n };\n};\n\nexport { useActiveFilter, useFilterClickHandler, useFilters };\n","import { useAuth0 } from \"@auth0/auth0-react\";\nimport { useQuery, useSuspenseQueries } from \"@tanstack/react-query\";\nimport React from \"react\";\nimport invariant from \"tiny-invariant\";\n\nimport { QuickFilters } from \"@/common/components/quick-filters/quick-filters\";\nimport { getUser } from \"@/common/services/user\";\nimport {\n CommodityRatesToCommodity,\n CurrencyRatesToCurrency1,\n GetCommodityRatesPeriod,\n} from \"@/generated/api/prices\";\n\nimport { commodityQuery, currencyPairQuery } from \"./stock-exchange.api\";\nimport {\n useActiveFilter,\n useFilterClickHandler,\n useFilters,\n} from \"./stock-exchange.hooks\";\nimport { getFilters } from \"./stock-exchange.utils\";\n\ntype CommoditySettledProvider = {\n data: ReturnType<\n Exclude[\"select\"], undefined>\n >[];\n status: \"success\" | \"empty\";\n};\n\ntype BusyProvider = {\n currency: undefined;\n data: TData;\n status: \"error\" | \"pending\";\n};\n\ntype CommodityProviderResult = CommoditySettledProvider & ProviderProps;\ntype CurrencyProviderResult = (\n | CurrencySettledProvider\n | BusyProvider\n) &\n ProviderProps;\n\ntype ProviderProps = {\n filters: React.ComponentProps;\n};\n\ntype CommodityProviderProps = {\n children: (result: CommodityProviderResult) => React.ReactNode;\n commodityId: CommodityRatesToCommodity;\n currency: CurrencyRatesToCurrency1;\n periods: readonly GetCommodityRatesPeriod[];\n};\n\ntype CurrencySettledProvider = {\n data: ReturnType<\n Exclude[\"select\"], undefined>\n >;\n currency: CurrencyRatesToCurrency1;\n status: \"success\" | \"empty\";\n};\n\nconst CurrencyProvider = ({\n children,\n}: {\n children: (result: CurrencyProviderResult) => React.ReactNode;\n}) => {\n const filtersWithoutToday = getFilters().filter(\n (filter) => filter.value !== \"today\",\n );\n const handleFilterClick = useFilterClickHandler(filtersWithoutToday);\n const activeFilter = useActiveFilter(\"currencyPair\");\n const currencyPair = useDetectCurrency();\n const query = useQuery(\n currencyPairQuery({\n ...currencyPair,\n range: activeFilter.value,\n }),\n );\n\n if (query.status === \"success\") {\n return children({\n data: query.data,\n status: query.data.rates.length < 2 ? \"empty\" : query.status,\n currency: currencyPair.currency2,\n filters: {\n onClick: (i: number) => handleFilterClick(\"currencyPair\", i),\n activeFilter,\n filters: filtersWithoutToday,\n },\n });\n }\n\n return children({\n currency: undefined,\n data: undefined,\n status: query.status,\n filters: {\n onClick: (i: number) => handleFilterClick(\"currencyPair\", i),\n activeFilter,\n filters: filtersWithoutToday,\n },\n });\n};\n\nconst CommodityProvider = ({\n currency,\n commodityId,\n periods,\n children,\n}: CommodityProviderProps) => {\n const filters = useFilters({ commodityId });\n const queries = useSuspenseQueries({\n queries: periods.map((period) =>\n commodityQuery({\n commodity: commodityId,\n currency,\n period,\n range: filters.activeFilter.value,\n }),\n ),\n });\n\n const getStatus = () => {\n if (queries.every((q) => q.data.rates.length < 2)) {\n return \"empty\";\n }\n\n return \"success\";\n };\n\n return children({\n data: queries.map((q) => q.data),\n status: getStatus(),\n currency,\n filters,\n } as CommodityProviderResult);\n};\n\nconst Filters = ({\n commodityId,\n children,\n}: {\n commodityId: CommodityRatesToCommodity;\n children: (filters: ReturnType) => React.ReactNode;\n}) => {\n const filters = useFilters({ commodityId });\n return children(filters);\n};\n\nconst useDetectCurrency = (): {\n currency1: CurrencyRatesToCurrency1;\n currency2: CurrencyRatesToCurrency1;\n} => {\n const { user: _user } = useAuth0();\n // eslint-disable-next-line lingui/no-unlocalized-strings\n invariant(_user, \"_user is not defined\");\n const user = getUser(_user);\n\n if (\n (user.user_metadata.can.companies ?? []).findIndex(\n (company) => company.countryCode === \"CZ\",\n ) > -1\n ) {\n return { currency1: \"EUR\", currency2: \"CZK\" };\n }\n\n return { currency1: \"USD\", currency2: \"EUR\" };\n};\n\nexport { CommodityProvider, CurrencyProvider, Filters };\n","import { Trans } from \"@lingui/react/macro\";\nimport { useSuspenseQuery } from \"@tanstack/react-query\";\nimport { DateTime, Settings } from \"luxon\";\n\nimport { Chart } from \"@/common/components/chart/chart\";\nimport { currencyFormatter } from \"@/common/services/formatter\";\nimport {\n CommodityRatesToCommodity,\n GetCommodityCurrentCurrency,\n} from \"@/generated/api/prices\";\n\nimport {\n commodityOutlookQuery,\n CommodityOutlookQueryResult,\n} from \"./stock-exchange.api\";\nimport { useActiveFilter } from \"./stock-exchange.hooks\";\n\ntype Props = {\n basePrice?: number;\n commodityId: Extract;\n};\n\nconst Outlook = ({ commodityId }: Props) => {\n const commodityIdParam = commodityId.toLowerCase() as Lowercase<\n typeof commodityId\n >;\n const activeFilter = useActiveFilter(commodityIdParam);\n const outlook = useSuspenseQuery(\n commodityOutlookQuery({\n commodity: commodityId,\n currency: GetCommodityCurrentCurrency.EUR,\n range: activeFilter.value,\n dateRange: {\n from:\n activeFilter.value === \"all\"\n ? undefined\n : DateTime.fromISO(activeFilter.dateFrom),\n to:\n activeFilter.value === \"all\"\n ? undefined\n : DateTime.fromISO(activeFilter.dateTo),\n },\n }),\n );\n\n return (\n
    \n {outlook.data\n .slice(0, 6)\n .map(getOutlookItem)\n .map(({ key, isHighlighted, notLast, date, quarter }) => {\n return (\n \n \n \n {date}\n \n {quarter.period === \"CURRENT\" ? : null}\n {quarter.period === \"NEXT\" ? : null}\n \n \n {currencyFormatter(GetCommodityCurrentCurrency.EUR).format(\n quarter.rate,\n )}\n /t\n \n {typeof quarter.trend === \"number\" ? (\n \n {quarter.trend}\n \n ) : (\n {quarter.trend}\n )}\n \n );\n })}\n
\n );\n};\n\nconst CurrentLegend = () => (\n \n \n \n \n);\n\nconst NextLegend = () => (\n \n);\n\nconst getOutlookItem = (\n quarter: CommodityOutlookQueryResult[number],\n i: number,\n arr: (typeof quarter)[],\n) => {\n const key = `${quarter.month}-${quarter.year}`;\n const isHighlighted = !!quarter.period;\n const notLast = i < arr.length - 1;\n const firstOfMonth = DateTime.fromFormat(\n `${quarter.month} 01 ${quarter.year}`,\n // eslint-disable-next-line lingui/no-unlocalized-strings\n \"LLLL dd yyyy\",\n {\n locale: \"en-US\", // the month names are stored in english on the backend, would fail with any other locale\n },\n );\n const month = firstOfMonth.toLocaleString(\n {\n month: \"long\",\n },\n {\n locale: Settings.defaultLocale,\n },\n );\n const year = firstOfMonth.toLocaleString({ year: \"numeric\" });\n const date = `${month} ${year} (${quarter.quarter})`;\n\n return { key, isHighlighted, notLast, date, quarter };\n};\n\nexport { Outlook };\n","import CoinUpArrow from \"@icons/coin-up-arrow.svg?react\";\nimport { msg, t } from \"@lingui/core/macro\";\nimport { useLingui } from \"@lingui/react\";\nimport { Trans } from \"@lingui/react/macro\";\nimport { QueryErrorResetBoundary } from \"@tanstack/react-query\";\nimport React, { Suspense } from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\nimport { Navigate, useLocation, useSearchParams } from \"react-router-dom\";\n\nimport { ClientError } from \"@/api/errors\";\nimport { Chart } from \"@/common/components/chart/chart\";\nimport { Failed, NoData, Pending } from \"@/common/components/info/info\";\nimport { Metadata } from \"@/common/components/metadata/metadata\";\nimport { PageTitle } from \"@/common/components/page-title/page-title\";\nimport { QuickFilters } from \"@/common/components/quick-filters/quick-filters\";\nimport { Spacer } from \"@/common/components/spacer/spacer\";\nimport { Spinner } from \"@/common/components/spinner/spinner\";\nimport { useSidebar } from \"@/common/providers/sidebar-provider/sidebar-provider\";\n\nimport { TwoColumnLayout } from \"../layout/layout\";\nimport {\n CommodityProvider,\n CurrencyProvider,\n Filters,\n} from \"./stock-exchange.chart\";\nimport { Outlook } from \"./stock-exchange.outlook\";\nimport {\n initialParams,\n mapping,\n stockExchangeParamsSchema,\n} from \"./stock-exchange.utils\";\n\nconst path = \"stock-exchange\";\nconst charts = [\n {\n commodity: \"WHEAT\",\n source: \"MATIF\",\n periods: [\"CURRENT\", \"NEXT\"],\n unit: \"/t\",\n currency: \"EUR\",\n },\n {\n commodity: \"RAPESEED\",\n source: \"MATIF\",\n periods: [\"CURRENT\", \"NEXT\"],\n unit: \"/t\",\n currency: \"EUR\",\n },\n {\n commodity: \"CRUDE_OIL\",\n source: \"BRENT\",\n periods: [\"CURRENT\"],\n unit: \"/barel\",\n currency: \"USD\",\n },\n] as const;\n\nconst StockExchange = () => {\n const { _ } = useLingui();\n const sidebar = useSidebar();\n\n return (\n \n Burza\n \n ),\n content: (\n
\n \n \n \n {charts.map((chart) => {\n return (\n \n {(filters) => (\n \n \n {mapping[chart.commodity].title}\n \n \n \n \n {({ reset }) => (\n (\n <>\n \n \n Zkusit znovu\n \n \n \n )}\n >\n }>\n \n {({ data, status }) => (\n <>\n {status === \"success\" ? (\n <>\n
\n \n {data[0].current}\n {chart.unit}\n \n {data[0].trend ? (\n \n {data[0].trend}\n \n ) : null}\n \n Zdroj:{\" \"}\n {chart.source}\n \n
\n {\n if (datasetIndex === 0) {\n return (\n label +\n // eslint-disable-next-line lingui/no-unlocalized-strings\n \"(\" +\n t`letošní sklizeň` +\n \")\"\n );\n }\n\n return (\n label +\n // eslint-disable-next-line lingui/no-unlocalized-strings\n \"(\" +\n t`budoucí sklizeň` +\n \")\"\n );\n }\n : undefined\n }\n currency={chart.currency}\n data={{\n current: data[0].rates,\n next: data[1]\n ? data[1].rates\n : undefined,\n }}\n />\n \n ) : (\n \n \n Burza ještě neotevřela\n \n \n )}\n {chart.commodity === \"WHEAT\" ||\n chart.commodity === \"RAPESEED\" ? (\n \n ) : null}\n \n )}\n \n
\n \n )}\n
\n
\n
\n )}\n
\n );\n })}\n\n \n {({ currency, data, filters, status }) => (\n \n \n {data?.title}\n \n \n \n {status === \"success\" ? (\n <>\n
\n {data.current}\n \n {data.trend}\n \n \n Zdroj:{\" \"}\n ECB\n \n
\n {data.rates.length > 0 ? (\n \n ) : (\n \n )}\n \n ) : status === \"pending\" ? (\n \n ) : status === \"empty\" ? (\n \n ) : (\n \n )}\n
\n
\n )}\n
\n
\n \n
\n ),\n }}\n >\n );\n};\n\nconst StockExchangeParams = ({ children }: React.PropsWithChildren) => {\n const searchParams = useStockExchangeParams();\n const { pathname } = useLocation();\n\n if (!searchParams) {\n return ;\n }\n\n return <>{children};\n};\n\nconst useStockExchangeParams = () => {\n const [searchParams] = useSearchParams();\n const parsedParams = stockExchangeParamsSchema.safeParse(\n Object.fromEntries(searchParams),\n );\n\n if (parsedParams.success) {\n return parsedParams.data;\n }\n};\n\nexport { path, StockExchange, StockExchangeParams, useStockExchangeParams };\n","import Cross from \"@icons/cross.svg?react\";\nimport Search from \"@icons/search.svg?url\";\nimport { t } from \"@lingui/core/macro\";\nimport { useSearchParams } from \"react-router-dom\";\n\nconst useSearchFieldParams = () => {\n const [searchParams, setSearchParams] = useSearchParams();\n const value = searchParams.get(\"search\") ?? \"\";\n const setValue = (search: string) => {\n setSearchParams((c) => {\n if (search.length > 0) {\n c.set(\"search\", search);\n } else {\n c.delete(\"search\");\n }\n return c;\n });\n };\n const clearValue = () => {\n setSearchParams((c) => {\n c.delete(\"search\");\n return c;\n });\n };\n\n return [value, setValue, clearValue] as const;\n};\n\nconst SearchField = () => {\n const [value, setValue, clearValue] = useSearchFieldParams();\n return (\n
\n setValue(e.target.value)}\n type=\"text\"\n className={`group-has-[[role=alert]]:border-can-russet mt-2 block w-full rounded-lg border p-4 font-bold ${value.length > 0 ? \"bg-none!\" : \"\"}`}\n style={{\n background: `url(${Search}) right 16px center no-repeat`,\n }}\n />\n {value.length > 0 ? (\n \n ) : null}\n
\n );\n};\n\nexport { SearchField, useSearchFieldParams };\n","import { useSyncExternalStore } from \"react\";\n\nconst getSnapshot = (query: string) => {\n return window.matchMedia(query).matches;\n};\n\nconst subscribe = (callback: () => void) => {\n window.addEventListener(\"resize\", callback);\n\n return () => {\n window.removeEventListener(\"resize\", callback);\n };\n};\n\nconst useMediaQuery = (query: string) => {\n const matches = useSyncExternalStore(subscribe, () => getSnapshot(query));\n\n return matches;\n};\n\nconst useIsMobile = () => {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n return useMediaQuery(\"(max-width: 639px)\");\n};\n\nexport { useIsMobile, useMediaQuery };\n","import { useMutation, useQueryClient } from \"@tanstack/react-query\";\n\nimport { graphqlClient } from \"@/api/graphql\";\nimport { graphql } from \"@/generated/digitalnisklady.cz\";\nimport { Currency } from \"@/generated/digitalnisklady.cz/graphql\";\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst addStorageDocument = graphql(`\n mutation AddStorage($storage: StorageInput!) {\n addStorage(storage: $storage) {\n id\n label\n }\n }\n`);\n\nconst useAddStorage = () => {\n const queryClient = useQueryClient();\n\n return useMutation({\n onSuccess: () => {\n void queryClient.invalidateQueries({\n queryKey: [\"user\"],\n });\n },\n mutationFn: async ({\n address,\n companyId,\n name,\n zip,\n }: {\n address: string;\n companyId: string;\n name: string;\n zip: string;\n }) =>\n await graphqlClient.request(addStorageDocument, {\n storage: {\n company: companyId,\n address,\n label: name,\n // TODO handle currency\n currency: Currency.Czk,\n zip,\n },\n }),\n });\n};\n\nexport { useAddStorage };\n","import { useMutation, useQueryClient } from \"@tanstack/react-query\";\n\nimport { graphqlClient } from \"@/api/graphql\";\nimport { graphql } from \"@/generated/digitalnisklady.cz\";\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst archiveOfferDocument = graphql(`\n mutation ArchiveOffer($id: ID!) {\n archiveOffer(id: $id) {\n id\n }\n }\n`);\n\nconst useArchiveOffer = () => {\n const client = useQueryClient();\n return useMutation({\n onSuccess: () => {\n void client.invalidateQueries({\n queryKey: [\"user\"],\n });\n },\n mutationFn: (id: string) =>\n graphqlClient.request(archiveOfferDocument, {\n id,\n }),\n });\n};\n\nexport { useArchiveOffer };\n","import { useMutation, useQueryClient } from \"@tanstack/react-query\";\n\nimport { graphqlClient } from \"@/api/graphql\";\nimport { graphql } from \"@/generated/digitalnisklady.cz\";\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst archiveStorageDocument = graphql(`\n mutation ArchiveStorage($id: ID!) {\n archiveStorage(id: $id) {\n id\n }\n }\n`);\n\nconst useArchiveStorage = () => {\n const queryClient = useQueryClient();\n\n return useMutation({\n onSuccess: () => {\n void queryClient.invalidateQueries({\n queryKey: [\"user\"],\n });\n },\n mutationFn: ({ id }: { id: string }) =>\n graphqlClient.request(archiveStorageDocument, {\n id,\n }),\n });\n};\n\nexport { useArchiveStorage };\n","import { z } from \"zod\";\n\nconst entitySchema = z.object({\n id: z.string(),\n name: z.string(),\n});\n\nexport { entitySchema };\n","import { useMutation, useQueryClient } from \"@tanstack/react-query\";\n\nimport { graphqlClient } from \"@/api/graphql\";\nimport { graphql } from \"@/generated/digitalnisklady.cz\";\nimport { OfferInput } from \"@/generated/digitalnisklady.cz/graphql\";\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst editOfferDocument = graphql(`\n mutation EditOffer($id: ID!, $offer: OfferInput!) {\n editOffer(id: $id, offer: $offer) {\n id\n }\n }\n`);\n\nconst useEditOffer = () => {\n const client = useQueryClient();\n return useMutation({\n onSuccess: () => {\n void client.invalidateQueries({\n queryKey: [\"user\"],\n });\n },\n mutationFn: ({ offer, id }: { offer: OfferInput; id: string }) =>\n graphqlClient.request(editOfferDocument, {\n id,\n offer,\n }),\n });\n};\n\nexport { editOfferDocument, useEditOffer };\n","import { useMutation, useQueryClient } from \"@tanstack/react-query\";\nimport invariant from \"tiny-invariant\";\nimport { z } from \"zod\";\n\nimport { graphqlClient } from \"@/api/graphql\";\nimport { entitySchema } from \"@/common/schema/entity\";\nimport { graphql } from \"@/generated/digitalnisklady.cz\";\nimport { Currency } from \"@/generated/digitalnisklady.cz/graphql\";\n\nimport { editOfferDocument } from \"./edit-offer\";\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst editStorageDocument = graphql(`\n mutation EditStorage($id: ID!, $storage: StorageInput!) {\n editStorage(id: $id, storage: $storage) {\n id\n }\n }\n`);\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst addOfferDocument = graphql(`\n mutation AddOffer($offer: OfferInput!) {\n addOffer(offer: $offer) {\n id\n }\n }\n`);\n\ntype EditPayload = {\n name: string;\n companyId: string;\n address: string;\n zip: string;\n};\n\nconst useEditStorage = () => {\n const queryClient = useQueryClient();\n return useMutation({\n onSuccess: async (result) => {\n await queryClient.invalidateQueries({\n predicate: (query) =>\n query.queryKey[0] === \"user\" ||\n (query.queryKey[0] === \"storage\" &&\n query.queryKey[1] === result.editStorage?.id),\n });\n },\n mutationFn: async ({ id, storage }: { id: string; storage: EditPayload }) =>\n await graphqlClient.request(editStorageDocument, {\n id,\n storage: {\n address: storage.address,\n label: storage.name,\n company: storage.companyId,\n currency: Currency.Czk,\n zip: storage.zip,\n },\n }),\n });\n};\n\nconst useAddCrop = () => {\n return useMutation({\n mutationFn: async (payload: {\n storageId: string;\n storage: {\n zip: string;\n label: string;\n crops: {\n id: string;\n tons: number;\n };\n companyId: string;\n address: string;\n };\n harvestYear: number;\n }) => {\n const existingOffers = await cropsAlreadyInStorage({\n storageId: payload.storageId,\n });\n invariant(existingOffers);\n\n const existingOffer = existingOffers.find(\n (offer) =>\n offer.harvestYear === payload.harvestYear &&\n offer.crop.id === payload.storage.crops.id,\n )?.offer;\n\n await graphqlClient.request(editStorageDocument, {\n id: payload.storageId,\n storage: {\n address: payload.storage.address,\n company: payload.storage.companyId,\n label: payload.storage.label,\n crops: [\n ...new Set([\n payload.storage.crops.id,\n ...existingOffers.map((offer) => offer.crop.id),\n ]),\n ],\n currency: Currency.Czk,\n zip: payload.storage.zip,\n },\n });\n\n if (existingOffer) {\n await graphqlClient.request(editOfferDocument, {\n id: existingOffer.id,\n offer: {\n storage: payload.storageId,\n crop: payload.storage.crops.id,\n // this is prone to race condition errors\n amount: payload.storage.crops.tons + existingOffer.totalAmount,\n yearHarvested: payload.harvestYear,\n },\n });\n } else {\n await graphqlClient.request(addOfferDocument, {\n offer: {\n storage: payload.storageId,\n crop: payload.storage.crops.id,\n amount: payload.storage.crops.tons,\n yearHarvested: payload.harvestYear,\n },\n });\n }\n },\n });\n};\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst storageOffersDocument = graphql(`\n query StorageOffers($id: ID!, $archived: Boolean) {\n storage(id: $id) {\n offers(archived: $archived) {\n edges {\n node {\n totalAmount\n id\n crop {\n id\n name\n }\n yearHarvested\n }\n }\n }\n }\n }\n`);\n\nconst cropsAlreadyInStorageSchema = z.array(\n z.object({\n harvestYear: z.number(),\n crop: entitySchema,\n offer: z.object({ id: z.string(), totalAmount: z.number() }),\n }),\n);\n\nconst cropsAlreadyInStorage = async ({\n storageId,\n}: {\n storageId: string;\n}): Promise> => {\n const offers = await graphqlClient.request(storageOffersDocument, {\n id: storageId,\n archived: false,\n });\n\n const safeOffers = cropsAlreadyInStorageSchema.parse(\n offers.storage?.offers?.edges?.map((edge) => ({\n harvestYear: edge?.node?.yearHarvested,\n crop: edge?.node?.crop,\n offer: {\n totalAmount: edge?.node?.totalAmount,\n id: edge?.node?.id,\n },\n })),\n );\n\n return safeOffers;\n};\n\nexport { useAddCrop, useEditStorage };\n","import { queryOptions } from \"@tanstack/react-query\";\nimport { z } from \"zod\";\n\nimport { graphqlClient } from \"@/api/graphql\";\nimport { graphql } from \"@/generated/digitalnisklady.cz\";\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst companiesDocument = graphql(`\n query Companies {\n user {\n companies {\n edges {\n node {\n id\n name\n vatNumber\n }\n }\n }\n }\n }\n`);\n\ntype Companies = z.infer;\nconst companiesSchema = z.array(\n z.object({\n id: z.string(),\n name: z.string(),\n }),\n);\n\nconst companiesQuery = () =>\n queryOptions({\n queryKey: [\"companies\"],\n staleTime: Infinity,\n queryFn: () => graphqlClient.request(companiesDocument),\n select: (data) => {\n const result = data.user?.companies?.edges?.map((company) => ({\n id: company?.node?.id,\n name: company?.node?.name,\n }));\n\n return companiesSchema.parse(result);\n },\n });\n\nexport { companiesQuery };\nexport type { Companies };\n","import { queryOptions } from \"@tanstack/react-query\";\nimport { z } from \"zod\";\n\nimport { graphqlClient } from \"@/api/graphql\";\nimport { sortString } from \"@/common/utils/array\";\nimport { graphql } from \"@/generated/digitalnisklady.cz\";\nimport { TradeType } from \"@/generated/digitalnisklady.cz/graphql\";\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst cropsQueryDocument = graphql(`\n query Crops($tradeType: TradeType) {\n crops(tradeType: $tradeType) {\n edges {\n node {\n id\n name\n }\n }\n }\n }\n`);\n\nconst cropsSchema = z.array(\n z.object({\n id: z.string(),\n name: z.string(),\n }),\n);\n\nconst cropsQuery = () =>\n queryOptions({\n queryKey: [\"crops\"],\n queryFn: () =>\n graphqlClient.request(cropsQueryDocument, {\n tradeType: TradeType.FromStorage,\n }),\n staleTime: Infinity,\n select: (data) => {\n const result = data.crops?.edges?.map((edge) => edge?.node);\n const safeResult = cropsSchema.parse(result);\n\n safeResult.sort(sortString);\n\n return safeResult;\n },\n });\n\nexport { cropsQuery };\n","const isMatchingSearch = (\n storage: {\n mark: boolean;\n offers: Array<{\n crop: {\n mark: boolean;\n };\n }>;\n },\n search?: string,\n) => {\n if (!search) {\n return true;\n }\n const cropNameMatch = storage.offers.some((offer) => offer.crop.mark);\n const storageNameMatch = storage.mark;\n\n return cropNameMatch || storageNameMatch;\n};\n\nconst hasMatch = (a: string | undefined | null, search?: string) => {\n if (!(a && search)) {\n return false;\n }\n return a.toLowerCase().includes(search.toLowerCase());\n};\n\nexport { hasMatch, isMatchingSearch };\n","import { queryOptions } from \"@tanstack/react-query\";\n\nimport { graphqlClient } from \"@/api/graphql\";\nimport { graphql } from \"@/generated/digitalnisklady.cz\";\nimport { Currency } from \"@/generated/digitalnisklady.cz/graphql\";\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst storagesQueryDocument = graphql(`\n query User($currency: Currency!, $archived: Boolean) {\n user {\n companies {\n edges {\n node {\n id\n name\n storages(archived: $archived) {\n edges {\n node {\n archived\n id\n address\n label\n lastPrices {\n edges {\n node {\n crop {\n id\n name\n }\n date\n price(currency: $currency)\n }\n }\n }\n offers {\n edges {\n node {\n yearHarvested\n orders {\n edges {\n node {\n active\n amount\n }\n }\n }\n id\n amount\n totalAmount\n crop {\n id\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n`);\n\nconst userQuery = ({ currency }: { currency: \"CZK\" | \"EUR\" }) =>\n queryOptions({\n queryKey: [\"user\", currency],\n queryFn: () =>\n graphqlClient.request(storagesQueryDocument, {\n currency: currency as Currency,\n archived: false,\n }),\n });\n\nexport { userQuery };\n","import { queryOptions } from \"@tanstack/react-query\";\nimport sortBy from \"lodash-es/sortBy\";\nimport { z } from \"zod\";\n\nimport { hasMatch, isMatchingSearch } from \"@/common/utils/search\";\n\nimport { userQuery } from \"./get-user\";\n\ntype Storage = z.infer;\nconst storagesSchema = z.object({\n mark: z.boolean().default(false),\n id: z.string(),\n name: z.string(),\n address: z.string(),\n offers: z.array(\n z.object({\n id: z.string(),\n harvestYear: z.number(),\n amount: z.number(),\n orderAmount: z.number(),\n totalAmount: z.number(),\n crop: z.object({\n id: z.string(),\n name: z.string(),\n mark: z.boolean().default(false),\n }),\n lastPrice: z.number().or(z.undefined()),\n }),\n ),\n});\n\nconst storagesQuery = ({\n currency,\n search,\n}: {\n currency: \"CZK\" | \"EUR\";\n search?: string;\n}) =>\n queryOptions({\n ...userQuery({ currency }),\n queryKey: [\"storages\", currency],\n select: (data) => {\n const result = new Map<{ id: string; name: string }, Storage[]>();\n\n data.user?.companies?.edges?.forEach((_company) => {\n const company = _company?.node;\n\n if (!(company && company.name && company.id)) {\n return;\n }\n\n const key = { id: company.id, name: company.name };\n result.set(key, []);\n\n if (company.storages) {\n company.storages.edges = sortBy(\n company.storages?.edges,\n (e) => e?.node?.label,\n );\n }\n\n company.storages?.edges\n ?.filter((_storage) => !_storage?.node?.archived)\n .forEach((_storage) => {\n const storage = {\n mark: hasMatch(_storage?.node?.label, search),\n id: _storage?.node?.id,\n name: _storage?.node?.label,\n address: _storage?.node?.address,\n offers: _storage?.node?.offers?.edges?.map((node) => ({\n id: node?.node?.id,\n harvestYear: node?.node?.yearHarvested,\n crop: {\n ...node?.node?.crop,\n mark: hasMatch(node?.node?.crop?.name, search),\n },\n amount: node?.node?.amount,\n orderAmount:\n node?.node?.orders?.edges\n ?.filter((order) => order?.node?.active)\n .reduce(\n (acc, order) => acc + (order?.node?.amount ?? 0),\n 0,\n ) ?? 0,\n totalAmount: node?.node?.totalAmount,\n lastPrice: _storage.node?.lastPrices?.edges?.find(\n (price) => price?.node?.crop?.id === node?.node?.crop?.id,\n )?.node?.price,\n })),\n };\n\n const safeStorage = storagesSchema.parse(storage);\n\n safeStorage.offers = sortBy(safeStorage.offers, (a) => [\n a.crop.name,\n a.harvestYear,\n ]);\n if (isMatchingSearch(safeStorage, search)) {\n result.set(key, [...(result.get(key) ?? []), safeStorage]);\n }\n });\n });\n\n return result.size > 0 ? result : undefined;\n },\n });\n\nexport { storagesQuery };\nexport type { Storage };\n","const ProgressBar = ({ max, value }: { max: number; value: number }) => (\n \n);\n\nconst ThreeStepProgressBar = ({\n values: { orderAmount, totalAmount, freeAmount },\n}: React.PropsWithChildren<{\n values: {\n orderAmount: number;\n totalAmount: number;\n freeAmount: number;\n };\n}>) => {\n const contractAmount = totalAmount - orderAmount - freeAmount;\n\n return (\n
:first-child]:rounded-l-[4px] [&>:last-child]:rounded-r-[4px]\">\n {freeAmount > 0 ? (\n \n ) : null}\n {orderAmount > 0 ? (\n \n ) : null}\n {contractAmount > 0 ? (\n \n ) : null}\n
\n );\n};\n\nexport { ProgressBar, ThreeStepProgressBar };\n","import { Plural, Trans } from \"@lingui/react/macro\";\n\nimport { CropIcon } from \"@/common/components/crop-icon/crop-icon\";\nimport { currencyFormatter } from \"@/common/services/formatter\";\n\nimport { ThreeStepProgressBar } from \"../progress-bar/progress-bar\";\n\nconst numberFormatter = new Intl.NumberFormat(undefined);\n\nconst CommodityCard = ({ children }: React.PropsWithChildren) => {\n return (\n
\n {children}\n
\n );\n};\n\nconst Available = ({\n available,\n order,\n tons,\n}: {\n order: number;\n available: number;\n tons: number;\n}) => {\n const _available = numberFormatter.format(available);\n\n return (\n

\n \n K dispozici volných {_available} z{\" \"}\n \n .\n \n {order > 0 ? (\n \n {\" \"}\n \n Aktivní příkazy na{\" \"}\n \n .\n \n \n ) : null}\n

\n );\n};\n\nconst Stored = ({ tons = 0 }: { tons?: number }) => {\n return (\n

\n Skladem:{\" \"}\n \n

\n );\n};\n\nconst Title = ({\n crop,\n}: {\n crop: { harvestYear: number; name?: string; mark: boolean };\n}) => (\n

\n \n \n {crop.mark ? (\n {crop.name}\n ) : (\n {crop.name}\n )}\n \n {crop.harvestYear}\n

\n);\n\nconst Price = ({\n tons,\n pricePerTon,\n currency,\n}: {\n tons?: number;\n pricePerTon?: number;\n currency: \"EUR\" | \"CZK\";\n}) => (\n

\n Hodnota celkem (nyní):{\" \"}\n {pricePerTon !== undefined && tons !== undefined\n ? currencyFormatter(currency).format(pricePerTon * tons)\n : null}{\" \"}\n |{\" \"}\n {pricePerTon !== undefined\n ? `${currencyFormatter(currency).format(pricePerTon)}/t`\n : \"-\"}\n

\n);\n\nCommodityCard.Available = Available;\nCommodityCard.Price = Price;\nCommodityCard.Stored = Stored;\nCommodityCard.Title = Title;\nCommodityCard.ProgressBar = ThreeStepProgressBar;\n\nexport { CommodityCard };\n","import React from \"react\";\n\nimport { Spacer } from \"@/common/components/spacer/spacer\";\n\nconst FullscreenModalLayout = ({\n children,\n headerButton,\n}: React.PropsWithChildren<{ headerButton: React.ReactNode }>) => {\n return (\n \n {headerButton}\n {children}\n \n );\n};\n\nconst Title = ({ children }: React.PropsWithChildren) => (\n <>\n \n

{children}

\n \n \n);\n\nFullscreenModalLayout.Title = Title;\n\nexport { FullscreenModalLayout };\n","import { t } from \"@lingui/core/macro\";\nimport { z } from \"zod\";\n\nimport { logger } from \"@/common/services/logger\";\n\nconst graphqlErrorSchema = z.object({\n response: z.object({\n errors: z.array(\n z.object({\n extensions: z.object({\n validation: z.record(\n z.string(),\n z.array(\n z.object({\n message: z.string(),\n }),\n ),\n ),\n }),\n }),\n ),\n }),\n});\n\n// FIXME what sort of errors we can actually get from the graphql backend?\nconst graphql2ErrorSchema = z.object({\n response: z.object({\n errors: z.array(\n z.object({\n message: z.string(),\n }),\n ),\n }),\n});\n\nconst handleFormError = (e: Error): Errors => {\n const errors: { field: string; error: string[] }[] = [];\n const graphqlError = graphqlErrorSchema.safeParse(e);\n const graphql2Error = graphql2ErrorSchema.safeParse(e);\n\n if (graphqlError.success) {\n graphqlError.data.response.errors.forEach((error) => {\n const validation = error.extensions.validation;\n Object.keys(validation).forEach((key) => {\n errors.push({\n field: key,\n error: validation[key].map((x) => x.message),\n });\n });\n });\n\n return errors;\n }\n\n if (graphql2Error.success) {\n errors.push({\n field: \"root\",\n error: graphql2Error.data.response.errors.map((e) => e.message),\n });\n return errors;\n }\n\n logger.error(graphqlError.error);\n errors.push({\n field: \"root\",\n error: [t`Nastala neočekávaná chyba`],\n });\n\n return errors;\n};\n\ntype Errors = Array<{\n error: string[];\n field: string;\n}>;\n\nexport { handleFormError };\nexport type { Errors };\n","import { queryOptions } from \"@tanstack/react-query\";\nimport sortBy from \"lodash-es/sortBy\";\nimport { z } from \"zod\";\n\nimport { graphqlClient } from \"@/api/graphql\";\nimport { graphql } from \"@/generated/digitalnisklady.cz\";\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst storageQueryDocument = graphql(`\n query Storage($id: ID!) {\n storage(id: $id) {\n id\n label\n zip\n address\n offers {\n edges {\n node {\n yearHarvested\n id\n amount\n totalAmount\n orders {\n edges {\n node {\n amount\n active\n }\n }\n }\n crop {\n id\n name\n }\n }\n }\n }\n company {\n id\n name\n }\n }\n }\n`);\n\ntype Storage = z.infer;\nconst storageSchema = z.object({\n address: z.string(),\n postalCode: z.string(),\n name: z.string(),\n id: z.string(),\n company: z.object({\n id: z.string(),\n name: z.string(),\n }),\n offers: z.array(\n z.object({\n harvestYear: z.number(),\n id: z.string(),\n totalAmount: z.number(),\n orderAmount: z.number(),\n amount: z.number(),\n crop: z.object({\n id: z.string(),\n name: z.string(),\n }),\n }),\n ),\n});\n\nconst storageQuery = (id: string) =>\n queryOptions({\n queryKey: [\"storage\", id],\n queryFn: () =>\n graphqlClient.request(storageQueryDocument, {\n id,\n }),\n select: (data) => {\n const result = {\n name: data.storage?.label,\n postalCode: data.storage?.zip,\n id: data.storage?.id,\n company: data.storage?.company,\n address: data.storage?.address,\n offers: data.storage?.offers?.edges?.map((edge) => ({\n harvestYear: edge?.node?.yearHarvested,\n totalAmount: edge?.node?.totalAmount,\n amount: edge?.node?.amount,\n orderAmount: edge?.node?.orders?.edges\n ?.filter((order) => order?.node?.active)\n .reduce((sum, order) => sum + (order?.node?.amount ?? 0), 0),\n id: edge?.node?.id,\n crop: {\n id: edge?.node?.crop?.id,\n name: edge?.node?.crop?.name,\n },\n })),\n };\n\n const safeResult = storageSchema.parse(result);\n\n safeResult.offers = sortBy(safeResult.offers, (o) => [\n o.crop.name,\n o.harvestYear,\n ]);\n return safeResult;\n },\n });\n\nexport { storageQuery };\nexport type { Storage };\n","import angleSmallDownSvg from \"@icons/angle-small-down.svg?url\";\nimport { t } from \"@lingui/core/macro\";\nimport { Trans } from \"@lingui/react/macro\";\nimport React from \"react\";\nimport { FormProvider, type UseFormReturn } from \"react-hook-form\";\n\nimport { Button } from \"@/common/components/button/button\";\nimport { InputField } from \"@/common/components/form/input-field/input-field\";\n\nimport type { Companies } from \"../../api\";\nimport { PostalCodeField } from \"./postal-code-field\";\n\ntype Fields = {\n postalCode: string;\n name: string;\n address: string;\n companyId: string;\n};\n\nconst StorageForm = ({\n form,\n onSubmit,\n storage,\n children,\n buttons,\n}: React.PropsWithChildren<{\n form: UseFormReturn;\n onSubmit: (params: Fields) => void;\n storage: { companies: Companies };\n buttons: React.ReactNode;\n}>) => {\n const transformData = (data: Fields): Fields => {\n return {\n ...data,\n postalCode: data.postalCode.split(\" \")[0],\n };\n };\n\n return (\n \n onSubmit(transformData(data)))}\n className=\"flex grow flex-col gap-y-4\"\n >\n
\n \n name=\"name\"\n autoComplete=\"off\"\n label={Název skladu}\n options={{\n required: t`Vyplňte prosím název skladu`,\n }}\n />\n\n \n name=\"address\"\n autoComplete=\"off\"\n label={Adresa skladu}\n options={{\n required: t`Vyplňte prosím adresu skladu`,\n }}\n />\n\n
\n \n PSČ skladu} />\n \n \n
\n\n \n
\n {children}\n \n {buttons}\n
\n );\n};\n\nexport { StorageForm };\nexport type { Fields };\n","import Cross from \"@icons/cross.svg?react\";\nimport PlusSvg from \"@icons/plus.svg?react\";\nimport { Trans } from \"@lingui/react/macro\";\nimport { useQueryClient, useSuspenseQuery } from \"@tanstack/react-query\";\nimport { useForm } from \"react-hook-form\";\nimport { useNavigate, useParams } from \"react-router-dom\";\nimport invariant from \"tiny-invariant\";\n\nimport { Button } from \"@/common/components/button/button\";\nimport { Dialog, useDialogProvider } from \"@/common/components/dialog/dialog\";\nimport { PageTitle } from \"@/common/components/page-title/page-title\";\nimport { SearchParamsLink } from \"@/common/components/search-params-link/search-params-link\";\nimport { Spacer } from \"@/common/components/spacer/spacer\";\nimport { useCurrency } from \"@/common/hooks/use-currency\";\n\nimport { FullscreenModalLayout } from \"../layout/layout.fullscreen\";\nimport { handleFormError } from \"../shared/api/error-handler\";\nimport { storageQuery } from \"../shared/api/get-storage\";\nimport {\n companiesQuery,\n useAddStorage,\n useArchiveStorage,\n useEditStorage,\n} from \"./api\";\nimport { CommodityCard } from \"./components/commodity-card/commodity-card\";\nimport { Fields, StorageForm } from \"./components/storage-form/storage-form\";\n\nconst path = \"new\";\n\nconst ExistingStorage = () => {\n const queryClient = useQueryClient();\n const { id } = useParams();\n // eslint-disable-next-line lingui/no-unlocalized-strings\n invariant(id, \"Storage id should be defined\");\n const storage = useSuspenseQuery(storageQuery(id));\n const editStorage = useEditStorage();\n const companies = useSuspenseQuery(companiesQuery());\n const form = useForm({\n defaultValues: {\n name: storage.data.name,\n address: storage.data.address,\n companyId: storage.data.company.id,\n postalCode: storage.data.postalCode,\n },\n });\n const [, currency] = useCurrency();\n const navigate = useNavigate();\n const archiveStorage = useArchiveStorage();\n const { closeDialog: closeDeleteDialog, openDialog: openDeleteDialog } =\n useDialogProvider();\n\n const handleSubmitStorage = (data: Fields) => {\n editStorage.mutate(\n {\n id,\n storage: {\n address: data.address,\n name: data.name,\n companyId: data.companyId,\n zip: data.postalCode,\n },\n },\n {\n onSuccess: async () => {\n await queryClient.invalidateQueries();\n },\n },\n );\n };\n\n const handleDeleteStorage = () => {\n archiveStorage.mutate(\n { id },\n {\n onSettled: async () => {\n await queryClient.invalidateQueries();\n closeDeleteDialog();\n },\n onSuccess: async () => {\n await navigate(\"..\");\n },\n },\n );\n };\n\n const DeleteDialog = (\n \n \n Opravdu chcete smazat sklad {storage.data.name}?\n \n \n \n Ano\n \n \n Ne\n \n \n \n );\n\n return (\n \n \n \n }\n >\n \n {storage.data.name}\n \n \n openDeleteDialog(DeleteDialog)}\n type=\"button\"\n >\n Smazat sklad\n \n \n Uložit sklad\n \n \n }\n form={form}\n onSubmit={handleSubmitStorage}\n storage={{\n companies: companies.data,\n }}\n >\n

\n Komodity skladem\n

\n {storage.data.offers.map((offer) => (\n \n \n \n \n \n \n \n \n \n ))}\n \n \n Přidat komoditu\n \n \n \n );\n};\n\nconst NewStorage = () => {\n const queryClient = useQueryClient();\n const companies = useSuspenseQuery(companiesQuery());\n const initialValues: Fields = {\n name: \"\",\n address: \"\",\n companyId: companies.data.at(0)?.id ?? \"\",\n postalCode: \"\",\n };\n const addStorage = useAddStorage();\n const form = useForm({\n defaultValues: initialValues,\n });\n const navigate = useNavigate();\n\n const handleSubmitStorage = (data: Fields) => {\n addStorage.mutate(\n {\n name: data.name,\n address: data.address,\n companyId: data.companyId,\n zip: data.postalCode,\n },\n {\n onSuccess: async (data) => {\n await queryClient.invalidateQueries();\n await navigate(`../${data.addStorage?.id}`);\n },\n onError: (e: Error) => {\n const errors = handleFormError(e);\n\n errors.forEach((error) => {\n if (error.field.includes(\"label\")) {\n form.setError(\"name\", { message: error.error.join(\"\\n\") });\n }\n\n if (error.field.includes(\"address\")) {\n form.setError(\"address\", { message: error.error.join(\"\\n\") });\n }\n });\n },\n },\n );\n };\n\n return (\n \n \n \n }\n >\n \n \n Přidat sklad\n \n \n \n Uložit a přidat sklad\n \n }\n form={form}\n onSubmit={handleSubmitStorage}\n storage={{\n companies: companies.data ?? [],\n }}\n >\n \n );\n};\n\nexport { ExistingStorage, NewStorage, path };\n","import Cross from \"@icons/cross.svg?react\";\nimport GarageOpenSvg from \"@icons/garage-open.svg?react\";\nimport Plus from \"@icons/plus.svg?url\";\nimport { msg } from \"@lingui/core/macro\";\nimport { useLingui } from \"@lingui/react\";\nimport { Plural, Trans } from \"@lingui/react/macro\";\nimport { useQuery } from \"@tanstack/react-query\";\nimport { Outlet } from \"react-router-dom\";\n\nimport { Button } from \"@/common/components/button/button\";\nimport { Failed, Info } from \"@/common/components/info/info\";\nimport { Metadata } from \"@/common/components/metadata/metadata\";\nimport { SearchParamsLink } from \"@/common/components/search-params-link/search-params-link\";\nimport { Spinner } from \"@/common/components/spinner/spinner\";\nimport { useCurrency } from \"@/common/hooks/use-currency\";\nimport { currencyFormatter } from \"@/common/services/formatter\";\nimport { sum } from \"@/common/utils/array\";\n\nimport { FullscreenModalLayout } from \"../layout/layout.fullscreen\";\nimport { storagesQuery } from \"./api\";\nimport { CommodityCard } from \"./components/commodity-card/commodity-card\";\nimport { ThreeStepProgressBar } from \"./components/progress-bar/progress-bar\";\nimport { path as newStoragePath } from \"./storages.storage\";\n\nconst path = \"management\";\n\nconst Management = () => {\n const { _ } = useLingui();\n const [, currency] = useCurrency();\n const storages = useQuery(storagesQuery({ currency }));\n let jsx: React.ReactNode = null;\n\n if (storages.status === \"error\") {\n jsx = ;\n }\n\n if (storages.status === \"pending\") {\n jsx = (\n
\n \n
\n );\n }\n\n if (storages.status === \"success\") {\n if (!storages.data) {\n jsx = (\n \n \n Nenašli jsme žádnou společnost, ve které můžete spravovat sklady.\n \n \n );\n } else {\n jsx = (\n <>\n {[...storages.data].map(([company, storages]) => (\n
\n

\n {company.name}\n

\n
    \n {storages.map((storage) => {\n const amountSum = storage.offers\n .map((offer) => offer.amount)\n .reduce(sum, 0);\n const totalAmountSum = storage.offers\n .map((offer) => offer.totalAmount)\n .reduce(sum, 0);\n const totalOrderSum = storage.offers\n .map((offer) => offer.orderAmount)\n .reduce(sum, 0);\n const lastPriceSum = storage.offers\n .map((offer) => (offer.lastPrice ?? 0) * offer.totalAmount)\n .reduce(sum, 0);\n\n return (\n \n \n

    \n \n {storage.name}\n

    \n

    \n Skladem:{\" \"}\n {\" \"}\n | Hodnota (nyní):{\" \"}\n {currencyFormatter(currency).format(lastPriceSum)}\n

    \n \n \n \n \n );\n })}\n
\n
\n ))}\n \n \n \n Přidat sklad\n \n \n \n \n );\n }\n }\n\n return (\n <>\n \n \n \n }\n >\n \n \n Spravovat sklady\n \n {jsx}\n \n \n \n );\n};\n\nexport { Management, path };\n","import AngleSmallDownSvg from \"@icons/angle-small-down.svg?react\";\nimport BoxesSvg from \"@icons/boxes.svg?react\";\nimport GarageOpenSvg from \"@icons/garage-open.svg?react\";\nimport Gears from \"@icons/gears.svg?url\";\nimport PencilSvg from \"@icons/pencil.svg?react\";\nimport PlusSvg from \"@icons/plus.svg?react\";\nimport { msg } from \"@lingui/core/macro\";\nimport { useLingui } from \"@lingui/react\";\nimport { Plural, Trans } from \"@lingui/react/macro\";\nimport { useQuery } from \"@tanstack/react-query\";\nimport React from \"react\";\nimport { Link, Navigate, useLocation, useParams } from \"react-router-dom\";\n\nimport { Failed, Info } from \"@/common/components/info/info\";\nimport { Metadata } from \"@/common/components/metadata/metadata\";\nimport {\n SearchField,\n useSearchFieldParams,\n} from \"@/common/components/search-field/search-field\";\nimport { SearchParamsLink } from \"@/common/components/search-params-link/search-params-link\";\nimport { Spinner } from \"@/common/components/spinner/spinner\";\nimport { Currency, useCurrency } from \"@/common/hooks/use-currency\";\nimport { useIsMobile } from \"@/common/hooks/use-media-query\";\nimport { useScrollbarToggle } from \"@/common/hooks/use-scrollbar-toggle\";\nimport { currencyFormatter } from \"@/common/services/formatter\";\nimport { sum } from \"@/common/utils/array\";\n\nimport { TwoColumnLayout } from \"../layout/layout\";\nimport { initialParams, useCurrencyParams } from \"../shared/currency.params\";\nimport { Storage as TStorage, storagesQuery } from \"./api\";\nimport { CommodityCard } from \"./components/commodity-card/commodity-card\";\nimport { path as managementPath } from \"./storages.management\";\n\nconst path = \"storages\";\n\nconst Storages = () => {\n const { _ } = useLingui();\n const { offerId } = useParams<\"offerId\">();\n const [CurrencySwitch, currency] = useCurrency();\n const [search] = useSearchFieldParams();\n const storages = useQuery(storagesQuery({ currency, search }));\n const location = useLocation();\n const isRightSideOpen =\n location.pathname.includes(\"management\") ||\n location.pathname.includes(\"offers\");\n useScrollbarToggle(isRightSideOpen);\n\n let jsx: React.ReactNode = ;\n\n if (storages.status === \"pending\") {\n jsx = (\n
\n \n
\n );\n } else if (storages.status === \"error\") {\n jsx = ;\n } else if (storages.status === \"success\") {\n if (!storages.data) {\n jsx = (\n <>\n \n Ve vaší společnosti zatím neexistují žádné sklady.\n \n \n \n );\n } else {\n jsx = (\n <>\n \n {[...storages.data].map(([company, storages]) => (\n
\n
\n

\n {company.name}\n

\n \n Nový sklad\n \n \n
\n
    \n {storages.map((storage) => (\n \n
      \n {storage.offers.map((offer) => (\n \n \n \n \n \n \n \n \n \n \n \n ))}\n
    \n o.amount).reduce(sum, 0)}\n price={storage.offers\n .filter((o) => o.lastPrice)\n .map((o) => o.amount * o.lastPrice!)\n .reduce(sum, 0)}\n />\n \n
    \n ))}\n
\n
\n ))}\n \n \n );\n }\n }\n\n return (\n \n

\n Sklady\n

\n {CurrencySwitch}\n \n ),\n content: (\n <>\n \n {jsx}\n \n ),\n }}\n right={isRightSideOpen}\n />\n );\n};\n\nconst Actions = ({ storageId }: { storageId: string }) => {\n return (\n
\n \n \n Přidat komoditu\n \n \n \n Upravit sklad\n \n
\n );\n};\n\nconst Overview = ({\n price,\n tons,\n currency,\n}: {\n price: number;\n tons: number;\n currency: Currency;\n}) => {\n return (\n \n \n Skladem:{\" \"}\n {\" \"}\n |{\" \"}\n Hodnota (nyní): {currencyFormatter(currency).format(price)}\n

\n );\n};\n\nconst ManagementLink = () => (\n \n Spravovat sklady\n \n);\n\nconst Storage = ({\n children,\n storage,\n}: React.PropsWithChildren<{\n storage: TStorage;\n}>) => {\n const isMobile = useIsMobile();\n\n return (\n
  • \n \n \n

    \n \n {storage.mark ? (\n {storage.name}\n ) : (\n storage.name\n )}\n \n

    \n
    \n {children}\n \n
  • \n );\n};\n\nconst StoragesParams = ({ children }: React.PropsWithChildren) => {\n const { params } = useCurrencyParams();\n const { pathname } = useLocation();\n\n if (!params) {\n return ;\n }\n\n return <>{children};\n};\n\nexport { path, Storages, StoragesParams };\n","import { queryOptions, useMutation } from \"@tanstack/react-query\";\nimport sortBy from \"lodash-es/sortBy\";\nimport { DateTime } from \"luxon\";\nimport invariant from \"tiny-invariant\";\nimport { z } from \"zod\";\n\nimport { graphqlClient } from \"@/api/graphql\";\nimport { entitySchema } from \"@/common/schema/entity\";\nimport { sortString } from \"@/common/utils/array\";\nimport { hasMatch, isMatchingSearch } from \"@/common/utils/search\";\nimport { graphql } from \"@/generated/digitalnisklady.cz\";\nimport { Currency } from \"@/generated/digitalnisklady.cz/graphql\";\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst ordersDocument = graphql(`\n query OrdersForOffer($id: ID!) {\n offer(id: $id) {\n orders {\n edges {\n node {\n active\n id\n amount\n currency\n quarter {\n id\n name\n }\n price\n lowPrice\n currency\n }\n }\n }\n }\n }\n`);\n\nconst orderSchema = z.object({\n id: z.string(),\n amount: z.number(),\n currency: z.enum([\"CZK\", \"EUR\"]),\n quarter: z.object({\n id: z.string(),\n name: z.string(),\n }),\n price: z.number(),\n lowPrice: z\n .number()\n .nullish()\n .transform((v) => v ?? null),\n});\n\ntype Order = z.infer;\n\nconst ordersQuery = ({ offerId }: { offerId: string }) =>\n queryOptions({\n queryKey: [\"orders\", offerId],\n queryFn: () =>\n graphqlClient.request(ordersDocument, {\n id: offerId,\n }),\n select: (data) =>\n z\n .array(orderSchema)\n .parse(\n data.offer?.orders?.edges\n ?.filter((edge) => edge?.node?.price)\n .map((edge) => edge?.node),\n ),\n });\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst addOrderDocument = graphql(`\n mutation AddOrder($order: OrderInput!) {\n addOrder(order: $order) {\n id\n }\n }\n`);\n\nconst useAddOrderMutation = () =>\n useMutation({\n mutationKey: [\"add-order\"],\n mutationFn: (payload: {\n offerId: string;\n quarterId: string;\n amount: number;\n lowPrice: number | null;\n price: number;\n currency: \"EUR\" | \"CZK\";\n customTransport: boolean;\n transportNote?: string;\n note?: string;\n }) =>\n graphqlClient.request(addOrderDocument, {\n order: {\n quarter: payload.quarterId,\n amount: payload.amount,\n note: payload.note,\n currency: payload.currency,\n customTransport: payload.customTransport,\n transportNote: payload.transportNote,\n offer: payload.offerId,\n lowPrice: payload.lowPrice,\n price: payload.price,\n active: true,\n },\n }),\n });\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst addContractDocument = graphql(`\n mutation AddContract($contract: ContractInput!) {\n addContract(contract: $contract) {\n id\n }\n }\n`);\n\nconst useAddContractMutation = () =>\n useMutation({\n mutationKey: [\"add-contract\"],\n mutationFn: (payload: {\n offerId: string;\n marketPriceId: string;\n amount: number;\n note: string;\n currency: \"EUR\" | \"CZK\";\n customTransport: boolean;\n transportNote?: string;\n }) =>\n graphqlClient.request(addContractDocument, {\n contract: {\n amount: payload.amount,\n marketPrice: payload.marketPriceId,\n offer: payload.offerId,\n transportNote: payload.transportNote,\n customTransport: payload.customTransport,\n currency: payload.currency,\n note: payload.note,\n },\n }),\n });\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst cropLastPricesDocument = graphql(`\n query CropLastPrices($id: ID!, $currency: Currency!, $cropIds: [ID!]) {\n storage(id: $id) {\n lastPrices(cropIds: $cropIds) {\n edges {\n node {\n id\n crop {\n id\n name\n }\n quarter {\n id\n name\n }\n price(currency: $currency)\n }\n }\n }\n }\n }\n`);\n\nconst cropLastPricesSchema = z.array(\n z.object({\n marketPriceId: z.string(),\n price: z.number(),\n quarter: entitySchema,\n }),\n);\n\nconst cropLastPricesQuery = ({\n currency,\n storageId,\n cropId,\n}: {\n currency: \"CZK\" | \"EUR\";\n storageId: string;\n cropId: string;\n}) =>\n queryOptions({\n queryKey: [\"last-prices\", currency, storageId, cropId],\n queryFn: () =>\n graphqlClient.request(cropLastPricesDocument, {\n currency: currency as Currency,\n id: storageId,\n cropIds: [cropId],\n }),\n select: (data) => {\n const result = cropLastPricesSchema.parse(\n data.storage?.lastPrices?.edges?.map((edge) => ({\n marketPriceId: edge?.node?.id,\n price: edge?.node?.price,\n quarter: edge?.node?.quarter,\n })),\n );\n return sortBy(result, (item) => sortQuarter(item.quarter.name));\n },\n });\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst futureQuartersDocument = graphql(`\n query FutureQuarters {\n quarters(upcoming: true) {\n edges {\n node {\n id\n name\n }\n }\n }\n }\n`);\n\nconst futureQuartersQuery = () =>\n queryOptions({\n queryKey: [\"future-quarters\"],\n queryFn: () => graphqlClient.request(futureQuartersDocument),\n select: (data) =>\n z\n .array(entitySchema)\n .parse(data.quarters?.edges?.map((edge) => edge?.node)),\n });\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst cropAggregatedPricesDocument = graphql(`\n query StorageAggregatedPrices(\n $id: ID!\n $from: DateTime!\n $to: DateTime!\n $cropIds: [ID!]\n $currency: Currency!\n ) {\n storage(id: $id) {\n aggregatedPrices: prices(\n from: $from\n to: $to\n aggregated: true\n cropIds: $cropIds\n ) {\n edges {\n node {\n id\n date\n quarter {\n id\n name\n dateFrom\n }\n region {\n id\n name\n }\n price(currency: $currency)\n }\n }\n }\n }\n }\n`);\n\nconst cropAggregatedPricesSchema = z.array(\n z.object({\n datetime: z.string(),\n rate: z.number(),\n quarter: z.object({\n name: z.string(),\n }),\n }),\n);\n\nconst cropAggregatedPricesQuery = ({\n storageId,\n cropId,\n from,\n to,\n currency,\n}: {\n storageId: string;\n cropId: string;\n from: DateTime;\n to: DateTime;\n currency: \"CZK\" | \"EUR\";\n}) =>\n queryOptions({\n queryKey: [\"crop\", \"price-chart\", storageId, cropId, from, to, currency],\n queryFn: () =>\n graphqlClient.request(cropAggregatedPricesDocument, {\n id: storageId,\n cropIds: [cropId],\n from: from.toSeconds(),\n to: to.toSeconds(),\n currency: currency as Currency,\n }),\n select: (data) => {\n const result = data.storage?.aggregatedPrices?.edges?.map((edge) => ({\n datetime: DateTime.fromSeconds(edge?.node?.date).toLocaleString(\n DateTime.DATE_SHORT,\n ),\n rate: edge?.node?.price,\n quarter: {\n name: edge?.node?.quarter?.name?.replace(\" \", \"/\"),\n },\n }));\n return cropAggregatedPricesSchema.parse(result);\n },\n });\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst storagesQueryDocument = graphql(`\n query StoragesForTrading($currency: Currency!, $archived: Boolean) {\n user {\n companies {\n edges {\n node {\n id\n name\n storages(archived: $archived) {\n edges {\n node {\n archived\n id\n label\n offers {\n edges {\n node {\n yearHarvested\n id\n archived\n amount\n totalAmount\n crop {\n id\n name\n }\n }\n }\n }\n lastPrices {\n edges {\n node {\n price(currency: $currency)\n crop {\n id\n name\n }\n quarter {\n id\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n`);\n\nconst storagesSchema = z.array(\n z.object({\n company: entitySchema.merge(\n z.object({\n storages: z.array(\n entitySchema.merge(\n z.object({\n mark: z.boolean(),\n offers: z.array(\n z.object({\n harvestYear: z.number(),\n amount: z.number(),\n id: z.string(),\n crop: entitySchema.merge(z.object({ mark: z.boolean() })),\n prices: z.array(\n z.object({\n id: z.string(),\n value: z.number(),\n quarter: entitySchema,\n currency: z.string(),\n price: z.number(),\n }),\n ),\n }),\n ),\n }),\n ),\n ),\n }),\n ),\n }),\n);\n\nconst storagesQuery = ({\n currency,\n search,\n}: {\n currency: \"CZK\" | \"EUR\";\n search?: string;\n}) =>\n queryOptions({\n queryKey: [\"user\", currency],\n queryFn: () =>\n graphqlClient.request(storagesQueryDocument, {\n currency: currency as Currency,\n archived: false,\n }),\n select: (data) => {\n const result: unknown[] = [];\n\n data.user?.companies?.edges?.forEach((apiCompany) => {\n const company = {\n company: {\n id: apiCompany?.node?.id,\n name: apiCompany?.node?.name,\n storages: apiCompany?.node?.storages?.edges\n ?.filter((storage) => !storage?.node?.archived)\n .map((storage) => ({\n mark: hasMatch(storage?.node?.label, search),\n id: storage?.node?.id,\n name: storage?.node?.label,\n offers: storage?.node?.offers?.edges\n ?.filter((offer) => !offer?.node?.archived)\n .reduce[]>((allOffers, offer) => {\n const currentOffer = offer?.node;\n let index = allOffers.findIndex(\n (o) => o.id === currentOffer?.id,\n );\n\n if (index === -1) {\n index =\n allOffers.push({\n id: currentOffer?.id,\n harvestYear: currentOffer?.yearHarvested,\n crop: {\n ...currentOffer?.crop,\n mark: hasMatch(currentOffer?.crop?.name, search),\n },\n amount: currentOffer?.amount,\n prices: [],\n }) - 1;\n }\n\n const prices = storage.node?.lastPrices?.edges?.filter(\n (price) =>\n price?.node?.crop?.id === offer?.node?.crop?.id,\n );\n\n allOffers[index].prices = prices?.map((price) => ({\n id: price?.node?.quarter?.id,\n quarter: price?.node?.quarter,\n value: price?.node?.price,\n currency,\n price: price?.node?.price,\n }));\n\n return allOffers;\n }, []),\n })),\n },\n };\n result.push(company);\n });\n\n const companies = storagesSchema.parse(result);\n\n companies.forEach(({ company }) => {\n company.storages = company.storages.filter((storage) =>\n isMatchingSearch(storage, search),\n );\n company.storages.sort(sortString);\n company.storages.forEach((storage) => {\n storage.offers = sortBy(storage.offers, (o) => [\n o.crop.name,\n o.harvestYear,\n ]).map(({ prices, ...offer }) => {\n return {\n ...offer,\n prices: sortBy(prices, (p) => sortQuarter(p.quarter.name)),\n };\n });\n });\n });\n\n return companies;\n },\n });\n\nconst sortQuarter = (name: string) => {\n const [quarter, year] = name.split(\" \");\n // eslint-disable-next-line lingui/no-unlocalized-strings\n invariant(quarter, \"quarter extraction failed\");\n // eslint-disable-next-line lingui/no-unlocalized-strings\n invariant(year, \"year extraction failed\");\n\n return [year, quarter];\n};\n\nexport {\n cropAggregatedPricesQuery,\n cropLastPricesQuery,\n futureQuartersQuery,\n ordersQuery,\n storagesQuery,\n useAddContractMutation,\n useAddOrderMutation,\n};\nexport type { Order };\n","import AngleSmallDownSvg from \"@icons/angle-small-down.svg?react\";\nimport GarageOpenSvg from \"@icons/garage-open.svg?react\";\nimport { msg } from \"@lingui/core/macro\";\nimport { useLingui } from \"@lingui/react\";\nimport { Trans } from \"@lingui/react/macro\";\nimport { useQuery } from \"@tanstack/react-query\";\nimport { Navigate, useLocation, useParams } from \"react-router-dom\";\n\nimport { Failed } from \"@/common/components/info/info\";\nimport { Metadata } from \"@/common/components/metadata/metadata\";\nimport { PageTitle } from \"@/common/components/page-title/page-title\";\nimport { PriceList } from \"@/common/components/price-list/price-list\";\nimport {\n SearchField,\n useSearchFieldParams,\n} from \"@/common/components/search-field/search-field\";\nimport { SearchParamsLink } from \"@/common/components/search-params-link/search-params-link\";\nimport { Spinner } from \"@/common/components/spinner/spinner\";\nimport { useCurrency } from \"@/common/hooks/use-currency\";\nimport { useIsMobile } from \"@/common/hooks/use-media-query\";\nimport { useSidebar } from \"@/common/providers/sidebar-provider/sidebar-provider\";\n\nimport { TwoColumnLayout } from \"../layout/layout\";\nimport { getPricesView } from \"../purchase-prices/purchase-prices\";\nimport { initialParams, useCurrencyParams } from \"../shared/currency.params\";\nimport { CommodityCard } from \"../storages/components/commodity-card/commodity-card\";\nimport { storagesQuery } from \"./trades.api\";\n\nconst path = \"trades\";\n\nconst Trades = () => {\n const { _ } = useLingui();\n const [search] = useSearchFieldParams();\n const { offerId } = useParams<\"offerId\">();\n const [CurrencySwitch, currency] = useCurrency();\n const storages = useQuery(\n storagesQuery({\n currency,\n search,\n }),\n );\n const isMobile = useIsMobile();\n const isDetailOpen = offerId !== undefined;\n const sidebar = useSidebar();\n\n return (\n \n \n Komodity k prodeji\n \n {CurrencySwitch}\n \n ),\n content: (\n <>\n \n {storages.status === \"pending\" ? (\n
    \n \n
    \n ) : null}\n {storages.status === \"error\" ? (\n \n ) : null}\n {storages.status === \"success\" && storages.data ? <> : null}\n {storages.status === \"success\" && storages.data ? (\n <>\n \n {storages.data.map(({ company }) => (\n
    \n

    \n {company.name}\n

    \n
      \n {company.storages.map((storage) => (\n
    • \n
      \n \n

      \n \n {storage.mark ? (\n \n {storage.name}\n \n ) : (\n storage.name\n )}\n \n

      \n
      \n \n {storage.offers.map((offer) => (\n \n \n \n \n
      \n \n |\n \n
      \n {getPricesView(offer.prices).map(\n (prices, i) => (\n \n p?.type === \"data\"\n ? {\n id: p.id,\n quarter: p.quarter.name,\n value: p.price,\n currency,\n }\n : null,\n )}\n key={i}\n />\n ),\n )}\n
      \n \n
    • \n ))}\n
    \n \n \n ))}\n \n
    \n ))}\n \n ) : null}\n \n ),\n }}\n right={isDetailOpen}\n />\n );\n};\n\nconst TradesParams = ({ children }: React.PropsWithChildren) => {\n const { params } = useCurrencyParams();\n const { pathname } = useLocation();\n\n if (!params) {\n return ;\n }\n\n return <>{children};\n};\n\nexport { path, Trades, TradesParams };\n","import BooksSvg from \"@icons/books.svg?react\";\nimport ChartSvg from \"@icons/chart.svg?react\";\nimport GarageOpenSvg from \"@icons/garage-open.svg?react\";\nimport MagnifyChartSvg from \"@icons/magnify-chart.svg?react\";\nimport NewspaperSvg from \"@icons/newspaper.svg?react\";\nimport SendMoneySvg from \"@icons/send-money.svg?react\";\nimport UsdCircleSvg from \"@icons/usd-circle.svg?react\";\nimport { t } from \"@lingui/core/macro\";\nimport { NavLink } from \"react-router-dom\";\n\nimport { Features } from \"@/common/providers/feature-provider\";\nimport { PlanSchema } from \"@/common/services/user\";\nimport { MenuItemFlow } from \"@/domain/plan/nav-bar/nav-bar.flow\";\nimport { FeatureToType } from \"@/generated/api/users\";\nimport { path as purchasePricesPath } from \"@/routes/purchase-prices/purchase-prices\";\nimport { path as reportsPath } from \"@/routes/reports/reports\";\nimport { getAbsolutePath } from \"@/routes/routes.utils\";\nimport { path as stockExchangePath } from \"@/routes/stock-exchange/stock-exchange\";\nimport { path as storagesPath } from \"@/routes/storages/storages\";\nimport { path as tradesPath } from \"@/routes/trades/trades\";\n\ntype Link = {\n className?: string | ((args: { isActive: boolean }) => string);\n to: string;\n icon: React.ReactNode;\n label: string;\n};\n\ntype LinkWithFeature = Link & { feature: FeatureToType };\n\nconst NavBar = ({\n plan,\n renderItem,\n}: {\n plan: Omit & {\n features: Features;\n planId: PlanSchema[\"planId\"] | null;\n };\n renderItem?: (\n link: Link,\n wrapper: Exclude<\n ReturnType[\"getWrapper\"]>,\n null\n >,\n ) => React.ReactNode;\n}) => {\n const links: LinkWithFeature[] = [\n {\n className: getClassName,\n feature: FeatureToType.PURCHASE_PRICES,\n label: t`Moje výkupní ceny`,\n to: getAbsolutePath(purchasePricesPath),\n icon: ,\n },\n {\n className: getClassName,\n feature: FeatureToType.QUICK_TRADING,\n label: t`Rychlý prodej komodit`,\n to: getAbsolutePath(\"quick-trading\"),\n icon: ,\n },\n {\n className: getClassName,\n feature: FeatureToType.STOCK_EXCHANGE,\n label: t`Burzovní informace`,\n to: getAbsolutePath(stockExchangePath),\n icon: ,\n },\n {\n className: getClassName,\n feature: FeatureToType.MARKET_NEWS,\n label: t`Analýza trhu`,\n to: getAbsolutePath(reportsPath),\n icon: ,\n },\n {\n className: getClassName,\n feature: FeatureToType.TRADING,\n label: t`Prodej komodit`,\n to: getAbsolutePath(tradesPath),\n icon: ,\n },\n {\n className: getClassName,\n feature: FeatureToType.STORAGES,\n label: t`Sklady`,\n to: getAbsolutePath(storagesPath),\n icon: ,\n },\n {\n className: getClassName,\n label: t`Transakce a příkazy`,\n feature: FeatureToType.TRANSACTIONS_ORDERS,\n to: getAbsolutePath(\"transactions-and-orders\"),\n icon: ,\n },\n ];\n\n return (\n \n );\n};\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst active = \"[&_path]:fill-white bg-[#399E82] text-white\";\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst inactive = \"[&_path]:fill-[#85C4B3] text-[#85C4B3]\";\nconst getClassName = ({ isActive }: { isActive: boolean }) =>\n // eslint-disable-next-line lingui/no-unlocalized-strings\n `${isActive ? active : inactive} flex w-full justify-center py-3 relative`;\n\nexport { active, getClassName, NavBar };\nexport type { LinkWithFeature };\n","import BooksSvg from \"@icons/books.svg?react\";\nimport ChartSvg from \"@icons/chart.svg?react\";\nimport GarageOpenSvg from \"@icons/garage-open.svg?react\";\nimport NewspaperSvg from \"@icons/newspaper.svg?react\";\nimport UsdCircleSvg from \"@icons/usd-circle.svg?react\";\nimport { t } from \"@lingui/core/macro\";\nimport { NavLink } from \"react-router-dom\";\n\nimport { useFeatureFlag } from \"@/common/providers/feature-flag-provider\";\nimport { path as purchasePricesPath } from \"@/routes/purchase-prices/purchase-prices\";\nimport { path as reportsPath } from \"@/routes/reports/reports\";\nimport { getAbsolutePath } from \"@/routes/routes.utils\";\nimport { path as stockExchangePath } from \"@/routes/stock-exchange/stock-exchange\";\nimport { path as storagesPath } from \"@/routes/storages/storages\";\nimport { path as tradesPath } from \"@/routes/trades/trades\";\n\ntype Link = {\n className?: string | ((args: { isActive: boolean }) => string);\n to: string;\n icon: React.ReactNode;\n label: string;\n};\n\nconst NavBar = ({\n renderItem,\n}: {\n renderItem?: (link: Link) => React.ReactNode;\n}) => {\n const featureFlag = useFeatureFlag();\n const links: Link[] = [];\n\n if (featureFlag.get(\"trading\")) {\n links.push({\n className: getClassName,\n label: t`Výkupní ceny`,\n to: getAbsolutePath(purchasePricesPath),\n icon: ,\n });\n }\n\n links.push(\n ...([\n {\n className: getClassName,\n label: t`Burzovní informace`,\n to: getAbsolutePath(stockExchangePath),\n icon: ,\n },\n {\n className: getClassName,\n label: t`Zprávy`,\n to: getAbsolutePath(reportsPath),\n icon: ,\n },\n ] satisfies Link[]),\n );\n\n if (featureFlag.get(\"premium\") && featureFlag.get(\"trading\")) {\n links.push(\n ...([\n {\n className: getClassName,\n label: t`Prodej komodit`,\n to: getAbsolutePath(tradesPath),\n icon: ,\n },\n {\n className: getClassName,\n label: t`Sklady`,\n to: getAbsolutePath(storagesPath),\n icon: ,\n },\n {\n className: getClassName,\n label: t`Transakce a příkazy`,\n to: getAbsolutePath(\"transactions-and-orders\"),\n icon: ,\n },\n ] satisfies Link[]),\n );\n }\n\n return (\n \n );\n};\n\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst active = \"[&_path]:fill-white bg-[#399E82] text-white\";\n// eslint-disable-next-line lingui/no-unlocalized-strings\nconst inactive = \"[&_path]:fill-[#85C4B3] text-[#85C4B3]\";\nconst getClassName = ({ isActive }: { isActive: boolean }) =>\n // eslint-disable-next-line lingui/no-unlocalized-strings\n `${isActive ? active : inactive} flex w-full justify-center py-3`;\n\nexport { active, getClassName, NavBar };\n","import AdminUser from \"@icons/admin-user.svg?react\";\nimport ArrowAltToRight from \"@icons/arrow-alt-to-right.svg?react\";\nimport { Trans } from \"@lingui/react/macro\";\nimport { useFlag } from \"@unleash/proxy-client-react\";\nimport { Link, NavLink } from \"react-router-dom\";\n\nimport { AdminGuard } from \"@/common/acl/guard/guard\";\nimport { Logo } from \"@/common/components/logo/logo\";\nimport { useFirstCompany } from \"@/common/hooks/use-first-company\";\nimport { useToggle } from \"@/common/hooks/use-toggle\";\nimport { useFeatureProvider } from \"@/common/providers/feature-provider\";\n\nimport { getClassName, NavBar } from \"../nav-bar/nav-bar\";\nimport { NavBar as OldNavBar } from \"../nav-bar/nav-bar.old\";\nimport { Spacer } from \"../spacer/spacer\";\n\nconst SideBar = () => {\n const expanded = useToggle();\n const company = useFirstCompany();\n const hasPackages = useFlag(\"packages\");\n const features = useFeatureProvider();\n\n return (\n