PageSourceSearch

https://platform.thesocialhandshake.com/_next/static/chunks/pages/tsh/gifttypes-0b6cc6f156de417f.js

js thesocialhandshake.com collected 2026-10-08 18:47:38 UTC 7,197 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5514],{39046:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tsh/gifttypes",function(){return n(40014)}])},40014:function(e,t,n){"use strict";n.r(t);var a=n(85893),o=n(67294),r=n(11163),i=n(22050),l=n(26502),u=n(61982),s=n(79149),c=n(54172),p=n(60370),d=n(58322),f=n(53380),m=n(81759);t.default=()=>{let e=(0,r.useRouter)(),[t,n]=(0,o.useState)(),[h,y]=(0,o.useState)([]),[g]=(0,o.useState)((0,d.YO)()),v={name:"edit-gift-type",dialogFields:[{key:"name",label:"Naam",required:!0},{key:"periodic",label:"Periodiek",type:c._.BOOLEAN},{key:"sequence",label:"Sequence id"},{key:"emailTemplateId",label:"E-mailtemplate id"}],implementation:async e=>{void 0!==e.object&&(await (0,p.Tc)({id:e.object,name:e.dialog.name,periodic:e.dialog.periodic,sequence:e.dialog.sequence,emailTemplateId:e.dialog.emailTemplateId}),w())},initDialog:async e=>{if(void 0!==e.object)return await (0,p.Vg)(e.object)},buttonLabel:"Wijzigen",label:""},b=(0,f.gX)([v],n,e),w=()=>{(0,p.Wx)().then(e=>{let{giftTypes:t}=e;return y(t)}).catch(e=>(0,m.QB)(e,"Ophalen gegevens mislukt"))};return(0,o.useEffect)(()=>{w()},[]),(0,a.jsx)(u.Z,{children:(0,a.jsxs)(l.Z,{title:"Gifttypes",children:[(0,a.jsx)(s.Z,{columns:g.developer?[{key:"name",label:"Naam"},{key:"sequence",label:"Sequence"},{key:"emailTemplateId",label:"E-mailtemplate"}]:[{key:"name",label:"Naam"},{key:"emailTemplateId",label:"E-mailtemplate"}],onEdit:g.developer?e=>{b.start(v,e).catch(e=>(0,m.QB)(e,"Fout bij wijzigen"))}:void 0,searchResults:h,title:"Gifttypes"}),(0,a.jsx)(i.Z,{actionContext:t,actionHandler:b})]})})}},32491:function(e,t,n){"use strict";var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),r=n(67294),i=s(r),l=s(n(62266)),u=s(n(98966));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function p(e){var t=/(?:\.([^.]+))?$/.exec(e);return null!=t&&null!=t[0]?t[0]:""}var d=function(e){function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);for(var e,n,a,o=arguments.length,r=Array(o),i=0;i<o;i++)r[i]=arguments[i];return n=a=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),a.uploadTasks=[],a.handleFileSelection=function(e){for(var t=e.target.files,n=0;n<t.length;n++)a.startUpload(t[n])},c(a,n)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1(t,e),o(t,[{key:"componentWillUnmount",value:function(){this.cancelRunningUploads()}},{key:"cancelRunningUploads",value:function(){for(;this.uploadTasks.length>0;){var e=this.uploadTasks.pop();"running"===e.snapshot.state&&e.cancel()}}},{key:"removeTask",value:function(e){for(var t=0;t<this.uploadTasks.length;t++)if(this.uploadTasks[t]===e){this.uploadTasks.splice(t,1);return}}},{key:"startUpload",value:function(e){var t=this,n=this.props,a=n.onUploadStart,o=n.onProgress,r=n.onUploadError,i=n.onUploadSuccess,s=n.storageRef,c=n.metadata,d=n.randomizeFilename,f=n.filename,m=void 0;p(m=f?"function"==typeof f?f(e):f:d?(0,l.default)():e.name)||(m+=p(e.name)),Promise.resolve().then(function(){return e.type.match(/image.*/)&&(t.props.maxWidth||t.props.maxHeight)?(0,u.default)(e,t.props.maxWidth,t.props.maxHeight):e}).then(function(e){var n=s.child(m).put(e,c);a&&a(e,n),n.on("state_changed",function(e){return o&&o(Math.round(100*e.bytesTransferred/e.totalBytes),n)},function(e){return r&&r(e,n)},function(){return t.removeTask(n),i&&i(n.snapshot.metadata.name,n)}),t.uploadTasks.push(n)})}},{key:"render",value:function(){var e=this.props,t=(e.storageRef,e.onUploadStart,e.onProgress,e.onUploadSuccess,e.onUploadError,e.randomizeFilename,e.metadata,e.filename,e.maxWidth,e.maxHeight,e.hidden),n=e.as,o=function(e,t){var n={};for(var a in e)!(t.indexOf(a)>=0)&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(e,["storageRef","onUploadStart","onProgress","onUploadSuccess","onUploadError","randomizeFilename","metadata","filename","maxWidth","maxHeight","hidden","as"]),r=t?Object.assign({},o.style,{width:"0.1px",height:"0.1px",opacity:0,overflow:"hidden",position:"absolute",zIndex:-1}):o.style;return i.default.createElement(void 0===n?"input":n,a({type:"file",onChange:this.handleFileSelection},o,{style:r}))}}]),t}(r.Component);t.Z=d},98966:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return HTMLCanvasElement.prototype.toBlob||(0,o.default)(),new Promise(function(a,o){var r=new FileReader;r.onload=function(r){var i=new Image;i.onload=function(r){var l=document.createElement("canvas"),u=t||i.width,s=n||i.height;
1l.width=u,l.height=s;var c=Math.max(u/i.width,s/i.height),p=c*i.width,d=c*i.height,f=l.getContext("2d");if(!f)return o("Could not get the context of the canvas element");f.drawImage(i,Math.min((u-p)/2,0),Math.min((s-d)/2,0),p,d),l.toBlob(function(e){a(e)},e.type)},i.src=r.target.result},r.readAsDataURL(e)})};var a,o=(a=n(85229))&&a.__esModule?a:{default:a}},85229:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){for(var a=atob(this.toDataURL(t,n).split(",")[1]),o=a.length,r=new Uint8Array(o),i=0;i<o;i++)r[i]=a.charCodeAt(i);e(new Blob([r],{type:t||"image/png"}))}})}},49315:function(e){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var a=n||0;return[t[e[a++]],t[e[a++]],t[e[a++]],t[e[a++]],"-",t[e[a++]],t[e[a++]],"-",t[e[a++]],t[e[a++]],"-",t[e[a++]],t[e[a++]],"-",t[e[a++]],t[e[a++]],t[e[a++]],t[e[a++]],t[e[a++]],t[e[a++]]].join("")}},48293:function(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var a=Array(16);e.exports=function(){for(var e,t=0;t<16;t++)(3&t)==0&&(e=4294967296*Math.random()),a[t]=e>>>((3&t)<<3)&255;return a}}},62266:function(e,t,n){var a=n(48293),o=n(49315);e.exports=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var l=0;l<16;++l)t[r+l]=i[l];return t||o(i)}}},function(e){e.O(0,[4976,1281,9603,4288,1733,1779,5039,4860,2888,9774,179],function(){return e(e.s=39046)}),_N_E=e.O()}]);

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.