PageSourceSearch

https://www.spleis.no/public/project-project-sharing-ProjectSharing.js?v=c39e5a7e28b8e9c26e41

js spleis.no collected 2026-10-01 12:02:51 UTC 30,630 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4759],{7432:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ProjectSharingFooter",{enumerable:!0,get:function(){return o}});var n=r(74848),a=r(54928),i=function(e){return e&&e.__esModule?e:{default:e}}(r(56697)),o=function(e){var t=e.backLink,r=e.forwardLink,o=e.backLinkText,l=e.forwardLinkText;return(0,n.jsxs)("div",{className:i.default.prevNextContainer,children:[(0,n.jsxs)(a.Link,{className:i.default.navigationLink,to:t,children:["← ",o]}),(0,n.jsxs)(a.Link,{className:i.default.navigationLink,to:r,children:[l," →"]})]})}},9945:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});let n={wrapper:"lIPuF",inputAndButtonContainer:"_HP0n",copyButton:"cGU9A",linkInputField:"Mw0zb",linkIcon:"SDEwL",inputContainer:"xKHT2",inputContainerHidden:"ReCyJ"}},13814:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ProjectSharingCommunity",{enumerable:!0,get:function(){return h}});var n=r(74848),a=r(16119),i=r(82630),o=f(r(56697)),l=r(7432),s=r(71953),c=r(84605),u=r(25128),d=f(r(43179)),p=f(r(77388));function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){var t=e.setSharingStepComplete,r=e.project,f=e.completed,h=e.shortlink,m="/project/".concat(r.id,"/sharing/3"),g="/project/".concat(r.id,"/sharing/5"),j=h?(0,u.getUrlFromShortlink)(h):"https://spleis.no/".concat(r.id);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.ProjectSharingHeader,{title:"Del i grupper og fellesskap",backLink:"/project/".concat(r.id,"/sharing"),backLinkText:"Tilbake til delingspanelet"}),(0,n.jsxs)("section",{className:o.default.contentPanel,children:[(0,n.jsx)("div",{className:o.default.fullWidth,children:(0,n.jsx)(d.default,{className:o.default.topImage,src:"people-illustrations/group-chilling.svg",alt:"4 personer som hygger seg sammen"})}),(0,n.jsx)("p",{children:"Del innsamlingen din i grupper som kan ha nytte av den."}),(0,n.jsxs)("ul",{className:o.default.checkmarkList,children:[(0,n.jsx)("li",{children:"Grupper p\xe5 facebook"}),(0,n.jsx)("li",{children:"Forumer og nettsamfunn"}),(0,n.jsx)("li",{children:"Blogger"}),(0,n.jsx)("li",{children:"Lokalaviser"}),(0,n.jsx)("li",{children:"Klubber eller lag som heier p\xe5 innsamlingen"})]}),(0,n.jsx)("p",{className:o.default.listAligned,children:(0,n.jsx)("em",{children:"Kommer du p\xe5 noen flere?"})}),(0,n.jsx)(p.default,{link:j,callback:function(){return(0,c.trackEvent)("admin","project-share",{channel:"copy-url",activity:"community","project-id":r.id})}}),(0,n.jsx)(s.MarkAsCompleteButton,{completed:f,onClick:function(){t(a.sharingSteps.community),(0,c.trackEvent)("shareguide","step-complete",{activity:"community","project-id":r.id})}})]}),(0,n.jsx)(l.ProjectSharingFooter,{backLink:m,backLinkText:"St\xf8ttespillere",forwardLink:g,forwardLinkText:"Instagram"})]})}},16119:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return T},loader:function(){return A},sharingSteps:function(){return I}});var n=r(74848),a=O(r(5556)),i=r(96540),o=r(69733),l=O(r(91387)),s=O(r(9620)),c=r(21763),u=O(r(9120)),d=O(r(56697)),p=O(r(86663)),f=r(60938),h=r(28553),m=r(84605),g=r(28739),j=r(53834),k=r(13814),b=r(85439),x=O(r(56618)),v=O(r(56659)),y=r(43493),S=O(r(66744)),P=r(15242),L=O(r(22786)),C=r(95642),N=r(88510);function F(e,t,r,n,a,i,o){try{var l=e[i](o),s=l.value}catch(e){r(e);return}l.done?t(s):Promise.resolve(s).then(n,a)}function O(e){return e&&e.__esModule?e:{default:e}}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function w(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}
1)(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var I={customUrl:"customUrl",facebook:"facebook",friends:"friends",community:"community",instagram:"instagram"};function D(e){if(e.fromPublishedDialog)return(0,n.jsx)(v.default,w(_({},e),{completed:e.sharingProgress[I.customUrl],showHeaderAndFooter:!1}));switch(e.step){case"1":return(0,n.jsx)(v.default,w(_({},e),{completed:e.sharingProgress[I.customUrl]}));case"2":return(0,n.jsx)(g.ProjectSharingFacebook,w(_({},e),{completed:e.sharingProgress[I.facebook]}));case"3":return(0,n.jsx)(j.ProjectSharingFriends,w(_({},e),{completed:e.sharingProgress[I.friends]}));case"4":return(0,n.jsx)(k.ProjectSharingCommunity,w(_({},e),{completed:e.sharingProgress[I.community]}));case"5":return(0,n.jsx)(S.default,w(_({},e),{completed:e.sharingProgress[I.instagram]}));default:return(0,n.jsx)(b.ProjectSharingSummaryPanel,_({},e))}}function U(e){var t=e.dispatch,r=e.params,a=e.project,o=e.user,p=e.sharingProgress,h=e.stepsMissing;return((0,i.useEffect)(function(){var e="project-sharing".concat(r.id?"-".concat(r.id):"");(0,m.trackPageView)({urlAsEvent:e,properties:{"project-id":r.projectId}})},[r.id,r.projectId]),a)?(0,c.canUserEditProject)(o,a.id)?a.published_at?(0,n.jsx)(x.default,{children:(0,n.jsx)(l.default,{className:d.default.contentContainer,children:(0,n.jsx)(D,{step:r.id,sharingProgress:p,project:a,stepsMissing:h,setSharingStepComplete:function(e){var n=r.projectId;t((0,f.setSharingProgressStepAsCompleted)({projectId:n,step:e}))},fromPublishedDialog:e.fromPublishedDialog,shortlink:e.shortlink,showStreamLabs:e.showStreamLabs})})}):(0,n.jsx)(x.default,{children:(0,n.jsx)(l.default,{className:d.default.contentContainerNotPublished,children:(0,n.jsx)("h1",{className:d.default.title,children:"Du m\xe5 publisere innsamlingen f\xf8r du deler den"})})}):(0,n.jsx)(x.default,{children:(0,n.jsx)(u.default,{error:"Denne siden er bare for innsamler, du har ikke tilgang"})}):(0,n.jsx)(x.default,{children:(0,n.jsx)(s.default,{})})}var A=function(){var e,t=(e=function(e){var t,r,n;return function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&i[0]?n.return:i[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,i[1])).done)return a;switch(n=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}
1if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],n=0}finally{r=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,function(a){switch(a.label){case 0:return t=e.dispatch,r=e.params.projectId,n=t((0,C.fetchProjectCard)(r)),[4,Promise.all([n,t((0,C.fetchProjectTransactionAggregates)(r)),t((0,f.fetchSharingProgressForProject)(r)),t((0,N.fetchShortlinkForProject)(r))])];case 1:return a.sent(),[2]}})},function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(e){F(i,n,a,o,l,"next",e)}function l(e){F(i,n,a,o,l,"throw",e)}o(void 0)})});return function(e){return t.apply(this,arguments)}}();U.propTypes={dispatch:a.default.func.isRequired,user:a.default.object.isRequired,project:a.default.object,fromPublishedDialog:a.default.bool},U.defaultProps={fromPublishedDialog:!1};var T=(0,L.default)((0,o.connect)(function(e,t){var r=parseInt(t.params.projectId,10),n=(0,P.getProjectFromId)(e,r),a=p.default.parse(t.location.search),i=(0,h.getCompletedSharingStepsForProject)(e,r);return{user:e.user,project:n,sharingProgress:i,isFetchingProjects:e.projects.isFetchingCards,stepsMissing:(0,h.getNumMissingSharingStepsForProject)(e,r),fromPublishedDialog:"true"===a.published,shortlink:(0,y.getLinkForProject)({state:e,projectId:r})}})(U))},28739:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ProjectSharingFacebook",{enumerable:!0,get:function(){return m}});var n=r(74848),a=r(16119),i=r(82630),o=r(5273),l=r(84605),s=h(r(56697)),c=r(7432),u=r(71953),d=r(25128),p=h(r(48716)),f=h(r(43179));function h(e){return e&&e.__esModule?e:{default:e}}var m=function(e){var t=e.setSharingStepComplete,r=e.project,h=e.completed,m=e.shortlink,g=m?(0,d.getUrlFromShortlink)(m):"https://spleis.no/".concat(r.id),j=(0,o.facebookShareUrl)(g),k="/project/".concat(r.id,"/sharing/1"),b="/project/".concat(r.id,"/sharing/3");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.ProjectSharingHeader,{title:"Del p\xe5 Facebook",backLink:"/project/".concat(r.id,"/sharing"),backLinkText:"Tilbake til delingspanelet"}),(0,n.jsxs)("section",{className:s.default.contentPanel,children:[(0,n.jsx)(f.default,{className:s.default.topImage,src:"people-illustrations/man-sending-invitation.svg",title:"Person som inviterer vennene sine med mobiltelefonen",alt:"Person som inviterer vennene sine med mobiltelefonen"}),(0,n.jsxs)("ul",{className:s.default.checkmarkList,children:[(0,n.jsx)("li",{children:"Innsamlinger som deles i sosiale medier har mye st\xf8rre sannsynlighet for \xe5 lykkes"}),(0,n.jsx)("li",{children:"De fleste som st\xf8tter spleisen din vil trolig v\xe6re i din umiddelbare eller utvidede vennekrets"}),(0,n.jsx)("li",{children:"Husk \xe5 oppfordre til \xe5 dele videre – det hjelper!"})]}),(0,n.jsx)("div",{className:s.default.shareButton,children:(0,n.jsxs)(p.default,{className:s.default.maxWidthOnMobile,onClick:function(){(0,l.trackEvent)("admin","project-share",{channel:"facebook",activity:"facebook","project-id":r.id}),(0,o.openNewWindow)(j)},children:[(0,n.jsx)("i",{className:"fab fa-facebook-f ".concat(s.default.buttonIcon),"aria-hidden":"true"})," Del p\xe5 Facebook"]})}),(0,n.jsx)(u.MarkAsCompleteButton,{completed:h,onClick:function(){t(a.sharingSteps.facebook),(0,l.trackEvent)("shareguide","step-complete",{activity:"facebook","project-id":r.id})}})]}),(0,n.jsx)(c.ProjectSharingFooter,{backLink:k,backLinkText:"Personlig lenke",forwardLink:b,forwardLinkText:"St\xf8ttespillere"})]})}},53834:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ProjectSharingFriends",{enumerable:!0,get:function(){return h}});var n=r(74848),a=r(16119),i=r(82630),o=f(r(56697)),l=r(84605),s=r(7432),c=r(71953),u=r(25128),d=f(r(43179)),p=f(r(53748));function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){var t=e.setSharingStepComplete,r=e.project,f=e.completed,h=e.shortlink,m=h?(0,u.getUrlFromShortlink)(h):"https://spleis.no/".concat(r.id),g="Hei! Jeg har nettopp startet innsamlingen \xab".concat(r.title,"\xbb p\xe5 Spleis. For at den skal lykkes trenger jeg litt hjelp av deg. Kan du hjelpe meg \xe5 dele innsamlingen?\n").concat(m),j="/project/".concat(r.id,"/sharing/2"),k="/project/".concat(r.id,"/sharing/4");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.ProjectSharingHeader,{title:"Send til st\xf8ttespillere",backLink:"/project/".concat(r.id,"/sharing"),backLinkText:"Tilbake til delingspanelet"}),(0,n.jsxs)("div",{className:o.default.contentPanel,children:[(0,n.jsx)(d.default,{className:o.default.topImage,src:"people-illustrations/walk-high-five.svg",title:"venner",alt:"2 personer som gir hverandre high-five"}),(0,n.jsx)("ul",{className:o.default.checkmarkList,children:(0,n.jsx)("li",{children:"St\xf8ttespillere som kan spre innsamlingen sammen med deg er viktig for \xe5 gi den en god start"})}),(0,n.jsx)("div",{className:o.default.messageLabel,children:"Send dem en melding – bruk gjerne teksten under"}),(0,n.jsx)("div",{className:o.default.url,children:(0,n.jsx)(p.default,{text:g,trackingFunction:function(){return(0,l.trackEvent)("admin","project-share",{channel:"copy-text",activity:"friends","project-id":r.id})},className:o.default.flatTop})}),(0,n.jsx)(c.MarkAsCompleteButton,{completed:f,onClick:function(){t(a.sharingSteps.friends),(0,l.trackEvent)("shareguide","step-complete",{activity:"friends","project-id":r.id})}})]}),(0,n.jsx)(s.ProjectSharingFooter,{backLink:j,backLinkText:"Facebook",forwardLink:k,forwardLinkText:"Grupper og fellesskap"})]})}},56659:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return _}});var n=r(74848),a=r(96540),i=r(69733),o=P(r(5556)),l=r(54928),s=r(16119),c=r(82630),u=P(r(56697)),d=r(84605),p=r(7432),f=r(71953),h=r(88510),m=r(43493),g=r(79851),j=P(r(78606)),k=r(25128),b=P(r(60376)),x=P(r(22786)),v=P(r(36725));function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e){return e&&e.__esModule?e:{default:e}}function L(e,t){return(L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var C=(0,g.getFormActions)(j.default),N=C.setFormField,F=C.clearAll,O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&L(e,t)}(o,e);var t,r,a,i=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r,n=S(o);if(t){var a=S(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(e=r)&&("object"==(e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function o(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return r=[{key:"saveCustomUrl",value:function(){var e=this.props,t=e.dispatch,r=e.shortlinkForm,n=e.projectId;t((0,h.saveCustomUrlAction)({shortlink:r.shortlink,projectId:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.dispatch,r=e.params;o.fetchData(t,r)}},{key:"componentDidUpdate",value:function(e){!e.saveCustomUrlSuccess&&this.props.saveCustomUrlSuccess&&this.setCustomUrlStepAsComplete()}},{key:"componentWillUnmount",value:function(){(0,this.props.dispatch)(F())}},{key:"setCustomUrlStepAsComplete",value:function(){var e=this.props,t=e.projectId;(0,e.setSharingStepComplete)(s.sharingSteps.customUrl),(0,d.trackEvent)("shareguide","step-complete",{activity:"customUrl","project-id":t})}},{key:"onShortlinkInputChange",value:function(e){(0,this.props.dispatch)(N("shortlink",e.target.value.toLowerCase().replace(/[^\w-æøå]/,"")))}},{key:"onShortlinkInputBlur",value:function(e){var t=this.props.dispatch;e.target.value&&t(N("shortlink",e.target.value,!0))}},{key:"render",value:function(){var e=this,t=this.props,r=t.projectId,a=t.completed,i=t.showHeaderAndFooter,o=t.shortlink,s=t.shortlinkForm,d=t.errors,h="/project/".concat(r,"/sharing"),m="/project/".concat(r,"/sharing/2"),g=o?"Lenken din er aktiv \uD83C\uDF89":"Lag en personlig lenke som er lett \xe5 dele";return(0,n.jsxs)(n.Fragment,{children:[i?(0,n.jsx)(c.ProjectSharingHeader,{title:g,backLink:"/project/".concat(r,"/sharing"),backLinkText:"Tilbake til delingspanelet"}):(0,n.jsx)(c.ProjectSharingHeader,{title:g,showLinks:!1}),(0,n.jsxs)("div",{className:u.default.contentPanel,children:[o?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:u.default.customUrlEnterValuePanel,children:(0,n.jsx)(v.default,{readOnly:!0,value:(0,k.getUrlFromShortlink)(o),fieldName:"shortLink"})}),i?(0,n.jsxs)("div",{className:u.default.customUrlDescription,children:[(0,n.jsx)("p",{children:"Yay! Den superenkle lenken er klar til \xe5 deles."}),(0,n.jsx)("p",{children:"PS: Du kan ikke endre lenken n\xe5 som den er aktiv."})]}):(0,n.jsx)("div",{className:u.default.customUrlDescription,children:"Fortsett til delingspanel for \xe5 dele spleisen din p\xe5 Facebook og i ditt nettverk."})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:u.default.customUrlEnterValuePanel,children:[(0,n.jsx)("label",{htmlFor:"shortlinkInput",className:u.default.customUrlHost,children:"spleis.no/"}),(0,n.jsx)(v.default,{id:"shortlinkInput",autoCapitalize:"none",fieldName:"shortlink",className:u.default.customUrlTextFieldEditable,onChange:function(t){return e.onShortlinkInputChange(t)}
1,onBlur:function(t){return e.onShortlinkInputBlur(t)},value:s.shortlink,errors:d,autoFocus:!0})]}),(0,n.jsx)("div",{className:u.default.customUrlDescription,children:"Lenken b\xf8r v\xe6re lett \xe5 dele, b\xe5de muntlig og skriftlig, som f.eks \xabhagecrew\xbb, \xabby\xe5sen\xbb eller \xabhanna30\xbb."}),(0,n.jsx)("div",{className:u.default.shareButton,children:(0,n.jsx)(b.default,{className:u.default.saveButton,onClick:function(){return e.saveCustomUrl()},children:"Lagre lenke"})}),(0,n.jsx)("div",{className:u.default.customUrlDescription,children:"Obs! Du kan ikke endre lenken i etterkant."})]}),i&&(0,n.jsx)(f.MarkAsCompleteButton,{completed:a,onClick:function(){e.setCustomUrlStepAsComplete()}})]}),i?(0,n.jsx)(p.ProjectSharingFooter,{backLink:h,backLinkText:"Oversikt",forwardLink:m,forwardLinkText:"Del p\xe5 Facebook"}):o?(0,n.jsx)("div",{className:u.default.shareButton,children:(0,n.jsx)(b.default,{onClick:function(){return e.props.navigate("./")},children:"Fortsett til delingspanelet"})}):(0,n.jsx)("div",{className:u.default.customUrlSkip,children:(0,n.jsx)(l.Link,{to:"./",children:"Hopp over!"})})]})}}],a=[{key:"fetchData",value:function(e,t){var r=t.projectId;return e((0,h.fetchShortlinkForProject)(r,!0))}}],r&&y(o.prototype,r),a&&y(o,a),o}(a.Component);O.propTypes={dispatch:o.default.func.isRequired,showHeaderAndFooter:o.default.bool,shortlink:o.default.string,projectId:o.default.string,shortlinkForm:o.default.object,saveCustomUrlSuccess:o.default.bool,errors:o.default.object,setSharingStepComplete:o.default.func.isRequired,completed:o.default.bool},O.defaultProps={showHeaderAndFooter:!0,shortlink:"",projectId:"",saveCustomUrlSuccess:!1,shortlinkForm:{},errors:{}};var _=(0,x.default)((0,i.connect)(function(e,t){var r,n,a=null===(r=t.params)||void 0===r?void 0:r.projectId;return{projectId:a,shortlink:(0,m.getLinkForProject)({state:e,projectId:a}),shortlinkForm:e.shortlinkForm,errors:e.shortlinkForm.errors||{shortlink:null===(n=e.shortlinks.errors)||void 0===n?void 0:n.global},saveCustomUrlSuccess:e.shortlinks.saveCustomUrlSuccess}})(O))},56697:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});let n={commonRoundedButtonLink:"H5Q3d",commonRoundedButton:"DZHQl",buttonPrimary:"Fl9kL DZHQl",highFive:"tEvsX",sharingStepContainer:"gMkhv",contentContainer:"YUeAC",contentContainerNotPublished:"tKxnJ",contentPanel:"sUchI",fullWidth:"irEks",topImage:"qKDh3",checkmarkList:"DAUBT",markAsCompleteButton:"eGmmy",completed:"qd_hd",listAligned:"VSPq5",navigationLink:"ZBbZN",messageLabel:"e14Sn",title:"C_Nnd",sharingSteps:"MYpha",sharingOrderNumber:"FyyUG",sharingContent:"eQX2d",sharingStatus:"CCNCR",buttonIcon:"H04Lb",prevNextContainer:"XTSN8",urlMarkup:"WnxN4",url:"dfIPD",flatTop:"XFbsJ",shareButton:"ZYkkd",checkmark:"bf0AF",checkmarkSummary:"KAQmm",checkmarkNotComplete:"IOMKb",stepIndicator:"jWqW1",selectedStepIndicator:"D8kQQ jWqW1",stepIndicatorContainer:"sOPvz",stepIndicatorLine:"u8okD",list:"p88fq",smallerEmoji:"nVudS",imageContainer:"Vw5eL",friendsImage:"nVQyw",customUrlEnterValuePanel:"_KWVE",customUrlHost:"vKNRu",customUrlTextFieldEditable:"uVsH6",customUrlDescription:"LG06l",customUrlSkip:"Asr3W",customUrlStoredValue:"nuB_C",customUrlLinkText:"e3orK",betaTagContainer:"xH2W6",betaTag:"wNl7C",saveButton:"XhUoB",maxWidthOnMobile:"h7qLr",instagramWrapper:"emc5M",previewPhoto:"nPgJc",spinner:"kZTDh",noInstagramPhoto:"diNq3",downloadInstagramTextLink:"_bmwy",nativeShareButton:"Dbf4X Fl9kL DZHQl"}},66744:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return v}});var n=r(74848),a=r(96540),i=r(16119),o=r(82630),l=r(5273),s=r(84605),c=x(r(56697)),u=r(7432),d=r(71953),p=r(69733),f=x(r(58775)),h=x(r(48805)),m=r(54928),g=x(r(43179)),j=x(r(82088)),k=r(83807);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function x(e){return e&&e.__esModule?e:{default:e}}var v=(0,p.connect)(function(e){return{userAgent:(0,k.getUserAgent)(e)}})(function(e){var t,r=e.setSharingStepComplete,k=e.project,x=e.completed,v=e.showStreamLabs,y="/project/".concat(k.id,"/sharing/4"),S="/project/".concat(k.id,"/sharing/").concat(v?6:""),P=function(e){if(Array.isArray(e))return e}(t=(0,a.useState)(!0))||function(e,t){var r,n,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,l=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){l=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(l)throw n}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),L=P[0],C=P[1],N=(0,p.useSelector)(function(e){return e.baseURL}),F="".concat(N,"/api/public/project/").concat(k.id,"/shareImage"),O=k.img_url?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:c.default.instagramWrapper,children:[(0,n.jsx)(h.default,{isVisible:L,children:(0,n.jsx)(f.default,{size:"300px",borderWidth:"10px",className:c.default.spinner})}),(0,n.jsx)(g.default,{className:c.default.instagramPhoto,src:"/api/public/project/".concat(k.id,"/shareImage"),title:"Last ned og del p\xe5 Instagram",alt:"Delingsbilde til Instagram",onLoad:function(){return C(!1)}}),(0,n.jsx)(j.default,{label:"Del bildet",faIcon:"fab fa-instagram",urlToImageToShare:F,buttonClassName:c.default.nativeShareButton,onClickFallback:function(){(0,s.trackEvent)("admin","project-share",{channel:"instagram",activity:"instagram","project-id":k.id}),(0,l.triggerFileDownload)(F,"".concat(k.title.replaceAll(" ","_")))},trackEventFunction:function(){return(0,s.trackEvent)("admin","project-share",{channel:"instagram",activity:"instagram","project-id":k.id})}})]}),(0,n.jsx)("p",{children:"Del bildet p\xe5 Instagram som et vanlig innlegg eller i story."})]}):(0,n.jsxs)("p",{className:c.default.noInstagramPhoto,children:["Du mangler bilde p\xe5 innsamlingen din. Legg til et toppbilde p\xe5"," ",(0,n.jsx)(m.Link,{to:"/project/".concat(k.id),children:"spleisen ditt"})," for \xe5 kunne dele det p\xe5 Instagram."]});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.ProjectSharingHeader,{title:"Del p\xe5 Instagram",backLink:"/project/".concat(k.id,"/sharing"),backLinkText:"Tilbake til delingspanelet"}),(0,n.jsxs)("section",{className:c.default.contentPanel,children:[(0,n.jsxs)("ul",{className:c.default.checkmarkList,children:[(0,n.jsx)("li",{children:"Instagram er plattformen med mest engasjerte brukere"}),(0,n.jsx)("li",{children:"Husk hashtags for \xe5 f\xe5 enda flere til \xe5 oppdage innsamlingen din"})]}),O,(0,n.jsx)(d.MarkAsCompleteButton,{completed:x,onClick:function(){r(i.sharingSteps.instagram),(0,s.trackEvent)("shareguide","step-complete",{activity:"instagram","project-id":k.id})}})]}),(0,n.jsx)(u.ProjectSharingFooter,{backLink:y,backLinkText:"Grupper og fellesskap",forwardLink:S,forwardLinkText:v?"Streaming":"Oppsummering"})]})})},71953:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MarkAsCompleteButton",{enumerable:!0,get:function(){return s}});var n=r(74848),a=l(r(32485)),i=l(r(56697)),o=l(r(48716));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,r,l=e.onClick,s=e.completed;return(0,n.jsxs)(o.default,{disabled:s,onClick:l,className:(0,a.default)(i.default.markAsCompleteButton,(t={},(r=i.default.completed)in t?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,t)),children:[(0,n.jsx)("div",{className:i.default.sharingStatus,children:(0,n.jsx)("div",{className:s?i.default.checkmarkBackground:i.default.checkmarkBackgroundNotComplete,children:(0,n.jsx)("i",{className:"fa-solid fa-check ".concat(i.default.checkmarkIcon),"aria-hidden":"true"})})}),s?"Fullf\xf8rt":"Marker som fullf\xf8rt"]})}},77388:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});var n=r(74848),a=r(96540),i=u(r(76673)),o=u(r(32485)),l=u(r(60376)),s=u(r(9945));function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e){return e&&e.__esModule?e:{default:e}}var d=function(e){var t,r=e.link,u=e.className,d=e.callback,p=void 0===d?function(){}:d,f=function(e){if(Array.isArray(e))return e}(t=(0,a.useState)(!1))||function(e,t){var r,n,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,l=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){l=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(l)throw n}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=f[0],m=f[1],g=function(){m(!0),setTimeout(function(){return m(!1)},3e3)},j=(0,a.useRef)(null);return(0,n.jsxs)("div",{className:[s.default.wrapper,void 0===u?"":u].join(" "),children:[(0,n.jsxs)("div",{className:s.default.inputAndButtonContainer,children:[(0,n.jsx)("input",{className:s.default.linkInputField,onFocus:function(){return j.current.select()},value:r,readOnly:!0,ref:j}),(0,n.jsxs)(l.default,{className:s.default.copyButton,onClick:function(){(0,i.default)(r),g(),p()},children:[(0,n.jsx)("i",{className:(0,o.default)("fa-solid fa-link",s.default.linkIcon),title:"Kopier lenken"}),"Kopier"]})]}),(0,n.jsx)("div",{hidden:!h,"aria-hidden":!h,className:h?s.default.inputContainer:s.default.inputContainerHidden,children:"Lenken er kopiert!"})]})}},82630:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ProjectSharingHeader",{enumerable:!0,get:function(){return s}});var n=r(74848),a=r(54928),i=r(47162),o=function(e){return e&&e.__esModule?e:{default:e}}(r(56697)),l=r(13948),s=function(e){var t=e.backLink,r=e.backLinkText,s=e.title,c=e.showLinks;return(0,l.useTitle)(s),(0,n.jsxs)(n.Fragment,{children:[void 0===c||c?(0,n.jsxs)(a.Link,{className:o.default.navigationLink,to:t,children:["← ",r]}):null,(0,n.jsx)(i.ContentTitle,{tag:"h1",className:o.default.title,children:s})]})}},85439:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ProjectSharingSummaryPanel",{enumerable:!0,get:function(){return h}});var n=r(74848),a=r(5273),i=r(54928),o=d(r(56697)),l=d(r(72811)),s=d(r(48805)),c=r(16119),u=r(82630);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){var t=e.children,r=e.url,a=e.completed?o.default.checkmark:o.default.checkmarkNotComplete;return(0,n.jsxs)(i.Link,{className:o.default.sharingStepContainer,to:r,children:[(0,n.jsx)("div",{className:o.default.sharingStatus,children:(0,n.jsx)("i",{className:"fa-solid fa-2x fa-circle-check ".concat(a),"aria-hidden":"true"})}),(0,n.jsx)("div",{className:o.default.sharingContent,children:t})]})},f=function(e){var t=e.projectId,r=e.sharingProgress,a=e.showStreamLabs,i=!0===r[c.sharingSteps.customUrl],l=!0===r[c.sharingSteps.facebook],s=!0===r[c.sharingSteps.instagram],u=!0===r[c.sharingSteps.friends],d=!0===r[c.sharingSteps.community],f=!0===r[c.sharingSteps.streaming];return(0,n.jsxs)("div",{className:o.default.sharingSteps,children:[(0,n.jsx)(p,{url:"/project/".concat(t,"/sharing/1"),completed:i,children:"Lag en personlig lenke"}),(0,n.jsx)(p,{url:"/project/".concat(t,"/sharing/2"),completed:l,children:"Del p\xe5 Facebook"}),(0,n.jsx)(p,{url:"/project/".concat(t,"/sharing/3"),completed:u,children:"Send til st\xf8ttespillere"}),(0,n.jsx)(p,{url:"/project/".concat(t,"/sharing/4"),completed:d,children:"Del i grupper og fellesskap"}),(0,n.jsx)(p,{url:"/project/".concat(t,"/sharing/5"),completed:s,children:"Del p\xe5 Instagram"}),a?(0,n.jsx)(p,{url:"/project/".concat(t,"/sharing/6"),completed:f,children:"Del p\xe5 din stream"}):null]})},h=function(e){var t=e.stepsMissing,r=e.sharingProgress,i=e.project,o=e.showStreamLabs;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ProjectSharingHeader,{title:"Delingspanel",backLink:"/project/".concat(i.id,"/control"),backLinkText:"Til kontrollpanel"}),(0,n.jsxs)("p",{children:["For innsamlingen ",(0,n.jsx)("em",{children:i.title})]}),(0,n.jsx)("p",{children:"Det er flere ting du kan gj\xf8re for at innsamlingen din n\xe5r flest mulig. G\xe5 gjennom punktene under."}),(0,n.jsx)(s.default,{isVisible:t>0,children:(0,n.jsxs)("div",{children:["Du har ",(0,n.jsx)(l.default,{children:t})," ",(0,a.pluralize)(t,"aktivitet","aktiviteter")," som gjenst\xe5r"]})}),(0,n.jsx)(f,{projectId:i.id,sharingProgress:r,showStreamLabs:o})]})}}}]);
2//# sourceMappingURL=project-project-sharing-ProjectSharing.js.map?v=c39e5a7e28b8e9c26e41

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.