PageSourceSearch

https://www.hallandsauktionsverk.se/_next/static/chunks/505-3b4c18cf94d9333b.js

js hallandsauktionsverk.se collected 2026-09-27 08:12:53 UTC 9,457 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[505],{1683:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}}),n(67294);var r=n(93967),a=n.n(r),i=n(85893);function Box(e){var t=e.children,n=e.variant,r=e.align,o=e.fill,c=e.styles,s=e.style,l=e.className;return(0,i.jsx)("div",{className:a()(c.Container),children:(0,i.jsx)("div",{className:a()(c.Box,o&&c.fill,n&&c["variant-".concat(n)],r&&c["align-".concat(r)],l),style:s,children:t})})}Box.defaultProps={variant:"transparent",fill:!1,align:"left"};var o=n(3893),c=n(13274),s=n.n(c),l=[s()],u=(0,o.Z)(Box,{defaultStyle:s(),styles:l})},73792:function(e,t,n){"use strict";n.d(t,{pV:function(){return PaymentComponent},Pi:function(){return ValidateComponent},_v:function(){return Stripe_script}});var r,a,i,o,c,s,l,u,d,p,f,y,v,m=n(67294),h=n(4298),b=n.n(h),x=n(85893),j=n(59499),_=n(4730),g=n(71383),S=n(50029),w=n(16835),Z=n(87794),O=n.n(Z),C=n(19395),P=n(32558),k=n(27861),B=n(68414),N=n(77440),K=n(86092),E=n(70563),D=n.n(E),V=["paymentGateway","invoiceNumber","onCheckoutResultChanged"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var G=(0,P.kv)(function(e){var t=e.stripe,n=e.clientSecret,u=e.onSuccess,d=m.useState(null),p=(0,w.Z)(d,2),f=p[0],y=p[1],v=m.useState(0),h=(0,w.Z)(v,2),b=h[0],j=h[1],_=m.useState(!1),Z=(0,w.Z)(_,2),k=Z[0],E=Z[1],V=m.useCallback(function(){j(function(e){return e+1})},[]),G=m.useCallback((0,S.Z)(O().mark(function _callee(){var e,r,a;return O().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return E(!0),i.next=3,t.handleCardPayment(n);case 3:if(r=(e=i.sent).error,a=e.paymentIntent,!r){i.next=10;break}y({message:r.message}),i.next=15;break;case 10:if(!("succeeded"===a.status&&u)){i.next=15;break}return i.next=14,u();case 14:return i.abrupt("return");case 15:E(!1);case 16:case"end":return i.stop()}},_callee)})),[t,n,u]),T=k||b<3;return(0,x.jsx)(N.Z,{loading:T,children:(0,x.jsxs)("div",{className:D().stripeForm,children:[(0,x.jsx)("h1",{children:(0,C.t)(r||(r=(0,g.Z)(["Payment"])))}),(0,x.jsx)("p",{children:(0,C.t)(a||(a=(0,g.Z)(["Please enter your payment details to pay the invoice."])))}),(0,x.jsxs)("label",{children:[(0,C.t)(i||(i=(0,g.Z)(["Card number"]))),(0,x.jsx)(P.Ke,{className:D().cardNumber,onReady:V})]}),(0,x.jsxs)("label",{children:[(0,C.t)(o||(o=(0,g.Z)(["Card expiry"]))),(0,x.jsx)(P.Oh,{onReady:V})]}),(0,x.jsxs)("label",{children:[(0,C.t)(c||(c=(0,g.Z)(["Card Cvc"]))),(0,x.jsx)(P.vk,{onReady:V})]}),f&&f.message&&(0,x.jsx)("div",{className:D().error,children:f.message}),(0,x.jsxs)("div",{className:D().buttons,children:[(0,x.jsx)(K.Z,{wrapper:!0,href:"/myaccount/invoices",children:(0,x.jsx)(B.Z,{type:"secondary",variant:"ghost",children:(0,C.t)(s||(s=(0,g.Z)(["Cancel"])))})}),(0,x.jsx)(B.Z,{onClick:G,disabled:T,children:(0,C.t)(l||(l=(0,g.Z)(["Pay"])))})]})]})})});function StripeComponent(e){var t=e.apiKey,n=e.clientSecret,r=e.onSuccess,a=e.children,i=m.useState(null),o=(0,w.Z)(i,2),c=o[0],s=o[1];return(m.useEffect(function(){t&&(window.Stripe?s(window.Stripe(t)):document.querySelector("#stripe-js").addEventListener("load",function(){s(window.Stripe(t))}))},[t]),t)?(0,x.jsx)(P.vw,{stripe:c,children:(0,x.jsx)(P.eK,{children:(0,x.jsx)(G,{clientSecret:n,onSuccess:r,children:a})})}):(0,x.jsx)("p",{children:(0,C.t)(u||(u=(0,g.Z)(["This function has not been configured properly."])))})}var T=["formData","paymentGateway"];function Validate_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var R=(0,P.kv)(function(e){var t=e.stripe,n=e.clientSecret,r=e.onSuccess,a=m.useState(null),i=(0,w.Z)(a,2),o=i[0],c=i[1],s=m.useState(0),l=(0,w.Z)(s,2),u=l[0],v=l[1],h=m.useState(!1),b=(0,w.Z)(h,2),j=b[0],_=b[1],Z=m.useCallback(function(){v(function(e){return e+1})},[]),k=m.useCallback((0,S.Z)(O().mark(function _callee(){var e,a,i,o,s;return O().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return _(!0),l.next=3,t.handleCardPayment(n);case 3:if(a=(e=l.sent).error,i=e.paymentIntent,!a){l.next=10;break}c({message:a.message}),l.next=15;break;case 10:if(o=i.status,s=i.id,!("requires_capture"===o&&r)){l.next=15;break}return l.next=14,r(s);case 14:return l.abrupt("return");case 15:_(!1);case 16:case"end":return l.stop()}},_callee)})),[t,n,r]),K=j||u<3;return(0,x.jsx)(N.Z,{loading:K,children:(0,x.jsxs)("div",{className:D().stripeForm,children:[(0,x.jsxs)("label",{children:[(0,C.t)(d||(d=(0,g.Z)(["Card number"]))),(0,x.jsx)(P.Ke,{className:D().cardNumber,onReady:Z})]}),(0,x.jsxs)("label",{children:[(0,C.t)(p||(p=(0,g.Z)(["Card expiry"]))),(0,x.jsx)(P.Oh,{onReady:Z})]}),(0,x.jsxs)("label",{children:[(0,C.t)(f||(f=(0,g.Z)(["Card Cvc"]))),(0,x.jsx)(P.vk,{onReady:Z})]}),o&&o.message&&(0,x.jsx)("div",{className:D().error,children:o.message}
1),(0,x.jsx)("div",{className:D().validateButtons,children:(0,x.jsx)(B.Z,{onClick:k,disabled:K,children:(0,C.t)(y||(y=(0,g.Z)(["Validate"])))})})]})})});function Validate_StripeComponent(e){var t=e.apiKey,n=e.clientSecret,r=e.onSuccess,a=e.children,i=m.useState(null),o=(0,w.Z)(i,2),c=o[0],s=o[1];return(m.useEffect(function(){t&&(window.Stripe?s(window.Stripe(t)):document.querySelector("#stripe-js").addEventListener("load",function(){s(window.Stripe(t))}))},[t]),t)?(0,x.jsx)(P.vw,{stripe:c,children:(0,x.jsx)(P.eK,{children:(0,x.jsx)(R,{clientSecret:n,onSuccess:r,children:a})})}):(0,x.jsx)("p",{children:(0,C.t)(v||(v=(0,g.Z)(["This function has not been configured properly."])))})}var Stripe_script=function(){return(0,x.jsx)(b(),{src:"https://js.stripe.com/v3/",id:"stripe-js"})},PaymentComponent=function(e){var t=e.paymentGateway,n=e.invoiceNumber,r=e.onCheckoutResultChanged,a=(0,_.Z)(e,V),i=(0,k.QT)(m.useMemo(function(){return{path:"/PaymentGateways/".concat(t.id,"/checkouts"),method:"POST",body:{invoiceNumber:n}}},[n])),o=m.useState({loading:!0}),c=(0,w.Z)(o,2),s=c[0],l=c[1];if(m.useEffect(function(){i().then(function(e){l({data:e}),r({data:e})}).catch(function(){l({error:!0}),r({error:!0}),console.error("Failed to initialize checkout for payment provider: ".concat(t.name))})},[i]),s.loading||!s.data)return(0,x.jsx)(N.Z,{loading:!0,relativeToParent:!0});var u=s.data.parameters;return(0,x.jsx)(StripeComponent,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){(0,j.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({apiKey:t.settings.find(function(e){return"StripePublicKey"===e.key}).value,clientSecret:u["data-token"]},a),t.id)},ValidateComponent=function(e){var t=e.formData,n=e.paymentGateway,r=(0,_.Z)(e,T),a=(0,k.QT)(m.useMemo(function(){var e,r,a,i,o;return{path:"/PaymentGateways/".concat(n.id,"/verify"),method:"POST",body:{billingAddress:(null===(e=t.billing)||void 0===e?void 0:e.address1)&&"".concat(null===(r=t.billing)||void 0===r?void 0:r.address1.trim()," ").concat((null===(a=t.billing)||void 0===a?void 0:a.address2)||"").trim()||null,email:t.email||null,zipCode:(null===(i=t.billing)||void 0===i?void 0:i.zipCode.trim())||null,city:(null===(o=t.billing)||void 0===o?void 0:o.city.trim())||null}}},[])),i=m.useState({loading:!0}),o=(0,w.Z)(i,2),c=o[0],s=o[1];if(m.useEffect(function(){a().then(function(e){s({data:e})}).catch(function(){s({error:!0}),console.error("Failed to initialize credit card verification for payment provider: ".concat(n.name))})},[a]),c.loading||!c.data)return(0,x.jsx)(N.Z,{loading:!0,relativeToParent:!0});var l=c.data.parameters;return(0,x.jsx)(Validate_StripeComponent,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Validate_ownKeys(Object(n),!0).forEach(function(t){(0,j.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Validate_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({apiKey:n.settings.find(function(e){return"StripePublicKey"===e.key}).value,clientSecret:l["data-token"]},r),n.id)}},13525:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var r="Stripe"},15862:function(e,t,n){"use strict";n.d(t,{Z:function(){return useDefaultPaymentGateway}});var r=n(16835),a=n(14293),i=n.n(a),o=n(67294),c=n(27861);function useDefaultPaymentGateway(){var e=(0,c.QT)({path:"/PaymentGateways/Default",method:"Get"}),t=o.useState(null),n=(0,r.Z)(t,2),a=n[0],s=n[1];return o.useEffect(function(){e().then(function(e){i()(null==e?void 0:e.id)||i()(null==e?void 0:e.name)||s(e)}).catch(function(){s(null)})},[e]),a}},13274:function(e){e.exports={Container:"Box_Container__MiJ51",Box:"Box_Box__aQ4Kl","align-left":"Box_align-left__TvuCh","align-center":"Box_align-center__VpMMu","align-right":"Box_align-right__DqxZ_",fill:"Box_fill__A2Hr2","variant-popout":"Box_variant-popout__P8Eaw","variant-error":"Box_variant-error__w6ukg"}},70563:function(e){e.exports={stripeForm:"Stripe_stripeForm__pB60O",buttons:"Stripe_buttons__5W095",validateButtons:"Stripe_validateButtons__wzE5z",error:"Stripe_error__SWV_q"}}}]);

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.