PageSourceSearch

https://production-assets.noteflight.com/client/js/template-copies-page.296514c0d3e3273b2ebe.js

js noteflight.com collected 2026-10-01 08:53:58 UTC 6,439 bytes, 2 lines download raw bytes

1(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[4485],{1296:(e,t,n)=>{var r=NaN,o="[object Symbol]",l=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,i=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,m="object"==typeof self&&self&&self.Object===Object&&self,d=u||m||Function("return this")(),f=Object.prototype.toString,p=Math.max,v=Math.min,g=function(){return d.Date.now()};function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function E(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&f.call(e)==o}(e))return r;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(l,"");var n=s.test(e);return n||i.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,n){var r,o,l,a,s,i,c=0,u=!1,m=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,l=o;return r=o=void 0,c=t,a=e.apply(l,n)}function h(e){var n=e-i;return void 0===i||n>=t||n<0||m&&e-c>=l}function w(){var e=g();if(h(e))return y(e);s=setTimeout(w,function(e){var n=t-(e-i);return m?v(n,l-(e-c)):n}(e))}function y(e){return s=void 0,d&&r?f(e):(r=o=void 0,a)}function S(){var e=g(),n=h(e);if(r=arguments,o=this,i=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(w,t),u?f(e):a}(i);if(m)return s=setTimeout(w,t),f(i)}return void 0===s&&(s=setTimeout(w,t)),a}return t=E(t)||0,b(n)&&(u=!!n.leading,l=(m="maxWait"in n)?p(E(n.maxWait)||0,t):l,d="trailing"in n?!!n.trailing:d),S.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=i=o=s=void 0},S.flush=function(){return void 0===s?a:y(g())},S}},6709:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});var r=n(7294),o=n(1296),l=n.n(o),a=function(e,t,n){return e?l()(t,e,n):t};function s(e,t){var n=(0,r.useMemo)((function(){var e,n,r,o;return{offset:null!=(e=null==t?void 0:t.offset)?e:0,debounce:null!=(n=null==t?void 0:t.debounce)?n:200,debounceOptions:null!=(r=null==t?void 0:t.debounceOptions)?r:{leading:!0},triggerOnNoScroll:null!=(o=null==t?void 0:t.triggerOnNoScroll)&&o}}),[null==t?void 0:t.offset,null==t?void 0:t.debounce,null==t?void 0:t.debounceOptions,null==t?void 0:t.triggerOnNoScroll]),o=n.offset,l=n.triggerOnNoScroll,s=n.debounce,i=n.debounceOptions,c=(0,r.useMemo)((function(){return a(s,e,i)}),[s,e]),u=(0,r.useRef)(null),m=(0,r.useCallback)((function(){if(null!=u.current){var e=u.current,t=Math.round(e.scrollTop+e.clientHeight);Math.round(e.scrollHeight-o)<=t&&c()}else{var n=document.scrollingElement||document.documentElement,r=Math.round(n.scrollTop+window.innerHeight);Math.round(n.scrollHeight-o)<=r&&c()}}),[o,e,u.current]);return(0,r.useEffect)((function(){var e=u.current;return null!=e?e.addEventListener("scroll",m):window.addEventListener("scroll",m),l&&m(),function(){null!=e?e.removeEventListener("scroll",m):window.removeEventListener("scroll",m)}}),[m,s]),u}},2126:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7294),o=n(3967),l=n.n(o),a=n(1072),s=n(4082);const i=({message:e,hideBackground:t})=>{const{t:n}=(0,a.$G)();return r.createElement("div",{className:"absolute top-2 w-full flex flex-row justify-center z-20"},r.createElement("div",{className:l()("px-6 flex flex-row items-center",{"shadow-lg rounded bg-white dark:bg-black-bg2":!t})},r.createElement(s.Z,{size:s.E.SMALL}),r.createElement("span",{className:"ml-2"},e??n("messages.loading"))))}},1583:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Component:()=>T,loader:()=>x});var r=n(7294),o=n(1072),l=n(9250),a=n(2126),s=n(6709),i=n(5282),c=n(9655),u=n(8748),m=n(4082),d=n(6444);const f=()=>{const{t:e}=(0,o.$G)(),t=(0,c.wh)(),{selectedItems:n}=(0,d.cH)(),l=["submitting","loading"].includes(t.state);return r.createElement(r.Fragment,null,r.createElement(t.Form,{method:"post",action:"/home/removeScores"},r.createElement(u.Z,{name:"scoreIds",value:n.map((e=>e.id)),variant:"outline",type:"submit",size:"sm",disabled:!n.length||l,className:"font-medium ml-6 flex flex-row items-center"},l?r.createElement(r.Fragment,null,r.createElement(m.Z,{size:m.E.SMALL}),r.createElement("span",{className:"ml-1"}
1,e("messages.removing"))):r.createElement("span",null,e("action.remove")))))};var p=n(6857),v=n(7500),g=n(2599),b=n(797),E=n(5154);const h=async({params:e,request:t})=>{const{templateScoreId:n,...r}=e,o=new URL(t.url).searchParams.get("order"),l=E.ZP.loader.post(b.MF.members.templateCopiesPath(),{template_id:n,...r,order:o,max_count:15});return(0,g.PQ)({templateCopies:l,order:o,templateScoreId:n})};var w=n(1972),y=n(669);const S=({initialData:e,order:t,templateScoreId:n})=>{const{t:l}=(0,o.$G)();(0,w.Tt)(l("titles.scoresFromTemplateName",{name:e.template.title}));const[a,c]=(0,r.useState)(!1),u=(0,r.useRef)(!1),[g,h]=(0,r.useState)(e),[S,x]=(0,r.useState)(y.Z.scoresViewType),{scores:T,remaining:N,startIndex:O}=g,Z=(0,s.C)((async()=>{const e=u.current;if(!N||a||e)return;c(!0),u.current=!0;const[r]=await E.ZP.post(b.MF.members.templateCopiesPath(),{template_id:n,order:t,max_count:15,start_index:O});r?.data&&h((e=>({...r.data,scores:[...e.scores,...r.data.scores]}))),c(!1),u.current=!1}),{triggerOnNoScroll:!0,offset:32});if((0,r.useEffect)((()=>{h(e)}),[e]),!T.length)return r.createElement(v.Z,{icon:"puzzle-alt",title:l("titles.scoresFromTemplateName",{name:g.template.title}),subtitle:l("content.empty.templates.subtitle")});return r.createElement(d.ZP,{initialItems:T},r.createElement(i.Z,{setViewType:e=>{x(e),y.Z.scoresViewType=e}
1,viewType:S,order:t},r.createElement(f,null)),r.createElement("div",{className:"flex-1 overflow-y-auto relative pb-4",ref:Z},r.createElement(p.Z,{scores:T,viewType:S,options:{showAuthor:!0,hideState:!0}}),N&&a&&r.createElement(m.Z,null)))},x=h,T=()=>{const{t:e}=(0,o.$G)(),t=(0,l.f_)(),n=(0,l.HJ)();(0,w.Tt)(e("titles.scoresFromTemplate"));const s="loading"===n.state&&null!=n.formData&&n.location.pathname.startsWith("/home/template/");return r.createElement(r.Fragment,null,s&&r.createElement(a.Z,null),r.createElement("div",{className:"flex-1 overflow-y-auto relative mr-7"},r.createElement(r.Suspense,{fallback:r.createElement(m.Z,null)},r.createElement(l.KP,{resolve:t.templateCopies},(e=>r.createElement(S,{initialData:e,order:t.order,templateScoreId:t.templateScoreId}))))))};T.displayName="LazyTemplateCopiesPage"}}]);
2//# sourceMappingURL=http://localhost:5309/sourcemaps/js/template-copies-page.296514c0d3e3273b2ebe.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.