1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[41960],{466612:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>I});var n=t(729136),i=t.n(n),o=t(490845),a=t(349837),c=t(233300),l=t(510353),u=t(312619),s=t(333959),f=t(952226),p={olxpl:"https://www.otomoto.pl/finansowanie/redirect/listing-ad-card-olx-horizontals-entrypoint",olxro:"https://www.autovit.ro/finantare/redirect/listing-ad-card-olx-horizontals-entrypoint"},d={tpp:"listing",tpb:"listing-page-adcard"},b=t(389213),v=t(92397);function y(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function g(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?y(Object(t),!0).forEach(function(r){O(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function O(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var m,j,h=t(57766),w=e=>(0,h.jsx)(i().Fragment,{}),P=e=>(0,h.jsx)(i().Fragment,{}),k=t(868968),E=t(498283);function S(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var _=E.default.a(m||(m=S(["\n ","\n"])),e=>{var{theme:r}=e;return"\n font-size: ".concat(r.fontSizes[14],";\n color: ").concat(r.colors["text-brand-primary"],";\n line-height: ").concat(r.fontSizes[16],";\n text-decoration: underline;\n ")}),D=(0,E.default)(k.P3)(j||(j=S(["\n ","\n"])),e=>{var{theme:r}=e;return"\n @media ".concat(r.mediaQueries.sm," {\n margin: ").concat(r.space[8]," 0;\n }\n display: block;\n ")}),x=e=>
1{var{anchorText:r,targetHref:t,targetHrefInNewTab:n,onClick:i}=e;return(0,h.jsx)(_,{onClick:i,target:n?"_blank":"_self",rel:"noopener nofollow",href:t,children:(0,h.jsx)(D,{as:"span",children:r})})},C=e=>{var{targetHref:r,targetHrefInNewTab:t,onClick:n,anchorText:i}=e;return(0,h.jsx)(x,{anchorText:i,onClick:n,targetHref:r,targetHrefInNewTab:t})},I=e=>{var{advert:r}=e,{siteCode:t}=(0,a.MG)(),{formatMessage:i}=(0,o.useIntl)(),{defaultInstalments:y,initialAdvertValuePercentage:O}=(0,c.d)(),{routingEngineRedirect:m}=(0,l.M)({routingEngine:p}),j=(0,n.useMemo)(()=>{var e=Math.round((Number.parseFloat(r.rawPrice)||0)*O);return(0,s.v)(e,y)},[r.rawPrice,y,O]),k=(e=>{var{trackingData:r,advertId:t}=e,{trackEvent:n}=(0,v.rS)(),{trackClickNavigation:i}=(0,b.j)(),o={touch_point_page:r.tpp,touch_point_button:r.tpb};return t&&(o.ad_id=t),{trackOnClick:e=>{i("finance_entry_click",g({},o),e)},trackFallbackClick:()=>{n("finance_entry_click",g({event_type:"click"},o))},trackEntrypointViewed:()=>{n("finance_entry_impression",g({event_type:"click"},o))}}})({advertId:r.id,trackingData:d}),{redirectUrl:E,shouldRedirectOpenInNewTab:S}=(0,n.useMemo)(()=>(0,f.g)({simulation:j,advert:r,trackingData:d,routerUrl:m}),[r,m,j]),_=(0,n.useCallback)(()=>{k.trackEntrypointViewed()},[k]),D=(e=>"olxpl"===e?P:"olxro"===e?C:w)(t);return(0,h.jsx)(u.$,{id:"financing-widget-listing-ad-card-entrypoint",onComponentDisplayed:_,zIndex:"3",children:(0,h.jsx)(D,{targetHref:E,onClick:e=>{k.trackOnClick(e)},targetHrefInNewTab:S,anchorText:i({id:"financing.listing.card.entrypoint.anchor.text",defaultMessage:"Check financing options"})})})}},233300:(e,r,t)=>{"use strict";t.d(r,{d:()=>u});var n=t(729136),i=t(349837),o=t(578437);function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function c(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?a(Object(t),!0).forEach(function(r){l(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function l(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function u(){var{siteCode:e}=(0,i.MG)();return c(c({},(0,n.useMemo)(()=>{var r=r=>e&&void 0!==r[e]?r[e]:r.default;return{currencySymbol:r(o.oq),defaultInstalments:r(o.j0),initialAdvertValuePercentage:r(o.sK),fallbackSimulationSettings:r(o.Nx),currencyConversionFactor:r(o.ji),fallbackSimulationData:r(o.YL),validPeriods:r(o.iZ)}},[e])),{},{siteCode:e})}},510353:(e,r,t)=>{"use strict";t.d(r,{M:()=>o});var n=t(729136),i=t(349837);function o(e){var{routingEngine:r}=e,{siteCode:t}=(0,i.MG)();return{routingEngineRedirect:(0,n.useMemo)(()=>t&&void 0!==r[t]?r[t]:"#",[r,t])}}},389213:(e,r,t)=>{"use strict";t.d(r,{j:()=>c});var n=t(92397);function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function o(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?i(Object(t),!0).forEach(function(r){a(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function a(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var c=()=>{var{trackEvent:e}=(0,n.rS)();return{trackClickNavigation:(r,t,n)=>{e(r,o(o({},t),{},{event_type:"click"}))}}}},312619:(e,r,t)=>{"use strict";t.d(r,{$:()=>p});var n,i=t(729136),o=t(64073);var a,c,l=t(498283).default.span(n||(a=["\n ","\n"],c||(c=a.slice(0)),n=Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(c)}}))),e=>{var{zIndex:r,fillAvailable:t=!1}=e;return"\n height: ".concat(t?"-webkit-fill-available":"auto",";\n ").concat(r&&"\n z-index: ".concat(r,";\n position: relative;\n "),"\n ")}),u=t(842349),s={threshold:0,root:null,rootMargin:"0%"},f=t(57766),p=e=>{var{ErrorComponent:r=()=>(0,f.jsx)(f.Fragment,{}),children:t,id:n,onComponentDisplayed:a,zIndex:c,fillAvailable:p}=e,d=(0,i.useRef)(null),b=((e,r)=>{var{freezeOnceVisible:t=!1}=r,{threshold:n,root:o,rootMargin:a}=s,c=JSON.stringify(n),[l,u]=(0,i.useState)(),[f,p]=(0,i.useState)(null),[d,b]=(0,i.useState)(!1),v=(null==l?void 0:l.isIntersecting)&&t,y=e=>{var[r]=e;u(r)};return(0,i.useEffect)(()=>{var r=null==e?void 0:e.current;if(window.IntersectionObserver&&!v&&r){var t=new IntersectionObserver(y,s);return p(t),t.observe(r),()=>t.disconnect()}},[c,o,a,v,e]),(0,i.useEffect)(()=>{null!=l&&l.isIntersecting&&(b(!0),null==f||f.disconnect())},[null==l?void 0:l.isIntersecting,f]),d})(d,{freezeOnceVisible:!0});return(0,u.k)(()=>{a&&b&&a()},[b]),(0,f.jsx)(o.ErrorBoundary,{fallback:(0,f.jsx)(r,{}),children:(0,f.jsxs)(l,{id:n,"data-testid":n,zIndex:c,fillAvailable:p,children:[t,a?(0,f.jsx)("span",{ref:d}):null]})})}},333959:(e,r,t)=>{"use strict";t.d(r,{v:()=>n});var n=(e,r)=>{var t=16.82/100;return{credit:e,instalments:r,tax:16.82,monthlyInstalment:Math.round(e*t/(12*(1-Math.pow(12/12.1682,r))))}}},952226:(e,r,t)=>{"use strict";function n(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function i(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};
1r%2?n(Object(t),!0).forEach(function(r){o(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):n(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function o(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}t.d(r,{g:()=>a});var a=e=>{var r,t,{simulation:n,advert:o,trackingData:a,routerUrl:c}=e,l=new URLSearchParams(i(i(i(i({platform:"web",advertId:o.id},(null==n?void 0:n.credit)&&{loanCredit:null==n||null===(r=n.credit)||void 0===r?void 0:r.toString()}),(null==n?void 0:n.instalments)&&{loanInstalments:null==n||null===(t=n.instalments)||void 0===t?void 0:t.toString()}),{},{returnUrl:o.url},a.tpp&&{epp:a.tpp}),a.tpb&&{epb:a.tpb}));return{redirectUrl:"".concat(c,"?").concat(l.toString()),shouldRedirectOpenInNewTab:!0}}},64073:function(e,r,t){!function(e,r){"use strict";function t(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var n=t(r);function i(e,r){return i=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},i(e,r)}function o(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,i(e,r)}var a=function(e,r){return void 0===e&&(e=[]),void 0===r&&(r=[]),e.length!==r.length||e.some(function(e,t){return!Object.is(e,r[t])})},c={error:null},l=function(e){function r(){for(var r,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(r=e.call.apply(e,[this].concat(n))||this).state=c,r.resetErrorBoundary=function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];null==r.props.onReset||(e=r.props).onReset.apply(e,n),r.reset()},r}o(r,e),r.getDerivedStateFromError=function(e){return{error:e}};var t=r.prototype;return t.reset=function(){this.setState(c)},t.componentDidCatch=function(e,r){var t,n;null==(t=(n=this.props).onError)||t.call(n,e,r)},t.componentDidUpdate=function(e,r){var t,n,i=this.state.error,o=this.props.resetKeys;null!==i&&null!==r.error&&a(e.resetKeys,o)&&(null==(t=(n=this.props).onResetKeysChange)||t.call(n,e.resetKeys,o),this.reset())},t.render=function(){var e=this.state.error,r=this.props,t=r.fallbackRender,i=r.FallbackComponent,o=r.fallback;if(null!==e){var a={error:e,resetErrorBoundary:this.resetErrorBoundary};if(n.isValidElement(o))return o;if("function"==typeof t)return t(a);if(i)return n.createElement(i,a);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},r}(n.Component);function u(e,r){var t=function(t){return n.createElement(l,r,n.createElement(e,t))},i=e.displayName||e.name||"Unknown";return t.displayName="withErrorBoundary("+i+")",t}function s(e){var r=n.useState(null),t=r[0],i=r[1];if(null!=e)throw e;if(null!=t)throw t;return i}e.ErrorBoundary=l,e.useErrorHandler=s,e.withErrorBoundary=u,Object.defineProperty(e,"__esModule",{value:!0})}(r,t(729136))}}]); 2//# sourceMappingURL=financing-listing-ad-card.9d67c4341.chunk.js.map
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.