1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1f8dc0f2-13ad-4dbe-bc3c-67d0de0eaed8",t._sentryDebugIdIdentifier="sentry-dbid-1f8dc0f2-13ad-4dbe-bc3c-67d0de0eaed8")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7065,1755],{1948:function(t,e,n){Promise.resolve().then(n.t.bind(n,65878,23)),Promise.resolve().then(n.t.bind(n,72972,23)),Promise.resolve().then(n.bind(n,77867)),Promise.resolve().then(n.bind(n,13127)),Promise.resolve().then(n.bind(n,52413)),Promise.resolve().then(n.bind(n,95746)),Promise.resolve().then(n.bind(n,65416)),Promise.resolve().then(n.bind(n,49785)),Promise.resolve().then(n.bind(n,84013)),Promise.resolve().then(n.bind(n,7649)),Promise.resolve().then(n.bind(n,54124)),Promise.resolve().then(n.bind(n,38060)),Promise.resolve().then(n.bind(n,17209)),Promise.resolve().then(n.bind(n,39238)),Promise.resolve().then(n.bind(n,67443))},49953:function(t){var e;window,e=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e||4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,(function(e){return t[e]}).bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}n.r(e);var o=!!window.fbq,i=!1,a=function(){var t;if(i){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];(t=console).info.apply(t,r(["[react-facebook-pixel]"].concat(n)))}},c=function(){var t;if(i){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];(t=console).info.apply(t,r(["[react-facebook-pixel]"].concat(n)))}},u=function(){return o||a("Pixel not initialized before using call ReactPixel.init with required params"),o},l={autoConfig:!0,debug:!1};e.default={init:function(t){var e,n,r,c,u,f,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;e=window,n=document,r="script",e.fbq||(c=e.fbq=function(){c.callMethod?c.callMethod.apply(c,arguments):c.queue.push(arguments)},e._fbq||(e._fbq=c),c.push=c,c.loaded=!0,c.version="2.0",c.queue=[],(u=n.createElement(r)).async=!0,u.src="https://connect.facebook.net/en_US/fbevents.js",(f=n.getElementsByTagName(r)[0]).parentNode.insertBefore(u,f)),t?(!1===d.autoConfig&&fbq("set","autoConfig",!1,t),fbq("init",t,s),o=!0,i=d.debug):a("Please insert pixel id for initializing")},pageView:function(){u()&&(fbq("track","PageView"),i&&c("called fbq('track', 'PageView');"))},track:function(t,e){u()&&(fbq("track",t,e),i&&(c("called fbq('track', '".concat(t,"');")),e&&c("with data",e)))},trackSingle:function(t,e,n){u()&&(fbq("trackSingle",t,e,n),i&&(c("called fbq('trackSingle', '".concat(t,"', '").concat(e,"');")),n&&c("with data",n)))},trackCustom:function(t,e){u()&&(fbq("trackCustom",t,e),i&&(c("called fbq('trackCustom', '".concat(t,"');")),e&&c("with data",e)))},trackSingleCustom:function(t,e,n){u()&&(fbq("trackSingle",t,e,n),i&&(c("called fbq('trackSingleCustom', '".concat(t,"', '").concat(e,"');")),n&&c("with data",n)))},grantConsent:function(){u()&&(fbq("consent","grant"),i&&c("called fbq('consent', 'grant');"))},revokeConsent:function(){u()&&(fbq("consent","revoke"),i&&c("called fbq('consent', 'revoke');"))},fbq:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){if(u()){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];fbq.apply(void 0,e),i&&(c("called fbq('".concat(e.slice(0,2).join("', '"),"')")),e[2]&&c("with data",e[2]))}})}}])},t.exports=e()},31654:function(t,e){"use strict";function n(){n=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i,a,c=Object.create((e&&e.prototype instanceof h?e:h).prototype);return o(c,"_invoke",{value:(i=new P(r||[]),a="suspendedStart",function(e,r){if("executing"===a)throw Error("Generator is already running");if("completed"===a){if("throw"===e)throw r;return E()}for(i.method=e,i.arg=r;;){var o=i.delegate;if(o){var c=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&
vendor: 6,041 bytes, line 1
1(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return d;n.method="throw",n.arg=TypeError("The iterator does not provide a 'throw' method")}return d}var o=s(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,d;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,d):i:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,d)}(o,i);if(c){if(c===d)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===a)throw a="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a="executing";var u=s(t,n,i);if("normal"===u.type){if(a=i.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(a="completed",i.method="throw",i.arg=u.arg)}})}),c}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function h(){}function v(){}function p(){}var y={};l(y,a,function(){return this});var g=Object.getPrototypeOf,m=g&&g(g(j([])));m&&m!==e&&r.call(m,a)&&(y=m);var b=p.prototype=h.prototype=Object.create(y);function w(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function _(t,e){var n;o(this,"_invoke",{value:function(o,i){function a(){return new e(function(n,a){!function n(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){l.value=t,a(l)},function(t){return n("throw",t,a,c)})}c(u.arg)}(o,i,n,a)})}return n=n?n.then(a,a):a()}})}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return v.prototype=p,o(b,"constructor",{value:p,configurable:!0}),o(p,"constructor",{value:v,configurable:!0}),v.displayName=l(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,l(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(_.prototype),l(_.prototype,c,function(){return this}),t.AsyncIterator=_,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new _(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(t){return t.done?t.value:a.next()})},w(b),l(b,u,"Generator"),l(b,a,function(){return this}),l(b,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=j,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:j(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function r(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){n(t);return}c.done?e(u):Promise.resolve(u).then(r,o)}var o=!1,i=!1,a=function(){var t;if(o){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=console).info.apply(t,["[tiktok-pixel]"].concat(n))}},c=function(){var t;if(o){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=console).info.apply(t,["[tiktok-pixel]"].concat(n))}}
1,u=function(t,e,n,r,c){t.TiktokAnalyticsObject=e;var u=t[e]=t[e]||[];u.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],u.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var l=0;l<u.methods.length;l++)u.setAndDefer(u,u.methods[l]);u.instance=function(t){for(var e=u._i[t]||[],n=0;n<u.methods.length;n++)u.setAndDefer(e,u.methods[n]);return e},u.load=function(t,n){var r,o="https://analytics.tiktok.com/i18n/pixel/events.js";u._i=u._i||{},u._i[t]=[],u._i[t]._u=o,u._t=u._t||{},u._t[t]=+new Date,u._o=u._o||{},u._o[t]=n||{};var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src=o+"?sdkid="+t+"&lib="+e;var a=document.getElementsByTagName("script")[0];null==a||null==(r=a.parentNode)||r.insertBefore(i,a)},n?(u.load(n),u.identify(r),u.page(),i=!0,o=c.debug):a("Please insert pixel id for initializing")},l={debug:!1},f=function(){return window.ttq};e.Z={init:function(t,e,o){var a;return(a=n().mark(function r(){return n().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:void 0===e&&(e={}),void 0===o&&(o=l),(i="undefined"!=typeof window&&!!window.ttq)||u(window,"ttq",t,e,o);case 4:case"end":return n.stop()}},r)}),function(){var t=this,e=arguments;return new Promise(function(n,o){var i=a.apply(t,e);function c(t){r(i,n,o,c,u,"next",t)}function u(t){r(i,n,o,c,u,"throw",t)}c(void 0)})})()},pageView:function(){f().page()},track:function(t,e,n){void 0===n&&(n={}),i||a("Pixel not initialized before using call tiktokPixel.init with required params"),i&&(t||c("please specificy an event name"),f().track(t,e,n),o&&(c("called ttq.track('"+t+"')",e,n),e&&c("with data",e,n)))}}},92856:function(t,e,n){"use strict";n.d(e,{InitFacebookPixel:function(){return u},K:function(){return l}});var r=n(92088),o=n(50083),i=n(2265),a=n(49953),c=n.n(a);function u(){return(0,i.useEffect)(()=>{c().init((0,r.ZM)()),c().pageView()},[]),null}function l(t){let{event:e,data:n}=t;return(0,i.useEffect)(()=>{(async()=>{await (0,o.h)("analytics")&&(""!==(0,r.vL)()?c().fbq("track",e,n,{test_event_code:(0,r.vL)()}):c().fbq("track",e,n))})()},[n,e]),null}},30337:function(t,e,n){"use strict";n.d(e,{SendGaEvent:function(){return a}});var r=n(92088),o=n(50083),i=n(2265);
1function a(t){let{action:e,eventParams:n}=t;return(0,i.useEffect)(()=>{let t=async()=>{await (0,o.h)("analytics")&&(0,r.mN)(e,n)};console.log("Sending GA event:",e,n),t()},[]),null}},25150:function(t,e,n){"use strict";n.d(e,{S:function(){return i}});var r=n(2265),o=n(28851);function i(t){let{eventCategory:e,eventAction:n,eventLabel:i}=t;return(0,r.useEffect)(()=>{(0,o.oP)(e,n,i)},[e,n,i]),null}},29044:function(t,e,n){"use strict";n.d(e,{InitTiktokPixel:function(){return c},V:function(){return u}});var r=n(92088),o=n(50083),i=n(2265),a=n(31654);function c(){return(0,i.useEffect)(()=>{a.Z.init((0,r.vV)()),a.Z.pageView()},[]),null}function u(t){let{event:e,data:n,options:r}=t;return(0,i.useEffect)(()=>{(async()=>{await (0,o.h)("analytics")&&a.Z.track(e,n,r)})()},[n,e,r]),null}},65416:function(t,e,n){"use strict";var r=n(50083),o=n(2265);e.default=t=>{let{projectId:e}=t;return(0,o.useEffect)(()=>{(async()=>{if(await (0,r.h)("marketing")){let t=localStorage.getItem("visitedProjects"),n=t?t.split(","):[];n.unshift("".concat(e)),n=[...new Set(n)].slice(0,3),localStorage.setItem("visitedProjects",n.join(","))}else localStorage.removeItem("visitedProjects")})()},[e]),null}},38060:function(t,e){"use strict";e.default=()=>null},17209:function(t,e,n){"use strict";n.d(e,{default:function(){return u}});var r=n(57437),o=n(92856),i=n(30337),a=n(25150),c=n(29044);function u(t){var e,n,u,l,f;let{project:s}=t,d=(null==s?void 0:s.projectCategories)||[],h=Number((null==s?void 0:null===(n=s.amountOptions)||void 0===n?void 0:null===(e=n[0])||void 0===e?void 0:e.amount)||0);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.SendGaEvent,{action:"view_item",eventParam
1s:{currency:"THB",value:h,tax:0,shipping:0,items:[{item_id:s.slug,item_name:s.title,price:h,quantity:1,item_variant:"project",item_category:null===(u=d[0])||void 0===u?void 0:u.nameTh,item_category2:null===(l=d[1])||void 0===l?void 0:l.nameTh,item_category3:null===(f=d[2])||void 0===f?void 0:f.nameTh}]}}),(0,r.jsx)(a.S,{eventCategory:"Donation Funnel",eventAction:"Step 1 - View Project Page",eventLabel:s.slug}),(0,r.jsx)(o.K,{event:"ViewContent",data:{content_ids:[String(s.id)],content_type:"product",content_name:s.title,content_category:"530",currency:"THB",value:0}}),(0,r.jsx)(c.V,{event:"ViewContent",data:{content_ids:[String(s.id)],content_type:"product",content_name:s.title,content_category:"530",currency:"THB",value:0}})]})}}},function(t){t.O(0,[1347,8977,5147,1866,454,9089,9676,1728,2972,5878,7501,7542,6307,8987,4651,1639,1478,5753,5990,2680,1287,1184,1195,1571,1053,1927,72,4743,5111,1539,8387,991,2971,6577,1744],function(){return t(t.s=1948)}),_N_E=t.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.