memoryprofile.js 182 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242
  1. (window["webpackJsonp"] = window["webpackJsonp"] || []).push([["/js/memoryprofile"],{
  2. /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/MemoryProfile.vue?vue&type=script&lang=js&":
  3. /*!*******************************************************************************************************************************************************************************!*\
  4. !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/assets/js/components/MemoryProfile.vue?vue&type=script&lang=js& ***!
  5. \*******************************************************************************************************************************************************************************/
  6. /*! exports provided: default */
  7. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8. "use strict";
  9. __webpack_require__.r(__webpack_exports__);
  10. /* harmony import */ var vue_masonry_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-masonry-css */ "./node_modules/vue-masonry-css/dist/vue-masonry.es2015.js");
  11. function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
  12. function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
  13. function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
  14. function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
  15. function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
  16. function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
  17. //
  18. //
  19. //
  20. //
  21. //
  22. //
  23. //
  24. //
  25. //
  26. //
  27. //
  28. //
  29. //
  30. //
  31. //
  32. //
  33. //
  34. //
  35. //
  36. //
  37. //
  38. //
  39. //
  40. //
  41. //
  42. //
  43. //
  44. //
  45. //
  46. //
  47. //
  48. //
  49. //
  50. //
  51. //
  52. //
  53. //
  54. //
  55. //
  56. //
  57. //
  58. //
  59. //
  60. //
  61. //
  62. //
  63. //
  64. //
  65. //
  66. //
  67. //
  68. //
  69. //
  70. //
  71. //
  72. //
  73. //
  74. //
  75. //
  76. //
  77. //
  78. //
  79. //
  80. //
  81. //
  82. //
  83. //
  84. //
  85. //
  86. //
  87. //
  88. //
  89. //
  90. //
  91. //
  92. //
  93. //
  94. //
  95. //
  96. //
  97. //
  98. //
  99. //
  100. //
  101. //
  102. //
  103. //
  104. //
  105. //
  106. //
  107. //
  108. //
  109. //
  110. //
  111. //
  112. //
  113. //
  114. //
  115. //
  116. //
  117. //
  118. //
  119. //
  120. //
  121. //
  122. //
  123. //
  124. //
  125. //
  126. //
  127. //
  128. //
  129. //
  130. //
  131. //
  132. //
  133. //
  134. //
  135. //
  136. //
  137. //
  138. //
  139. //
  140. //
  141. //
  142. //
  143. //
  144. //
  145. //
  146. //
  147. //
  148. //
  149. //
  150. //
  151. //
  152. //
  153. //
  154. //
  155. //
  156. //
  157. //
  158. //
  159. //
  160. //
  161. //
  162. //
  163. //
  164. //
  165. //
  166. //
  167. //
  168. //
  169. //
  170. //
  171. //
  172. //
  173. //
  174. //
  175. //
  176. //
  177. //
  178. //
  179. //
  180. //
  181. //
  182. //
  183. //
  184. //
  185. //
  186. //
  187. //
  188. //
  189. //
  190. //
  191. //
  192. //
  193. //
  194. //
  195. //
  196. //
  197. //
  198. //
  199. //
  200. //
  201. //
  202. //
  203. //
  204. //
  205. //
  206. //
  207. //
  208. //
  209. //
  210. //
  211. //
  212. //
  213. //
  214. //
  215. //
  216. //
  217. //
  218. //
  219. //
  220. //
  221. //
  222. //
  223. //
  224. //
  225. //
  226. //
  227. //
  228. //
  229. //
  230. //
  231. //
  232. //
  233. //
  234. //
  235. //
  236. //
  237. //
  238. //
  239. //
  240. //
  241. //
  242. //
  243. //
  244. //
  245. //
  246. //
  247. //
  248. //
  249. //
  250. //
  251. //
  252. //
  253. //
  254. //
  255. //
  256. //
  257. //
  258. //
  259. //
  260. //
  261. //
  262. //
  263. //
  264. //
  265. //
  266. //
  267. //
  268. //
  269. //
  270. //
  271. //
  272. //
  273. //
  274. //
  275. //
  276. //
  277. //
  278. //
  279. //
  280. //
  281. //
  282. //
  283. //
  284. //
  285. //
  286. //
  287. //
  288. //
  289. //
  290. //
  291. //
  292. //
  293. //
  294. //
  295. //
  296. //
  297. //
  298. //
  299. //
  300. //
  301. //
  302. //
  303. //
  304. //
  305. //
  306. //
  307. //
  308. //
  309. //
  310. //
  311. //
  312. //
  313. //
  314. //
  315. //
  316. //
  317. //
  318. //
  319. //
  320. //
  321. //
  322. //
  323. //
  324. //
  325. //
  326. //
  327. //
  328. //
  329. //
  330. //
  331. //
  332. //
  333. //
  334. //
  335. //
  336. //
  337. //
  338. //
  339. //
  340. //
  341. //
  342. //
  343. //
  344. //
  345. //
  346. //
  347. //
  348. //
  349. //
  350. //
  351. //
  352. //
  353. //
  354. //
  355. //
  356. //
  357. //
  358. //
  359. //
  360. //
  361. //
  362. //
  363. //
  364. //
  365. //
  366. //
  367. //
  368. //
  369. //
  370. //
  371. //
  372. //
  373. //
  374. //
  375. //
  376. //
  377. //
  378. //
  379. //
  380. //
  381. //
  382. //
  383. //
  384. //
  385. //
  386. //
  387. //
  388. //
  389. //
  390. //
  391. //
  392. //
  393. //
  394. //
  395. //
  396. //
  397. //
  398. //
  399. //
  400. //
  401. //
  402. //
  403. //
  404. //
  405. //
  406. //
  407. //
  408. //
  409. //
  410. //
  411. //
  412. //
  413. //
  414. //
  415. //
  416. //
  417. //
  418. //
  419. //
  420. //
  421. //
  422. //
  423. //
  424. //
  425. //
  426. //
  427. //
  428. //
  429. //
  430. //
  431. //
  432. //
  433. //
  434. //
  435. //
  436. //
  437. //
  438. //
  439. //
  440. //
  441. //
  442. //
  443. //
  444. //
  445. //
  446. //
  447. //
  448. //
  449. //
  450. //
  451. //
  452. //
  453. //
  454. //
  455. //
  456. //
  457. //
  458. //
  459. //
  460. //
  461. //
  462. //
  463. //
  464. //
  465. //
  466. //
  467. //
  468. //
  469. //
  470. //
  471. //
  472. //
  473. //
  474. //
  475. //
  476. //
  477. //
  478. //
  479. //
  480. //
  481. //
  482. //
  483. //
  484. //
  485. //
  486. //
  487. //
  488. //
  489. //
  490. //
  491. //
  492. //
  493. //
  494. //
  495. //
  496. //
  497. //
  498. //
  499. //
  500. //
  501. //
  502. //
  503. //
  504. //
  505. //
  506. //
  507. //
  508. //
  509. //
  510. //
  511. //
  512. //
  513. //
  514. //
  515. //
  516. //
  517. //
  518. //
  519. //
  520. //
  521. //
  522. //
  523. //
  524. //
  525. //
  526. //
  527. //
  528. //
  529. //
  530. //
  531. //
  532. //
  533. //
  534. //
  535. //
  536. //
  537. //
  538. //
  539. //
  540. //
  541. //
  542. //
  543. //
  544. //
  545. //
  546. //
  547. //
  548. //
  549. //
  550. //
  551. //
  552. //
  553. //
  554. //
  555. //
  556. //
  557. //
  558. //
  559. //
  560. //
  561. //
  562. //
  563. //
  564. //
  565. //
  566. //
  567. //
  568. //
  569. //
  570. //
  571. //
  572. //
  573. //
  574. //
  575. //
  576. //
  577. //
  578. //
  579. //
  580. //
  581. //
  582. //
  583. /* harmony default export */ __webpack_exports__["default"] = ({
  584. props: ['profile-id', 'profile-layout', 'profile-settings', 'profile-username'],
  585. data: function data() {
  586. return {
  587. ids: [],
  588. profile: {},
  589. user: false,
  590. timeline: [],
  591. timelinePage: 1,
  592. min_id: 0,
  593. max_id: 0,
  594. loading: true,
  595. owner: false,
  596. layout: this.profileLayout,
  597. mode: 'grid',
  598. modes: ['grid', 'collections', 'bookmarks'],
  599. modalStatus: false,
  600. relationship: {},
  601. followers: [],
  602. followerCursor: 1,
  603. followerMore: true,
  604. following: [],
  605. followingCursor: 1,
  606. followingMore: true,
  607. warning: false,
  608. sponsorList: [],
  609. bookmarks: [],
  610. bookmarksPage: 2,
  611. collections: [],
  612. collectionsPage: 2,
  613. isMobile: false,
  614. ctxEmbedPayload: null,
  615. copiedEmbed: false,
  616. hasStory: null,
  617. followingModalSearch: null,
  618. followingModalSearchCache: null,
  619. followingModalTab: 'following',
  620. bookmarksLoading: true,
  621. page: 'home',
  622. pages: ['home', 'collections', 'places', 'saved', 'likes', '404'],
  623. likesCursor: 1,
  624. likesTimeline: []
  625. };
  626. },
  627. beforeMount: function beforeMount() {
  628. this.fetchRelationships();
  629. this.fetchProfile();
  630. var u = new URLSearchParams(window.location.search);
  631. var forceMetro = localStorage.getItem('pf_metro_ui.exp.forceMetro') == 'true';
  632. if (forceMetro == true || u.has('ui') && u.get('ui') == 'metro' && this.layout != 'metro') {
  633. this.layout = 'metro';
  634. }
  635. if (u.has('ui') && u.get('ui') == 'moment' && this.layout != 'moment') {
  636. Vue.use(vue_masonry_css__WEBPACK_IMPORTED_MODULE_0__["default"]);
  637. this.layout = 'moment';
  638. }
  639. if (this.layout == 'metro' && u.has('t')) {
  640. if (this.modes.indexOf(u.get('t')) != -1) {
  641. if (u.get('t') == 'bookmarks') {
  642. return;
  643. }
  644. this.mode = u.get('t');
  645. }
  646. }
  647. },
  648. mounted: function mounted() {
  649. var _this = this;
  650. var u = new URLSearchParams(window.location.search);
  651. if (u.has('md') && u.get('md') == 'followers') {
  652. this.followersModal();
  653. }
  654. if (u.has('md') && u.get('md') == 'following') {
  655. this.followingModal();
  656. }
  657. if (document.querySelectorAll('body')[0].classList.contains('loggedIn') == true) {
  658. axios.get('/api/pixelfed/v1/accounts/verify_credentials').then(function (res) {
  659. _this.user = res.data;
  660. window._sharedData.curUser = res.data;
  661. window.App.util.navatar();
  662. if (res.data.id == _this.profileId || _this.relationship.following == true) {
  663. axios.get('/api/web/stories/v1/exists/' + _this.profileId).then(function (res) {
  664. _this.hasStory = res.data == true;
  665. });
  666. }
  667. });
  668. }
  669. if (window.outerWidth < 576) {
  670. $('nav.navbar').hide();
  671. this.isMobile = true;
  672. }
  673. $('body').css('background', '#d4d4d4');
  674. },
  675. updated: function updated() {
  676. $('[data-toggle="tooltip"]').tooltip();
  677. },
  678. methods: {
  679. fetchProfile: function fetchProfile() {
  680. var _this2 = this;
  681. axios.get('/api/pixelfed/v1/accounts/' + this.profileId).then(function (res) {
  682. _this2.profile = res.data;
  683. }).then(function (res) {
  684. _this2.fetchPosts();
  685. });
  686. },
  687. fetchPosts: function fetchPosts() {
  688. var _this3 = this;
  689. var apiUrl = '/api/pixelfed/v1/accounts/' + this.profileId + '/statuses';
  690. axios.get(apiUrl, {
  691. params: {
  692. limit: 12,
  693. only_media: true,
  694. min_id: 1
  695. }
  696. }).then(function (res) {
  697. var data = res.data.filter(function (status) {
  698. return status.media_attachments.length > 0;
  699. });
  700. var ids = data.map(function (status) {
  701. return status.id;
  702. });
  703. _this3.ids = ids;
  704. _this3.min_id = Math.max.apply(Math, _toConsumableArray(ids));
  705. _this3.max_id = Math.min.apply(Math, _toConsumableArray(ids));
  706. _this3.modalStatus = _.first(res.data);
  707. _this3.timelineCache = data;
  708. _this3.timeline = data;
  709. _this3.ownerCheck();
  710. if (document.querySelectorAll('body')[0].classList.contains('loggedIn')) {
  711. _this3.fetchLikes();
  712. }
  713. _this3.loading = false; //this.loadSponsor();
  714. })["catch"](function (err) {
  715. swal('Oops, something went wrong', 'Please release the page.', 'error');
  716. });
  717. },
  718. ownerCheck: function ownerCheck() {
  719. if ($('body').hasClass('loggedIn') == false) {
  720. this.owner = false;
  721. return;
  722. }
  723. this.owner = this.profile.id === this.user.id;
  724. },
  725. infiniteTimeline: function infiniteTimeline($state) {
  726. var _this4 = this;
  727. if (this.loading || this.timeline.length < 9) {
  728. $state.complete();
  729. return;
  730. }
  731. var apiUrl = '/api/pixelfed/v1/accounts/' + this.profileId + '/statuses';
  732. axios.get(apiUrl, {
  733. params: {
  734. only_media: true,
  735. max_id: this.max_id
  736. }
  737. }).then(function (res) {
  738. if (res.data.length && _this4.loading == false) {
  739. var data = res.data;
  740. var self = _this4;
  741. data.forEach(function (d) {
  742. if (self.ids.indexOf(d.id) == -1) {
  743. self.timeline.push(d);
  744. self.ids.push(d.id);
  745. }
  746. });
  747. var max = Math.min.apply(Math, _toConsumableArray(_this4.ids));
  748. if (max == _this4.max_id) {
  749. $state.complete();
  750. return;
  751. }
  752. _this4.min_id = Math.max.apply(Math, _toConsumableArray(_this4.ids));
  753. _this4.max_id = max;
  754. $state.loaded();
  755. _this4.loading = false;
  756. } else {
  757. $state.complete();
  758. }
  759. });
  760. },
  761. previewUrl: function previewUrl(status) {
  762. return status.sensitive ? '/storage/no-preview.png?v=' + new Date().getTime() : status.media_attachments[0].preview_url;
  763. },
  764. previewBackground: function previewBackground(status) {
  765. var preview = this.previewUrl(status);
  766. return 'background-image: url(' + preview + ');';
  767. },
  768. switchMode: function switchMode(mode) {
  769. var _this5 = this;
  770. this.page = _.indexOf(this.pages, mode) ? mode : 'home';
  771. if (this.page == 'saved' && this.bookmarks.length == 0) {
  772. axios.get('/api/local/bookmarks').then(function (res) {
  773. _this5.bookmarks = res.data;
  774. _this5.bookmarksLoading = false;
  775. });
  776. }
  777. if (this.page == 'collections' && this.collections.length == 0) {
  778. axios.get('/api/local/profile/collections/' + this.profileId).then(function (res) {
  779. _this5.collections = res.data;
  780. });
  781. }
  782. },
  783. reportProfile: function reportProfile() {
  784. var id = this.profile.id;
  785. window.location.href = '/i/report?type=user&id=' + id;
  786. },
  787. reportUrl: function reportUrl(status) {
  788. var type = status.in_reply_to ? 'comment' : 'post';
  789. var id = status.id;
  790. return '/i/report?type=' + type + '&id=' + id;
  791. },
  792. commentFocus: function commentFocus(status, $event) {
  793. var el = event.target;
  794. var card = el.parentElement.parentElement.parentElement;
  795. var comments = card.getElementsByClassName('comments')[0];
  796. if (comments.children.length == 0) {
  797. comments.classList.add('mb-2');
  798. this.fetchStatusComments(status, card);
  799. }
  800. var footer = card.querySelectorAll('.card-footer')[0];
  801. var input = card.querySelectorAll('.status-reply-input')[0];
  802. if (footer.classList.contains('d-none') == true) {
  803. footer.classList.remove('d-none');
  804. input.focus();
  805. } else {
  806. footer.classList.add('d-none');
  807. input.blur();
  808. }
  809. },
  810. likeStatus: function likeStatus(status, $event) {
  811. if ($('body').hasClass('loggedIn') == false) {
  812. return;
  813. }
  814. axios.post('/i/like', {
  815. item: status.id
  816. }).then(function (res) {
  817. status.favourites_count = res.data.count;
  818. if (status.favourited == true) {
  819. status.favourited = false;
  820. } else {
  821. status.favourited = true;
  822. }
  823. })["catch"](function (err) {
  824. swal('Error', 'Something went wrong, please try again later.', 'error');
  825. });
  826. },
  827. shareStatus: function shareStatus(status, $event) {
  828. if ($('body').hasClass('loggedIn') == false) {
  829. return;
  830. }
  831. axios.post('/i/share', {
  832. item: status.id
  833. }).then(function (res) {
  834. status.reblogs_count = res.data.count;
  835. if (status.reblogged == true) {
  836. status.reblogged = false;
  837. } else {
  838. status.reblogged = true;
  839. }
  840. })["catch"](function (err) {
  841. swal('Error', 'Something went wrong, please try again later.', 'error');
  842. });
  843. },
  844. timestampFormat: function timestampFormat(timestamp) {
  845. var ts = new Date(timestamp);
  846. return ts.toDateString() + ' ' + ts.toLocaleTimeString();
  847. },
  848. editUrl: function editUrl(status) {
  849. return status.url + '/edit';
  850. },
  851. redirect: function redirect(url) {
  852. window.location.href = url;
  853. return;
  854. },
  855. remoteRedirect: function remoteRedirect(url) {
  856. window.location.href = window.App.config.site.url + '/i/redirect?url=' + encodeURIComponent(url);
  857. return;
  858. },
  859. replyUrl: function replyUrl(status) {
  860. var username = this.profile.username;
  861. var id = status.account.id == this.profile.id ? status.id : status.in_reply_to_id;
  862. return '/p/' + username + '/' + id;
  863. },
  864. mentionUrl: function mentionUrl(status) {
  865. var username = status.account.username;
  866. var id = status.id;
  867. return '/p/' + username + '/' + id;
  868. },
  869. statusOwner: function statusOwner(status) {
  870. var sid = status.account.id;
  871. var uid = this.profile.id;
  872. if (sid == uid) {
  873. return true;
  874. } else {
  875. return false;
  876. }
  877. },
  878. fetchRelationships: function fetchRelationships() {
  879. var _this6 = this;
  880. if (document.querySelectorAll('body')[0].classList.contains('loggedIn') == false) {
  881. return;
  882. }
  883. axios.get('/api/pixelfed/v1/accounts/relationships', {
  884. params: {
  885. 'id[]': this.profileId
  886. }
  887. }).then(function (res) {
  888. if (res.data.length) {
  889. _this6.relationship = res.data[0];
  890. if (res.data[0].blocking == true) {
  891. _this6.warning = true;
  892. }
  893. }
  894. });
  895. },
  896. muteProfile: function muteProfile() {
  897. var _this7 = this;
  898. var status = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  899. if ($('body').hasClass('loggedIn') == false) {
  900. return;
  901. }
  902. var id = this.profileId;
  903. axios.post('/i/mute', {
  904. type: 'user',
  905. item: id
  906. }).then(function (res) {
  907. _this7.fetchRelationships();
  908. _this7.$refs.visitorContextMenu.hide();
  909. swal('Success', 'You have successfully muted ' + _this7.profile.acct, 'success');
  910. })["catch"](function (err) {
  911. swal('Error', 'Something went wrong. Please try again later.', 'error');
  912. });
  913. },
  914. unmuteProfile: function unmuteProfile() {
  915. var _this8 = this;
  916. var status = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  917. if ($('body').hasClass('loggedIn') == false) {
  918. return;
  919. }
  920. var id = this.profileId;
  921. axios.post('/i/unmute', {
  922. type: 'user',
  923. item: id
  924. }).then(function (res) {
  925. _this8.fetchRelationships();
  926. _this8.$refs.visitorContextMenu.hide();
  927. swal('Success', 'You have successfully unmuted ' + _this8.profile.acct, 'success');
  928. })["catch"](function (err) {
  929. swal('Error', 'Something went wrong. Please try again later.', 'error');
  930. });
  931. },
  932. blockProfile: function blockProfile() {
  933. var _this9 = this;
  934. var status = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  935. if ($('body').hasClass('loggedIn') == false) {
  936. return;
  937. }
  938. var id = this.profileId;
  939. axios.post('/i/block', {
  940. type: 'user',
  941. item: id
  942. }).then(function (res) {
  943. _this9.warning = true;
  944. _this9.fetchRelationships();
  945. _this9.$refs.visitorContextMenu.hide();
  946. swal('Success', 'You have successfully blocked ' + _this9.profile.acct, 'success');
  947. })["catch"](function (err) {
  948. swal('Error', 'Something went wrong. Please try again later.', 'error');
  949. });
  950. },
  951. unblockProfile: function unblockProfile() {
  952. var _this10 = this;
  953. var status = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  954. if ($('body').hasClass('loggedIn') == false) {
  955. return;
  956. }
  957. var id = this.profileId;
  958. axios.post('/i/unblock', {
  959. type: 'user',
  960. item: id
  961. }).then(function (res) {
  962. _this10.fetchRelationships();
  963. _this10.$refs.visitorContextMenu.hide();
  964. swal('Success', 'You have successfully unblocked ' + _this10.profile.acct, 'success');
  965. })["catch"](function (err) {
  966. swal('Error', 'Something went wrong. Please try again later.', 'error');
  967. });
  968. },
  969. deletePost: function deletePost(status, index) {
  970. var _this11 = this;
  971. if ($('body').hasClass('loggedIn') == false || status.account.id !== this.profile.id) {
  972. return;
  973. }
  974. axios.post('/i/delete', {
  975. type: 'status',
  976. item: status.id
  977. }).then(function (res) {
  978. _this11.timeline.splice(index, 1);
  979. swal('Success', 'You have successfully deleted this post', 'success');
  980. })["catch"](function (err) {
  981. swal('Error', 'Something went wrong. Please try again later.', 'error');
  982. });
  983. },
  984. followProfile: function followProfile() {
  985. var _this12 = this;
  986. if ($('body').hasClass('loggedIn') == false) {
  987. window.location.href = encodeURI('/login?next=/' + this.profileUsername + '/');
  988. return;
  989. }
  990. axios.post('/i/follow', {
  991. item: this.profileId
  992. }).then(function (res) {
  993. _this12.$refs.visitorContextMenu.hide();
  994. if (_this12.relationship.following) {
  995. _this12.profile.followers_count--;
  996. if (_this12.profile.locked == true) {
  997. window.location.href = '/';
  998. }
  999. } else {
  1000. _this12.profile.followers_count++;
  1001. }
  1002. _this12.relationship.following = !_this12.relationship.following;
  1003. })["catch"](function (err) {
  1004. if (err.response.data.message) {
  1005. swal('Error', err.response.data.message, 'error');
  1006. }
  1007. });
  1008. },
  1009. followingModal: function followingModal() {
  1010. var _this13 = this;
  1011. if ($('body').hasClass('loggedIn') == false) {
  1012. window.location.href = encodeURI('/login?next=/' + this.profileUsername + '/');
  1013. return;
  1014. }
  1015. if (this.profileSettings.following.list == false) {
  1016. return;
  1017. }
  1018. if (this.followingCursor > 1) {
  1019. this.$refs.followingModal.show();
  1020. return;
  1021. } else {
  1022. axios.get('/api/pixelfed/v1/accounts/' + this.profileId + '/following', {
  1023. params: {
  1024. page: this.followingCursor
  1025. }
  1026. }).then(function (res) {
  1027. _this13.following = res.data;
  1028. _this13.followingModalSearchCache = res.data;
  1029. _this13.followingCursor++;
  1030. if (res.data.length < 10) {
  1031. _this13.followingMore = false;
  1032. }
  1033. });
  1034. this.$refs.followingModal.show();
  1035. return;
  1036. }
  1037. },
  1038. followersModal: function followersModal() {
  1039. var _this14 = this;
  1040. if ($('body').hasClass('loggedIn') == false) {
  1041. window.location.href = encodeURI('/login?next=/' + this.profileUsername + '/');
  1042. return;
  1043. }
  1044. if (this.profileSettings.followers.list == false) {
  1045. return;
  1046. }
  1047. if (this.followerCursor > 1) {
  1048. this.$refs.followerModal.show();
  1049. return;
  1050. } else {
  1051. axios.get('/api/pixelfed/v1/accounts/' + this.profileId + '/followers', {
  1052. params: {
  1053. page: this.followerCursor
  1054. }
  1055. }).then(function (res) {
  1056. var _this14$followers;
  1057. (_this14$followers = _this14.followers).push.apply(_this14$followers, _toConsumableArray(res.data));
  1058. _this14.followerCursor++;
  1059. if (res.data.length < 10) {
  1060. _this14.followerMore = false;
  1061. }
  1062. });
  1063. this.$refs.followerModal.show();
  1064. return;
  1065. }
  1066. },
  1067. followingLoadMore: function followingLoadMore() {
  1068. var _this15 = this;
  1069. if ($('body').hasClass('loggedIn') == false) {
  1070. window.location.href = encodeURI('/login?next=/' + this.profile.username + '/');
  1071. return;
  1072. }
  1073. axios.get('/api/pixelfed/v1/accounts/' + this.profile.id + '/following', {
  1074. params: {
  1075. page: this.followingCursor,
  1076. fbu: this.followingModalSearch
  1077. }
  1078. }).then(function (res) {
  1079. if (res.data.length > 0) {
  1080. var _this15$following;
  1081. (_this15$following = _this15.following).push.apply(_this15$following, _toConsumableArray(res.data));
  1082. _this15.followingCursor++;
  1083. _this15.followingModalSearchCache = _this15.following;
  1084. }
  1085. if (res.data.length < 10) {
  1086. _this15.followingModalSearchCache = _this15.following;
  1087. _this15.followingMore = false;
  1088. }
  1089. });
  1090. },
  1091. followersLoadMore: function followersLoadMore() {
  1092. var _this16 = this;
  1093. if ($('body').hasClass('loggedIn') == false) {
  1094. return;
  1095. }
  1096. axios.get('/api/pixelfed/v1/accounts/' + this.profile.id + '/followers', {
  1097. params: {
  1098. page: this.followerCursor
  1099. }
  1100. }).then(function (res) {
  1101. if (res.data.length > 0) {
  1102. var _this16$followers;
  1103. (_this16$followers = _this16.followers).push.apply(_this16$followers, _toConsumableArray(res.data));
  1104. _this16.followerCursor++;
  1105. }
  1106. if (res.data.length < 10) {
  1107. _this16.followerMore = false;
  1108. }
  1109. });
  1110. },
  1111. visitorMenu: function visitorMenu() {
  1112. this.$refs.visitorContextMenu.show();
  1113. },
  1114. followModalAction: function followModalAction(id, index) {
  1115. var _this17 = this;
  1116. var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'following';
  1117. axios.post('/i/follow', {
  1118. item: id
  1119. }).then(function (res) {
  1120. if (type == 'following') {
  1121. _this17.following.splice(index, 1);
  1122. _this17.profile.following_count--;
  1123. }
  1124. })["catch"](function (err) {
  1125. if (err.response.data.message) {
  1126. swal('Error', err.response.data.message, 'error');
  1127. }
  1128. });
  1129. },
  1130. momentBackground: function momentBackground() {
  1131. var c = 'w-100 h-100 mt-n3 ';
  1132. if (this.profile.header_bg) {
  1133. c += this.profile.header_bg == 'default' ? 'bg-pixelfed' : 'bg-moment-' + this.profile.header_bg;
  1134. } else {
  1135. c += 'bg-pixelfed';
  1136. }
  1137. return c;
  1138. },
  1139. loadSponsor: function loadSponsor() {
  1140. var _this18 = this;
  1141. axios.get('/api/local/profile/sponsor/' + this.profileId).then(function (res) {
  1142. _this18.sponsorList = res.data;
  1143. });
  1144. },
  1145. showSponsorModal: function showSponsorModal() {
  1146. this.$refs.sponsorModal.show();
  1147. },
  1148. goBack: function goBack() {
  1149. if (window.history.length > 2) {
  1150. window.history.back();
  1151. return;
  1152. } else {
  1153. window.location.href = '/';
  1154. return;
  1155. }
  1156. },
  1157. copyProfileLink: function copyProfileLink() {
  1158. var url = window.App.config.site.url + '/' + this.profileUsername + '/';
  1159. navigator.clipboard.writeText(url);
  1160. this.$refs.visitorContextMenu.hide();
  1161. },
  1162. formatCount: function formatCount(count) {
  1163. return App.util.format.count(count);
  1164. },
  1165. statusUrl: function statusUrl(status) {
  1166. return status.url;
  1167. if (status.local == true) {
  1168. return status.url;
  1169. }
  1170. return '/i/web/post/_/' + status.account.id + '/' + status.id;
  1171. },
  1172. profileUrl: function profileUrl(status) {
  1173. return status.url;
  1174. if (status.local == true) {
  1175. return status.account.url;
  1176. }
  1177. return '/i/web/profile/_/' + status.account.id;
  1178. },
  1179. showEmbedProfileModal: function showEmbedProfileModal() {
  1180. this.ctxEmbedPayload = window.App.util.embed.profile(this.profile.url);
  1181. this.$refs.visitorContextMenu.hide();
  1182. this.$refs.embedModal.show();
  1183. },
  1184. ctxCopyEmbed: function ctxCopyEmbed() {
  1185. navigator.clipboard.writeText(this.ctxEmbedPayload);
  1186. this.$refs.embedModal.hide();
  1187. this.$refs.visitorContextMenu.hide();
  1188. },
  1189. storyRedirect: function storyRedirect() {
  1190. window.location.href = '/stories/' + this.profileUsername;
  1191. },
  1192. followingModalSearchHandler: function followingModalSearchHandler() {
  1193. var _this19 = this;
  1194. var self = this;
  1195. var q = this.followingModalSearch;
  1196. if (q.length == 0) {
  1197. this.following = this.followingModalSearchCache;
  1198. this.followingModalSearch = null;
  1199. }
  1200. if (q.length > 0) {
  1201. var url = '/api/pixelfed/v1/accounts/' + self.profileId + '/following?page=1&fbu=' + q;
  1202. axios.get(url).then(function (res) {
  1203. _this19.following = res.data;
  1204. })["catch"](function (err) {
  1205. self.following = self.followingModalSearchCache;
  1206. self.followingModalSearch = null;
  1207. });
  1208. }
  1209. },
  1210. pageUrl: function pageUrl() {
  1211. var page = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'home';
  1212. switch (page) {
  1213. case 'home':
  1214. return this.profile.url;
  1215. break;
  1216. case 'collections':
  1217. return this.profile.url + '?p=collections';
  1218. break;
  1219. case 'places':
  1220. return this.profile.url + '?p=places';
  1221. break;
  1222. case 'saved':
  1223. return this.profile.url + '?p=saved';
  1224. break;
  1225. case 'likes':
  1226. return this.profile.url + '?p=likes';
  1227. break;
  1228. default:
  1229. return this.profile.url;
  1230. break;
  1231. }
  1232. },
  1233. navigateToPage: function navigateToPage() {
  1234. var page = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'home';
  1235. this.page = page;
  1236. if (page == 'collections') {
  1237. this.switchMode('collections');
  1238. }
  1239. if (page == 'likes') {
  1240. this.switchMode('likes');
  1241. }
  1242. if (page == 'saved') {
  1243. this.switchMode('saved');
  1244. }
  1245. },
  1246. truncate: function truncate(str) {
  1247. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 24;
  1248. return _.truncate(str, {
  1249. length: len
  1250. });
  1251. },
  1252. timeago: function timeago(time) {
  1253. return window.App.util.format.timeAgo(time);
  1254. },
  1255. fetchLikes: function fetchLikes() {
  1256. var self = this;
  1257. var apiUrl = '/api/pixelfed/v1/favourites';
  1258. axios.get(apiUrl, {
  1259. params: {
  1260. page: this.likesCursor
  1261. }
  1262. }).then(function (res) {
  1263. if (res.data.length) {
  1264. var data = res.data.filter(function (r) {
  1265. return r.media_attachments && r.media_attachments.length;
  1266. });
  1267. self.likesTimeline = data;
  1268. self.likesCursor = 2;
  1269. }
  1270. });
  1271. },
  1272. infiniteLikes: function infiniteLikes($state) {
  1273. var self = this;
  1274. var apiUrl = '/api/pixelfed/v1/favourites';
  1275. axios.get(apiUrl, {
  1276. params: {
  1277. page: this.likesCursor
  1278. }
  1279. }).then(function (res) {
  1280. if (res.data.length) {
  1281. var data = res.data;
  1282. data.forEach(function (d) {
  1283. if (d.media_attachments && d.media_attachments.length) {
  1284. self.likesTimeline.push(d);
  1285. }
  1286. });
  1287. self.likesCursor++;
  1288. $state.loaded();
  1289. } else {
  1290. $state.complete();
  1291. }
  1292. });
  1293. }
  1294. }
  1295. });
  1296. /***/ }),
  1297. /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/PostMenu.vue?vue&type=script&lang=js&":
  1298. /*!**************************************************************************************************************************************************************************!*\
  1299. !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/assets/js/components/PostMenu.vue?vue&type=script&lang=js& ***!
  1300. \**************************************************************************************************************************************************************************/
  1301. /*! exports provided: default */
  1302. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1303. "use strict";
  1304. __webpack_require__.r(__webpack_exports__);
  1305. //
  1306. //
  1307. //
  1308. //
  1309. //
  1310. //
  1311. //
  1312. //
  1313. //
  1314. //
  1315. //
  1316. //
  1317. //
  1318. //
  1319. //
  1320. //
  1321. //
  1322. //
  1323. //
  1324. //
  1325. //
  1326. //
  1327. //
  1328. //
  1329. //
  1330. //
  1331. //
  1332. //
  1333. //
  1334. //
  1335. //
  1336. //
  1337. //
  1338. //
  1339. //
  1340. //
  1341. //
  1342. //
  1343. //
  1344. //
  1345. //
  1346. //
  1347. //
  1348. //
  1349. //
  1350. //
  1351. //
  1352. //
  1353. //
  1354. //
  1355. //
  1356. //
  1357. //
  1358. //
  1359. //
  1360. //
  1361. //
  1362. //
  1363. //
  1364. //
  1365. //
  1366. //
  1367. //
  1368. //
  1369. //
  1370. //
  1371. //
  1372. //
  1373. //
  1374. //
  1375. //
  1376. //
  1377. //
  1378. //
  1379. //
  1380. //
  1381. //
  1382. //
  1383. //
  1384. //
  1385. /* harmony default export */ __webpack_exports__["default"] = ({
  1386. props: ['feed', 'status', 'profile', 'size', 'modal'],
  1387. data: function data() {
  1388. return {
  1389. activeSession: false
  1390. };
  1391. },
  1392. mounted: function mounted() {
  1393. var el = document.querySelector('body');
  1394. this.activeSession = el.classList.contains('loggedIn') ? true : false;
  1395. },
  1396. methods: {
  1397. reportUrl: function reportUrl(status) {
  1398. var type = status.in_reply_to ? 'comment' : 'post';
  1399. var id = status.id;
  1400. return '/i/report?type=' + type + '&id=' + id;
  1401. },
  1402. timestampFormat: function timestampFormat(timestamp) {
  1403. var ts = new Date(timestamp);
  1404. return ts.toDateString() + ' ' + ts.toLocaleTimeString();
  1405. },
  1406. editUrl: function editUrl(status) {
  1407. return status.url + '/edit';
  1408. },
  1409. redirect: function redirect(url) {
  1410. window.location.href = url;
  1411. return;
  1412. },
  1413. replyUrl: function replyUrl(status) {
  1414. var username = this.profile.username;
  1415. var id = status.account.id == this.profile.id ? status.id : status.in_reply_to_id;
  1416. return '/p/' + username + '/' + id;
  1417. },
  1418. mentionUrl: function mentionUrl(status) {
  1419. var username = status.account.username;
  1420. var id = status.id;
  1421. return '/p/' + username + '/' + id;
  1422. },
  1423. statusOwner: function statusOwner(status) {
  1424. var sid = parseInt(status.account.id);
  1425. var uid = parseInt(this.profile.id);
  1426. if (sid == uid) {
  1427. return true;
  1428. } else {
  1429. return false;
  1430. }
  1431. },
  1432. deletePost: function deletePost() {
  1433. this.$emit('deletePost');
  1434. $('#mt_pid_' + this.status.id).modal('hide');
  1435. },
  1436. hidePost: function hidePost(status) {
  1437. status.sensitive = true;
  1438. $('#mt_pid_' + status.id).modal('hide');
  1439. },
  1440. moderatePost: function moderatePost(status, action, $event) {
  1441. var username = status.account.username;
  1442. switch (action) {
  1443. case 'autocw':
  1444. var msg = 'Are you sure you want to enforce CW for ' + username + ' ?';
  1445. swal({
  1446. title: 'Confirm',
  1447. text: msg,
  1448. icon: 'warning',
  1449. buttons: true,
  1450. dangerMode: true
  1451. });
  1452. break;
  1453. case 'suspend':
  1454. msg = 'Are you sure you want to suspend the account of ' + username + ' ?';
  1455. swal({
  1456. title: 'Confirm',
  1457. text: msg,
  1458. icon: 'warning',
  1459. buttons: true,
  1460. dangerMode: true
  1461. });
  1462. break;
  1463. }
  1464. },
  1465. muteProfile: function muteProfile(status) {
  1466. if ($('body').hasClass('loggedIn') == false) {
  1467. return;
  1468. }
  1469. axios.post('/i/mute', {
  1470. type: 'user',
  1471. item: status.account.id
  1472. }).then(function (res) {
  1473. swal('Success', 'You have successfully muted ' + status.account.acct, 'success');
  1474. })["catch"](function (err) {
  1475. swal('Error', 'Something went wrong. Please try again later.', 'error');
  1476. });
  1477. },
  1478. blockProfile: function blockProfile(status) {
  1479. if ($('body').hasClass('loggedIn') == false) {
  1480. return;
  1481. }
  1482. axios.post('/i/block', {
  1483. type: 'user',
  1484. item: status.account.id
  1485. }).then(function (res) {
  1486. swal('Success', 'You have successfully blocked ' + status.account.acct, 'success');
  1487. })["catch"](function (err) {
  1488. swal('Error', 'Something went wrong. Please try again later.', 'error');
  1489. });
  1490. },
  1491. statusUrl: function statusUrl(status) {
  1492. if (status.local == true) {
  1493. return status.url;
  1494. }
  1495. return '/i/web/post/_/' + status.account.id + '/' + status.id;
  1496. },
  1497. profileUrl: function profileUrl(status) {
  1498. if (status.local == true) {
  1499. return status.account.url;
  1500. }
  1501. return '/i/web/profile/_/' + status.account.id;
  1502. },
  1503. closeModal: function closeModal() {
  1504. $('#mt_pid_' + this.status.id).modal('hide');
  1505. }
  1506. }
  1507. });
  1508. /***/ }),
  1509. /***/ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css&":
  1510. /*!**************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  1511. !*** ./node_modules/css-loader??ref--8-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/assets/js/components/MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css& ***!
  1512. \**************************************************************************************************************************************************************************************************************************************************************************************************************/
  1513. /*! no static exports found */
  1514. /***/ (function(module, exports, __webpack_require__) {
  1515. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "./node_modules/css-loader/lib/css-base.js")(false);
  1516. // imports
  1517. // module
  1518. exports.push([module.i, "\n.o-square[data-v-ebc1967e] {\n\tmax-width: 320px;\n}\n.o-portrait[data-v-ebc1967e] {\n\tmax-width: 320px;\n}\n.o-landscape[data-v-ebc1967e] {\n\tmax-width: 320px;\n}\n.post-icon[data-v-ebc1967e] {\n\tcolor: #fff;\n\tposition:relative;\n\tmargin-top: 10px;\n\tz-index: 9;\n\topacity: 0.6;\n\ttext-shadow: 3px 3px 16px #272634;\n}\n.font-size-16px[data-v-ebc1967e] {\n\tfont-size: 16px;\n}\n.profile-website[data-v-ebc1967e] {\n\tcolor: #003569;\n\ttext-decoration: none;\n\tfont-weight: 600;\n}\n.nav-topbar .nav-link[data-v-ebc1967e] {\n\tcolor: #999;\n}\n.nav-topbar .nav-link .small[data-v-ebc1967e] {\n\tfont-weight: 600;\n}\n.has-story[data-v-ebc1967e] {\n\twidth: 84px;\n\theight: 84px;\n\tborder-radius: 50%;\n\tpadding: 4px;\n\tbackground: radial-gradient(ellipse at 70% 70%, #ee583f 8%, #d92d77 42%, #bd3381 58%);\n}\n.has-story img[data-v-ebc1967e] {\n\twidth: 76px;\n\theight: 76px;\n\tborder-radius: 50%;\n\tpadding: 6px;\n\tbackground: #fff;\n}\n.has-story-lg[data-v-ebc1967e] {\n\twidth: 159px;\n\theight: 159px;\n\tborder-radius: 50%;\n\tpadding: 4px;\n\tbackground: radial-gradient(ellipse at 70% 70%, #ee583f 8%, #d92d77 42%, #bd3381 58%);\n}\n.has-story-lg img[data-v-ebc1967e] {\n\twidth: 150px;\n\theight: 150px;\n\tborder-radius: 50%;\n\tpadding: 6px;\n\tbackground:#fff;\n}\n.no-focus[data-v-ebc1967e] {\n\tborder-color: none;\n\toutline: 0;\n\tbox-shadow: none;\n}\n.modal-tab-active[data-v-ebc1967e] {\n\tborder-bottom: 1px solid #08d;\n}\n.bg-primary[data-v-ebc1967e] {\n\tbackground: rgb(91,128,160);\n\tbackground: linear-gradient(180deg, rgba(91,128,160,1) 0%, rgba(62,100,135,1) 100%);\n}\n.bg-dark[data-v-ebc1967e] {\n\tbackground: #191919;\n}\n.font-logo[data-v-ebc1967e] {\n\tfont-family: 'Coming Soon';\n}\n.text-white[data-v-ebc1967e] {\n\tcolor: #999999;\n}\n.navbar[data-v-ebc1967e] {\n\tpadding: 0;\n}\n.nav-card[data-v-ebc1967e] {\n\theight: 53px;\n\tborder-left: 1px solid #4a6c8a;\n\tborder-right: 1px solid #4a6c8a;\n}\n.nav-card[data-v-ebc1967e]::after {\n\theight: 53px;\n\tborder-left: 1px solid #55748f;\n\tborder-right: 1px solid #55748f;\n}\n@media (min-width: 1200px) {\n.container[data-v-ebc1967e] {\n\t\tmax-width: 1030px;\n}\n}\n.btn-primary[data-v-ebc1967e] {\n\tfont-size: 13px;\n\tfont-weight: 500 !important;\n\tbackground: rgb(91,128,160);\n\tbackground: linear-gradient(180deg, rgba(91,128,160,1) 0%, rgba(62,100,135,1) 100%);\n\tborder-color: #456a8b;\n}\n.btn-lighter[data-v-ebc1967e] {\n\tfont-size: 13px;\n\tfont-weight: 500 !important;\n\tbackground: rgb(250,250,250);\n\tbackground: linear-gradient(180deg, rgba(250,250,250,1) 0%, rgba(236,236,236,1) 100%);\n\tborder-color: #cccccc;\n\tcolor: #999999;\n}\n.btn-lighter .lead[data-v-ebc1967e] {\n\tcolor: #272727;\n}\n.img-cover[data-v-ebc1967e] {\n\t-o-object-fit: cover;\n\t object-fit: cover;\n}\n.dropdown-toggle[data-v-ebc1967e]::after {\n\tdisplay:none;\n}\n", ""]);
  1519. // exports
  1520. /***/ }),
  1521. /***/ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css&":
  1522. /*!*********************************************************************************************************************************************************************************************************************************************************************************************************!*\
  1523. !*** ./node_modules/css-loader??ref--8-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/assets/js/components/PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css& ***!
  1524. \*********************************************************************************************************************************************************************************************************************************************************************************************************/
  1525. /*! no static exports found */
  1526. /***/ (function(module, exports, __webpack_require__) {
  1527. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "./node_modules/css-loader/lib/css-base.js")(false);
  1528. // imports
  1529. // module
  1530. exports.push([module.i, "\n.text-lighter[data-v-bb77b854] {\n\tcolor:#B8C2CC !important;\n}\n.modal-body[data-v-bb77b854] {\n\tpadding: 0;\n}\n", ""]);
  1531. // exports
  1532. /***/ }),
  1533. /***/ "./node_modules/css-loader/lib/css-base.js":
  1534. /*!*************************************************!*\
  1535. !*** ./node_modules/css-loader/lib/css-base.js ***!
  1536. \*************************************************/
  1537. /*! no static exports found */
  1538. /***/ (function(module, exports) {
  1539. /*
  1540. MIT License http://www.opensource.org/licenses/mit-license.php
  1541. Author Tobias Koppers @sokra
  1542. */
  1543. // css base code, injected by the css-loader
  1544. module.exports = function(useSourceMap) {
  1545. var list = [];
  1546. // return the list of modules as css string
  1547. list.toString = function toString() {
  1548. return this.map(function (item) {
  1549. var content = cssWithMappingToString(item, useSourceMap);
  1550. if(item[2]) {
  1551. return "@media " + item[2] + "{" + content + "}";
  1552. } else {
  1553. return content;
  1554. }
  1555. }).join("");
  1556. };
  1557. // import a list of modules into the list
  1558. list.i = function(modules, mediaQuery) {
  1559. if(typeof modules === "string")
  1560. modules = [[null, modules, ""]];
  1561. var alreadyImportedModules = {};
  1562. for(var i = 0; i < this.length; i++) {
  1563. var id = this[i][0];
  1564. if(typeof id === "number")
  1565. alreadyImportedModules[id] = true;
  1566. }
  1567. for(i = 0; i < modules.length; i++) {
  1568. var item = modules[i];
  1569. // skip already imported module
  1570. // this implementation is not 100% perfect for weird media query combinations
  1571. // when a module is imported multiple times with different media queries.
  1572. // I hope this will never occur (Hey this way we have smaller bundles)
  1573. if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
  1574. if(mediaQuery && !item[2]) {
  1575. item[2] = mediaQuery;
  1576. } else if(mediaQuery) {
  1577. item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
  1578. }
  1579. list.push(item);
  1580. }
  1581. }
  1582. };
  1583. return list;
  1584. };
  1585. function cssWithMappingToString(item, useSourceMap) {
  1586. var content = item[1] || '';
  1587. var cssMapping = item[3];
  1588. if (!cssMapping) {
  1589. return content;
  1590. }
  1591. if (useSourceMap && typeof btoa === 'function') {
  1592. var sourceMapping = toComment(cssMapping);
  1593. var sourceURLs = cssMapping.sources.map(function (source) {
  1594. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
  1595. });
  1596. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  1597. }
  1598. return [content].join('\n');
  1599. }
  1600. // Adapted from convert-source-map (MIT)
  1601. function toComment(sourceMap) {
  1602. // eslint-disable-next-line no-undef
  1603. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  1604. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  1605. return '/*# ' + data + ' */';
  1606. }
  1607. /***/ }),
  1608. /***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css&":
  1609. /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  1610. !*** ./node_modules/style-loader!./node_modules/css-loader??ref--8-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/assets/js/components/MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css& ***!
  1611. \******************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  1612. /*! no static exports found */
  1613. /***/ (function(module, exports, __webpack_require__) {
  1614. var content = __webpack_require__(/*! !../../../../node_modules/css-loader??ref--8-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--8-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css& */ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css&");
  1615. if(typeof content === 'string') content = [[module.i, content, '']];
  1616. var transform;
  1617. var insertInto;
  1618. var options = {"hmr":true}
  1619. options.transform = transform
  1620. options.insertInto = undefined;
  1621. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options);
  1622. if(content.locals) module.exports = content.locals;
  1623. if(false) {}
  1624. /***/ }),
  1625. /***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css&":
  1626. /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  1627. !*** ./node_modules/style-loader!./node_modules/css-loader??ref--8-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/assets/js/components/PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css& ***!
  1628. \*************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  1629. /*! no static exports found */
  1630. /***/ (function(module, exports, __webpack_require__) {
  1631. var content = __webpack_require__(/*! !../../../../node_modules/css-loader??ref--8-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--8-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css& */ "./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css&");
  1632. if(typeof content === 'string') content = [[module.i, content, '']];
  1633. var transform;
  1634. var insertInto;
  1635. var options = {"hmr":true}
  1636. options.transform = transform
  1637. options.insertInto = undefined;
  1638. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options);
  1639. if(content.locals) module.exports = content.locals;
  1640. if(false) {}
  1641. /***/ }),
  1642. /***/ "./node_modules/style-loader/lib/addStyles.js":
  1643. /*!****************************************************!*\
  1644. !*** ./node_modules/style-loader/lib/addStyles.js ***!
  1645. \****************************************************/
  1646. /*! no static exports found */
  1647. /***/ (function(module, exports, __webpack_require__) {
  1648. /*
  1649. MIT License http://www.opensource.org/licenses/mit-license.php
  1650. Author Tobias Koppers @sokra
  1651. */
  1652. var stylesInDom = {};
  1653. var memoize = function (fn) {
  1654. var memo;
  1655. return function () {
  1656. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  1657. return memo;
  1658. };
  1659. };
  1660. var isOldIE = memoize(function () {
  1661. // Test for IE <= 9 as proposed by Browserhacks
  1662. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  1663. // Tests for existence of standard globals is to allow style-loader
  1664. // to operate correctly into non-standard environments
  1665. // @see https://github.com/webpack-contrib/style-loader/issues/177
  1666. return window && document && document.all && !window.atob;
  1667. });
  1668. var getTarget = function (target, parent) {
  1669. if (parent){
  1670. return parent.querySelector(target);
  1671. }
  1672. return document.querySelector(target);
  1673. };
  1674. var getElement = (function (fn) {
  1675. var memo = {};
  1676. return function(target, parent) {
  1677. // If passing function in options, then use it for resolve "head" element.
  1678. // Useful for Shadow Root style i.e
  1679. // {
  1680. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  1681. // }
  1682. if (typeof target === 'function') {
  1683. return target();
  1684. }
  1685. if (typeof memo[target] === "undefined") {
  1686. var styleTarget = getTarget.call(this, target, parent);
  1687. // Special case to return head of iframe instead of iframe itself
  1688. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  1689. try {
  1690. // This will throw an exception if access to iframe is blocked
  1691. // due to cross-origin restrictions
  1692. styleTarget = styleTarget.contentDocument.head;
  1693. } catch(e) {
  1694. styleTarget = null;
  1695. }
  1696. }
  1697. memo[target] = styleTarget;
  1698. }
  1699. return memo[target]
  1700. };
  1701. })();
  1702. var singleton = null;
  1703. var singletonCounter = 0;
  1704. var stylesInsertedAtTop = [];
  1705. var fixUrls = __webpack_require__(/*! ./urls */ "./node_modules/style-loader/lib/urls.js");
  1706. module.exports = function(list, options) {
  1707. if (typeof DEBUG !== "undefined" && DEBUG) {
  1708. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  1709. }
  1710. options = options || {};
  1711. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  1712. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  1713. // tags it will allow on a page
  1714. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  1715. // By default, add <style> tags to the <head> element
  1716. if (!options.insertInto) options.insertInto = "head";
  1717. // By default, add <style> tags to the bottom of the target
  1718. if (!options.insertAt) options.insertAt = "bottom";
  1719. var styles = listToStyles(list, options);
  1720. addStylesToDom(styles, options);
  1721. return function update (newList) {
  1722. var mayRemove = [];
  1723. for (var i = 0; i < styles.length; i++) {
  1724. var item = styles[i];
  1725. var domStyle = stylesInDom[item.id];
  1726. domStyle.refs--;
  1727. mayRemove.push(domStyle);
  1728. }
  1729. if(newList) {
  1730. var newStyles = listToStyles(newList, options);
  1731. addStylesToDom(newStyles, options);
  1732. }
  1733. for (var i = 0; i < mayRemove.length; i++) {
  1734. var domStyle = mayRemove[i];
  1735. if(domStyle.refs === 0) {
  1736. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  1737. delete stylesInDom[domStyle.id];
  1738. }
  1739. }
  1740. };
  1741. };
  1742. function addStylesToDom (styles, options) {
  1743. for (var i = 0; i < styles.length; i++) {
  1744. var item = styles[i];
  1745. var domStyle = stylesInDom[item.id];
  1746. if(domStyle) {
  1747. domStyle.refs++;
  1748. for(var j = 0; j < domStyle.parts.length; j++) {
  1749. domStyle.parts[j](item.parts[j]);
  1750. }
  1751. for(; j < item.parts.length; j++) {
  1752. domStyle.parts.push(addStyle(item.parts[j], options));
  1753. }
  1754. } else {
  1755. var parts = [];
  1756. for(var j = 0; j < item.parts.length; j++) {
  1757. parts.push(addStyle(item.parts[j], options));
  1758. }
  1759. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  1760. }
  1761. }
  1762. }
  1763. function listToStyles (list, options) {
  1764. var styles = [];
  1765. var newStyles = {};
  1766. for (var i = 0; i < list.length; i++) {
  1767. var item = list[i];
  1768. var id = options.base ? item[0] + options.base : item[0];
  1769. var css = item[1];
  1770. var media = item[2];
  1771. var sourceMap = item[3];
  1772. var part = {css: css, media: media, sourceMap: sourceMap};
  1773. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  1774. else newStyles[id].parts.push(part);
  1775. }
  1776. return styles;
  1777. }
  1778. function insertStyleElement (options, style) {
  1779. var target = getElement(options.insertInto)
  1780. if (!target) {
  1781. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  1782. }
  1783. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  1784. if (options.insertAt === "top") {
  1785. if (!lastStyleElementInsertedAtTop) {
  1786. target.insertBefore(style, target.firstChild);
  1787. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  1788. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  1789. } else {
  1790. target.appendChild(style);
  1791. }
  1792. stylesInsertedAtTop.push(style);
  1793. } else if (options.insertAt === "bottom") {
  1794. target.appendChild(style);
  1795. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  1796. var nextSibling = getElement(options.insertAt.before, target);
  1797. target.insertBefore(style, nextSibling);
  1798. } else {
  1799. throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
  1800. }
  1801. }
  1802. function removeStyleElement (style) {
  1803. if (style.parentNode === null) return false;
  1804. style.parentNode.removeChild(style);
  1805. var idx = stylesInsertedAtTop.indexOf(style);
  1806. if(idx >= 0) {
  1807. stylesInsertedAtTop.splice(idx, 1);
  1808. }
  1809. }
  1810. function createStyleElement (options) {
  1811. var style = document.createElement("style");
  1812. if(options.attrs.type === undefined) {
  1813. options.attrs.type = "text/css";
  1814. }
  1815. if(options.attrs.nonce === undefined) {
  1816. var nonce = getNonce();
  1817. if (nonce) {
  1818. options.attrs.nonce = nonce;
  1819. }
  1820. }
  1821. addAttrs(style, options.attrs);
  1822. insertStyleElement(options, style);
  1823. return style;
  1824. }
  1825. function createLinkElement (options) {
  1826. var link = document.createElement("link");
  1827. if(options.attrs.type === undefined) {
  1828. options.attrs.type = "text/css";
  1829. }
  1830. options.attrs.rel = "stylesheet";
  1831. addAttrs(link, options.attrs);
  1832. insertStyleElement(options, link);
  1833. return link;
  1834. }
  1835. function addAttrs (el, attrs) {
  1836. Object.keys(attrs).forEach(function (key) {
  1837. el.setAttribute(key, attrs[key]);
  1838. });
  1839. }
  1840. function getNonce() {
  1841. if (false) {}
  1842. return __webpack_require__.nc;
  1843. }
  1844. function addStyle (obj, options) {
  1845. var style, update, remove, result;
  1846. // If a transform function was defined, run it on the css
  1847. if (options.transform && obj.css) {
  1848. result = typeof options.transform === 'function'
  1849. ? options.transform(obj.css)
  1850. : options.transform.default(obj.css);
  1851. if (result) {
  1852. // If transform returns a value, use that instead of the original css.
  1853. // This allows running runtime transformations on the css.
  1854. obj.css = result;
  1855. } else {
  1856. // If the transform function returns a falsy value, don't add this css.
  1857. // This allows conditional loading of css
  1858. return function() {
  1859. // noop
  1860. };
  1861. }
  1862. }
  1863. if (options.singleton) {
  1864. var styleIndex = singletonCounter++;
  1865. style = singleton || (singleton = createStyleElement(options));
  1866. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  1867. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  1868. } else if (
  1869. obj.sourceMap &&
  1870. typeof URL === "function" &&
  1871. typeof URL.createObjectURL === "function" &&
  1872. typeof URL.revokeObjectURL === "function" &&
  1873. typeof Blob === "function" &&
  1874. typeof btoa === "function"
  1875. ) {
  1876. style = createLinkElement(options);
  1877. update = updateLink.bind(null, style, options);
  1878. remove = function () {
  1879. removeStyleElement(style);
  1880. if(style.href) URL.revokeObjectURL(style.href);
  1881. };
  1882. } else {
  1883. style = createStyleElement(options);
  1884. update = applyToTag.bind(null, style);
  1885. remove = function () {
  1886. removeStyleElement(style);
  1887. };
  1888. }
  1889. update(obj);
  1890. return function updateStyle (newObj) {
  1891. if (newObj) {
  1892. if (
  1893. newObj.css === obj.css &&
  1894. newObj.media === obj.media &&
  1895. newObj.sourceMap === obj.sourceMap
  1896. ) {
  1897. return;
  1898. }
  1899. update(obj = newObj);
  1900. } else {
  1901. remove();
  1902. }
  1903. };
  1904. }
  1905. var replaceText = (function () {
  1906. var textStore = [];
  1907. return function (index, replacement) {
  1908. textStore[index] = replacement;
  1909. return textStore.filter(Boolean).join('\n');
  1910. };
  1911. })();
  1912. function applyToSingletonTag (style, index, remove, obj) {
  1913. var css = remove ? "" : obj.css;
  1914. if (style.styleSheet) {
  1915. style.styleSheet.cssText = replaceText(index, css);
  1916. } else {
  1917. var cssNode = document.createTextNode(css);
  1918. var childNodes = style.childNodes;
  1919. if (childNodes[index]) style.removeChild(childNodes[index]);
  1920. if (childNodes.length) {
  1921. style.insertBefore(cssNode, childNodes[index]);
  1922. } else {
  1923. style.appendChild(cssNode);
  1924. }
  1925. }
  1926. }
  1927. function applyToTag (style, obj) {
  1928. var css = obj.css;
  1929. var media = obj.media;
  1930. if(media) {
  1931. style.setAttribute("media", media)
  1932. }
  1933. if(style.styleSheet) {
  1934. style.styleSheet.cssText = css;
  1935. } else {
  1936. while(style.firstChild) {
  1937. style.removeChild(style.firstChild);
  1938. }
  1939. style.appendChild(document.createTextNode(css));
  1940. }
  1941. }
  1942. function updateLink (link, options, obj) {
  1943. var css = obj.css;
  1944. var sourceMap = obj.sourceMap;
  1945. /*
  1946. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  1947. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  1948. on by default. Otherwise default to the convertToAbsoluteUrls option
  1949. directly
  1950. */
  1951. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  1952. if (options.convertToAbsoluteUrls || autoFixUrls) {
  1953. css = fixUrls(css);
  1954. }
  1955. if (sourceMap) {
  1956. // http://stackoverflow.com/a/26603875
  1957. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  1958. }
  1959. var blob = new Blob([css], { type: "text/css" });
  1960. var oldSrc = link.href;
  1961. link.href = URL.createObjectURL(blob);
  1962. if(oldSrc) URL.revokeObjectURL(oldSrc);
  1963. }
  1964. /***/ }),
  1965. /***/ "./node_modules/style-loader/lib/urls.js":
  1966. /*!***********************************************!*\
  1967. !*** ./node_modules/style-loader/lib/urls.js ***!
  1968. \***********************************************/
  1969. /*! no static exports found */
  1970. /***/ (function(module, exports) {
  1971. /**
  1972. * When source maps are enabled, `style-loader` uses a link element with a data-uri to
  1973. * embed the css on the page. This breaks all relative urls because now they are relative to a
  1974. * bundle instead of the current page.
  1975. *
  1976. * One solution is to only use full urls, but that may be impossible.
  1977. *
  1978. * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
  1979. *
  1980. * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
  1981. *
  1982. */
  1983. module.exports = function (css) {
  1984. // get current location
  1985. var location = typeof window !== "undefined" && window.location;
  1986. if (!location) {
  1987. throw new Error("fixUrls requires window.location");
  1988. }
  1989. // blank or null?
  1990. if (!css || typeof css !== "string") {
  1991. return css;
  1992. }
  1993. var baseUrl = location.protocol + "//" + location.host;
  1994. var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
  1995. // convert each url(...)
  1996. /*
  1997. This regular expression is just a way to recursively match brackets within
  1998. a string.
  1999. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
  2000. ( = Start a capturing group
  2001. (?: = Start a non-capturing group
  2002. [^)(] = Match anything that isn't a parentheses
  2003. | = OR
  2004. \( = Match a start parentheses
  2005. (?: = Start another non-capturing groups
  2006. [^)(]+ = Match anything that isn't a parentheses
  2007. | = OR
  2008. \( = Match a start parentheses
  2009. [^)(]* = Match anything that isn't a parentheses
  2010. \) = Match a end parentheses
  2011. ) = End Group
  2012. *\) = Match anything and then a close parens
  2013. ) = Close non-capturing group
  2014. * = Match anything
  2015. ) = Close capturing group
  2016. \) = Match a close parens
  2017. /gi = Get all matches, not the first. Be case insensitive.
  2018. */
  2019. var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
  2020. // strip quotes (if they exist)
  2021. var unquotedOrigUrl = origUrl
  2022. .trim()
  2023. .replace(/^"(.*)"$/, function(o, $1){ return $1; })
  2024. .replace(/^'(.*)'$/, function(o, $1){ return $1; });
  2025. // already a full url? no change
  2026. if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
  2027. return fullMatch;
  2028. }
  2029. // convert the url to a full url
  2030. var newUrl;
  2031. if (unquotedOrigUrl.indexOf("//") === 0) {
  2032. //TODO: should we add protocol?
  2033. newUrl = unquotedOrigUrl;
  2034. } else if (unquotedOrigUrl.indexOf("/") === 0) {
  2035. // path should be relative to the base url
  2036. newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
  2037. } else {
  2038. // path should be relative to current directory
  2039. newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
  2040. }
  2041. // send back the fixed url(...)
  2042. return "url(" + JSON.stringify(newUrl) + ")";
  2043. });
  2044. // send back the fixed css
  2045. return fixedCss;
  2046. };
  2047. /***/ }),
  2048. /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/MemoryProfile.vue?vue&type=template&id=ebc1967e&scoped=true&":
  2049. /*!***********************************************************************************************************************************************************************************************************************************!*\
  2050. !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/assets/js/components/MemoryProfile.vue?vue&type=template&id=ebc1967e&scoped=true& ***!
  2051. \***********************************************************************************************************************************************************************************************************************************/
  2052. /*! exports provided: render, staticRenderFns */
  2053. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2054. "use strict";
  2055. __webpack_require__.r(__webpack_exports__);
  2056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
  2057. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
  2058. var render = function () {
  2059. var _vm = this
  2060. var _h = _vm.$createElement
  2061. var _c = _vm._self._c || _h
  2062. return _c(
  2063. "div",
  2064. { staticClass: "w-100 h-100" },
  2065. [
  2066. _vm.isMobile
  2067. ? _c("div", { staticClass: "bg-white p-3 border-bottom" }, [
  2068. _c(
  2069. "div",
  2070. {
  2071. staticClass:
  2072. "d-flex justify-content-between align-items-center",
  2073. },
  2074. [
  2075. _c(
  2076. "div",
  2077. { staticClass: "cursor-pointer", on: { click: _vm.goBack } },
  2078. [_c("i", { staticClass: "fas fa-chevron-left fa-lg" })]
  2079. ),
  2080. _vm._v(" "),
  2081. _c("div", { staticClass: "font-weight-bold" }, [
  2082. _vm._v(
  2083. "\n\t\t\t\t" +
  2084. _vm._s(this.profileUsername) +
  2085. "\t\t\t\t\t\t\t\t\n\n\t\t\t"
  2086. ),
  2087. ]),
  2088. _vm._v(" "),
  2089. _c("div", [
  2090. _c("a", {
  2091. staticClass:
  2092. "fas fa-ellipsis-v fa-lg text-muted text-decoration-none",
  2093. attrs: { href: "#" },
  2094. on: {
  2095. click: function ($event) {
  2096. $event.preventDefault()
  2097. return _vm.visitorMenu.apply(null, arguments)
  2098. },
  2099. },
  2100. }),
  2101. ]),
  2102. ]
  2103. ),
  2104. ])
  2105. : _vm._e(),
  2106. _vm._v(" "),
  2107. _vm.relationship && _vm.relationship.blocking && _vm.warning
  2108. ? _c("div", { staticClass: "bg-white pt-3 border-bottom" }, [
  2109. _c("div", { staticClass: "container" }, [
  2110. _c("p", { staticClass: "text-center font-weight-bold" }, [
  2111. _vm._v("You are blocking this account"),
  2112. ]),
  2113. _vm._v(" "),
  2114. _c("p", { staticClass: "text-center font-weight-bold" }, [
  2115. _vm._v("Click "),
  2116. _c(
  2117. "a",
  2118. {
  2119. staticClass: "cursor-pointer",
  2120. attrs: { href: "#" },
  2121. on: {
  2122. click: function ($event) {
  2123. $event.preventDefault()
  2124. _vm.warning = false
  2125. },
  2126. },
  2127. },
  2128. [_vm._v("here")]
  2129. ),
  2130. _vm._v(" to view profile"),
  2131. ]),
  2132. ]),
  2133. ])
  2134. : _vm._e(),
  2135. _vm._v(" "),
  2136. _vm.loading
  2137. ? _c(
  2138. "div",
  2139. {
  2140. staticClass: "d-flex justify-content-center align-items-center",
  2141. staticStyle: { height: "80vh" },
  2142. },
  2143. [_c("img", { attrs: { src: "/img/pixelfed-icon-grey.svg" } })]
  2144. )
  2145. : _vm._e(),
  2146. _vm._v(" "),
  2147. !_vm.loading && !_vm.warning
  2148. ? _c("div", [
  2149. _vm.timeline.length == 0 || _vm.timeline.length < 8
  2150. ? _c("div", {
  2151. staticClass: "bg-dark",
  2152. staticStyle: { height: "100px" },
  2153. })
  2154. : _c(
  2155. "div",
  2156. { staticClass: "bg-dark", staticStyle: { height: "400px" } },
  2157. [
  2158. _c("div", { staticClass: "container" }, [
  2159. _c("div", { staticClass: "d-flex overflow-hidden" }, [
  2160. _c("div", {}, [
  2161. _c("img", {
  2162. staticClass: "border border-dark img-cover",
  2163. attrs: {
  2164. src: _vm.timelineCache[0].media_attachments[0]
  2165. .preview_url,
  2166. width: "200px",
  2167. height: "200px",
  2168. },
  2169. }),
  2170. _vm._v(" "),
  2171. _c("img", {
  2172. staticClass: "border border-dark img-cover",
  2173. attrs: {
  2174. src: _vm.timelineCache[1].media_attachments[0]
  2175. .preview_url,
  2176. width: "200px",
  2177. height: "200px",
  2178. },
  2179. }),
  2180. ]),
  2181. _vm._v(" "),
  2182. _vm.timelineCache.length > 6
  2183. ? _c("div", {}, [
  2184. _c("img", {
  2185. staticClass: "border border-dark img-cover",
  2186. attrs: {
  2187. src: _vm.timelineCache[2].media_attachments[0]
  2188. .preview_url,
  2189. width: "400px",
  2190. height: "400px",
  2191. },
  2192. }),
  2193. ])
  2194. : _vm._e(),
  2195. _vm._v(" "),
  2196. _vm.timelineCache.length > 7
  2197. ? _c("div", {}, [
  2198. _c("img", {
  2199. staticClass: "border border-dark img-cover",
  2200. attrs: {
  2201. src: _vm.timelineCache[3].media_attachments[0]
  2202. .preview_url,
  2203. width: "200px",
  2204. height: "200px",
  2205. },
  2206. }),
  2207. _vm._v(" "),
  2208. _c("img", {
  2209. staticClass: "border border-dark img-cover",
  2210. attrs: {
  2211. src: _vm.timelineCache[4].media_attachments[0]
  2212. .preview_url,
  2213. width: "200px",
  2214. height: "200px",
  2215. },
  2216. }),
  2217. ])
  2218. : _vm._e(),
  2219. _vm._v(" "),
  2220. _vm.timelineCache.length > 7
  2221. ? _c("div", {}, [
  2222. _c("img", {
  2223. staticClass: "border border-dark img-cover",
  2224. attrs: {
  2225. src: _vm.timelineCache[5].media_attachments[0]
  2226. .preview_url,
  2227. width: "200px",
  2228. height: "200px",
  2229. },
  2230. }),
  2231. _vm._v(" "),
  2232. _c("img", {
  2233. staticClass: "border border-dark img-cover",
  2234. attrs: {
  2235. src: _vm.timelineCache[6].media_attachments[0]
  2236. .preview_url,
  2237. width: "200px",
  2238. height: "200px",
  2239. },
  2240. }),
  2241. ])
  2242. : _vm._e(),
  2243. ]),
  2244. ]),
  2245. ]
  2246. ),
  2247. _vm._v(" "),
  2248. _c("div", { staticClass: "container" }, [
  2249. _c(
  2250. "div",
  2251. {
  2252. staticClass:
  2253. "d-flex justify-content-between align-items-center pt-2 px-2",
  2254. staticStyle: {
  2255. width: "100%",
  2256. "min-height": "153px",
  2257. background: "#f6f6f6",
  2258. border: "1px solid #d9d9d9",
  2259. "z-index": "99999",
  2260. },
  2261. },
  2262. [
  2263. _c("div", {}, [
  2264. _c(
  2265. "div",
  2266. {
  2267. staticClass: "d-inline-block",
  2268. staticStyle: { width: "8rem", "margin-top": "-70px" },
  2269. },
  2270. [
  2271. _c(
  2272. "div",
  2273. { staticClass: "border rounded mb-3 bg-white p-1" },
  2274. [
  2275. _c("img", {
  2276. staticClass: "img-fluid rounded",
  2277. attrs: { src: _vm.profile.avatar },
  2278. }),
  2279. ]
  2280. ),
  2281. _vm._v(" "),
  2282. _vm.owner == true
  2283. ? _c(
  2284. "a",
  2285. {
  2286. staticClass:
  2287. "btn btn-primary btn-block font-weight-bold p-1",
  2288. attrs: { href: "/settings/home" },
  2289. },
  2290. [_vm._v("Edit Profile")]
  2291. )
  2292. : _vm.relationship.following == true
  2293. ? _c(
  2294. "button",
  2295. {
  2296. staticClass:
  2297. "btn btn-primary btn-block font-weight-bold p-1",
  2298. attrs: { type: "button" },
  2299. on: {
  2300. click: function ($event) {
  2301. $event.preventDefault()
  2302. return _vm.followProfile()
  2303. },
  2304. },
  2305. },
  2306. [_vm._v("Unfollow")]
  2307. )
  2308. : _c(
  2309. "button",
  2310. {
  2311. staticClass:
  2312. "btn btn-primary btn-block font-weight-bold p-1",
  2313. attrs: { type: "button" },
  2314. on: {
  2315. click: function ($event) {
  2316. $event.preventDefault()
  2317. return _vm.followProfile()
  2318. },
  2319. },
  2320. },
  2321. [_vm._v("Follow")]
  2322. ),
  2323. ]
  2324. ),
  2325. _vm._v(" "),
  2326. _vm.profile.local
  2327. ? _c(
  2328. "div",
  2329. {
  2330. staticClass: "d-inline-block ml-3",
  2331. staticStyle: { "max-width": "400px" },
  2332. },
  2333. [
  2334. _c(
  2335. "p",
  2336. { staticClass: "h3 font-weight-bold mb-1" },
  2337. [_vm._v("@" + _vm._s(_vm.profile.username))]
  2338. ),
  2339. _vm._v(" "),
  2340. _c("p", { staticClass: "mb-0" }, [
  2341. _c("span", { staticClass: "font-weight-bold" }, [
  2342. _vm._v(_vm._s(_vm.profile.display_name)),
  2343. ]),
  2344. ]),
  2345. _vm._v(" "),
  2346. _c("p", { staticClass: "text-muted small mb-0" }, [
  2347. _vm._v(_vm._s(_vm.profile.note)),
  2348. ]),
  2349. _vm._v(" "),
  2350. _c("p", { staticClass: "mb-0" }, [
  2351. _c(
  2352. "a",
  2353. {
  2354. staticClass: "font-weight-bold small",
  2355. staticStyle: { color: "rgba(62,100,135,1)" },
  2356. attrs: { href: _vm.profile.website },
  2357. on: {
  2358. click: function ($event) {
  2359. $event.preventDefault()
  2360. return _vm.remoteRedirect(
  2361. _vm.profile.website
  2362. )
  2363. },
  2364. },
  2365. },
  2366. [
  2367. _vm._v(
  2368. _vm._s(
  2369. _vm.truncate(_vm.profile.website, 40)
  2370. )
  2371. ),
  2372. ]
  2373. ),
  2374. ]),
  2375. ]
  2376. )
  2377. : _c(
  2378. "div",
  2379. {
  2380. staticClass: "d-inline-block ml-3",
  2381. staticStyle: { "max-width": "400px" },
  2382. },
  2383. [
  2384. _c(
  2385. "p",
  2386. { staticClass: "h3 font-weight-bold mb-1" },
  2387. [_vm._v(_vm._s(_vm.profile.username))]
  2388. ),
  2389. _vm._v(" "),
  2390. _c("p", { staticClass: "mb-2" }, [
  2391. _c("span", { staticClass: "font-weight-bold" }, [
  2392. _vm._v(_vm._s(_vm.profile.display_name)),
  2393. ]),
  2394. ]),
  2395. _vm._v(" "),
  2396. _vm._m(0),
  2397. ]
  2398. ),
  2399. ]),
  2400. _vm._v(" "),
  2401. _c("div", { staticClass: "d-md-none" }, [
  2402. _c(
  2403. "div",
  2404. {
  2405. staticClass:
  2406. "d-block btn btn-lighter btn-sm px-3 py-1 border mb-1",
  2407. on: {
  2408. click: function ($event) {
  2409. return _vm.followingModal()
  2410. },
  2411. },
  2412. },
  2413. [
  2414. _c("p", { staticClass: "mb-0 lead font-weight-bold" }, [
  2415. _vm._v(_vm._s(_vm.profile.following_count)),
  2416. ]),
  2417. _vm._v(" "),
  2418. _c(
  2419. "p",
  2420. {
  2421. staticClass:
  2422. "mb-0 mt-n1 text-muted font-weight-bold text-uppercase small",
  2423. },
  2424. [_vm._v("following")]
  2425. ),
  2426. ]
  2427. ),
  2428. _vm._v(" "),
  2429. _c(
  2430. "div",
  2431. {
  2432. staticClass:
  2433. "d-block btn btn-lighter btn-sm px-3 py-1 border",
  2434. on: {
  2435. click: function ($event) {
  2436. return _vm.followersModal()
  2437. },
  2438. },
  2439. },
  2440. [
  2441. _c("p", { staticClass: "mb-0 lead font-weight-bold" }, [
  2442. _vm._v(_vm._s(_vm.profile.followers_count)),
  2443. ]),
  2444. _vm._v(" "),
  2445. _c(
  2446. "p",
  2447. {
  2448. staticClass:
  2449. "mb-0 mt-n1 text-muted font-weight-bold text-uppercase small",
  2450. },
  2451. [_vm._v("followers")]
  2452. ),
  2453. ]
  2454. ),
  2455. ]),
  2456. _vm._v(" "),
  2457. _c("div", { staticClass: "d-none d-md-block" }, [
  2458. _c("div", { staticClass: "btn-group" }, [
  2459. _c(
  2460. "div",
  2461. { staticClass: "btn btn-lighter px-4 py-2 border" },
  2462. [
  2463. _c(
  2464. "p",
  2465. { staticClass: "mb-0 lead font-weight-bold" },
  2466. [_vm._v(_vm._s(_vm.profile.statuses_count))]
  2467. ),
  2468. _vm._v(" "),
  2469. _c(
  2470. "p",
  2471. {
  2472. staticClass:
  2473. "mb-0 mt-n1 text-muted font-weight-bold text-uppercase small",
  2474. },
  2475. [_vm._v("posts")]
  2476. ),
  2477. ]
  2478. ),
  2479. _vm._v(" "),
  2480. _c(
  2481. "div",
  2482. {
  2483. staticClass: "btn btn-lighter px-4 py-2 border",
  2484. on: {
  2485. click: function ($event) {
  2486. return _vm.followingModal()
  2487. },
  2488. },
  2489. },
  2490. [
  2491. _c(
  2492. "p",
  2493. { staticClass: "mb-0 lead font-weight-bold" },
  2494. [_vm._v(_vm._s(_vm.profile.following_count))]
  2495. ),
  2496. _vm._v(" "),
  2497. _c(
  2498. "p",
  2499. {
  2500. staticClass:
  2501. "mb-0 mt-n1 text-muted font-weight-bold text-uppercase small",
  2502. },
  2503. [_vm._v("following")]
  2504. ),
  2505. ]
  2506. ),
  2507. _vm._v(" "),
  2508. _c(
  2509. "div",
  2510. {
  2511. staticClass: "btn btn-lighter px-4 py-2 border",
  2512. on: {
  2513. click: function ($event) {
  2514. return _vm.followersModal()
  2515. },
  2516. },
  2517. },
  2518. [
  2519. _c(
  2520. "p",
  2521. { staticClass: "mb-0 lead font-weight-bold" },
  2522. [_vm._v(_vm._s(_vm.profile.followers_count))]
  2523. ),
  2524. _vm._v(" "),
  2525. _c(
  2526. "p",
  2527. {
  2528. staticClass:
  2529. "mb-0 mt-n1 text-muted font-weight-bold text-uppercase small",
  2530. },
  2531. [_vm._v("followers")]
  2532. ),
  2533. ]
  2534. ),
  2535. ]),
  2536. ]),
  2537. ]
  2538. ),
  2539. ]),
  2540. _vm._v(" "),
  2541. _c("div", { staticClass: "container" }, [
  2542. _c(
  2543. "nav",
  2544. {
  2545. staticClass: "navbar navbar-dark bg-primary",
  2546. staticStyle: { "border-color": "#456a8b" },
  2547. },
  2548. [
  2549. _c(
  2550. "div",
  2551. {
  2552. staticClass:
  2553. "container d-flex justify-content-center align-items-center",
  2554. },
  2555. [
  2556. _c(
  2557. "div",
  2558. {
  2559. staticClass: "nav-card px-3",
  2560. staticStyle: { "padding-top": "14px" },
  2561. },
  2562. [
  2563. _c(
  2564. "a",
  2565. {
  2566. class: [
  2567. _vm.page == "home"
  2568. ? "d-md-none font-weight-bold text-white mx-2 small"
  2569. : "d-md-none font-weight-bold text-lighter mx-2 small",
  2570. ],
  2571. attrs: { href: _vm.pageUrl() },
  2572. on: {
  2573. click: function ($event) {
  2574. $event.preventDefault()
  2575. return _vm.navigateToPage("home")
  2576. },
  2577. },
  2578. },
  2579. [_c("i", { staticClass: "fas fa-th" })]
  2580. ),
  2581. _vm._v(" "),
  2582. _c(
  2583. "a",
  2584. {
  2585. class: [
  2586. _vm.page == "home"
  2587. ? "d-none d-md-inline font-weight-bold text-white mx-2 small"
  2588. : "d-none d-md-inline font-weight-bold text-lighter mx-2 small",
  2589. ],
  2590. attrs: { href: _vm.pageUrl() },
  2591. on: {
  2592. click: function ($event) {
  2593. $event.preventDefault()
  2594. return _vm.navigateToPage("home")
  2595. },
  2596. },
  2597. },
  2598. [_vm._v("\n\t\t\t\t\t\t\tPOSTS\n\t\t\t\t\t\t")]
  2599. ),
  2600. ]
  2601. ),
  2602. _vm._v(" "),
  2603. _c(
  2604. "div",
  2605. {
  2606. staticClass: "nav-card px-3",
  2607. staticStyle: { "padding-top": "14px" },
  2608. },
  2609. [
  2610. _c(
  2611. "a",
  2612. {
  2613. class: [
  2614. _vm.page == "collections"
  2615. ? "d-md-none font-weight-bold text-white mx-2 small"
  2616. : "d-md-none font-weight-bold text-lighter mx-2 small",
  2617. ],
  2618. attrs: { href: _vm.pageUrl("collections") },
  2619. on: {
  2620. click: function ($event) {
  2621. $event.preventDefault()
  2622. return _vm.navigateToPage("collections")
  2623. },
  2624. },
  2625. },
  2626. [_c("i", { staticClass: "fas fa-images" })]
  2627. ),
  2628. _vm._v(" "),
  2629. _c(
  2630. "a",
  2631. {
  2632. class: [
  2633. _vm.page == "collections"
  2634. ? "d-none d-md-inline font-weight-bold text-white mx-2 small"
  2635. : "d-none d-md-inline font-weight-bold text-lighter mx-2 small",
  2636. ],
  2637. attrs: { href: _vm.pageUrl("collections") },
  2638. on: {
  2639. click: function ($event) {
  2640. $event.preventDefault()
  2641. return _vm.navigateToPage("collections")
  2642. },
  2643. },
  2644. },
  2645. [
  2646. _vm._v(
  2647. "\n\t\t\t\t\t\t\tCOLLECTIONS\n\t\t\t\t\t\t"
  2648. ),
  2649. ]
  2650. ),
  2651. ]
  2652. ),
  2653. _vm._v(" "),
  2654. _vm.owner == true
  2655. ? _c(
  2656. "div",
  2657. {
  2658. staticClass: "nav-card px-3",
  2659. staticStyle: { "padding-top": "14px" },
  2660. },
  2661. [
  2662. _c(
  2663. "a",
  2664. {
  2665. class: [
  2666. _vm.page == "saved"
  2667. ? "d-md-none font-weight-bold text-white mx-2 small"
  2668. : "d-md-none font-weight-bold text-lighter mx-2 small",
  2669. ],
  2670. attrs: { href: _vm.pageUrl("saved") },
  2671. on: {
  2672. click: function ($event) {
  2673. $event.preventDefault()
  2674. return _vm.navigateToPage("saved")
  2675. },
  2676. },
  2677. },
  2678. [_c("i", { staticClass: "fas fa-bookmark" })]
  2679. ),
  2680. _vm._v(" "),
  2681. _c(
  2682. "a",
  2683. {
  2684. class: [
  2685. _vm.page == "saved"
  2686. ? "d-none d-md-inline font-weight-bold text-white mx-2 small"
  2687. : "d-none d-md-inline font-weight-bold text-lighter mx-2 small",
  2688. ],
  2689. attrs: { href: _vm.pageUrl("saved") },
  2690. on: {
  2691. click: function ($event) {
  2692. $event.preventDefault()
  2693. return _vm.navigateToPage("saved")
  2694. },
  2695. },
  2696. },
  2697. [_vm._v("\n\t\t\t\t\t\t\tSAVED\n\t\t\t\t\t\t")]
  2698. ),
  2699. ]
  2700. )
  2701. : _vm._e(),
  2702. _vm._v(" "),
  2703. _vm.owner == true
  2704. ? _c(
  2705. "div",
  2706. {
  2707. staticClass: "nav-card px-3",
  2708. staticStyle: { "padding-top": "14px" },
  2709. },
  2710. [
  2711. _c(
  2712. "a",
  2713. {
  2714. class: [
  2715. _vm.page == "likes"
  2716. ? "d-md-none font-weight-bold text-white mx-2 small"
  2717. : "d-md-none font-weight-bold text-lighter mx-2 small",
  2718. ],
  2719. attrs: { href: _vm.pageUrl("likes") },
  2720. on: {
  2721. click: function ($event) {
  2722. $event.preventDefault()
  2723. return _vm.navigateToPage("likes")
  2724. },
  2725. },
  2726. },
  2727. [_c("i", { staticClass: "fas fa-heart" })]
  2728. ),
  2729. _vm._v(" "),
  2730. _c(
  2731. "a",
  2732. {
  2733. class: [
  2734. _vm.page == "likes"
  2735. ? "d-none d-md-inline font-weight-bold text-white mx-2 small"
  2736. : "d-none d-md-inline font-weight-bold text-lighter mx-2 small",
  2737. ],
  2738. attrs: { href: _vm.pageUrl("likes") },
  2739. on: {
  2740. click: function ($event) {
  2741. $event.preventDefault()
  2742. return _vm.navigateToPage("likes")
  2743. },
  2744. },
  2745. },
  2746. [_vm._v("\n\t\t\t\t\t\t\tLIKES\n\t\t\t\t\t\t")]
  2747. ),
  2748. ]
  2749. )
  2750. : _vm._e(),
  2751. _vm._v(" "),
  2752. _c(
  2753. "div",
  2754. {
  2755. staticClass: "nav-card px-3",
  2756. staticStyle: { "padding-top": "14px" },
  2757. },
  2758. [
  2759. _c(
  2760. "span",
  2761. {
  2762. staticClass: "mx-2 text-lighter cursor-pointer",
  2763. on: {
  2764. click: function ($event) {
  2765. return _vm.visitorMenu()
  2766. },
  2767. },
  2768. },
  2769. [_c("i", { staticClass: "fas fa-cog" })]
  2770. ),
  2771. ]
  2772. ),
  2773. ]
  2774. ),
  2775. ]
  2776. ),
  2777. ]),
  2778. _vm._v(" "),
  2779. _c("div", { staticClass: "container" }, [
  2780. _c(
  2781. "div",
  2782. {
  2783. staticClass: "border overflow-hidden",
  2784. staticStyle: { background: "#eaeaea", "min-height": "40vh" },
  2785. },
  2786. [
  2787. _vm.page == "collections"
  2788. ? _c(
  2789. "div",
  2790. { staticClass: "row pl-2 pr-3 mt-3" },
  2791. [
  2792. _vm._m(1),
  2793. _vm._v(" "),
  2794. _vm._l(_vm.collections, function (post, index) {
  2795. return _vm.collections.length
  2796. ? _c(
  2797. "div",
  2798. {
  2799. key: "cmtl-" + post.id,
  2800. staticClass: "col-12 col-md-3 mb-3 mx-0",
  2801. },
  2802. [
  2803. _c(
  2804. "a",
  2805. {
  2806. staticClass: "text-decoration-none",
  2807. attrs: { href: post.url },
  2808. },
  2809. [
  2810. _c("img", {
  2811. staticClass:
  2812. "bg-white p-2 rounded border img-cover",
  2813. attrs: {
  2814. src: post.thumb,
  2815. width: "100%",
  2816. height: "230px",
  2817. onerror:
  2818. "this.onerror=null;this.src='/storage/no-preview.png';",
  2819. },
  2820. }),
  2821. _vm._v(" "),
  2822. _c(
  2823. "div",
  2824. {
  2825. staticClass:
  2826. "d-flex justify-content-between px-1 small text-muted font-weight-bold pt-1",
  2827. },
  2828. [
  2829. _c(
  2830. "span",
  2831. {
  2832. staticClass:
  2833. "text-truncate mr-3",
  2834. },
  2835. [_vm._v(_vm._s(post.title))]
  2836. ),
  2837. _vm._v(" "),
  2838. _c("span", [
  2839. _vm._v(
  2840. _vm._s(
  2841. _vm.timeago(post.published_at)
  2842. )
  2843. ),
  2844. ]),
  2845. ]
  2846. ),
  2847. ]
  2848. ),
  2849. ]
  2850. )
  2851. : _vm._e()
  2852. }),
  2853. ],
  2854. 2
  2855. )
  2856. : _vm.owner && _vm.page == "saved"
  2857. ? _c(
  2858. "div",
  2859. { staticClass: "row pl-2 pr-3 mt-3" },
  2860. [
  2861. _vm._m(2),
  2862. _vm._v(" "),
  2863. _vm._l(_vm.bookmarks, function (post, index) {
  2864. return _vm.bookmarks.length
  2865. ? _c(
  2866. "div",
  2867. {
  2868. key: "cmtl-" + post.id,
  2869. staticClass: "col-12 col-md-3 mb-3 mx-0",
  2870. },
  2871. [
  2872. _c(
  2873. "a",
  2874. {
  2875. staticClass: "text-decoration-none",
  2876. attrs: { href: post.url },
  2877. },
  2878. [
  2879. _c("img", {
  2880. staticClass:
  2881. "bg-white p-2 rounded border img-cover",
  2882. attrs: {
  2883. src: post.media_attachments[0]
  2884. .preview_url,
  2885. width: "100%",
  2886. height: "230px",
  2887. onerror:
  2888. "this.onerror=null;this.src='/storage/no-preview.png';",
  2889. },
  2890. }),
  2891. _vm._v(" "),
  2892. _c(
  2893. "div",
  2894. {
  2895. staticClass:
  2896. "d-flex justify-content-between px-1 small text-muted font-weight-bold pt-1",
  2897. },
  2898. [
  2899. _c("span", {
  2900. staticClass: "text-truncate mr-3",
  2901. }),
  2902. _vm._v(" "),
  2903. _c("span", [
  2904. _vm._v(
  2905. _vm._s(
  2906. _vm.timeago(post.created_at)
  2907. )
  2908. ),
  2909. ]),
  2910. ]
  2911. ),
  2912. ]
  2913. ),
  2914. ]
  2915. )
  2916. : _vm._e()
  2917. }),
  2918. ],
  2919. 2
  2920. )
  2921. : _vm.page == "places"
  2922. ? _c("div", { staticClass: "row pl-2 pr-3 mt-3" }, [
  2923. _vm._m(3),
  2924. ])
  2925. : _vm.page == "likes"
  2926. ? _c(
  2927. "div",
  2928. { staticClass: "row pl-2 pr-3 mt-3" },
  2929. [
  2930. _vm._l(_vm.likesTimeline, function (lpost, index) {
  2931. return _vm.likesTimeline.length
  2932. ? _c(
  2933. "div",
  2934. {
  2935. key: "pmltl-" + lpost.id,
  2936. staticClass: "col-12 col-md-3 mb-3 mx-0",
  2937. },
  2938. [
  2939. _c(
  2940. "a",
  2941. {
  2942. staticClass: "text-decoration-none",
  2943. attrs: { href: lpost.url },
  2944. },
  2945. [
  2946. _c("img", {
  2947. staticClass:
  2948. "bg-white p-2 rounded border img-cover",
  2949. attrs: {
  2950. src: lpost.media_attachments[0]
  2951. .preview_url,
  2952. width: "100%",
  2953. height: "230px",
  2954. onerror:
  2955. "this.onerror=null;this.src='/storage/no-preview.png';",
  2956. },
  2957. }),
  2958. _vm._v(" "),
  2959. _c(
  2960. "div",
  2961. {
  2962. staticClass:
  2963. "d-flex justify-content-between px-1 small text-muted font-weight-bold pt-1",
  2964. },
  2965. [
  2966. _c("span", [
  2967. _vm._v(
  2968. _vm._s(lpost.favourites_count) +
  2969. " " +
  2970. _vm._s(
  2971. lpost.favourites_count == 1
  2972. ? "like"
  2973. : "likes"
  2974. )
  2975. ),
  2976. ]),
  2977. _vm._v(" "),
  2978. _c("span", [
  2979. _vm._v(
  2980. _vm._s(
  2981. _vm.timeago(lpost.created_at)
  2982. )
  2983. ),
  2984. ]),
  2985. ]
  2986. ),
  2987. ]
  2988. ),
  2989. ]
  2990. )
  2991. : _vm._e()
  2992. }),
  2993. _vm._v(" "),
  2994. _vm.likesTimeline.length
  2995. ? _c(
  2996. "div",
  2997. { staticClass: "col-12" },
  2998. [
  2999. _c(
  3000. "infinite-loading",
  3001. { on: { infinite: _vm.infiniteLikes } },
  3002. [
  3003. _c("div", {
  3004. attrs: { slot: "no-more" },
  3005. slot: "no-more",
  3006. }),
  3007. _vm._v(" "),
  3008. _c("div", {
  3009. attrs: { slot: "no-results" },
  3010. slot: "no-results",
  3011. }),
  3012. ]
  3013. ),
  3014. ],
  3015. 1
  3016. )
  3017. : _c(
  3018. "div",
  3019. { staticClass: "col-12 mt-5 pt-5 mx-0" },
  3020. [
  3021. _vm._m(4),
  3022. _vm._v(" "),
  3023. _c(
  3024. "p",
  3025. {
  3026. staticClass:
  3027. "lead text-center mb-0 font-weight-bold text-muted",
  3028. },
  3029. [_vm._v("No liked posts found")]
  3030. ),
  3031. ]
  3032. ),
  3033. ],
  3034. 2
  3035. )
  3036. : _c(
  3037. "div",
  3038. { staticClass: "row pl-2 pr-3 mt-3" },
  3039. [
  3040. _vm._l(_vm.timeline, function (post, index) {
  3041. return _vm.timeline.length
  3042. ? _c(
  3043. "div",
  3044. {
  3045. key: "pmtl-" + post.id,
  3046. staticClass: "col-12 col-md-3 mb-3 mx-0",
  3047. },
  3048. [
  3049. _c(
  3050. "a",
  3051. {
  3052. staticClass: "text-decoration-none",
  3053. attrs: { href: post.url },
  3054. },
  3055. [
  3056. _c("img", {
  3057. staticClass:
  3058. "bg-white p-2 rounded border img-cover",
  3059. attrs: {
  3060. src: post.media_attachments[0]
  3061. .preview_url,
  3062. width: "100%",
  3063. height: "230px",
  3064. onerror:
  3065. "this.onerror=null;this.src='/storage/no-preview.png';",
  3066. },
  3067. }),
  3068. _vm._v(" "),
  3069. _c(
  3070. "div",
  3071. {
  3072. staticClass:
  3073. "d-flex justify-content-between px-1 small text-muted font-weight-bold pt-1",
  3074. },
  3075. [
  3076. _c("span", [
  3077. _vm._v(
  3078. _vm._s(post.favourites_count) +
  3079. " " +
  3080. _vm._s(
  3081. post.favourites_count == 1
  3082. ? "like"
  3083. : "likes"
  3084. )
  3085. ),
  3086. ]),
  3087. _vm._v(" "),
  3088. _c("span", [
  3089. _vm._v(
  3090. _vm._s(
  3091. _vm.timeago(post.created_at)
  3092. )
  3093. ),
  3094. ]),
  3095. ]
  3096. ),
  3097. ]
  3098. ),
  3099. ]
  3100. )
  3101. : _vm._e()
  3102. }),
  3103. _vm._v(" "),
  3104. _vm.timeline.length
  3105. ? _c(
  3106. "div",
  3107. { staticClass: "col-12" },
  3108. [
  3109. _c(
  3110. "infinite-loading",
  3111. { on: { infinite: _vm.infiniteTimeline } },
  3112. [
  3113. _c("div", {
  3114. attrs: { slot: "no-more" },
  3115. slot: "no-more",
  3116. }),
  3117. _vm._v(" "),
  3118. _c("div", {
  3119. attrs: { slot: "no-results" },
  3120. slot: "no-results",
  3121. }),
  3122. ]
  3123. ),
  3124. ],
  3125. 1
  3126. )
  3127. : _c(
  3128. "div",
  3129. { staticClass: "col-12 mt-5 pt-5 mx-0" },
  3130. [
  3131. _vm._m(5),
  3132. _vm._v(" "),
  3133. _c(
  3134. "p",
  3135. {
  3136. staticClass:
  3137. "lead text-center mb-0 font-weight-bold text-muted",
  3138. },
  3139. [
  3140. _vm._v(
  3141. "\n\t\t\t\t\t\t\t\tNo posts found\n\t\t\t\t\t\t\t"
  3142. ),
  3143. ]
  3144. ),
  3145. ]
  3146. ),
  3147. ],
  3148. 2
  3149. ),
  3150. ]
  3151. ),
  3152. ]),
  3153. ])
  3154. : _vm._e(),
  3155. _vm._v(" "),
  3156. _vm.profile && _vm.following
  3157. ? _c(
  3158. "b-modal",
  3159. {
  3160. ref: "followingModal",
  3161. attrs: {
  3162. id: "following-modal",
  3163. "hide-footer": "",
  3164. centered: "",
  3165. scrollable: "",
  3166. title: "Following",
  3167. "body-class": "list-group-flush py-3 px-0",
  3168. "dialog-class": "follow-modal",
  3169. },
  3170. },
  3171. [
  3172. !_vm.loading
  3173. ? _c(
  3174. "div",
  3175. {
  3176. staticClass: "list-group",
  3177. staticStyle: { "min-height": "60vh" },
  3178. },
  3179. [
  3180. _vm.owner == true
  3181. ? _c(
  3182. "div",
  3183. {
  3184. staticClass:
  3185. "list-group-item border-0 pt-0 px-0 mt-n2 mb-3",
  3186. },
  3187. [
  3188. _c(
  3189. "span",
  3190. {
  3191. staticClass:
  3192. "d-flex px-4 pb-0 align-items-center",
  3193. },
  3194. [
  3195. _c("i", {
  3196. staticClass: "fas fa-search text-lighter",
  3197. }),
  3198. _vm._v(" "),
  3199. _c("input", {
  3200. directives: [
  3201. {
  3202. name: "model",
  3203. rawName: "v-model",
  3204. value: _vm.followingModalSearch,
  3205. expression: "followingModalSearch",
  3206. },
  3207. ],
  3208. staticClass:
  3209. "form-control border-0 shadow-0 no-focus",
  3210. attrs: {
  3211. type: "text",
  3212. placeholder: "Search Following...",
  3213. },
  3214. domProps: {
  3215. value: _vm.followingModalSearch,
  3216. },
  3217. on: {
  3218. keyup: _vm.followingModalSearchHandler,
  3219. input: function ($event) {
  3220. if ($event.target.composing) {
  3221. return
  3222. }
  3223. _vm.followingModalSearch =
  3224. $event.target.value
  3225. },
  3226. },
  3227. }),
  3228. ]
  3229. ),
  3230. ]
  3231. )
  3232. : _vm._e(),
  3233. _vm._v(" "),
  3234. _vm.owner == true
  3235. ? _c("div", {
  3236. staticClass:
  3237. "btn-group rounded-0 mt-n3 mb-3 border-top",
  3238. attrs: { role: "group", "aria-label": "Following" },
  3239. })
  3240. : _c("div", {
  3241. staticClass: "btn-group rounded-0 mt-n3 mb-3",
  3242. attrs: { role: "group", "aria-label": "Following" },
  3243. }),
  3244. _vm._v(" "),
  3245. _vm._l(_vm.following, function (user, index) {
  3246. return _c(
  3247. "div",
  3248. {
  3249. key: "following_" + index,
  3250. staticClass: "list-group-item border-0 py-1",
  3251. },
  3252. [
  3253. _c("div", { staticClass: "media" }, [
  3254. _c("a", { attrs: { href: user.url } }, [
  3255. _c("img", {
  3256. staticClass: "mr-3 rounded-circle box-shadow",
  3257. attrs: {
  3258. src: user.avatar,
  3259. alt: user.username + "’s avatar",
  3260. width: "30px",
  3261. loading: "lazy",
  3262. },
  3263. }),
  3264. ]),
  3265. _vm._v(" "),
  3266. _c(
  3267. "div",
  3268. { staticClass: "media-body text-truncate" },
  3269. [
  3270. _c(
  3271. "p",
  3272. {
  3273. staticClass: "mb-0",
  3274. staticStyle: { "font-size": "14px" },
  3275. },
  3276. [
  3277. _c(
  3278. "a",
  3279. {
  3280. staticClass:
  3281. "font-weight-bold text-dark",
  3282. attrs: { href: user.url },
  3283. },
  3284. [
  3285. _vm._v(
  3286. "\n\t\t\t\t\t\t\t\t" +
  3287. _vm._s(user.username) +
  3288. "\n\t\t\t\t\t\t\t"
  3289. ),
  3290. ]
  3291. ),
  3292. ]
  3293. ),
  3294. _vm._v(" "),
  3295. !user.local
  3296. ? _c(
  3297. "p",
  3298. {
  3299. staticClass:
  3300. "text-muted mb-0 text-truncate mr-3",
  3301. staticStyle: { "font-size": "14px" },
  3302. attrs: {
  3303. title: user.acct,
  3304. "data-toggle": "dropdown",
  3305. "data-placement": "bottom",
  3306. },
  3307. },
  3308. [
  3309. _c(
  3310. "span",
  3311. { staticClass: "font-weight-bold" },
  3312. [
  3313. _vm._v(
  3314. _vm._s(user.acct.split("@")[0])
  3315. ),
  3316. ]
  3317. ),
  3318. _c(
  3319. "span",
  3320. { staticClass: "text-lighter" },
  3321. [
  3322. _vm._v(
  3323. "@" +
  3324. _vm._s(
  3325. user.acct.split("@")[1]
  3326. )
  3327. ),
  3328. ]
  3329. ),
  3330. ]
  3331. )
  3332. : _c(
  3333. "p",
  3334. {
  3335. staticClass:
  3336. "text-muted mb-0 text-truncate",
  3337. staticStyle: { "font-size": "14px" },
  3338. },
  3339. [
  3340. _vm._v(
  3341. "\n\t\t\t\t\t\t\t" +
  3342. _vm._s(user.display_name) +
  3343. "\n\t\t\t\t\t\t"
  3344. ),
  3345. ]
  3346. ),
  3347. ]
  3348. ),
  3349. _vm._v(" "),
  3350. _vm.owner
  3351. ? _c("div", [
  3352. _c(
  3353. "a",
  3354. {
  3355. staticClass:
  3356. "btn btn-outline-dark btn-sm font-weight-bold",
  3357. attrs: { href: "#" },
  3358. on: {
  3359. click: function ($event) {
  3360. $event.preventDefault()
  3361. return _vm.followModalAction(
  3362. user.id,
  3363. index,
  3364. "following"
  3365. )
  3366. },
  3367. },
  3368. },
  3369. [_vm._v("Following")]
  3370. ),
  3371. ])
  3372. : _vm._e(),
  3373. ]),
  3374. ]
  3375. )
  3376. }),
  3377. _vm._v(" "),
  3378. _vm.followingModalSearch && _vm.following.length == 0
  3379. ? _c(
  3380. "div",
  3381. { staticClass: "list-group-item border-0" },
  3382. [
  3383. _c(
  3384. "div",
  3385. {
  3386. staticClass: "list-group-item border-0 pt-5",
  3387. },
  3388. [
  3389. _c(
  3390. "p",
  3391. {
  3392. staticClass: "p-3 text-center mb-0 lead",
  3393. },
  3394. [_vm._v("No Results Found")]
  3395. ),
  3396. ]
  3397. ),
  3398. ]
  3399. )
  3400. : _vm._e(),
  3401. _vm._v(" "),
  3402. _vm.following.length > 0 && _vm.followingMore
  3403. ? _c(
  3404. "div",
  3405. {
  3406. staticClass: "list-group-item text-center",
  3407. on: {
  3408. click: function ($event) {
  3409. return _vm.followingLoadMore()
  3410. },
  3411. },
  3412. },
  3413. [
  3414. _c(
  3415. "p",
  3416. {
  3417. staticClass:
  3418. "mb-0 small text-muted font-weight-light cursor-pointer",
  3419. },
  3420. [_vm._v("Load more")]
  3421. ),
  3422. ]
  3423. )
  3424. : _vm._e(),
  3425. ],
  3426. 2
  3427. )
  3428. : _vm._e(),
  3429. ]
  3430. )
  3431. : _vm._e(),
  3432. _vm._v(" "),
  3433. _c(
  3434. "b-modal",
  3435. {
  3436. ref: "followerModal",
  3437. attrs: {
  3438. id: "follower-modal",
  3439. "hide-footer": "",
  3440. centered: "",
  3441. scrollable: "",
  3442. title: "Followers",
  3443. "body-class": "list-group-flush py-3 px-0",
  3444. "dialog-class": "follow-modal",
  3445. },
  3446. },
  3447. [
  3448. _c(
  3449. "div",
  3450. { staticClass: "list-group" },
  3451. [
  3452. _vm.followers.length == 0
  3453. ? _c("div", { staticClass: "list-group-item border-0" }, [
  3454. _c(
  3455. "p",
  3456. {
  3457. staticClass:
  3458. "text-center mb-0 font-weight-bold text-muted py-5",
  3459. },
  3460. [
  3461. _c("span", { staticClass: "text-dark" }, [
  3462. _vm._v(_vm._s(_vm.profileUsername)),
  3463. ]),
  3464. _vm._v(" has no followers yet"),
  3465. ]
  3466. ),
  3467. ])
  3468. : _vm._e(),
  3469. _vm._v(" "),
  3470. _vm._l(_vm.followers, function (user, index) {
  3471. return _c(
  3472. "div",
  3473. {
  3474. key: "follower_" + index,
  3475. staticClass: "list-group-item border-0 py-1",
  3476. },
  3477. [
  3478. _c("div", { staticClass: "media mb-0" }, [
  3479. _c("a", { attrs: { href: user.url } }, [
  3480. _c("img", {
  3481. staticClass: "mr-3 rounded-circle box-shadow",
  3482. attrs: {
  3483. src: user.avatar,
  3484. alt: user.username + "’s avatar",
  3485. width: "30px",
  3486. height: "30px",
  3487. loading: "lazy",
  3488. },
  3489. }),
  3490. ]),
  3491. _vm._v(" "),
  3492. _c("div", { staticClass: "media-body mb-0" }, [
  3493. _c(
  3494. "p",
  3495. {
  3496. staticClass: "mb-0",
  3497. staticStyle: { "font-size": "14px" },
  3498. },
  3499. [
  3500. _c(
  3501. "a",
  3502. {
  3503. staticClass: "font-weight-bold text-dark",
  3504. attrs: { href: user.url },
  3505. },
  3506. [
  3507. _vm._v(
  3508. "\n\t\t\t\t\t\t\t\t" +
  3509. _vm._s(user.username) +
  3510. "\n\t\t\t\t\t\t\t"
  3511. ),
  3512. ]
  3513. ),
  3514. ]
  3515. ),
  3516. _vm._v(" "),
  3517. _c(
  3518. "p",
  3519. {
  3520. staticClass: "text-secondary mb-0",
  3521. staticStyle: { "font-size": "13px" },
  3522. },
  3523. [
  3524. _vm._v(
  3525. "\n\t\t\t\t\t\t\t" +
  3526. _vm._s(user.display_name) +
  3527. "\n\t\t\t\t\t\t"
  3528. ),
  3529. ]
  3530. ),
  3531. ]),
  3532. ]),
  3533. ]
  3534. )
  3535. }),
  3536. _vm._v(" "),
  3537. _vm.followers.length && _vm.followerMore
  3538. ? _c(
  3539. "div",
  3540. {
  3541. staticClass: "list-group-item text-center",
  3542. on: {
  3543. click: function ($event) {
  3544. return _vm.followersLoadMore()
  3545. },
  3546. },
  3547. },
  3548. [
  3549. _c(
  3550. "p",
  3551. {
  3552. staticClass:
  3553. "mb-0 small text-muted font-weight-light cursor-pointer",
  3554. },
  3555. [_vm._v("Load more")]
  3556. ),
  3557. ]
  3558. )
  3559. : _vm._e(),
  3560. ],
  3561. 2
  3562. ),
  3563. ]
  3564. ),
  3565. _vm._v(" "),
  3566. _c(
  3567. "b-modal",
  3568. {
  3569. ref: "visitorContextMenu",
  3570. attrs: {
  3571. id: "visitor-context-menu",
  3572. "hide-footer": "",
  3573. "hide-header": "",
  3574. centered: "",
  3575. size: "sm",
  3576. "body-class": "list-group-flush p-0",
  3577. },
  3578. },
  3579. [
  3580. _vm.relationship
  3581. ? _c("div", { staticClass: "list-group" }, [
  3582. _c(
  3583. "div",
  3584. {
  3585. staticClass:
  3586. "list-group-item cursor-pointer text-center rounded text-dark",
  3587. on: { click: _vm.copyProfileLink },
  3588. },
  3589. [_vm._v("\n\t\t\t\tCopy Link\n\t\t\t")]
  3590. ),
  3591. _vm._v(" "),
  3592. _vm.profile.locked == false
  3593. ? _c(
  3594. "div",
  3595. {
  3596. staticClass:
  3597. "list-group-item cursor-pointer text-center rounded text-dark",
  3598. on: { click: _vm.showEmbedProfileModal },
  3599. },
  3600. [_vm._v("\n\t\t\t\tEmbed\n\t\t\t")]
  3601. )
  3602. : _vm._e(),
  3603. _vm._v(" "),
  3604. _vm.user && !_vm.owner && !_vm.relationship.following
  3605. ? _c(
  3606. "div",
  3607. {
  3608. staticClass:
  3609. "list-group-item cursor-pointer text-center rounded text-dark",
  3610. on: { click: _vm.followProfile },
  3611. },
  3612. [_vm._v("\n\t\t\t\tFollow\n\t\t\t")]
  3613. )
  3614. : _vm._e(),
  3615. _vm._v(" "),
  3616. _vm.user && !_vm.owner && _vm.relationship.following
  3617. ? _c(
  3618. "div",
  3619. {
  3620. staticClass:
  3621. "list-group-item cursor-pointer text-center rounded",
  3622. on: { click: _vm.followProfile },
  3623. },
  3624. [_vm._v("\n\t\t\t\tUnfollow\n\t\t\t")]
  3625. )
  3626. : _vm._e(),
  3627. _vm._v(" "),
  3628. _vm.user && !_vm.owner && !_vm.relationship.muting
  3629. ? _c(
  3630. "div",
  3631. {
  3632. staticClass:
  3633. "list-group-item cursor-pointer text-center rounded",
  3634. on: { click: _vm.muteProfile },
  3635. },
  3636. [_vm._v("\n\t\t\t\tMute\n\t\t\t")]
  3637. )
  3638. : _vm._e(),
  3639. _vm._v(" "),
  3640. _vm.user && !_vm.owner && _vm.relationship.muting
  3641. ? _c(
  3642. "div",
  3643. {
  3644. staticClass:
  3645. "list-group-item cursor-pointer text-center rounded",
  3646. on: { click: _vm.unmuteProfile },
  3647. },
  3648. [_vm._v("\n\t\t\t\tUnmute\n\t\t\t")]
  3649. )
  3650. : _vm._e(),
  3651. _vm._v(" "),
  3652. _vm.user && !_vm.owner
  3653. ? _c(
  3654. "div",
  3655. {
  3656. staticClass:
  3657. "list-group-item cursor-pointer text-center rounded text-dark",
  3658. on: { click: _vm.reportProfile },
  3659. },
  3660. [_vm._v("\n\t\t\t\tReport User\n\t\t\t")]
  3661. )
  3662. : _vm._e(),
  3663. _vm._v(" "),
  3664. _vm.user && !_vm.owner && !_vm.relationship.blocking
  3665. ? _c(
  3666. "div",
  3667. {
  3668. staticClass:
  3669. "list-group-item cursor-pointer text-center rounded text-dark",
  3670. on: { click: _vm.blockProfile },
  3671. },
  3672. [_vm._v("\n\t\t\t\tBlock\n\t\t\t")]
  3673. )
  3674. : _vm._e(),
  3675. _vm._v(" "),
  3676. _vm.user && !_vm.owner && _vm.relationship.blocking
  3677. ? _c(
  3678. "div",
  3679. {
  3680. staticClass:
  3681. "list-group-item cursor-pointer text-center rounded text-dark",
  3682. on: { click: _vm.unblockProfile },
  3683. },
  3684. [_vm._v("\n\t\t\t\tUnblock\n\t\t\t")]
  3685. )
  3686. : _vm._e(),
  3687. _vm._v(" "),
  3688. _vm.user && _vm.owner
  3689. ? _c(
  3690. "div",
  3691. {
  3692. staticClass:
  3693. "list-group-item cursor-pointer text-center rounded text-dark",
  3694. on: {
  3695. click: function ($event) {
  3696. return _vm.redirect("/settings/home")
  3697. },
  3698. },
  3699. },
  3700. [_vm._v("\n\t\t\t\tSettings\n\t\t\t")]
  3701. )
  3702. : _vm._e(),
  3703. _vm._v(" "),
  3704. _c(
  3705. "div",
  3706. {
  3707. staticClass:
  3708. "list-group-item cursor-pointer text-center rounded text-dark",
  3709. on: {
  3710. click: function ($event) {
  3711. return _vm.redirect(
  3712. "/users/" + _vm.profileUsername + ".atom"
  3713. )
  3714. },
  3715. },
  3716. },
  3717. [_vm._v("\n\t\t\t\tAtom Feed\n\t\t\t")]
  3718. ),
  3719. _vm._v(" "),
  3720. _c(
  3721. "div",
  3722. {
  3723. staticClass:
  3724. "list-group-item cursor-pointer text-center rounded text-muted font-weight-bold",
  3725. on: {
  3726. click: function ($event) {
  3727. return _vm.$refs.visitorContextMenu.hide()
  3728. },
  3729. },
  3730. },
  3731. [_vm._v("\n\t\t\t\tClose\n\t\t\t")]
  3732. ),
  3733. ])
  3734. : _vm._e(),
  3735. ]
  3736. ),
  3737. _vm._v(" "),
  3738. _c(
  3739. "b-modal",
  3740. {
  3741. ref: "sponsorModal",
  3742. attrs: {
  3743. id: "sponsor-modal",
  3744. "hide-footer": "",
  3745. title: "Sponsor " + _vm.profileUsername,
  3746. centered: "",
  3747. size: "md",
  3748. "body-class": "px-5",
  3749. },
  3750. },
  3751. [
  3752. _c("div", [
  3753. _c("p", { staticClass: "font-weight-bold" }, [
  3754. _vm._v("External Links"),
  3755. ]),
  3756. _vm._v(" "),
  3757. _vm.sponsorList.patreon
  3758. ? _c("p", { staticClass: "pt-2" }, [
  3759. _c(
  3760. "a",
  3761. {
  3762. staticClass: "font-weight-bold",
  3763. attrs: {
  3764. href: "https://" + _vm.sponsorList.patreon,
  3765. rel: "nofollow",
  3766. },
  3767. },
  3768. [_vm._v(_vm._s(_vm.sponsorList.patreon))]
  3769. ),
  3770. ])
  3771. : _vm._e(),
  3772. _vm._v(" "),
  3773. _vm.sponsorList.liberapay
  3774. ? _c("p", { staticClass: "pt-2" }, [
  3775. _c(
  3776. "a",
  3777. {
  3778. staticClass: "font-weight-bold",
  3779. attrs: {
  3780. href: "https://" + _vm.sponsorList.liberapay,
  3781. rel: "nofollow",
  3782. },
  3783. },
  3784. [_vm._v(_vm._s(_vm.sponsorList.liberapay))]
  3785. ),
  3786. ])
  3787. : _vm._e(),
  3788. _vm._v(" "),
  3789. _vm.sponsorList.opencollective
  3790. ? _c("p", { staticClass: "pt-2" }, [
  3791. _c(
  3792. "a",
  3793. {
  3794. staticClass: "font-weight-bold",
  3795. attrs: {
  3796. href: "https://" + _vm.sponsorList.opencollective,
  3797. rel: "nofollow",
  3798. },
  3799. },
  3800. [_vm._v(_vm._s(_vm.sponsorList.opencollective))]
  3801. ),
  3802. ])
  3803. : _vm._e(),
  3804. ]),
  3805. ]
  3806. ),
  3807. _vm._v(" "),
  3808. _c(
  3809. "b-modal",
  3810. {
  3811. ref: "embedModal",
  3812. attrs: {
  3813. id: "ctx-embed-modal",
  3814. "hide-header": "",
  3815. "hide-footer": "",
  3816. centered: "",
  3817. rounded: "",
  3818. size: "md",
  3819. "body-class": "p-2 rounded",
  3820. },
  3821. },
  3822. [
  3823. _c("div", [
  3824. _c("textarea", {
  3825. directives: [
  3826. {
  3827. name: "model",
  3828. rawName: "v-model",
  3829. value: _vm.ctxEmbedPayload,
  3830. expression: "ctxEmbedPayload",
  3831. },
  3832. ],
  3833. staticClass: "form-control disabled text-monospace",
  3834. staticStyle: {
  3835. "overflow-y": "hidden",
  3836. border: "1px solid #efefef",
  3837. "font-size": "12px",
  3838. "line-height": "18px",
  3839. margin: "0 0 7px",
  3840. resize: "none",
  3841. },
  3842. attrs: { rows: "6", disabled: "" },
  3843. domProps: { value: _vm.ctxEmbedPayload },
  3844. on: {
  3845. input: function ($event) {
  3846. if ($event.target.composing) {
  3847. return
  3848. }
  3849. _vm.ctxEmbedPayload = $event.target.value
  3850. },
  3851. },
  3852. }),
  3853. _vm._v(" "),
  3854. _c("hr"),
  3855. _vm._v(" "),
  3856. _c(
  3857. "button",
  3858. {
  3859. class: _vm.copiedEmbed
  3860. ? "btn btn-primary btn-block btn-sm py-1 font-weight-bold disabed"
  3861. : "btn btn-primary btn-block btn-sm py-1 font-weight-bold",
  3862. attrs: { disabled: _vm.copiedEmbed },
  3863. on: { click: _vm.ctxCopyEmbed },
  3864. },
  3865. [
  3866. _vm._v(
  3867. _vm._s(
  3868. _vm.copiedEmbed ? "Embed Code Copied!" : "Copy Embed Code"
  3869. )
  3870. ),
  3871. ]
  3872. ),
  3873. _vm._v(" "),
  3874. _c("p", { staticClass: "mb-0 px-2 small text-muted" }, [
  3875. _vm._v("By using this embed, you agree to our "),
  3876. _c("a", { attrs: { href: "/site/terms" } }, [
  3877. _vm._v("Terms of Use"),
  3878. ]),
  3879. ]),
  3880. ]),
  3881. ]
  3882. ),
  3883. ],
  3884. 1
  3885. )
  3886. }
  3887. var staticRenderFns = [
  3888. function () {
  3889. var _vm = this
  3890. var _h = _vm.$createElement
  3891. var _c = _vm._self._c || _h
  3892. return _c("p", { staticClass: "mb-0 small" }, [
  3893. _c(
  3894. "span",
  3895. {
  3896. staticClass: "border rounded",
  3897. staticStyle: {
  3898. "padding-top": "3px",
  3899. "padding-bottom": "3px",
  3900. "border-color": "rgba(62,100,135,1) !important",
  3901. },
  3902. },
  3903. [
  3904. _c(
  3905. "span",
  3906. {
  3907. staticClass: "font-weight-bold rounded px-2",
  3908. staticStyle: { color: "rgba(62,100,135,1)" },
  3909. },
  3910. [_vm._v("REMOTE")]
  3911. ),
  3912. ]
  3913. ),
  3914. ])
  3915. },
  3916. function () {
  3917. var _vm = this
  3918. var _h = _vm.$createElement
  3919. var _c = _vm._self._c || _h
  3920. return _c("div", { staticClass: "d-none col-12 mt-5 pt-5 mx-0" }, [
  3921. _c("p", { staticClass: "lead text-center text-lighter" }, [
  3922. _c("i", { staticClass: "fas fa-images fa-4x" }),
  3923. ]),
  3924. _vm._v(" "),
  3925. _c(
  3926. "p",
  3927. { staticClass: "lead text-center mb-0 font-weight-bold text-muted" },
  3928. [_vm._v("No collections found")]
  3929. ),
  3930. ])
  3931. },
  3932. function () {
  3933. var _vm = this
  3934. var _h = _vm.$createElement
  3935. var _c = _vm._self._c || _h
  3936. return _c("div", { staticClass: "d-none col-12 mt-5 pt-5 mx-0" }, [
  3937. _c("p", { staticClass: "lead text-center text-lighter" }, [
  3938. _c("i", { staticClass: "far fa-bookmark fa-4x" }),
  3939. ]),
  3940. _vm._v(" "),
  3941. _c(
  3942. "p",
  3943. { staticClass: "lead text-center mb-0 font-weight-bold text-muted" },
  3944. [_vm._v("No saved posts found")]
  3945. ),
  3946. ])
  3947. },
  3948. function () {
  3949. var _vm = this
  3950. var _h = _vm.$createElement
  3951. var _c = _vm._self._c || _h
  3952. return _c("div", { staticClass: "col-12 mt-5 pt-5 mx-0" }, [
  3953. _c("p", { staticClass: "lead text-center text-lighter" }, [
  3954. _c("i", { staticClass: "fas fa-map-marker-alt fa-4x" }),
  3955. ]),
  3956. _vm._v(" "),
  3957. _c(
  3958. "p",
  3959. { staticClass: "lead text-center mb-0 font-weight-bold text-muted" },
  3960. [_vm._v("No tagged places found")]
  3961. ),
  3962. ])
  3963. },
  3964. function () {
  3965. var _vm = this
  3966. var _h = _vm.$createElement
  3967. var _c = _vm._self._c || _h
  3968. return _c("p", { staticClass: "lead text-center text-lighter" }, [
  3969. _c("i", { staticClass: "far fa-heart fa-4x" }),
  3970. ])
  3971. },
  3972. function () {
  3973. var _vm = this
  3974. var _h = _vm.$createElement
  3975. var _c = _vm._self._c || _h
  3976. return _c("p", { staticClass: "lead text-center text-lighter" }, [
  3977. _c("i", { staticClass: "far fa-image fa-4x" }),
  3978. ])
  3979. },
  3980. ]
  3981. render._withStripped = true
  3982. /***/ }),
  3983. /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/PostMenu.vue?vue&type=template&id=bb77b854&scoped=true&":
  3984. /*!******************************************************************************************************************************************************************************************************************************!*\
  3985. !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/assets/js/components/PostMenu.vue?vue&type=template&id=bb77b854&scoped=true& ***!
  3986. \******************************************************************************************************************************************************************************************************************************/
  3987. /*! exports provided: render, staticRenderFns */
  3988. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3989. "use strict";
  3990. __webpack_require__.r(__webpack_exports__);
  3991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
  3992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
  3993. var render = function () {
  3994. var _vm = this
  3995. var _h = _vm.$createElement
  3996. var _c = _vm._self._c || _h
  3997. return _c("div", [
  3998. _vm.modal != "true"
  3999. ? _c("div", { staticClass: "dropdown" }, [
  4000. _c(
  4001. "button",
  4002. {
  4003. staticClass:
  4004. "btn btn-link text-dark no-caret dropdown-toggle py-0",
  4005. attrs: {
  4006. type: "button",
  4007. "data-toggle": "dropdown",
  4008. "aria-haspopup": "true",
  4009. "aria-expanded": "false",
  4010. title: "Post options",
  4011. },
  4012. },
  4013. [
  4014. _c("span", {
  4015. class: [
  4016. _vm.size == "lg"
  4017. ? "fas fa-ellipsis-v fa-lg text-muted"
  4018. : "fas fa-ellipsis-v fa-sm text-lighter",
  4019. ],
  4020. }),
  4021. ]
  4022. ),
  4023. _vm._v(" "),
  4024. _c("div", { staticClass: "dropdown-menu dropdown-menu-right" }, [
  4025. _c(
  4026. "a",
  4027. {
  4028. staticClass:
  4029. "dropdown-item font-weight-bold text-decoration-none",
  4030. attrs: { href: _vm.status.url },
  4031. },
  4032. [_vm._v("Go to post")]
  4033. ),
  4034. _vm._v(" "),
  4035. _vm.activeSession == true && _vm.statusOwner(_vm.status) == false
  4036. ? _c("span", [
  4037. _c(
  4038. "a",
  4039. {
  4040. staticClass: "dropdown-item font-weight-bold",
  4041. attrs: { href: _vm.reportUrl(_vm.status) },
  4042. },
  4043. [_vm._v("Report")]
  4044. ),
  4045. ])
  4046. : _vm._e(),
  4047. _vm._v(" "),
  4048. _vm.activeSession == true && _vm.statusOwner(_vm.status) == true
  4049. ? _c("span", [
  4050. _c(
  4051. "a",
  4052. {
  4053. staticClass:
  4054. "dropdown-item font-weight-bold text-decoration-none",
  4055. on: {
  4056. click: function ($event) {
  4057. $event.preventDefault()
  4058. return _vm.muteProfile(_vm.status)
  4059. },
  4060. },
  4061. },
  4062. [_vm._v("Mute Profile")]
  4063. ),
  4064. _vm._v(" "),
  4065. _c(
  4066. "a",
  4067. {
  4068. staticClass:
  4069. "dropdown-item font-weight-bold text-decoration-none",
  4070. on: {
  4071. click: function ($event) {
  4072. $event.preventDefault()
  4073. return _vm.blockProfile(_vm.status)
  4074. },
  4075. },
  4076. },
  4077. [_vm._v("Block Profile")]
  4078. ),
  4079. ])
  4080. : _vm._e(),
  4081. _vm._v(" "),
  4082. _vm.activeSession == true && _vm.profile.is_admin == true
  4083. ? _c("span", [
  4084. _c("div", { staticClass: "dropdown-divider" }),
  4085. _vm._v(" "),
  4086. _c(
  4087. "a",
  4088. {
  4089. staticClass:
  4090. "dropdown-item font-weight-bold text-danger text-decoration-none",
  4091. on: {
  4092. click: function ($event) {
  4093. return _vm.deletePost(_vm.status)
  4094. },
  4095. },
  4096. },
  4097. [_vm._v("Delete")]
  4098. ),
  4099. _vm._v(" "),
  4100. _c("div", { staticClass: "dropdown-divider" }),
  4101. _vm._v(" "),
  4102. _c("h6", { staticClass: "dropdown-header" }, [
  4103. _vm._v("Mod Tools"),
  4104. ]),
  4105. _vm._v(" "),
  4106. _c(
  4107. "a",
  4108. {
  4109. staticClass:
  4110. "dropdown-item font-weight-bold text-decoration-none",
  4111. on: {
  4112. click: function ($event) {
  4113. return _vm.moderatePost(_vm.status, "autocw")
  4114. },
  4115. },
  4116. },
  4117. [
  4118. _c("p", { staticClass: "mb-0" }, [_vm._v("Enforce CW")]),
  4119. _vm._v(" "),
  4120. _vm._m(0),
  4121. ]
  4122. ),
  4123. _vm._v(" "),
  4124. _c(
  4125. "a",
  4126. {
  4127. staticClass:
  4128. "dropdown-item font-weight-bold text-decoration-none",
  4129. on: {
  4130. click: function ($event) {
  4131. return _vm.moderatePost(_vm.status, "noautolink")
  4132. },
  4133. },
  4134. },
  4135. [
  4136. _c("p", { staticClass: "mb-0" }, [
  4137. _vm._v("No Autolinking"),
  4138. ]),
  4139. _vm._v(" "),
  4140. _vm._m(1),
  4141. ]
  4142. ),
  4143. _vm._v(" "),
  4144. _c(
  4145. "a",
  4146. {
  4147. staticClass:
  4148. "dropdown-item font-weight-bold text-decoration-none",
  4149. on: {
  4150. click: function ($event) {
  4151. return _vm.moderatePost(_vm.status, "unlisted")
  4152. },
  4153. },
  4154. },
  4155. [
  4156. _c("p", { staticClass: "mb-0" }, [
  4157. _vm._v("Unlisted Posts"),
  4158. ]),
  4159. _vm._v(" "),
  4160. _vm._m(2),
  4161. ]
  4162. ),
  4163. _vm._v(" "),
  4164. _c(
  4165. "a",
  4166. {
  4167. staticClass:
  4168. "dropdown-item font-weight-bold text-decoration-none",
  4169. on: {
  4170. click: function ($event) {
  4171. return _vm.moderatePost(_vm.status, "disable")
  4172. },
  4173. },
  4174. },
  4175. [
  4176. _c("p", { staticClass: "mb-0" }, [
  4177. _vm._v("Disable Account"),
  4178. ]),
  4179. _vm._v(" "),
  4180. _vm._m(3),
  4181. ]
  4182. ),
  4183. _vm._v(" "),
  4184. _c(
  4185. "a",
  4186. {
  4187. staticClass:
  4188. "dropdown-item font-weight-bold text-decoration-none",
  4189. on: {
  4190. click: function ($event) {
  4191. return _vm.moderatePost(_vm.status, "suspend")
  4192. },
  4193. },
  4194. },
  4195. [
  4196. _c("p", { staticClass: "mb-0" }, [
  4197. _vm._v("Suspend Account"),
  4198. ]),
  4199. _vm._v(" "),
  4200. _vm._m(4),
  4201. ]
  4202. ),
  4203. ])
  4204. : _vm._e(),
  4205. ]),
  4206. ])
  4207. : _vm._e(),
  4208. _vm._v(" "),
  4209. _vm.modal == "true"
  4210. ? _c("div", [
  4211. _c(
  4212. "span",
  4213. {
  4214. attrs: {
  4215. "data-toggle": "modal",
  4216. "data-target": "#mt_pid_" + _vm.status.id,
  4217. },
  4218. },
  4219. [
  4220. _c("span", {
  4221. class: [
  4222. _vm.size == "lg"
  4223. ? "fas fa-ellipsis-v fa-lg text-muted"
  4224. : "fas fa-ellipsis-v fa-sm text-lighter",
  4225. ],
  4226. }),
  4227. ]
  4228. ),
  4229. _vm._v(" "),
  4230. _c(
  4231. "div",
  4232. {
  4233. staticClass: "modal",
  4234. attrs: {
  4235. tabindex: "-1",
  4236. role: "dialog",
  4237. id: "mt_pid_" + _vm.status.id,
  4238. },
  4239. },
  4240. [
  4241. _c(
  4242. "div",
  4243. {
  4244. staticClass: "modal-dialog modal-sm modal-dialog-centered",
  4245. attrs: { role: "document" },
  4246. },
  4247. [
  4248. _c("div", { staticClass: "modal-content" }, [
  4249. _c("div", { staticClass: "modal-body text-center" }, [
  4250. _c("div", { staticClass: "list-group" }, [
  4251. _c(
  4252. "a",
  4253. {
  4254. staticClass:
  4255. "list-group-item text-dark text-decoration-none",
  4256. attrs: { href: _vm.statusUrl(_vm.status) },
  4257. },
  4258. [_vm._v("Go to post")]
  4259. ),
  4260. _vm._v(" "),
  4261. _c(
  4262. "a",
  4263. {
  4264. staticClass:
  4265. "list-group-item text-dark text-decoration-none",
  4266. attrs: { href: "#" },
  4267. on: {
  4268. click: function ($event) {
  4269. $event.preventDefault()
  4270. return _vm.hidePost(_vm.status)
  4271. },
  4272. },
  4273. },
  4274. [_vm._v("Hide")]
  4275. ),
  4276. _vm._v(" "),
  4277. _vm.activeSession == true &&
  4278. !_vm.statusOwner(_vm.status)
  4279. ? _c(
  4280. "a",
  4281. {
  4282. staticClass:
  4283. "list-group-item text-danger font-weight-bold text-decoration-none",
  4284. attrs: { href: _vm.reportUrl(_vm.status) },
  4285. },
  4286. [_vm._v("Report")]
  4287. )
  4288. : _vm._e(),
  4289. _vm._v(" "),
  4290. (_vm.activeSession == true &&
  4291. _vm.statusOwner(_vm.status) == true) ||
  4292. _vm.profile.is_admin == true
  4293. ? _c(
  4294. "div",
  4295. {
  4296. staticClass:
  4297. "list-group-item text-danger font-weight-bold cursor-pointer",
  4298. on: {
  4299. click: function ($event) {
  4300. $event.preventDefault()
  4301. return _vm.deletePost.apply(null, arguments)
  4302. },
  4303. },
  4304. },
  4305. [_vm._v("Delete")]
  4306. )
  4307. : _vm._e(),
  4308. _vm._v(" "),
  4309. _c(
  4310. "a",
  4311. {
  4312. staticClass:
  4313. "list-group-item text-lighter text-decoration-none",
  4314. attrs: { href: "#" },
  4315. on: {
  4316. click: function ($event) {
  4317. $event.preventDefault()
  4318. return _vm.closeModal()
  4319. },
  4320. },
  4321. },
  4322. [_vm._v("Close")]
  4323. ),
  4324. ]),
  4325. ]),
  4326. ]),
  4327. ]
  4328. ),
  4329. ]
  4330. ),
  4331. ])
  4332. : _vm._e(),
  4333. ])
  4334. }
  4335. var staticRenderFns = [
  4336. function () {
  4337. var _vm = this
  4338. var _h = _vm.$createElement
  4339. var _c = _vm._self._c || _h
  4340. return _c("p", { staticClass: "mb-0 small text-muted" }, [
  4341. _vm._v("Adds a CW to every post "),
  4342. _c("br"),
  4343. _vm._v(" made by this account."),
  4344. ])
  4345. },
  4346. function () {
  4347. var _vm = this
  4348. var _h = _vm.$createElement
  4349. var _c = _vm._self._c || _h
  4350. return _c("p", { staticClass: "mb-0 small text-muted" }, [
  4351. _vm._v("Do not transform mentions, "),
  4352. _c("br"),
  4353. _vm._v(" hashtags or urls into HTML."),
  4354. ])
  4355. },
  4356. function () {
  4357. var _vm = this
  4358. var _h = _vm.$createElement
  4359. var _c = _vm._self._c || _h
  4360. return _c("p", { staticClass: "mb-0 small text-muted" }, [
  4361. _vm._v("Removes account from "),
  4362. _c("br"),
  4363. _vm._v(" public/network timelines."),
  4364. ])
  4365. },
  4366. function () {
  4367. var _vm = this
  4368. var _h = _vm.$createElement
  4369. var _c = _vm._self._c || _h
  4370. return _c("p", { staticClass: "mb-0 small text-muted" }, [
  4371. _vm._v("Temporarily disable account "),
  4372. _c("br"),
  4373. _vm._v(" until next time user log in."),
  4374. ])
  4375. },
  4376. function () {
  4377. var _vm = this
  4378. var _h = _vm.$createElement
  4379. var _c = _vm._self._c || _h
  4380. return _c("p", { staticClass: "mb-0 small text-muted" }, [
  4381. _vm._v("This prevents any new interactions, "),
  4382. _c("br"),
  4383. _vm._v(" without deleting existing data."),
  4384. ])
  4385. },
  4386. ]
  4387. render._withStripped = true
  4388. /***/ }),
  4389. /***/ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js":
  4390. /*!********************************************************************!*\
  4391. !*** ./node_modules/vue-loader/lib/runtime/componentNormalizer.js ***!
  4392. \********************************************************************/
  4393. /*! exports provided: default */
  4394. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4395. "use strict";
  4396. __webpack_require__.r(__webpack_exports__);
  4397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  4398. /* globals __VUE_SSR_CONTEXT__ */
  4399. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  4400. // This module is a runtime utility for cleaner component module output and will
  4401. // be included in the final webpack user bundle.
  4402. function normalizeComponent (
  4403. scriptExports,
  4404. render,
  4405. staticRenderFns,
  4406. functionalTemplate,
  4407. injectStyles,
  4408. scopeId,
  4409. moduleIdentifier, /* server only */
  4410. shadowMode /* vue-cli only */
  4411. ) {
  4412. // Vue.extend constructor export interop
  4413. var options = typeof scriptExports === 'function'
  4414. ? scriptExports.options
  4415. : scriptExports
  4416. // render functions
  4417. if (render) {
  4418. options.render = render
  4419. options.staticRenderFns = staticRenderFns
  4420. options._compiled = true
  4421. }
  4422. // functional template
  4423. if (functionalTemplate) {
  4424. options.functional = true
  4425. }
  4426. // scopedId
  4427. if (scopeId) {
  4428. options._scopeId = 'data-v-' + scopeId
  4429. }
  4430. var hook
  4431. if (moduleIdentifier) { // server build
  4432. hook = function (context) {
  4433. // 2.3 injection
  4434. context =
  4435. context || // cached call
  4436. (this.$vnode && this.$vnode.ssrContext) || // stateful
  4437. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  4438. // 2.2 with runInNewContext: true
  4439. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  4440. context = __VUE_SSR_CONTEXT__
  4441. }
  4442. // inject component styles
  4443. if (injectStyles) {
  4444. injectStyles.call(this, context)
  4445. }
  4446. // register component module identifier for async chunk inferrence
  4447. if (context && context._registeredComponents) {
  4448. context._registeredComponents.add(moduleIdentifier)
  4449. }
  4450. }
  4451. // used by ssr in case component is cached and beforeCreate
  4452. // never gets called
  4453. options._ssrRegister = hook
  4454. } else if (injectStyles) {
  4455. hook = shadowMode
  4456. ? function () {
  4457. injectStyles.call(
  4458. this,
  4459. (options.functional ? this.parent : this).$root.$options.shadowRoot
  4460. )
  4461. }
  4462. : injectStyles
  4463. }
  4464. if (hook) {
  4465. if (options.functional) {
  4466. // for template-only hot-reload because in that case the render fn doesn't
  4467. // go through the normalizer
  4468. options._injectStyles = hook
  4469. // register for functional component in vue file
  4470. var originalRender = options.render
  4471. options.render = function renderWithStyleInjection (h, context) {
  4472. hook.call(context)
  4473. return originalRender(h, context)
  4474. }
  4475. } else {
  4476. // inject component registration as beforeCreate hook
  4477. var existing = options.beforeCreate
  4478. options.beforeCreate = existing
  4479. ? [].concat(existing, hook)
  4480. : [hook]
  4481. }
  4482. }
  4483. return {
  4484. exports: scriptExports,
  4485. options: options
  4486. }
  4487. }
  4488. /***/ }),
  4489. /***/ "./node_modules/vue-masonry-css/dist/vue-masonry.es2015.js":
  4490. /*!*****************************************************************!*\
  4491. !*** ./node_modules/vue-masonry-css/dist/vue-masonry.es2015.js ***!
  4492. \*****************************************************************/
  4493. /*! exports provided: default */
  4494. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4495. "use strict";
  4496. __webpack_require__.r(__webpack_exports__);
  4497. /*!
  4498. * vue-masonry-css v1.0.3
  4499. * https://github.com/paulcollett/vue-masonry-css
  4500. * Released under the MIT License.
  4501. */
  4502. // the component name `<masonry />`
  4503. // can be overridden with `Vue.use(Masonry, { name: 'the-masonry' });`
  4504. var componentName = 'masonry';
  4505. var props = {
  4506. tag: {
  4507. type: [String],
  4508. default: 'div'
  4509. },
  4510. cols: {
  4511. type: [Object, Number, String],
  4512. default: 2
  4513. },
  4514. gutter: {
  4515. type: [Object, Number, String],
  4516. default: 0
  4517. },
  4518. css: {
  4519. type: [Boolean],
  4520. default: true
  4521. },
  4522. columnTag: {
  4523. type: [String],
  4524. default: 'div'
  4525. },
  4526. columnClass: {
  4527. type: [String, Array, Object],
  4528. default: function () { return []; }
  4529. },
  4530. columnAttr: {
  4531. type: [Object],
  4532. default: function () { return ({}); }
  4533. }
  4534. };
  4535. // Get the resulting value from `:col=` prop
  4536. // based on the window width
  4537. var breakpointValue = function (mixed, windowWidth) {
  4538. var valueAsNum = parseInt(mixed);
  4539. if(valueAsNum > -1) {
  4540. return mixed;
  4541. }else if(typeof mixed !== 'object') {
  4542. return 0;
  4543. }
  4544. var matchedBreakpoint = Infinity;
  4545. var matchedValue = mixed.default || 0;
  4546. for(var k in mixed) {
  4547. var breakpoint = parseInt(k);
  4548. var breakpointValRaw = mixed[breakpoint];
  4549. var breakpointVal = parseInt(breakpointValRaw);
  4550. if(isNaN(breakpoint) || isNaN(breakpointVal)) {
  4551. continue;
  4552. }
  4553. var isNewBreakpoint = windowWidth <= breakpoint && breakpoint < matchedBreakpoint;
  4554. if(isNewBreakpoint) {
  4555. matchedBreakpoint = breakpoint;
  4556. matchedValue = breakpointValRaw;
  4557. }
  4558. }
  4559. return matchedValue;
  4560. };
  4561. var component = {
  4562. props: props,
  4563. data: function data() {
  4564. return {
  4565. displayColumns: 2,
  4566. displayGutter: 0
  4567. }
  4568. },
  4569. mounted: function mounted() {
  4570. var this$1 = this;
  4571. this.$nextTick(function () {
  4572. this$1.reCalculate();
  4573. });
  4574. // Bind resize handler to page
  4575. if(window) {
  4576. window.addEventListener('resize', this.reCalculate);
  4577. }
  4578. },
  4579. updated: function updated() {
  4580. var this$1 = this;
  4581. this.$nextTick(function () {
  4582. this$1.reCalculate();
  4583. });
  4584. },
  4585. beforeDestroy: function beforeDestroy() {
  4586. if(window) {
  4587. window.removeEventListener('resize', this.reCalculate);
  4588. }
  4589. },
  4590. methods: {
  4591. // Recalculate how many columns to display based on window width
  4592. // and the value of the passed `:cols=` prop
  4593. reCalculate: function reCalculate() {
  4594. var previousWindowWidth = this.windowWidth;
  4595. this.windowWidth = (window ? window.innerWidth : null) || Infinity;
  4596. // Window resize events get triggered on page height
  4597. // change which when loading the page can result in multiple
  4598. // needless calculations. We prevent this here.
  4599. if(previousWindowWidth === this.windowWidth) {
  4600. return;
  4601. }
  4602. this._reCalculateColumnCount(this.windowWidth);
  4603. this._reCalculateGutterSize(this.windowWidth);
  4604. },
  4605. _reCalculateGutterSize: function _reCalculateGutterSize(windowWidth) {
  4606. this.displayGutter = breakpointValue(this.gutter, windowWidth);
  4607. },
  4608. _reCalculateColumnCount: function _reCalculateColumnCount(windowWidth) {
  4609. var newColumns = breakpointValue(this.cols, windowWidth);
  4610. // Make sure we can return a valid value
  4611. newColumns = Math.max(1, Number(newColumns) || 0);
  4612. this.displayColumns = newColumns;
  4613. },
  4614. _getChildItemsInColumnsArray: function _getChildItemsInColumnsArray() {
  4615. var this$1 = this;
  4616. var columns = [];
  4617. var childItems = this.$slots.default || [];
  4618. // This component does not work with a child <transition-group /> ..yet,
  4619. // so for now we think it may be helpful to ignore until we can find a way for support
  4620. if(childItems.length === 1 && childItems[0].componentOptions && childItems[0].componentOptions.tag == 'transition-group') {
  4621. childItems = childItems[0].componentOptions.children;
  4622. }
  4623. // Loop through child elements
  4624. for (var i = 0, visibleItemI = 0; i < childItems.length; i++, visibleItemI++) {
  4625. // skip Vue elements without tags, which includes
  4626. // whitespace elements and also plain text
  4627. if(!childItems[i].tag) {
  4628. visibleItemI--;
  4629. continue;
  4630. }
  4631. // Get the column index the child item will end up in
  4632. var columnIndex = visibleItemI % this$1.displayColumns;
  4633. if(!columns[columnIndex]) {
  4634. columns[columnIndex] = [];
  4635. }
  4636. columns[columnIndex].push(childItems[i]);
  4637. }
  4638. return columns;
  4639. }
  4640. },
  4641. render: function render(createElement) {
  4642. var this$1 = this;
  4643. var columnsContainingChildren = this._getChildItemsInColumnsArray();
  4644. var isGutterSizeUnitless = parseInt(this.displayGutter) === this.displayGutter * 1;
  4645. var gutterSizeWithUnit = isGutterSizeUnitless ? ((this.displayGutter) + "px") : this.displayGutter;
  4646. var columnStyle = {
  4647. boxSizing: 'border-box',
  4648. backgroundClip: 'padding-box',
  4649. width: ((100 / this.displayColumns) + "%"),
  4650. border: '0 solid transparent',
  4651. borderLeftWidth: gutterSizeWithUnit
  4652. };
  4653. var columns = columnsContainingChildren.map(function (children, index) {
  4654. /// Create column element and inject the children
  4655. return createElement(this$1.columnTag, {
  4656. key: index + '-' + columnsContainingChildren.length,
  4657. style: this$1.css ? columnStyle : null,
  4658. class: this$1.columnClass,
  4659. attrs: this$1.columnAttr
  4660. }, children); // specify child items here
  4661. });
  4662. var containerStyle = {
  4663. display: ['-webkit-box', '-ms-flexbox', 'flex'],
  4664. marginLeft: ("-" + gutterSizeWithUnit)
  4665. };
  4666. // Return wrapper with columns
  4667. return createElement(
  4668. this.tag, // tag name
  4669. this.css ? { style: containerStyle } : null, // element options
  4670. columns // column vue elements
  4671. );
  4672. }
  4673. };
  4674. var Plugin = function () {};
  4675. Plugin.install = function (Vue, options) {
  4676. if (Plugin.installed) {
  4677. return;
  4678. }
  4679. if(options && options.name) {
  4680. Vue.component(options.name, component);
  4681. } else {
  4682. Vue.component(componentName, component);
  4683. }
  4684. };
  4685. if (typeof window !== 'undefined' && window.Vue) {
  4686. window.Vue.use(Plugin);
  4687. }
  4688. /* harmony default export */ __webpack_exports__["default"] = (Plugin);
  4689. /***/ }),
  4690. /***/ "./resources/assets/js/components/MemoryProfile.vue":
  4691. /*!**********************************************************!*\
  4692. !*** ./resources/assets/js/components/MemoryProfile.vue ***!
  4693. \**********************************************************/
  4694. /*! exports provided: default */
  4695. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4696. "use strict";
  4697. __webpack_require__.r(__webpack_exports__);
  4698. /* harmony import */ var _MemoryProfile_vue_vue_type_template_id_ebc1967e_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MemoryProfile.vue?vue&type=template&id=ebc1967e&scoped=true& */ "./resources/assets/js/components/MemoryProfile.vue?vue&type=template&id=ebc1967e&scoped=true&");
  4699. /* harmony import */ var _MemoryProfile_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MemoryProfile.vue?vue&type=script&lang=js& */ "./resources/assets/js/components/MemoryProfile.vue?vue&type=script&lang=js&");
  4700. /* empty/unused harmony star reexport *//* harmony import */ var _MemoryProfile_vue_vue_type_style_index_0_id_ebc1967e_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css& */ "./resources/assets/js/components/MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css&");
  4701. /* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
  4702. /* normalize component */
  4703. var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  4704. _MemoryProfile_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  4705. _MemoryProfile_vue_vue_type_template_id_ebc1967e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
  4706. _MemoryProfile_vue_vue_type_template_id_ebc1967e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  4707. false,
  4708. null,
  4709. "ebc1967e",
  4710. null
  4711. )
  4712. /* hot reload */
  4713. if (false) { var api; }
  4714. component.options.__file = "resources/assets/js/components/MemoryProfile.vue"
  4715. /* harmony default export */ __webpack_exports__["default"] = (component.exports);
  4716. /***/ }),
  4717. /***/ "./resources/assets/js/components/MemoryProfile.vue?vue&type=script&lang=js&":
  4718. /*!***********************************************************************************!*\
  4719. !*** ./resources/assets/js/components/MemoryProfile.vue?vue&type=script&lang=js& ***!
  4720. \***********************************************************************************/
  4721. /*! exports provided: default */
  4722. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4723. "use strict";
  4724. __webpack_require__.r(__webpack_exports__);
  4725. /* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MemoryProfile_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./MemoryProfile.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/MemoryProfile.vue?vue&type=script&lang=js&");
  4726. /* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MemoryProfile_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
  4727. /***/ }),
  4728. /***/ "./resources/assets/js/components/MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css&":
  4729. /*!*******************************************************************************************************************!*\
  4730. !*** ./resources/assets/js/components/MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css& ***!
  4731. \*******************************************************************************************************************/
  4732. /*! no static exports found */
  4733. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4734. "use strict";
  4735. __webpack_require__.r(__webpack_exports__);
  4736. /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_8_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MemoryProfile_vue_vue_type_style_index_0_id_ebc1967e_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/style-loader!../../../../node_modules/css-loader??ref--8-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--8-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css& */ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/MemoryProfile.vue?vue&type=style&index=0&id=ebc1967e&scoped=true&lang=css&");
  4737. /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_8_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MemoryProfile_vue_vue_type_style_index_0_id_ebc1967e_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_8_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MemoryProfile_vue_vue_type_style_index_0_id_ebc1967e_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
  4738. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_8_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MemoryProfile_vue_vue_type_style_index_0_id_ebc1967e_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_8_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_2_node_modules_vue_loader_lib_index_js_vue_loader_options_MemoryProfile_vue_vue_type_style_index_0_id_ebc1967e_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  4739. /***/ }),
  4740. /***/ "./resources/assets/js/components/MemoryProfile.vue?vue&type=template&id=ebc1967e&scoped=true&":
  4741. /*!*****************************************************************************************************!*\
  4742. !*** ./resources/assets/js/components/MemoryProfile.vue?vue&type=template&id=ebc1967e&scoped=true& ***!
  4743. \*****************************************************************************************************/
  4744. /*! exports provided: render, staticRenderFns */
  4745. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4746. "use strict";
  4747. __webpack_require__.r(__webpack_exports__);
  4748. /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_MemoryProfile_vue_vue_type_template_id_ebc1967e_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./MemoryProfile.vue?vue&type=template&id=ebc1967e&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/MemoryProfile.vue?vue&type=template&id=ebc1967e&scoped=true&");
  4749. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_MemoryProfile_vue_vue_type_template_id_ebc1967e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
  4750. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_MemoryProfile_vue_vue_type_template_id_ebc1967e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
  4751. /***/ }),
  4752. /***/ "./resources/assets/js/components/PostMenu.vue":
  4753. /*!*****************************************************!*\
  4754. !*** ./resources/assets/js/components/PostMenu.vue ***!
  4755. \*****************************************************/
  4756. /*! exports provided: default */
  4757. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4758. "use strict";
  4759. __webpack_require__.r(__webpack_exports__);
  4760. /* harmony import */ var _PostMenu_vue_vue_type_template_id_bb77b854_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PostMenu.vue?vue&type=template&id=bb77b854&scoped=true& */ "./resources/assets/js/components/PostMenu.vue?vue&type=template&id=bb77b854&scoped=true&");
  4761. /* harmony import */ var _PostMenu_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PostMenu.vue?vue&type=script&lang=js& */ "./resources/assets/js/components/PostMenu.vue?vue&type=script&lang=js&");
  4762. /* empty/unused harmony star reexport *//* harmony import */ var _PostMenu_vue_vue_type_style_index_0_id_bb77b854_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css& */ "./resources/assets/js/components/PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css&");
  4763. /* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
  4764. /* normalize component */
  4765. var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  4766. _PostMenu_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  4767. _PostMenu_vue_vue_type_template_id_bb77b854_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
  4768. _PostMenu_vue_vue_type_template_id_bb77b854_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  4769. false,
  4770. null,
  4771. "bb77b854",
  4772. null
  4773. )
  4774. /* hot reload */
  4775. if (false) { var api; }
  4776. component.options.__file = "resources/assets/js/components/PostMenu.vue"
  4777. /* harmony default export */ __webpack_exports__["default"] = (component.exports);
  4778. /***/ }),
  4779. /***/ "./resources/assets/js/components/PostMenu.vue?vue&type=script&lang=js&":
  4780. /*!******************************************************************************!*\
  4781. !*** ./resources/assets/js/components/PostMenu.vue?vue&type=script&lang=js& ***!
  4782. \******************************************************************************/
  4783. /*! exports provided: default */
  4784. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4785. "use strict";
  4786. __webpack_require__.r(__webpack_exports__);
  4787. /* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PostMenu_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./PostMenu.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/PostMenu.vue?vue&type=script&lang=js&");
  4788. /* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PostMenu_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
  4789. /***/ }),
  4790. /***/ "./resources/assets/js/components/PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css&":
  4791. /*!**************************************************************************************************************!*\
  4792. !*** ./resources/assets/js/components/PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css& ***!
  4793. \**************************************************************************************************************/
  4794. /*! no static exports found */
  4795. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4796. "use strict";
  4797. __webpack_require__.r(__webpack_exports__);
  4798. /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_8_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_2_node_modules_vue_loader_lib_index_js_vue_loader_options_PostMenu_vue_vue_type_style_index_0_id_bb77b854_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/style-loader!../../../../node_modules/css-loader??ref--8-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--8-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css& */ "./node_modules/style-loader/index.js!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/PostMenu.vue?vue&type=style&index=0&id=bb77b854&scoped=true&lang=css&");
  4799. /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_8_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_2_node_modules_vue_loader_lib_index_js_vue_loader_options_PostMenu_vue_vue_type_style_index_0_id_bb77b854_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_8_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_2_node_modules_vue_loader_lib_index_js_vue_loader_options_PostMenu_vue_vue_type_style_index_0_id_bb77b854_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
  4800. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_8_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_2_node_modules_vue_loader_lib_index_js_vue_loader_options_PostMenu_vue_vue_type_style_index_0_id_bb77b854_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_index_js_ref_8_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_2_node_modules_vue_loader_lib_index_js_vue_loader_options_PostMenu_vue_vue_type_style_index_0_id_bb77b854_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  4801. /***/ }),
  4802. /***/ "./resources/assets/js/components/PostMenu.vue?vue&type=template&id=bb77b854&scoped=true&":
  4803. /*!************************************************************************************************!*\
  4804. !*** ./resources/assets/js/components/PostMenu.vue?vue&type=template&id=bb77b854&scoped=true& ***!
  4805. \************************************************************************************************/
  4806. /*! exports provided: render, staticRenderFns */
  4807. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4808. "use strict";
  4809. __webpack_require__.r(__webpack_exports__);
  4810. /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_PostMenu_vue_vue_type_template_id_bb77b854_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./PostMenu.vue?vue&type=template&id=bb77b854&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/components/PostMenu.vue?vue&type=template&id=bb77b854&scoped=true&");
  4811. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_PostMenu_vue_vue_type_template_id_bb77b854_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
  4812. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_PostMenu_vue_vue_type_template_id_bb77b854_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
  4813. /***/ }),
  4814. /***/ "./resources/assets/js/memoryprofile.js":
  4815. /*!**********************************************!*\
  4816. !*** ./resources/assets/js/memoryprofile.js ***!
  4817. \**********************************************/
  4818. /*! no static exports found */
  4819. /***/ (function(module, exports, __webpack_require__) {
  4820. Vue.component('post-menu', __webpack_require__(/*! ./components/PostMenu.vue */ "./resources/assets/js/components/PostMenu.vue")["default"]);
  4821. Vue.component('memory-profile', __webpack_require__(/*! ./components/MemoryProfile.vue */ "./resources/assets/js/components/MemoryProfile.vue")["default"]);
  4822. /***/ }),
  4823. /***/ 30:
  4824. /*!****************************************************!*\
  4825. !*** multi ./resources/assets/js/memoryprofile.js ***!
  4826. \****************************************************/
  4827. /*! no static exports found */
  4828. /***/ (function(module, exports, __webpack_require__) {
  4829. module.exports = __webpack_require__(/*! /Users/dansup/Github/pixelfed/resources/assets/js/memoryprofile.js */"./resources/assets/js/memoryprofile.js");
  4830. /***/ })
  4831. },[[30,"/js/manifest"]]]);