PageSourceSearch

https://welovedevs.com/app/scripts/7208.7b1655774fcf1f83d27a.js

js welovedevs.com collected 2026-10-03 21:42:16 UTC 13,081 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7208],{10772:(e,n,t)=>{t.d(n,{r8:()=>N});var r=t(96540),o=t(12215),i=t.n(o),s=t(35123),a=t.n(s),c=t(37007),u=function(){return u=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},u.apply(this,arguments)},f="tracking-preferences";function l(e){var n=i().getJSON(e||f);return n?{destinationPreferences:n.destinations,customPreferences:n.custom}:{}}var d=new c.EventEmitter;var p=t(60328),h=t.n(p),v=t(35970),y=t.n(v),P=t(59043),w=t.n(P),g=t(33031),b=t.n(g),m=function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,a)}c((r=r.apply(e,n||[])).next())}))},k=function(e,n){var t,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;s;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=n.call(e,s)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};function x(e,n){return m(this,void 0,void 0,(function(){var t,r,o,i,s;return k(this,(function(a){switch(a.label){case 0:return[4,h()("https://"+e+"/v1/projects/"+n+"/integrations")];case 1:if(!(t=a.sent()).ok)throw new Error("Failed to fetch integrations for write key "+n+": HTTP "+t.status+" "+t.statusText);return[4,t.json()];case 2:for(r=a.sent(),o=0,i=r;o<i.length;o++)"Fullstory"===(s=i[o]).name?s.id=s.name:s.id=s.creationName,delete s.creationName;return[2,r]}}))}))}function C(e,n){return m(this,void 0,void 0,(function(){var t,r,o,i,s,a;return k(this,(function(c){switch(c.label){case 0:for(t=[],r=0,o=n;r<o.length;r++)i=o[r],t.push(x(e,i));return a=y(),[4,Promise.all(t)];case 1:return s=(s=a.apply(void 0,[c.sent()])).filter((function(e){return"Repeater"!==e.id})),s=b()(s,["id"]),[2,s=w()(s,"id")]}}))}))}function D(e){var n=e.writeKey,t=e.destinations,r=e.destinationPreferences,o=e.isConsentRequired,i=e.shouldReload,s=void 0===i||i,a=e.devMode,c=void 0!==a&&a,u=e.defaultDestinationBehavior,f=e.categoryPreferences,l=window,d={All:!1,"Segment.io":!0},p=!1;if(r){for(var h=0,v=t;h<v.length;h++){var y=v[h];if(y.id in r||"enable"!==u){var P=Boolean(r[y.id]);P&&(p=!0),d[y.id]=P}else d[y.id]=!0}if(l.analytics&&l.analytics.initialized)s&&window.location.reload();else if(!c&&p){var w=function(e,n,t){return function(r){var o=r.payload,i=r.next;o.obj.context.consent={defaultDestinationBehavior:t,categoryPreferences:n,destinationPreferences:e},i(o)}}(r,f,u);l.analytics.addSourceMiddleware(w),l.analytics.load(n,{integrations:d})}}else{if(o)return;l.analytics.initialized||l.analytics.load(n)}}var _,O=(_=function(e,n){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},_(e,n)},function(e,n){function t(){this.constructor=e}_(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),R=function(){return R=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},R.apply(this,arguments)},j=function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,a)}c((r=r.apply(e,n||[])).next())}))},S=function(e,n){var t,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;s;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=n.call(e,s)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},A=function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),o=0;for(n=0;n<t;n++)for(var i=arguments[n],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r};function M(e,n){var t=[];if(!n)return e;for(var r=0,o=e;r<o.length;r++){var i=o[r];void 0===n[i.id]&&t.push(i)}return t}var N=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isLoading:!0,destinations:[],newDestinations:[],preferences:{},destinationPreferences:{},isConsentRequired:!0,havePreferencesChanged:!1,workspaceAddedNewDestinations:!1},t.initialise=function(){return j(t,void 0,void 0,(function(){var e,t,r,o,i,s,a,c,u,f,d,p,h,v,y,P,w,g,b,m,k,x,_,O,R,j,N,E;return S(this,(function(S){switch(S.label){case 0:return e=this.props,t=e.writeKey,r=e.otherWriteKeys,o=void 0===r?n.defaultProps.otherWriteKeys:r,i=e.shouldRequireConsent,s=void 0===i?n.defaultProps.shouldRequireConsent:i,a=e.initialPreferences,c=e.mapCustomPreferences,u=e.defaultDestinationBehavior,f=e.cookieName,d=e.cdnHost,p=void 0===d?n.defaultProps.cdnHost:d,h=e.shouldReload,v=void 0===h?n.defaultProps.shouldReload:h,y=e.devMode,P=void 0===y?n.defaultProps.devMode:y,w=l(f),g=w.destinationPreferences,b=w.customPreferences,[4,Promise.all([s(),C(p,A([t],o))])];case 1:return m=S.sent(),k=m[0],x=m[1],_=M(x,g||{}),O=g&&Object.keys(g).length>0&&_.length>0,j=Object.values(a||{}).some((function(e){return!0===e||!1===e||"N/A"===e})),N=Object.values(b||{}).every((function(e){return null==e||"N/A"===e})),c?(R=b||a||{},(j&&N||"imply"===u&&O)&&(E=c(x,R),g=E.destinationPreferences,b=E.customPreferences,R=b)):R=g||a,D({writeKey:t,destinations:x,destinationPreferences:g,isConsentRequired:k,shouldReload:v,devMode:P,defaultDestinationBehavior:u,categoryPreferences:R}),this.setState({isLoading:!1,destinations:x,newDestinations:_,preferences:R,isConsentRequired:k,destinationPreferences:g,workspaceAddedNewDestinations:Boolean(O)}),[2]}}))}))},t.handleSetPreferences=function(e){t.setState((function(n){var r=n.destinations,o=n.preferences,i=t.mergePreferences({destinations:r,newPreferences:e,existingPreferences:o});return R(R({},n),{preferences:i,havePreferencesChanged:!0})}))},t.handleResetPreferences=function(){var e,n=t.props,r=n.initialPreferences,o=n.mapCustomPreferences,i=l(n.cookieName),s=i.destinationPreferences,a=i.customPreferences;e=o?a||r:s||r,t.setState({preferences:e})},t.handleSaveConsent=function(e,n,r){var o=t.props,s=o.writeKey,c=o.cookieDomain,l=o.cookieName,p=o.cookieExpires,h=o.cookieAttributes,v=o.mapCustomPreferences,y=o.defaultDestinationBehavior;t.setState((function(o){var P,w,g=o.destinations,b=o.preferences,m=o.isConsentRequired,k=t.mergePreferences({destinations:g,newPreferences:e,existingPreferences:b});if(v){var x=v(g,k);P=x.destinationPreferences,(w=x.customPreferences)?k=w:w=k}else P=k;var C=M(g,P);return(o.havePreferencesChanged||C.length>0||"boolean"==typeof e)&&(n=!0),function(e){var n=e.destinationPreferences,t=e.customPreferences,r=e.cookieDomain,o=e.cookieName,s=e.cookieExpires,c=e.cookieAttributes,l=void 0===c?{}:c,p=window;p.analytics&&p.analytics.identify({destinationTrackingPreferences:n,customTrackingPreferences:t});var h=r||a()(window.location.href),v=s||365,y={version:1,destinations:n,custom:t};
1i().set(o||f,y,u({expires:v,domain:h},l)),d.emit("preferencesSaved",{destinationPreferences:n,customPreferences:t})}({destinationPreferences:P,customPreferences:w,cookieDomain:c,cookieName:l,cookieExpires:p,cookieAttributes:h}),D({writeKey:s,destinations:g,destinationPreferences:P,isConsentRequired:m,shouldReload:n,devMode:r,defaultDestinationBehavior:y,categoryPreferences:w}),R(R({},o),{destinationPreferences:P,preferences:k,newDestinations:C})}))},t.mergePreferences=function(e){var n,t=e.destinations,r=e.existingPreferences,o=e.newPreferences;if("boolean"==typeof o){for(var i={},s=0,a=t;s<a.length;s++){i[a[s].id]=o}n=i}else n=o?R(R({},r),o):r;return n},t}return O(n,e),n.prototype.render=function(){var e=this.props,n=e.children,t=e.customCategories,r=this.state,o=r.isLoading,i=r.destinations,s=r.preferences,a=r.newDestinations,c=r.isConsentRequired,u=r.havePreferencesChanged,f=r.workspaceAddedNewDestinations,l=r.destinationPreferences;return o?null:n({destinations:i,customCategories:t,newDestinations:a,preferences:s,isConsentRequired:c,havePreferencesChanged:u,workspaceAddedNewDestinations:f,destinationPreferences:l,setPreferences:this.handleSetPreferences,resetPreferences:this.handleResetPreferences,saveConsent:this.handleSaveConsent})},n.prototype.componentDidMount=function(){return j(this,void 0,void 0,(function(){var e,n;return S(this,(function(t){switch(t.label){case 0:if(!(e=this.props.onError)||"function"!=typeof e)return[3,6];t.label=1;case 1:return t.trys.push([1,3,,5]),[4,this.initialise()];case 2:return t.sent(),[3,5];case 3:return n=t.sent(),[4,e(n)];case 4:return t.sent(),[3,5];case 5:return[3,8];case 6:return[4,this.initialise()];case 7:t.sent(),t.label=8;case 8:return[2]}}
1))}))},n.displayName="ConsentManagerBuilder",n.defaultProps={otherWriteKeys:[],onError:void 0,shouldRequireConsent:function(){return!0},initialPreferences:{},cdnHost:"cdn.segment.com",shouldReload:!0,devMode:!1},n}(r.Component)},35123:(e,n,t)=>{var r=t(64808).parse,o=t(56017);function i(e){for(var t=n.cookie,r=n.levels(e),o=0;o<r.length;++o){var i="__tld__",s=r[o],a={domain:"."+s};if(t(i,1,a),t(i))return t(i,null,a),s}return""}i.levels=function(e){var n=r(e).hostname.split("."),t=n[n.length-1],o=[];if(4===n.length&&t===parseInt(t,10))return o;if(n.length<=1)return o;for(var i=n.length-2;i>=0;--i)o.push(n.slice(i).join("."));return o},i.cookie=o,n=e.exports=i},96897:(e,n,t)=>{var r=t(70453),o=t(52422),i=t(30592)(),s=t(75795),a=t(69675),c=r("%Math.floor%");e.exports=function(e,n){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof n||n<0||n>4294967295||c(n)!==n)throw new a("`length` must be a positive 32-bit integer");var t=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&s){var f=s(e,"length");f&&!f.configurable&&(r=!1),f&&!f.writable&&(u=!1)}return(r||u||!t)&&(i?o(e,"length",n,!0,!0):o(e,"length",n)),e}},83390:(e,n,t)=>{function r(e,n){if(e===n)return!0;if(!e||!n)return!1;var t=Object.keys(e),r=Object.keys(n),o=t.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var s=t[i];if(e[s]!==n[s]||!Object.prototype.hasOwnProperty.call(n,s))return!1}return!0}t.d(n,{f:()=>r})},920:(e,n,t)=>{var r=t(70453),o=t(38075),i=t(58859),s=t(69675),a=r("%WeakMap%",!0),c=r("%Map%",!0),u=o("WeakMap.prototype.get",!0),f=o("WeakMap.prototype.set",!0),l=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),p=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),v=function(e,n){for(var t,r=e;null!==(t=r.next);r=t)if(t.key===n)return r.next=t.next,t.next=e.next,e.next=t,t};e.exports=function(){var e,n,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+i(e))},get:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return u(e,r)}else if(c){if(n)return d(n,r)}else if(t)return function(e,n){var t=v(e,n);return t&&t.value}(t,r)},has:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return l(e,r)}else if(c){if(n)return h(n,r)}else if(t)return function(e,n){return!!v(e,n)}(t,r);return!1},set:function(r,o){a&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new a),f(e,r,o)):c?(n||(n=new c),p(n,r,o)):(t||(t={key:{},next:null}),function(e,n,t){var r=v(e,n);r?r.value=t:e.next={key:n,next:e.next,value:t}}(t,r,o))}};return r}}}]);
2//# sourceMappingURL=7208.7b1655774fcf1f83d27a.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.