PageSourceSearch

https://cdn-mp.dmarket.com/prod/static/chunk-6O3B2KUW.js

js dmarket.com collected 2026-09-24 09:42:43 UTC 4,889 bytes, 2 lines download raw bytes

1import{b as H,c as J}from"./chunk-H3QKNTDZ.js";import{a as K}from"./chunk-CTSE7KJZ.js";import{a as W}from"./chunk-ZEHFGYTK.js";import{c as j}from"./chunk-4BOWCGAG.js";import{d as q}from"./chunk-VWNNN3FM.js";import{k as G,l as P}from"./chunk-X5BKZFF2.js";import{b as $}from"./chunk-MAEC2WHL.js";import{j as z,k as F}from"./chunk-I5EPNETH.js";import{x as R}from"./chunk-YYYPO2AY.js";import{L as E,R as N,Xa as U}from"./chunk-NPLYHJWT.js";import{Ja as O,z as V}from"./chunk-DQCMG7P5.js";import{b as B}from"./chunk-OXTXAH2Z.js";import{Ab as c,Cc as L,Dc as M,Fc as f,Ha as s,Ia as l,Mc as p,Oc as o,Rb as y,Rd as D,Ta as S,Xb as w,Xd as _,_c as I,bd as u,cd as g,dd as T,oc as v,qc as b,vc as m,wc as r,xc as a,xd as C,ya as h,yc as d}from"./chunk-HSO33GGI.js";var Q=e=>["shareLinkOpenPopUp",e];function Y(e,x){if(e&1){let n=f();r(0,"button",4),p("click",function(){s(n);let i=o(2);return l(i.openShareLinkModal())}),d(1,"shared-svg-icon",5),a()}if(e&2){let n=o(2);m("testId",C(1,Q,n.analyticsType()))}}function Z(e,x){if(e&1){let n=f();r(0,"button",6),p("click",function(){s(n);let i=o(2);return l(i.openShareLinkModal())}),d(1,"shared-svg-icon",7),u(2),a()}if(e&2){let n=o().$implicit,t=o();I("share-link-btn--active",t.sharedUrlModalOpened()),m("testId",C(4,Q,t.analyticsType())),c(2),T(" ",n("Share")," ")}}function A(e,x){if(e&1){let n=f();r(0,"div",3)(1,"div",8)(2,"span",9),u(3),a(),r(4,"button",10),p("click",function(){s(n);let i=o(2);return l(i.closeShareLinkModal())}),r(5,"mat-icon"),u(6,"close"),a()()(),r(7,"div",11)(8,"div",12)(9,"mat-form-field",13)(10,"mat-label"),u(11),a(),d(12,"input",14),a(),r(13,"button",15),p("cbOnSuccess",function(){s(n);let i=o(2);return i.copiedNotification(),l(i.closeShareLinkModal())}),d(14,"i",16),a()()()()}if(e&2){let n=o().$implicit,t=o();c(3),g(n("Copy link")),c(8),g(n("Link")),c(),m("value",t.resolvedShareLink()),c(),m("cbContent",t.resolvedShareLink())}}function ee(e,x){if(e&1&&(L(0),r(1,"div"),v(2,Y,2,3,"button",1)(3,Z,3,6,"button",2),v(4,A,15,4,"div",3),a(),M()),e&2){let n,t=o();c(2),b((n=t.viewType())===t.ShareLinkViewTypeEnum.Square?2:3),c(2),b(t.sharedUrlModalOpened()?4:-1)}}var te=(function(e){return e.ClickInfo="clickInfo",e.ClickGear="clickGear",e.UserOfferParam="userOfferParam",e})(te||{}),k=(function(e){return e.Default="default",e.Square="square",e})(k||{}),Se=(()=>{class e{constructor(){this.#e=h(q),this.#t=h($),this.assetData=_(),this.viewType=_(k.Default),this.analyticsType=_(),this.shareLink=_(),this.langChanges=h(P).langChanges,this.ShareLinkViewTypeEnum=k,this.sharedUrlModalOpened=S(!1),this.resolvedShareLink=D(()=>{let n=this.shareLink();if(n)return n;let t=this.assetData();if(!t||!t.gameId)return"";let i=V[t.gameId],X=`${this.#t.rootUrl}${O.IngameItems}${i}${t?.linkId?`?userOfferId=${t?.linkId}`:""}`;return G(X,this.langChanges())})}#e;#t;openShareLinkModal(){this.sharedUrlModalOpened.set(!0)}closeShareLinkModal(){this.sharedUrlModalOpened.set(!1)}copiedNotification(){this.#e.pushNotificationWithTextTranslation({text:"Copied"})}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=y({type:e,selectors:[["share-link"]],inputs:{assetData:[1,"assetData"],viewType:[1,"viewType"],analyticsType:[1,"analyticsType"],shareLink:[1,"shareLink"]},decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","h-8","w-8","items-center","justify-center","rounded-sm","bg-dm-neutral-600","transition-dm-primary","hover:shadow-dm-btn-inner",3,"testId"],["mat-flat-button","",1,"share-link-btn","mb-[15px]",3,"share-link-btn--active","testId"],[1,"absolute","z-2","w-[270px]","max-w-full","bg-dm-zinc-800","p-[15px]","shadow-[0_0_25px_0_rgba(0,0,0,0.3)]"],[1,"flex","h-8","w-8","items-center","justify-center","rounded-sm","bg-dm-neutral-600","transition-dm-primary","hover:shadow-dm-btn-inner",3,"click","testId"],["src","icon-share",1,"flex","size-4","text-white"],["mat-flat-button","",1,"share-link-btn","mb-[15px]",3,"click","testId"],["src","icon-share",1,"mr-2","size-4"],[1,"mb-2.5","flex","items-center"],[1,"text-sm"],["type","button","aria-label","Close",1,"ml-auto","cursor-pointer","opacity-80","hover:opacity-100",3,"click"],[1,"c-balanceForm__field"],[1,"c-copy__cbCopy"],["appearance","fill"],["disabled","","matInput","","readonly","","type","text",1,"pointer-events-none",3,"value"],["ngxClipboard","","type","button",1,"c-copy__cbCopyButton",3,"cbOnSuccess","cbContent"],["inlineSVG","icon-copy.svg",1,"o-icon"]],template:function(t,i){t&1&&w(0,ee,5,2,"ng-container",0)},dependencies:[F,z,j,U,K,B,N,E,W,J,H,R],styles:[`.share-link-btn{--ex-mat-button-fz: 14px;--ex-mat-button-height: 32px;--ex-mat-button-padding: 8px;--ex-mat-button-width: 100%;--mdc-filled-button-label-text-tracking: 0}.share-link-btn--active{color:var(--ex-color-green)}.mat-form-field-flex{background:var(--ex-bg-color--700)}
2`],encapsulation:2,changeDetection:0})}}return e})();export{te as a,k as b,Se as c};

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.