1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7350],{8347:(e,t,i)=>{"use strict";i.d(t,{ky:()=>o});var r=i(92458),n=i(43848),a=i(92200);i(54986),i(57829);let o=async e=>{let{locale:t,sellerId:i,appProps:o}=e;try{let e=await a.A.fetchSellerInfo(i,t),[c,s]=await Promise.all([(async()=>e.orgId?n.A.fetchOrganizationInfo(e.orgId):null)(),(0,r.Wq)(o.domainCtx,e._id,e.orgId)]);return o.domainCtx=s,{seller:e,organization:c}}catch(e){}return{seller:null,organization:null}}},11661:e=>{function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=11661,e.exports=t},19419:()=>{},43848:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var r=i(55024),n=i(13005);class a extends n.Ay{static async fetchOrganizationInfo(e){let t=r.J.BASE_URL()+"/api/organizations/"+e+"/info";return await this.fetchApi(n.U0.get,t)}}},49719:(e,t,i)=>{"use strict";i.d(t,{U:()=>n});var r=i(79696);function n(){return(0,r.T)(a,arguments)}function a(e,t){for(var i={},r=0;r<t.length;r++){var n=t[r];n in e&&(i[n]=e[n])}return i}},55367:(e,t,i)=>{"use strict";i.d(t,{$:()=>s});var r=i(50979),n=i(84614),a=i(33792),o=i(11171),c=i(103);let s=e=>{let{t}=(0,n.Bd)("common"),i=e.seller.url||e.seller._id,{organization:s}=(0,a.hn)(),l=o._.dataPrivacyUrl(s),d=o._.accessibilityPolicyUrl(s);return(0,r.jsxs)("ul",{className:"vi-flex vi-flex-wrap",children:[(0,r.jsx)("li",{children:(0,r.jsx)(c.p,{href:"/seller/"+i+"/imprint",children:t("common:imprintSeller")})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.p,{href:l,children:t("common:dataPrivacy")})}),d&&(0,r.jsx)("li",{children:(0,r.jsx)(c.p,{href:d,children:t("common:accessibilityPolicy")})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.p,{href:"/seller/"+i+"/dataprivacy",children:t("common:dataPrivacySeller")})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.p,{href:"/seller/"+i+"/agb",children:t("common:conditionsSeller")})})]})}},65736:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSP:()=>k,default:()=>y,getShortLinkPageProps:()=>S});var r,n=i(50979),a=i(55367),o=i(81438),c=i(55024),s=i(13005);class l extends s.Ay{static getPublicShortLink(e,t){return s.Ay.fetchApi(s.U0.get,"".concat(c.J.BASE_URL(),"/api/public/sellers/").concat(e,"/marketing/short-links/").concat(encodeURIComponent(t)))}}var d=i(90162),m=i(89723),h=i(27786);m.A.object({type:m.A.string().required().description("The type of the entity").valid(...Object.values(h.j)),id:m.A.string().required().description("The ID of the entity")});let u=d.z.object({type:d.z.nativeEnum(h.j).describe("The type of the entity"),id:d.z.string().describe("The ID of the entity")});var p=i(49719),g=i(74464);!function(e){e.CodeSchema=d.z.string().max(128);let t=d.z.union([e.CodeSchema,d.z.literal("")]).describe("The code of the marketing campaign");e.CampaignResource=d.z.object({_id:d.z.string().describe("The ID of the marketing campaign"),name:d.z.string().min(3).describe("The name of the marketing campaign"),code:e.CodeSchema.describe("The code of the marketing campaign"),createdBy:u.describe("The entity that created this marketing campaign"),sellerId:d.z.string().describe("The ID of the seller owning the marketing campaign"),isArchived:d.z.boolean().default(!1).describe("Whether the marketing campaign is archived or not."),createdAt:d.z.date().describe("An ISO timestamp indicating when the marketing campaign was created."),updatedAt:d.z.date().describe("An ISO timestamp indicating when the marketing campaign was updated.")}).model("CampaignResource"),e.ShortLinkResource=d.z.object({_id:d.z.string().describe("The ID of the link."),code:e.CodeSchema.describe("The code of the link."),campaignId:d.z.string().optional().describe("The ID of the campaign of the link."),sellerId:d.z.string().describe("The ID of the seller owning the link"),target:d.z.string().url().optional().describe("The target of the link."),utmCampaign:d.z.string().optional().describe("The UTM campaign of the link."),utmSource:d.z.string().optional().describe("The UTM source of the link."),utmMedium:d.z.string().optional().describe("The UTM medium of the link."),utmContent:d.z.string().optional().describe("The UTM content of the link."),utmTerm:d.z.string().optional().describe("The UTM term of the link."),isArchived:d.z.boolean().default(!1).describe("Whether the link is archived or not."),createdAt:d.z.date().describe("An ISO timestamp indicating when the short link was created."),updatedAt:d.z.date().describe("An ISO timestamp indicating when the short link was updated.")}).model("ShortLinkResource"),e.PublicShortLinkResource=e.ShortLinkResource.pick({target:!0,utmCampaign:!0,utmSource:!0,utmMedium:!0,utmContent:!0,utmTerm:!0}),e.toPublicShortLink=e=>p.U(e,["target","utmCampaign","utmSource","utmMedium","utmContent","utmTerm"]),e.CreateCampaignSchema=e.CampaignResource.pick({name:!0}).extend({code:t.optional()}),e.UpdateCampaignSchema=e.CreateCampaignSchema.pick({name:!0}
1).partial(),e.ListCampaignsQuerySchema=g.bI.merge(d.z.object({name:d.z.string().optional()})),e.CreateShortLinkSchema=e.ShortLinkResource.pick({campaignId:!0,target:!0,utmCampaign:!0,utmSource:!0,utmMedium:!0,utmContent:!0,utmTerm:!0}).extend({code:t.optional()}),e.UpdateShortLinkSchema=e.CreateShortLinkSchema.partial().omit({code:!0,utmCampaign:!0}),e.ListShortLinksQuerySchema=g.bI.merge(d.z.object({campaignId:d.z.string().optional(),target:d.z.string().optional().describe("Matches links whose target contains this value."),targetPath:d.z.string().optional().describe("Matches links whose target ends with this path, optionally followed by a query string. Links pointing to a deeper path, e.g. a secret shop of an event, are excluded. Takes precedence over `target`.")})),e.SHAREABLE_LINK="shareable_link",e.getShortLinkPath=e=>"/s/".concat(encodeURIComponent(e)),e.getShortLinkUrl=(t,i)=>"".concat(t).concat(e.getShortLinkPath(i.code))}(r||(r={}));var b=i(84614),f=i(8347),k=!0;let S=async(e,t,i)=>{let{code:n}=e.query,a=await (0,f.ky)({locale:e.detectedLocale,sellerId:i,appProps:t});try{var o,c;let i=null==(o=a.seller)?void 0:o._id;if(!i||!n)throw Error("Short Link not found");let s=n.toString(),d=await l.getPublicShortLink(i,s);if(!d)throw Error("Short Link not found");let m=d.target;m&&"/"!==m||(m="https://"+t.domainCtx.host+e.resolvedUrl.replace(r.getShortLinkPath(s),""));let h=new URL(m),u={utm_campaign:null!=(c=d.utmCampaign)?c:s,utm_source:d.utmSource,utm_medium:d.utmMedium,utm_content:d.utmContent,utm_term:d.utmTerm};return Object.entries(u).forEach(e=>{let[t,i]=e;i&&h.searchParams.set(t,i)}),{redirect:{permanent:!1,destination:h.toString().replace(h.origin,"")}}}catch(e){return console.error(e),{props:{seller:a.seller,organization:a.organization,shortLink:null}}}},y=e=>{let{t}=(0,b.Bd)(["common","event","seller"]);return e.seller?e.shortLink?null:(0,n.jsxs)("div",{className:"fallback-holder",children:[(0,n.jsx)("div",{className:"fallback-box",children:(0,n.jsxs)("div",{className:"fallback-box-content",children:[(0,n.jsx)("div",{className:"text info",children:(0,n.jsx)("span",{children:t("common:status.notFound")})}),(0,n.jsx)("a",{className:"btn w100 caps default",href:"/seller/"+e.seller._id,children:t("event:saleArea.soldOut.buttons.default")})]})}),(0,n.jsx)("div",{className:"disclaimer-holder",children:(0,n.jsx)("div",{className:"cart-disclaimer",children:(0,n.jsx)(a.$,{seller:e.seller})})})]}):(0,n.jsx)(o.M,{code:404,message:t("seller:sellerCouldNotBeFound")})}},74464:(e,t,i)=>{"use strict";i.d(t,{bI:()=>s,kc:()=>a,oV:()=>o,yA:()=>c});var r=i(89723),n=i(90162);let a="A limit on the number of objects to be returned. Can range between 1 and 1000.",o="The number of objects to skip for the requested result",c=r.A.object().keys({top:r.A.number().optional().integer().default(25).max(1e3).description(a),skip:r.A.number().optional().integer().default(0).description(o)}),s=n.z.object({top:n.z.coerce.number().int().min(1).max(1e3).optional().default(25).describe(a),skip:n.z.coerce.number().int().min(0).optional().default(0).describe(o)})},92200:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var r=i(12825),n=i(55024),a=i(13005);class o extends a.Ay{static async fetchSellerInfo(e,t){let i="seller-".concat(e);return t&&(i+="-".concat(t)),r.Q.getOrPopulate("30s",i,()=>{let i=n.J.BASE_URL()+"/api/sellers/info/".concat(e);return t&&(i+="?locale=".concat(t)),this.fetchApi(a.U0.get,i)})}static async getPaymentMethods(e,t){let i=n.J.BASE_URL()+"/api/public/sellers/".concat(e,"/payment-methods");return i=n.J.applyParametersToUrl({channel:t},i),await this.fetchApi(a.U0.get,i)}}}}]);
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.