PageSourceSearch

https://www.theclub.ee/_next/static/chunks/9063.00e4aae91427174e.js

js theclub.ee collected 2026-10-02 00:37:40 UTC 8,457 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9063],{74520:(e,l,a)=>{a.d(l,{G:()=>t,R:()=>r});var s=a(94577);let r=[{key:"first_name",label:"legal.variables.first_name",placeholder:"{{first_name}}",group:"user"},{key:"last_name",label:"legal.variables.last_name",placeholder:"{{last_name}}",group:"user"},{key:"full_name",label:"legal.variables.full_name",placeholder:"{{full_name}}",group:"user"},{key:"email",label:"legal.variables.email",placeholder:"{{email}}",group:"user"},{key:"personal_id",label:"legal.variables.personal_id",placeholder:"{{personal_id}}",group:"user"},{key:"phone",label:"legal.variables.phone",placeholder:"{{phone}}",group:"user"},{key:"member_first_name",label:"legal.variables.member_first_name",placeholder:"{{member_first_name}}",group:"member"},{key:"member_last_name",label:"legal.variables.member_last_name",placeholder:"{{member_last_name}}",group:"member"},{key:"member_full_name",label:"legal.variables.member_full_name",placeholder:"{{member_full_name}}",group:"member"},{key:"date",label:"legal.variables.date",placeholder:"{{date}}",group:"product"},{key:"product_name",label:"legal.variables.product_name",placeholder:"{{product_name}}",group:"product"},{key:"membership_start_date",label:"legal.variables.membership_start_date",placeholder:"{{membership_start_date}}",group:"product"},{key:"membership_end_date",label:"legal.variables.membership_end_date",placeholder:"{{membership_end_date}}",group:"product"}];function n(e,l){let a=l?"et"===l?"et-EE":"en"===l?"en-GB":l:(0,s.J)();return e.toLocaleDateString(a,{year:"numeric",month:"long",day:"numeric"})}function t(e,l){var a,s;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"et",t=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(!e)return e;let c={"{{date}}":n(new Date,r)};l&&(c["{{first_name}}"]=l.first_name||"",c["{{last_name}}"]=l.last_name||"",c["{{full_name}}"]="".concat(l.first_name||""," ").concat(l.last_name||"").trim(),c["{{email}}"]=l.email||"",c["{{personal_id}}"]=l.estonian_id_code||"",c["{{phone}}"]=l.phone||"");let o=(null!=(a=null==i?void 0:i.first_name)?a:null==l?void 0:l.first_name)||"",d=(null!=(s=null==i?void 0:i.last_name)?s:null==l?void 0:l.last_name)||"";if(c["{{member_first_name}}"]=o,c["{{member_last_name}}"]=d,c["{{member_full_name}}"]="".concat(o," ").concat(d).trim(),t){let e=new Date,l=function(e,l){if(!l)return null;let a=new Date(e);if(l.min_commitment_months>0)a.setMonth(a.getMonth()+l.min_commitment_months);else{if(!l.duration_days)return null;a.setDate(a.getDate()+l.duration_days)}return a}(e,t.pass);c["{{product_name}}"]=t.name||"",c["{{membership_start_date}}"]=n(e,r),c["{{membership_end_date}}"]=l?n(l,r):""}let m=e;for(let[e,l]of Object.entries(c))m=m.replaceAll(e,l);return m}},79063:(e,l,a)=>{a.r(l),a.d(l,{TiptapEditor:()=>w});var s=a(95155),r=a(154),n=a(10699),t=a(19148),i=a(30171).Or,c=a(75662),o=a(64269),d=a(74520),m=a(6259),u=a(45833),p=a(57456),h=a(70355),x=a(67048),g=a(44615),b=a(3829),_=a(80003),f=a(97239),v=a(64813),j=a(40586),k=a(56860),y=a(50859);let A=(0,a(71847).A)("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);var N=a(24033),C=a(40949),z=a(90651);function w(e){let{content:l,onChange:a,placeholder:w,className:R}=e,{t:E}=(0,c.Bd)("admin"),H=(0,r.hG)({extensions:[n.A.configure({heading:{levels:[1,2,3]},link:{openOnClick:!1}}),t.A.configure({types:["heading","paragraph"]}),i.configure({placeholder:null!=w?w:""})],content:l,immediatelyRender:!1,onUpdate:e=>{let{editor:l}=e;a(l.getHTML())},editorProps:{attributes:{class:"prose prose-sm dark:prose-invert max-w-none min-h-[300px] px-3 py-3 outline-none focus:outline-none md:px-4 break-words"}}});return H?(0,s.jsxs)("div",{"data-slot":"tiptap-editor",className:(0,o.cn)("rounded-md border border-input bg-background",R),children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-0.5 rounded-t-md border-b border-border bg-background px-1.5 py-1.5 md:sticky md:top-0 md:z-20 md:px-2",children:[(0,s.jsx)(L,{active:H.isActive("heading",{level:1}),onClick:()=>H.chain().focus().toggleHeading({level:1}).run(),children:(0,s.jsx)(u.A,{className:"size-4"})}),(0,s.jsx)(L,{active:H.isActive("heading",{level:2}),onClick:()=>H.chain().focus().toggleHeading({level:2}).run(),children:(0,s.jsx)(p.A,{className:"size-4"})}),(0,s.jsx)(L,{active:H.isActive("heading",{level:3}),onClick:()=>H.chain().focus().toggleHeading({level:3}).run(),children:(0,s.jsx)(h.A,{className:"size-4"})}),(0,s.jsx)(D,{}),(0,s.jsx)(L,{active:H.isActive("bold"),onClick:()=>H.chain().focus().toggleBold().run(),children:(0,s.jsx)(x.A,{className:"size-4"})}),(0,s.jsx)(L,{active:H.isActive("italic"),onClick:()=>H.chain().focus().toggleItalic().run(),children:(0,s.jsx)(g.A,{className:"size-4"})}),(0,s.jsx)(L,{active:H.isActive("underline"),onClick:()=>H.chain().focus().toggleUnderline().run(),children:(0,s.jsx)(b.A,{className:"size-4"})}),(0,s.jsx)(D,{}),(0,s.jsx)(L,{active:H.isActive("bulletList"),onClick:()=>H.chain().focus().toggleBulletList().run(),children:(0,s.jsx)(_.A,{className:"size-4"})}),(0,s.jsx)(L,{active:H.isActive("orderedList"),onClick:()=>H.chain().focus().toggleOrderedList().run(),children:(0,s.jsx)(f.A,{className:"size-4"})}),(0,s.jsx)(D,{}),(0,s.jsx)(L,{active:H.isActive({textAlign:"left"}),onClick:()=>H.chain().focus().setTextAlign("left").run(),children:(0,s.jsx)(v.A,{className:"size-4"})}),(0,s.jsx)(L,{active:H.isActive({textAlign:"center"}),onClick:()=>H.chain().focus().setTextAlign("center").run(),children:(0,s.jsx)(j.A,{className:"size-4"})}),(0,s.jsx)(L,{active:H.isActive({textAlign:"right"}),onClick:()=>H.chain().focus().setTextAlign("right").run(),children:(0,s.jsx)(k.A,{className:"size-4"})}),(0,s.jsx)(D,{}),(0,s.jsx)(L,{active:H.isActive("link"),onClick:()=>{let e=window.prompt("URL:");e?H.chain().focus().setLink({href:e}).run():H.chain().focus().unsetLink().run()},children:(0,s.jsx)(y.A,{className:"size-4"})}),(0,s.jsxs)(m.rI,{children:[(0,s.jsx)(m.ty,{asChild:!0,children:(0,s.jsxs)("button",{type:"button",className:"flex items-center gap-0.5 rounded p-1.5 transition-colors hover:bg-muted",children:[(0,s.jsx)(A,{className:"size-4"}),(0,s.jsx)(N.A,{className:"size-3"})]})}),(0,s.jsxs)(m.SQ,{align:"start",className:"min-w-[220px]",children:[(0,s.jsx)("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:E("legal.variables.group_user")}),d.R.filter(e=>"user"===e.group).map(e=>(0,s.jsxs)(m._2,{onClick:()=>{H.chain().focus().insertContent(e.placeholder).run()},children:[(0,s.jsx)("span",{className:"flex-1 text-sm",children:E(e.label)}),(0,s.jsx)("code",{className:"ml-2 text-[10px] text-muted-foreground",children:e.placeholder})]},e.key)),(0,s.jsx)("div",{className:"my-1 h-px bg-border"}),(0,s.jsx)("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:E("legal.variables.group_member")}),d.R.filter(e=>"member"===e.group).map(e=>(0,s.jsxs)(m._2,{onClick:()=>{H.chain().focus().insertContent(e.placeholder).run()},children:[(0,s.jsx)("span",{className:"flex-1 text-sm",children:E(e.label)}),(0,s.jsx)("code",{className:"ml-2 text-[10px] text-muted-foreground",children:e.placeholder})]},e.key)),(0,s.jsx)("div",{className:"my-1 h-px bg-border"}),(0,s.jsx)("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:E("legal.variables.group_product")}),d.R.filter(e=>"product"===e.group).map(e=>(0,s.jsxs)(m._2,{onClick:()=>{H.chain().focus().insertContent(e.placeholder).run()},children:[(0,s.jsx)("span",{className:"flex-1 text-sm",children:E(e.label)}),(0,s.jsx)("code",{className:"ml-2 text-[10px] text-muted-foreground",children:e.placeholder})]},e.key))]})]}),(0,s.jsxs)("div",{className:"ml-auto flex items-center gap-0.5",children:[(0,s.jsx)(L,{onClick:()=>
1H.chain().focus().undo().run(),children:(0,s.jsx)(C.A,{className:"size-4"})}),(0,s.jsx)(L,{onClick:()=>H.chain().focus().redo().run(),children:(0,s.jsx)(z.A,{className:"size-4"})})]})]}),(0,s.jsx)(r.$Z,{editor:H})]}):null}function L(e){let{children:l,active:a,onClick:r}=e;return(0,s.jsx)("button",{type:"button",onClick:r,className:(0,o.cn)("rounded p-1.5 transition-colors hover:bg-muted",a&&"bg-muted text-primary"),children:l})}function D(){return(0,s.jsx)("div",{className:"mx-1 h-5 w-px bg-border"})}}}]);

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.