({\n providesTags: [Tags.TEMPLATES_LIST],\n query: () => '/api/webapi/selling/templates?take=100'\n })\n })\n});\n\nexport const { useDeleteTemplateMutation, useLoadTemplatesQuery, util } =\n templatesApi;\n","import { useTranslator } from 'tradera/lang/translate';\nimport { ITEM_STATES } from 'tradera/state/views/view-item/constants';\nimport { AnimateOnValueChange } from './animate-on-value-change';\nimport { Button } from 'tradera/components/atoms/button/button';\nimport type {\n PaymentApiDto,\n PaymentCalculations\n} from 'tradera/state/services/types/webapi-browse-generated';\nimport { MandatoryBuyerProtectionInfo } from 'tradera/apps/tradera/components/vip/bidding/mandatory-buyer-protection-info';\nimport type { BuyerProtectionModalType } from 'tradera/apps/tradera/components/vip/seller-details/buyer-protection-info-modal';\nimport { classNames } from 'tradera/utils/class-names';\nimport { useLocalizedPriceFormatterWithExchangeRate } from 'tradera/localization/use-localized-price-formatter';\nimport { CurrencyRateType } from 'tradera/state/multi-currency/reducer';\n\ntype BidDetailsProps = {\n bidCount?: number | null;\n itemState: ITEM_STATES | null;\n leadingBidAmount?: number | null;\n onShowBids: () => void;\n setBuyerProtectionModal: (type: BuyerProtectionModalType) => void;\n openingBid?: number | null;\n finalPrice?: number | null;\n paymentCalculations: PaymentCalculations;\n reservePriceReached?: boolean;\n payment?: PaymentApiDto | null;\n isBuyer: boolean;\n};\n\nexport const BidDetails = ({\n bidCount,\n itemState,\n leadingBidAmount,\n onShowBids,\n setBuyerProtectionModal,\n openingBid,\n finalPrice,\n paymentCalculations,\n reservePriceReached,\n payment,\n isBuyer\n}: BidDetailsProps) => {\n const { t } = useTranslator();\n const localizedPriceFormatter = useLocalizedPriceFormatterWithExchangeRate(\n payment?.paymentMethodExchangeRate,\n isBuyer ? CurrencyRateType.Buyer : CurrencyRateType.Seller\n );\n const itemIsActive =\n itemState === ITEM_STATES.ONGOING_AUCTION_BIN ||\n itemState === ITEM_STATES.ONGOING_AUCTION;\n\n const hasBids = !!bidCount && bidCount > 0;\n const amountDetails = getAmountDetails(\n itemState,\n leadingBidAmount,\n openingBid,\n hasBids,\n finalPrice,\n paymentCalculations.paymentAmountForBid || 0,\n paymentCalculations.paymentAmountForFixedPrice || 0\n );\n\n const amountTitle = (\n \n {t(amountDetails.title)}\n
\n );\n\n const amountValue = (\n \n \n {amountDetails.amount\n ? localizedPriceFormatter(amountDetails.amount)\n : null}\n \n
\n );\n\n const bidValue = (\n \n ∙\n {hasBids ? (\n \n ) : (\n \n {bidCount} {t('vip_bid')}\n \n )}\n
\n );\n\n const showBidCount =\n itemState !== ITEM_STATES.ENDED_AUCTION_BIN_BOUGHT_AS_BIN;\n\n return (\n <>\n \n \n
\n {amountTitle}\n {showBidCount && bidValue}\n
\n
{amountValue}
\n
\n {paymentCalculations.isBuyerProtectionMandatory && (\n \n )}\n \n >\n );\n};\n\nexport const getAmountDetails = (\n itemState: ITEM_STATES | null,\n leadingBid?: number | null,\n openingBid?: number | null,\n hasBids?: boolean,\n finalPrice?: number | null,\n paymentAmountForBid?: number | null,\n paymentAmountForFixedPrice?: number | null\n) => {\n if (itemState === ITEM_STATES.ENDED_AUCTION_WITH_WINNING_BID) {\n return {\n title: 'vip_finalPrice',\n amount: finalPrice,\n amountIncludingBuyerProtection: paymentAmountForBid\n };\n }\n\n if (finalPrice && finalPrice > 0) {\n return {\n title: 'vip_soldFor',\n amount: finalPrice,\n amountIncludingBuyerProtection: paymentAmountForFixedPrice\n };\n }\n\n if (hasBids) {\n return {\n title: 'vip_leadingBid',\n amount: leadingBid,\n amountIncludingBuyerProtection: paymentAmountForBid\n };\n }\n return {\n title: 'vip_openingBid',\n amount: openingBid,\n amountIncludingBuyerProtection: paymentAmountForBid\n };\n};\n","import type React from 'react';\nimport { forwardRef } from 'react';\nimport { classNames } from 'tradera/utils/class-names';\nimport type { OnlyAs, PolyRefFunction } from 'react-polymorphed';\n\nconst polyRef = forwardRef as PolyRefFunction;\n\ntype Gap = 0 | 1 | 2 | 3 | 4 | 5 | 6;\n\nexport type SpaceProps = {\n /**\n * Default: 'horizontal'\n */\n direction?:\n | 'horizontal'\n | 'vertical'\n | 'horizontal-reverse'\n | 'vertical-reverse';\n /**\n * Default: 'center' for horizontal, 'start' for vertical\n */\n align?: 'start' | 'center' | 'end' | 'normal' | 'baseline';\n /**\n * Default: 'start'\n */\n justify?: 'start' | 'center' | 'end' | 'between' | 'around';\n /**\n * Gap sizes as defined by Blueprint. Default: 1. Can be a single value or an array of two values for horizontal and vertical gaps.\n */\n gap?: Gap | [Gap, Gap];\n /**\n * Default: false\n */\n wrap?: boolean;\n /**\n * Default: false\n * If true, the component will be rendered as an inline-flex element.\n */\n inline?: boolean;\n grow?: boolean;\n\n children: React.ReactNode;\n} & React.HTMLAttributes;\n\n/**\n * A component to use when you want to space out elements in a row or column.\n * Example:\n * \n * \n * \n * \n */\nexport const Space = polyRef<\n 'div',\n SpaceProps,\n OnlyAs<'div' | 'section' | 'article' | 'label' | 'span' | 'fieldset'>\n>(\n (\n {\n as: Component = 'div',\n direction = 'horizontal',\n align: alignProp,\n gap = 1,\n wrap = false,\n inline = false,\n className,\n children,\n justify,\n grow,\n ...rest\n },\n ref\n ) => {\n const defaultAlign = direction === 'horizontal' ? 'center' : 'normal';\n const align = alignProp ?? defaultAlign;\n\n const gapX = Array.isArray(gap) ? gap[0] : (gap ?? 1);\n const gapY = Array.isArray(gap) ? gap[1] : (gap ?? 1);\n\n const gapClass = `gap-x-${gapX} gap-y-${gapY}`;\n\n return (\n \n {children}\n \n );\n }\n);\n","import { useCallbackRef } from '@radix-ui/react-use-callback-ref';\nimport { useCallback, useEffect, useRef, useState } from 'react';\n\n/**\n * From https://github.com/radix-ui/primitives/blob/main/packages/react/use-controllable-state/src/useControllableState.tsx\n * This is used to support both having a controlled and uncontrolled state\n * in a component depending on what the consumer wants.\n */\n\ntype UseControllableStateParams = {\n prop?: T | undefined;\n defaultProp?: T | undefined;\n onChange?: (state: T) => void;\n};\n\ntype SetStateFn = (prevState?: T) => T;\n\nexport function useControllableState({\n prop,\n defaultProp,\n onChange = () => {}\n}: UseControllableStateParams) {\n const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({\n defaultProp,\n onChange\n });\n const isControlled = prop !== undefined;\n const value = isControlled ? prop : uncontrolledProp;\n const handleChange = useCallbackRef(onChange);\n\n const setValue: React.Dispatch> =\n useCallback(\n (nextValue) => {\n if (isControlled) {\n const setter = nextValue as SetStateFn;\n const value =\n typeof nextValue === 'function'\n ? setter(prop)\n : nextValue;\n if (value !== prop) handleChange(value as T);\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, handleChange]\n );\n\n return [value, setValue] as const;\n}\n\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}: Omit, 'prop'>) {\n const uncontrolledState = useState(defaultProp);\n const [value] = uncontrolledState;\n const prevValueRef = useRef(value);\n const handleChange = useCallbackRef(onChange);\n\n useEffect(() => {\n if (prevValueRef.current !== value) {\n handleChange(value as T);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef, handleChange]);\n\n return uncontrolledState;\n}\n","/**\n OBSOLETE - use google tag manager service instead:\n src\\frontend\\services\\google-tagmanager-service.js\n\n * Ported from Applications/TouchWeb/src/legacy/static/app/ui/layout/google-tagmanager.js\n * Best way to import this module is `import * as Analytics from 'analytics'`\n */\n\nimport * as Sentry from '@sentry/react';\n\ntype WindowWithDataLayer = Window & {\n dataLayer: Record[];\n ga?: (\n command: string,\n eventName: string,\n category: string,\n variable?: string,\n value?: string,\n label?: string\n ) => void;\n};\n\ndeclare const window: WindowWithDataLayer;\n\ntype AnalyticsData = {\n category?: string;\n action?: string;\n label?: string;\n value?: string;\n hitCallback?: unknown[];\n userTriggered?: boolean;\n};\n\nexport const pushToDataLayer = (payload: Record) => {\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push(payload);\n};\nexport const trackPageView = () =>\n window.ga\n ? window.ga('send', 'pageview', location.pathname)\n : pushToDataLayer({ event: 'trackPageview' });\nexport const isNonInteractive = (analyticsData: AnalyticsData) =>\n analyticsData.userTriggered === undefined\n ? true\n : !analyticsData.userTriggered;\n/**\n * trackTiming\n * @param {*} category\n * @param {*} variable\n * @param {*} value\n * @param {*} label\n */\nexport const trackTiming = (\n category: string,\n variable: string,\n value: string,\n label = ''\n) =>\n window.ga\n ? window.ga('send', 'timing', category, variable, value, label)\n : false;\n\n/**\n * Track Analytics Event\n */\nexport const trackEvent = (analyticsData: AnalyticsData) => {\n if (!analyticsData) {\n return;\n }\n pushToDataLayer({\n event: 'trackEvent',\n eventCategory: analyticsData.category || '',\n eventAction: analyticsData.action || '',\n eventLabel: analyticsData.label || '',\n eventValue: analyticsData.value || '0',\n eventNonInteractive: isNonInteractive(analyticsData),\n hitCallback: analyticsData.hitCallback || []\n });\n\n Sentry.addBreadcrumb({\n type: 'default',\n level: 'info',\n category: isNonInteractive(analyticsData) ? 'tracking' : 'ui-action',\n message: 'Analytics Event',\n data: analyticsData\n });\n};\n\n// Export object for Sinon stubbing\nexport default {\n pushToDataLayer,\n trackEvent,\n trackPageView,\n trackTiming\n};\n","import Analytics from 'packages/analytics';\nimport { logger } from 'packages/logger';\nimport locationUtils from 'tradera/utils/location';\nimport api from './api';\nimport { selectIsLoggedIn } from 'tradera/state/member/selectors';\n\n/**\n * Sets new preferred language\n * @param {string} code - example: 'sv' or 'en'\n */\nexport const setPreferredLanguage =\n (code, toLocalizedUrl) => async (dispatch, getState) => {\n Analytics.trackEvent({\n category: 'Settings',\n action: 'Language',\n label: code\n });\n\n try {\n if (selectIsLoggedIn(getState())) {\n await api.saveLanguageSetting(code, toLocalizedUrl);\n }\n locationUtils.reloadLocalized(code);\n } catch (error) {\n logger(error);\n }\n };\n","import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';\n\nexport const feesApi = createApi({\n reducerPath: 'feesApi',\n baseQuery: fetchBaseQuery({\n baseUrl: '/api/webapi/selling/commissionfee'\n }),\n endpoints: (builder) => ({\n // itemType and price does not affect the provision fee,\n // therefore we defaults to itemType `Auction` and price `1`\n getCommissionFee: builder.query({\n query: ({ categoryId }) =>\n `?categoryId=${categoryId}&itemType=Auction&price=1`\n })\n })\n});\n\nexport const { useGetCommissionFeeQuery } = feesApi;\n","import { createApi } from '@reduxjs/toolkit/query/react';\nimport type { MemberLatestPublishedListingApiResponse } from 'tradera/state/services/types/webapi-member-generated';\nimport { isomorphicWebApiBaseQuery } from 'tradera/state/services/utils/webapi-base-query';\n\nexport const memberLatestPublishedListingApi = createApi({\n reducerPath: 'memberLatestPublishedListing',\n baseQuery: isomorphicWebApiBaseQuery,\n endpoints: (builder) => ({\n getMemberLatestPublishedListing: builder.query<\n MemberLatestPublishedListingApiResponse,\n void\n >({\n query: () =>\n '/api/webapi/member/selling/member-latest-published-listing'\n })\n })\n});\n\nexport const { useGetMemberLatestPublishedListingQuery } =\n memberLatestPublishedListingApi;\n","import { createApi } from '@reduxjs/toolkit/query/react';\nimport { isServer } from 'tradera/utils/nextjs';\nimport { isomorphicWebApiBaseQuery } from 'tradera/state/services/utils/webapi-base-query';\nimport type {\n ValuationSearchRequest,\n ValuationSearchApiResponse\n} from './types/webapi-discover-generated';\n\nexport const valuationApi = createApi({\n reducerPath: 'valuationApi',\n baseQuery: isomorphicWebApiBaseQuery,\n endpoints: (builder) => ({\n getValuation: builder.query<\n ValuationSearchApiResponse,\n ValuationSearchRequest\n >({\n query: (params: ValuationSearchRequest) => {\n const baseUrl = isServer ? '' : '/api/webapi';\n const searchParams = new URLSearchParams(\n Object.entries(params)\n .filter(([, value]) => value != null)\n .map(([key, value]) => [key, value.toString()])\n );\n return `${baseUrl}/discover/valuation-search?${searchParams.toString()}`;\n }\n })\n })\n});\n\nexport const { useGetValuationQuery } = valuationApi;\n","import axios from 'axios';\n\nimport ENDPOINTS from 'tradera/constants/endpoints';\nimport { finalizeResponse, handleError, logError } from 'tradera/utils/api';\nimport { removeBannedCountries } from 'tradera/localization/countries';\n\nexport const fetchAvailableShippingCountries = () =>\n axios\n .get(ENDPOINTS.AVAILABLE_SHIPPING_COUNTRIES)\n .then(finalizeResponse())\n .then(({ data }) => ({\n shippingCountries: data.availableCountries\n .map((country) => ({\n countryCodeIso2: country.countryCodeIso2.toLowerCase(),\n countryNameEng: country.countryNameEng\n }))\n .filter(removeBannedCountries)\n }))\n .catch(handleError())\n .catch(logError);\n","export enum VIEW_ITEM_STATES {\n INITIALIZING = 'INITIALIZING',\n NOT_STARTED = 'NOT_STARTED',\n ACTIVE = 'ACTIVE',\n ENDING = 'ENDING',\n ENDED = 'ENDED'\n}\n\nexport enum ITEM_STATES {\n NOT_STARTED_AUCTION = 'NOT_STARTED_AUCTION',\n NOT_STARTED_AUCTION_BIN = 'NOT_STARTED_AUCTION_BIN',\n NOT_STARTED_FIXED_PRICE = 'NOT_STARTED_FIXED_PRICE',\n ONGOING_AUCTION = 'ONGOING_AUCTION',\n ONGOING_AUCTION_BIN = 'ONGOING_AUCTION_BIN',\n ONGOING_FIXED_PRICE = 'ONGOING_FIXED_PRICE',\n ENDED_AUCTION_WITHOUT_BID = 'ENDED_AUCTION_WITHOUT_BID',\n ENDED_AUCTION_WITH_WINNING_BID = 'ENDED_AUCTION_WITH_WINNING_BID',\n ENDED_AUCTION_SOLD_THROUGH_PURCHASE_OFFER = 'ENDED_AUCTION_SOLD_THROUGH_PURCHASE_OFFER',\n ENDED_AUCTION_WITHOUT_WINNING_BID = 'ENDED_AUCTION_WITHOUT_WINNING_BID',\n ENDED_AUCTION_BIN_BOUGHT_AS_BIN = 'ENDED_AUCTION_BIN_BOUGHT_AS_BIN',\n ENDED_AUCTION_BIN_SOLD_THROUGH_PURCHASE_OFFER = 'ENDED_AUCTION_BIN_SOLD_THROUGH_PURCHASE_OFFER',\n ENDED_PURE_BIN_SOLD_THROUGH_PURCHASE_OFFER = 'ENDED_PURE_BIN_SOLD_THROUGH_PURCHASE_OFFER',\n ENDED_FIXED_PRICE = 'ENDED_FIXED_PRICE',\n ENDED_CANCELLED = 'ENDED_CANCELLED',\n UNKNOWN = 'UNKNOWN'\n}\n"],"names":["MAX_SHORT_DESCRIPTION_LENGTH","defaultDrafts","isServer","_window$sellingGlobal","window","sellingGlobalData","getType","draft","hasOpeningPrice","isNullOrUndefined","openingBid","hasFixedPrice","fixedPrice","isPureBin","isAuctionBin","getDefaultTemplateValue","propertyName","_defaultDrafts$newTem","newTemplate","loadDefaultDraft","_objectSpread","newItem","allowedBuyerRegion","undefined","loadDefaultTemplateDraft","loadDraftFromTemplate","async","response","touchWebClient","post","templateId","draftWithoutItemId","itemId","resetUnwantedProperties","data","draftReason","saveDraft","Error","ensuredDraft","metadata","applicationId","ensureApplicationId","webApiClient","suggestionsThrottle","ThrottledAction","throttledFetchCategoryAttributeSuggestions","InputType","Button","Color","categoryId","shortDescription","dispatch","execute","action","fetchCategoryAttributeSuggestions","getState","environment","featureSwitches","splitTestGroup","splitTestGroups","splitTestEnabled","extractorType","getAttributeSuggestionExtractor","_response$data$attrib2","params","setCategoryAttributesSuggestions","suggestedAttributes","attributeValues","termAttributeValues","suggestionsExtractorType","autoFillSuggestedAttributes","error","type","splitTest","toLocaleLowerCase","ExtractorType","Code","Tradera","Google","userData","charities","canBeResumed","draftId","longDescription","images","hasShortDescription","trim","length","hasLongDescription","hasImage","Array","isArray","some","image","imageUrl","updateDraftCanBeResumed","getSyiSlice","setDraftCanBeResumed","setDisplayPromoted","displayPromoted","payload","feesActions","updatePrices","setDisplayHighlighted","displayHighlighted","setUsedAllowed","isAllowed","setItemConditionFromPrediction","condition","selectIsItemConditionDirty","oldValue","selectItemCondition","setHasUsedAutoFill","updateItemConditionRestrictionForCategory","itemCondition","isUsedAllowed","categoryRestriction","syi","allowUsed","featureFees","state","price","reservePrice","push","PossibleFeatures","extraFeatures","highlight","rankUp","fetchOffsitePaymentDetection","createAsyncThunk","request","_ref","selectIsFeatureEnabled","fetchClassificationFromFirstImage","imageId","trackSyiForm","eventName","parameters","draft_id","get","qs","fetchPredictionsFromImages","_","_ref2","languageCodeIso2","selectPreferredLanguageCode","existingShortDescription","selectShortDescription","existingLongDescription","selectLongDescription","isModalFeatureToggleEnabled","itemClassification","selectClassificationResponse","imageIds","selectImageIds","selectDraftId","setPredictedShortDescription","setShouldSuggestShortDescription","setHasUsedPredictedDescription","setShortDescription","setPredictedLongDescription","setShouldSuggestLongDescription","setLongDescription","setNumProcessedImages","numProcessedImages","setAiProcessingTime","aiProcessingTime","_ref4","_ref5","isCompany","setIsPureBinSelectedFromPrediction","itemType","ItemTypes","PURE_BIN","setReservePrice","setReservePriceReducer","setIsPureBinSelected","isPureBinSelected","setIsPureBinSelectedReducer","setOpeningBid","setAuctionBinPrice","setCustomEndTime","setFixedPrice","isDirty","selectIsPureBinSelected","syiShippingApi","createApi","reducerPath","baseQuery","isomorphicWebApiBaseQuery","endpoints","builder","getShippingProducts","query","ITEM_TYPE","BIN","AUCTION","AUCTION_AND_BIN","Tags","draftsApi","tagTypes","Object","keys","deleteDrafts","mutation","invalidatesTags","DRAFT_LIST","url","method","body","loadDrafts","providesTags","transformResponse","_response$items","items","filter","item","_item$images","find","useDeleteDraftsMutation","useLoadDraftsQuery","util","initialState","categoryAttributes","draftAttributes","selectableSuggestedAttributes","selectableCategorySuggestedAttributes","selectableImageToColorSuggestedAttributes","imageToColorSuggestedAttributes","validationErrors","categorySuggestedAttributes","updateSelectableImageToColorSuggestedAttributes","filterSelectableSuggestions","updateSelectableSuggestedAttributes","filterCombinedSelectableSuggestions","attributeSlice","createSlice","name","reducers","validate","forEach","attribute","_state$selectableSugg","_state$selectableSugg2","_state$selectableSugg3","options","option","isActive","includes","id","suggestedAttributeValues","suggested","values","slice","maxNumberOfValues","map","value","numberOfValuesSelected","setImageToColorSuggestions","setCategoryAttributeOption","a","attributeId","isMultiSelect","optionValue","activate","o","updateCategoryAttributesOptionsStatuses","_state$draftAttribute","_state$draftAttribute2","_a$options","_a$options2","draftAttributeValues","tav","setDraftAttributes","setCategoryAttributes","resetAttributes","resetSelectedAttributes","_attribute$options","resetImageAttributeSuggestions","_attribute$options2","_attribute$options3","minNumberOfValues","reduce","acc","backingField","actions","reducer","buyerRegionSlice","initModuleGlobals","_initData$featureSwit","initData","pageSpecificData","allowedBuyerRegions","availableAllowedBuyerRegions","defaultBuyerRegion","r","selectedBuyerRegion","selectedBuyerRegionText","text","availableAllowedBuyerRegionsForEditWithBids","isSetAllowedBuyerRegionToAtLeastEuEnabled","setAllowedBuyerRegion","setAvailableAllowedBuyerRegions","availableRegions","draftCategoryId","validationError","categorySlice","draftCategoryPath","resetCategory","setDraftCategory","categoryPath","_categorySlice$action","windowExists","isNewDraft","_window$location","location","_window$location$path","pathname","endsWith","queryParams","URLSearchParams","_window$location2","search","queryParamCharityId","preselectCharity","anonymous","charityId","Number","description","logoUrl","percentageToDonate","forceFreeShipping","isFreeShippingPaidByProvider","freeShippingPaidByProviderName","charitySlice","setCharityId","setCharityInfo","_ref2$payload","setCharityAnonymous","_ref3","setCharityFromDraft","resetCharity","setCharityShippingInfo","_charitySlice$actions","isLoading","additionalDescriptions","draftSlice","setDraftProperties","_draft$reference$incl","_draft$reference","referenceIsReadonly","reference","JSON","stringify","lastModifiedDate","dayjs","toISOString","assign","pick","setDraftId","setRestart","restart","disableRestart","setReference","addAdditionalDescription","newAdditionalDescriptions","message","setDraftReason","ensureDraftReason","setDraftVersion","version","resetDraft","setDraftIsLoading","setCurrency","currency","setResellPartner","resellPartner","setMagicalSyiEnabled","magicalSyiEnabled","_draftSlice$actions","editSlice","draftBeforeChange","setDraftBeforeChange","MAX_NUMBER_OF_IMAGES","config","isSyiTenImagesEnabled","ITEM_CLASSIFICATIONS_FOR_PREDICTION","setValidation","uploadingCount","every","isUploadedBySystem","resetUploadError","uploadError","imagesSlice","isUploadingWithApp","setDraftImages","draftImage","rotationDegrees","isListingImage","listingImage","imageGroupId","filename","addImage","_action$payload","replaceImage","_action$payload2","index","removeImage","splice","changeImagePosition","_action$payload3","from","to","movedImage","setImageRotation","_action$payload4","setImageUploadFailed","errorMessage","setImagesUploading","numberOfImages","setMobileUpload","extraReducers","addCase","hideAllErrors","_imagesSlice$actions","getValidationErrors","durationDays","allowZeroDayAuctions","customEndTime","customEndTimeError","endDate","getEndDate","startOf","add","_customEndTime$split$2","_slicedToArray","split","hours","minutes","hour","minute","earliestEndDate","isBefore","isRestartAvailable","_userData$defaultDraf","_userData$defaultDraf2","itemDurationSlice","setDurationDays","isChangeItem","_state$durationDays","resetDurationAndEndTime","draftService","newState","newStateWithoutCampaignRelatedProps","resetCustomEndTime","disableZeroDayAuctions","_state$durationDays2","enableZeroDayAuctions","enableRestart","_itemDurationSlice$ac","textWithHtml","elm","document","createElement","innerHTML","textContent","innerText","ensureString","s","longDescriptionSlice","isCurrentDescriptionFromDraft","fromDraftCounter","isOffsitePaymentDetected","setLongDescriptionFromDraft","resetLongDescription","fulfilled","_longDescriptionSlice","setValidationError","createInitalState","consent","braintree","shouldBypassConsent","signatoryVerificationRequired","shouldGiveConsent","isSyiMemberConsentEnabled","hasTraderaPayConsent","needsConsentOfTraderaPayAgreement","hasValidationError","isUnderLicense","initalConsentGiven","memberConsentSlice","setTraderaPayConsent","hasAutoFillConsent","isLoadingPredictions","classification","canGetPredictionFromImages","isClassificationPending","hasUsedAutoFill","hasUsedPredictedDescription","predictionsSlice","shouldSuggestShortDescription","shouldSuggestLongDescription","setHasAutoFillConsent","pending","Other","rejected","_predictionsSlice$act","isValidPrice","number","str","String","isFinite","parseInt","indexOf","isInt","isNaN","validateFixedPrice","validateOpeningBid","auctionBinPrice","isAuctionBinSelected","validateAuctionBinPrice","showReservePrice","validateReservePrice","key","_window","toIntOrNull","numberOrString","showCharityDonation","Boolean","editCharity","selectableVats","selectableVatValues","reservePriceCanChangeButNotBeRemoved","vat","reservePriceCost","selectedItemType","priceSlice","validated","setReservePriceVisibility","setCharityDonationVisibility","setEditCharity","setIsAuctionBinSelected","setVat","setSelectedItemType","resetPricesAndVat","setReservePriceCanChangeButNotBeRemoved","_priceSlice$actions","errors","offerTakeaway","offerShipping","globalValidationError","global","offersFreeShipping","shippingOptions","shippingOption","cost","selectedShippingOptions","selectedShippingSize","shippingOptionsLoading","shippingOptionsError","fromCountry","packagingCost","shippingByWeightGroupedBySizes","decoratedShippingProducts","shippingContainsTakeaway","shippingContainsNonTakeaway","mapToDecoratedShippingProduct","shippingProduct","productId","providerId","uuid","uuidv4","shippingSlice","resetSelectedShippingOptions","setShippingOptionsByWeight","productsPerWeightSpanAndSize","_productsPerWeightSpa","flatMap","weightClass","_weightClass$products","productsBySize","size","products","x","flatMapProductsPerWeightSpanAndSizeToDecoratedShippingProducts","getSelectedShippingOptions","autoSelectShippingOptions","_state$shippingByWeig","autoSelectedWeight","autoSelect","_autoSelectedWeight$p","autoSelectedSize","_autoSelectedSize$siz","_autoSelectedSize$pro","_autoSelectedSize$pro2","sizeCategory","p","setShippingOptionsLoading","setShippingOptionSelected","selectedOptions","getSelectedShippingProducts","setSelectedShippingSize","setPackagingCost","setTakeawaySelected","setShippingOptionsError","setShippingFromCountry","_shippingSlice$action","descriptionLanguageCodeIso2","isDescriptionLanguageCodeIso2ChangeAvailable","memberCountryCodeIso2","isDenmarkCountryCode","getValidationError","shortDescriptionSlice","resetShortDescription","setDescriptionLanguageCodeIso2","_shortDescriptionSlic","creationStart","allErrorsVisible","isEditOfPublishedItem","publishPending","publishFailed","publishFailedReasonDisplayText","publishedItemPendingVip","publishedItem","openModal","openModalData","autoSaveEnabled","draftCanBeResumed","itemUpdating","itemUpdated","isDraftSaved","publishDelayed","fadeUi","syiSlice","resetSyi","setCreationStart","showAllErrors","setIsEditOfPublishedItem","setPublishedItemPendingVip","setPublishedItemDelayed","setPublishedItem","setPublishFailed","setPublishPending","setCategoryRestriction","toggleModal","enableAutoSave","disableAutoSave","setItemUpdating","setItemUpdated","setIsDraftSaved","setFadeUi","_syiSlice$actions","templateReducer","savePending","saveFailed","ignoreProperties","setSavePending","setSaveFailed","resetIgnoreProperties","addIgnoreProperties","Set","removeIgnoreProperties","prop","_templateReducer$acti","createSelector","imageCount","predictions","views","templatesApi","deleteTemplate","TEMPLATES_LIST","loadTemplates","useDeleteTemplateMutation","useLoadTemplatesQuery","getAmountDetails","itemState","leadingBid","hasBids","finalPrice","paymentAmountForBid","paymentAmountForFixedPrice","ITEM_STATES","ENDED_AUCTION_WITH_WINNING_BID","title","amount","amountIncludingBuyerProtection","Space","polyRef","forwardRef","ref","_ref$as","as","Component","_ref$direction","direction","alignProp","align","_ref$gap","gap","_ref$wrap","wrap","_ref$inline","inline","className","children","justify","grow","rest","_objectWithoutProperties","_excluded","gapClass","_jsx","classNames","useControllableState","defaultProp","_ref$onChange","onChange","_useUncontrolledState","uncontrolledState","useState","prevValueRef","useRef","handleChange","useCallbackRef","useEffect","current","useUncontrolledState","_useUncontrolledState2","uncontrolledProp","setUncontrolledProp","isControlled","setValue","useCallback","nextValue","pushToDataLayer","dataLayer","isNonInteractive","analyticsData","userTriggered","trackEvent","event","eventCategory","category","eventAction","eventLabel","label","eventValue","eventNonInteractive","hitCallback","Sentry","level","trackPageView","ga","trackTiming","variable","arguments","setPreferredLanguage","code","toLocalizedUrl","Analytics","selectIsLoggedIn","api","locationUtils","logger","feesApi","fetchBaseQuery","baseUrl","getCommissionFee","useGetCommissionFeeQuery","memberLatestPublishedListingApi","getMemberLatestPublishedListing","useGetMemberLatestPublishedListingQuery","valuationApi","getValuation","entries","toString","useGetValuationQuery","fetchAvailableShippingCountries","axios","ENDPOINTS","AVAILABLE_SHIPPING_COUNTRIES","then","finalizeResponse","shippingCountries","availableCountries","country","countryCodeIso2","toLowerCase","countryNameEng","removeBannedCountries","catch","handleError","logError"],"sourceRoot":""}