PageSourceSearch

https://www.cocampo.com/_next/static/chunks/3bek1fin43kua.js

js cocampo.com collected 2026-10-02 12:06:48 UTC 29,836 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,802375,e=>{"use strict";var t=e.i(522459),r=e.i(144908),i=e.i(557922),a=e.i(159514),s=e.i(85562),n=e.i(488778),l=e.i(217755),o=e.i(236919),d=e.i(383143),c=e.i(135404);let p=(0,r.createContext)(null);e.s(["default",0,function({children:e}){let{countrySettings:u}=(0,c.usePageSettings)(),{customer:m,isLoading:h}=(0,d.useCustomerSession)(),x=u?.currencies.find(e=>e.isDefault),{variables:g,changeVariables:f,query:y,invalidateRequest:b}=function({defaultVariables:e,payload:t}){let d=(0,a.useQueryClient)(),[c,p]=(0,r.useState)(e);return{query:(0,i.useQuery)({queryKey:s.QUERY_KEYS.SPOTS.GET_MY_SPOTS(c),queryFn:()=>(function({variables:e,payload:t}){let r=(0,o.createQueryWrapper)({children:l.QUERIES_SPOTS.BUCKET(l.QUERIES_SPOTS.GET_MY_SPOTS(t)),variables:{limit:"Int",page:"Int",address:"[SpotAreasDto!]",keywords:"[String!]",orderBy:"ORDER",sortBy:"SPOTS_SORT_BY",currencyName:"String",status:"[SpotsStatus!]"}});return n.graphqlClient.query({type:"global",query:r,variables:e}).then(e=>e.SpotsQueries.getMySpots||[])})({variables:c,payload:t}),enabled:!!c?.address?.length}),variables:c,changeVariables:e=>{p(t=>({...t,...e}))},invalidateRequest:()=>{d.invalidateQueries({queryKey:s.QUERY_KEYS.SPOTS.GET_MY_SPOTS()})}}}({defaultVariables:{currencyName:x?.name,limit:25,page:0},payload:"id dimension status defaultLanguage refCats internalReference isRent isSale categories features plotType images isExactLocation address {provinceName countryIso} owner {name lastName type companyName badge avatar} translations {title description language} prices {price currency type priceChange}"}),j=(0,r.useMemo)(()=>{let e=g?.address?.find(e=>"COUNTRY"===e.type)?.isoCodes[0],t=g?.status;!e&&m?.spots&&(e=m.spots.reduce((e,t)=>(t.totalCount||0)>(e.totalCount||0)?t:e,m?.spots?.[0]??{totalCount:0,countryIso:void 0})?.countryIso);let r=m?.spots?.find(t=>t.countryIso===e);return t?r?.ownedSpots.find(e=>e.status===t)?.count??0:r?.totalCount??0},[m,g?.address,g?.status]);return(0,r.useEffect)(()=>{if(m?.spots&&!g?.address?.length){let e=m.spots.reduce((e,t)=>(t.totalCount||0)>(e.totalCount||0)?t:e,m.spots[0]);e?.countryIso&&f({address:[{isoCodes:[e.countryIso],type:"COUNTRY"}]})}},[m?.spots,g?.address?.length,f]),(0,t.jsx)(p.Provider,{value:{variables:g,spots:y.data??[],totalCount:j,isLoading:y.isLoading||h,isError:y.isError,refetch:y.refetch,invalidateRequest:b,changeVariables:f},children:e})},"useMySpotsContext",0,()=>(0,r.useContext)(p)],802375)},432618,e=>{"use strict";var t=e.i(144908),r=e.i(557922),i=e.i(85562),a=e.i(488778),s=e.i(610398),n=e.i(236919);e.s(["default",0,function({defaultSearch:e,payload:l}){let[o,d]=(0,t.useState)(()=>e),c=(0,t.useCallback)(e=>d(t=>({...t,...e})),[]);return{query:(0,r.useQuery)({queryKey:i.QUERY_KEYS.SUBSCRIPTIONS.GET_SUBSCRIPTIONS(Object.entries(o).map(([e,t])=>`${e}:${t}`).join(", ")),queryFn:()=>{let e=(0,n.createQueryWrapper)({children:s.QUERIES_SUBSCRIPTIONS.BUCKET(s.QUERIES_SUBSCRIPTIONS.GET_PRODUCTS(l)),variables:{subscriptionsCountry:"String",ids:"[String!]"}});return a.graphqlClient.query({type:"global",query:e,variables:o}).then(e=>e.SubscriptionsQuery.getProducts)}}),variables:o,updateSearchVariables:c}}])},653624,e=>{"use strict";var t=e.i(522459),r=e.i(738932),i=e.i(135404),a=e.i(638334),s=e.i(608523);function n({spot:e,variant:r,size:i="full",imagePriorityLoad:a=!1}){let l=e.translations.find(t=>t.language===e.defaultLanguage),o="private"===e.owner.type,d="FREE"!==e.owner.badge&&!o,c=e.features?.includes("highlightedProvince")||e.features?.includes("highlightedCountry")||!1,p=e.images;o||d||c||(p=p.slice(0,10));let u=(0,s.useSpotImageGrid)({images:p,size:"medium",rounded:!0,altText:l?.title,priority:a,sizes:"horizontal"===r?"(max-width: 600px) 100vw, 600px":"(max-width: 600px) 100vw, (max-width: 905px) 33vw, 384px"}),m="vertical"===r?`${({small:"tablet:h-[159px] h-[250px]",medium:"tablet:h-[384px] h-[267px]",full:"tablet:h-[384px] h-[267px]"})[i]} w-full rounded-[8px]`:`${({small:"tablet:max-w-[244px] desktop:max-w-[292px] tablet:h-[273px] tablet:w-[244px] desktop:w-[292px] h-[240px]",medium:"tablet:max-w-[244px] desktop:max-w-[292px] tablet:h-[273px] tablet:w-[244px] desktop:w-[292px] h-[240px]",full:"tablet:max-w-[244px] desktop:max-w-[292px] tablet:h-[273px] tablet:w-[244px] desktop:w-[292px] h-[240px]"})[i]} w-full rounded-[8px]`;return(0,t.jsx)("div",{className:m,children:u.container})}var l=e.i(54972),o=e.i(616403);function d({owner:e}){let r=(0,l.useTranslations)("Common.SpotsHighlighter");return e?.type==="private"?(0,t.jsx)("div",{className:"flex w-full justify-end",children:(0,t.jsx)(o.Typography,{variant:"caption",color:"primary-miron-70",children:r("PrivateCustomer")})}):e?.type!=="agent"||e?.badge==="FREE"?null:(0,t.jsx)("div",{className:"flex w-full justify-end",children:(0,t.jsx)(o.Typography,{variant:"caption",color:"primary-miron-70",children:r("Common")})})}var c=e.i(291776);
1let p=["walled","irrigationRights","agriculturalWarehouse","accessRoad","electricitySupply","nearUrbanNucleus","wellOrDrilling","existingBuilding"],u=["bankOwner","privateOwner",...p],m=["bankOwner","highlightedProvince","highlightedCountry","privateOwner",...p];function h({tags:e,isInternal:r}){let i=(0,l.useTranslations)("Common.SpotTags"),a=r?u:m,s=e?.filter(e=>!a.includes(e));return(0,t.jsx)("div",{className:"gap-s flex",children:s?.map(e=>{let r=(e=>{switch(e){case"newSpot":case"draft":return"default";case"inactive":default:return"dark";case"published":case"highlightedProvince":case"highlightedCountry":return"success";case"pending":return"error";case"completed":return"light";case"governmentPlot":return"warning"}})(e);return(0,t.jsx)(c.Tag,{variant:r,children:(0,t.jsx)(o.Typography,{variant:"caption",weight:"medium",color:"dark"===r?"primary-calm":"current",children:i(e)})},`${e}-${r}`)})})}var x=e.i(715915),g=e.i(114382),f=e.i(30900);function y({direction:e}){if(!e)return null;let r="polygon(50% 0,100% 100%,0 100%)",i="bg-secondary-spring";return e>0||(r="polygon(100% 0,50% 100%, 0 0)",i="bg-support-matador"),(0,t.jsx)("div",{className:"gap-s flex items-center",children:(0,t.jsx)("div",{style:{clipPath:r},className:`aspect-[2] h-s ${i}`})})}function b({price:e,isPriceHidden:r,currency:i}){let a=(0,l.useTranslations)("Common.SpotDetails"),s=(0,l.useFormatter)();if(r)return(0,t.jsx)(o.Typography,{variant:"subheader",weight:"semibold",children:a("PriceHidden")});let n=e.find(e=>e.currency?.toLowerCase()===i?.toLowerCase());n||(n=e[0]);let d=s.number(Number(n?.price||0),{style:"currency",currency:n?.currency||"EUR",currencyDisplay:"code",minimumFractionDigits:0});return(0,t.jsxs)("div",{className:"gap-xs flex items-center",children:[(0,t.jsx)(o.Typography,{variant:"subheader",weight:"semibold",children:d}),(0,t.jsx)(y,{direction:n?.priceChange})]})}var j=e.i(144908),v=e.i(280019),S=e.i(175758),w=e.i(491593),C=e.i(445739),T=e.i(815314),N=e.i(802375),P=e.i(334735),k=e.i(779251),_=e.i(851498);function E({spot:e}){let r=(0,l.useTranslations)("Common.SpotInternalActions"),{openDialog:i}=(0,C.useDialog)(),{handleEdit:a,handleDeactivate:s,handleActivate:n,handleDelete:o,ACTIONS_MAP:d}=(0,P.default)(),{refetch:c,invalidateRequest:p}=(0,N.useMySpotsContext)(),[u,m]=(0,j.useState)(!1),[h,x]=(0,j.useState)(!1);if("pending"===e.status)return null;let g=t=>{t&&(t.stopPropagation(),t.preventDefault()),a({spot:e,callback:()=>{p(),c()}})},f=t=>{t&&(t.stopPropagation(),t.preventDefault()),s({spot:e,callback:()=>{p(),c()}})},y=t=>{t&&(t.stopPropagation(),t.preventDefault()),n({spot:e,callback:()=>{p(),c()}})},b=t=>{t&&(t.stopPropagation(),t.preventDefault()),o({spot:e,callback:()=>{p(),c()}})},I=r=>{r&&(r.stopPropagation(),r.preventDefault()),i({component:(0,t.jsx)(_.default,{spot:e}),backdrop:!0})},B={draft:[(0,t.jsx)(v.Button,{className:"tablet:hidden",colorScheme:"light",onClick:g,children:r("EditBtnLabel")},"edit"),(0,t.jsx)(v.Button,{className:"tablet:flex hidden",variant:"outlined",onClick:g,children:r("EditBtnLabel")},"edit-mobile"),(0,t.jsx)(v.Button,{className:"tablet:hidden",colorScheme:"light",onClick:b,children:r("DeleteBtnLabel")},"delete"),(0,t.jsx)(v.Button,{className:"tablet:flex hidden",variant:"outlined",onClick:b,children:r("DeleteBtnLabel")}
1,"delete-mobile")],pending:[],published:[(0,t.jsx)(v.Button,{className:"tablet:hidden",colorScheme:"light",onClick:g,children:r("EditBtnLabel")},"edit"),(0,t.jsx)(v.Button,{className:"tablet:flex hidden",variant:"outlined",onClick:g,children:r("EditBtnLabel")},"edit-mobile"),(0,t.jsxs)(S.Dropdown,{open:h,align:"right",trigger:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.Button,{className:"tablet:hidden",colorScheme:"light",onClick:e=>{e.stopPropagation(),e.preventDefault(),x(e=>!e)},icon:(0,t.jsx)(T.More,{size:"xs"}),children:r("OptionsBtnLabel")}),(0,t.jsx)(v.Button,{className:"tablet:flex hidden",variant:"outlined",onClick:e=>{e.stopPropagation(),e.preventDefault(),x(e=>!e)},icon:(0,t.jsx)(T.More,{size:"xs"}),children:r("OptionsBtnLabel")})]}),onClickAway:()=>x(!1),children:[(0,t.jsx)(w.ListItem,{title:r("DeactivateBtnLabel"),onClick:f}),(0,t.jsx)(w.ListItem,{title:r("ShareBtnLabel"),onClick:r=>{r.stopPropagation(),r.preventDefault(),i({component:(0,t.jsx)(k.default,{spot:e,type:"spot"}),backdrop:!0})}}),(0,t.jsx)(w.ListItem,{title:r("DeleteBtnLabel"),onClick:b})]},"options"),(0,t.jsx)(v.Button,{onClick:I,disabled:e.features?.includes("highlightedProvince")||e.features?.includes("highlightedCountry"),icon:(0,t.jsx)(T.StarBorderRounded,{color:"primary-calm"}),children:r("HighlightBtnLabel")},"highlight")],inactive:[(0,t.jsx)(v.Button,{className:"tablet:hidden",colorScheme:"light",onClick:g,children:r("EditBtnLabel")},"edit"),(0,t.jsx)(v.Button,{className:"tablet:flex hidden",variant:"outlined",onClick:g,children:r("EditBtnLabel")},"edit-mobile"),(0,t.jsx)(v.Button,{className:"tablet:hidden",colorScheme:"light",onClick:y,children:r("ActivateBtnLabel")},"activate"),(0,t.jsx)(v.Button,{className:"tablet:flex hidden",variant:"outlined",onClick:y,children:r("ActivateBtnLabel")},"activate-mobile")],deleted:[],completed:[],blocked:[]};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"gap-s tablet:flex hidden flex-row",children:B[e.status]}),(0,t.jsxs)("div",{className:"tablet:hidden gap-m flex w-full flex-col",children:["published"===e.status&&(0,t.jsx)(v.Button,{onClick:I,disabled:e.features?.includes("highlightedProvince")||e.features?.includes("highlightedCountry"),icon:(0,t.jsx)(T.StarBorderRounded,{color:"primary-calm"}),children:r("HighlightBtnLabel")},"highlight"),(0,t.jsxs)(S.Dropdown,{trigger:(0,t.jsx)(v.Button,{onClick:e=>{e.stopPropagation(),e.preventDefault(),m(e=>!e)},icon:(0,t.jsx)(T.More,{size:"xs"}),variant:"outlined",stretch:!0,children:r("OptionsBtnLabel")}),open:u,align:"right",onClickAway:()=>m(!1),children:[d[e.status].includes("edit")&&(0,t.jsx)(w.ListItem,{title:r("EditBtnLabel"),onClick:g}),d[e.status].includes("deactivate")&&(0,t.jsx)(w.ListItem,{title:r("DeactivateBtnLabel"),onClick:f}),d[e.status].includes("activate")&&(0,t.jsx)(w.ListItem,{title:r("ActivateBtnLabel"),onClick:y}),d[e.status].includes("share")&&(0,t.jsx)(w.ListItem,{title:r("ShareBtnLabel"),onClick:r=>{r.stopPropagation(),r.preventDefault(),i({component:(0,t.jsx)(k.default,{spot:e,type:"spot"}),backdrop:!0})}}),d[e.status].includes("delete")&&(0,t.jsx)(w.ListItem,{title:r("DeleteBtnLabel"),onClick:b})]})]})]})}var I=e.i(901929);function B({spot:e}){(0,l.useTranslations)("Common.SpotActions");let{openDialog:r}=(0,C.useDialog)(),{handleFavorite:i,favoriteButtonIcon:a}=(0,I.default)(e.id);return(0,t.jsxs)("div",{className:"gap-m flex",children:[(0,t.jsx)(v.Button,{variant:"text",size:"xSmall",icon:(0,t.jsx)(T.Share,{}),onClick:i=>{i&&(i.stopPropagation(),i.preventDefault()),r({component:(0,t.jsx)(k.default,{spot:e,type:"spot"}),backdrop:!0})}}),(0,t.jsx)(v.Button,{variant:"text",icon:a,onClick:i,size:"xSmall"})]})}function D({spot:e,internalActions:r}){return r?(0,t.jsx)("div",{className:"flex w-full justify-end",children:(0,t.jsx)(E,{spot:e})}):(0,t.jsx)(B,{spot:e})}function L({isSemanticElement:e=!1,currency:i,spot:a,internalActions:s=!1,actions:n=!1,owner:d=!1}){let c=(0,l.useTranslations)("Common.SpotDetails"),[p,u]=(0,x.useLocale)().split("-"),m=(0,l.useFormatter)(),h=a.defaultLanguage,y=s?{pathname:"/my-spots/preview",query:{spotId:a.id}}:{pathname:"/spot/[spot_id]",params:{spot_id:a.id}},j=a.translations.find(e=>e.language===u)||a.translations.find(e=>e.language===h),v=a.address.provinceName,S=a.plotType,w=a.categories,C="private"===a.owner.type,T="FREE"!==a.owner.badge&&!C,N=a.features?.includes("highlightedProvince")||a.features?.includes("highlightedCountry")||!1;return(0,t.jsxs)("div",{className:"flex gap-m w-full flex-col justify-between",children:[(0,t.jsxs)("div",{className:"gap-s flex flex-col",children:[(0,t.jsxs)(r.Link,{prefetch:!1,href:y,className:"gap-m flex w-full items-start justify-between",children:[(0,t.jsx)(o.Typography,{variant:"subheader",tag:e?"h2":"p",weight:"bold",fontFamily:"secondary",children:j?.title}),(0,t.jsx)("div",{className:"hidden tablet:block",children:!a.features?.includes("governmentPlot")&&(0,t.jsx)(b,{price:a.prices,currency:i,isPriceHidden:a.isPriceHidden})})]}),(0,t.jsxs)("div",{className:"flex tablet:flex-col flex-col-reverse gap-s",children:[(0,t.jsxs)("div",{className:"gap-s flex",children:[(0,t.jsx)(o.Typography,{variant:"body-m",children:c("Dimensions",{count:m.number(Number(a?.dimension))})}),void 0!==a.dimension&&(0,t.jsx)(o.Typography,{variant:"body-m",children:" | "}),(0,t.jsx)(o.Typography,{variant:"body-m",children:v})]}),(0,t.jsxs)("div",{className:"gap-s flex flex-wrap",children:[S&&(0,t.jsx)(o.Typography,{variant:"caption",children:c(`SpotType_${S}`).toUpperCase()}),!!(S&&w?.length)&&(0,t.jsx)(o.Typography,{variant:"caption",children:"|"}),w?.map((e,r)=>(0,t.jsxs)(o.Typography,{variant:"caption",children:[c(`Category_${e}`).toUpperCase(),r!==w.length-1&&" • "]},e))]})]}),(0,t.jsxs)(o.Typography,{variant:"caption",className:"hidden tablet:block",children:[j?.description.slice(0,160),!!j?.description?.length&&j?.description?.length>160&&"..."]}),(0,t.jsxs)(o.Typography,{variant:"caption",className:"block tablet:hidden",children:[j?.description.slice(0,100),!!j?.description?.length&&j?.description?.length>100&&"..."]})]}
1),!a.features?.includes("governmentPlot")&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"gap-m tablet:flex flex-col hidden",children:[d&&(0,t.jsx)(f.default,{owner:a.owner,isHighlighted:N}),n&&(0,t.jsxs)("div",{className:"gap-3xl flex flex-row justify-between",children:[(0,t.jsx)("div",{className:"gap-m flex flex-1",children:!s&&(T||N||C)&&(0,t.jsx)(g.default,{extendActions:C||T||N,spotId:a.id,isHighlighted:N,useCase:"spot_listing_card",mode:"spot"})}),(0,t.jsx)(D,{spot:a,internalActions:s})]})]}),(0,t.jsxs)("div",{className:"gap-s p-s bg-secondary-rock flex flex-col rounded-lg tablet:hidden",children:[(0,t.jsxs)("div",{className:"gap-s tablet:flex-row tablet:items-center flex flex-col items-start justify-between",children:[!a.features?.includes("governmentPlot")&&(0,t.jsx)(b,{price:a.prices,currency:i,isPriceHidden:a.isPriceHidden}),n&&(0,t.jsx)(D,{spot:a,internalActions:s})]}),d&&(0,t.jsx)(f.default,{owner:a.owner,isHighlighted:N}),!s&&n&&(0,t.jsx)(g.default,{extendActions:T||N,spotId:a.id,isHighlighted:N,useCase:"spot_listing_card",mode:"spot"})]})]})]})}function $({highlight:e,spot:r,tags:i,internalActions:s,actions:l,owner:o,currency:c,isSemanticElement:p,imagePriorityLoad:u,divider:m,status:x}){return(0,t.jsxs)("div",{className:"gap-s tablet:w-[692px] desktop:w-[818px] flex w-full flex-col",children:[e&&(0,t.jsx)(d,{owner:r.owner}),(0,t.jsxs)("div",{className:"t gap-s tablet:flex-row tablet:gap-m flex flex-col",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("div",{className:"absolute top-s left-s z-1",children:[x&&(0,t.jsx)(h,{tags:[r.status]}),i&&(0,t.jsx)(h,{tags:r.features,isInternal:s})]}),(0,t.jsx)(n,{spot:r,size:"medium",variant:"horizontal",imagePriorityLoad:u})]}),(0,t.jsx)(L,{spot:r,internalActions:s,actions:l,owner:o,currency:c,isSemanticElement:p})]}),m&&(0,t.jsx)("div",{className:"pt-m",children:(0,t.jsx)(a.Divider,{size:"xs",color:"primary-miron-30"})})]})}var R=e.i(129168);function O({owner:e,spot:r}){if(r.owner?.badge==="FREE")return null;let i=r.features?.includes("highlightedProvince")||r.features?.includes("highlightedCountry");return r.features?.includes("governmentPlot")?(0,t.jsxs)("div",{className:"p-s bg-secondary-rock gap-s flex w-full flex-col rounded-lg",children:[e&&(0,t.jsx)(f.default,{owner:r.owner,isHighlighted:i}),(0,t.jsx)("div",{className:"gap-s flex w-full *:flex-1",children:(0,t.jsx)(g.default,{extendActions:!0,spotId:r.id,isHighlighted:i,useCase:"spot_listing_card"})})]}):null}function A({spot:e,currency:r="eur",actions:i=!0,isSemanticElement:a=!1,internalActions:s}){let n=(0,l.useTranslations)("Common.SpotDetails"),[d,c]=(0,x.useLocale)().split("-"),p=(0,l.useFormatter)(),u=e.translations.find(e=>e.language===c),m=e.translations.find(t=>t.language===e.defaultLanguage),h=e.dimension;return(0,t.jsxs)("div",{className:"gap-s flex w-full flex-col",children:[(0,t.jsx)(o.Typography,{tag:a?"h2":"p",variant:"subheader",weight:"bold",fontFamily:"secondary",className:"min-h-[51.2px]",children:(u||m)?.title}),(0,t.jsxs)("div",{className:"gap-s flex flex-wrap",children:[e.plotType&&(0,t.jsx)(o.Typography,{variant:"caption",children:n(`SpotType_${e.plotType}`).toUpperCase()}),e.plotType&&!!e.categories?.length&&(0,t.jsx)(o.Typography,{variant:"caption",children:"|"}),e.categories?.map((r,i)=>(0,t.jsxs)(o.Typography,{variant:"caption",children:[n(`Category_${r}`).toUpperCase(),i!==(e.categories?.length||0)-1&&" • "]},r))]}),(0,t.jsxs)(o.Typography,{variant:"body-m",children:[n("Dimensions",{count:p.number(Number(h))}),void 0!==h&&" | ",e.address.provinceName]}),(0,t.jsxs)("div",{className:"flex justify-between",children:[!e.features?.includes("governmentPlot")&&(0,t.jsx)(b,{price:e.prices,isPriceHidden:e.isPriceHidden,currency:r}),!s&&(0,t.jsx)(B,{spot:e})]})]})}function U({spot:e,isSemanticElement:r,size:i="full",owner:s,imagePriorityLoad:l,...o}){let c="gap-m flex h-full flex-col";switch(i){case"full":c+=" w-full min-w-[295px] max-w-[295px] tablet:min-w-[405.33px] tablet:max-w-[405.33px]";break;case"medium":c+=" w-[384px]";break;case"small":c+=" w-[250px]"}return(0,t.jsxs)("div",{className:c,children:[o.highlight&&(0,t.jsx)(d,{owner:e.owner}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n,{spot:e,variant:"vertical",size:i,imagePriorityLoad:l}),(0,t.jsx)("div",{className:"absolute top-s left-s",children:o.tags&&(0,t.jsx)(h,{tags:e.features,isInternal:o.internalActions})})]}),(0,t.jsx)(A,{spot:e,isSemanticElement:r,internalActions:o.internalActions,actions:o.actions}),o.actions&&(0,t.jsx)(O,{...o,spot:e,owner:s}),o.divider&&(0,t.jsx)(a.Divider,{size:"xs",orientation:"horizontal",color:"primary-miron-40"})]})}let M=({variant:e="horizontal",spot:a,internalActions:s,...n})=>{let{countrySettings:l}=(0,i.usePageSettings)(),o=(0,r.useRouter)(),d=s?{pathname:"/my-spots/preview",query:{spotId:a.id}}:{pathname:"/spot/[spot_id]",params:{spot_id:a.id}},c=l?.currencies.find(e=>e.isDefault)?.name,p=e=>{let t=e.target;t?.closest('button, a, input, textarea, select, [role="button"]')||o.push(d)};return"horizontal"===e?(0,t.jsx)("div",{onClick:p,className:"tablet:w-fit w-full cursor-pointer",children:(0,t.jsx)($,{...n,internalActions:s,spot:a,currency:n.currency?n.currency:c})}):(0,t.jsx)("div",{onClick:p,className:"w-full",children:(0,t.jsx)(U,{...n,internalActions:s,spot:a,currency:n.currency?n.currency:c})})};M.Loading=function({variant:e="horizontal",size:r="full"}){return"vertical"===e?(0,t.jsxs)("div",{className:"gap-m tablet:w-full flex w-full cursor-pointer flex-col",children:[(0,t.jsx)("div",{className:{small:"tablet:h-[159px] h-[250px]",medium:"tablet:h-[384px] h-[267px]",full:"tablet:h-[384px] h-full"}[r],children:(0,t.jsx)(R.Skeleton,{type:"rect",width:"full",height:"full"})}),(0,t.jsx)(R.Skeleton,{type:"rect",width:"full",height:"2xl"}),(0,t.jsx)(R.Skeleton,{type:"rect",width:"3xl",height:"l"}),(0,t.jsx)(R.Skeleton,{type:"rect",width:"4xl",height:"l"}),(0,t.jsx)("div",{className:"h-[64px] w-full",children:(0,t.jsx)(R.Skeleton,{type:"rect",width:"full",height:"full"})}),(0,t.jsx)(a.Divider,{color:"primary-miron-40",size:"xs"})]}):(0,t.jsxs)("div",{className:"gap-s tablet:max-w-[692px] desktop:max-w-[818px] tablet:flex-row flex w-full flex-col",children:[(0,t.jsx)("div",{className:"tablet:max-w-[244px] desktop:max-w-[292px] tablet:h-[273px] tablet:w-[244px] desktop:w-[292px] h-[240px] w-full",children:(0,t.jsx)(R.Skeleton,{width:"full",height:"full"})}),(0,t.jsxs)("div",{className:"gap-s flex flex-1 flex-col justify-between",children:[(0,t.jsxs)("div",{className:"gap-s flex flex-col",children:[(0,t.jsx)(R.Skeleton,{width:"full",height:"2xl"}),(0,t.jsx)(R.Skeleton,{width:"3xl",height:"l"}),(0,t.jsx)(R.Skeleton,{width:"4xl",height:"l"})]}),(0,t.jsx)("div",{className:"h-[64px] w-full",children:(0,t.jsx)(R.Skeleton,{width:"full",height:"full"})})]})]})},e.s(["default",0,M],653624)},851498,e=>{"use strict";var t=e.i(522459),r=e.i(144908),i=e.i(54972),a=e.i(280019),s=e.i(441875),n=e.i(291967),l=e.i(667562),o=e.i(616403),d=e.i(445739),c=e.i(432618),p=e.i(625721),u=e.i(738932),m=e.i(743394),h=e.i(474157);e.s(["default",0,function({spot:e}){let x=(0,i.useTranslations)("Common.SpotHighlightModal"),{closeDialog:g}=(0,d.useDialog)(),{setCookies:f}=(0,m.default)(),y=(0,u.useRouter)(),[b,j]=(0,r.useState)("highlightingSpotProvince"),[v,S]=(0,r.useState)(),{query:w}=(0,c.default)({defaultSearch:{subscriptionsCountry:e.address.countryIso},payload:"id price {priceMonth currency} info {includedServices excludedServices features name} type country countryName"}),C=(0,r.useMemo)(()=>w.data?.filter(e=>e.type===b),[w.data,b]);return(0,r.useEffect)(()=>{S(w.data?.find(e=>e.type===b&&e.info.features.includes("spot_highlighted_period_3_months"))?.id)},[w.data,b]),(0,t.jsxs)(s.Modal,{children:[(0,t.jsx)(s.Modal.Header,{title:x("ModalTitle"),onClose:g}),(0,t.jsx)(s.Modal.Content,{children:(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsxs)("div",{className:"gap-l flex max-w-[451px] flex-col items-center self-center",children:[(0,t.jsx)(o.Typography,{color:"primary-miron-70",className:"text-center",children:x("SelectTypeDescription")}),(0,t.jsxs)(l.ToggleButtonGroup,{defaultSelection:b,onChange:e=>{j(e)},children:[(0,t.jsx)(n.ToggleButton,{value:"highlightingSpotProvince",children:x("HighlightBtnLabel_highlightingSpotProvince")}),(0,t.jsx)(n.ToggleButton,{value:"highlightingSpotCountry",children:x("HighlightBtnLabel_highlightingSpotCountry")})]}),(0,t.jsx)(o.Typography,{color:"primary-miron-70",className:"text-center",children:x(`SelectPriceDescription_${b}`)}),(0,t.jsx)("div",{className:"gap-m flex w-full max-w-[400px] flex-col",children:C?.toSorted((e,t)=>t.price.priceMonth-e.price.priceMonth)?.map(e=>(0,t.jsx)(h.default,{onClick:e=>S(e),selected:e.id===v,product:e},e.id))}),(0,t.jsx)(o.Typography,{variant:"caption",className:"text-center",color:"primary-miron-70",children:x("Disclaimer")})]})})}),(0,t.jsx)(s.Modal.Footer,{children:(0,t.jsxs)("div",{className:"gap-m flex w-full justify-end",children:[(0,t.jsx)(a.Button,{variant:"outlined",onClick:g,children:x("CancelBtnLabel")}),(0,t.jsx)(a.Button,{disabled:!v,onClick:()=>{g(),f({[p.COOKIES_SUBSCRIPTIONS_SELECTED_PRODUCTS]:JSON.stringify({origin:"spotHighlight",products:w.data?.filter(e=>e.id===v),spotId:e.id,priceMode:"onetime"})}
1),y.push({pathname:"/payment"})},children:x("HighlightBtnLabel")})]})})]})}])},474157,e=>{"use strict";var t=e.i(522459),r=e.i(54972),i=e.i(478418),a=e.i(291776),s=e.i(616403);e.s(["default",0,function({selected:e,disabled:n,product:l,onClick:o}){let d=(0,r.useTranslations)("Common.SpotHighlightModal"),c=(0,r.useFormatter)(),p=20*!!l.info.features.includes("spot_highlighted_period_3_months"),u=" flex gap-m justify-between p-m rounded-lg border-[1px] border-primary-miron-90 w-full";return p>0?u+=" bg-primary-miron-100":u+=" text-primary-miron-100",n?u+=" opacity-50 cursor-not-allowed":u+=" cursor-pointer",(0,t.jsxs)("button",{className:u,onClick:()=>o(l.id),children:[(0,t.jsx)(i.Radio,{checked:e,variant:p?"light":"dark",disabled:n,readOnly:!0,id:l.id,label:d(`ProductName_${l.info.features[0]}`)}),(0,t.jsxs)("div",{children:[(0,t.jsx)(s.Typography,{color:p>0?"primary-calm":"primary-miron-100",variant:"header-6",children:c.number(l.price.priceMonth,{style:"currency",currencyDisplay:"code",currency:l.price.currency,minimumFractionDigits:2})}),(0,t.jsx)(a.Tag,{variant:p>0?"spring":"default",children:p>0?d("Saving",{saving:`${c.number(p,{minimumFractionDigits:0})}%`}):d("NoSaving")})]})]})}])},610398,e=>{"use strict";e.s(["QUERIES_SUBSCRIPTIONS",0,{BUCKET:e=>`SubscriptionsQuery {${e}}`,GET_PRODUCTS:e=>`getProducts(country: $subscriptionsCountry, ids: $ids){${e}}`,GET_PRODUCT_PRICES:e=>`getSubscriptionsPrices(productsIds: $productsIds, recurrentType: $recurrentType){${e}}`,GET_PAYMENT_PARAMS:e=>`getPaymentParamsStartPayment(formData: $paymentFormData, productsIds: $productIds, recurrentType: $recurrentType){${e}}`,GET_PAYMENT_PARAMS_WITH_DISCOUNT:e=>`getPaymentParamsStartPayment(formData: $paymentFormData, productsIds: $productIds, recurrentType: $recurrentType, discountCode: $discountCode){${e}}`,VALIDATE_DISCOUNT_CODE:e=>`validateDiscountCode(code: $code, productsIds: $productsIds, recurrentType: $recurrentType){${e}}`,GET_INVOICE_PDF:()=>"getInvoicePdf(invoiceId: $invoiceId)",GET_UPDATE_PAYMENT_PARAMS:()=>"getPaymentParamsUpdatePayment(orderNumber: $orderNumber) {signatureVersion signature marchantParameters url}",GET_HIGHLIGHTED_SPOTS_PAYMENT_PARAMS:e=>`getPaymentParamsHighlightedSpots(formData: $paymentFormData, spotId: $spotId, productId: $productId){${e}}`}])},291776,e=>{"use strict";let t={default:"rounded-[100px] bg-primary-miron-10 border border-transparent font-semibold",success:"rounded-[100px] bg-secondary-laurel border border-transparent font-semibold",error:"rounded-[100px] bg-support-matador-clear border border-transparent font-semibold",dark:"rounded-[100px] bg-primary-miron-100 text-primary-calm border border-transparent font-semibold",light:"rounded-[100px] bg-primary-calm border border-primary-miron-20 font-semibold",warning:"rounded-[100px] bg-support-warning-clear border border-transparent font-semibold",info:"rounded-[100px] bg-support-info-clear border border-transparent font-semibold",spring:"rounded-[100px] bg-secondary-spring border border-transparent font-semibold",neutral:"rounded-[100px] bg-primary-miron-70 text-primary-calm border border-transparent font-semibold",outlined_default:"rounded-[4px] bg-primary-miron-10 border border-primary-miron-80",outlined_success:"rounded-[4px] bg-support-success-clear border border-support-success",outlined_error:"rounded-[4px] bg-support-matador-clear border border-support-matador",outlined_dark:"rounded-[4px] bg-primary-miron-80 border border-primary-miron text-primary-calm",outlined_light:"rounded-[4px] bg-primary-calm border border-primary-miron-20",outlined_warning:"rounded-[4px] bg-support-warning-clear border border-support-warning",outlined_info:"rounded-[4px] bg-support-info-clear border border-support-info",flat_matador:"rounded-[100px] bg-support-matador border border-support-matador font-semibold text-primary-calm",flat_spring:"rounded-[100px] bg-secondary-spring border border-secondary-spring font-semibold text-primary-calm",flat_calm:"rounded-[100px] bg-primary-calm border border-primary-miron-20 font-semibold"},r={s:"py-[4px] px-s",m:"py-[4px] px-[12px]"};var i=e.i(144908),a=e.i(522459);let s=i.default.forwardRef(({children:e,size:i="s",variant:s="default"},n)=>{let l=`flex item-center justify-center text-caption text-nowrap ${t[s]} ${r[i]}`;return(0,a.jsx)("div",{className:"flex",children:(0,a.jsx)("div",{className:l,ref:n,children:e})})});s.displayName="Tag",e.s(["Tag",0,s],291776)},291967,667562,e=>{"use strict";let t={primary:{containerClasses:"bg-transparent border-primary-miron-100 px-[7
1px] mx-[12px]",childrenClasses:"font-semibold border-transparent"},secondary:{containerClasses:"bg-secondary-laurel border-secondary-laurel px-[7px]",childrenClasses:"border-transparent"}},r={primary:{containerClasses:"bg-primary-miron-10 border-primary-miron-10 px-[20px] mx-0",childrenClasses:"border-primary-miron-100 border-primary-miron-100"},secondary:{containerClasses:"bg-transparent border-transparent px-[20px] mx-0",childrenClasses:"border-primary-miron-100 border-primary-miron-100"}},i=e=>"horizontal"===e?"flex-row":"flex-col";var a=e.i(144908),s=e.i(522459);e.s(["ToggleButton",0,({children:e,value:i,variant:n="primary",stretch:l=!1,selected:o=!1,onClick:d})=>{let c=o?t[n]:r[n],p=`flex flex-row border-b-[1px] border-solid justify-center items-center pt-[12px] pb-[11px] cursor-pointer transition-colors ease-in-out duration-100 ${c.containerClasses} ${l?"flex-1":""}`,u=`border-b-[1px] border-solid ${c.childrenClasses}`,m=a.default.useCallback(()=>{d&&d(i)},[i]);return(0,s.jsx)("div",{className:p,onClick:m,children:(0,s.jsx)("div",{className:u,children:e})})}],291967),e.s(["ToggleButtonGroup",0,({children:e,orientation:t="horizontal",variant:r="primary",stretch:n=!1,onChange:l,defaultSelection:o})=>{let[d,c]=a.default.useState(()=>o||""),p=`flex ${i(t)} ${i(t)}`,u=a.default.useCallback(e=>{c(e),l&&l(e)},[]),m=a.default.Children.map(e,e=>a.default.isValidElement(e)?a.default.cloneElement(e,{variant:r,stretch:n,onClick:u,selected:d===e.props.value}):e);return(0,s.jsx)("div",{className:p,children:m})}],667562)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.