1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="41bb25ad-a4cc-4bc6-ad7b-b74169ebd803",e._sentryDebugIdIdentifier="sentry-dbid-41bb25ad-a4cc-4bc6-ad7b-b74169ebd803")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92291],{9049:()=>{},12165:(e,t,r)=>{"use strict";r.d(t,{Jo:()=>h,R_:()=>j,U7:()=>E,YG:()=>O,c3:()=>v,dg:()=>w,jn:()=>A,oB:()=>b,uv:()=>g});var n=r(42969),c=r(63857),o=r(60180),s=r.n(o),a=r(75369),u=r(73839),i=r(5323),p=r.n(i),d=r(65048),l=r.n(d);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){(0,n.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var E=function(e){var t;return t=(0,c.A)(s().mark(function t(r,n){var c,o,i;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e||(null==(c=n().project)||null==(c=c.project)?void 0:c.id)){t.next=3;break}return t.abrupt("return");case 3:return r({type:u.A.FETCH_WIDGETS_REQUEST}),t.prev=4,t.next=7,a.A.query({per_page:999,page:1},{projectId:o});case 7:i=t.sent,r({type:u.A.FETCH_WIDGETS_SUCCESS,widgets:i.reduce(function(e,t){return e[t.id]=y({id:t.id},t.attributes()),e},{})}),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(4),r({type:u.A.FETCH_WIDGETS_FAILURE,errorMessage:t.t0.statusText||t.t0.status});case 14:case"end":return t.stop()}},t,null,[[4,11]])})),function(e,r){return t.apply(this,arguments)}},h=function(e){return{type:u.A.SET_ACTIVE_WIDGET,id:e}},b=function(){return{type:u.A.UNSET_ACTIVE_WIDGET}},v=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=(0,c.A)(s().mark(function t(n,c){var o;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n({type:u.A.SAVE_WIDGET_REQUEST,id:e}),o=new a.A(y(y(y({},c().widgets.widgets[e]),r),{},{project:{id:c().project.project.id}})),t.prev=2,t.next=5,o.save();case 5:return n({type:u.A.SAVE_WIDGET_SUCCESS,id:e,updates:r}),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(2),n({type:u.A.SAVE_WIDGET_FAILURE,id:e,errorMessage:t.t0.message||t.t0.statusText||t.t0.status,errors:o.errors.extract()}),t.abrupt("return",!1);case 13:case"end":return t.stop()}},t,null,[[2,9]])})),function(e,r){return t.apply(this,arguments)}},g=function(e){var t;return t=(0,c.A)(s().mark(function t(r,n){return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r({type:u.A.DELETE_WIDGET_REQUEST,id:e}),t.prev=1,t.next=4,a.A.destroy(e,{projectId:n().project.project.id});case 4:r({type:u.A.DELETE_WIDGET_SUCCESS,id:e}),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),r({type:u.A.DELETE_WIDGET_FAILURE,id:e,errorMessage:t.t0.statusText||t.t0.status});case 10:case"end":return t.stop()}},t,null,[[1,7]])})),function(e,r){return t.apply(this,arguments)}},w=function(){return{type:u.A.RESET_WIDGETS}},j=function(e){var t;return t=(0,c.A)(s().mark(function t(r,n){var c,o,i,d,f,E;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:c=n().widgets.widgets,o=p()(l()(c),"sequence").map(function(e){return e.id}),i=[],d=0;case 5:if(!(d<o.length)){t.next=15;break}if(o[d]!==e[d]){t.next=8;break}return t.abrupt("continue",12);case 8:f=y({},c[o[d]]),(E=y({},c[e[d]])).sequence=f.sequence,i.push(E);case 12:d++,t.next=5;break;case 15:return r({type:u.A.REORDER_WIDGETS,updates:i.reduce(function(e,t){return e[t.id]=t.sequence,e},{})}),t.abrupt("return",Promise.all(i.map(function(e){return new a.A(y(y({},e),{},{project:{id:n().project.project.id}})).save()})));case 17:case"end":return t.stop()}},t)})),function(e,r){return t.apply(this,arguments)}},A=function(e){var t;return t=(0,c.A)(s().mark(function t(r,n){var c,o;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r({type:u.A.CREATE_WIDGET_REQUEST}),c=new a.A(y(y({},e),{},{project:{id:n().project.project.id}})),t.prev=2,t.next=5,c.save();case 5:o=t.sent,r({type:u.A.CREATE_WIDGET_SUCCESS,widget:y({id:o.id},o.attributes())}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),r({type:u.A.CREATE_WIDGET_FAILURE,errorMessage:t.t0.message||t.t0.statusText||t.t0.status,errors:c.errors.extract()});case 12:case"end":return t.stop()}},t,null,[[2,9]])}
1)),function(e,r){return t.apply(this,arguments)}},O=function(e){return{type:u.A.SET_RESOURCE_COUNT,count:e}}},43446:()=>{},48521:(e,t,r)=>{"use strict";r.d(t,{Ah:()=>v,Fy:()=>E,Nl:()=>b,WU:()=>l,mm:()=>h,sE:()=>y,ts:()=>f});var n=r(42969),c=r(63857),o=r(60180),s=r.n(o),a=r(33719),u=r.n(a),i=r(70616);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){(0,n.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var l=function(){var e;return e=(0,c.A)(s().mark(function e(t,r){var n;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t({type:u().FETCH_FOLDERS_REQUEST}),e.prev=1,e.next=4,i.A.query({per_page:999,page:1},{projectId:r().project.project.id,widgetId:r().widgets.active});case 4:n=e.sent,t({type:u().FETCH_FOLDERS_SUCCESS,folders:n.reduce(function(e,t){return e[t.id]=d({id:t.id},t.attributes()),e},{})}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),t({type:u().FETCH_FOLDERS_FAILURE,errorMessage:e.t0.statusText||e.t0.status});case 11:case"end":return e.stop()}},e,null,[[1,8]])})),function(t,r){return e.apply(this,arguments)}},f=function(){return{type:u().RESET_FOLDERS}},y=function(e){var t;return t=(0,c.A)(s().mark(function t(r,n){return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r({type:u().DELETE_FOLDER_REQUEST,id:e}),t.prev=1,t.next=4,i.A.destroy(e,{projectId:n().project.project.id,widgetId:n().widgets.active});case 4:r({type:u().DELETE_FOLDER_SUCCESS,id:e}),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),r({type:u().DELETE_FOLDER_FAILURE,id:e,errorMessage:t.t0.statusText||t.t0.status});case 10:case"end":return t.stop()}},t,null,[[1,7]])})),function(e,r){return t.apply(this,arguments)}},E=function(e){return{type:u().SET_ACTIVE_FOLDER,id:e}},h=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=(0,c.A)(s().mark(function t(n,c){var o;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n({type:u().SAVE_FOLDER_REQUEST,id:e}),o=new i.A(d(d(d({},c().widgetFolders.folders[e]),r),{},{widget:{id:c().widgets.active,project:{id:c().project.project.id}}})),t.prev=2,t.next=5,o.save();case 5:return n({type:u().SAVE_FOLDER_SUCCESS,id:e,updates:r}),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(2),n({type:u().SAVE_FOLDER_FAILURE,id:e,errorMessage:t.t0.message||t.t0.statusText||t.t0.status,errors:o.errors.extract()}),t.abrupt("return",!1);case 13:case"end":return t.stop()}},t,null,[[2,9]])})),function(e,r){return t.apply(this,arguments)}},b=function(e){return{type:u().RESET_FOLDER_ERRORS,id:e}},v=function(e,t){var r;return r=(0,c.A)(s().mark(function r(n,c){var o;return s().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n({type:u().REORDER_FOLDER,id:e,sequence:t}),o=new i.A(d(d({},c().widgetFolders.folders[e]),{},{sequence:t,widget:{id:c().widgets.active,project:{id:c().project.project.id}}})),r.next=4,o.save();case 4:case"end":return r.stop()}},r)})),function(e,t){return r.apply(this,arguments)}}},55700:(e,t,r)=>{"use strict";r.d(t,{$S:()=>f,Av:()=>y,HE:()=>d,OP:()=>p,Ug:()=>E,uk:()=>l});var n=r(42969),c=r(59860),o=r(37876),s=["key"];function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){(0,n.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var i={display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}
1,p={"& .MuiAutocomplete-input":{overflow:"hidden",textOverflow:"ellipsis"}},d={paper:{sx:{maxWidth:"100%"}},listbox:{sx:{"& .MuiAutocomplete-option":i}}};function l(e,t){var r=e.key,n=(0,c.A)(e,s);return(0,o.jsx)("li",u(u({},n),{},{title:t,style:i,children:t}),r)}function f(e,t){return l(e,t.name||"")}var y=i;function E(e){return{slotProps:{paper:{sx:e?{width:e,maxWidth:e}:{maxWidth:"100%"}}}}}},57811:()=>{},70616:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(67251),c=r(23745),o=r(29898),s=r(52672),a=r(76966),u=r(42969),i=r(7379),p=r.n(i),d=r(75369);function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}var f=function(e){function t(){var e,r,c,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,n.default)(this,t),e=t,r=[a],e=(0,s.default)(e),c=(0,o.default)(this,l()?Reflect.construct(e,r||[],(0,s.default)(this).constructor):e.apply(this,r)),p().call(c,a),c.name=a.name,c.sequence=a.sequence,c.createdAt=a.createdAt,c.selected=a.selected,c.widget=c.belongsTo(d.A,a.widget),c}
1return(0,a.default)(t,e),(0,c.default)(t,[{key:"constructBaseURL",value:function(){return this.constructor.constructBaseURL({widgetId:this.widget.id,projectId:this.widget.project.id})}}])}(p());(0,u.default)(f,"_type","folders"),(0,u.default)(f,"baseURL","/projects/:projectId/widgets/:widgetId/folders");let y=f},75369:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});var n=r(67251),c=r(23745),o=r(29898),s=r(52672),a=r(76966),u=r(42969),i=r(7379),p=r.n(i),d=r(58398),l=r(48363);function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var y=function(e){function t(){var e,r,c,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,n.default)(this,t),e=t,r=[a],e=(0,s.default)(e),c=(0,o.default)(this,f()?Reflect.construct(e,r||[],(0,s.default)(this).constructor):e.apply(this,r)),p().call(c,a),c.title=a.title||"",c.type=a.type||"",c.resourceCount=a.resourceCount||0,c.hide="boolean"==typeof a.hide&&a.hide,c.hideTitle="boolean"==typeof a.hideTitle&&a.hideTitle,c.displayTopmost="boolean"!=typeof a.displayTopmost||a.displayTopmost,c.limit=a.limit||0,c.content=a.content||"",c.autoSelectNewProjects="boolean"==typeof a.autoSelectNewProjects&&a.autoSelectNewProjects,c.autoSelectArchivedProjects="boolean"==typeof a.autoSelectArchivedProjects&&a.autoSelectArchivedProjects,c.sequence=a.sequence,c.displayType=a.displayType,c.createdAt=a.createdAt,c.showImage=a.showImage,c.project=c.belongsTo(d.A,a.project),c.folderCollapse=a.folderCollapse,c.hidePastKeyDate=a.hidePastKeyDate,c}
1return(0,a.default)(t,e),(0,c.default)(t,[{key:"constructBaseURL",value:function(){return this.constructor.constructBaseURL({projectId:this.project.id})}},{key:"validate",value:function(){(0,l.default)(this.title)&&this.errors.add({code:"blank",source:{pointer:"/data/attributes/title"}})}}])}(p());(0,u.default)(y,"_type","widgets"),(0,u.default)(y,"baseURL","/projects/:projectId/widgets");let E=y},75912:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(59234),c=r(69364),o=r.n(c);r(14232);var s=r(67376),a=r.n(s),u=r(37876),i=function(e,t){return a()(e,{allowedTags:t||["h1","h2","h3","h4","h5","h6","blockquote","p","a","ul","ol","s","u","nl","li","b","i","strong","em","strike","code","hr","br","div","table","thead","caption","tbody","tr","th","td","pre","img","span","style"],allowedAttributes:{span:["class","style"],a:["class","style","href","target"],img:["class","style","src","width","height","alt"],"*":["class","style","src","target","alt","width","height","type","tabindex","role","aria-hidden","id"]},selfClosing:["img","br","hr"]})},p={"& a":{textDecoration:"none","&:hover":{textDecoration:"underline"}}};let d=function(e){var t=e.html,r=e.allowTags,c=e.truncateLength;return t?c?(0,u.jsx)(n.A,{component:"span",sx:p,dangerouslySetInnerHTML:{__html:o()(i(t,r),{length:c})}}):(0,u.jsx)(n.A,{component:"span",sx:p,dangerouslySetInnerHTML:{__html:i(t,r)}}):(0,u.jsx)(u.Fragment,{})}},91902:()=>{}}]); 2//# sourceMappingURL=92291-2c5f94e6458eb57e.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.