PageSourceSearch

https://picsa.app/module-home.component-CSHZ5PYN.js

js picsa.app collected 2026-09-24 13:55:16 UTC 16,599 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="94dcf137-13f8-5a5c-916a-9dd84634ef95")}catch(e){}}();
3import{a as He,b as Re}from"./chunk-ATMU473D.js";import"./chunk-Y3BCEQGY.js";import{e as Oe,f as Ee}from"./chunk-AK4L4BG6.js";import"./chunk-NEEAIUJX.js";import{a as De}from"./chunk-U66Z6IAT.js";import"./chunk-UOLEWT7L.js";import"./chunk-LYSXBDVD.js";import"./chunk-424JVOYS.js";import"./chunk-6AMIQV3W.js";import"./chunk-3VUDP5Q5.js";import{a as ke,b as Pe,c as Ve,d as Ie}from"./chunk-VTWB5HMC.js";import"./chunk-FDWSRPXX.js";import"./chunk-2MXUM77W.js";import"./chunk-WVPCVUQO.js";import"./chunk-SSN5YNTR.js";import{b as be,c as Fe,e as Te}from"./chunk-VNA73KOA.js";import"./chunk-TSSBYRTG.js";import"./chunk-VP2M6B7F.js";import"./chunk-WD5HII6S.js";import"./chunk-IRFZTFB6.js";import{g as ye,j as we}from"./chunk-AB6CNMKT.js";import"./chunk-LMPCKDIR.js";import"./chunk-W5YL5VGR.js";import"./chunk-SU5OQRUX.js";import"./chunk-JRMHBLPY.js";import"./chunk-RB7R5FQT.js";import"./chunk-7HJMZUSI.js";import{a as xe,b as Se,g as Me}from"./chunk-6HP77SIO.js";import"./chunk-OPWZR4IS.js";import{a as fe}from"./chunk-7ZQEJEC5.js";import{h as se,n as me,o as q,p as pe}from"./chunk-O2NKD77F.js";import"./chunk-VBQOIA46.js";import"./chunk-JYCCS7T3.js";import"./chunk-QDBGDYKO.js";import"./chunk-4JPJOJOR.js";import"./chunk-IMKFT3J4.js";import"./chunk-KMVLG67O.js";import"./chunk-SBM3DHN4.js";import{a as Ce,c as he,f as ve}from"./chunk-PQDUNOZA.js";import{i as ge}from"./chunk-AKHHFTQX.js";import"./chunk-V2TYL6WZ.js";import"./chunk-KLH2IKYX.js";import"./chunk-CKCOABVW.js";import"./chunk-MD4DXQLO.js";import"./chunk-4RBR43TI.js";import{J as de,K as ce}from"./chunk-LSNO5HZ2.js";import{$ as R,W as ae,Y as H,ba as B,ca as le}from"./chunk-ZNUREHCD.js";import{c as U}from"./chunk-C6QM2M43.js";import{b as ue,d as _e}from"./chunk-P7ZY72I6.js";import{F as re,G as j,u as ee,v as te,w as oe,y as ne,z as ie}from"./chunk-GPJRIZB4.js";import{$b as f,$c as $,Ac as c,Bc as M,Cb as Y,Cc as V,Da as F,Dc as K,Fa as O,G as W,Mb as Q,Mc as Z,Pc as w,Qc as b,Sb as p,Tb as u,Ub as G,Vc as _,Wb as k,Xb as P,Yb as m,Zb as r,_b as l,_c as E,gb as a,gc as v,ka as y,kc as x,mc as s,ra as C,sa as h,uc as X,v as A,vc as J,wb as T,wc as S}from"./chunk-7LIUMG6J.js";import"./chunk-IKQ5KY3V.js";import"./chunk-O2KZL4UF.js";import"./chunk-BJZCDQLZ.js";import"./chunk-HE446HX7.js";import"./chunk-VDGN6CCQ.js";import{a as N,b as L,k as D}from"./chunk-PSG3WUG7.js";var $e=["videoPlayer"],Ue=["dl"],je=(t,i)=>i.id;function qe(t,i){if(t&1){let e=v();r(0,"div",3),f(1,"picsa-video-player",4,0),r(3,"resource-download",5,1),x("downloadStatusChange",function(){C(e);let n=S(4),d=s();return h(d.handleDlStatusChange(n))}),l()()}if(t&2){let e=i,o=S(4),n=s();a(),m("source",n.videoUri())("thumbnail",e.cover==null?null:e.cover.image)("onlineVideoUrl",e.url)("id",e.id),a(2),m("resource",e)("showSize",!0)("size",48),Q("data-status",o.downloadStatus())}}function ze(t,i){if(t&1){let e=v();r(0,"button",11),x("click",function(){let n=C(e).$implicit,d=s(2);return h(d.videoLanguageSelected.set(n))}),c(1),l()}if(t&2){let e=i.$implicit;a(),M(e.language_label)}}function We(t,i){if(t&1){let e=v();r(0,"button",6),x("click",function(n){return C(e),h(n.stopImmediatePropagation())}),r(1,"div",7)(2,"mat-icon",8),c(3,"language"),l(),c(4),r(5,"mat-icon",9),c(6,"arrow_drop_down"),l()()(),r(7,"mat-menu",null,2),k(9,ze,2,1,"button",10,je),l()}if(t&2){let e,o=S(8),n=s();m("matMenuTriggerFor",o),a(4),V(" ",(e=n.videoLanguageSelected())==null?null:e.language_label," "),a(5),P(n.videoLanguageOptions())}}var Ne=(()=>{class t{constructor(){this.video=E.required(),this.videoUri=F(void 0),this.videoLanguageOptions=_(()=>this.video().children.map(({locale_codes:e})=>se[e[0]]).filter(Boolean)),this.videoLanguageSelected=F(void 0),this.videoResource=_(()=>{let e=this.videoLanguageSelected();if(e){let o=this.video().children.find(n=>n.locale_codes[0]===e.id);if(o)return me[o.id]}}),this.playerComponent=$("videoPlayer"),this.downloaderComponent=$("dl"),O(()=>{let[e]=this.videoLanguageOptions();this.videoLanguageSelected.set(e)})}handleDlStatusChange(e){return D(this,null,function*(){if(e.downloadStatus()==="complete"){let o=yield e.uri(!1);o&&this.videoUri.set(o)}else this.videoUri.set(void 0)})}
3handleItemClick(e){return D(this,null,function*(){let o=this.downloaderComponent(),n=this.playerComponent();if(o?.downloadStatus()==="ready"){o.download(e);return}n?.source()&&n.playVideo()})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=T({type:t,selectors:[["farmer-step-video-player"]],viewQuery:function(o,n){o&1&&X(n.playerComponent,$e,5)(n.downloaderComponent,Ue,5),o&2&&J(2)},inputs:{video:[1,"video"]},decls:2,vars:2,consts:[["videoPlayer",""],["dl",""],["menu",""],[1,"relative"],[3,"source","thumbnail","onlineVideoUrl","id"],["styleVariant","white",1,"video-downloader",3,"downloadStatusChange","resource","showSize","size"],["matButton","",1,"language-select",3,"click","matMenuTriggerFor"],[1,"flex","gap-2","items-center"],["matButtonIcon","","align","start"],["matButtonIcon","","align","end"],["mat-menu-item",""],["mat-menu-item","",3,"click"]],template:function(o,n){if(o&1&&(p(0,qe,5,8,"div",3),p(1,We,11,2)),o&2){let d;u((d=n.videoResource())?0:-1,d),a(),u(n.videoLanguageOptions().length>1?1:-1)}},dependencies:[Oe,B,R,H,Ie,Pe,ke,Ve,Ee],styles:["[_nghost-%COMP%]{display:block}.video-downloader[_ngcontent-%COMP%]{border-radius:.375rem;padding:.5rem;text-align:center;color:var(--color-white);position:absolute;top:50%;left:50%;z-index:10;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));background-color:color-mix(in srgb,var(--color-black) 70%,transparent)}.video-downloader[data-status=loading][_ngcontent-%COMP%], .video-downloader[data-status=complete][_ngcontent-%COMP%]{display:none}button.language-select[_ngcontent-%COMP%]{height:3rem}"],changeDetection:0})}}return t})();var Ye=(t,i)=>i.id;function Qe(t,i){t&1&&f(0,"mat-divider")}function Ge(t,i){if(t&1){let e=v();r(0,"div",2),x("click",function(n){C(e);let d=S(2);return h(d.handleItemClick(n))}),f(1,"farmer-step-video-player",3,0),r(3,"h3",4),c(4),l()(),p(5,Qe,1,0,"mat-divider")}if(t&2){let e=i.$implicit,o=i.$index,n=i.$count;a(),m("video",e),a(3),M(e.title),a(),u(o!==n-1?5:-1)}}function Xe(t,i){if(t&1&&(r(0,"mat-list",1),k(1,Ge,6,3,null,null,Ye),l()),t&2){let e=s();a(),P(e.videosWithRankedChildren())}}function Je(t,i){t&1&&f(0,"farmer-step-video-player",5),t&2&&m("video",i)}function Ke(t,i){if(t&1&&p(0,Je,1,1,"farmer-step-video-player",5),t&2){let e,o=s();u((e=o.videosWithRankedChildren()[0])?0:-1,e)}}var Le=(()=>{class t{constructor(){this.configurationService=y(fe),this.videos=E.required(),this.videosWithRankedChildren=_(()=>{let{country_code:e,language_code:o}=this.configurationService.userSettings(),[n,d]=o.split("_");return this.videos().map(g=>L(N({},g),{children:Ze(g,e,d)})).filter(g=>g.children.length>0)}),this.viewMode=_(()=>this.videos().length>1?"playlist":"single")}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=T({type:t,selectors:[["farmer-step-video"]],inputs:{videos:[1,"videos"]},decls:2,vars:1,consts:[["player",""],[1,"playlist-container"],[1,"playlist-item",3,"click"],[1,"w-48",3,"video"],[1,"flex-1","ml-4"],[3,"video"]],template:function(o,n){o&1&&p(0,Xe,3,0,"mat-list",1)(1,Ke,1,1),o&2&&u(n.viewMode()==="playlist"?0:1)},dependencies:[ve,he,Ce,Ne],styles:[".playlist-container[_ngcontent-%COMP%]{padding:0}.playlist-item[_ngcontent-%COMP%]{position:relative;display:flex;cursor:pointer;align-items:center;transition:background-color .2s ease-in-out}.playlist-item[_ngcontent-%COMP%]:hover{background-color:#0000000a}"],changeDetection:0})}}return t})();function Ze(t,i,e){return t.children.map(o=>L(N({},o),{_rank:et(i,e,o)})).filter(({_rank:o})=>o>0).sort((o,n)=>o._rank-n._rank)}function et(t,i,e){let[o,n]=e.locale_codes;if(!o)return console.warn(e),console.error("[Step Video] - Locale Code missing"),-1;let[d,g]=o.split("_"),I=n?.split("_")[1];return d===t&&g===i?1:d===t&&I===i?2:d==="global"&&g===i?3:d==="global"&&I===i?4:t==="global"?5:d==="global"&&g==="en"?6:d===t?7:-1}var tt=t=>[t];function ot(t,i){if(t&1&&f(0,"farmer-step-video",15),t&2){let e=s().$implicit;m("videos",Z(1,tt,e.video))}}function nt(t,i){if(t&1&&f(0,"farmer-step-video",15),t&2){let e=s().$implicit;m("videos",e.videos)}}function it(t,i){if(t&1&&c(0),t&2){s();let e=S(5);V(" Share ",e.selectedCount()," Photos ")}}function rt(t,i){t&1&&c(0," Share ")}function at(t,i){if(t&1){let e=v();r(0,"div",16)(1,"p"),c(2),w(3,"translate"),l(),f(4,"picsa-photo-list",17,1),r(6,"div",18),f(7,"picsa-photo-input",17),r(8,"button",19),x("click",function(){C(e);let n=S(5),d=s(4);return h(d.handlePhotoShareClick(n))}),r(9,"mat-icon"),c(10,"share"),l(),p(11,it,1,1)(12,rt,1,0),l()()()}if(t&2){let e=i,o=S(5),n=s(4);a(2),M(b(3,5,"If you recorded anything on paper you can capture photos here")),a(2),m("album",e),a(3),m("album",e),a(),m("disabled",n.photoService.isSharingPhotos()||!o.photos().length),a(3),u(o.selectedCount()?11:12)}}function lt(t,i){if(t&1&&p(0,at,13,7,"div",16),t&2){let e,o=s(3);u((e=o.photoAlbum())?0:-1,e)}}function dt(t,i){if(t&1){let e=v();r(0,"div",21),x("click",function(){C(e);let n=s(4);return h(n.showTool())}),r(1,"h3",22),c(2),w(3,"translate"),l(),f(4,"mat-icon",23),l()}if(t&2){let e=i;a(2),M(b(3,2,e.label)),a(2),m("svgIcon","picsa_tools:"+e.svgIcon)}}function ct(t,i){if(t&1&&p(0,dt,5,4,"div",20),t&2){let e,o=s(3);
3u((e=(e=o.toolStep())==null?null:e.tool)?0:-1,e)}}function st(t,i){if(t&1&&(r(0,"mat-card",12)(1,"mat-card-title",13),c(2),w(3,"translate"),l(),r(4,"div",14),p(5,ot,1,3,"farmer-step-video",15)(6,nt,1,1,"farmer-step-video",15)(7,lt,1,1)(8,ct,1,1),l()()),t&2){let e,o=i.$implicit,n=i.$index;a(2),K("",n+1,". ",b(3,3,o.title)),a(3),u((e=o.type)==="video"?5:e==="videoPlaylist"?6:e==="review"?7:e==="tool"?8:-1)}}function mt(t,i){if(t&1&&(r(0,"div")(1,"div",11),k(2,st,9,5,"mat-card",12,G),l()()),t&2){let e=s();m("@fadeInOut",e.fadeInContent()?"in":"out"),a(2),P(i.steps)}}function pt(t,i){if(t&1){let e=v();r(0,"button",24),x("click",function(){let n=C(e),d=s();return h(d.goToModule(n))}),r(1,"span"),c(2),w(3,"translate"),l(),r(4,"mat-icon",25),c(5,"arrow_forward"),l()()}t&2&&(a(2),M(b(3,1,i.title)))}function ut(t,i){}function _t(t,i){if(t&1){let e=v();r(0,"button",31),x("click",function(){C(e);let n=s(2);return h(n.componentsService.toggleSidenav())}),r(1,"span",32),c(2),w(3,"translate"),l(),r(4,"mat-icon"),c(5,"menu"),l()()}t&2&&(a(2),V(" ",b(3,1,"Options")))}function ft(t,i){if(t&1){let e=v();r(0,"div",10)(1,"div",26)(2,"button",27),x("click",function(){C(e);let n=s();return h(n.hideTool())}),c(3),w(4,"translate"),r(5,"mat-icon"),c(6,"close"),l()(),r(7,"div",28),Y(8,ut,0,0,"ng-template",29),l(),p(9,_t,6,3,"button",30),l(),f(10,"router-outlet",null,2),l()}if(t&2){let e=s();m("@flyInOut",e.toolRouteSegments().length>0&&!e.toolHidden()?"in":"out"),a(3),V(" ",b(4,4,"Close")," "),a(5),m("cdkPortalOutlet",e.headerContent()),a(),u(e.showSidenavToggle()?9:-1)}}var co=(()=>{class t{constructor(){this.route=y(te),this.router=y(ne),this.dataIconRegistry=y(De),this.componentsService=y(ye),this.photoService=y(be),this.content=_(()=>{let e=this.slug();if(e)return pe[e]},{equal:(e,o)=>e?.id===o?.id}),this.toolStep=_(()=>this.content()?.steps.find(e=>e.type==="tool")),this.toolRouteSegments=_(()=>this.calcToolRouteSegments(this.url(),this.toolStep()?.tool.url),{equal:ge}),this.toolHidden=F(!0),this.photoAlbum=_(()=>{let e=this.content();if(e)return`farmer-activity/${e.id}`}),this.nextModule=_(()=>{let e=this.content();if(e){let{id:o}=e,n=q.findIndex(d=>d.id===o);return q[n+1]}}),this.showSidenavToggle=_(()=>this.componentsService.headerOptions().showSidenavToggle),this.fadeInContent=F(!0),this.headerContent=_(()=>this.componentsService.headerOptions().cdkPortalCenter),this.slug=U(this.route.params.pipe(A(e=>e.slug))),this.url=U(this.router.events.pipe(W(e=>e instanceof ee),A(e=>e.url))),this.dataIconRegistry.registerMatIcons("tools"),O(()=>{this.content()||this.router.navigate(["../"],{relativeTo:this.route,replaceUrl:!0})}),O(()=>{let e=this.toolHidden()||this.toolRouteSegments().length===0;this.componentsService.patchHeader({hideHeader:e,hideBackButton:!0})})}ngOnDestroy(){this.componentsService.patchHeader({hideHeader:!1,hideBackButton:!1})}showTool(){let e=this.toolStep();if(e){let{tool:o}=e;location.pathname.includes(`/${o.url}`)||this.router.navigate([o.url],{relativeTo:this.route,replaceUrl:!0}),this.toolHidden.set(!1)}}hideTool(){this.toolStep()&&this.toolHidden.set(!0)}goToModule(e){return D(this,null,function*(){this.fadeInContent.set(!1),yield j(100),this.router.navigate(["farmer",e.slug],{replaceUrl:!0}),document.querySelectorAll(".page").forEach(o=>o.scrollTop=0),yield j(100),this.fadeInContent.set(!0)})}handlePhotoShareClick(e){e.selectedPhotos().length===0?e.selectAll():this.photoService.sharePhotos(e.selectedPhotoIds())}calcToolRouteSegments(e,o){if(e&&o&&e.includes(`/${o}`)){let[n,d]=e.split(`/${o}`);return d.split("/")}return[]}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=T({type:t,selectors:[["farmer-content-module-home"]],decls:16,vars:6,consts:[["contentEl",""],["photoList",""],["toolRouter",""],[1,"page-content"],[1,"flex","items-center"],["color","primary","matIconButton","","routerLink","/farmer"],[1,"header-title"],[1,"my-6","text-secondary","flex","items-center"],["matIconButton","","routerLink","/farmer",2,"color","black"],["matButton","",1,"flex-1"],["id","toolStep",1,"page","tool-container"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-4","max-w-screen-lg","m-auto"],[1,"flex","flex-col"],[1,"step-title"],[1,"flex-1","flex","flex-col"],[3,"videos"],[1,"p-2"],[3,"album"],[1,"flex","mt-4","gap-4"],["matButton","",1,"ml-auto",3,"click","disabled"],[1,"tool-step-container"],[1,"tool-step-container",3,"click"],[1,"mt-0"],[1,"tool-icon","mb-2",3,"svgIcon"],["matButton","",1,"flex-1",3,"click"],["iconPositionEnd",""],[1,"tool-header"],["matButton","","color","primary",1,"p-4","justify-self-start","min-w-0",3,"click"],[1,"justify-self-center","min-w-0","max-w-full","overflow-hidden"],[3,"cdkPortalOutlet"],["matButton","","color","primary",1,"p-4","justify-self-end","min-w-0"],["matButton","","color","primary",1,"p-4","justify-self-end","min-w-0",3,"click"],[1,"sm:!block",2,"display","none"]],template:function(o,n){if(o&1&&(r(0,"div",3,0)(2,"header",4)(3,"button",5)(4,"mat-icon"),c(5,"arrow_back"),l()(),r(6,"h2",6),c(7),w(8,"translate"),l()(),p(9,mt,4,1,"div"),r(10,"div",7)(11,"button",8)(12,"mat-icon"),c(13,"home"),l()(),p(14,pt,6,3,"button",9),l()(),p(15,ft,12,6,"div",10)),o&2){let d,g,I,z;a(7),M(b(8,4,((d=n.content())==null?null:d.title)||"")),a(2),u((g=n.content())?9:-1,g),a(5),u((I=n.nextModule(
3))?14:-1,I),a(),u((z=n.toolStep())?15:-1,z)}},dependencies:[Le,_e,R,H,ae,Me,xe,Se,le,B,Fe,Te,we,ce,de,re,oe,ie,ue],styles:["header[_ngcontent-%COMP%], .tool-header[_ngcontent-%COMP%]{padding-top:var(--status-bar-height)}.header-title[_ngcontent-%COMP%]{margin-right:.5rem;margin-left:-.5rem;text-align:center;font-size:1.5rem;line-height:2rem;color:var(--color-primary)}.step-title[_ngcontent-%COMP%]{margin:0;background-color:var(--color-secondary);padding:.5rem;color:var(--color-white)}.tool-step-container[_ngcontent-%COMP%]{display:flex;flex:1 1 0%;cursor:pointer;flex-direction:column;align-items:center;justify-content:center;transition:background-color .2s ease-in-out}.tool-step-container[_ngcontent-%COMP%]:hover{background-color:#0000000a}.tool-container[_ngcontent-%COMP%]{position:fixed;left:0;z-index:10;display:flex;height:100vh;width:100vw;flex-direction:column;overflow:auto}.tool-header[_ngcontent-%COMP%]{display:grid;height:3rem;align-items:center;gap:.25rem}@media(min-width:600px){.tool-header[_ngcontent-%COMP%]{gap:.5rem}}@media(min-width:960px){.tool-header[_ngcontent-%COMP%]{gap:1rem}}.tool-header[_ngcontent-%COMP%]{grid-template-columns:auto minmax(0,1fr) auto}mat-icon.tool-icon[_ngcontent-%COMP%]{height:4rem;width:4rem}"],data:{animation:[He({inSpeed:200,inDelay:100}),Re({axis:"Y"})]}})}}return t})();export{co as FarmerContentModuleHomeComponent};
4
5//# debugId=94dcf137-13f8-5a5c-916a-9dd84634ef95

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.