PageSourceSearch

https://www.sellpy.se/market/Credits.Brbak_Q5.bundle.js

js sellpy.se collected 2026-09-24 17:39:24 UTC 8,286 bytes, 25 lines download raw bytes

1var T=Object.defineProperty,P=Object.defineProperties;var _=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var M=(e,i,n)=>i in e?T(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,S=(e,i)=>{for(var n in i||(i={}))j.call(i,n)&&M(e,n,i[n]);if(v)for(var n of v(i))E.call(i,n)&&M(e,n,i[n]);return e},x=(e,i)=>P(e,_(i));var C=(e,i,n)=>new Promise((c,u)=>{var m=s=>{try{f(n.next(s))}catch(d){u(d)}},p=s=>{try{f(n.throw(s))}catch(d){u(d)}},f=s=>s.done?c(s.value):Promise.resolve(s.value).then(m,p);f((n=n.apply(e,i)).next())});import{j as r,a6 as A,y as D,P as g,B as R}from"./npm.sellpy-design-system.sUaPRvy7.bundle.js";import{c as q,F}from"./npm.react-hook-form.C-gy3V91.bundle.js";import{b as V,a as $}from"./npm.react-router.eGoWS0aR.bundle.js";import{g as w}from"./npm.styled-components.CXmCnM24.bundle.js";import{b as O,as as B,aM as G,F as I,m as L,E as N,aN as Q,al as U,am as W,c_ as z}from"./index.OKbXaoKY.bundle.js";import{i as H,h as Y}from"./npm.apollo-client.D2roezfX.bundle.js";import{G as J,B as K,a as Z,C as X}from"./styles.DY9qt7XA.bundle.js";import{_ as ee,a as ie}from"./automaticPayout.vSbmlX3Z.bundle.js";import{u as te}from"./npm.react-i18next.DBIOEc1H.bundle.js";import{J as ne}from"./npm.sellpy-commons.CqmbWWp3.bundle.js";import"./npm.react-dom.DRhp71ng.bundle.js";import"./npm.luxon.3NOFZn7k.bundle.js";import"./npm.zod.DEnjmUYT.bundle.js";import"./npm.lodash.B-mb_ip_.bundle.js";import"./npm.parse.B9RAjAGR.bundle.js";import"./npm.sentry-react.D1FVWAhI.bundle.js";import"./npm.swr.CGFXCyXz.bundle.js";import"./npm.algolia.BDObKZ-5.bundle.js";import"./npm.i18next.B74d65Th.bundle.js";import"./translations.FODGUIZZ.bundle.js";import"./npm.graphql.ClDiDpi3.bundle.js";import"./npm.immutable.3wsaRX37.bundle.js";try{let e=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="b9e3b7b8-4a8c-4d2e-8649-2879c2e42d7b",e._sentryDebugIdIdentifier="sentry-dbid-b9e3b7b8-4a8c-4d2e-8649-2879c2e42d7b")}catch(e){}{let e=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:sellpy-market":!0})}const ae=`#import "./automaticPayout.fragment.gql"
2
3mutation setAutomaticPayoutMethodToCreditsMutation(
4  $method: String!
5  $region: String!
6  $origin: String!
7) {
8  setAutomaticPayoutMethod(method: $method, region: $region, origin: $origin) {
9    ...automaticPayoutConfigFragment
10  }
11}
12`,y={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"setAutomaticPayoutMethodToCreditsMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"method"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"region"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"origin"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setAutomaticPayoutMethod"},arguments:[{kind:"Argument",name:{kind:"Name",value:"method"},value:{kind:"Variable",name:{kind:"Name",value:"method"}}},{kind:"Argument",name:{kind:"Name",value:"region"},value:{kind:"Variable",name:{kind:"Name",value:"region"}}},{kind:"Argument",name:{kind:"Name",value:"origin"},value:{kind:"Variable",name:{kind:"Name",value:"origin"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"automaticPayoutConfigFragment"},directives:[]}]}}]}}],loc:{start:0,end:316,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:ae}}},oe=e=>{const i={};return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;const c=n.name.value;return i[c]?!1:(i[c]=!0,!0)})};y.definitions=oe(y.definitions.concat(ee.definitions));const re=(e,i)=>{const n=(t,o)=>{if(t.kind==="FragmentSpread")o.add(t.name.value);else if(t.kind==="VariableDefinition"){const a=t.type;a.kind==="NamedType"&&o.add(a.name.value)}return t&&"selectionSet"in t&&t.selectionSet&&t.selectionSet.selections.forEach(a=>{n(a,o)}),t&&"variableDefinitions"in t&&t.variableDefinitions&&t.variableDefinitions.forEach(a=>{n(a,o)}),t&&"definitions"in t&&t.definitions&&t.definitions.forEach(a=>{n(a,o)}),o},c=t=>{const o={};return t.definitions.forEach(function(a){"name"in a&&a.name&&(o[a.name.value]=n(a,new Set))}),o},u=(t,o)=>{for(let a=0;a<t.definitions.length;a++){const l=t.definitions[a];if(l&&"name"in l&&l.name&&l.name.value==o)return l}},m=c(e),p=Object.assign({},e,{definitions:[u(e,i)]}),f=m[i]||new Set,s=new Set;let d=new Set;for(f.forEach(t=>{d.add(t)});d.size>0;){const t=d;d=new Set,t.forEach(o=>
12{s.has(o)||(s.add(o),(m[o]||new Set).forEach(l=>{d.add(l)}))})}return s.forEach(t=>{const o=u(e,t);o&&p.definitions.push(o)}),p},se=re(y,"setAutomaticPayoutMethodToCreditsMutation"),de=`query getCreditMultiplier {
13  creditMultiplier: getCreditMultiplier
14}
15`,le={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getCreditMultiplier"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"creditMultiplier"},name:{kind:"Name",value:"getCreditMultiplier"},arguments:[],directives:[]}]}}],loc:{start:0,end:108,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:de}}},ce=le,ue=w.ul`
16  padding-inline-start: 24px;
17  display: flex;
18  flex-direction: column;
19  gap: 16px;
20`,me=w(X)`
21  ${L.desktop} {
22    border-radius: ${({theme:e})=>e.radius.soft}px;
23  }
24`,fe=(e,i)=>[{link:"/sell",label:i?e("breadcrumbs.sell",{firstName:i}):e("breadcrumbs.creditsHome")},{link:"/my-share",label:e("breadcrumbs.creditsMyShare")},{link:"/my-share/automatic-payout",label:e("breadcrumbs.creditsAutomaticPayout")},{label:e("breadcrumbs.credits")}],Ve=()=>{var h;const e=V(),{t:i}=te(["automaticPayout","common"]),{isMobile:n}=O(),{automaticPayoutId:c}=$(),[u]=H(se,{refetchQueries:[{query:ie,variables:{currency:ne[N()]}}],onError:b=>{z(b)},onCompleted:b=>{var k;(k=b.setAutomaticPayoutMethod)!=null&&k.credits?e("/my-share/automatic-payout/confirmation?method=credits"):U({header:i("common:errorToast.header"),body:i("common:errorToast.body"),type:W.ERROR})}}),m=q(),{handleSubmit:p,formState:{isValid:f,isSubmitting:s}}=m,d=()=>C(null,null,function*(){yield u({variables:{method:"credits",region:N(),origin:window.location.origin}}),Q({payoutType:"credits",clickSource:"profile",settingAction:c?"change":"signup"})}),{data:t,loading:o}=Y(ce),a=B();if(o)return null;const l=t==null?void 0:t.creditMultiplier;return r.jsxs(J,{children:[r.jsx(K,{children:r.jsx(A,{color:"black",variant:n?"collapsed":"full",options:fe(i,(h=a==null?void 0:a.address)==null?void 0:h.firstName)})}),r.jsx(Z,{children:r.jsxs(me,{children:[r.jsxs("div",{children:[r.jsx(D,{noMargin:!0,style:{marginBottom:"4px"},children:i("choice.credits.header")}),r.jsx(g,{design:"body3",children:i("choice.credits.subhead")})]}),r.jsxs(ue,{children:[r.jsx("li",{children:r.jsx(g,{design:"body3",noMargin:!0,children:i("choice.credits.list1",{creditMultiplier:l*100-100})})}),r.jsx("li",{children:r.jsx(g,{design:"body3",noMargin:!0,children:i("choice.credits.list2")})}),r.jsx("li",{children:r.jsx(g,{design:"body3",noMargin:!0,children:i("choice.credits.list3")})})]}),r.jsx(F,x(S({},m),{children:r.jsx(G,{onSubmit:p(d),children:r.jsx(R,{type:"submit",variant:"filled",size:I.SMALL,label:i("completeButton.label"),disabled:!f||s,loading:s,fullWidth:!0})})}))]})})]})};export{Ve as default};
25//# sourceMappingURL=Credits.Brbak_Q5.bundle.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.